vendor: 19,348 bytes, lines 1-3
1var Or=Object.defineProperty;var Tr=(t,e)=>{for(var r in e)Or(t,r,{get:e[r],enumerable:!0})};var Vt={};Tr(Vt,{createFocusTrap:()=>Jr});var It=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Ce=It.join(","),Ft=typeof Element>"u",ce=Ft?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ke=!Ft&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},je=function(e,r){var i;r===void 0&&(r=!0);var n=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"inert"),s=n===""||n==="true",o=s||r&&e&&(typeof e.closest=="function"?e.closest("[inert]"):je(e.parentNode));return o},_r=function(e){var r,i=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return i===""||i==="true"},Pt=function(e,r,i){if(je(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Ce));return r&&ce.call(e,Ce)&&n.unshift(e),n=n.filter(i),n},Me=function(e,r,i){for(var n=[],s=Array.from(e);s.length;){var o=s.shift();if(!je(o,!1))if(o.tagName==="SLOT"){var c=o.assignedElements(),f=c.length?c:o.children,u=Me(f,!0,i);i.flatten?n.push.apply(n,u):n.push({scopeParent:o,candidates:u})}else{var m=ce.call(o,Ce);m&&i.filter(o)&&(r||!e.includes(o))&&n.push(o);var p=o.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(o),h=!je(p,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(o));if(p&&h){var _=Me(p===!0?o.children:p.children,!0,i);i.flatten?n.push.apply(n,_):n.push({scopeParent:o,candidates:_})}else s.unshift.apply(s,o.children)}}return n},Dt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},te=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||_r(e))&&!Dt(e)?0:e.tabIndex},Ar=function(e,r){var i=te(e);return i<0&&r&&!Dt(e)?0:i},Ir=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Nt=function(e){return e.tagName==="INPUT"},Fr=function(e){return Nt(e)&&e.type==="hidden"},Pr=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(i){return i.tagName==="SUMMARY"});return r},Dr=function(e,r){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===r)return e[i]},Nr=function(e){if(!e.name)return!0;var r=e.form||ke(e),i=function(c){return r.querySelectorAll('input[type="radio"][name="'+c+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=i(window.CSS.escape(e.name));else try{n=i(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var s=Dr(n,e.form);return!s||s===e},Lr=function(e){return Nt(e)&&e.type==="radio"},Rr=function(e){return Lr(e)&&!Nr(e)},Cr=function(e){var r,i=e&&ke(e),n=(r=i)===null||r===void 0?void 0:r.host,s=!1;if(i&&i!==e){var o,c,f;for(s=!!((o=n)!==null&&o!==void 0&&(c=o.ownerDocument)!==null&&c!==void 0&&c.contains(n)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!s&&n;){var u,m,p;i=ke(n),n=(u=i)===null||u===void 0?void 0:u.host,s=!!((m=n)!==null&&m!==void 0&&(p=m.ownerDocument)!==null&&p!==void 0&&p.contains(n))}}return s},At=function(e){var r=e.getBoundingClientRect(),i=r.width,n=r.height;return i===0&&n===0},kr=function(e,r){var i=r.displayCheck,n=r.getShadowRoot;if(i==="full-native"&&"checkVisibility"in e){var s=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(e).visibility==="hidden")return!0;var o=ce.call(e,"details>summary:first-of-type"),c=o?e.parentElement:e;if(ce.call(c,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="full-native"||i==="legacy-full"){if(typeof n=="function"){for(var f=e;e;){var u=e.parentElement,m=ke(e);if(u&&!u.shadowRoot&&n(u)===!0)return At(e);e.assignedSlot?e=e.assignedSlot:!u&&m!==e.ownerDocument?e=m.host:e=u}e=f}if(Cr(e))return!e.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return At(e);return!1},jr=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var i=0;i<r.children.length;i++){var n=r.children.item(i);if(n.tagName==="LEGEND")return ce.call(r,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}r=r.parentElement}return!1},ze=function(e,r){return!(r.disabled||Fr(r)||kr(r,e)||Pr(r)||jr(r))},ot=function(e,r){return!(Rr(r)||te(r)<0||!ze(e,r))},Mr=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},Lt=function(e){var r=[],i=[];return e.forEach(function(n,s){var o=!!n.scopeParent,c=o?n.scopeParent:n,f=Ar(c,o),u=o?Lt(n.candidates):c;f===0?o?r.push.apply(r,u):r.push(c):i.push({documentOrder:s,tabIndex:f,item:n,isScope:o,content:u})}),i.sort(Ir).reduce(function(n,s){return s.isScope?n.push.apply(n,s.content):n.push(s.content),n},[]).concat(r)},Rt=function(e,r){r=r||{};var i;return r.getShadowRoot?i=Me([e],r.includeContainer,{filter:ot.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:Mr}):i=Pt(e,r.includeContainer,ot.bind(null,r)),Lt(i)},Ct=function(e,r){r=r||{};var i;return r.getShadowRoot?i=Me([e],r.includeContainer,{filter:ze.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):i=Pt(e,r.includeContainer,ze.bind(null,r)),i},ue=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return ce.call(e,Ce)===!1?!1:ot(r,e)},zr=It.concat("iframe:not([inert]):not([inert] *)").join(","),Be=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return ce.call(e,zr)===!1?!1:ze(r,e)};function st(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function Br(t){if(Array.isArray(t))return st(t)}function kt(t,e,r,i,n,s,o){try{var c=t[s](o),f=c.value}catch(u){return void r(u)}c.done?e(f):Promise.resolve(f).then(i,n)}function jt(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function o(f){kt(s,i,n,o,c,"next",f)}function c(f){kt(s,i,n,o,c,"throw",f)}o(void 0)})}}function Mt(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=$t(t))||e){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(f){throw f},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var f=r.next();return o=f.done,f},e:function(f){c=!0,s=f},f:function(){try{o||r.return==null||r.return()}finally{if(c)throw s}}}}function Wr(t,e,r){return(e=Hr(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $r(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Vr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Bt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zt(Object(r),!0).forEach(function(i){Wr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zt(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function ge(){var t,e,r=typeof Symbol=="function"?Symbol:{},i=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function s(_,x,D,L){var N=x&&x.prototype instanceof c?x:c,M=Object.create(N.prototype);return K(M,"_invoke",(function(B,$,C){var P,S,A,I=0,H=C||[],w=!1,F={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(a,l){return P=a,S=0,A=t,F.n=l,o}};function y(a,l){for(S=a,A=l,e=0;!w&&I&&!d&&e<H.length;e++){var d,v=H[e],b=F.p,E=v[2];a>3?(d=E===l)&&(A=v[(S=v[4])?5:(S=3,3)],v[4]=v[5]=t):v[0]<=b&&((d=a<2&&b<v[1])?(S=0,F.v=l,F.n=v[1]):b<E&&(d=a<3||v[0]>l||l>E)&&(v[4]=a,v[5]=l,F.n=E,S=0))}if(d||a>1)return o;throw w=!0,l}return function(a,l,d){if(I>1)throw TypeError("Generator is already running");for(w&&l===1&&y(l,d),S=l,A=d;(e=S<2?t:A)||!w;){P||(S?S<3?(S>1&&(F.n=-1),y(S,A)):F.n=A:F.v=A);try{if(I=2,P){if(S||(a="next"),e=P[a]){if(!(e=e.call(P,A)))throw TypeError("iterator result is not an object");if(!e.done)return e;A=e.value,S<2&&(S=0)}else S===1&&(e=P.return)&&e.call(P),S<2&&(A=TypeError("The iterator does not provide a '"+a+"' method"),S=1);P=t}else if((e=(w=F.n<0)?A:B.call($,F))!==o)break}catch(v){P=t,S=1,A=v}finally{I=1}}return{value:e,done:w}}})(_,D,L),!0),M}var o={};function c(){}function f(){}function u(){}e=Object.getPrototypeOf;var m=[][i]?e(e([][i]())):(K(e={},i,function(){return this}),e),p=u.prototype=c.prototype=Object.create(m);function h(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,u):(_.__proto__=u,K(_,n,"GeneratorFunction")),_.prototype=Object.create(p),_}return f.prototype=u,K(p,"constructor",u),K(u,"constructor",f),f.displayName="GeneratorFunction",K(u,n,"GeneratorFunction"),K(p),K(p,n,"Generator"),K(p,i,function(){return this}),K(p,"toString",function(){return"[object Generator]"}),(ge=function(){return{w:s,m:h}})()}function K(t,e,r,i){var n=Object.defineProperty;try{n({},"",{})}catch{n=0}K=function(s,o,c,f){function u(m,p){K(s,m,function(h){return this._invoke(m,p,h)})}o?n?n(s,o,{value:c,enumerable:!f,configurable:!f,writable:!f}):s[o]=c:(u("next",0),u("throw",1),u("return",2))},K(t,e,r,i)}function Gr(t){return Br(t)||$r(t)||$t(t)||Vr()}function Kr(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hr(t){var e=Kr(t,"string");return typeof e=="symbol"?e:e+""}function $t(t,e){if(t){if(typeof t=="string")return st(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?st(t,e):void 0}}var X={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,r){var i=X.getActiveTrap(e);r!==i&&X.pauseTrap(e);var n=e.indexOf(r);n===-1||e.splice(n,1),e.push(r)},deactivateTrap:function(e,r){var i=e.indexOf(r);i!==-1&&e.splice(i,1),X.unpauseTrap(e)},pauseTrap:function(e){var r=X.getActiveTrap(e);r?._setPausedState(!0)},unpauseTrap:function(e){var r=X.getActiveTrap(e);r&&!r._isManuallyPaused()&&r._setPausedState(!1)}},Ur=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},qr=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},be=function(e){return e?.key==="Tab"||e?.keyCode===9},Zr=function(e){return be(e)&&!e.shiftKey},Xr=function(e){return be(e)&&e.shiftKey},Wt=function(e){return setTimeout(e,0)},ye=function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return typeof e=="function"?e.apply(void 0,i):e},We=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Yr=[],Jr=function(e,r){var i=r?.document||document,n=r?.trapStack||Yr,s=Bt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:Zr,isKeyBackward:Xr},r),o={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},c,f=function(a,l,d){return a&&a[l]!==void 0?a[l]:s[d||l]},u=function(a,l){var d=typeof l?.composedPath=="function"?l.composedPath():void 0;return o.containerGroups.findIndex(function(v){var b=v.container,E=v.tabbableNodes;return b.contains(a)||d?.includes(b)||E.find(function(g){return g===a})})},m=function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=l.hasFallback,v=d===void 0?!1:d,b=l.params,E=b===void 0?[]:b,g=s[a];if(typeof g=="function"&&(g=g.apply(void 0,Gr(E))),g===!0&&(g=void 0),!g){if(g===void 0||g===!1)return g;throw new Error("`".concat(a,"` was specified but was not a node, or did not return a node"))}var O=g;if(typeof g=="string"){try{O=i.querySelector(g)}catch(T){throw new Error("`".concat(a,'` appears to be an invalid selector; error="').concat(T.message,'"'))}if(!O&&!v)throw new Error("`".concat(a,"` as selector refers to no known node"))}return O},p=function(){var a=m("initialFocus",{hasFallback:!0});if(a===!1)return!1;if(a===void 0||a&&!Be(a,s.tabbableOptions))if(u(i.activeElement)>=0)a=i.activeElement;else{var l=o.tabbableGroups[0],d=l&&l.firstTabbableNode;a=d||m("fallbackFocus")}else a===null&&(a=m("fallbackFocus"));if(!a)throw new Error("Your focus-trap needs to have at least one focusable element");return a},h=function(){if(o.containerGroups=o.containers.map(function(a){var l=Rt(a,s.tabbableOptions),d=Ct(a,s.tabbableOptions),v=l.length>0?l[0]:void 0,b=l.length>0?l[l.length-1]:void 0,E=d.find(function(T){return ue(T)}),g=d.slice().reverse().find(function(T){return ue(T)}),O=!!l.find(function(T){return te(T)>0});return{container:a,tabbableNodes:l,focusableNodes:d,posTabIndexesFound:O,firstTabbableNode:v,lastTabbableNode:b,firstDomTabbableNode:E,lastDomTabbableNode:g,nextTabbableNode:function(k){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,V=l.indexOf(k);return V<0?G?d.slice(d.indexOf(k)+1).find(function(le){return ue(le)}):d.slice(0,d.indexOf(k)).reverse().find(function(le){return ue(le)}):l[V+(G?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(a){return a.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!m("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(a){return a.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},_=function(a){var l=a.activeElement;if(l)return l.shadowRoot&&l.shadowRoot.activeElement!==null?_(l.shadowRoot):l},x=function(a){if(a!==!1&&a!==_(document)){if(!a||!a.focus){x(p());return}a.focus({preventScroll:!!s.preventScroll}),o.mostRecentlyFocusedNode=a,Ur(a)&&a.select()}},D=function(a){var l=m("setReturnFocus",{params:[a]});return l||(l===!1?!1:a)},L=function(a){var l=a.target,d=a.event,v=a.isBackward,b=v===void 0?!1:v;l=l||We(d),h();var E=null;if(o.tabbableGroups.length>0){var g=u(l,d),O=g>=0?o.containerGroups[g]:void 0;if(g<0)b?E=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:E=o.tabbableGroups[0].firstTabbableNode;else if(b){var T=o.tabbableGroups.findIndex(function(it){var nt=it.firstTabbableNode;return l===nt});if(T<0&&(O.container===l||Be(l,s.tabbableOptions)&&!ue(l,s.tabbableOptions)&&!O.nextTabbableNode(l,!1))&&(T=g),T>=0){var k=T===0?o.tabbableGroups.length-1:T-1,G=o.tabbableGroups[k];E=te(l)>=0?G.lastTabbableNode:G.lastDomTabbableNode}else be(d)||(E=O.nextTabbableNode(l,!1))}else{var V=o.tabbableGroups.findIndex(function(it){var nt=it.lastTabbableNode;return l===nt});if(V<0&&(O.container===l||Be(l,s.tabbableOptions)&&!ue(l,s.tabbableOptions)&&!O.nextTabbableNode(l))&&(V=g),V>=0){var le=V===o.tabbableGroups.length-1?0:V+1,ee=o.tabbableGroups[le];E=te(l)>=0?ee.firstTabbableNode:ee.firstDomTabbableNode}else be(d)||(E=O.nextTabbableNode(l))}}else E=m("fallbackFocus");return E},N=function(a){var l=We(a);if(!(u(l,a)>=0)){if(ye(s.clickOutsideDeactivates,a)){c.deactivate({returnFocus:s.returnFocusOnDeactivate});return}ye(s.allowOutsideClick,a)||a.preventDefault()}},M=function(a){var l=We(a),d=u(l,a)>=0;if(d||l instanceof Document)d&&(o.mostRecentlyFocusedNode=l);else{a.stopImmediatePropagation();var v,b=!0;if(o.mostRecentlyFocusedNode)if(te(o.mostRecentlyFocusedNode)>0){var E=u(o.mostRecentlyFocusedNode),g=o.containerGroups[E].tabbableNodes;if(g.length>0){var O=g.findIndex(function(T){return T===o.mostRecentlyFocusedNode});O>=0&&(s.isKeyForward(o.recentNavEvent)?O+1<g.length&&(v=g[O+1],b=!1):O-1>=0&&(v=g[O-1],b=!1))}}else o.containerGroups.some(function(T){return T.tabbableNodes.some(function(k){return te(k)>0})})||(b=!1);else b=!1;b&&(v=L({target:o.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(o.recentNavEvent)})),x(v||o.mostRecentlyFocusedNode||p())}o.recentNavEvent=void 0},B=function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=a;var d=L({event:a,isBackward:l});d&&(be(a)&&a.preventDefault(),x(d))},$=function(a){(s.isKeyForward(a)||s.isKeyBackward(a))&&B(a,s.isKeyBackward(a))},C=function(a){qr(a)&&ye(s.escapeDeactivates,a)!==!1&&(a.preventDefault(),c.deactivate())},P=function(a){var l=We(a);u(l,a)>=0||ye(s.clickOutsideDeactivates,a)||ye(s.allowOutsideClick,a)||(a.preventDefault(),a.stopImmediatePropagation())},S=function(){if(!o.active)return Promise.resolve();X.activateTrap(n,c);var a;return s.delayInitialFocus?a=new Promise(function(l){o.delayInitialFocusTimer=Wt(function(){x(p()),l()})}):(a=Promise.resolve(),x(p())),i.addEventListener("focusin",M,!0),i.addEventListener("mousedown",N,{capture:!0,passive:!1}),i.addEventListener("touchstart",N,{capture:!0,passive:!1}),i.addEventListener("click",P,{capture:!0,passive:!1}),i.addEventListener("keydown",$,{capture:!0,passive:!1}),i.addEventListener("keydown",C),a},A=function(a){o.active&&!o.paused&&c._setSubtreeIsolation(!1),o.adjacentElements.clear(),o.alreadySilent.clear();var l=new Set,d=new Set,v=Mt(a),b;try{for(v.s();!(b=v.n()).done;){var E=b.value;l.add(E);for(var g=typeof ShadowRoot<"u"&&E.getRootNode()instanceof ShadowRoot,O=E;O;){l.add(O);var T=O.parentElement,k=[];T?k=T.children:!T&&g&&(k=O.getRootNode().children,T=O.getRootNode().host,g=typeof ShadowRoot<"u"&&T.getRootNode()instanceof ShadowRoot);var G=Mt(k),V;try{for(G.s();!(V=G.n()).done;){var le=V.value;d.add(le)}}catch(ee){G.e(ee)}finally{G.f()}O=T}}}catch(ee){v.e(ee)}finally{v.f()}l.forEach(function(ee){d.delete(ee)}),o.adjacentElements=d},I=function(){if(o.active)return i.removeEventListener("focusin",M,!0),i.removeEventListener("mousedown",N,!0),i.removeEventListener("touchstart",N,!0),i.removeEventListener("click",P,!0),i.removeEventListener("keydown",$,!0),i.removeEventListener("keydown",C),c},H=function(a){var l=a.some(function(d){var v=Array.from(d.removedNodes
vendor: 8,033 bytes, line 3
3);return v.some(function(b){return b===o.mostRecentlyFocusedNode})});l&&x(p())},w=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(H):void 0,F=function(){w&&(w.disconnect(),o.active&&!o.paused&&o.containers.map(function(a){w.observe(a,{subtree:!0,childList:!0})}))};return c={get active(){return o.active},get paused(){return o.paused},activate:function(a){if(o.active)return this;var l=f(a,"onActivate"),d=f(a,"onPostActivate"),v=f(a,"checkCanFocusTrap"),b=X.getActiveTrap(n),E=!1;if(b&&!b.paused){var g;(g=b._setSubtreeIsolation)===null||g===void 0||g.call(b,!1),E=!0}try{v||h(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=_(i),l?.();var O=(function(){var k=jt(ge().m(function G(){return ge().w(function(V){for(;;)switch(V.n){case 0:return v&&h(),V.n=1,S();case 1:c._setSubtreeIsolation(!0),F(),d?.();case 2:return V.a(2)}},G)}));return function(){return k.apply(this,arguments)}})();if(v)return v(o.containers.concat()).then(O,O),this;O()}catch(k){if(b===X.getActiveTrap(n)&&E){var T;(T=b._setSubtreeIsolation)===null||T===void 0||T.call(b,!0)}throw k}return this},deactivate:function(a){if(!o.active)return this;var l=Bt({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},a);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,o.paused||c._setSubtreeIsolation(!1),o.alreadySilent.clear(),I(),o.active=!1,o.paused=!1,F(),X.deactivateTrap(n,c);var d=f(l,"onDeactivate"),v=f(l,"onPostDeactivate"),b=f(l,"checkCanReturnFocus"),E=f(l,"returnFocus","returnFocusOnDeactivate");d?.();var g=function(){Wt(function(){E&&x(D(o.nodeFocusedBeforeActivation)),v?.()})};return E&&b?(b(D(o.nodeFocusedBeforeActivation)).then(g,g),this):(g(),this)},pause:function(a){return o.active?(o.manuallyPaused=!0,this._setPausedState(!0,a)):this},unpause:function(a){return o.active?(o.manuallyPaused=!1,n[n.length-1]!==this?this:this._setPausedState(!1,a)):this},updateContainerElements:function(a){var l=[].concat(a).filter(Boolean);return o.containers=l.map(function(d){return typeof d=="string"?i.querySelector(d):d}),s.isolateSubtrees&&A(o.containers),o.active&&(h(),o.paused||c._setSubtreeIsolation(!0)),F(),this}},Object.defineProperties(c,{_isManuallyPaused:{value:function(){return o.manuallyPaused}},_setPausedState:{value:function(a,l){if(o.paused===a)return this;if(o.paused=a,a){var d=f(l,"onPause"),v=f(l,"onPostPause");d?.(),I(),c._setSubtreeIsolation(!1),F(),v?.()}else{var b=f(l,"onUnpause"),E=f(l,"onPostUnpause");b?.();var g=(function(){var O=jt(ge().m(function T(){return ge().w(function(k){for(;;)switch(k.n){case 0:return h(),k.n=1,S();case 1:c._setSubtreeIsolation(!0),F(),E?.();case 2:return k.a(2)}},T)}));return function(){return O.apply(this,arguments)}})();g()}return this}},_setSubtreeIsolation:{value:function(a){s.isolateSubtrees&&o.adjacentElements.forEach(function(l){var d;a?s.isolateSubtrees==="aria-hidden"?((l.ariaHidden==="true"||((d=l.getAttribute("aria-hidden"))===null||d===void 0?void 0:d.toLowerCase())==="true")&&o.alreadySilent.add(l),l.setAttribute("aria-hidden","true")):((l.inert||l.hasAttribute("inert"))&&o.alreadySilent.add(l),l.setAttribute("inert",!0)):o.alreadySilent.has(l)||(s.isolateSubtrees==="aria-hidden"?l.removeAttribute("aria-hidden"):l.removeAttribute("inert"))})}}}),c.updateContainerElements(e),c};function at(t,e){t.indexOf(e)===-1&&t.push(e)}function lt(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var we=(t,e,r)=>Math.min(Math.max(r,t),e);var R={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"};var W=t=>typeof t=="number";var Z=t=>Array.isArray(t)&&!W(t[0]);var Gt=(t,e,r)=>{let i=e-t;return((r-t)%i+i)%i+t};function Ee(t,e){return Z(t)?t[Gt(0,t.length,e)]:t}var fe=(t,e,r)=>-r*t+r*e+t;var Se=()=>{},z=t=>t;var q=(t,e,r)=>e-t===0?1:(r-t)/(e-t);function me(t,e){let r=t[t.length-1];for(let i=1;i<=e;i++){let n=q(0,e,i);t.push(fe(r,1,n))}}function de(t){let e=[0];return me(e,t-1),e}function xe(t,e=de(t.length),r=z){let i=t.length,n=i-e.length;return n>0&&me(e,n),s=>{let o=0;for(;o<i-2&&!(s<e[o+1]);o++);let c=we(0,1,q(e[o],e[o+1],s));return c=Ee(r,o)(c),fe(t[o],t[o+1],c)}}var Oe=t=>Array.isArray(t)&&W(t[0]);var re=t=>typeof t=="object"&&!!t.createAnimation;var j=t=>typeof t=="function";var Y=t=>typeof t=="string";var ie={ms:t=>t*1e3,s:t=>t/1e3};function ct(t,e){return e?t*(1e3/e):0}var Kt=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,Qr=1e-7,ei=12;function ti(t,e,r,i,n){let s,o,c=0;do o=e+(r-e)/2,s=Kt(o,i,n)-t,s>0?r=o:e=o;while(Math.abs(s)>Qr&&++c<ei);return o}function he(t,e,r,i){if(t===e&&r===i)return z;let n=s=>ti(s,0,1,t,r);return s=>s===0||s===1?s:Kt(n(s),e,i)}var ut=(t,e="end")=>r=>{r=e==="end"?Math.min(r,.999):Math.max(r,.001);let i=r*t,n=e==="end"?Math.floor(i):Math.ceil(i);return we(0,1,n/t)};var ri={ease:he(.25,.1,.25,1),"ease-in":he(.42,0,1,1),"ease-in-out":he(.42,0,.58,1),"ease-out":he(0,0,.58,1)},ii=/\((.*?)\)/;function ve(t){if(j(t))return t;if(Oe(t))return he(...t);let e=ri[t];if(e)return e;if(t.startsWith("steps")){let r=ii.exec(t);if(r){let i=r[1].split(",");return ut(parseFloat(i[0]),i[1].trim())}}return z}var J=class{constructor(e,r=[0,1],{easing:i,duration:n=R.duration,delay:s=R.delay,endDelay:o=R.endDelay,repeat:c=R.repeat,offset:f,direction:u="normal",autoplay:m=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=z,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((h,_)=>{this.resolve=h,this.reject=_}),i=i||R.easing,re(i)){let h=i.createAnimation(r);i=h.easing,r=h.keyframes||r,n=h.duration||n}this.repeat=c,this.easing=Z(i)?z:ve(i),this.updateDuration(n);let p=xe(r,f,Z(i)?i.map(ve):z);this.tick=h=>{var _;s=s;let x=0;this.pauseTime!==void 0?x=this.pauseTime:x=(h-this.startTime)*this.rate,this.t=x,x/=1e3,x=Math.max(x-s,0),this.playState==="finished"&&this.pauseTime===void 0&&(x=this.totalDuration);let D=x/this.duration,L=Math.floor(D),N=D%1;!N&&D>=1&&(N=1),N===1&&L--;let M=L%2;(u==="reverse"||u==="alternate"&&M||u==="alternate-reverse"&&!M)&&(N=1-N);let B=x>=this.totalDuration?1:Math.min(N,1),$=p(this.easing(B));e($),this.pauseTime===void 0&&(this.playState==="finished"||x>=this.totalDuration+o)?(this.playState="finished",(_=this.resolve)===null||_===void 0||_.call(this,$)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},m&&this.play()}play(){let e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}};var Te=function(){};var _e=class{setAnimation(e){this.animation=e,e?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}};var ft=new WeakMap;function $e(t){return ft.has(t)||ft.set(t,{transforms:[],values:new Map}),ft.get(t)}function Ht(t,e){return t.has(e)||t.set(e,new _e),t.get(e)}var ni=["","X","Y","Z"],oi=["translate","scale","rotate","skew"],Ae={x:"translateX",y:"translateY",z:"translateZ"},Ut={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},si={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:Ut,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:z},skew:Ut},ne=new Map,Ge=t=>`--motion-${t}`,Ve=["x","y","z"];oi.forEach(t=>
vendor: 4,312 bytes, line 3
3{ni.forEach(e=>{Ve.push(t+e),ne.set(Ge(t+e),si[t])})});var ai=(t,e)=>Ve.indexOf(t)-Ve.indexOf(e),li=new Set(Ve),Ke=t=>li.has(t),qt=(t,e)=>{Ae[e]&&(e=Ae[e]);let{transforms:r}=$e(t);at(r,e),t.style.transform=ci(r)},ci=t=>t.sort(ai).reduce(ui,"").trim(),ui=(t,e)=>`${t} ${e}(var(${Ge(e)}))`;var Ie=t=>t.startsWith("--"),Zt=new Set;function Xt(t){if(!Zt.has(t)){Zt.add(t);try{let{syntax:e,initialValue:r}=ne.has(t)?ne.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch{}}}var dt=(t,e)=>document.createElement("div").animate(t,e),Yt={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{dt({opacity:[1]})}catch{return!1}return!0},finished:()=>!!dt({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{dt({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},ht={},oe={};for(let t in Yt)oe[t]=()=>(ht[t]===void 0&&(ht[t]=Yt[t]()),ht[t]);var fi=.015,di=(t,e)=>{let r="",i=Math.round(e/fi);for(let n=0;n<i;n++)r+=t(q(0,i-1,n))+", ";return r.substring(0,r.length-2)},pt=(t,e)=>j(t)?oe.linearEasing()?`linear(${di(t,e)})`:R.easing:Oe(t)?hi(t):t,hi=([t,e,r,i])=>`cubic-bezier(${t}, ${e}, ${r}, ${i})`;function Jt(t,e){for(let r=0;r<t.length;r++)t[r]===null&&(t[r]=r?t[r-1]:e());return t}var He=t=>Array.isArray(t)?t:[t];function Fe(t){return Ae[t]&&(t=Ae[t]),Ke(t)?Ge(t):t}var Pe={get:(t,e)=>{e=Fe(e);let r=Ie(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&r!==0){let i=ne.get(e);i&&(r=i.initialValue)}return r},set:(t,e,r)=>{e=Fe(e),Ie(e)?t.style.setProperty(e,r):t.style[e]=r}};function Ue(t,e=!0){if(!(!t||t.playState==="finished"))try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch{}}function Qt(t,e){var r;let i=e?.toDefaultUnit||z,n=t[t.length-1];if(Y(n)){let s=((r=n.match(/(-?[\d.]+)([a-z%]*)/))===null||r===void 0?void 0:r[2])||"";s&&(i=o=>o+s)}return i}function pi(){return window.__MOTION_DEV_TOOLS_RECORD}function qe(t,e,r,i={},n){let s=pi(),o=i.record!==!1&&s,c,{duration:f=R.duration,delay:u=R.delay,endDelay:m=R.endDelay,repeat:p=R.repeat,easing:h=R.easing,persist:_=!1,direction:x,offset:D,allowWebkitAcceleration:L=!1,autoplay:N=!0}=i,M=$e(t),B=Ke(e),$=oe.waapi();B&&qt(t,e);let C=Fe(e),P=Ht(M.values,C),S=ne.get(C);return Ue(P.animation,!(re(h)&&P.generator)&&i.record!==!1),()=>{let A=()=>{var w,F;return(F=(w=Pe.get(t,C))!==null&&w!==void 0?w:S?.initialValue)!==null&&F!==void 0?F:0},I=Jt(He(r),A),H=Qt(I,S);if(re(h)){let w=h.createAnimation(I,e!=="opacity",A,C,P);h=w.easing,I=w.keyframes||I,f=w.duration||f}if(Ie(C)&&(oe.cssRegisterProperty()?Xt(C):$=!1),B&&!oe.linearEasing()&&(j(h)||Z(h)&&h.some(j))&&($=!1),$){S&&(I=I.map(y=>W(y)?S.toDefaultUnit(y):y)),I.length===1&&(!oe.partialKeyframes()||o)&&I.unshift(A());let w={delay:ie.ms(u),duration:ie.ms(f),endDelay:ie.ms(m),easing:Z(h)?void 0:pt(h,f),direction:x,iterations:p+1,fill:"both"};c=t.animate({[C]:I,offset:D,easing:Z(h)?h.map(y=>pt(y,f)):void 0},w),c.finished||(c.finished=new Promise((y,a)=>{c.onfinish=y,c.oncancel=a}));let F=I[I.length-1];c.finished.then(()=>{_||(Pe.set(t,C,F),c.cancel())}).catch(Se),L||(c.playbackRate=1.000001)}else if(n&&B)I=I.map(w=>typeof w=="string"?parseFloat(w):w),I.length===1&&I.unshift(parseFloat(A())),c=new n(w=>{Pe.set(t,C,H?H(w):w)},I,Object.assign(Object.assign({},i),{duration:f,easing:h}));else{let w=I[I.length-1];Pe.set(t,C,S&&W(w)?S.toDefaultUnit(w):w)}return o&&s(t,e,I,{duration:f,delay:u,easing:h,repeat:p,offset:D},"motion-one"),P.setAnimation(c),c&&!N&&c.pause(),c}}var Ze=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function se(t,e){var r;return typeof t=="string"?e?((r=e[t])!==null&&r!==void 0||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}var mi=t=>t(),pe=(t,e,r=R.duration)=>new Proxy({animations:t.map(mi).filter(Boolean),duration:r,options:e},yi),vi=t=>t.animations[0],yi={get:(t,e)=>{let r=vi(t);switch(e){case"duration":return t.duration;case"currentTime":return ie.s(r?.[e]||0);case"playbackRate":case"playState":return r?.[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(gi)).catch(Se)),t.finished;case"stop":return()=>{t.animations.forEach(i=>
3Ue(i))};case"forEachNative":return i=>{t.animations.forEach(n=>i(n,t))};default:return typeof r?.[e]>"u"?void 0:()=>t.animations.forEach(i=>i[e]())}},set:(t,e,r)=>{switch(e){case"currentTime":r=ie.ms(r);case"playbackRate":for(let i=0;i<t.animations.length;i++)t.animations[i][e]=r;return!0}return!1}},gi=t=>t.finished;function er(t=.1,{start:e=0,from:r=0,easing:i}={}){return(n,s)=>{let o=W(r)?r:bi(r,s),c=Math.abs(o-n),f=t*c;if(i){let u=s*t;f=ve(i)(f/u)*u}return e+f}}function bi(t,e){if(t==="first")return 0;{let r=e-1;return t==="last"?r:r/2}}function Xe(t,e,r){return j(t)?t(e,r):t}function tr(t){return function(r,i,n={}){r=se(r);let s=r.length;Te(!!s,"No valid element provided."),Te(!!i,"No keyframes defined.");let o=[];for(let c=0;c<s;c++){let f=r[c];for(let u in i){let m=Ze(n,u);m.delay=Xe(m.delay,c,s);let p=qe(f,u,i[u],m,t);o.push(p)}}return pe(o,n,n.duration)}}var mt=tr(J);function Ye(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r}function vt(t,e,r,i){var n;return W(e)?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?r:(n=i.get(e))!==null&&n!==void 0?n:t}function wi(t,e,r){for(let i=0;i<t.length;i++){let n=t[i];n.at>e&&n.at<r&&(lt(t,n),i--)}}function rr(t,e,r,i,n,s){wi(t,n,s);for(let o=0;o<e.length;o++)t.push({value:e[o],at:fe(n,s,i[o]),easing:Ee(r,o)})}function ir(t,e){return t.at===e.at?t.value===null?1:-1:t.at-e.at}function nr(t,e={}){var r;let i=Ei(t,e),n=i.map(s=>qe(...s,J)).filter(Boolean);return pe(n,e,(r=i[0])===null||r===void 0?void 0:r[3].duration)}function Ei(t,e={}){var{defaultOptions:r={}}=e,i=Ye(e,["defaultOptions"]);let n=[],s=new Map,o={},c=new Map,f=0,u=0,m=0;for(let p=0;p<t.length;p++){let h=t[p];if(Y(h)){c.set(h,u);continue}else if(!Array.isArray(h)){c.set(h.name,vt(u,h.at,f,c));continue}let[_,x,D={}]=h;D.at!==void 0&&(u=vt(u,D.at,f,c));let L=0,N=se(_,o),M=N.length;for(let B=0;B<M;B++){let $=N[B],C=Si($,s);for(let P in x){let S=xi(P,C),A=He(x[P]),I=Ze(D,P),{duration:H=r.duration||R.duration,easing:w=r.easing||R.easing}=I;if(re(w)){Te(P==="opacity"||A.length>1,"spring must be provided 2 keyframes within timeline()");let v=w.createAnimation(A,P!=="opacity",()=>0,P);w=v.easing,A=v.keyframes||A,H=v.duration||H}let F=Xe(D.delay,B,M)||0,y=u+F,a=y+H,{offset:l=de(A.length)}=I;l.length===1&&l[0]===0&&(l[1]=1);let d=l.length-A.length;d>0&&me(l,d),A.length===1&&A.unshift(null),rr(S,A,w,l,y,a),L=Math.max(F+H,L),m=Math.max(a,m)}}f=u,u+=L}return s.forEach((p,h)=>{for(let _ in p){let x=p[_];x.sort(ir);let D=[],L=[],N=[];for(let M=0;M<x.length;M++){let{at:B,value:$,easing:C}=x[M];D.push($),L.push(q(0,m,B)),N.push(C||R.easing)}L[0]!==0&&(L.unshift(0),D.unshift(D[0]),N.unshift("linear")),L[L.length-1]!==1&&(L.push(1),D.push(null)),n.push([h,_,D,Object.assign(Object.assign(Object.assign({},r),{duration:m,easing:N,offset:L}),i)])}}),n}function Si(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function xi(t,e){return e[t]||(e[t]=[]),e[t]}var Oi={any:0,all:1};function or(t,e,{root:r,margin:i,amount:n="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};let s=se(t),o=new WeakMap,c=u=>{u.forEach(m=>{let p=o.get(m.target);if(m.isIntersecting!==!!p)if(m.isIntersecting){let h=e(m);j(h)?o.set(m.target,h):f.unobserve(m.target)}else p&&(p(m),o.delete(m.target))})},f=new IntersectionObserver(c,{root:r,rootMargin:i,threshold:typeof n=="number"?n:Oi[n]});return s.forEach(u=>f.observe(u)),()=>f.disconnect()}var Je=new WeakMap,ae;function Ti(t,e){if(e){let{inlineSize:r,blockSize:i}=e[0];return{width:r,height:i}}else return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function _i({target:t,contentRect:e,borderBoxSize:r}){var i;(i=Je.get(t))===null||i===void 0||i.forEach(n=>{n({target:t,contentSize:e,get size(){return Ti(t,r)}})})}function Ai(t){t.forEach(_i)}function Ii(){typeof ResizeObserver>"u"||(ae=new ResizeObserver(Ai))}function sr(t,e){ae||Ii();let r=se(t);return r.forEach(i=>
3{let n=Je.get(i);n||(n=new Set,Je.set(i,n)),n.add(e),ae?.observe(i)}),()=>{r.forEach(i=>{let n=Je.get(i);n?.delete(e),n?.size||ae?.unobserve(i)})}}var Qe=new Set,De;function Fi(){De=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};Qe.forEach(r=>r(e))},window.addEventListener("resize",De)}function ar(t){return Qe.add(t),De||Fi(),()=>{Qe.delete(t),!Qe.size&&De&&(De=void 0)}}function lr(t,e){return j(t)?ar(t):sr(t,e)}var Pi=50,cr=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),fr=()=>({time:0,x:cr(),y:cr()}),Di={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function ur(t,e,r,i){let n=r[e],{length:s,position:o}=Di[e],c=n.current,f=r.time;n.current=t[`scroll${o}`],n.scrollLength=t[`scroll${s}`]-t[`client${s}`],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=q(0,n.scrollLength,n.current);let u=i-f;n.velocity=u>Pi?0:ct(n.current-c,u)}function dr(t,e,r){ur(t,"x",e,r),ur(t,"y",e,r),e.time=r}function hr(t,e){let r={x:0,y:0},i=t;for(;i&&i!==e;)if(i instanceof HTMLElement)r.x+=i.offsetLeft,r.y+=i.offsetTop,i=i.offsetParent;else if(i instanceof SVGGraphicsElement&&"getBBox"in i){let{top:n,left:s}=i.getBBox();for(r.x+=s,r.y+=n;i&&i.tagName!=="svg";)i=i.parentNode}return r}var et={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var tt={start:0,center:.5,end:1};function yt(t,e,r=0){let i=0;if(tt[t]!==void 0&&(t=tt[t]),Y(t)){let n=parseFloat(t);t.endsWith("px")?i=n:t.endsWith("%")?t=n/100:t.endsWith("vw")?i=n/100*document.documentElement.clientWidth:t.endsWith("vh")?i=n/100*document.documentElement.clientHeight:t=n}return W(t)&&(i=e*t),r+i}var Ni=[0,0];function pr(t,e,r,i){let n=Array.isArray(t)?t:Ni,s=0,o=0;return W(t)?n=[t,t]:Y(t)&&(t=t.trim(),t.includes(" ")?n=t.split(" "):n=[t,tt[t]?t:"0"]),s=yt(n[0],r,i),o=yt(n[1],e),s-o}var Li={x:0,y:0};function mr(t,e,r){let{offset:i=et.All}=r,{target:n=t,axis:s="y"}=r,o=s==="y"?"height":"width",c=n!==t?hr(n,t):Li,f=n===t?{width:t.scrollWidth,height:t.scrollHeight}:{width:n.clientWidth,height:n.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let m=!e[s].interpolate,p=i.length;for(let h=0;h<p;h++){let _=pr(i[h],u[o],f[o],c[s]);!m&&_!==e[s].interpolatorOffsets[h]&&(m=!0),e[s].offset[h]=_}m&&(e[s].interpolate=xe(de(p),e[s].offset),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=e[s].interpolate(e[s].current)}function Ri(t,e=t,r){if(r.x.targetOffset=0,r.y.targetOffset=0,e!==t){let i=e;for(;i&&i!=t;)r.x.targetOffset+=i.offsetLeft,r.y.targetOffset+=i.offsetTop,i=i.offsetParent}r.x.targetLength=e===t?e.scrollWidth:e.clientWidth,r.y.targetLength=e===t?e.scrollHeight:e.clientHeight,r.x.containerLength=t.clientWidth,r.y.containerLength=t.clientHeight}function vr(t,e,r,i={}){let n=i.axis||"y";return{measure:()=>Ri(t,i.target,r),update:s=>{dr(t,r,s),(i.offset||i.target)&&mr(t,r,i)},notify:j(e)?()=>e(r):Ci(e,r[n])}}function Ci(t,e){return t.pause(),t.forEachNative((r,{easing:i})=>{var n,s;if(r.updateDuration)i||(r.easing=z),r.updateDuration(1);else{let o={duration:1e3};i||(o.easing="linear"),(s=(n=r.effect)===null||n===void 0?void 0:n.updateTiming)===null||s===void 0||s.call(n,o)}}),()=>{t.currentTime=e.progress}}var Ne=new WeakMap,yr=new WeakMap,gt=new WeakMap,gr=t=>t===document.documentElement?window:t;function br(t,e={}){var{container:r=document.documentElement}=e,i=Ye(e,["container"]);let n=gt.get(r);n||(n=new Set,gt.set(r,n));let s=fr(),o=vr(r,t,s,i);if(n.add(o),!Ne.has(r)){let u=()=>{let p=performance.now();for(let h of n)h.measure();for(let h of n)h.update(p);for(let h of n)h.notify()};Ne.set(r,u);let m=gr(r);window.addEventListener("resize",u,{passive:!0}),r!==document.documentElement&&yr.set(r,lr(r,u)),m.addEventListener("scroll",u,{passive:!0})}let c=Ne.get(r),f=requestAnimationFrame(c);return()=>{var u;typeof t!="function"&&t.stop(),cancelAnimationFrame(f);let m=gt.get(r);if(!m||(m.delete(o),m.size))return;let p=Ne.get(r);Ne.delete(r),p&&(gr(r).removeEventListener("scroll",p),(u=yr.get(r))===null||u===void 0||u(),window.removeEventListener("resize",p))}}function ki(t,e={}){return pe([()=>{let r=new J(t,[0,1],e);return r.finished.catch(()=>{}),r}],e,e.duration)}function wr(t,e,r){return(j(t)?ki:mt)(t,e,r)}function Q(t){this.listenerMap=[{},{}],t&&this.root(t),this.handle=Q.prototype.handle.bind(this),this._removedListeners=[]}Q.prototype.root=function(t){let e=this.listenerMap,r;if(this.rootElement){for(r in e[1])e[1].hasOwnProperty(r)&&this.rootElement.removeEventListener(r,this.handle,!0);for(r in e[0])e[0].hasOwnProperty(r)&&this.rootElement.removeEventListener(r,this.handle,!1)}if(!t||!t.addEventListener)return this.rootElement&&delete this.rootElement,this;this.rootElement=t;for(r in e[1])e[1].hasOwnProperty(r)&&this.rootElement.addEventListener(r,this.handle,!0);for(r in e[0])e[0].hasOwnProperty(r)&&this.rootElement.addEventListener(r,this.handle,!1);return this};Q.prototype.captureForType=function(t){return["blur","error","focus","load","resize","scroll"].indexOf(t)!==-1};Q.prototype.on=function(t,e,r,i){let n,s,o,c;if(!t)throw new TypeError("Invalid event type: "+t);if(typeof e=="function"&&(i=r,r=e,e=null),i===void 0&&(i=this.captureForType(t)),typeof r!="function")throw new TypeError("Handler must be a type of Function");return n=this.rootElement,s=this.listenerMap[i?1:0],s[t]||(n&&n.addEventListener(t,this.handle,i),s[t]=[]),e?/^[a-z]+$/i.test(e)?(c=e,o=ji):/^#[a-z0-9\-_]+$/i.test(e)?(c=e.slice(1),o=zi):(c=e,o=Element.prototype.matches):(c=null,o=Mi.bind(this)),s[t].push({selector:e,handler:r,matcher:o,matcherParam:c}),this};Q.prototype.off=function(t,e,r,i){let n,s,o,c,f;if(typeof e=="function"&&(i=r,r=e,e=null),i===void 0)return this.off(t,e,r,!0),this.off(t,e,r,!1),this;if(o=this.listenerMap[i?1:0],!t){for(f in o)o.hasOwnProperty(f)&&this.off(f,e,r);return this}if(c=o[t],!c||!c.length)return this;for(n=c.length-1;n>=0;n--)s=c[n],(!e||e===s.selector)&&(!r||r===s.handler)&&(this._removedListeners.push(s),c.splice(n,1));return c.length||(delete o[t],this.rootElement&&this.rootElement.removeEventListener(t,this.handle,i)),this};Q.prototype.handle=function(t){let e,r,i=t.type,n,s,o,c,f=[],u,m="ftLabsDelegateIgnore";if(t[m]===!0)return;switch(u=t.target,u.nodeType===3&&(u=u.parentNode),u.correspondingUseElement&&(u=u.correspondingUseElement),n=this.rootElement,s=t.eventPhase||(t.target!==t.currentTarget?3:2),s){case 1:f=this.listenerMap[1][i];break;case 2:this.listenerMap[0]&&this.listenerMap[0][i]&&(f=f.concat(this.listenerMap[0][i])),this.listenerMap[1]&&this.listenerMap[1][i]&&(f=f.concat(this.listenerMap[1][i]));break;case 3:f=this.listenerMap[0][i];break}let p=[];for(r=f.length;u&&r;){for(e=0;e<r&&(o=f[e],!!o);e++)u.tagName&&["button","input","select","textarea"].indexOf(u.tagName.toLowerCase())>-1&&u.hasAttribute("disabled")?p=[]:o.matcher.call(u,o.matcherParam,u)&&p.push([t,u,o]);if(u===n||(r=f.length,u=u.parentElement||u.parentNode,u instanceof HTMLDocument))break}let h;for(e=0;e<p.length;e++)if(!(this._removedListeners.indexOf(p[e][2])>-1)&&(c=this.fire.apply(this,p[e]),c===!1)){p[e][0][m]=!0,p[e][0].preventDefault(),h=!1;break}return h};Q.prototype.fire=function(t,e,r){return r.handler.call(e,t,e)};function ji(t,e){return t.toLowerCase()===e.tagName.toLowerCase()}function Mi(t,e){return this.rootElement===window?e===document||e===document.documentElement||e===window:this.rootElement===e}function zi(t,e){return t===e.id}Q.prototype.destroy=function(){this.off(),this.root()};var Bi=Q;function Le(t,e,r){let i=document.createElement(e);return t&&(i.className=t),r&&r.appendChild(i),i}function Wi(t,e,r){let i=`translate3d(${t}px,${e||0}px,0)`;return r!==void 0&&(i+=` scale3d(${r},${r},1)`),i}function bt(t,e,r){t.style.width=typeof e=="number"?`${e}px`:e,t.style.height=typeof r=="number"?`${r}px`:r}
3var U={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function $i(t){return"button"in t&&t.button===1||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function Re(t,e,r=document){let i=[];if(t instanceof Element)i=[t];else if(t instanceof NodeList||Array.isArray(t))i=Array.from(t);else{let n=typeof t=="string"?t:e;n&&(i=Array.from(r.querySelectorAll(n)))}return i}function Vi(t){return typeof t=="function"&&t.prototype&&t.prototype.goTo}function Er(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}var wt=class{constructor(e,r){this.type=e,this.defaultPrevented=!1,r&&Object.assign(this,r)}preventDefault(){this.defaultPrevented=!0}},Et=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,r,i=100){var n,s,o;this._filters[e]||(this._filters[e]=[]),(n=this._filters[e])===null||n===void 0||n.push({fn:r,priority:i}),(s=this._filters[e])===null||s===void 0||s.sort((c,f)=>c.priority-f.priority),(o=this.pswp)===null||o===void 0||o.addFilter(e,r,i)}removeFilter(e,r){this._filters[e]&&(this._filters[e]=this._filters[e].filter(i=>i.fn!==r)),this.pswp&&this.pswp.removeFilter(e,r)}applyFilters(e,...r){var i;return(i=this._filters[e])===null||i===void 0||i.forEach(n=>{r[0]=n.fn.apply(this,r)}),r[0]}on(e,r){var i,n;this._listeners[e]||(this._listeners[e]=[]),(i=this._listeners[e])===null||i===void 0||i.push(r),(n=this.pswp)===null||n===void 0||n.on(e,r)}off(e,r){var i;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(n=>r!==n)),(i=this.pswp)===null||i===void 0||i.off(e,r)}dispatch(e,r){var i;if(this.pswp)return this.pswp.dispatch(e,r);let n=new wt(e,r);return(i=this._listeners[e])===null||i===void 0||i.forEach(s=>{s.call(this,n)}),n}},St=class{constructor(e,r){if(this.element=Le("pswp__img pswp__img--placeholder",e?"img":"div",r),e){let i=this.element;i.decoding="async",i.alt="",i.src=e,i.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,r){this.element&&(this.element.tagName==="IMG"?(bt(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=Wi(0,0,e/250)):bt(this.element,e,r))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}},xt=class{constructor(e,r,i){this.instance=r,this.data=e,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=U.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,r){if(this.slide&&this.usePlaceholder())if(this.placeholder){let i=this.placeholder.element;i&&!i.parentElement&&this.slide.container.prepend(i)}else{let i=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new St(i,this.slide.container)}this.element&&!r||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=Le("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=Le("pswp__content","div"),this.element.innerHTML=this.data.html||""),r&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var r,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;let n=this.element;this.updateSrcsetSizes(),this.data.srcset&&(n.srcset=this.data.srcset),n.src=(r=this.data.src)!==null&&r!==void 0?r:"",n.alt=(i=this.data.alt)!==null&&i!==void 0?i:"",this.state=U.LOADING,n.complete?this.onLoaded():(n.onload=()=>{this.onLoaded()},n.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=U.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===U.LOADED||this.state===U.ERROR)&&this.removePlaceholder())}onError(){this.state=U.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,
3content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===U.LOADING,this)}isError(){return this.state===U.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(e,r){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,r),!this.instance.dispatch("contentResize",{content:this,width:e,height:r}).defaultPrevented&&(bt(this.element,e,r),this.isImageContent()&&!this.isError()))){let i=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=r,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:r,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==U.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;let e=this.element,r=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||r>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=r+"px",e.dataset.largestUsedSize=String(r))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,r;let i=Le("pswp__error-msg","div");i.innerText=(e=(r=this.instance.options)===null||r===void 0?void 0:r.errorMsg)!==null&&e!==void 0?e:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=Le("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===U.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;let e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||Er())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!Er()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===U.LOADED||this.state===U.ERROR)&&this.removePlaceholder()))}};function Gi(t,e){if(t.getViewportSizeFn){let r=t.getViewportSizeFn(t,e);if(r)return r}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function rt(t,e,r,i,n){let s=0;if(e.paddingFn)s=e.paddingFn(r,i,n)[t];else if(e.padding)s=e.padding[t];else{let o="padding"+t[0].toUpperCase()+t.slice(1);e[o]&&(s=e[o])}return Number(s)||0}function Ki(t,e,r,i){return{x:e.x-rt("left",t,e,r,i)-rt("right",t,e,r,i),y:e.y-rt("top",t,e,r,i)-rt("bottom",t,e,r,i)}}var Sr=4e3,Ot=class{constructor(e,r,i,n){this.pswp=n,this.options=e,this.itemData=r,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,r,i){let n={x:e,y:r};this.elementSize=n,this.panAreaSize=i;let s=i.x/n.x,o=i.y/n.y;this.fit=Math.min(1,s<o?s:o),this.fill=Math.min(1,s>o?s:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){let r=e+"ZoomLevel",i=this.options[r];if(i)return typeof i=="function"?i(this):i==="fill"?this.fill:i==="fit"?this.fit:Number(i)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>Sr&&(e=Sr/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}};function xr(t,e,r){let i=e.createContentFromData(t,r),n,{options:s}=e;if(s){n=new Ot(s,t,-1);let o;
3e.pswp?o=e.pswp.viewportSize:o=Gi(s,e);let c=Ki(s,o,t,r);n.update(i.width,i.height,c)}return i.lazyLoad(),n&&i.setDisplayedSize(Math.ceil(i.width*n.initial),Math.ceil(i.height*n.initial)),i}function Hi(t,e){let r=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:r}).defaultPrevented)return xr(r,e,t)}var Tt=class extends Et{getNumItems(){var e;let r=0,i=(e=this.options)===null||e===void 0?void 0:e.dataSource;i&&"length"in i?r=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(r=i.items.length));let n=this.dispatch("numItems",{dataSource:i,numItems:r});return this.applyFilters("numItems",n.numItems,i)}createContentFromData(e,r){return new xt(e,this,r)}getItemData(e){var r;let i=(r=this.options)===null||r===void 0?void 0:r.dataSource,n={};Array.isArray(i)?n=i[e]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),n=i.items[e]);let s=n;s instanceof Element&&(s=this._domElementToItemData(s));let o=this.dispatch("itemData",{itemData:s||{},index:e});return this.applyFilters("itemData",o.itemData,e)}_getGalleryDOMElements(e){var r,i;return(r=this.options)!==null&&r!==void 0&&r.children||(i=this.options)!==null&&i!==void 0&&i.childSelector?Re(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){let r={element:e},i=e.tagName==="A"?e:e.querySelector("a");if(i){r.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(r.srcset=i.dataset.pswpSrcset),r.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,r.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,r.w=r.width,r.h=r.height,i.dataset.pswpType&&(r.type=i.dataset.pswpType);let s=e.querySelector("img");if(s){var n;r.msrc=s.currentSrc||s.src,r.alt=(n=s.getAttribute("alt"))!==null&&n!==void 0?n:""}(i.dataset.pswpCropped||i.dataset.cropped)&&(r.thumbCropped=!0)}return this.applyFilters("domItemData",r,e,i)}lazyLoadData(e,r){return xr(e,this,r)}},_t=class extends Tt{constructor(e){super(),this.options=e||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){Re(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(e){if($i(e)||window.pswp)return;let r={x:e.clientX,y:e.clientY};!r.x&&!r.y&&(r=null);let i=this.getClickedIndex(e);i=this.applyFilters("clickedIndex",i,e,this);let n={gallery:e.currentTarget};i>=0&&(e.preventDefault(),this.loadAndOpen(i,n,r))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);let r=e.target,n=Re(this.options.children,this.options.childSelector,e.currentTarget).findIndex(s=>s===r||s.contains(r));return n!==-1?n:this.options.children||this.options.childSelector?-1:0}loadAndOpen(e,r,i){if(window.pswp||!this.options)return!1;if(!r&&this.options.gallery&&this.options.children){let n=Re(this.options.gallery);n[0]&&(r={gallery:n[0]})}return this.options.index=e,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(e,r),!0}preload(e,r){let{options:i}=this;r&&(i.dataSource=r);let n=[],s=typeof i.pswpModule;if(Vi(i.pswpModule))n.push(Promise.resolve(i.pswpModule));else{if(s==="string")throw new Error("pswpModule as string is no longer supported");if(s==="function")n.push(i.pswpModule());else throw new Error("pswpModule is not valid")}typeof i.openPromise=="function"&&n.push(i.openPromise()),i.preloadFirstSlide!==!1&&e>=0&&(this._preloadedContent=Hi(e,this));let o=++this._uid;Promise.all(n).then(c=>{if(this.shouldOpen){let f=c[0];this._openPhotoswipe(f,o)}})}_openPhotoswipe(e,r){if(r!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;let i=typeof e=="object"?new e.default(this.options):new e(this.options);this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach(n=>{var s;(s=this._listeners[n])===null||s===void 0||s.forEach(o=>{i.on(n,o)})}),Object.keys(this._filters).forEach(n=>{var s;(s=this._filters[n])===null||s===void 0||s.forEach(o=>{i.addFilter(n,o.fn,o.priority)})}),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),i.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),i.init()}destroy(){var e;(e=this.pswp)===null||e===void 0||e.destroy(),this.shouldOpen=!1,this._listeners={},Re(this.options.gallery,this.options.gallerySelector).forEach(r=>{r.removeEventListener("click",this.onThumbnailsClick,!1)})}};(function(){let t=!1;if(document.createElement("i").addEventListener("click",()=>{},{get signal(){t=!0}}),t||!window.AbortController)return;let e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(r,i,n){if(n&&n.signal){if(n.signal.aborted)return;n.signal.addEventListener("abort",()=>this.removeEventListener(r,i,{...n}))}return e.call(this,r,i,n)}})();export{Bi as Delegate,Vt as FocusTrap,_t as PhotoSwipeLightbox,et as ScrollOffset,wr as animate,or as inView,br as scroll,er as stagger,nr as timeline}; 4/*! Bundled license information: 5 6tabbable/dist/index.esm.js: 7 (*! 8 * tabbable 6.4.0 9 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 10 *) 11 12focus-trap/dist/focus-trap.esm.js: 13 (*! 14 * focus-trap 8.0.0 15 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 16 *) 17 (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *) 18 19photoswipe/dist/photoswipe-lightbox.esm.js: 20 (*! 21 * PhotoSwipe Lightbox 5.4.4 - https://photoswipe.com 22 * (c) 2024 Dmytro Semenov 23 *) 24*/
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.