Comparing version 3.0.0 to 3.0.1
@@ -5,2 +5,2 @@ (()=>{var De=!1,Pe=!1,Q=[];function mt(e){Or(e)}function Or(e){Q.includes(e)||Q.push(e),Tr()}function Tr(){!Pe&&!De&&(De=!0,queueMicrotask(Rr))}function Rr(){De=!1,Pe=!0;for(let e=0;e<Q.length;e++)Q[e]();Q.length=0,Pe=!1}var v,k,z,Ie;function ht(e){v=e.reactive,z=e.release,k=t=>e.effect(t,{scheduler:mt}),Ie=e.raw}function Le(e){k=e}function gt(e){let t=()=>{};return[n=>{let i=k(n);e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{e._x_effects.delete(i),z(i)}},()=>{t()}]}var w=new WeakMap,_t=[],V=new WeakMap,yt=[],xt=[];function bt(e){xt.push(e)}function vt(e,t){typeof e=="function"&&t===void 0?yt.push(e):(V.has(e)||V.set(e,[]),V.get(e).push(t))}function wt(e){_t.push(e)}function Et(e,t,r){w.has(e)||w.set(e,{}),w.get(e)[t]||(w.get(e)[t]=[]),w.get(e)[t].push(r)}var Fe=new MutationObserver(St),$e=!1;function je(){Fe.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),$e=!0}function Nr(){Fe.disconnect(),$e=!1}var Z=[],Ke=!1;function kr(){Z=Z.concat(Fe.takeRecords()),Z.length&&!Ke&&(Ke=!0,queueMicrotask(()=>{Mr(),Ke=!1}))}function Mr(){St(Z),Z.length=0}function y(e){if(!$e)return e();kr(),Nr();let t=e();return je(),t}function St(e){let t=[],r=[],n=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&(e[o].type==="childList"&&(e[o].addedNodes.forEach(s=>s.nodeType===1&&t.push(s)),e[o].removedNodes.forEach(s=>s.nodeType===1&&r.push(s))),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,c=e[o].oldValue,l=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},f=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&c===null?l():s.hasAttribute(a)?(f(),l()):f()}i.forEach((o,s)=>{w.get(s)&&o.forEach(a=>{w.get(s)[a]&&w.get(s)[a].forEach(c=>c())})}),n.forEach((o,s)=>{_t.forEach(a=>a(s,o))});for(let o of t)r.includes(o)||xt.forEach(s=>s(o));for(let o of r)t.includes(o)||(w.has(o)&&(Object.entries(w.get(o)).forEach(([s,a])=>{a.forEach(c=>c())}),w.delete(o)),V.has(o)&&(V.get(o).forEach(s=>s()),V.delete(o)),yt.forEach(s=>s(o)));t=null,r=null,n=null,i=null}function de(e,t,r){return e._x_dataStack=[t,...X(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function ze(e,t){let r=e._x_dataStack[0];Object.entries(t).forEach(([n,i])=>{r[n]=i})}function X(e){return e._x_dataStack?e._x_dataStack:e instanceof ShadowRoot?X(e.host):e.parentNode?X(e.parentNode):[]}function Ve(e){return new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(t=>Object.keys(t)))),has:(t,r)=>e.some(n=>n.hasOwnProperty(r)),get:(t,r)=>(e.find(n=>n.hasOwnProperty(r))||{})[r],set:(t,r,n)=>{let i=e.find(o=>o.hasOwnProperty(r));return i?i[r]=n:e[e.length-1][r]=n,!0}})}function At(e){let t=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,r=(n,i="")=>{Object.entries(n).forEach(([o,s])=>{let a=i===""?o:`${i}.${o}`;if(typeof s=="function"&&s.interceptor){let c=s(o,a);Object.defineProperty(n,o,c[0])}t(s)&&r(s,a)})};return r(e)}function pe(e,t=()=>{}){return r=>{function n(i,o){let s=n.parent?n.parent:(p,A)=>[{},{initer(){},setter(){}}],[a,{initer:c,setter:l,initialValue:f}]=s(i,o),d=f===void 0?r:f,{init:b,set:S}=e(i,o),N=!1,M=p=>d=p,u=function(p){this[i]=p},g=p=>{N||(c.bind(p)(d,M,u.bind(p)),b.bind(p)(d,M,u.bind(p)),N=!0)};return[{get(){return g(this),d},set(p){g(this),l.bind(this)(p,M,u.bind(this)),S.bind(this)(p,M,u.bind(this))},enumerable:!0,configurable:!0},{initer:b,setter:S,initialValue:r}]}return n.interceptor=!0,t(n),typeof r=="function"&&r.interceptor&&(n.parent=r),n}}var Ot={};function x(e,t){Ot[e]=t}function ee(e,t){return Object.entries(Ot).forEach(([r,n])=>{Object.defineProperty(e,`$${r}`,{get(){return n(t,{Alpine:O,interceptor:pe})},enumerable:!0})}),e}function C(e,t,r={}){let n;return h(e,t)(i=>n=i,r),n}function h(...e){return Tt(...e)}var Tt=Be;function Rt(e){Tt=e}function Be(e,t){let r={};ee(r,e);let n=[r,...X(e)];if(typeof t=="function")return Cr(n,t);let i=Dr(n,t);return Pr.bind(null,e,t,i)}function Cr(e,t){return(r=()=>{},{scope:n={},params:i=[]}={})=>{let o=t.apply(Ve([n,...e]),i);me(r,o)}}var He={};function Ir(e){if(He[e])return He[e];let t=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)/.test(e)?`(() => { ${e} })()`:e,n=new t(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return He[e]=n,n}function Dr(e,t){let r=Ir(t);return(n=()=>{},{scope:i={},params:o=[]}={})=>{r.result=void 0,r.finished=!1;let s=Ve([i,...e]),a=r(r,s);r.finished?me(n,r.result,s,o):a.then(c=>{me(n,c,s,o)})}}function me(e,t,r,n){if(typeof t=="function"){let i=t.apply(r,n);i instanceof Promise?i.then(o=>me(e,o,r,n)):e(i)}else e(t)}function Pr(e,t,r,...n){try{return r(...n)}catch(i){throw console.warn(`Alpine Expression Error: ${i.message} | ||
`,e),i}}var We="x-";function T(e=""){return We+e}function Nt(e){We=e}var Mt={};function m(e,t){Mt[e]=t}function te(e,t,r){let n={};return Array.from(t).map(Fr((o,s)=>n[o]=s)).filter($r).map(jr(n,r)).sort(Kr).map(o=>Lr(e,o))}var Ue=!1,qe=[];function kt(e){Ue=!0;let t=()=>{for(;qe.length;)qe.shift()()},r=()=>{Ue=!1,t()};e(t),r()}function Lr(e,t){let r=()=>{},n=Mt[t.type]||r,i=[],o=d=>i.push(d),[s,a]=gt(e);i.push(a);let c={Alpine:O,effect:s,cleanup:o,evaluateLater:h.bind(h,e),evaluate:C.bind(C,e)},l=()=>i.forEach(d=>d());Et(e,t.original,l);let f=()=>{e._x_ignore||e._x_ignore_self||(n.inline&&n.inline(e,t,c),n=n.bind(n,e,t,c),Ue?qe.push(n):n())};return f.runCleanups=l,f}var he=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),ge=e=>e;function Fr(e){return({name:t,value:r})=>{let{name:n,value:i}=Ct.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var Ct=[];function B(e){Ct.push(e)}function $r({name:e}){return Dt().test(e)}var Dt=()=>new RegExp(`^${We}([^:^.]+)\\b`);function jr(e,t){return({name:r,value:n})=>{let i=r.match(Dt()),o=r.match(/:([a-zA-Z0-9\-:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:n,original:a}}}var Ge="DEFAULT",_e=["ignore","ref","data","bind","init","for","model","transition","show","if",Ge,"element"];function Kr(e,t){let r=_e.indexOf(e.type)===-1?Ge:e.type,n=_e.indexOf(t.type)===-1?Ge:t.type;return _e.indexOf(r)-_e.indexOf(n)}function H(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}var Ye=[],Je=!1;function I(e){Ye.push(e),queueMicrotask(()=>{Je||setTimeout(()=>{ye()})})}function ye(){for(Je=!1;Ye.length;)Ye.shift()()}function Pt(){Je=!0}function L(e,t){if(e instanceof ShadowRoot){Array.from(e.children).forEach(i=>L(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)L(n,t,!1),n=n.nextElementSibling}function It(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function Lt(){document.body||It("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),H(document,"alpine:initializing"),je(),bt(t=>W(t,L)),vt(t=>I(()=>zr(t))),wt((t,r)=>{te(t,r).forEach(n=>n())});let e=t=>!D(t.parentNode||D(t));Array.from(document.querySelectorAll(Qe())).filter(e).forEach(t=>{W(t)}),H(document,"alpine:initialized")}var Ft=[];function Qe(){return Ft.map(e=>e())}function U(e){Ft.push(e)}function D(e){if(Qe().some(t=>e.matches(t)))return e;if(!!e.parentElement)return D(e.parentElement)}function $t(e){return Qe().some(t=>e.matches(t))}function W(e,t=L){kt(()=>{t(e,(r,n)=>{te(r,r.attributes).forEach(i=>i()),r._x_ignore&&n()})})}var jt=new WeakMap;function zr(e){L(e,t=>{let r=jt.get(t);r&&r.forEach(n=>n()),jt.delete(t)})}function Kt(e){e(O)}var re={},zt=!1;function Vt(e,t){if(zt||(re=v(re),zt=!0),t===void 0)return re[e];typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&t.init(),re[e]=t}function Bt(){return re}var Ze=!1;function q(e){return(...t)=>Ze||e(...t)}function Ht(e,t){t._x_dataStack=e._x_dataStack,Ze=!0,Br(()=>{Vr(t)}),Ze=!1}function Vr(e){let t=!1;W(e,(n,i)=>{L(n,(o,s)=>{if(t&&$t(o))return s();t=!0,i(o,s)})})}function Br(e){let t=k;Le((r,n)=>{let i=t(r);z(i)}),e(),Le(t)}var Wt={};function Ut(e,t){Wt[e]=t}function qt(e){return Wt[e]}var Hr={get reactive(){return v},get release(){return z},get effect(){return k},get raw(){return Ie},version:"3.0.0-alpha.0",setReactivityEngine:ht,addRootSelector:U,mapAttributes:B,evaluateLater:h,setEvaluator:Rt,closestRoot:D,interceptor:pe,mutateDom:y,directive:m,evaluate:C,nextTick:I,prefix:Nt,plugin:Kt,magic:x,store:Vt,start:Lt,clone:Ht,data:Ut},O=Hr;function Xe(e,t){let r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}var qi={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},Gi={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"};var Wr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var Yi=Xe(Wr+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var Gt=Object.freeze({}),Ji=Object.freeze([]);var et=Object.assign;var Ur=Object.prototype.hasOwnProperty,ne=(e,t)=>Ur.call(e,t),F=Array.isArray,G=e=>Yt(e)==="[object Map]";var qr=e=>typeof e=="string",xe=e=>typeof e=="symbol",ie=e=>e!==null&&typeof e=="object";var Gr=Object.prototype.toString,Yt=e=>Gr.call(e),tt=e=>Yt(e).slice(8,-1);var be=e=>qr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e;var ve=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Yr=/-(\w)/g,Qi=ve(e=>e.replace(Yr,(t,r)=>r?r.toUpperCase():"")),Jr=/\B([A-Z])/g,Zi=ve(e=>e.replace(Jr,"-$1").toLowerCase()),rt=ve(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xi=ve(e=>e?`on${rt(e)}`:""),nt=(e,t)=>e!==t&&(e===e||t===t);var it=new WeakMap,oe=[],R,K=Symbol("iterate"),ot=Symbol("Map key iterate");function Qr(e){return e&&e._isEffect===!0}function Jt(e,t=Gt){Qr(e)&&(e=e.raw);let r=Zr(e,t);return t.lazy||r(),r}function Zt(e){e.active&&(Qt(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var Xr=0;function Zr(e,t){let r=function(){if(!r.active)return t.scheduler?void 0:e();if(!oe.includes(r)){Qt(r);try{return en(),oe.push(r),R=r,e()}finally{oe.pop(),Xt(),R=oe[oe.length-1]}}};return r.id=Xr++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}function Qt(e){let{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var Y=!0,st=[];function tn(){st.push(Y),Y=!1}function en(){st.push(Y),Y=!0}function Xt(){let e=st.pop();Y=e===void 0?!0:e}function E(e,t,r){if(!Y||R===void 0)return;let n=it.get(e);n||it.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(R)||(i.add(R),R.deps.push(i),R.options.onTrack&&R.options.onTrack({effect:R,target:e,type:t,key:r}))}function $(e,t,r,n,i,o){let s=it.get(e);if(!s)return;let a=new Set,c=f=>{f&&f.forEach(d=>{(d!==R||d.allowRecurse)&&a.add(d)})};if(t==="clear")s.forEach(c);else if(r==="length"&&F(e))s.forEach((f,d)=>{(d==="length"||d>=n)&&c(f)});else switch(r!==void 0&&c(s.get(r)),t){case"add":F(e)?be(r)&&c(s.get("length")):(c(s.get(K)),G(e)&&c(s.get(ot)));break;case"delete":F(e)||(c(s.get(K)),G(e)&&c(s.get(ot)));break;case"set":G(e)&&c(s.get(K));break}let l=f=>{f.options.onTrigger&&f.options.onTrigger({effect:f,target:e,key:r,type:t,newValue:n,oldValue:i,oldTarget:o}),f.options.scheduler?f.options.scheduler(f):f()};a.forEach(l)}var rn=Xe("__proto__,__v_isRef,__isVue"),er=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(xe)),nn=we(),on=we(!1,!0),sn=we(!0),an=we(!0,!0),Ee={};["includes","indexOf","lastIndexOf"].forEach(e=>{let t=Array.prototype[e];Ee[e]=function(...r){let n=_(this);for(let o=0,s=this.length;o<s;o++)E(n,"get",o+"");let i=t.apply(n,r);return i===-1||i===!1?t.apply(n,r.map(_)):i}});["push","pop","shift","unshift","splice"].forEach(e=>{let t=Array.prototype[e];Ee[e]=function(...r){tn();let n=t.apply(this,r);return Xt(),n}});function we(e=!1,t=!1){return function(n,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?ln:rr:t?cn:tr).get(n))return n;let s=F(n);if(!e&&s&&ne(Ee,i))return Reflect.get(Ee,i,o);let a=Reflect.get(n,i,o);return(xe(i)?er.has(i):rn(i))||(e||E(n,"get",i),t)?a:at(a)?!s||!be(i)?a.value:a:ie(a)?e?nr(a):Se(a):a}}var un=ir(),fn=ir(!0);function ir(e=!1){return function(r,n,i,o){let s=r[n];if(!e&&(i=_(i),s=_(s),!F(r)&&at(s)&&!at(i)))return s.value=i,!0;let a=F(r)&&be(n)?Number(n)<r.length:ne(r,n),c=Reflect.set(r,n,i,o);return r===_(o)&&(a?nt(i,s)&&$(r,"set",n,i,s):$(r,"add",n,i)),c}}function dn(e,t){let r=ne(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&$(e,"delete",t,void 0,n),i}function pn(e,t){let r=Reflect.has(e,t);return(!xe(t)||!er.has(t))&&E(e,"has",t),r}function mn(e){return E(e,"iterate",F(e)?"length":K),Reflect.ownKeys(e)}var or={get:nn,set:un,deleteProperty:dn,has:pn,ownKeys:mn},sr={get:sn,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},oo=et({},or,{get:on,set:fn}),so=et({},sr,{get:an}),ct=e=>ie(e)?Se(e):e,lt=e=>ie(e)?nr(e):e,ut=e=>e,Ae=e=>Reflect.getPrototypeOf(e);function Oe(e,t,r=!1,n=!1){e=e.__v_raw;let i=_(e),o=_(t);t!==o&&!r&&E(i,"get",t),!r&&E(i,"get",o);let{has:s}=Ae(i),a=n?ut:r?lt:ct;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o))}function Te(e,t=!1){let r=this.__v_raw,n=_(r),i=_(e);return e!==i&&!t&&E(n,"has",e),!t&&E(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function Re(e,t=!1){return e=e.__v_raw,!t&&E(_(e),"iterate",K),Reflect.get(e,"size",e)}function ar(e){e=_(e);let t=_(this);return Ae(t).has.call(t,e)||(t.add(e),$(t,"add",e,e)),this}function lr(e,t){t=_(t);let r=_(this),{has:n,get:i}=Ae(r),o=n.call(r,e);o?cr(r,n,e):(e=_(e),o=n.call(r,e));let s=i.call(r,e);return r.set(e,t),o?nt(t,s)&&$(r,"set",e,t,s):$(r,"add",e,t),this}function ur(e){let t=_(this),{has:r,get:n}=Ae(t),i=r.call(t,e);i?cr(t,r,e):(e=_(e),i=r.call(t,e));let o=n?n.call(t,e):void 0,s=t.delete(e);return i&&$(t,"delete",e,void 0,o),s}function fr(){let e=_(this),t=e.size!==0,r=G(e)?new Map(e):new Set(e),n=e.clear();return t&&$(e,"clear",void 0,void 0,r),n}function Ne(e,t){return function(n,i){let o=this,s=o.__v_raw,a=_(s),c=t?ut:e?lt:ct;return!e&&E(a,"iterate",K),s.forEach((l,f)=>n.call(i,c(l),c(f),o))}}function Me(e,t,r){return function(...n){let i=this.__v_raw,o=_(i),s=G(o),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,l=i[e](...n),f=r?ut:t?lt:ct;return!t&&E(o,"iterate",c?ot:K),{next(){let{value:d,done:b}=l.next();return b?{value:d,done:b}:{value:a?[f(d[0]),f(d[1])]:f(d),done:b}},[Symbol.iterator](){return this}}}}function j(e){return function(...t){{let r=t[0]?`on key "${t[0]}" `:"";console.warn(`${rt(e)} operation ${r}failed: target is readonly.`,_(this))}return e==="delete"?!1:this}}var dr={get(e){return Oe(this,e)},get size(){return Re(this)},has:Te,add:ar,set:lr,delete:ur,clear:fr,forEach:Ne(!1,!1)},pr={get(e){return Oe(this,e,!1,!0)},get size(){return Re(this)},has:Te,add:ar,set:lr,delete:ur,clear:fr,forEach:Ne(!1,!0)},mr={get(e){return Oe(this,e,!0)},get size(){return Re(this,!0)},has(e){return Te.call(this,e,!0)},add:j("add"),set:j("set"),delete:j("delete"),clear:j("clear"),forEach:Ne(!0,!1)},hr={get(e){return Oe(this,e,!0,!0)},get size(){return Re(this,!0)},has(e){return Te.call(this,e,!0)},add:j("add"),set:j("set"),delete:j("delete"),clear:j("clear"),forEach:Ne(!0,!0)},hn=["keys","values","entries",Symbol.iterator];hn.forEach(e=>{dr[e]=Me(e,!1,!1),mr[e]=Me(e,!0,!1),pr[e]=Me(e,!1,!0),hr[e]=Me(e,!0,!0)});function ke(e,t){let r=t?e?hr:pr:e?mr:dr;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ne(r,i)&&i in n?r:n,i,o)}var gn={get:ke(!1,!1)},ao={get:ke(!1,!0)},_n={get:ke(!0,!1)},co={get:ke(!0,!0)};function cr(e,t,r){let n=_(r);if(n!==r&&t.call(e,n)){let i=tt(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var tr=new WeakMap,cn=new WeakMap,rr=new WeakMap,ln=new WeakMap;function yn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xn(e){return e.__v_skip||!Object.isExtensible(e)?0:yn(tt(e))}function Se(e){return e&&e.__v_isReadonly?e:gr(e,!1,or,gn,tr)}function nr(e){return gr(e,!0,sr,_n,rr)}function gr(e,t,r,n,i){if(!ie(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=i.get(e);if(o)return o;let s=xn(e);if(s===0)return e;let a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function _(e){return e&&_(e.__v_raw)||e}function at(e){return Boolean(e&&e.__v_isRef===!0)}x("nextTick",()=>I);x("dispatch",e=>H.bind(H,e));x("watch",e=>(t,r)=>{let n=h(e,t),i=!0,o;k(()=>n(s=>{let a=document.createElement("div");a.dataset.throwAway=s,i||r(s,o),o=s,i=!1}))});x("store",Bt);x("refs",e=>D(e)._x_refs||{});x("el",e=>e);function Ce(e,t){return Array.isArray(t)?_r(e,t.join(" ")):typeof t=="object"&&t!==null?bn(e,t):_r(e,t)}function _r(e,t){let r=o=>o.split(" ").filter(Boolean),n=o=>o.split(" ").filter(s=>!e.classList.contains(s)).filter(Boolean),i=o=>(e.classList.add(...o),()=>{e.classList.remove(...o)});return t=t===!0?t="":t||"",i(n(t))}function bn(e,t){let r=a=>a.split(" ").filter(Boolean),n=Object.entries(t).flatMap(([a,c])=>c?r(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,c])=>c?!1:r(a)).filter(Boolean),o=[],s=[];return n.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),o.push(a))}),i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),()=>{o.forEach(a=>e.classList.remove(a)),s.forEach(a=>e.classList.add(a))}}function se(e,t){return typeof t=="object"&&t!==null?vn(e,t):wn(e,t)}function vn(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{r[n]=e.style[n],e.style[n]=i}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{se(e,r)}}function wn(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r)}}function ae(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}m("transition",(e,{value:t,modifiers:r,expression:n})=>{n?En(e,n,t):Sn(e,r,t)});function En(e,t,r){yr(e,Ce,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[r](t)}function Sn(e,t,r){yr(e,se);let n=!t.includes("in")&&!t.includes("out")&&!r,i=n||t.includes("in")||["enter"].includes(r),o=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter((g,p)=>p<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((g,p)=>p>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),c=s||t.includes("scale"),l=a?0:1,f=c?ce(t,"scale",95)/100:1,d=ce(t,"delay",0),b=ce(t,"origin","center"),S="opacity, transform",N=ce(t,"duration",150)/1e3,M=ce(t,"duration",75)/1e3,u="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:b,transitionDelay:d,transitionProperty:S,transitionDuration:`${N}s`,transitionTimingFunction:u},e._x_transition.enter.start={opacity:l,transform:`scale(${f})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:b,transitionDelay:d,transitionProperty:S,transitionDuration:`${M}s`,transitionTimingFunction:u},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:l,transform:`scale(${f})`})}function yr(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){return xr(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end,entering:!0},n,i)},out(n=()=>{},i=()=>{}){return xr(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end,entering:!1},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){let i=()=>requestAnimationFrame(r);if(t){e._x_transition?e._x_transition.in(r):i();return}e._x_hide_promise=e._x_transition?new Promise((o,s)=>{e._x_transition.out(()=>{},()=>o(n)),e._x_transitioning.beforeCancel(()=>s({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let o=br(e);o?(o._x_hide_children||(o._x_hide_children=[]),o._x_hide_children.push(e)):queueMicrotask(()=>{let s=a=>{let c=Promise.all([a._x_hide_promise,...(a._x_hide_children||[]).map(s)]).then(([l])=>l());return delete a._x_hide_promise,delete a._x_hide_children,c};s(e).catch(a=>{if(!a.isFromCancelledTransition)throw a})})})};function br(e){let t=e.parentNode;if(!!t)return t._x_hide_promise?t:br(t)}function xr(e,t,{during:r,start:n,end:i,entering:o}={},s=()=>{},a=()=>{}){e._x_transitioning&&e._x_transitioning.cancel();let c,l,f;An(e,{start(){c=t(e,n)},during(){l=t(e,r)},before:s,end(){c(),f=t(e,i)},after:a,cleanup(){l(),f()}},o)}function An(e,t,r){let n,i,o,s=ae(()=>{y(()=>{n=!0,i||t.before(),o||(t.end(),ye()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(a){this.beforeCancels.push(a)},cancel:ae(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();s()}),finish:s,entering:r},y(()=>{t.start(),t.during()}),Pt(),requestAnimationFrame(()=>{if(n)return;let a=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,c=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;a===0&&(a=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),y(()=>{t.before()}),i=!0,requestAnimationFrame(()=>{n||(y(()=>{t.end()}),ye(),setTimeout(e._x_transitioning.finish,a+c),o=!0)})})}function ce(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return r;if(t==="duration"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}var vr=()=>{};vr.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignore_self=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignore_self:delete e._x_ignore})};m("ignore",vr);m("effect",(e,{expression:t},{effect:r})=>r(h(e,t)));function le(e,t,r,n=[]){switch(e._x_bindings||(e._x_bindings=v({})),e._x_bindings[t]=r,t=n.includes("camel")?Mn(t):t,t){case"value":On(e,r);break;case"style":Rn(e,r);break;case"class":Tn(e,r);break;default:Nn(e,t,r);break}}function On(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(e.checked=wr(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Number.isInteger(t)&&!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(r=>wr(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")kn(e,t);else{if(e.value===t)return;e.value=t}}function Tn(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Ce(e,t)}function Rn(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=se(e,t)}function Nn(e,t,r){[null,void 0,!1].includes(r)&&Pn(t)?e.removeAttribute(t):(Dn(t)&&(r=t),Cn(e,t,r))}function Cn(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function kn(e,t){let r=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=r.includes(n.value)})}function Mn(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function wr(e,t){return e==t}function Dn(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 Pn(e){return!["aria-pressed","aria-checked"].includes(e)}function ue(e,t,r,n){let i=e,o=c=>n(c),s={},a=(c,l)=>f=>l(c,f);if(r.includes("camel")&&(t=In(t)),r.includes("passive")&&(s.passive=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("prevent")&&(o=a(o,(c,l)=>{l.preventDefault(),c(l)})),r.includes("stop")&&(o=a(o,(c,l)=>{l.stopPropagation(),c(l)})),r.includes("self")&&(o=a(o,(c,l)=>{l.target===e&&c(l)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(c,l)=>{e.contains(l.target)||e.offsetWidth<1&&e.offsetHeight<1||c(l)})),o=a(o,(c,l)=>{$n(t)&&jn(l,r)||c(l)}),r.includes("debounce")){let c=r[r.indexOf("debounce")+1]||"invalid-wait",l=ft(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=Ln(o,l,this)}if(r.includes("throttle")){let c=r[r.indexOf("throttle")+1]||"invalid-wait",l=ft(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=Fn(o,l,this)}return r.includes("once")&&(o=a(o,(c,l)=>{c(l),i.removeEventListener(t,o,s)})),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function In(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function Ln(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}function Fn(e,t){let r;return function(){let n=this,i=arguments;r||(e.apply(n,i),r=!0,setTimeout(()=>r=!1,t))}}function ft(e){return!Array.isArray(e)&&!isNaN(e)}function Kn(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function $n(e){return["keydown","keyup"].includes(e)}function jn(e,t){let r=t.filter(o=>!["window","document","prevent","stop","once"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,ft((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&r[0]===Er(e.key))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&r[0]===Er(e.key))}function Er(e){switch(e){case"/":return"slash";case" ":case"Spacebar":return"space";default:return e&&Kn(e)}}m("model",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=h(e,r),s=`${r} = rightSideOfExpression($event, ${r})`,a=h(e,s);var c=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let l=zn(e,t,r),f=ue(e,c,t,d=>{a(()=>{},{scope:{$event:d,rightSideOfExpression:l}})});i(()=>f()),e._x_forceModelUpdate=()=>{o(d=>{d===void 0&&r.match(/\./)&&(d=""),window.fromModel=!0,y(()=>le(e,"value",d)),delete window.fromModel})},n(()=>{t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate()})});function zn(e,t,r){return e.type==="radio"&&y(()=>{e.hasAttribute("name")||e.setAttribute("name",r)}),(n,i)=>y(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail;if(e.type==="checkbox")if(Array.isArray(i)){let o=t.includes("number")?dt(n.target.value):n.target.value;return n.target.checked?i.concat([o]):i.filter(s=>!Vn(s,o))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(o=>{let s=o.value||o.text;return dt(s)}):Array.from(n.target.selectedOptions).map(o=>o.value||o.text);{let o=n.target.value;return t.includes("number")?dt(o):t.includes("trim")?o.trim():o}}})}function dt(e){let t=e?parseFloat(e):null;return Bn(t)?t:e}function Vn(e,t){return e==t}function Bn(e){return!Array.isArray(e)&&!isNaN(e)}m("cloak",e=>I(()=>y(()=>e.removeAttribute(T("cloak")))));U(()=>`[${T("init")}]`);m("init",q((e,{expression:t})=>C(e,t,{},!1)));m("text",(e,{expression:t},{effect:r,cleanup:n})=>{let i=h(e,t);r(()=>{i(o=>{y(()=>{e.textContent=o})})})});B(he(":",ge(T("bind:"))));m("bind",(e,{value:t,modifiers:r,expression:n,original:i},{effect:o})=>{if(!t)return Hn(e,n,i,o);if(t==="key")return Wn(e,n);let s=h(e,n);o(()=>s(a=>{y(()=>le(e,t,a,r))}))});function Hn(e,t,r,n){let i=h(e,t),o=[];n(()=>{for(;o.length;)o.pop()();i(s=>{let a=Object.entries(s).map(([c,l])=>({name:c,value:l}));te(e,a,r).map(c=>{o.push(c.runCleanups),c()})})})}function Wn(e,t){e._x_key_expression=t}U(()=>`[${T("data")}]`);m("data",q((e,{expression:t},{cleanup:r})=>{t=t===""?"{}":t;let n=qt(t),i={};if(n){let a=ee({},e);i=n.bind(a)()}else i=C(e,t);At(i),ee(i,e);let o=v(i),s=de(e,o);o.init&&o.init(),r(()=>{s(),o.destroy&&o.destroy()})}));m("show",(e,{modifiers:t,expression:r},{effect:n})=>{let i=h(e,r),o=()=>y(()=>{e.style.display="none",e._x_is_shown=!1}),s=()=>y(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display"),e._x_is_shown=!0}),a=()=>setTimeout(s),c=ae(l=>l?s():o(),l=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,l,s,o):l?a():o()});n(()=>i(l=>{t.includes("immediate")&&(l?a():o()),c(l)}))});m("for",(e,{expression:t},{effect:r,cleanup:n})=>{let i=qn(t),o=h(e,i.items),s=h(e,e._x_key_expression||"index");e._x_prev_keys=[],e._x_lookup={},r(()=>Un(e,i,o,s)),n(()=>{Object.values(e._x_lookup).forEach(a=>a.remove()),delete e._x_prev_keys,delete e._x_lookup})});function Un(e,t,r,n){let i=s=>typeof s=="object"&&!Array.isArray(s),o=e;r(s=>{Gn(s)&&s>=0&&(s=Array.from(Array(s).keys(),u=>u+1));let a=e._x_lookup,c=e._x_prev_keys,l=[],f=[];if(i(s))s=Object.entries(s).map(([u,g])=>{let p=Sr(t,g,u,s);n(A=>f.push(A),{scope:{index:u,...p}}),l.push(p)});else for(let u=0;u<s.length;u++){let g=Sr(t,s[u],u,s);n(p=>f.push(p),{scope:{index:u,...g}}),l.push(g)}let d=[],b=[],S=[],N=[];for(let u=0;u<c.length;u++){let g=c[u];f.indexOf(g)===-1&&S.push(g)}c=c.filter(u=>!S.includes(u));let M="template";for(let u=0;u<f.length;u++){let g=f[u],p=c.indexOf(g);if(p===-1)c.splice(u,0,g),d.push([M,u]);else if(p!==u){let A=c.splice(u,1)[0],P=c.splice(p-1,1)[0];c.splice(u,0,P),c.splice(p,0,A),b.push([A,P])}else N.push(g);M=g}for(let u=0;u<S.length;u++){let g=S[u];a[g].remove(),a[g]=null,delete a[g]}for(let u=0;u<b.length;u++){let[g,p]=b[u],A=a[g],P=a[p],J=document.createElement("div");y(()=>{P.after(J),A.after(P),J.before(A),J.remove()}),ze(P,l[f.indexOf(p)])}for(let u=0;u<d.length;u++){let[g,p]=d[u],A=g==="template"?o:a[g],P=l[p],J=f[p],fe=document.importNode(o.content,!0).firstElementChild;de(fe,v(P),o),W(fe),y(()=>{A.after(fe)}),a[J]=fe}for(let u=0;u<N.length;u++)ze(a[N[u]],l[f.indexOf(N[u])]);o._x_prev_keys=f})}function qn(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\(|\)$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].trim().replace(r,""),a=s.match(t);return a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function Sr(e,t,r,n){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=t[a]}):i[e.item]=t,e.index&&(i[e.index]=r),e.collection&&(i[e.collection]=n),i}function Gn(e){return!Array.isArray(e)&&!isNaN(e)}function Ar(){}Ar.inline=(e,{expression:t},{cleanup:r})=>{let n=D(e);n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r(()=>delete n._x_refs[t])};m("ref",Ar);m("if",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=h(e,r),s=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let c=e.content.cloneNode(!0).firstElementChild;return e.after(c),e._x_currentIfEl=c,e._x_undoIf=()=>{c.remove(),delete e._x_currentIfEl},c},a=()=>e._x_undoIf?.()||delete e._x_undoIf;n(()=>o(c=>{c?s():a()})),i(()=>e._x_undoIf&&e._x_undoIf())});B(he("@",ge(T("on:"))));m("on",q((e,{value:t,modifiers:r,expression:n},{cleanup:i})=>{let o=n?h(e,n):()=>{},s=ue(e,t,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));O.setEvaluator(Be);O.setReactivityEngine({reactive:Se,effect:Jt,release:Zt,raw:_});var pt=O;window.Alpine=pt;queueMicrotask(()=>{pt.start()});})(); | ||
`,e),i}}var We="x-";function T(e=""){return We+e}function Nt(e){We=e}var Mt={};function m(e,t){Mt[e]=t}function te(e,t,r){let n={};return Array.from(t).map(Fr((o,s)=>n[o]=s)).filter($r).map(jr(n,r)).sort(Kr).map(o=>Lr(e,o))}var Ue=!1,qe=[];function kt(e){Ue=!0;let t=()=>{for(;qe.length;)qe.shift()()},r=()=>{Ue=!1,t()};e(t),r()}function Lr(e,t){let r=()=>{},n=Mt[t.type]||r,i=[],o=d=>i.push(d),[s,a]=gt(e);i.push(a);let c={Alpine:O,effect:s,cleanup:o,evaluateLater:h.bind(h,e),evaluate:C.bind(C,e)},l=()=>i.forEach(d=>d());Et(e,t.original,l);let f=()=>{e._x_ignore||e._x_ignore_self||(n.inline&&n.inline(e,t,c),n=n.bind(n,e,t,c),Ue?qe.push(n):n())};return f.runCleanups=l,f}var he=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),ge=e=>e;function Fr(e){return({name:t,value:r})=>{let{name:n,value:i}=Ct.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var Ct=[];function B(e){Ct.push(e)}function $r({name:e}){return Dt().test(e)}var Dt=()=>new RegExp(`^${We}([^:^.]+)\\b`);function jr(e,t){return({name:r,value:n})=>{let i=r.match(Dt()),o=r.match(/:([a-zA-Z0-9\-:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:n,original:a}}}var Ge="DEFAULT",_e=["ignore","ref","data","bind","init","for","model","transition","show","if",Ge,"element"];function Kr(e,t){let r=_e.indexOf(e.type)===-1?Ge:e.type,n=_e.indexOf(t.type)===-1?Ge:t.type;return _e.indexOf(r)-_e.indexOf(n)}function H(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}var Ye=[],Je=!1;function I(e){Ye.push(e),queueMicrotask(()=>{Je||setTimeout(()=>{ye()})})}function ye(){for(Je=!1;Ye.length;)Ye.shift()()}function Pt(){Je=!0}function L(e,t){if(e instanceof ShadowRoot){Array.from(e.children).forEach(i=>L(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)L(n,t,!1),n=n.nextElementSibling}function It(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function Lt(){document.body||It("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),H(document,"alpine:initializing"),je(),bt(t=>W(t,L)),vt(t=>I(()=>zr(t))),wt((t,r)=>{te(t,r).forEach(n=>n())});let e=t=>!D(t.parentNode||D(t));Array.from(document.querySelectorAll(Qe())).filter(e).forEach(t=>{W(t)}),H(document,"alpine:initialized")}var Ft=[];function Qe(){return Ft.map(e=>e())}function U(e){Ft.push(e)}function D(e){if(Qe().some(t=>e.matches(t)))return e;if(!!e.parentElement)return D(e.parentElement)}function $t(e){return Qe().some(t=>e.matches(t))}function W(e,t=L){kt(()=>{t(e,(r,n)=>{te(r,r.attributes).forEach(i=>i()),r._x_ignore&&n()})})}var jt=new WeakMap;function zr(e){L(e,t=>{let r=jt.get(t);r&&r.forEach(n=>n()),jt.delete(t)})}function Kt(e){e(O)}var re={},zt=!1;function Vt(e,t){if(zt||(re=v(re),zt=!0),t===void 0)return re[e];typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&t.init(),re[e]=t}function Bt(){return re}var Ze=!1;function q(e){return(...t)=>Ze||e(...t)}function Ht(e,t){t._x_dataStack=e._x_dataStack,Ze=!0,Br(()=>{Vr(t)}),Ze=!1}function Vr(e){let t=!1;W(e,(n,i)=>{L(n,(o,s)=>{if(t&&$t(o))return s();t=!0,i(o,s)})})}function Br(e){let t=k;Le((r,n)=>{let i=t(r);z(i)}),e(),Le(t)}var Wt={};function Ut(e,t){Wt[e]=t}function qt(e){return Wt[e]}var Hr={get reactive(){return v},get release(){return z},get effect(){return k},get raw(){return Ie},version:"3.0.1",setReactivityEngine:ht,addRootSelector:U,mapAttributes:B,evaluateLater:h,setEvaluator:Rt,closestRoot:D,interceptor:pe,mutateDom:y,directive:m,evaluate:C,nextTick:I,prefix:Nt,plugin:Kt,magic:x,store:Vt,start:Lt,clone:Ht,data:Ut},O=Hr;function Xe(e,t){let r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}var qi={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},Gi={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"};var Wr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var Yi=Xe(Wr+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var Gt=Object.freeze({}),Ji=Object.freeze([]);var et=Object.assign;var Ur=Object.prototype.hasOwnProperty,ne=(e,t)=>Ur.call(e,t),F=Array.isArray,G=e=>Yt(e)==="[object Map]";var qr=e=>typeof e=="string",xe=e=>typeof e=="symbol",ie=e=>e!==null&&typeof e=="object";var Gr=Object.prototype.toString,Yt=e=>Gr.call(e),tt=e=>Yt(e).slice(8,-1);var be=e=>qr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e;var ve=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Yr=/-(\w)/g,Qi=ve(e=>e.replace(Yr,(t,r)=>r?r.toUpperCase():"")),Jr=/\B([A-Z])/g,Zi=ve(e=>e.replace(Jr,"-$1").toLowerCase()),rt=ve(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xi=ve(e=>e?`on${rt(e)}`:""),nt=(e,t)=>e!==t&&(e===e||t===t);var it=new WeakMap,oe=[],R,K=Symbol("iterate"),ot=Symbol("Map key iterate");function Qr(e){return e&&e._isEffect===!0}function Jt(e,t=Gt){Qr(e)&&(e=e.raw);let r=Zr(e,t);return t.lazy||r(),r}function Zt(e){e.active&&(Qt(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var Xr=0;function Zr(e,t){let r=function(){if(!r.active)return t.scheduler?void 0:e();if(!oe.includes(r)){Qt(r);try{return en(),oe.push(r),R=r,e()}finally{oe.pop(),Xt(),R=oe[oe.length-1]}}};return r.id=Xr++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}function Qt(e){let{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var Y=!0,st=[];function tn(){st.push(Y),Y=!1}function en(){st.push(Y),Y=!0}function Xt(){let e=st.pop();Y=e===void 0?!0:e}function E(e,t,r){if(!Y||R===void 0)return;let n=it.get(e);n||it.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(R)||(i.add(R),R.deps.push(i),R.options.onTrack&&R.options.onTrack({effect:R,target:e,type:t,key:r}))}function $(e,t,r,n,i,o){let s=it.get(e);if(!s)return;let a=new Set,c=f=>{f&&f.forEach(d=>{(d!==R||d.allowRecurse)&&a.add(d)})};if(t==="clear")s.forEach(c);else if(r==="length"&&F(e))s.forEach((f,d)=>{(d==="length"||d>=n)&&c(f)});else switch(r!==void 0&&c(s.get(r)),t){case"add":F(e)?be(r)&&c(s.get("length")):(c(s.get(K)),G(e)&&c(s.get(ot)));break;case"delete":F(e)||(c(s.get(K)),G(e)&&c(s.get(ot)));break;case"set":G(e)&&c(s.get(K));break}let l=f=>{f.options.onTrigger&&f.options.onTrigger({effect:f,target:e,key:r,type:t,newValue:n,oldValue:i,oldTarget:o}),f.options.scheduler?f.options.scheduler(f):f()};a.forEach(l)}var rn=Xe("__proto__,__v_isRef,__isVue"),er=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(xe)),nn=we(),on=we(!1,!0),sn=we(!0),an=we(!0,!0),Ee={};["includes","indexOf","lastIndexOf"].forEach(e=>{let t=Array.prototype[e];Ee[e]=function(...r){let n=_(this);for(let o=0,s=this.length;o<s;o++)E(n,"get",o+"");let i=t.apply(n,r);return i===-1||i===!1?t.apply(n,r.map(_)):i}});["push","pop","shift","unshift","splice"].forEach(e=>{let t=Array.prototype[e];Ee[e]=function(...r){tn();let n=t.apply(this,r);return Xt(),n}});function we(e=!1,t=!1){return function(n,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?ln:rr:t?cn:tr).get(n))return n;let s=F(n);if(!e&&s&&ne(Ee,i))return Reflect.get(Ee,i,o);let a=Reflect.get(n,i,o);return(xe(i)?er.has(i):rn(i))||(e||E(n,"get",i),t)?a:at(a)?!s||!be(i)?a.value:a:ie(a)?e?nr(a):Se(a):a}}var un=ir(),fn=ir(!0);function ir(e=!1){return function(r,n,i,o){let s=r[n];if(!e&&(i=_(i),s=_(s),!F(r)&&at(s)&&!at(i)))return s.value=i,!0;let a=F(r)&&be(n)?Number(n)<r.length:ne(r,n),c=Reflect.set(r,n,i,o);return r===_(o)&&(a?nt(i,s)&&$(r,"set",n,i,s):$(r,"add",n,i)),c}}function dn(e,t){let r=ne(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&$(e,"delete",t,void 0,n),i}function pn(e,t){let r=Reflect.has(e,t);return(!xe(t)||!er.has(t))&&E(e,"has",t),r}function mn(e){return E(e,"iterate",F(e)?"length":K),Reflect.ownKeys(e)}var or={get:nn,set:un,deleteProperty:dn,has:pn,ownKeys:mn},sr={get:sn,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},oo=et({},or,{get:on,set:fn}),so=et({},sr,{get:an}),ct=e=>ie(e)?Se(e):e,lt=e=>ie(e)?nr(e):e,ut=e=>e,Ae=e=>Reflect.getPrototypeOf(e);function Oe(e,t,r=!1,n=!1){e=e.__v_raw;let i=_(e),o=_(t);t!==o&&!r&&E(i,"get",t),!r&&E(i,"get",o);let{has:s}=Ae(i),a=n?ut:r?lt:ct;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o))}function Te(e,t=!1){let r=this.__v_raw,n=_(r),i=_(e);return e!==i&&!t&&E(n,"has",e),!t&&E(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function Re(e,t=!1){return e=e.__v_raw,!t&&E(_(e),"iterate",K),Reflect.get(e,"size",e)}function ar(e){e=_(e);let t=_(this);return Ae(t).has.call(t,e)||(t.add(e),$(t,"add",e,e)),this}function lr(e,t){t=_(t);let r=_(this),{has:n,get:i}=Ae(r),o=n.call(r,e);o?cr(r,n,e):(e=_(e),o=n.call(r,e));let s=i.call(r,e);return r.set(e,t),o?nt(t,s)&&$(r,"set",e,t,s):$(r,"add",e,t),this}function ur(e){let t=_(this),{has:r,get:n}=Ae(t),i=r.call(t,e);i?cr(t,r,e):(e=_(e),i=r.call(t,e));let o=n?n.call(t,e):void 0,s=t.delete(e);return i&&$(t,"delete",e,void 0,o),s}function fr(){let e=_(this),t=e.size!==0,r=G(e)?new Map(e):new Set(e),n=e.clear();return t&&$(e,"clear",void 0,void 0,r),n}function Ne(e,t){return function(n,i){let o=this,s=o.__v_raw,a=_(s),c=t?ut:e?lt:ct;return!e&&E(a,"iterate",K),s.forEach((l,f)=>n.call(i,c(l),c(f),o))}}function Me(e,t,r){return function(...n){let i=this.__v_raw,o=_(i),s=G(o),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,l=i[e](...n),f=r?ut:t?lt:ct;return!t&&E(o,"iterate",c?ot:K),{next(){let{value:d,done:b}=l.next();return b?{value:d,done:b}:{value:a?[f(d[0]),f(d[1])]:f(d),done:b}},[Symbol.iterator](){return this}}}}function j(e){return function(...t){{let r=t[0]?`on key "${t[0]}" `:"";console.warn(`${rt(e)} operation ${r}failed: target is readonly.`,_(this))}return e==="delete"?!1:this}}var dr={get(e){return Oe(this,e)},get size(){return Re(this)},has:Te,add:ar,set:lr,delete:ur,clear:fr,forEach:Ne(!1,!1)},pr={get(e){return Oe(this,e,!1,!0)},get size(){return Re(this)},has:Te,add:ar,set:lr,delete:ur,clear:fr,forEach:Ne(!1,!0)},mr={get(e){return Oe(this,e,!0)},get size(){return Re(this,!0)},has(e){return Te.call(this,e,!0)},add:j("add"),set:j("set"),delete:j("delete"),clear:j("clear"),forEach:Ne(!0,!1)},hr={get(e){return Oe(this,e,!0,!0)},get size(){return Re(this,!0)},has(e){return Te.call(this,e,!0)},add:j("add"),set:j("set"),delete:j("delete"),clear:j("clear"),forEach:Ne(!0,!0)},hn=["keys","values","entries",Symbol.iterator];hn.forEach(e=>{dr[e]=Me(e,!1,!1),mr[e]=Me(e,!0,!1),pr[e]=Me(e,!1,!0),hr[e]=Me(e,!0,!0)});function ke(e,t){let r=t?e?hr:pr:e?mr:dr;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ne(r,i)&&i in n?r:n,i,o)}var gn={get:ke(!1,!1)},ao={get:ke(!1,!0)},_n={get:ke(!0,!1)},co={get:ke(!0,!0)};function cr(e,t,r){let n=_(r);if(n!==r&&t.call(e,n)){let i=tt(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var tr=new WeakMap,cn=new WeakMap,rr=new WeakMap,ln=new WeakMap;function yn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xn(e){return e.__v_skip||!Object.isExtensible(e)?0:yn(tt(e))}function Se(e){return e&&e.__v_isReadonly?e:gr(e,!1,or,gn,tr)}function nr(e){return gr(e,!0,sr,_n,rr)}function gr(e,t,r,n,i){if(!ie(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=i.get(e);if(o)return o;let s=xn(e);if(s===0)return e;let a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function _(e){return e&&_(e.__v_raw)||e}function at(e){return Boolean(e&&e.__v_isRef===!0)}x("nextTick",()=>I);x("dispatch",e=>H.bind(H,e));x("watch",e=>(t,r)=>{let n=h(e,t),i=!0,o;k(()=>n(s=>{let a=document.createElement("div");a.dataset.throwAway=s,i||r(s,o),o=s,i=!1}))});x("store",Bt);x("refs",e=>D(e)._x_refs||{});x("el",e=>e);function Ce(e,t){return Array.isArray(t)?_r(e,t.join(" ")):typeof t=="object"&&t!==null?bn(e,t):_r(e,t)}function _r(e,t){let r=o=>o.split(" ").filter(Boolean),n=o=>o.split(" ").filter(s=>!e.classList.contains(s)).filter(Boolean),i=o=>(e.classList.add(...o),()=>{e.classList.remove(...o)});return t=t===!0?t="":t||"",i(n(t))}function bn(e,t){let r=a=>a.split(" ").filter(Boolean),n=Object.entries(t).flatMap(([a,c])=>c?r(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,c])=>c?!1:r(a)).filter(Boolean),o=[],s=[];return n.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),o.push(a))}),i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),()=>{o.forEach(a=>e.classList.remove(a)),s.forEach(a=>e.classList.add(a))}}function se(e,t){return typeof t=="object"&&t!==null?vn(e,t):wn(e,t)}function vn(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{r[n]=e.style[n],e.style[n]=i}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{se(e,r)}}function wn(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r)}}function ae(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}m("transition",(e,{value:t,modifiers:r,expression:n})=>{n?En(e,n,t):Sn(e,r,t)});function En(e,t,r){yr(e,Ce,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[r](t)}function Sn(e,t,r){yr(e,se);let n=!t.includes("in")&&!t.includes("out")&&!r,i=n||t.includes("in")||["enter"].includes(r),o=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter((g,p)=>p<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((g,p)=>p>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),c=s||t.includes("scale"),l=a?0:1,f=c?ce(t,"scale",95)/100:1,d=ce(t,"delay",0),b=ce(t,"origin","center"),S="opacity, transform",N=ce(t,"duration",150)/1e3,M=ce(t,"duration",75)/1e3,u="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:b,transitionDelay:d,transitionProperty:S,transitionDuration:`${N}s`,transitionTimingFunction:u},e._x_transition.enter.start={opacity:l,transform:`scale(${f})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:b,transitionDelay:d,transitionProperty:S,transitionDuration:`${M}s`,transitionTimingFunction:u},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:l,transform:`scale(${f})`})}function yr(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){return xr(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end,entering:!0},n,i)},out(n=()=>{},i=()=>{}){return xr(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end,entering:!1},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){let i=()=>requestAnimationFrame(r);if(t){e._x_transition?e._x_transition.in(r):i();return}e._x_hide_promise=e._x_transition?new Promise((o,s)=>{e._x_transition.out(()=>{},()=>o(n)),e._x_transitioning.beforeCancel(()=>s({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let o=br(e);o?(o._x_hide_children||(o._x_hide_children=[]),o._x_hide_children.push(e)):queueMicrotask(()=>{let s=a=>{let c=Promise.all([a._x_hide_promise,...(a._x_hide_children||[]).map(s)]).then(([l])=>l());return delete a._x_hide_promise,delete a._x_hide_children,c};s(e).catch(a=>{if(!a.isFromCancelledTransition)throw a})})})};function br(e){let t=e.parentNode;if(!!t)return t._x_hide_promise?t:br(t)}function xr(e,t,{during:r,start:n,end:i,entering:o}={},s=()=>{},a=()=>{}){e._x_transitioning&&e._x_transitioning.cancel();let c,l,f;An(e,{start(){c=t(e,n)},during(){l=t(e,r)},before:s,end(){c(),f=t(e,i)},after:a,cleanup(){l(),f()}},o)}function An(e,t,r){let n,i,o,s=ae(()=>{y(()=>{n=!0,i||t.before(),o||(t.end(),ye()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(a){this.beforeCancels.push(a)},cancel:ae(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();s()}),finish:s,entering:r},y(()=>{t.start(),t.during()}),Pt(),requestAnimationFrame(()=>{if(n)return;let a=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,c=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;a===0&&(a=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),y(()=>{t.before()}),i=!0,requestAnimationFrame(()=>{n||(y(()=>{t.end()}),ye(),setTimeout(e._x_transitioning.finish,a+c),o=!0)})})}function ce(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return r;if(t==="duration"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}var vr=()=>{};vr.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignore_self=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignore_self:delete e._x_ignore})};m("ignore",vr);m("effect",(e,{expression:t},{effect:r})=>r(h(e,t)));function le(e,t,r,n=[]){switch(e._x_bindings||(e._x_bindings=v({})),e._x_bindings[t]=r,t=n.includes("camel")?Mn(t):t,t){case"value":On(e,r);break;case"style":Rn(e,r);break;case"class":Tn(e,r);break;default:Nn(e,t,r);break}}function On(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(e.checked=wr(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Number.isInteger(t)&&!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(r=>wr(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")kn(e,t);else{if(e.value===t)return;e.value=t}}function Tn(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Ce(e,t)}function Rn(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=se(e,t)}function Nn(e,t,r){[null,void 0,!1].includes(r)&&Pn(t)?e.removeAttribute(t):(Dn(t)&&(r=t),Cn(e,t,r))}function Cn(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function kn(e,t){let r=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=r.includes(n.value)})}function Mn(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function wr(e,t){return e==t}function Dn(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 Pn(e){return!["aria-pressed","aria-checked"].includes(e)}function ue(e,t,r,n){let i=e,o=c=>n(c),s={},a=(c,l)=>f=>l(c,f);if(r.includes("camel")&&(t=In(t)),r.includes("passive")&&(s.passive=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("prevent")&&(o=a(o,(c,l)=>{l.preventDefault(),c(l)})),r.includes("stop")&&(o=a(o,(c,l)=>{l.stopPropagation(),c(l)})),r.includes("self")&&(o=a(o,(c,l)=>{l.target===e&&c(l)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(c,l)=>{e.contains(l.target)||e.offsetWidth<1&&e.offsetHeight<1||c(l)})),o=a(o,(c,l)=>{$n(t)&&jn(l,r)||c(l)}),r.includes("debounce")){let c=r[r.indexOf("debounce")+1]||"invalid-wait",l=ft(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=Ln(o,l,this)}if(r.includes("throttle")){let c=r[r.indexOf("throttle")+1]||"invalid-wait",l=ft(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=Fn(o,l,this)}return r.includes("once")&&(o=a(o,(c,l)=>{c(l),i.removeEventListener(t,o,s)})),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function In(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function Ln(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}function Fn(e,t){let r;return function(){let n=this,i=arguments;r||(e.apply(n,i),r=!0,setTimeout(()=>r=!1,t))}}function ft(e){return!Array.isArray(e)&&!isNaN(e)}function Kn(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function $n(e){return["keydown","keyup"].includes(e)}function jn(e,t){let r=t.filter(o=>!["window","document","prevent","stop","once"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,ft((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&r[0]===Er(e.key))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&r[0]===Er(e.key))}function Er(e){switch(e){case"/":return"slash";case" ":case"Spacebar":return"space";default:return e&&Kn(e)}}m("model",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=h(e,r),s=`${r} = rightSideOfExpression($event, ${r})`,a=h(e,s);var c=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let l=zn(e,t,r),f=ue(e,c,t,d=>{a(()=>{},{scope:{$event:d,rightSideOfExpression:l}})});i(()=>f()),e._x_forceModelUpdate=()=>{o(d=>{d===void 0&&r.match(/\./)&&(d=""),window.fromModel=!0,y(()=>le(e,"value",d)),delete window.fromModel})},n(()=>{t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate()})});function zn(e,t,r){return e.type==="radio"&&y(()=>{e.hasAttribute("name")||e.setAttribute("name",r)}),(n,i)=>y(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail;if(e.type==="checkbox")if(Array.isArray(i)){let o=t.includes("number")?dt(n.target.value):n.target.value;return n.target.checked?i.concat([o]):i.filter(s=>!Vn(s,o))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(o=>{let s=o.value||o.text;return dt(s)}):Array.from(n.target.selectedOptions).map(o=>o.value||o.text);{let o=n.target.value;return t.includes("number")?dt(o):t.includes("trim")?o.trim():o}}})}function dt(e){let t=e?parseFloat(e):null;return Bn(t)?t:e}function Vn(e,t){return e==t}function Bn(e){return!Array.isArray(e)&&!isNaN(e)}m("cloak",e=>I(()=>y(()=>e.removeAttribute(T("cloak")))));U(()=>`[${T("init")}]`);m("init",q((e,{expression:t})=>C(e,t,{},!1)));m("text",(e,{expression:t},{effect:r,cleanup:n})=>{let i=h(e,t);r(()=>{i(o=>{y(()=>{e.textContent=o})})})});B(he(":",ge(T("bind:"))));m("bind",(e,{value:t,modifiers:r,expression:n,original:i},{effect:o})=>{if(!t)return Hn(e,n,i,o);if(t==="key")return Wn(e,n);let s=h(e,n);o(()=>s(a=>{y(()=>le(e,t,a,r))}))});function Hn(e,t,r,n){let i=h(e,t),o=[];n(()=>{for(;o.length;)o.pop()();i(s=>{let a=Object.entries(s).map(([c,l])=>({name:c,value:l}));te(e,a,r).map(c=>{o.push(c.runCleanups),c()})})})}function Wn(e,t){e._x_key_expression=t}U(()=>`[${T("data")}]`);m("data",q((e,{expression:t},{cleanup:r})=>{t=t===""?"{}":t;let n=qt(t),i={};if(n){let a=ee({},e);i=n.bind(a)()}else i=C(e,t);At(i),ee(i,e);let o=v(i),s=de(e,o);o.init&&o.init(),r(()=>{s(),o.destroy&&o.destroy()})}));m("show",(e,{modifiers:t,expression:r},{effect:n})=>{let i=h(e,r),o=()=>y(()=>{e.style.display="none",e._x_is_shown=!1}),s=()=>y(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display"),e._x_is_shown=!0}),a=()=>setTimeout(s),c=ae(l=>l?s():o(),l=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,l,s,o):l?a():o()});n(()=>i(l=>{t.includes("immediate")&&(l?a():o()),c(l)}))});m("for",(e,{expression:t},{effect:r,cleanup:n})=>{let i=qn(t),o=h(e,i.items),s=h(e,e._x_key_expression||"index");e._x_prev_keys=[],e._x_lookup={},r(()=>Un(e,i,o,s)),n(()=>{Object.values(e._x_lookup).forEach(a=>a.remove()),delete e._x_prev_keys,delete e._x_lookup})});function Un(e,t,r,n){let i=s=>typeof s=="object"&&!Array.isArray(s),o=e;r(s=>{Gn(s)&&s>=0&&(s=Array.from(Array(s).keys(),u=>u+1));let a=e._x_lookup,c=e._x_prev_keys,l=[],f=[];if(i(s))s=Object.entries(s).map(([u,g])=>{let p=Sr(t,g,u,s);n(A=>f.push(A),{scope:{index:u,...p}}),l.push(p)});else for(let u=0;u<s.length;u++){let g=Sr(t,s[u],u,s);n(p=>f.push(p),{scope:{index:u,...g}}),l.push(g)}let d=[],b=[],S=[],N=[];for(let u=0;u<c.length;u++){let g=c[u];f.indexOf(g)===-1&&S.push(g)}c=c.filter(u=>!S.includes(u));let M="template";for(let u=0;u<f.length;u++){let g=f[u],p=c.indexOf(g);if(p===-1)c.splice(u,0,g),d.push([M,u]);else if(p!==u){let A=c.splice(u,1)[0],P=c.splice(p-1,1)[0];c.splice(u,0,P),c.splice(p,0,A),b.push([A,P])}else N.push(g);M=g}for(let u=0;u<S.length;u++){let g=S[u];a[g].remove(),a[g]=null,delete a[g]}for(let u=0;u<b.length;u++){let[g,p]=b[u],A=a[g],P=a[p],J=document.createElement("div");y(()=>{P.after(J),A.after(P),J.before(A),J.remove()}),ze(P,l[f.indexOf(p)])}for(let u=0;u<d.length;u++){let[g,p]=d[u],A=g==="template"?o:a[g],P=l[p],J=f[p],fe=document.importNode(o.content,!0).firstElementChild;de(fe,v(P),o),W(fe),y(()=>{A.after(fe)}),a[J]=fe}for(let u=0;u<N.length;u++)ze(a[N[u]],l[f.indexOf(N[u])]);o._x_prev_keys=f})}function qn(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\(|\)$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].trim().replace(r,""),a=s.match(t);return a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function Sr(e,t,r,n){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=t[a]}):i[e.item]=t,e.index&&(i[e.index]=r),e.collection&&(i[e.collection]=n),i}function Gn(e){return!Array.isArray(e)&&!isNaN(e)}function Ar(){}Ar.inline=(e,{expression:t},{cleanup:r})=>{let n=D(e);n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r(()=>delete n._x_refs[t])};m("ref",Ar);m("if",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=h(e,r),s=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let c=e.content.cloneNode(!0).firstElementChild;return e.after(c),e._x_currentIfEl=c,e._x_undoIf=()=>{c.remove(),delete e._x_currentIfEl},c},a=()=>e._x_undoIf?.()||delete e._x_undoIf;n(()=>o(c=>{c?s():a()})),i(()=>e._x_undoIf&&e._x_undoIf())});B(he("@",ge(T("on:"))));m("on",q((e,{value:t,modifiers:r,expression:n},{cleanup:i})=>{let o=n?h(e,n):()=>{},s=ue(e,t,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));O.setEvaluator(Be);O.setReactivityEngine({reactive:Se,effect:Jt,release:Zt,raw:_});var pt=O;window.Alpine=pt;queueMicrotask(()=>{pt.start()});})(); |
{ | ||
"name": "alpinejs", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "The rugged, minimal JavaScript framework", | ||
@@ -9,2 +9,3 @@ "author": "Caleb Porzio", | ||
"module": "dist/module.esm.js", | ||
"unpkg": "dist/cdn.min.js", | ||
"dependencies": { | ||
@@ -11,0 +12,0 @@ "@vue/reactivity": "^3.0.2" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0