1!function(){function e(e){return e&&e.__esModule?e.default:e}var t={},n={},i=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}function a(e,t,n,i,o){var a=r.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}function r(e,t,i,o){return function(i){i.delegateTarget=n(i.target,t),i.delegateTarget&&o.call(e,i)}}n=function(e,t){for(;e&&e.nodeType!==i;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}},t=function(e,t,n,i,o){return"function"==typeof e.addEventListener?a.apply(null,arguments):"function"==typeof n?a.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return a(e,t,n,i,o)})))};var s=[window.location.host,"collection.carnegieart.org","collection-carnegieart.netlify.app","sales.carnegiemuseums.org","mailto:","data:text","javascript:",new RegExp("/^#/"),new RegExp("/.pdf$/")];var l={};function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function f(e){if(Array.isArray(e))return h(e)}function v(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function g(e){return f(e)||v(e)||m(e)||p()}l=function(){"use strict";var e=function(){var e=document.createElement("div");return e.style.cssText="position: fixed; top: 0; height: 100vh; pointer-events: none;",document.documentElement.insertBefore(e,document.documentElement.firstChild),e},t=function(e){document.documentElement.removeChild(e)},n=function(){var n=e(),i=window.innerHeight,o=n.offsetHeight,a=o-i;return t(n),{vh:o,windowHeight:i,offset:a,isNeeded:0!==a,value:0}},i=function(){},o=function(){var e=n();return e.value=e.offset,e},a=function(){var e=n();return e.value=.01*e.windowHeight,e},r=function(e){return"string"==typeof e&&e.length>0},s=function(e){return"function"==typeof e},l=function(e){if(r(e))return v({},m,{cssVarName:e});if("object"!=typeof e)return m;var t={force:!0===e.force,bind:!1!==e.bind,updateOnTouch:!0===e.updateOnTouch,onUpdate:s(e.onUpdate)?e.onUpdate:i},n=!0===e.redefineVh;return t.method=p[n?"redefineVhUnit":"computeDifference"],t.cssVarName=r(e.cssVarName)?e.cssVarName:n?"vh":m.cssVarName,t},c=function(e,t){y.push({eventName:e,callback:t}),window.addEventListener(e,t,!!g&&{passive:!0})},u=function(){y.forEach((function(e){window.removeEventListener(e.eventName,e.callback)})),y=[]},d=function(e,t){document.documentElement.style.setProperty("--"+e,t.value+"px")},h=function(e,t){return v({},e,{unbind:u,recompute:t.method})},f=function(e){var t=Object.freeze(l(e)),n=h(t.method(),t);if(!n.isNeeded&&!t.force)return n;if(d(t.cssVarName,n),t.onUpdate(n),!t.bind)return n;function i(){window.requestAnimationFrame((function(){var e=t.method();d(t.cssVarName,e),t.onUpdate(h(e,t))}))}return n.unbind(),c("orientationchange",i),t.updateOnTouch&&c("touchmove",i),n},v=function(){return v=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)},p=Object.freeze({noop:i,computeDifference:o,redefineVhUnit:a}),m=Object.freeze({cssVarName:"vh-offset",redefineVh:!1,method:o,force:!1,bind:!0,updateOnTouch:!1,onUpdate:i}),g=!1,y=[];try{var b=Object.defineProperty({},"passive",{get:function(){g=!0}});window.addEventListener("test",b,b),window.removeEventListener("test",b,b)}catch(e){g=!1}return f}();var y=function(){"use strict";function e(){c(this,e),this.handleMutations=this.handleMutations.bind(this),this.observer=new MutationObserver(this.handleMutations),this.observeWidgets()}return d(e,[{key:"observeWidgets",value:function(){var e=document.querySelectorAll(".swidget-holder"),t=!0,n=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var r=o.value;this.observer.observe(r,{childList:!0,subtree:!0})}}catch(e){n=!0,i=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw i}}}},{key:"handleMutations",value:function(e){var t=!0,n=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var r=o.value;if("childList"===r.type&&r.target.classList.contains("swidget-holder")){var s=Array.from(r.addedNodes).find((function(e){return 1===e.nodeType}));if(!s)return;var l=Array.from(s.children).reduce((function(e,t){return g(t.classList).concat(g(e))}),[]);if(l.includes("swidget_tt_item_name")){r.target.classList.add("cmoa-swidget-timedtickets");var c=document.createElement("div");c.classList.add("cmoa-swidget-timedtickets-loading"),c.innerHTML='Gathering ticket options<span class="ellipses-loader">â¦</span>',r.target.appendChild(c)}else l.includes("swidget_multi_item_name")?r.target.classList.add("cmoa-swidget-multicart"):l.includes("swidget_item_name")&&l.includes("swidget_tickets")?r.target.classList.add("cmoa-swidget-products"):l.includes("swidget_buttons")&&r.target.classList.add("cmoa-swidget-oneclick");r.target.classList.add("cmoa-swidget-loading")}else if("childList"===r.type&&r.target.classList.contains("swidget_tickets")){var u=r.target.closest(".swidget-holder");u.classList.remove("cmoa-swidget-loading"),u.classList.add("cmoa-swidget-loaded")}}}catch(e){n=!0,i=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw i}}}}]),e}();function b(e){if(Array.isArray(e))return e}
1function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){return b(e)||v(e)||m(e,t)||w()}var k="function"==typeof Promise?Promise:function(e){var t,n=function(e){return o?setTimeout(e,0,t):i.push(e),this},i=[],o=0;return e((function(e){t=e,o=1,i.splice(0).forEach(n)})),{then:n}},S=!0,E=!1,C="querySelectorAll";function T(e){this.observe(e,{subtree:S,childList:S})}var O,M,A,P,L,z,I,R,j="querySelectorAll",D=self.document,F=self.Element,N=self.MutationObserver,B=self.Set,_=self.WeakMap,H=function(e){return j in e},W=[].filter,q=Object.create,X=Object.keys,Y=new WeakMap,V=new Set,U=[],G={},Z={},K=function(e,t){for(var n=Y.get(t),i=0,o=e.length;i<o;i++){var a=e[i],r=a.target,s=a.attributeName,l=a.oldValue,c=r.getAttribute(s);n.attributeChanged(s,l,c)}},J=(O={query:U,handle:function(e,t,n){var i=G[n],o=i.m,a=i.l,r=i.o,s=o.get(e)||function(e,t,n,i){for(var o=q(i,{element:{enumerable:!0,value:e}}),a=0,r=n.length;a<r;a++)e.addEventListener(n[a].t,o,n[a].o);t.set(e,o),o.init&&o.init();var s=i.observedAttributes;if(s){var l=new MutationObserver(K);l.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:s.map((function(t){return e.hasAttribute(t)&&o.attributeChanged(t,null,e.getAttribute(t)),t}))}),Y.set(l,o)}return o}(e,o,a,r),l=t?"connected":"disconnected";l in s&&s[l]()}},M=new _,A=function(e,t){var n;if(t)for(var i,o=function(e){return e.matches||e.webkitMatchesSelector||e.msMatchesSelector}(e),a=0,r=L.length;a<r;a++)o.call(e,i=L[a])&&(M.has(e)||M.set(e,new B),(n=M.get(e)).has(i)||(n.add(i),O.handle(e,t,i)));else M.has(e)&&(n=M.get(e),M.delete(e),n.forEach((function(n){O.handle(e,t,n)})))},P=function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=0,i=e.length;n<i;n++)A(e[n],t)},L=O.query,z=O.root||D,I=function(e,t,n){var i=function(t,n,o,a,r){for(var s=0,l=t.length;s<l;s++){var c=t[s];(r||C in c)&&(a?n.has(c)||(n.add(c),o.delete(c),e(c,a)):o.has(c)||(o.add(c),n.delete(c),e(c,a)),r||i(c[C]("*"),n,o,a,S))}},o=new(n||MutationObserver)((function(e){for(var t=new Set,n=new Set,o=0,a=e.length;o<a;o++){var r=e[o],s=r.addedNodes,l=r.removedNodes;i(l,t,n,E,E),i(s,t,n,S,E)}}));return o.add=T,o.add(t||document),o}(A,z,N),(R=F.prototype.attachShadow)&&(F.prototype.attachShadow=function(e){var t=R.call(this,e);return I.add(t),t}),L.length&&P(z[j](L)),{drop:function(e){for(var t=0,n=e.length;t<n;t++)M.delete(e[t])},flush:function(){for(var e=I.takeRecords(),t=0,n=e.length;t<n;t++)P(W.call(e[t].removedNodes,H),!1),P(W.call(e[t].addedNodes,H),!0)},observer:I,parse:P}),Q=J.flush,ee=J.parse,te=function(e,t){if(-1<U.indexOf(e))throw new Error("duplicated: "+e);Q();for(var n=[],i=q(null),o=X(t),a=0,r=o.length;a<r;a++){var s=o[a];if(/^on/.test(s)&&!/Options$/.test(s)){var l=t[s+"Options"]||!1,c=s.toLowerCase(),u=c.slice(2);n.push({t:u,o:l}),i[u]=s,c!==s&&(u=s.slice(2,3).toLowerCase()+s.slice(3),i[u]=s,n.push({t:u,o:l}))}}n.length&&(t.handleEvent=function(e){this[i[e.type]](e)}),U.push(e),G[e]={m:new WeakMap,l:n,o:t},ee(document.querySelectorAll(e)),ne(e),V.has(e)||Z[e]._()},ne=function(e){if(!(e in Z)){var t,n=new k((function(e){t=e}));Z[e]={_:t,$:n}}return Z[e].$};function ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oe(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function ae(e,t){return t.get?t.get.call(e):t.value}function re(e,t){return ae(e,oe(e,t,"get"))}function se(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function le(e,t,n){se(e,t),t.set(e,n)}function ce(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function ue(e,t,n){return ce(e,oe(e,t,"set"),n),n}function de(e,t){return de=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},de(e,t)}function he(e,t){return de(e,t)}function fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&he(e,t)}function ve(e,t,n){return ve=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&he(o,n.prototype),o},ve.apply(null,arguments)}function pe(e,t,n){return ve.apply(null,arguments)}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},me(e)}function ge(e){return me(e)}function ye(e){var t="function"==typeof Map?new Map:void 0;return ye=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return pe(e,arguments,ge(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),he(i,e)},ye(e)}function be(){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(e){return!1}}function we(e){return e&&e.constructor===Symbol?"symbol":typeof e}function xe(e,t){return!t||"object"!==we(t)&&"function"!=typeof t?ie(e):t}function ke(e){var t=be();return function(){var n,i=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return xe(this,n)}}te('[data-component~="rich-text"]',{init:function(){this.formatWpImages(),this.formatCmoaImages(),this.formatGroups(),this.loadedImages=[],this.resizeTimer=null,this.handleResize=this.handleResize.bind(this),this.handleImageLoad=this.handleImageLoad.bind(this)},connected:function(){window.addEventListener("resize",this.handleResize),document.addEventListener("lazyloaded",this.handleImageLoad)},disconnected:function(){window.removeEventListener("resize",this.handleResize),document.removeEventListener("lazyloaded",this.handleImageLoad)},formatWpImages:function(){var e=this;
1g(this.element.querySelectorAll(".wp-caption")).forEach((function(t){var n=t.querySelector("img");e.setOrientation(n,t)}))},formatCmoaImages:function(){var e=this;g(this.element.querySelectorAll(".cmoa-image")).forEach((function(t){var n=t.querySelector("img");e.setOrientation(n,t)}))},setOrientation:function(e,t){var n=parseInt(e.getAttribute("width")),i=parseInt(e.getAttribute("height"));if(n&&i){var o=i>=n?"portrait":"landscape";t.classList.add("orientation-".concat(o))}},setOrientationAction:function(e,t){var n=e.width,i=e.height>=n?"portrait":"landscape";t.classList.add("orientation-".concat(i))},handleImageLoad:function(e){var t=e.target,n=t.closest(".wp-caption");t&&n&&(this.limitImageAction(t,n),this.setOrientationAction(t,n),this.loadedImages.push([t,n]))},limitImages:function(){var e=this;this.loadedImages.forEach((function(t){var n=x(t,2),i=n[0],o=n[1];e.limitImageAction(i,o)}))},limitImageAction:function(e,t){t.style.removeProperty("width"),setTimeout((function(){t.style.width=e.width+"px"}),10)},handleResize:function(){var e=this;clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((function(){e.limitImages()}),100)},formatGroups:function(){var e=this;this.element.hasAttribute("data-format-groups")?this.createGroups(this.element):Array.from(this.element.querySelectorAll(".sc-columns")).forEach((function(t){e.createGroups(t)}))},createGroups:function(e){var t=Array.from(e.children);if(!(t.filter((function(e){return"H3"===e.tagName||"H4"===e.tagName})).length<=1)){var n=null;t.forEach((function(t){"H3"!==t.tagName&&"H4"!==t.tagName||(n&&e.insertBefore(n,t),(n=document.createElement("div")).className="rich-text break-inside-avoid"),n&&n.appendChild(t)})),n&&e.appendChild(n)}}});function Se(e,t){var n,i,o,a,r=function(e){return function(t){return s([e,t])}},s=function(r){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,r[0]&&(l=0)),l;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,i=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){l=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){l.label=r[1];break}if(6===r[0]&&l.label<o[1]){l.label=o[1],o=r;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(r);break}o[2]&&l.ops.pop(),l.trys.pop();continue}r=t.call(e,l)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}},l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a}Object.create;Object.create;var Ee,Ce=new WeakMap,Te=Symbol.iterator,Oe=function(e){"use strict";fe(n,e);var t=ke(n);function n(e){var i;if(c(this,n),!Array.isArray(e))throw new TypeError("Expected an array");return le(ie(i=t.call.apply(t,[this].concat(g(e)))),Ce,{writable:!0,value:0}),i}return d(n,[{key:Te,value:function(){var e;return Se(this,(function(t){switch(t.label){case 0:e=this.length,t.label=1;case 1:return e-- >0?[4,this.current()]:[3,3];case 2:return t.sent(),this.index++,[3,1];case 3:return[2]}}
1))}},{key:"index",get:function(){return re(this,Ce)},set:function(e){ue(this,Ce,(this.length+e%this.length)%this.length)}},{key:"step",value:function(e){return ue(this,Ce,(this.length+re(this,Ce)+e)%this.length),this[re(this,Ce)]}},{key:"peek",value:function(e){return this[(this.length+re(this,Ce)+e)%this.length]}},{key:"current",value:function(){return this.step(0)}},{key:"next",value:function(){return this.step(1)}},{key:"previous",value:function(){return this.step(-1)}},{key:"indefinitely",value:function(){return Se(this,(function(e){switch(e.label){case 0:return[4,this.next()];case 1:return e.sent(),[3,0];case 2:return[2]}}))}},{key:"indefinitelyReversed",value:function(){return Se(this,(function(e){switch(e.label){case 0:return[4,this.previous()];case 1:return e.sent(),[3,0];case 2:return[2]}}))}}]),n}(ye(Array));function Me(e){return Math.trunc?Math.trunc(e):Math.floor(e)+(e<0?1:0)}Ee=function(e,t){void 0===e&&(e=1);void 0===t&&(t=0);if("number"!=typeof e||"number"!=typeof t)throw new Error("just-random: arguments must be numbers");if(e>t){var n=e;e=t,t=n}return~~(Math.random()*(Me(t)+1-Me(e)))+Me(e)};var Ae=Object.keys({"cmoa-orchid":"rgb(200, 55, 255)","cmoa-sea-green":"rgb(0, 180, 130)","cmoa-neon-pink":"rgb(255, 65, 255)","cmoa-yellow":"rgb(255, 255, 0)","cmoa-brown":"rgb(160, 115, 40)","cmoa-lavender":"rgb(160, 130, 255)","cmoa-red":"rgb(255, 65, 0)","cmoa-bubblegum-pink":"rgb(255, 105, 180)","cmoa-mint":"rgb(0, 255, 135)","cmoa-amethyst":"rgb(160, 110, 225)","cmoa-lime":"rgb(195, 255, 0)","cmoa-powder-blue":"rgb(50, 170, 255)","cmoa-rose":"rgb(255, 105, 135)","cmoa-orange":"rgb(255, 110, 0)","cmoa-sky-blue":"rgb(0, 220, 255)","cmoa-pink":"rgb(255, 120, 255)","cmoa-neon-green":"rgb(0, 255, 50)"}),Pe=new Oe(Ae);Pe.index=e(Ee)(Ae.length-1),te('[data-component~="use-color"]',{init:function(){var e=Pe.next();this.element.style.setProperty("--accent","var(--".concat(e,")"))}}),te('[data-component~="read-more"]',{init:function(){this.state=!1,this.$button=this.element.querySelector("button"),this.handleClick=this.handleClick.bind(this)},connected:function(){this.$button.addEventListener("click",this.handleClick)},disconnected:function(){this.$button.removeEventListener("click",this.handleClick)},handleClick:function(){this.state?(this.$button.innerHTML="Read More",this.element.setAttribute("aria-expanded","false"),this.state=!1):(this.$button.innerHTML="Read Less",this.element.setAttribute("aria-expanded","true"),this.state=!0)}}),te('[data-component~="video-embed"]',{init:function(){this.$button=this.element.querySelector("button"),this.$poster=this.element.querySelector(".img-container"),this.$iframe=this.element.querySelector("iframe"),this.handleClick=this.handleClick.bind(this)},connected:function(){this.$button.addEventListener("click",this.handleClick)},disconnected:function(){this.$button.removeEventListener("click",this.handleClick)},handleClick:function(){this.$iframe.src=this.$iframe.getAttribute("data-src"),this.$iframe.style.display="block",this.$poster.style.display="none",this.$button.style.display="none"}});var Le,ze,Ie={};function Re(e,t,n,i,o,a,r){try{var s=e[a](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}function je(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function r(e){Re(a,i,o,r,s,"next",e)}function s(e){Re(a,i,o,r,s,"throw",e)}r(void 0)}))}}function De(e){if(!Array.isArray(e))throw new TypeError("Expected an array, got ".concat(void 0===e?"undefined":we(e)));for(var t=(e=g(e)).length-1;t>0;t--){var n,i=Math.floor(Math.random()*(t+1));n=[e[i],e[t]],e[t]=n[0],e[i]=n[1]}return e}Le="undefined"!=typeof window?window:{},ze=function(e,t,n){"use strict";var i,o;if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in o=e.lazySizesConfig||e.lazysizesConfig||{},n)t in o||(o[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var a,r,s,l,c,u,d,h,f,v,p,m,g,y,b,w,x,k,S,E,C,T,O,M,A,P,L,z,I,R,j,D,F,N,B,_,H,W,q,X,$,Y,V,U,G,Z=t.documentElement,K=e.HTMLPictureElement,J="addEventListener",Q="getAttribute",ee=e[J].bind(e),te=e.setTimeout,ne=e.requestAnimationFrame||te,ie=e.requestIdleCallback,oe=/^picture$/i,ae=["load","error","lazyincluded","_lazyloaded"],re={},se=Array.prototype.forEach,le=function(e,t){return re[t]||(re[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),re[t].test(e[Q]("class")||"")&&re[t]},ce=function(e,t){le(e,t)||e.setAttribute("class",(e[Q]("class")||"").trim()+" "+t)},ue=function(e,t){var n;(n=le(e,t))&&e.setAttribute("class",(e[Q]("class")||"").replace(n," "))},de=function(e,t,n){var i=n?J:"removeEventListener";n&&de(e,t),ae.forEach((function(n){e[i](n,t)}))},he=function(e,n,o,a,r){var s=t.createEvent("Event");return o||(o={}),o.instance=i,s.initEvent(n,!a,!r),s.detail=o,e.dispatchEvent(s),s},fe=function(t,n){var i;!K&&(i=e.picturefill||o.pf)?(n&&n.src&&!t[Q]("srcset")&&t.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},ve=function(e,t){return(getComputedStyle(e,null)||{})[t]},pe=function(e,t,n){for(n=n||e.offsetWidth;n<o.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},me=(Y=[],V=$=[],U=function(){var e=V;for(V=$.length?Y:$,q=!0,X=!1;e.length;)e.shift()();q=!1},G=function(e,n){q&&!n?e.apply(this,arguments):(V.push(e),X||(X=!0,(t.hidden?te:ne)(U)))},G._lsFlush=U,G),ge=function(e,t){return t?function(){me(e)}:function(){var t=this,n=arguments;me((function(){e.apply(t,n)}))}},ye=function(e){var t,i=0,a=o.throttleDelay,r=o.ricTimeout,s=function(){t=!1,i=n.now(),e()},l=ie&&r>49?function(){ie(s,{timeout:r}),r!==o.ricTimeout&&(r=o.ricTimeout)}:ge((function(){te(s)}),!0);return function(e){var o;(e=!0===e)&&(r=33),t||(t=!0,(o=a-(n.now()-i))<0&&(o=0),e||o<9?l():te(l,o))}},be=function(e){var t,i,o=99,a=function(){t=null,e()},r=function(){var e=n.now()-i;e<o?te(r,o-e):(ie||a)(a)};return function(){i=n.now(),t||(t=te(r,o))}},we=(x=/^img$/i,k=/^iframe$/i,S="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),E=0,C=0,T=0,O=-1,M=function(e){T--,(!e||T<0||!e.target)&&(T=0)},A=function(e){return null==w&&(w="hidden"==ve(t.body,"visibility")),w||!("hidden"==ve(e.parentNode,"visibility")&&"hidden"==ve(e,"visibility"))},P=function(e,n){var i,o=e,a=A(e);for(m-=n,b+=n,g-=n,y+=n;a&&(o=o.offsetParent)&&o!=t.body&&o!=Z;)(a=(ve(o,"opacity")||1)>0)&&"visible"!=ve(o,"overflow")&&(i=o.getBoundingClientRect(),a=y>i.left&&g<i.right&&b>i.top-1&&m<i.bottom+1);return a},z=ye(L=function(){var e,n,a,r,s,l,d,f,x,k,M,L,z=i.elements;if((h=o.loadMode)&&T<8&&(e=z.length)){for(n=0,O++;n<e;n++)if(z[n]&&!z[n]._lazyRace)if(!S||i.prematureUnveil&&i.prematureUnveil(z[n]))B(z[n]);else if((f=z[n][Q]("data-expand"))&&(l=1*f)||(l=C),k||(k=!o.expand||o.expand<1?Z.clientHeight>500&&Z.clientWidth>500?500:370:o.expand,i._defEx=k,M=k*o.expFactor,L=o.hFac,w=null,C<M&&T<1&&O>2&&h>2&&!t.hidden?(C=M,O=0):C=h>1&&O>1&&T<6?k:E),x!==l&&(v=innerWidth+l*L,p=innerHeight+l,d=-1*l,x=l),a=z[n].getBoundingClientRect(),(b=a.bottom)>=d&&(m=a.top)<=p&&(y=a.right)>=d*L&&(g=a.left)<=v&&(b||y||g||m)&&(o.loadHidden||A(z[n]))&&(u&&T<3&&!f&&(h<3||O<4)||P(z[n],l))){if(B(z[n]),s=!0,T>9)break}else!s&&u&&!r&&T<4&&O<4&&h>
12&&(c[0]||o.preloadAfterLoad)&&(c[0]||!f&&(b||y||g||m||"auto"!=z[n][Q](o.sizesAttr)))&&(r=c[0]||z[n]);r&&!s&&B(r)}}),R=ge(I=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(M(e),ce(t,o.loadedClass),ue(t,o.loadingClass),de(t,j),he(t,"lazyloaded"))}),j=function(e){R({target:e.target})},D=function(e,t){var n=e.getAttribute("data-load-mode")||o.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)},F=function(e){var t,n=e[Q](o.srcsetAttr);(t=o.customMedia[e[Q]("data-media")||e[Q]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},N=ge((function(e,t,n,i,a){var r,s,l,c,u,h;(u=he(e,"lazybeforeunveil",t)).defaultPrevented||(i&&(n?ce(e,o.autosizesClass):e.setAttribute("sizes",i)),s=e[Q](o.srcsetAttr),r=e[Q](o.srcAttr),a&&(c=(l=e.parentNode)&&oe.test(l.nodeName||"")),h=t.firesLoad||"src"in e&&(s||r||c),u={target:e},ce(e,o.loadingClass),h&&(clearTimeout(d),d=te(M,2500),de(e,j,!0)),c&&se.call(l.getElementsByTagName("source"),F),s?e.setAttribute("srcset",s):r&&!c&&(k.test(e.nodeName)?D(e,r):e.src=r),a&&(s||c)&&fe(e,{src:r})),e._lazyRace&&delete e._lazyRace,ue(e,o.lazyClass),me((function(){var t=e.complete&&e.naturalWidth>1;h&&!t||(t&&ce(e,o.fastLoadedClass),I(u),e._lazyCache=!0,te((function(){"_lazyCache"in e&&delete e._lazyCache}),9)),"lazy"==e.loading&&T--}),!0)})),B=function(e){if(!e._lazyRace){var t,n=x.test(e.nodeName),i=n&&(e[Q](o.sizesAttr)||e[Q]("sizes")),a="auto"==i;(!a&&u||!n||!e[Q]("src")&&!e.srcset||e.complete||le(e,o.errorClass)||!le(e,o.lazyClass))&&(t=he(e,"lazyunveilread").detail,a&&xe.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,T++,N(e,t,a,i,n))}},_=be((function(){o.loadMode=3,z()})),W=function(){u||(n.now()-f<999?te(W,999):(u=!0,o.loadMode=3,z(),ee("scroll",H,!0)))},{_:function(){f=n.now(),i.elements=t.getElementsByClassName(o.lazyClass),c=t.getElementsByClassName(o.lazyClass+" "+o.preloadClass),ee("scroll",z,!0),ee("resize",z,!0),ee("pageshow",(function(e){if(e.persisted){var n=t.querySelectorAll("."+o.loadingClass);n.length&&n.forEach&&ne((function(){n.forEach((function(e){e.complete&&B(e)}))}))}})),e.MutationObserver?new MutationObserver(z).observe(Z,{childList:!0,subtree:!0,attributes:!0}):(Z[J]("DOMNodeInserted",z,!0),Z[J]("DOMAttrModified",z,!0),setInterval(z,999)),ee("hashchange",z,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(e){t[J](e,z,!0)})),/d$|^c/.test(t.readyState)?W():(ee("load",W),t[J]("DOMContentLoaded",z),te(W,2e4)),i.elements.length?(L(),me._lsFlush()):z()},checkElems:z,unveil:B,_aLSL:H=function(){3==o.loadMode&&(o.loadMode=2),_()}}),xe=(r=ge((function(e,t,n,i){var o,a,r;if(e._lazysizesWidth=i,i+="px",e.setAttribute("sizes",i),oe.test(t.nodeName||""))for(a=0,r=(o=t.getElementsByTagName("source")).length;a<r;a++)o[a].setAttribute("sizes",i);n.detail.dataAttr||fe(e,n.detail)})),s=function(e,t,n){var i,o=e.parentNode;o&&(n=pe(e,o,n),(i=he(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=i.detail.width)&&n!==e._lazysizesWidth&&r(e,o,i,n))},{_:function(){a=t.getElementsByClassName(o.autosizesClass),ee("resize",l)},checkElems:l=be((function(){var e,t=a.length;if(t)for(e=0;e<t;e++)s(a[e])})),updateElem:s}),ke=function(){!ke.i&&t.getElementsByClassName&&(ke.i=!0,xe._(),we._())};return te((function(){o.init&&ke()})),i={cfg:o,autoSizer:xe,loader:we,init:ke,uP:fe,aC:ce,rC:ue,hC:le,fire:he,gW:pe,rAF:me}}(Le,Le.document,Date),Le.lazySizes=ze,Ie&&(Ie=ze),document.addEventListener("lazyloaded",(function(e){var t=e.target.closest(".group-async");t&&t.classList.add("group");var n=e.target.closest("figure.cmoa-image");if(n){var i=e.target.naturalHeight>=e.target.naturalWidth?"portrait":"landscape";n.classList.add("orientation-".concat(i))}})),te('[data-component~="video-load"]',{init:function(){this.$parent=this.element.closest(".group-async")},oncanplay:function(e){e.target.classList.add("video-canplay"),this.$parent&&this.$parent.classList.add("group")}});var Fe={};Fe=function(e){return e.replace(/ 'n' /gim," ânâ ").replace(/'n'/gim,"ânâ").replace(/(\S)'(\S)/gim,"$1â$2").replace(/'(\d0s)/gim,"â$1")};var Ne={};
1Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.default=function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t.locale;if(-1===Object.keys(_e.default).indexOf(n))return e;var i=_e.default[n],o="",a=/(^|\s)(?:"(.*?)"|'(.*?)')(\s|$|\.|,|\?|!)/gim,r=function(e,t){return function(i){var r=arguments.length<=1||void 0===arguments[1]?"":arguments[1],s=arguments.length<=4||void 0===arguments[4]?"":arguments[4],l=(arguments.length<=2||void 0===arguments[2]?"":arguments[2])+(arguments.length<=3||void 0===arguments[3]?"":arguments[3]);return t&&(l=l.replace(a,t)),"fr"===n&&(o=" "),""+r+e[0]+o+l+o+e[1]+s}};return e.replace(a,r(i.slice(0,2),r(i.slice(2,4))))};var Be,_e=(Be={af:"ââââ",sq:"ââââ",az:"«»â¹âº",eu:"«»â¹âº",be:"«»ââ",bg:"ââââ",ca:"«»ââ","zh-Hans":"ââââ",hr:"ââââ",cs:"ââââ",da:"»«âºâ¹",nl:"ââââ","en-uk":"ââââ","en-us":"ââââ",eo:"ââââ",et:"ââ«»",fil:"ââââ",fi:"ââââ",fr:"«»ââ","fr-sw":"«»â¹âº",ka:"ââââ",de:"ââââ","de-sw":"«»â¹âº",el:"«»ââ",he:"\"\"''",hu:"â⻫",is:"ââââ",id:"ââââ",ga:"ââââ",it:"«»ââ","it-sw":"«»â¹âº",ko:"ââââ",lv:"«»ââ",mk:"ââââ",no:"«»ââ",pl:"ââ«»","pt-br":"ââââ","pt-pl":"«»ââ",ro:"ââ«»",ru:"«»ââ",sr:"ââââ",sk:"ââââ",sl:"ââââ",es:"«»ââ",sv:"ââââ",th:"ââââ",tr:"ââââ",uk:"«»ââ",cy:"ââââ"})&&Be.__esModule?Be:{default:Be};Ne=Ne.default;function He(t){return t?e(Ne)(e(Fe)(t),{locale:"en-us"}):""}te('[data-component~="collection-items"]',{init:function(){var e=this;try{var t=JSON.parse(this.element.dataset.collectionIds);this.collectionIds=t.map((function(e){return e.id})),this.collectionAlts=t.reduce((function(e,t){return e[t.id]=t.alt,e}),{})}catch(e){this.collectionIds=[]}if(this.collectionIds.length){this.randomize="1"===this.element.dataset.collectionRandomize,this.randomize&&(this.collectionIds=De(this.collectionIds)),this.collectionUrl=this.element.dataset.collectionUrl;var n=[];if("fill"===this.element.dataset.collectionRows)n=this.collectionIds;else{var i=(parseInt(this.element.dataset.collectionColumns)||5)*(parseInt(this.element.dataset.collectionRows)||1);n=this.collectionIds.slice(0,i)}n=n.map((function(e){return e.startsWith("cmoa:objects/")?e:"cmoa:objects/".concat(e)})),this.fetchObjectsFromCollectionApi(n).then((function(t){e.objects=t,e.renderObjects()})).catch((function(){e.renderError()}))}else this.renderEmpty()},renderObjects:function(){var e=this;this.element.innerHTML="",this.objects.forEach((function(t){var n,i,o,a,r,s,l,c,u=null===(n=t._source)||void 0===n?void 0:n.title,d=null===(i=t._source)||void 0===i||null===(o=i.creators)||void 0===o||null===(a=o[0])||void 0===a?void 0:a.name,h=null===(r=t._source)||void 0===r?void 0:r.creation_date.reduce((function(e,t){return e&&e!==t?"".concat(e," - ").concat(t):t})).replace("-","â"),f=null===(s=t._source)||void 0===s?void 0:s.images.find((function(e){return e.permitted})),v=e.collectionUrl+"/"+t._id.replace("cmoa:objects","objects"),p=t._id.replace("cmoa:objects/",""),m=e.collectionAlts[p]?'alt="'.concat(e.collectionAlts[p],'"'):"",g=!1,y=!1;if(f&&f.irn&&f.filename){var b,w=x(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.split(/[\\/]/).pop().split(/\.(\w+)$/);return t?n.join():n}(null==f?void 0:f.filename,!1),1),k=w[0],S="".concat(k,"-840.jpg");g=encodeURI("https://cmoa-collection-images.s3.amazonaws.com/".concat(null===(b=t._source)||void 0===b?void 0:b.type,"/").concat((l=null==f?void 0:f.irn,l.toString().padStart(4,"0")),"/sizes/").concat(S)),y="aspect-ratio:".concat(f.width,"/").concat(f.height,";")}e.element.appendChild((c='\n <div class="flex-1">\n <div data-sublink>\n <figure>\n '.concat(g?'<img src="'.concat(g,'" style="').concat(y,'" ').concat(m," />"):'<div class="aspect-4/3 border border-black"></div>','\n </figure>\n <div class="pt-lh-0.4">\n <a class="font-bold" href="').concat(v,'">').concat(He(d),"</a>\n <div>").concat(He(u),'</div>\n </div>\n <div class="pt-lh-0.25 text-sm metadata">').concat(h,"</div>\n </dev>\n </div>\n "),(new DOMParser).parseFromString(c,"text/html").body.firstChild))}))},renderEmpty:function(){this.element.innerHTML="No collection objects found."},renderError:function(){this.element.innerHTML="There was an error fetching objects from the collection."},fetchObjectsFromCollectionApi:function(e){return je((function(){var t;return Se(this,(function(n){switch(n.label){case 0:return[4,fetch("/wp-json/cmoa-api/v1/fetch-collection-data",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({object_ids:e})})];case 1:if(!(t=n.sent()).ok)throw new Error("Error fetching data: ".concat(t.statusText));return[4,t.json()];case 2:return[2,n.sent()]}}))}))()}});var We={};window,We=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
vendor: 6,263 bytes, line 1
1),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([function(e,t){e.exports=function(e){var t=void 0===e?"undefined":we(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var i=n(0),o=n(7),a=n(10),r=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,h,f,v=function(t){var n=l,i=c;return l=c=void 0,b=t,d=e.apply(i,n)},p=function(e){return b=e,h=setTimeout(S,t),w?v(e):d},m=function(e){var n=e-f;return void 0===f||n>=t||n<0||x&&e-b>=u},g=function(e){return h=void 0,k&&l?v(e):(l=c=void 0,d)},y=function(){var e=o(),n=m(e);if(l=arguments,c=this,f=e,n){if(void 0===h)return p(f);if(x)return clearTimeout(h),h=setTimeout(S,t),v(f)}return void 0===h&&(h=setTimeout(S,t)),d},b=0,w=!1,x=!1,k=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function S(){var e=o();if(m(e))return g(e);h=setTimeout(S,function(e){var n=t-(e-f);return x?s(n,u-(e-b)):n}(e))}return t=a(t)||0,i(n)&&(w=!!n.leading,u=(x="maxWait"in n)?r(a(n.maxWait)||0,t):u,k="trailing"in n?!!n.trailing:k),y.cancel=function(){void 0!==h&&clearTimeout(h),b=0,l=f=c=h=void 0},y.flush=function(){return void 0===h?d:g(o())},y}},function(e,t,n){var i=n(1),o=n(0);e.exports=function(e,t,n){var a=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,r="trailing"in n?!!n.trailing:r),i(e,t,{leading:a,maxWait:t,trailing:r})}},function(e,t,n){var i=n(8),o="object"==typeof self&&self&&self.Object===Object&&self,a=i||o||Function("return this")();e.exports=a},function(e,t,n){var i=n(3).Symbol;e.exports=i},function(e,t,n){!function(){"use strict";e.exports={polyfill:function(){var e=function(e,t){this.scrollLeft=e,this.scrollTop=t},t=function(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")},n=function(e,t){return"Y"===t?e.clientHeight+f<e.scrollHeight:"X"===t?e.clientWidth+f<e.scrollWidth:void 0},i=function(e,t){var n=s.getComputedStyle(e,null)["overflow"+t];return"auto"===n||"scroll"===n},o=function(e){var t=n(e,"Y")&&i(e,"Y"),o=n(e,"X")&&i(e,"X");return t||o},a=function(e){for(;e!==l.body&&!1===o(e);)e=e.parentNode||e.host;return e},r=function(t,n,i){var o,a,r,c,u=h();t===l.body?(o=s,a=s.scrollX||s.pageXOffset,r=s.scrollY||s.pageYOffset,c=d.scroll):(o=t,a=t.scrollLeft,r=t.scrollTop,c=e),v({scrollable:o,method:c,startTime:u,startX:a,startY:r,x:n,y:i})},s=window,l=document;if(!("scrollBehavior"in l.documentElement.style)||!0===s.__forceSmoothScrollPolyfill__){var c,u=s.HTMLElement||s.Element,d={scroll:s.scroll||s.scrollTo,scrollBy:s.scrollBy,elementScroll:u.prototype.scroll||e,scrollIntoView:u.prototype.scrollIntoView},h=s.performance&&s.performance.now?s.performance.now.bind(s.performance):Date.now,f=(c=s.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(c)?1:0);s.scroll=s.scrollTo=function(){void 0!==arguments[0]&&(!0!==t(arguments[0])?r.call(s,l.body,void 0!==arguments[0].left?~~arguments[0].left:s.scrollX||s.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:s.scrollY||s.pageYOffset):d.scroll.call(s,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:s.scrollX||s.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:s.scrollY||s.pageYOffset))},s.scrollBy=function(){void 0!==arguments[0]&&(t(arguments[0])?d.scrollBy.call(s,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):r.call(s,l.body,~~arguments[0].left+(s.scrollX||s.pageXOffset),~~arguments[0].top+(s.scrollY||s.pageYOffset)))},u.prototype.scroll=u.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==t(arguments[0])){var e=arguments[0].left,n=arguments[0].top;r.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===n?this.scrollTop:~~n)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");d.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},u.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==t(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):d.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},u.prototype.scrollIntoView=function(){if(!0!==t(arguments[0])){var e=a(this),n=e.getBoundingClientRect(),i=this.getBoundingClientRect();e!==l.body?(r.call(this,e,e.scrollLeft+i.left-n.left,e.scrollTop+i.top-n.top),"fixed"!==s.getComputedStyle(e).position&&s.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):s.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}else d.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function v(e){var t,n,i,o,a=(h()-e.startTime)/468;o=a=a>1?1:a,t=.5*(1-Math.cos(Math.PI*o)),n=e.startX+(e.x-e.startX)*t,i=e.startY+(e.y-e.startY)*t,e.method.call(e.scrollable,n,i),n===e.x&&i===e.y||s.requestAnimationFrame(v.bind(s,e))}}}}()},function(e,t){var n=function(e,t){t=t||{};var n,o,s,l=[],d=[],h=e.querySelectorAll(c);for(t.includeContainer&&u.call(e,c)&&(h=Array.prototype.slice.apply(h)).unshift(e),n=0;n<h.length;n++)i(o=h[n])&&(0===(s=a(o))?l.push(o):d.push({documentOrder:n,tabIndex:s,node:o}));
1return d.sort(r).map((function(e){return e.node})).concat(l)},i=function(e){return!(!o(e)||function(e){return function(e){return s(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||a(e)<0)},o=function(e){return!(e.disabled||function(e){return s(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))},a=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t},r=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},s=function(e){return"INPUT"===e.tagName},l=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],c=l.join(","),u="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;n.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==u.call(e,c)&&i(e)},n.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==u.call(e,d)&&o(e)};var d=l.concat("iframe").join(",");e.exports=n},function(e,t,n){var i=n(3);e.exports=function(){return i.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(9))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var i=n(11),o=n(0),a=n(13),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):r.test(e)?NaN:+e}},function(e,t,n){var i=n(12),o=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(o,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var i=n(14),o=n(17);e.exports=function(e){return"symbol"==(void 0===e?"undefined":we(e))||o(e)&&"[object Symbol]"==i(e)}},function(e,t,n){var i=n(4),o=n(15),a=n(16),r=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?o(e):a(e)}},function(e,t,n){var i=n(4),o=Object.prototype,a=o.hasOwnProperty,r=o.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(e){}var o=r.call(e);return i&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";var i=function(e){return Array.prototype.slice.call(e)},o=function(e,t){return e?i((t||document).querySelectorAll(e)):[]},a=function(e,t){return"string"==typeof e?o(e,t):e instanceof Element?[e]:e?Array.prototype.slice.call(e):[]},r=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s=function(e){return e&&"Object"===e.constructor.name},l=function(e,t,n){return e=Math.min(n,e),Math.max(t,e)},c=function(e,t){return t.reduce((function(t,n){return t[n]=e[n],t}),{})},u=function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n},d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},h=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},f=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},v=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}};n.r(t);var p=function(e){var t=e.Element.prototype;"function"!=typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)++n;return Boolean(t[n])}),"function"!=typeof t.closest&&(t.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})},m=n(5),g=n.n(m),y=n(6),b=n.n(y),w=n(1),x=n.n(w),k=n(2),S=n.n(k),E=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e={passive:!0}}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(e){}return e}();function C(e){return(C="function"==typeof Symbol&&"symbol"==we(Symbol.iterator)?function(e){return void 0===e?"undefined":we(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":we(e)})(e)}"function"==typeof Object.values&&Object.values;var T=n(19),O=1,M=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,e),this.terms={prev:/(prev|back|before|left|up)/,next:/(next|forward|after|right|down)/},this.callbacks={load:[],change:[],"change.click":[],"change.scroll":[],"change.keydown":[],"change.focusin":[],scroll:[],"scroll.start":[],"scroll.end":[]},this.init(t,n),this.container&&(this.watchForChanges(),this.container.SnapSlider=this,window._SnapSliders[this.id]=this)}var t,n,u;return u=[{key:"isValidIndex",value:function(e){return["first","middle","last","prev","next"].indexOf(e)>=0||parseInt(e,10)>=1}},{key:"getButtonTarget",value:function(e){var t=e?e.getAttribute("data-snap-slider-goto"):"";if(!t)return{};var n=t.split(":").map((function(e){return e.trim()})),i=n.pop(),o=n.pop();if(!o){var a=e.closest("[data-snap-slider-nav]"),r=e.closest("[data-snap-slider]");a&&(o=a.getAttribute("data-snap-slider-nav")),r&&(o=r.getAttribute("data-snap-slider"))}if(!o){var s=e.closest("data-snap-slider");s&&(o=s.getAttribute("data-snap-slider"))}return{sliderID:o,index:i}}},{key:"handleGoto",value:function(t){var n=t.target.closest("[data-snap-slider-goto]"),i=e.getButtonTarget(n),o=i.sliderID,a=i.index,r=window._SnapSliders[o];r&&r.goto(a,null,t)}},{key:"isRelative",value:function(e){return"prev"===e||"next"===e}},{key:"notFound",value:function(e){console.log("\nð¢ Oh no! Snap Slider couldn't find a slider for \"".concat(e,"\".\n\n-------------------------------------------------------------------------------------------\nâ¹ï¸ NOTE: Make sure the elements you're trying to debug have a `data-snap-slider` attribute.\n-------------------------------------------------------------------------------------------\n\n"))}},{key:"get",value:function(e){return window._SnapSliders[e]}},{key:"debug",value:function(t){var n=[];0===arguments.length&&(t="[data-snap-slider]"),"string"==typeof t&&r(window._SnapSliders,t)&&(t='[data-snap-slider="'.concat(t,'"]')),(n=a(t)).length?n.forEac
vendor: 8,754 bytes, line 1
1h((function(i,a){var r=i.closest("[data-snap-slider-goto]"),s=i.closest("[data-snap-slider-nav]"),l=i.closest("[data-snap-slider]"),c=n.length>1?"#".concat(a+1," "):"";if(r){var u=e.getButtonTarget(r),d=window._SnapSliders[u.sliderID],h=u.index,f=e.isValidIndex(h)?'"'.concat(h,'"'):'ð« "'.concat(h,'" - Yikes! This index is invalid.\n\nUse a positive number instead, or one of the following aliases:\n\n ').concat(["first","middle","last","prev","next"].map((function(e){return"â¢Â ".concat(e)})).join("\n")),v=u.sliderID?'"'.concat(u.sliderID,'"'):"ð¤·ââï¸ We couldn't find any.\n\n â¢Â Make sure your button is inside a `data-snap-slider-nav` element, or...\n â¢Â Include the slider ID you want to target in your `data-snap-slider-goto` attribute.\n ⦠For example, `data-snap-slider-goto=\"example-slider:".concat(u.index||"prev",'"`.'),p='ð¤·ââï¸ We couldn\'t find any.\n\n â¢Â Double check that your slider ID is correct (ð).\n â¢Â Make sure your slider has the same ID in its `data-snap-slider` attribute.\n ⦠For example, `data-snap-slider="example-slider"`.',m="ð¤·ââï¸ We couldn't find any.\n\n â¢Â Double check that your index is valid (ð).\n â¢Â Make sure a slide actually exists at that index (ð).",g="ð¤·ââï¸ We couldn't find any.\n\n â¢Â Double check that your index is valid (ð).\n â¢Â Make sure a slide actually exists at that index.\n â¢Â Make sure your slider recognizes the slide element as a slide.";return d&&d.container&&(p=d.container,m=d.getIndexNumber(h),g=d.getSlide(h)),T.section({heading:"ð¹ Button ".concat(c),description:r,groups:[{heading:"1. What slider is this button targeting?",items:[{heading:"Slider ID",description:v},{heading:"Slider Element",description:p},{heading:"Slider Object",description:d||"ð¤·ââï¸ We couldn't find any."}]},{heading:"2. Which slide will it go to?",items:[{heading:"Slide Index",description:f},{heading:"Slide Index (Number)",description:m},{heading:"Slide Element",description:g}]}],collapsed:!0})}if(s){var y=s.getAttribute("data-snap-slider-nav"),b=window._SnapSliders[y],w=o("[data-snap-slider-goto]",s);y=y?'"'.concat(y,'"'):'ð¤·ââï¸ We couldn\'t find any.\n\n â¢Â Include the slider ID you want to target in your `data-snap-slider-nav` attribute.\n ⦠For example, `data-snap-slider-nav="example-slider"`.';var x="ð¤·ââï¸ We couldn't find any.\n\n â¢Â Make sure the ID in your container's `data-snap-slider` attribute and the ID in your nav's `data-snap-slider-nav` attribute both match.";return w.length||(w="ð¤·ââï¸ We couldn't find any.\n\n â¢Â Make sure your buttons have a `data-snap-slider-goto` attribute."),b&&b.container&&(x=b.container),T.section({heading:"ðº Navigation ".concat(c),description:s,groups:[{heading:"1. What slider is this nav targeting?",items:[{heading:"Slider ID",description:y},{heading:"Slider Element",description:x},{heading:"Slider Object",description:b||"ð¤·ââï¸ We couldn't find any."}]},{heading:"2. What buttons are in this nav?",items:[{heading:"Buttons",description:w}]}],collapsed:!0})}if(l){var k=l.getAttribute("data-snap-slider"),S=window._SnapSliders[k],E=o('[data-snap-slider-nav="'.concat(k,'"]')),C=S?S.getButtons():[];return k=k?'"'.concat(k,'"'):'ð¤·ââï¸ We couldn\'t find any.\n\n â¢Â Include the slider ID you want in your `data-snap-slider` attribute.\n ⦠For example, `data-snap-slider="example-slider"`.',E.length||(E="ð¤·ââï¸ We couldn't find any.\n\n â¢Â Make sure the ID in your container's `data-snap-slider` attribute and the ID in your nav's `data-snap-slider-nav` attribute both match."),C.length||(C='ð¤·ââï¸ We couldn\'t find any.\n\n â¢Â Make sure your button is inside a `data-snap-slider-nav` element, or...\n â¢Â Include the slider ID you want to target in your `data-snap-slider-goto` attribute.\n ⦠For example, `data-snap-slider-goto="example-slider:prev"`.'),T.section({heading:"𥨠Slider ".concat(c),description:l,groups:[{heading:"1. What slider is this?",items:[{heading:"Slider ID",description:k},{heading:"Slider Object",description:S||"ð¤·ââï¸ We couldn't find any."}]},{heading:"2. What navs target this slider?",items:[{heading:"Navs",description:E}]},{heading:"3. What buttons target this slider?",items:[{heading:"Buttons",description:C}]}],collapsed:!0})}return e.notFound(t)})):e.notFound(t)}}],n=[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(e)&&(t=e),this.options=d({container:e,id:"",slides:"",nav:"",buttons:"",prev:"",next:"",start:0,loop:null,on:{}},t);var n=a(this.options.container).shift();if(n){for(var i in this.container=n,this.options.buttons=t.buttons||this.container.getAttribute("data-snap-slider-buttons"),this.options.prev=t.prev||this.container.getAttribute("data-snap-slider-prev"),this.options.next=t.next||this.container.getAttribute("data-snap-slider-next"),this.id=this.getMaybeSetID(n,this.options.id),this.slides=this.getMaybeSetSlides(n,this.options.slides),this.align=this.getMaybeSetAlign(n,this.options.align),this.current=this.getMaybeSetStart(n,this.options.start),this.loop=this.getMaybeSetLoop(n,this.options.loop),this.transition=null,this.scrolling=!1,this.options.on)r(this.options.on,i)&&this.on(i,this.options.on[i]);var o=c(this.options,["buttons","prev","next"]);this.addGotoButtons(d(d({},o),{},{container:n})),this.addNav('[data-snap-slider-nav="'.concat(this.id,'"]'),o),this.options.nav&&this.addNav(this.options.nav,o),this.update()}else console.log("\nð« Whoops! Snap Slider can't find a container element matching \"".concat(this.options.container,"\".\n\nð Please check your selectors for typos. Make sure the element actually exists\n in the DOM when Snap Slider tries to initialize it.\n\nð Here's a copy of the options you tried to initialize with for debugging:\n\n"),this.options,"\n\n")}},{key:"getMaybeSetID",value:function(e,t){return(t=t||e.getAttribute("data-snap-slider")||e.id)||(t="slider-".concat(O),O+=1),e.setAttribute("data-snap-slider",t),t}},{key:"getMaybeSetSlides",value:function(e,t){t=t&&"string"==typeof t?t:e.getAttribute("data-snap-slider-slides"),e.setAttribute("data-snap-slider-slides",t||"");var n=t?a(t,e):i(e.children);return n.forEach((function(e){return e.setAttribute("tabindex","-1")})),n}},{key:"getMaybeSetAlign",value:function(e,t){return t=t||e.getAttribute("data-snap-slider-align")||"",e.setAttribute("data-snap-slider-align",t),t}},{key:"getMaybeSetStart",value:function(t,n){return e.isValidIndex(n)||(n=t.getAttribute("data-snap-slider-start")||1),t.setAttribute("data-snap-slider-start",n),n}},{key:"getMaybeSetLoop",value:function(e,t){return t="boolean"==typeof t?t:"true"===e.getAttribute("data-snap-slider-loop"),e.setAttribute("data-snap-slider-loop",t),t}},{key:"getSnapAlign",value:function(e){var t=function(e,t){var n=window.getComputedStyle(e);return n&&r(n,t)?n[t]:""}(e,"scrollSnapAlign");return t&&t.indexOf("none")<0?t:function(e,t){return e&&(e=e.closest("[".concat(t,"]")))?e.getAttribute(t):""}(e,"data-snap-slider-align")||"start"}},{key:"getSlide",value:function(e){return e=this.getIndexNumber(e),this.slides[e-1]}},{key:"getCurrentSlide",value:function(){return this.slides[this.current-1]}},{key:"getIndexNumber",value:function(e){var t;return t="first"===e?1:"middle"===e?Math.ceil(this.slides.length/2):"last"===e?this.slides.length:"prev"===e?this.current-1:"next"===e?this.current+1:parseInt(e,10)||-1,this.loop?(t<1&&(t=this.slides.length),t>this.slides.length&&(t=1)):(t<1||t>this.slides.length)&&(t=-1),t||1}},{key:"getScrollOffset",value:function(e){var t=this.container,n=this.getSnapAlign(e),i=e.offsetTop,o=e.offsetLeft;return n.indexOf("center")>=0?(i=e.offsetTop+e.offsetHeight/2-t.offsetHeight/2,o=e.offsetLeft+e.offsetWidth/2-t.offsetWidth/2):n.indexOf("end")>=0&&(i=e.offsetTop-t.offsetHeight+e.offsetHeight,o=e.offsetLeft-t.offsetWidth+e.offsetWidth),{top:i=l(i,0,t.scrollHeight),left:o=l(o,0,t.scrollWidth)}}},{key:"goto",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;t=d({focus:!0,force:!1,ignoreCallbacks:!1,immediate:!1},t);var i=this.getIndexNumber(e);if(!t.force&&i===this.current)return!1;var o=this.getSlide(i);if(!o)return!1;var a=this.getScrollOffset(o),r=a.top,s=a.left;return t.immediate?this.container.scroll({top:r,left:s}):(this.startTransition(i),this.container.scroll({top:r,left:s,behavior:"smooth"})),this.current=i,this.fireEvent("change",n,t),!0}},{key:"buildGoto",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="";return e||(n+="".concat(this.id,":")),n+t}},{key:"setGoto",value:function(e,t){var n=this;
vendor: 4,473 bytes, line 1
1(e=a(e)).forEach((function(e){e.setAttribute("data-snap-slider-goto",n.buildGoto(e.closest("[data-snap-slider], [data-snap-slider-nav]"),t))}))}},{key:"startTransition",value:function(e){var t=this;this.transition={from:this.current,to:e,diff:Math.abs(e-this.current)};var n=this.transition.to;this.checkTransition&&clearTimeout(this.checkTransition),this.checkTransition=setTimeout((function(){t.transition.to===n&&t.stopTransition()}),1e3)}},{key:"stopTransition",value:function(){this.transition=null,clearTimeout(this.checkTransition)}},{key:"isPrevButton",value:function(e){return!!(e=a(e).shift())&&((e.getAttribute("data-snap-slider-goto")||"").match(/\bprev$/)||e.textContent.toLowerCase().match(this.terms.prev)||e.className.toLowerCase().match(this.terms.prev))}},{key:"isNextButton",value:function(e){return!!(e=a(e).shift())&&((e.getAttribute("data-snap-slider-goto")||"").match(/\bnext$/)||e.textContent.toLowerCase().match(this.terms.next)||e.className.toLowerCase().match(this.terms.next))}},{key:"isCurrent",value:function(t){return!e.isRelative(t)&&this.getIndexNumber(t)===this.current}},{key:"addGotoButtons",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(e)&&(n=e);var i=a((n=d({container:"",buttons:e,prev:"",next:""},n)).buttons,n.container),o=a(n.prev,n.container),r=a(n.next,n.container);o.forEach((function(e){return e.hasAttribute("data-snap-slider-goto")||t.setGoto(o,"prev")})),r.forEach((function(e){return e.hasAttribute("data-snap-slider-goto")||t.setGoto(r,"next")}));var l=1;return i.forEach((function(e){if(e.hasAttribute("data-snap-slider-goto"))return null;if(t.isPrevButton(e))return t.setGoto(e,"prev");if(t.isNextButton(e))return t.setGoto(e,"next");var n=parseInt(e.textContent.replace(/.*\b(\d+)\b.*/,"$1"),10)||l;return l=n+1,t.setGoto(e,n)})),this.updateButtons(),!0}},{key:"getNavs",value:function(){var e=this;return o("[data-snap-slider-nav]").filter((function(t){return t.getAttribute("data-snap-slider-nav")===e.id}))}},{key:"getButtons",value:function(){var t=this;return o("[data-snap-slider-goto]").filter((function(n){return e.getButtonTarget(n).sliderID===t.id}))}},{key:"updateButtons",value:function(){var t=this;this.current&&this.getButtons().forEach((function(n){var i=e.getButtonTarget(n).index;t.isCurrent(i)?n.classList.add("is-current"):n.classList.remove("is-current"),!t.loop&&e.isRelative(i)&&("prev"===i&&1===t.current||"next"===i&&t.current===t.slides.length?n.classList.add("is-disabled"):n.classList.remove("is-disabled"))}))}},{key:"updateSlides",value:function(){var e=this;this.slides.forEach((function(t,n){n===e.current-1?(t.classList.add("is-current"),t.removeAttribute("aria-hidden"),o("[data-snap-slider-tabindex]",t).forEach((function(e){e.removeAttribute("tabindex")}))):(t.classList.remove("is-current"),t.setAttribute("aria-hidden","true"),b()(t).forEach((function(e){e.setAttribute("tabindex","-1"),e.setAttribute("data-snap-slider-tabindex","")})))}))}},{key:"addNav",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(e)&&(n=e);var i=a((n=d({container:e,buttons:"",prev:"",next:""},n)).container);return!!i.length&&(i.forEach((function(e){e.setAttribute("data-snap-slider-nav",t.id);var i=e.getAttribute("data-snap-slider-buttons")||n.buttons||"button",o=n.prev||e.getAttribute("data-snap-slider-prev"),a=n.next||e.getAttribute("data-snap-slider-next");t.addGotoButtons({container:e,buttons:i,prev:o,next:a})})),!0)}},{key:"getClosest",value:function(){var e=this;return this.slides.reduce((function(t,n,i){i+=1;var o=e.getScrollOffset(n),a={index:i,slide:n,diff:{top:Math.abs(e.container.scrollTop-o.top),left:Math.abs(e.container.scrollLeft-o.left)}};return t?a.diff.left<=t.diff.left&&a.diff.top<=t.diff.top?a:t:a}),!1)}},{key:"watchForChanges",value:function(){var e=this;this.scrollListener=S()((function(t){var n=e.getClosest();e.transition||n.index===e.current||(e.current=n.index,e.fireEvent("change",t)),e.scrolling||(e.scrolling=!0,e.fireEvent("scroll.start",t)),e.fireEvent("scroll",t)}),250),this.scrollEndListener=x()((function(t){e.scrolling=!1,e.fireEvent("scroll.end",t),e.stopTransition()}),250),this.arrowKeyListener=S()((function(t){if(!t.defaultPrevented){var n=["Up","ArrowUp","Left","ArrowLeft"].indexOf(t.key)>=0,i=["Down","ArrowDown","Right","ArrowRight"].indexOf(t.key)>=0;(n||i)&&(e.goto(i?"next":"prev",null,t),t.preventDefault())}}),250),this.focusListener=function(t){var n,i;
vendor: 4,190 bytes, line 1
1e.scrolling&&!e.transition||(e.slides.forEach((function(e,o){e.contains(t.target)&&(n=e,i=o+1)}),null),n&&e.goto(i,null,t))},this.resizeObserver={observe:function(){},disconnect:function(){}},"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver(this.resizeCallback.bind(this))),setTimeout((function(){e.container.addEventListener("scroll",e.scrollListener,E),e.container.addEventListener("scroll",e.scrollEndListener,E),e.container.addEventListener("keydown",e.arrowKeyListener),e.container.addEventListener("focusin",e.focusListener),e.resizeObserver.observe(e.container),e.fireEvent("load")}),100)}},{key:"hasLoaded",value:function(){this.container.classList.add("has-loaded")}},{key:"update",value:function(){this.goto(this.current,{focus:!1,force:!0,ignoreCallbacks:!0,immediate:!0})}},{key:"destroy",value:function(){for(var e in this.stopTransition(),this.container.removeEventListener("scroll",this.scrollListener),this.container.removeEventListener("scroll",this.scrollEndListener),this.container.removeEventListener("keydown",this.arrowKeyListener),this.resizeObserver.disconnect(),this.callbacks)r(this.callbacks,e)&&(this.callbacks[e]=[]);delete this.container.SnapSlider,delete window._SnapSliders[this.id]}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.options;delete t.on,delete e.container,delete e.id,this.init(this.container,d(d({},t),e))}},{key:"resizeCallback",value:function(){this.update()}},{key:"fireEvent",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r(this.callbacks,e)&&(i=d({focus:!0,ignoreCallbacks:!1},i),"load"===e&&this.hasLoaded(),"change"===e&&(this.updateButtons(),this.updateSlides()),i.focus&&this.handleFocus(e,t),!i.ignoreCallbacks)){t=t||{};var o=[e];r(this.callbacks,"".concat(e,".").concat(t.type))&&o.push("".concat(e,".").concat(t.type)),o.forEach((function(e){n.callbacks[e].forEach((function(e){"function"==typeof e&&e(n,t)}))}))}}},{key:"handleFocus",value:function(t,n){if(this.transition){if(n&&"change"===t){var i=n.target.closest("[data-snap-slider-goto]"),o=e.getButtonTarget(i).index;if(e.isRelative(o))return}this.transition.diff<=1&&"change"===t&&this.getCurrentSlide().focus({preventScroll:!0}),this.transition.diff>1&&"scroll.end"===t&&(document.activeElement&&document.activeElement!==document.body&&!document.activeElement.closest("[data-snap-slider-goto]")||this.getCurrentSlide().focus({preventScroll:!0}))}}},{key:"on",value:function(e,t){r(this.callbacks,e)?"function"==typeof t?this.callbacks[e].push(t):console.log('\n ð« Whoops! Snap Slider can only add functions as callbacks.\n\n ð It looks like you passed a "'.concat(C(t),'" instead.\n\n'),t,"\n\n"):console.log("\nð« Whoops! Snap Slider can't add events for \"".concat(e,'".\n\nð Please make sure your event matches one of the ones in this list:\n\n'),Object.keys(this.callbacks),"\n\n")}}],v((t=e).prototype,n),u&&v(t,u),e}();window._SnapSliders=[],window.SnapSlider=M,"undefined"!=typeof $&&($.fn.snapSlider=function(e){return new M(this,e)}),function(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}((function(){p(window),g.a.polyfill(),o("[data-snap-slider]").forEach((function(e){return new M(e)})),function(e,t,n,i){var o=document.querySelector(e);o&&o.addEventListener(t,(function(e){for(var t=o.querySelectorAll(n),a=e.target,r=0,s=t.length;r<s;r+=1)for(var l=a,c=t[r];l&&l!==o;){if(l===c)return i.call(c,e);l=l.parentNode}}))}("body","click","[data-snap-slider-goto]",M.handleGoto)})),t.default=M},function(e,t,n){"use strict";var i=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n="",i=0;i<e;i+=1)n+=t;return n},o=function(e){return"object"===r(e)?"%o":"number"==typeof e?"%d":"%s"},a=function(e){var t=e.heading,n=e.description,a=e.groups,r=e.collapsed?"groupCollapsed":"group";console.log("%c\nâââ".concat(i(t.length,"â"),"âââ\nâ ").concat(t," â\nâââ").concat(i(t.length,"â"),"âââ"),"font-size: 1.25em;","\n\n",n,"\n\n"),a.forEach((function(e){var t;console[r]("%c".concat(e.heading),"font-weight: bold;");var n=[],i="";
1e.items.forEach((function(e){var t=e.heading,a=e.description;i+="\n%c".concat(o(t),"\n"),n.push("text-decoration: underline;",t),i+="\n%c".concat(o(a),"\n"),n.push("text-decoration: none;",a)})),(t=console).log.apply(t,[i].concat(n)),console.groupEnd()})),console.log("\n")};function r(e){return(r="function"==typeof Symbol&&"symbol"==we(Symbol.iterator)?function(e){return void 0===e?"undefined":we(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":we(e)})(e)}n.r(t),n.d(t,"getSubstitution",(function(){return o})),n.d(t,"section",(function(){return a}))}]).default;var qe;function Xe(){}qe=function(e,t,n,i){"function"==typeof t&&(i=n,n=t,t={});n=n||Xe,i=i||Xe;var o=!1,a=new window.IntersectionObserver((function(e){var t=e[0];("boolean"==typeof t.isIntersecting?t.isIntersecting:0!==t.intersectionRatio)?n(t):o&&i(t),o=!0}),t);return a.observe(e),function(){a.disconnect()}},function(){Date.now||(Date.now=function(){return(new Date).getTime()});for(var e=[],t=-1,n=!1,i=null,o=Date.now,a=0,r=["ms","moz","webkit","o"],s=0;s<r.length&&!window.requestAnimationFrame;++s)window.requestAnimationFrame=window[r[s]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[r[s]+"CancelAnimationFrame"]||window[r[s]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=o(),i=Math.max(0,16-(n-a)),r=window.setTimeout((function(){e(n+i)}),i);return a=n+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),window.setRafInterval=function(a,r){if(t++,e.push({id:t,fn:a,interval:r,lastTime:o()}),!n){var s=function(){i=requestAnimationFrame(s),function(e,t){if(Array.prototype.forEach)e.forEach(t);else for(var n=0,i=e.length;n<i;n++)t(e[n],n)}(e,(function(e){(e.interval<17||o()-e.lastTime>=e.interval)&&(e.fn(),e.lastTime=o())}))};n=!0,s()}return t},window.clearRafInterval=function(t){for(var o=0,a=e.length;o<a;o++)if(t===e[o].id){e.splice(o,1);break}0===e.length&&(cancelAnimationFrame(i),n=!1)}}(),te('[data-component~="home-slider"]',{init:function(){this.$slider=this.element.querySelector("[data-slider]"),this.$autoplayControl=this.element.querySelector("#autoplay-control"),this.$bulletsContainer=this.element.querySelector(".bullets-container"),this.$bullets=Array.from(this.element.querySelectorAll(".slider-bullet")),this.autoplayTimer=null,this.autoplayDuration=5e3,this.hovered=!1,this.inViewport=!1,this.handleSlideChange=this.handleSlideChange.bind(this),this.handleAutoplayCheckbox=this.handleAutoplayCheckbox.bind(this),this.handleSliderEnter=this.handleSliderEnter.bind(this),this.handleSliderExit=this.handleSliderExit.bind(this),this.handleSliderFocus=this.handleSliderFocus.bind(this),this.handleInterfaceEnter=this.handleInterfaceEnter.bind(this),this.handleInterfaceExit=this.handleInterfaceExit.bind(this),this.handleBulletClick=this.handleBulletClick.bind(this),this.handleModal=this.handleModal.bind(this)},connected:function(){this.setupSlider(),this.setupIntersect(),this.setupAutoplayCheckbox(),this.setupBullets(),this.setupHoverAutoplayPause(),this.setupFocusAutoplayPause(),this.setupModalAutoplayPause()},disconnected:function(){var e=this;this.slider.destroy(),this.clearAutoplayTimer(),this.$autoplayControl.removeEventListener("change",this.handleAutoplayCheckbox),this.$bulletsContainer.removeEventListener("mouseenter",this.handleInterfaceEnter),this.$bulletsContainer.removeEventListener("mouseleave",this.handleInterfaceExit),this.$bullets.forEach((function(t){t.removeEventListener("click",e.handleBulletClick)})),this.$slider.removeEventListener("mouseenter",this.handleInterfaceEnter),this.$slider.removeEventListener("mouseleave",this.handleInterfaceExit),this.$slider.removeEventListener("focus",this.handleSliderFocus),window.removeEventListener("cmoa:search-modal",this.handleModal),this.stopObserving&&this.stopObserving()},disableAutoplay:function(){this.clearAutoplayTimer(),this.$autoplayControl.checked=!1,this.slider.slides.forEach((function(e){var t=e.querySelector("video");t&&t.pause()}))},setupSlider:function(){this.slider=new(e(We))(this.$slider,{prev:"[data-prev]",next:"[data-next]",loop:!0,on:{change:this.handleSlideChange}})},setupIntersect:function(){this.stopObserving=e(qe)(this.$slider,this.handleSliderEnter,this.handleSliderExit)},setupAutoplayCheckbox:function(){this.$autoplayControl.addEventListener("change",this.handleAutoplayCheckbox)},startAutoplayTimer:function(){var e=this;clearRafInterval(this.autoplayTimer),this.autoplayTimer=setRafInterval((function(){e.slider.goto("next")}),this.autoplayDuration)},clearAutoplayTimer:function(){clearRafInterval(this.autoplayTimer)},setupBullets:function(){var e=this;this.$bulletsContainer.addEventListener("mouseenter",this.handleInterfaceEnter),this.$bulletsContainer.addEventListener("mouseleave",this.handleInterfaceExit),this.$bullets.forEac
1h((function(t){t.addEventListener("click",e.handleBulletClick)}))},setupHoverAutoplayPause:function(){this.$slider.addEventListener("mouseenter",this.handleInterfaceEnter),this.$slider.addEventListener("mouseleave",this.handleInterfaceExit)},setupFocusAutoplayPause:function(){this.$slider.addEventListener("focus",this.handleSliderFocus)},setupModalAutoplayPause:function(){window.addEventListener("cmoa:search-modal",this.handleModal)},handleSlideChange:function(){var e=this;this.$bullets.forEach((function(t,n){n+1===e.slider.current?t.classList.add("is-current"):t.classList.remove("is-current")})),this.slider.slides.forEach((function(t){var n=t.querySelector("video");if(n&&t.classList.contains("is-current"))return n.currentTime=0,void(e.$autoplayControl.checked&&n.play());n&&n.pause()})),this.$autoplayControl.checked&&!this.hovered&&this.inViewport&&this.startAutoplayTimer()},handleAutoplayCheckbox:function(){this.$autoplayControl.checked?(this.startAutoplayTimer(),this.slider.slides.forEach((function(e){var t=e.querySelector("video");t&&t.play()}))):this.disableAutoplay()},handleSliderEnter:function(){this.inViewport=!0,this.$autoplayControl.checked&&!this.hovered&&this.startAutoplayTimer()},handleSliderExit:function(){this.inViewport=!1,this.clearAutoplayTimer()},handleSliderFocus:function(){this.disableAutoplay()},handleInterfaceEnter:function(){this.hovered=!0,this.clearAutoplayTimer()},handleInterfaceExit:function(){this.hovered=!1,this.$autoplayControl.checked&&this.startAutoplayTimer()},handleModal:function(e){e.detail.open?(this.inViewport=!1,this.clearAutoplayTimer()):(this.inViewport=!0,this.$autoplayControl.checked&&this.startAutoplayTimer())},handleBulletClick:function(e){e.preventDefault();var t=this.getElementIndex(e.target);this.slider.goto(t+1),this.$bullets.forEach((function(e){return e.classList.remove("is-current")})),e.target.classList.add("is-current")},getElementIndex:function(e){for(var t=e.parentNode.children,n=0;n<t.length;n++)if(t[n]===e)return n;return-1}}),te('[data-component~="slider"]',{init:function(){this.slider=this.element.querySelector("[data-slider]"),this.slides=g(this.slider.children),this.prevButton=this.element.querySelector("[data-prev]"),this.nextButton=this.element.querySelector("[data-next]"),this.pageDots=this.element.querySelectorAll("[data-page-dot]"),this.currentIndex=0,this.updateCurrentSlide(),this.updatePageDots()},connected:function(){var e=this;this.prevButton&&this.nextButton&&(this.prevButton.addEventListener("click",(function(){return e.slide("prev")})),this.nextButton.addEventListener("click",(function(){return e.slide("next")}))),this.pageDots.forEach((function(t,n){t.addEventListener("click",(function(){return e.goToSlide(n)}))})),this.slider.addEventListener("scroll",(function(){return e.handleScroll()}))},disconnected:function(){var e=this;this.prevButton&&this.nextButton&&(this.prevButton.removeEventListener("click",(function(){return e.slide("prev")})),this.nextButton.removeEventListener("click",(function(){return e.slide("next")}))),this.pageDots.forEach((function(t){t.removeEventListener("click",(function(){return e.goToSlide(index)}))})),this.slider.removeEventListener("scroll",(function(){return e.handleScroll()}))},handleScroll:function(){var e=this.slider,t=e.scrollLeft,n=e.clientWidth,i=Math.round(t/n);this.currentIndex!==i&&(this.currentIndex=i,this.updateCurrentSlide(),this.updatePageDots())},slide:function(e){var t,n=this.slider,i=(n.scrollLeft,n.clientWidth);if("prev"===e)this.currentIndex=0===this.currentIndex?this.slides.length-1:this.currentIndex-1;else this.currentIndex=this.currentIndex===this.slides.length-1?0:this.currentIndex+1;t=this.currentIndex*i,this.slider.scroll({left:t,behavior:"smooth"})},goToSlide:function(e){var t=e*this.slider.clientWidth;this.slider.scroll({left:t,behavior:"smooth"}),this.currentIndex=e},updateCurrentSlide:function(){var e=this;this.slides.forEach((function(t,n){n===e.currentIndex?t.classList.add("is-current"):t.classList.remove("is-current")}))},updatePageDots:function(){var e=this;this.pageDots.forEach((function(t,n){n===e.currentIndex?t.classList.add("is-current"):t.classList.remove("is-current")}))}}),te('[data-component~="navigation-desktop"]',{init:function(){this.$upperNavigation=this.element.querySelector("#upper-navigation"),this.$lower
1Navigation=this.element.querySelector("#lower-navigation"),this.$sections=this.element.querySelectorAll(".menu-section"),this.$toggles=this.element.querySelectorAll("[data-toggle]"),this.handleToggleClick=this.handleToggleClick.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this),this.handleNavigateBack=this.handleNavigateBack.bind(this),this.handleElementLeave=this.handleElementLeave.bind(this)},connected:function(){var e=this;this.$toggles.forEach((function(t){t.addEventListener("click",e.handleToggleClick)})),this.element.addEventListener("click",this.handleOutsideClick),this.observerInstance=new IntersectionObserver(this.handleElementLeave),this.observerInstance.observe(this.$upperNavigation),window.addEventListener("pageshow",this.handleNavigateBack)},disconnected:function(){var e=this;this.$toggles.forEach((function(t){t.removeEventListener("click",e.handleToggleClick)})),this.element.removeEventListener("click",this.handleOutsideClick),window.removeEventListener("pageshow",this.handleNavigateBack),this.observerInstance.unobserve(this.$upperNavigation),this.observerInstance.disconnect()},handleToggleClick:function(e){"true"===e.target.getAttribute("aria-expanded")?this.closeSection(e.target.parentNode):this.openSection(e.target.parentNode)},handleOutsideClick:function(e){var t=e.target.closest(".section-active");t?this.closeSiblings(t):this.closeAll()},handleNavigateBack:function(e){e.persisted&&this.closeAll()},handleElementLeave:function(e){var t=this;e.forEach((function(e){e.isIntersecting||t.closeAll()}))},closeAll:function(){var e=this;this.$sections.forEach((function(t){return e.closeSection(t)})),this.$lowerNavigation.classList.remove("is-open")},closeSiblings:function(e){var t=this;this.$sections.forEach((function(n){n!==e&&t.closeSection(n)}))},openSection:function(e){e.classList.add("section-active"),e.firstElementChild.setAttribute("aria-expanded","true"),e.lastElementChild.setAttribute("aria-hidden","false"),this.$lowerNavigation.classList.add("is-open")},closeSection:function(e){e.classList.remove("section-active"),e.firstElementChild.setAttribute("aria-expanded","false"),e.lastElementChild.setAttribute("aria-hidden","true")}}),te('[data-component~="navigation-mobile"]',{init:function(){this.handleClick=this.handleClick.bind(this)},connected:function(){this.element.addEventListener("click",this.handleClick)},disconnected:function(){this.element.removeEventListener("click",this.handleClick)},handleClick:function(e){for(var t=e.target,n=null;t&&"DETAILS"!=t.tagName;)t=t.parentNode;t&&"DETAILS"==t.tagName&&(n=t),Array.from(this.element.querySelectorAll("details")).filter((function(e){return e.open&&e!=n})).forEach((function(e){return e.open=!1}))}}),te('[data-component~="page-modules"]',{init:function(){this.handleResize=this.handleResize.bind(this)},connected:function(){this.handleResize(),window.addEventListener("resize",this.handleResize)},disconnected:function(){window.removeEventListener("resize",this.handleResize)},handleResize:function(){this.hasNoVisibleChildren()?this.element.classList.add("hidden"):this.element.classList.remove("hidden")},hasNoVisibleChildren:function(){for(var e=this.element.children,t=0;t<e.length;t++){var n=e[t];if("none"!==window.getComputedStyle(n).display)return!1}return!0}}),te('[data-component~="hours"]',{init:function(){var e=this;this.fetchData(this.element.dataset.endpoint).then((function(t){var n=t.html;e.element.innerHTML=n||""}))},connected:function(){},disconnected:function(){},cacheData:function(e,t){var n={timestamp:Date.now(),data:t};sessionStorage.setItem(e,JSON.stringify(n))},getCachedData:function(e){var t=sessionStorage.getItem(e);if(!t)return null;var n=JSON.parse(t),i=n.timestamp,o=n.data;return Date.now()-i>6e4?(sessionStorage.removeItem(e),null):o},fetchData:function(e){return je((function(){var t,n;return Se(this,(function(i){switch(i.label){case 0:if(t=this.getCachedData(e))return[2,t];i.label=1;case 1:return i.trys.push([1,4,,5]),[4,fetch(e+"?t=".concat(Date.now()))];case 2:return[4,i.sent().json()];case 3:return n=i.sent(),this.cacheData(e,n),[2,n];case 4:return i.sent(),[2,null];case 5:return[2]}}
1))})).apply(this)}}),te('[data-component="play-pause"]',{init:function(){this.video=this.element.previousElementSibling,this.handleClick=this.handleClick.bind(this),this.handlePlay=this.handlePlay.bind(this),this.handlePause=this.handlePause.bind(this)},connected:function(){this.video&&(this.video.addEventListener("play",this.handlePlay),this.video.addEventListener("pause",this.handlePause),this.element.addEventListener("click",this.handleClick))},disconnected:function(){this.video&&(this.video.removeEventListener("play",this.handlePlay),this.video.removeEventListener("pause",this.handlePause),this.element.removeEventListener("click",this.handleClick))},handlePlay:function(){this.element.innerHTML="â¸",this.element.setAttribute("aria-pressed","false")},handlePause:function(){this.element.innerHTML="â¹",this.element.setAttribute("aria-pressed","true")},handleClick:function(){this.video.paused?this.video.play():this.video.pause()}});var $e={};!function(){"use strict";var e=function(e,o){if("string"!=typeof e)return e;switch(void 0===o?"undefined":we(o)){case"object":if(null==o.space||null==o.hyphen)throw new TypeError("widont: Must provide `space` & `hyphen` replacements");break;case"string":if(!(o in i))throw new TypeError("widont: Unknown replacements `"+o+"`");o=i[o];break;default:o=i.unicode}return e.replace(t,(function(e,t,i){return i.indexOf("-")>=0?t+" "+i.replace(n,o.hyphen):t+o.space+i}))},t=/([^\s])\s+([^\s]+)\s*$/,n=/-/g,i=e.replacements={unicode:{space:" ",hyphen:"â"},html:{space:" ",hyphen:"‑"},ascii:{space:"_",hyphen:"~"}};$e?(e.default=e,$e=e):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("widont",[],(function(){return e})):window.widont=e}(),te('[data-component~="widont"]',{init:function(){var e=this.element.innerText.trim().split(" "),t=e.length,n=e.slice(-1).join("").length,i=e.slice(-2).join("").length;t>3&&i<16&&n<12&&(this.element.innerHTML=$e(this.element.innerHTML))}});var Ye={}; 2/*! 3 * Colcade v0.2.0 4 * Lightweight masonry layout 5 * by David DeSandro 6 * MIT license 7 */function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ue(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ge(e)););return e}function Ge(e,t,n){return Ge="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Ue(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n||e):o.value}},Ge(e,t,n)}!function(e,t){"function"==typeof define&&define.amd?define(t):Ye?Ye=t():e.Colcade=t()}(window,(function(){var e=function(e,t){if((e=o(e))&&e.colcadeGUID){var n=l[e.colcadeGUID];return n.option(t),n}this.element=e,this.options={},this.option(t),this.create()},t=function(t){var n=t.getAttribute("data-colcade").split(","),i={};n.forEach((function(e){var t=e.split(":"),n=t[0].trim(),o=t[1].trim();i[n]=o})),new e(t,i)},n=function(e){var t=[];if(Array.isArray(e))t=e;else if(e&&"number"==typeof e.length)for(var n=0;n<e.length;n++)t.push(e[n]);else t.push(e);return t},i=function(e,t){var i=(t=t||document).querySelectorAll(e);return n(i)},o=function(e){return"string"==typeof e&&(e=document.querySelector(e)),e},a=e.prototype;a.option=function(e){this.options=function(e,t){for(var n in t)e[n]=t[n];return e}(this.options,e)};var r,s=0,l={};return a.create=function(){this.errorCheck();var e=this.guid=++s;this.element.colcadeGUID=e,l[e]=this,this.reload(),this._windowResizeHandler=this.onWindowResize.bind(this),this._loadHandler=this.onLoad.bind(this),window.addEventListener("resize",this._windowResizeHandler),this.element.addEventListener("load",this._loadHandler,!0)},a.errorCheck=function(){var e=[];if(this.element||e.push("Bad element: "+this.element),this.options.columns||e.push("columns option required: "+this.options.columns),this.options.items||e.push("items option required: "+this.options.items),e.length)throw new Error("[Colcade error] "+e.join(". "))},a.reload=function(){this.updateColumns(),this.updateItems(),this.layout()},a.updateColumns=function(){this.columns=i(this.options.columns,this.element)},a.updateItems=function(){this.items=i(this.options.items,this.element)},a.getActiveColumns=function(){return this.columns.filter((function(e){return"none"!=getComputedStyle(e).display}))},a.layout=function(){this.activeColumns=this.getActiveColumns(),this._layout()},a._layout=function(){this.columnHeights=this.activeColumns.map((function(){return 0})),this.layoutItems(this.items)},a.layoutItems=function(e){e.forEach(this.layoutItem,this)},a.layoutItem=function(e){var t=Math.min.apply(Math,this.columnHeights),n=this.columnHeights.indexOf(t);this.activeColumns[n].appendChild(e),this.columnHeights[n]+=e.offsetHeight||1},a.append=function(e){var t=this.getQueryItems(e);this.items=this.items.concat(t),this.layoutItems(t)},a.prepend=function(e){var t=this.getQueryItems(e);this.items=t.concat(this.items),this._layout()},a.getQueryItems=function(e){e=n(e);var t=document.createDocumentFragment();return e.forEach((function(e){t.appendChild(e)})),i(this.options.items,t)},a.measureColumnHeight=function(e){var t=this.element.getBoundingClientRect();
7this.activeColumns.forEach((function(n,i){if(!e||n.contains(e)){var o=n.lastElementChild.getBoundingClientRect();this.columnHeights[i]=o.bottom-t.top}}),this)},a.onWindowResize=function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){this.onDebouncedResize()}.bind(this),100)},a.onDebouncedResize=function(){var e=this.getActiveColumns(),t=e.length==this.activeColumns.length,n=!0;this.activeColumns.forEach((function(t,i){n=n&&t==e[i]})),t&&n||(this.activeColumns=e,this._layout())},a.onLoad=function(e){this.measureColumnHeight(e.target)},a.destroy=function(){this.items.forEach((function(e){this.element.appendChild(e)}),this),window.removeEventListener("resize",this._windowResizeHandler),this.element.removeEventListener("load",this._loadHandler,!0),delete this.element.colcadeGUID,delete l[this.guid]},r=function(){i("[data-colcade]").forEach(t)},"complete"!=document.readyState?document.addEventListener("DOMContentLoaded",r):r(),e.data=function(e){var t=(e=o(e))&&e.colcadeGUID;return t&&l[t]},e.makeJQueryPlugin=function(t){var n=function(e,n,i){var o;return e.each((function(e,a){var r=t.data(a,"colcade");if(r){var s=r[n].apply(r,i);o=void 0===o?s:o}})),void 0!==o?o:e},i=function(n,i){n.each((function(n,o){var a=t.data(o,"colcade");a?(a.option(i),a.layout()):(a=new e(o,i),t.data(o,"colcade",a))}))};(t=t||window.jQuery)&&(t.fn.colcade=function(e){if("string"==typeof e){var t=Array.prototype.slice.call(arguments,1);return n(this,e,t)}return i(this,e),this})},e.makeJQueryPlugin(),e})),te('[data-component~="colcade"]',{init:function(){},connected:function(){this.colcade=new(e(Ye))(this.element,{columns:".grid-col",items:".cmoa-grid-item"})},disconnected:function(){this.colcade.destroy()}}),te('[data-component~="footnotes"]',{init:function(){this.$notes=g(this.element.querySelectorAll('[id^="fn"]')),this.$notes.forEach(this.formatNote)},formatNote:function(e){var t=e.id.replace("fn-","fnref-"),n=' <a href="#'.concat(t,'" class="!no-underline">â¬</a>');e.lastElementChild.innerHTML=e.lastElementChild.innerHTML+n}});var Ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4;return e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*t)/t},Ke=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;var t=e.scrollHeight>e.clientHeight,n=window.getComputedStyle(e).overflowY,i=-1!==n.indexOf("hidden"),o=-1!==n.indexOf("visible");return t&&!i&&!o},Je=function(e,t){return!(!e||e===document.body||t&&e===t)&&(Ke(e)?e:Je(e.parentElement,t))},Qe=function(e){var t=(new DOMParser).parseFromString(e,"text/html").body;if(t.childElementCount>1){for(var n=document.createElement("div");t.firstChild;)n.appendChild(t.firstChild);return n}return t.firstChild},et=function(e){return"".concat(e||"").split(" ").filter((function(e){return!!e}))},tt=function(e,t,n){et(t).forEach((function(t){e&&e.classList.toggle(t,n||!1)}))},nt=function e(t){"use strict";c(this,e),Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=t,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.id=self.Touch&&t instanceof Touch?t.identifier:-1,this.time=Date.now()},it={passive:!1},ot=function(){"use strict";function e(t,n){var i=n.start,o=void 0===i?function(){return!0}:i,a=n.move,r=void 0===a?function(){}:a,s=n.end,l=void 0===s?function(){}:s;c(this,e),Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=t,this.startCallback=o,this.moveCallback=r,this.endCallback=l;for(var u=0,d=["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"];u<d.length;u++){var h=d[u];this[h]=this[h].bind(this)}this.element.addEventListener("mousedown",this.onPointerStart,it),this.element.addEventListener("touchstart",this.onTouchStart,it),this.element.addEventListener("touchmove",this.onMove,it),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}return d(e,[{key:"onPointerStart",value:function(e){if(e.buttons&&0===e.button){var t=new nt(e);this.currentPointers.some((function(e){return e.id===t.id}))||this.triggerPointerStart(t,e)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}}},{key:"onTouchStart",value:function(e){var t=!0,n=!1,i=void 0;try{for(var o,a=Array.from(e.changedTouches||[])[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var r=o.value;this.triggerPointerStart(new nt(r),e)}}catch(e){n=!0,i=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw i}}window.addEventListener("blur",this.onWindowBlur)}},{key:"onMove",value:function(e){var t=this.currentPointers.slice(),n="changedTouches"in e?Array.from(e.changedTouches||[]).map((function(e){return new nt(e)})):[new nt(e)],i=[],o=!0,a=!1,r=void 0;try{for(var s,l=this,c=function(){var e=s.value,t=l.currentPointers.findIndex((function(t){return t.id===e.id}));t<0||(i.push(e),l.currentPointers[t]=e)},u=n[Symbol.iterator]();!(o=(s=u.next()).done);o=!0)c()}catch(e){a=!0,r=e}finally{try{o||null==u.return||u.return()}finally{if(a)throw r}}i.length&&this.moveCallback(e,this.currentPointers.slice(),t)}},{key:"onPointerEnd",value:function(e){e.buttons>0&&0!==e.button||(this.triggerPointerEnd(e,new nt(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}},{key:"onTouchEnd",value:function(e){var t=!0,n=!1,i=void 0;try{for(var o,a=Array.from(e.changedTouches||[])[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var r=o.value;this.triggerPointerEnd(e,new nt(r))}}catch(e){n=!0,i=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw i}}}},{key:"triggerPointerStart",value:function(e,t){return!!this.startCallback(t,e,this.currentPointers.slice())&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}},{key:"triggerPointerEnd",value:function(e,t){var n=this.currentPointers.findIndex((function(e){return e.id===t.id}));n<0||(this.currentPointers.splice(n,1),this.startPointers.splice(n,1),this.endCallback(e,t,this.currentPointers.slice()))}},{key:"onWindowBlur",value:function(){this.clear()}},{key:"clear",value:function(){for(;this.currentPointers.length;){var e=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:e.clientX,clientY:e.clientY}),e,this.currentPointers.slice())}}},{key:"stop",value:function(){this.element.removeEventListener("mousedown",this.onPointerStart,it),this.element.removeEventListener("touchstart",this.onTouchStart,it),this.element.removeEventListener("touchmove",this.onMove,it),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}]),e}();function at(e,t){return t?Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2)):0}function rt(e,t){return t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e}var st=function(e){return"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e)},lt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var o=n.length,a=0;a<o;a++){var r=n[a]||{};Object.entries(r).forEach((function(t){var n=x(t,2),i=n[0],o=n[1],a=Array.isArray(o)?[]:{};e[i]||Object.assign(e,Ve({},i,a)),st(o)?Object.assign(e[i],lt(a,o)):Array.isArray(o)?Object.assign(e,Ve({},i,g(o))):Object.assign(e,Ve({},i,o))}))}return e},ct=function(e,t){return e.split(".").reduce((function(e,t){return"object"==typeof e?e[t]:void 0}),t)},ut=function(){"use strict";function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}
7),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);var n=!0,i=!1,o=void 0;try{for(var a,r=Object.getOwnPropertyNames(Object.getPrototypeOf(this))[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value;s.startsWith("on")&&"function"==typeof this[s]&&(this[s]=this[s].bind(this))}}catch(e){i=!0,o=e}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}}return d(e,[{key:"setOptions",value:function(e){this.options=e?lt({},this.constructor.defaults,e):{};var t=!0,n=!1,i=void 0;try{for(var o,a=Object.entries(this.option("on")||{})[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var r=x(o.value,2),s=r[0],l=r[1];this.on(s,l)}}catch(e){n=!0,i=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw i}}}},{key:"option",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o,a=ct(e,this.options);return a&&"function"==typeof a&&(a=(o=a).call.apply(o,[this,this].concat(g(n)))),a}},{key:"optionFor",value:function(e,t,n){for(var i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];var r,s,l,c=ct(t,e);"string"!=typeof(l=c)||isNaN(l)||isNaN(parseFloat(l))||(c=parseFloat(c)),"true"===c&&(c=!0),"false"===c&&(c=!1),c&&"function"==typeof c&&(c=(r=c).call.apply(r,[this,this,e].concat(g(o))));var u=ct(t,this.options);return u&&"function"==typeof u?c=(s=u).call.apply(s,[this,this,e].concat(g(o),[c])):void 0===c&&(c=u),void 0===c?n:c}},{key:"cn",value:function(e){var t=this.options.classes;return t&&t[e]||""}},{key:"localize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this;e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,(function(e,t,i){var o="";return i?o=n.option("".concat(t[0]+t.toLowerCase().substring(1),".l10n.").concat(i)):t&&(o=n.option("l10n.".concat(t))),o||(o=e),o}));for(var i=0;i<t.length;i++)e=e.split(t[i][0]).join(t[i][1]);return e.replace(/\{\{(.*?)\}\}/g,(function(e,t){return t}))}},{key:"on",value:function(e,t){var n=this,i=[];"string"==typeof e?i=e.split(" "):Array.isArray(e)&&(i=e),this.events||(this.events=new Map),i.forEac
7h((function(e){var i=n.events.get(e);i||(n.events.set(e,[]),i=[]),i.includes(t)||i.push(t),n.events.set(e,i)}))}},{key:"off",value:function(e,t){var n=this,i=[];"string"==typeof e?i=e.split(" "):Array.isArray(e)&&(i=e),i.forEach((function(e){var i=n.events.get(e);if(Array.isArray(i)){var o=i.indexOf(t);o>-1&&i.splice(o,1)}}))}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=this;g(this.events.get(e)||[]).forEach((function(e){return e.apply(void 0,[o].concat(g(n)))})),"*"!==e&&this.emit.apply(this,["*",e].concat(g(n)))}}]),e}();Object.defineProperty(ut,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.17"}),Object.defineProperty(ut,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});var dt,ht,ft=function(e){"use strict";fe(n,e);var t=ke(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(this,n),e=t.call(this,i),Object.defineProperty(ie(e),"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),xe(e)}return d(n,[{key:"attachPlugins",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Map,n=!0,i=!1,o=void 0;try{for(var a,r=Object.entries(e)[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=x(a.value,2),l=s[0],c=s[1],u=this.option(l),d=this.plugins[l];d||!1===u?d&&!1===u&&(d.detach(),delete this.plugins[l]):t.set(l,new c(this,u||{}))}}catch(e){i=!0,o=e}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}var h=!0,f=!1,v=void 0;try{for(var p,m=t[Symbol.iterator]();!(h=(p=m.next()).done);h=!0){var g=x(p.value,2),y=g[0],b=g[1];this.plugins[y]=b,b.attach()}}catch(e){f=!0,v=e}finally{try{h||null==m.return||m.return()}finally{if(f)throw v}}
7this.emit("attachPlugins")}},{key:"detachPlugins",value:function(e){e=e||Object.keys(this.plugins);var t=!0,n=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var r=o.value,s=this.plugins[r];s&&s.detach(),delete this.plugins[r]}}catch(e){n=!0,i=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw i}}return this.emit("detachPlugins"),this}}]),n}(ut);(ht=dt||(dt={}))[ht.Init=0]="Init",ht[ht.Error=1]="Error",ht[ht.Ready=2]="Ready",ht[ht.Panning=3]="Panning",ht[ht.Mousemove=4]="Mousemove",ht[ht.Destroy=5]="Destroy";var vt=["a","b","c","d","e","f"],pt={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},mt={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:pt},gt='<div class="f-spinner"><svg viewBox="0 0 50 50"><circle cx="25" cy="25" r="20"></circle><circle cx="25" cy="25" r="20"></circle></svg></div>',yt=function(e){return e&&null!==e&&e instanceof Element&&"nodeType"in e},bt=function(e,t){e&&et(t).forEach((function(t){e.classList.remove(t)}))},wt=function(e,t){e&&et(t).forEach((function(t){e.classList.add(t)}))},xt={a:1,b:0,c:0,d:1,e:0,f:0},kt=null,St=null,Et=function(e){"use strict";fe(n,e);var t=ke(n);function n(e){var i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(c(this,n),i=t.call(this,a),Object.defineProperty(ie(i),"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(i),"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(i),"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(i),"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(i),"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(i),"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(ie(i),"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(i),"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(ie(i),"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(ie(i),"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(ie(i),"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(i),"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(ie(i),"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(i),"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(i),"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(ie(i),"state",{enumerable:!0,configurable:!0,writable:!0,value:dt.Init}),Object.defineProperty(ie(i),"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(ie(i),"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(ie(i),"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(ie(i),"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(i),"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(ie(i),"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(ie(i),"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(ie(i),"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(ie(i),"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},xt)}),Object.defineProperty(ie(i),"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},xt)}),Object.defineProperty(ie(i),"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(ie(i),"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!e)throw new Error("Container Element Not Found");
7i.container=e,i.initContent(),i.attachPlugins(Object.assign(Object.assign({},n.Plugins),r)),i.emit("init");var s=i.content;if(s.addEventListener("load",i.onLoad),s.addEventListener("error",i.onError),i.isContentLoading){if(i.option("spinner")){e.classList.add(i.cn("isLoading"));var l=Qe(gt);!e.contains(s)||s.parentElement instanceof HTMLPictureElement?i.spinner=e.appendChild(l):i.spinner=(null===(o=s.parentElement)||void 0===o?void 0:o.insertBefore(l,s))||null}i.emit("beforeLoad")}else queueMicrotask((function(){i.enable()}));return xe(i)}return d(n,[{key:"isTouchDevice",get:function(){return null===St&&(St=window.matchMedia("(hover: none)").matches),St}},{key:"isMobile",get:function(){return null===kt&&(kt=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),kt}},{key:"panMode",get:function(){return"mousemove"!==this.options.panMode||this.isTouchDevice?"drag":"mousemove"}},{key:"panOnlyZoomed",get:function(){var e=this.options.panOnlyZoomed;return"auto"===e?this.isTouchDevice:e}},{key:"isInfinite",get:function(){return this.option("infinite")}},{key:"angle",get:function(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}},{key:"targetAngle",get:function(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}},{key:"scale",get:function(){var e=this.current,t=e.a,n=e.b;return Math.sqrt(t*t+n*n)||1}},{key:"targetScale",get:function(){var e=this.target,t=e.a,n=e.b;return Math.sqrt(t*t+n*n)||1}},{key:"minScale",get:function(){return this.option("minScale")||1}},{key:"fullScale",get:function(){var e=this.contentRect;return e.fullWidth/e.fitWidth||1}},{key:"maxScale",get:function(){return this.fullScale*(this.option("maxScale")||1)||1}},{key:"coverScale",get:function(){var e=this.containerRect,t=this.contentRect,n=Math.max(e.height/t.fitHeight,e.width/t.fitWidth)||1;return Math.min(this.fullScale,n)}},{key:"isScaling",get:function(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}},{key:"isContentLoading",get:function(){var e=this.content;return!!(e&&e instanceof HTMLImageElement)&&!e.complete}},{key:"isResting",get:function(){if(this.isBouncingX||this.isBouncingY)return!1;var e=!0,t=!1,n=void 0;try{for(var i,o=vt[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var a=i.value,r="e"==a||"f"===a?.001:1e-5;if(Math.abs(this.target[a]-this.current[a])>r)return!1}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}},{key:"initContent",value:function(){var e=this.container,t=this.cn("content"),n=this.option("content")||e.querySelector(".".concat(t));if(n||(n=e.querySelector("img,picture")||e.firstElementChild)&&wt(n,t),n instanceof HTMLPictureElement&&(n=n.querySelector("img")),!n)throw new Error("No content found");this.content=n}},{key:"onLoad",value:function(){this.spinner&&(this.spinner.remove(),this.spinner=null),this.option("spinner")&&this.container.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),this.state===dt.Init?this.enable():this.updateMetrics()}},{key:"onError",value:function(){this.state!==dt.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=dt.Error,this.emit("error"))}},{key:"attachObserver",value:function(){var e,t=this,n=function(){return Math.abs(t.containerRect.width-t.container.getBoundingClientRect().width)>.1||Math.abs(t.containerRect.height-t.container.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((function(){t.updateTimer||(n()?(t.onResize(),t.isMobile&&(t.updateTimer=setTimeout((function(){n()&&t.onResize(),t.updateTimer=null}),500))):t.updateTimer&&(clearTimeout(t.updateTimer),t.updateTimer=null))}))),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container)}},{key:"detachObserver",value:function(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}},{key:"attachEvents",value:function(){var e=this.container;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new ot(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener("mousemove",this.onMouseMove)}},{key:"detachEvents",value:function(){var e,t=this.container;t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(e=this.pointerTracker)||void 0===e||e.stop(),this.pointerTracker=null,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}},{key:"animate",value:function(){var e=this,t=this.friction;this.setTargetForce();var n=this.option("maxVelocity"),i=!0,o=!1,a=void 0;try{for(var r,s=vt[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=r.value;t?(this.velocity[l]*=1-t,n&&!this.isScaling&&(this.velocity[l]=Math.max(Math.min(this.velocity[l],n),-1*n)),this.current[l]+=this.velocity[l]):this.current[l]=this.target[l]}}catch(e){o=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((function(){return e.animate()})):this.stop("current")}},{key:"setTargetForce",value:function(){var e=!0,t=!1,n=void 0;try{for(var i,o=vt[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var a=i.value;"e"===a&&this.isBouncingX||"f"===a&&this.isBouncingY||(this.velocity[a]=(1/(1-this.friction)-1)*(this.target[a]-this.current[a]))}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}}},{key:"checkBounds",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.current,i=n.e+e,o=n.f+t,a=this.getBounds(),r=a.x,s=a.y,l=r.min,c=r.max,u=s.min,d=s.max,h=0,f=0;return l!==1/0&&i<l?h=l-i:c!==1/0&&i>c&&(h=c-i),u!==1/0&&o<u?f=u-o:d!==1/0&&o>d&&(f=d-o),Math.abs(h)<.001&&(h=0),Math.abs(f)<.001&&(f=0),Object.assign(Object.assign({},a),{xDiff:h,yDiff:f,inBounds:!h&&!f})}},{key:"clampTargetBounds",value:function(){var e=this.target,t=this.getBounds(),n=t.x,i=t.y;n.min!==1/0&&(e.e=Math.max(e.e,n.min)),n.max!==1/0&&(e.e=Math.min(e.e,n.max)),i.min!==1/0&&(e.f=Math.max(e.f,i.min)),i.max!==1/0&&(e.f=Math.min(e.f,i.max))}},{key:"calculateContentDim",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current,t=this.content,n=this.contentRect,i=n.fitWidth,o=n.fitHeight,a=n.fullWidth,r=n.fullHeight,s=a,l=r;
7if(this.option("zoom")||0!==this.angle){var c=!(t instanceof HTMLImageElement||"none"!==window.getComputedStyle(t).maxWidth&&"none"!==window.getComputedStyle(t).maxHeight),u=c?a:i,d=c?r:o,h=this.getMatrix(e),f=new DOMPoint(0,0).matrixTransform(h),v=new DOMPoint(0+u,0).matrixTransform(h),p=new DOMPoint(0+u,0+d).matrixTransform(h),m=new DOMPoint(0,0+d).matrixTransform(h),g=Math.abs(p.x-f.x),y=Math.abs(p.y-f.y),b=Math.abs(m.x-v.x),w=Math.abs(m.y-v.y);s=Math.max(g,b),l=Math.max(y,w)}return{contentWidth:s,contentHeight:l}}},{key:"setEdgeForce",value:function(){if(this.ignoreBounds||this.isDragging||"mousemove"===this.panMode||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);var e=this.target,t=this.checkBounds(),n=t.x,i=t.y,o=t.xDiff,a=t.yDiff,r=this.option("maxVelocity"),s=this.velocity.e,l=this.velocity.f;0!==o?(this.isBouncingX=!0,o*s<=0?s+=.14*o:(s=.14*o,n.min!==1/0&&(this.target.e=Math.max(e.e,n.min)),n.max!==1/0&&(this.target.e=Math.min(e.e,n.max))),r&&(s=Math.max(Math.min(s,r),-1*r))):this.isBouncingX=!1,0!==a?(this.isBouncingY=!0,a*l<=0?l+=.14*a:(l=.14*a,i.min!==1/0&&(this.target.f=Math.max(e.f,i.min)),i.max!==1/0&&(this.target.f=Math.min(e.f,i.max))),r&&(l=Math.max(Math.min(l,r),-1*r))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=s),this.isBouncingY&&(this.velocity.f=l)}},{key:"enable",value:function(){var e=this.content,t=new DOMMatrixReadOnly(window.getComputedStyle(e).transform),n=!0,i=!1,o=void 0;try{for(var a,r=vt[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value;this.current[s]=this.target[s]=t[s]}}catch(e){i=!0,o=e}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=dt.Ready,this.emit("ready")}},{key:"onClick",value:function(e){var t,n=this;this.isDragging&&(null===(t=this.pointerTracker)||void 0===t||t.clear(),this.trackingPoints=[],this.startDecelAnim());var i=e.target;if(i&&!e.defaultPrevented){if(i&&i.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if(!function(){var e=window.getSelection();return e&&"Range"===e.type}()||i.closest("button")){var o=i.closest("[data-panzoom-action]"),a=i.closest("[data-panzoom-change]"),r=o||a,s=r&&yt(r)?r.dataset:null;if(s){var l=s.panzoomChange,c=s.panzoomAction;if((l||c)&&e.preventDefault(),l){var u={};try{u=JSON.parse(l)}catch(e){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(u)}if(c)return void(this[c]&&this[c]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();var d=this.content.getBoundingClientRect();if(!this.dragStart.time||this.canZoomOut()||!(Math.abs(d.x-this.dragStart.x)>2||Math.abs(d.y-this.dragStart.y)>2)){this.dragStart.time=0;var h=function(t){n.option("zoom")&&t&&"string"==typeof t&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(t)&&"function"==typeof n[t]&&(e.preventDefault(),n[t]({event:e}))},f=this.option("click",e),v=this.option("dblClick",e);v?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((function(){1===n.clicks?(n.emit("click",e),!e.defaultPrevented&&f&&h(f)):(n.emit("dblClick",e),e.defaultPrevented||h(v)),n.clicks=0,n.clickTimer=null}),350))):(this.emit("click",e),!e.defaultPrevented&&f&&h(f))}}}}},{key:"addTrackingPoint",value:function(e){var t=this.trackingPoints.filter((function(e){return e.time>Date.now()-100}));t.push(e),this.trackingPoints=t}},{key:"onPointerDown",value:function(e,t,n){var i;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];var o=this.content.getBoundingClientRect();if(this.dragStart={x:o.x,y:o.y,top:o.top,left:o.left,time:Date.now()},this.clickTimer)return!1;if("mousemove"===this.panMode&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;if(!n.length){var a=e.composedPath()[0];if(["A","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(a.nodeName)||a.closest("[contenteditable]")||a.closest("[data-selectable]")||a.closest("[data-panzoom-change]")||a.closest("[data-panzoom-action]"))return!1;null===(i=window.getSelection())||void 0===i||i.removeAllRanges()}if("mousedown"===e.type)e.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(t),this.emit
7("touchStart",e)),!0}},{key:"onPointerMove",value:function(e,t,n){if(!1!==this.option("touch",e)&&this.isDragging&&!(t.length<2&&this.panOnlyZoomed&&Ze(this.targetScale)<=Ze(this.minScale)||(this.emit("touchMove",e),e.defaultPrevented))){this.addTrackingPoint(t[0]);var i=this.content,o=rt(n[0],n[1]),a=rt(t[0],t[1]),r=0,s=0;if(t.length>1){var l=i.getBoundingClientRect();r=o.clientX-l.left-.5*l.width,s=o.clientY-l.top-.5*l.height}var c=at(n[0],n[1]),u=at(t[0],t[1]),d=c?u/c:1,h=a.clientX-o.clientX,f=a.clientY-o.clientY;this.dragOffset.x+=h,this.dragOffset.y+=f,this.dragOffset.time=Date.now()-this.dragStart.time;var v=Ze(this.targetScale)===Ze(this.minScale)&&this.option("lockAxis");if(v&&!this.lockedAxis)if("xy"===v||"y"===v||"touchmove"===e.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();var p=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=p>45&&p<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,h=0,f=0}else this.lockedAxis=v;if(Je(e.target,this.content)&&(v="x",this.dragOffset.y=0),!v||"xy"===v||this.lockedAxis===v||Ze(this.targetScale)!==Ze(this.minScale)){e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));var m=this.checkBounds(h,f);this.option("rubberband")?("x"!==this.isInfinite&&(m.xDiff>0&&h<0||m.xDiff<0&&h>0)&&(h*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*m.xDiff))),"y"!==this.isInfinite&&(m.yDiff>0&&f<0||m.yDiff<0&&f>0)&&(f*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*m.yDiff)))):(m.xDiff&&(h=0),m.yDiff&&(f=0));var g=this.targetScale,y=this.minScale,b=this.maxScale;g<.5*y&&(d=Math.max(d,y)),g>1.5*b&&(d=Math.min(d,b)),"y"===this.lockedAxis&&Ze(g)===Ze(y)&&(h=0),"x"===this.lockedAxis&&Ze(g)===Ze(y)&&(f=0),this.applyChange({originX:r,originY:s,panX:h,panY:f,scale:d,friction:this.option("dragFriction"),ignoreBounds:!0})}}}},{key:"onPointerUp",value:function(e,t,n){if(n.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(t),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),Je(e.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==dt.Destroy&&(e.defaultPrevented||this.startDecelAnim()))}},{key:"startDecelAnim",value:function(){var e,t=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;var n=!0,i=!1,o=void 0;try{for(var a,r=vt[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value;this.velocity[s]=0}}catch(e){i=!0,o=e}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}this.target.e=this.current.e,this.target.f=this.current.f,bt(this.container,"is-scaling"),bt(this.container,"is-animating"),this.isTicking=!1;var l=this.trackingPoints,c=l[0],u=l[l.length-1],d=0,h=0,f=0;u&&c&&(d=u.clientX-c.clientX,h=u.clientY-c.clientY,f=u.time-c.time);var v=(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1;1!==v&&(d*=v,h*=v);var p=0,m=0,g=0,y=0,b=this.option("decelFriction"),w=this.targetScale;if(f>0){g=Math.abs(d)>3?d/(f/30):0,y=Math.abs(h)>3?h/(f/30):0;var x=this.option("maxVelocity");x&&(g=Math.max(Math.min(g,x),-1*x),y=Math.max(Math.min(y,x),-1*x))}g&&(p=g/(1/(1-b)-1)),y&&(m=y/(1/(1-b)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&Ze(w)===this.minScale)&&(p=g=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&Ze(w)===this.minScale)&&(m=y=0);var k=this.dragOffset.x,S=this.dragOffset.y,E=this.option("dragMinThreshold")||0;Math.abs(k)<E&&Math.abs(S)<E&&(p=m=0,g=y=0),(w<this.minScale-1e-5||w>this.maxScale+1e-5||t&&!p&&!m)&&(b=.35),this.applyChange({panX:p,panY:m,friction:b}),this.emit("decel",g,y,k,S)}},{key:"onWheel",value:function(e){var t=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),n=Math.max(-1,Math.min(1,t));
7if(this.emit("wheel",e,n),"mousemove"!==this.panMode&&!e.defaultPrevented){var i=this.option("wheel");"pan"===i?(e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-e.deltaX,panY:2*-e.deltaY,bounce:!1})):"zoom"===i&&!1!==this.option("zoom")&&this.zoomWithWheel(e)}}},{key:"onMouseMove",value:function(e){this.panWithMouse(e)}},{key:"onKeydown",value:function(e){"Escape"===e.key&&this.toggleFS()}},{key:"onResize",value:function(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}},{key:"setTransform",value:function(){this.emit("beforeTransform");var e=this,t=e.current,n=e.target,i=e.content,o=e.contentRect,a=Object.assign({},xt),r=!0,s=!1,l=void 0;try{for(var c,u=vt[Symbol.iterator]();!(r=(c=u.next()).done);r=!0){var d=c.value,h="e"==d||"f"===d?1e3:1e5;a[d]=Ze(t[d],h),Math.abs(n[d]-t[d])<("e"==d||"f"===d?.51:.001)&&(t[d]=n[d])}}catch(e){s=!0,l=e}finally{try{r||null==u.return||u.return()}finally{if(s)throw l}}var f=a.a,v=a.b,p=a.c,m=a.d,g=a.e,y=a.f,b="matrix(".concat(f,", ").concat(v,", ").concat(p,", ").concat(m,", ").concat(g,", ").concat(y,")"),w=i.parentElement instanceof HTMLPictureElement?i.parentElement:i;if(this.option("transformParent")&&(w=w.parentElement||w),w.style.transform!==b){w.style.transform=b;var x=this.calculateContentDim(),k=x.contentWidth,S=x.contentHeight;o.width=k,o.height=S,this.emit("afterTransform")}}},{key:"updateMetrics",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this&&this.state!==dt.Destroy&&!this.isContentLoading){var n=Math.max(1,(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1),i=this.container,o=this.content,a=o instanceof HTMLImageElement,r=i.getBoundingClientRect(),s=getComputedStyle(this.container),l=r.width*n,c=r.height*n,u=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),d=l-(parseFloat(s.paddingLeft)+parseFloat(s.paddingRight)),h=c-u;this.containerRect={width:l,height:c,innerWidth:d,innerHeight:h};var f=this.option("width")||"auto",v=this.option("height")||"auto";"auto"===f&&(f=parseFloat(o.dataset.width||"")||function(e){return(e instanceof HTMLImageElement?e.naturalWidth:e instanceof SVGElement?e.width.baseVal.value:Math.max(e.offsetWidth,e.scrollWidth))||0}(o)),"auto"===v&&(v=parseFloat(o.dataset.height||"")||function(e){return(e instanceof HTMLImageElement?e.naturalHeight:e instanceof SVGElement?e.height.baseVal.value:Math.max(e.offsetHeight,e.scrollHeight))||0}(o));var p=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;this.option("transformParent")&&(p=p.parentElement||p);var m=p.getAttribute("style")||"";p.style.setProperty("transform","none","important"),a&&(p.style.width="",p.style.height=""),p.offsetHeight;var g,y=o.getBoundingClientRect(),b=y.width*n,w=y.height*n,x=0,k=0;a&&(Math.abs(f-b)>1||Math.abs(v-w)>1)&&(g=function(e,t,n,i){var o=n/i;return o>e/t?(n=e,i=e/o):(n=t*o,i=t),{width:n,height:i,top:.5*(t-i),left:.5*(e-n)}}(b,w,f,v),b=g.width,w=g.height,x=g.top,k=g.left),this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:y.top-r.top+x,bottom:r.bottom-y.bottom+x,left:y.left-r.left+k,right:r.right-y.right+k,fitWidth:b,fitHeight:w,width:b,height:w,fullWidth:f,fullHeight:v}),p.style.cssText=m,a&&(p.style.width="".concat(b,"px"),p.style.height="".concat(w,"px")),this.setTransform(),!0!==t&&this.emit("refresh"),this.ignoreBounds||(Ze(this.targetScale)<Ze(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===dt.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}}},{key:"getBounds",value:function(){var e=this.option("bounds");if("auto"!==e)return e;var t=this.calculateContentDim(this.target),n=t.contentWidth,i=t.contentHeight,o=0,a=0,r=0,s=0,l=this.option("infinite");if(!0===l||this.lockedAxis&&l===this.lockedAxis)o=-1/0,r=1/0,a=-1/0,s=1/0;else{var c=this.containerRect,u=this.contentRect,d=Ze(this.contentRect.fitWidth*this.targetScale,1e3),h=Ze(this.contentRect.fitHeight*this.targetScale,1e3),f=c.innerWidth,v=c.innerHeight;if(this.containerRect.width===d&&(f=c.width),this.containerRect.width===h&&(v=c.height),n>f){o=-1*(r=.5*(n-f));var p=.5*(u.right-u.left);o+=p,r+=p}if(this.contentRect.fitWidth>f&&n<f&&(o-=.5*(this.contentRect.fitWidth-f),r-=.5*(this.contentRect.fitWidth-f)),i>v){a=-1*(s=.5*(i-v));var m=.5*(u.bottom-u.top);a+=m,s+=m}this.contentRect.fitHeight>v&&i<v&&(o-=.5*(this.contentRect.fitHeight-v),r-=.5*(this.contentRect.fitHeight-v))}return{x:{min:o,max:r},y:{min:a,max:s}}}},{key:"updateControls",value:function(){var e=this,t=e.container,n=e.panMode,i=e.contentRect,o=e.fullScale,a=e.targetScale,r=e.coverScale,s=e.maxScale,l=e.minScale,c={toggleMax:a-l<.5*(s-l)?s:l,toggleCover:a-l<.5*(r-l)?r:l,toggleZoom:a-l<.5*(o-l)?o:l}[e.option("click")||""]||l,u=e.canZoomIn(),d=e.canZoomOut(),h=d&&"drag"===n;Ze(a)<Ze(l)&&!this.panOnlyZoomed&&(h=!0),(Ze(i.width,1)>Ze(i.fitWidth,1)||Ze(i.height,1)>Ze(i.fitHeight,1))&&(h=!0),Ze(i.width*a,1)<Ze(i.fitWidth,1)&&(h=!1),"mousemove"===n&&(h=!1);var f=u&&Ze(c)>Ze(a),v=!f&&!h&&d&&Ze(c)<Ze(a);tt(t,this.cn("canZoomIn"),f),tt(t,this.cn("canZoomOut"),v),tt(t,this.cn("isDraggable"),h);var p=!0,m=!1,g=void 0;try{for(var y,b=t.querySelectorAll('[data-panzoom-action="zoomIn"]')[Symbol.iterator]();!(p=(y=b.next()).done);p=!0){var w=y.value;u?(w.removeAttribute("disabled"),w.removeAttribute("tabindex")):(w.setAttribute("disabled",""),w.setAttribute("tabindex","-1"))}}catch(e){m=!0,g=e}finally{try{p||null==b.return||b.return()}finally{if(m)throw g}}var x=!0,k=!1,S=void 0;try{for(var E,C=t.querySelectorAll('[data-panzoom-action="zoomOut"]')[Symbol.iterator]();!(x=(E=C.next()).done);x=!0){var T=E.value;d?(T.removeAttribute("disabled"),T.removeAttribute("tabindex")):(T.setAttribute("disabled",""),T.setAttribute("tabindex","-1"))}}catch(e){k=!0,S=e}finally{try{x||null==C.return||C.return()}finally{if(k)throw S}}var O=!0,M=!1,A=void 0;try{for(var P,L=t.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')[Symbol.iterator]();!(O=(P=L.next()).done);O=!0){var z=P.value;u||d?(z.removeAttribute("disabled"),z.removeAttribute("tabindex")):(z.setAttribute("disabled",""),z.setAttribute("tabindex","-1"));var I=z.querySelector("g");I&&(I.style.display=u?"":"none")}}catch(e){M=!0,A=e}finally{try{O||null==L.return||L.return()}
7finally{if(M)throw A}}}},{key:"panTo",value:function(e){var t=e.x,n=void 0===t?this.target.e:t,i=e.y,o=void 0===i?this.target.f:i,a=e.scale,r=void 0===a?this.targetScale:a,s=e.friction,l=void 0===s?this.option("friction"):s,c=e.angle,u=void 0===c?0:c,d=e.originX,h=void 0===d?0:d,f=e.originY,v=void 0===f?0:f,p=e.flipX,m=void 0!==p&&p,g=e.flipY,y=void 0!==g&&g,b=e.ignoreBounds,w=void 0!==b&&b;this.state!==dt.Destroy&&this.applyChange({panX:n-this.target.e,panY:o-this.target.f,scale:r/this.targetScale,angle:u,originX:h,originY:v,friction:l,flipX:m,flipY:y,ignoreBounds:w})}},{key:"applyChange",value:function(e){var t=e.panX,n=void 0===t?0:t,i=e.panY,o=void 0===i?0:i,a=e.scale,r=void 0===a?1:a,s=e.angle,l=void 0===s?0:s,c=e.originX,u=void 0===c?-this.current.e:c,d=e.originY,h=void 0===d?-this.current.f:d,f=e.friction,v=void 0===f?this.option("friction"):f,p=e.flipX,m=void 0!==p&&p,g=e.flipY,y=void 0!==g&&g,b=e.ignoreBounds,w=void 0!==b&&b,x=e.bounce,k=void 0===x?this.option("bounce"):x;if(this.state!==dt.Destroy){this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=v||0,this.ignoreBounds=w;var S=this.current,E=S.e,C=S.f,T=this.getMatrix(this.target),O=(new DOMMatrix).translate(E,C).translate(u,h).translate(n,o);if(this.option("zoom")){if(!w){var M=this.targetScale,A=this.minScale,P=this.maxScale;M*r<A&&(r=A/M),M*r>P&&(r=P/M)}O=O.scale(r)}O=O.translate(-u,-h).translate(-E,-C).multiply(T),l&&(O=O.rotate(l)),m&&(O=O.scale(-1,1)),y&&(O=O.scale(1,-1));var L=!0,z=!1,I=void 0;try{for(var R,j=vt[Symbol.iterator]();!(L=(R=j.next()).done);L=!0){var D=R.value;"e"!==D&&"f"!==D&&(O[D]>this.minScale+1e-5||O[D]<this.minScale-1e-5)?this.target[D]=O[D]:this.target[D]=Ze(O[D],1e3)}}catch(e){z=!0,I=e}finally{try{L||null==j.return||j.return()}finally{if(z)throw I}}(this.targetScale<this.scale||Math.abs(r-1)>.1||"mousemove"===this.panMode||!1===k)&&!w&&this.clampTargetBounds(),this.isResting||(this.state=dt.Panning,this.requestTick())}}},{key:"stop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state!==dt.Init&&this.state!==dt.Destroy){var t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;var n=!0,i=!1,o=void 0;try{for(var a,r=vt[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value;this.velocity[s]=0,"current"===e?this.current[s]=this.target[s]:"target"===e&&(this.target[s]=this.current[s])}}catch(e){i=!0,o=e}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}this.setTransform(),bt(this.container,"is-scaling"),bt(this.container,"is-animating"),this.isTicking=!1,this.state=dt.Ready,t&&(this.emit
7("endAnimation"),this.updateControls())}}},{key:"requestTick",value:function(){var e=this;this.isTicking||(this.emit("startAnimation"),this.updateControls(),wt(this.container,"is-animating"),this.isScaling&&wt(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((function(){return e.animate()})))}},{key:"panWithMouse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.option("mouseMoveFriction");if(this.pmme=e,"mousemove"===this.panMode&&e&&!(Ze(this.targetScale)<=Ze(this.minScale))){this.emit("mouseMove",e);var n=this,i=n.container,o=n.containerRect,a=n.contentRect,r=o.width,s=o.height,l=i.getBoundingClientRect(),c=(e.clientX||0)-l.left,u=(e.clientY||0)-l.top,d=this.calculateContentDim(this.target),h=d.contentWidth,f=d.contentHeight,v=this.option("mouseMoveFactor");v>1&&(h!==r&&(h*=v),f!==s&&(f*=v));var p=.5*(h-r)-c/r*100/100*(h-r);p+=.5*(a.right-a.left);var m=.5*(f-s)-u/s*100/100*(f-s);m+=.5*(a.bottom-a.top),this.applyChange({panX:p-this.target.e,panY:m-this.target.f,friction:t})}}},{key:"zoomWithWheel",value:function(e){if(this.state!==dt.Destroy&&this.state!==dt.Init){var t=Date.now();if(t-this.pwt<45)e.preventDefault();else{this.pwt=t;var n=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),i=Math.max(-1,Math.min(1,n)),o=this,a=o.targetScale,r=o.maxScale,s=o.minScale,l=a*(100+45*i)/100;Ze(l)<Ze(s)&&Ze(a)<=Ze(s)?(this.cwd+=Math.abs(i),l=s):Ze(l)>Ze(r)&&Ze(a)>=Ze(r)?(this.cwd+=Math.abs(i),l=r):(this.cwd=0,l=Math.max(Math.min(l,r),s)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),Ze(l)!==Ze(a)&&this.zoomTo(l,{event:e}))}}}},{key:"canZoomIn",value:function(){return this.option("zoom")&&(Ze(this.contentRect.width,1)<Ze(this.contentRect.fitWidth,1)||Ze(this.targetScale)<Ze(this.maxScale))}},{key:"canZoomOut",value:function(){return this.option("zoom")&&Ze(this.targetScale)>Ze(this.minScale)}},{key:"zoomIn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.25,t=arguments.length>1?arguments[1]:void 0;this.zoomTo(this.targetScale*e,t)}},{key:"zoomOut",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.8,t=arguments.length>1?arguments[1]:void 0;this.zoomTo(this.targetScale*e,t)}},{key:"zoomToFit",value:function(e){this.zoomTo("fit",e)}},{key:"zoomToCover",value:function(e){this.zoomTo("cover",e)}},{key:"zoomToFull",value:function(e){this.zoomTo("full",e)}},{key:"zoomToMax",value:function(e){this.zoomTo("max",e)}},{key:"toggleZoom",value:function(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.fullScale-this.minScale)?"full":"fit",e)}},{key:"toggleMax",value:function(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.maxScale-this.minScale)?"max":"fit",e)}},{key:"toggleCover",value:function(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.coverScale-this.minScale)?"cover":"fit",e)}},{key:"iterateZoom",value:function(e){this.zoomTo("next",e)}},{key:"zoomTo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.friction,i=void 0===n?"auto":n,o=t.originX,a=void 0===o?0:o,r=t.originY,s=void 0===r?0:r,l=t.event;if(!this.isContentLoading&&this.state!==dt.Destroy){var c=this.targetScale;this.stop();var u=1;if("mousemove"===this.panMode&&(l=this.pmme||l),l){var d=this.content.getBoundingClientRect(),h=l.clientX||0,f=l.clientY||0;a=h-d.left-.5*d.width,s=f-d.top-.5*d.height}var v=this.fullScale,p=this.maxScale,m=this.coverScale;"number"==typeof e?u=e/c:("next"===e&&(v-m<.2&&(m=v),e=c<v-1e-5?"full":c<p-1e-5?"max":"fit"),u="full"===e?v/c||1:"cover"===e?m/c||1:"max"===e?p/c||1:1/c||1),i="auto"===i?u>1?.15:.25:i,this.applyChange({scale:u,originX:a,originY:s,friction:i}),l&&"mousemove"===this.panMode&&this.panWithMouse(l,i)}}},{key:"rotateCCW",value:function(){this.applyChange({angle:-90})}},{key:"rotateCW",value:function(){this.applyChange({angle:90})}},{key:"flipX",value:function(){this.applyChange({flipX:!0})}},{key:"flipY",value:function(){this.applyChange({flipY:!0})}},{key:"fitX",value:function(){this.stop("target");var e=this,t=e.containerRect,n=e.contentRect,i=e.target;this.applyChange({panX:.5*t.width-(n.left+.5*n.fitWidth)-i.e,panY:.5*t.height-(n.top+.5*n.fitHeight)-i.f,scale:t.width/n.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}},{key:"fitY",value:function(){this.stop("target");var e=this,t=e.containerRect,n=e.contentRect,i=e.target;this.applyChange({panX:.5*t.width-(n.left+.5*n.fitWidth)-i.e,panY:.5*t.innerHe
7ight-(n.top+.5*n.fitHeight)-i.f,scale:t.height/n.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}},{key:"toggleFS",value:function(){var e=this.container,t=this.cn("inFullscreen"),n=this.cn("htmlHasFullscreen");e.classList.toggle(t);var i=e.classList.contains(t);i?(document.documentElement.classList.add(n),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(n),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(i?"enterFS":"exitFS")}},{key:"getMatrix",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current,t=e.a,n=e.b,i=e.c,o=e.d,a=e.e,r=e.f;return new DOMMatrix([t,n,i,o,a,r])}},{key:"reset",value:function(e){if(this.state!==dt.Init&&this.state!==dt.Destroy){this.stop("current");var t=!0,n=!1,i=void 0;try{for(var o,a=vt[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var r=o.value;this.target[r]=xt[r]}}catch(e){n=!0,i=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw i}}this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===e?this.option("friction"):e,this.state=dt.Panning,this.requestTick())}}},{key:"destroy",value:function(){this.stop(),this.state=dt.Destroy,this.detachEvents(),this.detachObserver();var e=this.container,t=this.content,n=this.option("classes")||{},i=!0,o=!1,a=void 0;try{for(var r,s=Object.values(n)[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=r.value;e.classList.remove(l+"")}}catch(e){o=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}t&&(t.removeEventListener("load",this.onLoad),t.removeEventListener("error",this.onError)),this.detachPlugins()}}]),n}(ft);Object.defineProperty(Et,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:mt}),Object.defineProperty(Et,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});var Ct,Tt=function(e,t){var n=!0;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n&&(n=!1,e.apply(void 0,g(o)),setTimeout((function(){n=!0}),t))}},Ot=function(e,t){var n=[];return e.childNodes.forEach((function(e){e.nodeType!==Node.ELEMENT_NODE||t&&!e.matches(t)||n.push(e)})),n};!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Destroy=2]="Destroy"}(Ct||(Ct={}));var Mt=function(e){if("string"==typeof e&&(e={html:e}),!(e instanceof String||e instanceof HTMLElement)){var t=e.thumb;void 0!==t&&("string"==typeof t&&(e.thumbSrc=t),t instanceof HTMLImageElement&&(e.thumbEl=t,e.thumbElSrc=t.src,e.thumbSrc=t.src),delete e.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",index:-1,dim:0,gap:0,pos:0,transition:!1},e)},At=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({index:-1,slides:[],dim:0,pos:-1},e)},Pt=function(e){"use strict";fe(n,e);var t=ke(n);function n(e,i){var o;return c(this,n),o=t.call(this,i),Object.defineProperty(ie(o),"instance",{enumerable:!0,configurable:!0,writable:!0,value:e}),xe(o)}return d(n,[{key:"attach",value:function(){}},{key:"detach",value:function(){}}]),n}(ut),Lt=function(e){"use strict";fe(n,e);var t=ke(n);function n(){var e;return c(this,n),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty(ie(e),"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(ie(e),"list",{enumerable:!0,configurable:!0,writable:!0,value:null}),xe(e)}return d(n,[{key:"onRefresh",value:function(){this.refresh()}},{key:"build",value:function(){var e=this.list;return e||(e=document.createElement("ul"),wt(e,this.cn("list")),e.setAttribute("role","tablist"),this.instance.container.appendChild(e),wt(this.instance.container,this.cn("hasDots")),this.list=e),e}},{key:"refresh",value:function(){var e,t=this.instance.pages.length,n=Math.min(2,this.option("minCount")),i=Math.max(2e3,this.option("maxCount")),o=this.option("dynamicFrom");if(t<n||t>i)this.cleanup();else{var a="number"==typeof o&&t>5&&t>=o,r=!this.list||this.isDynamic!==a||this.list.children.length!==t;r&&this.cleanup();var s=this.build();if(tt(s,this.cn("isDynamic"),!!a),r)for(var l=0;l<t;l++)s.append(this.createItem(l));var c,u=0,d=!0,h=!1,f=void 0;try{for(var v,p=g(s.children)[Symbol.iterator]();!(d=(v=p.next()).done);d=!0){var m=v.value,y=u===this.instance.page;y&&(c=m),tt(m,this.cn("isCurrent"),y),null===(e=m.children[0])||void 0===e||e.setAttribute("aria-selected",y?"true":"false");for(var b=0,w=["isBeforePrev","isPrev","isNext","isAfterNext"];b<w.length;b++){var x=w[b];bt(m,this.cn(x))}u++}}catch(e){h=!0,f=e}finally{try{d||null==p.return||p.return()}finally{if(h)throw f}}if(c=c||s.firstChild,a&&c){var k=c.previousElementSibling,S=k&&k.previousElementSibling;wt(k,this.cn("isPrev")),wt(S,this.cn("isBeforePrev"));var E=c.nextElementSibling,C=E&&E.nextElementSibling;wt(E,this.cn("isNext")),wt(C,this.cn("isAfterNext"))}this.isDynamic=a}}},{key:"createItem",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=document.createElement("li");n.setAttribute("role","presentation");var i=Qe(this.instance.localize(this.option("dotTpl"),[["%d",t+1]]).replace(/\%i/g,t+""));return n.appendChild(i),null===(e=n.children[0])||void 0===e||e.setAttribute("role","tab"),n}},{key:"cleanup",value:function(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,bt(this.instance.container,this.cn("hasDots"))}},{key:"attach",value:function(){this.instance.on(["refresh","change"],this.onRefresh)}},{key:"detach",value:function(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}]),n}(Pt);Object.defineProperty(Lt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2}});var zt=function(e){"use strict";fe(n,e);var t=ke(n);function n(){var e;return c(this,n),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty(ie(e),"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),xe(e)}return d(n,[{key:"onRefresh",value:function(){var e=this.instance,t=e.pages.length,n=e.page;if(t<2)this.cleanup();else{this.build();var i=this.prev,o=this.next;i&&o&&(i.removeAttribute("disabled"),o.removeAttribute("disabled"),e.isInfinite||(n<=0&&i.setAttribute("disabled",""),n>=t-1&&o.setAttribute("disabled","")))}}},{key:"createButton",value:function(e){var t=this.instance,n=document.createElement("button");n.setAttribute("tabindex","0"),n.setAttribute("title",t.localize("{{".concat(e.toUpperCase(),"}}"))),wt(n,this.cn("button")+" "+this.cn("next"===e?"isNext":"isPrev"));var i,o=t.isRTL?"next"===e?"prev":"next":e;return n.innerHTML=t.localize(this.option("".concat(o,"Tpl"))),n.dataset["carousel".concat((i=e,i?i.match("^[a-z]")?i.charAt(0).toUpperCase()+i.substring(1):i:""))]="true",n}},{key:"build",value:function(){var e=this.container;e||(this.container=e=document.createElement("div"),wt(e,this.cn("container")),this.instance.container.appendChild(e)),this.next||(this.next=e.appendChild(this.createButton("next"))),this.prev||(this.prev=e.appendChild(this.createButton("prev")))}},{key:"cleanup",value:function(){this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove(),this.prev=null,this.next=null,this.container=null}},{key:"attach",value:function(){this.instance.on(["refresh","change"],this.onRefresh)}},{key:"detach",value:function(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}]),n}(Pt);Object.defineProperty(zt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>
7',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>'}});var It=function(e){"use strict";fe(n,e);var t=ke(n);function n(){var e;return c(this,n),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty(ie(e),"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"nav",{enumerable:!0,configurable:!0,writable:!0,value:null}),xe(e)}return d(n,[{key:"addAsTargetFor",value:function(e){this.target=this.instance,this.nav=e,this.attachEvents()}},{key:"addAsNavFor",value:function(e){this.nav=this.instance,this.target=e,this.attachEvents()}},{key:"attachEvents",value:function(){this.nav&&this.target&&(this.nav.options.initialSlide=this.target.options.initialPage,this.nav.on("ready",this.onNavReady),this.nav.state===Ct.Ready&&this.onNavReady(this.nav),this.target.on("ready",this.onTargetReady),this.target.state===Ct.Ready&&this.onTargetReady(this.target))}},{key:"onNavReady",value:function(e){e.on("createSlide",this.onNavCreateSlide),e.on("Panzoom.click",this.onNavClick),e.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}},{key:"onTargetReady",value:function(e){e.on("change",this.onTargetChange),e.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}},{key:"onNavClick",value:function(e,t,n){n.pointerType||this.onNavTouch(e,e.panzoom,n)}},{key:"onNavTouch",value:function(e,t,n){var i,o;if(!(Math.abs(t.dragOffset.x)>3||Math.abs(t.dragOffset.y)>3)){var a=n.target,r=this.nav,s=this.target;if(r&&s&&a){var l=a.closest("[data-index]");if(n.stopPropagation(),n.preventDefault(),l){var c=parseInt(l.dataset.index||"",10)||0,u=s.getPageForSlide(c),d=r.getPageForSlide(c);r.slideTo(d),s.slideTo(u,{friction:null===(o=null===(i=this.nav)||void 0===i?void 0:i.plugins)||void 0===o?void 0:o.Sync.option("friction")}),this.markSelectedSlide(c)}}}}},{key:"onNavCreateSlide",value:function(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}},{key:"onTargetChange",value:function(){var e=this.target,t=this.nav;if(e&&t&&t.state===Ct.Ready&&e.state===Ct.Ready){var n=e.pages[e.page].slides[0].index,i=t.getPageForSlide(n);this.markSelectedSlide(n),t.slideTo(i)}}},{key:"markSelectedSlide",value:function(e){var t=this.nav;t&&t.state===Ct.Ready&&(this.selectedIndex=e,g(t.slides).map((function(t){t.el&&t.el.classList[t.index===e?"add":"remove"]("is-nav-selected")})))}},{key:"attach",value:function(){var e=this.options.target,t=this.options.nav;e?this.addAsNavFor(e):t&&this.addAsTargetFor(t)}},{key:"detach",value:function(){var e=this,t=e.nav,n=e.target;t&&(t.off("ready",e.onNavReady),t.off("createSlide",e.onNavCreateSlide),t.off("Panzoom.click",e.onNavClick),t.off("Panzoom.touchEnd",e.onNavTouch)),this.nav=null,n&&(n.off("ready",e.onTargetReady),n.off("refresh",e.onTargetChange),n.off("change",e.onTargetChange)),this.target=null}}]),n}(Pt);Object.defineProperty(It,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});var Rt={Navigation:zt,Dots:Lt,Sync:It},jt=function(e){"use strict";fe(n,e);var t=ke(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(c(this,n),i=t.call(this),Object.defineProperty(ie(i),"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(ie(i),"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(ie(i),"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(ie(i),"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(i),"state",{enumerable:!0,configurable:!0,writable:!0,value:Ct.Init}),Object.defineProperty(ie(i),"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(i),"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(i),"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(ie(i),"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(i),"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(i),"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(ie(i),"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(ie(i),"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(i),"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(ie(i),"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(i),"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof e&&(e=document.querySelector(e)),!e||!yt(e))throw new Error("No Element found");return i.container=e,i.slideNext=Tt(i.slideNext.bind(ie(i)),150),i.slidePrev=Tt(i.slidePrev.bind(ie(i)),150),i.userOptions=o,i.userPlugins=a,queueMicrotask((function(){i.processOptions()})),xe(i)}return d(n,[{key:"axis",get:function(){return this.isHorizontal?"e":"f"}},{key:"isEnabled",get:function(){return this.state===Ct.Ready}},{key:"isInfinite",get:function(){var e=!1,t=this,n=t.contentDim,i=t.viewportDim,o=t.pages,a=t.slides;return o.length>=2&&n+a[0].dim>=i&&(e=this.option("infinite")),e}},{key:"isRTL",get:function(){return"rtl"===this.option("direction")}},{key:"isHorizontal",get:function(){return"x"===this.option("axis")}},{key:"processOptions",value:function(){var e,t,i,o=this,a=lt({},n.defaults,this.userOptions),r="",s=a.breakpoints,l=!0,c=!1,u=void 0;if(s&&st(s))try{for(var d,h=Object.entries(s)[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var f=x(d.value,2),v=f[0],p=f[1];window.matchMedia(v).matches&&st(p)&&(r+=v,lt(a,p))}}catch(e){c=!0,u=e}finally{try{l||null==h.return||h.return()}finally{if(c)throw u}}r===this.bp&&this.state!==Ct.Init||(this.bp=r,this.state===Ct.Ready&&(a.initialSlide=this.pages[this.page].slides[0].index),this.state!==Ct.Init&&this.destroy(),(e=ge(n.prototype),t="setOptions",i=this,Ge(e,t,i)).call(this,a),!1===this.option("enabled")?this.attachEvents():setTimeout((function(){o.init()}),0))}}
7,{key:"init",value:function(){this.state=Ct.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},n.Plugins),this.userPlugins)),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=Ct.Ready,this.emit("ready")}},{key:"initLayout",value:function(){var e,t,n=this.container,i=this.option("classes");wt(n,this.cn("container")),tt(n,i.isLTR,!this.isRTL),tt(n,i.isRTL,this.isRTL),tt(n,i.isVertical,!this.isHorizontal),tt(n,i.isHorizontal,this.isHorizontal);var o=this.option("viewport")||n.querySelector(".".concat(i.viewport));o||(o=document.createElement("div"),wt(o,i.viewport),(e=o).append.apply(e,g(Ot(n,".".concat(i.slide)))),n.prepend(o));var a=this.option("track")||n.querySelector(".".concat(i.track));a||(a=document.createElement("div"),wt(a,i.track),(t=a).append.apply(t,g(Array.from(o.childNodes)))),a.setAttribute("aria-live","polite"),o.contains(a)||o.prepend(a),this.viewport=o,this.track=a,this.emit("initLayout")}},{key:"initSlides",value:function(){var e=this,t=this.track;if(t){this.slides=[],g(Ot(t,".".concat(this.cn("slide")))).forEach((function(t){if(yt(t)){var n=Mt({el:t,isDom:!0,index:e.slides.length});e.slides.push(n),e.emit("initSlide",n,e.slides.length)}}));var n=!0,i=!1,o=void 0;try{for(var a,r=this.option("slides",[])[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value,l=Mt(s);l.index=this.slides.length,this.slides.push(l),this.emit("initSlide",l,this.slides.length)}}catch(e){i=!0,o=e}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}this.emit("initSlides")}}},{key:"setInitialPage",value:function(){var e,t=this.option("initialSlide");e="number"==typeof t?this.getPageForSlide(t):parseInt(this.option("initialPage",0)+"",10)||0,this.page=e}},{key:"setInitialPosition",value:function(){if(this.track&&this.pages.length){var e=this.isHorizontal,t=this.page;this.pages[t]||(this.page=t=0);var n=this.pages[t].pos*(this.isRTL&&e?1:-1),i=e?"".concat(n,"px"):"0",o=e?"0":"".concat(n,"px");this.track.style.transform="translate3d(".concat(i,", ").concat(o,", 0) scale(1)"),this.option("adaptiveHeight")&&this.setViewportHeight()}}},{key:"initPanzoom",value:function(){var e=this;this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);var t=this.option("Panzoom")||{};this.panzoom=new Et(this.viewport,lt({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:function(t){return!(e.pages.length<2&&!t.options.infinite)},bounds:function(){return e.getBounds()},maxVelocity:function(t){return Math.abs(t.target[e.axis]-t.current[e.axis])<2*e.viewportDim?100:0}},t)),this.panzoom.on("*",(function(t,n){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];e.emit.apply(e,["Panzoom.".concat(n),t].concat(g(o)))})),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}},{key:"attachEvents",value:function(){var e=this.container;e&&(e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}},{key:"createPages",value:function(){var e=[],t=this.contentDim,n=this.viewportDim,i=this.option("slidesPerPage");("number"!=typeof i||t<=n)&&(i=1/0);var o=0,a=0,r=0,s=!0,l=!1,c=void 0;try{for(var u,d=this.slides[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var h=u.value;(!e.length||a+h.dim>n||r===i)&&(e.push(At()),o=e.length-1,a=0,r=0),e[o].slides.push(h),a+=h.dim+h.gap,r++}}catch(e){l=!0,c=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw c}}return e}},{key:"processPages",value:function(){var e=this,t=this.pages,n=this.contentDim,i=this.viewportDim,o=this.option("center"),a=this.option("fill"),r=a&&o&&n>i&&!this.isInfinite;if(t.forEach((function(e,t){e.index=t,e.pos=e.slides[0].pos,e.dim=0;var a=!0,s=!1,l=void 0;try{for(var c,u=e.slides.entries()[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var d=x(c.value,2),h=d[0],f=d[1];e.dim+=f.dim,h<e.slides.length-1&&(e.dim+=f.gap)}}catch(e){s=!0,l=e}finally{try{a||null==u.return||u.return()}finally{if(s)throw l}}r&&e.pos+.5*e.dim<.5*i?e.pos=0:r&&e.pos+.5*e.dim>=n-.5*i?e.pos=n-i:o&&(e.pos+=-.5*(i-e.dim))})),t.forEach((function(t,o){a&&!e.isInfinite&&n>i&&(t.pos=Math.max(t.pos,0),t.pos=Math.min(t.pos,n-i)),t.pos=Ze(t.pos,1e3),t.dim=Ze(t.dim,1e3),t.pos<.1&&t.pos>-.1&&(t.pos=0)})),this.isInfinite)return t;var s,l=[];return t.forEach((function(e){var t=Object.assign({},e);s&&t.pos===s.pos?(s.dim+=t.dim,s.slides=g(s.slides).concat(g(t.slides))):(t.
7index=l.length,s=t,l.push(t))})),l}},{key:"getPageFromIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.pages.length;return e=parseInt((e||0).toString())||0,this.isInfinite?(e%t+t)%t:Math.max(Math.min(e,t-1),0)}},{key:"getSlideMetrics",value:function(e){var t,n,i=this.isHorizontal?"width":"height",o=0,a=e.el;if(a?o=parseFloat(a.dataset[i]||"")||0:((a=document.createElement("div")).style.visibility="hidden",wt(a,this.cn("slide")+" "+e.class),(this.track||document.body).prepend(a)),o)a.style[i]="".concat(o,"px"),a.style["width"===i?"height":"width"]="";else{var r=Math.max(1,(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1);o=a.getBoundingClientRect()[i]*r}var s=getComputedStyle(a);return"content-box"===s.boxSizing&&(this.isHorizontal?(o+=parseFloat(s.paddingLeft)||0,o+=parseFloat(s.paddingRight)||0):(o+=parseFloat(s.paddingTop)||0,o+=parseFloat(s.paddingBottom)||0)),n=parseFloat(s[this.isHorizontal?"marginRight":"marginBottom"])||0,e.el||a.remove(),{dim:Ze(o,1e3),gap:Ze(n,1e3)}}},{key:"getBounds",value:function(){var e=this,t=e.isInfinite,n=e.isRTL,i=e.isHorizontal,o=e.pages,a={min:0,max:0};if(t)a={min:-1/0,max:1/0};else if(o.length){var r=o[0].pos,s=o[o.length-1].pos;a=n&&i?{min:r,max:s}:{min:-1*s,max:-1*r}}return{x:i?a:{min:0,max:0},y:i?{min:0,max:0}:a}}},{key:"repositionSlides",value:function(){var e,t=this,n=t.isHorizontal,i=t.isRTL,o=t.isInfinite,a=t.viewport,r=t.viewportDim,s=t.contentDim,l=t.page,c=t.pages,u=t.slides,d=t.panzoom,h=0,f=0,v=0,p=0;d?p=-1*d.current[this.axis]:c[l]&&(p=c[l].pos||0),e=n?i?"right":"left":"top",i&&n&&(p*=-1);var m=!0,y=!1,b=void 0;try{for(var w,x=u[Symbol.iterator]();!(m=(w=x.next()).done);m=!0){var k=w.value;k.el?("top"===e?(k.el.style.right="",k.el.style.left=""):k.el.style.top="",k.index!==h?k.el.style[e]=0===f?"":"".concat(Ze(f,1e3),"px"):k.el.style[e]="",v+=k.dim+k.gap,h++):f+=k.dim+k.gap}}catch(e){y=!0,b=e}finally{try{m||null==x.return||x.return()}finally{if(y)throw b}}if(o&&v&&a){var S=getComputedStyle(a),E="padding",C=n?"Right":"Bottom",T=parseFloat(S[E+(n?"Left":"Top")]);p-=T,r+=T,r+=parseFloat(S[E+C]);var O=!0,M=!1,A=void 0;try{for(var P,L=u[Symbol.iterator]();!(O=(P=L.next()).done);O=!0){var z=P.value;z.el&&(Ze(z.pos)<Ze(r)&&Ze(z.pos+z.dim+z.gap)<Ze(p)&&Ze(p)>Ze(s-r)&&(z.el.style[e]="".concat(Ze(f+v,1e3),"px")),Ze(z.pos+z.gap)>=Ze(s-r)&&Ze(z.pos)>Ze(p+r)&&Ze(p)<Ze(r)&&(z.el.style[e]="-".concat(Ze(v,1e3),"px")))}}catch(e){M=!0,A=e}finally{try{O||null==L.return||L.return()}finally{if(M)throw A}}}var I,R,j=g(this.inTransition);if(j.length>1&&(I=c[j[0]],R=c[j[1]]),I&&R){var D=0,F=!0,N=!1,B=void 0;try{for(var _,H=u[Symbol.iterator]();!(F=(_=H.next()).done);F=!0){var W=_.value;W.el?this.inTransition.has(W.index)&&I.slides.indexOf(W)<0&&(W.el.style[e]="".concat(Ze(D+(I.pos-R.pos),1e3),"px")):D+=W.dim+W.gap}}catch(e){N=!0,B=e}finally{try{F||null==H.return||H.return()}finally{if(N)throw B}}}}},{key:"createSlideEl",value:function(e){var t=this.track,n=this.slides;if(t&&e&&!e.el){var i=document.createElement("div");wt(i,this.cn("slide")),wt(i,e.class),wt(i,e.customClass),e.html&&(i.innerHTML=e.html);var o=[];n.forEach((function(e,t){e.el&&o.push(t)}));var a=e.index,r=null;o.length&&(r=n[o.reduce((function(e,t){return Math.abs(t-a)<Math.abs(e-a)?t:e}))]);var s=r&&r.el?r.index<e.index?r.el.nextSibling:r.el:null;t.insertBefore(i,t.contains(s)?s:null),e.el=i,this.emit("createSlide",e)}}},{key:"removeSlideEl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.el;if(n){if(bt(n,this.cn("isSelected")),e.isDom&&!t)return n.removeAttribute("aria-hidden"),n.removeAttribute("data-index"),bt(n,this.cn("isSelected")),void(n.style.left="");this.emit("removeSlide",e);var i=new CustomEvent("animationend");n.dispatchEvent(i),e.el&&e.el.remove(),e.el=null}}},{key:"transitionTo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.option("transition");if(!t)return!1;var n=this.pages,i=this.panzoom;e=parseInt((e||0).toString())||0;var o=this.getPageFromIndex(e);if(!i||!n[o]||n.length<2||Math.abs(n[this.page].slides[0].dim-this.viewportDim)>1)return!1;var a=e>this.page?1:-1,r=this.pages[o].pos*(this.isRTL?1:-1);if(this.page===o&&Ze(r,1e3)===Ze(i.target[this.axis],1e3))return!1;this.clearTransitions();var s=i.isResting;wt(this.container,this.cn("inTransition"));var l=this.pages[this.page].slides[0],c=this.pages[o].slides[0];this.inTransition.add(c.index),this.createSlideEl(c);var u=l.el,d=c.el;s||"slide"===t||(t="fadeFast",u=null);var h=this.isRTL?"next":"prev",f=this.isRTL?"prev":"next";return u&&(this.inTransition.add(l.index),l.transition=t,u.addEventListener("animationend",this.onAnimationEnd),u.classList.add("f-".concat(t,"Out"),"to-".concat(a>0?f:h))),d&&(c.transition=t,d.addEventListener("animationend",this.onAnimationEnd),d.classList.add("f-".concat(t,"In"),"from-".concat(a>0?h:f))),i.panTo({x:this.isHorizontal?r:0,y:this.isHorizontal?0:r,friction:0}),this.onChange(o),!0}},{key:"manageSlideVisiblity",value:function(){var e=new Set,t=new Set,n=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0),i=!0,o=!1,a=void 0;try{for(var r,s=this.slides[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=r.value;n.has(l)?e.add(l):t.add(l)}}catch(e){o=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}var c=!0,u=!1,d=void 0;try{for(var h,f=this.inTransition[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var v=h.value;e.add(this.slides[v])}}catch(e){u=!0,d=e}finally{try{c||null==f.return||f.return()}finally{if(u)throw d}}var p=!0,m=!1,g=void 0;try{for(var y,b=e[Symbol.iterator]();!(p=(y=b.next()).done);p=!0){var w=y.value;this.createSlideEl(w),this.lazyLoadSlide(w)}}catch(e){m=!0,g=e}finally{try{p||null==b.return||b.return()}finally{if(m)throw g}}var x=!0,k=!1,S=void 0;try{for(var E,C=t[Symbol.iterator]();!(x=(E=C.next()).done);x=!0){var T=E.value;e.has(T)||this.removeSlideEl(T)}}catch(e){k=!0,S=e}finally{try{x||null==C.return||C.return()}finally{if(k)throw S}}this.markSelectedSlides(),this.repositionSlides()}},{key:"markSelectedSlides",value:function(){if(this.pages[this.page]&&this.pages[this.page].slides){var e="aria-hidden",t=this.cn("isSelected"),n=!0,i=!1,o=void 0;if(t)try{for(var a,r=this.slides[Symbol.iterator]();!(n=(a=r.next()).done);
7n=!0){var s=a.value;s.el&&(s.el.dataset.index="".concat(s.index),this.pages[this.page].slides.includes(s)?(s.el.classList.contains(t)||(wt(s.el,t),this.emit("selectSlide",s)),s.el.removeAttribute(e)):(s.el.classList.contains(t)&&(bt(s.el,t),this.emit("unselectSlide",s)),s.el.setAttribute(e,"true")))}}catch(e){i=!0,o=e}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}}}},{key:"flipInfiniteTrack",value:function(){var e=this.panzoom;if(e&&this.isInfinite){var t="x"===this.option("axis")?"e":"f",n=this.viewportDim,i=this.contentDim,o=e.current[t],a=e.target[t]-o,r=0,s=.5*n,l=i;this.isRTL&&this.isHorizontal?(o<-s&&(r=-1,o+=l),o>l-s&&(r=1,o-=l)):(o>s&&(r=1,o-=l),o<-l+s&&(r=-1,o+=l)),r&&(e.current[t]=o,e.target[t]=o+a)}}},{key:"lazyLoadSlide",value:function(e){var t=this,n=this,i=e&&e.el;if(i){var o=new Set,a="f-fadeIn";i.querySelectorAll("[data-lazy-srcset]").forEach((function(e){e instanceof HTMLImageElement&&o.add(e)}));var r=Array.from(i.querySelectorAll("[data-lazy-src]"));i.dataset.lazySrc&&r.push(i),r.map((function(e){e instanceof HTMLImageElement?o.add(e):yt(e)&&(e.style.backgroundImage="url('".concat(e.dataset.lazySrc||"","')"),delete e.dataset.lazySrc)}));var s=function(e,i,o){o&&(o.remove(),o=null),i.complete&&(i.classList.add(a),setTimeout((function(){i.classList.remove(a)}),350),i.style.display=""),t.option("adaptiveHeight")&&e.el&&t.pages[t.page].slides.indexOf(e)>-1&&(n.updateMetrics(),n.setViewportHeight()),t.emit("load",e)},l=!0,c=!1,u=void 0;try{for(var d,h=function(){var t=d.value,n=null;t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.style.display="none",t.addEventListener("error",(function(){s(e,t,n)})),t.addEventListener("load",(function(){s(e,t,n)})),setTimeout((function(){t.parentNode&&e.el&&(t.complete?s(e,t,n):(n=Qe(gt),t.parentNode.insertBefore(n,t)))}),300)},f=o[Symbol.iterator]();!(l=(d=f.next()).done);l=!0)h()}catch(e){c=!0,u=e}finally{try{l||null==f.return||f.return()}finally{if(c)throw u}}}}},{key:"onAnimationEnd",value:function(e){var t,n=e.target,i=n?parseInt(n.dataset.index||"",10)||0:-1,o=this.slides[i],a=e.animationName;if(n&&o&&a){var r=!!this.inTransition.has(i)&&o.transition;r&&a.substring(0,r.length+2)==="f-".concat(r)&&this.inTransition.delete(i),this.inTransition.size||this.clearTransitions(),i===this.page&&(null===(t=this.panzoom)||void 0===t?void 0:t.isResting)&&this.emit("settle")}}},{key:"onDecel",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=this,a=o.isRTL,r=o.isHorizontal,s=o.axis,l=o.pages,c=l.length,u=Math.abs(Math.atan2(i,n)/(Math.PI/180));if(t=u>45&&u<135?r?0:i:r?n:0,c){var d=this.option("dragFree"),h=this.page,f=a&&r?1:-1,v=e.target[s]*f,p=e.current[s]*f,m=this.getPageFromPosition(v).pageIndex,g=this.getPageFromPosition(p).pageIndex;d?this.onChange(m):(Math.abs(t)>5?(l[h].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(h=g),h=a&&r?t<0?h-1:h+1:t<0?h+1:h-1):h=g,this.slideTo(h,{transition:!1,friction:e.option("decelFriction")}))}}},{key:"onClick",value:function(e){var t,n,i=e.target,o=i&&yt(i)?i.dataset:null;o&&(void 0!==o.carouselPage?(n="slideTo",t=o.carouselPage):void 0!==o.carouselNext?n="slideNext":void 0!==o.carouselPrev&&(n="slidePrev")),n?(e.preventDefault(),e.stopPropagation(),i&&!i.hasAttribute("disabled")&&this[n](t)):this.emit("click",e)}},{key:"onSlideTo",value:function(e){var t=e.detail||0;this.slideTo(this.getPageForSlide(t),{friction:0})}},{key:"onChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.page;this.prevPage=n,this.page=e,this.option("adaptiveHeight")&&this.setViewportHeight(),e!==n&&(this.markSelectedSlides(),this.emit("change",e,n,t))}},{key:"onRefresh",value:function(){var e=this.contentDim,t=this.viewportDim;this.updateMetrics(),this.contentDim===e&&this.viewportDim===t||this.slideTo(this.page,{friction:0,transition:!1})}},{key:"onResize",value:function(){this.option("breakpoints")&&this.processOptions()}},{key:"onBeforeTransform",value:function(e){this.lp!==e.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=e.current.e}},{key:"onEndAnimation",value:function(){this.inTransition.size||this.emit
7("settle")}},{key:"reInit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.destroy(),this.state=Ct.Init,this.userOptions=e||this.userOptions,this.userPlugins=t||this.userPlugins,this.processOptions()}},{key:"slideTo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.friction,i=void 0===n?this.option("friction"):n,o=t.transition,a=void 0===o?this.option("transition"):o;if(this.state!==Ct.Destroy){var r=this,s=r.axis,l=r.isHorizontal,c=r.isRTL,u=r.pages,d=r.panzoom,h=u.length,f=c&&l?1:-1;if(d&&h&&!this.transitionTo(e,a)){var v=this.getPageFromIndex(e),p=u[v].pos;if(this.isInfinite){var m=this.contentDim,g=d.target[s]*f;if(2===h)p+=m*Math.floor(parseFloat(e+"")/2);else{var y=g;p=[p,p-m,p+m].reduce((function(e,t){return Math.abs(t-y)<Math.abs(e-y)?t:e}))}}p*=f,Math.abs(d.target[s]-p)<.1||(d.panTo({x:l?p:0,y:l?0:p,friction:i}),this.onChange(v))}}}},{key:"slideToClosest",value:function(e){if(this.panzoom){var t=this.getPageFromPosition(this.panzoom.current[this.isHorizontal?"e":"f"]).pageIndex;this.slideTo(t,e)}}},{key:"slideNext",value:function(){this.slideTo(this.page+1)}},{key:"slidePrev",value:function(){this.slideTo(this.page-1)}},{key:"clearTransitions",value:function(){this.inTransition.clear(),bt(this.container,this.cn("inTransition"));var e=["to-prev","to-next","from-prev","from-next"],t=!0,n=!1,i=void 0;try{for(var o,a=this.slides[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var r=o.value,s=r.el;if(s){var l;s.removeEventListener("animationend",this.onAnimationEnd),(l=s.classList).remove.apply(l,g(e));var c=r.transition;c&&s.classList.remove("f-".concat(c,"Out"),"f-".concat(c,"In"))}}}catch(e){n=!0,i=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw i}}this.manageSlideVisiblity()}},{key:"prependSlide",value:function(e){var t,n,i=Array.isArray(e)?e:[e],o=!0,a=!1,r=void 0;try{for(var s,l=i.reverse()[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;this.slides.unshift(Mt(c))}}catch(e){a=!0,r=e}finally{try{o||null==l.return||l.return()}finally{if(a)throw r}}for(var u=0;u<this.slides.length;u++)this.slides[u].index=u;var d=(null===(t=this.pages[this.page])||void 0===t?void 0:t.pos)||0;this.page+=i.length,this.updateMetrics();var h=(null===(n=this.pages[this.page])||void 0===n?void 0:n.pos)||0;if(this.panzoom){var f=this.isRTL?d-h:h-d;this.panzoom.target.e-=f,this.panzoom.current.e-=f,this.panzoom.requestTick()}}},{key:"appendSlide",value:function(e){var t=Array.isArray(e)?e:[e],n=!0,i=!1,o=void 0;try{for(var a,r=t[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value,l=Mt(s);l.index=this.slides.length,this.slides.push(l),this.emit("initSlide",s,this.slides.length)}}catch(e){i=!0,o=e}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}this.updateMetrics()}},{key:"removeSlide",value:function(e){var t=this.slides.length;e=(e%t+t)%t,this.removeSlideEl(this.slides[e],!0),this.slides.splice(e,1);for(var n=0;n<this.slides.length;n++)this.slides[n].index=n;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1})}},{key:"updateMetrics",value:function(){var e=this,t=e.panzoom,n=e.viewport,i=e.track,o=e.isHorizontal;if(i){var a=o?"width":"height",r=o?"offsetWidth":"offsetHeight";if(n){var s=Math.max(n[r],Ze(n.getBoundingClientRect()[a],1e3)),l=getComputedStyle(n),c="padding",u=o?"Right":"Bottom";s-=parseFloat(l[c+(o?"Left":"Top")])+parseFloat(l[c+u]),this.viewportDim=s}var d,h=this.pages.length,f=0,v=!0,p=!1,m=void 0;try{for(var g,y=this.slides.entries()[Symbol.iterator]();!(v=(g=y.next()).done);v=!0){var b,w=x(g.value,2),k=w[0],S=w[1],E=0,C=0;!S.el&&d?(E=d.dim,C=d.gap):(E=(b=this.getSlideMetrics(S)).dim,C=b.gap,d=S),E=Ze(E,1e3),C=Ze(C,1e3),S.dim=E,S.gap=C,S.pos=f,f+=E,(this.isInfinite||k<this.slides.length-1)&&(f+=C)}}catch(e){p=!0,m=e}finally{try{v||null==y.return||y.return()}finally{if(p)throw m}}var T=this.contentDim;f=Ze(f,1e3),this.contentDim=f,t&&(t.contentRect[a]=f,t.contentRect["e"===this.axis?"fullWidth":"fullHeight"]=f),this.pages=this.createPages(),this.pages=this.processPages(),this.state===Ct.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),t&&h===this.pages.length&&Math.abs(f-T)>.5&&(t.target[this.axis]=-1*this.pages[this.page].pos,t.current[this.axis]=-1*this.pages[this.page].pos,t.stop()),this.manageSlideVisiblity(),this.emit
7("refresh")}}},{key:"getProgress",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];void 0===e&&(e=this.page);var n=this,i=n.panzoom,o=n.pages[e]||0;if(!o||!i)return 0;var a=-1*i.current.e,r=n.contentDim,s=[Ze((a-o.pos)/(1*o.dim),1e3),Ze((a+r-o.pos)/(1*o.dim),1e3),Ze((a-r-o.pos)/(1*o.dim),1e3)].reduce((function(e,t){return Math.abs(t)<Math.abs(e)?t:e}));return t?s:Math.max(-1,Math.min(1,s))}},{key:"setViewportHeight",value:function(){var e=this,t=e.page,n=e.pages,i=e.viewport,o=e.isHorizontal;if(i&&n[t]){var a=0;o&&this.track&&(this.track.style.height="auto",n[t].slides.forEach((function(e){e.el&&(a=Math.max(a,e.el.offsetHeight))}))),i.style.height=a?"".concat(a,"px"):""}}},{key:"getPageForSlide",value:function(e){var t=!0,n=!1,i=void 0,o=!0,a=!1,r=void 0;try{for(var s,l=this.pages[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;try{for(var u,d=c.slides[Symbol.iterator]();!(t=(u=d.next()).done);t=!0){if(u.value.index===e)return c.index}}catch(e){n=!0,i=e}finally{try{t||null==d.return||d.return()}finally{if(n)throw i}}}}catch(e){a=!0,r=e}finally{try{o||null==l.return||l.return()}finally{if(a)throw r}}return-1}},{key:"getVisibleSlides",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=new Set,i=this,o=i.contentDim,a=i.viewportDim,r=i.pages,s=i.page;o=o+(null===(e=this.slides[this.slides.length-1])||void 0===e?void 0:e.gap)||0;var l=0;l=this.panzoom?-1*this.panzoom.current[this.axis]:r[s]&&r[s].pos||0,this.isInfinite&&(l-=Math.floor(l/o)*o),this.isRTL&&this.isHorizontal&&(l*=-1);var c=l-a*t,u=l+a*(t+1),d=this.isInfinite?[-1,0,1]:[0],h=!0,f=!1,v=void 0,p=!0,m=!1,g=void 0;try{for(var y,b=this.slides[Symbol.iterator]();!(p=(y=b.next()).done);p=!0){var w=y.value;try{for(var x,k=d[Symbol.iterator]();!(h=(x=k.next()).done);h=!0){var S=x.value,E=w.pos+S*o,C=w.pos+w.dim+w.gap+S*o;E<u&&C>c&&n.add(w)}}catch(e){f=!0,v=e}finally{try{h||null==k.return||k.return()}finally{if(f)throw v}}}}catch(e){m=!0,g=e}finally{try{p||null==b.return||b.return()}finally{if(m)throw g}}return n}},{key:"getPageFromPosition",value:function(e){var t,n,i=this.viewportDim,o=this.contentDim,a=this.pages.length,r=this.slides.length,s=this.slides[r-1],l=this.option("center");l&&(e+=.5*i),this.isInfinite||(e=Math.max(this.slides[0].pos,Math.min(e,s.pos)));var c=o+s.gap;n=Math.floor(e/c)||0,e-=n*c;var u=s,d=this.slides.find((function(t){var n=e+(u&&!l?.5*u.dim:0);return u=t,t.pos<=n&&t.pos+t.dim+t.gap>n}));return d||(d=s),{page:(t=this.getPageForSlide(d.index))+n*a,pageIndex:t}}},{key:"destroy",value:function(){var e,t=this;if(![Ct.Destroy].includes(this.state)){this.state=Ct.Destroy;var n=this,i=n.container,o=n.viewport,a=n.track,r=n.slides,s=n.panzoom,l=this.option("classes");i.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),i.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),s&&(s.destroy(),this.panzoom=null),r&&r.forEach((function(e){t.removeSlideEl(e)})),this.detachPlugins(),o&&o.offsetParent&&a&&a.offsetParent&&(e=o).replaceWith.apply(e,g(a.childNodes));var c=!0,u=!1,d=void 0;try{for(var h,f=Object.entries(l)[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var v=x(h.value,2),p=v[0],m=v[1];"container"!==p&&m&&i.classList.remove(m)}}catch(e){u=!0,d=e}finally{try{c||null==f.return||f.return()}finally{if(u)throw d}}this.track=null,this.viewport=null,this.page=0,this.slides=[];var y=this.events.get("ready");this.events=new Map,y&&this.events.set("ready",y)}}}]),n}(ft);Object.defineProperty(jt,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:Et}),Object.defineProperty(jt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}}}),Object.defineProperty(jt,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Rt});var Dt,Ft,Nt,Bt=function(e){var t=window.pageYOffset,n=window.pageYOffset+window.innerHeight;if(!yt(e))return 0;var i=e.getBoundingClientRect(),o=i.y+window.pageYOffset,a=i.y+i.height+window.pageYOffset;if(t>a||n<o)return 0;if(t<o&&n>a)return 100;if(o<t&&a>n)return 100;var r=i.height;o<t&&(r-=window.pageYOffset-o),a>n&&(r-=a-n);var s=r/window.innerHeight*100;return Math.round(s)},_t=!("undefined"==typeof window||!window.document||!window.document.createElement),Ht=["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]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not
7([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),Wt=function(e){if(e&&_t){void 0===Dt&&document.createElement("div").focus({get preventScroll(){return Dt=!0,!1}});try{if(Dt)e.focus({preventScroll:!0});else{var t=window.pageXOffset||document.body.scrollTop,n=window.pageYOffset||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:n,behavior:"auto"})}}catch(e){}}},qt={dragToClose:!0,hideScrollbar:!0,Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},contentClick:"toggleZoom",contentDblClick:!1,backdropClick:"close",animated:!0,idle:3500,showClass:"f-zoomInUp",hideClass:"f-fadeOut",commonCaption:!1,parentEl:null,startIndex:0,l10n:Object.assign(Object.assign({},pt),{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"}),tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:'<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n <div class="fancybox__backdrop"></div>\n <div class="fancybox__carousel"></div>\n <div class="fancybox__footer"></div>\n </div>'},groupAll:!1,groupAttr:"data-fancybox",defaultType:"image",defaultDisplay:"block",autoFocus:!0,trapFocus:!0,placeFocusBack:!0,closeButton:"auto",keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},Fullscreen:{autoStart:!1},compact:function(){return window.matchMedia("(max-width: 578px), (max-height: 578px)").matches},wheel:"zoom"};!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.CustomClosing=3]="CustomClosing",e[e.Destroy=4]="Destroy"}(Ft||(Ft={})),function(e){e[e.Loading=0]="Loading",e[e.Opening=1]="Opening",e[e.Ready=2]="Ready",e[e.Closing=3]="Closing"}(Nt||(Nt={}));var Xt=function(){queueMicrotask((function(){!function(){var e=$t.parseURL(),t=e.slug,n=e.index,i=pn.getInstance();if(i&&!1!==i.option("Hash")){var o=i.carousel;if(t&&o){var a=!0,r=!1,s=void 0;try{for(var l,c=o.slides[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var u=l.value;if(u.slug&&u.slug===t)return o.slideTo(u.index)}}catch(e){r=!0,s=e}finally{try{a||null==c.return||c.return()}finally{if(r)throw s}}if(t===i.option("slug"))return o.slideTo(n-1);var d=i.getSlide(),h=d&&d.triggerEl&&d.triggerEl.dataset;if(h&&h.fancybox===t)return o.slideTo(n-1)}$t.hasSilentClose=!0,i.close()}$t.startFromUrl()}()}))},$t=function(e){"use strict";fe(n,e);var t=ke(n);function n(){var e;return c(this,n),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty(ie(e),"origHash",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(ie(e),"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),xe(e)}return d(n,[{key:"onChange",value:function(){var e=this.instance,t=e.carousel;this.timer&&clearTimeout(this.timer);var n=e.getSlide();if(t&&n){var i,o=e.isOpeningSlide(n),a=new URL(document.URL).hash,r=n.slug||void 0,s=n.triggerEl||void 0;!(i=r||this.instance.option("slug"))&&s&&s.dataset&&(i=s.dataset.fancybox);var l="";i&&"true"!==i&&(l="#"+i+(!r&&t.slides.length>1?"-"+(n.index+1):"")),o&&(this.origHash=a!==l?a:""),l&&a!==l&&(this.timer=setTimeout((function(){try{e.state===Ft.Ready&&window.history[o?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+l)}catch(e){}}),300))}}},{key:"onClose",value:function(){if(this.timer&&clearTimeout(this.timer),!0!==n.hasSilentClose)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(this.origHash||""))}catch(e){}}},{key:"attach",value:function(){var e=this.instance;e.on("Carousel.ready",this.onChange),e.on("Carousel.change",this.onChange),e.on("close",this.onClose)}},{key:"detach",value:function(){var e=this.instance;e.off("Carousel.ready",this.onChange),e.off("Carousel.change",this.onChange),e.off("close",this.onClose)}}],[{key:"parseURL",value:function(){var e=window.location.hash.slice(1),t=e.split("-"),n=t[t.length-1],i=n&&/^\+?\d+$/.test(n)&&parseInt(t.pop()||"1",10)||1;return{hash:e,slug:t.join("-"),index:i}}},{key:"startFromUrl",value:function(){if(n.hasSilentClose=!1,!pn.getInstance()&&!1!==pn.defaults.Hash){var e=n.parseURL(),t=e.hash,i=e.slug,o=e.index;if(i){var a=document.querySelector('[data-slug="'.concat(t,'"]'));if(a&&a.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),!pn.getInstance()){var r=document.querySelectorAll('[data-fancybox="'.concat(i,'"]'));r.length&&((a=r[o-1])&&a.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}}}}},{key:"destroy",value:function(){window.removeEventListener("hashchange",Xt,!1)}}]),n}(Pt);function Yt(){window.addEventListener("hashchange",Xt,!1),setTimeout((function(){$t.startFromUrl()}),500)}Object.defineProperty($t,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty($t,"hasSilentClose",{enumerable:!0,configurable:!0,writable:!0,value:!1}),_t&&(/complete|interactive|loaded/.test(document.readyState)?Yt():document.addEventListener("DOMContentLoaded",Yt));var Vt=function(e){"use strict";fe(n,e);var t=ke(n);function n(){return c(this,n),t.apply(this,arguments)}return d(n,[{key:"onCreateSlide",value:function(e,t,n){var i=this,o=this.instance,a=o.optionFor(n,"src")||"",r=n.el,s=n.type;r&&"image"===s&&"string"==typeof a&&this.setContent(n,a).then((function(e){var t=n.contentEl,a=n.imageEl,s=n.thumbElSrc;if(!o.isClosing()&&t&&a){t.offsetHeight;var l,c=!!o.isOpeningSlide(n)&&i.getZoomInfo(n);if(i.option("protected")){r.addEventListener("contextmenu",(function(e){e.preventDefault()}));var u=document.createElement("div");wt(u,"fancybox-protected"),t.appendChild(u)}if(s&&c){var d=e.contentRect,h=Math.max(d.fullWidth,d.fullHeight),f=null;!c.opacity&&h>1200&&(f=document.createElement("img"),wt(f,"fancybox-ghost"),f.src=s,t.appendChild(f));var v=function(){f&&(wt(f,"f-fadeFastOut"),setTimeout((function(){f&&(f.remove(),f=null)}),200))};(l=s,new Promise((function(e,t){var n=new Image;n.onload=e,n.onerror=t,n.src=l}))).then((function(){n.state=Nt.Opening,i.instance.emit("reveal",n),i.zoomIn(n).then((function(){v(),i.instance.done(n)}),(function(){o.hideLoading(n)})),f&&setTimeout((function(){v()}),h>2500?800:200)}),(function(){o.hideLoading(n),o.revealContent(n)}))}else{var p=i.optionFor(n,"initialSize"),m=i.optionFor(n,"zoom"),g={event:o.prevMouseMoveEvent||o.options.event,friction:m?.12:0},y=o.optionFor(n,"showClass")||void 0,b=!0;o.isOpeningSlide(n)&&("full"===p?e.zoomToFull(g):"cover"===p?e.zoomToCover(g):"max"===p?e.zoomToMax(g):b=!1,e.stop("current")),b&&y&&(y=e.isDragging?"f-fadeIn":""),o.revealContent(n,y)}}}),(function(){o.setError(n,"{{IMAGE_ERROR}}")}))}},{key:"onRemoveSlide",value:function(e,t,n){n.panzoom&&n.panzoom.destroy(),n.panzoom=void 0,n.imageEl=void 0}},{key:"onChange",value:function(e,t,n,i){var o=!0,a=!1,r=void 0;try{for(var s,l=t.slides[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value,u=c.panzoom;u&&c.index!==n&&u.reset(.35)}}catch(e){a=!0,r=e}finally{try{o||null==l.return||l.return()}finally{if(a)throw r}}}},{key:"onClose",value:function(){var e,t=this.instance,n=t.container,i=t.getSlide();if(n&&n.parentElement&&i){var o=i.el,a=i.contentEl,r=i.panzoom,s=i.thumbElSrc;if(o&&s&&a&&r&&!r.isContentLoading&&r.state!==dt.Init&&r.state!==dt.Destroy){r.updateMetrics();var l=this.getZoomInfo(i);if(l){this.instance.state=Ft.CustomClosing,n.classList.remove("is-zooming-in"),n.classList.add("is-zooming-out"),a.style.backgroundImage="url('".concat(s,"')");var c=n.getBoundingClientRect();
71===((null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1)&&Object.assign(n.style,{position:"absolute",top:"".concat(window.pageYOffset,"px"),left:"".concat(window.pageXOffset,"px"),bottom:"auto",right:"auto",width:"".concat(c.width,"px"),height:"".concat(c.height,"px"),overflow:"hidden"});var u=l.x,d=l.y,h=l.scale,f=l.opacity;if(f){var v=function(e,t,n,i){var o=t-e;return function(t){return 1+((t-e)/o*-1||0)}}(r.scale,h);r.on("afterTransform",(function(){a.style.opacity=v(r.scale)+""}))}r.on("endAnimation",(function(){t.destroy()})),r.target.a=h,r.target.b=0,r.target.c=0,r.target.d=h,r.panTo({x:u,y:d,scale:h,friction:f?.2:.33,ignoreBounds:!0}),r.isResting&&t.destroy()}}}}},{key:"setContent",value:function(e,t){var n=this;return new Promise((function(i,o){var a,r,s=n.instance,l=e.el;if(l){s.showLoading(e);var c=n.optionFor(e,"content");"string"==typeof c&&(c=Qe(c)),c&&yt(c)||((c=document.createElement("img"))instanceof HTMLImageElement&&(c.src=t||"",c.alt=(null===(a=e.caption)||void 0===a?void 0:a.replace(/<[^>]+>/gi,"").substring(0,1e3))||"Image ".concat(e.index+1," of ").concat(null===(r=s.carousel)||void 0===r?void 0:r.pages.length),c.draggable=!1,e.srcset&&c.setAttribute("srcset",e.srcset)),e.sizes&&c.setAttribute("sizes",e.sizes)),c.classList.add("fancybox-image"),e.imageEl=c,s.setContent(e,c,!1),e.panzoom=new Et(l,lt({},n.option("Panzoom")||{},{content:c,width:s.optionFor(e,"width","auto"),height:s.optionFor(e,"height","auto"),wheel:function(){var e=s.option("wheel");return("zoom"===e||"pan"==e)&&e},click:function(t,n){var i,o;if(s.isCompact||s.isClosing())return!1;if(e.index!==(null===(i=s.getSlide())||void 0===i?void 0:i.index))return!1;var a=!n||n.target&&(null===(o=e.contentEl)||void 0===o?void 0:o.contains(n.target));return s.option(a?"contentClick":"backdropClick")||!1},dblClick:function(){return s.isCompact?"toggleZoom":s.option("contentDblClick")||!1},spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,transformParent:!0,on:{ready:function(e){i(e)},error:function(){o()},destroy:function(){o()}}}))}else o()}))}},{key:"zoomIn",value:function(e){var t=this;return new Promise((function(n,i){var o=t.instance,a=o.container,r=e.panzoom,s=e.contentEl,l=e.el;r&&r.updateMetrics();var c=t.getZoomInfo(e);if(c&&l&&s&&r&&a){var u=c.x,d=c.y,h=c.scale,f=c.opacity,v=function(){e.state!==Nt.Closing&&(f&&(s.style.opacity=Math.max(Math.min(1,1-(1-r.scale)/(1-h)),0)+""),r.scale>=1&&r.scale>r.targetScale-.1&&n(r))},p=function(e){bt(a,"is-zooming-in"),e.scale<.99||e.scale>1.01||(s.style.opacity="",e.off("endAnimation",p),e.off("touchStart",p),e.off("afterTransform",v),n(e))};r.on("endAnimation",p),r.on("touchStart",p),r.on("afterTransform",v),r.on(["error","destroy"],(function(){i()})),r.panTo({x:u,y:d,scale:h,friction:0,ignoreBounds:!0}),r.stop("current");var m={event:"mousemove"===r.panMode?o.prevMouseMoveEvent||o.options.event:void 0},g=t.optionFor(e,"initialSize");wt(a,"is-zooming-in"),o.hideLoading(e),"full"===g?r.zoomToFull(m):"cover"===g?r.zoomToCover(m):"max"===g?r.zoomToMax(m):r.reset(.172)}else i()}))}},{key:"getZoomInfo",value:function(e){var t,n=e.el,i=e.imageEl,o=e.thumbEl,a=e.panzoom;if(!n||!i||!o||!a||Bt(o)<3||!this.optionFor(e,"zoom")||this.instance.state===Ft.Destroy)return!1;if(1!==((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1))return!1;var r=o.getBoundingClientRect(),s=r.top,l=r.left,c=r.width,u=r.height,d=a.contentRect,h=d.top,f=d.left,v=d.fitWidth,p=d.fitHeight;if(!(c&&u&&v&&p))return!1;var m=a.container.getBoundingClientRect(),g=-1*((f+=m.left)+.5*v-(l+.5*c)),y=-1*((h+=m.top)+.5*p-(s+.5*u)),b=c/v,w=this.option("zoomOpacity")||!1;return"auto"===w&&(w=Math.abs(c/u-v/p)>.1),{x:g,y:y,scale:b,opacity:w}}},{key:"attach",value:function(){var e=this,t=e.instance;t.on("Carousel.change",e.onChange),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.removeSlide",e.onRemoveSlide),t.on("close",e.onClose)}},{key:"detach",value:function(){var e=this,t=e.instance;t.off("Carousel.change",e.onChange),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.removeSlide",e.onRemoveSlide),t.off("close",e.onClose)}}]),n}(Pt);Object.defineProperty(Vt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}});var Ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new URL(e),i=new URLSearchParams(n.search),o=new URLSearchParams,a=!0,r=!1,s=void 0;try{for(var l,c=g(i).concat(g(Object.entries(t)))[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var u=x(l.value,2),d=u[0],h=u[1].toString();"t"===d?o.set("start",parseInt(h).toString()):o.set(d,h)}}catch(e){r=!0,s=e}finally{try{a||null==c.return||c.return()}finally{if(r)throw s}}var f=o.toString(),v=e.match(/#t=((.*)?\d+s)/);return v&&(f+="#t=".concat(v[1])),f},Gt=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo","video"],Zt=function(e){"use strict";fe(n,e);var t=ke(n);function n(){return c(this,n),t.apply(this,arguments)}return d(n,[{key:"onInitSlide",value:function(e,t,n){this.processType(n)}},{key:"onCreateSlide",value:function(e,t,n){this.setContent(n)}},{key:"onRemoveSlide",value:function(e,t,n){n.closeBtnEl&&(n.closeBtnEl.remove(),n.closeBtnEl=void 0),n.xhr&&(n.xhr.abort(),n.xhr=null);var i=n.iframeEl;i&&(i.onload=i.onerror=null,i.src="//about:blank",n.iframeEl=null);var o=n.contentEl,a=n.placeholderEl;if("inline"===n.type&&o&&a)o.classList.remove("fancybox__content"),"none"!==o.style.display&&(o.style.display="none"),a.parentNode&&a.parentNode.insertBefore(o,a),a.remove(),n.placeholderEl=null;else for(;n.el&&n.el.firstChild;)n.el.removeChild(n.el.firstChild)}},{key:"onSelectSlide",value:function(e,t,n){n.state===Nt.Ready&&this.playVideo()}},{key:"onUnselectSlide",value:function(e,t,n){var i,o,a;if("html5video"!==n.type)"vimeo"===n.type?a={method:"pause",value:"true"}:"youtube"===n.type&&(a={event:"command",func:"pauseVideo"}),a&&n.iframeEl&&n.iframeEl.contentWindow&&n.iframeEl.contentWindow.postMessage(JSON.stringify(a),"*"),n.poller&&clearTimeout(n.poller);else try{null===(o=null===(i=n.el)||void 0===i?void 0:i.querySelector("video"))||void 0===o||o.pause()}catch(e){}}},{key:"onDone",value:function(e,t){e.isCurrentSlide(t)&&!e.isClosing()&&this.playVideo()}},{key:"onRefresh",value:function(e,t){var n=this;
7t.slides.forEach((function(e){e.el&&(n.setAspectRatio(e),n.resizeIframe(e))}))}},{key:"onMessage",value:function(e){try{var t=JSON.parse(e.data);if("https://player.vimeo.com"===e.origin){var n=!0,i=!1,o=void 0;if("ready"===t.event)try{for(var a,r=Array.from(document.getElementsByClassName("fancybox__iframe"))[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value;s instanceof HTMLIFrameElement&&s.contentWindow===e.source&&(s.dataset.ready="true")}}catch(e){i=!0,o=e}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}}else if(e.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===t.event){var l=document.getElementById(t.id);l&&(l.dataset.ready="true")}}catch(e){}}},{key:"loadAjaxContent",value:function(e){var t=this.instance.optionFor(e,"src")||"";this.instance.showLoading(e);var n=this.instance,i=new XMLHttpRequest;n.showLoading(e),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&n.state===Ft.Ready&&(n.hideLoading(e),200===i.status?n.setContent(e,i.responseText):n.setError(e,404===i.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};var o=e.ajax||null;i.open(o?"POST":"GET",t+""),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(o),e.xhr=i}},{key:"setInlineContent",value:function(e){var t=null;if(yt(e.src))t=e.src;else if("string"==typeof e.src){var n=e.src.split("#",2).pop();t=n?document.getElementById(n):null}if(t){if("clone"===e.type||t.closest(".fancybox__slide")){var i=(t=t.cloneNode(!0)).dataset.animationName;i&&(t.classList.remove(i),delete t.dataset.animationName);var o=t.getAttribute("id");o=o?"".concat(o,"--clone"):"clone-".concat(this.instance.id,"-").concat(e.index),t.setAttribute("id",o)}else if(t.parentNode){var a=document.createElement("div");a.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(a,t),e.placeholderEl=a}this.instance.setContent(e,t)}else this.instance.setError(e,"{{ELEMENT_NOT_FOUND}}")}},{key:"setIframeContent",value:function(e){var t=this,n=e.src,i=e.el;if(n&&"string"==typeof n&&i){var o=this.instance,a=document.createElement("iframe");a.className="fancybox__iframe",a.setAttribute("id","fancybox__iframe_".concat(o.id,"_").concat(e.index));var r=!0,s=!1,l=void 0;try{for(var c,u=Object.entries(this.optionFor(e,"iframeAttr")||{})[Symbol.iterator]();!(r=(c=u.next()).done);r=!0){var d=x(c.value,2),h=d[0],f=d[1];a.setAttribute(h,f)}}catch(e){s=!0,l=e}finally{try{r||null==u.return||u.return()}finally{if(s)throw l}}a.onerror=function(){o.setError(e,"{{IFRAME_ERROR}}")},e.iframeEl=a;var v=this.optionFor(e,"preload");if(i.classList.add("is-loading"),"iframe"!==e.type||!1===v)return a.setAttribute("src",e.src+""),this.resizeIframe(e),void o.setContent(e,a);o.showLoading(e),a.onload=function(){if(a.src.length){var n="true"!==a.dataset.ready;a.dataset.ready="true",t.resizeIframe(e),n?o.revealContent(e):o.hideLoading(e)}},a.setAttribute("src",n),o.setContent(e,a,!1)}}},{key:"resizeIframe",value:function(e){var t=e.iframeEl,n=null==t?void 0:t.parentElement;if(t&&n){var i=e.autoSize,o=e.width||0,a=e.height||0;o&&a&&(i=!1);var r=n&&n.style;if(!1!==e.preload&&!1!==i&&r)try{var s=window.getComputedStyle(n),l=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),c=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),u=t.contentWindow;if(u){var d=u.document,h=d.getElementsByTagName("html")[0],f=d.body;r.width="",f.style.overflow="hidden",o=o||h.scrollWidth+l,r.width="".concat(o,"px"),f.style.overflow="",r.flex="0 0 auto",r.height="".concat(f.scrollHeight,"px"),a=h.scrollHeight+c}}catch(e){}if(o||a){var v={flex:"0 1 auto",width:"",height:""};o&&(v.width="".concat(o,"px")),a&&(v.height="".concat(a,"px")),Object.assign(r,v)}}}},{key:"playVideo",value:function(){var e=this.instance.getSlide();if(e){var t=e.el;if(t&&t.offsetParent&&this.optionFor(e,"videoAutoplay")){if("html5video"===e.type)try{var n=t.querySelector("video");if(n){var i=n.play();void 0!==i&&i.then((function(){})).catch((function(e){n.muted=!0,n.play()}))}}catch(e){}if("youtube"===e.type||"vimeo"===e.type){var o=function(){if(e.iframeEl&&e.iframeEl.contentWindow){var t;if("true"===e.iframeEl.dataset.ready)return(t="youtube"===e.type?{event:"command",func:"playVideo"}:{method:"play",value:"true"})&&e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"),void(e.poller=void 0);"youtube"===e.type&&(t={event:"listening",id:e.iframeEl.getAttribute("id")},e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"))}e.poller=setTimeout(o,250)};o()}}}}},{key:"processType",value:function(e){if(e.html)return e.type="html",e.src=e.html,void(e.html="");var t=this.instance.optionFor(e,"src","");if(t&&"string"==typeof t){var n=e.type,i=null;if(i=t.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){var o=this.optionFor(e,"youtube"),a=o.nocookie,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(o,["nocookie"]),s="www.youtube".concat(a?"-nocookie":"",".com"),l=Ut(t,r),c=encodeURIComponent(i[2]);e.videoId=c,e.src="https://".concat(s,"/embed/").concat(c,"?").concat(l),e.thumbSrc=e.thumbSrc||"https://i.ytimg.com/vi/".concat(c,"/mqdefault.jpg"),n="youtube"}else if(i=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){var u=Ut(t,this.optionFor(e,"vimeo")),d=encodeURIComponent(i[1]),h=i[4]||"";e.videoId=d,e.src="https://player.vimeo.com/video/".concat(d,"?").concat(h?"h=".concat(h).concat(u?"&":""):"").concat(u),n="vimeo"}if(!n&&e.triggerEl){var f=e.triggerEl.dataset.type;Gt.includes(f)&&(n=f)}n||"string"==typeof t&&("#"===t.charAt(0)?n="inline":(i=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n="html5video",e.videoFormat=e.videoFormat||"video/"+("ogv"===i[1]?"ogg":i[1])):t.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n="image":t.match(/\.(pdf)((\?|#).*)?$/i)?n="pdf":(i=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src="https://maps.google.".concat(i[1],"/?ll=").concat((i[2]?i[2]+"&z="+Math.floor(parseFloat(i[3]))+(i[4]?i[4].replace(/^\//,"&"):""):i[4]+"").replace(/\?/,"&"),"&output=").concat(i[4]&&i[4].indexOf("layer=c")>0?"svembed":"embed"),n="map"):(i=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src="https://maps.google.".concat(i[1],"/ma
7ps?q=").concat(i[2].replace("query=","q=").replace("api=1",""),"&output=embed"),n="map")),n=n||this.instance.option("defaultType"),e.type=n,"image"===n&&(e.thumbSrc=e.thumbSrc||e.src)}}},{key:"setContent",value:function(e){var t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case"html":this.instance.setContent(e,t);break;case"html5video":var n=this.option("videoTpl");n&&this.instance.setContent(e,n.replace(/\{\{src\}\}/gi,t+"").replace(/\{\{format\}\}/gi,this.optionFor(e,"videoFormat")||"").replace(/\{\{poster\}\}/gi,e.poster||e.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case"map":case"youtube":case"vimeo":e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}},{key:"setAspectRatio",value:function(e){var t,n=e.contentEl,i=this.optionFor(e,"videoRatio"),o=null===(t=e.el)||void 0===t?void 0:t.getBoundingClientRect();if(n&&o&&i&&1!==i&&e.type&&["video","youtube","vimeo","html5video"].includes(e.type)){var a=o.width,r=o.height;n.style.aspectRatio=i+"",n.style.width=a/r>i?"auto":"",n.style.height=a/r>i?"":"auto"}}},{key:"attach",value:function(){var e=this.instance;e.on("Carousel.initSlide",this.onInitSlide),e.on("Carousel.createSlide",this.onCreateSlide),e.on("Carousel.removeSlide",this.onRemoveSlide),e.on("Carousel.selectSlide",this.onSelectSlide),e.on("Carousel.unselectSlide",this.onUnselectSlide),e.on("Carousel.Panzoom.refresh",this.onRefresh),e.on("done",this.onDone),window.addEventListener("message",this.onMessage)}},{key:"detach",value:function(){var e=this.instance;e.off("Carousel.initSlide",this.onInitSlide),e.off("Carousel.createSlide",this.onCreateSlide),e.off("Carousel.removeSlide",this.onRemoveSlide),e.off("Carousel.selectSlide",this.onSelectSlide),e.off("Carousel.unselectSlide",this.onUnselectSlide),e.off("Carousel.Panzoom.refresh",this.onRefresh),e.off("done",this.onDone),window.removeEventListener("message",this.onMessage)}}]),n}(Pt);Object.defineProperty(Zt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:'<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>',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}}});var Kt=function(e){"use strict";fe(n,e);var t=ke(n);function n(){var e;return c(this,n),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty(ie(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:"ready"}),Object.defineProperty(ie(e),"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(ie(e),"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null}),xe(e)}return d(n,[{key:"isActive",get:function(){return"ready"!==this.state}},{key:"onReady",value:function(e){this.option("autoStart")&&(e.isInfinite||e.page<e.pages.length-1)&&this.start()}},{key:"onChange",value:function(){var e;(null===(e=this.instance.panzoom)||void 0===e?void 0:e.isResting)||(this.removeProgressBar(),this.pause())}},{key:"onSettle",value:function(){this.resume()}},{key:"onVisibilityChange",value:function(){"visible"===document.visibilityState?this.resume():this.pause()}},{key:"onMouseEnter",value:function(){this.inHover=!0,this.pause()}},{key:"onMouseLeave",value:function(){var e;this.inHover=!1,(null===(e=this.instance.panzoom)||void 0===e?void 0:e.isResting)&&this.resume()}},{key:"onTimerEnd",value:function(){"play"===this.state&&(this.instance.isInfinite||this.instance.page!==this.instance.pages.length-1?this.instance.slideNext():this.instance.slideTo(0))}},{key:"removeProgressBar",value:function(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}},{key:"createProgressBar",value:function(){var e;if(!this.option("showProgress"))return null;this.removeProgressBar();var t=this.instance,n=(null===(e=t.pages[t.page])||void 0===e?void 0:e.slides)||[],i=this.option("progressParentEl");if(i||(i=(1===n.length?n[0].el:null)||t.viewport),!i)return null;var o=document.createElement("div");return wt(o,"f-progress"),i.prepend(o),this.progressBar=o,o.offsetHeight,o}},{key:"set",value:function(){var e=this;if(!(this.instance.pages.length<2||this.progressBar)){var t=this.option("timeout");this.state="play",wt(this.instance.container,"has-autoplay");var n=this.createProgressBar();n&&(n.style.transitionDuration="".concat(t,"ms"),n.style.transform="scaleX(1)"),this.timer=setTimeout((function(){e.timer=null,e.inHover||e.onTimerEnd()}
7),t),this.emit("set")}}},{key:"clear",value:function(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.removeProgressBar()}},{key:"start",value:function(){if(this.set(),this.option("pauseOnHover")){var e=this.instance.container;e.addEventListener("mouseenter",this.onMouseEnter,!1),e.addEventListener("mouseleave",this.onMouseLeave,!1)}document.addEventListener("visibilitychange",this.onVisibilityChange,!1)}},{key:"stop",value:function(){var e=this.instance.container;this.clear(),this.state="ready",e.removeEventListener("mouseenter",this.onMouseEnter,!1),e.removeEventListener("mouseleave",this.onMouseLeave,!1),document.removeEventListener("visibilitychange",this.onVisibilityChange,!1),bt(e,"has-autoplay"),this.emit("stop")}},{key:"pause",value:function(){"play"===this.state&&(this.state="pause",this.clear(),this.emit("pause"))}},{key:"resume",value:function(){var e=this.instance;if(e.isInfinite||e.page!==e.pages.length-1)if("play"!==this.state){if("pause"===this.state&&!this.inHover){var t=new Event("resume",{bubbles:!0,cancelable:!0});this.emit("resume",event),t.defaultPrevented||this.set()}}else this.set();else this.stop()}},{key:"toggle",value:function(){"play"===this.state||"pause"===this.state?this.stop():this.set()}},{key:"attach",value:function(){var e=this,t=e.instance;t.on("ready",e.onReady),t.on("Panzoom.startAnimation",e.onChange),t.on("Panzoom.endAnimation",e.onSettle),t.on("Panzoom.touchMove",e.onChange)}},{key:"detach",value:function(){var e=this,t=e.instance;t.off("ready",e.onReady),t.off("Panzoom.startAnimation",e.onChange),t.off("Panzoom.endAnimation",e.onSettle),t.off("Panzoom.touchMove",e.onChange),e.stop()}}]),n}(Pt);Object.defineProperty(Kt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});var Jt=function(e){"use strict";fe(n,e);var t=ke(n);function n(){var e;return c(this,n),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty(ie(e),"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),xe(e)}return d(n,[{key:"onPrepare",value:function(e){var t=this,n=e.carousel;if(n){var i=e.container;i&&(n.options.Autoplay=lt({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:function(){return t.option("progressParentEl")||null},on:{set:function(t){var n;i.classList.add("has-slideshow"),(null===(n=e.getSlide())||void 0===n?void 0:n.state)!==Nt.Ready&&t.pause()},stop:function(){i.classList.remove("has-slideshow"),e.isCompact||e.endIdle()},resume:function(t,n){var i,o,a;!n||!n.cancelable||(null===(i=e.getSlide())||void 0===i?void 0:i.state)===Nt.Ready&&(null===(a=null===(o=e.carousel)||void 0===o?void 0:o.panzoom)||void 0===a?void 0:a.isResting)||n.preventDefault()}}}),n.attachPlugins({Autoplay:Kt}),this.ref=n.plugins.Autoplay)}}},{key:"onReady",value:function(e){var t=e.carousel,n=this.ref;t&&n&&this.option("playOnStart")&&(t.isInfinite||t.page<t.pages.length-1)&&n.start()}},{key:"onDone",value:function(e,t){var n=this.ref;if(n){var i=t.panzoom;i&&i.on("startAnimation",(function(){e.isCurrentSlide(t)&&n.stop()})),e.isCurrentSlide(t)&&n.resume()}}},{key:"onKeydown",value:function(e,t){var n,i=this.ref;i&&t===this.option("key")&&"BUTTON"!==(null===(n=document.activeElement)||void 0===n?void 0:n.nodeName)&&i.toggle()}},{key:"attach",value:function(){var e=this,t=e.instance;t.on("Carousel.init",e.onPrepare),t.on("Carousel.ready",e.onReady),t.on("done",e.onDone),t.on("keydown",e.onKeydown)}},{key:"detach",value:function(){var e=this,t=e.instance;t.off("Carousel.init",e.onPrepare),t.off("Carousel.ready",e.onReady),t.off("done",e.onDone),t.off("keydown",e.onKeydown)}}]),n}(Pt);Object.defineProperty(Jt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:function(e){var t;return(null===(t=e.instance.container)||void 0===t?void 0:t.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||e.instance.container},timeout:3e3}});var Qt,en={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Hidden=2]="Hidden",e[e.Disabled=3]="Disabled"}(Qt||(Qt={}));var tn=function(e){"use strict";fe(n,e);var t=ke(n);function n(){var e;return c(this,n),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty(ie(e),"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}
7),Object.defineProperty(ie(e),"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(e),"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(e),"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(e),"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(e),"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(e),"shouldCenter",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(ie(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:Qt.Init}),xe(e)}return d(n,[{key:"formatThumb",value:function(e,t){return this.instance.localize(t,[["%i",e.index],["%d",e.index+1],["%s",e.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}},{key:"getSlides",value:function(){var e=[],t=this.option("thumbTpl")||"",n=!0,i=!1,o=void 0;if(t)try{for(var a,r=(this.instance.slides||[])[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value,l="";s.type&&(l="for-".concat(s.type),s.type&&["video","youtube","vimeo","html5video"].includes(s.type)&&(l+=" for-video")),e.push({html:this.formatThumb(s,t),customClass:l})}}catch(e){i=!0,o=e}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}return e}},{key:"onInitSlide",value:function(e,t){var n=t.el;n&&(t.thumbSrc=n.dataset.thumbSrc||t.thumbSrc||"",t.thumbClipWidth=parseFloat(n.dataset.thumbClipWidth||"")||t.thumbClipWidth||0,t.thumbHeight=parseFloat(n.dataset.thumbHeight||"")||t.thumbHeight||0)}},{key:"onInitSlides",value:function(){this.state===Qt.Init&&this.build()}},{key:"onRefreshM",value:function(){this.refreshModern()}},{key:"onChangeM",value:function(){"modern"===this.type&&(this.shouldCenter=!0,this.centerModern())}},{key:"onClickModern",value:function(e){e.preventDefault(),e.stopPropagation();var t=this.instance,n=t.page,i=function(e){if(e){var t=e.closest("[data-carousel-index]");if(t)return parseInt(t.dataset.carouselIndex||"",10)||0}return-1},o=function(e,t){var n=document.elementFromPoint(e,t);return n?i(n):-1},a=i(e.target);a<0&&((a=o(e.clientX+this.thumbGap,e.clientY))===n&&(a=n-1)),a<0&&((a=o(e.clientX-this.thumbGap,e.clientY))===n&&(a=n+1)),a<0&&(a=function(t){var i=o(e.clientX-t,e.clientY),r=o(e.clientX+t,e.clientY);return a<0&&i===n&&(a=n+1),a<0&&r===n&&(a=n-1),a}(this.thumbExtraGap)),a===n?this.centerModern():a>-1&&a<t.pages.length&&t.slideTo(a)}},{key:"onTransformM",value:function(){if("modern"===this.type){var e=this,t=e.instance,n=e.container,i=e.track,o=t.panzoom;if(n&&i&&o&&this.panzoom){tt(n,this.cn("isResting"),o.state!==dt.Init&&o.isResting);var a=this.thumbGap,r=this.thumbExtraGap,s=this.thumbClipWidth,l=0,c=0,u=0,d=!0,h=!1,f=void 0;try{for(var v,p=t.slides[Symbol.iterator]();!(d=(v=p.next()).done);d=!0){var m=v.value,g=m.index,y=m.thumbSlideEl;if(y){tt(y,this.cn("isSelected"),g===t.page),c=1-Math.abs(t.getProgress(g)),y.style.setProperty("--progress",c?c+"":"");var b=.5*((m.thumbWidth||0)-s);l+=a,l+=b,c&&(l-=c*(b+r)),y.style.setProperty("--shift",l-a+""),l+=b,c&&(l-=c*(b+r)),l-=a,0===g&&(u=r*c)}}}catch(e){h=!0,f=e}finally{try{d||null==p.return||p.return()}finally{if(h)throw f}}i&&(i.style.setProperty("--left",u+""),i.style.setProperty("--width",l+u+a+r*c+"")),this.shouldCenter&&this.centerModern()}}}},{key:"buildClassic",value:function(){var e=this,t=this.container,n=this.track,i=this.getSlides();if(t&&n&&i){var o=new this.instance.constructor(t,lt({track:n,infinite:!1,center:!0,fill:!0,dragFree:!0,slidesPerPage:1,transition:!1,Dots:!1,Navigation:!1,Sync:{},classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},this.option("Carousel")||{},{Sync:{target:this.instance},slides:i}));this.carousel=o,this.track=n,o.on("ready",(function(){e.emit("ready")}))}}},{key:"buildModern",value:function(){var e=this;if("modern"===this.type){var t=this,n=t.container,i=t.track,o=t.instance,a=this.option("thumbTpl")||"";if(n&&i&&a){wt(n,"is-horizontal"),this.updateModern();var r=!0,s=!1,l=void 0;try{for(var c,u=(o.slides||[])[Symbol.iterator]();!(r=(c=u.next()).done);r=!0){var d=c.value,h=document.createElement("div");if(wt(h,this.cn("slide")),d.type){var f="for-".concat(d.type);["video","youtube","vimeo","html5video"].includes(d.type)&&(f+=" for-video"),wt(h,f)}h.appendChild(Qe(this.formatThumb(d,a))),d.thumbSlideEl=h,i.appendChild(h),this.resizeModernSlide(d)}}catch(e){s=!0,l=e}finally{try{r||null==u.return||u.return()}finally{if(s)throw l}}var v=new o.constructor.Panzoom(n,{content:i,lockAxis:"x",zoom:!1,panOnlyZoomed:!1,bounds:function(){var t=0,n=0,i=o.slides[0],a=o.slides[o.slides.length-1],r=o.slides[o.page];return i&&a&&r&&(n=-1*e.getModernThumbPos(0),0!==o.page&&(n+=.5*(i.thumbWidth||0)),t=-1*e.getModernThumbPos(o.slides.length-1),o.page!==o.slides.length-1&&(t+=(a.thumbWidth||0)-(r.thumbWidth||0)-.5*(a.thumbWidth||0))),{x:{min:t,max:n},y:{min:0,max:0}}}});v.on("touchStart",(function(t,n){e.shouldCenter=!1})),v.on("click",(function(t,n){return e.onClickModern(n)})),v.on("ready",(function(){e.centerModern(),e.emit("ready")})),v.on(["afterTransform","refresh"],(function(t){e.lazyLoadModern()})),this.panzoom=v,this.refreshModern()}}}},{key:"updateModern",value:function(){if("modern"===this.type){var e=this.container;e&&(this.thumbGap=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-gap"))||0,this.thumbExtraGap=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-extra-gap"))||0,this.thumbWidth=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-width"))||40,this.thumbClipWidth=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-clip-width"))||40,this.thumbHe
7ight=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-height"))||40)}}},{key:"refreshModern",value:function(){var e;if("modern"===this.type){this.updateModern();var t=!0,n=!1,i=void 0;try{for(var o,a=(this.instance.slides||[])[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var r=o.value;this.resizeModernSlide(r)}}catch(e){n=!0,i=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw i}}this.onTransformM(),null===(e=this.panzoom)||void 0===e||e.updateMetrics(!0),this.centerModern(0)}}},{key:"centerModern",value:function(e){var t=this.instance,n=this.container,i=this.panzoom;if(n&&i&&i.state!==dt.Init){for(var o=t.page,a=this.getModernThumbPos(o),r=a,s=t.page-3;s<t.page+3;s++)if(!(s<0||s>t.pages.length-1||s===t.page)){var l=1-Math.abs(t.getProgress(s));l>0&&l<1&&(r+=l*(this.getModernThumbPos(s)-a))}var c=100;void 0===e&&(e=.2,t.inTransition.size>0&&(e=.12),Math.abs(-1*i.current.e-r)>i.containerRect.width&&(e=.5,c=0)),i.options.maxVelocity=c,i.applyChange({panX:Ze(-1*r-i.target.e,1e3),friction:null===t.prevPage?0:e})}}},{key:"lazyLoadModern",value:function(){var e=this,t=this.instance,n=this.panzoom;if(n){var i=-1*n.current.e||0,o=this.getModernThumbPos(t.page),a=!0,r=!1,s=void 0;if(n.state!==dt.Init||0===o)try{for(var l,c=this,u=function(){var t=l.value,o=t.thumbSlideEl;if(!o)return"continue";var a=o.querySelector("img[data-lazy-src]"),r=t.index,s=c.getModernThumbPos(r),u=i-.5*n.containerRect.innerWidth,d=u+n.containerRect.innerWidth;if(!a||s<u||s>d)return"continue";var h=a.dataset.lazySrc;if(!h||!h.length)return"continue";if(delete a.dataset.lazySrc,a.src=h,a.complete)return"continue";wt(o,c.cn("isLoading"));var f=Qe(gt);o.appendChild(f),a.addEventListener("load",(function(){o.offsetParent&&(o.classList.remove(e.cn("isLoading")),f.remove())}),!1)},d=(t.slides||[])[Symbol.iterator]();!(a=(l=d.next()).done);a=!0)u()}catch(e){r=!0,s=e}finally{try{a||null==d.return||d.return()}finally{if(r)throw s}}}}},{key:"resizeModernSlide",value:function(e){if("modern"===this.type&&e.thumbSlideEl){var t=e.thumbClipWidth&&e.thumbHeight?Math.round(this.thumbHe
7ight*(e.thumbClipWidth/e.thumbHeight)):this.thumbWidth;e.thumbWidth=t}}},{key:"getModernThumbPos",value:function(e){var t=this.instance.slides[e],n=this.panzoom;if(!n||!n.contentRect.fitWidth)return 0;var i=n.containerRect.innerWidth,o=n.contentRect.width;2===this.instance.slides.length&&(e-=1,o=2*this.thumbClipWidth);var a=e*(this.thumbClipWidth+this.thumbGap)+this.thumbExtraGap+.5*(t.thumbWidth||0);return Ze((a-=o>i?.5*i:.5*o)||0,1)}},{key:"build",value:function(){var e=this.instance,t=e.container,n=this.option("minCount")||0;if(n){var i=0,o=!0,a=!1,r=void 0;try{for(var s,l=(e.slides||[])[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){s.value.thumbSrc&&i++}}catch(e){a=!0,r=e}finally{try{o||null==l.return||l.return()}finally{if(a)throw r}}if(i<n)return this.cleanup(),void(this.state=Qt.Disabled)}var c=this.option("type");if(["modern","classic"].indexOf(c)<0)this.state=Qt.Disabled;else{this.type=c;var u=document.createElement("div");wt(u,this.cn("container")),wt(u,"is-".concat(c));var d=this.option("parentEl");d?d.appendChild(u):t.after(u),this.container=u,wt(t,this.cn("hasThumbs"));var h=document.createElement("div");wt(h,this.cn("track")),u.appendChild(h),this.track=h,"classic"===c?this.buildClassic():this.buildModern(),this.state=Qt.Ready,u.addEventListener("click",(function(t){setTimeout((function(){var t;null===(t=null==u?void 0:u.querySelector('[data-carousel-index="'.concat(e.page,'"]')))||void 0===t||t.focus()}),100)}))}}},{key:"cleanup",value:function(){this.carousel&&this.carousel.destroy(),this.carousel=null,this.panzoom&&this.panzoom.destroy(),this.panzoom=null,this.container&&this.container.remove(),this.container=null,this.track=null,this.state=Qt.Init,bt(this.instance.container,this.cn("hasThumbs"))}},{key:"attach",value:function(){var e=this,t=e.instance;t.on("initSlide",e.onInitSlide),t.state===Ct.Init?t.on("initSlides",e.onInitSlides):e.onInitSlides(),t.on("Panzoom.afterTransform",e.onTransformM),t.on("Panzoom.refresh",e.onRefreshM),t.on("change",e.onChangeM)}},{key:"detach",value:function(){var e=this,t=e.instance;t.off("initSlide",e.onInitSlide),t.off("initSlides",e.onInitSlides),t.off("Panzoom.afterTransform",e.onTransformM),t.off("Panzoom.refresh",e.onRefreshM),t.off("change",e.onChangeM),e.cleanup()}}]),n}(Pt);Object.defineProperty(tn,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:en});var nn=Object.assign(Object.assign({},en),{key:"t",showOnStart:!0,parentEl:null}),on=function(e){"use strict";fe(n,e);var t=ke(n);function n(){var e;return c(this,n),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty(ie(e),"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1}),xe(e)}return d(n,[{key:"isEnabled",get:function(){var e=this.ref;return e&&e.state!==Qt.Disabled}},{key:"isHidden",get:function(){return this.hidden}},{key:"onInit",value:function(){var e=this,t=this.instance,n=t.carousel;if(!this.ref&&n){var i=this.option("parentEl")||t.footer||t.container;i&&(n.options.Thumbs=lt({},this.options,{parentEl:i,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:t.option("Carousel.friction")},on:{click:function(e,t){t.stopPropagation()}}},on:{ready:function(t){var n=t.container;n&&e.hidden&&(e.refresh(),n.style.transition="none",e.hide(),n.offsetHeight,queueMicrotask((function(){n.style.transition="",e.show()})))}}}),n.attachPlugins({Thumbs:tn}),this.ref=n.plugins.Thumbs,this.option("showOnStart")||(this.ref.state=Qt.Hidden,this.hidden=!0))}}},{key:"onResize",value:function(){var e,t=null===(e=this.ref)||void 0===e?void 0:e.container;t&&(t.style.maxHeight="")}},{key:"onKeydown",value:function(e,t){var n=this.option("key");n&&n===t&&this.toggle()}},{key:"toggle",value:function(){var e=this.ref;e&&e.state!==Qt.Disabled&&(e.state!==Qt.Hidden?this.hidden?this.show():this.hide():e.build())}},{key:"show",value:function(){var e=this.ref,t=e&&e.state!==Qt.Disabled&&e.container;t&&(this.refresh(),t.offsetHeight,t.removeAttribute("aria-hidden"),t.classList.remove("is-hidden"),this.hidden=!1)}}
7,{key:"hide",value:function(){var e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add("is-hidden"),t.setAttribute("aria-hidden","true")),this.hidden=!0}},{key:"refresh",value:function(){var e=this.ref;if(e&&e.state!==Qt.Disabled){var t=e.container,n=(null==t?void 0:t.firstChild)||null;t&&n&&n.childNodes.length&&(t.style.maxHeight="".concat(n.getBoundingClientRect().height,"px"))}}},{key:"attach",value:function(){var e=this,t=e.instance;t.state===Ft.Init?t.on("Carousel.init",e.onInit):e.onInit(),t.on("resize",e.onResize),t.on("keydown",e.onKeydown)}},{key:"detach",value:function(){var e,t=this,n=t.instance;n.off("Carousel.init",t.onInit),n.off("resize",t.onResize),n.off("keydown",t.onKeydown),null===(e=n.carousel)||void 0===e||e.detachPlugins(["Thumbs"]),t.ref=null}}]),n}(Pt);Object.defineProperty(on,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:nn});var an,rn={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Disabled=2]="Disabled"}(an||(an={}));var sn={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ln=function(e){"use strict";fe(n,e);var t=ke(n);function n(){var e;return c(this,n),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty(ie(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:an.Init}),Object.defineProperty(ie(e),"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),xe(e)}return d(n,[{key:"onReady",value:function(e){var t;if(e.carousel){var n=this.option("display"),i=this.option("absolute"),o=this.option("enabled");if("auto"===o){var a=this.instance.carousel,r=0,s=!0,l=!1,c=void 0;if(a)try{for(var u,d=a.slides[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var h=u.value;(h.panzoom||"image"===h.type)&&r++}}catch(e){l=!0,c=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw c}}r||(o=!1)}o||(n=void 0);var f=0,v={left:[],middle:[],right:[]},p=!0,m=!1,g=void 0;if(n)for(var y=0,b=["left","middle","right"];y<b.length;y++){var w=b[y];try{for(var k,S=n[w][Symbol.iterator]();!(p=(k=S.next()).done);p=!0){var E=k.value,C=this.createEl(E);C&&(null===(t=v[w])||void 0===t||t.push(C),f++)}}catch(e){m=!0,g=e}finally{try{p||null==S.return||S.return()}finally{if(m)throw g}}}var T=null;if(f&&(T=this.createContainer()),T){var O=!0,M=!1,A=void 0;try{for(var P,L=Object.entries(v)[Symbol.iterator]();!(O=(P=L.next()).done);O=!0){var z=x(P.value,2),I=z[0],R=z[1],j=document.createElement("div");wt(j,"fancybox__toolbar__column is-"+I);var D=!0,F=!1,N=void 0;try{for(var B,_=R[Symbol.iterator]();!(D=(B=_.next()).done);D=!0){var H=B.value;
7j.appendChild(H)}}catch(e){F=!0,N=e}finally{try{D||null==_.return||_.return()}finally{if(F)throw N}}"auto"!==i||"middle"!==I||R.length||(i=!0),T.appendChild(j)}}catch(e){M=!0,A=e}finally{try{O||null==L.return||L.return()}finally{if(M)throw A}}!0===i&&wt(T,"is-absolute"),this.state=an.Ready,this.onRefresh()}else this.state=an.Disabled}}},{key:"onClick",value:function(e){var t,n,i=this.instance,o=i.getSlide(),a=null==o?void 0:o.panzoom,r=e.target,s=r&&yt(r)?r.dataset:null;if(s){if(void 0!==s.fancyboxToggleThumbs)return e.preventDefault(),e.stopPropagation(),void(null===(t=i.plugins.Thumbs)||void 0===t||t.toggle());if(void 0!==s.fancyboxToggleFullscreen)return e.preventDefault(),e.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==s.fancyboxToggleSlideshow){e.preventDefault(),e.stopPropagation();var l=null===(n=i.carousel)||void 0===n?void 0:n.plugins.Autoplay,c=l.isActive;return a&&"mousemove"===a.panMode&&!c&&a.reset(),void(c?l.stop():l.start())}var u=s.panzoomAction,d=s.panzoomChange;if((d||u)&&(e.preventDefault(),e.stopPropagation()),d){var h={};try{h=JSON.parse(d)}catch(e){}a&&a.applyChange(h)}else u&&a&&a[u]&&a[u]()}}},{key:"onChange",value:function(){this.onRefresh()}},{key:"onRefresh",value:function(){if(!this.instance.isClosing()){var e=this.container;if(e){var t=this.instance.getSlide();if(t&&t.state===Nt.Ready){var n=t&&!t.error&&t.panzoom,i=!0,o=!1,a=void 0;try{for(var r,s=e.querySelectorAll("[data-panzoom-action]")[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=r.value;n?(l.removeAttribute("disabled"),l.removeAttribute("tabindex")):(l.setAttribute("disabled",""),l.setAttribute("tabindex","-1"))}}catch(e){o=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}var c=n&&n.canZoomIn(),u=n&&n.canZoomOut(),d=!0,h=!1,f=void 0;try{for(var v,p=e.querySelectorAll('[data-panzoom-action="zoomIn"]')[Symbol.iterator]();!(d=(v=p.next()).done);d=!0){var m=v.value;c?(m.removeAttribute("disabled"),m.removeAttribute("tabindex")):(m.setAttribute("disabled",""),m.setAttribute("tabindex","-1"))}}catch(e){h=!0,f=e}finally{try{d||null==p.return||p.return()}finally{if(h)throw f}}var g=!0,y=!1,b=void 0;try{for(var w,x=e.querySelectorAll('[data-panzoom-action="zoomOut"]')[Symbol.iterator]();!(g=(w=x.next()).done);g=!0){var k=w.value;u?(k.removeAttribute("disabled"),k.removeAttribute("tabindex")):(k.setAttribute("disabled",""),k.setAttribute("tabindex","-1"))}}catch(e){y=!0,b=e}finally{try{g||null==x.return||x.return()}finally{if(y)throw b}}var S=!0,E=!1,C=void 0;try{for(var T,O=e.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')[Symbol.iterator]();!(S=(T=O.next()).done);S=!0){var M=T.value;u||c?(M.removeAttribute("disabled"),M.removeAttribute("tabindex")):(M.setAttribute("disabled",""),M.setAttribute("tabindex","-1"));var A=M.querySelector("g");A&&(A.style.display=c?"":"none")}}catch(e){E=!0,C=e}finally{try{S||null==O.return||O.return()}finally{if(E)throw C}}}}}}},{key:"onDone",value:function(e,t){var n,i=this;null===(n=t.panzoom)||void 0===n||n.on("afterTransform",(function(){i.instance.isCurrentSlide(t)&&i.onRefresh()})),this.instance.isCurrentSlide(t)&&this.onRefresh()}},{key:"createContainer",value:function(){var e=this.instance.container;if(!e)return null;var t=this.option("parentEl")||e,n=document.createElement("div");return wt(n,"fancybox__toolbar"),t.prepend(n),n.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&wt(e,"has-toolbar"),this.container=n,n}},{key:"createEl",value:function(e){var t,n=this,i=this.instance.carousel;if(!i)return null;if("toggleFS"===e)return null;if("fullscreen"===e&&!this.instance.fsAPI)return null;var o=null,a=i.slides.length||0,r=0,s=0,l=!0,c=!1,u=void 0;try{for(var d,h=i.slides[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var f=d.value;(f.panzoom||"image"===f.type)&&r++,("image"===f.type||f.downloadSrc)&&s++}}catch(e){c=!0,u=e}finally{try{l||null==h.return||h.return()}finally{if(c)throw u}}if(a<2&&["infobar","prev","next"].includes(e))return o;if(void 0!==rn[e]&&!r)return null;if("download"===e&&!s)return null;if("thumbs"===e){var v=this.instance.plugins.Thumbs;if(!v||!v.isEnabled)return null}if("slideshow"===e&&(!(null===(t=this.instance.carousel)||void 0===t?void 0:t.plugins.Autoplay)||a<2))return null;if(void 0!==rn[e]){var p=rn[e];(o=document.createElement("button")).setAttribute("title",this.instance.localize("{{".concat(e.toUpperCase(),"}}"))),wt(o,"f-button"),p.action&&(o.dataset.panzoomAction=p.action),p.change&&(o.dataset.panzoomChange=JSON.stringify(p.change)),o.appendChild(Qe(this.instance.localize(p.icon)))}else{var m=(this.option("items")||[])[e];m&&(o=Qe(this.instance.localize(m.tpl)),"function"==typeof m.click&&o.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),"function"==typeof m.click&&m.click.call(n,n,e)})))}var g=null==o?void 0:o.querySelector("svg"),y=!0,b=!1,w=void 0;if(g)try{for(var k,S=Object.entries(sn)[Symbol.iterator]();!(y=(k=S.next()).done);y=!0){var E=x(k.value,2),C=E[0],T=E[1];g.getAttribute(C)||g.setAttribute(C,String(T))}}catch(e){b=!0,w=e}finally{try{y||null==S.return||S.return()}finally{if(b)throw w}}return o}},{key:"removeContainer",value:function(){var e=this.container;e&&e.remove(),this.container=null,this.state=an.Disabled;var t=this.instance.container;t&&bt(t,"has-toolbar")}},{key:"attach",value:function(){var e=this,t=e.instance;t.on("Carousel.initSlides",e.onReady),t.on("done",e.onDone),t.on("reveal",e.onChange),t.on("Carousel.change",e.onChange),e.onReady(e.instance)}},{key:"detach",value:function(){var e=this,t=e.instance;t.off("Carousel.initSlides",e.onReady),t.off("done",e.onDone),t.off("reveal",e.onChange),t.off("Carousel.change",e.onChange),e.removeContainer()}}]),n}(Pt);Object.defineProperty(ln,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g>
7<path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null}});var cn={Hash:$t,Html:Zt,Images:Vt,Slideshow:Jt,Thumbs:on,Toolbar:ln},un=function(){var e=window.getSelection();return e&&"Range"===e.type}
7,dn=null,hn=null,fn=new Map,vn=0,pn=function(e){"use strict";fe(n,e);var t=ke(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c(this,n),e=t.call(this,o),Object.defineProperty(ie(e),"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(ie(e),"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(ie(e),"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(ie(e),"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(e),"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(ie(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:Ft.Init}),Object.defineProperty(ie(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(ie(e),"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(ie(e),"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(ie(e),"fsAPI",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e.fsAPI=function(){var e,t="",n="",i="";return document.fullscreenEnabled?(t="requestFullscreen",n="exitFullscreen",i="fullscreenElement"):document.webkitFullscreenEnabled&&(t="webkitRequestFullscreen",n="webkitExitFullscreen",i="webkitFullscreenElement"),t&&(e={request:function(e){return"webkitRequestFullscreen"===t?e[t](Element.ALLOW_KEYBOARD_INPUT):e[t]()},exit:function(){return document[i]&&document[n]()},isFullscreen:function(){return document[i]}}),e}(),e.id=o.id||++vn,fn.set(e.id,ie(e)),e.userSlides=i,e.userPlugins=a,queueMicrotask((function(){e.init()})),xe(e)}return d(n,[{key:"isIdle",get:function(){return this.idle}},{key:"isCompact",get:function(){return this.option("compact")}},{key:"init",value:function(){var e=this;if(this.state!==Ft.Destroy){this.state=Ft.Init,this.attachPlugins(Object.assign(Object.assign({},n.Plugins),this.userPlugins)),this.emit("init"),!0===this.option("hideScrollbar")&&function(){if(_t){var e=document.body;if(!e.classList.contains("hide-scrollbar")){var t=window.innerWidth-document.documentElement.getBoundingClientRect().width;t<0&&(t=0);var n=e.currentStyle||window.getComputedStyle(e),i=parseFloat(n.marginRight);document.documentElement.style.setProperty("--fancybox-scrollbar-compensate","".concat(t,"px")),i&&e.style.setProperty("--fancybox-body-margin","".concat(i,"px")),e.classList.add("hide-scrollbar")}}}(),this.initLayout(),this.scale();var t=function(){e.initCarousel(e.userSlides),e.state=Ft.Ready,e.attachEvents(),e.emit("ready"),setTimeout((function(){e.container&&e.container.setAttribute("aria-hidden","false")}),16)},i=this.fsAPI;this.option("Fullscreen.autoStart")&&i&&!i.isFullscreen()?i.request(this.container).then((function(){return t()})).catch((function(){return t()})):t()}}},{key:"initLayout",value:function(){var e,t,n=this,i=this.option("parentEl")||document.body,o=Qe(this.localize(this.option("tpl.main")||""));o&&(o.setAttribute("id","fancybox-".concat(this.id)),o.setAttribute("aria-label",this.localize("{{MODAL}}")),o.classList.toggle("is-compact",this.isCompact),wt(o,this.option("mainClass")||""),this.container=o,this.footer=o.querySelector(".fancybox__footer"),i.appendChild(o),wt(document.documentElement,"with-fancybox"),dn&&hn||(dn=document.createElement("span"),wt(dn,"fancybox-focus-guard"),dn.setAttribute("tabindex","0"),dn.setAttribute("aria-hidden","true"),dn.setAttribute("aria-label","Focus guard"),hn=dn.cloneNode(),null===(e=o.parentElement)||void 0===e||e.insertBefore(dn,o),null===(t=o.parentElement)||void 0===t||t.append(hn)),this.option("animated")&&(wt(o,"is-animated"),setTimeout((function(){n.isClosing()||bt(o,"is-animated")}
7),350)),this.emit("initLayout"))}},{key:"initCarousel",value:function(e){var t=this,n=this.container;if(n){var i=n.querySelector(".fancybox__carousel");if(i){var o=this.carousel=new jt(i,lt({},{slides:e,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));o.on("*",(function(e,n){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];t.emit.apply(t,["Carousel.".concat(n),e].concat(g(o)))})),o.on(["ready","change"],(function(){var e,n=t.getSlide();n&&(null===(e=n.panzoom)||void 0===e||e.updateControls()),t.manageCaption(n)})),o.on("removeSlide",(function(e,t){t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0,t.state=void 0})),o.on("Panzoom.touchStart",(function(){t.isCompact||t.endIdle()})),o.on("settle",(function(){t.idleTimer||t.isCompact||!t.option("idle")||t.setIdle(),t.option("autoFocus")&&t.checkFocus()})),this.option("dragToClose")&&(o.on("Panzoom.afterTransform",(function(e,n){var i=t.getSlide();if(!i||!Ke(i.el)){var o=t.container;if(o){var a=Math.abs(n.current.f),r=a<1?"":Math.max(.5,Math.min(1,1-a/n.contentRect.fitHeight*1.5));o.style.setProperty("--fancybox-ts",r?"0s":""),o.style.setProperty("--fancybox-opacity",r+"")}}})),o.on("Panzoom.touchEnd",(function(e,n,i){var o,a=t.getSlide();if(!(a&&Ke(a.el)||n.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(o=document.activeElement)||void 0===o?void 0:o.nodeName))){var r=Math.abs(n.dragOffset.y);"y"===n.lockedAxis&&(r>=200||r>=50&&n.dragOffset.time<300)&&(i&&i.cancelable&&i.preventDefault(),t.close(i,"f-throwOut"+(n.current.f<0?"Up":"Down")))}}))),o.on(["change"],(function(e){var n,i=null===(n=t.getSlide())||void 0===n?void 0:n.triggerEl;if(i){var o=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:e.page});i.dispatchEvent(o)}})),o.on(["refresh","change"],(function(e){var n=t.container;if(n){var i=!0,o=!1,a=void 0;try{for(var r,s=n.querySelectorAll("[data-fancybox-current-index]")[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){r.value.innerHTML=e.page+1}}catch(e){o=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}var l=!0,c=!1,u=void 0;try{for(var d,h=n.querySelectorAll("[data-fancybox-count]")[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){d.value.innerHTML=e.pages.length}}catch(e){c=!0,u=e}finally{try{l||null==h.return||h.return()}finally{if(c)throw u}}if(!e.isInfinite){var f=!0,v=!1,p=void 0;try{for(var m,g=n.querySelectorAll("[data-fancybox-next]")[Symbol.iterator]();!(f=(m=g.next()).done);f=!0){var y=m.value;e.page<e.pages.length-1?(y.removeAttribute("disabled"),y.removeAttribute("tabindex")):(y.setAttribute("disabled",""),y.setAttribute("tabindex","-1"))}}catch(e){v=!0,p=e}finally{try{f||null==g.return||g.return()}finally{if(v)throw p}}var b=!0,w=!1,x=void 0;try{for(var k,S=n.querySelectorAll("[data-fancybox-prev]")[Symbol.iterator]();!(b=(k=S.next()).done);b=!0){var E=k.value;e.page>0?(E.removeAttribute("disabled"),E.removeAttribute("tabindex")):(E.setAttribute("disabled",""),E.setAttribute("tabindex","-1"))}}catch(e){w=!0,x=e}finally{try{b||null==S.return||S.return()}finally{if(w)throw x}}}var C=t.getSlide();if(C){var T=C.downloadSrc||"";T||"image"!==C.type||C.error||"string"!=typeof C.src||(T=C.src);var O=!0,M=!1,A=void 0;try{for(var P,L=n.querySelectorAll("[data-fancybox-download]")[Symbol.iterator]();!(O=(P=L.next()).done);O=!0){var z=P.value,I=C.downloadFilename;T?(z.removeAttribute("disabled"),z.removeAttribute("tabindex"),z.setAttribute("href",T),z.setAttribute("download",I||T),z.setAttribute("target","_blank")):(z.setAttribute("disabled",""),z.setAttribute("tabindex","-1"),z.removeAttribute("href"),z.removeAttribute("download"))}}catch(e){M=!0,A=e}finally{try{O||null==L.return||L.return()}
7finally{if(M)throw A}}}}})),this.emit("initCarousel")}}}},{key:"attachEvents",value:function(){var e=this.container;if(e){e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",this.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",this.onVisibilityChange,!1),document.addEventListener("mousemove",this.onMousemove),this.option("trapFocus")&&document.addEventListener("focus",this.onFocus,!0),window.addEventListener("resize",this.onResize);var t=window.visualViewport;t&&(t.addEventListener("scroll",this.onResize),t.addEventListener("resize",this.onResize))}}},{key:"detachEvents",value:function(){var e=this.container;if(e){document.removeEventListener("keydown",this.onKeydown,{passive:!1,capture:!0}),e.removeEventListener("wheel",this.onWheel,{passive:!1,capture:!1}),e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",this.onMousemove),window.removeEventListener("resize",this.onResize);var t=window.visualViewport;t&&(t.removeEventListener("resize",this.onResize),t.removeEventListener("scroll",this.onResize)),document.removeEventListener("visibilitychange",this.onVisibilityChange,!1),document.removeEventListener("focus",this.onFocus,!0)}}},{key:"scale",value:function(){var e=this.container;if(e){var t=window.visualViewport,n=Math.max(1,(null==t?void 0:t.scale)||1),i="",o="",a="";if(t&&n>1){var r="".concat(t.offsetLeft,"px"),s="".concat(t.offsetTop,"px");i=t.width*n+"px",o=t.height*n+"px",a="translate3d(".concat(r,", ").concat(s,", 0) scale(").concat(1/n,")")}e.style.transform=a,e.style.width=i,e.style.height=o}}},{key:"onClick",value:function(e){var t,n,i=this,o=this.container,a=this.isCompact;if(o&&!this.isClosing()){!a&&this.option("idle")&&this.resetIdle();var r=document.activeElement;if(!(un()&&r&&o.contains(r))){var s=e.composedPath()[0];if(s!==(null===(t=this.carousel)||void 0===t?void 0:t.container)){if(s.closest(".f-spinner")||s.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(s.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(s.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if(a&&"image"===(null===(n=this.getSlide())||void 0===n?void 0:n.type))this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((function(){i.toggleIdle(),i.clickTimer=null}),350);else if(this.emit("click",e),!e.defaultPrevented){var l=!1;if(s.closest(".fancybox__content")){if(r){if(r.closest("[contenteditable]"))return;s.matches(Ht)||r.blur()}if(un())return;l=this.option("contentClick")}else s.closest(".fancybox__carousel")&&!s.matches(Ht)&&(l=this.option("backdropClick"));"close"===l?(e.preventDefault(),this.close(e)):"next"===l?(e.preventDefault(),this.next()):"prev"===l&&(e.preventDefault(),this.prev())}}}}}},{key:"onWheel",value:function(e){var t=this.option("wheel",e),n="slide"===t,i=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),o=Math.max(-1,Math.min(1,i)),a=Date.now();this.pwt&&a-this.pwt<300?n&&e.preventDefault():(this.pwt=a,this.emit("wheel",e),e.defaultPrevented||("close"===t?(e.preventDefault(),this.close(e)):"slide"===t&&(e.preventDefault(),this[o>0?"prev":"next"]())))}},{key:"onKeydown",value:function(e){if(this.isTopmost()){this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();var t=e.key,n=this.option("keyboard");if(n&&!e.ctrlKey&&!e.altKey&&!e.shiftKey){var i=e.composedPath()[0],o=document.activeElement&&document.activeElement.classList,a=o&&o.contains("f-button")||i.dataset.carouselPage||i.dataset.carouselIndex;if("Escape"===t||a||!yt(i)||!i.isContentEditable&&-1===["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(i.nodeName)){this.emit("keydown",t,e);var r=n[t];"function"==typeof this[r]&&(e.preventDefault(),this[r]())}}}}},{key:"onResize",value:function(){var e=this.container;if(e){var t=this.isCompact;e.classList.toggle("is-compact",t),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit
7("resize")}}},{key:"onFocus",value:function(e){this.isTopmost()&&this.checkFocus(e)}},{key:"onMousemove",value:function(e){this.prevMouseMoveEvent=e,!this.isCompact&&this.option("idle")&&this.resetIdle()}},{key:"onVisibilityChange",value:function(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}},{key:"manageCloseBtn",value:function(e){var t=this.optionFor(e,"closeButton")||!1;if("auto"===t){var n=this.plugins.Toolbar;if(n&&n.state===an.Ready)return}if(t&&e.contentEl&&!e.closeBtnEl){var i=this.option("tpl.closeButton");if(i){var o=Qe(this.localize(i));e.closeBtnEl=e.contentEl.appendChild(o),e.el&&wt(e.el,"has-close-btn")}}}},{key:"manageCaption",value:function(e){var t,n,i=this,o="fancybox__caption",a="has-caption",r=this.container;if(r){var s=this.isCompact||this.option("commonCaption"),l=!s,c=!0,u=!1,d=void 0;if(this.caption&&this.stop(this.caption),l&&this.caption&&(this.caption.remove(),this.caption=null),s&&!this.caption)try{for(var h,f=((null===(t=this.carousel)||void 0===t?void 0:t.slides)||[])[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var v=h.value;v.captionEl&&(v.captionEl.remove(),v.captionEl=void 0,bt(v.el,a),null===(n=v.el)||void 0===n||n.removeAttribute("aria-labelledby"))}}catch(e){u=!0,d=e}finally{try{c||null==f.return||f.return()}finally{if(u)throw d}}if(e||(e=this.getSlide()),e&&(!s||this.isCurrentSlide(e))){var p=e.el,m=this.optionFor(e,"caption","");if("string"==typeof m&&m.length){var g=null;if(l){if(g=e.captionEl||null,p&&!g){var y="fancybox__caption_".concat(this.id,"_").concat(e.index);g=document.createElement("div"),wt(g,o),g.setAttribute("id",y),e.captionEl=p.appendChild(g),wt(p,a),p.setAttribute("aria-labelledby",y)}}else(g=this.caption)||(g=r.querySelector("."+o)),g||((g=document.createElement("div")).dataset.fancyboxCaption="",wt(g,o),g.innerHTML=m,(this.footer||r).prepend(g)),wt(r,a),this.caption=g;g&&(g.innerHTML=m)}else s&&this.caption&&this.animate(this.caption,"f-fadeOut",(function(){var e;null===(e=i.caption)||void 0===e||e.remove(),i.caption=null}))}}}},{key:"checkFocus",value:function(e){var t,n=document.activeElement||null;n&&(null===(t=this.container)||void 0===t?void 0:t.contains(n))||this.focus(e)}},{key:"focus",value:function(e){var t;if(!this.ignoreFocusChange){var n=document.activeElement||null,i=(null==e?void 0:e.target)||null,o=this.container,a=this.getSlide();if(o&&(null===(t=this.carousel)||void 0===t?void 0:t.viewport)&&(e||!n||!o.contains(n))){var r=a&&a.state===Nt.Ready?a.el:null;if(r&&!r.contains(n)&&o!==n){e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;var s=Array.from(o.querySelectorAll(Ht)),l=[],c=null,u=!0,d=!1,h=void 0;try{for(var f,v=s[Symbol.iterator]();!(u=(f=v.next()).done);u=!0){var p=f.value,m=!p.offsetParent||p.closest('[aria-hidden="true"]'),g=r&&r.contains(p),y=!this.carousel.viewport.contains(p);p===o||(g||y)&&!m?(l.push(p),void 0!==p.dataset.origTabindex&&(p.tabIndex=parseFloat(p.dataset.origTabindex)),p.removeAttribute("data-orig-tabindex"),!p.hasAttribute("autoFocus")&&c||(c=p)):(p.dataset.origTabindex=void 0===p.dataset.origTabindex?p.getAttribute("tabindex")||void 0:p.dataset.origTabindex,p.tabIndex=-1)}}catch(e){d=!0,h=e}finally{try{u||null==v.return||v.return()}finally{if(d)throw h}}var b=null;e?(!i||l.indexOf(i)<0)&&(b=c||o,l.length&&(n===hn?b=l[0]:this.lastFocus!==o&&n!==dn||(b=l[l.length-1]))):b=a&&"image"===a.type?o:c||o,b&&Wt(b),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}}}}},{key:"next",value:function(){var e=this.carousel;e&&e.pages.length>1&&e.slideNext()}},{key:"prev",value:function(){var e=this.carousel;e&&e.pages.length>1&&e.slidePrev()}},{key:"jumpTo",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i;this.carousel&&(i=this.carousel).slideTo.apply(i,g(t))}},{key:"isTopmost",value:function(){var e;return(null===(e=n.getInstance())||void 0===e?void 0:e.id)==this.id}},{key:"animate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;if(e&&t){this.stop(e);var i=function(o){o.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",i),delete e.dataset.animationName,n&&n(),bt(e,t))};e.dataset.animationName=t,e.addEventListener("animationend",i),wt(e,t)}else n&&n()}},{key:"stop",value:function(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))}},{key:"setContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!this.isClosing()){var i=e.el;if(i){var o=null;if(yt(t)?o=t:(o=Qe(t+""),yt(o)||((o=document.createElement("div")).innerHTML=t+"")),["img","picture","iframe","video","audio"].includes(o.nodeName.toLowerCase())){var a=document.createElement("div");a.appendChild(o),o=a}yt(o)&&e.filter&&!e.error&&(o=o.querySelector(e.filter)),o&&yt(o)?(wt(o,"fancybox__content"),e.id&&o.setAttribute("id",e.id),"none"!==o.style.display&&"none"!==getComputedStyle(o).getPropertyValue("display")||(o.style.display=e.display||this.option("defaultDisplay")||"flex"),i.classList.add("has-".concat(e.error?"error":e.type||"unknown")),i.prepend(o),e.contentEl=o,n&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}}}},{key:"revealContent",value:function(e,t){var n=this,i=e.el,o=e.contentEl;
7i&&o&&(this.emit("reveal",e),this.hideLoading(e),e.state=Nt.Opening,(t=this.isOpeningSlide(e)?void 0===t?this.optionFor(e,"showClass"):t:"f-fadeIn")?this.animate(o,t,(function(){n.done(e)})):this.done(e))}},{key:"done",value:function(e){var t=this;this.isClosing()||(e.state=Nt.Ready,this.emit("done",e),wt(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask((function(){t.option("autoFocus")&&(t.option("autoFocus")?t.focus():t.checkFocus())})),this.isOpeningSlide(e)&&!this.isCompact&&this.option("idle")&&this.setIdle())}},{key:"isCurrentSlide",value:function(e){var t=this.getSlide();return!(!e||!t)&&t.index===e.index}},{key:"isOpeningSlide",value:function(e){var t,n;return null===(null===(t=this.carousel)||void 0===t?void 0:t.prevPage)&&e.index===(null===(n=this.getSlide())||void 0===n?void 0:n.index)}},{key:"showLoading",value:function(e){var t=this;e.state=Nt.Loading;var n=e.el;n&&(wt(n,"is-loading"),this.emit("loading",e),e.spinnerEl||setTimeout((function(){if(!t.isClosing()&&!e.spinnerEl&&e.state===Nt.Loading){var i=Qe(gt);e.spinnerEl=i,n.prepend(i),t.animate(i,"f-fadeIn")}}),250))}},{key:"hideLoading",value:function(e){var t=e.el;if(t){var n=e.spinnerEl;this.isClosing()?null==n||n.remove():(bt(t,"is-loading"),n&&this.animate(n,"f-fadeOut",(function(){n.remove()}
7)),e.state===Nt.Loading&&(this.emit("loaded",e),e.state=Nt.Ready))}}},{key:"setError",value:function(e,t){if(!this.isClosing()){this.emit("error"),e.error=t,this.hideLoading(e),this.clearContent(e);var n=document.createElement("div");n.classList.add("fancybox-error"),n.innerHTML=this.localize(t||"<p>{{ERROR}}</p>"),this.setContent(e,n)}}},{key:"clearContent",value:function(e){var t;null===(t=this.carousel)||void 0===t||t.emit("removeSlide",e),e.contentEl&&(e.contentEl.remove(),e.contentEl=void 0),e.closeBtnEl&&(e.closeBtnEl.remove(),e.closeBtnEl=void 0);var n=e.el;n&&(bt(n,"is-loading"),bt(n,"has-error"),bt(n,"has-unknown"),bt(n,"has-".concat(e.type||"unknown")))}},{key:"getSlide",value:function(){var e,t=this.carousel;return(null===(e=null==t?void 0:t.pages[null==t?void 0:t.page])||void 0===e?void 0:e.slides[0])||void 0}},{key:"close",value:function(e,t){var n=this;if(!this.isClosing()){var i=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",i,e),!i.defaultPrevented){e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());var o=this.fsAPI,a=function(){n.proceedClose(e,t)};o&&o.isFullscreen()?Promise.resolve(o.exit()).then((function(){return a()})):a()}}}},{key:"clearIdle",value:function(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}},{key:"setIdle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this,n=function(){t.clearIdle(),t.idle=!0,wt(t.container,"is-idle"),t.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)n();else{var i=this.option("idle");i&&(this.idleTimer=setTimeout(n,i))}}},{key:"endIdle",value:function(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,bt(this.container,"is-idle"),this.emit("endIdle"))}},{key:"resetIdle",value:function(){this.endIdle(),this.setIdle()}},{key:"toggleIdle",value:function(){this.idle?this.endIdle():this.setIdle(!0)}},{key:"toggleFullscreen",value:function(){var e=this.fsAPI;e&&(e.isFullscreen()?e.exit():this.container&&e.request(this.container))}},{key:"isClosing",value:function(){return[Ft.Closing,Ft.CustomClosing,Ft.Destroy].includes(this.state)}},{key:"proceedClose",value:function(e,t){var n,i,o=this;this.state=Ft.Closing,this.clearIdle(),this.detachEvents();var a=this.container,r=this.carousel,s=this.getSlide(),l=s&&this.option("placeFocusBack")?s.triggerEl||this.option("trigger"):null;if(l&&(Bt(l)?Wt(l):l.focus()),a&&(wt(a,"is-closing"),a.setAttribute("aria-hidden","true"),this.option("animated")&&wt(a,"is-animated"),a.style.pointerEvents="none"),r){r.clearTransitions(),null===(n=r.panzoom)||void 0===n||n.destroy(),null===(i=r.plugins.Navigation)||void 0===i||i.detach();var c=!0,u=!1,d=void 0;try{for(var h,f=r.slides[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var v=h.value;v.state=Nt.Closing,this.hideLoading(v);var p=v.contentEl;p&&this.stop(p);var m=null==v?void 0:v.panzoom;m&&(m.stop(),m.detachEvents(),m.detachObserver()),this.isCurrentSlide(v)||r.emit("removeSlide",v)}}catch(e){u=!0,d=e}finally{try{c||null==f.return||f.return()}finally{if(u)throw d}}}this.emit("close",e),this.state!==Ft.CustomClosing?(void 0===t&&s&&(t=this.optionFor(s,"hideClass")),t&&s?(this.animate(s.contentEl,t,(function(){r&&r.emit("removeSlide",s)})),setTimeout((function(){o.destroy()}),500)):this.destroy()):setTimeout((function(){o.destroy()}),500)}},{key:"destroy",value:function(){var e;if(this.state!==Ft.Destroy){this.state=Ft.Destroy,null===(e=this.carousel)||void 0===e||e.destroy();var t=this.container;t&&t.remove(),fn.delete(this.id);var i=n.getInstance();
7i?i.focus():(dn&&(dn.remove(),dn=null),hn&&(hn.remove(),hn=null),bt(document.documentElement,"with-fancybox"),function(){if(_t){var e=document,t=e.body;t.classList.remove("hide-scrollbar"),t.style.setProperty("--fancybox-body-margin",""),e.documentElement.style.setProperty("--fancybox-scrollbar-compensate","")}}(),this.emit("destroy"))}}}],[{key:"bind",value:function(e,t,i){if(_t){var o,a="",r={};if(void 0===e?o=document.body:"string"==typeof e?(o=document.body,a=e,"object"==typeof t&&(r=t||{})):(o=e,"string"==typeof t&&(a=t),"object"==typeof i&&(r=i||{})),o&&yt(o)){a=a||"[data-fancybox]";var s=n.openers.get(o)||new Map;s.set(a,r),n.openers.set(o,s),1===s.size&&o.addEventListener("click",n.fromEvent)}}}},{key:"unbind",value:function(e,t){var i,o="";if("string"==typeof e?(i=document.body,o=e):(i=e,"string"==typeof t&&(o=t)),i){var a=n.openers.get(i);a&&o&&a.delete(o),o&&a||(n.openers.delete(i),i.removeEventListener("click",n.fromEvent))}}},{key:"destroy",value:function(){for(var e;e=n.getInstance();)e.destroy();var t=!0,i=!1,o=void 0;try{for(var a,r=n.openers.keys()[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){a.value.removeEventListener("click",n.fromEvent)}}catch(e){i=!0,o=e}finally{try{t||null==r.return||r.return()}finally{if(i)throw o}}n.openers=new Map}},{key:"fromEvent",value:function(e){if(!e.defaultPrevented&&!(e.button&&0!==e.button||e.ctrlKey||e.metaKey||e.shiftKey)){var t,i,o,a,r=e.composedPath()[0],s=r.closest("[data-fancybox-trigger]");if(s){var l=s.dataset.fancyboxTrigger||"",c=document.querySelectorAll('[data-fancybox="'.concat(l,'"]')),u=parseInt(s.dataset.fancyboxIndex||"",10)||0;r=c[u]||r}if(r&&r instanceof Element)if(g(n.openers).reverse().find((function(e){var n=x(e,2),s=n[0],l=n[1];return!(!s.contains(r)||!g(l).reverse().find((function(e){var n=x(e,2),l=n[0],c=n[1],u=r.closest(l);return!!u&&(t=s,i=l,o=u,a=c,!0)})))})),t&&i&&o){a=a||{},e.preventDefault(),r=o;var d=[],h=lt({},qt,a);h.event=e,h.trigger=r,h.delegate=s;var f=h.groupAll,v=h.groupAttr,p=v&&r?r.getAttribute("".concat(v)):"";if((!r||p||f)&&(d=[].slice.call(t.querySelectorAll(i))),r&&!f&&(d=p?d.filter((function(e){return e.getAttribute("".concat(v))===p})):[r]),d.length){var m=n.getInstance();return m&&m.options.trigger&&d.indexOf(m.options.trigger)>-1?void 0:(r&&(h.startIndex=d.indexOf(r)),n.fromNodes(d,h))}}}}},{key:"fromSelector",value:function(e,t){var i=null,o="";if("string"==typeof e?(i=document.body,o=e):e instanceof HTMLElement&&"string"==typeof t&&(i=e,o=t),!i||!o)return!1;var a=n.openers.get(i);if(!a)return!1;var r=a.get(o);return!!r&&n.fromNodes(Array.from(i.querySelectorAll(o)),r)}},{key:"fromNodes",value:function(e,t){t=lt({},qt,t||{});var i=[],o=!0,a=!1,r=void 0;try{for(var s,l=e[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value,u=c.dataset||{},d=u.src||c.getAttribute("href")||c.getAttribute("currentSrc")||c.getAttribute("src")||void 0,h=void 0,f=t.delegate,v=void 0;f&&i.length===t.startIndex&&(h=f instanceof HTMLImageElement?f:f.querySelector("img:not([aria-hidden])")),h||(h=c instanceof HTMLImageElement?c:c.querySelector("img:not([aria-hidden])")),h&&(!(v=h.currentSrc||h.src||void 0)&&h.dataset&&(v=h.dataset.lazySrc||h.dataset.src||void 0));var p={src:d,triggerEl:c,thumbEl:h,thumbElSrc:v,thumbSrc:v};for(var m in u)"fancybox"!==m&&(p[m]=u[m]+"");i.push(p)}}catch(e){a=!0,r=e}finally{try{o||null==l.return||l.return()}finally{if(a)throw r}}return new n(i,t)}},{key:"getInstance",value:function(e){return e?fn.get(e):Array.from(fn.values()).reverse().find((function(e){return!e.isClosing()&&e}))||null}},{key:"getSlide",value:function(){var e;return(null===(e=n.getInstance())||void 0===e?void 0:e.getSlide())||null}},{key:"show",value:function(){return new n(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},{key:"next",value:function(){var e=n.getInstance();e&&e.next()}},{key:"prev",value:function(){var e=n.getInstance();e&&e.prev()}},{key:"close",value:function(){for(var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var r=!0,s=!1,l=void 0;if(t)try{for(var c,u=fn.values()[Symbol.iterator]();!(r=(c=u.next()).done);r=!0){(e=c.value).close.apply(e,g(o))}}catch(e){s=!0,l=e}finally{try{r||null==u.return||u.return()}finally{if(s)throw l}}else{var d,h=n.getInstance();h&&(d=h).close.apply(d,g(o))}}}]),n}(ft);Object.defineProperty(pn,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.17"}),Object.defineProperty(pn,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:qt}),Object.defineProperty(pn,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:cn}),Object.defineProperty(pn,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});var mn;[{container:'[data-component="rich-text"]',selector:"figure.wp-caption img",minimum:2},{container:'[data-component="gallery"]',selector:"figure.cmoa-image img",minimum:1},{container:'.sidebar-modules [data-component="slider"]',selector:"figure.cmoa-image img",minimum:1}
7].forEach((function(e){var t=e.container,n=e.selector,i=e.minimum;Array.from(document.querySelectorAll(t)).forEach((function(e){var t=Array.from(e.querySelectorAll(n));t.length>=i&&function(e){var t=e.map((function(e){var t=e.closest("figure").querySelector("figcaption");return e.classList.add("cursor-zoom-in"),{src:e.src,caption:t?t.innerHTML:""}}));e.forEach((function(e,n){e.addEventListener("click",(function(e){e.preventDefault(),new pn(t,{startIndex:n,contentClick:"next",commonCaption:!0,wheel:!1,idle:!1,showClass:"f-fadeSlowIn",compact:function(){var e;return null===(e=window.matchMedia("(max-width: 639px)"))||void 0===e?void 0:e.matches},Carousel:{transition:"fade",Navigation:{nextTpl:"→",prevTpl:"←"}},Toolbar:{items:{close:{tpl:'<button class="f-button" data-fancybox-close>✕</button>'},prev:{tpl:'<button class="f-button flex sm:!hidden" title="Previous" data-fancybox-prev>←</button>'},next:{tpl:'<button class="f-button flex sm:!hidden" title="Next" data-fancybox-next>→</button>'}},display:{left:["prev","next"],middle:[],right:["close"]}},Slideshow:!1,Thumbs:!1})}))}))}(t)}))})),te('[data-component="search-input"]',{init:function(){this.updatePlaceholder(),this.autofocus()},updatePlaceholder:function(){window.innerWidth<768&&this.element.setAttribute("placeholder","Searchâ¦")},autofocus:function(){var e;this.element.hasAttribute("data-autofocus")&&(null===(e=window.matchMedia("(hover: hover)"))||void 0===e?void 0:e.matches)&&this.element.focus()}}),te('a[href$="?s="]',{init:function(){var e,t,n;this.modalTemplate=document.querySelector("#search-modal-template"),this.$modalNode=null===(e=this.modalTemplate)||void 0===e||null===(t=e.content)||void 0===t||null===(n=t.children)||void 0===n?void 0:n[0]},onClick:function(e){this.$modalNode&&(e.preventDefault(),new pn([{src:this.$modalNode.outerHTML,type:"html"}],{defaultType:"html",contentClick:!1,commonCaption:!0,wheel:!1,idle:!1,mainClass:"search-modal",animated:!1,showClass:!1,hideClass:!1,compact:!1,dragToClose:!1,autoFocus:!1,keyboard:{Backspace:!1,Delete:!1},Carousel:{transition:!1},Toolbar:{enabled:!0,items:{close:{tpl:'<button class="f-button" data-fancybox-close>✕</button>'}},display:{left:[],middle:[],right:["close"]}},Slideshow:!1,Thumbs:!1,on:{ready:function(){window.dispatchEvent(new CustomEvent("cmoa:search-modal",{detail:{open:!0}}))},destroy:function(){window.dispatchEvent(new CustomEvent("cmoa:search-modal",{detail:{open:!1}}))}}}))}}),mn=function(e){9===(e.which||e.keyCode)&&(document.documentElement.classList.add("tabbing"),document.removeEventListener("keyup",mn))},document.addEventListener("keyup",mn),e(t)(document.body,"a[href]","click",(function(e){var t=e.delegateTarget.href;s.some((function(e){return e instanceof RegExp?e.test(t):t.includes(e)}))||(e.preventDefault(),e.stopPropagation(),window.open(t,"_blank"))})),e(t)("[data-sublink]","click",(function(e){if("A"!==e.target.tagName&&"BUTTON"!==e.target.tagName){var t=e.delegateTarget.querySelector("a");if(t&&e.target!==t)e.metaKey?window.open(t.href,"_blank").focus():t.click();else{var n=e.delegateTarget.querySelector("button");n&&e.target!==n&&n.click()}}}),!1),e(l)(),new y}(); 8//# sourceMappingURL=bundle.js.map
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.