PageSourceSearch

https://www.averyphilly.com/wp-content/themes/naismith/assets/js/app.min.js?ver=7.0.6

js averyphilly.com collected 2026-10-05 04:06:51 UTC 172,513 bytes, 1 lines download raw bytes

1(()=>{var t,e={55:()=>{var t;t=jQuery,{dom:function(){this.$notification=t(".notification"),this.$notificationClose=t(".notification__close")},actions:function(){var e=this;e.$notificationClose.on("click",(function(){e.closeNotification(t(this)),e.setCookie(t(this))}))},displayNotifications:function(){this.$notification.each((function(){t(this).removeClass("is-hidden")}))},closeNotification:function(t){t.closest(".notification").addClass("is-dismissed")},setCookie:function(e){var i=e.closest(".notification").data("notification"),n=e.closest(".notification").data("value"),o=e.closest(".notification").data("expiration");if(!i)return console.log("A cookie ID must be provided"),!1;t.ajax({type:"post",context:this,dataType:"json",url:themeJS.ajaxurl,data:{action:"set_cookie",cookie_id:i,cookie_value:n,cookie_expiration:o},success:function(t){},error:function(t){}})},ready:function(){var t=this;t.dom(),t.actions(),t.displayNotifications()}}.ready()},79:()=>{var t;t=jQuery,{dom:function(){this.$queryString=window.location.search,this.$tabNavItem=t(".tabs-nav-item"),this.$tabContentItem=t(".tabs-content-item")},actions:function(){var e=this;e.$tabNavItem.on("click",(function(i){i.preventDefault();var n=t(this).data("tab");n&&(e.updateNav(n),e.updateContent(n))}))},getParameters:function(){var t=this,e=new URLSearchParams(t.$queryString);e.get("tab")&&(t.updateNav(e.get("tab")),t.updateContent(e.get("tab")))},updateContent:function(e){this.$tabContentItem.removeClass("is-active"),this.$tabContentItem.each((function(){e==t(this).data("tab")&&t(this).addClass("is-active")}))},updateNav:function(e){this.$tabNavItem.removeClass("is-active"),this.$tabNavItem.each((function(){e==t(this).data("tab")&&t(this).addClass("is-active")}))},ready:function(){var t=this;t.dom(),t.getParameters(),t.actions()}}.ready()},238:(t,e,i)=>{"use strict";var n=i(773);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(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 r(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function c(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=a(t);if(e){var o=a(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return function(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,i)}}var h={exports:{}};function d(){}d.prototype={on:function(t,e,i){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var n=this;function o(){n.off(t,o),e.apply(i,arguments)}return o._=e,this.on(t,o,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),n=0,o=i.length;n<o;n++)i[n].fn.apply(i[n].ctx,e);return this},off:function(t,e){var i=this.e||(this.e={}),n=i[t],o=[];if(n&&e)for(var s=0,r=n.length;s<r;s++)n[s].fn!==e&&n[s].fn._!==e&&o.push(n[s]);return o.length?i[t]=o:delete i[t],this}},h.exports=d,h.exports.TinyEmitter=d;var u=h.exports,f="undefined"!=typeof Element?Element.prototype:{},p=f.matches||f.matchesSelector||f.webkitMatchesSelector||f.mozMatchesSelector||f.msMatchesSelector||f.oMatchesSelector;function g(){}function m(t){return parseFloat(t)||0}var v=function(){function t(e,i){o(this,t),this.x=m(e),this.y=m(i)}return r(t,null,[{key:"equals",value:function(t,e){return t.x===e.x&&t.y===e.y}}]),t}(),y=function(){function t(e,i,n,s,r){o(this,t),this.id=r,this.left=e,this.top=i,this.width=n,this.height=s}return r(t,null,[{key:"intersects",value:function(t,e){return t.left<e.left+e.width&&e.left<t.left+t.width&&t.top<e.top+e.height&&e.top<t.top+t.height}}]),t}(),b={BASE:"shuffle",SHUFFLE_ITEM:"shuffle-item",VISIBLE:"shuffle-item--visible",HIDDEN:"shuffle-item--hidden"},w=0,x=function(){function t(e,i){o(this,t),w+=1,this.id=w,this.element=e,this.isRTL=i,this.isVisible=!0,this.isHidden=!1}return r(t,[{key:"show",value:function(){this.isVisible=!0,this.element.classList.remove(b.HIDDEN),this.element.classList.add(b.VISIBLE),this.element.removeAttribute("aria-hidden")}},{key:"hide",value:function(){this.isVisible=!1,this.element.classList.remove(b.VISIBLE),this.element.classList.add(b.HIDDEN),this.element.setAttribute("aria-hidden",!0)}},{key:"init",value:function(){this.addClasses([b.SHUFFLE_ITEM,b.VISIBLE]),this.applyCss(t.Css.INITIAL),this.applyCss(this.isRTL?t.Css.DIRECTION.rtl:t.Css.DIRECTION.ltr),this.scale=t.Scale.VISIBLE,this.point=new v}},{key:"addClasses",value:function(t){var e=this;t.forEach((function(t){e.element.classList.add(t)}))}},{key:"removeClasses",value:function(t){var e=this;t.forEach((function(t){e.element.classList.remove(t)}))}},{key:"applyCss",value:function(t){var e=this;Object.keys(t).forEach((function(i){e.element.style[i]=t[i]}))}},{key:"dispose",value:function(){this.removeClasses([b.HIDDEN,b.VISIBLE,b.SHUFFLE_ITEM]),this.element.removeAttribute("style"),this.element=null}}]),t}();x.Css={INITIAL:{position:"absolute",top:0,visibility:"visible",willChange:"transform"},DIRECTION:{ltr:{left:0},rtl:{right:0}},VISIBLE:{before:{opacity:1,visibility:"visible"},after:{transitionDelay:""}},HIDDEN:{before:{opacity:0}
1,after:{visibility:"hidden",transitionDelay:""}}},x.Scale={VISIBLE:1,HIDDEN:.001};var S=null,E=function(){if(null!==S)return S;var t=document.body||document.documentElement,e=document.createElement("div");e.style.cssText="width:10px;padding:2px;box-sizing:border-box;",t.appendChild(e);var i=window.getComputedStyle(e,null).width;return S=10===Math.round(m(i)),t.removeChild(e),S};function C(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.getComputedStyle(t,null),n=m(i[e]);return E()||"width"!==e?E()||"height"!==e||(n+=m(i.paddingTop)+m(i.paddingBottom)+m(i.borderTopWidth)+m(i.borderBottomWidth)):n+=m(i.paddingLeft)+m(i.paddingRight)+m(i.borderLeftWidth)+m(i.borderRightWidth),n}var _={reverse:!1,by:null,compare:null,randomize:!1,key:"element"};function T(t,e){var i=Object.assign({},_,e),n=Array.from(t),o=!1;return t.length?i.randomize?function(t){for(var e=t.length;e;){e-=1;var i=Math.floor(Math.random()*(e+1)),n=t[i];t[i]=t[e],t[e]=n}return t}(t):("function"==typeof i.by?t.sort((function(t,e){if(o)return 0;var n=i.by(t[i.key]),s=i.by(e[i.key]);return void 0===n&&void 0===s?(o=!0,0):n<s||"sortFirst"===n||"sortLast"===s?-1:n>s||"sortLast"===n||"sortFirst"===s?1:0})):"function"==typeof i.compare&&t.sort(i.compare),o?n:(i.reverse&&t.reverse(),t)):[]}var L={},$="transitionend",P=0;function I(t){return!!L[t]&&(L[t].element.removeEventListener($,L[t].listener),L[t]=null,!0)}function k(t){return Math.max.apply(Math,t)}function A(t,e,i,n){var o=t/e;return Math.abs(Math.round(o)-o)<n&&(o=Math.round(o)),Math.min(Math.ceil(o),i)}function z(t,e,i){if(1===e)return t;for(var n=[],o=0;o<=i-e;o++)n.push(k(t.slice(o,o+e)));return n}function O(t,e){for(var i,n=(i=t,Math.min.apply(Math,i)),o=0,s=t.length;o<s;o++)if(t[o]>=n-e&&t[o]<=n+e)return o;return 0}function R(t,e){var i={};t.forEach((function(t){i[t.top]?i[t.top].push(t):i[t.top]=[t]}));var n=[],o=[],s=[];
1return Object.keys(i).forEach((function(t){var r=i[t];o.push(r);var a,l=r[r.length-1],c=l.left+l.width,h=Math.round((e-c)/2),d=r,u=!1;if(h>0){var f=[];(u=r.every((function(t){var e=new y(t.left+h,t.top,t.width,t.height,t.id),i=!n.some((function(t){return y.intersects(e,t)}));return f.push(e),i})))&&(d=f)}if(!u&&r.some((function(t){return n.some((function(e){var i=y.intersects(t,e);return i&&(a=e),i}))}))){var p=s.findIndex((function(t){return t.includes(a)}));s.splice(p,1,o[p])}n=n.concat(d),s.push(d)})),[].concat.apply([],s).sort((function(t,e){return t.id-e.id})).map((function(t){return new v(t.left,t.top)}))}function M(t){return Array.from(new Set(t))}var F=0,N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(i,t);var e=c(i);function i(t){var n,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,i),(n=e.call(this)).options=Object.assign({},i.options,s),n.options.delimeter&&(n.options.delimiter=n.options.delimeter),n.lastSort={},n.group=i.ALL_ITEMS,n.lastFilter=i.ALL_ITEMS,n.isEnabled=!0,n.isDestroyed=!1,n.isInitialized=!1,n._transitions=[],n.isTransitioning=!1,n._queue=[];var r=n._getElementOption(t);if(!r)throw new TypeError("Shuffle needs to be initialized with an element.");return n.element=r,n.id="shuffle_"+F,F+=1,n._init(),n.isInitialized=!0,n}return r(i,[{key:"_init",value:function(){if(this.items=this._getItems(),this.sortedItems=this.items,this.options.sizer=this._getElementOption(this.options.sizer),this.element.classList.add(i.Classes.BASE),this._initItems(this.items),this._onResize=this._getResizeFunction(),window.addEventListener("resize",this._onResize),"complete"!==document.readyState){var t=this.layout.bind(this);window.addEventListener("load",(function e(){window.removeEventListener("load",e),t()}))}var e=window.getComputedStyle(this.element,null),n=i.getSize(this.element).width;this._validateStyles(e),this._setColumns(n),this.filter(this.options.group,this.options.initialSort),this.element.offsetWidth,this.setItemTransitions(this.items),this.element.style.transition="height ".concat(this.options.speed,"ms ").concat(this.options.easing)}},{key:"_getResizeFunction",value:function(){var t=this._handleResize.bind(this);return this.options.throttle?this.options.throttle(t,this.options.throttleTime):t}},{key:"_getElementOption",value:function(t){return"string"==typeof t?this.element.querySelector(t):t&&t.nodeType&&1===t.nodeType?t:t&&t.jquery?t[0]:null}},{key:"_validateStyles",value:function(t){"static"===t.position&&(this.element.style.position="relative"),"hidden"!==t.overflow&&(this.element.style.overflow="hidden")}},{key:"_filter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastFilter,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.items,i=this._getFilteredSets(t,e);return this._toggleFilterClasses(i),this.lastFilter=t,"string"==typeof t&&(this.group=t),i}},{key:"_getFilteredSets",value:function(t,e){var n=this,o=[],s=[];return t===i.ALL_ITEMS?o=e:e.forEach((function(e){n._doesPassFilter(t,e.element)?o.push(e):s.push(e)})),{visible:o,hidden:s}}},{key:"_doesPassFilter",value:function(t,e){if("function"==typeof t)return t.call(e,e,this);var n=e.getAttribute("data-"+i.FILTER_ATTRIBUTE_KEY),o=this.options.delimiter?n.split(this.options.delimiter):JSON.parse(n);function s(t){return o.includes(t)}return Array.isArray(t)?this.options.filterMode===i.FilterMode.ANY?t.some(s):t.every(s):o.includes(t)}},{key:"_toggleFilterClasses",value:function(t){var e=t.visible,i=t.hidden;e.forEach((function(t){t.show()})),i.forEach((function(t){t.hide()}))}},{key:"_initItems",value:function(t){t.forEach((function(t){t.init()}))}},{key:"_disposeItems",value:function(t){t.forEach((function(t){t.dispose()}))}},{key:"_updateItemCount",value:function(){this.visibleItems=this._getFilteredItems().length}},{key:"setItemTransitions",value:function(t){var e=this.options,i=e.speed,n=e.easing,o=this.options.useTransforms?["transform"]:["top","left"],s=Object.keys(x.Css.HIDDEN.before).map((function(t){return t.replace(/([A-Z])/g,(function(t,e){return"-".concat(e.toLowerCase())}))})),r=o.concat(s).join();t.forEach((function(t){t.element.style.transitionDuration=i+"ms",t.element.style.transitionTimingFunction=n,t.element.style.transitionProperty=r}))}},{key:"_getItems",value:function(){var t=this;return Array.from(this.element.children).filter((function(e){return function(t,e){if(!t||1!==t.nodeType)return!1;if(p)return p.call(t,e);for(var i=t.parentNode.querySelectorAll(e),n=0;n<i.length;n++)if(i[n]==t)return!0;return!1}(e,t.options.itemSelector)})).map((function(e){return new x(e,t.options.isRTL)}))}},{key:"_mergeNewItems",value:function(t){var e=Array.from(this.element.children);return T(this.items.concat(t),{by:function(t){return e.indexOf(t)}})}},{key:"_getFilteredItems",value:function(){return this.items.filter((function(t){return t.isVisible}))}},{key:"_getConcealedItems",value:function(){return this.items.filter((function(t){return!t.isVisible}))}},{key:"_getColumnSize",value:function(t,e){var n;return 0===(n="function"==typeof this.options.columnWidth?this.options.columnWidth(t):this.options.sizer?i.getSize(this.options.sizer).width:this.options.columnWidth?this.options.columnWidth:this.items.length>0?i.getSize(this.items[0].element,!0).width:t)&&(n=t),n+e}},{key:"_getGutterSize",value:function(t){return"function"==typeof this.options.gutterWidth?this.options.gutterWidth(t):this.options.sizer?C(this.options.sizer,"marginLeft"):this.options.gutterWidth}},{key:"_setColumns",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.getSize(this.element).width,e=this._getGutterSize(t),n=this._getColumnSize(t,e),o=(t+e)/n;Math.abs(Math.round(o)-o)<this.options.columnThreshold&&(o=Math.round(o)),this.cols=Math.max(Math.floor(o||0),1),this.containerWidth=t,this.colWidth=n}},{key:"_setContainerSize",value:function(){this.element.style.height=this._getContainerSize()+"px"}},{key:"_getContainerSize",value:function(){return k(this.positions)}},{key:"_getStaggerAmount",value:function(t){return Math.min(t*this.options.staggerAmount,this.options.staggerAmountMax)}},{key:"_dispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
1this.isDestroyed||(e.shuffle=this,this.emit(t,e))}},{key:"_resetCols",value:function(){var t=this.cols;for(this.positions=[];t;)t-=1,this.positions.push(0)}},{key:"_layout",value:function(t){var e=this,i=this._getNextPositions(t),n=0;t.forEach((function(t,o){function s(){t.applyCss(x.Css.VISIBLE.after)}if(v.equals(t.point,i[o])&&!t.isHidden)return t.applyCss(x.Css.VISIBLE.before),void s();t.point=i[o],t.scale=x.Scale.VISIBLE,t.isHidden=!1;var r=e.getStylesForTransition(t,x.Css.VISIBLE.before);r.transitionDelay=e._getStaggerAmount(n)+"ms",e._queue.push({item:t,styles:r,callback:s}),n+=1}))}},{key:"_getNextPositions",value:function(t){var e=this;if(this.options.isCentered){var n=t.map((function(t,n){var o=i.getSize(t.element,!0),s=e._getItemPosition(o);return new y(s.x,s.y,o.width,o.height,n)}));return this.getTransformedPositions(n,this.containerWidth)}return t.map((function(t){return e._getItemPosition(i.getSize(t.element,!0))}))}},{key:"_getItemPosition",value:function(t){return function(t){for(var e=t.itemSize,i=t.positions,n=t.gridSize,o=t.total,s=t.threshold,r=t.buffer,a=A(e.width,n,o,s),l=z(i,a,o),c=O(l,r),h=new v(n*c,l[c]),d=l[c]+e.height,u=0;u<a;u++)i[c+u]=d;return h}({itemSize:t,positions:this.positions,gridSize:this.colWidth,total:this.cols,threshold:this.options.columnThreshold,buffer:this.options.buffer})}},{key:"getTransformedPositions",value:function(t,e){return R(t,e)}},{key:"_shrink",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getConcealedItems(),i=0;e.forEach((function(e){function n(){e.applyCss(x.Css.HIDDEN.after)}if(e.isHidden)return e.applyCss(x.Css.HIDDEN.before),void n();e.scale=x.Scale.HIDDEN,e.isHidden=!0;var o=t.getStylesForTransition(e,x.Css.HIDDEN.before);o.transitionDelay=t._getStaggerAmount(i)+"ms",t._queue.push({item:e,styles:o,callback:n}),i+=1}))}},{key:"_handleResize",value:function(){this.isEnabled&&!this.isDestroyed&&this.update()}},{key:"getStylesForTransition",value:function(t,e){var i=Object.assign({},e);if(this.options.useTransforms){var n=this.options.isRTL?"-":"",o=this.options.roundTransforms?Math.round(t.point.x):t.point.x,s=this.options.roundTransforms?Math.round(t.point.y):t.point.y;i.transform="translate(".concat(n).concat(o,"px, ").concat(s,"px) scale(").concat(t.scale,")")}else this.options.isRTL?i.right=t.point.x+"px":i.left=t.point.x+"px",i.top=t.point.y+"px";return i}},{key:"_whenTransitionDone",value:function(t,e,i){var n=function(t,e){var i=$+(P+=1),n=function(t){t.currentTarget===t.target&&(I(i),e(t))};return t.addEventListener($,n),L[i]={element:t,listener:n},i}(t,(function(t){e(),i(null,t)}));this._transitions.push(n)}},{key:"_getTransitionFunction",value:function(t){var e=this;return function(i){t.item.applyCss(t.styles),e._whenTransitionDone(t.item.element,t.callback,i)}}},{key:"_processQueue",value:function(){this.isTransitioning&&this._cancelMovement();var t=this.options.speed>0,e=this._queue.length>0;e&&t&&this.isInitialized?this._startTransitions(this._queue):e?(this._styleImmediately(this._queue),this._dispatch(i.EventType.LAYOUT)):this._dispatch(i.EventType.LAYOUT),this._queue.length=0}},{key:"_startTransitions",value:function(t){var e=this;this.isTransitioning=!0,function(t,e,i){i||("function"==typeof e?(i=e,e=null):i=g);var n=t&&t.length;if(!n)return i(null,[]);var o=!1,s=new Array(n);function r(t){return function(e,r){if(!o){if(e)return i(e,s),void(o=!0);s[t]=r,--n||i(null,s)}}}t.forEach(e?function(t,i){t.call(e,r(i))}:function(t,e){t(r(e))})}(t.map((function(t){return e._getTransitionFunction(t)})),this._movementFinished.bind(this))}},{key:"_cancelMovement",value:function(){this._transitions.forEach(I),this._transitions.length=0,this.isTransitioning=!1}},{key:"_styleImmediately",value:function(t){if(t.length){var e=t.map((function(t){return t.item.element}));i._skipTransitions(e,(function(){t.forEach((function(t){t.item.applyCss(t.styles),t.callback()}))}))}}},{key:"_movementFinished",value:function(){this._transitions.length=0,this.isTransitioning=!1,this._dispatch(i.EventType.LAYOUT)}},{key:"filter",value:function(t,e){this.isEnabled&&((!t||t&&0===t.length)&&(t=i.ALL_ITEMS),this._filter(t),this._shrink(),this._updateItemCount(),this.sort(e))}},{key:"sort",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastSort;if(this.isEnabled){this._resetCols();var e=T(this._getFilteredItems(),t);this.sortedItems=e,this._layout(e),this._processQueue(),this._setContainerSize(),this.lastSort=t}}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isEnabled&&(t||this._setColumns(),this.sort())}},{key:"layout",value:function(){this.update(!0)}},{key:"add",value:function(t){var e=this,i=M(t).map((function(t){return new x(t,e.options.isRTL)}));this._initItems(i),this._resetCols();var n=T(this._mergeNewItems(i),this.lastSort),o=this._filter(this.lastFilter,n),s=function(t){return i.includes(t)},r=function(t){t.scale=x.Scale.HIDDEN,t.isHidden=!0,t.applyCss(x.
1Css.HIDDEN.before),t.applyCss(x.Css.HIDDEN.after)},a=this._getNextPositions(o.visible);o.visible.forEach((function(t,i){s(t)&&(t.point=a[i],r(t),t.applyCss(e.getStylesForTransition(t,{})))})),o.hidden.forEach((function(t){s(t)&&r(t)})),this.element.offsetWidth,this.setItemTransitions(i),this.items=this._mergeNewItems(i),this.filter(this.lastFilter)}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isEnabled=!0,t&&this.update()}},{key:"remove",value:function(t){var e=this;if(t.length){var n=M(t),o=n.map((function(t){return e.getItemByElement(t)})).filter((function(t){return!!t}));this._toggleFilterClasses({visible:[],hidden:o}),this._shrink(o),this.sort(),this.items=this.items.filter((function(t){return!o.includes(t)})),this._updateItemCount(),this.once(i.EventType.LAYOUT,(function(){e._disposeItems(o),n.forEach((function(t){t.parentNode.removeChild(t)})),e._dispatch(i.EventType.REMOVED,{collection:n})}))}}},{key:"getItemByElement",value:function(t){return this.items.find((function(e){return e.element===t}))}},{key:"resetItems",value:function(){var t=this;this._disposeItems(this.items),this.isInitialized=!1,this.items=this._getItems(),this._initItems(this.items),this.once(i.EventType.LAYOUT,(function(){t.setItemTransitions(t.items),t.isInitialized=!0})),this.filter(this.lastFilter)}},{key:"destroy",value:function(){this._cancelMovement(),window.removeEventListener("resize",this._onResize),this.element.classList.remove("shuffle"),this.element.removeAttribute("style"),this._disposeItems(this.items),this.items.length=0,this._transitions.length=0,this.options.sizer=null,this.element=null,this.isDestroyed=!0,this.isEnabled=!1}}],[{key:"getSize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=window.getComputedStyle(t,null),n=C(t,"width",i),o=C(t,"height",i);return e&&(n+=C(t,"marginLeft",i)+C(t,"marginRight",i),o+=C(t,"marginTop",i)+C(t,"marginBottom",i)),{width:n,height:o}}},{key:"_skipTransitions",value:function(t,e){var i=t.map((function(t){var e=t.style,i=e.transitionDuration,n=e.transitionDelay;return e.transitionDuration="0ms",e.transitionDelay="0ms",{duration:i,delay:n}}));e(),t[0].offsetWidth,t.forEach((function(t,e){t.style.transitionDuration=i[e].duration,t.style.transitionDelay=i[e].delay}))}}]),i}(u);N.ShuffleItem=x,N.ALL_ITEMS="all",N.FILTER_ATTRIBUTE_KEY="groups",N.EventType={LAYOUT:"shuffle:layout",REMOVED:"shuffle:removed"},N.Classes=b,N.FilterMode={ANY:"any",ALL:"all"},N.options={group:N.ALL_ITEMS,speed:250,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)",itemSelector:"*",sizer:null,gutterWidth:0,columnWidth:0,delimiter:null,buffer:0,columnThreshold:.01,initialSort:null,throttle:function(t,e){var i,n,o,s,r=0;return function(){i=this,n=arguments;var t=new Date-r;return s||(t>=e?a():s=setTimeout(a,e-t)),o};function a(){s=0,r=+new Date,o=t.apply(i,n),i=null,n=null}},throttleTime:300,staggerAmount:15,staggerAmountMax:150,useTransforms:!0,filterMode:N.FilterMode.ANY,isCentered:!1,isRTL:!1,roundTransforms:!0},N.Point=v,N.Rect=y,N.__sorter=T,N.__getColumnSpan=A,N.__getAvailablePositions=z,N.__getShortColumn=O,N.__getCenteredPositions=R;const D=N;({init:function(){this.shuffleJS=!1,this.galleryCategory=document.querySelectorAll(".galleries__nav-item"),this.initFancybox(),this.initShuffle(),this.actions()},actions:function(){var t=this;this.galleryCategory&&this.galleryCategory.forEach((function(e){e.addEventListener("click",function(t){t.preventDefault(),this.updateNav(t.target),this.filterImages(t.target)}.bind(t))}))},updateNav:function(t){this.galleryCategory.forEach((function(t){t.classList.remove("is-active")})),t.parentElement.classList.add("is-active")},filterImages:function(t){var e=this,i=t.parentElement.dataset.group;this.shuffleJS.filter(i),this.shuffleJS.once(D.EventType.LAYOUT,(function(){e.shuffleJS.update()}))},initShuffle:function(){if(!document.getElementById("galleries-images"))return!1;this.shuffleJS=new D(document.getElementById("galleries-images"),{itemSelector:".galleries__image",easing:"cubic-bezier(0.4, 0.0, 0.2, 0.5)",useTransforms:!1,sizer:".galleries__image-sizer"})},initFancybox:function(){n.lX.bind('[data-fancybox="gallery"]',{btnTpl:{arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg width="28px" height="28px" viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
1<g id="icon-arrow-left-circle-orange" transform="translate(1.000000, 1.000000)" stroke="#FF5100" stroke-width="2"><polyline id="Path" points="15.65 21.44 7.1 12.9 15.65 4.46"></polyline><circle id="Oval" cx="13" cy="13" r="13"></circle></g></g></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg width="28px" height="28px" viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="icon-arrow-right-circle-orange" transform="translate(1.000000, 1.000000)" stroke="#FF5100" stroke-width="2"><polyline id="Path" points="10.35 4.56 18.9 13.1 10.35 21.55"></polyline><circle id="Oval" cx="13" cy="13" r="13"></circle></g></g></svg></div></button>'}})}}).init()},245:()=>{},275:function(t,e,i){var n,o,s;o=[i(555)],n=function(t){"use strict";var e="0.85em",i="9999",n=t._util,o=0;t.Scene.extend((function(){var t,e=this;e.addIndicators=function(i){var r;return t||(r={name:"",indent:0,parent:void 0,colorStart:"green",colorEnd:"red",colorTrigger:"blue"},i=n.extend({},r,i),o++,t=new s(e,i),e.on("add.plugin_addIndicators",t.add),e.on("remove.plugin_addIndicators",t.remove),e.on("destroy.plugin_addIndicators",e.removeIndicators),e.controller()&&t.add()),e},e.removeIndicators=function(){return t&&(t.remove(),this.off("*.plugin_addIndicators"),t=void 0),e}})),t.Controller.addOption("addIndicators",!1),t.Controller.extend((function(){var e=this,i=e.info(),o=i.container,s=i.isDocument,r=i.vertical,a={groups:[]};function l(){a.updateBoundsPositions()}function c(){a.updateTriggerGroupPositions()}return this._indicators=a,o.addEventListener("resize",c),s||(window.addEventListener("resize",c),window.addEventListener("scroll",c)),o.addEventListener("resize",l),o.addEventListener("scroll",l),this._indicators.updateBoundsPositions=function(t){for(var e,i,s,l=t?[n.extend({},t.triggerGroup,{members:[t]})]:a.groups,c=l.length,h={},d=r?"left":"top",u=r?"width":"height",f=r?n.get.scrollLeft(o)+n.get.width(o)-15:n.get.scrollTop(o)+n.get.height(o)-15;c--;)for(e=(s=l[c]).members.length,i=n.get[u](s.element.firstChild);e--;)h[d]=f-i,n.css(s.members[e].bounds,h)},this._indicators.updateTriggerGroupPositions=function(t){for(var i,l,c,h,d=t?[t]:a.groups,u=d.length,f=s?document.body:o,p=s?{top:0,left:0}:n.get.offset(f,!0),g=r?n.get.width(o)-15:n.get.height(o)-15,m=r?"width":"height",v=r?"Y":"X";u--;)l=(i=d[u]).element,c=i.triggerHook*e.info("size"),h=n.get[m](l.firstChild.firstChild)<c?"translate"+v+"(-100%)":"",n.css(l,{top:p.top+(r?c:g-i.members[0].options.indent),left:p.left+(r?g-i.members[0].options.indent:c)}),n.css(l.firstChild.firstChild,{"-ms-transform":h,"-webkit-transform":h,transform:h})},this._indicators.updateTriggerGroupLabel=function(t){var e="trigger"+(1<t.members.length?"":" "+t.members[0].options.name),i=t.element.firstChild.firstChild;i.textContent!==e&&(i.textContent=e,r&&a.updateBoundsPositions())},this.addScene=function(i){this._options.addIndicators&&i instanceof t.Scene&&i.controller()===e&&i.addIndicators(),this.$super.addScene.apply(this,arguments)},this.destroy=function(){o.removeEventListener("resize",c),s||(window.removeEventListener("resize",c),window.removeEventListener("scroll",c)),o.removeEventListener("resize",l),o.removeEventListener("scroll",l),this.$super.destroy.apply(this,arguments)},e}));var s=function(t,e){var i,s,a=this,l=r.bounds(),c=r.start(e.colorStart),h=r.end(e.colorEnd),d=e.parent&&n.get.elements(e.parent)[0];e.name=e.name||o,c.firstChild.textContent+=" "+e.name,h.textContent+=" "+e.name,l.appendChild(c),l.appendChild(h),a.options=e,a.bounds=l,a.triggerGroup=void 0,this.add=function(){s=t.controller(),i=s.info("vertical");var e=s.info("isDocument");d=d||(e?document.body:s.info("container")),e||"static"!==n.css(d,"position")||n.css(d,{position:"relative"}),t.on("change.plugin_addIndicators",f),t.on("shift.plugin_addIndicators",u),v(),g(),setTimeout((function(){s._indicators.updateBoundsPositions(a)}),0)},this.remove=function(){var e;a.triggerGroup&&(t.off("change.plugin_addIndicators",f),t.off("shift.plugin_addIndicators",u),1<a.triggerGroup.members.length?((e=a.triggerGroup).members.splice(e.members.indexOf(a),1),s._indicators.updateTriggerGroupLabel(e),s._indicators.updateTriggerGroupPositions(e),a.triggerGroup=void 0):m(),p())};var u=function(){g()},f=function(t){"triggerHook"===t.what&&v()},p=function(){l.parentNode.removeChild(l)},g=function(){var o;l.parentNode!==d&&(o=s.info("vertical"),n.css(c.firstChild,{"border-bottom-width":o?1:0,"border-right-width":o?0:1,bottom:o?-1:e.indent,right:o?e.indent:-1,padding:o?"0 8px":"2px 4px"}),n.css(h,{"border-top-width":o?1:0,"border-left-width":o?0:1,top:o?"100%":"",right:o?e.indent:"",bottom:o?"":e.indent,left:o?"":"100%",padding:o?"0 8px":"2px 4px"}),d.appendChild(l));var r={};
1r[i?"top":"left"]=t.triggerPosition(),r[i?"height":"width"]=t.duration(),n.css(l,r),n.css(h,{display:0<t.duration()?"":"none"})},m=function(){s._indicators.groups.splice(s._indicators.groups.indexOf(a.triggerGroup),1),a.triggerGroup.element.parentNode.removeChild(a.triggerGroup.element),a.triggerGroup=void 0},v=function(){var o=t.triggerHook();if(!(a.triggerGroup&&Math.abs(a.triggerGroup.triggerHook-o)<1e-4)){for(var l,c=s._indicators.groups,h=c.length;h--;)if(l=c[h],Math.abs(l.triggerHook-o)<1e-4)return a.triggerGroup&&(1===a.triggerGroup.members.length?m():(a.triggerGroup.members.splice(a.triggerGroup.members.indexOf(a),1),s._indicators.updateTriggerGroupLabel(a.triggerGroup),s._indicators.updateTriggerGroupPositions(a.triggerGroup))),l.members.push(a),a.triggerGroup=l,void s._indicators.updateTriggerGroupLabel(l);if(a.triggerGroup){if(1===a.triggerGroup.members.length)return a.triggerGroup.triggerHook=o,void s._indicators.updateTriggerGroupPositions(a.triggerGroup);a.triggerGroup.members.splice(a.triggerGroup.members.indexOf(a),1),s._indicators.updateTriggerGroupLabel(a.triggerGroup),s._indicators.updateTriggerGroupPositions(a.triggerGroup),a.triggerGroup=void 0}!function(){var o=r.trigger(e.colorTrigger),l={};l[i?"right":"bottom"]=0,l[i?"border-top-width":"border-left-width"]=1,n.css(o.firstChild,l),n.css(o.firstChild.firstChild,{padding:i?"0 8px 3px 8px":"3px 4px"}),document.body.appendChild(o);var c={triggerHook:t.triggerHook(),element:o,members:[a]};s._indicators.groups.push(c),a.triggerGroup=c,s._indicators.updateTriggerGroupLabel(c),s._indicators.updateTriggerGroupPositions(c)}()}}},r={start:function(t){var e=document.createElement("div");e.textContent="start",n.css(e,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:t,"border-color":t});var i=document.createElement("div");return n.css(i,{position:"absolute",overflow:"visible",width:0,height:0}),i.appendChild(e),i},end:function(t){var e=document.createElement("div");return e.textContent="end",n.css(e,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:t,"border-color":t}),e},bounds:function(){var t=document.createElement("div");return n.css(t,{position:"absolute",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":e}),t.style.zIndex=i,t},trigger:function(t){var o=document.createElement("div");o.textContent="trigger",n.css(o,{position:"relative"});var s=document.createElement("div");n.css(s,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:t,"border-color":t}),s.appendChild(o);var r=document.createElement("div");return n.css(r,{position:"fixed",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":e}),r.style.zIndex=i,r.appendChild(s),r}}},void 0===(s=n.apply(e,o))||(t.exports=s)},322:()=>{!function(t){"use strict";var e,i;(e=t(".show-more .button"),i=t(".blog-articles__grid .article-card"),{init:function(){t(e).on("click",(function(){!function(e,i){i.each((function(){t(this).addClass("is-visible")})),e.remove()}(t(this),i)}))}}).init()}(jQuery)},465:(t,e,i)=>{"use strict";var n=i(773),o={init:function(){this.heroCarousel=document.querySelector(".hero--carousel"),this.heroItem=document.querySelectorAll(".hero-item"),this.initCarousel()},initCarousel:function(){var t=this;this.heroCarousel?new n.FN(this.heroCarousel,{Dots:!1,preload:0,slidesPerPage:1,initialPage:0,friction:.85,center:!1,infinite:!0,fill:!0,dragFree:!1,classNames:{},l10n:{},on:{settle:function(e){t.resetVideo(),t.showVideo(e.page)},ready:function(e){t.resetVideo(),t.showVideo(e.page)}}}):this.heroItem&&this.heroItem.forEach((function(t){t.querySelector(".hero-item__video").classList.remove("loading")}))},resetVideo:function(){this.heroItem.forEach((function(t){t.classList.contains("hero-item--video")&&(t.querySelector("iframe").src="about:blank")}))},showVideo:function(t){if(this.heroItem[t].classList.contains("hero-item--video")){var e=this.heroItem[t].querySelector("iframe");this.heroItem[t].querySelector(".hero-item__video").classList.remove("loading"),e.src=e.dataset.src}}};window.addEventListener("load",(function(){o.init()}))}
1,483:function(t,e,i){var n,o;n=function(){"use strict";var t=function(){o.log(2,"(COMPATIBILITY NOTICE) -> As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")};t.version="2.0.8","undefined"!=typeof window&&window.addEventListener("mousewheel",void 0);var e="data-scrollmagic-pin-spacer";t.Controller=function(n){var s,r,a="ScrollMagic.Controller",l="REVERSE",c="PAUSED",h=i.defaults,d=this,u=o.extend({},h,n),f=[],p=!1,g=0,m=c,v=!0,y=0,b=!0,w=function(){u.refreshInterval>0&&(r=window.setTimeout(L,u.refreshInterval))},x=function(){return u.vertical?o.get.scrollTop(u.container):o.get.scrollLeft(u.container)},S=function(){return u.vertical?o.get.height(u.container):o.get.width(u.container)},E=this._setScrollPos=function(t){u.vertical?v?window.scrollTo(o.get.scrollLeft(),t):u.container.scrollTop=t:v?window.scrollTo(t,o.get.scrollTop()):u.container.scrollLeft=t},C=function(){if(b&&p){var t=o.type.Array(p)?p:f.slice(0);p=!1;var e=g,i=(g=d.scrollPos())-e;0!==i&&(m=i>0?"FORWARD":l),m===l&&t.reverse(),t.forEach((function(e,i){$(3,"updating Scene "+(i+1)+"/"+t.length+" ("+f.length+" total)"),e.update(!0)})),0===t.length&&u.loglevel>=3&&$(3,"updating 0 Scenes (nothing added to controller)")}},_=function(){s=o.rAF(C)},T=function(t){$(3,"event fired causing an update:",t.type),"resize"==t.type&&(y=S(),m=c),!0!==p&&(p=!0,_())},L=function(){if(!v&&y!=S()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(e){(t=document.createEvent("Event")).initEvent("resize",!1,!1)}u.container.dispatchEvent(t)}f.forEach((function(t,e){t.refresh()})),w()},$=this._log=function(t,e){u.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+a+") ->
1"),o.log.apply(window,arguments))};this._options=u;var P=function(t){if(t.length<=1)return t;var e=t.slice(0);return e.sort((function(t,e){return t.scrollOffset()>e.scrollOffset()?1:-1})),e};return this.addScene=function(e){if(o.type.Array(e))e.forEach((function(t,e){d.addScene(t)}));else if(e instanceof t.Scene){if(e.controller()!==d)e.addTo(d);else if(f.indexOf(e)<0){for(var i in f.push(e),f=P(f),e.on("shift.controller_sort",(function(){f=P(f)})),u.globalSceneOptions)e[i]&&e[i].call(e,u.globalSceneOptions[i]);$(3,"adding Scene (now "+f.length+" total)")}}else $(1,"ERROR: invalid argument supplied for '.addScene()'");return d},this.removeScene=function(t){if(o.type.Array(t))t.forEach((function(t,e){d.removeScene(t)}));else{var e=f.indexOf(t);e>-1&&(t.off("shift.controller_sort"),f.splice(e,1),$(3,"removing Scene (now "+f.length+" left)"),t.remove())}return d},this.updateScene=function(e,i){return o.type.Array(e)?e.forEach((function(t,e){d.updateScene(t,i)})):i?e.update(!0):!0!==p&&e instanceof t.Scene&&(-1==(p=p||[]).indexOf(e)&&p.push(e),p=P(p),_()),d},this.update=function(t){return T({type:"resize"}),t&&C(),d},this.scrollTo=function(i,n){if(o.type.Number(i))E.call(u.container,i,n);else if(i instanceof t.Scene)i.controller()===d?d.scrollTo(i.scrollOffset(),n):$(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",i);else if(o.type.Function(i))E=i;else{var s=o.get.elements(i)[0];if(s){for(;s.parentNode.hasAttribute(e);)s=s.parentNode;var r=u.vertical?"top":"left",a=o.get.offset(u.container),l=o.get.offset(s);v||(a[r]-=d.scrollPos()),d.scrollTo(l[r]-a[r],n)}else $(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",i)}return d},this.scrollPos=function(t){return arguments.length?(o.type.Function(t)?x=t:$(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),d):x.call(d)},this.info=function(t){var e={size:y,vertical:u.vertical,scrollPos:g,scrollDirection:m,container:u.container,isDocument:v};return arguments.length?void 0!==e[t]?e[t]:void $(1,'ERROR: option "'+t+'" is not available'):e},this.loglevel=function(t){return arguments.length?(u.loglevel!=t&&(u.loglevel=t),d):u.loglevel},this.enabled=function(t){return arguments.length?(b!=t&&(b=!!t,d.updateScene(f,!0)),d):b},this.destroy=function(t){window.clearTimeout(r);for(var e=f.length;e--;)f[e].destroy(t);return u.container.removeEventListener("resize",T),u.container.removeEventListener("scroll",T),o.cAF(s),$(3,"destroyed "+a+" (reset: "+(t?"true":"false")+")"),null},function(){for(var e in u)h.hasOwnProperty(e)||($(2,'WARNING: Unknown option "'+e+'"'),delete u[e]);if(u.container=o.get.elements(u.container)[0],!u.container)throw $(1,"ERROR creating object "+a+": No valid scroll container supplied"),a+" init failed.";(v=u.container===window||u.container===document.body||!document.body.contains(u.container))&&(u.container=window),y=S(),u.container.addEventListener("resize",T),u.container.addEventListener("scroll",T);var i=parseInt(u.refreshInterval,10);u.refreshInterval=o.type.Number(i)?i:h.refreshInterval,w(),$(3,"added new "+a+" controller (v"+t.version+")")}(),d};var i={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};t.Controller.addOption=function(t,e){i.defaults[t]=e},t.Controller.extend=function(e){var i=this;t.Controller=function(){return i.apply(this,arguments),this.$super=o.extend({},this),e.apply(this,arguments)||this},o.extend(t.Controller,i),t.Controller.prototype=i.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(i){var s,r,a="ScrollMagic.Scene",l="BEFORE",c="DURING",h="AFTER",d=n.defaults,u=this,f=o.extend({},d,i),p=l,g=0,m={start:0,end:0},v=0,y=!0,b={};this.on=function(t,e){return o.type.Function(e)?(t=t.trim().split(" ")).forEach((function(t){var i=t.split("."),n=i[0],o=i[1];"*"!=n&&(b[n]||(b[n]=[]),b[n].push({namespace:o||"",callback:e}))})):w(1,"ERROR when calling '.on()': Supplied callback for '"+t+"' is not a valid function!"),u},this.off=function(t,e){return t?((t=t.trim().split(" ")).forEac
1h((function(t,i){var n=t.split("."),o=n[0],s=n[1]||"";("*"===o?Object.keys(b):[o]).forEach((function(t){for(var i=b[t]||[],n=i.length;n--;){var o=i[n];!o||s!==o.namespace&&"*"!==s||e&&e!=o.callback||i.splice(n,1)}i.length||delete b[t]}))})),u):(w(1,"ERROR: Invalid event name supplied."),u)},this.trigger=function(e,i){if(e){var n=e.trim().split("."),o=n[0],s=n[1],r=b[o];w(3,"event fired:",o,i?"->":"",i||""),r&&r.forEach((function(e,n){s&&s!==e.namespace||e.callback.call(u,new t.Event(o,e.namespace,u,i))}))}else w(1,"ERROR: Invalid event name supplied.");return u},u.on("change.internal",(function(t){"loglevel"!==t.what&&"tweenChanges"!==t.what&&("triggerElement"===t.what?_():"reverse"===t.what&&u.update())})).on("shift.internal",(function(t){E(),u.update()}));var w=this._log=function(t,e){f.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+a+") ->"),o.log.apply(window,arguments))};this.addTo=function(e){return e instanceof t.Controller?r!=e&&(r&&r.removeScene(u),r=e,$(),C(!0),_(!0),E(),r.info("container").addEventListener("resize",T),e.addScene(u),u.trigger("add",{controller:r}),w(3,"added "+a+" to controller"),u.update()):w(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),u},this.enabled=function(t){return arguments.length?(y!=t&&(y=!!t,u.update(!0)),u):y},this.remove=function(){if(r){r.info("container").removeEventListener("resize",T);var t=r;r=void 0,t.removeScene(u),u.trigger("remove"),w(3,"removed "+a+" from controller")}return u},this.destroy=function(t){return u.trigger("destroy",{reset:t}),u.remove(),u.off("*.*"),w(3,"destroyed "+a+" (reset: "+(t?"true":"false")+")"),null},this.update=function(t){if(r)if(t)if(r.enabled()&&y){var e,i=r.info("scrollPos");e=f.duration>0?(i-m.start)/(m.end-m.start):i>=m.start?1:0,u.trigger("update",{startPos:m.start,endPos:m.end,scrollPos:i}),u.progress(e)}else x&&p===c&&k(!0);else r.updateScene(u,!1);return u},this.refresh=function(){return C(),_(),u},this.progress=function(t){if(arguments.length){var e=!1,i=p,n=r?r.info("scrollDirection"):"PAUSED",o=f.reverse||t>=g;if(0===f.duration?(e=g!=t,p=0==(g=t<1&&o?0:1)?l:c):t<0&&p!==l&&o?(g=0,p=l,e=!0):t>=0&&t<1&&o?(g=t,p=c,e=!0):t>=1&&p!==h?(g=1,p=h,e=!0):p!==c||o||k(),e){var s={progress:g,state:p,scrollDirection:n},a=p!=i,d=function(t){u.trigger(t,s)};a&&i!==c&&(d("enter"),d(i===l?"start":"end")),d("progress"),a&&p!==c&&(d(p===l?"start":"end"),d("leave"))}return u}return g};var x,S,E=function(){m={start:v+f.offset},r&&f.triggerElement&&(m.start-=r.info("size")*f.triggerHook),m.end=m.start+f.duration},C=function(t){if(s){var e="duration";P(e,s.call(u))&&!t&&(u.trigger("change",{what:e,newval:f[e]}),u.trigger("shift",{reason:e}))}},_=function(t){var i=0,n=f.triggerElement;if(r&&(n||v>0)){if(n)if(n.parentNode){for(var s=r.info(),a=o.get.offset(s.container),l=s.vertical?"top":"left";n.parentNode.hasAttribute(e);)n=n.parentNode;var c=o.get.offset(n);s.isDocument||(a[l]-=r.scrollPos()),i=c[l]-a[l]}else w(2,"WARNING: triggerElement was removed from DOM and will be reset to",void 0),u.triggerElement(void 0);var h=i!=v;v=i,h&&!t&&u.trigger("shift",{reason:"triggerElementPosition"})}},T=function(t){f.triggerHook>0&&u.trigger("shift",{reason:"containerResize"})},L=o.extend(n.validate,{duration:function(t){if(o.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var e=parseFloat(t)/100;t=function(){return r?r.info("size")*e:0}}if(o.type.Function(t)){s=t;try{t=parseFloat(s.call(u))}catch(e){t=-1}}if(t=parseFloat(t),!o.type.Number(t)||t<0)throw s?(s=void 0,['Invalid return value of supplied function for option "duration":',t]):['Invalid value for option "duration":',t];return t}}),$=function(t){(t=arguments.length?[t]:Object.keys(L)).forEach((function(t,e){var i;if(L[t])try{i=L[t](f[t])}catch(e){i=d[t];var n=o.type.String(e)?[e]:e;o.type.Array(n)?(n[0]="ERROR: "+n[0],n.unshift(1),w.apply(this,n)):w(1,"ERROR: Problem executing validation callback for option '"+t+"':",e.message)}finally{f[t]=i}}))},P=function(t,e){var i=!1,n=f[t];return f[t]!=e&&(f[t]=e,$(t),i=n!=f[t]),i},I=function(t){u[t]||(u[t]=function(e){return arguments.length?("duration"===t&&(s=void 0),P(t,e)&&(u.trigger("change",{what:t,newval:f[t]}),n.shifts.indexOf(t)>-1&&u.trigger("shift",{reason:t})),u):f[t]})};this.controller=function(){return r},this.state=function(){return p},this.scrollOffset=function(){return m.start},this.triggerPosition=function(){var t=f.offset;return r&&(f.triggerElement?t+=v:t+=r.info("size")*u.triggerHook()),t},u.on("shift.internal",(function(t){var e="duration"===t.reason;(p===h&&e||p===c&&0===f.duration)&&k(),e&&A()})).on("progress.internal",(function(t){k()})).on("add.internal",(function(t){A()})).on("destroy.internal",(function(t){u.removePin(t.reset)}));var k=function(t){if(x&&r){var e=r.info(),i=S.spacer.firstChild;if(t||p!==c){var n={position:S.inFlow?"relative":"absolute",top:0,left:0},s=o.css(i,"position")!=n.position;S.pushFollowers?f.duration>0&&(p===h&&0===parseFloat(o.css(S.spacer,"padding-top"))||p===l&&0===parseFloat(o.css(S.spacer,"padding-bottom")))&&(s=!0):n[e.vertical?"top":"left"]=f.duration*g,o.css(i,n),s&&A()}else{"fixed"!=o.css(i,"position")&&(o.css(i,{position:"fixed"}),A());var a=o.get.offset(S.spacer,!0),d=f.reverse||0===f.duration?e.scrollPos-m.start:Math.round(g*f.duration*10)/10;a[e.vertical?"top":"left"]+=d,o.css(S.spacer.firstChild,{top:a.top,left
1:a.left})}}},A=function(){if(x&&r&&S.inFlow){var t=p===c,e=r.info("vertical"),i=S.spacer.firstChild,n=o.isMarginCollapseType(o.css(S.spacer,"display")),s={};S.relSize.width||S.relSize.autoFullWidth?t?o.css(x,{width:o.get.width(S.spacer)}):o.css(x,{width:"100%"}):(s["min-width"]=o.get.width(e?x:i,!0,!0),s.width=t?s["min-width"]:"auto"),S.relSize.height?t?o.css(x,{height:o.get.height(S.spacer)-(S.pushFollowers?f.duration:0)}):o.css(x,{height:"100%"}):(s["min-height"]=o.get.height(e?i:x,!0,!n),s.height=t?s["min-height"]:"auto"),S.pushFollowers&&(s["padding"+(e?"Top":"Left")]=f.duration*g,s["padding"+(e?"Bottom":"Right")]=f.duration*(1-g)),o.css(S.spacer,s)}},z=function(){r&&x&&p===c&&!r.info("isDocument")&&k()},O=function(){r&&x&&p===c&&((S.relSize.width||S.relSize.autoFullWidth)&&o.get.width(window)!=o.get.width(S.spacer.parentNode)||S.relSize.height&&o.get.height(window)!=o.get.height(S.spacer.parentNode))&&A()},R=function(t){r&&x&&p===c&&!r.info("isDocument")&&(t.preventDefault(),r._setScrollPos(r.info("scrollPos")-((t.wheelDelta||t[r.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-t.detail)))};this.setPin=function(t,i){var n=i&&i.hasOwnProperty("pushFollowers");if(i=o.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},i),!(t=o.get.elements(t)[0]))return w(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),u;if("fixed"===o.css(t,"position"))return w(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),u;if(x){if(x===t)return u;u.removePin()}var s=(x=t).parentNode.style.display,r=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];x.parentNode.style.display="none";var a="absolute"!=o.css(x,"position"),l=o.css(x,r.concat(["display"])),c=o.css(x,["width","height"]);x.parentNode.style.display=s,!a&&i.pushFollowers&&(w(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),i.pushFollowers=!1),window.setTimeout((function(){x&&0===f.duration&&n&&i.pushFollowers&&w(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")}),0);var h=x.parentNode.insertBefore(document.createElement("div"),x),d=o.extend(l,{position:a?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(a||o.extend(d,o.css(x,["width","height"])),o.css(h,d),h.setAttribute(e,""),o.addClass(h,i.spacerClass),S={spacer:h,relSize:{width:"%"===c.width.slice(-1),height:"%"===c.height.slice(-1),autoFullWidth:"auto"===c.width&&a&&o.isMarginCollapseType(l.display)},pushFollowers:i.pushFollowers,inFlow:a},!x.___origStyle){x.___origStyle={};var p=x.style;r.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach((function(t){x.___origStyle[t]=p[t]||""}))}return S.relSize.width&&o.css(h,{width:c.width}),S.relSize.height&&o.css(h,{height:c.height}),h.appendChild(x),o.css(x,{position:a?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(S.relSize.width||S.relSize.autoFullWidth)&&o.css(x,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",z),window.addEventListener("resize",z),window.addEventListener("resize",O),x.addEventListener("mousewheel",R),x.addEventListener("DOMMouseScroll",R),w(3,"added pin"),k(),u},this.removePin=function(t){if(x){if(p===c&&k(!0),t||!r){var i=S.spacer.firstChild;if(i.hasAttribute(e)){var n=S.spacer.style,s={};["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach((function(t){s[t]=n[t]||""})),o.css(i,s)}S.spacer.parentNode.insertBefore(i,S.spacer),S.spacer.parentNode.removeChild(S.spacer),x.parentNode.hasAttribute(e)||(o.css(x,x.___origStyle),delete x.___origStyle)}window.removeEventListener("scroll",z),window.removeEventListener("resize",z),window.removeEventListener("resize",O),x.removeEventListener("mousewheel",R),x.removeEventListener("DOMMouseScroll",R),x=void 0,w(3,"removed pin (reset: "+(t?"true":"false")+")")}return u};var M,F=[];return u.on("destroy.internal",(function(t){u.removeClassToggle(t.reset)})),this.setClassToggle=function(t,e){var i=o.get.elements(t);return 0!==i.length&&o.type.String(e)?(F.length>
10&&u.removeClassToggle(),M=e,F=i,u.on("enter.internal_class leave.internal_class",(function(t){var e="enter"===t.type?o.addClass:o.removeClass;F.forEach((function(t,i){e(t,M)}))})),u):(w(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===i.length?"element":"classes")+" supplied."),u)},this.removeClassToggle=function(t){return t&&F.forEach((function(t,e){o.removeClass(t,M)})),u.off("start.internal_class end.internal_class"),M=void 0,F=[],u},function(){for(var t in f)d.hasOwnProperty(t)||(w(2,'WARNING: Unknown option "'+t+'"'),delete f[t]);for(var e in d)I(e);$()}(),u};var n={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!o.type.Number(t))throw['Invalid value for option "offset":',t];return t},triggerElement:function(t){if(t=t||void 0){var e=o.get.elements(t)[0];if(!e||!e.parentNode)throw['Element defined in option "triggerElement" was not found:',t];t=e}return t},triggerHook:function(t){var e={onCenter:.5,onEnter:1,onLeave:0};if(o.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in e))throw['Invalid value for option "triggerHook": ',t];t=e[t]}return t},reverse:function(t){return!!t},loglevel:function(t){if(t=parseInt(t),!o.type.Number(t)||t<0||t>3)throw['Invalid value for option "loglevel":',t];return t}},shifts:["duration","offset","triggerHook"]};t.Scene.addOption=function(e,i,o,s){e in n.defaults?t._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+e+"', because it already exists."):(n.defaults[e]=i,n.validate[e]=o,s&&n.shifts.push(e))},t.Scene.extend=function(e){var i=this;t.Scene=function(){return i.apply(this,arguments),this.$super=o.extend({},this),e.apply(this,arguments)||this},o.extend(t.Scene,i),t.Scene.prototype=i.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(t,e,i,n){for(var o in n=n||{})this[o]=n[o];return this.type=t,this.target=this.currentTarget=i,this.namespace=e||"",this.timeStamp=this.timestamp=Date.now(),this};var o=t._util=function(t){var e,i={},n=function(t){return parseFloat(t)||0},o=function(e){return e.currentStyle?e.currentStyle:t.getComputedStyle(e)},s=function(e,i,s,r){if((i=i===document?t:i)===t)r=!1;else if(!p.DomElement(i))return 0;e=e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();var a=(s?i["offset"+e]||i["outer"+e]:i["client"+e]||i["inner"+e])||0;if(s&&r){var l=o(i);a+="Height"===e?n(l.marginTop)+n(l.marginBottom):n(l.marginLeft)+n(l.marginRight)}return a},r=function(t){return t.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))};i.extend=function(t){for(t=t||{},e=1;e<arguments.length;e++)if(arguments[e])for(var i in arguments[e])arguments[e].hasOwnProperty(i)&&(t[i]=arguments[e][i]);return t},i.isMarginCollapseType=function(t){return["block","flex","list-item","table","-webkit-box"].indexOf(t)>-1};var a=0,l=["ms","moz","webkit","o"],c=t.requestAnimationFrame,h=t.cancelAnimationFrame;for(e=0;!c&&e<l.length;++e)c=t[l[e]+"RequestAnimationFrame"],h=t[l[e]+"CancelAnimationFrame"]||t[l[e]+"CancelRequestAnimationFrame"];c||(c=function(e){var i=(new Date).getTime(),n=Math.max(0,16-(i-a)),o=t.setTimeout((function(){e(i+n)}),n);return a=i+n,o}),h||(h=function(e){t.clearTimeout(e)}),i.rAF=c.bind(t),i.cAF=h.bind(t);var d=["error","warn","log"],u=t.console||{};for(u.log=u.log||function(){},e=0;e<d.length;e++){var f=d[e];u[f]||(u[f]=u.log)}i.log=function(t){(t>d.length||t<=0)&&(t=d.length);var e=new Date,i=("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)+":"+("00"+e.getMilliseconds()).slice(-3),n=d[t-1],o=Array.prototype.splice.call(arguments,1),s=Function.prototype.bind.call(u[n],u);o.unshift(i),s.apply(u,o)};var p=i.type=function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};p.String=function(t){return"string"===p(t)},p.Function=function(t){return"function"===p(t)},p.Array=function(t){return Array.isArray(t)},p.Number=function(t){return!p.Array(t)&&t-parseFloat(t)+1>=0},p.DomElement=function(t){return"object"==typeof HTMLElement||"function"==typeof HTMLElement?t instanceof HTMLElement||t instanceof SVGElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};var g=i.get={};return g.elements=function(e){var i=[];if(p.String(e))try{e=document.querySelectorAll(e)}catch(t){return i}if("nodelist"===p(e)||p.Array(e)||e instanceof NodeList)for(var n=0,o=i.length=e.length;n<o;n++){var s=e[n];i[n]=p.DomElement(s)?s:g.elements(s)}else(p.DomElement(e)||e===document||e===t)&&(i=[e]);return i},g.scrollTop=function(e){return e&&"number"==typeof e.scrollTop?e.scrollTop:t.pageYOffset||0},g.scrollLeft=function(e){return e&&"number"==typeof e.scrollLeft?e.scrollLeft:t.pageXOffset||0}
1,g.width=function(t,e,i){return s("width",t,e,i)},g.height=function(t,e,i){return s("height",t,e,i)},g.offset=function(t,e){var i={top:0,left:0};if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect();i.top=n.top,i.left=n.left,e||(i.top+=g.scrollTop(),i.left+=g.scrollLeft())}return i},i.addClass=function(t,e){e&&(t.classList?t.classList.add(e):t.className+=" "+e)},i.removeClass=function(t,e){e&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))},i.css=function(t,e){if(p.String(e))return o(t)[r(e)];if(p.Array(e)){var i={},n=o(t);return e.forEach((function(t,e){i[t]=n[r(t)]})),i}for(var s in e){var a=e[s];a==parseFloat(a)&&(a+="px"),t.style[r(s)]=a}},i}(window||{});return t.Scene.prototype.addIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.removeIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.setTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.removeTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.setVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t.Scene.prototype.removeVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t},void 0===(o=n.call(e,i,e,t))||(t.exports=o)},555:function(t,e,i){var n,o;n=function(){"use strict";var t=function(){o.log(2,"(COMPATIBILITY NOTICE) -> As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")};t.version="2.0.8","undefined"!=typeof window&&window.addEventListener("mousewheel",void 0);var e="data-scrollmagic-pin-spacer";t.Controller=function(n){var s,r,a="ScrollMagic.Controller",l="REVERSE",c="PAUSED",h=i.defaults,d=this,u=o.extend({},h,n),f=[],p=!1,g=0,m=c,v=!0,y=0,b=!0,w=function(){u.refreshInterval>0&&(r=window.setTimeout(L,u.refreshInterval))},x=function(){return u.vertical?o.get.scrollTop(u.container):o.get.scrollLeft(u.container)},S=function(){return u.vertical?o.get.height(u.container):o.get.width(u.container)},E=this._setScrollPos=function(t){u.vertical?v?window.scrollTo(o.get.scrollLeft(),t):u.container.scrollTop=t:v?window.scrollTo(t,o.get.scrollTop()):u.container.scrollLeft=t},C=function(){if(b&&p){var t=o.type.Array(p)?p:f.slice(0);p=!1;var e=g,i=(g=d.scrollPos())-e;0!==i&&(m=i>0?"FORWARD":l),m===l&&t.reverse(),t.forEach((function(e,i){$(3,"updating Scene "+(i+1)+"/"+t.length+" ("+f.length+" total)"),e.update(!0)})),0===t.length&&u.loglevel>=3&&$(3,"updating 0 Scenes (nothing added to controller)")}},_=function(){s=o.rAF(C)},T=function(t){$(3,"event fired causing an update:",t.type),"resize"==t.type&&(y=S(),m=c),!0!==p&&(p=!0,_())},L=function(){if(!v&&y!=S()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(e){(t=document.createEvent("Event")).initEvent("resize",!1,!1)}u.container.dispatchEvent(t)}f.forEach((function(t,e){t.refresh()})),w()},$=this._log=function(t,e){u.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+a+") ->
1"),o.log.apply(window,arguments))};this._options=u;var P=function(t){if(t.length<=1)return t;var e=t.slice(0);return e.sort((function(t,e){return t.scrollOffset()>e.scrollOffset()?1:-1})),e};return this.addScene=function(e){if(o.type.Array(e))e.forEach((function(t,e){d.addScene(t)}));else if(e instanceof t.Scene){if(e.controller()!==d)e.addTo(d);else if(f.indexOf(e)<0){for(var i in f.push(e),f=P(f),e.on("shift.controller_sort",(function(){f=P(f)})),u.globalSceneOptions)e[i]&&e[i].call(e,u.globalSceneOptions[i]);$(3,"adding Scene (now "+f.length+" total)")}}else $(1,"ERROR: invalid argument supplied for '.addScene()'");return d},this.removeScene=function(t){if(o.type.Array(t))t.forEach((function(t,e){d.removeScene(t)}));else{var e=f.indexOf(t);e>-1&&(t.off("shift.controller_sort"),f.splice(e,1),$(3,"removing Scene (now "+f.length+" left)"),t.remove())}return d},this.updateScene=function(e,i){return o.type.Array(e)?e.forEach((function(t,e){d.updateScene(t,i)})):i?e.update(!0):!0!==p&&e instanceof t.Scene&&(-1==(p=p||[]).indexOf(e)&&p.push(e),p=P(p),_()),d},this.update=function(t){return T({type:"resize"}),t&&C(),d},this.scrollTo=function(i,n){if(o.type.Number(i))E.call(u.container,i,n);else if(i instanceof t.Scene)i.controller()===d?d.scrollTo(i.scrollOffset(),n):$(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",i);else if(o.type.Function(i))E=i;else{var s=o.get.elements(i)[0];if(s){for(;s.parentNode.hasAttribute(e);)s=s.parentNode;var r=u.vertical?"top":"left",a=o.get.offset(u.container),l=o.get.offset(s);v||(a[r]-=d.scrollPos()),d.scrollTo(l[r]-a[r],n)}else $(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",i)}return d},this.scrollPos=function(t){return arguments.length?(o.type.Function(t)?x=t:$(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),d):x.call(d)},this.info=function(t){var e={size:y,vertical:u.vertical,scrollPos:g,scrollDirection:m,container:u.container,isDocument:v};return arguments.length?void 0!==e[t]?e[t]:void $(1,'ERROR: option "'+t+'" is not available'):e},this.loglevel=function(t){return arguments.length?(u.loglevel!=t&&(u.loglevel=t),d):u.loglevel},this.enabled=function(t){return arguments.length?(b!=t&&(b=!!t,d.updateScene(f,!0)),d):b},this.destroy=function(t){window.clearTimeout(r);for(var e=f.length;e--;)f[e].destroy(t);return u.container.removeEventListener("resize",T),u.container.removeEventListener("scroll",T),o.cAF(s),$(3,"destroyed "+a+" (reset: "+(t?"true":"false")+")"),null},function(){for(var e in u)h.hasOwnProperty(e)||($(2,'WARNING: Unknown option "'+e+'"'),delete u[e]);if(u.container=o.get.elements(u.container)[0],!u.container)throw $(1,"ERROR creating object "+a+": No valid scroll container supplied"),a+" init failed.";(v=u.container===window||u.container===document.body||!document.body.contains(u.container))&&(u.container=window),y=S(),u.container.addEventListener("resize",T),u.container.addEventListener("scroll",T);var i=parseInt(u.refreshInterval,10);u.refreshInterval=o.type.Number(i)?i:h.refreshInterval,w(),$(3,"added new "+a+" controller (v"+t.version+")")}(),d};var i={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};t.Controller.addOption=function(t,e){i.defaults[t]=e},t.Controller.extend=function(e){var i=this;t.Controller=function(){return i.apply(this,arguments),this.$super=o.extend({},this),e.apply(this,arguments)||this},o.extend(t.Controller,i),t.Controller.prototype=i.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(i){var s,r,a="ScrollMagic.Scene",l="BEFORE",c="DURING",h="AFTER",d=n.defaults,u=this,f=o.extend({},d,i),p=l,g=0,m={start:0,end:0},v=0,y=!0,b={};this.on=function(t,e){return o.type.Function(e)?(t=t.trim().split(" ")).forEach((function(t){var i=t.split("."),n=i[0],o=i[1];"*"!=n&&(b[n]||(b[n]=[]),b[n].push({namespace:o||"",callback:e}))})):w(1,"ERROR when calling '.on()': Supplied callback for '"+t+"' is not a valid function!"),u},this.off=function(t,e){return t?((t=t.trim().split(" ")).forEac
1h((function(t,i){var n=t.split("."),o=n[0],s=n[1]||"";("*"===o?Object.keys(b):[o]).forEach((function(t){for(var i=b[t]||[],n=i.length;n--;){var o=i[n];!o||s!==o.namespace&&"*"!==s||e&&e!=o.callback||i.splice(n,1)}i.length||delete b[t]}))})),u):(w(1,"ERROR: Invalid event name supplied."),u)},this.trigger=function(e,i){if(e){var n=e.trim().split("."),o=n[0],s=n[1],r=b[o];w(3,"event fired:",o,i?"->":"",i||""),r&&r.forEach((function(e,n){s&&s!==e.namespace||e.callback.call(u,new t.Event(o,e.namespace,u,i))}))}else w(1,"ERROR: Invalid event name supplied.");return u},u.on("change.internal",(function(t){"loglevel"!==t.what&&"tweenChanges"!==t.what&&("triggerElement"===t.what?_():"reverse"===t.what&&u.update())})).on("shift.internal",(function(t){E(),u.update()}));var w=this._log=function(t,e){f.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+a+") ->"),o.log.apply(window,arguments))};this.addTo=function(e){return e instanceof t.Controller?r!=e&&(r&&r.removeScene(u),r=e,$(),C(!0),_(!0),E(),r.info("container").addEventListener("resize",T),e.addScene(u),u.trigger("add",{controller:r}),w(3,"added "+a+" to controller"),u.update()):w(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),u},this.enabled=function(t){return arguments.length?(y!=t&&(y=!!t,u.update(!0)),u):y},this.remove=function(){if(r){r.info("container").removeEventListener("resize",T);var t=r;r=void 0,t.removeScene(u),u.trigger("remove"),w(3,"removed "+a+" from controller")}return u},this.destroy=function(t){return u.trigger("destroy",{reset:t}),u.remove(),u.off("*.*"),w(3,"destroyed "+a+" (reset: "+(t?"true":"false")+")"),null},this.update=function(t){if(r)if(t)if(r.enabled()&&y){var e,i=r.info("scrollPos");e=f.duration>0?(i-m.start)/(m.end-m.start):i>=m.start?1:0,u.trigger("update",{startPos:m.start,endPos:m.end,scrollPos:i}),u.progress(e)}else x&&p===c&&k(!0);else r.updateScene(u,!1);return u},this.refresh=function(){return C(),_(),u},this.progress=function(t){if(arguments.length){var e=!1,i=p,n=r?r.info("scrollDirection"):"PAUSED",o=f.reverse||t>=g;if(0===f.duration?(e=g!=t,p=0==(g=t<1&&o?0:1)?l:c):t<0&&p!==l&&o?(g=0,p=l,e=!0):t>=0&&t<1&&o?(g=t,p=c,e=!0):t>=1&&p!==h?(g=1,p=h,e=!0):p!==c||o||k(),e){var s={progress:g,state:p,scrollDirection:n},a=p!=i,d=function(t){u.trigger(t,s)};a&&i!==c&&(d("enter"),d(i===l?"start":"end")),d("progress"),a&&p!==c&&(d(p===l?"start":"end"),d("leave"))}return u}return g};var x,S,E=function(){m={start:v+f.offset},r&&f.triggerElement&&(m.start-=r.info("size")*f.triggerHook),m.end=m.start+f.duration},C=function(t){if(s){var e="duration";P(e,s.call(u))&&!t&&(u.trigger("change",{what:e,newval:f[e]}),u.trigger("shift",{reason:e}))}},_=function(t){var i=0,n=f.triggerElement;if(r&&(n||v>0)){if(n)if(n.parentNode){for(var s=r.info(),a=o.get.offset(s.container),l=s.vertical?"top":"left";n.parentNode.hasAttribute(e);)n=n.parentNode;var c=o.get.offset(n);s.isDocument||(a[l]-=r.scrollPos()),i=c[l]-a[l]}else w(2,"WARNING: triggerElement was removed from DOM and will be reset to",void 0),u.triggerElement(void 0);var h=i!=v;v=i,h&&!t&&u.trigger("shift",{reason:"triggerElementPosition"})}},T=function(t){f.triggerHook>0&&u.trigger("shift",{reason:"containerResize"})},L=o.extend(n.validate,{duration:function(t){if(o.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var e=parseFloat(t)/100;t=function(){return r?r.info("size")*e:0}}if(o.type.Function(t)){s=t;try{t=parseFloat(s.call(u))}catch(e){t=-1}}if(t=parseFloat(t),!o.type.Number(t)||t<0)throw s?(s=void 0,['Invalid return value of supplied function for option "duration":',t]):['Invalid value for option "duration":',t];return t}}),$=function(t){(t=arguments.length?[t]:Object.keys(L)).forEach((function(t,e){var i;if(L[t])try{i=L[t](f[t])}catch(e){i=d[t];var n=o.type.String(e)?[e]:e;o.type.Array(n)?(n[0]="ERROR: "+n[0],n.unshift(1),w.apply(this,n)):w(1,"ERROR: Problem executing validation callback for option '"+t+"':",e.message)}finally{f[t]=i}}))},P=function(t,e){var i=!1,n=f[t];return f[t]!=e&&(f[t]=e,$(t),i=n!=f[t]),i},I=function(t){u[t]||(u[t]=function(e){return arguments.length?("duration"===t&&(s=void 0),P(t,e)&&(u.trigger("change",{what:t,newval:f[t]}),n.shifts.indexOf(t)>-1&&u.trigger("shift",{reason:t})),u):f[t]})};this.controller=function(){return r},this.state=function(){return p},this.scrollOffset=function(){return m.start},this.triggerPosition=function(){var t=f.offset;return r&&(f.triggerElement?t+=v:t+=r.info("size")*u.triggerHook()),t},u.on("shift.internal",(function(t){var e="duration"===t.reason;(p===h&&e||p===c&&0===f.duration)&&k(),e&&A()})).on("progress.internal",(function(t){k()})).on("add.internal",(function(t){A()})).on("destroy.internal",(function(t){u.removePin(t.reset)}));var k=function(t){if(x&&r){var e=r.info(),i=S.spacer.firstChild;if(t||p!==c){var n={position:S.inFlow?"relative":"absolute",top:0,left:0},s=o.css(i,"position")!=n.position;S.pushFollowers?f.duration>0&&(p===h&&0===parseFloat(o.css(S.spacer,"padding-top"))||p===l&&0===parseFloat(o.css(S.spacer,"padding-bottom")))&&(s=!0):n[e.vertical?"top":"left"]=f.duration*g,o.css(i,n),s&&A()}else{"fixed"!=o.css(i,"position")&&(o.css(i,{position:"fixed"}),A());var a=o.get.offset(S.spacer,!0),d=f.reverse||0===f.duration?e.scrollPos-m.start:Math.round(g*f.duration*10)/10;a[e.vertical?"top":"left"]+=d,o.css(S.spacer.firstChild,{top:a.top,left
1:a.left})}}},A=function(){if(x&&r&&S.inFlow){var t=p===c,e=r.info("vertical"),i=S.spacer.firstChild,n=o.isMarginCollapseType(o.css(S.spacer,"display")),s={};S.relSize.width||S.relSize.autoFullWidth?t?o.css(x,{width:o.get.width(S.spacer)}):o.css(x,{width:"100%"}):(s["min-width"]=o.get.width(e?x:i,!0,!0),s.width=t?s["min-width"]:"auto"),S.relSize.height?t?o.css(x,{height:o.get.height(S.spacer)-(S.pushFollowers?f.duration:0)}):o.css(x,{height:"100%"}):(s["min-height"]=o.get.height(e?i:x,!0,!n),s.height=t?s["min-height"]:"auto"),S.pushFollowers&&(s["padding"+(e?"Top":"Left")]=f.duration*g,s["padding"+(e?"Bottom":"Right")]=f.duration*(1-g)),o.css(S.spacer,s)}},z=function(){r&&x&&p===c&&!r.info("isDocument")&&k()},O=function(){r&&x&&p===c&&((S.relSize.width||S.relSize.autoFullWidth)&&o.get.width(window)!=o.get.width(S.spacer.parentNode)||S.relSize.height&&o.get.height(window)!=o.get.height(S.spacer.parentNode))&&A()},R=function(t){r&&x&&p===c&&!r.info("isDocument")&&(t.preventDefault(),r._setScrollPos(r.info("scrollPos")-((t.wheelDelta||t[r.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-t.detail)))};this.setPin=function(t,i){var n=i&&i.hasOwnProperty("pushFollowers");if(i=o.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},i),!(t=o.get.elements(t)[0]))return w(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),u;if("fixed"===o.css(t,"position"))return w(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),u;if(x){if(x===t)return u;u.removePin()}var s=(x=t).parentNode.style.display,r=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];x.parentNode.style.display="none";var a="absolute"!=o.css(x,"position"),l=o.css(x,r.concat(["display"])),c=o.css(x,["width","height"]);x.parentNode.style.display=s,!a&&i.pushFollowers&&(w(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),i.pushFollowers=!1),window.setTimeout((function(){x&&0===f.duration&&n&&i.pushFollowers&&w(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")}),0);var h=x.parentNode.insertBefore(document.createElement("div"),x),d=o.extend(l,{position:a?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(a||o.extend(d,o.css(x,["width","height"])),o.css(h,d),h.setAttribute(e,""),o.addClass(h,i.spacerClass),S={spacer:h,relSize:{width:"%"===c.width.slice(-1),height:"%"===c.height.slice(-1),autoFullWidth:"auto"===c.width&&a&&o.isMarginCollapseType(l.display)},pushFollowers:i.pushFollowers,inFlow:a},!x.___origStyle){x.___origStyle={};var p=x.style;r.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach((function(t){x.___origStyle[t]=p[t]||""}))}return S.relSize.width&&o.css(h,{width:c.width}),S.relSize.height&&o.css(h,{height:c.height}),h.appendChild(x),o.css(x,{position:a?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(S.relSize.width||S.relSize.autoFullWidth)&&o.css(x,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",z),window.addEventListener("resize",z),window.addEventListener("resize",O),x.addEventListener("mousewheel",R),x.addEventListener("DOMMouseScroll",R),w(3,"added pin"),k(),u},this.removePin=function(t){if(x){if(p===c&&k(!0),t||!r){var i=S.spacer.firstChild;if(i.hasAttribute(e)){var n=S.spacer.style,s={};["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach((function(t){s[t]=n[t]||""})),o.css(i,s)}S.spacer.parentNode.insertBefore(i,S.spacer),S.spacer.parentNode.removeChild(S.spacer),x.parentNode.hasAttribute(e)||(o.css(x,x.___origStyle),delete x.___origStyle)}window.removeEventListener("scroll",z),window.removeEventListener("resize",z),window.removeEventListener("resize",O),x.removeEventListener("mousewheel",R),x.removeEventListener("DOMMouseScroll",R),x=void 0,w(3,"removed pin (reset: "+(t?"true":"false")+")")}return u};var M,F=[];return u.on("destroy.internal",(function(t){u.removeClassToggle(t.reset)})),this.setClassToggle=function(t,e){var i=o.get.elements(t);return 0!==i.length&&o.type.String(e)?(F.length>
10&&u.removeClassToggle(),M=e,F=i,u.on("enter.internal_class leave.internal_class",(function(t){var e="enter"===t.type?o.addClass:o.removeClass;F.forEach((function(t,i){e(t,M)}))})),u):(w(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===i.length?"element":"classes")+" supplied."),u)},this.removeClassToggle=function(t){return t&&F.forEach((function(t,e){o.removeClass(t,M)})),u.off("start.internal_class end.internal_class"),M=void 0,F=[],u},function(){for(var t in f)d.hasOwnProperty(t)||(w(2,'WARNING: Unknown option "'+t+'"'),delete f[t]);for(var e in d)I(e);$()}(),u};var n={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!o.type.Number(t))throw['Invalid value for option "offset":',t];return t},triggerElement:function(t){if(t=t||void 0){var e=o.get.elements(t)[0];if(!e||!e.parentNode)throw['Element defined in option "triggerElement" was not found:',t];t=e}return t},triggerHook:function(t){var e={onCenter:.5,onEnter:1,onLeave:0};if(o.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in e))throw['Invalid value for option "triggerHook": ',t];t=e[t]}return t},reverse:function(t){return!!t},loglevel:function(t){if(t=parseInt(t),!o.type.Number(t)||t<0||t>3)throw['Invalid value for option "loglevel":',t];return t}},shifts:["duration","offset","triggerHook"]};t.Scene.addOption=function(e,i,o,s){e in n.defaults?t._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+e+"', because it already exists."):(n.defaults[e]=i,n.validate[e]=o,s&&n.shifts.push(e))},t.Scene.extend=function(e){var i=this;t.Scene=function(){return i.apply(this,arguments),this.$super=o.extend({},this),e.apply(this,arguments)||this},o.extend(t.Scene,i),t.Scene.prototype=i.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(t,e,i,n){for(var o in n=n||{})this[o]=n[o];return this.type=t,this.target=this.currentTarget=i,this.namespace=e||"",this.timeStamp=this.timestamp=Date.now(),this};var o=t._util=function(t){var e,i={},n=function(t){return parseFloat(t)||0},o=function(e){return e.currentStyle?e.currentStyle:t.getComputedStyle(e)},s=function(e,i,s,r){if((i=i===document?t:i)===t)r=!1;else if(!p.DomElement(i))return 0;e=e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();var a=(s?i["offset"+e]||i["outer"+e]:i["client"+e]||i["inner"+e])||0;if(s&&r){var l=o(i);a+="Height"===e?n(l.marginTop)+n(l.marginBottom):n(l.marginLeft)+n(l.marginRight)}return a},r=function(t){return t.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))};i.extend=function(t){for(t=t||{},e=1;e<arguments.length;e++)if(arguments[e])for(var i in arguments[e])arguments[e].hasOwnProperty(i)&&(t[i]=arguments[e][i]);return t},i.isMarginCollapseType=function(t){return["block","flex","list-item","table","-webkit-box"].indexOf(t)>-1};var a=0,l=["ms","moz","webkit","o"],c=t.requestAnimationFrame,h=t.cancelAnimationFrame;for(e=0;!c&&e<l.length;++e)c=t[l[e]+"RequestAnimationFrame"],h=t[l[e]+"CancelAnimationFrame"]||t[l[e]+"CancelRequestAnimationFrame"];c||(c=function(e){var i=(new Date).getTime(),n=Math.max(0,16-(i-a)),o=t.setTimeout((function(){e(i+n)}),n);return a=i+n,o}),h||(h=function(e){t.clearTimeout(e)}),i.rAF=c.bind(t),i.cAF=h.bind(t);var d=["error","warn","log"],u=t.console||{};for(u.log=u.log||function(){},e=0;e<d.length;e++){var f=d[e];u[f]||(u[f]=u.log)}i.log=function(t){(t>d.length||t<=0)&&(t=d.length);var e=new Date,i=("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)+":"+("00"+e.getMilliseconds()).slice(-3),n=d[t-1],o=Array.prototype.splice.call(arguments,1),s=Function.prototype.bind.call(u[n],u);o.unshift(i),s.apply(u,o)};var p=i.type=function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};p.String=function(t){return"string"===p(t)},p.Function=function(t){return"function"===p(t)},p.Array=function(t){return Array.isArray(t)},p.Number=function(t){return!p.Array(t)&&t-parseFloat(t)+1>=0},p.DomElement=function(t){return"object"==typeof HTMLElement||"function"==typeof HTMLElement?t instanceof HTMLElement||t instanceof SVGElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};var g=i.get={};return g.elements=function(e){var i=[];if(p.String(e))try{e=document.querySelectorAll(e)}catch(t){return i}if("nodelist"===p(e)||p.Array(e)||e instanceof NodeList)for(var n=0,o=i.length=e.length;n<o;n++){var s=e[n];i[n]=p.DomElement(s)?s:g.elements(s)}else(p.DomElement(e)||e===document||e===t)&&(i=[e]);return i},g.scrollTop=function(e){return e&&"number"==typeof e.scrollTop?e.scrollTop:t.pageYOffset||0},g.scrollLeft=function(e){return e&&"number"==typeof e.scrollLeft?e.scrollLeft:t.pageXOffset||0}
1,g.width=function(t,e,i){return s("width",t,e,i)},g.height=function(t,e,i){return s("height",t,e,i)},g.offset=function(t,e){var i={top:0,left:0};if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect();i.top=n.top,i.left=n.left,e||(i.top+=g.scrollTop(),i.left+=g.scrollLeft())}return i},i.addClass=function(t,e){e&&(t.classList?t.classList.add(e):t.className+=" "+e)},i.removeClass=function(t,e){e&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))},i.css=function(t,e){if(p.String(e))return o(t)[r(e)];if(p.Array(e)){var i={},n=o(t);return e.forEach((function(t,e){i[t]=n[r(t)]})),i}for(var s in e){var a=e[s];a==parseFloat(a)&&(a+="px"),t.style[r(s)]=a}},i}(window||{});return t.Scene.prototype.addIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.removeIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.setTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.removeTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.setVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t.Scene.prototype.removeVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t},void 0===(o=n.call(e,i,e,t))||(t.exports=o)},744:()=>{({init:function(){this.searchIcon=document.querySelectorAll(".menu-item--search")[0],this.searchModule=document.querySelectorAll(".search-module")[0],this.searchClose=document.querySelectorAll(".search-module .close")[0],this.searchInput=document.querySelectorAll('.search-module input[type="search"]')[0],this.actions()},actions:function(){this.searchIcon&&this.searchIcon.addEventListener("click",function(t){t.preventDefault(),this.searchModule.classList.toggle("search-module--is-active"),this.searchInput.focus(),this.searchInput.value=""}.bind(this)),this.searchClose&&this.searchClose.addEventListener("click",function(t){t.preventDefault(),this.searchModule.classList.remove("search-module--is-active")}.bind(this))}}).init(),{init:function(){this.header=document.querySelectorAll(".header")[0],this.headerHeight=this.header.offsetHeight,this.menuIcon=document.querySelectorAll(".header .menu-icon")[0],this.mobileMenuParentItem=document.querySelectorAll(".menu-item-has-children > a"),this.mobileMenuChildItem=document.querySelectorAll(".menu-item-has-children > .sub-menu > .menu-item-has-children > a"),this.timeout=!1,this.actions()},actions:function(){var t=this;window.addEventListener("resize",function(){clearTimeout(this.timeout),this.timeout=setTimeout(this.resizeMenu(),250)}.bind(this)),this.menuIcon&&this.menuIcon.addEventListener("click",function(t){t.preventDefault(),document.body.classList.contains("menu-is-open")?this.hideMenu():this.showMenu()}.bind(this)),this.mobileMenuParentItem&&this.mobileMenuParentItem.forEach((function(e){e.addEventListener("click",t.mobileClickListener.bind(t))}))},mobileClickListener:function(t){return!!this.header.classList.contains("header--is-open")&&(t.target.classList.contains("menu-open")&&"#"==t.target.attributes.href.value?(t.target.classList.remove("menu-open"),t.target.nextElementSibling.classList.remove("sub-menu--is-open"),!1):(t.preventDefault(),this.mobileMenuParentItem.forEach((function(t){t.classList.remove("menu-open")})),t.target.classList.add("menu-open"),void t.target.nextElementSibling.classList.add("sub-menu
1--is-open")))},hideMenu:function(){document.body.classList.remove("menu-is-open"),this.menuIcon.classList.remove("is-active"),this.header.classList.remove("header--is-open")},showMenu:function(){document.body.classList.add("menu-is-open"),this.menuIcon.classList.add("is-active"),this.header.classList.add("header--is-open")},resizeMenu:function(){window.innerWidth>=1024&&this.hideMenu()}}.init(),{init:function(){this.mainMenu=document.querySelector(".header"),this.pageHeader=document.querySelectorAll("section.page-header"),this.heroCarousel=document.querySelectorAll("section.hero"),this.pageHeader.length||this.heroCarousel.length||this.mainMenu.classList.add("header--relative")}}.init()},771:()=>{var t={init:function(){this.links=document.querySelectorAll("a"),this.addLinkAriaLabels()},addLinkAriaLabels:function(){this.links.forEach((function(t){if(!t.ariaLabel){var e="_blank"===t.getAttribute("target");if(t.textContent){var i=e?t.textContent.trim()+" - link opens in a new tab":t.textContent.trim();t.ariaLabel=i}else if(t.getElementsByTagName("img").length>0){var n=t.getElementsByTagName("img")[0].getAttribute("alt"),o=e?n.trim()+" - link opens in a new tab":n.trim();t.ariaLabel=o}}}))}};window.addEventListener("load",(function(){t.init()}))},773:(t,e,i)=>{"use strict";i.d(e,{FN:()=>w,lX:()=>D});const n=t=>"object"==typeof t&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t),o=(...t)=>{let e=!1;"boolean"==typeof t[0]&&(e=t.shift());let i=t[0];if(!i||"object"!=typeof i)throw new Error("extendee must be an object");const s=t.slice(1),r=s.length;for(let t=0;t<r;t++){const r=s[t];for(let t in r)if(r.hasOwnProperty(t)){const s=r[t];if(e&&(Array.isArray(s)||n(s))){const e=Array.isArray(s)?[]:{};i[t]=o(!0,i.hasOwnProperty(t)?i[t]:e,s)}else i[t]=s}}return i},s=(t,e=1e4)=>(t=parseFloat(t)||0,Math.round((t+Number.EPSILON)*e)/e),r=function(t){return!!(t&&"object"==typeof t&&t instanceof Element&&t!==document.body)&&!t.__Panzoom&&(function(t){const 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}(t)?t:r(t.parentNode))},a="undefined"!=typeof window&&window.ResizeObserver||class{constructor(t){this.observables=[],this.boundCheck=this.check.bind(this),this.boundCheck(),this.callback=t}observe(t){if(this.observables.some((e=>e.el===t)))return;const e={el:t,size:{height:t.clientHeight,width:t.clientWidth}};this.observables.push(e)}unobserve(t){this.observables=this.observables.filter((e=>e.el!==t))}disconnect(){this.observables=[]}check(){const t=this.observables.filter((t=>{const 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((t=>t.el));t.length>0&&this.callback(t),window.requestAnimationFrame(this.boundCheck)}};class l{constructor(t){this.id=self.Touch&&t instanceof Touch?t.identifier:-1,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY}}const c=(t,e)=>e?Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2):0,h=(t,e)=>e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t;class d{constructor(t,{start:e=()=>!0,move:i=()=>{},end:n=()=>{}}={}){this._element=t,this.startPointers=[],this.currentPointers=[],this._pointerStart=t=>{if(t.buttons>0&&0!==t.button)return;const e=new l(t);this.currentPointers.some((t=>t.id===e.id))||this._triggerPointerStart(e,t)&&(window.addEventListener("mousemove",this._move),window.addEventListener("mouseup",this._pointerEnd))},this._touchStart=t=>{for(const e of Array.from(t.changedTouches||[]))this._triggerPointerStart(new l(e),t)},this._move=t=>{const e=this.currentPointers.slice(),i=(t=>"changedTouches"in t)(t)?Array.from(t.changedTouches).map((t=>new l(t))):[new l(t)];for(const t of i){const e=this.currentPointers.findIndex((e=>e.id===t.id));e<0||(this.currentPointers[e]=t)}this._moveCallback(e,this.currentPointers.slice(),t)},this._triggerPointerEnd=(t,e)=>{const i=this.currentPointers.findIndex((e=>e.id===t.id));return!(i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this._endCallback(t,e),0))},this._pointerEnd=t=>{t.buttons>0&&0!==t.button||this._triggerPointerEnd(new l(t),t)&&(window.removeEventListener("mousemove",this._move,{passive:!1}),window.removeEventListener("mouseup",this._pointerEnd,{passive:!1}))},this._touchEnd=t=>{for(const e of Array.from(t.changedTouches||[]))this._triggerPointerEnd(new l(e),t)},this._startCallback=e,this._moveCallback=i,this._endCallback=n,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)}stop(){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)}_triggerPointerStart(t,e){return!!this._startCallback(t,e)&&(this.currentPointers.push(t),this.startPointers.push(t),!0)}}class u{constructor(t={}){this.options=o(!0,{},t),this.plugins=[],this.events={};for(const t of["on","once"])for(const e of Object.entries(this.options[t]||{}))this[t](...e)}option(t,e,...i){let n=(o=t=String(t),s=this.options,o.split(".").reduce((function(t,e){return t&&t[e]}
1),s));var o,s;return"function"==typeof n&&(n=n.call(this,this,...i)),void 0===n?e:n}localize(t,e=[]){return(t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,i,n)=>{let o="";n?o=this.option(`${i[0]+i.toLowerCase().substring(1)}.l10n.${n}`):i&&(o=this.option(`l10n.${i}`)),o||(o=t);for(let t=0;t<e.length;t++)o=o.split(e[t][0]).join(e[t][1]);return o}))).replace(/\{\{(.*)\}\}/,((t,e)=>e))}on(t,e){if(n(t)){for(const e of Object.entries(t))this.on(...e);return this}return String(t).split(" ").forEach((t=>{const i=this.events[t]=this.events[t]||[];-1==i.indexOf(e)&&i.push(e)})),this}once(t,e){if(n(t)){for(const e of Object.entries(t))this.once(...e);return this}return String(t).split(" ").forEach((t=>{const i=(...n)=>{this.off(t,i),e.call(this,this,...n)};i._=e,this.on(t,i)})),this}off(t,e){if(!n(t))return t.split(" ").forEach((t=>{const i=this.events[t];if(!i||!i.length)return this;let n=-1;for(let t=0,o=i.length;t<o;t++){const o=i[t];if(o&&(o===e||o._===e)){n=t;break}}-1!=n&&i.splice(n,1)})),this;for(const e of Object.entries(t))this.off(...e)}trigger(t,...e){for(const i of[...this.events[t]||[]].slice())if(i&&!1===i.call(this,this,...e))return!1;for(const i of[...this.events["*"]||[]].slice())if(i&&!1===i.call(this,t,this,...e))return!1;return!0}attachPlugins(t){const e={};for(const[i,n]of Object.entries(t||{}))!1===this.options[i]||this.plugins[i]||(this.options[i]=o({},n.defaults||{},this.options[i]),e[i]=new n(this));for(const[t,i]of Object.entries(e))i.attach(this);return this.plugins=Object.assign({},this.plugins,e),this}detachPlugins(){for(const t in this.plugins){let e;(e=this.plugins[t])&&"function"==typeof e.detach&&e.detach(this)}return this.plugins={},this}}const f={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};class p extends u{constructor(t,e={}){super(o(!0,{},f,e)),this.state="init",this.$container=t;for(const t of["onLoad","onWheel","onClick"])this[t]=this[t].bind(this);this.initLayout(),this.resetValues(),this.attachPlugins(p.Plugins),this.trigger("init"),this.updateMetrics(),this.attachEvents(),this.trigger("ready"),!1===this.option("centerOnStart")?this.state="ready":this.panTo({friction:0}),t.__Panzoom=this}initLayout(){const t=this.$container;if(!(t instanceof HTMLElement))throw new Error("Panzoom: Container not found");const e=this.option("content")||t.querySelector(".panzoom__content");if(!e)throw new Error("Panzoom: Content not found");this.$content=e;let i=this.option("viewport")||t.querySelector(".panzoom__viewport");i||!1===this.option("wrapInner")||(i=document.createElement("div"),i.classList.add("panzoom__viewport"),i.append(...t.childNodes),t.appendChild(i)),this.$viewport=i||e.parentNode}resetValues(){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()}onLoad(t){this.updateMetrics(),this.panTo({scale:this.option("baseScale"),friction:0}),this.trigger("load",t)}onClick(t){if(t.defaultPrevented)return;if(document.activeElement&&document.activeElement.closest("[contenteditable]"))return;if(this.option("textSelection")&&window.getSelection().toString().length&&(!t.target||!t.target.hasAttribute("data-fancybox-close")))return void t.stopPropagation();const 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))}onWheel(t){!1!==this.trigger("wheel",t)&&this.option("zoom")&&this.option("wheel")&&this.zoomWithWheel(t)}zoomWithWheel(t){void 0===this.changedDelta&&(this.changedDelta=0);const e=Math.max(-1,Math.min(1,-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)),i=this.content.scale;let 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"))return;if(t.preventDefault(),n===i)return;const o=this.$content.getBoundingClientRect(),s=t.clientX-o.left,r=t.clientY-o.top;this.zoomTo(n,{x:s,y:r})}zoomWithClick(t){const e=this.$content.getClientRects()[0],i=t.clientX-e.left,n=t.clientY-e.top;this.toggleZoom({x:i,y:n})}attachEvents(){this.$content.addEventListener("load",this.onLoad),this.$container.addEventListener("wheel",this.onWheel,{passive:!1}),this.$container.addEventListener("click",this.onClick,{passive:!1}),this.initObserver();const t=new d(this.$container,{start:(e,i)=>{if(!this.option("touch"))return!1;if(this.velocity.scale<0)return!1;
1const n=i.composedPath()[0];if(!t.currentPointers.length){if(-1!==["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName))return!1;if(this.option("textSelection")&&((t,e,i)=>{const n=t.childNodes,o=document.createRange();for(let t=0;t<n.length;t++){const s=n[t];if(s.nodeType!==Node.TEXT_NODE)continue;o.selectNodeContents(s);const r=o.getBoundingClientRect();if(e>=r.left&&i>=r.top&&e<=r.right&&i<=r.bottom)return s}return!1})(n,e.clientX,e.clientY))return!1}return!r(n)&&!1!==this.trigger("touchStart",i)&&("mousedown"===i.type&&i.preventDefault(),this.state="pointerdown",this.resetDragPosition(),this.dragPosition.midPoint=null,this.dragPosition.time=Date.now(),!0)},move:(e,i,n)=>{if("pointerdown"!==this.state)return;if(!1===this.trigger("touchMove",n))return void n.preventDefault();if(i.length<2&&!0===this.option("panOnlyZoomed")&&this.content.width<=this.viewport.width&&this.content.height<=this.viewport.height&&this.transform.scale<=this.option("baseScale"))return;if(i.length>1&&(!this.option("zoom")||!1===this.option("pinchToZoom")))return;const o=h(e[0],e[1]),s=h(i[0],i[1]),r=s.clientX-o.clientX,a=s.clientY-o.clientY,l=c(e[0],e[1]),d=c(i[0],i[1]),u=l&&d?d/l:1;this.dragOffset.x+=r,this.dragOffset.y+=a,this.dragOffset.scale*=u,this.dragOffset.time=Date.now()-this.dragPosition.time;const f=1===this.dragStart.scale&&this.option("lockAxis");if(f&&!this.lockAxis){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void n.preventDefault();const t=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockAxis=t>45&&t<135?"y":"x"}if("xy"===f||"y"!==this.lockAxis){if(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),this.lockAxis&&(this.dragOffset["x"===this.lockAxis?"y":"x"]=0),this.$container.classList.add(this.option("draggingClass")),this.transform.scale===this.option("baseScale")&&"y"===this.lockAxis||(this.dragPosition.x=this.dragStart.x+this.dragOffset.x),this.transform.scale===this.option("baseScale")&&"x"===this.lockAxis||(this.dragPosition.y=this.dragStart.y+this.dragOffset.y),this.dragPosition.scale=this.dragStart.scale*this.dragOffset.scale,i.length>1){const e=h(t.startPointers[0],t.startPointers[1]),i=e.clientX-this.dragStart.rect.x,n=e.clientY-this.dragStart.rect.y,{deltaX:o,deltaY:r}=this.getZoomDelta(this.content.scale*this.dragOffset.scale,i,n);this.dragPosition.x-=o,this.dragPosition.y-=r,this.dragPosition.midPoint=s}else this.setDragResistance();this.transform={x:this.dragPosition.x,y:this.dragPosition.y,scale:this.dragPosition.scale},this.startAnimation()}},end:(e,i)=>{if("pointerdown"!==this.state)return;if(this._dragOffset={...this.dragOffset},t.currentPointers.length)return void this.resetDragPosition();if(this.state="decel",this.friction=this.option("decelFriction"),this.recalculateTransform(),this.$container.classList.remove(this.option("draggingClass")),!1===this.trigger("touchEnd",i))return;if("decel"!==this.state)return;const n=this.option("minScale");if(this.transform.scale<n)return void this.zoomTo(n,{friction:.64});const o=this.option("maxScale");if(this.transform.scale-o>.01){const t=this.dragPosition.midPoint||e,i=this.$content.getClientRects()[0];this.zoomTo(o,{friction:.64,x:t.clientX-i.left,y:t.clientY-i.top})}}});this.pointerTracker=t}initObserver(){this.resizeObserver||(this.resizeObserver=new a((()=>{this.updateTimer||(this.updateTimer=setTimeout((()=>{const t=this.$container.getBoundingClientRect();t.width&&t.height?((Math.abs(t.width-this.container.width)>1||Math.abs(t.height-this.container.height)>1)&&(this.isAnimating()&&this.endAnimation(!0),this.updateMetrics(),this.panTo({x:this.content.x,y:this.content.y,scale:this.option("baseScale"),friction:0})),this.updateTimer=null):this.updateTimer=null}),this.updateRate))})),this.resizeObserver.observe(this.$container))}resetDragPosition(){this.lockAxis=null,this.friction=this.option("friction"),this.velocity={x:0,y:0,scale:0};const{x:t,y:e,scale:i}=this.content;this.dragStart={rect:this.$content.getBoundingClientRect(),x:t,y:e,scale:i},this.dragPosition={...this.dragPosition,x:t,y:e,scale:i},this.dragOffset={x:0,y:0,scale:1,time:0}}updateMetrics(t){!0!==t&&this.trigger("beforeUpdate");const e=this.$container,i=this.$content,n=this.$viewport,o=i instanceof HTMLImageElement,r=this.option("zoom"),a=this.option("resizeParent",r);let l=this.option("width"),c=this.option("height"),h=l||(d=i,Math.max(parseFloat(d.naturalWi
1dth||0),parseFloat(d.width&&d.width.baseVal&&d.width.baseVal.value||0),parseFloat(d.offsetWidth||0),parseFloat(d.scrollWidth||0)));var d;let u=c||(t=>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)))(i);Object.assign(i.style,{width:l?`${l}px`:"",height:c?`${c}px`:"",maxWidth:"",maxHeight:""}),a&&Object.assign(n.style,{width:"",height:""});const f=this.option("ratio");h=s(h*f),u=s(u*f),l=h,c=u;const p=i.getBoundingClientRect(),g=n.getBoundingClientRect(),m=n==e?g:e.getBoundingClientRect();let v=Math.max(n.offsetWidth,s(g.width)),y=Math.max(n.offsetHeight,s(g.height)),b=window.getComputedStyle(n);if(v-=parseFloat(b.paddingLeft)+parseFloat(b.paddingRight),y-=parseFloat(b.paddingTop)+parseFloat(b.paddingBottom),this.viewport.width=v,this.viewport.height=y,r){if(Math.abs(h-p.width)>.1||Math.abs(u-p.height)>.1){const t=((t,e,i,n)=>{const o=Math.min(i/t||0,n/e);return{width:t*o||0,height:e*o||0}})(h,u,Math.min(h,p.width),Math.min(u,p.height));l=s(t.width),c=s(t.height)}Object.assign(i.style,{width:`${l}px`,height:`${c}px`,transform:""})}if(a&&(Object.assign(n.style,{width:`${l}px`,height:`${c}px`}),this.viewport={...this.viewport,width:l,height:c}),o&&r&&"function"!=typeof this.options.maxScale){const t=this.option("maxScale");this.options.maxScale=function(){return this.content.origWidth>0&&this.content.fitWidth>0?this.content.origWidth/this.content.fitWidth:t}}this.content={...this.content,origWidth:h,origHeight:u,fitWidth:l,fitHeight:c,width:l,height:c,scale:1,isZoomable:r},this.container={width:m.width,height:m.height},!0!==t&&this.trigger("afterUpdate")}zoomIn(t){this.zoomTo(this.content.scale+(t||this.option("step")))}zoomOut(t){this.zoomTo(this.content.scale-(t||this.option("step")))}toggleZoom(t={}){const e=this.option("maxScale"),i=this.option("baseScale"),n=this.content.scale>i+.5*(e-i)?i:e;this.zoomTo(n,t)}zoomTo(t=this.option("baseScale"),{x:e=null,y:i=null}={}){t=Math.max(Math.min(t,this.option("maxScale")),this.option("minScale"));const n=s(this.content.scale/(this.content.width/this.content.fitWidth),1e7);null===e&&(e=this.content.width*n*.5),null===i&&(i=this.content.height*n*.5);const{deltaX:o,deltaY:r}=this.getZoomDelta(t,e,i);e=this.content.x-o,i=this.content.y-r,this.panTo({x:e,y:i,scale:t,friction:this.option("zoomFriction")})}getZoomDelta(t,e=0,i=0){const n=this.content.fitWidth*this.content.scale,o=this.content.fitHeight*this.content.scale,s=e>0&&n?e/n:0,r=i>0&&o?i/o:0;return{deltaX:(this.content.fitWidth*t-n)*s,deltaY:(this.content.fitHeight*t-o)*r}}panTo({x:t=this.content.x,y:e=this.content.y,scale:i,friction:n=this.option("friction"),ignoreBounds:o=!1}={}){if(i=i||this.content.scale||1,!o){const{boundX:n,boundY:o}=this.getBounds(i);n&&(t=Math.max(Math.min(t,n.to),n.from)),o&&(e=Math.max(Math.min(e,o.to),o.from))}this.friction=n,this.transform={...this.transform,x:t,y:e,scale:i},n?(this.state="panning",this.velocity={x:(1/this.friction-1)*(t-this.content.x),y:(1/this.friction-1)*(e-this.content.y),scale:(1/this.friction-1)*(i-this.content.scale)},this.startAnimation()):this.endAnimation()}startAnimation(){this.rAF?cancelAnimationFrame(this.rAF):this.trigger("startAnimation"),this.rAF=requestAnimationFrame((()=>this.animate()))}animate(){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((()=>this.animate()))}getBounds(t){let 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;const n=this.content.fitWidth*t,o=this.content.fitHeight*t,r=this.viewport.width,a=this.viewport.height;if(n<r){const t=s(.5*(r-n));e.from=t,e.to=t}else e.from=s(r-n);if(o<a){const t=.5*(a-o);i.from=t,i.to=t}else i.from=s(a-o);return{boundX:e,boundY:i}}setEdgeForce(){if("decel"!==this.state)return;const t=this.option("bounceForce"),{boundX:e,boundY:i}=this.getBounds(Math.max(this.transform.scale,this.content.scale));let n,o,s,r;if(e&&(n=this.content.x<e.from,o=this.content.x>e.to),i&&(s=this.content.y<i.from,r=this.content.y>i.to),n||o){let i=((n?e.from:e.to)-this.content.x)*t;const o=this.content.x+(this.velocity.x+i)/this.friction;o>
1=e.from&&o<=e.to&&(i+=this.velocity.x),this.velocity.x=i,this.recalculateTransform()}if(s||r){let e=((s?i.from:i.to)-this.content.y)*t;const n=this.content.y+(e+this.velocity.y)/this.friction;n>=i.from&&n<=i.to&&(e+=this.velocity.y),this.velocity.y=e,this.recalculateTransform()}}setDragResistance(){if("pointerdown"!==this.state)return;const{boundX:t,boundY:e}=this.getBounds(this.dragPosition.scale);let i,n,o,s;if(t&&(i=this.dragPosition.x<t.from,n=this.dragPosition.x>t.to),e&&(o=this.dragPosition.y<e.from,s=this.dragPosition.y>e.to),(i||n)&&(!i||!n)){const e=i?t.from:t.to,n=e-this.dragPosition.x;this.dragPosition.x=e-.3*n}if((o||s)&&(!o||!s)){const t=o?e.from:e.to,i=t-this.dragPosition.y;this.dragPosition.y=t-.3*i}}setDragForce(){"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)}recalculateTransform(){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)}isAnimating(){return!(!this.friction||!(Math.abs(this.velocity.x)>.05||Math.abs(this.velocity.y)>.05||Math.abs(this.velocity.scale)>.05))}setTransform(t){let e,i,n;if(t?(e=s(this.transform.x),i=s(this.transform.y),n=this.transform.scale,this.content={...this.content,x:e,y:i,scale:n}):(e=s(this.content.x),i=s(this.content.y),n=this.content.scale/(this.content.width/this.content.fitWidth),this.content={...this.content,x:e,y:i}),this.trigger("beforeTransform"),e=s(this.content.x),i=s(this.content.y),t&&this.option("zoom")){let t,o;t=s(this.content.fitWidth*n),o=s(this.content.fitHeight*n),this.content.width=t,this.content.height=o,this.transform={...this.transform,width:t,height:o,scale:n},Object.assign(this.$content.style,{width:`${t}px`,height:`${o}px`,maxWidth:"none",maxHeight:"none",transform:`translate3d(${e}px, ${i}px, 0) scale(1)`})}else this.$content.style.transform=`translate3d(${e}px, ${i}px, 0) scale(${n})`;this.trigger("afterTransform")}endAnimation(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")}handleCursor(){const 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))}detachEvents(){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)}destroy(){"destroy"!==this.state&&(this.state="destroy",clearTimeout(this.updateTimer),this.updateTimer=null,cancelAnimationFrame(this.rAF),this.rAF=null,this.detachEvents(),this.detachPlugins(),this.resetDragPosition())}}p.version="4.0.31",p.Plugins={};const g=(t,e)=>{let i=0;return function(...n){const o=(new Date).getTime();if(!(o-i<e))return i=o,t(...n)}};class m{constructor(t){this.$container=null,this.$prev=null,this.$next=null,this.carousel=t,this.onRefresh=this.onRefresh.bind(this)}option(t){return this.carousel.option(`Navigation.${t}`)}createButton(t){const e=document.createElement("button");e.setAttribute("title",this.carousel.localize(`{{${t.toUpperCase()}}}`));const i=this.option("classNames.button")+" "+this.option(`classNames.${t}`);return e.classList.add(...i.split(" ")),e.setAttribute("tabindex","0"),e.innerHTML=this.carousel.localize(this.option(`${t}Tpl`)),e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),this.carousel["slide"+("next"===t?"Next":"Prev")]()})),e}build(){this.$container||(this.$container=document.createElement("div"),this.$container.classList.add(...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))}onRefresh(){const 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","")))}cleanup(){this.$prev&&this.$prev.remove(),this.$prev=null,this.$next&&this.$next.remove(),this.$next=null,this.$container&&this.$container.remove(),this.$container=null}attach(){this.carousel.on("refresh change",this.onRefresh)}detach(){this.carousel.off("refresh change",this.onRefresh),this.cleanup()}}
1m.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"}};class v{constructor(t){this.carousel=t,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)}addAsTargetFor(t){this.target=this.carousel,this.nav=t,this.attachEvents()}addAsNavFor(t){this.target=t,this.nav=this.carousel,this.attachEvents()}attachEvents(){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)}onNavReady(){this.onTargetChange(!0)}onNavClick(t,e,i){const n=i.target.closest(".carousel__slide");if(!n)return;i.stopPropagation();const o=parseInt(n.dataset.index,10),s=this.target.findPageForSlide(o);this.target.page!==s&&this.target.slideTo(s,{friction:this.friction}),this.markSelectedSlide(o)}onNavCreateSlide(t,e){e.index===this.selectedIndex&&this.markSelectedSlide(e.index)}onTargetChange(){const t=this.target.pages[this.target.page].indexes[0],e=this.nav.findPageForSlide(t);this.nav.slideTo(e),this.markSelectedSlide(t)}markSelectedSlide(t){this.selectedIndex=t,[...this.nav.slides].filter((t=>t.$el&&t.$el.classList.remove("is-nav-selected")));const e=this.nav.slides[t];e&&e.$el&&e.$el.classList.add("is-nav-selected")}attach(t){const e=t.options.Sync;(e.target||e.nav)&&(e.target?this.addAsNavFor(e.target):e.nav&&this.addAsTargetFor(e.nav),this.friction=e.friction)}detach(){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))}}v.defaults={friction:.92};const y={Navigation:m,Dots:class{constructor(t){this.carousel=t,this.$list=null,this.events={change:this.onChange.bind(this),refresh:this.onRefresh.bind(this)}}buildList(){if(this.carousel.pages.length<this.carousel.option("Dots.minSlideCount"))return;const t=document.createElement("ol");return t.classList.add("carousel__dots"),t.addEventListener("click",(t=>{if(!("page"in t.target.dataset))return;t.preventDefault(),t.stopPropagation();const e=parseInt(t.target.dataset.page,10),i=this.carousel;e!==i.page&&(i.pages.length<3&&i.option("infinite")?i[0==e?"slidePrev":"slideNext"]():i.slideTo(e))})),this.$list=t,this.carousel.$container.appendChild(t),this.carousel.$container.classList.add("has-dots"),t}removeList(){this.$list&&(this.$list.parentNode.removeChild(this.$list),this.$list=null),this.carousel.$container.classList.remove("has-dots")}rebuildDots(){let t=this.$list;const e=!!t,i=this.carousel.pages.length;if(i<2)return void(e&&this.removeList());e||(t=this.buildList());const n=this.$list.children.length;if(n>i)for(let t=i;t<n;t++)this.$list.removeChild(this.$list.lastChild);else{for(let t=n;t<i;t++){const e=document.createElement("li");e.classList.add("carousel__dot"),e.dataset.page=t,e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.setAttribute("title",this.carousel.localize("{{GOTO}}",[["%d",t+1]])),e.addEventListener("keydown",(t=>{const i=t.code;let n;"Enter"===i||"NumpadEnter"===i?n=e:"ArrowRight"===i?n=e.nextSibling:"ArrowLeft"===i&&(n=e.previousSibling),n&&n.click()})),this.$list.appendChild(e)}this.setActiveDot()}}setActiveDot(){if(!this.$list)return;this.$list.childNodes.forEach((t=>{t.classList.remove("is-selected")}));const t=this.$list.childNodes[this.carousel.page];t&&t.classList.add("is-selected")}onChange(){this.setActiveDot()}onRefresh(){this.rebuildDots()}attach(){this.carousel.on(this.events)}detach(){this.removeList(),this.carousel.off(this.events),this.carousel=null}},Sync:v},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"}};class w extends u{constructor(t,e={}){if(super(e=o(!0,{},b,e)),this.state="init",this.$container=t,!(this.$container instanceof HTMLElement))throw new Error("No root element provided");this.slideNext=g(this.slideNext.bind(this),250),this.slidePrev=g(this.slidePrev.bind(this),250),this.init(),t.__Carousel=this}init(){this.pages=[],this.page=this.pageIndex=null,this.prevPage=this.prevPageIndex=null,this.attachPlugins(w.Plugins),this.trigger("init"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.$track&&this.pages.length&&(this.$track.style.transform=`translate3d(${-1*this.pages[this.page].left}px, 0px, 0) scale(1)`),this.manageSlideVisiblity(),this.initPanzoom(),this.state="ready",this.trigger("ready")}initLayout(){const t=this.option("prefix"),e=this.option("classNames");this.$viewport=this.option("viewport")||this.$container.querySelector(`.${t}${e.viewport}`),this.$viewport||(this.$viewport=document.createElement("div"),this.$viewport.classList.add(...(t+e.viewport).split(" ")),this.$viewport.append(...this.$container.childNodes),this.$container.appendChild(this.$viewport)),this.$track=this.option("track")||this.$container.querySelector(`.${t}${e.track}`),this.$track||(this.$track=document.createElement("div"),this.$track.classList.add(...(t+e.track).split(" ")),this.$track.append(...this.$viewport.childNodes),this.$viewport.appendChild(this.$track))}initSlides(){this.slides=[],this.$viewport.querySelectorAll(`.${this.option("prefix")}${this.option("classNames.slide")}`).forEach((t=>
1{const e={$el:t,isDom:!0};this.slides.push(e),this.trigger("createSlide",e,this.slides.length)})),Array.isArray(this.options.slides)&&(this.slides=o(!0,[...this.slides],this.options.slides))}updateMetrics(){let t,e=0,i=[];this.slides.forEach(((n,o)=>{const s=n.$el,r=n.isDom||!t?this.getSlideMetrics(s):t;n.index=o,n.width=r,n.left=e,t=r,e+=r,i.push(o)}));let n=Math.max(this.$track.offsetWidth,s(this.$track.getBoundingClientRect().width)),o=getComputedStyle(this.$track);n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),this.contentWidth=e,this.viewportWidth=n;const r=[],a=this.option("slidesPerPage");if(Number.isInteger(a)&&e>n)for(let t=0;t<this.slides.length;t+=a)r.push({indexes:i.slice(t,t+a),slides:this.slides.slice(t,t+a)});else{let t=0,e=0;for(let i=0;i<this.slides.length;i+=1){let o=this.slides[i];(!r.length||e+o.width>n)&&(r.push({indexes:[],slides:[]}),t=r.length-1,e=0),e+=o.width,r[t].indexes.push(i),r[t].slides.push(o)}}const l=this.option("center"),c=this.option("fill");r.forEach(((t,i)=>{t.index=i,t.width=t.slides.reduce(((t,e)=>t+e.width),0),t.left=t.slides[0].left,l&&(t.left+=.5*(n-t.width)*-1),c&&!this.option("infiniteX",this.option("infinite"))&&e>n&&(t.left=Math.max(t.left,0),t.left=Math.min(t.left,e-n))}));const h=[];let d;r.forEach((t=>{const e={...t};d&&e.left===d.left?(d.width+=e.width,d.slides=[...d.slides,...e.slides],d.indexes=[...d.indexes,...e.indexes]):(e.index=h.length,d=e,h.push(e))})),this.pages=h;let u=this.page;if(null===u){const t=this.option("initialSlide");u=null!==t?this.findPageForSlide(t):parseInt(this.option("initialPage",0),10)||0,h[u]||(u=h.length&&u>h.length?h[h.length-1].index:0),this.page=u,this.pageIndex=u}this.updatePanzoom(),this.trigger("refresh")}getSlideMetrics(t){if(!t){const e=this.slides[0];(t=document.createElement("div")).dataset.isTestEl=1,t.style.visibility="hidden",t.classList.add(...(this.option("prefix")+this.option("classNames.slide")).split(" ")),e.customClass&&t.classList.add(...e.customClass.split(" ")),this.$track.prepend(t)}let e=Math.max(t.offsetWidth,s(t.getBoundingClientRect().width));const i=t.currentStyle||window.getComputedStyle(t);return e=e+(parseFloat(i.marginLeft)||0)+(parseFloat(i.marginRight)||0),t.dataset.isTestEl&&t.remove(),e}findPageForSlide(t){t=parseInt(t,10)||0;const e=this.pages.find((e=>e.indexes.indexOf(t)>-1));return e?e.index:null}slideNext(){this.slideTo(this.pageIndex+1)}slidePrev(){this.slideTo(this.pageIndex-1)}slideTo(t,e={}){const{x:i=-1*this.setPage(t,!0),y:n=0,friction:o=this.option("friction")}=e;this.Panzoom.content.x===i&&!this.Panzoom.velocity.x&&o||(this.Panzoom.panTo({x:i,y:n,friction:o,ignoreBounds:!0}),"ready"===this.state&&"ready"===this.Panzoom.state&&this.trigger("settle"))}initPanzoom(){this.Panzoom&&this.Panzoom.destroy();const t=o(!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:()=>this.option("textSelection",!1),panOnlyZoomed:function(){return this.content.width<=this.viewport.width}},this.option("Panzoom"));this.Panzoom=new p(this.$container,t),this.Panzoom.on({"*":(t,...e)=>this.trigger(`Panzoom.${t}`,...e),afterUpdate:()=>{this.updatePage()},beforeTransform:this.onBeforeTransform.bind(this),touchEnd:this.onTouchEnd.bind(this),endAnimation:()=>{this.trigger("settle")}}),this.updateMetrics(),this.manageSlideVisiblity()}updatePanzoom(){this.Panzoom&&(this.Panzoom.content={...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())}manageSlideVisiblity(){const t=this.contentWidth,e=this.viewportWidth;let i=this.Panzoom?-1*this.Panzoom.content.x:this.pages.length?this.pages[this.page].left:0;const n=this.option("preload"),o=this.option("infiniteX",this.option("infinite")),s=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-left")),r=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-right"));
1this.slides.forEach((a=>{let l,c,h=0;l=i-s,c=i+e+r,l-=n*(e+s+r),c+=n*(e+s+r);const d=a.left+a.width>l&&a.left<c;l=i+t-s,c=i+t+e+r,l-=n*(e+s+r);const u=o&&a.left+a.width>l&&a.left<c;l=i-t-s,c=i-t+e+r,l-=n*(e+s+r);const f=o&&a.left+a.width>l&&a.left<c;u||d||f?(this.createSlideEl(a),d&&(h=0),u&&(h=-1),f&&(h=1),a.left+a.width>i&&a.left<=i+e+r&&(h=0)):this.removeSlideEl(a),a.hasDiff=h}));let a=0,l=0;this.slides.forEach(((e,i)=>{let n=0;e.$el?(i!==a||e.hasDiff?n=l+e.hasDiff*t:l=0,e.$el.style.left=Math.abs(n)>.1?`${l+e.hasDiff*t}px`:"",a++):l+=e.width})),this.markSelectedSlides()}createSlideEl(t){if(!t)return;if(t.$el){let e=t.$el.dataset.index;if(!e||parseInt(e,10)!==t.index){let e;t.$el.dataset.index=t.index,t.$el.querySelectorAll("[data-lazy-srcset]").forEach((t=>{t.srcset=t.dataset.lazySrcset})),t.$el.querySelectorAll("[data-lazy-src]").forEach((t=>{let e=t.dataset.lazySrc;t instanceof HTMLImageElement?t.src=e:t.style.backgroundImage=`url('${e}')`})),(e=t.$el.dataset.lazySrc)&&(t.$el.style.backgroundImage=`url('${e}')`),t.state="ready"}return}const e=document.createElement("div");e.dataset.index=t.index,e.classList.add(...(this.option("prefix")+this.option("classNames.slide")).split(" ")),t.customClass&&e.classList.add(...t.customClass.split(" ")),t.html&&(e.innerHTML=t.html);const i=[];this.slides.forEach(((t,e)=>{t.$el&&i.push(e)}));const n=t.index;let o=null;if(i.length){let t=i.reduce(((t,e)=>Math.abs(e-n)<Math.abs(t-n)?e:t));o=this.slides[t]}return this.$track.insertBefore(e,o&&o.$el?o.index<t.index?o.$el.nextSibling:o.$el:null),t.$el=e,this.trigger("createSlide",t,n),t}removeSlideEl(t){t.$el&&!t.isDom&&(this.trigger("removeSlide",t),t.$el.remove(),t.$el=null)}markSelectedSlides(){const t=this.option("classNames.slideSelected"),e="aria-hidden";this.slides.forEach(((i,n)=>{const o=i.$el;if(!o)return;const s=this.pages[this.page];s&&s.indexes&&s.indexes.indexOf(n)>-1?(t&&!o.classList.contains(t)&&(o.classList.add(t),this.trigger("selectSlide",i)),o.removeAttribute(e)):(t&&o.classList.contains(t)&&(o.classList.remove(t),this.trigger("unselectSlide",i)),o.setAttribute(e,!0))}))}updatePage(){this.updateMetrics(),this.slideTo(this.page,{friction:0})}onBeforeTransform(){this.option("infiniteX",this.option("infinite"))&&this.manageInfiniteTrack(),this.manageSlideVisiblity()}manageInfiniteTrack(){const t=this.contentWidth,e=this.viewportWidth;if(!this.option("infiniteX",this.option("infinite"))||this.pages.length<2||t<e)return;const i=this.Panzoom;let 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}onTouchEnd(t,e){const 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){const[,e]=this.getPageFromPosition(-1*t.transform.x);this.setPage(e)}else this.slideToClosest()}slideToClosest(t={}){let[,e]=this.getPageFromPosition(-1*this.Panzoom.content.x);this.slideTo(e,t)}getPageFromPosition(t){const e=this.pages.length;this.option("center")&&(t+=.5*this.viewportWidth);const i=Math.floor(t/this.contentWidth);t-=i*this.contentWidth;let n=this.slides.find((e=>e.left<=t&&e.left+e.width>t));if(n){let t=this.findPageForSlide(n.index);return[t,t+i*e]}return[0,0]}setPage(t,e){let i=0,n=parseInt(t,10)||0;const o=this.page,s=this.pageIndex,r=this.pages.length,a=this.contentWidth,l=this.viewportWidth;if(t=(n%r+r)%r,this.option("infiniteX",this.option("infinite"))&&a>l){const o=Math.floor(n/r)||0,s=a;if(i=this.pages[t].left+o*s,!0===e&&r>2){let t=-1*this.Panzoom.content.x;const e=i-s,o=i+s,a=Math.abs(t-i),l=Math.abs(t-e),c=Math.abs(t-o);c<a&&c<=l?(i=o,n+=r):l<a&&l<c&&(i=e,n-=r)}}else t=n=Math.max(0,Math.min(n,r-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=s,this.trigger("change",t,o)),i}
1destroy(){this.state="destroy",this.slides.forEach((t=>{this.removeSlideEl(t)})),this.slides=[],this.Panzoom.destroy(),this.detachPlugins()}}w.version="4.0.31",w.Plugins=y;const x=!("undefined"==typeof window||!window.document||!window.document.createElement);let S=null;const E=["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])'],C=t=>{if(t&&x){null===S&&document.createElement("div").focus({get preventScroll(){return S=!0,!1}});try{if(t.setActive)t.setActive();else if(S)t.focus({preventScroll:!0});else{const 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){}}};class _{constructor(t){this.fancybox=t,this.$container=null,this.state="init";for(const t of["onPrepare","onClosing","onKeydown"])this[t]=this[t].bind(this);this.events={prepare:this.onPrepare,closing:this.onClosing,keydown:this.onKeydown}}onPrepare(){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()}onClosing(){this.Carousel&&this.Carousel.Panzoom.detachEvents()}onKeydown(t,e){e===t.option("Thumbs.key")&&this.toggle()}build(){if(this.$container)return;const t=document.createElement("div");t.classList.add("fancybox__thumbs"),this.fancybox.$carousel.parentNode.insertBefore(t,this.fancybox.$carousel.nextSibling),this.Carousel=new w(t,o(!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},slides:this.getSlides()})),this.Carousel.Panzoom.on("wheel",((t,e)=>{e.preventDefault(),this.fancybox[e.deltaY<0?"prev":"next"]()})),this.$container=t,this.state="visible"}getSlides(){const t=[];for(const e of this.fancybox.items){const i=e.thumb;i&&t.push({html:this.fancybox.option("Thumbs.tpl").replace(/\{\{src\}\}/gi,i),customClass:`has-thumb has-${e.type||"image"}`})}return t}toggle(){"visible"===this.state?this.hide():"hidden"===this.state?this.show():this.build()}show(){"hidden"===this.state&&(this.$container.style.display="",this.Carousel.Panzoom.attachEvents(),this.state="visible")}hide(){"visible"===this.state&&(this.Carousel.Panzoom.detachEvents(),this.$container.style.display="none",this.state="hidden")}cleanup(){this.Carousel&&(this.Carousel.destroy(),this.Carousel=null),this.$container&&(this.$container.remove(),this.$container=null),this.state="init"}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events),this.cleanup()}}_.defaults={minSlideCount:2,minScreenHeight:500,autoStart:!0,key:"t",Carousel:{},tpl:'<div class="fancybox__thumb" style="background-image:url(\'{{src}}\')"></div>'};const T=(t,e)=>{const i=new URL(t),n=new URLSearchParams(i.search);let o=new URLSearchParams;for(const[t,i]of[...n,...Object.entries(e)])"t"===t?o.set("start",parseInt(i)):o.set(t,i);o=o.toString();let s=t.match(/#t=((.*)?\d+s)/);return s&&(o+=`#t=${s[1]}`),o},L={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:""}};class ${constructor(t){this.fancybox=t;for(const t of["onInit","onReady","onCreateSlide","onRemoveSlide","onSelectSlide","onUnselectSlide","onRefresh","onMessage"])this[t]=this[t].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}}onInit(){for(const t of this.fancybox.items)this.processType(t)}processType(t){if(t.html)return t.src=t.html,t.type="html",void delete t.html;const e=t.src||"";let 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)){const o=T(e,this.fancybox.option("Html.youtube")),s=encodeURIComponent(n[1]);t.videoId=s,t.src=`https://www.youtube-nocookie.com/embed/${s}?${o}`,t.thumb=t.thumb||`https://i.ytimg.com/vi/${s}/mqdefault.jpg`,t.vendor="youtube",i="video"}else if(n=e.match(/^.+vimeo.com\/(?:\/)?([\d]+)(.*)?/)){const o=T(e,this.fancybox.option("Html.vimeo")),s=encodeURIComponent(n[1]);t.videoId=s,t.src=`https://player.vimeo.com/video/${s}?${o}`,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.${n[1]}/?ll=${(n[2]?n[2]+"&z="+Math.floor(n[3])+(n[4]?n[4].replace(/^\//,"&"):""):n[4]+"").replace(/\?/,"&")}&output=${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.${n[1]}/maps?q=${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=o({},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||L.video.ratio)}}
1onReady(){this.fancybox.Carousel.slides.forEach((t=>{t.$el&&(this.setContent(t),t.index===this.fancybox.getSlide().index&&this.playVideo(t))}))}onCreateSlide(t,e,i){"ready"===this.fancybox.state&&this.setContent(i)}loadInlineContent(t){let e;if(t.src instanceof HTMLElement)e=t.src;else if("string"==typeof t.src){const 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){e=e.cloneNode(!0);let i=e.getAttribute("id");i=i?`${i}--clone`:`clone-${this.fancybox.id}-${t.index}`,e.setAttribute("id",i)}else{const t=document.createElement("div");t.classList.add("fancybox-placeholder"),e.parentNode.insertBefore(t,e),e.$placeHolder=t}this.fancybox.setContent(t,e)}else this.fancybox.setError(t,"{{ELEMENT_NOT_FOUND}}")}loadAjaxContent(t){const 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}}"))};const 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}loadIframeContent(t){const e=this.fancybox,i=document.createElement("iframe");if(i.className="fancybox__iframe",i.setAttribute("id",`fancybox__iframe_${e.id}_${t.index}`),i.setAttribute("allow","autoplay; fullscreen"),i.setAttribute("scrolling","auto"),t.$iframe=i,"iframe"!==t.type||!1===t.preload)return i.setAttribute("src",t.src),this.fancybox.setContent(t,i),void this.resizeIframe(t);e.showLoading(t);const n=document.createElement("div");n.style.visibility="hidden",this.fancybox.setContent(t,n),n.appendChild(i),i.onerror=()=>{e.setError(t,"{{IFRAME_ERROR}}")},i.onload=()=>{e.hideLoading(t);let n=!1;i.isReady||(i.isReady=!0,n=!0),i.src.length&&(i.parentNode.style.visibility="",this.resizeIframe(t),n&&e.revealContent(t))},i.setAttribute("src",t.src)}setAspectRatio(t){const e=t.$content,i=t.ratio;if(!e)return;let n=t._width,o=t._height;if(i||n&&o){Object.assign(e.style,{width:n&&o?"100%":"",height:n&&o?"100%":"",maxWidth:"",maxHeight:""});let t=e.offsetWidth,s=e.offsetHeight;if(n=n||t,o=o||s,n>t||o>s){let e=Math.min(t/n,s/o);n*=e,o*=e}Math.abs(n/o-i)>.01&&(i<n/o?n=o*i:o=n/i),Object.assign(e.style,{width:`${n}px`,height:`${o}px`})}}resizeIframe(t){const e=t.$iframe;if(!e)return;let i=t._width||0,n=t._height||0;i&&n&&(t.autoSize=!1);const o=e.parentNode,s=o&&o.style;if(!1!==t.preload&&!1!==t.autoSize&&s)try{const t=window.getComputedStyle(o),r=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),a=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),l=e.contentWindow.document,c=l.getElementsByTagName("html")[0],h=l.body;s.width="",h.style.overflow="hidden",i=i||c.scrollWidth+r,s.width=`${i}px`,h.style.overflow="",s.flex="0 0 auto",s.height=`${h.scrollHeight}px`,n=c.scrollHeight+a}catch(t){}if(i||n){const t={flex:"0 1 auto"};i&&(t.width=`${i}px`),n&&(t.height=`${n}px`),Object.assign(s,t)}}onRefresh(t,e){e.slides.forEach((t=>{t.$el&&(t.$iframe&&this.resizeIframe(t),t.ratio&&this.setAspectRatio(t))}))}setContent(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)}}onSelectSlide(t,e,i){"ready"===t.state&&this.playVideo(i)}playVideo(t){if("html5video"===t.type&&t.video.autoplay)try{const e=t.$el.querySelector("video");if(e){const t=e.play();void 0!==t&&t.then((()=>{})).catch((t=>{e.muted=!0,e.play()}))}}catch(t){}if("video"!==t.type||!t.$iframe||!t.$iframe.contentWindow)return;const e=()=>{if("done"===t.state&&t.$iframe&&t.$iframe.contentWindow){let e;if(t.$iframe.isReady)return t.video&&t.video.autoplay&&(e="youtube"==t.vendor?{event:"command",func:"playVideo"}:{method:"play",value:"true"}),void(e&&t.$iframe.contentWindow.postMessage(JSON.stringify(e),"*"));"youtube"===t.vendor&&(e={event:"listening",id:t.$iframe.getAttribute("id")},t.$iframe.contentWindow.postMessage(JSON.stringify(e),"*"))}t.poller=setTimeout(e,250)};e()}
1onUnselectSlide(t,e,i){if("html5video"===i.type){try{i.$el.querySelector("video").pause()}catch(t){}return}let 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)}onRemoveSlide(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);const 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);const o=n&&n.$placeHolder;o&&(o.parentNode.insertBefore(n,o),o.remove(),n.$placeHolder=null)}onMessage(t){try{let e=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===e.event)for(let e of document.getElementsByClassName("fancybox__iframe"))e.contentWindow===t.source&&(e.isReady=1)}else"https://www.youtube-nocookie.com"===t.origin&&"onReady"===e.event&&(document.getElementById(e.id).isReady=1)}catch(t){}}attach(){this.fancybox.on(this.events),window.addEventListener("message",this.onMessage,!1)}detach(){this.fancybox.off(this.events),window.removeEventListener("message",this.onMessage,!1)}}$.defaults=L;class P{constructor(t){this.fancybox=t;for(const t of["onReady","onClosing","onDone","onPageChange","onCreateSlide","onRemoveSlide","onImageStatusChange"])this[t]=this[t].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}}onReady(){this.fancybox.Carousel.slides.forEach((t=>{t.$el&&this.setContent(t)}))}onDone(t,e){this.handleCursor(e)}onClosing(t){clearTimeout(this.clickTimer),this.clickTimer=null,t.Carousel.slides.forEach((t=>{t.$image&&(t.state="destroy"),t.Panzoom&&t.Panzoom.detachEvents()})),"closing"===this.fancybox.state&&this.canZoom(t.getSlide())&&this.zoomOut()}onCreateSlide(t,e,i){"ready"===this.fancybox.state&&this.setContent(i)}onRemoveSlide(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}setContent(t){if(t.isDom||t.html||t.type&&"image"!==t.type)return;if(t.$image)return;t.type="image",t.state="loading";const e=document.createElement("div");e.style.visibility="hidden";const i=document.createElement("img");i.addEventListener("load",(e=>{e.stopImmediatePropagation(),this.onImageStatusChange(t)})),i.addEventListener("error",(()=>{this.onImageStatusChange(t)})),i.src=t.src,i.alt="",i.draggable=!1,i.classList.add("fancybox__image"),t.srcset&&i.setAttribute("srcset",t.srcset),t.sizes&&i.setAttribute("sizes",t.sizes),t.$image=i;const n=this.fancybox.option("Image.wrap");if(n){const o=document.createElement("div");o.classList.add("string"==typeof n?n:"fancybox__image-wrap"),o.appendChild(i),e.appendChild(o),t.$wrap=o}else e.appendChild(i);t.$el.dataset.imageFit=this.fancybox.option("Image.fit"),this.fancybox.setContent(t,e),i.complete||i.error?this.onImageStatusChange(t):this.fancybox.showLoading(t)}onImageStatusChange(t){const e=t.$image;e&&"loading"===t.state&&(e.complete&&e.naturalWidth&&e.naturalHeight?(this.fancybox.hideLoading(t),"contain"===this.fancybox.option("Image.fit")&&this.initSlidePanzoom(t),t.$el.addEventListener("wheel",(e=>this.onWheel(t,e)),{passive:!1}),t.$content.addEventListener("click",(e=>this.onClick(t,e)),{passive:!1}),this.revealContent(t)):this.fancybox.setError(t,"{{IMAGE_ERROR}}"))}initSlidePanzoom(t){t.Panzoom||(t.Panzoom=new p(t.$el,o(!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",(()=>{this.fancybox.trigger("Image.startAnimation",t)})),t.Panzoom.on("endAnimation",(()=>{"zoomIn"===t.state&&this.fancybox.done(t),this.handleCursor(t),this.fancybox.trigger("Image.endAnimation",t)})),t.Panzoom.on("afterUpdate",(()=>{this.handleCursor(t),this.fancybox.trigger("Image.afterUpdate",t)})))}revealContent(t){null===this.fancybox.Carousel.prevPage&&t.index===this.fancybox.options.startIndex&&this.canZoom(t)?this.zoomIn():this.fancybox.revealContent(t)}getZoomInfo(t){const e=t.$thumb.getBoundingClientRect(),i=e.width,n=e.he
1ight,o=t.$content.getBoundingClientRect(),s=o.width,r=o.height,a=o.top-e.top,l=o.left-e.left;let c=this.fancybox.option("Image.zoomOpacity");return"auto"===c&&(c=Math.abs(i/n-s/r)>.1),{top:a,left:l,scale:s&&i?i/s:1,opacity:c}}canZoom(t){const 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;const n=t.$thumb;if(!n||"loading"===t.state)return!1;i.classList.add("fancybox__no-click");const o=n.getBoundingClientRect();let s;if(this.fancybox.option("Image.ignoreCoveredThumbnail")){const t=document.elementFromPoint(o.left+1,o.top+1)===n,e=document.elementFromPoint(o.right-1,o.bottom-1)===n;s=t&&e}else s=document.elementFromPoint(o.left+.5*o.width,o.top+.5*o.height)===n;return i.classList.remove("fancybox__no-click"),s}zoomIn(){const t=this.fancybox,e=t.getSlide(),i=e.Panzoom,{top:n,left:o,scale:s,opacity:r}=this.getZoomInfo(e);t.trigger("reveal",e),i.panTo({x:-1*o,y:-1*n,scale:s,friction:0,ignoreBounds:!0}),e.$content.style.visibility="",e.state="zoomIn",!0===r&&i.on("afterTransform",(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")})}zoomOut(){const t=this.fancybox,e=t.getSlide(),i=e.Panzoom;if(!i)return;e.state="zoomOut",t.state="customClosing",e.$caption&&(e.$caption.style.visibility="hidden");let n=this.fancybox.option("Image.zoomFriction");const o=t=>{const{top:o,left:s,scale:r,opacity:a}=this.getZoomInfo(e);t||a||(n*=.82),i.panTo({x:-1*s,y:-1*o,scale:r,friction:n,ignoreBounds:!0}),n*=.98};window.addEventListener("scroll",o),i.once("endAnimation",(()=>{window.removeEventListener("scroll",o),t.destroy()})),o()}handleCursor(t){if("image"!==t.type||!t.$el)return;const e=t.Panzoom,i=this.fancybox.option("Image.click",!1,t),n=this.fancybox.option("Image.touch"),o=t.$el.classList,s=this.fancybox.option("Image.canZoomInClass"),r=this.fancybox.option("Image.canZoomOutClass");o.remove(r),o.remove(s),e&&"toggleZoom"===i?e&&1===e.content.scale&&e.option("maxScale")-e.content.scale>.01?o.add(s):e.content.scale>1&&!n&&o.add(r):"close"===i&&o.add(r)}onWheel(t,e){if("ready"===this.fancybox.state&&!1!==this.fancybox.trigger("Image.wheel",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"]()}}onClick(t,e){if("ready"!==this.fancybox.state)return;const i=t.Panzoom;if(i&&(i.dragPosition.midPoint||0!==i.dragOffset.x||0!==i.dragOffset.y||1!==i.dragOffset.scale))return;if(this.fancybox.Carousel.Panzoom.lockAxis)return!1;const n=i=>{switch(i){case"toggleZoom":e.stopPropagation(),t.Panzoom&&t.Panzoom.zoomWithClick(e);break;case"close":this.fancybox.close();break;case"next":e.stopPropagation(),this.fancybox.next()}},o=this.fancybox.option("Image.click"),s=this.fancybox.option("Image.doubleClick");s?this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null,n(s)):this.clickTimer=setTimeout((()=>{this.clickTimer=null,n(o)}),300):n(o)}onPageChange(t,e){const i=t.getSlide();e.slides.forEach((t=>{t.Panzoom&&"done"===t.state&&t.index!==i.index&&t.Panzoom.panTo({x:0,y:0,scale:1,friction:.8})}))}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events)}}P.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}};class I{constructor(t){this.fancybox=t;for(const t of["onChange","onClosing"])this[t]=this[t].bind(this);this.events={initCarousel:this.onChange,"Carousel.change":this.onChange,closing:this.onClosing},this.hasCreatedHistory=!1,this.origHash="",this.timer=null}onChange(t){const e=t.Carousel;this.timer&&clearTimeout(this.timer);const i=null===e.prevPage,n=t.getSlide(),o=new URL(document.URL).hash;let s=!1;if(n.slug)s="#"+n.slug;else{const i=n.$trigger&&n.$trigger.dataset,o=t.option("slug")||i&&i.fancybox;o&&o.length&&"true"!==o&&(s="#"+o+(e.slides.length>1?"-"+(n.index+1):""))}i&&(this.origHash=o!==s?o:""),s&&o!==s&&(this.timer=setTimeout((()=>{try{window.history[i?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+s),i&&(this.hasCreatedHistory=!0)}catch(t){}}),300))}onClosing(){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){}}attach(t){t.on(this.events)}detach(t){t.off(this.events)}static startFromUrl(){const t=I.Fancybox;if(!t||t.getInstance()||!1===t.defaults.Hash)return;const{hash:e,slug:i,index:n}=I.getParsedURL();if(!i)return;let o=document.querySelector(`[data-slug="${e}"]`);if(o&&o.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),t.getInstance())return;const s=document.querySelectorAll(`[data-fancybox="${i}"]`);s.length&&(null===n&&1===s.length?o=s[0]:n&&(o=s[n-1]),o&&o.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}static onHashChange(){const{slug:t,index:e}=I.getParsedURL(),i=I.Fancybox,n=i&&i.getInstance();if(n&&n.plugins.Hash){if(t){const i=n.Carousel;if(t===n.option("slug"))return i.slideTo(e-1);for(let e of i.slides)if(e.slug&&e.slug===t)return i.slideTo(e.index);
1const o=n.getSlide(),s=o.$trigger&&o.$trigger.dataset;if(s&&s.fancybox===t)return i.slideTo(e-1)}n.plugins.Hash.hasSilentClose=!0,n.close()}I.startFromUrl()}static create(t){function e(){window.addEventListener("hashchange",I.onHashChange,!1),I.startFromUrl()}I.Fancybox=t,x&&window.requestAnimationFrame((()=>{/complete|interactive|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e)}))}static destroy(){window.removeEventListener("hashchange",I.onHashChange,!1)}static getParsedURL(){const 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}}}const k={pageXOffset:0,pageYOffset:0,element:()=>document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,activate(t){k.pageXOffset=window.pageXOffset,k.pageYOffset=window.pageYOffset,t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},deactivate(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}};class A{constructor(t){this.fancybox=t,this.active=!1,this.handleVisibilityChange=this.handleVisibilityChange.bind(this)}isActive(){return this.active}setTimer(){if(!this.active||this.timer)return;const t=this.fancybox.option("slideshow.delay",3e3);this.timer=setTimeout((()=>{this.timer=null,this.fancybox.option("infinite")||this.fancybox.getSlide().index!==this.fancybox.Carousel.slides.length-1?this.fancybox.next():this.fancybox.jumpTo(0,{friction:0})}),t);let e=this.$progress;e||(e=document.createElement("div"),e.classList.add("fancybox__progress"),this.fancybox.$carousel.parentNode.insertBefore(e,this.fancybox.$carousel),this.$progress=e,e.offsetHeight),e.style.transitionDuration=`${t}ms`,e.style.transform="scaleX(1)"}clearTimer(){clearTimeout(this.timer),this.timer=null,this.$progress&&(this.$progress.style.transitionDuration="",this.$progress.style.transform="",this.$progress.offsetHeight)}activate(){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))}handleVisibilityChange(){this.deactivate()}deactivate(){this.active=!1,this.clearTimer(),this.fancybox.$container.classList.remove("has-slideshow"),document.removeEventListener("visibilitychange",this.handleVisibilityChange,!1)}toggle(){this.active?this.deactivate():this.fancybox.Carousel.slides.length>1&&this.activate()}}const z={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;/&nbsp;<span data-fancybox-count=""></span>',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(),k.element()?k.deactivate():k.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><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();const e=this.fancybox.getSlide().Panzoom;e&&e.toggleZoom()}},download:{type:"link",label:"DOWNLOAD",class:"fancybox__button--download",html:'<svg viewBox="0 0 24 24">
1<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();const 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}}}};class O{constructor(t){this.fancybox=t,this.$container=null,this.state="init";for(const t of["onInit","onPrepare","onDone","onKeydown","onClosing","onChange","onSettle","onRefresh"])this[t]=this[t].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":()=>this.onRefresh(),"Image.startAnimation":(t,e)=>this.onRefresh(e),"Image.afterUpdate":(t,e)=>this.onRefresh(e)}}onInit(){if(this.fancybox.option("Toolbar.autoEnable")){let t=!1;for(const e of this.fancybox.items)if("image"===e.type){t=!0;break}if(!t)return void(this.state="disabled")}for(const t of this.fancybox.option("Toolbar.display"))if("close"===(n(t)?t.id:t)){this.fancybox.options.closeButton=!1;break}}onPrepare(){const t=this.fancybox;if("init"===this.state&&(this.build(),this.update(),this.Slideshow=new A(t),!t.Carousel.prevPage&&(t.option("slideshow.autoStart")&&this.Slideshow.activate(),t.option("fullscreen.autoStart")&&!k.element())))try{k.activate(t.$container)}catch(t){}}onFsChange(){window.scrollTo(k.pageXOffset,k.pageYOffset)}onSettle(){const 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())}onChange(){this.update(),this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer()}onDone(t,e){const 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()))}onRefresh(t){t&&t.index!==this.fancybox.getSlide().index||(this.update(),!this.Slideshow||!this.Slideshow.isActive()||t&&"done"!==t.state||this.Slideshow.deactivate())}onKeydown(t,e,i){" "===e&&this.Slideshow&&(this.Slideshow.toggle(),i.preventDefault())}onClosing(){this.Slideshow&&this.Slideshow.deactivate(),document.removeEventListener("fullscreenchange",this.onFsChange)}createElement(t){let e;"div"===t.type?e=document.createElement("div"):(e=document.createElement("link"===t.type?"a":"button"),e.classList.add("carousel__button")),e.innerHTML=t.html,e.setAttribute("tabindex",t.tabindex||0),t.class&&e.classList.add(...t.class.split(" "));for(const i in t.attr)e.setAttribute(i,t.attr[i]);t.label&&e.setAttribute("title",this.fancybox.localize(`{{${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","");const i=e.querySelector("svg");return i&&(i.setAttribute("role","img"),i.setAttribute("tabindex","-1"),i.setAttribute("xmlns","http://www.w3.org/2000/svg")),e}build(){this.cleanup();const t=this.fancybox.option("Toolbar.items"),e=[{position:"left",items:[]},{position:"center",items:[]},{position:"right",items:[]}],i=this.fancybox.plugins.Thumbs;for(const s of this.fancybox.option("Toolbar.display")){let r,a;if(n(s)?(r=s.id,a=o({},t[r],s)):(r=s,a=t[r]),["counter","next","prev","slideshow"].includes(r)&&this.fancybox.items.length<2)continue;if("fullscreen"===r){if(!document.fullscreenEnabled||window.fullScreen)continue;document.addEventListener("fullscreenchange",this.onFsChange)}if("thumbs"===r&&(!i||"disabled"===i.state))continue;if(!a)continue;let l=a.position||"right",c=e.find((t=>t.position===l));c&&c.items.push(a)}const s=document.createElement("div");s.classList.add("fancybox__toolbar");for(const t of e)if(t.items.length){const e=document.createElement("div");e.classList.add("fancybox__toolbar__items"),e.classList.add(`fancybox__toolbar__items--${t.position}`);for(const i of t.items)e.appendChild(this.createElement(i));s.appendChild(e)}this.fancybox.$carousel.parentNode.insertBefore(s,this.fancybox.$carousel),this.$container=s}update(){const t=this.fancybox.getSlide(),e=t.index,i=this.fancybox.items.length,n=t.downloadSrc||("image"!==t.type||t.error?null:t.src);for(const t of this.fancybox.$container.querySelectorAll("a.fancybox__button--download"))n?(t.removeAttribute("disabled"),t.removeAttribute("tabindex"),t.setAttribute("href",n),t.setAttribute("download",n),t.setAttribute("target","_blank")):(t.setAttribute("disabled",""),t.setAttribute("tabindex",-1),t.removeAttribute("href"),t.removeAttribute("download"));const o=t.Panzoom,s=o&&o.option("maxScale")>o.option("baseScale");for(const t of this.fancybox.$container.querySelectorAll(".fancybox__button--zoom"))s?t.removeAttribute("disabled"):t.setAttribute("disabled","");for(const e of this.fancybox.$container.querySelectorAll("[data-fancybox-index]"))e.innerHTML=t.index+1;for(const t of this.fancybox.$container.querySelectorAll("[data-fancybox-count]"))t.innerHTML=i;if(!this.fancybox.option("infinite")){for(const t of this.fancybox.$container.querySelectorAll("[data-fancybox-prev]"))0===e?t.setAttribute("disabled",""):t.removeAttribute("disabled");for(const t of this.fancybox.$container.querySelectorAll("[data-fancybox-next]"))e===i-1?t.setAttribute("disabled",""):t.removeAttribute("disabled")}}cleanup(){this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer(),this.$container&&this.$container.remove(),this.$container=null}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events),this.cleanup()}}O.defaults=z;const R={ScrollLock:class{constructor(t){this.fancybox=t,this.viewport=null,this.pendingUpdate=null;for(const t of["onReady","onResize","onTouchstart","onTouchmove"])this[t]=this[t].bind(this)}
1onReady(){const 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})}onResize(){this.updateViewport()}updateViewport(){const t=this.fancybox,e=this.viewport,i=e.scale||1,n=t.$container;if(!n)return;let o="",s="",r="";i-1>.1&&(o=e.width*i+"px",s=e.height*i+"px",r=`translate3d(${e.offsetLeft}px, ${e.offsetTop}px, 0) scale(${1/i})`),n.style.width=o,n.style.height=s,n.style.transform=r}onTouchstart(t){this.startY=t.touches?t.touches[0].screenY:t.screenY}onTouchmove(t){const e=this.startY,i=window.innerWidth/window.document.documentElement.clientWidth;if(!t.cancelable)return;if(t.touches.length>1||1!==i)return;const n=r(t.composedPath()[0]);if(!n)return void t.preventDefault();const o=window.getComputedStyle(n),s=parseInt(o.getPropertyValue("height"),10),a=t.touches?t.touches[0].screenY:t.screenY,l=e<=a&&0===n.scrollTop,c=e>=a&&n.scrollHeight-n.scrollTop===s;(l||c)&&t.preventDefault()}onWheel(t){r(t.composedPath()[0])||t.preventDefault()}cleanup(){this.pendingUpdate&&(cancelAnimationFrame(this.pendingUpdate),this.pendingUpdate=null);const 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})}attach(){this.fancybox.on("initLayout",this.onReady)}detach(){this.fancybox.off("initLayout",this.onReady),this.cleanup()}},Thumbs:_,Html:$,Toolbar:O,Image:P,Hash:I},M={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"><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"}},F=new Map;let N=0;class D extends u{constructor(t,e={}){t=t.map((t=>(t.width&&(t._width=t.width),t.height&&(t._height=t.height),t))),super(o(!0,{},M,e)),this.bindHandlers(),this.state="init",this.setItems(t),this.attachPlugins(D.Plugins),this.trigger("init"),!0===this.option("hideScrollbar")&&this.hideScrollbar(),this.initLayout(),this.initCarousel(),this.attachEvents(),F.set(this.id,this),this.trigger("prepare"),this.state="ready",this.trigger("ready"),this.$container.setAttribute("aria-hidden","false"),this.option("trapFocus")&&this.focus()}option(t,...e){const i=this.getSlide();let n=i?i[t]:void 0;return void 0!==n?("function"==typeof n&&(n=n.call(this,this,...e)),n):super.option(t,...e)}bindHandlers(){for(const t of["onMousedown","onKeydown","onClick","onFocus","onCreateSlide","onSettle","onTouchMove","onTouchEnd","onTransform"])this[t]=this[t].bind(this)}attachEvents(){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)}detachEvents(){document.removeEventListener("mousedown",this.onMousedown),document.removeEventListener("keydown",this.onKeydown,!0),document.removeEventListener("focus",this.onFocus,!0),this.$container.removeEventListener("click",this.onClick)}initLayout(){this.$root=this.option("parentEl")||document.body;let t=this.option("template.main");t&&(this.$root.insertAdjacentHTML("beforeend",this.localize(t)),this.$container=this.$root.querySelector(".fancybox__container")),this.$container||(this.$container=document.createElement("div"),this.$root.appendChild(this.$container)),this.$container.onscroll=()=>(this.$container.scrollLeft=0,!1),Object.entries({class:"fancybox__container",role:"dialog",tabIndex:"-1","aria-modal":"true","aria-hidden":"true","aria-label":this.localize("{{MODAL}}")}
1).forEach((t=>this.$container.setAttribute(...t))),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||++N,this.$container.setAttribute("id","fancybox-"+this.id));const e=this.option("mainClass");return e&&this.$container.classList.add(...e.split(" ")),document.documentElement.classList.add("with-fancybox"),this.trigger("initLayout"),this}setItems(t){const e=[];for(const i of t){const t=i.$trigger;if(t){const e=t.dataset||{};i.src=e.src||t.getAttribute("href")||i.src,i.type=e.type||i.type,!i.src&&t instanceof HTMLImageElement&&(i.src=t.currentSrc||i.$trigger.src)}let n=i.$thumb;if(!n){let t=i.$trigger&&i.$trigger.origTarget;t&&(n=t instanceof HTMLImageElement?t:t.querySelector("img:not([aria-hidden])")),!n&&i.$trigger&&(n=i.$trigger instanceof HTMLImageElement?i.$trigger:i.$trigger.querySelector("img:not([aria-hidden])"))}i.$thumb=n||null;let o=i.thumb;!o&&n&&(o=n.currentSrc||n.src,!o&&n.dataset&&(o=n.dataset.lazySrc||n.dataset.src)),o||"image"!==i.type||(o=i.src),i.thumb=o||null,i.caption=i.caption||"",e.push(i)}this.items=e}initCarousel(){return this.Carousel=new w(this.$carousel,o(!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:()=>this.Carousel&&this.Carousel.pages&&this.Carousel.pages.length<2&&!this.option("dragToClose"),lockAxis:()=>{if(this.Carousel){let t="x";return this.option("dragToClose")&&(t+="y"),t}}},on:{"*":(t,...e)=>this.trigger(`Carousel.${t}`,...e),init:t=>this.Carousel=t,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}onCreateSlide(t,e){let i=e.caption||"";if("function"==typeof this.options.caption&&(i=this.options.caption.call(this,this,this.Carousel,e)),"string"==typeof i&&i.length){const t=document.createElement("div"),n=`fancybox__caption_${this.id}_${e.index}`;t.className="fancybox__caption",t.innerHTML=i,t.setAttribute("id",n),e.$caption=e.$el.appendChild(t),e.$el.classList.add("has-caption"),e.$el.setAttribute("aria-labelledby",n)}}onSettle(){this.option("autoFocus")&&this.focus()}onFocus(t){this.isTopmost()&&this.focus(t)}onClick(t){if(t.defaultPrevented)return;let e=t.composedPath()[0];if(e.matches("[data-fancybox-close]"))return t.preventDefault(),void D.close(!1,t);if(e.matches("[data-fancybox-next]"))return t.preventDefault(),void D.next();if(e.matches("[data-fancybox-prev]"))return t.preventDefault(),void D.prev();const i=document.activeElement;if(i){if(i.closest("[contenteditable]"))return;e.matches(E)||i.blur()}if(!e.closest(".fancybox__content")&&!getSelection().toString().length&&!1!==this.trigger("click",t))switch(this.option("click")){case"close":this.close();break;case"next":this.next()}}onTouchMove(){const t=this.getSlide().Panzoom;return!t||1===t.content.scale}onTouchEnd(t){const e=t.dragOffset.y;Math.abs(e)>=150||Math.abs(e)>=35&&t.dragOffset.time<350?(this.option("hideClass")&&(this.getSlide().hideClass="fancybox-throwOut"+(t.content.y<0?"Up":"Down")),this.close()):"y"===t.lockAxis&&t.panTo({y:0})}onTransform(t){if(this.$backdrop){const e=Math.abs(t.content.y),i=e<1?""
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)}}onMousedown(){"ready"===this.state&&document.body.classList.add("is-using-mouse")}onKeydown(t){if(!this.isTopmost())return;document.body.classList.remove("is-using-mouse");const e=t.key,i=this.option("keyboard");if(!i||t.ctrlKey||t.altKey||t.shiftKey)return;const n=t.composedPath()[0],o=document.activeElement&&document.activeElement.classList,s=o&&o.contains("carousel__button");if("Escape"!==e&&!s&&(t.target.isContentEditable||-1!==["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName)))return;if(!1===this.trigger("keydown",e,t))return;const r=i[e];"function"==typeof this[r]&&this[r]()}getSlide(){const t=this.Carousel;if(!t)return null;const e=null===t.page?t.option("initialPage"):t.page,i=t.pages||[];return i.length&&i[e]?i[e].slides[0]:null}focus(t){if(D.ignoreFocusChange)return;if(["init","closing","customClosing","destroy"].indexOf(this.state)>-1)return;const e=this.$container,i=this.getSlide(),n="done"===i.state?i.$el:null;if(n&&n.contains(document.activeElement))return;t&&t.preventDefault(),D.ignoreFocusChange=!0;const o=Array.from(e.querySelectorAll(E));let s,r=[];for(let t of o){const e=t.offsetParent,i=n&&n.contains(t),o=!this.Carousel.$viewport.contains(t);e&&(i||o)?(r.push(t),void 0!==t.dataset.origTabindex&&(t.tabIndex=t.dataset.origTabindex,t.removeAttribute("data-orig-tabindex")),(t.hasAttribute("autoFocus")||!s&&i&&!t.classList.contains("carousel__button"))&&(s=t)):(t.dataset.origTabindex=void 0===t.dataset.origTabindex?t.getAttribute("tabindex"):t.dataset.origTabindex,t.tabIndex=-1)}t?r.indexOf(t.target)>-1?this.lastFocus=t.target:this.lastFocus===e?C(r[r.length-1]):C(e):this.option("autoFocus")&&s?C(s):r.indexOf(document.activeElement)<0&&C(e),this.lastFocus=document.activeElement,D.ignoreFocusChange=!1}hideScrollbar(){if(!x)return;const t=window.innerWidth-document.documentElement.getBoundingClientRect().width,e="fancybox-style-noscroll";let i=document.getElementById(e);i||t>0&&(i=document.createElement("style"),i.id=e,i.type="text/css",i.innerHTML=`.compensate-for-scrollbar {padding-right: ${t}px;}`,document.getElementsByTagName("head")[0].appendChild(i),document.body.classList.add("compensate-for-scrollbar"))}revealScrollbar(){document.body.classList.remove("compensate-for-scrollbar");const t=document.getElementById("fancybox-style-noscroll");t&&t.remove()}clearContent(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)}setContent(t,e,i={}){let n;const o=t.$el;if(e instanceof HTMLElement)["img","iframe","video","audio"].indexOf(e.nodeName.toLowerCase())>-1?(n=document.createElement("div"),n.appendChild(e)):n=e;else{const t=document.createRange().createContextualFragment(e);n=document.createElement("div"),n.appendChild(t)}if(t.filter&&!t.error&&(n=n.querySelector(t.filter)),n instanceof Element)return t._className=`has-${i.suffix||t.type||"unknown"}`,o.classList.add(t._className),n.classList.add("fancybox__content"),"none"!==n.style.display&&"none"!==getComputedStyle(n).getPropertyValue("display")||(n.style.display=t.display||this.option("defaultDisplay")||"flex"),t.id&&n.setAttribute("id",t.id),t.$content=n,o.prepend(n),this.manageCloseButton(t),"loading"!==t.state&&this.revealContent(t),n;this.setError(t,"{{ELEMENT_NOT_FOUND}}")}manageCloseButton(t){const e=void 0===t.closeButton?this.option("closeButton"):t.closeButton;if(!e||"top"===e&&this.$closeButton)return;const i=document.createElement("button");i.classList.add("carousel__button","is-close"),i.setAttribute("title",this.options.l10n.CLOSE),i.innerHTML=this.option("template.closeButton"),i.addEventListener("click",(t=>this.close(t))),"inside"===e?(t.$closeButton&&t.$closeButton.remove(),t.$closeButton=t.$content.appendChild(i)):this.$closeButton=this.$container.insertBefore(i,this.$container.firstChild)}revealContent(t){this.trigger("reveal",t),t.$content.style.visibility="";let e=!1;t.error||"loading"===t.state||null!==this.Carousel.prevPage||t.index!==this.options.startIndex||(e=void 0===t.showClass?this.option("showClass"):t.showClass),e?(t.state="animating",this.animateCSS(t.$content,e,(()=>{this.done(t)}))):this.done(t)}
1animateCSS(t,e,i){if(t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!0,cancelable:!0})),!t||!e)return void("function"==typeof i&&i());const n=function(o){o.currentTarget===this&&(t.removeEventListener("animationend",n),i&&i(),t.classList.remove(e))};t.addEventListener("animationend",n),t.classList.add(e)}done(t){t.state="done",this.trigger("done",t);const e=this.getSlide();e&&t.index===e.index&&this.option("autoFocus")&&this.focus()}setError(t,e){t.error=e,this.hideLoading(t),this.clearContent(t);const i=document.createElement("div");i.classList.add("fancybox-error"),i.innerHTML=this.localize(e||"<p>{{ERROR}}</p>"),this.setContent(t,i,{suffix:"error"})}showLoading(t){t.state="loading",t.$el.classList.add("is-loading");let e=t.$el.querySelector(".fancybox__spinner");e||(e=document.createElement("div"),e.classList.add("fancybox__spinner"),e.innerHTML=this.option("template.spinner"),e.addEventListener("click",(()=>{this.Carousel.Panzoom.velocity||this.close()})),t.$el.prepend(e))}hideLoading(t){const 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")}next(){const t=this.Carousel;t&&t.pages.length>1&&t.slideNext()}prev(){const t=this.Carousel;t&&t.pages.length>1&&t.slidePrev()}jumpTo(...t){this.Carousel&&this.Carousel.slideTo(...t)}isClosing(){return["closing","customClosing","destroy"].includes(this.state)}isTopmost(){return D.getInstance().id==this.id}close(t){if(t&&t.preventDefault(),this.isClosing())return;if(!1===this.trigger("shouldClose",t))return;if(this.state="closing",this.Carousel.Panzoom.destroy(),this.detachEvents(),this.trigger("closing",t),"destroy"===this.state)return;this.$container.setAttribute("aria-hidden","true"),this.$container.classList.add("is-closing");const e=this.getSlide();if(this.Carousel.slides.forEach((t=>{t.$content&&t.index!==e.index&&this.Carousel.trigger("removeSlide",t)})),"closing"===this.state){const t=void 0===e.hideClass?this.option("hideClass"):e.hideClass;this.animateCSS(e.$content,t,(()=>{this.destroy()}),!0)}}destroy(){if("destroy"===this.state)return;this.state="destroy",this.trigger("destroy");const t=this.option("placeFocusBack")?this.option("triggerTarget",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&&C(t),F.delete(this.id);const e=D.getInstance();e?e.focus():(document.documentElement.classList.remove("with-fancybox"),document.body.classList.remove("is-using-mouse"),this.revealScrollbar())}static show(t,e={}){return new D(t,e)}static fromEvent(t,e={}){if(t.defaultPrevented)return;if(t.button&&0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey)return;const i=t.composedPath()[0];let n,o,s,r=i;if((r.matches("[data-fancybox-trigger]")||(r=r.closest("[data-fancybox-trigger]")))&&(e.triggerTarget=r,n=r&&r.dataset&&r.dataset.fancyboxTrigger),n){const t=document.querySelectorAll(`[data-fancybox="${n}"]`),e=parseInt(r.dataset.fancyboxIndex,10)||0;r=t.length?t[e]:r}Array.from(D.openers.keys()).reverse().some((e=>{s=r||i;let n=!1;try{s instanceof Element&&("string"==typeof e||e instanceof String)&&(n=s.matches(e)||(s=s.closest(e)))}catch(t){}return!!n&&(t.preventDefault(),o=e,!0)}));let a=!1;if(o){e.event=t,e.target=s,s.origTarget=i,a=D.fromOpener(o,e);const n=D.getInstance();n&&"ready"===n.state&&t.detail&&document.body.classList.add("is-using-mouse")}return a}static fromOpener(t,e={}
1){let i=[],n=e.startIndex||0,s=e.target||null;const r=void 0!==(e=o({},e,D.openers.get(t))).groupAll&&e.groupAll,a=void 0===e.groupAttr?"data-fancybox":e.groupAttr,l=a&&s?s.getAttribute(`${a}`):"";if(!s||l||r){const n=e.root||(s?s.getRootNode():document.body);i=[].slice.call(n.querySelectorAll(t))}if(s&&!r&&(i=l?i.filter((t=>t.getAttribute(`${a}`)===l)):[s]),!i.length)return!1;const c=D.getInstance();return!(c&&i.indexOf(c.options.$trigger)>-1)&&(n=s?i.indexOf(s):n,i=i.map((function(t){const e=["false","0","no","null","undefined"],i=["true","1","yes"],n=Object.assign({},t.dataset),o={};for(let[t,s]of Object.entries(n))if("fancybox"!==t)if("width"===t||"height"===t)o[`_${t}`]=s;else if("string"==typeof s||s instanceof String)if(e.indexOf(s)>-1)o[t]=!1;else if(i.indexOf(o[t])>-1)o[t]=!0;else try{o[t]=JSON.parse(s)}catch(e){o[t]=s}else o[t]=s;return t instanceof Element&&(o.$trigger=t),o})),new D(i,o({},e,{startIndex:n,$trigger:s})))}static bind(t,e={}){function i(){document.body.addEventListener("click",D.fromEvent,!1)}x&&(D.openers.size||(/complete|interactive|loaded/.test(document.readyState)?i():document.addEventListener("DOMContentLoaded",i)),D.openers.set(t,e))}static unbind(t){D.openers.delete(t),D.openers.size||D.destroy()}static destroy(){let t;for(;t=D.getInstance();)t.destroy();D.openers=new Map,document.body.removeEventListener("click",D.fromEvent,!1)}static getInstance(t){return t?F.get(t):Array.from(F.values()).reverse().find((t=>!t.isClosing()&&t))||null}static close(t=!0,e){if(t)for(const t of F.values())t.close(e);else{const t=D.getInstance();t&&t.close(e)}}static next(){const t=D.getInstance();t&&t.next()}static prev(){const t=D.getInstance();t&&t.prev()}}D.version="4.0.31",D.defaults=M,D.openers=new Map,D.Plugins=R,D.bind("[data-fancybox]");for(const[t,e]of Object.entries(D.Plugins||{}))"function"==typeof e.create&&e.create(D)},824:(t,e,i)=>{"use strict";var n,o=i(483),s=i.n(o);i(275),n=jQuery,function(){var t=document.querySelectorAll(".animate");function e(t,e){var i=new(s().Controller);new(s().Scene)({triggerElement:t,duration:0,reverse:!1,triggerHook:e}).on("start",(function(){n(t).toggleClass("is-animated")})).addTo(i)}return{init:function(){var i;!function(){for(var i=0;i<t.length;i++)e(n(t)[i],.75)}(),i=new(s().Controller),new(s().Scene)({triggerElement:"header",duration:0,reverse:!0,triggerHook:0,offset:"350px"}).setPin(".header").setClassToggle("body","header-is-sticky").addTo(i)}}}().init()}},i={};function n(t){var o=i[t];if(void 0!==o)return o.exports;var s=i[t]={exports:{}};return e[t].call(s.exports,s,s.exports,n),s.exports}n.m=e,t=[],n.O=(e,i,o,s)=>{if(!i){var r=1/0;for(h=0;h<t.length;h++){for(var[i,o,s]=t[h],a=!0,l=0;l<i.length;l++)(!1&s||r>=s)&&Object.keys(n.O).every((t=>n.O[t](i[l])))?i.splice(l--,1):(a=!1,s<r&&(r=s));if(a){t.splice(h--,1);var c=o();void 0!==c&&(e=c)}}return e}s=s||0;for(var h=t.length;h>0&&t[h-1][2]>s;h--)t[h]=t[h-1];t[h]=[i,o,s]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={845:0,196:0};n.O.j=e=>0===t[e];var e=(e,i)=>{var o,s,[r,a,l]=i,c=0;if(r.some((e=>0!==t[e]))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(l)var h=l(n)}for(e&&e(i);c<r.length;c++)s=r[c],n.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return n.O(h)},i=self.webpackChunkwp_starter_theme=self.webpackChunkwp_starter_theme||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})(),n.O(void 0,[196],(()=>n(771))),n.O(void 0,[196],(()=>n(744))),n.O(void 0,[196],(()=>n(55))),n.O(void 0,[196],(()=>n(79))),n.O(void 0,[196],(()=>n(824))),n.O(void 0,[196],(()=>n(465))),n.O(void 0,[196],(()=>n(238))),n.O(void 0,[196],(()=>n(322)));var o=n.O(void 0,[196],(()=>n(245)));o=n.O(o)})();

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.