
!function(t){var e={};function i(s){if(e[s])return e[s].exports;var n=e[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(s,n,function(e){return t[e]}.bind(null,n));return s},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/unigraz/",i(i.s=35)}([function(t,e){t.exports=jQuery},,function(t,e,i){var s,n;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(o,r){s=[i(9),i(3)],void 0===(n=function(t,e){return function(t,e,i){var s=t.jQuery,n={};function o(t,e){var a=i.getQueryElement(t);if(a){if((t=a).infiniteScrollGUID){var r=n[t.infiniteScrollGUID];return r.option(e),r}this.element=t,this.options=i.extend({},o.defaults),this.option(e),s&&(this.$element=s(this.element)),this.create()}else console.error("Bad element for InfiniteScroll: "+(a||t))}o.defaults={},o.create={},o.destroy={};var r=o.prototype;i.extend(r,e.prototype);var l=0;r.create=function(){var t=this.guid=++l;this.element.infiniteScrollGUID=t,n[t]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath();var e=this.getPath&&this.getPath();if(e)for(var i in this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit(),o.create)o.create[i].call(this);else console.error("Disabling InfiniteScroll")},r.option=function(t){i.extend(this.options,t)},r.callOnInit=function(){var t=this.options.onInit;t&&t.call(this,this)},r.dispatchEvent=function(t,e,i){this.log(t,i);var n=e?[e].concat(i):i;if(this.emitEvent(t,n),s&&this.$element){var a=t+=".infiniteScroll";if(e){var o=s.Event(e);o.type=t,a=o}this.$element.trigger(a,i)}};var c={initialized:function(t){return"on "+t},request:function(t){return"URL: "+t},load:function(t,e){return(t.title||"")+". URL: "+e},error:function(t,e){return t+". URL: "+e},append:function(t,e,i){return i.length+" items. URL: "+e},last:function(t,e){return"URL: "+e},history:function(t,e){return"URL: "+e},pageIndex:function(t,e){return"current page determined to be: "+t+" from "+e}};r.log=function(t,e){if(this.options.debug){var i="[InfiniteScroll] "+t,s=c[t];s&&(i+=". "+s.apply(this,e)),console.log(i)}},r.updateMeasurements=function(){this.windowHeight=t.innerHeight;var e=this.element.getBoundingClientRect();this.top=e.top+t.pageYOffset},r.updateScroller=function(){var e=this.options.elementScroll;if(e){if(this.scroller=!0===e?this.element:i.getQueryElement(e),!this.scroller)throw"Unable to find elementScroll: "+e}else this.scroller=t},r.updateGetPath=function(){var t=this.options.path;if(t){var e=a(t);if("function"!=e){var i="string"==e&&t.match("{{#}}");i?this.updateGetPathTemplate(t):this.updateGetPathSelector(t)}else this.getPath=t}else console.error("InfiniteScroll path option required. Set as: "+t)},r.updateGetPathTemplate=function(t){this.getPath=function(){var e=this.pageIndex+1;return t.replace("{{#}}",e)}.bind(this);var e=t.replace(/(\\\?|\?)/,"\\?").replace("{{#}}","(\\d\\d?\\d?)"),i=new RegExp(e),s=location.href.match(i);s&&(this.pageIndex=parseInt(s[1],10),this.log("pageIndex",[this.pageIndex,"template string"]))};var h=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/];r.updateGetPathSelector=function(t){var e=document.querySelector(t);if(e){for(var i,s,n=e.getAttribute("href"),a=0;n&&a<h.length;a++){s=h[a];var o=n.match(s);if(o){i=o.slice(1);break}}i?(this.isPathSelector=!0,this.getPath=function(){var t=this.pageIndex+1;return i[0]+t+i[2]}.bind(this),this.pageIndex=parseInt(i[1],10)-1,this.log("pageIndex",[this.pageIndex,"next link"])):console.error("InfiniteScroll unable to parse next link href: "+n)}else console.error("Bad InfiniteScroll path option. Next link not found: "+t)},r.updateGetAbsolutePath=function(){var t=this.getPath();if(t.match(/^http/)||t.match(/^\//))this.getAbsolutePath=this.getPath;else{var e=location.pathname;if(t.match(/^\?/))this.getAbsolutePath=function(){return e+this.getPath()};else{var i=e.substring(0,e.lastIndexOf("/"));this.getAbsolutePath=function(){return i+"/"+this.getPath()}}}},o.create.hideNav=function(){var t=i.getQueryElement(this.options.hideNav);t&&(t.style.display="none",this.nav=t)},o.destroy.hideNav=function(){this.nav&&(this.nav.style.display="")},r.destroy=function(){for(var t in this.allOff(),o.destroy)o.destroy[t].call(this);delete this.element.infiniteScrollGUID,delete n[this.guid],s&&this.$element&&s.removeData(this.element,"infiniteScroll")},o.throttle=function(t,e){var i,s;return e=e||200,function(){var n=+new Date,a=arguments,o=function(){i=n,t.apply(this,a)}.bind(this);i&&n<i+e?(clearTimeout(s),s=setTimeout(o,e)):o()}},o.data=function(t){var e=(t=i.getQueryElement(t))&&t.infiniteScrollGUID;return e&&n[e]},o.setJQuery=function(t){s=t},i.htmlInit(o,"infinite-scroll"),r._init=function(){},s&&s.bridget&&s.bridget("infiniteScroll",o);return o}(o,t,e)}.apply(e,s))||(t.exports=n)}(window)},function(t,e,i){var s,n;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(o,r){s=[i(27)],void 0===(n=function(t){return function(t,e){"use strict";var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},s=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null==t)return[];var e="object"==a(t)&&"number"==typeof t.length;return e?s.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,s){t=i.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(s){e(t,s)&&n.push(t);for(var i=t.querySelectorAll(s),a=0;a<i.length;a++)n.push(i[a])}else n.push(t)}),n},i.debounceMethod=function(t,e,i){i=i||100;var s=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];clearTimeout(t);var e=arguments,a=this;this[n]=setTimeout(function(){s.apply(a,e),delete a[n]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,s){i.docReady(function(){var a=i.toDashed(s),o="data-"+a,r=document.querySelectorAll("["+o+"]"),l=document.querySelectorAll(".js-"+a),c=i.makeArray(r).concat(i.makeArray(l)),h=o+"-options",d=t.jQuery;c.forEach(function(t){var i,a=t.getAttribute(o)||t.getAttribute(h);try{i=a&&JSON.parse(a)}catch(e){return void(n&&n.error("Error parsing "+o+" on "+t.className+": "+e))}var r=new e(t,i);d&&d.data(t,s,r)})})},i}(o,t)}.apply(e,s))||(t.exports=n)}(window)},function(t,e,i){var s,n;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */!function(o){var r;if(void 0===(n="function"==typeof(s=o)?s.call(e,i,e,t):s)||(t.exports=n),r=!0,"object"===a(e)&&(t.exports=o(),r=!0),!r){var l=window.Cookies,c=window.Cookies=o();c.noConflict=function(){return window.Cookies=l,c}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var i=arguments[t];for(var s in i)e[s]=i[s]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function i(s){function n(){}function a(e,i,a){if("undefined"!=typeof document){"number"==typeof(a=t({path:"/"},n.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var o=JSON.stringify(i);/^[\{\[]/.test(o)&&(i=o)}catch(t){}i=s.write?s.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var r="";for(var l in a)a[l]&&(r+="; "+l,!0!==a[l]&&(r+="="+a[l].split(";")[0]));return document.cookie=e+"="+i+r}}function o(t,i){if("undefined"!=typeof document){for(var n={},a=document.cookie?document.cookie.split("; "):[],o=0;o<a.length;o++){var r=a[o].split("="),l=r.slice(1).join("=");i||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=e(r[0]);if(l=(s.read||s)(l,c)||e(l),i)try{l=JSON.parse(l)}catch(t){}if(n[c]=l,t===c)break}catch(t){}}return t?n[t]:n}}return n.set=a,n.get=function(t){return o(t,!1)},n.getJSON=function(t){return o(t,!0)},n.remove=function(e,i){a(e,"",t(i,{expires:-1}))},n.defaults={},n.withConverter=i,n}(function(){})})},,function(t,e,i){var s,n;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
/*!
 * imagesLoaded v4.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
/*!
 * imagesLoaded v4.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
!function(o,r){"use strict";s=[i(9)],void 0===(n=function(t){return function(t,e){var i=t.jQuery,s=t.console;function n(t,e){for(var i in e)t[i]=e[i];return t}var o=Array.prototype.slice;function r(t,e,l){if(!(this instanceof r))return new r(t,e,l);var c=t;"string"==typeof t&&(c=document.querySelectorAll(t)),c?(this.elements=function(t){if(Array.isArray(t))return t;if("object"==a(t)&&"number"==typeof t.length)return o.call(t);return[t]}(c),this.options=n({},this.options),"function"==typeof e?l=e:n(this.options,e),l&&this.on("always",l),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error("Bad element for imagesLoaded "+(c||t))}r.prototype=Object.create(e.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var i=t.querySelectorAll("img"),s=0;s<i.length;s++){var n=i[s];this.addImage(n)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(s=0;s<a.length;s++){var o=a[s];this.addElementBackgroundImages(o)}}}};var l={1:!0,9:!0,11:!0};function c(t){this.img=t}function h(t,e){this.url=t,this.element=e,this.img=new Image}return r.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,s=i.exec(e.backgroundImage);null!==s;){var n=s&&s[2];n&&this.addBackground(n,t),s=i.exec(e.backgroundImage)}},r.prototype.addImage=function(t){var e=new c(t);this.images.push(e)},r.prototype.addBackground=function(t,e){var i=new h(t,e);this.images.push(i)},r.prototype.check=function(){var t=this;function e(e,i,s){setTimeout(function(){t.progress(e,i,s)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},r.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&s&&s.log("progress: "+i,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},c.prototype=Object.create(e.prototype),c.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},c.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},c.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},h.prototype=Object.create(c.prototype),h.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},h.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},h.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((i=e).fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(i(this))})},r.makeJQueryPlugin(),r}(o,t)}.apply(e,s))||(t.exports=n)}("undefined"!=typeof window?window:this)},function(t,e,i){var s,n,a;window,n=[i(2),i(28),i(29),i(30),i(31),i(32)],void 0===(a="function"==typeof(s=function(t){return t})?s.apply(e,n):s)||(t.exports=a)},,function(t,e,i){var s,n;"undefined"!=typeof window&&window,void 0===(n="function"==typeof(s=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},s=i[t]=i[t]||[];return-1==s.indexOf(e)&&s.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var s=i.indexOf(e);return-1!=s&&i.splice(s,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var s=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var a=i[n];s&&s[a]&&(this.off(t,a),delete s[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?s.call(e,i,e,t):s)||(t.exports=n)},function(t,e,i){var s,n,a,o,r,l,c,h,d,u,p,f,m,g,v;function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
/*!
 * Masonry PACKAGED v4.2.2
 * Cascading grid layout library
 * https://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
/*!
 * Masonry PACKAGED v4.2.2
 * Cascading grid layout library
 * https://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
!function(s,n){g=[i(0)],void 0===(v=function(t){return function(t,e){"use strict";var i=Array.prototype.slice,s=t.console,n=void 0===s?function(){}:function(t){s.error(t)};function a(s,a,r){(r=r||e||t.jQuery)&&(a.prototype.option||(a.prototype.option=function(t){r.isPlainObject(t)&&(this.options=r.extend(!0,this.options,t))}),r.fn[s]=function(t){if("string"==typeof t){var e=i.call(arguments,1);return function(t,e,i){var a,o="$()."+s+'("'+e+'")';return t.each(function(t,l){var c=r.data(l,s);if(c){var h=c[e];if(h&&"_"!=e.charAt(0)){var d=h.apply(c,i);a=void 0===a?d:a}else n(o+" is not a valid method")}else n(s+" not initialized. Cannot call methods, i.e. "+o)}),void 0!==a?a:t}(this,t,e)}var o;return o=t,this.each(function(t,e){var i=r.data(e,s);i?(i.option(o),i._init()):(i=new a(e,o),r.data(e,s,i))}),this},o(r))}function o(t){!t||t&&t.bridget||(t.bridget=a)}return o(e||t.jQuery),a}(s,t)}.apply(e,g))||(t.exports=v)}(window),"undefined"!=typeof window&&window,a={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},s="function"==typeof(n=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},s=i[t]=i[t]||[];return-1==s.indexOf(e)&&s.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var s=i.indexOf(e);return-1!=s&&i.splice(s,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var s=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var a=i[n];s&&s[a]&&(this.off(t,a),delete s[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?n.call(a.exports,i,a.exports,a):n,a.loaded=!0,void 0!==s||(s=a.exports),window,l={id:"get-size/get-size",exports:{},loaded:!1},o="function"==typeof(r=function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],s=i.length;function n(t){var i=getComputedStyle(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),i}var a,o=!1;function r(e){if(function(){if(!o){o=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var s=n(e);a=200==Math.round(t(s.width)),r.isBoxSizeOuter=a,i.removeChild(e)}}(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==b(e)&&e.nodeType){var l=n(e);if("none"==l.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<s;e++){var n=i[e];t[n]=0}return t}();var c={};c.width=e.offsetWidth,c.height=e.offsetHeight;for(var h=c.isBorderBox="border-box"==l.boxSizing,d=0;d<s;d++){var u=i[d],p=l[u],f=parseFloat(p);c[u]=isNaN(f)?0:f}var m=c.paddingLeft+c.paddingRight,g=c.paddingTop+c.paddingBottom,v=c.marginLeft+c.marginRight,y=c.marginTop+c.marginBottom,w=c.borderLeftWidth+c.borderRightWidth,x=c.borderTopWidth+c.borderBottomWidth,S=h&&a,E=t(l.width);!1!==E&&(c.width=E+(S?0:m+w));var T=t(l.height);return!1!==T&&(c.height=T+(S?0:g+x)),c.innerWidth=c.width-(m+w),c.innerHeight=c.height-(g+x),c.outerWidth=c.width+v,c.outerHeight=c.height+y,c}}return r})?r.call(l.exports,i,l.exports,l):r,l.loaded=!0,void 0!==o||(o=l.exports),function(t,e){"use strict";d={id:"desandro-matches-selector/matches-selector",exports:{},loaded:!1},c="function"==typeof(h=e)?h.call(d.exports,i,d.exports,d):h,d.loaded=!0,void 0!==c||(c=d.exports)}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var s=e[i]+"MatchesSelector";if(t[s])return s}}();return function(e,i){return e[t](i)}}),function(t,i){u=function(e){return function(t,e){var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},s=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null==t)return[];var e="object"==b(t)&&"number"==typeof t.length;return e?s.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,s){t=i.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(s){e(t,s)&&n.push(t);for(var i=t.querySelectorAll(s),a=0;a<i.length;a++)n.push(i[a])}else n.push(t)}),n},i.debounceMethod=function(t,e,i){i=i||100;var s=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];clearTimeout(t);var e=arguments,a=this;this[n]=setTimeout(function(){s.apply(a,e),delete a[n]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,s){i.docReady(function(){var a=i.toDashed(s),o="data-"+a,r=document.querySelectorAll("["+o+"]"),l=document.querySelectorAll(".js-"+a),c=i.makeArray(r).concat(i.makeArray(l)),h=o+"-options",d=t.jQuery;c.forEach(function(t){var i,a=t.getAttribute(o)||t.getAttribute(h);try{i=a&&JSON.parse(a)}catch(e){return void(n&&n.error("Error parsing "+o+" on "+t.className+": "+e))}var r=new e(t,i);d&&d.data(t,s,r)})})},i}(t,e)}.apply(e,g=[c])}(window),window,g=[s,o],p="function"==typeof(m=function(t,e){"use strict";var i=document.documentElement.style,s="string"==typeof i.transition?"transition":"WebkitTransition",n="string"==typeof i.transform?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],o={transform:n,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"};function r(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var l=r.prototype=Object.create(t.prototype);l.constructor=r,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.getSize=function(){this.size=e(this.element)},l.css=function(t){var e=this.element.style;for(var i in t){var s=o[i]||i;e[s]=t[i]}},l.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),s=t[e?"left":"right"],n=t[i?"top":"bottom"],a=parseFloat(s),o=parseFloat(n),r=this.layout.size;-1!=s.indexOf("%")&&(a=a/100*r.width),-1!=n.indexOf("%")&&(o=o/100*r.height),a=isNaN(a)?0:a,o=isNaN(o)?0:o,a-=e?r.paddingLeft:r.paddingRight,o-=i?r.paddingTop:r.paddingBottom,this.position.x=a,this.position.y=o},l.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),s=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",a=i?"left":"right",o=i?"right":"left",r=this.position.x+t[n];e[a]=this.getXValue(r),e[o]="";var l=s?"paddingTop":"paddingBottom",c=s?"top":"bottom",h=s?"bottom":"top",d=this.position.y+t[l];e[c]=this.getYValue(d),e[h]="",this.css(e),this.emitEvent("layout",[this])},l.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},l.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},l._transitionTo=function(t,e){this.getPosition();var i=this.position.x,s=this.position.y,n=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),!n||this.isTransitioning){var a=t-i,o=e-s,r={};r.transform=this.getTranslate(a,o),this.transition({to:r,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),s=this.layout._getOption("originTop");return"translate3d("+(t=i?t:-t)+"px, "+(e=s?e:-e)+"px, 0)"},l.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},l._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},l.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);t.from&&(this.css(t.from),this.element.offsetHeight),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var c="opacity,"+n.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});l.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:c,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},l.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},l.onotransitionend=function(t){this.ontransitionend(t)};var h={"-webkit-transform":"transform"};l.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=h[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd){var s=e.onEnd[i];s.call(this),delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},l._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var d={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(d)},l.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},l.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},l.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},r})?m.apply(e,g):m,
/*!
 * Outlayer v2.1.1
 * the brains and guts of a layout library
 * MIT license
 */
function(t,i){"use strict";f=function(e,i,s,n){return function(t,e,i,s,n){var a=t.console,o=t.jQuery,r=function(){},l=0,c={};function h(t,e){var i=s.getQueryElement(t);if(i){this.element=i,o&&(this.$element=o(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(e);var n=++l;this.element.outlayerGUID=n,c[n]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}else a&&a.error("Bad element for "+this.constructor.namespace+": "+(i||t))}h.namespace="outlayer",h.Item=n,h.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=h.prototype;function u(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}s.extend(d,e.prototype),d.option=function(t){s.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},h.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),s.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,s=[],n=0;n<e.length;n++){var a=e[n],o=new i(a,this);s.push(o)}return s},d._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=i(this.element)},d._getMeasurement=function(t,e){var s,n=this.options[t];n?("string"==typeof n?s=this.element.querySelector(n):n instanceof HTMLElement&&(s=n),this[t]=s?i(s)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var s=this._getItemLayoutPosition(t);s.item=t,s.isInstant=e||t.isLayoutInstant,i.push(s)},this),this._processLayoutQueue(i)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],s=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var n=p[s]||1;return i*n}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,s,n){s?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},d._getContainerSize=r,d._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},d._emitCompleteOnItems=function(t,e){var i=this;function s(){i.dispatchEvent(t+"Complete",null,[e])}var n=e.length;if(e&&n){var a=0;e.forEach(function(e){e.once(t,o)})}else s();function o(){++a==n&&s()}},d.dispatchEvent=function(t,e,i){var s=e?[e].concat(i):i;if(this.emitEvent(t,s),o)if(this.$element=this.$element||o(this.element),e){var n=o.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},d.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},d.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){s.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=s.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=r,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),s=this._boundingRect,n=i(t),a={left:e.left-s.left-n.marginLeft,top:e.top-s.top-n.marginTop,right:s.right-e.right-n.marginRight,bottom:s.bottom-e.bottom-n.marginBottom};return a},d.handleEvent=s.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},s.debounceMethod(h,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},d.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},d.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},d.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},d.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},d.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},d.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=s.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},d.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),s.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,o&&o.removeData(this.element,this.constructor.namespace)},h.data=function(t){var e=(t=s.getQueryElement(t))&&t.outlayerGUID;return e&&c[e]},h.create=function(t,e){var i=u(h);return i.defaults=s.extend({},h.defaults),s.extend(i.defaults,e),i.compatOptions=s.extend({},h.compatOptions),i.namespace=t,i.data=h.data,i.Item=u(n),s.htmlInit(i,t),o&&o.bridget&&o.bridget(t,i),i};var p={ms:1,s:1e3};return h.Item=n,h}(t,e,i,s,n)}.apply(e,g=[s,o,u,p])}(window),window,g=[f,o],void 0===(v="function"==typeof(m=function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var s=i.prototype;return s._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},s.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var s=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,a=n/s,o=s-n%s;a=Math[o&&o<1?"round":"floor"](a),this.cols=Math.max(a,1)},s.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},s._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var s=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),n={x:this.columnWidth*s.col,y:s.y},a=s.y+t.size.outerHeight,o=i+s.col,r=s.col;r<o;r++)this.colYs[r]=a;return n},s._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},s._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,s=0;s<i;s++)e[s]=this._getColGroupY(s,t);return e},s._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},s._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols;i=t>1&&i+t>this.cols?0:i;var s=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=s?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},s._manageStamp=function(t){var i=e(t),s=this._getElementOffset(t),n=this._getOption("originLeft")?s.left:s.right,a=n+i.outerWidth,o=Math.floor(n/this.columnWidth);o=Math.max(0,o);var r=Math.floor(a/this.columnWidth);r-=a%this.columnWidth?0:1,r=Math.min(this.cols-1,r);for(var l=(this._getOption("originTop")?s.top:s.bottom)+i.outerHeight,c=o;c<=r;c++)this.colYs[c]=Math.max(l,this.colYs[c])},s._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},s._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},s.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i})?m.apply(e,g):m)||(t.exports=v)},,,,,,,,,,function(t,e){function i(t){this.el=t,this.card=t.querySelector(".card"),this.top=t.querySelector(".top"),this.bottom=t.querySelector(".bottom"),this.back=t.querySelector(".back"),this.backBottom=t.querySelector(".back .bottom"),this.currentValue=this.top.innerText,this.update=function(t){var e=1===String(t).length?"0"+t:String(t);this.currentValue!==e&&(this.back.setAttribute("data-value",this.currentValue),this.bottom.setAttribute("data-value",this.currentValue),this.currentValue=e,this.top.innerText=this.currentValue,this.backBottom.setAttribute("data-value",this.currentValue),this.card.classList.remove("flip"),this.card.offsetWidth,this.card.classList.add("flip"))}}function s(t){var e;this.el=t;for(var s=parseInt(t.getAttribute("data-seconds")),n=new Date(Date.parse(new Date)+1e3*s),a={},o=t.querySelectorAll(".digit"),r=0;r<o.length;++r){var l=o[r],c=l.getAttribute("data-digit");a[c]=new i(l)}e=setInterval(function(){var t=function(t){var e=Date.parse(t)-Date.parse(new Date);return{total:e,d:Math.floor(e/864e5),h:Math.floor(e/36e5%24),i:Math.floor(e/6e4%60),s:Math.floor(e/1e3%60)}}(n);for(var i in t.total<=0&&(t={total:0,d:0,h:0,i:0,s:0},clearInterval(e)),t)i in a&&a[i].update(t[i])},500)}for(var n=document.querySelectorAll(".unigrazcountdown_countdown"),a=0;a<n.length;++a){for(var o=n[a],r=o.querySelectorAll("a"),l=0;l<r.length;++l){var c=r[l];c.classList.contains("btn")||c.addEventListener("click",function(){window._paq&&window._paq.push(["trackEvent","CountDown","Link"])})}for(var h=o.querySelectorAll(".btn"),d=0;d<h.length;++d){h[d].addEventListener("click",function(){window._paq&&window._paq.push(["trackEvent","CountDown","Button"])})}new s(o.querySelector(".flip-clock"))}},function(t,e){$(function(){$(document).ready(function(){$(".ce-intext.ce-wrap").find(".ce-gallery").css({"margin-bottom":"1px"})})})},function(t,e){var i=document.getElementById("floatingActionButton");if(i){var s=i.firstElementChild;if(s){var n=s.scrollHeight,a=20;s.addEventListener("click",function(){window._paq&&window._paq.push(["trackEvent","FloatingActionButton","Click"])})}}function o(){n=s.scrollHeight,i.style.height=n+"px",i.getBoundingClientRect().top>=window.innerHeight-(n+a)?s.classList.add("is-fixed"):s.classList.remove("is-fixed")}i&&!$.accessibility.getStatus()&&(document.addEventListener("DOMContentLoaded",function(t){o()}),document.addEventListener("resize",function(t){o()}),document.addEventListener("scroll",function(t){o()}),o())},function(t,e,i){i(24),$.fancybox.defaults.buttons=["close"],$.fancybox.defaults.fullScreen.autoStart=!1,$.fancybox.defaults.slideShow.autoStart=!1,$.fancybox.defaults.thumbs.autoStart=!0,$.fancybox.defaults.thumbs.axis="x",$.fancybox.defaults.afterShow=function(t,e){var i=t.Thumbs.$grid[0].offsetWidth,s=t.Thumbs.$list[0],n=t.Thumbs.instance.currIndex,a=s.children[n],o=i/2-(a.offsetLeft+a.offsetWidth/2);t.Thumbs.$list.css("left",Math.ceil(o)+"px")},function(t){t(document).ready(function(){t().fancybox({selector:"a.lightbox:not([data-fancybox])"})})}(jQuery)},function(t,e){!function(t,e,i,s){"use strict";if(t.console=t.console||{info:function(t){}},i)if(i.fn.fancybox)console.info("fancyBox already initialized");else{var n,a,o={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeClose:i.noop,afterClose:i.noop,onActivate:i.noop,onDeactivate:i.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},r=i(t),l=i(e),c=0,h=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)},d=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)},u=function(){var t,i=e.createElement("fakeelement"),s={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in s)if(void 0!==i.style[t])return s[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},f=function(t,e){var s=i.extend(!0,{},t,e);return i.each(e,function(t,e){i.isArray(e)&&(s[t]=e)}),s},m=function(t,e,s){this.opts=f({index:s},i.fancybox.defaults),i.isPlainObject(e)&&(this.opts=f(this.opts,e)),i.fancybox.isMobile&&(this.opts=f(this.opts,this.opts.mobile)),this.id=this.opts.id||++c,this.currIndex=parseInt(this.opts.index,10)||0,this.prevIndex=null,this.prevPos=null,this.currPos=0,this.firstRun=!0,this.group=[],this.slides={},this.addContent(t),this.group.length&&this.init()};i.extend(m.prototype,{init:function(){var s,n,a=this,o=a.group[a.currIndex].opts;o.closeExisting&&i.fancybox.close(!0),i("body").addClass("fancybox-active"),!i.fancybox.getInstance()&&!1!==o.hideScrollbar&&!i.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(i("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),i("body").addClass("compensate-for-scrollbar")),n="",i.each(o.buttons,function(t,e){n+=o.btnTpl[e]||""}),s=i(a.translate(a,o.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",o.btnTpl.arrowLeft+o.btnTpl.arrowRight))).attr("id","fancybox-container-"+a.id).addClass(o.baseClass).data("FancyBox",a).appendTo(o.parentEl),a.$refs={container:s},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){a.$refs[t]=s.find(".fancybox-"+t)}),a.trigger("onInit"),a.activate(),a.jumpTo(a.currIndex)},translate:function(t,e){var i=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return void 0===i[e]?t:i[e]})},addContent:function(t){var e,s=this,n=i.makeArray(t);i.each(n,function(t,e){var n,a,o,r,l,c={},h={};i.isPlainObject(e)?(c=e,h=e.opts||e):"object"===i.type(e)&&i(e).length?(h=(n=i(e)).data()||{},(h=i.extend(!0,{},h,h.options)).$orig=n,c.src=s.opts.src||h.src||n.attr("href"),c.type||c.src||(c.type="inline",c.src=e)):c={type:"html",src:e+""},c.opts=i.extend(!0,{},s.opts,h),i.isArray(h.buttons)&&(c.opts.buttons=h.buttons),i.fancybox.isMobile&&c.opts.mobile&&(c.opts=f(c.opts,c.opts.mobile)),a=c.type||c.opts.type,r=c.src||"",!a&&r&&((o=r.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(a="video",c.opts.video.format||(c.opts.video.format="video/"+("ogv"===o[1]?"ogg":o[1]))):r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":r.match(/\.(pdf)((\?|#).*)?$/i)?(a="iframe",c=i.extend(!0,c,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===r.charAt(0)&&(a="inline")),a?c.type=a:s.trigger("objectNeedsType",c),c.contentType||(c.contentType=i.inArray(c.type,["html","inline","ajax"])>-1?"html":c.type),c.index=s.group.length,"auto"==c.opts.smallBtn&&(c.opts.smallBtn=i.inArray(c.type,["html","inline","ajax"])>-1),"auto"===c.opts.toolbar&&(c.opts.toolbar=!c.opts.smallBtn),c.$thumb=c.opts.$thumb||null,c.opts.$trigger&&c.index===s.opts.index&&(c.$thumb=c.opts.$trigger.find("img:first"),c.$thumb.length&&(c.opts.$orig=c.opts.$trigger)),c.$thumb&&c.$thumb.length||!c.opts.$orig||(c.$thumb=c.opts.$orig.find("img:first")),c.$thumb&&!c.$thumb.length&&(c.$thumb=null),c.thumb=c.opts.thumb||(c.$thumb?c.$thumb[0].src:null),"function"===i.type(c.opts.caption)&&(c.opts.caption=c.opts.caption.apply(e,[s,c])),"function"===i.type(s.opts.caption)&&(c.opts.caption=s.opts.caption.apply(e,[s,c])),c.opts.caption instanceof i||(c.opts.caption=void 0===c.opts.caption?"":c.opts.caption+""),"ajax"===c.type&&(l=r.split(/\s+/,2)).length>1&&(c.src=l.shift(),c.opts.filter=l.shift()),c.opts.modal&&(c.opts=i.extend(!0,c.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),s.group.push(c)}),Object.keys(s.slides).length&&(s.updateControls(),(e=s.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),e.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),e.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),e.next()}).on("click.fb","[data-fancybox-zoom]",function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()}),r.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(e.requestId&&d(e.requestId),e.requestId=h(function(){e.update(t)})):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),setTimeout(function(){e.$refs.stage.show(),e.update(t)},i.fancybox.isMobile?600:250))}),l.on("keydown.fb",function(t){var s=(i.fancybox?i.fancybox.getInstance():null).current,n=t.keyCode||t.which;if(9!=n){if(!(!s.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||i(t.target).is("input,textarea,video,audio,select")))return 8===n||27===n?(t.preventDefault(),void e.close(t)):37===n||38===n?(t.preventDefault(),void e.previous()):39===n||40===n?(t.preventDefault(),void e.next()):void e.trigger("afterKeydown",t,n)}else s.opts.trapFocus&&e.focus(t)}),e.group[e.currIndex].opts.idleTime&&(e.idleSecondsCounter=0,l.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){e.idleSecondsCounter=0,e.isIdle&&e.showControls(),e.isIdle=!1}),e.idleInterval=t.setInterval(function(){e.idleSecondsCounter++,e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging&&(e.isIdle=!0,e.idleSecondsCounter=0,e.hideControls())},1e3))},removeEvents:function(){r.off("orientationchange.fb resize.fb"),l.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(t.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var s,n,a,o,r,l,c,h,d,u=this,f=u.group.length;if(!(u.isDragging||u.isClosing||u.isAnimating&&u.firstRun)){if(t=parseInt(t,10),!(a=u.current?u.current.opts.loop:u.opts.loop)&&(t<0||t>=f))return!1;if(s=u.firstRun=!Object.keys(u.slides).length,r=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,o=u.createSlide(t),f>1&&((a||o.index<f-1)&&u.createSlide(t+1),(a||o.index>0)&&u.createSlide(t-1)),u.current=o,u.currIndex=o.index,u.currPos=o.pos,u.trigger("beforeShow",s),u.updateControls(),o.forcedDuration=void 0,i.isNumeric(e)?o.forcedDuration=e:e=o.opts[s?"animationDuration":"transitionDuration"],e=parseInt(e,10),n=u.isMoved(o),o.$slide.addClass("fancybox-slide--current"),s)return o.opts.animationEffect&&e&&u.$refs.container.css("transition-duration",e+"ms"),u.$refs.container.addClass("fancybox-is-open").trigger("focus"),u.loadSlide(o),void u.preload("image");l=i.fancybox.getTranslate(r.$slide),c=i.fancybox.getTranslate(u.$refs.stage),i.each(u.slides,function(t,e){i.fancybox.stop(e.$slide,!0)}),r.pos!==o.pos&&(r.isComplete=!1),r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),n?(d=l.left-(r.pos*l.width+r.pos*r.opts.gutter),i.each(u.slides,function(t,s){s.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var n=s.pos*l.width+s.pos*s.opts.gutter;i.fancybox.setTranslate(s.$slide,{top:0,left:n-c.left+d}),s.pos!==o.pos&&s.$slide.addClass("fancybox-slide--"+(s.pos>o.pos?"next":"previous")),p(s.$slide),i.fancybox.animate(s.$slide,{top:0,left:(s.pos-o.pos)*l.width+(s.pos-o.pos)*s.opts.gutter},e,function(){s.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),s.pos===u.currPos&&u.complete()})})):e&&o.opts.transitionEffect&&(h="fancybox-animated fancybox-fx-"+o.opts.transitionEffect,r.$slide.addClass("fancybox-slide--"+(r.pos>o.pos?"next":"previous")),i.fancybox.animate(r.$slide,h,e,function(){r.$slide.removeClass(h).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),o.isLoaded?u.revealContent(o):u.loadSlide(o),u.preload("image")}},createSlide:function(t){var e,s;return s=(s=t%this.group.length)<0?this.group.length+s:s,!this.slides[t]&&this.group[s]&&(e=i('<div class="fancybox-slide"></div>').appendTo(this.$refs.stage),this.slides[t]=i.extend(!0,{},this.group[s],{pos:t,$slide:e,isLoaded:!1}),this.updateSlide(this.slides[t])),this.slides[t]},scaleToActual:function(t,e,s){var n,a,o,r,l,c=this,h=c.current,d=h.$content,u=i.fancybox.getTranslate(h.$slide).width,p=i.fancybox.getTranslate(h.$slide).height,f=h.width,m=h.height;c.isAnimating||c.isMoved()||!d||"image"!=h.type||!h.isLoaded||h.hasError||(c.isAnimating=!0,i.fancybox.stop(d),t=void 0===t?.5*u:t,e=void 0===e?.5*p:e,(n=i.fancybox.getTranslate(d)).top-=i.fancybox.getTranslate(h.$slide).top,n.left-=i.fancybox.getTranslate(h.$slide).left,r=f/n.width,l=m/n.height,a=.5*u-.5*f,o=.5*p-.5*m,f>u&&((a=n.left*r-(t*r-t))>0&&(a=0),a<u-f&&(a=u-f)),m>p&&((o=n.top*l-(e*l-e))>0&&(o=0),o<p-m&&(o=p-m)),c.updateCursor(f,m),i.fancybox.animate(d,{top:o,left:a,scaleX:r,scaleY:l},s||366,function(){c.isAnimating=!1}),c.SlideShow&&c.SlideShow.isActive&&c.SlideShow.stop())},scaleToFit:function(t){var e,s=this,n=s.current,a=n.$content;s.isAnimating||s.isMoved()||!a||"image"!=n.type||!n.isLoaded||n.hasError||(s.isAnimating=!0,i.fancybox.stop(a),e=s.getFitPos(n),s.updateCursor(e.width,e.height),i.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){s.isAnimating=!1}))},getFitPos:function(t){var e,s,n,a,o=t.$content,r=t.$slide,l=t.width||t.opts.width,c=t.height||t.opts.height,h={};return!!(t.isLoaded&&o&&o.length)&&(e=i.fancybox.getTranslate(this.$refs.stage).width,s=i.fancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(r.css("paddingLeft"))+parseFloat(r.css("paddingRight"))+parseFloat(o.css("marginLeft"))+parseFloat(o.css("marginRight")),s-=parseFloat(r.css("paddingTop"))+parseFloat(r.css("paddingBottom"))+parseFloat(o.css("marginTop"))+parseFloat(o.css("marginBottom")),l&&c||(l=e,c=s),(l*=n=Math.min(1,e/l,s/c))>e-.5&&(l=e),(c*=n)>s-.5&&(c=s),"image"===t.type?(h.top=Math.floor(.5*(s-c))+parseFloat(r.css("paddingTop")),h.left=Math.floor(.5*(e-l))+parseFloat(r.css("paddingLeft"))):"video"===t.contentType&&(c>l/(a=t.opts.width&&t.opts.height?l/c:t.opts.ratio||16/9)?c=l/a:l>c*a&&(l=c*a)),h.width=l,h.height=c,h)},update:function(t){var e=this;i.each(e.slides,function(i,s){e.updateSlide(s,t)})},updateSlide:function(t,e){var s=t&&t.$content,n=t.width||t.opts.width,a=t.height||t.opts.height,o=t.$slide;this.adjustCaption(t),s&&(n||a||"video"===t.contentType)&&!t.hasError&&(i.fancybox.stop(s),i.fancybox.setTranslate(s,this.getFitPos(t)),t.pos===this.currPos&&(this.isAnimating=!1,this.updateCursor())),this.adjustLayout(t),o.length&&(o.trigger("refresh"),t.pos===this.currPos&&this.$refs.toolbar.add(this.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",o.get(0).scrollHeight>o.get(0).clientHeight)),this.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,s=e.current,n=s.$slide;!e.isClosing&&s&&(n.siblings().css({transform:"",opacity:""}),n.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),i.fancybox.animate(n,{top:0,left:0,opacity:1},void 0===t?0:t,function(){n.css({transform:"",opacity:""}),s.isComplete||e.complete()},!1))},isMoved:function(t){var e,s,n=t||this.current;return!!n&&(s=i.fancybox.getTranslate(this.$refs.stage),e=i.fancybox.getTranslate(n.$slide),!n.$slide.hasClass("fancybox-animated")&&(Math.abs(e.top-s.top)>.5||Math.abs(e.left-s.left)>.5))},updateCursor:function(t,e){var s,n,a=this.current,o=this.$refs.container;a&&!this.isClosing&&this.Guestures&&(o.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),n=!!(s=this.canPan(t,e))||this.isZoomable(),o.toggleClass("fancybox-is-zoomable",n),i("[data-fancybox-zoom]").prop("disabled",!n),s?o.addClass("fancybox-can-pan"):n&&("zoom"===a.opts.clickContent||i.isFunction(a.opts.clickContent)&&"zoom"==a.opts.clickContent(a))?o.addClass("fancybox-can-zoomIn"):a.opts.touch&&(a.opts.touch.vertical||this.group.length>1)&&"video"!==a.contentType&&o.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var s=!1,n=this.current,a=n.$content;return void 0!==t&&void 0!==e?s=t<n.width&&e<n.height:a&&(s=(s=i.fancybox.getTranslate(a)).width<n.width&&s.height<n.height),s},canPan:function(t,e){var s=this.current,n=null,a=!1;return"image"===s.type&&(s.isComplete||t&&e)&&!s.hasError&&(a=this.getFitPos(s),void 0!==t&&void 0!==e?n={width:t,height:e}:s.isComplete&&(n=i.fancybox.getTranslate(s.$content)),n&&a&&(a=Math.abs(n.width-a.width)>1.5||Math.abs(n.height-a.height)>1.5)),a},loadSlide:function(t){var e,s,n,a=this;if(!t.isLoading&&!t.isLoaded){if(t.isLoading=!0,!1===a.trigger("beforeLoad",t))return t.isLoading=!1,!1;switch(e=t.type,(s=t.$slide).off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"video":a.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":i(t.src).length?a.setContent(t,i(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),n=i.ajax(i.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,i){"success"===i&&a.setContent(t,e)},error:function(e,i){e&&"abort"!==i&&a.setError(t)}})),s.one("onReset",function(){n.abort()});break;default:a.setError(t)}return!0}},setImage:function(t){var s,n=this;setTimeout(function(){var e=t.$image;n.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||n.showLoading(t)},50),n.checkSrcset(t),t.$content=i('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,(s=e.createElement("img")).onerror=function(){i(this).remove(),t.$ghost=null},s.onload=function(){n.afterLoad(t)},t.$ghost=i(s).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),n.setBigImage(t)},checkSrcset:function(e){var i,s,n,a,o=e.opts.srcset||e.opts.image.srcset;if(o){n=t.devicePixelRatio||1,a=t.innerWidth*n,(s=o.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,i){var s=parseInt(t.substring(0,t.length-1),10);if(0===i)return e.url=t;s&&(e.value=s,e.postfix=t[t.length-1])}),e})).sort(function(t,e){return t.value-e.value});for(var r=0;r<s.length;r++){var l=s[r];if("w"===l.postfix&&l.value>=a||"x"===l.postfix&&l.value>=n){i=l;break}}!i&&s.length&&(i=s[s.length-1]),i&&(e.src=i.url,e.width&&e.height&&"w"==i.postfix&&(e.height=e.width/e.height*i.value,e.width=i.value),e.opts.srcset=o)}},setBigImage:function(t){var s=this,n=e.createElement("img"),a=i(n);t.$image=a.one("error",function(){s.setError(t)}).one("load",function(){var e;t.$ghost||(s.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),s.afterLoad(t)),s.isClosing||(t.opts.srcset&&((e=t.opts.sizes)&&"auto"!==e||(e=(t.width/t.height>1&&r.width()/r.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),a.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!s.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),s.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(n.complete||"complete"==n.readyState)&&a.naturalWidth&&a.naturalHeight?a.trigger("load"):n.error&&a.trigger("error")},resolveImageSlideSize:function(t,e,i){var s=parseInt(t.opts.width,10),n=parseInt(t.opts.height,10);t.width=e,t.height=i,s>0&&(t.width=s,t.height=Math.floor(s*i/e)),n>0&&(t.width=Math.floor(n*e/i),t.height=n)},setIframe:function(t){var e,s=this,n=t.opts.iframe,a=t.$slide;t.$content=i('<div class="fancybox-content'+(n.preload?" fancybox-is-hidden":"")+'"></div>').css(n.css).appendTo(a),a.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=i(n.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(n.attr).appendTo(t.$content),n.preload?(s.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),s.afterLoad(t)}),a.on("refresh.fb",function(){var i,s=t.$content,o=n.css.width,r=n.css.height;if(1===e[0].isReady){try{i=e.contents().find("body")}catch(t){}i&&i.length&&i.children().length&&(a.css("overflow","visible"),s.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===o&&(o=Math.ceil(Math.max(i[0].clientWidth,i.outerWidth(!0)))),s.css("width",o||"").css("max-width",""),void 0===r&&(r=Math.ceil(Math.max(i[0].clientHeight,i.outerHeight(!0)))),s.css("height",r||""),a.css("overflow","auto")),s.removeClass("fancybox-is-hidden")}})):s.afterLoad(t),e.attr("src",t.src),a.one("onReset",function(){try{i(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}i(this).off("refresh.fb").empty(),t.isLoaded=!1,t.isRevealed=!1})},setContent:function(t,e){var s;this.isClosing||(this.hideLoading(t),t.$content&&i.fancybox.stop(t.$content),t.$slide.empty(),(s=e)&&s.hasOwnProperty&&s instanceof i&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=i("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===i.type(e)&&(e=i("<div>").append(i.trim(e)).contents()),t.opts.filter&&(e=i("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){i(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(i(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),i(e).appendTo(t.$slide),i(e).is("video,audio")&&(i(e).addClass("fancybox-video"),i(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||i(e).attr("width"),t.opts.height=t.opts.height||i(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=i(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){this.isClosing||(t.isLoading=!1,t.isLoaded=!0,this.trigger("afterLoad",t),this.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=i(this.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&i('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),this.adjustCaption(t),this.adjustLayout(t),t.pos===this.currPos&&this.updateCursor(),this.revealContent(t))},adjustCaption:function(t){var e,i=t||this.current,s=i.opts.caption,n=i.opts.preventCaptionOverlap,a=this.$refs.caption,o=!1;a.toggleClass("fancybox-caption--separate",n),n&&s&&s.length&&(i.pos!==this.currPos?((e=a.clone().appendTo(a.parent())).children().eq(0).empty().html(s),o=e.outerHeight(!0),e.empty().remove()):this.$caption&&(o=this.$caption.outerHeight(!0)),i.$slide.css("padding-bottom",o||""))},adjustLayout:function(t){var e,i,s,n,a=t||this.current;a.isLoaded&&!0!==a.opts.disableLayoutFix&&(a.$content.css("margin-bottom",""),a.$content.outerHeight()>a.$slide.height()+.5&&(s=a.$slide[0].style["padding-bottom"],n=a.$slide.css("padding-bottom"),parseFloat(n)>0&&(e=a.$slide[0].scrollHeight,a.$slide.css("padding-bottom",0),Math.abs(e-a.$slide[0].scrollHeight)<1&&(i=n),a.$slide.css("padding-bottom",s))),a.$content.css("margin-bottom",i))},revealContent:function(t){var e,s,n,a,o=this,r=t.$slide,l=!1,c=!1,h=o.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[o.firstRun?"animationEffect":"transitionEffect"],n=t.opts[o.firstRun?"animationDuration":"transitionDuration"],n=parseInt(void 0===t.forcedDuration?n:t.forcedDuration,10),!h&&t.pos===o.currPos&&n||(e=!1),"zoom"===e&&(t.pos===o.currPos&&n&&"image"===t.type&&!t.hasError&&(c=o.getThumbPos(t))?l=o.getFitPos(t):e="fade"),"zoom"===e?(o.isAnimating=!0,l.scaleX=l.width/c.width,l.scaleY=l.height/c.height,"auto"==(a=t.opts.zoomOpacity)&&(a=Math.abs(t.width/t.height-c.width/c.height)>.1),a&&(c.opacity=.1,l.opacity=1),i.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),c),p(t.$content),void i.fancybox.animate(t.$content,l,n,function(){o.isAnimating=!1,o.complete()})):(o.updateSlide(t),e?(i.fancybox.stop(r),s="fancybox-slide--"+(t.pos>=o.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,r.addClass(s).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),p(r),"image"!==t.type&&t.$content.hide().show(0),void i.fancybox.animate(r,"fancybox-slide--current",n,function(){r.removeClass(s).css({transform:"",opacity:""}),t.pos===o.currPos&&o.complete()},!0)):(t.$content.removeClass("fancybox-is-hidden"),d||!h||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===o.currPos&&o.complete())))},getThumbPos:function(t){var s,n,a,o,r,l,c=t.$thumb;return!(!c||!function(t){var s,n;return!(!t||t.ownerDocument!==e)&&(i(".fancybox-container").css("pointer-events","none"),s={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},n=e.elementFromPoint(s.x,s.y)===t,i(".fancybox-container").css("pointer-events",""),n)}(c[0]))&&(n=i.fancybox.getTranslate(c),a=parseFloat(c.css("border-top-width")||0),o=parseFloat(c.css("border-right-width")||0),r=parseFloat(c.css("border-bottom-width")||0),l=parseFloat(c.css("border-left-width")||0),s={top:n.top+a,left:n.left+l,width:n.width-o-l,height:n.height-a-r,scaleX:1,scaleY:1},n.width>0&&n.height>0&&s)},complete:function(){var t,e=this,s=e.current,n={};!e.isMoved()&&s.isLoaded&&(s.isComplete||(s.isComplete=!0,s.$slide.siblings().trigger("onReset"),e.preload("inline"),p(s.$slide),s.$slide.addClass("fancybox-slide--complete"),i.each(e.slides,function(t,s){s.pos>=e.currPos-1&&s.pos<=e.currPos+1?n[s.pos]=s:s&&(i.fancybox.stop(s.$slide),s.$slide.off().remove())}),e.slides=n),e.isAnimating=!1,e.updateCursor(),e.trigger("afterShow"),s.opts.video.autoStart&&s.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),e.next()}),s.opts.autoFocus&&"html"===s.contentType&&((t=s.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):e.focus(null,!0)),s.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,i;this.group.length<2||(i=this.slides[this.currPos+1],(e=this.slides[this.currPos-1])&&e.type===t&&this.loadSlide(e),i&&i.type===t&&this.loadSlide(i))},focus:function(t,s){var n,a,o=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");this.isClosing||((n=(n=!t&&this.current&&this.current.isComplete?this.current.$slide.find("*:visible"+(s?":not(.fancybox-close-small)":"")):this.$refs.container.find("*:visible")).filter(o).filter(function(){return"hidden"!==i(this).css("visibility")&&!i(this).hasClass("disabled")})).length?(a=n.index(e.activeElement),t&&t.shiftKey?(a<0||0==a)&&(t.preventDefault(),n.eq(n.length-1).trigger("focus")):(a<0||a==n.length-1)&&(t&&t.preventDefault(),n.eq(0).trigger("focus"))):this.$refs.container.trigger("focus"))},activate:function(){var t=this;i(".fancybox-container").each(function(){var e=i(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var s,n,a,o,r,l,c,d=this,u=d.current,f=function(){d.cleanUp(t)};return!d.isClosing&&(d.isClosing=!0,!1===d.trigger("beforeClose",t)?(d.isClosing=!1,h(function(){d.update()}),!1):(d.removeEvents(),a=u.$content,s=u.opts.animationEffect,n=i.isNumeric(e)?e:s?u.opts.animationDuration:0,u.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?i.fancybox.stop(u.$slide):s=!1,u.$slide.siblings().trigger("onReset").remove(),n&&d.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",n+"ms"),d.hideLoading(u),d.hideControls(!0),d.updateCursor(),"zoom"!==s||a&&n&&"image"===u.type&&!d.isMoved()&&!u.hasError&&(c=d.getThumbPos(u))||(s="fade"),"zoom"===s?(i.fancybox.stop(a),l={top:(o=i.fancybox.getTranslate(a)).top,left:o.left,scaleX:o.width/c.width,scaleY:o.height/c.height,width:c.width,height:c.height},"auto"==(r=u.opts.zoomOpacity)&&(r=Math.abs(u.width/u.height-c.width/c.height)>.1),r&&(c.opacity=0),i.fancybox.setTranslate(a,l),p(a),i.fancybox.animate(a,c,n,f),!0):(s&&n?i.fancybox.animate(u.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+s,n,f):!0===t?setTimeout(f,n):f(),!0)))},cleanUp:function(e){var s,n,a,o=this.current.opts.$orig;this.current.$slide.trigger("onReset"),this.$refs.container.empty().remove(),this.trigger("afterClose",e),this.current.opts.backFocus&&(o&&o.length&&o.is(":visible")||(o=this.$trigger),o&&o.length&&(n=t.scrollX,a=t.scrollY,o.trigger("focus"),i("html, body").scrollTop(a).scrollLeft(n))),this.current=null,(s=i.fancybox.getInstance())?s.activate():(i("body").removeClass("fancybox-active compensate-for-scrollbar"),i("#fancybox-style-noscroll").remove())},trigger:function(t,e){var s,n=Array.prototype.slice.call(arguments,1),a=e&&e.opts?e:this.current;if(a?n.unshift(a):a=this,n.unshift(this),i.isFunction(a.opts[t])&&(s=a.opts[t].apply(a,n)),!1===s)return s;"afterClose"!==t&&this.$refs?this.$refs.container.trigger(t+".fb",n):l.trigger(t+".fb",n)},updateControls:function(){var t=this.current,s=t.index,n=this.$refs.container,a=this.$refs.caption,o=t.opts.caption;t.$slide.trigger("refresh"),o&&o.length?(this.$caption=a,a.children().eq(0).html(o)):this.$caption=null,this.hasHiddenControls||this.isIdle||this.showControls(),n.find("[data-fancybox-count]").html(this.group.length),n.find("[data-fancybox-index]").html(s+1),n.find("[data-fancybox-prev]").prop("disabled",!t.opts.loop&&s<=0),n.find("[data-fancybox-next]").prop("disabled",!t.opts.loop&&s>=this.group.length-1),"image"===t.type?n.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",t.opts.image.src||t.src).show():t.opts.toolbar&&n.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),i(e.activeElement).is(":hidden,[disabled]")&&this.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this.current?this.current.opts:this.opts,e=this.$refs.container;this.hasHiddenControls=!1,this.idleSecondsCounter=0,e.toggleClass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&this.group.length>1)).toggleClass("fancybox-show-caption",!!this.$caption).toggleClass("fancybox-show-nav",!!(t.arrows&&this.group.length>1)).toggleClass("fancybox-is-modal",!!t.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),i.fancybox={version:"3.5.7",defaults:o,getInstance:function(t){var e=i('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),s=Array.prototype.slice.call(arguments,1);return e instanceof m&&("string"===i.type(t)?e[t].apply(e,s):"function"===i.type(t)&&t.apply(e,s),e)},open:function(t,e,i){return new m(t,e,i)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),l.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(n=e.createElement("div"),t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var i="",s={};if(t&&e)return void 0===e.left&&void 0===e.top||(i=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),void 0!==e.scaleX&&void 0!==e.scaleY?i+=" scale("+e.scaleX+", "+e.scaleY+")":void 0!==e.scaleX&&(i+=" scaleX("+e.scaleX+")"),i.length&&(s.transform=i),void 0!==e.opacity&&(s.opacity=e.opacity),void 0!==e.width&&(s.width=e.width),void 0!==e.height&&(s.height=e.height),t.css(s)},animate:function(t,e,s,n,a){var o,r=this;i.isFunction(s)&&(n=s,s=null),r.stop(t),o=r.getTranslate(t),t.on(u,function(l){(!l||!l.originalEvent||t.is(l.originalEvent.target)&&"z-index"!=l.originalEvent.propertyName)&&(r.stop(t),i.isNumeric(s)&&t.css("transition-duration",""),i.isPlainObject(e)?void 0!==e.scaleX&&void 0!==e.scaleY&&r.setTranslate(t,{top:e.top,left:e.left,width:o.width*e.scaleX,height:o.height*e.scaleY,scaleX:1,scaleY:1}):!0!==a&&t.removeClass(e),i.isFunction(n)&&n(l))}),i.isNumeric(s)&&t.css("transition-duration",s+"ms"),i.isPlainObject(e)?(void 0!==e.scaleX&&void 0!==e.scaleY&&(delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),i.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger(u)},s+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(u),t.off(u).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},i.fn.fancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?i("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},g):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},g),this},l.on("click.fb-start","[data-fancybox]",g),l.on("click.fb-start","[data-fancybox-trigger]",function(t){i('[data-fancybox="'+i(this).attr("data-fancybox-trigger")+'"]').eq(i(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:i(this)})}),a=null,l.on("mousedown mouseup focus blur",".fancybox-button",function(t){switch(t.type){case"mousedown":a=i(this);break;case"mouseup":a=null;break;case"focusin":i(".fancybox-button").removeClass("fancybox-focus"),i(this).is(a)||i(this).is("[disabled]")||i(this).addClass("fancybox-focus");break;case"focusout":i(".fancybox-button").removeClass("fancybox-focus")}})}function g(t,e){var s,n,a,o=[],r=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=f(t.data.options,e)),s=e.$target||i(t.currentTarget).trigger("blur"),(a=i.fancybox.getInstance())&&a.$trigger&&a.$trigger.is(s)||(o=e.selector?i(e.selector):(n=s.attr("data-fancybox")||"")?(o=t.data?t.data.items:[]).length?o.filter('[data-fancybox="'+n+'"]'):i('[data-fancybox="'+n+'"]'):[s],(r=i(o).index(s))<0&&(r=0),(a=i.fancybox.open(o,e,r)).$trigger=s))}}(window,document,jQuery),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},i=function(e,i,s){if(e)return s=s||"","object"===t.type(s)&&(s=t.param(s,!0)),t.each(i,function(t,i){e=e.replace("$"+t,i||"")}),s.length&&(e+=(e.indexOf("?")>0?"&":"?")+s),e};t(document).on("objectNeedsType.fb",function(s,n,a){var o,r,l,c,h,d,u,p=a.src||"",f=!1;o=t.extend(!0,{},e,a.opts.media),t.each(o,function(e,s){if(l=p.match(s.matcher)){if(f=s.type,u=e,d={},s.paramPlace&&l[s.paramPlace]){"?"==(h=l[s.paramPlace])[0]&&(h=h.substring(1)),h=h.split("&");for(var n=0;n<h.length;++n){var o=h[n].split("=",2);2==o.length&&(d[o[0]]=decodeURIComponent(o[1].replace(/\+/g," ")))}}return c=t.extend(!0,{},s.params,a.opts[e],d),p="function"===t.type(s.url)?s.url.call(this,l,c,a):i(s.url,l,c),r="function"===t.type(s.thumb)?s.thumb.call(this,l,c,a):i(s.thumb,l),"youtube"===e?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,i,s){return"&start="+((i?60*parseInt(i,10):0)+parseInt(s,10))}):"vimeo"===e&&(p=p.replace("&%23","#")),!1}}),f?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=r),"iframe"===f&&(a.opts=t.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(a,{type:f,src:p,origSrc:a.src,contentSource:u,contentType:"image"===f?"image":"gmap_place"==u||"gmap_search"==u?"map":"video"})):p&&(a.type=a.opts.defaultType)});var s={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,i=this;this[t].loaded?setTimeout(function(){i.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){i[t].loaded=!0,i.done(t)}:e.onload=function(){i[t].loaded=!0,i.done(t)},document.body.appendChild(e))},done:function(e){var i,s;"youtube"===e&&delete window.onYouTubeIframeAPIReady,(i=t.fancybox.getInstance())&&(s=i.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?new YT.Player(s.attr("id"),{events:{onStateChange:function(t){0==t.data&&i.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(s).on("ended",function(){i.next()}))}};t(document).on({"afterShow.fb":function(t,e,i){e.group.length>1&&("youtube"===i.contentSource||"vimeo"===i.contentSource)&&s.load(i.contentSource)}})}(jQuery),function(t,e,i){"use strict";var s=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)},n=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)},a=function(e){var i=[];for(var s in e=(e=e.originalEvent||e||t.e).touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e])e[s].pageX?i.push({x:e[s].pageX,y:e[s].pageY}):e[s].clientX&&i.push({x:e[s].clientX,y:e[s].clientY});return i},o=function(t,e,i){return e&&t?"x"===i?t.x-e.x:"y"===i?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||i.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,s=t[0].attributes,n=s.length;e<n;e++)if("data-fancybox-"===s[e].nodeName.substr(0,14))return!0;return!1},l=function(e){for(var i,s,n,a,o,r=!1;i=e.get(0),s=void 0,n=void 0,a=void 0,o=void 0,s=t.getComputedStyle(i)["overflow-y"],n=t.getComputedStyle(i)["overflow-x"],a=("scroll"===s||"auto"===s)&&i.scrollHeight>i.clientHeight,o=("scroll"===n||"auto"===n)&&i.scrollWidth>i.clientWidth,!(r=a||o)&&(e=e.parent()).length&&!e.hasClass("fancybox-stage")&&!e.is("body"););return r},c=function(t){this.instance=t,this.$bg=t.$refs.bg,this.$stage=t.$refs.stage,this.$container=t.$refs.container,this.destroy(),this.$container.on("touchstart.fb.touch mousedown.fb.touch",i.proxy(this,"ontouchstart"))};c.prototype.destroy=function(){this.$container.off(".fb.touch"),i(e).off(".fb.touch"),this.requestId&&(n(this.requestId),this.requestId=null),this.tapped&&(clearTimeout(this.tapped),this.tapped=null)},c.prototype.ontouchstart=function(s){var n=i(s.target),c=this.instance,h=c.current,d=h.$slide,u=h.$content,p="touchstart"==s.type;if(p&&this.$container.off("mousedown.fb.touch"),(!s.originalEvent||2!=s.originalEvent.button)&&d.length&&n.length&&!r(n)&&!r(n.parent())&&(n.is("img")||!(s.originalEvent.clientX>n[0].clientWidth+n.offset().left))){if(!h||c.isAnimating||h.$slide.hasClass("fancybox-animated"))return s.stopPropagation(),void s.preventDefault();this.realPoints=this.startPoints=a(s),this.startPoints.length&&(h.touch&&s.stopPropagation(),this.startEvent=s,this.canTap=!0,this.$target=n,this.$content=u,this.opts=h.opts.touch,this.isPanning=!1,this.isSwiping=!1,this.isZooming=!1,this.isScrolling=!1,this.canPan=c.canPan(),this.startTime=(new Date).getTime(),this.distanceX=this.distanceY=this.distance=0,this.canvasWidth=Math.round(d[0].clientWidth),this.canvasHeight=Math.round(d[0].clientHeight),this.contentLastPos=null,this.contentStartPos=i.fancybox.getTranslate(this.$content)||{top:0,left:0},this.sliderStartPos=i.fancybox.getTranslate(d),this.stagePos=i.fancybox.getTranslate(c.$refs.stage),this.sliderStartPos.top-=this.stagePos.top,this.sliderStartPos.left-=this.stagePos.left,this.contentStartPos.top-=this.stagePos.top,this.contentStartPos.left-=this.stagePos.left,i(e).off(".fb.touch").on(p?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(this,"ontouchend")).on(p?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(this,"ontouchmove")),i.fancybox.isMobile&&e.addEventListener("scroll",this.onscroll,!0),((this.opts||this.canPan)&&(n.is(this.$stage)||this.$stage.find(n).length)||(n.is(".fancybox-image")&&s.preventDefault(),i.fancybox.isMobile&&n.parents(".fancybox-caption").length))&&(this.isScrollable=l(n)||l(n.parent()),i.fancybox.isMobile&&this.isScrollable||s.preventDefault(),(1===this.startPoints.length||h.hasError)&&(this.canPan?(i.fancybox.stop(this.$content),this.isPanning=!0):this.isSwiping=!0,this.$container.addClass("fancybox-is-grabbing")),2===this.startPoints.length&&"image"===h.type&&(h.isLoaded||h.$ghost)&&(this.canTap=!1,this.isSwiping=!1,this.isPanning=!1,this.isZooming=!0,i.fancybox.stop(this.$content),this.centerPointStartX=.5*(this.startPoints[0].x+this.startPoints[1].x)-i(t).scrollLeft(),this.centerPointStartY=.5*(this.startPoints[0].y+this.startPoints[1].y)-i(t).scrollTop(),this.percentageOfImageAtPinchPointX=(this.centerPointStartX-this.contentStartPos.left)/this.contentStartPos.width,this.percentageOfImageAtPinchPointY=(this.centerPointStartY-this.contentStartPos.top)/this.contentStartPos.height,this.startDistanceBetweenFingers=o(this.startPoints[0],this.startPoints[1]))))}},c.prototype.onscroll=function(t){this.isScrolling=!0,e.removeEventListener("scroll",this.onscroll,!0)},c.prototype.ontouchmove=function(t){void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?this.isScrolling?this.canTap=!1:(this.newPoints=a(t),(this.opts||this.canPan)&&this.newPoints.length&&this.newPoints.length&&(this.isSwiping&&!0===this.isSwiping||t.preventDefault(),this.distanceX=o(this.newPoints[0],this.startPoints[0],"x"),this.distanceY=o(this.newPoints[0],this.startPoints[0],"y"),this.distance=o(this.newPoints[0],this.startPoints[0]),this.distance>0&&(this.isSwiping?this.onSwipe(t):this.isPanning?this.onPan():this.isZooming&&this.onZoom()))):this.ontouchend(t)},c.prototype.onSwipe=function(e){var a,o=this,r=o.instance,l=o.isSwiping,c=o.sliderStartPos.left||0;if(!0!==l)"x"==l&&(o.distanceX>0&&(o.instance.group.length<2||0===o.instance.current.index&&!o.instance.current.opts.loop)?c+=Math.pow(o.distanceX,.8):o.distanceX<0&&(o.instance.group.length<2||o.instance.current.index===o.instance.group.length-1&&!o.instance.current.opts.loop)?c-=Math.pow(-o.distanceX,.8):c+=o.distanceX),o.sliderLastPos={top:"x"==l?0:o.sliderStartPos.top+o.distanceY,left:c},o.requestId&&(n(o.requestId),o.requestId=null),o.requestId=s(function(){o.sliderLastPos&&(i.each(o.instance.slides,function(t,e){var s=e.pos-o.instance.currPos;i.fancybox.setTranslate(e.$slide,{top:o.sliderLastPos.top,left:o.sliderLastPos.left+s*o.canvasWidth+s*e.opts.gutter})}),o.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(o.distance)>10){if(o.canTap=!1,r.group.length<2&&o.opts.vertical?o.isSwiping="y":r.isDragging||!1===o.opts.vertical||"auto"===o.opts.vertical&&i(t).width()>800?o.isSwiping="x":(a=Math.abs(180*Math.atan2(o.distanceY,o.distanceX)/Math.PI),o.isSwiping=a>45&&a<135?"y":"x"),"y"===o.isSwiping&&i.fancybox.isMobile&&o.isScrollable)return void(o.isScrolling=!0);r.isDragging=o.isSwiping,o.startPoints=o.newPoints,i.each(r.slides,function(t,e){var s,n;i.fancybox.stop(e.$slide),s=i.fancybox.getTranslate(e.$slide),n=i.fancybox.getTranslate(r.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===r.current.pos&&(o.sliderStartPos.top=s.top-n.top,o.sliderStartPos.left=s.left-n.left),i.fancybox.setTranslate(e.$slide,{top:s.top-n.top,left:s.left-n.left})}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop()}},c.prototype.onPan=function(){var t=this;o(t.newPoints[0],t.realPoints[0])<(i.fancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&n(t.requestId),t.requestId=s(function(){i.fancybox.setTranslate(t.$content,t.contentLastPos)}))},c.prototype.limitMovement=function(){var t,e,i,s,n,a,o=this.canvasWidth,r=this.canvasHeight,l=this.distanceX,c=this.distanceY,h=this.contentStartPos,d=h.left,u=h.top,p=h.width,f=h.height;return n=p>o?d+l:d,a=u+c,t=Math.max(0,.5*o-.5*p),e=Math.max(0,.5*r-.5*f),i=Math.min(o-p,.5*o-.5*p),s=Math.min(r-f,.5*r-.5*f),l>0&&n>t&&(n=t-1+Math.pow(-t+d+l,.8)||0),l<0&&n<i&&(n=i+1-Math.pow(i-d-l,.8)||0),c>0&&a>e&&(a=e-1+Math.pow(-e+u+c,.8)||0),c<0&&a<s&&(a=s+1-Math.pow(s-u-c,.8)||0),{top:a,left:n}},c.prototype.limitPosition=function(t,e,i,s){var n=this.canvasWidth,a=this.canvasHeight;return t=i>n?(t=t>0?0:t)<n-i?n-i:t:Math.max(0,n/2-i/2),{top:e=s>a?(e=e>0?0:e)<a-s?a-s:e:Math.max(0,a/2-s/2),left:t}},c.prototype.onZoom=function(){var e=this,a=e.contentStartPos,r=a.width,l=a.height,c=a.left,h=a.top,d=o(e.newPoints[0],e.newPoints[1])/e.startDistanceBetweenFingers,u=Math.floor(r*d),p=Math.floor(l*d),f=(r-u)*e.percentageOfImageAtPinchPointX,m=(l-p)*e.percentageOfImageAtPinchPointY,g=(e.newPoints[0].x+e.newPoints[1].x)/2-i(t).scrollLeft(),v=(e.newPoints[0].y+e.newPoints[1].y)/2-i(t).scrollTop(),b=g-e.centerPointStartX,y={top:h+(m+(v-e.centerPointStartY)),left:c+(f+b),scaleX:d,scaleY:d};e.canTap=!1,e.newWidth=u,e.newHeight=p,e.contentLastPos=y,e.requestId&&n(e.requestId),e.requestId=s(function(){i.fancybox.setTranslate(e.$content,e.contentLastPos)})},c.prototype.ontouchend=function(t){var s=this.isSwiping,o=this.isPanning,r=this.isZooming,l=this.isScrolling;if(this.endPoints=a(t),this.dMs=Math.max((new Date).getTime()-this.startTime,1),this.$container.removeClass("fancybox-is-grabbing"),i(e).off(".fb.touch"),e.removeEventListener("scroll",this.onscroll,!0),this.requestId&&(n(this.requestId),this.requestId=null),this.isSwiping=!1,this.isPanning=!1,this.isZooming=!1,this.isScrolling=!1,this.instance.isDragging=!1,this.canTap)return this.onTap(t);this.speed=100,this.velocityX=this.distanceX/this.dMs*.5,this.velocityY=this.distanceY/this.dMs*.5,o?this.endPanning():r?this.endZooming():this.endSwiping(s,l)},c.prototype.endSwiping=function(t,e){var s=!1,n=this.instance.group.length,a=Math.abs(this.distanceX),o="x"==t&&n>1&&(this.dMs>130&&a>10||a>50);this.sliderLastPos=null,"y"==t&&!e&&Math.abs(this.distanceY)>50?(i.fancybox.animate(this.instance.current.$slide,{top:this.sliderStartPos.top+this.distanceY+150*this.velocityY,opacity:0},200),s=this.instance.close(!0,250)):o&&this.distanceX>0?s=this.instance.previous(300):o&&this.distanceX<0&&(s=this.instance.next(300)),!1!==s||"x"!=t&&"y"!=t||this.instance.centerSlide(200),this.$container.removeClass("fancybox-is-sliding")},c.prototype.endPanning=function(){var t,e,s;this.contentLastPos&&(!1===this.opts.momentum||this.dMs>350?(t=this.contentLastPos.left,e=this.contentLastPos.top):(t=this.contentLastPos.left+500*this.velocityX,e=this.contentLastPos.top+500*this.velocityY),(s=this.limitPosition(t,e,this.contentStartPos.width,this.contentStartPos.height)).width=this.contentStartPos.width,s.height=this.contentStartPos.height,i.fancybox.animate(this.$content,s,366))},c.prototype.endZooming=function(){var t,e,s,n,a=this.instance.current,o=this.newWidth,r=this.newHeight;this.contentLastPos&&(t=this.contentLastPos.left,n={top:e=this.contentLastPos.top,left:t,width:o,height:r,scaleX:1,scaleY:1},i.fancybox.setTranslate(this.$content,n),o<this.canvasWidth&&r<this.canvasHeight?this.instance.scaleToFit(150):o>a.width||r>a.height?this.instance.scaleToActual(this.centerPointStartX,this.centerPointStartY,150):(s=this.limitPosition(t,e,o,r),i.fancybox.animate(this.$content,s,150)))},c.prototype.onTap=function(e){var s,n=this,o=i(e.target),r=n.instance,l=r.current,c=e&&a(e)||n.startPoints,h=c[0]?c[0].x-i(t).scrollLeft()-n.stagePos.left:0,d=c[0]?c[0].y-i(t).scrollTop()-n.stagePos.top:0,u=function(t){var s=l.opts[t];if(i.isFunction(s)&&(s=s.apply(r,[l,e])),s)switch(s){case"close":r.close(n.startEvent);break;case"toggleControls":r.toggleControls();break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(n.startEvent);break;case"zoom":"image"==l.type&&(l.isLoaded||l.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(h,d):r.group.length<2&&r.close(n.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(o.is("img")||!(h>o[0].clientWidth+o.offset().left))){if(o.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))s="Outside";else if(o.is(".fancybox-slide"))s="Slide";else{if(!r.current.$content||!r.current.$content.find(o).addBack().filter(o).length)return;s="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,Math.abs(h-n.tapX)>50||Math.abs(d-n.tapY)>50)return this;u("dblclick"+s)}else n.tapX=h,n.tapY=d,l.opts["dblclick"+s]&&l.opts["dblclick"+s]!==l.opts["click"+s]?n.tapped=setTimeout(function(){n.tapped=null,r.isAnimating||u("click"+s)},500):u("click"+s);return this}},i(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new c(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var i=function(t){this.instance=t,this.init()};e.extend(i.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,i=t.instance,s=i.group[i.currIndex].opts.slideShow;t.$button=i.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),i.group.length<2||!s?t.$button.hide():s.progress&&(t.$progress=e('<div class="fancybox-progress"></div>').appendTo(i.$refs.inner))},set:function(t){var i=this.instance,s=i.current;s&&(!0===t||s.opts.loop||i.currIndex<i.group.length-1)?this.isActive&&"video"!==s.contentType&&(this.$progress&&e.fancybox.animate(this.$progress.show(),{scaleX:1},s.opts.slideShow.speed),this.timer=setTimeout(function(){i.current.opts.loop||i.current.index!=i.group.length-1?i.next():i.jumpTo(0)},s.opts.slideShow.speed)):(this.stop(),i.idleSecondsCounter=0,i.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this.instance.current;t&&(this.$button.attr("title",(t.opts.i18n[t.opts.lang]||t.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),this.isActive=!0,t.isComplete&&this.set(!0),this.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this.instance.current;this.clear(),this.$button.attr("title",(t.opts.i18n[t.opts.lang]||t.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),this.isActive=!1,this.instance.trigger("onSlideShowChange",!1),this.$progress&&this.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new i(e))},"beforeShow.fb":function(t,e,i,s){var n=e&&e.SlideShow;s?n&&i.opts.slideShow.autoStart&&n.start():n&&n.isActive&&n.clear()},"afterShow.fb":function(t,e,i){var s=e&&e.SlideShow;s&&s.isActive&&s.set()},"afterKeydown.fb":function(i,s,n,a,o){var r=s&&s.SlideShow;!r||!n.opts.slideShow||80!==o&&32!==o||e(t.activeElement).is("button,a,input")||(a.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var i=e&&e.SlideShow;i&&i.stop()}}),e(t).on("visibilitychange",function(){var i=e.fancybox.getInstance(),s=i&&i.SlideShow;s&&s.isActive&&(t.hidden?s.clear():s.set())})}(document,jQuery),function(t,e){"use strict";var i=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i={},s=0;s<e.length;s++){var n=e[s];if(n&&n[1]in t){for(var a=0;a<n.length;a++)i[e[0][a]]=n[a];return i}}return!1}();if(i){var s={request:function(e){(e=e||t.documentElement)[i.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[i.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[i.fullscreenElement])},enabled:function(){return Boolean(t[i.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on(i.fullscreenchange,function(){var t=s.isFullscreen(),i=e.fancybox.getInstance();i&&(i.current&&"image"===i.current.type&&i.isAnimating&&(i.isAnimating=!1,i.update(!0,!0,0),i.isComplete||i.complete()),i.trigger("onFullscreenChange",t),i.$refs.container.toggleClass("fancybox-is-fullscreen",t),i.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))})}e(t).on({"onInit.fb":function(t,e){i?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),s.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&s.request(),e.FullScreen=s):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,i,s,n){e&&e.FullScreen&&70===n&&(s.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&s.exit()}})}(document,jQuery),function(t,e){"use strict";var i="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var s=function(t){this.init(t)};e.extend(s.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,i=t.group,s=0;e.instance=t,e.opts=i[t.currIndex].opts.thumbs,t.Thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var n=0,a=i.length;n<a&&(i[n].thumb&&s++,!(s>1));n++);s>1&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var t,s=this.instance,n=this.opts.parentEl,a=[];this.$grid||(this.$grid=e('<div class="'+i+" "+i+"-"+this.opts.axis+'"></div>').appendTo(s.$refs.container.find(n).addBack().filter(n)),this.$grid.on("click","a",function(){s.jumpTo(e(this).attr("data-index"))})),this.$list||(this.$list=e('<div class="'+i+'__list">').appendTo(this.$grid)),e.each(s.group,function(e,i){(t=i.thumb)||"image"!==i.type||(t=i.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(t&&t.length?' style="background-image:url('+t+')"':'class="fancybox-thumbs-missing"')+"></a>")}),this.$list[0].innerHTML=a.join(""),"x"===this.opts.axis&&this.$list.width(parseInt(this.$grid.css("padding-right"),10)+s.group.length*this.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,i,s=this.$list,n=this.$grid;this.instance.current&&(i=(e=s.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addClass("fancybox-thumbs-active")).position(),"y"===this.opts.axis&&(i.top<0||i.top>s.height()-e.outerHeight())?s.stop().animate({scrollTop:s.scrollTop()+i.top},t):"x"===this.opts.axis&&(i.left<n.scrollLeft()||i.left>n.scrollLeft()+(n.width()-e.outerWidth()))&&s.parent().stop().animate({scrollLeft:i.left},t))},update:function(){this.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),this.isVisible?(this.$grid||this.create(),this.instance.trigger("onThumbsShow"),this.focus(0)):this.$grid&&this.instance.trigger("onThumbsHide"),this.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var i;e&&!e.Thumbs&&(i=new s(e)).isActive&&!0===i.opts.autoStart&&i.show()},"beforeShow.fb":function(t,e,i,s){var n=e&&e.Thumbs;n&&n.isVisible&&n.focus(s?0:250)},"afterKeydown.fb":function(t,e,i,s,n){var a=e&&e.Thumbs;a&&a.isActive&&71===n&&(s.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var i=e&&e.Thumbs;i&&i.isVisible&&!1!==i.opts.hideOnClose&&i.$grid.hide()}})}(document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),e(t).on("click","[data-fancybox-share]",function(){var t,i,s,n,a=e.fancybox.getInstance(),o=a.current||null;o&&("function"===e.type(o.opts.share.url)&&(t=o.opts.share.url.apply(o,[a,o])),i=o.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===o.type?encodeURIComponent(o.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,(s=t,n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},String(s).replace(/[&<>"'`=\/]/g,function(t){return n[t]}))).replace(/\{\{descr\}\}/g,a.$caption?encodeURIComponent(a.$caption.text()):""),e.fancybox.open({src:a.translate(a,i),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){a.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(t,e,i){"use strict";function s(){var e=t.location.hash.substr(1),i=e.split("-"),s=i.length>1&&/^\+?\d+$/.test(i[i.length-1])&&parseInt(i.pop(-1),10)||1;return{hash:e,index:s<1?1:s,gallery:i.join("-")}}function n(t){""!==t.gallery&&i("[data-fancybox='"+i.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function a(t){var e,i;return!!t&&(""!==(i=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&i)}i.escapeSelector||(i.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),i(function(){!1!==i.fancybox.defaults.hash&&(i(e).on({"onInit.fb":function(t,e){var i,n;!1!==e.group[e.currIndex].opts.hash&&(i=s(),(n=a(e))&&i.gallery&&n==i.gallery&&(e.currIndex=i.index-1))},"beforeShow.fb":function(i,s,n,o){var r;n&&!1!==n.opts.hash&&(r=a(s))&&(s.currentHash=r+(s.group.length>1?"-"+(n.index+1):""),t.location.hash!=="#"+s.currentHash&&(o&&!s.origHash&&(s.origHash=t.location.hash),s.hashTimer&&clearTimeout(s.hashTimer),s.hashTimer=setTimeout(function(){"replaceState"in t.history?(t.history[o?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+s.currentHash),o&&(s.hasCreatedHistory=!0)):t.location.hash=s.currentHash,s.hashTimer=null},300)))},"beforeClose.fb":function(i,s,n){n&&!1!==n.opts.hash&&(clearTimeout(s.hashTimer),s.currentHash&&s.hasCreatedHistory?t.history.back():s.currentHash&&("replaceState"in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(s.origHash||"")):t.location.hash=s.origHash),s.currentHash=null)}}),i(t).on("hashchange.fb",function(){var t=s(),e=null;i.each(i(".fancybox-container").get().reverse(),function(t,s){var n=i(s).data("FancyBox");if(n&&n.currentHash)return e=n,!1}),e?e.currentHash===t.gallery+"-"+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):""!==t.gallery&&n(t)}),setTimeout(function(){i.fancybox.getInstance()||n(s())},50))})}(window,document,jQuery),function(t,e){"use strict";var i=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,s){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var s=e.current,n=(new Date).getTime();e.group.length<2||!1===s.opts.wheel||"auto"===s.opts.wheel&&"image"!==s.type||(t.preventDefault(),t.stopPropagation(),s.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,n-i<250||(i=n,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery)},function(t,e){$(function(){$.accessibility.getStatus()||($(".navbar-collapse").on("show.bs.collapse",function(){$(".navbar-toggle").removeClass("collapsed")}).on("hide.bs.collapse",function(){$(".navbar-toggle").addClass("collapsed")}),$(document).on("pointerenter","li.dropdown-hover",function(t){"mouse"===t.originalEvent.pointerType&&$(".navbar-toggler").is(":hidden")&&!$(this).hasClass("open")&&($(this).trigger("show.bs.dropdown"),$(this).parent().parent().find("li").removeClass("show"),$(this).addClass("show"),$(this).find("> .dropdown-toggle").attr("aria-expanded","true"),$(this).find("> .dropdown-menu").addClass("show"),$(this).trigger("shown.bs.dropdown"))}),$(document).on("pointerleave","li.dropdown-hover",function(t){"mouse"===t.originalEvent.pointerType&&$(".navbar-toggler").is(":hidden")&&($(this).trigger("hide.bs.dropdown"),$(this).removeClass("show"),$(this).find("> .dropdown-toggle").attr("aria-expanded","false"),$(this).find("> .dropdown-menu").removeClass("show"),$(this).trigger("hidden.bs.dropdown"))}),$(document).on("click",".nav-link",function(t){if($(this).parent().hasClass("dropdown-hover")&&!$(this).parent().hasClass("show"))return $(this).parent().parent().find(".dropdown-hover").removeClass("show"),$(this).parent().parent().find(".dropdown-hover").find("> .dropdown-toggle").attr("aria-expanded","false"),$(this).parent().parent().find(".dropdown-hover").find("> .dropdown-menu").removeClass("show"),$(this).parent().addClass("show"),$(this).parent().find("> .dropdown-toggle").attr("aria-expanded","true"),$(this).parent().find("> .dropdown-menu").addClass("show"),t.stopImmediatePropagation(),t.preventDefault(),!1}))})},function(t,e){$(function(){function t(t){var e=t.find(".navbar-overflow-scroll"),i=Math.ceil(e.innerWidth()),s=Math.floor(e[0].scrollWidth),n=Math.floor(e.scrollLeft());(t.removeClass("navbar-overflow-hasleft"),t.removeClass("navbar-overflow-hasright"),i+15<s)&&(n>0&&t.addClass("navbar-overflow-hasleft"),i+n<s&&(t.find(".navbar-overflow-control-right").css({left:i+"px",right:"auto"}),t.addClass("navbar-overflow-hasright")))}function e(){$(".navbar-overflow").each(function(){t($(this))})}$(window).resize(function(){e()}),$(".navbar-overflow").each(function(){var e=$(this),i=$('<span class="navbar-overflow-control navbar-overflow-control-left hover-trigger"><span class="hover-item-bg ug-arrow ug-arrow-left"/></span>');i.on("click",function(i){i.preventDefault(),function(e){var i=e.find(".navbar-overflow-scroll"),s=i.innerWidth();i.animate({scrollLeft:"-="+s},250,"swing",function(){t(e)})}(e)}),e.prepend(i);var s=$('<span class="navbar-overflow-control navbar-overflow-control-right hover-trigger"><span class="hover-item-bg ug-arrow ug-arrow-right"/></span>');s.on("click",function(i){i.preventDefault(),function(e){var i=e.find(".navbar-overflow-scroll"),s=i.innerWidth();i.animate({scrollLeft:"+="+s},250,"swing",function(){t(e)})}(e)}),e.append(s),e.addClass("navbar-overflow-initialized")}),e()})},function(t,e,i){var s,n;!function(a,o){"use strict";void 0===(n="function"==typeof(s=o)?s.call(e,i,e,t):s)||(t.exports=n)}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var s=e[i]+"MatchesSelector";if(t[s])return s}}();return function(e,i){return e[t](i)}})},function(t,e,i){var s,n;!function(a,o){s=[i(2)],void 0===(n=function(t){return function(t,e){var i=e.prototype;function s(t){for(var e=document.createDocumentFragment(),i=0;t&&i<t.length;i++)e.appendChild(t[i]);return e}function n(t,e){for(var i=t.attributes,s=0;s<i.length;s++){var n=i[s];e.setAttribute(n.name,n.value)}}return e.defaults.loadOnScroll=!0,e.defaults.checkLastPage=!0,e.defaults.responseType="document",e.create.pageLoad=function(){this.canLoad=!0,this.on("scrollThreshold",this.onScrollThresholdLoad),this.on("load",this.checkLastPage),this.options.outlayer&&this.on("append",this.onAppendOutlayer)},i.onScrollThresholdLoad=function(){this.options.loadOnScroll&&this.loadNextPage()},i.loadNextPage=function(){if(!this.isLoading&&this.canLoad){var t=this.getAbsolutePath();this.isLoading=!0;var e=function(e){this.onPageLoad(e,t)}.bind(this),i=function(e){this.onPageError(e,t)}.bind(this),s=function(e){this.lastPageReached(e,t)}.bind(this);!function(t,e,i,s,n){var a=new XMLHttpRequest;a.open("GET",t,!0),a.responseType=e||"",a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.onload=function(){if(200==a.status)i(a.response);else if(204==a.status)n(a.response);else{var t=new Error(a.statusText);s(t)}},a.onerror=function(){var e=new Error("Network error requesting "+t);s(e)},a.send()}(t,this.options.responseType,e,i,s),this.dispatchEvent("request",null,[t])}},i.onPageLoad=function(t,e){return this.options.append||(this.isLoading=!1),this.pageIndex++,this.loadCount++,this.dispatchEvent("load",null,[t,e]),this.appendNextPage(t,e),t},i.appendNextPage=function(t,e){var i=this.options.append;if("document"==this.options.responseType&&i){var n=t.querySelectorAll(i),a=s(n),o=function(){this.appendItems(n,a),this.isLoading=!1,this.dispatchEvent("append",null,[t,e,n])}.bind(this);this.options.outlayer?this.appendOutlayerItems(a,o):o()}},i.appendItems=function(t,e){t&&t.length&&(function(t){for(var e=t.querySelectorAll("script"),i=0;i<e.length;i++){var s=e[i],a=document.createElement("script");n(s,a),a.innerHTML=s.innerHTML,s.parentNode.replaceChild(a,s)}}(e=e||s(t)),this.element.appendChild(e))},i.appendOutlayerItems=function(i,s){var n=e.imagesLoaded||t.imagesLoaded;if(!n)return console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),void(this.isLoading=!1);n(i,s)},i.onAppendOutlayer=function(t,e,i){this.options.outlayer.appended(i)},i.checkLastPage=function(t,e){var i=this.options.checkLastPage;if(i){var s,n=this.options.path;if("function"==typeof n&&!this.getPath())return void this.lastPageReached(t,e);"string"==typeof i?s=i:this.isPathSelector&&(s=n),s&&t.querySelector&&(t.querySelector(s)||this.lastPageReached(t,e))}},i.lastPageReached=function(t,e){this.canLoad=!1,this.dispatchEvent("last",null,[t,e])},i.onPageError=function(t,e){return this.isLoading=!1,this.canLoad=!1,this.dispatchEvent("error",null,[t,e]),t},e.create.prefill=function(){if(this.options.prefill){var t=this.options.append;t?(this.updateMeasurements(),this.updateScroller(),this.isPrefilling=!0,this.on("append",this.prefill),this.once("error",this.stopPrefill),this.once("last",this.stopPrefill),this.prefill()):console.error("append option required for prefill. Set as :"+t)}},i.prefill=function(){var t=this.getPrefillDistance();this.isPrefilling=t>=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},i.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},i.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},e}(a,t)}.apply(e,s))||(t.exports=n)}(window)},function(t,e,i){var s,n;!function(a,o){s=[i(2),i(3)],void 0===(n=function(t,e){return function(t,e,i){var s=e.prototype;return e.defaults.scrollThreshold=400,e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);var t=this.options.scrollThreshold;(t||0===t)&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},s.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},s.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},s.bindScrollWatchEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),t[i]("resize",this.resizeHandler)},s.onPageScroll=e.throttle(function(){this.getBottomDistance()<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")}),s.getBottomDistance=function(){return this.options.elementScroll?this.getElementBottomDistance():this.getWindowBottomDistance()},s.getWindowBottomDistance=function(){return this.top+this.element.clientHeight-(t.pageYOffset+this.windowHeight)},s.getElementBottomDistance=function(){return this.scroller.scrollHeight-(this.scroller.scrollTop+this.scroller.clientHeight)},s.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e}(a,t,e)}.apply(e,s))||(t.exports=n)}(window)},function(t,e,i){var s,n;!function(a,o){s=[i(2),i(3)],void 0===(n=function(t,e){return function(t,e,i){var s=e.prototype;e.defaults.history="replace";var n=document.createElement("a");return e.create.history=function(){this.options.history&&(n.href=this.getAbsolutePath(),(n.origin||n.protocol+"//"+n.host)==location.origin?this.options.append?this.createHistoryAppend():this.createHistoryPageLoad():console.error("[InfiniteScroll] cannot set history with different origin: "+n.origin+" on "+location.origin+" . History behavior disabled."))},s.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPageIndex=0,this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},s.bindHistoryAppendEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("unload",this.unloadHandler)},s.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=s.destroyHistory=function(){this.options.history&&this.options.append&&this.bindHistoryAppendEvents(!1)},s.onAppendHistory=function(t,e,i){if(i&&i.length){var s=i[0],a=this.getElementScrollY(s);n.href=e,this.scrollPages.push({top:a,path:n.href,title:t.title})}},s.getElementScrollY=function(t){return this.options.elementScroll?this.getElementElementScrollY(t):this.getElementWindowScrollY(t)},s.getElementWindowScrollY=function(e){return e.getBoundingClientRect().top+t.pageYOffset},s.getElementElementScrollY=function(t){return t.offsetTop-this.top},s.onScrollHistory=function(){for(var t,e,i=this.getScrollViewY(),s=0;s<this.scrollPages.length;s++){var n=this.scrollPages[s];if(n.top>=i)break;t=s,e=n}t!=this.scrollPageIndex&&(this.scrollPageIndex=t,this.setHistory(e.title,e.path))},i.debounceMethod(e,"onScrollHistory",150),s.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.pageYOffset+this.windowHeight/2},s.setHistory=function(t,e){var i=this.options.history;i&&history[i+"State"]&&(history[i+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},s.onUnload=function(){var e=this.scrollPageIndex;if(0!==e){var i=this.scrollPages[e],s=t.pageYOffset-i.top+this.top;this.destroyHistory(),scrollTo(0,s)}},s.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e}(a,t,e)}.apply(e,s))||(t.exports=n)}(window)},function(t,e,i){var s,n;window,s=[i(2),i(3)],void 0===(n=function(t,e){return function(t,e,i){function s(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}return e.create.button=function(){var t=i.getQueryElement(this.options.button);t&&(this.button=new s(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},s.prototype.onClick=function(t){t.preventDefault(),this.infScroll.loadNextPage()},s.prototype.enable=function(){this.element.removeAttribute("disabled")},s.prototype.disable=function(){this.element.disabled="disabled"},s.prototype.hide=function(){this.element.style.display="none"},s.prototype.destroy=function(){this.element.removeEventListener("click",this.clickHandler)},e.Button=s,e}(0,t,e)}.apply(e,s))||(t.exports=n)},function(t,e,i){var s,n;window,s=[i(2),i(3)],void 0===(n=function(t,e){return function(t,e,i){var s=e.prototype;function n(t){o(t,"none")}function a(t){o(t,"block")}function o(t,e){t&&(t.style.display=e)}return e.create.status=function(){var t=i.getQueryElement(this.options.status);t&&(this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},s.bindHideStatus=function(t){var e=this.options.append?"append":"load";this[t](e,this.hideAllStatus)},s.showRequestStatus=function(){this.showStatus("request")},s.showErrorStatus=function(){this.showStatus("error")},s.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},s.showStatus=function(t){a(this.statusElement),this.hideStatusEventElements(),a(this.statusEventElements[t])},s.hideAllStatus=function(){n(this.statusElement),this.hideStatusEventElements()},s.hideStatusEventElements=function(){for(var t in this.statusEventElements)n(this.statusEventElements[t])},e}(0,t,e)}.apply(e,s))||(t.exports=n)},function(t,e){var i=document.getElementsByTagName("body")[0],s=document.getElementById("header"),n=document.getElementById("topbar"),a=n?n.scrollHeight:0,o=document.getElementById("navbar"),r=o?o.scrollHeight:0,l=!0;($.accessibility.getStatus()||i.classList.contains("static-header"))&&(l=!1),l&&n&&n.classList.add("is-fixed"),l&&o&&window.addEventListener("scroll",function(){window.pageYOffset>s.scrollHeight-(a+r)?o.classList.add("is-fixed"):o.classList.remove("is-fixed")});var c=document.querySelector("#navbar .nav-main"),h=document.querySelector("#navbar .nav-meta");function d(){var t=window.innerHeight-(a+r);t+="px",c.style.maxHeight=t,h.style.maxHeight=t}l&&c&&h&&(window.addEventListener("resize",function(){d()}),d())},function(t,e){$(function(){$(".maincol").children("div").each(function(){var t=$(this);if(t.index()<=1&&1===t.children(".ce-textpic").length){var e=$(this).find("img");if(1===e.length&&e.attr("width")>500)$(this).find(".ce-media").addClass("ce-media-stretch")}})})},function(t,e,i){"use strict";i.r(e);var s=i(0),n=i.n(s);function a(){var t=n()(".fixed-top"),e=0;t.each(function(){e+=n()(this).outerHeight()}),console.log(e);var i=location.hash.substring(1);console.log(i);var s=n()("#"+i);if(s.length||(s=n()('[name="'+i+'"]')),console.log(s),s.length){var a=s.offset().top;console.log(a);var o=a-e;console.log(o),n()("html,body").stop().animate({scrollTop:o},500,"swing")}}location.hash&&(a(),setTimeout(function(){a()},1)),window.addEventListener("hashchange",a,!1);var o=i(4),r=i.n(o),l=document.getElementById("cookie-consent-modal");if(null!==l){var c="cookie-consent-"+l.dataset.id;if(void 0===r.a.get(c)){var h=n()("#cookie-consent-modal");h.on("hide.bs.modal",function(t){r.a.set(c,"confirmed",{expires:365})}),h.modal("show")}}var d=document.getElementById("cookie-consent-bar");if(null!==d){var u="cookie-consent-"+d.dataset.id;if(void 0===r.a.get(u)){var p=n()("#cookie-consent-bar");p.on("click",'[data-dismiss="bar"]',function(t){t.preventDefault(),r.a.set(u,"confirmed",{expires:365}),p.hide()}),d.classList.remove("d-none")}}i(20),i(21),i(22);var f="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,m="undefined"==typeof window?{document:f,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window;var g=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=0;i<e.length;i+=1)this[i]=e[i];return this.length=e.length,this};function v(t,e){var i=[],s=0;if(t&&!e&&t instanceof g)return t;if(t)if("string"==typeof t){var n,a,o=t.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var r="div";for(0===o.indexOf("<li")&&(r="ul"),0===o.indexOf("<tr")&&(r="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(r="tr"),0===o.indexOf("<tbody")&&(r="table"),0===o.indexOf("<option")&&(r="select"),(a=f.createElement(r)).innerHTML=o,s=0;s<a.childNodes.length;s+=1)i.push(a.childNodes[s])}else for(n=e||"#"!==t[0]||t.match(/[ .<>:~]/)?(e||f).querySelectorAll(t.trim()):[f.getElementById(t.trim().split("#")[1])],s=0;s<n.length;s+=1)n[s]&&i.push(n[s])}else if(t.nodeType||t===m||t===f)i.push(t);else if(t.length>0&&t[0].nodeType)for(s=0;s<t.length;s+=1)i.push(t[s]);return new g(i)}function b(t){for(var e=[],i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}v.fn=g.prototype,v.Class=g,v.Dom7=g;"resize scroll".split(" ");function y(t,e){return!e||"object"!==P(e)&&"function"!=typeof e?x(t):e}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function x(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function C(t,e,i){return e&&T(t.prototype,e),i&&T(t,i),t}function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var k={addClass:function(t){if(void 0===t)return this;for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.add(e[i]);return this},removeClass:function(t){for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.remove(e[i]);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},toggleClass:function(t){for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.toggle(e[i]);return this},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(t,e);else for(var s in t)this[i][s]=t[s],this[i].setAttribute(s,t[s]);return this},removeAttr:function(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},data:function(t,e){var i;if(void 0!==e){for(var s=0;s<this.length;s+=1)(i=this[s]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[t]=e;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&t in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[t];var n=i.getAttribute("data-".concat(t));return n||void 0}},transform:function(t){for(var e=0;e<this.length;e+=1){var i=this[e].style;i.webkitTransform=t,i.transform=t}return this},transition:function(t){"string"!=typeof t&&(t="".concat(t,"ms"));for(var e=0;e<this.length;e+=1){var i=this[e].style;i.webkitTransitionDuration=t,i.transitionDuration=t}return this},on:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var s=e[0],n=e[1],a=e[2],o=e[3];function r(t){var e=t.target;if(e){var i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),v(e).is(n))a.apply(e,i);else for(var s=v(e).parents(),o=0;o<s.length;o+=1)v(s[o]).is(n)&&a.apply(s[o],i)}}function l(t){var e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),a.apply(this,e)}"function"==typeof e[1]&&(s=e[0],a=e[1],o=e[2],n=void 0),o||(o=!1);for(var c,h=s.split(" "),d=0;d<this.length;d+=1){var u=this[d];if(n)for(c=0;c<h.length;c+=1){var p=h[c];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[p]||(u.dom7LiveListeners[p]=[]),u.dom7LiveListeners[p].push({listener:a,proxyListener:r}),u.addEventListener(p,r,o)}else for(c=0;c<h.length;c+=1){var f=h[c];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[f]||(u.dom7Listeners[f]=[]),u.dom7Listeners[f].push({listener:a,proxyListener:l}),u.addEventListener(f,l,o)}}return this},off:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var s=e[0],n=e[1],a=e[2],o=e[3];"function"==typeof e[1]&&(s=e[0],a=e[1],o=e[2],n=void 0),o||(o=!1);for(var r=s.split(" "),l=0;l<r.length;l+=1)for(var c=r[l],h=0;h<this.length;h+=1){var d=this[h],u=void 0;if(!n&&d.dom7Listeners?u=d.dom7Listeners[c]:n&&d.dom7LiveListeners&&(u=d.dom7LiveListeners[c]),u&&u.length)for(var p=u.length-1;p>=0;p-=1){var f=u[p];a&&f.listener===a?(d.removeEventListener(c,f.proxyListener,o),u.splice(p,1)):a&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===a?(d.removeEventListener(c,f.proxyListener,o),u.splice(p,1)):a||(d.removeEventListener(c,f.proxyListener,o),u.splice(p,1))}}return this},trigger:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];for(var s=e[0].split(" "),n=e[1],a=0;a<s.length;a+=1)for(var o=s[a],r=0;r<this.length;r+=1){var l=this[r],c=void 0;try{c=new m.CustomEvent(o,{detail:n,bubbles:!0,cancelable:!0})}catch(t){(c=f.createEvent("Event")).initEvent(o,!0,!0),c.detail=n}l.dom7EventData=e.filter(function(t,e){return e>0}),l.dispatchEvent(c),l.dom7EventData=[],delete l.dom7EventData}return this},transitionEnd:function(t){var e,i=["webkitTransitionEnd","transitionend"],s=this;function n(a){if(a.target===this)for(t.call(this,a),e=0;e<i.length;e+=1)s.off(i[e],n)}if(t)for(e=0;e<i.length;e+=1)s.on(i[e],n);return this},outerWidth:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var t=this[0],e=t.getBoundingClientRect(),i=f.body,s=t.clientTop||i.clientTop||0,n=t.clientLeft||i.clientLeft||0,a=t===m?m.scrollY:t.scrollTop,o=t===m?m.scrollX:t.scrollLeft;return{top:e.top+a-s,left:e.left+o-n}}return null},css:function(t,e){var i;if(1===arguments.length){if("string"!=typeof t){for(i=0;i<this.length;i+=1)for(var s in t)this[i].style[s]=t[s];return this}if(this[0])return m.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(i=0;i<this.length;i+=1)this[i].style[t]=e;return this}return this},each:function(t){if(!t)return this;for(var e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){var e,i,s=this[0];if(!s||void 0===t)return!1;if("string"==typeof t){if(s.matches)return s.matches(t);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(t);if(s.msMatchesSelector)return s.msMatchesSelector(t);for(e=v(t),i=0;i<e.length;i+=1)if(e[i]===s)return!0;return!1}if(t===f)return s===f;if(t===m)return s===m;if(t.nodeType||t instanceof g){for(e=t.nodeType?[t]:t,i=0;i<e.length;i+=1)if(e[i]===s)return!0;return!1}return!1},index:function(){var t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;var e,i=this.length;return new g(t>i-1?[]:t<0?(e=i+t)<0?[]:[this[e]]:[this[t]])},append:function(){for(var t,e=0;e<arguments.length;e+=1){t=e<0||arguments.length<=e?void 0:arguments[e];for(var i=0;i<this.length;i+=1)if("string"==typeof t){var s=f.createElement("div");for(s.innerHTML=t;s.firstChild;)this[i].appendChild(s.firstChild)}else if(t instanceof g)for(var n=0;n<t.length;n+=1)this[i].appendChild(t[n]);else this[i].appendChild(t)}return this},prepend:function(t){var e,i;for(e=0;e<this.length;e+=1)if("string"==typeof t){var s=f.createElement("div");for(s.innerHTML=t,i=s.childNodes.length-1;i>=0;i-=1)this[e].insertBefore(s.childNodes[i],this[e].childNodes[0])}else if(t instanceof g)for(i=0;i<t.length;i+=1)this[e].insertBefore(t[i],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&v(this[0].nextElementSibling).is(t)?new g([this[0].nextElementSibling]):new g([]):this[0].nextElementSibling?new g([this[0].nextElementSibling]):new g([]):new g([])},nextAll:function(t){var e=[],i=this[0];if(!i)return new g([]);for(;i.nextElementSibling;){var s=i.nextElementSibling;t?v(s).is(t)&&e.push(s):e.push(s),i=s}return new g(e)},prev:function(t){if(this.length>0){var e=this[0];return t?e.previousElementSibling&&v(e.previousElementSibling).is(t)?new g([e.previousElementSibling]):new g([]):e.previousElementSibling?new g([e.previousElementSibling]):new g([])}return new g([])},prevAll:function(t){var e=[],i=this[0];if(!i)return new g([]);for(;i.previousElementSibling;){var s=i.previousElementSibling;t?v(s).is(t)&&e.push(s):e.push(s),i=s}return new g(e)},parent:function(t){for(var e=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?v(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return v(b(e))},parents:function(t){for(var e=[],i=0;i<this.length;i+=1)for(var s=this[i].parentNode;s;)t?v(s).is(t)&&e.push(s):e.push(s),s=s.parentNode;return v(b(e))},closest:function(t){var e=this;return void 0===t?new g([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){for(var e=[],i=0;i<this.length;i+=1)for(var s=this[i].querySelectorAll(t),n=0;n<s.length;n+=1)e.push(s[n]);return new g(e)},children:function(t){for(var e=[],i=0;i<this.length;i+=1)for(var s=this[i].childNodes,n=0;n<s.length;n+=1)t?1===s[n].nodeType&&v(s[n]).is(t)&&e.push(s[n]):1===s[n].nodeType&&e.push(s[n]);return new g(b(e))},remove:function(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},add:function(){for(var t,e,i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];for(t=0;t<s.length;t+=1){var a=v(s[t]);for(e=0;e<a.length;e+=1)this[this.length]=a[e],this.length+=1}return this},styles:function(){return this[0]?m.getComputedStyle(this[0],null):{}}};Object.keys(k).forEach(function(t){v.fn[t]=v.fn[t]||k[t]});var M,L,I={deleteProps:function(t){var e=t;Object.keys(e).forEach(function(t){try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}})},nextTick:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(t,e)},now:function(){return Date.now()},getTranslate:function(t){var e,i,s,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",a=m.getComputedStyle(t,null);return m.WebKitCSSMatrix?((i=a.transform||a.webkitTransform).split(",").length>6&&(i=i.split(", ").map(function(t){return t.replace(",",".")}).join(", ")),s=new m.WebKitCSSMatrix("none"===i?"":i)):e=(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===n&&(i=m.WebKitCSSMatrix?s.m41:16===e.length?parseFloat(e[12]):parseFloat(e[4])),"y"===n&&(i=m.WebKitCSSMatrix?s.m42:16===e.length?parseFloat(e[13]):parseFloat(e[5])),i||0},parseUrlQuery:function(t){var e,i,s,n,a={},o=t||m.location.href;if("string"==typeof o&&o.length)for(n=(i=(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"").split("&").filter(function(t){return""!==t})).length,e=0;e<n;e+=1)s=i[e].replace(/#\S+/g,"").split("="),a[decodeURIComponent(s[0])]=void 0===s[1]?void 0:decodeURIComponent(s[1])||"";return a},isObject:function(t){return"object"===P(t)&&null!==t&&t.constructor&&t.constructor===Object},extend:function(){for(var t=Object(arguments.length<=0?void 0:arguments[0]),e=1;e<arguments.length;e+=1){var i=e<0||arguments.length<=e?void 0:arguments[e];if(null!=i)for(var s=Object.keys(Object(i)),n=0,a=s.length;n<a;n+=1){var o=s[n],r=Object.getOwnPropertyDescriptor(i,o);void 0!==r&&r.enumerable&&(I.isObject(t[o])&&I.isObject(i[o])?I.extend(t[o],i[o]):!I.isObject(t[o])&&I.isObject(i[o])?(t[o]={},I.extend(t[o],i[o])):t[o]=i[o])}}return t}},z=(L=f.createElement("div"),{touch:m.Modernizr&&!0===m.Modernizr.touch||!!(m.navigator.maxTouchPoints>0||"ontouchstart"in m||m.DocumentTouch&&f instanceof m.DocumentTouch),pointerEvents:!!(m.navigator.pointerEnabled||m.PointerEvent||"maxTouchPoints"in m.navigator&&m.navigator.maxTouchPoints>0),prefixedPointerEvents:!!m.navigator.msPointerEnabled,transition:(M=L.style,"transition"in M||"webkitTransition"in M||"MozTransition"in M),transforms3d:m.Modernizr&&!0===m.Modernizr.csstransforms3d||function(){var t=L.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=L.style,e="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<e.length;i+=1)if(e[i]in t)return!0;return!1}(),observer:"MutationObserver"in m||"WebkitMutationObserver"in m,passiveListener:function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});m.addEventListener("testPassiveListener",null,e)}catch(t){}return t}(),gestures:"ongesturestart"in m}),A=function(){return{isIE:!!m.navigator.userAgent.match(/Trident/g)||!!m.navigator.userAgent.match(/MSIE/g),isEdge:!!m.navigator.userAgent.match(/Edge/g),isSafari:(t=m.navigator.userAgent.toLowerCase(),t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(m.navigator.userAgent)};var t}(),D=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this,t);var i=this;i.params=e,i.eventsListeners={},i.params&&i.params.on&&Object.keys(i.params.on).forEach(function(t){i.on(t,i.params.on[t])})}return C(t,[{key:"on",value:function(t,e,i){var s=this;if("function"!=typeof e)return s;var n=i?"unshift":"push";return t.split(" ").forEach(function(t){s.eventsListeners[t]||(s.eventsListeners[t]=[]),s.eventsListeners[t][n](e)}),s}},{key:"once",value:function(t,e,i){var s=this;if("function"!=typeof e)return s;function n(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];e.apply(s,a),s.off(t,n),n.f7proxy&&delete n.f7proxy}return n.f7proxy=e,s.on(t,n,i)}},{key:"off",value:function(t,e){var i=this;return i.eventsListeners?(t.split(" ").forEach(function(t){void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].length&&i.eventsListeners[t].forEach(function(s,n){(s===e||s.f7proxy&&s.f7proxy===e)&&i.eventsListeners[t].splice(n,1)})}),i):i}},{key:"emit",value:function(){var t,e,i,s=this;if(!s.eventsListeners)return s;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],e=a.slice(1,a.length),i=s):(t=a[0].events,e=a[0].data,i=a[0].context||s),(Array.isArray(t)?t:t.split(" ")).forEach(function(t){if(s.eventsListeners&&s.eventsListeners[t]){var n=[];s.eventsListeners[t].forEach(function(t){n.push(t)}),n.forEach(function(t){t.apply(i,e)})}}),s}},{key:"useModulesParams",value:function(t){var e=this;e.modules&&Object.keys(e.modules).forEach(function(i){var s=e.modules[i];s.params&&I.extend(t,s.params)})}},{key:"useModules",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this;e.modules&&Object.keys(e.modules).forEach(function(i){var s=e.modules[i],n=t[i]||{};s.instance&&Object.keys(s.instance).forEach(function(t){var i=s.instance[t];e[t]="function"==typeof i?i.bind(e):i}),s.on&&e.on&&Object.keys(s.on).forEach(function(t){e.on(t,s.on[t])}),s.create&&s.create.bind(e)(n)})}}],[{key:"installModule",value:function(t){var e=this;e.prototype.modules||(e.prototype.modules={});var i=t.name||"".concat(Object.keys(e.prototype.modules).length,"_").concat(I.now());if(e.prototype.modules[i]=t,t.proto&&Object.keys(t.proto).forEach(function(i){e.prototype[i]=t.proto[i]}),t.static&&Object.keys(t.static).forEach(function(i){e[i]=t.static[i]}),t.install){for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];t.install.apply(e,n)}return e}},{key:"use",value:function(t){var e=this;if(Array.isArray(t))return t.forEach(function(t){return e.installModule(t)}),e;for(var i=arguments.length,s=new Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];return e.installModule.apply(e,[t].concat(s))}},{key:"components",set:function(t){this.use&&this.use(t)}}]),t}();var O={updateSize:function(){var t,e,i=this.$el;t=void 0!==this.params.width?this.params.width:i[0].clientWidth,e=void 0!==this.params.height?this.params.height:i[0].clientHeight,0===t&&this.isHorizontal()||0===e&&this.isVertical()||(t=t-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),e=e-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),I.extend(this,{width:t,height:e,size:this.isHorizontal()?t:e}))},updateSlides:function(){var t=this.params,e=this.$wrapperEl,i=this.size,s=this.rtlTranslate,n=this.wrongRTL,a=this.virtual&&t.virtual.enabled,o=a?this.virtual.slides.length:this.slides.length,r=e.children(".".concat(this.params.slideClass)),l=a?this.virtual.slides.length:r.length,c=[],h=[],d=[],u=t.slidesOffsetBefore;"function"==typeof u&&(u=t.slidesOffsetBefore.call(this));var p=t.slidesOffsetAfter;"function"==typeof p&&(p=t.slidesOffsetAfter.call(this));var f=this.snapGrid.length,g=this.snapGrid.length,v=t.spaceBetween,b=-u,y=0,w=0;if(void 0!==i){var x,S;"string"==typeof v&&v.indexOf("%")>=0&&(v=parseFloat(v.replace("%",""))/100*i),this.virtualSize=-v,s?r.css({marginLeft:"",marginTop:""}):r.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(x=Math.floor(l/t.slidesPerColumn)===l/this.params.slidesPerColumn?l:Math.ceil(l/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(x=Math.max(x,t.slidesPerView*t.slidesPerColumn)));for(var E,T=t.slidesPerColumn,C=x/T,P=Math.floor(l/t.slidesPerColumn),$=0;$<l;$+=1){S=0;var k=r.eq($);if(t.slidesPerColumn>1){var M=void 0,L=void 0,D=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)D=$-(L=Math.floor($/T))*T,(L>P||L===P&&D===T-1)&&(D+=1)>=T&&(D=0,L+=1);else{var O=Math.floor($/t.slidesPerGroup);L=$-(D=Math.floor($/t.slidesPerView)-O*t.slidesPerColumn)*t.slidesPerView-O*t.slidesPerView}M=L+D*x/T,k.css({"-webkit-box-ordinal-group":M,"-moz-box-ordinal-group":M,"-ms-flex-order":M,"-webkit-order":M,order:M})}else L=$-(D=Math.floor($/C))*C;k.css("margin-".concat(this.isHorizontal()?"top":"left"),0!==D&&t.spaceBetween&&"".concat(t.spaceBetween,"px")).attr("data-swiper-column",L).attr("data-swiper-row",D)}if("none"!==k.css("display")){if("auto"===t.slidesPerView){var H=m.getComputedStyle(k[0],null),_=k[0].style.transform,B=k[0].style.webkitTransform;if(_&&(k[0].style.transform="none"),B&&(k[0].style.webkitTransform="none"),t.roundLengths)S=this.isHorizontal()?k.outerWidth(!0):k.outerHeight(!0);else if(this.isHorizontal()){var F=parseFloat(H.getPropertyValue("width")),R=parseFloat(H.getPropertyValue("padding-left")),Y=parseFloat(H.getPropertyValue("padding-right")),q=parseFloat(H.getPropertyValue("margin-left")),W=parseFloat(H.getPropertyValue("margin-right")),N=H.getPropertyValue("box-sizing");S=N&&"border-box"===N&&!A.isIE?F+q+W:F+R+Y+q+W}else{var X=parseFloat(H.getPropertyValue("height")),V=parseFloat(H.getPropertyValue("padding-top")),j=parseFloat(H.getPropertyValue("padding-bottom")),G=parseFloat(H.getPropertyValue("margin-top")),U=parseFloat(H.getPropertyValue("margin-bottom")),Q=H.getPropertyValue("box-sizing");S=Q&&"border-box"===Q&&!A.isIE?X+G+U:X+V+j+G+U}_&&(k[0].style.transform=_),B&&(k[0].style.webkitTransform=B),t.roundLengths&&(S=Math.floor(S))}else S=(i-(t.slidesPerView-1)*v)/t.slidesPerView,t.roundLengths&&(S=Math.floor(S)),r[$]&&(this.isHorizontal()?r[$].style.width="".concat(S,"px"):r[$].style.height="".concat(S,"px"));r[$]&&(r[$].swiperSlideSize=S),d.push(S),t.centeredSlides?(b=b+S/2+y/2+v,0===y&&0!==$&&(b=b-i/2-v),0===$&&(b=b-i/2-v),Math.abs(b)<.001&&(b=0),t.roundLengths&&(b=Math.floor(b)),w%t.slidesPerGroup==0&&c.push(b),h.push(b)):(t.roundLengths&&(b=Math.floor(b)),w%t.slidesPerGroup==0&&c.push(b),h.push(b),b=b+S+v),this.virtualSize+=S+v,y=S,w+=1}}if(this.virtualSize=Math.max(this.virtualSize,i)+p,s&&n&&("slide"===t.effect||"coverflow"===t.effect)&&e.css({width:"".concat(this.virtualSize+t.spaceBetween,"px")}),z.flexbox&&!t.setWrapperSize||(this.isHorizontal()?e.css({width:"".concat(this.virtualSize+t.spaceBetween,"px")}):e.css({height:"".concat(this.virtualSize+t.spaceBetween,"px")})),t.slidesPerColumn>1&&(this.virtualSize=(S+t.spaceBetween)*x,this.virtualSize=Math.ceil(this.virtualSize/t.slidesPerColumn)-t.spaceBetween,this.isHorizontal()?e.css({width:"".concat(this.virtualSize+t.spaceBetween,"px")}):e.css({height:"".concat(this.virtualSize+t.spaceBetween,"px")}),t.centeredSlides)){E=[];for(var K=0;K<c.length;K+=1){var Z=c[K];t.roundLengths&&(Z=Math.floor(Z)),c[K]<this.virtualSize+c[0]&&E.push(Z)}c=E}if(!t.centeredSlides){E=[];for(var J=0;J<c.length;J+=1){var tt=c[J];t.roundLengths&&(tt=Math.floor(tt)),c[J]<=this.virtualSize-i&&E.push(tt)}c=E,Math.floor(this.virtualSize-i)-Math.floor(c[c.length-1])>1&&c.push(this.virtualSize-i)}if(0===c.length&&(c=[0]),0!==t.spaceBetween&&(this.isHorizontal()?s?r.css({marginLeft:"".concat(v,"px")}):r.css({marginRight:"".concat(v,"px")}):r.css({marginBottom:"".concat(v,"px")})),t.centerInsufficientSlides){var et=0;if(d.forEach(function(e){et+=e+(t.spaceBetween?t.spaceBetween:0)}),(et-=t.spaceBetween)<i){var it=(i-et)/2;c.forEach(function(t,e){c[e]=t-it}),h.forEach(function(t,e){h[e]=t+it})}}I.extend(this,{slides:r,snapGrid:c,slidesGrid:h,slidesSizesGrid:d}),l!==o&&this.emit("slidesLengthChange"),c.length!==f&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),h.length!==g&&this.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(t){var e,i=[],s=0;if("number"==typeof t?this.setTransition(t):!0===t&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)for(e=0;e<Math.ceil(this.params.slidesPerView);e+=1){var n=this.activeIndex+e;if(n>this.slides.length)break;i.push(this.slides.eq(n)[0])}else i.push(this.slides.eq(this.activeIndex)[0]);for(e=0;e<i.length;e+=1)if(void 0!==i[e]){var a=i[e].offsetHeight;s=a>s?a:s}s&&this.$wrapperEl.css("height","".concat(s,"px"))},updateSlidesOffset:function(){for(var t=this.slides,e=0;e<t.length;e+=1)t[e].swiperSlideOffset=this.isHorizontal()?t[e].offsetLeft:t[e].offsetTop},updateSlidesProgress:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,e=this.params,i=this.slides,s=this.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();var n=-t;s&&(n=t),i.removeClass(e.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var a=0;a<i.length;a+=1){var o=i[a],r=(n+(e.centeredSlides?this.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+e.spaceBetween);if(e.watchSlidesVisibility){var l=-(n-o.swiperSlideOffset),c=l+this.slidesSizesGrid[a];(l>=0&&l<this.size-1||c>1&&c<=this.size||l<=0&&c>=this.size)&&(this.visibleSlides.push(o),this.visibleSlidesIndexes.push(a),i.eq(a).addClass(e.slideVisibleClass))}o.progress=s?-r:r}this.visibleSlides=v(this.visibleSlides)}},updateProgress:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,e=this.params,i=this.maxTranslate()-this.minTranslate(),s=this.progress,n=this.isBeginning,a=this.isEnd,o=n,r=a;0===i?(s=0,n=!0,a=!0):(n=(s=(t-this.minTranslate())/i)<=0,a=s>=1),I.extend(this,{progress:s,isBeginning:n,isEnd:a}),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesProgress(t),n&&!o&&this.emit("reachBeginning toEdge"),a&&!r&&this.emit("reachEnd toEdge"),(o&&!n||r&&!a)&&this.emit("fromEdge"),this.emit("progress",s)},updateSlidesClasses:function(){var t,e=this.slides,i=this.params,s=this.$wrapperEl,n=this.activeIndex,a=this.realIndex,o=this.virtual&&i.virtual.enabled;e.removeClass("".concat(i.slideActiveClass," ").concat(i.slideNextClass," ").concat(i.slidePrevClass," ").concat(i.slideDuplicateActiveClass," ").concat(i.slideDuplicateNextClass," ").concat(i.slideDuplicatePrevClass)),(t=o?this.$wrapperEl.find(".".concat(i.slideClass,'[data-swiper-slide-index="').concat(n,'"]')):e.eq(n)).addClass(i.slideActiveClass),i.loop&&(t.hasClass(i.slideDuplicateClass)?s.children(".".concat(i.slideClass,":not(.").concat(i.slideDuplicateClass,')[data-swiper-slide-index="').concat(a,'"]')).addClass(i.slideDuplicateActiveClass):s.children(".".concat(i.slideClass,".").concat(i.slideDuplicateClass,'[data-swiper-slide-index="').concat(a,'"]')).addClass(i.slideDuplicateActiveClass));var r=t.nextAll(".".concat(i.slideClass)).eq(0).addClass(i.slideNextClass);i.loop&&0===r.length&&(r=e.eq(0)).addClass(i.slideNextClass);var l=t.prevAll(".".concat(i.slideClass)).eq(0).addClass(i.slidePrevClass);i.loop&&0===l.length&&(l=e.eq(-1)).addClass(i.slidePrevClass),i.loop&&(r.hasClass(i.slideDuplicateClass)?s.children(".".concat(i.slideClass,":not(.").concat(i.slideDuplicateClass,')[data-swiper-slide-index="').concat(r.attr("data-swiper-slide-index"),'"]')).addClass(i.slideDuplicateNextClass):s.children(".".concat(i.slideClass,".").concat(i.slideDuplicateClass,'[data-swiper-slide-index="').concat(r.attr("data-swiper-slide-index"),'"]')).addClass(i.slideDuplicateNextClass),l.hasClass(i.slideDuplicateClass)?s.children(".".concat(i.slideClass,":not(.").concat(i.slideDuplicateClass,')[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(i.slideDuplicatePrevClass):s.children(".".concat(i.slideClass,".").concat(i.slideDuplicateClass,'[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(i.slideDuplicatePrevClass))},updateActiveIndex:function(t){var e,i=this.rtlTranslate?this.translate:-this.translate,s=this.slidesGrid,n=this.snapGrid,a=this.params,o=this.activeIndex,r=this.realIndex,l=this.snapIndex,c=t;if(void 0===c){for(var h=0;h<s.length;h+=1)void 0!==s[h+1]?i>=s[h]&&i<s[h+1]-(s[h+1]-s[h])/2?c=h:i>=s[h]&&i<s[h+1]&&(c=h+1):i>=s[h]&&(c=h);a.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if((e=n.indexOf(i)>=0?n.indexOf(i):Math.floor(c/a.slidesPerGroup))>=n.length&&(e=n.length-1),c!==o){var d=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);I.extend(this,{snapIndex:e,realIndex:d,previousIndex:o,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),r!==d&&this.emit("realIndexChange"),(this.initialized||this.runCallbacksOnInit)&&this.emit("slideChange")}else e!==l&&(this.snapIndex=e,this.emit("snapIndexChange"))},updateClickedSlide:function(t){var e=this.params,i=v(t.target).closest(".".concat(e.slideClass))[0],s=!1;if(i)for(var n=0;n<this.slides.length;n+=1)this.slides[n]===i&&(s=!0);if(!i||!s)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=i,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(v(i).attr("data-swiper-slide-index"),10):this.clickedIndex=v(i).index(),e.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}};var H={getTranslate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",e=this.params,i=this.rtlTranslate,s=this.translate,n=this.$wrapperEl;if(e.virtualTranslate)return i?-s:s;var a=I.getTranslate(n[0],t);return i&&(a=-a),a||0},setTranslate:function(t,e){var i=this.rtlTranslate,s=this.params,n=this.$wrapperEl,a=this.progress,o=0,r=0;this.isHorizontal()?o=i?-t:t:r=t,s.roundLengths&&(o=Math.floor(o),r=Math.floor(r)),s.virtualTranslate||(z.transforms3d?n.transform("translate3d(".concat(o,"px, ").concat(r,"px, ").concat(0,"px)")):n.transform("translate(".concat(o,"px, ").concat(r,"px)"))),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?o:r;var l=this.maxTranslate()-this.minTranslate();(0===l?0:(t-this.minTranslate())/l)!==a&&this.updateProgress(t),this.emit("setTranslate",this.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var _={setTransition:function(t,e){this.$wrapperEl.transition(t),this.emit("setTransition",t,e)},transitionStart:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1?arguments[1]:void 0,i=this.activeIndex,s=this.params,n=this.previousIndex;s.autoHeight&&this.updateAutoHeight();var a=e;if(a||(a=i>n?"next":i<n?"prev":"reset"),this.emit("transitionStart"),t&&i!==n){if("reset"===a)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===a?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}},transitionEnd:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1?arguments[1]:void 0,i=this.activeIndex,s=this.previousIndex;this.animating=!1,this.setTransition(0);var n=e;if(n||(n=i>s?"next":i<s?"prev":"reset"),this.emit("transitionEnd"),t&&i!==s){if("reset"===n)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===n?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}};var B={slideTo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=arguments.length>3?arguments[3]:void 0,n=this,a=t;a<0&&(a=0);var o=n.params,r=n.snapGrid,l=n.slidesGrid,c=n.previousIndex,h=n.activeIndex,d=n.rtlTranslate;if(n.animating&&o.preventInteractionOnTransition)return!1;var u=Math.floor(a/o.slidesPerGroup);u>=r.length&&(u=r.length-1),(h||o.initialSlide||0)===(c||0)&&i&&n.emit("beforeSlideChangeStart");var p,f=-r[u];if(n.updateProgress(f),o.normalizeSlideIndex)for(var m=0;m<l.length;m+=1)-Math.floor(100*f)>=Math.floor(100*l[m])&&(a=m);if(n.initialized&&a!==h){if(!n.allowSlideNext&&f<n.translate&&f<n.minTranslate())return!1;if(!n.allowSlidePrev&&f>n.translate&&f>n.maxTranslate()&&(h||0)!==a)return!1}return p=a>h?"next":a<h?"prev":"reset",d&&-f===n.translate||!d&&f===n.translate?(n.updateActiveIndex(a),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),"slide"!==o.effect&&n.setTranslate(f),"reset"!==p&&(n.transitionStart(i,p),n.transitionEnd(i,p)),!1):(0!==e&&z.transition?(n.setTransition(e),n.setTranslate(f),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,s),n.transitionStart(i,p),n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(t){n&&!n.destroyed&&t.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,p))}),n.$wrapperEl[0].addEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd))):(n.setTransition(0),n.setTranslate(f),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,s),n.transitionStart(i,p),n.transitionEnd(i,p)),!0)},slideToLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=arguments.length>3?arguments[3]:void 0,n=t;return this.params.loop&&(n+=this.loopedSlides),this.slideTo(n,e,i,s)},slideNext:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0,s=this.params,n=this.animating;return s.loop?!n&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,this.slideTo(this.activeIndex+s.slidesPerGroup,t,e,i)):this.slideTo(this.activeIndex+s.slidesPerGroup,t,e,i)},slidePrev:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0,s=this.params,n=this.animating,a=this.snapGrid,o=this.slidesGrid,r=this.rtlTranslate;if(s.loop){if(n)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function l(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}var c,h=l(r?this.translate:-this.translate),d=a.map(function(t){return l(t)}),u=(o.map(function(t){return l(t)}),a[d.indexOf(h)],a[d.indexOf(h)-1]);return void 0!==u&&(c=o.indexOf(u))<0&&(c=this.activeIndex-1),this.slideTo(c,t,e,i)},slideReset:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;return this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0,s=this.activeIndex,n=Math.floor(s/this.params.slidesPerGroup);if(n<this.snapGrid.length-1){var a=this.rtlTranslate?this.translate:-this.translate,o=this.snapGrid[n];a-o>(this.snapGrid[n+1]-o)/2&&(s=this.params.slidesPerGroup)}return this.slideTo(s,t,e,i)},slideToClickedSlide:function(){var t,e=this,i=e.params,s=e.$wrapperEl,n="auto"===i.slidesPerView?e.slidesPerViewDynamic():i.slidesPerView,a=e.clickedIndex;if(i.loop){if(e.animating)return;t=parseInt(v(e.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?a<e.loopedSlides-n/2||a>e.slides.length-e.loopedSlides+n/2?(e.loopFix(),a=s.children(".".concat(i.slideClass,'[data-swiper-slide-index="').concat(t,'"]:not(.').concat(i.slideDuplicateClass,")")).eq(0).index(),I.nextTick(function(){e.slideTo(a)})):e.slideTo(a):a>e.slides.length-n?(e.loopFix(),a=s.children(".".concat(i.slideClass,'[data-swiper-slide-index="').concat(t,'"]:not(.').concat(i.slideDuplicateClass,")")).eq(0).index(),I.nextTick(function(){e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}};var F={loopCreate:function(){var t=this,e=t.params,i=t.$wrapperEl;i.children(".".concat(e.slideClass,".").concat(e.slideDuplicateClass)).remove();var s=i.children(".".concat(e.slideClass));if(e.loopFillGroupWithBlank){var n=e.slidesPerGroup-s.length%e.slidesPerGroup;if(n!==e.slidesPerGroup){for(var a=0;a<n;a+=1){var o=v(f.createElement("div")).addClass("".concat(e.slideClass," ").concat(e.slideBlankClass));i.append(o)}s=i.children(".".concat(e.slideClass))}}"auto"!==e.slidesPerView||e.loopedSlides||(e.loopedSlides=s.length),t.loopedSlides=parseInt(e.loopedSlides||e.slidesPerView,10),t.loopedSlides+=e.loopAdditionalSlides,t.loopedSlides>s.length&&(t.loopedSlides=s.length);var r=[],l=[];s.each(function(e,i){var n=v(i);e<t.loopedSlides&&l.push(i),e<s.length&&e>=s.length-t.loopedSlides&&r.push(i),n.attr("data-swiper-slide-index",e)});for(var c=0;c<l.length;c+=1)i.append(v(l[c].cloneNode(!0)).addClass(e.slideDuplicateClass));for(var h=r.length-1;h>=0;h-=1)i.prepend(v(r[h].cloneNode(!0)).addClass(e.slideDuplicateClass))},loopFix:function(){var t,e=this.params,i=this.activeIndex,s=this.slides,n=this.loopedSlides,a=this.allowSlidePrev,o=this.allowSlideNext,r=this.snapGrid,l=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var c=-r[i]-this.getTranslate();i<n?(t=s.length-3*n+i,t+=n,this.slideTo(t,0,!1,!0)&&0!==c&&this.setTranslate((l?-this.translate:this.translate)-c)):("auto"===e.slidesPerView&&i>=2*n||i>=s.length-n)&&(t=-s.length+i+n,t+=n,this.slideTo(t,0,!1,!0)&&0!==c&&this.setTranslate((l?-this.translate:this.translate)-c));this.allowSlidePrev=a,this.allowSlideNext=o},loopDestroy:function(){var t=this.$wrapperEl,e=this.params,i=this.slides;t.children(".".concat(e.slideClass,".").concat(e.slideDuplicateClass,",.").concat(e.slideClass,".").concat(e.slideBlankClass)).remove(),i.removeAttr("data-swiper-slide-index")}};var R={setGrabCursor:function(t){if(!(z.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var e=this.el;e.style.cursor="move",e.style.cursor=t?"-webkit-grabbing":"-webkit-grab",e.style.cursor=t?"-moz-grabbin":"-moz-grab",e.style.cursor=t?"grabbing":"grab"}},unsetGrabCursor:function(){z.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}};var Y={appendSlide:function(t){var e=this.$wrapperEl,i=this.params;if(i.loop&&this.loopDestroy(),"object"===P(t)&&"length"in t)for(var s=0;s<t.length;s+=1)t[s]&&e.append(t[s]);else e.append(t);i.loop&&this.loopCreate(),i.observer&&z.observer||this.update()},prependSlide:function(t){var e=this.params,i=this.$wrapperEl,s=this.activeIndex;e.loop&&this.loopDestroy();var n=s+1;if("object"===P(t)&&"length"in t){for(var a=0;a<t.length;a+=1)t[a]&&i.prepend(t[a]);n=s+t.length}else i.prepend(t);e.loop&&this.loopCreate(),e.observer&&z.observer||this.update(),this.slideTo(n,0,!1)},addSlide:function(t,e){var i=this.$wrapperEl,s=this.params,n=this.activeIndex;s.loop&&(n-=this.loopedSlides,this.loopDestroy(),this.slides=i.children(".".concat(s.slideClass)));var a=this.slides.length;if(t<=0)this.prependSlide(e);else if(t>=a)this.appendSlide(e);else{for(var o=n>t?n+1:n,r=[],l=a-1;l>=t;l-=1){var c=this.slides.eq(l);c.remove(),r.unshift(c)}if("object"===P(e)&&"length"in e){for(var h=0;h<e.length;h+=1)e[h]&&i.append(e[h]);o=n>t?n+e.length:n}else i.append(e);for(var d=0;d<r.length;d+=1)i.append(r[d]);s.loop&&this.loopCreate(),s.observer&&z.observer||this.update(),s.loop?this.slideTo(o+this.loopedSlides,0,!1):this.slideTo(o,0,!1)}},removeSlide:function(t){var e=this.params,i=this.$wrapperEl,s=this.activeIndex;e.loop&&(s-=this.loopedSlides,this.loopDestroy(),this.slides=i.children(".".concat(e.slideClass)));var n,a=s;if("object"===P(t)&&"length"in t){for(var o=0;o<t.length;o+=1)n=t[o],this.slides[n]&&this.slides.eq(n).remove(),n<a&&(a-=1);a=Math.max(a,0)}else n=t,this.slides[n]&&this.slides.eq(n).remove(),n<a&&(a-=1),a=Math.max(a,0);e.loop&&this.loopCreate(),e.observer&&z.observer||this.update(),e.loop?this.slideTo(a+this.loopedSlides,0,!1):this.slideTo(a,0,!1)},removeAllSlides:function(){for(var t=[],e=0;e<this.slides.length;e+=1)t.push(e);this.removeSlide(t)}},q=function(){var t=m.navigator.userAgent,e={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:m.cordova||m.phonegap,phonegap:m.cordova||m.phonegap},i=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),s=t.match(/(Android);?[\s\/]+([\d.]+)?/),n=t.match(/(iPad).*OS\s([\d_]+)/),a=t.match(/(iPod)(.*OS\s([\d_]+))?/),o=!n&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(i&&(e.os="windows",e.osVersion=i[2],e.windows=!0),s&&!i&&(e.os="android",e.osVersion=s[2],e.android=!0,e.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(n||o||a)&&(e.os="ios",e.ios=!0),o&&!a&&(e.osVersion=o[2].replace(/_/g,"."),e.iphone=!0),n&&(e.osVersion=n[2].replace(/_/g,"."),e.ipad=!0),a&&(e.osVersion=a[3]?a[3].replace(/_/g,"."):null,e.iphone=!0),e.ios&&e.osVersion&&t.indexOf("Version/")>=0&&"10"===e.osVersion.split(".")[0]&&(e.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),e.desktop=!(e.os||e.android||e.webView),e.webView=(o||n||a)&&t.match(/.*AppleWebKit(?!.*Safari)/i),e.os&&"ios"===e.os){var r=e.osVersion.split("."),l=f.querySelector('meta[name="viewport"]');e.minimalUi=!e.webView&&(a||o)&&(1*r[0]==7?1*r[1]>=1:1*r[0]>7)&&l&&l.getAttribute("content").indexOf("minimal-ui")>=0}return e.pixelRatio=m.devicePixelRatio||1,e}();function W(){var t=this.params,e=this.el;if(!e||0!==e.offsetWidth){t.breakpoints&&this.setBreakpoint();var i=this.allowSlideNext,s=this.allowSlidePrev,n=this.snapGrid;if(this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),t.freeMode){var a=Math.min(Math.max(this.translate,this.maxTranslate()),this.minTranslate());this.setTranslate(a),this.updateActiveIndex(),this.updateSlidesClasses(),t.autoHeight&&this.updateAutoHeight()}else this.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0);this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=s,this.allowSlideNext=i,this.params.watchOverflow&&n!==this.snapGrid&&this.checkOverflow()}}var N={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},X={update:O,translate:H,transition:_,slide:B,loop:F,grabCursor:R,manipulation:Y,events:{attachEvents:function(){var t=this.params,e=this.touchEvents,i=this.el,s=this.wrapperEl;this.onTouchStart=function(t){var e=this.touchEventsData,i=this.params,s=this.touches;if(!this.animating||!i.preventInteractionOnTransition){var n=t;if(n.originalEvent&&(n=n.originalEvent),e.isTouchEvent="touchstart"===n.type,(e.isTouchEvent||!("which"in n)||3!==n.which)&&!(!e.isTouchEvent&&"button"in n&&n.button>0||e.isTouched&&e.isMoved))if(i.noSwiping&&v(n.target).closest(i.noSwipingSelector?i.noSwipingSelector:".".concat(i.noSwipingClass))[0])this.allowClick=!0;else if(!i.swipeHandler||v(n).closest(i.swipeHandler)[0]){s.currentX="touchstart"===n.type?n.targetTouches[0].pageX:n.pageX,s.currentY="touchstart"===n.type?n.targetTouches[0].pageY:n.pageY;var a=s.currentX,o=s.currentY,r=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,l=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(!r||!(a<=l||a>=m.screen.width-l)){if(I.extend(e,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=a,s.startY=o,e.touchStartTime=I.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,i.threshold>0&&(e.allowThresholdMove=!1),"touchstart"!==n.type){var c=!0;v(n.target).is(e.formElements)&&(c=!1),f.activeElement&&v(f.activeElement).is(e.formElements)&&f.activeElement!==n.target&&f.activeElement.blur();var h=c&&this.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||h)&&n.preventDefault()}this.emit("touchStart",n)}}}}.bind(this),this.onTouchMove=function(t){var e=this.touchEventsData,i=this.params,s=this.touches,n=this.rtlTranslate,a=t;if(a.originalEvent&&(a=a.originalEvent),e.isTouched){if(!e.isTouchEvent||"mousemove"!==a.type){var o="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,r="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY;if(a.preventedByNestedSwiper)return s.startX=o,void(s.startY=r);if(!this.allowTouchMove)return this.allowClick=!1,void(e.isTouched&&(I.extend(s,{startX:o,startY:r,currentX:o,currentY:r}),e.touchStartTime=I.now()));if(e.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(this.isVertical()){if(r<s.startY&&this.translate<=this.maxTranslate()||r>s.startY&&this.translate>=this.minTranslate())return e.isTouched=!1,void(e.isMoved=!1)}else if(o<s.startX&&this.translate<=this.maxTranslate()||o>s.startX&&this.translate>=this.minTranslate())return;if(e.isTouchEvent&&f.activeElement&&a.target===f.activeElement&&v(a.target).is(e.formElements))return e.isMoved=!0,void(this.allowClick=!1);if(e.allowTouchCallbacks&&this.emit("touchMove",a),!(a.targetTouches&&a.targetTouches.length>1)){s.currentX=o,s.currentY=r;var l,c=s.currentX-s.startX,h=s.currentY-s.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(c,2)+Math.pow(h,2))<this.params.threshold))if(void 0===e.isScrolling&&(this.isHorizontal()&&s.currentY===s.startY||this.isVertical()&&s.currentX===s.startX?e.isScrolling=!1:c*c+h*h>=25&&(l=180*Math.atan2(Math.abs(h),Math.abs(c))/Math.PI,e.isScrolling=this.isHorizontal()?l>i.touchAngle:90-l>i.touchAngle)),e.isScrolling&&this.emit("touchMoveOpposite",a),void 0===e.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(e.startMoving=!0)),e.isScrolling)e.isTouched=!1;else if(e.startMoving){this.allowClick=!1,a.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&a.stopPropagation(),e.isMoved||(i.loop&&this.loopFix(),e.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),e.allowMomentumBounce=!1,!i.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",a)),this.emit("sliderMove",a),e.isMoved=!0;var d=this.isHorizontal()?c:h;s.diff=d,d*=i.touchRatio,n&&(d=-d),this.swipeDirection=d>0?"prev":"next",e.currentTranslate=d+e.startTranslate;var u=!0,p=i.resistanceRatio;if(i.touchReleaseOnEdges&&(p=0),d>0&&e.currentTranslate>this.minTranslate()?(u=!1,i.resistance&&(e.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+e.startTranslate+d,p))):d<0&&e.currentTranslate<this.maxTranslate()&&(u=!1,i.resistance&&(e.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-e.startTranslate-d,p))),u&&(a.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&e.currentTranslate<e.startTranslate&&(e.currentTranslate=e.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&e.currentTranslate>e.startTranslate&&(e.currentTranslate=e.startTranslate),i.threshold>0){if(!(Math.abs(d)>i.threshold||e.allowThresholdMove))return void(e.currentTranslate=e.startTranslate);if(!e.allowThresholdMove)return e.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,e.currentTranslate=e.startTranslate,void(s.diff=this.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}i.followFinger&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),i.freeMode&&(0===e.velocities.length&&e.velocities.push({position:s[this.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:s[this.isHorizontal()?"currentX":"currentY"],time:I.now()})),this.updateProgress(e.currentTranslate),this.setTranslate(e.currentTranslate))}}}}else e.startMoving&&e.isScrolling&&this.emit("touchMoveOpposite",a)}.bind(this),this.onTouchEnd=function(t){var e=this,i=e.touchEventsData,s=e.params,n=e.touches,a=e.rtlTranslate,o=e.$wrapperEl,r=e.slidesGrid,l=e.snapGrid,c=t;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var h,d=I.now(),u=d-i.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(c),e.emit("tap",c),u<300&&d-i.lastClickTime>300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),i.clickTimeout=I.nextTick(function(){e&&!e.destroyed&&e.emit("click",c)},300)),u<300&&d-i.lastClickTime<300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),e.emit("doubleTap",c))),i.lastClickTime=I.now(),I.nextTick(function(){e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||0===n.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,h=s.followFinger?a?e.translate:-e.translate:-i.currentTranslate,s.freeMode){if(h<-e.minTranslate())return void e.slideTo(e.activeIndex);if(h>-e.maxTranslate())return void(e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1));if(s.freeModeMomentum){if(i.velocities.length>1){var p=i.velocities.pop(),f=i.velocities.pop(),m=p.position-f.position,g=p.time-f.time;e.velocity=m/g,e.velocity/=2,Math.abs(e.velocity)<s.freeModeMinimumVelocity&&(e.velocity=0),(g>150||I.now()-p.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=s.freeModeMomentumVelocityRatio,i.velocities.length=0;var v=1e3*s.freeModeMomentumRatio,b=e.velocity*v,y=e.translate+b;a&&(y=-y);var w,x,S=!1,E=20*Math.abs(e.velocity)*s.freeModeMomentumBounceRatio;if(y<e.maxTranslate())s.freeModeMomentumBounce?(y+e.maxTranslate()<-E&&(y=e.maxTranslate()-E),w=e.maxTranslate(),S=!0,i.allowMomentumBounce=!0):y=e.maxTranslate(),s.loop&&s.centeredSlides&&(x=!0);else if(y>e.minTranslate())s.freeModeMomentumBounce?(y-e.minTranslate()>E&&(y=e.minTranslate()+E),w=e.minTranslate(),S=!0,i.allowMomentumBounce=!0):y=e.minTranslate(),s.loop&&s.centeredSlides&&(x=!0);else if(s.freeModeSticky){for(var T,C=0;C<l.length;C+=1)if(l[C]>-y){T=C;break}y=-(y=Math.abs(l[T]-y)<Math.abs(l[T-1]-y)||"next"===e.swipeDirection?l[T]:l[T-1])}if(x&&e.once("transitionEnd",function(){e.loopFix()}),0!==e.velocity)v=a?Math.abs((-y-e.translate)/e.velocity):Math.abs((y-e.translate)/e.velocity);else if(s.freeModeSticky)return void e.slideToClosest();s.freeModeMomentumBounce&&S?(e.updateProgress(w),e.setTransition(v),e.setTranslate(y),e.transitionStart(!0,e.swipeDirection),e.animating=!0,o.transitionEnd(function(){e&&!e.destroyed&&i.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(s.speed),e.setTranslate(w),o.transitionEnd(function(){e&&!e.destroyed&&e.transitionEnd()}))})):e.velocity?(e.updateProgress(y),e.setTransition(v),e.setTranslate(y),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,o.transitionEnd(function(){e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(y),e.updateActiveIndex(),e.updateSlidesClasses()}else if(s.freeModeSticky)return void e.slideToClosest();(!s.freeModeMomentum||u>=s.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var P=0,$=e.slidesSizesGrid[0],k=0;k<r.length;k+=s.slidesPerGroup)void 0!==r[k+s.slidesPerGroup]?h>=r[k]&&h<r[k+s.slidesPerGroup]&&(P=k,$=r[k+s.slidesPerGroup]-r[k]):h>=r[k]&&(P=k,$=r[r.length-1]-r[r.length-2]);var M=(h-r[P])/$;if(u>s.longSwipesMs){if(!s.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(M>=s.longSwipesRatio?e.slideTo(P+s.slidesPerGroup):e.slideTo(P)),"prev"===e.swipeDirection&&(M>1-s.longSwipesRatio?e.slideTo(P+s.slidesPerGroup):e.slideTo(P))}else{if(!s.shortSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(P+s.slidesPerGroup),"prev"===e.swipeDirection&&e.slideTo(P)}}}.bind(this),this.onClick=function(t){this.allowClick||(this.params.preventClicks&&t.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}.bind(this);var n="container"===t.touchEventsTarget?i:s,a=!!t.nested;if(z.touch||!z.pointerEvents&&!z.prefixedPointerEvents){if(z.touch){var o=!("touchstart"!==e.start||!z.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};n.addEventListener(e.start,this.onTouchStart,o),n.addEventListener(e.move,this.onTouchMove,z.passiveListener?{passive:!1,capture:a}:a),n.addEventListener(e.end,this.onTouchEnd,o)}(t.simulateTouch&&!q.ios&&!q.android||t.simulateTouch&&!z.touch&&q.ios)&&(n.addEventListener("mousedown",this.onTouchStart,!1),f.addEventListener("mousemove",this.onTouchMove,a),f.addEventListener("mouseup",this.onTouchEnd,!1))}else n.addEventListener(e.start,this.onTouchStart,!1),f.addEventListener(e.move,this.onTouchMove,a),f.addEventListener(e.end,this.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&n.addEventListener("click",this.onClick,!0),this.on(q.ios||q.android?"resize orientationchange observerUpdate":"resize observerUpdate",W,!0)},detachEvents:function(){var t=this.params,e=this.touchEvents,i=this.el,s=this.wrapperEl,n="container"===t.touchEventsTarget?i:s,a=!!t.nested;if(z.touch||!z.pointerEvents&&!z.prefixedPointerEvents){if(z.touch){var o=!("onTouchStart"!==e.start||!z.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};n.removeEventListener(e.start,this.onTouchStart,o),n.removeEventListener(e.move,this.onTouchMove,a),n.removeEventListener(e.end,this.onTouchEnd,o)}(t.simulateTouch&&!q.ios&&!q.android||t.simulateTouch&&!z.touch&&q.ios)&&(n.removeEventListener("mousedown",this.onTouchStart,!1),f.removeEventListener("mousemove",this.onTouchMove,a),f.removeEventListener("mouseup",this.onTouchEnd,!1))}else n.removeEventListener(e.start,this.onTouchStart,!1),f.removeEventListener(e.move,this.onTouchMove,a),f.removeEventListener(e.end,this.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&n.removeEventListener("click",this.onClick,!0),this.off(q.ios||q.android?"resize orientationchange observerUpdate":"resize observerUpdate",W)}},breakpoints:{setBreakpoint:function(){var t=this.activeIndex,e=this.initialized,i=this.loopedSlides,s=void 0===i?0:i,n=this.params,a=n.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var o=this.getBreakpoint(a);if(o&&this.currentBreakpoint!==o){var r=o in a?a[o]:void 0;r&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(t){var e=r[t];void 0!==e&&(r[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")});var l=r||this.originalParams,c=l.direction&&l.direction!==n.direction,h=n.loop&&(l.slidesPerView!==n.slidesPerView||c);c&&e&&this.changeDirection(),I.extend(this.params,l),I.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=o,h&&e&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(t-s+this.loopedSlides,0,!1)),this.emit("breakpoint",l)}}},getBreakpoint:function(t){if(t){var e=!1,i=[];Object.keys(t).forEach(function(t){i.push(t)}),i.sort(function(t,e){return parseInt(t,10)-parseInt(e,10)});for(var s=0;s<i.length;s+=1){var n=i[s];this.params.breakpointsInverse?n<=m.innerWidth&&(e=n):n>=m.innerWidth&&!e&&(e=n)}return e||"max"}}},checkOverflow:{checkOverflow:function(){var t=this.isLocked;this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var t=this.classNames,e=this.params,i=this.rtl,s=this.$el,n=[];n.push("initialized"),n.push(e.direction),e.freeMode&&n.push("free-mode"),z.flexbox||n.push("no-flexbox"),e.autoHeight&&n.push("autoheight"),i&&n.push("rtl"),e.slidesPerColumn>1&&n.push("multirow"),q.android&&n.push("android"),q.ios&&n.push("ios"),(A.isIE||A.isEdge)&&(z.pointerEvents||z.prefixedPointerEvents)&&n.push("wp8-".concat(e.direction)),n.forEach(function(i){t.push(e.containerModifierClass+i)}),s.addClass(t.join(" "))},removeClasses:function(){var t=this.$el,e=this.classNames;t.removeClass(e.join(" "))}},images:{loadImage:function(t,e,i,s,n,a){var o;function r(){a&&a()}t.complete&&n?r():e?((o=new m.Image).onload=r,o.onerror=r,s&&(o.sizes=s),i&&(o.srcset=i),e&&(o.src=e)):r()},preloadImages:function(){var t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(var i=0;i<t.imagesToLoad.length;i+=1){var s=t.imagesToLoad[i];t.loadImage(s,s.currentSrc||s.getAttribute("src"),s.srcset||s.getAttribute("srcset"),s.sizes||s.getAttribute("sizes"),!0,e)}}}},V={},j=function(t){function e(){var t,i,s;E(this,e);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];1===a.length&&a[0].constructor&&a[0].constructor===Object?s=a[0]:(i=a[0],s=a[1]),s||(s={}),s=I.extend({},s),i&&!s.el&&(s.el=i),t=y(this,w(e).call(this,s)),Object.keys(X).forEach(function(t){Object.keys(X[t]).forEach(function(i){e.prototype[i]||(e.prototype[i]=X[t][i])})});var r=x(t);void 0===r.modules&&(r.modules={}),Object.keys(r.modules).forEach(function(t){var e=r.modules[t];if(e.params){var i=Object.keys(e.params)[0],n=e.params[i];if("object"!==P(n)||null===n)return;if(!(i in s&&"enabled"in n))return;!0===s[i]&&(s[i]={enabled:!0}),"object"!==P(s[i])||"enabled"in s[i]||(s[i].enabled=!0),s[i]||(s[i]={enabled:!1})}});var l=I.extend({},N);r.useModulesParams(l),r.params=I.extend({},l,V,s),r.originalParams=I.extend({},r.params),r.passedParams=I.extend({},s),r.$=v;var c=v(r.params.el);if(!(i=c[0]))return y(t,void 0);if(c.length>1){var h=[];return c.each(function(t,i){var n=I.extend({},s,{el:i});h.push(new e(n))}),y(t,h)}i.swiper=r,c.data("swiper",r);var d,u,p=c.children(".".concat(r.params.wrapperClass));return I.extend(r,{$el:c,el:i,$wrapperEl:p,wrapperEl:p[0],classNames:[],slides:v(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===r.params.direction},isVertical:function(){return"vertical"===r.params.direction},rtl:"rtl"===i.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===r.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===c.css("direction")),wrongRTL:"-webkit-box"===p.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:(d=["touchstart","touchmove","touchend"],u=["mousedown","mousemove","mouseup"],z.pointerEvents?u=["pointerdown","pointermove","pointerup"]:z.prefixedPointerEvents&&(u=["MSPointerDown","MSPointerMove","MSPointerUp"]),r.touchEventsTouch={start:d[0],move:d[1],end:d[2]},r.touchEventsDesktop={start:u[0],move:u[1],end:u[2]},z.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:I.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.useModules(),r.params.init&&r.init(),y(t,r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&S(t,e)}(e,D),C(e,[{key:"slidesPerViewDynamic",value:function(){var t=this.params,e=this.slides,i=this.slidesGrid,s=this.size,n=this.activeIndex,a=1;if(t.centeredSlides){for(var o,r=e[n].swiperSlideSize,l=n+1;l<e.length;l+=1)e[l]&&!o&&(a+=1,(r+=e[l].swiperSlideSize)>s&&(o=!0));for(var c=n-1;c>=0;c-=1)e[c]&&!o&&(a+=1,(r+=e[c].swiperSlideSize)>s&&(o=!0))}else for(var h=n+1;h<e.length;h+=1)i[h]-i[n]<s&&(a+=1);return a}},{key:"update",value:function(){var t=this;if(t&&!t.destroyed){var e=t.snapGrid,i=t.params;i.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(s(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||s(),i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}function s(){var e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}}},{key:"changeDirection",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.params.direction;return t||(t="horizontal"===i?"vertical":"horizontal"),t===i||"horizontal"!==t&&"vertical"!==t?this:(this.$el.removeClass("".concat(this.params.containerModifierClass).concat(i," wp8-").concat(i)).addClass("".concat(this.params.containerModifierClass).concat(t)),(A.isIE||A.isEdge)&&(z.pointerEvents||z.prefixedPointerEvents)&&this.$el.addClass("".concat(this.params.containerModifierClass,"wp8-").concat(t)),this.params.direction=t,this.slides.each(function(e,i){"vertical"===t?i.style.width="":i.style.height=""}),this.emit("changeDirection"),e&&this.update(),this)}},{key:"init",value:function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))}},{key:"destroy",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,s=i.params,n=i.$el,a=i.$wrapperEl,o=i.slides;return void 0===i.params||i.destroyed?null:(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),e&&(i.removeClasses(),n.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(function(t){i.off(t)}),!1!==t&&(i.$el[0].swiper=null,i.$el.data("swiper",null),I.deleteProps(i)),i.destroyed=!0,null)}}],[{key:"extendDefaults",value:function(t){I.extend(V,t)}},{key:"extendedDefaults",get:function(){return V}},{key:"defaults",get:function(){return N}},{key:"Class",get:function(){return D}},{key:"$",get:function(){return v}}]),e}(),G={name:"device",proto:{device:q},static:{device:q}},U={name:"support",proto:{support:z},static:{support:z}},Q={name:"browser",proto:{browser:A},static:{browser:A}},K={name:"resize",create:function(){var t=this;I.extend(t,{resize:{resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(){m.addEventListener("resize",this.resize.resizeHandler),m.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){m.removeEventListener("resize",this.resize.resizeHandler),m.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},Z={func:m.MutationObserver||m.WebkitMutationObserver,attach:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this,s=new(0,Z.func)(function(t){if(1!==t.length){var e=function(){i.emit("observerUpdate",t[0])};m.requestAnimationFrame?m.requestAnimationFrame(e):m.setTimeout(e,0)}else i.emit("observerUpdate",t[0])});s.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),i.observer.observers.push(s)},init:function(){if(z.observer&&this.params.observer){if(this.params.observeParents)for(var t=this.$el.parents(),e=0;e<t.length;e+=1)this.observer.attach(t[e]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(t){t.disconnect()}),this.observer.observers=[]}},J={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){I.extend(this,{observer:{init:Z.init.bind(this),attach:Z.attach.bind(this),destroy:Z.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},tt={update:function(t){var e=this,i=e.params,s=i.slidesPerView,n=i.slidesPerGroup,a=i.centeredSlides,o=e.params.virtual,r=o.addSlidesBefore,l=o.addSlidesAfter,c=e.virtual,h=c.from,d=c.to,u=c.slides,p=c.slidesGrid,f=c.renderSlide,m=c.offset;e.updateActiveIndex();var g,v,b,y=e.activeIndex||0;g=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",a?(v=Math.floor(s/2)+n+r,b=Math.floor(s/2)+n+l):(v=s+(n-1)+r,b=n+l);var w=Math.max((y||0)-b,0),x=Math.min((y||0)+v,u.length-1),S=(e.slidesGrid[w]||0)-(e.slidesGrid[0]||0);function E(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(I.extend(e.virtual,{from:w,to:x,offset:S,slidesGrid:e.slidesGrid}),h===w&&d===x&&!t)return e.slidesGrid!==p&&S!==m&&e.slides.css(g,"".concat(S,"px")),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:S,from:w,to:x,slides:function(){for(var t=[],e=w;e<=x;e+=1)t.push(u[e]);return t}()}),void E();var T=[],C=[];if(t)e.$wrapperEl.find(".".concat(e.params.slideClass)).remove();else for(var P=h;P<=d;P+=1)(P<w||P>x)&&e.$wrapperEl.find(".".concat(e.params.slideClass,'[data-swiper-slide-index="').concat(P,'"]')).remove();for(var $=0;$<u.length;$+=1)$>=w&&$<=x&&(void 0===d||t?C.push($):($>d&&C.push($),$<h&&T.push($)));C.forEach(function(t){e.$wrapperEl.append(f(u[t],t))}),T.sort(function(t,e){return e-t}).forEach(function(t){e.$wrapperEl.prepend(f(u[t],t))}),e.$wrapperEl.children(".swiper-slide").css(g,"".concat(S,"px")),E()},renderSlide:function(t,e){var i=this.params.virtual;if(i.cache&&this.virtual.cache[e])return this.virtual.cache[e];var s=i.renderSlide?v(i.renderSlide.call(this,t,e)):v('<div class="'.concat(this.params.slideClass,'" data-swiper-slide-index="').concat(e,'">').concat(t,"</div>"));return s.attr("data-swiper-slide-index")||s.attr("data-swiper-slide-index",e),i.cache&&(this.virtual.cache[e]=s),s},appendSlide:function(t){if("object"===P(t)&&"length"in t)for(var e=0;e<t.length;e+=1)t[e]&&this.virtual.slides.push(t[e]);else this.virtual.slides.push(t);this.virtual.update(!0)},prependSlide:function(t){var e=this.activeIndex,i=e+1,s=1;if(Array.isArray(t)){for(var n=0;n<t.length;n+=1)t[n]&&this.virtual.slides.unshift(t[n]);i=e+t.length,s=t.length}else this.virtual.slides.unshift(t);if(this.params.virtual.cache){var a=this.virtual.cache,o={};Object.keys(a).forEach(function(t){o[parseInt(t,10)+s]=a[t]}),this.virtual.cache=o}this.virtual.update(!0),this.slideTo(i,0)},removeSlide:function(t){if(null!=t){var e=this.activeIndex;if(Array.isArray(t))for(var i=t.length-1;i>=0;i-=1)this.virtual.slides.splice(t[i],1),this.params.virtual.cache&&delete this.virtual.cache[t[i]],t[i]<e&&(e-=1),e=Math.max(e,0);else this.virtual.slides.splice(t,1),this.params.virtual.cache&&delete this.virtual.cache[t],t<e&&(e-=1),e=Math.max(e,0);this.virtual.update(!0),this.slideTo(e,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},et={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){I.extend(this,{virtual:{update:tt.update.bind(this),appendSlide:tt.appendSlide.bind(this),prependSlide:tt.prependSlide.bind(this),removeSlide:tt.removeSlide.bind(this),removeAllSlides:tt.removeAllSlides.bind(this),renderSlide:tt.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push("".concat(this.params.containerModifierClass,"virtual"));var t={watchSlidesProgress:!0};I.extend(this.params,t),I.extend(this.originalParams,t),this.params.initialSlide||this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},it={handle:function(t){var e=this.rtlTranslate,i=t;i.originalEvent&&(i=i.originalEvent);var s=i.keyCode||i.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===s||this.isVertical()&&40===s||34===s))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===s||this.isVertical()&&38===s||33===s))return!1;if(!(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||f.activeElement&&f.activeElement.nodeName&&("input"===f.activeElement.nodeName.toLowerCase()||"textarea"===f.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(33===s||34===s||37===s||39===s||38===s||40===s)){var n=!1;if(this.$el.parents(".".concat(this.params.slideClass)).length>0&&0===this.$el.parents(".".concat(this.params.slideActiveClass)).length)return;var a=m.innerWidth,o=m.innerHeight,r=this.$el.offset();e&&(r.left-=this.$el[0].scrollLeft);for(var l=[[r.left,r.top],[r.left+this.width,r.top],[r.left,r.top+this.height],[r.left+this.width,r.top+this.height]],c=0;c<l.length;c+=1){var h=l[c];h[0]>=0&&h[0]<=a&&h[1]>=0&&h[1]<=o&&(n=!0)}if(!n)return}this.isHorizontal()?(33!==s&&34!==s&&37!==s&&39!==s||(i.preventDefault?i.preventDefault():i.returnValue=!1),(34!==s&&39!==s||e)&&(33!==s&&37!==s||!e)||this.slideNext(),(33!==s&&37!==s||e)&&(34!==s&&39!==s||!e)||this.slidePrev()):(33!==s&&34!==s&&38!==s&&40!==s||(i.preventDefault?i.preventDefault():i.returnValue=!1),34!==s&&40!==s||this.slideNext(),33!==s&&38!==s||this.slidePrev()),this.emit("keyPress",s)}},enable:function(){this.keyboard.enabled||(v(f).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(v(f).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},st={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){I.extend(this,{keyboard:{enabled:!1,enable:it.enable.bind(this),disable:it.disable.bind(this),handle:it.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var nt={lastScrollTime:I.now(),event:m.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var t="onwheel"in f;if(!t){var e=f.createElement("div");e.setAttribute("onwheel","return;"),t="function"==typeof e.onwheel}return!t&&f.implementation&&f.implementation.hasFeature&&!0!==f.implementation.hasFeature("","")&&(t=f.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize:function(t){var e=0,i=0,s=0,n=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),s=10*e,n=10*i,"deltaY"in t&&(n=t.deltaY),"deltaX"in t&&(s=t.deltaX),(s||n)&&t.deltaMode&&(1===t.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!e&&(e=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:e,spinY:i,pixelX:s,pixelY:n}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(t){var e=t,i=this,s=i.params.mousewheel;if(!i.mouseEntered&&!s.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);var n=0,a=i.rtlTranslate?-1:1,o=nt.normalize(e);if(s.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(o.pixelX)>Math.abs(o.pixelY)))return!0;n=o.pixelX*a}else{if(!(Math.abs(o.pixelY)>Math.abs(o.pixelX)))return!0;n=o.pixelY}else n=Math.abs(o.pixelX)>Math.abs(o.pixelY)?-o.pixelX*a:-o.pixelY;if(0===n)return!0;if(s.invert&&(n=-n),i.params.freeMode){i.params.loop&&i.loopFix();var r=i.getTranslate()+n*s.sensitivity,l=i.isBeginning,c=i.isEnd;if(r>=i.minTranslate()&&(r=i.minTranslate()),r<=i.maxTranslate()&&(r=i.maxTranslate()),i.setTransition(0),i.setTranslate(r),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!l&&i.isBeginning||!c&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=I.nextTick(function(){i.slideToClosest()},300)),i.emit("scroll",e),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),r===i.minTranslate()||r===i.maxTranslate())return!0}else{if(I.now()-i.mousewheel.lastScrollTime>60)if(n<0)if(i.isEnd&&!i.params.loop||i.animating){if(s.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",e);else if(i.isBeginning&&!i.params.loop||i.animating){if(s.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",e);i.mousewheel.lastScrollTime=(new m.Date).getTime()}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},enable:function(){if(!nt.event)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=v(this.params.mousewheel.eventsTarged)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(nt.event,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){if(!nt.event)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=v(this.params.mousewheel.eventsTarged)),t.off(nt.event,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},at={update:function(){var t=this.params.navigation;if(!this.params.loop){var e=this.navigation,i=e.$nextEl,s=e.$prevEl;s&&s.length>0&&(this.isBeginning?s.addClass(t.disabledClass):s.removeClass(t.disabledClass),s[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(this.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(t){t.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(t){t.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var t,e,i=this.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(t=v(i.nextEl),this.params.uniqueNavElements&&"string"==typeof i.nextEl&&t.length>1&&1===this.$el.find(i.nextEl).length&&(t=this.$el.find(i.nextEl))),i.prevEl&&(e=v(i.prevEl),this.params.uniqueNavElements&&"string"==typeof i.prevEl&&e.length>1&&1===this.$el.find(i.prevEl).length&&(e=this.$el.find(i.prevEl))),t&&t.length>0&&t.on("click",this.navigation.onNextClick),e&&e.length>0&&e.on("click",this.navigation.onPrevClick),I.extend(this.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:e,prevEl:e&&e[0]}))},destroy:function(){var t=this.navigation,e=t.$nextEl,i=t.$prevEl;e&&e.length&&(e.off("click",this.navigation.onNextClick),e.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click",this.navigation.onPrevClick),i.removeClass(this.params.navigation.disabledClass))}},ot={update:function(){var t=this.rtl,e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,s=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,n=this.pagination.$el,a=this.params.loop?Math.ceil((s-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((i=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>s-1-2*this.loopedSlides&&(i-=s-2*this.loopedSlides),i>a-1&&(i-=a),i<0&&"bullets"!==this.params.paginationType&&(i=a+i)):i=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===e.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,r,l,c=this.pagination.bullets;if(e.dynamicBullets&&(this.pagination.bulletSize=c.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),n.css(this.isHorizontal()?"width":"height","".concat(this.pagination.bulletSize*(e.dynamicMainBullets+4),"px")),e.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=i-this.previousIndex,this.pagination.dynamicBulletIndex>e.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=e.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),o=i-this.pagination.dynamicBulletIndex,l=((r=o+(Math.min(c.length,e.dynamicMainBullets)-1))+o)/2),c.removeClass("".concat(e.bulletActiveClass," ").concat(e.bulletActiveClass,"-next ").concat(e.bulletActiveClass,"-next-next ").concat(e.bulletActiveClass,"-prev ").concat(e.bulletActiveClass,"-prev-prev ").concat(e.bulletActiveClass,"-main")),n.length>1)c.each(function(t,s){var n=v(s),a=n.index();a===i&&n.addClass(e.bulletActiveClass),e.dynamicBullets&&(a>=o&&a<=r&&n.addClass("".concat(e.bulletActiveClass,"-main")),a===o&&n.prev().addClass("".concat(e.bulletActiveClass,"-prev")).prev().addClass("".concat(e.bulletActiveClass,"-prev-prev")),a===r&&n.next().addClass("".concat(e.bulletActiveClass,"-next")).next().addClass("".concat(e.bulletActiveClass,"-next-next")))});else if(c.eq(i).addClass(e.bulletActiveClass),e.dynamicBullets){for(var h=c.eq(o),d=c.eq(r),u=o;u<=r;u+=1)c.eq(u).addClass("".concat(e.bulletActiveClass,"-main"));h.prev().addClass("".concat(e.bulletActiveClass,"-prev")).prev().addClass("".concat(e.bulletActiveClass,"-prev-prev")),d.next().addClass("".concat(e.bulletActiveClass,"-next")).next().addClass("".concat(e.bulletActiveClass,"-next-next"))}if(e.dynamicBullets){var p=Math.min(c.length,e.dynamicMainBullets+4),f=(this.pagination.bulletSize*p-this.pagination.bulletSize)/2-l*this.pagination.bulletSize,m=t?"right":"left";c.css(this.isHorizontal()?m:"top","".concat(f,"px"))}}if("fraction"===e.type&&(n.find(".".concat(e.currentClass)).text(e.formatFractionCurrent(i+1)),n.find(".".concat(e.totalClass)).text(e.formatFractionTotal(a))),"progressbar"===e.type){var g;g=e.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var b=(i+1)/a,y=1,w=1;"horizontal"===g?y=b:w=b,n.find(".".concat(e.progressbarFillClass)).transform("translate3d(0,0,0) scaleX(".concat(y,") scaleY(").concat(w,")")).transition(this.params.speed)}"custom"===e.type&&e.renderCustom?(n.html(e.renderCustom(this,i+1,a)),this.emit("paginationRender",this,n[0])):this.emit("paginationUpdate",this,n[0]),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)}},render:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,s="";if("bullets"===t.type){for(var n=this.params.loop?Math.ceil((e-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,a=0;a<n;a+=1)t.renderBullet?s+=t.renderBullet.call(this,a,t.bulletClass):s+="<".concat(t.bulletElement,' class="').concat(t.bulletClass,'"></').concat(t.bulletElement,">");i.html(s),this.pagination.bullets=i.find(".".concat(t.bulletClass))}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(this,t.currentClass,t.totalClass):'<span class="'.concat(t.currentClass,'"></span>')+" / "+'<span class="'.concat(t.totalClass,'"></span>'),i.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(this,t.progressbarFillClass):'<span class="'.concat(t.progressbarFillClass,'"></span>'),i.html(s)),"custom"!==t.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var t=this,e=t.params.pagination;if(e.el){var i=v(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&1===t.$el.find(e.el).length&&(i=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(i.addClass("".concat(e.modifierClass).concat(e.type,"-dynamic")),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click",".".concat(e.bulletClass),function(e){e.preventDefault();var i=v(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)}),I.extend(t.pagination,{$el:i,el:i[0]}))}},destroy:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.pagination.$el;e.removeClass(t.hiddenClass),e.removeClass(t.modifierClass+t.type),this.pagination.bullets&&this.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&e.off("click",".".concat(t.bulletClass))}}},rt={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=this.rtlTranslate,i=this.progress,s=t.dragSize,n=t.trackSize,a=t.$dragEl,o=t.$el,r=this.params.scrollbar,l=s,c=(n-s)*i;e?(c=-c)>0?(l=s-c,c=0):-c+s>n&&(l=n+c):c<0?(l=s+c,c=0):c+s>n&&(l=n-c),this.isHorizontal()?(z.transforms3d?a.transform("translate3d(".concat(c,"px, 0, 0)")):a.transform("translateX(".concat(c,"px)")),a[0].style.width="".concat(l,"px")):(z.transforms3d?a.transform("translate3d(0px, ".concat(c,"px, 0)")):a.transform("translateY(".concat(c,"px)")),a[0].style.height="".concat(l,"px")),r.hide&&(clearTimeout(this.scrollbar.timeout),o[0].style.opacity=1,this.scrollbar.timeout=setTimeout(function(){o[0].style.opacity=0,o.transition(400)},1e3))}},setTransition:function(t){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(t)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=t.$dragEl,i=t.$el;e[0].style.width="",e[0].style.height="";var s,n=this.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,a=this.size/this.virtualSize,o=a*(n/this.size);s="auto"===this.params.scrollbar.dragSize?n*a:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?e[0].style.width="".concat(s,"px"):e[0].style.height="".concat(s,"px"),i[0].style.display=a>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),I.extend(t,{trackSize:n,divider:a,moveDivider:o,dragSize:s}),t.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX||t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY||t.clientY},setDragPosition:function(t){var e,i=this.scrollbar,s=this.rtlTranslate,n=i.$el,a=i.dragSize,o=i.trackSize,r=i.dragStartPos;e=(i.getPointerPosition(t)-n.offset()[this.isHorizontal()?"left":"top"]-(null!==r?r:a/2))/(o-a),e=Math.max(Math.min(e,1),0),s&&(e=1-e);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*e;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(t){var e=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,n=i.$el,a=i.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=t.target===a[0]||t.target===a?i.getPointerPosition(t)-t.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),s.transition(100),a.transition(100),i.setDragPosition(t),clearTimeout(this.scrollbar.dragTimeout),n.transition(0),e.hide&&n.css("opacity",1),this.emit("scrollbarDragStart",t)},onDragMove:function(t){var e=this.scrollbar,i=this.$wrapperEl,s=e.$el,n=e.$dragEl;this.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,e.setDragPosition(t),i.transition(0),s.transition(0),n.transition(0),this.emit("scrollbarDragMove",t))},onDragEnd:function(t){var e=this.params.scrollbar,i=this.scrollbar.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,e.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=I.nextTick(function(){i.css("opacity",0),i.transition(400)},1e3)),this.emit("scrollbarDragEnd",t),e.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.touchEventsTouch,i=this.touchEventsDesktop,s=this.params,n=t.$el[0],a=!(!z.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},o=!(!z.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};z.touch?(n.addEventListener(e.start,this.scrollbar.onDragStart,a),n.addEventListener(e.move,this.scrollbar.onDragMove,a),n.addEventListener(e.end,this.scrollbar.onDragEnd,o)):(n.addEventListener(i.start,this.scrollbar.onDragStart,a),f.addEventListener(i.move,this.scrollbar.onDragMove,a),f.addEventListener(i.end,this.scrollbar.onDragEnd,o))}},disableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.touchEventsTouch,i=this.touchEventsDesktop,s=this.params,n=t.$el[0],a=!(!z.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},o=!(!z.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};z.touch?(n.removeEventListener(e.start,this.scrollbar.onDragStart,a),n.removeEventListener(e.move,this.scrollbar.onDragMove,a),n.removeEventListener(e.end,this.scrollbar.onDragEnd,o)):(n.removeEventListener(i.start,this.scrollbar.onDragStart,a),f.removeEventListener(i.move,this.scrollbar.onDragMove,a),f.removeEventListener(i.end,this.scrollbar.onDragEnd,o))}},init:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.$el,i=this.params.scrollbar,s=v(i.el);this.params.uniqueNavElements&&"string"==typeof i.el&&s.length>1&&1===e.find(i.el).length&&(s=e.find(i.el));var n=s.find(".".concat(this.params.scrollbar.dragClass));0===n.length&&(n=v('<div class="'.concat(this.params.scrollbar.dragClass,'"></div>')),s.append(n)),I.extend(t,{$el:s,el:s[0],$dragEl:n,dragEl:n[0]}),i.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},lt={setTransform:function(t,e){var i=this.rtl,s=v(t),n=i?-1:1,a=s.attr("data-swiper-parallax")||"0",o=s.attr("data-swiper-parallax-x"),r=s.attr("data-swiper-parallax-y"),l=s.attr("data-swiper-parallax-scale"),c=s.attr("data-swiper-parallax-opacity");if(o||r?(o=o||"0",r=r||"0"):this.isHorizontal()?(o=a,r="0"):(r=a,o="0"),o=o.indexOf("%")>=0?"".concat(parseInt(o,10)*e*n,"%"):"".concat(o*e*n,"px"),r=r.indexOf("%")>=0?"".concat(parseInt(r,10)*e,"%"):"".concat(r*e,"px"),null!=c){var h=c-(c-1)*(1-Math.abs(e));s[0].style.opacity=h}if(null==l)s.transform("translate3d(".concat(o,", ").concat(r,", 0px)"));else{var d=l-(l-1)*(1-Math.abs(e));s.transform("translate3d(".concat(o,", ").concat(r,", 0px) scale(").concat(d,")"))}},setTranslate:function(){var t=this,e=t.$el,i=t.slides,s=t.progress,n=t.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){t.parallax.setTransform(i,s)}),i.each(function(e,i){var a=i.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(a+=Math.ceil(e/2)-s*(n.length-1)),a=Math.min(Math.max(a,-1),1),v(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){t.parallax.setTransform(i,a)})})},setTransition:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed;this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){var s=v(i),n=parseInt(s.attr("data-swiper-parallax-duration"),10)||t;0===t&&(n=0),s.transition(n)})}},ct={getDistanceBetweenTouches:function(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY,s=t.targetTouches[1].pageX,n=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(s-e,2)+Math.pow(n-i,2))},onGestureStart:function(t){var e=this.params.zoom,i=this.zoom,s=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!z.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;i.fakeGestureTouched=!0,s.scaleStart=ct.getDistanceBetweenTouches(t)}s.$slideEl&&s.$slideEl.length||(s.$slideEl=v(t.target).closest(".swiper-slide"),0===s.$slideEl.length&&(s.$slideEl=this.slides.eq(this.activeIndex)),s.$imageEl=s.$slideEl.find("img, svg, canvas"),s.$imageWrapEl=s.$imageEl.parent(".".concat(e.containerClass)),s.maxRatio=s.$imageWrapEl.attr("data-swiper-zoom")||e.maxRatio,0!==s.$imageWrapEl.length)?(s.$imageEl.transition(0),this.zoom.isScaling=!0):s.$imageEl=void 0},onGestureChange:function(t){var e=this.params.zoom,i=this.zoom,s=i.gesture;if(!z.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;i.fakeGestureMoved=!0,s.scaleMove=ct.getDistanceBetweenTouches(t)}s.$imageEl&&0!==s.$imageEl.length&&(z.gestures?i.scale=t.scale*i.currentScale:i.scale=s.scaleMove/s.scaleStart*i.currentScale,i.scale>s.maxRatio&&(i.scale=s.maxRatio-1+Math.pow(i.scale-s.maxRatio+1,.5)),i.scale<e.minRatio&&(i.scale=e.minRatio+1-Math.pow(e.minRatio-i.scale+1,.5)),s.$imageEl.transform("translate3d(0,0,0) scale(".concat(i.scale,")")))},onGestureEnd:function(t){var e=this.params.zoom,i=this.zoom,s=i.gesture;if(!z.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!q.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}s.$imageEl&&0!==s.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,s.maxRatio),e.minRatio),s.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale(".concat(i.scale,")")),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(s.$slideEl=void 0))},onTouchStart:function(t){var e=this.zoom,i=e.gesture,s=e.image;i.$imageEl&&0!==i.$imageEl.length&&(s.isTouched||(q.android&&t.preventDefault(),s.isTouched=!0,s.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,s.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove:function(t){var e=this.zoom,i=e.gesture,s=e.image,n=e.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(this.allowClick=!1,s.isTouched&&i.$slideEl)){s.isMoved||(s.width=i.$imageEl[0].offsetWidth,s.height=i.$imageEl[0].offsetHeight,s.startX=I.getTranslate(i.$imageWrapEl[0],"x")||0,s.startY=I.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),this.rtl&&(s.startX=-s.startX,s.startY=-s.startY));var a=s.width*e.scale,o=s.height*e.scale;if(!(a<i.slideWidth&&o<i.slideHeight)){if(s.minX=Math.min(i.slideWidth/2-a/2,0),s.maxX=-s.minX,s.minY=Math.min(i.slideHeight/2-o/2,0),s.maxY=-s.minY,s.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,s.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!s.isMoved&&!e.isScaling){if(this.isHorizontal()&&(Math.floor(s.minX)===Math.floor(s.startX)&&s.touchesCurrent.x<s.touchesStart.x||Math.floor(s.maxX)===Math.floor(s.startX)&&s.touchesCurrent.x>s.touchesStart.x))return void(s.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(s.minY)===Math.floor(s.startY)&&s.touchesCurrent.y<s.touchesStart.y||Math.floor(s.maxY)===Math.floor(s.startY)&&s.touchesCurrent.y>s.touchesStart.y))return void(s.isTouched=!1)}t.preventDefault(),t.stopPropagation(),s.isMoved=!0,s.currentX=s.touchesCurrent.x-s.touchesStart.x+s.startX,s.currentY=s.touchesCurrent.y-s.touchesStart.y+s.startY,s.currentX<s.minX&&(s.currentX=s.minX+1-Math.pow(s.minX-s.currentX+1,.8)),s.currentX>s.maxX&&(s.currentX=s.maxX-1+Math.pow(s.currentX-s.maxX+1,.8)),s.currentY<s.minY&&(s.currentY=s.minY+1-Math.pow(s.minY-s.currentY+1,.8)),s.currentY>s.maxY&&(s.currentY=s.maxY-1+Math.pow(s.currentY-s.maxY+1,.8)),n.prevPositionX||(n.prevPositionX=s.touchesCurrent.x),n.prevPositionY||(n.prevPositionY=s.touchesCurrent.y),n.prevTime||(n.prevTime=Date.now()),n.x=(s.touchesCurrent.x-n.prevPositionX)/(Date.now()-n.prevTime)/2,n.y=(s.touchesCurrent.y-n.prevPositionY)/(Date.now()-n.prevTime)/2,Math.abs(s.touchesCurrent.x-n.prevPositionX)<2&&(n.x=0),Math.abs(s.touchesCurrent.y-n.prevPositionY)<2&&(n.y=0),n.prevPositionX=s.touchesCurrent.x,n.prevPositionY=s.touchesCurrent.y,n.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d(".concat(s.currentX,"px, ").concat(s.currentY,"px,0)"))}}},onTouchEnd:function(){var t=this.zoom,e=t.gesture,i=t.image,s=t.velocity;if(e.$imageEl&&0!==e.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var n=300,a=300,o=s.x*n,r=i.currentX+o,l=s.y*a,c=i.currentY+l;0!==s.x&&(n=Math.abs((r-i.currentX)/s.x)),0!==s.y&&(a=Math.abs((c-i.currentY)/s.y));var h=Math.max(n,a);i.currentX=r,i.currentY=c;var d=i.width*t.scale,u=i.height*t.scale;i.minX=Math.min(e.slideWidth/2-d/2,0),i.maxX=-i.minX,i.minY=Math.min(e.slideHeight/2-u/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),e.$imageWrapEl.transition(h).transform("translate3d(".concat(i.currentX,"px, ").concat(i.currentY,"px,0)"))}},onTransitionEnd:function(){var t=this.zoom,e=t.gesture;e.$slideEl&&this.previousIndex!==this.activeIndex&&(e.$imageEl.transform("translate3d(0,0,0) scale(1)"),e.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,e.$slideEl=void 0,e.$imageEl=void 0,e.$imageWrapEl=void 0)},toggle:function(t){var e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in:function(t){var e,i,s,n,a,o,r,l,c,h,d,u,p,f,m,g,b=this.zoom,y=this.params.zoom,w=b.gesture,x=b.image;(w.$slideEl||(w.$slideEl=this.clickedSlide?v(this.clickedSlide):this.slides.eq(this.activeIndex),w.$imageEl=w.$slideEl.find("img, svg, canvas"),w.$imageWrapEl=w.$imageEl.parent(".".concat(y.containerClass))),w.$imageEl&&0!==w.$imageEl.length)&&(w.$slideEl.addClass("".concat(y.zoomedSlideClass)),void 0===x.touchesStart.x&&t?(e="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,i="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(e=x.touchesStart.x,i=x.touchesStart.y),b.scale=w.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,b.currentScale=w.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,t?(m=w.$slideEl[0].offsetWidth,g=w.$slideEl[0].offsetHeight,s=w.$slideEl.offset().left+m/2-e,n=w.$slideEl.offset().top+g/2-i,r=w.$imageEl[0].offsetWidth,l=w.$imageEl[0].offsetHeight,c=r*b.scale,h=l*b.scale,p=-(d=Math.min(m/2-c/2,0)),f=-(u=Math.min(g/2-h/2,0)),(a=s*b.scale)<d&&(a=d),a>p&&(a=p),(o=n*b.scale)<u&&(o=u),o>f&&(o=f)):(a=0,o=0),w.$imageWrapEl.transition(300).transform("translate3d(".concat(a,"px, ").concat(o,"px,0)")),w.$imageEl.transition(300).transform("translate3d(0,0,0) scale(".concat(b.scale,")")))},out:function(){var t=this.zoom,e=this.params.zoom,i=t.gesture;i.$slideEl||(i.$slideEl=this.clickedSlide?v(this.clickedSlide):this.slides.eq(this.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(".".concat(e.containerClass))),i.$imageEl&&0!==i.$imageEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass("".concat(e.zoomedSlideClass)),i.$slideEl=void 0)},enable:function(){var t=this.zoom;if(!t.enabled){t.enabled=!0;var e=!("touchstart"!==this.touchEvents.start||!z.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};z.gestures?(this.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on(this.touchEvents.move,".swiper-slide",t.onGestureChange,e),this.$wrapperEl.on(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.on(this.touchEvents.move,".".concat(this.params.zoom.containerClass),t.onTouchMove)}},disable:function(){var t=this.zoom;if(t.enabled){this.zoom.enabled=!1;var e=!("touchstart"!==this.touchEvents.start||!z.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};z.gestures?(this.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off(this.touchEvents.move,".swiper-slide",t.onGestureChange,e),this.$wrapperEl.off(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.off(this.touchEvents.move,".".concat(this.params.zoom.containerClass),t.onTouchMove)}}},ht={loadInSlide:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,s=i.params.lazy;if(void 0!==t&&0!==i.slides.length){var n=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children(".".concat(i.params.slideClass,'[data-swiper-slide-index="').concat(t,'"]')):i.slides.eq(t),a=n.find(".".concat(s.elementClass,":not(.").concat(s.loadedClass,"):not(.").concat(s.loadingClass,")"));!n.hasClass(s.elementClass)||n.hasClass(s.loadedClass)||n.hasClass(s.loadingClass)||(a=a.add(n[0])),0!==a.length&&a.each(function(t,a){var o=v(a);o.addClass(s.loadingClass);var r=o.attr("data-background"),l=o.attr("data-src"),c=o.attr("data-srcset"),h=o.attr("data-sizes");i.loadImage(o[0],l||r,c,h,!1,function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(r?(o.css("background-image",'url("'.concat(r,'")')),o.removeAttr("data-background")):(c&&(o.attr("srcset",c),o.removeAttr("data-srcset")),h&&(o.attr("sizes",h),o.removeAttr("data-sizes")),l&&(o.attr("src",l),o.removeAttr("data-src"))),o.addClass(s.loadedClass).removeClass(s.loadingClass),n.find(".".concat(s.preloaderClass)).remove(),i.params.loop&&e){var t=n.attr("data-swiper-slide-index");if(n.hasClass(i.params.slideDuplicateClass)){var a=i.$wrapperEl.children('[data-swiper-slide-index="'.concat(t,'"]:not(.').concat(i.params.slideDuplicateClass,")"));i.lazy.loadInSlide(a.index(),!1)}else{var d=i.$wrapperEl.children(".".concat(i.params.slideDuplicateClass,'[data-swiper-slide-index="').concat(t,'"]'));i.lazy.loadInSlide(d.index(),!1)}}i.emit("lazyImageReady",n[0],o[0])}}),i.emit("lazyImageLoad",n[0],o[0])})}},load:function(){var t=this,e=t.$wrapperEl,i=t.params,s=t.slides,n=t.activeIndex,a=t.virtual&&i.virtual.enabled,o=i.lazy,r=i.slidesPerView;function l(t){if(a){if(e.children(".".concat(i.slideClass,'[data-swiper-slide-index="').concat(t,'"]')).length)return!0}else if(s[t])return!0;return!1}function c(t){return a?v(t).attr("data-swiper-slide-index"):v(t).index()}if("auto"===r&&(r=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children(".".concat(i.slideVisibleClass)).each(function(e,i){var s=a?v(i).attr("data-swiper-slide-index"):v(i).index();t.lazy.loadInSlide(s)});else if(r>1)for(var h=n;h<n+r;h+=1)l(h)&&t.lazy.loadInSlide(h);else t.lazy.loadInSlide(n);if(o.loadPrevNext)if(r>1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){for(var d=o.loadPrevNextAmount,u=r,p=Math.min(n+u+Math.max(d,u),s.length),f=Math.max(n-Math.max(u,d),0),m=n+r;m<p;m+=1)l(m)&&t.lazy.loadInSlide(m);for(var g=f;g<n;g+=1)l(g)&&t.lazy.loadInSlide(g)}else{var b=e.children(".".concat(i.slideNextClass));b.length>0&&t.lazy.loadInSlide(c(b));var y=e.children(".".concat(i.slidePrevClass));y.length>0&&t.lazy.loadInSlide(c(y))}}},dt={LinearSpline:function(t,e){var i,s,n,a,o,r=function(t,e){for(s=-1,i=t.length;i-s>1;)t[n=i+s>>1]<=e?s=n:i=n;return i};return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(o=r(this.x,t),a=o-1,(t-this.x[a])*(this.y[o]-this.y[a])/(this.x[o]-this.x[a])+this.y[a]):0},this},getInterpolateFunction:function(t){this.controller.spline||(this.controller.spline=this.params.loop?new dt.LinearSpline(this.slidesGrid,t.slidesGrid):new dt.LinearSpline(this.snapGrid,t.snapGrid))},setTranslate:function(t,e){var i,s,n=this,a=n.controller.control;function o(t){var e=n.rtlTranslate?-n.translate:n.translate;"slide"===n.params.controller.by&&(n.controller.getInterpolateFunction(t),s=-n.controller.spline.interpolate(-e)),s&&"container"!==n.params.controller.by||(i=(t.maxTranslate()-t.minTranslate())/(n.maxTranslate()-n.minTranslate()),s=(e-n.minTranslate())*i+t.minTranslate()),n.params.controller.inverse&&(s=t.maxTranslate()-s),t.updateProgress(s),t.setTranslate(s,n),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(a))for(var r=0;r<a.length;r+=1)a[r]!==e&&a[r]instanceof j&&o(a[r]);else a instanceof j&&e!==a&&o(a)},setTransition:function(t,e){var i,s=this,n=s.controller.control;function a(e){e.setTransition(t,s),0!==t&&(e.transitionStart(),e.params.autoHeight&&I.nextTick(function(){e.updateAutoHeight()}),e.$wrapperEl.transitionEnd(function(){n&&(e.params.loop&&"slide"===s.params.controller.by&&e.loopFix(),e.transitionEnd())}))}if(Array.isArray(n))for(i=0;i<n.length;i+=1)n[i]!==e&&n[i]instanceof j&&a(n[i]);else n instanceof j&&e!==n&&a(n)}},ut={makeElFocusable:function(t){return t.attr("tabIndex","0"),t},addElRole:function(t,e){return t.attr("role",e),t},addElLabel:function(t,e){return t.attr("aria-label",e),t},disableEl:function(t){return t.attr("aria-disabled",!0),t},enableEl:function(t){return t.attr("aria-disabled",!1),t},onEnterKey:function(t){var e=this.params.a11y;if(13===t.keyCode){var i=v(t.target);this.navigation&&this.navigation.$nextEl&&i.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(e.lastSlideMessage):this.a11y.notify(e.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&i.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(e.firstSlideMessage):this.a11y.notify(e.prevSlideMessage)),this.pagination&&i.is(".".concat(this.params.pagination.bulletClass))&&i[0].click()}},notify:function(t){var e=this.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},updateNavigation:function(){if(!this.params.loop){var t=this.navigation,e=t.$nextEl,i=t.$prevEl;i&&i.length>0&&(this.isBeginning?this.a11y.disableEl(i):this.a11y.enableEl(i)),e&&e.length>0&&(this.isEnd?this.a11y.disableEl(e):this.a11y.enableEl(e))}},updatePagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each(function(i,s){var n=v(s);t.a11y.makeElFocusable(n),t.a11y.addElRole(n,"button"),t.a11y.addElLabel(n,e.paginationBulletMessage.replace(/{{index}}/,n.index()+1))})},init:function(){this.$el.append(this.a11y.liveRegion);var t,e,i=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,i.nextSlideMessage),t.on("keydown",this.a11y.onEnterKey)),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,i.prevSlideMessage),e.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown",".".concat(this.params.pagination.bulletClass),this.a11y.onEnterKey)},destroy:function(){var t,e;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&t.off("keydown",this.a11y.onEnterKey),e&&e.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown",".".concat(this.params.pagination.bulletClass),this.a11y.onEnterKey)}},pt={init:function(){if(this.params.history){if(!m.history||!m.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var t=this.history;t.initialized=!0,t.paths=pt.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||m.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||m.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=pt.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var t=m.location.pathname.slice(1).split("/").filter(function(t){return""!==t}),e=t.length;return{key:t[e-2],value:t[e-1]}},setHistory:function(t,e){if(this.history.initialized&&this.params.history.enabled){var i=this.slides.eq(e),s=pt.slugify(i.attr("data-history"));m.location.pathname.includes(t)||(s="".concat(t,"/").concat(s));var n=m.history.state;n&&n.value===s||(this.params.history.replaceState?m.history.replaceState({value:s},null,s):m.history.pushState({value:s},null,s))}},slugify:function(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,i){if(e)for(var s=0,n=this.slides.length;s<n;s+=1){var a=this.slides.eq(s);if(pt.slugify(a.attr("data-history"))===e&&!a.hasClass(this.params.slideDuplicateClass)){var o=a.index();this.slideTo(o,t,i)}}else this.slideTo(0,t,i)}},ft={onHashCange:function(){var t=f.location.hash.replace("#","");if(t!==this.slides.eq(this.activeIndex).attr("data-hash")){var e=this.$wrapperEl.children(".".concat(this.params.slideClass,'[data-hash="').concat(t,'"]')).index();if(void 0===e)return;this.slideTo(e)}},setHash:function(){if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&m.history&&m.history.replaceState)m.history.replaceState(null,null,"#".concat(this.slides.eq(this.activeIndex).attr("data-hash"))||!1);else{var t=this.slides.eq(this.activeIndex),e=t.attr("data-hash")||t.attr("data-history");f.location.hash=e||""}},init:function(){if(!(!this.params.hashNavigation.enabled||this.params.history&&this.params.history.enabled)){this.hashNavigation.initialized=!0;var t=f.location.hash.replace("#","");if(t)for(var e=0,i=this.slides.length;e<i;e+=1){var s=this.slides.eq(e);if((s.attr("data-hash")||s.attr("data-history"))===t&&!s.hasClass(this.params.slideDuplicateClass)){var n=s.index();this.slideTo(n,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&v(m).on("hashchange",this.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&v(m).off("hashchange",this.hashNavigation.onHashCange)}},mt={run:function(){var t=this,e=t.slides.eq(t.activeIndex),i=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(i=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=I.nextTick(function(){t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay"))},i)},start:function(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function(t){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==t&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},gt={setTranslate:function(){for(var t=this.slides,e=0;e<t.length;e+=1){var i=this.slides.eq(e),s=-i[0].swiperSlideOffset;this.params.virtualTranslate||(s-=this.translate);var n=0;this.isHorizontal()||(n=s,s=0);var a=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:a}).transform("translate3d(".concat(s,"px, ").concat(n,"px, 0px)"))}},setTransition:function(t){var e=this,i=e.slides,s=e.$wrapperEl;if(i.transition(t),e.params.virtualTranslate&&0!==t){var n=!1;i.transitionEnd(function(){if(!n&&e&&!e.destroyed){n=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],i=0;i<t.length;i+=1)s.trigger(t[i])}})}}},vt={setTranslate:function(){var t,e=this.$el,i=this.$wrapperEl,s=this.slides,n=this.width,a=this.height,o=this.rtlTranslate,r=this.size,l=this.params.cubeEffect,c=this.isHorizontal(),h=this.virtual&&this.params.virtual.enabled,d=0;l.shadow&&(c?(0===(t=i.find(".swiper-cube-shadow")).length&&(t=v('<div class="swiper-cube-shadow"></div>'),i.append(t)),t.css({height:"".concat(n,"px")})):0===(t=e.find(".swiper-cube-shadow")).length&&(t=v('<div class="swiper-cube-shadow"></div>'),e.append(t)));for(var u=0;u<s.length;u+=1){var p=s.eq(u),f=u;h&&(f=parseInt(p.attr("data-swiper-slide-index"),10));var m=90*f,g=Math.floor(m/360);o&&(m=-m,g=Math.floor(-m/360));var b=Math.max(Math.min(p[0].progress,1),-1),y=0,w=0,x=0;f%4==0?(y=4*-g*r,x=0):(f-1)%4==0?(y=0,x=4*-g*r):(f-2)%4==0?(y=r+4*g*r,x=r):(f-3)%4==0&&(y=-r,x=3*r+4*r*g),o&&(y=-y),c||(w=y,y=0);var S="rotateX(".concat(c?0:-m,"deg) rotateY(").concat(c?m:0,"deg) translate3d(").concat(y,"px, ").concat(w,"px, ").concat(x,"px)");if(b<=1&&b>-1&&(d=90*f+90*b,o&&(d=90*-f-90*b)),p.transform(S),l.slideShadows){var E=c?p.find(".swiper-slide-shadow-left"):p.find(".swiper-slide-shadow-top"),T=c?p.find(".swiper-slide-shadow-right"):p.find(".swiper-slide-shadow-bottom");0===E.length&&(E=v('<div class="swiper-slide-shadow-'.concat(c?"left":"top",'"></div>')),p.append(E)),0===T.length&&(T=v('<div class="swiper-slide-shadow-'.concat(c?"right":"bottom",'"></div>')),p.append(T)),E.length&&(E[0].style.opacity=Math.max(-b,0)),T.length&&(T[0].style.opacity=Math.max(b,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -".concat(r/2,"px"),"-moz-transform-origin":"50% 50% -".concat(r/2,"px"),"-ms-transform-origin":"50% 50% -".concat(r/2,"px"),"transform-origin":"50% 50% -".concat(r/2,"px")}),l.shadow)if(c)t.transform("translate3d(0px, ".concat(n/2+l.shadowOffset,"px, ").concat(-n/2,"px) rotateX(90deg) rotateZ(0deg) scale(").concat(l.shadowScale,")"));else{var C=Math.abs(d)-90*Math.floor(Math.abs(d)/90),P=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),$=l.shadowScale,k=l.shadowScale/P,M=l.shadowOffset;t.transform("scale3d(".concat($,", 1, ").concat(k,") translate3d(0px, ").concat(a/2+M,"px, ").concat(-a/2/k,"px) rotateX(-90deg)"))}var L=A.isSafari||A.isUiWebView?-r/2:0;i.transform("translate3d(0px,0,".concat(L,"px) rotateX(").concat(this.isHorizontal()?0:d,"deg) rotateY(").concat(this.isHorizontal()?-d:0,"deg)"))},setTransition:function(t){var e=this.$el;this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeEffect.shadow&&!this.isHorizontal()&&e.find(".swiper-cube-shadow").transition(t)}},bt={setTranslate:function(){for(var t=this.slides,e=this.rtlTranslate,i=0;i<t.length;i+=1){var s=t.eq(i),n=s[0].progress;this.params.flipEffect.limitRotation&&(n=Math.max(Math.min(s[0].progress,1),-1));var a=-180*n,o=0,r=-s[0].swiperSlideOffset,l=0;if(this.isHorizontal()?e&&(a=-a):(l=r,r=0,o=-a,a=0),s[0].style.zIndex=-Math.abs(Math.round(n))+t.length,this.params.flipEffect.slideShadows){var c=this.isHorizontal()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),h=this.isHorizontal()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom");0===c.length&&(c=v('<div class="swiper-slide-shadow-'.concat(this.isHorizontal()?"left":"top",'"></div>')),s.append(c)),0===h.length&&(h=v('<div class="swiper-slide-shadow-'.concat(this.isHorizontal()?"right":"bottom",'"></div>')),s.append(h)),c.length&&(c[0].style.opacity=Math.max(-n,0)),h.length&&(h[0].style.opacity=Math.max(n,0))}s.transform("translate3d(".concat(r,"px, ").concat(l,"px, 0px) rotateX(").concat(o,"deg) rotateY(").concat(a,"deg)"))}},setTransition:function(t){var e=this,i=e.slides,s=e.activeIndex,n=e.$wrapperEl;if(i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){var a=!1;i.eq(s).transitionEnd(function(){if(!a&&e&&!e.destroyed){a=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],i=0;i<t.length;i+=1)n.trigger(t[i])}})}}},yt={setTranslate:function(){for(var t=this.width,e=this.height,i=this.slides,s=this.$wrapperEl,n=this.slidesSizesGrid,a=this.params.coverflowEffect,o=this.isHorizontal(),r=this.translate,l=o?t/2-r:e/2-r,c=o?a.rotate:-a.rotate,h=a.depth,d=0,u=i.length;d<u;d+=1){var p=i.eq(d),f=n[d],m=(l-p[0].swiperSlideOffset-f/2)/f*a.modifier,g=o?c*m:0,b=o?0:c*m,y=-h*Math.abs(m),w=o?0:a.stretch*m,x=o?a.stretch*m:0;Math.abs(x)<.001&&(x=0),Math.abs(w)<.001&&(w=0),Math.abs(y)<.001&&(y=0),Math.abs(g)<.001&&(g=0),Math.abs(b)<.001&&(b=0);var S="translate3d(".concat(x,"px,").concat(w,"px,").concat(y,"px)  rotateX(").concat(b,"deg) rotateY(").concat(g,"deg)");if(p.transform(S),p[0].style.zIndex=1-Math.abs(Math.round(m)),a.slideShadows){var E=o?p.find(".swiper-slide-shadow-left"):p.find(".swiper-slide-shadow-top"),T=o?p.find(".swiper-slide-shadow-right"):p.find(".swiper-slide-shadow-bottom");0===E.length&&(E=v('<div class="swiper-slide-shadow-'.concat(o?"left":"top",'"></div>')),p.append(E)),0===T.length&&(T=v('<div class="swiper-slide-shadow-'.concat(o?"right":"bottom",'"></div>')),p.append(T)),E.length&&(E[0].style.opacity=m>0?m:0),T.length&&(T[0].style.opacity=-m>0?-m:0)}}(z.pointerEvents||z.prefixedPointerEvents)&&(s[0].style.perspectiveOrigin="".concat(l,"px 50%"))},setTransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},wt={init:function(){var t=this.params.thumbs,e=this.constructor;t.swiper instanceof e?(this.thumbs.swiper=t.swiper,I.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),I.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):I.isObject(t.swiper)&&(this.thumbs.swiper=new e(I.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var t=this.thumbs.swiper;if(t){var e=t.clickedIndex,i=t.clickedSlide;if(!(i&&v(i).hasClass(this.params.thumbs.slideThumbActiveClass)||null==e)){var s;if(s=t.params.loop?parseInt(v(t.clickedSlide).attr("data-swiper-slide-index"),10):e,this.params.loop){var n=this.activeIndex;this.slides.eq(n).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,n=this.activeIndex);var a=this.slides.eq(n).prevAll('[data-swiper-slide-index="'.concat(s,'"]')).eq(0).index(),o=this.slides.eq(n).nextAll('[data-swiper-slide-index="'.concat(s,'"]')).eq(0).index();s=void 0===a?o:void 0===o?a:o-n<n-a?o:a}this.slideTo(s)}}},update:function(t){var e=this.thumbs.swiper;if(e){var i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():e.params.slidesPerView;if(this.realIndex!==e.realIndex){var s,n=e.activeIndex;if(e.params.loop){e.slides.eq(n).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,n=e.activeIndex);var a=e.slides.eq(n).prevAll('[data-swiper-slide-index="'.concat(this.realIndex,'"]')).eq(0).index(),o=e.slides.eq(n).nextAll('[data-swiper-slide-index="'.concat(this.realIndex,'"]')).eq(0).index();s=void 0===a?o:void 0===o?a:o-n==n-a?n:o-n<n-a?o:a}else s=this.realIndex;e.visibleSlidesIndexes&&e.visibleSlidesIndexes.indexOf(s)<0&&(e.params.centeredSlides?s=s>n?s-Math.floor(i/2)+1:s+Math.floor(i/2)-1:s>n&&(s=s-i+1),e.slideTo(s,t?0:void 0))}var r=1,l=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(r=this.params.slidesPerView),e.slides.removeClass(l),e.params.loop||e.params.virtual)for(var c=0;c<r;c+=1)e.$wrapperEl.children('[data-swiper-slide-index="'.concat(this.realIndex+c,'"]')).addClass(l);else for(var h=0;h<r;h+=1)e.slides.eq(this.realIndex+h).addClass(l)}}},xt=[G,U,Q,K,J,et,st,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){I.extend(this,{mousewheel:{enabled:!1,enable:nt.enable.bind(this),disable:nt.disable.bind(this),handle:nt.handle.bind(this),handleMouseEnter:nt.handleMouseEnter.bind(this),handleMouseLeave:nt.handleMouseLeave.bind(this),lastScrollTime:I.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){I.extend(this,{navigation:{init:at.init.bind(this),update:at.update.bind(this),destroy:at.destroy.bind(this),onNextClick:at.onNextClick.bind(this),onPrevClick:at.onPrevClick.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(t){var e,i=this.navigation,s=i.$nextEl,n=i.$prevEl;!this.params.navigation.hideOnClick||v(t.target).is(n)||v(t.target).is(s)||(s?e=s.hasClass(this.params.navigation.hiddenClass):n&&(e=n.hasClass(this.params.navigation.hiddenClass)),!0===e?this.emit("navigationShow",this):this.emit("navigationHide",this),s&&s.toggleClass(this.params.navigation.hiddenClass),n&&n.toggleClass(this.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(t){return t},formatFractionTotal:function(t){return t},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){I.extend(this,{pagination:{init:ot.init.bind(this),render:ot.render.bind(this),update:ot.update.bind(this),destroy:ot.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){this.params.loop?this.pagination.update():void 0===this.snapIndex&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(t){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!v(t.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){I.extend(this,{scrollbar:{init:rt.init.bind(this),destroy:rt.destroy.bind(this),updateSize:rt.updateSize.bind(this),setTranslate:rt.setTranslate.bind(this),setTransition:rt.setTransition.bind(this),enableDraggable:rt.enableDraggable.bind(this),disableDraggable:rt.disableDraggable.bind(this),setDragPosition:rt.setDragPosition.bind(this),getPointerPosition:rt.getPointerPosition.bind(this),onDragStart:rt.onDragStart.bind(this),onDragMove:rt.onDragMove.bind(this),onDragEnd:rt.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(t){this.scrollbar.setTransition(t)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){I.extend(this,{parallax:{setTransform:lt.setTransform.bind(this),setTranslate:lt.setTranslate.bind(this),setTransition:lt.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(t){this.params.parallax.enabled&&this.parallax.setTransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(i){e[i]=ct[i].bind(t)}),I.extend(t,{zoom:e});var i=1;Object.defineProperty(t.zoom,"scale",{get:function(){return i},set:function(e){if(i!==e){var s=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,n=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,s,n)}i=e}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(t){this.zoom.enabled&&this.zoom.onTouchStart(t)},touchEnd:function(t){this.zoom.enabled&&this.zoom.onTouchEnd(t)},doubleTap:function(t){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(t)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){I.extend(this,{lazy:{initialImageLoaded:!1,load:ht.load.bind(this),loadInSlide:ht.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){I.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:dt.getInterpolateFunction.bind(this),setTranslate:dt.setTranslate.bind(this),setTransition:dt.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(t,e){this.controller.control&&this.controller.setTranslate(t,e)},setTransition:function(t,e){this.controller.control&&this.controller.setTransition(t,e)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var t=this;I.extend(t,{a11y:{liveRegion:v('<span class="'.concat(t.params.a11y.notificationClass,'" aria-live="assertive" aria-atomic="true"></span>'))}}),Object.keys(ut).forEach(function(e){t.a11y[e]=ut[e].bind(t)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){I.extend(this,{history:{init:pt.init.bind(this),setHistory:pt.setHistory.bind(this),setHistoryPopState:pt.setHistoryPopState.bind(this),scrollToSlide:pt.scrollToSlide.bind(this),destroy:pt.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){I.extend(this,{hashNavigation:{initialized:!1,init:ft.init.bind(this),destroy:ft.destroy.bind(this),setHash:ft.setHash.bind(this),onHashCange:ft.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var t=this;I.extend(t,{autoplay:{running:!1,paused:!1,run:mt.run.bind(t),start:mt.start.bind(t),stop:mt.stop.bind(t),pause:mt.pause.bind(t),onTransitionEnd:function(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(t,e){this.autoplay.running&&(e||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(t):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){I.extend(this,{fadeEffect:{setTranslate:gt.setTranslate.bind(this),setTransition:gt.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"fade"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};I.extend(this.params,t),I.extend(this.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(t){"fade"===this.params.effect&&this.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){I.extend(this,{cubeEffect:{setTranslate:vt.setTranslate.bind(this),setTransition:vt.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"cube")),this.classNames.push("".concat(this.params.containerModifierClass,"3d"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};I.extend(this.params,t),I.extend(this.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(t){"cube"===this.params.effect&&this.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){I.extend(this,{flipEffect:{setTranslate:bt.setTranslate.bind(this),setTransition:bt.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"flip")),this.classNames.push("".concat(this.params.containerModifierClass,"3d"));var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};I.extend(this.params,t),I.extend(this.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(t){"flip"===this.params.effect&&this.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){I.extend(this,{coverflowEffect:{setTranslate:yt.setTranslate.bind(this),setTransition:yt.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push("".concat(this.params.containerModifierClass,"coverflow")),this.classNames.push("".concat(this.params.containerModifierClass,"3d")),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(t){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){I.extend(this,{thumbs:{swiper:null,init:wt.init.bind(this),update:wt.update.bind(this),onThumbClick:wt.onThumbClick.bind(this)}})},on:{beforeInit:function(){var t=this.params.thumbs;t&&t.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(t){var e=this.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy:function(){var t=this.thumbs.swiper;t&&this.thumbs.swiperCreated&&t&&t.destroy()}}}];void 0===j.use&&(j.use=j.Class.use,j.installModule=j.Class.installModule),j.use(xt);var St=j;window.Swiper=St;var Et,Tt;new St("#focusCarousel .container-fluid",{loop:!0,slideClass:"card",wrapperClass:"card-deck",breakpointsInverse:!0,breakpoints:{0:{slidesPerView:1,slidesPerGroup:1},576:{slidesPerView:3,slidesPerGroup:1},1012:{slidesPerView:5,slidesPerGroup:1}},pagination:{el:".carousel-indicators",clickable:!0,renderBullet:function(t,e){return'<li class="'+e+'"></li>'},bulletClass:"indicator-item",bulletActiveClass:"active",currentClass:"active"},autoplay:{delay:3e3,disableOnInteraction:!1}}),i(23);function Ct(){$(window).width()<996?(Et=new St("#news .news",{slideClass:"card",wrapperClass:"card-deck",breakpointsInverse:!0,breakpoints:{0:{slidesPerView:1,slidesPerGroup:1},576:{slidesPerView:2,slidesPerGroup:2}}}),Tt=new St("#events .news",{slideClass:"card",wrapperClass:"card-deck",breakpointsInverse:!0,breakpoints:{0:{slidesPerView:1,slidesPerGroup:1}}})):void 0!==Et&&(Et.destroy(),Et=void 0,$("#news .news .card").removeAttr("style"),Tt.destroy(),Tt=void 0,$("#events .news .card").removeAttr("style"))}function Pt(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}window.Swiper=St,$(function(){$(window).resize(function(){Ct()}),Ct()});(function(t){var e="navbarBackdrop",i=t.fn[e],s="navbar-backdrop",n="fade",a="show",o=".navbar",r=".dropdown-backdrop",l="show.bs.dropdown",c="hide.bs.dropdown",h=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this._element=t,this._transition=null,this._isShown=!1,this._isShowing=!1,this._isHiding=!1}var i,o,r;return i=e,r=[{key:"_jQueryInterface",value:function(i){return this.each(function(){var s=t(this),n=s.data("ug.navbarBackdrop");n||(n=new e(this),s.data("ug.navbarBackdrop",n)),"show"!==i&&"hide"!==i||n[i]()})}}],(o=[{key:"show",value:function(){this._isHiding&&(clearTimeout(this._transition),this._isHiding=!1,this._isShown=!1),this._isShown||this._isShowing||(this._isShowing=!0,this._showBackdrop())}},{key:"hide",value:function(){this._isShowing&&(clearTimeout(this._transition),this._isShowing=!1,this._isShown=!0),this._isShown&&!this._isHiding&&(this._isHiding=!0,this._hideBackdrop())}},{key:"_hideBackdrop",value:function(){var e=this;this._backdrop&&(this._backdrop.classList.remove(a),this._transition=setTimeout(function(){e._backdrop&&e._isHiding&&(t(e._backdrop).remove(),e._backdrop=null,e._isHiding=!1,e._isShown=!1)},150))}},{key:"_showBackdrop",value:function(){var e=this;this._backdrop||(this._backdrop=document.createElement("div"),this._backdrop.className=s,this._backdrop.classList.add(n),t(this._backdrop).appendTo(document.body)),this._backdrop.classList.add(a),this._transition=setTimeout(function(){e._backdrop&&e._isShowing&&(e._isShowing=!1,e._isShown=!0)},150)}}])&&Pt(i.prototype,o),r&&Pt(i,r),e}();t(document).on(l,r,function(e){var i=e.target,s=t(i).closest(o);h._jQueryInterface.call(t(s),"show")}).on(c,r,function(e){var i=e.target,s=t(i).closest(o);h._jQueryInterface.call(t(s),"hide")}),t.fn[e]=h._jQueryInterface,t.fn[e].Constructor=h,t.fn[e].noConflict=function(){return t.fn[e]=i,h._jQueryInterface}})(n.a),i(25),i(26);var $t,kt=i(10),Mt=i.n(kt),Lt=i(6),It=i.n(Lt),zt=i(7),At=i.n(zt),Dt=".pagination__next a",Ot=document.querySelector(".news .masonry");if(Ot){var Ht=new Mt.a(Ot,{itemSelector:"a.card",gutter:30});It()(Ot).on("progress",function(){Ht.layout()}),At.a.imagesLoaded=It.a,new At.a(Ot,{path:function(){if(!$t){var t=document.querySelector(Dt);$t=t.getAttribute("href")}return $t},append:".news .masonry a.card",outlayer:Ht,loadOnScroll:!1,history:"push",hideNav:".pagination",button:Dt}).on("load",function(t){var e=t.querySelector(Dt);null!==e?$t=e.getAttribute("href"):($t=null,(e=document.querySelector(Dt)).parentNode.removeChild(e))});var _t=document.querySelector(Dt);if(_t){_t.addEventListener("click",function(){this.blur()});var Bt=_t.parentNode;Bt.classList.remove("d-none"),Bt.classList.remove("hidden")}}i(33),i(34)}]);
/*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v2.8.4 - 2015-02-20
 *  Desc: Include this file in any page being loaded into an iframe
 *        to force the iframe to resize to the content size.
 *  Requires: iframeResizer.min.js on host page.
 *  Copyright: (c) 2015 David J. Bradshaw - dave@bradshaw.net
 *  License: MIT
 */

!function(){"use strict";function a(a,b,c){"addEventListener"in window?a.addEventListener(b,c,!1):"attachEvent"in window&&a.attachEvent("on"+b,c)}function b(a){return ab+"["+cb+"] "+a}function c(a){_&&"object"==typeof window.console&&console.log(b(a))}function d(a){"object"==typeof window.console&&console.warn(b(a))}function e(){c("Initialising iFrame"),f(),i(),h("background",M),h("padding",P),o(),m(),j(),q(),n(),Z=p(),E("init","Init message from host page")}function f(){function a(a){return"true"===a?!0:!1}var b=Y.substr(bb).split(":");cb=b[0],N=void 0!==b[1]?Number(b[1]):N,Q=void 0!==b[2]?a(b[2]):Q,_=void 0!==b[3]?a(b[3]):_,$=void 0!==b[4]?Number(b[4]):$,db=void 0!==b[5]?a(b[5]):db,K=void 0!==b[6]?a(b[6]):K,O=b[7],W=void 0!==b[8]?b[8]:W,M=b[9],P=b[10],hb=void 0!==b[11]?Number(b[11]):hb,Z.enable=void 0!==b[12]?a(b[12]):!1}function g(a,b){return-1!==b.indexOf("-")&&(d("Negative CSS value ignored for "+a),b=""),b}function h(a,b){void 0!==b&&""!==b&&"null"!==b&&(document.body.style[a]=b,c("Body "+a+' set to "'+b+'"'))}function i(){void 0===O&&(O=N+"px"),g("margin",O),h("margin",O)}function j(){document.documentElement.style.height="",document.body.style.height="",c('HTML & body height set to "auto"')}function k(b){function d(c){a(window,c,function(){E(b.eventName,b.eventType)})}b.eventNames&&Array.prototype.map?(b.eventName=b.eventNames[0],b.eventNames.map(d)):d(b.eventName),c("Added event listener: "+b.eventType)}function l(){k({eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),k({eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),k({eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),k({eventType:"Device Orientation Change",eventName:"deviceorientation"}),k({eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),k({eventType:"Window Clicked",eventName:"click"}),k({eventType:"Window Resized",eventName:"resize"})}function m(){V!==W&&(W in lb||(d(W+" is not a valid option for heightCalculationMethod."),W="bodyScroll"),c('Height calculation method set to "'+W+'"'))}function n(){!0===K?(l(),t()):c("Auto Resize disabled")}function o(){var a=document.createElement("div");a.style.clear="both",a.style.display="block",document.body.appendChild(a)}function p(){function b(){return{x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop}}function e(a){var c=a.getBoundingClientRect(),d=b();return{x:parseInt(c.left,10)+parseInt(d.x,10),y:parseInt(c.top,10)+parseInt(d.y,10)}}function f(a){function b(a){var b=e(a);c("Moving to in page link (#"+d+") at x: "+b.x+" y: "+b.y),I(b.y,b.x,"scrollToOffset")}var d=a.split("#")[1]||"",f=decodeURIComponent(d),g=document.getElementById(f)||document.getElementsByName(f)[0];g?b(g):(c("In page link (#"+d+") not found in iFrame, so sending to parent"),I(0,0,"inPageLink","#"+d))}function g(){""!==location.hash&&"#"!==location.hash&&f(location.href)}function h(){function b(b){function c(a){a.preventDefault(),f(this.getAttribute("href"))}"#"!==b.getAttribute("href")&&a(b,"click",c)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),b)}function i(){a(window,"hashchange",g)}function j(){setTimeout(g,S)}function k(){Array.prototype.forEach&&document.querySelectorAll?(c("Setting up location.hash handlers"),h(),i(),j()):d("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return Z.enable?k():c("In page linking not enabled"),{findTarget:f}}function q(){db&&(c("Enable public methods"),window.parentIFrame={close:function(){E("close","parentIFrame.close()",0,0)},getId:function(){return cb},moveToAnchor:function(a){Z.findTarget(a)},reset:function(){H("parentIFrame.reset")},scrollTo:function(a,b){I(b,a,"scrollTo")},scrollToOffset:function(a,b){I(b,a,"scrollToOffset")},sendMessage:function(a,b){I(0,0,"message",JSON.stringify(a),b)},setHeightCalculationMethod:function(a){W=a,m()},setTargetOrigin:function(a){c("Set targetOrigin: "+a),fb=a},size:function(a,b){var c=""+(a?a:"")+(b?","+b:"");F(),E("size","parentIFrame.size("+c+")",a,b)}})}function r(){0!==$&&(c("setInterval: "+$+"ms"),setInterval(function(){E("interval","setInterval: "+$)},Math.abs($)))}function s(b){function d(b){(void 0===b.height||void 0===b.width||0===b.height||0===b.width)&&(c("Attach listerner to "+b.src),a(b,"load",function(){E("imageLoad","Image loaded")}))}b.forEach(function(a){if("attributes"===a.type&&"src"===a.attributeName)d(a.target);else if("childList"===a.type){var b=a.target.querySelectorAll("img");Array.prototype.forEach.call(b,function(a){d(a)})}})}function t(){function a(){var a=document.querySelector("body"),d={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},e=new b(function(a){E("mutationObserver","mutationObserver: "+a[0].target+" "+a[0].type),s(a)});c("Enable MutationObserver"),e.observe(a,d)}var b=window.MutationObserver||window.WebKitMutationObserver;b?0>$?r():a():(d("MutationObserver not supported in this browser!"),r())}function u(){function a(a){function b(a){var b=/^\d+(px)?$/i;if(b.test(a))return parseInt(a,L);var d=c.style.left,e=c.runtimeStyle.left;return c.runtimeStyle.left=c.currentStyle.left,c.style.left=a||0,a=c.style.pixelLeft,c.style.left=d,c.runtimeStyle.left=e,a}var c=document.body,d=0;return"defaultView"in document&&"getComputedStyle"in document.defaultView?(d=document.defaultView.getComputedStyle(c,null),d=null!==d?d[a]:0):d=b(c.currentStyle[a]),parseInt(d,L)}return document.body.offsetHeight+a("marginTop")+a("marginBottom")}function v(){return document.body.scrollHeight}function w(){return document.documentElement.offsetHeight}function x(){return document.documentElement.scrollHeight}function y(){for(var a=document.querySelectorAll("body *"),b=a.length,d=0,e=(new Date).getTime(),f=0;b>f;f++)a[f].getBoundingClientRect().bottom>d&&(d=a[f].getBoundingClientRect().bottom);return e=(new Date).getTime()-e,c("Parsed "+b+" HTML elements"),c("LowestElement bottom position calculated in "+e+"ms"),d}function z(){return[u(),v(),w(),x()]}function A(){return Math.max.apply(null,z())}function B(){return Math.min.apply(null,z())}function C(){return Math.max(u(),y())}function D(){return Math.max(document.documentElement.scrollWidth,document.body.scrollWidth)}function E(a,b,d,e){function f(){a in{reset:1,resetPage:1,init:1}||c("Trigger event: "+b)}function g(){T=n,kb=o,I(T,kb,a)}function h(){return ib&&a in R}function i(){function a(a,b){var c=Math.abs(a-b)<=hb;return!c}return n=void 0!==d?d:lb[W](),o=void 0!==e?e:D(),a(T,n)||Q&&a(kb,o)}function j(){return!(a in{init:1,interval:1,size:1})}function k(){return W in eb}function l(){c("No change in size detected")}function m(){j()&&k()?H(b):a in{interval:1}||(f(),l())}var n,o;h()?c("Trigger event cancelled: "+a):i()?(f(),F(),g()):m()}function F(){ib||(ib=!0,c("Trigger event lock on")),clearTimeout(jb),jb=setTimeout(function(){ib=!1,c("Trigger event lock off"),c("--")},S)}function G(a){T=lb[W](),kb=D(),I(T,kb,a)}function H(a){var b=W;W=V,c("Reset trigger event: "+a),F(),G("reset"),W=b}function I(a,b,d,e,f){function g(){void 0===f?f=fb:c("Message targetOrigin: "+f)}function h(){var g=a+":"+b,h=cb+":"+g+":"+d+(void 0!==e?":"+e:"");c("Sending message to host page ("+h+")"),gb.postMessage(ab+h,f)}g(),h()}function J(a){function b(){return ab===(""+a.data).substr(0,bb)}function f(){Y=a.data,gb=a.source,e(),U=!1,setTimeout(function(){X=!1},S)}function g(){X?c("Page reset ignored by init"):(c("Page size reset by host page"),G("resetPage"))}function h(){return a.data.split("]")[1]}function i(){return"iFrameResize"in window}function j(){return a.data.split(":")[2]in{"true":1,"false":1}}b()&&(U&&j()?f():"reset"===h()?g():a.data===Y||i()||d("Unexpected message ("+a.data+")"))}var K=!0,L=10,M="",N=0,O="",P="",Q=!1,R={resize:1,click:1},S=128,T=1,U=!0,V="offset",W=V,X=!0,Y="",Z={},$=32,_=!1,ab="[iFrameSizer]",bb=ab.length,cb="",db=!1,eb={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},fb="*",gb=window.parent,hb=0,ib=!1,jb=null,kb=1,lb={offset:u,bodyOffset:u,bodyScroll:v,documentElementOffset:w,scroll:x,documentElementScroll:x,max:A,min:B,grow:A,lowestElement:C};a(window,"message",J)}();
//# sourceMappingURL=iframeResizer.contentWindow.map

!function(){"use strict";function a(a,b,c){"addEventListener"in window?a.addEventListener(b,c,!1):"attachEvent"in window&&a.attachEvent("on"+b,c)}function b(){var a,b=["moz","webkit","o","ms"];for(a=0;a<b.length&&!A;a+=1)A=window[b[a]+"RequestAnimationFrame"];A||e(" RequestAnimationFrame not supported")}function c(){var a="Host page";return window.top!==window.self&&(a=window.parentIFrame?window.parentIFrame.getId():"Nested host page"),a}function d(a){return w+"["+c()+"]"+a}function e(a){C.log&&"object"==typeof window.console&&console.log(d(a))}function f(a){"object"==typeof window.console&&console.warn(d(a))}function g(a){function b(){function a(){k(F),i(),C.resizedCallback(F)}g("Height"),g("Width"),l(a,F,"resetPage")}function c(a){var b=a.id;e(" Removing iFrame: "+b),a.parentNode.removeChild(a),C.closedCallback(b),e(" --")}function d(){var a=E.substr(x).split(":");return{iframe:document.getElementById(a[0]),id:a[0],height:a[1],width:a[2],type:a[3]}}function g(a){var b=Number(C["max"+a]),c=Number(C["min"+a]),d=a.toLowerCase(),f=Number(F[d]);if(c>b)throw new Error("Value for min"+a+" can not be greater than max"+a);e(" Checking "+d+" is in range "+c+"-"+b),c>f&&(f=c,e(" Set "+d+" to min value")),f>b&&(f=b,e(" Set "+d+" to max value")),F[d]=""+f}function m(){var b=a.origin,c=F.iframe.src.split("/").slice(0,3).join("/");if(C.checkOrigin&&(e(" Checking connection is from: "+c),""+b!="null"&&b!==c))throw new Error("Unexpected message received from: "+b+" for "+F.iframe.id+". Message was: "+a.data+". This error can be disabled by adding the checkOrigin: false option.");return!0}function n(){return w===(""+E).substr(0,x)}function o(){var a=F.type in{"true":1,"false":1};return a&&e(" Ignoring init message from meta parent page"),a}function p(a){return E.substr(E.indexOf(":")+v+a)}function q(a){e(" MessageCallback passed: {iframe: "+F.iframe.id+", message: "+a+"}"),C.messageCallback({iframe:F.iframe,message:JSON.parse(a)}),e(" --")}function r(){if(null===F.iframe)throw new Error("iFrame ("+F.id+") does not exist on "+y);return!0}function s(a){var b=a.getBoundingClientRect();return h(),{x:parseInt(b.left,10)+parseInt(z.x,10),y:parseInt(b.top,10)+parseInt(z.y,10)}}function u(a){function b(){z=g,A(),e(" --")}function c(){return{x:Number(F.width)+d.x,y:Number(F.height)+d.y}}var d=a?s(F.iframe):{x:0,y:0},g=c();e(" Reposition requested from iFrame (offset x:"+d.x+" y:"+d.y+")"),window.top!==window.self?window.parentIFrame?a?parentIFrame.scrollToOffset(g.x,g.y):parentIFrame.scrollTo(F.width,F.height):f(" Unable to scroll to requested position, window.parentIFrame not found"):b()}function A(){!1!==C.scrollCallback(z)&&i()}function B(a){function b(a){var b=s(a);e(" Moving to in page link (#"+c+") at x: "+b.x+" y: "+b.y),z={x:b.x,y:b.y},A(),e(" --")}var c=a.split("#")[1]||"",d=decodeURIComponent(c),f=document.getElementById(d)||document.getElementsByName(d)[0];window.top!==window.self?window.parentIFrame?parentIFrame.moveToAnchor(c):e(" In page link #"+c+" not found and window.parentIFrame not found"):f?b(f):e(" In page link #"+c+" not found")}function D(){switch(F.type){case"close":c(F.iframe),C.resizedCallback(F);break;case"message":q(p(6));break;case"scrollTo":u(!1);break;case"scrollToOffset":u(!0);break;case"inPageLink":B(p(9));break;case"reset":j(F);break;case"init":b(),C.initCallback(F.iframe);break;default:b()}}var E=a.data,F={};n()&&(e(" Received: "+E),F=d(),!o()&&r()&&m()&&(D(),t=!1))}function h(){null===z&&(z={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop},e(" Get page position: "+z.x+","+z.y))}function i(){null!==z&&(window.scrollTo(z.x,z.y),e(" Set page position: "+z.x+","+z.y),z=null)}function j(a){function b(){k(a),m("reset","reset",a.iframe)}e(" Size reset requested by "+("init"===a.type?"host page":"iFrame")),h(),l(b,a,"init")}function k(a){function b(b){a.iframe.style[b]=a[b]+"px",e(" IFrame ("+a.iframe.id+") "+b+" set to "+a[b]+"px")}C.sizeHeight&&b("height"),C.sizeWidth&&b("width")}function l(a,b,c){c!==b.type&&A?(e(" Requesting animation frame"),A(a)):a()}function m(a,b,c){e("["+a+"] Sending msg to iframe ("+b+")"),c.contentWindow.postMessage(w+b,"*")}function n(){function b(){function a(a){1/0!==C[a]&&0!==C[a]&&(i.style[a]=C[a]+"px",e(" Set "+a+" = "+C[a]+"px"))}a("maxHeight"),a("minHeight"),a("maxWidth"),a("minWidth")}function c(a){return""===a&&(i.id=a="iFrameResizer"+s++,e(" Added missing iframe ID: "+a+" ("+i.src+")")),a}function d(){e(" IFrame scrolling "+(C.scrolling?"enabled":"disabled")+" for "+k),i.style.overflow=!1===C.scrolling?"hidden":"auto",i.scrolling=!1===C.scrolling?"no":"yes"}function f(){("number"==typeof C.bodyMargin||"0"===C.bodyMargin)&&(C.bodyMarginV1=C.bodyMargin,C.bodyMargin=""+C.bodyMargin+"px")}function g(){return k+":"+C.bodyMarginV1+":"+C.sizeWidth+":"+C.log+":"+C.interval+":"+C.enablePublicMethods+":"+C.autoResize+":"+C.bodyMargin+":"+C.heightCalculationMethod+":"+C.bodyBackground+":"+C.bodyPadding+":"+C.tolerance+":"+C.enableInPageLinks}function h(b){a(i,"load",function(){var a=t;m("iFrame.onload",b,i),!a&&C.heightCalculationMethod in B&&j({iframe:i,height:0,width:0,type:"init"})}),m("init",b,i)}var i=this,k=c(i.id);d(),b(),f(),h(g())}function o(a){if("object"!=typeof a)throw new TypeError("Options is not an object.")}function p(a){a=a||{},o(a);for(var b in D)D.hasOwnProperty(b)&&(C[b]=a.hasOwnProperty(b)?a[b]:D[b])}function q(){function a(a){if(!a.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==a.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+a.tagName+">.");n.call(a)}return function(b,c){switch(p(b),typeof c){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(c||"iframe"),a);break;case"object":a(c);break;default:throw new TypeError("Unexpected data type ("+typeof c+").")}}}function r(a){a.fn.iFrameResize=function(a){return p(a),this.filter("iframe").each(n).end()}}var s=0,t=!0,u="message",v=u.length,w="[iFrameSizer]",x=w.length,y="",z=null,A=window.requestAnimationFrame,B={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},C={},D={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,enableInPageLinks:!1,enablePublicMethods:!1,heightCalculationMethod:"offset",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,scrolling:!1,sizeHeight:!0,sizeWidth:!1,tolerance:0,closedCallback:function(){},initCallback:function(){},messageCallback:function(){},resizedCallback:function(){},scrollCallback:function(){return!0}};b(),a(window,"message",g),window.jQuery&&r(jQuery),"function"==typeof define&&define.amd?define([],q):"object"==typeof module&&"object"==typeof module.exports?module.exports=q():window.iFrameResize=q()}();
//# sourceMappingURL=iframeResizer.map
/*
(function($) {
	$(document).ready(function() {
		$('body').on('hidden.bs.modal', '.modal', function() {
			$(this).removeData('bs.modal');
		});

		$("a[data-target]").click(function(e) {

			e.preventDefault();

			var link = $(this).attr("data-remote");


			var height = $(window).height() - 150;

			if (navigator.userAgent.match(/Mobi/)) {

			   height = $(document).height() - 250;

			}


			$('#modal .modal-body').html('<div class="scroll-wrapper"><iframe src="' + link + '" width="100%" height="' + height +'px" name="Modal Content"></iframe></div>');

			if (navigator.userAgent.match(/Mobi/)) {
				$('iframe').iFrameResize();
			} else {
				$('iframe').iFrameResize({scrolling: true, maxHeight: height, minHeight: height});
			}

			$('#modal').modal('show');



		});
	});

})(jQuery);
*/


(function($) {
	$(document).ready(function() {
		$('body').on('hidden.bs.modal', '.modal', function () {
			$(this).removeData('bs.modal');
		});

		$('#iframe').on('load', function() {
			try {
				var modal = $('#modal');
				modal.find('.modal-body').html($(this).contents().find('.maincol').eq(0).html());
			}
			catch(err) {
				// e.g. post redirects to get
			}
		});

		if (!$.accessibility.getStatus()) {
			$('#modal').on('show.bs.modal', function (e) {
				var modal = $('#modal');
				if (modal.attr('data-pageinfo-modal')) {
					var data = {
						'title': document.title
					};
					modal.attr('data-pageinfo-original', JSON.stringify(data));

					data = JSON.parse(modal.attr('data-pageinfo-modal'));
					document.title = data['title'];
					modal.removeAttr('data-pageinfo-modal');
				}
			});
			$('#modal').on('shown.bs.modal', function (e) {
				$('#modal .loadiniframe').each(function() {
					$(this).attr('target', '_blank');
					//$(this).attr('target', 'iframe');
					//$(this).attr('action', $(this).attr('data-loadiniframe'));
				});
			});
			$('#modal').on('hide.bs.modal', function (e) {
				var modal = $('#modal');
				if (modal.attr('data-pageinfo-original')) {
					var data = JSON.parse(modal.attr('data-pageinfo-original'));
					document.title = data['title'];
					modal.removeAttr('data-pageinfo-original')
				}
			});

			$('body').on('click', 'a[data-target]', function (e) {
				e.preventDefault();

				var attr = $(this).attr('data-json');

				if (typeof attr !== typeof undefined && attr !== false) {

					var modal = $('#modal');
					var jsonurl = $(this).attr('data-json');
					modal.attr('data-json', jsonurl);

					$.ajax({
						type: 'GET',
						url: jsonurl,
						async: true,
						contentType: "application/json",
						cache: true,
						dataType: 'jsonp',
						jsonpCallback: 'jsonCallback',
						success: function (json) {
							modal.attr('data-pageinfo-modal', JSON.stringify(json['pageinfo']));
							modal.find('.modal-body').html(json['content']);
							modal.modal('show');
						},
						error: function (e) {
							console.log(e.message);
						}
					});

				} else {
					var url = $(this).attr("data-remote");

					$("#modal .modal-body").load(url, function () {
						$('#modal').modal('show');
					});

				}

			});
		}
	});

})(jQuery);


/*
$(window).resize(function() {
   var height = $(window).height();
   $('iframe').iFrameResize({scrolling: true, maxHeight: height, minHeight: height});
});
*/

/*!
 * shariff - v3.0.1 - Tue, 17 Apr 2018 06:12:14 GMT
 * https://github.com/heiseonline/shariff
 * Copyright (c) 2018 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli
 * Licensed under the MIT license
 */
!function(e){function t(a){if(r[a])return r[a].exports;var n=r[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)}([function(e,t,r){"use strict";function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function n(e,t,r){if(e&&p.isObject(e)&&e instanceof a)return e;var n=new a;return n.parse(e,t,r),n}function i(e){return p.isString(e)&&(e=n(e)),e instanceof a?e.format():a.prototype.format.call(e)}function o(e,t){return n(e,!1,!0).resolve(t)}function s(e,t){return e?n(e,!1,!0).resolveObject(t):t}var l=r(9),p=r(11);t.parse=n,t.resolve=o,t.resolveObject=s,t.format=i,t.Url=a;var h=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["<",">",'"',"`"," ","\r","\n","\t"],f=["{","}","|","\\","^","`"].concat(c),m=["'"].concat(f),g=["%","/","?",";","#"].concat(m),b=["/","?","#"],v=/^[+a-z0-9A-Z_-]{0,63}$/,k=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},z={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},T=r(12);a.prototype.parse=function(e,t,r){if(!p.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),n=-1!==a&&a<e.indexOf("#")?"?":"#",i=e.split(n),o=/\\/g;i[0]=i[0].replace(o,"/"),e=i.join(n);var s=e;if(s=s.trim(),!r&&1===e.split("#").length){var u=d.exec(s);if(u)return this.path=s,this.href=s,this.pathname=u[1],u[2]?(this.search=u[2],this.query=t?T.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var c=h.exec(s);if(c){c=c[0];var f=c.toLowerCase();this.protocol=f,s=s.substr(c.length)}if(r||c||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var w="//"===s.substr(0,2);!w||c&&z[c]||(s=s.substr(2),this.slashes=!0)}if(!z[c]&&(w||c&&!y[c])){for(var P=-1,x=0;x<b.length;x++){var D=s.indexOf(b[x]);-1!==D&&(-1===P||D<P)&&(P=D)}var U,C;C=-1===P?s.lastIndexOf("@"):s.lastIndexOf("@",P),-1!==C&&(U=s.slice(0,C),s=s.slice(C+1),this.auth=decodeURIComponent(U)),P=-1;for(var x=0;x<g.length;x++){var D=s.indexOf(g[x]);-1!==D&&(-1===P||D<P)&&(P=D)}-1===P&&(P=s.length),this.host=s.slice(0,P),s=s.slice(P),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var I=this.hostname.split(/\./),x=0,S=I.length;x<S;x++){var L=I[x];if(L&&!L.match(v)){for(var F="",N=0,O=L.length;N<O;N++)L.charCodeAt(N)>127?F+="x":F+=L[N];if(!F.match(v)){var A=I.slice(0,x),G=I.slice(x+1),q=L.match(k);q&&(A.push(q[1]),G.unshift(q[2])),G.length&&(s="/"+G.join(".")+s),this.hostname=A.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=l.toASCII(this.hostname));var M=this.port?":"+this.port:"",J=this.hostname||"";this.host=J+M,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!j[f])for(var x=0,S=m.length;x<S;x++){var V=m[x];if(-1!==s.indexOf(V)){var W=encodeURIComponent(V);W===V&&(W=escape(V)),s=s.split(V).join(W)}}var Q=s.indexOf("#");-1!==Q&&(this.hash=s.substr(Q),s=s.slice(0,Q));var B=s.indexOf("?");if(-1!==B?(this.search=s.substr(B),this.query=s.substr(B+1),t&&(this.query=T.parse(this.query)),s=s.slice(0,B)):t&&(this.search="",this.query={}),s&&(this.pathname=s),y[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var M=this.pathname||"",X=this.search||"";this.path=M+X}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",a=this.hash||"",n=!1,i="";this.host?n=e+this.host:this.hostname&&(n=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&p.isObject(this.query)&&Object.keys(this.query).length&&(i=T.stringify(this.query));var o=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==n?(n="//"+(n||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):n||(n=""),a&&"#"!==a.charAt(0)&&(a="#"+a),o&&"?"!==o.charAt(0)&&(o="?"+o),r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),o=o.replace("#","%23"),t+n+r+o+a},a.prototype.resolve=function(e){return this.resolveObject(n(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(p.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var r=new a,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var h=s[l];"protocol"!==h&&(r[h]=e[h])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var u=Object.keys(e),d=0;d<u.length;d++){var c=u[d];r[c]=e[c]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||z[e.protocol])r.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),r.pathname=f.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",g=r.search||"";r.path=m+g}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),k=v||b||r.host&&e.pathname,j=k,T=r.pathname&&r.pathname.split("/")||[],f=e.pathname&&e.pathname.split("/")||[],w=r.protocol&&!y[r.protocol];if(w&&(r.hostname="",r.port=null,r.host&&(""===T[0]?T[0]=r.host:T.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),k=k&&(""===f[0]||""===T[0])),v)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,T=f;else if(f.length)T||(T=[]),T.pop(),T=T.concat(f),r.search=e.search,r.query=e.query;else if(!p.isNullOrUndefined(e.search)){if(w){r.hostname=r.host=T.shift();var P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");P&&(r.auth=P.shift(),r.host=r.hostname=P.shift())}return r.search=e.search,r.query=e.query,p.isNull(r.pathname)&&p.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!T.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=T.slice(-1)[0],D=(r.host||e.host||T.length>1)&&("."===x||".."===x)||""===x,U=0,C=T.length;C>=0;C--)x=T[C],"."===x?T.splice(C,1):".."===x?(T.splice(C,1),U++):U&&(T.splice(C,1),U--);if(!k&&!j)for(;U--;U)T.unshift("..");!k||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),D&&"/"!==T.join("/").substr(-1)&&T.push("");var R=""===T[0]||T[0]&&"/"===T[0].charAt(0);if(w){r.hostname=r.host=R?"":T.length?T.shift():"";var P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");P&&(r.auth=P.shift(),r.host=r.hostname=P.shift())}return k=k||r.host&&T.length,k&&!R&&T.unshift(""),T.length?r.pathname=T.join("/"):(r.pathname=null,r.path=null),p.isNull(r.pathname)&&p.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";r(3),e.exports=r(4)},function(e,t){},function(e,t,r){"use strict";(function(t){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),o=r(5),s=r(6),l=r(0),p={theme:"color",backendUrl:null,infoUrl:"http://ct.de/-2467514",infoDisplay:"blank",lang:"de",langFallback:"en",mailUrl:function(){var e=l.parse(this.getURL(),!0);return e.query.view="mail",delete e.search,l.format(e)},mailBody:function(){return this.getURL()},mediaUrl:null,orientation:"horizontal",buttonStyle:"standard",referrerTrack:null,services:["twitter","facebook","googleplus","info"],title:t.document.title,twitterVia:null,flattrUser:null,flattrCategory:null,url:function(){var e=t.document.location.href,r=o("link[rel=canonical]").attr("href")||this.getMeta("og:url")||"";return r.length>0&&(r.indexOf("http")<0&&(r=t.document.location.protocol+"//"+t.document.location.host+r),e=r),e}},h=function(){function e(t,r){var n=this;a(this,e),this.element=t,o(t).empty(),this.options=o.extend({},p,r,o(t).data()),this.services=Object.keys(s).filter(function(e){return n.isEnabledService(e)}).sort(function(e,t){var r=n.options.services;return r.indexOf(e)-r.indexOf(t)}).map(function(e){return s[e](n)}),this._addButtonList(),null!==this.options.backendUrl&&"icon"!==this.options.buttonStyle&&this.getShares(this._updateCounts.bind(this))}return i(e,[{key:"isEnabledService",value:function(e){return this.options.services.indexOf(e)>-1}},{key:"$socialshareElement",value:function(){return o(this.element)}},{key:"getLocalized",value:function(e,t){return"object"===n(e[t])?void 0===e[t][this.options.lang]?e[t][this.options.langFallback]:e[t][this.options.lang]:"string"==typeof e[t]?e[t]:void 0}},{key:"getMeta",value:function(e){return o('meta[name="'+e+'"],[property="'+e+'"]').attr("content")||""}},{key:"getInfoUrl",value:function(){return this.options.infoUrl}},{key:"getInfoDisplayPopup",value:function(){return"popup"===this.options.infoDisplay}},{key:"getInfoDisplayBlank",value:function(){return"popup"!==this.options.infoDisplay&&"self"!==this.options.infoDisplay}},{key:"getURL",value:function(){return this.getOption("url")}},{key:"getOption",value:function(e){var t=this.options[e];return"function"==typeof t?t.call(this):t}},{key:"getTitle",value:function(){var e=this.getOption("title")||this.getMeta("DC.title"),t=this.getMeta("DC.creator");return e&&t&&(e=e+" - "+t),e}},{key:"getReferrerTrack",value:function(){return this.options.referrerTrack||""}},{key:"getShares",value:function(e){var t=l.parse(this.options.backendUrl,!0);return t.query.url=this.getURL(),delete t.search,o.getJSON(l.format(t),e)}},{key:"_updateCounts",value:function(e,t,r){var a=this;e&&o.each(e,function(e,t){a.isEnabledService(e)&&(t>=1e3&&(t=Math.round(t/1e3)+"k"),o(a.element).find("."+e+" a").append(o("<span/>").addClass("share_count").text(t)))})}},{key:"_addButtonList",value:function(){var e=this,r=o("<ul/>").addClass(["theme-"+this.options.theme,"orientation-"+this.options.orientation,"button-style-"+this.options.buttonStyle,"shariff-col-"+this.options.services.length].join(" "));this.services.forEach(function(t){var a=o("<li/>").addClass("shariff-button "+t.name),n=o("<a/>").attr("href",t.shareUrl);if("standard"===e.options.buttonStyle){var i=o("<span/>").addClass("share_text").text(e.getLocalized(t,"shareText"));n.append(i)}void 0!==t.faPrefix&&void 0!==t.faName&&n.prepend(o("<span/>").addClass(t.faPrefix+" "+t.faName)),t.popup?(n.attr("data-rel","popup"),"info"!==t.name&&n.attr("rel","nofollow")):t.blank?(n.attr("target","_blank"),"info"===t.name?n.attr("rel","noopener noreferrer"):n.attr("rel","nofollow noopener noreferrer")):"info"!==t.name&&n.attr("rel","nofollow"),n.attr("title",e.getLocalized(t,"title")),n.attr("role","button"),n.attr("aria-label",e.getLocalized(t,"title")),a.append(n),r.append(a)}),r.on("click",'[data-rel="popup"]',function(e){e.preventDefault();var r=o(this).attr("href");if(r.match(/twitter\.com\/intent\/(\w+)/)){var a=t.window;if(a.__twttr&&a.__twttr.widgets&&a.__twttr.widgets.loaded)return}t.window.open(r,"_blank","width=600,height=460")}),this.$socialshareElement().append(r)}}]),e}();e.exports=h,t.Shariff=h,o(function(){o(".shariff").each(function(){this.hasOwnProperty("shariff")||(this.shariff=new h(this))})})}).call(t,r(1))},function(e,t){e.exports=jQuery},function(e,t,r){"use strict";e.exports={addthis:r(7),diaspora:r(8),facebook:r(15),flattr:r(16),flipboard:r(17),googleplus:r(18),info:r(19),linkedin:r(20),mail:r(21),pinterest:r(22),print:r(23),qzone:r(24),reddit:r(25),stumbleupon:r(26),telegram:r(27),tencent:r(28),threema:r(29),tumblr:r(30),twitter:r(31),vk:r(32),weibo:r(33),whatsapp:r(34),xing:r(35)}},function(e,t,r){"use strict";e.exports=function(e){return{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"addthis",faPrefix:"fas",faName:"fa-plus",title:{bg:"Сподели в AddThis",cs:"Sdílet na AddThis",da:"Del på AddThis",de:"Bei AddThis teilen",en:"Share on AddThis",es:"Compartir en AddThis",fi:"Jaa AddThisissä",fr:"Partager sur AddThis",hr:"Podijelite na AddThis",hu:"Megosztás AddThisen",it:"Condividi su AddThis",ja:"AddThis上で共有",ko:"AddThis에서 공유하기",nl:"Delen op AddThis",no:"Del på AddThis",pl:"Udostępnij przez AddThis",pt:"Compartilhar no AddThis",ro:"Partajează pe AddThis",ru:"Поделиться на AddThis",sk:"Zdieľať na AddThis",sl:"Deli na AddThis",sr:"Podeli na AddThis",sv:"Dela på AddThis",tr:"AddThis'ta paylaş",zh:"在AddThis上分享"},shareUrl:"http://api.addthis.com/oexchange/0.8/offer?url="+encodeURIComponent(e.getURL())+e.getReferrerTrack()}}},function(e,t,r){"use strict";var a=r(0);e.exports=function(e){var t=a.parse("https://share.diasporafoundation.org/",!0);return t.query.url=e.getURL(),t.query.title=e.getTitle(),t.protocol="https",delete t.search,{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"diaspora",faPrefix:"fas",faName:"fa-asterisk",title:{bg:"Сподели в Diaspora",cs:"Sdílet na Diaspora",da:"Del på Diaspora",de:"Bei Diaspora teilen",en:"Share on Diaspora",es:"Compartir en Diaspora",fi:"Jaa Diasporaissä",fr:"Partager sur Diaspora",hr:"Podijelite na Diaspora",hu:"Megosztás Diaspora",it:"Condividi su Diaspora",ja:"Diaspora上で共有",ko:"Diaspora에서 공유하기",nl:"Delen op Diaspora",no:"Del på Diaspora",pl:"Udostępnij przez Diaspora",pt:"Compartilhar no Diaspora",ro:"Partajează pe Diaspora",ru:"Поделиться на Diaspora",sk:"Zdieľať na Diaspora",sl:"Deli na Diaspora",sr:"Podeli na Diaspora-u",sv:"Dela på Diaspora",tr:"Diaspora'ta paylaş",zh:"分享至Diaspora"},shareUrl:a.format(t)+e.getReferrerTrack()}}},function(e,t,r){(function(e,a){var n;!function(a){function i(e){throw new RangeError(R[e])}function o(e,t){for(var r=e.length,a=[];r--;)a[r]=t(e[r]);return a}function s(e,t){var r=e.split("@"),a="";return r.length>1&&(a=r[0]+"@",e=r[1]),e=e.replace(C,"."),a+o(e.split("."),t).join(".")}function l(e){for(var t,r,a=[],n=0,i=e.length;n<i;)t=e.charCodeAt(n++),t>=55296&&t<=56319&&n<i?(r=e.charCodeAt(n++),56320==(64512&r)?a.push(((1023&t)<<10)+(1023&r)+65536):(a.push(t),n--)):a.push(t);return a}function p(e){return o(e,function(e){var t="";return e>65535&&(e-=65536,t+=L(e>>>10&1023|55296),e=56320|1023&e),t+=L(e)}).join("")}function h(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:k}function u(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,r){var a=0;for(e=r?S(e/T):e>>1,e+=S(e/t);e>I*z>>1;a+=k)e=S(e/I);return S(a+(I+1)*e/(e+y))}function c(e){var t,r,a,n,o,s,l,u,c,f,m=[],g=e.length,b=0,y=P,T=w;for(r=e.lastIndexOf(x),r<0&&(r=0),a=0;a<r;++a)e.charCodeAt(a)>=128&&i("not-basic"),m.push(e.charCodeAt(a));for(n=r>0?r+1:0;n<g;){for(o=b,s=1,l=k;n>=g&&i("invalid-input"),u=h(e.charCodeAt(n++)),(u>=k||u>S((v-b)/s))&&i("overflow"),b+=u*s,c=l<=T?j:l>=T+z?z:l-T,!(u<c);l+=k)f=k-c,s>S(v/f)&&i("overflow"),s*=f;t=m.length+1,T=d(b-o,t,0==o),S(b/t)>v-y&&i("overflow"),y+=S(b/t),b%=t,m.splice(b++,0,y)}return p(m)}function f(e){var t,r,a,n,o,s,p,h,c,f,m,g,b,y,T,D=[];for(e=l(e),g=e.length,t=P,r=0,o=w,s=0;s<g;++s)(m=e[s])<128&&D.push(L(m));for(a=n=D.length,n&&D.push(x);a<g;){for(p=v,s=0;s<g;++s)(m=e[s])>=t&&m<p&&(p=m);for(b=a+1,p-t>S((v-r)/b)&&i("overflow"),r+=(p-t)*b,t=p,s=0;s<g;++s)if(m=e[s],m<t&&++r>v&&i("overflow"),m==t){for(h=r,c=k;f=c<=o?j:c>=o+z?z:c-o,!(h<f);c+=k)T=h-f,y=k-f,D.push(L(u(f+T%y,0))),h=S(T/y);D.push(L(u(h,0))),o=d(r,b,a==n),r=0,++a}++r,++t}return D.join("")}function m(e){return s(e,function(e){return D.test(e)?c(e.slice(4).toLowerCase()):e})}function g(e){return s(e,function(e){return U.test(e)?"xn--"+f(e):e})}var b,v=("object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType,2147483647),k=36,j=1,z=26,y=38,T=700,w=72,P=128,x="-",D=/^xn--/,U=/[^\x20-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=k-j,S=Math.floor,L=String.fromCharCode;b={version:"1.4.1",ucs2:{decode:l,encode:p},decode:c,encode:f,toASCII:g,toUnicode:m},void 0!==(n=function(){return b}.call(t,r,t,e))&&(e.exports=n)}()}).call(t,r(10)(e),r(1))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(13),t.encode=t.stringify=r(14)},function(e,t,r){"use strict";function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,i){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(t);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var p=e.length;l>0&&p>l&&(p=l);for(var h=0;h<p;++h){var u,d,c,f,m=e[h].replace(s,"%20"),g=m.indexOf(r);g>=0?(u=m.substr(0,g),d=m.substr(g+1)):(u=m,d=""),c=decodeURIComponent(u),f=decodeURIComponent(d),a(o,c)?n(o[c])?o[c].push(f):o[c]=[o[c],f]:o[c]=f}return o};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";function a(e,t){if(e.map)return e.map(t);for(var r=[],a=0;a<e.length;a++)r.push(t(e[a],a));return r}var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?a(o(e),function(o){var s=encodeURIComponent(n(o))+r;return i(e[o])?a(e[o],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[o]))}).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},function(e,t,r){"use strict";e.exports=function(e){return{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"facebook",faPrefix:"fab",faName:"fa-facebook-f",title:{bg:"Сподели във Facebook",cs:"Sdílet na Facebooku",da:"Del på Facebook",de:"Bei Facebook teilen",en:"Share on Facebook",es:"Compartir en Facebook",fi:"Jaa Facebookissa",fr:"Partager sur Facebook",hr:"Podijelite na Facebooku",hu:"Megosztás Facebookon",it:"Condividi su Facebook",ja:"フェイスブック上で共有",ko:"페이스북에서 공유하기",nl:"Delen op Facebook",no:"Del på Facebook",pl:"Udostępnij na Facebooku",pt:"Compartilhar no Facebook",ro:"Partajează pe Facebook",ru:"Поделиться на Facebook",sk:"Zdieľať na Facebooku",sl:"Deli na Facebooku",sr:"Podeli na Facebook-u",sv:"Dela på Facebook",tr:"Facebook'ta paylaş",zh:"在Facebook上分享"},shareUrl:"https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(e.getURL())+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){var t=encodeURIComponent(e.getURL()),r=e.getTitle(),a=e.getMeta("description");return{popup:!0,shareText:"Flattr",name:"flattr",faPrefix:"far",faName:"fa-money-bill-alt",title:{de:"Artikel flattrn",en:"Flattr this"},shareUrl:"https://flattr.com/submit/auto?title="+encodeURIComponent(r)+"&description="+encodeURIComponent(a)+"&category="+encodeURIComponent(e.options.flattrCategory||"text")+"&user_id="+encodeURIComponent(e.options.flattrUser)+"&url="+t+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){var t=encodeURIComponent(e.getURL());return{popup:!0,shareText:"flip it",name:"flipboard",faPrefix:"fab",faName:"fa-flipboard",title:{bg:"Сподели в Flipboard",cs:"Sdílet na Flipboardu",da:"Del på Flipboard",de:"Bei Flipboard teilen",en:"Share on Flipboard",es:"Compartir en Flipboard",fi:"Jaa Flipboardissä",fr:"Partager sur Flipboard",hr:"Podijelite na Flipboardu",hu:"Megosztás Flipboardon",it:"Condividi su Flipboard",ja:"Flipboard上で共有",ko:"Flipboard에서 공유하기",nl:"Delen op Flipboard",no:"Del på Flipboard",pl:"Udostępnij na Flipboardu",pt:"Compartilhar no Flipboard",ro:"Partajează pe Flipboard",ru:"Поделиться на Flipboard",sk:"Zdieľať na Flipboardu",sl:"Deli na Flipboardu",sr:"Podeli na Flipboard-u",sv:"Dela på Flipboard",tr:"Flipboard'ta paylaş",zh:"在Flipboard上分享"},shareUrl:"https://share.flipboard.com/bookmarklet/popout?v=2&title="+encodeURIComponent(e.getTitle())+"&url="+t+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){return{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"googleplus",faPrefix:"fab",faName:"fa-google-plus-g",title:{bg:"Сподели в Google+",cs:"Sdílet na Google+",da:"Del på Google+",de:"Bei Google+ teilen",en:"Share on Google+",es:"Compartir en Google+",fi:"Jaa Google+:ssa",fr:"Partager sur Goolge+",hr:"Podijelite na Google+",hu:"Megosztás Google+on",it:"Condividi su Google+",ja:"Google+上で共有",ko:"Google+에서 공유하기",nl:"Delen op Google+",no:"Del på Google+",pl:"Udostępnij na Google+",pt:"Compartilhar no Google+",ro:"Partajează pe Google+",ru:"Поделиться на Google+",sk:"Zdieľať na Google+",sl:"Deli na Google+",sr:"Podeli na Google+",sv:"Dela på Google+",tr:"Google+'da paylaş",zh:"在Google+上分享"},shareUrl:"https://plus.google.com/share?url="+encodeURIComponent(e.getURL())+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){return{blank:e.getInfoDisplayBlank(),popup:e.getInfoDisplayPopup(),shareText:"Info",name:"info",faPrefix:"fas",faName:"fa-info",title:{bg:"Повече информация",cs:"Více informací",da:"Flere oplysninger",de:"Weitere Informationen",en:"More information",es:"Más informaciones",fi:"Lisätietoja",fr:"Plus d'informations",hr:"Više informacija",hu:"Több információ",it:"Maggiori informazioni",ja:"詳しい情報",ko:"추가 정보",nl:"Verdere informatie",no:"Mer informasjon",pl:"Więcej informacji",pt:"Mais informações",ro:"Mai multe informatii",ru:"Больше информации",sk:"Viac informácií",sl:"Več informacij",sr:"Više informacija",sv:"Mer information",tr:"Daha fazla bilgi",zh:"更多信息"},shareUrl:e.getInfoUrl()}}},function(e,t,r){"use strict";e.exports=function(e){var t=encodeURIComponent(e.getURL()),r=encodeURIComponent(e.getTitle());return{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"mitteilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"シェア",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"distribuiți",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"linkedin",faPrefix:"fab",faName:"fa-linkedin-in",title:{bg:"Сподели в LinkedIn",cs:"Sdílet na LinkedIn",da:"Del på LinkedIn",de:"Bei LinkedIn teilen",en:"Share on LinkedIn",es:"Compartir en LinkedIn",fi:"Jaa LinkedInissä",fr:"Partager sur LinkedIn",hr:"Podijelite na LinkedIn",hu:"Megosztás LinkedInen",it:"Condividi su LinkedIn",ja:"LinkedIn上で共有",ko:"LinkedIn에서 공유하기",nl:"Delen op LinkedIn",no:"Del på LinkedIn",pl:"Udostępnij przez LinkedIn",pt:"Compartilhar no LinkedIn",ro:"Partajează pe LinkedIn",ru:"Поделиться на LinkedIn",sk:"Zdieľať na LinkedIn",sl:"Deli na LinkedIn",sr:"Podeli na LinkedIn-u",sv:"Dela på LinkedIn",tr:"LinkedIn'ta paylaş",zh:"在LinkedIn上分享"},shareUrl:"https://www.linkedin.com/shareArticle?mini=true&summary="+encodeURIComponent(e.getMeta("description"))+"&title="+r+"&url="+t}}},function(e,t,r){"use strict";e.exports=function(e){var t=e.getOption("mailUrl");return 0===t.indexOf("mailto:")&&(t+="?subject="+encodeURIComponent(e.getOption("mailSubject")||e.getTitle()),t+="&body="+encodeURIComponent(e.getOption("mailBody").replace(/\{url\}/i,e.getURL()))),{blank:0===t.indexOf("http"),popup:!1,shareText:{en:"mail",zh:"分享"},name:"mail",faPrefix:"fas",faName:"fa-envelope",title:{bg:"Изпрати по имейл",cs:"Poslat mailem",da:"Sende via e-mail",de:"Per E-Mail versenden",en:"Send by email",es:"Enviar por email",fi:"Lähetä sähköpostitse",fr:"Envoyer par courriel",hr:"Pošaljite emailom",hu:"Elküldés e-mailben",it:"Inviare via email",ja:"電子メールで送信",ko:"이메일로 보내기",nl:"Sturen via e-mail",no:"Send via epost",pl:"Wyślij e-mailem",pt:"Enviar por e-mail",ro:"Trimite prin e-mail",ru:"Отправить по эл. почте",sk:"Poslať e-mailom",sl:"Pošlji po elektronski pošti",sr:"Pošalji putem email-a",sv:"Skicka via e-post",tr:"E-posta ile gönder",zh:"通过电子邮件传送"},shareUrl:t}}},function(e,t,r){"use strict";var a=r(0);e.exports=function(e){var t=e.getTitle(),r=e.getMeta("DC.creator");r.length>0&&(t+=" - "+r);var n=e.getOption("mediaUrl");(!n||n.length<=0)&&(n=e.getMeta("og:image"));var i=a.parse("https://www.pinterest.com/pin/create/link/",!0);return i.query.url=e.getURL(),i.query.media=n,i.query.description=t,delete i.search,{popup:!0,shareText:"pin it",name:"pinterest",faPrefix:"fab",faName:"fa-pinterest-p",title:{bg:"Сподели в Pinterest",cs:"Přidat na Pinterest",da:"Del på Pinterest",de:"Bei Pinterest pinnen",en:"Pin it on Pinterest",es:"Compartir en Pinterest",fi:"Jaa Pinterestissä",fr:"Partager sur Pinterest",hr:"Podijelite na Pinterest",hu:"Megosztás Pinteresten",it:"Condividi su Pinterest",ja:"Pinterest上で共有",ko:"Pinterest에서 공유하기",nl:"Delen op Pinterest",no:"Del på Pinterest",pl:"Udostępnij przez Pinterest",pt:"Compartilhar no Pinterest",ro:"Partajează pe Pinterest",ru:"Поделиться на Pinterest",sk:"Zdieľať na Pinterest",sl:"Deli na Pinterest",sr:"Podeli na Pinterest-u",sv:"Dela på Pinterest",tr:"Pinterest'ta paylaş",zh:"分享至Pinterest"},shareUrl:a.format(i)+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){return{name:"print",faPrefix:"fas",faName:"fa-print",popup:!1,shareText:{bg:"",cs:"tlačit",da:"",de:"drucken",en:"print",es:"",fi:"",fr:"",hr:"",hu:"",it:"",ja:"",ko:"",nl:"",no:"",pl:"",pt:"",ro:"",ru:"",sk:"",sl:"",sr:"",sv:"",tr:"",zh:""},title:{bg:"",cs:"tlačit",da:"",de:"drucken",en:"print",es:"",fi:"",fr:"",hr:"",hu:"",it:"",ja:"",ko:"",nl:"",no:"",pl:"",pt:"",ro:"",ru:"",sk:"",sl:"",sr:"",sv:"",tr:"",zh:""},shareUrl:"javascript:window.print();"}}},function(e,t,r){"use strict";e.exports=function(e){return{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"qzone",faPrefix:"fab",faName:"fa-qq",title:{bg:"Сподели в Qzone",cs:"Sdílet na Qzone",da:"Del på Qzone",de:"Bei Qzone teilen",en:"Share on Qzone",es:"Compartir en Qzone",fi:"Jaa Qzoneissä",fr:"Partager sur Qzone",hr:"Podijelite na Qzone",hu:"Megosztás Qzone",it:"Condividi su Qzone",ja:"Qzone上で共有",ko:"Qzone에서 공유하기",nl:"Delen op Qzone",no:"Del på Qzone",pl:"Udostępnij przez Qzone",pt:"Compartilhar no Qzone",ro:"Partajează pe Qzone",ru:"Поделиться на Qzone",sk:"Zdieľať na Qzone",sl:"Deli na Qzone",sr:"Podeli na Qzone-u",sv:"Dela på Qzone",tr:"Qzone'ta paylaş",zh:"分享至QQ空间"},shareUrl:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+encodeURIComponent(e.getURL())+"&title="+e.getTitle()+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){var t=encodeURIComponent(e.getURL()),r=encodeURIComponent(e.getTitle());return""!==r&&(r="&title="+r),{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"reddit",faPrefix:"fab",faName:"fa-reddit-alien",title:{bg:"Сподели в Reddit",cs:"Sdílet na Redditu",da:"Del på Reddit",de:"Bei Reddit teilen",en:"Share on Reddit",es:"Compartir en Reddit",fi:"Jaa Redditissä",fr:"Partager sur Reddit",hr:"Podijelite na Reddit",hu:"Megosztás Redditen",it:"Condividi su Reddit",ja:"Reddit上で共有",ko:"Reddit에서 공유하기",nl:"Delen op Reddit",no:"Del på Reddit",pl:"Udostępnij przez Reddit",pt:"Compartilhar no Reddit",ro:"Partajează pe Reddit",ru:"Поделиться на Reddit",sk:"Zdieľať na Reddit",sl:"Deli na Reddit",sr:"Podeli na Reddit-u",sv:"Dela på Reddit",tr:"Reddit'ta paylaş",zh:"分享至Reddit"},shareUrl:"https://reddit.com/submit?url="+t+r+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){var t=encodeURIComponent(e.getURL()),r=encodeURIComponent(e.getTitle());return""!==r&&(r="&title="+r),{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"stumbleupon",faPrefix:"fab",faName:"fa-stumbleupon",title:{bg:"Сподели в Stumbleupon",cs:"Sdílet na Stumbleuponu",da:"Del på Stumbleupon",de:"Bei Stumbleupon teilen",en:"Share on Stumbleupon",es:"Compartir en Stumbleupon",fi:"Jaa Stumbleuponissä",fr:"Partager sur Stumbleupon",hr:"Podijelite na Stumbleupon",hu:"Megosztás Stumbleupon",it:"Condividi su Stumbleupon",ja:"Stumbleupon上で共有",ko:"Stumbleupon에서 공유하기",nl:"Delen op Stumbleupon",no:"Del på Stumbleupon",pl:"Udostępnij przez Stumbleupon",pt:"Compartilhar no Stumbleupon",ro:"Partajează pe Stumbleupon",ru:"Поделиться на Stumbleupon",sk:"Zdieľať na Stumbleupon",sl:"Deli na Stumbleupon",sr:"Podeli na Stumbleupon-u",sv:"Dela på Stumbleupon",tr:"Stumbleupon'ta paylaş",zh:"分享至Stumbleupon"},shareUrl:"https://www.stumbleupon.com/submit?url="+t+r+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){return{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"telegram",faPrefix:"fab",faName:"fa-telegram",title:{bg:"Сподели в Telegram",cs:"Sdílet na Telegramu",da:"Del på Telegram",de:"Bei Telegram teilen",en:"Share on Telegram",es:"Compartir en Telegram",fi:"Jaa Telegramissä",fr:"Partager sur Telegram",hr:"Podijelite na Telegram",hu:"Megosztás Telegramen",it:"Condividi su Telegram",ja:"Telegram上で共有",ko:"Telegram에서 공유하기",nl:"Delen op Telegram",no:"Del på Telegram",pl:"Udostępnij przez Telegram",pt:"Compartilhar no Telegram",ro:"Partajează pe Telegram",ru:"Поделиться на Telegram",sk:"Zdieľať na Telegram",sl:"Deli na Telegram",sr:"Podeli na Telegram-u",sv:"Dela på Telegram",tr:"Telegram'ta paylaş",zh:"在Telegram上分享"},shareUrl:"https://t.me/share/url?url="+encodeURIComponent(e.getURL())+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){return{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"tencent-weibo",faPrefix:"fab",faName:"fa-tencent-weibo",title:{bg:"Сподели в tencent weibo",cs:"Sdílet na tencent weibo",da:"Del på tencent weibo",de:"Bei tencent weibo teilen",en:"Share on tencent weibo",es:"Compartir en tencent weibo",fi:"Jaa tencent weiboissä",fr:"Partager sur tencent weibo",hr:"Podijelite na tencent weibo",hu:"Megosztás tencent weiboen",it:"Condividi su tencent weibo",ja:"Tencent weibo上で共有",ko:"Tencent weibo에서 공유하기",nl:"Delen op tencent weibo",no:"Del på tencent weibo",pl:"Udostępnij przez tencent weibo",pt:"Compartilhar no tencent weibo",ro:"Partajează pe tencent weibo",ru:"Поделиться на tencent weibo",sk:"Zdieľať na tencent weibo",sl:"Deli na tencent weibo",sr:"Podeli na tencent weibo-u",sv:"Dela på tencent weibo",tr:"Tencent weibo'ta paylaş",zh:"分享至腾讯微博"},shareUrl:"http://v.t.qq.com/share/share.php?url="+encodeURIComponent(e.getURL())+"&title="+e.getTitle()+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){var t=encodeURIComponent(e.getURL()),r=e.getTitle();return{popup:!1,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"threema",faPrefix:"fas",faName:"fa-lock",title:{bg:"Сподели в Threema",cs:"Sdílet na Threema",da:"Del på Threema",de:"Bei Threema teilen",en:"Share on Threema",es:"Compartir en Threema",fi:"Jaa Threemaissä",fr:"Partager sur Threema",hr:"Podijelite na Threema",hu:"Megosztás Threemaen",it:"Condividi su Threema",ja:"Threema上で共有",ko:"Threema에서 공유하기",nl:"Delen op Threema",no:"Del på Threema",pl:"Udostępnij przez Threema",pt:"Compartilhar no Threema",ro:"Partajează pe Threema",ru:"Поделиться на Threema",sk:"Zdieľať na Threema",sl:"Deli na Threema",sr:"Podeli na Threema-u",sv:"Dela på Threema",tr:"Threema'ta paylaş",zh:"在Threema上分享"},shareUrl:"threema://compose?text="+encodeURIComponent(r)+"%20"+t+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){return{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"tumblr",faPrefix:"fab",faName:"fa-tumblr",title:{bg:"Сподели в tumblr",cs:"Sdílet na tumblru",da:"Del på tumblr",de:"Bei tumblr teilen",en:"Share on tumblr",es:"Compartir en tumblr",fi:"Jaa tumblrissä",fr:"Partager sur tumblr",hr:"Podijelite na tumblr",hu:"Megosztás tumblren",it:"Condividi su tumblr",ja:"tumblr上で共有",ko:"tumblr에서 공유하기",nl:"Delen op tumblr",no:"Del på tumblr",pl:"Udostępnij przez tumblr",pt:"Compartilhar no tumblr",ro:"Partajează pe tumblr",ru:"Поделиться на tumblr",sk:"Zdieľať na tumblr",sl:"Deli na tumblr",sr:"Podeli na tumblr-u",sv:"Dela på tumblr",tr:"tumblr'ta paylaş",zh:"在tumblr上分享"},shareUrl:"http://tumblr.com/widgets/share/tool?canonicalUrl="+encodeURIComponent(e.getURL())+e.getReferrerTrack()}}},function(e,t,r){"use strict";var a=r(0),n=function(e,t){var r=document.createElement("div"),a=document.createTextNode(e);r.appendChild(a);var n=r.textContent;if(n.length<=t)return e;var i=n.substring(0,t-1).lastIndexOf(" ");return n=n.substring(0,i)+"…"};e.exports=function(e){var t=a.parse("https://twitter.com/intent/tweet",!0),r=e.getTitle();return t.query.text=n(r,120),t.query.url=e.getURL(),null!==e.options.twitterVia&&(t.query.via=e.options.twitterVia),delete t.search,{popup:!0,shareText:{en:"tweet",ja:"のつぶやき",ko:"짹짹",ru:"твит",sr:"твеет",zh:"鸣叫"},name:"twitter",faPrefix:"fab",faName:"fa-twitter",title:{bg:"Сподели в Twitter",cs:"Sdílet na Twiiteru",da:"Del på Twitter",de:"Bei Twitter teilen",en:"Share on Twitter",es:"Compartir en Twitter",fi:"Jaa Twitterissä",fr:"Partager sur Twitter",hr:"Podijelite na Twitteru",hu:"Megosztás Twitteren",it:"Condividi su Twitter",ja:"ツイッター上で共有",ko:"트위터에서 공유하기",nl:"Delen op Twitter",no:"Del på Twitter",pl:"Udostępnij na Twitterze",pt:"Compartilhar no Twitter",ro:"Partajează pe Twitter",ru:"Поделиться на Twitter",sk:"Zdieľať na Twitteri",sl:"Deli na Twitterju",sr:"Podeli na Twitter-u",sv:"Dela på Twitter",tr:"Twitter'da paylaş",zh:"在Twitter上分享"},shareUrl:a.format(t)+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){return{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"vk",faPrefix:"fab",faName:"fa-vk",title:{bg:"Сподели във VK",cs:"Sdílet na VKu",da:"Del på VK",de:"Bei VK teilen",en:"Share on VK",es:"Compartir en VK",fi:"Jaa VKissa",fr:"Partager sur VK",hr:"Podijelite na VKu",hu:"Megosztás VKon",it:"Condividi su VK",ja:"フェイスブック上で共有",ko:"페이스북에서 공유하기",nl:"Delen op VK",no:"Del på VK",pl:"Udostępnij na VKu",pt:"Compartilhar no VK",ro:"Partajează pe VK",ru:"Поделиться на ВКонтакте",sk:"Zdieľať na VKu",sl:"Deli na VKu",sr:"Podeli na VK-u",sv:"Dela på VK",tr:"VK'ta paylaş",zh:"在VK上分享"},shareUrl:"https://vk.com/share.php?url="+encodeURIComponent(e.getURL())+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){return{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"weibo",faPrefix:"fab",faName:"fa-weibo",title:{bg:"Сподели в weibo",cs:"Sdílet na weibo",da:"Del på weibo",de:"Bei weibo teilen",en:"Share on weibo",es:"Compartir en weibo",fi:"Jaa weiboissä",fr:"Partager sur weibo",hr:"Podijelite na weibo",hu:"Megosztás weiboen",it:"Condividi su weibo",ja:"Weibo上で共有",ko:"Weibo에서 공유하기",nl:"Delen op weibo",no:"Del på weibo",pl:"Udostępnij przez weibo",pt:"Compartilhar no weibo",ro:"Partajează pe weibo",ru:"Поделиться на weibo",sk:"Zdieľať na weibo",sl:"Deli na weibo",sr:"Podeli na weibo-u",sv:"Dela på weibo",tr:"Weibo'ta paylaş",zh:"分享至新浪微博"},shareUrl:"http://service.weibo.com/share/share.php?url="+encodeURIComponent(e.getURL())+"&title="+e.getTitle()+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){var t=encodeURIComponent(e.getURL()),r=e.getTitle();return{popup:!1,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"whatsapp",faPrefix:"fab",faName:"fa-whatsapp",title:{bg:"Сподели в Whatsapp",cs:"Sdílet na Whatsappu",da:"Del på Whatsapp",de:"Bei Whatsapp teilen",en:"Share on Whatsapp",es:"Compartir en Whatsapp",fi:"Jaa WhatsAppissä",fr:"Partager sur Whatsapp",hr:"Podijelite na Whatsapp",hu:"Megosztás WhatsAppen",it:"Condividi su Whatsapp",ja:"Whatsapp上で共有",ko:"Whatsapp에서 공유하기",nl:"Delen op Whatsapp",no:"Del på Whatsapp",pl:"Udostępnij przez WhatsApp",pt:"Compartilhar no Whatsapp",ro:"Partajează pe Whatsapp",ru:"Поделиться на Whatsapp",sk:"Zdieľať na Whatsapp",sl:"Deli na Whatsapp",sr:"Podeli na WhatsApp-u",sv:"Dela på Whatsapp",tr:"Whatsapp'ta paylaş",zh:"在Whatsapp上分享"},shareUrl:"whatsapp://send?text="+encodeURIComponent(r)+"%20"+t+e.getReferrerTrack()}}},function(e,t,r){"use strict";e.exports=function(e){return{popup:!0,shareText:{bg:"cподеляне",cs:"sdílet",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"xing",faPrefix:"fab",faName:"fa-xing",title:{bg:"Сподели в XING",cs:"Sdílet na XINGu",da:"Del på XING",de:"Bei XING teilen",en:"Share on XING",es:"Compartir en XING",fi:"Jaa XINGissä",fr:"Partager sur XING",hr:"Podijelite na XING",hu:"Megosztás XINGen",it:"Condividi su XING",ja:"XING上で共有",ko:"XING에서 공유하기",nl:"Delen op XING",no:"Del på XING",pl:"Udostępnij przez XING",pt:"Compartilhar no XING",ro:"Partajează pe XING",ru:"Поделиться на XING",sk:"Zdieľať na XING",sl:"Deli na XING",sr:"Podeli na XING-u",sv:"Dela på XING",tr:"XING'ta paylaş",zh:"分享至XING"},shareUrl:"https://www.xing.com/social_plugins/share?url="+encodeURIComponent(e.getURL())+e.getReferrerTrack()}}}]);
(function($) {
	$(document).ready(function() {
		$('#modal').on('shown.bs.modal', function () {
			$(".shariff").each(function () {
				this.hasOwnProperty("shariff") || (this.shariff = new Shariff(this))
			});
		});
	});
})(jQuery);
'use strict';

/**
 * hoverIntent r6 // 2011.02.26 // jQuery 1.5.1+
 * <http://cherne.net/brian/resources/jquery.hoverIntent.html>
 *
 * @param  f  onMouseOver function || An object with configuration options
 * @param  g  onMouseOut function  || Nothing (use configuration options object)
 * @author    Brian Cherne brian(at)cherne(dot)net
 */
(function($) {
	$.fn.hoverIntent = function(f, g) {
		var cfg = {
			sensitivity : 7,
			interval : 100,
			timeout : 0
		};
		cfg = $.extend(cfg, g ? {
			over : f,
			out : g
		} : f);
		var cX, cY, pX, pY;
		var track = function(ev) {
			cX = ev.pageX;
			cY = ev.pageY
		};
		var compare = function(ev, ob) {
			ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
			if ((Math.abs(pX - cX) + Math.abs(pY - cY)) < cfg.sensitivity) {
				$(ob).unbind("mousemove", track);
				ob.hoverIntent_s = 1;
				return cfg.over.apply(ob, [ev])
			} else {
				pX = cX;
				pY = cY;
				ob.hoverIntent_t = setTimeout(function() {
					compare(ev, ob)
				}, cfg.interval)
			}
		};
		var delay = function(ev, ob) {
			ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
			ob.hoverIntent_s = 0;
			return cfg.out.apply(ob, [ev])
		};
		var handleHover = function(e) {
			var ev = jQuery.extend({}, e);
			var ob = this;
			if (ob.hoverIntent_t) {
				ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t)
			}
			if (e.type == "mouseenter") {
				pX = ev.pageX;
				pY = ev.pageY;
				$(ob).bind("mousemove", track);
				if (ob.hoverIntent_s != 1) {
					ob.hoverIntent_t = setTimeout(function() {
						compare(ev, ob)
					}, cfg.interval)
				}
			} else {
				$(ob).unbind("mousemove", track);
				if (ob.hoverIntent_s == 1) {
					ob.hoverIntent_t = setTimeout(function() {
						delay(ev, ob)
					}, cfg.timeout)
				}
			}
		};
		return this.bind('mouseenter', handleHover).bind('mouseleave', handleHover)
	}
})(jQuery);

(function(undefined) {
		$.fn.accordion = function(parameters) {

			if($('.barimageaccordion').length > 0) {

				var width = 800;
				var height = 800;
				var barSize = 60;
				var cover = false;
				var coverAlpha = 0.7;
				var shadow = false;
				var shadowAlpha = 1;
				var border = false;
				var borderSize = 0;
				var borderColor = "#ffffff";
				var transitionTime = 700;
				var autoplayTime = 1000000;
				var changeType = "over";
				var buttons = false;
				var previousBtn = undefined;
				var nextBtn = undefined;

				//PARSE PARAMETERS
				if (parameters.width != undefined)

					width = parameters.width;
				if (parameters.height != undefined)
					height = parameters.height;
				if (parameters.barSize != undefined)
					barSize = parameters.barSize;
				if (parameters.cover != undefined)
					cover = parameters.cover;
				if (parameters.coverAlpha != undefined)
					coverAlpha = parameters.coverAlpha;
				if (parameters.shadow != undefined)
					shadow = parameters.shadow;
				if (parameters.shadowAlpha != undefined)
					shadowAlpha = parameters.shadowAlpha;
				if (parameters.border != undefined)
					border = parameters.border;
				if (parameters.borderSize != undefined)
					borderSize = parameters.borderSize;
				if (parameters.borderColor != undefined)
					borderColor = parameters.borderColor;
				if (parameters.transitionTime != undefined) {
					transitionTime = parameters.transitionTime;
					transitionTime *= 1000;
				}
				if (parameters.autoplay != undefined)
					autoplay = parameters.autoplay;

				//if ( parameters.autoplayTime != undefined ){
				//	autoplayTime = parameters.autoplayTime;
				//	autoplayTime*=1000;
				//}
				if (parameters.changeType != undefined)
					changeType = parameters.changeType;
				if (parameters.previousBtn != undefined && parameters.nextBtn != undefined) {
					buttons = true;
					previousBtn = parameters.previousBtn;
					nextBtn = parameters.nextBtn;
				}

				var $root = $(this);
				var $blocks = $(".block", this);

				var numBlocks = $blocks.length;

				var size = width - barSize * (numBlocks - 1);
				var currentOpened = 0;
				var clickTypeTimeOut;

				$(".holder", $root).css("width", width * 2 + "px");

				$blocks.css("width", width * 2 + "px");
				$blocks.css("height", height + "px");

				$root.css("width", width);
				$root.css("height", height + borderSize * 2);

				$(".holder .content", $root).css("opacity", 0);

				if (border) {
					$blocks.css("border", "solid");
					$blocks.css("border-width", borderSize + "px");
					$blocks.css("border-color", borderColor);

					$root.css("border-right", "solid");
					$root.css("border-right-width", borderSize + "px");
					$root.css("border-right-color", borderColor);
				}

				var i = 0;
				$blocks.each(function() {
					var $currentBlock = $(this);
					$currentBlock.css("left", (i * (width / numBlocks)) + "px");
					$currentBlock.attr("rel", i);
					i++;
					$currentBlock.append('<div class="loading"><img src="fileadmin/templates/common/layout/images/ajax-loader.gif"/></div>');
				});

				//OVER A BLOCK
				var overBlock = function(num) {

					var $thisBlock = $($blocks[num]);

					if (!$thisBlock.hasClass("locked")) {
						currentOpened = num;

						$thisBlock.addClass("locked");

						$thisBlock.stop().animate({
							left : barSize * num
						}, transitionTime);

						$(".content_holder", $thisBlock).stop().animate({
							left : (-$thisBlock.width() / 2 + size / 2)
						}, transitionTime);

						if (shadow)
							$(".shadow", $thisBlock).stop().animate({
								width : size
							}, transitionTime);

						var left = true;
						for (var i = 0; i < numBlocks; i++) {
							var $block = $($blocks[i]);

							if (i == num) {
								left = false;
								if (cover)
									$(".content_holder .cover", $block).stop().fadeTo(transitionTime, 0);
							} else {
								if (left) {
									$block.stop().animate({
										left : barSize * i
									}, transitionTime);
								} else {
									$block.stop().animate({
										left : width - barSize * (numBlocks - i)
									}, transitionTime);
								}
								$(".content_holder", $block).stop().animate({
									left : (-$(".content_holder", $block).width() / 2 + barSize / 2)
								}, transitionTime);

								if (cover)
									$(".content_holder .cover", $block).stop().fadeTo(transitionTime, coverAlpha);

								if (shadow)
									$(".shadow", $block).stop().animate({
										width : barSize
									}, transitionTime);
							}
						}

						$(".content", $thisBlock).each(function() {
							var $this = $(this);

							$this.clearQueue();
							var type = $this.attr("transitionType");
							var alignV = "top";
							var alignH = "left";
							var delay = 0;
							var distance = 30;
							var transitionTimeContent = 500;
							var left = 0;
							var top = 0;

							//READ ATTRIBUTES
							if ($this.attr("alignV") != undefined)
								alignV = $this.attr("alignV");

							if ($this.attr("alignH") != undefined)
								alignH = $this.attr("alignH");

							if ($this.attr("delay") != undefined)
								delay = parseFloat($this.attr("delay"), 10) * 1000;

							if ($this.attr("distance") != undefined)
								distance = parseInt($this.attr("distance"), 10);

							if ($this.attr("transitionTime") != undefined)
								transitionTimeContent = parseFloat($this.attr("transitionTime"), 10) * 1000;

							if ($this.attr("x") != undefined)
								left = parseInt($this.attr("x"), 10);

							if ($this.attr("y") != undefined)
								top = parseInt($this.attr("y"), 10);

							if (alignV == "bottom") {
								top = height - $this.height() - top;
							}
							if (alignH == "right") {
								left = size - $this.width() - left;
							}

							$this.css("left", left + 'px');
							$this.css("top", top + 'px');

							if (type == "left")
								$this.css("left", (left - distance) + 'px');
							else if (type == "right")
								$this.css("left", (left + distance) + 'px');
							else if (type == "top")
								$this.css("top", (top - distance) + 'px');
							else if (type == "bottom")
								$this.css("top", (top + distance) + 'px');

							$this.stop().delay(transitionTime + delay).animate({
								left : left,
								top : top,
								opacity : 1
							}, transitionTimeContent);
						});

						if (changeType == "click") {
							clearTimeout(clickTypeTimeOut);
							clickTypeTimeOut = setTimeout(function() {
								outBlock(currentOpened);
								if (currentOpened < (numBlocks - 1))
									currentOpened++;
								else
									currentOpened = 0;
								overBlock(currentOpened);
							}, 100000000);
						}
					}
				}

				var outBlockContent = function(num) {
					var $thisBlock = $($blocks[num]);

					$(".content", $thisBlock).each(function() {
						var $this = $(this);

						$this.clearQueue();

						var type = $this.attr("transitionType");
						var alignV = "top";
						var alignH = "left";
						var distance = 30;
						var left = 0;
						var top = 0;
						var transitionTimeContent = 500;

						//READ ATTRIBUTES
						if ($this.attr("alignV") != undefined)
							alignV = $this.attr("alignV");

						if ($this.attr("alignH") != undefined)
							alignH = $this.attr("alignH");

						if ($this.attr("distance") != undefined)
							distance = parseInt($this.attr("distance"), 10);

						if ($this.attr("transitionTime") != undefined)
							transitionTimeContent = parseFloat($this.attr("transitionTime"), 10) * 1000;

						if ($this.attr("x") != undefined)
							left = parseInt($this.attr("x"), 10);

						if ($this.attr("y") != undefined)
							top = parseInt($this.attr("y"), 10);

						if (alignV == "bottom")
							top = height - $this.height() - top;
						if (alignH == "right")
							left = size - $this.width() - left;

						if (type == "left")
							left -= distance;
						else if (type == "right")
							left += distance;
						else if (type == "top")
							top -= distance;
						else if (type == "bottom")
							top += distance;

						$this.stop().animate({
							left : left,
							top : top,
							opacity : 0
						}, transitionTime);
					});
				}
				//OUT OF A BLOCK
				var outBlock = function(num) {
					var $thisBlock = $($blocks[num]);

					$thisBlock.removeClass("locked");

					outBlockContent(num);

					for (var i = 0; i < numBlocks; i++) {
						var $block = $($blocks[i]);

						$block.stop().animate({
							left : (i * (width / numBlocks))
						}, 300);

						$(".content_holder", $block).stop().animate({
							left : (-$(".content_holder", $block).width() / 2 + (width / numBlocks) / 2)
						}, 300);

						if (cover)
							$(".content_holder .cover", $block).stop().fadeTo(transitionTime, 0);

						if (shadow)
							$(".shadow", $block).stop().animate({
								width : (width / numBlocks)
							}, transitionTime);
					}
				}

				//INITIAL IMAGES LOAD
				var loadImage = function(num) {
					var $block = $($blocks[num]);

					//create image
					var img = new Image();
					img.onload = function() {

						$(img).css("opacity", 0);

						var maxWidth = size;
						var maxHeight = height;

						var ratio = 1;

						if (img.width > maxWidth)
							ratio = img.width / maxWidth;

						if (ratio > (img.height / maxHeight))
							ratio = img.height / maxHeight;

						img.width /= ratio;
						img.height /= ratio;

						var imgWidth = img.width;
						var imgHeight = img.height;

						$block.css("width", imgWidth + "px");

						$(".content_holder", $block).css("width", imgWidth + "px");
						$(".content_holder", $block).css("left", (-imgWidth / 2 + (width / numBlocks) / 2) + "px");

						$(".content_holder .image", $block).append(img);

						$(".content", $block).css("padding-left", (imgWidth - size) / 2 + "px");
						$(".content", $block).css("padding-right", (imgWidth - size) / 2 + "px");

						if (cover) {
							var $cover = $(".content_holder .cover", $block);

							$(".content_holder", $block).append('<div class="cover"></div>');

							$cover.css("width", imgWidth + "px");
							$cover.css("height", imgHeight + "px");
							$cover.css("opacity", 0);
						}

						if (shadow && num < numBlocks) {
							var $shadow = $(".shadow", $block);

							$block.append('<div class="shadow"></div>');

							$shadow.css("width", (width / numBlocks) + "px");
							$shadow.css("height", imgHeight + "px");
							$shadow.css("opacity", shadowAlpha);
						}

						if (changeType == "click") {
							$block.click(function() {
								if (currentOpened != parseInt($(this).attr("rel"), 10))
									outBlock(currentOpened);
								overBlock(parseInt($(this).attr("rel"), 10));
							});
							$block.css("cursor", "pointer");
						} else

							$block.hoverIntent(function() {

								if (currentOpened != parseInt($(this).attr("rel")))

									outBlock(currentOpened);

								overBlock(parseInt($(this).attr("rel"), 10));
							}, function() {
								outBlock(parseInt($(this).attr("rel"), 10));
							});

						$(img).fadeTo(500, 1);

						num++;
						if (num < numBlocks) {
							loadImage(num);
						} else {
							clickTypeTimeOut = setTimeout(function() {
								overBlock(currentOpened);
							}, autoplayTime);
						}

					}

					img.src = $(".content_holder", $block).attr("src");
				}
				loadImage(0);

				if (buttons) {
					previousBtn.click(function() {
						outBlock(currentOpened);
						if (currentOpened > 0)
							currentOpened--;
						else
							currentOpened = numBlocks - 1;
						overBlock(currentOpened);
					});
					nextBtn.click(function() {
						outBlock(currentOpened);
						if (currentOpened < (numBlocks - 1))
							currentOpened++;
						else
							currentOpened = 0;
						overBlock(currentOpened);
					});
				}
			}

		}
	}());

function initializeBarImage() {
	if ($(window).width() >= 1220) {
		$(".barimageaccordion").accordion({
			width : 540,
			height : 232,
			barSize : 40
		});
	} else if ($(window).width() < 1220 && $(window).width() >= 1012) {
		$(".barimageaccordion").accordion({
			width : 450,
			height : 195,
			barSize : 40
		});
	}
}


$(document).ready(function() {
	initializeBarImage();
});

$(window).resize(function() {
	initializeBarImage();
});

function fixMainImage() {


	if ($(".maincol h1").next().next().find(".csc-textpic").length > 0) {

		if($(".maincol h1").next().next().find("img").width() > 500) {

			$(".maincol h1").next().next().find('img').addClass('img-responsive');
			$(".maincol h1").next().next().find('img').attr('width', 600);
			$(".maincol h1").next().next().find('img').attr('height', 250);

			if($(".maincol h1").next().next().find('.csc-textpic-imagewrap').length > 0) {
				$(".maincol h1").next().next().find('.csc-textpic-imagewrap').removeClass('csc-textpic-imagewrap');
			}

			if($(".maincol h1").next().next().find('.csc-textpic-center-outer').length > 0) {
				$(".maincol h1").next().next().find('.csc-textpic-center-outer').removeClass('csc-textpic-center-outer');
			}

			if($(".maincol h1").next().next().find('.csc-textpic-center-inner').length > 0) {
				$(".maincol h1").next().next().find('.csc-textpic-center-inner').removeClass('csc-textpic-center-inner');
			}

		}

	}

}
fixMainImage();

$(document).ready(function() {

	$('#nav .searchcontent').hide();

	$('#nav li.dropdown').hover(function() {

		if ($(window).width() > 768) {
			$(this).addClass('open');
		}

	}, function() {
		if ($(window).width() > 768) {
			$(this).removeClass('open');
		}
	});

	if ($(window).width() <= 768) {

		$('#nav .navbar-nav li a').click(function(e) {

			e.preventDefault();

			var link = $(this).attr('href');
			window.location.href = link;

		});

	}

	var itemsList = $('.accordion > li > ul'), // Define submenu list
	itemLink = $('.accordion > li > a');
	// Define submenu links
	var expandedItem = $('.accordion > li.active > ul');
	// Define Expanded Menu
	// Hide all submenu links
	itemsList.hide();
	// Show Expanded Item (.expand)
	expandedItem.show();

	// expand first subcategory on load

	if ($("#menus li").hasClass("active") == false) {
		$('#menus li:first-child ul').show();
	}

	// Click on any link in main menu

	itemLink.click(function(e) {
		e.preventDefault();
		//If that link is not ("!$" -negation) active (has no ".active" class)
		if (!$(this).hasClass('active')) {
			//Remove this class
			itemLink.removeClass('active');
			//Close previously opened submenu list
			itemsList.filter(':visible').slideUp('normal');
			//Open clicked (4 steps previous) link
			$(this).addClass('active').next().stop(true, true).slideDown('normal');
			// If link is active
		} else {
			//Remove class ".active"
			$(this).removeClass('active');
			//Close menu
			$(this).next().stop(true, true).slideUp('normal');
		}
	});
});

jQuery(function($) {
	if ($(window).width() > 769) {
		$('#nav .dropdown > a').click(function() {
			location.href = this.href;
		});

	}
});

if(
	window.location.host != "www.uniforlife.at"
	&& window.location.host != "www.nawigraz.at"
	&& window.location.host != "www.jointdegree.eu"
	&& window.location.host != "biotechmedgraz.at"
	&& window.location.host != "www.oegp.net"
) {
	document.domain = 'uni-graz.at';
}

$('a[href^="http"]:not([href*="' + document.domain + '"])').each(function() {
	if (!$(this).hasClass('prevent-external-link') && !$(this).attr('rel') == 'lightbox') {
		$(this).attr('target', '_blank'); $(this).addClass('external-link');
	}
});

function refreshDate() {
    var lang = 0

    if ($('body').is('[data-langid]')) {
   		lang = $('body').data('langid');
	}

	var dataObject = $('[data-jsonp-weather]');
	if (dataObject.length) {
		var url = dataObject.eq(0).attr('data-jsonp-weather') + '?callback=?';

		$.ajax({
		   type: 'GET',
			url: url,
			async: true,
			contentType: "application/json",
			dataType: 'jsonp',
			jsonpCallback: 'jsonCallback',
			success: function(json) {

				$('#jsonp_date').text(json.date.data);
				$('#jsonp_temperature').html(json.weather.data);

				$('#jsonp_temperature i').text('');

		},
		error: function(e) {
		   console.log(e.message);
		}
		});
	}
}
refreshDate();
setInterval(function() {
	refreshDate();
}, 900 * 1000);




(function($) {
	$(document).ready(function() {
		if (!$.accessibility.getStatus()) {
			$('form.validationengine').validationEngine();

			if ($('.carousel.helpful').length) {
				var items = $('.carousel.helpful').find('.item');
				var indicators = $('.carousel.helpful').find('.carousel-indicators > li');

				var random = Math.floor((Math.random() * items.length));

				items.removeClass('active');
				indicators.removeClass('active');
				items.eq(random).addClass('active');
				indicators.eq(random).addClass('active');
			}
			$('.carousel').carousel();
		} else if ($('#flashmessages').length) {
			//alert('Mit Zugriffstaste 6 zu den Meldungen springen.');
		}
	});
})(jQuery);

/* =========================================================
 * bootstrap-datepicker.js
 * Repo: https://github.com/eternicode/bootstrap-datepicker/
 * Demo: http://eternicode.github.io/bootstrap-datepicker/
 * Docs: http://bootstrap-datepicker.readthedocs.org/
 * Forked from http://www.eyecon.ro/bootstrap-datepicker
 * =========================================================
 * Started by Stefan Petre; improvements by Andrew Rowls + contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================= */

(function($, undefined){

	function UTCDate(){
		return new Date(Date.UTC.apply(Date, arguments));
	}
	function UTCToday(){
		var today = new Date();
		return UTCDate(today.getFullYear(), today.getMonth(), today.getDate());
	}
	function isUTCEquals(date1, date2) {
		return (
			date1.getUTCFullYear() === date2.getUTCFullYear() &&
			date1.getUTCMonth() === date2.getUTCMonth() &&
			date1.getUTCDate() === date2.getUTCDate()
		);
	}
	function alias(method){
		return function(){
			return this[method].apply(this, arguments);
		};
	}

	var DateArray = (function(){
		var extras = {
			get: function(i){
				return this.slice(i)[0];
			},
			contains: function(d){
				// Array.indexOf is not cross-browser;
				// $.inArray doesn't work with Dates
				var val = d && d.valueOf();
				for (var i=0, l=this.length; i < l; i++)
					if (this[i].valueOf() === val)
						return i;
				return -1;
			},
			remove: function(i){
				this.splice(i,1);
			},
			replace: function(new_array){
				if (!new_array)
					return;
				if (!$.isArray(new_array))
					new_array = [new_array];
				this.clear();
				this.push.apply(this, new_array);
			},
			clear: function(){
				this.length = 0;
			},
			copy: function(){
				var a = new DateArray();
				a.replace(this);
				return a;
			}
		};

		return function(){
			var a = [];
			a.push.apply(a, arguments);
			$.extend(a, extras);
			return a;
		};
	})();


	// Picker object

	var Datepicker = function(element, options){
		this._process_options(options);

		this.dates = new DateArray();
		this.viewDate = this.o.defaultViewDate;
		this.focusDate = null;

		this.element = $(element);
		this.isInline = false;
		this.isInput = this.element.is('input');
		this.component = this.element.hasClass('date') ? this.element.find('.add-on, .input-group-addon, .btn') : false;
		this.hasInput = this.component && this.element.find('input').length;
		if (this.component && this.component.length === 0)
			this.component = false;

		this.picker = $(DPGlobal.template);
		this._buildEvents();
		this._attachEvents();

		if (this.isInline){
			this.picker.addClass('datepicker-inline').appendTo(this.element);
		}
		else {
			this.picker.addClass('datepicker-dropdown dropdown-menu');
		}

		if (this.o.rtl){
			this.picker.addClass('datepicker-rtl');
		}

		this.viewMode = this.o.startView;

		if (this.o.calendarWeeks)
			this.picker.find('tfoot .today, tfoot .clear')
						.attr('colspan', function(i, val){
							return parseInt(val) + 1;
						});

		this._allow_update = false;

		this.setStartDate(this._o.startDate);
		this.setEndDate(this._o.endDate);
		this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled);
		this.setDatesDisabled(this.o.datesDisabled);

		this.fillDow();
		this.fillMonths();

		this._allow_update = true;

		this.update();
		this.showMode();

		if (this.isInline){
			this.show();
		}
	};

	Datepicker.prototype = {
		constructor: Datepicker,

		_process_options: function(opts){
			// Store raw options for reference
			this._o = $.extend({}, this._o, opts);
			// Processed options
			var o = this.o = $.extend({}, this._o);

			// Check if "de-DE" style date is available, if not language should
			// fallback to 2 letter code eg "de"
			var lang = o.language;
			if (!dates[lang]){
				lang = lang.split('-')[0];
				if (!dates[lang])
					lang = defaults.language;
			}
			o.language = lang;

			switch (o.startView){
				case 2:
				case 'decade':
					o.startView = 2;
					break;
				case 1:
				case 'year':
					o.startView = 1;
					break;
				default:
					o.startView = 0;
			}

			switch (o.minViewMode){
				case 1:
				case 'months':
					o.minViewMode = 1;
					break;
				case 2:
				case 'years':
					o.minViewMode = 2;
					break;
				default:
					o.minViewMode = 0;
			}

			o.startView = Math.max(o.startView, o.minViewMode);

			// true, false, or Number > 0
			if (o.multidate !== true){
				o.multidate = Number(o.multidate) || false;
				if (o.multidate !== false)
					o.multidate = Math.max(0, o.multidate);
			}
			o.multidateSeparator = String(o.multidateSeparator);

			o.weekStart %= 7;
			o.weekEnd = ((o.weekStart + 6) % 7);

			var format = DPGlobal.parseFormat(o.format);
			if (o.startDate !== -Infinity){
				if (!!o.startDate){
					if (o.startDate instanceof Date)
						o.startDate = this._local_to_utc(this._zero_time(o.startDate));
					else
						o.startDate = DPGlobal.parseDate(o.startDate, format, o.language);
				}
				else {
					o.startDate = -Infinity;
				}
			}
			if (o.endDate !== Infinity){
				if (!!o.endDate){
					if (o.endDate instanceof Date)
						o.endDate = this._local_to_utc(this._zero_time(o.endDate));
					else
						o.endDate = DPGlobal.parseDate(o.endDate, format, o.language);
				}
				else {
					o.endDate = Infinity;
				}
			}

			o.daysOfWeekDisabled = o.daysOfWeekDisabled||[];
			if (!$.isArray(o.daysOfWeekDisabled))
				o.daysOfWeekDisabled = o.daysOfWeekDisabled.split(/[,\s]*/);
			o.daysOfWeekDisabled = $.map(o.daysOfWeekDisabled, function(d){
				return parseInt(d, 10);
			});

			o.datesDisabled = o.datesDisabled||[];
			if (!$.isArray(o.datesDisabled)) {
				var datesDisabled = [];
				datesDisabled.push(DPGlobal.parseDate(o.datesDisabled, format, o.language));
				o.datesDisabled = datesDisabled;
			}
			o.datesDisabled = $.map(o.datesDisabled,function(d){
				return DPGlobal.parseDate(d, format, o.language);
			});

			var plc = String(o.orientation).toLowerCase().split(/\s+/g),
				_plc = o.orientation.toLowerCase();
			plc = $.grep(plc, function(word){
				return /^auto|left|right|top|bottom$/.test(word);
			});
			o.orientation = {x: 'auto', y: 'auto'};
			if (!_plc || _plc === 'auto')
				; // no action
			else if (plc.length === 1){
				switch (plc[0]){
					case 'top':
					case 'bottom':
						o.orientation.y = plc[0];
						break;
					case 'left':
					case 'right':
						o.orientation.x = plc[0];
						break;
				}
			}
			else {
				_plc = $.grep(plc, function(word){
					return /^left|right$/.test(word);
				});
				o.orientation.x = _plc[0] || 'auto';

				_plc = $.grep(plc, function(word){
					return /^top|bottom$/.test(word);
				});
				o.orientation.y = _plc[0] || 'auto';
			}
			if (o.defaultViewDate) {
				var year = o.defaultViewDate.year || new Date().getFullYear();
				var month = o.defaultViewDate.month || 0;
				var day = o.defaultViewDate.day || 1;
				o.defaultViewDate = UTCDate(year, month, day);
			} else {
				o.defaultViewDate = UTCToday();
			}
			o.showOnFocus = o.showOnFocus !== undefined ? o.showOnFocus : true;
		},
		_events: [],
		_secondaryEvents: [],
		_applyEvents: function(evs){
			for (var i=0, el, ch, ev; i < evs.length; i++){
				el = evs[i][0];
				if (evs[i].length === 2){
					ch = undefined;
					ev = evs[i][1];
				}
				else if (evs[i].length === 3){
					ch = evs[i][1];
					ev = evs[i][2];
				}
				el.on(ev, ch);
			}
		},
		_unapplyEvents: function(evs){
			for (var i=0, el, ev, ch; i < evs.length; i++){
				el = evs[i][0];
				if (evs[i].length === 2){
					ch = undefined;
					ev = evs[i][1];
				}
				else if (evs[i].length === 3){
					ch = evs[i][1];
					ev = evs[i][2];
				}
				el.off(ev, ch);
			}
		},
		_buildEvents: function(){
            var events = {
                keyup: $.proxy(function(e){
                    if ($.inArray(e.keyCode, [27, 37, 39, 38, 40, 32, 13, 9]) === -1)
                        this.update();
                }, this),
                keydown: $.proxy(this.keydown, this)
            };

            if (this.o.showOnFocus === true) {
                events.focus = $.proxy(this.show, this);
            }

            if (this.isInput) { // single input
                this._events = [
                    [this.element, events]
                ];
            }
            else if (this.component && this.hasInput) { // component: input + button
                this._events = [
                    // For components that are not readonly, allow keyboard nav
                    [this.element.find('input'), events],
                    [this.component, {
                        click: $.proxy(this.show, this)
                    }]
                ];
            }
			else if (this.element.is('div')){  // inline datepicker
				this.isInline = true;
			}
			else {
				this._events = [
					[this.element, {
						click: $.proxy(this.show, this)
					}]
				];
			}
			this._events.push(
				// Component: listen for blur on element descendants
				[this.element, '*', {
					blur: $.proxy(function(e){
						this._focused_from = e.target;
					}, this)
				}],
				// Input: listen for blur on element
				[this.element, {
					blur: $.proxy(function(e){
						this._focused_from = e.target;
					}, this)
				}]
			);

			this._secondaryEvents = [
				[this.picker, {
					click: $.proxy(this.click, this)
				}],
				[$(window), {
					resize: $.proxy(this.place, this)
				}],
				[$(document), {
					'mousedown touchstart': $.proxy(function(e){
						// Clicked outside the datepicker, hide it
						if (!(
							this.element.is(e.target) ||
							this.element.find(e.target).length ||
							this.picker.is(e.target) ||
							this.picker.find(e.target).length
						)){
							this.hide();
						}
					}, this)
				}]
			];
		},
		_attachEvents: function(){
			this._detachEvents();
			this._applyEvents(this._events);
		},
		_detachEvents: function(){
			this._unapplyEvents(this._events);
		},
		_attachSecondaryEvents: function(){
			this._detachSecondaryEvents();
			this._applyEvents(this._secondaryEvents);
		},
		_detachSecondaryEvents: function(){
			this._unapplyEvents(this._secondaryEvents);
		},
		_trigger: function(event, altdate){
			var date = altdate || this.dates.get(-1),
				local_date = this._utc_to_local(date);

			this.element.trigger({
				type: event,
				date: local_date,
				dates: $.map(this.dates, this._utc_to_local),
				format: $.proxy(function(ix, format){
					if (arguments.length === 0){
						ix = this.dates.length - 1;
						format = this.o.format;
					}
					else if (typeof ix === 'string'){
						format = ix;
						ix = this.dates.length - 1;
					}
					format = format || this.o.format;
					var date = this.dates.get(ix);
					return DPGlobal.formatDate(date, format, this.o.language);
				}, this)
			});
		},

		show: function(){
			if (this.element.attr('readonly'))
				return;
			if (!this.isInline)
				this.picker.appendTo(this.o.container);
			this.place();
			this.picker.show();
			this._attachSecondaryEvents();
			this._trigger('show');
			if ((window.navigator.msMaxTouchPoints || 'ontouchstart' in document) && this.o.disableTouchKeyboard) {
				$(this.element).blur();
			}
			return this;
		},

		hide: function(){
			if (this.isInline)
				return this;
			if (!this.picker.is(':visible'))
				return this;
			this.focusDate = null;
			this.picker.hide().detach();
			this._detachSecondaryEvents();
			this.viewMode = this.o.startView;
			this.showMode();

			if (
				this.o.forceParse &&
				(
					this.isInput && this.element.val() ||
					this.hasInput && this.element.find('input').val()
				)
			)
				this.setValue();
			this._trigger('hide');
			return this;
		},

		remove: function(){
			this.hide();
			this._detachEvents();
			this._detachSecondaryEvents();
			this.picker.remove();
			delete this.element.data().datepicker;
			if (!this.isInput){
				delete this.element.data().date;
			}
			return this;
		},

		_utc_to_local: function(utc){
			return utc && new Date(utc.getTime() + (utc.getTimezoneOffset()*60000));
		},
		_local_to_utc: function(local){
			return local && new Date(local.getTime() - (local.getTimezoneOffset()*60000));
		},
		_zero_time: function(local){
			return local && new Date(local.getFullYear(), local.getMonth(), local.getDate());
		},
		_zero_utc_time: function(utc){
			return utc && new Date(Date.UTC(utc.getUTCFullYear(), utc.getUTCMonth(), utc.getUTCDate()));
		},

		getDates: function(){
			return $.map(this.dates, this._utc_to_local);
		},

		getUTCDates: function(){
			return $.map(this.dates, function(d){
				return new Date(d);
			});
		},

		getDate: function(){
			return this._utc_to_local(this.getUTCDate());
		},

		getUTCDate: function(){
			var selected_date = this.dates.get(-1);
			if (typeof selected_date !== 'undefined') {
				return new Date(selected_date);
			} else {
				return null;
			}
		},

		clearDates: function(){
			var element;
			if (this.isInput) {
				element = this.element;
			} else if (this.component) {
				element = this.element.find('input');
			}

			if (element) {
				element.val('').change();
			}

			this.update();
			this._trigger('changeDate');

			if (this.o.autoclose) {
				this.hide();
			}
		},
		setDates: function(){
			var args = $.isArray(arguments[0]) ? arguments[0] : arguments;
			this.update.apply(this, args);
			this._trigger('changeDate');
			this.setValue();
			return this;
		},

		setUTCDates: function(){
			var args = $.isArray(arguments[0]) ? arguments[0] : arguments;
			this.update.apply(this, $.map(args, this._utc_to_local));
			this._trigger('changeDate');
			this.setValue();
			return this;
		},

		setDate: alias('setDates'),
		setUTCDate: alias('setUTCDates'),

		setValue: function(){
			var formatted = this.getFormattedDate();
			if (!this.isInput){
				if (this.component){
					this.element.find('input').val(formatted).change();
				}
			}
			else {
				this.element.val(formatted).change();
			}
			return this;
		},

		getFormattedDate: function(format){
			if (format === undefined)
				format = this.o.format;

			var lang = this.o.language;
			return $.map(this.dates, function(d){
				return DPGlobal.formatDate(d, format, lang);
			}).join(this.o.multidateSeparator);
		},

		setStartDate: function(startDate){
			this._process_options({startDate: startDate});
			this.update();
			this.updateNavArrows();
			return this;
		},

		setEndDate: function(endDate){
			this._process_options({endDate: endDate});
			this.update();
			this.updateNavArrows();
			return this;
		},

		setDaysOfWeekDisabled: function(daysOfWeekDisabled){
			this._process_options({daysOfWeekDisabled: daysOfWeekDisabled});
			this.update();
			this.updateNavArrows();
			return this;
		},

		setDatesDisabled: function(datesDisabled){
			this._process_options({datesDisabled: datesDisabled});
			this.update();
			this.updateNavArrows();
		},

		place: function(){
			if (this.isInline)
				return this;
			var calendarWidth = this.picker.outerWidth(),
				calendarHeight = this.picker.outerHeight(),
				visualPadding = 10,
				windowWidth = $(this.o.container).width(),
				windowHeight = $(this.o.container).height(),
				scrollTop = $(this.o.container).scrollTop(),
				appendOffset = $(this.o.container).offset();

			var parentsZindex = [];
			this.element.parents().each(function(){
				var itemZIndex = $(this).css('z-index');
				if (itemZIndex !== 'auto' && itemZIndex !== 0) parentsZindex.push(parseInt(itemZIndex));
			});
			var zIndex = Math.max.apply(Math, parentsZindex) + 10;
			var offset = this.component ? this.component.parent().offset() : this.element.offset();
			var height = this.component ? this.component.outerHeight(true) : this.element.outerHeight(false);
			var width = this.component ? this.component.outerWidth(true) : this.element.outerWidth(false);
			var left = offset.left - appendOffset.left,
				top = offset.top - appendOffset.top;

			this.picker.removeClass(
				'datepicker-orient-top datepicker-orient-bottom '+
				'datepicker-orient-right datepicker-orient-left'
			);

			if (this.o.orientation.x !== 'auto'){
				this.picker.addClass('datepicker-orient-' + this.o.orientation.x);
				if (this.o.orientation.x === 'right')
					left -= calendarWidth - width;
			}
			// auto x orientation is best-placement: if it crosses a window
			// edge, fudge it sideways
			else {
				if (offset.left < 0) {
					// component is outside the window on the left side. Move it into visible range
					this.picker.addClass('datepicker-orient-left');
					left -= offset.left - visualPadding;
				} else if (left + calendarWidth > windowWidth) {
					// the calendar passes the widow right edge. Align it to component right side
					this.picker.addClass('datepicker-orient-right');
					left = offset.left + width - calendarWidth;
				} else {
					// Default to left
					this.picker.addClass('datepicker-orient-left');
				}
			}

			// auto y orientation is best-situation: top or bottom, no fudging,
			// decision based on which shows more of the calendar
			var yorient = this.o.orientation.y,
				top_overflow, bottom_overflow;
			if (yorient === 'auto'){
				top_overflow = -scrollTop + top - calendarHeight;
				bottom_overflow = scrollTop + windowHeight - (top + height + calendarHeight);
				if (Math.max(top_overflow, bottom_overflow) === bottom_overflow)
					yorient = 'top';
				else
					yorient = 'bottom';
			}
			this.picker.addClass('datepicker-orient-' + yorient);
			if (yorient === 'top')
				top += height;
			else
				top -= calendarHeight + parseInt(this.picker.css('padding-top'));

			if (this.o.rtl) {
				var right = windowWidth - (left + width);
				this.picker.css({
					top: top,
					right: right,
					zIndex: zIndex
				});
			} else {
				this.picker.css({
					top: top,
					left: left,
					zIndex: zIndex
				});
			}
			return this;
		},

		_allow_update: true,
		update: function(){
			if (!this._allow_update)
				return this;

			var oldDates = this.dates.copy(),
				dates = [],
				fromArgs = false;
			if (arguments.length){
				$.each(arguments, $.proxy(function(i, date){
					if (date instanceof Date)
						date = this._local_to_utc(date);
					dates.push(date);
				}, this));
				fromArgs = true;
			}
			else {
				dates = this.isInput
						? this.element.val()
						: this.element.data('date') || this.element.find('input').val();
				if (dates && this.o.multidate)
					dates = dates.split(this.o.multidateSeparator);
				else
					dates = [dates];
				delete this.element.data().date;
			}

			dates = $.map(dates, $.proxy(function(date){
				return DPGlobal.parseDate(date, this.o.format, this.o.language);
			}, this));
			dates = $.grep(dates, $.proxy(function(date){
				return (
					date < this.o.startDate ||
					date > this.o.endDate ||
					!date
				);
			}, this), true);
			this.dates.replace(dates);

			if (this.dates.length)
				this.viewDate = new Date(this.dates.get(-1));
			else if (this.viewDate < this.o.startDate)
				this.viewDate = new Date(this.o.startDate);
			else if (this.viewDate > this.o.endDate)
				this.viewDate = new Date(this.o.endDate);

			if (fromArgs){
				// setting date by clicking
				this.setValue();
			}
			else if (dates.length){
				// setting date by typing
				if (String(oldDates) !== String(this.dates))
					this._trigger('changeDate');
			}
			if (!this.dates.length && oldDates.length)
				this._trigger('clearDate');

			this.fill();
			return this;
		},

		fillDow: function(){
			var dowCnt = this.o.weekStart,
				html = '<tr>';
			if (this.o.calendarWeeks){
				this.picker.find('.datepicker-days thead tr:first-child .datepicker-switch')
					.attr('colspan', function(i, val){
						return parseInt(val) + 1;
					});
				var cell = '<th class="cw">&#160;</th>';
				html += cell;
			}
			while (dowCnt < this.o.weekStart + 7){
				html += '<th class="dow">'+dates[this.o.language].daysMin[(dowCnt++)%7]+'</th>';
			}
			html += '</tr>';
			this.picker.find('.datepicker-days thead').append(html);
		},

		fillMonths: function(){
			var html = '',
			i = 0;
			while (i < 12){
				html += '<span class="month">'+dates[this.o.language].monthsShort[i++]+'</span>';
			}
			this.picker.find('.datepicker-months td').html(html);
		},

		setRange: function(range){
			if (!range || !range.length)
				delete this.range;
			else
				this.range = $.map(range, function(d){
					return d.valueOf();
				});
			this.fill();
		},

		getClassNames: function(date){
			var cls = [],
				year = this.viewDate.getUTCFullYear(),
				month = this.viewDate.getUTCMonth(),
				today = new Date();
			if (date.getUTCFullYear() < year || (date.getUTCFullYear() === year && date.getUTCMonth() < month)){
				cls.push('old');
			}
			else if (date.getUTCFullYear() > year || (date.getUTCFullYear() === year && date.getUTCMonth() > month)){
				cls.push('new');
			}
			if (this.focusDate && date.valueOf() === this.focusDate.valueOf())
				cls.push('focused');
			// Compare internal UTC date with local today, not UTC today
			if (this.o.todayHighlight &&
				date.getUTCFullYear() === today.getFullYear() &&
				date.getUTCMonth() === today.getMonth() &&
				date.getUTCDate() === today.getDate()){
				cls.push('today');
			}
			if (this.dates.contains(date) !== -1)
				cls.push('active');
			if (date.valueOf() < this.o.startDate || date.valueOf() > this.o.endDate ||
				$.inArray(date.getUTCDay(), this.o.daysOfWeekDisabled) !== -1){
				cls.push('disabled');
			}
			if (this.o.datesDisabled.length > 0 &&
				$.grep(this.o.datesDisabled, function(d){
					return isUTCEquals(date, d); }).length > 0) {
				cls.push('disabled', 'disabled-date');
			}

			if (this.range){
				if (date > this.range[0] && date < this.range[this.range.length-1]){
					cls.push('range');
				}
				if ($.inArray(date.valueOf(), this.range) !== -1){
					cls.push('selected');
				}
			}
			return cls;
		},

		fill: function(){
			var d = new Date(this.viewDate),
				year = d.getUTCFullYear(),
				month = d.getUTCMonth(),
				startYear = this.o.startDate !== -Infinity ? this.o.startDate.getUTCFullYear() : -Infinity,
				startMonth = this.o.startDate !== -Infinity ? this.o.startDate.getUTCMonth() : -Infinity,
				endYear = this.o.endDate !== Infinity ? this.o.endDate.getUTCFullYear() : Infinity,
				endMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity,
				todaytxt = dates[this.o.language].today || dates['en'].today || '',
				cleartxt = dates[this.o.language].clear || dates['en'].clear || '',
				tooltip;
			if (isNaN(year) || isNaN(month))
				return;
			this.picker.find('.datepicker-days thead .datepicker-switch')
						.text(dates[this.o.language].months[month]+' '+year);
			this.picker.find('tfoot .today')
						.text(todaytxt)
						.toggle(this.o.todayBtn !== false);
			this.picker.find('tfoot .clear')
						.text(cleartxt)
						.toggle(this.o.clearBtn !== false);
			this.updateNavArrows();
			this.fillMonths();
			var prevMonth = UTCDate(year, month-1, 28),
				day = DPGlobal.getDaysInMonth(prevMonth.getUTCFullYear(), prevMonth.getUTCMonth());
			prevMonth.setUTCDate(day);
			prevMonth.setUTCDate(day - (prevMonth.getUTCDay() - this.o.weekStart + 7)%7);
			var nextMonth = new Date(prevMonth);
			nextMonth.setUTCDate(nextMonth.getUTCDate() + 42);
			nextMonth = nextMonth.valueOf();
			var html = [];
			var clsName;
			while (prevMonth.valueOf() < nextMonth){
				if (prevMonth.getUTCDay() === this.o.weekStart){
					html.push('<tr>');
					if (this.o.calendarWeeks){
						// ISO 8601: First week contains first thursday.
						// ISO also states week starts on Monday, but we can be more abstract here.
						var
							// Start of current week: based on weekstart/current date
							ws = new Date(+prevMonth + (this.o.weekStart - prevMonth.getUTCDay() - 7) % 7 * 864e5),
							// Thursday of this week
							th = new Date(Number(ws) + (7 + 4 - ws.getUTCDay()) % 7 * 864e5),
							// First Thursday of year, year from thursday
							yth = new Date(Number(yth = UTCDate(th.getUTCFullYear(), 0, 1)) + (7 + 4 - yth.getUTCDay())%7*864e5),
							// Calendar week: ms between thursdays, div ms per day, div 7 days
							calWeek =  (th - yth) / 864e5 / 7 + 1;
						html.push('<td class="cw">'+ calWeek +'</td>');

					}
				}
				clsName = this.getClassNames(prevMonth);
				clsName.push('day');

				if (this.o.beforeShowDay !== $.noop){
					var before = this.o.beforeShowDay(this._utc_to_local(prevMonth));
					if (before === undefined)
						before = {};
					else if (typeof(before) === 'boolean')
						before = {enabled: before};
					else if (typeof(before) === 'string')
						before = {classes: before};
					if (before.enabled === false)
						clsName.push('disabled');
					if (before.classes)
						clsName = clsName.concat(before.classes.split(/\s+/));
					if (before.tooltip)
						tooltip = before.tooltip;
				}

				clsName = $.unique(clsName);
				html.push('<td class="'+clsName.join(' ')+'"' + (tooltip ? ' title="'+tooltip+'"' : '') + '>'+prevMonth.getUTCDate() + '</td>');
				tooltip = null;
				if (prevMonth.getUTCDay() === this.o.weekEnd){
					html.push('</tr>');
				}
				prevMonth.setUTCDate(prevMonth.getUTCDate()+1);
			}
			this.picker.find('.datepicker-days tbody').empty().append(html.join(''));

			var months = this.picker.find('.datepicker-months')
						.find('th:eq(1)')
							.text(year)
							.end()
						.find('span').removeClass('active');

			$.each(this.dates, function(i, d){
				if (d.getUTCFullYear() === year)
					months.eq(d.getUTCMonth()).addClass('active');
			});

			if (year < startYear || year > endYear){
				months.addClass('disabled');
			}
			if (year === startYear){
				months.slice(0, startMonth).addClass('disabled');
			}
			if (year === endYear){
				months.slice(endMonth+1).addClass('disabled');
			}

			if (this.o.beforeShowMonth !== $.noop){
				var that = this;
				$.each(months, function(i, month){
					if (!$(month).hasClass('disabled')) {
						var moDate = new Date(year, i, 1);
						var before = that.o.beforeShowMonth(moDate);
						if (before === false)
							$(month).addClass('disabled');
					}
				});
			}

			html = '';
			year = parseInt(year/10, 10) * 10;
			var yearCont = this.picker.find('.datepicker-years')
								.find('th:eq(1)')
									.text(year + '-' + (year + 9))
									.end()
								.find('td');
			year -= 1;
			var years = $.map(this.dates, function(d){
					return d.getUTCFullYear();
				}),
				classes;
			for (var i = -1; i < 11; i++){
				classes = ['year'];
				if (i === -1)
					classes.push('old');
				else if (i === 10)
					classes.push('new');
				if ($.inArray(year, years) !== -1)
					classes.push('active');
				if (year < startYear || year > endYear)
					classes.push('disabled');
				html += '<span class="' + classes.join(' ') + '">' + year + '</span>';
				year += 1;
			}
			yearCont.html(html);
		},

		updateNavArrows: function(){
			if (!this._allow_update)
				return;

			var d = new Date(this.viewDate),
				year = d.getUTCFullYear(),
				month = d.getUTCMonth();
			switch (this.viewMode){
				case 0:
					if (this.o.startDate !== -Infinity && year <= this.o.startDate.getUTCFullYear() && month <= this.o.startDate.getUTCMonth()){
						this.picker.find('.prev').css({visibility: 'hidden'});
					}
					else {
						this.picker.find('.prev').css({visibility: 'visible'});
					}
					if (this.o.endDate !== Infinity && year >= this.o.endDate.getUTCFullYear() && month >= this.o.endDate.getUTCMonth()){
						this.picker.find('.next').css({visibility: 'hidden'});
					}
					else {
						this.picker.find('.next').css({visibility: 'visible'});
					}
					break;
				case 1:
				case 2:
					if (this.o.startDate !== -Infinity && year <= this.o.startDate.getUTCFullYear()){
						this.picker.find('.prev').css({visibility: 'hidden'});
					}
					else {
						this.picker.find('.prev').css({visibility: 'visible'});
					}
					if (this.o.endDate !== Infinity && year >= this.o.endDate.getUTCFullYear()){
						this.picker.find('.next').css({visibility: 'hidden'});
					}
					else {
						this.picker.find('.next').css({visibility: 'visible'});
					}
					break;
			}
		},

		click: function(e){
			e.preventDefault();
			var target = $(e.target).closest('span, td, th'),
				year, month, day;
			if (target.length === 1){
				switch (target[0].nodeName.toLowerCase()){
					case 'th':
						switch (target[0].className){
							case 'datepicker-switch':
								this.showMode(1);
								break;
							case 'prev':
							case 'next':
								var dir = DPGlobal.modes[this.viewMode].navStep * (target[0].className === 'prev' ? -1 : 1);
								switch (this.viewMode){
									case 0:
										this.viewDate = this.moveMonth(this.viewDate, dir);
										this._trigger('changeMonth', this.viewDate);
										break;
									case 1:
									case 2:
										this.viewDate = this.moveYear(this.viewDate, dir);
										if (this.viewMode === 1)
											this._trigger('changeYear', this.viewDate);
										break;
								}
								this.fill();
								break;
							case 'today':
								var date = new Date();
								date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);

								this.showMode(-2);
								var which = this.o.todayBtn === 'linked' ? null : 'view';
								this._setDate(date, which);
								break;
							case 'clear':
								this.clearDates();
								break;
						}
						break;
					case 'span':
						if (!target.hasClass('disabled')){
							this.viewDate.setUTCDate(1);
							if (target.hasClass('month')){
								day = 1;
								month = target.parent().find('span').index(target);
								year = this.viewDate.getUTCFullYear();
								this.viewDate.setUTCMonth(month);
								this._trigger('changeMonth', this.viewDate);
								if (this.o.minViewMode === 1){
									this._setDate(UTCDate(year, month, day));
								}
							}
							else {
								day = 1;
								month = 0;
								year = parseInt(target.text(), 10)||0;
								this.viewDate.setUTCFullYear(year);
								this._trigger('changeYear', this.viewDate);
								if (this.o.minViewMode === 2){
									this._setDate(UTCDate(year, month, day));
								}
							}
							this.showMode(-1);
							this.fill();
						}
						break;
					case 'td':
						if (target.hasClass('day') && !target.hasClass('disabled')){
							day = parseInt(target.text(), 10)||1;
							year = this.viewDate.getUTCFullYear();
							month = this.viewDate.getUTCMonth();
							if (target.hasClass('old')){
								if (month === 0){
									month = 11;
									year -= 1;
								}
								else {
									month -= 1;
								}
							}
							else if (target.hasClass('new')){
								if (month === 11){
									month = 0;
									year += 1;
								}
								else {
									month += 1;
								}
							}
							this._setDate(UTCDate(year, month, day));
						}
						break;
				}
			}
			if (this.picker.is(':visible') && this._focused_from){
				$(this._focused_from).focus();
			}
			delete this._focused_from;
		},

		_toggle_multidate: function(date){
			var ix = this.dates.contains(date);
			if (!date){
				this.dates.clear();
			}

			if (ix !== -1){
				if (this.o.multidate === true || this.o.multidate > 1 || this.o.toggleActive){
					this.dates.remove(ix);
				}
			} else if (this.o.multidate === false) {
				this.dates.clear();
				this.dates.push(date);
			}
			else {
				this.dates.push(date);
			}

			if (typeof this.o.multidate === 'number')
				while (this.dates.length > this.o.multidate)
					this.dates.remove(0);
		},

		_setDate: function(date, which){
			if (!which || which === 'date')
				this._toggle_multidate(date && new Date(date));
			if (!which || which  === 'view')
				this.viewDate = date && new Date(date);

			this.fill();
			this.setValue();
			if (!which || which  !== 'view') {
				this._trigger('changeDate');
			}
			var element;
			if (this.isInput){
				element = this.element;
			}
			else if (this.component){
				element = this.element.find('input');
			}
			if (element){
				element.change();
			}
			if (this.o.autoclose && (!which || which === 'date')){
				this.hide();
			}
		},

		moveMonth: function(date, dir){
			if (!date)
				return undefined;
			if (!dir)
				return date;
			var new_date = new Date(date.valueOf()),
				day = new_date.getUTCDate(),
				month = new_date.getUTCMonth(),
				mag = Math.abs(dir),
				new_month, test;
			dir = dir > 0 ? 1 : -1;
			if (mag === 1){
				test = dir === -1
					// If going back one month, make sure month is not current month
					// (eg, Mar 31 -> Feb 31 == Feb 28, not Mar 02)
					? function(){
						return new_date.getUTCMonth() === month;
					}
					// If going forward one month, make sure month is as expected
					// (eg, Jan 31 -> Feb 31 == Feb 28, not Mar 02)
					: function(){
						return new_date.getUTCMonth() !== new_month;
					};
				new_month = month + dir;
				new_date.setUTCMonth(new_month);
				// Dec -> Jan (12) or Jan -> Dec (-1) -- limit expected date to 0-11
				if (new_month < 0 || new_month > 11)
					new_month = (new_month + 12) % 12;
			}
			else {
				// For magnitudes >1, move one month at a time...
				for (var i=0; i < mag; i++)
					// ...which might decrease the day (eg, Jan 31 to Feb 28, etc)...
					new_date = this.moveMonth(new_date, dir);
				// ...then reset the day, keeping it in the new month
				new_month = new_date.getUTCMonth();
				new_date.setUTCDate(day);
				test = function(){
					return new_month !== new_date.getUTCMonth();
				};
			}
			// Common date-resetting loop -- if date is beyond end of month, make it
			// end of month
			while (test()){
				new_date.setUTCDate(--day);
				new_date.setUTCMonth(new_month);
			}
			return new_date;
		},

		moveYear: function(date, dir){
			return this.moveMonth(date, dir*12);
		},

		dateWithinRange: function(date){
			return date >= this.o.startDate && date <= this.o.endDate;
		},

		keydown: function(e){
			if (!this.picker.is(':visible')){
				if (e.keyCode === 27) // allow escape to hide and re-show picker
					this.show();
				return;
			}
			var dateChanged = false,
				dir, newDate, newViewDate,
				focusDate = this.focusDate || this.viewDate;
			switch (e.keyCode){
				case 27: // escape
					if (this.focusDate){
						this.focusDate = null;
						this.viewDate = this.dates.get(-1) || this.viewDate;
						this.fill();
					}
					else
						this.hide();
					e.preventDefault();
					break;
				case 37: // left
				case 39: // right
					if (!this.o.keyboardNavigation)
						break;
					dir = e.keyCode === 37 ? -1 : 1;
					if (e.ctrlKey){
						newDate = this.moveYear(this.dates.get(-1) || UTCToday(), dir);
						newViewDate = this.moveYear(focusDate, dir);
						this._trigger('changeYear', this.viewDate);
					}
					else if (e.shiftKey){
						newDate = this.moveMonth(this.dates.get(-1) || UTCToday(), dir);
						newViewDate = this.moveMonth(focusDate, dir);
						this._trigger('changeMonth', this.viewDate);
					}
					else {
						newDate = new Date(this.dates.get(-1) || UTCToday());
						newDate.setUTCDate(newDate.getUTCDate() + dir);
						newViewDate = new Date(focusDate);
						newViewDate.setUTCDate(focusDate.getUTCDate() + dir);
					}
					if (this.dateWithinRange(newViewDate)){
						this.focusDate = this.viewDate = newViewDate;
						this.setValue();
						this.fill();
						e.preventDefault();
					}
					break;
				case 38: // up
				case 40: // down
					if (!this.o.keyboardNavigation)
						break;
					dir = e.keyCode === 38 ? -1 : 1;
					if (e.ctrlKey){
						newDate = this.moveYear(this.dates.get(-1) || UTCToday(), dir);
						newViewDate = this.moveYear(focusDate, dir);
						this._trigger('changeYear', this.viewDate);
					}
					else if (e.shiftKey){
						newDate = this.moveMonth(this.dates.get(-1) || UTCToday(), dir);
						newViewDate = this.moveMonth(focusDate, dir);
						this._trigger('changeMonth', this.viewDate);
					}
					else {
						newDate = new Date(this.dates.get(-1) || UTCToday());
						newDate.setUTCDate(newDate.getUTCDate() + dir * 7);
						newViewDate = new Date(focusDate);
						newViewDate.setUTCDate(focusDate.getUTCDate() + dir * 7);
					}
					if (this.dateWithinRange(newViewDate)){
						this.focusDate = this.viewDate = newViewDate;
						this.setValue();
						this.fill();
						e.preventDefault();
					}
					break;
				case 32: // spacebar
					// Spacebar is used in manually typing dates in some formats.
					// As such, its behavior should not be hijacked.
					break;
				case 13: // enter
					focusDate = this.focusDate || this.dates.get(-1) || this.viewDate;
					if (this.o.keyboardNavigation) {
						this._toggle_multidate(focusDate);
						dateChanged = true;
					}
					this.focusDate = null;
					this.viewDate = this.dates.get(-1) || this.viewDate;
					this.setValue();
					this.fill();
					if (this.picker.is(':visible')){
						e.preventDefault();
						if (typeof e.stopPropagation === 'function') {
							e.stopPropagation(); // All modern browsers, IE9+
						} else {
							e.cancelBubble = true; // IE6,7,8 ignore "stopPropagation"
						}
						if (this.o.autoclose)
							this.hide();
					}
					break;
				case 9: // tab
					this.focusDate = null;
					this.viewDate = this.dates.get(-1) || this.viewDate;
					this.fill();
					this.hide();
					break;
			}
			if (dateChanged){
				if (this.dates.length)
					this._trigger('changeDate');
				else
					this._trigger('clearDate');
				var element;
				if (this.isInput){
					element = this.element;
				}
				else if (this.component){
					element = this.element.find('input');
				}
				if (element){
					element.change();
				}
			}
		},

		showMode: function(dir){
			if (dir){
				this.viewMode = Math.max(this.o.minViewMode, Math.min(2, this.viewMode + dir));
			}
			this.picker
				.children('div')
				.hide()
				.filter('.datepicker-' + DPGlobal.modes[this.viewMode].clsName)
					.css('display', 'block');
			this.updateNavArrows();
		}
	};

	var DateRangePicker = function(element, options){
		this.element = $(element);
		this.inputs = $.map(options.inputs, function(i){
			return i.jquery ? i[0] : i;
		});
		delete options.inputs;

		datepickerPlugin.call($(this.inputs), options)
			.bind('changeDate', $.proxy(this.dateUpdated, this));

		this.pickers = $.map(this.inputs, function(i){
			return $(i).data('datepicker');
		});
		this.updateDates();
	};
	DateRangePicker.prototype = {
		updateDates: function(){
			this.dates = $.map(this.pickers, function(i){
				return i.getUTCDate();
			});
			this.updateRanges();
		},
		updateRanges: function(){
			var range = $.map(this.dates, function(d){
				return d.valueOf();
			});
			$.each(this.pickers, function(i, p){
				p.setRange(range);
			});
		},
		dateUpdated: function(e){
			// `this.updating` is a workaround for preventing infinite recursion
			// between `changeDate` triggering and `setUTCDate` calling.  Until
			// there is a better mechanism.
			if (this.updating)
				return;
			this.updating = true;

			var dp = $(e.target).data('datepicker'),
				new_date = dp.getUTCDate(),
				i = $.inArray(e.target, this.inputs),
				j = i - 1,
				k = i + 1,
				l = this.inputs.length;
			if (i === -1)
				return;

			$.each(this.pickers, function(i, p){
				if (!p.getUTCDate())
					p.setUTCDate(new_date);
			});

			if (new_date < this.dates[j]){
				// Date being moved earlier/left
				while (j >= 0 && new_date < this.dates[j]){
					this.pickers[j--].setUTCDate(new_date);
				}
			}
			else if (new_date > this.dates[k]){
				// Date being moved later/right
				while (k < l && new_date > this.dates[k]){
					this.pickers[k++].setUTCDate(new_date);
				}
			}
			this.updateDates();

			delete this.updating;
		},
		remove: function(){
			$.map(this.pickers, function(p){ p.remove(); });
			delete this.element.data().datepicker;
		}
	};

	function opts_from_el(el, prefix){
		// Derive options from element data-attrs
		var data = $(el).data(),
			out = {}, inkey,
			replace = new RegExp('^' + prefix.toLowerCase() + '([A-Z])');
		prefix = new RegExp('^' + prefix.toLowerCase());
		function re_lower(_,a){
			return a.toLowerCase();
		}
		for (var key in data)
			if (prefix.test(key)){
				inkey = key.replace(replace, re_lower);
				out[inkey] = data[key];
			}
		return out;
	}

	function opts_from_locale(lang){
		// Derive options from locale plugins
		var out = {};
		// Check if "de-DE" style date is available, if not language should
		// fallback to 2 letter code eg "de"
		if (!dates[lang]){
			lang = lang.split('-')[0];
			if (!dates[lang])
				return;
		}
		var d = dates[lang];
		$.each(locale_opts, function(i,k){
			if (k in d)
				out[k] = d[k];
		});
		return out;
	}

	var old = $.fn.datepicker;
	var datepickerPlugin = function(option){
		var args = Array.apply(null, arguments);
		args.shift();
		var internal_return;
		this.each(function(){
			var $this = $(this),
				data = $this.data('datepicker'),
				options = typeof option === 'object' && option;
			if (!data){
				var elopts = opts_from_el(this, 'date'),
					// Preliminary otions
					xopts = $.extend({}, defaults, elopts, options),
					locopts = opts_from_locale(xopts.language),
					// Options priority: js args, data-attrs, locales, defaults
					opts = $.extend({}, defaults, locopts, elopts, options);
				if ($this.hasClass('input-daterange') || opts.inputs){
					var ropts = {
						inputs: opts.inputs || $this.find('input').toArray()
					};
					$this.data('datepicker', (data = new DateRangePicker(this, $.extend(opts, ropts))));
				}
				else {
					$this.data('datepicker', (data = new Datepicker(this, opts)));
				}
			}
			if (typeof option === 'string' && typeof data[option] === 'function'){
				internal_return = data[option].apply(data, args);
				if (internal_return !== undefined)
					return false;
			}
		});
		if (internal_return !== undefined)
			return internal_return;
		else
			return this;
	};
	$.fn.datepicker = datepickerPlugin;

	var defaults = $.fn.datepicker.defaults = {
		autoclose: false,
		beforeShowDay: $.noop,
		beforeShowMonth: $.noop,
		calendarWeeks: false,
		clearBtn: false,
		toggleActive: false,
		daysOfWeekDisabled: [],
		datesDisabled: [],
		endDate: Infinity,
		forceParse: true,
		format: 'mm/dd/yyyy',
		keyboardNavigation: true,
		language: 'en',
		minViewMode: 0,
		multidate: false,
		multidateSeparator: ',',
		orientation: "auto",
		rtl: false,
		startDate: -Infinity,
		startView: 0,
		todayBtn: false,
		todayHighlight: false,
		weekStart: 0,
		disableTouchKeyboard: false,
		container: 'body'
	};
	var locale_opts = $.fn.datepicker.locale_opts = [
		'format',
		'rtl',
		'weekStart'
	];
	$.fn.datepicker.Constructor = Datepicker;
	var dates = $.fn.datepicker.dates = {
		en: {
			days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
			daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
			daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
			months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
			monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
			today: "Today",
			clear: "Clear"
		}
	};

	var DPGlobal = {
		modes: [
			{
				clsName: 'days',
				navFnc: 'Month',
				navStep: 1
			},
			{
				clsName: 'months',
				navFnc: 'FullYear',
				navStep: 1
			},
			{
				clsName: 'years',
				navFnc: 'FullYear',
				navStep: 10
		}],
		isLeapYear: function(year){
			return (((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0));
		},
		getDaysInMonth: function(year, month){
			return [31, (DPGlobal.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
		},
		validParts: /dd?|DD?|mm?|MM?|yy(?:yy)?/g,
		nonpunctuation: /[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,
		parseFormat: function(format){
			// IE treats \0 as a string end in inputs (truncating the value),
			// so it's a bad format delimiter, anyway
			var separators = format.replace(this.validParts, '\0').split('\0'),
				parts = format.match(this.validParts);
			if (!separators || !separators.length || !parts || parts.length === 0){
				throw new Error("Invalid date format.");
			}
			return {separators: separators, parts: parts};
		},
		parseDate: function(date, format, language){
			if (!date)
				return undefined;
			if (date instanceof Date)
				return date;
			if (typeof format === 'string')
				format = DPGlobal.parseFormat(format);
			var part_re = /([\-+]\d+)([dmwy])/,
				parts = date.match(/([\-+]\d+)([dmwy])/g),
				part, dir, i;
			if (/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(date)){
				date = new Date();
				for (i=0; i < parts.length; i++){
					part = part_re.exec(parts[i]);
					dir = parseInt(part[1]);
					switch (part[2]){
						case 'd':
							date.setUTCDate(date.getUTCDate() + dir);
							break;
						case 'm':
							date = Datepicker.prototype.moveMonth.call(Datepicker.prototype, date, dir);
							break;
						case 'w':
							date.setUTCDate(date.getUTCDate() + dir * 7);
							break;
						case 'y':
							date = Datepicker.prototype.moveYear.call(Datepicker.prototype, date, dir);
							break;
					}
				}
				return UTCDate(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), 0, 0, 0);
			}
			parts = date && date.match(this.nonpunctuation) || [];
			date = new Date();
			var parsed = {},
				setters_order = ['yyyy', 'yy', 'M', 'MM', 'm', 'mm', 'd', 'dd'],
				setters_map = {
					yyyy: function(d,v){
						return d.setUTCFullYear(v);
					},
					yy: function(d,v){
						return d.setUTCFullYear(2000+v);
					},
					m: function(d,v){
						if (isNaN(d))
							return d;
						v -= 1;
						while (v < 0) v += 12;
						v %= 12;
						d.setUTCMonth(v);
						while (d.getUTCMonth() !== v)
							d.setUTCDate(d.getUTCDate()-1);
						return d;
					},
					d: function(d,v){
						return d.setUTCDate(v);
					}
				},
				val, filtered;
			setters_map['M'] = setters_map['MM'] = setters_map['mm'] = setters_map['m'];
			setters_map['dd'] = setters_map['d'];
			date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
			var fparts = format.parts.slice();
			// Remove noop parts
			if (parts.length !== fparts.length){
				fparts = $(fparts).filter(function(i,p){
					return $.inArray(p, setters_order) !== -1;
				}).toArray();
			}
			// Process remainder
			function match_part(){
				var m = this.slice(0, parts[i].length),
					p = parts[i].slice(0, m.length);
				return m.toLowerCase() === p.toLowerCase();
			}
			if (parts.length === fparts.length){
				var cnt;
				for (i=0, cnt = fparts.length; i < cnt; i++){
					val = parseInt(parts[i], 10);
					part = fparts[i];
					if (isNaN(val)){
						switch (part){
							case 'MM':
								filtered = $(dates[language].months).filter(match_part);
								val = $.inArray(filtered[0], dates[language].months) + 1;
								break;
							case 'M':
								filtered = $(dates[language].monthsShort).filter(match_part);
								val = $.inArray(filtered[0], dates[language].monthsShort) + 1;
								break;
						}
					}
					parsed[part] = val;
				}
				var _date, s;
				for (i=0; i < setters_order.length; i++){
					s = setters_order[i];
					if (s in parsed && !isNaN(parsed[s])){
						_date = new Date(date);
						setters_map[s](_date, parsed[s]);
						if (!isNaN(_date))
							date = _date;
					}
				}
			}
			return date;
		},
		formatDate: function(date, format, language){
			if (!date)
				return '';
			if (typeof format === 'string')
				format = DPGlobal.parseFormat(format);
			var val = {
				d: date.getUTCDate(),
				D: dates[language].daysShort[date.getUTCDay()],
				DD: dates[language].days[date.getUTCDay()],
				m: date.getUTCMonth() + 1,
				M: dates[language].monthsShort[date.getUTCMonth()],
				MM: dates[language].months[date.getUTCMonth()],
				yy: date.getUTCFullYear().toString().substring(2),
				yyyy: date.getUTCFullYear()
			};
			val.dd = (val.d < 10 ? '0' : '') + val.d;
			val.mm = (val.m < 10 ? '0' : '') + val.m;
			date = [];
			var seps = $.extend([], format.separators);
			for (var i=0, cnt = format.parts.length; i <= cnt; i++){
				if (seps.length)
					date.push(seps.shift());
				date.push(val[format.parts[i]]);
			}
			return date.join('');
		},
		headTemplate: '<thead>'+
							'<tr>'+
								'<th class="prev">&#171;</th>'+
								'<th colspan="5" class="datepicker-switch"></th>'+
								'<th class="next">&#187;</th>'+
							'</tr>'+
						'</thead>',
		contTemplate: '<tbody><tr><td colspan="7"></td></tr></tbody>',
		footTemplate: '<tfoot>'+
							'<tr>'+
								'<th colspan="7" class="today"></th>'+
							'</tr>'+
							'<tr>'+
								'<th colspan="7" class="clear"></th>'+
							'</tr>'+
						'</tfoot>'
	};
	DPGlobal.template = '<div class="datepicker">'+
							'<div class="datepicker-days">'+
								'<table class=" table-condensed">'+
									DPGlobal.headTemplate+
									'<tbody></tbody>'+
									DPGlobal.footTemplate+
								'</table>'+
							'</div>'+
							'<div class="datepicker-months">'+
								'<table class="table-condensed">'+
									DPGlobal.headTemplate+
									DPGlobal.contTemplate+
									DPGlobal.footTemplate+
								'</table>'+
							'</div>'+
							'<div class="datepicker-years">'+
								'<table class="table-condensed">'+
									DPGlobal.headTemplate+
									DPGlobal.contTemplate+
									DPGlobal.footTemplate+
								'</table>'+
							'</div>'+
						'</div>';

	$.fn.datepicker.DPGlobal = DPGlobal;


	/* DATEPICKER NO CONFLICT
	* =================== */

	$.fn.datepicker.noConflict = function(){
		$.fn.datepicker = old;
		return this;
	};


	/* DATEPICKER DATA-API
	* ================== */

	$(document).on(
		'focus.datepicker.data-api click.datepicker.data-api',
		'[data-provide="datepicker"]',
		function(e){
			var $this = $(this);
			if ($this.data('datepicker'))
				return;
			e.preventDefault();
			// component click requires us to explicitly show it
			datepickerPlugin.call($this, 'show');
		}
	);
	$(function(){
		datepickerPlugin.call($('[data-provide="datepicker-inline"]'));
	});

}(window.jQuery));

/**
 * British English translation for bootstrap-datepicker
 * Xavier Dutreilh <xavier@dutreilh.com>
 */
;(function($){
	$.fn.datepicker.dates['en-GB'] = {
		days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
		daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
		daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
		months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
		monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
		today: "Today",
		clear: "Clear",
		weekStart: 1,
		format: "dd/mm/yyyy"
	};
}(jQuery));

!function(a,b){"use strict";"undefined"!=typeof module&&module.exports?module.exports=b(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):b(a.jQuery)}(this,function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.typeahead.defaults,c),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.select=this.options.select||this.select,this.autoSelect="boolean"==typeof this.options.autoSelect?this.options.autoSelect:!0,this.highlighter=this.options.highlighter||this.highlighter,this.render=this.options.render||this.render,this.updater=this.options.updater||this.updater,this.displayText=this.options.displayText||this.displayText,this.source=this.options.source,this.delay=this.options.delay,this.$menu=a(this.options.menu),this.$appendTo=this.options.appendTo?a(this.options.appendTo):null,this.shown=!1,this.listen(),this.showHintOnFocus="boolean"==typeof this.options.showHintOnFocus?this.options.showHintOnFocus:!1,this.afterSelect=this.options.afterSelect,this.addItem=!1};b.prototype={constructor:b,select:function(){var a=this.$menu.find(".active").data("value");if(this.$element.data("active",a),this.autoSelect||a){var b=this.updater(a);this.$element.val(this.displayText(b)||b).change(),this.afterSelect(b)}return this.hide()},updater:function(a){return a},setSource:function(a){this.source=a},show:function(){var b,c=a.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return b="function"==typeof this.options.scrollHeight?this.options.scrollHeight.call():this.options.scrollHeight,(this.$appendTo?this.$menu.appendTo(this.$appendTo):this.$menu.insertAfter(this.$element)).css({top:c.top+c.height+b,left:c.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(b){if(this.query="undefined"!=typeof b&&null!==b?b:this.$element.val()||"",this.query.length<this.options.minLength)return this.shown?this.hide():this;var c=a.proxy(function(){a.isFunction(this.source)?this.source(this.query,a.proxy(this.process,this)):this.source&&this.process(this.source)},this);clearTimeout(this.lookupWorker),this.lookupWorker=setTimeout(c,this.delay)},process:function(b){var c=this;return b=a.grep(b,function(a){return c.matcher(a)}),b=this.sorter(b),b.length||this.options.addItem?(b.length>0?this.$element.data("active",b[0]):this.$element.data("active",null),this.options.addItem&&b.push(this.options.addItem),"all"==this.options.items?this.render(b).show():this.render(b.slice(0,this.options.items)).show()):this.shown?this.hide():this},matcher:function(a){var b=this.displayText(a);return~b.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(a){for(var b,c=[],d=[],e=[];b=a.shift();){var f=this.displayText(b);f.toLowerCase().indexOf(this.query.toLowerCase())?~f.indexOf(this.query)?d.push(b):e.push(b):c.push(b)}return c.concat(d,e)},highlighter:function(b){var c,d,e,f,g,h=a("<div></div>"),i=this.query,j=b.toLowerCase().indexOf(i.toLowerCase());if(c=i.length,0===c)return h.text(b).html();for(;j>-1;)d=b.substr(0,j),e=b.substr(j,c),f=b.substr(j+c),g=a("<strong></strong>").text(e),h.append(document.createTextNode(d)).append(g),b=f,j=b.toLowerCase().indexOf(i.toLowerCase());return h.append(document.createTextNode(b)).html()},render:function(b){var c=this,d=this,e=!1;return b=a(b).map(function(b,f){var g=d.displayText(f);return b=a(c.options.item).data("value",f),b.find("a").html(c.highlighter(g)),g==d.$element.val()&&(b.addClass("active"),d.$element.data("active",f),e=!0),b[0]}),this.autoSelect&&!e&&(b.first().addClass("active"),this.$element.data("active",b.first().data("value"))),this.$menu.html(b),this},displayText:function(a){return a.name||a},next:function(){var b=this.$menu.find(".active").removeClass("active"),c=b.next();c.length||(c=a(this.$menu.find("li")[0])),c.addClass("active")},prev:function(){var a=this.$menu.find(".active").removeClass("active"),b=a.prev();b.length||(b=this.$menu.find("li").last()),b.addClass("active")},listen:function(){this.$element.on("focus",a.proxy(this.focus,this)).on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("keyup",a.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",a.proxy(this.keydown,this)),this.$menu.on("click",a.proxy(this.click,this)).on("mouseenter","li",a.proxy(this.mouseenter,this)).on("mouseleave","li",a.proxy(this.mouseleave,this))},destroy:function(){this.$element.data("typeahead",null),this.$element.data("active",null),this.$element.off("focus").off("blur").off("keypress").off("keyup"),this.eventSupported("keydown")&&this.$element.off("keydown"),this.$menu.remove()},eventSupported:function(a){var b=a in this.$element;return b||(this.$element.setAttribute(a,"return;"),b="function"==typeof this.$element[a]),b},move:function(a){if(this.shown){switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:if(a.shiftKey)return;a.preventDefault(),this.prev();break;case 40:if(a.shiftKey)return;a.preventDefault(),this.next()}a.stopPropagation()}},keydown:function(b){this.suppressKeyPressRepeat=~a.inArray(b.keyCode,[40,38,9,13,27]),this.shown||40!=b.keyCode?this.move(b):this.lookup()},keypress:function(a){this.suppressKeyPressRepeat||this.move(a)},keyup:function(a){switch(a.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}a.stopPropagation(),a.preventDefault()},focus:function(){this.focused||(this.focused=!0,this.options.showHintOnFocus&&this.lookup(""))},blur:function(){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(a){a.stopPropagation(),a.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(b){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),a(b.currentTarget).addClass("active")},mouseleave:function(){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var c=a.fn.typeahead;a.fn.typeahead=function(c){var d=arguments;return"string"==typeof c&&"getActive"==c?this.data("active"):this.each(function(){var e=a(this),f=e.data("typeahead"),g="object"==typeof c&&c;f||e.data("typeahead",f=new b(this,g)),"string"==typeof c&&(d.length>1?f[c].apply(f,Array.prototype.slice.call(d,1)):f[c]())})},a.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu" role="listbox"></ul>',item:'<li><a href="#" role="option"></a></li>',minLength:1,scrollHeight:0,autoSelect:!0,afterSelect:a.noop,delay:0,addItem:!1},a.fn.typeahead.Constructor=b,a.fn.typeahead.noConflict=function(){return a.fn.typeahead=c,this},a(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(){var b=a(this);b.data("typeahead")||b.typeahead(b.data())})});
(function($) {
	$(document).ready(function() {
		$('a.oembed').oembed({
			'site': 'typo3'
		});
		$('#modal').on('shown.bs.modal', function(e) {
			$('a.oembed').oembed({
				'site': 'typo3'
			});
		});
	});
})(jQuery);
