voodoojs 0.12.5 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-D45ZEXUO.js → chunk-2LGAXVD7.js} +4 -4
  3. package/dist/{chunk-L3JNHLTI.js → chunk-4IJE5BWY.js} +5 -5
  4. package/dist/{chunk-PPT7RDKJ.js → chunk-FMDHZ5GI.js} +139 -9
  5. package/dist/{chunk-JB72AX7G.js → chunk-GE4JWATC.js} +5 -5
  6. package/dist/{chunk-TUXGS7XW.js → chunk-H2NGDLMD.js} +363 -76
  7. package/dist/{chunk-YH3IDF6L.js → chunk-IBIZ6OUI.js} +4 -4
  8. package/dist/{chunk-PO6REBDJ.js → chunk-IJQ2PFXU.js} +3 -3
  9. package/dist/{chunk-6QFKV444.js → chunk-JBUNTP7F.js} +7 -7
  10. package/dist/{chunk-IWHK6Y32.js → chunk-MV73OSCS.js} +4 -4
  11. package/dist/{chunk-X3FZPWI6.js → chunk-OIH4BR2H.js} +6 -6
  12. package/dist/{chunk-OH6FIDTW.js → chunk-TEVCUTTC.js} +3 -3
  13. package/dist/essential.cjs +496 -74
  14. package/dist/essential.js +10 -10
  15. package/dist/gpu.cjs +1 -1
  16. package/dist/gpu.js +10 -10
  17. package/dist/http.cjs +1 -1
  18. package/dist/http.js +5 -5
  19. package/dist/index.cjs +544 -122
  20. package/dist/index.js +20 -20
  21. package/dist/reactivity.cjs +138 -5
  22. package/dist/reactivity.d.cts +32 -1
  23. package/dist/reactivity.d.ts +32 -1
  24. package/dist/reactivity.js +2 -2
  25. package/dist/socket.cjs +115 -5
  26. package/dist/socket.d.cts +1 -1
  27. package/dist/socket.d.ts +1 -1
  28. package/dist/socket.js +9 -9
  29. package/dist/style-E22XVZ33.js +5 -0
  30. package/dist/utils.cjs +1 -1
  31. package/dist/utils.js +2 -2
  32. package/dist/voodoo.core.js +560 -72
  33. package/dist/voodoo.core.min.js +17 -17
  34. package/dist/voodoo.full.js +609 -121
  35. package/dist/voodoo.full.min.js +62 -62
  36. package/dist/voodoo.js +563 -75
  37. package/dist/voodoo.min.js +26 -26
  38. package/package.json +1 -1
  39. package/dist/style-YWBYOE6T.js +0 -5
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Voodoo.js v0.12.5
2
+ * Voodoo.js v0.13.0
3
3
  * JavaScript feels like magic.
4
4
  * (c) 2026 Voodoo.js contributors. MIT License.
5
5
  */
6
- "use strict";var Voodoo=(()=>{var Gt=Object.defineProperty;var Ri=Object.getOwnPropertyDescriptor;var Ci=Object.getOwnPropertyNames;var Pi=Object.prototype.hasOwnProperty;var Mi=(e,t,n)=>t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Bn=(e,t)=>()=>(e&&(t=e(e=0)),t);var Yt=(e,t)=>{for(var n in t)Gt(e,n,{get:t[n],enumerable:!0})},Li=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ci(t))!Pi.call(e,o)&&o!==n&&Gt(e,o,{get:()=>t[o],enumerable:!(r=Ri(t,o))||r.enumerable});return e};var Ni=e=>Li(Gt({},"__esModule",{value:!0}),e);var M=(e,t,n)=>Mi(e,typeof t!="symbol"?t+"":t,n);var mo={};Yt(mo,{EffectScope:()=>re,ITERATE_KEY:()=>Ne,ReactiveEffect:()=>Ze,TriggerType:()=>uo,computed:()=>De,effect:()=>J,effectScope:()=>Xn,enableTracking:()=>co,flushSync:()=>Qn,getActiveEffect:()=>$i,getActiveScope:()=>Di,handleError:()=>N,hasChanged:()=>Rt,isReactive:()=>er,isRef:()=>Oe,markRaw:()=>At,nextTick:()=>He,pauseTracking:()=>ao,queueJob:()=>tn,queuePostFlush:()=>Re,reactive:()=>F,ref:()=>de,resetTracking:()=>Yn,setErrorHandler:()=>Kn,shallowRef:()=>tr,stop:()=>et,toRaw:()=>K,track:()=>le,trigger:()=>ye,unref:()=>nr,warn:()=>nn,watch:()=>fe,watchEffect:()=>rr});function He(e){let t=Zt||Wn;return e?t.then(e):t}function tn(e){e.queued||(e.queued=!0,Xe.push(e),io())}function Re(e){Xt.push(e),io()}function io(){Jt||St||(St=!0,Zt=Wn.then(zn))}function zn(){St=!1,Jt=!0;let e=new Map;try{for(let t=0;t<Xe.length;t++){let n=Xe[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>Oi){nn("Infinite update loop detected. A reactive effect keeps triggering itself without ever settling. Check whether some expression writes to state that it also reads.");continue}try{n.run()}catch(o){N(o,"effect")}}}finally{for(let n of Xe)n.queued=!1;Xe=[],Jt=!1;let t=Xt;Xt=[];for(let n of t)try{n()}catch(r){N(r,"post-flush")}Xe.length||Xt.length?(Zt=Wn.then(zn),St=!0):Zt=null}}function Qn(){Jt||(St=!1,zn())}function Kn(e){Un=e}function N(e,t){if(Un){Un(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function nn(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function ao(){Gn.push($e),$e=!1}function co(){Gn.push($e),$e=!0}function Yn(){var e;$e=(e=Gn.pop())!=null?e:!0}function $i(){return X}function no(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function J(e,t){let n=new Ze(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function et(e){e instanceof Ze?e.stop():e.effect.stop()}function Xn(e=!1){return new re(e)}function Di(){return Se}function le(e,t){if(!$e||!X)return;let n=qn.get(e);n||qn.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(X)||(r.add(X),X.deps.push(r))}function ye(e,t,n,r){let o=qn.get(e);if(!o)return;let s=new Set,i=a=>{if(a)for(let c of a)(c!==X||t==="clear")&&s.add(c)};if(t==="clear")o.forEach(i);else{n!==void 0&&i(o.get(n));let a=Array.isArray(e);if(t==="add")a?_n(n)&&i(o.get("length")):i(o.get(Ne));else if(t==="delete")a||i(o.get(Ne));else if(a&&n==="length"){let c=Number(r);o.forEach((u,l)=>{(l==="length"||typeof l!="symbol"&&Number(l)>=c)&&i(u)})}}for(let a of s)a.scheduler?a.scheduler():tn(a)}function _n(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function Ae(e){return e!==null&&typeof e=="object"}function ji(e){if(!Ae(e)||e[lo]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return Ii.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function At(e){return Object.defineProperty(e,lo,{value:!0,enumerable:!1,configurable:!0}),e}function K(e){let t=e&&e[Jn];return t?K(t):e}function er(e){return!!(e&&e[Zn])}function F(e){if(!Ae(e)||er(e)||!ji(e))return e;let t=ro.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?Bi:Fi);return ro.set(e,r),r}function Rt(e,t){return!Object.is(e,t)}function Oe(e){return!!(e&&e.__v_isRef===!0)}function so(e){return Ae(e)?F(e):e}function fo(e){!$e||!X||e.dep.has(X)||(e.dep.add(X),X.deps.push(e.dep))}function po(e){for(let t of[...e.dep])t.scheduler?t.scheduler():tn(t)}function de(e){return new en(e)}function tr(e){return new en(e,!0)}function nr(e){return Oe(e)?e.value:e}function De(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new Vn(n,r)}function fe(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:s="pre"}=n,i;if(Oe(e)?i=()=>e.value:typeof e=="function"?i=e:er(e)?i=()=>Je(e):i=()=>e,o){let d=i;i=()=>Je(d())}let a,c,u=d=>{c=d},l=()=>{if(!p.effect.active)return;let d=p();(o||Rt(d,a))&&(c==null||c(),c=void 0,t(d,a,u),a=d)},p=s==="pre"?J(i,{lazy:!0,scheduler:()=>Re(l)}):J(i,{lazy:!0,scheduler:s==="sync"?l:s==="post"?()=>Re(l):()=>tn(p.effect)});return a=p(),r&&t(a,void 0,u),()=>p.effect.stop()}function rr(e){let t,n=o=>{t=o},r=J(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function Je(e,t=new Set){if(!Ae(e)||t.has(e))return e;if(t.add(e),Oe(e))Je(e.value,t);else if(Array.isArray(e))for(let n of e)Je(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>Je(n,t));else for(let n of Object.keys(e))Je(e[n],t);return e}var Wn,Xe,Xt,Jt,St,Zt,Oi,Un,X,$e,Gn,Hi,Ze,Se,re,Ne,qn,uo,Jn,Zn,lo,ro,oo,Ii,Fi,Bi,en,Vn,G=Bn(()=>{"use strict";Wn=Promise.resolve(),Xe=[],Xt=[],Jt=!1,St=!1,Zt=null,Oi=100;Un=null;$e=!0,Gn=[];Hi=0,Ze=class{constructor(t,n){var o;this.fn=t,this.id=Hi++,this.active=!0,this.queued=!1,this.deps=[],this.parent=void 0,this.scheduler=n==null?void 0:n.scheduler,this.onStop=n==null?void 0:n.onStop,this.cleanups=[];let r=(o=n==null?void 0:n.scope)!=null?o:Se;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=X;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=X,X=this,co(),no(this),this.fn()}finally{Yn(),X=this.parent,this.parent=void 0}}onInvalidate(t){this.cleanups.push(t)}runCleanups(){if(!this.cleanups.length)return;let t=this.cleanups;this.cleanups=[];for(let n of t)try{n()}catch(r){N(r,"effect cleanup")}}stop(){var t;this.active&&(no(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};re=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&Se&&(this.parent=Se,Se.children.push(this))}run(t){if(!this.active)return;let n=Se;try{return Se=this,t()}finally{Se=n}}onDispose(t){this.cleanups.push(t)}stop(){if(this.active){this.active=!1;for(let t of this.effects)t.stop();for(let t of this.children)t.stop();for(let t of this.cleanups)try{t()}catch(n){N(n,"scope cleanup")}if(this.effects.length=0,this.children.length=0,this.cleanups.length=0,this.parent){let t=this.parent.children.indexOf(this);t>-1&&this.parent.children.splice(t,1)}}}};Ne=Symbol("voodoo:iterate"),qn=new WeakMap;uo=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(uo||{});Jn=Symbol("voodoo:raw"),Zn=Symbol("voodoo:isReactive"),lo=Symbol("voodoo:skip"),ro=new WeakMap,oo=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=K(this);for(let s=0;s<r.length;s++)le(r,String(s));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(K)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){ao();try{return K(this)[t].apply(this,n)}finally{Yn()}};return e})();Ii=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);Fi={get(e,t,n){if(t===Jn)return e;if(t===Zn)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(oo,t))return Reflect.get(oo,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(le(e,t),Oe(o)?r&&_n(t)?o:o.value:Ae(o)?F(o):o)},set(e,t,n,r){let o=e[t];if(n=K(n),!Array.isArray(e)&&Oe(o)&&!Oe(n))return o.value=n,!0;let s=Array.isArray(e)&&_n(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),i=Reflect.set(e,t,n,r);return e===K(r)&&(s?Rt(n,o)&&ye(e,"set",t,n):ye(e,"add",t,n)),i},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&ye(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&le(e,t),n},ownKeys(e){return le(e,Array.isArray(e)?"length":Ne),Reflect.ownKeys(e)}},Bi={get(e,t,n){if(t===Jn)return e;if(t===Zn)return!0;let r=e;if(t==="size")return le(r,Ne),Reflect.get(r,"size",r);let o={get(i){le(r,i);let a=r.get(i);return Ae(a)?F(a):a},has(i){return le(r,i),r.has(i)},add(i){i=K(i);let a=r.has(i);return r.add(i),a||ye(r,"add",i,i),n},set(i,a){let c=r.has(i),u=r.get(i);return r.set(i,K(a)),c?Rt(a,u)&&ye(r,"set",i,a):ye(r,"add",i,a),n},delete(i){let a=r.has(i),c=r.delete(i);return a&&ye(r,"delete",i),c},clear(){let i=r.size!==0,a=r.clear();return i&&ye(r,"clear"),a},forEach(i,a){return le(r,Ne),r.forEach((c,u)=>{i.call(a,Ae(c)?F(c):c,Ae(u)?F(u):u,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){le(r,Ne);let i=r[t];return typeof i=="function"?i.bind(r):i}let s=Reflect.get(r,t,r);return typeof s=="function"?s.bind(r):s}};en=class{constructor(t,n=!1){M(this,"shallow",n);M(this,"__v_isRef",!0);M(this,"_value");M(this,"_rawValue");M(this,"dep",new Set);this._rawValue=K(t),this._value=n?t:so(t)}get value(){return fo(this),this._value}set value(t){let n=K(t);Rt(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:so(t),po(this))}};Vn=class{constructor(t,n){M(this,"setter",n);M(this,"__v_isRef",!0);M(this,"_value");M(this,"_dirty",!0);M(this,"effect");M(this,"dep",new Set);this.effect=new Ze(t,{scheduler:()=>{this._dirty||(this._dirty=!0,po(this))}})}get value(){return fo(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):nn("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function A(e,t,n={}){var r,o;we.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:U.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Ie(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function an(e,t,n){Po.has(t)||(Po.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var w,we,U,z,Po,se=Bn(()=>{"use strict";w={prefix:"v-",autoStart:!0,autoDiscover:!0,root:null,devtools:!1,xrayShortcut:"ctrl+shift+f2",baseURL:"",globals:{},locale:typeof navigator!="undefined"&&navigator.language||"pt-BR",currency:"BRL",injectStyles:!0,cleanAttributes:!0,sanitizeUrls:!0},we=new Map,U={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};z=new Map;Po=new Set});var Ss={};Yt(Ss,{BASE_TOKENS:()=>ks,ensureTokens:()=>We,injectStyle:()=>ke});function ke(e,t){if(typeof document=="undefined"||!w.injectStyles||Es.has(e))return;Es.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function We(){ke("tokens",ks)}var Es,ks,ht=Bn(()=>{"use strict";se();Es=new Set;ks=`
6
+ "use strict";var Voodoo=(()=>{var wn=Object.defineProperty;var ua=Object.getOwnPropertyDescriptor;var la=Object.getOwnPropertyNames;var fa=Object.prototype.hasOwnProperty;var da=(e,t,n)=>t in e?wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var dr=(e,t)=>()=>(e&&(t=e(e=0)),t);var Tn=(e,t)=>{for(var n in t)wn(e,n,{get:t[n],enumerable:!0})},pa=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of la(t))!fa.call(e,o)&&o!==n&&wn(e,o,{get:()=>t[o],enumerable:!(r=ua(t,o))||r.enumerable});return e};var ma=e=>pa(wn({},"__esModule",{value:!0}),e);var F=(e,t,n)=>da(e,typeof t!="symbol"?t+"":t,n);var zo={};Tn(zo,{ArrayOp:()=>xr,EffectScope:()=>Te,ITERATE_KEY:()=>we,ReactiveEffect:()=>vt,TriggerType:()=>qo,arrayVersion:()=>Er,computed:()=>et,effect:()=>pe,effectScope:()=>Tr,enableTracking:()=>Uo,flushSync:()=>yr,getActiveEffect:()=>ga,getActiveScope:()=>va,handleError:()=>V,hasChanged:()=>Tt,isReactive:()=>Rr,isRef:()=>Xe,markRaw:()=>Xt,mutationsSince:()=>kr,nextTick:()=>Ze,pauseTracking:()=>Bo,queueJob:()=>Yt,queuePostFlush:()=>We,reactive:()=>G,ref:()=>Me,resetTracking:()=>wr,setErrorHandler:()=>vr,shallowRef:()=>Cr,stop:()=>wt,toRaw:()=>J,track:()=>ge,trigger:()=>He,unref:()=>Mr,warn:()=>Cn,watch:()=>Pe,watchEffect:()=>Pr});function Ze(e){let t=kn||hr;return e?t.then(e):t}function Yt(e){e.queued||(e.queued=!0,gt.push(e),Fo())}function We(e){xn.push(e),Fo()}function Fo(){En||Gt||(Gt=!0,kn=hr.then(gr))}function gr(){Gt=!1,En=!0;let e=new Map;try{for(let t=0;t<gt.length;t++){let n=gt[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>ha){Cn("Infinite update loop detected. A reactive effect keeps triggering itself without ever settling. Check whether some expression writes to state that it also reads.");continue}try{n.run()}catch(o){V(o,"effect")}}}finally{for(let n of gt)n.queued=!1;gt=[],En=!1;let t=xn;xn=[];for(let n of t)try{n()}catch(r){V(r,"post-flush")}gt.length||xn.length?(kn=hr.then(gr),Gt=!0):kn=null}}function yr(){En||(Gt=!1,gr())}function vr(e){pr=e}function V(e,t){if(pr){pr(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function Cn(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function Bo(){br.push(Je),Je=!1}function Uo(){br.push(Je),Je=!0}function wr(){var e;Je=(e=br.pop())!=null?e:!0}function ga(){return le}function Oo(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function pe(e,t){let n=new vt(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function wt(e){e instanceof vt?e.stop():e.effect.stop()}function Tr(e=!1){return new Te(e)}function va(){return Ve}function ge(e,t){if(!Je||!le)return;let n=Sn.get(e);n||Sn.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(le)||(r.add(le),le.deps.push(r))}function He(e,t,n,r){let o=Sn.get(e);if(!o)return;let s=new Set,i=a=>{if(a)for(let c of a)(c!==le||t==="clear")&&s.add(c)};if(t==="clear")o.forEach(i);else{n!==void 0&&i(o.get(n));let a=Array.isArray(e);if(t==="add")a?bt(n)&&i(o.get("length")):i(o.get(we));else if(t==="delete")i(o.get(we));else if(a&&bt(n))i(o.get(we));else if(a&&n==="length"){let c=Number(r);o.forEach((u,l)=>{(l==="length"||typeof l!="symbol"&&Number(l)>=c)&&i(u)})}}for(let a of s)a.scheduler?a.scheduler():Yt(a)}function ba(e,t){let n=Sn.get(e);if(!n)return;let r=new Set,o=s=>{if(s)for(let i of s)i!==le&&r.add(i)};o(n.get("length")),o(n.get(we)),t>=0&&n.forEach((s,i)=>{typeof i=="string"&&bt(i)&&Number(i)>=t&&o(s)});for(let s of r)s.scheduler?s.scheduler():Yt(s)}function ve(e,t,n,r,o){let s=An.get(e);if(s||An.set(e,s={version:0,ops:[]}),s.version++,t===3){s.ops.length=0;return}s.ops.push({type:t,index:n,removed:r,added:o}),s.ops.length>wa&&s.ops.shift()}function Er(e){let t=An.get(e);return t?t.version:0}function kr(e,t){let n=An.get(e);if(!n)return t===0?$o:null;if(t>n.version)return null;let r=n.version-t;return r===0?$o:r>n.ops.length?null:n.ops.slice(n.ops.length-r)}function bt(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function Ce(e){return e!==null&&typeof e=="object"}function Do(e,t){let n=Math.trunc(Number(e))||0;return n<0?Math.max(t+n,0):Math.min(n,t)}function xa(e){if(!Ce(e)||e[_o]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return Ta.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function Ea(e,t,n,r,o,s){if(t==="length"){let a=e.length;a<n?ve(e,1,a,n-a,0):a>n&&ve(e,3,0,0,0);return}if(!bt(t))return;let i=Number(t);r?Tt(s,o)&&ve(e,2,i,1,1):i===n?ve(e,1,i,0,1):ve(e,3,0,0,0)}function Xt(e){return Object.defineProperty(e,_o,{value:!0,enumerable:!1,configurable:!0}),e}function J(e){let t=e&&e[Sr];return t?J(t):e}function Rr(e){return!!(e&&e[Ar])}function G(e){if(!Ce(e)||Rr(e)||!xa(e))return e;let t=Ho.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?Sa:ka);return Ho.set(e,r),r}function Tt(e,t){return!Object.is(e,t)}function Xe(e){return!!(e&&e.__v_isRef===!0)}function jo(e){return Ce(e)?G(e):e}function Vo(e){!Je||!le||e.dep.has(le)||(e.dep.add(le),le.deps.push(e.dep))}function Wo(e){for(let t of[...e.dep])t.scheduler?t.scheduler():Yt(t)}function Me(e){return new Rn(e)}function Cr(e){return new Rn(e,!0)}function Mr(e){return Xe(e)?e.value:e}function et(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new mr(n,r)}function Pe(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:s="pre"}=n,i;if(Xe(e)?i=()=>e.value:typeof e=="function"?i=e:Rr(e)?i=()=>yt(e):i=()=>e,o){let d=i;i=()=>yt(d())}let a,c,u=d=>{c=d},l=()=>{if(!p.effect.active)return;let d=p();(o||Tt(d,a))&&(c==null||c(),c=void 0,t(d,a,u),a=d)},p=s==="pre"?pe(i,{lazy:!0,scheduler:()=>We(l)}):pe(i,{lazy:!0,scheduler:s==="sync"?l:s==="post"?()=>We(l):()=>Yt(p.effect)});return a=p(),r&&t(a,void 0,u),()=>p.effect.stop()}function Pr(e){let t,n=o=>{t=o},r=pe(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function yt(e,t=new Set){if(!Ce(e)||t.has(e))return e;if(t.add(e),Xe(e))yt(e.value,t);else if(Array.isArray(e))for(let n of e)yt(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>yt(n,t));else for(let n of Object.keys(e))yt(e[n],t);return e}var hr,gt,xn,En,Gt,kn,ha,pr,le,Je,br,ya,vt,Ve,Te,we,Sn,qo,xr,wa,An,$o,Sr,Ar,_o,Ho,Io,Ta,ka,Sa,Rn,mr,fe=dr(()=>{"use strict";hr=Promise.resolve(),gt=[],xn=[],En=!1,Gt=!1,kn=null,ha=100;pr=null;Je=!0,br=[];ya=0,vt=class{constructor(t,n){var o;this.fn=t,this.id=ya++,this.active=!0,this.queued=!1,this.deps=[],this.parent=void 0,this.scheduler=n==null?void 0:n.scheduler,this.onStop=n==null?void 0:n.onStop,this.cleanups=[];let r=(o=n==null?void 0:n.scope)!=null?o:Ve;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=le;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=le,le=this,Uo(),Oo(this),this.fn()}finally{wr(),le=this.parent,this.parent=void 0}}onInvalidate(t){this.cleanups.push(t)}runCleanups(){if(!this.cleanups.length)return;let t=this.cleanups;this.cleanups=[];for(let n of t)try{n()}catch(r){V(r,"effect cleanup")}}stop(){var t;this.active&&(Oo(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};Te=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&Ve&&(this.parent=Ve,Ve.children.push(this))}run(t){if(!this.active)return;let n=Ve;try{return Ve=this,t()}finally{Ve=n}}onDispose(t){this.cleanups.push(t)}stop(){if(this.active){this.active=!1;for(let t of this.effects)t.stop();for(let t of this.children)t.stop();for(let t of this.cleanups)try{t()}catch(n){V(n,"scope cleanup")}if(this.effects.length=0,this.children.length=0,this.cleanups.length=0,this.parent){let t=this.parent.children.indexOf(this);t>-1&&this.parent.children.splice(t,1)}}}};we=Symbol("voodoo:iterate"),Sn=new WeakMap;qo=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(qo||{});xr=(r=>(r[r.SPLICE=1]="SPLICE",r[r.SET=2]="SET",r[r.RESET=3]="RESET",r))(xr||{}),wa=32,An=new WeakMap;$o=[];Sr=Symbol("voodoo:raw"),Ar=Symbol("voodoo:isReactive"),_o=Symbol("voodoo:skip"),Ho=new WeakMap,Io=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=J(this);for(let s=0;s<r.length;s++)ge(r,String(s));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(J)):o};for(let t of["push","pop","shift","unshift","splice","reverse","sort"])e[t]=function(...n){let r=J(this),o=r.length;for(let c=0;c<n.length;c++)n[c]=J(n[c]);Bo();let s;try{s=r[t].apply(r,n)}finally{wr()}let i=r.length,a=-1;if(t==="push")n.length&&(ve(r,1,o,0,n.length),a=o);else if(t==="unshift")n.length&&(ve(r,1,0,0,n.length),a=0);else if(t==="pop")o>0&&(ve(r,1,i,1,0),a=i);else if(t==="shift")o>0&&(ve(r,1,0,1,0),a=0);else if(t==="splice"){let c=s.length,u=n.length>2?n.length-2:0;(c||u)&&(ve(r,1,Do(n[0],o),c,u),a=Do(n[0],o))}else o>1&&(ve(r,3,0,o,i),a=0);if(a>=0&&ba(r,a),t==="pop"||t==="shift")return Ce(s)?G(s):s;if(t==="splice"){let c=s;for(let u=0;u<c.length;u++)Ce(c[u])&&(c[u]=G(c[u]));return c}return t==="reverse"||t==="sort"?this:s};return e})();Ta=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);ka={get(e,t,n){if(t===Sr)return e;if(t===Ar)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(Io,t))return Reflect.get(Io,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(ge(e,t),Xe(o)?r&&bt(t)?o:o.value:Ce(o)?G(o):o)},set(e,t,n,r){let o=e[t];if(n=J(n),!Array.isArray(e)&&Xe(o)&&!Xe(n))return o.value=n,!0;let s=Array.isArray(e)&&bt(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),i=Array.isArray(e),a=i?e.length:0,c=Reflect.set(e,t,n,r);return e===J(r)&&(i&&Ea(e,t,a,s,o,n),s?Tt(n,o)&&He(e,"set",t,n):He(e,"add",t,n)),c},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&(Array.isArray(e)&&ve(e,3,0,0,0),He(e,"delete",t)),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&ge(e,t),n},ownKeys(e){return ge(e,Array.isArray(e)?"length":we),Reflect.ownKeys(e)}},Sa={get(e,t,n){if(t===Sr)return e;if(t===Ar)return!0;let r=e;if(t==="size")return ge(r,we),Reflect.get(r,"size",r);let o={get(i){ge(r,i);let a=r.get(i);return Ce(a)?G(a):a},has(i){return ge(r,i),r.has(i)},add(i){i=J(i);let a=r.has(i);return r.add(i),a||He(r,"add",i,i),n},set(i,a){let c=r.has(i),u=r.get(i);return r.set(i,J(a)),c?Tt(a,u)&&He(r,"set",i,a):He(r,"add",i,a),n},delete(i){let a=r.has(i),c=r.delete(i);return a&&He(r,"delete",i),c},clear(){let i=r.size!==0,a=r.clear();return i&&He(r,"clear"),a},forEach(i,a){return ge(r,we),r.forEach((c,u)=>{i.call(a,Ce(c)?G(c):c,Ce(u)?G(u):u,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){ge(r,we);let i=r[t];return typeof i=="function"?i.bind(r):i}let s=Reflect.get(r,t,r);return typeof s=="function"?s.bind(r):s}};Rn=class{constructor(t,n=!1){F(this,"shallow",n);F(this,"__v_isRef",!0);F(this,"_value");F(this,"_rawValue");F(this,"dep",new Set);this._rawValue=J(t),this._value=n?t:jo(t)}get value(){return Vo(this),this._value}set value(t){let n=J(t);Tt(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:jo(t),Wo(this))}};mr=class{constructor(t,n){F(this,"setter",n);F(this,"__v_isRef",!0);F(this,"_value");F(this,"_dirty",!0);F(this,"effect");F(this,"dep",new Set);this.effect=new vt(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Wo(this))}})}get value(){return Vo(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):Cn("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function H(e,t,n={}){var r,o;je.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:Z.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function tt(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function Nn(e,t,n){as.has(t)||(as.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var w,je,Z,ae,as,Ee=dr(()=>{"use strict";w={prefix:"v-",autoStart:!0,autoDiscover:!0,root:null,devtools:!1,xrayShortcut:"ctrl+shift+f2",baseURL:"",globals:{},locale:typeof navigator!="undefined"&&navigator.language||"pt-BR",currency:"BRL",injectStyles:!0,cleanAttributes:!0,sanitizeUrls:!0},je=new Map,Z={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};ae=new Map;as=new Set});var ri={};Tn(ri,{BASE_TOKENS:()=>ni,ensureTokens:()=>ut,injectStyle:()=>qe});function qe(e,t){if(typeof document=="undefined"||!w.injectStyles||ti.has(e))return;ti.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function ut(){qe("tokens",ni)}var ti,ni,Dt=dr(()=>{"use strict";Ee();ti=new Set;ni=`
7
7
  :root{
8
8
  --v-primary:#6D3BF5;
9
9
  --v-primary-hover:#5A2FD8;
@@ -47,19 +47,19 @@
47
47
  --v-shadow:0 10px 30px rgba(0,0,0,.45);
48
48
  }
49
49
  [v-cloak]{display:none !important}
50
- `});var lu={};Yt(lu,{default:()=>uu});G();var L=class extends Error{constructor(n,r,o){let s=`${r}
50
+ `});var Zu={};Tn(Zu,{default:()=>Ju});fe();var B=class extends Error{constructor(n,r,o){let s=`${r}
51
51
  ${" ".repeat(Math.max(0,o))}^`;super(`${n}
52
52
 
53
- ${s}`);M(this,"source",r);M(this,"position",o);this.name="VoodooSyntaxError"}},Ui=[">>>=","===","!==","**=","...",">>>","<<=",">>=","&&=","||=","??=","?.","=>","==","!=","<=",">=","&&","||","??","**","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<",">>","+","-","*","/","%","!","<",">","=","&","|","^","~","(",")","[","]","{","}",",",".","?",":",";"],qi=/[A-Za-z_$À-￿]/,_i=/[A-Za-z0-9_$À-￿]/;function Vi(e){return qi.test(e)}function Wi(e){return _i.test(e)}function rn(e){return e>="0"&&e<="9"}var ho={n:`
54
- `,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function on(e){var o,s;let t=[],n=0,r=e.length;for(;n<r;){let i=e[n];if(i===" "||i===" "||i===`
53
+ ${s}`);F(this,"source",r);F(this,"position",o);this.name="VoodooSyntaxError"}},Aa=[">>>=","===","!==","**=","...",">>>","<<=",">>=","&&=","||=","??=","?.","=>","==","!=","<=",">=","&&","||","??","**","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<",">>","+","-","*","/","%","!","<",">","=","&","|","^","~","(",")","[","]","{","}",",",".","?",":",";"],Ra=/[A-Za-z_$À-￿]/,Ca=/[A-Za-z0-9_$À-￿]/;function Ma(e){return Ra.test(e)}function Pa(e){return Ca.test(e)}function Mn(e){return e>="0"&&e<="9"}var Qo={n:`
54
+ `,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function Pn(e){var o,s;let t=[],n=0,r=e.length;for(;n<r;){let i=e[n];if(i===" "||i===" "||i===`
55
55
  `||i==="\r"||i==="\f"||i==="\v"){n++;continue}if(i==="/"&&e[n+1]==="/"){for(;n<r&&e[n]!==`
56
- `;)n++;continue}if(i==="/"&&e[n+1]==="*"){let u=e.indexOf("*/",n+2);if(u===-1)throw new L("Unclosed block comment",e,n);n=u+2;continue}let a=n;if(rn(i)||i==="."&&rn(e[n+1])){let u="";if(i==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(u="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)u+=e[n++];else if(i==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(u="0b",n+=2;n<r&&/[01_]/.test(e[n]);)u+=e[n++];else if(i==="0"&&(e[n+1]==="o"||e[n+1]==="O"))for(u="0o",n+=2;n<r&&/[0-7_]/.test(e[n]);)u+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)u+=e[n++];if(e[n]===".")for(u+=e[n++];n<r&&/[0-9_]/.test(e[n]);)u+=e[n++];if(e[n]==="e"||e[n]==="E")for(u+=e[n++],(e[n]==="+"||e[n]==="-")&&(u+=e[n++]);n<r&&rn(e[n]);)u+=e[n++]}let l=Number(u.replace(/_/g,""));if(Number.isNaN(l))throw new L("Invalid number",e,a);t.push({type:"num",value:u,parsed:l,start:a,end:n});continue}if(i==='"'||i==="'"){n++;let u="";for(;n<r&&e[n]!==i;)if(e[n]==="\\"){n++;let l=e[n];if(l==="u")if(e[n+1]==="{"){let f=e.indexOf("}",n);if(f===-1)throw new L("Unclosed Unicode escape",e,a);let p=e.slice(n+2,f);if(!/^[0-9a-fA-F]+$/.test(p)||parseInt(p,16)>1114111)throw new L(`Invalid Unicode escape "\\u{${p}}"`,e,n-1);u+=String.fromCodePoint(parseInt(p,16)),n=f+1}else{let f=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(f))throw new L("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);u+=String.fromCharCode(parseInt(f,16)),n+=5}else if(l==="x"){let f=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(f))throw new L("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);u+=String.fromCharCode(parseInt(f,16)),n+=3}else u+=(o=ho[l])!=null?o:l,n++}else u+=e[n++];if(n>=r)throw new L("Unclosed string",e,a);n++,t.push({type:"str",value:u,parsed:u,start:a,end:n});continue}if(i==="`"){n++;let u=[],l=[],f="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let p=e[n+1];f+=(s=ho[p])!=null?s:p,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){u.push(f),f="",n+=2;let p=1,d="";for(;n<r;){let m=e[n];if(m==="{")p++;else if(m==="}"){if(p--,p===0)break}else if(m==='"'||m==="'"||m==="`"){let g=m;for(d+=e[n++];n<r&&e[n]!==g;)e[n]==="\\"&&(d+=e[n++]),d+=e[n++]}d+=e[n++]}if(p!==0)throw new L("Unclosed template interpolation",e,a);n++,l.push(d);continue}f+=e[n++]}if(n>=r)throw new L("Unclosed template literal",e,a);n++,u.push(f),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:u,exprs:l},start:a,end:n});continue}if(Vi(i)){let u="";for(;n<r&&Wi(e[n]);)u+=e[n++];t.push({type:"ident",value:u,start:a,end:n});continue}let c;for(let u of Ui)if(e.startsWith(u,n)){if(u==="?."&&rn(e[n+2]))continue;c=u;break}if(c){n+=c.length,t.push({type:"punct",value:c,start:a,end:n});continue}throw new L(`Unexpected character "${i}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var go={"??":1,"||":2,"&&":3,"|":4,"^":5,"&":6,"==":7,"!=":7,"===":7,"!==":7,"<":8,">":8,"<=":8,">=":8,in:8,instanceof:8,"<<":9,">>":9,">>>":9,"+":10,"-":10,"*":11,"/":11,"%":11,"**":12},zi=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),Qi=new Set(["!","-","+","~","typeof","void","delete"]),yo=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),vo=1200,bo=32,or=0,sr=class{constructor(t,n){M(this,"tokens",t);M(this,"source",n);M(this,"pos",0);M(this,"depth",0)}peek(t=0){return this.tokens[Math.min(this.pos+t,this.tokens.length-1)]}next(){return this.tokens[this.pos++]}isPunct(t,n=0){let r=this.peek(n);return r.type==="punct"&&r.value===t}isIdent(t,n=0){let r=this.peek(n);return r.type==="ident"&&r.value===t}expect(t){if(!this.isPunct(t)){let n=this.peek();throw new L(`Expected "${t}" but found "${n.value||"end of expression"}"`,this.source,n.start)}return this.next()}parseProgram(){let t=[];for(;this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseArrowBody(){if(!this.isPunct("{"))return this.parseAssignment();this.next();let t=[];for(;!this.isPunct("}")&&this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return this.expect("}"),t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseStatement(){if(this.peek().type==="ident"&&this.peek().value==="return")return this.next(),this.isPunct(";")||this.isPunct(",")||this.isPunct("}")||this.peek().type==="eof"?{t:"return",a:null}:{t:"return",a:this.parseExpression()};if(this.peek().type==="ident"&&this.peek().value==="if"&&this.isPunct("(",1)){this.next(),this.expect("(");let t=this.parseExpression();this.expect(")");let n=this.parseBlockOrStatement(),r=null;return this.peek().type==="ident"&&this.peek().value==="else"&&(this.next(),r=this.parseBlockOrStatement()),{t:"if",test:t,cons:n,alt:r}}return this.parseExpression()}parseBlockOrStatement(){if(!this.isPunct("{"))return this.parseStatement();this.next();let t=[];for(;!this.isPunct("}")&&this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return this.expect("}"),t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseExpression(){return this.parseAssignment()}enterLevel(){if(++this.depth>vo){let t=this.peek();throw new L(`Expression too deeply nested (limit of ${vo} levels)`,this.source,t.start)}}parseAssignment(){this.enterLevel();let t=this.parseAssignmentInternal();return this.depth--,t}parseAssignmentInternal(){if(this.peek().type==="ident"&&this.isPunct("=>",1)){let r=this.next().value;return this.next(),{t:"arrow",params:[{kind:"id",name:r}],body:this.parseArrowBody()}}if(this.isPunct("(")){let r=this.tryParseParenArrow();if(r)return r}let t=this.parseConditional(),n=this.peek();if(n.type==="punct"&&zi.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new L("Invalid assignment target",this.source,n.start);this.next();let r=this.parseAssignment();return{t:"assign",op:n.value,target:t,value:r}}return t}tryParseParenArrow(){let t=this.pos,n=0,r=this.pos;for(;r<this.tokens.length;r++){let i=this.tokens[r];if(i.type==="punct"&&i.value==="(")n++;else if(i.type==="punct"&&i.value===")"){if(n--,n===0)break}else if(i.type==="eof")break}let o=this.tokens[r+1];if(!o||o.type!=="punct"||o.value!=="=>")return null;this.next();let s;try{s=this.parseParamList()}catch(i){return this.pos=t,null}return this.expect("=>"),{t:"arrow",params:s,body:this.parseArrowBody()}}parseParamList(){let t=[];for(;!this.isPunct(")")&&(t.push(this.parseParam()),this.isPunct(","));)this.next();return this.expect(")"),t}parseParam(){if(this.isPunct("...")){this.next();let n=this.next();if(n.type!=="ident")throw new L("Expected a name after ...",this.source,n.start);return{kind:"rest",name:n.value}}let t;if(this.isPunct("{")){this.next();let n=[],r;for(;!this.isPunct("}");){if(this.isPunct("...")){this.next();let o=this.next();if(o.type!=="ident")throw new L("Expected a name after ...",this.source,o.start);r=o.value}else{let o=this.next();if(o.type!=="ident"&&o.type!=="str")throw new L("Expected a property name",this.source,o.start);let s=this.isPunct(":")?(this.next(),this.parseParam()):{kind:"id",name:o.value};this.isPunct("=")&&(this.next(),s.def=this.parseAssignment()),n.push({key:String(o.value),value:s})}if(this.isPunct(","))this.next();else break}this.expect("}"),t={kind:"obj",props:n,rest:r}}else if(this.isPunct("[")){this.next();let n=[],r;for(;!this.isPunct("]");){if(this.isPunct(",")){this.next(),n.push(null);continue}if(this.isPunct("...")){this.next();let o=this.next();if(o.type!=="ident")throw new L("Expected a name after ...",this.source,o.start);r=o.value}else n.push(this.parseParam());if(this.isPunct(","))this.next();else break}this.expect("]"),t={kind:"arr",elements:n,rest:r}}else{let n=this.next();if(n.type!=="ident")throw new L("Expected a parameter name",this.source,n.start);t={kind:"id",name:n.value}}return this.isPunct("=")&&(this.next(),t.def=this.parseAssignment()),t}parseConditional(){let t=this.parseBinary(0);if(this.isPunct("?")){this.next();let n=this.parseAssignment();this.expect(":");let r=this.parseAssignment();return{t:"cond",test:t,cons:n,alt:r}}return t}parseBinary(t){this.enterLevel();let n=this.parseBinaryInternal(t);return this.depth--,n}parseBinaryInternal(t){let n=this.parseUnary();for(;;){let r=this.peek(),o=r.value;if(!(r.type==="punct"&&o in go||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let i=go[o];if(i===void 0||i<=t)break;this.next();let a=this.parseBinary(o==="**"?i-1:i);n={t:o==="&&"||o==="||"||o==="??"?"logic":"bin",op:o,l:n,r:a}}return n}parseUnary(){this.enterLevel();let t=this.parseUnaryInternal();return this.depth--,t}parseUnaryInternal(){let t=this.peek();if((t.type==="punct"||t.type==="ident")&&Qi.has(t.value))return this.next(),{t:"unary",op:t.value,a:this.parseUnary()};if(t.type==="punct"&&(t.value==="++"||t.value==="--")){this.next();let o=this.parseUnary();return{t:"update",op:t.value,a:o,prefix:!0}}let n=this.parseCallMember(),r=this.peek();return r.type==="punct"&&(r.value==="++"||r.value==="--")&&(this.next(),n={t:"update",op:r.value,a:n,prefix:!1}),n}parseNew(){this.next();let t=this.parseMemberOnly(this.parsePrimary()),n=this.isPunct("(")?this.parseArguments():[];return{t:"new",callee:t,args:n}}parseMemberOnly(t){let n=t;for(;;)if(this.isPunct(".")){this.next();let r=this.next();if(r.type!=="ident")throw new L("Invalid property name",this.source,r.start);n={t:"member",o:n,p:{t:"lit",v:r.value},computed:!1,opt:!1}}else if(this.isPunct("[")){this.next();let r=this.parseExpression();this.expect("]"),n={t:"member",o:n,p:r,computed:!0,opt:!1}}else return n}parseCallMember(){let t=this.isIdent("new")?this.parseNew():this.parsePrimary();for(;;)if(this.isPunct(".")){this.next();let n=this.next();if(n.type!=="ident")throw new L("Invalid property name",this.source,n.start);t={t:"member",o:t,p:{t:"lit",v:n.value},computed:!1,opt:!1}}else if(this.isPunct("?."))if(this.next(),this.isPunct("("))t={t:"call",callee:t,args:this.parseArguments(),opt:!0};else if(this.isPunct("[")){this.next();let n=this.parseExpression();this.expect("]"),t={t:"member",o:t,p:n,computed:!0,opt:!0}}else{let n=this.next();if(n.type!=="ident")throw new L("Invalid property name",this.source,n.start);t={t:"member",o:t,p:{t:"lit",v:n.value},computed:!1,opt:!0}}else if(this.isPunct("[")){this.next();let n=this.parseExpression();this.expect("]"),t={t:"member",o:t,p:n,computed:!0,opt:!1}}else if(this.isPunct("("))t={t:"call",callee:t,args:this.parseArguments(),opt:!1};else return t}parseArguments(){this.expect("(");let t=[];for(;!this.isPunct(")")&&(this.isPunct("...")?(this.next(),t.push({t:"unary",op:"...",a:this.parseAssignment()})):t.push(this.parseAssignment()),this.isPunct(","));)this.next();return this.expect(")"),t}parsePrimary(){let t=this.peek();if(t.type==="ident"&&t.value==="function")return this.next(),this.peek().type==="ident"&&this.next(),this.expect("("),{t:"arrow",params:this.parseParamList(),body:this.parseArrowBody()};if(t.type==="num"||t.type==="str")return this.next(),{t:"lit",v:t.parsed};if(t.type==="tpl"){this.next();let n=t.tpl;if(or>=bo)throw new L(`Template literal too deeply nested (limit of ${bo} levels)`,this.source,t.start);or++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>oe(r))}}finally{or--}}if(t.type==="ident")return t.value in yo?(this.next(),{t:"lit",v:yo[t.value]}):(this.next(),{t:"id",n:t.value});if(t.type==="punct"){if(t.value==="("){this.next();let n=[this.parseExpression()];for(;this.isPunct(",");){if(this.next(),this.isPunct(")")){let r=this.peek();throw new L("Trailing comma in a group",this.source,r.start)}n.push(this.parseExpression())}return this.expect(")"),n.length===1?n[0]:{t:"seq",body:n}}if(t.value==="[")return this.parseArrayLiteral();if(t.value==="{")return this.parseObjectLiteral()}throw new L(`Unexpected token "${t.value||"end of expression"}"`,this.source,t.start)}parseArrayLiteral(){this.expect("[");let t=[];for(;!this.isPunct("]")&&(this.isPunct("...")?(this.next(),t.push({spread:this.parseAssignment()})):t.push(this.parseAssignment()),this.isPunct(","));)this.next();return this.expect("]"),{t:"arr",els:t}}parseObjectLiteral(){var n;this.expect("{");let t=[];for(;!this.isPunct("}");){if(this.isPunct("..."))this.next(),t.push({key:null,spread:this.parseAssignment()});else if(this.isPunct("[")){this.next();let r=this.parseAssignment();this.expect("]"),this.expect(":"),t.push({key:null,keyExpr:r,value:this.parseAssignment()})}else{if(this.peek().type==="ident"&&this.peek().value==="get"&&this.peek(1).type==="ident"&&this.isPunct("(",2)){this.next();let s=this.next();this.expect("("),this.expect(")"),t.push({key:String(s.value),getter:!0,value:{t:"method",params:[],body:this.parseArrowBody()}}),this.isPunct(",")&&this.next();continue}let r=this.next();if(r.type!=="ident"&&r.type!=="str"&&r.type!=="num")throw new L("Invalid object key",this.source,r.start);let o=String((n=r.parsed)!=null?n:r.value);if(this.isPunct(":"))this.next(),t.push({key:o,value:this.parseAssignment()});else if(this.isPunct("(")){this.next();let s=this.parseParamList();t.push({key:o,value:{t:"method",params:s,body:this.parseArrowBody()}})}else t.push({key:o,value:{t:"id",n:o}})}if(this.isPunct(","))this.next();else break}return this.expect("}"),{t:"obj",props:t}}},tt=new Map,wo=2e3;function oe(e){let t=tt.get(e);if(t)return t;let n=new sr(on(e),e).parseProgram();return tt.size>=wo&&Ki(),tt.set(e,n),n}function Ki(){let e=Math.floor(wo/2),t=0;for(let n of tt.keys())if(tt.delete(n),++t>=e)break}function To(){tt.clear()}var Ro,Gi=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(Ro=Object.hasOwn)!=null?Ro:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),Yi=new Set(["eval","Function","window","globalThis","self","top","parent","document","fetch","XMLHttpRequest","importScripts","require","process","Reflect","Proxy","WebAssembly","localStorage","sessionStorage","indexedDB","navigator","location","history","crypto","Worker","SharedWorker","ServiceWorker"]);function xo(e){return function(t,n,...r){if(typeof t!="function")throw new B(`${e} needs a function. Passing a string would compile it, which this library never does.`);let o=globalThis[e];return o(t,n,...r)}}function sn(e){return function(...t){let n=globalThis[e];return n(...t)}}var Y={Math,JSON,Date,Number,String,Boolean,Array,Object:Gi,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console,...typeof setTimeout!="undefined"?{setTimeout:xo("setTimeout"),setInterval:xo("setInterval"),clearTimeout:sn("clearTimeout"),clearInterval:sn("clearInterval")}:{},...typeof requestAnimationFrame!="undefined"?{requestAnimationFrame:sn("requestAnimationFrame"),cancelAnimationFrame:sn("cancelAnimationFrame")}:{}},B=class extends Error{constructor(n,r){super(r?`${n}
56
+ `;)n++;continue}if(i==="/"&&e[n+1]==="*"){let u=e.indexOf("*/",n+2);if(u===-1)throw new B("Unclosed block comment",e,n);n=u+2;continue}let a=n;if(Mn(i)||i==="."&&Mn(e[n+1])){let u="";if(i==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(u="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)u+=e[n++];else if(i==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(u="0b",n+=2;n<r&&/[01_]/.test(e[n]);)u+=e[n++];else if(i==="0"&&(e[n+1]==="o"||e[n+1]==="O"))for(u="0o",n+=2;n<r&&/[0-7_]/.test(e[n]);)u+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)u+=e[n++];if(e[n]===".")for(u+=e[n++];n<r&&/[0-9_]/.test(e[n]);)u+=e[n++];if(e[n]==="e"||e[n]==="E")for(u+=e[n++],(e[n]==="+"||e[n]==="-")&&(u+=e[n++]);n<r&&Mn(e[n]);)u+=e[n++]}let l=Number(u.replace(/_/g,""));if(Number.isNaN(l))throw new B("Invalid number",e,a);t.push({type:"num",value:u,parsed:l,start:a,end:n});continue}if(i==='"'||i==="'"){n++;let u="";for(;n<r&&e[n]!==i;)if(e[n]==="\\"){n++;let l=e[n];if(l==="u")if(e[n+1]==="{"){let f=e.indexOf("}",n);if(f===-1)throw new B("Unclosed Unicode escape",e,a);let p=e.slice(n+2,f);if(!/^[0-9a-fA-F]+$/.test(p)||parseInt(p,16)>1114111)throw new B(`Invalid Unicode escape "\\u{${p}}"`,e,n-1);u+=String.fromCodePoint(parseInt(p,16)),n=f+1}else{let f=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(f))throw new B("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);u+=String.fromCharCode(parseInt(f,16)),n+=5}else if(l==="x"){let f=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(f))throw new B("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);u+=String.fromCharCode(parseInt(f,16)),n+=3}else u+=(o=Qo[l])!=null?o:l,n++}else u+=e[n++];if(n>=r)throw new B("Unclosed string",e,a);n++,t.push({type:"str",value:u,parsed:u,start:a,end:n});continue}if(i==="`"){n++;let u=[],l=[],f="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let p=e[n+1];f+=(s=Qo[p])!=null?s:p,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){u.push(f),f="",n+=2;let p=1,d="";for(;n<r;){let m=e[n];if(m==="{")p++;else if(m==="}"){if(p--,p===0)break}else if(m==='"'||m==="'"||m==="`"){let g=m;for(d+=e[n++];n<r&&e[n]!==g;)e[n]==="\\"&&(d+=e[n++]),d+=e[n++]}d+=e[n++]}if(p!==0)throw new B("Unclosed template interpolation",e,a);n++,l.push(d);continue}f+=e[n++]}if(n>=r)throw new B("Unclosed template literal",e,a);n++,u.push(f),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:u,exprs:l},start:a,end:n});continue}if(Ma(i)){let u="";for(;n<r&&Pa(e[n]);)u+=e[n++];t.push({type:"ident",value:u,start:a,end:n});continue}let c;for(let u of Aa)if(e.startsWith(u,n)){if(u==="?."&&Mn(e[n+2]))continue;c=u;break}if(c){n+=c.length,t.push({type:"punct",value:c,start:a,end:n});continue}throw new B(`Unexpected character "${i}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Ko={"??":1,"||":2,"&&":3,"|":4,"^":5,"&":6,"==":7,"!=":7,"===":7,"!==":7,"<":8,">":8,"<=":8,">=":8,in:8,instanceof:8,"<<":9,">>":9,">>>":9,"+":10,"-":10,"*":11,"/":11,"%":11,"**":12},La=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),Na=new Set(["!","-","+","~","typeof","void","delete"]),Go=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Yo=1200,Xo=32,Lr=0,Nr=class{constructor(t,n){F(this,"tokens",t);F(this,"source",n);F(this,"pos",0);F(this,"depth",0)}peek(t=0){return this.tokens[Math.min(this.pos+t,this.tokens.length-1)]}next(){return this.tokens[this.pos++]}isPunct(t,n=0){let r=this.peek(n);return r.type==="punct"&&r.value===t}isIdent(t,n=0){let r=this.peek(n);return r.type==="ident"&&r.value===t}expect(t){if(!this.isPunct(t)){let n=this.peek();throw new B(`Expected "${t}" but found "${n.value||"end of expression"}"`,this.source,n.start)}return this.next()}parseProgram(){let t=[];for(;this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseArrowBody(){if(!this.isPunct("{"))return this.parseAssignment();this.next();let t=[];for(;!this.isPunct("}")&&this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return this.expect("}"),t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseStatement(){if(this.peek().type==="ident"&&this.peek().value==="return")return this.next(),this.isPunct(";")||this.isPunct(",")||this.isPunct("}")||this.peek().type==="eof"?{t:"return",a:null}:{t:"return",a:this.parseExpression()};if(this.peek().type==="ident"&&this.peek().value==="if"&&this.isPunct("(",1)){this.next(),this.expect("(");let t=this.parseExpression();this.expect(")");let n=this.parseBlockOrStatement(),r=null;return this.peek().type==="ident"&&this.peek().value==="else"&&(this.next(),r=this.parseBlockOrStatement()),{t:"if",test:t,cons:n,alt:r}}return this.parseExpression()}parseBlockOrStatement(){if(!this.isPunct("{"))return this.parseStatement();this.next();let t=[];for(;!this.isPunct("}")&&this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return this.expect("}"),t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseExpression(){return this.parseAssignment()}enterLevel(){if(++this.depth>Yo){let t=this.peek();throw new B(`Expression too deeply nested (limit of ${Yo} levels)`,this.source,t.start)}}parseAssignment(){this.enterLevel();let t=this.parseAssignmentInternal();return this.depth--,t}parseAssignmentInternal(){if(this.peek().type==="ident"&&this.isPunct("=>",1)){let r=this.next().value;return this.next(),{t:"arrow",params:[{kind:"id",name:r}],body:this.parseArrowBody()}}if(this.isPunct("(")){let r=this.tryParseParenArrow();if(r)return r}let t=this.parseConditional(),n=this.peek();if(n.type==="punct"&&La.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new B("Invalid assignment target",this.source,n.start);this.next();let r=this.parseAssignment();return{t:"assign",op:n.value,target:t,value:r}}return t}tryParseParenArrow(){let t=this.pos,n=0,r=this.pos;for(;r<this.tokens.length;r++){let i=this.tokens[r];if(i.type==="punct"&&i.value==="(")n++;else if(i.type==="punct"&&i.value===")"){if(n--,n===0)break}else if(i.type==="eof")break}let o=this.tokens[r+1];if(!o||o.type!=="punct"||o.value!=="=>")return null;this.next();let s;try{s=this.parseParamList()}catch(i){return this.pos=t,null}return this.expect("=>"),{t:"arrow",params:s,body:this.parseArrowBody()}}parseParamList(){let t=[];for(;!this.isPunct(")")&&(t.push(this.parseParam()),this.isPunct(","));)this.next();return this.expect(")"),t}parseParam(){if(this.isPunct("...")){this.next();let n=this.next();if(n.type!=="ident")throw new B("Expected a name after ...",this.source,n.start);return{kind:"rest",name:n.value}}let t;if(this.isPunct("{")){this.next();let n=[],r;for(;!this.isPunct("}");){if(this.isPunct("...")){this.next();let o=this.next();if(o.type!=="ident")throw new B("Expected a name after ...",this.source,o.start);r=o.value}else{let o=this.next();if(o.type!=="ident"&&o.type!=="str")throw new B("Expected a property name",this.source,o.start);let s=this.isPunct(":")?(this.next(),this.parseParam()):{kind:"id",name:o.value};this.isPunct("=")&&(this.next(),s.def=this.parseAssignment()),n.push({key:String(o.value),value:s})}if(this.isPunct(","))this.next();else break}this.expect("}"),t={kind:"obj",props:n,rest:r}}else if(this.isPunct("[")){this.next();let n=[],r;for(;!this.isPunct("]");){if(this.isPunct(",")){this.next(),n.push(null);continue}if(this.isPunct("...")){this.next();let o=this.next();if(o.type!=="ident")throw new B("Expected a name after ...",this.source,o.start);r=o.value}else n.push(this.parseParam());if(this.isPunct(","))this.next();else break}this.expect("]"),t={kind:"arr",elements:n,rest:r}}else{let n=this.next();if(n.type!=="ident")throw new B("Expected a parameter name",this.source,n.start);t={kind:"id",name:n.value}}return this.isPunct("=")&&(this.next(),t.def=this.parseAssignment()),t}parseConditional(){let t=this.parseBinary(0);if(this.isPunct("?")){this.next();let n=this.parseAssignment();this.expect(":");let r=this.parseAssignment();return{t:"cond",test:t,cons:n,alt:r}}return t}parseBinary(t){this.enterLevel();let n=this.parseBinaryInternal(t);return this.depth--,n}parseBinaryInternal(t){let n=this.parseUnary();for(;;){let r=this.peek(),o=r.value;if(!(r.type==="punct"&&o in Ko||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let i=Ko[o];if(i===void 0||i<=t)break;this.next();let a=this.parseBinary(o==="**"?i-1:i);n={t:o==="&&"||o==="||"||o==="??"?"logic":"bin",op:o,l:n,r:a}}return n}parseUnary(){this.enterLevel();let t=this.parseUnaryInternal();return this.depth--,t}parseUnaryInternal(){let t=this.peek();if((t.type==="punct"||t.type==="ident")&&Na.has(t.value))return this.next(),{t:"unary",op:t.value,a:this.parseUnary()};if(t.type==="punct"&&(t.value==="++"||t.value==="--")){this.next();let o=this.parseUnary();return{t:"update",op:t.value,a:o,prefix:!0}}let n=this.parseCallMember(),r=this.peek();return r.type==="punct"&&(r.value==="++"||r.value==="--")&&(this.next(),n={t:"update",op:r.value,a:n,prefix:!1}),n}parseNew(){this.next();let t=this.parseMemberOnly(this.parsePrimary()),n=this.isPunct("(")?this.parseArguments():[];return{t:"new",callee:t,args:n}}parseMemberOnly(t){let n=t;for(;;)if(this.isPunct(".")){this.next();let r=this.next();if(r.type!=="ident")throw new B("Invalid property name",this.source,r.start);n={t:"member",o:n,p:{t:"lit",v:r.value},computed:!1,opt:!1}}else if(this.isPunct("[")){this.next();let r=this.parseExpression();this.expect("]"),n={t:"member",o:n,p:r,computed:!0,opt:!1}}else return n}parseCallMember(){let t=this.isIdent("new")?this.parseNew():this.parsePrimary();for(;;)if(this.isPunct(".")){this.next();let n=this.next();if(n.type!=="ident")throw new B("Invalid property name",this.source,n.start);t={t:"member",o:t,p:{t:"lit",v:n.value},computed:!1,opt:!1}}else if(this.isPunct("?."))if(this.next(),this.isPunct("("))t={t:"call",callee:t,args:this.parseArguments(),opt:!0};else if(this.isPunct("[")){this.next();let n=this.parseExpression();this.expect("]"),t={t:"member",o:t,p:n,computed:!0,opt:!0}}else{let n=this.next();if(n.type!=="ident")throw new B("Invalid property name",this.source,n.start);t={t:"member",o:t,p:{t:"lit",v:n.value},computed:!1,opt:!0}}else if(this.isPunct("[")){this.next();let n=this.parseExpression();this.expect("]"),t={t:"member",o:t,p:n,computed:!0,opt:!1}}else if(this.isPunct("("))t={t:"call",callee:t,args:this.parseArguments(),opt:!1};else return t}parseArguments(){this.expect("(");let t=[];for(;!this.isPunct(")")&&(this.isPunct("...")?(this.next(),t.push({t:"unary",op:"...",a:this.parseAssignment()})):t.push(this.parseAssignment()),this.isPunct(","));)this.next();return this.expect(")"),t}parsePrimary(){let t=this.peek();if(t.type==="ident"&&t.value==="function")return this.next(),this.peek().type==="ident"&&this.next(),this.expect("("),{t:"arrow",params:this.parseParamList(),body:this.parseArrowBody()};if(t.type==="num"||t.type==="str")return this.next(),{t:"lit",v:t.parsed};if(t.type==="tpl"){this.next();let n=t.tpl;if(Lr>=Xo)throw new B(`Template literal too deeply nested (limit of ${Xo} levels)`,this.source,t.start);Lr++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>xe(r))}}finally{Lr--}}if(t.type==="ident")return t.value in Go?(this.next(),{t:"lit",v:Go[t.value]}):(this.next(),{t:"id",n:t.value});if(t.type==="punct"){if(t.value==="("){this.next();let n=[this.parseExpression()];for(;this.isPunct(",");){if(this.next(),this.isPunct(")")){let r=this.peek();throw new B("Trailing comma in a group",this.source,r.start)}n.push(this.parseExpression())}return this.expect(")"),n.length===1?n[0]:{t:"seq",body:n}}if(t.value==="[")return this.parseArrayLiteral();if(t.value==="{")return this.parseObjectLiteral()}throw new B(`Unexpected token "${t.value||"end of expression"}"`,this.source,t.start)}parseArrayLiteral(){this.expect("[");let t=[];for(;!this.isPunct("]")&&(this.isPunct("...")?(this.next(),t.push({spread:this.parseAssignment()})):t.push(this.parseAssignment()),this.isPunct(","));)this.next();return this.expect("]"),{t:"arr",els:t}}parseObjectLiteral(){var n;this.expect("{");let t=[];for(;!this.isPunct("}");){if(this.isPunct("..."))this.next(),t.push({key:null,spread:this.parseAssignment()});else if(this.isPunct("[")){this.next();let r=this.parseAssignment();this.expect("]"),this.expect(":"),t.push({key:null,keyExpr:r,value:this.parseAssignment()})}else{if(this.peek().type==="ident"&&this.peek().value==="get"&&this.peek(1).type==="ident"&&this.isPunct("(",2)){this.next();let s=this.next();this.expect("("),this.expect(")"),t.push({key:String(s.value),getter:!0,value:{t:"method",params:[],body:this.parseArrowBody()}}),this.isPunct(",")&&this.next();continue}let r=this.next();if(r.type!=="ident"&&r.type!=="str"&&r.type!=="num")throw new B("Invalid object key",this.source,r.start);let o=String((n=r.parsed)!=null?n:r.value);if(this.isPunct(":"))this.next(),t.push({key:o,value:this.parseAssignment()});else if(this.isPunct("(")){this.next();let s=this.parseParamList();t.push({key:o,value:{t:"method",params:s,body:this.parseArrowBody()}})}else t.push({key:o,value:{t:"id",n:o}})}if(this.isPunct(","))this.next();else break}return this.expect("}"),{t:"obj",props:t}}},xt=new Map,Jo=2e3;function xe(e){let t=xt.get(e);if(t)return t;let n=new Nr(Pn(e),e).parseProgram();return xt.size>=Jo&&Oa(),xt.set(e,n),n}function Oa(){let e=Math.floor(Jo/2),t=0;for(let n of xt.keys())if(xt.delete(n),++t>=e)break}function Zo(){xt.clear()}var ss,$a=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(ss=Object.hasOwn)!=null?ss:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),Ha=new Set(["eval","Function","window","globalThis","self","top","parent","document","fetch","XMLHttpRequest","importScripts","require","process","Reflect","Proxy","WebAssembly","localStorage","sessionStorage","indexedDB","navigator","location","history","crypto","Worker","SharedWorker","ServiceWorker"]);function es(e){return function(t,n,...r){if(typeof t!="function")throw new X(`${e} needs a function. Passing a string would compile it, which this library never does.`);let o=globalThis[e];return o(t,n,...r)}}function Ln(e){return function(...t){let n=globalThis[e];return n(...t)}}var de={Math,JSON,Date,Number,String,Boolean,Array,Object:$a,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console,...typeof setTimeout!="undefined"?{setTimeout:es("setTimeout"),setInterval:es("setInterval"),clearTimeout:Ln("clearTimeout"),clearInterval:Ln("clearInterval")}:{},...typeof requestAnimationFrame!="undefined"?{requestAnimationFrame:Ln("requestAnimationFrame"),cancelAnimationFrame:Ln("cancelAnimationFrame")}:{}},X=class extends Error{constructor(n,r){super(r?`${n}
57
57
 
58
- Expression: ${r}`:n);M(this,"expression",r);this.name="VoodooRuntimeError"}},ar=Symbol("spread"),Ct=class{constructor(t){M(this,"value",t)}};function Eo(e){return e instanceof Ct?e.value:e}var Xi=new Set(["__proto__","constructor","prototype"]);function Co(e){return typeof e=="string"&&Xi.has(e)}function ve(e,t){if(Co(e))throw new B(`Access blocked to "${String(e)}": template expressions cannot reach the prototype chain. Expose a method in state instead.`,t);return e}function x(e,t){var n,r;switch(e.t){case"lit":return e.v;case"tpl":{let o=(n=e.quasis[0])!=null?n:"";for(let s=0;s<e.exprs.length;s++)o+=be(x(e.exprs[s],t)),o+=(r=e.quasis[s+1])!=null?r:"";return o}case"id":{ve(e.n);let o=t.lookup(e.n);return o?o[e.n]:e.n in Y?Y[e.n]:void 0}case"member":{let o=x(e.o,t);if(o==null){if(e.opt)return;throw new B(`Could not read "${ir(e,t)}" from ${o===null?"null":"undefined"}`)}let s=ve(e.computed?x(e.p,t):e.p.v);return o[s]}case"new":{let o=x(e.callee,t);if(typeof o!="function")throw new B(`Cannot construct ${be(o)}: it is not a constructor`);if(o===Function)throw new B("Cannot construct Function: expressions never compile code");let s=So(e.args,t);return Reflect.construct(o,s)}case"call":{let o,s;if(e.callee.t==="member"){let i=x(e.callee.o,t);if(i==null){if(e.callee.opt||e.opt)return;throw new B(`Could not call "${ir(e.callee,t)}" from ${i===null?"null":"undefined"}`)}let a=ve(e.callee.computed?x(e.callee.p,t):e.callee.p.v);o=i,s=i[a]}else if(e.callee.t==="id"){ve(e.callee.n);let i=t.lookup(e.callee.n);i?(o=i,s=i[e.callee.n]):s=Y[e.callee.n]}else s=x(e.callee,t);if(s==null&&e.opt)return;if(typeof s!="function"){let i=e.callee.t==="id"?e.callee.n:ir(e.callee,t);throw e.callee.t==="id"&&!t.lookup(i)&&!(i in Y)?Yi.has(i)?new B(`"${i}" is blocked. Expressions run in a sandbox without access to it.`):new B(`"${i}" was not found. Expressions cannot reach window: expose it with V.config.globals.${i} = ..., or put it in scope with V.data({ ${i} }).`):new B(`"${i}" is not a function`)}return s.apply(o,So(e.args,t))}case"unary":{if(e.op==="...")return{[ar]:x(e.a,t)};if(e.op==="delete"){if(e.a.t!=="member")throw new B("delete needs a property, as in `delete user.name` or `delete list[0]`");let s=x(e.a.o,t);if(s==null)return!0;let i=ve(e.a.computed?x(e.a.p,t):e.a.p.v);return delete s[i]}if(e.op==="typeof"){if(e.a.t==="id"){if(Co(e.a.n))return"undefined";let s=t.lookup(e.a.n);return typeof(s?s[e.a.n]:Y[e.a.n])}return typeof x(e.a,t)}let o=x(e.a,t);switch(e.op){case"!":return!o;case"-":return-o;case"+":return+o;case"~":return~o;case"void":return}throw new B(`Unsupported unary operator: ${e.op}`)}case"update":{let o=Number(x(e.a,t)),s=e.op==="++"?o+1:o-1;return Ao(e.a,s,t),e.prefix?s:o}case"bin":{let o=x(e.l,t),s=x(e.r,t);switch(e.op){case"+":return o+s;case"-":return o-s;case"*":return o*s;case"/":return o/s;case"%":return o%s;case"**":return o**s;case"==":return o==s;case"!=":return o!=s;case"===":return o===s;case"!==":return o!==s;case"<":return o<s;case">":return o>s;case"<=":return o<=s;case">=":return o>=s;case"in":return o in s;case"instanceof":return o instanceof s;case"&":return o&s;case"|":return o|s;case"^":return o^s;case"<<":return o<<s;case">>":return o>>s;case">>>":return o>>>s}throw new B(`Unsupported operator: ${e.op}`)}case"logic":{let o=x(e.l,t);return e.op==="&&"?o&&x(e.r,t):e.op==="||"?o||x(e.r,t):o!=null?o:x(e.r,t)}case"cond":return x(e.test,t)?x(e.cons,t):x(e.alt,t);case"assign":{let o;if(e.op==="=")o=x(e.value,t);else if(e.op==="&&="||e.op==="||="||e.op==="??="){let s=x(e.target,t);if(!(e.op==="&&="?!!s:e.op==="||="?!s:s==null))return s;o=x(e.value,t)}else{let s=x(e.target,t),i=x(e.value,t);switch(e.op){case"+=":o=s+i;break;case"-=":o=s-i;break;case"*=":o=s*i;break;case"/=":o=s/i;break;case"%=":o=s%i;break;case"**=":o=s**i;break;default:throw new B(`Unsupported assignment: ${e.op}`)}}return Ao(e.target,o,t),o}case"if":return x(e.test,t)?x(e.cons,t):e.alt?x(e.alt,t):void 0;case"method":{let o=e.params,s=e.body;return function(...i){let a=ko(o,i,t),c=this,u=c!==null&&typeof c=="object"?t.child(c):t;return Eo(x(s,u.child(a)))}}case"arrow":{let o=e.params,s=e.body;return(...i)=>Eo(x(s,t.child(ko(o,i,t))))}case"obj":{let o={};for(let s of e.props)if(s.spread)Object.assign(o,x(s.spread,t));else{let i=ve(s.key!==null?s.key:String(x(s.keyExpr,t)));if(s.getter){let a=x(s.value,t);Object.defineProperty(o,i,{enumerable:!0,configurable:!0,get(){return a.call(this)}});continue}o[i]=x(s.value,t)}return o}case"arr":{let o=[];for(let s of e.els)s&&typeof s=="object"&&"spread"in s?o.push(...x(s.spread,t)):o.push(x(s,t));return o}case"return":return new Ct(e.a?x(e.a,t):void 0);case"seq":{let o;for(let s of e.body)if(o=x(s,t),o instanceof Ct)return o;return o}}throw new B(`Unknown node: ${e.t}`)}function cr(e,t,n,r){if(e.kind==="rest"){n[e.name]=t;return}if(e.def!==void 0&&t===void 0&&(t=x(e.def,r.child(n))),e.kind==="id"){n[e.name]=t;return}if(e.kind==="obj"){if(t==null)throw new B(`Cannot destructure ${t===null?"null":"undefined"}`);let s=new Set;for(let{key:i,value:a}of e.props)s.add(i),cr(a,t[ve(i)],n,r);if(e.rest){let i={};for(let a of Object.keys(t))s.has(a)||(i[a]=t[a]);n[e.rest]=i}return}let o=Array.isArray(t)?t:Array.from(t);e.elements.forEach((s,i)=>{s&&cr(s,o[i],n,r)}),e.rest&&(n[e.rest]=o.slice(e.elements.length))}function ko(e,t,n){let r={};for(let o=0;o<e.length;o++){let s=e[o];cr(s,s.kind==="rest"?t.slice(o):t[o],r,n)}return r}function So(e,t){let n=[];for(let r of e){let o=x(r,t);o&&typeof o=="object"&&ar in o?n.push(...o[ar]):n.push(o)}return n}function Ao(e,t,n){if(e.t==="id"){ve(e.n),n.set(e.n,t);return}if(e.t==="member"){let r=x(e.o,n);if(r==null)throw new B("Could not write to null or undefined");let o=ve(e.computed?x(e.p,n):e.p.v);r[o]=t;return}throw new B("Invalid assignment target")}function ir(e,t){return e.t==="member"?e.computed?String(x(e.p,t)):String(e.p.v):e.t==="id"?e.n:"value"}function be(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(e instanceof Date)return e.toLocaleString();if(typeof e=="object")try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)}se();G();var Pt=new Map;function O(e,t){Pt.set(e.startsWith("$")?e:`$${e}`,t)}var ur=new Map;function nt(e,t){ur.set(e,t)}var je=class e{constructor(t={},n=null,r=null){this.refs={},this.component=null,this.provides=null,this.magicCache=null,this.data=t,this.parent=n,this.el=r}get root(){let t=this;for(;t.parent;)t=t.parent;return t}inject(t,n){let r=this;for(;r;){if(r.provides&&t in r.provides)return r.provides[t];r=r.parent}return n}get owner(){let t=this;for(;t;){if(t.component)return t;t=t.parent}return null}get allRefs(){let t=[],n=this;for(;n;)t.unshift(n),n=n.parent;let r={};for(let o of t)Object.assign(r,o.refs);return r}lookup(t){let n=this;for(;n;){if(t in n.data)return n.data;n=n.parent}if(t.charCodeAt(0)===36&&Pt.has(t))return this.magicContainer(t,Pt);if(ur.has(t))return this.magicContainer(t,ur)}has(t){return this.lookup(t)!==void 0}get(t){let n=this.lookup(t);return n?n[t]:void 0}set(t,n){let r=this;for(;r;){if(t in r.data){r.data[t]=n;return}r=r.parent}this.data[t]=n}child(t={},n=null){return new e(t,this,n!=null?n:this.el)}reactiveChild(t,n=null){return new e(F(t),this,n!=null?n:this.el)}magicContainer(t,n){this.magicCache||(this.magicCache=new Map);let r=this.magicCache.get(t);if(r)return r;let o=n.get(t),s=this,i={};return Object.defineProperty(i,t,{get:()=>o(s),set:a=>{let c=o(s);c&&typeof c=="object"&&"set"in c&&c.set(a)},enumerable:!0,configurable:!0}),this.magicCache.set(t,i),i}},pe=new je(F({}));G();se();se();function me(){return w.devtools===!0}function Te(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase();e.id&&(t+=`#${e.id}`);let n=(e.getAttribute("class")||"").trim().split(/\s+/).filter(Boolean);return n.length&&(t+=`.${n.slice(0,2).join(".")}`),`<${t}>`}function Fe(e){me()&&console.warn(`[Voodoo] ${e}`)}var Mo=new Set;function Mt(e,t){me()&&(Mo.has(e)||(Mo.add(e),console.warn(`[Voodoo] ${t}`)))}var Ji=new Set(["confirm-title","confirm-label","confirm-cancel","hold-duration"]);function Lo(e,t,n){me()&&(Ji.has(n)||Mt(`unknown-directive:${n}`,`unknown directive "${t}" at ${Te(e)}. No directive named "${n}" was registered. Check the spelling or register with V.directive("${n}", ...).`))}function No(e,t){Mt(`unknown-component:${t}`,`component "${t}" not registered at ${Te(e)}. Register with V.component("${t}", { ... }) before using the tag, or remove the attribute to leave the element as plain HTML.`)}function lr(e,t,n,r){if(!me())return;let o=r instanceof Error?r.message.split(`
59
- `)[0]:String(r);Fe(`invalid expression in ${t}="${n}" on element ${Te(e)}.
58
+ Expression: ${r}`:n);F(this,"expression",r);this.name="VoodooRuntimeError"}},$r=Symbol("spread"),Jt=class{constructor(t){F(this,"value",t)}};function ts(e){return e instanceof Jt?e.value:e}var Ia=new Set(["__proto__","constructor","prototype"]);function is(e){return typeof e=="string"&&Ia.has(e)}function Ie(e,t){if(is(e))throw new X(`Access blocked to "${String(e)}": template expressions cannot reach the prototype chain. Expose a method in state instead.`,t);return e}function x(e,t){var n,r;switch(e.t){case"lit":return e.v;case"tpl":{let o=(n=e.quasis[0])!=null?n:"";for(let s=0;s<e.exprs.length;s++)o+=De(x(e.exprs[s],t)),o+=(r=e.quasis[s+1])!=null?r:"";return o}case"id":{Ie(e.n);let o=t.lookup(e.n);return o?o[e.n]:e.n in de?de[e.n]:void 0}case"member":{let o=x(e.o,t);if(o==null){if(e.opt)return;throw new X(`Could not read "${Or(e,t)}" from ${o===null?"null":"undefined"}`)}let s=Ie(e.computed?x(e.p,t):e.p.v);return o[s]}case"new":{let o=x(e.callee,t);if(typeof o!="function")throw new X(`Cannot construct ${De(o)}: it is not a constructor`);if(o===Function)throw new X("Cannot construct Function: expressions never compile code");let s=rs(e.args,t);return Reflect.construct(o,s)}case"call":{let o,s;if(e.callee.t==="member"){let i=x(e.callee.o,t);if(i==null){if(e.callee.opt||e.opt)return;throw new X(`Could not call "${Or(e.callee,t)}" from ${i===null?"null":"undefined"}`)}let a=Ie(e.callee.computed?x(e.callee.p,t):e.callee.p.v);o=i,s=i[a]}else if(e.callee.t==="id"){Ie(e.callee.n);let i=t.lookup(e.callee.n);i?(o=i,s=i[e.callee.n]):s=de[e.callee.n]}else s=x(e.callee,t);if(s==null&&e.opt)return;if(typeof s!="function"){let i=e.callee.t==="id"?e.callee.n:Or(e.callee,t);throw e.callee.t==="id"&&!t.lookup(i)&&!(i in de)?Ha.has(i)?new X(`"${i}" is blocked. Expressions run in a sandbox without access to it.`):new X(`"${i}" was not found. Expressions cannot reach window: expose it with V.config.globals.${i} = ..., or put it in scope with V.data({ ${i} }).`):new X(`"${i}" is not a function`)}return s.apply(o,rs(e.args,t))}case"unary":{if(e.op==="...")return{[$r]:x(e.a,t)};if(e.op==="delete"){if(e.a.t!=="member")throw new X("delete needs a property, as in `delete user.name` or `delete list[0]`");let s=x(e.a.o,t);if(s==null)return!0;let i=Ie(e.a.computed?x(e.a.p,t):e.a.p.v);return delete s[i]}if(e.op==="typeof"){if(e.a.t==="id"){if(is(e.a.n))return"undefined";let s=t.lookup(e.a.n);return typeof(s?s[e.a.n]:de[e.a.n])}return typeof x(e.a,t)}let o=x(e.a,t);switch(e.op){case"!":return!o;case"-":return-o;case"+":return+o;case"~":return~o;case"void":return}throw new X(`Unsupported unary operator: ${e.op}`)}case"update":{let o=Number(x(e.a,t)),s=e.op==="++"?o+1:o-1;return os(e.a,s,t),e.prefix?s:o}case"bin":{let o=x(e.l,t),s=x(e.r,t);switch(e.op){case"+":return o+s;case"-":return o-s;case"*":return o*s;case"/":return o/s;case"%":return o%s;case"**":return o**s;case"==":return o==s;case"!=":return o!=s;case"===":return o===s;case"!==":return o!==s;case"<":return o<s;case">":return o>s;case"<=":return o<=s;case">=":return o>=s;case"in":return o in s;case"instanceof":return o instanceof s;case"&":return o&s;case"|":return o|s;case"^":return o^s;case"<<":return o<<s;case">>":return o>>s;case">>>":return o>>>s}throw new X(`Unsupported operator: ${e.op}`)}case"logic":{let o=x(e.l,t);return e.op==="&&"?o&&x(e.r,t):e.op==="||"?o||x(e.r,t):o!=null?o:x(e.r,t)}case"cond":return x(e.test,t)?x(e.cons,t):x(e.alt,t);case"assign":{let o;if(e.op==="=")o=x(e.value,t);else if(e.op==="&&="||e.op==="||="||e.op==="??="){let s=x(e.target,t);if(!(e.op==="&&="?!!s:e.op==="||="?!s:s==null))return s;o=x(e.value,t)}else{let s=x(e.target,t),i=x(e.value,t);switch(e.op){case"+=":o=s+i;break;case"-=":o=s-i;break;case"*=":o=s*i;break;case"/=":o=s/i;break;case"%=":o=s%i;break;case"**=":o=s**i;break;default:throw new X(`Unsupported assignment: ${e.op}`)}}return os(e.target,o,t),o}case"if":return x(e.test,t)?x(e.cons,t):e.alt?x(e.alt,t):void 0;case"method":{let o=e.params,s=e.body;return function(...i){let a=ns(o,i,t),c=this,u=c!==null&&typeof c=="object"?t.child(c):t;return ts(x(s,u.child(a)))}}case"arrow":{let o=e.params,s=e.body;return(...i)=>ts(x(s,t.child(ns(o,i,t))))}case"obj":{let o={};for(let s of e.props)if(s.spread)Object.assign(o,x(s.spread,t));else{let i=Ie(s.key!==null?s.key:String(x(s.keyExpr,t)));if(s.getter){let a=x(s.value,t);Object.defineProperty(o,i,{enumerable:!0,configurable:!0,get(){return a.call(this)}});continue}o[i]=x(s.value,t)}return o}case"arr":{let o=[];for(let s of e.els)s&&typeof s=="object"&&"spread"in s?o.push(...x(s.spread,t)):o.push(x(s,t));return o}case"return":return new Jt(e.a?x(e.a,t):void 0);case"seq":{let o;for(let s of e.body)if(o=x(s,t),o instanceof Jt)return o;return o}}throw new X(`Unknown node: ${e.t}`)}function Hr(e,t,n,r){if(e.kind==="rest"){n[e.name]=t;return}if(e.def!==void 0&&t===void 0&&(t=x(e.def,r.child(n))),e.kind==="id"){n[e.name]=t;return}if(e.kind==="obj"){if(t==null)throw new X(`Cannot destructure ${t===null?"null":"undefined"}`);let s=new Set;for(let{key:i,value:a}of e.props)s.add(i),Hr(a,t[Ie(i)],n,r);if(e.rest){let i={};for(let a of Object.keys(t))s.has(a)||(i[a]=t[a]);n[e.rest]=i}return}let o=Array.isArray(t)?t:Array.from(t);e.elements.forEach((s,i)=>{s&&Hr(s,o[i],n,r)}),e.rest&&(n[e.rest]=o.slice(e.elements.length))}function ns(e,t,n){let r={};for(let o=0;o<e.length;o++){let s=e[o];Hr(s,s.kind==="rest"?t.slice(o):t[o],r,n)}return r}function rs(e,t){let n=[];for(let r of e){let o=x(r,t);o&&typeof o=="object"&&$r in o?n.push(...o[$r]):n.push(o)}return n}function os(e,t,n){if(e.t==="id"){Ie(e.n),n.set(e.n,t);return}if(e.t==="member"){let r=x(e.o,n);if(r==null)throw new X("Could not write to null or undefined");let o=Ie(e.computed?x(e.p,n):e.p.v);r[o]=t;return}throw new X("Invalid assignment target")}function Or(e,t){return e.t==="member"?e.computed?String(x(e.p,t)):String(e.p.v):e.t==="id"?e.n:"value"}function De(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(e instanceof Date)return e.toLocaleString();if(typeof e=="object")try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)}Ee();fe();var Zt=new Map;function W(e,t){Zt.set(e.startsWith("$")?e:`$${e}`,t)}var Ir=new Map;function Et(e,t){Ir.set(e,t)}var nt=class e{constructor(t={},n=null,r=null){this.refs={},this.component=null,this.provides=null,this.magicCache=null,this.data=t,this.parent=n,this.el=r}get root(){let t=this;for(;t.parent;)t=t.parent;return t}inject(t,n){let r=this;for(;r;){if(r.provides&&t in r.provides)return r.provides[t];r=r.parent}return n}get owner(){let t=this;for(;t;){if(t.component)return t;t=t.parent}return null}get allRefs(){let t=[],n=this;for(;n;)t.unshift(n),n=n.parent;let r={};for(let o of t)Object.assign(r,o.refs);return r}lookup(t){let n=this;for(;n;){if(t in n.data)return n.data;n=n.parent}if(t.charCodeAt(0)===36&&Zt.has(t))return this.magicContainer(t,Zt);if(Ir.has(t))return this.magicContainer(t,Ir)}has(t){return this.lookup(t)!==void 0}get(t){let n=this.lookup(t);return n?n[t]:void 0}set(t,n){let r=this;for(;r;){if(t in r.data){r.data[t]=n;return}r=r.parent}this.data[t]=n}child(t={},n=null){return new e(t,this,n!=null?n:this.el)}reactiveChild(t,n=null){return new e(G(t),this,n!=null?n:this.el)}magicContainer(t,n){this.magicCache||(this.magicCache=new Map);let r=this.magicCache.get(t);if(r)return r;let o=n.get(t),s=this,i={};return Object.defineProperty(i,t,{get:()=>o(s),set:a=>{let c=o(s);c&&typeof c=="object"&&"set"in c&&c.set(a)},enumerable:!0,configurable:!0}),this.magicCache.set(t,i),i}},Le=new nt(G({}));fe();Ee();Ee();function Ne(){return w.devtools===!0}function Fe(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase();e.id&&(t+=`#${e.id}`);let n=(e.getAttribute("class")||"").trim().split(/\s+/).filter(Boolean);return n.length&&(t+=`.${n.slice(0,2).join(".")}`),`<${t}>`}function rt(e){Ne()&&console.warn(`[Voodoo] ${e}`)}var cs=new Set;function en(e,t){Ne()&&(cs.has(e)||(cs.add(e),console.warn(`[Voodoo] ${t}`)))}var Da=new Set(["confirm-title","confirm-label","confirm-cancel","hold-duration"]);function us(e,t,n){Ne()&&(Da.has(n)||en(`unknown-directive:${n}`,`unknown directive "${t}" at ${Fe(e)}. No directive named "${n}" was registered. Check the spelling or register with V.directive("${n}", ...).`))}function ls(e,t){en(`unknown-component:${t}`,`component "${t}" not registered at ${Fe(e)}. Register with V.component("${t}", { ... }) before using the tag, or remove the attribute to leave the element as plain HTML.`)}function Dr(e,t,n,r){if(!Ne())return;let o=r instanceof Error?r.message.split(`
59
+ `)[0]:String(r);rt(`invalid expression in ${t}="${n}" on element ${Fe(e)}.
60
60
  Reason: ${o}
61
- Suggestion: attribute expressions accept a single value. If the logic spans more than one line, move it to a component method and call the method here.`)}function Oo(e,t,n){me()&&Fe(`duplicate key "${String(t)}" in v-for="${n}" on element ${Te(e)}. Two rows with the same key cause the list to reuse the wrong block when reordering. Use a unique key, like the item id.`)}function $o(e,t,n){me()&&Fe(`required prop "${n}" missing from component "${t}" at ${Te(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function dr(e,t){Mt(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var Ue=new WeakMap,un=new WeakMap,xe=new WeakSet,fr=new WeakMap;function yr(e){return xe.has(e)}function vr(e){xe.add(e)}function it(e){return Ue.get(e)}function Ee(e){let t=e;for(;t;){let n=Ue.get(t);if(n)return n;t=t.parentNode}return pe}function Bo(e,t){let n=fr.get(e);n||fr.set(e,n=[]),n.push(t)}var pr=new WeakSet,ln=new WeakMap;function br(e){pr.add(e);let t=e.parentNode;if(t){let n=ln.get(t);n||ln.set(t,n=new Set),n.add(e)}e.remove()}function ne(e,t){let n=un.get(e);n||un.set(e,n=[]),n.push(t)}function $(e){if(e.nodeType===1){let r=[];for(let o=e.firstChild;o;o=o.nextSibling)(o.nodeType===1||o.nodeType===3)&&r.push(o);for(let o=r.length-1;o>=0;o--)$(r[o])}let t=ln.get(e);if(t){ln.delete(e);for(let r of t)$(r)}let n=un.get(e);if(n){un.delete(e);for(let r=n.length-1;r>=0;r--)try{n[r]()}catch(o){N(o,"cleanup")}}e.nodeType===1&&oa(e),Ue.delete(e),fr.delete(e),xe.delete(e)}var cn=new Map,Zi=4e3;function ot(e,t){let n=`${e}\0${t}`,r=cn.get(n);if(r!==void 0)return r;let o=ea(e,t);return cn.size>=Zi&&cn.clear(),cn.set(n,o),o}function ea(e,t){let n=w.prefix,r;if(e.startsWith("@"))r=`on:${e.slice(1)}`;else if(e.startsWith(":")&&e.length>1)r=`bind:${e.slice(1)}`;else if(e.startsWith(".")&&e.length>1)r=`bind:${e.slice(1)}.prop`;else if(e.startsWith(n))r=e.slice(n.length);else if(e.startsWith("data-v-"))r=e.slice(7);else return null;if(!r)return null;let o=r.split("."),s=o.shift(),i={};for(let l of o){let f=l.indexOf("=");f>-1?i[l.slice(0,f)]=l.slice(f+1):i[l]=!0}let a=s.indexOf(":"),c=a>-1?s.slice(0,a):s,u=a>-1?s.slice(a+1):void 0;return{raw:e,name:c,arg:u,modifiers:i,expression:t}}function ta(e){let t=[],n=st.get(e);if(n&&n.size)for(let[r,o]of n){let s=ot(r,o);s&&(t.push(s),Do(e,s.name))}else{let r=Uo(e);for(let o=0;o<r.length;o++){let s=r[o];if(!ra(s))continue;let i=ot(s,e.getAttribute(s));i&&(t.push(i),Do(e,i.name))}}return t.length<2?t:t.sort((r,o)=>Ho(o)-Ho(r))}var na=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function Uo(e){return na?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function ra(e){return qo(e)||e.charCodeAt(0)===46&&e.length>1}function Ho(e){var t,n;return(n=(t=we.get(e.name))==null?void 0:t.priority)!=null?n:0}var mr=new Map,dn=new WeakMap;function Do(e,t){let n=mr.get(t);n||mr.set(t,n=new Set),n.add(e);let r=dn.get(e);r||dn.set(e,r=new Set),r.add(t)}function oa(e){var n;let t=dn.get(e);if(t){for(let r of t)(n=mr.get(r))==null||n.delete(e);dn.delete(e)}}var st=new WeakMap;function qo(e){return e.startsWith(w.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function _o(e,t){var r;let n=(r=st.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function Vo(e,t){let n=st.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function sa(e){if(!w.cleanAttributes)return;let t=Uo(e),n=st.get(e);n||st.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];qo(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function Wo(e){let t=st.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function zo(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(w.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function H(e,t,n,r){if(e)try{return x(oe(e),t)}catch(o){me()&&lr(r!=null?r:t.el,n!=null?n:"expression",e,o),N(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var Qo=new WeakSet;function Ko(e){Qo.add(e)}function Io(e,t,n){let r=we.get(t.name);if(!r){me()&&t.raw.startsWith(w.prefix)&&Lo(e,t.raw,t.name);return}let o=null,s=()=>{if(!o){let a=o=new re(!0);ne(e,()=>a.stop()),Bo(e,a)}return o},i={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return H(a!=null?a:t.expression,n,t.raw,e)},effect(a){let c=s(),u=()=>{let l=Be;Be=e;try{a()}finally{Be=l}};c.run(()=>J(u,{scope:c}))},cleanup(a){ne(e,a)},walk(a,c){j(a,c)}};try{r.setup(i)}catch(a){N(a,`directive ${t.raw}`)}}var hr=null;function Go(e){hr=e}var ia=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function j(e,t){let n=t!=null?t:Ee(e.parentNode);if(e.nodeType===11){let u=Array.from(e.childNodes);for(let l of u)j(l,n);return}if(e.nodeType===3){Xo(e,n);return}if(e.nodeType!==1)return;let r=e;if(xe.has(r))return;let o=r.tagName;if(ia.has(o))return;if(r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)){xe.add(r);return}let s=n,i=ta(r),a=z.size===0&&at.size===0||r.hasAttribute(`${w.prefix}component`)?null:ha(o);if(i.length===0&&!a){Yo(r,s);return}xe.add(r);let c=Be;Be=r;try{ca(r,i,a,s)}finally{Be=c}}var Be=null;function wr(){return Be}function aa(e,t,n){let r=null;try{r=oe(e)}catch(a){r=null}if(!(r&&r.t==="obj"&&r.props.every(a=>!a.spread&&!a.keyExpr))){let a=H(e,t,"v-data");return t.reactiveChild(a&&typeof a=="object"?a:{},n)}let s=t.reactiveChild({},n),i=r.props;for(let a of i)if(a.key!==null)try{if(a.getter){let c=x(a.value,s);Object.defineProperty(s.data,a.key,{enumerable:!0,configurable:!0,get:()=>c.call(s.data)})}else s.data[a.key]=x(a.value,s)}catch(c){me()?lr(n,e,e,c):N(c,"v-data")}return s}function ca(e,t,n,r){let o=r;for(let l of t){let f=we.get(l.name);if(f!=null&&f.terminal){Io(e,l,o);return}}let s=t.find(l=>l.name==="data"),i=t.find(l=>l.name==="component"),a=i?i.expression||"":n||"",c=!1;if(a&&hr){let l=hr(e,a,o);l&&(o=l,c=!0,Ue.set(e,o))}else(s||i)&&(o=aa(s&&s.expression||"{}",o,e),Ue.set(e,o));let u=c?r:o;for(let l of t)l.name==="data"||l.name==="component"||Io(e,l,u);sa(e),Qo.has(e)||Yo(e,o)}function Yo(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&Xo(o,t);for(let o of n)j(o,(r=Ue.get(o))!=null?r:t)}var ua=500,jo=new Map;function la(e){let t=e.trim();if(!t)return!1;let n=jo.get(t);if(n!==void 0)return n;let r=!0;try{r=oe(t).t!=="seq"}catch(o){r=!1}return jo.set(t,r),r}function da(e,t){let n=0,r=null;for(let o=t;o<e.length;o++){let s=e[o];if(r){s==="\\"?o++:s===r&&(r=null);continue}if(s==='"'||s==="'"||s==="`"){r=s;continue}if(s==="{")n++;else if(s==="}"&&(n--,n===0))return o}return-1}function fa(e){let t=[],n="",r=0,o=()=>{n&&t.push({text:n}),n=""};for(;r<e.length;){let s=e.indexOf("{",r);if(s===-1){n+=e.slice(r);break}n+=e.slice(r,s);let i=e[s+1]==="{",a=i?e.indexOf("}}",s+2):da(e,s);if(a===-1){n+=e[s],r=s+1;continue}let c=i?e.slice(s+2,a):e.slice(s+1,a),u=i?a+2:a+1;if((i||c.length<=ua)&&la(c)){o(),t.push({expression:c.trim(),raw:e.slice(s,u),explicit:i}),r=u;continue}n+=e[s],r=s+1}return o(),t}var pa=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function ma(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=oe(e.expression)}catch(o){return!0}return r.t==="lit"?!0:t!==void 0?!1:r.t==="id"?n.lookup(r.n)===void 0&&!(r.n in Y):!1}function Xo(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||xe.has(e))return;let r=e.parentElement;for(;r;){if(pa.has(r.tagName)||r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=fa(n);if(!o.some(i=>i.expression))return;xe.add(e);let s=new re(!0);ne(e,()=>s.stop()),Bo(e,s),s.run(()=>J(()=>{let i="";for(let a of o){if(a.text!==void 0){i+=a.text;continue}let c=H(a.expression,t,"interpolation");i+=ma(a,c,t)?a.raw:be(c)}e.textContent!==i&&(e.textContent=i)},{scope:s}))}function Lt(e,t){Ue.set(e,t)}function ha(e){let t=e.toLowerCase();if(z.has(t))return t;let n=at.get(t);return n!=null?n:null}var at=new Map;var gr=!1,rt=null,ga=[];function Fo(e,t){for(let n of ga)try{n(e,t)}catch(r){console.error("[Voodoo] a start hook failed",r)}}function Jo(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:w.root)!=null?n:document.body;t&&(Object.assign(Y,w.globals),Fo(t,!1),j(t,pe),Fo(t,!0),gr||(gr=!0,w.autoDiscover&&ya(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function ya(e){typeof MutationObserver!="undefined"&&(rt=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(pr.has(o)){pr.delete(o);continue}o.nodeType===1&&!o.isConnected&&$(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(xe.has(o)||j(o,Ee(o.parentNode)))}}}),rt.observe(e,{childList:!0,subtree:!0}))}function Zo(){rt==null||rt.disconnect(),rt=null,gr=!1}function es(e){j(e!=null?e:document.body,e?Ee(e.parentNode):pe)}G();se();var pn=new Set,ts=new Set;function ut(e,t){let n=Ie(e);z.set(n,t),at.set(n.replace(/-/g,""),n),va(n)}function va(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${w.prefix}component="${e}"]`];for(let o of n){let s;try{s=Array.from(document.querySelectorAll(o))}catch(i){continue}for(let i of s){if((r=it(i))!=null&&r.component||ba(i))continue;let a=Ee(i.parentNode);yr(i)&&($(i),Wo(i)),j(i,a)}}}function ba(e){let t=e.parentElement;for(;t&&t!==document.body;){if(zo(t)&&!yr(t))return!0;t=t.parentElement}return!1}function wa(e,t){var n,r;if(!t||!t.type||t.type==="any")return e;if(e==null||e==="")return(n=t.default)!=null?n:e;switch(t.type){case"number":{let o=Number(e);return Number.isNaN(o)?(r=t.default)!=null?r:e:o}case"boolean":return e===""||e==="true"||e===!0||e==="1";case"string":return String(e);case"array":return Array.isArray(e)?e:[e];default:return e}}function Ta(e){let t={};if(Array.isArray(e.props))for(let n of e.props)t[n]={type:"any"};else e.props&&Object.assign(t,e.props);return t}function Tr(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function xa(e,t,n,r,o){var u;let s=F({}),i=Object.keys(t),a=new Map;for(let l of i)a.set(l.toLowerCase(),l),a.set(Ie(l),l),a.set(Tr(l).toLowerCase(),l);for(let l of i)t[l].default!==void 0&&(s[l]=t[l].default);let c=Array.from(e.attributes);for(let l of c){let f=ot(l.name,l.value);if(f&&f.name==="bind"&&f.arg){let d=(u=a.get(f.arg.toLowerCase()))!=null?u:Tr(f.arg);if(i.length&&!a.has(f.arg.toLowerCase()))continue;r.run(()=>J(()=>{s[d]=H(f.expression,n,`:${f.arg}`)}));continue}if(f)continue;let p=a.get(l.name.toLowerCase());p?s[p]=wa(l.value,t[p]):i.length||(s[Tr(l.name)]=l.value)}for(let l of i)t[l].required&&s[l]===void 0&&$o(e,o,l);return s}function Ea(e,t,n){let r=Array.from(e.querySelectorAll("slot"));if(!r.length)return;let o=new Map,s=[];Array.from(t.childNodes).forEach(i=>{var c,u;let a=i.nodeType===1&&(c=i.getAttribute("slot"))!=null?c:null;if(a){i.removeAttribute("slot");let l=(u=o.get(a))!=null?u:[];l.push(i),o.set(a,l)}else s.push(i)});for(let i of r){let a=i.getAttribute("name"),c=a?o.get(a):s,u=document.createDocumentFragment();if(c&&c.length)for(let l of c)u.appendChild(l);else for(;i.firstChild;)u.appendChild(i.firstChild);Array.from(u.childNodes).forEach(l=>{l.nodeType===1&&ka(l,n)}),i.replaceWith(u)}}var fn=null;function ns(e){fn=e}function ka(e,t){fn==null||fn(e,t)}function rs(e,t,n){var v,I,D,C,W,P,te,q;let r=t?Ie(t):"",o=r?(D=(I=z.get(r))!=null?I:z.get((v=at.get(r))!=null?v:""))!=null?D:{}:{};r&&!z.has(r)&&!at.has(r)&&No(e,t);let s=new re(!0),i=Ta(o),a=xa(e,i,n,s,r||"inline");!o.state&&o.data&&dr("data()","state()"),o.destroyed&&dr("destroyed()","unmounted()");let c=(C=o.state)!=null?C:o.data,u={},l={},f=o.inheritScope?n:n.root,p=new je({},f,e);p.component=l;try{u=c?(W=c.call(l,a))!=null?W:{}:{}}catch(T){N(T,`state() of component "${t}"`)}let d=e.getAttribute(`${w.prefix}data`);if(d){let T=H(d,n,"v-data");T&&typeof T=="object"&&Object.assign(u,T)}if(o.provide)try{let T=typeof o.provide=="function"?o.provide.call(l):o.provide;T&&typeof T=="object"&&(p.provides={...T})}catch(T){N(T,`provide() of component "${t}"`)}if(o.inject){let T=Array.isArray(o.inject)?o.inject.map(b=>[b,{from:b}]):Object.entries(o.inject).map(([b,R])=>[b,R!=null?R:{}]);for(let[b,R]of T){let Le=(P=R.from)!=null?P:b,Fn=n.inject(Le,R.default);b in u||(u[b]=Fn)}}let m=F(u),g={};if(o.computed)for(let[T,b]of Object.entries(o.computed))g[T]=De(()=>b.call(l));let h={};if(o.methods)for(let[T,b]of Object.entries(o.methods))h[T]=(...R)=>b.apply(l,R);for(let[T,b]of Object.entries(o))typeof b=="function"&&(Sa.has(T)||T==="state"||T==="data"||T in h||(h[T]=(...R)=>b.apply(l,R)));let y=(T,b)=>{let R=new CustomEvent(T,{detail:b,bubbles:!0,cancelable:!0});R.__voodoo=!0,e.dispatchEvent(R)},S={$el:e,$props:a,$name:r||"inline",$scope:p,$parent:(q=(te=n.owner)==null?void 0:te.component)!=null?q:null,emit:y,$emit:y,$nextTick:T=>Promise.resolve().then(()=>(G(),mo)).then(b=>b.nextTick(T)),$watch:(T,b)=>fe(()=>H(T,p),b)},V={get(T,b){if(typeof b!="symbol")return b==="$refs"?p.allRefs:b in S?S[b]:b in g?g[b].value:b in h?h[b]:b in a?a[b]:m[b]},set(T,b,R){return typeof b=="symbol"?!0:b in g?(g[b].value=R,!0):b in a?(a[b]=R,!0):(m[b]=R,!0)},has(T,b){if(typeof b=="symbol")return!1;let R=b;return R==="$refs"||R in S||R in g||R in h||R in a||R in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(h),...Object.keys(g)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},k=new Proxy(l,V);if(p.data=k,Object.setPrototypeOf(l,k),o.watch)for(let[T,b]of Object.entries(o.watch))s.run(()=>fe(()=>k[T],(R,Le)=>b.call(k,R,Le)));if(o.style&&!ts.has(r)){ts.add(r);let T=document.createElement("style");T.setAttribute("data-voodoo-component",r),T.textContent=o.style,document.head.appendChild(T)}if(ct(o,k,"beforeMount"),o.template){let T=document.createDocumentFragment();for(;e.firstChild;)T.appendChild(e.firstChild);e.innerHTML=o.template,Ea(e,T,n)}return pn.add(k),Re(()=>{ct(o,k,"mounted"),o.updated&&s.run(()=>J(()=>{for(let T of Object.keys(m))m[T];ct(o,k,"updated")}))}),ne(e,()=>{ct(o,k,"beforeUnmount"),s.stop(),pn.delete(k),ct(o,k,"unmounted"),ct(o,k,"destroyed")}),p}var Sa=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function ct(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){N(o,`hook ${n}`)}}G();se();var lt=[],xr=null,mn=0,os=-1,kr=0,Er=!1;function ss(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function Aa(){if(xr||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(xr=new MutationObserver(()=>{mn++}),xr.observe(e,{childList:!0,subtree:!0}))}function is(){if(Er)return;Er=!0;let e=()=>{Er=!1,Ra()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function Ra(){var t;mn===os?kr++:kr=0,os=mn;let e=ss();for(let n=lt.length-1;n>=0;n--){let r=lt[n],o=null;try{o=r.ready()}catch(s){o=null}if(o){lt.splice(n,1),r.action(o);continue}e-r.since>1e4&&(lt.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}lt.length&&is()}function Sr(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}Aa(),lt.push({...e,since:ss()}),is()}function as(){return typeof document=="undefined"||!document.body?!1:kr>=2}function Ca(){return typeof document=="undefined"||!document.body?!1:mn===0}function Nt(e){typeof document!="undefined"&&Sr({ready:()=>as()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function cs(e){if(typeof document!="undefined"){if(Ca()){Promise.resolve().then(e);return}Sr({ready:()=>as()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function hn(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&Sr({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var Pa=0,gn=null;function us(e){gn=e}function ls(e={}){let t=`voodoo-app-${++Pa}`,{components:n,...r}=e,o={globalProperties:{}},s={},i=[],a=null,c="",u=null,l=[];function f(){if(n)for(let[m,g]of Object.entries(n)){let h=Ie(m);z.has(h)||(ut(h,g),i.push(h))}}function p(m){var h,y;if(u)return u;a=m,c=m.innerHTML,Object.assign(Y,o.globalProperties),f();let g={...r};if(Object.keys(s).length){let S=g.provide;g.provide=()=>({...typeof S=="function"?S():S!=null?S:{},...s})}ut(t,g),m.setAttribute(`${w.prefix}component`,t);try{j(m,pe)}catch(S){return N(S,`application mounting "${t}"`),null}if(u=(y=(h=it(m))==null?void 0:h.component)!=null?y:null,u){let S=l;l=[];for(let V of S)V(u)}return u}let d={name:t,config:o,get instance(){return u},get container(){return a},get isMounted(){return u!==null},component(m,g){var y;let h=Ie(m);return g===void 0?(y=n&&n[m])!=null?y:z.get(h):(n?n[m]=g:e.components={[m]:g},u&&!z.has(h)&&(ut(h,g),i.push(h)),d)},directive(m,g){return gn==null||gn(m,g),d},use(m,g){return an(Ma(),m,g),d},provide(m,g){return s[m]=g,d},mount(m){if(u)return u;if(typeof m!="string")return p(m);let g=null;return hn(m,h=>{g=p(h)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),g},whenMounted(){return u?Promise.resolve(u):new Promise(m=>l.push(m))},unmount(){if(a){$(a),a.removeAttribute(`${w.prefix}component`),a.innerHTML=c,z.delete(t);for(let m of i)z.delete(m);i.length=0,u=null,a=null}}};return d}var ds=null;function fs(e){ds=e}function Ma(){return ds}G();G();var Ce=new Map,Ar=de(0),Rr=new Map;function yn(e,t,n={}){let r=Ce.get(e);if(!t){if(!r){let c=F({});return Ce.set(e,c),c}return r}if(r)return Object.assign(r,t),r;let o=typeof n.persist=="string"?n.persist:`voodoo:store:${e}`,s=Object.getOwnPropertyDescriptors(t),i=Object.defineProperties({},s);if(n.persist&&typeof localStorage!="undefined")try{let c=localStorage.getItem(o);if(c){let u=JSON.parse(c);for(let[l,f]of Object.entries(u))s[l]&&!("value"in s[l])||(i[l]=f)}}catch(c){}let a=F(i);for(let[c,u]of Object.entries(s)){let l=u.value;typeof l=="function"&&(a[c]=(...f)=>l.apply(a,f))}if(Ce.set(e,a),Ar.value++,n.persist&&typeof localStorage!="undefined"){let c=fe(a,()=>{try{localStorage.setItem(o,JSON.stringify(La(a)))}catch(u){}},{deep:!0});Rr.set(e,c)}return a}function La(e){let t={},n=Object.getOwnPropertyDescriptors(K(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var qe=new Proxy({},{get:(e,t)=>(Ar.value,Ce.get(t)),has:(e,t)=>(Ar.value,Ce.has(t)),ownKeys:()=>[...Ce.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function ps(e){var t;(t=Rr.get(e))==null||t(),Rr.delete(e),Ce.delete(e)}function ms(){return[...Ce.keys()]}var Mr={};Yt(Mr,{capitalize:()=>gs,chunk:()=>ja,clone:()=>Ot,debounce:()=>_e,device:()=>Ve,escapeHtml:()=>$t,formatCurrency:()=>Ga,formatDate:()=>Xa,formatFileSize:()=>Za,formatNumber:()=>Ya,formatPercent:()=>ec,get:()=>Ba,groupBy:()=>Da,isBrowser:()=>vn,matchesMedia:()=>dt,memoize:()=>Ha,merge:()=>hs,once:()=>$a,parseDuration:()=>_,random:()=>qa,relativeTime:()=>Ja,sample:()=>_a,set:()=>Ua,setFormatDefaults:()=>Ka,sleep:()=>Oa,slugify:()=>Va,sortBy:()=>Fa,stripTags:()=>Qa,throttle:()=>Pr,titleCase:()=>za,truncate:()=>Wa,uid:()=>Cr,unique:()=>Ia,uuid:()=>Na});function Na(){let e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();if(e!=null&&e.getRandomValues){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}function Cr(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function Oa(e){return new Promise(t=>setTimeout(t,e))}function _(e,t=0){if(e==null||e==="")return t;if(typeof e=="number")return e;let n=/^\s*([\d.]+)\s*(ms|s|m|h)?\s*$/i.exec(String(e));if(!n)return t;let r=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"s":return r*1e3;case"m":return r*6e4;case"h":return r*36e5;default:return r}}function _e(e,t=250,n=!1){let r=null,o=null,s,i=function(...a){o=a,s=this;let c=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(s,o)},t),c&&e.apply(this,a)};return i.cancel=()=>{r&&clearTimeout(r),r=null,o=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(s,o))},i}function Pr(e,t=250){let n=0,r=null,o=null,s=function(...i){let a=Date.now();o=i;let c=t-(a-n);c<=0?(r&&(clearTimeout(r),r=null),n=a,e.apply(this,i)):r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&e.apply(this,o)},c))};return s.cancel=()=>{r&&clearTimeout(r),r=null},s.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},s}function $a(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function Ha(e,t=(...n)=>JSON.stringify(n)){let n=new Map,r=function(...o){let s=t(...o);if(n.has(s))return n.get(s);let i=e.apply(this,o);return n.set(s,i),i};return r.cache=n,r}function Ot(e){if(e===null||typeof e!="object")return e;if(typeof structuredClone=="function")try{return structuredClone(e)}catch(n){}if(Array.isArray(e))return e.map(n=>Ot(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Ot(r)]));if(e instanceof Set)return new Set([...e].map(n=>Ot(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Ot(r);return t}function hs(e,...t){for(let n of t)if(n)for(let[r,o]of Object.entries(n)){let s=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&s&&typeof s=="object"&&!Array.isArray(s)?e[r]=hs({...s},o):e[r]=o}return e}function Da(e,t){let n={},r=typeof t=="function"?t:o=>o==null?void 0:o[t];for(let o of e){let s=String(r(o));(n[s]||(n[s]=[])).push(o)}return n}function Ia(e,t){if(!t)return[...new Set(e)];let n=typeof t=="function"?t:s=>s==null?void 0:s[t],r=new Set,o=[];for(let s of e){let i=n(s);r.has(i)||(r.add(i),o.push(s))}return o}function ja(e,t=10){if(t<1)return[e];let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function Fa(e,t,n="asc"){let r=typeof t=="function"?t:s=>s==null?void 0:s[t],o=n==="desc"?-1:1;return[...e].sort((s,i)=>{let a=r(s),c=r(i);return a==null&&c==null?0:a==null?1:c==null?-1:typeof a=="string"&&typeof c=="string"?a.localeCompare(c,void 0,{numeric:!0})*o:(a>c?1:a<c?-1:0)*o})}function Ba(e,t,n){let r=t.split("."),o=e;for(let s of r){if(o==null)return n;o=o[s]}return o!=null?o:n}function Ua(e,t,n){let r=t.split("."),o=e;for(let s=0;s<r.length-1;s++){let i=r[s];(typeof o[i]!="object"||o[i]===null)&&(o[i]=/^\d+$/.test(r[s+1])?[]:{}),o=o[i]}o[r[r.length-1]]=n}function qa(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function _a(e){return e[Math.floor(Math.random()*e.length)]}function Va(e,t="-"){return String(e).normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().trim().replace(/[^a-z0-9]+/g,t).replace(new RegExp(`\\${t}{2,}`,"g"),t).replace(new RegExp(`^\\${t}|\\${t}$`,"g"),"")}function Wa(e,t=100,n="..."){let r=String(e!=null?e:"");return r.length<=t?r:r.slice(0,Math.max(0,t-n.length)).trimEnd()+n}function gs(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function za(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>gs(t.toLowerCase()))}function $t(e){return String(e!=null?e:"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Qa(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var ft="pt-BR",ys="BRL";function Ka(e,t){e&&(ft=e),t&&(ys=t)}function Ga(e,t={}){var r,o;let n=typeof e=="string"?parseFloat(e):e;return n==null||Number.isNaN(n)?"":new Intl.NumberFormat((r=t.locale)!=null?r:ft,{style:"currency",currency:(o=t.currency)!=null?o:ys}).format(n)}function Ya(e,t={}){let n=typeof e=="string"?parseFloat(e):e;if(n==null||Number.isNaN(n))return"";let{locale:r,...o}=t;return new Intl.NumberFormat(r!=null?r:ft,o).format(n)}function Xa(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:ft;if(typeof t=="object")return new Intl.DateTimeFormat(o,t).format(r);let s={short:{day:"2-digit",month:"2-digit",year:"numeric"},long:{day:"2-digit",month:"long",year:"numeric"},full:{dateStyle:"full"},time:{hour:"2-digit",minute:"2-digit"},datetime:{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}};if(s[t])return new Intl.DateTimeFormat(o,s[t]).format(r);let i=a=>String(a).padStart(2,"0");return t.replace(/YYYY/g,String(r.getFullYear())).replace(/YY/g,String(r.getFullYear()).slice(-2)).replace(/MM/g,i(r.getMonth()+1)).replace(/DD/g,i(r.getDate())).replace(/HH/g,i(r.getHours())).replace(/mm/g,i(r.getMinutes())).replace(/ss/g,i(r.getSeconds()))}function Ja(e,t){let n=e instanceof Date?e:new Date(e);if(Number.isNaN(n.getTime()))return"";let r=n.getTime()-Date.now(),o=Math.abs(r),s=[["year",31536e6],["month",2592e6],["week",6048e5],["day",864e5],["hour",36e5],["minute",6e4],["second",1e3]],i=new Intl.RelativeTimeFormat(t!=null?t:ft,{numeric:"auto"});for(let[a,c]of s)if(o>=c||a==="second")return i.format(Math.round(r/c),a);return""}function Za(e,t=1){let n=Number(e);if(!n||Number.isNaN(n))return"0 B";let r=["B","KB","MB","GB","TB","PB"],o=Math.min(Math.floor(Math.log(Math.abs(n))/Math.log(1024)),r.length-1);return`${(n/1024**o).toFixed(o===0?0:t)} ${r[o]}`}function ec(e,t=0,n){return new Intl.NumberFormat(n!=null?n:ft,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var vn=typeof window!="undefined"&&typeof window.document!="undefined";function dt(e){if(!vn||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var Ve={get touch(){return vn&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return dt("(max-width: 767px)")},get tablet(){return dt("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return dt("(min-width: 1024px)")},get online(){return!vn||navigator.onLine},get reducedMotion(){return dt("(prefers-reduced-motion: reduce)")},get darkMode(){return dt("(prefers-color-scheme: dark)")}};var Z=class extends Error{constructor(n,r,o,s){super(n);M(this,"response",r);M(this,"config",o);M(this,"cause",s);this.name="HttpError"}get status(){var n,r;return(r=(n=this.response)==null?void 0:n.status)!=null?r:0}get isNetworkError(){return!this.response}},Q={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},bn=[],wn=[],Ht=[],Dt=new Map;function vs(e){var t;return`${(t=e.method)!=null?t:"GET"} ${mt(e)}`}function tc(e){if(!e){Dt.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Dt.keys()])t(n)&&Dt.delete(n)}var ws="voodoo:offline-queue";function Lr(){try{return JSON.parse(localStorage.getItem(ws)||"[]")}catch(e){return[]}}function Nr(e){try{localStorage.setItem(ws,JSON.stringify(e))}catch(t){}}function nc(e){var n,r;if(typeof localStorage=="undefined")return;let t=Lr();t.push({url:mt(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),Nr(t)}async function Ts(){if(typeof localStorage=="undefined")return 0;let e=Lr();if(!e.length)return 0;Nr([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await It({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let s=Lr();Nr([...e.slice(n),...s]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Ts()});function mt(e){let t=e.url,n=Q.baseURL;if(n&&!/^https?:\/\//i.test(t)&&!t.startsWith("//")&&(t=`${n.replace(/\/$/,"")}/${t.replace(/^\//,"")}`),e.params){let r=new URLSearchParams;for(let[s,i]of Object.entries(e.params))i==null||i===""||r.append(s,String(i));let o=r.toString();o&&(t+=(t.includes("?")?"&":"?")+o)}return t}function xs(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${Q.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function rc(e,t){if(e!=null)return typeof FormData!="undefined"&&e instanceof FormData||typeof Blob!="undefined"&&e instanceof Blob||typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams||typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer||typeof e=="string"?e:(t["Content-Type"]||(t["Content-Type"]="application/json"),JSON.stringify(e))}async function oc(e,t){if(e.status===204||e.status===205)return null;let n=e.headers.get("content-type")||"";switch(t){case"json":return e.json();case"text":return e.text();case"blob":return e.blob();case"arrayBuffer":return e.arrayBuffer();case"formData":return e.formData();default:if(n.includes("application/json")||n.includes("+json")){let r=await e.text();return r?JSON.parse(r):null}return e.text()}}var sc=new Set(["GET","HEAD","OPTIONS"]);function ic(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function ac(e,t,n,r){var o;return sc.has(e)||t.retryUnsafe===!0||ic(n)?!0:(((o=t.retry)!=null?o:0)>0&&Mt(`http:retry-unsafe:${e} ${r}`,`retry ignored on ${e} ${r}: retrying a method that changes state may apply the same operation twice if the response is lost in transit. Allow with retryUnsafe: true or send an Idempotency-Key header.`),!1)}async function It(e){var l,f,p,d,m;let t={method:"GET",timeout:Q.timeout,retry:Q.retry,retryDelay:Q.retryDelay,credentials:Q.credentials,responseType:"auto",...e,headers:{...Q.headers,...e.headers}};for(let g of bn)t=await g(t);let n=((l=t.method)!=null?l:"GET").toUpperCase();if(t.cache&&n==="GET"){let g=Dt.get(vs(t));if(g&&g.expires>Date.now())return g.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return nc(t),{data:null,status:0,statusText:"offline-queued",headers:new Headers,ok:!0,raw:new Response(null,{status:202}),config:t};let r={...t.headers};if(n!=="GET"&&n!=="HEAD"){let g=xs();g&&!r[Q.csrfHeader]&&(r[Q.csrfHeader]=g)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=rc(t.body,r),s=mt(t),i=ac(n,t,r,s)?((f=t.retry)!=null?f:0)+1:1,a;for(let g=0;g<i;g++){let h=new AbortController,y=t.signal,S=null;y&&(y.aborted?h.abort(y.reason):(S=()=>h.abort(y.reason),y.addEventListener("abort",S,{once:!0})));let V=()=>{S&&y&&y.removeEventListener("abort",S),S=null},k=t.timeout&&t.timeout>0?setTimeout(()=>h.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let v=await fetch(s,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:h.signal});k&&clearTimeout(k),V();let D={data:await oc(v,t.responseType),status:v.status,statusText:v.statusText,headers:v.headers,ok:v.ok,raw:v,config:t};if(!v.ok){if(v.status>=500&&g<i-1){await bs(((p=t.retryDelay)!=null?p:500)*2**g);continue}let C=new Z(`Request failed with status ${v.status}`,D,t);for(let W of Ht)W(C);throw C}for(let C of wn)D=await C(D);return t.cache&&n==="GET"&&Dt.set(vs(t),{expires:Date.now()+t.cache,value:D}),D}catch(v){if(k&&clearTimeout(k),V(),v instanceof Z)throw v;if(a=v,(v==null?void 0:v.name)==="AbortError"&&((d=t.signal)==null?void 0:d.aborted))break;if(g<i-1){await bs(((m=t.retryDelay)!=null?m:500)*2**g);continue}}}let c=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${s}`,u=new Z(c,void 0,t,a);for(let g of Ht)g(u);throw u}function bs(e){return new Promise(t=>setTimeout(t,e))}async function pt(e){return(await It(e)).data}var ie={defaults:Q,get(e,t={}){return pt({...t,url:e,method:"GET"})},post(e,t,n={}){return pt({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return pt({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return pt({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return pt({...t,url:e,method:"DELETE"})},head(e,t={}){return pt({...t,url:e,method:"HEAD"})},request:It,upload(e,t,n={}){return new Promise((r,o)=>{var c,u;let s=new XMLHttpRequest,i=mt({url:e});s.open((c=n.method)!=null?c:"POST",i);for(let[l,f]of Object.entries({...Q.headers,...n.headers}))l.toLowerCase()!=="content-type"&&s.setRequestHeader(l,f);let a=xs();a&&s.setRequestHeader(Q.csrfHeader,a),s.upload.addEventListener("progress",l=>{var f;l.lengthComputable&&((f=n.onProgress)==null||f.call(n,Math.round(l.loaded/l.total*100),l.loaded,l.total))}),s.addEventListener("load",()=>{let l=s.getResponseHeader("content-type")||"",f=s.responseText;if(l.includes("json"))try{f=JSON.parse(s.responseText)}catch(p){}s.status>=200&&s.status<300?r(f):o(new Z(`Upload failed with status ${s.status}`))}),s.addEventListener("error",()=>o(new Z("Network failure during upload"))),s.addEventListener("abort",()=>o(new Z("Upload canceled"))),(u=n.signal)==null||u.addEventListener("abort",()=>s.abort()),s.send(t)})},sse(e,t={}){let n=new EventSource(mt({url:e}));return n.addEventListener("message",r=>{var s;let o=r.data;try{o=JSON.parse(r.data)}catch(i){}(s=t.message)==null||s.call(t,o,r)}),t.error&&n.addEventListener("error",t.error),n},async stream(e,t,n={}){var a;let r=await fetch(mt({url:e,params:n.params}),{headers:{...Q.headers,...n.headers},signal:n.signal});if(!r.body)return;let o=r.body.getReader(),s=new TextDecoder,i="";for(;;){let{done:c,value:u}=await o.read();if(c)break;i+=s.decode(u,{stream:!0});let l=i.split(`
62
- `);i=(a=l.pop())!=null?a:"";for(let f of l)f.trim()&&t(f)}i.trim()&&t(i)},interceptors:{request:{use(e){return bn.push(e),()=>{let t=bn.indexOf(e);t>-1&&bn.splice(t,1)}}},response:{use(e){return wn.push(e),()=>{let t=wn.indexOf(e);t>-1&&wn.splice(t,1)}}},error:{use(e){return Ht.push(e),()=>{let t=Ht.indexOf(e);t>-1&&Ht.splice(t,1)}}}},setHeader(e,t){t===null?delete Q.headers[e]:Q.headers[e]=t},setToken(e,t="Bearer"){this.setHeader("Authorization",e?`${t} ${e}`:null)},setBaseURL(e){Q.baseURL=e},clearCache:tc,flushOfflineQueue:Ts,parseDuration:_};ht();var cc=`
61
+ Suggestion: attribute expressions accept a single value. If the logic spans more than one line, move it to a component method and call the method here.`)}function fs(e,t,n){Ne()&&rt(`duplicate key "${String(t)}" in v-for="${n}" on element ${Fe(e)}. Two rows with the same key cause the list to reuse the wrong block when reordering. Use a unique key, like the item id.`)}function ds(e,t,n){Ne()&&rt(`required prop "${n}" missing from component "${t}" at ${Fe(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function jr(e,t){en(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var st=new WeakMap,$n=new WeakMap,Be=new WeakSet,Fr=new WeakMap;function Vr(e){return Be.has(e)}function Wr(e){Be.add(e)}function Rt(e){return st.get(e)}function Ue(e){let t=e;for(;t;){let n=st.get(t);if(n)return n;t=t.parentNode}return Le}function vs(e,t){let n=Fr.get(e);n||Fr.set(e,n=[]),n.push(t)}var Br=new WeakSet,Hn=new WeakMap;function zr(e){Br.add(e);let t=e.parentNode;if(t){let n=Hn.get(t);n||Hn.set(t,n=new Set),n.add(e)}e.remove()}function be(e,t){let n=$n.get(e);n||$n.set(e,n=[]),n.push(t)}function K(e){if(e.nodeType===1){let r=[];for(let o=e.firstChild;o;o=o.nextSibling)(o.nodeType===1||o.nodeType===3)&&r.push(o);for(let o=r.length-1;o>=0;o--)K(r[o])}let t=Hn.get(e);if(t){Hn.delete(e);for(let r of t)K(r)}let n=$n.get(e);if(n){$n.delete(e);for(let r=n.length-1;r>=0;r--)try{n[r]()}catch(o){V(o,"cleanup")}}e.nodeType===1&&_a(e),st.delete(e),Fr.delete(e),Be.delete(e)}var On=new Map,ja=4e3;function St(e,t){let n=`${e}\0${t}`,r=On.get(n);if(r!==void 0)return r;let o=Fa(e,t);return On.size>=ja&&On.clear(),On.set(n,o),o}function Fa(e,t){let n=w.prefix,r;if(e.startsWith("@"))r=`on:${e.slice(1)}`;else if(e.startsWith(":")&&e.length>1)r=`bind:${e.slice(1)}`;else if(e.startsWith(".")&&e.length>1)r=`bind:${e.slice(1)}.prop`;else if(e.startsWith(n))r=e.slice(n.length);else if(e.startsWith("data-v-"))r=e.slice(7);else return null;if(!r)return null;let o=r.split("."),s=o.shift(),i={};for(let l of o){let f=l.indexOf("=");f>-1?i[l.slice(0,f)]=l.slice(f+1):i[l]=!0}let a=s.indexOf(":"),c=a>-1?s.slice(0,a):s,u=a>-1?s.slice(a+1):void 0;return{raw:e,name:c,arg:u,modifiers:i,expression:t}}function Ba(e){let t=[],n=At.get(e);if(n&&n.size)for(let[r,o]of n){let s=St(r,o);s&&(t.push(s),ms(e,s.name))}else{let r=bs(e);for(let o=0;o<r.length;o++){let s=r[o];if(!qa(s))continue;let i=St(s,e.getAttribute(s));i&&(t.push(i),ms(e,i.name))}}return t.length<2?t:t.sort((r,o)=>ps(o)-ps(r))}var Ua=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function bs(e){return Ua?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function qa(e){return ws(e)||e.charCodeAt(0)===46&&e.length>1}function ps(e){var t,n;return(n=(t=je.get(e.name))==null?void 0:t.priority)!=null?n:0}var Ur=new Map,In=new WeakMap;function ms(e,t){let n=Ur.get(t);n||Ur.set(t,n=new Set),n.add(e);let r=In.get(e);r||In.set(e,r=new Set),r.add(t)}function _a(e){var n;let t=In.get(e);if(t){for(let r of t)(n=Ur.get(r))==null||n.delete(e);In.delete(e)}}var At=new WeakMap;function ws(e){return e.startsWith(w.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function Ts(e,t){var r;let n=(r=At.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function xs(e,t){let n=At.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function Va(e){if(!w.cleanAttributes)return;let t=bs(e),n=At.get(e);n||At.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];ws(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function Es(e){let t=At.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function ks(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(w.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function z(e,t,n,r){if(e)try{return x(xe(e),t)}catch(o){Ne()&&Dr(r!=null?r:t.el,n!=null?n:"expression",e,o),V(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var Ss=new WeakSet;function As(e){Ss.add(e)}function hs(e,t,n){let r=je.get(t.name);if(!r){Ne()&&t.raw.startsWith(w.prefix)&&us(e,t.raw,t.name);return}let o=null,s=()=>{if(!o){let a=o=new Te(!0);be(e,()=>a.stop()),vs(e,a)}return o},i={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return z(a!=null?a:t.expression,n,t.raw,e)},effect(a){let c=s(),u=()=>{let l=ot;ot=e;try{a()}finally{ot=l}};c.run(()=>pe(u,{scope:c}))},cleanup(a){be(e,a)},walk(a,c){Y(a,c)}};try{r.setup(i)}catch(a){V(a,`directive ${t.raw}`)}}var qr=null;function Rs(e){qr=e}var Wa=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function Y(e,t){let n=t!=null?t:Ue(e.parentNode);if(e.nodeType===11){let u=Array.from(e.childNodes);for(let l of u)Y(l,n);return}if(e.nodeType===3){Ms(e,n);return}if(e.nodeType!==1)return;let r=e;if(Be.has(r))return;let o=r.tagName;if(Wa.has(o))return;if(r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)){Be.add(r);return}let s=n,i=Ba(r),a=ae.size===0&&Mt.size===0||r.hasAttribute(`${w.prefix}component`)?null:ec(o);if(i.length===0&&!a){Cs(r,s);return}Be.add(r);let c=ot;ot=r;try{Qa(r,i,a,s)}finally{ot=c}}var ot=null;function Qr(){return ot}function za(e,t,n){let r=null;try{r=xe(e)}catch(a){r=null}if(!(r&&r.t==="obj"&&r.props.every(a=>!a.spread&&!a.keyExpr))){let a=z(e,t,"v-data");return t.reactiveChild(a&&typeof a=="object"?a:{},n)}let s=t.reactiveChild({},n),i=r.props;for(let a of i)if(a.key!==null)try{if(a.getter){let c=x(a.value,s);Object.defineProperty(s.data,a.key,{enumerable:!0,configurable:!0,get:()=>c.call(s.data)})}else s.data[a.key]=x(a.value,s)}catch(c){Ne()?Dr(n,e,e,c):V(c,"v-data")}return s}function Qa(e,t,n,r){let o=r;for(let l of t){let f=je.get(l.name);if(f!=null&&f.terminal){hs(e,l,o);return}}let s=t.find(l=>l.name==="data"),i=t.find(l=>l.name==="component"),a=i?i.expression||"":n||"",c=!1;if(a&&qr){let l=qr(e,a,o);l&&(o=l,c=!0,st.set(e,o))}else(s||i)&&(o=za(s&&s.expression||"{}",o,e),st.set(e,o));let u=c?r:o;for(let l of t)l.name==="data"||l.name==="component"||hs(e,l,u);Va(e),Ss.has(e)||Cs(e,o)}function Cs(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&Ms(o,t);for(let o of n)Y(o,(r=st.get(o))!=null?r:t)}var Ka=500,gs=new Map;function Ga(e){let t=e.trim();if(!t)return!1;let n=gs.get(t);if(n!==void 0)return n;let r=!0;try{r=xe(t).t!=="seq"}catch(o){r=!1}return gs.set(t,r),r}function Ya(e,t){let n=0,r=null;for(let o=t;o<e.length;o++){let s=e[o];if(r){s==="\\"?o++:s===r&&(r=null);continue}if(s==='"'||s==="'"||s==="`"){r=s;continue}if(s==="{")n++;else if(s==="}"&&(n--,n===0))return o}return-1}function Xa(e){let t=[],n="",r=0,o=()=>{n&&t.push({text:n}),n=""};for(;r<e.length;){let s=e.indexOf("{",r);if(s===-1){n+=e.slice(r);break}n+=e.slice(r,s);let i=e[s+1]==="{",a=i?e.indexOf("}}",s+2):Ya(e,s);if(a===-1){n+=e[s],r=s+1;continue}let c=i?e.slice(s+2,a):e.slice(s+1,a),u=i?a+2:a+1;if((i||c.length<=Ka)&&Ga(c)){o(),t.push({expression:c.trim(),raw:e.slice(s,u),explicit:i}),r=u;continue}n+=e[s],r=s+1}return o(),t}var Ja=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function Za(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=xe(e.expression)}catch(o){return!0}return r.t==="lit"?!0:t!==void 0?!1:r.t==="id"?n.lookup(r.n)===void 0&&!(r.n in de):!1}function Ms(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Be.has(e))return;let r=e.parentElement;for(;r;){if(Ja.has(r.tagName)||r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Xa(n);if(!o.some(i=>i.expression))return;Be.add(e);let s=new Te(!0);be(e,()=>s.stop()),vs(e,s),s.run(()=>pe(()=>{let i="";for(let a of o){if(a.text!==void 0){i+=a.text;continue}let c=z(a.expression,t,"interpolation");i+=Za(a,c,t)?a.raw:De(c)}e.textContent!==i&&(e.textContent=i)},{scope:s}))}function Ct(e,t){st.set(e,t)}function ec(e){let t=e.toLowerCase();if(ae.has(t))return t;let n=Mt.get(t);return n!=null?n:null}var Mt=new Map;var _r=!1,kt=null,tc=[];function ys(e,t){for(let n of tc)try{n(e,t)}catch(r){console.error("[Voodoo] a start hook failed",r)}}function Ps(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:w.root)!=null?n:document.body;t&&(Object.assign(de,w.globals),ys(t,!1),Y(t,Le),ys(t,!0),_r||(_r=!0,w.autoDiscover&&nc(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function nc(e){typeof MutationObserver!="undefined"&&(kt=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(Br.has(o)){Br.delete(o);continue}o.nodeType===1&&!o.isConnected&&K(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Be.has(o)||Y(o,Ue(o.parentNode)))}}}),kt.observe(e,{childList:!0,subtree:!0}))}function Ls(){kt==null||kt.disconnect(),kt=null,_r=!1}function Ns(e){Y(e!=null?e:document.body,e?Ue(e.parentNode):Le)}fe();Ee();var jn=new Set,Os=new Set;function Lt(e,t){let n=tt(e);ae.set(n,t),Mt.set(n.replace(/-/g,""),n),rc(n)}function rc(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${w.prefix}component="${e}"]`];for(let o of n){let s;try{s=Array.from(document.querySelectorAll(o))}catch(i){continue}for(let i of s){if((r=Rt(i))!=null&&r.component||oc(i))continue;let a=Ue(i.parentNode);Vr(i)&&(K(i),Es(i)),Y(i,a)}}}function oc(e){let t=e.parentElement;for(;t&&t!==document.body;){if(ks(t)&&!Vr(t))return!0;t=t.parentElement}return!1}function sc(e,t){var n,r;if(!t||!t.type||t.type==="any")return e;if(e==null||e==="")return(n=t.default)!=null?n:e;switch(t.type){case"number":{let o=Number(e);return Number.isNaN(o)?(r=t.default)!=null?r:e:o}case"boolean":return e===""||e==="true"||e===!0||e==="1";case"string":return String(e);case"array":return Array.isArray(e)?e:[e];default:return e}}function ic(e){let t={};if(Array.isArray(e.props))for(let n of e.props)t[n]={type:"any"};else e.props&&Object.assign(t,e.props);return t}function Kr(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function ac(e,t,n,r,o){var u;let s=G({}),i=Object.keys(t),a=new Map;for(let l of i)a.set(l.toLowerCase(),l),a.set(tt(l),l),a.set(Kr(l).toLowerCase(),l);for(let l of i)t[l].default!==void 0&&(s[l]=t[l].default);let c=Array.from(e.attributes);for(let l of c){let f=St(l.name,l.value);if(f&&f.name==="bind"&&f.arg){let d=(u=a.get(f.arg.toLowerCase()))!=null?u:Kr(f.arg);if(i.length&&!a.has(f.arg.toLowerCase()))continue;r.run(()=>pe(()=>{s[d]=z(f.expression,n,`:${f.arg}`)}));continue}if(f)continue;let p=a.get(l.name.toLowerCase());p?s[p]=sc(l.value,t[p]):i.length||(s[Kr(l.name)]=l.value)}for(let l of i)t[l].required&&s[l]===void 0&&ds(e,o,l);return s}function cc(e,t,n){let r=Array.from(e.querySelectorAll("slot"));if(!r.length)return;let o=new Map,s=[];Array.from(t.childNodes).forEach(i=>{var c,u;let a=i.nodeType===1&&(c=i.getAttribute("slot"))!=null?c:null;if(a){i.removeAttribute("slot");let l=(u=o.get(a))!=null?u:[];l.push(i),o.set(a,l)}else s.push(i)});for(let i of r){let a=i.getAttribute("name"),c=a?o.get(a):s,u=document.createDocumentFragment();if(c&&c.length)for(let l of c)u.appendChild(l);else for(;i.firstChild;)u.appendChild(i.firstChild);Array.from(u.childNodes).forEach(l=>{l.nodeType===1&&uc(l,n)}),i.replaceWith(u)}}var Dn=null;function $s(e){Dn=e}function uc(e,t){Dn==null||Dn(e,t)}function Hs(e,t,n){var b,Q,U,D,ne,O,oe,ht;let r=t?tt(t):"",o=r?(U=(Q=ae.get(r))!=null?Q:ae.get((b=Mt.get(r))!=null?b:""))!=null?U:{}:{};r&&!ae.has(r)&&!Mt.has(r)&&ls(e,t);let s=new Te(!0),i=ic(o),a=ac(e,i,n,s,r||"inline");!o.state&&o.data&&jr("data()","state()"),o.destroyed&&jr("destroyed()","unmounted()");let c=(D=o.state)!=null?D:o.data,u={},l={},f=o.inheritScope?n:n.root,p=new nt({},f,e);p.component=l;try{u=c?(ne=c.call(l,a))!=null?ne:{}:{}}catch(k){V(k,`state() of component "${t}"`)}let d=e.getAttribute(`${w.prefix}data`);if(d){let k=z(d,n,"v-data");k&&typeof k=="object"&&Object.assign(u,k)}if(o.provide)try{let k=typeof o.provide=="function"?o.provide.call(l):o.provide;k&&typeof k=="object"&&(p.provides={...k})}catch(k){V(k,`provide() of component "${t}"`)}if(o.inject){let k=Array.isArray(o.inject)?o.inject.map(E=>[E,{from:E}]):Object.entries(o.inject).map(([E,j])=>[E,j!=null?j:{}]);for(let[E,j]of k){let Ge=(O=j.from)!=null?O:E,lr=n.inject(Ge,j.default);E in u||(u[E]=lr)}}let m=G(u),g={};if(o.computed)for(let[k,E]of Object.entries(o.computed))g[k]=et(()=>E.call(l));let h={};if(o.methods)for(let[k,E]of Object.entries(o.methods))h[k]=(...j)=>E.apply(l,j);for(let[k,E]of Object.entries(o))typeof E=="function"&&(lc.has(k)||k==="state"||k==="data"||k in h||(h[k]=(...j)=>E.apply(l,j)));let v=(k,E)=>{let j=new CustomEvent(k,{detail:E,bubbles:!0,cancelable:!0});j.__voodoo=!0,e.dispatchEvent(j)},P={$el:e,$props:a,$name:r||"inline",$scope:p,$parent:(ht=(oe=n.owner)==null?void 0:oe.component)!=null?ht:null,emit:v,$emit:v,$nextTick:k=>Promise.resolve().then(()=>(fe(),zo)).then(E=>E.nextTick(k)),$watch:(k,E)=>Pe(()=>z(k,p),E)},L={get(k,E){if(typeof E!="symbol")return E==="$refs"?p.allRefs:E in P?P[E]:E in g?g[E].value:E in h?h[E]:E in a?a[E]:m[E]},set(k,E,j){return typeof E=="symbol"?!0:E in g?(g[E].value=j,!0):E in a?(a[E]=j,!0):(m[E]=j,!0)},has(k,E){if(typeof E=="symbol")return!1;let j=E;return j==="$refs"||j in P||j in g||j in h||j in a||j in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(h),...Object.keys(g)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},N=new Proxy(l,L);if(p.data=N,Object.setPrototypeOf(l,N),o.watch)for(let[k,E]of Object.entries(o.watch))s.run(()=>Pe(()=>N[k],(j,Ge)=>E.call(N,j,Ge)));if(o.style&&!Os.has(r)){Os.add(r);let k=document.createElement("style");k.setAttribute("data-voodoo-component",r),k.textContent=o.style,document.head.appendChild(k)}if(Pt(o,N,"beforeMount"),o.template){let k=document.createDocumentFragment();for(;e.firstChild;)k.appendChild(e.firstChild);e.innerHTML=o.template,cc(e,k,n)}return jn.add(N),We(()=>{Pt(o,N,"mounted"),o.updated&&s.run(()=>pe(()=>{for(let k of Object.keys(m))m[k];Pt(o,N,"updated")}))}),be(e,()=>{Pt(o,N,"beforeUnmount"),s.stop(),jn.delete(N),Pt(o,N,"unmounted"),Pt(o,N,"destroyed")}),p}var lc=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function Pt(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){V(o,`hook ${n}`)}}fe();Ee();var Nt=[],Gr=null,Fn=0,Is=-1,Xr=0,Yr=!1;function Ds(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function fc(){if(Gr||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(Gr=new MutationObserver(()=>{Fn++}),Gr.observe(e,{childList:!0,subtree:!0}))}function js(){if(Yr)return;Yr=!0;let e=()=>{Yr=!1,dc()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function dc(){var t;Fn===Is?Xr++:Xr=0,Is=Fn;let e=Ds();for(let n=Nt.length-1;n>=0;n--){let r=Nt[n],o=null;try{o=r.ready()}catch(s){o=null}if(o){Nt.splice(n,1),r.action(o);continue}e-r.since>1e4&&(Nt.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}Nt.length&&js()}function Jr(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}fc(),Nt.push({...e,since:Ds()}),js()}function Fs(){return typeof document=="undefined"||!document.body?!1:Xr>=2}function pc(){return typeof document=="undefined"||!document.body?!1:Fn===0}function tn(e){typeof document!="undefined"&&Jr({ready:()=>Fs()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function Bs(e){if(typeof document!="undefined"){if(pc()){Promise.resolve().then(e);return}Jr({ready:()=>Fs()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function Bn(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&Jr({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var mc=0,Un=null;function Us(e){Un=e}function qs(e={}){let t=`voodoo-app-${++mc}`,{components:n,...r}=e,o={globalProperties:{}},s={},i=[],a=null,c="",u=null,l=[];function f(){if(n)for(let[m,g]of Object.entries(n)){let h=tt(m);ae.has(h)||(Lt(h,g),i.push(h))}}function p(m){var h,v;if(u)return u;a=m,c=m.innerHTML,Object.assign(de,o.globalProperties),f();let g={...r};if(Object.keys(s).length){let P=g.provide;g.provide=()=>({...typeof P=="function"?P():P!=null?P:{},...s})}Lt(t,g),m.setAttribute(`${w.prefix}component`,t);try{Y(m,Le)}catch(P){return V(P,`application mounting "${t}"`),null}if(u=(v=(h=Rt(m))==null?void 0:h.component)!=null?v:null,u){let P=l;l=[];for(let L of P)L(u)}return u}let d={name:t,config:o,get instance(){return u},get container(){return a},get isMounted(){return u!==null},component(m,g){var v;let h=tt(m);return g===void 0?(v=n&&n[m])!=null?v:ae.get(h):(n?n[m]=g:e.components={[m]:g},u&&!ae.has(h)&&(Lt(h,g),i.push(h)),d)},directive(m,g){return Un==null||Un(m,g),d},use(m,g){return Nn(hc(),m,g),d},provide(m,g){return s[m]=g,d},mount(m){if(u)return u;if(typeof m!="string")return p(m);let g=null;return Bn(m,h=>{g=p(h)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),g},whenMounted(){return u?Promise.resolve(u):new Promise(m=>l.push(m))},unmount(){if(a){K(a),a.removeAttribute(`${w.prefix}component`),a.innerHTML=c,ae.delete(t);for(let m of i)ae.delete(m);i.length=0,u=null,a=null}}};return d}var _s=null;function Vs(e){_s=e}function hc(){return _s}fe();fe();var ze=new Map,Zr=Me(0),eo=new Map;function qn(e,t,n={}){let r=ze.get(e);if(!t){if(!r){let c=G({});return ze.set(e,c),c}return r}if(r)return Object.assign(r,t),r;let o=typeof n.persist=="string"?n.persist:`voodoo:store:${e}`,s=Object.getOwnPropertyDescriptors(t),i=Object.defineProperties({},s);if(n.persist&&typeof localStorage!="undefined")try{let c=localStorage.getItem(o);if(c){let u=JSON.parse(c);for(let[l,f]of Object.entries(u))s[l]&&!("value"in s[l])||(i[l]=f)}}catch(c){}let a=G(i);for(let[c,u]of Object.entries(s)){let l=u.value;typeof l=="function"&&(a[c]=(...f)=>l.apply(a,f))}if(ze.set(e,a),Zr.value++,n.persist&&typeof localStorage!="undefined"){let c=Pe(a,()=>{try{localStorage.setItem(o,JSON.stringify(gc(a)))}catch(u){}},{deep:!0});eo.set(e,c)}return a}function gc(e){let t={},n=Object.getOwnPropertyDescriptors(J(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var it=new Proxy({},{get:(e,t)=>(Zr.value,ze.get(t)),has:(e,t)=>(Zr.value,ze.has(t)),ownKeys:()=>[...ze.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function Ws(e){var t;(t=eo.get(e))==null||t(),eo.delete(e),ze.delete(e)}function zs(){return[...ze.keys()]}var ro={};Tn(ro,{capitalize:()=>Ks,chunk:()=>Ec,clone:()=>nn,debounce:()=>at,device:()=>ct,escapeHtml:()=>rn,formatCurrency:()=>$c,formatDate:()=>Ic,formatFileSize:()=>jc,formatNumber:()=>Hc,formatPercent:()=>Fc,get:()=>Sc,groupBy:()=>Tc,isBrowser:()=>_n,matchesMedia:()=>Ot,memoize:()=>wc,merge:()=>Qs,once:()=>bc,parseDuration:()=>te,random:()=>Rc,relativeTime:()=>Dc,sample:()=>Cc,set:()=>Ac,setFormatDefaults:()=>Oc,sleep:()=>vc,slugify:()=>Mc,sortBy:()=>kc,stripTags:()=>Nc,throttle:()=>no,titleCase:()=>Lc,truncate:()=>Pc,uid:()=>to,unique:()=>xc,uuid:()=>yc});function yc(){let e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();if(e!=null&&e.getRandomValues){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}function to(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function vc(e){return new Promise(t=>setTimeout(t,e))}function te(e,t=0){if(e==null||e==="")return t;if(typeof e=="number")return e;let n=/^\s*([\d.]+)\s*(ms|s|m|h)?\s*$/i.exec(String(e));if(!n)return t;let r=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"s":return r*1e3;case"m":return r*6e4;case"h":return r*36e5;default:return r}}function at(e,t=250,n=!1){let r=null,o=null,s,i=function(...a){o=a,s=this;let c=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(s,o)},t),c&&e.apply(this,a)};return i.cancel=()=>{r&&clearTimeout(r),r=null,o=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(s,o))},i}function no(e,t=250){let n=0,r=null,o=null,s=function(...i){let a=Date.now();o=i;let c=t-(a-n);c<=0?(r&&(clearTimeout(r),r=null),n=a,e.apply(this,i)):r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&e.apply(this,o)},c))};return s.cancel=()=>{r&&clearTimeout(r),r=null},s.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},s}function bc(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function wc(e,t=(...n)=>JSON.stringify(n)){let n=new Map,r=function(...o){let s=t(...o);if(n.has(s))return n.get(s);let i=e.apply(this,o);return n.set(s,i),i};return r.cache=n,r}function nn(e){if(e===null||typeof e!="object")return e;if(typeof structuredClone=="function")try{return structuredClone(e)}catch(n){}if(Array.isArray(e))return e.map(n=>nn(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,nn(r)]));if(e instanceof Set)return new Set([...e].map(n=>nn(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=nn(r);return t}function Qs(e,...t){for(let n of t)if(n)for(let[r,o]of Object.entries(n)){let s=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&s&&typeof s=="object"&&!Array.isArray(s)?e[r]=Qs({...s},o):e[r]=o}return e}function Tc(e,t){let n={},r=typeof t=="function"?t:o=>o==null?void 0:o[t];for(let o of e){let s=String(r(o));(n[s]||(n[s]=[])).push(o)}return n}function xc(e,t){if(!t)return[...new Set(e)];let n=typeof t=="function"?t:s=>s==null?void 0:s[t],r=new Set,o=[];for(let s of e){let i=n(s);r.has(i)||(r.add(i),o.push(s))}return o}function Ec(e,t=10){if(t<1)return[e];let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function kc(e,t,n="asc"){let r=typeof t=="function"?t:s=>s==null?void 0:s[t],o=n==="desc"?-1:1;return[...e].sort((s,i)=>{let a=r(s),c=r(i);return a==null&&c==null?0:a==null?1:c==null?-1:typeof a=="string"&&typeof c=="string"?a.localeCompare(c,void 0,{numeric:!0})*o:(a>c?1:a<c?-1:0)*o})}function Sc(e,t,n){let r=t.split("."),o=e;for(let s of r){if(o==null)return n;o=o[s]}return o!=null?o:n}function Ac(e,t,n){let r=t.split("."),o=e;for(let s=0;s<r.length-1;s++){let i=r[s];(typeof o[i]!="object"||o[i]===null)&&(o[i]=/^\d+$/.test(r[s+1])?[]:{}),o=o[i]}o[r[r.length-1]]=n}function Rc(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function Cc(e){return e[Math.floor(Math.random()*e.length)]}function Mc(e,t="-"){return String(e).normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().trim().replace(/[^a-z0-9]+/g,t).replace(new RegExp(`\\${t}{2,}`,"g"),t).replace(new RegExp(`^\\${t}|\\${t}$`,"g"),"")}function Pc(e,t=100,n="..."){let r=String(e!=null?e:"");return r.length<=t?r:r.slice(0,Math.max(0,t-n.length)).trimEnd()+n}function Ks(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function Lc(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>Ks(t.toLowerCase()))}function rn(e){return String(e!=null?e:"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Nc(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var $t="pt-BR",Gs="BRL";function Oc(e,t){e&&($t=e),t&&(Gs=t)}function $c(e,t={}){var r,o;let n=typeof e=="string"?parseFloat(e):e;return n==null||Number.isNaN(n)?"":new Intl.NumberFormat((r=t.locale)!=null?r:$t,{style:"currency",currency:(o=t.currency)!=null?o:Gs}).format(n)}function Hc(e,t={}){let n=typeof e=="string"?parseFloat(e):e;if(n==null||Number.isNaN(n))return"";let{locale:r,...o}=t;return new Intl.NumberFormat(r!=null?r:$t,o).format(n)}function Ic(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:$t;if(typeof t=="object")return new Intl.DateTimeFormat(o,t).format(r);let s={short:{day:"2-digit",month:"2-digit",year:"numeric"},long:{day:"2-digit",month:"long",year:"numeric"},full:{dateStyle:"full"},time:{hour:"2-digit",minute:"2-digit"},datetime:{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}};if(s[t])return new Intl.DateTimeFormat(o,s[t]).format(r);let i=a=>String(a).padStart(2,"0");return t.replace(/YYYY/g,String(r.getFullYear())).replace(/YY/g,String(r.getFullYear()).slice(-2)).replace(/MM/g,i(r.getMonth()+1)).replace(/DD/g,i(r.getDate())).replace(/HH/g,i(r.getHours())).replace(/mm/g,i(r.getMinutes())).replace(/ss/g,i(r.getSeconds()))}function Dc(e,t){let n=e instanceof Date?e:new Date(e);if(Number.isNaN(n.getTime()))return"";let r=n.getTime()-Date.now(),o=Math.abs(r),s=[["year",31536e6],["month",2592e6],["week",6048e5],["day",864e5],["hour",36e5],["minute",6e4],["second",1e3]],i=new Intl.RelativeTimeFormat(t!=null?t:$t,{numeric:"auto"});for(let[a,c]of s)if(o>=c||a==="second")return i.format(Math.round(r/c),a);return""}function jc(e,t=1){let n=Number(e);if(!n||Number.isNaN(n))return"0 B";let r=["B","KB","MB","GB","TB","PB"],o=Math.min(Math.floor(Math.log(Math.abs(n))/Math.log(1024)),r.length-1);return`${(n/1024**o).toFixed(o===0?0:t)} ${r[o]}`}function Fc(e,t=0,n){return new Intl.NumberFormat(n!=null?n:$t,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var _n=typeof window!="undefined"&&typeof window.document!="undefined";function Ot(e){if(!_n||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var ct={get touch(){return _n&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return Ot("(max-width: 767px)")},get tablet(){return Ot("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return Ot("(min-width: 1024px)")},get online(){return!_n||navigator.onLine},get reducedMotion(){return Ot("(prefers-reduced-motion: reduce)")},get darkMode(){return Ot("(prefers-color-scheme: dark)")}};var me=class extends Error{constructor(n,r,o,s){super(n);F(this,"response",r);F(this,"config",o);F(this,"cause",s);this.name="HttpError"}get status(){var n,r;return(r=(n=this.response)==null?void 0:n.status)!=null?r:0}get isNetworkError(){return!this.response}},ce={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},Vn=[],Wn=[],on=[],sn=new Map;function Ys(e){var t;return`${(t=e.method)!=null?t:"GET"} ${It(e)}`}function Bc(e){if(!e){sn.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...sn.keys()])t(n)&&sn.delete(n)}var Js="voodoo:offline-queue";function oo(){try{return JSON.parse(localStorage.getItem(Js)||"[]")}catch(e){return[]}}function so(e){try{localStorage.setItem(Js,JSON.stringify(e))}catch(t){}}function Uc(e){var n,r;if(typeof localStorage=="undefined")return;let t=oo();t.push({url:It(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),so(t)}async function Zs(){if(typeof localStorage=="undefined")return 0;let e=oo();if(!e.length)return 0;so([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await an({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let s=oo();so([...e.slice(n),...s]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Zs()});function It(e){let t=e.url,n=ce.baseURL;if(n&&!/^https?:\/\//i.test(t)&&!t.startsWith("//")&&(t=`${n.replace(/\/$/,"")}/${t.replace(/^\//,"")}`),e.params){let r=new URLSearchParams;for(let[s,i]of Object.entries(e.params))i==null||i===""||r.append(s,String(i));let o=r.toString();o&&(t+=(t.includes("?")?"&":"?")+o)}return t}function ei(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${ce.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function qc(e,t){if(e!=null)return typeof FormData!="undefined"&&e instanceof FormData||typeof Blob!="undefined"&&e instanceof Blob||typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams||typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer||typeof e=="string"?e:(t["Content-Type"]||(t["Content-Type"]="application/json"),JSON.stringify(e))}async function _c(e,t){if(e.status===204||e.status===205)return null;let n=e.headers.get("content-type")||"";switch(t){case"json":return e.json();case"text":return e.text();case"blob":return e.blob();case"arrayBuffer":return e.arrayBuffer();case"formData":return e.formData();default:if(n.includes("application/json")||n.includes("+json")){let r=await e.text();return r?JSON.parse(r):null}return e.text()}}var Vc=new Set(["GET","HEAD","OPTIONS"]);function Wc(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function zc(e,t,n,r){var o;return Vc.has(e)||t.retryUnsafe===!0||Wc(n)?!0:(((o=t.retry)!=null?o:0)>0&&en(`http:retry-unsafe:${e} ${r}`,`retry ignored on ${e} ${r}: retrying a method that changes state may apply the same operation twice if the response is lost in transit. Allow with retryUnsafe: true or send an Idempotency-Key header.`),!1)}async function an(e){var l,f,p,d,m;let t={method:"GET",timeout:ce.timeout,retry:ce.retry,retryDelay:ce.retryDelay,credentials:ce.credentials,responseType:"auto",...e,headers:{...ce.headers,...e.headers}};for(let g of Vn)t=await g(t);let n=((l=t.method)!=null?l:"GET").toUpperCase();if(t.cache&&n==="GET"){let g=sn.get(Ys(t));if(g&&g.expires>Date.now())return g.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return Uc(t),{data:null,status:0,statusText:"offline-queued",headers:new Headers,ok:!0,raw:new Response(null,{status:202}),config:t};let r={...t.headers};if(n!=="GET"&&n!=="HEAD"){let g=ei();g&&!r[ce.csrfHeader]&&(r[ce.csrfHeader]=g)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=qc(t.body,r),s=It(t),i=zc(n,t,r,s)?((f=t.retry)!=null?f:0)+1:1,a;for(let g=0;g<i;g++){let h=new AbortController,v=t.signal,P=null;v&&(v.aborted?h.abort(v.reason):(P=()=>h.abort(v.reason),v.addEventListener("abort",P,{once:!0})));let L=()=>{P&&v&&v.removeEventListener("abort",P),P=null},N=t.timeout&&t.timeout>0?setTimeout(()=>h.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let b=await fetch(s,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:h.signal});N&&clearTimeout(N),L();let U={data:await _c(b,t.responseType),status:b.status,statusText:b.statusText,headers:b.headers,ok:b.ok,raw:b,config:t};if(!b.ok){if(b.status>=500&&g<i-1){await Xs(((p=t.retryDelay)!=null?p:500)*2**g);continue}let D=new me(`Request failed with status ${b.status}`,U,t);for(let ne of on)ne(D);throw D}for(let D of Wn)U=await D(U);return t.cache&&n==="GET"&&sn.set(Ys(t),{expires:Date.now()+t.cache,value:U}),U}catch(b){if(N&&clearTimeout(N),L(),b instanceof me)throw b;if(a=b,(b==null?void 0:b.name)==="AbortError"&&((d=t.signal)==null?void 0:d.aborted))break;if(g<i-1){await Xs(((m=t.retryDelay)!=null?m:500)*2**g);continue}}}let c=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${s}`,u=new me(c,void 0,t,a);for(let g of on)g(u);throw u}function Xs(e){return new Promise(t=>setTimeout(t,e))}async function Ht(e){return(await an(e)).data}var ke={defaults:ce,get(e,t={}){return Ht({...t,url:e,method:"GET"})},post(e,t,n={}){return Ht({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return Ht({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return Ht({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return Ht({...t,url:e,method:"DELETE"})},head(e,t={}){return Ht({...t,url:e,method:"HEAD"})},request:an,upload(e,t,n={}){return new Promise((r,o)=>{var c,u;let s=new XMLHttpRequest,i=It({url:e});s.open((c=n.method)!=null?c:"POST",i);for(let[l,f]of Object.entries({...ce.headers,...n.headers}))l.toLowerCase()!=="content-type"&&s.setRequestHeader(l,f);let a=ei();a&&s.setRequestHeader(ce.csrfHeader,a),s.upload.addEventListener("progress",l=>{var f;l.lengthComputable&&((f=n.onProgress)==null||f.call(n,Math.round(l.loaded/l.total*100),l.loaded,l.total))}),s.addEventListener("load",()=>{let l=s.getResponseHeader("content-type")||"",f=s.responseText;if(l.includes("json"))try{f=JSON.parse(s.responseText)}catch(p){}s.status>=200&&s.status<300?r(f):o(new me(`Upload failed with status ${s.status}`))}),s.addEventListener("error",()=>o(new me("Network failure during upload"))),s.addEventListener("abort",()=>o(new me("Upload canceled"))),(u=n.signal)==null||u.addEventListener("abort",()=>s.abort()),s.send(t)})},sse(e,t={}){let n=new EventSource(It({url:e}));return n.addEventListener("message",r=>{var s;let o=r.data;try{o=JSON.parse(r.data)}catch(i){}(s=t.message)==null||s.call(t,o,r)}),t.error&&n.addEventListener("error",t.error),n},async stream(e,t,n={}){var a;let r=await fetch(It({url:e,params:n.params}),{headers:{...ce.headers,...n.headers},signal:n.signal});if(!r.body)return;let o=r.body.getReader(),s=new TextDecoder,i="";for(;;){let{done:c,value:u}=await o.read();if(c)break;i+=s.decode(u,{stream:!0});let l=i.split(`
62
+ `);i=(a=l.pop())!=null?a:"";for(let f of l)f.trim()&&t(f)}i.trim()&&t(i)},interceptors:{request:{use(e){return Vn.push(e),()=>{let t=Vn.indexOf(e);t>-1&&Vn.splice(t,1)}}},response:{use(e){return Wn.push(e),()=>{let t=Wn.indexOf(e);t>-1&&Wn.splice(t,1)}}},error:{use(e){return on.push(e),()=>{let t=on.indexOf(e);t>-1&&on.splice(t,1)}}}},setHeader(e,t){t===null?delete ce.headers[e]:ce.headers[e]=t},setToken(e,t="Bearer"){this.setHeader("Authorization",e?`${t} ${e}`:null)},setBaseURL(e){ce.baseURL=e},clearCache:Bc,flushOfflineQueue:Zs,parseDuration:te};Dt();var Qc=`
63
63
  .v-toaster{position:fixed;z-index:var(--v-z-toast,1100);display:flex;flex-direction:column;gap:10px;padding:16px;pointer-events:none;max-width:min(420px,calc(100vw - 32px))}
64
64
  .v-toaster[data-pos^="top"]{top:0}
65
65
  .v-toaster[data-pos^="bottom"]{bottom:0;flex-direction:column-reverse}
@@ -104,7 +104,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
104
104
  border-top-color:var(--v-primary,#6D3BF5);animation:v-spin .7s linear infinite}
105
105
  @keyframes v-spin{to{transform:rotate(360deg)}}
106
106
  @media (prefers-reduced-motion: reduce){.v-toast{transition:none}}
107
- `,uc={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},jt=new Map,Pe={duration:4e3,position:"top-right",max:6};function lc(e){We(),ke("toast",cc);let t=jt.get(e);return t&&t.isConnected||(t=document.createElement("div"),t.className="v-toaster",t.setAttribute("data-pos",e),t.setAttribute("role","region"),t.setAttribute("aria-label","Notifications"),document.body.appendChild(t),jt.set(e,t)),t}function ze(e){var p,d,m,g;let t=(p=e.position)!=null?p:Pe.position,n=(d=e.type)!=null?d:"default",r=(m=e.duration)!=null?m:n==="loading"?0:Pe.duration,o=lc(t),s=Cr("toast-"),i=document.createElement("div");i.className="v-toast",i.id=s,i.setAttribute("data-type",n),i.setAttribute("role",n==="error"?"alert":"status"),i.setAttribute("aria-live",n==="error"?"assertive":"polite"),i.setAttribute("aria-atomic","true");let a=!1,c=null,u=()=>{a||(a=!0,c&&clearTimeout(c),i.classList.add("v-out"),i.classList.remove("v-in"),setTimeout(()=>{var h;i.remove(),(h=e.onClose)==null||h.call(e),o.children.length||(o.remove(),jt.delete(t))},220))},l=h=>{var V,k,v,I;let y=(V=h.type)!=null?V:n;if(i.setAttribute("data-type",y),h.html)i.innerHTML=h.html;else{i.textContent="";let D=document.createElement("span");D.className="v-toast-icon",D.setAttribute("aria-hidden","true"),D.textContent=(k=uc[y])!=null?k:"",i.appendChild(D);let C=document.createElement("div");C.className="v-toast-body";let W=document.createElement("div");if(W.className="v-toast-title",W.textContent=(v=h.title)!=null?v:"",C.appendChild(W),h.description){let P=document.createElement("div");P.className="v-toast-desc",P.textContent=h.description,C.appendChild(P)}if(i.appendChild(C),h.action){let P=document.createElement("button");P.type="button",P.className="v-toast-action",P.textContent=h.action.label,P.addEventListener("click",()=>{var te;(te=h.action)==null||te.onClick(),u()}),i.appendChild(P)}if(h.closable!==!1&&y!=="loading"){let P=document.createElement("button");P.type="button",P.className="v-toast-close",P.setAttribute("aria-label","Close notification"),P.innerHTML="&times;",P.addEventListener("click",u),i.appendChild(P)}}let S=(I=h.duration)!=null?I:r;if(S>0){let D=document.createElement("div");D.className="v-toast-bar",D.style.animation=`v-toast-bar ${S}ms linear forwards`,i.appendChild(D)}};for(l(e),o.appendChild(i),requestAnimationFrame(()=>i.classList.add("v-in"));o.children.length>Pe.max;)(g=o.firstElementChild)==null||g.remove();let f=h=>{c&&clearTimeout(c),h>0&&(c=setTimeout(u,h))};return f(r),i.addEventListener("mouseenter",()=>{c&&clearTimeout(c)}),i.addEventListener("mouseleave",()=>f(r)),{id:s,close:u,update(h){var y;l({...e,...h}),h.duration!==void 0?f(h.duration):((y=h.type)!=null?y:n)!=="loading"&&f(Pe.duration)}}}function gt(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var Me=Object.assign((e,t={})=>ze({...gt(e,"default"),...t}),{success:(e,t={})=>ze({...gt(e,"success"),...t}),error:(e,t={})=>ze({...gt(e,"error"),...t}),warning:(e,t={})=>ze({...gt(e,"warning"),...t}),info:(e,t={})=>ze({...gt(e,"info"),...t}),loading:(e,t={})=>ze({...gt(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,s;let n=ze({title:(r=t.loading)!=null?r:"Loading...",type:"loading",duration:0});try{let i=await e;return n.update({title:typeof t.success=="function"?t.success(i):(o=t.success)!=null?o:"Done",type:"success",duration:Pe.duration}),i}catch(i){throw n.update({title:typeof t.error=="function"?t.error(i):(s=t.error)!=null?s:"Something went wrong",type:"error",duration:Pe.duration}),i}},clear(){for(let[e,t]of jt)t.remove(),jt.delete(e)},configure(e){Object.assign(Pe,e)},settings:Pe});G();function As(e,t=""){let n=r=>t+r;return{get(r,o){var s;try{let i=(s=e())==null?void 0:s.getItem(n(r));if(i==null)return o;try{return JSON.parse(i)}catch(a){return i}}catch(i){return o}},set(r,o){var s;try{return(s=e())==null||s.setItem(n(r),typeof o=="string"?o:JSON.stringify(o)),!0}catch(i){return!1}},remove(r){var o;try{(o=e())==null||o.removeItem(n(r))}catch(s){}},clear(){try{let r=e();if(!r)return;if(!t){r.clear();return}for(let o of Object.keys(r))o.startsWith(t)&&r.removeItem(o)}catch(r){}},has(r){var o;try{return((o=e())==null?void 0:o.getItem(n(r)))!==null}catch(s){return!1}},keys(){try{let r=e();return r?Object.keys(r).filter(o=>o.startsWith(t)).map(o=>o.slice(t.length)):[]}catch(r){return[]}}}}var ae=As(()=>typeof localStorage!="undefined"?localStorage:void 0),xn=As(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),En={get(e){if(typeof document=="undefined")return;let t=`${encodeURIComponent(e)}=`;for(let n of document.cookie.split("; "))if(n.startsWith(t))return decodeURIComponent(n.slice(t.length))},set(e,t,n={}){var o,s;if(typeof document=="undefined")return;let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(n.expires!==void 0){let i=typeof n.expires=="number"?new Date(Date.now()+n.expires*864e5):n.expires;r+=`; expires=${i.toUTCString()}`}r+=`; path=${(o=n.path)!=null?o:"/"}`,n.domain&&(r+=`; domain=${n.domain}`),n.secure&&(r+="; secure"),r+=`; samesite=${(s=n.sameSite)!=null?s:"Lax"}`,document.cookie=r},remove(e,t={}){this.set(e,"",{...t,expires:-1})},has(e){return this.get(e)!==void 0}},kn={get(e,t){var n;return typeof location=="undefined"?t:(n=new URLSearchParams(location.search).get(e))!=null?n:t},all(){return typeof location=="undefined"?{}:Object.fromEntries(new URLSearchParams(location.search))},set(e,t,n=!0){if(typeof location=="undefined")return;let r=new URL(location.href);t===null||t===""?r.searchParams.delete(e):r.searchParams.set(e,String(t)),history[n?"replaceState":"pushState"]({},"",r.toString())},remove(e,t=!0){this.set(e,null,t)},merge(e,t=!0){if(typeof location=="undefined")return;let n=new URL(location.href);for(let[r,o]of Object.entries(e))o===null||o===""?n.searchParams.delete(r):n.searchParams.set(r,String(o));history[t?"replaceState":"pushState"]({},"",n.toString())}},yt=new Map,Sn={set(e,t,n=0){return yt.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=yt.get(e);return n?n.expires<Date.now()?(yt.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){yt.delete(e)},clear(){yt.clear()},async remember(e,t,n){let r=this.get(e);if(r!==void 0)return r;let o=await n();return this.set(e,o,t),o},get size(){return yt.size}},Or="voodoo:theme",$r=null,Tn=de(0),vt={get current(){var e,t;return Tn.value,(t=(e=ae.get(Or))!=null?e:$r)!=null?t:"system"},get resolved(){let e=this.current;if(e!=="system")return e;if(typeof document!="undefined"){let t=document.documentElement.getAttribute("data-theme");if(t==="light"||t==="dark")return t}return typeof matchMedia=="undefined"?"light":matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},set(e){$r=e,ae.set(Or,e),Tn.value++,this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return $r!==null||ae.get(Or)!=null},apply(){if(typeof document=="undefined"||!this.chosen)return;let e=this.current,t=document.documentElement;e==="system"?t.removeAttribute("data-theme"):t.setAttribute("data-theme",e),t.style.colorScheme=this.resolved,document.dispatchEvent(new CustomEvent("voodoo:theme",{detail:{theme:e,resolved:this.resolved}}))},init(){typeof document!="undefined"&&(this.apply(),typeof MutationObserver!="undefined"&&new MutationObserver(()=>{Tn.value++}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),typeof matchMedia!="undefined"&&matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Tn.value++,this.current==="system"&&this.apply()}))}};var ce=F({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function Hr(){typeof window!="undefined"&&(ce.width=window.innerWidth,ce.height=window.innerHeight,ce.mobile=window.innerWidth<768,ce.tablet=window.innerWidth>=768&&window.innerWidth<1024,ce.desktop=window.innerWidth>=1024,ce.portrait=window.innerHeight>=window.innerWidth,ce.landscape=!ce.portrait)}var Qe=F({online:!0,type:"unknown",saveData:!1,slow:!1});function An(){var t;if(typeof navigator=="undefined")return;Qe.online=navigator.onLine;let e=navigator.connection;e&&(Qe.type=(t=e.effectiveType)!=null?t:"unknown",Qe.saveData=!!e.saveData,Qe.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var Dr={async copy(e){var t;try{if((t=navigator.clipboard)!=null&&t.writeText)return await navigator.clipboard.writeText(e),!0}catch(n){}try{let n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.cssText="position:fixed;top:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}},async read(){try{return await navigator.clipboard.readText()}catch(e){return""}}},Rs=!1;function Cs(){var t,n;if(Rs||(Rs=!0,O("$el",r=>r.el),O("$refs",r=>r.allRefs),O("$data",r=>r.data),O("$root",r=>r.root.data),O("$parent",r=>{var o,s;return(s=(o=r.parent)==null?void 0:o.data)!=null?s:null}),O("$self",r=>{var o,s;return(s=(o=r.owner)==null?void 0:o.component)!=null?s:r.data}),O("$store",()=>qe),O("$http",()=>ie),O("$toast",()=>Me),O("$clipboard",()=>Dr),O("$storage",()=>ae),O("$session",()=>xn),O("$cookie",()=>En),O("$cache",()=>Sn),O("$url",()=>kn),O("$theme",()=>vt),O("$device",()=>Ve),O("$screen",()=>ce),O("$network",()=>Qe),O("$nextTick",()=>He),O("$watch",r=>(o,s)=>fe(()=>H(o,r,"$watch"),s)),O("$dispatch",r=>(o,s)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:s,bubbles:!0}))}),O("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;Hr(),An();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(Hr)}),window.addEventListener("orientationchange",Hr),window.addEventListener("online",An),window.addEventListener("offline",An),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",An)}G();var Ps=new WeakMap;function dc(e){var o,s,i;let t=(s=(o=wr())!=null?o:e.el)!=null?s:e,n=Ps.get(t);n||(n={slots:[],index:0,scheduled:!1,bound:!1},Ps.set(t,n));let r=(i=wr())!=null?i:e.el;if(!n.bound&&r){n.bound=!0;let a=n;ne(r,()=>{for(let c of a.slots)c.dispose&&c.dispose(),c.runner&&et(c.runner);a.slots.length=0})}if(!n.scheduled){n.scheduled=!0;let a=n;queueMicrotask(()=>{a.index=0,a.scheduled=!1})}return n}function Rn(e,t){let n=dc(e),r=n.index++,o=n.slots[r];return(!o||o.kind!==t)&&(o&&(o.dispose&&o.dispose(),o.runner&&et(o.runner)),o={kind:t,deps:null,value:void 0},n.slots[r]=o),o}function Ms(e,t){if(!e||!t||e.length!==t.length)return!0;for(let n=0;n<t.length;n++)if(!Object.is(e[n],t[n]))return!0;return!1}function Ls(e){return Array.isArray(e)?e.slice():null}function fc(e,t){let n=Rn(e,"state");return n.value===void 0&&(n.value=de(t)),n.value}function pc(e,t,n){let r=Rn(e,"effect"),o=Ls(n),s=()=>{if(r.dispose){let i=r.dispose;r.dispose=void 0,i()}};if(o){if(r.deps===null&&!r.runner||Ms(r.deps,o)){r.deps=o,s();let a=t();typeof a=="function"&&(r.dispose=a)}return}r.runner||(r.deps=null,r.runner=J(()=>{s();let i=t();typeof i=="function"&&(r.dispose=i)}))}function mc(e,t,n){let r=Rn(e,"memo"),o=Ls(n);return o?(r.value?Ms(r.deps,o)&&(r.deps=o,r.value.value=t()):(r.value=de(t()),r.deps=o),r.value):(r.value||(r.value=De(t)),r.value)}function hc(e,t){let n=Rn(e,"ref");return n.value||(n.value=At({current:t})),n.value}function gc(e,t){return t!==void 0&&!(e in qe)&&yn(e,t),qe[e]}function Ns(){nt("useState",e=>t=>fc(e,t)),nt("useEffect",e=>(t,n)=>pc(e,t,n)),nt("useMemo",e=>(t,n)=>mc(e,t,n)),nt("useRef",e=>t=>hc(e,t)),nt("useContext",()=>(e,t)=>gc(e,t))}G();function Ir(e,t){if(!t)return e;let n=e;for(let r of t.split(".")){if(n==null)return;n=n[r]}return n}function jr(e){var n;let t=(n=e.response)==null?void 0:n.data;if(!t||typeof t!="object")return null;for(let r of["message","error","detail","msg"]){let o=t[r];if(typeof o=="string")return o}return null}function Cn(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,s=null,i=F({data:null,loading:!1,error:null,loaded:!1,async reload(){var u,l,f,p,d;let a=n();if(!a)return;o==null||o.abort();let c=o=new AbortController;i.loading=!0,i.error=null;try{let m=await ie.request({url:a,method:(t.method||"GET").toUpperCase(),params:r(),headers:t.headers,cache:t.cache||void 0,retry:(u=t.retry)!=null?u:0,timeout:(l=t.timeout)!=null?l:ie.defaults.timeout,signal:c.signal});if(c.signal.aborted)return;i.data=Ir(m.data,t.jsonPath),i.loaded=!0,(f=t.onSuccess)==null||f.call(t,i.data)}catch(m){if(c.signal.aborted)return;let g=m instanceof Z&&(p=jr(m))!=null?p:m.message;i.error={name:"ResourceError",message:g},(d=t.onError)==null||d.call(t,m,g)}finally{c.signal.aborted||(i.loading=!1),o===c&&(o=null)}},set(a){i.data=a},stop(){o==null||o.abort(),o=null,i.loading=!1,s!==null&&(clearInterval(s),s=null)}});return t.poll&&t.poll>0&&(s=setInterval(()=>{(typeof document=="undefined"||document.visibilityState==="visible")&&i.reload()},t.poll)),t.manual||i.reload(),i}ht();ht();var Os=`
107
+ `,Kc={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},cn=new Map,Qe={duration:4e3,position:"top-right",max:6};function Gc(e){ut(),qe("toast",Qc);let t=cn.get(e);return t&&t.isConnected||(t=document.createElement("div"),t.className="v-toaster",t.setAttribute("data-pos",e),t.setAttribute("role","region"),t.setAttribute("aria-label","Notifications"),document.body.appendChild(t),cn.set(e,t)),t}function lt(e){var p,d,m,g;let t=(p=e.position)!=null?p:Qe.position,n=(d=e.type)!=null?d:"default",r=(m=e.duration)!=null?m:n==="loading"?0:Qe.duration,o=Gc(t),s=to("toast-"),i=document.createElement("div");i.className="v-toast",i.id=s,i.setAttribute("data-type",n),i.setAttribute("role",n==="error"?"alert":"status"),i.setAttribute("aria-live",n==="error"?"assertive":"polite"),i.setAttribute("aria-atomic","true");let a=!1,c=null,u=()=>{a||(a=!0,c&&clearTimeout(c),i.classList.add("v-out"),i.classList.remove("v-in"),setTimeout(()=>{var h;i.remove(),(h=e.onClose)==null||h.call(e),o.children.length||(o.remove(),cn.delete(t))},220))},l=h=>{var L,N,b,Q;let v=(L=h.type)!=null?L:n;if(i.setAttribute("data-type",v),h.html)i.innerHTML=h.html;else{i.textContent="";let U=document.createElement("span");U.className="v-toast-icon",U.setAttribute("aria-hidden","true"),U.textContent=(N=Kc[v])!=null?N:"",i.appendChild(U);let D=document.createElement("div");D.className="v-toast-body";let ne=document.createElement("div");if(ne.className="v-toast-title",ne.textContent=(b=h.title)!=null?b:"",D.appendChild(ne),h.description){let O=document.createElement("div");O.className="v-toast-desc",O.textContent=h.description,D.appendChild(O)}if(i.appendChild(D),h.action){let O=document.createElement("button");O.type="button",O.className="v-toast-action",O.textContent=h.action.label,O.addEventListener("click",()=>{var oe;(oe=h.action)==null||oe.onClick(),u()}),i.appendChild(O)}if(h.closable!==!1&&v!=="loading"){let O=document.createElement("button");O.type="button",O.className="v-toast-close",O.setAttribute("aria-label","Close notification"),O.innerHTML="&times;",O.addEventListener("click",u),i.appendChild(O)}}let P=(Q=h.duration)!=null?Q:r;if(P>0){let U=document.createElement("div");U.className="v-toast-bar",U.style.animation=`v-toast-bar ${P}ms linear forwards`,i.appendChild(U)}};for(l(e),o.appendChild(i),requestAnimationFrame(()=>i.classList.add("v-in"));o.children.length>Qe.max;)(g=o.firstElementChild)==null||g.remove();let f=h=>{c&&clearTimeout(c),h>0&&(c=setTimeout(u,h))};return f(r),i.addEventListener("mouseenter",()=>{c&&clearTimeout(c)}),i.addEventListener("mouseleave",()=>f(r)),{id:s,close:u,update(h){var v;l({...e,...h}),h.duration!==void 0?f(h.duration):((v=h.type)!=null?v:n)!=="loading"&&f(Qe.duration)}}}function jt(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var Ke=Object.assign((e,t={})=>lt({...jt(e,"default"),...t}),{success:(e,t={})=>lt({...jt(e,"success"),...t}),error:(e,t={})=>lt({...jt(e,"error"),...t}),warning:(e,t={})=>lt({...jt(e,"warning"),...t}),info:(e,t={})=>lt({...jt(e,"info"),...t}),loading:(e,t={})=>lt({...jt(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,s;let n=lt({title:(r=t.loading)!=null?r:"Loading...",type:"loading",duration:0});try{let i=await e;return n.update({title:typeof t.success=="function"?t.success(i):(o=t.success)!=null?o:"Done",type:"success",duration:Qe.duration}),i}catch(i){throw n.update({title:typeof t.error=="function"?t.error(i):(s=t.error)!=null?s:"Something went wrong",type:"error",duration:Qe.duration}),i}},clear(){for(let[e,t]of cn)t.remove(),cn.delete(e)},configure(e){Object.assign(Qe,e)},settings:Qe});fe();function oi(e,t=""){let n=r=>t+r;return{get(r,o){var s;try{let i=(s=e())==null?void 0:s.getItem(n(r));if(i==null)return o;try{return JSON.parse(i)}catch(a){return i}}catch(i){return o}},set(r,o){var s;try{return(s=e())==null||s.setItem(n(r),typeof o=="string"?o:JSON.stringify(o)),!0}catch(i){return!1}},remove(r){var o;try{(o=e())==null||o.removeItem(n(r))}catch(s){}},clear(){try{let r=e();if(!r)return;if(!t){r.clear();return}for(let o of Object.keys(r))o.startsWith(t)&&r.removeItem(o)}catch(r){}},has(r){var o;try{return((o=e())==null?void 0:o.getItem(n(r)))!==null}catch(s){return!1}},keys(){try{let r=e();return r?Object.keys(r).filter(o=>o.startsWith(t)).map(o=>o.slice(t.length)):[]}catch(r){return[]}}}}var Se=oi(()=>typeof localStorage!="undefined"?localStorage:void 0),Qn=oi(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),Kn={get(e){if(typeof document=="undefined")return;let t=`${encodeURIComponent(e)}=`;for(let n of document.cookie.split("; "))if(n.startsWith(t))return decodeURIComponent(n.slice(t.length))},set(e,t,n={}){var o,s;if(typeof document=="undefined")return;let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(n.expires!==void 0){let i=typeof n.expires=="number"?new Date(Date.now()+n.expires*864e5):n.expires;r+=`; expires=${i.toUTCString()}`}r+=`; path=${(o=n.path)!=null?o:"/"}`,n.domain&&(r+=`; domain=${n.domain}`),n.secure&&(r+="; secure"),r+=`; samesite=${(s=n.sameSite)!=null?s:"Lax"}`,document.cookie=r},remove(e,t={}){this.set(e,"",{...t,expires:-1})},has(e){return this.get(e)!==void 0}},Gn={get(e,t){var n;return typeof location=="undefined"?t:(n=new URLSearchParams(location.search).get(e))!=null?n:t},all(){return typeof location=="undefined"?{}:Object.fromEntries(new URLSearchParams(location.search))},set(e,t,n=!0){if(typeof location=="undefined")return;let r=new URL(location.href);t===null||t===""?r.searchParams.delete(e):r.searchParams.set(e,String(t)),history[n?"replaceState":"pushState"]({},"",r.toString())},remove(e,t=!0){this.set(e,null,t)},merge(e,t=!0){if(typeof location=="undefined")return;let n=new URL(location.href);for(let[r,o]of Object.entries(e))o===null||o===""?n.searchParams.delete(r):n.searchParams.set(r,String(o));history[t?"replaceState":"pushState"]({},"",n.toString())}},Ft=new Map,Yn={set(e,t,n=0){return Ft.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=Ft.get(e);return n?n.expires<Date.now()?(Ft.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){Ft.delete(e)},clear(){Ft.clear()},async remember(e,t,n){let r=this.get(e);if(r!==void 0)return r;let o=await n();return this.set(e,o,t),o},get size(){return Ft.size}},io="voodoo:theme",ao=null,zn=Me(0),Bt={get current(){var e,t;return zn.value,(t=(e=Se.get(io))!=null?e:ao)!=null?t:"system"},get resolved(){let e=this.current;if(e!=="system")return e;if(typeof document!="undefined"){let t=document.documentElement.getAttribute("data-theme");if(t==="light"||t==="dark")return t}return typeof matchMedia=="undefined"?"light":matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},set(e){ao=e,Se.set(io,e),zn.value++,this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return ao!==null||Se.get(io)!=null},apply(){if(typeof document=="undefined"||!this.chosen)return;let e=this.current,t=document.documentElement;e==="system"?t.removeAttribute("data-theme"):t.setAttribute("data-theme",e),t.style.colorScheme=this.resolved,document.dispatchEvent(new CustomEvent("voodoo:theme",{detail:{theme:e,resolved:this.resolved}}))},init(){typeof document!="undefined"&&(this.apply(),typeof MutationObserver!="undefined"&&new MutationObserver(()=>{zn.value++}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),typeof matchMedia!="undefined"&&matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{zn.value++,this.current==="system"&&this.apply()}))}};var Ae=G({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function co(){typeof window!="undefined"&&(Ae.width=window.innerWidth,Ae.height=window.innerHeight,Ae.mobile=window.innerWidth<768,Ae.tablet=window.innerWidth>=768&&window.innerWidth<1024,Ae.desktop=window.innerWidth>=1024,Ae.portrait=window.innerHeight>=window.innerWidth,Ae.landscape=!Ae.portrait)}var ft=G({online:!0,type:"unknown",saveData:!1,slow:!1});function Xn(){var t;if(typeof navigator=="undefined")return;ft.online=navigator.onLine;let e=navigator.connection;e&&(ft.type=(t=e.effectiveType)!=null?t:"unknown",ft.saveData=!!e.saveData,ft.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var uo={async copy(e){var t;try{if((t=navigator.clipboard)!=null&&t.writeText)return await navigator.clipboard.writeText(e),!0}catch(n){}try{let n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.cssText="position:fixed;top:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}},async read(){try{return await navigator.clipboard.readText()}catch(e){return""}}},si=!1;function ii(){var t,n;if(si||(si=!0,W("$el",r=>r.el),W("$refs",r=>r.allRefs),W("$data",r=>r.data),W("$root",r=>r.root.data),W("$parent",r=>{var o,s;return(s=(o=r.parent)==null?void 0:o.data)!=null?s:null}),W("$self",r=>{var o,s;return(s=(o=r.owner)==null?void 0:o.component)!=null?s:r.data}),W("$store",()=>it),W("$http",()=>ke),W("$toast",()=>Ke),W("$clipboard",()=>uo),W("$storage",()=>Se),W("$session",()=>Qn),W("$cookie",()=>Kn),W("$cache",()=>Yn),W("$url",()=>Gn),W("$theme",()=>Bt),W("$device",()=>ct),W("$screen",()=>Ae),W("$network",()=>ft),W("$nextTick",()=>Ze),W("$watch",r=>(o,s)=>Pe(()=>z(o,r,"$watch"),s)),W("$dispatch",r=>(o,s)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:s,bubbles:!0}))}),W("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;co(),Xn();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(co)}),window.addEventListener("orientationchange",co),window.addEventListener("online",Xn),window.addEventListener("offline",Xn),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",Xn)}fe();var ai=new WeakMap;function Yc(e){var o,s,i;let t=(s=(o=Qr())!=null?o:e.el)!=null?s:e,n=ai.get(t);n||(n={slots:[],index:0,scheduled:!1,bound:!1},ai.set(t,n));let r=(i=Qr())!=null?i:e.el;if(!n.bound&&r){n.bound=!0;let a=n;be(r,()=>{for(let c of a.slots)c.dispose&&c.dispose(),c.runner&&wt(c.runner);a.slots.length=0})}if(!n.scheduled){n.scheduled=!0;let a=n;queueMicrotask(()=>{a.index=0,a.scheduled=!1})}return n}function Jn(e,t){let n=Yc(e),r=n.index++,o=n.slots[r];return(!o||o.kind!==t)&&(o&&(o.dispose&&o.dispose(),o.runner&&wt(o.runner)),o={kind:t,deps:null,value:void 0},n.slots[r]=o),o}function ci(e,t){if(!e||!t||e.length!==t.length)return!0;for(let n=0;n<t.length;n++)if(!Object.is(e[n],t[n]))return!0;return!1}function ui(e){return Array.isArray(e)?e.slice():null}function Xc(e,t){let n=Jn(e,"state");return n.value===void 0&&(n.value=Me(t)),n.value}function Jc(e,t,n){let r=Jn(e,"effect"),o=ui(n),s=()=>{if(r.dispose){let i=r.dispose;r.dispose=void 0,i()}};if(o){if(r.deps===null&&!r.runner||ci(r.deps,o)){r.deps=o,s();let a=t();typeof a=="function"&&(r.dispose=a)}return}r.runner||(r.deps=null,r.runner=pe(()=>{s();let i=t();typeof i=="function"&&(r.dispose=i)}))}function Zc(e,t,n){let r=Jn(e,"memo"),o=ui(n);return o?(r.value?ci(r.deps,o)&&(r.deps=o,r.value.value=t()):(r.value=Me(t()),r.deps=o),r.value):(r.value||(r.value=et(t)),r.value)}function eu(e,t){let n=Jn(e,"ref");return n.value||(n.value=Xt({current:t})),n.value}function tu(e,t){return t!==void 0&&!(e in it)&&qn(e,t),it[e]}function li(){Et("useState",e=>t=>Xc(e,t)),Et("useEffect",e=>(t,n)=>Jc(e,t,n)),Et("useMemo",e=>(t,n)=>Zc(e,t,n)),Et("useRef",e=>t=>eu(e,t)),Et("useContext",()=>(e,t)=>tu(e,t))}fe();function lo(e,t){if(!t)return e;let n=e;for(let r of t.split(".")){if(n==null)return;n=n[r]}return n}function fo(e){var n;let t=(n=e.response)==null?void 0:n.data;if(!t||typeof t!="object")return null;for(let r of["message","error","detail","msg"]){let o=t[r];if(typeof o=="string")return o}return null}function Zn(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,s=null,i=G({data:null,loading:!1,error:null,loaded:!1,async reload(){var u,l,f,p,d;let a=n();if(!a)return;o==null||o.abort();let c=o=new AbortController;i.loading=!0,i.error=null;try{let m=await ke.request({url:a,method:(t.method||"GET").toUpperCase(),params:r(),headers:t.headers,cache:t.cache||void 0,retry:(u=t.retry)!=null?u:0,timeout:(l=t.timeout)!=null?l:ke.defaults.timeout,signal:c.signal});if(c.signal.aborted)return;i.data=lo(m.data,t.jsonPath),i.loaded=!0,(f=t.onSuccess)==null||f.call(t,i.data)}catch(m){if(c.signal.aborted)return;let g=m instanceof me&&(p=fo(m))!=null?p:m.message;i.error={name:"ResourceError",message:g},(d=t.onError)==null||d.call(t,m,g)}finally{c.signal.aborted||(i.loading=!1),o===c&&(o=null)}},set(a){i.data=a},stop(){o==null||o.abort(),o=null,i.loading=!1,s!==null&&(clearInterval(s),s=null)}});return t.poll&&t.poll>0&&(s=setInterval(()=>{(typeof document=="undefined"||document.visibilityState==="visible")&&i.reload()},t.poll)),t.manual||i.reload(),i}Dt();Dt();var fi=`
108
108
  .v-fade-enter-active,.v-fade-leave-active{transition:opacity .22s var(--v-ease,ease)}
109
109
  .v-fade-enter-from,.v-fade-leave-to{opacity:0}
110
110
 
@@ -126,7 +126,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
126
126
  @media (prefers-reduced-motion: reduce){
127
127
  [class*="-enter-active"],[class*="-leave-active"]{transition-duration:.01ms !important}
128
128
  }
129
- `;function $s(e){let t=e.name||"v-fade";return{enterFrom:e.enterFrom||`${t}-enter-from`,enterActive:e.enterActive||`${t}-enter-active`,enterTo:e.enterTo||`${t}-enter-to`,leaveFrom:e.leaveFrom||`${t}-leave-from`,leaveActive:e.leaveActive||`${t}-leave-active`,leaveTo:e.leaveTo||`${t}-leave-to`}}function bt(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function wt(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function Hs(e){let t=getComputedStyle(e),n=r=>Math.max(0,...r.split(",").map(o=>parseFloat(o)*(o.includes("ms")?1:1e3)||0));return Math.max(n(t.transitionDuration)+n(t.transitionDelay),n(t.animationDuration)+n(t.animationDelay))}function Ds(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Ft(e,t={}){ke("transitions",Os);let n=$s(t);return Ve.reducedMotion?Promise.resolve():new Promise(r=>{bt(e,n.enterFrom),bt(e,n.enterActive),Ds(()=>{var i;wt(e,n.enterFrom),bt(e,n.enterTo);let o=(i=t.duration)!=null?i:Hs(e),s=()=>{wt(e,n.enterActive),wt(e,n.enterTo),r()};o<=0?s():setTimeout(s,o+20)})})}function Bt(e,t={}){ke("transitions",Os);let n=$s(t);return Ve.reducedMotion?Promise.resolve():new Promise(r=>{bt(e,n.leaveFrom),bt(e,n.leaveActive),Ds(()=>{var i;wt(e,n.leaveFrom),bt(e,n.leaveTo);let o=(i=t.duration)!=null?i:Hs(e),s=()=>{wt(e,n.leaveActive),wt(e,n.leaveTo),r()};o<=0?s():setTimeout(s,o+20)})})}function Ut(e,t=240){return new Promise(n=>{e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block");let r=e.scrollHeight;e.style.overflow="hidden",e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.height=`${r}px`}),setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function qt(e,t=240){return new Promise(n=>{e.style.height=`${e.scrollHeight}px`,e.style.overflow="hidden",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px"}),setTimeout(()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function Pn(e,t=220){return new Promise(n=>{e.style.opacity="0",e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display=""),e.style.transition=`opacity ${t}ms ease`,requestAnimationFrame(()=>{e.style.opacity="1"}),setTimeout(()=>{e.style.removeProperty("transition"),e.style.removeProperty("opacity"),n()},t+20)})}function Mn(e,t=220){return new Promise(n=>{e.style.transition=`opacity ${t}ms ease`,e.style.opacity="0",setTimeout(()=>{e.style.display="none",e.style.removeProperty("transition"),e.style.removeProperty("opacity"),n()},t+20)})}function Is(e){let t=document;typeof t.startViewTransition=="function"&&!Ve.reducedMotion?t.startViewTransition(e):e()}G();se();function yc(e,t,n){try{let o={t:"assign",op:"=",target:oe(e),value:{t:"lit",v:n}};x(o,t)}catch(r){N(r,`assignment in "${e}"`)}}function qs(e){let t=w.prefix,n=e.hasAttribute(`${t}transition`),r=e.hasAttribute(`${t}enter-class`)||e.hasAttribute(`${t}leave-class`)||e.hasAttribute(`${t}enter-active-class`)||e.hasAttribute(`${t}leave-active-class`);if(!n&&!r)return null;let o=e.getAttribute(`${t}transition`)||"fade";return{name:o.startsWith("v-")?o:`v-${o}`,enterFrom:e.getAttribute(`${t}enter-class`)||void 0,enterActive:e.getAttribute(`${t}enter-active-class`)||void 0,enterTo:e.getAttribute(`${t}enter-to-class`)||void 0,leaveFrom:e.getAttribute(`${t}leave-class`)||void 0,leaveActive:e.getAttribute(`${t}leave-active-class`)||void 0,leaveTo:e.getAttribute(`${t}leave-to-class`)||void 0,duration:e.hasAttribute(`${t}duration`)?_(e.getAttribute(`${t}duration`)):void 0}}A("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=be(n());let r=e.firstChild;r&&r.nodeType===3&&vr(r)})});A("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;Ko(t),n(()=>{let s=r();for(let i of Array.from(t.children))$(i);t.innerHTML=s==null?"":String(s);for(let i of Array.from(t.children))j(i,o)})});A("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,s=qs(e);t(()=>{let i=!!n();if(o){o=!1,e.style.display=i?r:"none";return}if(!s){e.style.display=i?r:"none";return}i?(e.style.display=r,Ft(e,s)):Bt(e,s).then(()=>{e.style.display="none"})})});A("if",({el:e,scope:t,expression:n,effect:r})=>{var p;let o=w.prefix,s=[{expression:n,template:e}],i=e.nextElementSibling;for(;i;)if(i.hasAttribute(`${o}else-if`))s.push({expression:i.getAttribute(`${o}else-if`)||"false",template:i}),i=i.nextElementSibling;else if(i.hasAttribute(`${o}else`)){s.push({expression:null,template:i}),i=i.nextElementSibling;break}else break;let a=document.createComment(w.devtools?` v-if: ${n} `:"");(p=e.parentNode)==null||p.insertBefore(a,e);for(let d of s)br(d.template),d.template.removeAttribute(`${o}if`),d.template.removeAttribute(`${o}else-if`),d.template.removeAttribute(`${o}else`),vr(d.template);let c=qs(e),u=-1,l=[],f=()=>{let d=l;if(l=[],!d.length)return;let m=()=>{for(let g of d)$(g),g.remove()};c&&d[0]instanceof HTMLElement?Bt(d[0],c).then(m):m()};r(()=>{let d=-1;for(let h=0;h<s.length;h++){let y=s[h];if(y.expression===null||H(y.expression,t,"v-if")){d=h;break}}if(d===u||(u=d,f(),d===-1))return;let m=s[d].template,g=_s(m,a,t);l=g,c&&g[0]instanceof HTMLElement&&Ft(g[0],c)}),ne(e,f)},{priority:U.IF,terminal:!0});function _s(e,t,n,r){let o=t.parentNode;if(!o)return[];let s=[];if(e.tagName==="TEMPLATE"){let i=e.content.cloneNode(!0),a=Array.from(i.childNodes);o.insertBefore(i,t);for(let c of a)s.push(c),c.nodeType===1&&(Lt(c,n),j(c,n))}else{let i=e.cloneNode(!0);s.push(i),Lt(i,n),r?(r.fragment.appendChild(i),r.pending.push([i,n])):(o.insertBefore(i,t),j(i,n))}return s}A("else-if",()=>{},{priority:U.IF,terminal:!0});A("else",()=>{},{priority:U.IF,terminal:!0});var vc=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;A("for",({el:e,scope:t,expression:n,effect:r})=>{var h;let o=vc.exec(n);if(!o){N(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let s=o[1].split(",").map(y=>y.trim()).filter(Boolean),i=o[2],[a,c,u]=s,l=w.prefix,f=e.getAttribute(":key")||e.getAttribute(`${l}bind:key`)||e.getAttribute(`${l}key`),p=document.createComment(w.devtools?` v-for: ${n} `:"");(h=e.parentNode)==null||h.insertBefore(p,e);let d=e.cloneNode(!0);d.removeAttribute(`${l}for`),d.removeAttribute(":key"),d.removeAttribute(`${l}bind:key`),d.removeAttribute(`${l}key`),br(e);let m=[];ne(p,()=>{for(let y of m)for(let S of y.nodes)$(S),S.remove();m=[]}),r(()=>{var W,P,te;let y=H(i,t,"v-for"),S=bc(y,a,c,u),V=new Map;for(let q of m)V.set(q.key,q);let k=[],v=new Set,I={fragment:document.createDocumentFragment(),pending:[]};S.forEach((q,T)=>{let b=f?H(f,t.child(q),":key"):`__index_${T}`;f&&v.has(b)&&Oo(e,b,n);let R=V.get(b);if(R&&!v.has(b)){v.add(b);for(let[Si,Ai]of Object.entries(q))R.data[Si]=Ai;k.push(R);return}let Le=t.reactiveChild(q),Fn=_s(d,p,Le,I);v.add(b),k.push({key:b,scope:Le,nodes:Fn,data:Le.data})}),I.fragment.firstChild&&((W=p.parentNode)==null||W.insertBefore(I.fragment,p));for(let[q,T]of I.pending)j(q,T);let D=new Set(k);for(let q of m)if(!(v.has(q.key)&&D.has(q)))for(let T of q.nodes)$(T),T.remove();let C=p;for(let q=k.length-1;q>=0;q--){let T=k[q],b=T.nodes[T.nodes.length-1];if(b&&b.nextSibling!==C)for(let R of T.nodes)(P=p.parentNode)==null||P.insertBefore(R,C);C=(te=T.nodes[0])!=null?te:C}m=k})},{priority:U.FOR,terminal:!0});function bc(e,t,n,r){let o=[];if(Array.isArray(e))return e.forEach((s,i)=>{let a={[t]:s};n&&(a[n]=i),o.push(a)}),o;if(typeof e=="number"){for(let s=1;s<=e;s++){let i={[t]:s};n&&(i[n]=s-1),o.push(i)}return o}return typeof e=="string"?(Array.from(e).forEach((s,i)=>{let a={[t]:s};n&&(a[n]=i),o.push(a)}),o):(e&&typeof e=="object"&&(e instanceof Map?Array.from(e.entries()):e instanceof Set?Array.from(e).map((i,a)=>[a,i]):Object.entries(e)).forEach(([i,a],c)=>{let u={[t]:a};n&&(u[n]=i),r&&(u[r]=c),o.push(u)}),o)}var wc=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Tc=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),xc=/[\s\x00-\x1f]/g;function Ec(e){let t=e.replace(xc,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function js(e,t,n,r=!1,o=!1){if(t==="class")return Vs(e,n);if(t==="style")return Fr(e,n);if(w.sanitizeUrls&&!o&&t==="srcdoc"){Fe(`:srcdoc refused in ${Te(e)}: the value becomes a document with active script inside the iframe, the same way v-html becomes markup. If the content is trusted, write :srcdoc.dangerous="..."; to turn off this protection on the entire application, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(w.sanitizeUrls&&!r){if(Tc.has(t)&&typeof n=="string"&&Ec(n)){Fe(`value refused in :${t} of ${Te(e)}: "${n.slice(0,60)}" uses a scheme that executes code. Use an http(s) or relative address. To turn off this protection, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(t.length>2&&/^on[a-z]/.test(t)){Fe(`attribute "${t}" refused in ${Te(e)}: linking event by attribute creates an inline handler. Use @${t.slice(2)}="..." instead.`),e.removeAttribute(t);return}}if(r){e[t]=n;return}if(wc.has(t)){n===!1||n==null?e.removeAttribute(t):e.setAttribute(t,""),t in e&&(e[t]=!!n);return}if(t==="value"&&"value"in e){e.value=n==null?"":n;return}n==null||n===!1?e.removeAttribute(t):e.setAttribute(t,n===!0?"":String(n))}var Fs=new WeakMap;function Vs(e,t){let n=Fs.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),Fs.set(e,n));let r=new Set(n);Ws(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function Ws(e,t){if(e){if(typeof e=="string"){for(let n of e.split(/\s+/))n&&t.add(n);return}if(Array.isArray(e)){for(let n of e)Ws(n,t);return}if(typeof e=="object"){for(let[n,r]of Object.entries(e))if(r)for(let o of n.split(/\s+/))o&&t.add(o)}}}function Fr(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)Fr(e,n);return}for(let[n,r]of Object.entries(t)){if(r==null||r===!1){e.style.removeProperty(n);continue}let o=n.startsWith("--")?n:n.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`),s=String(r);o.startsWith("--"),e.style.setProperty(o,s)}}}A("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:s})=>{if(!t){r(()=>{let c=o();if(c&&typeof c=="object")for(let[u,l]of Object.entries(c))js(e,u,l)});return}if(t==="key")return;let i=!!n.prop,a=!!n.dangerous;r(()=>{js(e,t,o(),i,a)})},{priority:U.BIND});A("class",({el:e,effect:t,evaluate:n})=>{t(()=>Vs(e,n()))});A("style",({el:e,effect:t,evaluate:n})=>{t(()=>Fr(e,n()))});var Bs={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},kc=["ctrl","shift","alt","meta"];function Us(e,t,n,r){let o=n.detail,s=n.__voodoo===!0,i=t.child({$event:s?o:n,$rawEvent:n,$el:r,$detail:o});try{let a=oe(e),c=x(a,i);typeof c=="function"&&(a.t==="id"||a.t==="member")&&c.call(t.data,s?o:n)}catch(a){N(a,`event ${n.type} ("${e}")`)}}var Sc={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},zs={hold(e,t,n,r){let o=_(typeof n.duration=="string"&&n.duration||Object.keys(n).find(l=>/^[\d.]+(ms|s)?$/.test(l))||e.getAttribute(`${w.prefix}hold-duration`)||800,800),s=null,i=!1,a=l=>{i=!1,e.classList.add("v-holding"),e.style.setProperty("--v-hold-duration",`${o}ms`),s=setTimeout(()=>{i=!0,e.classList.remove("v-holding"),t(l)},o)},c=()=>{s&&clearTimeout(s),s=null,e.classList.remove("v-holding")},u=l=>{i&&(l.preventDefault(),l.stopPropagation(),i=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",c),e.addEventListener("pointerleave",c),e.addEventListener("pointercancel",c),e.addEventListener("click",u,!0),r(()=>{c(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",c),e.removeEventListener("pointerleave",c),e.removeEventListener("pointercancel",c),e.removeEventListener("click",u,!0)})},outside(e,t,n,r){let o=s=>{e.isConnected&&(e===s.target||e.contains(s.target)||t(s))};document.addEventListener("click",o,!0),r(()=>document.removeEventListener("click",o,!0))},visible(e,t,n,r){var s,i;if(typeof IntersectionObserver=="undefined"){t(new CustomEvent("visible"));return}let o=new IntersectionObserver(a=>{for(let c of a)c.isIntersecting&&(t(new CustomEvent("visible",{detail:c})),n.repeat!==!0&&o.unobserve(e))},{threshold:Number((s=n.threshold)!=null?s:.1),rootMargin:String((i=n.margin)!=null?i:"0px")});o.observe(e),r(()=>o.disconnect())}};for(let e of["left","right","up","down"])zs[`swipe${e}`]=(t,n,r,o)=>{let s=0,i=0,a=!1,c=l=>{a=!0,s=l.clientX,i=l.clientY},u=l=>{if(!a)return;a=!1;let f=l.clientX-s,p=l.clientY-i,d=40;(e==="left"?f<-d&&Math.abs(f)>Math.abs(p):e==="right"?f>d&&Math.abs(f)>Math.abs(p):e==="up"?p<-d&&Math.abs(p)>Math.abs(f):p>d&&Math.abs(p)>Math.abs(f))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:f,dy:p}}))};t.addEventListener("pointerdown",c),window.addEventListener("pointerup",u),o(()=>{t.removeEventListener("pointerdown",c),window.removeEventListener("pointerup",u)})};function Qs(e,t,n,r,o,s){var d;let i=(d=Sc[t])!=null?d:t,a=zs[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Us(n,r,m,e)},o,s);return}let c=o.window?window:o.document||o.outside?document:e,u=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let h of kc)if(o[h]&&!m[`${h}Key`])return;let g=Object.keys(o).filter(h=>h in Bs||/^[a-z0-9]$/.test(h));if(g.length&&!g.some(y=>{let S=Bs[y];return S?S.includes(m.key):m.key.toLowerCase()===y}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Us(n,r,m,e)}},l=o.debounce;l!==void 0&&(u=_e(u,_(l===!0?250:l,250)));let f=o.throttle;f!==void 0&&(u=Pr(u,_(f===!0?250:f,250)));let p={capture:!!o.capture,once:!!o.once,passive:!!o.passive};c.addEventListener(i,u,p),s(()=>c.removeEventListener(i,u,p))}A("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:s})=>{t&&Qs(e,t,n,r,o,s)});var Ac=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of Ac)A(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:s})=>{Qs(t,e,n,r,o,s)});A("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:s})=>{let i=e,a=i.tagName,c=(i.getAttribute("type")||"text").toLowerCase(),u=a==="INPUT"&&c==="checkbox",l=a==="INPUT"&&c==="radio",f=a==="SELECT",p=f&&i.multiple,d=a==="INPUT"&&c==="file",m=c==="number"||c==="range",g=!!r.lazy,h=!!r.number||m,y=!!r.trim,S=r.debounce?_(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${w.prefix}debounce`)?_(e.getAttribute(`${w.prefix}debounce`),250):0,V=g||f||u||l||d?"change":"input",k=()=>{var I,D;let v;if(u){let C=H(t,n,"v-model");if(Array.isArray(C)){let W=i.value,P=[...C],te=P.indexOf(W);i.checked&&te===-1?P.push(W):!i.checked&&te>-1&&P.splice(te,1),v=P}else v=i.checked}else if(l){if(!i.checked)return;v=i.value}else if(p)v=Array.from(i.selectedOptions).map(C=>C.value);else if(d)v=r.single?(D=(I=i.files)==null?void 0:I[0])!=null?D:null:i.files;else if(v=i.value,y&&typeof v=="string"&&(v=v.trim()),h&&typeof v=="string"){let C=v===""?null:Number(v);v=C===null||Number.isNaN(C)?v:C}yc(t,n,v)};S>0&&(k=_e(k,S)),i.addEventListener(V,k),s(()=>i.removeEventListener(V,k)),o(()=>{let v=H(t,n,"v-model");if(u){i.checked=Array.isArray(v)?v.includes(i.value):!!v;return}if(l){i.checked=String(v)===i.value;return}if(p){let D=Array.isArray(v)?v.map(String):[];for(let C of Array.from(i.options))C.selected=D.includes(C.value);return}if(d)return;let I=v==null?"":String(v);i.value!==I&&(i.value=I),f&&i.value!==I&&He(()=>{i.value!==I&&(i.value=I)})})},{priority:U.MODEL});A("init",({el:e,expression:t,scope:n})=>{Re(()=>{let r=n.child({$el:e}),o=H(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:U.INIT});A("ref",({el:e,expression:t,scope:n,cleanup:r})=>{var i;let o=t.trim();if(!o)return;let s=(i=n.owner)!=null?i:n;s.refs[o]=e,r(()=>{s.refs[o]===e&&delete s.refs[o]})},{priority:U.REF});A("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});A("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${w.prefix}model`),s,i=!0;r(()=>{let a=o?H(o,n,"v-watch"):H(t,n,"v-watch");if(i){i=!1,s=a;return}if(a===s)return;let c=s;if(s=a,o){let u=n.child({$value:a,$old:c,$el:e}),l=H(t,u,"v-watch");typeof l=="function"&&l.call(n.data,a,c)}})});A("cloak",({el:e})=>{e.removeAttribute(`${w.prefix}cloak`)});A("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=be(r))});A("teleport",({el:e,expression:t,cleanup:n})=>{var i;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){N(new Error(`v-teleport destination not found: ${r}`),"v-teleport");return}let s=document.createComment(" v-teleport ");(i=e.parentNode)==null||i.insertBefore(s,e),o.appendChild(e),n(()=>{var a;(a=s.parentNode)==null||a.insertBefore(e,s),s.remove()})},{priority:U.DATA});for(let e of["transition","enter-class","enter-active-class","enter-to-class","leave-class","leave-active-class","leave-to-class","duration","key","slot","ignore","pre"])A(e,()=>{},{priority:U.TRANSITION});A("data",()=>{},{priority:U.DATA});A("component",()=>{},{priority:U.COMPONENT});G();se();var Ys=()=>w.prefix;function E(e,t){return _o(e,`${Ys()}${t}`)}function qr(e,t){return Vo(e,`${Ys()}${t}`)}function Rc(e,t){var i,a,c;let n=E(e,"target"),r=E(e,"loading"),o={},s=E(e,"headers");if(s){let u=H(s,t,"v-headers");u&&typeof u=="object"&&(o=u)}return{target:n?document.querySelector(n):null,swap:E(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:E(e,"loading-class")||"v-loading",disableWhileLoading:qr(e,"disable-loading"),confirmMessage:E(e,"confirm"),toastSuccess:E(e,"toast-success"),toastError:E(e,"toast-error"),onSuccess:E(e,"on-success"),onError:E(e,"on-error"),onComplete:E(e,"on-complete"),cacheMs:_((i=E(e,"cache"))!=null?i:void 0,0),retry:Number((a=E(e,"retry"))!=null?a:0),timeout:_((c=E(e,"timeout"))!=null?c:void 0,ie.defaults.timeout),storeAs:E(e,"as"),jsonPath:E(e,"json-path"),templateSelector:E(e,"template"),offlineQueue:qr(e,"offline-queue"),headers:o,redirect:E(e,"redirect"),scrollTo:E(e,"scroll-to")}}function Ks(e,t,n,r){var s,i;let o=a=>{for(let c of Array.from(a))c.nodeType===1&&j(c,r)};switch(n){case"none":return;case"delete":$(e),e.remove();return;case"textContent":e.textContent=t;return;case"outerHTML":case"replace":{let a=document.createElement("template");a.innerHTML=t;let c=Array.from(a.content.childNodes);$(e),e.replaceWith(a.content),o(c);return}case"beforebegin":case"afterbegin":case"beforeend":case"afterend":{let a=new Set(Array.from((i=(s=e.parentElement)==null?void 0:s.childNodes)!=null?i:[]));e.insertAdjacentHTML(n,t);let c=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(c)for(let u of Array.from(c.childNodes))u.nodeType===1&&!a.has(u)&&j(u,r);return}case"append":e.insertAdjacentHTML("beforeend",t),o(e.childNodes);return;case"prepend":e.insertAdjacentHTML("afterbegin",t),o(e.childNodes);return;default:{for(let a of Array.from(e.children))$(a);e.innerHTML=t,o(e.childNodes)}}}function Ln(e,t=0){if(e==null)return"";if(typeof e!="object")return $t(String(e));if(Array.isArray(e)){if(!e.length)return'<p class="v-json-empty">No results.</p>';if(e.every(o=>o&&typeof o=="object"&&!Array.isArray(o))&&t===0){let o=Array.from(e.reduce((a,c)=>{for(let u of Object.keys(c))a.add(u);return a},new Set)),s=o.map(a=>`<th>${$t(a)}</th>`).join(""),i=e.map(a=>`<tr>${o.map(c=>`<td>${Ln(a[c],t+1)}</td>`).join("")}</tr>`).join("");return`<table class="v-json-table"><thead><tr>${s}</tr></thead><tbody>${i}</tbody></table>`}return`<ul class="v-json-list">${e.map(o=>`<li>${Ln(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${$t(r)}</dt><dd>${Ln(o,t+1)}</dd>`).join("")}</dl>`:""}function Cc(e,t,n,r){let o=document.querySelector(e);if(!o){N(new Error(`Template not found: ${e}`),"v-template");return}for(let i of Array.from(r.children))$(i);r.innerHTML="";let s=Array.isArray(t)?t:[t];for(let[i,a]of s.entries()){let c=o.content.cloneNode(!0),u=Array.from(c.childNodes);r.appendChild(c);let l=n.reactiveChild({item:a,index:i,...a&&typeof a=="object"?a:{}});for(let f of u)f.nodeType===1&&j(f,l)}}var Br=new WeakMap;async function _t(e){var f,p,d,m,g;let{el:t,scope:n,method:r}=e,o=Rc(t,n),s=we.has("confirm");if(o.confirmMessage&&!s&&!await Pc(o.confirmMessage))return;(f=Br.get(t))==null||f.abort();let i=new AbortController;Br.set(t,i);let a=(p=o.target)!=null?p:t,c=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,u=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let h=c!=null?c:t;"disabled"in h&&(h.disabled=!0)}},l=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let h=c!=null?c:t;"disabled"in h&&(h.disabled=!1)}};u(),Tt(t,"voodoo:before-request",{method:r,url:e.url});try{let h=await ie.request({url:e.url,method:r,body:e.body,params:e.params,headers:o.headers,timeout:o.timeout,retry:o.retry,cache:o.cacheMs||void 0,signal:i.signal,offlineQueue:o.offlineQueue}),y=Ir(h.data,o.jsonPath);o.storeAs?n.set(o.storeAs,y):o.templateSelector?Cc(o.templateSelector,y,n,a):typeof y=="string"?Ks(a,y,o.swap,n):y!=null&&(Mc(),Ks(a,Ln(y),o.swap,n)),o.toastSuccess&&Me.success(o.toastSuccess),o.onSuccess&&Ur(o.onSuccess,n,t,{data:y,response:h}),Tt(t,"voodoo:success",{data:y,response:h}),o.scrollTo&&((d=document.querySelector(o.scrollTo))==null||d.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(h){if((h==null?void 0:h.name)==="AbortError")return;let y=h instanceof Z?(m=jr(h))!=null?m:h.message:(g=h==null?void 0:h.message)!=null?g:"Unknown error";o.toastError?Me.error(o.toastError):o.onError||Me.error(y),o.onError&&Ur(o.onError,n,t,{error:h,message:y}),Tt(t,"voodoo:error",{error:h,message:y}),N(h,`request ${r} ${e.url}`)}finally{l(),Br.delete(t),o.onComplete&&Ur(o.onComplete,n,t,{}),Tt(t,"voodoo:complete",{})}}function Tt(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Ur(e,t,n,r){var i;let o=t.child({$el:n,...r}),s=H(e,o,"HTTP callback");typeof s=="function"&&s.call(t.data,(i=r.data)!=null?i:r.error)}async function Pc(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var Gs=!1;function Mc(){Gs||(Gs=!0,Promise.resolve().then(()=>(ht(),Ss)).then(({injectStyle:e})=>{e("json-render",`
129
+ `;function di(e){let t=e.name||"v-fade";return{enterFrom:e.enterFrom||`${t}-enter-from`,enterActive:e.enterActive||`${t}-enter-active`,enterTo:e.enterTo||`${t}-enter-to`,leaveFrom:e.leaveFrom||`${t}-leave-from`,leaveActive:e.leaveActive||`${t}-leave-active`,leaveTo:e.leaveTo||`${t}-leave-to`}}function Ut(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function qt(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function pi(e){let t=getComputedStyle(e),n=r=>Math.max(0,...r.split(",").map(o=>parseFloat(o)*(o.includes("ms")?1:1e3)||0));return Math.max(n(t.transitionDuration)+n(t.transitionDelay),n(t.animationDuration)+n(t.animationDelay))}function mi(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function un(e,t={}){qe("transitions",fi);let n=di(t);return ct.reducedMotion?Promise.resolve():new Promise(r=>{Ut(e,n.enterFrom),Ut(e,n.enterActive),mi(()=>{var i;qt(e,n.enterFrom),Ut(e,n.enterTo);let o=(i=t.duration)!=null?i:pi(e),s=()=>{qt(e,n.enterActive),qt(e,n.enterTo),r()};o<=0?s():setTimeout(s,o+20)})})}function ln(e,t={}){qe("transitions",fi);let n=di(t);return ct.reducedMotion?Promise.resolve():new Promise(r=>{Ut(e,n.leaveFrom),Ut(e,n.leaveActive),mi(()=>{var i;qt(e,n.leaveFrom),Ut(e,n.leaveTo);let o=(i=t.duration)!=null?i:pi(e),s=()=>{qt(e,n.leaveActive),qt(e,n.leaveTo),r()};o<=0?s():setTimeout(s,o+20)})})}function fn(e,t=240){return new Promise(n=>{e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block");let r=e.scrollHeight;e.style.overflow="hidden",e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.height=`${r}px`}),setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function dn(e,t=240){return new Promise(n=>{e.style.height=`${e.scrollHeight}px`,e.style.overflow="hidden",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px"}),setTimeout(()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function er(e,t=220){return new Promise(n=>{e.style.opacity="0",e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display=""),e.style.transition=`opacity ${t}ms ease`,requestAnimationFrame(()=>{e.style.opacity="1"}),setTimeout(()=>{e.style.removeProperty("transition"),e.style.removeProperty("opacity"),n()},t+20)})}function tr(e,t=220){return new Promise(n=>{e.style.transition=`opacity ${t}ms ease`,e.style.opacity="0",setTimeout(()=>{e.style.display="none",e.style.removeProperty("transition"),e.style.removeProperty("opacity"),n()},t+20)})}function hi(e){let t=document;typeof t.startViewTransition=="function"&&!ct.reducedMotion?t.startViewTransition(e):e()}fe();Ee();function nu(){return{on:!1,itemsVisited:0,keyEvaluations:0,prefixScanned:0,suffixScanned:0,middleReconciled:0,scopeAllocations:0,proxyWrites:0,arrayAllocations:0,keyMapLookups:0,domCreates:0,domRemoves:0,domMoves:0,domInserts:0,lisRuns:0,lisElements:0,paths:{}}}var A=nu();function po(e){A.paths[e]=(A.paths[e]||0)+1}function ru(e,t,n){try{let o={t:"assign",op:"=",target:xe(e),value:{t:"lit",v:n}};x(o,t)}catch(r){V(r,`assignment in "${e}"`)}}function xi(e){let t=w.prefix,n=e.hasAttribute(`${t}transition`),r=e.hasAttribute(`${t}enter-class`)||e.hasAttribute(`${t}leave-class`)||e.hasAttribute(`${t}enter-active-class`)||e.hasAttribute(`${t}leave-active-class`);if(!n&&!r)return null;let o=e.getAttribute(`${t}transition`)||"fade";return{name:o.startsWith("v-")?o:`v-${o}`,enterFrom:e.getAttribute(`${t}enter-class`)||void 0,enterActive:e.getAttribute(`${t}enter-active-class`)||void 0,enterTo:e.getAttribute(`${t}enter-to-class`)||void 0,leaveFrom:e.getAttribute(`${t}leave-class`)||void 0,leaveActive:e.getAttribute(`${t}leave-active-class`)||void 0,leaveTo:e.getAttribute(`${t}leave-to-class`)||void 0,duration:e.hasAttribute(`${t}duration`)?te(e.getAttribute(`${t}duration`)):void 0}}H("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=De(n());let r=e.firstChild;r&&r.nodeType===3&&Wr(r)})});H("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;As(t),n(()=>{let s=r();for(let i of Array.from(t.children))K(i);t.innerHTML=s==null?"":String(s);for(let i of Array.from(t.children))Y(i,o)})});H("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,s=xi(e);t(()=>{let i=!!n();if(o){o=!1,e.style.display=i?r:"none";return}if(!s){e.style.display=i?r:"none";return}i?(e.style.display=r,un(e,s)):ln(e,s).then(()=>{e.style.display="none"})})});H("if",({el:e,scope:t,expression:n,effect:r})=>{var p;let o=w.prefix,s=[{expression:n,template:e}],i=e.nextElementSibling;for(;i;)if(i.hasAttribute(`${o}else-if`))s.push({expression:i.getAttribute(`${o}else-if`)||"false",template:i}),i=i.nextElementSibling;else if(i.hasAttribute(`${o}else`)){s.push({expression:null,template:i}),i=i.nextElementSibling;break}else break;let a=document.createComment(w.devtools?` v-if: ${n} `:"");(p=e.parentNode)==null||p.insertBefore(a,e);for(let d of s)zr(d.template),d.template.removeAttribute(`${o}if`),d.template.removeAttribute(`${o}else-if`),d.template.removeAttribute(`${o}else`),Wr(d.template);let c=xi(e),u=-1,l=[],f=()=>{let d=l;if(l=[],!d.length)return;let m=()=>{for(let g of d)K(g),g.remove()};c&&d[0]instanceof HTMLElement?ln(d[0],c).then(m):m()};r(()=>{let d=-1;for(let h=0;h<s.length;h++){let v=s[h];if(v.expression===null||z(v.expression,t,"v-if")){d=h;break}}if(d===u||(u=d,f(),d===-1))return;let m=s[d].template,g=Ei(m,a,t);l=g,c&&g[0]instanceof HTMLElement&&un(g[0],c)}),be(e,f)},{priority:Z.IF,terminal:!0});function Ei(e,t,n){let r=t.parentNode;if(!r)return[];let o=[];if(e.tagName==="TEMPLATE"){let s=e.content.cloneNode(!0),i=Array.from(s.childNodes);r.insertBefore(s,t);for(let a of i)o.push(a),a.nodeType===1&&(Ct(a,n),Y(a,n))}else{let s=e.cloneNode(!0);A.on&&A.domCreates++,o.push(s),Ct(s,n),r.insertBefore(s,t),Y(s,n)}return o}H("else-if",()=>{},{priority:Z.IF,terminal:!0});H("else",()=>{},{priority:Z.IF,terminal:!0});var ou=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/,su=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/,iu=[];function gi(e,t){return e===t?!0:t!==null&&typeof t=="object"&&e===J(t)}function yi(e,t){return e===t||e!==e&&t!==t}function au(e){let t=e.length,n=new Int32Array(t),r=[];for(let a=0;a<t;a++){let c=e[a];if(c===0)continue;if(r.length===0){r.push(a);continue}let u=r[r.length-1];if(e[u]<c){n[a]=u,r.push(a);continue}let l=0,f=r.length-1;for(;l<f;){let p=l+f>>1;e[r[p]]<c?l=p+1:f=p}c<e[r[l]]&&(l>0&&(n[a]=r[l-1]),r[l]=a)}let o=r.length,s=new Int32Array(o),i=r[o-1];for(;o-- >0;)s[o]=i,i=n[i];return s}H("for",({el:e,scope:t,expression:n,effect:r})=>{var No;let o=ou.exec(n);if(!o){V(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let s=o[1].split(",").map(y=>y.trim()).filter(Boolean),i=o[2],[a,c,u]=s,l=w.prefix,f=e.getAttribute(":key")||e.getAttribute(`${l}bind:key`)||e.getAttribute(`${l}key`),p=document.createComment(w.devtools?` v-for: ${n} `:"");(No=e.parentNode)==null||No.insertBefore(p,e);let d=e.cloneNode(!0);d.removeAttribute(`${l}for`),d.removeAttribute(":key"),d.removeAttribute(`${l}bind:key`),d.removeAttribute(`${l}key`),zr(e);let m=d.tagName==="TEMPLATE",g=!1,h=!1,v=null,P=null;if(f&&su.test(f)){let y=f.split(".");y[0]===a?y.length===1?g=!0:y.length===2?v=y[1]:P=y.slice(1):c&&y.length===1&&y[0]===c&&(h=!0)}let L=[],N=[],b=null,Q=0,U=null,D=null,ne=0,O=[],oe=[],ht=y=>{if(b)return b[y];let T={[a]:N[y]};return c&&(T[c]=y),T},k=y=>{if(A.on&&A.keyEvaluations++,h||!f)return y;let T=b?b[y][a]:N[y];if(g)return T;if(v!==null)return T==null?void 0:T[v];if(P!==null){let S=T;for(let M=0;M<P.length;M++){if(S==null)return;S=S[P[M]]}return S}return U||(U=t.child({})),U.data=ht(y),z(f,U,":key")},E=(y,T)=>{let S=J(y.data);if(b){let $=b[T];for(let q in $)gi(S[q],$[q])||(A.on&&A.proxyWrites++,y.data[q]=$[q]);return}let M=N[T];gi(S[a],M)||(A.on&&A.proxyWrites++,y.data[a]=M),c!==void 0&&S[c]!==T&&(A.on&&A.proxyWrites++,y.data[c]=T)},j=(y,T,S,M)=>{if(y>=T)return;let $=p.parentNode;if(!$)return;if(oe.push(O.length),m){for(let R=y;R<T;R++){let se=t.reactiveChild(ht(R));A.on&&(A.scopeAllocations++,A.itemsVisited++);let ue=Ei(d,S,se);M.push({key:k(R),scope:se,nodes:ue,data:se.data})}return}let q=document.createDocumentFragment();for(let R=y;R<T;R++){let se=t.reactiveChild(ht(R)),ue=d.cloneNode(!0);Ct(ue,se),q.appendChild(ue),O.push([ue,se]),M.push({key:k(R),scope:se,nodes:[ue],data:se.data}),A.on&&(A.scopeAllocations++,A.domCreates++,A.itemsVisited++)}A.on&&A.domInserts++,$.insertBefore(q,S)},Ge=y=>{let T=y.nodes;for(let S=0;S<T.length;S++)A.on&&A.domRemoves++,K(T[S]),T[S].remove()},lr=(y,T)=>{let S=p.parentNode;if(!S)return;let M=y.nodes;if(M[M.length-1].nextSibling!==T)for(let $=0;$<M.length;$++)A.on&&A.domMoves++,S.insertBefore(M[$],T)},Lo=y=>y<L.length?L[y].nodes[0]:p,fr=(y,T,S)=>{let M=S.length;if(T===0&&M===0)return;if(L.length===0){L=S;return}if(M===0){L.splice(y,T);return}if(M<=1024){L.splice(y,T,...S);return}let $=new Array(L.length-T+M),q=0;for(let R=0;R<y;R++)$[q++]=L[R];for(let R=0;R<M;R++)$[q++]=S[R];for(let R=y+T;R<L.length;R++)$[q++]=L[R];L=$},sa=()=>{for(let y=oe.length-1;y>=0;y--){let T=oe[y],S=y+1<oe.length?oe[y+1]:O.length;for(let M=T;M<S;M++)Y(O[M][0],O[M][1])}O.length=0,oe.length=0},I=0,ee=0,re=0,ia=y=>{let T=kr(y,ne);if(!T)return!1;let S=L.length;I=0,ee=0,re=0;let M=S;for(let $=0;$<T.length;$++){let q=T[$],R=q.index,se=q.type===2?1:q.removed,ue=q.type===2?1:q.added,_e=R+se;$===0?(I=R,ee=_e,re=R+ue):_e<=re?(R<I&&(I=R),re+=ue-se):(R<I&&(I=R),ee=_e-re+ee,re=R+ue),ee<I&&(ee=I),re<I&&(re=I),M+=ue-se}if(M!==Q||I>ee||I>re||ee>S||re>Q)return!1;if(A.on&&po(T.length===0?"unchanged":"mutation"),c!==void 0&&ee-re!==0)for(let $=re;$<Q;$++)E(L[$-re+ee],$);return!0},aa=()=>{let y=L.length,T=Q,S=0,M=y<T?y:T;for(;S<M;){let R=L[S];if(!yi(R.key,k(S)))break;E(R,S),S++}A.on&&(A.prefixScanned+=S,A.itemsVisited+=S);let $=y-1,q=T-1;for(;$>=S&&q>=S;){let R=L[$];if(!yi(R.key,k(q)))break;E(R,q),$--,q--}if(A.on){let R=y-1-$;A.suffixScanned+=R,A.itemsVisited+=R,po("scan")}I=S,ee=$+1,re=q+1},ca=()=>{let y=re-I;if(I>=ee){if(y>0){let _=[];j(I,re,Lo(I),_),fr(I,0,_)}return}if(y===0){A.on&&(A.itemsVisited+=ee-I);for(let _=I;_<ee;_++)Ge(L[_]);fr(I,ee-I,iu);return}A.on&&(A.arrayAllocations+=3,A.middleReconciled+=y,A.itemsVisited+=y+(ee-I));let T=new Map;for(let _=I;_<re;_++){let ie=k(_);f&&T.has(ie)&&fs(e,ie,n),T.set(ie,_)}let S=new Int32Array(y),M=new Array(y),$=0,q=!1,R=0;for(let _=I;_<ee;_++){let ie=L[_];A.on&&A.keyMapLookups++;let ye=$>=y?void 0:T.get(ie.key);if(ye===void 0||M[ye-I]!==void 0){Ge(ie);continue}S[ye-I]=_+1,M[ye-I]=ie,ye>=R?R=ye:q=!0,E(ie,ye),$++}let se=q?au(S):null;A.on&&q&&(A.lisRuns++,A.lisElements+=y);let ue=se?se.length-1:-1,_e=new Array(y),Qt=Lo(ee),Ye=-1;for(let _=y-1;_>=0;_--){let ie=I+_,ye=M[_];if(ye===void 0){Ye<0&&(Ye=ie+1);continue}if(Ye>=0){let Kt=[];j(ie+1,Ye,Qt,Kt);for(let bn=0;bn<Kt.length;bn++)_e[_+1+bn]=Kt[bn];Kt.length&&(Qt=Kt[0].nodes[0]),Ye=-1}_e[_]=ye,q&&(ue<0||_!==se[ue])?lr(ye,Qt):q&&ue--,Qt=ye.nodes[0]}if(Ye>=0){let _=[];j(I,Ye,Qt,_);for(let ie=0;ie<_.length;ie++)_e[ie]=_[ie]}fr(I,ee-I,_e)};be(p,()=>{for(let y of L)Ge(y);L=[],D=null,ne=0}),r(()=>{let y=z(i,t,"v-for"),T=J(y),S=!1;if(Array.isArray(T)){ge(T,"length"),ge(T,we),N=T,b=null,Q=T.length;let M=Er(T);T===D&&f&&!h&&(S=ia(T)),D=T,ne=M}else b=cu(y,a,c,u),N=b,Q=b.length,D=null,ne=0,A.on&&(A.arrayAllocations+=Q+1);S||aa(),ca(),sa()})},{priority:Z.FOR,terminal:!0});function cu(e,t,n,r){let o=[];if(typeof e=="number"){for(let s=1;s<=e;s++){let i={[t]:s};n&&(i[n]=s-1),o.push(i)}return o}return typeof e=="string"?(Array.from(e).forEach((s,i)=>{let a={[t]:s};n&&(a[n]=i),o.push(a)}),o):(e&&typeof e=="object"&&(e instanceof Map?Array.from(e.entries()):e instanceof Set?Array.from(e).map((i,a)=>[a,i]):Object.entries(e)).forEach(([i,a],c)=>{let u={[t]:a};n&&(u[n]=i),r&&(u[r]=c),o.push(u)}),o)}var uu=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),lu=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),fu=/[\s\x00-\x1f]/g;function du(e){let t=e.replace(fu,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function vi(e,t,n,r=!1,o=!1){if(t==="class")return ki(e,n);if(t==="style")return mo(e,n);if(w.sanitizeUrls&&!o&&t==="srcdoc"){rt(`:srcdoc refused in ${Fe(e)}: the value becomes a document with active script inside the iframe, the same way v-html becomes markup. If the content is trusted, write :srcdoc.dangerous="..."; to turn off this protection on the entire application, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(w.sanitizeUrls&&!r){if(lu.has(t)&&typeof n=="string"&&du(n)){rt(`value refused in :${t} of ${Fe(e)}: "${n.slice(0,60)}" uses a scheme that executes code. Use an http(s) or relative address. To turn off this protection, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(t.length>2&&/^on[a-z]/.test(t)){rt(`attribute "${t}" refused in ${Fe(e)}: linking event by attribute creates an inline handler. Use @${t.slice(2)}="..." instead.`),e.removeAttribute(t);return}}if(r){e[t]=n;return}if(uu.has(t)){n===!1||n==null?e.removeAttribute(t):e.setAttribute(t,""),t in e&&(e[t]=!!n);return}if(t==="value"&&"value"in e){e.value=n==null?"":n;return}n==null||n===!1?e.removeAttribute(t):e.setAttribute(t,n===!0?"":String(n))}var bi=new WeakMap;function ki(e,t){let n=bi.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),bi.set(e,n));let r=new Set(n);Si(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function Si(e,t){if(e){if(typeof e=="string"){for(let n of e.split(/\s+/))n&&t.add(n);return}if(Array.isArray(e)){for(let n of e)Si(n,t);return}if(typeof e=="object"){for(let[n,r]of Object.entries(e))if(r)for(let o of n.split(/\s+/))o&&t.add(o)}}}function mo(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)mo(e,n);return}for(let[n,r]of Object.entries(t)){if(r==null||r===!1){e.style.removeProperty(n);continue}let o=n.startsWith("--")?n:n.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`),s=String(r);o.startsWith("--"),e.style.setProperty(o,s)}}}H("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:s})=>{if(!t){r(()=>{let c=o();if(c&&typeof c=="object")for(let[u,l]of Object.entries(c))vi(e,u,l)});return}if(t==="key")return;let i=!!n.prop,a=!!n.dangerous;r(()=>{vi(e,t,o(),i,a)})},{priority:Z.BIND});H("class",({el:e,effect:t,evaluate:n})=>{t(()=>ki(e,n()))});H("style",({el:e,effect:t,evaluate:n})=>{t(()=>mo(e,n()))});var wi={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},pu=["ctrl","shift","alt","meta"];function Ti(e,t,n,r){let o=n.detail,s=n.__voodoo===!0,i=t.child({$event:s?o:n,$rawEvent:n,$el:r,$detail:o});try{let a=xe(e),c=x(a,i);typeof c=="function"&&(a.t==="id"||a.t==="member")&&c.call(t.data,s?o:n)}catch(a){V(a,`event ${n.type} ("${e}")`)}}var mu={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},Ai={hold(e,t,n,r){let o=te(typeof n.duration=="string"&&n.duration||Object.keys(n).find(l=>/^[\d.]+(ms|s)?$/.test(l))||e.getAttribute(`${w.prefix}hold-duration`)||800,800),s=null,i=!1,a=l=>{i=!1,e.classList.add("v-holding"),e.style.setProperty("--v-hold-duration",`${o}ms`),s=setTimeout(()=>{i=!0,e.classList.remove("v-holding"),t(l)},o)},c=()=>{s&&clearTimeout(s),s=null,e.classList.remove("v-holding")},u=l=>{i&&(l.preventDefault(),l.stopPropagation(),i=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",c),e.addEventListener("pointerleave",c),e.addEventListener("pointercancel",c),e.addEventListener("click",u,!0),r(()=>{c(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",c),e.removeEventListener("pointerleave",c),e.removeEventListener("pointercancel",c),e.removeEventListener("click",u,!0)})},outside(e,t,n,r){let o=s=>{e.isConnected&&(e===s.target||e.contains(s.target)||t(s))};document.addEventListener("click",o,!0),r(()=>document.removeEventListener("click",o,!0))},visible(e,t,n,r){var s,i;if(typeof IntersectionObserver=="undefined"){t(new CustomEvent("visible"));return}let o=new IntersectionObserver(a=>{for(let c of a)c.isIntersecting&&(t(new CustomEvent("visible",{detail:c})),n.repeat!==!0&&o.unobserve(e))},{threshold:Number((s=n.threshold)!=null?s:.1),rootMargin:String((i=n.margin)!=null?i:"0px")});o.observe(e),r(()=>o.disconnect())}};for(let e of["left","right","up","down"])Ai[`swipe${e}`]=(t,n,r,o)=>{let s=0,i=0,a=!1,c=l=>{a=!0,s=l.clientX,i=l.clientY},u=l=>{if(!a)return;a=!1;let f=l.clientX-s,p=l.clientY-i,d=40;(e==="left"?f<-d&&Math.abs(f)>Math.abs(p):e==="right"?f>d&&Math.abs(f)>Math.abs(p):e==="up"?p<-d&&Math.abs(p)>Math.abs(f):p>d&&Math.abs(p)>Math.abs(f))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:f,dy:p}}))};t.addEventListener("pointerdown",c),window.addEventListener("pointerup",u),o(()=>{t.removeEventListener("pointerdown",c),window.removeEventListener("pointerup",u)})};function Ri(e,t,n,r,o,s){var d;let i=(d=mu[t])!=null?d:t,a=Ai[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Ti(n,r,m,e)},o,s);return}let c=o.window?window:o.document||o.outside?document:e,u=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let h of pu)if(o[h]&&!m[`${h}Key`])return;let g=Object.keys(o).filter(h=>h in wi||/^[a-z0-9]$/.test(h));if(g.length&&!g.some(v=>{let P=wi[v];return P?P.includes(m.key):m.key.toLowerCase()===v}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Ti(n,r,m,e)}},l=o.debounce;l!==void 0&&(u=at(u,te(l===!0?250:l,250)));let f=o.throttle;f!==void 0&&(u=no(u,te(f===!0?250:f,250)));let p={capture:!!o.capture,once:!!o.once,passive:!!o.passive};c.addEventListener(i,u,p),s(()=>c.removeEventListener(i,u,p))}H("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:s})=>{t&&Ri(e,t,n,r,o,s)});var hu=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of hu)H(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:s})=>{Ri(t,e,n,r,o,s)});H("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:s})=>{let i=e,a=i.tagName,c=(i.getAttribute("type")||"text").toLowerCase(),u=a==="INPUT"&&c==="checkbox",l=a==="INPUT"&&c==="radio",f=a==="SELECT",p=f&&i.multiple,d=a==="INPUT"&&c==="file",m=c==="number"||c==="range",g=!!r.lazy,h=!!r.number||m,v=!!r.trim,P=r.debounce?te(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${w.prefix}debounce`)?te(e.getAttribute(`${w.prefix}debounce`),250):0,L=g||f||u||l||d?"change":"input",N=()=>{var Q,U;let b;if(u){let D=z(t,n,"v-model");if(Array.isArray(D)){let ne=i.value,O=[...D],oe=O.indexOf(ne);i.checked&&oe===-1?O.push(ne):!i.checked&&oe>-1&&O.splice(oe,1),b=O}else b=i.checked}else if(l){if(!i.checked)return;b=i.value}else if(p)b=Array.from(i.selectedOptions).map(D=>D.value);else if(d)b=r.single?(U=(Q=i.files)==null?void 0:Q[0])!=null?U:null:i.files;else if(b=i.value,v&&typeof b=="string"&&(b=b.trim()),h&&typeof b=="string"){let D=b===""?null:Number(b);b=D===null||Number.isNaN(D)?b:D}ru(t,n,b)};P>0&&(N=at(N,P)),i.addEventListener(L,N),s(()=>i.removeEventListener(L,N)),o(()=>{let b=z(t,n,"v-model");if(u){i.checked=Array.isArray(b)?b.includes(i.value):!!b;return}if(l){i.checked=String(b)===i.value;return}if(p){let U=Array.isArray(b)?b.map(String):[];for(let D of Array.from(i.options))D.selected=U.includes(D.value);return}if(d)return;let Q=b==null?"":String(b);i.value!==Q&&(i.value=Q),f&&i.value!==Q&&Ze(()=>{i.value!==Q&&(i.value=Q)})})},{priority:Z.MODEL});H("init",({el:e,expression:t,scope:n})=>{We(()=>{let r=n.child({$el:e}),o=z(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:Z.INIT});H("ref",({el:e,expression:t,scope:n,cleanup:r})=>{var i;let o=t.trim();if(!o)return;let s=(i=n.owner)!=null?i:n;s.refs[o]=e,r(()=>{s.refs[o]===e&&delete s.refs[o]})},{priority:Z.REF});H("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});H("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${w.prefix}model`),s,i=!0;r(()=>{let a=o?z(o,n,"v-watch"):z(t,n,"v-watch");if(i){i=!1,s=a;return}if(a===s)return;let c=s;if(s=a,o){let u=n.child({$value:a,$old:c,$el:e}),l=z(t,u,"v-watch");typeof l=="function"&&l.call(n.data,a,c)}})});H("cloak",({el:e})=>{e.removeAttribute(`${w.prefix}cloak`)});H("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=De(r))});H("teleport",({el:e,expression:t,cleanup:n})=>{var i;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){V(new Error(`v-teleport destination not found: ${r}`),"v-teleport");return}let s=document.createComment(" v-teleport ");(i=e.parentNode)==null||i.insertBefore(s,e),o.appendChild(e),n(()=>{var a;(a=s.parentNode)==null||a.insertBefore(e,s),s.remove()})},{priority:Z.DATA});for(let e of["transition","enter-class","enter-active-class","enter-to-class","leave-class","leave-active-class","leave-to-class","duration","key","slot","ignore","pre"])H(e,()=>{},{priority:Z.TRANSITION});H("data",()=>{},{priority:Z.DATA});H("component",()=>{},{priority:Z.COMPONENT});fe();Ee();var Pi=()=>w.prefix;function C(e,t){return Ts(e,`${Pi()}${t}`)}function yo(e,t){return xs(e,`${Pi()}${t}`)}function gu(e,t){var i,a,c;let n=C(e,"target"),r=C(e,"loading"),o={},s=C(e,"headers");if(s){let u=z(s,t,"v-headers");u&&typeof u=="object"&&(o=u)}return{target:n?document.querySelector(n):null,swap:C(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:C(e,"loading-class")||"v-loading",disableWhileLoading:yo(e,"disable-loading"),confirmMessage:C(e,"confirm"),toastSuccess:C(e,"toast-success"),toastError:C(e,"toast-error"),onSuccess:C(e,"on-success"),onError:C(e,"on-error"),onComplete:C(e,"on-complete"),cacheMs:te((i=C(e,"cache"))!=null?i:void 0,0),retry:Number((a=C(e,"retry"))!=null?a:0),timeout:te((c=C(e,"timeout"))!=null?c:void 0,ke.defaults.timeout),storeAs:C(e,"as"),jsonPath:C(e,"json-path"),templateSelector:C(e,"template"),offlineQueue:yo(e,"offline-queue"),headers:o,redirect:C(e,"redirect"),scrollTo:C(e,"scroll-to")}}function Ci(e,t,n,r){var s,i;let o=a=>{for(let c of Array.from(a))c.nodeType===1&&Y(c,r)};switch(n){case"none":return;case"delete":K(e),e.remove();return;case"textContent":e.textContent=t;return;case"outerHTML":case"replace":{let a=document.createElement("template");a.innerHTML=t;let c=Array.from(a.content.childNodes);K(e),e.replaceWith(a.content),o(c);return}case"beforebegin":case"afterbegin":case"beforeend":case"afterend":{let a=new Set(Array.from((i=(s=e.parentElement)==null?void 0:s.childNodes)!=null?i:[]));e.insertAdjacentHTML(n,t);let c=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(c)for(let u of Array.from(c.childNodes))u.nodeType===1&&!a.has(u)&&Y(u,r);return}case"append":e.insertAdjacentHTML("beforeend",t),o(e.childNodes);return;case"prepend":e.insertAdjacentHTML("afterbegin",t),o(e.childNodes);return;default:{for(let a of Array.from(e.children))K(a);e.innerHTML=t,o(e.childNodes)}}}function nr(e,t=0){if(e==null)return"";if(typeof e!="object")return rn(String(e));if(Array.isArray(e)){if(!e.length)return'<p class="v-json-empty">No results.</p>';if(e.every(o=>o&&typeof o=="object"&&!Array.isArray(o))&&t===0){let o=Array.from(e.reduce((a,c)=>{for(let u of Object.keys(c))a.add(u);return a},new Set)),s=o.map(a=>`<th>${rn(a)}</th>`).join(""),i=e.map(a=>`<tr>${o.map(c=>`<td>${nr(a[c],t+1)}</td>`).join("")}</tr>`).join("");return`<table class="v-json-table"><thead><tr>${s}</tr></thead><tbody>${i}</tbody></table>`}return`<ul class="v-json-list">${e.map(o=>`<li>${nr(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${rn(r)}</dt><dd>${nr(o,t+1)}</dd>`).join("")}</dl>`:""}function yu(e,t,n,r){let o=document.querySelector(e);if(!o){V(new Error(`Template not found: ${e}`),"v-template");return}for(let i of Array.from(r.children))K(i);r.innerHTML="";let s=Array.isArray(t)?t:[t];for(let[i,a]of s.entries()){let c=o.content.cloneNode(!0),u=Array.from(c.childNodes);r.appendChild(c);let l=n.reactiveChild({item:a,index:i,...a&&typeof a=="object"?a:{}});for(let f of u)f.nodeType===1&&Y(f,l)}}var ho=new WeakMap;async function pn(e){var f,p,d,m,g;let{el:t,scope:n,method:r}=e,o=gu(t,n),s=je.has("confirm");if(o.confirmMessage&&!s&&!await vu(o.confirmMessage))return;(f=ho.get(t))==null||f.abort();let i=new AbortController;ho.set(t,i);let a=(p=o.target)!=null?p:t,c=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,u=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let h=c!=null?c:t;"disabled"in h&&(h.disabled=!0)}},l=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let h=c!=null?c:t;"disabled"in h&&(h.disabled=!1)}};u(),_t(t,"voodoo:before-request",{method:r,url:e.url});try{let h=await ke.request({url:e.url,method:r,body:e.body,params:e.params,headers:o.headers,timeout:o.timeout,retry:o.retry,cache:o.cacheMs||void 0,signal:i.signal,offlineQueue:o.offlineQueue}),v=lo(h.data,o.jsonPath);o.storeAs?n.set(o.storeAs,v):o.templateSelector?yu(o.templateSelector,v,n,a):typeof v=="string"?Ci(a,v,o.swap,n):v!=null&&(bu(),Ci(a,nr(v),o.swap,n)),o.toastSuccess&&Ke.success(o.toastSuccess),o.onSuccess&&go(o.onSuccess,n,t,{data:v,response:h}),_t(t,"voodoo:success",{data:v,response:h}),o.scrollTo&&((d=document.querySelector(o.scrollTo))==null||d.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(h){if((h==null?void 0:h.name)==="AbortError")return;let v=h instanceof me?(m=fo(h))!=null?m:h.message:(g=h==null?void 0:h.message)!=null?g:"Unknown error";o.toastError?Ke.error(o.toastError):o.onError||Ke.error(v),o.onError&&go(o.onError,n,t,{error:h,message:v}),_t(t,"voodoo:error",{error:h,message:v}),V(h,`request ${r} ${e.url}`)}finally{l(),ho.delete(t),o.onComplete&&go(o.onComplete,n,t,{}),_t(t,"voodoo:complete",{})}}function _t(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function go(e,t,n,r){var i;let o=t.child({$el:n,...r}),s=z(e,o,"HTTP callback");typeof s=="function"&&s.call(t.data,(i=r.data)!=null?i:r.error)}async function vu(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var Mi=!1;function bu(){Mi||(Mi=!0,Promise.resolve().then(()=>(Dt(),ri)).then(({injectStyle:e})=>{e("json-render",`
130
130
  .v-json-table{width:100%;border-collapse:collapse;font:14px/1.5 var(--v-font-sans,system-ui,sans-serif)}
131
131
  .v-json-table th,.v-json-table td{padding:8px 12px;text-align:left;border-bottom:1px solid var(--v-border,#E6E0F0);vertical-align:top}
132
132
  .v-json-table th{font-weight:650;color:var(--v-text-muted,#6B6580);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
@@ -135,12 +135,12 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
135
135
  .v-json-object dt{font-weight:600;color:var(--v-text-muted,#6B6580)}
136
136
  .v-json-object dd{margin:0}
137
137
  .v-json-empty{color:var(--v-text-muted,#6B6580);font-style:italic}
138
- `)}))}function Lc(e){let t=e.tagName;if(t==="FORM")return"submit";if(t==="INPUT"||t==="SELECT"||t==="TEXTAREA"){let n=e.type;return n==="button"||n==="submit"?"click":"change"}return"click"}function Nc({el:e,cleanup:t,run:n}){var l,f;let r=E(e,"trigger")||Lc(e),[o,...s]=r.split(/[.\s]+/),i=_((l=E(e,"poll"))!=null?l:void 0,0);if(i>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},i);t(()=>clearInterval(p));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let p=new IntersectionObserver(d=>{for(let m of d)m.isIntersecting&&(n(),s.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=s.includes("once"),c=_((f=E(e,"debounce"))!=null?f:void 0,0),u=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(u=_e(u,c)),e.addEventListener(o,u,{once:a}),t(()=>e.removeEventListener(o,u))}var Oc=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of Oc)A(e,({el:n,scope:r,expression:o,cleanup:s})=>{Nc({el:n,scope:r,cleanup:s,run:a=>{let c=Vt(o,r);if(!c)return;let u=E(n,"body")||E(n,"data-body"),l=u?H(u,r.child({$event:a}),"v-body"):void 0,f=E(n,"params"),p=f?H(f,r,"v-params"):void 0;_t({el:n,scope:r,method:t,url:c,body:l,params:p,event:a})}})});function Vt(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=H(n,t,"URL");return typeof o=="string"?o:n}A("load",({el:e,scope:t,expression:n})=>{let r=Vt(n,t);r&&_t({el:e,scope:t,method:"GET",url:r})});A("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Vt(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){_t({el:e,scope:t,method:"GET",url:o});return}let s=new IntersectionObserver(i=>{for(let a of i)a.isIntersecting&&(s.unobserve(e),_t({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});s.observe(e),n(()=>s.disconnect())});A("search",({el:e,scope:t,expression:n,cleanup:r})=>{var f,p;let o=e,s=Vt(n,t),i=E(e,"param")||o.getAttribute("name")||"q",a=_((f=E(e,"debounce"))!=null?f:void 0,300),c=Number((p=E(e,"min-length"))!=null?p:0),u=_e(()=>{let d=o.value.trim();d.length<c||_t({el:e,scope:t,method:"GET",url:s,params:{[i]:d}})},a),l=()=>u();o.addEventListener("input",l),r(()=>{o.removeEventListener("input",l),u.cancel()})});A("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,u,l,f;let o=n.indexOf(":"),s=E(e,"as")||"resource",i=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(s=p,i=n.slice(o+1).trim())}let a=Cn(()=>Vt(i,t),{method:(E(e,"method")||"GET").toUpperCase(),params:()=>E(e,"params")?H(E(e,"params"),t,"v-params"):void 0,cache:_((c=E(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((u=E(e,"retry"))!=null?u:0),timeout:_((l=E(e,"timeout"))!=null?l:void 0,ie.defaults.timeout),jsonPath:E(e,"json-path"),poll:_((f=E(e,"poll"))!=null?f:void 0,0),manual:qr(e,"manual"),onSuccess:p=>Tt(e,"voodoo:success",{data:p}),onError:(p,d)=>Tt(e,"voodoo:error",{error:p,message:d})});t.set(s,a),r(()=>a.stop())},{priority:U.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])A(e,()=>{},{priority:U.TRANSITION});Go(rs);ns(Lt);us(Js);Cs();Ns();var Wt=new Map;function Xs(e,t){let n=Wt.get(e);return n||Wt.set(e,n=new Set),n.add(t),()=>n.delete(t)}function $c(e,t){let n=Xs(e,r=>{n(),t(r)});return n}function Hc(e,t){let n=Wt.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){N(o,`event "${e}"`)}}function Dc(e,t){var n;if(!t){Wt.delete(e);return}(n=Wt.get(e))==null||n.delete(t)}function Js(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;A(e,s=>{var l,f;let i,a=!1,c=p=>{var d,m;return{el:s.el,value:p,oldValue:i,arg:s.arg,modifiers:s.modifiers,expression:s.expression,scope:s.scope,instance:(m=(d=s.scope.owner)==null?void 0:d.component)!=null?m:null}},u=n.raw?s.expression:s.evaluate();(l=n.created)==null||l.call(n,s.el,c(u)),(f=n.beforeMount)==null||f.call(n,s.el,c(u)),s.effect(()=>{var m,g;let p=n.raw?s.expression:s.evaluate();if(!a){a=!0,i=p,(m=n.mounted)==null||m.call(n,s.el,c(p));return}if(p===i)return;let d=c(p);(g=n.updated)==null||g.call(n,s.el,d),i=p}),s.cleanup(()=>{var d,m;let p=c(i);(d=n.beforeUnmount)==null||d.call(n,s.el,p),(m=n.unmounted)==null||m.call(n,s.el,p)})},{priority:(r=n.priority)!=null?r:U.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Ic(e){return Object.defineProperties(pe.data,Object.getOwnPropertyDescriptors(e)),pe.data}var jc="0.12.5",Nn={...Mr,version:jc,config:w,reactive:F,ref:de,shallowRef:tr,computed:De,effect:J,watch:fe,watchEffect:rr,nextTick:He,toRaw:K,markRaw:At,unref:nr,stop:et,effectScope:Xn,EffectScope:re,flushSync:Qn,data:Ic,store:yn,stores:qe,removeStore:ps,storeNames:ms,scope:pe,component:ut,components:z,directive:Js,directives:we,magic:O,magics:Pt,createApp:ls,start:Jo,whenReady:Nt,whenElement:hn,walk:j,refresh:es,destroy:$,stopObserving:Zo,getScope:it,findScope:Ee,addCleanup:ne,parseAttribute:ot,parse:oe,tokenize:on,evaluate:x,evaluateIn:H,stringify:be,clearParseCache:To,globals:Y,http:ie,request:It,HttpError:Z,resource:Cn,toast:Me,storage:ae,session:xn,cookie:En,cache:Sn,url:kn,theme:vt,clipboard:Dr,screen:ce,network:Qe,enter:Ft,leave:Bt,fadeIn:Pn,fadeOut:Mn,slideUp:qt,slideDown:Ut,viewTransition:Is,injectStyle:ke,ensureTokens:We,on:Xs,once:$c,off:Dc,emit:Hc,use(e,t){an(Nn,e,t)},onError(e){Kn(e)},instances:pn,Scope:je,PRIORITY:U,VoodooSyntaxError:L,VoodooRuntimeError:B};fs(Nn);G();var Fc=new Set(["animation-iteration-count","aspect-ratio","border-image-slice","column-count","flex","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-row","line-height","opacity","order","orphans","scale","tab-size","widows","z-index","zoom"]);function ai(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function ue(e){return e.length<2?e:Array.from(new Set(e))}function Ke(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function _r(e){if(typeof document=="undefined")return[];let t=document.createElement("template");t.innerHTML=e.trim();let n=[];for(let r of Array.from(t.content.children))n.push(r);return n}function ci(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Bc(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof he)return e.toArray();if(typeof e=="string")return Ge(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Ge(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Ge(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(ci(o))return _r(o);let s=[];for(let i of Bc(t))try{for(let a of Array.from(i.querySelectorAll(o)))s.push(a)}catch(a){}return ue(s)}if(e instanceof he)return e.toArray();if(typeof e=="function")return[];let n=e;if(typeof n.nodeType=="number"){if(n.nodeType===1)return[n];if(n.nodeType===9){let o=n;return o.documentElement?[o.documentElement]:[]}return n.nodeType===11?Array.from(n.children):[]}let r=e;if(typeof r.length=="number"){let o=[];for(let s=0;s<r.length;s++){let i=r[s];i&&i.nodeType===1&&o.push(i)}return ue(o)}return[]}function Zs(e){if(e==null)return[];if(typeof e=="string"){let r=e;return ci(r.trim())?_r(r):[document.createTextNode(r)]}if(e instanceof he)return e.toArray();if(typeof e=="function")return[];let t=e;if(typeof t.nodeType=="number")return[t];let n=e;if(typeof n.length=="number"){let r=[];for(let o=0;o<n.length;o++)n[o]&&r.push(n[o]);return r}return[]}function On(e,t,n){let r=ai(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Fc.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Uc(e,t){for(let[n,r]of Object.entries(t))On(e,n,r)}function ei(e){if(e===void 0)return;if(e==="")return"";if(e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(/^-?\d+(\.\d+)?$/.test(e))return Number(e);let t=e.charCodeAt(0);if(t===123||t===91||t===34)try{return JSON.parse(e)}catch(n){return e}return e}function ti(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var ui=new WeakMap;function ni(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function ri(e){e.removeAttribute("hidden");let t=ui.get(e);t!==void 0&&t!=="none"?e.style.display=t:e.style.removeProperty("display"),e.isConnected&&getComputedStyle(e).display==="none"&&(e.style.display="block")}function oi(e){let t=e.style.display;t&&t!=="none"&&ui.set(e,t),e.style.display="none"}var si="input,select,textarea";function ii(e){return e.matches(si)?[e]:Array.from(e.querySelectorAll(si))}function qc(e){let t=e;if(!t.name||t.disabled)return!1;let n=(t.getAttribute("type")||"").toLowerCase();return!(n==="file"||n==="submit"||n==="reset"||n==="button"||(n==="checkbox"||n==="radio")&&!t.checked)}var $n=new WeakMap;function _c(e){let t=$n.get(e);return t||$n.set(e,t=[]),t}var he=class e{constructor(t=[]){M(this,"length");M(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(ue(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(ue(n))}parent(t){let n=[];for(let r of this.elements){let o=r.parentElement;o&&(!t||o.matches(t))&&n.push(o)}return new e(ue(n))}parents(t){let n=[];for(let r of this.elements){let o=r.parentElement;for(;o;)(!t||o.matches(t))&&n.push(o),o=o.parentElement}return new e(ue(n))}children(t){let n=[];for(let r of this.elements)for(let o of Array.from(r.children))(!t||o.matches(t))&&n.push(o);return new e(ue(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let s of Array.from(o.children))s!==r&&(!t||s.matches(t))&&n.push(s)}return new e(ue(n))}next(t){let n=[];for(let r of this.elements){let o=r.nextElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(ue(n))}prev(t){let n=[];for(let r of this.elements){let o=r.previousElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(ue(n))}first(){return this.eq(0)}last(){return this.eq(-1)}eq(t){let n=t<0?this.elements.length+t:t,r=this.elements[n];return new e(r?[r]:[])}filter(t){let n=this.elements.filter((r,o)=>typeof t=="function"?t(r,o):r.matches(t));return new e(n)}not(t){let n=this.elements.filter((r,o)=>typeof t=="function"?!t(r,o):!r.matches(t));return new e(n)}has(t){let n=this.elements.filter(r=>typeof t=="string"?r.querySelector(t)!==null:r.contains(t));return new e(n)}is(t){return this.elements.some((n,r)=>typeof t=="function"?t(n,r):n.matches(t))}map(t){return this.elements.map((n,r)=>t(n,r))}each(t){for(let n=0;n<this.elements.length;n++){let r=this.elements[n];if(t.call(r,r,n)===!1)break}return this}get(...t){if(!t.length)return this.toArray();let n=Number(t[0]);return this.elements[n<0?this.elements.length+n:n]}toArray(){return this.elements.slice()}add(t,n){return new e(ue([...this.elements,...Ge(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,s;if(!t.length)return(s=(o=this.elements[0])==null?void 0:o.textContent)!=null?s:"";let n=t[0],r=n==null?"":String(n);for(let i of this.elements){for(let a of Array.from(i.childNodes))$(a);i.textContent=r}return this}html(...t){var o,s;if(!t.length)return(s=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?s:"";let n=t[0],r=n==null?"":String(n);for(let i of this.elements){for(let a of Array.from(i.childNodes))$(a);i.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let s=o;return o.tagName==="SELECT"&&s.multiple?Array.from(s.selectedOptions).map(i=>i.value):o.type==="checkbox"?o.checked?o.value||"on":"":(r=o.value)!=null?r:""}let n=t[0];for(let o of this.elements){let s=o,i=o;if(s.tagName==="SELECT"&&i.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let c of Array.from(i.options))c.selected=a.includes(c.value);continue}if(s.type==="checkbox"||s.type==="radio"){s.checked=Array.isArray(n)?n.map(String).includes(s.value):n===!0||String(n)===s.value;continue}s.value=n==null?"":String(n)}return this}attr(...t){var s,i;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[c,u]of Object.entries(n))u===null||u===!1?a.removeAttribute(c):a.setAttribute(c,u===!0?"":String(u));return this}let r=String(n);if(t.length<2)return(i=(s=this.elements[0])==null?void 0:s.getAttribute(r))!=null?i:void 0;let o=t[1];for(let a of this.elements)o===null||o===!1?a.removeAttribute(r):a.setAttribute(r,o===!0?"":String(o));return this}removeAttr(t){let n=Ke(t);for(let r of this.elements)for(let o of n)r.removeAttribute(o);return this}prop(...t){let n=String(t[0]);if(t.length<2){let r=this.elements[0];return r?r[n]:void 0}for(let r of this.elements)r[n]=t[1];return this}data(...t){let n=t[0];if(!t.length){let s=this.elements[0];if(!s)return{};let i={};for(let[a,c]of Object.entries(s.dataset))i[a]=ei(c);return i}if(n!==null&&typeof n=="object"){for(let s of this.elements)for(let[i,a]of Object.entries(n))s.dataset[ti(i)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=ti(String(n));if(t.length<2){let s=this.elements[0];return s?ei(s.dataset[r]):void 0}let o=t[1];for(let s of this.elements)s.dataset[r]=typeof o=="string"?o:JSON.stringify(o!=null?o:null);return this}css(...t){let n=t[0];if(n!==null&&typeof n=="object"){for(let o of this.elements)Uc(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let s=ai(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(s):"")||o.style.getPropertyValue(s)).trim()}for(let o of this.elements)On(o,r,t[1]);return this}width(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().width:0}for(let n of this.elements)On(n,"width",t[0]);return this}height(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().height:0}for(let n of this.elements)On(n,"height",t[0]);return this}offset(){let t=this.elements[0];if(!t)return{top:0,left:0};let n=t.getBoundingClientRect();return{top:n.top+window.scrollY,left:n.left+window.scrollX}}position(){let t=this.elements[0];return t?{top:t.offsetTop,left:t.offsetLeft}:{top:0,left:0}}scrollTop(...t){var r,o;if(!t.length)return(o=(r=this.elements[0])==null?void 0:r.scrollTop)!=null?o:0;let n=Number(t[0])||0;for(let s of this.elements)s.scrollTop=n;return this}addClass(t){let n=Ke(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Ke(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Ke(t);for(let o of this.elements)for(let s of r)n===void 0?o.classList.toggle(s):o.classList.toggle(s,n);return this}hasClass(t){let n=Ke(t);return n.length?this.elements.some(r=>n.every(o=>r.classList.contains(o))):!1}insert(t,n){let r=this.elements.length;for(let o=0;o<r;o++){let s=this.elements[o];for(let i of Zs(t))n(s,o===r-1?i:i.cloneNode(!0))}return this}append(t){return this.insert(t,(n,r)=>n.appendChild(r))}prepend(t){return this.insert(t,(n,r)=>n.insertBefore(r,n.firstChild))}before(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n)})}after(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n.nextSibling)})}appendTo(t){let n=Ge(t);for(let r=0;r<n.length;r++)for(let o of this.elements)n[r].appendChild(r===n.length-1?o:o.cloneNode(!0));return this}prependTo(t){let n=Ge(t);for(let r=0;r<n.length;r++){let o=n[r],s=this.elements.map(i=>r===n.length-1?i:i.cloneNode(!0));for(let i=s.length-1;i>=0;i--)o.insertBefore(s[i],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of Zs(t))r.insertBefore(o,n);$(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Ge(t)[0];if(!o)continue;let s=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(s,r);let i=s;for(;i.firstElementChild;)i=i.firstElementChild;i.appendChild(r)}return this}unwrap(){let t=new Set;for(let n of this.elements){let r=n.parentElement;r&&r!==document.body&&t.add(r)}for(let n of t){let r=n.parentNode;if(r){for(;n.firstChild;)r.insertBefore(n.firstChild,n);$(n),n.remove()}}return this}remove(){for(let t of this.elements)$(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))$(n);t.replaceChildren()}return this}clone(t=!0){return new e(this.elements.map(n=>n.cloneNode(t)))}on(t,...n){var a;let r=typeof n[0]=="string",o=r?n[0]:null,s=r?n[1]:n[0],i=(a=r?n[2]:n[1])!=null?a:{};if(typeof s!="function")return this;for(let c of this.elements)for(let u of Ke(t)){let l=f=>{if(!o){s.call(c,f);return}let p=f.target,d=p==null?void 0:p.closest(o);!d||!c.contains(d)||s.call(d,f)};c.addEventListener(u,l,i),_c(c).push({type:u,selector:o,handler:s,wrapped:l,options:i})}return this}off(t,n,r){let o=typeof n=="string"?n:null,s=typeof n=="function"?n:r!=null?r:null,i=t?Ke(t):null;for(let a of this.elements){let c=$n.get(a);if(!c)continue;let u=[];for(let l of c){let f=!i||i.includes(l.type),p=o===null||l.selector===o,d=s===null||l.handler===s;f&&p&&d?a.removeEventListener(l.type,l.wrapped,l.options):u.push(l)}$n.set(a,u)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,s=r?n[1]:n[0];if(typeof s!="function")return this;let i=this,a=function(c){return o?i.off(t,o,a):i.off(t,a),s.call(this,c)};return o?this.on(t,o,a):this.on(t,a)}trigger(t,n){for(let r of this.elements){if(n===void 0&&typeof r[t]=="function"){r[t]();continue}let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}emit(t,n){for(let r of this.elements){let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}show(){for(let t of this.elements)ri(t);return this}hide(){for(let t of this.elements)oi(t);return this}toggle(t){for(let n of this.elements)(t===void 0?ni(n):t)?ri(n):oi(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),Pn(n,t);return this}fadeOut(t=220){for(let n of this.elements)Mn(n,t);return this}slideUp(t=240){for(let n of this.elements)qt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),Ut(n,t);return this}slideToggle(t=240){for(let n of this.elements)ni(n)?(n.removeAttribute("hidden"),Ut(n,t)):qt(n,t);return this}animate(t,n=300){for(let r of this.elements)typeof r.animate=="function"&&r.animate(t,n);return this}scrollIntoView(t={behavior:"smooth",block:"start"}){var n;return(n=this.elements[0])==null||n.scrollIntoView(t),this}serialize(){let t=this.elements[0];if(!t)return"";let n=new URLSearchParams;for(let r of ii(t)){if(!qc(r))continue;let o=r,s=r;if(o.tagName==="SELECT"&&s.multiple){for(let i of Array.from(s.selectedOptions))n.append(o.name,i.value);continue}n.append(o.name,o.value)}return n.toString()}serializeObject(){var r,o,s,i;let t=this.elements[0],n={};if(!t)return n;for(let a of ii(t)){let c=a;if(!c.name||c.disabled)continue;let u=(c.getAttribute("type")||"").toLowerCase();if(u==="submit"||u==="reset"||u==="button")continue;let l=c.name.endsWith("[]"),f=l?c.name.slice(0,-2):c.name,p=a,d;if(u==="checkbox"){if(!c.checked&&!l){n[f]=(r=n[f])!=null?r:!1;continue}if(!c.checked)continue;d=c.value==="on"?!0:c.value}else if(u==="radio"){if(!c.checked)continue;d=c.value}else u==="file"?d=c.multiple?Array.from((o=c.files)!=null?o:[]):(i=(s=c.files)==null?void 0:s[0])!=null?i:null:c.tagName==="SELECT"&&p.multiple?d=Array.from(p.selectedOptions).map(m=>m.value):u==="number"||u==="range"?d=c.value===""?null:Number(c.value):d=c.value;if(l){let m=n[f];Array.isArray(m)?m.push(d):n[f]=[d];continue}if(Object.prototype.hasOwnProperty.call(n,f)){let m=n[f];Array.isArray(m)?m.push(d):m===void 0||m===!1?n[f]=d:n[f]=[m,d];continue}n[f]=d}return n}focus(t){var n;return(n=this.elements[0])==null||n.focus(t),this}blur(){for(let t of this.elements)t.blur();return this}select(){for(let t of this.elements){let n=t;typeof n.select=="function"&&n.select()}return this}walk(t=!1){for(let n of this.elements)t&&$(n),j(n,Ee(n.parentNode));return this}destroy(){for(let t of this.elements)$(t);return this}};function Vr(e,t){if(typeof e=="function"){Wr(e);let n=typeof document!="undefined"?document.documentElement:null;return new he(n?[n]:[])}return new he(Ge(e,t))}function Wr(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{cs(()=>{try{e==null||e()}catch(n){N(n,"V.ready")}t()})})}function li(e){return new he(_r(e))}var di=((e,t)=>Vr(e,t));Object.assign(di,Nn,{query:Vr,ready:Wr,fromHtml:li,Collection:he,magic:O});var zr=di;se();ht();se();var Vc=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,Wc=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,zc=/^rgba?\(([^)]+)\)$/i,Qc=/^hsla?\(([^)]+)\)$/i;function fi(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function Kc(e,t,n){let r=(e%360+360)%360,o=ee(t/100,0,1),s=ee(n/100,0,1),i=(1-Math.abs(2*s-1))*o,a=i*(1-Math.abs(r/60%2-1)),c=s-i/2,u=Math.floor(r/60)%6,l=[[i,a,0],[a,i,0],[0,i,a],[0,a,i],[a,0,i],[i,0,a]],[f,p,d]=l[u];return{r:Math.round((f+c)*255),g:Math.round((p+c)*255),b:Math.round((d+c)*255)}}function ge(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=Vc.exec(t);if(n)return{r:parseInt(n[1]+n[1],16),g:parseInt(n[2]+n[2],16),b:parseInt(n[3]+n[3],16)};let r=Wc.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=zc.exec(t);if(o){let[i,a,c]=fi(o[1]);return i===void 0||a===void 0||c===void 0?null:{r:ee(i,0,255),g:ee(a,0,255),b:ee(c,0,255)}}let s=Qc.exec(t);if(s){let[i,a,c]=fi(s[1]);return i===void 0||a===void 0||c===void 0?null:Kc(i,a,c)}return null}function ee(e,t,n){return e<t?t:e>n?n:e}function kt(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Qr(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function Gc(e){let t=kt(e.r),n=kt(e.g),r=kt(e.b),o=.4122214708*t+.5363325363*n+.0514459929*r,s=.2119034982*t+.6806995451*n+.1073969566*r,i=.0883024619*t+.2817188376*n+.6299787005*r,a=Math.cbrt(o),c=Math.cbrt(s),u=Math.cbrt(i);return{l:.2104542553*a+.793617785*c-.0040720468*u,a:1.9779984951*a-2.428592205*c+.4505937099*u,b:.0259040371*a+.7827717662*c-.808675766*u}}function Yc(e){let t=e.l+.3963377774*e.a+.2158037573*e.b,n=e.l-.1055613458*e.a-.0638541728*e.b,r=e.l-.0894841775*e.a-1.291485548*e.b,o=t*t*t,s=n*n*n,i=r*r*r;return{r:Qr(4.0767416621*o-3.3077115913*s+.2309699292*i),g:Qr(-1.2684380046*o+2.6097574011*s-.3413193965*i),b:Qr(-.0041960863*o-.7034186147*s+1.707614701*i)}}function Dn(e){let t=Gc(e),n=Math.sqrt(t.a*t.a+t.b*t.b),r=Math.atan2(t.b,t.a)*180/Math.PI;return r<0&&(r+=360),{l:t.l,c:n,h:n<1e-5?0:r}}function pi(e){let t=e.h*Math.PI/180;return Yc({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function Et(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=pi({l:ee(e.l,0,1),c:t,h:e.h});if(o.r>=-.001&&o.r<=1.001&&o.g>=-.001&&o.g<=1.001&&o.b>=-.001&&o.b<=1.001)return{r:Math.round(ee(o.r,0,1)*255),g:Math.round(ee(o.g,0,1)*255),b:Math.round(ee(o.b,0,1)*255)};t*=.92}let n=pi({l:ee(e.l,0,1),c:0,h:e.h});return{r:Math.round(ee(n.r,0,1)*255),g:Math.round(ee(n.g,0,1)*255),b:Math.round(ee(n.b,0,1)*255)}}function Kr(e){return ee(Math.round(e),0,255).toString(16).padStart(2,"0")}function Ye(e){return`#${Kr(e.r)}${Kr(e.g)}${Kr(e.b)}`}function xt(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function vi(e){return Ye(Et(e))}function Yr(e){return .2126*kt(e.r)+.7152*kt(e.g)+.0722*kt(e.b)}function Xr(e,t){let n=typeof e=="string"?ge(e):e,r=typeof t=="string"?ge(t):t;if(!n||!r)return 1;let o=Yr(n),s=Yr(r),i=Math.max(o,s),a=Math.min(o,s);return(i+.05)/(a+.05)}var bi={r:255,g:255,b:255},In={r:0,g:0,b:0};function zt(e){let t=typeof e=="string"?ge(e):e;return t?Xr(t,bi)>=Xr(t,In)?"#ffffff":"#000000":"#ffffff"}var Jr=[50,100,200,300,400,500,600,700,800,900],wi=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],Xc=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],Ti=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],Jc=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function xi(e,t=!1){var a;let n=typeof e=="string"?(a=ge(e))!=null?a:In:e,r=Dn(n),o=t?Ti:wi,s=t?Jc:Xc,i={};return Jr.forEach((c,u)=>{i[String(c)]=vi({l:o[u],c:r.c*s[u],h:r.h})}),i}var jn={violeta:{primary:"#6D3BF5",accent:"#FF3D8B",success:"#16A34A",warning:"#D97706",danger:"#E11D48",info:"#7C6BFF"},oceano:{primary:"#0E7BC4",accent:"#0FB5C9",success:"#0F9D6E",warning:"#D08700",danger:"#DC2F3E",info:"#3B82F6"},floresta:{primary:"#1F8A4C",accent:"#7FA80E",success:"#18A05A",warning:"#C97A0A",danger:"#C93A2E",info:"#2C8FA8"},poente:{primary:"#E4632A",accent:"#D62F63",success:"#3E9B52",warning:"#D99000",danger:"#D32F2F",info:"#B45FC0"},grafite:{primary:"#4C5A70",accent:"#2E7FD1",success:"#2F8F60",warning:"#B57A12",danger:"#C2453F",info:"#5B7A99"}},Ei=["primary","accent","success","warning","danger","info"],Zr="voodoo:palette",mi="voodoo-palette",Zc="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",eu="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function hi(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var tu=/^([\d.]+)(px|rem|em)$/;function nu(e){let t=(e||"12px").trim(),n=tu.exec(t);if(!n)return{"--v-radius":t,"--v-radius-sm":`calc(${t} * 0.6)`,"--v-radius-lg":`calc(${t} * 1.5)`,"--v-radius-xl":`calc(${t} * 2)`,"--v-radius-full":"999px"};let r=parseFloat(n[1]),o=n[2],s=i=>`${Math.round(i*1e3)/1e3}${o}`;return{"--v-radius":s(r),"--v-radius-sm":s(Math.max(r*.55,0)),"--v-radius-lg":s(r*1.5),"--v-radius-xl":s(r*2),"--v-radius-full":"999px"}}function gi(e,t){var u,l,f,p;let n={},r={},o={};for(let d of Ei){let m=(u=ge(e[d]))!=null?u:In,g=Dn(m),h=xi(m,t);r[d]=h;for(let P of Jr)n[`--v-${d}-${P}`]=h[String(P)];let y=t?{l:Math.max(g.l,.62),c:g.c*.95,h:g.h}:g,S=t?{l:Math.min(y.l+.07,.94),c:y.c*.95,h:y.h}:{l:Math.max(y.l-.055,.12),c:y.c,h:y.h},V=t?{l:Math.min(y.l+.13,.97),c:y.c*.88,h:y.h}:{l:Math.max(y.l-.105,.1),c:y.c,h:y.h},k=Et(y),v=Et(S),I=Et(V);n[`--v-${d}`]=Ye(t?k:m),n[`--v-${d}-hover`]=Ye(v),n[`--v-${d}-active`]=Ye(I),n[`--v-${d}-contrast`]=zt(t?k:m),n[`--v-${d}-contrast-hover`]=zt(v),n[`--v-${d}-contrast-active`]=zt(I);let D=h[50],C=h[100],W=t?h[800]:h[700];n[`--v-${d}-soft`]=D,n[`--v-${d}-soft-hover`]=C,n[`--v-${d}-soft-text`]=W,n[`--v-${d}-ring`]=xt(k,t?.45:.32),n[`--v-${d}-border`]=t?h[300]:h[200],o[d]=n[`--v-${d}-contrast`]}let s=(f=ge((l=e.neutral)!=null?l:e.primary))!=null?f:In,i=Dn(s).h,a=(d,m)=>vi({l:d,c:m,h:i}),c={};if(Jr.forEach((d,m)=>{let g=t?Ti:wi;c[String(d)]=a(g[m],.012),n[`--v-neutral-${d}`]=c[String(d)]}),r.neutral=c,t)n["--v-surface"]=a(.248,.021),n["--v-surface-2"]=a(.196,.021),n["--v-surface-3"]=a(.305,.024),n["--v-surface-inset"]=a(.17,.02),n["--v-text"]=a(.965,.008),n["--v-text-muted"]=a(.748,.017),n["--v-text-soft"]=a(.63,.017),n["--v-border"]=a(.355,.023),n["--v-border-strong"]=a(.46,.026),n["--v-overlay"]="rgba(0, 0, 0, 0.62)",n["--v-shadow-sm"]="0 1px 2px rgba(0, 0, 0, 0.5)",n["--v-shadow"]="0 10px 30px rgba(0, 0, 0, 0.5)",n["--v-shadow-lg"]="0 24px 60px rgba(0, 0, 0, 0.62)";else{let d=Et({l:.24,c:.028,h:i});n["--v-surface"]=a(1,0),n["--v-surface-2"]=a(.981,.006),n["--v-surface-3"]=a(.955,.009),n["--v-surface-inset"]=a(.968,.008),n["--v-text"]=Ye(d),n["--v-text-muted"]=a(.53,.023),n["--v-text-soft"]=a(.655,.018),n["--v-border"]=a(.906,.012),n["--v-border-strong"]=a(.828,.016),n["--v-overlay"]=xt(d,.45),n["--v-shadow-sm"]=`0 1px 2px ${xt(d,.08)}`,n["--v-shadow"]=`0 10px 30px ${xt(d,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${xt(d,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=zt((p=ge(n["--v-surface"]))!=null?p:bi),{vars:n,scales:r,contrast:o}}function Gr(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
138
+ `)}))}function wu(e){let t=e.tagName;if(t==="FORM")return"submit";if(t==="INPUT"||t==="SELECT"||t==="TEXTAREA"){let n=e.type;return n==="button"||n==="submit"?"click":"change"}return"click"}function Tu({el:e,cleanup:t,run:n}){var l,f;let r=C(e,"trigger")||wu(e),[o,...s]=r.split(/[.\s]+/),i=te((l=C(e,"poll"))!=null?l:void 0,0);if(i>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},i);t(()=>clearInterval(p));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let p=new IntersectionObserver(d=>{for(let m of d)m.isIntersecting&&(n(),s.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=s.includes("once"),c=te((f=C(e,"debounce"))!=null?f:void 0,0),u=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(u=at(u,c)),e.addEventListener(o,u,{once:a}),t(()=>e.removeEventListener(o,u))}var xu=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of xu)H(e,({el:n,scope:r,expression:o,cleanup:s})=>{Tu({el:n,scope:r,cleanup:s,run:a=>{let c=mn(o,r);if(!c)return;let u=C(n,"body")||C(n,"data-body"),l=u?z(u,r.child({$event:a}),"v-body"):void 0,f=C(n,"params"),p=f?z(f,r,"v-params"):void 0;pn({el:n,scope:r,method:t,url:c,body:l,params:p,event:a})}})});function mn(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=z(n,t,"URL");return typeof o=="string"?o:n}H("load",({el:e,scope:t,expression:n})=>{let r=mn(n,t);r&&pn({el:e,scope:t,method:"GET",url:r})});H("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=mn(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){pn({el:e,scope:t,method:"GET",url:o});return}let s=new IntersectionObserver(i=>{for(let a of i)a.isIntersecting&&(s.unobserve(e),pn({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});s.observe(e),n(()=>s.disconnect())});H("search",({el:e,scope:t,expression:n,cleanup:r})=>{var f,p;let o=e,s=mn(n,t),i=C(e,"param")||o.getAttribute("name")||"q",a=te((f=C(e,"debounce"))!=null?f:void 0,300),c=Number((p=C(e,"min-length"))!=null?p:0),u=at(()=>{let d=o.value.trim();d.length<c||pn({el:e,scope:t,method:"GET",url:s,params:{[i]:d}})},a),l=()=>u();o.addEventListener("input",l),r(()=>{o.removeEventListener("input",l),u.cancel()})});H("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,u,l,f;let o=n.indexOf(":"),s=C(e,"as")||"resource",i=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(s=p,i=n.slice(o+1).trim())}let a=Zn(()=>mn(i,t),{method:(C(e,"method")||"GET").toUpperCase(),params:()=>C(e,"params")?z(C(e,"params"),t,"v-params"):void 0,cache:te((c=C(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((u=C(e,"retry"))!=null?u:0),timeout:te((l=C(e,"timeout"))!=null?l:void 0,ke.defaults.timeout),jsonPath:C(e,"json-path"),poll:te((f=C(e,"poll"))!=null?f:void 0,0),manual:yo(e,"manual"),onSuccess:p=>_t(e,"voodoo:success",{data:p}),onError:(p,d)=>_t(e,"voodoo:error",{error:p,message:d})});t.set(s,a),r(()=>a.stop())},{priority:Z.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])H(e,()=>{},{priority:Z.TRANSITION});Rs(Hs);$s(Ct);Us(Ni);ii();li();var hn=new Map;function Li(e,t){let n=hn.get(e);return n||hn.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Eu(e,t){let n=Li(e,r=>{n(),t(r)});return n}function ku(e,t){let n=hn.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){V(o,`event "${e}"`)}}function Su(e,t){var n;if(!t){hn.delete(e);return}(n=hn.get(e))==null||n.delete(t)}function Ni(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;H(e,s=>{var l,f;let i,a=!1,c=p=>{var d,m;return{el:s.el,value:p,oldValue:i,arg:s.arg,modifiers:s.modifiers,expression:s.expression,scope:s.scope,instance:(m=(d=s.scope.owner)==null?void 0:d.component)!=null?m:null}},u=n.raw?s.expression:s.evaluate();(l=n.created)==null||l.call(n,s.el,c(u)),(f=n.beforeMount)==null||f.call(n,s.el,c(u)),s.effect(()=>{var m,g;let p=n.raw?s.expression:s.evaluate();if(!a){a=!0,i=p,(m=n.mounted)==null||m.call(n,s.el,c(p));return}if(p===i)return;let d=c(p);(g=n.updated)==null||g.call(n,s.el,d),i=p}),s.cleanup(()=>{var d,m;let p=c(i);(d=n.beforeUnmount)==null||d.call(n,s.el,p),(m=n.unmounted)==null||m.call(n,s.el,p)})},{priority:(r=n.priority)!=null?r:Z.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Au(e){return Object.defineProperties(Le.data,Object.getOwnPropertyDescriptors(e)),Le.data}var Ru="0.13.0",rr={...ro,version:Ru,config:w,reactive:G,ref:Me,shallowRef:Cr,computed:et,effect:pe,watch:Pe,watchEffect:Pr,nextTick:Ze,toRaw:J,markRaw:Xt,unref:Mr,stop:wt,effectScope:Tr,EffectScope:Te,flushSync:yr,data:Au,store:qn,stores:it,removeStore:Ws,storeNames:zs,scope:Le,component:Lt,components:ae,directive:Ni,directives:je,magic:W,magics:Zt,createApp:qs,start:Ps,whenReady:tn,whenElement:Bn,walk:Y,refresh:Ns,destroy:K,stopObserving:Ls,getScope:Rt,findScope:Ue,addCleanup:be,parseAttribute:St,parse:xe,tokenize:Pn,evaluate:x,evaluateIn:z,stringify:De,clearParseCache:Zo,globals:de,http:ke,request:an,HttpError:me,resource:Zn,toast:Ke,storage:Se,session:Qn,cookie:Kn,cache:Yn,url:Gn,theme:Bt,clipboard:uo,screen:Ae,network:ft,enter:un,leave:ln,fadeIn:er,fadeOut:tr,slideUp:dn,slideDown:fn,viewTransition:hi,injectStyle:qe,ensureTokens:ut,on:Li,once:Eu,off:Su,emit:ku,use(e,t){Nn(rr,e,t)},onError(e){vr(e)},instances:jn,Scope:nt,PRIORITY:Z,VoodooSyntaxError:B,VoodooRuntimeError:X};Vs(rr);fe();var Cu=new Set(["animation-iteration-count","aspect-ratio","border-image-slice","column-count","flex","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-row","line-height","opacity","order","orphans","scale","tab-size","widows","z-index","zoom"]);function Ui(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Re(e){return e.length<2?e:Array.from(new Set(e))}function dt(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function vo(e){if(typeof document=="undefined")return[];let t=document.createElement("template");t.innerHTML=e.trim();let n=[];for(let r of Array.from(t.content.children))n.push(r);return n}function qi(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Mu(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof Oe)return e.toArray();if(typeof e=="string")return pt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=pt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function pt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(qi(o))return vo(o);let s=[];for(let i of Mu(t))try{for(let a of Array.from(i.querySelectorAll(o)))s.push(a)}catch(a){}return Re(s)}if(e instanceof Oe)return e.toArray();if(typeof e=="function")return[];let n=e;if(typeof n.nodeType=="number"){if(n.nodeType===1)return[n];if(n.nodeType===9){let o=n;return o.documentElement?[o.documentElement]:[]}return n.nodeType===11?Array.from(n.children):[]}let r=e;if(typeof r.length=="number"){let o=[];for(let s=0;s<r.length;s++){let i=r[s];i&&i.nodeType===1&&o.push(i)}return Re(o)}return[]}function Oi(e){if(e==null)return[];if(typeof e=="string"){let r=e;return qi(r.trim())?vo(r):[document.createTextNode(r)]}if(e instanceof Oe)return e.toArray();if(typeof e=="function")return[];let t=e;if(typeof t.nodeType=="number")return[t];let n=e;if(typeof n.length=="number"){let r=[];for(let o=0;o<n.length;o++)n[o]&&r.push(n[o]);return r}return[]}function or(e,t,n){let r=Ui(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Cu.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Pu(e,t){for(let[n,r]of Object.entries(t))or(e,n,r)}function $i(e){if(e===void 0)return;if(e==="")return"";if(e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(/^-?\d+(\.\d+)?$/.test(e))return Number(e);let t=e.charCodeAt(0);if(t===123||t===91||t===34)try{return JSON.parse(e)}catch(n){return e}return e}function Hi(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var _i=new WeakMap;function Ii(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Di(e){e.removeAttribute("hidden");let t=_i.get(e);t!==void 0&&t!=="none"?e.style.display=t:e.style.removeProperty("display"),e.isConnected&&getComputedStyle(e).display==="none"&&(e.style.display="block")}function ji(e){let t=e.style.display;t&&t!=="none"&&_i.set(e,t),e.style.display="none"}var Fi="input,select,textarea";function Bi(e){return e.matches(Fi)?[e]:Array.from(e.querySelectorAll(Fi))}function Lu(e){let t=e;if(!t.name||t.disabled)return!1;let n=(t.getAttribute("type")||"").toLowerCase();return!(n==="file"||n==="submit"||n==="reset"||n==="button"||(n==="checkbox"||n==="radio")&&!t.checked)}var sr=new WeakMap;function Nu(e){let t=sr.get(e);return t||sr.set(e,t=[]),t}var Oe=class e{constructor(t=[]){F(this,"length");F(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(Re(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(Re(n))}parent(t){let n=[];for(let r of this.elements){let o=r.parentElement;o&&(!t||o.matches(t))&&n.push(o)}return new e(Re(n))}parents(t){let n=[];for(let r of this.elements){let o=r.parentElement;for(;o;)(!t||o.matches(t))&&n.push(o),o=o.parentElement}return new e(Re(n))}children(t){let n=[];for(let r of this.elements)for(let o of Array.from(r.children))(!t||o.matches(t))&&n.push(o);return new e(Re(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let s of Array.from(o.children))s!==r&&(!t||s.matches(t))&&n.push(s)}return new e(Re(n))}next(t){let n=[];for(let r of this.elements){let o=r.nextElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(Re(n))}prev(t){let n=[];for(let r of this.elements){let o=r.previousElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(Re(n))}first(){return this.eq(0)}last(){return this.eq(-1)}eq(t){let n=t<0?this.elements.length+t:t,r=this.elements[n];return new e(r?[r]:[])}filter(t){let n=this.elements.filter((r,o)=>typeof t=="function"?t(r,o):r.matches(t));return new e(n)}not(t){let n=this.elements.filter((r,o)=>typeof t=="function"?!t(r,o):!r.matches(t));return new e(n)}has(t){let n=this.elements.filter(r=>typeof t=="string"?r.querySelector(t)!==null:r.contains(t));return new e(n)}is(t){return this.elements.some((n,r)=>typeof t=="function"?t(n,r):n.matches(t))}map(t){return this.elements.map((n,r)=>t(n,r))}each(t){for(let n=0;n<this.elements.length;n++){let r=this.elements[n];if(t.call(r,r,n)===!1)break}return this}get(...t){if(!t.length)return this.toArray();let n=Number(t[0]);return this.elements[n<0?this.elements.length+n:n]}toArray(){return this.elements.slice()}add(t,n){return new e(Re([...this.elements,...pt(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,s;if(!t.length)return(s=(o=this.elements[0])==null?void 0:o.textContent)!=null?s:"";let n=t[0],r=n==null?"":String(n);for(let i of this.elements){for(let a of Array.from(i.childNodes))K(a);i.textContent=r}return this}html(...t){var o,s;if(!t.length)return(s=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?s:"";let n=t[0],r=n==null?"":String(n);for(let i of this.elements){for(let a of Array.from(i.childNodes))K(a);i.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let s=o;return o.tagName==="SELECT"&&s.multiple?Array.from(s.selectedOptions).map(i=>i.value):o.type==="checkbox"?o.checked?o.value||"on":"":(r=o.value)!=null?r:""}let n=t[0];for(let o of this.elements){let s=o,i=o;if(s.tagName==="SELECT"&&i.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let c of Array.from(i.options))c.selected=a.includes(c.value);continue}if(s.type==="checkbox"||s.type==="radio"){s.checked=Array.isArray(n)?n.map(String).includes(s.value):n===!0||String(n)===s.value;continue}s.value=n==null?"":String(n)}return this}attr(...t){var s,i;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[c,u]of Object.entries(n))u===null||u===!1?a.removeAttribute(c):a.setAttribute(c,u===!0?"":String(u));return this}let r=String(n);if(t.length<2)return(i=(s=this.elements[0])==null?void 0:s.getAttribute(r))!=null?i:void 0;let o=t[1];for(let a of this.elements)o===null||o===!1?a.removeAttribute(r):a.setAttribute(r,o===!0?"":String(o));return this}removeAttr(t){let n=dt(t);for(let r of this.elements)for(let o of n)r.removeAttribute(o);return this}prop(...t){let n=String(t[0]);if(t.length<2){let r=this.elements[0];return r?r[n]:void 0}for(let r of this.elements)r[n]=t[1];return this}data(...t){let n=t[0];if(!t.length){let s=this.elements[0];if(!s)return{};let i={};for(let[a,c]of Object.entries(s.dataset))i[a]=$i(c);return i}if(n!==null&&typeof n=="object"){for(let s of this.elements)for(let[i,a]of Object.entries(n))s.dataset[Hi(i)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=Hi(String(n));if(t.length<2){let s=this.elements[0];return s?$i(s.dataset[r]):void 0}let o=t[1];for(let s of this.elements)s.dataset[r]=typeof o=="string"?o:JSON.stringify(o!=null?o:null);return this}css(...t){let n=t[0];if(n!==null&&typeof n=="object"){for(let o of this.elements)Pu(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let s=Ui(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(s):"")||o.style.getPropertyValue(s)).trim()}for(let o of this.elements)or(o,r,t[1]);return this}width(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().width:0}for(let n of this.elements)or(n,"width",t[0]);return this}height(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().height:0}for(let n of this.elements)or(n,"height",t[0]);return this}offset(){let t=this.elements[0];if(!t)return{top:0,left:0};let n=t.getBoundingClientRect();return{top:n.top+window.scrollY,left:n.left+window.scrollX}}position(){let t=this.elements[0];return t?{top:t.offsetTop,left:t.offsetLeft}:{top:0,left:0}}scrollTop(...t){var r,o;if(!t.length)return(o=(r=this.elements[0])==null?void 0:r.scrollTop)!=null?o:0;let n=Number(t[0])||0;for(let s of this.elements)s.scrollTop=n;return this}addClass(t){let n=dt(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=dt(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=dt(t);for(let o of this.elements)for(let s of r)n===void 0?o.classList.toggle(s):o.classList.toggle(s,n);return this}hasClass(t){let n=dt(t);return n.length?this.elements.some(r=>n.every(o=>r.classList.contains(o))):!1}insert(t,n){let r=this.elements.length;for(let o=0;o<r;o++){let s=this.elements[o];for(let i of Oi(t))n(s,o===r-1?i:i.cloneNode(!0))}return this}append(t){return this.insert(t,(n,r)=>n.appendChild(r))}prepend(t){return this.insert(t,(n,r)=>n.insertBefore(r,n.firstChild))}before(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n)})}after(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n.nextSibling)})}appendTo(t){let n=pt(t);for(let r=0;r<n.length;r++)for(let o of this.elements)n[r].appendChild(r===n.length-1?o:o.cloneNode(!0));return this}prependTo(t){let n=pt(t);for(let r=0;r<n.length;r++){let o=n[r],s=this.elements.map(i=>r===n.length-1?i:i.cloneNode(!0));for(let i=s.length-1;i>=0;i--)o.insertBefore(s[i],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of Oi(t))r.insertBefore(o,n);K(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=pt(t)[0];if(!o)continue;let s=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(s,r);let i=s;for(;i.firstElementChild;)i=i.firstElementChild;i.appendChild(r)}return this}unwrap(){let t=new Set;for(let n of this.elements){let r=n.parentElement;r&&r!==document.body&&t.add(r)}for(let n of t){let r=n.parentNode;if(r){for(;n.firstChild;)r.insertBefore(n.firstChild,n);K(n),n.remove()}}return this}remove(){for(let t of this.elements)K(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))K(n);t.replaceChildren()}return this}clone(t=!0){return new e(this.elements.map(n=>n.cloneNode(t)))}on(t,...n){var a;let r=typeof n[0]=="string",o=r?n[0]:null,s=r?n[1]:n[0],i=(a=r?n[2]:n[1])!=null?a:{};if(typeof s!="function")return this;for(let c of this.elements)for(let u of dt(t)){let l=f=>{if(!o){s.call(c,f);return}let p=f.target,d=p==null?void 0:p.closest(o);!d||!c.contains(d)||s.call(d,f)};c.addEventListener(u,l,i),Nu(c).push({type:u,selector:o,handler:s,wrapped:l,options:i})}return this}off(t,n,r){let o=typeof n=="string"?n:null,s=typeof n=="function"?n:r!=null?r:null,i=t?dt(t):null;for(let a of this.elements){let c=sr.get(a);if(!c)continue;let u=[];for(let l of c){let f=!i||i.includes(l.type),p=o===null||l.selector===o,d=s===null||l.handler===s;f&&p&&d?a.removeEventListener(l.type,l.wrapped,l.options):u.push(l)}sr.set(a,u)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,s=r?n[1]:n[0];if(typeof s!="function")return this;let i=this,a=function(c){return o?i.off(t,o,a):i.off(t,a),s.call(this,c)};return o?this.on(t,o,a):this.on(t,a)}trigger(t,n){for(let r of this.elements){if(n===void 0&&typeof r[t]=="function"){r[t]();continue}let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}emit(t,n){for(let r of this.elements){let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}show(){for(let t of this.elements)Di(t);return this}hide(){for(let t of this.elements)ji(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Ii(n):t)?Di(n):ji(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),er(n,t);return this}fadeOut(t=220){for(let n of this.elements)tr(n,t);return this}slideUp(t=240){for(let n of this.elements)dn(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),fn(n,t);return this}slideToggle(t=240){for(let n of this.elements)Ii(n)?(n.removeAttribute("hidden"),fn(n,t)):dn(n,t);return this}animate(t,n=300){for(let r of this.elements)typeof r.animate=="function"&&r.animate(t,n);return this}scrollIntoView(t={behavior:"smooth",block:"start"}){var n;return(n=this.elements[0])==null||n.scrollIntoView(t),this}serialize(){let t=this.elements[0];if(!t)return"";let n=new URLSearchParams;for(let r of Bi(t)){if(!Lu(r))continue;let o=r,s=r;if(o.tagName==="SELECT"&&s.multiple){for(let i of Array.from(s.selectedOptions))n.append(o.name,i.value);continue}n.append(o.name,o.value)}return n.toString()}serializeObject(){var r,o,s,i;let t=this.elements[0],n={};if(!t)return n;for(let a of Bi(t)){let c=a;if(!c.name||c.disabled)continue;let u=(c.getAttribute("type")||"").toLowerCase();if(u==="submit"||u==="reset"||u==="button")continue;let l=c.name.endsWith("[]"),f=l?c.name.slice(0,-2):c.name,p=a,d;if(u==="checkbox"){if(!c.checked&&!l){n[f]=(r=n[f])!=null?r:!1;continue}if(!c.checked)continue;d=c.value==="on"?!0:c.value}else if(u==="radio"){if(!c.checked)continue;d=c.value}else u==="file"?d=c.multiple?Array.from((o=c.files)!=null?o:[]):(i=(s=c.files)==null?void 0:s[0])!=null?i:null:c.tagName==="SELECT"&&p.multiple?d=Array.from(p.selectedOptions).map(m=>m.value):u==="number"||u==="range"?d=c.value===""?null:Number(c.value):d=c.value;if(l){let m=n[f];Array.isArray(m)?m.push(d):n[f]=[d];continue}if(Object.prototype.hasOwnProperty.call(n,f)){let m=n[f];Array.isArray(m)?m.push(d):m===void 0||m===!1?n[f]=d:n[f]=[m,d];continue}n[f]=d}return n}focus(t){var n;return(n=this.elements[0])==null||n.focus(t),this}blur(){for(let t of this.elements)t.blur();return this}select(){for(let t of this.elements){let n=t;typeof n.select=="function"&&n.select()}return this}walk(t=!1){for(let n of this.elements)t&&K(n),Y(n,Ue(n.parentNode));return this}destroy(){for(let t of this.elements)K(t);return this}};function bo(e,t){if(typeof e=="function"){wo(e);let n=typeof document!="undefined"?document.documentElement:null;return new Oe(n?[n]:[])}return new Oe(pt(e,t))}function wo(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Bs(()=>{try{e==null||e()}catch(n){V(n,"V.ready")}t()})})}function Vi(e){return new Oe(vo(e))}var Wi=((e,t)=>bo(e,t));Object.assign(Wi,rr,{query:bo,ready:wo,fromHtml:Vi,Collection:Oe,magic:W});var To=Wi;Ee();Dt();Ee();var Ou=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,$u=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,Hu=/^rgba?\(([^)]+)\)$/i,Iu=/^hsla?\(([^)]+)\)$/i;function zi(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function Du(e,t,n){let r=(e%360+360)%360,o=he(t/100,0,1),s=he(n/100,0,1),i=(1-Math.abs(2*s-1))*o,a=i*(1-Math.abs(r/60%2-1)),c=s-i/2,u=Math.floor(r/60)%6,l=[[i,a,0],[a,i,0],[0,i,a],[0,a,i],[a,0,i],[i,0,a]],[f,p,d]=l[u];return{r:Math.round((f+c)*255),g:Math.round((p+c)*255),b:Math.round((d+c)*255)}}function $e(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=Ou.exec(t);if(n)return{r:parseInt(n[1]+n[1],16),g:parseInt(n[2]+n[2],16),b:parseInt(n[3]+n[3],16)};let r=$u.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=Hu.exec(t);if(o){let[i,a,c]=zi(o[1]);return i===void 0||a===void 0||c===void 0?null:{r:he(i,0,255),g:he(a,0,255),b:he(c,0,255)}}let s=Iu.exec(t);if(s){let[i,a,c]=zi(s[1]);return i===void 0||a===void 0||c===void 0?null:Du(i,a,c)}return null}function he(e,t,n){return e<t?t:e>n?n:e}function zt(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xo(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function ju(e){let t=zt(e.r),n=zt(e.g),r=zt(e.b),o=.4122214708*t+.5363325363*n+.0514459929*r,s=.2119034982*t+.6806995451*n+.1073969566*r,i=.0883024619*t+.2817188376*n+.6299787005*r,a=Math.cbrt(o),c=Math.cbrt(s),u=Math.cbrt(i);return{l:.2104542553*a+.793617785*c-.0040720468*u,a:1.9779984951*a-2.428592205*c+.4505937099*u,b:.0259040371*a+.7827717662*c-.808675766*u}}function Fu(e){let t=e.l+.3963377774*e.a+.2158037573*e.b,n=e.l-.1055613458*e.a-.0638541728*e.b,r=e.l-.0894841775*e.a-1.291485548*e.b,o=t*t*t,s=n*n*n,i=r*r*r;return{r:xo(4.0767416621*o-3.3077115913*s+.2309699292*i),g:xo(-1.2684380046*o+2.6097574011*s-.3413193965*i),b:xo(-.0041960863*o-.7034186147*s+1.707614701*i)}}function ar(e){let t=ju(e),n=Math.sqrt(t.a*t.a+t.b*t.b),r=Math.atan2(t.b,t.a)*180/Math.PI;return r<0&&(r+=360),{l:t.l,c:n,h:n<1e-5?0:r}}function Qi(e){let t=e.h*Math.PI/180;return Fu({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function Wt(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=Qi({l:he(e.l,0,1),c:t,h:e.h});if(o.r>=-.001&&o.r<=1.001&&o.g>=-.001&&o.g<=1.001&&o.b>=-.001&&o.b<=1.001)return{r:Math.round(he(o.r,0,1)*255),g:Math.round(he(o.g,0,1)*255),b:Math.round(he(o.b,0,1)*255)};t*=.92}let n=Qi({l:he(e.l,0,1),c:0,h:e.h});return{r:Math.round(he(n.r,0,1)*255),g:Math.round(he(n.g,0,1)*255),b:Math.round(he(n.b,0,1)*255)}}function Eo(e){return he(Math.round(e),0,255).toString(16).padStart(2,"0")}function mt(e){return`#${Eo(e.r)}${Eo(e.g)}${Eo(e.b)}`}function Vt(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function Ji(e){return mt(Wt(e))}function So(e){return .2126*zt(e.r)+.7152*zt(e.g)+.0722*zt(e.b)}function Ao(e,t){let n=typeof e=="string"?$e(e):e,r=typeof t=="string"?$e(t):t;if(!n||!r)return 1;let o=So(n),s=So(r),i=Math.max(o,s),a=Math.min(o,s);return(i+.05)/(a+.05)}var Zi={r:255,g:255,b:255},cr={r:0,g:0,b:0};function gn(e){let t=typeof e=="string"?$e(e):e;return t?Ao(t,Zi)>=Ao(t,cr)?"#ffffff":"#000000":"#ffffff"}var Ro=[50,100,200,300,400,500,600,700,800,900],ea=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],Bu=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],ta=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],Uu=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function na(e,t=!1){var a;let n=typeof e=="string"?(a=$e(e))!=null?a:cr:e,r=ar(n),o=t?ta:ea,s=t?Uu:Bu,i={};return Ro.forEach((c,u)=>{i[String(c)]=Ji({l:o[u],c:r.c*s[u],h:r.h})}),i}var ur={violeta:{primary:"#6D3BF5",accent:"#FF3D8B",success:"#16A34A",warning:"#D97706",danger:"#E11D48",info:"#7C6BFF"},oceano:{primary:"#0E7BC4",accent:"#0FB5C9",success:"#0F9D6E",warning:"#D08700",danger:"#DC2F3E",info:"#3B82F6"},floresta:{primary:"#1F8A4C",accent:"#7FA80E",success:"#18A05A",warning:"#C97A0A",danger:"#C93A2E",info:"#2C8FA8"},poente:{primary:"#E4632A",accent:"#D62F63",success:"#3E9B52",warning:"#D99000",danger:"#D32F2F",info:"#B45FC0"},grafite:{primary:"#4C5A70",accent:"#2E7FD1",success:"#2F8F60",warning:"#B57A12",danger:"#C2453F",info:"#5B7A99"}},ra=["primary","accent","success","warning","danger","info"],Co="voodoo:palette",Ki="voodoo-palette",qu="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",_u="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function Gi(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var Vu=/^([\d.]+)(px|rem|em)$/;function Wu(e){let t=(e||"12px").trim(),n=Vu.exec(t);if(!n)return{"--v-radius":t,"--v-radius-sm":`calc(${t} * 0.6)`,"--v-radius-lg":`calc(${t} * 1.5)`,"--v-radius-xl":`calc(${t} * 2)`,"--v-radius-full":"999px"};let r=parseFloat(n[1]),o=n[2],s=i=>`${Math.round(i*1e3)/1e3}${o}`;return{"--v-radius":s(r),"--v-radius-sm":s(Math.max(r*.55,0)),"--v-radius-lg":s(r*1.5),"--v-radius-xl":s(r*2),"--v-radius-full":"999px"}}function Yi(e,t){var u,l,f,p;let n={},r={},o={};for(let d of ra){let m=(u=$e(e[d]))!=null?u:cr,g=ar(m),h=na(m,t);r[d]=h;for(let O of Ro)n[`--v-${d}-${O}`]=h[String(O)];let v=t?{l:Math.max(g.l,.62),c:g.c*.95,h:g.h}:g,P=t?{l:Math.min(v.l+.07,.94),c:v.c*.95,h:v.h}:{l:Math.max(v.l-.055,.12),c:v.c,h:v.h},L=t?{l:Math.min(v.l+.13,.97),c:v.c*.88,h:v.h}:{l:Math.max(v.l-.105,.1),c:v.c,h:v.h},N=Wt(v),b=Wt(P),Q=Wt(L);n[`--v-${d}`]=mt(t?N:m),n[`--v-${d}-hover`]=mt(b),n[`--v-${d}-active`]=mt(Q),n[`--v-${d}-contrast`]=gn(t?N:m),n[`--v-${d}-contrast-hover`]=gn(b),n[`--v-${d}-contrast-active`]=gn(Q);let U=h[50],D=h[100],ne=t?h[800]:h[700];n[`--v-${d}-soft`]=U,n[`--v-${d}-soft-hover`]=D,n[`--v-${d}-soft-text`]=ne,n[`--v-${d}-ring`]=Vt(N,t?.45:.32),n[`--v-${d}-border`]=t?h[300]:h[200],o[d]=n[`--v-${d}-contrast`]}let s=(f=$e((l=e.neutral)!=null?l:e.primary))!=null?f:cr,i=ar(s).h,a=(d,m)=>Ji({l:d,c:m,h:i}),c={};if(Ro.forEach((d,m)=>{let g=t?ta:ea;c[String(d)]=a(g[m],.012),n[`--v-neutral-${d}`]=c[String(d)]}),r.neutral=c,t)n["--v-surface"]=a(.248,.021),n["--v-surface-2"]=a(.196,.021),n["--v-surface-3"]=a(.305,.024),n["--v-surface-inset"]=a(.17,.02),n["--v-text"]=a(.965,.008),n["--v-text-muted"]=a(.748,.017),n["--v-text-soft"]=a(.63,.017),n["--v-border"]=a(.355,.023),n["--v-border-strong"]=a(.46,.026),n["--v-overlay"]="rgba(0, 0, 0, 0.62)",n["--v-shadow-sm"]="0 1px 2px rgba(0, 0, 0, 0.5)",n["--v-shadow"]="0 10px 30px rgba(0, 0, 0, 0.5)",n["--v-shadow-lg"]="0 24px 60px rgba(0, 0, 0, 0.62)";else{let d=Wt({l:.24,c:.028,h:i});n["--v-surface"]=a(1,0),n["--v-surface-2"]=a(.981,.006),n["--v-surface-3"]=a(.955,.009),n["--v-surface-inset"]=a(.968,.008),n["--v-text"]=mt(d),n["--v-text-muted"]=a(.53,.023),n["--v-text-soft"]=a(.655,.018),n["--v-border"]=a(.906,.012),n["--v-border-strong"]=a(.828,.016),n["--v-overlay"]=Vt(d,.45),n["--v-shadow-sm"]=`0 1px 2px ${Vt(d,.08)}`,n["--v-shadow"]=`0 10px 30px ${Vt(d,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${Vt(d,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=gn((p=$e(n["--v-surface"]))!=null?p:Zi),{vars:n,scales:r,contrast:o}}function ko(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
139
139
  `);return`${e} {
140
140
  ${n}
141
- }`}var Kt=null,Qt=null;function ru(e){var r,o,s,i,a,c,u,l,f;let t=(r=jn[e.preset])!=null?r:jn.violeta,n={primary:(o=e.primary)!=null?o:t.primary,accent:(s=e.accent)!=null?s:t.accent,success:(i=e.success)!=null?i:t.success,warning:(a=e.warning)!=null?a:t.warning,danger:(c=e.danger)!=null?c:t.danger,info:(u=e.info)!=null?u:t.info,neutral:(l=e.neutral)!=null?l:t.neutral};for(let p of Ei)ge(n[p])||(console.warn(`[Voodoo] invalid color in palette.${p}: "${n[p]}". Using preset.`),n[p]=t[p]);return{colors:n,radius:(f=e.radius)!=null?f:"12px",font:hi(e.font,Zc),mono:hi(e.monoFont,eu)}}function ou(e){if(typeof document=="undefined"||!w.injectStyles)return;We();let t=document.getElementById(mi);t||(t=document.createElement("style"),t.id=mi,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function Hn(e={}){let{colors:t,radius:n,font:r,mono:o}=ru(e),s=gi(t,!1),i=gi(t,!0),a={...nu(n),"--v-font-sans":r,"--v-font-mono":o},c=["/* Palette generated by V.palette(). Do not edit manually. */",Gr(":root",{...a,...s.vars}),`@media (prefers-color-scheme: dark) {
142
- ${Gr(':root:not([data-theme="light"])',i.vars)}
143
- }`,Gr(':root[data-theme="dark"]',i.vars)].join(`
144
- `);ou(c);let u={colors:t,radius:n,font:r,monoFont:o,light:s.scales,dark:i.scales,contrast:s.contrast,css:c};if(Kt=u,Qt={...e},e.persist!==!1&&typeof document!="undefined"){let l={...e};delete l.persist,ae.set(Zr,l)}return typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("voodoo:palette",{detail:u})),u}var yi=!1;function eo(){if(Kt&&yi)return Kt;yi=!0;let e=ae.get(Zr),t=e&&typeof e=="object"?{...e,persist:!1}:{persist:!1};return Hn(t)}function su(){Kt||eo()}function to(){return eo()}var Sd=Object.assign(Hn,{presets:jn,get names(){return Object.keys(jn)},get current(){return Kt},get options(){return Qt},init:eo,ensure:su,reset(){return ae.remove(Zr),Hn({persist:!1})},use(e){return Hn({...Qt!=null?Qt:{},preset:e,primary:void 0,accent:void 0})},scale:xi,contrastText:zt,contrastRatio:Xr,luminance(e){let t=typeof e=="string"?ge(e):e;return t?Yr(t):0},convert:{parseColor:ge,rgbToOklch:Dn,oklchToRgb:Et,toHex:Ye,toRgba:xt}});function iu(e){if(window.VOODOO_DEVTOOLS===!0)return!0;for(let t of["devtools","data-devtools"]){if(!e.hasAttribute(t))continue;let n=e.getAttribute(t);return n===null||n===""||n.toLowerCase()!=="false"}return!1}function au(){var i;if(typeof document=="undefined")return{manual:!1};let e=(i=document.currentScript)!=null?i:document.querySelector('script[src*="voodoo"]');if(!e)return{manual:!1};let t=e.hasAttribute("data-manual")||e.hasAttribute("data-defer-init"),n=e.getAttribute("data-prefix");n&&(w.prefix=n);let r=e.getAttribute("data-base-url");r&&(w.baseURL=r);let o=e.getAttribute("data-locale");o&&(w.locale=o),iu(e)&&(w.devtools=!0);let s=e.getAttribute("data-xray-shortcut");return s!==null&&(w.xrayShortcut=s==="false"||s===""?!1:s),e.hasAttribute("data-no-styles")&&(w.injectStyles=!1),e.hasAttribute("data-no-observer")&&(w.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(w.cleanAttributes=!1),{manual:t}}function cu(e){if(typeof e.devtoolsWidget=="function"){e.devtoolsWidget(!0);return}console.info("[Voodoo] devtools requested, but this build does not include the inspector. Use voodoo.full.min.js to get the widget and full devtools panel.")}function ki(e){var o;if(typeof window=="undefined")return;let t=au(),n=window;if(n.V=e,n.Voodoo=e,Y.V=e,Y.Voodoo=e,w.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(w.baseURL),vt.init(),t.manual||!w.autoStart){Nt(()=>{to()});return}Nt(()=>{to(),e.start(),typeof e.enableXrayShortcut=="function"&&e.enableXrayShortcut(),w.devtools&&cu(e)})}ki(zr);var uu=zr;return Ni(lu);})();
141
+ }`}var vn=null,yn=null;function zu(e){var r,o,s,i,a,c,u,l,f;let t=(r=ur[e.preset])!=null?r:ur.violeta,n={primary:(o=e.primary)!=null?o:t.primary,accent:(s=e.accent)!=null?s:t.accent,success:(i=e.success)!=null?i:t.success,warning:(a=e.warning)!=null?a:t.warning,danger:(c=e.danger)!=null?c:t.danger,info:(u=e.info)!=null?u:t.info,neutral:(l=e.neutral)!=null?l:t.neutral};for(let p of ra)$e(n[p])||(console.warn(`[Voodoo] invalid color in palette.${p}: "${n[p]}". Using preset.`),n[p]=t[p]);return{colors:n,radius:(f=e.radius)!=null?f:"12px",font:Gi(e.font,qu),mono:Gi(e.monoFont,_u)}}function Qu(e){if(typeof document=="undefined"||!w.injectStyles)return;ut();let t=document.getElementById(Ki);t||(t=document.createElement("style"),t.id=Ki,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function ir(e={}){let{colors:t,radius:n,font:r,mono:o}=zu(e),s=Yi(t,!1),i=Yi(t,!0),a={...Wu(n),"--v-font-sans":r,"--v-font-mono":o},c=["/* Palette generated by V.palette(). Do not edit manually. */",ko(":root",{...a,...s.vars}),`@media (prefers-color-scheme: dark) {
142
+ ${ko(':root:not([data-theme="light"])',i.vars)}
143
+ }`,ko(':root[data-theme="dark"]',i.vars)].join(`
144
+ `);Qu(c);let u={colors:t,radius:n,font:r,monoFont:o,light:s.scales,dark:i.scales,contrast:s.contrast,css:c};if(vn=u,yn={...e},e.persist!==!1&&typeof document!="undefined"){let l={...e};delete l.persist,Se.set(Co,l)}return typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("voodoo:palette",{detail:u})),u}var Xi=!1;function Mo(){if(vn&&Xi)return vn;Xi=!0;let e=Se.get(Co),t=e&&typeof e=="object"?{...e,persist:!1}:{persist:!1};return ir(t)}function Ku(){vn||Mo()}function Po(){return Mo()}var vd=Object.assign(ir,{presets:ur,get names(){return Object.keys(ur)},get current(){return vn},get options(){return yn},init:Mo,ensure:Ku,reset(){return Se.remove(Co),ir({persist:!1})},use(e){return ir({...yn!=null?yn:{},preset:e,primary:void 0,accent:void 0})},scale:na,contrastText:gn,contrastRatio:Ao,luminance(e){let t=typeof e=="string"?$e(e):e;return t?So(t):0},convert:{parseColor:$e,rgbToOklch:ar,oklchToRgb:Wt,toHex:mt,toRgba:Vt}});function Gu(e){if(window.VOODOO_DEVTOOLS===!0)return!0;for(let t of["devtools","data-devtools"]){if(!e.hasAttribute(t))continue;let n=e.getAttribute(t);return n===null||n===""||n.toLowerCase()!=="false"}return!1}function Yu(){var i;if(typeof document=="undefined")return{manual:!1};let e=(i=document.currentScript)!=null?i:document.querySelector('script[src*="voodoo"]');if(!e)return{manual:!1};let t=e.hasAttribute("data-manual")||e.hasAttribute("data-defer-init"),n=e.getAttribute("data-prefix");n&&(w.prefix=n);let r=e.getAttribute("data-base-url");r&&(w.baseURL=r);let o=e.getAttribute("data-locale");o&&(w.locale=o),Gu(e)&&(w.devtools=!0);let s=e.getAttribute("data-xray-shortcut");return s!==null&&(w.xrayShortcut=s==="false"||s===""?!1:s),e.hasAttribute("data-no-styles")&&(w.injectStyles=!1),e.hasAttribute("data-no-observer")&&(w.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(w.cleanAttributes=!1),{manual:t}}function Xu(e){if(typeof e.devtoolsWidget=="function"){e.devtoolsWidget(!0);return}console.info("[Voodoo] devtools requested, but this build does not include the inspector. Use voodoo.full.min.js to get the widget and full devtools panel.")}function oa(e){var o;if(typeof window=="undefined")return;let t=Yu(),n=window;if(n.V=e,n.Voodoo=e,de.V=e,de.Voodoo=e,w.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(w.baseURL),Bt.init(),t.manual||!w.autoStart){tn(()=>{Po()});return}tn(()=>{Po(),e.start(),typeof e.enableXrayShortcut=="function"&&e.enableXrayShortcut(),w.devtools&&Xu(e)})}oa(To);var Ju=To;return ma(Zu);})();
145
145
  if(typeof window!=="undefined"){window.V=Voodoo.default||Voodoo;window.Voodoo=window.V;}
146
146
  //# sourceMappingURL=voodoo.core.min.js.map