PageSourceSearch

https://www.verzdesign.com/wp-content/themes/verz/assets/js/plugins.js

js verzdesign.com collected 2026-10-02 03:58:58 UTC 379,834 bytes, 93 lines download raw bytes

1/*============================================================================================================================*/
2/*! jQuery Migrate v3.4.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
3"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+n[a]>+o[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.0";var t=Object.create(null),o=(s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")||n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion)),{});function i(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return i(n,o),r},set:function(e){i(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&i(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function u(e,t,r,n,o){if(!o)throw new Error("No warning message provided");a(e,t,r,n,o)}function d(e,t,r,n){a(e,t,r,n)}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&i("quirks","jQuery is not compatible with Quirks Mode");var c,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(c in d(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(i("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,d(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),i("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){i("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,c)&&(s.find[c]=y[c]);u(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),u(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),u(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),u(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&u(s,"trim",function(e){return null==e?"":(e+"").replace(v,"")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(u(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),u(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(u(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),u(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),u(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),u(s,"isWindow",function(e){return null!=e&&e===e.window}
3,"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,d(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(u(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),u(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),u(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&i("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function Q(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}d(s.fn,"removeAttr",function(e){var r=this;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&(i("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),d(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(i("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var x,A=!1,R=/^[a-z]/,T=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return A=!0,e=r.apply(this,arguments),A=!1,e})}),d(s,"swap",function(e,t,r,n){var o,a={};for(o in A||i("swap","jQuery.swap() is undocumented and deprecated"),t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=r.apply(e,n||[]),t)e.style[o]=a[o];return r},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return i("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")&&"undefined"!=typeof Proxy&&(s.cssNumber=new Proxy({animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},{get:function(){return i("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return i("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}})),x=s.fn.css,d(s.fn,"css",function(e,t){var r,n=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(n,e,t)}),this):("number"==typeof t&&(t=Q(e),r=t,R.test(r)&&T.test(r[0].toUpperCase()+r.slice(1))||s.cssNumber[t]||i("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),x.apply(this,arguments))},"css-number");function C(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var S,N,P,k,H,E,M,q=s.data,D=(d(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&q.call(this,e),o={},t)a!==Q(a)?(i("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return q.call(this,e,o),t}return t&&"string"==typeof t&&t!==Q(t)&&(n=s.hasData(e)&&q.call(this,e))&&t in n?(i("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):q.apply(this,arguments)},"data-camelCase"),s.fx&&(P=s.Tween.prototype.run,k=function(e){return e},d(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(i("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=k),P.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,N="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||i("fx-interval",N),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){i("fx-interval",N),S=e}}
3)),s.fn.load),F=s.event.add,W=s.event.fix,O=(s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),d(s.event,"fix",function(e){var t=e.type,r=this.fixHooks[t],n=s.event.props;if(n.length){i("event-old-patch","jQuery.event.props are deprecated and removed: "+n.join());while(n.length)s.event.addProp(n.pop())}if(r&&!r._migrated_&&(r._migrated_=!0,i("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+t),(n=r.props)&&n.length))while(n.length)s.event.addProp(n.pop());return t=W.call(this,e),r&&r.filter?r.filter(t,e):t},"event-old-patch"),d(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&i("load-after-event","jQuery(window).on('load'...) called after load event occurred"),F.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){d(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?D.apply(this,e):(i("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){u(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&i("ready-event","'ready' event is deprecated")}},u(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),u(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),u(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),u(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),u(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated"),/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi),_=(s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},d(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(O,"<$1></$2>
3"))!==t&&C(t)!==C(r)&&i("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(O,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags"),s.fn.offset);return d(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?_.apply(this,arguments):(i("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(H=s.param,d(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(i("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),H.call(this,e,t)},"param-ajax-traditional")),u(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(E=s.Deferred,M=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],d(s,"Deferred",function(e){var a=E(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(M,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return u(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),u(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=E.exceptionHook),s});
4
5/*============================================================================================================================*/
6/* modernizr.min */
7window.Modernizr=function(e,t,n){function r(e){b.cssText=e}function o(e,t){return r(S.join(e+";")+(t||""))}function a(e,t){return typeof e===t}function i(e,t){return!!~(""+e).indexOf(t)}function c(e,t){for(var r in e){var o=e[r];if(!i(o,"-")&&b[o]!==n)return"pfx"==t?o:!0}return!1}function s(e,t,r){for(var o in e){var i=t[e[o]];if(i!==n)return r===!1?e[o]:a(i,"function")?i.bind(r||t):i}return!1}function u(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+k.join(r+" ")+r).split(" ");return a(t,"string")||a(t,"undefined")?c(o,t):(o=(e+" "+T.join(r+" ")+r).split(" "),s(o,t,n))}function l(){p.input=function(n){for(var r=0,o=n.length;o>r;r++)j[n[r]]=!!(n[r]in E);return j.list&&(j.list=!(!t.createElement("datalist")||!e.HTMLDataListElement)),j}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),p.inputtypes=function(e){for(var r,o,a,i=0,c=e.length;c>i;i++)E.setAttribute("type",o=e[i]),r="text"!==E.type,r&&(E.value=x,E.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(o)&&E.style.WebkitAppearance!==n?(g.appendChild(E),a=t.defaultView,r=a.getComputedStyle&&"textfield"!==a.getComputedStyle(E,null).WebkitAppearance&&0!==E.offsetHeight,g.removeChild(E)):/^(search|tel)$/.test(o)||(r=/^(url|email)$/.test(o)?E.checkValidity&&E.checkValidity()===!1:E.value!=x)),P[e[i]]=!!r;return P}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d,f,m="2.8.3",p={},h=!0,g=t.documentElement,v="modernizr",y=t.createElement(v),b=y.style,E=t.createElement("input"),x=":)",w={}.toString,S=" -webkit- -moz- -o- -ms- ".split(" "),C="Webkit Moz O ms",k=C.split(" "),T=C.toLowerCase().split(" "),N={svg:"http://www.w3.org/2000/svg"},M={},P={},j={},$=[],D=$.slice,F=function(e,n,r,o){var a,i,c,s,u=t.createElement("div"),l=t.body,d=l||t.createElement("body");if(parseInt(r,10))for(;r--;)c=t.createElement("div"),c.id=o?o[r]:v+(r+1),u.appendChild(c);return a=["&#173;",'<style id="s',v,'">',e,"</style>"].join(""),u.id=v,(l?u:d).innerHTML+=a,d.appendChild(u),l||(d.style.background="",d.style.overflow="hidden",s=g.style.overflow,g.style.overflow="hidden",g.appendChild(d)),i=n(u,e),l?u.parentNode.removeChild(u):(d.parentNode.removeChild(d),g.style.overflow=s),!!i},z=function(t){var n=e.matchMedia||e.msMatchMedia;if(n)return n(t)&&n(t).matches||!1;var r;return F("@media "+t+" { #"+v+" { position: absolute; } }",function(t){r="absolute"==(e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position}),r},A=function(){function e(e,o){o=o||t.createElement(r[e]||"div"),e="on"+e;var i=e in o;
vendor: 5,143 bytes, line 7
7return i||(o.setAttribute||(o=t.createElement("div")),o.setAttribute&&o.removeAttribute&&(o.setAttribute(e,""),i=a(o[e],"function"),a(o[e],"undefined")||(o[e]=n),o.removeAttribute(e))),o=null,i}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return e}(),L={}.hasOwnProperty;f=a(L,"undefined")||a(L.call,"undefined")?function(e,t){return t in e&&a(e.constructor.prototype[t],"undefined")}:function(e,t){return L.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=D.call(arguments,1),r=function(){if(this instanceof r){var o=function(){};o.prototype=t.prototype;var a=new o,i=t.apply(a,n.concat(D.call(arguments)));return Object(i)===i?i:a}return t.apply(e,n.concat(D.call(arguments)))};return r}),M.flexbox=function(){return u("flexWrap")},M.flexboxlegacy=function(){return u("boxDirection")},M.canvas=function(){var e=t.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},M.canvastext=function(){return!(!p.canvas||!a(t.createElement("canvas").getContext("2d").fillText,"function"))},M.webgl=function(){return!!e.WebGLRenderingContext},M.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:F(["@media (",S.join("touch-enabled),("),v,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){n=9===e.offsetTop}),n},M.geolocation=function(){return"geolocation"in navigator},M.postmessage=function(){return!!e.postMessage},M.websqldatabase=function(){return!!e.openDatabase},M.indexedDB=function(){return!!u("indexedDB",e)},M.hashchange=function(){return A("hashchange",e)&&(t.documentMode===n||t.documentMode>7)},M.history=function(){return!(!e.history||!history.pushState)},M.draganddrop=function(){var e=t.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},M.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},M.rgba=function(){return r("background-color:rgba(150,255,150,.5)"),i(b.backgroundColor,"rgba")},M.hsla=function(){return r("background-color:hsla(120,40%,100%,.5)"),i(b.backgroundColor,"rgba")||i(b.backgroundColor,"hsla")},M.multiplebgs=function(){return r("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(b.background)},M.backgroundsize=function(){return u("backgroundSize")},M.borderimage=function(){return u("borderImage")},M.borderradius=function(){return u("borderRadius")},M.boxshadow=function(){return u("boxShadow")},M.textshadow=function(){return""===t.createElement("div").style.textShadow},M.opacity=function(){return o("opacity:.55"),/^0.55$/.test(b.opacity)},M.cssanimations=function(){return u("animationName")},M.csscolumns=function(){return u("columnCount")},M.cssgradients=function(){var e="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);";return r((e+"-webkit- ".split(" ").join(t+e)+S.join(n+e)).slice(0,-e.length)),i(b.backgroundImage,"gradient")},M.cssreflections=function(){return u("boxReflect")},M.csstransforms=function(){return!!u("transform")},M.csstransforms3d=function(){var e=!!u("perspective");return e&&"webkitPerspective"in g.style&&F("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){e=9===t.offsetLeft&&3===t.offsetHeight}),e},M.csstransitions=function(){return u("transition")},M.fontface=function(){var e;return F('@font-face {font-family:"font";src:url("https://")}',function(n,r){var o=t.getElementById("smodernizr"),a=o.sheet||o.styleSheet,i=a?a.cssRules&&a.cssRules[0]?a.cssRules[0].cssText:a.cssText||"":"";e=/src/i.test(i)&&0===i.indexOf(r.split(" ")[0])}),e},M.generatedcontent=function(){var e;return F(["#",v,"{font:0/0 a}#",v,':after{content:"',x,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){e=t.offsetHeight>=3}),e},M.video=function(){var e=t.createElement("video"),n=!1;try{(n=!!e.canPlayType)&&(n=new Boolean(n),n.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n},M.audio=function(){var e=t.createElement("audio"),n=!1;try{(n=!!e.canPlayType)&&(n=new Boolean(n),n.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n},M.localstorage=function(){try{return localStorage.setItem(v,v),localStorage.removeItem(v),!0}catch(e){return!1}},M.sessionstorage=function(){try{return sessionStorage.setItem(v,v),sessionStorage.removeItem(v),!0}catch(e){return!1}},M.webworkers=function(){return!!e.Worker},M.applicationcache=function(){return!!e.applicationCache},M.svg=function(){return!!t.createElementNS&&!!t.createElementNS(N.svg,"svg").createSVGRect},M.inlinesvg=function(){var e=t.createElement("div");return e.innerHTML="<svg/>
7",(e.firstChild&&e.firstChild.namespaceURI)==N.svg},M.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(w.call(t.createElementNS(N.svg,"animate")))},M.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(w.call(t.createElementNS(N.svg,"clipPath")))};for(var H in M)f(M,H)&&(d=H.toLowerCase(),p[d]=M[H](),$.push((p[d]?"":"no-")+d));return p.input||l(),p.addTest=function(e,t){if("object"==typeof e)for(var r in e)f(e,r)&&p.addTest(r,e[r]);else{if(e=e.toLowerCase(),p[e]!==n)return p;t="function"==typeof t?t():t,"undefined"!=typeof h&&h&&(g.className+=" "+(t?"":"no-")+e),p[e]=t}return p},r(""),y=E=null,function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=y.elements;return"string"==typeof e?e.split(" "):e}function o(e){var t=v[e[h]];return t||(t={},g++,e[h]=g,v[g]=t),t}function a(e,n,r){if(n||(n=t),l)return n.createElement(e);r||(r=o(n));var a;return a=r.cache[e]?r.cache[e].cloneNode():p.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!a.canHaveChildren||m.test(e)||a.tagUrn?a:r.frag.appendChild(a)}function i(e,n){if(e||(e=t),l)return e.createDocumentFragment();n=n||o(e);for(var a=n.frag.cloneNode(),i=0,c=r(),s=c.length;s>i;i++)a.createElement(c[i]);return a}function c(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return y.shivMethods?a(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(y,t.frag)}function s(e){e||(e=t);var r=o(e);return!y.shivCSS||u||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||c(e,r),e}var u,l,d="3.7.0",f=e.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,h="_html5shiv",g=0,v={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",u="hidden"in e,l=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){u=!0,l=!0}}();var y={elements:f.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:d,shivCSS:f.shivCSS!==!1,supportsUnknownElements:l,shivMethods:f.shivMethods!==!1,type:"default",shivDocument:s,createElement:a,createDocumentFragment:i};e.html5=y,s(t)}(this,t),p._version=m,p._prefixes=S,p._domPrefixes=T,p._cssomPrefixes=k,p.mq=z,p.hasEvent=A,p.testProp=function(e){return c([e])},p.testAllProps=u,p.testStyles=F,p.prefixed=function(e,t,n){return t?u(e,t,n):u(e,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(h?" js "+$.join(" "):""),p}(this,this.document);
8/*============================================================================================================================*/
9/**
10 * @popperjs/core v2.11.7 - MIT License
11 */
12!function (e, t) { "object" == typeof exports && "undefined" != typeof module ? t(exports) : "function" == typeof define && define.amd ? define(["exports"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).Popper = {}) }(this, (function (e) { "use strict"; function t(e) { if (null == e) return window; if ("[object Window]" !== e.toString()) { var t = e.ownerDocument; return t && t.defaultView || window } return e } function n(e) { return e instanceof t(e).Element || e instanceof Element } function r(e) { return e instanceof t(e).HTMLElement || e instanceof HTMLElement } function o(e) { return "undefined" != typeof ShadowRoot && (e instanceof t(e).ShadowRoot || e instanceof ShadowRoot) } var i = Math.max, a = Math.min, s = Math.round; function f() { var e = navigator.userAgentData; return null != e && e.brands && Array.isArray(e.brands) ? e.brands.map((function (e) { return e.brand + "/" + e.version })).join(" ") : navigator.userAgent } function c() { return !/^((?!chrome|android).)*safari/i.test(f()) } function p(e, o, i) { void 0 === o && (o = !1), void 0 === i && (i = !1); var a = e.getBoundingClientRect(), f = 1, p = 1; o && r(e) && (f = e.offsetWidth > 0 && s(a.width) / e.offsetWidth || 1, p = e.offsetHeight > 0 && s(a.height) / e.offsetHeight || 1);
vendor: 4,243 bytes, line 12
12 var u = (n(e) ? t(e) : window).visualViewport, l = !c() && i, d = (a.left + (l && u ? u.offsetLeft : 0)) / f, h = (a.top + (l && u ? u.offsetTop : 0)) / p, m = a.width / f, v = a.height / p; return { width: m, height: v, top: h, right: d + m, bottom: h + v, left: d, x: d, y: h } } function u(e) { var n = t(e); return { scrollLeft: n.pageXOffset, scrollTop: n.pageYOffset } } function l(e) { return e ? (e.nodeName || "").toLowerCase() : null } function d(e) { return ((n(e) ? e.ownerDocument : e.document) || window.document).documentElement } function h(e) { return p(d(e)).left + u(e).scrollLeft } function m(e) { return t(e).getComputedStyle(e) } function v(e) { var t = m(e), n = t.overflow, r = t.overflowX, o = t.overflowY; return /auto|scroll|overlay|hidden/.test(n + o + r) } function y(e, n, o) { void 0 === o && (o = !1); var i, a, f = r(n), c = r(n) && function (e) { var t = e.getBoundingClientRect(), n = s(t.width) / e.offsetWidth || 1, r = s(t.height) / e.offsetHeight || 1; return 1 !== n || 1 !== r }(n), m = d(n), y = p(e, c, o), g = { scrollLeft: 0, scrollTop: 0 }, b = { x: 0, y: 0 }; return (f || !f && !o) && (("body" !== l(n) || v(m)) && (g = (i = n) !== t(i) && r(i) ? { scrollLeft: (a = i).scrollLeft, scrollTop: a.scrollTop } : u(i)), r(n) ? ((b = p(n, !0)).x += n.clientLeft, b.y += n.clientTop) : m && (b.x = h(m))), { x: y.left + g.scrollLeft - b.x, y: y.top + g.scrollTop - b.y, width: y.width, height: y.height } } function g(e) { var t = p(e), n = e.offsetWidth, r = e.offsetHeight; return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), { x: e.offsetLeft, y: e.offsetTop, width: n, height: r } } function b(e) { return "html" === l(e) ? e : e.assignedSlot || e.parentNode || (o(e) ? e.host : null) || d(e) } function x(e) { return ["html", "body", "#document"].indexOf(l(e)) >= 0 ? e.ownerDocument.body : r(e) && v(e) ? e : x(b(e)) } function w(e, n) { var r; void 0 === n && (n = []); var o = x(e), i = o === (null == (r = e.ownerDocument) ? void 0 : r.body), a = t(o), s = i ? [a].concat(a.visualViewport || [], v(o) ? o : []) : o, f = n.concat(s); return i ? f : f.concat(w(b(s))) } function O(e) { return ["table", "td", "th"].indexOf(l(e)) >= 0 } function j(e) { return r(e) && "fixed" !== m(e).position ? e.offsetParent : null } function E(e) { for (var n = t(e), i = j(e); i && O(i) && "static" === m(i).position;)i = j(i); return i && ("html" === l(i) || "body" === l(i) && "static" === m(i).position) ? n : i || function (e) { var t = /firefox/i.test(f()); if (/Trident/i.test(f()) && r(e) && "fixed" === m(e).position) return null; var n = b(e); for (o(n) && (n = n.host); r(n) && ["html", "body"].indexOf(l(n)) < 0;) { var i = m(n); if ("none" !== i.transform || "none" !== i.perspective || "paint" === i.contain || -1 !== ["transform", "perspective"].indexOf(i.willChange) || t && "filter" === i.willChange || t && i.filter && "none" !== i.filter) return n; n = n.parentNode } return null }(e) || n } var D = "top", A = "bottom", L = "right", P = "left", M = "auto", k = [D, A, L, P], W = "start", B = "end", H = "viewport", T = "popper", R = k.reduce((function (e, t) { return e.concat([t + "-" + W, t + "-" + B]) }), []), S = [].concat(k, [M]).reduce((function (e, t) { return e.concat([t, t + "-" + W, t + "-" + B]) }), []), V = ["beforeRead", "read", "afterRead", "beforeMain", "main", "afterMain", "beforeWrite", "write", "afterWrite"]; function q(e) { var t = new Map, n = new Set, r = []; function o(e) { n.add(e.name), [].concat(e.requires || [], e.requiresIfExists || []).forEach((function (e) { if (!n.has(e)) { var r = t.get(e); r && o(r) } })), r.push(e) } return e.forEach((function (e) { t.set(e.name, e) })), e.forEach((function (e) { n.has(e.name) || o(e) })), r } function C(e) { return e.split("-")[0] } function N(e, t) { var n = t.getRootNode && t.getRootNode(); if (e.contains(t)) return !0; if (n && o(n)) { var r = t; do { if (r && e.isSameNode(r)) return !0; r = r.parentNode || r.host } while (r) } return !1 } function I(e) { return Object.assign({}, e, { left: e.x, top: e.y, right: e.x + e.width, bottom: e.y + e.height }) } function _(e, r, o) { return r === H ? I(function (e, n) { var r = t(e), o = d(e), i = r.visualVie
vendor: 19,838 bytes, lines 12-19
12wport, a = o.clientWidth, s = o.clientHeight, f = 0, p = 0; if (i) { a = i.width, s = i.height; var u = c(); (u || !u && "fixed" === n) && (f = i.offsetLeft, p = i.offsetTop) } return { width: a, height: s, x: f + h(e), y: p } }(e, o)) : n(r) ? function (e, t) { var n = p(e, !1, "fixed" === t); return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n }(r, o) : I(function (e) { var t, n = d(e), r = u(e), o = null == (t = e.ownerDocument) ? void 0 : t.body, a = i(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = i(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), f = -r.scrollLeft + h(e), c = -r.scrollTop; return "rtl" === m(o || n).direction && (f += i(n.clientWidth, o ? o.clientWidth : 0) - a), { width: a, height: s, x: f, y: c } }(d(e))) } function F(e, t, o, s) { var f = "clippingParents" === t ? function (e) { var t = w(b(e)), o = ["absolute", "fixed"].indexOf(m(e).position) >= 0 && r(e) ? E(e) : e; return n(o) ? t.filter((function (e) { return n(e) && N(e, o) && "body" !== l(e) })) : [] }(e) : [].concat(t), c = [].concat(f, [o]), p = c[0], u = c.reduce((function (t, n) { var r = _(e, n, s); return t.top = i(r.top, t.top), t.right = a(r.right, t.right), t.bottom = a(r.bottom, t.bottom), t.left = i(r.left, t.left), t }), _(e, p, s)); return u.width = u.right - u.left, u.height = u.bottom - u.top, u.x = u.left, u.y = u.top, u } function U(e) { return e.split("-")[1] } function z(e) { return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y" } function X(e) { var t, n = e.reference, r = e.element, o = e.placement, i = o ? C(o) : null, a = o ? U(o) : null, s = n.x + n.width / 2 - r.width / 2, f = n.y + n.height / 2 - r.height / 2; switch (i) { case D: t = { x: s, y: n.y - r.height }; break; case A: t = { x: s, y: n.y + n.height }; break; case L: t = { x: n.x + n.width, y: f }; break; case P: t = { x: n.x - r.width, y: f }; break; default: t = { x: n.x, y: n.y } }var c = i ? z(i) : null; if (null != c) { var p = "y" === c ? "height" : "width"; switch (a) { case W: t[c] = t[c] - (n[p] / 2 - r[p] / 2); break; case B: t[c] = t[c] + (n[p] / 2 - r[p] / 2) } } return t } function Y(e) { return Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }, e) } function G(e, t) { return t.reduce((function (t, n) { return t[n] = e, t }), {}) } function J(e, t) { void 0 === t && (t = {}); var r = t, o = r.placement, i = void 0 === o ? e.placement : o, a = r.strategy, s = void 0 === a ? e.strategy : a, f = r.boundary, c = void 0 === f ? "clippingParents" : f, u = r.rootBoundary, l = void 0 === u ? H : u, h = r.elementContext, m = void 0 === h ? T : h, v = r.altBoundary, y = void 0 !== v && v, g = r.padding, b = void 0 === g ? 0 : g, x = Y("number" != typeof b ? b : G(b, k)), w = m === T ? "reference" : T, O = e.rects.popper, j = e.elements[y ? w : m], E = F(n(j) ? j : j.contextElement || d(e.elements.popper), c, l, s), P = p(e.elements.reference), M = X({ reference: P, element: O, strategy: "absolute", placement: i }), W = I(Object.assign({}, O, M)), B = m === T ? W : P, R = { top: E.top - B.top + x.top, bottom: B.bottom - E.bottom + x.bottom, left: E.left - B.left + x.left, right: B.right - E.right + x.right }, S = e.modifiersData.offset; if (m === T && S) { var V = S[i]; Object.keys(R).forEach((function (e) { var t = [L, A].indexOf(e) >= 0 ? 1 : -1, n = [D, A].indexOf(e) >= 0 ? "y" : "x"; R[e] += V[n] * t })) } return R } var K = { placement: "bottom", modifiers: [], strategy: "absolute" }; function Q() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)t[n] = arguments[n]; return !t.some((function (e) { return !(e && "function" == typeof e.getBoundingClientRect) })) } function Z(e) { void 0 === e && (e = {}); var t = e, r = t.defaultModifiers, o = void 0 === r ? [] : r, i = t.defaultOptions, a = void 0 === i ? K : i; return function (e, t, r) { void 0 === r && (r = a); var i, s, f = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, K, a), modifiersData: {}, elements: { reference: e, popper: t }, attributes: {}, styles: {} }, c = [], p = !1, u = { state: f, setOptions: function (r) { var i = "function" == typeof r ? r(f.options) : r; l(), f.options = Object.assign({}, a, f.options, i), f.scrollParents = { reference: n(e) ? w(e) : e.contextElement ? w(e.contextElement) : [], popper: w(t) }; var s, p, d = function (e) { var t = q(e); return V.reduce((function (e, n) { return e.concat(t.filter((function (e) { return e.phase === n }))) }), []) }((s = [].concat(o, f.options.modifiers), p = s.reduce((function (e, t) { var n = e[t.name]; return e[t.name] = n ? Object.assign({}, n, t, { options: Object.assign({}, n.options, t.options), data: Object.assign({}, n.data, t.data) }) : t, e }), {}), Object.keys(p).map((function (e) { return p[e] })))); return f.orderedModifiers = d.filter((function (e) { return e.enabled })), f.orderedModifiers.forEach((function (e) { var t = e.name, n = e.options, r = void 0 === n ? {} : n, o = e.effect; if ("function" == typeof o) { var i = o({ state: f, name: t, instance: u, options: r }), a = function () { }; c.push(i || a) } })), u.update() }, forceUpdate: function () { if (!p) { var e = f.elements, t = e.reference, n = e.popper; if (Q(t, n)) { f.rects = { reference: y(t, E(n), "fixed" === f.options.strategy), popper: g(n) }, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach((function (e) { return f.modifiersData[e.name] = Object.assign({}, e.data) })); for (var r = 0; r < f.orderedModifiers.length; r++)if (!0 !== f.reset) { var o = f.orderedModifiers[r], i = o.fn, a = o.options, s = void 0 === a ? {} : a, c = o.name; "function" == typeof i && (f = i({ state: f, options: s, name: c, instance: u }) || f) } else f.reset = !1, r = -1 } } }, update: (i = function () { return new Promise((function (e) { u.forceUpdate(), e(f) })) }, function () { return s || (s = new Promise((function (e) { Promise.resolve().then((function () { s = void 0, e(i()) })) }))), s }), destroy: function () { l(), p = !0 } }; if (!Q(e, t)) return u; function l() { c.forEach((function (e) { return e() })), c = [] } return u.setOptions(r).then((function (e) { !p && r.onFirstUpdate && r.onFirstUpdate(e) })), u } } var $ = { passive: !0 }; var ee = { name: "eventListeners", enabled: !0, phase: "write", fn: function () { }, effect: function (e) { var n = e.state, r = e.instance, o = e.options, i = o.scroll, a = void 0 === i || i, s = o.resize, f = void 0 === s || s, c = t(n.elements.popper), p = [].concat(n.scrollParents.reference, n.scrollParents.popper); return a && p.forEach((function (e) { e.addEventListener("scroll", r.update, $) })), f && c.addEventListener("resize", r.update, $), function () { a && p.forEach((function (e) { e.removeEventListener("scroll", r.update, $) })), f && c.removeEventListener("resize", r.update, $) } }, data: {} }; var te = { name: "popperOffsets", enabled: !0, phase: "read", fn: function (e) { var t = e.state, n = e.name; t.modifiersData[n] = X({ reference: t.rects.reference, element: t.rects.popper, strategy: "absolute", placement: t.placement }) }, data: {} }, ne = { top: "auto", right: "auto", bottom: "auto", left: "auto" }; function re(e) { var n, r = e.popper, o = e.popperRect, i = e.placement, a = e.variation, f = e.offsets, c = e.position, p = e.gpuAcceleration, u = e.adaptive, l = e.roundOffsets, h = e.isFixed, v = f.x, y = void 0 === v ? 0 : v, g = f.y, b = void 0 === g ? 0 : g, x = "function" == typeof l ? l({ x: y, y: b }) : { x: y, y: b }; y = x.x, b = x.y; var w = f.hasOwnProperty("x"), O = f.hasOwnProperty("y"), j = P, M = D, k = window; if (u) { var W = E(r), H = "clientHeight", T = "clientWidth"; if (W === t(r) && "static" !== m(W = d(r)).position && "absolute" === c && (H = "scrollHeight", T = "scrollWidth"), W = W, i === D || (i === P || i === L) && a === B) M = A, b -= (h && W === k && k.visualViewport ? k.visualViewport.height : W[H]) - o.height, b *= p ? 1 : -1; if (i === P || (i === D || i === A) && a === B) j = L, y -= (h && W === k && k.visualViewport ? k.visualViewport.width : W[T]) - o.width, y *= p ? 1 : -1 } var R, S = Object.assign({ position: c }, u && ne), V = !0 === l ? function (e, t) { var n = e.x, r = e.y, o = t.devicePixelRatio || 1; return { x: s(n * o) / o || 0, y: s(r * o) / o || 0 } }({ x: y, y: b }, t(r)) : { x: y, y: b }; return y = V.x, b = V.y, p ? Object.assign({}, S, ((R = {})[M] = O ? "0" : "", R[j] = w ? "0" : "", R.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + y + "px, " + b + "px)" : "translate3d(" + y + "px, " + b + "px, 0)", R)) : Object.assign({}, S, ((n = {})[M] = O ? b + "px" : "", n[j] = w ? y + "px" : "", n.transform = "", n)) } var oe = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: function (e) { var t = e.state, n = e.options, r = n.gpuAcceleration, o = void 0 === r || r, i = n.adaptive, a = void 0 === i || i, s = n.roundOffsets, f = void 0 === s || s, c = { placement: C(t.placement), variation: U(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: o, isFixed: "fixed" === t.options.strategy }; null != t.modifiersData.popperOffsets && (t.styles.popper = Object.assign({}, t.styles.popper, re(Object.assign({}, c, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: a, roundOffsets: f })))), null != t.modifiersData.arrow && (t.styles.arrow = Object.assign({}, t.styles.arrow, re(Object.assign({}, c, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: f })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement }) }, data: {} }; var ie = { name: "applyStyles", enabled: !0, phase: "write", fn: function (e) { var t = e.state; Object.keys(t.elements).forEach((function (e) { var n = t.styles[e] || {}, o = t.attributes[e] || {}, i = t.elements[e]; r(i) && l(i) && (Object.assign(i.style, n), Object.keys(o).forEach((function (e) { var t = o[e]; !1 === t ? i.removeAttribute(e) : i.setAttribute(e, !0 === t ? "" : t) }))) })) }, effect: function (e) { var t = e.state, n = { popper: { position: t.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} }; return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function () { Object.keys(t.elements).forEach((function (e) { var o = t.elements[e], i = t.attributes[e] || {}, a = Object.keys(t.styles.hasOwnProperty(e) ? t.styles[e] : n[e]).reduce((function (e, t) { return e[t] = "", e }), {}); r(o) && l(o) && (Object.assign(o.style, a), Object.keys(i).forEach((function (e) { o.removeAttribute(e) }))) })) } }, requires: ["computeStyles"] }; var ae = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: function (e) { var t = e.state, n = e.options, r = e.name, o = n.offset, i = void 0 === o ? [0, 0] : o, a = S.reduce((function (e, n) { return e[n] = function (e, t, n) { var r = C(e), o = [P, D].indexOf(r) >= 0 ? -1 : 1, i = "function" == typeof n ? n(Object.assign({}, t, { placement: e })) : n, a = i[0], s = i[1]; return a = a || 0, s = (s || 0) * o, [P, L].indexOf(r) >= 0 ? { x: s, y: a } : { x: a, y: s } }(n, t.rects, i), e }), {}), s = a[t.placement], f = s.x, c = s.y; null != t.modifiersData.popperOffsets && (t.modifiersData.popperOffsets.x += f, t.modifiersData.popperOffsets.y += c), t.modifiersData[r] = a } }, se = { left: "right", right: "left", bottom: "top", top: "bottom" }; function fe(e) { return e.replace(/left|right|bottom|top/g, (function (e) { return se[e] })) } var ce = { start: "end", end: "start" }; function pe(e) { return e.replace(/start|end/g, (function (e) { return ce[e] })) } function ue(e, t) { void 0 === t && (t = {}); var n = t, r = n.placement, o = n.boundary, i = n.rootBoundary, a = n.padding, s = n.flipVariations, f = n.allowedAutoPlacements, c = void 0 === f ? S : f, p = U(r), u = p ? s ? R : R.filter((function (e) { return U(e) === p })) : k, l = u.filter((function (e) { return c.indexOf(e) >= 0 })); 0 === l.length && (l = u); var d = l.reduce((function (t, n) { return t[n] = J(e, { placement: n, boundary: o, rootBoundary: i, padding: a })[C(n)], t }), {}); return Object.keys(d).sort((function (e, t) { return d[e] - d[t] })) } var le = { name: "flip", enabled: !0, phase: "main", fn: function (e) { var t = e.state, n = e.options, r = e.name; if (!t.modifiersData[r]._skip) { for (var o = n.mainAxis, i = void 0 === o || o, a = n.altAxis, s = void 0 === a || a, f = n.fallbackPlacements, c = n.padding, p = n.boundary, u = n.rootBoundary, l = n.altBoundary, d = n.flipVariations, h = void 0 === d || d, m = n.allowedAutoPlacements, v = t.options.placement, y = C(v), g = f || (y === v || !h ? [fe(v)] : function (e) { if (C(e) === M) return []; var t = fe(e); return [pe(e), t, pe(t)] }(v)), b = [v].concat(g).reduce((function (e, n) { return e.concat(C(n) === M ? ue(t, { placement: n, boundary: p, rootBoundary: u, padding: c, flipVariations: h, allowedAutoPlacements: m }) : n) }), []), x = t.rects.reference, w = t.rects.popper, O = new Map, j = !0, E = b[0], k = 0; k < b.length; k++) { var B = b[k], H = C(B), T = U(B) === W, R = [D, A].indexOf(H) >= 0, S = R ? "width" : "height", V = J(t, { placement: B, boundary: p, rootBoundary: u, altBoundary: l, padding: c }), q = R ? T ? L : P : T ? A : D; x[S] > w[S] && (q = fe(q)); var N = fe(q), I = []; if (i && I.push(V[H] <= 0), s && I.push(V[q] <= 0, V[N] <= 0), I.every((function (e) { return e }))) { E = B, j = !1; break } O.set(B, I) } if (j) for (var _ = function (e) { var t = b.find((function (t) { var n = O.get(t); if (n) return n.slice(0, e).every((function (e) { return e })) })); if (t) return E = t, "break" }, F = h ? 3 : 1; F > 0; F--) { if ("break" === _(F)) break } t.placement !== E && (t.modifiersData[r]._skip = !0, t.placement = E, t.reset = !0) } }, requiresIfExists: ["offset"], data: { _skip: !1 } }; function de(e, t, n) { return i(e, a(t, n)) } var he = { name: "preventOverflow", enabled: !0, phase: "main", fn: function (e) { var t = e.state, n = e.options, r = e.name, o = n.mainAxis, s = void 0 === o || o, f = n.altAxis, c = void 0 !== f && f, p = n.boundary, u = n.rootBoundary, l = n.altBoundary, d = n.padding, h = n.tether, m = void 0 === h || h, v = n.tetherOffset, y = void 0 === v ? 0 : v, b = J(t, { boundary: p, rootBoundary: u, padding: d, altBoundary: l }), x = C(t.placement), w = U(t.placement), O = !w, j = z(x), M = "x" === j ? "y" : "x", k = t.modifiersData.popperOffsets, B = t.rects.reference, H = t.rects.popper, T = "function" == typeof y ? y(Object.assign({}, t.rects, { placement: t.placement })) : y, R = "number" == typeof T ? { mainAxis: T, altAxis: T } : Object.assign({ mainAxis: 0, altAxis: 0 }, T), S = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, V = { x: 0, y: 0 }; if (k) { if (s) { var q, N = "y" === j ? D : P, I = "y" === j ? A : L, _ = "y" === j ? "height" : "width", F = k[j], X = F + b[N], Y = F - b[I], G = m ? -H[_] / 2 : 0, K = w === W ? B[_] : H[_], Q = w === W ? -H[_] : -B[_], Z = t.elements.arrow, $ = m && Z ? g(Z) : { width: 0, height: 0 }, ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : { top: 0, right: 0, bottom: 0, left: 0 }, te = ee[N], ne = ee[I], re = de(0, B[_], $[_]), oe = O ? B[_] / 2 - G - re - te - R.mainAxis : K - re - te - R.mainAxis, ie = O ? -B[_] / 2 + G + re + ne + R.mainAxis : Q + re + ne + R.mainAxis, ae = t.elements.arrow && E(t.elements.arrow), se = ae ? "y" === j ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, fe = null != (q = null == S ? void 0 : S[j]) ? q : 0, ce = F + ie - fe, pe = de(m ? a(X, F + oe - fe - se) : X, F, m ? i(Y, ce) : Y); k[j] = pe, V[j] = pe - F } if (c) { var ue, le = "x" === j ? D : P, he = "x" === j ? A : L, me = k[M], ve = "y" === M ? "height" : "width", ye = me + b[le], ge = me - b[he], be = -1 !== [D, P].indexOf(x), xe = null != (ue = null == S ? void 0 : S[M]) ? ue : 0, we = be ? ye : me - B[ve] - H[ve] - xe + R.altAxis, Oe = be ? me + B[ve] + H[ve] - xe - R.altAxis : ge, je = m && be ? function (e, t, n) { var r = de(e, t, n); return r > n ? n : r }(we, me, Oe) : de(m ? we : ye, me, m ? Oe : ge); k[M] = je, V[M] = je - me } t.modifiersData[r] = V } }, requiresIfExists: ["offset"] }; var me = { name: "arrow", enabled: !0, phase: "main", fn: function (e) { var t, n = e.state, r = e.name, o = e.options, i = n.elements.arrow, a = n.modifiersData.popperOffsets, s = C(n.placement), f = z(s), c = [P, L].indexOf(s) >= 0 ? "height" : "width"; if (i && a) { var p = function (e, t) { return Y("number" != typeof (e = "function" == typeof e ? e(Object.assign({}, t.rects, { placement: t.placement })) : e) ? e : G(e, k)) }(o.padding, n), u = g(i), l = "y" === f ? D : P, d = "y" === f ? A : L, h = n.rects.reference[c] + n.rects.reference[f] - a[f] - n.rects.popper[c], m = a[f] - n.rects.reference[f], v = E(i), y = v ? "y" === f ? v.clientHeight || 0 : v.clientWidth || 0 : 0, b = h / 2 - m / 2, x = p[l], w = y - u[c] - p[d], O = y / 2 - u[c] / 2 + b, j = de(x, O, w), M = f; n.modifiersData[r] = ((t = {})[M] = j, t.centerOffset = j - O, t) } }, effect: function (e) { var t = e.state, n = e.options.element, r = void 0 === n ? "[data-popper-arrow]" : n; null != r && ("string" != typeof r || (r = t.elements.popper.querySelector(r))) && N(t.elements.popper, r) && (t.elements.arrow = r) }, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }; function ve(e, t, n) { return void 0 === n && (n = { x: 0, y: 0 }), { top: e.top - t.height - n.y, right: e.right - t.width + n.x, bottom: e.bottom - t.height + n.y, left: e.left - t.width - n.x } } function ye(e) { return [D, L, A, P].some((function (t) { return e[t] >= 0 })) } var ge = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: function (e) { var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a = J(t, { elementContext: "reference" }), s = J(t, { altBoundary: !0 }), f = ve(a, r), c = ve(s, o, i), p = ye(f), u = ye(c); t.modifiersData[n] = { referenceClippingOffsets: f, popperEscapeOffsets: c, isReferenceHidden: p, hasPopperEscaped: u }, t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": p, "data-popper-escaped": u }) } }, be = Z({ defaultModifiers: [ee, te, oe, ie] }), xe = [ee, te, oe, ie, ae, le, he, me, ge], we = Z({ defaultModifiers: xe }); e.applyStyles = ie, e.arrow = me, e.computeStyles = oe, e.createPopper = we, e.createPopperLite = be, e.defaultModifiers = xe, e.detectOverflow = J, e.eventListeners = ee, e.flip = le, e.hide = ge, e.offset = ae, e.popperGenerator = Z, e.popperOffsets = te, e.preventOverflow = he, Object.defineProperty(e, "__esModule", { value: !0 }) }));
13/*============================================================================================================================*/
14/*!
15  * Bootstrap v5.3.0-alpha3 (https://getbootstrap.com/)
16  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
17  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
18  */
19!function (t, e) { "object" == typeof exports && "undefined" != typeof module ? module.exports = e(require("@popperjs/core")) : "function" == typeof define && define.amd ? define(["@popperjs/core"], e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).bootstrap = e(t.Popper) }(this, (function (t) { "use strict"; function e(t) { const e = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
vendor: 8,102 bytes, line 19
19 if (t) for (const s in t) if ("default" !== s) { const i = Object.getOwnPropertyDescriptor(t, s); Object.defineProperty(e, s, i.get ? i : { enumerable: !0, get: () => t[s] }) } return e.default = t, Object.freeze(e) } const s = e(t), i = new Map, n = { set(t, e, s) { i.has(t) || i.set(t, new Map); const n = i.get(t); n.has(e) || 0 === n.size ? n.set(e, s) : console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`) }, get: (t, e) => i.has(t) && i.get(t).get(e) || null, remove(t, e) { if (!i.has(t)) return; const s = i.get(t); s.delete(e), 0 === s.size && i.delete(t) } }, o = "transitionend", r = t => (t && window.CSS && window.CSS.escape && (t = t.replace(/#([^\s"#']+)/g, ((t, e) => `#${CSS.escape(e)}`))), t), a = t => { t.dispatchEvent(new Event(o)) }, l = t => !(!t || "object" != typeof t) && (void 0 !== t.jquery && (t = t[0]), void 0 !== t.nodeType), c = t => l(t) ? t.jquery ? t[0] : t : "string" == typeof t && t.length > 0 ? document.querySelector(r(t)) : null, h = t => { if (!l(t) || 0 === t.getClientRects().length) return !1; const e = "visible" === getComputedStyle(t).getPropertyValue("visibility"), s = t.closest("details:not([open])"); if (!s) return e; if (s !== t) { const e = t.closest("summary"); if (e && e.parentNode !== s) return !1; if (null === e) return !1 } return e }, d = t => !t || t.nodeType !== Node.ELEMENT_NODE || !!t.classList.contains("disabled") || (void 0 !== t.disabled ? t.disabled : t.hasAttribute("disabled") && "false" !== t.getAttribute("disabled")), u = t => { if (!document.documentElement.attachShadow) return null; if ("function" == typeof t.getRootNode) { const e = t.getRootNode(); return e instanceof ShadowRoot ? e : null } return t instanceof ShadowRoot ? t : t.parentNode ? u(t.parentNode) : null }, _ = () => { }, g = t => { t.offsetHeight }, f = () => window.jQuery && !document.body.hasAttribute("data-bs-no-jquery") ? window.jQuery : null, m = [], p = () => "rtl" === document.documentElement.dir, b = t => { var e; e = () => { const e = f(); if (e) { const s = t.NAME, i = e.fn[s]; e.fn[s] = t.jQueryInterface, e.fn[s].Constructor = t, e.fn[s].noConflict = () => (e.fn[s] = i, t.jQueryInterface) } }, "loading" === document.readyState ? (m.length || document.addEventListener("DOMContentLoaded", (() => { for (const t of m) t() })), m.push(e)) : e() }, v = (t, e = [], s = t) => "function" == typeof t ? t(...e) : s, y = (t, e, s = !0) => { if (!s) return void v(t); const i = (t => { if (!t) return 0; let { transitionDuration: e, transitionDelay: s } = window.getComputedStyle(t); const i = Number.parseFloat(e), n = Number.parseFloat(s); return i || n ? (e = e.split(",")[0], s = s.split(",")[0], 1e3 * (Number.parseFloat(e) + Number.parseFloat(s))) : 0 })(e) + 5; let n = !1; const r = ({ target: s }) => { s === e && (n = !0, e.removeEventListener(o, r), v(t)) }; e.addEventListener(o, r), setTimeout((() => { n || a(e) }), i) }, w = (t, e, s, i) => { const n = t.length; let o = t.indexOf(e); return -1 === o ? !s && i ? t[n - 1] : t[0] : (o += s ? 1 : -1, i && (o = (o + n) % n), t[Math.max(0, Math.min(o, n - 1))]) }, A = /[^.]*(?=\..*)\.|.*/, E = /\..*/, C = /::\d+$/, T = {}; let k = 1; const S = { mouseenter: "mouseover", mouseleave: "mouseout" }, L = new Set(["click", "dblclick", "mouseup", "mousedown", "contextmenu", "mousewheel", "DOMMouseScroll", "mouseover", "mouseout", "mousemove", "selectstart", "selectend", "keydown", "keypress", "keyup", "orientationchange", "touchstart", "touchmove", "touchend", "touchcancel", "pointerdown", "pointermove", "pointerup", "pointerleave", "pointercancel", "gesturestart", "gesturechange", "gestureend", "focus", "blur", "change", "reset", "select", "submit", "focusin", "focusout", "load", "unload", "beforeunload", "resize", "move", "DOMContentLoaded", "readystatechange", "error", "abort", "scroll"]); function O(t, e) { return e && `${e}::${k++}` || t.uidEvent || k++ } function I(t) { const e = O(t); return t.uidEvent = e, T[e] = T[e] || {}, T[e] } function D(t, e, s = null) { return Object.values(t).find((t => t.callable === e && t.delegationSelector === s)) } function N(t, e, s) { const i = "string" == typeof e, n = i ? s : e || s; let o = j(t); return L.has(o) || (o = t), [i, n, o] } function P(t, e, s, i, n) { if ("string" != typeof e || !t) return; let [o, r, a] = N(e, s, i); if (e in S) { const t = t => function (e) { if (!e.relatedTarget || e.relatedTarget !== e.delegateTarget && !e.delegateTarget.contains(e.relatedTarget)) return t.call(this, e) }; r = t(r) } const l = I(t), c = l[a] || (l[a] = {}), h = D(c, r, o ? s : null); if (h) return void (h.oneOff = h.oneOff && n); const d = O(r, e.replace(A, "")), u = o ? function (t, e, s) { return function i(n) { const o = t.querySelectorAll(e); for (let { target: r } = n; r && r !== this; r = r.parentNode)for (const a of o) if (a === r) return $(n, { delegateTarget: r }), i.oneOff && F.off(t, n.type, e, s), s.apply(r, [n]) } }(t, s, r) : function (t, e) { return function s(i) { return $(i, { delegateTarget: t }), s.oneOff && F.off(t, i.type, e), e.apply(t, [i]) } }(t, r); u.delegationSelector = o ? s : null, u.callable = r, u.oneOff = n, u.uidEvent = d, c[d] = u, t.addEventListener(a, u, o) } function x(t, e, s, i, n) { const o = D(e[s], i, n); o && (t.removeEventListener(s, o, Boolean(n)), delete e[s][o.uidEvent]) } function M(t, e, s, i) { const n = e[s] || {}; for (const [o, r] of Object.entries(n)) o.includes(i) && x(t, e, s, r.callable, r.delegationSelector) } function j(t) { return t = t.replace(E, ""), S[t] || t } const F = { on(t, e, s, i) { P(t, e, s, i, !1) }, one(t, e, s, i) { P(t, e, s, i, !0) }, off(t, e, s, i) { if ("string" != typeof e || !t) return; const [n, o, r] = N(e, s, i), a = r !== e, l = I(t), c = l[r] || {}, h = e.startsWith("."); if (void 0 === o) { if (h) for (const s of Object.keys(l)) M(t, l, s, e.slice(1)); for (const [s, i] of Object.entries(c)) { const n = s.replace(C, ""); a && !e.includes(n) || x(t, l, r, i.callable, i.delegationSelector) } } else { if (!Object.keys(c).length) return; x(t, l, r, o, n ? s : null) } }, trigger(t, e, s) { if ("string" != typeof e || !t) return null; const i = f(); let n = null, o = !0, r = !0, a = !1; e !== j(e) && i && (n = i.Event(e, s), i(t).trigger(n), o = !n.isPropagationStopped(), r = !n.isImmediatePropagationStopped(), a = n.isDefaultPrevented()); const l = $(new Event(e, { bubbles: o, cancelable: !0 }), s); return a && l.preventDefault(), r && t.dispatchEvent(l), l.defaultPrevented && n && n.preventDefault(), l } }; function $(t, e = {}) { for (const [s, i] of Object.entries(e)) try { t[s] = i } catch (e) { Object.defineProperty(t, s, { configurable: !0, get: () => i }) } return t } function z(t) { if ("true" === t) return !0; if ("false" === t) return !1; if (t === Number(t).toString()) return Number(t); if ("" === t || "null" === t) return null; if ("string" != typeof t) return t; try { return JSON.parse(decodeURIComponent(t)) } catch (e) { return t } } function H(t) { return t.replace(/[A-Z]/g, (t => `-${t.toLowerCase()}`)) } const B = { setDataAttribute(t, e, s) { t.setAttribute(`data-bs-${H(e)}`, s) }, removeDataAttribute(t, e) { t.removeAttribute(`data-bs-${H(e)}`) }, getDataAttributes(t) { if (!t) return {}; const e = {}, s = Object.keys(t.dataset).filter((t => t.startsWith("bs") && !t.startsWith("bsConfig"))); for (const i of s) { let s = i.replace(/^bs/, ""); s = s.charAt(0).toLowerCase() + s.slice(1, s.length), e[s] = z(t.dataset[i]) } return e }, getDataAttribute: (t, e) => z(t.getAttribute(`data-bs-${H(e)}`)) }; class q { static get Default() { return {} } static get DefaultType() { return {} } static get NAME() { throw new Error('You have to implement the static method "NAME", for each component!') } _getConfig(t) { return t = this._mergeConfigObj(t), t = this._configAfterMerge(t), this._typeCheckConfig(t), t } _configAfterMerge(t) { return t } _mergeConfigObj(t, e) { const s = l(e) ? B.getDataAttribute(e, "config") : {}; return { ...this.constructor.Default, ..."object" == typeof s ? s : {}
vendor: 4,329 bytes, line 19
19, ...l(e) ? B.getDataAttributes(e) : {}, ..."object" == typeof t ? t : {} } } _typeCheckConfig(t, e = this.constructor.DefaultType) { for (const [i, n] of Object.entries(e)) { const e = t[i], o = l(e) ? "element" : null == (s = e) ? `${s}` : Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(); if (!new RegExp(n).test(o)) throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${n}".`) } var s } } class W extends q { constructor(t, e) { super(), (t = c(t)) && (this._element = t, this._config = this._getConfig(e), n.set(this._element, this.constructor.DATA_KEY, this)) } dispose() { n.remove(this._element, this.constructor.DATA_KEY), F.off(this._element, this.constructor.EVENT_KEY); for (const t of Object.getOwnPropertyNames(this)) this[t] = null } _queueCallback(t, e, s = !0) { y(t, e, s) } _getConfig(t) { return t = this._mergeConfigObj(t, this._element), t = this._configAfterMerge(t), this._typeCheckConfig(t), t } static getInstance(t) { return n.get(c(t), this.DATA_KEY) } static getOrCreateInstance(t, e = {}) { return this.getInstance(t) || new this(t, "object" == typeof e ? e : null) } static get VERSION() { return "5.3.0-alpha2" } static get DATA_KEY() { return `bs.${this.NAME}` } static get EVENT_KEY() { return `.${this.DATA_KEY}` } static eventName(t) { return `${t}${this.EVENT_KEY}` } } const R = t => { let e = t.getAttribute("data-bs-target"); if (!e || "#" === e) { let s = t.getAttribute("href"); if (!s || !s.includes("#") && !s.startsWith(".")) return null; s.includes("#") && !s.startsWith("#") && (s = `#${s.split("#")[1]}`), e = s && "#" !== s ? s.trim() : null } return r(e) }, V = { find: (t, e = document.documentElement) => [].concat(...Element.prototype.querySelectorAll.call(e, t)), findOne: (t, e = document.documentElement) => Element.prototype.querySelector.call(e, t), children: (t, e) => [].concat(...t.children).filter((t => t.matches(e))), parents(t, e) { const s = []; let i = t.parentNode.closest(e); for (; i;)s.push(i), i = i.parentNode.closest(e); return s }, prev(t, e) { let s = t.previousElementSibling; for (; s;) { if (s.matches(e)) return [s]; s = s.previousElementSibling } return [] }, next(t, e) { let s = t.nextElementSibling; for (; s;) { if (s.matches(e)) return [s]; s = s.nextElementSibling } return [] }, focusableChildren(t) { const e = ["a", "button", "input", "textarea", "select", "details", "[tabindex]", '[contenteditable="true"]'].map((t => `${t}:not([tabindex^="-"])`)).join(","); return this.find(e, t).filter((t => !d(t) && h(t))) }, getSelectorFromElement(t) { const e = R(t); return e && V.findOne(e) ? e : null }, getElementFromSelector(t) { const e = R(t); return e ? V.findOne(e) : null }, getMultipleElementsFromSelector(t) { const e = R(t); return e ? V.find(e) : [] } }, K = (t, e = "hide") => { const s = `click.dismiss${t.EVENT_KEY}`, i = t.NAME; F.on(document, s, `[data-bs-dismiss="${i}"]`, (function (s) { if (["A", "AREA"].includes(this.tagName) && s.preventDefault(), d(this)) return; const n = V.getElementFromSelector(this) || this.closest(`.${i}`); t.getOrCreateInstance(n)[e]() })) }; class Q extends W { static get NAME() { return "alert" } close() { if (F.trigger(this._element, "close.bs.alert").defaultPrevented) return; this._element.classList.remove("show"); const t = this._element.classList.contains("fade"); this._queueCallback((() => this._destroyElement()), this._element, t) } _destroyElement() { this._element.remove(), F.trigger(this._element, "closed.bs.alert"), this.dispose() } static jQueryInterface(t) { return this.each((function () { const e = Q.getOrCreateInstance(this); if ("string" == typeof t) { if (void 0 === e[t] || t.startsWith("_") || "constructor" === t) throw new TypeError(`No method named "${t}"`); e[t](this) } })) } } K(Q, "close"), b(Q); const X = '[data-bs-toggle="button"]'; class Y extends W { static get NAME() { return "button" } toggle() { this._element.setAttribute("aria-pressed", this._element.classList.toggle("active")) } static jQueryInterface(t) { return this.each((function () { const e = Y.getOrCreateInstance(this); "toggle" === t && e[t]() })) } } F.on(document, "click.bs.button.data-api", X, (t => { t.preventDefault(); const e = t.target.closest(X); Y.getOrCreateInstance(e).toggle() })), b(Y);
vendor: 6,814 bytes, line 19
19 const U = { endCallback: null, leftCallback: null, rightCallback: null }, G = { endCallback: "(function|null)", leftCallback: "(function|null)", rightCallback: "(function|null)" }; class J extends q { constructor(t, e) { super(), this._element = t, t && J.isSupported() && (this._config = this._getConfig(e), this._deltaX = 0, this._supportPointerEvents = Boolean(window.PointerEvent), this._initEvents()) } static get Default() { return U } static get DefaultType() { return G } static get NAME() { return "swipe" } dispose() { F.off(this._element, ".bs.swipe") } _start(t) { this._supportPointerEvents ? this._eventIsPointerPenTouch(t) && (this._deltaX = t.clientX) : this._deltaX = t.touches[0].clientX } _end(t) { this._eventIsPointerPenTouch(t) && (this._deltaX = t.clientX - this._deltaX), this._handleSwipe(), v(this._config.endCallback) } _move(t) { this._deltaX = t.touches && t.touches.length > 1 ? 0 : t.touches[0].clientX - this._deltaX } _handleSwipe() { const t = Math.abs(this._deltaX); if (t <= 40) return; const e = t / this._deltaX; this._deltaX = 0, e && v(e > 0 ? this._config.rightCallback : this._config.leftCallback) } _initEvents() { this._supportPointerEvents ? (F.on(this._element, "pointerdown.bs.swipe", (t => this._start(t))), F.on(this._element, "pointerup.bs.swipe", (t => this._end(t))), this._element.classList.add("pointer-event")) : (F.on(this._element, "touchstart.bs.swipe", (t => this._start(t))), F.on(this._element, "touchmove.bs.swipe", (t => this._move(t))), F.on(this._element, "touchend.bs.swipe", (t => this._end(t)))) } _eventIsPointerPenTouch(t) { return this._supportPointerEvents && ("pen" === t.pointerType || "touch" === t.pointerType) } static isSupported() { return "ontouchstart" in document.documentElement || navigator.maxTouchPoints > 0 } } const Z = "next", tt = "prev", et = "left", st = "right", it = "slid.bs.carousel", nt = "carousel", ot = "active", rt = { ArrowLeft: st, ArrowRight: et }, at = { interval: 5e3, keyboard: !0, pause: "hover", ride: !1, touch: !0, wrap: !0 }, lt = { interval: "(number|boolean)", keyboard: "boolean", pause: "(string|boolean)", ride: "(boolean|string)", touch: "boolean", wrap: "boolean" }; class ct extends W { constructor(t, e) { super(t, e), this._interval = null, this._activeElement = null, this._isSliding = !1, this.touchTimeout = null, this._swipeHelper = null, this._indicatorsElement = V.findOne(".carousel-indicators", this._element), this._addEventListeners(), this._config.ride === nt && this.cycle() } static get Default() { return at } static get DefaultType() { return lt } static get NAME() { return "carousel" } next() { this._slide(Z) } nextWhenVisible() { !document.hidden && h(this._element) && this.next() } prev() { this._slide(tt) } pause() { this._isSliding && a(this._element), this._clearInterval() } cycle() { this._clearInterval(), this._updateInterval(), this._interval = setInterval((() => this.nextWhenVisible()), this._config.interval) } _maybeEnableCycle() { this._config.ride && (this._isSliding ? F.one(this._element, it, (() => this.cycle())) : this.cycle()) } to(t) { const e = this._getItems(); if (t > e.length - 1 || t < 0) return; if (this._isSliding) return void F.one(this._element, it, (() => this.to(t))); const s = this._getItemIndex(this._getActive()); if (s === t) return; const i = t > s ? Z : tt; this._slide(i, e[t]) } dispose() { this._swipeHelper && this._swipeHelper.dispose(), super.dispose() } _configAfterMerge(t) { return t.defaultInterval = t.interval, t } _addEventListeners() { this._config.keyboard && F.on(this._element, "keydown.bs.carousel", (t => this._keydown(t))), "hover" === this._config.pause && (F.on(this._element, "mouseenter.bs.carousel", (() => this.pause())), F.on(this._element, "mouseleave.bs.carousel", (() => this._maybeEnableCycle()))), this._config.touch && J.isSupported() && this._addTouchEventListeners() } _addTouchEventListeners() { for (const t of V.find(".carousel-item img", this._element)) F.on(t, "dragstart.bs.carousel", (t => t.preventDefault())); const t = { leftCallback: () => this._slide(this._directionToOrder(et)), rightCallback: () => this._slide(this._directionToOrder(st)), endCallback: () => { "hover" === this._config.pause && (this.pause(), this.touchTimeout && clearTimeout(this.touchTimeout), this.touchTimeout = setTimeout((() => this._maybeEnableCycle()), 500 + this._config.interval)) } }; this._swipeHelper = new J(this._element, t) } _keydown(t) { if (/input|textarea/i.test(t.target.tagName)) return; const e = rt[t.key]; e && (t.preventDefault(), this._slide(this._directionToOrder(e))) } _getItemIndex(t) { return this._getItems().indexOf(t) } _setActiveIndicatorElement(t) { if (!this._indicatorsElement) return; const e = V.findOne(".active", this._indicatorsElement); e.classList.remove(ot), e.removeAttribute("aria-current"); const s = V.findOne(`[data-bs-slide-to="${t}"]`, this._indicatorsElement); s && (s.classList.add(ot), s.setAttribute("aria-current", "true")) } _updateInterval() { const t = this._activeElement || this._getActive(); if (!t) return; const e = Number.parseInt(t.getAttribute("data-bs-interval"), 10); this._config.interval = e || this._config.defaultInterval } _slide(t, e = null) { if (this._isSliding) return; const s = this._getActive(), i = t === Z, n = e || w(this._getItems(), s, i, this._config.wrap); if (n === s) return; const o = this._getItemIndex(n), r = e => F.trigger(this._element, e, { relatedTarget: n, direction: this._orderToDirection(t), from: this._getItemIndex(s), to: o }); if (r("slide.bs.carousel").defaultPrevented) return; if (!s || !n) return; const a = Boolean(this._interval); this.pause(), this._isSliding = !0, this._setActiveIndicatorElement(o), this._activeElement = n; const l = i ? "carousel-item-start" : "carousel-item-end", c = i ? "carousel-item-next" : "carousel-item-prev"; n.classList.add(c), g(n), s.classList.add(l), n.classList.add(l), this._queueCallback((() => { n.classList.remove(l, c), n.classList.add(ot), s.classList.remove(ot, c, l), this._isSliding = !1, r(it) }), s, this._isAnimated()), a && this.cycle() } _isAnimated() { return this._element.classList.contains("slide") } _getActive() { return V.findOne(".active.carousel-item", this._element) } _getItems() { return V.find(".carousel-item", this._element) } _clearInterval() { this._interval && (clearInterval(this._interval), this._interval = null) } _directionToOrder(t) { return p() ? t === et ? tt : Z : t === et ? Z : tt } _orderToDirection(t) { return p() ? t === tt ? et : st : t === tt ? st : et } static jQueryInterface(t) { return this.each((function () { const e = ct.getOrCreateInstance(this, t); if ("number" != typeof t) { if ("string" == typeof t) { if (void 0 === e[t] || t.startsWith("_") || "constructor" === t) throw new TypeError(`No method n
19amed "${t}"`); e[t]() } } else e.to(t) })) } } F.on(document, "click.bs.carousel.data-api", "[data-bs-slide], [data-bs-slide-to]", (function (t) { const e = V.getElementFromSelector(this); if (!e || !e.classList.contains(nt)) return; t.preventDefault(); const s = ct.getOrCreateInstance(e), i = this.getAttribute("data-bs-slide-to"); return i ? (s.to(i), void s._maybeEnableCycle()) : "next" === B.getDataAttribute(this, "slide") ? (s.next(), void s._maybeEnableCycle()) : (s.prev(), void s._maybeEnableCycle()) })), F.on(window, "load.bs.carousel.data-api", (() => { const t = V.find('[data-bs-ride="carousel"]'); for (const e of t) ct.getOrCreateInstance(e) })), b(ct); const ht = "show", dt = "collapse", ut = "collapsing", _t = '[data-bs-toggle="collapse"]', gt = { parent: null, toggle: !0 }, ft = { parent: "(null|element)", toggle: "boolean" }; class mt extends W { constructor(t, e) { super(t, e), this._isTransitioning = !1, this._triggerArray = []; const s = V.find(_t); for (const t of s) { const e = V.getSelectorFromElement(t), s = V.find(e).filter((t => t === this._element)); null !== e && s.length && this._triggerArray.push(t) } this._initializeChildren(), this._config.parent || this._addAriaAndCollapsedClass(this._triggerArray, this._isShown()), this._config.toggle && this.toggle() } static get Default() { return gt } static get DefaultType() { return ft } static get NAME() { return "collapse" } toggle() { this._isShown() ? this.hide() : this.show() } show() { if (this._isTransitioning || this._isShown()) return; let t = []; if (this._config.parent && (t = this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t => t !== this._element)).map((t => mt.getOrCreateInstance(t, { toggle: !1 })))), t.length && t[0]._isTransitioning) return; if (F.trigger(this._element, "show.bs.collapse").defaultPrevented) return; for (const e of t) e.hide(); const e = this._getDimension(); this._element.classList.remove(dt), this._element.classList.add(ut), this._element.style[e] = 0, this._addAriaAndCollapsedClass(this._triggerArray, !0), this._isTransitioning = !0; const s = `scroll${e[0].toUpperCase() + e.slice(1)}`; this._queueCallback((() => { this._isTransitioning = !1, this._element.classList.remove(ut), this._element.classList.add(dt, ht), this._element.style[e] = "", F.trigger(this._element, "shown.bs.collapse") }), this._element, !0), this._element.style[e] = `${this._element[s]}px` } hide() { if (this._isTransitioning || !this._isShown()) return; if (F.trigger(this._element, "hide.bs.collapse").defaultPrevented) return; const t = this._getDimension(); this._element.style[t] = `${this._element.getBoundingClientRect()[t]}px`, g(this._element), this._element.classList.add(ut), this._element.classList.remove(dt, ht); for (const t of this._triggerArray) { const e = V.getElementFromSelector(t); e && !this._isShown(e) && this._addAriaAndCollapsedClass([t], !1) } this._isTransitioning = !0, this._element.style[t] = "", this._queueCallback((() => { this._isTransitioning = !1, this._element.classList.remove(ut), this._element.classList.add(dt), F.trigger(this._element, "hidden.bs.collapse") }), this._element, !0) } _isShown(t = this._element) { return t.classList.contains(ht) } _configAfterMerge(t) { return t.toggle = Boolean(t.toggle), t.parent = c(t.parent), t } _getDimension() { return this._element.classList.contains("collapse-horizontal") ? "width" : "height" } _initializeChildren() { if (!this._config.parent) return; const t = this._getFirstLevelChildren(_t); for (const e of t) { const t = V.getElementFromSelector(e); t && this._addAriaAndCollapsedClass([e], this._isShown(t)) } } _getFirstLevelChildren(t) { const e = V.find(":scope .collapse .collapse", this._config.parent); return V.find(t, this._config.parent).filter((t => !e.includes(t))) } _addAriaAndCollapsedClass(t, e) { if (t.length) for (const s of t) s.classList.toggle("collapsed", !e), s.setAttribute("aria-expanded", e) } static jQueryInterface(t) { const e = {}; return "string" == typeof t && /show|hide/.test(t) && (e.toggle = !1), this.each((function () { const s = mt.getOrCreateInstance(this, e); if ("string" == typeof t) { if (void 0 === s[t]) throw new TypeError(`No method n
19amed "${t}"`); s[t]() } })) } } F.on(document, "click.bs.collapse.data-api", _t, (function (t) { ("A" === t.target.tagName || t.delegateTarget && "A" === t.delegateTarget.tagName) && t.preventDefault(); for (const t of V.getMultipleElementsFromSelector(this)) mt.getOrCreateInstance(t, { toggle: !1 }).toggle() })), b(mt); const pt = "dropdown", bt = "ArrowUp", vt = "ArrowDown", yt = "click.bs.dropdown.data-api", wt = "keydown.bs.dropdown.data-api", At = "show", Et = '[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)', Ct = `${Et}.show`, Tt = ".dropdown-menu", kt = p() ? "top-end" : "top-start", St = p() ? "top-start" : "top-end", Lt = p() ? "bottom-end" : "bottom-start", Ot = p() ? "bottom-start" : "bottom-end", It = p() ? "left-start" : "right-start", Dt = p() ? "right-start" : "left-start", Nt = { autoClose: !0, boundary: "clippingParents", display: "dynamic", offset: [0, 2], popperConfig: null, reference: "toggle" }, Pt = { autoClose: "(boolean|string)", boundary: "(string|element)", display: "string", offset: "(array|string|function)", popperConfig: "(null|object|function)", reference: "(string|element|object)" }; class xt extends W { constructor(t, e) { super(t, e), this._popper = null, this._parent = this._element.parentNode, this._menu = V.next(this._element, Tt)[0] || V.prev(this._element, Tt)[0] || V.findOne(Tt, this._parent), this._inNavbar = this._detectNavbar() } static get Default() { return Nt } static get DefaultType() { return Pt } static get NAME() { return pt } toggle() { return this._isShown() ? this.hide() : this.show() } show() { if (d(this._element) || this._isShown()) return; const t = { relatedTarget: this._element }; if (!F.trigger(this._element, "show.bs.dropdown", t).defaultPrevented) { if (this._createPopper(), "ontouchstart" in document.documentElement && !this._parent.closest(".
19navbar-nav")) for (const t of [].concat(...document.body.children)) F.on(t, "mouseover", _); this._element.focus(), this._element.setAttribute("aria-expanded", !0), this._menu.classList.add(At), this._element.classList.add(At), F.trigger(this._element, "shown.bs.dropdown", t) } } hide() { if (d(this._element) || !this._isShown()) return; const t = { relatedTarget: this._element }; this._completeHide(t) } dispose() { this._popper && this._popper.destroy(), super.dispose() } update() { this._inNavbar = this._detectNavbar(), this._popper && this._popper.update() } _completeHide(t) { if (!F.trigger(this._element, "hide.bs.dropdown", t).defaultPrevented) { if ("ontouchstart" in document.documentElement) for (const t of [].concat(...document.body.children)) F.off(t, "mouseover", _); this._popper && this._popper.destroy(), this._menu.classList.remove(At), this._element.classList.remove(At), this._element.setAttribute("aria-expanded", "false"), B.removeDataAttribute(this._menu, "popper"), F.trigger(this._element, "hidden.bs.dropdown", t) } } _getConfig(t) { if ("object" == typeof (t = super._getConfig(t)).reference && !l(t.reference) && "function" != typeof t.reference.getBoundingClientRect) throw new TypeError(`${pt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`); return t } _createPopper() { if (void 0 === s) throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)"); let t = this._element; "parent" === this._config.reference ? t = this._parent : l(this._config.reference) ? t = c(this._config.reference) : "object" == typeof this._config.reference && (t = this._config.reference); const e = this._getPopperConfig(); this._popper = s.createPopper(t, this._menu, e) } _isShown() { return this._menu.classList.contains(At) } _getPlacement() { const t = this._parent; if (t.classList.contains("dropend")) return It; if (t.classList.contains("dropstart")) return Dt; if (t.classList.contains("dropup-center")) return "top"; if (t.classList.contains("dropdown-center")) return "bottom"; const e = "end" === getComputedStyle(this._menu).getPropertyValue("--bs-position").trim(); return t.classList.contains("dropup") ? e ? St : kt : e ? Ot : Lt }
vendor: 11,406 bytes, line 19
19 _detectNavbar() { return null !== this._element.closest(".navbar") } _getOffset() { const { offset: t } = this._config; return "string" == typeof t ? t.split(",").map((t => Number.parseInt(t, 10))) : "function" == typeof t ? e => t(e, this._element) : t } _getPopperConfig() { const t = { placement: this._getPlacement(), modifiers: [{ name: "preventOverflow", options: { boundary: this._config.boundary } }, { name: "offset", options: { offset: this._getOffset() } }] }; return (this._inNavbar || "static" === this._config.display) && (B.setDataAttribute(this._menu, "popper", "static"), t.modifiers = [{ name: "applyStyles", enabled: !1 }]), { ...t, ...v(this._config.popperConfig, [t]) } } _selectMenuItem({ key: t, target: e }) { const s = V.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)", this._menu).filter((t => h(t))); s.length && w(s, e, t === vt, !s.includes(e)).focus() } static jQueryInterface(t) { return this.each((function () { const e = xt.getOrCreateInstance(this, t); if ("string" == typeof t) { if (void 0 === e[t]) throw new TypeError(`No method named "${t}"`); e[t]() } })) } static clearMenus(t) { if (2 === t.button || "keyup" === t.type && "Tab" !== t.key) return; const e = V.find(Ct); for (const s of e) { const e = xt.getInstance(s); if (!e || !1 === e._config.autoClose) continue; const i = t.composedPath(), n = i.includes(e._menu); if (i.includes(e._element) || "inside" === e._config.autoClose && !n || "outside" === e._config.autoClose && n) continue; if (e._menu.contains(t.target) && ("keyup" === t.type && "Tab" === t.key || /input|select|option|textarea|form/i.test(t.target.tagName))) continue; const o = { relatedTarget: e._element }; "click" === t.type && (o.clickEvent = t), e._completeHide(o) } } static dataApiKeydownHandler(t) { const e = /input|textarea/i.test(t.target.tagName), s = "Escape" === t.key, i = [bt, vt].includes(t.key); if (!i && !s) return; if (e && !s) return; t.preventDefault(); const n = this.matches(Et) ? this : V.prev(this, Et)[0] || V.next(this, Et)[0] || V.findOne(Et, t.delegateTarget.parentNode), o = xt.getOrCreateInstance(n); if (i) return t.stopPropagation(), o.show(), void o._selectMenuItem(t); o._isShown() && (t.stopPropagation(), o.hide(), n.focus()) } } F.on(document, wt, Et, xt.dataApiKeydownHandler), F.on(document, wt, Tt, xt.dataApiKeydownHandler), F.on(document, yt, xt.clearMenus), F.on(document, "keyup.bs.dropdown.data-api", xt.clearMenus), F.on(document, yt, Et, (function (t) { t.preventDefault(), xt.getOrCreateInstance(this).toggle() })), b(xt); const Mt = "show", jt = "mousedown.bs.backdrop", Ft = { className: "modal-backdrop", clickCallback: null, isAnimated: !1, isVisible: !0, rootElement: "body" }, $t = { className: "string", clickCallback: "(function|null)", isAnimated: "boolean", isVisible: "boolean", rootElement: "(element|string)" }; class zt extends q { constructor(t) { super(), this._config = this._getConfig(t), this._isAppended = !1, this._element = null } static get Default() { return Ft } static get DefaultType() { return $t } static get NAME() { return "backdrop" } show(t) { if (!this._config.isVisible) return void v(t); this._append(); const e = this._getElement(); this._config.isAnimated && g(e), e.classList.add(Mt), this._emulateAnimation((() => { v(t) })) } hide(t) { this._config.isVisible ? (this._getElement().classList.remove(Mt), this._emulateAnimation((() => { this.dispose(), v(t) }))) : v(t) } dispose() { this._isAppended && (F.off(this._element, jt), this._element.remove(), this._isAppended = !1) } _getElement() { if (!this._element) { const t = document.createElement("div"); t.className = this._config.className, this._config.isAnimated && t.classList.add("fade"), this._element = t } return this._element } _configAfterMerge(t) { return t.rootElement = c(t.rootElement), t } _append() { if (this._isAppended) return; const t = this._getElement(); this._config.rootElement.append(t), F.on(t, jt, (() => { v(this._config.clickCallback) })), this._isAppended = !0 } _emulateAnimation(t) { y(t, this._getElement(), this._config.isAnimated) } } const Ht = ".bs.focustrap", Bt = "backward", qt = { autofocus: !0, trapElement: null }, Wt = { autofocus: "boolean", trapElement: "element" }; class Rt extends q { constructor(t) { super(), this._config = this._getConfig(t), this._isActive = !1, this._lastTabNavDirection = null } static get Default() { return qt } static get DefaultType() { return Wt } static get NAME() { return "focustrap" } activate() { this._isActive || (this._config.autofocus && this._config.trapElement.focus(), F.off(document, Ht), F.on(document, "focusin.bs.focustrap", (t => this._handleFocusin(t))), F.on(document, "keydown.tab.bs.focustrap", (t => this._handleKeydown(t))), this._isActive = !0) } deactivate() { this._isActive && (this._isActive = !1, F.off(document, Ht)) } _handleFocusin(t) { const { trapElement: e } = this._config; if (t.target === document || t.target === e || e.contains(t.target)) return; const s = V.focusableChildren(e); 0 === s.length ? e.focus() : this._lastTabNavDirection === Bt ? s[s.length - 1].focus() : s[0].focus() } _handleKeydown(t) { "Tab" === t.key && (this._lastTabNavDirection = t.shiftKey ? Bt : "forward") } } const Vt = ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", Kt = ".sticky-top", Qt = "padding-right", Xt = "margin-right"; class Yt { constructor() { this._element = document.body } getWidth() { const t = document.documentElement.clientWidth; return Math.abs(window.innerWidth - t) } hide() { const t = this.getWidth(); this._disableOverFlow(), this._setElementAttributes(this._element, Qt, (e => e + t)), this._setElementAttributes(Vt, Qt, (e => e + t)), this._setElementAttributes(Kt, Xt, (e => e - t)) } reset() { this._resetElementAttributes(this._element, "overflow"), this._resetElementAttributes(this._element, Qt), this._resetElementAttributes(Vt, Qt), this._resetElementAttributes(Kt, Xt) } isOverflowing() { return this.getWidth() > 0 } _disableOverFlow() { this._saveInitialAttribute(this._element, "overflow"), this._element.style.overflow = "hidden" } _setElementAttributes(t, e, s) { const i = this.getWidth(); this._applyManipulationCallback(t, (t => { if (t !== this._element && window.innerWidth > t.clientWidth + i) return; this._saveInitialAttribute(t, e); const n = window.getComputedStyle(t).getPropertyValue(e); t.style.setProperty(e, `${s(Number.parseFloat(n))}px`) })) } _saveInitialAttribute(t, e) { const s = t.style.getPropertyValue(e); s && B.setDataAttribute(t, e, s) } _resetElementAttributes(t, e) { this._applyManipulationCallback(t, (t => { const s = B.getDataAttribute(t, e); null !== s ? (B.removeDataAttribute(t, e), t.style.setProperty(e, s)) : t.style.removeProperty(e) })) } _applyManipulationCallback(t, e) { if (l(t)) e(t); else for (const s of V.find(t, this._element)) e(s) } } const Ut = ".bs.modal", Gt = "hidden.bs.modal", Jt = "show.bs.modal", Zt = "modal-open", te = "show", ee = "modal-static", se = { backdrop: !0, focus: !0, keyboard: !0 }, ie = { backdrop: "(boolean|string)", focus: "boolean", keyboard: "boolean" }; class ne extends W { constructor(t, e) { super(t, e), this._dialog = V.findOne(".modal-dialog", this._element), this._backdrop = this._initializeBackDrop(), this._focustrap = this._initializeFocusTrap(), this._isShown = !1, this._isTransitioning = !1, this._scrollBar = new Yt, this._addEventListeners() } static get Default() { return se } static get DefaultType() { return ie } static get NAME() { return "modal" } toggle(t) { return this._isShown ? this.hide() : this.show(t) } show(t) { this._isShown || this._isTransitioning || F.trigger(this._element, Jt, { relatedTarget: t }).defaultPrevented || (this._isShown = !0, this._isTransitioning = !0, this._scrollBar.hide(), document.body.classList.add(Zt), this._adjustDialog(), this._backdrop.show((() => this._showElement(t)))) } hide() { this._isShown && !this._isTransitioning && (F.trigger(this._element, "hide.bs.modal").defaultPrevented || (this._isShown = !1, this._isTransitioning = !0, this._focustrap.deactivate(), this._element.classList.remove(te), this._queueCallback((() => this._hideModal()), this._element, this._isAnimated()))) } dispose() { F.off(window, Ut), F.off(this._dialog, Ut), this._backdrop.dispose(), this._focustrap.deactivate(), super.dispose() } handleUpdate() { this._adjustDialog() } _initializeBackDrop() { return new zt({ isVisible: Boolean(this._config.backdrop), isAnimated: this._isAnimated() }) } _initializeFocusTrap() { return new Rt({ trapElement: this._element }) } _showElement(t) { document.body.contains(this._element) || document.body.append(this._element), this._element.style.display = "block", this._element.removeAttribute("aria-hidden"), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.scrollTop = 0; const e = V.findOne(".modal-body", this._dialog); e && (e.scrollTop = 0), g(this._element), this._element.classList.add(te), this._queueCallback((() => { this._config.focus && this._focustrap.activate(), this._isTransitioning = !1, F.trigger(this._element, "shown.bs.modal", { relatedTarget: t }) }), this._dialog, this._isAnimated()) } _addEventListeners() { F.on(this._element, "keydown.dismiss.bs.modal", (t => { "Escape" === t.key && (this._config.keyboard ? this.hide() : this._triggerBackdropTransition()) })), F.on(window, "resize.bs.modal", (() => { this._isShown && !this._isTransitioning && this._adjustDialog() })), F.on(this._element, "mousedown.dismiss.bs.modal", (t => { F.one(this._element, "click.dismiss.bs.modal", (e => { this._element === t.target && this._element === e.target && ("static" !== this._config.backdrop ? this._config.backdrop && this.hide() : this._triggerBackdropTransition()) })) })) } _hideModal() { this._element.style.display = "none", this._element.setAttribute("aria-hidden", !0), this._element.removeAttribute("aria-modal"), this._element.removeAttribute("role"), this._isTransitioning = !1, this._backdrop.hide((() => { document.body.classList.remove(Zt), this._resetAdjustments(), this._scrollBar.reset(), F.trigger(this._element, Gt) })) } _isAnimated() { return this._element.classList.contains("fade") } _triggerBackdropTransition() { if (F.trigger(this._element, "hidePrevented.bs.modal").defaultPrevented) return; const t = this._element.scrollHeight > document.documentElement.clientHeight, e = this._element.style.overflowY; "hidden" === e || this._element.classList.contains(ee) || (t || (this._element.style.overflowY = "hidden"), this._element.classList.add(ee), this._queueCallback((() => { this._element.classList.remove(ee), this._queueCallback((() => { this._element.style.overflowY = e }), this._dialog) }), this._dialog), this._element.focus()) } _adjustDialog() { const t = this._element.scrollHeight > document.documentElement.clientHeight, e = this._scrollBar.getWidth(), s = e > 0; if (s && !t) { const t = p() ? "paddingLeft" : "paddingRight"; this._element.style[t] = `${e}px` } if (!s && t) { const t = p() ? "paddingRight" : "paddingLeft"; this._element.style[t] = `${e}px` } } _resetAdjustments() { this._element.style.paddingLeft = "", this._element.style.paddingRight = "" } static jQueryInterface(t, e) { return this.each((function () { const s = ne.getOrCreateInstance(this, t); if ("string" == typeof t) { if (void 0 === s[t]) throw new TypeError(`No method n
19amed "${t}"`); s[t](e) } })) } } F.on(document, "click.bs.modal.data-api", '[data-bs-toggle="modal"]', (function (t) { const e = V.getElementFromSelector(this);["A", "AREA"].includes(this.tagName) && t.preventDefault(), F.one(e, Jt, (t => { t.defaultPrevented || F.one(e, Gt, (() => { h(this) && this.focus() })) })); const s = V.findOne(".modal.show"); s && ne.getInstance(s).hide(), ne.getOrCreateInstance(e).toggle(this) })), K(ne), b(ne); const oe = "show", re = "showing", ae = "hiding", le = ".offcanvas.show", ce = "hidePrevented.bs.offcanvas", he = "hidden.bs.offcanvas", de = { backdrop: !0, keyboard: !0, scroll: !1 }, ue = { backdrop: "(boolean|string)", keyboard: "boolean", scroll: "boolean" }; class _e extends W { constructor(t, e) { super(t, e), this._isShown = !1, this._backdrop = this._initializeBackDrop(), this._focustrap = this._initializeFocusTrap(), this._addEventListeners() } static get Default() { return de } static get DefaultType() { return ue } static get NAME() { return "offcanvas" } toggle(t) { return this._isShown ? this.hide() : this.show(t) } show(t) { this._isShown || F.trigger(this._element, "show.bs.offcanvas", { relatedTarget: t }).defaultPrevented || (this._isShown = !0, this._backdrop.show(), this._config.scroll || (new Yt).hide(), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.classList.add(re), this._queueCallback((() => { this._config.scroll && !this._config.backdrop || this._focustrap.activate(), this._element.classList.add(oe), this._element.classList.remove(re), F.trigger(this._element, "shown.bs.offcanvas", { relatedTarget: t }) }), this._element, !0)) } hide() { this._isShown && (F.trigger(this._element, "hide.bs.offcanvas").defaultPrevented || (this._focustrap.deactivate(), this._element.blur(), this._isShown = !1, this._element.classList.add(ae), this._backdrop.hide(), this._queueCallback((() => { this._element.classList.remove(oe, ae), this._element.removeAttribute("aria-modal"), this._element.removeAttribute("role"), this._config.scroll || (new Yt).reset(), F.trigger(this._element, he) }), this._element, !0))) } dispose() { this._backdrop.dispose(), this._focustrap.deactivate(), super.dispose() } _initializeBackDrop() { const t = Boolean(this._config.backdrop); return new zt({ className: "offcanvas-backdrop", isVisible: t, isAnimated: !0, rootElement: this._element.parentNode, clickCallback: t ? () => { "static" !== this._config.backdrop ? this.hide() : F.trigger(this._element, ce) } : null }) } _initializeFocusTrap() { return new Rt({ trapElement: this._element }) } _addEventListeners() { F.on(this._element, "keydown.dismiss.bs.offcanvas", (t => { "Escape" === t.key && (this._config.keyboard ? this.hide() : F.trigger(this._element, ce)) })) } static jQueryInterface(t) { return this.each((function () { const e = _e.getOrCreateInstance(this, t); if ("string" == typeof t) { if (void 0 === e[t] || t.startsWith("_") || "constructor" === t) throw new TypeError(`No method named "${t}"`); e[t](this) } })) } } F.on(document, "click.bs.offcanvas.data-api", '[data-bs-toggle="offcanvas"]', (function (t) { const e = V.getElementFromSelector(this); if (["A", "AREA"].includes(this.tagName) && t.preventDefault(), d(this)) return; F.one(e, he, (() => { h(this) && this.focus() })); const s = V.findOne(le); s && s !== e && _e.getInstance(s).hide(), _e.getOrCreateInstance(e).toggle(this) })), F.on(window, "load.bs.offcanvas.data-api", (() => { for (const t of V.find(le)) _e.getOrCreateInstance(t).show() })), F.on(window, "resize.bs.offcanvas", (() => { for (const t of V.find("[aria-modal][class*=show][class*=offcanvas-]")) "fixed" !== getComputedStyle(t).position && _e.getOrCreateInstance(t).hide() })), K(_e), b(_e); const ge = new Set(["background", "cite", "href", "itemtype", "longdesc", "poster", "src", "xlink:href"]), fe = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i, me = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i, pe = (t, e) => { const s = t.nodeName.toLowerCase();
vendor: 4,793 bytes, line 19
19 return e.includes(s) ? !ge.has(s) || Boolean(fe.test(t.nodeValue) || me.test(t.nodeValue)) : e.filter((t => t instanceof RegExp)).some((t => t.test(s))) }, be = { "*": ["class", "dir", "id", "lang", "role", /^aria-[\w-]*$/i], a: ["target", "href", "title", "rel"], area: [], b: [], br: [], col: [], code: [], div: [], em: [], hr: [], h1: [], h2: [], h3: [], h4: [], h5: [], h6: [], i: [], img: ["src", "srcset", "alt", "title", "width", "height"], li: [], ol: [], p: [], pre: [], s: [], small: [], span: [], sub: [], sup: [], strong: [], u: [], ul: [] }, ve = { allowList: be, content: {}, extraClass: "", html: !1, sanitize: !0, sanitizeFn: null, template: "<div></div>" }, ye = { allowList: "object", content: "object", extraClass: "(string|function)", html: "boolean", sanitize: "boolean", sanitizeFn: "(null|function)", template: "string" }, we = { entry: "(string|element|function|null)", selector: "(string|element)" }; class Ae extends q { constructor(t) { super(), this._config = this._getConfig(t) } static get Default() { return ve } static get DefaultType() { return ye } static get NAME() { return "TemplateFactory" } getContent() { return Object.values(this._config.content).map((t => this._resolvePossibleFunction(t))).filter(Boolean) } hasContent() { return this.getContent().length > 0 } changeContent(t) { return this._checkContent(t), this._config.content = { ...this._config.content, ...t }, this } toHtml() { const t = document.createElement("div"); t.innerHTML = this._maybeSanitize(this._config.template); for (const [e, s] of Object.entries(this._config.content)) this._setContent(t, s, e); const e = t.children[0], s = this._resolvePossibleFunction(this._config.extraClass); return s && e.classList.add(...s.split(" ")), e } _typeCheckConfig(t) { super._typeCheckConfig(t), this._checkContent(t.content) } _checkContent(t) { for (const [e, s] of Object.entries(t)) super._typeCheckConfig({ selector: e, entry: s }, we) } _setContent(t, e, s) { const i = V.findOne(s, t); i && ((e = this._resolvePossibleFunction(e)) ? l(e) ? this._putElementInTemplate(c(e), i) : this._config.html ? i.innerHTML = this._maybeSanitize(e) : i.textContent = e : i.remove()) } _maybeSanitize(t) { return this._config.sanitize ? function (t, e, s) { if (!t.length) return t; if (s && "function" == typeof s) return s(t); const i = (new window.DOMParser).parseFromString(t, "text/html"), n = [].concat(...i.body.querySelectorAll("*")); for (const t of n) { const s = t.nodeName.toLowerCase(); if (!Object.keys(e).includes(s)) { t.remove(); continue } const i = [].concat(...t.attributes), n = [].concat(e["*"] || [], e[s] || []); for (const e of i) pe(e, n) || t.removeAttribute(e.nodeName) } return i.body.innerHTML }(t, this._config.allowList, this._config.sanitizeFn) : t } _resolvePossibleFunction(t) { return v(t, [this]) } _putElementInTemplate(t, e) { if (this._config.html) return e.innerHTML = "", void e.append(t); e.textContent = t.textContent } } const Ee = new Set(["sanitize", "allowList", "sanitizeFn"]), Ce = "fade", Te = "show", ke = ".modal", Se = "hide.bs.modal", Le = "hover", Oe = "focus", Ie = { AUTO: "auto", TOP: "top", RIGHT: p() ? "left" : "right", BOTTOM: "bottom", LEFT: p() ? "right" : "left" }, De = { allowList: be, animation: !0, boundary: "clippingParents", container: !1, customClass: "", delay: 0, fallbackPlacements: ["top", "right", "bottom", "left"], html: !1, offset: [0, 6], placement: "top", popperConfig: null, sanitize: !0, sanitizeFn: null, selector: !1, template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>', title: "", trigger: "hover focus" }, Ne = { allowList: "object", animation: "boolean", boundary: "(string|element)", container: "(string|element|boolean)", customClass: "(string|function)", delay: "(number|object)", fallbackPlacements: "array", html: "boolean", offset: "(array|string|function)", placement: "(string|function)", popperConfig: "(null|object|function)", sanitize: "boolean", sanitizeFn: "(null|function)", selector: "(string|boolean)", template: "string", title: "(string|element|function)", trigger: "string" }; class Pe extends W { constructor(t, e) { if (void 0 === s) throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)"); super(t, e), this._isEnabled = !0, this._timeout = 0, this._isHovered = null, this._activeTrigger = {}, this._popper = null, this._templateFactory = null, this._newContent = null, this.tip = null, this._setListeners(), this._config.selector || this._fixTitle() } static get Default() { return De } static get DefaultType() { return Ne } static get NAME() { return "tooltip" } enable() { this._isEnabled = !0 } disable() { this._isEnabled = !1 } toggleEnabled() { this._isEnabled = !this._isEnabled }
vendor: 4,322 bytes, line 19
19 toggle() { this._isEnabled && (this._activeTrigger.click = !this._activeTrigger.click, this._isShown() ? this._leave() : this._enter()) } dispose() { clearTimeout(this._timeout), F.off(this._element.closest(ke), Se, this._hideModalHandler), this._element.getAttribute("data-bs-original-title") && this._element.setAttribute("title", this._element.getAttribute("data-bs-original-title")), this._disposePopper(), super.dispose() } show() { if ("none" === this._element.style.display) throw new Error("Please use show on visible elements"); if (!this._isWithContent() || !this._isEnabled) return; const t = F.trigger(this._element, this.constructor.eventName("show")), e = (u(this._element) || this._element.ownerDocument.documentElement).contains(this._element); if (t.defaultPrevented || !e) return; this._disposePopper(); const s = this._getTipElement(); this._element.setAttribute("aria-describedby", s.getAttribute("id")); const { container: i } = this._config; if (this._element.ownerDocument.documentElement.contains(this.tip) || (i.append(s), F.trigger(this._element, this.constructor.eventName("inserted"))), this._popper = this._createPopper(s), s.classList.add(Te), "ontouchstart" in document.documentElement) for (const t of [].concat(...document.body.children)) F.on(t, "mouseover", _); this._queueCallback((() => { F.trigger(this._element, this.constructor.eventName("shown")), !1 === this._isHovered && this._leave(), this._isHovered = !1 }), this.tip, this._isAnimated()) } hide() { if (this._isShown() && !F.trigger(this._element, this.constructor.eventName("hide")).defaultPrevented) { if (this._getTipElement().classList.remove(Te), "ontouchstart" in document.documentElement) for (const t of [].concat(...document.body.children)) F.off(t, "mouseover", _); this._activeTrigger.click = !1, this._activeTrigger.focus = !1, this._activeTrigger.hover = !1, this._isHovered = null, this._queueCallback((() => { this._isWithActiveTrigger() || (this._isHovered || this._disposePopper(), this._element.removeAttribute("aria-describedby"), F.trigger(this._element, this.constructor.eventName("hidden"))) }), this.tip, this._isAnimated()) } } update() { this._popper && this._popper.update() } _isWithContent() { return Boolean(this._getTitle()) } _getTipElement() { return this.tip || (this.tip = this._createTipElement(this._newContent || this._getContentForTemplate())), this.tip } _createTipElement(t) { const e = this._getTemplateFactory(t).toHtml(); if (!e) return null; e.classList.remove(Ce, Te), e.classList.add(`bs-${this.constructor.NAME}-auto`); const s = (t => { do { t += Math.floor(1e6 * Math.random()) } while (document.getElementById(t)); return t })(this.constructor.NAME).toString(); return e.setAttribute("id", s), this._isAnimated() && e.classList.add(Ce), e } setContent(t) { this._newContent = t, this._isShown() && (this._disposePopper(), this.show()) } _getTemplateFactory(t) { return this._templateFactory ? this._templateFactory.changeContent(t) : this._templateFactory = new Ae({ ...this._config, content: t, extraClass: this._resolvePossibleFunction(this._config.customClass) }), this._templateFactory } _getContentForTemplate() { return { ".tooltip-inner": this._getTitle() } } _getTitle() { return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute("data-bs-original-title") } _initializeOnDelegatedTarget(t) { return this.constructor.getOrCreateInstance(t.delegateTarget, this._getDelegateConfig()) } _isAnimated() { return this._config.animation || this.tip && this.tip.classList.contains(Ce) } _isShown() { return this.tip && this.tip.classList.contains(Te) } _createPopper(t) { const e = v(this._config.placement, [this, t, this._element]), i = Ie[e.toUpperCase()]; return s.createPopper(this._element, t, this._getPopperConfig(i)) } _getOffset() { const { offset: t } = this._config; return "string" == typeof t ? t.split(",").map((t => Number.parseInt(t, 10))) : "function" == typeof t ? e => t(e, this._element) : t } _resolvePossibleFunction(t) { return v(t, [this._element]) } _getPopperConfig(t) { const e = { placement: t, modifiers: [{ name: "flip", options: { fallbackPlacements: this._config.fallbackPlacements } }, { name: "offset", options: { offset: this._getOffset() } }, { name: "preventOverflow", options: { boundary: this._config.boun
vendor: 7,850 bytes, line 19
19dary } }, { name: "arrow", options: { element: `.${this.constructor.NAME}-arrow` } }, { name: "preSetPlacement", enabled: !0, phase: "beforeMain", fn: t => { this._getTipElement().setAttribute("data-popper-placement", t.state.placement) } }] }; return { ...e, ...v(this._config.popperConfig, [e]) } } _setListeners() { const t = this._config.trigger.split(" "); for (const e of t) if ("click" === e) F.on(this._element, this.constructor.eventName("click"), this._config.selector, (t => { this._initializeOnDelegatedTarget(t).toggle() })); else if ("manual" !== e) { const t = e === Le ? this.constructor.eventName("mouseenter") : this.constructor.eventName("focusin"), s = e === Le ? this.constructor.eventName("mouseleave") : this.constructor.eventName("focusout"); F.on(this._element, t, this._config.selector, (t => { const e = this._initializeOnDelegatedTarget(t); e._activeTrigger["focusin" === t.type ? Oe : Le] = !0, e._enter() })), F.on(this._element, s, this._config.selector, (t => { const e = this._initializeOnDelegatedTarget(t); e._activeTrigger["focusout" === t.type ? Oe : Le] = e._element.contains(t.relatedTarget), e._leave() })) } this._hideModalHandler = () => { this._element && this.hide() }, F.on(this._element.closest(ke), Se, this._hideModalHandler) } _fixTitle() { const t = this._element.getAttribute("title"); t && (this._element.getAttribute("aria-label") || this._element.textContent.trim() || this._element.setAttribute("aria-label", t), this._element.setAttribute("data-bs-original-title", t), this._element.removeAttribute("title")) } _enter() { this._isShown() || this._isHovered ? this._isHovered = !0 : (this._isHovered = !0, this._setTimeout((() => { this._isHovered && this.show() }), this._config.delay.show)) } _leave() { this._isWithActiveTrigger() || (this._isHovered = !1, this._setTimeout((() => { this._isHovered || this.hide() }), this._config.delay.hide)) } _setTimeout(t, e) { clearTimeout(this._timeout), this._timeout = setTimeout(t, e) } _isWithActiveTrigger() { return Object.values(this._activeTrigger).includes(!0) } _getConfig(t) { const e = B.getDataAttributes(this._element); for (const t of Object.keys(e)) Ee.has(t) && delete e[t]; return t = { ...e, ..."object" == typeof t && t ? t : {} }, t = this._mergeConfigObj(t), t = this._configAfterMerge(t), this._typeCheckConfig(t), t } _configAfterMerge(t) { return t.container = !1 === t.container ? document.body : c(t.container), "number" == typeof t.delay && (t.delay = { show: t.delay, hide: t.delay }), "number" == typeof t.title && (t.title = t.title.toString()), "number" == typeof t.content && (t.content = t.content.toString()), t } _getDelegateConfig() { const t = {}; for (const [e, s] of Object.entries(this._config)) this.constructor.Default[e] !== s && (t[e] = s); return t.selector = !1, t.trigger = "manual", t } _disposePopper() { this._popper && (this._popper.destroy(), this._popper = null), this.tip && (this.tip.remove(), this.tip = null) } static jQueryInterface(t) { return this.each((function () { const e = Pe.getOrCreateInstance(this, t); if ("string" == typeof t) { if (void 0 === e[t]) throw new TypeError(`No method named "${t}"`); e[t]() } })) } } b(Pe); const xe = { ...Pe.Default, content: "", offset: [0, 8], placement: "right", template: '<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>', trigger: "click" }, Me = { ...Pe.DefaultType, content: "(null|string|element|function)" }; class je extends Pe { static get Default() { return xe } static get DefaultType() { return Me } static get NAME() { return "popover" } _isWithContent() { return this._getTitle() || this._getContent() } _getContentForTemplate() { return { ".popover-header": this._getTitle(), ".popover-body": this._getContent() } } _getContent() { return this._resolvePossibleFunction(this._config.content) } static jQueryInterface(t) { return this.each((function () { const e = je.getOrCreateInstance(this, t); if ("string" == typeof t) { if (void 0 === e[t]) throw new TypeError(`No method named "${t}"`); e[t]() } })) } } b(je); const Fe = "click.bs.scrollspy", $e = "active", ze = "[href]", He = { offset: null, rootMargin: "0px 0px -25%", smoothScroll: !1, target: null, threshold: [.1, .5, 1] }, Be = { offset: "(number|null)", rootMargin: "string", smoothScroll: "boolean", target: "element", threshold: "array" }; class qe extends W { constructor(t, e) { super(t, e), this._targetLinks = new Map, this._observableSections = new Map, this._rootElement = "visible" === getComputedStyle(this._element).overflowY ? null : this._element, this._activeTarget = null, this._observer = null, this._previousScrollData = { visibleEntryTop: 0, parentScrollTop: 0 }, this.refresh() } static get Default() { return He } static get DefaultType() { return Be } static get NAME() { return "scrollspy" } refresh() { this._initializeTargetsAndObservables(), this._maybeEnableSmoothScroll(), this._observer ? this._observer.disconnect() : this._observer = this._getNewObserver(); for (const t of this._observableSections.values()) this._observer.observe(t) } dispose() { this._observer.disconnect(), super.dispose() } _configAfterMerge(t) { return t.target = c(t.target) || document.body, t.rootMargin = t.offset ? `${t.offset}px 0px -30%` : t.rootMargin, "string" == typeof t.threshold && (t.threshold = t.threshold.split(",").map((t => Number.parseFloat(t)))), t } _maybeEnableSmoothScroll() { this._config.smoothScroll && (F.off(this._config.target, Fe), F.on(this._config.target, Fe, ze, (t => { const e = this._observableSections.get(t.target.hash); if (e) { t.preventDefault(); const s = this._rootElement || window, i = e.offsetTop - this._element.offsetTop; if (s.scrollTo) return void s.scrollTo({ top: i, behavior: "smooth" }); s.scrollTop = i } }))) } _getNewObserver() { const t = { root: this._rootElement, threshold: this._config.threshold, rootMargin: this._config.rootMargin }; return new IntersectionObserver((t => this._observerCallback(t)), t) } _observerCallback(t) { const e = t => this._targetLinks.get(`#${t.target.id}`), s = t => { this._previousScrollData.visibleEntryTop = t.target.offsetTop, this._process(e(t)) }, i = (this._rootElement || document.documentElement).scrollTop, n = i >= this._previousScrollData.parentScrollTop; this._previousScrollData.parentScrollTop = i; for (const o of t) { if (!o.isIntersecting) { this._activeTarget = null, this._clearActiveClass(e(o)); continue } const t = o.target.offsetTop >= this._previousScrollData.visibleEntryTop; if (n && t) { if (s(o), !i) return } else n || t || s(o) } } _initializeTargetsAndObservables() { this._targetLinks = new Map, this._observableSections = new Map; const t = V.find(ze, this._config.target); for (const e of t) { if (!e.hash || d(e)) continue; const t = V.findOne(e.hash, this._element); h(t) && (this._targetLinks.set(e.hash, e), this._observableSections.set(e.hash, t)) } } _process(t) { this._activeTarget !== t && (this._clearActiveClass(this._config.target), this._activeTarget = t, t.classList.add($e), this._activateParents(t), F.trigger(this._element, "activate.bs.scrollspy", { relatedTarget: t })) } _activateParents(t) { if (t.classList.contains("dropdown-item")) V.findOne(".dropdown-toggle", t.closest(".dropdown")).classList.add($e); else for (const e of V.parents(t, ".nav, .list-group")) for (const t of V.prev(e, ".nav-link, .nav-item > .nav-link, .list-group-item")) t.classList.add($e) } _clearActiveClass(t) { t.classList.remove($e); const e = V.find("[href].active", t); for (const t of e) t.classList.remove($e) } static jQueryInterface(t) { return this.each((function () { const e = qe.getOrCreateInstance(this, t); if ("string" == typeof t) { if (void 0 === e[t] || t.startsWith("_") || "constructor" === t) throw new TypeError(`No method n
19amed "${t}"`); e[t]() } })) } } F.on(window, "load.bs.scrollspy.data-api", (() => { for (const t of V.find('[data-bs-spy="scroll"]')) qe.getOrCreateInstance(t) })), b(qe); const We = "ArrowLeft", Re = "ArrowRight", Ve = "ArrowUp", Ke = "ArrowDown", Qe = "active", Xe = "fade", Ye = "show", Ue = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]', Ge = `.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${Ue}`; class Je extends W { constructor(t) { super(t), this._parent = this._element.closest('.list-group, .nav, [role="tablist"]'), this._parent && (this._setInitialAttributes(this._parent, this._getChildren()), F.on(this._element, "keydown.bs.tab", (t => this._keydown(t)))) } static get NAME() { return "tab" } show() { const t = this._element; if (this._elemIsActive(t)) return; const e = this._getActiveElem(), s = e ? F.trigger(e, "hide.bs.tab", { relatedTarget: t }) : null; F.trigger(t, "show.bs.tab", { relatedTarget: e }).defaultPrevented || s && s.defaultPrevented || (this._deactivate(e, t), this._activate(t, e)) } _activate(t, e) { t && (t.classList.add(Qe), this._activate(V.getElementFromSelector(t)), this._queueCallback((() => { "tab" === t.getAttribute("role") ? (t.removeAttribute("tabindex"), t.setAttribute("aria-selected", !0), this._toggleDropDown(t, !0), F.trigger(t, "shown.bs.tab", { relatedTarget: e })) : t.classList.add(Ye) }), t, t.classList.contains(Xe))) } _deactivate(t, e) { t && (t.classList.remove(Qe), t.blur(), this._deactivate(V.getElementFromSelector(t)), this._queueCallback((() => { "tab" === t.getAttribute("role") ? (t.setAttribute("aria-selected", !1), t.setAttribute("tabindex", "-1"), this._toggleDropDown(t, !1), F.trigger(t, "hidden.bs.tab", { relatedTarget: e })) : t.classList.remove(Ye) }), t, t.classList.contains(Xe))) } _keydown(t) { if (![We, Re, Ve, Ke].includes(t.key)) return; t.stopPropagation(), t.preventDefault(); const e = [Re, Ke].includes(t.key), s = w(this._getChildren().filter((t => !d(t))), t.target, e, !0); s && (s.focus({ preventScroll: !0 }), Je.getOrCreateInstance(s).show()) } _getChildren() { return V.find(Ge, this._parent) } _getActiveElem() { return this._getChildren().find((t => this._elemIsActive(t))) || null } _setInitialAttributes(t, e) { this._setAttributeIfNotExists(t, "role", "tablist"); for (const t of e) this._setInitialAttributesOnChild(t) } _setInitialAttributesOnChild(t) { t = this._getInnerElement(t); const e = this._elemIsActive(t), s = this._getOuterElement(t); t.setAttribute("aria-selected", e), s !== t && this._setAttributeIfNotExists(s, "role", "presentation"), e || t.setAttribute("tabindex", "-1"), this._setAttributeIfNotExists(t, "role", "tab"), this._setInitialAttributesOnTargetPanel(t) } _setInitialAttributesOnTargetPanel(t) { const e = V.getElementFromSelector(t); e && (this._setAttributeIfNotExists(e, "role", "tabpanel"), t.id && this._setAttributeIfNotExists(e, "aria-labelledby", `${t.id}`)) } _toggleDropDown(t, e) { const s = this._getOuterElement(t); if (!s.classList.contains("dropdown")) return; const i = (t, i) => { const n = V.findOne(t, s); n && n.classList.toggle(i, e) }; i(".dropdown-toggle", Qe), i(".dropdown-menu", Ye), s.setAttribute("aria-expanded", e) } _setAttributeIfNotExists(t, e, s) { t.hasAttribute(e) || t.setAttribute(e, s) } _elemIsActive(t) { return t.classList.contains(Qe) } _getInnerElement(t) { return t.matches(Ge) ? t : V.findOne(Ge, t) } _getOuterElement(t) { return t.closest(".nav-item, .list-group-item") || t } static jQueryInterface(t) { return this.each((function () { const e = Je.getOrCreateInstance(this); if ("string" == typeof t) { if (void 0 === e[t] || t.startsWith("_") || "constructor" === t) throw new TypeError(`No method named "${t}"`); e[t]() } })) } } F.on(document, "click.bs.tab", Ue, (function (t) { ["A", "AREA"].includes(this.tagName) && t.preventDefault(), d(this) || Je.getOrCreateInstance(this).show() })), F.on(window, "load.bs.tab", (() => { for (const t of V.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]')) Je.getOrCreateInstance(t) })), b(Je); const Ze = "hide", ts = "show", es = "showing", ss = { animation: "boolean", auto
19hide: "boolean", delay: "number" }, is = { animation: !0, autohide: !0, delay: 5e3 }; class ns extends W { constructor(t, e) { super(t, e), this._timeout = null, this._hasMouseInteraction = !1, this._hasKeyboardInteraction = !1, this._setListeners() } static get Default() { return is } static get DefaultType() { return ss } static get NAME() { return "toast" } show() { F.trigger(this._element, "show.bs.toast").defaultPrevented || (this._clearTimeout(), this._config.animation && this._element.classList.add("fade"), this._element.classList.remove(Ze), g(this._element), this._element.classList.add(ts, es), this._queueCallback((() => { this._element.classList.remove(es), F.trigger(this._element, "shown.bs.toast"), this._maybeScheduleHide() }), this._element, this._config.animation)) } hide() { this.isShown() && (F.trigger(this._element, "hide.bs.toast").defaultPrevented || (this._element.classList.add(es), this._queueCallback((() => { this._element.classList.add(Ze), this._element.classList.remove(es, ts), F.trigger(this._element, "hidden.bs.toast") }), this._element, this._config.animation))) } dispose() { this._clearTimeout(), this.isShown() && this._element.classList.remove(ts), super.dispose() } isShown() { return this._element.classList.contains(ts) } _maybeScheduleHide() { this._config.autohide && (this._hasMouseInteraction || this._hasKeyboardInteraction || (this._timeout = setTimeout((() => { this.hide() }), this._config.delay))) } _onInteraction(t, e) { switch (t.type) { case "mouseover": case "mouseout": this._hasMouseInteraction = e; break; case "focusin": case "focusout": this._hasKeyboardInteraction = e }if (e) return void this._clearTimeout(); const s = t.relatedTarget; this._element === s || this._element.contains(s) || this._maybeScheduleHide() } _setListeners() { F.on(this._element, "mouseover.bs.toast", (t => this._onInteraction(t, !0))), F.on(this._element, "mouseout.bs.toast", (t => this._onInteraction(t, !1))), F.on(this._element, "focusin.bs.toast", (t => this._onInteraction(t, !0))), F.on(this._element, "focusout.bs.toast", (t => this._onInteraction(t, !1))) } _clearTimeout() { clearTimeout(this._timeout), this._timeout = null } static jQueryInterface(t) { return this.each((function () { const e = ns.getOrCreateInstance(this, t); if ("string" == typeof t) { if (void 0 === e[t]) throw new TypeError(`No method named "${t}"`); e[t](this) } })) } } return K(ns), b(ns), { Alert: Q, Button: Y, Carousel: ct, Collapse: mt, Dropdown: xt, Modal: ne, Offcanvas: _e, Popover: je, ScrollSpy: qe, Tab: Je, Toast: ns, Tooltip: Pe } }));
20/*============================================================================================================================*/
21/*!
22* jQuery Mousewheel 3.1.13
23 *
24 * Copyright 2015 jQuery Foundation and other contributors
25 * Released under the MIT license.
26 * http://jquery.org/license
27 */
28!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>
28=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
29/*============================================================================================================================*/
30/* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ */
31jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*(2*Math.PI)/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*(2*Math.PI)/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(2==(b/=e/2))return c+d;if(g||(g=e*(.3*1.5)),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return b<1?-.5*(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*(2*Math.PI)/g))+c:h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*(2*Math.PI)/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*(b*b*(((f*=1.525)+1)*b-f))+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c}
31,easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*(7.5625*b*b)+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return b<e/2?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}});
32/*============================================================================================================================*/
33/*  jQuery Nice Select - v1.0
34    https://github.com/hernansartorio/jquery-nice-select
35    Made by Hernán Sartorio  */
36!function(e){e.fn.niceSelect=function(t){function s(t){t.after(e("<div></div>").addClass("nice-select").addClass(t.attr("class")||"").addClass(t.attr("disabled")?"disabled":"").attr("tabindex",t.attr("disabled")?null:"0").html('<span class="current"></span><ul class="list"></ul>'));var s=t.next(),n=t.find("option"),i=t.find("option:selected");s.find(".current").html(i.data("display")||i.text()),n.each(function(t){var n=e(this),i=n.data("display");s.find("ul").append(e("<li></li>").attr("data-value",n.val()).attr("data-display",i||null).addClass("option"+(n.is(":selected")?" selected":"")+(n.is(":disabled")?" disabled":"")).html(n.text()))})}if("string"==typeof t)return"update"==t?this.each(function(){var t=e(this),n=e(this).next(".nice-select"),i=n.hasClass("open");n.length&&(n.remove(),s(t),i&&t.next().trigger("click"))}):"destroy"==t?(this.each(function(){var t=e(this),s=e(this).next(".nice-select");s.length&&(s.remove(),t.css("display",""))}),0==e(".nice-select").length&&e(document).off(".nice_select")):console.log('Method "'+t+'" does not exist.'),this;this.hide(),this.each(function(){var t=e(this);t.next().hasClass("nice-select")||s(t)}),e(document).off(".nice_select"),e(document).on("click.nice_select",".nice-select",function(t){var s=e(this);e(".nice-select").not(s).removeClass("open"),s.toggleClass("open"),s.hasClass("open")?(s.find(".option"),s.find(".focus").removeClass("focus"),s.find(".selected").addClass("focus")):s.focus()}),e(document).on("click.nice_select",function(t){0===e(t.target).closest(".nice-select").length&&e(".nice-select").removeClass("open").find(".option")}),e(document).on("click.nice_select",".nice-select .option:not(.disabled)",function(t){var s=e(this),n=s.closest(".nice-select");n.find(".selected").removeClass("selected"),s.addClass("selected");var i=s.data("display")||s.text();n.find(".current").text(i),n.prev("select").val(s.data("value")).trigger("change")}),e(document).on("keydown.nice_select",".nice-select",function(t){var s=e(this),n=e(s.find(".focus")||s.find(".list .option.selected"));if(32==t.keyCode||13==t.keyCode)return s.hasClass("open")?n.trigger("click"):s.trigger("click"),!1;if(40==t.keyCode){if(s.hasClass("open")){var i=n.nextAll(".option:not(.disabled)").first();i.length>0&&(s.find(".focus").removeClass("focus"),i.addClass("focus"))}else s.trigger("click");return!1}if(38==t.keyCode){if(s.hasClass("open")){var l=n.prevAll(".option:not(.disabled)").first();l.length>0&&(s.find(".focus").removeClass("focus"),l.addClass("focus"))}else s.trigger("click");return!1}if(27==t.keyCode)s.hasClass("open")&&s.trigger("click");else if(9==t.keyCode&&s.hasClass("open"))return!1});var n=document.createElement("a").style;return n.cssText="pointer-events:auto","auto"!==n.pointerEvents&&e("html").addClass("no-csspointerevents"),this}}(jQuery);
37/*============================================================================================================================*/
38/* jQuery meanMenu v2.0.8 */
39!function(a){"use strict";a.fn.meanmenu=function(b){var c={meanMenuTarget:jQuery(this),meanMenuContainer:".nav-container",meanMenuClose:"X",meanMenuCloseSize:"18px",meanMenuOpen:"<span></span><span></span><span></span>",meanRevealPosition:"right",meanRevealPositionDistance:"0",meanRevealColour:"",meanScreenWidth:"992",meanNavPush:"",meanShowChildren:!0,meanExpandableChildren:!0,meanExpand:"+",meanContract:"-",meanRemoveAttrs:!1,onePage:!1,meanDisplay:"block",removeElements:""};b=a.extend(c,b);var d=window.innerWidth||document.documentElement.clientWidth;return this.each(function(){var a=b.meanMenuTarget,c=b.meanMenuContainer,e=b.meanMenuClose,f=b.meanMenuCloseSize,g=b.meanMenuOpen,h=b.meanRevealPosition,i=b.meanRevealPositionDistance,j=b.meanRevealColour,k=b.meanScreenWidth,l=b.meanNavPush,m=".meanmenu-reveal",n=b.meanShowChildren,o=b.meanExpandableChildren,p=b.meanExpand,q=b.meanContract,r=b.meanRemoveAttrs,s=b.onePage,t=b.meanDisplay,u=b.removeElements,v=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/Blackberry/i)||navigator.userAgent.match(/Windows Phone/i))&&(v=!0),(navigator.userAgent.match(/MSIE 8/i)||navigator.userAgent.match(/MSIE 7/i))&&jQuery("html").css("overflow-y","scroll");var w="",x=function(){if("center"===h){var a=window.innerWidth||document.documentElement.clientWidth,b=a/2-22+"px";
39w="left:"+b+";right:auto;",v?jQuery(".meanmenu-reveal").animate({left:b}):jQuery(".meanmenu-reveal").css("left",b)}},y=!1,z=!1;"right"===h&&(w="right:"+i+";left:auto;"),"left"===h&&(w="left:"+i+";right:auto;"),x();var A="",B=function(){jQuery(A).is(".meanmenu-reveal.meanclose")?A.html(e):A.html(g)},C=function(){jQuery(".mean-bar,.mean-push").remove(),jQuery(c).removeClass("mean-container"),jQuery(a).css("display",t),y=!1,z=!1,jQuery(u).removeClass("mean-remove")},D=function(){var b="background:"+j+";color:"+j+";"+w;if(d<=k){jQuery(u).addClass("mean-remove"),z=!0,jQuery(c).addClass("mean-container"),jQuery(".mean-container").prepend('<div class="mean-bar"><a href="#nav" class="meanmenu-reveal" style="'+b+'">Show Navigation</a><nav class="mean-nav"></nav></div>');var e=jQuery(a).html();jQuery(".mean-nav").html(e),r&&jQuery("nav.mean-nav ul, nav.mean-nav ul *").each(function(){jQuery(this).is(".mean-remove")?jQuery(this).attr("class","mean-remove"):jQuery(this).removeAttr("class"),jQuery(this).removeAttr("id")}),jQuery(a).before('<div class="mean-push" />'),jQuery(".mean-push").css("margin-top",l),jQuery(a).hide(),jQuery(".meanmenu-reveal").show(),jQuery(m).html(g),A=jQuery(m),jQuery(".mean-nav ul").hide(),n?o?(jQuery(".mean-nav ul ul").each(function(){jQuery(this).children().length&&jQuery(this,"li:first").parent().append('<a class="mean-expand" href="#" style="font-size: '+f+'">'+p+"</a>")}),jQuery(".mean-expand").on("click",function(a){a.preventDefault(),jQuery(this).hasClass("mean-clicked")?(jQuery(this).text(p),jQuery(this).prev("ul").slideUp(300,function(){})):(jQuery(this).text(q),jQuery(this).prev("ul").slideDown(300,function(){})),jQuery(this).toggleClass("mean-clicked")})):jQuery(".mean-nav ul ul").show():jQuery(".mean-nav ul ul").hide(),jQuery(".mean-nav ul li").last().addClass("mean-last"),A.removeClass("meanclose"),jQuery(A).click(function(a){a.preventDefault(),y===!1?(A.css("text-align","center"),A.css("text-indent","0"),A.css("font-size",f),jQuery(".mean-nav ul:first").slideDown(),y=!0):(jQuery(".mean-nav ul:first").slideUp(),y=!1),A.toggleClass("meanclose"),B(),jQuery(u).addClass("mean-remove")}),s&&jQuery(".mean-nav ul > li > a:first-child").on("click",function(){jQuery(".mean-nav ul:first").slideUp(),y=!1,jQuery(A).toggleClass("meanclose").html(g)})}else C()};v||jQuery(window).resize(function(){d=window.innerWidth||document.documentElement.clientWidth,d>k,C(),d<=k?(D(),x()):C()}),jQuery(window).resize(function(){d=window.innerWidth||document.documentElement.clientWidth,v?(x(),d<=k?z===!1&&D():C()):(C(),d<=k&&(D(),x()))}),D()})}}(jQuery);
40/*============================================================================================================================*/
41/*
42 Slick Slider Version: 1.8.1
43*/
44!function (i) { "use strict"; "function" == typeof define && define.amd ? define(["jquery"], i) : "undefined" != typeof exports ? module.exports = i(require("jquery")) : i(jQuery) }(function (a) { "use strict"; var o, r = window.Slick || {}; o = 0, (r = function (i, e) { var t = this; t.defaults = { accessibility: !0, adaptiveHeight: !1, appendArrows: a(i), appendDots: a(i), arrows: !0, asNavFor: null, prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>', nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>', autoplay: !1, autoplaySpeed: 3e3, centerMode: !1, centerPadding: "50px", cssEase: "ease", customPaging: function (i, e) { return a('<button type="button" />').text(e + 1) }, dots: !1, dotsClass: "slick-dots", draggable: !0, easing: "linear", edgeFriction: .35, fade: !1, focusOnSelect: !1, focusOnChange: !1, infinite: !0, initialSlide: 0, lazyLoad: "ondemand", mobileFirst: !1, pauseOnHover: !0, pauseOnFocus: !0, pauseOnDotsHover: !1, respondTo: "window", responsive: null, rows: 1, rtl: !1, slide: "", slidesPerRow: 1, slidesToShow: 1, slidesToScroll: 1, speed: 500, swipe: !0, swipeToSlide: !1, touchMove: !0, touchThreshold: 5, useCSS: !0, useTransform: !0, variableWidth: !1, vertical: !1, verticalSwiping: !1, waitForAnimate: !0, zIndex: 1e3 }, t.initials = { animating: !1, dragging: !1, autoPlayTimer: null, currentDirection: 0, currentLeft: null, currentSlide: 0, direction: 1, $dots: null, listWidth: null, listHeight: null, loadIndex: 0, $nextArrow: null, $prevArrow: null, scrolling: !1, slideCount: null, slideWidth: null, $slideTrack: null, $slides: null, sliding: !1, slideOffset: 0, swipeLeft: null, swiping: !1, $list: null, touchObject: {}, transformsEnabled: !1, unslicked: !1 }, a.extend(t, t.initials), t.activeBreakpoint = null, t.animType = null, t.animProp = null, t.breakpoints = [], t.breakpointSettings = [], t.cssTransitions = !1, t.focussed = !1, t.interrupted = !1, t.hidden = "hidden", t.paused = !0, t.positionProp = null, t.respondTo = null, t.rowCount = 1, t.shouldClick = !0, t.$slider = a(i), t.$slidesCache = null, t.transformType = null, t.transitionType = null, t.visibilityChange = "visibilitychange", t.windowWidth = 0, t.windowTimer = null, i = a(i).data("slick") || {}, t.options = a.extend({}, t.defaults, e, i), t.currentSlide = t.options.initialSlide, t.originalSettings = t.options, void 0 !== document.mozHidden ? (t.hidden = "mozHidden", t.visibilityChange = "mozvisibilitychange") : void 0 !== document.webkitHidden && (t.hidden = "webkitHidden", t.visibilityChange = "webkitvisibilitychange"), t.autoPlay = a.proxy(t.autoPlay, t), t.autoPlayClear = a.proxy(t.autoPlayClear, t), t.autoPlayIterator = a.proxy(t.autoPlayIterator, t), t.changeSlide = a.proxy(t.changeSlide, t), t.clickHandler = a.proxy(t.clickHandler, t), t.selectHandler = a.proxy(t.selectHandler, t), t.setPosition = a.proxy(t.setPosition, t), t.swipeHandler = a.proxy(t.swipeHandler, t), t.dragHandler = a.proxy(t.dragHandler, t), t.keyHandler = a.proxy(t.keyHandler, t), t.instanceUid = o++, t.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/, t.registerBreakpoints(), t.init(!0) }).prototype.activateADA = function () { this.$slideTrack.find(".slick-active").attr({ "aria-hidden": "false" }).find("a, input, button, select").attr({ tabindex: "0" }) }, r.prototype.addSlide = r.prototype.slickAdd = function (i, e, t) { var o = this; if ("boolean" == typeof e) t = e, e = null; else if (e < 0 || e >= o.slideCount) return !1; o.unload(), "number" == typeof e ? 0 === e && 0 === o.$slides.length ? a(i).appendTo(o.$slideTrack) : t ? a(i).insertBefore(o.$slides.eq(e)) : a(i).insertAfter(o.$slides.eq(e)) : !0 === t ? a(i).prependTo(o.$slideTrack) : a(i).appendTo(o.$slideTrack), o.$slides = o.$slideTrack.children(this.options.slide), o.$slideTrack.children(this.options.slide).detach(), o.$slideTrack.append(o.$slides), o.$slides.each(function (i, e) { a(e).attr("data-slick-index", i) }), o.$slidesCache = o.$slides, o.reinit() }, r.prototype.animateHeight = function () { var i, e = this; 1 === e.options.slidesToShow && !0 === e.options.adaptiveHeight && !1 === e.options.vertical && (i = e.$slides.eq(e.currentSlide).outerHeight(!0), e.$list.animate({ height: i }, e.options.speed)) }, r.prototype.animateSlide = function (i, e) { var t = {}, o = this; o.animateHeight(), !0 === o.options.rtl && !1 === o.options.vertical && (i = -i), !1 === o.transformsEnabled ? !1 === o.options.vertical ? o.$slideTrack.animate({ left: i }, o.options.speed, o.options.easing, e) : o.$slideTrack.animate({ top: i }, o.options.speed, o.options.easing, e) : !1 === o.cssTransitions ? (!0 === o.options.rtl && (o.currentLeft = -o.currentLeft), a({ animStart: o.currentLeft }).animate({ animStart: i }, { duration: o.options.speed, easing: o.options.easing, step: function (i) { i = Math.ceil(i), !1 === o.options.vertical ? t[o.animType] = "translate(" + i + "px, 0px)" : t[o.animType] = "translate(0px," + i + "px)", o.$slideTrack.css(t) }, complete: function () { e && e.call() } })) : (o.applyTransition(), i = Math.ceil(i), !1 === o.options.vertical ? t[o.animType] = "translate3d(" + i + "px, 0px, 0px)" : t[o.animType] = "translate3d(0px," + i + "px, 0px)", o.$slideTrack.css(t), e && setTimeout(function () { o.disableTransition(), e.call() }, o.options.speed)) }, r.prototype.getNavTarget = function () { var i = this.options.asNavFor; return i && null !== i && (i = a(i).not(this.$slider)), i }, r.prototype.asNavFor = function (e) { var i = this.getNavTarget(); null !== i && "object" == typeof i && i.each(function () { var i = a(this).slick("getSlick"); i.unslicked || i.slideHandler(e, !0) }) }, r.prototype.applyTransition = function (i) { var e = this, t = {}; !1 === e.options.fade ? t[e.transitionType] = e.transformType + " " + e.options.speed + "ms " + e.options.cssEase : t[e.transitionType] = "opacity " + e.options.speed + "ms " + e.options.cssEase, (!1 === e.options.fade ? e.$slideTrack : e.$slides.eq(i)).css(t) }, r.prototype.autoPlay = function () { var i = this; i.autoPlayClear(), i.slideCount > i.options.slidesToShow && (i.autoPlayTimer = setInterval(i.autoPlayIterator, i.options.autoplaySpeed)) }, r.prototype.autoPlayClear = function () { this.autoPlayTimer && clearInterval(this.autoPlayTimer) }, r.prototype.autoPlayIterator = function () { var i = this, e = i.currentSlide + i.options.slidesToScroll; i.paused || i.interrupted || i.focussed || (!1 === i.options.infinite && (1 === i.direction && i.currentSlide + 1 === i.slideCount - 1 ? i.direction = 0 : 0 === i.direction && (e = i.currentSlide - i.options.slidesToScroll, i.currentSlide - 1 == 0 && (i.direction = 1))), i.slideHandler(e)) }, r.prototype.buildArrows = function () { var i = this; !0 === i.options.arrows && (i.$prevArrow = a(i.options.prevArrow).addClass("slick-arrow"), i.$nextArrow = a(i.options.nextArrow).addClass("slick-arrow"), i.slideCount > i.options.slidesToShow ? (i.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), i.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), i.htmlExpr.test(i.options.prevArrow) && i.$prevArrow.prependTo(i.options.appendArrows), i.htmlExpr.test(i.options.nextArrow) && i.$nextArrow.appendTo(i.options.appendArrows), !0 !== i.options.infinite && i.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true")) : i.$prevArrow.add(i.$nextArrow).addClass("slick-hidden").attr({ "aria-disabled": "true", tabindex: "-1" })) }, r.prototype.buildDots = function () { var i, e, t = this; if (!0 === t.options.dots && t.slideCount > t.options.slidesToShow) { for (t.$slider.addClass("slick-dotted"), e = a("<ul />
44").addClass(t.options.dotsClass), i = 0; i <= t.getDotCount(); i += 1)e.append(a("<li />").append(t.options.customPaging.call(this, t, i))); t.$dots = e.appendTo(t.options.appendDots), t.$dots.find("li").first().addClass("slick-active") } }, r.prototype.buildOut = function () { var i = this; i.$slides = i.$slider.children(i.options.slide + ":not(.slick-cloned)").addClass("slick-slide"), i.slideCount = i.$slides.length, i.$slides.each(function (i, e) { a(e).attr("data-slick-index", i).data("originalStyling", a(e).attr("style") || "") }), i.$slider.addClass("slick-slider"), i.$slideTrack = 0 === i.slideCount ? a('<div class="slick-track"/>').appendTo(i.$slider) : i.$slides.wrapAll('<div class="slick-track"/>').parent(), i.$list = i.$slideTrack.wrap('<div class="slick-list"/>').parent(), i.$slideTrack.css("opacity", 0), !0 !== i.options.centerMode && !0 !== i.options.swipeToSlide || (i.options.slidesToScroll = 1), a("img[data-lazy]", i.$slider).not("[src]").addClass("slick-loading"), i.setupInfinite(), i.buildArrows(), i.buildDots(), i.updateDots(), i.setSlideClasses("number" == typeof i.currentSlide ? i.currentSlide : 0), !0 === i.options.draggable && i.$list.addClass("draggable") }, r.prototype.buildRows = function () { var i, e, t, o = this, s = document.createDocumentFragment(), n = o.$slider.children(); if (0 < o.options.rows) { for (t = o.options.slidesPerRow * o.options.rows, e = Math.ceil(n.length / t), i = 0; i < e; i++) { for (var r = document.createElement("div"), l = 0; l < o.options.rows; l++) { for (var d = document.createElement("div"), a = 0; a < o.options.slidesPerRow; a++) { var c = i * t + (l * o.options.slidesPerRow + a); n.get(c) && d.appendChild(n.get(c)) } r.appendChild(d) } s.appendChild(r) } o.$slider.empty().append(s), o.$slider.children().children().children().css({ width: 100 / o.options.slidesPerRow + "%", display: "inline-block" }) } }, r.prototype.checkResponsive = function (i, e) { var t, o, s, n = this, r = !1, l = n.$slider.width(), d = window.innerWidth || a(window).width(); if ("window" === n.respondTo ? s = d : "slider" === n.respondTo ? s = l : "min" === n.respondTo && (s = Math.min(d, l)), n.options.responsive && n.options.responsive.length && null !== n.options.responsive) { for (t in o = null, n.breakpoints) n.breakpoints.hasOwnProperty(t) && (!1 === n.originalSettings.mobileFirst ? s < n.breakpoints[t] && (o = n.breakpoints[t]) : s > n.breakpoints[t] && (o = n.breakpoints[t])); null !== o ? null !== n.activeBreakpoint && o === n.activeBreakpoint && !e || (n.activeBreakpoint = o, "unslick" === n.breakpointSettings[o] ? n.unslick(o) : (n.options = a.extend({}, n.originalSettings, n.breakpointSettings[o]), !0 === i && (n.currentSlide = n.options.initialSlide), n.refresh(i)), r = o) : null !== n.activeBreakpoint && (n.activeBreakpoint = null, n.options = n.originalSettings, !0 === i && (n.currentSlide = n.options.initialSlide), n.refresh(i), r = o), i || !1 === r || n.$slider.trigger("breakpoint", [n, r]) } }, r.prototype.changeSlide = function (i, e) { var t, o = this, s = a(i.currentTarget); switch (s.is("a") && i.preventDefault(), s.is("li") || (s = s.closest("li")), t = o.slideCount % o.options.slidesToScroll != 0 ? 0 : (o.slideCount - o.currentSlide) % o.options.slidesToScroll, i.data.message) { case "previous": n = 0 == t ? o.options.slidesToScroll : o.options.slidesToShow - t, o.slideCount > o.options.slidesToShow && o.slideHandler(o.currentSlide - n, !1, e); break; case "next": n = 0 == t ? o.options.slidesToScroll : t, o.slideCount > o.options.slidesToShow && o.slideHandler(o.currentSlide + n, !1, e); break; case "index": var n = 0 === i.data.index ? 0 : i.data.index || s.index() * o.options.slidesToScroll; o.slideHandler(o.checkNavigable(n), !1, e), s.children().trigger("focus"); break; default: return } }, r.prototype.checkNavigable = function (i) { var e = this.getNavigableIndexes(), t = 0; if (i > e[e.length - 1]) i = e[e.length - 1]; else for (var o in e) { if (i < e[o]) { i = t; break } t = e[o] } return i }, r.prototype.cleanUpEvents = function () { var i = this; i.options.dots && null !== i.$dots && (a("li", i.$dots).off("click.slick", i.changeSlide).off("mouseenter.slick", a.proxy(i.interrupt, i, !0)).off("mouseleave.
44slick", a.proxy(i.interrupt, i, !1)), !0 === i.options.accessibility && i.$dots.off("keydown.slick", i.keyHandler)), i.$slider.off("focus.slick blur.slick"), !0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow && i.$prevArrow.off("click.slick", i.changeSlide), i.$nextArrow && i.$nextArrow.off("click.slick", i.changeSlide), !0 === i.options.accessibility && (i.$prevArrow && i.$prevArrow.off("keydown.slick", i.keyHandler), i.$nextArrow && i.$nextArrow.off("keydown.slick", i.keyHandler))), i.$list.off("touchstart.slick mousedown.slick", i.swipeHandler), i.$list.off("touchmove.slick mousemove.slick", i.swipeHandler), i.$list.off("touchend.slick mouseup.slick", i.swipeHandler), i.$list.off("touchcancel.slick mouseleave.slick", i.swipeHandler), i.$list.off("click.slick", i.clickHandler), a(document).off(i.visibilityChange, i.visibility), i.cleanUpSlideEvents(), !0 === i.options.accessibility && i.$list.off("keydown.slick", i.keyHandler), !0 === i.options.focusOnSelect && a(i.$slideTrack).children().off("click.slick", i.selectHandler), a(window).off("orientationchange.slick.slick-" + i.instanceUid, i.orientationChange), a(window).off("resize.slick.slick-" + i.instanceUid, i.resize), a("[draggable!=true]", i.$slideTrack).off("dragstart", i.preventDefault), a(window).off("load.slick.slick-" + i.instanceUid, i.setPosition) }, r.prototype.cleanUpSlideEvents = function () { var i = this; i.$list.off("mouseenter.slick", a.proxy(i.interrupt, i, !0)), i.$list.off("mouseleave.slick", a.proxy(i.interrupt, i, !1)) }, r.prototype.cleanUpRows = function () { var i; 0 < this.options.rows && ((i = this.$slides.children().children()).removeAttr("style"), this.$slider.empty().append(i)) }, r.prototype.clickHandler = function (i) { !1 === this.shouldClick && (i.stopImmediatePropagation(), i.stopPropagation(), i.preventDefault()) }, r.prototype.destroy = function (i) { var e = this; e.autoPlayClear(), e.touchObject = {}, e.cleanUpEvents(), a(".slick-cloned", e.$slider).detach(), e.$dots && e.$dots.remove(), e.$prevArrow && e.$prevArrow.length && (e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), e.htmlExpr.test(e.options.prevArrow) && e.$prevArrow.remove()), e.$nextArrow && e.$nextArrow.length && (e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), e.htmlExpr.test(e.options.nextArrow) && e.$nextArrow.remove()), e.$slides && (e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function () { a(this).attr("style", a(this).data("originalStyling")) }), e.$slideTrack.children(this.options.slide).detach(), e.$slideTrack.detach(), e.$list.detach(), e.$slider.append(e.$slides)), e.cleanUpRows(), e.$slider.removeClass("slick-slider"), e.$slider.removeClass("slick-initialized"), e.$slider.removeClass("slick-dotted"), e.unslicked = !0, i || e.$slider.trigger("destroy", [e]) }, r.prototype.disableTransition = function (i) { var e = {}; e[this.transitionType] = "", (!1 === this.options.fade ? this.$slideTrack : this.$slides.eq(i)).css(e) }, r.prototype.fadeSlide = function (i, e) { var t = this; !1 === t.cssTransitions ? (t.$slides.eq(i).css({ zIndex: t.options.zIndex }), t.$slides.eq(i).animate({ opacity: 1 }, t.options.speed, t.options.easing, e)) : (t.applyTransition(i), t.$slides.eq(i).css({ opacity: 1, zIndex: t.options.zIndex }), e && setTimeout(function () { t.disableTransition(i), e.call() }, t.options.speed)) }, r.prototype.fadeSlideOut = function (i) { var e = this; !1 === e.cssTransitions ? e.$slides.eq(i).animate({ opacity: 0, zIndex: e.options.zIndex - 2 }, e.options.speed, e.options.easing) : (e.applyTransition(i), e.$slides.eq(i).css({ opacity: 0, zIndex: e.options.zIndex - 2 })) }, r.prototype.filterSlides = r.prototype.slickFilter = function (i) { var e = this; null !== i && (e.$slidesCache = e.$slides, e.unload(), e.$slideTrack.children(this.options.slide).detach(), e.$slidesCache.filter(i).appendTo(e.$slideTrack), e.reinit()) }
vendor: 5,376 bytes, line 44
44, r.prototype.focusHandler = function () { var t = this; t.$slider.off("focus.slick blur.slick").on("focus.slick", "*", function (i) { var e = a(this); setTimeout(function () { t.options.pauseOnFocus && e.is(":focus") && (t.focussed = !0, t.autoPlay()) }, 0) }).on("blur.slick", "*", function (i) { a(this); t.options.pauseOnFocus && (t.focussed = !1, t.autoPlay()) }) }, r.prototype.getCurrent = r.prototype.slickCurrentSlide = function () { return this.currentSlide }, r.prototype.getDotCount = function () { var i = this, e = 0, t = 0, o = 0; if (!0 === i.options.infinite) if (i.slideCount <= i.options.slidesToShow) ++o; else for (; e < i.slideCount;)++o, e = t + i.options.slidesToScroll, t += i.options.slidesToScroll <= i.options.slidesToShow ? i.options.slidesToScroll : i.options.slidesToShow; else if (!0 === i.options.centerMode) o = i.slideCount; else if (i.options.asNavFor) for (; e < i.slideCount;)++o, e = t + i.options.slidesToScroll, t += i.options.slidesToScroll <= i.options.slidesToShow ? i.options.slidesToScroll : i.options.slidesToShow; else o = 1 + Math.ceil((i.slideCount - i.options.slidesToShow) / i.options.slidesToScroll); return o - 1 }, r.prototype.getLeft = function (i) { var e, t, o = this, s = 0; return o.slideOffset = 0, e = o.$slides.first().outerHeight(!0), !0 === o.options.infinite ? (o.slideCount > o.options.slidesToShow && (o.slideOffset = o.slideWidth * o.options.slidesToShow * -1, t = -1, !0 === o.options.vertical && !0 === o.options.centerMode && (2 === o.options.slidesToShow ? t = -1.5 : 1 === o.options.slidesToShow && (t = -2)), s = e * o.options.slidesToShow * t), o.slideCount % o.options.slidesToScroll != 0 && i + o.options.slidesToScroll > o.slideCount && o.slideCount > o.options.slidesToShow && (s = i > o.slideCount ? (o.slideOffset = (o.options.slidesToShow - (i - o.slideCount)) * o.slideWidth * -1, (o.options.slidesToShow - (i - o.slideCount)) * e * -1) : (o.slideOffset = o.slideCount % o.options.slidesToScroll * o.slideWidth * -1, o.slideCount % o.options.slidesToScroll * e * -1))) : i + o.options.slidesToShow > o.slideCount && (o.slideOffset = (i + o.options.slidesToShow - o.slideCount) * o.slideWidth, s = (i + o.options.slidesToShow - o.slideCount) * e), o.slideCount <= o.options.slidesToShow && (s = o.slideOffset = 0), !0 === o.options.centerMode && o.slideCount <= o.options.slidesToShow ? o.slideOffset = o.slideWidth * Math.floor(o.options.slidesToShow) / 2 - o.slideWidth * o.slideCount / 2 : !0 === o.options.centerMode && !0 === o.options.infinite ? o.slideOffset += o.slideWidth * Math.floor(o.options.slidesToShow / 2) - o.slideWidth : !0 === o.options.centerMode && (o.slideOffset = 0, o.slideOffset += o.slideWidth * Math.floor(o.options.slidesToShow / 2)), e = !1 === o.options.vertical ? i * o.slideWidth * -1 + o.slideOffset : i * e * -1 + s, !0 === o.options.variableWidth && (s = o.slideCount <= o.options.slidesToShow || !1 === o.options.infinite ? o.$slideTrack.children(".slick-slide").eq(i) : o.$slideTrack.children(".slick-slide").eq(i + o.options.slidesToShow), e = !0 === o.options.rtl ? s[0] ? -1 * (o.$slideTrack.width() - s[0].offsetLeft - s.width()) : 0 : s[0] ? -1 * s[0].offsetLeft : 0, !0 === o.options.centerMode && (s = o.slideCount <= o.options.slidesToShow || !1 === o.options.infinite ? o.$slideTrack.children(".slick-slide").eq(i) : o.$slideTrack.children(".slick-slide").eq(i + o.options.slidesToShow + 1), e = !0 === o.options.rtl ? s[0] ? -1 * (o.$slideTrack.width() - s[0].offsetLeft - s.width()) : 0 : s[0] ? -1 * s[0].offsetLeft : 0, e += (o.$list.width() - s.outerWidth()) / 2)), e }, r.prototype.getOption = r.prototype.slickGetOption = function (i) { return this.options[i] }, r.prototype.getNavigableIndexes = function () { for (var i = this, e = 0, t = 0, o = [], s = !1 === i.options.infinite ? i.slideCount : (e = -1 * i.options.slidesToScroll, t = -1 * i.options.slidesToScroll, 2 * i.slideCount); e < s;)o.push(e), e = t + i.options.slidesToScroll, t += i.options.slidesToScroll <= i.options.slidesToShow ? i.options.slidesToScroll : i.options.slidesToShow; return o }, r.prototype.getSlick = function () { return this }, r.prototype.getSlideCount = function () { var s, n = this, i = !0 === n.options.centerMode ? Math.floor(n.$list.width() / 2) : 0, r = -1 * n.swipeLeft + i; return !0 === n.options.swipeToSlide ? (n.$slideTrack.find(".slick-slide").each(function (i, e) { var t = a(e).outerWidth(), o = e.offsetLeft; if (!0 !== n.options.centerMode && (o += t / 2), r < o + t) return s = e, !1 }), Math.abs(a(s).attr("data-slick-index") - n.currentSlide) || 1) : n.options.slidesToScroll }, r.prototype.goTo = r.prototype.slickGoTo = function (i, e) { this.changeSlide({ data: { message: "index", index: parseInt(i) } }, e) }, r.prototype.init = function (i) { var e = this; a(e.$slider).hasClass("slick-initialized") || (a(e.$slider).addClass("slick-initialized"), e.buildRows(), e.buildOut(), e.setProps(), e.startLoad(), e.loadSlider(), e.initializeEvents(), e.updateArrows(), e.updateDots(), e.checkResponsive(!0), e.focusHandler()), i && e.$slider.trigger("init", [e]), !0 === e.options.accessibility && e.initADA(), e.options.autoplay && (e.paused = !1, e.autoPlay()) }, r.prototype.initADA = function () { var t = this, o = Math.ceil(t.slideCount / t.options.slidesToShow), s = t.getNavigableIndexes().filter(function (i) { return 0 <= 
44i && i < t.slideCount }); t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({ "aria-hidden": "true", tabindex: "-1" }).find("a, input, button, select").attr({ tabindex: "-1" }), null !== t.$dots && (t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function (i) { var e = s.indexOf(i); a(this).attr({ role: "tabpanel", id: "slick-slide" + t.instanceUid + i, tabindex: -1 }), -1 !== e && (e = "slick-slide-control" + t.instanceUid + e, a("#" + e).length && a(this).attr({ "aria-describedby": e })) }), t.$dots.attr("role", "tablist").find("li").each(function (i) { var e = s[i]; a(this).attr({ role: "presentation" }), a(this).find("button").first().attr({ role: "tab", id: "slick-slide-control" + t.instanceUid + i, "aria-controls": "slick-slide" + t.instanceUid + e, "aria-label": i + 1 + " of " + o, "aria-selected": null, tabindex: "-1" }) }).eq(t.currentSlide).find("button").attr({ "aria-selected": "true", tabindex: "0" }).end()); for (var i = t.currentSlide, e = i + t.options.slidesToShow; i < e; i++)t.options.focusOnChange ? t.$slides.eq(i).attr({ tabindex: "0" }) : t.$slides.eq(i).removeAttr("tabindex"); t.activateADA() }, r.prototype.initArrowEvents = function () { var i = this; !0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow.off("click.slick").on("click.slick", { message: "previous" }, i.changeSlide), i.$nextArrow.off("click.slick").on("click.slick", { message: "next" }, i.changeSlide), !0 === i.options.accessibility && (i.$prevArrow.on("keydown.slick", i.keyHandler), i.$nextArrow.on("keydown.slick", i.keyHandler))) }, r.prototype.initDotEvents = function () { var i = this; !0 === i.options.dots && i.slideCount > i.options.slidesToShow && (a("li", i.$dots).on("click.slick", { message: "index" }, i.changeSlide), !0 === i.options.accessibility && i.$dots.on("keydown.slick", i.keyHandler)), !0 === i.options.dots && !0 === i.options.pauseOnDotsHover && i.slideCount > i.options.slidesToShow && a("li", i.$dots).on("mouseenter.slick", a.proxy(i.interrupt, i, !0)).on("mouseleave.slick", a.proxy(i.interrupt, i, !1)) }, r.prototype.initSlideEvents = function () { var i = this; i.options.pauseOnHover && (i.$list.on("mouseenter.slick", a.proxy(i.interrupt, i, !0)), i.$list.on("mouseleave.slick", a.proxy(i.interrupt, i, !1))) }, r.prototype.initializeEvents = function () { var i = this; i.initArrowEvents(), i.initDotEvents(), i.initSlideEvents(), i.$list.on("touchstart.slick mousedown.slick", { action: "start" }, i.swipeHandler), i.$list.on("touchmove.slick mousemove.slick", { action: "move" }, i.swipeHandler), i.$list.on("touchend.slick mouseup.slick", { action: "end" }
vendor: 12,134 bytes, line 44
44, i.swipeHandler), i.$list.on("touchcancel.slick mouseleave.slick", { action: "end" }, i.swipeHandler), i.$list.on("click.slick", i.clickHandler), a(document).on(i.visibilityChange, a.proxy(i.visibility, i)), !0 === i.options.accessibility && i.$list.on("keydown.slick", i.keyHandler), !0 === i.options.focusOnSelect && a(i.$slideTrack).children().on("click.slick", i.selectHandler), a(window).on("orientationchange.slick.slick-" + i.instanceUid, a.proxy(i.orientationChange, i)), a(window).on("resize.slick.slick-" + i.instanceUid, a.proxy(i.resize, i)), a("[draggable!=true]", i.$slideTrack).on("dragstart", i.preventDefault), a(window).on("load.slick.slick-" + i.instanceUid, i.setPosition), a(i.setPosition) }, r.prototype.initUI = function () { var i = this; !0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow.show(), i.$nextArrow.show()), !0 === i.options.dots && i.slideCount > i.options.slidesToShow && i.$dots.show() }, r.prototype.keyHandler = function (i) { var e = this; i.target.tagName.match("TEXTAREA|INPUT|SELECT") || (37 === i.keyCode && !0 === e.options.accessibility ? e.changeSlide({ data: { message: !0 === e.options.rtl ? "next" : "previous" } }) : 39 === i.keyCode && !0 === e.options.accessibility && e.changeSlide({ data: { message: !0 === e.options.rtl ? "previous" : "next" } })) }, r.prototype.lazyLoad = function () { var i, e, t, n = this; function o(i) { a("img[data-lazy]", i).each(function () { var i = a(this), e = a(this).attr("data-lazy"), t = a(this).attr("data-srcset"), o = a(this).attr("data-sizes") || n.$slider.attr("data-sizes"), s = document.createElement("img"); s.onload = function () { i.animate({ opacity: 0 }, 100, function () { t && (i.attr("srcset", t), o && i.attr("sizes", o)), i.attr("src", e).animate({ opacity: 1 }, 200, function () { i.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading") }), n.$slider.trigger("lazyLoaded", [n, i, e]) }) }, s.onerror = function () { i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), n.$slider.trigger("lazyLoadError", [n, i, e]) }, s.src = e }) } if (!0 === n.options.centerMode ? t = !0 === n.options.infinite ? (e = n.currentSlide + (n.options.slidesToShow / 2 + 1)) + n.options.slidesToShow + 2 : (e = Math.max(0, n.currentSlide - (n.options.slidesToShow / 2 + 1)), n.options.slidesToShow / 2 + 1 + 2 + n.currentSlide) : (e = n.options.infinite ? n.options.slidesToShow + n.currentSlide : n.currentSlide, t = Math.ceil(e + n.options.slidesToShow), !0 === n.options.fade && (0 < e && e--, t <= n.slideCount && t++)), i = n.$slider.find(".slick-slide").slice(e, t), "anticipated" === n.options.lazyLoad) for (var s = e - 1, r = t, l = n.$slider.find(".slick-slide"), d = 0; d < n.options.slidesToScroll; d++)s < 0 && (s = n.slideCount - 1), i = (i = i.add(l.eq(s))).add(l.eq(r)), s--, r++; o(i), n.slideCount <= n.options.slidesToShow ? o(n.$slider.find(".slick-slide")) : n.currentSlide >= n.slideCount - n.options.slidesToShow ? o(n.$slider.find(".slick-cloned").slice(0, n.options.slidesToShow)) : 0 === n.currentSlide && o(n.$slider.find(".slick-cloned").slice(-1 * n.options.slidesToShow)) }, r.prototype.loadSlider = function () { var i = this; i.setPosition(), i.$slideTrack.css({ opacity: 1 }), i.$slider.removeClass("slick-loading"), i.initUI(), "progressive" === i.options.lazyLoad && i.progressiveLazyLoad() }, r.prototype.next = r.prototype.slickNext = function () { this.changeSlide({ data: { message: "next" } }) }, r.prototype.orientationChange = function () { this.checkResponsive(), this.setPosition() }, r.prototype.pause = r.prototype.slickPause = function () { this.autoPlayClear(), this.paused = !0 }, r.prototype.play = r.prototype.slickPlay = function () { var i = this; i.autoPlay(), i.options.autoplay = !0, i.paused = !1, i.focussed = !1, i.interrupted = !1 }, r.prototype.postSlide = function (i) { var e = this; e.unslicked || (e.$slider.trigger("afterChange", [e, i]), e.animating = !1, e.slideCount > e.options.slidesToShow && e.setPosition(), e.swipeLeft = null, e.options.autoplay && e.autoPlay(), !0 === e.options.accessibility && (e.initADA(), e.options.focusOnChange && a(e.$slides.get(e.currentSlide)).attr("tabindex", 0).focus())) }, r.prototype.prev = r.prototype.slickPrev = function () { this.changeSlide({ data: { message: "previous" } }) }, r.prototype.preventDefault = function (i) { i.preventDefault() }, r.prototype.progressiveLazyLoad = function (i) { i = i || 1; var e, t, o, s, n = this, r = a("img[data-lazy]", n.$slider); r.length ? (e = r.first(), t = e.attr("data-lazy"), o = e.attr("data-srcset"), s = e.attr("data-sizes") || n.$slider.attr("data-sizes"), (r = document.createElement("img")).onload = function () { o && (e.attr("srcset", o), s && e.attr("sizes", s)), e.attr("src", t).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"), !0 === n.options.adaptiveHeight && n.setPosition(), n.$slider.trigger("lazyLoaded", [n, e, t]), n.progressiveLazyLoad() }, r.onerror = function () { i < 3 ? setTimeout(function () { n.progressiveLazyLoad(i + 1) }, 500) : (e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), n.$slider.trigger("lazyLoadError", [n, e, t]), n.progressiveLazyLoad()) }, r.src = t) : n.$slider.trigger("allImagesLoaded", [n]) }, r.prototype.refresh = function (i) { var e = this, t = e.slideCount - e.options.slidesToShow; !e.options.infinite && e.currentSlide > t && (e.currentSlide = t), e.slideCount <= e.options.slidesToShow && (e.currentSlide = 0), t = e.currentSlide, e.destroy(!0), a.extend(e, e.initials, { currentSlide: t }), e.init(), i || e.changeSlide({ data: { message: "index", index: t } }, !1) }, r.prototype.registerBreakpoints = function () { var i, e, t, o = this, s = o.options.responsive || null; if ("array" === a.type(s) && s.length) { for (i in o.respondTo = o.options.respondTo || "window", s) if (t = o.breakpoints.length - 1, s.hasOwnProperty(i)) { for (e = s[i].breakpoint; 0 <= t;)o.breakpoints[t] && o.breakpoints[t] === e && o.breakpoints.splice(t, 1), t--; o.breakpoints.push(e), o.breakpointSettings[e] = s[i].settings } o.breakpoints.sort(function (i, e) { return o.options.mobileFirst ? i - e : e - i }) } }, r.prototype.reinit = function () { var i = this; i.$slides = i.$slideTrack.children(i.options.slide).addClass("slick-slide"), i.slideCount = i.$slides.length, i.currentSlide >= i.slideCount && 0 !== i.currentSlide && (i.currentSlide = i.currentSlide - i.options.slidesToScroll), i.slideCount <= i.options.slidesToShow && (i.currentSlide = 0), i.registerBreakpoints(), i.setProps(), i.setupInfinite(), i.buildArrows(), i.updateArrows(), i.initArrowEvents(), i.buildDots(), i.updateDots(), i.initDotEvents(), i.cleanUpSlideEvents(), i.initSlideEvents(), i.checkResponsive(!1, !0), !0 === i.options.focusOnSelect && a(i.$slideTrack).children().on("click.slick", i.selectHandler), i.setSlideClasses("number" == typeof i.currentSlide ? i.currentSlide : 0), i.setPosition(), i.focusHandler(), i.paused = !i.options.autoplay, i.autoPlay(), i.$slider.trigger("reInit", [i]) }, r.prototype.resize = function () { var i = this; a(window).width() !== i.windowWidth && (clearTimeout(i.windowDelay), i.windowDelay = window.setTimeout(function () { i.windowWidth = a(window).width(), i.checkResponsive(), i.unslicked || i.setPosition() }, 50)) }, r.prototype.removeSlide = r.prototype.slickRemove = function (i, e, t) { var o = this; if (i = "boolean" == typeof i ? !0 === (e = i) ? 0 : o.slideCount - 1 : !0 === e ? --i : i, o.slideCount < 1 || i < 0 || i > o.slideCount - 1) return !1; o.unload(), (!0 === t ? o.$slideTrack.children() : o.$slideTrack.children(this.options.slide).eq(i)).remove(), o.$slides = o.$slideTrack.children(this.options.slide), o.$slideTrack.children(this.options.slide).detach(), o.$slideTrack.append(o.$slides), o.$slidesCache = o.$slides, o.reinit() }, r.prototype.setCSS = function (i) { var e, t, o = this, s = {}; !0 === o.options.rtl && (i = -i), e = "left" == o.positionProp ? Math.ceil(i) + "px" : "0px", t = "top" == o.positionProp ? Math.ceil(i) + "px" : "0px", s[o.positionProp] = i, !1 === o.transformsEnabled || (!(s = {}) === o.cssTransitions ? s[o.animType] = "translate(" + e + ", " + t + ")" : s[o.animType] = "translate3d(" + e + ", " + t + ", 0px)"), o.$slideTrack.css(s) }, r.prototype.setDimensions = function () { var i = this; !1 === i.options.vertical ? !0 === i.options.centerMode && i.$list.css({ padding: "0px " + i.options.centerPadding }) : (i.$list.height(i.$slides.first().outerHeight(!0) * i.options.slidesToShow), !0 === i.options.centerMode && i.$list.css({ padding: i.options.centerPadding + " 0px" })), i.listWidth = i.$list.width(), i.listHeight = i.$list.height(), !1 === i.options.vertical && !1 === i.options.variableWidth ? (i.slideWidth = Math.ceil(i.listWidth / i.options.slidesToShow), i.$slideTrack.width(Math.ceil(i.slideWidth * i.$slideTrack.children(".slick-slide").length))) : !0 === i.options.variableWidth ? i.$slideTrack.width(5e3 * i.slideCount) : (i.slideWidth = Math.ceil(i.listWidth), i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0) * i.$slideTrack.children(".slick-slide").length))); var e = i.$slides.first().outerWidth(!0) - i.$slides.first().width(); !1 === i.options.variableWidth && i.$slideTrack.children(".slick-slide").width(i.slideWidth - e) }, r.prototype.setFade = function () { var t, o = this; o.$slides.each(function (i, e) { t = o.slideWidth * i * -1, !0 === o.options.rtl ? a(e).css({ position: "relative", right: t, top: 0, zIndex: o.options.zIndex - 2, opacity: 0 }) : a(e).css({ position: "relative", left: t, top: 0, zIndex: o.options.zIndex - 2, opacity: 0 }) }), o.$slides.eq(o.currentSlide).css({ zIndex: o.options.zIndex - 1, opacity: 1 }) }, r.prototype.setHeight = function () { var i, e = this; 1 === e.options.slidesToShow && !0 === e.options.adaptiveHeight && !1 === e.options.vertical && (i = e.$slides.eq(e.currentSlide).outerHeight(!0), e.$list.css("height", i)) }, r.prototype.setOption = r.prototype.slickSetOption = function () { var i, e, t, o, s, n = this, r = !1; if ("object" === a.type(arguments[0]) ? (t = arguments[0], r = arguments[1], s = "multiple") : "string" === a.type(arguments[0]) && (t = arguments[0], o = arguments[1], r = arguments[2], "responsive" === arguments[0] && "array" === a.type(arguments[1]) ? s = "responsive" : void 0 !== arguments[1] && (s = "single")), "single" === s) n.options[t] = o; else if ("multiple" === s) a.each(t, function (i, e) { n.options[i] = e }); else if ("responsive" === s) for (e in o) if ("array" !== a.type(n.options.responsive)) n.options.responsive = [o[e]]; else { for (i = n.options.responsive.length - 1; 0 <= i;)n.options.responsive[i].breakpoint === o[e].breakpoint && n.options.responsive.splice(i, 1), i--; n.options.responsive.push(o[e]) } r && (n.unload(), n.reinit()) }, r.prototype.setPosition = function () { var i = this; i.setDimensions(), i.setHeight(), !1 === i.options.fade ? i.setCSS(i.getLeft(i.currentSlide)) : i.setFade(), i.$slider.trigger("setPosition", [i]) }, r.prototype.setProps = function () { var i = this, e = document.body.style; i.positionProp = !0 === i.options.vertical ? "top" : "left", "top" === i.positionProp ? i.$slider.addClass("slick-vertical") : i.$slider.removeClass("slick-vertical"), void 0 === e.WebkitTransition && void 0 === e.MozTransition && void 0 === e.msTransition || !0 === i.options.useCSS && (i.cssTransitions = !0), i.options.fade && ("number" == typeof i.options.zIndex ? i.options.zIndex < 3 && (i.options.zIndex = 3) : i.options.zIndex = i.defaults.zIndex), void 0 !== e.OTransform && (i.animType = "OTransform", i.transformType = "-o-transform", i.transitionType = "OTransition", void 0 === e.perspectiveProperty && void 0 === e.webkitPerspective && (i.animType = !1)), void 0 !== e.MozTransform && (i.animType = "MozTransform", i.transformType = "-moz-transform", i.transitionType = "MozTransition", void 0 === e.perspectiveProperty && void 0 === e.MozPerspective && (i.animType = !1)), void 0 !== e.webkitTransform && (i.animType = "
44webkitTransform", i.transformType = "-webkit-transform", i.transitionType = "webkitTransition", void 0 === e.perspectiveProperty && void 0 === e.webkitPerspective && (i.animType = !1)), void 0 !== e.msTransform && (i.animType = "msTransform", i.transformType = "-ms-transform", i.transitionType = "msTransition", void 0 === e.msTransform && (i.animType = !1)), void 0 !== e.transform && !1 !== i.animType && (i.animType = "transform", i.transformType = "transform", i.transitionType = "transition"), i.transformsEnabled = i.options.useTransform && null !== i.animType && !1 !== i.animType }, r.prototype.setSlideClasses = function (i) { var e, t, o, s = this, n = s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden", "true"); s.$slides.eq(i).addClass("slick-current"), !0 === s.options.centerMode ? (t = s.options.slidesToShow % 2 == 0 ? 1 : 0, o = Math.floor(s.options.slidesToShow / 2), !0 === s.options.infinite && (o <= i && i <= s.slideCount - 1 - o ? s.$slides.slice(i - o + t, i + o + 1).addClass("slick-active").attr("aria-hidden", "false") : (e = s.options.slidesToShow + i, n.slice(e - o + 1 + t, e + o + 2).addClass("slick-active").attr("aria-hidden", "false")), 0 === i ? n.eq(s.options.slidesToShow + s.slideCount + 1).addClass("slick-center") : i === s.slideCount - 1 && n.eq(s.options.slidesToShow).addClass("slick-center")), s.$slides.eq(i).addClass("slick-center")) : 0 <= i && i <= s.slideCount - s.options.slidesToShow ? s.$slides.slice(i, i + s.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false") : n.length <= s.options.slidesToShow ? n.addClass("slick-active").attr("aria-hidden", "false") : (o = s.slideCount % s.options.slidesToShow, e = !0 === s.options.infinite ? s.options.slidesToShow + i : i, (s.options.slidesToShow == s.options.slidesToScroll && s.slideCount - i < s.options.slidesToShow ? n.slice(e - (s.options.slidesToShow - o), e + o) : n.slice(e, e + s.options.slidesToShow)).addClass("slick-active").attr("aria-hidden", "false")), "ondemand" !== s.options.lazyLoad && "anticipated" !== s.options.lazyLoad || s.lazyLoad() }, r.prototype.setupInfinite = function () { var i, e, t, o = this; if (!0 === o.options.fade && (o.options.centerMode = !1), !0 === o.options.infinite && !1 === o.options.fade && (e = null, o.slideCount > o.options.slidesToShow)) { for (t = !0 === o.options.centerMode ? o.options.slidesToShow + 1 : o.options.slidesToShow, i = o.slideCount; i > o.slideCount - t; --i)e = i - 1, a(o.$slides[e]).clone(!0).attr("id", "").attr("data-slick-index", e - o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned"); for (i = 0; i < t + o.slideCount; i += 1)e = i, a(o.$slides[e]).clone(!0).attr("id", "").attr("data-slick-index", e + o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned"); o.$slideTrack.find(".slick-cloned").find("[id]").each(function () { a(this).attr("id", "") }) } }, r.prototype.interrupt = function (i) { i || this.autoPlay(), this.interrupted = i }, r.prototype.selectHandler = function (i) { i = a(i.target).is(".slick-slide") ? a(i.target) : a(i.target).parents(".slick-slide"), i = (i = parseInt(i.attr("data-slick-index"))) || 0; this.slideCount <= this.options.slidesToShow ? this.slideHandler(i, !1, !0) : this.slideHandler(i) }, r.prototype.slideHandler = function (i, e, t) { var o, s, n, r, l = this; if (e = e || !1, !(!0 === l.animating && !0 === l.options.waitForAnimate || !0 === l.options.fade && l.currentSlide === i)) if (!1 === e && l.asNavFor(i), o = i, n = l.getLeft(o), e = l.getLeft(l.currentSlide), l.currentLeft = null === l.swipeLeft ? e : l.swipeLeft, !1 === l.options.infinite && !1 === l.options.centerMode && (i < 0 || i > l.getDotCount() * l.options.slidesToScroll)) !1 === l.options.fade && (o = l.currentSlide, !0 !== t && l.slideCount > l.options.slidesToShow ? l.animateSlide(e, function () { l.postSlide(o) }) : l.postSlide(o)); else if (!1 === l.options.infinite && !0 === l.options.centerMode && (i < 0 || i > l.slideCount - l.options.slidesToScroll)) !1 === l.options.fade && (o = l.currentSlide, !0 !== t && l.slideCount > l.options.slidesToShow ? l.animateSlide(e, function () { l.postSlide(o) }) : l.postSlide(o)); else { if (l.options.autoplay && clearInterval(l.autoPlayTimer), s = o < 0 ? l.slideCount % l.options.slidesToScroll != 0 ? l.slideCount - l.slideCount % l.options.slidesToScroll : l.slideCount + o : o >= l.slideCount ? l.slideCount % l.options.slidesToScroll != 0 ? 0 : o - l.slideCount : o, l.animating = !0, l.$slider.trigger("beforeChange", [l, l.currentSlide, s]), e = l.currentSlide, l.currentSlide = s, l.setSlideClasses(l.currentSlide), l.options.asNavFor && (r = (r = l.getNavTarget()).slick("getSlick")).slideCount <= r.options.slidesToShow && r.setSlideClasses(l.currentSlide), l.updateDots(), l.updateArrows(), !0 === l.options.fade) return !0 !== t ? (l.fadeSlideOut(e), l.fadeSlide(s, function () { l.postSlide(s) })) : l.postSlide(s), void l.animateHeight(); !0 !== t && l.slideCount > l.options.slidesToShow ? l.animateSlide(n, function () { l.postSlide(s) }) : l.postSlide(s) } }, r.prototype.startLoad = function () { var i = this; !0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow.hide(), i.$nextArrow.hide()), !0 === i.options.dots && i.slideCount > i.options.slidesToShow && i.$dots.hide(), i.$slider.addClass("slick-loading") }, r.prototype.swipeDirection = function () { var i = this, e = i.touchObject.startX - i.touchObject.curX, t = i.touchObject.startY - i.touchObject.curY, e = Math.atan2(t, e), e = Math.round(180 * e / Math.PI); return e < 0 && (e = 360 - Math.abs(e)), e <= 45 && 0 <= e || e <= 360 && 315 <= e ? !1 === i.options.rtl ? "left" : "right" : 135 <= e && e <= 225 ? !1 === i.options.rtl ? "right" : "left" : !0 === i.options.verticalSwiping ? 35 <= e && e <= 135 ? "down" : "up" : "vertical" }, r.prototype.swipeEnd = function (i) { var e, t, o = this; if (o.dragging = !1, o.swiping = !1, o.scrolling) return o.scrolling = !1; if (o.interrupted = !1, o.shouldClick = !(10 < o.touchObject.swipeLength), void 0 === o.touchObject.curX) return !1; if (!0 === o.touchObject.edgeHit && o.$slider.trigger("edge", [o, o.swipeDirection()]), o.touchObject.swipeLength >= o.touchObject.minSwipe) { switch (t = o.swipeDirection()) { case "left"
vendor: 6,227 bytes, lines 44-47
44: case "down": e = o.options.swipeToSlide ? o.checkNavigable(o.currentSlide + o.getSlideCount()) : o.currentSlide + o.getSlideCount(), o.currentDirection = 0; break; case "right": case "up": e = o.options.swipeToSlide ? o.checkNavigable(o.currentSlide - o.getSlideCount()) : o.currentSlide - o.getSlideCount(), o.currentDirection = 1 }"vertical" != t && (o.slideHandler(e), o.touchObject = {}, o.$slider.trigger("swipe", [o, t])) } else o.touchObject.startX !== o.touchObject.curX && (o.slideHandler(o.currentSlide), o.touchObject = {}) }, r.prototype.swipeHandler = function (i) { var e = this; if (!(!1 === e.options.swipe || "ontouchend" in document && !1 === e.options.swipe || !1 === e.options.draggable && -1 !== i.type.indexOf("mouse"))) switch (e.touchObject.fingerCount = i.originalEvent && void 0 !== i.originalEvent.touches ? i.originalEvent.touches.length : 1, e.touchObject.minSwipe = e.listWidth / e.options.touchThreshold, !0 === e.options.verticalSwiping && (e.touchObject.minSwipe = e.listHeight / e.options.touchThreshold), i.data.action) { case "start": e.swipeStart(i); break; case "move": e.swipeMove(i); break; case "end": e.swipeEnd(i) } }, r.prototype.swipeMove = function (i) { var e, t, o = this, s = void 0 !== i.originalEvent ? i.originalEvent.touches : null; return !(!o.dragging || o.scrolling || s && 1 !== s.length) && (e = o.getLeft(o.currentSlide), o.touchObject.curX = void 0 !== s ? s[0].pageX : i.clientX, o.touchObject.curY = void 0 !== s ? s[0].pageY : i.clientY, o.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(o.touchObject.curX - o.touchObject.startX, 2))), t = Math.round(Math.sqrt(Math.pow(o.touchObject.curY - o.touchObject.startY, 2))), !o.options.verticalSwiping && !o.swiping && 4 < t ? !(o.scrolling = !0) : (!0 === o.options.verticalSwiping && (o.touchObject.swipeLength = t), s = o.swipeDirection(), void 0 !== i.originalEvent && 4 < o.touchObject.swipeLength && (o.swiping = !0, i.preventDefault()), t = (!1 === o.options.rtl ? 1 : -1) * (o.touchObject.curX > o.touchObject.startX ? 1 : -1), !0 === o.options.verticalSwiping && (t = o.touchObject.curY > o.touchObject.startY ? 1 : -1), i = o.touchObject.swipeLength, (o.touchObject.edgeHit = !1) === o.options.infinite && (0 === o.currentSlide && "right" === s || o.currentSlide >= o.getDotCount() && "left" === s) && (i = o.touchObject.swipeLength * o.options.edgeFriction, o.touchObject.edgeHit = !0), !1 === o.options.vertical ? o.swipeLeft = e + i * t : o.swipeLeft = e + i * (o.$list.height() / o.listWidth) * t, !0 === o.options.verticalSwiping && (o.swipeLeft = e + i * t), !0 !== o.options.fade && !1 !== o.options.touchMove && (!0 === o.animating ? (o.swipeLeft = null, !1) : void o.setCSS(o.swipeLeft)))) }, r.prototype.swipeStart = function (i) { var e, t = this; if (t.interrupted = !0, 1 !== t.touchObject.fingerCount || t.slideCount <= t.options.slidesToShow) return !(t.touchObject = {}); void 0 !== i.originalEvent && void 0 !== i.originalEvent.touches && (e = i.originalEvent.touches[0]), t.touchObject.startX = t.touchObject.curX = void 0 !== e ? e.pageX : i.clientX, t.touchObject.startY = t.touchObject.curY = void 0 !== e ? e.pageY : i.clientY, t.dragging = !0 }, r.prototype.unfilterSlides = r.prototype.slickUnfilter = function () { var i = this; null !== i.$slidesCache && (i.unload(), i.$slideTrack.children(this.options.slide).detach(), i.$slidesCache.appendTo(i.$slideTrack), i.reinit()) }, r.prototype.unload = function () { var i = this; a(".slick-cloned", i.$slider).remove(), i.$dots && i.$dots.remove(), i.$prevArrow && i.htmlExpr.test(i.options.prevArrow) && i.$prevArrow.remove(), i.$nextArrow && i.htmlExpr.test(i.options.nextArrow) && i.$nextArrow.remove(), i.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden", "true").css("width", "") }, r.prototype.unslick = function (i) { this.$slider.trigger("unslick", [this, i]), this.destroy() }, r.prototype.updateArrows = function () { var i = this; Math.floor(i.options.slidesToShow / 2); !0 === i.options.arrows && i.slideCount > i.options.slidesToShow && !i.options.infinite && (i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), 0 === i.currentSlide ? (i.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true"), i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : (i.currentSlide >= i.slideCount - i.options.slidesToShow && !1 === i.options.centerMode || i.currentSlide >= i.slideCount - 1 && !0 === i.options.centerMode) && (i.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"))) }, r.prototype.updateDots = function () { var i = this; null !== i.$dots && (i.$dots.find("li").removeClass("slick-active").end(), i.$dots.find("li").eq(Math.floor(i.currentSlide / i.options.slidesToScroll)).addClass("slick-active")) }, r.prototype.visibility = function () { this.options.autoplay && (document[this.hidden] ? this.interrupted = !0 : this.interrupted = !1) }, a.fn.slick = function () { for (var i, e = this, t = arguments[0], o = Array.prototype.slice.call(arguments, 1), s = e.length, n = 0; n < s; n++)if ("object" == typeof t || void 0 === t ? e[n].slick = new r(e[n], t) : i = e[n].slick[t].apply(e[n].slick, o), void 0 !== i) return i; return e } });
45/**===========================================================================================================================*/
46/* Fancybox v4.0.27 */
47!function (t, e) { "object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd ? define(["exports"], e) : e((t = "undefined" != typeof globalThis ? globalThis : t || self).window = t.window || {}) }(this, (function (t) { "use strict"; function e(t, e) { var i = Object.keys(t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(t); e && (n = n.filter((function (e) { return Object.getOwnPropertyDescriptor(t, e).enumerable }))), i.push.apply(i, n) } return i } function i(t) { for (var i = 1; i < arguments.length; i++) { var n = null != arguments[i] ? arguments[i] : {};
47 i % 2 ? e(Object(n), !0).forEach((function (e) { r(t, e, n[e]) })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : e(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)) })) } return t } function n(t) { return n = "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 }, n(t) } function o(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") } function a(t, e) { for (var i = 0; i < e.length; i++) { var n = e[i]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } function s(t, e, i) { return e && a(t.prototype, e), i && a(t, i), Object.defineProperty(t, "prototype", { writable: !1 }), t } function r(t, e, i) { return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t } function l(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 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && h(t, e) } function c(t) { return c = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) { return t.__proto__ || Object.getPrototypeOf(t) }, c(t) } function h(t, e) { return h = Object.setPrototypeOf || function (t, e) { return t.__proto__ = e, t }, h(t, e) } function d(t) { if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return t } function u(t, e) { if (e && ("object" == typeof e || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return d(t) } function f(t) { var e = function () { if ("undefined" == typeof Reflect || !Reflect.construct) return !1; if (Reflect.construct.sham) return !1; if ("function" == typeof Proxy) return !0; try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function () { }))), !0 } catch (t) { return !1 } }(); return function () { var i, n = c(t); if (e) { var o = c(this).constructor; i = Reflect.construct(n, arguments, o) } else i = n.apply(this, arguments); return u(this, i) } } function v(t, e) { for (; !Object.prototype.hasOwnProperty.call(t, e) && null !== (t = c(t));); return t } function p() { return p = "undefined" != typeof Reflect && Reflect.get ? Reflect.get : function (t, e, i) { var n = v(t, e); if (n) { var o = Object.getOwnPropertyDescriptor(n, e); return o.get ? o.get.call(arguments.length < 3 ? t : i) : o.value } }, p.apply(this, arguments) } function g(t, e) { return function (t) { if (Array.isArray(t)) return t }(t) || function (t, e) { var i = null == t ? null : "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; if (null == i) return; var n, o, a = [], s = !0, r = !1; try { for (i = i.call(t); !(s = (n = i.next()).done) && (a.push(n.value), !e || a.length !== e); s = !0); } catch (t) { r = !0, o = t } finally { try { s || null == i.return || i.return() } finally { if (r) throw o } } return a }(t, e) || y(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") }() } function m(t) { return function (t) { if (Array.isArray(t)) return b(t) }(t) || function (t) { if ("undefined" != typeof Symbol && null != t[Symbol.iterator] || null != t["@@iterator"]) return Array.from(t) }(t) || y(t) || function () { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") }() } function y(t, e) { if (t) { if ("string" == typeof t) return b(t, e); var i = Object.prototype.toString.call(t).slice(8, -1); return "Object" === i && t.constructor && (i = t.constructor.name), "Map" === i || "Set" === i ? Array.from(t) : "Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? b(t, e) : void 0 } } function b(t, e) { (null == e || e > t.length) && (e = t.length); for (var i = 0, n = new Array(e); i < e; i++)n[i] = t[i]; return n } function x(t, e) { var i = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; if (!i) { if (Array.isArray(t) || (i = y(t)) || e && t && "number" == typeof t.length) { i && (t = i); var n = 0, o = function () { }; return { s: o, n: function () { return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] } }, e: function (t) { throw t }, f: o } } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") } var a, s = !0, r = !1; return { s: function () { i = i.call(t) }, n: function () { var t = i.next(); return s = t.done, t }, e: function (t) { r = !0, a = t }, f: function () { try { s || null == i.return || i.return() } finally { if (r) throw a } } } } var w = function (t) { return "object" === n(t) && null !== t && t.constructor === Object && "[object Object]" === Object.prototype.toString.call(t) }, k = function t() { for (var e = !1, i = arguments.length, o = new Array(i), a = 0; a < i; a++)o[a] = arguments[a]; "boolean" == typeof o[0] && (e = o.shift()); var s = o[0]; if (!s || "object" !== n(s)) throw new Error("extendee must be an object"); for (var r = o.slice(1), l = r.length, c = 0; c < l; c++) { var h = r[c]; for (var d in h) if (h.hasOwnProperty(d)) { var u = h[d]; if (e && (Array.isArray(u) || w(u))) { var f = Array.isArray(u) ? [] : {}; s[d] = t(!0, s.hasOwnProperty(d) ? s[d] : f, u) } else s[d] = u } } return s }, S = function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1e4; return t = parseFloat(t) || 0, Math.round((t + Number.EPSILON) * e) / e }, C = function t(e) { return !!(e && "object" === n(e) && e instanceof Element && e !== document.body) && (!e.__Panzoom && (function (t) { var e = getComputedStyle(t)["overflow-y"], i = getComputedStyle(t)["overflow-x"], n = ("scroll" === e || "auto" === e) && Math.abs(t.scrollHeight - t.clientHeight) > 1, o = ("scroll" === i || "auto" === i) && Math.abs(t.scrollWidth - t.clientWidth) > 1; return n || o }(e) ? e : t(e.parentNode))) }, $ = "undefined" != typeof window && window.ResizeObserver || function () { function t(e) { o(this, t), this.observables = [], this.boundCheck = this.check.bind(this), this.boundCheck(), this.callback = e } return s(t, [{ key: "observe", value: function (t) { if (!this.observables.some((function (e) { return e.el === t }))) { var e = { el: t, size: { height: t.clientHeight, width: t.clientWidth } }; this.observables.push(e) } } }, { key: "unobserve", value: function (t) { this.observables = this.observables.filter((function (e) { return e.el !== t })) } }, { key: "disconnect", value: function () { this.observables = [] } }, { key: "check", value: function () { var t = this.observables.filter((function (t) { var e = t.el.clientHeight, i = t.el.clientWidth; if (t.size.height !== e || t.size.width !== i) return t.size.height = e, t.size.width = i, !0 })).map((function (t) { return t.el })); t.length > 0 && this.callback(t), window.requestAnimationFrame(this.boundCheck) } }]), t }(), E = s((function t(e) { o(this, t), this.id = self.Touch && e instanceof Touch ? e.identifier : -1, this.pageX = e.pageX, this.pageY = e.pageY, this.clientX = e.clientX, this.clientY = e.clientY })), P = function (t, e) { return e ? Math.sqrt(Math.pow(e.clientX - t.clientX, 2) + Math.pow(e.clientY - t.clientY, 2)) : 0 }, T = function (t, e) { return e ? { clientX: (t.clientX + e.clientX) / 2, clientY: (t.clientY + e.clientY) / 2 } : t }, L = function (t) { return "changedTouches" in t }, _ = function () { function t(e) { var i = this, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, a = n.start, s = void 0 === a ? function () { return !0 } : a, r = n.move, l = void 0 === r ? function () { } : r, c = n.end, h = void 0 === c ? function () { } : c; o(this, t), this._element = e, this.startPointers = [], this.currentPointers = [], this._pointerStart = function (t) { if (!(t.buttons > 0 && 0 !== t.button)) { var e = new E(t); i.currentPointers.some((function (t) { return t.id === e.id })) || i._triggerPointerStart(e, t) && (window.addEventListener("mousemove", i._move), window.addEventListener("mouseup", i._pointerEnd)) } }, this._touchStart = function (t) { for (var e = 0, n = Array.from(t.changedTouches || []); e < n.length; e++) { var o = n[e]; i._triggerPointerStart(new E(o), t) } }, this._move = function (t) { var e, n = i.currentPointers.slice(), o = L(t) ? Array.from(t.changedTouches).map((function (t) { return new E(t) })) : [new E(t)], a = [], s = x(o); try { var r = function () { var t = e.value, n = i.currentPointers.findIndex((function (e) { return e.id === t.id })); if (n < 0) return "continue"; a.push(t), i.currentPointers[n] = t }; for (s.s(); !(e = s.n()).done;)r() } catch (t) { s.e(t) } finally { s.f() } i._moveCallback(n, i.currentPointers.slice(), t) }, this._triggerPointerEnd = function (t, e) { var n = i.currentPointers.findIndex((function (e) { return e.id === t.id })); return !(n < 0) && (i.currentPointers.splice(n, 1), i.startPointers.splice(n, 1), i._endCallback(t, e), !0) }, this._pointerEnd = function (t) { t.buttons > 0 && 0 !== t.button || i._triggerPointerEnd(new E(t), t) && (window.removeEventListener("mousemove", i._move, { passive: !1 }), window.removeEventListener("mouseup", i._pointerEnd, { passive: !1 })) }, this._touchEnd = function (t) { for (var e = 0, n = Array.from(t.changedTouches || []); e < n.length; e++) { var o = n[e]; i._triggerPointerEnd(new E(o), t) } }, this._startCallback = s, this._moveCallback = l, this._endCallback = h, this._element.addEventListener("mousedown", this._pointerStart, { passive: !1 }), this._element.addEventListener("touchstart", this._touchStart, { passive: !1 }), this._element.addEventListener("touchmove", this._move, { passive: !1 }), this._element.addEventListener("touchend", this._touchEnd), this._element.addEventListener("touchcancel", this._touchEnd) } return s(t, [{ key: "stop", value: function () { this._element.removeEventListener("mousedown", this._pointerStart, { passive: !1 }), this._element.removeEventListener("touchstart", this._touchStart, { passive: !1 }), this._element.removeEventListener("touchmove", this._move, { passive: !1 }), this._element.removeEventListener("touchend", this._touchEnd), this._element.removeEventListener("touchcancel", this._touchEnd), window.removeEventListener("mousemove", this._move), window.removeEventListener("mouseup", this._pointerEnd) } }, { key: "_triggerPointerStart", value: function (t, e) { return !!this._startCallback(t, e) && (this.currentPointers.push(t), this.startPointers.push(t), !0) } }]), t }(), A = function (t, e) { return t.split(".").reduce((function (t, e) { return t && t[e] }), e) }, O = function () { function t() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; o(this, t), this.options = k(!0, {}, e), this.plugins = [], this.events = {}; for (var i = 0, n = ["on", "once"]; i < n.length; i++)for (var a = n[i], s = 0, r = Object.entries(this.options[a] || {}); s < r.length; s++) { var l = r[s]; this[a].apply(this, m(l)) } } return s(t, [{ key: "option", value: function (t, e) { t = String(t); var i = A(t, this.options); if ("function" == typeof i) { for (var n, o = arguments.length, a = new Array(o > 2 ? o - 2 : 0), s = 2; s < o; s++)a[s - 2] = arguments[s]; i = (n = i).call.apply(n, [this, this].concat(a)) } return void 0 === i ? e : i } }, { key: "localize", value: function (t) { var e = this, i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : []; return t = (t = String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g, (function (t, n, o) { var a = ""; o ? a = e.option("".concat(n[0] + n.toLowerCase().substring(1), ".l10n.").concat(o)) : n && (a = e.option("l10n.".concat(n))), a || (a = t); for (var s = 0; s < i.length; s++)a = a.split(i[s][0]).join(i[s][1]); return a }))).replace(/\{\{(.*)\}\}/, (function (t, e) { return e })) } }, { key: "on", value: function (t, e) { var i = this; if (w(t)) { for (var n = 0, o = Object.entries(t); n < o.length; n++) { var a = o[n]; this.on.apply(this, m(a)) } return this } return String(t).split(" ").forEach((function (t) { var n = i.events[t] = i.events[t] || []; -1 == n.indexOf(e) && n.push(e) })), this } }, { key: "once", value: function (t, e) { var i = this; if (w(t)) { for (var n = 0, o = Object.entries(t); n < o.length; n++) { var a = o[n]; this.once.apply(this, m(a)) } return this } return String(t).split(" ").forEach((function (t) { var n = function n() { i.off(t, n); for (var o = arguments.length, a = new Array(o), s = 0; s < o; s++)a[s] = arguments[s]; e.call.apply(e, [i, i].concat(a)) }; n._ = e, i.on(t, n) })), this } }, { key: "off", value: function (t, e) { var i = this; if (!w(t)) return t.split(" ").forEach((function (t) { var n = i.events[t]; if (!n || !n.length) return i; for (var o = -1, a = 0, s = n.length; a < s; a++) { var r = n[a]; if (r && (r === e || r._ === e)) { o = a; break } } -1 != o && n.splice(o, 1) })), this; for (var n = 0, o = Object.entries(t); n < o.length; n++) { var a = o[n]; this.off.apply(this, m(a)) } } }, { key: "trigger", value: function (t) { for (var e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)i[n - 1] = arguments[n]; var o, a = x(m(this.events[t] || []).slice()); try { for (a.s(); !(o = a.n()).done;) { var s = o.value; if (s && !1 === s.call.apply(s, [this, this].concat(i))) return !1 } } catch (t) { a.e(t) } finally { a.f() } var r, l = x(m(this.events["*"] || []).slice()); try { for (l.s(); !(r = l.n()).done;) { var c = r.value; if (c && !1 === c.call.apply(c, [this, t, this].concat(i))) return !1 } } catch (t) { l.e(t) } finally { l.f() } return !0 } }, { key: "attachPlugins", value: function (t) { for (var e = {}, i = 0, n = Object.entries(t || {}); i < n.length; i++) { var o = g(n[i], 2), a = o[0], s = o[1]; !1 === this.options[a] || this.plugins[a] || (this.options[a] = k({}, s.defaults || {}, this.options[a]), e[a] = new s(this)) } for (var r = 0, l = Object.entries(e); r < l.length; r++) { var c = g(l[r], 2); c[0], c[1].attach(this) } return this.plugins = Object.assign({}, this.plugins, e), this } }, { key: "detachPlugins", value: function () { for (var t in this.plugins) { var e = void 0; (e = this.plugins[t]) && "function" == typeof e.detach && e.detach(this) } return this.plugins = {}, this } }]), t }(), z = { touch: !0, zoom: !0, pinchToZoom: !0, panOnlyZoomed: !1, lockAxis: !1, friction: .64, decelFriction: .88, zoomFriction: .74, bounceForce: .2, baseScale: 1, minScale: 1, maxScale: 2, step: .5, textSelection: !1, click: "toggleZoom", wheel: "zoom", wheelFactor: 42, wheelLimit: 5, draggableClass: "is-draggable", draggingClass: "is-dragging", ratio: 1 }, M = function (t) { l(n, t); var e = f(n); function n(t) { var i, a = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; o(this, n), (i = e.call(this, k(!0, {}, z, a))).state = "init", i.$container = t; for (var s = 0, r = ["onLoad", "onWheel", "onClick"]; s < r.length; s++) { var l = r[s]; i[l] = i[l].bind(d(i)) } return i.initLayout(), i.resetValues(), i.attachPlugins(n.Plugins), i.trigger("init"), i.updateMetrics(), i.attachEvents(), i.trigger("ready"), !1 === i.option("centerOnStart") ? i.state = "ready" : i.panTo({ friction: 0 }), t.__Panzoom = d(i), i } return s(n, [{ key: "initLayout", value: function () { var t = this.$container; if (!(t instanceof HTMLElement)) throw new Error("Panzoom: Container not found"); var e = this.option("content") || t.querySelector(".panzoom__content"); if (!e) throw new Error("Panzoom: Content not found"); this.$content = e; var i, n = this.option("viewport") || t.querySelector(".panzoom__viewport"); n || !1 === this.option("wrapInner") || ((n = document.createElement("div")).classList.add("panzoom__viewport"), (i = n).append.apply(i, m(t.childNodes
47)), t.appendChild(n)); this.$viewport = n || e.parentNode } }, { key: "resetValues", value: function () { this.updateRate = this.option("updateRate", /iPhone|iPad|iPod|Android/i.test(navigator.userAgent) ? 250 : 24), this.container = { width: 0, height: 0 }, this.viewport = { width: 0, height: 0 }, this.content = { origWidth: 0, origHeight: 0, width: 0, height: 0, x: this.option("x", 0), y: this.option("y", 0), scale: this.option("baseScale") }, this.transform = { x: 0, y: 0, scale: 1 }, this.resetDragPosition() } }, { key: "onLoad", value: function (t) { this.updateMetrics(), this.panTo({ scale: this.option("baseScale"), friction: 0 }), this.trigger("load", t) } }, { key: "onClick", value: function (t) { if (!t.defaultPrevented) if (this.option("textSelection") && window.getSelection().toString().length) t.stopPropagation(); else { var e = this.$content.getClientRects()[0]; if ("ready" !== this.state && (this.dragPosition.midPoint || Math.abs(e.top - this.dragStart.rect.top) > 1 || Math.abs(e.left - this.dragStart.rect.left) > 1)) return t.preventDefault(), void t.stopPropagation(); !1 !== this.trigger("click", t) && this.option("zoom") && "toggleZoom" === this.option("click") && (t.preventDefault(), t.stopPropagation(), this.zoomWithClick(t)) } } }, { key: "onWheel", value: function (t) { !1 !== this.trigger("wheel", t) && this.option("zoom") && this.option("wheel") && this.zoomWithWheel(t) } }, { key: "zoomWithWheel", value: function (t) { void 0 === this.changedDelta && (this.changedDelta = 0); var e = Math.max(-1, Math.min(1, -t.deltaY || -t.deltaX || t.wheelDelta || -t.detail)), i = this.content.scale, n = i * (100 + e * this.option("wheelFactor")) / 100; if (e < 0 && Math.abs(i - this.option("minScale")) < .01 || e > 0 && Math.abs(i - this.option("maxScale")) < .01 ? (this.changedDelta += Math.abs(e), n = i) : (this.changedDelta = 0, n = Math.max(Math.min(n, this.option("maxScale")), this.option("minScale"))), !(this.changedDelta > this.option("wheelLimit")) && (t.preventDefault(), n !== i)) { var o = this.$content.getBoundingClientRect(), a = t.clientX - o.left, s = t.clientY - o.top; this.zoomTo(n, { x: a, y: s }) } } }, { key: "zoomWithClick", value: function (t) { var e = this.$content.getClientRects()[0], i = t.clientX - e.left, n = t.clientY - e.top; this.toggleZoom({ x: i, y: n }) } }, { key: "attachEvents", value: function () { var t = this; this.$content.addEventListener("load", this.onLoad), this.$container.addEventListener("wheel", this.onWheel, { passive: !1 }), this.$container.addEventListener("click", this.onClick, { passive: !1 }), this.initObserver(); var e = new _(this.$container, { start: function (i, n) { if (!t.option("touch")) return !1; if (t.velocity.scale < 0) return !1; var o = n.composedPath()[0]; if (!e.currentPointers.length) { if (-1 !== ["BUTTON", "TEXTAREA", "OPTION", "INPUT", "SELECT", "VIDEO"].indexOf(o.nodeName)) return !1; if (t.option("textSelection") && function (t, e, i) { for (var n = t.childNodes, o = document.createRange(), a = 0; a < n.length; a++) { var s = n[a]; if (s.nodeType === Node.TEXT_NODE) { o.selectNodeContents(s); var r = o.getBoundingClientRect(); if (e >= r.left && i >= r.top && e <= r.right && i <= r.bottom) return s } } return !1 }(o, i.clientX, i.clientY)) return !1 } return !C(o) && (!1 !== t.trigger("touchStart", n) && ("mousedown" === n.type && n.preventDefault(), t.state = "pointerdown", t.resetDragPosition(), t.dragPosition.midPoint = null, t.dragPosition.time = Date.now(), !0)) }, move: function (i, n, o) { if ("pointerdown" === t.state) if (!1 !== t.trigger("touchMove", o)) { if (!(n.length < 2 && !0 === t.option("panOnlyZoomed") && t.content.width <= t.viewport.width && t.content.height <= t.viewport.height && t.transform.scale <= t.option("baseScale")) && (!(n.length > 1) || t.option("zoom") && !1 !== t.option("pinchToZoom"))) { var a = T(i[0], i[1]), s = T(n[0], n[1]), r = s.clientX - a.clientX, l = s.clientY - a.clientY, c = P(i[0], i[1]), h = P(n[0], n[1]), d = c && h ? h / c : 1; t.dragOffset.x += r, t.dragOffset.y += l, t.dragOffset.scale *= d, t.dragOffset.time = Date.now() - t.dragPosition.time; var u = 1 === t.dragStart.scale && t.option("lockAxis"); if (u && !t.lockAxis) { if (Math.abs(t.dragOffset.x) < 6 && Math.abs(t.dragOffset.y) < 6) return void o.preventDefault(); var f = Math.abs(180 * Math.atan2(t.dragOffset.y, t.dragOffset.x) / Math.PI); t.lockAxis = f > 45 && f < 135 ? "y" : "x" } if ("xy" === u || "y" !== t.lockAxis) { if (o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation(), t.lockAxis && (t.dragOffset["x" === t.lockAxis ? "y" : "x"] = 0), t.$container.classList.add(t.option("draggingClass")), t.transform.scale === t.option("baseScale") && "y" === t.lockAxis || (t.dragPosition.x = t.dragStart.x + t.dragOffset.x), t.transform.scale === t.option("baseScale") && "x" === t.lockAxis || (t.dragPosition.y = t.dragStart.y + t.dragOffset.y), t.dragPosition.scale = t.dragStart.scale * t.dragOffset.scale, n.length > 1) { var v = T(e.startPointers[0], e.startPointers[1]), p = v.clientX - t.dragStart.rect.x, g = v.clientY - t.dragStart.rect.y, m = t.getZoomDelta(t.content.scale * t.dragOffset.scale, p, g), y = m.deltaX, b = m.deltaY; t.dragPosition.x -= y, t.dragPosition.y -= b, t.dragPosition.midPoint = s } else t.setDragResistance(); t.transform = { x: t.dragPosition.x, y: t.dragPosition.y, scale: t.dragPosition.scale }, t.startAnimation() } } } else o.preventDefault() }, end: function (n, o) { if ("pointerdown" === t.state) if (t._dragOffset = i({}, t.dragOffset), e.currentPointers.length) t.resetDragPosition(); else if (t.state = "decel", t.friction = t.option("decelFriction"), t.recalculateTransform(), t.$container.classList.remove(t.option("draggingClass")), !1 !== t.trigger("touchEnd", o) && "decel" === t.state) { var a = t.option("minScale"); if (t.transform.scale < a) t.zoomTo(a, { friction: .64 }); else { var s = t.option("maxScale"); if (t.transform.scale - s > .01) { var r = t.dragPosition.midPoint || n, l = t.$content.getClientRects()[0]; t.zoomTo(s, { friction: .64, x: r.clientX - l.left, y: r.clientY - l.top }) } else; } } } }); this.pointerTracker = e } }, { key: "initObserver", value: function () { var t = this; this.resizeObserver || (this.resizeObserver = new $((function () { t.updateTimer || (t.updateTimer = setTimeout((function () { var e = t.$container.getBoundingClientRect(); e.width && e.height ? ((Math.abs(e.width - t.container.width) > 1 || Math.abs(e.height - t.container.height) > 1) && (t.isAnimating() && t.endAnimation(!0), t.updateMetrics(), t.panTo({ x: t.content.x, y: t.content.y, scale: t.option("baseScale"), friction: 0 })), t.updateTimer = null) : t.updateTimer = null }), t.updateRate)) })), this.resizeObserver.observe(this.$container)) } }, { key: "resetDragPosition", value: function () { this.lockAxis = null, this.friction = this.option("friction"), this.velocity = { x: 0, y: 0, scale: 0 }; var t = this.content, e = t.x, n = t.y, o = t.scale; this.dragStart = { rect: this.$content.getBoundingClientRect(), x: e, y: n, scale: o }, this.dragPosition = i(i({}, this.dragPosition), {}, { x: e, y: n, scale: o }), this.dragOffset = { x: 0, y: 0, scale: 1, time: 0 } } }, { key: "updateMetrics", value: function (t) { !0 !== t && this.trigger("beforeUpdate"); var e, n = this.$container, o = this.$content, a = this.$viewport, s = o instanceof HTMLImageElement, r = this.option("zoom"), l = this.option("resizeParent", r), c = this.option("width"), h = this.option("height"), d = c || (e = o, Math.max(parseFloat(e.naturalWi
47dth || 0), parseFloat(e.width && e.width.baseVal && e.width.baseVal.value || 0), parseFloat(e.offsetWidth || 0), parseFloat(e.scrollWidth || 0))), u = h || function (t) { return Math.max(parseFloat(t.naturalHeight || 0), parseFloat(t.height && t.height.baseVal && t.height.baseVal.value || 0), parseFloat(t.offsetHeight || 0), parseFloat(t.scrollHeight || 0)) }(o); Object.assign(o.style, { width: c ? "".concat(c, "px") : "", height: h ? "".concat(h, "px") : "", maxWidth: "", maxHeight: "" }), l && Object.assign(a.style, { width: "", height: "" }); var f = this.option("ratio"); c = d = S(d * f), h = u = S(u * f); var v = o.getBoundingClientRect(), p = a.getBoundingClientRect(), g = a == n ? p : n.getBoundingClientRect(), m = Math.max(a.offsetWidth, S(p.width)), y = Math.max(a.offsetHeight, S(p.height)), b = window.getComputedStyle(a); if (m -= parseFloat(b.paddingLeft) + parseFloat(b.paddingRight), y -= parseFloat(b.paddingTop) + parseFloat(b.paddingBottom), this.viewport.width = m, this.viewport.height = y, r) { if (Math.abs(d - v.width) > .1 || Math.abs(u - v.height) > .1) { var x = function (t, e, i, n) { var o = Math.min(i / t || 0, n / e); return { width: t * o || 0, height: e * o || 0 } }(d, u, Math.min(d, v.width), Math.min(u, v.height)); c = S(x.width), h = S(x.height) } Object.assign(o.style, { width: "".concat(c, "px"), height: "".concat(h, "px"), transform: "" }) } if (l && (Object.assign(a.style, { width: "".concat(c, "px"), height: "".concat(h, "px") }), this.viewport = i(i({}, this.viewport), {}, { width: c, height: h })), s && r && "function" != typeof this.options.maxScale) { var w = this.option("maxScale"); this.options.maxScale = function () { return this.content.origWidth > 0 && this.content.fitWidth > 0 ? this.content.origWidth / this.content.fitWidth : w } } this.content = i(i({}, this.content), {}, { origWidth: d, origHeight: u, fitWidth: c, fitHeight: h, width: c, height: h, scale: 1, isZoomable: r }), this.container = { width: g.width, height: g.height }, !0 !== t && this.trigger("afterUpdate") } }, { key: "zoomIn", value: function (t) { this.zoomTo(this.content.scale + (t || this.option("step"))) } }, { key: "zoomOut", value: function (t) { this.zoomTo(this.content.scale - (t || this.option("step"))) } }, { key: "toggleZoom", value: function () { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, e = this.option("maxScale"), i = this.option("baseScale"), n = this.content.scale > i + .5 * (e - i) ? i : e; this.zoomTo(n, t) } }, { key: "zoomTo", value: function () { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : this.option("baseScale"), e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, i = e.x, n = void 0 === i ? null : i, o = e.y, a = void 0 === o ? null : o; t = Math.max(Math.min(t, this.option("maxScale")), this.option("minScale")); var s = S(this.content.scale / (this.content.width / this.content.fitWidth), 1e7); null === n && (n = this.content.width * s * .5), null === a && (a = this.content.height * s * .5); var r = this.getZoomDelta(t, n, a), l = r.deltaX, c = r.deltaY; n = this.content.x - l, a = this.content.y - c, this.panTo({ x: n, y: a, scale: t, friction: this.option("zoomFriction") }) } }, { key: "getZoomDelta", value: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0, i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0, n = this.content.fitWidth * this.content.scale, o = this.content.fitHeight * this.content.scale, a = e > 0 && n ? e / n : 0, s = i > 0 && o ? i / o : 0, r = this.content.fitWidth * t, l = this.content.fitHeight * t, c = (r - n) * a, h = (l - o) * s; return { deltaX: c, deltaY: h } } }, { key: "panTo", value: function () { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, e = t.x, n = void 0 === e ? this.content.x : e, o = t.y, a = void 0 === o ? this.content.y : o, s = t.scale, r = t.friction, l = void 0 === r ? this.option("friction") : r, c = t.ignoreBounds, h = void 0 !== c && c; if (s = s || this.content.scale || 1, !h) { var d = this.getBounds(s), u = d.boundX, f = d.boundY; u && (n = Math.max(Math.min(n, u.to), u.from)), f && (a = Math.max(Math.min(a, f.to), f.from)) } this.friction = l, this.transform = i(i({}, this.transform), {}, { x: n, y: a, scale: s }), l ? (this.state = "panning", this.velocity = { x: (1 / this.friction - 1) * (n - this.content.x), y: (1 / this.friction - 1) * (a - this.content.y), scale: (1 / this.friction - 1) * (s - this.content.scale) }, this.startAnimation()) : this.endAnimation() } }, { key: "startAnimation", value: function () { var t = this; this.rAF ? cancelAnimationFrame(this.rAF) : this.trigger("startAnimation"), this.rAF = requestAnimationFrame((function () { return t.animate() })) } }, { key: "animate", value: function () { var t = this; if (this.setEdgeForce(), this.setDragForce(), this.velocity.x *= this.friction, this.velocity.y *= this.friction, this.velocity.scale *= this.friction, this.content.x += this.velocity.x, this.content.y += this.velocity.y, this.content.scale += this.velocity.scale, this.isAnimating()) this.setTransform(); else if ("pointerdown" !== this.state) return void this.endAnimation(); this.rAF = requestAnimationFrame((function () { return t.animate() })) } }, { key: "getBounds", value: function (t) { var e = this.boundX, i = this.boundY; if (void 0 !== e && void 0 !== i) return { boundX: e, boundY: i }; e = { from: 0, to: 0 }, i = { from: 0, to: 0 }, t = t || this.transform.scale; var n = this.content.fitWidth * t, o = this.content.fitHeight * t, a = this.viewport.width, s = this.viewport.height; if (n < a) { var r = S(.5 * (a - n)); e.from = r, e.to = r } else e.from = S(a - n); if (o < s) { var l = .5 * (s - o); i.from = l, i.to = l } else i.from = S(s - o); return { boundX: e, boundY: i } } }, { key: "setEdgeForce", value: function () { if ("decel" === this.state) { var t, e, i, n, o = this.option("bounceForce"), a = this.getBounds(Math.max(this.transform.scale, this.content.scale)), s = a.boundX, r = a.boundY; if (s && (t = this.content.x < s.from, e = this.content.x > s.to), r && (i = this.content.y < r.from, n = this.content.y > r.to), t || e) { var l = ((t ? s.from : s.to) - this.content.x) * o, c = this.content.x + (this.velocity.x + l) / this.friction; c >= s.from && c <= s.to && (l += this.velocity.x), this.velocity.x = l, this.recalculateTransform() } if (i || n) { var h = ((i ? r.from : r.to) - this.content.y) * o, d = this.content.y + (h + this.velocity.y) / this.friction; d >= r.from && d <= r.to && (h += this.velocity.y), this.velocity.y = h, this.recalculateTransform() } } } }, { key: "setDragResistance", value: function () { if ("pointerdown" === this.state) { var t, e, i, n, o = this.getBounds(this.dragPosition.scale), a = o.boundX, s = o.boundY; if (a && (t = this.dragPosition.x < a.from, e = this.dragPosition.x > a.to), s && (i = this.dragPosition.y < s.from, n = this.dragPosition.y > s.to), (t || e) && (!t || !e)) { var r = t ? a.from : a.to, l = r - this.dragPosition.x; this.dragPosition.x = r - .3 * l } if ((i || n) && (!i || !n)) { var c = i ? s.from : s.to, h = c - this.dragPosition.y; this.dragPosition.y = c - .3 * h } } } }, { key: "setDragForce", value: function () { "pointerdown" === this.state && (this.velocity.x = this.dragPosition.x - this.content.x, this.velocity.y = this.dragPosition.y - this.content.y, this.velocity.scale = this.dragPosition.scale - this.content.scale) } }
47, { key: "recalculateTransform", value: function () { this.transform.x = this.content.x + this.velocity.x / (1 / this.friction - 1), this.transform.y = this.content.y + this.velocity.y / (1 / this.friction - 1), this.transform.scale = this.content.scale + this.velocity.scale / (1 / this.friction - 1) } }, { key: "isAnimating", value: function () { return !(!this.friction || !(Math.abs(this.velocity.x) > .05 || Math.abs(this.velocity.y) > .05 || Math.abs(this.velocity.scale) > .05)) } }, { key: "setTransform", value: function (t) { var e, n, o, a, s; (t ? (e = S(this.transform.x), n = S(this.transform.y), o = this.transform.scale, this.content = i(i({}, this.content), {}, { x: e, y: n, scale: o })) : (e = S(this.content.x), n = S(this.content.y), o = this.content.scale / (this.content.width / this.content.fitWidth), this.content = i(i({}, this.content), {}, { x: e, y: n })), this.trigger("beforeTransform"), e = S(this.content.x), n = S(this.content.y), t && this.option("zoom")) ? (a = S(this.content.fitWidth * o), s = S(this.content.fitHeight * o), this.content.width = a, this.content.height = s, this.transform = i(i({}, this.transform), {}, { width: a, height: s, scale: o }), Object.assign(this.$content.style, { width: "".concat(a, "px"), height: "".concat(s, "px"), maxWidth: "none", maxHeight: "none", transform: "translate3d(".concat(e, "px, ").concat(n, "px, 0) scale(1)") })) : this.$content.style.transform = "translate3d(".concat(e, "px, ").concat(n, "px, 0) scale(").concat(o, ")"); this.trigger("afterTransform") } }, { key: "endAnimation", value: function (t) { cancelAnimationFrame(this.rAF), this.rAF = null, this.velocity = { x: 0, y: 0, scale: 0 }, this.setTransform(!0), this.state = "ready", this.handleCursor(), !0 !== t && this.trigger("endAnimation") } }, { key: "handleCursor", value: function () { var t = this.option("draggableClass"); t && this.option("touch") && (1 == this.option("panOnlyZoomed") && this.content.width <= this.viewport.width && this.content.height <= this.viewport.height && this.transform.scale <= this.option("baseScale") ? this.$container.classList.remove(t) : this.$container.classList.add(t)) } }, { key: "detachEvents", value: function () { this.$content.removeEventListener("load", this.onLoad), this.$container.removeEventListener("wheel", this.onWheel, { passive: !1 }), this.$container.removeEventListener("click", this.onClick, { passive: !1 }), this.pointerTracker && (this.pointerTracker.stop(), this.pointerTracker = null), this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = null) } }
47, { key: "destroy", value: function () { "destroy" !== this.state && (this.state = "destroy", clearTimeout(this.updateTimer), this.updateTimer = null, cancelAnimationFrame(this.rAF), this.rAF = null, this.detachEvents(), this.detachPlugins(), this.resetDragPosition()) } }]), n }(O); M.version = "4.0.27", M.Plugins = {}; var I = function (t, e) { var i = 0; return function () { var n = (new Date).getTime(); if (!(n - i < e)) return i = n, t.apply(void 0, arguments) } }, R = function () { function t(e) { o(this, t), this.$container = null, this.$prev = null, this.$next = null, this.carousel = e, this.onRefresh = this.onRefresh.bind(this) } return s(t, [{ key: "option", value: function (t) { return this.carousel.option("Navigation.".concat(t)) } }, { key: "createButton", value: function (t) { var e, i = this, n = document.createElement("button"); n.setAttribute("title", this.carousel.localize("{{".concat(t.toUpperCase(), "}}"))); var o = this.option("classNames.button") + " " + this.option("classNames.".concat(t)); return (e = n.classList).add.apply(e, m(o.split(" "))), n.setAttribute("tabindex", "0"), n.innerHTML = this.carousel.localize(this.option("".concat(t, "Tpl"))), n.addEventListener("click", (function (e) { e.preventDefault(), e.stopPropagation(), i.carousel["slide".concat("next" === t ? "Next" : "Prev")]() })), n } }, { key: "build", value: function () { var t; this.$container || (this.$container = document.createElement("div"), (t = this.$container.classList).add.apply(t, m(this.option("classNames.main").split(" "))), this.carousel.$container.appendChild(this.$container)); this.$next || (this.$next = this.createButton("next"), this.$container.appendChild(this.$next)), this.$prev || (this.$prev = this.createButton("prev"), this.$container.appendChild(this.$prev)) } }, { key: "onRefresh", value: function () { var t = this.carousel.pages.length; t <= 1 || t > 1 && this.carousel.elemDimWidth < this.carousel.wrapDimWidth && !Number.isInteger(this.carousel.option("slidesPerPage")) ? this.cleanup() : (this.build(), this.$prev.removeAttribute("disabled"), this.$next.removeAttribute("disabled"), this.carousel.option("infiniteX", this.carousel.option("infinite")) || (this.carousel.page <= 0 && this.$prev.setAttribute("disabled", ""), this.carousel.page >= t - 1 && this.$next.setAttribute("disabled", ""))) } }, { key: "cleanup", value: function () { this.$prev && this.$prev.remove(), this.$prev = null, this.$next && this.$next.remove(), this.$next = null, this.$container && this.$container.remove(), this.$container = null } }, { key: "attach", value: function () { this.carousel.on("refresh change", this.onRefresh) } }, { key: "detach", value: function () { this.carousel.off("refresh change", this.onRefresh), this.cleanup() } }]), t }(); R.defaults = { prevTpl: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>', nextTpl: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>', classNames: { main: "carousel__nav", button: "carousel__button", next: "is-next", prev: "is-prev" } }; var F = function () { function t(e) { o(this, t), this.carousel = e, this.$list = null, this.events = { change: this.onChange.bind(this), refresh: this.onRefresh.bind(this) } } return s(t, [{ key: "buildList", value: function () { var t = this; if (!(this.carousel.pages.length < this.carousel.option("Dots.minSlideCount"))) { var e = document.createElement("ol"); return e.classList.add("carousel__dots"), e.addEventListener("click", (function (e) { if ("page" in e.target.dataset) { e.preventDefault(), e.stopPropagation(); var i = parseInt(e.target.dataset.page, 10), n = t.carousel; i !== n.page && (n.pages.length < 3 && n.option("infinite") ? n[0 == i ? "slidePrev" : "slideNext"]() : n.slideTo(i)) } })), this.$list = e, this.carousel.$container.appendChild(e), this.carousel.$container.classList.add("has-dots"), e } } }, { key: "removeList", value: function () { this.$list && (this.$list.parentNode.removeChild(this.$list), this.$list = null), this.carousel.$container.classList.remove("has-dots") } }, { key: "rebuildDots", value: function () { var t = this, e = this.$list, i = !!e, n = this.carousel.pages.length; if (n < 2) i && this.removeList(); else { i || (e = this.buildList()); var o = this.$list.children.length; if (o > n) for (var a = n; a < o; a++)this.$list.removeChild(this.$list.lastChild); else { for (var s = function (e) { var i = document.createElement("li"); i.classList.add("carousel__dot"), i.dataset.page = e, i.setAttribute("role", "button"), i.setAttribute("tabindex", "0"), i.setAttribute("title", t.carousel.localize("{{GOTO}}", [["%d", e + 1]])), i.addEventListener("keydown", (function (t) { var e, n = t.code; "Enter" === n || "NumpadEnter" === n ? e = i : "ArrowRight" === n ? e = i.nextSibling : "ArrowLeft" === n && (e = i.previousSibling), e && e.click() })), t.$list.appendChild(i) }, r = o; r < n; r++)s(r); this.setActiveDot() } } } }, { key: "setActiveDot", value: function () { if (this.$list) { this.$list.childNodes.forEac
47h((function (t) { t.classList.remove("is-selected") })); var t = this.$list.childNodes[this.carousel.page]; t && t.classList.add("is-selected") } } }, { key: "onChange", value: function () { this.setActiveDot() } }, { key: "onRefresh", value: function () { this.rebuildDots() } }, { key: "attach", value: function () { this.carousel.on(this.events) } }, { key: "detach", value: function () { this.removeList(), this.carousel.off(this.events), this.carousel = null } }]), t }(), N = function () { function t(e) { o(this, t), this.carousel = e, this.selectedIndex = null, this.friction = 0, this.onNavReady = this.onNavReady.bind(this), this.onNavClick = this.onNavClick.bind(this), this.onNavCreateSlide = this.onNavCreateSlide.bind(this), this.onTargetChange = this.onTargetChange.bind(this) } return s(t, [{ key: "addAsTargetFor", value: function (t) { this.target = this.carousel, this.nav = t, this.attachEvents() } }, { key: "addAsNavFor", value: function (t) { this.target = t, this.nav = this.carousel, this.attachEvents() } }, { key: "attachEvents", value: function () { this.nav.options.initialSlide = this.target.options.initialPage, this.nav.on("ready", this.onNavReady), this.nav.on("createSlide", this.onNavCreateSlide), this.nav.on("Panzoom.click", this.onNavClick), this.target.on("change", this.onTargetChange), this.target.on("Panzoom.afterUpdate", this.onTargetChange) } }, { key: "onNavReady", value: function () { this.onTargetChange(!0) } }, { key: "onNavClick", value: function (t, e, i) { var n = i.target.closest(".carousel__slide"); if (n) { i.stopPropagation(); var o = parseInt(n.dataset.index, 10), a = this.target.findPageForSlide(o); this.target.page !== a && this.target.slideTo(a, { friction: this.friction }), this.markSelectedSlide(o) } } }, { key: "onNavCreateSlide", value: function (t, e) { e.index === this.selectedIndex && this.markSelectedSlide(e.index) } }, { key: "onTargetChange", value: function () { var t = this.target.pages[this.target.page].indexes[0], e = this.nav.findPageForSlide(t); this.nav.slideTo(e), this.markSelectedSlide(t) } }, { key: "markSelectedSlide", value: function (t) { this.selectedIndex = t, m(this.nav.slides).filter((function (t) { return t.$el && t.$el.classList.remove("is-nav-selected") })); var e = this.nav.slides[t]; e && e.$el && e.$el.classList.add("is-nav-selected") } }, { key: "attach", value: function (t) { var e = t.options.Sync; (e.target || e.nav) && (e.target ? this.addAsNavFor(e.target) : e.nav && this.addAsTargetFor(e.nav), this.friction = e.friction) } }, { key: "detach", value: function () { this.nav && (this.nav.off("ready", this.onNavReady), this.nav.off("Panzoom.click", this.onNavClick), this.nav.off("createSlide", this.onNavCreateSlide)), this.target && (this.target.off("Panzoom.afterUpdate", this.onTargetChange), this.target.off("change", this.onTargetChange)) } }]), t }(); N.defaults = { friction: .92 }; var D = { Navigation: R, Dots: F, Sync: N }, B = { slides: [], preload: 0, slidesPerPage: "auto", initialPage: null, initialSlide: null, friction: .92, center: !0, infinite: !0, fill: !0, dragFree: !1, prefix: "", classNames: { viewport: "carousel__viewport", track: "carousel__track", slide: "carousel__slide", slideSelected: "is-selected" }, l10n: { NEXT: "Next slide", PREV: "Previous slide", GOTO: "Go to slide #%d" } }, H = function (t) { l(n, t); var e = f(n); function n(t) { var i, a = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if (o(this, n), a = k(!0, {}, B, a), (i = e.call(this, a)).state = "init", i.$container = t, !(i.$container instanceof HTMLElement)) throw new Error("No root element provided"); return i.slideNext = I(i.slideNext.bind(d(i)), 250), i.slidePrev = I(i.slidePrev.bind(d(i)), 250), i.init(), t.__Carousel = d(i), i } return s(n, [{ key: "init", value: function () { this.pages = [], this.page = this.pageIndex = null, this.prevPage = this.prevPageIndex = null, this.attachPlugins(n.Plugins), this.trigger("init"), this.initLayout(), this.initSlides(), this.updateMetrics(), this.$track && this.pages.length && (this.$track.style.transform = "translate3d(".concat(-1 * this.pages[this.page].left, "px, 0px, 0) scale(1)")), this.manageSlideVisiblity(), this.initPanzoom(), this.state = "ready", this.trigger("ready") } }, { key: "initLayout", value: function () { var t, e, i, n, o = this.option("prefix"), a = this.option("classNames"); (this.$viewport = this.option("viewport") || this.$container.querySelector(".".concat(o).concat(a.viewport)), this.$viewport) || (this.$viewport = document.createElement("div"), (t = this.$viewport.classList).add.apply(t, m((o + a.viewport).split(" "))), (e = this.$viewport).append.apply(e, m(this.$container.childNodes)), this.$container.appendChild(this.$viewport)); (this.$track = this.option("track") || this.$container.querySelector(".".concat(o).concat(a.track)), this.$track) || (this.$track = document.createElement("div"), (i = this.$track.classList).add.apply(i, m((o + a.track).split(" "))), (n = this.$track).append.apply(n, m(this.$viewport.childNodes)), this.$viewport.appendChild(this.$track)) } }, { key: "initSlides", value: function () { var t = this; this.slides = [], this.$viewport.querySelectorAll(".".concat(this.option("prefix")).c
47oncat(this.option("classNames.slide"))).forEach((function (e) { var i = { $el: e, isDom: !0 }; t.slides.push(i), t.trigger("createSlide", i, t.slides.length) })), Array.isArray(this.options.slides) && (this.slides = k(!0, m(this.slides), this.options.slides)) } }, { key: "updateMetrics", value: function () { var t, e = this, n = 0, o = []; this.slides.forEach((function (i, a) { var s = i.$el, r = i.isDom || !t ? e.getSlideMetrics(s) : t; i.index = a, i.width = r, i.left = n, t = r, n += r, o.push(a) })); var a = Math.max(this.$track.offsetWidth, S(this.$track.getBoundingClientRect().width)), s = getComputedStyle(this.$track); a -= parseFloat(s.paddingLeft) + parseFloat(s.paddingRight), this.contentWidth = n, this.viewportWidth = a; var r = [], l = this.option("slidesPerPage"); if (Number.isInteger(l) && n > a) for (var c = 0; c < this.slides.length; c += l)r.push({ indexes: o.slice(c, c + l), slides: this.slides.slice(c, c + l) }); else for (var h = 0, d = 0, u = 0; u < this.slides.length; u += 1) { var f = this.slides[u]; (!r.length || d + f.width > a) && (r.push({ indexes: [], slides: [] }), h = r.length - 1, d = 0), d += f.width, r[h].indexes.push(u), r[h].slides.push(f) } var v = this.option("center"), p = this.option("fill"); r.forEach((function (t, i) { t.index = i, t.width = t.slides.reduce((function (t, e) { return t + e.width }), 0), t.left = t.slides[0].left, v && (t.left += .5 * (a - t.width) * -1), p && !e.option("infiniteX", e.option("infinite")) && n > a && (t.left = Math.max(t.left, 0), t.left = Math.min(t.left, n - a)) })); var g, y = []; r.forEach((function (t) { var e = i({}, t); g && e.left === g.left ? (g.width += e.width, g.slides = [].concat(m(g.slides), m(e.slides)), g.indexes = [].concat(m(g.indexes), m(e.indexes))) : (e.index = y.length, g = e, y.push(e)) })), this.pages = y; var b = this.page; if (null === b) { var x = this.option("initialSlide"); b = null !== x ? this.findPageForSlide(x) : parseInt(this.option("initialPage", 0), 10) || 0, y[b] || (b = y.length && b > y.length ? y[y.length - 1].index : 0), this.page = b, this.pageIndex = b } this.updatePanzoom(), this.trigger("refresh") } }, { key: "getSlideMetrics", value: function (t) { if (!t) { var e, i, n = this.slides[0]; if ((t = document.createElement("div")).dataset.isTestEl = 1, t.style.visibility = "hidden", (e = t.classList).add.apply(e, m((this.option("prefix") + this.option("classNames.slide")).split(" "))), n.customClass) (i = t.classList).add.apply(i, m(n.customClass.split(" "))); this.$track.prepend(t) } var o = Math.max(t.offsetWidth, S(t.getBoundingClientRect().width)), a = t.currentStyle || window.getComputedStyle(t); return o = o + (parseFloat(a.marginLeft) || 0) + (parseFloat(a.marginRight) || 0), t.dataset.isTestEl && t.remove(), o } }, { key: "findPageForSlide", value: function (t) { t = parseInt(t, 10) || 0; var e = this.pages.find((function (e) { return e.indexes.indexOf(t) > -1 })); return e ? e.index : null } }, { key: "slideNext", value: function () { this.slideTo(this.pageIndex + 1) } }, { key: "slidePrev", value: function () { this.slideTo(this.pageIndex - 1) } }, { key: "slideTo", value: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, i = e.x, n = void 0 === i ? -1 * this.setPage(t, !0) : i, o = e.y, a = void 0 === o ? 0 : o, s = e.friction, r = void 0 === s ? this.option("friction") : s; this.Panzoom.content.x === n && !this.Panzoom.velocity.x && r || (this.Panzoom.panTo({ x: n, y: a, friction: r, ignoreBounds: !0 }), "ready" === this.state && "ready" === this.Panzoom.state && this.trigger("settle")) } }, { key: "initPanzoom", value: function () { var t = this; this.Panzoom && this.Panzoom.destroy(); var e = k(!0, {}, { content: this.$track, wrapInner: !1, resizeParent: !1, zoom: !1, click: !1, lockAxis: "x", x: this.pages.length ? -1 * this.pages[this.page].left : 0, centerOnStart: !1, textSelection: function () { return t.option("textSelection", !1) }, panOnlyZoomed: function () { return this.content.width <= this.viewport.width } }, this.option("Panzoom")); this.Panzoom = new M(this.$container, e), this.Panzoom.on({ "*": function (e) { for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), o = 1; o < i; o++)n[o - 1] = arguments[o];
47 return t.trigger.apply(t, ["Panzoom.".concat(e)].concat(n)) }, afterUpdate: function () { t.updatePage() }, beforeTransform: this.onBeforeTransform.bind(this), touchEnd: this.onTouchEnd.bind(this), endAnimation: function () { t.trigger("settle") } }), this.updateMetrics(), this.manageSlideVisiblity() } }, { key: "updatePanzoom", value: function () { this.Panzoom && (this.Panzoom.content = i(i({}, this.Panzoom.content), {}, { fitWidth: this.contentWidth, origWidth: this.contentWidth, width: this.contentWidth }), this.pages.length > 1 && this.option("infiniteX", this.option("infinite")) ? this.Panzoom.boundX = null : this.pages.length && (this.Panzoom.boundX = { from: -1 * this.pages[this.pages.length - 1].left, to: -1 * this.pages[0].left }), this.option("infiniteY", this.option("infinite")) ? this.Panzoom.boundY = null : this.Panzoom.boundY = { from: 0, to: 0 }, this.Panzoom.handleCursor()) } }, { key: "manageSlideVisiblity", value: function () { var t = this, e = this.contentWidth, i = this.viewportWidth, n = this.Panzoom ? -1 * this.Panzoom.content.x : this.pages.length ? this.pages[this.page].left : 0, o = this.option("preload"), a = this.option("infiniteX", this.option("infinite")), s = parseFloat(getComputedStyle(this.$viewport, null).getPropertyValue("padding-left")), r = parseFloat(getComputedStyle(this.$viewport, null).getPropertyValue("padding-right")); this.slides.forEach((function (l) { var c, h, d = 0; c = n - s, h = n + i + r, c -= o * (i + s + r), h += o * (i + s + r); var u = l.left + l.width > c && l.left < h; c = n + e - s, h = n + e + i + r, c -= o * (i + s + r); var f = a && l.left + l.width > c && l.left < h; c = n - e - s, h = n - e + i + r, c -= o * (i + s + r); var v = a && l.left + l.width > c && l.left < h; f || u || v ? (t.createSlideEl(l), u && (d = 0), f && (d = -1), v && (d = 1), l.left + l.width > n && l.left <= n + i + r && (d = 0)) : t.removeSlideEl(l), l.hasDiff = d })); var l = 0, c = 0; this.slides.forEach((function (t, i) { var n = 0; t.$el ? (i !== l || t.hasDiff ? n = c + t.hasDiff * e : c = 0, t.$el.style.left = Math.abs(n) > .1 ? "".concat(c + t.hasDiff * e, "px") : "", l++) : c += t.width })), this.markSelectedSlides() } }, { key: "createSlideEl", value: function (t) { var e; if (t) { if (!t.$el) { var i, n = document.createElement("div"); if (n.dataset.index = t.index, (e = n.classList).add.apply(e, m((this.option("prefix") + this.option("classNames.slide")).split(" "))), t.customClass) (i = n.classList).add.apply(i, m(t.customClass.split(" "))); t.html && (n.innerHTML = t.html); var o = []; this.slides.forEach((function (t, e) { t.$el && o.push(e) })); var a = t.index, s = null; if (o.length) { var r = o.reduce((function (t, e) { return Math.abs(e - a) < Math.abs(t - a) ? e : t })); s = this.slides[r] } return this.$track.insertBefore(n, s && s.$el ? s.index < t.index ? s.$el.nextSibling : s.$el : null), t.$el = n, this.trigger("createSlide", t, a), t } var l, c = t.$el.dataset.index; c && parseInt(c, 10) === t.index || (t.$el.dataset.index = t.index, t.$el.querySelectorAll("[data-lazy-srcset]").forEach((function (t) { t.srcset = t.dataset.lazySrcset })), t.$el.querySelectorAll("[data-lazy-src]").forEach((function (t) { var e = t.dataset.lazySrc; t instanceof HTMLImageElement ? t.src = e : t.style.backgroundImage = "url('".concat(e, "')") })), (l = t.$el.dataset.lazySrc) && (t.$el.style.backgroundImage = "url('".concat(l, "')")), t.state = "ready") } } }, { key: "removeSlideEl", value: function (t) { t.$el && !t.isDom && (this.trigger("removeSlide", t), t.$el.remove(), t.$el = null) } }, { key: "markSelectedSlides", value: function () { var t = this, e = this.option("classNames.slideSelected"), i = "aria-hidden"; this.slides.forEach((function (n, o) { var a = n.$el; if (a) { var s = t.pages[t.page]; s && s.indexes && s.indexes.indexOf(o) > -1 ? (e && !a.classList.contains(e) && (a.classList.add(e), t.trigger("selectSlide", n)), a.removeAttribute(i)) : (e && a.classList.contains(e) && (a.classList.remove(e), t.trigger("unselectSlide", n)), a.setAttribute(i, !0)) } })) } }, { key: "updatePage", value: function () { this.updateMetrics(), this.slideTo(this.page, { friction: 0 }) } }, { key: "onBeforeTransform", value: function () { this.option("infiniteX", this.option("infinite")) && this.manageInfiniteTrack(), this.manageSlideVisiblity() } }, { key: "manageInfiniteTrack", value: function () { var t = this.contentWidth, e = this.viewportWidth; if (!(!this.option("infiniteX", this.option("infinite")) || this.pages.length < 2 || t 
47< e)) { var i = this.Panzoom, n = !1; return i.content.x < -1 * (t - e) && (i.content.x += t, this.pageIndex = this.pageIndex - this.pages.length, n = !0), i.content.x > e && (i.content.x -= t, this.pageIndex = this.pageIndex + this.pages.length, n = !0), n && "pointerdown" === i.state && i.resetDragPosition(), n } } }, { key: "onTouchEnd", value: function (t, e) { var i = this.option("dragFree"); if (!i && this.pages.length > 1 && t.dragOffset.time < 350 && Math.abs(t.dragOffset.y) < 1 && Math.abs(t.dragOffset.x) > 5) this[t.dragOffset.x < 0 ? "slideNext" : "slidePrev"](); else if (i) { var n = g(this.getPageFromPosition(-1 * t.transform.x), 2)[1]; this.setPage(n) } else this.slideToClosest() } }, { key: "slideToClosest", value: function () { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, e = this.getPageFromPosition(-1 * this.Panzoom.content.x), i = g(e, 2), n = i[1]; this.slideTo(n, t) } }, { key: "getPageFromPosition", value: function (t) { var e = this.pages.length; this.option("center") && (t += .5 * this.viewportWidth); var i = Math.floor(t / this.contentWidth); t -= i * this.contentWidth; var n = this.slides.find((function (e) { return e.left <= t && e.left + e.width > t })); if (n) { var o = this.findPageForSlide(n.index); return [o, o + i * e] } return [0, 0] } }, { key: "setPage", value: function (t, e) { var i = 0, n = parseInt(t, 10) || 0, o = this.page, a = this.pageIndex, s = this.pages.length, r = this.contentWidth, l = this.viewportWidth; if (t = (n % s + s) % s, this.option("infiniteX", this.option("infinite")) && r > l) { var c = Math.floor(n / s) || 0, h = r; if (i = this.pages[t].left + c * h, !0 === e && s > 2) { var d = -1 * this.Panzoom.content.x, u = i - h, f = i + h, v = Math.abs(d - i), p = Math.abs(d - u), g = Math.abs(d - f); g < v && g <= p ? (i = f, n += s) : p < v && p < g && (i = u, n -= s) } } else t = n = Math.max(0, Math.min(n, s - 1)), i = this.pages.length ? this.pages[t].left : 0; return this.page = t, this.pageIndex = n, null !== o && t !== o && (this.prevPage = o, this.prevPageIndex = a, this.trigger("change", t, o)), i } }
47, { key: "destroy", value: function () { var t = this; this.state = "destroy", this.slides.forEach((function (e) { t.removeSlideEl(e) })), this.slides = [], this.Panzoom.destroy(), this.detachPlugins() } }]), n }(O); H.version = "4.0.27", H.Plugins = D; var W = !("undefined" == typeof window || !window.document || !window.document.createElement), j = null, X = ["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^="-"]):not([disabled]):not([aria-hidden])'], q = function (t) { if (t && W) { null === j && document.createElement("div").focus({ get preventScroll() { return j = !0, !1 } }); try { if (t.setActive) t.setActive(); else if (j) t.focus({ preventScroll: !0 }); else { var e = window.pageXOffset || document.body.scrollTop, i = window.pageYOffset || document.body.scrollLeft; t.focus(), document.body.scrollTo({ top: e, left: i, behavior: "auto" }) } } catch (t) { } } }, U = function () { function t(e) { o(this, t), this.fancybox = e, this.viewport = null, this.pendingUpdate = null; for (var i = 0, n = ["onReady", "onResize", "onTouchstart", "onTouchmove"]; i < n.length; i++) { var a = n[i]; this[a] = this[a].bind(this) } } return s(t, [{ key: "onReady", value: function () { var t = window.visualViewport; t && (this.viewport = t, this.startY = 0, t.addEventListener("resize", this.onResize), this.updateViewport()), window.addEventListener("touchstart", this.onTouchstart, { passive: !1 }), window.addEventListener("touchmove", this.onTouchmove, { passive: !1 }), window.addEventListener("wheel", this.onWheel, { passive: !1 }) } }, { key: "onResize", value: function () { this.updateViewport() } }, { key: "updateViewport", value: function () { var t = this.fancybox, e = this.viewport, i = e.scale || 1, n = t.$container; if (n) { var o = "", a = "", s = ""; i - 1 > .1 && (o = "".concat(e.width * i, "px"), a = "".concat(e.height * i, "px"), s = "translate3d(".concat(e.offsetLeft, "px, ").concat(e.offsetTop, "px, 0) scale(").concat(1 / i, ")")), n.style.width = o, n.style.height = a, n.style.transform = s } } }, { key: "onTouchstart", value: function (t) { this.startY = t.touches ? t.touches[0].screenY : t.screenY } }, { key: "onTouchmove", value: function (t) { var e = this.startY, i = window.innerWidth / window.document.documentElement.clientWidth; if (t.cancelable && !(t.touches.length > 1 || 1 !== i)) { var n = C(t.composedPath()[0]); if (n) { var o = window.getComputedStyle(n), a = parseInt(o.getPropertyValue("height"), 10), s = t.touches ? t.touches[0].screenY : t.screenY, r = e <= s && 0 === n.scrollTop, l = e >= s && n.scrollHeight - n.scrollTop === a; (r || l) && t.preventDefault() } else t.preventDefault() } } }, { key: "onWheel", value: function (t) { C(t.composedPath()[0]) || t.preventDefault() } }, { key: "cleanup", value: function () { this.pendingUpdate && (cancelAnimationFrame(this.pendingUpdate), this.pendingUpdate = null); var t = this.viewport; t && (t.removeEventListener("resize", this.onResize), this.viewport = null), window.removeEventListener("touchstart", this.onTouchstart, !1), window.removeEventListener("touchmove", this.onTouchmove, !1), window.removeEventListener("wheel", this.onWheel, { passive: !1 }) } }, { key: "attach", value: function () { this.fancybox.on("initLayout", this.onReady) } }, { key: "detach", value: function () { this.fancybox.off("initLayout", this.onReady), this.cleanup() } }]), t }(), Y = function () { function t(e) { o(this, t), this.fancybox = e, this.$container = null, this.state = "init"; for (var i = 0, n = ["onPrepare", "onClosing", "onKeydown"]; i < n.length; i++) { var a = n[i]; this[a] = this[a].bind(this) } this.events = { prepare: this.onPrepare, closing: this.onClosing, keydown: this.onKeydown } } return s(t, [{ key: "onPrepare", value: function () { this.getSlides().length < this.fancybox.option("Thumbs.minSlideCount") ? this.state = "disabled" : !0 === this.fancybox.option("Thumbs.autoStart") && this.fancybox.Carousel.Panzoom.content.height >= this.fancybox.option("Thumbs.minScreenHeight") && this.build() } }, { key: "onClosing", value: function () { this.Carousel && this.Carousel.Panzoom.detachEvents() } }, { key: "onKeydown", value: function (t, e) { e === t.option("Thumbs.key") && this.toggle() } }, { key: "build", value: function () { var t = this; if (!this.$container) { var e = document.createElement("div"); e.classList.add("fancybox__thumbs"), this.fancybox.$carousel.parentNode.insertBefore(e, this.fancybox.$carousel.nextSibling), this.Carousel = new H(e, k(!0, { Dots: !1, Navigation: !1, Sync: { friction: 0 }, infinite: !1, center: !0, fill: !0, dragFree: !0, slidesPerPage: 1, preload: 1 }, this.fancybox.option("Thumbs.Carousel"), { Sync: { target: this.fancybox.Carousel }
47, slides: this.getSlides() })), this.Carousel.Panzoom.on("wheel", (function (e, i) { i.preventDefault(), t.fancybox[i.deltaY < 0 ? "prev" : "next"]() })), this.$container = e, this.state = "visible" } } }, { key: "getSlides", value: function () { var t, e = [], i = x(this.fancybox.items); try { for (i.s(); !(t = i.n()).done;) { var n = t.value, o = n.thumb; o && e.push({ html: '<div class="fancybox__thumb" style="background-image:url(\''.concat(o, "')\"></div>"), customClass: "has-thumb has-".concat(n.type || "image") }) } } catch (t) { i.e(t) } finally { i.f() } return e } }, { key: "toggle", value: function () { "visible" === this.state ? this.hide() : "hidden" === this.state ? this.show() : this.build() } }, { key: "show", value: function () { "hidden" === this.state && (this.$container.style.display = "", this.Carousel.Panzoom.attachEvents(), this.state = "visible") } }, { key: "hide", value: function () { "visible" === this.state && (this.Carousel.Panzoom.detachEvents(), this.$container.style.display = "none", this.state = "hidden") } }, { key: "cleanup", value: function () { this.Carousel && (this.Carousel.destroy(), this.Carousel = null), this.$container && (this.$container.remove(), this.$container = null), this.state = "init" } }, { key: "attach", value: function () { this.fancybox.on(this.events) } }, { key: "detach", value: function () { this.fancybox.off(this.events), this.cleanup() } }]), t }(); Y.defaults = { minSlideCount: 2, minScreenHeight: 500, autoStart: !0, key: "t", Carousel: {} }; var V = function (t, e) { for (var i = new URL(t), n = new URLSearchParams(i.search), o = new URLSearchParams, a = 0, s = [].concat(m(n), m(Object.entries(e))); a < s.length; a++) { var r = g(s[a], 2), l = r[0], c = r[1]; "t" === l ? o.set("start", parseInt(c)) : o.set(l, c) } o = o.toString(); var h = t.match(/#t=((.*)?\d+s)/); return h && (o += "#t=".concat(h[1])), o }, Z = { video: { autoplay: !0, ratio: 16 / 9 }, youtube: { autohide: 1, fs: 1, rel: 0, hd: 1, wmode: "transparent", enablejsapi: 1, html5: 1 }, vimeo: { hd: 1, show_title: 1, show_byline: 1, show_portrait: 0, fullscreen: 1 }, html5video: { tpl: '<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>', format: "" } }, G = function () { function t(e) { o(this, t), this.fancybox = e; for (var i = 0, n = ["onInit", "onReady", "onCreateSlide", "onRemoveSlide", "onSelectSlide", "onUnselectSlide", "onRefresh", "onMessage"]; i < n.length; i++) { var a = n[i]; this[a] = this[a].bind(this) } this.events = { init: this.onInit, ready: this.onReady, "Carousel.createSlide": this.onCreateSlide, "Carousel.removeSlide": this.onRemoveSlide, "Carousel.selectSlide": this.onSelectSlide, "Carousel.unselectSlide": this.onUnselectSlide, "Carousel.refresh": this.onRefresh } } return s(t, [{ key: "onInit", value: function () { var t, e = x(this.fancybox.items); try { for (e.s(); !(t = e.n()).done;) { var i = t.value; this.processType(i) } } catch (t) { e.e(t) } finally { e.f() } } }, { key: "processType", value: function (t) { if (t.html) return t.src = t.html, t.type = "html", void delete t.html; var e = t.src || "", i = t.type || this.fancybox.options.type, n = null; if (!e || "string" == typeof e) { if (n = e.match(/(?:youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)) { var o = V(e, this.fancybox.option("Html.youtube")), a = encodeURIComponent(n[1]); t.videoId = a, t.src = "https://www.youtube-nocookie.com/embed/".concat(a, "?").concat(o), t.thumb = t.thumb || "https://i.ytimg.com/vi/".concat(a, "/mqdefault.jpg"), t.vendor = "youtube", i = "video" } else if (n = e.match(/^.+vimeo.com\/(?:\/)?([\d]+)(.*)?/)) { var s = V(e, this.fancybox.option("Html.vimeo")), r = encodeURIComponent(n[1]); t.videoId = r, t.src = "https://player.vimeo.com/video/".concat(r, "?").concat(s), t.vendor = "vimeo", i = "video" } else (n = e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i)) ? (t.src = "//maps.google.".concat(n[1], "/?ll=").concat((n[2] ? n[2] + "&z=" + Math.floor(n[3]) + (n[4] ? n[4].replace(/^\//, "&") : "") : n[4] + "").replace(/\?/, "&"), "&output=").concat(n[4] && n[4].indexOf("layer=c") > 0 ? "svembed" : "embed"), i = "map") : (n = e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i)) && (t.src = "//maps.google.".concat(n[1], "/ma
47ps?q=").concat(n[2].replace("query=", "q=").replace("api=1", ""), "&output=embed"), i = "map"); i || ("#" === e.charAt(0) ? i = "inline" : (n = e.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i)) ? (i = "html5video", t.format = t.format || "video/" + ("ogv" === n[1] ? "ogg" : n[1])) : e.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i) ? i = "image" : e.match(/\.(pdf)((\?|#).*)?$/i) && (i = "pdf")), t.type = i || this.fancybox.option("defaultType", "image"), "html5video" !== i && "video" !== i || (t.video = k({}, this.fancybox.option("Html.video"), t.video), t._width && t._height ? t.ratio = parseFloat(t._width) / parseFloat(t._height) : t.ratio = t.ratio || t.video.ratio || Z.video.ratio) } } }, { key: "onReady", value: function () { var t = this; this.fancybox.Carousel.slides.forEach((function (e) { e.$el && (t.setContent(e), e.index === t.fancybox.getSlide().index && t.playVideo(e)) })) } }, { key: "onCreateSlide", value: function (t, e, i) { "ready" === this.fancybox.state && this.setContent(i) } }, { key: "loadInlineContent", value: function (t) { var e; if (t.src instanceof HTMLElement) e = t.src; else if ("string" == typeof t.src) { var i = t.src.split("#", 2), n = 2 === i.length && "" === i[0] ? i[1] : i[0]; e = document.getElementById(n) } if (e) { if ("clone" === t.type || e.$placeHolder) { var o = (e = e.cloneNode(!0)).getAttribute("id"); o = o ? "".concat(o, "--clone") : "clone-".concat(this.fancybox.id, "-").concat(t.index), e.setAttribute("id", o) } else { var a = document.createElement("div"); a.classList.add("fancybox-placeholder"), e.parentNode.insertBefore(a, e), e.$placeHolder = a } this.fancybox.setContent(t, e) } else this.fancybox.setError(t, "{{ELEMENT_NOT_FOUND}}") } }, { key: "loadAjaxContent", value: function (t) { var e = this.fancybox, i = new XMLHttpRequest; e.showLoading(t), i.onreadystatechange = function () { i.readyState === XMLHttpRequest.DONE && "ready" === e.state && (e.hideLoading(t), 200 === i.status ? e.setContent(t, i.responseText) : e.setError(t, 404 === i.status ? "{{AJAX_NOT_FOUND}}" : "{{AJAX_FORBIDDEN}}")) }; var n = t.ajax || null; i.open(n ? "POST" : "GET", t.src), i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), i.setRequestHeader("X-Requested-With", "XMLHttpRequest"), i.send(n), t.xhr = i } }, { key: "loadIframeContent", value: function (t) { var e = this, i = this.fancybox, n = document.createElement("iframe"); if (n.className = "fancybox__iframe", n.setAttribute("id", "fancybox__iframe_".concat(i.id, "_").concat(t.index)), n.setAttribute("allow", "autoplay; fullscreen"), n.setAttribute("scrolling", "auto"), t.$iframe = n, "iframe" !== t.type || !1 === t.preload) return n.setAttribute("src", t.src), this.fancybox.setContent(t, n), void this.resizeIframe(t); i.showLoading(t); var o = document.createElement("div"); o.style.visibility = "hidden", this.fancybox.setContent(t, o), o.appendChild(n), n.onerror = function () { i.setError(t, "{{IFRAME_ERROR}}") }, n.onload = function () { i.hideLoading(t); var o = !1; n.isReady || (n.isReady = !0, o = !0), n.src.length && (n.parentNode.style.visibility = "", e.resizeIframe(t), o && i.revealContent(t)) }, n.setAttribute("src", t.src) } }, { key: "setAspectRatio", value: function (t) { var e = t.$content, i = t.ratio; if (e) { var n = t._width, o = t._height; if (i || n && o) { Object.assign(e.style, { width: n && o ? "100%" : "", height: n && o ? "100%" : "", maxWidth: "", maxHeight: "" }); var a = e.offsetWidth, s = e.offsetHeight; if (o = o || s, (n = n || a) > a || o > s) { var r = Math.min(a / n, s / o); n *= r, o *= r } Math.abs(n / o - i) > .01 && (i < n / o ? n = o * i : o = n / i), Object.assign(e.style, { width: "".concat(n, "px"), height: "".concat(o, "px") }) } } } }, { key: "resizeIframe", value: function (t) { var e = t.$iframe; if (e) { var i = t._width || 0, n = t._height || 0; i && n && (t.autoSize = !1); var o = e.parentNode, a = o && o.style; if (!1 !== t.preload && !1 !== t.autoSize && a) try { var s = window.getComputedStyle(o), r = parseFloat(s.paddingLeft) + parseFloat(s.paddingRight), l = parseFloat(s.paddingTop) + parseFloat(s.paddingBottom), c = e.contentWindow.document, h = c.getElementsByTagName("html")[0], d = c.body; a.width = "", d.style.overflow = "hidden", i = i || h.scrollWidth + r, a.width = "".concat(i, "px"), d.style.overflow = "", a.flex = "0 0 auto", a.height = "".concat(d.scrollHeight, "px"), n = h.scrollHeight + l } catch (t) { } if (i || n) { var u = { flex: "0 1 auto" }; i && (u.width = "".concat(i, "px")), n && (u.height = "".concat(n, "px")), Object.assign(a, u) } } } }, { key: "onRefresh", value: function (t, e) { var i = this;
47 e.slides.forEach((function (t) { t.$el && (t.$iframe && i.resizeIframe(t), t.ratio && i.setAspectRatio(t)) })) } }, { key: "setContent", value: function (t) { if (t && !t.isDom) { switch (t.type) { case "html": this.fancybox.setContent(t, t.src); break; case "html5video": this.fancybox.setContent(t, this.fancybox.option("Html.html5video.tpl").replace(/\{\{src\}\}/gi, t.src).replace("{{format}}", t.format || t.html5video && t.html5video.format || "").replace("{{poster}}", t.poster || t.thumb || "")); break; case "inline": case "clone": this.loadInlineContent(t); break; case "ajax": this.loadAjaxContent(t); break; case "pdf": case "video": case "map": t.preload = !1; case "iframe": this.loadIframeContent(t) }t.ratio && this.setAspectRatio(t) } } }, { key: "onSelectSlide", value: function (t, e, i) { "ready" === t.state && this.playVideo(i) } }, { key: "playVideo", value: function (t) { if ("html5video" === t.type && t.video.autoplay) try { var e = t.$el.querySelector("video"); if (e) { var i = e.play(); void 0 !== i && i.then((function () { })).catch((function (t) { e.muted = !0, e.play() })) } } catch (t) { } if ("video" === t.type && t.$iframe && t.$iframe.contentWindow) { !function e() { if ("done" === t.state && t.$iframe && t.$iframe.contentWindow) { var i; if (t.$iframe.isReady) return t.video && t.video.autoplay && (i = "youtube" == t.vendor ? { event: "command", func: "playVideo" } : { method: "play", value: "true" }), void (i && t.$iframe.contentWindow.postMessage(JSON.stringify(i), "*")); "youtube" === t.vendor && (i = { event: "listening", id: t.$iframe.getAttribute("id") }, t.$iframe.contentWindow.postMessage(JSON.stringify(i), "*")) } t.poller = setTimeout(e, 250) }() } } }, { key: "onUnselectSlide", value: function (t, e, i) { if ("html5video" !== i.type) { var n = !1; "vimeo" == i.vendor ? n = { method: "pause", value: "true" } : "youtube" === i.vendor && (n = { event: "command", func: "pauseVideo" }), n && i.$iframe && i.$iframe.contentWindow && i.$iframe.contentWindow.postMessage(JSON.stringify(n), "*"), clearTimeout(i.poller) } else try { i.$el.querySelector("video").pause() } catch (t) { } } }, { key: "onRemoveSlide", value: function (t, e, i) { i.xhr && (i.xhr.abort(), i.xhr = null), i.$iframe && (i.$iframe.onload = i.$iframe.onerror = null, i.$iframe.src = "//about:blank", i.$iframe = null); var n = i.$content; "inline" === i.type && n && (n.classList.remove("fancybox__content"), "none" !== n.style.display && (n.style.display = "none")), i.$closeButton && (i.$closeButton.remove(), i.$closeButton = null); var o = n && n.$placeHolder; o && (o.parentNode.insertBefore(n, o), o.remove(), n.$placeHolder = null) } }, { key: "onMessage", value: function (t) { try { var e = JSON.parse(t.data); if ("https://player.vimeo.com" === t.origin) { if ("ready" === e.event) { var i, n = x(document.getElementsByClassName("fancybox__iframe")); try { for (n.s(); !(i = n.n()).done;) { var o = i.value; o.contentWindow === t.source && (o.isReady = 1) } } catch (t) { n.e(t) } finally { n.f() } } } else "https://www.youtube-nocookie.com" === t.origin && "onReady" === e.event && (document.getElementById(e.id).isReady = 1) } catch (t) { } } }, { key: "attach", value: function () { this.fancybox.on(this.events), window.addEventListener("message", this.onMessage, !1) } }, { key: "detach", value: function () { this.fancybox.off(this.events), window.removeEventListener("message", this.onMessage, !1) } }]), t }(); G.defaults = Z; var K = function () { function t(e) { o(this, t), this.fancybox = e; for (var i = 0, n = ["onReady", "onClosing", "onDone", "onPageChange", "onCreateSlide", "onRemoveSlide", "onImageStatusChange"]; i < n.length; i++) { var a = n[i]; this[a] = this[a].bind(this) } this.events = { ready: this.onReady, closing: this.onClosing, done: this.onDone, "Carousel.change": this.onPageChange, "Carousel.createSlide": this.onCreateSlide, "Carousel.removeSlide": this.onRemoveSlide } } return s(t, [{ key: "onReady", value: function () { var t = this; this.fancybox.Carousel.slides.forEach((function (e) { e.$el && t.setContent(e) })) } }, { key: "onDone", value: function (t, e) { this.handleCursor(e) } }, { key: "onClosing", value: function (t) { clearTimeout(this.clickTimer), this.clickTimer = null, t.Carousel.slides.forEac
47h((function (t) { t.$image && (t.state = "destroy"), t.Panzoom && t.Panzoom.detachEvents() })), "closing" === this.fancybox.state && this.canZoom(t.getSlide()) && this.zoomOut() } }, { key: "onCreateSlide", value: function (t, e, i) { "ready" === this.fancybox.state && this.setContent(i) } }, { key: "onRemoveSlide", value: function (t, e, i) { i.$image && (i.$el.classList.remove(t.option("Image.canZoomInClass")), i.$image.remove(), i.$image = null), i.Panzoom && (i.Panzoom.destroy(), i.Panzoom = null), i.$el && i.$el.dataset && delete i.$el.dataset.imageFit } }, { key: "setContent", value: function (t) { var e = this; if (!(t.isDom || t.html || t.type && "image" !== t.type || t.$image)) { t.type = "image", t.state = "loading"; var i = document.createElement("div"); i.style.visibility = "hidden"; var n = document.createElement("img"); n.addEventListener("load", (function (i) { i.stopImmediatePropagation(), e.onImageStatusChange(t) })), n.addEventListener("error", (function () { e.onImageStatusChange(t) })), n.src = t.src, n.alt = "", n.draggable = !1, n.classList.add("fancybox__image"), t.srcset && n.setAttribute("srcset", t.srcset), t.sizes && n.setAttribute("sizes", t.sizes), t.$image = n; var o = this.fancybox.option("Image.wrap"); if (o) { var a = document.createElement("div"); a.classList.add("string" == typeof o ? o : "fancybox__image-wrap"), a.appendChild(n), i.appendChild(a), t.$wrap = a } else i.appendChild(n); t.$el.dataset.imageFit = this.fancybox.option("Image.fit"), this.fancybox.setContent(t, i), n.complete || n.error ? this.onImageStatusChange(t) : this.fancybox.showLoading(t) } } }, { key: "onImageStatusChange", value: function (t) { var e = this, i = t.$image; i && "loading" === t.state && (i.complete && i.naturalWidth && i.naturalHeight ? (this.fancybox.hideLoading(t), "contain" === this.fancybox.option("Image.fit") && this.initSlidePanzoom(t), t.$el.addEventListener("wheel", (function (i) { return e.onWheel(t, i) }), { passive: !1 }), t.$content.addEventListener("click", (function (i) { return e.onClick(t, i) }), { passive: !1 }), this.revealContent(t)) : this.fancybox.setError(t, "{{IMAGE_ERROR}}")) } }, { key: "initSlidePanzoom", value: function (t) { var e = this; t.Panzoom || (t.Panzoom = new M(t.$el, k(!0, this.fancybox.option("Image.Panzoom", {}), { viewport: t.$wrap, content: t.$image, width: t._width, height: t._height, wrapInner: !1, textSelection: !0, touch: this.fancybox.option("Image.touch"), panOnlyZoomed: !0, click: !1, wheel: !1 })), t.Panzoom.on("startAnimation", (function () { e.fancybox.trigger("Image.startAnimation", t) })), t.Panzoom.on("endAnimation", (function () { "zoomIn" === t.state && e.fancybox.done(t), e.handleCursor(t), e.fancybox.trigger("Image.endAnimation", t) })), t.Panzoom.on("afterUpdate", (function () { e.handleCursor(t), e.fancybox.trigger("Image.afterUpdate", t) }))) } }, { key: "revealContent", value: function (t) { null === this.fancybox.Carousel.prevPage && t.index === this.fancybox.options.startIndex && this.canZoom(t) ? this.zoomIn() : this.fancybox.revealContent(t) } }, { key: "getZoomInfo", value: function (t) { var e = t.$thumb.getBoundingClientRect(), i = e.width, n = e.height, o = t.$content.getBoundingClientRect(), a = o.width, s = o.height, r = o.top - e.top, l = o.left - e.left, c = this.fancybox.option("Image.zoomOpacity"); return "auto" === c && (c = Math.abs(i / n - a / s) > .1), { top: r, left: l, scale: a && i ? i / a : 1, opacity: c } } }, { key: "canZoom", value: function (t) { var e = this.fancybox, i = e.$container; if (window.visualViewport && 1 !== window.visualViewport.scale) return !1; if (t.Panzoom && !t.Panzoom.content.width) return !1; if (!e.option("Image.zoom") || "contain" !== e.option("Image.fit")) return !1; var n = t.$thumb; if (!n || "loading" === t.state) return !1; i.classList.add("fancybox__no-click"); var o, a = n.getBoundingClientRect(); if (this.fancybox.option("Image.ignoreCoveredThumbnail")) { var s = document.elementFromPoint(a.left + 1, a.top + 1) === n, r = document.elementFromPoint(a.right - 1, a.bottom - 1) === n; o = s && r } else o = document.elementFromPoint(a.left + .5 * a.width, a.top + .5 * a.height) === n; return i.classList.remove("fancybox__no-click"), o } }, { key: "zoomIn", value: function () { var t = this.fancybox, e = t.getSlide(), i = e.Panzoom, n = this.getZoomInfo(e), o = n.top, a = n.left, s = n.scale, r = n.opacity; t.trigger("reveal", e), i.panTo({ x: -1 * a, y: -1 * o, scale: s, friction: 0, ignoreBounds: !0 }), e.$content.style.visibility = "", e.state = "zoomIn", !0 === r && i.on("afterTransform", (function (t) { "zoomIn" !== e.state && "zoomOut" !== e.state || (t.$content.style.opacity = Math.min(1, 1 - (1 - t.content.scale) / (1 - s))) })), i.panTo({ x: 0, y: 0, scale: 1, friction: this.fancybox.option("Image.zoomFriction") }) } }, { key: "zoomOut", value: function () { var t = this, e = this.fancybox, i = e.getSlide(), n = i.Panzoom; if (n) { i.state = "zoomOut", e.state = "customClosing", i.$caption && (i.$caption.style.visibility = "hidden"); var o = this.fancybox.option("Image.zoomFriction"), a = function (e) { var a = t.getZoomInfo(i), s = a.top, r = a.left, l = a.scale, c = a.opacity; e || c || (o *= .82), n.panTo({ x: -1 * r, y: -1 * s, scale: l, friction: o, ignoreBounds: !0 }), o *= .98 }; window.addEventListener("scroll", a), n.once("endAnimation", (function () { window.removeEventListener("scroll", a), e.destroy() })), a() } } }, { key: "handleCursor", value: function (t) { if ("image" === t.type && t.$el) { var e = t.Panzoom, i = this.fancybox.option("Image.click", !1, t), n = this.fancybox.option("Image.touch"), o = t.$el.classList, a = this.fancybox.option("Image.canZoomInClass"), s = this.fancybox.option("Image.canZoomOutClass"); if (o.remove(s), o.remove(a), e && "toggleZoom" === i) e && 1 === e.content.scale && e.option("maxScale") - e.content.scale > .01 ? o.add(a) : e.content.scale > 1 && !n && o.add(s); else "close" === i && o.add(s) } } }, { key: "onWheel", value: function (t, e) { if ("ready" === this.fancybox.state && !1 !== this.fancybox.trigger("Image.
47wheel", e)) switch (this.fancybox.option("Image.wheel")) { case "zoom": "done" === t.state && t.Panzoom && t.Panzoom.zoomWithWheel(e); break; case "close": this.fancybox.close(); break; case "slide": this.fancybox[e.deltaY < 0 ? "prev" : "next"]() } } }, { key: "onClick", value: function (t, e) { var i = this; if ("ready" === this.fancybox.state) { var n = t.Panzoom; if (!n || !n.dragPosition.midPoint && 0 === n.dragOffset.x && 0 === n.dragOffset.y && 1 === n.dragOffset.scale) { if (this.fancybox.Carousel.Panzoom.lockAxis) return !1; var o = function (n) { switch (n) { case "toggleZoom": e.stopPropagation(), t.Panzoom && t.Panzoom.zoomWithClick(e); break; case "close": i.fancybox.close(); break; case "next": e.stopPropagation(), i.fancybox.next() } }, a = this.fancybox.option("Image.click"), s = this.fancybox.option("Image.doubleClick"); s ? this.clickTimer ? (clearTimeout(this.clickTimer), this.clickTimer = null, o(s)) : this.clickTimer = setTimeout((function () { i.clickTimer = null, o(a) }), 300) : o(a) } } } }, { key: "onPageChange", value: function (t, e) { var i = t.getSlide(); e.slides.forEach((function (t) { t.Panzoom && "done" === t.state && t.index !== i.index && t.Panzoom.panTo({ x: 0, y: 0, scale: 1, friction: .8 }) })) } }, { key: "attach", value: function () { this.fancybox.on(this.events) } }, { key: "detach", value: function () { this.fancybox.off(this.events) } }]), t }(); K.defaults = { canZoomInClass: "can-zoom_in", canZoomOutClass: "can-zoom_out", zoom: !0, zoomOpacity: "auto", zoomFriction: .82, ignoreCoveredThumbnail: !1, touch: !0, click: "toggleZoom", doubleClick: null, wheel: "zoom", fit: "contain", wrap: !1, Panzoom: { ratio: 1 } }; var J = function () { function t(e) { o(this, t), this.fancybox = e; for (var i = 0, n = ["onChange", "onClosing"]; i < n.length; i++) { var a = n[i]; this[a] = this[a].bind(this) } this.events = { initCarousel: this.onChange, "Carousel.change": this.onChange, closing: this.onClosing }, this.hasCreatedHistory = !1, this.origHash = "", this.timer = null } return s(t, [{ key: "onChange", value: function (t) { var e = this, i = t.Carousel; this.timer && clearTimeout(this.timer); var n = null === i.prevPage, o = t.getSlide(), a = new URL(document.URL).hash, s = !1; if (o.slug) s = "#" + o.slug; else { var r = o.$trigger && o.$trigger.dataset, l = t.option("slug") || r && r.fancybox; l && l.length && "true" !== l && (s = "#" + l + (i.slides.length > 1 ? "-" + (o.index + 1) : "")) } n && (this.origHash = a !== s ? a : ""), s && a !== s && (this.timer = setTimeout((function () { try { window.history[n ? "pushState" : "replaceState"]({}, document.title, window.location.pathname + window.location.search + s), n && (e.hasCreatedHistory = !0) } catch (t) { } }), 300)) } }, { key: "onClosing", value: function () { if (this.timer && clearTimeout(this.timer), !0 !== this.hasSilentClose) try { return void window.history.replaceState({}, document.title, window.location.pathname + window.location.search + (this.origHash || "")) } catch (t) { } } }, { key: "attach", value: function (t) { t.on(this.events) } }, { key: "detach", value: function (t) { t.off(this.events) } }], [{ key: "startFromUrl", value: function () { var e = t.Fancybox; if (e && !e.getInstance() && !1 !== e.defaults.Hash) { var i = t.getParsedURL(), n = i.hash, o = i.slug, a = i.index; if (o) { var s = document.querySelector('[data-slug="'.concat(n, '"]')); if (s && s.dispatchEvent(new CustomEvent("click", { bubbles: !0, cancelable: !0 })), !e.getInstance()) { var r = document.querySelectorAll('[data-fancybox="'.concat(o, '"]')); r.length && (null === a && 1 === r.length ? s = r[0] : a && (s = r[a - 1]), s && s.dispatchEvent(new CustomEvent("click", { bubbles: !0, cancelable: !0 }))) } } } } }, { key: "onHashChange", value: function () { var e = t.getParsedURL(), i = e.slug, n = e.index, o = t.Fancybox, a = o && o.getInstance(); if (a && a.plugins.Hash) { if (i) { var s = a.Carousel; if (i === a.option("slug")) return s.slideTo(n - 1); var r, l = x(s.slides); try { for (l.s(); !(r = l.n()).done;) { var c = r.value; if (c.slug && c.slug === i) return s.slideTo(c.index) } } catch (t) { l.e(t) } finally { l.f() } var h = a.getSlide(), d = h.$trigger && h.$trigger.dataset; if (d && d.fancybox === i) return s.slideTo(n - 1) } a.plugins.Hash.hasSilentClose = !0, a.close() } t.startFromUrl() } }, { key: "create", value: function (e) { function i() { window.addEventListener("hashchange", t.onHashChange, !1), t.startFromUrl() } t.Fancybox = e, W && window.requestAnimationFrame((function () { /complete|interactive|loaded/.test(document.readyState) ? i() : document.addEventListener("DOMContentLoaded", i) })) } }
47, { key: "destroy", value: function () { window.removeEventListener("hashchange", t.onHashChange, !1) } }, { key: "getParsedURL", value: function () { var t = window.location.hash.substr(1), e = t.split("-"), i = e.length > 1 && /^\+?\d+$/.test(e[e.length - 1]) && parseInt(e.pop(-1), 10) || null; return { hash: t, slug: e.join("-"), index: i } } }]), t }(), Q = { pageXOffset: 0, pageYOffset: 0, element: function () { return document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement }, activate: function (t) { Q.pageXOffset = window.pageXOffset, Q.pageYOffset = window.pageYOffset, t.requestFullscreen ? t.requestFullscreen() : t.mozRequestFullScreen ? t.mozRequestFullScreen() : t.webkitRequestFullscreen ? t.webkitRequestFullscreen() : t.msRequestFullscreen && t.msRequestFullscreen() }, deactivate: function () { document.exitFullscreen ? document.exitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitExitFullscreen && document.webkitExitFullscreen() } }, tt = function () { function t(e) { o(this, t), this.fancybox = e, this.active = !1, this.handleVisibilityChange = this.handleVisibilityChange.bind(this) } return s(t, [{ key: "isActive", value: function () { return this.active } }, { key: "setTimer", value: function () { var t = this; if (this.active && !this.timer) { var e = this.fancybox.option("slideshow.delay", 3e3); this.timer = setTimeout((function () { t.timer = null, t.fancybox.option("infinite") || t.fancybox.getSlide().index !== t.fancybox.Carousel.slides.length - 1 ? t.fancybox.next() : t.fancybox.jumpTo(0, { friction: 0 }) }), e); var i = this.$progress; i || ((i = document.createElement("div")).classList.add("fancybox__progress"), this.fancybox.$carousel.parentNode.insertBefore(i, this.fancybox.$carousel), this.$progress = i, i.offsetHeight), i.style.transitionDuration = "".concat(e, "ms"), i.style.transform = "scaleX(1)" } } }, { key: "clearTimer", value: function () { clearTimeout(this.timer), this.timer = null, this.$progress && (this.$progress.style.transitionDuration = "", this.$progress.style.transform = "", this.$progress.offsetHeight) } }, { key: "activate", value: function () { this.active || (this.active = !0, this.fancybox.$container.classList.add("has-slideshow"), "done" === this.fancybox.getSlide().state && this.setTimer(), document.addEventListener("visibilitychange", this.handleVisibilityChange, !1)) } }, { key: "handleVisibilityChange", value: function () { this.deactivate() } }, { key: "deactivate", value: function () { this.active = !1, this.clearTimer(), this.fancybox.$container.classList.remove("has-slideshow"), document.removeEventListener("visibilitychange", this.handleVisibilityChange, !1) } }, { key: "toggle", value: function () { this.active ? this.deactivate() : this.fancybox.Carousel.slides.length > 1 && this.activate() } }]), t }(), et = { display: ["counter", "zoom", "slideshow", "fullscreen", "thumbs", "close"], autoEnable: !0, items: { counter: { position: "left", type: "div", class: "fancybox__counter", html: '<span data-fancybox-index=""></span>&nbsp;of&nbsp;<span data-fancybox-count=""></span>&nbsp;Images', attr: { tabindex: -1 } }, prev: { type: "button", class: "fancybox__button--prev", label: "PREV", html: '<svg viewBox="0 0 24 24"><path d="M15 4l-8 8 8 8"/></svg>', attr: { "data-fancybox-prev": "" } }, next: { type: "button", class: "fancybox__button--next", label: "NEXT", html: '<svg viewBox="0 0 24 24"><path d="M8 4l8 8-8 8"/></svg>', attr: { "data-fancybox-next": "" } }, fullscreen: { type: "button", class: "fancybox__button--fullscreen", label: "TOGGLE_FULLSCREEN", html: '<svg viewBox="0 0 24 24">\n                <g><path d="M3 8 V3h5"></path><path d="M21 8V3h-5"></path><path d="M8 21H3v-5"></path><path d="M16 21h5v-5"></path></g>\n                <g><path d="M7 2v5H2M17 2v5h5M2 17h5v5M22 17h-5v5"/></g>\n            </svg>', click: function (t) { t.preventDefault(), Q.element() ? Q.deactivate() : Q.activate(this.fancybox.$container) } }, slideshow: { type: "button", class: "fancybox__button--slideshow", label: "TOGGLE_SLIDESHOW", html: '<svg viewBox="0 0 24 24">\n                <g><path d="M6 4v16"/><path d="M20 12L6 20"/><path d="M20 12L6 4"/></g>\n                <g>
47<path d="M7 4v15M17 4v15"/></g>\n            </svg>', click: function (t) { t.preventDefault(), this.Slideshow.toggle() } }, zoom: { type: "button", class: "fancybox__button--zoom", label: "TOGGLE_ZOOM", html: '<svg viewBox="0 0 24 24"><circle cx="10" cy="10" r="7"></circle><path d="M16 16 L21 21"></svg>', click: function (t) { t.preventDefault(); var e = this.fancybox.getSlide().Panzoom; e && e.toggleZoom() } }, download: { type: "link", label: "DOWNLOAD", class: "fancybox__button--download", html: '<svg viewBox="0 0 24 24"><path d="M12 15V3m0 12l-4-4m4 4l4-4M2 17l.62 2.48A2 2 0 004.56 21h14.88a2 2 0 001.94-1.51L22 17"/></svg>', click: function (t) { t.stopPropagation() } }, thumbs: { type: "button", label: "TOGGLE_THUMBS", class: "fancybox__button--thumbs", html: '<svg viewBox="0 0 24 24"><circle cx="4" cy="4" r="1" /><circle cx="12" cy="4" r="1" transform="rotate(90 12 4)"/><circle cx="20" cy="4" r="1" transform="rotate(90 20 4)"/><circle cx="4" cy="12" r="1" transform="rotate(90 4 12)"/><circle cx="12" cy="12" r="1" transform="rotate(90 12 12)"/><circle cx="20" cy="12" r="1" transform="rotate(90 20 12)"/><circle cx="4" cy="20" r="1" transform="rotate(90 4 20)"/><circle cx="12" cy="20" r="1" transform="rotate(90 12 20)"/><circle cx="20" cy="20" r="1" transform="rotate(90 20 20)"/></svg>', click: function (t) { t.stopPropagation(); var e = this.fancybox.plugins.Thumbs; e && e.toggle() } }, close: { type: "button", label: "CLOSE", class: "fancybox__button--close", html: '<svg viewBox="0 0 24 24"><path d="M20 20L4 4m16 0L4 20"></path></svg>', attr: { "data-fancybox-close": "", tabindex: 0 } } } }, it = function () { function t(e) { var i = this; o(this, t), this.fancybox = e, this.$container = null, this.state = "init"; for (var n = 0, a = ["onInit", "onPrepare", "onDone", "onKeydown", "onClosing", "onChange", "onSettle", "onRefresh"]; n < a.length; n++) { var s = a[n]; this[s] = this[s].bind(this) } this.events = { init: this.onInit, prepare: this.onPrepare, done: this.onDone, keydown: this.onKeydown, closing: this.onClosing, "Carousel.change": this.onChange, "Carousel.settle": this.onSettle, "Carousel.Panzoom.touchStart": function () { return i.onRefresh() }, "Image.startAnimation": function (t, e) { return i.onRefresh(e) }, "Image.afterUpdate": function (t, e) { return i.onRefresh(e) } } } return s(t, [{ key: "onInit", value: function () { if (this.fancybox.option("Toolbar.autoEnable")) { var t, e = !1, i = x(this.fancybox.items); try { for (i.s(); !(t = i.n()).done;) { if ("image" === t.value.type) { e = !0; break } } } catch (t) { i.e(t) } finally { i.f() } if (!e) return void (this.state = "disabled") } var n, o = x(this.fancybox.option("Toolbar.display")); try { for (o.s(); !(n = o.n()).done;) { var a = n.value; if ("close" === (w(a) ? a.id : a)) { this.fancybox.options.closeButton = !1; break } } } catch (t) { o.e(t) } finally { o.f() } } }, { key: "onPrepare", value: function () { var t = this.fancybox; if ("init" === this.state && (this.build(), this.update(), this.Slideshow = new tt(t), !t.Carousel.prevPage && (t.option("slideshow.autoStart") && this.Slideshow.activate(), t.option("fullscreen.autoStart") && !Q.element()))) try { Q.activate(t.$container) } catch (t) { } } }, { key: "onFsChange", value: function () { window.scrollTo(Q.pageXOffset, Q.pageYOffset) } }, { key: "onSettle", value: function () { var t = this.fancybox, e = this.Slideshow; e && e.isActive() && (t.getSlide().index !== t.Carousel.slides.length - 1 || t.option("infinite") ? "done" === t.getSlide().state && e.setTimer() : e.deactivate()) } }, { key: "onChange", value: function () { this.update(), this.Slideshow && this.Slideshow.isActive() && this.Slideshow.clearTimer() } }, { key: "onDone", value: function (t, e) { var i = this.Slideshow; e.index === t.getSlide().index && (this.update(), i && i.isActive() && (t.option("infinite") || e.index !== t.Carousel.slides.length - 1 ? i.setTimer() : i.deactivate())) } }, { key: "onRefresh", value: function (t) { t && t.index !== this.fancybox.getSlide().index || (this.update(), !this.Slideshow || !this.Slideshow.isActive() || t && "done" !== t.state || this.Slideshow.deactivate()) } }, { key: "onKeydown", value: function (t, e, i) { " " === e && this.Slideshow && (this.Slideshow.toggle(), i.preventDefault()) } }, { key: "onClosing", value: function () { this.Slideshow && this.Slideshow.deactivate(), document.removeEventListener("fullscreenchange", this.onFsChange) } }, { key: "createElement", value: function (t) { var e, i; ("div" === t.type ? e = document.createElement("div") : (e = document.createElement("link" === t.type ? "a" : "button")).classList.add("carousel__button"), e.innerHTML = t.html, e.setAttribute("tabindex", t.tabindex || 0), t.class) && (i = e.classList).add.apply(i, m(t.class.split(" "))); for (var n in t.attr) e.setAttribute(n, t.attr[n]); t.label && e.setAttribute("title", this.fancybox.localize("{{".concat(t.label, "}}"))), t.click && e.addEventListener("click", t.click.bind(this)), "prev" === t.id && e.setAttribute("data-fancybox-prev", ""), "next" === t.id && e.setAttribute("data-fancybox-next", ""); var o = e.querySelector("svg"); return o && (o.setAttribute("role", "img"), o.setAttribute("tabindex", "-1"), o.setAttribute("xmlns", "http://www.w3.org/2000/svg")), e } }, { key: "build", value: function () { var t = this; this.cleanup(); var e, i = this.fancybox.option("Toolbar.items"), n = [{ position: "left", items: [] }, { position: "center", items: [] }, { position: "right", items: [] }], o = this.fancybox.plugins.Thumbs, a = x(this.fancybox.option("Toolbar.display")); try { var s = function () { var a = e.value, s = void 0, r = void 0; if (w(a) ? (s = a.id, r = k({}, i[s], a)) : r = i[s = a], ["counter", "next", "prev", "slideshow"].includes(s) && t.fancybox.items.length < 2) return "continue"; if ("fullscreen" === s) { if (!document.fullscreenEnabled || window.fullScreen) return "continue"; document.addEventListener("fullscreenchange", t.onFsChange) } if ("thumbs" === s && (!o || "disabled" === o.state)) return "continue"; if (!r) return "continue"; var l = r.position || "right", c = n.find((function (t) { return t.position === l })); c && c.items.push(r) }; for (a.s(); !(e = a.n()).done;)s() } catch (t) { a.e(t) } finally { a.f() } var r = document.createElement("div"); r.classList.add("fancybox__toolbar"); for (var l = 0, c = n; l < c.length; l++) { var h = c[l]; if (h.items.length) { var d = document.createElement("div"); d.classList.add("fancybox__toolbar__items"), d.classList.add("fancybox__toolbar__items--".concat(h.position)); var u, f = x(h.items); try { for (f.s(); !(u = f.n()).done;) { var v = u.value; d.appendChild(this.createElement(v)) } } catch (t) { f.e(t) } finally { f.f() } r.appendChild(d) } } this.fancybox.$carousel.parentNode.insertBefore(r, this.fancybox.$carousel), this.$container = r } }, { key: "update", value: function () { var t, e = this.fancybox.getSlide(), i = e.index, n = this.fancybox.items.length, o = e.downloadSrc || ("image" !== e.type || e.error ? null : e.src), a = x(this.fancybox.$container.querySelectorAll("a.fancybox__button--download")); try { for (a.s(); !(t = a.n()).done;) { var s = t.value; o ? (s.removeAttribute("disabled"), s.removeAttribute("tabindex"), s.setAttribute("href", o), s.setAttribute("download", o), s.setAttribute("target", "_blank")) : (s.setAttribute("disabled", ""), s.setAttribute("tabindex", -1), s.removeAttribute("href"), s.removeAttribute("download")) } } catch (t) { a.e(t) } finally { a.f() } var r, l = e.Panzoom, c = l && l.option("maxScale") > l.option("baseScale"), h = x(this.fancybox.$container.querySelectorAll(".fancybox__button--zoom")); try { for (h.s(); !(r = h.n()).done;) { var d = r.value; c ? d.removeAttribute("disabled") : d.setAttribute("disabled", "") } } catch (t) { h.e(t) } finally { h.f() } var u, f = x(this.fancybox.$container.querySelectorAll("[data-fancybox-index]")); try { for (f.s(); !(u = f.n()).done;) { u.value.innerHTML = e.index + 1 } } catch (t) { f.e(t) } finally { f.f() } var v, p = x(this.fancybox.$container.querySelectorAll("[data-fancybox-count]")); try { for (p.s(); !(v = p.n()).done;) { v.value.innerHTML = n } } catch (t) { p.e(t) } finally { p.f() } if (!this.fancybox.option("infinite")) { var g, m = x(this.fancybox.$container.querySelectorAll("[data-fancybox-prev]")); try { for (m.s(); !(g = m.n()).done;) { var y = g.value; 0 === i ? y.setAttribute("disabled", "") : y.removeAttribute("disabled") } } catch (t) { m.e(t) } finally { m.f() } var b, w = x(this.fancybox.$container.querySelectorAll("[data-fancybox-next]")); try { for (w.s(); !(b = w.n()).done;) { var k = b.value; i === n - 1 ? k.setAttribute("disabled", "") : k.removeAttribute("disabled") } } catch (t) { w.e(t) } finally { w.f() } } } }, { key: "cleanup", value: function () { this.Slideshow && this.Slideshow.isActive() && this.Slideshow.clearTimer(), this.$container && this.$container.remove(), this.$container = null } }, { key: "attach", value: function () { this.fancybox.on(this.events) } }, { key: "detach", value: function () { this.fancybox.off(this.events), this.cleanup() } }]), t }(); it.defaults = et; var nt = { ScrollLock: U, Thumbs: Y, Html: G, Toolbar: it, Image: K, Hash: J }, ot = { startIndex: 0, preload: 1, infinite: !0, showClass: "fancybox-zoomInUp", hideClass: "fancybox-fadeOut", animated: !0, hideScrollbar: !0, parentEl: null, mainClass: null, autoFocus: !0, trapFocus: !0, placeFocusBack: !0, click: "close", closeButton: "inside", dragToClose: !0, keyboard: { Escape: "close", Delete: "close", Backspace: "close", PageUp: "next", PageDown: "prev", ArrowUp: "next", ArrowDown: "prev", ArrowRight: "next", ArrowLeft: "prev" }, template: { closeButton: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1">
47<path d="M20 20L4 4m16 0L4 20"/></svg>', spinner: '<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="25 25 50 50" tabindex="-1"><circle cx="50" cy="50" r="20"/></svg>', main: null }, l10n: { CLOSE: "Close", NEXT: "Next", PREV: "Previous", MODAL: "You can close this modal content with the ESC key", ERROR: "Something Went Wrong, Please Try Again Later", IMAGE_ERROR: "Image Not Found", ELEMENT_NOT_FOUND: "HTML Element Not Found", AJAX_NOT_FOUND: "Error Loading AJAX : Not Found", AJAX_FORBIDDEN: "Error Loading AJAX : Forbidden", IFRAME_ERROR: "Error Loading Page", TOGGLE_ZOOM: "Toggle zoom level", TOGGLE_THUMBS: "Toggle thumbnails", TOGGLE_SLIDESHOW: "Toggle slideshow", TOGGLE_FULLSCREEN: "Toggle full-screen mode", DOWNLOAD: "Download" } }, at = new Map, st = 0, rt = function (t) { l(i, t); var e = f(i); function i(t) { var n, a = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return o(this, i), t = t.map((function (t) { return t.width && (t._width = t.width), t.height && (t._height = t.height), t })), (n = e.call(this, k(!0, {}, ot, a))).bindHandlers(), n.state = "init", n.setItems(t), n.attachPlugins(i.Plugins), n.trigger("init"), !0 === n.option("hideScrollbar") && n.hideScrollbar(), n.initLayout(), n.initCarousel(), n.attachEvents(), at.set(n.id, d(n)), n.trigger("prepare"), n.state = "ready", n.trigger("ready"), n.$container.setAttribute("aria-hidden", "false"), n.option("trapFocus") && n.focus(), n } return s(i, [{ key: "option", value: function (t) { for (var e, n = this.getSlide(), o = n ? n[t] : void 0, a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), r = 1; r < a; r++)s[r - 1] = arguments[r]; if (void 0 !== o) { var l; if ("function" == typeof o) o = (l = o).call.apply(l, [this, this].concat(s)); return o } return (e = p(c(i.prototype), "option", this)).call.apply(e, [this, t].concat(s)) } }, { key: "bindHandlers", value: function () { for (var t = 0, e = ["onMousedown", "onKeydown", "onClick", "onFocus", "onCreateSlide", "onSettle", "onTouchMove", "onTouchEnd", "onTransform"]; t < e.length; t++) { var i = e[t]; this[i] = this[i].bind(this) } } }, { key: "attachEvents", value: function () { document.addEventListener("mousedown", this.onMousedown), document.addEventListener("keydown", this.onKeydown, !0), this.option("trapFocus") && document.addEventListener("focus", this.onFocus, !0), this.$container.addEventListener("click", this.onClick) } }, { key: "detachEvents", value: function () { document.removeEventListener("mousedown", this.onMousedown), document.removeEventListener("keydown", this.onKeydown, !0), document.removeEventListener("focus", this.onFocus, !0), this.$container.removeEventListener("click", this.onClick) } }, { key: "initLayout", value: function () { var t = this; this.$root = this.option("parentEl") || document.body; var e = this.option("template.main"); e && (this.$root.insertAdjacentHTML("beforeend", this.localize(e)), this.$container = this.$root.querySelector(".fancybox__container")), this.$container || (this.$container = document.createElement("div"), this.$root.appendChild(this.$container)), this.$container.onscroll = function () { return t.$container.scrollLeft = 0, !1 }, Object.entries({ class: "fancybox__container", role: "dialog", tabIndex: "-1", "aria-modal": "true", "aria-hidden": "true", "aria-label": this.localize("{{MODAL}}") }).forEach((function (e) { var i; return (i = t.$container).setAttribute.apply(i, m(e)) })), this.option("animated") && this.$container.classList.add("is-animated"), this.$backdrop = this.$container.querySelector(".fancybox__backdrop"), this.$backdrop || (this.$backdrop = document.createElement("div"), this.$backdrop.classList.add("fancybox__backdrop"), this.$container.appendChild(this.$backdrop)), this.$carousel = this.$container.querySelector(".fancybox__carousel"), this.$carousel || (this.$carousel = document.createElement("div"), this.$carousel.classList.add("fancybox__carousel"), this.$container.appendChild(this.$carousel)), this.$container.Fancybox = this, this.id = this.$container.getAttribute("id"), this.id || (this.id = this.options.id || ++st, this.$container.setAttribute("id", "fancybox-" + this.id)); var i, n = this.option("mainClass"); n && (i = this.$container.classList).add.apply(i, m(n.split(" "))); return document.documentElement.classList.add("with-fancybox"), this.trigger("initLayout"), this } }, { key: "setItems", value: function (t) { var e, i = [], n = x(t); try { for (n.s(); !(e = n.n()).done;) { var o = e.value, a = o.$trigger; if (a) { var s = a.dataset || {}; o.src = s.src || a.getAttribute("href") || o.src, o.type = s.type || o.type, !o.src && a instanceof HTMLImageElement && (o.src = a.currentSrc || o.$trigger.src) } var r = o.$thumb; if (!r) { var l = o.$trigger && o.$trigger.origTarget; l && (r = l instanceof HTMLImageElement ? l : l.querySelector("img:not([aria-hidden])")), !r && o.$trigger && (r = o.$trigger instanceof HTMLImageElement ? o.$trigger : o.$trigger.querySelector("img:not([aria-hidden])")) } o.$thumb = r || null; var c = o.thumb; !c && r && !(c = r.currentSrc || r.src) && r.dataset && (c = r.dataset.lazySrc || r.dataset.src), c || "image" !== o.type || (c = o.src), o.thumb = c || null, o.caption = o.caption || "", i.push(o) } } catch (t) { n.e(t) } finally { n.f() } this.items = i } }, { key: "initCarousel", value: function () { var t = this; return this.Carousel = new H(this.$carousel, k(!0, {}, { prefix: "", classNames: { viewport: "fancybox__viewport", track: "fancybox__track", slide: "fancybox__slide" }, textSelection: !0, preload: this.option("preload"), friction: .88, slides: this.items, initialPage: this.options.startIndex, slidesPerPage: 1, infiniteX: this.option("infinite"), infiniteY: !0, l10n: this.option("l10n"), Dots: !1, Navigation: { classNames: { main: "fancybox__nav", button: "carousel__button", next: "is-next", prev: "is-prev" } }, Panzoom: { textSelection: !0, panOnlyZoomed: function () { return t.Carousel && t.Carousel.pages && t.Carousel.pages.length < 2 && !t.option("dragToClose") }, lockAxis: function () { if (t.Carousel) { var e = "x"; return t.option("dragToClose") && (e += "y"), e } } }, on: { "*": function (e) { for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), o = 1; o < i; o++)n[o - 1] = arguments[o];
47 return t.trigger.apply(t, ["Carousel.".concat(e)].concat(n)) }, init: function (e) { return t.Carousel = e }, createSlide: this.onCreateSlide, settle: this.onSettle } }, this.option("Carousel"))), this.option("dragToClose") && this.Carousel.Panzoom.on({ touchMove: this.onTouchMove, afterTransform: this.onTransform, touchEnd: this.onTouchEnd }), this.trigger("initCarousel"), this } }, { key: "onCreateSlide", value: function (t, e) { var i = e.caption || ""; if ("function" == typeof this.options.caption && (i = this.options.caption.call(this, this, this.Carousel, e)), "string" == typeof i && i.length) { var n = document.createElement("div"), o = "fancybox__caption_".concat(this.id, "_").concat(e.index); n.className = "fancybox__caption", n.innerHTML = i, n.setAttribute("id", o), e.$caption = e.$el.appendChild(n), e.$el.classList.add("has-caption"), e.$el.setAttribute("aria-labelledby", o) } } }, { key: "onSettle", value: function () { this.option("autoFocus") && this.focus() } }, { key: "onFocus", value: function (t) { this.focus(t) } }, { key: "onClick", value: function (t) { if (!t.defaultPrevented) { var e = t.composedPath()[0]; if (e.matches("[data-fancybox-close]")) return t.preventDefault(), void i.close(!1, t); if (e.matches("[data-fancybox-next]")) return t.preventDefault(), void i.next(); if (e.matches("[data-fancybox-prev]")) return t.preventDefault(), void i.prev(); if (e.matches(X) || document.activeElement.blur(), !e.closest(".fancybox__content")) if (!getSelection().toString().length) if (!1 !== this.trigger("click", t)) switch (this.option("click")) { case "close": this.close(); break; case "next": this.next() } } } }, { key: "onTouchMove", value: function () { var t = this.getSlide().Panzoom; return !t || 1 === t.content.scale } }, { key: "onTouchEnd", value: function (t) { var e = t.dragOffset.y; Math.abs(e) >= 150 || Math.abs(e) >= 35 && t.dragOffset.time < 350 ? (this.option("hideClass") && (this.getSlide().hideClass = "fancybox-throwOut".concat(t.content.y < 0 ? "Up" : "Down")), this.close()) : "y" === t.lockAxis && t.panTo({ y: 0 }) } }, { key: "onTransform", value: function (t) { if (this.$backdrop) { var e = Math.abs(t.content.y), i = e < 1 ? "" : Math.max(.33, Math.min(1, 1 - e / t.content.fitHeight * 1.5)); this.$container.style.setProperty("--fancybox-ts", i ? "0s" : ""), this.$container.style.setProperty("--fancybox-opacity", i) } } }, { key: "onMousedown", value: function () { "ready" === this.state && document.body.classList.add("is-using-mouse") } }, { key: "onKeydown", value: function (t) { if (i.getInstance().id === this.id) { document.body.classList.remove("is-using-mouse"); var e = t.key, n = this.option("keyboard"); if (n && !t.ctrlKey && !t.altKey && !t.shiftKey) { var o = t.composedPath()[0], a = document.activeElement && document.activeElement.classList, s = a && a.contains("carousel__button"); if ("Escape" !== e && !s) if (t.target.isContentEditable || -1 !== ["BUTTON", "TEXTAREA", "OPTION", "INPUT", "SELECT", "VIDEO"].indexOf(o.nodeName)) return; if (!1 !== this.trigger("keydown", e, t)) { var r = n[e]; "function" == typeof this[r] && this[r]() } } } } }, { key: "getSlide", value: function () { var t = this.Carousel; if (!t) return null; var e = null === t.page ? t.option("initialPage") : t.page, i = t.pages || []; return i.length && i[e] ? i[e].slides[0] : null } }, { key: "focus", value: function (t) { if (!(i.ignoreFocusChange || ["init", "closing", "customClosing", "destroy"].indexOf(this.state) > -1)) { var e = this.$container, n = this.getSlide(), o = "done" === n.state ? n.$el : null; if (!o || !o.contains(document.activeElement)) { t && t.preventDefault(), i.ignoreFocusChange = !0; for (var a, s = [], r = 0, l = Array.from(e.querySelectorAll(X)); r < l.length; r++) { var c = l[r], h = c.offsetParent, d = o && o.contains(c), u = !this.Carousel.$viewport.contains(c); h && (d || u) ? (s.push(c), void 0 !== c.dataset.origTabindex && (c.tabIndex = c.dataset.origTabindex, c.removeAttribute("data-orig-tabindex")), (c.hasAttribute("autoFocus") || !a && d && !c.classList.contains("carousel__button")) && (a = c)) : (c.dataset.origTabindex = void 0 === c.dataset.origTabindex ? c.getAttribute("tabindex") : c.dataset.origTabindex, c.tabIndex = -1) } t ? s.indexOf(t.target) > -1 ? this.lastFocus = t.target : this.lastFocus === e ? q(s[s.length - 1]) : q(e) : this.option("autoFocus") && a ? q(a) : s.indexOf(document.activeElement) < 0 && q(e), this.lastFocus = document.activeElement, i.ignoreFocusChange = !1 } } } }, { key: "hideScrollbar", value: function () { if (W) { var t = window.innerWidth - document.documentElement.getBoundingClientRect().width, e = "fancybox-style-noscroll", i = document.getElementById(e); i || t > 0 && ((i = document.createElement("style")).id = e, i.type = "text/css", i.innerHTML = ".compensate-for-scrollbar {padding-right: ".concat(t, "px;}"), document.getElementsByTagName("head")[0].appendChild(i), document.body.classList.add("compensate-for-scrollbar")) } } }, { key: "revealScrollbar", value: function () { document.body.classList.remove("compensate-for-scrollbar"); var t = document.getElementById("fancybox-style-noscroll"); t && t.remove() } }, { key: "clearContent", value: function (t) { this.Carousel.trigger("removeSlide", t), t.$content && (t.$content.remove(), t.$content = null), t.$closeButton && (t.$closeButton.remove(), t.$closeButton = null), t._className && t.$el.classList.remove(t._className) } }, { key: "setContent", value: function (t, e) { var i, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, o = t.$el; if (e instanceof HTMLElement) ["img", "iframe", "video", "audio"].indexOf(e.nodeName.toLowerCase()) > -1 ? (i = document.createElement("div")).appendChild(e) : i = e; else { var a = document.createRange().createContextualFragment(e); (i = document.createElement("div")).appendChild(a) } if (t.filter && !t.error && (i = i.querySelector(t.filter)), i instanceof Element) return t._className = "has-".concat(n.suffix || t.type || "unknown"), o.classList.add(t._className), i.classList.add("fancybox__content"), "none" !== i.style.display && "none" !== getComputedStyle(i).getPropertyValue("display") || (i.style.display = t.display || this.option("defaultDisplay") || "flex"), t.id && i.setAttribute("id", t.id), t.$content = i, o.prepend(i), this.manageCloseButton(t), "loading" !== t.state && this.revealContent(t), i; this.setError(t, "{{ELEMENT_NOT_FOUND}}") } }, { key: "manageCloseButton", value: function (t) { var e = this, i = void 0 === t.closeButton ? this.option("closeButton") : t.closeButton; if (i && ("top" !== i || !this.$closeButton)) { var n = document.createElement("button"); n.classList.add("carousel__button", "is-close"), n.setAttribute("title", this.options.l10n.CLOSE), n.innerHTML = this.option("template.closeButton"), n.addEventListener("click", (function (t) { return e.close(t) })), "inside" === i ? (t.$closeButton && t.$closeButton.remove(), t.$closeButton = t.$content.appendChild(n)) : this.$closeButton = this.$container.insertBefore(n, this.$container.firstChild) } } }, { key: "revealContent", value: function (t) { var e = this; this.trigger("reveal", t), t.$content.style.visibility = ""; var i = !1; t.error || "loading" === t.state || null !== this.Carousel.prevPage || t.index !== this.options.startIndex || (i = void 0 === t.showClass ? this.option("showClass") : t.showClass), i ? (t.state = "animating", this.animateCSS(t.$content, i, (function () { e.done(t) }))) : this.done(t) } }, { key: "animateCSS", value: function (t, e, i) { if (t && t.dispatchEvent(new CustomEvent("animationend", { bubbles: !0, cancelable: !0 })), t && e) { t.addEventListener("animationend", (function n(o) { o.currentTarget === this && (t.removeEventListener("animationend", n), i && i(), t.classList.remove(e)) })), t.classList.add(e) } else "function" == typeof i && i() } }, { key: "done", value: function (t) { t.state = "done", this.trigger("done", t);
47 var e = this.getSlide(); e && t.index === e.index && this.option("autoFocus") && this.focus() } }, { key: "setError", value: function (t, e) { t.error = e, this.hideLoading(t), this.clearContent(t); var i = document.createElement("div"); i.classList.add("fancybox-error"), i.innerHTML = this.localize(e || "<p>{{ERROR}}</p>"), this.setContent(t, i, { suffix: "error" }) } }, { key: "showLoading", value: function (t) { var e = this; t.state = "loading", t.$el.classList.add("is-loading"); var i = t.$el.querySelector(".fancybox__spinner"); i || ((i = document.createElement("div")).classList.add("fancybox__spinner"), i.innerHTML = this.option("template.spinner"), i.addEventListener("click", (function () { e.Carousel.Panzoom.velocity || e.close() })), t.$el.prepend(i)) } }, { key: "hideLoading", value: function (t) { var e = t.$el && t.$el.querySelector(".fancybox__spinner"); e && (e.remove(), t.$el.classList.remove("is-loading")), "loading" === t.state && (this.trigger("load", t), t.state = "ready") } }, { key: "next", value: function () { var t = this.Carousel; t && t.pages.length > 1 && t.slideNext() } }, { key: "prev", value: function () { var t = this.Carousel; t && t.pages.length > 1 && t.slidePrev() } }, { key: "jumpTo", value: function () { var t; this.Carousel && (t = this.Carousel).slideTo.apply(t, arguments) } }, { key: "close", value: function (t) { var e = this; if (t && t.preventDefault(), !["closing", "customClosing", "destroy"].includes(this.state) && !1 !== this.trigger("shouldClose", t) && (this.state = "closing", this.Carousel.Panzoom.destroy(), this.detachEvents(), this.trigger("closing", t), "destroy" !== this.state)) { this.$container.setAttribute("aria-hidden", "true"), this.$container.classList.add("is-closing"); var i = this.getSlide(); if (this.Carousel.slides.forEach((function (t) { t.$content && t.index !== i.index && e.Carousel.trigger("removeSlide", t) })), "closing" === this.state) { var n = void 0 === i.hideClass ? this.option("hideClass") : i.hideClass; this.animateCSS(i.$content, n, (function () { e.destroy() }), !0) } } } }
47, { key: "destroy", value: function () { if ("destroy" !== this.state) { this.state = "destroy", this.trigger("destroy"); var t = this.option("placeFocusBack") ? this.getSlide().$trigger : null; this.Carousel.destroy(), this.detachPlugins(), this.Carousel = null, this.options = {}, this.events = {}, this.$container.remove(), this.$container = this.$backdrop = this.$carousel = null, t && q(t), at.delete(this.id); var e = i.getInstance(); e ? e.focus() : (document.documentElement.classList.remove("with-fancybox"), document.body.classList.remove("is-using-mouse"), this.revealScrollbar()) } } }], [{ key: "show", value: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return new i(t, e) } }, { key: "fromEvent", value: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if (!t.defaultPrevented && !(t.button && 0 !== t.button || t.ctrlKey || t.metaKey || t.shiftKey)) { var n, o, a, s = t.composedPath()[0], r = s; if ((r.matches("[data-fancybox-trigger]") || (r = r.closest("[data-fancybox-trigger]"))) && (n = r && r.dataset && r.dataset.fancyboxTrigger), n) { var l = document.querySelectorAll('[data-fancybox="'.concat(n, '"]')), c = parseInt(r.dataset.fancyboxIndex, 10) || 0; r = l.length ? l[c] : r } r || (r = s), Array.from(i.openers.keys()).reverse().some((function (e) { a = r; var i = !1; try { a instanceof Element && ("string" == typeof e || e instanceof String) && (i = a.matches(e) || (a = a.closest(e))) } catch (t) { } return !!i && (t.preventDefault(), o = e, !0) }));
47 var h = !1; if (o) { e.event = t, e.target = a, a.origTarget = s, h = i.fromOpener(o, e); var d = i.getInstance(); d && "ready" === d.state && t.detail && document.body.classList.add("is-using-mouse") } return h } } }, { key: "fromOpener", value: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = function (t) { for (var e = ["false", "0", "no", "null", "undefined"], i = ["true", "1", "yes"], n = Object.assign({}, t.dataset), o = {}, a = 0, s = Object.entries(n); a < s.length; a++) { var r = g(s[a], 2), l = r[0], c = r[1]; if ("fancybox" !== l) if ("width" === l || "height" === l) o["_".concat(l)] = c; else if ("string" == typeof c || c instanceof String) if (e.indexOf(c) > -1) o[l] = !1; else if (i.indexOf(o[l]) > -1) o[l] = !0; else try { o[l] = JSON.parse(c) } catch (t) { o[l] = c } else o[l] = c } return t instanceof Element && (o.$trigger = t), o }, o = [], a = e.startIndex || 0, s = e.target || null, r = void 0 !== (e = k({}, e, i.openers.get(t))).groupAll && e.groupAll, l = void 0 === e.groupAttr ? "data-fancybox" : e.groupAttr, c = l && s ? s.getAttribute("".concat(l)) : ""; if (!s || c || r) { var h = e.root || (s ? s.getRootNode() : document.body); o = [].slice.call(h.querySelectorAll(t)) } if (s && !r && (o = c ? o.filter((function (t) { return t.getAttribute("".concat(l)) === c })) : [s]), !o.length) return !1; var d = i.getInstance(); return !(d && o.indexOf(d.options.$trigger) > -1) && (a = s ? o.indexOf(s) : a, new i(o = o.map(n), k({}, e, { startIndex: a, $trigger: s }))) } }, { key: "bind", value: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; function n() { document.body.addEventListener("click", i.fromEvent, !1) } W && (i.openers.size || (/complete|interactive|loaded/.test(document.readyState) ? n() : document.addEventListener("DOMContentLoaded", n)), i.openers.set(t, e)) } }, { key: "unbind", value: function (t) { i.openers.delete(t), i.openers.size || i.destroy() } }
47, { key: "destroy", value: function () { for (var t; t = i.getInstance();)t.destroy(); i.openers = new Map, document.body.removeEventListener("click", i.fromEvent, !1) } }, { key: "getInstance", value: function (t) { return t ? at.get(t) : Array.from(at.values()).reverse().find((function (t) { return !["closing", "customClosing", "destroy"].includes(t.state) && t })) || null } }, { key: "close", value: function () { var t = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0], e = arguments.length > 1 ? arguments[1] : void 0; if (t) { var n, o = x(at.values()); try { for (o.s(); !(n = o.n()).done;) { var a = n.value; a.close(e) } } catch (t) { o.e(t) } finally { o.f() } } else { var s = i.getInstance(); s && s.close(e) } } }, { key: "next", value: function () { var t = i.getInstance(); t && t.next() } }, { key: "prev", value: function () { var t = i.getInstance(); t && t.prev() } }]), i }(O); rt.version = "4.0.27", rt.defaults = ot, rt.openers = new Map, rt.Plugins = nt, rt.bind("[data-fancybox]"); for (var lt = 0, ct = Object.entries(rt.Plugins || {}); lt < ct.length; lt++) { var ht = g(ct[lt], 2); ht[0]; var dt = ht[1]; "function" == typeof dt.create && dt.create(rt) } t.Carousel = H, t.Fancybox = rt, t.Panzoom = M }));
48/**===========================================================================================================================*/
49/*
50 slick-animation.js
51 Version: 0.3.3 Beta
52 Author: Marvin Hübner
53 Docs: https://github.com/marvinhuebner/slick-animation
54 Repo: https://github.com/marvinhuebner/slick-animation
55 */
56!function(a){a.fn.slickAnimation=function(){function n(a,n,t,i,e){e=void 0!==e&&e,o(a,"delay"),o(a,"duration"),1==n.opacity?(a.addClass(t),a.addClass(i)):(a.removeClass(t),a.removeClass(i)),e&&a.css(n)}function t(a,n){return a?1e3*a+1e3:n?1e3*n:a||n?1e3*a+1e3*n:1e3}function i(a,n,t){var i={};["animation-"+n,"-webkit-animation-"+n,"-moz-animation-"+n,"-o-animation-"+n,"-ms-animation-"+n].forEach(function(a){i[a]=t+"s"}),a.css(i)}function o(a,n){var t={};["animation-"+n,"-webkit-animation-"+n,"-moz-animation-"+n,"-o-animation-"+n,"-ms-animation-"+n].forEach(function(a){t[a]=""}),a.css(t)}var e=a(this),d=e.find(".slick-list .slick-track > div"),s=e.find('[data-slick-index="0"]'),r={opacity:"1"},u={opacity:"0"};return d.each(function(){var d=a(this);d.find("[data-animation-in]").each(function(){var c=a(this);c.css(u);var m=c.attr("data-animation-in"),l=c.attr("data-animation-out"),f=c.attr("data-delay-in"),h=c.attr("data-duration-in"),y=c.attr("data-delay-out"),C=c.attr("data-duration-out");l?(s.length>0&&d.hasClass("slick-current")&&(n(c,r,m,"animated",!0),f&&i(c,"delay",f),h&&i(c,"duration",h),setTimeout(function(){n(c,u,m,"animated"),n(c,r,l,"animated"),y&&i(c,"delay",y),C&&i(c,"duration",C),setTimeout(function(){o(c,"delay"),o(c,"duration")},t(y,C))},t(f,h))),e.on("afterChange",function(a,e,s){d.hasClass("slick-current")&&(n(c,r,m,"animated",!0),f&&i(c,"delay",f),h&&i(c,"duration",h),setTimeout(function(){n(c,u,m,"animated"),n(c,r,l,"animated"),y&&i(c,"delay",y),C&&i(c,"duration",C),setTimeout(function(){o(c,"delay"),o(c,"duration")},t(y,C))},t(f,h)))}),e.on("beforeChange",function(a,t,i){n(c,u,l,"animated",!0)})):(s.length>0&&d.hasClass("slick-current")&&(n(c,r,m,"animated",!0),f&&i(c,"delay",f),h&&i(c,"duration",h)),e.on("afterChange",function(a,t,o){d.hasClass("slick-current")&&(n(c,r,m,"animated",!0),f&&i(c,"delay",f),h&&i(c,"duration",h))}),e.on("beforeChange",function(a,t,i){n(c,u,m,"animated",!0)}))})}),this}}(jQuery);
57/*============================================================================================================================*/
58
59//match-height
60/*
61* jquery-match-height 0.7.2 by @liabru
62* http://brm.io/jquery-match-height/
63* License MIT
64*/
65!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,o=-1,n=function(t){return parseFloat(t)||0},a=function(e){var o=1,a=t(e),i=null,r=[];return a.each(function(){var e=t(this),a=e.offset().top-n(e.css("margin-top")),s=r.length>0?r[r.length-1]:null;null===s?r.push(e):Math.floor(Math.abs(i-a))<=o?r[r.length-1]=s.add(e):r.push(e),i=a}),r},i=function(e){var o={
66byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(o,e):("boolean"==typeof e?o.byRow=e:"remove"===e&&(o.remove=!0),o)},r=t.fn.matchHeight=function(e){var o=i(e);if(o.remove){var n=this;return this.css(o.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(n)}),this}return this.length<=1&&!o.target?this:(r._groups.push({elements:this,options:o}),r._apply(this,o),this)};r.version="0.7.2",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,
67r._afterUpdate=null,r._rows=a,r._parse=n,r._parseOptions=i,r._apply=function(e,o){var s=i(o),h=t(e),l=[h],c=t(window).scrollTop(),p=t("html").outerHeight(!0),u=h.parents().filter(":hidden");return u.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),u.css("display","block"),s.byRow&&!s.target&&(h.each(function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block"),e.data("style-cache",e.attr("style")),e.css({display:o,"padding-top":"0",
68"padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),l=a(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(l,function(e,o){var a=t(o),i=0;if(s.target)i=s.target.outerHeight(!1);else{if(s.byRow&&a.length<=1)return void a.css(s.property,"");a.each(function(){var e=t(this),o=e.attr("style"),n=e.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block");var a={
69display:n};a[s.property]="",e.css(a),e.outerHeight(!1)>i&&(i=e.outerHeight(!1)),o?e.attr("style",o):e.css("display","")})}a.each(function(){var e=t(this),o=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(o+=n(e.css("border-top-width"))+n(e.css("border-bottom-width")),o+=n(e.css("padding-top"))+n(e.css("padding-bottom"))),e.css(s.property,i-o+"px"))})}),u.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(c/p*t("html").outerHeight(!0)),
70this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var o=t(this),n=o.attr("data-mh")||o.attr("data-match-height");n in e?e[n]=e[n].add(o):e[n]=o}),t.each(e,function(){this.matchHeight(!0)})};var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(n,a){if(a&&"resize"===a.type){var i=t(window).width();if(i===e)return;e=i;
71}n?o===-1&&(o=setTimeout(function(){s(a),o=-1},r._throttle)):s(a)},t(r._applyDataApi);var h=t.fn.on?"on":"bind";t(window)[h]("load",function(t){r._update(!1,t)}),t(window)[h]("resize orientationchange",function(t){r._update(!0,t)})});
72/*============================================================================================================================*/
73/*AOS [email protected] - Animate On Scroll Library*/
74!function (e, t) { "object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.AOS = t() : e.AOS = t() }(this, function () { return function (e) { function t(o) { if (n[o]) return n[o].exports; var i = n[o] = { exports: {}, id: o, loaded: !1 }; return e[o].call(i.exports, i, i.exports, t), i.loaded = !0, i.exports } var n = {}; return t.m = e, t.c = n, t.p = "dist/", t(0) }([function (e, t, n) { "use strict";
vendor: 4,719 bytes, line 74
74 function o(e) { return e && e.__esModule ? e : { default: e } } var i = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]) } return e }, r = n(1), a = (o(r), n(6)), u = o(a), c = n(7), f = o(c), s = n(8), d = o(s), l = n(9), p = o(l), m = n(10), b = o(m), v = n(11), y = o(v), g = n(14), h = o(g), w = [], k = !1, x = document.all && !window.atob, j = { offset: 120, delay: 0, easing: "ease", duration: 400, disable: !1, once: !1, startEvent: "DOMContentLoaded", throttleDelay: 99, debounceDelay: 50, disableMutationObserver: !1 }, O = function () { var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; if (e && (k = !0), k) return w = (0, y.default)(w, j), (0, b.default)(w, j.once), w }, _ = function () { w = (0, h.default)(), O() }, S = function () { w.forEach(function (e, t) { e.node.removeAttribute("data-aos"), e.node.removeAttribute("data-aos-easing"), e.node.removeAttribute("data-aos-duration"), e.node.removeAttribute("data-aos-delay") }) }, z = function (e) { return e === !0 || "mobile" === e && p.default.mobile() || "phone" === e && p.default.phone() || "tablet" === e && p.default.tablet() || "function" == typeof e && e() === !0 }, A = function (e) { return j = i(j, e), w = (0, h.default)(), z(j.disable) || x ? S() : (document.querySelector("body").setAttribute("data-aos-easing", j.easing), document.querySelector("body").setAttribute("data-aos-duration", j.duration), document.querySelector("body").setAttribute("data-aos-delay", j.delay), "DOMContentLoaded" === j.startEvent && ["complete", "interactive"].indexOf(document.readyState) > -1 ? O(!0) : "load" === j.startEvent ? window.addEventListener(j.startEvent, function () { O(!0) }) : document.addEventListener(j.startEvent, function () { O(!0) }), window.addEventListener("resize", (0, f.default)(O, j.debounceDelay, !0)), window.addEventListener("orientationchange", (0, f.default)(O, j.debounceDelay, !0)), window.addEventListener("scroll", (0, u.default)(function () { (0, b.default)(w, j.once) }, j.throttleDelay)), j.disableMutationObserver || (0, d.default)("[data-aos]", _), w) }; e.exports = { init: A, refresh: O, refreshHard: _ } }, function (e, t) { }, , , , , function (e, t) { (function (t) { "use strict"; function n(e, t, n) { function o(t) { var n = b, o = v; return b = v = void 0, k = t, g = e.apply(o, n) } function r(e) { return k = e, h = setTimeout(s, t), _ ? o(e) : g } function a(e) { var n = e - w, o = e - k, i = t - n; return S ? j(i, y - o) : i } function c(e) { var n = e - w, o = e - k; return void 0 === w || n >= t || n < 0 || S && o >= y } function s() { var e = O(); return c(e) ? d(e) : void (h = setTimeout(s, a(e))) } function d(e) { return h = void 0, z && b ? o(e) : (b = v = void 0, g) } function l() { void 0 !== h && clearTimeout(h), k = 0, b = w = v = h = void 0 } function p() { return void 0 === h ? g : d(O()) } function m() { var e = O(), n = c(e); if (b = arguments, v = this, w = e, n) { if (void 0 === h) return r(w); if (S) return h = setTimeout(s, t), o(w) } return void 0 === h && (h = setTimeout(s, t)), g } var b, v, y, g, h, w, k = 0, _ = !1, S = !1, z = !0; if ("function" != typeof e) throw new TypeError(f); return t = u(t) || 0, i(n) && (_ = !!n.leading, S = "maxWait" in n, y = S ? x(u(n.maxWait) || 0, t) : y, z = "trailing" in n ? !!n.trailing : z), m.cancel = l, m.flush = p, m } function o(e, t, o) { var r = !0, a = !0; if ("function" != typeof e) throw new TypeError(f); return i(o) && (r = "leading" in o ? !!o.leading : r, a = "trailing" in o ? !!o.trailing : a), n(e, t, { leading: r, maxWait: t, trailing: a }) } function i(e) { var t = "undefined" == typeof e ? "undefined" : c(e); return !!e && ("object" == t || "function" == t) } function r(e) { return !!e && "object" == ("undefined" == typeof e ? "undefined" : c(e)) } function a(e) { return "symbol" == ("undefined" == typeof e ? "undefined" : c(e)) || r(e) && k.call(e) == d } function u(e) { if ("number" == typeof e) return e; if (a(e)) return s; if (i(e)) { var t = "function" == typeof e.valueOf ? e.valueOf() : e; e = i(t) ? t + "" : t } if ("string" != typeof e) return 0 === e ? e : +e; e = e.replace(l, ""); var n = m.test(e); return n || b.test(e) ? v(e.slice(2), n ? 2 : 8) : p.test(e) ? s : +e } var c = "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 }, f = "Expected a function", s = NaN, d = "[object Symbol]", l = /^\s+|\s+$/g, p = /^[-+]0x[0-9a-f]+$/i, m = /^0b[01
74]+$/i, b = /^0o[0-7]+$/i, v = parseInt, y = "object" == ("undefined" == typeof t ? "undefined" : c(t)) && t && t.Object === Object && t, g = "object" == ("undefined" == typeof self ? "undefined" : c(self)) && self && self.Object === Object && self, h = y || g || Function("return this")(), w = Object.prototype, k = w.toString, x = Math.max, j = Math.min, O = function () { return h.Date.now() }; e.exports = o }).call(t, function () { return this }()) }, function (e, t) { (function (t) { "use strict"; function n(e, t, n) { function i(t) { var n = b, o = v; return b = v = void 0, O = t, g = e.apply(o, n) } function r(e) { return O = e, h = setTimeout(s, t), _ ? i(e) : g } function u(e) { var n = e - w, o = e - O, i = t - n; return S ? x(i, y - o) : i } function f(e) { var n = e - w, o = e - O; return void 0 === w || n >= t || n < 0 || S && o >= y } function s() { var e = j(); return f(e) ? d(e) : void (h = setTimeout(s, u(e))) } function d(e) { return h = void 0, z && b ? i(e) : (b = v = void 0, g) } function l() { void 0 !== h && clearTimeout(h), O = 0, b = w = v = h = void 0 } function p() { return void 0 === h ? g : d(j()) } function m() { var e = j(), n = f(e); if (b = arguments, v = this, w = e, n) { if (void 0 === h) return r(w); if (S) return h = setTimeout(s, t), i(w) } return void 0 === h && (h = setTimeout(s, t)), g } var b, v, y, g, h, w, O = 0, _ = !1, S = !1, z = !0; if ("function" != typeof e) throw new TypeError(c); return t = a(t) || 0, o(n) && (_ = !!n.leading, S = "maxWait" in n, y = S ? k(a(n.maxWait) || 0, t) : y, z = "trailing" in n ? !!n.trailing : z), m.cancel = l, m.flush = p, m } function o(e) { var t = "undefined" == typeof e ? "undefined" : u(e); return !!e && ("object" == t || "function" == t) } function i(e) { return !!e && "object" == ("undefined" == typeof e ? "undefined" : u(e)) } function r(e) { return "symbol" == ("undefined" == typeof e ? "undefined" : u(e)) || i(e) && w.call(e) == s } function a(e) { if ("number" == typeof e) return e; if (r(e)) return f; if (o(e)) { var t = "function" == typeof e.valueOf ? e.valueOf() : e; e = o(t) ? t + "" : t } if ("string" != typeof e) return 0 === e ? e : +e; e = e.replace(d, ""); var n = p.test(e); return n || m.test(e) ? b(e.slice(2), n ? 2 : 8) : l.test(e) ? f : +e } var u = "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 }, c = "Expected a function", f = NaN, s = "[object Symbol]", d = /^\s+|\s+$/g, l = /^[-+]0x[0-9a-f]+$/i, p = /^0b[01]+$/i, m = /^0o[0-7]+$/i, b = parseInt, v = "object" == ("undefined" == typeof t ? "undefined" : u(t)) && t && t.Object === Object && t, y = "object" == ("undefined" == typeof self ? "undefined" : u(self)) && self && self.Object === Object && self, g = v || y || Function("return this")(), h = Object.prototype, w = h.toString, k = Math.max, x = Math.min, j = function () { return g.Date.now() }; e.exports = n }).call(t, function () { return this }()) }, function (e, t) { "use strict"; function n(e, t) { var n = new r(o); a = t, n.observe(i.documentElement, { childList: !0, subtree: !0, removedNodes: !0 }) } function o(e) { e && e.forEach(function (e) { var t = Array.prototype.slice.call(e.addedNodes), n = Array.prototype.slice.call(e.removedNodes), o = t.concat(n).filter(function (e) { return e.hasAttribute && e.hasAttribute("data-aos") }).length; o && a() }) } Object.defineProperty(t, "__esModule", { value: !0 }); var i = window.document, r = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver, a = function () { }; t.default = n }, function (e, t) { "use strict"; function n(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } function o() { return navigator.userAgent || navigator.vendor || window.opera || "" } Object.defineProperty(t, "__esModule", { value: !0 }); var i = function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var o = t[n]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) } } return function (t, n, o) { return n && e(t.prototype, n), o && e(t, o), t } }(), r = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i, a = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
74sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i, u = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i, c = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i, f = function () { function e() { n(this, e) } return i(e, [{ key: "phone", value: function () { var e = o(); return !(!r.test(e) && !a.test(e.substr(0, 4))) } }, { key: "mobile", value: function () { var e = o(); return !(!u.test(e) && !c.test(e.substr(0, 4))) } }, { key: "tablet", value: function () { return this.mobile() && !this.phone() } }]), e }(); t.default = new f }, function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var n = function (e, t, n) { var o = e.node.getAttribute("data-aos-once"); t > e.position ? e.node.classList.add("aos-animate") : "undefined" != typeof o && ("false" === o || !n && "true" !== o) && e.node.classList.remove("aos-animate") }, o = function (e, t) { var o = window.pageYOffset, i = window.innerHeight; e.forEach(function (e, r) { n(e, i + o, t) }) }; t.default = o }, function (e, t, n) { "use strict"; function o(e) { return e && e.__esModule ? e : { default: e } } Object.defineProperty(t, "__esModule", { value: !0 }); var i = n(12), r = o(i), a = function (e, t) { return e.forEach(function (e, n) { e.node.classList.add("aos-init"), e.position = (0, r.default)(e.node, t.offset) }), e }; t.default = a }, function (e, t, n) { "use strict"; function o(e) { return e && e.__esModule ? e : { default: e } } Object.defineProperty(t, "__esModule", { value: !0 }); var i = n(13), r = o(i), a = function (e, t) { var n = 0, o = 0, i = window.innerHeight, a = { offset: e.getAttribute("data-aos-offset"), anchor: e.getAttribute("data-aos-anchor"), anchorPlacement: e.getAttribute("data-aos-anchor-placement") }; switch (a.offset && !isNaN(a.offset) && (o = parseInt(a.offset)), a.anchor && document.querySelectorAll(a.anchor) && (e = document.querySelectorAll(a.anchor)[0]), n = (0, r.default)(e).top, a.anchorPlacement) { case "top-bottom": break; case "center-bottom": n += e.offsetHeight / 2; break; case "bottom-bottom": n += e.offsetHeight; break; case "top-center": n += i / 2; break; case "bottom-center": n += i / 2 + e.offsetHeight; break; case "center-center": n += i / 2 + e.offsetHeight / 2; break; case "top-top": n += i; break; case "bottom-top": n += e.offsetHeight + i; break; case "center-top": n += e.offsetHeight / 2 + i }return a.anchorPlacement || a.offset || isNaN(t) || (o = t), n + o }; t.default = a }, function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var n = function (e) { for (var t = 0, n = 0; e && !isNaN(e.offsetLeft) && !isNaN(e.offsetTop);)t += e.offsetLeft - ("BODY" != e.tagName ? e.scrollLeft : 0), n += e.offsetTop - ("BODY" != e.tagName ? e.scrollTop : 0), e = e.offsetParent; return { top: n, left: t } }; t.default = n }, function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var n = function (e) { return e = e || document.querySelectorAll("[data-aos]"), Array.prototype.map.call(e, function (e) { return { node: e } }) }; t.default = n }]) });
vendor: 2,680 bytes, lines 75-77
75/*============================================================================================================================*/
76/* Nav Accordion Plugin v1.1.2 */
77(function ($) { $.fn.navAccordion = function (options, callback) { this.each(function () { var settings = $.extend({ expandButtonText: "+", collapseButtonText: "-", selectedExpand: "true", selectedClass: "selected", multipleLevels: "true", buttonWidth: "30px", buttonPosition: "right", slideSpeed: "fast", parentElement: "li", childElement: "ul", headersOnly: false, headersOnlyCheck: false, delayLink: false, delayAmount: null }, options); var container = this, multi = settings.multipleLevels ? '' : ' > ' + settings.childElement + ' > '; $(container).addClass('accordion-nav'); $(multi + settings.parentElement, container).each(function () { if (($(this).contents(settings.childElement).length > 0 && settings.headersOnlyCheck == false) || (!($('> a', this).attr('href')) && settings.headersOnlyCheck == true)) { $(this).addClass('has-subnav').css('position', 'relative').find('>a').css('padding-' + settings.buttonPosition, settings.buttonWidth); $(' > ' + settings.childElement, this).before('<span class="accordion-btn-wrap"><span class="accordion-btn accordion-collapsed">' + settings.expandButtonText + '</span><span class="accordion-btn accordion-expanded">' + settings.collapseButtonText + '</span></span>'); $('.accordion-btn-wrap', this).css({ 'width': settings.buttonWidth, 'position': 'absolute', 'top': 0, 'text-align': 'center', 'cursor': 'pointer', 'display': 'inline-block' }).css(settings.buttonPosition, 0); $('.accordion-btn ', this).css({ 'display': 'inline-block', 'width': '100%' }); $('.accordion-expanded', this).css('display', 'none'); } if (!($('> a', this).attr('href')) || settings.headersOnly) { $(this).addClass('accordion-header-only').find('.accordion-btn-wrap').css({ 'width': '100%', 'text-align': settings.buttonPosition }).find('.accordion-btn ').css({ 'width': settings.buttonWidth, 'text-align': 'center' }); } if (settings.delayLink && !settings.headersOnly) { var currentThis = this, speed = settings.delayAmount != null ? settings.delayAmount : settings.slideSpeed; if (speed == "fast") { speed = 200; } else if (speed == "slow") { speed = 600; } $('> a', currentThis).on('click', function (e) { if (!$('> .accordion-btn-wrap', currentThis).hasClass("accordion-active")) { e.preventDefault(); var href = $(this).attr('href'); clickToggle($('> .accordion-btn-wrap', currentThis)); setTimeout(function () { window.location = href; }, speed) } }) } }); var selectedNavAccordion = $(settings.parentElement + '.' + settings.selectedClass + ' > .accordion-btn-wrap', container);
77 var buttonheightResize = debounce(function () { buttonheight(); expandSelected(); }, 250); $(window).on('resize', buttonheightResize); buttonheight(); expandSelected(); $(container).on('click', '.accordion-btn-wrap', function (e) { e.preventDefault(); clickToggle(this); }); if (typeof callback == "function") { callback(); } function clickToggle(element) { var nextChild = $(element).next(settings.childElement), currentExpandBtn = $('.accordion-expanded', element), currentCollapseBtn = $('.accordion-collapsed', element), parentObj = $(element).closest(settings.parentElement); if (nextChild.is(':visible')) { nextChild.slideUp(settings.slideSpeed); $(element).removeClass('accordion-active'); currentExpandBtn.css('display', 'none'); currentCollapseBtn.css('display', 'inline-block'); parentObj.add(parentObj.siblings('.active')).add(parentObj.find('.active')).removeClass('active'); } else { $(element).closest(settings.childElement).find('.accordion-active').removeClass('accordion-active').next(settings.childElement).slideUp(settings.slideSpeed).prev().find('.accordion-expanded').css('display', 'none').parent().find('.accordion-collapsed').css('display', 'inline-block'); parentObj.add(parentObj.siblings('.active')).add(parentObj.find('.active')).removeClass('active'); $(element).addClass('accordion-active'); nextChild.slideToggle(settings.slideSpeed); currentExpandBtn.css('display', 'inline-block'); currentCollapseBtn.css('display', 'none'); parentObj.addClass('active'); } } function expandSelected() { if (settings.selectedExpand) { if (!settings.headersOnlyCheck) { selectedNavAccordion.find('.accordion-expanded').css('display', 'inline-block'); selectedNavAccordion.find('.accordion-collapsed').css('display', 'none'); selectedNavAccordion.addClass('accordion-active').next(settings.childElement).css('display', 'block'); selectedNavAccordion.closest(settings.parentElement).addClass('active'); } else { $(settings.parentElement + '.' + settings.selectedClass + ' > ' + settings.childElement, container).css('display', 'block'); $(settings.parentElement + '.' + settings.selectedClass).addClass('active'); } } } function buttonheight() { $('.accordion-btn', container).each(function () { $(settings.parentElement + '.has-subnav > ' + settings.childElement, container).css('display', 'block'); var parentItem = $(this).closest(settings.parentElement), lineheight = $('> a', parentItem).innerHeight(); $(this).css({ 'line-height': lineheight + 'px', 'height': lineheight }); $(settings.parentElement + ((settings.headersOnlyCheck) ? ' ' : '.has-subnav > ') + settings.childElement, container).css('display', 'none'); $('.accordion-expanded').css('display', 'none'); $('.accordion-collapsed').css('display', 'inline-block'); }) } function debounce(func, wait, immediate) { var timeout; return function () { var context = this, args = arguments; var later = function () { timeout = null; if (!immediate) func.apply(context, args); }; var callNow = immediate && !timeout; clearTimeout(timeout); timeout = setTimeout(later, wait); if (callNow) func.apply(context, args); }; }; }); } })(jQuery);
78/*============================================================================================================================*/
79/* UItoTop jQuery Plugin 1.2 by Matt Varone*/
80!function(a){a.fn.UItoTop=function(b){var c={text:"To Top",min:200,inDelay:600,outDelay:400,containerID:"toTop",containerHoverID:"toTopHover",scrollSpeed:750,easingType:"linear"},d=a.extend(c,b),e="#"+d.containerID,f="#"+d.containerHoverID;a("body").append('<a href="#" id="'+d.containerID+'">'+d.text+"</a>"),a(e).hide().on("click.UItoTop",function(){return a("html, body").animate({scrollTop:0},d.scrollSpeed,d.easingType),a("#"+d.containerHoverID,this).stop().animate({opacity:0}
80,d.inDelay,d.easingType),!1}).prepend('<span id="'+d.containerHoverID+'"></span>').hover(function(){a(f,this).stop().animate({opacity:1},600,"linear")},function(){a(f,this).stop().animate({opacity:0},700,"linear")}),a(window).scroll(function(){var b=a(window).scrollTop();"undefined"==typeof document.body.style.maxHeight&&a(e).css({position:"absolute",top:b+a(window).height()-50}),b>d.min?a(e).fadeIn(d.inDelay):a(e).fadeOut(d.Outdelay)})}}(jQuery);
81/*============================================================================================================================*/
82/* Auto Zoom Fix for iPhone */
83"use strict";var addMaximumScaleToMetaViewport=function(){var e,t,a=document.querySelector("meta[name=viewport]");null!==a&&(t=a.getAttribute("content"),t=(e=/maximum\-scale=[0-9\.]+/g).test(t)?t.replace(e,"maximum-scale=1.0"):[t,"maximum-scale=1.0"].join(", "),a.setAttribute("content",t))},disableIosTextFieldZoom=addMaximumScaleToMetaViewport,checkIsIOS=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream};checkIsIOS()&&disableIosTextFieldZoom();
84/**===========================================================================================================================*/
85/* Mobile Chrome vh units fix */
86var VHChromeFix=function(e){var t=this,i=navigator.userAgent.toLowerCase(),n=/chrome/.test(i)&&/android/.test(i),i=/crios/.test(i);(n||i)&&(this.getElements(e),this.fixAll(),this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,window.addEventListener("resize",function(){t.windowWidth!==window.innerWidth&&t.windowHeight!==window.innerHeight&&(t.windowWidth=window.innerWidth,t.windowHeight=window.innerHeight,t.fixAll())}))};VHChromeFix.prototype.getElements=function(e){this.elements=[],e=this.isArray(e)?e:[e];for(var t=0;t<e.length;t++)for(var i=e[t].selector,n=document.querySelectorAll(i),o=0;o<n.length;o++)this.elements.push({domElement:n[o],vh:e[t].vh})},VHChromeFix.prototype.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},VHChromeFix.prototype.fixAll=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.domElement.style.height=window.innerHeight*t.vh/100+"px"}};
87/**===========================================================================================================================*/
88/* == malihu jquery custom scrollbar plugin == Version: 3.1.5, License: MIT License (MIT) */
89!function (e) { "function" == typeof define && define.amd ? define(["jquery"], e) : "undefined" != typeof module && module.exports ? module.exports = e : e(jQuery, window, document) }(function (R) { var s, W, a, n, l, i, p, A, L, g, f, c, d, u, h, m, v, x, _, w, S, b, y, C, B, T, k, M, z, r, O, I, D, E, H, P, U, F, q, j, Y, X, N, V, Q, G, J, K, Z, $, t, ee, te, oe, ae, ne, ie, e, o, re; e = "function" == typeof define && define.amd, o = "undefined" != typeof module && module.exports, re = "https:" == document.location.protocol ? "https:" : "http:", e || (o ? require("jquery-mousewheel")(R) : R.event.special.mousewheel || R("head").append(decodeURI("%3Cscript src=" + re + "//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))), s = "mCustomScrollbar", W = "mCS", a = ".mCustomScrollbar", n = { setTop: 0, setLeft: 0, axis: "y", scrollbarPosition: "inside", scrollInertia: 950, autoDraggerLength: !0, alwaysShowScrollbar: 0, snapOffset: 0, mouseWheel: { enable: !0, scrollAmount: "auto", axis: "y", deltaFactor: "auto", disableOver: ["select", "option", "keygen", "datalist", "textarea"] }, scrollButtons: { scrollType: "stepless", scrollAmount: "auto" }, keyboard: { enable: !0, scrollType: "stepless", scrollAmount: "auto" }, contentTouchScroll: 25, documentTouchScroll: !0, advanced: { autoScrollOnFocus: "input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']", updateOnContentResize: !0, updateOnImageLoad: "auto", autoUpdateTimeout: 60 }, theme: "light", callbacks: { onTotalScrollOffset: 0, onTotalScrollBackOffset: 0, alwaysTriggerOffsets: !0 } }, l = 0, i = {}, p = window.attachEvent && !window.addEventListener ? 1 : 0, A = !1, g = ["mCSB_dragger_onDrag", "mCSB_scrollTools_onDrag", "mCS_img_loaded", "mCS_disabled", "mCS_destroyed", "mCS_no_scrollbar", "mCS-autoHide", "mCS-dir-rtl", "mCS_no_scrollbar_y", "mCS_no_scrollbar_x", "mCS_y_hidden", "mCS_x_hidden", "mCSB_draggerContainer", "mCSB_buttonUp", "mCSB_buttonDown", "mCSB_buttonLeft", "mCSB_buttonRight"], f = { init: function (r) { var r = R.extend(!0, {}, n, r), e = c.call(this); if (r.live) { var t = r.liveSelector || this.selector || a, o = R(t); if ("off" === r.live) return void u(t); i[t] = setTimeout(function () { o.mCustomScrollbar(r), "once" === r.live && o.length && u(t) }, 500) } else u(t); return r.setWidth = r.set_width || r.setWidth, r.setHeight = r.set_height || r.setHeight, r.axis = r.horizontalScroll ? "x" : h(r.axis), r.scrollInertia = 0 < r.scrollInertia && r.scrollInertia < 17 ? 17 : r.scrollInertia, "object" != typeof r.mouseWheel && 1 == r.mouseWheel && (r.mouseWheel = { enable: !0, scrollAmount: "auto", axis: "y", preventDefault: !1, deltaFactor: "auto", normalizeDelta: !1, invert: !1 }), r.mouseWheel.scrollAmount = r.mouseWheelPixels || r.mouseWheel.scrollAmount, r.mouseWheel.normalizeDelta = r.advanced.normalizeMouseWheelDelta || r.mouseWheel.normalizeDelta, r.scrollButtons.scrollType = m(r.scrollButtons.scrollType), d(r), R(e).each(function () { var e, t, o, a, n, i = R(this); i.data(W) || (i.data(W, { idx: ++l, opt: r, scrollRatio: { y: null, x: null }, overflowed: null, contentReset: { y: null, x: null }, bindEvents: !1, tweenRunning: !1, sequential: {}, langDir: i.css("direction"), cbOffsets: null, trigger: null, poll: { size: { o: 0, n: 0 }, img: { o: 0, n: 0 }, change: { o: 0, n: 0 } } }), t = (e = i.data(W)).opt, o = i.data("mcs-axis"), a = i.data("mcs-scrollbar-position"), n = i.data("mcs-theme"), o && (t.axis = o), a && (t.scrollbarPosition = a), n && (t.theme = n, d(t)), v.call(this), e && t.callbacks.onCreate && "function" == typeof t.callbacks.onCreate && t.callbacks.onCreate.call(this), R("#mCSB_" + e.idx + "_container img:not(." + g[2] + ")").addClass(g[2]), f.update.call(null, i)) }) }, update: function (e, r) { e = e || c.call(this); return R(e).each(function () { var e, t, o, a, n, i = R(this); i.data(W) && (t = (e = i.data(W)).opt, n = R("#mCSB_" + e.idx + "_container"), o = R("#mCSB_" + e.idx), a = [R("#mCSB_" + e.idx + "_dragger_vertical"), R("#mCSB_" + e.idx + "_dragger_horizontal")], n.length && (e.tweenRunning && J(i), r && e && t.callbacks.onBeforeUpdate && "function" == typeof t.callbacks.onBeforeUpdate && t.callbacks.onBeforeUpdate.call(this), i.hasClass(g[3]) && i.removeClass(g[3]), i.hasClass(g[4]) && i.removeClass(g[4]), o.css("max-height", "none"), o.height() !== i.height() && o.css("max-height", i.height()), _.call(this), "y" === t.axis || t.advanced.autoExpandHorizontalScroll || n.css("width", x(n)), e.overflowed = C.call(this), M.call(this), t.autoDraggerLength && S.call(this), b.call(this), T.call(this), n = [Math.abs(n[0].offsetTop), Math.abs(n[0].offsetLeft)], "x" !== t.axis && (e.overflowed[0] ? a[0].height() > a[0].parent().height() ? B.call(this) : (K(i, n[0].toString(), { dir: "y", dur: 0, overwrite: "none" }
89), e.contentReset.y = null) : (B.call(this), "y" === t.axis ? k.call(this) : "yx" === t.axis && e.overflowed[1] && K(i, n[1].toString(), { dir: "x", dur: 0, overwrite: "none" }))), "y" !== t.axis && (e.overflowed[1] ? a[1].width() > a[1].parent().width() ? B.call(this) : (K(i, n[1].toString(), { dir: "x", dur: 0, overwrite: "none" }), e.contentReset.x = null) : (B.call(this), "x" === t.axis ? k.call(this) : "yx" === t.axis && e.overflowed[0] && K(i, n[0].toString(), { dir: "y", dur: 0, overwrite: "none" }))), r && e && (2 === r && t.callbacks.onImageLoad && "function" == typeof t.callbacks.onImageLoad ? t.callbacks.onImageLoad.call(this) : 3 === r && t.callbacks.onSelectorChange && "function" == typeof t.callbacks.onSelectorChange ? t.callbacks.onSelectorChange.call(this) : t.callbacks.onUpdate && "function" == typeof t.callbacks.onUpdate && t.callbacks.onUpdate.call(this)), G.call(this))) }) }, scrollTo: function (r, l) { if (void 0 !== r && null != r) { var e = c.call(this); return R(e).each(function () { var e, t, o, a, n, i = R(this); i.data(W) && (e = i.data(W), n = { trigger: "external", scrollInertia: (t = e.opt).scrollInertia, scrollEasing: "mcsEaseInOut", moveDragger: !1, timeout: 60, callbacks: !0, onStart: !0, onUpdate: !0, onComplete: !0 }, o = R.extend(!0, {}, n, l), a = V.call(this, r), n = 0 < o.scrollInertia && o.scrollInertia < 17 ? 17 : o.scrollInertia, a[0] = Q.call(this, a[0], "y"), a[1] = Q.call(this, a[1], "x"), o.moveDragger && (a[0] *= e.scrollRatio.y, a[1] *= e.scrollRatio.x), o.dur = ie() ? 0 : n, setTimeout(function () { null !== a[0] && void 0 !== a[0] && "x" !== t.axis && e.overflowed[0] && (o.dir = "y", o.overwrite = "all", K(i, a[0].toString(), o)), null !== a[1] && void 0 !== a[1] && "y" !== t.axis && e.overflowed[1] && (o.dir = "x", o.overwrite = "none", K(i, a[1].toString(), o)) }, o.timeout)) }) } }, stop: function () { var e = c.call(this); return R(e).each(function () { var e = R(this); e.data(W) && J(e) }) }, disable: function (t) { var e = c.call(this); return R(e).each(function () { var e = R(this); e.data(W) && (e.data(W), G.call(this, "remove"), k.call(this), t && B.call(this), M.call(this, !0), e.addClass(g[3])) }) }, destroy: function () { var r = c.call(this); return R(r).each(function () { var e, t, o, a, n, i = R(this); i.data(W) && (t = (e = i.data(W)).opt, o = R("#mCSB_" + e.idx), a = R("#mCSB_" + e.idx + "_container"), n = R(".mCSB_" + e.idx + "_scrollbar"), t.live && u(t.liveSelector || R(r).selector), G.call(this, "remove"), k.call(this), B.call(this), i.removeData(W), ee(this, "mcs"), n.remove(), a.find("img." + g[2]).removeClass(g[2]), o.replaceWith(a.contents()), i.removeClass(s + " _" + W + "_" + e.idx + " " + g[6] + " " + g[7] + " " + g[5] + " " + g[3]).addClass(g[4])) }) } }, c = function () { return "object" != typeof R(this) || R(this).length < 1 ? a : this }, d = function (e) { e.autoDraggerLength = !(-1 < R.inArray(e.theme, ["rounded", "rounded-dark", "rounded-dots", "rounded-dots-dark"])) && e.autoDraggerLength, e.autoExpandScrollbar = !(-1 < R.inArray(e.theme, ["rounded-dots", "rounded-dots-dark", "3d", "3d-dark", "3d-thick", "3d-thick-dark", "inset", "inset-dark", "inset-2", "inset-2-dark", "inset-3", "inset-3-dark"])) && e.autoExpandScrollbar, e.scrollButtons.enable = !(-1 < R.inArray(e.theme, ["minimal", "minimal-dark"])) && e.scrollButtons.enable, e.autoHideScrollbar = -1 < R.inArray(e.theme, ["minimal", "minimal-dark"]) || e.autoHideScrollbar, e.scrollbarPosition = -1 < R.inArray(e.theme, ["minimal", "minimal-dark"]) ? "outside" : e.scrollbarPosition }, u = function (e) { i[e] && (clearTimeout(i[e]), ee(i, e)) }, h = function (e) { return "yx" === e || "xy" === e || "auto" === e ? "yx" : "x" === e || "horizontal" === e ? "x" : "y" }, m = function (e) { return "stepped" === e || "pixels" === e || "step" === e || "click" === e ? "stepped" : "stepless" }, v = function () { var e = R(this), t = e.data(W), o = t.opt, a = o.autoExpandScrollbar ? " " + g[1] + "_expand" : "", n = ["<div id='mCSB_" + t.idx + "_scrollbar_vertical' class='mCSB_scrollTools mCSB_" + t.idx + "_scrollbar mCS-" + o.theme + " mCSB_scrollTools_vertical" + a + "'><div class='" + g[12] + "'>
89<div id='mCSB_" + t.idx + "_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar'></div></div><div class='mCSB_draggerRail'></div></div></div>", "<div id='mCSB_" + t.idx + "_scrollbar_horizontal' class='mCSB_scrollTools mCSB_" + t.idx + "_scrollbar mCS-" + o.theme + " mCSB_scrollTools_horizontal" + a + "'><div class='" + g[12] + "'><div id='mCSB_" + t.idx + "_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar'></div></div><div class='mCSB_draggerRail'></div></div></div>"], i = "yx" === o.axis ? "mCSB_vertical_horizontal" : "x" === o.axis ? "mCSB_horizontal" : "mCSB_vertical", r = "yx" === o.axis ? n[0] + n[1] : "x" === o.axis ? n[1] : n[0], l = "yx" === o.axis ? "<div id='mCSB_" + t.idx + "_container_wrapper' class='mCSB_container_wrapper'></div>" : "", a = o.autoHideScrollbar ? " " + g[6] : "", n = "x" !== o.axis && "rtl" === t.langDir ? " " + g[7] : ""; o.setWidth && e.css("width", o.setWidth), o.setHeight && e.css("height", o.setHeight), o.setLeft = "y" !== o.axis && "rtl" === t.langDir ? "989999px" : o.setLeft, e.addClass(s + " _" + W + "_" + t.idx + a + n).wrapInner("<div id='mCSB_" + t.idx + "' class='mCustomScrollBox mCS-" + o.theme + " " + i + "'><div id='mCSB_" + t.idx + "_container' class='mCSB_container' style='position:relative; top:" + o.setTop + "; left:" + o.setLeft + ";' dir='" + t.langDir + "'></div></div>"); n = R("#mCSB_" + t.idx), i = R("#mCSB_" + t.idx + "_container"); "y" === o.axis || o.advanced.autoExpandHorizontalScroll || i.css("width", x(i)), "outside" === o.scrollbarPosition ? ("static" === e.css("position") && e.css("position", "relative"), e.css("overflow", "visible"), n.addClass("mCSB_outside").after(r)) : (n.addClass("mCSB_inside").append(r), i.wrap(l)), w.call(this); t = [R("#mCSB_" + t.idx + "_dragger_vertical"), R("#mCSB_" + t.idx + "_dragger_horizontal")]; t[0].css("min-height", t[0].height()), t[1].css("min-width", t[1].width()) }, x = function (e) { var t = [e[0].scrollWidth, Math.max.apply(Math, e.children().map(function () { return R(this).outerWidth(!0) }).get())], e = e.parent().width(); return e < t[0] ? t[0] : e < t[1] ? t[1] : "100%" }, _ = function () { var e = R(this).data(W), t = e.opt, o = R("#mCSB_" + e.idx + "_container"); t.advanced.autoExpandHorizontalScroll && "y" !== t.axis && (o.css({ width: "auto", "min-width": 0, "overflow-x": "scroll" }), e = Math.ceil(o[0].scrollWidth), 3 === t.advanced.autoExpandHorizontalScroll || 2 !== t.advanced.autoExpandHorizontalScroll && e > o.parent().width() ? o.css({ width: e, "min-width": "100%", "overflow-x": "inherit" }) : o.css({ "overflow-x": "inherit", position: "absolute" }).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;'></div>").css({ width: Math.ceil(o[0].getBoundingClientRect().right + .4) - Math.floor(o[0].getBoundingClientRect().left), "min-width": "100%", position: "relative" }).unwrap()) }, w = function () { var e = R(this).data(W), t = e.opt, o = R(".mCSB_" + e.idx + "_scrollbar:first"), e = ae(t.scrollButtons.tabindex) ? "tabindex='" + t.scrollButtons.tabindex + "'" : "", e = ["<a href='#' class='" + g[13] + "' " + e + "></a>", "<a href='#' class='" + g[14] + "' " + e + "></a>", "<a href='#' class='" + g[15] + "' " + e + "></a>", "<a href='#' class='" + g[16] + "' " + e + "></a>"], e = ["x" === t.axis ? e[2] : e[0], "x" === t.axis ? e[3] : e[1], e[2], e[3]]; t.scrollButtons.enable && o.prepend(e[0]).append(e[1]).next(".mCSB_scrollTools").prepend(e[2]).append(e[3]) }, S = function () { var e = R(this).data(W), t = R("#mCSB_" + e.idx), o = R("#mCSB_" + e.idx + "_container"), a = [R("#mCSB_" + e.idx + "_dragger_vertical"), R("#mCSB_" + e.idx + "_dragger_horizontal")], e = [t.height() / o.outerHeight(!1), t.width() / o.outerWidth(!1)], t = [parseInt(a[0].css("min-height")), Math.round(e[0] * a[0].parent().height()), parseInt(a[1].css("min-width")), Math.round(e[1] * a[1].parent().width())], o = p && t[1] < t[0] ? t[0] : t[1], e = p && t[3] < t[2] ? t[2] : t[3]; a[0].css({ height: o, "max-height": a[0].parent().height() - 10 }).find(".mCSB_dragger_bar").css({ "line-height": t[0] + "px" }), a[1].css({ width: e, "max-width": a[1].parent().width() - 10 }) }, b = function () { var e = R(this).data(W), t = R("#mCSB_" + e.idx), o = R("#mCSB_" + e.idx + "_container"), a = [R("#mCSB_" + e.idx + "_dragger_vertical"), R("#mCSB_" + e.idx + "_dragger_horizontal")], t = [o.outerHeight(!1) - t.height(), o.outerWidth(!1) - t.width()], a = [t[0] / (a[0].parent().height() - a[0].height()), t[1] / (a[
vendor: 5,517 bytes, line 89
891].parent().width() - a[1].width())]; e.scrollRatio = { y: a[0], x: a[1] } }, y = function (e, t, o) { var a = o ? g[0] + "_expanded" : "", o = e.closest(".mCSB_scrollTools"); "active" === t ? (e.toggleClass(g[0] + " " + a), o.toggleClass(g[1]), e[0]._draggable = e[0]._draggable ? 0 : 1) : e[0]._draggable || ("hide" === t ? (e.removeClass(g[0]), o.removeClass(g[1])) : (e.addClass(g[0]), o.addClass(g[1]))) }, C = function () { var e = R(this).data(W), t = R("#mCSB_" + e.idx), o = R("#mCSB_" + e.idx + "_container"), a = null == e.overflowed ? o.height() : o.outerHeight(!1), n = null == e.overflowed ? o.width() : o.outerWidth(!1), e = o[0].scrollHeight, o = o[0].scrollWidth; return a < e && (a = e), n < o && (n = o), [a > t.height(), n > t.width()] }, B = function () { var e = R(this), t = e.data(W), o = t.opt, a = R("#mCSB_" + t.idx), n = R("#mCSB_" + t.idx + "_container"), i = [R("#mCSB_" + t.idx + "_dragger_vertical"), R("#mCSB_" + t.idx + "_dragger_horizontal")]; J(e), ("x" !== o.axis && !t.overflowed[0] || "y" === o.axis && t.overflowed[0]) && (i[0].add(n).css("top", 0), K(e, "_resetY")), ("y" !== o.axis && !t.overflowed[1] || "x" === o.axis && t.overflowed[1]) && (o = dx = 0, "rtl" === t.langDir && (o = a.width() - n.outerWidth(!1), dx = Math.abs(o / t.scrollRatio.x)), n.css("left", o), i[1].css("left", dx), K(e, "_resetX")) }, T = function () { var t, o = R(this), e = o.data(W), a = e.opt; e.bindEvents || (r.call(this), a.contentTouchScroll && O.call(this), I.call(this), a.mouseWheel.enable && function e() { t = setTimeout(function () { R.event.special.mousewheel ? (clearTimeout(t), D.call(o[0])) : e() }, 100) }(), F.call(this), j.call(this), a.advanced.autoScrollOnFocus && q.call(this), a.scrollButtons.enable && Y.call(this), a.keyboard.enable && X.call(this), e.bindEvents = !0) }, k = function () { var e = R(this), t = e.data(W), o = t.opt, a = W + "_" + t.idx, n = ".mCSB_" + t.idx + "_scrollbar", i = R("#mCSB_" + t.idx + ",#mCSB_" + t.idx + "_container,#mCSB_" + t.idx + "_container_wrapper," + n + " ." + g[12] + ",#mCSB_" + t.idx + "_dragger_vertical,#mCSB_" + t.idx + "_dragger_horizontal," + n + ">a"), n = R("#mCSB_" + t.idx + "_container"); o.advanced.releaseDraggableSelectors && i.add(R(o.advanced.releaseDraggableSelectors)), o.advanced.extraDraggableSelectors && i.add(R(o.advanced.extraDraggableSelectors)), t.bindEvents && (R(document).add(R(!H() || top.document)).unbind("." + a), i.each(function () { R(this).unbind("." + a) }), clearTimeout(e[0]._focusTimeout), ee(e[0], "_focusTimeout"), clearTimeout(t.sequential.step), ee(t.sequential, "step"), clearTimeout(n[0].onCompleteTimeout), ee(n[0], "onCompleteTimeout"), t.bindEvents = !1) }, M = function (e) { var t = R(this), o = t.data(W), a = o.opt, n = R("#mCSB_" + o.idx + "_container_wrapper"), i = n.length ? n : R("#mCSB_" + o.idx + "_container"), r = [R("#mCSB_" + o.idx + "_scrollbar_vertical"), R("#mCSB_" + o.idx + "_scrollbar_horizontal")], n = [r[0].find(".mCSB_dragger"), r[1].find(".mCSB_dragger")]; "x" !== a.axis && (o.overflowed[0] && !e ? (r[0].add(n[0]).add(r[0].children("a")).css("display", "block"), i.removeClass(g[8] + " " + g[10])) : (a.alwaysShowScrollbar ? (2 !== a.alwaysShowScrollbar && n[0].css("display", "none"), i.removeClass(g[10])) : (r[0].css("display", "none"), i.addClass(g[10])), i.addClass(g[8]))), "y" !== a.axis && (o.overflowed[1] && !e ? (r[1].add(n[1]).add(r[1].children("a")).css("display", "block"), i.removeClass(g[9] + " " + g[11])) : (a.alwaysShowScrollbar ? (2 !== a.alwaysShowScrollbar && n[1].css("display", "none"), i.removeClass(g[11])) : (r[1].css("display", "none"), i.addClass(g[11])), i.addClass(g[9]))), o.overflowed[0] || o.overflowed[1] ? t.removeClass(g[5]) : t.addClass(g[5]) }, z = function (e) { var t = e.type, o = e.target.ownerDocument !== document && null !== frameElement ? [R(frameElement).offset().top, R(frameElement).offset().left] : null, a = H() && e.target.ownerDocument !== top.document && null !== frameElement ? [R(e.view.frameElement).offset().top, R(e.view.frameElement).offset().left] : [0, 0]; switch (t) { case "pointerdown": case "MSPointerDown": case "pointermove": case "MSPointerMove": case "pointerup": case "MSPointerUp": return o ? [e.originalEvent.pageY - o[0] + a[0], e.originalEvent.pageX - o[1] + a[1], !1] : [e.originalEvent.pageY, e.originalEvent.pageX, !1]; case "touchstart": case "touchmove": case "touchend": var n = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0], i = e.originalEvent.touches.length || e.originalEvent.changedTouches.length; return e.target.ownerDocument !== document ? [n.screenY, n.screenX, 1 < i] : [n.pageY, n.pageX, 1 < i]; default: return o ? [e.pageY - o[0] + a[0], e.pageX - o[1] + a[1], !1] : [e.pageY, e.pageX, !1] } }, r = function () { var i, n, r, l = R(this), s = l.data(W), c = s.opt, e = W + "_" + s.idx, d = ["mCSB_" + s.idx + "_dragger_vertical", "mCSB_" + s.idx + "_dragger_horizontal"], u = R("#mCSB_" + s.idx + "_container"), t = R("#" + d[0] + ",#" + d[1]), o = c.advanced.releaseDraggableSelectors ? t.add(R(c.advanced.releaseDraggableSelectors)) : t, a = c.advanced.extraDraggableSelectors ? R(!H() || top.document).add(R(c.advanced.extraDraggableSelectors)) : R(!H() || top.document); function f(e, t, o, a) { var n; u[0].idleTimer = c.scrollInertia < 233 ? 250 : 0, o = i.attr("id") === d[1] ? (n = "x", (i[0].offsetLeft - t + a) * s.scrollRatio.x) : (n = "y", (i[0].offsetTop - e + o) * s.scrollRatio.y), K(l, o.toString(), { dir: n, drag: !0 }) }
89 t.bind("contextmenu." + e, function (e) { e.preventDefault() }).bind("mousedown." + e + " touchstart." + e + " pointerdown." + e + " MSPointerDown." + e, function (e) { var t, o, a; e.stopImmediatePropagation(), e.preventDefault(), te(e) && (A = !0, p && (document.onselectstart = function () { return !1 }), P.call(u, !1), J(l), a = (i = R(this)).offset(), t = z(e)[0] - a.top, o = z(e)[1] - a.left, e = i.height() + a.top, a = i.width() + a.left, t < e && 0 < t && o < a && 0 < o && (n = t, r = o), y(i, "active", c.autoExpandScrollbar)) }).bind("touchmove." + e, function (e) { e.stopImmediatePropagation(), e.preventDefault(); var t = i.offset(), o = z(e)[0] - t.top, t = z(e)[1] - t.left; f(n, r, o, t) }), R(document).add(a).bind("mousemove." + e + " pointermove." + e + " MSPointerMove." + e, function (e) { var t, o; i && (o = i.offset(), t = z(e)[0] - o.top, o = z(e)[1] - o.left, n === t && r === o || f(n, r, t, o)) }).add(o).bind("mouseup." + e + " touchend." + e + " pointerup." + e + " MSPointerUp." + e, function (e) { i && (y(i, "active", c.autoExpandScrollbar), i = null), A = !1, p && (document.onselectstart = null), P.call(u, !0) }) }, O = function () { var r, l, s, i, c, d, u, f, h, m, p, g, v = R(this), x = v.data(W), _ = x.opt, e = W + "_" + x.idx, w = R("#mCSB_" + x.idx), S = R("#mCSB_" + x.idx + "_container"), b = [R("#mCSB_" + x.idx + "_dragger_vertical"), R("#mCSB_" + x.idx + "_dragger_horizontal")], C = [], y = [], B = 0, T = "yx" === _.axis ? "none" : "all", k = [], t = S.find("iframe"), o = ["touchstart." + e + " pointerdown." + e + " MSPointerDown." + e, "touchmove." + e + " pointermove." + e + " MSPointerMove." + e, "touchend." + e + " pointerup." + e + " MSPointerUp." + e], M = void 0 !== document.body.style.touchAction && "" !== document.body.style.touchAction; function a(e) { var t; !oe(e) || A || z(e)[2] ? L = 0 : (g = p = 0, r = L = 1, v.removeClass("mCS_touch_action"), t = S.offset(), l = z(e)[0] - t.top, s = z(e)[1] - t.left, k = [z(e)[0], z(e)[1]]) } function n(e) { var t, o, a, n, i; !oe(e) || A || z(e)[2] || (_.documentTouchScroll || e.preventDefault(), e.stopImmediatePropagation(), g && !p || r && (u = $(), a = w.offset(), t = z(e)[0] - a.top, o = z(e)[1] - a.left, a = "mcsLinearOut", C.push(t), y.push(o), k[2] = Math.abs(z(e)[0] - k[0]), k[3] = Math.abs(z(e)[1] - k[1]), x.overflowed[0] && (n = b[0].parent().height() - b[0].height(), n = 0 < l - t && t - l > -(n * x.scrollRatio.y) && (2 * k[3] < k[2] || "yx" === _.axis)), x.overflowed[1] && (i = b[1].parent().width() - b[1].width(), i = 0 < s - o && o - s > -(i * x.scrollRatio.x) && (2 * k[2] < k[3] || "yx" === _.axis)), n || i ? (M || e.preventDefault(), p = 1) : (g = 1, v.addClass("mCS_touch_action")), M && e.preventDefault(), h = "yx" === _.axis ? [l - t, s - o] : "x" === _.axis ? [null, s - o] : [l - t, null], S[0].idleTimer = 250, x.overflowed[0] && E(h[0], B, a, "y", "all", !0), x.overflowed[1] && E(h[1], B, a, "x", T, !0))) } function O(e) { var t; !oe(e) || A || z(e)[2] ? L = 0 : (L = 1, e.stopImmediatePropagation(), J(v), d = $(), t = w.offset(), i = z(e)[0] - t.top, c = z(e)[1] - t.left, C = [], y = []) } function I(e) { var t, o, a, n; !oe(e) || A || z(e)[2] || (r = 0, e.stopImmediatePropagation(), g = p = 0, f = $(), a = w.offset(), t = z(e)[0] - a.top, n = z(e)[1] - a.left, 30 < f - u || (o = "mcsEaseOut", a = (e = (m = 1e3 / (f - d)) < 2.5) ? [C[C.length - 2], y[y.length - 2]] : [0, 0], f = e ? [t - a[0], n - a[1]] : [t - i, n - c], n = [Math.abs(f[0]), Math.abs(f[1])], m = e ? [Math.abs(f[0] / 4), Math.abs(f[1] / 4)] : [m, m], e = [Math.abs(S[0].offsetTop) - f[0] * D(n[0] / m[0], m[0]), Math.abs(S[0].offsetLeft) - f[1] * D(n[1] / m[1], m[1])], h = "yx" === _.axis ? [e[0], e[1]] : "x" === _.axis ? [null, e[1]] : [e[0], null], m = [4 * n[0] + _.scrollInertia, 4 * n[1] + _.scrollInertia], e = parseInt(_.contentTouchScroll) || 0, h[0] = e < n[0] ? h[0] : 0, h[1] = e < n[1] ? h[1] : 0, x.overflowed[0] && E(h[0], m[0], o, "y", T, !1), x.overflowed[1] && E(h[1], m[1], o, "x", T, !1))) } function D(e, t) { var o = [1.5 * t, 2 * t, t / 1.5, t / 2];
89 return 90 < e ? 4 < t ? o[0] : o[3] : 60 < e ? 3 < t ? o[3] : o[2] : 30 < e ? 8 < t ? o[1] : 6 < t ? o[0] : 4 < t ? t : o[2] : 8 < t ? t : o[3] } function E(e, t, o, a, n, i) { e && K(v, e.toString(), { dur: t, scrollEasing: o, dir: a, overwrite: n, drag: i }) } S.bind(o[0], function (e) { a(e) }).bind(o[1], function (e) { n(e) }), w.bind(o[0], function (e) { O(e) }).bind(o[2], function (e) { I(e) }), t.length && t.each(function () { R(this).bind("load", function () { H(this) && R(this.contentDocument || this.contentWindow.document).bind(o[0], function (e) { a(e), O(e) }).bind(o[1], function (e) { n(e) }).bind(o[2], function (e) { I(e) }) }) }) }, I = function () { var a, n = R(this), i = n.data(W), r = i.opt, l = i.sequential, e = W + "_" + i.idx, s = R("#mCSB_" + i.idx + "_container"), c = s.parent(); function d(e, t, o) { l.type = o && a ? "stepped" : "stepless", l.scrollAmount = 10, N(n, e, t, "mcsLinearOut", o ? 60 : null) } s.bind("mousedown." + e, function (e) { L || a || (a = 1, A = !0) }).add(document).bind("mousemove." + e, function (e) { var t, o; !L && a && (window.getSelection ? window.getSelection().toString() : document.selection && "Control" != document.selection.type && document.selection.createRange().text) && (o = s.offset(), t = z(e)[0] - o.top + s[0].offsetTop, o = z(e)[1] - o.left + s[0].offsetLeft, 0 < t && t < c.height() && 0 < o && o < c.width() ? l.step && d("off", null, "stepped") : ("x" !== r.axis && i.overflowed[0] && (t < 0 ? d("on", 38) : t > c.height() && d("on", 40)), "y" !== r.axis && i.overflowed[1] && (o < 0 ? d("on", 37) : o > c.width() && d("on", 39)))) }).bind("mouseup." + e + " dragend." + e, function (e) { L || (a && (a = 0, d("off", null)), A = !1) }) }, D = function () { var d, u, f, e, h, m, t; function o(e, t) { var o, a, n, i, r, l, s, c; J(d), U(d, e.target) || (o = "auto" !== f.mouseWheel.deltaFactor ? parseInt(f.mouseWheel.deltaFactor) : !(p && e.deltaFactor < 100) && e.deltaFactor || 100, a = f.scrollInertia, t = "x" === f.axis || "x" === f.mouseWheel.axis ? (n = "x", i = [Math.round(o * u.scrollRatio.x), parseInt(f.mouseWheel.scrollAmount)], r = "auto" !== f.mouseWheel.scrollAmount ? i[1] : i[0] >= h.width() ? .9 * h.width() : i[0], l = Math.abs(R("#mCSB_" + u.idx + "_container")[0].offsetLeft), s = m[1][0].offsetLeft, c = m[1].parent().width() - m[1].width(), "y" === f.mouseWheel.axis ? e.deltaY || t : e.deltaX) : (n = "y", i = [Math.round(o * u.scrollRatio.y), parseInt(f.mouseWheel.scrollAmount)], r = "auto" !== f.mouseWheel.scrollAmount ? i[1] : i[0] >= h.height() ? .9 * h.height() : i[0], l = Math.abs(R("#mCSB_" + u.idx + "_container")[0].offsetTop), s = m[0][0].offsetTop, c = m[0].parent().height() - m[0].height(), e.deltaY || t), "y" === n && !u.overflowed[0] || "x" === n && !u.overflowed[1] || ((f.mouseWheel.invert || e.webkitDirectionInvertedFromDevice) && (t = -t), f.mouseWheel.normalizeDelta && (t = t < 0 ? -1 : 1), (0 < t && 0 !== s || t < 0 && s !== c || f.mouseWheel.preventDefault) && (e.stopImmediatePropagation(), e.preventDefault()), e.deltaFactor < 5 && !f.mouseWheel.normalizeDelta && (r = e.deltaFactor, a = 17), K(d, (l - t * r).toString(), { dir: n, dur: a }))) } R(this).data(W) && (d = R(this), u = d.data(W), f = u.opt, e = W + "_" + u.idx, h = R("#mCSB_" + u.idx), m = [R("#mCSB_" + u.idx + "_dragger_vertical"), R("#mCSB_" + u.idx + "_dragger_horizontal")], (t = R("#mCSB_" + u.idx + "_container").find("iframe")).length && t.each(function () { R(this).bind("load", function () { H(this) && R(this.contentDocument || this.contentWindow.document).bind("mousewheel." + e, function (e, t) { o(e, t) }) }) }), h.bind("mousewheel." + e, function (e, t) { o(e, t) })) }, E = new Object, H = function (e) { var t = !1, o = !1, a = null; if (void 0 === e ? o = "#empty" : void 0 !== R(e).attr("id") && (
89o = R(e).attr("id")), !1 !== o && void 0 !== E[o]) return E[o]; if (e) { try { a = (e.contentDocument || e.contentWindow.document).body.innerHTML } catch (e) { } t = null !== a } else { try { a = top.document.body.innerHTML } catch (e) { } t = null !== a } return !1 !== o && (E[o] = t), t }, P = function (e) { var t = this.find("iframe"); t.length && (e = e ? "auto" : "none", t.css("pointer-events", e)) }, U = function (e, t) { var o = t.nodeName.toLowerCase(), e = e.data(W).opt.mouseWheel.disableOver; return -1 < R.inArray(o, e) && !(-1 < R.inArray(o, ["select", "textarea"]) && !R(t).is(":focus")) }, F = function () { var r, l = R(this), s = l.data(W), e = W + "_" + s.idx, c = R("#mCSB_" + s.idx + "_container"), d = c.parent(); R(".mCSB_" + s.idx + "_scrollbar ." + g[12]).bind("mousedown." + e + " touchstart." + e + " pointerdown." + e + " MSPointerDown." + e, function (e) { A = !0, R(e.target).hasClass("mCSB_dragger") || (r = 1) }).bind("touchend." + e + " pointerup." + e + " MSPointerUp." + e, function (e) { A = !1 }).bind("click." + e, function (e) { if (r && (r = 0, R(e.target).hasClass(g[12]) || R(e.target).hasClass("mCSB_draggerRail"))) { J(l); var t = R(this), o = t.find(".mCSB_dragger"); if (0 < t.parent(".mCSB_scrollTools_horizontal").length) { if (!s.overflowed[1]) return; var a = "x", n = e.pageX > o.offset().left ? -1 : 1, i = Math.abs(c[0].offsetLeft) - n * (.9 * d.width()) } else { if (!s.overflowed[0]) return; a = "y", n = e.pageY > o.offset().top ? -1 : 1, i = Math.abs(c[0].offsetTop) - n * (.9 * d.height()) } K(l, i.toString(), { dir: a, scrollEasing: "mcsEaseInOut" }) } }) }, q = function () { var n = R(this), e = n.data(W), i = e.opt, t = W + "_" + e.idx, r = R("#mCSB_" + e.idx + "_container"), l = r.parent(); r.bind("focusin." + t, function (e) { var a = R(document.activeElement), t = r.find(".mCustomScrollBox").length; a.is(i.advanced.autoScrollOnFocus) && (J(n), clearTimeout(n[0]._focusTimeout), n[0]._focusTimer = t ? 17 * t : 0, n[0]._focusTimeout = setTimeout(function () { var e = [ne(a)[0], ne(a)[1]], t = [r[0].offsetTop, r[0].offsetLeft], o = [0 <= t[0] + e[0] && t[0] + e[0] < l.height() - a.outerHeight(!1), 0 <= t[1] + e[1] && t[0] + e[1] < l.width() - a.outerWidth(!1)], t = "yx" !== i.axis || o[0] || o[1] ? "all" : "none"; "x" === i.axis || o[0] || K(n, e[0].toString(), { dir: "y", scrollEasing: "mcsEaseInOut", overwrite: t, dur: 0 }), "y" === i.axis || o[1] || K(n, e[1].toString(), { dir: "x", scrollEasing: "mcsEaseInOut", overwrite: t, dur: 0 }) }, n[0]._focusTimer)) }) }, j = function () { var t = R(this).data(W), e = W + "_" + t.idx, o = R("#mCSB_" + t.idx + "_container").parent(); o.bind("scroll." + e, function (e) { 0 === o.scrollTop() && 0 === o.scrollLeft() || R(".mCSB_" + t.idx + "_scrollbar").css("visibility", "hidden") }) }, Y = function () { var a = R(this), n = a.data(W), i = n.opt, r = n.sequential, e = W + "_" + n.idx, t = ".mCSB_" + n.idx + "_scrollbar"; R(t + ">a").bind("contextmenu." + e, function (e) { e.preventDefault() }).bind("mousedown." + e + " touchstart." + e + " pointerdown." + e + " MSPointerDown." + e + " mouseup." + e + " touchend." + e + " pointerup." + e + " MSPointerUp." + e + " mouseout." + e + " pointerout." + e + " MSPointerOut." + e + " click." + e, function (e) { if (e.preventDefault(), te(e)) { var t = R(this).attr("class"); switch (r.type = i.scrollButtons.scrollType, e.type) { case "mousedown": case "touchstart": case "pointerdown": case "MSPointerDown": if ("stepped" === r.type) return; A = !0, n.tweenRunning = !1, o("on", t); break; case "mouseup": case "touchend": case "pointerup": case "MSPointerUp": case "mouseout": case "pointerout": case "MSPointerOut": if ("stepped" === r.type) return; A = !1, r.dir && o("off", t); break; case "click": if ("stepped" !== r.type || n.tweenRunning) return; o("on", t) } } function o(e, t) { r.scrollAmount = i.scrollButtons.scrollAmount, N(a, e, t) } }) }, X = function () { var r = R(this), l = r.data(W), s = l.opt, c = l.sequential, e = W + "_" + l.idx, t = R("#mCSB_" + l.idx), d = R("#mCSB_" + l.idx + "_container"), u = d.parent(), f = "input,textarea,select,datalist,keygen,[contenteditable='true']", o = d.find("iframe"), a = ["blur." + e + " keydown." + e + " keyup." + e]; function n(e) { switch (e.type) { case "blur": l.tweenRunning && c.dir && i("off", null); break; case "keydown": case "keyup": var t, o, a = e.keyCode || e.which, n = "on"; if ("x" !== s.axis && (38 === a || 40 === a) || "y" !== s.axis && (37 === a || 39 === a)) { if ((38 === a || 40 === a) && !l.overflowed[0] || (37 === a || 39 === a) && !l.overflowed[1]) return; "keyup" === e.type && (n = "off"), R(document.activeElement).is(f) || (e.preventDefault(), e.stopImmediatePropagation(), i(n, a)) } else 33 === a || 34 === a ? ((l.overflowed[0] || l.overflowed[1]) && (e.preventDefault(), e.stopImmediatePropagation()), "keyup" === e.type && (J(r), o = 34 === a ? -1 : 1, o = "x" === s.axis || "yx" === s.axis && l.overflowed[1] && !l.overflowed[0] ? (t = "x", Math.abs(d[0].offsetLeft) - o * (.9 * u.width())) : (t = "y", Math.abs(d[0].offsetTop) - o * (.9 * u.height())), K(r, o.toString(), { dir: t, scrollEasing: "mcsEaseInOut" }))) : 35 !== a && 36 !== a || R(document.activeElement).is(f) || ((l.overflowed[0] || l.overflowed[1]) && (e.preventDefault(), e.stopImmediatePropagation()), "keyup" === e.type && (o = "x" === s.axis || "yx" === s.axis && l.overflowed[1] && !l.overflowed[0] ? (t = "x", 35 === a ? Math.abs(u.width() - d.outerWidth(!1)) : 0) : (t = "y", 35 === a ? Math.abs(u.he
89ight() - d.outerHeight(!1)) : 0), K(r, o.toString(), { dir: t, scrollEasing: "mcsEaseInOut" }))) }function i(e, t) { c.type = s.keyboard.scrollType, c.scrollAmount = s.keyboard.scrollAmount, "stepped" === c.type && l.tweenRunning || N(r, e, t) } } o.length && o.each(function () { R(this).bind("load", function () { H(this) && R(this.contentDocument || this.contentWindow.document).bind(a[0], function (e) { n(e) }) }) }), t.attr("tabindex", "0").bind(a[0], function (e) { n(e) }) }, N = function (r, e, t, l, s) { var c = r.data(W), d = c.opt, u = c.sequential, f = R("#mCSB_" + c.idx + "_container"), o = "stepped" === u.type, h = d.scrollInertia < 26 ? 26 : d.scrollInertia, m = d.scrollInertia < 1 ? 17 : d.scrollInertia; switch (e) { case "on": if (u.dir = [t === g[16] || t === g[15] || 39 === t || 37 === t ? "x" : "y", t === g[13] || t === g[15] || 38 === t || 37 === t ? -1 : 1], J(r), ae(t) && "stepped" === u.type) return; p(o); break; case "off": clearTimeout(u.step), ee(u, "step"), J(r), (o || c.tweenRunning && u.dir) && p(!0) }function p(e) { d.snapAmount && (u.scrollAmount = d.snapAmount instanceof Array ? "x" === u.dir[0] ? d.snapAmount[1] : d.snapAmount[0] : d.snapAmount); var t = "stepped" !== u.type, o = s || (e ? t ? h / 1.5 : m : 1e3 / 60), a = e ? t ? 7.5 : 40 : 2.5, n = [Math.abs(f[0].offsetTop), Math.abs(f[0].offsetLeft)], i = [10 < c.scrollRatio.y ? 10 : c.scrollRatio.y, 10 < c.scrollRatio.x ? 10 : c.scrollRatio.x], i = "x" === u.dir[0] ? n[1] + u.dir[1] * (i[1] * a) : n[0] + u.dir[1] * (i[0] * a), a = "x" === u.dir[0] ? n[1] + u.dir[1] * parseInt(u.scrollAmount) : n[0] + u.dir[1] * parseInt(u.scrollAmount), a = "auto" !== u.scrollAmount ? a : i, i = l || (e ? t ? "mcsLinearOut" : "mcsEaseInOut" : "mcsLinear"), t = !!e; e && o < 17 && (a = "x" === u.dir[0] ? n[1] : n[0]), K(r, a.toString(), { dir: u.dir[0], scrollEasing: i, dur: o, onComplete: t }), e ? u.dir = !1 : (clearTimeout(u.step), u.step = setTimeout(function () { p() }, o)) } }, V = function (e) { var t = R(this).data(W).opt, o = []; return "function" == typeof e && (e = e()), e instanceof Array ? o = 1 < e.length ? [e[0], e[1]] : "x" === t.axis ? [null, e[0]] : [e[0], null] : (o[0] = e.y || (e.x || "x" === t.axis ? null : e), o[1] = e.x || (e.y || "y" === t.axis ? null : e)), "function" == typeof o[0] && (o[0] = o[0]()), "function" == typeof o[1] && (o[1] = o[1]()), o }, Q = function (e, t) { if (null != e && void 0 !== e) { var o = R(this), a = o.data(W), n = a.opt, i = R("#mCSB_" + a.idx + "_container"), r = i.parent(), a = typeof e, l = "x" === (t = t || ("x" === n.axis ? "x" : "y")) ? i.outerWidth(!1) - r.width() : i.outerHeight(!1) - r.height(), s = "x" === t ? i[0].offsetLeft : i[0].offsetTop, c = "x" === t ? "left" : "top"; switch (a) { case "function": return e(); case "object": return (u = e.jquery ? e : R(e)).length ? "x" === t ? ne(u)[1] : ne(u)[0] : void 0; case "string": case "number": if (ae(e)) return Math.abs(e); if (-1 !== e.indexOf("%")) return Math.abs(l * parseInt(e) / 100); if (-1 !== e.indexOf("-=")) return Math.abs(s - parseInt(e.split("-=")[1])); if (-1 !== e.indexOf("+=")) { var d = s + parseInt(e.split("+=")[1]); return 0 <= d ? 0 : Math.abs(d) } if (-1 !== e.indexOf("px") && ae(e.split("px")[0])) return Math.abs(e.split("px")[0]); if ("top" === e || "left" === e) return 0; if ("bottom" === e) return Math.abs(r.height() - i.outerHeight(!1)); if ("right" === e) return Math.abs(r.width() - i.outerWidth(!1)); if ("first" !== e && "last" !== e) return R(e).length ? "x" === t ? ne(R(e))[1] : ne(R(e))[0] : (i.css(c, e), void f.update.call(null, o[0])); var u = i.find(":" + e); return "x" === t ? ne(u)[1] : ne(u)[0] } } }, G = function (e) { var t = R(this), o = t.data(W), a = o.opt, n = R("#mCSB_" + o.idx + "_container"); if (e) return clearTimeout(n[0].autoUpdate), void ee(n[0], "autoUpdate"); function i(e) { var t, o, a; R(e).hasClass(g[2]) ? l() : ((t = new Image).onload = (o = t, a = function () { this.onload = null, R(e).addClass(g[2]), l(2) }, function () { return a.apply(o, arguments) }), t.src = e.src) } function r() { !0 === a.advanced.updateOnSelectorChange && (a.advanced.updateOnSelectorChange = "*"); var e = 0, t = n.find(a.advanced.updateOnSelectorChange); return a.advanced.updateOnSelectorChange && 0 < t.length && t.each(function () { e += this.offsetHeight + this.offsetWidth }), e } function l(e) { clearTimeout(n[0].autoUpdate), f.update.call(null, t[0], e) } !function e() { clearTimeout(n[0].autoUpdate); if (0 === t.parents("html").length) return void (t = null); n[0].autoUpdate = setTimeout(function () { return a.advanced.updateOnSelectorChange && (o.poll.change.n = r(), o.poll.change.n !== o.poll.change.o) ? (o.poll.change.o = o.poll.change.n, void l(3)) : a.advanced.updateOnContentResize && (o.poll.size.n = t[0].scrollHeight + t[0].scrollWidth + n[0].offsetHeight + t[0].offsetHeight + t[0].offsetWidth, o.poll.size.n !== o.poll.size.o) ? (o.poll.size.o = o.poll.size.n, void l(1)) : !a.advanced.updateOnImageLoad || "auto" === a.advanced.updateOnImageLoad && "y" === a.axis || (
89o.poll.img.n = n.find("img").length, o.poll.img.n === o.poll.img.o) ? void ((a.advanced.updateOnSelectorChange || a.advanced.updateOnContentResize || a.advanced.updateOnImageLoad) && e()) : (o.poll.img.o = o.poll.img.n, void n.find("img").each(function () { i(this) })) }, a.advanced.autoUpdateTimeout) }() }, J = function (e) { e = e.data(W); R("#mCSB_" + e.idx + "_container,#mCSB_" + e.idx + "_container_wrapper,#mCSB_" + e.idx + "_dragger_vertical,#mCSB_" + e.idx + "_dragger_horizontal").each(function () { t.call(this) }) }, K = function (n, e, i) { var t, o = n.data(W), a = o.opt, r = { trigger: "internal", dir: "y", scrollEasing: "mcsEaseOut", drag: !1, dur: a.scrollInertia, overwrite: "all", callbacks: !0, onStart: !0, onUpdate: !0, onComplete: !0 }, l = [(i = R.extend(r, i)).dur, i.drag ? 0 : i.dur], s = R("#mCSB_" + o.idx), c = R("#mCSB_" + o.idx + "_container"), d = c.parent(), u = a.callbacks.onTotalScrollOffset ? V.call(n, a.callbacks.onTotalScrollOffset) : [0, 0], f = a.callbacks.onTotalScrollBackOffset ? V.call(n, a.callbacks.onTotalScrollBackOffset) : [0, 0]; if (o.trigger = i.trigger, 0 === d.scrollTop() && 0 === d.scrollLeft() || (R(".mCSB_" + o.idx + "_scrollbar").css("visibility", "visible"), d.scrollTop(0).scrollLeft(0)), "_resetY" !== e || o.contentReset.y || (b("onOverflowYNone") && a.callbacks.onOverflowYNone.call(n[0]), o.contentReset.y = 1), "_resetX" !== e || o.contentReset.x || (b("onOverflowXNone") && a.callbacks.onOverflowXNone.call(n[0]), o.contentReset.x = 1), "_resetY" !== e && "_resetX" !== e) { switch (!o.contentReset.y && n[0].mcs || !o.overflowed[0] || (b("onOverflowY") && a.callbacks.onOverflowY.call(n[0]), o.contentReset.x = null), !o.contentReset.x && n[0].mcs || !o.overflowed[1] || (b("onOverflowX") && a.callbacks.onOverflowX.call(n[0]), o.contentReset.x = null), a.snapAmount && (t = a.snapAmount instanceof Array ? "x" === i.dir ? a.snapAmount[1] : a.snapAmount[0] : a.snapAmount, r = e, d = t, t = a.snapOffset, e = Math.round(r / d) * d - t), i.dir) { case "x": var h = R("#mCSB_" + o.idx + "_dragger_horizontal"), m = "left", p = c[0].offsetLeft, g = [s.width() - c.outerWidth(!1), h.parent().width() - h.width()], v = [e, 0 === e ? 0 : e / o.scrollRatio.x], x = u[1], _ = f[1], w = 0 < x ? x / o.scrollRatio.x : 0, S = 0 < _ ? _ / o.scrollRatio.x : 0; break; case "y": h = R("#mCSB_" + o.idx + "_dragger_vertical"), m = "top", p = c[0].offsetTop, g = [s.height() - c.outerHeight(!1), h.parent().height() - h.height()], v = [e, 0 === e ? 0 : e / o.scrollRatio.y], x = u[0], _ = f[0], w = 0 < x ? x / o.scrollRatio.y : 0, S = 0 < _ ? _ / o.scrollRatio.y : 0 }v[1] < 0 || 0 === v[0] && 0 === v[1] ? v = [0, 0] : v[1] >= g[1] ? v = [g[0], g[1]] : v[0] = -v[0], n[0].mcs || (C(), b("onInit") && a.callbacks.onInit.call(n[0])), clearTimeout(c[0].onCompleteTimeout), Z(h[0], m, Math.round(v[1]), l[1], i.scrollEasing), !o.tweenRunning && (0 === p && 0 <= v[0] || p === g[0] && v[0] <= g[0]) || Z(c[0], m, Math.round(v[0]), l[0], i.scrollEasing, i.overwrite, { onStart: function () { i.callbacks && i.onStart && !o.tweenRunning && (b("onScrollStart") && (C(), a.callbacks.onScrollStart.call(n[0])), o.tweenRunning = !0, y(h), o.cbOffsets = [a.callbacks.alwaysTriggerOffsets || p >= g[0] + x, a.callbacks.alwaysTriggerOffsets || p <= -_]) }, onUpdate: function () { i.callbacks && i.onUpdate && b("whileScrolling") && (C(), a.callbacks.whileScrolling.call(n[0])) }, onComplete: function () { var e; i.callbacks && i.onComplete && ("yx" === a.axis && clearTimeout(c[0].onCompleteTimeout), e = c[0].idleTimer || 0, c[0].onCompleteTimeout = setTimeout(function () { b("onScroll") && (C(), a.callbacks.onScroll.call(n[0])), b("onTotalScroll") && v[1] >= g[1] - w && o.cbOffsets[0] && (C(), a.callbacks.onTotalScroll.call(n[0])), b("onTotalScrollBack") && v[1] <= S && o.cbOffsets[1] && (C(), a.callbacks.onTotalScrollBack.call(n[0])), o.tweenRunning = !1, c[0].idleTimer = 0, y(h, "hide") }, e)) } }) } function b(e) { return o && a.callbacks[e] && "function" == typeof a.callbacks[e] } function C() { var e = [c[0].offsetTop, c[0].offsetLeft], t = [h[0].offsetTop, h[0].offsetLeft], o = [c.outerHeight(!1), c.outerWidth(!1)], a = [s.height(), s.width()]; n[0].mcs = { content: c, top: e[0], left: e[1], draggerTop: t[0], draggerLeft: t[1], topPct: Math.round(100 * Math.abs(e[0]) / (Math.abs(o[0]) - a[0])), leftPct: Math.round(100 * Math.abs(e[1]) / (Math.abs(o[1]) - a[1])), direction: i.dir } } }, Z = function (e, t, o, a, n, i, r) { e._mTween || (e._mTween = { top: {}, left: {} }); var l, s, c = (r = r || {}).onStart || function () { }, d = r.onUpdate || function () { }, u = r.onComplete || function () { }, f = $(), h = 0, m = e.offsetTop, p = e.style, g = e._mTween[t]; "left" === t && (m = e.offsetLeft); var v = o - m; function x() { g.stop || (h || c.call(), h = $() - f, _(), h >= g.time && (g.time = h > g.time ? h + l - (h - g.time) : h + l - 1, g.time < h + 1 && (g.time = h + 1)), g.time < a ? g.id = s(x) : u.call()) } function _() { 0 < a ? (g.currVal = function (e, t, o, a, n) { switch (n) { case "linear": case "mcsLinear": return o * e / a + t; case "mcsLinearOut": return e /= a, e--, o * Math.sqrt(1 - e * e) + t; case "easeInOutSmooth": return (e /= a / 2) < 1 ? o / 2 * e * e + t : -o / 2 * (--e * (e - 2) - 1) + t; case "easeInOutStrong": return (e /= a / 2) < 1 ? o / 2 * Math.pow(2, 10 * (e - 1)) + t : (e--, o / 2 * (2 - Math.pow(2, -10 * e)) + t); case "easeInOut": case "mcsEaseInOut": return (e /= a / 2) < 1 ? o / 2 * e * e * e + t : o / 2 * ((e -= 2) * e * e + 2) + t; case "easeOutSmooth": return e /= a, -o * (--e * e * e * e - 1) + t; case "easeOutStrong": return o * (1 - Math.pow(2, -10 * e / a)) + t; case "easeOut": case "mcsEaseOut": default: var i = (e /= a) * e, r = i * e; return t + o * (.499999999999997 * r * i + -2.5 * i * i + 5.5 * r + -6.5 * i + 4 * e) } }(g.time, m, v, a, n), p[t] = Math.round(g.currVal) + "px") : p[t] = o + "px", d.call() } g.stop = 0, "none" === i || null != g.id && (window.requestAnimationFrame ? window.cancelAnimationFrame(g.i
89d) : clearTimeout(g.id), g.id = null), l = 1e3 / 60, g.time = h + l, s = window.requestAnimationFrame || function (e) { return _(), setTimeout(e, .01) }, g.id = s(x) }, $ = function () { return window.performance && window.performance.now ? window.performance.now() : window.performance && window.performance.webkitNow ? window.performance.webkitNow() : Date.now ? Date.now() : (new Date).getTime() }, t = function () { var e = this; e._mTween || (e._mTween = { top: {}, left: {} }); for (var t = ["top", "left"], o = 0; o < t.length; o++) { var a = t[o]; e._mTween[a].id && (window.requestAnimationFrame ? window.cancelAnimationFrame(e._mTween[a].id) : clearTimeout(e._mTween[a].id), e._mTween[a].id = null, e._mTween[a].stop = 1) } }, ee = function (t, o) { try { delete t[o] } catch (e) { t[o] = null } }, te = function (e) { return !(e.which && 1 !== e.which) }, oe = function (e) { e = e.originalEvent.pointerType; return !(e && "touch" !== e && 2 !== e) }, ae = function (e) { return !isNaN(parseFloat(e)) && isFinite(e) }, ne = function (e) { var t = e.parents(".mCSB_container"); return [e.offset().top - t.offset().top, e.offset().left - t.offset().left] }, ie = function () { var e = function () { var e = ["webkit", "moz", "ms", "o"]; if ("hidden" in document) return "hidden"; for (var t = 0; t < e.length; t++)if (e[t] + "Hidden" in document) return e[t] + "Hidden"; return null }(); return !!e && document[e] }, R.fn[s] = function (e) { return f[e] ? f[e].apply(this, Array.prototype.slice.call(arguments, 1)) : "object" != typeof e && e ? void R.error("Method " + e + " does not exist") : f.init.apply(this, arguments) }, R[s] = function (e) { return f[e] ? f[e].apply(this, Array.prototype.slice.call(arguments, 1)) : "object" != typeof e && e ? void R.error("Method " + e + " does not exist") : f.init.apply(this, arguments) }, R[s].defaults = n, window[s] = !0, R(window).bind("load", function () { R(a)[s](), R.extend(R.expr[":"], { mcsInView: R.expr[":"].mcsInView || function (e) { var t = R(e), o = t.parents(".mCSB_container"); if (o.length) return e = o.parent(), 0 <= (o = [o[0].offsetTop, o[0].offsetLeft])[0] + ne(t)[0] && o[0] + ne(t)[0] < e.height() - t.outerHeight(!1) && 0 <= o[1] + ne(t)[1] && o[1] + ne(t)[1] < e.width() - t.outerWidth(!1) }, mcsInSight: R.expr[":"].mcsInSight || function (e, t, o) { var a = R(e), n = a.parents(".mCSB_container"), e = "exact" === o[3] ? [[1, 0], [1, 0]] : [[.9, .1], [.6, .4]]; if (n.length) return o = [a.outerHeight(!1), a.outerWidth(!1)], a = [n[0].offsetTop + ne(a)[0], n[0].offsetLeft + ne(a)[1]], n = [n.parent()[0].offsetHeight, n.parent()[0].offsetWidth], a[0] - n[0] * (e = [o[0] < n[0] ? e[0] : e[1], o[1] < n[1] ? e[0] : e[1]])[0][0] < 0 && 0 <= a[0] + o[0] - n[0] * e[0][1] && a[1] - n[1] * e[1][0] < 0 && 0 <= a[1] + o[1] - n[1] * e[1][1] }, mcsOverflow: R.expr[":"].mcsOverflow || function (e) { e = R(e).data(W); if (e) return e.overflowed[0] || e.overflowed[1] } }) }) });
90/**===========================================================================================================================*/
91/* Load More Plugin */
92!function (t, i, n, s) { "use strict"; var o = "loadMore"; function a(i, n) { this.self = this, this.elem = i, this.$elem = t(i), this.metadata = this.$elem.data("options"), this.options = t.extend({}, t.fn[o].default, this.metadata, n), this.lists = t(i).children(this.options.selector) } t.extend(a.prototype, { inIt: function () { this.lists.length <= this.options.limit ? this.Out() : this.More(), this.firstLoad = [], this.firstLoad.push(this.lists.splice(0, this.options.limit)), this.show(this.firstLoad[0]) }, More: function () { var i = this, n = 0; t(i.options.loadBtn).on("click", function () { n += 1, i.lists.length && (i.firstLoad.push(i.lists.splice(0, i.options.load)), i.show(i.firstLoad[n])), 0 == i.lists.length && i.Out() }) }, show: function (i) { t(i).fadeIn(), this.options.animate && this.animateCss(this.options.animateIn, i) }, Out: function () { t(this.options.loadBtn).hide() }, animateCss: function (i, n) { t(n).addClass("animated " + i).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", function () { t(n).removeClass("animated " + i) }) } }), t.fn[o] = function (t) { return this.each(function () { new a(this, t).inIt() }) }, t.fn[o].default = { selector: "", limit: 3, load: 3, loadBtn: "", animate: !0, animateIn: "fadeInUp" } }(jQuery, window, document);
93/*============================================================================================================================*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.