voodoojs 0.7.0 → 0.10.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 (41) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-YOZTHZS2.js → chunk-3JV2AYK6.js} +3 -3
  3. package/dist/{chunk-CYN6VLMD.js → chunk-EYNFAYEV.js} +4 -4
  4. package/dist/{chunk-ZIWLQZZL.js → chunk-H3RGM7PR.js} +4 -4
  5. package/dist/{chunk-4T2UIPWX.js → chunk-H64IUSGJ.js} +4 -4
  6. package/dist/{chunk-QO3I7VLJ.js → chunk-HW75QJLQ.js} +5 -5
  7. package/dist/{chunk-WSDB7K4X.js → chunk-IK4MQQTO.js} +6 -6
  8. package/dist/{chunk-JB2YYNK6.js → chunk-OUEXXXTU.js} +310 -64
  9. package/dist/{chunk-MMLUK37L.js → chunk-PXUSD6TT.js} +4 -3
  10. package/dist/{chunk-II3XBOAP.js → chunk-QWQPKMUH.js} +13 -13
  11. package/dist/{chunk-GIWKGFGY.js → chunk-TFDCAZYU.js} +4 -4
  12. package/dist/{chunk-E5T65CEI.js → chunk-WGMUFP5Q.js} +5 -5
  13. package/dist/essential.cjs +305 -58
  14. package/dist/essential.d.cts +2 -2
  15. package/dist/essential.d.ts +2 -2
  16. package/dist/essential.js +10 -10
  17. package/dist/gpu.cjs +1 -1
  18. package/dist/gpu.js +10 -10
  19. package/dist/http.cjs +1 -1
  20. package/dist/http.js +5 -5
  21. package/dist/index.cjs +577 -76
  22. package/dist/index.d.cts +118 -4
  23. package/dist/index.d.ts +118 -4
  24. package/dist/index.js +278 -31
  25. package/dist/{query-CC-_z7v0.d.ts → query-Cf-7iibE.d.ts} +53 -2
  26. package/dist/{query-sEJXe_cO.d.cts → query-DiQAS73Q.d.cts} +53 -2
  27. package/dist/reactivity.cjs +1 -1
  28. package/dist/reactivity.js +2 -2
  29. package/dist/socket.cjs +303 -57
  30. package/dist/socket.js +9 -9
  31. package/dist/style-NW74ROC5.js +5 -0
  32. package/dist/utils.cjs +1 -1
  33. package/dist/utils.js +2 -2
  34. package/dist/voodoo.core.js +312 -58
  35. package/dist/voodoo.core.min.js +18 -18
  36. package/dist/voodoo.full.js +582 -74
  37. package/dist/voodoo.full.min.js +61 -61
  38. package/dist/voodoo.js +312 -58
  39. package/dist/voodoo.min.js +25 -25
  40. package/package.json +127 -127
  41. package/dist/style-SLQ6PHZK.js +0 -5
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Voodoo.js v0.7.0
2
+ * Voodoo.js v0.10.0
3
3
  * JavaScript feels like magic.
4
4
  * (c) 2026 Voodoo.js contributors. MIT License.
5
5
  */
6
- "use strict";var Voodoo=(()=>{var Gn=Object.defineProperty;var Il=Object.getOwnPropertyDescriptor;var jl=Object.getOwnPropertyNames;var Bl=Object.prototype.hasOwnProperty;var ql=(e,t,n)=>t in e?Gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var go=(e,t)=>()=>(e&&(t=e(e=0)),t);var Xn=(e,t)=>{for(var n in t)Gn(e,n,{get:t[n],enumerable:!0})},zl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of jl(t))!Bl.call(e,o)&&o!==n&&Gn(e,o,{get:()=>t[o],enumerable:!(r=Il(t,o))||r.enumerable});return e};var Ul=e=>zl(Gn({},"__esModule",{value:!0}),e);var S=(e,t,n)=>ql(e,typeof t!="symbol"?t+"":t,n);var Ms={};Xn(Ms,{EffectScope:()=>Me,ITERATE_KEY:()=>mt,ReactiveEffect:()=>It,TriggerType:()=>ks,computed:()=>wn,effect:()=>Ee,effectScope:()=>So,enableTracking:()=>Ts,flushSync:()=>xo,getActiveEffect:()=>_l,getActiveScope:()=>Kl,handleError:()=>z,hasChanged:()=>yn,isReactive:()=>Ho,isRef:()=>gt,markRaw:()=>Ro,nextTick:()=>ht,pauseTracking:()=>xs,queueJob:()=>nr,queuePostFlush:()=>fe,reactive:()=>V,ref:()=>bn,resetTracking:()=>Lo,setErrorHandler:()=>To,shallowRef:()=>Do,stop:()=>Ao,toRaw:()=>oe,track:()=>$e,trigger:()=>_e,unref:()=>Po,warn:()=>Y,watch:()=>ve,watchEffect:()=>No});function ht(e){let t=er||wo;return e?t.then(e):t}function nr(e){e.queued||(e.queued=!0,Ot.push(e),Es())}function fe(e){Jn.push(e),Es()}function Es(){Zn||hn||(hn=!0,er=wo.then(Eo))}function Eo(){hn=!1,Zn=!0;let e=new Map;try{for(let t=0;t<Ot.length;t++){let n=Ot[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>Vl){Y("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){z(o,"effect")}}}finally{for(let n of Ot)n.queued=!1;Ot=[],Zn=!1;let t=Jn;Jn=[];for(let n of t)try{n()}catch(r){z(r,"post-flush")}Ot.length||Jn.length?(er=wo.then(Eo),hn=!0):er=null}}function xo(){Zn||(hn=!1,Eo())}function To(e){vo=e}function z(e,t){if(vo){vo(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function Y(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function xs(){ko.push(vt),vt=!1}function Ts(){ko.push(vt),vt=!0}function Lo(){var e;vt=(e=ko.pop())!=null?e:!0}function _l(){return ge}function hs(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function Ee(e,t){let n=new It(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function Ao(e){e instanceof It?e.stop():e.effect.stop()}function So(e=!1){return new Me(e)}function Kl(){return Ze}function $e(e,t){if(!vt||!ge)return;let n=ho.get(e);n||ho.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(ge)||(r.add(ge),ge.deps.push(r))}function _e(e,t,n,r){let o=ho.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let c of a)(c!==ge||t==="clear")&&i.add(c)};if(t==="clear")o.forEach(s);else{n!==void 0&&s(o.get(n));let a=Array.isArray(e);if(t==="add")a?yo(n)&&s(o.get("length")):s(o.get(mt));else if(t==="delete")a||s(o.get(mt));else if(a&&n==="length"){let c=Number(r);o.forEach((l,u)=>{(u==="length"||typeof u!="symbol"&&Number(u)>=c)&&s(l)})}}for(let a of i)a.scheduler?a.scheduler():nr(a)}function yo(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function et(e){return e!==null&&typeof e=="object"}function Ql(e){if(!et(e)||e[Ls]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return Yl.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function Ro(e){return Object.defineProperty(e,Ls,{value:!0,enumerable:!1,configurable:!0}),e}function oe(e){let t=e&&e[Mo];return t?oe(t):e}function Ho(e){return!!(e&&e[Co])}function V(e){if(!et(e)||Ho(e)||!Ql(e))return e;let t=ys.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?Xl:Gl);return ys.set(e,r),r}function yn(e,t){return!Object.is(e,t)}function gt(e){return!!(e&&e.__v_isRef===!0)}function ws(e){return et(e)?V(e):e}function As(e){!vt||!ge||e.dep.has(ge)||(e.dep.add(ge),ge.deps.push(e.dep))}function Ss(e){for(let t of[...e.dep])t.scheduler?t.scheduler():nr(t)}function bn(e){return new tr(e)}function Do(e){return new tr(e,!0)}function Po(e){return gt(e)?e.value:e}function wn(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new bo(n,r)}function ve(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(gt(e)?s=()=>e.value:typeof e=="function"?s=e:Ho(e)?s=()=>Ft(e):s=()=>e,o){let f=s;s=()=>Ft(f())}let a,c,l=f=>{c=f},u=()=>{if(!p.effect.active)return;let f=p();(o||yn(f,a))&&(c==null||c(),c=void 0,t(f,a,l),a=f)},p=i==="pre"?Ee(s,{lazy:!0,scheduler:()=>fe(u)}):Ee(s,{lazy:!0,scheduler:i==="sync"?u:i==="post"?()=>fe(u):()=>nr(p.effect)});return a=p(),r&&t(a,void 0,l),()=>p.effect.stop()}function No(e){let t,n=o=>{t=o},r=Ee(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function Ft(e,t=new Set){if(!et(e)||t.has(e))return e;if(t.add(e),gt(e))Ft(e.value,t);else if(Array.isArray(e))for(let n of e)Ft(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>Ft(n,t));else for(let n of Object.keys(e))Ft(e[n],t);return e}var wo,Ot,Jn,Zn,hn,er,Vl,vo,ge,vt,ko,Wl,It,Ze,Me,mt,ho,ks,Mo,Co,Ls,ys,bs,Yl,Gl,Xl,tr,bo,ne=go(()=>{"use strict";wo=Promise.resolve(),Ot=[],Jn=[],Zn=!1,hn=!1,er=null,Vl=100;vo=null;vt=!0,ko=[];Wl=0,It=class{constructor(t,n){var o;this.fn=t,this.id=Wl++,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:Ze;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=ge;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=ge,ge=this,Ts(),hs(this),this.fn()}finally{Lo(),ge=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){z(r,"effect cleanup")}}stop(){var t;this.active&&(hs(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};Me=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&Ze&&(this.parent=Ze,Ze.children.push(this))}run(t){if(!this.active)return;let n=Ze;try{return Ze=this,t()}finally{Ze=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){z(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)}}}};mt=Symbol("voodoo:iterate"),ho=new WeakMap;ks=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(ks||{});Mo=Symbol("voodoo:raw"),Co=Symbol("voodoo:isReactive"),Ls=Symbol("voodoo:skip"),ys=new WeakMap,bs=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=oe(this);for(let i=0;i<r.length;i++)$e(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(oe)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){xs();try{return oe(this)[t].apply(this,n)}finally{Lo()}};return e})();Yl=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);Gl={get(e,t,n){if(t===Mo)return e;if(t===Co)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(bs,t))return Reflect.get(bs,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:($e(e,t),gt(o)?r&&yo(t)?o:o.value:et(o)?V(o):o)},set(e,t,n,r){let o=e[t];if(n=oe(n),!Array.isArray(e)&&gt(o)&&!gt(n))return o.value=n,!0;let i=Array.isArray(e)&&yo(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===oe(r)&&(i?yn(n,o)&&_e(e,"set",t,n):_e(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&_e(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&$e(e,t),n},ownKeys(e){return $e(e,Array.isArray(e)?"length":mt),Reflect.ownKeys(e)}},Xl={get(e,t,n){if(t===Mo)return e;if(t===Co)return!0;let r=e;if(t==="size")return $e(r,mt),Reflect.get(r,"size",r);let o={get(s){$e(r,s);let a=r.get(s);return et(a)?V(a):a},has(s){return $e(r,s),r.has(s)},add(s){s=oe(s);let a=r.has(s);return r.add(s),a||_e(r,"add",s,s),n},set(s,a){let c=r.has(s),l=r.get(s);return r.set(s,oe(a)),c?yn(a,l)&&_e(r,"set",s,a):_e(r,"add",s,a),n},delete(s){let a=r.has(s),c=r.delete(s);return a&&_e(r,"delete",s),c},clear(){let s=r.size!==0,a=r.clear();return s&&_e(r,"clear"),a},forEach(s,a){return $e(r,mt),r.forEach((c,l)=>{s.call(a,et(c)?V(c):c,et(l)?V(l):l,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){$e(r,mt);let s=r[t];return typeof s=="function"?s.bind(r):s}let i=Reflect.get(r,t,r);return typeof i=="function"?i.bind(r):i}};tr=class{constructor(t,n=!1){S(this,"shallow",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_rawValue");S(this,"dep",new Set);this._rawValue=oe(t),this._value=n?t:ws(t)}get value(){return As(this),this._value}set value(t){let n=oe(t);yn(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:ws(t),Ss(this))}};bo=class{constructor(t,n){S(this,"setter",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_dirty",!0);S(this,"effect");S(this,"dep",new Set);this.effect=new It(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Ss(this))}})}get value(){return As(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):Y("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function b(e,t,n={}){var r,o;We.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function bt(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function ir(e,t,n){js.has(t)||(js.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var E,We,P,le,js,J=go(()=>{"use strict";E={prefix:"v-",autoStart:!0,autoDiscover:!0,root:null,devtools:!1,baseURL:"",globals:{},locale:typeof navigator!="undefined"&&navigator.language||"pt-BR",currency:"BRL",injectStyles:!0,cleanAttributes:!0,sanitizeUrls:!0},We=new Map,P={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};le=new Map;js=new Set});var Na={};Xn(Na,{BASE_TOKENS:()=>Pa,ensureTokens:()=>ie,injectStyle:()=>G});function G(e,t){if(typeof document=="undefined"||!E.injectStyles||Da.has(e))return;Da.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function ie(){G("tokens",Pa)}var Da,Pa,Te=go(()=>{"use strict";J();Da=new Set;Pa=`
6
+ "use strict";var Voodoo=(()=>{var Xn=Object.defineProperty;var Ul=Object.getOwnPropertyDescriptor;var _l=Object.getOwnPropertyNames;var Vl=Object.prototype.hasOwnProperty;var Wl=(e,t,n)=>t in e?Xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vo=(e,t)=>()=>(e&&(t=e(e=0)),t);var Jn=(e,t)=>{for(var n in t)Xn(e,n,{get:t[n],enumerable:!0})},Kl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of _l(t))!Vl.call(e,o)&&o!==n&&Xn(e,o,{get:()=>t[o],enumerable:!(r=Ul(t,o))||r.enumerable});return e};var Yl=e=>Kl(Xn({},"__esModule",{value:!0}),e);var S=(e,t,n)=>Wl(e,typeof t!="symbol"?t+"":t,n);var Rs={};Jn(Rs,{EffectScope:()=>Me,ITERATE_KEY:()=>gt,ReactiveEffect:()=>It,TriggerType:()=>As,computed:()=>wn,effect:()=>Ee,effectScope:()=>Mo,enableTracking:()=>Ls,flushSync:()=>To,getActiveEffect:()=>Gl,getActiveScope:()=>Jl,handleError:()=>z,hasChanged:()=>yn,isReactive:()=>Do,isRef:()=>vt,markRaw:()=>Ho,nextTick:()=>yt,pauseTracking:()=>ks,queueJob:()=>rr,queuePostFlush:()=>fe,reactive:()=>V,ref:()=>bn,resetTracking:()=>Ao,setErrorHandler:()=>ko,shallowRef:()=>Po,stop:()=>So,toRaw:()=>ie,track:()=>Oe,trigger:()=>Ve,unref:()=>No,warn:()=>Y,watch:()=>ve,watchEffect:()=>Oo});function yt(e){let t=tr||Eo;return e?t.then(e):t}function rr(e){e.queued||(e.queued=!0,$t.push(e),Ts())}function fe(e){Zn.push(e),Ts()}function Ts(){er||hn||(hn=!0,tr=Eo.then(xo))}function xo(){hn=!1,er=!0;let e=new Map;try{for(let t=0;t<$t.length;t++){let n=$t[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>Ql){Y("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){z(o,"effect")}}}finally{for(let n of $t)n.queued=!1;$t=[],er=!1;let t=Zn;Zn=[];for(let n of t)try{n()}catch(r){z(r,"post-flush")}$t.length||Zn.length?(tr=Eo.then(xo),hn=!0):tr=null}}function To(){er||(hn=!1,xo())}function ko(e){ho=e}function z(e,t){if(ho){ho(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function Y(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function ks(){Lo.push(ht),ht=!1}function Ls(){Lo.push(ht),ht=!0}function Ao(){var e;ht=(e=Lo.pop())!=null?e:!0}function Gl(){return ge}function bs(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function Ee(e,t){let n=new It(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function So(e){e instanceof It?e.stop():e.effect.stop()}function Mo(e=!1){return new Me(e)}function Jl(){return tt}function Oe(e,t){if(!ht||!ge)return;let n=yo.get(e);n||yo.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(ge)||(r.add(ge),ge.deps.push(r))}function Ve(e,t,n,r){let o=yo.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let c of a)(c!==ge||t==="clear")&&i.add(c)};if(t==="clear")o.forEach(s);else{n!==void 0&&s(o.get(n));let a=Array.isArray(e);if(t==="add")a?bo(n)&&s(o.get("length")):s(o.get(gt));else if(t==="delete")a||s(o.get(gt));else if(a&&n==="length"){let c=Number(r);o.forEach((l,u)=>{(u==="length"||typeof u!="symbol"&&Number(u)>=c)&&s(l)})}}for(let a of i)a.scheduler?a.scheduler():rr(a)}function bo(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function nt(e){return e!==null&&typeof e=="object"}function eu(e){if(!nt(e)||e[Ss]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return Zl.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function Ho(e){return Object.defineProperty(e,Ss,{value:!0,enumerable:!1,configurable:!0}),e}function ie(e){let t=e&&e[Co];return t?ie(t):e}function Do(e){return!!(e&&e[Ro])}function V(e){if(!nt(e)||Do(e)||!eu(e))return e;let t=ws.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?nu:tu);return ws.set(e,r),r}function yn(e,t){return!Object.is(e,t)}function vt(e){return!!(e&&e.__v_isRef===!0)}function xs(e){return nt(e)?V(e):e}function Ms(e){!ht||!ge||e.dep.has(ge)||(e.dep.add(ge),ge.deps.push(e.dep))}function Cs(e){for(let t of[...e.dep])t.scheduler?t.scheduler():rr(t)}function bn(e){return new nr(e)}function Po(e){return new nr(e,!0)}function No(e){return vt(e)?e.value:e}function wn(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new wo(n,r)}function ve(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(vt(e)?s=()=>e.value:typeof e=="function"?s=e:Do(e)?s=()=>Ft(e):s=()=>e,o){let f=s;s=()=>Ft(f())}let a,c,l=f=>{c=f},u=()=>{if(!p.effect.active)return;let f=p();(o||yn(f,a))&&(c==null||c(),c=void 0,t(f,a,l),a=f)},p=i==="pre"?Ee(s,{lazy:!0,scheduler:()=>fe(u)}):Ee(s,{lazy:!0,scheduler:i==="sync"?u:i==="post"?()=>fe(u):()=>rr(p.effect)});return a=p(),r&&t(a,void 0,l),()=>p.effect.stop()}function Oo(e){let t,n=o=>{t=o},r=Ee(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function Ft(e,t=new Set){if(!nt(e)||t.has(e))return e;if(t.add(e),vt(e))Ft(e.value,t);else if(Array.isArray(e))for(let n of e)Ft(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>Ft(n,t));else for(let n of Object.keys(e))Ft(e[n],t);return e}var Eo,$t,Zn,er,hn,tr,Ql,ho,ge,ht,Lo,Xl,It,tt,Me,gt,yo,As,Co,Ro,Ss,ws,Es,Zl,tu,nu,nr,wo,re=vo(()=>{"use strict";Eo=Promise.resolve(),$t=[],Zn=[],er=!1,hn=!1,tr=null,Ql=100;ho=null;ht=!0,Lo=[];Xl=0,It=class{constructor(t,n){var o;this.fn=t,this.id=Xl++,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:tt;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=ge;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=ge,ge=this,Ls(),bs(this),this.fn()}finally{Ao(),ge=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){z(r,"effect cleanup")}}stop(){var t;this.active&&(bs(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};Me=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&tt&&(this.parent=tt,tt.children.push(this))}run(t){if(!this.active)return;let n=tt;try{return tt=this,t()}finally{tt=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){z(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)}}}};gt=Symbol("voodoo:iterate"),yo=new WeakMap;As=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(As||{});Co=Symbol("voodoo:raw"),Ro=Symbol("voodoo:isReactive"),Ss=Symbol("voodoo:skip"),ws=new WeakMap,Es=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=ie(this);for(let i=0;i<r.length;i++)Oe(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(ie)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){ks();try{return ie(this)[t].apply(this,n)}finally{Ao()}};return e})();Zl=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);tu={get(e,t,n){if(t===Co)return e;if(t===Ro)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(Es,t))return Reflect.get(Es,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(Oe(e,t),vt(o)?r&&bo(t)?o:o.value:nt(o)?V(o):o)},set(e,t,n,r){let o=e[t];if(n=ie(n),!Array.isArray(e)&&vt(o)&&!vt(n))return o.value=n,!0;let i=Array.isArray(e)&&bo(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===ie(r)&&(i?yn(n,o)&&Ve(e,"set",t,n):Ve(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ve(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&Oe(e,t),n},ownKeys(e){return Oe(e,Array.isArray(e)?"length":gt),Reflect.ownKeys(e)}},nu={get(e,t,n){if(t===Co)return e;if(t===Ro)return!0;let r=e;if(t==="size")return Oe(r,gt),Reflect.get(r,"size",r);let o={get(s){Oe(r,s);let a=r.get(s);return nt(a)?V(a):a},has(s){return Oe(r,s),r.has(s)},add(s){s=ie(s);let a=r.has(s);return r.add(s),a||Ve(r,"add",s,s),n},set(s,a){let c=r.has(s),l=r.get(s);return r.set(s,ie(a)),c?yn(a,l)&&Ve(r,"set",s,a):Ve(r,"add",s,a),n},delete(s){let a=r.has(s),c=r.delete(s);return a&&Ve(r,"delete",s),c},clear(){let s=r.size!==0,a=r.clear();return s&&Ve(r,"clear"),a},forEach(s,a){return Oe(r,gt),r.forEach((c,l)=>{s.call(a,nt(c)?V(c):c,nt(l)?V(l):l,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){Oe(r,gt);let s=r[t];return typeof s=="function"?s.bind(r):s}let i=Reflect.get(r,t,r);return typeof i=="function"?i.bind(r):i}};nr=class{constructor(t,n=!1){S(this,"shallow",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_rawValue");S(this,"dep",new Set);this._rawValue=ie(t),this._value=n?t:xs(t)}get value(){return Ms(this),this._value}set value(t){let n=ie(t);yn(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:xs(t),Cs(this))}};wo=class{constructor(t,n){S(this,"setter",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_dirty",!0);S(this,"effect");S(this,"dep",new Set);this.effect=new It(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Cs(this))}})}get value(){return Ms(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):Y("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function b(e,t,n={}){var r,o;Ye.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function bt(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function sr(e,t,n){_s.has(t)||(_s.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var E,Ye,P,le,_s,Z=vo(()=>{"use strict";E={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},Ye=new Map,P={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};le=new Map;_s=new Set});var ja={};Jn(ja,{BASE_TOKENS:()=>Ia,ensureTokens:()=>se,injectStyle:()=>G});function G(e,t){if(typeof document=="undefined"||!E.injectStyles||Fa.has(e))return;Fa.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function se(){G("tokens",Ia)}var Fa,Ia,Te=vo(()=>{"use strict";Z();Fa=new Set;Ia=`
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 $p={};Xn($p,{default:()=>Np});ne();var _=class extends Error{constructor(n,r,o){let i=`${r}
50
+ `});var jp={};Jn(jp,{default:()=>Ip});re();var U=class extends Error{constructor(n,r,o){let i=`${r}
51
51
  ${" ".repeat(Math.max(0,o))}^`;super(`${n}
52
52
 
53
- ${i}`);S(this,"source",r);S(this,"position",o);this.name="VoodooSyntaxError"}},Jl=[">>>=","===","!==","**=","...","<<=",">>=","&&=","||=","??=","?.","=>","==","!=","<=",">=","&&","||","??","**","++","--","+=","-=","*=","/=","%=","+","-","*","/","%","!","<",">","=","(",")","[","]","{","}",",",".","?",":",";"],Zl=/[A-Za-z_$À-￿]/,eu=/[A-Za-z0-9_$À-￿]/;function tu(e){return Zl.test(e)}function nu(e){return eu.test(e)}function rr(e){return e>="0"&&e<="9"}var Cs={n:`
54
- `,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function or(e){var o,i;let t=[],n=0,r=e.length;for(;n<r;){let s=e[n];if(s===" "||s===" "||s===`
53
+ ${i}`);S(this,"source",r);S(this,"position",o);this.name="VoodooSyntaxError"}},ru=[">>>=","===","!==","**=","...",">>>","<<=",">>=","&&=","||=","??=","?.","=>","==","!=","<=",">=","&&","||","??","**","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<",">>","+","-","*","/","%","!","<",">","=","&","|","^","~","(",")","[","]","{","}",",",".","?",":",";"],ou=/[A-Za-z_$À-￿]/,iu=/[A-Za-z0-9_$À-￿]/;function su(e){return ou.test(e)}function au(e){return iu.test(e)}function or(e){return e>="0"&&e<="9"}var Hs={n:`
54
+ `,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function ir(e){var o,i;let t=[],n=0,r=e.length;for(;n<r;){let s=e[n];if(s===" "||s===" "||s===`
55
55
  `||s==="\r"||s==="\f"||s==="\v"){n++;continue}if(s==="/"&&e[n+1]==="/"){for(;n<r&&e[n]!==`
56
- `;)n++;continue}if(s==="/"&&e[n+1]==="*"){let l=e.indexOf("*/",n+2);if(l===-1)throw new _("Unclosed block comment",e,n);n=l+2;continue}let a=n;if(rr(s)||s==="."&&rr(e[n+1])){let l="";if(s==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(l="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)l+=e[n++];else if(s==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(l="0b",n+=2;n<r&&/[01_]/.test(e[n]);)l+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)l+=e[n++];if(e[n]===".")for(l+=e[n++];n<r&&/[0-9_]/.test(e[n]);)l+=e[n++];if(e[n]==="e"||e[n]==="E")for(l+=e[n++],(e[n]==="+"||e[n]==="-")&&(l+=e[n++]);n<r&&rr(e[n]);)l+=e[n++]}let u=Number(l.replace(/_/g,""));if(Number.isNaN(u))throw new _("Invalid number",e,a);t.push({type:"num",value:l,parsed:u,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let l="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let u=e[n];if(u==="u")if(e[n+1]==="{"){let d=e.indexOf("}",n);if(d===-1)throw new _("Unclosed Unicode escape",e,a);let p=e.slice(n+2,d);if(!/^[0-9a-fA-F]+$/.test(p)||parseInt(p,16)>1114111)throw new _(`Invalid Unicode escape "\\u{${p}}"`,e,n-1);l+=String.fromCodePoint(parseInt(p,16)),n=d+1}else{let d=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(d))throw new _("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);l+=String.fromCharCode(parseInt(d,16)),n+=5}else if(u==="x"){let d=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(d))throw new _("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);l+=String.fromCharCode(parseInt(d,16)),n+=3}else l+=(o=Cs[u])!=null?o:u,n++}else l+=e[n++];if(n>=r)throw new _("Unclosed string",e,a);n++,t.push({type:"str",value:l,parsed:l,start:a,end:n});continue}if(s==="`"){n++;let l=[],u=[],d="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let p=e[n+1];d+=(i=Cs[p])!=null?i:p,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){l.push(d),d="",n+=2;let p=1,f="";for(;n<r;){let m=e[n];if(m==="{")p++;else if(m==="}"){if(p--,p===0)break}else if(m==='"'||m==="'"||m==="`"){let v=m;for(f+=e[n++];n<r&&e[n]!==v;)e[n]==="\\"&&(f+=e[n++]),f+=e[n++]}f+=e[n++]}if(p!==0)throw new _("Unclosed template interpolation",e,a);n++,u.push(f);continue}d+=e[n++]}if(n>=r)throw new _("Unclosed template literal",e,a);n++,l.push(d),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:l,exprs:u},start:a,end:n});continue}if(tu(s)){let l="";for(;n<r&&nu(e[n]);)l+=e[n++];t.push({type:"ident",value:l,start:a,end:n});continue}let c;for(let l of Jl)if(e.startsWith(l,n)){if(l==="?."&&rr(e[n+2]))continue;c=l;break}if(c){n+=c.length,t.push({type:"punct",value:c,start:a,end:n});continue}throw new _(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Rs={"??":1,"||":2,"&&":3,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,in:7,instanceof:7,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},ru=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),ou=new Set(["!","-","+","typeof","void"]),Hs=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Ds=1200,Ps=32,$o=0,Oo=class{constructor(t,n){S(this,"tokens",t);S(this,"source",n);S(this,"pos",0);S(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 _(`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==="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>Ds){let t=this.peek();throw new _(`Expression too deeply nested (limit of ${Ds} 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:[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"&&ru.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new _("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 s=this.tokens[r];if(s.type==="punct"&&s.value==="(")n++;else if(s.type==="punct"&&s.value===")"){if(n--,n===0)break}else if(s.type==="eof")break}let o=this.tokens[r+1];if(!o||o.type!=="punct"||o.value!=="=>")return null;this.next();let i=[];for(;!this.isPunct(")");){let s=this.next();if(s.type!=="ident")return this.pos=t,null;i.push(s.value),this.isPunct(",")&&this.next()}return this.expect(")"),this.expect("=>"),{t:"arrow",params:i,body:this.parseArrowBody()}}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 Rs||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Rs[o];if(s===void 0||s<=t)break;this.next();let a=this.parseBinary(o==="**"?s-1:s);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")&&ou.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}parseCallMember(){let t=this.parsePrimary();for(;;)if(this.isPunct(".")){this.next();let n=this.next();if(n.type!=="ident")throw new _("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 _("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"){this.next(),this.peek().type==="ident"&&this.next(),this.expect("(");let n=[];for(;!this.isPunct(")");){let r=this.next();if(r.type!=="ident")throw new _("Expected a parameter name",this.source,r.start);n.push(r.value),this.isPunct(",")&&this.next()}return this.expect(")"),{t:"arrow",params:n,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($o>=Ps)throw new _(`Template literal too deeply nested (limit of ${Ps} levels)`,this.source,t.start);$o++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>Oe(r))}}finally{$o--}}if(t.type==="ident")return t.value in Hs?(this.next(),{t:"lit",v:Hs[t.value]}):(this.next(),{t:"id",n:t.value});if(t.type==="punct"){if(t.value==="("){this.next();let n=this.parseExpression();return this.expect(")"),n}if(t.value==="[")return this.parseArrayLiteral();if(t.value==="{")return this.parseObjectLiteral()}throw new _(`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 i=this.next();this.expect("("),this.expect(")"),t.push({key:String(i.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 _("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 i=[];for(;!this.isPunct(")");){let s=this.next();if(s.type!=="ident")throw new _("Expected a parameter name",this.source,s.start);i.push(s.value),this.isPunct(",")&&this.next()}this.expect(")"),t.push({key:o,value:{t:"method",params:i,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}}},jt=new Map,Ns=2e3;function Oe(e){let t=jt.get(e);if(t)return t;let n=new Oo(or(e),e).parseProgram();return jt.size>=Ns&&iu(),jt.set(e,n),n}function iu(){let e=Math.floor(Ns/2),t=0;for(let n of jt.keys())if(jt.delete(n),++t>=e)break}function $s(){jt.clear()}var Fs,su=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(Fs=Object.hasOwn)!=null?Fs:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),au=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"]),pe={Math,JSON,Date,Number,String,Boolean,Array,Object:su,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console},ce=class extends Error{constructor(n,r){super(r?`${n}
56
+ `;)n++;continue}if(s==="/"&&e[n+1]==="*"){let l=e.indexOf("*/",n+2);if(l===-1)throw new U("Unclosed block comment",e,n);n=l+2;continue}let a=n;if(or(s)||s==="."&&or(e[n+1])){let l="";if(s==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(l="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)l+=e[n++];else if(s==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(l="0b",n+=2;n<r&&/[01_]/.test(e[n]);)l+=e[n++];else if(s==="0"&&(e[n+1]==="o"||e[n+1]==="O"))for(l="0o",n+=2;n<r&&/[0-7_]/.test(e[n]);)l+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)l+=e[n++];if(e[n]===".")for(l+=e[n++];n<r&&/[0-9_]/.test(e[n]);)l+=e[n++];if(e[n]==="e"||e[n]==="E")for(l+=e[n++],(e[n]==="+"||e[n]==="-")&&(l+=e[n++]);n<r&&or(e[n]);)l+=e[n++]}let u=Number(l.replace(/_/g,""));if(Number.isNaN(u))throw new U("Invalid number",e,a);t.push({type:"num",value:l,parsed:u,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let l="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let u=e[n];if(u==="u")if(e[n+1]==="{"){let d=e.indexOf("}",n);if(d===-1)throw new U("Unclosed Unicode escape",e,a);let p=e.slice(n+2,d);if(!/^[0-9a-fA-F]+$/.test(p)||parseInt(p,16)>1114111)throw new U(`Invalid Unicode escape "\\u{${p}}"`,e,n-1);l+=String.fromCodePoint(parseInt(p,16)),n=d+1}else{let d=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(d))throw new U("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);l+=String.fromCharCode(parseInt(d,16)),n+=5}else if(u==="x"){let d=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(d))throw new U("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);l+=String.fromCharCode(parseInt(d,16)),n+=3}else l+=(o=Hs[u])!=null?o:u,n++}else l+=e[n++];if(n>=r)throw new U("Unclosed string",e,a);n++,t.push({type:"str",value:l,parsed:l,start:a,end:n});continue}if(s==="`"){n++;let l=[],u=[],d="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let p=e[n+1];d+=(i=Hs[p])!=null?i:p,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){l.push(d),d="",n+=2;let p=1,f="";for(;n<r;){let m=e[n];if(m==="{")p++;else if(m==="}"){if(p--,p===0)break}else if(m==='"'||m==="'"||m==="`"){let v=m;for(f+=e[n++];n<r&&e[n]!==v;)e[n]==="\\"&&(f+=e[n++]),f+=e[n++]}f+=e[n++]}if(p!==0)throw new U("Unclosed template interpolation",e,a);n++,u.push(f);continue}d+=e[n++]}if(n>=r)throw new U("Unclosed template literal",e,a);n++,l.push(d),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:l,exprs:u},start:a,end:n});continue}if(su(s)){let l="";for(;n<r&&au(e[n]);)l+=e[n++];t.push({type:"ident",value:l,start:a,end:n});continue}let c;for(let l of ru)if(e.startsWith(l,n)){if(l==="?."&&or(e[n+2]))continue;c=l;break}if(c){n+=c.length,t.push({type:"punct",value:c,start:a,end:n});continue}throw new U(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Ds={"??":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},cu=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),lu=new Set(["!","-","+","~","typeof","void","delete"]),Ps=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Ns=1200,Os=32,$o=0,Fo=class{constructor(t,n){S(this,"tokens",t);S(this,"source",n);S(this,"pos",0);S(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 U(`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>Ns){let t=this.peek();throw new U(`Expression too deeply nested (limit of ${Ns} 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"&&cu.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new U("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 s=this.tokens[r];if(s.type==="punct"&&s.value==="(")n++;else if(s.type==="punct"&&s.value===")"){if(n--,n===0)break}else if(s.type==="eof")break}let o=this.tokens[r+1];if(!o||o.type!=="punct"||o.value!=="=>")return null;this.next();let i;try{i=this.parseParamList()}catch(s){return this.pos=t,null}return this.expect("=>"),{t:"arrow",params:i,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 U("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 U("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 U("Expected a property name",this.source,o.start);let i=this.isPunct(":")?(this.next(),this.parseParam()):{kind:"id",name:o.value};this.isPunct("=")&&(this.next(),i.def=this.parseAssignment()),n.push({key:String(o.value),value:i})}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 U("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 U("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 Ds||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Ds[o];if(s===void 0||s<=t)break;this.next();let a=this.parseBinary(o==="**"?s-1:s);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")&&lu.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 U("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 U("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 U("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($o>=Os)throw new U(`Template literal too deeply nested (limit of ${Os} levels)`,this.source,t.start);$o++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>$e(r))}}finally{$o--}}if(t.type==="ident")return t.value in Ps?(this.next(),{t:"lit",v:Ps[t.value]}):(this.next(),{t:"id",n:t.value});if(t.type==="punct"){if(t.value==="("){this.next();let n=this.parseExpression();return this.expect(")"),n}if(t.value==="[")return this.parseArrayLiteral();if(t.value==="{")return this.parseObjectLiteral()}throw new U(`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 i=this.next();this.expect("("),this.expect(")"),t.push({key:String(i.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 U("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 i=this.parseParamList();t.push({key:o,value:{t:"method",params:i,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}}},jt=new Map,$s=2e3;function $e(e){let t=jt.get(e);if(t)return t;let n=new Fo(ir(e),e).parseProgram();return jt.size>=$s&&uu(),jt.set(e,n),n}function uu(){let e=Math.floor($s/2),t=0;for(let n of jt.keys())if(jt.delete(n),++t>=e)break}function Fs(){jt.clear()}var zs,du=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(zs=Object.hasOwn)!=null?zs:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),fu=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"]),pe={Math,JSON,Date,Number,String,Boolean,Array,Object:du,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console},J=class extends Error{constructor(n,r){super(r?`${n}
57
57
 
58
- Expression: ${r}`:n);S(this,"expression",r);this.name="VoodooRuntimeError"}},Io=Symbol("spread"),cu=new Set(["__proto__","constructor","prototype"]);function Is(e){return typeof e=="string"&&cu.has(e)}function yt(e,t){if(Is(e))throw new ce(`Access blocked to "${String(e)}": template expressions cannot reach the prototype chain. Expose a method in state instead.`,t);return e}function C(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 i=0;i<e.exprs.length;i++)o+=tt(C(e.exprs[i],t)),o+=(r=e.quasis[i+1])!=null?r:"";return o}case"id":{yt(e.n);let o=t.lookup(e.n);return o?o[e.n]:e.n in pe?pe[e.n]:void 0}case"member":{let o=C(e.o,t);if(o==null){if(e.opt)return;throw new ce(`Could not read "${Fo(e,t)}" from ${o===null?"null":"undefined"}`)}let i=yt(e.computed?C(e.p,t):e.p.v);return o[i]}case"call":{let o,i;if(e.callee.t==="member"){let s=C(e.callee.o,t);if(s==null){if(e.callee.opt||e.opt)return;throw new ce(`Could not call "${Fo(e.callee,t)}" from ${s===null?"null":"undefined"}`)}let a=yt(e.callee.computed?C(e.callee.p,t):e.callee.p.v);o=s,i=s[a]}else if(e.callee.t==="id"){yt(e.callee.n);let s=t.lookup(e.callee.n);s?(o=s,i=s[e.callee.n]):i=pe[e.callee.n]}else i=C(e.callee,t);if(i==null&&e.opt)return;if(typeof i!="function"){let s=e.callee.t==="id"?e.callee.n:Fo(e.callee,t);throw e.callee.t==="id"&&!t.lookup(s)&&!(s in pe)?au.has(s)?new ce(`"${s}" is blocked. Expressions run in a sandbox without access to it.`):new ce(`"${s}" was not found. Expressions cannot reach window: expose it with V.config.globals.${s} = ..., or put it in scope with V.data({ ${s} }).`):new ce(`"${s}" is not a function`)}return i.apply(o,lu(e.args,t))}case"unary":{if(e.op==="...")return{[Io]:C(e.a,t)};if(e.op==="typeof"){if(e.a.t==="id"){if(Is(e.a.n))return"undefined";let i=t.lookup(e.a.n);return typeof(i?i[e.a.n]:pe[e.a.n])}return typeof C(e.a,t)}let o=C(e.a,t);switch(e.op){case"!":return!o;case"-":return-o;case"+":return+o;case"void":return}throw new ce(`Unsupported unary operator: ${e.op}`)}case"update":{let o=Number(C(e.a,t)),i=e.op==="++"?o+1:o-1;return Os(e.a,i,t),e.prefix?i:o}case"bin":{let o=C(e.l,t),i=C(e.r,t);switch(e.op){case"+":return o+i;case"-":return o-i;case"*":return o*i;case"/":return o/i;case"%":return o%i;case"**":return o**i;case"==":return o==i;case"!=":return o!=i;case"===":return o===i;case"!==":return o!==i;case"<":return o<i;case">":return o>i;case"<=":return o<=i;case">=":return o>=i;case"in":return o in i;case"instanceof":return o instanceof i}throw new ce(`Unsupported operator: ${e.op}`)}case"logic":{let o=C(e.l,t);return e.op==="&&"?o&&C(e.r,t):e.op==="||"?o||C(e.r,t):o!=null?o:C(e.r,t)}case"cond":return C(e.test,t)?C(e.cons,t):C(e.alt,t);case"assign":{let o;if(e.op==="=")o=C(e.value,t);else if(e.op==="&&="||e.op==="||="||e.op==="??="){let i=C(e.target,t);if(!(e.op==="&&="?!!i:e.op==="||="?!i:i==null))return i;o=C(e.value,t)}else{let i=C(e.target,t),s=C(e.value,t);switch(e.op){case"+=":o=i+s;break;case"-=":o=i-s;break;case"*=":o=i*s;break;case"/=":o=i/s;break;case"%=":o=i%s;break;case"**=":o=i**s;break;default:throw new ce(`Unsupported assignment: ${e.op}`)}}return Os(e.target,o,t),o}case"if":return C(e.test,t)?C(e.cons,t):e.alt?C(e.alt,t):void 0;case"method":{let o=e.params,i=e.body;return function(...s){let a={};for(let u=0;u<o.length;u++)a[o[u]]=s[u];let c=this,l=c!==null&&typeof c=="object"?t.child(c):t;return C(i,l.child(a))}}case"arrow":{let o=e.params,i=e.body;return(...s)=>{let a={};for(let c=0;c<o.length;c++)a[o[c]]=s[c];return C(i,t.child(a))}}case"obj":{let o={};for(let i of e.props)if(i.spread)Object.assign(o,C(i.spread,t));else{let s=yt(i.key!==null?i.key:String(C(i.keyExpr,t)));if(i.getter){let a=C(i.value,t);Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get(){return a.call(this)}});continue}o[s]=C(i.value,t)}return o}case"arr":{let o=[];for(let i of e.els)i&&typeof i=="object"&&"spread"in i?o.push(...C(i.spread,t)):o.push(C(i,t));return o}case"seq":{let o;for(let i of e.body)o=C(i,t);return o}}throw new ce(`Unknown node: ${e.t}`)}function lu(e,t){let n=[];for(let r of e){let o=C(r,t);o&&typeof o=="object"&&Io in o?n.push(...o[Io]):n.push(o)}return n}function Os(e,t,n){if(e.t==="id"){yt(e.n),n.set(e.n,t);return}if(e.t==="member"){let r=C(e.o,n);if(r==null)throw new ce("Could not write to null or undefined");let o=yt(e.computed?C(e.p,n):e.p.v);r[o]=t;return}throw new ce("Invalid assignment target")}function Fo(e,t){return e.t==="member"?e.computed?String(C(e.p,t)):String(e.p.v):e.t==="id"?e.n:"value"}function tt(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)}J();ne();var En=new Map;function H(e,t){En.set(e.startsWith("$")?e:`$${e}`,t)}var wt=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&&En.has(t))return this.magicContainer(t)}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(V(t),this,n!=null?n:this.el)}magicContainer(t){this.magicCache||(this.magicCache=new Map);let n=this.magicCache.get(t);if(n)return n;let r=En.get(t),o=this,i={};return Object.defineProperty(i,t,{get:()=>r(o),set:s=>{let a=r(o);a&&typeof a=="object"&&"set"in a&&a.set(s)},enumerable:!0,configurable:!0}),this.magicCache.set(t,i),i}},Fe=new wt(V({}));ne();J();J();function Ke(){return E.devtools===!0}function Ye(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 Et(e){Ke()&&console.warn(`[Voodoo] ${e}`)}var Bs=new Set;function xn(e,t){Ke()&&(Bs.has(e)||(Bs.add(e),console.warn(`[Voodoo] ${t}`)))}var uu=new Set(["confirm-title","confirm-label","confirm-cancel","hold-duration"]);function qs(e,t,n){Ke()&&(uu.has(n)||xn(`unknown-directive:${n}`,`unknown directive "${t}" at ${Ye(e)}. No directive named "${n}" was registered. Check the spelling or register with V.directive("${n}", ...).`))}function zs(e,t){xn(`unknown-component:${t}`,`component "${t}" not registered at ${Ye(e)}. Register with V.component("${t}", { ... }) before using the tag, or remove the attribute to leave the element as plain HTML.`)}function Us(e,t,n,r){if(!Ke())return;let o=r instanceof Error?r.message.split(`
59
- `)[0]:String(r);Et(`invalid expression in ${t}="${n}" on element ${Ye(e)}.
58
+ Expression: ${r}`:n);S(this,"expression",r);this.name="VoodooRuntimeError"}},jo=Symbol("spread"),En=class{constructor(t){S(this,"value",t)}};function Is(e){return e instanceof En?e.value:e}var pu=new Set(["__proto__","constructor","prototype"]);function Us(e){return typeof e=="string"&&pu.has(e)}function We(e,t){if(Us(e))throw new J(`Access blocked to "${String(e)}": template expressions cannot reach the prototype chain. Expose a method in state instead.`,t);return e}function M(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 i=0;i<e.exprs.length;i++)o+=Ke(M(e.exprs[i],t)),o+=(r=e.quasis[i+1])!=null?r:"";return o}case"id":{We(e.n);let o=t.lookup(e.n);return o?o[e.n]:e.n in pe?pe[e.n]:void 0}case"member":{let o=M(e.o,t);if(o==null){if(e.opt)return;throw new J(`Could not read "${Io(e,t)}" from ${o===null?"null":"undefined"}`)}let i=We(e.computed?M(e.p,t):e.p.v);return o[i]}case"new":{let o=M(e.callee,t);if(typeof o!="function")throw new J(`Cannot construct ${Ke(o)}: it is not a constructor`);if(o===Function)throw new J("Cannot construct Function: expressions never compile code");let i=Bs(e.args,t);return Reflect.construct(o,i)}case"call":{let o,i;if(e.callee.t==="member"){let s=M(e.callee.o,t);if(s==null){if(e.callee.opt||e.opt)return;throw new J(`Could not call "${Io(e.callee,t)}" from ${s===null?"null":"undefined"}`)}let a=We(e.callee.computed?M(e.callee.p,t):e.callee.p.v);o=s,i=s[a]}else if(e.callee.t==="id"){We(e.callee.n);let s=t.lookup(e.callee.n);s?(o=s,i=s[e.callee.n]):i=pe[e.callee.n]}else i=M(e.callee,t);if(i==null&&e.opt)return;if(typeof i!="function"){let s=e.callee.t==="id"?e.callee.n:Io(e.callee,t);throw e.callee.t==="id"&&!t.lookup(s)&&!(s in pe)?fu.has(s)?new J(`"${s}" is blocked. Expressions run in a sandbox without access to it.`):new J(`"${s}" was not found. Expressions cannot reach window: expose it with V.config.globals.${s} = ..., or put it in scope with V.data({ ${s} }).`):new J(`"${s}" is not a function`)}return i.apply(o,Bs(e.args,t))}case"unary":{if(e.op==="...")return{[jo]:M(e.a,t)};if(e.op==="delete"){if(e.a.t!=="member")throw new J("delete needs a property, as in `delete user.name` or `delete list[0]`");let i=M(e.a.o,t);if(i==null)return!0;let s=We(e.a.computed?M(e.a.p,t):e.a.p.v);return delete i[s]}if(e.op==="typeof"){if(e.a.t==="id"){if(Us(e.a.n))return"undefined";let i=t.lookup(e.a.n);return typeof(i?i[e.a.n]:pe[e.a.n])}return typeof M(e.a,t)}let o=M(e.a,t);switch(e.op){case"!":return!o;case"-":return-o;case"+":return+o;case"~":return~o;case"void":return}throw new J(`Unsupported unary operator: ${e.op}`)}case"update":{let o=Number(M(e.a,t)),i=e.op==="++"?o+1:o-1;return qs(e.a,i,t),e.prefix?i:o}case"bin":{let o=M(e.l,t),i=M(e.r,t);switch(e.op){case"+":return o+i;case"-":return o-i;case"*":return o*i;case"/":return o/i;case"%":return o%i;case"**":return o**i;case"==":return o==i;case"!=":return o!=i;case"===":return o===i;case"!==":return o!==i;case"<":return o<i;case">":return o>i;case"<=":return o<=i;case">=":return o>=i;case"in":return o in i;case"instanceof":return o instanceof i;case"&":return o&i;case"|":return o|i;case"^":return o^i;case"<<":return o<<i;case">>":return o>>i;case">>>":return o>>>i}throw new J(`Unsupported operator: ${e.op}`)}case"logic":{let o=M(e.l,t);return e.op==="&&"?o&&M(e.r,t):e.op==="||"?o||M(e.r,t):o!=null?o:M(e.r,t)}case"cond":return M(e.test,t)?M(e.cons,t):M(e.alt,t);case"assign":{let o;if(e.op==="=")o=M(e.value,t);else if(e.op==="&&="||e.op==="||="||e.op==="??="){let i=M(e.target,t);if(!(e.op==="&&="?!!i:e.op==="||="?!i:i==null))return i;o=M(e.value,t)}else{let i=M(e.target,t),s=M(e.value,t);switch(e.op){case"+=":o=i+s;break;case"-=":o=i-s;break;case"*=":o=i*s;break;case"/=":o=i/s;break;case"%=":o=i%s;break;case"**=":o=i**s;break;default:throw new J(`Unsupported assignment: ${e.op}`)}}return qs(e.target,o,t),o}case"if":return M(e.test,t)?M(e.cons,t):e.alt?M(e.alt,t):void 0;case"method":{let o=e.params,i=e.body;return function(...s){let a=js(o,s,t),c=this,l=c!==null&&typeof c=="object"?t.child(c):t;return Is(M(i,l.child(a)))}}case"arrow":{let o=e.params,i=e.body;return(...s)=>Is(M(i,t.child(js(o,s,t))))}case"obj":{let o={};for(let i of e.props)if(i.spread)Object.assign(o,M(i.spread,t));else{let s=We(i.key!==null?i.key:String(M(i.keyExpr,t)));if(i.getter){let a=M(i.value,t);Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get(){return a.call(this)}});continue}o[s]=M(i.value,t)}return o}case"arr":{let o=[];for(let i of e.els)i&&typeof i=="object"&&"spread"in i?o.push(...M(i.spread,t)):o.push(M(i,t));return o}case"return":return new En(e.a?M(e.a,t):void 0);case"seq":{let o;for(let i of e.body)if(o=M(i,t),o instanceof En)return o;return o}}throw new J(`Unknown node: ${e.t}`)}function Bo(e,t,n,r){if(e.kind==="rest"){n[e.name]=t;return}if(e.def!==void 0&&t===void 0&&(t=M(e.def,r.child(n))),e.kind==="id"){n[e.name]=t;return}if(e.kind==="obj"){if(t==null)throw new J(`Cannot destructure ${t===null?"null":"undefined"}`);let i=new Set;for(let{key:s,value:a}of e.props)i.add(s),Bo(a,t[We(s)],n,r);if(e.rest){let s={};for(let a of Object.keys(t))i.has(a)||(s[a]=t[a]);n[e.rest]=s}return}let o=Array.isArray(t)?t:Array.from(t);e.elements.forEach((i,s)=>{i&&Bo(i,o[s],n,r)}),e.rest&&(n[e.rest]=o.slice(e.elements.length))}function js(e,t,n){let r={};for(let o=0;o<e.length;o++){let i=e[o];Bo(i,i.kind==="rest"?t.slice(o):t[o],r,n)}return r}function Bs(e,t){let n=[];for(let r of e){let o=M(r,t);o&&typeof o=="object"&&jo in o?n.push(...o[jo]):n.push(o)}return n}function qs(e,t,n){if(e.t==="id"){We(e.n),n.set(e.n,t);return}if(e.t==="member"){let r=M(e.o,n);if(r==null)throw new J("Could not write to null or undefined");let o=We(e.computed?M(e.p,n):e.p.v);r[o]=t;return}throw new J("Invalid assignment target")}function Io(e,t){return e.t==="member"?e.computed?String(M(e.p,t)):String(e.p.v):e.t==="id"?e.n:"value"}function Ke(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)}Z();re();var xn=new Map;function H(e,t){xn.set(e.startsWith("$")?e:`$${e}`,t)}var wt=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&&xn.has(t))return this.magicContainer(t)}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(V(t),this,n!=null?n:this.el)}magicContainer(t){this.magicCache||(this.magicCache=new Map);let n=this.magicCache.get(t);if(n)return n;let r=xn.get(t),o=this,i={};return Object.defineProperty(i,t,{get:()=>r(o),set:s=>{let a=r(o);a&&typeof a=="object"&&"set"in a&&a.set(s)},enumerable:!0,configurable:!0}),this.magicCache.set(t,i),i}},Fe=new wt(V({}));re();Z();Z();function Qe(){return E.devtools===!0}function Ge(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 Et(e){Qe()&&console.warn(`[Voodoo] ${e}`)}var Vs=new Set;function Tn(e,t){Qe()&&(Vs.has(e)||(Vs.add(e),console.warn(`[Voodoo] ${t}`)))}var mu=new Set(["confirm-title","confirm-label","confirm-cancel","hold-duration"]);function Ws(e,t,n){Qe()&&(mu.has(n)||Tn(`unknown-directive:${n}`,`unknown directive "${t}" at ${Ge(e)}. No directive named "${n}" was registered. Check the spelling or register with V.directive("${n}", ...).`))}function Ks(e,t){Tn(`unknown-component:${t}`,`component "${t}" not registered at ${Ge(e)}. Register with V.component("${t}", { ... }) before using the tag, or remove the attribute to leave the element as plain HTML.`)}function Ys(e,t,n,r){if(!Qe())return;let o=r instanceof Error?r.message.split(`
59
+ `)[0]:String(r);Et(`invalid expression in ${t}="${n}" on element ${Ge(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 Vs(e,t,n){Ke()&&Et(`duplicate key "${String(t)}" in v-for="${n}" on element ${Ye(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 _s(e,t,n){Ke()&&Et(`required prop "${n}" missing from component "${t}" at ${Ye(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function jo(e,t){xn(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var xt=new WeakMap,ar=new WeakMap,Qe=new WeakSet,Bo=new WeakMap;function Vo(e){return Qe.has(e)}function _o(e){Qe.add(e)}function zt(e){return xt.get(e)}function Ce(e){let t=e;for(;t;){let n=xt.get(t);if(n)return n;t=t.parentNode}return Fe}function Xs(e,t){let n=Bo.get(e);n||Bo.set(e,n=[]),n.push(t)}var qo=new WeakSet;function Wo(e){qo.add(e),e.remove()}function Ie(e,t){let n=ar.get(e);n||ar.set(e,n=[]),n.push(t)}function q(e){if(e.nodeType===1){let n=[];for(let r=e.firstChild;r;r=r.nextSibling)(r.nodeType===1||r.nodeType===3)&&n.push(r);for(let r=n.length-1;r>=0;r--)q(n[r])}let t=ar.get(e);if(t){ar.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){z(r,"cleanup")}}e.nodeType===1&&vu(e),xt.delete(e),Bo.delete(e),Qe.delete(e)}var sr=new Map,du=4e3;function qt(e,t){let n=`${e}\0${t}`,r=sr.get(n);if(r!==void 0)return r;let o=fu(e,t);return sr.size>=du&&sr.clear(),sr.set(n,o),o}function fu(e,t){let n=E.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("."),i=o.shift(),s={};for(let u of o){let d=u.indexOf("=");d>-1?s[u.slice(0,d)]=u.slice(d+1):s[u]=!0}let a=i.indexOf(":"),c=a>-1?i.slice(0,a):i,l=a>-1?i.slice(a+1):void 0;return{raw:e,name:c,arg:l,modifiers:s,expression:t}}function pu(e){let t=[],n=Tt.get(e);if(n&&n.size)for(let[r,o]of n){let i=qt(r,o);i&&(t.push(i),Ks(e,i.name))}else{let r=Js(e);for(let o=0;o<r.length;o++){let i=r[o];if(!gu(i))continue;let s=qt(i,e.getAttribute(i));s&&(t.push(s),Ks(e,s.name))}}return t.length<2?t:t.sort((r,o)=>Ws(o)-Ws(r))}var mu=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function Js(e){return mu?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function gu(e){return Yo(e)||e.charCodeAt(0)===46&&e.length>1}function Ws(e){var t,n;return(n=(t=We.get(e.name))==null?void 0:t.priority)!=null?n:0}var Tn=new Map,cr=new WeakMap;function Ks(e,t){let n=Tn.get(t);n||Tn.set(t,n=new Set),n.add(e);let r=cr.get(e);r||cr.set(e,r=new Set),r.add(t)}function vu(e){var n;let t=cr.get(e);if(t){for(let r of t)(n=Tn.get(r))==null||n.delete(e);cr.delete(e)}}function Ko(e,t){var n;return(n=Tn.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${E.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function lr(e,t){let n=[],r=Tn.get(t),o=e;if(r)for(let s of r)s.isConnected&&o.contains&&o.contains(s)&&s!==o&&n.push(s);let i=new Set(n);for(let s of Array.from(e.querySelectorAll(`[${E.prefix}${t}],[data-v-${t}]`)))i.has(s)||(i.add(s),n.push(s));return n.sort((s,a)=>s.compareDocumentPosition(a)&window.Node.DOCUMENT_POSITION_FOLLOWING?-1:1),n}function Ut(e,t){let n=e;for(;n;){if(Ko(n,t))return n;n=n.parentElement}return null}var Tt=new WeakMap;function Yo(e){return e.startsWith(E.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function xe(e,t){var r;let n=(r=Tt.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function nt(e,t){let n=Tt.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function Zs(e){let t=Tt.get(e);if(t)return new Map(t);let n=new Map;for(let r=0;r<e.attributes.length;r++){let o=e.attributes[r];Yo(o.name)&&n.set(o.name,o.value)}return n}function hu(e){if(!E.cleanAttributes)return;let t=Js(e),n=Tt.get(e);n||Tt.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];Yo(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function ea(e){let t=Tt.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function ta(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(E.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function $(e,t,n,r){if(e)try{return C(Oe(e),t)}catch(o){Ke()&&Us(r!=null?r:t.el,n!=null?n:"expression",e,o),z(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var na=new WeakSet;function ra(e){na.add(e)}function Ys(e,t,n){let r=We.get(t.name);if(!r){Ke()&&t.raw.startsWith(E.prefix)&&qs(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new Me(!0);Ie(e,()=>a.stop()),Xs(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return $(a!=null?a:t.expression,n,t.raw,e)},effect(a){let c=i();c.run(()=>Ee(a,{scope:c}))},cleanup(a){Ie(e,a)},walk(a,c){W(a,c)}};try{r.setup(s)}catch(a){z(a,`directive ${t.raw}`)}}var zo=null;function oa(e){zo=e}var yu=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function W(e,t){let n=t!=null?t:Ce(e.parentNode);if(e.nodeType===11){let f=Array.from(e.childNodes);for(let m of f)W(m,n);return}if(e.nodeType===3){ia(e,n);return}if(e.nodeType!==1)return;let r=e;if(Qe.has(r))return;let o=r.tagName;if(yu.has(o))return;if(r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)){Qe.add(r);return}let i=n,s=pu(r),a=le.size===0&&Vt.size===0||r.hasAttribute(`${E.prefix}component`)?null:Lu(o);if(s.length===0&&!a){Qs(r,i);return}Qe.add(r);for(let f of s){let m=We.get(f.name);if(m!=null&&m.terminal){Ys(r,f,i);return}}let c=s.find(f=>f.name==="data"),l=s.find(f=>f.name==="component"),u=l?l.expression||"":a||"",d=!1;if(u&&zo){let f=zo(r,u,i);f&&(i=f,d=!0,xt.set(r,i))}else if(c||l){let f=c?$(c.expression||"{}",i,"v-data"):{};i=i.reactiveChild(f&&typeof f=="object"?f:{},r),xt.set(r,i)}let p=d?n:i;for(let f of s)f.name==="data"||f.name==="component"||Ys(r,f,p);hu(r),na.has(r)||Qs(r,i)}function Qs(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&ia(o,t);for(let o of n)W(o,(r=xt.get(o))!=null?r:t)}var bu=500,Gs=new Map;function wu(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=Oe(t).t!=="seq"}catch(o){r=!1}return Gs.set(t,r),r}function Eu(e,t){let n=0,r=null;for(let o=t;o<e.length;o++){let i=e[o];if(r){i==="\\"?o++:i===r&&(r=null);continue}if(i==='"'||i==="'"||i==="`"){r=i;continue}if(i==="{")n++;else if(i==="}"&&(n--,n===0))return o}return-1}function xu(e){let t=[],n="",r=0,o=()=>{n&&t.push({text:n}),n=""};for(;r<e.length;){let i=e.indexOf("{",r);if(i===-1){n+=e.slice(r);break}n+=e.slice(r,i);let s=e[i+1]==="{",a=s?e.indexOf("}}",i+2):Eu(e,i);if(a===-1){n+=e[i],r=i+1;continue}let c=s?e.slice(i+2,a):e.slice(i+1,a),l=s?a+2:a+1;if((s||c.length<=bu)&&wu(c)){o(),t.push({expression:c.trim(),raw:e.slice(i,l),explicit:s}),r=l;continue}n+=e[i],r=i+1}return o(),t}var Tu=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function ku(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 pe):!1}function ia(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Qe.has(e))return;let r=e.parentElement;for(;r;){if(Tu.has(r.tagName)||r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=xu(n);if(!o.some(s=>s.expression))return;Qe.add(e);let i=new Me(!0);Ie(e,()=>i.stop()),Xs(e,i),i.run(()=>Ee(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let c=$(a.expression,t,"interpolation");s+=ku(a,c,t)?a.raw:tt(c)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function rt(e,t){xt.set(e,t)}function Lu(e){let t=e.toLowerCase();if(le.has(t))return t;let n=Vt.get(t);return n!=null?n:null}var Vt=new Map;var Uo=!1,Bt=null;function sa(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:E.root)!=null?n:document.body;t&&(Object.assign(pe,E.globals),W(t,Fe),Uo||(Uo=!0,E.autoDiscover&&Au(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Au(e){typeof MutationObserver!="undefined"&&(Bt=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(qo.has(o)){qo.delete(o);continue}o.nodeType===1&&!o.isConnected&&q(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Qe.has(o)||W(o,Ce(o.parentNode)))}}}),Bt.observe(e,{childList:!0,subtree:!0}))}function aa(){Bt==null||Bt.disconnect(),Bt=null,Uo=!1}function ca(e){W(e!=null?e:document.body,e?Ce(e.parentNode):Fe)}ne();J();var dr=new Set,la=new Set;function Wt(e,t){let n=bt(e);le.set(n,t),Vt.set(n.replace(/-/g,""),n),Su(n)}function Su(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${E.prefix}component="${e}"]`];for(let o of n){let i;try{i=Array.from(document.querySelectorAll(o))}catch(s){continue}for(let s of i){if((r=zt(s))!=null&&r.component||Mu(s))continue;let a=Ce(s.parentNode);Vo(s)&&(q(s),ea(s)),W(s,a)}}}function Mu(e){let t=e.parentElement;for(;t&&t!==document.body;){if(ta(t)&&!Vo(t))return!0;t=t.parentElement}return!1}function Cu(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 Ru(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 Qo(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Hu(e,t,n,r,o){var l;let i=V({}),s=Object.keys(t),a=new Map;for(let u of s)a.set(u.toLowerCase(),u),a.set(bt(u),u),a.set(Qo(u).toLowerCase(),u);for(let u of s)t[u].default!==void 0&&(i[u]=t[u].default);let c=Array.from(e.attributes);for(let u of c){let d=qt(u.name,u.value);if(d&&d.name==="bind"&&d.arg){let f=(l=a.get(d.arg.toLowerCase()))!=null?l:Qo(d.arg);if(s.length&&!a.has(d.arg.toLowerCase()))continue;r.run(()=>Ee(()=>{i[f]=$(d.expression,n,`:${d.arg}`)}));continue}if(d)continue;let p=a.get(u.name.toLowerCase());p?i[p]=Cu(u.value,t[p]):s.length||(i[Qo(u.name)]=u.value)}for(let u of s)t[u].required&&i[u]===void 0&&_s(e,o,u);return i}function Du(e,t,n){let r=Array.from(e.querySelectorAll("slot"));if(!r.length)return;let o=new Map,i=[];Array.from(t.childNodes).forEach(s=>{var c,l;let a=s.nodeType===1&&(c=s.getAttribute("slot"))!=null?c:null;if(a){s.removeAttribute("slot");let u=(l=o.get(a))!=null?l:[];u.push(s),o.set(a,u)}else i.push(s)});for(let s of r){let a=s.getAttribute("name"),c=a?o.get(a):i,l=document.createDocumentFragment();if(c&&c.length)for(let u of c)l.appendChild(u);else for(;s.firstChild;)l.appendChild(s.firstChild);Array.from(l.childNodes).forEach(u=>{u.nodeType===1&&Pu(u,n)}),s.replaceWith(l)}}var ur=null;function ua(e){ur=e}function Pu(e,t){ur==null||ur(e,t)}function da(e,t,n){var x,M,N,R,ae,B,we,Z;let r=t?bt(t):"",o=r?(N=(M=le.get(r))!=null?M:le.get((x=Vt.get(r))!=null?x:""))!=null?N:{}:{};r&&!le.has(r)&&!Vt.has(r)&&zs(e,t);let i=new Me(!0),s=Ru(o),a=Hu(e,s,n,i,r||"inline");!o.state&&o.data&&jo("data()","state()"),o.destroyed&&jo("destroyed()","unmounted()");let c=(R=o.state)!=null?R:o.data,l={},u={},d=o.inheritScope?n:n.root,p=new wt({},d,e);p.component=u;try{l=c?(ae=c.call(u,a))!=null?ae:{}:{}}catch(A){z(A,`state() of component "${t}"`)}let f=e.getAttribute(`${E.prefix}data`);if(f){let A=$(f,n,"v-data");A&&typeof A=="object"&&Object.assign(l,A)}if(o.provide)try{let A=typeof o.provide=="function"?o.provide.call(u):o.provide;A&&typeof A=="object"&&(p.provides={...A})}catch(A){z(A,`provide() of component "${t}"`)}if(o.inject){let A=Array.isArray(o.inject)?o.inject.map(L=>[L,{from:L}]):Object.entries(o.inject).map(([L,F])=>[L,F!=null?F:{}]);for(let[L,F]of A){let pt=(B=F.from)!=null?B:L,mo=n.inject(pt,F.default);L in l||(l[L]=mo)}}let m=V(l),v={};if(o.computed)for(let[A,L]of Object.entries(o.computed))v[A]=wn(()=>L.call(u));let g={};if(o.methods)for(let[A,L]of Object.entries(o.methods))g[A]=(...F)=>L.apply(u,F);for(let[A,L]of Object.entries(o))typeof L=="function"&&(Nu.has(A)||A==="state"||A==="data"||A in g||(g[A]=(...F)=>L.apply(u,F)));let h=(A,L)=>{let F=new CustomEvent(A,{detail:L,bubbles:!0,cancelable:!0});F.__voodoo=!0,e.dispatchEvent(F)},y={$el:e,$props:a,$name:r||"inline",$scope:p,$parent:(Z=(we=n.owner)==null?void 0:we.component)!=null?Z:null,emit:h,$emit:h,$nextTick:A=>Promise.resolve().then(()=>(ne(),Ms)).then(L=>L.nextTick(A)),$watch:(A,L)=>ve(()=>$(A,p),L)},w={get(A,L){if(typeof L!="symbol")return L==="$refs"?p.allRefs:L in y?y[L]:L in v?v[L].value:L in g?g[L]:L in a?a[L]:m[L]},set(A,L,F){return typeof L=="symbol"?!0:L in v?(v[L].value=F,!0):L in a?(a[L]=F,!0):(m[L]=F,!0)},has(A,L){if(typeof L=="symbol")return!1;let F=L;return F==="$refs"||F in y||F in v||F in g||F in a||F in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(g),...Object.keys(v)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(u,w);if(p.data=T,Object.setPrototypeOf(u,T),o.watch)for(let[A,L]of Object.entries(o.watch))i.run(()=>ve(()=>T[A],(F,pt)=>L.call(T,F,pt)));if(o.style&&!la.has(r)){la.add(r);let A=document.createElement("style");A.setAttribute("data-voodoo-component",r),A.textContent=o.style,document.head.appendChild(A)}if(_t(o,T,"beforeMount"),o.template){let A=document.createDocumentFragment();for(;e.firstChild;)A.appendChild(e.firstChild);e.innerHTML=o.template,Du(e,A,n)}return dr.add(T),fe(()=>{_t(o,T,"mounted"),o.updated&&i.run(()=>Ee(()=>{for(let A of Object.keys(m))m[A];_t(o,T,"updated")}))}),Ie(e,()=>{_t(o,T,"beforeUnmount"),i.stop(),dr.delete(T),_t(o,T,"unmounted"),_t(o,T,"destroyed")}),p}var Nu=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function _t(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){z(o,`hook ${n}`)}}ne();J();var Kt=[],Go=null,fr=0,fa=-1,Jo=0,Xo=!1;function pa(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function $u(){if(Go||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(Go=new MutationObserver(()=>{fr++}),Go.observe(e,{childList:!0,subtree:!0}))}function ma(){if(Xo)return;Xo=!0;let e=()=>{Xo=!1,Ou()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function Ou(){var t;fr===fa?Jo++:Jo=0,fa=fr;let e=pa();for(let n=Kt.length-1;n>=0;n--){let r=Kt[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){Kt.splice(n,1),r.action(o);continue}e-r.since>1e4&&(Kt.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}Kt.length&&ma()}function Zo(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}$u(),Kt.push({...e,since:pa()}),ma()}function ga(){return typeof document=="undefined"||!document.body?!1:Jo>=2}function Fu(){return typeof document=="undefined"||!document.body?!1:fr===0}function pr(e){typeof document!="undefined"&&Zo({ready:()=>ga()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function va(e){if(typeof document!="undefined"){if(Fu()){Promise.resolve().then(e);return}Zo({ready:()=>ga()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function mr(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&Zo({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var Iu=0,gr=null;function ha(e){gr=e}function ya(e={}){let t=`voodoo-app-${++Iu}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,c="",l=null,u=[];function d(){if(n)for(let[m,v]of Object.entries(n)){let g=bt(m);le.has(g)||(Wt(g,v),s.push(g))}}function p(m){var g,h;if(l)return l;a=m,c=m.innerHTML,Object.assign(pe,o.globalProperties),d();let v={...r};if(Object.keys(i).length){let y=v.provide;v.provide=()=>({...typeof y=="function"?y():y!=null?y:{},...i})}Wt(t,v),m.setAttribute(`${E.prefix}component`,t);try{W(m,Fe)}catch(y){return z(y,`application mounting "${t}"`),null}if(l=(h=(g=zt(m))==null?void 0:g.component)!=null?h:null,l){let y=u;u=[];for(let w of y)w(l)}return l}let f={name:t,config:o,get instance(){return l},get container(){return a},get isMounted(){return l!==null},component(m,v){var h;let g=bt(m);return v===void 0?(h=n&&n[m])!=null?h:le.get(g):(n?n[m]=v:e.components={[m]:v},l&&!le.has(g)&&(Wt(g,v),s.push(g)),f)},directive(m,v){return gr==null||gr(m,v),f},use(m,v){return ir(ju(),m,v),f},provide(m,v){return i[m]=v,f},mount(m){if(l)return l;if(typeof m!="string")return p(m);let v=null;return mr(m,g=>{v=p(g)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),v},whenMounted(){return l?Promise.resolve(l):new Promise(m=>u.push(m))},unmount(){if(a){q(a),a.removeAttribute(`${E.prefix}component`),a.innerHTML=c,le.delete(t);for(let m of s)le.delete(m);s.length=0,l=null,a=null}}};return f}var ba=null;function wa(e){ba=e}function ju(){return ba}ne();ne();var ot=new Map,ei=bn(0),ti=new Map;function Ea(e,t,n={}){let r=ot.get(e);if(!t){if(!r){let c=V({});return ot.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}`,i=Object.getOwnPropertyDescriptors(t),s=Object.defineProperties({},i);if(n.persist&&typeof localStorage!="undefined")try{let c=localStorage.getItem(o);if(c){let l=JSON.parse(c);for(let[u,d]of Object.entries(l))i[u]&&!("value"in i[u])||(s[u]=d)}}catch(c){}let a=V(s);for(let[c,l]of Object.entries(i)){let u=l.value;typeof u=="function"&&(a[c]=(...d)=>u.apply(a,d))}if(ot.set(e,a),ei.value++,n.persist&&typeof localStorage!="undefined"){let c=ve(a,()=>{try{localStorage.setItem(o,JSON.stringify(Bu(a)))}catch(l){}},{deep:!0});ti.set(e,c)}return a}function Bu(e){let t={},n=Object.getOwnPropertyDescriptors(oe(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var vr=new Proxy({},{get:(e,t)=>(ei.value,ot.get(t)),has:(e,t)=>(ei.value,ot.has(t)),ownKeys:()=>[...ot.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function xa(e){var t;(t=ti.get(e))==null||t(),ti.delete(e),ot.delete(e)}function Ta(){return[...ot.keys()]}var ni={};Xn(ni,{capitalize:()=>La,chunk:()=>Ku,clone:()=>kn,debounce:()=>be,device:()=>ee,escapeHtml:()=>kt,formatCurrency:()=>od,formatDate:()=>sd,formatFileSize:()=>cd,formatNumber:()=>id,formatPercent:()=>ld,get:()=>Qu,groupBy:()=>_u,isBrowser:()=>hr,matchesMedia:()=>Yt,memoize:()=>Vu,merge:()=>ka,once:()=>Uu,parseDuration:()=>U,random:()=>Xu,relativeTime:()=>ad,sample:()=>Ju,set:()=>Gu,setFormatDefaults:()=>rd,sleep:()=>zu,slugify:()=>Zu,sortBy:()=>Yu,stripTags:()=>nd,throttle:()=>Ln,titleCase:()=>td,truncate:()=>ed,uid:()=>ue,unique:()=>Wu,uuid:()=>qu});function qu(){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 ue(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function zu(e){return new Promise(t=>setTimeout(t,e))}function U(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 be(e,t=250,n=!1){let r=null,o=null,i,s=function(...a){o=a,i=this;let c=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(i,o)},t),c&&e.apply(this,a)};return s.cancel=()=>{r&&clearTimeout(r),r=null,o=null},s.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(i,o))},s}function Ln(e,t=250){let n=0,r=null,o=null,i=function(...s){let a=Date.now();o=s;let c=t-(a-n);c<=0?(r&&(clearTimeout(r),r=null),n=a,e.apply(this,s)):r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&e.apply(this,o)},c))};return i.cancel=()=>{r&&clearTimeout(r),r=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},i}function Uu(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function Vu(e,t=(...n)=>JSON.stringify(n)){let n=new Map,r=function(...o){let i=t(...o);if(n.has(i))return n.get(i);let s=e.apply(this,o);return n.set(i,s),s};return r.cache=n,r}function kn(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=>kn(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,kn(r)]));if(e instanceof Set)return new Set([...e].map(n=>kn(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=kn(r);return t}function ka(e,...t){for(let n of t)if(n)for(let[r,o]of Object.entries(n)){let i=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&i&&typeof i=="object"&&!Array.isArray(i)?e[r]=ka({...i},o):e[r]=o}return e}function _u(e,t){let n={},r=typeof t=="function"?t:o=>o==null?void 0:o[t];for(let o of e){let i=String(r(o));(n[i]||(n[i]=[])).push(o)}return n}function Wu(e,t){if(!t)return[...new Set(e)];let n=typeof t=="function"?t:i=>i==null?void 0:i[t],r=new Set,o=[];for(let i of e){let s=n(i);r.has(s)||(r.add(s),o.push(i))}return o}function Ku(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 Yu(e,t,n="asc"){let r=typeof t=="function"?t:i=>i==null?void 0:i[t],o=n==="desc"?-1:1;return[...e].sort((i,s)=>{let a=r(i),c=r(s);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 Qu(e,t,n){let r=t.split("."),o=e;for(let i of r){if(o==null)return n;o=o[i]}return o!=null?o:n}function Gu(e,t,n){let r=t.split("."),o=e;for(let i=0;i<r.length-1;i++){let s=r[i];(typeof o[s]!="object"||o[s]===null)&&(o[s]=/^\d+$/.test(r[i+1])?[]:{}),o=o[s]}o[r[r.length-1]]=n}function Xu(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function Ju(e){return e[Math.floor(Math.random()*e.length)]}function Zu(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 ed(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 La(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function td(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>La(t.toLowerCase()))}function kt(e){return String(e!=null?e:"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function nd(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var Qt="pt-BR",Aa="BRL";function rd(e,t){e&&(Qt=e),t&&(Aa=t)}function od(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:Qt,{style:"currency",currency:(o=t.currency)!=null?o:Aa}).format(n)}function id(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:Qt,o).format(n)}function sd(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:Qt;if(typeof t=="object")return new Intl.DateTimeFormat(o,t).format(r);let i={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(i[t])return new Intl.DateTimeFormat(o,i[t]).format(r);let s=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,s(r.getMonth()+1)).replace(/DD/g,s(r.getDate())).replace(/HH/g,s(r.getHours())).replace(/mm/g,s(r.getMinutes())).replace(/ss/g,s(r.getSeconds()))}function ad(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),i=[["year",31536e6],["month",2592e6],["week",6048e5],["day",864e5],["hour",36e5],["minute",6e4],["second",1e3]],s=new Intl.RelativeTimeFormat(t!=null?t:Qt,{numeric:"auto"});for(let[a,c]of i)if(o>=c||a==="second")return s.format(Math.round(r/c),a);return""}function cd(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 ld(e,t=0,n){return new Intl.NumberFormat(n!=null?n:Qt,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var hr=typeof window!="undefined"&&typeof window.document!="undefined";function Yt(e){if(!hr||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var ee={get touch(){return hr&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return Yt("(max-width: 767px)")},get tablet(){return Yt("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return Yt("(min-width: 1024px)")},get online(){return!hr||navigator.onLine},get reducedMotion(){return Yt("(prefers-reduced-motion: reduce)")},get darkMode(){return Yt("(prefers-color-scheme: dark)")}};var te=class extends Error{constructor(n,r,o,i){super(n);S(this,"response",r);S(this,"config",o);S(this,"cause",i);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}},de={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},yr=[],br=[],An=[],Sn=new Map;function Sa(e){var t;return`${(t=e.method)!=null?t:"GET"} ${Xt(e)}`}function ud(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 Ca="voodoo:offline-queue";function ri(){try{return JSON.parse(localStorage.getItem(Ca)||"[]")}catch(e){return[]}}function oi(e){try{localStorage.setItem(Ca,JSON.stringify(e))}catch(t){}}function dd(e){var n,r;if(typeof localStorage=="undefined")return;let t=ri();t.push({url:Xt(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),oi(t)}async function Ra(){if(typeof localStorage=="undefined")return 0;let e=ri();if(!e.length)return 0;oi([]);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 i=ri();oi([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Ra()});function Xt(e){let t=e.url,n=de.baseURL;if(n&&!/^https?:\/\//i.test(t)&&!t.startsWith("//")&&(t=`${n.replace(/\/$/,"")}/${t.replace(/^\//,"")}`),e.params){let r=new URLSearchParams;for(let[i,s]of Object.entries(e.params))s==null||s===""||r.append(i,String(s));let o=r.toString();o&&(t+=(t.includes("?")?"&":"?")+o)}return t}function Ha(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${de.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function fd(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 pd(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 md=new Set(["GET","HEAD","OPTIONS"]);function gd(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function vd(e,t,n,r){var o;return md.has(e)||t.retryUnsafe===!0||gd(n)?!0:(((o=t.retry)!=null?o:0)>0&&xn(`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 u,d,p,f,m;let t={method:"GET",timeout:de.timeout,retry:de.retry,retryDelay:de.retryDelay,credentials:de.credentials,responseType:"auto",...e,headers:{...de.headers,...e.headers}};for(let v of yr)t=await v(t);let n=((u=t.method)!=null?u:"GET").toUpperCase();if(t.cache&&n==="GET"){let v=Sn.get(Sa(t));if(v&&v.expires>Date.now())return v.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return dd(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 v=Ha();v&&!r[de.csrfHeader]&&(r[de.csrfHeader]=v)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=fd(t.body,r),i=Xt(t),s=vd(n,t,r,i)?((d=t.retry)!=null?d:0)+1:1,a;for(let v=0;v<s;v++){let g=new AbortController,h=t.signal,y=null;h&&(h.aborted?g.abort(h.reason):(y=()=>g.abort(h.reason),h.addEventListener("abort",y,{once:!0})));let w=()=>{y&&h&&h.removeEventListener("abort",y),y=null},T=t.timeout&&t.timeout>0?setTimeout(()=>g.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let x=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:g.signal});T&&clearTimeout(T),w();let N={data:await pd(x,t.responseType),status:x.status,statusText:x.statusText,headers:x.headers,ok:x.ok,raw:x,config:t};if(!x.ok){if(x.status>=500&&v<s-1){await Ma(((p=t.retryDelay)!=null?p:500)*2**v);continue}let R=new te(`Request failed with status ${x.status}`,N,t);for(let ae of An)ae(R);throw R}for(let R of br)N=await R(N);return t.cache&&n==="GET"&&Sn.set(Sa(t),{expires:Date.now()+t.cache,value:N}),N}catch(x){if(T&&clearTimeout(T),w(),x instanceof te)throw x;if(a=x,(x==null?void 0:x.name)==="AbortError"&&((f=t.signal)==null?void 0:f.aborted))break;if(v<s-1){await Ma(((m=t.retryDelay)!=null?m:500)*2**v);continue}}}let c=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,l=new te(c,void 0,t,a);for(let v of An)v(l);throw l}function Ma(e){return new Promise(t=>setTimeout(t,e))}async function Gt(e){return(await it(e)).data}var me={defaults:de,get(e,t={}){return Gt({...t,url:e,method:"GET"})},post(e,t,n={}){return Gt({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return Gt({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return Gt({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return Gt({...t,url:e,method:"DELETE"})},head(e,t={}){return Gt({...t,url:e,method:"HEAD"})},request:it,upload(e,t,n={}){return new Promise((r,o)=>{var c,l;let i=new XMLHttpRequest,s=Xt({url:e});i.open((c=n.method)!=null?c:"POST",s);for(let[u,d]of Object.entries({...de.headers,...n.headers}))u.toLowerCase()!=="content-type"&&i.setRequestHeader(u,d);let a=Ha();a&&i.setRequestHeader(de.csrfHeader,a),i.upload.addEventListener("progress",u=>{var d;u.lengthComputable&&((d=n.onProgress)==null||d.call(n,Math.round(u.loaded/u.total*100),u.loaded,u.total))}),i.addEventListener("load",()=>{let u=i.getResponseHeader("content-type")||"",d=i.responseText;if(u.includes("json"))try{d=JSON.parse(i.responseText)}catch(p){}i.status>=200&&i.status<300?r(d):o(new te(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new te("Network failure during upload"))),i.addEventListener("abort",()=>o(new te("Upload canceled"))),(l=n.signal)==null||l.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(Xt({url:e}));return n.addEventListener("message",r=>{var i;let o=r.data;try{o=JSON.parse(r.data)}catch(s){}(i=t.message)==null||i.call(t,o,r)}),t.error&&n.addEventListener("error",t.error),n},async stream(e,t,n={}){var a;let r=await fetch(Xt({url:e,params:n.params}),{headers:{...de.headers,...n.headers},signal:n.signal});if(!r.body)return;let o=r.body.getReader(),i=new TextDecoder,s="";for(;;){let{done:c,value:l}=await o.read();if(c)break;s+=i.decode(l,{stream:!0});let u=s.split(`
62
- `);s=(a=u.pop())!=null?a:"";for(let d of u)d.trim()&&t(d)}s.trim()&&t(s)},interceptors:{request:{use(e){return yr.push(e),()=>{let t=yr.indexOf(e);t>-1&&yr.splice(t,1)}}},response:{use(e){return br.push(e),()=>{let t=br.indexOf(e);t>-1&&br.splice(t,1)}}},error:{use(e){return An.push(e),()=>{let t=An.indexOf(e);t>-1&&An.splice(t,1)}}}},setHeader(e,t){t===null?delete de.headers[e]:de.headers[e]=t},setToken(e,t="Bearer"){this.setHeader("Authorization",e?`${t} ${e}`:null)},setBaseURL(e){de.baseURL=e},clearCache:ud,flushOfflineQueue:Ra,parseDuration:U};Te();var hd=`
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 Qs(e,t,n){Qe()&&Et(`duplicate key "${String(t)}" in v-for="${n}" on element ${Ge(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 Gs(e,t,n){Qe()&&Et(`required prop "${n}" missing from component "${t}" at ${Ge(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function qo(e,t){Tn(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var xt=new WeakMap,cr=new WeakMap,Xe=new WeakSet,zo=new WeakMap;function Wo(e){return Xe.has(e)}function Ko(e){Xe.add(e)}function zt(e){return xt.get(e)}function Ce(e){let t=e;for(;t;){let n=xt.get(t);if(n)return n;t=t.parentNode}return Fe}function na(e,t){let n=zo.get(e);n||zo.set(e,n=[]),n.push(t)}var Uo=new WeakSet;function Yo(e){Uo.add(e),e.remove()}function Ie(e,t){let n=cr.get(e);n||cr.set(e,n=[]),n.push(t)}function q(e){if(e.nodeType===1){let n=[];for(let r=e.firstChild;r;r=r.nextSibling)(r.nodeType===1||r.nodeType===3)&&n.push(r);for(let r=n.length-1;r>=0;r--)q(n[r])}let t=cr.get(e);if(t){cr.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){z(r,"cleanup")}}e.nodeType===1&&wu(e),xt.delete(e),zo.delete(e),Xe.delete(e)}var ar=new Map,gu=4e3;function qt(e,t){let n=`${e}\0${t}`,r=ar.get(n);if(r!==void 0)return r;let o=vu(e,t);return ar.size>=gu&&ar.clear(),ar.set(n,o),o}function vu(e,t){let n=E.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("."),i=o.shift(),s={};for(let u of o){let d=u.indexOf("=");d>-1?s[u.slice(0,d)]=u.slice(d+1):s[u]=!0}let a=i.indexOf(":"),c=a>-1?i.slice(0,a):i,l=a>-1?i.slice(a+1):void 0;return{raw:e,name:c,arg:l,modifiers:s,expression:t}}function hu(e){let t=[],n=Tt.get(e);if(n&&n.size)for(let[r,o]of n){let i=qt(r,o);i&&(t.push(i),Js(e,i.name))}else{let r=ra(e);for(let o=0;o<r.length;o++){let i=r[o];if(!bu(i))continue;let s=qt(i,e.getAttribute(i));s&&(t.push(s),Js(e,s.name))}}return t.length<2?t:t.sort((r,o)=>Xs(o)-Xs(r))}var yu=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function ra(e){return yu?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function bu(e){return Go(e)||e.charCodeAt(0)===46&&e.length>1}function Xs(e){var t,n;return(n=(t=Ye.get(e.name))==null?void 0:t.priority)!=null?n:0}var kn=new Map,lr=new WeakMap;function Js(e,t){let n=kn.get(t);n||kn.set(t,n=new Set),n.add(e);let r=lr.get(e);r||lr.set(e,r=new Set),r.add(t)}function wu(e){var n;let t=lr.get(e);if(t){for(let r of t)(n=kn.get(r))==null||n.delete(e);lr.delete(e)}}function Qo(e,t){var n;return(n=kn.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${E.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function ur(e,t){let n=[],r=kn.get(t),o=e;if(r)for(let s of r)s.isConnected&&o.contains&&o.contains(s)&&s!==o&&n.push(s);let i=new Set(n);for(let s of Array.from(e.querySelectorAll(`[${E.prefix}${t}],[data-v-${t}]`)))i.has(s)||(i.add(s),n.push(s));return n.sort((s,a)=>s.compareDocumentPosition(a)&window.Node.DOCUMENT_POSITION_FOLLOWING?-1:1),n}function Ut(e,t){let n=e;for(;n;){if(Qo(n,t))return n;n=n.parentElement}return null}var Tt=new WeakMap;function Go(e){return e.startsWith(E.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function xe(e,t){var r;let n=(r=Tt.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function rt(e,t){let n=Tt.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function oa(e){let t=Tt.get(e);if(t)return new Map(t);let n=new Map;for(let r=0;r<e.attributes.length;r++){let o=e.attributes[r];Go(o.name)&&n.set(o.name,o.value)}return n}function Eu(e){if(!E.cleanAttributes)return;let t=ra(e),n=Tt.get(e);n||Tt.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];Go(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function ia(e){let t=Tt.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function sa(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(E.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function O(e,t,n,r){if(e)try{return M($e(e),t)}catch(o){Qe()&&Ys(r!=null?r:t.el,n!=null?n:"expression",e,o),z(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var aa=new WeakSet;function ca(e){aa.add(e)}function Zs(e,t,n){let r=Ye.get(t.name);if(!r){Qe()&&t.raw.startsWith(E.prefix)&&Ws(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new Me(!0);Ie(e,()=>a.stop()),na(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return O(a!=null?a:t.expression,n,t.raw,e)},effect(a){let c=i();c.run(()=>Ee(a,{scope:c}))},cleanup(a){Ie(e,a)},walk(a,c){W(a,c)}};try{r.setup(s)}catch(a){z(a,`directive ${t.raw}`)}}var _o=null;function la(e){_o=e}var xu=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function W(e,t){let n=t!=null?t:Ce(e.parentNode);if(e.nodeType===11){let f=Array.from(e.childNodes);for(let m of f)W(m,n);return}if(e.nodeType===3){ua(e,n);return}if(e.nodeType!==1)return;let r=e;if(Xe.has(r))return;let o=r.tagName;if(xu.has(o))return;if(r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)){Xe.add(r);return}let i=n,s=hu(r),a=le.size===0&&_t.size===0||r.hasAttribute(`${E.prefix}component`)?null:Cu(o);if(s.length===0&&!a){ea(r,i);return}Xe.add(r);for(let f of s){let m=Ye.get(f.name);if(m!=null&&m.terminal){Zs(r,f,i);return}}let c=s.find(f=>f.name==="data"),l=s.find(f=>f.name==="component"),u=l?l.expression||"":a||"",d=!1;if(u&&_o){let f=_o(r,u,i);f&&(i=f,d=!0,xt.set(r,i))}else if(c||l){let f=c?O(c.expression||"{}",i,"v-data"):{};i=i.reactiveChild(f&&typeof f=="object"?f:{},r),xt.set(r,i)}let p=d?n:i;for(let f of s)f.name==="data"||f.name==="component"||Zs(r,f,p);Eu(r),aa.has(r)||ea(r,i)}function ea(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&ua(o,t);for(let o of n)W(o,(r=xt.get(o))!=null?r:t)}var Tu=500,ta=new Map;function ku(e){let t=e.trim();if(!t)return!1;let n=ta.get(t);if(n!==void 0)return n;let r=!0;try{r=$e(t).t!=="seq"}catch(o){r=!1}return ta.set(t,r),r}function Lu(e,t){let n=0,r=null;for(let o=t;o<e.length;o++){let i=e[o];if(r){i==="\\"?o++:i===r&&(r=null);continue}if(i==='"'||i==="'"||i==="`"){r=i;continue}if(i==="{")n++;else if(i==="}"&&(n--,n===0))return o}return-1}function Au(e){let t=[],n="",r=0,o=()=>{n&&t.push({text:n}),n=""};for(;r<e.length;){let i=e.indexOf("{",r);if(i===-1){n+=e.slice(r);break}n+=e.slice(r,i);let s=e[i+1]==="{",a=s?e.indexOf("}}",i+2):Lu(e,i);if(a===-1){n+=e[i],r=i+1;continue}let c=s?e.slice(i+2,a):e.slice(i+1,a),l=s?a+2:a+1;if((s||c.length<=Tu)&&ku(c)){o(),t.push({expression:c.trim(),raw:e.slice(i,l),explicit:s}),r=l;continue}n+=e[i],r=i+1}return o(),t}var Su=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function Mu(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=$e(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 pe):!1}function ua(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Xe.has(e))return;let r=e.parentElement;for(;r;){if(Su.has(r.tagName)||r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Au(n);if(!o.some(s=>s.expression))return;Xe.add(e);let i=new Me(!0);Ie(e,()=>i.stop()),na(e,i),i.run(()=>Ee(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let c=O(a.expression,t,"interpolation");s+=Mu(a,c,t)?a.raw:Ke(c)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function ot(e,t){xt.set(e,t)}function Cu(e){let t=e.toLowerCase();if(le.has(t))return t;let n=_t.get(t);return n!=null?n:null}var _t=new Map;var Vo=!1,Bt=null;function da(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:E.root)!=null?n:document.body;t&&(Object.assign(pe,E.globals),W(t,Fe),Vo||(Vo=!0,E.autoDiscover&&Ru(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Ru(e){typeof MutationObserver!="undefined"&&(Bt=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(Uo.has(o)){Uo.delete(o);continue}o.nodeType===1&&!o.isConnected&&q(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Xe.has(o)||W(o,Ce(o.parentNode)))}}}),Bt.observe(e,{childList:!0,subtree:!0}))}function fa(){Bt==null||Bt.disconnect(),Bt=null,Vo=!1}function pa(e){W(e!=null?e:document.body,e?Ce(e.parentNode):Fe)}re();Z();var fr=new Set,ma=new Set;function Wt(e,t){let n=bt(e);le.set(n,t),_t.set(n.replace(/-/g,""),n),Hu(n)}function Hu(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${E.prefix}component="${e}"]`];for(let o of n){let i;try{i=Array.from(document.querySelectorAll(o))}catch(s){continue}for(let s of i){if((r=zt(s))!=null&&r.component||Du(s))continue;let a=Ce(s.parentNode);Wo(s)&&(q(s),ia(s)),W(s,a)}}}function Du(e){let t=e.parentElement;for(;t&&t!==document.body;){if(sa(t)&&!Wo(t))return!0;t=t.parentElement}return!1}function Pu(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 Nu(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 Xo(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Ou(e,t,n,r,o){var l;let i=V({}),s=Object.keys(t),a=new Map;for(let u of s)a.set(u.toLowerCase(),u),a.set(bt(u),u),a.set(Xo(u).toLowerCase(),u);for(let u of s)t[u].default!==void 0&&(i[u]=t[u].default);let c=Array.from(e.attributes);for(let u of c){let d=qt(u.name,u.value);if(d&&d.name==="bind"&&d.arg){let f=(l=a.get(d.arg.toLowerCase()))!=null?l:Xo(d.arg);if(s.length&&!a.has(d.arg.toLowerCase()))continue;r.run(()=>Ee(()=>{i[f]=O(d.expression,n,`:${d.arg}`)}));continue}if(d)continue;let p=a.get(u.name.toLowerCase());p?i[p]=Pu(u.value,t[p]):s.length||(i[Xo(u.name)]=u.value)}for(let u of s)t[u].required&&i[u]===void 0&&Gs(e,o,u);return i}function $u(e,t,n){let r=Array.from(e.querySelectorAll("slot"));if(!r.length)return;let o=new Map,i=[];Array.from(t.childNodes).forEach(s=>{var c,l;let a=s.nodeType===1&&(c=s.getAttribute("slot"))!=null?c:null;if(a){s.removeAttribute("slot");let u=(l=o.get(a))!=null?l:[];u.push(s),o.set(a,u)}else i.push(s)});for(let s of r){let a=s.getAttribute("name"),c=a?o.get(a):i,l=document.createDocumentFragment();if(c&&c.length)for(let u of c)l.appendChild(u);else for(;s.firstChild;)l.appendChild(s.firstChild);Array.from(l.childNodes).forEach(u=>{u.nodeType===1&&Fu(u,n)}),s.replaceWith(l)}}var dr=null;function ga(e){dr=e}function Fu(e,t){dr==null||dr(e,t)}function va(e,t,n){var x,C,N,R,ce,B,we,ee;let r=t?bt(t):"",o=r?(N=(C=le.get(r))!=null?C:le.get((x=_t.get(r))!=null?x:""))!=null?N:{}:{};r&&!le.has(r)&&!_t.has(r)&&Ks(e,t);let i=new Me(!0),s=Nu(o),a=Ou(e,s,n,i,r||"inline");!o.state&&o.data&&qo("data()","state()"),o.destroyed&&qo("destroyed()","unmounted()");let c=(R=o.state)!=null?R:o.data,l={},u={},d=o.inheritScope?n:n.root,p=new wt({},d,e);p.component=u;try{l=c?(ce=c.call(u,a))!=null?ce:{}:{}}catch(A){z(A,`state() of component "${t}"`)}let f=e.getAttribute(`${E.prefix}data`);if(f){let A=O(f,n,"v-data");A&&typeof A=="object"&&Object.assign(l,A)}if(o.provide)try{let A=typeof o.provide=="function"?o.provide.call(u):o.provide;A&&typeof A=="object"&&(p.provides={...A})}catch(A){z(A,`provide() of component "${t}"`)}if(o.inject){let A=Array.isArray(o.inject)?o.inject.map(L=>[L,{from:L}]):Object.entries(o.inject).map(([L,F])=>[L,F!=null?F:{}]);for(let[L,F]of A){let mt=(B=F.from)!=null?B:L,go=n.inject(mt,F.default);L in l||(l[L]=go)}}let m=V(l),v={};if(o.computed)for(let[A,L]of Object.entries(o.computed))v[A]=wn(()=>L.call(u));let g={};if(o.methods)for(let[A,L]of Object.entries(o.methods))g[A]=(...F)=>L.apply(u,F);for(let[A,L]of Object.entries(o))typeof L=="function"&&(Iu.has(A)||A==="state"||A==="data"||A in g||(g[A]=(...F)=>L.apply(u,F)));let h=(A,L)=>{let F=new CustomEvent(A,{detail:L,bubbles:!0,cancelable:!0});F.__voodoo=!0,e.dispatchEvent(F)},y={$el:e,$props:a,$name:r||"inline",$scope:p,$parent:(ee=(we=n.owner)==null?void 0:we.component)!=null?ee:null,emit:h,$emit:h,$nextTick:A=>Promise.resolve().then(()=>(re(),Rs)).then(L=>L.nextTick(A)),$watch:(A,L)=>ve(()=>O(A,p),L)},w={get(A,L){if(typeof L!="symbol")return L==="$refs"?p.allRefs:L in y?y[L]:L in v?v[L].value:L in g?g[L]:L in a?a[L]:m[L]},set(A,L,F){return typeof L=="symbol"?!0:L in v?(v[L].value=F,!0):L in a?(a[L]=F,!0):(m[L]=F,!0)},has(A,L){if(typeof L=="symbol")return!1;let F=L;return F==="$refs"||F in y||F in v||F in g||F in a||F in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(g),...Object.keys(v)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(u,w);if(p.data=T,Object.setPrototypeOf(u,T),o.watch)for(let[A,L]of Object.entries(o.watch))i.run(()=>ve(()=>T[A],(F,mt)=>L.call(T,F,mt)));if(o.style&&!ma.has(r)){ma.add(r);let A=document.createElement("style");A.setAttribute("data-voodoo-component",r),A.textContent=o.style,document.head.appendChild(A)}if(Vt(o,T,"beforeMount"),o.template){let A=document.createDocumentFragment();for(;e.firstChild;)A.appendChild(e.firstChild);e.innerHTML=o.template,$u(e,A,n)}return fr.add(T),fe(()=>{Vt(o,T,"mounted"),o.updated&&i.run(()=>Ee(()=>{for(let A of Object.keys(m))m[A];Vt(o,T,"updated")}))}),Ie(e,()=>{Vt(o,T,"beforeUnmount"),i.stop(),fr.delete(T),Vt(o,T,"unmounted"),Vt(o,T,"destroyed")}),p}var Iu=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function Vt(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){z(o,`hook ${n}`)}}re();Z();var Kt=[],Jo=null,pr=0,ha=-1,ei=0,Zo=!1;function ya(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function ju(){if(Jo||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(Jo=new MutationObserver(()=>{pr++}),Jo.observe(e,{childList:!0,subtree:!0}))}function ba(){if(Zo)return;Zo=!0;let e=()=>{Zo=!1,Bu()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function Bu(){var t;pr===ha?ei++:ei=0,ha=pr;let e=ya();for(let n=Kt.length-1;n>=0;n--){let r=Kt[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){Kt.splice(n,1),r.action(o);continue}e-r.since>1e4&&(Kt.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}Kt.length&&ba()}function ti(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}ju(),Kt.push({...e,since:ya()}),ba()}function wa(){return typeof document=="undefined"||!document.body?!1:ei>=2}function qu(){return typeof document=="undefined"||!document.body?!1:pr===0}function mr(e){typeof document!="undefined"&&ti({ready:()=>wa()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function Ea(e){if(typeof document!="undefined"){if(qu()){Promise.resolve().then(e);return}ti({ready:()=>wa()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function gr(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&ti({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var zu=0,vr=null;function xa(e){vr=e}function Ta(e={}){let t=`voodoo-app-${++zu}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,c="",l=null,u=[];function d(){if(n)for(let[m,v]of Object.entries(n)){let g=bt(m);le.has(g)||(Wt(g,v),s.push(g))}}function p(m){var g,h;if(l)return l;a=m,c=m.innerHTML,Object.assign(pe,o.globalProperties),d();let v={...r};if(Object.keys(i).length){let y=v.provide;v.provide=()=>({...typeof y=="function"?y():y!=null?y:{},...i})}Wt(t,v),m.setAttribute(`${E.prefix}component`,t);try{W(m,Fe)}catch(y){return z(y,`application mounting "${t}"`),null}if(l=(h=(g=zt(m))==null?void 0:g.component)!=null?h:null,l){let y=u;u=[];for(let w of y)w(l)}return l}let f={name:t,config:o,get instance(){return l},get container(){return a},get isMounted(){return l!==null},component(m,v){var h;let g=bt(m);return v===void 0?(h=n&&n[m])!=null?h:le.get(g):(n?n[m]=v:e.components={[m]:v},l&&!le.has(g)&&(Wt(g,v),s.push(g)),f)},directive(m,v){return vr==null||vr(m,v),f},use(m,v){return sr(Uu(),m,v),f},provide(m,v){return i[m]=v,f},mount(m){if(l)return l;if(typeof m!="string")return p(m);let v=null;return gr(m,g=>{v=p(g)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),v},whenMounted(){return l?Promise.resolve(l):new Promise(m=>u.push(m))},unmount(){if(a){q(a),a.removeAttribute(`${E.prefix}component`),a.innerHTML=c,le.delete(t);for(let m of s)le.delete(m);s.length=0,l=null,a=null}}};return f}var ka=null;function La(e){ka=e}function Uu(){return ka}re();re();var it=new Map,ni=bn(0),ri=new Map;function Aa(e,t,n={}){let r=it.get(e);if(!t){if(!r){let c=V({});return it.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}`,i=Object.getOwnPropertyDescriptors(t),s=Object.defineProperties({},i);if(n.persist&&typeof localStorage!="undefined")try{let c=localStorage.getItem(o);if(c){let l=JSON.parse(c);for(let[u,d]of Object.entries(l))i[u]&&!("value"in i[u])||(s[u]=d)}}catch(c){}let a=V(s);for(let[c,l]of Object.entries(i)){let u=l.value;typeof u=="function"&&(a[c]=(...d)=>u.apply(a,d))}if(it.set(e,a),ni.value++,n.persist&&typeof localStorage!="undefined"){let c=ve(a,()=>{try{localStorage.setItem(o,JSON.stringify(_u(a)))}catch(l){}},{deep:!0});ri.set(e,c)}return a}function _u(e){let t={},n=Object.getOwnPropertyDescriptors(ie(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var hr=new Proxy({},{get:(e,t)=>(ni.value,it.get(t)),has:(e,t)=>(ni.value,it.has(t)),ownKeys:()=>[...it.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function Sa(e){var t;(t=ri.get(e))==null||t(),ri.delete(e),it.delete(e)}function Ma(){return[...it.keys()]}var oi={};Jn(oi,{capitalize:()=>Ra,chunk:()=>Xu,clone:()=>Ln,debounce:()=>be,device:()=>te,escapeHtml:()=>kt,formatCurrency:()=>cd,formatDate:()=>ud,formatFileSize:()=>fd,formatNumber:()=>ld,formatPercent:()=>pd,get:()=>Zu,groupBy:()=>Qu,isBrowser:()=>yr,matchesMedia:()=>Yt,memoize:()=>Yu,merge:()=>Ca,once:()=>Ku,parseDuration:()=>_,random:()=>td,relativeTime:()=>dd,sample:()=>nd,set:()=>ed,setFormatDefaults:()=>ad,sleep:()=>Wu,slugify:()=>rd,sortBy:()=>Ju,stripTags:()=>sd,throttle:()=>An,titleCase:()=>id,truncate:()=>od,uid:()=>ue,unique:()=>Gu,uuid:()=>Vu});function Vu(){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 ue(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function Wu(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 be(e,t=250,n=!1){let r=null,o=null,i,s=function(...a){o=a,i=this;let c=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(i,o)},t),c&&e.apply(this,a)};return s.cancel=()=>{r&&clearTimeout(r),r=null,o=null},s.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(i,o))},s}function An(e,t=250){let n=0,r=null,o=null,i=function(...s){let a=Date.now();o=s;let c=t-(a-n);c<=0?(r&&(clearTimeout(r),r=null),n=a,e.apply(this,s)):r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&e.apply(this,o)},c))};return i.cancel=()=>{r&&clearTimeout(r),r=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},i}function Ku(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function Yu(e,t=(...n)=>JSON.stringify(n)){let n=new Map,r=function(...o){let i=t(...o);if(n.has(i))return n.get(i);let s=e.apply(this,o);return n.set(i,s),s};return r.cache=n,r}function Ln(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=>Ln(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Ln(r)]));if(e instanceof Set)return new Set([...e].map(n=>Ln(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Ln(r);return t}function Ca(e,...t){for(let n of t)if(n)for(let[r,o]of Object.entries(n)){let i=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&i&&typeof i=="object"&&!Array.isArray(i)?e[r]=Ca({...i},o):e[r]=o}return e}function Qu(e,t){let n={},r=typeof t=="function"?t:o=>o==null?void 0:o[t];for(let o of e){let i=String(r(o));(n[i]||(n[i]=[])).push(o)}return n}function Gu(e,t){if(!t)return[...new Set(e)];let n=typeof t=="function"?t:i=>i==null?void 0:i[t],r=new Set,o=[];for(let i of e){let s=n(i);r.has(s)||(r.add(s),o.push(i))}return o}function Xu(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 Ju(e,t,n="asc"){let r=typeof t=="function"?t:i=>i==null?void 0:i[t],o=n==="desc"?-1:1;return[...e].sort((i,s)=>{let a=r(i),c=r(s);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 Zu(e,t,n){let r=t.split("."),o=e;for(let i of r){if(o==null)return n;o=o[i]}return o!=null?o:n}function ed(e,t,n){let r=t.split("."),o=e;for(let i=0;i<r.length-1;i++){let s=r[i];(typeof o[s]!="object"||o[s]===null)&&(o[s]=/^\d+$/.test(r[i+1])?[]:{}),o=o[s]}o[r[r.length-1]]=n}function td(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function nd(e){return e[Math.floor(Math.random()*e.length)]}function rd(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 od(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 Ra(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function id(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>Ra(t.toLowerCase()))}function kt(e){return String(e!=null?e:"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function sd(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var Qt="pt-BR",Ha="BRL";function ad(e,t){e&&(Qt=e),t&&(Ha=t)}function cd(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:Qt,{style:"currency",currency:(o=t.currency)!=null?o:Ha}).format(n)}function ld(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:Qt,o).format(n)}function ud(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:Qt;if(typeof t=="object")return new Intl.DateTimeFormat(o,t).format(r);let i={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(i[t])return new Intl.DateTimeFormat(o,i[t]).format(r);let s=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,s(r.getMonth()+1)).replace(/DD/g,s(r.getDate())).replace(/HH/g,s(r.getHours())).replace(/mm/g,s(r.getMinutes())).replace(/ss/g,s(r.getSeconds()))}function dd(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),i=[["year",31536e6],["month",2592e6],["week",6048e5],["day",864e5],["hour",36e5],["minute",6e4],["second",1e3]],s=new Intl.RelativeTimeFormat(t!=null?t:Qt,{numeric:"auto"});for(let[a,c]of i)if(o>=c||a==="second")return s.format(Math.round(r/c),a);return""}function fd(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 pd(e,t=0,n){return new Intl.NumberFormat(n!=null?n:Qt,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var yr=typeof window!="undefined"&&typeof window.document!="undefined";function Yt(e){if(!yr||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var te={get touch(){return yr&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return Yt("(max-width: 767px)")},get tablet(){return Yt("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return Yt("(min-width: 1024px)")},get online(){return!yr||navigator.onLine},get reducedMotion(){return Yt("(prefers-reduced-motion: reduce)")},get darkMode(){return Yt("(prefers-color-scheme: dark)")}};var ne=class extends Error{constructor(n,r,o,i){super(n);S(this,"response",r);S(this,"config",o);S(this,"cause",i);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}},de={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},br=[],wr=[],Sn=[],Mn=new Map;function Da(e){var t;return`${(t=e.method)!=null?t:"GET"} ${Xt(e)}`}function md(e){if(!e){Mn.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Mn.keys()])t(n)&&Mn.delete(n)}var Na="voodoo:offline-queue";function ii(){try{return JSON.parse(localStorage.getItem(Na)||"[]")}catch(e){return[]}}function si(e){try{localStorage.setItem(Na,JSON.stringify(e))}catch(t){}}function gd(e){var n,r;if(typeof localStorage=="undefined")return;let t=ii();t.push({url:Xt(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),si(t)}async function Oa(){if(typeof localStorage=="undefined")return 0;let e=ii();if(!e.length)return 0;si([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await st({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=ii();si([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Oa()});function Xt(e){let t=e.url,n=de.baseURL;if(n&&!/^https?:\/\//i.test(t)&&!t.startsWith("//")&&(t=`${n.replace(/\/$/,"")}/${t.replace(/^\//,"")}`),e.params){let r=new URLSearchParams;for(let[i,s]of Object.entries(e.params))s==null||s===""||r.append(i,String(s));let o=r.toString();o&&(t+=(t.includes("?")?"&":"?")+o)}return t}function $a(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${de.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function vd(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 hd(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 yd=new Set(["GET","HEAD","OPTIONS"]);function bd(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function wd(e,t,n,r){var o;return yd.has(e)||t.retryUnsafe===!0||bd(n)?!0:(((o=t.retry)!=null?o:0)>0&&Tn(`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 st(e){var u,d,p,f,m;let t={method:"GET",timeout:de.timeout,retry:de.retry,retryDelay:de.retryDelay,credentials:de.credentials,responseType:"auto",...e,headers:{...de.headers,...e.headers}};for(let v of br)t=await v(t);let n=((u=t.method)!=null?u:"GET").toUpperCase();if(t.cache&&n==="GET"){let v=Mn.get(Da(t));if(v&&v.expires>Date.now())return v.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return gd(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 v=$a();v&&!r[de.csrfHeader]&&(r[de.csrfHeader]=v)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=vd(t.body,r),i=Xt(t),s=wd(n,t,r,i)?((d=t.retry)!=null?d:0)+1:1,a;for(let v=0;v<s;v++){let g=new AbortController,h=t.signal,y=null;h&&(h.aborted?g.abort(h.reason):(y=()=>g.abort(h.reason),h.addEventListener("abort",y,{once:!0})));let w=()=>{y&&h&&h.removeEventListener("abort",y),y=null},T=t.timeout&&t.timeout>0?setTimeout(()=>g.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let x=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:g.signal});T&&clearTimeout(T),w();let N={data:await hd(x,t.responseType),status:x.status,statusText:x.statusText,headers:x.headers,ok:x.ok,raw:x,config:t};if(!x.ok){if(x.status>=500&&v<s-1){await Pa(((p=t.retryDelay)!=null?p:500)*2**v);continue}let R=new ne(`Request failed with status ${x.status}`,N,t);for(let ce of Sn)ce(R);throw R}for(let R of wr)N=await R(N);return t.cache&&n==="GET"&&Mn.set(Da(t),{expires:Date.now()+t.cache,value:N}),N}catch(x){if(T&&clearTimeout(T),w(),x instanceof ne)throw x;if(a=x,(x==null?void 0:x.name)==="AbortError"&&((f=t.signal)==null?void 0:f.aborted))break;if(v<s-1){await Pa(((m=t.retryDelay)!=null?m:500)*2**v);continue}}}let c=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,l=new ne(c,void 0,t,a);for(let v of Sn)v(l);throw l}function Pa(e){return new Promise(t=>setTimeout(t,e))}async function Gt(e){return(await st(e)).data}var me={defaults:de,get(e,t={}){return Gt({...t,url:e,method:"GET"})},post(e,t,n={}){return Gt({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return Gt({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return Gt({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return Gt({...t,url:e,method:"DELETE"})},head(e,t={}){return Gt({...t,url:e,method:"HEAD"})},request:st,upload(e,t,n={}){return new Promise((r,o)=>{var c,l;let i=new XMLHttpRequest,s=Xt({url:e});i.open((c=n.method)!=null?c:"POST",s);for(let[u,d]of Object.entries({...de.headers,...n.headers}))u.toLowerCase()!=="content-type"&&i.setRequestHeader(u,d);let a=$a();a&&i.setRequestHeader(de.csrfHeader,a),i.upload.addEventListener("progress",u=>{var d;u.lengthComputable&&((d=n.onProgress)==null||d.call(n,Math.round(u.loaded/u.total*100),u.loaded,u.total))}),i.addEventListener("load",()=>{let u=i.getResponseHeader("content-type")||"",d=i.responseText;if(u.includes("json"))try{d=JSON.parse(i.responseText)}catch(p){}i.status>=200&&i.status<300?r(d):o(new ne(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new ne("Network failure during upload"))),i.addEventListener("abort",()=>o(new ne("Upload canceled"))),(l=n.signal)==null||l.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(Xt({url:e}));return n.addEventListener("message",r=>{var i;let o=r.data;try{o=JSON.parse(r.data)}catch(s){}(i=t.message)==null||i.call(t,o,r)}),t.error&&n.addEventListener("error",t.error),n},async stream(e,t,n={}){var a;let r=await fetch(Xt({url:e,params:n.params}),{headers:{...de.headers,...n.headers},signal:n.signal});if(!r.body)return;let o=r.body.getReader(),i=new TextDecoder,s="";for(;;){let{done:c,value:l}=await o.read();if(c)break;s+=i.decode(l,{stream:!0});let u=s.split(`
62
+ `);s=(a=u.pop())!=null?a:"";for(let d of u)d.trim()&&t(d)}s.trim()&&t(s)},interceptors:{request:{use(e){return br.push(e),()=>{let t=br.indexOf(e);t>-1&&br.splice(t,1)}}},response:{use(e){return wr.push(e),()=>{let t=wr.indexOf(e);t>-1&&wr.splice(t,1)}}},error:{use(e){return Sn.push(e),()=>{let t=Sn.indexOf(e);t>-1&&Sn.splice(t,1)}}}},setHeader(e,t){t===null?delete de.headers[e]:de.headers[e]=t},setToken(e,t="Bearer"){this.setHeader("Authorization",e?`${t} ${e}`:null)},setBaseURL(e){de.baseURL=e},clearCache:md,flushOfflineQueue:Oa,parseDuration:_};Te();var Ed=`
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
- `,yd={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},Mn=new Map,st={duration:4e3,position:"top-right",max:6};function bd(e){ie(),G("toast",hd);let t=Mn.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),Mn.set(e,t)),t}function Lt(e){var p,f,m,v;let t=(p=e.position)!=null?p:st.position,n=(f=e.type)!=null?f:"default",r=(m=e.duration)!=null?m:n==="loading"?0:st.duration,o=bd(t),i=ue("toast-"),s=document.createElement("div");s.className="v-toast",s.id=i,s.setAttribute("data-type",n),s.setAttribute("role",n==="error"?"alert":"status"),s.setAttribute("aria-live",n==="error"?"assertive":"polite"),s.setAttribute("aria-atomic","true");let a=!1,c=null,l=()=>{a||(a=!0,c&&clearTimeout(c),s.classList.add("v-out"),s.classList.remove("v-in"),setTimeout(()=>{var g;s.remove(),(g=e.onClose)==null||g.call(e),o.children.length||(o.remove(),Mn.delete(t))},220))},u=g=>{var w,T,x,M;let h=(w=g.type)!=null?w:n;if(s.setAttribute("data-type",h),g.html)s.innerHTML=g.html;else{s.textContent="";let N=document.createElement("span");N.className="v-toast-icon",N.setAttribute("aria-hidden","true"),N.textContent=(T=yd[h])!=null?T:"",s.appendChild(N);let R=document.createElement("div");R.className="v-toast-body";let ae=document.createElement("div");if(ae.className="v-toast-title",ae.textContent=(x=g.title)!=null?x:"",R.appendChild(ae),g.description){let B=document.createElement("div");B.className="v-toast-desc",B.textContent=g.description,R.appendChild(B)}if(s.appendChild(R),g.action){let B=document.createElement("button");B.type="button",B.className="v-toast-action",B.textContent=g.action.label,B.addEventListener("click",()=>{var we;(we=g.action)==null||we.onClick(),l()}),s.appendChild(B)}if(g.closable!==!1&&h!=="loading"){let B=document.createElement("button");B.type="button",B.className="v-toast-close",B.setAttribute("aria-label","Close notification"),B.innerHTML="&times;",B.addEventListener("click",l),s.appendChild(B)}}let y=(M=g.duration)!=null?M:r;if(y>0){let N=document.createElement("div");N.className="v-toast-bar",N.style.animation=`v-toast-bar ${y}ms linear forwards`,s.appendChild(N)}};for(u(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>st.max;)(v=o.firstElementChild)==null||v.remove();let d=g=>{c&&clearTimeout(c),g>0&&(c=setTimeout(l,g))};return d(r),s.addEventListener("mouseenter",()=>{c&&clearTimeout(c)}),s.addEventListener("mouseleave",()=>d(r)),{id:i,close:l,update(g){var h;u({...e,...g}),g.duration!==void 0?d(g.duration):((h=g.type)!=null?h:n)!=="loading"&&d(st.duration)}}}function Jt(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var Re=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,i;let n=Lt({title:(r=t.loading)!=null?r:"Loading...",type:"loading",duration:0});try{let s=await e;return n.update({title:typeof t.success=="function"?t.success(s):(o=t.success)!=null?o:"Done",type:"success",duration:st.duration}),s}catch(s){throw n.update({title:typeof t.error=="function"?t.error(s):(i=t.error)!=null?i:"Something went wrong",type:"error",duration:st.duration}),s}},clear(){for(let[e,t]of Mn)t.remove(),Mn.delete(e)},configure(e){Object.assign(st,e)},settings:st});function $a(e,t=""){let n=r=>t+r;return{get(r,o){var i;try{let s=(i=e())==null?void 0:i.getItem(n(r));if(s==null)return o;try{return JSON.parse(s)}catch(a){return s}}catch(s){return o}},set(r,o){var i;try{return(i=e())==null||i.setItem(n(r),typeof o=="string"?o:JSON.stringify(o)),!0}catch(s){return!1}},remove(r){var o;try{(o=e())==null||o.removeItem(n(r))}catch(i){}},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(i){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 Q=$a(()=>typeof localStorage!="undefined"?localStorage:void 0),wr=$a(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),Er={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,i;if(typeof document=="undefined")return;let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(n.expires!==void 0){let s=typeof n.expires=="number"?new Date(Date.now()+n.expires*864e5):n.expires;r+=`; expires=${s.toUTCString()}`}r+=`; path=${(o=n.path)!=null?o:"/"}`,n.domain&&(r+=`; domain=${n.domain}`),n.secure&&(r+="; secure"),r+=`; samesite=${(i=n.sameSite)!=null?i:"Lax"}`,document.cookie=r},remove(e,t={}){this.set(e,"",{...t,expires:-1})},has(e){return this.get(e)!==void 0}},at={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())}},Zt=new Map,xr={set(e,t,n=0){return Zt.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=Zt.get(e);return n?n.expires<Date.now()?(Zt.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){Zt.delete(e)},clear(){Zt.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 Zt.size}},ii="voodoo:theme",si=null,je={get current(){var e,t;return(t=(e=Q.get(ii))!=null?e:si)!=null?t:"system"},get resolved(){let e=this.current;return e!=="system"?e:typeof matchMedia=="undefined"?"light":matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},set(e){si=e,Q.set(ii,e),this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return si!==null||Q.get(ii)!=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 matchMedia!="undefined"&&matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{this.current==="system"&&this.apply()}))}};var He=V({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function ai(){typeof window!="undefined"&&(He.width=window.innerWidth,He.height=window.innerHeight,He.mobile=window.innerWidth<768,He.tablet=window.innerWidth>=768&&window.innerWidth<1024,He.desktop=window.innerWidth>=1024,He.portrait=window.innerHeight>=window.innerWidth,He.landscape=!He.portrait)}var At=V({online:!0,type:"unknown",saveData:!1,slow:!1});function Tr(){var t;if(typeof navigator=="undefined")return;At.online=navigator.onLine;let e=navigator.connection;e&&(At.type=(t=e.effectiveType)!=null?t:"unknown",At.saveData=!!e.saveData,At.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var ci={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""}}},Oa=!1;function Fa(){var t,n;if(Oa||(Oa=!0,H("$el",r=>r.el),H("$refs",r=>r.allRefs),H("$data",r=>r.data),H("$root",r=>r.root.data),H("$parent",r=>{var o,i;return(i=(o=r.parent)==null?void 0:o.data)!=null?i:null}),H("$self",r=>{var o,i;return(i=(o=r.owner)==null?void 0:o.component)!=null?i:r.data}),H("$store",()=>vr),H("$http",()=>me),H("$toast",()=>Re),H("$clipboard",()=>ci),H("$storage",()=>Q),H("$session",()=>wr),H("$cookie",()=>Er),H("$cache",()=>xr),H("$url",()=>at),H("$theme",()=>je),H("$device",()=>ee),H("$screen",()=>He),H("$network",()=>At),H("$nextTick",()=>ht),H("$watch",r=>(o,i)=>ve(()=>$(o,r,"$watch"),i)),H("$dispatch",r=>(o,i)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:i,bubbles:!0}))}),H("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;ai(),Tr();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(ai)}),window.addEventListener("orientationchange",ai),window.addEventListener("online",Tr),window.addEventListener("offline",Tr),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",Tr)}ne();function li(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 ui(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 kr(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=V({data:null,loading:!1,error:null,loaded:!1,async reload(){var l,u,d,p,f;let a=n();if(!a)return;o==null||o.abort();let c=o=new AbortController;s.loading=!0,s.error=null;try{let m=await me.request({url:a,method:(t.method||"GET").toUpperCase(),params:r(),headers:t.headers,cache:t.cache||void 0,retry:(l=t.retry)!=null?l:0,timeout:(u=t.timeout)!=null?u:me.defaults.timeout,signal:c.signal});if(c.signal.aborted)return;s.data=li(m.data,t.jsonPath),s.loaded=!0,(d=t.onSuccess)==null||d.call(t,s.data)}catch(m){if(c.signal.aborted)return;let v=m instanceof te&&(p=ui(m))!=null?p:m.message;s.error={name:"ResourceError",message:v},(f=t.onError)==null||f.call(t,m,v)}finally{c.signal.aborted||(s.loading=!1),o===c&&(o=null)}},set(a){s.data=a},stop(){o==null||o.abort(),o=null,s.loading=!1,i!==null&&(clearInterval(i),i=null)}});return t.poll&&t.poll>0&&(i=setInterval(()=>{(typeof document=="undefined"||document.visibilityState==="visible")&&s.reload()},t.poll)),t.manual||s.reload(),s}Te();Te();var Ia=`
107
+ `,xd={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},Cn=new Map,at={duration:4e3,position:"top-right",max:6};function Td(e){se(),G("toast",Ed);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,f,m,v;let t=(p=e.position)!=null?p:at.position,n=(f=e.type)!=null?f:"default",r=(m=e.duration)!=null?m:n==="loading"?0:at.duration,o=Td(t),i=ue("toast-"),s=document.createElement("div");s.className="v-toast",s.id=i,s.setAttribute("data-type",n),s.setAttribute("role",n==="error"?"alert":"status"),s.setAttribute("aria-live",n==="error"?"assertive":"polite"),s.setAttribute("aria-atomic","true");let a=!1,c=null,l=()=>{a||(a=!0,c&&clearTimeout(c),s.classList.add("v-out"),s.classList.remove("v-in"),setTimeout(()=>{var g;s.remove(),(g=e.onClose)==null||g.call(e),o.children.length||(o.remove(),Cn.delete(t))},220))},u=g=>{var w,T,x,C;let h=(w=g.type)!=null?w:n;if(s.setAttribute("data-type",h),g.html)s.innerHTML=g.html;else{s.textContent="";let N=document.createElement("span");N.className="v-toast-icon",N.setAttribute("aria-hidden","true"),N.textContent=(T=xd[h])!=null?T:"",s.appendChild(N);let R=document.createElement("div");R.className="v-toast-body";let ce=document.createElement("div");if(ce.className="v-toast-title",ce.textContent=(x=g.title)!=null?x:"",R.appendChild(ce),g.description){let B=document.createElement("div");B.className="v-toast-desc",B.textContent=g.description,R.appendChild(B)}if(s.appendChild(R),g.action){let B=document.createElement("button");B.type="button",B.className="v-toast-action",B.textContent=g.action.label,B.addEventListener("click",()=>{var we;(we=g.action)==null||we.onClick(),l()}),s.appendChild(B)}if(g.closable!==!1&&h!=="loading"){let B=document.createElement("button");B.type="button",B.className="v-toast-close",B.setAttribute("aria-label","Close notification"),B.innerHTML="&times;",B.addEventListener("click",l),s.appendChild(B)}}let y=(C=g.duration)!=null?C:r;if(y>0){let N=document.createElement("div");N.className="v-toast-bar",N.style.animation=`v-toast-bar ${y}ms linear forwards`,s.appendChild(N)}};for(u(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>at.max;)(v=o.firstElementChild)==null||v.remove();let d=g=>{c&&clearTimeout(c),g>0&&(c=setTimeout(l,g))};return d(r),s.addEventListener("mouseenter",()=>{c&&clearTimeout(c)}),s.addEventListener("mouseleave",()=>d(r)),{id:i,close:l,update(g){var h;u({...e,...g}),g.duration!==void 0?d(g.duration):((h=g.type)!=null?h:n)!=="loading"&&d(at.duration)}}}function Jt(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var Re=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,i;let n=Lt({title:(r=t.loading)!=null?r:"Loading...",type:"loading",duration:0});try{let s=await e;return n.update({title:typeof t.success=="function"?t.success(s):(o=t.success)!=null?o:"Done",type:"success",duration:at.duration}),s}catch(s){throw n.update({title:typeof t.error=="function"?t.error(s):(i=t.error)!=null?i:"Something went wrong",type:"error",duration:at.duration}),s}},clear(){for(let[e,t]of Cn)t.remove(),Cn.delete(e)},configure(e){Object.assign(at,e)},settings:at});function Ba(e,t=""){let n=r=>t+r;return{get(r,o){var i;try{let s=(i=e())==null?void 0:i.getItem(n(r));if(s==null)return o;try{return JSON.parse(s)}catch(a){return s}}catch(s){return o}},set(r,o){var i;try{return(i=e())==null||i.setItem(n(r),typeof o=="string"?o:JSON.stringify(o)),!0}catch(s){return!1}},remove(r){var o;try{(o=e())==null||o.removeItem(n(r))}catch(i){}},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(i){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 Q=Ba(()=>typeof localStorage!="undefined"?localStorage:void 0),Er=Ba(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),xr={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,i;if(typeof document=="undefined")return;let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(n.expires!==void 0){let s=typeof n.expires=="number"?new Date(Date.now()+n.expires*864e5):n.expires;r+=`; expires=${s.toUTCString()}`}r+=`; path=${(o=n.path)!=null?o:"/"}`,n.domain&&(r+=`; domain=${n.domain}`),n.secure&&(r+="; secure"),r+=`; samesite=${(i=n.sameSite)!=null?i:"Lax"}`,document.cookie=r},remove(e,t={}){this.set(e,"",{...t,expires:-1})},has(e){return this.get(e)!==void 0}},ct={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())}},Zt=new Map,Tr={set(e,t,n=0){return Zt.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=Zt.get(e);return n?n.expires<Date.now()?(Zt.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){Zt.delete(e)},clear(){Zt.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 Zt.size}},ai="voodoo:theme",ci=null,je={get current(){var e,t;return(t=(e=Q.get(ai))!=null?e:ci)!=null?t:"system"},get resolved(){let e=this.current;return e!=="system"?e:typeof matchMedia=="undefined"?"light":matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},set(e){ci=e,Q.set(ai,e),this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return ci!==null||Q.get(ai)!=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 matchMedia!="undefined"&&matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{this.current==="system"&&this.apply()}))}};var He=V({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function li(){typeof window!="undefined"&&(He.width=window.innerWidth,He.height=window.innerHeight,He.mobile=window.innerWidth<768,He.tablet=window.innerWidth>=768&&window.innerWidth<1024,He.desktop=window.innerWidth>=1024,He.portrait=window.innerHeight>=window.innerWidth,He.landscape=!He.portrait)}var At=V({online:!0,type:"unknown",saveData:!1,slow:!1});function kr(){var t;if(typeof navigator=="undefined")return;At.online=navigator.onLine;let e=navigator.connection;e&&(At.type=(t=e.effectiveType)!=null?t:"unknown",At.saveData=!!e.saveData,At.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var ui={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""}}},qa=!1;function za(){var t,n;if(qa||(qa=!0,H("$el",r=>r.el),H("$refs",r=>r.allRefs),H("$data",r=>r.data),H("$root",r=>r.root.data),H("$parent",r=>{var o,i;return(i=(o=r.parent)==null?void 0:o.data)!=null?i:null}),H("$self",r=>{var o,i;return(i=(o=r.owner)==null?void 0:o.component)!=null?i:r.data}),H("$store",()=>hr),H("$http",()=>me),H("$toast",()=>Re),H("$clipboard",()=>ui),H("$storage",()=>Q),H("$session",()=>Er),H("$cookie",()=>xr),H("$cache",()=>Tr),H("$url",()=>ct),H("$theme",()=>je),H("$device",()=>te),H("$screen",()=>He),H("$network",()=>At),H("$nextTick",()=>yt),H("$watch",r=>(o,i)=>ve(()=>O(o,r,"$watch"),i)),H("$dispatch",r=>(o,i)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:i,bubbles:!0}))}),H("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;li(),kr();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(li)}),window.addEventListener("orientationchange",li),window.addEventListener("online",kr),window.addEventListener("offline",kr),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",kr)}re();function di(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 fi(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 Lr(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=V({data:null,loading:!1,error:null,loaded:!1,async reload(){var l,u,d,p,f;let a=n();if(!a)return;o==null||o.abort();let c=o=new AbortController;s.loading=!0,s.error=null;try{let m=await me.request({url:a,method:(t.method||"GET").toUpperCase(),params:r(),headers:t.headers,cache:t.cache||void 0,retry:(l=t.retry)!=null?l:0,timeout:(u=t.timeout)!=null?u:me.defaults.timeout,signal:c.signal});if(c.signal.aborted)return;s.data=di(m.data,t.jsonPath),s.loaded=!0,(d=t.onSuccess)==null||d.call(t,s.data)}catch(m){if(c.signal.aborted)return;let v=m instanceof ne&&(p=fi(m))!=null?p:m.message;s.error={name:"ResourceError",message:v},(f=t.onError)==null||f.call(t,m,v)}finally{c.signal.aborted||(s.loading=!1),o===c&&(o=null)}},set(a){s.data=a},stop(){o==null||o.abort(),o=null,s.loading=!1,i!==null&&(clearInterval(i),i=null)}});return t.poll&&t.poll>0&&(i=setInterval(()=>{(typeof document=="undefined"||document.visibilityState==="visible")&&s.reload()},t.poll)),t.manual||s.reload(),s}Te();Te();var Ua=`
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 ja(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 en(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function tn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function Ba(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 qa(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Cn(e,t={}){G("transitions",Ia);let n=ja(t);return ee.reducedMotion?Promise.resolve():new Promise(r=>{en(e,n.enterFrom),en(e,n.enterActive),qa(()=>{var s;tn(e,n.enterFrom),en(e,n.enterTo);let o=(s=t.duration)!=null?s:Ba(e),i=()=>{tn(e,n.enterActive),tn(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Rn(e,t={}){G("transitions",Ia);let n=ja(t);return ee.reducedMotion?Promise.resolve():new Promise(r=>{en(e,n.leaveFrom),en(e,n.leaveActive),qa(()=>{var s;tn(e,n.leaveFrom),en(e,n.leaveTo);let o=(s=t.duration)!=null?s:Ba(e),i=()=>{tn(e,n.leaveActive),tn(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function St(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 Mt(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 nn(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 rn(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 za(e){let t=document;typeof t.startViewTransition=="function"&&!ee.reducedMotion?t.startViewTransition(e):e()}ne();J();function wd(e,t,n){try{let o={t:"assign",op:"=",target:Oe(e),value:{t:"lit",v:n}};C(o,t)}catch(r){z(r,`assignment in "${e}"`)}}function Ka(e){let t=E.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`)?U(e.getAttribute(`${t}duration`)):void 0}}b("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=tt(n());let r=e.firstChild;r&&r.nodeType===3&&_o(r)})});b("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;ra(t),n(()=>{let i=r();for(let s of Array.from(t.children))q(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))W(s,o)})});b("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=Ka(e);t(()=>{let s=!!n();if(o){o=!1,e.style.display=s?r:"none";return}if(!i){e.style.display=s?r:"none";return}s?(e.style.display=r,Cn(e,i)):Rn(e,i).then(()=>{e.style.display="none"})})});b("if",({el:e,scope:t,expression:n,effect:r})=>{var p;let o=E.prefix,i=[{expression:n,template:e}],s=e.nextElementSibling;for(;s;)if(s.hasAttribute(`${o}else-if`))i.push({expression:s.getAttribute(`${o}else-if`)||"false",template:s}),s=s.nextElementSibling;else if(s.hasAttribute(`${o}else`)){i.push({expression:null,template:s}),s=s.nextElementSibling;break}else break;let a=document.createComment(E.devtools?` v-if: ${n} `:"");(p=e.parentNode)==null||p.insertBefore(a,e);for(let f of i)Wo(f.template),f.template.removeAttribute(`${o}if`),f.template.removeAttribute(`${o}else-if`),f.template.removeAttribute(`${o}else`),_o(f.template);let c=Ka(e),l=-1,u=[],d=()=>{let f=u;if(u=[],!f.length)return;let m=()=>{for(let v of f)q(v),v.remove()};c&&f[0]instanceof HTMLElement?Rn(f[0],c).then(m):m()};r(()=>{let f=-1;for(let g=0;g<i.length;g++){let h=i[g];if(h.expression===null||$(h.expression,t,"v-if")){f=g;break}}if(f===l||(l=f,d(),f===-1))return;let m=i[f].template,v=Ya(m,a,t);u=v,c&&v[0]instanceof HTMLElement&&Cn(v[0],c)}),Ie(e,d)},{priority:P.IF,terminal:!0});function Ya(e,t,n,r){let o=t.parentNode;if(!o)return[];let i=[];if(e.tagName==="TEMPLATE"){let s=e.content.cloneNode(!0),a=Array.from(s.childNodes);o.insertBefore(s,t);for(let c of a)i.push(c),c.nodeType===1&&(rt(c,n),W(c,n))}else{let s=e.cloneNode(!0);i.push(s),rt(s,n),r?(r.fragment.appendChild(s),r.pending.push([s,n])):(o.insertBefore(s,t),W(s,n))}return i}b("else-if",()=>{},{priority:P.IF,terminal:!0});b("else",()=>{},{priority:P.IF,terminal:!0});var Ed=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;b("for",({el:e,scope:t,expression:n,effect:r})=>{var g;let o=Ed.exec(n);if(!o){z(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(h=>h.trim()).filter(Boolean),s=o[2],[a,c,l]=i,u=E.prefix,d=e.getAttribute(":key")||e.getAttribute(`${u}bind:key`)||e.getAttribute(`${u}key`),p=document.createComment(E.devtools?` v-for: ${n} `:"");(g=e.parentNode)==null||g.insertBefore(p,e);let f=e.cloneNode(!0);f.removeAttribute(`${u}for`),f.removeAttribute(":key"),f.removeAttribute(`${u}bind:key`),f.removeAttribute(`${u}key`),Wo(e);let m=[];Ie(p,()=>{for(let h of m)for(let y of h.nodes)q(y),y.remove();m=[]}),r(()=>{var ae,B,we;let h=$(s,t,"v-for"),y=xd(h,a,c,l),w=new Map;for(let Z of m)w.set(Z.key,Z);let T=[],x=new Set,M={fragment:document.createDocumentFragment(),pending:[]};y.forEach((Z,A)=>{let L=d?$(d,t.child(Z),":key"):`__index_${A}`;d&&x.has(L)&&Vs(e,L,n);let F=w.get(L);if(F&&!x.has(L)){x.add(L);for(let[Ol,Fl]of Object.entries(Z))F.data[Ol]=Fl;T.push(F);return}let pt=t.reactiveChild(Z),mo=Ya(f,p,pt,M);x.add(L),T.push({key:L,scope:pt,nodes:mo,data:pt.data})}),M.fragment.firstChild&&((ae=p.parentNode)==null||ae.insertBefore(M.fragment,p));for(let[Z,A]of M.pending)W(Z,A);let N=new Set(T);for(let Z of m)if(!(x.has(Z.key)&&N.has(Z)))for(let A of Z.nodes)q(A),A.remove();let R=p;for(let Z=T.length-1;Z>=0;Z--){let A=T[Z],L=A.nodes[A.nodes.length-1];if(L&&L.nextSibling!==R)for(let F of A.nodes)(B=p.parentNode)==null||B.insertBefore(F,R);R=(we=A.nodes[0])!=null?we:R}m=T})},{priority:P.FOR,terminal:!0});function xd(e,t,n,r){let o=[];if(Array.isArray(e))return e.forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o;if(typeof e=="number"){for(let i=1;i<=e;i++){let s={[t]:i};n&&(s[n]=i-1),o.push(s)}return o}return typeof e=="string"?(Array.from(e).forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o):(e&&typeof e=="object"&&(e instanceof Map?Array.from(e.entries()):e instanceof Set?Array.from(e).map((s,a)=>[a,s]):Object.entries(e)).forEach(([s,a],c)=>{let l={[t]:a};n&&(l[n]=s),r&&(l[r]=c),o.push(l)}),o)}var Td=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),kd=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),Ld=/[\s\x00-\x1f]/g;function Ad(e){let t=e.replace(Ld,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function Ua(e,t,n,r=!1,o=!1){if(t==="class")return Qa(e,n);if(t==="style")return di(e,n);if(E.sanitizeUrls&&!o&&t==="srcdoc"){Et(`:srcdoc refused in ${Ye(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(E.sanitizeUrls&&!r){if(kd.has(t)&&typeof n=="string"&&Ad(n)){Et(`value refused in :${t} of ${Ye(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)){Et(`attribute "${t}" refused in ${Ye(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(Td.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 Va=new WeakMap;function Qa(e,t){let n=Va.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),Va.set(e,n));let r=new Set(n);Ga(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function Ga(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)Ga(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 di(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)di(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,s=>`-${s.toLowerCase()}`),i=String(r);o.startsWith("--"),e.style.setProperty(o,i)}}}b("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:i})=>{if(!t){r(()=>{let c=o();if(c&&typeof c=="object")for(let[l,u]of Object.entries(c))Ua(e,l,u)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{Ua(e,t,o(),s,a)})},{priority:P.BIND});b("class",({el:e,effect:t,evaluate:n})=>{t(()=>Qa(e,n()))});b("style",({el:e,effect:t,evaluate:n})=>{t(()=>di(e,n()))});var _a={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},Sd=["ctrl","shift","alt","meta"];function Wa(e,t,n,r){let o=n.detail,i=n.__voodoo===!0,s=t.child({$event:i?o:n,$rawEvent:n,$el:r,$detail:o});try{let a=Oe(e),c=C(a,s);typeof c=="function"&&(a.t==="id"||a.t==="member")&&c.call(t.data,i?o:n)}catch(a){z(a,`event ${n.type} ("${e}")`)}}var Md={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},Xa={hold(e,t,n,r){let o=U(typeof n.duration=="string"&&n.duration||Object.keys(n).find(u=>/^[\d.]+(ms|s)?$/.test(u))||e.getAttribute(`${E.prefix}hold-duration`)||800,800),i=null,s=!1,a=u=>{s=!1,e.classList.add("v-holding"),e.style.setProperty("--v-hold-duration",`${o}ms`),i=setTimeout(()=>{s=!0,e.classList.remove("v-holding"),t(u)},o)},c=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},l=u=>{s&&(u.preventDefault(),u.stopPropagation(),s=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",c),e.addEventListener("pointerleave",c),e.addEventListener("pointercancel",c),e.addEventListener("click",l,!0),r(()=>{c(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",c),e.removeEventListener("pointerleave",c),e.removeEventListener("pointercancel",c),e.removeEventListener("click",l,!0)})},outside(e,t,n,r){let o=i=>{e.isConnected&&(e===i.target||e.contains(i.target)||t(i))};document.addEventListener("click",o,!0),r(()=>document.removeEventListener("click",o,!0))},visible(e,t,n,r){var i,s;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((i=n.threshold)!=null?i:.1),rootMargin:String((s=n.margin)!=null?s:"0px")});o.observe(e),r(()=>o.disconnect())}};for(let e of["left","right","up","down"])Xa[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,c=u=>{a=!0,i=u.clientX,s=u.clientY},l=u=>{if(!a)return;a=!1;let d=u.clientX-i,p=u.clientY-s,f=40;(e==="left"?d<-f&&Math.abs(d)>Math.abs(p):e==="right"?d>f&&Math.abs(d)>Math.abs(p):e==="up"?p<-f&&Math.abs(p)>Math.abs(d):p>f&&Math.abs(p)>Math.abs(d))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:d,dy:p}}))};t.addEventListener("pointerdown",c),window.addEventListener("pointerup",l),o(()=>{t.removeEventListener("pointerdown",c),window.removeEventListener("pointerup",l)})};function Ja(e,t,n,r,o,i){var f;let s=(f=Md[t])!=null?f:t,a=Xa[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Wa(n,r,m,e)},o,i);return}let c=o.window?window:o.document||o.outside?document:e,l=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let g of Sd)if(o[g]&&!m[`${g}Key`])return;let v=Object.keys(o).filter(g=>g in _a||/^[a-z0-9]$/.test(g));if(v.length&&!v.some(h=>{let y=_a[h];return y?y.includes(m.key):m.key.toLowerCase()===h}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Wa(n,r,m,e)}},u=o.debounce;u!==void 0&&(l=be(l,U(u===!0?250:u,250)));let d=o.throttle;d!==void 0&&(l=Ln(l,U(d===!0?250:d,250)));let p={capture:!!o.capture,once:!!o.once,passive:!!o.passive};c.addEventListener(s,l,p),i(()=>c.removeEventListener(s,l,p))}b("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&Ja(e,t,n,r,o,i)});var Cd=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of Cd)b(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{Ja(t,e,n,r,o,i)});b("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:i})=>{let s=e,a=s.tagName,c=(s.getAttribute("type")||"text").toLowerCase(),l=a==="INPUT"&&c==="checkbox",u=a==="INPUT"&&c==="radio",d=a==="SELECT",p=d&&s.multiple,f=a==="INPUT"&&c==="file",m=c==="number"||c==="range",v=!!r.lazy,g=!!r.number||m,h=!!r.trim,y=r.debounce?U(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${E.prefix}debounce`)?U(e.getAttribute(`${E.prefix}debounce`),250):0,w=v||d||l||u||f?"change":"input",T=()=>{var M,N;let x;if(l){let R=$(t,n,"v-model");if(Array.isArray(R)){let ae=s.value,B=[...R],we=B.indexOf(ae);s.checked&&we===-1?B.push(ae):!s.checked&&we>-1&&B.splice(we,1),x=B}else x=s.checked}else if(u){if(!s.checked)return;x=s.value}else if(p)x=Array.from(s.selectedOptions).map(R=>R.value);else if(f)x=r.single?(N=(M=s.files)==null?void 0:M[0])!=null?N:null:s.files;else if(x=s.value,h&&typeof x=="string"&&(x=x.trim()),g&&typeof x=="string"){let R=x===""?null:Number(x);x=R===null||Number.isNaN(R)?x:R}wd(t,n,x)};y>0&&(T=be(T,y)),s.addEventListener(w,T),i(()=>s.removeEventListener(w,T)),o(()=>{let x=$(t,n,"v-model");if(l){s.checked=Array.isArray(x)?x.includes(s.value):!!x;return}if(u){s.checked=String(x)===s.value;return}if(p){let N=Array.isArray(x)?x.map(String):[];for(let R of Array.from(s.options))R.selected=N.includes(R.value);return}if(f)return;let M=x==null?"":String(x);s.value!==M&&(s.value=M),d&&s.value!==M&&ht(()=>{s.value!==M&&(s.value=M)})})},{priority:P.MODEL});b("init",({el:e,expression:t,scope:n})=>{fe(()=>{let r=n.child({$el:e}),o=$(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:P.INIT});b("ref",({el:e,expression:t,scope:n,cleanup:r})=>{var s;let o=t.trim();if(!o)return;let i=(s=n.owner)!=null?s:n;i.refs[o]=e,r(()=>{i.refs[o]===e&&delete i.refs[o]})},{priority:P.REF});b("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});b("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${E.prefix}model`),i,s=!0;r(()=>{let a=o?$(o,n,"v-watch"):$(t,n,"v-watch");if(s){s=!1,i=a;return}if(a===i)return;let c=i;if(i=a,o){let l=n.child({$value:a,$old:c,$el:e}),u=$(t,l,"v-watch");typeof u=="function"&&u.call(n.data,a,c)}})});b("cloak",({el:e})=>{e.removeAttribute(`${E.prefix}cloak`)});b("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=tt(r))});b("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){z(new Error(`v-teleport destination not found: ${r}`),"v-teleport");return}let i=document.createComment(" v-teleport ");(s=e.parentNode)==null||s.insertBefore(i,e),o.appendChild(e),n(()=>{var a;(a=i.parentNode)==null||a.insertBefore(e,i),i.remove()})},{priority:P.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"])b(e,()=>{},{priority:P.TRANSITION});b("data",()=>{},{priority:P.DATA});b("component",()=>{},{priority:P.COMPONENT});ne();J();var tc=()=>E.prefix;function D(e,t){return xe(e,`${tc()}${t}`)}function mi(e,t){return nt(e,`${tc()}${t}`)}function Rd(e,t){var s,a,c;let n=D(e,"target"),r=D(e,"loading"),o={},i=D(e,"headers");if(i){let l=$(i,t,"v-headers");l&&typeof l=="object"&&(o=l)}return{target:n?document.querySelector(n):null,swap:D(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:D(e,"loading-class")||"v-loading",disableWhileLoading:mi(e,"disable-loading"),confirmMessage:D(e,"confirm"),toastSuccess:D(e,"toast-success"),toastError:D(e,"toast-error"),onSuccess:D(e,"on-success"),onError:D(e,"on-error"),onComplete:D(e,"on-complete"),cacheMs:U((s=D(e,"cache"))!=null?s:void 0,0),retry:Number((a=D(e,"retry"))!=null?a:0),timeout:U((c=D(e,"timeout"))!=null?c:void 0,me.defaults.timeout),storeAs:D(e,"as"),jsonPath:D(e,"json-path"),templateSelector:D(e,"template"),offlineQueue:mi(e,"offline-queue"),headers:o,redirect:D(e,"redirect"),scrollTo:D(e,"scroll-to")}}function Za(e,t,n,r){var i,s;let o=a=>{for(let c of Array.from(a))c.nodeType===1&&W(c,r)};switch(n){case"none":return;case"delete":q(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);q(e),e.replaceWith(a.content),o(c);return}case"beforebegin":case"afterbegin":case"beforeend":case"afterend":{let a=new Set(Array.from((s=(i=e.parentElement)==null?void 0:i.childNodes)!=null?s:[]));e.insertAdjacentHTML(n,t);let c=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(c)for(let l of Array.from(c.childNodes))l.nodeType===1&&!a.has(l)&&W(l,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))q(a);e.innerHTML=t,o(e.childNodes)}}}function Lr(e,t=0){if(e==null)return"";if(typeof e!="object")return kt(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 l of Object.keys(c))a.add(l);return a},new Set)),i=o.map(a=>`<th>${kt(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(c=>`<td>${Lr(a[c],t+1)}</td>`).join("")}</tr>`).join("");return`<table class="v-json-table"><thead><tr>${i}</tr></thead><tbody>${s}</tbody></table>`}return`<ul class="v-json-list">${e.map(o=>`<li>${Lr(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${kt(r)}</dt><dd>${Lr(o,t+1)}</dd>`).join("")}</dl>`:""}function Hd(e,t,n,r){let o=document.querySelector(e);if(!o){z(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))q(s);r.innerHTML="";let i=Array.isArray(t)?t:[t];for(let[s,a]of i.entries()){let c=o.content.cloneNode(!0),l=Array.from(c.childNodes);r.appendChild(c);let u=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let d of l)d.nodeType===1&&W(d,u)}}var fi=new WeakMap;async function Hn(e){var d,p,f,m,v;let{el:t,scope:n,method:r}=e,o=Rd(t,n),i=We.has("confirm");if(o.confirmMessage&&!i&&!await Dd(o.confirmMessage))return;(d=fi.get(t))==null||d.abort();let s=new AbortController;fi.set(t,s);let a=(p=o.target)!=null?p:t,c=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,l=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let g=c!=null?c:t;"disabled"in g&&(g.disabled=!0)}},u=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let g=c!=null?c:t;"disabled"in g&&(g.disabled=!1)}};l(),on(t,"voodoo:before-request",{method:r,url:e.url});try{let g=await me.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:s.signal,offlineQueue:o.offlineQueue}),h=li(g.data,o.jsonPath);o.storeAs?n.set(o.storeAs,h):o.templateSelector?Hd(o.templateSelector,h,n,a):typeof h=="string"?Za(a,h,o.swap,n):h!=null&&(Pd(),Za(a,Lr(h),o.swap,n)),o.toastSuccess&&Re.success(o.toastSuccess),o.onSuccess&&pi(o.onSuccess,n,t,{data:h,response:g}),on(t,"voodoo:success",{data:h,response:g}),o.scrollTo&&((f=document.querySelector(o.scrollTo))==null||f.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;let h=g instanceof te?(m=ui(g))!=null?m:g.message:(v=g==null?void 0:g.message)!=null?v:"Unknown error";o.toastError?Re.error(o.toastError):o.onError||Re.error(h),o.onError&&pi(o.onError,n,t,{error:g,message:h}),on(t,"voodoo:error",{error:g,message:h}),z(g,`request ${r} ${e.url}`)}finally{u(),fi.delete(t),o.onComplete&&pi(o.onComplete,n,t,{}),on(t,"voodoo:complete",{})}}function on(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function pi(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=$(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function Dd(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var ec=!1;function Pd(){ec||(ec=!0,Promise.resolve().then(()=>(Te(),Na)).then(({injectStyle:e})=>{e("json-render",`
129
+ `;function _a(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 en(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function tn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function Va(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 Wa(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Rn(e,t={}){G("transitions",Ua);let n=_a(t);return te.reducedMotion?Promise.resolve():new Promise(r=>{en(e,n.enterFrom),en(e,n.enterActive),Wa(()=>{var s;tn(e,n.enterFrom),en(e,n.enterTo);let o=(s=t.duration)!=null?s:Va(e),i=()=>{tn(e,n.enterActive),tn(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Hn(e,t={}){G("transitions",Ua);let n=_a(t);return te.reducedMotion?Promise.resolve():new Promise(r=>{en(e,n.leaveFrom),en(e,n.leaveActive),Wa(()=>{var s;tn(e,n.leaveFrom),en(e,n.leaveTo);let o=(s=t.duration)!=null?s:Va(e),i=()=>{tn(e,n.leaveActive),tn(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function St(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 Mt(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 nn(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 rn(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 Ka(e){let t=document;typeof t.startViewTransition=="function"&&!te.reducedMotion?t.startViewTransition(e):e()}re();Z();function kd(e,t,n){try{let o={t:"assign",op:"=",target:$e(e),value:{t:"lit",v:n}};M(o,t)}catch(r){z(r,`assignment in "${e}"`)}}function Ja(e){let t=E.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}}b("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Ke(n());let r=e.firstChild;r&&r.nodeType===3&&Ko(r)})});b("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;ca(t),n(()=>{let i=r();for(let s of Array.from(t.children))q(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))W(s,o)})});b("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=Ja(e);t(()=>{let s=!!n();if(o){o=!1,e.style.display=s?r:"none";return}if(!i){e.style.display=s?r:"none";return}s?(e.style.display=r,Rn(e,i)):Hn(e,i).then(()=>{e.style.display="none"})})});b("if",({el:e,scope:t,expression:n,effect:r})=>{var p;let o=E.prefix,i=[{expression:n,template:e}],s=e.nextElementSibling;for(;s;)if(s.hasAttribute(`${o}else-if`))i.push({expression:s.getAttribute(`${o}else-if`)||"false",template:s}),s=s.nextElementSibling;else if(s.hasAttribute(`${o}else`)){i.push({expression:null,template:s}),s=s.nextElementSibling;break}else break;let a=document.createComment(E.devtools?` v-if: ${n} `:"");(p=e.parentNode)==null||p.insertBefore(a,e);for(let f of i)Yo(f.template),f.template.removeAttribute(`${o}if`),f.template.removeAttribute(`${o}else-if`),f.template.removeAttribute(`${o}else`),Ko(f.template);let c=Ja(e),l=-1,u=[],d=()=>{let f=u;if(u=[],!f.length)return;let m=()=>{for(let v of f)q(v),v.remove()};c&&f[0]instanceof HTMLElement?Hn(f[0],c).then(m):m()};r(()=>{let f=-1;for(let g=0;g<i.length;g++){let h=i[g];if(h.expression===null||O(h.expression,t,"v-if")){f=g;break}}if(f===l||(l=f,d(),f===-1))return;let m=i[f].template,v=Za(m,a,t);u=v,c&&v[0]instanceof HTMLElement&&Rn(v[0],c)}),Ie(e,d)},{priority:P.IF,terminal:!0});function Za(e,t,n,r){let o=t.parentNode;if(!o)return[];let i=[];if(e.tagName==="TEMPLATE"){let s=e.content.cloneNode(!0),a=Array.from(s.childNodes);o.insertBefore(s,t);for(let c of a)i.push(c),c.nodeType===1&&(ot(c,n),W(c,n))}else{let s=e.cloneNode(!0);i.push(s),ot(s,n),r?(r.fragment.appendChild(s),r.pending.push([s,n])):(o.insertBefore(s,t),W(s,n))}return i}b("else-if",()=>{},{priority:P.IF,terminal:!0});b("else",()=>{},{priority:P.IF,terminal:!0});var Ld=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;b("for",({el:e,scope:t,expression:n,effect:r})=>{var g;let o=Ld.exec(n);if(!o){z(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(h=>h.trim()).filter(Boolean),s=o[2],[a,c,l]=i,u=E.prefix,d=e.getAttribute(":key")||e.getAttribute(`${u}bind:key`)||e.getAttribute(`${u}key`),p=document.createComment(E.devtools?` v-for: ${n} `:"");(g=e.parentNode)==null||g.insertBefore(p,e);let f=e.cloneNode(!0);f.removeAttribute(`${u}for`),f.removeAttribute(":key"),f.removeAttribute(`${u}bind:key`),f.removeAttribute(`${u}key`),Yo(e);let m=[];Ie(p,()=>{for(let h of m)for(let y of h.nodes)q(y),y.remove();m=[]}),r(()=>{var ce,B,we;let h=O(s,t,"v-for"),y=Ad(h,a,c,l),w=new Map;for(let ee of m)w.set(ee.key,ee);let T=[],x=new Set,C={fragment:document.createDocumentFragment(),pending:[]};y.forEach((ee,A)=>{let L=d?O(d,t.child(ee),":key"):`__index_${A}`;d&&x.has(L)&&Qs(e,L,n);let F=w.get(L);if(F&&!x.has(L)){x.add(L);for(let[ql,zl]of Object.entries(ee))F.data[ql]=zl;T.push(F);return}let mt=t.reactiveChild(ee),go=Za(f,p,mt,C);x.add(L),T.push({key:L,scope:mt,nodes:go,data:mt.data})}),C.fragment.firstChild&&((ce=p.parentNode)==null||ce.insertBefore(C.fragment,p));for(let[ee,A]of C.pending)W(ee,A);let N=new Set(T);for(let ee of m)if(!(x.has(ee.key)&&N.has(ee)))for(let A of ee.nodes)q(A),A.remove();let R=p;for(let ee=T.length-1;ee>=0;ee--){let A=T[ee],L=A.nodes[A.nodes.length-1];if(L&&L.nextSibling!==R)for(let F of A.nodes)(B=p.parentNode)==null||B.insertBefore(F,R);R=(we=A.nodes[0])!=null?we:R}m=T})},{priority:P.FOR,terminal:!0});function Ad(e,t,n,r){let o=[];if(Array.isArray(e))return e.forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o;if(typeof e=="number"){for(let i=1;i<=e;i++){let s={[t]:i};n&&(s[n]=i-1),o.push(s)}return o}return typeof e=="string"?(Array.from(e).forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o):(e&&typeof e=="object"&&(e instanceof Map?Array.from(e.entries()):e instanceof Set?Array.from(e).map((s,a)=>[a,s]):Object.entries(e)).forEach(([s,a],c)=>{let l={[t]:a};n&&(l[n]=s),r&&(l[r]=c),o.push(l)}),o)}var Sd=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Md=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),Cd=/[\s\x00-\x1f]/g;function Rd(e){let t=e.replace(Cd,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function Ya(e,t,n,r=!1,o=!1){if(t==="class")return ec(e,n);if(t==="style")return pi(e,n);if(E.sanitizeUrls&&!o&&t==="srcdoc"){Et(`:srcdoc refused in ${Ge(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(E.sanitizeUrls&&!r){if(Md.has(t)&&typeof n=="string"&&Rd(n)){Et(`value refused in :${t} of ${Ge(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)){Et(`attribute "${t}" refused in ${Ge(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(Sd.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 Qa=new WeakMap;function ec(e,t){let n=Qa.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),Qa.set(e,n));let r=new Set(n);tc(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function tc(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)tc(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 pi(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)pi(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,s=>`-${s.toLowerCase()}`),i=String(r);o.startsWith("--"),e.style.setProperty(o,i)}}}b("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:i})=>{if(!t){r(()=>{let c=o();if(c&&typeof c=="object")for(let[l,u]of Object.entries(c))Ya(e,l,u)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{Ya(e,t,o(),s,a)})},{priority:P.BIND});b("class",({el:e,effect:t,evaluate:n})=>{t(()=>ec(e,n()))});b("style",({el:e,effect:t,evaluate:n})=>{t(()=>pi(e,n()))});var Ga={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},Hd=["ctrl","shift","alt","meta"];function Xa(e,t,n,r){let o=n.detail,i=n.__voodoo===!0,s=t.child({$event:i?o:n,$rawEvent:n,$el:r,$detail:o});try{let a=$e(e),c=M(a,s);typeof c=="function"&&(a.t==="id"||a.t==="member")&&c.call(t.data,i?o:n)}catch(a){z(a,`event ${n.type} ("${e}")`)}}var Dd={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},nc={hold(e,t,n,r){let o=_(typeof n.duration=="string"&&n.duration||Object.keys(n).find(u=>/^[\d.]+(ms|s)?$/.test(u))||e.getAttribute(`${E.prefix}hold-duration`)||800,800),i=null,s=!1,a=u=>{s=!1,e.classList.add("v-holding"),e.style.setProperty("--v-hold-duration",`${o}ms`),i=setTimeout(()=>{s=!0,e.classList.remove("v-holding"),t(u)},o)},c=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},l=u=>{s&&(u.preventDefault(),u.stopPropagation(),s=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",c),e.addEventListener("pointerleave",c),e.addEventListener("pointercancel",c),e.addEventListener("click",l,!0),r(()=>{c(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",c),e.removeEventListener("pointerleave",c),e.removeEventListener("pointercancel",c),e.removeEventListener("click",l,!0)})},outside(e,t,n,r){let o=i=>{e.isConnected&&(e===i.target||e.contains(i.target)||t(i))};document.addEventListener("click",o,!0),r(()=>document.removeEventListener("click",o,!0))},visible(e,t,n,r){var i,s;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((i=n.threshold)!=null?i:.1),rootMargin:String((s=n.margin)!=null?s:"0px")});o.observe(e),r(()=>o.disconnect())}};for(let e of["left","right","up","down"])nc[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,c=u=>{a=!0,i=u.clientX,s=u.clientY},l=u=>{if(!a)return;a=!1;let d=u.clientX-i,p=u.clientY-s,f=40;(e==="left"?d<-f&&Math.abs(d)>Math.abs(p):e==="right"?d>f&&Math.abs(d)>Math.abs(p):e==="up"?p<-f&&Math.abs(p)>Math.abs(d):p>f&&Math.abs(p)>Math.abs(d))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:d,dy:p}}))};t.addEventListener("pointerdown",c),window.addEventListener("pointerup",l),o(()=>{t.removeEventListener("pointerdown",c),window.removeEventListener("pointerup",l)})};function rc(e,t,n,r,o,i){var f;let s=(f=Dd[t])!=null?f:t,a=nc[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Xa(n,r,m,e)},o,i);return}let c=o.window?window:o.document||o.outside?document:e,l=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let g of Hd)if(o[g]&&!m[`${g}Key`])return;let v=Object.keys(o).filter(g=>g in Ga||/^[a-z0-9]$/.test(g));if(v.length&&!v.some(h=>{let y=Ga[h];return y?y.includes(m.key):m.key.toLowerCase()===h}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Xa(n,r,m,e)}},u=o.debounce;u!==void 0&&(l=be(l,_(u===!0?250:u,250)));let d=o.throttle;d!==void 0&&(l=An(l,_(d===!0?250:d,250)));let p={capture:!!o.capture,once:!!o.once,passive:!!o.passive};c.addEventListener(s,l,p),i(()=>c.removeEventListener(s,l,p))}b("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&rc(e,t,n,r,o,i)});var Pd=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of Pd)b(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{rc(t,e,n,r,o,i)});b("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:i})=>{let s=e,a=s.tagName,c=(s.getAttribute("type")||"text").toLowerCase(),l=a==="INPUT"&&c==="checkbox",u=a==="INPUT"&&c==="radio",d=a==="SELECT",p=d&&s.multiple,f=a==="INPUT"&&c==="file",m=c==="number"||c==="range",v=!!r.lazy,g=!!r.number||m,h=!!r.trim,y=r.debounce?_(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${E.prefix}debounce`)?_(e.getAttribute(`${E.prefix}debounce`),250):0,w=v||d||l||u||f?"change":"input",T=()=>{var C,N;let x;if(l){let R=O(t,n,"v-model");if(Array.isArray(R)){let ce=s.value,B=[...R],we=B.indexOf(ce);s.checked&&we===-1?B.push(ce):!s.checked&&we>-1&&B.splice(we,1),x=B}else x=s.checked}else if(u){if(!s.checked)return;x=s.value}else if(p)x=Array.from(s.selectedOptions).map(R=>R.value);else if(f)x=r.single?(N=(C=s.files)==null?void 0:C[0])!=null?N:null:s.files;else if(x=s.value,h&&typeof x=="string"&&(x=x.trim()),g&&typeof x=="string"){let R=x===""?null:Number(x);x=R===null||Number.isNaN(R)?x:R}kd(t,n,x)};y>0&&(T=be(T,y)),s.addEventListener(w,T),i(()=>s.removeEventListener(w,T)),o(()=>{let x=O(t,n,"v-model");if(l){s.checked=Array.isArray(x)?x.includes(s.value):!!x;return}if(u){s.checked=String(x)===s.value;return}if(p){let N=Array.isArray(x)?x.map(String):[];for(let R of Array.from(s.options))R.selected=N.includes(R.value);return}if(f)return;let C=x==null?"":String(x);s.value!==C&&(s.value=C),d&&s.value!==C&&yt(()=>{s.value!==C&&(s.value=C)})})},{priority:P.MODEL});b("init",({el:e,expression:t,scope:n})=>{fe(()=>{let r=n.child({$el:e}),o=O(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:P.INIT});b("ref",({el:e,expression:t,scope:n,cleanup:r})=>{var s;let o=t.trim();if(!o)return;let i=(s=n.owner)!=null?s:n;i.refs[o]=e,r(()=>{i.refs[o]===e&&delete i.refs[o]})},{priority:P.REF});b("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});b("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${E.prefix}model`),i,s=!0;r(()=>{let a=o?O(o,n,"v-watch"):O(t,n,"v-watch");if(s){s=!1,i=a;return}if(a===i)return;let c=i;if(i=a,o){let l=n.child({$value:a,$old:c,$el:e}),u=O(t,l,"v-watch");typeof u=="function"&&u.call(n.data,a,c)}})});b("cloak",({el:e})=>{e.removeAttribute(`${E.prefix}cloak`)});b("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Ke(r))});b("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){z(new Error(`v-teleport destination not found: ${r}`),"v-teleport");return}let i=document.createComment(" v-teleport ");(s=e.parentNode)==null||s.insertBefore(i,e),o.appendChild(e),n(()=>{var a;(a=i.parentNode)==null||a.insertBefore(e,i),i.remove()})},{priority:P.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"])b(e,()=>{},{priority:P.TRANSITION});b("data",()=>{},{priority:P.DATA});b("component",()=>{},{priority:P.COMPONENT});re();Z();var sc=()=>E.prefix;function D(e,t){return xe(e,`${sc()}${t}`)}function vi(e,t){return rt(e,`${sc()}${t}`)}function Nd(e,t){var s,a,c;let n=D(e,"target"),r=D(e,"loading"),o={},i=D(e,"headers");if(i){let l=O(i,t,"v-headers");l&&typeof l=="object"&&(o=l)}return{target:n?document.querySelector(n):null,swap:D(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:D(e,"loading-class")||"v-loading",disableWhileLoading:vi(e,"disable-loading"),confirmMessage:D(e,"confirm"),toastSuccess:D(e,"toast-success"),toastError:D(e,"toast-error"),onSuccess:D(e,"on-success"),onError:D(e,"on-error"),onComplete:D(e,"on-complete"),cacheMs:_((s=D(e,"cache"))!=null?s:void 0,0),retry:Number((a=D(e,"retry"))!=null?a:0),timeout:_((c=D(e,"timeout"))!=null?c:void 0,me.defaults.timeout),storeAs:D(e,"as"),jsonPath:D(e,"json-path"),templateSelector:D(e,"template"),offlineQueue:vi(e,"offline-queue"),headers:o,redirect:D(e,"redirect"),scrollTo:D(e,"scroll-to")}}function oc(e,t,n,r){var i,s;let o=a=>{for(let c of Array.from(a))c.nodeType===1&&W(c,r)};switch(n){case"none":return;case"delete":q(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);q(e),e.replaceWith(a.content),o(c);return}case"beforebegin":case"afterbegin":case"beforeend":case"afterend":{let a=new Set(Array.from((s=(i=e.parentElement)==null?void 0:i.childNodes)!=null?s:[]));e.insertAdjacentHTML(n,t);let c=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(c)for(let l of Array.from(c.childNodes))l.nodeType===1&&!a.has(l)&&W(l,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))q(a);e.innerHTML=t,o(e.childNodes)}}}function Ar(e,t=0){if(e==null)return"";if(typeof e!="object")return kt(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 l of Object.keys(c))a.add(l);return a},new Set)),i=o.map(a=>`<th>${kt(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(c=>`<td>${Ar(a[c],t+1)}</td>`).join("")}</tr>`).join("");return`<table class="v-json-table"><thead><tr>${i}</tr></thead><tbody>${s}</tbody></table>`}return`<ul class="v-json-list">${e.map(o=>`<li>${Ar(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${kt(r)}</dt><dd>${Ar(o,t+1)}</dd>`).join("")}</dl>`:""}function Od(e,t,n,r){let o=document.querySelector(e);if(!o){z(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))q(s);r.innerHTML="";let i=Array.isArray(t)?t:[t];for(let[s,a]of i.entries()){let c=o.content.cloneNode(!0),l=Array.from(c.childNodes);r.appendChild(c);let u=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let d of l)d.nodeType===1&&W(d,u)}}var mi=new WeakMap;async function Dn(e){var d,p,f,m,v;let{el:t,scope:n,method:r}=e,o=Nd(t,n),i=Ye.has("confirm");if(o.confirmMessage&&!i&&!await $d(o.confirmMessage))return;(d=mi.get(t))==null||d.abort();let s=new AbortController;mi.set(t,s);let a=(p=o.target)!=null?p:t,c=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,l=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let g=c!=null?c:t;"disabled"in g&&(g.disabled=!0)}},u=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let g=c!=null?c:t;"disabled"in g&&(g.disabled=!1)}};l(),on(t,"voodoo:before-request",{method:r,url:e.url});try{let g=await me.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:s.signal,offlineQueue:o.offlineQueue}),h=di(g.data,o.jsonPath);o.storeAs?n.set(o.storeAs,h):o.templateSelector?Od(o.templateSelector,h,n,a):typeof h=="string"?oc(a,h,o.swap,n):h!=null&&(Fd(),oc(a,Ar(h),o.swap,n)),o.toastSuccess&&Re.success(o.toastSuccess),o.onSuccess&&gi(o.onSuccess,n,t,{data:h,response:g}),on(t,"voodoo:success",{data:h,response:g}),o.scrollTo&&((f=document.querySelector(o.scrollTo))==null||f.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;let h=g instanceof ne?(m=fi(g))!=null?m:g.message:(v=g==null?void 0:g.message)!=null?v:"Unknown error";o.toastError?Re.error(o.toastError):o.onError||Re.error(h),o.onError&&gi(o.onError,n,t,{error:g,message:h}),on(t,"voodoo:error",{error:g,message:h}),z(g,`request ${r} ${e.url}`)}finally{u(),mi.delete(t),o.onComplete&&gi(o.onComplete,n,t,{}),on(t,"voodoo:complete",{})}}function on(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function gi(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=O(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function $d(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var ic=!1;function Fd(){ic||(ic=!0,Promise.resolve().then(()=>(Te(),ja)).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,10 +135,10 @@ 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 Nd(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 $d({el:e,cleanup:t,run:n}){var u,d;let r=D(e,"trigger")||Nd(e),[o,...i]=r.split(/[.\s]+/),s=U((u=D(e,"poll"))!=null?u:void 0,0);if(s>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},s);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(f=>{for(let m of f)m.isIntersecting&&(n(),i.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=i.includes("once"),c=U((d=D(e,"debounce"))!=null?d:void 0,0),l=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(l=be(l,c)),e.addEventListener(o,l,{once:a}),t(()=>e.removeEventListener(o,l))}var Od=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of Od)b(e,({el:n,scope:r,expression:o,cleanup:i})=>{$d({el:n,scope:r,cleanup:i,run:a=>{let c=Dn(o,r);if(!c)return;let l=D(n,"body")||D(n,"data-body"),u=l?$(l,r.child({$event:a}),"v-body"):void 0,d=D(n,"params"),p=d?$(d,r,"v-params"):void 0;Hn({el:n,scope:r,method:t,url:c,body:u,params:p,event:a})}})});function Dn(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=$(n,t,"URL");return typeof o=="string"?o:n}b("load",({el:e,scope:t,expression:n})=>{let r=Dn(n,t);r&&Hn({el:e,scope:t,method:"GET",url:r})});b("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Dn(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Hn({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Hn({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});b("search",({el:e,scope:t,expression:n,cleanup:r})=>{var d,p;let o=e,i=Dn(n,t),s=D(e,"param")||o.getAttribute("name")||"q",a=U((d=D(e,"debounce"))!=null?d:void 0,300),c=Number((p=D(e,"min-length"))!=null?p:0),l=be(()=>{let f=o.value.trim();f.length<c||Hn({el:e,scope:t,method:"GET",url:i,params:{[s]:f}})},a),u=()=>l();o.addEventListener("input",u),r(()=>{o.removeEventListener("input",u),l.cancel()})});b("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,l,u,d;let o=n.indexOf(":"),i=D(e,"as")||"resource",s=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(i=p,s=n.slice(o+1).trim())}let a=kr(()=>Dn(s,t),{method:(D(e,"method")||"GET").toUpperCase(),params:()=>D(e,"params")?$(D(e,"params"),t,"v-params"):void 0,cache:U((c=D(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((l=D(e,"retry"))!=null?l:0),timeout:U((u=D(e,"timeout"))!=null?u:void 0,me.defaults.timeout),jsonPath:D(e,"json-path"),poll:U((d=D(e,"poll"))!=null?d:void 0,0),manual:mi(e,"manual"),onSuccess:p=>on(e,"voodoo:success",{data:p}),onError:(p,f)=>on(e,"voodoo:error",{error:p,message:f})});t.set(i,a),r(()=>a.stop())},{priority:P.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"])b(e,()=>{},{priority:P.TRANSITION});oa(da);ua(rt);ha(rc);Fa();var Pn=new Map;function nc(e,t){let n=Pn.get(e);return n||Pn.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Fd(e,t){let n=nc(e,r=>{n(),t(r)});return n}function Id(e,t){let n=Pn.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){z(o,`event "${e}"`)}}function jd(e,t){var n;if(!t){Pn.delete(e);return}(n=Pn.get(e))==null||n.delete(t)}function rc(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;b(e,i=>{var u,d;let s,a=!1,c=p=>{var f,m;return{el:i.el,value:p,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(f=i.scope.owner)==null?void 0:f.component)!=null?m:null}},l=n.raw?i.expression:i.evaluate();(u=n.created)==null||u.call(n,i.el,c(l)),(d=n.beforeMount)==null||d.call(n,i.el,c(l)),i.effect(()=>{var m,v;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,c(p));return}if(p===s)return;let f=c(p);(v=n.updated)==null||v.call(n,i.el,f),s=p}),i.cleanup(()=>{var f,m;let p=c(s);(f=n.beforeUnmount)==null||f.call(n,i.el,p),(m=n.unmounted)==null||m.call(n,i.el,p)})},{priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Bd(e){return Object.defineProperties(Fe.data,Object.getOwnPropertyDescriptors(e)),Fe.data}var qd="0.7.0",Ar={...ni,version:qd,config:E,reactive:V,ref:bn,shallowRef:Do,computed:wn,effect:Ee,watch:ve,watchEffect:No,nextTick:ht,toRaw:oe,markRaw:Ro,unref:Po,stop:Ao,effectScope:So,EffectScope:Me,flushSync:xo,data:Bd,store:Ea,stores:vr,removeStore:xa,storeNames:Ta,scope:Fe,component:Wt,components:le,directive:rc,directives:We,magic:H,magics:En,createApp:ya,start:sa,whenReady:pr,whenElement:mr,walk:W,refresh:ca,destroy:q,stopObserving:aa,getScope:zt,findScope:Ce,addCleanup:Ie,parseAttribute:qt,parse:Oe,tokenize:or,evaluate:C,evaluateIn:$,stringify:tt,clearParseCache:$s,globals:pe,http:me,request:it,HttpError:te,resource:kr,toast:Re,storage:Q,session:wr,cookie:Er,cache:xr,url:at,theme:je,clipboard:ci,screen:He,network:At,enter:Cn,leave:Rn,fadeIn:nn,fadeOut:rn,slideUp:Mt,slideDown:St,viewTransition:za,injectStyle:G,ensureTokens:ie,on:nc,once:Fd,off:jd,emit:Id,use(e,t){ir(Ar,e,t)},onError(e){To(e)},instances:dr,Scope:wt,PRIORITY:P,VoodooSyntaxError:_,VoodooRuntimeError:ce};wa(Ar);ne();var zd=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 fc(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function De(e){return e.length<2?e:Array.from(new Set(e))}function Ct(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function gi(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 pc(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Ud(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof Be)return e.toArray();if(typeof e=="string")return Rt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Rt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Rt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(pc(o))return gi(o);let i=[];for(let s of Ud(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return De(i)}if(e instanceof Be)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 i=0;i<r.length;i++){let s=r[i];s&&s.nodeType===1&&o.push(s)}return De(o)}return[]}function oc(e){if(e==null)return[];if(typeof e=="string"){let r=e;return pc(r.trim())?gi(r):[document.createTextNode(r)]}if(e instanceof Be)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 Sr(e,t,n){let r=fc(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!zd.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Vd(e,t){for(let[n,r]of Object.entries(t))Sr(e,n,r)}function ic(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 sc(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var mc=new WeakMap;function ac(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function cc(e){e.removeAttribute("hidden");let t=mc.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 lc(e){let t=e.style.display;t&&t!=="none"&&mc.set(e,t),e.style.display="none"}var uc="input,select,textarea";function dc(e){return e.matches(uc)?[e]:Array.from(e.querySelectorAll(uc))}function _d(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 Mr=new WeakMap;function Wd(e){let t=Mr.get(e);return t||Mr.set(e,t=[]),t}var Be=class e{constructor(t=[]){S(this,"length");S(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(De(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(De(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(De(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(De(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(De(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let i of Array.from(o.children))i!==r&&(!t||i.matches(t))&&n.push(i)}return new e(De(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(De(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(De(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(De([...this.elements,...Rt(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.textContent)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))q(a);s.textContent=r}return this}html(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))q(a);s.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let i=o;return o.tagName==="SELECT"&&i.multiple?Array.from(i.selectedOptions).map(s=>s.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 i=o,s=o;if(i.tagName==="SELECT"&&s.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let c of Array.from(s.options))c.selected=a.includes(c.value);continue}if(i.type==="checkbox"||i.type==="radio"){i.checked=Array.isArray(n)?n.map(String).includes(i.value):n===!0||String(n)===i.value;continue}i.value=n==null?"":String(n)}return this}attr(...t){var i,s;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[c,l]of Object.entries(n))l===null||l===!1?a.removeAttribute(c):a.setAttribute(c,l===!0?"":String(l));return this}let r=String(n);if(t.length<2)return(s=(i=this.elements[0])==null?void 0:i.getAttribute(r))!=null?s: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=Ct(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 i=this.elements[0];if(!i)return{};let s={};for(let[a,c]of Object.entries(i.dataset))s[a]=ic(c);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[sc(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=sc(String(n));if(t.length<2){let i=this.elements[0];return i?ic(i.dataset[r]):void 0}let o=t[1];for(let i of this.elements)i.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)Vd(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=fc(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)Sr(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)Sr(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)Sr(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 i of this.elements)i.scrollTop=n;return this}addClass(t){let n=Ct(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Ct(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Ct(t);for(let o of this.elements)for(let i of r)n===void 0?o.classList.toggle(i):o.classList.toggle(i,n);return this}hasClass(t){let n=Ct(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 i=this.elements[o];for(let s of oc(t))n(i,o===r-1?s:s.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=Rt(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=Rt(t);for(let r=0;r<n.length;r++){let o=n[r],i=this.elements.map(s=>r===n.length-1?s:s.cloneNode(!0));for(let s=i.length-1;s>=0;s--)o.insertBefore(i[s],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of oc(t))r.insertBefore(o,n);q(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Rt(t)[0];if(!o)continue;let i=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(i,r);let s=i;for(;s.firstElementChild;)s=s.firstElementChild;s.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);q(n),n.remove()}}return this}remove(){for(let t of this.elements)q(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))q(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,i=r?n[1]:n[0],s=(a=r?n[2]:n[1])!=null?a:{};if(typeof i!="function")return this;for(let c of this.elements)for(let l of Ct(t)){let u=d=>{if(!o){i.call(c,d);return}let p=d.target,f=p==null?void 0:p.closest(o);!f||!c.contains(f)||i.call(f,d)};c.addEventListener(l,u,s),Wd(c).push({type:l,selector:o,handler:i,wrapped:u,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?Ct(t):null;for(let a of this.elements){let c=Mr.get(a);if(!c)continue;let l=[];for(let u of c){let d=!s||s.includes(u.type),p=o===null||u.selector===o,f=i===null||u.handler===i;d&&p&&f?a.removeEventListener(u.type,u.wrapped,u.options):l.push(u)}Mr.set(a,l)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0];if(typeof i!="function")return this;let s=this,a=function(c){return o?s.off(t,o,a):s.off(t,a),i.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)cc(t);return this}hide(){for(let t of this.elements)lc(t);return this}toggle(t){for(let n of this.elements)(t===void 0?ac(n):t)?cc(n):lc(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),nn(n,t);return this}fadeOut(t=220){for(let n of this.elements)rn(n,t);return this}slideUp(t=240){for(let n of this.elements)Mt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),St(n,t);return this}slideToggle(t=240){for(let n of this.elements)ac(n)?(n.removeAttribute("hidden"),St(n,t)):Mt(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 dc(t)){if(!_d(r))continue;let o=r,i=r;if(o.tagName==="SELECT"&&i.multiple){for(let s of Array.from(i.selectedOptions))n.append(o.name,s.value);continue}n.append(o.name,o.value)}return n.toString()}serializeObject(){var r,o,i,s;let t=this.elements[0],n={};if(!t)return n;for(let a of dc(t)){let c=a;if(!c.name||c.disabled)continue;let l=(c.getAttribute("type")||"").toLowerCase();if(l==="submit"||l==="reset"||l==="button")continue;let u=c.name.endsWith("[]"),d=u?c.name.slice(0,-2):c.name,p=a,f;if(l==="checkbox"){if(!c.checked&&!u){n[d]=(r=n[d])!=null?r:!1;continue}if(!c.checked)continue;f=c.value==="on"?!0:c.value}else if(l==="radio"){if(!c.checked)continue;f=c.value}else l==="file"?f=c.multiple?Array.from((o=c.files)!=null?o:[]):(s=(i=c.files)==null?void 0:i[0])!=null?s:null:c.tagName==="SELECT"&&p.multiple?f=Array.from(p.selectedOptions).map(m=>m.value):l==="number"||l==="range"?f=c.value===""?null:Number(c.value):f=c.value;if(u){let m=n[d];Array.isArray(m)?m.push(f):n[d]=[f];continue}if(Object.prototype.hasOwnProperty.call(n,d)){let m=n[d];Array.isArray(m)?m.push(f):m===void 0||m===!1?n[d]=f:n[d]=[m,f];continue}n[d]=f}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&&q(n),W(n,Ce(n.parentNode));return this}destroy(){for(let t of this.elements)q(t);return this}};function vi(e,t){if(typeof e=="function"){hi(e);let n=typeof document!="undefined"?document.documentElement:null;return new Be(n?[n]:[])}return new Be(Rt(e,t))}function hi(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{va(()=>{try{e==null||e()}catch(n){z(n,"V.ready")}t()})})}function gc(e){return new Be(gi(e))}ne();J();Te();Te();J();var yi=new WeakMap;function lt(e,t){var n;return(n=xe(e,`${E.prefix}${t}`))!=null?n:xe(e,`data-v-${t}`)}function Cr(e,t){return nt(e,`${E.prefix}${t}`)||nt(e,`data-v-${t}`)}function j(e,t){let n=yi.get(e);return n&&t in n?n[t]:lt(e,t)}function Rr(e,t,n){var o;let r=(o=yi.get(e))!=null?o:{};r[t]=n,yi.set(e,r)}function O(e){b(e,({el:t,expression:n})=>{Rr(t,e,n)},{priority:P.BIND})}function K(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function qe(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=$(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var Kd=`
138
+ `)}))}function Id(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 jd({el:e,cleanup:t,run:n}){var u,d;let r=D(e,"trigger")||Id(e),[o,...i]=r.split(/[.\s]+/),s=_((u=D(e,"poll"))!=null?u:void 0,0);if(s>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},s);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(f=>{for(let m of f)m.isIntersecting&&(n(),i.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=i.includes("once"),c=_((d=D(e,"debounce"))!=null?d:void 0,0),l=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(l=be(l,c)),e.addEventListener(o,l,{once:a}),t(()=>e.removeEventListener(o,l))}var Bd=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of Bd)b(e,({el:n,scope:r,expression:o,cleanup:i})=>{jd({el:n,scope:r,cleanup:i,run:a=>{let c=Pn(o,r);if(!c)return;let l=D(n,"body")||D(n,"data-body"),u=l?O(l,r.child({$event:a}),"v-body"):void 0,d=D(n,"params"),p=d?O(d,r,"v-params"):void 0;Dn({el:n,scope:r,method:t,url:c,body:u,params:p,event:a})}})});function Pn(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=O(n,t,"URL");return typeof o=="string"?o:n}b("load",({el:e,scope:t,expression:n})=>{let r=Pn(n,t);r&&Dn({el:e,scope:t,method:"GET",url:r})});b("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Pn(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Dn({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Dn({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});b("search",({el:e,scope:t,expression:n,cleanup:r})=>{var d,p;let o=e,i=Pn(n,t),s=D(e,"param")||o.getAttribute("name")||"q",a=_((d=D(e,"debounce"))!=null?d:void 0,300),c=Number((p=D(e,"min-length"))!=null?p:0),l=be(()=>{let f=o.value.trim();f.length<c||Dn({el:e,scope:t,method:"GET",url:i,params:{[s]:f}})},a),u=()=>l();o.addEventListener("input",u),r(()=>{o.removeEventListener("input",u),l.cancel()})});b("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,l,u,d;let o=n.indexOf(":"),i=D(e,"as")||"resource",s=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(i=p,s=n.slice(o+1).trim())}let a=Lr(()=>Pn(s,t),{method:(D(e,"method")||"GET").toUpperCase(),params:()=>D(e,"params")?O(D(e,"params"),t,"v-params"):void 0,cache:_((c=D(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((l=D(e,"retry"))!=null?l:0),timeout:_((u=D(e,"timeout"))!=null?u:void 0,me.defaults.timeout),jsonPath:D(e,"json-path"),poll:_((d=D(e,"poll"))!=null?d:void 0,0),manual:vi(e,"manual"),onSuccess:p=>on(e,"voodoo:success",{data:p}),onError:(p,f)=>on(e,"voodoo:error",{error:p,message:f})});t.set(i,a),r(()=>a.stop())},{priority:P.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"])b(e,()=>{},{priority:P.TRANSITION});la(va);ga(ot);xa(cc);za();var Nn=new Map;function ac(e,t){let n=Nn.get(e);return n||Nn.set(e,n=new Set),n.add(t),()=>n.delete(t)}function qd(e,t){let n=ac(e,r=>{n(),t(r)});return n}function zd(e,t){let n=Nn.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){z(o,`event "${e}"`)}}function Ud(e,t){var n;if(!t){Nn.delete(e);return}(n=Nn.get(e))==null||n.delete(t)}function cc(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;b(e,i=>{var u,d;let s,a=!1,c=p=>{var f,m;return{el:i.el,value:p,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(f=i.scope.owner)==null?void 0:f.component)!=null?m:null}},l=n.raw?i.expression:i.evaluate();(u=n.created)==null||u.call(n,i.el,c(l)),(d=n.beforeMount)==null||d.call(n,i.el,c(l)),i.effect(()=>{var m,v;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,c(p));return}if(p===s)return;let f=c(p);(v=n.updated)==null||v.call(n,i.el,f),s=p}),i.cleanup(()=>{var f,m;let p=c(s);(f=n.beforeUnmount)==null||f.call(n,i.el,p),(m=n.unmounted)==null||m.call(n,i.el,p)})},{priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function _d(e){return Object.defineProperties(Fe.data,Object.getOwnPropertyDescriptors(e)),Fe.data}var Vd="0.10.0",Sr={...oi,version:Vd,config:E,reactive:V,ref:bn,shallowRef:Po,computed:wn,effect:Ee,watch:ve,watchEffect:Oo,nextTick:yt,toRaw:ie,markRaw:Ho,unref:No,stop:So,effectScope:Mo,EffectScope:Me,flushSync:To,data:_d,store:Aa,stores:hr,removeStore:Sa,storeNames:Ma,scope:Fe,component:Wt,components:le,directive:cc,directives:Ye,magic:H,magics:xn,createApp:Ta,start:da,whenReady:mr,whenElement:gr,walk:W,refresh:pa,destroy:q,stopObserving:fa,getScope:zt,findScope:Ce,addCleanup:Ie,parseAttribute:qt,parse:$e,tokenize:ir,evaluate:M,evaluateIn:O,stringify:Ke,clearParseCache:Fs,globals:pe,http:me,request:st,HttpError:ne,resource:Lr,toast:Re,storage:Q,session:Er,cookie:xr,cache:Tr,url:ct,theme:je,clipboard:ui,screen:He,network:At,enter:Rn,leave:Hn,fadeIn:nn,fadeOut:rn,slideUp:Mt,slideDown:St,viewTransition:Ka,injectStyle:G,ensureTokens:se,on:ac,once:qd,off:Ud,emit:zd,use(e,t){sr(Sr,e,t)},onError(e){ko(e)},instances:fr,Scope:wt,PRIORITY:P,VoodooSyntaxError:U,VoodooRuntimeError:J};La(Sr);re();var Wd=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 hc(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function De(e){return e.length<2?e:Array.from(new Set(e))}function Ct(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function hi(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 yc(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Kd(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof Be)return e.toArray();if(typeof e=="string")return Rt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Rt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Rt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(yc(o))return hi(o);let i=[];for(let s of Kd(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return De(i)}if(e instanceof Be)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 i=0;i<r.length;i++){let s=r[i];s&&s.nodeType===1&&o.push(s)}return De(o)}return[]}function lc(e){if(e==null)return[];if(typeof e=="string"){let r=e;return yc(r.trim())?hi(r):[document.createTextNode(r)]}if(e instanceof Be)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 Mr(e,t,n){let r=hc(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Wd.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Yd(e,t){for(let[n,r]of Object.entries(t))Mr(e,n,r)}function uc(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 dc(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var bc=new WeakMap;function fc(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function pc(e){e.removeAttribute("hidden");let t=bc.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 mc(e){let t=e.style.display;t&&t!=="none"&&bc.set(e,t),e.style.display="none"}var gc="input,select,textarea";function vc(e){return e.matches(gc)?[e]:Array.from(e.querySelectorAll(gc))}function Qd(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 Cr=new WeakMap;function Gd(e){let t=Cr.get(e);return t||Cr.set(e,t=[]),t}var Be=class e{constructor(t=[]){S(this,"length");S(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(De(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(De(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(De(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(De(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(De(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let i of Array.from(o.children))i!==r&&(!t||i.matches(t))&&n.push(i)}return new e(De(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(De(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(De(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(De([...this.elements,...Rt(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.textContent)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))q(a);s.textContent=r}return this}html(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))q(a);s.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let i=o;return o.tagName==="SELECT"&&i.multiple?Array.from(i.selectedOptions).map(s=>s.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 i=o,s=o;if(i.tagName==="SELECT"&&s.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let c of Array.from(s.options))c.selected=a.includes(c.value);continue}if(i.type==="checkbox"||i.type==="radio"){i.checked=Array.isArray(n)?n.map(String).includes(i.value):n===!0||String(n)===i.value;continue}i.value=n==null?"":String(n)}return this}attr(...t){var i,s;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[c,l]of Object.entries(n))l===null||l===!1?a.removeAttribute(c):a.setAttribute(c,l===!0?"":String(l));return this}let r=String(n);if(t.length<2)return(s=(i=this.elements[0])==null?void 0:i.getAttribute(r))!=null?s: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=Ct(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 i=this.elements[0];if(!i)return{};let s={};for(let[a,c]of Object.entries(i.dataset))s[a]=uc(c);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[dc(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=dc(String(n));if(t.length<2){let i=this.elements[0];return i?uc(i.dataset[r]):void 0}let o=t[1];for(let i of this.elements)i.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)Yd(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=hc(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)Mr(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)Mr(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)Mr(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 i of this.elements)i.scrollTop=n;return this}addClass(t){let n=Ct(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Ct(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Ct(t);for(let o of this.elements)for(let i of r)n===void 0?o.classList.toggle(i):o.classList.toggle(i,n);return this}hasClass(t){let n=Ct(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 i=this.elements[o];for(let s of lc(t))n(i,o===r-1?s:s.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=Rt(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=Rt(t);for(let r=0;r<n.length;r++){let o=n[r],i=this.elements.map(s=>r===n.length-1?s:s.cloneNode(!0));for(let s=i.length-1;s>=0;s--)o.insertBefore(i[s],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of lc(t))r.insertBefore(o,n);q(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Rt(t)[0];if(!o)continue;let i=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(i,r);let s=i;for(;s.firstElementChild;)s=s.firstElementChild;s.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);q(n),n.remove()}}return this}remove(){for(let t of this.elements)q(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))q(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,i=r?n[1]:n[0],s=(a=r?n[2]:n[1])!=null?a:{};if(typeof i!="function")return this;for(let c of this.elements)for(let l of Ct(t)){let u=d=>{if(!o){i.call(c,d);return}let p=d.target,f=p==null?void 0:p.closest(o);!f||!c.contains(f)||i.call(f,d)};c.addEventListener(l,u,s),Gd(c).push({type:l,selector:o,handler:i,wrapped:u,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?Ct(t):null;for(let a of this.elements){let c=Cr.get(a);if(!c)continue;let l=[];for(let u of c){let d=!s||s.includes(u.type),p=o===null||u.selector===o,f=i===null||u.handler===i;d&&p&&f?a.removeEventListener(u.type,u.wrapped,u.options):l.push(u)}Cr.set(a,l)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0];if(typeof i!="function")return this;let s=this,a=function(c){return o?s.off(t,o,a):s.off(t,a),i.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)pc(t);return this}hide(){for(let t of this.elements)mc(t);return this}toggle(t){for(let n of this.elements)(t===void 0?fc(n):t)?pc(n):mc(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),nn(n,t);return this}fadeOut(t=220){for(let n of this.elements)rn(n,t);return this}slideUp(t=240){for(let n of this.elements)Mt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),St(n,t);return this}slideToggle(t=240){for(let n of this.elements)fc(n)?(n.removeAttribute("hidden"),St(n,t)):Mt(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 vc(t)){if(!Qd(r))continue;let o=r,i=r;if(o.tagName==="SELECT"&&i.multiple){for(let s of Array.from(i.selectedOptions))n.append(o.name,s.value);continue}n.append(o.name,o.value)}return n.toString()}serializeObject(){var r,o,i,s;let t=this.elements[0],n={};if(!t)return n;for(let a of vc(t)){let c=a;if(!c.name||c.disabled)continue;let l=(c.getAttribute("type")||"").toLowerCase();if(l==="submit"||l==="reset"||l==="button")continue;let u=c.name.endsWith("[]"),d=u?c.name.slice(0,-2):c.name,p=a,f;if(l==="checkbox"){if(!c.checked&&!u){n[d]=(r=n[d])!=null?r:!1;continue}if(!c.checked)continue;f=c.value==="on"?!0:c.value}else if(l==="radio"){if(!c.checked)continue;f=c.value}else l==="file"?f=c.multiple?Array.from((o=c.files)!=null?o:[]):(s=(i=c.files)==null?void 0:i[0])!=null?s:null:c.tagName==="SELECT"&&p.multiple?f=Array.from(p.selectedOptions).map(m=>m.value):l==="number"||l==="range"?f=c.value===""?null:Number(c.value):f=c.value;if(u){let m=n[d];Array.isArray(m)?m.push(f):n[d]=[f];continue}if(Object.prototype.hasOwnProperty.call(n,d)){let m=n[d];Array.isArray(m)?m.push(f):m===void 0||m===!1?n[d]=f:n[d]=[m,f];continue}n[d]=f}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&&q(n),W(n,Ce(n.parentNode));return this}destroy(){for(let t of this.elements)q(t);return this}};function yi(e,t){if(typeof e=="function"){bi(e);let n=typeof document!="undefined"?document.documentElement:null;return new Be(n?[n]:[])}return new Be(Rt(e,t))}function bi(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Ea(()=>{try{e==null||e()}catch(n){z(n,"V.ready")}t()})})}function wc(e){return new Be(hi(e))}re();Z();Te();Te();Z();var wi=new WeakMap;function ut(e,t){var n;return(n=xe(e,`${E.prefix}${t}`))!=null?n:xe(e,`data-v-${t}`)}function Rr(e,t){return rt(e,`${E.prefix}${t}`)||rt(e,`data-v-${t}`)}function j(e,t){let n=wi.get(e);return n&&t in n?n[t]:ut(e,t)}function Hr(e,t,n){var o;let r=(o=wi.get(e))!=null?o:{};r[t]=n,wi.set(e,r)}function $(e){b(e,({el:t,expression:n})=>{Hr(t,e,n)},{priority:P.BIND})}function K(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function qe(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=O(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var Xd=`
139
139
  .v-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
140
140
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
141
- `,ct=null;function ke(e){if(typeof document=="undefined")return;G("ui-live",Kd),(!ct||!ct.isConnected)&&(ct=document.createElement("div"),ct.className="v-visually-hidden",ct.setAttribute("role","status"),ct.setAttribute("aria-live","polite"),document.body.appendChild(ct));let t=ct;t.textContent="",setTimeout(()=>{t.textContent=e},40)}function Hr(e,t,n){return lr(e,t).filter(r=>Ut(r,n)===e)}Te();J();var Yd=`
141
+ `,lt=null;function ke(e){if(typeof document=="undefined")return;G("ui-live",Xd),(!lt||!lt.isConnected)&&(lt=document.createElement("div"),lt.className="v-visually-hidden",lt.setAttribute("role","status"),lt.setAttribute("aria-live","polite"),document.body.appendChild(lt));let t=lt;t.textContent="",setTimeout(()=>{t.textContent=e},40)}function Dr(e,t,n){return ur(e,t).filter(r=>Ut(r,n)===e)}Te();Z();var Jd=`
142
142
  .v-draggable,.v-sortable>*{-webkit-user-select:none;user-select:none}
143
143
  .v-drag-handle{cursor:grab;touch-action:none}
144
144
  .v-drag-handle:active{cursor:grabbing}
@@ -162,7 +162,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
162
162
  @media (prefers-reduced-motion: reduce){
163
163
  .v-drag-ghost{transition:none !important}
164
164
  }
165
- `;function $n(){ie(),G("dnd",Yd)}var sn=new Map,an=new Map;function wi(e,t){if(t&&t.trim())return t.trim();let n=e.closest("[data-v-dnd-group]");return(n==null?void 0:n.getAttribute("data-v-dnd-group"))||null}function ze(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function Qd(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function vc(e){return ze(e).map((t,n)=>Qd(t,n))}function hc(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var k=null,Nn=0;function Gd(e,t){let n=e.cloneNode(!0);n.classList.add("v-drag-ghost"),n.classList.remove("v-dragging","v-grabbed"),n.removeAttribute("id");for(let r of Array.from(n.querySelectorAll("[id]")))r.removeAttribute("id");return n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function yc(e,t){if(!(k!=null&&k.ghost))return;let n=k.axis==="y"?k.lastX:e,r=k.axis==="x"?k.lastY:t;k.ghost.style.transform=`translate3d(${Math.round(n-k.grabX)}px, ${Math.round(r-k.grabY)}px, 0)`}function Xd(e){let t=e;for(;t&&t!==document.body&&t!==document.documentElement;){let n=getComputedStyle(t),r=(n.overflowY==="auto"||n.overflowY==="scroll")&&t.scrollHeight>t.clientHeight+2,o=(n.overflowX==="auto"||n.overflowX==="scroll")&&t.scrollWidth>t.clientWidth+2;if(r||o)return t;t=t.parentElement}return null}function Jd(){if(!k)return;let e=56,t=16,n=k.lastX,r=k.lastY,o=document.elementFromPoint(n,r),i=Xd(o!=null?o:k.overList);if(i){let s=i.getBoundingClientRect();r-s.top<e?i.scrollTop-=t:s.bottom-r<e&&(i.scrollTop+=t),n-s.left<e?i.scrollLeft-=t:s.right-n<e&&(i.scrollLeft+=t);return}r<e?window.scrollBy(0,-t):window.innerHeight-r<e&&window.scrollBy(0,t),n<e?window.scrollBy(-t,0):window.innerWidth-n<e&&window.scrollBy(t,0)}function Zd(){let e=()=>{!k||k.keyboard||(Jd(),Nn=requestAnimationFrame(e))};Nn=requestAnimationFrame(e)}function ef(){Nn&&cancelAnimationFrame(Nn),Nn=0}function bc(e,t){let n=sn.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function Ei(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function wc(e,t){for(let n of an.values())n.el.classList.toggle("v-drop-active",t&&Ei(n,e));for(let n of sn.values())n.el.classList.toggle("v-drop-active",t&&bc(n.el,e))}function tf(e,t,n,r){let o=hc(e),i=null;for(let s of ze(e)){if(s===t)continue;let a=s.getBoundingClientRect(),c=o?a.left+a.width/2:a.top+a.height/2;if((o?n:r)<c){i=s;break}}if(i){(t.nextElementSibling!==i||t.parentElement!==e)&&e.insertBefore(t,i);return}e.lastElementChild!==t&&e.appendChild(t)}function xi(e,t){$n();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;k={item:e,mode:t.mode,data:t.data,group:t.group,axis:t.axis,ghost:null,pointerId:t.pointerId,grabX:t.keyboard?n.width/2:t.x-n.left,grabY:t.keyboard?n.height/2:t.y-n.top,startParent:e.parentElement,startNext:e.nextSibling,startList:r,startIndex:r?ze(r).indexOf(e):-1,overDrop:null,overList:r,keyboard:!!t.keyboard,lastX:t.x,lastY:t.y},e.classList.add("v-dragging"),e.setAttribute("aria-grabbed","true"),t.keyboard?e.classList.add("v-grabbed"):(k.ghost=Gd(e,n),yc(t.x,t.y),Zd()),wc(k,!0),document.addEventListener("keydown",xc,!0),K(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function nf(e,t){var a,c,l;if(!k)return;k.lastX=e,k.lastY=t,yc(e,t);let n=document.elementFromPoint(e,t),r=(a=n==null?void 0:n.closest(".v-sortable"))!=null?a:null,o=(c=n==null?void 0:n.closest(".v-droppable"))!=null?c:null;k.mode==="sort"&&r&&bc(r,k)?(k.overList&&k.overList!==r&&k.overList.classList.remove("v-drop-over"),k.overList=r,r.classList.add("v-drop-over"),tf(r,k.item,e,t)):k.overList&&!r&&k.overList.classList.remove("v-drop-over");let i=o?an.get(o):void 0,s=i?Ei(i,k):!1;k.overDrop&&k.overDrop!==o&&(k.overDrop.classList.remove("v-drop-over"),k.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),k.overDrop=o),(l=k.ghost)==null||l.classList.toggle("v-drag-invalid",!!o&&!s)}function rf(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function Ec(e){var t,n,r;(t=e.ghost)==null||t.remove(),e.item.classList.remove("v-dragging","v-grabbed"),e.item.setAttribute("aria-grabbed","false"),(n=e.overDrop)==null||n.classList.remove("v-drop-over"),(r=e.overList)==null||r.classList.remove("v-drop-over"),wc(e,!1),ef(),document.removeEventListener("keydown",xc,!0),k=null}function Ti(){var i;let e=k;if(!e)return;let t=e.item.parentElement,n=t?ze(t).indexOf(e.item):-1,r=e.overDrop,o=r?an.get(r):void 0;if(e.mode==="sort"&&t&&sn.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:vc(t)};K(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&K(e.startList,"voodoo:sorted",{...a,order:vc(e.startList)}),ke(`Item moved to position ${n+1} of ${ze(t).length}`)}if(r&&o){let s={item:e.item,data:e.data,from:(i=e.startList)!=null?i:e.startParent,to:r,index:n},a=new CustomEvent("voodoo:drop",{detail:s,bubbles:!0});r.dispatchEvent(a),qe(o.expression,o.scope,r,a,s),ke("Item dropped in drop zone")}K(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),Ec(e)}function bi(){let e=k;e&&(rf(e),K(e.item,"voodoo:drag-cancel",{item:e.item}),ke("Drag canceled"),Ec(e))}function xc(e){!k||e.key!=="Escape"||(e.preventDefault(),bi())}function Tc(e,t,n){let r=null,o=-1,i=0,s=0,a=!1,c=f=>{if(f.pointerId===o){if(!a){if(Math.hypot(f.clientX-i,f.clientY-s)<4||!r)return;a=!0,xi(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}f.preventDefault(),nf(f.clientX,f.clientY)}},l=()=>{window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",d),r=null,o=-1,a=!1},u=f=>{f.pointerId===o&&(a&&Ti(),l())},d=()=>{a&&bi(),l()},p=f=>{if(f.button!==0||k)return;let m=f.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let v=t.itemFrom(m);v&&(r=v,o=f.pointerId,i=f.clientX,s=f.clientY,a=!1,window.addEventListener("pointermove",c,{passive:!1}),window.addEventListener("pointerup",u),window.addEventListener("pointercancel",d))};e.addEventListener("pointerdown",p),n(()=>{e.removeEventListener("pointerdown",p),a&&bi(),l()})}function of(e){return e?Array.from(sn.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function sf(e,t){if(!k)return!1;let n=e.parentElement;if(!n)return!1;let r=hc(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=ze(n),a=s.indexOf(e);if(o||i){let c=a+(o?1:-1);return c<0||c>=s.length?!1:(o?n.insertBefore(e,s[c].nextSibling):n.insertBefore(e,s[c]),ke(`Position ${c+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let c=of(k.group),l=c.indexOf(n);if(l===-1)return!1;let u=c[l+(t==="ArrowRight"?1:-1)];return u?(u.appendChild(e),ke(`Moved to list ${c.indexOf(u)+1} of ${c.length}`),e.focus(),!0):!1}return!1}function af(e){return Array.from(an.values()).filter(t=>Ei(t,e)).map(t=>t.el)}b("dnd-group",({el:e,expression:t})=>{$n();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});b("sortable",({el:e,expression:t,cleanup:n})=>{$n(),e.classList.add("v-sortable");let r=j(e,"sortable-handle")||t.trim()||null,o={el:e,group:wi(e,j(e,"sortable-group")),handle:r};sn.set(e,o),e.hasAttribute("aria-label")||e.setAttribute("aria-label","Sortable list");let i=c=>{var l;c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),c.hasAttribute("aria-grabbed")||c.setAttribute("aria-grabbed","false"),r?(l=c.querySelector(r))==null||l.classList.add("v-drag-handle"):c.classList.add("v-drag-handle")};for(let c of ze(e))i(c);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let c of ze(e))i(c)});s==null||s.observe(e,{childList:!0}),Tc(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:c=>{let l=ze(e).find(u=>u===c||u.contains(c));return l!=null?l:null}},n);let a=c=>{let l=c.target;if(!l)return;let u=ze(e).find(d=>d===l||d.contains(l));if(u){if(c.key===" "||c.key==="Spacebar"){if(c.preventDefault(),k&&k.item===u){Ti(),ke("Item dropped");return}if(k)return;xi(u,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),ke("Item grabbed. Use arrow keys to move and space to drop.");return}!k||k.item!==u||c.key.startsWith("Arrow")&&sf(u,c.key)&&c.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),sn.delete(e)})});O("sortable-group");O("sortable-handle");b("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;$n(),e.classList.add("v-draggable");let o=j(e,"draggable-handle")||null,i=(j(e,"draggable-axis")||"").trim().toLowerCase(),s=i==="x"||i==="y"?i:null,a=j(e,"draggable-data")||t.trim(),c=wi(e,j(e,"draggable-group"));o?(m=e.querySelector(o))==null||m.classList.add("v-drag-handle"):e.classList.add("v-drag-handle"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.setAttribute("aria-grabbed","false"),e.hasAttribute("aria-roledescription")||e.setAttribute("aria-roledescription","draggable item");let l=()=>a?$(a,n,"v-draggable-data"):null;Tc(e,{mode:"free",handle:o,group:()=>c,data:l,axis:()=>s,itemFrom:()=>e},r);let u=[],d=0,p=()=>{u.forEach((g,h)=>g.classList.toggle("v-drop-over",h===d));let v=u[d];!v||!k||(k.overDrop=v,ee.reducedMotion?v.scrollIntoView({block:"nearest"}):v.scrollIntoView({block:"nearest",behavior:"smooth"}),ke(v.getAttribute("aria-label")||`Target ${d+1} of ${u.length}`))},f=v=>{if(v.key===" "||v.key==="Spacebar"){if(v.preventDefault(),k&&k.item===e){Ti(),u=[];return}if(k)return;xi(e,{mode:"free",data:l(),group:c,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),u=k?af(k):[],d=0,u.length?p():ke("No targets available");return}if(!(!k||k.item!==e||!u.length)){if(v.key==="ArrowDown"||v.key==="ArrowRight"){v.preventDefault(),d=(d+1)%u.length,p();return}(v.key==="ArrowUp"||v.key==="ArrowLeft")&&(v.preventDefault(),d=(d-1+u.length)%u.length,p())}};e.addEventListener("keydown",f),r(()=>{e.removeEventListener("keydown",f);for(let v of u)v.classList.remove("v-drop-over")})});O("draggable-handle");O("draggable-axis");O("draggable-data");O("draggable-group");b("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{$n(),e.classList.add("v-droppable");let o={el:e,group:wi(e,j(e,"droppable-group")),accept:j(e,"droppable-accept"),expression:t,scope:n};an.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{an.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});O("droppable-accept");O("droppable-group");var cf=`
165
+ `;function $n(){se(),G("dnd",Jd)}var sn=new Map,an=new Map;function xi(e,t){if(t&&t.trim())return t.trim();let n=e.closest("[data-v-dnd-group]");return(n==null?void 0:n.getAttribute("data-v-dnd-group"))||null}function ze(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function Zd(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function Ec(e){return ze(e).map((t,n)=>Zd(t,n))}function xc(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var k=null,On=0;function ef(e,t){let n=e.cloneNode(!0);n.classList.add("v-drag-ghost"),n.classList.remove("v-dragging","v-grabbed"),n.removeAttribute("id");for(let r of Array.from(n.querySelectorAll("[id]")))r.removeAttribute("id");return n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function Tc(e,t){if(!(k!=null&&k.ghost))return;let n=k.axis==="y"?k.lastX:e,r=k.axis==="x"?k.lastY:t;k.ghost.style.transform=`translate3d(${Math.round(n-k.grabX)}px, ${Math.round(r-k.grabY)}px, 0)`}function tf(e){let t=e;for(;t&&t!==document.body&&t!==document.documentElement;){let n=getComputedStyle(t),r=(n.overflowY==="auto"||n.overflowY==="scroll")&&t.scrollHeight>t.clientHeight+2,o=(n.overflowX==="auto"||n.overflowX==="scroll")&&t.scrollWidth>t.clientWidth+2;if(r||o)return t;t=t.parentElement}return null}function nf(){if(!k)return;let e=56,t=16,n=k.lastX,r=k.lastY,o=document.elementFromPoint(n,r),i=tf(o!=null?o:k.overList);if(i){let s=i.getBoundingClientRect();r-s.top<e?i.scrollTop-=t:s.bottom-r<e&&(i.scrollTop+=t),n-s.left<e?i.scrollLeft-=t:s.right-n<e&&(i.scrollLeft+=t);return}r<e?window.scrollBy(0,-t):window.innerHeight-r<e&&window.scrollBy(0,t),n<e?window.scrollBy(-t,0):window.innerWidth-n<e&&window.scrollBy(t,0)}function rf(){let e=()=>{!k||k.keyboard||(nf(),On=requestAnimationFrame(e))};On=requestAnimationFrame(e)}function of(){On&&cancelAnimationFrame(On),On=0}function kc(e,t){let n=sn.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function Ti(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function Lc(e,t){for(let n of an.values())n.el.classList.toggle("v-drop-active",t&&Ti(n,e));for(let n of sn.values())n.el.classList.toggle("v-drop-active",t&&kc(n.el,e))}function sf(e,t,n,r){let o=xc(e),i=null;for(let s of ze(e)){if(s===t)continue;let a=s.getBoundingClientRect(),c=o?a.left+a.width/2:a.top+a.height/2;if((o?n:r)<c){i=s;break}}if(i){(t.nextElementSibling!==i||t.parentElement!==e)&&e.insertBefore(t,i);return}e.lastElementChild!==t&&e.appendChild(t)}function ki(e,t){$n();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;k={item:e,mode:t.mode,data:t.data,group:t.group,axis:t.axis,ghost:null,pointerId:t.pointerId,grabX:t.keyboard?n.width/2:t.x-n.left,grabY:t.keyboard?n.height/2:t.y-n.top,startParent:e.parentElement,startNext:e.nextSibling,startList:r,startIndex:r?ze(r).indexOf(e):-1,overDrop:null,overList:r,keyboard:!!t.keyboard,lastX:t.x,lastY:t.y},e.classList.add("v-dragging"),e.setAttribute("aria-grabbed","true"),t.keyboard?e.classList.add("v-grabbed"):(k.ghost=ef(e,n),Tc(t.x,t.y),rf()),Lc(k,!0),document.addEventListener("keydown",Sc,!0),K(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function af(e,t){var a,c,l;if(!k)return;k.lastX=e,k.lastY=t,Tc(e,t);let n=document.elementFromPoint(e,t),r=(a=n==null?void 0:n.closest(".v-sortable"))!=null?a:null,o=(c=n==null?void 0:n.closest(".v-droppable"))!=null?c:null;k.mode==="sort"&&r&&kc(r,k)?(k.overList&&k.overList!==r&&k.overList.classList.remove("v-drop-over"),k.overList=r,r.classList.add("v-drop-over"),sf(r,k.item,e,t)):k.overList&&!r&&k.overList.classList.remove("v-drop-over");let i=o?an.get(o):void 0,s=i?Ti(i,k):!1;k.overDrop&&k.overDrop!==o&&(k.overDrop.classList.remove("v-drop-over"),k.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),k.overDrop=o),(l=k.ghost)==null||l.classList.toggle("v-drag-invalid",!!o&&!s)}function cf(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function Ac(e){var t,n,r;(t=e.ghost)==null||t.remove(),e.item.classList.remove("v-dragging","v-grabbed"),e.item.setAttribute("aria-grabbed","false"),(n=e.overDrop)==null||n.classList.remove("v-drop-over"),(r=e.overList)==null||r.classList.remove("v-drop-over"),Lc(e,!1),of(),document.removeEventListener("keydown",Sc,!0),k=null}function Li(){var i;let e=k;if(!e)return;let t=e.item.parentElement,n=t?ze(t).indexOf(e.item):-1,r=e.overDrop,o=r?an.get(r):void 0;if(e.mode==="sort"&&t&&sn.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:Ec(t)};K(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&K(e.startList,"voodoo:sorted",{...a,order:Ec(e.startList)}),ke(`Item moved to position ${n+1} of ${ze(t).length}`)}if(r&&o){let s={item:e.item,data:e.data,from:(i=e.startList)!=null?i:e.startParent,to:r,index:n},a=new CustomEvent("voodoo:drop",{detail:s,bubbles:!0});r.dispatchEvent(a),qe(o.expression,o.scope,r,a,s),ke("Item dropped in drop zone")}K(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),Ac(e)}function Ei(){let e=k;e&&(cf(e),K(e.item,"voodoo:drag-cancel",{item:e.item}),ke("Drag canceled"),Ac(e))}function Sc(e){!k||e.key!=="Escape"||(e.preventDefault(),Ei())}function Mc(e,t,n){let r=null,o=-1,i=0,s=0,a=!1,c=f=>{if(f.pointerId===o){if(!a){if(Math.hypot(f.clientX-i,f.clientY-s)<4||!r)return;a=!0,ki(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}f.preventDefault(),af(f.clientX,f.clientY)}},l=()=>{window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",d),r=null,o=-1,a=!1},u=f=>{f.pointerId===o&&(a&&Li(),l())},d=()=>{a&&Ei(),l()},p=f=>{if(f.button!==0||k)return;let m=f.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let v=t.itemFrom(m);v&&(r=v,o=f.pointerId,i=f.clientX,s=f.clientY,a=!1,window.addEventListener("pointermove",c,{passive:!1}),window.addEventListener("pointerup",u),window.addEventListener("pointercancel",d))};e.addEventListener("pointerdown",p),n(()=>{e.removeEventListener("pointerdown",p),a&&Ei(),l()})}function lf(e){return e?Array.from(sn.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function uf(e,t){if(!k)return!1;let n=e.parentElement;if(!n)return!1;let r=xc(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=ze(n),a=s.indexOf(e);if(o||i){let c=a+(o?1:-1);return c<0||c>=s.length?!1:(o?n.insertBefore(e,s[c].nextSibling):n.insertBefore(e,s[c]),ke(`Position ${c+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let c=lf(k.group),l=c.indexOf(n);if(l===-1)return!1;let u=c[l+(t==="ArrowRight"?1:-1)];return u?(u.appendChild(e),ke(`Moved to list ${c.indexOf(u)+1} of ${c.length}`),e.focus(),!0):!1}return!1}function df(e){return Array.from(an.values()).filter(t=>Ti(t,e)).map(t=>t.el)}b("dnd-group",({el:e,expression:t})=>{$n();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});b("sortable",({el:e,expression:t,cleanup:n})=>{$n(),e.classList.add("v-sortable");let r=j(e,"sortable-handle")||t.trim()||null,o={el:e,group:xi(e,j(e,"sortable-group")),handle:r};sn.set(e,o),e.hasAttribute("aria-label")||e.setAttribute("aria-label","Sortable list");let i=c=>{var l;c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),c.hasAttribute("aria-grabbed")||c.setAttribute("aria-grabbed","false"),r?(l=c.querySelector(r))==null||l.classList.add("v-drag-handle"):c.classList.add("v-drag-handle")};for(let c of ze(e))i(c);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let c of ze(e))i(c)});s==null||s.observe(e,{childList:!0}),Mc(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:c=>{let l=ze(e).find(u=>u===c||u.contains(c));return l!=null?l:null}},n);let a=c=>{let l=c.target;if(!l)return;let u=ze(e).find(d=>d===l||d.contains(l));if(u){if(c.key===" "||c.key==="Spacebar"){if(c.preventDefault(),k&&k.item===u){Li(),ke("Item dropped");return}if(k)return;ki(u,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),ke("Item grabbed. Use arrow keys to move and space to drop.");return}!k||k.item!==u||c.key.startsWith("Arrow")&&uf(u,c.key)&&c.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),sn.delete(e)})});$("sortable-group");$("sortable-handle");b("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;$n(),e.classList.add("v-draggable");let o=j(e,"draggable-handle")||null,i=(j(e,"draggable-axis")||"").trim().toLowerCase(),s=i==="x"||i==="y"?i:null,a=j(e,"draggable-data")||t.trim(),c=xi(e,j(e,"draggable-group"));o?(m=e.querySelector(o))==null||m.classList.add("v-drag-handle"):e.classList.add("v-drag-handle"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.setAttribute("aria-grabbed","false"),e.hasAttribute("aria-roledescription")||e.setAttribute("aria-roledescription","draggable item");let l=()=>a?O(a,n,"v-draggable-data"):null;Mc(e,{mode:"free",handle:o,group:()=>c,data:l,axis:()=>s,itemFrom:()=>e},r);let u=[],d=0,p=()=>{u.forEach((g,h)=>g.classList.toggle("v-drop-over",h===d));let v=u[d];!v||!k||(k.overDrop=v,te.reducedMotion?v.scrollIntoView({block:"nearest"}):v.scrollIntoView({block:"nearest",behavior:"smooth"}),ke(v.getAttribute("aria-label")||`Target ${d+1} of ${u.length}`))},f=v=>{if(v.key===" "||v.key==="Spacebar"){if(v.preventDefault(),k&&k.item===e){Li(),u=[];return}if(k)return;ki(e,{mode:"free",data:l(),group:c,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),u=k?df(k):[],d=0,u.length?p():ke("No targets available");return}if(!(!k||k.item!==e||!u.length)){if(v.key==="ArrowDown"||v.key==="ArrowRight"){v.preventDefault(),d=(d+1)%u.length,p();return}(v.key==="ArrowUp"||v.key==="ArrowLeft")&&(v.preventDefault(),d=(d-1+u.length)%u.length,p())}};e.addEventListener("keydown",f),r(()=>{e.removeEventListener("keydown",f);for(let v of u)v.classList.remove("v-drop-over")})});$("draggable-handle");$("draggable-axis");$("draggable-data");$("draggable-group");b("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{$n(),e.classList.add("v-droppable");let o={el:e,group:xi(e,j(e,"droppable-group")),accept:j(e,"droppable-accept"),expression:t,scope:n};an.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{an.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});$("droppable-accept");$("droppable-group");var ff=`
166
166
  .v-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
167
167
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
168
168
  .v-focus-ring:focus-visible{outline:2px solid var(--v-primary,#6D3BF5);outline-offset:2px;
@@ -267,8 +267,8 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
267
267
  transition-duration:.01ms !important}
268
268
  .v-skeleton{animation-duration:.01ms !important}
269
269
  }
270
- `;function X(){ie(),G("ui",cf)}function cn(e,t){var r;let n=t.trim();if(n)try{let o=document.querySelector(n);if(o)return o}catch(o){}return(r=e.nextElementSibling)!=null?r:null}function Ge(e,t){return e.id||(e.id=ue(`${t}-`)),e.id}var Rc='a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,summary,[contenteditable="true"],[tabindex]:not([tabindex="-1"])';function On(e){return Array.from(e.querySelectorAll(Rc)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function Nr(e,t){let n=On(e);if(!n.length){t.preventDefault(),e.focus();return}let r=n[0],o=n[n.length-1],i=document.activeElement;if(t.shiftKey&&(i===r||!e.contains(i))){t.preventDefault(),o.focus();return}!t.shiftKey&&i===o&&(t.preventDefault(),r.focus())}function he(e,t){let n=e.tagName;if(n==="BUTTON"||n==="A"||n==="INPUT"||n==="SUMMARY"){e.classList.add("v-focus-ring");return}e.hasAttribute("role")||e.setAttribute("role","button"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.classList.add("v-focus-ring");let r=o=>{o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),e.click())};e.addEventListener("keydown",r),t(()=>e.removeEventListener("keydown",r))}var ki=0,Hc="";function Dc(){if(ki++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;Hc=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function Pc(){ki!==0&&(--ki>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=Hc))}function Nc(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function lf(e,t=!0){if(e.removeAttribute("hidden"),t&&!ee.reducedMotion){nn(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function uf(e,t=!0){if(t&&!ee.reducedMotion){rn(e);return}e.style.display="none"}var df={top:"bottom",bottom:"top",left:"right",right:"left"};function $c(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function Oc(e,t,n,r="center",o=8){t.style.position="fixed",t.style.left="0px",t.style.top="0px";let i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),a=document.documentElement.clientWidth,c=document.documentElement.clientHeight,l={top:i.top,bottom:c-i.bottom,left:i.left,right:a-i.right},u={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},d=n;if(l[d]<u[d]){let m=df[d];if(l[m]>=u[m])d=m;else for(let v of Object.keys(l))l[v]-u[v]>l[d]-u[d]&&(d=v)}let p=0,f=0;return d==="top"||d==="bottom"?(p=d==="top"?i.top-s.height-o:i.bottom+o,f=r==="start"?i.left:i.left+i.width/2-s.width/2,r==="start"&&f+s.width>a-o&&(f=i.right-s.width)):(f=d==="left"?i.left-s.width-o:i.right+o,p=r==="start"?i.top:i.top+i.height/2-s.height/2),f=Math.min(Math.max(o,f),Math.max(o,a-s.width-o)),p=Math.min(Math.max(o,p),Math.max(o,c-s.height-o)),t.style.left=`${Math.round(f)}px`,t.style.top=`${Math.round(p)}px`,t.setAttribute("data-placement",d),d}var Dr=[],kc=!1,ff={esc:"escape",space:" ",spacebar:" ",enter:"enter",ret:"enter",del:"delete",ins:"insert",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",plus:"+",minus:"-",comma:",",period:".",slash:"/",question:"?"},pf=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function Si(e){var r;let t=e.trim().toLowerCase().split("+").map(o=>o.trim()).filter(Boolean);if(!t.length)return null;let n={ctrl:!1,shift:!1,alt:!1,meta:!1,key:"",hasModifier:!1};for(let o of t)o==="ctrl"||o==="control"?n.ctrl=!0:o==="shift"?n.shift=!0:o==="alt"||o==="option"?n.alt=!0:o==="meta"||o==="cmd"||o==="command"||o==="super"?n.meta=!0:o==="mod"?pf?n.meta=!0:n.ctrl=!0:n.key=(r=ff[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function mf(e,t){return e.ctrl!==t.ctrlKey||e.alt!==t.altKey||e.meta!==t.metaKey||t.key.toLowerCase()!==e.key?!1:e.key.length===1&&!/^[a-z0-9 ]$/.test(e.key)?e.shift?t.shiftKey:!0:e.shift===t.shiftKey}function gf(e){let t=e;return!t||typeof t.tagName!="string"?!1:t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.tagName==="SELECT"?!0:t.isContentEditable===!0}function Fc(e){let t=[];return e.ctrl&&t.push("Control"),e.alt&&t.push("Alt"),e.shift&&t.push("Shift"),e.meta&&t.push("Meta"),t.push(e.key===" "?"Space":e.key.length===1?e.key.toUpperCase():e.key),t.join("+")}function vf(e){if(e.defaultPrevented)return;let t=gf(e.target);for(let n of[...Dr])for(let r of n.combos)if(mf(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function $r(e,t,n={}){let r=e.split(",").map(i=>Si(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return Dr.push(o),kc||(kc=!0,document.addEventListener("keydown",vf)),()=>{let i=Dr.indexOf(o);i>-1&&Dr.splice(i,1)}}b("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{X();let o=cn(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",Ge(o,"v-toggle")),he(e,r);let a=i?o.classList.contains(i):!Nc(o),c=()=>{e.setAttribute("aria-expanded",String(a))},l=u=>{u.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(uf(o,s),a=!1):(lf(o,s),a=!0),c(),K(e,"voodoo:toggle",{target:o,open:a})};c(),e.addEventListener("click",l),r(()=>e.removeEventListener("click",l))});var Li=class{constructor(t){S(this,"panel");S(this,"triggers",new Set);S(this,"listeners",new Set);S(this,"open");S(this,"duration");this.panel=t,this.duration=U(j(t,"collapse-duration"),240);let n=(j(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!Nc(t),t.classList.add("v-collapse-panel"),Ge(t,"v-collapse"),this.open||(t.style.display="none"),this.sync()}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id);for(let t of this.listeners)t(this.open)}show(){this.open||(this.open=!0,this.panel.removeAttribute("hidden"),ee.reducedMotion?this.panel.style.removeProperty("display"):St(this.panel,this.duration),this.sync(),K(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,ee.reducedMotion?this.panel.style.display="none":Mt(this.panel,this.duration),this.sync(),K(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},Lc=new WeakMap;function Mi(e){let t=Lc.get(e);return t||Lc.set(e,t=new Li(e)),t}b("collapse",({el:e})=>{X(),Mi(e)});b("collapse-toggle",({el:e,expression:t,cleanup:n})=>{X();let r=cn(e,t);if(!r)return;let o=Mi(r);o.triggers.add(e),o.sync(),he(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})});O("collapse-duration");var Pr=class{constructor(t,n,r){S(this,"trigger");S(this,"panel");S(this,"kind");S(this,"placement");S(this,"open",!1);S(this,"lastFocus",null);S(this,"homeParent");S(this,"homeNext");S(this,"reposition",()=>{this.open&&Oc(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});S(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});S(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&Nr(this.panel,t);return}let n=this.items();if(!n.length)return;let r=n.indexOf(document.activeElement);if(t.key==="Enter"||t.key===" "){let o=n[r];if(!o)return;t.preventDefault(),this.hide(!0),o.click();return}if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault();let o=t.key==="ArrowDown"?1:-1,i=(r+o+n.length)%n.length;n[r===-1&&o===-1?n.length-1:i].focus();return}if(t.key==="Home"){t.preventDefault(),n[0].focus();return}if(t.key==="End"){t.preventDefault(),n[n.length-1].focus();return}t.key==="Tab"&&this.hide()});this.trigger=t,this.panel=n,this.kind=r,this.homeParent=n.parentElement,this.homeNext=n.nextSibling,this.placement=$c(j(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),Ge(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?Ic(n):n.setAttribute("role","dialog"),t.setAttribute("aria-haspopup",r==="menu"?"menu":"dialog"),t.setAttribute("aria-controls",n.id),t.setAttribute("aria-expanded","false")}items(){return Array.from(this.panel.querySelectorAll('[role="menuitem"]'))}show(){var t;this.open||(this.open=!0,this.lastFocus=document.activeElement,this.panel.parentElement!==document.body&&document.body.appendChild(this.panel),this.panel.hidden=!1,this.reposition(),requestAnimationFrame(()=>this.panel.classList.add("v-in")),this.trigger.setAttribute("aria-expanded","true"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!0),document.addEventListener("keydown",this.onKeyDown,!0),window.addEventListener("resize",this.reposition),window.addEventListener("scroll",this.reposition,!0),this.kind==="dialog"&&((t=On(this.panel)[0])==null||t.focus()),K(this.trigger,"voodoo:popup",{open:!0,panel:this.panel}))}hide(t=!1){var r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-in"),this.trigger.setAttribute("aria-expanded","false"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0);let n=()=>{this.open||(this.panel.hidden=!0)};ee.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),K(this.trigger,"voodoo:popup",{open:!1,panel:this.panel})}toggle(){this.open?this.hide(!0):this.show()}dispose(){this.hide(),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0),!(!this.homeParent||this.panel.parentElement===this.homeParent)&&(this.homeNext&&this.homeNext.parentNode===this.homeParent?this.homeParent.insertBefore(this.panel,this.homeNext):this.homeParent.appendChild(this.panel))}};function Ic(e){X(),e.classList.add("v-dropdown-menu"),e.hasAttribute("role")||e.setAttribute("role","menu");for(let t of Array.from(e.children)){let n=t;n.hasAttribute("role")||n.matches("a,button,[tabindex]")&&(n.setAttribute("role","menuitem"),n.setAttribute("tabindex","-1"))}}b("dropdown-menu",({el:e})=>{Ic(e)});b("dropdown",({el:e,expression:t,cleanup:n})=>{X();let r=cn(e,t);if(!r)return;let o=new Pr(e,r,"menu");he(e,n);let i=a=>{a.preventDefault(),o.toggle()},s=a=>{var l;if(a.key==="ArrowDown"||a.key==="ArrowUp"){a.preventDefault(),o.open||o.show();let u=o.items();u.length&&u[a.key==="ArrowDown"?0:u.length-1].focus();return}if(a.key!=="Enter"&&a.key!==" ")return;let c=a.defaultPrevented;a.preventDefault(),c||o.toggle(),o.open&&((l=o.items()[0])==null||l.focus())};e.addEventListener("click",i),e.addEventListener("keydown",s),n(()=>{e.removeEventListener("click",i),e.removeEventListener("keydown",s),o.dispose()})});b("popover",({el:e,expression:t,cleanup:n})=>{X();let r=cn(e,t);if(!r)return;let o=new Pr(e,r,"dialog");he(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});O("dropdown-position");O("popover-position");b("tooltip",({el:e,expression:t,cleanup:n})=>{X();let r=t.trim();if(!r)return;let o=$c(j(e,"tooltip-position"),"top"),i=U(j(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(Rc);s&&e.setAttribute("tabindex","0");let a=null,c=null,l=()=>{let g=document.createElement("div");return g.className="v-tooltip",g.setAttribute("role","tooltip"),g.id=ue("v-tip-"),g.textContent=r,document.body.appendChild(g),g},u=()=>{a&&Oc(e,a,o)},d=()=>{a||(a=l(),e.setAttribute("aria-describedby",a.id),u(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",u),window.addEventListener("scroll",u,!0))},p=()=>{if(c&&(clearTimeout(c),c=null),!a)return;let g=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",u),window.removeEventListener("scroll",u,!0),g.classList.remove("v-in"),ee.reducedMotion?g.remove():setTimeout(()=>g.remove(),160)},f=()=>{c||a||(c=setTimeout(()=>{c=null,d()},i))},m=g=>{g.key==="Escape"&&p()},v=()=>{s&&e.focus()};e.addEventListener("mouseenter",f),e.addEventListener("focusin",d),e.addEventListener("pointerdown",v),e.addEventListener("mouseleave",p),e.addEventListener("focusout",p),e.addEventListener("keydown",m),n(()=>{p(),s&&e.removeAttribute("tabindex"),e.removeEventListener("mouseenter",f),e.removeEventListener("focusin",d),e.removeEventListener("pointerdown",v),e.removeEventListener("mouseleave",p),e.removeEventListener("focusout",p),e.removeEventListener("keydown",m)})});O("tooltip-position");O("tooltip-delay");b("tabs",({el:e,expression:t,cleanup:n})=>{X();let r=Hr(e,"tab","tabs"),o=Hr(e,"tab-panel","tabs");if(!r.length)return;let i=(g,h)=>lt(g,"tab")||String(h),s=r[0].parentElement;s&&!s.hasAttribute("role")&&s.setAttribute("role","tablist");let a=((s==null?void 0:s.getAttribute("aria-orientation"))||"").trim().toLowerCase()==="vertical";s==null||s.setAttribute("aria-orientation",a?"vertical":"horizontal");let c=Cr(e,"tabs-url")?lt(e,"tabs-url")||"tab":null;r.forEach((g,h)=>{let y=i(g,h),w=o.find(T=>lt(T,"tab-panel")===y);g.classList.add("v-tab","v-focus-ring"),g.setAttribute("role","tab"),Ge(g,"v-tab"),w&&(Ge(w,"v-panel"),w.setAttribute("role","tabpanel"),w.setAttribute("aria-labelledby",g.id),g.setAttribute("aria-controls",w.id))});let l="",u=(g,h=!1)=>{if(r.some((y,w)=>i(y,w)===g)){l=g,r.forEach((y,w)=>{let T=i(y,w)===g;y.setAttribute("aria-selected",String(T)),y.setAttribute("tabindex",T?"0":"-1"),y.classList.toggle("v-active",T),T&&h&&y.focus()});for(let y of o)y.hidden=lt(y,"tab-panel")!==g;c&&at.set(c,g),K(e,"voodoo:tab",{id:g})}},d=g=>{let h=Ut(g.target,"tab");!h||!r.includes(h)||(g.preventDefault(),u(i(h,r.indexOf(h))))},p=g=>{let h=Ut(g.target,"tab");if(!h||!r.includes(h))return;let y=r.indexOf(h),w=a?"ArrowDown":"ArrowRight",T=a?"ArrowUp":"ArrowLeft",x=-1;g.key===w?x=(y+1)%r.length:g.key===T?x=(y-1+r.length)%r.length:g.key==="Home"?x=0:g.key==="End"&&(x=r.length-1),x!==-1&&(g.preventDefault(),u(i(r[x],x),!0))},f=()=>{if(!c)return;let g=at.get(c);g&&g!==l&&u(g)};e.addEventListener("click",d),e.addEventListener("keydown",p),window.addEventListener("popstate",f),n(()=>{e.removeEventListener("click",d),e.removeEventListener("keydown",p),window.removeEventListener("popstate",f)});let v=(c?at.get(c):void 0)||t.trim()||i(r[0],0);u(v),l||u(i(r[0],0))});O("tab");O("tab-panel");O("tabs-url");b("accordion",({el:e,cleanup:t})=>{X();let n=Hr(e,"accordion-item","accordion");if(!n.length)return;let r=Cr(e,"accordion-single"),o=[],i=[];for(let c of n){let l=c.firstElementChild,u=c.lastElementChild;if(!l||!u||l===u)continue;let d=(lt(c,"accordion-item")||"").trim().toLowerCase();d!=="open"&&d!=="true"&&(u.style.display="none");let p=Mi(u);p.triggers.add(l),p.sync(),l.classList.add("v-accordion-header","v-focus-ring"),l.hasAttribute("role")||l.setAttribute("role","button"),l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),Ge(u,"v-accordion-panel"),l.setAttribute("aria-controls",u.id),l.setAttribute("aria-expanded",String(p.open)),n.length<=6&&!u.hasAttribute("role")&&(u.setAttribute("role","region"),u.setAttribute("aria-labelledby",Ge(l,"v-accordion-header"))),o.push(l),i.push(p)}let s=c=>{var p;let l=(p=c.target)==null?void 0:p.closest(".v-accordion-header");if(!l)return;let u=o.indexOf(l);if(u===-1)return;c.preventDefault();let d=i[u];if(r&&!d.open)for(let f of i)f!==d&&f.hide();d.toggle()},a=c=>{var p;let l=(p=c.target)==null?void 0:p.closest(".v-accordion-header");if(!l)return;let u=o.indexOf(l);if(u===-1)return;if(c.key==="Enter"||c.key===" "){c.preventDefault(),l.click();return}let d=-1;c.key==="ArrowDown"?d=(u+1)%o.length:c.key==="ArrowUp"?d=(u-1+o.length)%o.length:c.key==="Home"?d=0:c.key==="End"&&(d=o.length-1),d!==-1&&(c.preventDefault(),o[d].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});O("accordion-item");O("accordion-single");var Ai=class{constructor(t){S(this,"origem",null);S(this,"panel");S(this,"triggers",new Set);S(this,"open",!1);S(this,"backdrop",null);S(this,"lastFocus",null);S(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&Nr(this.panel,t)}});S(this,"onPointerDown",t=>{let n=t.target;if(!(!n||this.panel.contains(n))){for(let r of this.triggers)if(r.contains(n))return;this.hide()}});this.panel=t;let n=(j(t,"drawer-side")||"right").trim().toLowerCase();t.classList.add("v-drawer-panel"),t.setAttribute("data-side",["left","right","top","bottom"].includes(n)?n:"right"),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),Ge(t,"v-drawer"),t.hidden=!0,this.label()}label(){let t=this.panel;if(t.hasAttribute("aria-labelledby")||t.hasAttribute("aria-label"))return;let n=t.querySelector("[data-drawer-title],h1,h2,h3,h4");n&&t.setAttribute("aria-labelledby",Ge(n,"v-drawer-title"))}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id),t.setAttribute("aria-haspopup","dialog")}show(){var n,r;if(this.open)return;this.open=!0,this.lastFocus=document.activeElement,this.backdrop=document.createElement("div"),this.backdrop.className="v-drawer-backdrop",this.backdrop.addEventListener("click",()=>this.hide()),document.body.appendChild(this.backdrop),this.panel.parentElement!==document.body&&(this.origem=document.createComment(" v-drawer "),(n=this.panel.parentNode)==null||n.insertBefore(this.origem,this.panel),document.body.appendChild(this.panel)),this.panel.hidden=!1,this.label(),Dc();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};ee.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=On(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),K(this.panel,"voodoo:drawer",{open:!0})}hide(){var n,r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-open"),(n=this.backdrop)==null||n.classList.remove("v-in"),document.removeEventListener("keydown",this.onKeyDown,!0),document.removeEventListener("pointerdown",this.onPointerDown,!0);let t=()=>{var o;this.open||(this.panel.hidden=!0,(o=this.backdrop)==null||o.remove(),this.backdrop=null,this.origem&&this.origem.parentNode&&(this.origem.parentNode.insertBefore(this.panel,this.origem),this.origem.remove(),this.origem=null))};ee.reducedMotion?t():setTimeout(t,300),Pc(),(r=this.lastFocus)==null||r.focus(),this.sync(),K(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},Ac=new WeakMap;function Ci(e){let t=Ac.get(e);return t||Ac.set(e,t=new Ai(e)),t}b("drawer-content",({el:e})=>{X(),Ci(e)});function jc(e,t,n){X();let r=cn(e,t);if(!r)return;let o=Ci(r);o.triggers.add(e),o.sync(),he(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}b("drawer",({el:e,expression:t,cleanup:n})=>{jc(e,t,n)});b("offcanvas",({el:e,expression:t,cleanup:n})=>{jc(e,t,n)});b("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?cn(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:Ut(e,"drawer-content");if(!r)return;he(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),Ci(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});O("drawer-side");b("theme-toggle",({el:e,cleanup:t})=>{he(e,t);let n=()=>{let i=je.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=je.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),je.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});b("focus",({el:e,expression:t,modifiers:n,effect:r,evaluate:o})=>{let i=()=>{e.focus({preventScroll:!!n.quiet});let s=e;n.select&&typeof s.select=="function"&&s.select()};if(!t.trim()){fe(i);return}r(()=>{o()&&fe(i)})},{priority:P.INIT});b("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&Nr(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&fe(()=>{var c;return((c=On(e)[0])!=null?c:e).focus()}),i=a}):fe(()=>{var a;return((a=On(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});b("click-outside",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{if(!e.isConnected)return;let s=i.target;!s||e===s||e.contains(s)||qe(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});b("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||qe(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});b("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=$r(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=Si(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Fc(s)),r(i)});b("scroll-to",({el:e,expression:t,cleanup:n})=>{let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=parseFloat(j(e,"scroll-offset")||"0")||0,a=ee.reducedMotion?"auto":"smooth";if(i==="top"||i==="#top"){window.scrollTo({top:0,behavior:a});return}if(i==="bottom"){window.scrollTo({top:document.body.scrollHeight,behavior:a});return}let c=null;try{c=document.querySelector(i)}catch(d){c=null}if(!c)return;let l=c.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:l,behavior:a});let u=c;u.hasAttribute("tabindex")||u.setAttribute("tabindex","-1"),u.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("scrollspy",({el:e,cleanup:t})=>{let n=Array.from(e.querySelectorAll('a[href^="#"]'));if(!n.length)return;let r=j(e,"scrollspy-class")||"v-active",o=parseFloat(j(e,"scroll-offset")||"0")||0,i=n.map(l=>{let u=l.getAttribute("href")||"",d=u.length>1?document.querySelector(u):null;return d?{link:l,section:d}:null}).filter(l=>l!==null);if(!i.length)return;let s=null,a=()=>{let l=i[0];for(let u of i)u.section.getBoundingClientRect().top-o<=8&&(l=u);if(l.link!==s){s=l.link;for(let u of i){let d=u.link===s;u.link.classList.toggle(r,d),d?u.link.setAttribute("aria-current","true"):u.link.removeAttribute("aria-current")}K(e,"voodoo:scrollspy",{id:l.section.id,link:l.link})}},c=Ln(a,100);window.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c),fe(a),t(()=>{c.cancel(),window.removeEventListener("scroll",c),window.removeEventListener("resize",c)})});O("scroll-offset");O("scrollspy-class");b("sticky",({el:e,expression:t,cleanup:n})=>{X();let r=parseFloat(t.trim()||j(e,"sticky-offset")||"0")||0;if(e.classList.add("v-sticky"),e.style.setProperty("--v-sticky-offset",`${r}px`),typeof IntersectionObserver=="undefined")return;let o=new IntersectionObserver(i=>{for(let s of i){let a=s.intersectionRatio<1&&s.boundingClientRect.top<=r+1;e.classList.toggle("v-stuck",a)}},{threshold:[1],rootMargin:`-${r+1}px 0px 0px 0px`});o.observe(e),n(()=>o.disconnect())});O("sticky-offset");b("visible",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{var l;let i=!!r.repeat,s=Number((l=r.threshold)!=null?l:.1)||.1,a=typeof r.margin=="string"?r.margin:"0px";if(typeof IntersectionObserver=="undefined"){qe(t,n,e,void 0,{visible:!0});return}let c=new IntersectionObserver(u=>{for(let d of u)d.isIntersecting&&(qe(t,n,e,void 0,d),i||c.unobserve(e))},{threshold:s,rootMargin:a});c.observe(e),o(()=>c.disconnect())});b("infinite-scroll",({el:e,expression:t,scope:n,cleanup:r})=>{let o=j(e,"infinite-distance")||"200px",i=!1,s=()=>{i=!1},a=()=>{if(i)return;i=!0,e.setAttribute("aria-busy","true");let u=qe(t,n,e,void 0,{page:"next"}),d=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};u&&typeof u.then=="function"?u.then(d,d):setTimeout(d,300)};if(typeof IntersectionObserver=="undefined")return;let c=document.createElement("div");c.className="v-infinite-sentinel",c.setAttribute("aria-hidden","true"),c.style.cssText="width:100%;height:1px;pointer-events:none",e.appendChild(c);let l=new IntersectionObserver(u=>{for(let d of u)d.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});l.observe(c),r(()=>{l.disconnect(),c.remove()})});O("infinite-distance");function Bc(e,t,n,r){if(X(),!t)return;e.classList.add("v-lazy");let o=a=>{r?e.style.backgroundImage=`url("${a}")`:e.src=a,e.classList.add("v-lazy-loaded")},i=()=>{let a=new Image;a.onload=()=>o(t),a.onerror=()=>{let c=j(e,"lazy-error");e.classList.add("v-lazy-failed"),c?o(c):e.classList.add("v-lazy-loaded")},a.src=t};if(!r&&e.tagName==="IMG"){let a=e;a.hasAttribute("loading")||(a.loading="lazy"),a.hasAttribute("decoding")||(a.decoding="async")}if(typeof IntersectionObserver=="undefined"){i();return}let s=new IntersectionObserver(a=>{for(let c of a)c.isIntersecting&&(s.disconnect(),i())},{rootMargin:"200px"});s.observe(e),n(()=>s.disconnect())}b("lazy-src",({el:e,expression:t,cleanup:n})=>{Bc(e,t.trim(),n,!1)});b("lazy-bg",({el:e,expression:t,cleanup:n})=>{Bc(e,t.trim(),n,!0)});O("lazy-error");b("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{X();let i=c=>{e.classList.toggle("v-skeleton",c),c?e.setAttribute("aria-busy","true"):e.removeAttribute("aria-busy")};if(t.trim()){n(()=>i(!!r()));return}let s=()=>{var c;return((c=e.textContent)!=null?c:"").trim().length>0||e.querySelector("img,svg,video,canvas")!==null};if(s()){i(!1);return}if(i(!0),typeof MutationObserver=="undefined")return;let a=new MutationObserver(()=>{s()&&(i(!1),a.disconnect())});a.observe(e,{childList:!0,subtree:!0,characterData:!0}),o(()=>a.disconnect())});async function Ri(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;left:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}}function Hi(e,t){X();let n=j(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),ke(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function qc(e,t){var r;let n=j(e,"copy-from");if(n){let o=document.querySelector(n);if(o){let i=o;return typeof i.value=="string"&&i.value?i.value:((r=o.textContent)!=null?r:"").trim()}}return t.trim()}b("copy",({el:e,expression:t,cleanup:n})=>{X(),he(e,n);let r=o=>{o.preventDefault();let i=qc(e,t);i&&Ri(i).then(s=>{Hi(e,s),K(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("copy-from",({el:e,expression:t,cleanup:n})=>{if(X(),Rr(e,"copy-from",t),Cr(e,"copy"))return;he(e,n);let r=o=>{o.preventDefault();let i=qc(e,"");i&&Ri(i).then(s=>{Hi(e,s),K(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});O("copy-label");function hf(e,t){let n=document.createElement("iframe");n.setAttribute("aria-hidden","true"),n.setAttribute("title","Print"),n.style.cssText="position:fixed;right:0;bottom:0;width:0;height:0;border:0;visibility:hidden";let r=Array.from(document.querySelectorAll('link[rel="stylesheet"],style')).map(o=>o.outerHTML).join(`
271
- `);n.srcdoc=`<!doctype html><html><head><meta charset="utf-8"><title>${kt(t)}</title>${r}</head><body>${e.outerHTML}</body></html>`,n.addEventListener("load",()=>{let o=n.contentWindow;if(!o){n.remove();return}o.focus(),o.print(),setTimeout(()=>n.remove(),1e3)}),document.body.appendChild(n)}b("print",({el:e,expression:t,cleanup:n})=>{he(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&hf(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("share",({el:e,expression:t,cleanup:n})=>{X(),he(e,n);let r=o=>{o.preventDefault();let i=t.trim()||j(e,"share-url")||location.href,s={title:j(e,"share-title")||document.title,url:i},a=j(e,"share-text");a&&(s.text=a);let c=navigator;if(typeof c.share=="function"){c.share(s).then(()=>K(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}Ri(i).then(l=>{Hi(e,l),K(e,"voodoo:share",{data:s,method:"clipboard",ok:l})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});O("share-title");O("share-url");O("share-text");b("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;he(e,n);let r=t.trim()&&(s=document.querySelector(t.trim()))!=null?s:e,o=()=>{e.setAttribute("aria-pressed",String(document.fullscreenElement===r))},i=a=>{var l;if(a.preventDefault(),document.fullscreenElement){document.exitFullscreen().catch(()=>{});return}let c=r;typeof r.requestFullscreen=="function"?r.requestFullscreen().catch(()=>{}):(l=c.webkitRequestFullscreen)==null||l.call(c)};o(),e.addEventListener("click",i),document.addEventListener("fullscreenchange",o),n(()=>{e.removeEventListener("click",i),document.removeEventListener("fullscreenchange",o)})});b("download",({el:e,expression:t,cleanup:n})=>{he(e,n);let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=document.createElement("a");s.href=i,s.rel="noopener",s.download=j(e,"download-name")||"",s.style.display="none",document.body.appendChild(s),s.click(),s.remove(),K(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});O("download-name");b("resizable",({el:e,expression:t,cleanup:n})=>{X();let r=(t.trim()||"both").toLowerCase(),o=r==="both"||r==="horizontal",i=r==="both"||r==="vertical";e.classList.add("v-resizable"),getComputedStyle(e).position==="static"&&(e.style.position="relative");let s=[],a=[];o&&a.push("right"),i&&a.push("bottom"),o&&i&&a.push("corner");let c=(l,u)=>{let d=0,p=0,f=0,m=0,v=h=>{u!=="bottom"&&(e.style.width=`${Math.max(32,f+h.clientX-d)}px`),u!=="right"&&(e.style.height=`${Math.max(32,m+h.clientY-p)}px`)},g=h=>{var y;(y=l.releasePointerCapture)==null||y.call(l,h.pointerId),l.removeEventListener("pointermove",v),l.removeEventListener("pointerup",g),l.removeEventListener("pointercancel",g),K(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};l.addEventListener("pointerdown",h=>{var w;if(h.button!==0)return;h.preventDefault();let y=e.getBoundingClientRect();d=h.clientX,p=h.clientY,f=y.width,m=y.height,(w=l.setPointerCapture)==null||w.call(l,h.pointerId),l.addEventListener("pointermove",v),l.addEventListener("pointerup",g),l.addEventListener("pointercancel",g)}),l.addEventListener("keydown",h=>{let y=h.shiftKey?4:16,w=e.getBoundingClientRect(),T=!0;h.key==="ArrowRight"&&u!=="bottom"?e.style.width=`${w.width+y}px`:h.key==="ArrowLeft"&&u!=="bottom"?e.style.width=`${Math.max(32,w.width-y)}px`:h.key==="ArrowDown"&&u!=="right"?e.style.height=`${w.height+y}px`:h.key==="ArrowUp"&&u!=="right"?e.style.height=`${Math.max(32,w.height-y)}px`:T=!1,T&&(h.preventDefault(),K(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let l of a){let u=document.createElement("div");u.className="v-resize-handle",u.setAttribute("data-dir",l),u.setAttribute("role","separator"),u.setAttribute("tabindex","0"),u.setAttribute("aria-orientation",l==="bottom"?"horizontal":"vertical"),u.setAttribute("aria-label","Resize"),c(u,l),e.appendChild(u),s.push(u)}n(()=>{for(let l of s)l.remove()})});function Sc(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function yf(){let e=[];for(let t of lr(document,"command-item")){let n=(lt(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:j(t,"command-hint")||"",el:t}))}return e}function Mc(){if(X(),document.querySelector(".v-command"))return;let e=yf(),t=document.activeElement,n=document.createElement("div");n.className="v-command",n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.setAttribute("aria-label","Command palette"),n.tabIndex=-1;let r=document.createElement("div");r.className="v-command-box";let o=document.createElement("input");o.className="v-command-input",o.type="search",o.placeholder="Search command...",o.setAttribute("aria-label","Search command"),o.setAttribute("role","combobox"),o.setAttribute("aria-expanded","true"),o.setAttribute("autocomplete","off");let i=document.createElement("ul");i.className="v-command-list",i.id=ue("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),Dc();let s=e,a=0,c=m=>{let v=m.target;!v||n.contains(v)||o.focus()},l=()=>{document.removeEventListener("focusin",c,!0),document.removeEventListener("keydown",f,!0),n.remove(),Pc(),t==null||t.focus()},u=()=>{let m=s[a];m&&(l(),m.el.click())},d=()=>{var v;if(i.replaceChildren(),!s.length){let g=document.createElement("li");g.className="v-command-empty",g.textContent="No command found",i.appendChild(g);return}s.forEach((g,h)=>{let y=document.createElement("li");y.className="v-command-option",y.id=`${i.id}-${h}`,y.setAttribute("role","option"),y.setAttribute("aria-selected",String(h===a));let w=document.createElement("span");if(w.textContent=g.label,y.appendChild(w),g.hint){let T=document.createElement("span");T.className="v-command-hint",T.textContent=g.hint,y.appendChild(T)}y.addEventListener("click",()=>{a=h,u()}),y.addEventListener("pointermove",()=>{a!==h&&(a=h,d())}),i.appendChild(y)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(v=m.scrollIntoView)==null||v.call(m,{block:"nearest"}))},p=()=>{let m=Sc(o.value.trim());s=m?e.filter(v=>Sc(`${v.label} ${v.hint}`).includes(m)):e,a=0,d()},f=m=>{if(m.key==="Escape"){m.preventDefault(),l();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,d();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,d();return}if(m.key==="Enter"){m.preventDefault(),u();return}m.key==="Tab"&&Nr(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&l()}),o.addEventListener("input",p),document.addEventListener("keydown",f,!0),d(),o.focus(),document.addEventListener("focusin",c,!0)}b("command",({el:e,expression:t,cleanup:n})=>{X();let r=t.trim()||j(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),Mc()},i=$r(r,()=>Mc(),{allowInInput:!0}),s=Si(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Fc(s)),he(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});b("command-item",({el:e,expression:t})=>{Rr(e,"command-item",t),!e.hasAttribute("data-v-command-label")&&t.trim()&&e.setAttribute("data-v-command-label",t.trim())});O("command-key");O("command-hint");var Cc=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];b("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=U(j(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,qe(t,n,e,void 0,{idle:!0,after:o}),K(e,"voodoo:idle",{after:o})},c=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},l=()=>{if(s){c();return}c()};for(let u of Cc)window.addEventListener(u,l,{passive:!0});c(),r(()=>{i&&clearTimeout(i);for(let u of Cc)window.removeEventListener(u,l)})});O("idle-after");function zc(e,t,n,r,o,i){let s=a=>{qe(t,n,e,a,{online:navigator.onLine}),K(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&fe(()=>s())}b("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{zc(e,t,n,o,"online",!!r.immediate)});b("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{zc(e,t,n,o,"offline",r["no-immediate"]!==!0)});ne();J();Te();ne();J();Te();var Pe={required:"Please fill in this field.",email:"Enter a valid email address.",url:"Enter a valid URL.",number:"Enter a valid number.",integer:"Enter a whole number.",decimal:"Enter a valid decimal number.",alpha:"Use letters only.",alphanumeric:"Use letters and numbers only.",minlength:"Use at least {param} characters.",maxlength:"Use at most {param} characters.",min:"The smallest allowed value is {param}.",max:"The largest allowed value is {param}.",between:"Enter a value between {min} and {max}.",match:"The fields do not match.",regex:"That format is not valid.",date:"Enter a valid date.",after:"The date has to be later than {param}.",before:"The date has to be earlier than {param}.",accepted:"You have to tick this to continue.",same:"The values have to be the same.",different:"The values have to be different.",in:"Choose one of the allowed options.",notin:"That value is not allowed.",phone:"Enter a valid phone number, including the area code.",cpf:"Invalid CPF.",cnpj:"Invalid CNPJ.",cep:"Invalid postcode.",creditcard:"Invalid card number.",strongpassword:"Use {param} characters or more, with an upper case letter, a lower case letter, a number and a symbol.",unique:"That value is already taken.",invalid:"Invalid value."};function Vc(e,t){var i,s,a,c,l,u;let n=(i=t.param)!=null?i:"",r=n.split(","),o={param:n,field:(s=t.field)!=null?s:"field",value:(a=t.value)!=null?a:"",min:((c=r[0])!=null?c:"").trim(),max:((u=(l=r[1])!=null?l:r[0])!=null?u:"").trim()};return e.replace(/\{(\w+)\}/g,(d,p)=>p in o?o[p]:d)}var Ir=new Map;function I(e,t,n){let r=e.toLowerCase();Ir.set(r,{name:r,fn:t,message:n}),n&&!Pe[r]&&(Pe[r]=n),b(`validate-${r}`,({el:o,cleanup:i})=>{Wr(o,i)})}function Xe(e,t){var n;return(n=xe(e,`${E.prefix}${t}`))!=null?n:xe(e,`data-v-${t}`)}function bf(e,t){return Xe(e,t)!==null}var wf=new Set(["INPUT","SELECT","TEXTAREA"]),Ef=new Set(["submit","button","reset","image"]);function Le(e){var t;return!!e&&typeof e=="object"&&wf.has((t=e.tagName)!=null?t:"")}function Ue(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function jn(e){var n;let t=Ue(e);if(t==="checkbox"||t==="radio")return e.checked?e.value||"on":"";if(t==="file"){let r=e.files;return r&&r.length?String(r.length):""}return(n=e.value)!=null?n:""}function Ni(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function xf(e){var o,i;let t=Xe(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${Or(e.id)}"]`),a=(o=s==null?void 0:s.textContent)==null?void 0:o.trim();if(a)return a.replace(/\s*\*$/,"")}let n=e.closest("label"),r=(i=n==null?void 0:n.textContent)==null?void 0:i.trim();return r?r.replace(/\s*\*$/,""):e.getAttribute("aria-label")||e.getAttribute("placeholder")||e.name||"field"}function Or(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function jr(e,t){var s,a,c;let n=t.trim();if(!n||typeof document=="undefined")return null;let r=(a=(s=e.form)!=null?s:e.closest("form"))!=null?a:document;if(/^[#.[]/.test(n)){let l=(c=r.querySelector(n))!=null?c:document.querySelector(n);return Le(l)?l:null}let o=r.querySelector(`[name="${Or(n)}"]`);if(Le(o))return o;let i=document.getElementById(n);return Le(i)?i:null}var Tf=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,kf=/^-?\d+$/,Lf=/^-?\d+(?:[.,]\d+)?$/,Af=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,Sf=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function Bn(e){return e.replace(/\D/g,"")}function Br(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function Mf(e){let t=Bn(e);if(t.length!==11||/^(\d)\1{10}$/.test(t))return!1;let n=0;for(let i=0;i<9;i++)n+=Number(t[i])*(10-i);let r=n*10%11;if(r===10&&(r=0),r!==Number(t[9]))return!1;n=0;for(let i=0;i<10;i++)n+=Number(t[i])*(11-i);let o=n*10%11;return o===10&&(o=0),o===Number(t[10])}function Cf(e){let t=Bn(e);if(t.length!==14||/^(\d)\1{13}$/.test(t))return!1;let n=r=>{let o=r-7,i=0;for(let a=0;a<r;a++)i+=Number(t[a])*o--,o<2&&(o=9);let s=i%11;return s<2?0:11-s};return n(12)===Number(t[12])&&n(13)===Number(t[13])}function Rf(e){let t=Bn(e);if(t.length<13||t.length>19)return!1;let n=0,r=!1;for(let o=t.length-1;o>=0;o--){let i=Number(t[o]);r&&(i*=2,i>9&&(i-=9)),n+=i,r=!r}return n%10===0}function Hf(e){let t=Bn(e);return!(t.length!==10&&t.length!==11||Number(t.slice(0,2))<11||t.length===11&&t[2]!=="9"||t.length===10&&Number(t[2])<2)}function Ht(e){let t=e.trim();if(!t)return null;let n=/^(\d{2})\/(\d{2})\/(\d{4})$/.exec(t);if(n){let i=new Date(Number(n[3]),Number(n[2])-1,Number(n[1]));return i.getFullYear()===Number(n[3])&&i.getMonth()===Number(n[2])-1&&i.getDate()===Number(n[1])?i:null}let r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(r){let i=new Date(Number(r[1]),Number(r[2])-1,Number(r[3]));return i.getFullYear()===Number(r[1])&&i.getMonth()===Number(r[2])-1&&i.getDate()===Number(r[3])?i:null}let o=Date.parse(t);return Number.isNaN(o)?null:new Date(o)}function qr(e,t){if(!e)return null;let n=e.trim().toLowerCase();if(n==="hoje"||n==="today"||n==="now"||n==="agora")return new Date;let r=Ht(e);if(r)return r;let o=jr(t,e);return o?Ht(jn(o)):null}I("required",(e,t,n)=>{let r=Ue(n);if(r==="checkbox"||r==="radio")return n.checked;if(r==="file"){let o=n.files;return!!o&&o.length>0}return e.trim().length>0});I("email",e=>Tf.test(e.trim()));I("url",e=>{let t=e.trim();if(!t)return!1;try{let n=new URL(/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`https://${t}`);return n.hostname.includes(".")&&!n.hostname.endsWith(".")}catch(n){return!1}});I("number",e=>e.trim()!==""&&Number.isFinite(Br(e)));I("integer",e=>kf.test(e.trim()));I("decimal",(e,t)=>{var i;let n=e.trim();if(!Lf.test(n))return!1;if(!t)return!0;let r=Number(t);return Number.isFinite(r)?((i=n.split(/[.,]/)[1])!=null?i:"").length<=r:!0});I("alpha",e=>Af.test(e.trim().replace(/\s+/g,"")));I("alphanumeric",e=>Sf.test(e.trim().replace(/\s+/g,"")));I("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));I("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));I("min",(e,t,n)=>{let r=qr(t,n);if(r&&Ue(n).startsWith("date")){let o=Ht(e);return!o||o.getTime()>=r.getTime()}return Br(e)>=Number(t!=null?t:0)});I("max",(e,t,n)=>{let r=qr(t,n);if(r&&Ue(n).startsWith("date")){let o=Ht(e);return!o||o.getTime()<=r.getTime()}return Br(e)<=Number(t!=null?t:1/0)});I("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=Br(e);return Number.isFinite(o)&&o>=n&&o<=r});I("match",(e,t,n)=>{if(!t)return!0;let r=jr(n,t);return r?jn(r)===e:!0});I("same",(e,t,n)=>{if(!t)return!0;let r=jr(n,t);return!r||jn(r)===e});I("different",(e,t,n)=>{if(!t)return!0;let r=jr(n,t);return!r||jn(r)!==e});I("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=Xe(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return Y(`Invalid regular expression in ${E.prefix}regex: ${t}`),!0}});I("date",e=>Ht(e)!==null);I("after",(e,t,n)=>{let r=qr(t,n),o=Ht(e);return!r||!o?!0:o.getTime()>r.getTime()});I("before",(e,t,n)=>{let r=qr(t,n),o=Ht(e);return!r||!o?!0:o.getTime()<r.getTime()});I("accepted",(e,t,n)=>{let r=Ue(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});I("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));I("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));I("phone",e=>Hf(e));I("cpf",e=>Mf(e));I("cnpj",e=>Cf(e));I("cep",e=>Bn(e).length===8);I("creditcard",e=>Rf(e));I("strongpassword",(e,t)=>{let n=Number(t)>0?Number(t):8;return e.length>=n&&/[a-zà-ÿ]/.test(e)&&/[A-ZÀ-ß]/.test(e)&&/\d/.test(e)&&/[^\w\s]/.test(e)?!0:Vc(Pe.strongpassword,{param:String(n)})});I("unique",async(e,t,n)=>{let r=t||Xe(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await me.get(r,{params:{value:e,field:Ni(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:Pe.unique:o?Pe.unique:!0}catch(o){if(o instanceof te){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return Pe.unique}return!0}});var Df={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},Pf=new Set(["required","accepted"]);function Nf(e){var o;let t=null;if(e.startsWith(E.prefix)?t=e.slice(E.prefix.length):e.startsWith("data-v-")&&(t=e.slice(7)),!t)return null;let n=t.indexOf(".");if(n>-1&&(t=t.slice(0,n)),t==="validate")return null;t.startsWith("validate-")&&(t=t.slice(9));let r=(o=Df[t])!=null?o:t;return Ir.has(r)?r:null}function $i(e){let t=[],n=new Set,r=(u,d)=>{n.has(u)||!Ir.has(u)||(n.add(u),t.push({name:u,param:d}))};for(let[u,d]of Zs(e)){let p=Nf(u);if(p){if(d.trim()==="false"){n.add(p);continue}r(p,d)}}let o=Ue(e);e.hasAttribute("required")&&r("required",""),o==="email"&&r("email",""),o==="url"&&r("url",""),(o==="number"||o==="range")&&r("number","");let i=e.getAttribute("minlength");i&&r("minlength",i);let s=e.getAttribute("maxlength");s&&r("maxlength",s);let a=e.getAttribute("min");a&&r("min",a);let c=e.getAttribute("max");c&&r("max",c);let l=e.getAttribute("pattern");return l&&r("regex",l),t.sort((u,d)=>u.name==="required"?-1:d.name==="required"?1:0),t}var $f=`
270
+ `;function X(){se(),G("ui",ff)}function cn(e,t){var r;let n=t.trim();if(n)try{let o=document.querySelector(n);if(o)return o}catch(o){}return(r=e.nextElementSibling)!=null?r:null}function Je(e,t){return e.id||(e.id=ue(`${t}-`)),e.id}var Oc='a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,summary,[contenteditable="true"],[tabindex]:not([tabindex="-1"])';function Fn(e){return Array.from(e.querySelectorAll(Oc)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function Or(e,t){let n=Fn(e);if(!n.length){t.preventDefault(),e.focus();return}let r=n[0],o=n[n.length-1],i=document.activeElement;if(t.shiftKey&&(i===r||!e.contains(i))){t.preventDefault(),o.focus();return}!t.shiftKey&&i===o&&(t.preventDefault(),r.focus())}function he(e,t){let n=e.tagName;if(n==="BUTTON"||n==="A"||n==="INPUT"||n==="SUMMARY"){e.classList.add("v-focus-ring");return}e.hasAttribute("role")||e.setAttribute("role","button"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.classList.add("v-focus-ring");let r=o=>{o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),e.click())};e.addEventListener("keydown",r),t(()=>e.removeEventListener("keydown",r))}var Ai=0,$c="";function Fc(){if(Ai++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;$c=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function Ic(){Ai!==0&&(--Ai>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=$c))}function jc(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function pf(e,t=!0){if(e.removeAttribute("hidden"),t&&!te.reducedMotion){nn(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function mf(e,t=!0){if(t&&!te.reducedMotion){rn(e);return}e.style.display="none"}var gf={top:"bottom",bottom:"top",left:"right",right:"left"};function Bc(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function qc(e,t,n,r="center",o=8){t.style.position="fixed",t.style.left="0px",t.style.top="0px";let i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),a=document.documentElement.clientWidth,c=document.documentElement.clientHeight,l={top:i.top,bottom:c-i.bottom,left:i.left,right:a-i.right},u={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},d=n;if(l[d]<u[d]){let m=gf[d];if(l[m]>=u[m])d=m;else for(let v of Object.keys(l))l[v]-u[v]>l[d]-u[d]&&(d=v)}let p=0,f=0;return d==="top"||d==="bottom"?(p=d==="top"?i.top-s.height-o:i.bottom+o,f=r==="start"?i.left:i.left+i.width/2-s.width/2,r==="start"&&f+s.width>a-o&&(f=i.right-s.width)):(f=d==="left"?i.left-s.width-o:i.right+o,p=r==="start"?i.top:i.top+i.height/2-s.height/2),f=Math.min(Math.max(o,f),Math.max(o,a-s.width-o)),p=Math.min(Math.max(o,p),Math.max(o,c-s.height-o)),t.style.left=`${Math.round(f)}px`,t.style.top=`${Math.round(p)}px`,t.setAttribute("data-placement",d),d}var Pr=[],Cc=!1,vf={esc:"escape",space:" ",spacebar:" ",enter:"enter",ret:"enter",del:"delete",ins:"insert",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",plus:"+",minus:"-",comma:",",period:".",slash:"/",question:"?"},hf=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function Ci(e){var r;let t=e.trim().toLowerCase().split("+").map(o=>o.trim()).filter(Boolean);if(!t.length)return null;let n={ctrl:!1,shift:!1,alt:!1,meta:!1,key:"",hasModifier:!1};for(let o of t)o==="ctrl"||o==="control"?n.ctrl=!0:o==="shift"?n.shift=!0:o==="alt"||o==="option"?n.alt=!0:o==="meta"||o==="cmd"||o==="command"||o==="super"?n.meta=!0:o==="mod"?hf?n.meta=!0:n.ctrl=!0:n.key=(r=vf[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function yf(e,t){return e.ctrl!==t.ctrlKey||e.alt!==t.altKey||e.meta!==t.metaKey||t.key.toLowerCase()!==e.key?!1:e.key.length===1&&!/^[a-z0-9 ]$/.test(e.key)?e.shift?t.shiftKey:!0:e.shift===t.shiftKey}function bf(e){let t=e;return!t||typeof t.tagName!="string"?!1:t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.tagName==="SELECT"?!0:t.isContentEditable===!0}function zc(e){let t=[];return e.ctrl&&t.push("Control"),e.alt&&t.push("Alt"),e.shift&&t.push("Shift"),e.meta&&t.push("Meta"),t.push(e.key===" "?"Space":e.key.length===1?e.key.toUpperCase():e.key),t.join("+")}function wf(e){if(e.defaultPrevented)return;let t=bf(e.target);for(let n of[...Pr])for(let r of n.combos)if(yf(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function $r(e,t,n={}){let r=e.split(",").map(i=>Ci(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return Pr.push(o),Cc||(Cc=!0,document.addEventListener("keydown",wf)),()=>{let i=Pr.indexOf(o);i>-1&&Pr.splice(i,1)}}b("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{X();let o=cn(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",Je(o,"v-toggle")),he(e,r);let a=i?o.classList.contains(i):!jc(o),c=()=>{e.setAttribute("aria-expanded",String(a))},l=u=>{u.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(mf(o,s),a=!1):(pf(o,s),a=!0),c(),K(e,"voodoo:toggle",{target:o,open:a})};c(),e.addEventListener("click",l),r(()=>e.removeEventListener("click",l))});var Si=class{constructor(t){S(this,"panel");S(this,"triggers",new Set);S(this,"listeners",new Set);S(this,"open");S(this,"duration");this.panel=t,this.duration=_(j(t,"collapse-duration"),240);let n=(j(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!jc(t),t.classList.add("v-collapse-panel"),Je(t,"v-collapse"),this.open||(t.style.display="none"),this.sync()}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id);for(let t of this.listeners)t(this.open)}show(){this.open||(this.open=!0,this.panel.removeAttribute("hidden"),te.reducedMotion?this.panel.style.removeProperty("display"):St(this.panel,this.duration),this.sync(),K(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,te.reducedMotion?this.panel.style.display="none":Mt(this.panel,this.duration),this.sync(),K(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},Rc=new WeakMap;function Ri(e){let t=Rc.get(e);return t||Rc.set(e,t=new Si(e)),t}b("collapse",({el:e})=>{X(),Ri(e)});b("collapse-toggle",({el:e,expression:t,cleanup:n})=>{X();let r=cn(e,t);if(!r)return;let o=Ri(r);o.triggers.add(e),o.sync(),he(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})});$("collapse-duration");var Nr=class{constructor(t,n,r){S(this,"trigger");S(this,"panel");S(this,"kind");S(this,"placement");S(this,"open",!1);S(this,"lastFocus",null);S(this,"homeParent");S(this,"homeNext");S(this,"reposition",()=>{this.open&&qc(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});S(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});S(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&Or(this.panel,t);return}let n=this.items();if(!n.length)return;let r=n.indexOf(document.activeElement);if(t.key==="Enter"||t.key===" "){let o=n[r];if(!o)return;t.preventDefault(),this.hide(!0),o.click();return}if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault();let o=t.key==="ArrowDown"?1:-1,i=(r+o+n.length)%n.length;n[r===-1&&o===-1?n.length-1:i].focus();return}if(t.key==="Home"){t.preventDefault(),n[0].focus();return}if(t.key==="End"){t.preventDefault(),n[n.length-1].focus();return}t.key==="Tab"&&this.hide()});this.trigger=t,this.panel=n,this.kind=r,this.homeParent=n.parentElement,this.homeNext=n.nextSibling,this.placement=Bc(j(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),Je(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?Uc(n):n.setAttribute("role","dialog"),t.setAttribute("aria-haspopup",r==="menu"?"menu":"dialog"),t.setAttribute("aria-controls",n.id),t.setAttribute("aria-expanded","false")}items(){return Array.from(this.panel.querySelectorAll('[role="menuitem"]'))}show(){var t;this.open||(this.open=!0,this.lastFocus=document.activeElement,this.panel.parentElement!==document.body&&document.body.appendChild(this.panel),this.panel.hidden=!1,this.reposition(),requestAnimationFrame(()=>this.panel.classList.add("v-in")),this.trigger.setAttribute("aria-expanded","true"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!0),document.addEventListener("keydown",this.onKeyDown,!0),window.addEventListener("resize",this.reposition),window.addEventListener("scroll",this.reposition,!0),this.kind==="dialog"&&((t=Fn(this.panel)[0])==null||t.focus()),K(this.trigger,"voodoo:popup",{open:!0,panel:this.panel}))}hide(t=!1){var r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-in"),this.trigger.setAttribute("aria-expanded","false"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0);let n=()=>{this.open||(this.panel.hidden=!0)};te.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),K(this.trigger,"voodoo:popup",{open:!1,panel:this.panel})}toggle(){this.open?this.hide(!0):this.show()}dispose(){this.hide(),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0),!(!this.homeParent||this.panel.parentElement===this.homeParent)&&(this.homeNext&&this.homeNext.parentNode===this.homeParent?this.homeParent.insertBefore(this.panel,this.homeNext):this.homeParent.appendChild(this.panel))}};function Uc(e){X(),e.classList.add("v-dropdown-menu"),e.hasAttribute("role")||e.setAttribute("role","menu");for(let t of Array.from(e.children)){let n=t;n.hasAttribute("role")||n.matches("a,button,[tabindex]")&&(n.setAttribute("role","menuitem"),n.setAttribute("tabindex","-1"))}}b("dropdown-menu",({el:e})=>{Uc(e)});b("dropdown",({el:e,expression:t,cleanup:n})=>{X();let r=cn(e,t);if(!r)return;let o=new Nr(e,r,"menu");he(e,n);let i=a=>{a.preventDefault(),o.toggle()},s=a=>{var l;if(a.key==="ArrowDown"||a.key==="ArrowUp"){a.preventDefault(),o.open||o.show();let u=o.items();u.length&&u[a.key==="ArrowDown"?0:u.length-1].focus();return}if(a.key!=="Enter"&&a.key!==" ")return;let c=a.defaultPrevented;a.preventDefault(),c||o.toggle(),o.open&&((l=o.items()[0])==null||l.focus())};e.addEventListener("click",i),e.addEventListener("keydown",s),n(()=>{e.removeEventListener("click",i),e.removeEventListener("keydown",s),o.dispose()})});b("popover",({el:e,expression:t,cleanup:n})=>{X();let r=cn(e,t);if(!r)return;let o=new Nr(e,r,"dialog");he(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});$("dropdown-position");$("popover-position");b("tooltip",({el:e,expression:t,cleanup:n})=>{X();let r=t.trim();if(!r)return;let o=Bc(j(e,"tooltip-position"),"top"),i=_(j(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(Oc);s&&e.setAttribute("tabindex","0");let a=null,c=null,l=()=>{let g=document.createElement("div");return g.className="v-tooltip",g.setAttribute("role","tooltip"),g.id=ue("v-tip-"),g.textContent=r,document.body.appendChild(g),g},u=()=>{a&&qc(e,a,o)},d=()=>{a||(a=l(),e.setAttribute("aria-describedby",a.id),u(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",u),window.addEventListener("scroll",u,!0))},p=()=>{if(c&&(clearTimeout(c),c=null),!a)return;let g=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",u),window.removeEventListener("scroll",u,!0),g.classList.remove("v-in"),te.reducedMotion?g.remove():setTimeout(()=>g.remove(),160)},f=()=>{c||a||(c=setTimeout(()=>{c=null,d()},i))},m=g=>{g.key==="Escape"&&p()},v=()=>{s&&e.focus()};e.addEventListener("mouseenter",f),e.addEventListener("focusin",d),e.addEventListener("pointerdown",v),e.addEventListener("mouseleave",p),e.addEventListener("focusout",p),e.addEventListener("keydown",m),n(()=>{p(),s&&e.removeAttribute("tabindex"),e.removeEventListener("mouseenter",f),e.removeEventListener("focusin",d),e.removeEventListener("pointerdown",v),e.removeEventListener("mouseleave",p),e.removeEventListener("focusout",p),e.removeEventListener("keydown",m)})});$("tooltip-position");$("tooltip-delay");b("tabs",({el:e,expression:t,cleanup:n})=>{X();let r=Dr(e,"tab","tabs"),o=Dr(e,"tab-panel","tabs");if(!r.length)return;let i=(g,h)=>ut(g,"tab")||String(h),s=r[0].parentElement;s&&!s.hasAttribute("role")&&s.setAttribute("role","tablist");let a=((s==null?void 0:s.getAttribute("aria-orientation"))||"").trim().toLowerCase()==="vertical";s==null||s.setAttribute("aria-orientation",a?"vertical":"horizontal");let c=Rr(e,"tabs-url")?ut(e,"tabs-url")||"tab":null;r.forEach((g,h)=>{let y=i(g,h),w=o.find(T=>ut(T,"tab-panel")===y);g.classList.add("v-tab","v-focus-ring"),g.setAttribute("role","tab"),Je(g,"v-tab"),w&&(Je(w,"v-panel"),w.setAttribute("role","tabpanel"),w.setAttribute("aria-labelledby",g.id),g.setAttribute("aria-controls",w.id))});let l="",u=(g,h=!1)=>{if(r.some((y,w)=>i(y,w)===g)){l=g,r.forEach((y,w)=>{let T=i(y,w)===g;y.setAttribute("aria-selected",String(T)),y.setAttribute("tabindex",T?"0":"-1"),y.classList.toggle("v-active",T),T&&h&&y.focus()});for(let y of o)y.hidden=ut(y,"tab-panel")!==g;c&&ct.set(c,g),K(e,"voodoo:tab",{id:g})}},d=g=>{let h=Ut(g.target,"tab");!h||!r.includes(h)||(g.preventDefault(),u(i(h,r.indexOf(h))))},p=g=>{let h=Ut(g.target,"tab");if(!h||!r.includes(h))return;let y=r.indexOf(h),w=a?"ArrowDown":"ArrowRight",T=a?"ArrowUp":"ArrowLeft",x=-1;g.key===w?x=(y+1)%r.length:g.key===T?x=(y-1+r.length)%r.length:g.key==="Home"?x=0:g.key==="End"&&(x=r.length-1),x!==-1&&(g.preventDefault(),u(i(r[x],x),!0))},f=()=>{if(!c)return;let g=ct.get(c);g&&g!==l&&u(g)};e.addEventListener("click",d),e.addEventListener("keydown",p),window.addEventListener("popstate",f),n(()=>{e.removeEventListener("click",d),e.removeEventListener("keydown",p),window.removeEventListener("popstate",f)});let v=(c?ct.get(c):void 0)||t.trim()||i(r[0],0);u(v),l||u(i(r[0],0))});$("tab");$("tab-panel");$("tabs-url");b("accordion",({el:e,cleanup:t})=>{X();let n=Dr(e,"accordion-item","accordion");if(!n.length)return;let r=Rr(e,"accordion-single"),o=[],i=[];for(let c of n){let l=c.firstElementChild,u=c.lastElementChild;if(!l||!u||l===u)continue;let d=(ut(c,"accordion-item")||"").trim().toLowerCase();d!=="open"&&d!=="true"&&(u.style.display="none");let p=Ri(u);p.triggers.add(l),p.sync(),l.classList.add("v-accordion-header","v-focus-ring"),l.hasAttribute("role")||l.setAttribute("role","button"),l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),Je(u,"v-accordion-panel"),l.setAttribute("aria-controls",u.id),l.setAttribute("aria-expanded",String(p.open)),n.length<=6&&!u.hasAttribute("role")&&(u.setAttribute("role","region"),u.setAttribute("aria-labelledby",Je(l,"v-accordion-header"))),o.push(l),i.push(p)}let s=c=>{var p;let l=(p=c.target)==null?void 0:p.closest(".v-accordion-header");if(!l)return;let u=o.indexOf(l);if(u===-1)return;c.preventDefault();let d=i[u];if(r&&!d.open)for(let f of i)f!==d&&f.hide();d.toggle()},a=c=>{var p;let l=(p=c.target)==null?void 0:p.closest(".v-accordion-header");if(!l)return;let u=o.indexOf(l);if(u===-1)return;if(c.key==="Enter"||c.key===" "){c.preventDefault(),l.click();return}let d=-1;c.key==="ArrowDown"?d=(u+1)%o.length:c.key==="ArrowUp"?d=(u-1+o.length)%o.length:c.key==="Home"?d=0:c.key==="End"&&(d=o.length-1),d!==-1&&(c.preventDefault(),o[d].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});$("accordion-item");$("accordion-single");var Mi=class{constructor(t){S(this,"origem",null);S(this,"panel");S(this,"triggers",new Set);S(this,"open",!1);S(this,"backdrop",null);S(this,"lastFocus",null);S(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&Or(this.panel,t)}});S(this,"onPointerDown",t=>{let n=t.target;if(!(!n||this.panel.contains(n))){for(let r of this.triggers)if(r.contains(n))return;this.hide()}});this.panel=t;let n=(j(t,"drawer-side")||"right").trim().toLowerCase();t.classList.add("v-drawer-panel"),t.setAttribute("data-side",["left","right","top","bottom"].includes(n)?n:"right"),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),Je(t,"v-drawer"),t.hidden=!0,this.label()}label(){let t=this.panel;if(t.hasAttribute("aria-labelledby")||t.hasAttribute("aria-label"))return;let n=t.querySelector("[data-drawer-title],h1,h2,h3,h4");n&&t.setAttribute("aria-labelledby",Je(n,"v-drawer-title"))}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id),t.setAttribute("aria-haspopup","dialog")}show(){var n,r;if(this.open)return;this.open=!0,this.lastFocus=document.activeElement,this.backdrop=document.createElement("div"),this.backdrop.className="v-drawer-backdrop",this.backdrop.addEventListener("click",()=>this.hide()),document.body.appendChild(this.backdrop),this.panel.parentElement!==document.body&&(this.origem=document.createComment(" v-drawer "),(n=this.panel.parentNode)==null||n.insertBefore(this.origem,this.panel),document.body.appendChild(this.panel)),this.panel.hidden=!1,this.label(),Fc();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};te.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=Fn(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),K(this.panel,"voodoo:drawer",{open:!0})}hide(){var n,r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-open"),(n=this.backdrop)==null||n.classList.remove("v-in"),document.removeEventListener("keydown",this.onKeyDown,!0),document.removeEventListener("pointerdown",this.onPointerDown,!0);let t=()=>{var o;this.open||(this.panel.hidden=!0,(o=this.backdrop)==null||o.remove(),this.backdrop=null,this.origem&&this.origem.parentNode&&(this.origem.parentNode.insertBefore(this.panel,this.origem),this.origem.remove(),this.origem=null))};te.reducedMotion?t():setTimeout(t,300),Ic(),(r=this.lastFocus)==null||r.focus(),this.sync(),K(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},Hc=new WeakMap;function Hi(e){let t=Hc.get(e);return t||Hc.set(e,t=new Mi(e)),t}b("drawer-content",({el:e})=>{X(),Hi(e)});function _c(e,t,n){X();let r=cn(e,t);if(!r)return;let o=Hi(r);o.triggers.add(e),o.sync(),he(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}b("drawer",({el:e,expression:t,cleanup:n})=>{_c(e,t,n)});b("offcanvas",({el:e,expression:t,cleanup:n})=>{_c(e,t,n)});b("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?cn(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:Ut(e,"drawer-content");if(!r)return;he(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),Hi(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});$("drawer-side");b("theme-toggle",({el:e,cleanup:t})=>{he(e,t);let n=()=>{let i=je.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=je.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),je.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});b("focus",({el:e,expression:t,modifiers:n,effect:r,evaluate:o})=>{let i=()=>{e.focus({preventScroll:!!n.quiet});let s=e;n.select&&typeof s.select=="function"&&s.select()};if(!t.trim()){fe(i);return}r(()=>{o()&&fe(i)})},{priority:P.INIT});b("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&Or(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&fe(()=>{var c;return((c=Fn(e)[0])!=null?c:e).focus()}),i=a}):fe(()=>{var a;return((a=Fn(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});b("click-outside",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{if(!e.isConnected)return;let s=i.target;!s||e===s||e.contains(s)||qe(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});b("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||qe(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});b("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=$r(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=Ci(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",zc(s)),r(i)});b("scroll-to",({el:e,expression:t,cleanup:n})=>{let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=parseFloat(j(e,"scroll-offset")||"0")||0,a=te.reducedMotion?"auto":"smooth";if(i==="top"||i==="#top"){window.scrollTo({top:0,behavior:a});return}if(i==="bottom"){window.scrollTo({top:document.body.scrollHeight,behavior:a});return}let c=null;try{c=document.querySelector(i)}catch(d){c=null}if(!c)return;let l=c.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:l,behavior:a});let u=c;u.hasAttribute("tabindex")||u.setAttribute("tabindex","-1"),u.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("scrollspy",({el:e,cleanup:t})=>{let n=Array.from(e.querySelectorAll('a[href^="#"]'));if(!n.length)return;let r=j(e,"scrollspy-class")||"v-active",o=parseFloat(j(e,"scroll-offset")||"0")||0,i=n.map(l=>{let u=l.getAttribute("href")||"",d=u.length>1?document.querySelector(u):null;return d?{link:l,section:d}:null}).filter(l=>l!==null);if(!i.length)return;let s=null,a=()=>{let l=i[0];for(let u of i)u.section.getBoundingClientRect().top-o<=8&&(l=u);if(l.link!==s){s=l.link;for(let u of i){let d=u.link===s;u.link.classList.toggle(r,d),d?u.link.setAttribute("aria-current","true"):u.link.removeAttribute("aria-current")}K(e,"voodoo:scrollspy",{id:l.section.id,link:l.link})}},c=An(a,100);window.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c),fe(a),t(()=>{c.cancel(),window.removeEventListener("scroll",c),window.removeEventListener("resize",c)})});$("scroll-offset");$("scrollspy-class");b("sticky",({el:e,expression:t,cleanup:n})=>{X();let r=parseFloat(t.trim()||j(e,"sticky-offset")||"0")||0;if(e.classList.add("v-sticky"),e.style.setProperty("--v-sticky-offset",`${r}px`),typeof IntersectionObserver=="undefined")return;let o=new IntersectionObserver(i=>{for(let s of i){let a=s.intersectionRatio<1&&s.boundingClientRect.top<=r+1;e.classList.toggle("v-stuck",a)}},{threshold:[1],rootMargin:`-${r+1}px 0px 0px 0px`});o.observe(e),n(()=>o.disconnect())});$("sticky-offset");b("visible",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{var l;let i=!!r.repeat,s=Number((l=r.threshold)!=null?l:.1)||.1,a=typeof r.margin=="string"?r.margin:"0px";if(typeof IntersectionObserver=="undefined"){qe(t,n,e,void 0,{visible:!0});return}let c=new IntersectionObserver(u=>{for(let d of u)d.isIntersecting&&(qe(t,n,e,void 0,d),i||c.unobserve(e))},{threshold:s,rootMargin:a});c.observe(e),o(()=>c.disconnect())});b("infinite-scroll",({el:e,expression:t,scope:n,cleanup:r})=>{let o=j(e,"infinite-distance")||"200px",i=!1,s=()=>{i=!1},a=()=>{if(i)return;i=!0,e.setAttribute("aria-busy","true");let u=qe(t,n,e,void 0,{page:"next"}),d=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};u&&typeof u.then=="function"?u.then(d,d):setTimeout(d,300)};if(typeof IntersectionObserver=="undefined")return;let c=document.createElement("div");c.className="v-infinite-sentinel",c.setAttribute("aria-hidden","true"),c.style.cssText="width:100%;height:1px;pointer-events:none",e.appendChild(c);let l=new IntersectionObserver(u=>{for(let d of u)d.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});l.observe(c),r(()=>{l.disconnect(),c.remove()})});$("infinite-distance");function Vc(e,t,n,r){if(X(),!t)return;e.classList.add("v-lazy");let o=a=>{r?e.style.backgroundImage=`url("${a}")`:e.src=a,e.classList.add("v-lazy-loaded")},i=()=>{let a=new Image;a.onload=()=>o(t),a.onerror=()=>{let c=j(e,"lazy-error");e.classList.add("v-lazy-failed"),c?o(c):e.classList.add("v-lazy-loaded")},a.src=t};if(!r&&e.tagName==="IMG"){let a=e;a.hasAttribute("loading")||(a.loading="lazy"),a.hasAttribute("decoding")||(a.decoding="async")}if(typeof IntersectionObserver=="undefined"){i();return}let s=new IntersectionObserver(a=>{for(let c of a)c.isIntersecting&&(s.disconnect(),i())},{rootMargin:"200px"});s.observe(e),n(()=>s.disconnect())}b("lazy-src",({el:e,expression:t,cleanup:n})=>{Vc(e,t.trim(),n,!1)});b("lazy-bg",({el:e,expression:t,cleanup:n})=>{Vc(e,t.trim(),n,!0)});$("lazy-error");b("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{X();let i=c=>{e.classList.toggle("v-skeleton",c),c?e.setAttribute("aria-busy","true"):e.removeAttribute("aria-busy")};if(t.trim()){n(()=>i(!!r()));return}let s=()=>{var c;return((c=e.textContent)!=null?c:"").trim().length>0||e.querySelector("img,svg,video,canvas")!==null};if(s()){i(!1);return}if(i(!0),typeof MutationObserver=="undefined")return;let a=new MutationObserver(()=>{s()&&(i(!1),a.disconnect())});a.observe(e,{childList:!0,subtree:!0,characterData:!0}),o(()=>a.disconnect())});async function Di(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;left:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}}function Pi(e,t){X();let n=j(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),ke(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function Wc(e,t){var r;let n=j(e,"copy-from");if(n){let o=document.querySelector(n);if(o){let i=o;return typeof i.value=="string"&&i.value?i.value:((r=o.textContent)!=null?r:"").trim()}}return t.trim()}b("copy",({el:e,expression:t,cleanup:n})=>{X(),he(e,n);let r=o=>{o.preventDefault();let i=Wc(e,t);i&&Di(i).then(s=>{Pi(e,s),K(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("copy-from",({el:e,expression:t,cleanup:n})=>{if(X(),Hr(e,"copy-from",t),Rr(e,"copy"))return;he(e,n);let r=o=>{o.preventDefault();let i=Wc(e,"");i&&Di(i).then(s=>{Pi(e,s),K(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});$("copy-label");function Ef(e,t){let n=document.createElement("iframe");n.setAttribute("aria-hidden","true"),n.setAttribute("title","Print"),n.style.cssText="position:fixed;right:0;bottom:0;width:0;height:0;border:0;visibility:hidden";let r=Array.from(document.querySelectorAll('link[rel="stylesheet"],style')).map(o=>o.outerHTML).join(`
271
+ `);n.srcdoc=`<!doctype html><html><head><meta charset="utf-8"><title>${kt(t)}</title>${r}</head><body>${e.outerHTML}</body></html>`,n.addEventListener("load",()=>{let o=n.contentWindow;if(!o){n.remove();return}o.focus(),o.print(),setTimeout(()=>n.remove(),1e3)}),document.body.appendChild(n)}b("print",({el:e,expression:t,cleanup:n})=>{he(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&Ef(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("share",({el:e,expression:t,cleanup:n})=>{X(),he(e,n);let r=o=>{o.preventDefault();let i=t.trim()||j(e,"share-url")||location.href,s={title:j(e,"share-title")||document.title,url:i},a=j(e,"share-text");a&&(s.text=a);let c=navigator;if(typeof c.share=="function"){c.share(s).then(()=>K(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}Di(i).then(l=>{Pi(e,l),K(e,"voodoo:share",{data:s,method:"clipboard",ok:l})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});$("share-title");$("share-url");$("share-text");b("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;he(e,n);let r=t.trim()&&(s=document.querySelector(t.trim()))!=null?s:e,o=()=>{e.setAttribute("aria-pressed",String(document.fullscreenElement===r))},i=a=>{var l;if(a.preventDefault(),document.fullscreenElement){document.exitFullscreen().catch(()=>{});return}let c=r;typeof r.requestFullscreen=="function"?r.requestFullscreen().catch(()=>{}):(l=c.webkitRequestFullscreen)==null||l.call(c)};o(),e.addEventListener("click",i),document.addEventListener("fullscreenchange",o),n(()=>{e.removeEventListener("click",i),document.removeEventListener("fullscreenchange",o)})});b("download",({el:e,expression:t,cleanup:n})=>{he(e,n);let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=document.createElement("a");s.href=i,s.rel="noopener",s.download=j(e,"download-name")||"",s.style.display="none",document.body.appendChild(s),s.click(),s.remove(),K(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});$("download-name");b("resizable",({el:e,expression:t,cleanup:n})=>{X();let r=(t.trim()||"both").toLowerCase(),o=r==="both"||r==="horizontal",i=r==="both"||r==="vertical";e.classList.add("v-resizable"),getComputedStyle(e).position==="static"&&(e.style.position="relative");let s=[],a=[];o&&a.push("right"),i&&a.push("bottom"),o&&i&&a.push("corner");let c=(l,u)=>{let d=0,p=0,f=0,m=0,v=h=>{u!=="bottom"&&(e.style.width=`${Math.max(32,f+h.clientX-d)}px`),u!=="right"&&(e.style.height=`${Math.max(32,m+h.clientY-p)}px`)},g=h=>{var y;(y=l.releasePointerCapture)==null||y.call(l,h.pointerId),l.removeEventListener("pointermove",v),l.removeEventListener("pointerup",g),l.removeEventListener("pointercancel",g),K(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};l.addEventListener("pointerdown",h=>{var w;if(h.button!==0)return;h.preventDefault();let y=e.getBoundingClientRect();d=h.clientX,p=h.clientY,f=y.width,m=y.height,(w=l.setPointerCapture)==null||w.call(l,h.pointerId),l.addEventListener("pointermove",v),l.addEventListener("pointerup",g),l.addEventListener("pointercancel",g)}),l.addEventListener("keydown",h=>{let y=h.shiftKey?4:16,w=e.getBoundingClientRect(),T=!0;h.key==="ArrowRight"&&u!=="bottom"?e.style.width=`${w.width+y}px`:h.key==="ArrowLeft"&&u!=="bottom"?e.style.width=`${Math.max(32,w.width-y)}px`:h.key==="ArrowDown"&&u!=="right"?e.style.height=`${w.height+y}px`:h.key==="ArrowUp"&&u!=="right"?e.style.height=`${Math.max(32,w.height-y)}px`:T=!1,T&&(h.preventDefault(),K(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let l of a){let u=document.createElement("div");u.className="v-resize-handle",u.setAttribute("data-dir",l),u.setAttribute("role","separator"),u.setAttribute("tabindex","0"),u.setAttribute("aria-orientation",l==="bottom"?"horizontal":"vertical"),u.setAttribute("aria-label","Resize"),c(u,l),e.appendChild(u),s.push(u)}n(()=>{for(let l of s)l.remove()})});function Dc(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function xf(){let e=[];for(let t of ur(document,"command-item")){let n=(ut(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:j(t,"command-hint")||"",el:t}))}return e}function Pc(){if(X(),document.querySelector(".v-command"))return;let e=xf(),t=document.activeElement,n=document.createElement("div");n.className="v-command",n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.setAttribute("aria-label","Command palette"),n.tabIndex=-1;let r=document.createElement("div");r.className="v-command-box";let o=document.createElement("input");o.className="v-command-input",o.type="search",o.placeholder="Search command...",o.setAttribute("aria-label","Search command"),o.setAttribute("role","combobox"),o.setAttribute("aria-expanded","true"),o.setAttribute("autocomplete","off");let i=document.createElement("ul");i.className="v-command-list",i.id=ue("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),Fc();let s=e,a=0,c=m=>{let v=m.target;!v||n.contains(v)||o.focus()},l=()=>{document.removeEventListener("focusin",c,!0),document.removeEventListener("keydown",f,!0),n.remove(),Ic(),t==null||t.focus()},u=()=>{let m=s[a];m&&(l(),m.el.click())},d=()=>{var v;if(i.replaceChildren(),!s.length){let g=document.createElement("li");g.className="v-command-empty",g.textContent="No command found",i.appendChild(g);return}s.forEach((g,h)=>{let y=document.createElement("li");y.className="v-command-option",y.id=`${i.id}-${h}`,y.setAttribute("role","option"),y.setAttribute("aria-selected",String(h===a));let w=document.createElement("span");if(w.textContent=g.label,y.appendChild(w),g.hint){let T=document.createElement("span");T.className="v-command-hint",T.textContent=g.hint,y.appendChild(T)}y.addEventListener("click",()=>{a=h,u()}),y.addEventListener("pointermove",()=>{a!==h&&(a=h,d())}),i.appendChild(y)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(v=m.scrollIntoView)==null||v.call(m,{block:"nearest"}))},p=()=>{let m=Dc(o.value.trim());s=m?e.filter(v=>Dc(`${v.label} ${v.hint}`).includes(m)):e,a=0,d()},f=m=>{if(m.key==="Escape"){m.preventDefault(),l();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,d();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,d();return}if(m.key==="Enter"){m.preventDefault(),u();return}m.key==="Tab"&&Or(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&l()}),o.addEventListener("input",p),document.addEventListener("keydown",f,!0),d(),o.focus(),document.addEventListener("focusin",c,!0)}b("command",({el:e,expression:t,cleanup:n})=>{X();let r=t.trim()||j(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),Pc()},i=$r(r,()=>Pc(),{allowInInput:!0}),s=Ci(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",zc(s)),he(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});b("command-item",({el:e,expression:t})=>{Hr(e,"command-item",t),!e.hasAttribute("data-v-command-label")&&t.trim()&&e.setAttribute("data-v-command-label",t.trim())});$("command-key");$("command-hint");var Nc=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];b("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=_(j(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,qe(t,n,e,void 0,{idle:!0,after:o}),K(e,"voodoo:idle",{after:o})},c=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},l=()=>{if(s){c();return}c()};for(let u of Nc)window.addEventListener(u,l,{passive:!0});c(),r(()=>{i&&clearTimeout(i);for(let u of Nc)window.removeEventListener(u,l)})});$("idle-after");function Kc(e,t,n,r,o,i){let s=a=>{qe(t,n,e,a,{online:navigator.onLine}),K(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&fe(()=>s())}b("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{Kc(e,t,n,o,"online",!!r.immediate)});b("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{Kc(e,t,n,o,"offline",r["no-immediate"]!==!0)});re();Z();Te();re();Z();Te();var Pe={required:"Please fill in this field.",email:"Enter a valid email address.",url:"Enter a valid URL.",number:"Enter a valid number.",integer:"Enter a whole number.",decimal:"Enter a valid decimal number.",alpha:"Use letters only.",alphanumeric:"Use letters and numbers only.",minlength:"Use at least {param} characters.",maxlength:"Use at most {param} characters.",min:"The smallest allowed value is {param}.",max:"The largest allowed value is {param}.",between:"Enter a value between {min} and {max}.",match:"The fields do not match.",regex:"That format is not valid.",date:"Enter a valid date.",after:"The date has to be later than {param}.",before:"The date has to be earlier than {param}.",accepted:"You have to tick this to continue.",same:"The values have to be the same.",different:"The values have to be different.",in:"Choose one of the allowed options.",notin:"That value is not allowed.",phone:"Enter a valid phone number, including the area code.",cpf:"Invalid CPF.",cnpj:"Invalid CNPJ.",cep:"Invalid postcode.",creditcard:"Invalid card number.",strongpassword:"Use {param} characters or more, with an upper case letter, a lower case letter, a number and a symbol.",unique:"That value is already taken.",invalid:"Invalid value."};function Qc(e,t){var i,s,a,c,l,u;let n=(i=t.param)!=null?i:"",r=n.split(","),o={param:n,field:(s=t.field)!=null?s:"field",value:(a=t.value)!=null?a:"",min:((c=r[0])!=null?c:"").trim(),max:((u=(l=r[1])!=null?l:r[0])!=null?u:"").trim()};return e.replace(/\{(\w+)\}/g,(d,p)=>p in o?o[p]:d)}var jr=new Map;function I(e,t,n){let r=e.toLowerCase();jr.set(r,{name:r,fn:t,message:n}),n&&!Pe[r]&&(Pe[r]=n),b(`validate-${r}`,({el:o,cleanup:i})=>{Kr(o,i)})}function Ze(e,t){var n;return(n=xe(e,`${E.prefix}${t}`))!=null?n:xe(e,`data-v-${t}`)}function Tf(e,t){return Ze(e,t)!==null}var kf=new Set(["INPUT","SELECT","TEXTAREA"]),Lf=new Set(["submit","button","reset","image"]);function Le(e){var t;return!!e&&typeof e=="object"&&kf.has((t=e.tagName)!=null?t:"")}function Ue(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function Bn(e){var n;let t=Ue(e);if(t==="checkbox"||t==="radio")return e.checked?e.value||"on":"";if(t==="file"){let r=e.files;return r&&r.length?String(r.length):""}return(n=e.value)!=null?n:""}function $i(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function Af(e){var o,i;let t=Ze(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${Fr(e.id)}"]`),a=(o=s==null?void 0:s.textContent)==null?void 0:o.trim();if(a)return a.replace(/\s*\*$/,"")}let n=e.closest("label"),r=(i=n==null?void 0:n.textContent)==null?void 0:i.trim();return r?r.replace(/\s*\*$/,""):e.getAttribute("aria-label")||e.getAttribute("placeholder")||e.name||"field"}function Fr(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function Br(e,t){var s,a,c;let n=t.trim();if(!n||typeof document=="undefined")return null;let r=(a=(s=e.form)!=null?s:e.closest("form"))!=null?a:document;if(/^[#.[]/.test(n)){let l=(c=r.querySelector(n))!=null?c:document.querySelector(n);return Le(l)?l:null}let o=r.querySelector(`[name="${Fr(n)}"]`);if(Le(o))return o;let i=document.getElementById(n);return Le(i)?i:null}var Sf=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,Mf=/^-?\d+$/,Cf=/^-?\d+(?:[.,]\d+)?$/,Rf=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,Hf=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function qn(e){return e.replace(/\D/g,"")}function qr(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function Df(e){let t=qn(e);if(t.length!==11||/^(\d)\1{10}$/.test(t))return!1;let n=0;for(let i=0;i<9;i++)n+=Number(t[i])*(10-i);let r=n*10%11;if(r===10&&(r=0),r!==Number(t[9]))return!1;n=0;for(let i=0;i<10;i++)n+=Number(t[i])*(11-i);let o=n*10%11;return o===10&&(o=0),o===Number(t[10])}function Pf(e){let t=qn(e);if(t.length!==14||/^(\d)\1{13}$/.test(t))return!1;let n=r=>{let o=r-7,i=0;for(let a=0;a<r;a++)i+=Number(t[a])*o--,o<2&&(o=9);let s=i%11;return s<2?0:11-s};return n(12)===Number(t[12])&&n(13)===Number(t[13])}function Nf(e){let t=qn(e);if(t.length<13||t.length>19)return!1;let n=0,r=!1;for(let o=t.length-1;o>=0;o--){let i=Number(t[o]);r&&(i*=2,i>9&&(i-=9)),n+=i,r=!r}return n%10===0}function Of(e){let t=qn(e);return!(t.length!==10&&t.length!==11||Number(t.slice(0,2))<11||t.length===11&&t[2]!=="9"||t.length===10&&Number(t[2])<2)}function Ht(e){let t=e.trim();if(!t)return null;let n=/^(\d{2})\/(\d{2})\/(\d{4})$/.exec(t);if(n){let i=new Date(Number(n[3]),Number(n[2])-1,Number(n[1]));return i.getFullYear()===Number(n[3])&&i.getMonth()===Number(n[2])-1&&i.getDate()===Number(n[1])?i:null}let r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(r){let i=new Date(Number(r[1]),Number(r[2])-1,Number(r[3]));return i.getFullYear()===Number(r[1])&&i.getMonth()===Number(r[2])-1&&i.getDate()===Number(r[3])?i:null}let o=Date.parse(t);return Number.isNaN(o)?null:new Date(o)}function zr(e,t){if(!e)return null;let n=e.trim().toLowerCase();if(n==="hoje"||n==="today"||n==="now"||n==="agora")return new Date;let r=Ht(e);if(r)return r;let o=Br(t,e);return o?Ht(Bn(o)):null}I("required",(e,t,n)=>{let r=Ue(n);if(r==="checkbox"||r==="radio")return n.checked;if(r==="file"){let o=n.files;return!!o&&o.length>0}return e.trim().length>0});I("email",e=>Sf.test(e.trim()));I("url",e=>{let t=e.trim();if(!t)return!1;try{let n=new URL(/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`https://${t}`);return n.hostname.includes(".")&&!n.hostname.endsWith(".")}catch(n){return!1}});I("number",e=>e.trim()!==""&&Number.isFinite(qr(e)));I("integer",e=>Mf.test(e.trim()));I("decimal",(e,t)=>{var i;let n=e.trim();if(!Cf.test(n))return!1;if(!t)return!0;let r=Number(t);return Number.isFinite(r)?((i=n.split(/[.,]/)[1])!=null?i:"").length<=r:!0});I("alpha",e=>Rf.test(e.trim().replace(/\s+/g,"")));I("alphanumeric",e=>Hf.test(e.trim().replace(/\s+/g,"")));I("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));I("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));I("min",(e,t,n)=>{let r=zr(t,n);if(r&&Ue(n).startsWith("date")){let o=Ht(e);return!o||o.getTime()>=r.getTime()}return qr(e)>=Number(t!=null?t:0)});I("max",(e,t,n)=>{let r=zr(t,n);if(r&&Ue(n).startsWith("date")){let o=Ht(e);return!o||o.getTime()<=r.getTime()}return qr(e)<=Number(t!=null?t:1/0)});I("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=qr(e);return Number.isFinite(o)&&o>=n&&o<=r});I("match",(e,t,n)=>{if(!t)return!0;let r=Br(n,t);return r?Bn(r)===e:!0});I("same",(e,t,n)=>{if(!t)return!0;let r=Br(n,t);return!r||Bn(r)===e});I("different",(e,t,n)=>{if(!t)return!0;let r=Br(n,t);return!r||Bn(r)!==e});I("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=Ze(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return Y(`Invalid regular expression in ${E.prefix}regex: ${t}`),!0}});I("date",e=>Ht(e)!==null);I("after",(e,t,n)=>{let r=zr(t,n),o=Ht(e);return!r||!o?!0:o.getTime()>r.getTime()});I("before",(e,t,n)=>{let r=zr(t,n),o=Ht(e);return!r||!o?!0:o.getTime()<r.getTime()});I("accepted",(e,t,n)=>{let r=Ue(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});I("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));I("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));I("phone",e=>Of(e));I("cpf",e=>Df(e));I("cnpj",e=>Pf(e));I("cep",e=>qn(e).length===8);I("creditcard",e=>Nf(e));I("strongpassword",(e,t)=>{let n=Number(t)>0?Number(t):8;return e.length>=n&&/[a-zà-ÿ]/.test(e)&&/[A-ZÀ-ß]/.test(e)&&/\d/.test(e)&&/[^\w\s]/.test(e)?!0:Qc(Pe.strongpassword,{param:String(n)})});I("unique",async(e,t,n)=>{let r=t||Ze(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await me.get(r,{params:{value:e,field:$i(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:Pe.unique:o?Pe.unique:!0}catch(o){if(o instanceof ne){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return Pe.unique}return!0}});var $f={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},Ff=new Set(["required","accepted"]);function If(e){var o;let t=null;if(e.startsWith(E.prefix)?t=e.slice(E.prefix.length):e.startsWith("data-v-")&&(t=e.slice(7)),!t)return null;let n=t.indexOf(".");if(n>-1&&(t=t.slice(0,n)),t==="validate")return null;t.startsWith("validate-")&&(t=t.slice(9));let r=(o=$f[t])!=null?o:t;return jr.has(r)?r:null}function Fi(e){let t=[],n=new Set,r=(u,d)=>{n.has(u)||!jr.has(u)||(n.add(u),t.push({name:u,param:d}))};for(let[u,d]of oa(e)){let p=If(u);if(p){if(d.trim()==="false"){n.add(p);continue}r(p,d)}}let o=Ue(e);e.hasAttribute("required")&&r("required",""),o==="email"&&r("email",""),o==="url"&&r("url",""),(o==="number"||o==="range")&&r("number","");let i=e.getAttribute("minlength");i&&r("minlength",i);let s=e.getAttribute("maxlength");s&&r("maxlength",s);let a=e.getAttribute("min");a&&r("min",a);let c=e.getAttribute("max");c&&r("max",c);let l=e.getAttribute("pattern");return l&&r("regex",l),t.sort((u,d)=>u.name==="required"?-1:d.name==="required"?1:0),t}var jf=`
272
272
  .v-field-error{display:block;margin-top:6px;color:var(--v-danger,#FF4D4D);
273
273
  font:500 12.5px/1.45 var(--v-font-sans,system-ui,-apple-system,sans-serif);
274
274
  animation:v-field-error-in .18s var(--v-ease,ease) both}
@@ -283,7 +283,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
283
283
  font:500 13px/1.5 var(--v-font-sans,system-ui,-apple-system,sans-serif)}
284
284
  .v-form-error ul{margin:0;padding-left:18px}
285
285
  @media (prefers-reduced-motion: reduce){.v-field-error{animation:none}}
286
- `;function zr(){ie(),G("forms-validate",$f)}function _c(e){var r,o,i;let t=Xe(e,"error-target");if(t&&typeof document!="undefined"){let s=(i=(o=(r=e.form)!=null?r:e.closest("form"))==null?void 0:o.querySelector(t))!=null?i:document.querySelector(t);if(s)return{parent:s,anchor:null};Y(`Target for ${E.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function Wc(e){let t=_c(e);if(!t)return null;if(t.anchor){let n=t.anchor.nextElementSibling;return n&&n.classList.contains("v-field-error")?n:null}return t.parent.querySelector(".v-field-error")}function Ur(e,t){zr(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=Wc(e);if(!n){let o=_c(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:ue("v-error-"),n.setAttribute("role","alert"),n.setAttribute("aria-live","polite"),o.anchor?o.anchor.insertAdjacentElement("afterend",n):o.parent.appendChild(n)}n.textContent=t;let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.push(n.id),e.setAttribute("aria-describedby",r.join(" "))}function Di(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=Wc(e);if(n){let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.length?e.setAttribute("aria-describedby",r.join(" ")):e.removeAttribute("aria-describedby"),n.remove()}}function qn(e){for(let n of _r(e,!1))Di(n);for(let n of Array.from(e.querySelectorAll(".v-field-error")))n.remove();let t=e.querySelector(".v-form-error");t&&t.remove();for(let n of Array.from(e.querySelectorAll(".v-invalid, .v-valid")))n.classList.remove("v-invalid","v-valid"),n.removeAttribute("aria-invalid")}function Oi(e){let t={};if(!e||typeof e!="object")return t;let n=e,r=n.errors&&typeof n.errors=="object"?n.errors:n;for(let[o,i]of Object.entries(r))o==="message"||o==="mensagem"||o==="errors"||(typeof i=="string"?t[o]=i:Array.isArray(i)&&typeof i[0]=="string"&&(t[o]=i[0]));return t}function Of(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${Or(i)}"]`);if(Le(s))return s}let o=e.querySelector(`#${Or(t)}`);return Le(o)?o:null}function Vr(e,t){let n=Oi(t),r=[];for(let[o,i]of Object.entries(n)){let s=Of(e,o);s?Ur(s,i):r.push(i)}return r.length&&Ff(e,r),n}function Ff(e,t){zr();let n=e.querySelector(".v-form-error");if(n||(n=document.createElement("div"),n.className="v-form-error",n.setAttribute("role","alert"),e.prepend(n)),n.textContent="",t.length===1){n.textContent=t[0];return}let r=document.createElement("ul");for(let o of t){let i=document.createElement("li");i.textContent=o,r.appendChild(i)}n.appendChild(r)}function Fi(e){let t=e.querySelector(".v-invalid");if(!t)return!1;try{t.focus({preventScroll:!0})}catch(r){t.focus()}let n=typeof window!="undefined"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;return typeof t.scrollIntoView=="function"&&t.scrollIntoView({block:"center",behavior:n?"auto":"smooth"}),!0}function _r(e,t=!0){let n=e.tagName==="FORM"?Array.from(e.elements):Array.from(e.querySelectorAll("input, select, textarea")),r=[];for(let o of n)Le(o)&&(o.disabled||Ef.has(Ue(o))||t&&$i(o).length===0||r.push(o));return r}async function Ii(e,t={}){var s,a;if(!Le(e))return{valid:!0};let n=$i(e);if(!n.length)return t.silent||Di(e),{valid:!0};let r=jn(e),o=Xe(e,"error-message"),i=r.trim()==="";for(let c of n){if(i&&!Pf.has(c.name))continue;let l=Ir.get(c.name);if(!l)continue;let u;try{u=await l.fn(r,c.param||void 0,e)}catch(f){Y(`Rule "${c.name}" failed to execute`,f);continue}if(u===!0)continue;let d=o!=null?o:typeof u=="string"?u:(a=(s=Pe[c.name])!=null?s:l.message)!=null?a:Pe.invalid,p=Vc(d,{field:xf(e),param:c.param,value:r});return t.silent||(Ur(e,p),Uc(e,{valid:!1,message:p,rule:c.name})),{valid:!1,message:p,rule:c.name}}return t.silent||(Di(e,!i),Uc(e,{valid:!0})),{valid:!0}}function ji(e){return Le(e)?Ii(e):Bi(e)}async function Bi(e){let t=_r(e),n=await Promise.all(t.map(o=>Ii(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[Ni(o)]=(a=s.message)!=null?a:Pe.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function Uc(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:Ni(e),...t}}))}function If(e){let t=e.indexOf("[");if(t===-1)return[e];let n=[e.slice(0,t)],r=/\[([^\]]*)\]/g,o;for(;(o=r.exec(e))!==null;)n.push(o[1]);return n}function jf(e,t,n){let r=e;for(let o=0;o<t.length;o++){let i=t[o],s=o===t.length-1,a=t[o+1];if(i===""){if(!Array.isArray(r))return;if(s){r.push(n);return}let l=a===""?[]:{};r.push(l),r=l;continue}if(Array.isArray(r)){let l=Number(i);if(!Number.isInteger(l))return;if(s){r[l]=n;return}let u=r[l];(u==null||typeof u!="object")&&(u=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[l]=u),r=u;continue}if(s){r[i]=n;return}let c=r[i];(c==null||typeof c!="object")&&(c=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[i]=c),r=c}}function Bf(e,t){var a,c,l,u;let n=_r(e,!1),r=[],o=new Map;for(let d of n)Ue(d)==="checkbox"&&d.name&&o.set(d.name,((a=o.get(d.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let d of n){if(!d.name||d.disabled&&!t.includeDisabled)continue;let p=Ue(d);if(p==="file"){let m=Array.from((c=d.files)!=null?c:[]);if(!m.length)continue;let v=d.multiple||d.name.endsWith("[]");r.push({name:d.name,value:v?m:m[0]});continue}if(p==="checkbox"){if(((l=o.get(d.name))!=null?l:1)>1||d.name.endsWith("[]")){if(!d.checked)continue;let v=d.name.endsWith("[]")?d.name:`${d.name}[]`;r.push({name:v,value:d.value||"on"})}else r.push({name:d.name,value:d.checked});continue}if(p==="radio"){if(!d.checked)continue;r.push({name:d.name,value:d.value});continue}if(d.tagName==="SELECT"&&d.multiple){let m=Array.from(d.selectedOptions).map(g=>g.value),v=d.name.endsWith("[]")?d.name:`${d.name}[]`;for(let g of m)r.push({name:v,value:g});continue}let f=(u=d.value)!=null?u:"";if(i&&typeof f=="string"&&(f=f.trim()),s&&(p==="number"||p==="range")&&f!==""){let m=Number(f);Number.isFinite(m)&&(f=m)}r.push({name:d.name,value:f})}return r}function qf(e){for(let t of _r(e,!1)){if(Ue(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function Kc(e,t,n){if(n instanceof File||typeof Blob!="undefined"&&n instanceof Blob){e.append(t,n);return}if(Array.isArray(n)){let r=t.endsWith("[]")?t:`${t}[]`;for(let o of n)Kc(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function ln(e,t={}){let n=Bf(e,t);if(t.formData||qf(e)){let o=new FormData;for(let i of n)Kc(o,i.name,i.value);return o}let r={};for(let o of n)jf(r,If(o.name),o.value);return r}var Fn=new WeakSet,In=new WeakSet;async function Fr(e){(await Ii(e)).valid?In.delete(e):In.add(e)}function Wr(e,t){if(!Le(e)){Y(`${E.prefix}validate only works on input, select, or textarea.`);return}if(Fn.has(e))return;Fn.add(e),zr();let n=()=>{Fr(e)},r=()=>{In.has(e)&&Fr(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Fn.delete(e),In.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var Pi=new WeakSet;function Yc(e){return Pi.has(e)||bf(e,"validate")}function zf(e,t){Pi.add(e),zr(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!Le(i)||Fn.has(i)||$i(i).length!==0&&Fr(i)},r=o=>{let i=o.target;!Le(i)||Fn.has(i)||In.has(i)&&Fr(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Pi.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}b("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${E.prefix}submit`)){zf(e,t);return}Wr(e,t)});var Uf=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of Uf)b(e,({el:t,cleanup:n})=>{Wr(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])b(e,({el:t,cleanup:n})=>{Le(t)&&Wr(t,n)});function Gc(){return V({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var un=new WeakMap,Ui=new WeakMap,Vf=Gc();function zn(e){let t=un.get(e);return t||(t=Gc(),un.set(e,t)),t}function _f(e){let t=e;for(;t;){let n=Ui.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?un.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?un.get(s):void 0;if(a)return a}t=t.parent}if(typeof document!="undefined")for(let n of Array.from(document.forms)){let r=un.get(n);if(r)return r}return Vf}H("$form",e=>_f(e));var dn=new WeakMap,Wf=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function Qc(e){return Wf.some(t=>nt(e,`${E.prefix}${t}`)||nt(e,`data-v-${t}`))}function se(e,t){var i,s,a;let n=Xe(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let c=Xe(r,t);if(c!==null)return c}let o=(a=(i=dn.get(e))==null?void 0:i[t])!=null?a:r?(s=dn.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function Qr(e,t){return se(e,t)!==null}function Ae(e,t){b(e,({el:n,expression:r})=>{var a,c;let o=(a=n.closest("form"))!=null?a:n,i=(c=dn.get(o))!=null?c:{};if(i[e]=r,dn.set(o,i),!Qc(o)&&!Qc(n)){Y(`${E.prefix}${e} needs an element with ${E.prefix}submit, ${E.prefix}upload, ${E.prefix}dropzone, or ${E.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&Y(s)})}var Kf=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];Ae("method",e=>e&&!Kf.includes(e.trim().toUpperCase())?`${E.prefix}method received an unknown verb: ${e}`:null);Ae("redirect");Ae("reset-success");Ae("disable-loading");Ae("loading-class");Ae("on-success");Ae("on-error");Ae("on-complete");Ae("toast-success");Ae("toast-error");Ae("confirm");Ae("form-data");b("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=dn.get(n))!=null?s:{};r.loading=t,dn.set(n,r);let o=Xc(t);if(!o){Y(`${E.prefix}loading element not found: ${t}`);return}Jc(o,!1)});var Yf=`
286
+ `;function Ur(){se(),G("forms-validate",jf)}function Gc(e){var r,o,i;let t=Ze(e,"error-target");if(t&&typeof document!="undefined"){let s=(i=(o=(r=e.form)!=null?r:e.closest("form"))==null?void 0:o.querySelector(t))!=null?i:document.querySelector(t);if(s)return{parent:s,anchor:null};Y(`Target for ${E.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function Xc(e){let t=Gc(e);if(!t)return null;if(t.anchor){let n=t.anchor.nextElementSibling;return n&&n.classList.contains("v-field-error")?n:null}return t.parent.querySelector(".v-field-error")}function _r(e,t){Ur(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=Xc(e);if(!n){let o=Gc(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:ue("v-error-"),n.setAttribute("role","alert"),n.setAttribute("aria-live","polite"),o.anchor?o.anchor.insertAdjacentElement("afterend",n):o.parent.appendChild(n)}n.textContent=t;let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.push(n.id),e.setAttribute("aria-describedby",r.join(" "))}function Ni(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=Xc(e);if(n){let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.length?e.setAttribute("aria-describedby",r.join(" ")):e.removeAttribute("aria-describedby"),n.remove()}}function zn(e){for(let n of Wr(e,!1))Ni(n);for(let n of Array.from(e.querySelectorAll(".v-field-error")))n.remove();let t=e.querySelector(".v-form-error");t&&t.remove();for(let n of Array.from(e.querySelectorAll(".v-invalid, .v-valid")))n.classList.remove("v-invalid","v-valid"),n.removeAttribute("aria-invalid")}function Ii(e){let t={};if(!e||typeof e!="object")return t;let n=e,r=n.errors&&typeof n.errors=="object"?n.errors:n;for(let[o,i]of Object.entries(r))o==="message"||o==="mensagem"||o==="errors"||(typeof i=="string"?t[o]=i:Array.isArray(i)&&typeof i[0]=="string"&&(t[o]=i[0]));return t}function Bf(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${Fr(i)}"]`);if(Le(s))return s}let o=e.querySelector(`#${Fr(t)}`);return Le(o)?o:null}function Vr(e,t){let n=Ii(t),r=[];for(let[o,i]of Object.entries(n)){let s=Bf(e,o);s?_r(s,i):r.push(i)}return r.length&&qf(e,r),n}function qf(e,t){Ur();let n=e.querySelector(".v-form-error");if(n||(n=document.createElement("div"),n.className="v-form-error",n.setAttribute("role","alert"),e.prepend(n)),n.textContent="",t.length===1){n.textContent=t[0];return}let r=document.createElement("ul");for(let o of t){let i=document.createElement("li");i.textContent=o,r.appendChild(i)}n.appendChild(r)}function ji(e){let t=e.querySelector(".v-invalid");if(!t)return!1;try{t.focus({preventScroll:!0})}catch(r){t.focus()}let n=typeof window!="undefined"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;return typeof t.scrollIntoView=="function"&&t.scrollIntoView({block:"center",behavior:n?"auto":"smooth"}),!0}function Wr(e,t=!0){let n=e.tagName==="FORM"?Array.from(e.elements):Array.from(e.querySelectorAll("input, select, textarea")),r=[];for(let o of n)Le(o)&&(o.disabled||Lf.has(Ue(o))||t&&Fi(o).length===0||r.push(o));return r}async function Bi(e,t={}){var s,a;if(!Le(e))return{valid:!0};let n=Fi(e);if(!n.length)return t.silent||Ni(e),{valid:!0};let r=Bn(e),o=Ze(e,"error-message"),i=r.trim()==="";for(let c of n){if(i&&!Ff.has(c.name))continue;let l=jr.get(c.name);if(!l)continue;let u;try{u=await l.fn(r,c.param||void 0,e)}catch(f){Y(`Rule "${c.name}" failed to execute`,f);continue}if(u===!0)continue;let d=o!=null?o:typeof u=="string"?u:(a=(s=Pe[c.name])!=null?s:l.message)!=null?a:Pe.invalid,p=Qc(d,{field:Af(e),param:c.param,value:r});return t.silent||(_r(e,p),Yc(e,{valid:!1,message:p,rule:c.name})),{valid:!1,message:p,rule:c.name}}return t.silent||(Ni(e,!i),Yc(e,{valid:!0})),{valid:!0}}function qi(e){return Le(e)?Bi(e):zi(e)}async function zi(e){let t=Wr(e),n=await Promise.all(t.map(o=>Bi(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[$i(o)]=(a=s.message)!=null?a:Pe.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function Yc(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:$i(e),...t}}))}function zf(e){let t=e.indexOf("[");if(t===-1)return[e];let n=[e.slice(0,t)],r=/\[([^\]]*)\]/g,o;for(;(o=r.exec(e))!==null;)n.push(o[1]);return n}function Uf(e,t,n){let r=e;for(let o=0;o<t.length;o++){let i=t[o],s=o===t.length-1,a=t[o+1];if(i===""){if(!Array.isArray(r))return;if(s){r.push(n);return}let l=a===""?[]:{};r.push(l),r=l;continue}if(Array.isArray(r)){let l=Number(i);if(!Number.isInteger(l))return;if(s){r[l]=n;return}let u=r[l];(u==null||typeof u!="object")&&(u=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[l]=u),r=u;continue}if(s){r[i]=n;return}let c=r[i];(c==null||typeof c!="object")&&(c=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[i]=c),r=c}}function _f(e,t){var a,c,l,u;let n=Wr(e,!1),r=[],o=new Map;for(let d of n)Ue(d)==="checkbox"&&d.name&&o.set(d.name,((a=o.get(d.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let d of n){if(!d.name||d.disabled&&!t.includeDisabled)continue;let p=Ue(d);if(p==="file"){let m=Array.from((c=d.files)!=null?c:[]);if(!m.length)continue;let v=d.multiple||d.name.endsWith("[]");r.push({name:d.name,value:v?m:m[0]});continue}if(p==="checkbox"){if(((l=o.get(d.name))!=null?l:1)>1||d.name.endsWith("[]")){if(!d.checked)continue;let v=d.name.endsWith("[]")?d.name:`${d.name}[]`;r.push({name:v,value:d.value||"on"})}else r.push({name:d.name,value:d.checked});continue}if(p==="radio"){if(!d.checked)continue;r.push({name:d.name,value:d.value});continue}if(d.tagName==="SELECT"&&d.multiple){let m=Array.from(d.selectedOptions).map(g=>g.value),v=d.name.endsWith("[]")?d.name:`${d.name}[]`;for(let g of m)r.push({name:v,value:g});continue}let f=(u=d.value)!=null?u:"";if(i&&typeof f=="string"&&(f=f.trim()),s&&(p==="number"||p==="range")&&f!==""){let m=Number(f);Number.isFinite(m)&&(f=m)}r.push({name:d.name,value:f})}return r}function Vf(e){for(let t of Wr(e,!1)){if(Ue(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function Jc(e,t,n){if(n instanceof File||typeof Blob!="undefined"&&n instanceof Blob){e.append(t,n);return}if(Array.isArray(n)){let r=t.endsWith("[]")?t:`${t}[]`;for(let o of n)Jc(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function ln(e,t={}){let n=_f(e,t);if(t.formData||Vf(e)){let o=new FormData;for(let i of n)Jc(o,i.name,i.value);return o}let r={};for(let o of n)Uf(r,zf(o.name),o.value);return r}var In=new WeakSet,jn=new WeakSet;async function Ir(e){(await Bi(e)).valid?jn.delete(e):jn.add(e)}function Kr(e,t){if(!Le(e)){Y(`${E.prefix}validate only works on input, select, or textarea.`);return}if(In.has(e))return;In.add(e),Ur();let n=()=>{Ir(e)},r=()=>{jn.has(e)&&Ir(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{In.delete(e),jn.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var Oi=new WeakSet;function Zc(e){return Oi.has(e)||Tf(e,"validate")}function Wf(e,t){Oi.add(e),Ur(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!Le(i)||In.has(i)||Fi(i).length!==0&&Ir(i)},r=o=>{let i=o.target;!Le(i)||In.has(i)||jn.has(i)&&Ir(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Oi.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}b("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${E.prefix}submit`)){Wf(e,t);return}Kr(e,t)});var Kf=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of Kf)b(e,({el:t,cleanup:n})=>{Kr(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])b(e,({el:t,cleanup:n})=>{Le(t)&&Kr(t,n)});function tl(){return V({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var un=new WeakMap,Vi=new WeakMap,Yf=tl();function Un(e){let t=un.get(e);return t||(t=tl(),un.set(e,t)),t}function Qf(e){let t=e;for(;t;){let n=Vi.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?un.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?un.get(s):void 0;if(a)return a}t=t.parent}if(typeof document!="undefined")for(let n of Array.from(document.forms)){let r=un.get(n);if(r)return r}return Yf}H("$form",e=>Qf(e));var dn=new WeakMap,Gf=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function el(e){return Gf.some(t=>rt(e,`${E.prefix}${t}`)||rt(e,`data-v-${t}`))}function ae(e,t){var i,s,a;let n=Ze(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let c=Ze(r,t);if(c!==null)return c}let o=(a=(i=dn.get(e))==null?void 0:i[t])!=null?a:r?(s=dn.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function Gr(e,t){return ae(e,t)!==null}function Ae(e,t){b(e,({el:n,expression:r})=>{var a,c;let o=(a=n.closest("form"))!=null?a:n,i=(c=dn.get(o))!=null?c:{};if(i[e]=r,dn.set(o,i),!el(o)&&!el(n)){Y(`${E.prefix}${e} needs an element with ${E.prefix}submit, ${E.prefix}upload, ${E.prefix}dropzone, or ${E.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&Y(s)})}var Xf=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];Ae("method",e=>e&&!Xf.includes(e.trim().toUpperCase())?`${E.prefix}method received an unknown verb: ${e}`:null);Ae("redirect");Ae("reset-success");Ae("disable-loading");Ae("loading-class");Ae("on-success");Ae("on-error");Ae("on-complete");Ae("toast-success");Ae("toast-error");Ae("confirm");Ae("form-data");b("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=dn.get(n))!=null?s:{};r.loading=t,dn.set(n,r);let o=nl(t);if(!o){Y(`${E.prefix}loading element not found: ${t}`);return}rl(o,!1)});var Jf=`
287
287
  form.v-loading{cursor:progress}
288
288
  form.v-loading [type="submit"],form.v-loading button[disabled]{opacity:.6}
289
289
  .v-progress{position:relative;overflow:hidden;width:100%;height:8px;margin-top:8px;
@@ -312,13 +312,13 @@ form.v-loading [type="submit"],form.v-loading button[disabled]{opacity:.6}
312
312
  .v-autosave-status[data-state="saved"]{color:var(--v-success,#2ED9A5)}
313
313
  .v-autosave-status[data-state="error"]{color:var(--v-danger,#FF4D4D)}
314
314
  @media (prefers-reduced-motion: reduce){.v-progress-bar,.v-dropzone{transition:none}}
315
- `;function Un(){ie(),G("forms-ajax",Yf)}function ut(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Gr(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=$(i.trim(),t,`${E.prefix}submit`);return s==null?o:String(s)}));let r=E.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function Vi(e){var r;if(!e||typeof e!="object")return"";let t=e,n=(r=t.message)!=null?r:t.mensagem;return typeof n=="string"?n:""}function _i(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>_i(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))_i(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function Qf(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function Xc(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var qi=new WeakMap;function Jc(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=qi.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}qi.has(e)||qi.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function Yr(e,t){let{host:n,form:r,state:o}=e;o.loading=t,r.classList.toggle("v-loading",t),r.setAttribute("aria-busy",t?"true":"false");let i=se(n,"loading-class");if(i)for(let a of i.split(/\s+/).filter(Boolean))r.classList.toggle(a,t);if(Qr(n,"disable-loading"))for(let a of Qf(r))a.disabled=t;let s=se(n,"loading");if(s){let a=Xc(s);a&&Jc(a,t)}}function Xr(e,t,n,r){let o=se(e.host,t);if(!o)return;let i=e.scope.child({$data:n,$response:r,$form:e.state,$el:e.host}),s=$(o,i,`${E.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function Gf(e,t){let n=se(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){Y(`${E.prefix}target destination not found: ${n}`);return}let o=(se(e.host,"swap")||"innerHTML").trim().toLowerCase();if(o==="none")return;if(o==="text"){r.textContent=t;return}let i=document.createElement("template");i.innerHTML=t;let s=Array.from(i.content.childNodes),a=Ce(r);switch(o){case"inner":case"innerhtml":for(let c of Array.from(r.children))q(c);r.textContent="",r.append(...s);break;case"afterbegin":case"prepend":r.prepend(...s);break;case"beforeend":case"append":r.append(...s);break;case"beforebegin":r.before(...s);break;case"afterend":r.after(...s);break;case"outer":case"outerhtml":case"replace":q(r),r.replaceWith(...s);break;default:Y(`Unknown mode in ${E.prefix}swap: ${o}`);return}for(let c of s)c.nodeType===1&&W(c,a)}function Zc(e,t,n){var c;let{state:r,form:o,host:i}=e;r.success=!0,r.errors={},r.data=t,r.status=n,r.dirty=!1,r.message=Vi(t),Gf(e,t),Qr(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),qn(o));let s=se(i,"toast-success");s!==null&&Re.success(s||r.message||"All set!"),Xr(e,"on-success",t,{status:n}),ut(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=se(i,"redirect");if(a!==null&&typeof window!="undefined"){let l=t&&typeof t=="object"?(c=t.redirect)!=null?c:t.url:null,u=e.scope.child({$data:t,$form:r}),d=a?Gr(a,u):String(l!=null?l:"");d&&window.location.assign(d)}}function Wi(e,t){var l,u;let{state:n,form:r,host:o}=e,i=t instanceof te?t:new te(t instanceof Error?t.message:String(t)),s=(u=(l=i.response)==null?void 0:l.data)!=null?u:null;n.success=!1,n.data=s,n.status=i.status,n.message=Vi(s)||i.message;let a=Oi(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Vr(r,s),Fi(r));let c=se(o,"toast-error");c!==null&&Re.error(c||Vi(s)||"Could not submit the form."),Xr(e,"on-error",s,i),ut(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function el(e,t){Xr(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),ut(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function Xf(e,t){let{host:n,form:r,state:o,scope:i}=e;if(o.loading)return;let s=se(n,"confirm");if(s!==null&&typeof window!="undefined"&&!window.confirm(s||"Confirm this action?"))return;if(Yc(r)){qn(r);let p=await Bi(r);if(o.errors=p.errors,!p.valid){Fi(r),ut(r,"voodoo:invalid",{errors:p.errors,form:r,state:o});return}}let a=(se(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),c=Gr(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),l=ln(r,{formData:Qr(n,"form-data")}),u=a==="GET"||a==="HEAD";Yr(e,!0),o.success=!1,o.progress=0,ut(r,"voodoo:submit",{url:c,method:a,form:r,state:o});let d=!1;try{let p=await it({url:c,method:a,body:u?void 0:l,params:u&&!(l instanceof FormData)?_i(l):void 0});d=!0,Zc(e,p.data,p.status)}catch(p){Wi(e,p)}finally{Yr(e,!1),el(e,d)}}b("submit",({el:e,scope:t,expression:n,cleanup:r})=>{Un();let o=e,i=zn(o),s=t.child({$form:i},o);Ui.set(s,i),Ui.set(t,i),rt(o,s);for(let u of Array.from(o.childNodes))u.nodeType===1&&rt(u,s);let a={host:o,form:o,scope:s,state:i},c=u=>{u.preventDefault(),Xf(a,n)},l=u=>{var f;let d=u.detail;if(!d||!d.field)return;let p={...i.errors};d.valid?delete p[d.field]:p[d.field]=(f=d.message)!=null?f:"",i.errors=p};o.addEventListener("submit",c),o.addEventListener("voodoo:field-validated",l),r(()=>{un.delete(o),o.removeEventListener("submit",c),o.removeEventListener("voodoo:field-validated",l)})},{priority:P.DATA-1});function Jf(e){let t=se(e,"progress");if(t){let o=document.querySelector(t);return o||(Y(`${E.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;Un();let r=document.createElement("div");return r.className="v-progress",r.setAttribute("role","progressbar"),r.setAttribute("aria-valuemin","0"),r.setAttribute("aria-valuemax","100"),r.innerHTML='<span class="v-progress-bar"></span>',e.insertAdjacentElement("afterend",r),r}function Kr(e,t,n){if(!e)return;let r=Math.max(0,Math.min(100,Math.round(t)));if(e.tagName==="PROGRESS")e.value=r,e.max=100;else{let o=e.classList.contains("v-progress-bar")?e:e.querySelector(".v-progress-bar, [data-progress-bar]");o?o.style.width=`${r}%`:e.style.width=`${r}%`}e.setAttribute("aria-valuenow",String(r)),n?e.setAttribute("data-state",n):e.removeAttribute("data-state")}function Zf(e,t,n){let r=new FormData,i=t.length>1||n.endsWith("[]")?n.endsWith("[]")?n:`${n}[]`:n;for(let a of t)r.append(i,a);let s=e.closest("form");if(s){let a=ln(s,{formData:!0});if(a instanceof FormData)for(let[c,l]of a.entries())l instanceof File||r.append(c,l)}return r}async function tl(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=Gr(t,e.scope);if(!a){Y(`${E.prefix}upload needs a destination URL.`);return}let c=Jf(s),l=Zf(s,n,r);Yr(e,!0),o.success=!1,o.progress=0,Kr(c,0,"loading"),ut(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let u=!1;try{let d=(se(s,"method")||"POST").trim().toUpperCase(),p=await me.upload(a,l,{method:d==="PUT"||d==="PATCH"?d:"POST",onProgress:f=>{o.progress=f,Kr(c,f,"loading"),ut(i,"voodoo:progress",{percent:f,form:i,state:o})}});u=!0,o.progress=100,Kr(c,100,"done"),Zc(e,p,200)}catch(d){Kr(c,o.progress,"error"),Wi(e,d)}finally{Yr(e,!1),el(e,u)}}b("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var l;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){Y(`${E.prefix}upload needs an <input type="file">.`);return}Un();let i=(l=o.closest("form"))!=null?l:o,s=zn(i),a={host:o,form:i,scope:t,state:s},c=()=>{var d;let u=Array.from((d=o.files)!=null?d:[]);u.length&&tl(a,n,u,o.name||"file")};o.addEventListener("change",c),r(()=>o.removeEventListener("change",c))});b("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var y,w,T;Un(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(y=e.textContent)!=null&&y.trim()||(e.textContent="Drag files here or click to choose");let o=(w=e.closest("form"))!=null?w:e,i=zn(o),s={host:e,form:o,scope:t,state:i},a=se(e,"field")||"file",c=document.createElement("input");c.type="file",c.hidden=!0,c.tabIndex=-1,e.hasAttribute("accept")&&(c.accept=(T=e.getAttribute("accept"))!=null?T:""),e.hasAttribute("multiple")&&(c.multiple=!0),e.appendChild(c);let l=x=>{x.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),tl(s,n,x,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},u=0,d=x=>{x.preventDefault(),u++,e.classList.add("v-dropzone-over")},p=x=>{x.preventDefault(),x.dataTransfer&&(x.dataTransfer.dropEffect="copy")},f=()=>{u=Math.max(0,u-1),u===0&&e.classList.remove("v-dropzone-over")},m=x=>{var N,R;x.preventDefault(),u=0,e.classList.remove("v-dropzone-over");let M=Array.from((R=(N=x.dataTransfer)==null?void 0:N.files)!=null?R:[]);l(c.multiple?M:M.slice(0,1))},v=x=>{x.target!==c&&c.click()},g=x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),c.click())},h=()=>{var M;let x=Array.from((M=c.files)!=null?M:[]);l(x),c.value=""};e.addEventListener("dragenter",d),e.addEventListener("dragover",p),e.addEventListener("dragleave",f),e.addEventListener("drop",m),e.addEventListener("click",v),e.addEventListener("keydown",g),c.addEventListener("change",h),r(()=>{e.removeEventListener("dragenter",d),e.removeEventListener("dragover",p),e.removeEventListener("dragleave",f),e.removeEventListener("drop",m),e.removeEventListener("click",v),e.removeEventListener("keydown",g),c.removeEventListener("change",h),c.remove()})});var ep={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function tp(e){let t=se(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;Y(`${E.prefix}autosave-status element not found: ${t}`)}let n=e.querySelector(".v-autosave-status");if(n)return n;let r=document.createElement("span");return r.className="v-autosave-status",r.setAttribute("aria-live","polite"),e.appendChild(r),r}function zi(e,t){e.setAttribute("data-state",t),e.textContent=ep[t]}b("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,v,g;Un();let i=e,s=zn(i),a={host:i,form:i,scope:t,state:s},c=tp(i),l=(g=(v=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(h=>/^[\d.]+(ms|s|m)?$/.test(h)))!=null?v:se(i,"autosave-delay"))!=null?g:1e3,u=U(l,1e3),d=async()=>{let h=Gr(n,t);if(!h){Y(`${E.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,zi(c,"saving");let y=(se(i,"method")||"POST").trim().toUpperCase();try{let w=await it({url:h,method:y,body:ln(i,{formData:Qr(i,"form-data")})});s.data=w.data,s.status=w.status,s.dirty=!1,s.success=!0,zi(c,"saved"),Xr(a,"on-success",w.data,{status:w.status}),ut(i,"voodoo:autosave",{data:w.data,status:w.status,form:i,state:s})}catch(w){zi(c,"error"),Wi(a,w)}finally{s.saving=!1}},p=be(()=>{d()},u),f=()=>{s.dirty=!0,p()};i.addEventListener("input",f),i.addEventListener("change",f),o(()=>{p.cancel(),i.removeEventListener("input",f),i.removeEventListener("change",f)})});b("guard",({el:e,expression:t,cleanup:n})=>{var l;let r=(l=e.tagName==="FORM"?e:e.closest("form"))!=null?l:e,o=zn(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},c=u=>{!o.dirty||o.loading||(u.preventDefault(),u.returnValue=i)};r.addEventListener("input",s),r.addEventListener("change",s),r.addEventListener("reset",a),r.addEventListener("voodoo:success",a),window.addEventListener("beforeunload",c),n(()=>{r.removeEventListener("input",s),r.removeEventListener("change",s),r.removeEventListener("reset",a),r.removeEventListener("voodoo:success",a),window.removeEventListener("beforeunload",c)})});ne();J();function Vn(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=oe(r)}catch(o){}return t}function nl(e,t){if(e.id)return`${t}:${location.pathname}:#${e.id}`;let n=[],r=e;for(;r&&r!==document.body;){let o=r.parentElement,i=o?Array.from(o.children).indexOf(r):0;n.unshift(`${r.tagName.toLowerCase()}${i}`),r=o}return`${t}:${location.pathname}:${n.join(">")}`}b("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:nl(e,"voodoo:persist"),i=Q.get(o);if(i&&typeof i=="object")for(let[c,l]of Object.entries(i))c in t.data&&(t.data[c]=l);let s=be(()=>{Q.set(o,Vn(t.data))},120),a=ve(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:P.DATA-1});b("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||nl(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,c=be(()=>{if(!a)try{i.postMessage({from:s,state:Vn(t.data)})}catch(u){z(u,"v-sync")}},60);i.addEventListener("message",u=>{let d=u.data;if(!(!d||d.from===s)){a=!0;for(let[p,f]of Object.entries(d.state))p in t.data&&t.data[p]!==f&&(t.data[p]=f);queueMicrotask(()=>{a=!1})}});let l=ve(t.data,()=>c(),{deep:!0});r(()=>{l(),i.close()})},{priority:P.DATA-1});var Ki=new WeakMap;function Yi(e){let t=e;for(;t;){let n=Ki.get(t);if(n)return n;t=t.parentElement}return null}b("history",({el:e,scope:t,expression:n,cleanup:r})=>{var f;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(Vn(t.data)))],s=0,a=!1,c=V({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,u())},redo(){s>=i.length-1||(s++,u())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(Vn(t.data)))),s=0,l()}});function l(){c.canUndo=s>0,c.canRedo=s<i.length-1,c.size=i.length}function u(){a=!0;let m=i[s];for(let[v,g]of Object.entries(m))t.data[v]=JSON.parse(JSON.stringify(g));l(),queueMicrotask(()=>{a=!1})}let d=be(()=>{if(a)return;let m=JSON.stringify(Vn(t.data));m!==JSON.stringify(i[s])&&(i.splice(s+1),i.push(JSON.parse(m)),i.length>o&&i.shift(),s=i.length-1,l())},U((f=e.getAttribute("v-history-debounce"))!=null?f:void 0,300)),p=ve(t.data,()=>d(),{deep:!0});Ki.set(e,c),t.set("$history",c),r(()=>{p(),d.cancel(),Ki.delete(e)})},{priority:P.DATA-1});b("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Yi(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Yi(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=Q.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{Q.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});H("$history",e=>e.el?Yi(e.el):null);J();var fn=null,dt=.35,Je=!1,rl=!1,Qi="voodoo:sound:volume",sl="voodoo:sound:muted";function Dt(){if(rl)return;rl=!0;let e=Q.get(Qi);typeof e=="number"&&e>=0&&e<=1&&(dt=e);let t=Q.get(sl);typeof t=="boolean"&&(Je=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&Q.get(Qi)===void 0&&(dt=.18)}function ol(){var t;if(typeof window=="undefined")return null;if(fn)return fn.state==="suspended"&&fn.resume(),fn;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return fn=new e,fn}catch(n){return null}}function il(e,t,n){var l,u,d,p;let r=e.currentTime+((l=t.atraso)!=null?l:0),o=r+t.duracao,i=e.createOscillator();i.type=(u=t.forma)!=null?u:"sine",i.frequency.setValueAtTime(t.frequencia,r),t.ate!==void 0&&t.ate!==t.frequencia&&i.frequency.exponentialRampToValueAtTime(Math.max(1,t.ate),o);let s=e.createGain(),a=dt*n*((d=t.volume)!=null?d:1),c=(p=t.ataque)!=null?p:.008;s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(Math.max(1e-4,a),r+c),s.gain.exponentialRampToValueAtTime(1e-4,o),i.connect(s),s.connect(e.destination),i.start(r),i.stop(o+.02)}var Jr={click:{volume:.5,camadas:[{frequencia:660,ate:440,duracao:.06,forma:"triangle"}]},pop:{volume:.5,camadas:[{frequencia:880,ate:1320,duracao:.07,forma:"sine"}]},hover:{volume:.22,camadas:[{frequencia:1200,duracao:.035,forma:"sine"}]},success:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:783.99,duracao:.18,forma:"sine",atraso:.09}]},complete:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:659.25,duracao:.1,forma:"sine",atraso:.09},{frequencia:1046.5,duracao:.22,forma:"sine",atraso:.18}]},error:{volume:.6,camadas:[{frequencia:392,duracao:.12,forma:"square",volume:.5},{frequencia:261.63,duracao:.24,forma:"square",volume:.5,atraso:.1}]},warning:{volume:.55,camadas:[{frequencia:587.33,duracao:.1,forma:"triangle"},{frequencia:587.33,duracao:.14,forma:"triangle",atraso:.14}]},notify:{volume:.5,camadas:[{frequencia:987.77,duracao:.14,forma:"sine"},{frequencia:1318.51,duracao:.3,forma:"sine",atraso:.08,volume:.6}]},type:{volume:.18,camadas:[{frequencia:2200,duracao:.018,forma:"square"}]},open:{volume:.4,camadas:[{frequencia:330,ate:660,duracao:.14,forma:"sine"}]},close:{volume:.4,camadas:[{frequencia:660,ate:330,duracao:.14,forma:"sine"}]},deny:{volume:.5,camadas:[{frequencia:220,duracao:.08,forma:"square",volume:.5},{frequencia:180,duracao:.12,forma:"square",volume:.5,atraso:.07}]},coin:{volume:.45,camadas:[{frequencia:987.77,duracao:.06,forma:"square"},{frequencia:1318.51,duracao:.16,forma:"square",atraso:.05}]},levelup:{volume:.55,camadas:[{frequencia:523.25,duracao:.08,forma:"square"},{frequencia:659.25,duracao:.08,forma:"square",atraso:.07},{frequencia:783.99,duracao:.08,forma:"square",atraso:.14},{frequencia:1046.5,duracao:.26,forma:"square",atraso:.21}]},drop:{volume:.5,camadas:[{frequencia:180,ate:90,duracao:.12,forma:"triangle"}]}},np={do:261.63,"do#":277.18,re:293.66,"re#":311.13,mi:329.63,fa:349.23,"fa#":369.99,sol:392,"sol#":415.3,la:440,"la#":466.16,si:493.88,c:261.63,d:293.66,e:329.63,f:349.23,g:392,a:440,b:493.88};function Zr(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=np[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var eo=new Map;function rp(e,t){let n=eo.get(e);n||(n=new Audio(e),n.preload="auto",eo.set(e,n)),n.volume=Math.max(0,Math.min(1,dt*t)),n.currentTime=0,n.play().catch(()=>{})}function al(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var ft={play(e,t={}){var c,l,u;if(Dt(),Je||!e)return;let n=String(e).trim(),r=(c=t.volume)!=null?c:1;if(al(n)){rp(n,r);return}let o=Jr[n];if(!o){let d=Zr(n);d!==null&&this.tone(d,200,{volume:r});return}let i=ol();if(!i)return;let s=(l=t.tom)!=null?l:1,a=((u=o.volume)!=null?u:1)*r;for(let d of o.camadas)il(i,s===1?d:{...d,frequencia:d.frequencia*s,ate:d.ate===void 0?void 0:d.ate*s},a)},tone(e,t=200,n={}){var o,i;if(Dt(),Je)return;let r=ol();r&&il(r,{frequencia:e,duracao:t/1e3,forma:(o=n.forma)!=null?o:"sine"},(i=n.volume)!=null?i:.5)},note(e,t=250,n={}){let r=Zr(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){Dt(),!Je&&e.forEach((r,o)=>{let i=typeof r=="number"?r:Zr(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return Dt(),e===void 0||(dt=Math.max(0,Math.min(1,e)),Q.set(Qi,dt)),dt},mute(e=!0){Dt(),Je=e,Q.set(sl,Je)},unmute(){this.mute(!1)},toggle(){return Dt(),this.mute(!Je),Je},get muted(){return Dt(),Je},get names(){return Object.keys(Jr)},define(e,t){Jr[e]=t},preload(...e){for(let t of e){if(eo.has(t))continue;let n=new Audio(t);n.preload="auto",eo.set(t,n)}}};b("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",c=()=>{let d=n.trim();if(!d)return"click";if(Jr[d]||al(d)||Zr(d)!==null)return d;let p=s();return typeof p=="string"?p:d},l=r.volume!==void 0?Number(r.volume):void 0,u=()=>{ft.play(c(),l===void 0?{}:{volume:l})};e.addEventListener(a,u),i(()=>e.removeEventListener(a,u))});b("mute",({el:e,cleanup:t})=>{let n=()=>{let o=ft.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o)},r=()=>{ft.toggle(),n(),ft.muted||ft.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});H("$sound",()=>ft);Te();J();Te();J();var op=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,ip=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,sp=/^rgba?\(([^)]+)\)$/i,ap=/^hsla?\(([^)]+)\)$/i;function cl(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function cp(e,t,n){let r=(e%360+360)%360,o=ye(t/100,0,1),i=ye(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),c=i-s/2,l=Math.floor(r/60)%6,u=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[d,p,f]=u[l];return{r:Math.round((d+c)*255),g:Math.round((p+c)*255),b:Math.round((f+c)*255)}}function Ve(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=op.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=ip.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=sp.exec(t);if(o){let[s,a,c]=cl(o[1]);return s===void 0||a===void 0||c===void 0?null:{r:ye(s,0,255),g:ye(a,0,255),b:ye(c,0,255)}}let i=ap.exec(t);if(i){let[s,a,c]=cl(i[1]);return s===void 0||a===void 0||c===void 0?null:cp(s,a,c)}return null}function ye(e,t,n){return e<t?t:e>n?n:e}function gn(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Gi(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function lp(e){let t=gn(e.r),n=gn(e.g),r=gn(e.b),o=.4122214708*t+.5363325363*n+.0514459929*r,i=.2119034982*t+.6806995451*n+.1073969566*r,s=.0883024619*t+.2817188376*n+.6299787005*r,a=Math.cbrt(o),c=Math.cbrt(i),l=Math.cbrt(s);return{l:.2104542553*a+.793617785*c-.0040720468*l,a:1.9779984951*a-2.428592205*c+.4505937099*l,b:.0259040371*a+.7827717662*c-.808675766*l}}function up(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,i=n*n*n,s=r*r*r;return{r:Gi(4.0767416621*o-3.3077115913*i+.2309699292*s),g:Gi(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:Gi(-.0041960863*o-.7034186147*i+1.707614701*s)}}function no(e){let t=lp(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 ll(e){let t=e.h*Math.PI/180;return up({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function mn(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=ll({l:ye(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(ye(o.r,0,1)*255),g:Math.round(ye(o.g,0,1)*255),b:Math.round(ye(o.b,0,1)*255)};t*=.92}let n=ll({l:ye(e.l,0,1),c:0,h:e.h});return{r:Math.round(ye(n.r,0,1)*255),g:Math.round(ye(n.g,0,1)*255),b:Math.round(ye(n.b,0,1)*255)}}function Xi(e){return ye(Math.round(e),0,255).toString(16).padStart(2,"0")}function Pt(e){return`#${Xi(e.r)}${Xi(e.g)}${Xi(e.b)}`}function pn(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function ml(e){return Pt(mn(e))}function Zi(e){return .2126*gn(e.r)+.7152*gn(e.g)+.0722*gn(e.b)}function es(e,t){let n=typeof e=="string"?Ve(e):e,r=typeof t=="string"?Ve(t):t;if(!n||!r)return 1;let o=Zi(n),i=Zi(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var gl={r:255,g:255,b:255},ro={r:0,g:0,b:0};function _n(e){let t=typeof e=="string"?Ve(e):e;return t?es(t,gl)>=es(t,ro)?"#ffffff":"#000000":"#ffffff"}var ts=[50,100,200,300,400,500,600,700,800,900],vl=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],dp=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],hl=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],fp=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function yl(e,t=!1){var a;let n=typeof e=="string"?(a=Ve(e))!=null?a:ro:e,r=no(n),o=t?hl:vl,i=t?fp:dp,s={};return ts.forEach((c,l)=>{s[String(c)]=ml({l:o[l],c:r.c*i[l],h:r.h})}),s}var oo={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"}},bl=["primary","accent","success","warning","danger","info"],ns="voodoo:palette",ul="voodoo-palette",pp="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",mp="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function dl(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var gp=/^([\d.]+)(px|rem|em)$/;function vp(e){let t=(e||"12px").trim(),n=gp.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],i=s=>`${Math.round(s*1e3)/1e3}${o}`;return{"--v-radius":i(r),"--v-radius-sm":i(Math.max(r*.55,0)),"--v-radius-lg":i(r*1.5),"--v-radius-xl":i(r*2),"--v-radius-full":"999px"}}function fl(e,t){var l,u,d,p;let n={},r={},o={};for(let f of bl){let m=(l=Ve(e[f]))!=null?l:ro,v=no(m),g=yl(m,t);r[f]=g;for(let B of ts)n[`--v-${f}-${B}`]=g[String(B)];let h=t?{l:Math.max(v.l,.62),c:v.c*.95,h:v.h}:v,y=t?{l:Math.min(h.l+.07,.94),c:h.c*.95,h:h.h}:{l:Math.max(h.l-.055,.12),c:h.c,h:h.h},w=t?{l:Math.min(h.l+.13,.97),c:h.c*.88,h:h.h}:{l:Math.max(h.l-.105,.1),c:h.c,h:h.h},T=mn(h),x=mn(y),M=mn(w);n[`--v-${f}`]=Pt(t?T:m),n[`--v-${f}-hover`]=Pt(x),n[`--v-${f}-active`]=Pt(M),n[`--v-${f}-contrast`]=_n(t?T:m),n[`--v-${f}-contrast-hover`]=_n(x),n[`--v-${f}-contrast-active`]=_n(M);let N=g[50],R=g[100],ae=t?g[800]:g[700];n[`--v-${f}-soft`]=N,n[`--v-${f}-soft-hover`]=R,n[`--v-${f}-soft-text`]=ae,n[`--v-${f}-ring`]=pn(T,t?.45:.32),n[`--v-${f}-border`]=t?g[300]:g[200],o[f]=n[`--v-${f}-contrast`]}let i=(d=Ve((u=e.neutral)!=null?u:e.primary))!=null?d:ro,s=no(i).h,a=(f,m)=>ml({l:f,c:m,h:s}),c={};if(ts.forEach((f,m)=>{let v=t?hl:vl;c[String(f)]=a(v[m],.012),n[`--v-neutral-${f}`]=c[String(f)]}),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 f=mn({l:.24,c:.028,h:s});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"]=Pt(f),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"]=pn(f,.45),n["--v-shadow-sm"]=`0 1px 2px ${pn(f,.08)}`,n["--v-shadow"]=`0 10px 30px ${pn(f,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${pn(f,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=_n((p=Ve(n["--v-surface"]))!=null?p:gl),{vars:n,scales:r,contrast:o}}function Ji(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
315
+ `;function _n(){se(),G("forms-ajax",Jf)}function dt(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Xr(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=O(i.trim(),t,`${E.prefix}submit`);return s==null?o:String(s)}));let r=E.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function Wi(e){var r;if(!e||typeof e!="object")return"";let t=e,n=(r=t.message)!=null?r:t.mensagem;return typeof n=="string"?n:""}function Ki(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>Ki(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))Ki(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function Zf(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function nl(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var Ui=new WeakMap;function rl(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=Ui.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}Ui.has(e)||Ui.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function Qr(e,t){let{host:n,form:r,state:o}=e;o.loading=t,r.classList.toggle("v-loading",t),r.setAttribute("aria-busy",t?"true":"false");let i=ae(n,"loading-class");if(i)for(let a of i.split(/\s+/).filter(Boolean))r.classList.toggle(a,t);if(Gr(n,"disable-loading"))for(let a of Zf(r))a.disabled=t;let s=ae(n,"loading");if(s){let a=nl(s);a&&rl(a,t)}}function Jr(e,t,n,r){let o=ae(e.host,t);if(!o)return;let i=e.scope.child({$data:n,$response:r,$form:e.state,$el:e.host}),s=O(o,i,`${E.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function ep(e,t){let n=ae(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){Y(`${E.prefix}target destination not found: ${n}`);return}let o=(ae(e.host,"swap")||"innerHTML").trim().toLowerCase();if(o==="none")return;if(o==="text"){r.textContent=t;return}let i=document.createElement("template");i.innerHTML=t;let s=Array.from(i.content.childNodes),a=Ce(r);switch(o){case"inner":case"innerhtml":for(let c of Array.from(r.children))q(c);r.textContent="",r.append(...s);break;case"afterbegin":case"prepend":r.prepend(...s);break;case"beforeend":case"append":r.append(...s);break;case"beforebegin":r.before(...s);break;case"afterend":r.after(...s);break;case"outer":case"outerhtml":case"replace":q(r),r.replaceWith(...s);break;default:Y(`Unknown mode in ${E.prefix}swap: ${o}`);return}for(let c of s)c.nodeType===1&&W(c,a)}function ol(e,t,n){var c;let{state:r,form:o,host:i}=e;r.success=!0,r.errors={},r.data=t,r.status=n,r.dirty=!1,r.message=Wi(t),ep(e,t),Gr(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),zn(o));let s=ae(i,"toast-success");s!==null&&Re.success(s||r.message||"All set!"),Jr(e,"on-success",t,{status:n}),dt(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=ae(i,"redirect");if(a!==null&&typeof window!="undefined"){let l=t&&typeof t=="object"?(c=t.redirect)!=null?c:t.url:null,u=e.scope.child({$data:t,$form:r}),d=a?Xr(a,u):String(l!=null?l:"");d&&window.location.assign(d)}}function Yi(e,t){var l,u;let{state:n,form:r,host:o}=e,i=t instanceof ne?t:new ne(t instanceof Error?t.message:String(t)),s=(u=(l=i.response)==null?void 0:l.data)!=null?u:null;n.success=!1,n.data=s,n.status=i.status,n.message=Wi(s)||i.message;let a=Ii(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Vr(r,s),ji(r));let c=ae(o,"toast-error");c!==null&&Re.error(c||Wi(s)||"Could not submit the form."),Jr(e,"on-error",s,i),dt(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function il(e,t){Jr(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),dt(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function tp(e,t){let{host:n,form:r,state:o,scope:i}=e;if(o.loading)return;let s=ae(n,"confirm");if(s!==null&&typeof window!="undefined"&&!window.confirm(s||"Confirm this action?"))return;if(Zc(r)){zn(r);let p=await zi(r);if(o.errors=p.errors,!p.valid){ji(r),dt(r,"voodoo:invalid",{errors:p.errors,form:r,state:o});return}}let a=(ae(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),c=Xr(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),l=ln(r,{formData:Gr(n,"form-data")}),u=a==="GET"||a==="HEAD";Qr(e,!0),o.success=!1,o.progress=0,dt(r,"voodoo:submit",{url:c,method:a,form:r,state:o});let d=!1;try{let p=await st({url:c,method:a,body:u?void 0:l,params:u&&!(l instanceof FormData)?Ki(l):void 0});d=!0,ol(e,p.data,p.status)}catch(p){Yi(e,p)}finally{Qr(e,!1),il(e,d)}}b("submit",({el:e,scope:t,expression:n,cleanup:r})=>{_n();let o=e,i=Un(o),s=t.child({$form:i},o);Vi.set(s,i),Vi.set(t,i),ot(o,s);for(let u of Array.from(o.childNodes))u.nodeType===1&&ot(u,s);let a={host:o,form:o,scope:s,state:i},c=u=>{u.preventDefault(),tp(a,n)},l=u=>{var f;let d=u.detail;if(!d||!d.field)return;let p={...i.errors};d.valid?delete p[d.field]:p[d.field]=(f=d.message)!=null?f:"",i.errors=p};o.addEventListener("submit",c),o.addEventListener("voodoo:field-validated",l),r(()=>{un.delete(o),o.removeEventListener("submit",c),o.removeEventListener("voodoo:field-validated",l)})},{priority:P.DATA-1});function np(e){let t=ae(e,"progress");if(t){let o=document.querySelector(t);return o||(Y(`${E.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;_n();let r=document.createElement("div");return r.className="v-progress",r.setAttribute("role","progressbar"),r.setAttribute("aria-valuemin","0"),r.setAttribute("aria-valuemax","100"),r.innerHTML='<span class="v-progress-bar"></span>',e.insertAdjacentElement("afterend",r),r}function Yr(e,t,n){if(!e)return;let r=Math.max(0,Math.min(100,Math.round(t)));if(e.tagName==="PROGRESS")e.value=r,e.max=100;else{let o=e.classList.contains("v-progress-bar")?e:e.querySelector(".v-progress-bar, [data-progress-bar]");o?o.style.width=`${r}%`:e.style.width=`${r}%`}e.setAttribute("aria-valuenow",String(r)),n?e.setAttribute("data-state",n):e.removeAttribute("data-state")}function rp(e,t,n){let r=new FormData,i=t.length>1||n.endsWith("[]")?n.endsWith("[]")?n:`${n}[]`:n;for(let a of t)r.append(i,a);let s=e.closest("form");if(s){let a=ln(s,{formData:!0});if(a instanceof FormData)for(let[c,l]of a.entries())l instanceof File||r.append(c,l)}return r}async function sl(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=Xr(t,e.scope);if(!a){Y(`${E.prefix}upload needs a destination URL.`);return}let c=np(s),l=rp(s,n,r);Qr(e,!0),o.success=!1,o.progress=0,Yr(c,0,"loading"),dt(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let u=!1;try{let d=(ae(s,"method")||"POST").trim().toUpperCase(),p=await me.upload(a,l,{method:d==="PUT"||d==="PATCH"?d:"POST",onProgress:f=>{o.progress=f,Yr(c,f,"loading"),dt(i,"voodoo:progress",{percent:f,form:i,state:o})}});u=!0,o.progress=100,Yr(c,100,"done"),ol(e,p,200)}catch(d){Yr(c,o.progress,"error"),Yi(e,d)}finally{Qr(e,!1),il(e,u)}}b("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var l;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){Y(`${E.prefix}upload needs an <input type="file">.`);return}_n();let i=(l=o.closest("form"))!=null?l:o,s=Un(i),a={host:o,form:i,scope:t,state:s},c=()=>{var d;let u=Array.from((d=o.files)!=null?d:[]);u.length&&sl(a,n,u,o.name||"file")};o.addEventListener("change",c),r(()=>o.removeEventListener("change",c))});b("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var y,w,T;_n(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(y=e.textContent)!=null&&y.trim()||(e.textContent="Drag files here or click to choose");let o=(w=e.closest("form"))!=null?w:e,i=Un(o),s={host:e,form:o,scope:t,state:i},a=ae(e,"field")||"file",c=document.createElement("input");c.type="file",c.hidden=!0,c.tabIndex=-1,e.hasAttribute("accept")&&(c.accept=(T=e.getAttribute("accept"))!=null?T:""),e.hasAttribute("multiple")&&(c.multiple=!0),e.appendChild(c);let l=x=>{x.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),sl(s,n,x,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},u=0,d=x=>{x.preventDefault(),u++,e.classList.add("v-dropzone-over")},p=x=>{x.preventDefault(),x.dataTransfer&&(x.dataTransfer.dropEffect="copy")},f=()=>{u=Math.max(0,u-1),u===0&&e.classList.remove("v-dropzone-over")},m=x=>{var N,R;x.preventDefault(),u=0,e.classList.remove("v-dropzone-over");let C=Array.from((R=(N=x.dataTransfer)==null?void 0:N.files)!=null?R:[]);l(c.multiple?C:C.slice(0,1))},v=x=>{x.target!==c&&c.click()},g=x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),c.click())},h=()=>{var C;let x=Array.from((C=c.files)!=null?C:[]);l(x),c.value=""};e.addEventListener("dragenter",d),e.addEventListener("dragover",p),e.addEventListener("dragleave",f),e.addEventListener("drop",m),e.addEventListener("click",v),e.addEventListener("keydown",g),c.addEventListener("change",h),r(()=>{e.removeEventListener("dragenter",d),e.removeEventListener("dragover",p),e.removeEventListener("dragleave",f),e.removeEventListener("drop",m),e.removeEventListener("click",v),e.removeEventListener("keydown",g),c.removeEventListener("change",h),c.remove()})});var op={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function ip(e){let t=ae(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;Y(`${E.prefix}autosave-status element not found: ${t}`)}let n=e.querySelector(".v-autosave-status");if(n)return n;let r=document.createElement("span");return r.className="v-autosave-status",r.setAttribute("aria-live","polite"),e.appendChild(r),r}function _i(e,t){e.setAttribute("data-state",t),e.textContent=op[t]}b("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,v,g;_n();let i=e,s=Un(i),a={host:i,form:i,scope:t,state:s},c=ip(i),l=(g=(v=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(h=>/^[\d.]+(ms|s|m)?$/.test(h)))!=null?v:ae(i,"autosave-delay"))!=null?g:1e3,u=_(l,1e3),d=async()=>{let h=Xr(n,t);if(!h){Y(`${E.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,_i(c,"saving");let y=(ae(i,"method")||"POST").trim().toUpperCase();try{let w=await st({url:h,method:y,body:ln(i,{formData:Gr(i,"form-data")})});s.data=w.data,s.status=w.status,s.dirty=!1,s.success=!0,_i(c,"saved"),Jr(a,"on-success",w.data,{status:w.status}),dt(i,"voodoo:autosave",{data:w.data,status:w.status,form:i,state:s})}catch(w){_i(c,"error"),Yi(a,w)}finally{s.saving=!1}},p=be(()=>{d()},u),f=()=>{s.dirty=!0,p()};i.addEventListener("input",f),i.addEventListener("change",f),o(()=>{p.cancel(),i.removeEventListener("input",f),i.removeEventListener("change",f)})});b("guard",({el:e,expression:t,cleanup:n})=>{var l;let r=(l=e.tagName==="FORM"?e:e.closest("form"))!=null?l:e,o=Un(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},c=u=>{!o.dirty||o.loading||(u.preventDefault(),u.returnValue=i)};r.addEventListener("input",s),r.addEventListener("change",s),r.addEventListener("reset",a),r.addEventListener("voodoo:success",a),window.addEventListener("beforeunload",c),n(()=>{r.removeEventListener("input",s),r.removeEventListener("change",s),r.removeEventListener("reset",a),r.removeEventListener("voodoo:success",a),window.removeEventListener("beforeunload",c)})});re();Z();function Vn(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=ie(r)}catch(o){}return t}function al(e,t){if(e.id)return`${t}:${location.pathname}:#${e.id}`;let n=[],r=e;for(;r&&r!==document.body;){let o=r.parentElement,i=o?Array.from(o.children).indexOf(r):0;n.unshift(`${r.tagName.toLowerCase()}${i}`),r=o}return`${t}:${location.pathname}:${n.join(">")}`}b("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:al(e,"voodoo:persist"),i=Q.get(o);if(i&&typeof i=="object")for(let[c,l]of Object.entries(i))c in t.data&&(t.data[c]=l);let s=be(()=>{Q.set(o,Vn(t.data))},120),a=ve(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:P.DATA-1});b("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||al(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,c=be(()=>{if(!a)try{i.postMessage({from:s,state:Vn(t.data)})}catch(u){z(u,"v-sync")}},60);i.addEventListener("message",u=>{let d=u.data;if(!(!d||d.from===s)){a=!0;for(let[p,f]of Object.entries(d.state))p in t.data&&t.data[p]!==f&&(t.data[p]=f);queueMicrotask(()=>{a=!1})}});let l=ve(t.data,()=>c(),{deep:!0});r(()=>{l(),i.close()})},{priority:P.DATA-1});var Qi=new WeakMap;function Gi(e){let t=e;for(;t;){let n=Qi.get(t);if(n)return n;t=t.parentElement}return null}b("history",({el:e,scope:t,expression:n,cleanup:r})=>{var f;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(Vn(t.data)))],s=0,a=!1,c=V({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,u())},redo(){s>=i.length-1||(s++,u())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(Vn(t.data)))),s=0,l()}});function l(){c.canUndo=s>0,c.canRedo=s<i.length-1,c.size=i.length}function u(){a=!0;let m=i[s];for(let[v,g]of Object.entries(m))t.data[v]=JSON.parse(JSON.stringify(g));l(),queueMicrotask(()=>{a=!1})}let d=be(()=>{if(a)return;let m=JSON.stringify(Vn(t.data));m!==JSON.stringify(i[s])&&(i.splice(s+1),i.push(JSON.parse(m)),i.length>o&&i.shift(),s=i.length-1,l())},_((f=e.getAttribute("v-history-debounce"))!=null?f:void 0,300)),p=ve(t.data,()=>d(),{deep:!0});Qi.set(e,c),t.set("$history",c),r(()=>{p(),d.cancel(),Qi.delete(e)})},{priority:P.DATA-1});b("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Gi(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Gi(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=Q.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{Q.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});H("$history",e=>e.el?Gi(e.el):null);Z();var fn=null,ft=.35,et=!1,cl=!1,Xi="voodoo:sound:volume",dl="voodoo:sound:muted";function Dt(){if(cl)return;cl=!0;let e=Q.get(Xi);typeof e=="number"&&e>=0&&e<=1&&(ft=e);let t=Q.get(dl);typeof t=="boolean"&&(et=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&Q.get(Xi)===void 0&&(ft=.18)}function ll(){var t;if(typeof window=="undefined")return null;if(fn)return fn.state==="suspended"&&fn.resume(),fn;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return fn=new e,fn}catch(n){return null}}function ul(e,t,n){var l,u,d,p;let r=e.currentTime+((l=t.atraso)!=null?l:0),o=r+t.duracao,i=e.createOscillator();i.type=(u=t.forma)!=null?u:"sine",i.frequency.setValueAtTime(t.frequencia,r),t.ate!==void 0&&t.ate!==t.frequencia&&i.frequency.exponentialRampToValueAtTime(Math.max(1,t.ate),o);let s=e.createGain(),a=ft*n*((d=t.volume)!=null?d:1),c=(p=t.ataque)!=null?p:.008;s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(Math.max(1e-4,a),r+c),s.gain.exponentialRampToValueAtTime(1e-4,o),i.connect(s),s.connect(e.destination),i.start(r),i.stop(o+.02)}var Zr={click:{volume:.5,camadas:[{frequencia:660,ate:440,duracao:.06,forma:"triangle"}]},pop:{volume:.5,camadas:[{frequencia:880,ate:1320,duracao:.07,forma:"sine"}]},hover:{volume:.22,camadas:[{frequencia:1200,duracao:.035,forma:"sine"}]},success:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:783.99,duracao:.18,forma:"sine",atraso:.09}]},complete:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:659.25,duracao:.1,forma:"sine",atraso:.09},{frequencia:1046.5,duracao:.22,forma:"sine",atraso:.18}]},error:{volume:.6,camadas:[{frequencia:392,duracao:.12,forma:"square",volume:.5},{frequencia:261.63,duracao:.24,forma:"square",volume:.5,atraso:.1}]},warning:{volume:.55,camadas:[{frequencia:587.33,duracao:.1,forma:"triangle"},{frequencia:587.33,duracao:.14,forma:"triangle",atraso:.14}]},notify:{volume:.5,camadas:[{frequencia:987.77,duracao:.14,forma:"sine"},{frequencia:1318.51,duracao:.3,forma:"sine",atraso:.08,volume:.6}]},type:{volume:.18,camadas:[{frequencia:2200,duracao:.018,forma:"square"}]},open:{volume:.4,camadas:[{frequencia:330,ate:660,duracao:.14,forma:"sine"}]},close:{volume:.4,camadas:[{frequencia:660,ate:330,duracao:.14,forma:"sine"}]},deny:{volume:.5,camadas:[{frequencia:220,duracao:.08,forma:"square",volume:.5},{frequencia:180,duracao:.12,forma:"square",volume:.5,atraso:.07}]},coin:{volume:.45,camadas:[{frequencia:987.77,duracao:.06,forma:"square"},{frequencia:1318.51,duracao:.16,forma:"square",atraso:.05}]},levelup:{volume:.55,camadas:[{frequencia:523.25,duracao:.08,forma:"square"},{frequencia:659.25,duracao:.08,forma:"square",atraso:.07},{frequencia:783.99,duracao:.08,forma:"square",atraso:.14},{frequencia:1046.5,duracao:.26,forma:"square",atraso:.21}]},drop:{volume:.5,camadas:[{frequencia:180,ate:90,duracao:.12,forma:"triangle"}]}},sp={do:261.63,"do#":277.18,re:293.66,"re#":311.13,mi:329.63,fa:349.23,"fa#":369.99,sol:392,"sol#":415.3,la:440,"la#":466.16,si:493.88,c:261.63,d:293.66,e:329.63,f:349.23,g:392,a:440,b:493.88};function eo(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=sp[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var to=new Map;function ap(e,t){let n=to.get(e);n||(n=new Audio(e),n.preload="auto",to.set(e,n)),n.volume=Math.max(0,Math.min(1,ft*t)),n.currentTime=0,n.play().catch(()=>{})}function fl(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var pt={play(e,t={}){var c,l,u;if(Dt(),et||!e)return;let n=String(e).trim(),r=(c=t.volume)!=null?c:1;if(fl(n)){ap(n,r);return}let o=Zr[n];if(!o){let d=eo(n);d!==null&&this.tone(d,200,{volume:r});return}let i=ll();if(!i)return;let s=(l=t.tom)!=null?l:1,a=((u=o.volume)!=null?u:1)*r;for(let d of o.camadas)ul(i,s===1?d:{...d,frequencia:d.frequencia*s,ate:d.ate===void 0?void 0:d.ate*s},a)},tone(e,t=200,n={}){var o,i;if(Dt(),et)return;let r=ll();r&&ul(r,{frequencia:e,duracao:t/1e3,forma:(o=n.forma)!=null?o:"sine"},(i=n.volume)!=null?i:.5)},note(e,t=250,n={}){let r=eo(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){Dt(),!et&&e.forEach((r,o)=>{let i=typeof r=="number"?r:eo(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return Dt(),e===void 0||(ft=Math.max(0,Math.min(1,e)),Q.set(Xi,ft)),ft},mute(e=!0){Dt(),et=e,Q.set(dl,et)},unmute(){this.mute(!1)},toggle(){return Dt(),this.mute(!et),et},get muted(){return Dt(),et},get names(){return Object.keys(Zr)},define(e,t){Zr[e]=t},preload(...e){for(let t of e){if(to.has(t))continue;let n=new Audio(t);n.preload="auto",to.set(t,n)}}};b("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",c=()=>{let d=n.trim();if(!d)return"click";if(Zr[d]||fl(d)||eo(d)!==null)return d;let p=s();return typeof p=="string"?p:d},l=r.volume!==void 0?Number(r.volume):void 0,u=()=>{pt.play(c(),l===void 0?{}:{volume:l})};e.addEventListener(a,u),i(()=>e.removeEventListener(a,u))});b("mute",({el:e,cleanup:t})=>{let n=()=>{let o=pt.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o)},r=()=>{pt.toggle(),n(),pt.muted||pt.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});H("$sound",()=>pt);Te();Z();Te();Z();var cp=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,lp=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,up=/^rgba?\(([^)]+)\)$/i,dp=/^hsla?\(([^)]+)\)$/i;function pl(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function fp(e,t,n){let r=(e%360+360)%360,o=ye(t/100,0,1),i=ye(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),c=i-s/2,l=Math.floor(r/60)%6,u=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[d,p,f]=u[l];return{r:Math.round((d+c)*255),g:Math.round((p+c)*255),b:Math.round((f+c)*255)}}function _e(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=cp.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=lp.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=up.exec(t);if(o){let[s,a,c]=pl(o[1]);return s===void 0||a===void 0||c===void 0?null:{r:ye(s,0,255),g:ye(a,0,255),b:ye(c,0,255)}}let i=dp.exec(t);if(i){let[s,a,c]=pl(i[1]);return s===void 0||a===void 0||c===void 0?null:fp(s,a,c)}return null}function ye(e,t,n){return e<t?t:e>n?n:e}function gn(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ji(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function pp(e){let t=gn(e.r),n=gn(e.g),r=gn(e.b),o=.4122214708*t+.5363325363*n+.0514459929*r,i=.2119034982*t+.6806995451*n+.1073969566*r,s=.0883024619*t+.2817188376*n+.6299787005*r,a=Math.cbrt(o),c=Math.cbrt(i),l=Math.cbrt(s);return{l:.2104542553*a+.793617785*c-.0040720468*l,a:1.9779984951*a-2.428592205*c+.4505937099*l,b:.0259040371*a+.7827717662*c-.808675766*l}}function mp(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,i=n*n*n,s=r*r*r;return{r:Ji(4.0767416621*o-3.3077115913*i+.2309699292*s),g:Ji(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:Ji(-.0041960863*o-.7034186147*i+1.707614701*s)}}function ro(e){let t=pp(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 ml(e){let t=e.h*Math.PI/180;return mp({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function mn(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=ml({l:ye(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(ye(o.r,0,1)*255),g:Math.round(ye(o.g,0,1)*255),b:Math.round(ye(o.b,0,1)*255)};t*=.92}let n=ml({l:ye(e.l,0,1),c:0,h:e.h});return{r:Math.round(ye(n.r,0,1)*255),g:Math.round(ye(n.g,0,1)*255),b:Math.round(ye(n.b,0,1)*255)}}function Zi(e){return ye(Math.round(e),0,255).toString(16).padStart(2,"0")}function Pt(e){return`#${Zi(e.r)}${Zi(e.g)}${Zi(e.b)}`}function pn(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function bl(e){return Pt(mn(e))}function ts(e){return .2126*gn(e.r)+.7152*gn(e.g)+.0722*gn(e.b)}function ns(e,t){let n=typeof e=="string"?_e(e):e,r=typeof t=="string"?_e(t):t;if(!n||!r)return 1;let o=ts(n),i=ts(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var wl={r:255,g:255,b:255},oo={r:0,g:0,b:0};function Wn(e){let t=typeof e=="string"?_e(e):e;return t?ns(t,wl)>=ns(t,oo)?"#ffffff":"#000000":"#ffffff"}var rs=[50,100,200,300,400,500,600,700,800,900],El=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],gp=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],xl=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],vp=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function Tl(e,t=!1){var a;let n=typeof e=="string"?(a=_e(e))!=null?a:oo:e,r=ro(n),o=t?xl:El,i=t?vp:gp,s={};return rs.forEach((c,l)=>{s[String(c)]=bl({l:o[l],c:r.c*i[l],h:r.h})}),s}var io={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"}},kl=["primary","accent","success","warning","danger","info"],os="voodoo:palette",gl="voodoo-palette",hp="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",yp="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function vl(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var bp=/^([\d.]+)(px|rem|em)$/;function wp(e){let t=(e||"12px").trim(),n=bp.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],i=s=>`${Math.round(s*1e3)/1e3}${o}`;return{"--v-radius":i(r),"--v-radius-sm":i(Math.max(r*.55,0)),"--v-radius-lg":i(r*1.5),"--v-radius-xl":i(r*2),"--v-radius-full":"999px"}}function hl(e,t){var l,u,d,p;let n={},r={},o={};for(let f of kl){let m=(l=_e(e[f]))!=null?l:oo,v=ro(m),g=Tl(m,t);r[f]=g;for(let B of rs)n[`--v-${f}-${B}`]=g[String(B)];let h=t?{l:Math.max(v.l,.62),c:v.c*.95,h:v.h}:v,y=t?{l:Math.min(h.l+.07,.94),c:h.c*.95,h:h.h}:{l:Math.max(h.l-.055,.12),c:h.c,h:h.h},w=t?{l:Math.min(h.l+.13,.97),c:h.c*.88,h:h.h}:{l:Math.max(h.l-.105,.1),c:h.c,h:h.h},T=mn(h),x=mn(y),C=mn(w);n[`--v-${f}`]=Pt(t?T:m),n[`--v-${f}-hover`]=Pt(x),n[`--v-${f}-active`]=Pt(C),n[`--v-${f}-contrast`]=Wn(t?T:m),n[`--v-${f}-contrast-hover`]=Wn(x),n[`--v-${f}-contrast-active`]=Wn(C);let N=g[50],R=g[100],ce=t?g[800]:g[700];n[`--v-${f}-soft`]=N,n[`--v-${f}-soft-hover`]=R,n[`--v-${f}-soft-text`]=ce,n[`--v-${f}-ring`]=pn(T,t?.45:.32),n[`--v-${f}-border`]=t?g[300]:g[200],o[f]=n[`--v-${f}-contrast`]}let i=(d=_e((u=e.neutral)!=null?u:e.primary))!=null?d:oo,s=ro(i).h,a=(f,m)=>bl({l:f,c:m,h:s}),c={};if(rs.forEach((f,m)=>{let v=t?xl:El;c[String(f)]=a(v[m],.012),n[`--v-neutral-${f}`]=c[String(f)]}),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 f=mn({l:.24,c:.028,h:s});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"]=Pt(f),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"]=pn(f,.45),n["--v-shadow-sm"]=`0 1px 2px ${pn(f,.08)}`,n["--v-shadow"]=`0 10px 30px ${pn(f,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${pn(f,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=Wn((p=_e(n["--v-surface"]))!=null?p:wl),{vars:n,scales:r,contrast:o}}function es(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
316
316
  `);return`${e} {
317
317
  ${n}
318
- }`}var Kn=null,Wn=null;function hp(e){var r,o,i,s,a,c,l,u,d;let t=(r=oo[e.preset])!=null?r:oo.violeta,n={primary:(o=e.primary)!=null?o:t.primary,accent:(i=e.accent)!=null?i:t.accent,success:(s=e.success)!=null?s:t.success,warning:(a=e.warning)!=null?a:t.warning,danger:(c=e.danger)!=null?c:t.danger,info:(l=e.info)!=null?l:t.info,neutral:(u=e.neutral)!=null?u:t.neutral};for(let p of bl)Ve(n[p])||(console.warn(`[Voodoo] invalid color in palette.${p}: "${n[p]}". Using preset.`),n[p]=t[p]);return{colors:n,radius:(d=e.radius)!=null?d:"12px",font:dl(e.font,pp),mono:dl(e.monoFont,mp)}}function yp(e){if(typeof document=="undefined"||!E.injectStyles)return;ie();let t=document.getElementById(ul);t||(t=document.createElement("style"),t.id=ul,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function to(e={}){let{colors:t,radius:n,font:r,mono:o}=hp(e),i=fl(t,!1),s=fl(t,!0),a={...vp(n),"--v-font-sans":r,"--v-font-mono":o},c=["/* Palette generated by V.palette(). Do not edit manually. */",Ji(":root",{...a,...i.vars}),`@media (prefers-color-scheme: dark) {
319
- ${Ji(':root:not([data-theme="light"])',s.vars)}
320
- }`,Ji(':root[data-theme="dark"]',s.vars)].join(`
321
- `);yp(c);let l={colors:t,radius:n,font:r,monoFont:o,light:i.scales,dark:s.scales,contrast:i.contrast,css:c};if(Kn=l,Wn={...e},e.persist!==!1&&typeof document!="undefined"){let u={...e};delete u.persist,Q.set(ns,u)}return typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("voodoo:palette",{detail:l})),l}var pl=!1;function rs(){if(Kn&&pl)return Kn;pl=!0;let e=Q.get(ns),t=e&&typeof e=="object"?{...e,persist:!1}:{persist:!1};return to(t)}function os(){Kn||rs()}function wl(){return rs()}var El=Object.assign(to,{presets:oo,get names(){return Object.keys(oo)},get current(){return Kn},get options(){return Wn},init:rs,ensure:os,reset(){return Q.remove(ns),to({persist:!1})},use(e){return to({...Wn!=null?Wn:{},preset:e,primary:void 0,accent:void 0})},scale:yl,contrastText:_n,contrastRatio:es,luminance(e){let t=typeof e=="string"?Ve(e):e;return t?Zi(t):0},convert:{parseColor:Ve,rgbToOklch:no,oklchToRgb:mn,toHex:Pt,toRgba:pn}});var Ne={confirm:"Confirm",cancel:"Cancel",ok:"OK",close:"Close",confirmQuestion:"Are you sure?",required:"Please fill in this field."},as={duration:220,size:"md"},bp=`
318
+ }`}var Yn=null,Kn=null;function Ep(e){var r,o,i,s,a,c,l,u,d;let t=(r=io[e.preset])!=null?r:io.violeta,n={primary:(o=e.primary)!=null?o:t.primary,accent:(i=e.accent)!=null?i:t.accent,success:(s=e.success)!=null?s:t.success,warning:(a=e.warning)!=null?a:t.warning,danger:(c=e.danger)!=null?c:t.danger,info:(l=e.info)!=null?l:t.info,neutral:(u=e.neutral)!=null?u:t.neutral};for(let p of kl)_e(n[p])||(console.warn(`[Voodoo] invalid color in palette.${p}: "${n[p]}". Using preset.`),n[p]=t[p]);return{colors:n,radius:(d=e.radius)!=null?d:"12px",font:vl(e.font,hp),mono:vl(e.monoFont,yp)}}function xp(e){if(typeof document=="undefined"||!E.injectStyles)return;se();let t=document.getElementById(gl);t||(t=document.createElement("style"),t.id=gl,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function no(e={}){let{colors:t,radius:n,font:r,mono:o}=Ep(e),i=hl(t,!1),s=hl(t,!0),a={...wp(n),"--v-font-sans":r,"--v-font-mono":o},c=["/* Palette generated by V.palette(). Do not edit manually. */",es(":root",{...a,...i.vars}),`@media (prefers-color-scheme: dark) {
319
+ ${es(':root:not([data-theme="light"])',s.vars)}
320
+ }`,es(':root[data-theme="dark"]',s.vars)].join(`
321
+ `);xp(c);let l={colors:t,radius:n,font:r,monoFont:o,light:i.scales,dark:s.scales,contrast:i.contrast,css:c};if(Yn=l,Kn={...e},e.persist!==!1&&typeof document!="undefined"){let u={...e};delete u.persist,Q.set(os,u)}return typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("voodoo:palette",{detail:l})),l}var yl=!1;function is(){if(Yn&&yl)return Yn;yl=!0;let e=Q.get(os),t=e&&typeof e=="object"?{...e,persist:!1}:{persist:!1};return no(t)}function ss(){Yn||is()}function Ll(){return is()}var Al=Object.assign(no,{presets:io,get names(){return Object.keys(io)},get current(){return Yn},get options(){return Kn},init:is,ensure:ss,reset(){return Q.remove(os),no({persist:!1})},use(e){return no({...Kn!=null?Kn:{},preset:e,primary:void 0,accent:void 0})},scale:Tl,contrastText:Wn,contrastRatio:ns,luminance(e){let t=typeof e=="string"?_e(e):e;return t?ts(t):0},convert:{parseColor:_e,rgbToOklch:ro,oklchToRgb:mn,toHex:Pt,toRgba:pn}});var Ne={confirm:"Confirm",cancel:"Cancel",ok:"OK",close:"Close",confirmQuestion:"Are you sure?",required:"Please fill in this field."},ls={duration:220,size:"md"},Tp=`
322
322
  [v-modal-content]:not(.v-dialog-open),[data-v-modal-content]:not(.v-dialog-open){display:none}
323
323
 
324
324
  .v-dialog-root{position:fixed;inset:0;z-index:calc(var(--v-z-modal,1000) + var(--v-dialog-layer,0));
@@ -414,7 +414,7 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
414
414
  @media (prefers-reduced-motion: reduce){
415
415
  .v-dialog-backdrop,.v-dialog-panel{transition:none}
416
416
  }
417
- `;function co(){ie(),os(),G("dialog",bp)}var cs={info:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 7.6v.2"/></svg>',success:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m8.2 12.3 2.6 2.6 5-5.2"/></svg>',warning:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 4.6 2.9 19.4h18.2z"/><path d="M12 10v4M12 17.2v.2"/></svg>',danger:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m9 9 6 6M15 9l-6 6"/></svg>',question:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M9.6 9.4a2.4 2.4 0 1 1 3.2 2.3c-.6.2-.8.7-.8 1.3v.5M12 16.6v.2"/></svg>',close:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="m6 6 12 12M18 6 6 18"/></svg>'},Se=[],ls=new WeakMap,us=0,xl="",Tl="";function wp(){if(us++>0)return;let e=document.body;xl=e.style.overflow,Tl=e.style.paddingRight;let t=window.innerWidth-document.documentElement.clientWidth;if(e.style.overflow="hidden",t>0){let n=parseFloat(getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${n+t}px`}}function Ep(){us!==0&&(--us>0||(document.body.style.overflow=xl,document.body.style.paddingRight=Tl))}var xp='a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,[contenteditable="true"],[tabindex]:not([tabindex="-1"])';function ds(e){return Array.from(e.querySelectorAll(xp)).filter(t=>t.hasAttribute("disabled")||t.getAttribute("aria-hidden")==="true"?!1:t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0)}function fs(){return Se[Se.length-1]}function Tp(){return typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches}var ao=!1;function kl(e){let t=fs();if(!t)return;if(e.key==="Escape"){if(t.options.closeOnEscape===!1)return;e.preventDefault(),t.handle.close(void 0);return}if(e.key!=="Tab")return;let n=ds(t.handle.panel);if(!n.length){e.preventDefault(),t.handle.panel.focus();return}let r=n[0],o=n[n.length-1],i=document.activeElement;e.shiftKey&&(i===r||!t.handle.panel.contains(i))?(e.preventDefault(),o.focus()):!e.shiftKey&&i===o&&(e.preventDefault(),r.focus())}function Ll(e){var o;let t=fs();if(!t)return;let n=e.target;if(n&&t.handle.root.contains(n))return;((o=ds(t.handle.panel)[0])!=null?o:t.handle.panel).focus()}function kp(){ao||(ao=!0,document.addEventListener("keydown",kl,!0),document.addEventListener("focusin",Ll,!0))}function Lp(){ao&&(ao=!1,document.removeEventListener("keydown",kl,!0),document.removeEventListener("focusin",Ll,!0))}function Al(e){var p,f,m,v,g,h,y;co();let t=ue("v-dialog-"),n=Tp()?0:as.duration,r=document.createElement("div");r.className="v-dialog-root",r.id=t,r.setAttribute("data-size",(p=e.size)!=null?p:as.size),r.setAttribute("data-position",(f=e.position)!=null?f:"center"),r.style.setProperty("--v-dialog-ms",`${n}ms`),r.style.setProperty("--v-dialog-layer",String(Se.length*2));let o=document.createElement("div");o.className="v-dialog-backdrop",r.appendChild(o);let i=document.createElement("div");i.className="v-dialog-panel",e.plain&&i.classList.add("is-plain"),e.className&&i.classList.add(...e.className.split(/\s+/).filter(Boolean)),i.setAttribute("role",(m=e.role)!=null?m:"dialog"),i.setAttribute("aria-modal","true"),i.tabIndex=-1,e.labelledBy?i.setAttribute("aria-labelledby",e.labelledBy):e.ariaLabel&&i.setAttribute("aria-label",e.ariaLabel),e.describedBy&&i.setAttribute("aria-describedby",e.describedBy),r.appendChild(i);let s=document.createElement("div");if(s.className="v-dialog-body",e.source){let w=document.createComment(" v-modal ");(v=e.source.parentNode)==null||v.insertBefore(w,e.source),is.set(e.source,w),e.source.classList.add("v-dialog-open"),e.source.removeAttribute("hidden"),s.appendChild(e.source)}else e.content&&s.appendChild(e.content);if(i.appendChild(s),e.closable!==!1){let w=document.createElement("button");w.type="button",w.className="v-dialog-x",w.setAttribute("aria-label",Ne.close),w.innerHTML=cs.close,w.addEventListener("click",()=>u.close(void 0)),i.appendChild(w)}let a=!1,c=()=>{},l=new Promise(w=>{c=w}),u={id:t,root:r,panel:i,body:s,key:(g=e.key)!=null?g:null,source:(h=e.source)!=null?h:null,closed:l,close(w){if(a)return;a=!0;let T=Se.findIndex(M=>M.handle===u);T>-1&&Se.splice(T,1),ls.delete(r),d.locked&&Ep(),Se.length||Lp(),r.classList.remove("is-open"),r.classList.add("is-closing");let x=()=>{var N;let M=e.source;if(M){let R=is.get(M);M.classList.remove("v-dialog-open"),R&&R.parentNode?(R.parentNode.insertBefore(M,R),R.remove()):M.remove(),is.delete(M),Ko(M,"modal-content")&&M.setAttribute("hidden","")}if(r.remove(),(N=e.onClose)==null||N.call(e,w,u),c(w),e.restoreFocus!==!1){let R=d.previousFocus;R&&typeof R.focus=="function"&&R.isConnected&&R.focus()}};n>0?setTimeout(x,n):x()}},d={handle:u,options:e,previousFocus:document.activeElement,locked:e.lockScroll!==!1};return o.addEventListener("click",()=>{e.closeOnBackdrop!==!1&&u.close(void 0)}),d.locked&&wp(),Se.push(d),ls.set(r,d),kp(),document.body.appendChild(r),requestAnimationFrame(()=>{r.classList.add("is-open");let w=Ap(e,i);w==null||w.focus()}),(y=e.onOpen)==null||y.call(e,u),u}var is=new WeakMap;function Ap(e,t){var i;let n=e.initialFocus;if(n instanceof HTMLElement)return n;if(typeof n=="string"){let s=t.querySelector(n);if(s)return s}let r=t.querySelector("[autofocus],[data-autofocus]");return r||((i=ds(t)[0])!=null?i:t)}function Sp(e){if(e instanceof HTMLElement)return e;let t=String(e!=null?e:"").trim();if(!t)return null;let n=/^[\w-]+$/.test(t)?`#${t}`:t;return document.querySelector(n)}function io(e){return typeof e=="string"?e.trim()||null:e.id?`#${e.id}`:null}function so(e){let t=/^[\w-]+$/.test(e)?`#${e}`:e;return Se.find(n=>{var o;if(n.handle.key===e||n.handle.key===t)return!0;let r=n.handle.source;return!!r&&((o=r.matches)==null?void 0:o.call(r,t))})}var Nt={open(e,t={}){var s,a;let n=Sp(e);if(!n)return console.warn(`[Voodoo] modal.open: target not found (${String(e)}).`),null;let r=(s=io(e))!=null?s:n.id?`#${n.id}`:null,o=r?so(r):void 0;if(o)return o.handle;let i=n.querySelector("[data-dialog-title],h1,h2,h3");return i&&!i.id&&(i.id=ue("v-dialog-title-")),Al({...t,source:n,key:r,labelledBy:(a=i==null?void 0:i.id)!=null?a:null})},close(e,t){var o;if(e===void 0){(o=fs())==null||o.handle.close(t);return}let n=io(e),r=n?so(n):void 0;r==null||r.handle.close(t)},closeAll(e){for(let t of[...Se].reverse())t.handle.close(e)},toggle(e,t={}){let n=io(e),r=n?so(n):void 0;return r?(r.handle.close(void 0),null):this.open(e,t)},isOpen(e){if(e===void 0)return Se.length>0;let t=io(e);return!!(t&&so(t))},get opened(){return Se.map(e=>e.handle)},get count(){return Se.length},configure(e){Object.assign(as,e)},labels(e){return Object.assign(Ne,e),Ne}};function vn(e){var a,c;co();let t=document.createDocumentFragment(),n=e.title?ue("v-dialog-title-"):null,r=e.description?ue("v-dialog-desc-"):null,o=null;if(e.title||e.description||e.icon){o=document.createElement("div"),o.className="v-dialog-head";let l=e.icon&&e.icon!=="none"?e.icon:null;if(l&&cs[l]){let d=document.createElement("div");d.className="v-dialog-icon",d.setAttribute("aria-hidden","true"),d.setAttribute("data-tone",(a=e.tone)!=null?a:Mp(l)),d.innerHTML=cs[l],o.appendChild(d)}let u=document.createElement("div");if(u.className="v-dialog-heading",e.title){let d=document.createElement("h2");d.className="v-dialog-title",d.id=n,d.textContent=e.title,u.appendChild(d)}if(e.description){let d=document.createElement("p");d.className="v-dialog-desc",d.id=r,d.textContent=e.description,u.appendChild(d)}o.appendChild(u)}let i=document.createDocumentFragment();if(e.text)for(let l of e.text.split(`
418
- `)){let u=document.createElement("p");u.textContent=l,i.appendChild(u)}if(e.html){let l=document.createElement("div");for(l.innerHTML=e.html;l.firstChild;)i.appendChild(l.firstChild)}e.node&&i.appendChild(e.node),t.appendChild(i);let s=(c=e.buttons)!=null?c:[{label:Ne.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(l=>{var d;let u=Al({...e,content:t,role:e.tone==="danger"?"alertdialog":"dialog",labelledBy:n,describedBy:r,key:null,onClose(p){var f;(f=e.onClose)==null||f.call(e,p,u),l(p===void 0?null:p)}});if(o&&u.panel.insertBefore(o,u.body),s.length){let p=document.createElement("div");p.className="v-dialog-foot";for(let f of s){let m=document.createElement("button");m.type="button",m.className="v-dlg-btn",m.setAttribute("data-variant",(d=f.variant)!=null?d:"secondary"),m.textContent=f.label,f.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var g,h;((g=f.onClick)==null?void 0:g.call(f,u))!==!1&&f.close!==!1&&u.close((h=f.value)!=null?h:null)}),p.appendChild(m)}u.panel.appendChild(p)}u.body.childNodes.length||u.body.remove()})}function Mp(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function ps(e,t={}){var n;return vn({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:Ne.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function lo(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return vn({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:Ne.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:Ne.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function ms(e,t={}){var m,v,g,h;co();let n=(m=t.type)!=null?m:"text",r=ue("v-prompt-"),o=`${r}-hint`,i=`${r}-error`,s=document.createElement("div");s.className="v-dialog-field";let a=document.createElement("label");a.className="v-dialog-label",a.htmlFor=r,a.textContent=e,s.appendChild(a);let c=n==="textarea"?document.createElement("textarea"):document.createElement("input");if(c.className="v-dialog-input",c.id=r,c instanceof HTMLInputElement&&(c.type=n==="textarea"?"text":n),c.value=(v=t.value)!=null?v:"",t.placeholder&&(c.placeholder=t.placeholder),t.required&&(c.required=!0),c.setAttribute("data-autofocus",""),s.appendChild(c),t.hint){let y=document.createElement("p");y.className="v-dialog-hint",y.id=o,y.textContent=t.hint,s.appendChild(y),c.setAttribute("aria-describedby",o)}let l=document.createElement("p");l.className="v-dialog-error",l.id=i,l.hidden=!0,l.setAttribute("role","alert"),s.appendChild(l);let u=()=>n==="number"?c.value.trim():c.value,d=y=>{var x,M;let w=u(),T=null;return t.required&&!w.trim()?T=Ne.required:T=(M=(x=t.validate)==null?void 0:x.call(t,w))!=null?M:null,T?(l.textContent=T,l.hidden=!1,c.setAttribute("aria-invalid","true"),c.setAttribute("aria-describedby",i),c.focus(),!1):(l.hidden=!0,c.removeAttribute("aria-invalid"),y.close(w),!0)},p=null;return c.addEventListener("keydown",y=>{let w=y;w.key==="Enter"&&(n==="textarea"&&!w.ctrlKey&&!w.metaKey||(y.preventDefault(),p&&d(p)))}),vn({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(g=t.cancelLabel)!=null?g:Ne.cancel,value:null,variant:"secondary"},{label:(h=t.confirmLabel)!=null?h:Ne.confirm,variant:"primary",close:!1,onClick(y){return p=y,d(y),!1}}],onOpen(y){var w;p=y,(w=t.onOpen)==null||w.call(t,y)}}).then(y=>typeof y=="string"?y:null)}b("modal",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();e.setAttribute("aria-haspopup","dialog");let i=s=>{if(s.preventDefault(),n.close){Nt.close(o||void 0);return}if(n.toggle){o&&Nt.toggle(o);return}o&&Nt.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});b("modal-content",({el:e})=>{co(),e.id||(e.id=ue("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:P.REF});b("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?ls.get(i):void 0;s?s.handle.close(t.trim()||void 0):Nt.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var ss=!1;b("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||Ne.confirmQuestion,i=s=>{var d,p,f;if(ss)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,c=(d=xe(e,`${E.prefix}confirm-title`))!=null?d:void 0,l=(p=xe(e,`${E.prefix}confirm-label`))!=null?p:void 0,u=(f=xe(e,`${E.prefix}confirm-cancel`))!=null?f:void 0;lo(o,{title:c,confirmLabel:l,cancelLabel:u,danger:!!n.danger,size:"sm"}).then(m=>{if(m){ss=!0;try{a.click()}finally{ss=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:P.REF});H("$modal",()=>Nt);H("$dialog",()=>vn);H("$alert",()=>ps);H("$confirm",()=>lo);H("$prompt",()=>ms);ne();J();var Qn=new Map;function re(e,t){Qn.set(e.trim().toLowerCase(),t)}var Cp={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},Rp=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,Cl=new Set(["currency","percent"]);function $t(e,t){let n="",r=0;for(let o=0;o<t.length;o++){let i=t[o];if(i==="\\"){let a=t[++o];if(a===void 0||r>=e.length)break;n+=a;continue}let s=Cp[i];if(s){for(;r<e.length&&!s.test(e[r]);)r++;if(r>=e.length)break;n+=e[r++];continue}if(r>=e.length)break;e[r]===i&&r++,n+=i}return n}function fo(e,t={}){var v,g,h,y,w;let n=Math.max(0,Math.trunc((v=t.decimals)!=null?v:2)),r=(g=t.decimal)!=null?g:",",o=(h=t.thousands)!=null?h:".",i=(y=t.prefix)!=null?y:"R$ ",s=(w=t.suffix)!=null?w:"",a=String(e!=null?e:""),c=a.trim().startsWith("-"),l=a.replace(/\D/g,"").slice(0,15);if(!l)return"";let u=l.padStart(n+1,"0"),d=n?u.slice(0,u.length-n):u,p=n?u.slice(u.length-n):"",m=d.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${c?"-":""}${i}${m}${n?r+p:""}${s}`}function Rl(e,t=2){return fo(e,{prefix:"",suffix:"%",decimals:t})}re("cpf","999.999.999-99");re("cnpj","99.999.999/9999-99");re("cep","99999-999");re("date","99/99/9999");re("time","99:99");re("datetime","99/99/9999 99:99");re("cvv","9999");re("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return $t(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});re("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return $t(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});re("currency",e=>fo(e));re("percent",e=>Rl(e));re("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?$t(t,"9999 999999 99999"):t.length>16?$t(t,"9999 9999 9999 9999 999"):$t(t,"9999 9999 9999 9999")});re("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return $t(t,n?"AAA-9999":"AAA9A99")});re("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});re("ip",e=>{let t=e.replace(/[^\d.]/g,"").split(".").slice(0,4),n=[];for(let r of t){if(r===""){n.push("");continue}let o=Math.min(255,Number(r.slice(0,3)));n.push(String(o))}return n.join(".")});function Yn(e,t){let n=e==null?"":String(e);if(!t)return n;let r=Qn.get(t.trim().toLowerCase());return typeof r=="function"?r(n):$t(n,typeof r=="string"?r:t)}function po(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&Cl.has(r)){let o=n.trim().startsWith("-"),i=n.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!i)return"";let s=i.padStart(3,"0"),a=`${s.slice(0,s.length-2)}.${s.slice(s.length-2)}`;return o?`-${a}`:a}return n.replace(/[^0-9A-Za-zÀ-ÖØ-öø-ÿ]/g,"")}var Hl=Object.assign((e,t)=>Yn(e,t),{apply:Yn,unmask:po,register:re,currency:fo,percent:Rl,presets:Qn});function uo(e){return e!==void 0&&Rp.test(e)}function Sl(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)uo(e[o])&&n++;return n}function Ml(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(uo(e[r])&&(n++,n===t))return r+1;return e.length}var gs=new WeakSet;function Dl(e,t,n){var m;if(gs.has(e))return;gs.add(e);let r=Object.getPrototypeOf(e),o=(m=Object.getOwnPropertyDescriptor(r,"value"))!=null?m:Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),i=o==null?void 0:o.get,s=o==null?void 0:o.set,a=()=>{var v;return String(i?i.call(e):(v=e.getAttribute("value"))!=null?v:"")},c=v=>{s?s.call(e,v):e.setAttribute("value",v)},l=v=>{try{e.setSelectionRange(v,v)}catch(g){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let v=String(i.call(e));return t.clean?t.clean(v):v},set(v){s.call(e,t.format(v==null?"":String(v)))}}),n(()=>{let v=a();Reflect.deleteProperty(e,"value"),c(v)}));let u=()=>{var w,T;let v=a(),g=(w=e.selectionStart)!=null?w:v.length,h=Sl(v,g),y=t.format(v);y!==v&&c(y),t.rightToLeft?l(Math.max(0,y.length-((T=t.suffixLength)!=null?T:0))):l(Ml(y,h))},d=()=>u(),p=v=>{var M,N;if(v.key!=="Backspace")return;let g=(M=e.selectionStart)!=null?M:0,h=(N=e.selectionEnd)!=null?N:0;if(g!==h||g===0)return;let y=a();if(uo(y[g-1]))return;let w=g-1;for(;w>=0&&!uo(y[w]);)w--;if(v.preventDefault(),w<0)return;let T=y.slice(0,w)+y.slice(g),x=Sl(T,w);c(t.format(T)),l(Ml(a(),x)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",d),e.addEventListener("keydown",p),n(()=>{gs.delete(e),e.removeEventListener("input",d),e.removeEventListener("keydown",p)});let f=a();f&&c(t.format(f))}function Pl(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return Y(`${E.prefix}${t} only works on input or textarea.`),null;let n=e,r=(n.getAttribute("type")||"text").toLowerCase();return r==="number"||r==="range"||r==="date"||r==="color"?(Y(`${E.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}b("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=Pl(e,"mask");if(!o)return;let i=t.trim();if(!i){Y(`${E.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;Dl(o,{format:c=>Yn(c,i),clean:a?c=>po(c,s):void 0,rightToLeft:Cl.has(s),suffixLength:s==="percent"?1:0},r)},{priority:P.MODEL+5});b("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var p,f,m,v;let o=Pl(e,"mask-currency");if(!o)return;let i=g=>{var h;return(h=e.getAttribute(`${E.prefix}${g}`))!=null?h:e.getAttribute(`data-v-${g}`)},s=(p=typeof n.decimals=="string"?n.decimals:null)!=null?p:i("mask-decimals"),a=s!==null&&s!==""?Number(s):2,c=t.trim()?t:"",l={prefix:n.plain?"":c||i("mask-prefix")||"R$ ",suffix:(f=i("mask-suffix"))!=null?f:"",decimals:Number.isFinite(a)?a:2,decimal:n.dot?".":",",thousands:n.dot?",":"."},u=!!n.unmask||!!n.raw,d=(m=l.decimals)!=null?m:2;Dl(o,{format:g=>fo(g,l),clean:u?g=>{let h=g.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!h)return"";if(d===0)return h;let y=h.padStart(d+1,"0"),w=`${y.slice(0,y.length-d)}.${y.slice(y.length-d)}`;return g.trim().startsWith("-")?`-${w}`:w}:void 0,rightToLeft:!0,suffixLength:((v=l.suffix)!=null?v:"").length},r)},{priority:P.MODEL+5});var Nl=((e,t)=>vi(e,t));Object.assign(Nl,Ar,{query:vi,ready:hi,fromHtml:gc,Collection:Be,modal:Nt,alert:ps,confirm:lo,prompt:ms,dialog:vn,validator:I,validate:ji,validateForm:ji,serializeForm:ln,messages:Pe,showFormErrors:Vr,showFieldError:Ur,clearErrors:qn,mask:Hl,masks:Qn,applyMask:Yn,unmask:po,registerMask:re,palette:El,hotkey:$r,sound:ft,magic:H});var vs=Nl;J();function Hp(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 Dp(){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&&(E.prefix=n);let r=e.getAttribute("data-base-url");r&&(E.baseURL=r);let o=e.getAttribute("data-locale");return o&&(E.locale=o),Hp(e)&&(E.devtools=!0),e.hasAttribute("data-no-styles")&&(E.injectStyles=!1),e.hasAttribute("data-no-observer")&&(E.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(E.cleanAttributes=!1),{manual:t}}function Pp(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 $l(e){var o;if(typeof window=="undefined")return;let t=Dp(),n=window;if(n.V=e,n.Voodoo=e,pe.V=e,pe.Voodoo=e,E.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(E.baseURL),t.manual||!E.autoStart)return;pr(()=>{je.init(),wl(),e.start(),E.devtools&&Pp(e)})}$l(vs);var Np=vs;return Ul($p);})();
417
+ `;function lo(){se(),ss(),G("dialog",Tp)}var us={info:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 7.6v.2"/></svg>',success:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m8.2 12.3 2.6 2.6 5-5.2"/></svg>',warning:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 4.6 2.9 19.4h18.2z"/><path d="M12 10v4M12 17.2v.2"/></svg>',danger:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m9 9 6 6M15 9l-6 6"/></svg>',question:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M9.6 9.4a2.4 2.4 0 1 1 3.2 2.3c-.6.2-.8.7-.8 1.3v.5M12 16.6v.2"/></svg>',close:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="m6 6 12 12M18 6 6 18"/></svg>'},Se=[],ds=new WeakMap,fs=0,Sl="",Ml="";function kp(){if(fs++>0)return;let e=document.body;Sl=e.style.overflow,Ml=e.style.paddingRight;let t=window.innerWidth-document.documentElement.clientWidth;if(e.style.overflow="hidden",t>0){let n=parseFloat(getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${n+t}px`}}function Lp(){fs!==0&&(--fs>0||(document.body.style.overflow=Sl,document.body.style.paddingRight=Ml))}var Ap='a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,[contenteditable="true"],[tabindex]:not([tabindex="-1"])';function ps(e){return Array.from(e.querySelectorAll(Ap)).filter(t=>t.hasAttribute("disabled")||t.getAttribute("aria-hidden")==="true"?!1:t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0)}function ms(){return Se[Se.length-1]}function Sp(){return typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches}var co=!1;function Cl(e){let t=ms();if(!t)return;if(e.key==="Escape"){if(t.options.closeOnEscape===!1)return;e.preventDefault(),t.handle.close(void 0);return}if(e.key!=="Tab")return;let n=ps(t.handle.panel);if(!n.length){e.preventDefault(),t.handle.panel.focus();return}let r=n[0],o=n[n.length-1],i=document.activeElement;e.shiftKey&&(i===r||!t.handle.panel.contains(i))?(e.preventDefault(),o.focus()):!e.shiftKey&&i===o&&(e.preventDefault(),r.focus())}function Rl(e){var o;let t=ms();if(!t)return;let n=e.target;if(n&&t.handle.root.contains(n))return;((o=ps(t.handle.panel)[0])!=null?o:t.handle.panel).focus()}function Mp(){co||(co=!0,document.addEventListener("keydown",Cl,!0),document.addEventListener("focusin",Rl,!0))}function Cp(){co&&(co=!1,document.removeEventListener("keydown",Cl,!0),document.removeEventListener("focusin",Rl,!0))}function Hl(e){var p,f,m,v,g,h,y;lo();let t=ue("v-dialog-"),n=Sp()?0:ls.duration,r=document.createElement("div");r.className="v-dialog-root",r.id=t,r.setAttribute("data-size",(p=e.size)!=null?p:ls.size),r.setAttribute("data-position",(f=e.position)!=null?f:"center"),r.style.setProperty("--v-dialog-ms",`${n}ms`),r.style.setProperty("--v-dialog-layer",String(Se.length*2));let o=document.createElement("div");o.className="v-dialog-backdrop",r.appendChild(o);let i=document.createElement("div");i.className="v-dialog-panel",e.plain&&i.classList.add("is-plain"),e.className&&i.classList.add(...e.className.split(/\s+/).filter(Boolean)),i.setAttribute("role",(m=e.role)!=null?m:"dialog"),i.setAttribute("aria-modal","true"),i.tabIndex=-1,e.labelledBy?i.setAttribute("aria-labelledby",e.labelledBy):e.ariaLabel&&i.setAttribute("aria-label",e.ariaLabel),e.describedBy&&i.setAttribute("aria-describedby",e.describedBy),r.appendChild(i);let s=document.createElement("div");if(s.className="v-dialog-body",e.source){let w=document.createComment(" v-modal ");(v=e.source.parentNode)==null||v.insertBefore(w,e.source),as.set(e.source,w),e.source.classList.add("v-dialog-open"),e.source.removeAttribute("hidden"),s.appendChild(e.source)}else e.content&&s.appendChild(e.content);if(i.appendChild(s),e.closable!==!1){let w=document.createElement("button");w.type="button",w.className="v-dialog-x",w.setAttribute("aria-label",Ne.close),w.innerHTML=us.close,w.addEventListener("click",()=>u.close(void 0)),i.appendChild(w)}let a=!1,c=()=>{},l=new Promise(w=>{c=w}),u={id:t,root:r,panel:i,body:s,key:(g=e.key)!=null?g:null,source:(h=e.source)!=null?h:null,closed:l,close(w){if(a)return;a=!0;let T=Se.findIndex(C=>C.handle===u);T>-1&&Se.splice(T,1),ds.delete(r),d.locked&&Lp(),Se.length||Cp(),r.classList.remove("is-open"),r.classList.add("is-closing");let x=()=>{var N;let C=e.source;if(C){let R=as.get(C);C.classList.remove("v-dialog-open"),R&&R.parentNode?(R.parentNode.insertBefore(C,R),R.remove()):C.remove(),as.delete(C),Qo(C,"modal-content")&&C.setAttribute("hidden","")}if(r.remove(),(N=e.onClose)==null||N.call(e,w,u),c(w),e.restoreFocus!==!1){let R=d.previousFocus;R&&typeof R.focus=="function"&&R.isConnected&&R.focus()}};n>0?setTimeout(x,n):x()}},d={handle:u,options:e,previousFocus:document.activeElement,locked:e.lockScroll!==!1};return o.addEventListener("click",()=>{e.closeOnBackdrop!==!1&&u.close(void 0)}),d.locked&&kp(),Se.push(d),ds.set(r,d),Mp(),document.body.appendChild(r),requestAnimationFrame(()=>{r.classList.add("is-open");let w=Rp(e,i);w==null||w.focus()}),(y=e.onOpen)==null||y.call(e,u),u}var as=new WeakMap;function Rp(e,t){var i;let n=e.initialFocus;if(n instanceof HTMLElement)return n;if(typeof n=="string"){let s=t.querySelector(n);if(s)return s}let r=t.querySelector("[autofocus],[data-autofocus]");return r||((i=ps(t)[0])!=null?i:t)}function Hp(e){if(e instanceof HTMLElement)return e;let t=String(e!=null?e:"").trim();if(!t)return null;let n=/^[\w-]+$/.test(t)?`#${t}`:t;return document.querySelector(n)}function so(e){return typeof e=="string"?e.trim()||null:e.id?`#${e.id}`:null}function ao(e){let t=/^[\w-]+$/.test(e)?`#${e}`:e;return Se.find(n=>{var o;if(n.handle.key===e||n.handle.key===t)return!0;let r=n.handle.source;return!!r&&((o=r.matches)==null?void 0:o.call(r,t))})}var Nt={open(e,t={}){var s,a;let n=Hp(e);if(!n)return console.warn(`[Voodoo] modal.open: target not found (${String(e)}).`),null;let r=(s=so(e))!=null?s:n.id?`#${n.id}`:null,o=r?ao(r):void 0;if(o)return o.handle;let i=n.querySelector("[data-dialog-title],h1,h2,h3");return i&&!i.id&&(i.id=ue("v-dialog-title-")),Hl({...t,source:n,key:r,labelledBy:(a=i==null?void 0:i.id)!=null?a:null})},close(e,t){var o;if(e===void 0){(o=ms())==null||o.handle.close(t);return}let n=so(e),r=n?ao(n):void 0;r==null||r.handle.close(t)},closeAll(e){for(let t of[...Se].reverse())t.handle.close(e)},toggle(e,t={}){let n=so(e),r=n?ao(n):void 0;return r?(r.handle.close(void 0),null):this.open(e,t)},isOpen(e){if(e===void 0)return Se.length>0;let t=so(e);return!!(t&&ao(t))},get opened(){return Se.map(e=>e.handle)},get count(){return Se.length},configure(e){Object.assign(ls,e)},labels(e){return Object.assign(Ne,e),Ne}};function vn(e){var a,c;lo();let t=document.createDocumentFragment(),n=e.title?ue("v-dialog-title-"):null,r=e.description?ue("v-dialog-desc-"):null,o=null;if(e.title||e.description||e.icon){o=document.createElement("div"),o.className="v-dialog-head";let l=e.icon&&e.icon!=="none"?e.icon:null;if(l&&us[l]){let d=document.createElement("div");d.className="v-dialog-icon",d.setAttribute("aria-hidden","true"),d.setAttribute("data-tone",(a=e.tone)!=null?a:Dp(l)),d.innerHTML=us[l],o.appendChild(d)}let u=document.createElement("div");if(u.className="v-dialog-heading",e.title){let d=document.createElement("h2");d.className="v-dialog-title",d.id=n,d.textContent=e.title,u.appendChild(d)}if(e.description){let d=document.createElement("p");d.className="v-dialog-desc",d.id=r,d.textContent=e.description,u.appendChild(d)}o.appendChild(u)}let i=document.createDocumentFragment();if(e.text)for(let l of e.text.split(`
418
+ `)){let u=document.createElement("p");u.textContent=l,i.appendChild(u)}if(e.html){let l=document.createElement("div");for(l.innerHTML=e.html;l.firstChild;)i.appendChild(l.firstChild)}e.node&&i.appendChild(e.node),t.appendChild(i);let s=(c=e.buttons)!=null?c:[{label:Ne.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(l=>{var d;let u=Hl({...e,content:t,role:e.tone==="danger"?"alertdialog":"dialog",labelledBy:n,describedBy:r,key:null,onClose(p){var f;(f=e.onClose)==null||f.call(e,p,u),l(p===void 0?null:p)}});if(o&&u.panel.insertBefore(o,u.body),s.length){let p=document.createElement("div");p.className="v-dialog-foot";for(let f of s){let m=document.createElement("button");m.type="button",m.className="v-dlg-btn",m.setAttribute("data-variant",(d=f.variant)!=null?d:"secondary"),m.textContent=f.label,f.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var g,h;((g=f.onClick)==null?void 0:g.call(f,u))!==!1&&f.close!==!1&&u.close((h=f.value)!=null?h:null)}),p.appendChild(m)}u.panel.appendChild(p)}u.body.childNodes.length||u.body.remove()})}function Dp(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function gs(e,t={}){var n;return vn({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:Ne.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function uo(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return vn({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:Ne.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:Ne.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function vs(e,t={}){var m,v,g,h;lo();let n=(m=t.type)!=null?m:"text",r=ue("v-prompt-"),o=`${r}-hint`,i=`${r}-error`,s=document.createElement("div");s.className="v-dialog-field";let a=document.createElement("label");a.className="v-dialog-label",a.htmlFor=r,a.textContent=e,s.appendChild(a);let c=n==="textarea"?document.createElement("textarea"):document.createElement("input");if(c.className="v-dialog-input",c.id=r,c instanceof HTMLInputElement&&(c.type=n==="textarea"?"text":n),c.value=(v=t.value)!=null?v:"",t.placeholder&&(c.placeholder=t.placeholder),t.required&&(c.required=!0),c.setAttribute("data-autofocus",""),s.appendChild(c),t.hint){let y=document.createElement("p");y.className="v-dialog-hint",y.id=o,y.textContent=t.hint,s.appendChild(y),c.setAttribute("aria-describedby",o)}let l=document.createElement("p");l.className="v-dialog-error",l.id=i,l.hidden=!0,l.setAttribute("role","alert"),s.appendChild(l);let u=()=>n==="number"?c.value.trim():c.value,d=y=>{var x,C;let w=u(),T=null;return t.required&&!w.trim()?T=Ne.required:T=(C=(x=t.validate)==null?void 0:x.call(t,w))!=null?C:null,T?(l.textContent=T,l.hidden=!1,c.setAttribute("aria-invalid","true"),c.setAttribute("aria-describedby",i),c.focus(),!1):(l.hidden=!0,c.removeAttribute("aria-invalid"),y.close(w),!0)},p=null;return c.addEventListener("keydown",y=>{let w=y;w.key==="Enter"&&(n==="textarea"&&!w.ctrlKey&&!w.metaKey||(y.preventDefault(),p&&d(p)))}),vn({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(g=t.cancelLabel)!=null?g:Ne.cancel,value:null,variant:"secondary"},{label:(h=t.confirmLabel)!=null?h:Ne.confirm,variant:"primary",close:!1,onClick(y){return p=y,d(y),!1}}],onOpen(y){var w;p=y,(w=t.onOpen)==null||w.call(t,y)}}).then(y=>typeof y=="string"?y:null)}b("modal",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();e.setAttribute("aria-haspopup","dialog");let i=s=>{if(s.preventDefault(),n.close){Nt.close(o||void 0);return}if(n.toggle){o&&Nt.toggle(o);return}o&&Nt.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});b("modal-content",({el:e})=>{lo(),e.id||(e.id=ue("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:P.REF});b("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?ds.get(i):void 0;s?s.handle.close(t.trim()||void 0):Nt.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var cs=!1;b("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||Ne.confirmQuestion,i=s=>{var d,p,f;if(cs)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,c=(d=xe(e,`${E.prefix}confirm-title`))!=null?d:void 0,l=(p=xe(e,`${E.prefix}confirm-label`))!=null?p:void 0,u=(f=xe(e,`${E.prefix}confirm-cancel`))!=null?f:void 0;uo(o,{title:c,confirmLabel:l,cancelLabel:u,danger:!!n.danger,size:"sm"}).then(m=>{if(m){cs=!0;try{a.click()}finally{cs=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:P.REF});H("$modal",()=>Nt);H("$dialog",()=>vn);H("$alert",()=>gs);H("$confirm",()=>uo);H("$prompt",()=>vs);re();Z();var Gn=new Map;function oe(e,t){Gn.set(e.trim().toLowerCase(),t)}var Pp={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},Np=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,Nl=new Set(["currency","percent"]);function Ot(e,t){let n="",r=0;for(let o=0;o<t.length;o++){let i=t[o];if(i==="\\"){let a=t[++o];if(a===void 0||r>=e.length)break;n+=a;continue}let s=Pp[i];if(s){for(;r<e.length&&!s.test(e[r]);)r++;if(r>=e.length)break;n+=e[r++];continue}if(r>=e.length)break;e[r]===i&&r++,n+=i}return n}function po(e,t={}){var v,g,h,y,w;let n=Math.max(0,Math.trunc((v=t.decimals)!=null?v:2)),r=(g=t.decimal)!=null?g:",",o=(h=t.thousands)!=null?h:".",i=(y=t.prefix)!=null?y:"R$ ",s=(w=t.suffix)!=null?w:"",a=String(e!=null?e:""),c=a.trim().startsWith("-"),l=a.replace(/\D/g,"").slice(0,15);if(!l)return"";let u=l.padStart(n+1,"0"),d=n?u.slice(0,u.length-n):u,p=n?u.slice(u.length-n):"",m=d.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${c?"-":""}${i}${m}${n?r+p:""}${s}`}function Ol(e,t=2){return po(e,{prefix:"",suffix:"%",decimals:t})}oe("cpf","999.999.999-99");oe("cnpj","99.999.999/9999-99");oe("cep","99999-999");oe("date","99/99/9999");oe("time","99:99");oe("datetime","99/99/9999 99:99");oe("cvv","9999");oe("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return Ot(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});oe("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return Ot(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});oe("currency",e=>po(e));oe("percent",e=>Ol(e));oe("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?Ot(t,"9999 999999 99999"):t.length>16?Ot(t,"9999 9999 9999 9999 999"):Ot(t,"9999 9999 9999 9999")});oe("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return Ot(t,n?"AAA-9999":"AAA9A99")});oe("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});oe("ip",e=>{let t=e.replace(/[^\d.]/g,"").split(".").slice(0,4),n=[];for(let r of t){if(r===""){n.push("");continue}let o=Math.min(255,Number(r.slice(0,3)));n.push(String(o))}return n.join(".")});function Qn(e,t){let n=e==null?"":String(e);if(!t)return n;let r=Gn.get(t.trim().toLowerCase());return typeof r=="function"?r(n):Ot(n,typeof r=="string"?r:t)}function mo(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&Nl.has(r)){let o=n.trim().startsWith("-"),i=n.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!i)return"";let s=i.padStart(3,"0"),a=`${s.slice(0,s.length-2)}.${s.slice(s.length-2)}`;return o?`-${a}`:a}return n.replace(/[^0-9A-Za-zÀ-ÖØ-öø-ÿ]/g,"")}var $l=Object.assign((e,t)=>Qn(e,t),{apply:Qn,unmask:mo,register:oe,currency:po,percent:Ol,presets:Gn});function fo(e){return e!==void 0&&Np.test(e)}function Dl(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)fo(e[o])&&n++;return n}function Pl(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(fo(e[r])&&(n++,n===t))return r+1;return e.length}var hs=new WeakSet;function Fl(e,t,n){var m;if(hs.has(e))return;hs.add(e);let r=Object.getPrototypeOf(e),o=(m=Object.getOwnPropertyDescriptor(r,"value"))!=null?m:Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),i=o==null?void 0:o.get,s=o==null?void 0:o.set,a=()=>{var v;return String(i?i.call(e):(v=e.getAttribute("value"))!=null?v:"")},c=v=>{s?s.call(e,v):e.setAttribute("value",v)},l=v=>{try{e.setSelectionRange(v,v)}catch(g){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let v=String(i.call(e));return t.clean?t.clean(v):v},set(v){s.call(e,t.format(v==null?"":String(v)))}}),n(()=>{let v=a();Reflect.deleteProperty(e,"value"),c(v)}));let u=()=>{var w,T;let v=a(),g=(w=e.selectionStart)!=null?w:v.length,h=Dl(v,g),y=t.format(v);y!==v&&c(y),t.rightToLeft?l(Math.max(0,y.length-((T=t.suffixLength)!=null?T:0))):l(Pl(y,h))},d=()=>u(),p=v=>{var C,N;if(v.key!=="Backspace")return;let g=(C=e.selectionStart)!=null?C:0,h=(N=e.selectionEnd)!=null?N:0;if(g!==h||g===0)return;let y=a();if(fo(y[g-1]))return;let w=g-1;for(;w>=0&&!fo(y[w]);)w--;if(v.preventDefault(),w<0)return;let T=y.slice(0,w)+y.slice(g),x=Dl(T,w);c(t.format(T)),l(Pl(a(),x)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",d),e.addEventListener("keydown",p),n(()=>{hs.delete(e),e.removeEventListener("input",d),e.removeEventListener("keydown",p)});let f=a();f&&c(t.format(f))}function Il(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return Y(`${E.prefix}${t} only works on input or textarea.`),null;let n=e,r=(n.getAttribute("type")||"text").toLowerCase();return r==="number"||r==="range"||r==="date"||r==="color"?(Y(`${E.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}b("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=Il(e,"mask");if(!o)return;let i=t.trim();if(!i){Y(`${E.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;Fl(o,{format:c=>Qn(c,i),clean:a?c=>mo(c,s):void 0,rightToLeft:Nl.has(s),suffixLength:s==="percent"?1:0},r)},{priority:P.MODEL+5});b("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var p,f,m,v;let o=Il(e,"mask-currency");if(!o)return;let i=g=>{var h;return(h=e.getAttribute(`${E.prefix}${g}`))!=null?h:e.getAttribute(`data-v-${g}`)},s=(p=typeof n.decimals=="string"?n.decimals:null)!=null?p:i("mask-decimals"),a=s!==null&&s!==""?Number(s):2,c=t.trim()?t:"",l={prefix:n.plain?"":c||i("mask-prefix")||"R$ ",suffix:(f=i("mask-suffix"))!=null?f:"",decimals:Number.isFinite(a)?a:2,decimal:n.dot?".":",",thousands:n.dot?",":"."},u=!!n.unmask||!!n.raw,d=(m=l.decimals)!=null?m:2;Fl(o,{format:g=>po(g,l),clean:u?g=>{let h=g.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!h)return"";if(d===0)return h;let y=h.padStart(d+1,"0"),w=`${y.slice(0,y.length-d)}.${y.slice(y.length-d)}`;return g.trim().startsWith("-")?`-${w}`:w}:void 0,rightToLeft:!0,suffixLength:((v=l.suffix)!=null?v:"").length},r)},{priority:P.MODEL+5});var jl=((e,t)=>yi(e,t));Object.assign(jl,Sr,{query:yi,ready:bi,fromHtml:wc,Collection:Be,modal:Nt,alert:gs,confirm:uo,prompt:vs,dialog:vn,validator:I,validate:qi,validateForm:qi,serializeForm:ln,messages:Pe,showFormErrors:Vr,showFieldError:_r,clearErrors:zn,mask:$l,masks:Gn,applyMask:Qn,unmask:mo,registerMask:oe,palette:Al,hotkey:$r,sound:pt,magic:H});var ys=jl;Z();function Op(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 $p(){var s;if(typeof document=="undefined")return{manual:!1};let e=(s=document.currentScript)!=null?s: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&&(E.prefix=n);let r=e.getAttribute("data-base-url");r&&(E.baseURL=r);let o=e.getAttribute("data-locale");o&&(E.locale=o),Op(e)&&(E.devtools=!0);let i=e.getAttribute("data-xray-shortcut");return i!==null&&(E.xrayShortcut=i==="false"||i===""?!1:i),e.hasAttribute("data-no-styles")&&(E.injectStyles=!1),e.hasAttribute("data-no-observer")&&(E.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(E.cleanAttributes=!1),{manual:t}}function Fp(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 Bl(e){var o;if(typeof window=="undefined")return;let t=$p(),n=window;if(n.V=e,n.Voodoo=e,pe.V=e,pe.Voodoo=e,E.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(E.baseURL),t.manual||!E.autoStart)return;mr(()=>{je.init(),Ll(),typeof e.extractJsx=="function"&&e.extractJsx(),e.start(),typeof e.activateJsx=="function"&&e.activateJsx(),typeof e.enableXrayShortcut=="function"&&e.enableXrayShortcut(),E.devtools&&Fp(e)})}Bl(ys);var Ip=ys;return Yl(jp);})();
419
419
  if(typeof window!=="undefined"){window.V=Voodoo.default||Voodoo;window.Voodoo=window.V;}
420
420
  //# sourceMappingURL=voodoo.min.js.map