(()=>{function e(e){return e&&e.__esModule?e.default:e}class t{constructor(e){this.children=[],this.parent=e}delete(e){const t=this.children.indexOf(e);return-1!==t&&(this.children=this.children.slice(0,t).concat(this.children.slice(t+1)),0===this.children.length&&this.parent.delete(this),!0)}add(e){return this.children.push(e),this}}class n{constructor(e){this.parent=null,this.children={},this.parent=e||null}get(e){return this.children[e]}insert(e){let i=this;for(let r=0;r=0;e-=1){r=n.children[e];const i=r.getAttribute("data-hotkey-scope");if(!s&&!i||s&&t.id===i){o=!0;break}}r&&o&&(!function(e,t){const n=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:t}});!e.dispatchEvent(n)||(i(e)?e.focus():e.click())}(r,u),e.preventDefault()),l()}}else l()}function d(e,t){0===Object.keys(o.children).length&&document.addEventListener("keydown",f);const n=(t||e.getAttribute("data-hotkey")||"").split(",").map((e=>e.split(" "))).map((t=>o.insert(t).add(e)));s.set(e,n)}var p,h,m,g,v=!1,y=!1,b=[];function w(e){!function(e){b.includes(e)||b.push(e);y||v||(v=!0,queueMicrotask(_))}(e)}function x(e){let t=b.indexOf(e);-1!==t&&b.splice(t,1)}function _(){v=!1,y=!0;for(let e=0;e{(void 0===t||t.includes(n))&&(i.forEach((e=>e())),delete e._x_attributeCleanups[n])}))}var M=new MutationObserver(I),j=!1;function L(){M.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),j=!0}function P(){(D=D.concat(M.takeRecords())).length&&!R&&(R=!0,queueMicrotask((()=>{I(D),D.length=0,R=!1}))),M.disconnect(),j=!1}var D=[],R=!1;function W(e){if(!j)return e();P();let t=e();return L(),t}var z=!1,$=[];function I(e){if(z)return void($=$.concat(e));let t=[],n=[],i=new Map,r=new Map;for(let o=0;o1===e.nodeType&&t.push(e))),e[o].removedNodes.forEach((e=>1===e.nodeType&&n.push(e)))),"attributes"===e[o].type)){let t=e[o].target,n=e[o].attributeName,s=e[o].oldValue,a=()=>{i.has(t)||i.set(t,[]),i.get(t).push({name:n,value:t.getAttribute(n)})},c=()=>{r.has(t)||r.set(t,[]),r.get(t).push(n)};t.hasAttribute(n)&&null===s?a():t.hasAttribute(n)?(c(),a()):c()}r.forEach(((e,t)=>{C(t,e)})),i.forEach(((e,t)=>{k.forEach((n=>n(t,e)))}));for(let e of n)if(!t.includes(e)&&(S.forEach((t=>t(e))),e._x_cleanups))for(;e._x_cleanups.length;)e._x_cleanups.pop()();t.forEach((e=>{e._x_ignoreSelf=!0,e._x_ignore=!0}));for(let e of t)n.includes(e)||e.isConnected&&(delete e._x_ignoreSelf,delete e._x_ignore,A.forEach((t=>t(e))),e._x_ignore=!0,e._x_ignoreSelf=!0);t.forEach((e=>{delete e._x_ignoreSelf,delete e._x_ignore})),t=null,n=null,i=null,r=null}function N(e){return B(V(e))}function H(e,t,n){return e._x_dataStack=[t,...V(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter((e=>e!==t))}}function F(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach((([e,t])=>{n[e]=t}))}function V(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?V(e.host):e.parentNode?V(e.parentNode):[]}function B(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap((e=>Object.keys(e))))),has:(t,n)=>e.some((e=>e.hasOwnProperty(n))),get:(n,i)=>(e.find((e=>{if(e.hasOwnProperty(i)){let n=Object.getOwnPropertyDescriptor(e,i);if(n.get&&n.get._x_alreadyBound||n.set&&n.set._x_alreadyBound)return!0;if((n.get||n.set)&&n.enumerable){let r=n.get,o=n.set,s=n;r=r&&r.bind(t),o=o&&o.bind(t),r&&(r._x_alreadyBound=!0),o&&(o._x_alreadyBound=!0),Object.defineProperty(e,i,{...s,get:r,set:o})}return!0}return!1}))||{})[i],set:(t,n,i)=>{let r=e.find((e=>e.hasOwnProperty(n)));return r?r[n]=i:e[e.length-1][n]=i,!0}});return t}function q(e){let t=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach((([r,{value:o,enumerable:s}])=>{if(!1===s||void 0===o)return;let a=""===i?r:`${i}.${r}`;var c;"object"==typeof o&&null!==o&&o._x_interceptor?n[r]=o.initialize(e,a,r):"object"!=typeof(c=o)||Array.isArray(c)||null===c||o===n||o instanceof Element||t(o,a)}))};return t(e)}function G(e,t=(()=>{})){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,i){return e(this.initialValue,(()=>function(e,t){return t.split(".").reduce(((e,t)=>e[t]),e)}(t,n)),(e=>U(t,n,e)),n,i)}};return t(n),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(i,r,o)=>{let s=e.initialize(i,r,o);return n.initialValue=s,t(i,r,o)}}else n.initialValue=e;return n}}function U(e,t,n){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),U(e[t[0]],t.slice(1),n)}e[t[0]]=n}var X={};function Y(e,t){X[e]=t}function K(e,t){return Object.entries(X).forEach((([n,i])=>{Object.defineProperty(e,`$${n}`,{get(){let[e,n]=he(t);return e={interceptor:G,...e},T(t,n),i(t,e)},enumerable:!1})})),e}function J(e,t,n,...i){try{return n(...i)}catch(n){Z(n,e,t)}}function Z(e,t,n){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,t),setTimeout((()=>{throw e}),0)}var Q=!0;function ee(e,t,n={}){let i;return te(e,t)((e=>i=e),n),i}function te(...e){return ne(...e)}var ne=ie;function ie(e,t){let n={};K(n,e);let i=[n,...V(e)];if("function"==typeof t)return function(e,t){return(n=(()=>{}),{scope:i={},params:r=[]}={})=>{oe(n,t.apply(B([i,...e]),r))}}(i,t);let r=function(e,t,n){let i=function(e,t){if(re[e])return re[e];let n=Object.getPrototypeOf((async function(){})).constructor,i=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e;let r=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`)}catch(n){return Z(n,t,e),Promise.resolve()}})();return re[e]=r,r}(t,n);return(r=(()=>{}),{scope:o={},params:s=[]}={})=>{i.result=void 0,i.finished=!1;let a=B([o,...e]);if("function"==typeof i){let e=i(i,a).catch((e=>Z(e,n,t)));i.finished?(oe(r,i.result,a,s,n),i.result=void 0):e.then((e=>{oe(r,e,a,s,n)})).catch((e=>Z(e,n,t))).finally((()=>i.result=void 0))}}}(i,t,e);return J.bind(null,e,t,r)}var re={};function oe(e,t,n,i,r){if(Q&&"function"==typeof t){let o=t.apply(n,i);o instanceof Promise?o.then((t=>oe(e,t,n,i))).catch((e=>Z(e,r,t))):e(o)}else e(t)}var se="x-";function ae(e=""){return se+e}var ce={};function ue(e,t){ce[e]=t}function le(e,t,n){let i={},r=Array.from(t).map(ge(((e,t)=>i[e]=t))).filter(be).map(function(e,t){return({name:n,value:i})=>{let r=n.match(we()),o=n.match(/:([a-zA-Z0-9\-:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:r?r[1]:null,value:o?o[1]:null,modifiers:s.map((e=>e.replace(".",""))),expression:i,original:a}}}(i,n)).sort(Oe);return r.map((t=>function(e,t){let n=()=>{},i=ce[t.type]||n,[r,o]=he(e);!function(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,r),i=i.bind(i,e,t,r),fe?de.get(pe).push(i):i())};return s.runCleanups=o,s}(e,t)))}var fe=!1,de=new Map,pe=Symbol();function he(e){let t=[],[n,i]=function(e){let t=()=>{};return[n=>{let i=h(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach((e=>e()))}),e._x_effects.add(i),t=()=>{void 0!==i&&(e._x_effects.delete(i),m(i))},i},()=>{t()}]}(e);t.push(i);return[{Alpine:ot,effect:n,cleanup:e=>t.push(e),evaluateLater:te.bind(te,e),evaluate:ee.bind(ee,e)},()=>t.forEach((e=>e()))]}var me=(e,t)=>({name:n,value:i})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:i});function ge(e=(()=>{})){return({name:t,value:n})=>{let{name:i,value:r}=ve.reduce(((e,t)=>t(e)),{name:t,value:n});return i!==t&&e(i,t),{name:i,value:r}}}var ve=[];function ye(e){ve.push(e)}function be({name:e}){return we().test(e)}var we=()=>new RegExp(`^${se}([^:^.]+)\\b`);var xe="DEFAULT",_e=["ignore","ref","data","id","bind","init","for","mask","model","modelable","transition","show","if",xe,"teleport","element"];function Oe(e,t){let n=-1===_e.indexOf(e.type)?xe:e.type,i=-1===_e.indexOf(t.type)?xe:t.type;return _e.indexOf(n)-_e.indexOf(i)}function Ee(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var ke=[],Se=!1;function Ae(e=(()=>{})){return queueMicrotask((()=>{Se||setTimeout((()=>{Te()}))})),new Promise((t=>{ke.push((()=>{e(),t()}))}))}function Te(){for(Se=!1;ke.length;)ke.shift()()}function Ce(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach((e=>Ce(e,t)));let n=!1;if(t(e,(()=>n=!0)),n)return;let i=e.firstElementChild;for(;i;)Ce(i,t),i=i.nextElementSibling}function Me(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var je=[],Le=[];function Pe(){return je.map((e=>e()))}function De(){return je.concat(Le).map((e=>e()))}function Re(e){je.push(e)}function We(e){Le.push(e)}function ze(e,t=!1){return $e(e,(e=>{if((t?De():Pe()).some((t=>e.matches(t))))return!0}))}function $e(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentElement)return $e(e.parentElement,t)}}function Ie(e,t=Ce){!function(e){fe=!0;let t=Symbol();pe=t,de.set(t,[]);let n=()=>{for(;de.get(t).length;)de.get(t).shift()();de.delete(t)};e(n),fe=!1,n()}((()=>{t(e,((e,t)=>{le(e,e.attributes).forEach((e=>e())),e._x_ignore&&t()}))}))}function Ne(e,t){return Array.isArray(t)?He(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let n=e=>e.split(" ").filter(Boolean),i=Object.entries(t).flatMap((([e,t])=>!!t&&n(e))).filter(Boolean),r=Object.entries(t).flatMap((([e,t])=>!t&&n(e))).filter(Boolean),o=[],s=[];return r.forEach((t=>{e.classList.contains(t)&&(e.classList.remove(t),s.push(t))})),i.forEach((t=>{e.classList.contains(t)||(e.classList.add(t),o.push(t))})),()=>{s.forEach((t=>e.classList.add(t))),o.forEach((t=>e.classList.remove(t)))}}(e,t):"function"==typeof t?Ne(e,t()):He(e,t)}function He(e,t){return t=!0===t?t="":t||"",n=t.split(" ").filter((t=>!e.classList.contains(t))).filter(Boolean),e.classList.add(...n),()=>{e.classList.remove(...n)};var n}function Fe(e,t){return"object"==typeof t&&null!==t?function(e,t){let n={};return Object.entries(t).forEach((([t,i])=>{n[t]=e.style[t],t.startsWith("--")||(t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),e.style.setProperty(t,i)})),setTimeout((()=>{0===e.style.length&&e.removeAttribute("style")})),()=>{Fe(e,n)}}(e,t):function(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}(e,t)}function Ve(e,t=(()=>{})){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}function Be(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=(()=>{}),i=(()=>{})){Ge(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=(()=>{}),i=(()=>{})){Ge(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}function qe(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:qe(t)}function Ge(e,t,{during:n,start:i,end:r}={},o=(()=>{}),s=(()=>{})){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(i).length&&0===Object.keys(r).length)return o(),void s();let a,c,u;!function(e,t){let n,i,r,o=Ve((()=>{W((()=>{n=!0,i||t.before(),r||(t.end(),Te()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning}))}));e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Ve((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()})),finish:o},W((()=>{t.start(),t.during()})),Se=!0,requestAnimationFrame((()=>{if(n)return;let o=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),s=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),W((()=>{t.before()})),i=!0,requestAnimationFrame((()=>{n||(W((()=>{t.end()})),Te(),setTimeout(e._x_transitioning.finish,o+s),r=!0)}))}))}(e,{start(){a=t(e,i)},during(){c=t(e,n)},before:o,end(){a(),u=t(e,r)},after:s,cleanup(){c(),u()}})}function Ue(e,t,n){if(-1===e.indexOf(t))return n;const i=e[e.indexOf(t)+1];if(!i)return n;if("scale"===t&&isNaN(i))return n;if("duration"===t){let e=i.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[i,e[e.indexOf(t)+2]].join(" "):i}ue("transition",((e,{value:t,modifiers:n,expression:i},{evaluate:r})=>{"function"==typeof i&&(i=r(i)),i?function(e,t,n){Be(e,Ne,""),{enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}}[n](t)}(e,i,t):function(e,t,n){Be(e,Fe);let i=!t.includes("in")&&!t.includes("out")&&!n,r=i||t.includes("in")||["enter"].includes(n),o=i||t.includes("out")||["leave"].includes(n);t.includes("in")&&!i&&(t=t.filter(((e,n)=>nn>t.indexOf("out"))));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),c=s||t.includes("scale"),u=a?0:1,l=c?Ue(t,"scale",95)/100:1,f=Ue(t,"delay",0),d=Ue(t,"origin","center"),p="opacity, transform",h=Ue(t,"duration",150)/1e3,m=Ue(t,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(e._x_transition.enter.during={transformOrigin:d,transitionDelay:f,transitionProperty:p,transitionDuration:`${h}s`,transitionTimingFunction:g},e._x_transition.enter.start={opacity:u,transform:`scale(${l})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"});o&&(e._x_transition.leave.during={transformOrigin:d,transitionDelay:f,transitionProperty:p,transitionDuration:`${m}s`,transitionTimingFunction:g},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:u,transform:`scale(${l})`})}(e,n,t)})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,i){let r=()=>{"visible"===document.visibilityState?requestAnimationFrame(n):setTimeout(n)};t?e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):r():e._x_transition?e._x_transition.in(n):r():(e._x_hidePromise=e._x_transition?new Promise(((t,n)=>{e._x_transition.out((()=>{}),(()=>t(i))),e._x_transitioning.beforeCancel((()=>n({isFromCancelledTransition:!0})))})):Promise.resolve(i),queueMicrotask((()=>{let t=qe(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):queueMicrotask((()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then((([e])=>e()));return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch((e=>{if(!e.isFromCancelledTransition)throw e}))}))})))};var Xe=!1;function Ye(e,t=(()=>{})){return(...n)=>Xe?t(...n):e(...n)}function Ke(e,t,n,i=[]){switch(e._x_bindings||(e._x_bindings=p({})),e._x_bindings[t]=n,t=i.includes("camel")?t.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase())):t){case"value":!function(e,t){if("radio"===e.type)void 0===e.attributes.value&&(e.value=t),window.fromModel&&(e.checked=Je(e.value,t));else if("checkbox"===e.type)Number.isInteger(t)?e.value=t:Number.isInteger(t)||Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some((t=>Je(t,e.value))):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const n=[].concat(t).map((e=>e+""));Array.from(e.options).forEach((e=>{e.selected=n.includes(e.value)}))}(e,t);else{if(e.value===t)return;e.value=t}}(e,n);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles();e._x_undoAddedStyles=Fe(e,t)}(e,n);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses();e._x_undoAddedClasses=Ne(e,t)}(e,n);break;default:!function(e,t,n){[null,void 0,!1].includes(n)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(Ze(t)&&(n=t),function(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}(e,t,n))}(e,t,n)}}function Je(e,t){return e==t}function Ze(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function Qe(e,t){var n;return function(){var i=this,r=arguments,o=function(){n=null,e.apply(i,r)};clearTimeout(n),n=setTimeout(o,t)}}function et(e,t){let n;return function(){let i=this,r=arguments;n||(e.apply(i,r),n=!0,setTimeout((()=>n=!1),t))}}var tt={},nt=!1;var it={};var rt={};var ot={get reactive(){return p},get release(){return m},get effect(){return h},get raw(){return g},version:"3.10.0",flushAndStopDeferringMutations:function(){z=!1,I($),$=[]},dontAutoEvaluateFunctions:function(e){let t=Q;Q=!1,e(),Q=t},disableEffectScheduling:function(e){O=!1,e(),O=!0},setReactivityEngine:function(e){p=e.reactive,m=e.release,h=t=>e.effect(t,{scheduler:e=>{O?w(e):e()}}),g=e.raw},closestDataStack:V,skipDuringClone:Ye,addRootSelector:Re,addInitSelector:We,addScopeToNode:H,deferMutations:function(){z=!0},mapAttributes:ye,evaluateLater:te,setEvaluator:function(e){ne=e},mergeProxies:B,findClosest:$e,closestRoot:ze,interceptor:G,transition:Ge,setStyles:Fe,mutateDom:W,directive:ue,throttle:et,debounce:Qe,evaluate:ee,initTree:Ie,nextTick:Ae,prefixed:ae,prefix:function(e){se=e},plugin:function(e){e(ot)},magic:Y,store:function(e,t){if(nt||(tt=p(tt),nt=!0),void 0===t)return tt[e];tt[e]=t,"object"==typeof t&&null!==t&&t.hasOwnProperty("init")&&"function"==typeof t.init&&tt[e].init(),q(tt[e])},start:function(){var e;document.body||Me("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `