var Et=!1,St=!1,Z=[],At=-1;function Ii(e){ki(e)}function ki(e){Z.includes(e)||Z.push(e),Di()}function Bi(e){let t=Z.indexOf(e);t!==-1&&t>At&&Z.splice(t,1)}function Di(){!St&&!Et&&(Et=!0,queueMicrotask($i))}function $i(){Et=!1,St=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Ot?Ii(n):n()}}),Qn=e.raw}function Sn(e){ie=e}function Hi(e){let t=()=>{};return[r=>{let i=ie(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(s=>s())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),fe(i))},i},()=>{t()}]}function er(e,t){let n=!0,r,i=ie(()=>{let s=e();JSON.stringify(s),n?r=s:queueMicrotask(()=>{t(s,r),r=s}),n=!1});return()=>fe(i)}var tr=[],nr=[],rr=[];function zi(e){rr.push(e)}function zt(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,nr.push(t))}function ir(e){tr.push(e)}function sr(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function or(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}function Ki(e){var t,n;for((t=e._x_effects)==null||t.forEach(Bi);(n=e._x_cleanups)!=null&&n.length;)e._x_cleanups.pop()()}var Kt=new MutationObserver(Xt),Jt=!1;function Wt(){Kt.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Jt=!0}function ar(){Ji(),Kt.disconnect(),Jt=!1}var be=[];function Ji(){let e=Kt.takeRecords();be.push(()=>e.length>0&&Xt(e));let t=be.length;queueMicrotask(()=>{if(be.length===t)for(;be.length>0;)be.shift()()})}function A(e){if(!Jt)return e();ar();let t=e();return Wt(),t}var Vt=!1,Ve=[];function Wi(){Vt=!0}function Vi(){Vt=!1,Xt(Ve),Ve=[]}function Xt(e){if(Vt){Ve=Ve.concat(e);return}let t=[],n=new Set,r=new Map,i=new Map;for(let s=0;s{o.nodeType===1&&o._x_marker&&n.add(o)}),e[s].addedNodes.forEach(o=>{if(o.nodeType===1){if(n.has(o)){n.delete(o);return}o._x_marker||t.push(o)}})),e[s].type==="attributes")){let o=e[s].target,a=e[s].attributeName,c=e[s].oldValue,l=()=>{r.has(o)||r.set(o,[]),r.get(o).push({name:a,value:o.getAttribute(a)})},u=()=>{i.has(o)||i.set(o,[]),i.get(o).push(a)};o.hasAttribute(a)&&c===null?l():o.hasAttribute(a)?(u(),l()):u()}i.forEach((s,o)=>{or(o,s)}),r.forEach((s,o)=>{tr.forEach(a=>a(o,s))});for(let s of n)t.some(o=>o.contains(s))||nr.forEach(o=>o(s));for(let s of t)s.isConnected&&rr.forEach(o=>o(s));t=null,n=null,r=null,i=null}function cr(e){return Te(ae(e))}function Re(e,t,n){return e._x_dataStack=[t,...ae(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function ae(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?ae(e.host):e.parentNode?ae(e.parentNode):[]}function Te(e){return new Proxy({objects:e},Xi)}var Xi={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(n=>Object.prototype.hasOwnProperty.call(n,t)||Reflect.has(n,t))},get({objects:e},t,n){return t=="toJSON"?Gi:Reflect.get(e.find(r=>Reflect.has(r,t))||{},t,n)},set({objects:e},t,n,r){const i=e.find(o=>Object.prototype.hasOwnProperty.call(o,t))||e[e.length-1],s=Object.getOwnPropertyDescriptor(i,t);return s!=null&&s.set&&(s!=null&&s.get)?s.set.call(r,n)||!0:Reflect.set(i,t,n)}};function Gi(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function ur(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([s,{value:o,enumerable:a}])=>{if(a===!1||o===void 0||typeof o=="object"&&o!==null&&o.__v_skip)return;let c=i===""?s:`${i}.${s}`;typeof o=="object"&&o!==null&&o._x_interceptor?r[s]=o.initialize(e,c,s):t(o)&&o!==r&&!(o instanceof Element)&&n(o,c)})};return n(e)}function lr(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,s){return e(this.initialValue,()=>Yi(r,i),o=>vt(r,i,o),i,s)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(s,o,a)=>{let c=r.initialize(s,o,a);return n.initialValue=c,i(s,o,a)}}else n.initialValue=r;return n}}function Yi(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function vt(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),vt(e[t[0]],t.slice(1),n)}}var fr={};function I(e,t){fr[e]=t}function Rt(e,t){let n=Zi(t);return Object.entries(fr).forEach(([r,i])=>{Object.defineProperty(e,`$${r}`,{get(){return i(t,n)},enumerable:!1})}),e}function Zi(e){let[t,n]=gr(e),r={interceptor:lr,...t};return zt(e,n),r}function Qi(e,t,n,...r){try{return n(...r)}catch(i){ve(i,e,t)}}function ve(e,t,n=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} ${n?'Expression: "'+n+`" `:""}`,t),setTimeout(()=>{throw e},0)}var qe=!0;function dr(e){let t=qe;qe=!1;let n=e();return qe=t,n}function Q(e,t,n={}){let r;return P(e,t)(i=>r=i,n),r}function P(...e){return pr(...e)}var pr=hr;function es(e){pr=e}function hr(e,t){let n={};Rt(n,e);let r=[n,...ae(e)],i=typeof t=="function"?ts(r,t):rs(r,t,e);return Qi.bind(null,e,t,i)}function ts(e,t){return(n=()=>{},{scope:r={},params:i=[],context:s}={})=>{let o=t.apply(Te([r,...e]),i);Xe(n,o)}}var ht={};function ns(e,t){if(ht[e])return ht[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,s=(()=>{try{let o=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(o,"name",{value:`[Alpine] ${e}`}),o}catch(o){return ve(o,t,e),Promise.resolve()}})();return ht[e]=s,s}function rs(e,t,n){let r=ns(t,n);return(i=()=>{},{scope:s={},params:o=[],context:a}={})=>{r.result=void 0,r.finished=!1;let c=Te([s,...e]);if(typeof r=="function"){let l=r.call(a,r,c).catch(u=>ve(u,n,t));r.finished?(Xe(i,r.result,c,o,n),r.result=void 0):l.then(u=>{Xe(i,u,c,o,n)}).catch(u=>ve(u,n,t)).finally(()=>r.result=void 0)}}}function Xe(e,t,n,r,i){if(qe&&typeof t=="function"){let s=t.apply(n,r);s instanceof Promise?s.then(o=>Xe(e,o,n,r)).catch(o=>ve(o,i,t)):e(s)}else typeof t=="object"&&t instanceof Promise?t.then(s=>e(s)):e(t)}var Gt="x-";function de(e=""){return Gt+e}function is(e){Gt=e}var Ge={};function v(e,t){return Ge[e]=t,{before(n){if(!Ge[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${e}\` will use the default order of execution`);return}const r=G.indexOf(n);G.splice(r>=0?r:G.indexOf("DEFAULT"),0,e)}}}function ss(e){return Object.keys(Ge).includes(e)}function Yt(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let s=Object.entries(e._x_virtualDirectives).map(([a,c])=>({name:a,value:c})),o=_r(s);s=s.map(a=>o.find(c=>c.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(s)}let r={};return t.map(wr((s,o)=>r[s]=o)).filter(Er).map(cs(r,n)).sort(us).map(s=>as(e,s))}function _r(e){return Array.from(e).map(wr()).filter(t=>!Er(t))}var Tt=!1,Se=new Map,mr=Symbol();function os(e){Tt=!0;let t=Symbol();mr=t,Se.set(t,[]);let n=()=>{for(;Se.get(t).length;)Se.get(t).shift()();Se.delete(t)},r=()=>{Tt=!1,n()};e(n),r()}function gr(e){let t=[],n=a=>t.push(a),[r,i]=Hi(e);return t.push(i),[{Alpine:Ce,effect:r,cleanup:n,evaluateLater:P.bind(P,e),evaluate:Q.bind(Q,e)},()=>t.forEach(a=>a())]}function as(e,t){let n=()=>{},r=Ge[t.type]||n,[i,s]=gr(e);sr(e,t.original,s);let o=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),Tt?Se.get(mr).push(r):r())};return o.runCleanups=s,o}var yr=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),br=e=>e;function wr(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=xr.reduce((s,o)=>o(s),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var xr=[];function Zt(e){xr.push(e)}function Er({name:e}){return Sr().test(e)}var Sr=()=>new RegExp(`^${Gt}([^:^.]+)\\b`);function cs(e,t){return({name:n,value:r})=>{let i=n.match(Sr()),s=n.match(/:([a-zA-Z0-9\-_:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:i?i[1]:null,value:s?s[1]:null,modifiers:o.map(c=>c.replace(".","")),expression:r,original:a}}}var Ct="DEFAULT",G=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Ct,"teleport"];function us(e,t){let n=G.indexOf(e.type)===-1?Ct:e.type,r=G.indexOf(t.type)===-1?Ct:t.type;return G.indexOf(n)-G.indexOf(r)}function Ae(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function ne(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>ne(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)ne(r,t),r=r.nextElementSibling}function L(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var An=!1;function ls(){An&&L("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),An=!0,document.body||L("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `