vendor: 19,338 bytes, lines 1-3
1var Jn=Object.defineProperty;var Qn=(t,e)=>{for(var r in e)Jn(t,r,{get:e[r],enumerable:!0})};var Or={};Qn(Or,{createFocusTrap:()=>Ii});var dr=["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] *)"],qe=dr.join(","),hr=typeof Element>"u",pe=hr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ue=!hr&&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},Ze=function(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),s=i===""||i==="true",o=s||r&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Ze(e.parentNode));return o},ei=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},gr=function(e,r,n){if(Ze(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(qe));return r&&pe.call(e,qe)&&i.unshift(e),i=i.filter(n),i},Xe=function(e,r,n){for(var i=[],s=Array.from(e);s.length;){var o=s.shift();if(!Ze(o,!1))if(o.tagName==="SLOT"){var a=o.assignedElements(),f=a.length?a:o.children,l=Xe(f,!0,n);n.flatten?i.push.apply(i,l):i.push({scopeParent:o,candidates:l})}else{var m=pe.call(o,qe);m&&n.filter(o)&&(r||!e.includes(o))&&i.push(o);var p=o.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(o),h=!Ze(p,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(o));if(p&&h){var v=Xe(p===!0?o.children:p.children,!0,n);n.flatten?i.push.apply(i,v):i.push({scopeParent:o,candidates:v})}else s.unshift.apply(s,o.children)}}return i},vr=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},le=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||ei(e))&&!vr(e)?0:e.tabIndex},ti=function(e,r){var n=le(e);return n<0&&r&&!vr(e)?0:n},ri=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},yr=function(e){return e.tagName==="INPUT"},ni=function(e){return yr(e)&&e.type==="hidden"},ii=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},oi=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},si=function(e){if(!e.name)return!0;var r=e.form||Ue(e),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(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=oi(i,e.form);return!s||s===e},ai=function(e){return yr(e)&&e.type==="radio"},li=function(e){return ai(e)&&!si(e)},ci=function(e){var r,n=e&&Ue(e),i=(r=n)===null||r===void 0?void 0:r.host,s=!1;if(n&&n!==e){var o,a,f;for(s=!!((o=i)!==null&&o!==void 0&&(a=o.ownerDocument)!==null&&a!==void 0&&a.contains(i)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!s&&i;){var l,m,p;n=Ue(i),i=(l=n)===null||l===void 0?void 0:l.host,s=!!((m=i)!==null&&m!==void 0&&(p=m.ownerDocument)!==null&&p!==void 0&&p.contains(i))}}return s},mr=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},fi=function(e,r){var n=r.displayCheck,i=r.getShadowRoot;if(n==="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=pe.call(e,"details>summary:first-of-type"),a=o?e.parentElement:e;if(pe.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof i=="function"){for(var f=e;e;){var l=e.parentElement,m=Ue(e);if(l&&!l.shadowRoot&&i(l)===!0)return mr(e);e.assignedSlot?e=e.assignedSlot:!l&&m!==e.ownerDocument?e=m.host:e=l}e=f}if(ci(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return mr(e);return!1},ui=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return pe.call(r,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}r=r.parentElement}return!1},Ye=function(e,r){return!(r.disabled||ni(r)||fi(r,e)||ii(r)||ui(r))},Dt=function(e,r){return!(li(r)||le(r)<0||!Ye(e,r))},pi=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},br=function(e){var r=[],n=[];return e.forEach(function(i,s){var o=!!i.scopeParent,a=o?i.scopeParent:i,f=ti(a,o),l=o?br(i.candidates):a;f===0?o?r.push.apply(r,l):r.push(a):n.push({documentOrder:s,tabIndex:f,item:i,isScope:o,content:l})}),n.sort(ri).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),i},[]).concat(r)},xr=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Xe([e],r.includeContainer,{filter:Dt.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:pi}):n=gr(e,r.includeContainer,Dt.bind(null,r)),br(n)},wr=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Xe([e],r.includeContainer,{filter:Ye.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=gr(e,r.includeContainer,Ye.bind(null,r)),n},me=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return pe.call(e,qe)===!1?!1:Dt(r,e)},mi=dr.concat("iframe:not([inert]):not([inert] *)").join(","),Je=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return pe.call(e,mi)===!1?!1:Ye(r,e)};function Mt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function di(t){if(Array.isArray(t))return Mt(t)}function Sr(t,e,r,n,i,s,o){try{var a=t[s](o),f=a.value}catch(l){return void r(l)}a.done?e(f):Promise.resolve(f).then(n,i)}function Er(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(f){Sr(s,n,i,o,a,"next",f)}function a(f){Sr(s,n,i,o,a,"throw",f)}o(void 0)})}}function Tr(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Mr(t))||e){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(f){throw f},f:i}}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,a=!1;return{s:function(){r=r.call(t)},n:function(){var f=r.next();return o=f.done,f},e:function(f){a=!0,s=f},f:function(){try{o||r.return==null||r.return()}finally{if(a)throw s}}}}function hi(t,e,r){return(e=xi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gi(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function vi(){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 Ar(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ir(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ar(Object(r),!0).forEach(function(n){hi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ar(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function De(){var t,e,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(v,E,w,D){var T=E&&E.prototype instanceof a?E:a,z=Object.create(T.prototype);return $(z,"_invoke",(function(V,N,L){var k,M,R,C=0,S=L||[],I=!1,P={p:0,n:0,v:t,a:x,f:x.bind(t,4),d:function(c,u){return k=c,M=0,R=t,P.n=u,o}};function x(c,u){for(M=c,R=u,e=0;!I&&C&&!d&&e<S.length;e++){var d,g=S[e],y=P.p,A=g[2];c>3?(d=A===u)&&(R=g[(M=g[4])?5:(M=3,3)],g[4]=g[5]=t):g[0]<=y&&((d=c<2&&y<g[1])?(M=0,P.v=u,P.n=g[1]):y<A&&(d=c<3||g[0]>u||u>A)&&(g[4]=c,g[5]=u,P.n=A,M=0))}if(d||c>1)return o;throw I=!0,u}return function(c,u,d){if(C>1)throw TypeError("Generator is already running");for(I&&u===1&&x(u,d),M=u,R=d;(e=M<2?t:R)||!I;){k||(M?M<3?(M>1&&(P.n=-1),x(M,R)):P.n=R:P.v=R);try{if(C=2,k){if(M||(c="next"),e=k[c]){if(!(e=e.call(k,R)))throw TypeError("iterator result is not an object");if(!e.done)return e;R=e.value,M<2&&(M=0)}else M===1&&(e=k.return)&&e.call(k),M<2&&(R=TypeError("The iterator does not provide a '"+c+"' method"),M=1);k=t}else if((e=(I=P.n<0)?R:V.call(N,P))!==o)break}catch(g){k=t,M=1,R=g}finally{C=1}}return{value:e,done:I}}})(v,w,D),!0),z}var o={};function a(){}function f(){}function l(){}e=Object.getPrototypeOf;var m=[][n]?e(e([][n]())):($(e={},n,function(){return this}),e),p=l.prototype=a.prototype=Object.create(m);function h(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,l):(v.__proto__=l,$(v,i,"GeneratorFunction")),v.prototype=Object.create(p),v}return f.prototype=l,$(p,"constructor",l),$(l,"constructor",f),f.displayName="GeneratorFunction",$(l,i,"GeneratorFunction"),$(p),$(p,i,"Generator"),$(p,n,function(){return this}),$(p,"toString",function(){return"[object Generator]"}),(De=function(){return{w:s,m:h}})()}function $(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}$=function(s,o,a,f){function l(m,p){$(s,m,function(h){return this._invoke(m,p,h)})}o?i?i(s,o,{value:a,enumerable:!f,configurable:!f,writable:!f}):s[o]=a:(l("next",0),l("throw",1),l("return",2))},$(t,e,r,n)}function yi(t){return di(t)||gi(t)||Mr(t)||vi()}function bi(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xi(t){var e=bi(t,"string");return typeof e=="symbol"?e:e+""}function Mr(t,e){if(t){if(typeof t=="string")return Mt(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)?Mt(t,e):void 0}}var ne={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,r){var n=ne.getActiveTrap(e);r!==n&&ne.pauseTrap(e);var i=e.indexOf(r);i===-1||e.splice(i,1),e.push(r)},deactivateTrap:function(e,r){var n=e.indexOf(r);n!==-1&&e.splice(n,1),ne.unpauseTrap(e)},pauseTrap:function(e){var r=ne.getActiveTrap(e);r?._setPausedState(!0)},unpauseTrap:function(e){var r=ne.getActiveTrap(e);r&&!r._isManuallyPaused()&&r._setPausedState(!1)}},wi=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Si=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Me=function(e){return e?.key==="Tab"||e?.keyCode===9},Ei=function(e){return Me(e)&&!e.shiftKey},Ti=function(e){return Me(e)&&e.shiftKey},Dr=function(e){return setTimeout(e,0)},Ie=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,n):e},Qe=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Ai=[],Ii=function(e,r){var n=r?.document||document,i=r?.trapStack||Ai,s=Ir({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:Ei,isKeyBackward:Ti},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},a,f=function(c,u,d){return c&&c[u]!==void 0?c[u]:s[d||u]},l=function(c,u){var d=typeof u?.composedPath=="function"?u.composedPath():void 0;return o.containerGroups.findIndex(function(g){var y=g.container,A=g.tabbableNodes;return y.contains(c)||d?.includes(y)||A.find(function(b){return b===c})})},m=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=u.hasFallback,g=d===void 0?!1:d,y=u.params,A=y===void 0?[]:y,b=s[c];if(typeof b=="function"&&(b=b.apply(void 0,yi(A))),b===!0&&(b=void 0),!b){if(b===void 0||b===!1)return b;throw new Error("`".concat(c,"` was specified but was not a node, or did not return a node"))}var O=b;if(typeof b=="string"){try{O=n.querySelector(b)}catch(F){throw new Error("`".concat(c,'` appears to be an invalid selector; error="').concat(F.message,'"'))}if(!O&&!g)throw new Error("`".concat(c,"` as selector refers to no known node"))}return O},p=function(){var c=m("initialFocus",{hasFallback:!0});if(c===!1)return!1;if(c===void 0||c&&!Je(c,s.tabbableOptions))if(l(n.activeElement)>=0)c=n.activeElement;else{var u=o.tabbableGroups[0],d=u&&u.firstTabbableNode;c=d||m("fallbackFocus")}else c===null&&(c=m("fallbackFocus"));if(!c)throw new Error("Your focus-trap needs to have at least one focusable element");return c},h=function(){if(o.containerGroups=o.containers.map(function(c){var u=xr(c,s.tabbableOptions),d=wr(c,s.tabbableOptions),g=u.length>0?u[0]:void 0,y=u.length>0?u[u.length-1]:void 0,A=d.find(function(F){return me(F)}),b=d.slice().reverse().find(function(F){return me(F)}),O=!!u.find(function(F){return le(F)>0});return{container:c,tabbableNodes:u,focusableNodes:d,posTabIndexesFound:O,firstTabbableNode:g,lastTabbableNode:y,firstDomTabbableNode:A,lastDomTabbableNode:b,nextTabbableNode:function(B){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,W=u.indexOf(B);return W<0?G?d.slice(d.indexOf(B)+1).find(function(U){return me(U)}):d.slice(0,d.indexOf(B)).reverse().find(function(U){return me(U)}):u[W+(G?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(c){return c.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(c){return c.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.")},v=function(c){var u=c.activeElement;if(u)return u.shadowRoot&&u.shadowRoot.activeElement!==null?v(u.shadowRoot):u},E=function(c){if(c!==!1&&c!==v(document)){if(!c||!c.focus){E(p());return}c.focus({preventScroll:!!s.preventScroll}),o.mostRecentlyFocusedNode=c,wi(c)&&c.select()}},w=function(c){var u=m("setReturnFocus",{params:[c]});return u||(u===!1?!1:c)},D=function(c){var u=c.target,d=c.event,g=c.isBackward,y=g===void 0?!1:g;u=u||Qe(d),h();var A=null;if(o.tabbableGroups.length>0){var b=l(u,d),O=b>=0?o.containerGroups[b]:void 0;if(b<0)y?A=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:A=o.tabbableGroups[0].firstTabbableNode;else if(y){var F=o.tabbableGroups.findIndex(function(te){var re=te.firstTabbableNode;return u===re});if(F<0&&(O.container===u||Je(u,s.tabbableOptions)&&!me(u,s.tabbableOptions)&&!O.nextTabbableNode(u,!1))&&(F=b),F>=0){var B=F===0?o.tabbableGroups.length-1:F-1,G=o.tabbableGroups[B];A=le(u)>=0?G.lastTabbableNode:G.lastDomTabbableNode}else Me(d)||(A=O.nextTabbableNode(u,!1))}else{var W=o.tabbableGroups.findIndex(function(te){var re=te.lastTabbableNode;return u===re});if(W<0&&(O.container===u||Je(u,s.tabbableOptions)&&!me(u,s.tabbableOptions)&&!O.nextTabbableNode(u))&&(W=b),W>=0){var U=W===o.tabbableGroups.length-1?0:W+1,H=o.tabbableGroups[U];A=le(u)>=0?H.firstTabbableNode:H.firstDomTabbableNode}else Me(d)||(A=O.nextTabbableNode(u))}}else A=m("fallbackFocus");return A},T=function(c){var u=Qe(c);if(!(l(u,c)>=0)){if(Ie(s.clickOutsideDeactivates,c)){a.deactivate({returnFocus:s.returnFocusOnDeactivate});return}Ie(s.allowOutsideClick,c)||c.preventDefault()}},z=function(c){var u=Qe(c),d=l(u,c)>=0;if(d||u instanceof Document)d&&(o.mostRecentlyFocusedNode=u);else{c.stopImmediatePropagation();var g,y=!0;if(o.mostRecentlyFocusedNode)if(le(o.mostRecentlyFocusedNode)>0){var A=l(o.mostRecentlyFocusedNode),b=o.containerGroups[A].tabbableNodes;if(b.length>0){var O=b.findIndex(function(F){return F===o.mostRecentlyFocusedNode});O>=0&&(s.isKeyForward(o.recentNavEvent)?O+1<b.length&&(g=b[O+1],y=!1):O-1>=0&&(g=b[O-1],y=!1))}}else o.containerGroups.some(function(F){return F.tabbableNodes.some(function(B){return le(B)>0})})||(y=!1);else y=!1;y&&(g=D({target:o.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(o.recentNavEvent)})),E(g||o.mostRecentlyFocusedNode||p())}o.recentNavEvent=void 0},V=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=c;var d=D({event:c,isBackward:u});d&&(Me(c)&&c.preventDefault(),E(d))},N=function(c){(s.isKeyForward(c)||s.isKeyBackward(c))&&V(c,s.isKeyBackward(c))},L=function(c){Si(c)&&Ie(s.escapeDeactivates,c)!==!1&&(c.preventDefault(),a.deactivate())},k=function(c){var u=Qe(c);l(u,c)>=0||Ie(s.clickOutsideDeactivates,c)||Ie(s.allowOutsideClick,c)||(c.preventDefault(),c.stopImmediatePropagation())},M=function(){if(!o.active)return Promise.resolve();ne.activateTrap(i,a);var c;return s.delayInitialFocus?c=new Promise(function(u){o.delayInitialFocusTimer=Dr(function(){E(p()),u()})}):(c=Promise.resolve(),E(p())),n.addEventListener("focusin",z,!0),n.addEventListener("mousedown",T,{capture:!0,passive:!1}),n.addEventListener("touchstart",T,{capture:!0,passive:!1}),n.addEventListener("click",k,{capture:!0,passive:!1}),n.addEventListener("keydown",N,{capture:!0,passive:!1}),n.addEventListener("keydown",L),c},R=function(c){o.active&&!o.paused&&a._setSubtreeIsolation(!1),o.adjacentElements.clear(),o.alreadySilent.clear();var u=new Set,d=new Set,g=Tr(c),y;try{for(g.s();!(y=g.n()).done;){var A=y.value;u.add(A);for(var b=typeof ShadowRoot<"u"&&A.getRootNode()instanceof ShadowRoot,O=A;O;){u.add(O);var F=O.parentElement,B=[];F?B=F.children:!F&&b&&(B=O.getRootNode().children,F=O.getRootNode().host,b=typeof ShadowRoot<"u"&&F.getRootNode()instanceof ShadowRoot);var G=Tr(B),W;try{for(G.s();!(W=G.n()).done;){var U=W.value;d.add(U)}}catch(H){G.e(H)}finally{G.f()}O=F}}}catch(H){g.e(H)}finally{g.f()}u.forEach(function(H){d.delete(H)}),o.adjacentElements=d},C=function(){if(o.active)return n.removeEventListener("focusin",z,!0),n.removeEventListener("mousedown",T,!0),n.removeEventListener("touchstart",T,!0),n.removeEventListener("click",k,!0),n.removeEventListener("keydown",N,!0),n.removeEventListener("keydown",L),a},S=function(c){var u=c.some(function(d){var g=Array.from(d.removedNodes
3);return g.some(function(y){return y===o.mostRecentlyFocusedNode})});u&&E(p())},I=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(S):void 0,P=function(){I&&(I.disconnect(),o.active&&!o.paused&&o.containers.map(function(c){I.observe(c,{subtree:!0,childList:!0})}))};return a={get active(){return o.active},get paused(){return o.paused},activate:function(c){if(o.active)return this;var u=f(c,"onActivate"),d=f(c,"onPostActivate"),g=f(c,"checkCanFocusTrap"),y=ne.getActiveTrap(i),A=!1;if(y&&!y.paused){var b;(b=y._setSubtreeIsolation)===null||b===void 0||b.call(y,!1),A=!0}try{g||h(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=v(n),u?.();var O=(function(){var B=Er(De().m(function G(){return De().w(function(W){for(;;)switch(W.n){case 0:return g&&h(),W.n=1,M();case 1:a._setSubtreeIsolation(!0),P(),d?.();case 2:return W.a(2)}},G)}));return function(){return B.apply(this,arguments)}})();if(g)return g(o.containers.concat()).then(O,O),this;O()}catch(B){if(y===ne.getActiveTrap(i)&&A){var F;(F=y._setSubtreeIsolation)===null||F===void 0||F.call(y,!0)}throw B}return this},deactivate:function(c){if(!o.active)return this;var u=Ir({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},c);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,o.paused||a._setSubtreeIsolation(!1),o.alreadySilent.clear(),C(),o.active=!1,o.paused=!1,P(),ne.deactivateTrap(i,a);var d=f(u,"onDeactivate"),g=f(u,"onPostDeactivate"),y=f(u,"checkCanReturnFocus"),A=f(u,"returnFocus","returnFocusOnDeactivate");d?.();var b=function(){Dr(function(){A&&E(w(o.nodeFocusedBeforeActivation)),g?.()})};return A&&y?(y(w(o.nodeFocusedBeforeActivation)).then(b,b),this):(b(),this)},pause:function(c){return o.active?(o.manuallyPaused=!0,this._setPausedState(!0,c)):this},unpause:function(c){return o.active?(o.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,c)):this},updateContainerElements:function(c){var u=[].concat(c).filter(Boolean);return o.containers=u.map(function(d){return typeof d=="string"?n.querySelector(d):d}),s.isolateSubtrees&&R(o.containers),o.active&&(h(),o.paused||a._setSubtreeIsolation(!0)),P(),this}},Object.defineProperties(a,{_isManuallyPaused:{value:function(){return o.manuallyPaused}},_setPausedState:{value:function(c,u){if(o.paused===c)return this;if(o.paused=c,c){var d=f(u,"onPause"),g=f(u,"onPostPause");d?.(),C(),a._setSubtreeIsolation(!1),P(),g?.()}else{var y=f(u,"onUnpause"),A=f(u,"onPostUnpause");y?.();var b=(function(){var O=Er(De().m(function F(){return De().w(function(B){for(;;)switch(B.n){case 0:return h(),B.n=1,M();case 1:a._setSubtreeIsolation(!0),P(),A?.();case 2:return B.a(2)}},F)}));return function(){return O.apply(this,arguments)}})();b()}return this}},_setSubtreeIsolation:{value:function(c){s.isolateSubtrees&&o.adjacentElements.forEach(function(u){var d;c?s.isolateSubtrees==="aria-hidden"?((u.ariaHidden==="true"||((d=u.getAttribute("aria-hidden"))===null||d===void 0?void 0:d.toLowerCase())==="true")&&o.alreadySilent.add(u),u.setAttribute("aria-hidden","true")):((u.inert||u.hasAttribute("inert"))&&o.alreadySilent.add(u),u.setAttribute("inert",!0)):o.alreadySilent.has(u)||(s.isolateSubtrees==="aria-hidden"?u.removeAttribute("aria-hidden"):u.removeAttribute("inert"))})}}}),a.updateContainerElements(e),a};function Ot(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var q=(t,e,r)=>r>e?e:r<t?t:r;var de=()=>{},Z=()=>{};var Oe={};function Fe(t){return typeof t=="object"&&t!==null}function Ft(t){let e;return()=>(e===void 0&&(e=t()),e)}var K=t=>t;var Di=(t,e)=>r=>e(t(r)),Ne=(...t)=>t.reduce(Di);var ie=(t,e,r)=>{let n=e-t;return n===0?1:(r-t)/n};var j=t=>t*1e3,Y=t=>t/1e3;function Nt(t,e){return e?t*(1e3/e):0}var Fr=(t,e,r)=>{let n=e-t;return((r-t)%n+n)%n+t};var Nr=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,Mi=1e-7,Oi=12;function Fi(t,e,r,n,i){let s,o,a=0;do o=e+(r-e)/2,s=Nr(o,n,i)-t,s>0?r=o:e=o;while(Math.abs(s)>Mi&&++a<Oi);return o}function ce(t,e,r,n){if(t===e&&r===n)return K;let i=s=>Fi(s,0,1,t,r);return s=>s===0||s===1?s:Nr(i(s),e,n)}var et=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var tt=t=>e=>1-t(1-e);var kt=ce(.33,1.53,.69,.99),ke=tt(kt),kr=et(ke);var Cr=t=>t>=1?1:(t*=2)<1?.5*ke(t):.5*(2-Math.pow(2,-10*(t-1)));var rt=t=>1-Math.sin(Math.acos(t)),Pr=tt(rt),Rr=et(rt);var Vr=ce(.42,0,1,1),Lr=ce(0,0,.58,1),_r=ce(.42,0,.58,1);var Br=t=>Array.isArray(t)&&typeof t[0]!="number";function Ce(t,e){return Br(t)?t[Fr(0,t.length,e)]:t}var Pe=t=>Array.isArray(t)&&typeof t[0]=="number";var zr={linear:K,easeIn:Vr,easeInOut:_r,easeOut:Lr,circIn:rt,circInOut:Rr,circOut:Pr,backIn:ke,backInOut:kr,backOut:kt,anticipate:Cr},Ni=t=>typeof t=="string",Ct=t=>{if(Pe(t)){Z(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,r,n,i]=t;return ce(e,r,n,i)}else if(Ni(t))return Z(zr[t]!==void 0,`Invalid easing type '${t}
3'`,"invalid-easing-type"),zr[t];return t};var Re=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var ye={value:null,addProjectionMetrics:null};function Wr(t,e){let r=new Set,n=new Set,i=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},f=0;function l(p){o.has(p)&&(m.schedule(p),t()),f++,p(a)}let m={schedule:(p,h=!1,v=!1)=>{let w=v&&i?r:n;return h&&o.add(p),w.add(p),p},cancel:p=>{n.delete(p),o.delete(p)},process:p=>{if(a=p,i){s=!0;return}i=!0;let h=r;r=n,n=h,r.forEach(l),e&&ye.value&&ye.value.frameloop[e].push(f),f=0,r.clear(),i=!1,s&&(s=!1,m.process(p))}};return m}var ki=40;function Gr(t,e){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,o=Re.reduce((V,N)=>(V[N]=Wr(s,e?N:void 0),V),{}),{setup:a,read:f,resolveKeyframes:l,preUpdate:m,update:p,preRender:h,render:v,postRender:E}=o,w=()=>{let V=Oe.useManualTiming,N=V?i.timestamp:performance.now();r=!1,V||(i.delta=n?1e3/60:Math.max(Math.min(N-i.timestamp,ki),1)),i.timestamp=N,i.isProcessing=!0,a.process(i),f.process(i),l.process(i),m.process(i),p.process(i),h.process(i),v.process(i),E.process(i),i.isProcessing=!1,r&&e&&(n=!1,t(w))},D=()=>{r=!0,n=!0,i.isProcessing||t(w)};return{schedule:Re.reduce((V,N)=>{let L=o[N];return V[N]=(k,M=!1,R=!1)=>(r||D(),L.schedule(k,M,R)),V},{}),cancel:V=>{for(let N=0;N<Re.length;N++)o[Re[N]].cancel(V)},state:i,steps:o}}var{schedule:oe,cancel:be,state:Pt,steps:Ci}=Gr(typeof requestAnimationFrame<"u"?requestAnimationFrame:K,!0);var Rt={layout:0,mainThread:0,waapi:0};var Pi=t=>e=>typeof e=="string"&&e.startsWith(t);var Ri=Pi("var(--"),Kr=t=>Ri(t)?Vi.test(t.split("/*")[0].trim()):!1,Vi=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var nt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},it={...nt,transform:t=>q(0,1,t)},ma={...nt,default:1};var fe=t=>Math.round(t*1e5)/1e5;var ot=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jr(t){return t==null}var Hr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var xe=(t,e)=>r=>!!(typeof r=="string"&&Hr.test(r)&&r.startsWith(t)||e&&!jr(r)&&Object.prototype.hasOwnProperty.call(r,e)),st=(t,e,r)=>n=>{if(typeof n!="string")return n;let[i,s,o,a]=n.match(ot);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}};var Li=t=>q(0,255,t),Vt={...nt,transform:t=>Math.round(Li(t))},ee={test:xe("rgb","red"),parse:st("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+Vt.transform(t)+", "+Vt.transform(e)+", "+Vt.transform(r)+", "+fe(it.transform(n))+")"};function _i(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var Ve={test:xe("#"),parse:_i,transform:ee.transform};var Bi=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`});var Lt=Bi("%");var ue={test:xe("hsl","hue"),parse:st("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+Lt.transform(fe(e))+", "+Lt.transform(fe(r))+", "+fe(it.transform(n))+")"};var J={test:t=>ee.test(t)||Ve.test(t)||ue.test(t),parse:t=>ee.test(t)?ee.parse(t):ue.test(t)?ue.parse(t):Ve.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ee.transform(t):ue.transform(t),getAnimatableNone:t=>{let e=J.parse(t);return e.alpha=0,J.transform(e)}};var $r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function zi(t){return isNaN(t)&&typeof t=="string"&&(t.match(ot)?.length||0)+(t.match($r)?.length||0)>0}var Ur="number",Zr="color",Wi="var",Gi="var(",qr="${}",Ki=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function we(t){let e=t.toString(),r=[],n={color:[],number:[],var:[]},i=[],s=0,a=e.replace(Ki,f=>(J.test(f)?(n.color.push(s),i.push(Zr),r.push(J.parse(f))):f.startsWith(Gi)?(n.var.push(s),i.push(Wi),r.push(f)):(n.number.push(s),i.push(Ur),r.push(parseFloat(f))),++s,qr)).split(qr);return{values:r,split:a,indexes:n,types:i}}function ji(t){return we(t).values}function Xr({split:t,types:e}){let r=t.length;return n=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],n[s]!==void 0){let o=e[s];o===Ur?i+=fe(n[s]):o===Zr?i+=J.transform(n[s]):i+=n[s]}return i}}function Hi(t){return Xr(we(t))}var $i=t=>typeof t=="number"?0:J.test(t)?J.getAnimatableNone(t):t,qi=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:$i(t);function Ui(t){let e=we(t);return Xr(e)(e.values.map((n,i)=>qi(n,e.split[i])))}var Yr={test:zi,parse:ji,createTransformer:Hi,getAnimatableNone:Ui};function _t(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Jr({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,s=0,o=0;if(!e)i=s=o=r;else{let a=r<.5?r*(1+e):r+e-r*e,f=2*r-a;i=_t(f,a,t+1/3),s=_t(f,a,t),o=_t(f,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}function Se(t,e){return r=>r>0?e:t}var Q=(t,e,r)=>t+(e-t)*r;var Bt=(t,e,r)=>{let n=t*t,i=r*(e*e-n)+n;return i<0?0:Math.sqrt(i)},Zi=[Ve,ee,ue],Xi=t=>Zi.find(e=>e.test(t));function Qr(t){let e=Xi(t);if(de(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let r=e.parse(t);return e===ue&&(r=Jr(r)),r}var zt=(t,e)=>{let r=Qr(t),n=Qr(e);if(!r||!n)return Se(t,e);let i={...r};return s=>(i.red=Bt(r.red,n.red,s),i.green=Bt(r.green,n.green,s),i.blue=Bt(r.blue,n.blue,s),i.alpha=Q(r.alpha,n.alpha,s),ee.transform(i))};var at=new Set(["none","hidden"]);function en(t,e){return at.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function Yi(t,e){return r=>Q(t,e,r)}function lt(t){return typeof t=="number"?Yi:typeof t=="string"?Kr(t)?Se:J.test(t)?zt:eo:Array.isArray(t)?tn:typeof t=="object"?J.test(t)?zt:Ji:Se}function tn(t,e){let r=[...t],n=r.length,i=t.map((s,o)=>lt(s)(s,e[o]));return s=>{for(let o=0;o<n;o++)r[o]=i[o](s);return r}}function Ji(t,e){let r={...t,...e},n={};for(let i in r)t[i]!==void 0&&e[i]!==void 0&&(n[i]=lt(t[i])(t[i],e[i]));return i=>{for(let s in n)r[s]=n[s](i);return r}}function Qi(t,e){let r=[],n={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){let s=e.types[i],o=t.indexes[s][n[s]],a=t.values[o]??0;r[i]=a,n[s]++}return r}var eo=(t,e)=>{let r=Yr.createTransformer(e),n=we(t),i=we(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?at.has(t)&&!i.values.length||at.has(e)&&!n.values.length?en(t,e):Ne(tn(Qi(n,i),i.values),r):(de(!0,`Complex values '${t}' and '${e}
3' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Se(t,e))};function rn(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?Q(t,e,r):lt(t)(t,e)}var ct=(t,e,r=10)=>{let n="",i=Math.max(Math.round(e/r),2);for(let s=0;s<i;s++)n+=Math.round(t(s/(i-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function ft(t){let e=0,r=50,n=t.next(e);for(;!n.done&&e<2e4;)e+=r,n=t.next(e);return e>=2e4?1/0:e}function Le(t,e=100,r){let n=r({...t,keyframes:[0,e]}),i=Math.min(ft(n),2e4);return{type:"keyframes",ease:s=>n.next(i*s).value/e,duration:Y(i)}}var _={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Kt(t,e){return t*Math.sqrt(1-e*e)}var to=12;function ro(t,e,r){let n=r;for(let i=1;i<to;i++)n=n-t(n)/e(n);return n}var Gt=.001;function no({duration:t=_.duration,bounce:e=_.bounce,velocity:r=_.velocity,mass:n=_.mass}){let i,s;de(t<=j(_.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=q(_.minDamping,_.maxDamping,o),t=q(_.minDuration,_.maxDuration,Y(t)),o<1?(i=l=>{let m=l*o,p=m*t,h=m-r,v=Kt(l,o),E=Math.exp(-p);return Gt-h/v*E},s=l=>{let p=l*o*t,h=p*r+r,v=Math.pow(o,2)*Math.pow(l,2)*t,E=Math.exp(-p),w=Kt(Math.pow(l,2),o);return(-i(l)+Gt>0?-1:1)*((h-v)*E)/w}):(i=l=>{let m=Math.exp(-l*t),p=(l-r)*t+1;return-Gt+m*p},s=l=>{let m=Math.exp(-l*t),p=(r-l)*(t*t);return m*p});let a=5/t,f=ro(i,s,a);if(t=j(t),isNaN(f))return{stiffness:_.stiffness,damping:_.damping,duration:t};{let l=Math.pow(f,2)*n;return{stiffness:l,damping:o*2*Math.sqrt(n*l),duration:t}}}var io=["duration","bounce"],oo=["stiffness","damping","mass"];function nn(t,e){return e.some(r=>t[r]!==void 0)}function so(t){let e={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...t};if(!nn(t,oo)&&nn(t,io))if(e.velocity=0,t.visualDuration){let r=t.visualDuration,n=2*Math.PI/(r*1.2),i=n*n,s=2*q(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:_.mass,stiffness:i,damping:s}}else{let r=no({...t,velocity:0});e={...e,...r,mass:_.mass},e.isResolvedFromDuration=!0}return e}function ut(t=_.visualDuration,e=_.bounce){let r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:i}=r,s=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],a={done:!1,value:s},{stiffness:f,damping:l,mass:m,duration:p,velocity:h,isResolvedFromDuration:v}=so({...r,velocity:-Y(r.velocity||0)}),E=h||0,w=l/(2*Math.sqrt(f*m)),D=o-s,T=Y(Math.sqrt(f/m)),z=Math.abs(D)<5;n||(n=z?_.restSpeed.granular:_.restSpeed.default),i||(i=z?_.restDelta.granular:_.restDelta.default);let V,N,L,k,M,R;if(w<1)L=Kt(T,w),k=(E+w*T*D)/L,V=S=>{let I=Math.exp(-w*T*S);return o-I*(k*Math.sin(L*S)+D*Math.cos(L*S))},M=w*T*k+D*L,R=w*T*D-k*L,N=S=>
3Math.exp(-w*T*S)*(M*Math.sin(L*S)+R*Math.cos(L*S));else if(w===1){V=I=>o-Math.exp(-T*I)*(D+(E+T*D)*I);let S=E+T*D;N=I=>Math.exp(-T*I)*(T*S*I-E)}else{let S=T*Math.sqrt(w*w-1);V=c=>{let u=Math.exp(-w*T*c),d=Math.min(S*c,300);return o-u*((E+w*T*D)*Math.sinh(d)+S*D*Math.cosh(d))/S};let I=(E+w*T*D)/S,P=w*T*I-D*S,x=w*T*D-I*S;N=c=>{let u=Math.exp(-w*T*c),d=Math.min(S*c,300);return u*(P*Math.sinh(d)+x*Math.cosh(d))}}let C={calculatedDuration:v&&p||null,velocity:S=>j(N(S)),next:S=>{if(!v&&w<1){let P=Math.exp(-w*T*S),x=Math.sin(L*S),c=Math.cos(L*S),u=o-P*(k*x+D*c),d=j(P*(M*x+R*c));return a.done=Math.abs(d)<=n&&Math.abs(o-u)<=i,a.value=a.done?o:u,a}let I=V(S);if(v)a.done=S>=p;else{let P=j(N(S));a.done=Math.abs(P)<=n&&Math.abs(o-I)<=i}return a.value=a.done?o:I,a},toString:()=>{let S=Math.min(ft(C),2e4),I=ct(P=>C.next(S*P).value,S,30);return S+"ms "+I},toTransition:()=>{}};return C}ut.applyToOptions=t=>{let e=Le(t,100,ut);return t.ease=e.ease,t.duration=j(e.duration),t.type="keyframes",t};function ao(t,e,r){let n=[],i=r||Oe.mix||rn,s=t.length-1;for(let o=0;o<s;o++){let a=i(t[o],t[o+1]);if(e){let f=Array.isArray(e)?e[o]||K:e;a=Ne(f,a)}n.push(a)}return n}function jt(t,e,{clamp:r=!0,ease:n,mixer:i}={}){let s=t.length;if(Z(s===e.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>e[0];if(s===2&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=ao(e,n,i),f=a.length,l=m=>{if(o&&m<t[0])return e[0];let p=0;if(f>1)for(;p<t.length-2&&!(m<t[p+1]);p++);let h=ie(t[p],t[p+1],m);return a[p](h)};return r?m=>l(q(t[0],t[s-1],m)):l}function _e(t,e){let r=t[t.length-1];for(let n=1;n<=e;n++){let i=ie(0,e,n);t.push(Q(r,1,i))}}function Be(t){let e=[0];return _e(e,t.length-1),e}var lo=t=>t!==null;function on(t,{repeat:e,repeatType:r="loop"},n,i=1){let s=t.filter(lo),a=i<0||e&&r!=="loop"&&e%2===1?0:s.length-1;return!a||n===void 0?s[a]:n}var pt=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,r){return this.finished.then(e,r)}};function Ht(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}var mt=t=>t.startsWith("--");function sn(t,e,r){mt(e)?t.style.setProperty(e,r):t.style[e]=r}var an={};function ze(t,e){let r=Ft(t);return()=>an[e]??r()}var We=ze(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),$t=ze(()=>window.ViewTimeline!==void 0,"viewTimeline");var dt=ze(()=>{try{document.createElement("div").animate({opacity:0}
3,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var he=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`;var qt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:he([0,.65,.55,1]),circOut:he([.55,0,1,.45]),backIn:he([.31,.01,.66,-.59]),backOut:he([.33,1.53,.69,.99])};function Ut(t,e){if(t)return typeof t=="function"?dt()?ct(t,e):"ease-out":Pe(t)?he(t):Array.isArray(t)?t.map(r=>Ut(r,e)||qt.easeOut):qt[t]}function ln(t,e,r,{delay:n=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:f}={},l=void 0){let m={[e]:r};f&&(m.offset=f);let p=Ut(a,i);Array.isArray(p)&&(m.easing=p),ye.value&&Rt.waapi++;let h={delay:n,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};l&&(h.pseudoElement=l);let v=t.animate(m,h);return ye.value&&v.finished.finally(()=>{Rt.waapi--}),v}function Ge(t){return typeof t=="function"&&"applyToOptions"in t}function cn({type:t,...e}){return Ge(t)&&dt()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}var Ke=class extends pt{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:r,name:n,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:f}=e;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=e,Z(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let l=cn(e);this.animation=ln(r,n,i,l,s),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let m=on(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(m),sn(r,n,m),this.animation.cancel()}f?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Y(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Y(e)}get time(){return Y(Number(this.animation.currentTime)||0)}set time(e){let r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=j(e),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:r,rangeEnd:n,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&We()?(this.animation.timeline=e,r&&(this.animation.rangeStart=r),n&&(this.animation.rangeEnd=n),K):i(this)}};var ht=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,r){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=r}attachTimeline(e){let r=this.animations.map(n=>n.attachTimeline(e));return()=>{r.forEach((n,i)=>{n&&n(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return fn(this.animations,"duration")}get iterationDuration(){return fn(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(r=>r[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function fn(t,e){let r=0;for(let n=0;n<t.length;n++){let i=t[n][e];i!==null&&i>r&&(r=i)}return r}var ge=class extends ht{then(e,r){return this.finished.finally(e).then(()=>{})}};var un=new WeakMap,Zt=(t,e="")=>`${t}:${e}`;function Xt(t){let e=un.get(t);return e||(e=new Map,un.set(t,e)),e}function pn(t,e){if(t?.inherit&&e){let{inherit:r,...n}=t;return{...e,...n}}return t}function Yt(t,e){let r=t?.[e]??t?.default??t;return r!==t?pn(r,t):r}var Jt=t=>!!(t&&t.getVelocity);var mn=new Set(["borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","width","maxWidth","height","maxHeight","top","right","bottom","left","inset","insetBlock","insetBlockStart","insetBlockEnd","insetInline","insetInlineStart","insetInlineEnd","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingBlockStart","paddingBlockEnd","paddingInline","paddingInlineStart","paddingInlineEnd","margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginBlockStart","marginBlockEnd","marginInline","marginInlineStart","marginInlineEnd","fontSize","backgroundPositionX","backgroundPositionY"]);function Qt(t,e){for(let r=0;r<t.length;r++)typeof t[r]=="number"&&mn.has(e)&&(t[r]=t[r]+"px")}function se(t,e,r){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let n=document;e&&(n=e.current);let i=r?.[t]??n.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(n=>n!=null)}function er(t){return Fe(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}function gt(t,e){let r=window.getComputedStyle(t);return mt(e)?r.getPropertyValue(e):r[e]}function dn(t){return Fe(t)&&"ownerSVGElement"in t}var vt=new WeakMap,yt,hn=(t,e,r)=>(n,i)=>i&&i[0]?i[0][t+"Size"]:dn(n)&&"getBBox"in n?n.getBBox()[e]:n[r],co=hn("inline","width","offsetWidth"),fo=hn("block","height","offsetHeight");function uo({target:t,borderBoxSize:e}){vt.get(t)?.forEach(r=>{r(t,{get width(){return co(t,e)},get height(){return fo(t,e)}})})}function po(t){t.forEach(uo)}function mo(){typeof ResizeObserver>"u"||(yt=new ResizeObserver(po))}function gn(t,e){yt||mo();let r=se(t);return r.forEach(n=>{let i=vt.get(n);i||(i=new Set,vt.set(n,i)),i.add(e),yt?.observe(n)}),()=>{r.forEach(n=>{let i=vt.get(n);i?.delete(e),i?.size||yt?.unobserve(n)})}}var bt=new Set,Ee;function ho(){Ee=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};
3bt.forEach(e=>e(t))},window.addEventListener("resize",Ee)}function vn(t){return bt.add(t),Ee||ho(),()=>{bt.delete(t),!bt.size&&typeof Ee=="function"&&(window.removeEventListener("resize",Ee),Ee=void 0)}}function tr(t,e){return typeof t=="function"?vn(t):gn(t,e)}function je(t,e){let r,n=()=>{let{currentTime:i}=e,o=(i===null?0:i.value)/100;r!==o&&t(o),r=o};return oe.preUpdate(n,!0),()=>be(n)}function yn(t,e){if(t==="first")return 0;{let r=e-1;return t==="last"?r:r/2}}function bn(t=.1,{startDelay:e=0,from:r=0,ease:n}={}){return(i,s)=>{let o=typeof r=="number"?r:yn(r,s),a=Math.abs(o-i),f=t*a;if(n){let l=s*t;f=Ct(n)(f/l)*l}return e+f}}function xn(t){return typeof t=="object"&&!Array.isArray(t)}function wn(t,e,r,n){return t==null?[]:typeof t=="string"&&xn(e)?se(t,r,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(i=>i!=null):[t]}function Sn(t,e,r){return t*(e+1)}function rr(t,e,r,n){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?r:e.startsWith("<")?Math.max(0,r+parseFloat(e.slice(1))):n.get(e)??t}function go(t,e,r){for(let n=0;n<t.length;n++){let i=t[n];i.at>e&&i.at<r&&(Ot(t,i),n--)}}function En(t,e,r,n,i,s){go(t,i,s);for(let o=0;o<e.length;o++)t.push({value:e[o],at:Q(i,s,n[o]),easing:Ce(r,o)})}function Tn(t,e){for(let r=0;r<t.length;r++)t[r]=t[r]/(e+1)}function An(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}var vo="easeInOut",yo=20;function Mn(t,{defaultTransition:e={},...r}={},n,i){let s=e.duration||.3,o=new Map,a=new Map,f={},l=new Map,m=0,p=0,h=0;for(let v=0;v<t.length;v++){let E=t[v];if(typeof E=="string"){l.set(E,p);continue}else if(!Array.isArray(E)){l.set(E.name,rr(p,E.at,m,l));continue}let[w,D,T={}]=E;T.at!==void 0&&(p=rr(p,T.at,m,l));let z=0,V=(N,L,k,M=0,R=0)=>{let C=bo(N),{delay:S=0,times:I=Be(C),type:P=e.type||"keyframes",repeat:x,repeatType:c,repeatDelay:u=0,...d}=L,{ease:g=e.ease||"easeOut",duration:y}=L,A=typeof S=="function"?S(M,R):S,b=C.length,O=Ge(P)?P:i?.[P||"keyframes"];if(b<=2&&O){let W=100;if(b===2&&So(C)){let te=C[1]-C[0];W=Math.abs(te)}let U={...e,...d};y!==void 0&&(U.duration=j(y));let H=Le(U,W,O);g=H.ease,y=H.duration}y??(y=s);let F=p+A;I.length===1&&I[0]===0&&(I[1]=1);let B=I.length-C.length;if(B>0&&_e(I,B),C.length===1&&C.unshift(null),x){Z(x<yo,"Repeat count too high, must be less than 20","repeat-count-high"),y=Sn(y,x);let W=[...C],U=[...I];g=Array.isArray(g)?[...g]:[g];let H=[...g];for(let te=0;te<x;te++){C.push(...W);for(let re=0;re<W.length;re++)I.push(U[re]+(te+1)),g.push(re===0?"linear":Ce(H,re-1))}Tn(I,x)}let G=F+y;En(k,C,g,I,F,G),z=Math.max(A+y,z),h=Math.max(G,h)};if(Jt(w)){let N=In(w,a);V(D,T,Dn("default",N))}else{let N=wn(w,D,n,f),L=N.length;for(let k=0;k<L;k++){D=D,T=T;let M=N[k],R=In(M,a);for(let C in D)V(D[C],xo(T,C),Dn(C,R),k,L)}}m=p,p+=z}return a.forEach((v,E)=>{for(let w in v){let D=v[w];D.sort(An);let T=[],z=[],V=[];for(let M=0;M<D.length;M++){let{at:R,value:C,easing:S}=D[M];T.push(C),z.push(ie(0,h,R)),V.push(S||"easeOut")}z[0]!==0&&(z.unshift(0),T.unshift(T[0]),V.unshift(vo)),z[z.length-1]!==1&&(z.push(1),T.push(null)),o.has(E)||o.set(E,{keyframes:{},transition:{}});let N=o.get(E);N.keyframes[w]=T;let{type:L,...k}=e;N.transition[w]={...k,duration:h,ease:V,times:z,...r}}}),o}function In(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Dn(t,e){return e[t]||(e[t]=[]),e[t]}function bo(t){return Array.isArray(t)?t:[t]}function xo(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}var wo=t=>typeof t=="number",So=t=>t.every(wo);function xt(t,e,r,n){if(t==null)return[];let i=se(t,n),s=i.length;Z(!!s,"No valid elements provided.","no-valid-elements");let o=[];for(let f=0;f<s;f++){let l=i[f],m={...r};typeof m.delay=="function"&&(m.delay=m.delay(f,s));for(let p in e){let h=e[p];Array.isArray(h)||(h=[h]);let v={...Yt(m,p)};v.duration&&(v.duration=j(v.duration)),v.delay&&(v.delay=j(v.delay));let E=Xt(l),w=Zt(p,v.pseudoElement||""),D=E.get(w);D&&D.stop(),o.push({map:E,key:w,unresolvedKeyframes:h,options:{...v,element:l,name:p,allowFlatten:!m.type&&!m.ease}})}}for(let f=0;f<o.length;f++){let{unresolvedKeyframes:l,options:m}=o[f],{element:p,name:h,pseudoElement:v}=m;!v&&l[0]===null&&(l[0]=gt(p,h)),Ht(l),Qt(l,h),!v&&l.length<2&&l.unshift(gt(p,h)),m.keyframes=l}let a=[];for(let f=0;f<o.length;f++){let{map:l,key:m,options:p}=o[f],h=new Ke(p);l.set(m,h),h.finished.finally(()=>l.delete(m)),a.push(h)}return a}function On(t,e){let r=[];return Mn(t,e).forEach(({keyframes:n,transition:i},s)=>{r.push(...xt(s,n,i))}),new ge(r)}var Eo=t=>{function e(r,n,i){return new ge(xt(r,n,i,t))}return e},Fn=Eo();function Te(t){return typeof window>"u"?!1:t?$t():We()}var To=50,Nn=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Cn=()=>({time:0,x:Nn(),y:Nn()}),Ao={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function kn(t,e,r,n){let i=r[e],{length:s,position:o}=Ao[e],a=i.current,f=r.time;i.current=Math.abs(t[`scroll${o}`]),i.scrollLength=t[`scroll${s}`]-t[`client${s}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=ie(0,i.scrollLength,i.current);let l=n-f;i.velocity=l>To?0:Nt(i.current-a,l)}function Pn(t,e,r){kn(t,"x",e,r),kn(t,"y",e,r),e.time=r}function Rn(t,e){let r={x:0,y:0},n=t;for(;n&&n!==e;)if(er(n))r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n.tagName==="svg"){let i=n.getBoundingClientRect();n=n.parentElement;let s=n.getBoundingClientRect();r.x+=i.left-s.left,r.y+=i.top-s.top}else if(n instanceof SVGGraphicsElement){let{x:i,y:s}=n.getBBox();r.x+=i,r.y+=s;let o=null,a=n.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=n.parentNode;n=o}else break;return r}var wt={start:0,center:.5,end:1};function nr(t,e,r=0){let n=0;if(t in wt&&(t=wt[t]),typeof t=="string"){let i=parseFloat(t);t.endsWith("px")?n=i:t.endsWith("%")?t=i/100:t.endsWith("vw")?n=i/100*document.documentElement.clientWidth:t.endsWith("vh")?n=i/100*document.documentElement.clientHeight:t=i}return typeof t=="number"&&(n=e*t),r+n}var Io=[0,0];function Vn(t,e,r,n){let i=Array.isArray(t)?t:Io,s=0,o=0;return typeof t=="number"?i=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,wt[t]?t:"0"]),s=nr(i[0],r,n
3),o=nr(i[1],e),s-o}var ve={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var Do={x:0,y:0};function Mo(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function Ln(t,e,r){let{offset:n=ve.All}=r,{target:i=t,axis:s="y"}=r,o=s==="y"?"height":"width",a=i!==t?Rn(i,t):Do,f=i===t?{width:t.scrollWidth,height:t.scrollHeight}:Mo(i),l={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let m=!e[s].interpolate,p=n.length;for(let h=0;h<p;h++){let v=Vn(n[h],l[o],f[o],a[s]);!m&&v!==e[s].interpolatorOffsets[h]&&(m=!0),e[s].offset[h]=v}m&&(e[s].interpolate=jt(e[s].offset,Be(n),{clamp:!1}),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=q(0,1,e[s].interpolate(e[s].current))}function Oo(t,e=t,r){if(r.x.targetOffset=0,r.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)r.x.targetOffset+=n.offsetLeft,r.y.targetOffset+=n.offsetTop,n=n.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 _n(t,e,r,n={}){return{measure:i=>{Oo(t,n.target,r),Pn(t,r,i),(n.offset||n.target)&&Ln(t,r,n)},notify:()=>e(r)}}var Ae=new WeakMap,Bn=new WeakMap,ir=new WeakMap,zn=new WeakMap,St=new WeakMap,Wn=t=>t===document.scrollingElement?window:t;function Et(t,{container:e=document.scrollingElement,trackContentSize:r=!1,...n}={}){if(!e)return K;let i=ir.get(e);i||(i=new Set,ir.set(e,i));let s=Cn(),o=_n(e,t,s,n);if(i.add(o),!Ae.has(e)){let f=()=>{for(let h of i)h.measure(Pt.timestamp);oe.preUpdate(l)},l=()=>{for(let h of i)h.notify()},m=()=>oe.read(f);Ae.set(e,m);let p=Wn(e);window.addEventListener("resize",m),e!==document.documentElement&&Bn.set(e,tr(e,m)),p.addEventListener("scroll",m),m()}if(r&&!St.has(e)){let f=Ae.get(e),l={width:e.scrollWidth,height:e.scrollHeight};zn.set(e,l);let m=()=>{let h=e.scrollWidth,v=e.scrollHeight;(l.width!==h||l.height!==v)&&(f(),l.width=h,l.height=v)},p=oe.read(m,!0);St.set(e,p)}let a=Ae.get(e);return oe.read(a,!1,!0),()=>{be(a);let f=ir.get(e);if(!f||(f.delete(o),f.size))return;let l=Ae.get(e);Ae.delete(e),l&&(Wn(e).removeEventListener("scroll",l),Bn.get(e)?.(),window.removeEventListener("resize",l));let m=St.get(e);m&&(be(m),St.delete(e)),zn.delete(e)}}var Fo=[[ve.Enter,"entry"],[ve.Exit,"exit"],[ve.Any,"cover"],[ve.All,"contain"]],Gn={start:0,end:1};function No(t){let e=t.trim().split(/\s+/);if(e.length!==2)return;let r=Gn[e[0]],n=Gn[e[1]];if(!(r===void 0||n===void 0))return[r,n]}function ko(t){if(t.length!==2)return;let e=[];for(let r of t)if(Array.isArray(r))e.push(r);else if(typeof r=="string"){let n=No(r);if(!n)return;e.push(n)}else return;return e}function Co(t,e){let r=ko(t);if(!r)return!1;for(let n=0;n<2;n++){let i=r[n],s=e[n];if(i[0]!==s[0]||i[1]!==s[1])return!1}return!0}function Tt(t){if(!t)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[e,r]of Fo)if(Co(t,e))return{rangeStart:`${r} 0%`,rangeEnd:`${r} 100%`}}var Kn=new Map;function jn(t){let e={value:0},r=Et(n=>{e.value=n[t.axis].progress*100},t);return{currentTime:e,cancel:r}}function At({source:t,container:e,...r}){let{axis:n}=r;t&&(e=t);let i=Kn.get(e);i||(i=new Map,Kn.set(e,i));let s=r.target??"self",o=i.get(s);o||(o={},i.set(s,o));let a=n+(r.offset??[]).join(",");return o[a]||(r.target&&Te(r.target)?Tt(r.offset)?o[a]=new ViewTimeline({subject:r.target,axis:n}):o[a]=jn({container:e,...r}):Te()?o[a]=new ScrollTimeline({source:e,axis:n}):o[a]=jn({container:e,...r})),o[a]}function Hn(t,e){let r=At(e),n=e.target?Tt(e.offset):void 0,i=e.target?Te(e.target)&&!!n:Te();return t.attachTimeline({timeline:i?r:void 0,...n&&i&&{rangeStart:n.rangeStart,rangeEnd:n.rangeEnd},observe:s=>(s.pause(),je(o=>{s.time=s.iterationDuration*o},r))})}function Po(t){return t.length===2}function $n(t,e){return Po(t)?Et(r=>
3{t(r[e.axis].progress,r)},e):je(t,At(e))}function qn(t,{axis:e="y",container:r=document.scrollingElement,...n}={}){if(!r)return K;let i={axis:e,container:r,...n};return typeof t=="function"?$n(t,i):Hn(t,i)}var Ro={some:0,all:1};function Un(t,e,{root:r,margin:n,amount:i="some"}={}){let s=se(t),o=new WeakMap,a=l=>{l.forEach(m=>{let p=o.get(m.target);if(m.isIntersecting!==!!p)if(m.isIntersecting){let h=e(m.target,m);typeof h=="function"?o.set(m.target,h):f.unobserve(m.target)}else typeof p=="function"&&(p(m),o.delete(m.target))})},f=new IntersectionObserver(a,{root:r,rootMargin:n,threshold:typeof i=="number"?i:Ro[i]});return s.forEach(l=>f.observe(l)),()=>f.disconnect()}function ae(t){this.listenerMap=[{},{}],t&&this.root(t),this.handle=ae.prototype.handle.bind(this),this._removedListeners=[]}ae.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};ae.prototype.captureForType=function(t){return["blur","error","focus","load","resize","scroll"].indexOf(t)!==-1};ae.prototype.on=function(t,e,r,n){let i,s,o,a;if(!t)throw new TypeError("Invalid event type: "+t);if(typeof e=="function"&&(n=r,r=e,e=null),n===void 0&&(n=this.captureForType(t)),typeof r!="function")throw new TypeError("Handler must be a type of Function");return i=this.rootElement,s=this.listenerMap[n?1:0],s[t]||(i&&i.addEventListener(t,this.handle,n),s[t]=[]),e?/^[a-z]+$/i.test(e)?(a=e,o=Vo):/^#[a-z0-9\-_]+$/i.test(e)?(a=e.slice(1),o=_o):(a=e,o=Element.prototype.matches):(a=null,o=Lo.bind(this)),s[t].push({selector:e,handler:r,matcher:o,matcherParam:a}),this};ae.prototype.off=function(t,e,r,n){let i,s,o,a,f;if(typeof e=="function"&&(n=r,r=e,e=null),n===void 0)return this.off(t,e,r,!0),this.off(t,e,r,!1),this;if(o=this.listenerMap[n?1:0],!t){for(f in o)o.hasOwnProperty(f)&&this.off(f,e,r);return this}if(a=o[t],!a||!a.length)return this;for(i=a.length-1;i>=0;i--)s=a[i],(!e||e===s.selector)&&(!r||r===s.handler)&&(this._removedListeners.push(s),a.splice(i,1));return a.length||(delete o[t],this.rootElement&&this.rootElement.removeEventListener(t,this.handle,n)),this};ae.prototype.handle=function(t){let e,r,n=t.type,i,s,o,a,f=[],l,m="ftLabsDelegateIgnore";if(t[m]===!0)return;switch(l=t.target,l.nodeType===3&&(l=l.parentNode),l.correspondingUseElement&&(l=l.correspondingUseElement),i=this.rootElement,s=t.eventPhase||(t.target!==t.currentTarget?3:2),s){case 1:f=this.listenerMap[1][n];break;case 2:this.listenerMap[0]&&this.listenerMap[0][n]&&(f=f.concat(this.listenerMap[0][n])),this.listenerMap[1]&&this.listenerMap[1][n]&&(f=f.concat(this.listenerMap[1][n]));break;case 3:f=this.listenerMap[0][n];break}let p=[];for(r=f.length;l&&r;){for(e=0;e<r&&(o=f[e],!!o);e++)l.tagName&&["button","input","select","textarea"].indexOf(l.tagName.toLowerCase())>-1&&l.hasAttribute("disabled")?p=[]:o.matcher.call(l,o.matcherParam,l)&&p.push([t,l,o]);if(l===i||(r=f.length,l=l.parentElement||l.parentNode,l instanceof HTMLDocument))break}let h;for(e=0;e<p.length;e++)if(!(this._removedListeners.indexOf(p[e][2])>-1)&&(a=this.fire.apply(this,p[e]),a===!1)){p[e][0][m]=!0,p[e][0].preventDefault(),h=!1;break}return h};ae.prototype.fire=function(t,e,r){return r.handler.call(e,t,e)};function Vo(t,e){return t.toLowerCase()===e.tagName.toLowerCase()}function Lo(t,e){return this.rootElement===window?e===document||e===document.documentElement||e===window:this.rootElement===e}function _o(t,e){return t===e.id}ae.prototype.destroy=function(){this.off(),this.root()};var Bo=ae;function He(t,e,r){let n=document.createElement(e);return t&&(n.className=t),r&&r.appendChild(n),n}function zo(t,e,r){let n=`translate3d(${t}px,${e||0}px,0)`;return r!==void 0&&(n+=` scale3d(${r},${r},1)`),n}function or(t,e,r){t.style.width=typeof e=="number"?`${e}px`:e,t.style.height=typeof r=="number"?`${r}px`:r}
vendor: 14,689 bytes, line 3
3var X={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function Wo(t){return"button"in t&&t.button===1||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function $e(t,e,r=document){let n=[];if(t instanceof Element)n=[t];else if(t instanceof NodeList||Array.isArray(t))n=Array.from(t);else{let i=typeof t=="string"?t:e;i&&(n=Array.from(r.querySelectorAll(i)))}return n}function Go(t){return typeof t=="function"&&t.prototype&&t.prototype.goTo}function Zn(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}var sr=class{constructor(e,r){this.type=e,this.defaultPrevented=!1,r&&Object.assign(this,r)}preventDefault(){this.defaultPrevented=!0}},ar=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,r,n=100){var i,s,o;this._filters[e]||(this._filters[e]=[]),(i=this._filters[e])===null||i===void 0||i.push({fn:r,priority:n}),(s=this._filters[e])===null||s===void 0||s.sort((a,f)=>a.priority-f.priority),(o=this.pswp)===null||o===void 0||o.addFilter(e,r,n)}removeFilter(e,r){this._filters[e]&&(this._filters[e]=this._filters[e].filter(n=>n.fn!==r)),this.pswp&&this.pswp.removeFilter(e,r)}applyFilters(e,...r){var n;return(n=this._filters[e])===null||n===void 0||n.forEach(i=>{r[0]=i.fn.apply(this,r)}),r[0]}on(e,r){var n,i;this._listeners[e]||(this._listeners[e]=[]),(n=this._listeners[e])===null||n===void 0||n.push(r),(i=this.pswp)===null||i===void 0||i.on(e,r)}off(e,r){var n;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(i=>r!==i)),(n=this.pswp)===null||n===void 0||n.off(e,r)}dispatch(e,r){var n;if(this.pswp)return this.pswp.dispatch(e,r);let i=new sr(e,r);return(n=this._listeners[e])===null||n===void 0||n.forEach(s=>{s.call(this,i)}),i}},lr=class{constructor(e,r){if(this.element=He("pswp__img pswp__img--placeholder",e?"img":"div",r),e){let n=this.element;n.decoding="async",n.alt="",n.src=e,n.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,r){this.element&&(this.element.tagName==="IMG"?(or(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=zo(0,0,e/250)):or(this.element,e,r))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}},cr=class{constructor(e,r,n){this.instance=r,this.data=e,this.index=n,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=X.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 n=this.placeholder.element;n&&!n.parentElement&&this.slide.container.prepend(n)}else{let n=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new lr(n,this.slide.container)}this.element&&!r||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=He("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=He("pswp__content","div"),this.element.innerHTML=this.data.html||""),r&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var r,n;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;let i=this.element;this.updateSrcsetSizes(),this.data.srcset&&(i.srcset=this.data.srcset),i.src=(r=this.data.src)!==null&&r!==void 0?r:"",i.alt=(n=this.data.alt)!==null&&n!==void 0?n:"",this.state=X.LOADING,i.complete?this.onLoaded():(i.onload=()=>{this.onLoaded()},i.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=X.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===X.LOADED||this.state===X.ERROR)&&this.removePlaceholder())}onError(){this.state=X.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===X.LOADING,this)}isError(){return this.state===X.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&&(or(this.element,e,r),this.isImageContent()&&!this.isError()))){let n=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=r,n?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!==X.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 n=He("pswp__error-msg","div");n.innerText=(e=(r=this.instance.options)===null||r===void 0?void 0:r.errorMsg)!==null&&e!==void 0?e:"",n=this.instance.applyFilters("contentErrorElement",n,this),this.element=He("pswp__content pswp__error-msg-container","div"),this.element.appendChild(n),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===X.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||Zn())?(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&&!Zn()?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===X.LOADED||this.state===X.ERROR)&&this.removePlaceholder()))}};function Ko(t,e){if(t.getViewportSizeFn){let r=t.getViewportSizeFn(t,e);if(r)return r}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function It(t,e,r,n,i){let s=0;if(e.paddingFn)s=e.paddingFn(r,n,i)[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 jo(t,e,r,n){return{x:e.x-It("left",t,e,r,n)-It("right",t,e,r,n),y:e.y-It("top",t,e,r,n)-It("bottom",t,e,r,n)}}var Xn=4e3,fr=class{constructor(e,r,n,i){this.pswp=i,this.options=e,this.itemData=r,this.index=n,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,n){let i={x:e,y:r};this.elementSize=i,this.panAreaSize=n;let s=n.x/i.x,o=n.y/i.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",n=this.options[r];if(n)return typeof n=="function"?n(this):n==="fill"?this.fill:n==="fit"?this.fit:Number(n)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>Xn&&(e=Xn/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}};function Yn(t,e,r){let n=e.createContentFromData(t,r),i,{options:s}=e;if(s){i=new fr(s,t,-1);let o;e.pswp?o=e.pswp.viewportSize:o=Ko(s,e);let a=jo(s,o,t,r);i.update(n.width,n.height,a)}return n.lazyLoad(),i&&n.setDisplayedSize(Math.ceil(n.width*i.initial),Math.ceil(n.height*i.initial)),n}function Ho(t,e){let r=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:r}).defaultPrevented)return Yn(r,e,t)}var ur=class extends ar{getNumItems(){var e;let r=0,n=(e=this.options)===null||e===void 0?void 0:e.dataSource;n&&"length"in n?r=n.length:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),n.items&&(r=n.items.length));let i=this.dispatch("numItems",{dataSource:n,numItems:r});return this.applyFilters("numItems",i.numItems,n)}createContentFromData(e,r){return new cr(e,this,r)}getItemData(e){var r;let n=(r=this.options)===null||r===void 0?void 0:r.dataSource,i={};Array.isArray(n)?i=n[e]:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),i=n.items[e]);let s=i;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,n;return(r=this.options)!==null&&r!==void 0&&r.children||(n=this.options)!==null&&n!==void 0&&n.childSelector?$e(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){let r={element:e},n=e.tagName==="A"?e:e.querySelector("a");if(n){r.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(r.srcset=n.dataset.pswpSrcset),r.width=n.dataset.pswpWidth?parseInt(n.dataset.pswpWidth,10):0,r.height=n.dataset.pswpHeight?parseInt(n.dataset.pswpHeight,10):0,r.w=r.width,r.h=r.height,n.dataset.pswpType&&(r.type=n.dataset.pswpType);let s=e.querySelector("img");if(s){var i;r.msrc=s.currentSrc||s.src,r.alt=(i=s.getAttribute("alt"))!==null&&i!==void 0?i:""}(n.dataset.pswpCropped||n.dataset.cropped)&&(r.thumbCropped=!0)}return this.applyFilters("domItemData",r,e,n)}lazyLoadData(e,r){return Yn(e,this,r)}},pr=class extends ur{constructor(e){super(),this.options=e||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){$e(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(e){if(Wo(e)||window.pswp)return;let r={x:e.clientX,y:e.clientY};!r.x&&!r.y&&(r=null);let n=this.getClickedIndex(e);n=this.applyFilters("clickedIndex",n,e,this);let i={gallery:e.currentTarget};n>=0&&(e.preventDefault(),this.loadAndOpen(n,i,r))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);let r=e.target,i=$e(this.options.children,this.options.childSelector,e.currentTarget).findIndex(s=>s===r||s.contains(r));return i!==-1?i:this.options.children||this.options.childSelector?-1:0}loadAndOpen(e,r,n){if(window.pswp||!this.options)return!1;if(!r&&this.options.gallery&&this.options.children){let i=$e(this.options.gallery);i[0]&&(r={gallery:i[0]})}return this.options.index=e,this.options.initialPointerPos=n,this.shouldOpen=!0,this.preload(e,r),!0}preload(e,r){let{options:n}=this;r&&(n.dataSource=r);let i=[],s=typeof n.pswpModule;if(Go(n.pswpModule))i.push(Promise.resolve(n.pswpModule));else{if(s==="string")throw new Error("pswpModule as string is no longer supported");if(s==="function")i.push(n.pswpModule());else throw new Error("pswpModule is not valid")}typeof n.openPromise=="function"&&i.push(n.openPromise()),n.preloadFirstSlide!==!1&&e>=0&&(this._preloadedContent=Ho(e,this));let o=++this._uid;Promise.all(i).then(a=>{if(this.shouldOpen){let f=a[0];this._openPhotoswipe(f,o)}})}_openPhotoswipe(e,r){if(r!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;let n=typeof e=="object"?new e.default(this.options):new e(this.options);this.pswp=n,window.pswp=n,Object.keys(this._listeners).forEach(i=>{var s;(s=this._listeners[i])===null||s===void 0||s.forEach(o=>{n.on(i,o)})}),Object.keys(this._filters).forEach(i=>{var s;(s=this._filters[i])===null||s===void 0||s.forEach(o=>{n.addFilter(i,o.fn,o.priority)})}),this._preloadedContent&&(n.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),n.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),n.init()}destroy(){var e;(e=this.pswp)===null||e===void 0||e.destroy(),this.shouldOpen=!1,this._listeners={},$e(this.options.gallery,this.options.gallerySelector).forEach(r=>{r.removeEventListener("click",this.onThumbnailsClick,!1)})}};export{Bo as Delegate,Or as FocusTrap,pr as PhotoSwipeLightbox,Fn as animate,On as animateSequence,oe as frame,Un as inView,qn as scroll,ut as spring,b
3n as stagger}; 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.1 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.