voodoojs 0.6.0 → 0.6.1
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.
- package/dist/index.cjs +32 -8
- package/dist/index.js +32 -8
- package/dist/voodoo.full.js +32 -8
- package/dist/voodoo.full.min.js +35 -35
- package/package.json +1 -1
package/dist/voodoo.full.min.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Voodoo=(()=>{var Mo=Object.defineProperty;var Gp=Object.getOwnPropertyDescriptor;var Qp=Object.getOwnPropertyNames;var Jp=Object.prototype.hasOwnProperty;var Zp=(e,t,n)=>t in e?Mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gs=(e,t)=>()=>(e&&(t=e(e=0)),t);var So=(e,t)=>{for(var n in t)Mo(e,n,{get:t[n],enumerable:!0})},em=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Qp(t))!Jp.call(e,o)&&o!==n&&Mo(e,o,{get:()=>t[o],enumerable:!(r=Gp(t,o))||r.enumerable});return e};var tm=e=>em(Mo({},"__esModule",{value:!0}),e);var H=(e,t,n)=>Zp(e,typeof t!="symbol"?t+"":t,n);var Mc={};So(Mc,{EffectScope:()=>et,ITERATE_KEY:()=>Zt,ReactiveEffect:()=>An,TriggerType:()=>Ec,computed:()=>Sr,effect:()=>_e,effectScope:()=>Cs,enableTracking:()=>wc,flushSync:()=>Ts,getActiveEffect:()=>rm,getActiveScope:()=>im,handleError:()=>K,hasChanged:()=>Lr,isReactive:()=>Hs,isRef:()=>en,markRaw:()=>Ds,nextTick:()=>at,pauseTracking:()=>xc,queueJob:()=>Do,queuePostFlush:()=>Me,reactive:()=>Z,ref:()=>Mr,resetTracking:()=>Ss,setErrorHandler:()=>Ls,shallowRef:()=>Ps,stop:()=>As,toRaw:()=>Le,track:()=>st,trigger:()=>xt,unref:()=>Ns,warn:()=>Y,watch:()=>Oe,watchEffect:()=>Os});function at(e){let t=Ro||Es;return e?t.then(e):t}function Do(e){e.queued||(e.queued=!0,Mn.push(e),yc())}function Me(e){Ao.push(e),yc()}function yc(){Co||Tr||(Tr=!0,Ro=Es.then(ks))}function ks(){Tr=!1,Co=!0;let e=new Map;try{for(let t=0;t<Mn.length;t++){let n=Mn[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>nm){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){K(o,"effect")}}}finally{for(let n of Mn)n.queued=!1;Mn=[],Co=!1;let t=Ao;Ao=[];for(let n of t)try{n()}catch(r){K(r,"post-flush")}Mn.length||Ao.length?(Ro=Es.then(ks),Tr=!0):Ro=null}}function Ts(){Co||(Tr=!1,ks())}function Ls(e){bs=e}function K(e,t){if(bs){bs(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function Y(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function xc(){Ms.push(tn),tn=!1}function wc(){Ms.push(tn),tn=!0}function Ss(){var e;tn=(e=Ms.pop())!=null?e:!0}function rm(){return Ne}function vc(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function _e(e,t){let n=new An(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function As(e){e instanceof An?e.stop():e.effect.stop()}function Cs(e=!1){return new et(e)}function im(){return $t}function st(e,t){if(!tn||!Ne)return;let n=ys.get(e);n||ys.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(Ne)||(r.add(Ne),Ne.deps.push(r))}function xt(e,t,n,r){let o=ys.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let l of a)(l!==Ne||t==="clear")&&i.add(l)};if(t==="clear")o.forEach(s);else{n!==void 0&&s(o.get(n));let a=Array.isArray(e);if(t==="add")a?xs(n)&&s(o.get("length")):s(o.get(Zt));else if(t==="delete")a||s(o.get(Zt));else if(a&&n==="length"){let l=Number(r);o.forEach((c,d)=>{(d==="length"||typeof d!="symbol"&&Number(d)>=l)&&s(c)})}}for(let a of i)a.scheduler?a.scheduler():Do(a)}function xs(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function Dt(e){return e!==null&&typeof e=="object"}function am(e){if(!Dt(e)||e[kc]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return sm.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function Ds(e){return Object.defineProperty(e,kc,{value:!0,enumerable:!1,configurable:!0}),e}function Le(e){let t=e&&e[Rs];return t?Le(t):e}function Hs(e){return!!(e&&e[$s])}function Z(e){if(!Dt(e)||Hs(e)||!am(e))return e;let t=hc.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?cm:lm);return hc.set(e,r),r}function Lr(e,t){return!Object.is(e,t)}function en(e){return!!(e&&e.__v_isRef===!0)}function bc(e){return Dt(e)?Z(e):e}function Tc(e){!tn||!Ne||e.dep.has(Ne)||(e.dep.add(Ne),Ne.deps.push(e.dep))}function Lc(e){for(let t of[...e.dep])t.scheduler?t.scheduler():Do(t)}function Mr(e){return new $o(e)}function Ps(e){return new $o(e,!0)}function Ns(e){return en(e)?e.value:e}function Sr(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new ws(n,r)}function Oe(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(en(e)?s=()=>e.value:typeof e=="function"?s=e:Hs(e)?s=()=>Sn(e):s=()=>e,o){let f=s;s=()=>Sn(f())}let a,l,c=f=>{l=f},d=()=>{if(!p.effect.active)return;let f=p();(o||Lr(f,a))&&(l==null||l(),l=void 0,t(f,a,c),a=f)},p=i==="pre"?_e(s,{lazy:!0,scheduler:()=>Me(d)}):_e(s,{lazy:!0,scheduler:i==="sync"?d:i==="post"?()=>Me(d):()=>Do(p.effect)});return a=p(),r&&t(a,void 0,c),()=>p.effect.stop()}function Os(e){let t,n=o=>{t=o},r=_e(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function Sn(e,t=new Set){if(!Dt(e)||t.has(e))return e;if(t.add(e),en(e))Sn(e.value,t);else if(Array.isArray(e))for(let n of e)Sn(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>Sn(n,t));else for(let n of Object.keys(e))Sn(e[n],t);return e}var Es,Mn,Ao,Co,Tr,Ro,nm,bs,Ne,tn,Ms,om,An,$t,et,Zt,ys,Ec,Rs,$s,kc,hc,gc,sm,lm,cm,$o,ws,be=gs(()=>{"use strict";Es=Promise.resolve(),Mn=[],Ao=[],Co=!1,Tr=!1,Ro=null,nm=100;bs=null;tn=!0,Ms=[];om=0,An=class{constructor(t,n){var o;this.fn=t,this.id=om++,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:$t;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=Ne;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=Ne,Ne=this,wc(),vc(this),this.fn()}finally{Ss(),Ne=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){K(r,"effect cleanup")}}stop(){var t;this.active&&(vc(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};et=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&$t&&(this.parent=$t,$t.children.push(this))}run(t){if(!this.active)return;let n=$t;try{return $t=this,t()}finally{$t=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){K(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)}}}};Zt=Symbol("voodoo:iterate"),ys=new WeakMap;Ec=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(Ec||{});Rs=Symbol("voodoo:raw"),$s=Symbol("voodoo:isReactive"),kc=Symbol("voodoo:skip"),hc=new WeakMap,gc=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=Le(this);for(let i=0;i<r.length;i++)st(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(Le)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){xc();try{return Le(this)[t].apply(this,n)}finally{Ss()}};return e})();sm=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);lm={get(e,t,n){if(t===Rs)return e;if(t===$s)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(gc,t))return Reflect.get(gc,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(st(e,t),en(o)?r&&xs(t)?o:o.value:Dt(o)?Z(o):o)},set(e,t,n,r){let o=e[t];if(n=Le(n),!Array.isArray(e)&&en(o)&&!en(n))return o.value=n,!0;let i=Array.isArray(e)&&xs(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===Le(r)&&(i?Lr(n,o)&&xt(e,"set",t,n):xt(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&xt(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&st(e,t),n},ownKeys(e){return st(e,Array.isArray(e)?"length":Zt),Reflect.ownKeys(e)}},cm={get(e,t,n){if(t===Rs)return e;if(t===$s)return!0;let r=e;if(t==="size")return st(r,Zt),Reflect.get(r,"size",r);let o={get(s){st(r,s);let a=r.get(s);return Dt(a)?Z(a):a},has(s){return st(r,s),r.has(s)},add(s){s=Le(s);let a=r.has(s);return r.add(s),a||xt(r,"add",s,s),n},set(s,a){let l=r.has(s),c=r.get(s);return r.set(s,Le(a)),l?Lr(a,c)&&xt(r,"set",s,a):xt(r,"add",s,a),n},delete(s){let a=r.has(s),l=r.delete(s);return a&&xt(r,"delete",s),l},clear(){let s=r.size!==0,a=r.clear();return s&&xt(r,"clear"),a},forEach(s,a){return st(r,Zt),r.forEach((l,c)=>{s.call(a,Dt(l)?Z(l):l,Dt(c)?Z(c):c,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){st(r,Zt);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}};$o=class{constructor(t,n=!1){H(this,"shallow",n);H(this,"__v_isRef",!0);H(this,"_value");H(this,"_rawValue");H(this,"dep",new Set);this._rawValue=Le(t),this._value=n?t:bc(t)}get value(){return Tc(this),this._value}set value(t){let n=Le(t);Lr(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:bc(t),Lc(this))}};ws=class{constructor(t,n){H(this,"setter",n);H(this,"__v_isRef",!0);H(this,"_value");H(this,"_dirty",!0);H(this,"effect");H(this,"dep",new Set);this.effect=new An(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Lc(this))}})}get value(){return Tc(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 y(e,t,n={}){var r,o;wt.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function rn(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function No(e,t,n){Fc.has(t)||(Fc.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var w,wt,j,$e,Fc,le=gs(()=>{"use strict";w={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},wt=new Map,j={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};$e=new Map;Fc=new Set});var Cd={};So(Cd,{BASE_TOKENS:()=>Ad,ensureTokens:()=>he,injectStyle:()=>ne});function ne(e,t){if(typeof document=="undefined"||!w.injectStyles||Sd.has(e))return;Sd.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function he(){ne("tokens",Ad)}var Sd,Ad,He=gs(()=>{"use strict";le();Sd=new Set;Ad=`
|
|
6
|
+
"use strict";var Voodoo=(()=>{var Mo=Object.defineProperty;var Zp=Object.getOwnPropertyDescriptor;var em=Object.getOwnPropertyNames;var tm=Object.prototype.hasOwnProperty;var nm=(e,t,n)=>t in e?Mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var bs=(e,t)=>()=>(e&&(t=e(e=0)),t);var So=(e,t)=>{for(var n in t)Mo(e,n,{get:t[n],enumerable:!0})},rm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of em(t))!tm.call(e,o)&&o!==n&&Mo(e,o,{get:()=>t[o],enumerable:!(r=Zp(t,o))||r.enumerable});return e};var om=e=>rm(Mo({},"__esModule",{value:!0}),e);var H=(e,t,n)=>nm(e,typeof t!="symbol"?t+"":t,n);var Cc={};So(Cc,{EffectScope:()=>et,ITERATE_KEY:()=>Zt,ReactiveEffect:()=>An,TriggerType:()=>Lc,computed:()=>Sr,effect:()=>_e,effectScope:()=>Rs,enableTracking:()=>Tc,flushSync:()=>Ls,getActiveEffect:()=>sm,getActiveScope:()=>lm,handleError:()=>K,hasChanged:()=>Lr,isReactive:()=>Ps,isRef:()=>en,markRaw:()=>Hs,nextTick:()=>at,pauseTracking:()=>kc,queueJob:()=>Do,queuePostFlush:()=>Me,reactive:()=>Z,ref:()=>Mr,resetTracking:()=>As,setErrorHandler:()=>Ms,shallowRef:()=>Ns,stop:()=>Cs,toRaw:()=>Le,track:()=>st,trigger:()=>xt,unref:()=>Os,warn:()=>Y,watch:()=>Oe,watchEffect:()=>Fs});function at(e){let t=Ro||ks;return e?t.then(e):t}function Do(e){e.queued||(e.queued=!0,Mn.push(e),Ec())}function Me(e){Ao.push(e),Ec()}function Ec(){Co||Tr||(Tr=!0,Ro=ks.then(Ts))}function Ts(){Tr=!1,Co=!0;let e=new Map;try{for(let t=0;t<Mn.length;t++){let n=Mn[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>im){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){K(o,"effect")}}}finally{for(let n of Mn)n.queued=!1;Mn=[],Co=!1;let t=Ao;Ao=[];for(let n of t)try{n()}catch(r){K(r,"post-flush")}Mn.length||Ao.length?(Ro=ks.then(Ts),Tr=!0):Ro=null}}function Ls(){Co||(Tr=!1,Ts())}function Ms(e){ys=e}function K(e,t){if(ys){ys(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function Y(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function kc(){Ss.push(tn),tn=!1}function Tc(){Ss.push(tn),tn=!0}function As(){var e;tn=(e=Ss.pop())!=null?e:!0}function sm(){return Ne}function bc(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function _e(e,t){let n=new An(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function Cs(e){e instanceof An?e.stop():e.effect.stop()}function Rs(e=!1){return new et(e)}function lm(){return $t}function st(e,t){if(!tn||!Ne)return;let n=xs.get(e);n||xs.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(Ne)||(r.add(Ne),Ne.deps.push(r))}function xt(e,t,n,r){let o=xs.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let l of a)(l!==Ne||t==="clear")&&i.add(l)};if(t==="clear")o.forEach(s);else{n!==void 0&&s(o.get(n));let a=Array.isArray(e);if(t==="add")a?ws(n)&&s(o.get("length")):s(o.get(Zt));else if(t==="delete")a||s(o.get(Zt));else if(a&&n==="length"){let l=Number(r);o.forEach((c,d)=>{(d==="length"||typeof d!="symbol"&&Number(d)>=l)&&s(c)})}}for(let a of i)a.scheduler?a.scheduler():Do(a)}function ws(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function Dt(e){return e!==null&&typeof e=="object"}function dm(e){if(!Dt(e)||e[Mc]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return cm.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function Hs(e){return Object.defineProperty(e,Mc,{value:!0,enumerable:!1,configurable:!0}),e}function Le(e){let t=e&&e[$s];return t?Le(t):e}function Ps(e){return!!(e&&e[Ds])}function Z(e){if(!Dt(e)||Ps(e)||!dm(e))return e;let t=yc.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?fm:um);return yc.set(e,r),r}function Lr(e,t){return!Object.is(e,t)}function en(e){return!!(e&&e.__v_isRef===!0)}function wc(e){return Dt(e)?Z(e):e}function Sc(e){!tn||!Ne||e.dep.has(Ne)||(e.dep.add(Ne),Ne.deps.push(e.dep))}function Ac(e){for(let t of[...e.dep])t.scheduler?t.scheduler():Do(t)}function Mr(e){return new $o(e)}function Ns(e){return new $o(e,!0)}function Os(e){return en(e)?e.value:e}function Sr(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new Es(n,r)}function Oe(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(en(e)?s=()=>e.value:typeof e=="function"?s=e:Ps(e)?s=()=>Sn(e):s=()=>e,o){let f=s;s=()=>Sn(f())}let a,l,c=f=>{l=f},d=()=>{if(!p.effect.active)return;let f=p();(o||Lr(f,a))&&(l==null||l(),l=void 0,t(f,a,c),a=f)},p=i==="pre"?_e(s,{lazy:!0,scheduler:()=>Me(d)}):_e(s,{lazy:!0,scheduler:i==="sync"?d:i==="post"?()=>Me(d):()=>Do(p.effect)});return a=p(),r&&t(a,void 0,c),()=>p.effect.stop()}function Fs(e){let t,n=o=>{t=o},r=_e(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function Sn(e,t=new Set){if(!Dt(e)||t.has(e))return e;if(t.add(e),en(e))Sn(e.value,t);else if(Array.isArray(e))for(let n of e)Sn(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>Sn(n,t));else for(let n of Object.keys(e))Sn(e[n],t);return e}var ks,Mn,Ao,Co,Tr,Ro,im,ys,Ne,tn,Ss,am,An,$t,et,Zt,xs,Lc,$s,Ds,Mc,yc,xc,cm,um,fm,$o,Es,be=bs(()=>{"use strict";ks=Promise.resolve(),Mn=[],Ao=[],Co=!1,Tr=!1,Ro=null,im=100;ys=null;tn=!0,Ss=[];am=0,An=class{constructor(t,n){var o;this.fn=t,this.id=am++,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:$t;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=Ne;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=Ne,Ne=this,Tc(),bc(this),this.fn()}finally{As(),Ne=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){K(r,"effect cleanup")}}stop(){var t;this.active&&(bc(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};et=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&$t&&(this.parent=$t,$t.children.push(this))}run(t){if(!this.active)return;let n=$t;try{return $t=this,t()}finally{$t=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){K(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)}}}};Zt=Symbol("voodoo:iterate"),xs=new WeakMap;Lc=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(Lc||{});$s=Symbol("voodoo:raw"),Ds=Symbol("voodoo:isReactive"),Mc=Symbol("voodoo:skip"),yc=new WeakMap,xc=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=Le(this);for(let i=0;i<r.length;i++)st(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(Le)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){kc();try{return Le(this)[t].apply(this,n)}finally{As()}};return e})();cm=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);um={get(e,t,n){if(t===$s)return e;if(t===Ds)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(xc,t))return Reflect.get(xc,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(st(e,t),en(o)?r&&ws(t)?o:o.value:Dt(o)?Z(o):o)},set(e,t,n,r){let o=e[t];if(n=Le(n),!Array.isArray(e)&&en(o)&&!en(n))return o.value=n,!0;let i=Array.isArray(e)&&ws(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===Le(r)&&(i?Lr(n,o)&&xt(e,"set",t,n):xt(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&xt(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&st(e,t),n},ownKeys(e){return st(e,Array.isArray(e)?"length":Zt),Reflect.ownKeys(e)}},fm={get(e,t,n){if(t===$s)return e;if(t===Ds)return!0;let r=e;if(t==="size")return st(r,Zt),Reflect.get(r,"size",r);let o={get(s){st(r,s);let a=r.get(s);return Dt(a)?Z(a):a},has(s){return st(r,s),r.has(s)},add(s){s=Le(s);let a=r.has(s);return r.add(s),a||xt(r,"add",s,s),n},set(s,a){let l=r.has(s),c=r.get(s);return r.set(s,Le(a)),l?Lr(a,c)&&xt(r,"set",s,a):xt(r,"add",s,a),n},delete(s){let a=r.has(s),l=r.delete(s);return a&&xt(r,"delete",s),l},clear(){let s=r.size!==0,a=r.clear();return s&&xt(r,"clear"),a},forEach(s,a){return st(r,Zt),r.forEach((l,c)=>{s.call(a,Dt(l)?Z(l):l,Dt(c)?Z(c):c,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){st(r,Zt);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}};$o=class{constructor(t,n=!1){H(this,"shallow",n);H(this,"__v_isRef",!0);H(this,"_value");H(this,"_rawValue");H(this,"dep",new Set);this._rawValue=Le(t),this._value=n?t:wc(t)}get value(){return Sc(this),this._value}set value(t){let n=Le(t);Lr(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:wc(t),Ac(this))}};Es=class{constructor(t,n){H(this,"setter",n);H(this,"__v_isRef",!0);H(this,"_value");H(this,"_dirty",!0);H(this,"effect");H(this,"dep",new Set);this.effect=new An(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Ac(this))}})}get value(){return Sc(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 y(e,t,n={}){var r,o;wt.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function rn(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function No(e,t,n){Bc.has(t)||(Bc.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var w,wt,j,$e,Bc,le=bs(()=>{"use strict";w={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},wt=new Map,j={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};$e=new Map;Bc=new Set});var Dd={};So(Dd,{BASE_TOKENS:()=>$d,ensureTokens:()=>he,injectStyle:()=>ne});function ne(e,t){if(typeof document=="undefined"||!w.injectStyles||Rd.has(e))return;Rd.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function he(){ne("tokens",$d)}var Rd,$d,He=bs(()=>{"use strict";le();Rd=new Set;$d=`
|
|
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
|
|
50
|
+
`});var px={};So(px,{default:()=>fx});be();var de=class extends Error{constructor(n,r,o){let i=`${r}
|
|
51
51
|
${" ".repeat(Math.max(0,o))}^`;super(`${n}
|
|
52
52
|
|
|
53
|
-
${i}`);H(this,"source",r);H(this,"position",o);this.name="VoodooSyntaxError"}},
|
|
53
|
+
${i}`);H(this,"source",r);H(this,"position",o);this.name="VoodooSyntaxError"}},pm=[">>>=","===","!==","**=","...","<<=",">>=","&&=","||=","??=","?.","=>","==","!=","<=",">=","&&","||","??","**","++","--","+=","-=","*=","/=","%=","+","-","*","/","%","!","<",">","=","(",")","[","]","{","}",",",".","?",":",";"],mm=/[A-Za-z_$À-]/,vm=/[A-Za-z0-9_$À-]/;function hm(e){return mm.test(e)}function gm(e){return vm.test(e)}function Ho(e){return e>="0"&&e<="9"}var Rc={n:`
|
|
54
54
|
`,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function Po(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 c=e.indexOf("*/",n+2);if(c===-1)throw new de("Unclosed block comment",e,n);n=c+2;continue}let a=n;if(Ho(s)||s==="."&&Ho(e[n+1])){let c="";if(s==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(c="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)c+=e[n++];else if(s==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(c="0b",n+=2;n<r&&/[01_]/.test(e[n]);)c+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]===".")for(c+=e[n++];n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]==="e"||e[n]==="E")for(c+=e[n++],(e[n]==="+"||e[n]==="-")&&(c+=e[n++]);n<r&&Ho(e[n]);)c+=e[n++]}let d=Number(c.replace(/_/g,""));if(Number.isNaN(d))throw new de("Invalid number",e,a);t.push({type:"num",value:c,parsed:d,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let c="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let d=e[n];if(d==="u")if(e[n+1]==="{"){let u=e.indexOf("}",n);if(u===-1)throw new de("Unclosed Unicode escape",e,a);let p=e.slice(n+2,u);if(!/^[0-9a-fA-F]+$/.test(p)||parseInt(p,16)>1114111)throw new de(`Invalid Unicode escape "\\u{${p}}"`,e,n-1);c+=String.fromCodePoint(parseInt(p,16)),n=u+1}else{let u=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(u))throw new de("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=5}else if(d==="x"){let u=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(u))throw new de("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=3}else c+=(o=Sc[d])!=null?o:d,n++}else c+=e[n++];if(n>=r)throw new de("Unclosed string",e,a);n++,t.push({type:"str",value:c,parsed:c,start:a,end:n});continue}if(s==="`"){n++;let c=[],d=[],u="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let p=e[n+1];u+=(i=Sc[p])!=null?i:p,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){c.push(u),u="",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 h=m;for(f+=e[n++];n<r&&e[n]!==h;)e[n]==="\\"&&(f+=e[n++]),f+=e[n++]}f+=e[n++]}if(p!==0)throw new de("Unclosed template interpolation",e,a);n++,d.push(f);continue}u+=e[n++]}if(n>=r)throw new de("Unclosed template literal",e,a);n++,c.push(u),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:c,exprs:d},start:a,end:n});continue}if(pm(s)){let c="";for(;n<r&&mm(e[n]);)c+=e[n++];t.push({type:"ident",value:c,start:a,end:n});continue}let l;for(let c of dm)if(e.startsWith(c,n)){if(c==="?."&&Ho(e[n+2]))continue;l=c;break}if(l){n+=l.length,t.push({type:"punct",value:l,start:a,end:n});continue}throw new de(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Ac={"??":1,"||":2,"&&":3,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,in:7,instanceof:7,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},vm=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),hm=new Set(["!","-","+","typeof","void"]),Cc=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Rc=1200,$c=32,Fs=0,Is=class{constructor(t,n){H(this,"tokens",t);H(this,"source",n);H(this,"pos",0);H(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 de(`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>Rc){let t=this.peek();throw new de(`Expression too deeply nested (limit of ${Rc} 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"&&vm.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new de("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 Ac||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Ac[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")&&hm.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 de("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 de("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 de("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(Fs>=$c)throw new de(`Template literal too deeply nested (limit of ${$c} levels)`,this.source,t.start);Fs++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>lt(r))}}finally{Fs--}}if(t.type==="ident")return t.value in Cc?(this.next(),{t:"lit",v:Cc[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 de(`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 de("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 de("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}}},Cn=new Map,Dc=2e3;function lt(e){let t=Cn.get(e);if(t)return t;let n=new Is(Po(e),e).parseProgram();return Cn.size>=Dc&&gm(),Cn.set(e,n),n}function gm(){let e=Math.floor(Dc/2),t=0;for(let n of Cn.keys())if(Cn.delete(n),++t>=e)break}function Hc(){Cn.clear()}var Nc,bm=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(Nc=Object.hasOwn)!=null?Nc:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),ym=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:bm,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console},Re=class extends Error{constructor(n,r){super(r?`${n}
|
|
56
|
+
`;)n++;continue}if(s==="/"&&e[n+1]==="*"){let c=e.indexOf("*/",n+2);if(c===-1)throw new de("Unclosed block comment",e,n);n=c+2;continue}let a=n;if(Ho(s)||s==="."&&Ho(e[n+1])){let c="";if(s==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(c="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)c+=e[n++];else if(s==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(c="0b",n+=2;n<r&&/[01_]/.test(e[n]);)c+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]===".")for(c+=e[n++];n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]==="e"||e[n]==="E")for(c+=e[n++],(e[n]==="+"||e[n]==="-")&&(c+=e[n++]);n<r&&Ho(e[n]);)c+=e[n++]}let d=Number(c.replace(/_/g,""));if(Number.isNaN(d))throw new de("Invalid number",e,a);t.push({type:"num",value:c,parsed:d,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let c="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let d=e[n];if(d==="u")if(e[n+1]==="{"){let u=e.indexOf("}",n);if(u===-1)throw new de("Unclosed Unicode escape",e,a);let p=e.slice(n+2,u);if(!/^[0-9a-fA-F]+$/.test(p)||parseInt(p,16)>1114111)throw new de(`Invalid Unicode escape "\\u{${p}}"`,e,n-1);c+=String.fromCodePoint(parseInt(p,16)),n=u+1}else{let u=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(u))throw new de("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=5}else if(d==="x"){let u=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(u))throw new de("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=3}else c+=(o=Rc[d])!=null?o:d,n++}else c+=e[n++];if(n>=r)throw new de("Unclosed string",e,a);n++,t.push({type:"str",value:c,parsed:c,start:a,end:n});continue}if(s==="`"){n++;let c=[],d=[],u="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let p=e[n+1];u+=(i=Rc[p])!=null?i:p,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){c.push(u),u="",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 h=m;for(f+=e[n++];n<r&&e[n]!==h;)e[n]==="\\"&&(f+=e[n++]),f+=e[n++]}f+=e[n++]}if(p!==0)throw new de("Unclosed template interpolation",e,a);n++,d.push(f);continue}u+=e[n++]}if(n>=r)throw new de("Unclosed template literal",e,a);n++,c.push(u),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:c,exprs:d},start:a,end:n});continue}if(hm(s)){let c="";for(;n<r&&gm(e[n]);)c+=e[n++];t.push({type:"ident",value:c,start:a,end:n});continue}let l;for(let c of pm)if(e.startsWith(c,n)){if(c==="?."&&Ho(e[n+2]))continue;l=c;break}if(l){n+=l.length,t.push({type:"punct",value:l,start:a,end:n});continue}throw new de(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var $c={"??":1,"||":2,"&&":3,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,in:7,instanceof:7,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},bm=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),ym=new Set(["!","-","+","typeof","void"]),Dc=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Hc=1200,Pc=32,Is=0,zs=class{constructor(t,n){H(this,"tokens",t);H(this,"source",n);H(this,"pos",0);H(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 de(`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>Hc){let t=this.peek();throw new de(`Expression too deeply nested (limit of ${Hc} 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"&&bm.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new de("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 $c||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=$c[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")&&ym.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 de("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 de("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 de("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(Is>=Pc)throw new de(`Template literal too deeply nested (limit of ${Pc} levels)`,this.source,t.start);Is++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>lt(r))}}finally{Is--}}if(t.type==="ident")return t.value in Dc?(this.next(),{t:"lit",v:Dc[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 de(`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 de("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 de("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}}},Cn=new Map,Nc=2e3;function lt(e){let t=Cn.get(e);if(t)return t;let n=new zs(Po(e),e).parseProgram();return Cn.size>=Nc&&xm(),Cn.set(e,n),n}function xm(){let e=Math.floor(Nc/2),t=0;for(let n of Cn.keys())if(Cn.delete(n),++t>=e)break}function Oc(){Cn.clear()}var Ic,wm=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(Ic=Object.hasOwn)!=null?Ic:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),Em=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:wm,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console},Re=class extends Error{constructor(n,r){super(r?`${n}
|
|
57
57
|
|
|
58
|
-
Expression: ${r}`:n);H(this,"expression",r);this.name="VoodooRuntimeError"}},
|
|
58
|
+
Expression: ${r}`:n);H(this,"expression",r);this.name="VoodooRuntimeError"}},js=Symbol("spread"),km=new Set(["__proto__","constructor","prototype"]);function zc(e){return typeof e=="string"&&km.has(e)}function nn(e,t){if(zc(e))throw new Re(`Access blocked to "${String(e)}": template expressions cannot reach the prototype chain. Expose a method in state instead.`,t);return e}function F(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+=Ht(F(e.exprs[i],t)),o+=(r=e.quasis[i+1])!=null?r:"";return o}case"id":{nn(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=F(e.o,t);if(o==null){if(e.opt)return;throw new Re(`Could not read "${Bs(e,t)}" from ${o===null?"null":"undefined"}`)}let i=nn(e.computed?F(e.p,t):e.p.v);return o[i]}case"call":{let o,i;if(e.callee.t==="member"){let s=F(e.callee.o,t);if(s==null){if(e.callee.opt||e.opt)return;throw new Re(`Could not call "${Bs(e.callee,t)}" from ${s===null?"null":"undefined"}`)}let a=nn(e.callee.computed?F(e.callee.p,t):e.callee.p.v);o=s,i=s[a]}else if(e.callee.t==="id"){nn(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=F(e.callee,t);if(i==null&&e.opt)return;if(typeof i!="function"){let s=e.callee.t==="id"?e.callee.n:Bs(e.callee,t);throw e.callee.t==="id"&&!t.lookup(s)&&!(s in Pe)?Em.has(s)?new Re(`"${s}" is blocked. Expressions run in a sandbox without access to it.`):new Re(`"${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 Re(`"${s}" is not a function`)}return i.apply(o,Tm(e.args,t))}case"unary":{if(e.op==="...")return{[js]:F(e.a,t)};if(e.op==="typeof"){if(e.a.t==="id"){if(zc(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 F(e.a,t)}let o=F(e.a,t);switch(e.op){case"!":return!o;case"-":return-o;case"+":return+o;case"void":return}throw new Re(`Unsupported unary operator: ${e.op}`)}case"update":{let o=Number(F(e.a,t)),i=e.op==="++"?o+1:o-1;return Fc(e.a,i,t),e.prefix?i:o}case"bin":{let o=F(e.l,t),i=F(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 Re(`Unsupported operator: ${e.op}`)}case"logic":{let o=F(e.l,t);return e.op==="&&"?o&&F(e.r,t):e.op==="||"?o||F(e.r,t):o!=null?o:F(e.r,t)}case"cond":return F(e.test,t)?F(e.cons,t):F(e.alt,t);case"assign":{let o;if(e.op==="=")o=F(e.value,t);else if(e.op==="&&="||e.op==="||="||e.op==="??="){let i=F(e.target,t);if(!(e.op==="&&="?!!i:e.op==="||="?!i:i==null))return i;o=F(e.value,t)}else{let i=F(e.target,t),s=F(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 Re(`Unsupported assignment: ${e.op}`)}}return Fc(e.target,o,t),o}case"if":return F(e.test,t)?F(e.cons,t):e.alt?F(e.alt,t):void 0;case"method":{let o=e.params,i=e.body;return function(...s){let a={};for(let d=0;d<o.length;d++)a[o[d]]=s[d];let l=this,c=l!==null&&typeof l=="object"?t.child(l):t;return F(i,c.child(a))}}case"arrow":{let o=e.params,i=e.body;return(...s)=>{let a={};for(let l=0;l<o.length;l++)a[o[l]]=s[l];return F(i,t.child(a))}}case"obj":{let o={};for(let i of e.props)if(i.spread)Object.assign(o,F(i.spread,t));else{let s=nn(i.key!==null?i.key:String(F(i.keyExpr,t)));if(i.getter){let a=F(i.value,t);Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get(){return a.call(this)}});continue}o[s]=F(i.value,t)}return o}case"arr":{let o=[];for(let i of e.els)i&&typeof i=="object"&&"spread"in i?o.push(...F(i.spread,t)):o.push(F(i,t));return o}case"seq":{let o;for(let i of e.body)o=F(i,t);return o}}throw new Re(`Unknown node: ${e.t}`)}function Tm(e,t){let n=[];for(let r of e){let o=F(r,t);o&&typeof o=="object"&&js in o?n.push(...o[js]):n.push(o)}return n}function Fc(e,t,n){if(e.t==="id"){nn(e.n),n.set(e.n,t);return}if(e.t==="member"){let r=F(e.o,n);if(r==null)throw new Re("Could not write to null or undefined");let o=nn(e.computed?F(e.p,n):e.p.v);r[o]=t;return}throw new Re("Invalid assignment target")}function Bs(e,t){return e.t==="member"?e.computed?String(F(e.p,t)):String(e.p.v):e.t==="id"?e.n:"value"}function Ht(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)}le();be();var Ar=new Map;function P(e,t){Ar.set(e.startsWith("$")?e:`$${e}`,t)}var on=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&&Ar.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(Z(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=Ar.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}},ct=new on(Z({}));be();le();le();function Et(){return w.devtools===!0}function kt(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 sn(e){Et()&&console.warn(`[Voodoo] ${e}`)}var jc=new Set;function Cr(e,t){Et()&&(jc.has(e)||(jc.add(e),console.warn(`[Voodoo] ${t}`)))}var Lm=new Set(["confirm-title","confirm-label","confirm-cancel","hold-duration"]);function qc(e,t,n){Et()&&(Lm.has(n)||Cr(`unknown-directive:${n}`,`unknown directive "${t}" at ${kt(e)}. No directive named "${n}" was registered. Check the spelling or register with V.directive("${n}", ...).`))}function Vc(e,t){Cr(`unknown-component:${t}`,`component "${t}" not registered at ${kt(e)}. Register with V.component("${t}", { ... }) before using the tag, or remove the attribute to leave the element as plain HTML.`)}function Uc(e,t,n,r){if(!Et())return;let o=r instanceof Error?r.message.split(`
|
|
59
59
|
`)[0]:String(r);sn(`invalid expression in ${t}="${n}" on element ${kt(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 qc(e,t,n){Et()&&sn(`duplicate key "${String(t)}" in v-for="${n}" on element ${kt(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 Vc(e,t,n){Et()&&sn(`required prop "${n}" missing from component "${t}" at ${kt(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function Rr(e,t){Cr(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var an=new WeakMap,Fo=new WeakMap,Tt=new WeakSet,Io=new WeakMap;function Us(e){return Tt.has(e)}function Ws(e){Tt.add(e)}function Lt(e){return an.get(e)}function Ve(e){let t=e;for(;t;){let n=an.get(t);if(n)return n;t=t.parentNode}return ct}function Xc(e,t){let n=Io.get(e);n||Io.set(e,n=[]),n.push(t)}function Gc(e){var t;return(t=Io.get(e))!=null?t:[]}var js=new WeakSet;function _s(e){js.add(e),e.remove()}function dt(e,t){let n=Fo.get(e);n||Fo.set(e,n=[]),n.push(t)}function X(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--)X(n[r])}let t=Fo.get(e);if(t){Fo.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){K(r,"cleanup")}}e.nodeType===1&&Sm(e),an.delete(e),Io.delete(e),Tt.delete(e)}var Oo=new Map,km=4e3;function $n(e,t){let n=`${e}\0${t}`,r=Oo.get(n);if(r!==void 0)return r;let o=Tm(e,t);return Oo.size>=km&&Oo.clear(),Oo.set(n,o),o}function Tm(e,t){let n=w.prefix,r;if(e.startsWith("@"))r=`on:${e.slice(1)}`;else if(e.startsWith(":")&&e.length>1)r=`bind:${e.slice(1)}`;else if(e.startsWith(".")&&e.length>1)r=`bind:${e.slice(1)}.prop`;else if(e.startsWith(n))r=e.slice(n.length);else if(e.startsWith("data-v-"))r=e.slice(7);else return null;if(!r)return null;let o=r.split("."),i=o.shift(),s={};for(let d of o){let u=d.indexOf("=");u>-1?s[d.slice(0,u)]=d.slice(u+1):s[d]=!0}let a=i.indexOf(":"),l=a>-1?i.slice(0,a):i,c=a>-1?i.slice(a+1):void 0;return{raw:e,name:l,arg:c,modifiers:s,expression:t}}function Dn(e){let t=[],n=Pt.get(e);if(n&&n.size)for(let[r,o]of n){let i=$n(r,o);i&&(t.push(i),Wc(e,i.name))}else{let r=Qc(e);for(let o=0;o<r.length;o++){let i=r[o];if(!Mm(i))continue;let s=$n(i,e.getAttribute(i));s&&(t.push(s),Wc(e,s.name))}}return t.length<2?t:t.sort((r,o)=>Uc(o)-Uc(r))}var Lm=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function Qc(e){return Lm?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function Mm(e){return Ys(e)||e.charCodeAt(0)===46&&e.length>1}function Uc(e){var t,n;return(n=(t=wt.get(e.name))==null?void 0:t.priority)!=null?n:0}var $r=new Map,zo=new WeakMap;function Wc(e,t){let n=$r.get(t);n||$r.set(t,n=new Set),n.add(e);let r=zo.get(e);r||zo.set(e,r=new Set),r.add(t)}function Sm(e){var n;let t=zo.get(e);if(t){for(let r of t)(n=$r.get(r))==null||n.delete(e);zo.delete(e)}}function Ks(e,t){var n;return(n=$r.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function Bo(e,t){let n=[],r=$r.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(`[${w.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 Hn(e,t){let n=e;for(;n;){if(Ks(n,t))return n;n=n.parentElement}return null}var Pt=new WeakMap;function Ys(e){return e.startsWith(w.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function ke(e,t){var r;let n=(r=Pt.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function Nt(e,t){let n=Pt.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function Jc(e){let t=Pt.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];Ys(o.name)&&n.set(o.name,o.value)}return n}function Am(e){if(!w.cleanAttributes)return;let t=Qc(e),n=Pt.get(e);n||Pt.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];Ys(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function Zc(e){let t=Pt.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function Xs(e){let t=Pt.get(e);return t&&t.size?!0:Gs(e)}function Gs(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(w.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function q(e,t,n,r){if(e)try{return F(lt(e),t)}catch(o){Et()&&jc(r!=null?r:t.el,n!=null?n:"expression",e,o),K(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var ed=new WeakSet;function jo(e){ed.add(e)}function _c(e,t,n){let r=wt.get(t.name);if(!r){Et()&&t.raw.startsWith(w.prefix)&&zc(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new et(!0);dt(e,()=>a.stop()),Xc(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return q(a!=null?a:t.expression,n,t.raw,e)},effect(a){let l=i();l.run(()=>_e(a,{scope:l}))},cleanup(a){dt(e,a)},walk(a,l){se(a,l)}};try{r.setup(s)}catch(a){K(a,`directive ${t.raw}`)}}var qs=null;function td(e){qs=e}var Cm=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function se(e,t){let n=t!=null?t:Ve(e.parentNode);if(e.nodeType===11){let f=Array.from(e.childNodes);for(let m of f)se(m,n);return}if(e.nodeType===3){nd(e,n);return}if(e.nodeType!==1)return;let r=e;if(Tt.has(r))return;let o=r.tagName;if(Cm.has(o))return;if(r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)){Tt.add(r);return}let i=n,s=Dn(r),a=$e.size===0&&Pn.size===0||r.hasAttribute(`${w.prefix}component`)?null:Om(o);if(s.length===0&&!a){Kc(r,i);return}Tt.add(r);for(let f of s){let m=wt.get(f.name);if(m!=null&&m.terminal){_c(r,f,i);return}}let l=s.find(f=>f.name==="data"),c=s.find(f=>f.name==="component"),d=c?c.expression||"":a||"",u=!1;if(d&&qs){let f=qs(r,d,i);f&&(i=f,u=!0,an.set(r,i))}else if(l||c){let f=l?q(l.expression||"{}",i,"v-data"):{};i=i.reactiveChild(f&&typeof f=="object"?f:{},r),an.set(r,i)}let p=u?n:i;for(let f of s)f.name==="data"||f.name==="component"||_c(r,f,p);Am(r),ed.has(r)||Kc(r,i)}function Kc(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&nd(o,t);for(let o of n)se(o,(r=an.get(o))!=null?r:t)}var Rm=500,Yc=new Map;function $m(e){let t=e.trim();if(!t)return!1;let n=Yc.get(t);if(n!==void 0)return n;let r=!0;try{r=lt(t).t!=="seq"}catch(o){r=!1}return Yc.set(t,r),r}function Dm(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 Hm(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):Dm(e,i);if(a===-1){n+=e[i],r=i+1;continue}let l=s?e.slice(i+2,a):e.slice(i+1,a),c=s?a+2:a+1;if((s||l.length<=Rm)&&$m(l)){o(),t.push({expression:l.trim(),raw:e.slice(i,c),explicit:s}),r=c;continue}n+=e[i],r=i+1}return o(),t}var Pm=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function Nm(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=lt(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 nd(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Tt.has(e))return;let r=e.parentElement;for(;r;){if(Pm.has(r.tagName)||r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Hm(n);if(!o.some(s=>s.expression))return;Tt.add(e);let i=new et(!0);dt(e,()=>i.stop()),Xc(e,i),i.run(()=>_e(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let l=q(a.expression,t,"interpolation");s+=Nm(a,l,t)?a.raw:Ht(l)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function Ot(e,t){an.set(e,t)}function Om(e){let t=e.toLowerCase();if($e.has(t))return t;let n=Pn.get(t);return n!=null?n:null}var Pn=new Map;var Vs=!1,Rn=null;function rd(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:w.root)!=null?n:document.body;t&&(Object.assign(Pe,w.globals),se(t,ct),Vs||(Vs=!0,w.autoDiscover&&Fm(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Fm(e){typeof MutationObserver!="undefined"&&(Rn=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(js.has(o)){js.delete(o);continue}o.nodeType===1&&!o.isConnected&&X(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Tt.has(o)||se(o,Ve(o.parentNode)))}}}),Rn.observe(e,{childList:!0,subtree:!0}))}function od(){Rn==null||Rn.disconnect(),Rn=null,Vs=!1}function id(e){se(e!=null?e:document.body,e?Ve(e.parentNode):ct)}be();le();var Mt=new Set,sd=new Set;function Ft(e,t){let n=rn(e);$e.set(n,t),Pn.set(n.replace(/-/g,""),n),Im(n)}function Im(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${w.prefix}component="${e}"]`];for(let o of n){let i;try{i=Array.from(document.querySelectorAll(o))}catch(s){continue}for(let s of i){if((r=Lt(s))!=null&&r.component||zm(s))continue;let a=Ve(s.parentNode);Us(s)&&(X(s),Zc(s)),se(s,a)}}}function zm(e){let t=e.parentElement;for(;t&&t!==document.body;){if(Gs(t)&&!Us(t))return!0;t=t.parentElement}return!1}function Bm(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 jm(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 Qs(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function qm(e,t,n,r,o){var c;let i=Z({}),s=Object.keys(t),a=new Map;for(let d of s)a.set(d.toLowerCase(),d),a.set(rn(d),d),a.set(Qs(d).toLowerCase(),d);for(let d of s)t[d].default!==void 0&&(i[d]=t[d].default);let l=Array.from(e.attributes);for(let d of l){let u=$n(d.name,d.value);if(u&&u.name==="bind"&&u.arg){let f=(c=a.get(u.arg.toLowerCase()))!=null?c:Qs(u.arg);if(s.length&&!a.has(u.arg.toLowerCase()))continue;r.run(()=>_e(()=>{i[f]=q(u.expression,n,`:${u.arg}`)}));continue}if(u)continue;let p=a.get(d.name.toLowerCase());p?i[p]=Bm(d.value,t[p]):s.length||(i[Qs(d.name)]=d.value)}for(let d of s)t[d].required&&i[d]===void 0&&Vc(e,o,d);return i}function Vm(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 l,c;let a=s.nodeType===1&&(l=s.getAttribute("slot"))!=null?l:null;if(a){s.removeAttribute("slot");let d=(c=o.get(a))!=null?c:[];d.push(s),o.set(a,d)}else i.push(s)});for(let s of r){let a=s.getAttribute("name"),l=a?o.get(a):i,c=document.createDocumentFragment();if(l&&l.length)for(let d of l)c.appendChild(d);else for(;s.firstChild;)c.appendChild(s.firstChild);Array.from(c.childNodes).forEach(d=>{d.nodeType===1&&Um(d,n)}),s.replaceWith(c)}}var qo=null;function ad(e){qo=e}function Um(e,t){qo==null||qo(e,t)}function ld(e,t,n){var k,A,D,C,oe,N,pe,ie;let r=t?rn(t):"",o=r?(D=(A=$e.get(r))!=null?A:$e.get((k=Pn.get(r))!=null?k:""))!=null?D:{}:{};r&&!$e.has(r)&&!Pn.has(r)&&Bc(e,t);let i=new et(!0),s=jm(o),a=qm(e,s,n,i,r||"inline");!o.state&&o.data&&Rr("data()","state()"),o.destroyed&&Rr("destroyed()","unmounted()");let l=(C=o.state)!=null?C:o.data,c={},d={},u=o.inheritScope?n:n.root,p=new on({},u,e);p.component=d;try{c=l?(oe=l.call(d,a))!=null?oe:{}:{}}catch(R){K(R,`state() of component "${t}"`)}let f=e.getAttribute(`${w.prefix}data`);if(f){let R=q(f,n,"v-data");R&&typeof R=="object"&&Object.assign(c,R)}if(o.provide)try{let R=typeof o.provide=="function"?o.provide.call(d):o.provide;R&&typeof R=="object"&&(p.provides={...R})}catch(R){K(R,`provide() of component "${t}"`)}if(o.inject){let R=Array.isArray(o.inject)?o.inject.map(S=>[S,{from:S}]):Object.entries(o.inject).map(([S,B])=>[S,B!=null?B:{}]);for(let[S,B]of R){let je=(N=B.from)!=null?N:S,qe=n.inject(je,B.default);S in c||(c[S]=qe)}}let m=Z(c),h={};if(o.computed)for(let[R,S]of Object.entries(o.computed))h[R]=Sr(()=>S.call(d));let v={};if(o.methods)for(let[R,S]of Object.entries(o.methods))v[R]=(...B)=>S.apply(d,B);for(let[R,S]of Object.entries(o))typeof S=="function"&&(Wm.has(R)||R==="state"||R==="data"||R in v||(v[R]=(...B)=>S.apply(d,B)));let g=(R,S)=>{let B=new CustomEvent(R,{detail:S,bubbles:!0,cancelable:!0});B.__voodoo=!0,e.dispatchEvent(B)},b={$el:e,$props:a,$name:r||"inline",$scope:p,$parent:(ie=(pe=n.owner)==null?void 0:pe.component)!=null?ie:null,emit:g,$emit:g,$nextTick:R=>Promise.resolve().then(()=>(be(),Mc)).then(S=>S.nextTick(R)),$watch:(R,S)=>Oe(()=>q(R,p),S)},x={get(R,S){if(typeof S!="symbol")return S==="$refs"?p.allRefs:S in b?b[S]:S in h?h[S].value:S in v?v[S]:S in a?a[S]:m[S]},set(R,S,B){return typeof S=="symbol"?!0:S in h?(h[S].value=B,!0):S in a?(a[S]=B,!0):(m[S]=B,!0)},has(R,S){if(typeof S=="symbol")return!1;let B=S;return B==="$refs"||B in b||B in h||B in v||B in a||B in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(v),...Object.keys(h)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(d,x);if(p.data=T,Object.setPrototypeOf(d,T),o.watch)for(let[R,S]of Object.entries(o.watch))i.run(()=>Oe(()=>T[R],(B,je)=>S.call(T,B,je)));if(o.style&&!sd.has(r)){sd.add(r);let R=document.createElement("style");R.setAttribute("data-voodoo-component",r),R.textContent=o.style,document.head.appendChild(R)}if(Nn(o,T,"beforeMount"),o.template){let R=document.createDocumentFragment();for(;e.firstChild;)R.appendChild(e.firstChild);e.innerHTML=o.template,Vm(e,R,n)}return Mt.add(T),Me(()=>{Nn(o,T,"mounted"),o.updated&&i.run(()=>_e(()=>{for(let R of Object.keys(m))m[R];Nn(o,T,"updated")}))}),dt(e,()=>{Nn(o,T,"beforeUnmount"),i.stop(),Mt.delete(T),Nn(o,T,"unmounted"),Nn(o,T,"destroyed")}),p}var Wm=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function Nn(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){K(o,`hook ${n}`)}}be();le();var On=[],Js=null,Vo=0,cd=-1,ea=0,Zs=!1;function dd(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function _m(){if(Js||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(Js=new MutationObserver(()=>{Vo++}),Js.observe(e,{childList:!0,subtree:!0}))}function ud(){if(Zs)return;Zs=!0;let e=()=>{Zs=!1,Km()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function Km(){var t;Vo===cd?ea++:ea=0,cd=Vo;let e=dd();for(let n=On.length-1;n>=0;n--){let r=On[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){On.splice(n,1),r.action(o);continue}e-r.since>1e4&&(On.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}On.length&&ud()}function ta(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}_m(),On.push({...e,since:dd()}),ud()}function fd(){return typeof document=="undefined"||!document.body?!1:ea>=2}function Ym(){return typeof document=="undefined"||!document.body?!1:Vo===0}function Uo(e){typeof document!="undefined"&&ta({ready:()=>fd()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function pd(e){if(typeof document!="undefined"){if(Ym()){Promise.resolve().then(e);return}ta({ready:()=>fd()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function Wo(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&ta({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var Xm=0,_o=null;function md(e){_o=e}function vd(e={}){let t=`voodoo-app-${++Xm}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,l="",c=null,d=[];function u(){if(n)for(let[m,h]of Object.entries(n)){let v=rn(m);$e.has(v)||(Ft(v,h),s.push(v))}}function p(m){var v,g;if(c)return c;a=m,l=m.innerHTML,Object.assign(Pe,o.globalProperties),u();let h={...r};if(Object.keys(i).length){let b=h.provide;h.provide=()=>({...typeof b=="function"?b():b!=null?b:{},...i})}Ft(t,h),m.setAttribute(`${w.prefix}component`,t);try{se(m,ct)}catch(b){return K(b,`application mounting "${t}"`),null}if(c=(g=(v=Lt(m))==null?void 0:v.component)!=null?g:null,c){let b=d;d=[];for(let x of b)x(c)}return c}let f={name:t,config:o,get instance(){return c},get container(){return a},get isMounted(){return c!==null},component(m,h){var g;let v=rn(m);return h===void 0?(g=n&&n[m])!=null?g:$e.get(v):(n?n[m]=h:e.components={[m]:h},c&&!$e.has(v)&&(Ft(v,h),s.push(v)),f)},directive(m,h){return _o==null||_o(m,h),f},use(m,h){return No(Gm(),m,h),f},provide(m,h){return i[m]=h,f},mount(m){if(c)return c;if(typeof m!="string")return p(m);let h=null;return Wo(m,v=>{h=p(v)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),h},whenMounted(){return c?Promise.resolve(c):new Promise(m=>d.push(m))},unmount(){if(a){X(a),a.removeAttribute(`${w.prefix}component`),a.innerHTML=l,$e.delete(t);for(let m of s)$e.delete(m);s.length=0,c=null,a=null}}};return f}var hd=null;function gd(e){hd=e}function Gm(){return hd}be();be();var It=new Map,na=Mr(0),ra=new Map;function bd(e,t,n={}){let r=It.get(e);if(!t){if(!r){let l=Z({});return It.set(e,l),l}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 l=localStorage.getItem(o);if(l){let c=JSON.parse(l);for(let[d,u]of Object.entries(c))i[d]&&!("value"in i[d])||(s[d]=u)}}catch(l){}let a=Z(s);for(let[l,c]of Object.entries(i)){let d=c.value;typeof d=="function"&&(a[l]=(...u)=>d.apply(a,u))}if(It.set(e,a),na.value++,n.persist&&typeof localStorage!="undefined"){let l=Oe(a,()=>{try{localStorage.setItem(o,JSON.stringify(Qm(a)))}catch(c){}},{deep:!0});ra.set(e,l)}return a}function Qm(e){let t={},n=Object.getOwnPropertyDescriptors(Le(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var Fn=new Proxy({},{get:(e,t)=>(na.value,It.get(t)),has:(e,t)=>(na.value,It.has(t)),ownKeys:()=>[...It.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function yd(e){var t;(t=ra.get(e))==null||t(),ra.delete(e),It.delete(e)}function Ko(){return[...It.keys()]}var la={};So(la,{capitalize:()=>xd,chunk:()=>ov,clone:()=>Dr,debounce:()=>Ue,device:()=>me,escapeHtml:()=>I,formatCurrency:()=>oa,formatDate:()=>sa,formatFileSize:()=>uv,formatNumber:()=>ia,formatPercent:()=>fv,get:()=>Pr,groupBy:()=>nv,isBrowser:()=>Yo,matchesMedia:()=>In,memoize:()=>tv,merge:()=>Xo,once:()=>ev,parseDuration:()=>G,random:()=>av,relativeTime:()=>aa,sample:()=>lv,set:()=>sv,setFormatDefaults:()=>Qo,sleep:()=>Zm,slugify:()=>cv,sortBy:()=>iv,stripTags:()=>dv,throttle:()=>Hr,titleCase:()=>Nr,truncate:()=>Go,uid:()=>ae,unique:()=>rv,uuid:()=>Jm});function Jm(){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 ae(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function Zm(e){return new Promise(t=>setTimeout(t,e))}function G(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 Ue(e,t=250,n=!1){let r=null,o=null,i,s=function(...a){o=a,i=this;let l=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(i,o)},t),l&&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 Hr(e,t=250){let n=0,r=null,o=null,i=function(...s){let a=Date.now();o=s;let l=t-(a-n);l<=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)},l))};return i.cancel=()=>{r&&clearTimeout(r),r=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},i}function ev(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function tv(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 Dr(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=>Dr(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Dr(r)]));if(e instanceof Set)return new Set([...e].map(n=>Dr(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Dr(r);return t}function Xo(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]=Xo({...i},o):e[r]=o}return e}function nv(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 rv(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 ov(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 iv(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),l=r(s);return a==null&&l==null?0:a==null?1:l==null?-1:typeof a=="string"&&typeof l=="string"?a.localeCompare(l,void 0,{numeric:!0})*o:(a>l?1:a<l?-1:0)*o})}function Pr(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 sv(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 av(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function lv(e){return e[Math.floor(Math.random()*e.length)]}function cv(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 Go(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 xd(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function Nr(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>xd(t.toLowerCase()))}function I(e){return String(e!=null?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function dv(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var zn="pt-BR",wd="BRL";function Qo(e,t){e&&(zn=e),t&&(wd=t)}function oa(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:zn,{style:"currency",currency:(o=t.currency)!=null?o:wd}).format(n)}function ia(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:zn,o).format(n)}function sa(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:zn;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 aa(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:zn,{numeric:"auto"});for(let[a,l]of i)if(o>=l||a==="second")return s.format(Math.round(r/l),a);return""}function uv(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 fv(e,t=0,n){return new Intl.NumberFormat(n!=null?n:zn,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var Yo=typeof window!="undefined"&&typeof window.document!="undefined";function In(e){if(!Yo||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var me={get touch(){return Yo&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return In("(max-width: 767px)")},get tablet(){return In("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return In("(min-width: 1024px)")},get online(){return!Yo||navigator.onLine},get reducedMotion(){return In("(prefers-reduced-motion: reduce)")},get darkMode(){return In("(prefers-color-scheme: dark)")}};var Ee=class extends Error{constructor(n,r,o,i){super(n);H(this,"response",r);H(this,"config",o);H(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"},Jo=[],Zo=[],Or=[],Fr=new Map;function Ed(e){var t;return`${(t=e.method)!=null?t:"GET"} ${jn(e)}`}function pv(e){if(!e){Fr.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Fr.keys()])t(n)&&Fr.delete(n)}var Td="voodoo:offline-queue";function ca(){try{return JSON.parse(localStorage.getItem(Td)||"[]")}catch(e){return[]}}function da(e){try{localStorage.setItem(Td,JSON.stringify(e))}catch(t){}}function mv(e){var n,r;if(typeof localStorage=="undefined")return;let t=ca();t.push({url:jn(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),da(t)}async function Ld(){if(typeof localStorage=="undefined")return 0;let e=ca();if(!e.length)return 0;da([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await zt({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=ca();da([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Ld()});function jn(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 Md(){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 vv(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 hv(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 gv=new Set(["GET","HEAD","OPTIONS"]);function bv(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function yv(e,t,n,r){var o;return gv.has(e)||t.retryUnsafe===!0||bv(n)?!0:(((o=t.retry)!=null?o:0)>0&&Cr(`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 zt(e){var d,u,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 h of Jo)t=await h(t);let n=((d=t.method)!=null?d:"GET").toUpperCase();if(t.cache&&n==="GET"){let h=Fr.get(Ed(t));if(h&&h.expires>Date.now())return h.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return mv(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 h=Md();h&&!r[De.csrfHeader]&&(r[De.csrfHeader]=h)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=vv(t.body,r),i=jn(t),s=yv(n,t,r,i)?((u=t.retry)!=null?u:0)+1:1,a;for(let h=0;h<s;h++){let v=new AbortController,g=t.signal,b=null;g&&(g.aborted?v.abort(g.reason):(b=()=>v.abort(g.reason),g.addEventListener("abort",b,{once:!0})));let x=()=>{b&&g&&g.removeEventListener("abort",b),b=null},T=t.timeout&&t.timeout>0?setTimeout(()=>v.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let k=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:v.signal});T&&clearTimeout(T),x();let D={data:await hv(k,t.responseType),status:k.status,statusText:k.statusText,headers:k.headers,ok:k.ok,raw:k,config:t};if(!k.ok){if(k.status>=500&&h<s-1){await kd(((p=t.retryDelay)!=null?p:500)*2**h);continue}let C=new Ee(`Request failed with status ${k.status}`,D,t);for(let oe of Or)oe(C);throw C}for(let C of Zo)D=await C(D);return t.cache&&n==="GET"&&Fr.set(Ed(t),{expires:Date.now()+t.cache,value:D}),D}catch(k){if(T&&clearTimeout(T),x(),k instanceof Ee)throw k;if(a=k,(k==null?void 0:k.name)==="AbortError"&&((f=t.signal)==null?void 0:f.aborted))break;if(h<s-1){await kd(((m=t.retryDelay)!=null?m:500)*2**h);continue}}}let l=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,c=new Ee(l,void 0,t,a);for(let h of Or)h(c);throw c}function kd(e){return new Promise(t=>setTimeout(t,e))}async function Bn(e){return(await zt(e)).data}var ve={defaults:De,get(e,t={}){return Bn({...t,url:e,method:"GET"})},post(e,t,n={}){return Bn({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return Bn({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return Bn({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return Bn({...t,url:e,method:"DELETE"})},head(e,t={}){return Bn({...t,url:e,method:"HEAD"})},request:zt,upload(e,t,n={}){return new Promise((r,o)=>{var l,c;let i=new XMLHttpRequest,s=jn({url:e});i.open((l=n.method)!=null?l:"POST",s);for(let[d,u]of Object.entries({...De.headers,...n.headers}))d.toLowerCase()!=="content-type"&&i.setRequestHeader(d,u);let a=Md();a&&i.setRequestHeader(De.csrfHeader,a),i.upload.addEventListener("progress",d=>{var u;d.lengthComputable&&((u=n.onProgress)==null||u.call(n,Math.round(d.loaded/d.total*100),d.loaded,d.total))}),i.addEventListener("load",()=>{let d=i.getResponseHeader("content-type")||"",u=i.responseText;if(d.includes("json"))try{u=JSON.parse(i.responseText)}catch(p){}i.status>=200&&i.status<300?r(u):o(new Ee(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new Ee("Network failure during upload"))),i.addEventListener("abort",()=>o(new Ee("Upload canceled"))),(c=n.signal)==null||c.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(jn({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(jn({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:l,value:c}=await o.read();if(l)break;s+=i.decode(c,{stream:!0});let d=s.split(`
|
|
62
|
-
`);s=(a=d.pop())!=null?a:"";for(let u of d)u.trim()&&t(u)}s.trim()&&t(s)},interceptors:{request:{use(e){return Jo.push(e),()=>{let t=Jo.indexOf(e);t>-1&&Jo.splice(t,1)}}},response:{use(e){return Zo.push(e),()=>{let t=Zo.indexOf(e);t>-1&&Zo.splice(t,1)}}},error:{use(e){return Or.push(e),()=>{let t=Or.indexOf(e);t>-1&&Or.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:
|
|
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 Wc(e,t,n){Et()&&sn(`duplicate key "${String(t)}" in v-for="${n}" on element ${kt(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 _c(e,t,n){Et()&&sn(`required prop "${n}" missing from component "${t}" at ${kt(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function Rr(e,t){Cr(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var an=new WeakMap,Fo=new WeakMap,Tt=new WeakSet,Io=new WeakMap;function Ws(e){return Tt.has(e)}function _s(e){Tt.add(e)}function Lt(e){return an.get(e)}function Ve(e){let t=e;for(;t;){let n=an.get(t);if(n)return n;t=t.parentNode}return ct}function Jc(e,t){let n=Io.get(e);n||Io.set(e,n=[]),n.push(t)}function Zc(e){var t;return(t=Io.get(e))!=null?t:[]}var qs=new WeakSet;function Ks(e){qs.add(e),e.remove()}function dt(e,t){let n=Fo.get(e);n||Fo.set(e,n=[]),n.push(t)}function X(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--)X(n[r])}let t=Fo.get(e);if(t){Fo.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){K(r,"cleanup")}}e.nodeType===1&&Rm(e),an.delete(e),Io.delete(e),Tt.delete(e)}var Oo=new Map,Mm=4e3;function $n(e,t){let n=`${e}\0${t}`,r=Oo.get(n);if(r!==void 0)return r;let o=Sm(e,t);return Oo.size>=Mm&&Oo.clear(),Oo.set(n,o),o}function Sm(e,t){let n=w.prefix,r;if(e.startsWith("@"))r=`on:${e.slice(1)}`;else if(e.startsWith(":")&&e.length>1)r=`bind:${e.slice(1)}`;else if(e.startsWith(".")&&e.length>1)r=`bind:${e.slice(1)}.prop`;else if(e.startsWith(n))r=e.slice(n.length);else if(e.startsWith("data-v-"))r=e.slice(7);else return null;if(!r)return null;let o=r.split("."),i=o.shift(),s={};for(let d of o){let u=d.indexOf("=");u>-1?s[d.slice(0,u)]=d.slice(u+1):s[d]=!0}let a=i.indexOf(":"),l=a>-1?i.slice(0,a):i,c=a>-1?i.slice(a+1):void 0;return{raw:e,name:l,arg:c,modifiers:s,expression:t}}function Dn(e){let t=[],n=Pt.get(e);if(n&&n.size)for(let[r,o]of n){let i=$n(r,o);i&&(t.push(i),Yc(e,i.name))}else{let r=ed(e);for(let o=0;o<r.length;o++){let i=r[o];if(!Cm(i))continue;let s=$n(i,e.getAttribute(i));s&&(t.push(s),Yc(e,s.name))}}return t.length<2?t:t.sort((r,o)=>Kc(o)-Kc(r))}var Am=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function ed(e){return Am?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function Cm(e){return Xs(e)||e.charCodeAt(0)===46&&e.length>1}function Kc(e){var t,n;return(n=(t=wt.get(e.name))==null?void 0:t.priority)!=null?n:0}var $r=new Map,zo=new WeakMap;function Yc(e,t){let n=$r.get(t);n||$r.set(t,n=new Set),n.add(e);let r=zo.get(e);r||zo.set(e,r=new Set),r.add(t)}function Rm(e){var n;let t=zo.get(e);if(t){for(let r of t)(n=$r.get(r))==null||n.delete(e);zo.delete(e)}}function Ys(e,t){var n;return(n=$r.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function Bo(e,t){let n=[],r=$r.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(`[${w.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 Hn(e,t){let n=e;for(;n;){if(Ys(n,t))return n;n=n.parentElement}return null}var Pt=new WeakMap;function Xs(e){return e.startsWith(w.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function ke(e,t){var r;let n=(r=Pt.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function Nt(e,t){let n=Pt.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function td(e){let t=Pt.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];Xs(o.name)&&n.set(o.name,o.value)}return n}function $m(e){if(!w.cleanAttributes)return;let t=ed(e),n=Pt.get(e);n||Pt.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];Xs(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function nd(e){let t=Pt.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function Gs(e){let t=Pt.get(e);return t&&t.size?!0:Qs(e)}function Qs(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(w.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function q(e,t,n,r){if(e)try{return F(lt(e),t)}catch(o){Et()&&Uc(r!=null?r:t.el,n!=null?n:"expression",e,o),K(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var rd=new WeakSet;function jo(e){rd.add(e)}function Xc(e,t,n){let r=wt.get(t.name);if(!r){Et()&&t.raw.startsWith(w.prefix)&&qc(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new et(!0);dt(e,()=>a.stop()),Jc(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return q(a!=null?a:t.expression,n,t.raw,e)},effect(a){let l=i();l.run(()=>_e(a,{scope:l}))},cleanup(a){dt(e,a)},walk(a,l){se(a,l)}};try{r.setup(s)}catch(a){K(a,`directive ${t.raw}`)}}var Vs=null;function od(e){Vs=e}var Dm=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function se(e,t){let n=t!=null?t:Ve(e.parentNode);if(e.nodeType===11){let f=Array.from(e.childNodes);for(let m of f)se(m,n);return}if(e.nodeType===3){id(e,n);return}if(e.nodeType!==1)return;let r=e;if(Tt.has(r))return;let o=r.tagName;if(Dm.has(o))return;if(r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)){Tt.add(r);return}let i=n,s=Dn(r),a=$e.size===0&&Pn.size===0||r.hasAttribute(`${w.prefix}component`)?null:zm(o);if(s.length===0&&!a){Gc(r,i);return}Tt.add(r);for(let f of s){let m=wt.get(f.name);if(m!=null&&m.terminal){Xc(r,f,i);return}}let l=s.find(f=>f.name==="data"),c=s.find(f=>f.name==="component"),d=c?c.expression||"":a||"",u=!1;if(d&&Vs){let f=Vs(r,d,i);f&&(i=f,u=!0,an.set(r,i))}else if(l||c){let f=l?q(l.expression||"{}",i,"v-data"):{};i=i.reactiveChild(f&&typeof f=="object"?f:{},r),an.set(r,i)}let p=u?n:i;for(let f of s)f.name==="data"||f.name==="component"||Xc(r,f,p);$m(r),rd.has(r)||Gc(r,i)}function Gc(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&id(o,t);for(let o of n)se(o,(r=an.get(o))!=null?r:t)}var Hm=500,Qc=new Map;function Pm(e){let t=e.trim();if(!t)return!1;let n=Qc.get(t);if(n!==void 0)return n;let r=!0;try{r=lt(t).t!=="seq"}catch(o){r=!1}return Qc.set(t,r),r}function Nm(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 Om(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):Nm(e,i);if(a===-1){n+=e[i],r=i+1;continue}let l=s?e.slice(i+2,a):e.slice(i+1,a),c=s?a+2:a+1;if((s||l.length<=Hm)&&Pm(l)){o(),t.push({expression:l.trim(),raw:e.slice(i,c),explicit:s}),r=c;continue}n+=e[i],r=i+1}return o(),t}var Fm=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function Im(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=lt(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 id(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Tt.has(e))return;let r=e.parentElement;for(;r;){if(Fm.has(r.tagName)||r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Om(n);if(!o.some(s=>s.expression))return;Tt.add(e);let i=new et(!0);dt(e,()=>i.stop()),Jc(e,i),i.run(()=>_e(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let l=q(a.expression,t,"interpolation");s+=Im(a,l,t)?a.raw:Ht(l)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function Ot(e,t){an.set(e,t)}function zm(e){let t=e.toLowerCase();if($e.has(t))return t;let n=Pn.get(t);return n!=null?n:null}var Pn=new Map;var Us=!1,Rn=null;function sd(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:w.root)!=null?n:document.body;t&&(Object.assign(Pe,w.globals),se(t,ct),Us||(Us=!0,w.autoDiscover&&Bm(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Bm(e){typeof MutationObserver!="undefined"&&(Rn=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(qs.has(o)){qs.delete(o);continue}o.nodeType===1&&!o.isConnected&&X(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Tt.has(o)||se(o,Ve(o.parentNode)))}}}),Rn.observe(e,{childList:!0,subtree:!0}))}function ad(){Rn==null||Rn.disconnect(),Rn=null,Us=!1}function ld(e){se(e!=null?e:document.body,e?Ve(e.parentNode):ct)}be();le();var Mt=new Set,cd=new Set;function Ft(e,t){let n=rn(e);$e.set(n,t),Pn.set(n.replace(/-/g,""),n),jm(n)}function jm(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${w.prefix}component="${e}"]`];for(let o of n){let i;try{i=Array.from(document.querySelectorAll(o))}catch(s){continue}for(let s of i){if((r=Lt(s))!=null&&r.component||qm(s))continue;let a=Ve(s.parentNode);Ws(s)&&(X(s),nd(s)),se(s,a)}}}function qm(e){let t=e.parentElement;for(;t&&t!==document.body;){if(Qs(t)&&!Ws(t))return!0;t=t.parentElement}return!1}function Vm(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 Um(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 Js(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Wm(e,t,n,r,o){var c;let i=Z({}),s=Object.keys(t),a=new Map;for(let d of s)a.set(d.toLowerCase(),d),a.set(rn(d),d),a.set(Js(d).toLowerCase(),d);for(let d of s)t[d].default!==void 0&&(i[d]=t[d].default);let l=Array.from(e.attributes);for(let d of l){let u=$n(d.name,d.value);if(u&&u.name==="bind"&&u.arg){let f=(c=a.get(u.arg.toLowerCase()))!=null?c:Js(u.arg);if(s.length&&!a.has(u.arg.toLowerCase()))continue;r.run(()=>_e(()=>{i[f]=q(u.expression,n,`:${u.arg}`)}));continue}if(u)continue;let p=a.get(d.name.toLowerCase());p?i[p]=Vm(d.value,t[p]):s.length||(i[Js(d.name)]=d.value)}for(let d of s)t[d].required&&i[d]===void 0&&_c(e,o,d);return i}function _m(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 l,c;let a=s.nodeType===1&&(l=s.getAttribute("slot"))!=null?l:null;if(a){s.removeAttribute("slot");let d=(c=o.get(a))!=null?c:[];d.push(s),o.set(a,d)}else i.push(s)});for(let s of r){let a=s.getAttribute("name"),l=a?o.get(a):i,c=document.createDocumentFragment();if(l&&l.length)for(let d of l)c.appendChild(d);else for(;s.firstChild;)c.appendChild(s.firstChild);Array.from(c.childNodes).forEach(d=>{d.nodeType===1&&Km(d,n)}),s.replaceWith(c)}}var qo=null;function dd(e){qo=e}function Km(e,t){qo==null||qo(e,t)}function ud(e,t,n){var k,A,D,C,oe,N,pe,ie;let r=t?rn(t):"",o=r?(D=(A=$e.get(r))!=null?A:$e.get((k=Pn.get(r))!=null?k:""))!=null?D:{}:{};r&&!$e.has(r)&&!Pn.has(r)&&Vc(e,t);let i=new et(!0),s=Um(o),a=Wm(e,s,n,i,r||"inline");!o.state&&o.data&&Rr("data()","state()"),o.destroyed&&Rr("destroyed()","unmounted()");let l=(C=o.state)!=null?C:o.data,c={},d={},u=o.inheritScope?n:n.root,p=new on({},u,e);p.component=d;try{c=l?(oe=l.call(d,a))!=null?oe:{}:{}}catch(R){K(R,`state() of component "${t}"`)}let f=e.getAttribute(`${w.prefix}data`);if(f){let R=q(f,n,"v-data");R&&typeof R=="object"&&Object.assign(c,R)}if(o.provide)try{let R=typeof o.provide=="function"?o.provide.call(d):o.provide;R&&typeof R=="object"&&(p.provides={...R})}catch(R){K(R,`provide() of component "${t}"`)}if(o.inject){let R=Array.isArray(o.inject)?o.inject.map(S=>[S,{from:S}]):Object.entries(o.inject).map(([S,B])=>[S,B!=null?B:{}]);for(let[S,B]of R){let je=(N=B.from)!=null?N:S,qe=n.inject(je,B.default);S in c||(c[S]=qe)}}let m=Z(c),h={};if(o.computed)for(let[R,S]of Object.entries(o.computed))h[R]=Sr(()=>S.call(d));let v={};if(o.methods)for(let[R,S]of Object.entries(o.methods))v[R]=(...B)=>S.apply(d,B);for(let[R,S]of Object.entries(o))typeof S=="function"&&(Ym.has(R)||R==="state"||R==="data"||R in v||(v[R]=(...B)=>S.apply(d,B)));let g=(R,S)=>{let B=new CustomEvent(R,{detail:S,bubbles:!0,cancelable:!0});B.__voodoo=!0,e.dispatchEvent(B)},b={$el:e,$props:a,$name:r||"inline",$scope:p,$parent:(ie=(pe=n.owner)==null?void 0:pe.component)!=null?ie:null,emit:g,$emit:g,$nextTick:R=>Promise.resolve().then(()=>(be(),Cc)).then(S=>S.nextTick(R)),$watch:(R,S)=>Oe(()=>q(R,p),S)},x={get(R,S){if(typeof S!="symbol")return S==="$refs"?p.allRefs:S in b?b[S]:S in h?h[S].value:S in v?v[S]:S in a?a[S]:m[S]},set(R,S,B){return typeof S=="symbol"?!0:S in h?(h[S].value=B,!0):S in a?(a[S]=B,!0):(m[S]=B,!0)},has(R,S){if(typeof S=="symbol")return!1;let B=S;return B==="$refs"||B in b||B in h||B in v||B in a||B in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(v),...Object.keys(h)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(d,x);if(p.data=T,Object.setPrototypeOf(d,T),o.watch)for(let[R,S]of Object.entries(o.watch))i.run(()=>Oe(()=>T[R],(B,je)=>S.call(T,B,je)));if(o.style&&!cd.has(r)){cd.add(r);let R=document.createElement("style");R.setAttribute("data-voodoo-component",r),R.textContent=o.style,document.head.appendChild(R)}if(Nn(o,T,"beforeMount"),o.template){let R=document.createDocumentFragment();for(;e.firstChild;)R.appendChild(e.firstChild);e.innerHTML=o.template,_m(e,R,n)}return Mt.add(T),Me(()=>{Nn(o,T,"mounted"),o.updated&&i.run(()=>_e(()=>{for(let R of Object.keys(m))m[R];Nn(o,T,"updated")}))}),dt(e,()=>{Nn(o,T,"beforeUnmount"),i.stop(),Mt.delete(T),Nn(o,T,"unmounted"),Nn(o,T,"destroyed")}),p}var Ym=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function Nn(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){K(o,`hook ${n}`)}}be();le();var On=[],Zs=null,Vo=0,fd=-1,ta=0,ea=!1;function pd(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function Xm(){if(Zs||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(Zs=new MutationObserver(()=>{Vo++}),Zs.observe(e,{childList:!0,subtree:!0}))}function md(){if(ea)return;ea=!0;let e=()=>{ea=!1,Gm()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function Gm(){var t;Vo===fd?ta++:ta=0,fd=Vo;let e=pd();for(let n=On.length-1;n>=0;n--){let r=On[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){On.splice(n,1),r.action(o);continue}e-r.since>1e4&&(On.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}On.length&&md()}function na(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}Xm(),On.push({...e,since:pd()}),md()}function vd(){return typeof document=="undefined"||!document.body?!1:ta>=2}function Qm(){return typeof document=="undefined"||!document.body?!1:Vo===0}function Uo(e){typeof document!="undefined"&&na({ready:()=>vd()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function hd(e){if(typeof document!="undefined"){if(Qm()){Promise.resolve().then(e);return}na({ready:()=>vd()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function Wo(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&na({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var Jm=0,_o=null;function gd(e){_o=e}function bd(e={}){let t=`voodoo-app-${++Jm}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,l="",c=null,d=[];function u(){if(n)for(let[m,h]of Object.entries(n)){let v=rn(m);$e.has(v)||(Ft(v,h),s.push(v))}}function p(m){var v,g;if(c)return c;a=m,l=m.innerHTML,Object.assign(Pe,o.globalProperties),u();let h={...r};if(Object.keys(i).length){let b=h.provide;h.provide=()=>({...typeof b=="function"?b():b!=null?b:{},...i})}Ft(t,h),m.setAttribute(`${w.prefix}component`,t);try{se(m,ct)}catch(b){return K(b,`application mounting "${t}"`),null}if(c=(g=(v=Lt(m))==null?void 0:v.component)!=null?g:null,c){let b=d;d=[];for(let x of b)x(c)}return c}let f={name:t,config:o,get instance(){return c},get container(){return a},get isMounted(){return c!==null},component(m,h){var g;let v=rn(m);return h===void 0?(g=n&&n[m])!=null?g:$e.get(v):(n?n[m]=h:e.components={[m]:h},c&&!$e.has(v)&&(Ft(v,h),s.push(v)),f)},directive(m,h){return _o==null||_o(m,h),f},use(m,h){return No(Zm(),m,h),f},provide(m,h){return i[m]=h,f},mount(m){if(c)return c;if(typeof m!="string")return p(m);let h=null;return Wo(m,v=>{h=p(v)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),h},whenMounted(){return c?Promise.resolve(c):new Promise(m=>d.push(m))},unmount(){if(a){X(a),a.removeAttribute(`${w.prefix}component`),a.innerHTML=l,$e.delete(t);for(let m of s)$e.delete(m);s.length=0,c=null,a=null}}};return f}var yd=null;function xd(e){yd=e}function Zm(){return yd}be();be();var It=new Map,ra=Mr(0),oa=new Map;function wd(e,t,n={}){let r=It.get(e);if(!t){if(!r){let l=Z({});return It.set(e,l),l}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 l=localStorage.getItem(o);if(l){let c=JSON.parse(l);for(let[d,u]of Object.entries(c))i[d]&&!("value"in i[d])||(s[d]=u)}}catch(l){}let a=Z(s);for(let[l,c]of Object.entries(i)){let d=c.value;typeof d=="function"&&(a[l]=(...u)=>d.apply(a,u))}if(It.set(e,a),ra.value++,n.persist&&typeof localStorage!="undefined"){let l=Oe(a,()=>{try{localStorage.setItem(o,JSON.stringify(ev(a)))}catch(c){}},{deep:!0});oa.set(e,l)}return a}function ev(e){let t={},n=Object.getOwnPropertyDescriptors(Le(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var Fn=new Proxy({},{get:(e,t)=>(ra.value,It.get(t)),has:(e,t)=>(ra.value,It.has(t)),ownKeys:()=>[...It.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function Ed(e){var t;(t=oa.get(e))==null||t(),oa.delete(e),It.delete(e)}function Ko(){return[...It.keys()]}var ca={};So(ca,{capitalize:()=>kd,chunk:()=>av,clone:()=>Dr,debounce:()=>Ue,device:()=>me,escapeHtml:()=>I,formatCurrency:()=>ia,formatDate:()=>aa,formatFileSize:()=>mv,formatNumber:()=>sa,formatPercent:()=>vv,get:()=>Pr,groupBy:()=>iv,isBrowser:()=>Yo,matchesMedia:()=>In,memoize:()=>ov,merge:()=>Xo,once:()=>rv,parseDuration:()=>G,random:()=>dv,relativeTime:()=>la,sample:()=>uv,set:()=>cv,setFormatDefaults:()=>Qo,sleep:()=>nv,slugify:()=>fv,sortBy:()=>lv,stripTags:()=>pv,throttle:()=>Hr,titleCase:()=>Nr,truncate:()=>Go,uid:()=>ae,unique:()=>sv,uuid:()=>tv});function tv(){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 ae(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function nv(e){return new Promise(t=>setTimeout(t,e))}function G(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 Ue(e,t=250,n=!1){let r=null,o=null,i,s=function(...a){o=a,i=this;let l=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(i,o)},t),l&&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 Hr(e,t=250){let n=0,r=null,o=null,i=function(...s){let a=Date.now();o=s;let l=t-(a-n);l<=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)},l))};return i.cancel=()=>{r&&clearTimeout(r),r=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},i}function rv(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function ov(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 Dr(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=>Dr(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Dr(r)]));if(e instanceof Set)return new Set([...e].map(n=>Dr(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Dr(r);return t}function Xo(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]=Xo({...i},o):e[r]=o}return e}function iv(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 sv(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 av(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 lv(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),l=r(s);return a==null&&l==null?0:a==null?1:l==null?-1:typeof a=="string"&&typeof l=="string"?a.localeCompare(l,void 0,{numeric:!0})*o:(a>l?1:a<l?-1:0)*o})}function Pr(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 cv(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 dv(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function uv(e){return e[Math.floor(Math.random()*e.length)]}function fv(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 Go(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 kd(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function Nr(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>kd(t.toLowerCase()))}function I(e){return String(e!=null?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function pv(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var zn="pt-BR",Td="BRL";function Qo(e,t){e&&(zn=e),t&&(Td=t)}function ia(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:zn,{style:"currency",currency:(o=t.currency)!=null?o:Td}).format(n)}function sa(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:zn,o).format(n)}function aa(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:zn;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 la(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:zn,{numeric:"auto"});for(let[a,l]of i)if(o>=l||a==="second")return s.format(Math.round(r/l),a);return""}function mv(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 vv(e,t=0,n){return new Intl.NumberFormat(n!=null?n:zn,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var Yo=typeof window!="undefined"&&typeof window.document!="undefined";function In(e){if(!Yo||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var me={get touch(){return Yo&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return In("(max-width: 767px)")},get tablet(){return In("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return In("(min-width: 1024px)")},get online(){return!Yo||navigator.onLine},get reducedMotion(){return In("(prefers-reduced-motion: reduce)")},get darkMode(){return In("(prefers-color-scheme: dark)")}};var Ee=class extends Error{constructor(n,r,o,i){super(n);H(this,"response",r);H(this,"config",o);H(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"},Jo=[],Zo=[],Or=[],Fr=new Map;function Ld(e){var t;return`${(t=e.method)!=null?t:"GET"} ${jn(e)}`}function hv(e){if(!e){Fr.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Fr.keys()])t(n)&&Fr.delete(n)}var Sd="voodoo:offline-queue";function da(){try{return JSON.parse(localStorage.getItem(Sd)||"[]")}catch(e){return[]}}function ua(e){try{localStorage.setItem(Sd,JSON.stringify(e))}catch(t){}}function gv(e){var n,r;if(typeof localStorage=="undefined")return;let t=da();t.push({url:jn(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),ua(t)}async function Ad(){if(typeof localStorage=="undefined")return 0;let e=da();if(!e.length)return 0;ua([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await zt({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=da();ua([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Ad()});function jn(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 Cd(){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 bv(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 yv(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 xv=new Set(["GET","HEAD","OPTIONS"]);function wv(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function Ev(e,t,n,r){var o;return xv.has(e)||t.retryUnsafe===!0||wv(n)?!0:(((o=t.retry)!=null?o:0)>0&&Cr(`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 zt(e){var d,u,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 h of Jo)t=await h(t);let n=((d=t.method)!=null?d:"GET").toUpperCase();if(t.cache&&n==="GET"){let h=Fr.get(Ld(t));if(h&&h.expires>Date.now())return h.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return gv(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 h=Cd();h&&!r[De.csrfHeader]&&(r[De.csrfHeader]=h)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=bv(t.body,r),i=jn(t),s=Ev(n,t,r,i)?((u=t.retry)!=null?u:0)+1:1,a;for(let h=0;h<s;h++){let v=new AbortController,g=t.signal,b=null;g&&(g.aborted?v.abort(g.reason):(b=()=>v.abort(g.reason),g.addEventListener("abort",b,{once:!0})));let x=()=>{b&&g&&g.removeEventListener("abort",b),b=null},T=t.timeout&&t.timeout>0?setTimeout(()=>v.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let k=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:v.signal});T&&clearTimeout(T),x();let D={data:await yv(k,t.responseType),status:k.status,statusText:k.statusText,headers:k.headers,ok:k.ok,raw:k,config:t};if(!k.ok){if(k.status>=500&&h<s-1){await Md(((p=t.retryDelay)!=null?p:500)*2**h);continue}let C=new Ee(`Request failed with status ${k.status}`,D,t);for(let oe of Or)oe(C);throw C}for(let C of Zo)D=await C(D);return t.cache&&n==="GET"&&Fr.set(Ld(t),{expires:Date.now()+t.cache,value:D}),D}catch(k){if(T&&clearTimeout(T),x(),k instanceof Ee)throw k;if(a=k,(k==null?void 0:k.name)==="AbortError"&&((f=t.signal)==null?void 0:f.aborted))break;if(h<s-1){await Md(((m=t.retryDelay)!=null?m:500)*2**h);continue}}}let l=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,c=new Ee(l,void 0,t,a);for(let h of Or)h(c);throw c}function Md(e){return new Promise(t=>setTimeout(t,e))}async function Bn(e){return(await zt(e)).data}var ve={defaults:De,get(e,t={}){return Bn({...t,url:e,method:"GET"})},post(e,t,n={}){return Bn({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return Bn({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return Bn({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return Bn({...t,url:e,method:"DELETE"})},head(e,t={}){return Bn({...t,url:e,method:"HEAD"})},request:zt,upload(e,t,n={}){return new Promise((r,o)=>{var l,c;let i=new XMLHttpRequest,s=jn({url:e});i.open((l=n.method)!=null?l:"POST",s);for(let[d,u]of Object.entries({...De.headers,...n.headers}))d.toLowerCase()!=="content-type"&&i.setRequestHeader(d,u);let a=Cd();a&&i.setRequestHeader(De.csrfHeader,a),i.upload.addEventListener("progress",d=>{var u;d.lengthComputable&&((u=n.onProgress)==null||u.call(n,Math.round(d.loaded/d.total*100),d.loaded,d.total))}),i.addEventListener("load",()=>{let d=i.getResponseHeader("content-type")||"",u=i.responseText;if(d.includes("json"))try{u=JSON.parse(i.responseText)}catch(p){}i.status>=200&&i.status<300?r(u):o(new Ee(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new Ee("Network failure during upload"))),i.addEventListener("abort",()=>o(new Ee("Upload canceled"))),(c=n.signal)==null||c.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(jn({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(jn({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:l,value:c}=await o.read();if(l)break;s+=i.decode(c,{stream:!0});let d=s.split(`
|
|
62
|
+
`);s=(a=d.pop())!=null?a:"";for(let u of d)u.trim()&&t(u)}s.trim()&&t(s)},interceptors:{request:{use(e){return Jo.push(e),()=>{let t=Jo.indexOf(e);t>-1&&Jo.splice(t,1)}}},response:{use(e){return Zo.push(e),()=>{let t=Zo.indexOf(e);t>-1&&Zo.splice(t,1)}}},error:{use(e){return Or.push(e),()=>{let t=Or.indexOf(e);t>-1&&Or.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:hv,flushOfflineQueue:Ad,parseDuration:G};He();var kv=`
|
|
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
|
-
`,wv={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},Ir=new Map,Bt={duration:4e3,position:"top-right",max:6};function Ev(e){he(),ne("toast",xv);let t=Ir.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),Ir.set(e,t)),t}function ln(e){var p,f,m,h;let t=(p=e.position)!=null?p:Bt.position,n=(f=e.type)!=null?f:"default",r=(m=e.duration)!=null?m:n==="loading"?0:Bt.duration,o=Ev(t),i=ae("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,l=null,c=()=>{a||(a=!0,l&&clearTimeout(l),s.classList.add("v-out"),s.classList.remove("v-in"),setTimeout(()=>{var v;s.remove(),(v=e.onClose)==null||v.call(e),o.children.length||(o.remove(),Ir.delete(t))},220))},d=v=>{var x,T,k,A;let g=(x=v.type)!=null?x:n;if(s.setAttribute("data-type",g),v.html)s.innerHTML=v.html;else{s.textContent="";let D=document.createElement("span");D.className="v-toast-icon",D.setAttribute("aria-hidden","true"),D.textContent=(T=wv[g])!=null?T:"",s.appendChild(D);let C=document.createElement("div");C.className="v-toast-body";let oe=document.createElement("div");if(oe.className="v-toast-title",oe.textContent=(k=v.title)!=null?k:"",C.appendChild(oe),v.description){let N=document.createElement("div");N.className="v-toast-desc",N.textContent=v.description,C.appendChild(N)}if(s.appendChild(C),v.action){let N=document.createElement("button");N.type="button",N.className="v-toast-action",N.textContent=v.action.label,N.addEventListener("click",()=>{var pe;(pe=v.action)==null||pe.onClick(),c()}),s.appendChild(N)}if(v.closable!==!1&&g!=="loading"){let N=document.createElement("button");N.type="button",N.className="v-toast-close",N.setAttribute("aria-label","Close notification"),N.innerHTML="×",N.addEventListener("click",c),s.appendChild(N)}}let b=(A=v.duration)!=null?A:r;if(b>0){let D=document.createElement("div");D.className="v-toast-bar",D.style.animation=`v-toast-bar ${b}ms linear forwards`,s.appendChild(D)}};for(d(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>Bt.max;)(h=o.firstElementChild)==null||h.remove();let u=v=>{l&&clearTimeout(l),v>0&&(l=setTimeout(c,v))};return u(r),s.addEventListener("mouseenter",()=>{l&&clearTimeout(l)}),s.addEventListener("mouseleave",()=>u(r)),{id:i,close:c,update(v){var g;d({...e,...v}),v.duration!==void 0?u(v.duration):((g=v.type)!=null?g:n)!=="loading"&&u(Bt.duration)}}}function qn(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var tt=Object.assign((e,t={})=>ln({...qn(e,"default"),...t}),{success:(e,t={})=>ln({...qn(e,"success"),...t}),error:(e,t={})=>ln({...qn(e,"error"),...t}),warning:(e,t={})=>ln({...qn(e,"warning"),...t}),info:(e,t={})=>ln({...qn(e,"info"),...t}),loading:(e,t={})=>ln({...qn(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,i;let n=ln({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:Bt.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:Bt.duration}),s}},clear(){for(let[e,t]of Ir)t.remove(),Ir.delete(e)},configure(e){Object.assign(Bt,e)},settings:Bt});function Rd(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 ue=Rd(()=>typeof localStorage!="undefined"?localStorage:void 0),ei=Rd(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),ti={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}},jt={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())}},Vn=new Map,ni={set(e,t,n=0){return Vn.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=Vn.get(e);return n?n.expires<Date.now()?(Vn.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){Vn.delete(e)},clear(){Vn.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 Vn.size}},ua="voodoo:theme",fa=null,ut={get current(){var e,t;return(t=(e=ue.get(ua))!=null?e:fa)!=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){fa=e,ue.set(ua,e),this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return fa!==null||ue.get(ua)!=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 Ke=Z({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function pa(){typeof window!="undefined"&&(Ke.width=window.innerWidth,Ke.height=window.innerHeight,Ke.mobile=window.innerWidth<768,Ke.tablet=window.innerWidth>=768&&window.innerWidth<1024,Ke.desktop=window.innerWidth>=1024,Ke.portrait=window.innerHeight>=window.innerWidth,Ke.landscape=!Ke.portrait)}var qt=Z({online:!0,type:"unknown",saveData:!1,slow:!1});function ri(){var t;if(typeof navigator=="undefined")return;qt.online=navigator.onLine;let e=navigator.connection;e&&(qt.type=(t=e.effectiveType)!=null?t:"unknown",qt.saveData=!!e.saveData,qt.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var oi={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""}}},$d=!1;function Dd(){var t,n;if($d||($d=!0,P("$el",r=>r.el),P("$refs",r=>r.allRefs),P("$data",r=>r.data),P("$root",r=>r.root.data),P("$parent",r=>{var o,i;return(i=(o=r.parent)==null?void 0:o.data)!=null?i:null}),P("$self",r=>{var o,i;return(i=(o=r.owner)==null?void 0:o.component)!=null?i:r.data}),P("$store",()=>Fn),P("$http",()=>ve),P("$toast",()=>tt),P("$clipboard",()=>oi),P("$storage",()=>ue),P("$session",()=>ei),P("$cookie",()=>ti),P("$cache",()=>ni),P("$url",()=>jt),P("$theme",()=>ut),P("$device",()=>me),P("$screen",()=>Ke),P("$network",()=>qt),P("$nextTick",()=>at),P("$watch",r=>(o,i)=>Oe(()=>q(o,r,"$watch"),i)),P("$dispatch",r=>(o,i)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:i,bubbles:!0}))}),P("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;pa(),ri();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(pa)}),window.addEventListener("orientationchange",pa),window.addEventListener("online",ri),window.addEventListener("offline",ri),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",ri)}be();function ma(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 va(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 ii(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=Z({data:null,loading:!1,error:null,loaded:!1,async reload(){var c,d,u,p,f;let a=n();if(!a)return;o==null||o.abort();let l=o=new AbortController;s.loading=!0,s.error=null;try{let m=await ve.request({url:a,method:(t.method||"GET").toUpperCase(),params:r(),headers:t.headers,cache:t.cache||void 0,retry:(c=t.retry)!=null?c:0,timeout:(d=t.timeout)!=null?d:ve.defaults.timeout,signal:l.signal});if(l.signal.aborted)return;s.data=ma(m.data,t.jsonPath),s.loaded=!0,(u=t.onSuccess)==null||u.call(t,s.data)}catch(m){if(l.signal.aborted)return;let h=m instanceof Ee&&(p=va(m))!=null?p:m.message;s.error={name:"ResourceError",message:h},(f=t.onError)==null||f.call(t,m,h)}finally{l.signal.aborted||(s.loading=!1),o===l&&(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}He();He();var Hd=`
|
|
107
|
+
`,Tv={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},Ir=new Map,Bt={duration:4e3,position:"top-right",max:6};function Lv(e){he(),ne("toast",kv);let t=Ir.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),Ir.set(e,t)),t}function ln(e){var p,f,m,h;let t=(p=e.position)!=null?p:Bt.position,n=(f=e.type)!=null?f:"default",r=(m=e.duration)!=null?m:n==="loading"?0:Bt.duration,o=Lv(t),i=ae("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,l=null,c=()=>{a||(a=!0,l&&clearTimeout(l),s.classList.add("v-out"),s.classList.remove("v-in"),setTimeout(()=>{var v;s.remove(),(v=e.onClose)==null||v.call(e),o.children.length||(o.remove(),Ir.delete(t))},220))},d=v=>{var x,T,k,A;let g=(x=v.type)!=null?x:n;if(s.setAttribute("data-type",g),v.html)s.innerHTML=v.html;else{s.textContent="";let D=document.createElement("span");D.className="v-toast-icon",D.setAttribute("aria-hidden","true"),D.textContent=(T=Tv[g])!=null?T:"",s.appendChild(D);let C=document.createElement("div");C.className="v-toast-body";let oe=document.createElement("div");if(oe.className="v-toast-title",oe.textContent=(k=v.title)!=null?k:"",C.appendChild(oe),v.description){let N=document.createElement("div");N.className="v-toast-desc",N.textContent=v.description,C.appendChild(N)}if(s.appendChild(C),v.action){let N=document.createElement("button");N.type="button",N.className="v-toast-action",N.textContent=v.action.label,N.addEventListener("click",()=>{var pe;(pe=v.action)==null||pe.onClick(),c()}),s.appendChild(N)}if(v.closable!==!1&&g!=="loading"){let N=document.createElement("button");N.type="button",N.className="v-toast-close",N.setAttribute("aria-label","Close notification"),N.innerHTML="×",N.addEventListener("click",c),s.appendChild(N)}}let b=(A=v.duration)!=null?A:r;if(b>0){let D=document.createElement("div");D.className="v-toast-bar",D.style.animation=`v-toast-bar ${b}ms linear forwards`,s.appendChild(D)}};for(d(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>Bt.max;)(h=o.firstElementChild)==null||h.remove();let u=v=>{l&&clearTimeout(l),v>0&&(l=setTimeout(c,v))};return u(r),s.addEventListener("mouseenter",()=>{l&&clearTimeout(l)}),s.addEventListener("mouseleave",()=>u(r)),{id:i,close:c,update(v){var g;d({...e,...v}),v.duration!==void 0?u(v.duration):((g=v.type)!=null?g:n)!=="loading"&&u(Bt.duration)}}}function qn(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var tt=Object.assign((e,t={})=>ln({...qn(e,"default"),...t}),{success:(e,t={})=>ln({...qn(e,"success"),...t}),error:(e,t={})=>ln({...qn(e,"error"),...t}),warning:(e,t={})=>ln({...qn(e,"warning"),...t}),info:(e,t={})=>ln({...qn(e,"info"),...t}),loading:(e,t={})=>ln({...qn(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,i;let n=ln({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:Bt.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:Bt.duration}),s}},clear(){for(let[e,t]of Ir)t.remove(),Ir.delete(e)},configure(e){Object.assign(Bt,e)},settings:Bt});function Hd(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 ue=Hd(()=>typeof localStorage!="undefined"?localStorage:void 0),ei=Hd(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),ti={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}},jt={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())}},Vn=new Map,ni={set(e,t,n=0){return Vn.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=Vn.get(e);return n?n.expires<Date.now()?(Vn.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){Vn.delete(e)},clear(){Vn.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 Vn.size}},fa="voodoo:theme",pa=null,ut={get current(){var e,t;return(t=(e=ue.get(fa))!=null?e:pa)!=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){pa=e,ue.set(fa,e),this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return pa!==null||ue.get(fa)!=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 Ke=Z({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function ma(){typeof window!="undefined"&&(Ke.width=window.innerWidth,Ke.height=window.innerHeight,Ke.mobile=window.innerWidth<768,Ke.tablet=window.innerWidth>=768&&window.innerWidth<1024,Ke.desktop=window.innerWidth>=1024,Ke.portrait=window.innerHeight>=window.innerWidth,Ke.landscape=!Ke.portrait)}var qt=Z({online:!0,type:"unknown",saveData:!1,slow:!1});function ri(){var t;if(typeof navigator=="undefined")return;qt.online=navigator.onLine;let e=navigator.connection;e&&(qt.type=(t=e.effectiveType)!=null?t:"unknown",qt.saveData=!!e.saveData,qt.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var oi={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""}}},Pd=!1;function Nd(){var t,n;if(Pd||(Pd=!0,P("$el",r=>r.el),P("$refs",r=>r.allRefs),P("$data",r=>r.data),P("$root",r=>r.root.data),P("$parent",r=>{var o,i;return(i=(o=r.parent)==null?void 0:o.data)!=null?i:null}),P("$self",r=>{var o,i;return(i=(o=r.owner)==null?void 0:o.component)!=null?i:r.data}),P("$store",()=>Fn),P("$http",()=>ve),P("$toast",()=>tt),P("$clipboard",()=>oi),P("$storage",()=>ue),P("$session",()=>ei),P("$cookie",()=>ti),P("$cache",()=>ni),P("$url",()=>jt),P("$theme",()=>ut),P("$device",()=>me),P("$screen",()=>Ke),P("$network",()=>qt),P("$nextTick",()=>at),P("$watch",r=>(o,i)=>Oe(()=>q(o,r,"$watch"),i)),P("$dispatch",r=>(o,i)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:i,bubbles:!0}))}),P("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;ma(),ri();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(ma)}),window.addEventListener("orientationchange",ma),window.addEventListener("online",ri),window.addEventListener("offline",ri),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",ri)}be();function va(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 ha(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 ii(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=Z({data:null,loading:!1,error:null,loaded:!1,async reload(){var c,d,u,p,f;let a=n();if(!a)return;o==null||o.abort();let l=o=new AbortController;s.loading=!0,s.error=null;try{let m=await ve.request({url:a,method:(t.method||"GET").toUpperCase(),params:r(),headers:t.headers,cache:t.cache||void 0,retry:(c=t.retry)!=null?c:0,timeout:(d=t.timeout)!=null?d:ve.defaults.timeout,signal:l.signal});if(l.signal.aborted)return;s.data=va(m.data,t.jsonPath),s.loaded=!0,(u=t.onSuccess)==null||u.call(t,s.data)}catch(m){if(l.signal.aborted)return;let h=m instanceof Ee&&(p=ha(m))!=null?p:m.message;s.error={name:"ResourceError",message:h},(f=t.onError)==null||f.call(t,m,h)}finally{l.signal.aborted||(s.loading=!1),o===l&&(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}He();He();var Od=`
|
|
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 Pd(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 Un(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function Wn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function Nd(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 Od(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function zr(e,t={}){ne("transitions",Hd);let n=Pd(t);return me.reducedMotion?Promise.resolve():new Promise(r=>{Un(e,n.enterFrom),Un(e,n.enterActive),Od(()=>{var s;Wn(e,n.enterFrom),Un(e,n.enterTo);let o=(s=t.duration)!=null?s:Nd(e),i=()=>{Wn(e,n.enterActive),Wn(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Br(e,t={}){ne("transitions",Hd);let n=Pd(t);return me.reducedMotion?Promise.resolve():new Promise(r=>{Un(e,n.leaveFrom),Un(e,n.leaveActive),Od(()=>{var s;Wn(e,n.leaveFrom),Un(e,n.leaveTo);let o=(s=t.duration)!=null?s:Nd(e),i=()=>{Wn(e,n.leaveActive),Wn(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function cn(e,t=240){return new Promise(n=>{e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block");let r=e.scrollHeight;e.style.overflow="hidden",e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.height=`${r}px`}),setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function dn(e,t=240){return new Promise(n=>{e.style.height=`${e.scrollHeight}px`,e.style.overflow="hidden",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px"}),setTimeout(()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function _n(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 Kn(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 si(e){let t=document;typeof t.startViewTransition=="function"&&!me.reducedMotion?t.startViewTransition(e):e()}be();le();function kv(e,t,n){try{let o={t:"assign",op:"=",target:lt(e),value:{t:"lit",v:n}};F(o,t)}catch(r){K(r,`assignment in "${e}"`)}}function jd(e){let t=w.prefix,n=e.hasAttribute(`${t}transition`),r=e.hasAttribute(`${t}enter-class`)||e.hasAttribute(`${t}leave-class`)||e.hasAttribute(`${t}enter-active-class`)||e.hasAttribute(`${t}leave-active-class`);if(!n&&!r)return null;let o=e.getAttribute(`${t}transition`)||"fade";return{name:o.startsWith("v-")?o:`v-${o}`,enterFrom:e.getAttribute(`${t}enter-class`)||void 0,enterActive:e.getAttribute(`${t}enter-active-class`)||void 0,enterTo:e.getAttribute(`${t}enter-to-class`)||void 0,leaveFrom:e.getAttribute(`${t}leave-class`)||void 0,leaveActive:e.getAttribute(`${t}leave-active-class`)||void 0,leaveTo:e.getAttribute(`${t}leave-to-class`)||void 0,duration:e.hasAttribute(`${t}duration`)?G(e.getAttribute(`${t}duration`)):void 0}}y("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Ht(n());let r=e.firstChild;r&&r.nodeType===3&&Ws(r)})});y("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;jo(t),n(()=>{let i=r();for(let s of Array.from(t.children))X(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))se(s,o)})});y("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=jd(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,zr(e,i)):Br(e,i).then(()=>{e.style.display="none"})})});y("if",({el:e,scope:t,expression:n,effect:r})=>{var p;let o=w.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(w.devtools?` v-if: ${n} `:"");(p=e.parentNode)==null||p.insertBefore(a,e);for(let f of i)_s(f.template),f.template.removeAttribute(`${o}if`),f.template.removeAttribute(`${o}else-if`),f.template.removeAttribute(`${o}else`),Ws(f.template);let l=jd(e),c=-1,d=[],u=()=>{let f=d;if(d=[],!f.length)return;let m=()=>{for(let h of f)X(h),h.remove()};l&&f[0]instanceof HTMLElement?Br(f[0],l).then(m):m()};r(()=>{let f=-1;for(let v=0;v<i.length;v++){let g=i[v];if(g.expression===null||q(g.expression,t,"v-if")){f=v;break}}if(f===c||(c=f,u(),f===-1))return;let m=i[f].template,h=qd(m,a,t);d=h,l&&h[0]instanceof HTMLElement&&zr(h[0],l)}),dt(e,u)},{priority:j.IF,terminal:!0});function qd(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 l of a)i.push(l),l.nodeType===1&&(Ot(l,n),se(l,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),se(s,n))}return i}y("else-if",()=>{},{priority:j.IF,terminal:!0});y("else",()=>{},{priority:j.IF,terminal:!0});var Tv=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;y("for",({el:e,scope:t,expression:n,effect:r})=>{var v;let o=Tv.exec(n);if(!o){K(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(g=>g.trim()).filter(Boolean),s=o[2],[a,l,c]=i,d=w.prefix,u=e.getAttribute(":key")||e.getAttribute(`${d}bind:key`)||e.getAttribute(`${d}key`),p=document.createComment(w.devtools?` v-for: ${n} `:"");(v=e.parentNode)==null||v.insertBefore(p,e);let f=e.cloneNode(!0);f.removeAttribute(`${d}for`),f.removeAttribute(":key"),f.removeAttribute(`${d}bind:key`),f.removeAttribute(`${d}key`),_s(e);let m=[];dt(p,()=>{for(let g of m)for(let b of g.nodes)X(b),b.remove();m=[]}),r(()=>{var oe,N,pe;let g=q(s,t,"v-for"),b=Lv(g,a,l,c),x=new Map;for(let ie of m)x.set(ie.key,ie);let T=[],k=new Set,A={fragment:document.createDocumentFragment(),pending:[]};b.forEach((ie,R)=>{let S=u?q(u,t.child(ie),":key"):`__index_${R}`;u&&k.has(S)&&qc(e,S,n);let B=x.get(S);if(B&&!k.has(S)){k.add(S);for(let[Jt,Ln]of Object.entries(ie))B.data[Jt]=Ln;T.push(B);return}let je=t.reactiveChild(ie),qe=qd(f,p,je,A);k.add(S),T.push({key:S,scope:je,nodes:qe,data:je.data})}),A.fragment.firstChild&&((oe=p.parentNode)==null||oe.insertBefore(A.fragment,p));for(let[ie,R]of A.pending)se(ie,R);let D=new Set(T);for(let ie of m)if(!(k.has(ie.key)&&D.has(ie)))for(let R of ie.nodes)X(R),R.remove();let C=p;for(let ie=T.length-1;ie>=0;ie--){let R=T[ie],S=R.nodes[R.nodes.length-1];if(S&&S.nextSibling!==C)for(let B of R.nodes)(N=p.parentNode)==null||N.insertBefore(B,C);C=(pe=R.nodes[0])!=null?pe:C}m=T})},{priority:j.FOR,terminal:!0});function Lv(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],l)=>{let c={[t]:a};n&&(c[n]=s),r&&(c[r]=l),o.push(c)}),o)}var Mv=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Sv=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),Av=/[\s\x00-\x1f]/g;function Cv(e){let t=e.replace(Av,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function Fd(e,t,n,r=!1,o=!1){if(t==="class")return Vd(e,n);if(t==="style")return ha(e,n);if(w.sanitizeUrls&&!o&&t==="srcdoc"){sn(`:srcdoc refused in ${kt(e)}: the value becomes a document with active script inside the iframe, the same way v-html becomes markup. If the content is trusted, write :srcdoc.dangerous="..."; to turn off this protection on the entire application, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(w.sanitizeUrls&&!r){if(Sv.has(t)&&typeof n=="string"&&Cv(n)){sn(`value refused in :${t} of ${kt(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)){sn(`attribute "${t}" refused in ${kt(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(Mv.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 Id=new WeakMap;function Vd(e,t){let n=Id.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),Id.set(e,n));let r=new Set(n);Ud(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function Ud(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)Ud(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 ha(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)ha(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)}}}y("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:i})=>{if(!t){r(()=>{let l=o();if(l&&typeof l=="object")for(let[c,d]of Object.entries(l))Fd(e,c,d)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{Fd(e,t,o(),s,a)})},{priority:j.BIND});y("class",({el:e,effect:t,evaluate:n})=>{t(()=>Vd(e,n()))});y("style",({el:e,effect:t,evaluate:n})=>{t(()=>ha(e,n()))});var zd={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},Rv=["ctrl","shift","alt","meta"];function Bd(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=lt(e),l=F(a,s);typeof l=="function"&&(a.t==="id"||a.t==="member")&&l.call(t.data,i?o:n)}catch(a){K(a,`event ${n.type} ("${e}")`)}}var $v={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},Wd={hold(e,t,n,r){let o=G(typeof n.duration=="string"&&n.duration||Object.keys(n).find(d=>/^[\d.]+(ms|s)?$/.test(d))||e.getAttribute(`${w.prefix}hold-duration`)||800,800),i=null,s=!1,a=d=>{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(d)},o)},l=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},c=d=>{s&&(d.preventDefault(),d.stopPropagation(),s=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",l),e.addEventListener("pointerleave",l),e.addEventListener("pointercancel",l),e.addEventListener("click",c,!0),r(()=>{l(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",l),e.removeEventListener("pointerleave",l),e.removeEventListener("pointercancel",l),e.removeEventListener("click",c,!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 l of a)l.isIntersecting&&(t(new CustomEvent("visible",{detail:l})),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"])Wd[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,l=d=>{a=!0,i=d.clientX,s=d.clientY},c=d=>{if(!a)return;a=!1;let u=d.clientX-i,p=d.clientY-s,f=40;(e==="left"?u<-f&&Math.abs(u)>Math.abs(p):e==="right"?u>f&&Math.abs(u)>Math.abs(p):e==="up"?p<-f&&Math.abs(p)>Math.abs(u):p>f&&Math.abs(p)>Math.abs(u))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:u,dy:p}}))};t.addEventListener("pointerdown",l),window.addEventListener("pointerup",c),o(()=>{t.removeEventListener("pointerdown",l),window.removeEventListener("pointerup",c)})};function _d(e,t,n,r,o,i){var f;let s=(f=$v[t])!=null?f:t,a=Wd[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Bd(n,r,m,e)},o,i);return}let l=o.window?window:o.document||o.outside?document:e,c=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let v of Rv)if(o[v]&&!m[`${v}Key`])return;let h=Object.keys(o).filter(v=>v in zd||/^[a-z0-9]$/.test(v));if(h.length&&!h.some(g=>{let b=zd[g];return b?b.includes(m.key):m.key.toLowerCase()===g}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Bd(n,r,m,e)}},d=o.debounce;d!==void 0&&(c=Ue(c,G(d===!0?250:d,250)));let u=o.throttle;u!==void 0&&(c=Hr(c,G(u===!0?250:u,250)));let p={capture:!!o.capture,once:!!o.once,passive:!!o.passive};l.addEventListener(s,c,p),i(()=>l.removeEventListener(s,c,p))}y("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&_d(e,t,n,r,o,i)});var Dv=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of Dv)y(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{_d(t,e,n,r,o,i)});y("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:i})=>{let s=e,a=s.tagName,l=(s.getAttribute("type")||"text").toLowerCase(),c=a==="INPUT"&&l==="checkbox",d=a==="INPUT"&&l==="radio",u=a==="SELECT",p=u&&s.multiple,f=a==="INPUT"&&l==="file",m=l==="number"||l==="range",h=!!r.lazy,v=!!r.number||m,g=!!r.trim,b=r.debounce?G(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${w.prefix}debounce`)?G(e.getAttribute(`${w.prefix}debounce`),250):0,x=h||u||c||d||f?"change":"input",T=()=>{var A,D;let k;if(c){let C=q(t,n,"v-model");if(Array.isArray(C)){let oe=s.value,N=[...C],pe=N.indexOf(oe);s.checked&&pe===-1?N.push(oe):!s.checked&&pe>-1&&N.splice(pe,1),k=N}else k=s.checked}else if(d){if(!s.checked)return;k=s.value}else if(p)k=Array.from(s.selectedOptions).map(C=>C.value);else if(f)k=r.single?(D=(A=s.files)==null?void 0:A[0])!=null?D:null:s.files;else if(k=s.value,g&&typeof k=="string"&&(k=k.trim()),v&&typeof k=="string"){let C=k===""?null:Number(k);k=C===null||Number.isNaN(C)?k:C}kv(t,n,k)};b>0&&(T=Ue(T,b)),s.addEventListener(x,T),i(()=>s.removeEventListener(x,T)),o(()=>{let k=q(t,n,"v-model");if(c){s.checked=Array.isArray(k)?k.includes(s.value):!!k;return}if(d){s.checked=String(k)===s.value;return}if(p){let D=Array.isArray(k)?k.map(String):[];for(let C of Array.from(s.options))C.selected=D.includes(C.value);return}if(f)return;let A=k==null?"":String(k);s.value!==A&&(s.value=A),u&&s.value!==A&&at(()=>{s.value!==A&&(s.value=A)})})},{priority:j.MODEL});y("init",({el:e,expression:t,scope:n})=>{Me(()=>{let r=n.child({$el:e}),o=q(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:j.INIT});y("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:j.REF});y("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});y("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${w.prefix}model`),i,s=!0;r(()=>{let a=o?q(o,n,"v-watch"):q(t,n,"v-watch");if(s){s=!1,i=a;return}if(a===i)return;let l=i;if(i=a,o){let c=n.child({$value:a,$old:l,$el:e}),d=q(t,c,"v-watch");typeof d=="function"&&d.call(n.data,a,l)}})});y("cloak",({el:e})=>{e.removeAttribute(`${w.prefix}cloak`)});y("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Ht(r))});y("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){K(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:j.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"])y(e,()=>{},{priority:j.TRANSITION});y("data",()=>{},{priority:j.DATA});y("component",()=>{},{priority:j.COMPONENT});be();le();var Xd=()=>w.prefix;function V(e,t){return ke(e,`${Xd()}${t}`)}function ya(e,t){return Nt(e,`${Xd()}${t}`)}function Hv(e,t){var s,a,l;let n=V(e,"target"),r=V(e,"loading"),o={},i=V(e,"headers");if(i){let c=q(i,t,"v-headers");c&&typeof c=="object"&&(o=c)}return{target:n?document.querySelector(n):null,swap:V(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:V(e,"loading-class")||"v-loading",disableWhileLoading:ya(e,"disable-loading"),confirmMessage:V(e,"confirm"),toastSuccess:V(e,"toast-success"),toastError:V(e,"toast-error"),onSuccess:V(e,"on-success"),onError:V(e,"on-error"),onComplete:V(e,"on-complete"),cacheMs:G((s=V(e,"cache"))!=null?s:void 0,0),retry:Number((a=V(e,"retry"))!=null?a:0),timeout:G((l=V(e,"timeout"))!=null?l:void 0,ve.defaults.timeout),storeAs:V(e,"as"),jsonPath:V(e,"json-path"),templateSelector:V(e,"template"),offlineQueue:ya(e,"offline-queue"),headers:o,redirect:V(e,"redirect"),scrollTo:V(e,"scroll-to")}}function Kd(e,t,n,r){var i,s;let o=a=>{for(let l of Array.from(a))l.nodeType===1&&se(l,r)};switch(n){case"none":return;case"delete":X(e),e.remove();return;case"textContent":e.textContent=t;return;case"outerHTML":case"replace":{let a=document.createElement("template");a.innerHTML=t;let l=Array.from(a.content.childNodes);X(e),e.replaceWith(a.content),o(l);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 l=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(l)for(let c of Array.from(l.childNodes))c.nodeType===1&&!a.has(c)&&se(c,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))X(a);e.innerHTML=t,o(e.childNodes)}}}function ai(e,t=0){if(e==null)return"";if(typeof e!="object")return I(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,l)=>{for(let c of Object.keys(l))a.add(c);return a},new Set)),i=o.map(a=>`<th>${I(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(l=>`<td>${ai(a[l],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>${ai(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${I(r)}</dt><dd>${ai(o,t+1)}</dd>`).join("")}</dl>`:""}function Pv(e,t,n,r){let o=document.querySelector(e);if(!o){K(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))X(s);r.innerHTML="";let i=Array.isArray(t)?t:[t];for(let[s,a]of i.entries()){let l=o.content.cloneNode(!0),c=Array.from(l.childNodes);r.appendChild(l);let d=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let u of c)u.nodeType===1&&se(u,d)}}var ga=new WeakMap;async function jr(e){var u,p,f,m,h;let{el:t,scope:n,method:r}=e,o=Hv(t,n),i=wt.has("confirm");if(o.confirmMessage&&!i&&!await Nv(o.confirmMessage))return;(u=ga.get(t))==null||u.abort();let s=new AbortController;ga.set(t,s);let a=(p=o.target)!=null?p:t,l=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,c=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let v=l!=null?l:t;"disabled"in v&&(v.disabled=!0)}},d=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let v=l!=null?l:t;"disabled"in v&&(v.disabled=!1)}};c(),Yn(t,"voodoo:before-request",{method:r,url:e.url});try{let v=await ve.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}),g=ma(v.data,o.jsonPath);o.storeAs?n.set(o.storeAs,g):o.templateSelector?Pv(o.templateSelector,g,n,a):typeof g=="string"?Kd(a,g,o.swap,n):g!=null&&(Ov(),Kd(a,ai(g),o.swap,n)),o.toastSuccess&&tt.success(o.toastSuccess),o.onSuccess&&ba(o.onSuccess,n,t,{data:g,response:v}),Yn(t,"voodoo:success",{data:g,response:v}),o.scrollTo&&((f=document.querySelector(o.scrollTo))==null||f.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(v){if((v==null?void 0:v.name)==="AbortError")return;let g=v instanceof Ee?(m=va(v))!=null?m:v.message:(h=v==null?void 0:v.message)!=null?h:"Unknown error";o.toastError?tt.error(o.toastError):o.onError||tt.error(g),o.onError&&ba(o.onError,n,t,{error:v,message:g}),Yn(t,"voodoo:error",{error:v,message:g}),K(v,`request ${r} ${e.url}`)}finally{d(),ga.delete(t),o.onComplete&&ba(o.onComplete,n,t,{}),Yn(t,"voodoo:complete",{})}}function Yn(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function ba(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=q(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function Nv(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var Yd=!1;function Ov(){Yd||(Yd=!0,Promise.resolve().then(()=>(He(),Cd)).then(({injectStyle:e})=>{e("json-render",`
|
|
129
|
+
`;function Fd(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 Un(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function Wn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function Id(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 zd(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function zr(e,t={}){ne("transitions",Od);let n=Fd(t);return me.reducedMotion?Promise.resolve():new Promise(r=>{Un(e,n.enterFrom),Un(e,n.enterActive),zd(()=>{var s;Wn(e,n.enterFrom),Un(e,n.enterTo);let o=(s=t.duration)!=null?s:Id(e),i=()=>{Wn(e,n.enterActive),Wn(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Br(e,t={}){ne("transitions",Od);let n=Fd(t);return me.reducedMotion?Promise.resolve():new Promise(r=>{Un(e,n.leaveFrom),Un(e,n.leaveActive),zd(()=>{var s;Wn(e,n.leaveFrom),Un(e,n.leaveTo);let o=(s=t.duration)!=null?s:Id(e),i=()=>{Wn(e,n.leaveActive),Wn(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function cn(e,t=240){return new Promise(n=>{e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block");let r=e.scrollHeight;e.style.overflow="hidden",e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.height=`${r}px`}),setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function dn(e,t=240){return new Promise(n=>{e.style.height=`${e.scrollHeight}px`,e.style.overflow="hidden",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px"}),setTimeout(()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function _n(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 Kn(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 si(e){let t=document;typeof t.startViewTransition=="function"&&!me.reducedMotion?t.startViewTransition(e):e()}be();le();function Mv(e,t,n){try{let o={t:"assign",op:"=",target:lt(e),value:{t:"lit",v:n}};F(o,t)}catch(r){K(r,`assignment in "${e}"`)}}function Ud(e){let t=w.prefix,n=e.hasAttribute(`${t}transition`),r=e.hasAttribute(`${t}enter-class`)||e.hasAttribute(`${t}leave-class`)||e.hasAttribute(`${t}enter-active-class`)||e.hasAttribute(`${t}leave-active-class`);if(!n&&!r)return null;let o=e.getAttribute(`${t}transition`)||"fade";return{name:o.startsWith("v-")?o:`v-${o}`,enterFrom:e.getAttribute(`${t}enter-class`)||void 0,enterActive:e.getAttribute(`${t}enter-active-class`)||void 0,enterTo:e.getAttribute(`${t}enter-to-class`)||void 0,leaveFrom:e.getAttribute(`${t}leave-class`)||void 0,leaveActive:e.getAttribute(`${t}leave-active-class`)||void 0,leaveTo:e.getAttribute(`${t}leave-to-class`)||void 0,duration:e.hasAttribute(`${t}duration`)?G(e.getAttribute(`${t}duration`)):void 0}}y("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Ht(n());let r=e.firstChild;r&&r.nodeType===3&&_s(r)})});y("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;jo(t),n(()=>{let i=r();for(let s of Array.from(t.children))X(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))se(s,o)})});y("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=Ud(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,zr(e,i)):Br(e,i).then(()=>{e.style.display="none"})})});y("if",({el:e,scope:t,expression:n,effect:r})=>{var p;let o=w.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(w.devtools?` v-if: ${n} `:"");(p=e.parentNode)==null||p.insertBefore(a,e);for(let f of i)Ks(f.template),f.template.removeAttribute(`${o}if`),f.template.removeAttribute(`${o}else-if`),f.template.removeAttribute(`${o}else`),_s(f.template);let l=Ud(e),c=-1,d=[],u=()=>{let f=d;if(d=[],!f.length)return;let m=()=>{for(let h of f)X(h),h.remove()};l&&f[0]instanceof HTMLElement?Br(f[0],l).then(m):m()};r(()=>{let f=-1;for(let v=0;v<i.length;v++){let g=i[v];if(g.expression===null||q(g.expression,t,"v-if")){f=v;break}}if(f===c||(c=f,u(),f===-1))return;let m=i[f].template,h=Wd(m,a,t);d=h,l&&h[0]instanceof HTMLElement&&zr(h[0],l)}),dt(e,u)},{priority:j.IF,terminal:!0});function Wd(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 l of a)i.push(l),l.nodeType===1&&(Ot(l,n),se(l,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),se(s,n))}return i}y("else-if",()=>{},{priority:j.IF,terminal:!0});y("else",()=>{},{priority:j.IF,terminal:!0});var Sv=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;y("for",({el:e,scope:t,expression:n,effect:r})=>{var v;let o=Sv.exec(n);if(!o){K(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(g=>g.trim()).filter(Boolean),s=o[2],[a,l,c]=i,d=w.prefix,u=e.getAttribute(":key")||e.getAttribute(`${d}bind:key`)||e.getAttribute(`${d}key`),p=document.createComment(w.devtools?` v-for: ${n} `:"");(v=e.parentNode)==null||v.insertBefore(p,e);let f=e.cloneNode(!0);f.removeAttribute(`${d}for`),f.removeAttribute(":key"),f.removeAttribute(`${d}bind:key`),f.removeAttribute(`${d}key`),Ks(e);let m=[];dt(p,()=>{for(let g of m)for(let b of g.nodes)X(b),b.remove();m=[]}),r(()=>{var oe,N,pe;let g=q(s,t,"v-for"),b=Av(g,a,l,c),x=new Map;for(let ie of m)x.set(ie.key,ie);let T=[],k=new Set,A={fragment:document.createDocumentFragment(),pending:[]};b.forEach((ie,R)=>{let S=u?q(u,t.child(ie),":key"):`__index_${R}`;u&&k.has(S)&&Wc(e,S,n);let B=x.get(S);if(B&&!k.has(S)){k.add(S);for(let[Jt,Ln]of Object.entries(ie))B.data[Jt]=Ln;T.push(B);return}let je=t.reactiveChild(ie),qe=Wd(f,p,je,A);k.add(S),T.push({key:S,scope:je,nodes:qe,data:je.data})}),A.fragment.firstChild&&((oe=p.parentNode)==null||oe.insertBefore(A.fragment,p));for(let[ie,R]of A.pending)se(ie,R);let D=new Set(T);for(let ie of m)if(!(k.has(ie.key)&&D.has(ie)))for(let R of ie.nodes)X(R),R.remove();let C=p;for(let ie=T.length-1;ie>=0;ie--){let R=T[ie],S=R.nodes[R.nodes.length-1];if(S&&S.nextSibling!==C)for(let B of R.nodes)(N=p.parentNode)==null||N.insertBefore(B,C);C=(pe=R.nodes[0])!=null?pe:C}m=T})},{priority:j.FOR,terminal:!0});function Av(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],l)=>{let c={[t]:a};n&&(c[n]=s),r&&(c[r]=l),o.push(c)}),o)}var Cv=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Rv=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),$v=/[\s\x00-\x1f]/g;function Dv(e){let t=e.replace($v,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function Bd(e,t,n,r=!1,o=!1){if(t==="class")return _d(e,n);if(t==="style")return ga(e,n);if(w.sanitizeUrls&&!o&&t==="srcdoc"){sn(`:srcdoc refused in ${kt(e)}: the value becomes a document with active script inside the iframe, the same way v-html becomes markup. If the content is trusted, write :srcdoc.dangerous="..."; to turn off this protection on the entire application, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(w.sanitizeUrls&&!r){if(Rv.has(t)&&typeof n=="string"&&Dv(n)){sn(`value refused in :${t} of ${kt(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)){sn(`attribute "${t}" refused in ${kt(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(Cv.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 jd=new WeakMap;function _d(e,t){let n=jd.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),jd.set(e,n));let r=new Set(n);Kd(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function Kd(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)Kd(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 ga(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)ga(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)}}}y("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:i})=>{if(!t){r(()=>{let l=o();if(l&&typeof l=="object")for(let[c,d]of Object.entries(l))Bd(e,c,d)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{Bd(e,t,o(),s,a)})},{priority:j.BIND});y("class",({el:e,effect:t,evaluate:n})=>{t(()=>_d(e,n()))});y("style",({el:e,effect:t,evaluate:n})=>{t(()=>ga(e,n()))});var qd={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},Hv=["ctrl","shift","alt","meta"];function Vd(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=lt(e),l=F(a,s);typeof l=="function"&&(a.t==="id"||a.t==="member")&&l.call(t.data,i?o:n)}catch(a){K(a,`event ${n.type} ("${e}")`)}}var Pv={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},Yd={hold(e,t,n,r){let o=G(typeof n.duration=="string"&&n.duration||Object.keys(n).find(d=>/^[\d.]+(ms|s)?$/.test(d))||e.getAttribute(`${w.prefix}hold-duration`)||800,800),i=null,s=!1,a=d=>{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(d)},o)},l=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},c=d=>{s&&(d.preventDefault(),d.stopPropagation(),s=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",l),e.addEventListener("pointerleave",l),e.addEventListener("pointercancel",l),e.addEventListener("click",c,!0),r(()=>{l(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",l),e.removeEventListener("pointerleave",l),e.removeEventListener("pointercancel",l),e.removeEventListener("click",c,!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 l of a)l.isIntersecting&&(t(new CustomEvent("visible",{detail:l})),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"])Yd[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,l=d=>{a=!0,i=d.clientX,s=d.clientY},c=d=>{if(!a)return;a=!1;let u=d.clientX-i,p=d.clientY-s,f=40;(e==="left"?u<-f&&Math.abs(u)>Math.abs(p):e==="right"?u>f&&Math.abs(u)>Math.abs(p):e==="up"?p<-f&&Math.abs(p)>Math.abs(u):p>f&&Math.abs(p)>Math.abs(u))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:u,dy:p}}))};t.addEventListener("pointerdown",l),window.addEventListener("pointerup",c),o(()=>{t.removeEventListener("pointerdown",l),window.removeEventListener("pointerup",c)})};function Xd(e,t,n,r,o,i){var f;let s=(f=Pv[t])!=null?f:t,a=Yd[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Vd(n,r,m,e)},o,i);return}let l=o.window?window:o.document||o.outside?document:e,c=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let v of Hv)if(o[v]&&!m[`${v}Key`])return;let h=Object.keys(o).filter(v=>v in qd||/^[a-z0-9]$/.test(v));if(h.length&&!h.some(g=>{let b=qd[g];return b?b.includes(m.key):m.key.toLowerCase()===g}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),Vd(n,r,m,e)}},d=o.debounce;d!==void 0&&(c=Ue(c,G(d===!0?250:d,250)));let u=o.throttle;u!==void 0&&(c=Hr(c,G(u===!0?250:u,250)));let p={capture:!!o.capture,once:!!o.once,passive:!!o.passive};l.addEventListener(s,c,p),i(()=>l.removeEventListener(s,c,p))}y("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&Xd(e,t,n,r,o,i)});var Nv=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of Nv)y(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{Xd(t,e,n,r,o,i)});y("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:i})=>{let s=e,a=s.tagName,l=(s.getAttribute("type")||"text").toLowerCase(),c=a==="INPUT"&&l==="checkbox",d=a==="INPUT"&&l==="radio",u=a==="SELECT",p=u&&s.multiple,f=a==="INPUT"&&l==="file",m=l==="number"||l==="range",h=!!r.lazy,v=!!r.number||m,g=!!r.trim,b=r.debounce?G(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${w.prefix}debounce`)?G(e.getAttribute(`${w.prefix}debounce`),250):0,x=h||u||c||d||f?"change":"input",T=()=>{var A,D;let k;if(c){let C=q(t,n,"v-model");if(Array.isArray(C)){let oe=s.value,N=[...C],pe=N.indexOf(oe);s.checked&&pe===-1?N.push(oe):!s.checked&&pe>-1&&N.splice(pe,1),k=N}else k=s.checked}else if(d){if(!s.checked)return;k=s.value}else if(p)k=Array.from(s.selectedOptions).map(C=>C.value);else if(f)k=r.single?(D=(A=s.files)==null?void 0:A[0])!=null?D:null:s.files;else if(k=s.value,g&&typeof k=="string"&&(k=k.trim()),v&&typeof k=="string"){let C=k===""?null:Number(k);k=C===null||Number.isNaN(C)?k:C}Mv(t,n,k)};b>0&&(T=Ue(T,b)),s.addEventListener(x,T),i(()=>s.removeEventListener(x,T)),o(()=>{let k=q(t,n,"v-model");if(c){s.checked=Array.isArray(k)?k.includes(s.value):!!k;return}if(d){s.checked=String(k)===s.value;return}if(p){let D=Array.isArray(k)?k.map(String):[];for(let C of Array.from(s.options))C.selected=D.includes(C.value);return}if(f)return;let A=k==null?"":String(k);s.value!==A&&(s.value=A),u&&s.value!==A&&at(()=>{s.value!==A&&(s.value=A)})})},{priority:j.MODEL});y("init",({el:e,expression:t,scope:n})=>{Me(()=>{let r=n.child({$el:e}),o=q(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:j.INIT});y("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:j.REF});y("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});y("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${w.prefix}model`),i,s=!0;r(()=>{let a=o?q(o,n,"v-watch"):q(t,n,"v-watch");if(s){s=!1,i=a;return}if(a===i)return;let l=i;if(i=a,o){let c=n.child({$value:a,$old:l,$el:e}),d=q(t,c,"v-watch");typeof d=="function"&&d.call(n.data,a,l)}})});y("cloak",({el:e})=>{e.removeAttribute(`${w.prefix}cloak`)});y("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Ht(r))});y("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){K(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:j.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"])y(e,()=>{},{priority:j.TRANSITION});y("data",()=>{},{priority:j.DATA});y("component",()=>{},{priority:j.COMPONENT});be();le();var Jd=()=>w.prefix;function V(e,t){return ke(e,`${Jd()}${t}`)}function xa(e,t){return Nt(e,`${Jd()}${t}`)}function Ov(e,t){var s,a,l;let n=V(e,"target"),r=V(e,"loading"),o={},i=V(e,"headers");if(i){let c=q(i,t,"v-headers");c&&typeof c=="object"&&(o=c)}return{target:n?document.querySelector(n):null,swap:V(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:V(e,"loading-class")||"v-loading",disableWhileLoading:xa(e,"disable-loading"),confirmMessage:V(e,"confirm"),toastSuccess:V(e,"toast-success"),toastError:V(e,"toast-error"),onSuccess:V(e,"on-success"),onError:V(e,"on-error"),onComplete:V(e,"on-complete"),cacheMs:G((s=V(e,"cache"))!=null?s:void 0,0),retry:Number((a=V(e,"retry"))!=null?a:0),timeout:G((l=V(e,"timeout"))!=null?l:void 0,ve.defaults.timeout),storeAs:V(e,"as"),jsonPath:V(e,"json-path"),templateSelector:V(e,"template"),offlineQueue:xa(e,"offline-queue"),headers:o,redirect:V(e,"redirect"),scrollTo:V(e,"scroll-to")}}function Gd(e,t,n,r){var i,s;let o=a=>{for(let l of Array.from(a))l.nodeType===1&&se(l,r)};switch(n){case"none":return;case"delete":X(e),e.remove();return;case"textContent":e.textContent=t;return;case"outerHTML":case"replace":{let a=document.createElement("template");a.innerHTML=t;let l=Array.from(a.content.childNodes);X(e),e.replaceWith(a.content),o(l);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 l=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(l)for(let c of Array.from(l.childNodes))c.nodeType===1&&!a.has(c)&&se(c,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))X(a);e.innerHTML=t,o(e.childNodes)}}}function ai(e,t=0){if(e==null)return"";if(typeof e!="object")return I(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,l)=>{for(let c of Object.keys(l))a.add(c);return a},new Set)),i=o.map(a=>`<th>${I(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(l=>`<td>${ai(a[l],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>${ai(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${I(r)}</dt><dd>${ai(o,t+1)}</dd>`).join("")}</dl>`:""}function Fv(e,t,n,r){let o=document.querySelector(e);if(!o){K(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))X(s);r.innerHTML="";let i=Array.isArray(t)?t:[t];for(let[s,a]of i.entries()){let l=o.content.cloneNode(!0),c=Array.from(l.childNodes);r.appendChild(l);let d=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let u of c)u.nodeType===1&&se(u,d)}}var ba=new WeakMap;async function jr(e){var u,p,f,m,h;let{el:t,scope:n,method:r}=e,o=Ov(t,n),i=wt.has("confirm");if(o.confirmMessage&&!i&&!await Iv(o.confirmMessage))return;(u=ba.get(t))==null||u.abort();let s=new AbortController;ba.set(t,s);let a=(p=o.target)!=null?p:t,l=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,c=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let v=l!=null?l:t;"disabled"in v&&(v.disabled=!0)}},d=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let v=l!=null?l:t;"disabled"in v&&(v.disabled=!1)}};c(),Yn(t,"voodoo:before-request",{method:r,url:e.url});try{let v=await ve.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}),g=va(v.data,o.jsonPath);o.storeAs?n.set(o.storeAs,g):o.templateSelector?Fv(o.templateSelector,g,n,a):typeof g=="string"?Gd(a,g,o.swap,n):g!=null&&(zv(),Gd(a,ai(g),o.swap,n)),o.toastSuccess&&tt.success(o.toastSuccess),o.onSuccess&&ya(o.onSuccess,n,t,{data:g,response:v}),Yn(t,"voodoo:success",{data:g,response:v}),o.scrollTo&&((f=document.querySelector(o.scrollTo))==null||f.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(v){if((v==null?void 0:v.name)==="AbortError")return;let g=v instanceof Ee?(m=ha(v))!=null?m:v.message:(h=v==null?void 0:v.message)!=null?h:"Unknown error";o.toastError?tt.error(o.toastError):o.onError||tt.error(g),o.onError&&ya(o.onError,n,t,{error:v,message:g}),Yn(t,"voodoo:error",{error:v,message:g}),K(v,`request ${r} ${e.url}`)}finally{d(),ba.delete(t),o.onComplete&&ya(o.onComplete,n,t,{}),Yn(t,"voodoo:complete",{})}}function Yn(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function ya(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=q(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function Iv(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var Qd=!1;function zv(){Qd||(Qd=!0,Promise.resolve().then(()=>(He(),Dd)).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 Fv(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 Iv({el:e,cleanup:t,run:n}){var d,u;let r=V(e,"trigger")||Fv(e),[o,...i]=r.split(/[.\s]+/),s=G((d=V(e,"poll"))!=null?d: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"),l=G((u=V(e,"debounce"))!=null?u:void 0,0),c=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};l>0&&(c=Ue(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var zv=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of zv)y(e,({el:n,scope:r,expression:o,cleanup:i})=>{Iv({el:n,scope:r,cleanup:i,run:a=>{let l=qr(o,r);if(!l)return;let c=V(n,"body")||V(n,"data-body"),d=c?q(c,r.child({$event:a}),"v-body"):void 0,u=V(n,"params"),p=u?q(u,r,"v-params"):void 0;jr({el:n,scope:r,method:t,url:l,body:d,params:p,event:a})}})});function qr(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=q(n,t,"URL");return typeof o=="string"?o:n}y("load",({el:e,scope:t,expression:n})=>{let r=qr(n,t);r&&jr({el:e,scope:t,method:"GET",url:r})});y("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=qr(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){jr({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),jr({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});y("search",({el:e,scope:t,expression:n,cleanup:r})=>{var u,p;let o=e,i=qr(n,t),s=V(e,"param")||o.getAttribute("name")||"q",a=G((u=V(e,"debounce"))!=null?u:void 0,300),l=Number((p=V(e,"min-length"))!=null?p:0),c=Ue(()=>{let f=o.value.trim();f.length<l||jr({el:e,scope:t,method:"GET",url:i,params:{[s]:f}})},a),d=()=>c();o.addEventListener("input",d),r(()=>{o.removeEventListener("input",d),c.cancel()})});y("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,d,u;let o=n.indexOf(":"),i=V(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=ii(()=>qr(s,t),{method:(V(e,"method")||"GET").toUpperCase(),params:()=>V(e,"params")?q(V(e,"params"),t,"v-params"):void 0,cache:G((l=V(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=V(e,"retry"))!=null?c:0),timeout:G((d=V(e,"timeout"))!=null?d:void 0,ve.defaults.timeout),jsonPath:V(e,"json-path"),poll:G((u=V(e,"poll"))!=null?u:void 0,0),manual:ya(e,"manual"),onSuccess:p=>Yn(e,"voodoo:success",{data:p}),onError:(p,f)=>Yn(e,"voodoo:error",{error:p,message:f})});t.set(i,a),r(()=>a.stop())},{priority:j.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"])y(e,()=>{},{priority:j.TRANSITION});td(ld);ad(Ot);md(Qd);Dd();var Vr=new Map;function Gd(e,t){let n=Vr.get(e);return n||Vr.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Bv(e,t){let n=Gd(e,r=>{n(),t(r)});return n}function jv(e,t){let n=Vr.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){K(o,`event "${e}"`)}}function qv(e,t){var n;if(!t){Vr.delete(e);return}(n=Vr.get(e))==null||n.delete(t)}function Qd(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;y(e,i=>{var d,u;let s,a=!1,l=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}},c=n.raw?i.expression:i.evaluate();(d=n.created)==null||d.call(n,i.el,l(c)),(u=n.beforeMount)==null||u.call(n,i.el,l(c)),i.effect(()=>{var m,h;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,l(p));return}if(p===s)return;let f=l(p);(h=n.updated)==null||h.call(n,i.el,f),s=p}),i.cleanup(()=>{var f,m;let p=l(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:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Vv(e){return Object.defineProperties(ct.data,Object.getOwnPropertyDescriptors(e)),ct.data}var Uv="0.4.6",li={...la,version:Uv,config:w,reactive:Z,ref:Mr,shallowRef:Ps,computed:Sr,effect:_e,watch:Oe,watchEffect:Os,nextTick:at,toRaw:Le,markRaw:Ds,unref:Ns,stop:As,effectScope:Cs,EffectScope:et,flushSync:Ts,data:Vv,store:bd,stores:Fn,removeStore:yd,storeNames:Ko,scope:ct,component:Ft,components:$e,directive:Qd,directives:wt,magic:P,magics:Ar,createApp:vd,start:rd,whenReady:Uo,whenElement:Wo,walk:se,refresh:id,destroy:X,stopObserving:od,getScope:Lt,findScope:Ve,addCleanup:dt,parseAttribute:$n,parse:lt,tokenize:Po,evaluate:F,evaluateIn:q,stringify:Ht,clearParseCache:Hc,globals:Pe,http:ve,request:zt,HttpError:Ee,resource:ii,toast:tt,storage:ue,session:ei,cookie:ti,cache:ni,url:jt,theme:ut,clipboard:oi,screen:Ke,network:qt,enter:zr,leave:Br,fadeIn:_n,fadeOut:Kn,slideUp:dn,slideDown:cn,viewTransition:si,injectStyle:ne,ensureTokens:he,on:Gd,once:Bv,off:qv,emit:jv,use(e,t){No(li,e,t)},onError(e){Ls(e)},instances:Mt,Scope:on,PRIORITY:j,VoodooSyntaxError:de,VoodooRuntimeError:Re};gd(li);be();var Wv=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 su(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function nt(e){return e.length<2?e:Array.from(new Set(e))}function un(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function xa(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 au(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function _v(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof ft)return e.toArray();if(typeof e=="string")return fn(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=fn(e);return t.length?t:typeof document=="undefined"?[]:[document]}function fn(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(au(o))return xa(o);let i=[];for(let s of _v(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return nt(i)}if(e instanceof ft)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 nt(o)}return[]}function Jd(e){if(e==null)return[];if(typeof e=="string"){let r=e;return au(r.trim())?xa(r):[document.createTextNode(r)]}if(e instanceof ft)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 ci(e,t,n){let r=su(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Wv.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Kv(e,t){for(let[n,r]of Object.entries(t))ci(e,n,r)}function Zd(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 eu(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var lu=new WeakMap;function tu(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function nu(e){e.removeAttribute("hidden");let t=lu.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 ru(e){let t=e.style.display;t&&t!=="none"&&lu.set(e,t),e.style.display="none"}var ou="input,select,textarea";function iu(e){return e.matches(ou)?[e]:Array.from(e.querySelectorAll(ou))}function Yv(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 di=new WeakMap;function Xv(e){let t=di.get(e);return t||di.set(e,t=[]),t}var ft=class e{constructor(t=[]){H(this,"length");H(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(nt(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(nt(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(nt(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(nt(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(nt(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(nt(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(nt(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(nt(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(nt([...this.elements,...fn(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))X(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))X(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 l of Array.from(s.options))l.selected=a.includes(l.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[l,c]of Object.entries(n))c===null||c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":String(c));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=un(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,l]of Object.entries(i.dataset))s[a]=Zd(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[eu(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=eu(String(n));if(t.length<2){let i=this.elements[0];return i?Zd(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)Kv(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=su(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)ci(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)ci(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)ci(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=un(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=un(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=un(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=un(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 Jd(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=fn(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=fn(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 Jd(t))r.insertBefore(o,n);X(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=fn(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);X(n),n.remove()}}return this}remove(){for(let t of this.elements)X(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))X(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 l of this.elements)for(let c of un(t)){let d=u=>{if(!o){i.call(l,u);return}let p=u.target,f=p==null?void 0:p.closest(o);!f||!l.contains(f)||i.call(f,u)};l.addEventListener(c,d,s),Xv(l).push({type:c,selector:o,handler:i,wrapped:d,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?un(t):null;for(let a of this.elements){let l=di.get(a);if(!l)continue;let c=[];for(let d of l){let u=!s||s.includes(d.type),p=o===null||d.selector===o,f=i===null||d.handler===i;u&&p&&f?a.removeEventListener(d.type,d.wrapped,d.options):c.push(d)}di.set(a,c)}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(l){return o?s.off(t,o,a):s.off(t,a),i.call(this,l)};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)nu(t);return this}hide(){for(let t of this.elements)ru(t);return this}toggle(t){for(let n of this.elements)(t===void 0?tu(n):t)?nu(n):ru(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),_n(n,t);return this}fadeOut(t=220){for(let n of this.elements)Kn(n,t);return this}slideUp(t=240){for(let n of this.elements)dn(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),cn(n,t);return this}slideToggle(t=240){for(let n of this.elements)tu(n)?(n.removeAttribute("hidden"),cn(n,t)):dn(n,t);return this}animate(t,n=300){for(let r of this.elements)typeof r.animate=="function"&&r.animate(t,n);return this}scrollIntoView(t={behavior:"smooth",block:"start"}){var n;return(n=this.elements[0])==null||n.scrollIntoView(t),this}serialize(){let t=this.elements[0];if(!t)return"";let n=new URLSearchParams;for(let r of iu(t)){if(!Yv(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 iu(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let d=l.name.endsWith("[]"),u=d?l.name.slice(0,-2):l.name,p=a,f;if(c==="checkbox"){if(!l.checked&&!d){n[u]=(r=n[u])!=null?r:!1;continue}if(!l.checked)continue;f=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;f=l.value}else c==="file"?f=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&p.multiple?f=Array.from(p.selectedOptions).map(m=>m.value):c==="number"||c==="range"?f=l.value===""?null:Number(l.value):f=l.value;if(d){let m=n[u];Array.isArray(m)?m.push(f):n[u]=[f];continue}if(Object.prototype.hasOwnProperty.call(n,u)){let m=n[u];Array.isArray(m)?m.push(f):m===void 0||m===!1?n[u]=f:n[u]=[m,f];continue}n[u]=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&&X(n),se(n,Ve(n.parentNode));return this}destroy(){for(let t of this.elements)X(t);return this}};function wa(e,t){if(typeof e=="function"){Ea(e);let n=typeof document!="undefined"?document.documentElement:null;return new ft(n?[n]:[])}return new ft(fn(e,t))}function Ea(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{pd(()=>{try{e==null||e()}catch(n){K(n,"V.ready")}t()})})}function cu(e){return new ft(xa(e))}be();le();var pn=new Map,Fe={emit(e,t){let n=pn.get(e);if(!(!n||n.size===0))for(let r of[...n])try{r(t)}catch(o){console.error("[Voodoo] error in devtools listener:",o)}},on(e,t){let n=pn.get(e);return n||pn.set(e,n=new Set),n.add(t),()=>{n==null||n.delete(t)}},off(e,t){var n;(n=pn.get(e))==null||n.delete(t)},clear(e){e?pn.delete(e):pn.clear()},count(e){var t,n;return(n=(t=pn.get(e))==null?void 0:t.size)!=null?n:0}};var W={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},ui="__voodooRoute",fu=10,pt=[],pu=new Map,fi=new Map,Xn="inicial",pi=!1,mu=!1;function Gv(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var ce=Z(Gv());function Ur(e){let t=e||"/";return t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/{2,}/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function vu(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function Qv(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function La(e){let t=e||"/",n="",r=t.indexOf("#");r>-1&&(n=t.slice(r+1),t=t.slice(0,r));let o={},i=t.indexOf("?");return i>-1&&(o=vu(t.slice(i+1)),t=t.slice(0,i)),{path:Ur(t),query:o,hash:n}}function Jv(e){let t=W.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function hu(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:W.mode==="hash"?La(window.location.hash.slice(1)||"/"):{path:Ur(Jv(window.location.pathname)),query:vu(window.location.search),hash:window.location.hash.slice(1)}}function gu(e,t,n){let r=Qv(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function Ma(e){let t=gu(e.path,e.query,e.hash);if(W.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${W.base==="/"?"":W.base.replace(/\/$/,"")}${t}`||"/"}function bu(e,t){let n=e==="*"?"*":Ur(e),r=n==="*"?["*"]:n.split("/").filter(Boolean),o=[],i=r.length*10;for(let s of r){if(s==="*"||s==="**"){o.push({type:"wildcard",value:"*",optional:!0}),i-=30;continue}if(s.startsWith(":")){let a=s.endsWith("?"),l=s.slice(1,a?-1:void 0);o.push({type:"param",value:l,optional:a}),i+=a?1:2;continue}o.push({type:"static",value:s,optional:!1}),i+=4}return{pattern:n,segments:o,score:i,record:t}}function Zv(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(ka).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(ka(i)!==o.value)return null;r++;continue}n[o.value]=ka(i),r++}return r===t.length?n:null}function ka(e){try{return decodeURIComponent(e)}catch(t){return e}}function eh(e){let t=e.split("/").filter(Boolean),n=null;for(let r of pt){let o=Zv(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function Sa(e){var t,n;return e&&(n=(t=pt.find(r=>r.pattern===e))==null?void 0:t.record)!=null?n:null}function Gn(e){let{path:t,query:n,hash:r}=La(e);return Aa(t,n,r)}function Aa(e,t,n){var o,i;let r=eh(e);return{path:e,fullPath:gu(e,t,n),params:r?r.params:{},query:t,hash:n,name:(o=r==null?void 0:r.route.record.name)!=null?o:"",meta:(i=r==null?void 0:r.route.record.meta)!=null?i:{},matched:r?r.route.pattern:null}}function Qn(){return{path:ce.path,fullPath:ce.fullPath,params:{...ce.params},query:{...ce.query},hash:ce.hash,name:ce.name,meta:ce.meta,matched:ce.matched}}function Ca(e){ce.path=e.path,ce.fullPath=e.fullPath,ce.params=e.params,ce.query=e.query,ce.hash=e.hash,ce.name=e.name,ce.meta=e.meta,ce.matched=e.matched;let t=Sa(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=W.titleTemplate.includes("%s")?W.titleTemplate.replace("%s",t.title):t.title)}async function Ra(e,t){let n=Sa(e.matched);if(n!=null&&n.redirect)return n.redirect;if(n!=null&&n.beforeEnter){let r=await n.beforeEnter(e,t);if(r===!1)return!1;if(typeof r=="string")return r}if(W.beforeEach){let r=await W.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function vi(){typeof window!="undefined"&&pu.set(Xn,window.scrollY)}function $a(e,t,n){typeof window!="undefined"&&Me(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(W.scrollBehavior){let i=W.scrollBehavior(e,t,n);if(i===!1)return;if(typeof i=="number"){r(i);return}}if(e.hash){let i=(o=document.getElementById(e.hash))!=null?o:/^[\w-]+$/.test(e.hash)?document.querySelector(`[name="${e.hash}"]`):null;if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}}r(n!=null?n:0)})})}async function Vt(e,t={}){var a,l;if(typeof window=="undefined")return!1;yu();let n=Qn(),r=Gn(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>fu)return Y(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Ra(r,n);if(d===!1)return Fe.emit("navigation",{from:n.fullPath,to:r.fullPath,cancelled:!0,matched:r.matched}),!1;if(typeof d=="string"){r=Gn(d);continue}break}vi();let o=ae("rota"),i={...(a=t.state)!=null?a:{},[ui]:o},s=Ma(r);return t.replace?window.history.replaceState(i,"",s):window.history.pushState(i,"",s),Xn=o,Ca(r),t.scroll!==!1&&$a(r,n,null),(l=W.afterEach)==null||l.call(W,Qn(),n),Fe.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function th(e){var c,d;let{path:t,query:n,hash:r}=hu(),o=Aa(t,n,r),i=Qn();if(o.fullPath===i.fullPath)return;let s=await Ra(o,i);if(s===!1){window.history.replaceState({[ui]:Xn},"",Ma(i)),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){Vt(s,{replace:!0});return}vi();let a=e.state,l=a&&a[ui]||ae("rota");Xn=l,Ca(o),$a(o,i,(c=pu.get(l))!=null?c:0),(d=W.afterEach)==null||d.call(W,Qn(),i),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function mi(e){th(e)}function yu(){pi||typeof window=="undefined"||(pi=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",mi),W.mode==="hash"&&window.addEventListener("hashchange",mi),window.addEventListener("beforeunload",vi))}function nh(){!pi||typeof window=="undefined"||(pi=!1,window.removeEventListener("popstate",mi),window.removeEventListener("hashchange",mi),window.removeEventListener("beforeunload",vi))}async function rh(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=hu(),r=Qn(),o=Aa(e,t,n);for(let s=0;;s++){if(s>fu){Y("Router: too many redirects in the initial route.");return}let a=await Ra(o,r);if(a===!1)return;if(typeof a=="string"){o=Gn(a);continue}break}Xn=ae("rota"),window.history.replaceState({[ui]:Xn},"",Ma(o)),Ca(o),o.hash&&$a(o,r,null),(i=W.afterEach)==null||i.call(W,Qn(),r)}function oh(e,t){let n=bu(e,t),r=pt.findIndex(o=>o.pattern===n.pattern);r>-1?pt.splice(r,1,n):pt.push(n)}function ih(e){let t=e==="*"?"*":Ur(e),n=pt.findIndex(r=>r.pattern===t);n>-1&&pt.splice(n,1)}function sh(){return[...pt].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function ah(e){e?fi.delete(e):fi.clear()}function lh(e){var t,n,r,o,i,s,a,l,c,d;W.mode=(t=e.mode)!=null?t:"history",W.base=Ur((n=e.base)!=null?n:"/"),W.beforeEach=(r=e.beforeEach)!=null?r:null,W.afterEach=(o=e.afterEach)!=null?o:null,W.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",W.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",W.transition=(a=e.transition)!=null?a:!0,W.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",W.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,pt.length=0;for(let[u,p]of Object.entries((d=e.routes)!=null?d:{}))pt.push(bu(u,p));return mu=!0,yu(),rh(),Wr}var ch={get current(){return ce},push:(e,t={})=>Vt(e,t),replace:(e,t={})=>Vt(e,{...t,replace:!0}),navigate:Vt,back:()=>{typeof window!="undefined"&&window.history.back()},forward:()=>{typeof window!="undefined"&&window.history.forward()},go:e=>{typeof window!="undefined"&&window.history.go(e)},resolve:Gn,addRoute:oh,removeRoute:ih,patterns:sh,stop:nh,clearViewCache:ah,get ready(){return mu}},Wr=Object.defineProperties(lh,Object.getOwnPropertyDescriptors(ch));P("$route",()=>ce);P("$router",()=>Wr);async function dh(e){let t=fi.get(e);if(t!==void 0)return t;let n=await ve.get(e,{responseType:"text"}),r=typeof n=="string"?n:String(n!=null?n:"");return fi.set(e,r),r}function uh(e){return Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}y("router-view",({el:e,scope:t,modifiers:n,effect:r,cleanup:o})=>{jo(e);let i=e.innerHTML,s=W.transition&&!n["no-transition"],a=0,l=()=>{for(let u of Array.from(e.childNodes))X(u);e.textContent=""},c=(u,p)=>{if(l(),u!=null&&u.component){let f=document.createElement("div");f.setAttribute(`${w.prefix}component`,u.component),f.className="v-router-page",e.appendChild(f),se(f,t);return}e.innerHTML=p!=null?p:i;for(let f of Array.from(e.childNodes))se(f,t)},d=async(u,p)=>{let f=null;if(u!=null&&u.view){e.classList.add("v-router-loading");try{f=await dh(u.view)}catch(m){K(m,`v-router-view loading "${u.view}"`),f=""}finally{e.classList.remove("v-router-loading")}if(p!==a)return}s?si(()=>c(u,f)):c(u,f)};r(()=>{let u=ce.matched;uh(ce.params);let p=Sa(u);d(p,++a)}),o(()=>{a++,l()})},{priority:j.DEFAULT});var fh=/^[a-z][a-z0-9+.-]*:/i;function du(e){return!!(!e||e.startsWith("//")||fh.test(e))}function uu(e,t,n){var i;let r=t.trim();if(r){if(r.startsWith("/")||r.startsWith("#"))return r;let s=n(r);return typeof s=="string"&&s?s:r}let o=(i=e.getAttribute("href"))!=null?i:"";return W.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function Ta(e,t){let{path:n}=La(e);return n==="/"||t?ce.path===n:ce.path===n||ce.path.startsWith(`${n}/`)}y("link",({el:e,expression:t,modifiers:n,effect:r,cleanup:o,evaluate:i})=>{let s=e,a=l=>{var u;if(l.defaultPrevented||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||typeof l.button=="number"&&l.button!==0)return;let c=s.getAttribute("target");if(c&&c!=="_self"||s.hasAttribute("download")||((u=s.getAttribute("rel"))!=null?u:"").split(/\s+/).includes("external"))return;let d=uu(e,t,i);d&&(du(d)||W.mode!=="hash"&&d.startsWith("#")||(l.preventDefault(),Vt(d,{replace:!!n.replace,scroll:n["no-scroll"]?!1:void 0})))};e.addEventListener("click",a),o(()=>e.removeEventListener("click",a)),r(()=>{let l=uu(e,t,i);if(!l||du(l))return;let c=Ta(l,!0),d=c||Ta(l,!1);e.classList.toggle(W.linkActiveClass,d),e.classList.toggle(W.linkExactActiveClass,c),c?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")})});y("route-active",({el:e,expression:t,arg:n,modifiers:r,effect:o,evaluate:i})=>{let s=n||"active";o(()=>{var d;let a=t.trim(),l=a.startsWith("/")||!a?a:(d=i(a))!=null?d:a,c=l?Ta(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});be();le();var ph="voodoo:locale",z=Z({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),Jn=ph,Zn="",Da=new Map;function hi(e,t){let n=z.messages[e];if(!n)return null;let r=n[t];if(typeof r=="string")return r;let o=n;for(let i of t.split(".")){if(o==null||typeof o=="string")return null;o=o[i]}return typeof o=="string"?o:null}function gi(e){let t=[e],n=e.split("-")[0];n&&n!==e&&t.push(n);for(let r of Object.keys(z.messages))r!==e&&r.split("-")[0]===n&&t.push(r);return t}var xu=new Map;function mh(e,t){try{let n=xu.get(e);return n||xu.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var vh=["zero","one","two","few","many","other"];function hh(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=mh(n,t);if(e.length===2)return r==="one"?e[0]:e[1];if(e.length===3)return t===0?e[0]:r==="one"?e[1]:e[2];let o=vh.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var gh=/\{\s*([\w.$-]+)\s*\}/g;function bh(e,t){return e.indexOf("{")===-1?e:e.replace(gh,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function yh(e){return e==null?{}:typeof e=="number"?{n:e}:e}function er(e,t){var i,s;if(!e)return"";let n=yh(t),r=z.locale,o=null;for(let a of gi(r))if(o=hi(a,e),o!==null)break;if(o===null&&z.fallback&&z.fallback!==r){for(let a of gi(z.fallback))if(o=hi(a,e),o!==null)break}if(o===null)return e;if(o.includes("|")){let a=Number((s=(i=n.n)!=null?i:n.count)!=null?s:0),l=o.split("|").map(c=>c.trim());o=hh(l,Number.isNaN(a)?0:a,r)}return bh(o,n)}function xh(e,t){let n=t!=null?t:z.locale;for(let r of gi(n))if(hi(r,e)!==null)return!0;if(z.fallback&&z.fallback!==n){for(let r of gi(z.fallback))if(hi(r,e)!==null)return!0}return!1}function wu(e,t={}){return ia(e,{...t,locale:z.locale})}function Eu(e,t){return oa(e,{locale:z.locale,currency:t!=null?t:z.currency})}function ku(e,t="short"){return sa(e,t,z.locale)}function Tu(e){return aa(e,z.locale)}function yi(){return z.locale}function wh(e){var t;return(t=z.messages[e!=null?e:z.locale])!=null?t:{}}function bi(e,t){let n=z.messages[e];return n?Xo(n,t):z.messages[e]=t,e}async function Ha(e,t){if(typeof t!="string"){bi(e,t);return}let n=Da.get(e);if(n)return n;let r=ve.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&bi(e,o)}).catch(o=>{K(o,`i18n ao carregar "${t}"`)}).finally(()=>{Da.delete(e)});return Da.set(e,r),r}function _r(e){let t=e==null?void 0:e.trim();if(!t||t===z.locale)return Promise.resolve();let n=z.locale;return z.locale=t,z.currency=z.currency||w.currency,w.locale=t,Qo(t,z.currency),Jn&&ue.set(Jn,t),typeof document!="undefined"&&(document.documentElement.lang=t),Fe.emit("locale",{from:n,to:t}),!z.messages[t]&&Zn?Ha(t,Zn.replace("{locale}",t)):Promise.resolve()}function Lu(){var n;if(typeof navigator=="undefined")return null;let e=Object.keys(z.messages);if(!e.length)return null;let t=(n=navigator.languages)!=null&&n.length?[...navigator.languages]:[navigator.language];for(let r of t){if(!r)continue;let o=e.find(a=>a.toLowerCase()===r.toLowerCase());if(o)return o;let i=r.split("-")[0].toLowerCase(),s=e.find(a=>a.split("-")[0].toLowerCase()===i);if(s)return s}return null}function Eh(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))bi(l,c);z.fallback=(o=e.fallback)!=null?o:z.fallback,z.currency=(s=(i=e.currency)!=null?i:w.currency)!=null?s:z.currency,Zn=(a=e.loadPath)!=null?a:Zn,e.persist===!1?Jn=null:typeof e.persist=="string"&&(Jn=e.persist);let t=Jn?ue.get(Jn):void 0,n=e.detect===!1?null:Lu(),r=t||n||e.locale||z.locale||z.fallback;return z.locale=r,w.locale=r,Qo(r,z.currency),typeof document!="undefined"&&(document.documentElement.lang=r),!z.messages[r]&&Zn&&Ha(r,Zn.replace("{locale}",r)),Kr}var kh={get locale(){return z.locale},get fallback(){return z.fallback},get locales(){return Object.keys(z.messages)},t:er,te:xh,n:wu,c:Eu,d:ku,rt:Tu,setLocale:_r,getLocale:yi,addMessages:bi,loadMessages:Ha,messagesOf:wh,detectLocale:Lu},Kr=Object.defineProperties(Eh,Object.getOwnPropertyDescriptors(kh));P("$t",()=>er);P("$locale",()=>z.locale);P("$i18n",()=>Kr);P("$n",()=>wu);P("$c",()=>Eu);P("$d",()=>ku);P("$rt",()=>Tu);var Th=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function Lh(e,t){let n=e.trim();if(!n)return"";if(Th.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function Mh(e,t){var o;let n=(o=ke(e,`${w.prefix}t-params`))!=null?o:ke(e,"data-v-t-params");if(!n)return{};let r=t(n);return r&&typeof r=="object"?r:{}}y("t",({el:e,arg:t,expression:n,effect:r,evaluate:o})=>{r(()=>{let i=Lh(n,o);if(!i)return;let s=er(i,Mh(e,o));t?e.setAttribute(t,s):e.textContent!==s&&(e.textContent=s)})});y("t-params",()=>{});y("locale",({el:e,expression:t,effect:n,cleanup:r,evaluate:o})=>{let i=()=>{let a=t.trim();if(!a)return"";if(/^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$/.test(a))return a.replace("_","-");let l=o(a);return typeof l=="string"?l:a},s=()=>{let a=i();a&&_r(a)};e.addEventListener("click",s),r(()=>e.removeEventListener("click",s)),n(()=>{e.classList.toggle("v-locale-active",i()===z.locale)})});be();le();He();He();le();var Pa=new WeakMap;function Wt(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function xi(e,t){return Nt(e,`${w.prefix}${t}`)||Nt(e,`data-v-${t}`)}function J(e,t){let n=Pa.get(e);return n&&t in n?n[t]:Wt(e,t)}function wi(e,t,n){var o;let r=(o=Pa.get(e))!=null?o:{};r[t]=n,Pa.set(e,r)}function _(e){y(e,({el:t,expression:n})=>{wi(t,e,n)},{priority:j.BIND})}function fe(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function mt(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=q(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var Sh=`
|
|
138
|
+
`)}))}function Bv(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 jv({el:e,cleanup:t,run:n}){var d,u;let r=V(e,"trigger")||Bv(e),[o,...i]=r.split(/[.\s]+/),s=G((d=V(e,"poll"))!=null?d: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"),l=G((u=V(e,"debounce"))!=null?u:void 0,0),c=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};l>0&&(c=Ue(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var qv=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of qv)y(e,({el:n,scope:r,expression:o,cleanup:i})=>{jv({el:n,scope:r,cleanup:i,run:a=>{let l=qr(o,r);if(!l)return;let c=V(n,"body")||V(n,"data-body"),d=c?q(c,r.child({$event:a}),"v-body"):void 0,u=V(n,"params"),p=u?q(u,r,"v-params"):void 0;jr({el:n,scope:r,method:t,url:l,body:d,params:p,event:a})}})});function qr(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=q(n,t,"URL");return typeof o=="string"?o:n}y("load",({el:e,scope:t,expression:n})=>{let r=qr(n,t);r&&jr({el:e,scope:t,method:"GET",url:r})});y("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=qr(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){jr({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),jr({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});y("search",({el:e,scope:t,expression:n,cleanup:r})=>{var u,p;let o=e,i=qr(n,t),s=V(e,"param")||o.getAttribute("name")||"q",a=G((u=V(e,"debounce"))!=null?u:void 0,300),l=Number((p=V(e,"min-length"))!=null?p:0),c=Ue(()=>{let f=o.value.trim();f.length<l||jr({el:e,scope:t,method:"GET",url:i,params:{[s]:f}})},a),d=()=>c();o.addEventListener("input",d),r(()=>{o.removeEventListener("input",d),c.cancel()})});y("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,d,u;let o=n.indexOf(":"),i=V(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=ii(()=>qr(s,t),{method:(V(e,"method")||"GET").toUpperCase(),params:()=>V(e,"params")?q(V(e,"params"),t,"v-params"):void 0,cache:G((l=V(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=V(e,"retry"))!=null?c:0),timeout:G((d=V(e,"timeout"))!=null?d:void 0,ve.defaults.timeout),jsonPath:V(e,"json-path"),poll:G((u=V(e,"poll"))!=null?u:void 0,0),manual:xa(e,"manual"),onSuccess:p=>Yn(e,"voodoo:success",{data:p}),onError:(p,f)=>Yn(e,"voodoo:error",{error:p,message:f})});t.set(i,a),r(()=>a.stop())},{priority:j.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"])y(e,()=>{},{priority:j.TRANSITION});od(ud);dd(Ot);gd(eu);Nd();var Vr=new Map;function Zd(e,t){let n=Vr.get(e);return n||Vr.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Vv(e,t){let n=Zd(e,r=>{n(),t(r)});return n}function Uv(e,t){let n=Vr.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){K(o,`event "${e}"`)}}function Wv(e,t){var n;if(!t){Vr.delete(e);return}(n=Vr.get(e))==null||n.delete(t)}function eu(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;y(e,i=>{var d,u;let s,a=!1,l=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}},c=n.raw?i.expression:i.evaluate();(d=n.created)==null||d.call(n,i.el,l(c)),(u=n.beforeMount)==null||u.call(n,i.el,l(c)),i.effect(()=>{var m,h;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,l(p));return}if(p===s)return;let f=l(p);(h=n.updated)==null||h.call(n,i.el,f),s=p}),i.cleanup(()=>{var f,m;let p=l(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:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function _v(e){return Object.defineProperties(ct.data,Object.getOwnPropertyDescriptors(e)),ct.data}var Kv="0.4.6",li={...ca,version:Kv,config:w,reactive:Z,ref:Mr,shallowRef:Ns,computed:Sr,effect:_e,watch:Oe,watchEffect:Fs,nextTick:at,toRaw:Le,markRaw:Hs,unref:Os,stop:Cs,effectScope:Rs,EffectScope:et,flushSync:Ls,data:_v,store:wd,stores:Fn,removeStore:Ed,storeNames:Ko,scope:ct,component:Ft,components:$e,directive:eu,directives:wt,magic:P,magics:Ar,createApp:bd,start:sd,whenReady:Uo,whenElement:Wo,walk:se,refresh:ld,destroy:X,stopObserving:ad,getScope:Lt,findScope:Ve,addCleanup:dt,parseAttribute:$n,parse:lt,tokenize:Po,evaluate:F,evaluateIn:q,stringify:Ht,clearParseCache:Oc,globals:Pe,http:ve,request:zt,HttpError:Ee,resource:ii,toast:tt,storage:ue,session:ei,cookie:ti,cache:ni,url:jt,theme:ut,clipboard:oi,screen:Ke,network:qt,enter:zr,leave:Br,fadeIn:_n,fadeOut:Kn,slideUp:dn,slideDown:cn,viewTransition:si,injectStyle:ne,ensureTokens:he,on:Zd,once:Vv,off:Wv,emit:Uv,use(e,t){No(li,e,t)},onError(e){Ms(e)},instances:Mt,Scope:on,PRIORITY:j,VoodooSyntaxError:de,VoodooRuntimeError:Re};xd(li);be();var Yv=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 cu(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function nt(e){return e.length<2?e:Array.from(new Set(e))}function un(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function wa(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 du(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Xv(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof ft)return e.toArray();if(typeof e=="string")return fn(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=fn(e);return t.length?t:typeof document=="undefined"?[]:[document]}function fn(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(du(o))return wa(o);let i=[];for(let s of Xv(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return nt(i)}if(e instanceof ft)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 nt(o)}return[]}function tu(e){if(e==null)return[];if(typeof e=="string"){let r=e;return du(r.trim())?wa(r):[document.createTextNode(r)]}if(e instanceof ft)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 ci(e,t,n){let r=cu(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Yv.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Gv(e,t){for(let[n,r]of Object.entries(t))ci(e,n,r)}function nu(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 ru(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var uu=new WeakMap;function ou(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function iu(e){e.removeAttribute("hidden");let t=uu.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 su(e){let t=e.style.display;t&&t!=="none"&&uu.set(e,t),e.style.display="none"}var au="input,select,textarea";function lu(e){return e.matches(au)?[e]:Array.from(e.querySelectorAll(au))}function Qv(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 di=new WeakMap;function Jv(e){let t=di.get(e);return t||di.set(e,t=[]),t}var ft=class e{constructor(t=[]){H(this,"length");H(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(nt(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(nt(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(nt(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(nt(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(nt(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(nt(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(nt(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(nt(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(nt([...this.elements,...fn(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))X(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))X(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 l of Array.from(s.options))l.selected=a.includes(l.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[l,c]of Object.entries(n))c===null||c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":String(c));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=un(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,l]of Object.entries(i.dataset))s[a]=nu(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[ru(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=ru(String(n));if(t.length<2){let i=this.elements[0];return i?nu(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)Gv(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=cu(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)ci(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)ci(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)ci(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=un(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=un(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=un(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=un(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 tu(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=fn(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=fn(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 tu(t))r.insertBefore(o,n);X(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=fn(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);X(n),n.remove()}}return this}remove(){for(let t of this.elements)X(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))X(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 l of this.elements)for(let c of un(t)){let d=u=>{if(!o){i.call(l,u);return}let p=u.target,f=p==null?void 0:p.closest(o);!f||!l.contains(f)||i.call(f,u)};l.addEventListener(c,d,s),Jv(l).push({type:c,selector:o,handler:i,wrapped:d,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?un(t):null;for(let a of this.elements){let l=di.get(a);if(!l)continue;let c=[];for(let d of l){let u=!s||s.includes(d.type),p=o===null||d.selector===o,f=i===null||d.handler===i;u&&p&&f?a.removeEventListener(d.type,d.wrapped,d.options):c.push(d)}di.set(a,c)}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(l){return o?s.off(t,o,a):s.off(t,a),i.call(this,l)};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)iu(t);return this}hide(){for(let t of this.elements)su(t);return this}toggle(t){for(let n of this.elements)(t===void 0?ou(n):t)?iu(n):su(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),_n(n,t);return this}fadeOut(t=220){for(let n of this.elements)Kn(n,t);return this}slideUp(t=240){for(let n of this.elements)dn(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),cn(n,t);return this}slideToggle(t=240){for(let n of this.elements)ou(n)?(n.removeAttribute("hidden"),cn(n,t)):dn(n,t);return this}animate(t,n=300){for(let r of this.elements)typeof r.animate=="function"&&r.animate(t,n);return this}scrollIntoView(t={behavior:"smooth",block:"start"}){var n;return(n=this.elements[0])==null||n.scrollIntoView(t),this}serialize(){let t=this.elements[0];if(!t)return"";let n=new URLSearchParams;for(let r of lu(t)){if(!Qv(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 lu(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let d=l.name.endsWith("[]"),u=d?l.name.slice(0,-2):l.name,p=a,f;if(c==="checkbox"){if(!l.checked&&!d){n[u]=(r=n[u])!=null?r:!1;continue}if(!l.checked)continue;f=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;f=l.value}else c==="file"?f=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&p.multiple?f=Array.from(p.selectedOptions).map(m=>m.value):c==="number"||c==="range"?f=l.value===""?null:Number(l.value):f=l.value;if(d){let m=n[u];Array.isArray(m)?m.push(f):n[u]=[f];continue}if(Object.prototype.hasOwnProperty.call(n,u)){let m=n[u];Array.isArray(m)?m.push(f):m===void 0||m===!1?n[u]=f:n[u]=[m,f];continue}n[u]=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&&X(n),se(n,Ve(n.parentNode));return this}destroy(){for(let t of this.elements)X(t);return this}};function Ea(e,t){if(typeof e=="function"){ka(e);let n=typeof document!="undefined"?document.documentElement:null;return new ft(n?[n]:[])}return new ft(fn(e,t))}function ka(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{hd(()=>{try{e==null||e()}catch(n){K(n,"V.ready")}t()})})}function fu(e){return new ft(wa(e))}be();le();var pn=new Map,Fe={emit(e,t){let n=pn.get(e);if(!(!n||n.size===0))for(let r of[...n])try{r(t)}catch(o){console.error("[Voodoo] error in devtools listener:",o)}},on(e,t){let n=pn.get(e);return n||pn.set(e,n=new Set),n.add(t),()=>{n==null||n.delete(t)}},off(e,t){var n;(n=pn.get(e))==null||n.delete(t)},clear(e){e?pn.delete(e):pn.clear()},count(e){var t,n;return(n=(t=pn.get(e))==null?void 0:t.size)!=null?n:0}};var U={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},ui="__voodooRoute",vu=10,pt=[],hu=new Map,fi=new Map,Xn="inicial",pi=!1,gu=!1;function Zv(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var ce=Z(Zv());function Ur(e){let t=e||"/";return t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/{2,}/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function bu(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function eh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function Sa(e){let t=e||"/",n="",r=t.indexOf("#");r>-1&&(n=t.slice(r+1),t=t.slice(0,r));let o={},i=t.indexOf("?");return i>-1&&(o=bu(t.slice(i+1)),t=t.slice(0,i)),{path:Ur(t),query:o,hash:n}}function th(e){let t=U.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function yu(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:U.mode==="hash"?Sa(window.location.hash.slice(1)||"/"):{path:Ur(th(window.location.pathname)),query:bu(window.location.search),hash:window.location.hash.slice(1)}}function xu(e,t,n){let r=eh(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function Aa(e){let t=xu(e.path,e.query,e.hash);if(U.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${U.base==="/"?"":U.base.replace(/\/$/,"")}${t}`||"/"}var La=!1,mi=!1;function Ca(e,t,n){if(!La)try{n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t);return}catch(o){if(!(o instanceof Error)||o.name!=="SecurityError")throw o;La=!0}if(U.mode!=="hash")return;let r=t.slice(t.indexOf("#"));if(window.location.hash!==r){mi=!0;try{n?window.location.replace(t):window.location.hash=r}finally{setTimeout(()=>{mi=!1},0)}}}function wu(e,t){let n=e==="*"?"*":Ur(e),r=n==="*"?["*"]:n.split("/").filter(Boolean),o=[],i=r.length*10;for(let s of r){if(s==="*"||s==="**"){o.push({type:"wildcard",value:"*",optional:!0}),i-=30;continue}if(s.startsWith(":")){let a=s.endsWith("?"),l=s.slice(1,a?-1:void 0);o.push({type:"param",value:l,optional:a}),i+=a?1:2;continue}o.push({type:"static",value:s,optional:!1}),i+=4}return{pattern:n,segments:o,score:i,record:t}}function nh(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(Ta).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(Ta(i)!==o.value)return null;r++;continue}n[o.value]=Ta(i),r++}return r===t.length?n:null}function Ta(e){try{return decodeURIComponent(e)}catch(t){return e}}function rh(e){let t=e.split("/").filter(Boolean),n=null;for(let r of pt){let o=nh(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function Ra(e){var t,n;return e&&(n=(t=pt.find(r=>r.pattern===e))==null?void 0:t.record)!=null?n:null}function Gn(e){let{path:t,query:n,hash:r}=Sa(e);return $a(t,n,r)}function $a(e,t,n){var o,i;let r=rh(e);return{path:e,fullPath:xu(e,t,n),params:r?r.params:{},query:t,hash:n,name:(o=r==null?void 0:r.route.record.name)!=null?o:"",meta:(i=r==null?void 0:r.route.record.meta)!=null?i:{},matched:r?r.route.pattern:null}}function Qn(){return{path:ce.path,fullPath:ce.fullPath,params:{...ce.params},query:{...ce.query},hash:ce.hash,name:ce.name,meta:ce.meta,matched:ce.matched}}function Da(e){ce.path=e.path,ce.fullPath=e.fullPath,ce.params=e.params,ce.query=e.query,ce.hash=e.hash,ce.name=e.name,ce.meta=e.meta,ce.matched=e.matched;let t=Ra(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=U.titleTemplate.includes("%s")?U.titleTemplate.replace("%s",t.title):t.title)}async function Ha(e,t){let n=Ra(e.matched);if(n!=null&&n.redirect)return n.redirect;if(n!=null&&n.beforeEnter){let r=await n.beforeEnter(e,t);if(r===!1)return!1;if(typeof r=="string")return r}if(U.beforeEach){let r=await U.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function hi(){typeof window!="undefined"&&hu.set(Xn,window.scrollY)}function Pa(e,t,n){typeof window!="undefined"&&Me(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(U.scrollBehavior){let i=U.scrollBehavior(e,t,n);if(i===!1)return;if(typeof i=="number"){r(i);return}}if(e.hash){let i=(o=document.getElementById(e.hash))!=null?o:/^[\w-]+$/.test(e.hash)?document.querySelector(`[name="${e.hash}"]`):null;if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}}r(n!=null?n:0)})})}async function Vt(e,t={}){var a,l;if(typeof window=="undefined")return!1;Eu();let n=Qn(),r=Gn(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>vu)return Y(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Ha(r,n);if(d===!1)return Fe.emit("navigation",{from:n.fullPath,to:r.fullPath,cancelled:!0,matched:r.matched}),!1;if(typeof d=="string"){r=Gn(d);continue}break}hi();let o=ae("rota"),i={...(a=t.state)!=null?a:{},[ui]:o},s=Aa(r);return Ca(i,s,t.replace===!0),Xn=o,Da(r),t.scroll!==!1&&Pa(r,n,null),(l=U.afterEach)==null||l.call(U,Qn(),n),Fe.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function oh(e){var c,d;if(mi)return;let{path:t,query:n,hash:r}=yu(),o=$a(t,n,r),i=Qn();if(o.fullPath===i.fullPath)return;let s=await Ha(o,i);if(s===!1){Ca({[ui]:Xn},Aa(i),!0),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){Vt(s,{replace:!0});return}hi();let a=e.state,l=a&&a[ui]||ae("rota");Xn=l,Da(o),Pa(o,i,(c=hu.get(l))!=null?c:0),(d=U.afterEach)==null||d.call(U,Qn(),i),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function vi(e){oh(e)}function Eu(){pi||typeof window=="undefined"||(pi=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",vi),U.mode==="hash"&&window.addEventListener("hashchange",vi),window.addEventListener("beforeunload",hi))}function ih(){!pi||typeof window=="undefined"||(pi=!1,window.removeEventListener("popstate",vi),window.removeEventListener("hashchange",vi),window.removeEventListener("beforeunload",hi),La=!1,mi=!1)}async function sh(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=yu(),r=Qn(),o=$a(e,t,n);for(let s=0;;s++){if(s>vu){Y("Router: too many redirects in the initial route.");return}let a=await Ha(o,r);if(a===!1)return;if(typeof a=="string"){o=Gn(a);continue}break}Xn=ae("rota"),Ca({[ui]:Xn},Aa(o),!0),Da(o),o.hash&&Pa(o,r,null),(i=U.afterEach)==null||i.call(U,Qn(),r)}function ah(e,t){let n=wu(e,t),r=pt.findIndex(o=>o.pattern===n.pattern);r>-1?pt.splice(r,1,n):pt.push(n)}function lh(e){let t=e==="*"?"*":Ur(e),n=pt.findIndex(r=>r.pattern===t);n>-1&&pt.splice(n,1)}function ch(){return[...pt].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function dh(e){e?fi.delete(e):fi.clear()}function uh(e){var t,n,r,o,i,s,a,l,c,d;U.mode=(t=e.mode)!=null?t:"history",U.base=Ur((n=e.base)!=null?n:"/"),U.beforeEach=(r=e.beforeEach)!=null?r:null,U.afterEach=(o=e.afterEach)!=null?o:null,U.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",U.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",U.transition=(a=e.transition)!=null?a:!0,U.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",U.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,pt.length=0;for(let[u,p]of Object.entries((d=e.routes)!=null?d:{}))pt.push(wu(u,p));return gu=!0,Eu(),sh(),Wr}var fh={get current(){return ce},push:(e,t={})=>Vt(e,t),replace:(e,t={})=>Vt(e,{...t,replace:!0}),navigate:Vt,back:()=>{typeof window!="undefined"&&window.history.back()},forward:()=>{typeof window!="undefined"&&window.history.forward()},go:e=>{typeof window!="undefined"&&window.history.go(e)},resolve:Gn,addRoute:ah,removeRoute:lh,patterns:ch,stop:ih,clearViewCache:dh,get ready(){return gu}},Wr=Object.defineProperties(uh,Object.getOwnPropertyDescriptors(fh));P("$route",()=>ce);P("$router",()=>Wr);async function ph(e){let t=fi.get(e);if(t!==void 0)return t;let n=await ve.get(e,{responseType:"text"}),r=typeof n=="string"?n:String(n!=null?n:"");return fi.set(e,r),r}function mh(e){return Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}y("router-view",({el:e,scope:t,modifiers:n,effect:r,cleanup:o})=>{jo(e);let i=e.innerHTML,s=U.transition&&!n["no-transition"],a=0,l=()=>{for(let u of Array.from(e.childNodes))X(u);e.textContent=""},c=(u,p)=>{if(l(),u!=null&&u.component){let f=document.createElement("div");f.setAttribute(`${w.prefix}component`,u.component),f.className="v-router-page",e.appendChild(f),se(f,t);return}e.innerHTML=p!=null?p:i;for(let f of Array.from(e.childNodes))se(f,t)},d=async(u,p)=>{let f=null;if(u!=null&&u.view){e.classList.add("v-router-loading");try{f=await ph(u.view)}catch(m){K(m,`v-router-view loading "${u.view}"`),f=""}finally{e.classList.remove("v-router-loading")}if(p!==a)return}s?si(()=>c(u,f)):c(u,f)};r(()=>{let u=ce.matched;mh(ce.params);let p=Ra(u);d(p,++a)}),o(()=>{a++,l()})},{priority:j.DEFAULT});var vh=/^[a-z][a-z0-9+.-]*:/i;function pu(e){return!!(!e||e.startsWith("//")||vh.test(e))}function mu(e,t,n){var i;let r=t.trim();if(r){if(r.startsWith("/")||r.startsWith("#"))return r;let s=n(r);return typeof s=="string"&&s?s:r}let o=(i=e.getAttribute("href"))!=null?i:"";return U.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function Ma(e,t){let{path:n}=Sa(e);return n==="/"||t?ce.path===n:ce.path===n||ce.path.startsWith(`${n}/`)}y("link",({el:e,expression:t,modifiers:n,effect:r,cleanup:o,evaluate:i})=>{let s=e,a=l=>{var u;if(l.defaultPrevented||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||typeof l.button=="number"&&l.button!==0)return;let c=s.getAttribute("target");if(c&&c!=="_self"||s.hasAttribute("download")||((u=s.getAttribute("rel"))!=null?u:"").split(/\s+/).includes("external"))return;let d=mu(e,t,i);d&&(pu(d)||U.mode!=="hash"&&d.startsWith("#")||(l.preventDefault(),Vt(d,{replace:!!n.replace,scroll:n["no-scroll"]?!1:void 0})))};e.addEventListener("click",a),o(()=>e.removeEventListener("click",a)),r(()=>{let l=mu(e,t,i);if(!l||pu(l))return;let c=Ma(l,!0),d=c||Ma(l,!1);e.classList.toggle(U.linkActiveClass,d),e.classList.toggle(U.linkExactActiveClass,c),c?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")})});y("route-active",({el:e,expression:t,arg:n,modifiers:r,effect:o,evaluate:i})=>{let s=n||"active";o(()=>{var d;let a=t.trim(),l=a.startsWith("/")||!a?a:(d=i(a))!=null?d:a,c=l?Ma(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});be();le();var hh="voodoo:locale",z=Z({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),Jn=hh,Zn="",Na=new Map;function gi(e,t){let n=z.messages[e];if(!n)return null;let r=n[t];if(typeof r=="string")return r;let o=n;for(let i of t.split(".")){if(o==null||typeof o=="string")return null;o=o[i]}return typeof o=="string"?o:null}function bi(e){let t=[e],n=e.split("-")[0];n&&n!==e&&t.push(n);for(let r of Object.keys(z.messages))r!==e&&r.split("-")[0]===n&&t.push(r);return t}var ku=new Map;function gh(e,t){try{let n=ku.get(e);return n||ku.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var bh=["zero","one","two","few","many","other"];function yh(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=gh(n,t);if(e.length===2)return r==="one"?e[0]:e[1];if(e.length===3)return t===0?e[0]:r==="one"?e[1]:e[2];let o=bh.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var xh=/\{\s*([\w.$-]+)\s*\}/g;function wh(e,t){return e.indexOf("{")===-1?e:e.replace(xh,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function Eh(e){return e==null?{}:typeof e=="number"?{n:e}:e}function er(e,t){var i,s;if(!e)return"";let n=Eh(t),r=z.locale,o=null;for(let a of bi(r))if(o=gi(a,e),o!==null)break;if(o===null&&z.fallback&&z.fallback!==r){for(let a of bi(z.fallback))if(o=gi(a,e),o!==null)break}if(o===null)return e;if(o.includes("|")){let a=Number((s=(i=n.n)!=null?i:n.count)!=null?s:0),l=o.split("|").map(c=>c.trim());o=yh(l,Number.isNaN(a)?0:a,r)}return wh(o,n)}function kh(e,t){let n=t!=null?t:z.locale;for(let r of bi(n))if(gi(r,e)!==null)return!0;if(z.fallback&&z.fallback!==n){for(let r of bi(z.fallback))if(gi(r,e)!==null)return!0}return!1}function Tu(e,t={}){return sa(e,{...t,locale:z.locale})}function Lu(e,t){return ia(e,{locale:z.locale,currency:t!=null?t:z.currency})}function Mu(e,t="short"){return aa(e,t,z.locale)}function Su(e){return la(e,z.locale)}function xi(){return z.locale}function Th(e){var t;return(t=z.messages[e!=null?e:z.locale])!=null?t:{}}function yi(e,t){let n=z.messages[e];return n?Xo(n,t):z.messages[e]=t,e}async function Oa(e,t){if(typeof t!="string"){yi(e,t);return}let n=Na.get(e);if(n)return n;let r=ve.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&yi(e,o)}).catch(o=>{K(o,`i18n ao carregar "${t}"`)}).finally(()=>{Na.delete(e)});return Na.set(e,r),r}function _r(e){let t=e==null?void 0:e.trim();if(!t||t===z.locale)return Promise.resolve();let n=z.locale;return z.locale=t,z.currency=z.currency||w.currency,w.locale=t,Qo(t,z.currency),Jn&&ue.set(Jn,t),typeof document!="undefined"&&(document.documentElement.lang=t),Fe.emit("locale",{from:n,to:t}),!z.messages[t]&&Zn?Oa(t,Zn.replace("{locale}",t)):Promise.resolve()}function Au(){var n;if(typeof navigator=="undefined")return null;let e=Object.keys(z.messages);if(!e.length)return null;let t=(n=navigator.languages)!=null&&n.length?[...navigator.languages]:[navigator.language];for(let r of t){if(!r)continue;let o=e.find(a=>a.toLowerCase()===r.toLowerCase());if(o)return o;let i=r.split("-")[0].toLowerCase(),s=e.find(a=>a.split("-")[0].toLowerCase()===i);if(s)return s}return null}function Lh(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))yi(l,c);z.fallback=(o=e.fallback)!=null?o:z.fallback,z.currency=(s=(i=e.currency)!=null?i:w.currency)!=null?s:z.currency,Zn=(a=e.loadPath)!=null?a:Zn,e.persist===!1?Jn=null:typeof e.persist=="string"&&(Jn=e.persist);let t=Jn?ue.get(Jn):void 0,n=e.detect===!1?null:Au(),r=t||n||e.locale||z.locale||z.fallback;return z.locale=r,w.locale=r,Qo(r,z.currency),typeof document!="undefined"&&(document.documentElement.lang=r),!z.messages[r]&&Zn&&Oa(r,Zn.replace("{locale}",r)),Kr}var Mh={get locale(){return z.locale},get fallback(){return z.fallback},get locales(){return Object.keys(z.messages)},t:er,te:kh,n:Tu,c:Lu,d:Mu,rt:Su,setLocale:_r,getLocale:xi,addMessages:yi,loadMessages:Oa,messagesOf:Th,detectLocale:Au},Kr=Object.defineProperties(Lh,Object.getOwnPropertyDescriptors(Mh));P("$t",()=>er);P("$locale",()=>z.locale);P("$i18n",()=>Kr);P("$n",()=>Tu);P("$c",()=>Lu);P("$d",()=>Mu);P("$rt",()=>Su);var Sh=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function Ah(e,t){let n=e.trim();if(!n)return"";if(Sh.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function Ch(e,t){var o;let n=(o=ke(e,`${w.prefix}t-params`))!=null?o:ke(e,"data-v-t-params");if(!n)return{};let r=t(n);return r&&typeof r=="object"?r:{}}y("t",({el:e,arg:t,expression:n,effect:r,evaluate:o})=>{r(()=>{let i=Ah(n,o);if(!i)return;let s=er(i,Ch(e,o));t?e.setAttribute(t,s):e.textContent!==s&&(e.textContent=s)})});y("t-params",()=>{});y("locale",({el:e,expression:t,effect:n,cleanup:r,evaluate:o})=>{let i=()=>{let a=t.trim();if(!a)return"";if(/^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$/.test(a))return a.replace("_","-");let l=o(a);return typeof l=="string"?l:a},s=()=>{let a=i();a&&_r(a)};e.addEventListener("click",s),r(()=>e.removeEventListener("click",s)),n(()=>{e.classList.toggle("v-locale-active",i()===z.locale)})});be();le();He();He();le();var Fa=new WeakMap;function Wt(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function wi(e,t){return Nt(e,`${w.prefix}${t}`)||Nt(e,`data-v-${t}`)}function J(e,t){let n=Fa.get(e);return n&&t in n?n[t]:Wt(e,t)}function Ei(e,t,n){var o;let r=(o=Fa.get(e))!=null?o:{};r[t]=n,Fa.set(e,r)}function _(e){y(e,({el:t,expression:n})=>{Ei(t,e,n)},{priority:j.BIND})}function fe(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function mt(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=q(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var Rh=`
|
|
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
|
-
`,Ut=null;function Ye(e){if(typeof document=="undefined")return;ne("ui-live",
|
|
141
|
+
`,Ut=null;function Ye(e){if(typeof document=="undefined")return;ne("ui-live",Rh),(!Ut||!Ut.isConnected)&&(Ut=document.createElement("div"),Ut.className="v-visually-hidden",Ut.setAttribute("role","status"),Ut.setAttribute("aria-live","polite"),document.body.appendChild(Ut));let t=Ut;t.textContent="",setTimeout(()=>{t.textContent=e},40)}function ki(e,t,n){return Bo(e,t).filter(r=>Hn(r,n)===e)}He();le();var $h=`
|
|
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 Xr(){he(),ne("dnd",Ah)}var tr=new Map,nr=new Map;function Oa(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 vt(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function Ch(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function Mu(e){return vt(e).map((t,n)=>Ch(t,n))}function Su(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var $=null,Yr=0;function Rh(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 Au(e,t){if(!($!=null&&$.ghost))return;let n=$.axis==="y"?$.lastX:e,r=$.axis==="x"?$.lastY:t;$.ghost.style.transform=`translate3d(${Math.round(n-$.grabX)}px, ${Math.round(r-$.grabY)}px, 0)`}function $h(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 Dh(){if(!$)return;let e=56,t=16,n=$.lastX,r=$.lastY,o=document.elementFromPoint(n,r),i=$h(o!=null?o:$.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 Hh(){let e=()=>{!$||$.keyboard||(Dh(),Yr=requestAnimationFrame(e))};Yr=requestAnimationFrame(e)}function Ph(){Yr&&cancelAnimationFrame(Yr),Yr=0}function Cu(e,t){let n=tr.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function Fa(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function Ru(e,t){for(let n of nr.values())n.el.classList.toggle("v-drop-active",t&&Fa(n,e));for(let n of tr.values())n.el.classList.toggle("v-drop-active",t&&Cu(n.el,e))}function Nh(e,t,n,r){let o=Su(e),i=null;for(let s of vt(e)){if(s===t)continue;let a=s.getBoundingClientRect(),l=o?a.left+a.width/2:a.top+a.height/2;if((o?n:r)<l){i=s;break}}if(i){(t.nextElementSibling!==i||t.parentElement!==e)&&e.insertBefore(t,i);return}e.lastElementChild!==t&&e.appendChild(t)}function Ia(e,t){Xr();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;$={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?vt(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"):($.ghost=Rh(e,n),Au(t.x,t.y),Hh()),Ru($,!0),document.addEventListener("keydown",Du,!0),fe(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function Oh(e,t){var a,l,c;if(!$)return;$.lastX=e,$.lastY=t,Au(e,t);let n=document.elementFromPoint(e,t),r=(a=n==null?void 0:n.closest(".v-sortable"))!=null?a:null,o=(l=n==null?void 0:n.closest(".v-droppable"))!=null?l:null;$.mode==="sort"&&r&&Cu(r,$)?($.overList&&$.overList!==r&&$.overList.classList.remove("v-drop-over"),$.overList=r,r.classList.add("v-drop-over"),Nh(r,$.item,e,t)):$.overList&&!r&&$.overList.classList.remove("v-drop-over");let i=o?nr.get(o):void 0,s=i?Fa(i,$):!1;$.overDrop&&$.overDrop!==o&&($.overDrop.classList.remove("v-drop-over"),$.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),$.overDrop=o),(c=$.ghost)==null||c.classList.toggle("v-drag-invalid",!!o&&!s)}function Fh(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function $u(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"),Ru(e,!1),Ph(),document.removeEventListener("keydown",Du,!0),$=null}function za(){var i;let e=$;if(!e)return;let t=e.item.parentElement,n=t?vt(t).indexOf(e.item):-1,r=e.overDrop,o=r?nr.get(r):void 0;if(e.mode==="sort"&&t&&tr.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:Mu(t)};fe(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&fe(e.startList,"voodoo:sorted",{...a,order:Mu(e.startList)}),Ye(`Item moved to position ${n+1} of ${vt(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),mt(o.expression,o.scope,r,a,s),Ye("Item dropped in drop zone")}fe(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),$u(e)}function Na(){let e=$;e&&(Fh(e),fe(e.item,"voodoo:drag-cancel",{item:e.item}),Ye("Drag canceled"),$u(e))}function Du(e){!$||e.key!=="Escape"||(e.preventDefault(),Na())}function Hu(e,t,n){let r=null,o=-1,i=0,s=0,a=!1,l=f=>{if(f.pointerId===o){if(!a){if(Math.hypot(f.clientX-i,f.clientY-s)<4||!r)return;a=!0,Ia(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}f.preventDefault(),Oh(f.clientX,f.clientY)}},c=()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",u),r=null,o=-1,a=!1},d=f=>{f.pointerId===o&&(a&&za(),c())},u=()=>{a&&Na(),c()},p=f=>{if(f.button!==0||$)return;let m=f.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let h=t.itemFrom(m);h&&(r=h,o=f.pointerId,i=f.clientX,s=f.clientY,a=!1,window.addEventListener("pointermove",l,{passive:!1}),window.addEventListener("pointerup",d),window.addEventListener("pointercancel",u))};e.addEventListener("pointerdown",p),n(()=>{e.removeEventListener("pointerdown",p),a&&Na(),c()})}function Ih(e){return e?Array.from(tr.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function zh(e,t){if(!$)return!1;let n=e.parentElement;if(!n)return!1;let r=Su(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=vt(n),a=s.indexOf(e);if(o||i){let l=a+(o?1:-1);return l<0||l>=s.length?!1:(o?n.insertBefore(e,s[l].nextSibling):n.insertBefore(e,s[l]),Ye(`Position ${l+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let l=Ih($.group),c=l.indexOf(n);if(c===-1)return!1;let d=l[c+(t==="ArrowRight"?1:-1)];return d?(d.appendChild(e),Ye(`Moved to list ${l.indexOf(d)+1} of ${l.length}`),e.focus(),!0):!1}return!1}function Bh(e){return Array.from(nr.values()).filter(t=>Fa(t,e)).map(t=>t.el)}y("dnd-group",({el:e,expression:t})=>{Xr();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});y("sortable",({el:e,expression:t,cleanup:n})=>{Xr(),e.classList.add("v-sortable");let r=J(e,"sortable-handle")||t.trim()||null,o={el:e,group:Oa(e,J(e,"sortable-group")),handle:r};tr.set(e,o),e.hasAttribute("aria-label")||e.setAttribute("aria-label","Sortable list");let i=l=>{var c;l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),l.hasAttribute("aria-grabbed")||l.setAttribute("aria-grabbed","false"),r?(c=l.querySelector(r))==null||c.classList.add("v-drag-handle"):l.classList.add("v-drag-handle")};for(let l of vt(e))i(l);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let l of vt(e))i(l)});s==null||s.observe(e,{childList:!0}),Hu(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:l=>{let c=vt(e).find(d=>d===l||d.contains(l));return c!=null?c:null}},n);let a=l=>{let c=l.target;if(!c)return;let d=vt(e).find(u=>u===c||u.contains(c));if(d){if(l.key===" "||l.key==="Spacebar"){if(l.preventDefault(),$&&$.item===d){za(),Ye("Item dropped");return}if($)return;Ia(d,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),Ye("Item grabbed. Use arrow keys to move and space to drop.");return}!$||$.item!==d||l.key.startsWith("Arrow")&&zh(d,l.key)&&l.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),tr.delete(e)})});_("sortable-group");_("sortable-handle");y("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;Xr(),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(),l=Oa(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 c=()=>a?q(a,n,"v-draggable-data"):null;Hu(e,{mode:"free",handle:o,group:()=>l,data:c,axis:()=>s,itemFrom:()=>e},r);let d=[],u=0,p=()=>{d.forEach((v,g)=>v.classList.toggle("v-drop-over",g===u));let h=d[u];!h||!$||($.overDrop=h,me.reducedMotion?h.scrollIntoView({block:"nearest"}):h.scrollIntoView({block:"nearest",behavior:"smooth"}),Ye(h.getAttribute("aria-label")||`Target ${u+1} of ${d.length}`))},f=h=>{if(h.key===" "||h.key==="Spacebar"){if(h.preventDefault(),$&&$.item===e){za(),d=[];return}if($)return;Ia(e,{mode:"free",data:c(),group:l,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),d=$?Bh($):[],u=0,d.length?p():Ye("No targets available");return}if(!(!$||$.item!==e||!d.length)){if(h.key==="ArrowDown"||h.key==="ArrowRight"){h.preventDefault(),u=(u+1)%d.length,p();return}(h.key==="ArrowUp"||h.key==="ArrowLeft")&&(h.preventDefault(),u=(u-1+d.length)%d.length,p())}};e.addEventListener("keydown",f),r(()=>{e.removeEventListener("keydown",f);for(let h of d)h.classList.remove("v-drop-over")})});_("draggable-handle");_("draggable-axis");_("draggable-data");_("draggable-group");y("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{Xr(),e.classList.add("v-droppable");let o={el:e,group:Oa(e,J(e,"droppable-group")),accept:J(e,"droppable-accept"),expression:t,scope:n};nr.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{nr.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});_("droppable-accept");_("droppable-group");var jh=`
|
|
165
|
+
`;function Xr(){he(),ne("dnd",$h)}var tr=new Map,nr=new Map;function za(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 vt(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function Dh(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function Cu(e){return vt(e).map((t,n)=>Dh(t,n))}function Ru(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var $=null,Yr=0;function Hh(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 $u(e,t){if(!($!=null&&$.ghost))return;let n=$.axis==="y"?$.lastX:e,r=$.axis==="x"?$.lastY:t;$.ghost.style.transform=`translate3d(${Math.round(n-$.grabX)}px, ${Math.round(r-$.grabY)}px, 0)`}function Ph(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 Nh(){if(!$)return;let e=56,t=16,n=$.lastX,r=$.lastY,o=document.elementFromPoint(n,r),i=Ph(o!=null?o:$.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 Oh(){let e=()=>{!$||$.keyboard||(Nh(),Yr=requestAnimationFrame(e))};Yr=requestAnimationFrame(e)}function Fh(){Yr&&cancelAnimationFrame(Yr),Yr=0}function Du(e,t){let n=tr.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function Ba(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function Hu(e,t){for(let n of nr.values())n.el.classList.toggle("v-drop-active",t&&Ba(n,e));for(let n of tr.values())n.el.classList.toggle("v-drop-active",t&&Du(n.el,e))}function Ih(e,t,n,r){let o=Ru(e),i=null;for(let s of vt(e)){if(s===t)continue;let a=s.getBoundingClientRect(),l=o?a.left+a.width/2:a.top+a.height/2;if((o?n:r)<l){i=s;break}}if(i){(t.nextElementSibling!==i||t.parentElement!==e)&&e.insertBefore(t,i);return}e.lastElementChild!==t&&e.appendChild(t)}function ja(e,t){Xr();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;$={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?vt(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"):($.ghost=Hh(e,n),$u(t.x,t.y),Oh()),Hu($,!0),document.addEventListener("keydown",Nu,!0),fe(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function zh(e,t){var a,l,c;if(!$)return;$.lastX=e,$.lastY=t,$u(e,t);let n=document.elementFromPoint(e,t),r=(a=n==null?void 0:n.closest(".v-sortable"))!=null?a:null,o=(l=n==null?void 0:n.closest(".v-droppable"))!=null?l:null;$.mode==="sort"&&r&&Du(r,$)?($.overList&&$.overList!==r&&$.overList.classList.remove("v-drop-over"),$.overList=r,r.classList.add("v-drop-over"),Ih(r,$.item,e,t)):$.overList&&!r&&$.overList.classList.remove("v-drop-over");let i=o?nr.get(o):void 0,s=i?Ba(i,$):!1;$.overDrop&&$.overDrop!==o&&($.overDrop.classList.remove("v-drop-over"),$.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),$.overDrop=o),(c=$.ghost)==null||c.classList.toggle("v-drag-invalid",!!o&&!s)}function Bh(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function Pu(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"),Hu(e,!1),Fh(),document.removeEventListener("keydown",Nu,!0),$=null}function qa(){var i;let e=$;if(!e)return;let t=e.item.parentElement,n=t?vt(t).indexOf(e.item):-1,r=e.overDrop,o=r?nr.get(r):void 0;if(e.mode==="sort"&&t&&tr.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:Cu(t)};fe(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&fe(e.startList,"voodoo:sorted",{...a,order:Cu(e.startList)}),Ye(`Item moved to position ${n+1} of ${vt(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),mt(o.expression,o.scope,r,a,s),Ye("Item dropped in drop zone")}fe(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),Pu(e)}function Ia(){let e=$;e&&(Bh(e),fe(e.item,"voodoo:drag-cancel",{item:e.item}),Ye("Drag canceled"),Pu(e))}function Nu(e){!$||e.key!=="Escape"||(e.preventDefault(),Ia())}function Ou(e,t,n){let r=null,o=-1,i=0,s=0,a=!1,l=f=>{if(f.pointerId===o){if(!a){if(Math.hypot(f.clientX-i,f.clientY-s)<4||!r)return;a=!0,ja(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}f.preventDefault(),zh(f.clientX,f.clientY)}},c=()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",u),r=null,o=-1,a=!1},d=f=>{f.pointerId===o&&(a&&qa(),c())},u=()=>{a&&Ia(),c()},p=f=>{if(f.button!==0||$)return;let m=f.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let h=t.itemFrom(m);h&&(r=h,o=f.pointerId,i=f.clientX,s=f.clientY,a=!1,window.addEventListener("pointermove",l,{passive:!1}),window.addEventListener("pointerup",d),window.addEventListener("pointercancel",u))};e.addEventListener("pointerdown",p),n(()=>{e.removeEventListener("pointerdown",p),a&&Ia(),c()})}function jh(e){return e?Array.from(tr.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function qh(e,t){if(!$)return!1;let n=e.parentElement;if(!n)return!1;let r=Ru(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=vt(n),a=s.indexOf(e);if(o||i){let l=a+(o?1:-1);return l<0||l>=s.length?!1:(o?n.insertBefore(e,s[l].nextSibling):n.insertBefore(e,s[l]),Ye(`Position ${l+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let l=jh($.group),c=l.indexOf(n);if(c===-1)return!1;let d=l[c+(t==="ArrowRight"?1:-1)];return d?(d.appendChild(e),Ye(`Moved to list ${l.indexOf(d)+1} of ${l.length}`),e.focus(),!0):!1}return!1}function Vh(e){return Array.from(nr.values()).filter(t=>Ba(t,e)).map(t=>t.el)}y("dnd-group",({el:e,expression:t})=>{Xr();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});y("sortable",({el:e,expression:t,cleanup:n})=>{Xr(),e.classList.add("v-sortable");let r=J(e,"sortable-handle")||t.trim()||null,o={el:e,group:za(e,J(e,"sortable-group")),handle:r};tr.set(e,o),e.hasAttribute("aria-label")||e.setAttribute("aria-label","Sortable list");let i=l=>{var c;l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),l.hasAttribute("aria-grabbed")||l.setAttribute("aria-grabbed","false"),r?(c=l.querySelector(r))==null||c.classList.add("v-drag-handle"):l.classList.add("v-drag-handle")};for(let l of vt(e))i(l);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let l of vt(e))i(l)});s==null||s.observe(e,{childList:!0}),Ou(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:l=>{let c=vt(e).find(d=>d===l||d.contains(l));return c!=null?c:null}},n);let a=l=>{let c=l.target;if(!c)return;let d=vt(e).find(u=>u===c||u.contains(c));if(d){if(l.key===" "||l.key==="Spacebar"){if(l.preventDefault(),$&&$.item===d){qa(),Ye("Item dropped");return}if($)return;ja(d,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),Ye("Item grabbed. Use arrow keys to move and space to drop.");return}!$||$.item!==d||l.key.startsWith("Arrow")&&qh(d,l.key)&&l.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),tr.delete(e)})});_("sortable-group");_("sortable-handle");y("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;Xr(),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(),l=za(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 c=()=>a?q(a,n,"v-draggable-data"):null;Ou(e,{mode:"free",handle:o,group:()=>l,data:c,axis:()=>s,itemFrom:()=>e},r);let d=[],u=0,p=()=>{d.forEach((v,g)=>v.classList.toggle("v-drop-over",g===u));let h=d[u];!h||!$||($.overDrop=h,me.reducedMotion?h.scrollIntoView({block:"nearest"}):h.scrollIntoView({block:"nearest",behavior:"smooth"}),Ye(h.getAttribute("aria-label")||`Target ${u+1} of ${d.length}`))},f=h=>{if(h.key===" "||h.key==="Spacebar"){if(h.preventDefault(),$&&$.item===e){qa(),d=[];return}if($)return;ja(e,{mode:"free",data:c(),group:l,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),d=$?Vh($):[],u=0,d.length?p():Ye("No targets available");return}if(!(!$||$.item!==e||!d.length)){if(h.key==="ArrowDown"||h.key==="ArrowRight"){h.preventDefault(),u=(u+1)%d.length,p();return}(h.key==="ArrowUp"||h.key==="ArrowLeft")&&(h.preventDefault(),u=(u-1+d.length)%d.length,p())}};e.addEventListener("keydown",f),r(()=>{e.removeEventListener("keydown",f);for(let h of d)h.classList.remove("v-drop-over")})});_("draggable-handle");_("draggable-axis");_("draggable-data");_("draggable-group");y("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{Xr(),e.classList.add("v-droppable");let o={el:e,group:za(e,J(e,"droppable-group")),accept:J(e,"droppable-accept"),expression:t,scope:n};nr.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{nr.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});_("droppable-accept");_("droppable-group");var Uh=`
|
|
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 xe(){he(),ne("ui",jh)}function rr(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 St(e,t){return e.id||(e.id=ae(`${t}-`)),e.id}var Bu='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 Gr(e){return Array.from(e.querySelectorAll(Bu)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function Li(e,t){let n=Gr(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 Ie(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 Ba=0,ju="";function qu(){if(Ba++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;ju=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function Vu(){Ba!==0&&(--Ba>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=ju))}function Uu(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function qh(e,t=!0){if(e.removeAttribute("hidden"),t&&!me.reducedMotion){_n(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function Vh(e,t=!0){if(t&&!me.reducedMotion){Kn(e);return}e.style.display="none"}var Uh={top:"bottom",bottom:"top",left:"right",right:"left"};function Wu(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function _u(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,l=document.documentElement.clientHeight,c={top:i.top,bottom:l-i.bottom,left:i.left,right:a-i.right},d={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},u=n;if(c[u]<d[u]){let m=Uh[u];if(c[m]>=d[m])u=m;else for(let h of Object.keys(c))c[h]-d[h]>c[u]-d[u]&&(u=h)}let p=0,f=0;return u==="top"||u==="bottom"?(p=u==="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=u==="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,l-s.height-o)),t.style.left=`${Math.round(f)}px`,t.style.top=`${Math.round(p)}px`,t.setAttribute("data-placement",u),u}var ki=[],Pu=!1,Wh={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:"?"},_h=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function Va(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"?_h?n.meta=!0:n.ctrl=!0:n.key=(r=Wh[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function Kh(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 Yh(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 Ku(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 Xh(e){if(e.defaultPrevented)return;let t=Yh(e.target);for(let n of[...ki])for(let r of n.combos)if(Kh(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function Qr(e,t,n={}){let r=e.split(",").map(i=>Va(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return ki.push(o),Pu||(Pu=!0,document.addEventListener("keydown",Xh)),()=>{let i=ki.indexOf(o);i>-1&&ki.splice(i,1)}}y("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{xe();let o=rr(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",St(o,"v-toggle")),Ie(e,r);let a=i?o.classList.contains(i):!Uu(o),l=()=>{e.setAttribute("aria-expanded",String(a))},c=d=>{d.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(Vh(o,s),a=!1):(qh(o,s),a=!0),l(),fe(e,"voodoo:toggle",{target:o,open:a})};l(),e.addEventListener("click",c),r(()=>e.removeEventListener("click",c))});var ja=class{constructor(t){H(this,"panel");H(this,"triggers",new Set);H(this,"listeners",new Set);H(this,"open");H(this,"duration");this.panel=t,this.duration=G(J(t,"collapse-duration"),240);let n=(J(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!Uu(t),t.classList.add("v-collapse-panel"),St(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"),me.reducedMotion?this.panel.style.removeProperty("display"):cn(this.panel,this.duration),this.sync(),fe(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,me.reducedMotion?this.panel.style.display="none":dn(this.panel,this.duration),this.sync(),fe(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},Nu=new WeakMap;function Ua(e){let t=Nu.get(e);return t||Nu.set(e,t=new ja(e)),t}y("collapse",({el:e})=>{xe(),Ua(e)});y("collapse-toggle",({el:e,expression:t,cleanup:n})=>{xe();let r=rr(e,t);if(!r)return;let o=Ua(r);o.triggers.add(e),o.sync(),Ie(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 Ti=class{constructor(t,n,r){H(this,"trigger");H(this,"panel");H(this,"kind");H(this,"placement");H(this,"open",!1);H(this,"lastFocus",null);H(this,"homeParent");H(this,"homeNext");H(this,"reposition",()=>{this.open&&_u(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});H(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});H(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&Li(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=Wu(J(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),St(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?Yu(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=Gr(this.panel)[0])==null||t.focus()),fe(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)};me.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),fe(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 Yu(e){xe(),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"))}}y("dropdown-menu",({el:e})=>{Yu(e)});y("dropdown",({el:e,expression:t,cleanup:n})=>{xe();let r=rr(e,t);if(!r)return;let o=new Ti(e,r,"menu");Ie(e,n);let i=a=>{a.preventDefault(),o.toggle()},s=a=>{var c;if(a.key==="ArrowDown"||a.key==="ArrowUp"){a.preventDefault(),o.open||o.show();let d=o.items();d.length&&d[a.key==="ArrowDown"?0:d.length-1].focus();return}if(a.key!=="Enter"&&a.key!==" ")return;let l=a.defaultPrevented;a.preventDefault(),l||o.toggle(),o.open&&((c=o.items()[0])==null||c.focus())};e.addEventListener("click",i),e.addEventListener("keydown",s),n(()=>{e.removeEventListener("click",i),e.removeEventListener("keydown",s),o.dispose()})});y("popover",({el:e,expression:t,cleanup:n})=>{xe();let r=rr(e,t);if(!r)return;let o=new Ti(e,r,"dialog");Ie(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});_("dropdown-position");_("popover-position");y("tooltip",({el:e,expression:t,cleanup:n})=>{xe();let r=t.trim();if(!r)return;let o=Wu(J(e,"tooltip-position"),"top"),i=G(J(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(Bu);s&&e.setAttribute("tabindex","0");let a=null,l=null,c=()=>{let v=document.createElement("div");return v.className="v-tooltip",v.setAttribute("role","tooltip"),v.id=ae("v-tip-"),v.textContent=r,document.body.appendChild(v),v},d=()=>{a&&_u(e,a,o)},u=()=>{a||(a=c(),e.setAttribute("aria-describedby",a.id),d(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0))},p=()=>{if(l&&(clearTimeout(l),l=null),!a)return;let v=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0),v.classList.remove("v-in"),me.reducedMotion?v.remove():setTimeout(()=>v.remove(),160)},f=()=>{l||a||(l=setTimeout(()=>{l=null,u()},i))},m=v=>{v.key==="Escape"&&p()},h=()=>{s&&e.focus()};e.addEventListener("mouseenter",f),e.addEventListener("focusin",u),e.addEventListener("pointerdown",h),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",u),e.removeEventListener("pointerdown",h),e.removeEventListener("mouseleave",p),e.removeEventListener("focusout",p),e.removeEventListener("keydown",m)})});_("tooltip-position");_("tooltip-delay");y("tabs",({el:e,expression:t,cleanup:n})=>{xe();let r=Ei(e,"tab","tabs"),o=Ei(e,"tab-panel","tabs");if(!r.length)return;let i=(v,g)=>Wt(v,"tab")||String(g),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 l=xi(e,"tabs-url")?Wt(e,"tabs-url")||"tab":null;r.forEach((v,g)=>{let b=i(v,g),x=o.find(T=>Wt(T,"tab-panel")===b);v.classList.add("v-tab","v-focus-ring"),v.setAttribute("role","tab"),St(v,"v-tab"),x&&(St(x,"v-panel"),x.setAttribute("role","tabpanel"),x.setAttribute("aria-labelledby",v.id),v.setAttribute("aria-controls",x.id))});let c="",d=(v,g=!1)=>{if(r.some((b,x)=>i(b,x)===v)){c=v,r.forEach((b,x)=>{let T=i(b,x)===v;b.setAttribute("aria-selected",String(T)),b.setAttribute("tabindex",T?"0":"-1"),b.classList.toggle("v-active",T),T&&g&&b.focus()});for(let b of o)b.hidden=Wt(b,"tab-panel")!==v;l&&jt.set(l,v),fe(e,"voodoo:tab",{id:v})}},u=v=>{let g=Hn(v.target,"tab");!g||!r.includes(g)||(v.preventDefault(),d(i(g,r.indexOf(g))))},p=v=>{let g=Hn(v.target,"tab");if(!g||!r.includes(g))return;let b=r.indexOf(g),x=a?"ArrowDown":"ArrowRight",T=a?"ArrowUp":"ArrowLeft",k=-1;v.key===x?k=(b+1)%r.length:v.key===T?k=(b-1+r.length)%r.length:v.key==="Home"?k=0:v.key==="End"&&(k=r.length-1),k!==-1&&(v.preventDefault(),d(i(r[k],k),!0))},f=()=>{if(!l)return;let v=jt.get(l);v&&v!==c&&d(v)};e.addEventListener("click",u),e.addEventListener("keydown",p),window.addEventListener("popstate",f),n(()=>{e.removeEventListener("click",u),e.removeEventListener("keydown",p),window.removeEventListener("popstate",f)});let h=(l?jt.get(l):void 0)||t.trim()||i(r[0],0);d(h),c||d(i(r[0],0))});_("tab");_("tab-panel");_("tabs-url");y("accordion",({el:e,cleanup:t})=>{xe();let n=Ei(e,"accordion-item","accordion");if(!n.length)return;let r=xi(e,"accordion-single"),o=[],i=[];for(let l of n){let c=l.firstElementChild,d=l.lastElementChild;if(!c||!d||c===d)continue;let u=(Wt(l,"accordion-item")||"").trim().toLowerCase();u!=="open"&&u!=="true"&&(d.style.display="none");let p=Ua(d);p.triggers.add(c),p.sync(),c.classList.add("v-accordion-header","v-focus-ring"),c.hasAttribute("role")||c.setAttribute("role","button"),c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),St(d,"v-accordion-panel"),c.setAttribute("aria-controls",d.id),c.setAttribute("aria-expanded",String(p.open)),n.length<=6&&!d.hasAttribute("role")&&(d.setAttribute("role","region"),d.setAttribute("aria-labelledby",St(c,"v-accordion-header"))),o.push(c),i.push(p)}let s=l=>{var p;let c=(p=l.target)==null?void 0:p.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;l.preventDefault();let u=i[d];if(r&&!u.open)for(let f of i)f!==u&&f.hide();u.toggle()},a=l=>{var p;let c=(p=l.target)==null?void 0:p.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;if(l.key==="Enter"||l.key===" "){l.preventDefault(),c.click();return}let u=-1;l.key==="ArrowDown"?u=(d+1)%o.length:l.key==="ArrowUp"?u=(d-1+o.length)%o.length:l.key==="Home"?u=0:l.key==="End"&&(u=o.length-1),u!==-1&&(l.preventDefault(),o[u].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});_("accordion-item");_("accordion-single");var qa=class{constructor(t){H(this,"origem",null);H(this,"panel");H(this,"triggers",new Set);H(this,"open",!1);H(this,"backdrop",null);H(this,"lastFocus",null);H(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&Li(this.panel,t)}});H(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"),St(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",St(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(),qu();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};me.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=Gr(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),fe(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))};me.reducedMotion?t():setTimeout(t,300),Vu(),(r=this.lastFocus)==null||r.focus(),this.sync(),fe(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},Ou=new WeakMap;function Wa(e){let t=Ou.get(e);return t||Ou.set(e,t=new qa(e)),t}y("drawer-content",({el:e})=>{xe(),Wa(e)});function Xu(e,t,n){xe();let r=rr(e,t);if(!r)return;let o=Wa(r);o.triggers.add(e),o.sync(),Ie(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}y("drawer",({el:e,expression:t,cleanup:n})=>{Xu(e,t,n)});y("offcanvas",({el:e,expression:t,cleanup:n})=>{Xu(e,t,n)});y("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?rr(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:Hn(e,"drawer-content");if(!r)return;Ie(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),Wa(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});_("drawer-side");y("theme-toggle",({el:e,cleanup:t})=>{Ie(e,t);let n=()=>{let i=ut.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=ut.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),ut.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});y("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()){Me(i);return}r(()=>{o()&&Me(i)})},{priority:j.INIT});y("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&Li(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&Me(()=>{var l;return((l=Gr(e)[0])!=null?l:e).focus()}),i=a}):Me(()=>{var a;return((a=Gr(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});y("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)||mt(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});y("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||mt(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});y("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=Qr(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=Va(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Ku(s)),r(i)});y("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=me.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 l=null;try{l=document.querySelector(i)}catch(u){l=null}if(!l)return;let c=l.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:c,behavior:a});let d=l;d.hasAttribute("tabindex")||d.setAttribute("tabindex","-1"),d.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("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(c=>{let d=c.getAttribute("href")||"",u=d.length>1?document.querySelector(d):null;return u?{link:c,section:u}:null}).filter(c=>c!==null);if(!i.length)return;let s=null,a=()=>{let c=i[0];for(let d of i)d.section.getBoundingClientRect().top-o<=8&&(c=d);if(c.link!==s){s=c.link;for(let d of i){let u=d.link===s;d.link.classList.toggle(r,u),u?d.link.setAttribute("aria-current","true"):d.link.removeAttribute("aria-current")}fe(e,"voodoo:scrollspy",{id:c.section.id,link:c.link})}},l=Hr(a,100);window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),Me(a),t(()=>{l.cancel(),window.removeEventListener("scroll",l),window.removeEventListener("resize",l)})});_("scroll-offset");_("scrollspy-class");y("sticky",({el:e,expression:t,cleanup:n})=>{xe();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");y("visible",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{var c;let i=!!r.repeat,s=Number((c=r.threshold)!=null?c:.1)||.1,a=typeof r.margin=="string"?r.margin:"0px";if(typeof IntersectionObserver=="undefined"){mt(t,n,e,void 0,{visible:!0});return}let l=new IntersectionObserver(d=>{for(let u of d)u.isIntersecting&&(mt(t,n,e,void 0,u),i||l.unobserve(e))},{threshold:s,rootMargin:a});l.observe(e),o(()=>l.disconnect())});y("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 d=mt(t,n,e,void 0,{page:"next"}),u=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};d&&typeof d.then=="function"?d.then(u,u):setTimeout(u,300)};if(typeof IntersectionObserver=="undefined")return;let l=document.createElement("div");l.className="v-infinite-sentinel",l.setAttribute("aria-hidden","true"),l.style.cssText="width:100%;height:1px;pointer-events:none",e.appendChild(l);let c=new IntersectionObserver(d=>{for(let u of d)u.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});c.observe(l),r(()=>{c.disconnect(),l.remove()})});_("infinite-distance");function Gu(e,t,n,r){if(xe(),!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 l=J(e,"lazy-error");e.classList.add("v-lazy-failed"),l?o(l):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 l of a)l.isIntersecting&&(s.disconnect(),i())},{rootMargin:"200px"});s.observe(e),n(()=>s.disconnect())}y("lazy-src",({el:e,expression:t,cleanup:n})=>{Gu(e,t.trim(),n,!1)});y("lazy-bg",({el:e,expression:t,cleanup:n})=>{Gu(e,t.trim(),n,!0)});_("lazy-error");y("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{xe();let i=l=>{e.classList.toggle("v-skeleton",l),l?e.setAttribute("aria-busy","true"):e.removeAttribute("aria-busy")};if(t.trim()){n(()=>i(!!r()));return}let s=()=>{var l;return((l=e.textContent)!=null?l:"").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 _a(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 Ka(e,t){xe();let n=J(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),Ye(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function Qu(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()}y("copy",({el:e,expression:t,cleanup:n})=>{xe(),Ie(e,n);let r=o=>{o.preventDefault();let i=Qu(e,t);i&&_a(i).then(s=>{Ka(e,s),fe(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("copy-from",({el:e,expression:t,cleanup:n})=>{if(xe(),wi(e,"copy-from",t),xi(e,"copy"))return;Ie(e,n);let r=o=>{o.preventDefault();let i=Qu(e,"");i&&_a(i).then(s=>{Ka(e,s),fe(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});_("copy-label");function Gh(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>${I(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)}y("print",({el:e,expression:t,cleanup:n})=>{Ie(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&Gh(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("share",({el:e,expression:t,cleanup:n})=>{xe(),Ie(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 l=navigator;if(typeof l.share=="function"){l.share(s).then(()=>fe(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}_a(i).then(c=>{Ka(e,c),fe(e,"voodoo:share",{data:s,method:"clipboard",ok:c})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});_("share-title");_("share-url");_("share-text");y("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;Ie(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 c;if(a.preventDefault(),document.fullscreenElement){document.exitFullscreen().catch(()=>{});return}let l=r;typeof r.requestFullscreen=="function"?r.requestFullscreen().catch(()=>{}):(c=l.webkitRequestFullscreen)==null||c.call(l)};o(),e.addEventListener("click",i),document.addEventListener("fullscreenchange",o),n(()=>{e.removeEventListener("click",i),document.removeEventListener("fullscreenchange",o)})});y("download",({el:e,expression:t,cleanup:n})=>{Ie(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(),fe(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});_("download-name");y("resizable",({el:e,expression:t,cleanup:n})=>{xe();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 l=(c,d)=>{let u=0,p=0,f=0,m=0,h=g=>{d!=="bottom"&&(e.style.width=`${Math.max(32,f+g.clientX-u)}px`),d!=="right"&&(e.style.height=`${Math.max(32,m+g.clientY-p)}px`)},v=g=>{var b;(b=c.releasePointerCapture)==null||b.call(c,g.pointerId),c.removeEventListener("pointermove",h),c.removeEventListener("pointerup",v),c.removeEventListener("pointercancel",v),fe(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};c.addEventListener("pointerdown",g=>{var x;if(g.button!==0)return;g.preventDefault();let b=e.getBoundingClientRect();u=g.clientX,p=g.clientY,f=b.width,m=b.height,(x=c.setPointerCapture)==null||x.call(c,g.pointerId),c.addEventListener("pointermove",h),c.addEventListener("pointerup",v),c.addEventListener("pointercancel",v)}),c.addEventListener("keydown",g=>{let b=g.shiftKey?4:16,x=e.getBoundingClientRect(),T=!0;g.key==="ArrowRight"&&d!=="bottom"?e.style.width=`${x.width+b}px`:g.key==="ArrowLeft"&&d!=="bottom"?e.style.width=`${Math.max(32,x.width-b)}px`:g.key==="ArrowDown"&&d!=="right"?e.style.height=`${x.height+b}px`:g.key==="ArrowUp"&&d!=="right"?e.style.height=`${Math.max(32,x.height-b)}px`:T=!1,T&&(g.preventDefault(),fe(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let c of a){let d=document.createElement("div");d.className="v-resize-handle",d.setAttribute("data-dir",c),d.setAttribute("role","separator"),d.setAttribute("tabindex","0"),d.setAttribute("aria-orientation",c==="bottom"?"horizontal":"vertical"),d.setAttribute("aria-label","Resize"),l(d,c),e.appendChild(d),s.push(d)}n(()=>{for(let c of s)c.remove()})});function Fu(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function Qh(){let e=[];for(let t of Bo(document,"command-item")){let n=(Wt(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:J(t,"command-hint")||"",el:t}))}return e}function Iu(){if(xe(),document.querySelector(".v-command"))return;let e=Qh(),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=ae("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),qu();let s=e,a=0,l=m=>{let h=m.target;!h||n.contains(h)||o.focus()},c=()=>{document.removeEventListener("focusin",l,!0),document.removeEventListener("keydown",f,!0),n.remove(),Vu(),t==null||t.focus()},d=()=>{let m=s[a];m&&(c(),m.el.click())},u=()=>{var h;if(i.replaceChildren(),!s.length){let v=document.createElement("li");v.className="v-command-empty",v.textContent="No command found",i.appendChild(v);return}s.forEach((v,g)=>{let b=document.createElement("li");b.className="v-command-option",b.id=`${i.id}-${g}`,b.setAttribute("role","option"),b.setAttribute("aria-selected",String(g===a));let x=document.createElement("span");if(x.textContent=v.label,b.appendChild(x),v.hint){let T=document.createElement("span");T.className="v-command-hint",T.textContent=v.hint,b.appendChild(T)}b.addEventListener("click",()=>{a=g,d()}),b.addEventListener("pointermove",()=>{a!==g&&(a=g,u())}),i.appendChild(b)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(h=m.scrollIntoView)==null||h.call(m,{block:"nearest"}))},p=()=>{let m=Fu(o.value.trim());s=m?e.filter(h=>Fu(`${h.label} ${h.hint}`).includes(m)):e,a=0,u()},f=m=>{if(m.key==="Escape"){m.preventDefault(),c();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,u();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,u();return}if(m.key==="Enter"){m.preventDefault(),d();return}m.key==="Tab"&&Li(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&c()}),o.addEventListener("input",p),document.addEventListener("keydown",f,!0),u(),o.focus(),document.addEventListener("focusin",l,!0)}y("command",({el:e,expression:t,cleanup:n})=>{xe();let r=t.trim()||J(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),Iu()},i=Qr(r,()=>Iu(),{allowInInput:!0}),s=Va(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Ku(s)),Ie(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});y("command-item",({el:e,expression:t})=>{wi(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 zu=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];y("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=G(J(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,mt(t,n,e,void 0,{idle:!0,after:o}),fe(e,"voodoo:idle",{after:o})},l=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},c=()=>{if(s){l();return}l()};for(let d of zu)window.addEventListener(d,c,{passive:!0});l(),r(()=>{i&&clearTimeout(i);for(let d of zu)window.removeEventListener(d,c)})});_("idle-after");function Ju(e,t,n,r,o,i){let s=a=>{mt(t,n,e,a,{online:navigator.onLine}),fe(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&Me(()=>s())}y("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{Ju(e,t,n,o,"online",!!r.immediate)});y("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{Ju(e,t,n,o,"offline",r["no-immediate"]!==!0)});be();le();He();be();le();He();var rt={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 ef(e,t){var i,s,a,l,c,d;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:((l=r[0])!=null?l:"").trim(),max:((d=(c=r[1])!=null?c:r[0])!=null?d:"").trim()};return e.replace(/\{(\w+)\}/g,(u,p)=>p in o?o[p]:u)}var Ai=new Map;function Q(e,t,n){let r=e.toLowerCase();Ai.set(r,{name:r,fn:t,message:n}),n&&!rt[r]&&(rt[r]=n),y(`validate-${r}`,({el:o,cleanup:i})=>{Oi(o,i)})}function At(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function Jh(e,t){return At(e,t)!==null}var Zh=new Set(["INPUT","SELECT","TEXTAREA"]),eg=new Set(["submit","button","reset","image"]);function Xe(e){var t;return!!e&&typeof e=="object"&&Zh.has((t=e.tagName)!=null?t:"")}function ht(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function eo(e){var n;let t=ht(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 Ga(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function tg(e){var o,i;let t=At(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${Mi(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 Mi(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function Ci(e,t){var s,a,l;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 c=(l=r.querySelector(n))!=null?l:document.querySelector(n);return Xe(c)?c:null}let o=r.querySelector(`[name="${Mi(n)}"]`);if(Xe(o))return o;let i=document.getElementById(n);return Xe(i)?i:null}var ng=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,rg=/^-?\d+$/,og=/^-?\d+(?:[.,]\d+)?$/,ig=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,sg=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function to(e){return e.replace(/\D/g,"")}function Ri(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function ag(e){let t=to(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 lg(e){let t=to(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 cg(e){let t=to(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 dg(e){let t=to(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 mn(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 $i(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=mn(e);if(r)return r;let o=Ci(t,e);return o?mn(eo(o)):null}Q("required",(e,t,n)=>{let r=ht(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});Q("email",e=>ng.test(e.trim()));Q("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}});Q("number",e=>e.trim()!==""&&Number.isFinite(Ri(e)));Q("integer",e=>rg.test(e.trim()));Q("decimal",(e,t)=>{var i;let n=e.trim();if(!og.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});Q("alpha",e=>ig.test(e.trim().replace(/\s+/g,"")));Q("alphanumeric",e=>sg.test(e.trim().replace(/\s+/g,"")));Q("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));Q("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));Q("min",(e,t,n)=>{let r=$i(t,n);if(r&&ht(n).startsWith("date")){let o=mn(e);return!o||o.getTime()>=r.getTime()}return Ri(e)>=Number(t!=null?t:0)});Q("max",(e,t,n)=>{let r=$i(t,n);if(r&&ht(n).startsWith("date")){let o=mn(e);return!o||o.getTime()<=r.getTime()}return Ri(e)<=Number(t!=null?t:1/0)});Q("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=Ri(e);return Number.isFinite(o)&&o>=n&&o<=r});Q("match",(e,t,n)=>{if(!t)return!0;let r=Ci(n,t);return r?eo(r)===e:!0});Q("same",(e,t,n)=>{if(!t)return!0;let r=Ci(n,t);return!r||eo(r)===e});Q("different",(e,t,n)=>{if(!t)return!0;let r=Ci(n,t);return!r||eo(r)!==e});Q("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=At(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return Y(`Invalid regular expression in ${w.prefix}regex: ${t}`),!0}});Q("date",e=>mn(e)!==null);Q("after",(e,t,n)=>{let r=$i(t,n),o=mn(e);return!r||!o?!0:o.getTime()>r.getTime()});Q("before",(e,t,n)=>{let r=$i(t,n),o=mn(e);return!r||!o?!0:o.getTime()<r.getTime()});Q("accepted",(e,t,n)=>{let r=ht(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});Q("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));Q("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));Q("phone",e=>dg(e));Q("cpf",e=>ag(e));Q("cnpj",e=>lg(e));Q("cep",e=>to(e).length===8);Q("creditcard",e=>cg(e));Q("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:ef(rt.strongpassword,{param:String(n)})});Q("unique",async(e,t,n)=>{let r=t||At(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await ve.get(r,{params:{value:e,field:Ga(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:rt.unique:o?rt.unique:!0}catch(o){if(o instanceof Ee){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return rt.unique}return!0}});var ug={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},fg=new Set(["required","accepted"]);function pg(e){var o;let t=null;if(e.startsWith(w.prefix)?t=e.slice(w.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=ug[t])!=null?o:t;return Ai.has(r)?r:null}function Qa(e){let t=[],n=new Set,r=(d,u)=>{n.has(d)||!Ai.has(d)||(n.add(d),t.push({name:d,param:u}))};for(let[d,u]of Jc(e)){let p=pg(d);if(p){if(u.trim()==="false"){n.add(p);continue}r(p,u)}}let o=ht(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 l=e.getAttribute("max");l&&r("max",l);let c=e.getAttribute("pattern");return c&&r("regex",c),t.sort((d,u)=>d.name==="required"?-1:u.name==="required"?1:0),t}var mg=`
|
|
270
|
+
`;function xe(){he(),ne("ui",Uh)}function rr(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 St(e,t){return e.id||(e.id=ae(`${t}-`)),e.id}var Vu='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 Gr(e){return Array.from(e.querySelectorAll(Vu)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function Mi(e,t){let n=Gr(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 Ie(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 Va=0,Uu="";function Wu(){if(Va++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;Uu=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function _u(){Va!==0&&(--Va>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=Uu))}function Ku(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Wh(e,t=!0){if(e.removeAttribute("hidden"),t&&!me.reducedMotion){_n(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function _h(e,t=!0){if(t&&!me.reducedMotion){Kn(e);return}e.style.display="none"}var Kh={top:"bottom",bottom:"top",left:"right",right:"left"};function Yu(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function Xu(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,l=document.documentElement.clientHeight,c={top:i.top,bottom:l-i.bottom,left:i.left,right:a-i.right},d={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},u=n;if(c[u]<d[u]){let m=Kh[u];if(c[m]>=d[m])u=m;else for(let h of Object.keys(c))c[h]-d[h]>c[u]-d[u]&&(u=h)}let p=0,f=0;return u==="top"||u==="bottom"?(p=u==="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=u==="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,l-s.height-o)),t.style.left=`${Math.round(f)}px`,t.style.top=`${Math.round(p)}px`,t.setAttribute("data-placement",u),u}var Ti=[],Fu=!1,Yh={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:"?"},Xh=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function _a(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"?Xh?n.meta=!0:n.ctrl=!0:n.key=(r=Yh[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function Gh(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 Qh(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 Gu(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 Jh(e){if(e.defaultPrevented)return;let t=Qh(e.target);for(let n of[...Ti])for(let r of n.combos)if(Gh(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function Qr(e,t,n={}){let r=e.split(",").map(i=>_a(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return Ti.push(o),Fu||(Fu=!0,document.addEventListener("keydown",Jh)),()=>{let i=Ti.indexOf(o);i>-1&&Ti.splice(i,1)}}y("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{xe();let o=rr(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",St(o,"v-toggle")),Ie(e,r);let a=i?o.classList.contains(i):!Ku(o),l=()=>{e.setAttribute("aria-expanded",String(a))},c=d=>{d.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(_h(o,s),a=!1):(Wh(o,s),a=!0),l(),fe(e,"voodoo:toggle",{target:o,open:a})};l(),e.addEventListener("click",c),r(()=>e.removeEventListener("click",c))});var Ua=class{constructor(t){H(this,"panel");H(this,"triggers",new Set);H(this,"listeners",new Set);H(this,"open");H(this,"duration");this.panel=t,this.duration=G(J(t,"collapse-duration"),240);let n=(J(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!Ku(t),t.classList.add("v-collapse-panel"),St(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"),me.reducedMotion?this.panel.style.removeProperty("display"):cn(this.panel,this.duration),this.sync(),fe(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,me.reducedMotion?this.panel.style.display="none":dn(this.panel,this.duration),this.sync(),fe(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},Iu=new WeakMap;function Ka(e){let t=Iu.get(e);return t||Iu.set(e,t=new Ua(e)),t}y("collapse",({el:e})=>{xe(),Ka(e)});y("collapse-toggle",({el:e,expression:t,cleanup:n})=>{xe();let r=rr(e,t);if(!r)return;let o=Ka(r);o.triggers.add(e),o.sync(),Ie(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 Li=class{constructor(t,n,r){H(this,"trigger");H(this,"panel");H(this,"kind");H(this,"placement");H(this,"open",!1);H(this,"lastFocus",null);H(this,"homeParent");H(this,"homeNext");H(this,"reposition",()=>{this.open&&Xu(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});H(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});H(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&Mi(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=Yu(J(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),St(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?Qu(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=Gr(this.panel)[0])==null||t.focus()),fe(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)};me.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),fe(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 Qu(e){xe(),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"))}}y("dropdown-menu",({el:e})=>{Qu(e)});y("dropdown",({el:e,expression:t,cleanup:n})=>{xe();let r=rr(e,t);if(!r)return;let o=new Li(e,r,"menu");Ie(e,n);let i=a=>{a.preventDefault(),o.toggle()},s=a=>{var c;if(a.key==="ArrowDown"||a.key==="ArrowUp"){a.preventDefault(),o.open||o.show();let d=o.items();d.length&&d[a.key==="ArrowDown"?0:d.length-1].focus();return}if(a.key!=="Enter"&&a.key!==" ")return;let l=a.defaultPrevented;a.preventDefault(),l||o.toggle(),o.open&&((c=o.items()[0])==null||c.focus())};e.addEventListener("click",i),e.addEventListener("keydown",s),n(()=>{e.removeEventListener("click",i),e.removeEventListener("keydown",s),o.dispose()})});y("popover",({el:e,expression:t,cleanup:n})=>{xe();let r=rr(e,t);if(!r)return;let o=new Li(e,r,"dialog");Ie(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});_("dropdown-position");_("popover-position");y("tooltip",({el:e,expression:t,cleanup:n})=>{xe();let r=t.trim();if(!r)return;let o=Yu(J(e,"tooltip-position"),"top"),i=G(J(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(Vu);s&&e.setAttribute("tabindex","0");let a=null,l=null,c=()=>{let v=document.createElement("div");return v.className="v-tooltip",v.setAttribute("role","tooltip"),v.id=ae("v-tip-"),v.textContent=r,document.body.appendChild(v),v},d=()=>{a&&Xu(e,a,o)},u=()=>{a||(a=c(),e.setAttribute("aria-describedby",a.id),d(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0))},p=()=>{if(l&&(clearTimeout(l),l=null),!a)return;let v=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0),v.classList.remove("v-in"),me.reducedMotion?v.remove():setTimeout(()=>v.remove(),160)},f=()=>{l||a||(l=setTimeout(()=>{l=null,u()},i))},m=v=>{v.key==="Escape"&&p()},h=()=>{s&&e.focus()};e.addEventListener("mouseenter",f),e.addEventListener("focusin",u),e.addEventListener("pointerdown",h),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",u),e.removeEventListener("pointerdown",h),e.removeEventListener("mouseleave",p),e.removeEventListener("focusout",p),e.removeEventListener("keydown",m)})});_("tooltip-position");_("tooltip-delay");y("tabs",({el:e,expression:t,cleanup:n})=>{xe();let r=ki(e,"tab","tabs"),o=ki(e,"tab-panel","tabs");if(!r.length)return;let i=(v,g)=>Wt(v,"tab")||String(g),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 l=wi(e,"tabs-url")?Wt(e,"tabs-url")||"tab":null;r.forEach((v,g)=>{let b=i(v,g),x=o.find(T=>Wt(T,"tab-panel")===b);v.classList.add("v-tab","v-focus-ring"),v.setAttribute("role","tab"),St(v,"v-tab"),x&&(St(x,"v-panel"),x.setAttribute("role","tabpanel"),x.setAttribute("aria-labelledby",v.id),v.setAttribute("aria-controls",x.id))});let c="",d=(v,g=!1)=>{if(r.some((b,x)=>i(b,x)===v)){c=v,r.forEach((b,x)=>{let T=i(b,x)===v;b.setAttribute("aria-selected",String(T)),b.setAttribute("tabindex",T?"0":"-1"),b.classList.toggle("v-active",T),T&&g&&b.focus()});for(let b of o)b.hidden=Wt(b,"tab-panel")!==v;l&&jt.set(l,v),fe(e,"voodoo:tab",{id:v})}},u=v=>{let g=Hn(v.target,"tab");!g||!r.includes(g)||(v.preventDefault(),d(i(g,r.indexOf(g))))},p=v=>{let g=Hn(v.target,"tab");if(!g||!r.includes(g))return;let b=r.indexOf(g),x=a?"ArrowDown":"ArrowRight",T=a?"ArrowUp":"ArrowLeft",k=-1;v.key===x?k=(b+1)%r.length:v.key===T?k=(b-1+r.length)%r.length:v.key==="Home"?k=0:v.key==="End"&&(k=r.length-1),k!==-1&&(v.preventDefault(),d(i(r[k],k),!0))},f=()=>{if(!l)return;let v=jt.get(l);v&&v!==c&&d(v)};e.addEventListener("click",u),e.addEventListener("keydown",p),window.addEventListener("popstate",f),n(()=>{e.removeEventListener("click",u),e.removeEventListener("keydown",p),window.removeEventListener("popstate",f)});let h=(l?jt.get(l):void 0)||t.trim()||i(r[0],0);d(h),c||d(i(r[0],0))});_("tab");_("tab-panel");_("tabs-url");y("accordion",({el:e,cleanup:t})=>{xe();let n=ki(e,"accordion-item","accordion");if(!n.length)return;let r=wi(e,"accordion-single"),o=[],i=[];for(let l of n){let c=l.firstElementChild,d=l.lastElementChild;if(!c||!d||c===d)continue;let u=(Wt(l,"accordion-item")||"").trim().toLowerCase();u!=="open"&&u!=="true"&&(d.style.display="none");let p=Ka(d);p.triggers.add(c),p.sync(),c.classList.add("v-accordion-header","v-focus-ring"),c.hasAttribute("role")||c.setAttribute("role","button"),c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),St(d,"v-accordion-panel"),c.setAttribute("aria-controls",d.id),c.setAttribute("aria-expanded",String(p.open)),n.length<=6&&!d.hasAttribute("role")&&(d.setAttribute("role","region"),d.setAttribute("aria-labelledby",St(c,"v-accordion-header"))),o.push(c),i.push(p)}let s=l=>{var p;let c=(p=l.target)==null?void 0:p.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;l.preventDefault();let u=i[d];if(r&&!u.open)for(let f of i)f!==u&&f.hide();u.toggle()},a=l=>{var p;let c=(p=l.target)==null?void 0:p.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;if(l.key==="Enter"||l.key===" "){l.preventDefault(),c.click();return}let u=-1;l.key==="ArrowDown"?u=(d+1)%o.length:l.key==="ArrowUp"?u=(d-1+o.length)%o.length:l.key==="Home"?u=0:l.key==="End"&&(u=o.length-1),u!==-1&&(l.preventDefault(),o[u].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});_("accordion-item");_("accordion-single");var Wa=class{constructor(t){H(this,"origem",null);H(this,"panel");H(this,"triggers",new Set);H(this,"open",!1);H(this,"backdrop",null);H(this,"lastFocus",null);H(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&Mi(this.panel,t)}});H(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"),St(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",St(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(),Wu();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};me.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=Gr(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),fe(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))};me.reducedMotion?t():setTimeout(t,300),_u(),(r=this.lastFocus)==null||r.focus(),this.sync(),fe(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},zu=new WeakMap;function Ya(e){let t=zu.get(e);return t||zu.set(e,t=new Wa(e)),t}y("drawer-content",({el:e})=>{xe(),Ya(e)});function Ju(e,t,n){xe();let r=rr(e,t);if(!r)return;let o=Ya(r);o.triggers.add(e),o.sync(),Ie(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}y("drawer",({el:e,expression:t,cleanup:n})=>{Ju(e,t,n)});y("offcanvas",({el:e,expression:t,cleanup:n})=>{Ju(e,t,n)});y("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?rr(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:Hn(e,"drawer-content");if(!r)return;Ie(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),Ya(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});_("drawer-side");y("theme-toggle",({el:e,cleanup:t})=>{Ie(e,t);let n=()=>{let i=ut.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=ut.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),ut.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});y("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()){Me(i);return}r(()=>{o()&&Me(i)})},{priority:j.INIT});y("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&Mi(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&Me(()=>{var l;return((l=Gr(e)[0])!=null?l:e).focus()}),i=a}):Me(()=>{var a;return((a=Gr(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});y("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)||mt(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});y("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||mt(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});y("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=Qr(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=_a(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Gu(s)),r(i)});y("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=me.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 l=null;try{l=document.querySelector(i)}catch(u){l=null}if(!l)return;let c=l.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:c,behavior:a});let d=l;d.hasAttribute("tabindex")||d.setAttribute("tabindex","-1"),d.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("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(c=>{let d=c.getAttribute("href")||"",u=d.length>1?document.querySelector(d):null;return u?{link:c,section:u}:null}).filter(c=>c!==null);if(!i.length)return;let s=null,a=()=>{let c=i[0];for(let d of i)d.section.getBoundingClientRect().top-o<=8&&(c=d);if(c.link!==s){s=c.link;for(let d of i){let u=d.link===s;d.link.classList.toggle(r,u),u?d.link.setAttribute("aria-current","true"):d.link.removeAttribute("aria-current")}fe(e,"voodoo:scrollspy",{id:c.section.id,link:c.link})}},l=Hr(a,100);window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),Me(a),t(()=>{l.cancel(),window.removeEventListener("scroll",l),window.removeEventListener("resize",l)})});_("scroll-offset");_("scrollspy-class");y("sticky",({el:e,expression:t,cleanup:n})=>{xe();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");y("visible",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{var c;let i=!!r.repeat,s=Number((c=r.threshold)!=null?c:.1)||.1,a=typeof r.margin=="string"?r.margin:"0px";if(typeof IntersectionObserver=="undefined"){mt(t,n,e,void 0,{visible:!0});return}let l=new IntersectionObserver(d=>{for(let u of d)u.isIntersecting&&(mt(t,n,e,void 0,u),i||l.unobserve(e))},{threshold:s,rootMargin:a});l.observe(e),o(()=>l.disconnect())});y("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 d=mt(t,n,e,void 0,{page:"next"}),u=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};d&&typeof d.then=="function"?d.then(u,u):setTimeout(u,300)};if(typeof IntersectionObserver=="undefined")return;let l=document.createElement("div");l.className="v-infinite-sentinel",l.setAttribute("aria-hidden","true"),l.style.cssText="width:100%;height:1px;pointer-events:none",e.appendChild(l);let c=new IntersectionObserver(d=>{for(let u of d)u.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});c.observe(l),r(()=>{c.disconnect(),l.remove()})});_("infinite-distance");function Zu(e,t,n,r){if(xe(),!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 l=J(e,"lazy-error");e.classList.add("v-lazy-failed"),l?o(l):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 l of a)l.isIntersecting&&(s.disconnect(),i())},{rootMargin:"200px"});s.observe(e),n(()=>s.disconnect())}y("lazy-src",({el:e,expression:t,cleanup:n})=>{Zu(e,t.trim(),n,!1)});y("lazy-bg",({el:e,expression:t,cleanup:n})=>{Zu(e,t.trim(),n,!0)});_("lazy-error");y("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{xe();let i=l=>{e.classList.toggle("v-skeleton",l),l?e.setAttribute("aria-busy","true"):e.removeAttribute("aria-busy")};if(t.trim()){n(()=>i(!!r()));return}let s=()=>{var l;return((l=e.textContent)!=null?l:"").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 Xa(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 Ga(e,t){xe();let n=J(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),Ye(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function ef(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()}y("copy",({el:e,expression:t,cleanup:n})=>{xe(),Ie(e,n);let r=o=>{o.preventDefault();let i=ef(e,t);i&&Xa(i).then(s=>{Ga(e,s),fe(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("copy-from",({el:e,expression:t,cleanup:n})=>{if(xe(),Ei(e,"copy-from",t),wi(e,"copy"))return;Ie(e,n);let r=o=>{o.preventDefault();let i=ef(e,"");i&&Xa(i).then(s=>{Ga(e,s),fe(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});_("copy-label");function Zh(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>${I(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)}y("print",({el:e,expression:t,cleanup:n})=>{Ie(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&Zh(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("share",({el:e,expression:t,cleanup:n})=>{xe(),Ie(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 l=navigator;if(typeof l.share=="function"){l.share(s).then(()=>fe(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}Xa(i).then(c=>{Ga(e,c),fe(e,"voodoo:share",{data:s,method:"clipboard",ok:c})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});_("share-title");_("share-url");_("share-text");y("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;Ie(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 c;if(a.preventDefault(),document.fullscreenElement){document.exitFullscreen().catch(()=>{});return}let l=r;typeof r.requestFullscreen=="function"?r.requestFullscreen().catch(()=>{}):(c=l.webkitRequestFullscreen)==null||c.call(l)};o(),e.addEventListener("click",i),document.addEventListener("fullscreenchange",o),n(()=>{e.removeEventListener("click",i),document.removeEventListener("fullscreenchange",o)})});y("download",({el:e,expression:t,cleanup:n})=>{Ie(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(),fe(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});_("download-name");y("resizable",({el:e,expression:t,cleanup:n})=>{xe();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 l=(c,d)=>{let u=0,p=0,f=0,m=0,h=g=>{d!=="bottom"&&(e.style.width=`${Math.max(32,f+g.clientX-u)}px`),d!=="right"&&(e.style.height=`${Math.max(32,m+g.clientY-p)}px`)},v=g=>{var b;(b=c.releasePointerCapture)==null||b.call(c,g.pointerId),c.removeEventListener("pointermove",h),c.removeEventListener("pointerup",v),c.removeEventListener("pointercancel",v),fe(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};c.addEventListener("pointerdown",g=>{var x;if(g.button!==0)return;g.preventDefault();let b=e.getBoundingClientRect();u=g.clientX,p=g.clientY,f=b.width,m=b.height,(x=c.setPointerCapture)==null||x.call(c,g.pointerId),c.addEventListener("pointermove",h),c.addEventListener("pointerup",v),c.addEventListener("pointercancel",v)}),c.addEventListener("keydown",g=>{let b=g.shiftKey?4:16,x=e.getBoundingClientRect(),T=!0;g.key==="ArrowRight"&&d!=="bottom"?e.style.width=`${x.width+b}px`:g.key==="ArrowLeft"&&d!=="bottom"?e.style.width=`${Math.max(32,x.width-b)}px`:g.key==="ArrowDown"&&d!=="right"?e.style.height=`${x.height+b}px`:g.key==="ArrowUp"&&d!=="right"?e.style.height=`${Math.max(32,x.height-b)}px`:T=!1,T&&(g.preventDefault(),fe(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let c of a){let d=document.createElement("div");d.className="v-resize-handle",d.setAttribute("data-dir",c),d.setAttribute("role","separator"),d.setAttribute("tabindex","0"),d.setAttribute("aria-orientation",c==="bottom"?"horizontal":"vertical"),d.setAttribute("aria-label","Resize"),l(d,c),e.appendChild(d),s.push(d)}n(()=>{for(let c of s)c.remove()})});function Bu(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function eg(){let e=[];for(let t of Bo(document,"command-item")){let n=(Wt(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:J(t,"command-hint")||"",el:t}))}return e}function ju(){if(xe(),document.querySelector(".v-command"))return;let e=eg(),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=ae("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),Wu();let s=e,a=0,l=m=>{let h=m.target;!h||n.contains(h)||o.focus()},c=()=>{document.removeEventListener("focusin",l,!0),document.removeEventListener("keydown",f,!0),n.remove(),_u(),t==null||t.focus()},d=()=>{let m=s[a];m&&(c(),m.el.click())},u=()=>{var h;if(i.replaceChildren(),!s.length){let v=document.createElement("li");v.className="v-command-empty",v.textContent="No command found",i.appendChild(v);return}s.forEach((v,g)=>{let b=document.createElement("li");b.className="v-command-option",b.id=`${i.id}-${g}`,b.setAttribute("role","option"),b.setAttribute("aria-selected",String(g===a));let x=document.createElement("span");if(x.textContent=v.label,b.appendChild(x),v.hint){let T=document.createElement("span");T.className="v-command-hint",T.textContent=v.hint,b.appendChild(T)}b.addEventListener("click",()=>{a=g,d()}),b.addEventListener("pointermove",()=>{a!==g&&(a=g,u())}),i.appendChild(b)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(h=m.scrollIntoView)==null||h.call(m,{block:"nearest"}))},p=()=>{let m=Bu(o.value.trim());s=m?e.filter(h=>Bu(`${h.label} ${h.hint}`).includes(m)):e,a=0,u()},f=m=>{if(m.key==="Escape"){m.preventDefault(),c();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,u();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,u();return}if(m.key==="Enter"){m.preventDefault(),d();return}m.key==="Tab"&&Mi(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&c()}),o.addEventListener("input",p),document.addEventListener("keydown",f,!0),u(),o.focus(),document.addEventListener("focusin",l,!0)}y("command",({el:e,expression:t,cleanup:n})=>{xe();let r=t.trim()||J(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),ju()},i=Qr(r,()=>ju(),{allowInInput:!0}),s=_a(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Gu(s)),Ie(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});y("command-item",({el:e,expression:t})=>{Ei(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 qu=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];y("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=G(J(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,mt(t,n,e,void 0,{idle:!0,after:o}),fe(e,"voodoo:idle",{after:o})},l=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},c=()=>{if(s){l();return}l()};for(let d of qu)window.addEventListener(d,c,{passive:!0});l(),r(()=>{i&&clearTimeout(i);for(let d of qu)window.removeEventListener(d,c)})});_("idle-after");function tf(e,t,n,r,o,i){let s=a=>{mt(t,n,e,a,{online:navigator.onLine}),fe(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&Me(()=>s())}y("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{tf(e,t,n,o,"online",!!r.immediate)});y("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{tf(e,t,n,o,"offline",r["no-immediate"]!==!0)});be();le();He();be();le();He();var rt={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 rf(e,t){var i,s,a,l,c,d;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:((l=r[0])!=null?l:"").trim(),max:((d=(c=r[1])!=null?c:r[0])!=null?d:"").trim()};return e.replace(/\{(\w+)\}/g,(u,p)=>p in o?o[p]:u)}var Ci=new Map;function Q(e,t,n){let r=e.toLowerCase();Ci.set(r,{name:r,fn:t,message:n}),n&&!rt[r]&&(rt[r]=n),y(`validate-${r}`,({el:o,cleanup:i})=>{Fi(o,i)})}function At(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function tg(e,t){return At(e,t)!==null}var ng=new Set(["INPUT","SELECT","TEXTAREA"]),rg=new Set(["submit","button","reset","image"]);function Xe(e){var t;return!!e&&typeof e=="object"&&ng.has((t=e.tagName)!=null?t:"")}function ht(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function eo(e){var n;let t=ht(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 Za(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function og(e){var o,i;let t=At(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${Si(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 Si(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function Ri(e,t){var s,a,l;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 c=(l=r.querySelector(n))!=null?l:document.querySelector(n);return Xe(c)?c:null}let o=r.querySelector(`[name="${Si(n)}"]`);if(Xe(o))return o;let i=document.getElementById(n);return Xe(i)?i:null}var ig=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,sg=/^-?\d+$/,ag=/^-?\d+(?:[.,]\d+)?$/,lg=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,cg=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function to(e){return e.replace(/\D/g,"")}function $i(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function dg(e){let t=to(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 ug(e){let t=to(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 fg(e){let t=to(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 pg(e){let t=to(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 mn(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 Di(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=mn(e);if(r)return r;let o=Ri(t,e);return o?mn(eo(o)):null}Q("required",(e,t,n)=>{let r=ht(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});Q("email",e=>ig.test(e.trim()));Q("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}});Q("number",e=>e.trim()!==""&&Number.isFinite($i(e)));Q("integer",e=>sg.test(e.trim()));Q("decimal",(e,t)=>{var i;let n=e.trim();if(!ag.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});Q("alpha",e=>lg.test(e.trim().replace(/\s+/g,"")));Q("alphanumeric",e=>cg.test(e.trim().replace(/\s+/g,"")));Q("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));Q("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));Q("min",(e,t,n)=>{let r=Di(t,n);if(r&&ht(n).startsWith("date")){let o=mn(e);return!o||o.getTime()>=r.getTime()}return $i(e)>=Number(t!=null?t:0)});Q("max",(e,t,n)=>{let r=Di(t,n);if(r&&ht(n).startsWith("date")){let o=mn(e);return!o||o.getTime()<=r.getTime()}return $i(e)<=Number(t!=null?t:1/0)});Q("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=$i(e);return Number.isFinite(o)&&o>=n&&o<=r});Q("match",(e,t,n)=>{if(!t)return!0;let r=Ri(n,t);return r?eo(r)===e:!0});Q("same",(e,t,n)=>{if(!t)return!0;let r=Ri(n,t);return!r||eo(r)===e});Q("different",(e,t,n)=>{if(!t)return!0;let r=Ri(n,t);return!r||eo(r)!==e});Q("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=At(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return Y(`Invalid regular expression in ${w.prefix}regex: ${t}`),!0}});Q("date",e=>mn(e)!==null);Q("after",(e,t,n)=>{let r=Di(t,n),o=mn(e);return!r||!o?!0:o.getTime()>r.getTime()});Q("before",(e,t,n)=>{let r=Di(t,n),o=mn(e);return!r||!o?!0:o.getTime()<r.getTime()});Q("accepted",(e,t,n)=>{let r=ht(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});Q("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));Q("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));Q("phone",e=>pg(e));Q("cpf",e=>dg(e));Q("cnpj",e=>ug(e));Q("cep",e=>to(e).length===8);Q("creditcard",e=>fg(e));Q("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:rf(rt.strongpassword,{param:String(n)})});Q("unique",async(e,t,n)=>{let r=t||At(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await ve.get(r,{params:{value:e,field:Za(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:rt.unique:o?rt.unique:!0}catch(o){if(o instanceof Ee){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return rt.unique}return!0}});var mg={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},vg=new Set(["required","accepted"]);function hg(e){var o;let t=null;if(e.startsWith(w.prefix)?t=e.slice(w.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=mg[t])!=null?o:t;return Ci.has(r)?r:null}function el(e){let t=[],n=new Set,r=(d,u)=>{n.has(d)||!Ci.has(d)||(n.add(d),t.push({name:d,param:u}))};for(let[d,u]of td(e)){let p=hg(d);if(p){if(u.trim()==="false"){n.add(p);continue}r(p,u)}}let o=ht(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 l=e.getAttribute("max");l&&r("max",l);let c=e.getAttribute("pattern");return c&&r("regex",c),t.sort((d,u)=>d.name==="required"?-1:u.name==="required"?1:0),t}var gg=`
|
|
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 Di(){he(),ne("forms-validate",mg)}function tf(e){var r,o,i;let t=At(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 ${w.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function nf(e){let t=tf(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 Hi(e,t){Di(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=nf(e);if(!n){let o=tf(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:ae("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 Ya(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=nf(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 no(e){for(let n of Ni(e,!1))Ya(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 Ja(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 vg(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${Mi(i)}"]`);if(Xe(s))return s}let o=e.querySelector(`#${Mi(t)}`);return Xe(o)?o:null}function Pi(e,t){let n=Ja(t),r=[];for(let[o,i]of Object.entries(n)){let s=vg(e,o);s?Hi(s,i):r.push(i)}return r.length&&hg(e,r),n}function hg(e,t){Di();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 Za(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 Ni(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)Xe(o)&&(o.disabled||eg.has(ht(o))||t&&Qa(o).length===0||r.push(o));return r}async function el(e,t={}){var s,a;if(!Xe(e))return{valid:!0};let n=Qa(e);if(!n.length)return t.silent||Ya(e),{valid:!0};let r=eo(e),o=At(e,"error-message"),i=r.trim()==="";for(let l of n){if(i&&!fg.has(l.name))continue;let c=Ai.get(l.name);if(!c)continue;let d;try{d=await c.fn(r,l.param||void 0,e)}catch(f){Y(`Rule "${l.name}" failed to execute`,f);continue}if(d===!0)continue;let u=o!=null?o:typeof d=="string"?d:(a=(s=rt[l.name])!=null?s:c.message)!=null?a:rt.invalid,p=ef(u,{field:tg(e),param:l.param,value:r});return t.silent||(Hi(e,p),Zu(e,{valid:!1,message:p,rule:l.name})),{valid:!1,message:p,rule:l.name}}return t.silent||(Ya(e,!i),Zu(e,{valid:!0})),{valid:!0}}function tl(e){return Xe(e)?el(e):nl(e)}async function nl(e){let t=Ni(e),n=await Promise.all(t.map(o=>el(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[Ga(o)]=(a=s.message)!=null?a:rt.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function Zu(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:Ga(e),...t}}))}function gg(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 bg(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 c=a===""?[]:{};r.push(c),r=c;continue}if(Array.isArray(r)){let c=Number(i);if(!Number.isInteger(c))return;if(s){r[c]=n;return}let d=r[c];(d==null||typeof d!="object")&&(d=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[c]=d),r=d;continue}if(s){r[i]=n;return}let l=r[i];(l==null||typeof l!="object")&&(l=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[i]=l),r=l}}function yg(e,t){var a,l,c,d;let n=Ni(e,!1),r=[],o=new Map;for(let u of n)ht(u)==="checkbox"&&u.name&&o.set(u.name,((a=o.get(u.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let u of n){if(!u.name||u.disabled&&!t.includeDisabled)continue;let p=ht(u);if(p==="file"){let m=Array.from((l=u.files)!=null?l:[]);if(!m.length)continue;let h=u.multiple||u.name.endsWith("[]");r.push({name:u.name,value:h?m:m[0]});continue}if(p==="checkbox"){if(((c=o.get(u.name))!=null?c:1)>1||u.name.endsWith("[]")){if(!u.checked)continue;let h=u.name.endsWith("[]")?u.name:`${u.name}[]`;r.push({name:h,value:u.value||"on"})}else r.push({name:u.name,value:u.checked});continue}if(p==="radio"){if(!u.checked)continue;r.push({name:u.name,value:u.value});continue}if(u.tagName==="SELECT"&&u.multiple){let m=Array.from(u.selectedOptions).map(v=>v.value),h=u.name.endsWith("[]")?u.name:`${u.name}[]`;for(let v of m)r.push({name:h,value:v});continue}let f=(d=u.value)!=null?d:"";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:u.name,value:f})}return r}function xg(e){for(let t of Ni(e,!1)){if(ht(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function rf(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)rf(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function or(e,t={}){let n=yg(e,t);if(t.formData||xg(e)){let o=new FormData;for(let i of n)rf(o,i.name,i.value);return o}let r={};for(let o of n)bg(r,gg(o.name),o.value);return r}var Jr=new WeakSet,Zr=new WeakSet;async function Si(e){(await el(e)).valid?Zr.delete(e):Zr.add(e)}function Oi(e,t){if(!Xe(e)){Y(`${w.prefix}validate only works on input, select, or textarea.`);return}if(Jr.has(e))return;Jr.add(e),Di();let n=()=>{Si(e)},r=()=>{Zr.has(e)&&Si(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Jr.delete(e),Zr.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var Xa=new WeakSet;function of(e){return Xa.has(e)||Jh(e,"validate")}function wg(e,t){Xa.add(e),Di(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!Xe(i)||Jr.has(i)||Qa(i).length!==0&&Si(i)},r=o=>{let i=o.target;!Xe(i)||Jr.has(i)||Zr.has(i)&&Si(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Xa.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}y("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${w.prefix}submit`)){wg(e,t);return}Oi(e,t)});var Eg=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of Eg)y(e,({el:t,cleanup:n})=>{Oi(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])y(e,({el:t,cleanup:n})=>{Xe(t)&&Oi(t,n)});function af(){return Z({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var ir=new WeakMap,il=new WeakMap,kg=af();function ro(e){let t=ir.get(e);return t||(t=af(),ir.set(e,t)),t}function Tg(e){let t=e;for(;t;){let n=il.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?ir.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?ir.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=ir.get(n);if(r)return r}return kg}P("$form",e=>Tg(e));var sr=new WeakMap,Lg=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function sf(e){return Lg.some(t=>Nt(e,`${w.prefix}${t}`)||Nt(e,`data-v-${t}`))}function Se(e,t){var i,s,a;let n=At(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let l=At(r,t);if(l!==null)return l}let o=(a=(i=sr.get(e))==null?void 0:i[t])!=null?a:r?(s=sr.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function zi(e,t){return Se(e,t)!==null}function Ge(e,t){y(e,({el:n,expression:r})=>{var a,l;let o=(a=n.closest("form"))!=null?a:n,i=(l=sr.get(o))!=null?l:{};if(i[e]=r,sr.set(o,i),!sf(o)&&!sf(n)){Y(`${w.prefix}${e} needs an element with ${w.prefix}submit, ${w.prefix}upload, ${w.prefix}dropzone, or ${w.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&Y(s)})}var Mg=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];Ge("method",e=>e&&!Mg.includes(e.trim().toUpperCase())?`${w.prefix}method received an unknown verb: ${e}`:null);Ge("redirect");Ge("reset-success");Ge("disable-loading");Ge("loading-class");Ge("on-success");Ge("on-error");Ge("on-complete");Ge("toast-success");Ge("toast-error");Ge("confirm");Ge("form-data");y("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=sr.get(n))!=null?s:{};r.loading=t,sr.set(n,r);let o=lf(t);if(!o){Y(`${w.prefix}loading element not found: ${t}`);return}cf(o,!1)});var Sg=`
|
|
286
|
+
`;function Hi(){he(),ne("forms-validate",gg)}function of(e){var r,o,i;let t=At(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 ${w.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function sf(e){let t=of(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 Pi(e,t){Hi(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=sf(e);if(!n){let o=of(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:ae("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 Qa(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=sf(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 no(e){for(let n of Oi(e,!1))Qa(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 tl(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 bg(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${Si(i)}"]`);if(Xe(s))return s}let o=e.querySelector(`#${Si(t)}`);return Xe(o)?o:null}function Ni(e,t){let n=tl(t),r=[];for(let[o,i]of Object.entries(n)){let s=bg(e,o);s?Pi(s,i):r.push(i)}return r.length&&yg(e,r),n}function yg(e,t){Hi();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 nl(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 Oi(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)Xe(o)&&(o.disabled||rg.has(ht(o))||t&&el(o).length===0||r.push(o));return r}async function rl(e,t={}){var s,a;if(!Xe(e))return{valid:!0};let n=el(e);if(!n.length)return t.silent||Qa(e),{valid:!0};let r=eo(e),o=At(e,"error-message"),i=r.trim()==="";for(let l of n){if(i&&!vg.has(l.name))continue;let c=Ci.get(l.name);if(!c)continue;let d;try{d=await c.fn(r,l.param||void 0,e)}catch(f){Y(`Rule "${l.name}" failed to execute`,f);continue}if(d===!0)continue;let u=o!=null?o:typeof d=="string"?d:(a=(s=rt[l.name])!=null?s:c.message)!=null?a:rt.invalid,p=rf(u,{field:og(e),param:l.param,value:r});return t.silent||(Pi(e,p),nf(e,{valid:!1,message:p,rule:l.name})),{valid:!1,message:p,rule:l.name}}return t.silent||(Qa(e,!i),nf(e,{valid:!0})),{valid:!0}}function ol(e){return Xe(e)?rl(e):il(e)}async function il(e){let t=Oi(e),n=await Promise.all(t.map(o=>rl(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[Za(o)]=(a=s.message)!=null?a:rt.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function nf(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:Za(e),...t}}))}function xg(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 wg(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 c=a===""?[]:{};r.push(c),r=c;continue}if(Array.isArray(r)){let c=Number(i);if(!Number.isInteger(c))return;if(s){r[c]=n;return}let d=r[c];(d==null||typeof d!="object")&&(d=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[c]=d),r=d;continue}if(s){r[i]=n;return}let l=r[i];(l==null||typeof l!="object")&&(l=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[i]=l),r=l}}function Eg(e,t){var a,l,c,d;let n=Oi(e,!1),r=[],o=new Map;for(let u of n)ht(u)==="checkbox"&&u.name&&o.set(u.name,((a=o.get(u.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let u of n){if(!u.name||u.disabled&&!t.includeDisabled)continue;let p=ht(u);if(p==="file"){let m=Array.from((l=u.files)!=null?l:[]);if(!m.length)continue;let h=u.multiple||u.name.endsWith("[]");r.push({name:u.name,value:h?m:m[0]});continue}if(p==="checkbox"){if(((c=o.get(u.name))!=null?c:1)>1||u.name.endsWith("[]")){if(!u.checked)continue;let h=u.name.endsWith("[]")?u.name:`${u.name}[]`;r.push({name:h,value:u.value||"on"})}else r.push({name:u.name,value:u.checked});continue}if(p==="radio"){if(!u.checked)continue;r.push({name:u.name,value:u.value});continue}if(u.tagName==="SELECT"&&u.multiple){let m=Array.from(u.selectedOptions).map(v=>v.value),h=u.name.endsWith("[]")?u.name:`${u.name}[]`;for(let v of m)r.push({name:h,value:v});continue}let f=(d=u.value)!=null?d:"";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:u.name,value:f})}return r}function kg(e){for(let t of Oi(e,!1)){if(ht(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function af(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)af(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function or(e,t={}){let n=Eg(e,t);if(t.formData||kg(e)){let o=new FormData;for(let i of n)af(o,i.name,i.value);return o}let r={};for(let o of n)wg(r,xg(o.name),o.value);return r}var Jr=new WeakSet,Zr=new WeakSet;async function Ai(e){(await rl(e)).valid?Zr.delete(e):Zr.add(e)}function Fi(e,t){if(!Xe(e)){Y(`${w.prefix}validate only works on input, select, or textarea.`);return}if(Jr.has(e))return;Jr.add(e),Hi();let n=()=>{Ai(e)},r=()=>{Zr.has(e)&&Ai(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Jr.delete(e),Zr.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var Ja=new WeakSet;function lf(e){return Ja.has(e)||tg(e,"validate")}function Tg(e,t){Ja.add(e),Hi(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!Xe(i)||Jr.has(i)||el(i).length!==0&&Ai(i)},r=o=>{let i=o.target;!Xe(i)||Jr.has(i)||Zr.has(i)&&Ai(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Ja.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}y("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${w.prefix}submit`)){Tg(e,t);return}Fi(e,t)});var Lg=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of Lg)y(e,({el:t,cleanup:n})=>{Fi(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])y(e,({el:t,cleanup:n})=>{Xe(t)&&Fi(t,n)});function df(){return Z({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var ir=new WeakMap,ll=new WeakMap,Mg=df();function ro(e){let t=ir.get(e);return t||(t=df(),ir.set(e,t)),t}function Sg(e){let t=e;for(;t;){let n=ll.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?ir.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?ir.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=ir.get(n);if(r)return r}return Mg}P("$form",e=>Sg(e));var sr=new WeakMap,Ag=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function cf(e){return Ag.some(t=>Nt(e,`${w.prefix}${t}`)||Nt(e,`data-v-${t}`))}function Se(e,t){var i,s,a;let n=At(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let l=At(r,t);if(l!==null)return l}let o=(a=(i=sr.get(e))==null?void 0:i[t])!=null?a:r?(s=sr.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function Bi(e,t){return Se(e,t)!==null}function Ge(e,t){y(e,({el:n,expression:r})=>{var a,l;let o=(a=n.closest("form"))!=null?a:n,i=(l=sr.get(o))!=null?l:{};if(i[e]=r,sr.set(o,i),!cf(o)&&!cf(n)){Y(`${w.prefix}${e} needs an element with ${w.prefix}submit, ${w.prefix}upload, ${w.prefix}dropzone, or ${w.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&Y(s)})}var Cg=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];Ge("method",e=>e&&!Cg.includes(e.trim().toUpperCase())?`${w.prefix}method received an unknown verb: ${e}`:null);Ge("redirect");Ge("reset-success");Ge("disable-loading");Ge("loading-class");Ge("on-success");Ge("on-error");Ge("on-complete");Ge("toast-success");Ge("toast-error");Ge("confirm");Ge("form-data");y("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=sr.get(n))!=null?s:{};r.loading=t,sr.set(n,r);let o=uf(t);if(!o){Y(`${w.prefix}loading element not found: ${t}`);return}ff(o,!1)});var Rg=`
|
|
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,7 +312,7 @@ 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 oo(){he(),ne("forms-ajax",Sg)}function _t(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Bi(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=q(i.trim(),t,`${w.prefix}submit`);return s==null?o:String(s)}));let r=w.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function sl(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 al(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>al(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))al(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function Ag(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function lf(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var rl=new WeakMap;function cf(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=rl.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}rl.has(e)||rl.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function Ii(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(zi(n,"disable-loading"))for(let a of Ag(r))a.disabled=t;let s=Se(n,"loading");if(s){let a=lf(s);a&&cf(a,t)}}function ji(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=q(o,i,`${w.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function Cg(e,t){let n=Se(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){Y(`${w.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=Ve(r);switch(o){case"inner":case"innerhtml":for(let l of Array.from(r.children))X(l);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":X(r),r.replaceWith(...s);break;default:Y(`Unknown mode in ${w.prefix}swap: ${o}`);return}for(let l of s)l.nodeType===1&&se(l,a)}function df(e,t,n){var l;let{state:r,form:o,host:i}=e;r.success=!0,r.errors={},r.data=t,r.status=n,r.dirty=!1,r.message=sl(t),Cg(e,t),zi(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),no(o));let s=Se(i,"toast-success");s!==null&&tt.success(s||r.message||"All set!"),ji(e,"on-success",t,{status:n}),_t(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=Se(i,"redirect");if(a!==null&&typeof window!="undefined"){let c=t&&typeof t=="object"?(l=t.redirect)!=null?l:t.url:null,d=e.scope.child({$data:t,$form:r}),u=a?Bi(a,d):String(c!=null?c:"");u&&window.location.assign(u)}}function ll(e,t){var c,d;let{state:n,form:r,host:o}=e,i=t instanceof Ee?t:new Ee(t instanceof Error?t.message:String(t)),s=(d=(c=i.response)==null?void 0:c.data)!=null?d:null;n.success=!1,n.data=s,n.status=i.status,n.message=sl(s)||i.message;let a=Ja(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Pi(r,s),Za(r));let l=Se(o,"toast-error");l!==null&&tt.error(l||sl(s)||"Could not submit the form."),ji(e,"on-error",s,i),_t(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function uf(e,t){ji(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),_t(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function Rg(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(of(r)){no(r);let p=await nl(r);if(o.errors=p.errors,!p.valid){Za(r),_t(r,"voodoo:invalid",{errors:p.errors,form:r,state:o});return}}let a=(Se(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),l=Bi(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),c=or(r,{formData:zi(n,"form-data")}),d=a==="GET"||a==="HEAD";Ii(e,!0),o.success=!1,o.progress=0,_t(r,"voodoo:submit",{url:l,method:a,form:r,state:o});let u=!1;try{let p=await zt({url:l,method:a,body:d?void 0:c,params:d&&!(c instanceof FormData)?al(c):void 0});u=!0,df(e,p.data,p.status)}catch(p){ll(e,p)}finally{Ii(e,!1),uf(e,u)}}y("submit",({el:e,scope:t,expression:n,cleanup:r})=>{oo();let o=e,i=ro(o),s=t.child({$form:i},o);il.set(s,i),il.set(t,i),Ot(o,s);for(let d of Array.from(o.childNodes))d.nodeType===1&&Ot(d,s);let a={host:o,form:o,scope:s,state:i},l=d=>{d.preventDefault(),Rg(a,n)},c=d=>{var f;let u=d.detail;if(!u||!u.field)return;let p={...i.errors};u.valid?delete p[u.field]:p[u.field]=(f=u.message)!=null?f:"",i.errors=p};o.addEventListener("submit",l),o.addEventListener("voodoo:field-validated",c),r(()=>{ir.delete(o),o.removeEventListener("submit",l),o.removeEventListener("voodoo:field-validated",c)})},{priority:j.DATA-1});function $g(e){let t=Se(e,"progress");if(t){let o=document.querySelector(t);return o||(Y(`${w.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;oo();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 Fi(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 Dg(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=or(s,{formData:!0});if(a instanceof FormData)for(let[l,c]of a.entries())c instanceof File||r.append(l,c)}return r}async function ff(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=Bi(t,e.scope);if(!a){Y(`${w.prefix}upload needs a destination URL.`);return}let l=$g(s),c=Dg(s,n,r);Ii(e,!0),o.success=!1,o.progress=0,Fi(l,0,"loading"),_t(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let d=!1;try{let u=(Se(s,"method")||"POST").trim().toUpperCase(),p=await ve.upload(a,c,{method:u==="PUT"||u==="PATCH"?u:"POST",onProgress:f=>{o.progress=f,Fi(l,f,"loading"),_t(i,"voodoo:progress",{percent:f,form:i,state:o})}});d=!0,o.progress=100,Fi(l,100,"done"),df(e,p,200)}catch(u){Fi(l,o.progress,"error"),ll(e,u)}finally{Ii(e,!1),uf(e,d)}}y("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var c;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){Y(`${w.prefix}upload needs an <input type="file">.`);return}oo();let i=(c=o.closest("form"))!=null?c:o,s=ro(i),a={host:o,form:i,scope:t,state:s},l=()=>{var u;let d=Array.from((u=o.files)!=null?u:[]);d.length&&ff(a,n,d,o.name||"file")};o.addEventListener("change",l),r(()=>o.removeEventListener("change",l))});y("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var b,x,T;oo(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(b=e.textContent)!=null&&b.trim()||(e.textContent="Drag files here or click to choose");let o=(x=e.closest("form"))!=null?x:e,i=ro(o),s={host:e,form:o,scope:t,state:i},a=Se(e,"field")||"file",l=document.createElement("input");l.type="file",l.hidden=!0,l.tabIndex=-1,e.hasAttribute("accept")&&(l.accept=(T=e.getAttribute("accept"))!=null?T:""),e.hasAttribute("multiple")&&(l.multiple=!0),e.appendChild(l);let c=k=>{k.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),ff(s,n,k,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},d=0,u=k=>{k.preventDefault(),d++,e.classList.add("v-dropzone-over")},p=k=>{k.preventDefault(),k.dataTransfer&&(k.dataTransfer.dropEffect="copy")},f=()=>{d=Math.max(0,d-1),d===0&&e.classList.remove("v-dropzone-over")},m=k=>{var D,C;k.preventDefault(),d=0,e.classList.remove("v-dropzone-over");let A=Array.from((C=(D=k.dataTransfer)==null?void 0:D.files)!=null?C:[]);c(l.multiple?A:A.slice(0,1))},h=k=>{k.target!==l&&l.click()},v=k=>{k.key!=="Enter"&&k.key!==" "||(k.preventDefault(),l.click())},g=()=>{var A;let k=Array.from((A=l.files)!=null?A:[]);c(k),l.value=""};e.addEventListener("dragenter",u),e.addEventListener("dragover",p),e.addEventListener("dragleave",f),e.addEventListener("drop",m),e.addEventListener("click",h),e.addEventListener("keydown",v),l.addEventListener("change",g),r(()=>{e.removeEventListener("dragenter",u),e.removeEventListener("dragover",p),e.removeEventListener("dragleave",f),e.removeEventListener("drop",m),e.removeEventListener("click",h),e.removeEventListener("keydown",v),l.removeEventListener("change",g),l.remove()})});var Hg={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function Pg(e){let t=Se(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;Y(`${w.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 ol(e,t){e.setAttribute("data-state",t),e.textContent=Hg[t]}y("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,h,v;oo();let i=e,s=ro(i),a={host:i,form:i,scope:t,state:s},l=Pg(i),c=(v=(h=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(g=>/^[\d.]+(ms|s|m)?$/.test(g)))!=null?h:Se(i,"autosave-delay"))!=null?v:1e3,d=G(c,1e3),u=async()=>{let g=Bi(n,t);if(!g){Y(`${w.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,ol(l,"saving");let b=(Se(i,"method")||"POST").trim().toUpperCase();try{let x=await zt({url:g,method:b,body:or(i,{formData:zi(i,"form-data")})});s.data=x.data,s.status=x.status,s.dirty=!1,s.success=!0,ol(l,"saved"),ji(a,"on-success",x.data,{status:x.status}),_t(i,"voodoo:autosave",{data:x.data,status:x.status,form:i,state:s})}catch(x){ol(l,"error"),ll(a,x)}finally{s.saving=!1}},p=Ue(()=>{u()},d),f=()=>{s.dirty=!0,p()};i.addEventListener("input",f),i.addEventListener("change",f),o(()=>{p.cancel(),i.removeEventListener("input",f),i.removeEventListener("change",f)})});y("guard",({el:e,expression:t,cleanup:n})=>{var c;let r=(c=e.tagName==="FORM"?e:e.closest("form"))!=null?c:e,o=ro(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},l=d=>{!o.dirty||o.loading||(d.preventDefault(),d.returnValue=i)};r.addEventListener("input",s),r.addEventListener("change",s),r.addEventListener("reset",a),r.addEventListener("voodoo:success",a),window.addEventListener("beforeunload",l),n(()=>{r.removeEventListener("input",s),r.removeEventListener("change",s),r.removeEventListener("reset",a),r.removeEventListener("voodoo:success",a),window.removeEventListener("beforeunload",l)})});be();le();function io(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=Le(r)}catch(o){}return t}function pf(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(">")}`}y("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:pf(e,"voodoo:persist"),i=ue.get(o);if(i&&typeof i=="object")for(let[l,c]of Object.entries(i))l in t.data&&(t.data[l]=c);let s=Ue(()=>{ue.set(o,io(t.data))},120),a=Oe(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:j.DATA-1});y("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||pf(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,l=Ue(()=>{if(!a)try{i.postMessage({from:s,state:io(t.data)})}catch(d){K(d,"v-sync")}},60);i.addEventListener("message",d=>{let u=d.data;if(!(!u||u.from===s)){a=!0;for(let[p,f]of Object.entries(u.state))p in t.data&&t.data[p]!==f&&(t.data[p]=f);queueMicrotask(()=>{a=!1})}});let c=Oe(t.data,()=>l(),{deep:!0});r(()=>{c(),i.close()})},{priority:j.DATA-1});var cl=new WeakMap;function dl(e){let t=e;for(;t;){let n=cl.get(t);if(n)return n;t=t.parentElement}return null}y("history",({el:e,scope:t,expression:n,cleanup:r})=>{var f;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(io(t.data)))],s=0,a=!1,l=Z({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,d())},redo(){s>=i.length-1||(s++,d())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(io(t.data)))),s=0,c()}});function c(){l.canUndo=s>0,l.canRedo=s<i.length-1,l.size=i.length}function d(){a=!0;let m=i[s];for(let[h,v]of Object.entries(m))t.data[h]=JSON.parse(JSON.stringify(v));c(),queueMicrotask(()=>{a=!1})}let u=Ue(()=>{if(a)return;let m=JSON.stringify(io(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,c())},G((f=e.getAttribute("v-history-debounce"))!=null?f:void 0,300)),p=Oe(t.data,()=>u(),{deep:!0});cl.set(e,l),t.set("$history",l),r(()=>{p(),u.cancel(),cl.delete(e)})},{priority:j.DATA-1});y("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=dl(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});y("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=dl(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});y("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=ue.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{ue.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});P("$history",e=>e.el?dl(e.el):null);le();var ar=null,Kt=.35,Ct=!1,mf=!1,ul="voodoo:sound:volume",gf="voodoo:sound:muted";function vn(){if(mf)return;mf=!0;let e=ue.get(ul);typeof e=="number"&&e>=0&&e<=1&&(Kt=e);let t=ue.get(gf);typeof t=="boolean"&&(Ct=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&ue.get(ul)===void 0&&(Kt=.18)}function vf(){var t;if(typeof window=="undefined")return null;if(ar)return ar.state==="suspended"&&ar.resume(),ar;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return ar=new e,ar}catch(n){return null}}function hf(e,t,n){var c,d,u,p;let r=e.currentTime+((c=t.atraso)!=null?c:0),o=r+t.duracao,i=e.createOscillator();i.type=(d=t.forma)!=null?d:"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=Kt*n*((u=t.volume)!=null?u:1),l=(p=t.ataque)!=null?p:.008;s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(Math.max(1e-4,a),r+l),s.gain.exponentialRampToValueAtTime(1e-4,o),i.connect(s),s.connect(e.destination),i.start(r),i.stop(o+.02)}var qi={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"}]}},Ng={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 Vi(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=Ng[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var Ui=new Map;function Og(e,t){let n=Ui.get(e);n||(n=new Audio(e),n.preload="auto",Ui.set(e,n)),n.volume=Math.max(0,Math.min(1,Kt*t)),n.currentTime=0,n.play().catch(()=>{})}function bf(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var Yt={play(e,t={}){var l,c,d;if(vn(),Ct||!e)return;let n=String(e).trim(),r=(l=t.volume)!=null?l:1;if(bf(n)){Og(n,r);return}let o=qi[n];if(!o){let u=Vi(n);u!==null&&this.tone(u,200,{volume:r});return}let i=vf();if(!i)return;let s=(c=t.tom)!=null?c:1,a=((d=o.volume)!=null?d:1)*r;for(let u of o.camadas)hf(i,s===1?u:{...u,frequencia:u.frequencia*s,ate:u.ate===void 0?void 0:u.ate*s},a)},tone(e,t=200,n={}){var o,i;if(vn(),Ct)return;let r=vf();r&&hf(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=Vi(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){vn(),!Ct&&e.forEach((r,o)=>{let i=typeof r=="number"?r:Vi(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return vn(),e===void 0||(Kt=Math.max(0,Math.min(1,e)),ue.set(ul,Kt)),Kt},mute(e=!0){vn(),Ct=e,ue.set(gf,Ct)},unmute(){this.mute(!1)},toggle(){return vn(),this.mute(!Ct),Ct},get muted(){return vn(),Ct},get names(){return Object.keys(qi)},define(e,t){qi[e]=t},preload(...e){for(let t of e){if(Ui.has(t))continue;let n=new Audio(t);n.preload="auto",Ui.set(t,n)}}};y("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",l=()=>{let u=n.trim();if(!u)return"click";if(qi[u]||bf(u)||Vi(u)!==null)return u;let p=s();return typeof p=="string"?p:u},c=r.volume!==void 0?Number(r.volume):void 0,d=()=>{Yt.play(l(),c===void 0?{}:{volume:c})};e.addEventListener(a,d),i(()=>e.removeEventListener(a,d))});y("mute",({el:e,cleanup:t})=>{let n=()=>{let o=Yt.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o)},r=()=>{Yt.toggle(),n(),Yt.muted||Yt.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});P("$sound",()=>Yt);be();le();function so(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:me.reducedMotion}var cr=new Set,gn=0;function Tf(e){gn=0;let t=Array.from(cr);for(let n of t)cr.has(n)&&n(e);cr.size>0&&(gn=requestAnimationFrame(Tf))}function Lf(e){typeof requestAnimationFrame=="function"&&(cr.add(e),gn||(gn=requestAnimationFrame(Tf)))}function Ki(e){cr.delete(e),cr.size===0&&gn&&(cancelAnimationFrame(gn),gn=0)}var Mf=12e3;function Fg(e){return e*e*(2.70158*e-1.70158)}var ao={linear(e){return e},easeIn(e){return e*e*e},easeOut(e){return 1-Math.pow(1-e,3)},easeInOut(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},easeOutBack(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)},easeOutExpo(e){return e>=1?1:1-Math.pow(2,-10*e)},anticipate(e){let t=e*2;return t<1?.5*Fg(t):.5*(2-Math.pow(2,-10*(t-1)))},bounce(e){let r=e;return r<1/2.75?7.5625*r*r:r<2/2.75?(r-=1.5/2.75,7.5625*r*r+.75):r<2.5/2.75?(r-=2.25/2.75,7.5625*r*r+.9375):(r-=2.625/2.75,7.5625*r*r+.984375)}};function Ig(e){if(typeof e=="function")return e;if(typeof e=="string"){let t=ao[e];if(t)return t}return ao.easeOut}var yl={x:0,y:0,z:0,parallax:0,rotate:0,rotateX:0,rotateY:0,skewX:0,skewY:0,scale:1,scaleX:1,scaleY:1},zg={x:"px",y:"px",z:"px",parallax:"px",rotate:"deg",rotateX:"deg",rotateY:"deg",skewX:"deg",skewY:"deg",scale:"",scaleX:"",scaleY:""},Sf={translateX:"x",translateY:"y",translateZ:"z",rotateZ:"rotate"},xl={blur:0,brightness:1,saturate:1,grayscale:0,contrast:1},Bg={blur:"px",brightness:"",saturate:"",grayscale:"",contrast:""},jg=new Set(["opacity","z-index","font-weight","line-height","flex-grow","flex-shrink","order","zoom","fill-opacity","stroke-opacity","stroke-width","stroke-dashoffset","stroke-dasharray"]),ml=new WeakMap,vl=new WeakMap;function Yi(e){let t=ml.get(e);return t||(t={...yl},ml.set(e,t)),t}function Af(e){let t=vl.get(e);return t||(t={...xl},vl.set(e,t)),t}function Ae(e){return Math.round(e*1e3)/1e3}function hl(e){let t=ml.get(e);if(!t)return;let n=[],r=t.y+t.parallax;(t.x||r||t.z)&&n.push(`translate3d(${Ae(t.x)}px, ${Ae(r)}px, ${Ae(t.z)}px)`),t.rotateX&&n.push(`rotateX(${Ae(t.rotateX)}deg)`),t.rotateY&&n.push(`rotateY(${Ae(t.rotateY)}deg)`),t.rotate&&n.push(`rotate(${Ae(t.rotate)}deg)`),(t.skewX||t.skewY)&&n.push(`skew(${Ae(t.skewX)}deg, ${Ae(t.skewY)}deg)`);let o=t.scale*t.scaleX,i=t.scale*t.scaleY;(o!==1||i!==1)&&n.push(`scale(${Ae(o)}, ${Ae(i)})`),n.length>0?e.style.transform=n.join(" "):e.style.removeProperty("transform")}function qg(e){let t=vl.get(e);if(!t)return;let n=[];t.blur&&n.push(`blur(${Ae(t.blur)}px)`),t.brightness!==1&&n.push(`brightness(${Ae(t.brightness)})`),t.saturate!==1&&n.push(`saturate(${Ae(t.saturate)})`),t.grayscale&&n.push(`grayscale(${Ae(t.grayscale)})`),t.contrast!==1&&n.push(`contrast(${Ae(t.contrast)})`),n.length>0?e.style.filter=n.join(" "):e.style.removeProperty("filter")}var Vg=/^([+-]?(?:\d+\.?\d*|\.\d+))([a-z%]*)$/i,Cf=/^#([0-9a-f]{3,8})$/i;function Wi(e){if(typeof e!="string")return!1;let t=e.trim().toLowerCase();return t==="transparent"||Cf.test(t)||t.startsWith("rgb")||t.startsWith("hsl")}function Ug(e,t,n){let r=(e%360+360)%360,o=(1-Math.abs(2*n-1))*t,i=o*(1-Math.abs(r/60%2-1)),s=n-o/2,a;return r<60?a=[o,i,0]:r<120?a=[i,o,0]:r<180?a=[0,o,i]:r<240?a=[0,i,o]:r<300?a=[i,0,o]:a=[o,0,i],[Math.round((a[0]+s)*255),Math.round((a[1]+s)*255),Math.round((a[2]+s)*255)]}function yf(e){var i,s;let t=e.trim().toLowerCase();if(t==="transparent")return[0,0,0,0];let n=Cf.exec(t);if(n){let a=n[1];(a.length===3||a.length===4)&&(a=a.split("").map(d=>d+d).join(""));let l=parseInt(a.slice(0,6),16),c=a.length===8?parseInt(a.slice(6,8),16)/255:1;return[l>>16&255,l>>8&255,l&255,c]}let r=(i=t.match(/-?(?:\d+\.?\d*|\.\d+)%?/g))!=null?i:[],o=(a,l)=>{var u;let c=(u=r[a])!=null?u:"0",d=parseFloat(c);return c.endsWith("%")?d/100*l:d};if(t.startsWith("hsl")){let a=c=>{var p;let d=(p=r[c])!=null?p:"0",u=parseFloat(d);return d.endsWith("%")||u>1?u/100:u},l=Ug(parseFloat((s=r[0])!=null?s:"0"),a(1),a(2));return[l[0],l[1],l[2],r.length>3?o(3,1):1]}return[o(0,255),o(1,255),o(2,255),r.length>3?o(3,1):1]}function Wg(e){let t=Math.max(0,Math.min(1,e[3]));return`rgba(${Math.round(e[0])}, ${Math.round(e[1])}, ${Math.round(e[2])}, ${Ae(t)})`}function Rf(e){return e.startsWith("--")?e:e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function $f(e,t,n,r){if(t==="transform")return Yi(e)[n];if(t==="filter")return Af(e)[n];if(typeof getComputedStyle!="function")return e.style.getPropertyValue(r).trim();let o=getComputedStyle(e).getPropertyValue(r);return o?o.trim():""}function _g(e,t,n){var u;let r=(u=Sf[t])!=null?u:t,o=r in yl?"transform":r in xl?"filter":"style",i=o==="style"?Rf(r):r,s=o==="transform"?zg[r]:o==="filter"?Bg[r]:jg.has(i)?"":"px",a=Array.isArray(n)?[n[0],n[1]]:[$f(e,o,r,i),n],l={kind:o,prop:r,cssName:i,mode:"number",unit:s,from:0,to:0,fromColor:[0,0,0,1],toColor:[0,0,0,1],fromText:String(a[0]),toText:String(a[1])};if(Wi(a[0])||Wi(a[1]))return o!=="style"?null:(l.mode="color",l.fromColor=Wi(a[0])?yf(String(a[0])):[0,0,0,0],l.toColor=Wi(a[1])?yf(String(a[1])):[0,0,0,0],l);let c=xf(a[0],s),d=xf(a[1],s);return!c||!d?o!=="style"?null:(l.mode="discrete",l):(l.from=c.value,l.to=d.value,l.unit=d.unit||c.unit||s,l)}function xf(e,t){if(typeof e=="number")return Number.isFinite(e)?{value:e,unit:t}:null;let n=Vg.exec(e.trim());return n?{value:parseFloat(n[1]),unit:n[2]||t}:null}function lr(e,t,n){let r=!1,o=!1;for(let i of t){if(i.kind==="transform"){Yi(e)[i.prop]=i.from+(i.to-i.from)*n,r=!0;continue}if(i.kind==="filter"){Af(e)[i.prop]=i.from+(i.to-i.from)*n,o=!0;continue}if(i.mode==="color"){let a=[i.fromColor[0]+(i.toColor[0]-i.fromColor[0])*n,i.fromColor[1]+(i.toColor[1]-i.fromColor[1])*n,i.fromColor[2]+(i.toColor[2]-i.fromColor[2])*n,i.fromColor[3]+(i.toColor[3]-i.fromColor[3])*n];e.style.setProperty(i.cssName,Wg(a));continue}if(i.mode==="discrete"){e.style.setProperty(i.cssName,n>=1?i.toText:i.fromText);continue}let s=i.from+(i.to-i.from)*n;e.style.setProperty(i.cssName,`${Ae(s)}${i.unit}`)}r&&hl(e),o&&qg(e)}function Df(e,t){let n=[];for(let[r,o]of Object.entries(t)){if(o==null)continue;let i=_g(e,r,o);i&&n.push(i)}return n}function wf(e,t){for(let n of wl(e))lr(n,Df(n,t),0)}function Kg(e,t){var r;let n={};for(let o of Object.keys(t)){let i=(r=Sf[o])!=null?r:o,s=i in yl?"transform":i in xl?"filter":"style";n[o]=$f(e,s,i,s==="style"?Rf(i):i)}return n}function fl(e){return typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof SVGElement!="undefined"&&e instanceof SVGElement}function wl(e){if(!e)return[];if(typeof e=="string")return typeof document=="undefined"?[]:Array.from(document.querySelectorAll(e)).filter(fl);if(fl(e))return[e];let t=e;if(typeof t.length!="number")return[];let n=[];for(let r=0;r<t.length;r++){let o=t[r];fl(o)&&n.push(o)}return n}function Xi(e){return{finished:Promise.resolve(),stop(){e==null||e()}}}function gl(e,t,n){var x,T,k,A,D,C,oe;let r=Df(e,t);if(so()&&!n.force)return lr(e,r,1),(x=n.onUpdate)==null||x.call(n,1),(T=n.onComplete)==null||T.call(n),Xi();let o=Math.max(0,(k=n.duration)!=null?k:400),i=Math.max(0,(A=n.delay)!=null?A:0),s=Ig(n.easing),a=Math.max(0,Math.floor((D=n.repeat)!=null?D:0)),l=(C=n.repeatType)!=null?C:"loop",c=n.spring===!0?{}:n.spring?n.spring:null,d,u=new Promise(N=>{d=N}),p=!0,f=-1,m=-1,h=0,v=(oe=c==null?void 0:c.velocity)!=null?oe:0;function g(N){var Jt,Ln,ac,lc,cc,dc,uc;if(!p)return;f<0&&(f=N,m=N);let pe=N-f-i;if(pe<0)return;let ie=Math.min(64,Math.max(0,N-m));if(m=N,pe>Mf){b(1);return}if(c){let Up=(Jt=c.stiffness)!=null?Jt:170,Wp=(Ln=c.damping)!=null?Ln:26,_p=(ac=c.mass)!=null?ac:1,fc=Math.max(1,Math.round(ie)),pc=ie/fc/1e3;for(let mc=0;mc<fc;mc++){let Xp=(-Up*(h-1)-Wp*v)/_p;v+=Xp*pc,h+=v*pc}let Kp=(lc=c.restDelta)!=null?lc:.001,Yp=(cc=c.restSpeed)!=null?cc:.01;if(Math.abs(1-h)<Kp&&Math.abs(v)<Yp){b(1);return}lr(e,r,h),(dc=n.onUpdate)==null||dc.call(n,h);return}if(o===0){b(1);return}let R=a+1,S=Math.floor(pe/o),B=(pe-S*o)/o,je=!1;S>=R&&(S=R-1,B=1,je=!0);let qe;if(S%2===1&&l==="reverse"?qe=s(1-B):S%2===1&&l==="mirror"?qe=1-s(B):qe=s(B),je){b(qe);return}lr(e,r,qe),(uc=n.onUpdate)==null||uc.call(n,qe)}function b(N){var pe,ie;p&&(p=!1,Ki(g),lr(e,r,N),(pe=n.onUpdate)==null||pe.call(n,N),d(),(ie=n.onComplete)==null||ie.call(n))}return lr(e,r,c?h:s(0)),Lf(g),{finished:u,stop(){p&&(p=!1,Ki(g),d())}}}function Rt(e,t,n={}){let r=wl(e);if(r.length===0)return Xi();if(r.length===1)return gl(r[0],t,n);let o=r.map(i=>gl(i,t,n));return{finished:Promise.all(o.map(i=>i.finished)).then(()=>{}),stop(){for(let i of o)i.stop()}}}function El(e,t,n={}){var g,b,x,T,k,A,D,C;if(so())return(g=n.onUpdate)==null||g.call(n,t),(b=n.onComplete)==null||b.call(n),Xi();let r=(x=n.stiffness)!=null?x:170,o=(T=n.damping)!=null?T:26,i=(k=n.mass)!=null?k:1,s=Math.abs(t-e)||1,a=(A=n.restDelta)!=null?A:s*.001,l=(D=n.restSpeed)!=null?D:s*.01,c=e,d=(C=n.velocity)!=null?C:0,u=!0,p=-1,f=0,m,h=new Promise(oe=>{m=oe});function v(oe){var S,B,je,qe;if(!u)return;if(p<0){p=oe,(S=n.onUpdate)==null||S.call(n,c);return}let N=Math.min(64,Math.max(0,oe-p));p=oe,f+=N;let pe=Math.max(1,Math.round(N)),ie=N/pe/1e3;for(let Jt=0;Jt<pe;Jt++){let Ln=(-r*(c-t)-o*d)/i;d+=Ln*ie,c+=d*ie}if(Math.abs(t-c)<a&&Math.abs(d)<l||f>Mf){u=!1,Ki(v),c=t,(B=n.onUpdate)==null||B.call(n,t),m(),(je=n.onComplete)==null||je.call(n);return}(qe=n.onUpdate)==null||qe.call(n,c)}return Lf(v),{finished:h,stop(){u&&(u=!1,Ki(v),m())}}}function Hf(e,t,n,r){return r==="last"?(t-1-e)*n:r==="center"?Math.abs(e-(t-1)/2)*n:e*n}function kl(e,t,n={}){var l,c,d;let r=wl(e);if(r.length===0)return Xi();let o=(l=n.delay)!=null?l:60,i=(c=n.start)!=null?c:0,s=(d=n.from)!=null?d:"first",a=r.map((u,p)=>gl(u,t,{...n,delay:i+Hf(p,r.length,o,s)}));return{finished:Promise.all(a.map(u=>u.finished)).then(()=>{}),stop(){for(let u of a)u.stop()}}}function Yg(e){return e==="all"?.99:e==="any"?0:typeof e=="number"?Math.max(0,Math.min(1,e)):.25}function Gi(e,t,n={}){var s,a,l;let r=(s=n.once)!=null?s:!0,o;if(typeof IntersectionObserver=="undefined")return o=t({target:e,isIntersecting:!0,intersectionRatio:1}),()=>{typeof o=="function"&&o()};let i=new IntersectionObserver(c=>{for(let d of c)d.isIntersecting?(o=t(d),r&&i.disconnect()):typeof o=="function"&&(o(),o=void 0)},{root:(a=n.root)!=null?a:null,rootMargin:(l=n.margin)!=null?l:"0px",threshold:Yg(n.amount)});return i.observe(e),()=>{i.disconnect(),typeof o=="function"&&o()}}function Tl(e,t){let n=!1,r=!1;if(typeof window=="undefined")return t(0),()=>{n=!0};let o=()=>{if(r=!1,n)return;let s=e.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight||1,l=a+s.height||1,c=(a-s.top)/l;t(Math.max(0,Math.min(1,c)))},i=()=>{r||n||(r=!0,requestAnimationFrame(o))};return window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),o(),()=>{n=!0,window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}}var Xg={opacity:[0,1],duration:420,easing:"easeOut"},Gg={opacity:[0,1],y:[24,0],duration:520,easing:"easeOutExpo"},Qg={opacity:[0,1],y:[-24,0],duration:520,easing:"easeOutExpo"},Jg={opacity:[0,1],scale:[.92,1],duration:460,easing:"easeOutBack"},Zg={opacity:[0,1],x:[36,0],duration:500,easing:"easeOutExpo"},eb={opacity:[0,1],x:[-36,0],duration:500,easing:"easeOutExpo"},tb={opacity:[0,1],scale:[.6,1],spring:{stiffness:420,damping:18}},nb={opacity:[0,1],blur:[10,0],duration:560,easing:"easeOut"},rb={opacity:[0,1],rotateX:[-80,0],duration:620,easing:"easeOutBack"},hn={fadeIn:Xg,fadeUp:Gg,fadeDown:Qg,scaleIn:Jg,slideLeft:Zg,slideRight:eb,pop:tb,blurIn:nb,flip:rb},ob=new Set(["duration","delay","easing","spring","repeat","repeatType","force","from","start","onUpdate","onComplete"]);function Qi(e){let t={},n={};for(let[r,o]of Object.entries(e))o!=null&&(ob.has(r)?n[r]=o:t[r]=o);return{keyframes:t,options:n}}function Pf(e){let t=e.trim();return t?/^['"`]/.test(t)||/^[[{(]/.test(t)?!0:/^[$A-Za-z_][\w$]*(?:\.[$A-Za-z_][\w$]*|\[[^\]]*\])*$/.test(t):!1}function lo(e,t){let n=e.trim();if(!n)return null;if(hn[n])return hn[n];if(!Pf(n))return null;let r=t();return typeof r=="string"&&hn[r]?hn[r]:r&&typeof r=="object"?r:null}function gt(e,t){var n;return(n=e.getAttribute(`${w.prefix}${t}`))!=null?n:e.getAttribute(`data-v-${t}`)}function Ef(e,t){return e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}var Nf=new WeakMap;function Of(e){let t=gt(e,"motion-stagger-from");return t==="last"||t==="center"?t:"first"}function ib(e){return Ef(e,"motion")||Ef(e,"motion-scroll")}function Ff(e){let t=e.parentElement;if(!t)return 0;let n=Nf.get(t);if(!n){let i=gt(t,"motion-stagger");if(i===null)return 0;n={step:G(i,60),from:Of(t)}}let r=Array.from(t.children).filter(ib),o=r.indexOf(e);return o<0?0:Hf(o,r.length,n.step,n.from)}y("motion",({el:e,expression:t,evaluate:n,cleanup:r})=>{var c;let o=lo(t,n);if(!o){Y(`v-motion did not recognize the variant "${t}".`);return}let{keyframes:i,options:s}=Qi(o),a=Ff(e);a>0&&(s.delay=((c=s.delay)!=null?c:0)+a);let l=Rt(e,i,s);r(()=>l.stop())});y("motion-scroll",({el:e,expression:t,evaluate:n,modifiers:r,cleanup:o})=>{var m,h;let i=lo(t,n);if(!i){Y(`v-motion-scroll did not recognize the variant "${t}".`);return}let{keyframes:s,options:a}=Qi(i),l=Ff(e);l>0&&(a.delay=((m=a.delay)!=null?m:0)+l);let c=!r.repeat,d=gt(e,"motion-scroll-amount"),u=d===null?.25:parseFloat(d)||0;so()||wf(e,s);let p=null,f=Gi(e,()=>{if(p==null||p.stop(),p=Rt(e,s,a),!c)return()=>{p==null||p.stop(),so()||wf(e,s)}},{once:c,amount:u,margin:(h=gt(e,"motion-scroll-margin"))!=null?h:"0px"});o(()=>{f(),p==null||p.stop()})});y("motion-stagger",({el:e,expression:t,evaluate:n})=>{let r=n(),o=typeof r=="number"&&Number.isFinite(r)?r:G(t,60);Nf.set(e,{step:o,from:Of(e)})},{priority:j.BIND});function If(e,t,n,r,o,i){let{keyframes:s,options:a}=Qi(t),l={...o,...a},c=null,d=null,u=m=>{d==null||d.stop(),d=Rt(e,m,l)},p=()=>{c||(c=Kg(e,s)),u(s)},f=()=>{c&&u(c)};for(let m of n)e.addEventListener(m,p);for(let m of r)e.addEventListener(m,f);i(()=>{for(let m of n)e.removeEventListener(m,p);for(let m of r)e.removeEventListener(m,f);d==null||d.stop()})}y("motion-hover",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=lo(t,n);if(!o){Y(`v-motion-hover did not recognize the variant "${t}".`);return}If(e,o,["mouseenter","focusin"],["mouseleave","focusout"],{duration:220,easing:"easeOut"},r)});y("motion-tap",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=lo(t,n);if(!o){Y(`v-motion-tap did not recognize the variant "${t}".`);return}If(e,o,["pointerdown"],["pointerup","pointercancel","pointerleave","blur"],{duration:140,easing:"easeOut"},r)});y("parallax",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(so()||typeof window=="undefined")return;let o=n(),i=typeof o=="number"&&Number.isFinite(o)?o:parseFloat(t)||.3;e.style.willChange="transform";let s=!1,a=()=>{s=!1;let c=e.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight||1,u=c.top+c.height/2;Yi(e).parallax=(d/2-u)*i,hl(e)},l=()=>{s||(s=!0,requestAnimationFrame(a))};window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),a(),r(()=>{window.removeEventListener("scroll",l),window.removeEventListener("resize",l),Yi(e).parallax=0,hl(e),e.style.removeProperty("will-change")})});var _i=new Map,pl=null,bl=!1;function kf(){bl||typeof requestAnimationFrame!="function"||(bl=!0,requestAnimationFrame(sb))}function sb(){var e;bl=!1;for(let t of _i.values()){if(!t.el.isConnected||t.animating)continue;let n=t.el.getBoundingClientRect(),r=t.rect;t.rect=n;let o=r.left-n.left,i=r.top-n.top,s=n.width>0?r.width/n.width:1,a=n.height>0?r.height/n.height:1,l=Math.abs(o)>=1||Math.abs(i)>=1,c=Math.abs(s-1)>=.01||Math.abs(a-1)>=.01;!l&&!c||(t.animating=!0,(e=t.control)==null||e.stop(),t.control=Rt(t.el,{x:[o,0],y:[i,0],scaleX:[s,1],scaleY:[a,1]},t.options),t.control.finished.then(()=>{t.animating=!1,t.el.isConnected&&(t.rect=t.el.getBoundingClientRect())}))}}function ab(){var t;if(pl||typeof MutationObserver=="undefined")return;let e=(t=w.root)!=null?t:document.body;e&&(pl=new MutationObserver(kf),pl.observe(e,{childList:!0,subtree:!0}),window.addEventListener("resize",kf))}y("flip",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(typeof document=="undefined")return;let o=lo(t,n),i=o?Qi(o).options:{};i.duration===void 0&&i.spring===void 0&&(i.spring={stiffness:340,damping:34}),ab(),_i.set(e,{el:e,rect:e.getBoundingClientRect(),options:i,control:null,animating:!1}),r(()=>{var s,a;(a=(s=_i.get(e))==null?void 0:s.control)==null||a.stop(),_i.delete(e)})});function lb(e,t){let n={minimumFractionDigits:t,maximumFractionDigits:t};e==="currency"&&(n.style="currency",n.currency=w.currency);let r=new Intl.NumberFormat(w.locale,n);return e==="percent"?o=>`${r.format(o)}%`:o=>r.format(o)}y("count",({el:e,evaluate:t,effect:n,cleanup:r})=>{var p,f,m,h,v;let o=G((p=gt(e,"count-duration"))!=null?p:void 0,1400),i=Math.max(0,Math.min(6,parseInt((f=gt(e,"count-decimals"))!=null?f:"0",10)||0)),s=(m=gt(e,"count-format"))!=null?m:"number",a=(h=gt(e,"count-prefix"))!=null?h:"",l=(v=gt(e,"count-suffix"))!=null?v:"",c=lb(s,i),d=0,u=null;n(()=>{let g=Number(t()),b=Number.isFinite(g)?g:0,x=d;u==null||u.stop(),u=Rt(e,{},{duration:o,easing:"easeOutExpo",onUpdate(T){d=x+(b-x)*T,e.textContent=`${a}${c(d)}${l}`}})}),r(()=>u==null?void 0:u.stop())});y("typewriter",({el:e,expression:t,evaluate:n,effect:r,cleanup:o})=>{var l;let i=G((l=gt(e,"typewriter-speed"))!=null?l:void 0,45),s=Pf(t),a=null;r(()=>{var u;let c=s?String((u=n())!=null?u:""):t;if(a==null||a.stop(),e.textContent="",!c)return;let d=-1;a=Rt(e,{},{duration:Math.max(1,c.length*i),easing:"linear",onUpdate(p){let f=Math.round(p*c.length);f!==d&&(d=f,e.textContent=c.slice(0,f))}})}),o(()=>a==null?void 0:a.stop())});He();le();function cb(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:me.reducedMotion}var co=["#6D3BF5","#FF3D8B","#2ED9A5","#FFB35C","#9B7BFF","#FF4D4D","#14111F","#3BB6F5"],db=`
|
|
315
|
+
`;function oo(){he(),ne("forms-ajax",Rg)}function _t(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function ji(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=q(i.trim(),t,`${w.prefix}submit`);return s==null?o:String(s)}));let r=w.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function cl(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 dl(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>dl(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))dl(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function $g(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function uf(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var sl=new WeakMap;function ff(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=sl.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}sl.has(e)||sl.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function zi(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(Bi(n,"disable-loading"))for(let a of $g(r))a.disabled=t;let s=Se(n,"loading");if(s){let a=uf(s);a&&ff(a,t)}}function qi(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=q(o,i,`${w.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function Dg(e,t){let n=Se(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){Y(`${w.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=Ve(r);switch(o){case"inner":case"innerhtml":for(let l of Array.from(r.children))X(l);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":X(r),r.replaceWith(...s);break;default:Y(`Unknown mode in ${w.prefix}swap: ${o}`);return}for(let l of s)l.nodeType===1&&se(l,a)}function pf(e,t,n){var l;let{state:r,form:o,host:i}=e;r.success=!0,r.errors={},r.data=t,r.status=n,r.dirty=!1,r.message=cl(t),Dg(e,t),Bi(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),no(o));let s=Se(i,"toast-success");s!==null&&tt.success(s||r.message||"All set!"),qi(e,"on-success",t,{status:n}),_t(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=Se(i,"redirect");if(a!==null&&typeof window!="undefined"){let c=t&&typeof t=="object"?(l=t.redirect)!=null?l:t.url:null,d=e.scope.child({$data:t,$form:r}),u=a?ji(a,d):String(c!=null?c:"");u&&window.location.assign(u)}}function ul(e,t){var c,d;let{state:n,form:r,host:o}=e,i=t instanceof Ee?t:new Ee(t instanceof Error?t.message:String(t)),s=(d=(c=i.response)==null?void 0:c.data)!=null?d:null;n.success=!1,n.data=s,n.status=i.status,n.message=cl(s)||i.message;let a=tl(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Ni(r,s),nl(r));let l=Se(o,"toast-error");l!==null&&tt.error(l||cl(s)||"Could not submit the form."),qi(e,"on-error",s,i),_t(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function mf(e,t){qi(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),_t(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function Hg(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(lf(r)){no(r);let p=await il(r);if(o.errors=p.errors,!p.valid){nl(r),_t(r,"voodoo:invalid",{errors:p.errors,form:r,state:o});return}}let a=(Se(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),l=ji(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),c=or(r,{formData:Bi(n,"form-data")}),d=a==="GET"||a==="HEAD";zi(e,!0),o.success=!1,o.progress=0,_t(r,"voodoo:submit",{url:l,method:a,form:r,state:o});let u=!1;try{let p=await zt({url:l,method:a,body:d?void 0:c,params:d&&!(c instanceof FormData)?dl(c):void 0});u=!0,pf(e,p.data,p.status)}catch(p){ul(e,p)}finally{zi(e,!1),mf(e,u)}}y("submit",({el:e,scope:t,expression:n,cleanup:r})=>{oo();let o=e,i=ro(o),s=t.child({$form:i},o);ll.set(s,i),ll.set(t,i),Ot(o,s);for(let d of Array.from(o.childNodes))d.nodeType===1&&Ot(d,s);let a={host:o,form:o,scope:s,state:i},l=d=>{d.preventDefault(),Hg(a,n)},c=d=>{var f;let u=d.detail;if(!u||!u.field)return;let p={...i.errors};u.valid?delete p[u.field]:p[u.field]=(f=u.message)!=null?f:"",i.errors=p};o.addEventListener("submit",l),o.addEventListener("voodoo:field-validated",c),r(()=>{ir.delete(o),o.removeEventListener("submit",l),o.removeEventListener("voodoo:field-validated",c)})},{priority:j.DATA-1});function Pg(e){let t=Se(e,"progress");if(t){let o=document.querySelector(t);return o||(Y(`${w.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;oo();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 Ii(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 Ng(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=or(s,{formData:!0});if(a instanceof FormData)for(let[l,c]of a.entries())c instanceof File||r.append(l,c)}return r}async function vf(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=ji(t,e.scope);if(!a){Y(`${w.prefix}upload needs a destination URL.`);return}let l=Pg(s),c=Ng(s,n,r);zi(e,!0),o.success=!1,o.progress=0,Ii(l,0,"loading"),_t(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let d=!1;try{let u=(Se(s,"method")||"POST").trim().toUpperCase(),p=await ve.upload(a,c,{method:u==="PUT"||u==="PATCH"?u:"POST",onProgress:f=>{o.progress=f,Ii(l,f,"loading"),_t(i,"voodoo:progress",{percent:f,form:i,state:o})}});d=!0,o.progress=100,Ii(l,100,"done"),pf(e,p,200)}catch(u){Ii(l,o.progress,"error"),ul(e,u)}finally{zi(e,!1),mf(e,d)}}y("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var c;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){Y(`${w.prefix}upload needs an <input type="file">.`);return}oo();let i=(c=o.closest("form"))!=null?c:o,s=ro(i),a={host:o,form:i,scope:t,state:s},l=()=>{var u;let d=Array.from((u=o.files)!=null?u:[]);d.length&&vf(a,n,d,o.name||"file")};o.addEventListener("change",l),r(()=>o.removeEventListener("change",l))});y("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var b,x,T;oo(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(b=e.textContent)!=null&&b.trim()||(e.textContent="Drag files here or click to choose");let o=(x=e.closest("form"))!=null?x:e,i=ro(o),s={host:e,form:o,scope:t,state:i},a=Se(e,"field")||"file",l=document.createElement("input");l.type="file",l.hidden=!0,l.tabIndex=-1,e.hasAttribute("accept")&&(l.accept=(T=e.getAttribute("accept"))!=null?T:""),e.hasAttribute("multiple")&&(l.multiple=!0),e.appendChild(l);let c=k=>{k.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),vf(s,n,k,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},d=0,u=k=>{k.preventDefault(),d++,e.classList.add("v-dropzone-over")},p=k=>{k.preventDefault(),k.dataTransfer&&(k.dataTransfer.dropEffect="copy")},f=()=>{d=Math.max(0,d-1),d===0&&e.classList.remove("v-dropzone-over")},m=k=>{var D,C;k.preventDefault(),d=0,e.classList.remove("v-dropzone-over");let A=Array.from((C=(D=k.dataTransfer)==null?void 0:D.files)!=null?C:[]);c(l.multiple?A:A.slice(0,1))},h=k=>{k.target!==l&&l.click()},v=k=>{k.key!=="Enter"&&k.key!==" "||(k.preventDefault(),l.click())},g=()=>{var A;let k=Array.from((A=l.files)!=null?A:[]);c(k),l.value=""};e.addEventListener("dragenter",u),e.addEventListener("dragover",p),e.addEventListener("dragleave",f),e.addEventListener("drop",m),e.addEventListener("click",h),e.addEventListener("keydown",v),l.addEventListener("change",g),r(()=>{e.removeEventListener("dragenter",u),e.removeEventListener("dragover",p),e.removeEventListener("dragleave",f),e.removeEventListener("drop",m),e.removeEventListener("click",h),e.removeEventListener("keydown",v),l.removeEventListener("change",g),l.remove()})});var Og={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function Fg(e){let t=Se(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;Y(`${w.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 al(e,t){e.setAttribute("data-state",t),e.textContent=Og[t]}y("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,h,v;oo();let i=e,s=ro(i),a={host:i,form:i,scope:t,state:s},l=Fg(i),c=(v=(h=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(g=>/^[\d.]+(ms|s|m)?$/.test(g)))!=null?h:Se(i,"autosave-delay"))!=null?v:1e3,d=G(c,1e3),u=async()=>{let g=ji(n,t);if(!g){Y(`${w.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,al(l,"saving");let b=(Se(i,"method")||"POST").trim().toUpperCase();try{let x=await zt({url:g,method:b,body:or(i,{formData:Bi(i,"form-data")})});s.data=x.data,s.status=x.status,s.dirty=!1,s.success=!0,al(l,"saved"),qi(a,"on-success",x.data,{status:x.status}),_t(i,"voodoo:autosave",{data:x.data,status:x.status,form:i,state:s})}catch(x){al(l,"error"),ul(a,x)}finally{s.saving=!1}},p=Ue(()=>{u()},d),f=()=>{s.dirty=!0,p()};i.addEventListener("input",f),i.addEventListener("change",f),o(()=>{p.cancel(),i.removeEventListener("input",f),i.removeEventListener("change",f)})});y("guard",({el:e,expression:t,cleanup:n})=>{var c;let r=(c=e.tagName==="FORM"?e:e.closest("form"))!=null?c:e,o=ro(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},l=d=>{!o.dirty||o.loading||(d.preventDefault(),d.returnValue=i)};r.addEventListener("input",s),r.addEventListener("change",s),r.addEventListener("reset",a),r.addEventListener("voodoo:success",a),window.addEventListener("beforeunload",l),n(()=>{r.removeEventListener("input",s),r.removeEventListener("change",s),r.removeEventListener("reset",a),r.removeEventListener("voodoo:success",a),window.removeEventListener("beforeunload",l)})});be();le();function io(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=Le(r)}catch(o){}return t}function hf(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(">")}`}y("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:hf(e,"voodoo:persist"),i=ue.get(o);if(i&&typeof i=="object")for(let[l,c]of Object.entries(i))l in t.data&&(t.data[l]=c);let s=Ue(()=>{ue.set(o,io(t.data))},120),a=Oe(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:j.DATA-1});y("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||hf(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,l=Ue(()=>{if(!a)try{i.postMessage({from:s,state:io(t.data)})}catch(d){K(d,"v-sync")}},60);i.addEventListener("message",d=>{let u=d.data;if(!(!u||u.from===s)){a=!0;for(let[p,f]of Object.entries(u.state))p in t.data&&t.data[p]!==f&&(t.data[p]=f);queueMicrotask(()=>{a=!1})}});let c=Oe(t.data,()=>l(),{deep:!0});r(()=>{c(),i.close()})},{priority:j.DATA-1});var fl=new WeakMap;function pl(e){let t=e;for(;t;){let n=fl.get(t);if(n)return n;t=t.parentElement}return null}y("history",({el:e,scope:t,expression:n,cleanup:r})=>{var f;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(io(t.data)))],s=0,a=!1,l=Z({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,d())},redo(){s>=i.length-1||(s++,d())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(io(t.data)))),s=0,c()}});function c(){l.canUndo=s>0,l.canRedo=s<i.length-1,l.size=i.length}function d(){a=!0;let m=i[s];for(let[h,v]of Object.entries(m))t.data[h]=JSON.parse(JSON.stringify(v));c(),queueMicrotask(()=>{a=!1})}let u=Ue(()=>{if(a)return;let m=JSON.stringify(io(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,c())},G((f=e.getAttribute("v-history-debounce"))!=null?f:void 0,300)),p=Oe(t.data,()=>u(),{deep:!0});fl.set(e,l),t.set("$history",l),r(()=>{p(),u.cancel(),fl.delete(e)})},{priority:j.DATA-1});y("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=pl(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});y("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=pl(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});y("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=ue.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{ue.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});P("$history",e=>e.el?pl(e.el):null);le();var ar=null,Kt=.35,Ct=!1,gf=!1,ml="voodoo:sound:volume",xf="voodoo:sound:muted";function vn(){if(gf)return;gf=!0;let e=ue.get(ml);typeof e=="number"&&e>=0&&e<=1&&(Kt=e);let t=ue.get(xf);typeof t=="boolean"&&(Ct=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&ue.get(ml)===void 0&&(Kt=.18)}function bf(){var t;if(typeof window=="undefined")return null;if(ar)return ar.state==="suspended"&&ar.resume(),ar;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return ar=new e,ar}catch(n){return null}}function yf(e,t,n){var c,d,u,p;let r=e.currentTime+((c=t.atraso)!=null?c:0),o=r+t.duracao,i=e.createOscillator();i.type=(d=t.forma)!=null?d:"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=Kt*n*((u=t.volume)!=null?u:1),l=(p=t.ataque)!=null?p:.008;s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(Math.max(1e-4,a),r+l),s.gain.exponentialRampToValueAtTime(1e-4,o),i.connect(s),s.connect(e.destination),i.start(r),i.stop(o+.02)}var Vi={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"}]}},Ig={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 Ui(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=Ig[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var Wi=new Map;function zg(e,t){let n=Wi.get(e);n||(n=new Audio(e),n.preload="auto",Wi.set(e,n)),n.volume=Math.max(0,Math.min(1,Kt*t)),n.currentTime=0,n.play().catch(()=>{})}function wf(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var Yt={play(e,t={}){var l,c,d;if(vn(),Ct||!e)return;let n=String(e).trim(),r=(l=t.volume)!=null?l:1;if(wf(n)){zg(n,r);return}let o=Vi[n];if(!o){let u=Ui(n);u!==null&&this.tone(u,200,{volume:r});return}let i=bf();if(!i)return;let s=(c=t.tom)!=null?c:1,a=((d=o.volume)!=null?d:1)*r;for(let u of o.camadas)yf(i,s===1?u:{...u,frequencia:u.frequencia*s,ate:u.ate===void 0?void 0:u.ate*s},a)},tone(e,t=200,n={}){var o,i;if(vn(),Ct)return;let r=bf();r&&yf(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=Ui(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){vn(),!Ct&&e.forEach((r,o)=>{let i=typeof r=="number"?r:Ui(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return vn(),e===void 0||(Kt=Math.max(0,Math.min(1,e)),ue.set(ml,Kt)),Kt},mute(e=!0){vn(),Ct=e,ue.set(xf,Ct)},unmute(){this.mute(!1)},toggle(){return vn(),this.mute(!Ct),Ct},get muted(){return vn(),Ct},get names(){return Object.keys(Vi)},define(e,t){Vi[e]=t},preload(...e){for(let t of e){if(Wi.has(t))continue;let n=new Audio(t);n.preload="auto",Wi.set(t,n)}}};y("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",l=()=>{let u=n.trim();if(!u)return"click";if(Vi[u]||wf(u)||Ui(u)!==null)return u;let p=s();return typeof p=="string"?p:u},c=r.volume!==void 0?Number(r.volume):void 0,d=()=>{Yt.play(l(),c===void 0?{}:{volume:c})};e.addEventListener(a,d),i(()=>e.removeEventListener(a,d))});y("mute",({el:e,cleanup:t})=>{let n=()=>{let o=Yt.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o)},r=()=>{Yt.toggle(),n(),Yt.muted||Yt.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});P("$sound",()=>Yt);be();le();function so(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:me.reducedMotion}var cr=new Set,gn=0;function Sf(e){gn=0;let t=Array.from(cr);for(let n of t)cr.has(n)&&n(e);cr.size>0&&(gn=requestAnimationFrame(Sf))}function Af(e){typeof requestAnimationFrame=="function"&&(cr.add(e),gn||(gn=requestAnimationFrame(Sf)))}function Yi(e){cr.delete(e),cr.size===0&&gn&&(cancelAnimationFrame(gn),gn=0)}var Cf=12e3;function Bg(e){return e*e*(2.70158*e-1.70158)}var ao={linear(e){return e},easeIn(e){return e*e*e},easeOut(e){return 1-Math.pow(1-e,3)},easeInOut(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},easeOutBack(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)},easeOutExpo(e){return e>=1?1:1-Math.pow(2,-10*e)},anticipate(e){let t=e*2;return t<1?.5*Bg(t):.5*(2-Math.pow(2,-10*(t-1)))},bounce(e){let r=e;return r<1/2.75?7.5625*r*r:r<2/2.75?(r-=1.5/2.75,7.5625*r*r+.75):r<2.5/2.75?(r-=2.25/2.75,7.5625*r*r+.9375):(r-=2.625/2.75,7.5625*r*r+.984375)}};function jg(e){if(typeof e=="function")return e;if(typeof e=="string"){let t=ao[e];if(t)return t}return ao.easeOut}var El={x:0,y:0,z:0,parallax:0,rotate:0,rotateX:0,rotateY:0,skewX:0,skewY:0,scale:1,scaleX:1,scaleY:1},qg={x:"px",y:"px",z:"px",parallax:"px",rotate:"deg",rotateX:"deg",rotateY:"deg",skewX:"deg",skewY:"deg",scale:"",scaleX:"",scaleY:""},Rf={translateX:"x",translateY:"y",translateZ:"z",rotateZ:"rotate"},kl={blur:0,brightness:1,saturate:1,grayscale:0,contrast:1},Vg={blur:"px",brightness:"",saturate:"",grayscale:"",contrast:""},Ug=new Set(["opacity","z-index","font-weight","line-height","flex-grow","flex-shrink","order","zoom","fill-opacity","stroke-opacity","stroke-width","stroke-dashoffset","stroke-dasharray"]),gl=new WeakMap,bl=new WeakMap;function Xi(e){let t=gl.get(e);return t||(t={...El},gl.set(e,t)),t}function $f(e){let t=bl.get(e);return t||(t={...kl},bl.set(e,t)),t}function Ae(e){return Math.round(e*1e3)/1e3}function yl(e){let t=gl.get(e);if(!t)return;let n=[],r=t.y+t.parallax;(t.x||r||t.z)&&n.push(`translate3d(${Ae(t.x)}px, ${Ae(r)}px, ${Ae(t.z)}px)`),t.rotateX&&n.push(`rotateX(${Ae(t.rotateX)}deg)`),t.rotateY&&n.push(`rotateY(${Ae(t.rotateY)}deg)`),t.rotate&&n.push(`rotate(${Ae(t.rotate)}deg)`),(t.skewX||t.skewY)&&n.push(`skew(${Ae(t.skewX)}deg, ${Ae(t.skewY)}deg)`);let o=t.scale*t.scaleX,i=t.scale*t.scaleY;(o!==1||i!==1)&&n.push(`scale(${Ae(o)}, ${Ae(i)})`),n.length>0?e.style.transform=n.join(" "):e.style.removeProperty("transform")}function Wg(e){let t=bl.get(e);if(!t)return;let n=[];t.blur&&n.push(`blur(${Ae(t.blur)}px)`),t.brightness!==1&&n.push(`brightness(${Ae(t.brightness)})`),t.saturate!==1&&n.push(`saturate(${Ae(t.saturate)})`),t.grayscale&&n.push(`grayscale(${Ae(t.grayscale)})`),t.contrast!==1&&n.push(`contrast(${Ae(t.contrast)})`),n.length>0?e.style.filter=n.join(" "):e.style.removeProperty("filter")}var _g=/^([+-]?(?:\d+\.?\d*|\.\d+))([a-z%]*)$/i,Df=/^#([0-9a-f]{3,8})$/i;function _i(e){if(typeof e!="string")return!1;let t=e.trim().toLowerCase();return t==="transparent"||Df.test(t)||t.startsWith("rgb")||t.startsWith("hsl")}function Kg(e,t,n){let r=(e%360+360)%360,o=(1-Math.abs(2*n-1))*t,i=o*(1-Math.abs(r/60%2-1)),s=n-o/2,a;return r<60?a=[o,i,0]:r<120?a=[i,o,0]:r<180?a=[0,o,i]:r<240?a=[0,i,o]:r<300?a=[i,0,o]:a=[o,0,i],[Math.round((a[0]+s)*255),Math.round((a[1]+s)*255),Math.round((a[2]+s)*255)]}function Ef(e){var i,s;let t=e.trim().toLowerCase();if(t==="transparent")return[0,0,0,0];let n=Df.exec(t);if(n){let a=n[1];(a.length===3||a.length===4)&&(a=a.split("").map(d=>d+d).join(""));let l=parseInt(a.slice(0,6),16),c=a.length===8?parseInt(a.slice(6,8),16)/255:1;return[l>>16&255,l>>8&255,l&255,c]}let r=(i=t.match(/-?(?:\d+\.?\d*|\.\d+)%?/g))!=null?i:[],o=(a,l)=>{var u;let c=(u=r[a])!=null?u:"0",d=parseFloat(c);return c.endsWith("%")?d/100*l:d};if(t.startsWith("hsl")){let a=c=>{var p;let d=(p=r[c])!=null?p:"0",u=parseFloat(d);return d.endsWith("%")||u>1?u/100:u},l=Kg(parseFloat((s=r[0])!=null?s:"0"),a(1),a(2));return[l[0],l[1],l[2],r.length>3?o(3,1):1]}return[o(0,255),o(1,255),o(2,255),r.length>3?o(3,1):1]}function Yg(e){let t=Math.max(0,Math.min(1,e[3]));return`rgba(${Math.round(e[0])}, ${Math.round(e[1])}, ${Math.round(e[2])}, ${Ae(t)})`}function Hf(e){return e.startsWith("--")?e:e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Pf(e,t,n,r){if(t==="transform")return Xi(e)[n];if(t==="filter")return $f(e)[n];if(typeof getComputedStyle!="function")return e.style.getPropertyValue(r).trim();let o=getComputedStyle(e).getPropertyValue(r);return o?o.trim():""}function Xg(e,t,n){var u;let r=(u=Rf[t])!=null?u:t,o=r in El?"transform":r in kl?"filter":"style",i=o==="style"?Hf(r):r,s=o==="transform"?qg[r]:o==="filter"?Vg[r]:Ug.has(i)?"":"px",a=Array.isArray(n)?[n[0],n[1]]:[Pf(e,o,r,i),n],l={kind:o,prop:r,cssName:i,mode:"number",unit:s,from:0,to:0,fromColor:[0,0,0,1],toColor:[0,0,0,1],fromText:String(a[0]),toText:String(a[1])};if(_i(a[0])||_i(a[1]))return o!=="style"?null:(l.mode="color",l.fromColor=_i(a[0])?Ef(String(a[0])):[0,0,0,0],l.toColor=_i(a[1])?Ef(String(a[1])):[0,0,0,0],l);let c=kf(a[0],s),d=kf(a[1],s);return!c||!d?o!=="style"?null:(l.mode="discrete",l):(l.from=c.value,l.to=d.value,l.unit=d.unit||c.unit||s,l)}function kf(e,t){if(typeof e=="number")return Number.isFinite(e)?{value:e,unit:t}:null;let n=_g.exec(e.trim());return n?{value:parseFloat(n[1]),unit:n[2]||t}:null}function lr(e,t,n){let r=!1,o=!1;for(let i of t){if(i.kind==="transform"){Xi(e)[i.prop]=i.from+(i.to-i.from)*n,r=!0;continue}if(i.kind==="filter"){$f(e)[i.prop]=i.from+(i.to-i.from)*n,o=!0;continue}if(i.mode==="color"){let a=[i.fromColor[0]+(i.toColor[0]-i.fromColor[0])*n,i.fromColor[1]+(i.toColor[1]-i.fromColor[1])*n,i.fromColor[2]+(i.toColor[2]-i.fromColor[2])*n,i.fromColor[3]+(i.toColor[3]-i.fromColor[3])*n];e.style.setProperty(i.cssName,Yg(a));continue}if(i.mode==="discrete"){e.style.setProperty(i.cssName,n>=1?i.toText:i.fromText);continue}let s=i.from+(i.to-i.from)*n;e.style.setProperty(i.cssName,`${Ae(s)}${i.unit}`)}r&&yl(e),o&&Wg(e)}function Nf(e,t){let n=[];for(let[r,o]of Object.entries(t)){if(o==null)continue;let i=Xg(e,r,o);i&&n.push(i)}return n}function Tf(e,t){for(let n of Tl(e))lr(n,Nf(n,t),0)}function Gg(e,t){var r;let n={};for(let o of Object.keys(t)){let i=(r=Rf[o])!=null?r:o,s=i in El?"transform":i in kl?"filter":"style";n[o]=Pf(e,s,i,s==="style"?Hf(i):i)}return n}function vl(e){return typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof SVGElement!="undefined"&&e instanceof SVGElement}function Tl(e){if(!e)return[];if(typeof e=="string")return typeof document=="undefined"?[]:Array.from(document.querySelectorAll(e)).filter(vl);if(vl(e))return[e];let t=e;if(typeof t.length!="number")return[];let n=[];for(let r=0;r<t.length;r++){let o=t[r];vl(o)&&n.push(o)}return n}function Gi(e){return{finished:Promise.resolve(),stop(){e==null||e()}}}function xl(e,t,n){var x,T,k,A,D,C,oe;let r=Nf(e,t);if(so()&&!n.force)return lr(e,r,1),(x=n.onUpdate)==null||x.call(n,1),(T=n.onComplete)==null||T.call(n),Gi();let o=Math.max(0,(k=n.duration)!=null?k:400),i=Math.max(0,(A=n.delay)!=null?A:0),s=jg(n.easing),a=Math.max(0,Math.floor((D=n.repeat)!=null?D:0)),l=(C=n.repeatType)!=null?C:"loop",c=n.spring===!0?{}:n.spring?n.spring:null,d,u=new Promise(N=>{d=N}),p=!0,f=-1,m=-1,h=0,v=(oe=c==null?void 0:c.velocity)!=null?oe:0;function g(N){var Jt,Ln,dc,uc,fc,pc,mc;if(!p)return;f<0&&(f=N,m=N);let pe=N-f-i;if(pe<0)return;let ie=Math.min(64,Math.max(0,N-m));if(m=N,pe>Cf){b(1);return}if(c){let Kp=(Jt=c.stiffness)!=null?Jt:170,Yp=(Ln=c.damping)!=null?Ln:26,Xp=(dc=c.mass)!=null?dc:1,vc=Math.max(1,Math.round(ie)),hc=ie/vc/1e3;for(let gc=0;gc<vc;gc++){let Jp=(-Kp*(h-1)-Yp*v)/Xp;v+=Jp*hc,h+=v*hc}let Gp=(uc=c.restDelta)!=null?uc:.001,Qp=(fc=c.restSpeed)!=null?fc:.01;if(Math.abs(1-h)<Gp&&Math.abs(v)<Qp){b(1);return}lr(e,r,h),(pc=n.onUpdate)==null||pc.call(n,h);return}if(o===0){b(1);return}let R=a+1,S=Math.floor(pe/o),B=(pe-S*o)/o,je=!1;S>=R&&(S=R-1,B=1,je=!0);let qe;if(S%2===1&&l==="reverse"?qe=s(1-B):S%2===1&&l==="mirror"?qe=1-s(B):qe=s(B),je){b(qe);return}lr(e,r,qe),(mc=n.onUpdate)==null||mc.call(n,qe)}function b(N){var pe,ie;p&&(p=!1,Yi(g),lr(e,r,N),(pe=n.onUpdate)==null||pe.call(n,N),d(),(ie=n.onComplete)==null||ie.call(n))}return lr(e,r,c?h:s(0)),Af(g),{finished:u,stop(){p&&(p=!1,Yi(g),d())}}}function Rt(e,t,n={}){let r=Tl(e);if(r.length===0)return Gi();if(r.length===1)return xl(r[0],t,n);let o=r.map(i=>xl(i,t,n));return{finished:Promise.all(o.map(i=>i.finished)).then(()=>{}),stop(){for(let i of o)i.stop()}}}function Ll(e,t,n={}){var g,b,x,T,k,A,D,C;if(so())return(g=n.onUpdate)==null||g.call(n,t),(b=n.onComplete)==null||b.call(n),Gi();let r=(x=n.stiffness)!=null?x:170,o=(T=n.damping)!=null?T:26,i=(k=n.mass)!=null?k:1,s=Math.abs(t-e)||1,a=(A=n.restDelta)!=null?A:s*.001,l=(D=n.restSpeed)!=null?D:s*.01,c=e,d=(C=n.velocity)!=null?C:0,u=!0,p=-1,f=0,m,h=new Promise(oe=>{m=oe});function v(oe){var S,B,je,qe;if(!u)return;if(p<0){p=oe,(S=n.onUpdate)==null||S.call(n,c);return}let N=Math.min(64,Math.max(0,oe-p));p=oe,f+=N;let pe=Math.max(1,Math.round(N)),ie=N/pe/1e3;for(let Jt=0;Jt<pe;Jt++){let Ln=(-r*(c-t)-o*d)/i;d+=Ln*ie,c+=d*ie}if(Math.abs(t-c)<a&&Math.abs(d)<l||f>Cf){u=!1,Yi(v),c=t,(B=n.onUpdate)==null||B.call(n,t),m(),(je=n.onComplete)==null||je.call(n);return}(qe=n.onUpdate)==null||qe.call(n,c)}return Af(v),{finished:h,stop(){u&&(u=!1,Yi(v),m())}}}function Of(e,t,n,r){return r==="last"?(t-1-e)*n:r==="center"?Math.abs(e-(t-1)/2)*n:e*n}function Ml(e,t,n={}){var l,c,d;let r=Tl(e);if(r.length===0)return Gi();let o=(l=n.delay)!=null?l:60,i=(c=n.start)!=null?c:0,s=(d=n.from)!=null?d:"first",a=r.map((u,p)=>xl(u,t,{...n,delay:i+Of(p,r.length,o,s)}));return{finished:Promise.all(a.map(u=>u.finished)).then(()=>{}),stop(){for(let u of a)u.stop()}}}function Qg(e){return e==="all"?.99:e==="any"?0:typeof e=="number"?Math.max(0,Math.min(1,e)):.25}function Qi(e,t,n={}){var s,a,l;let r=(s=n.once)!=null?s:!0,o;if(typeof IntersectionObserver=="undefined")return o=t({target:e,isIntersecting:!0,intersectionRatio:1}),()=>{typeof o=="function"&&o()};let i=new IntersectionObserver(c=>{for(let d of c)d.isIntersecting?(o=t(d),r&&i.disconnect()):typeof o=="function"&&(o(),o=void 0)},{root:(a=n.root)!=null?a:null,rootMargin:(l=n.margin)!=null?l:"0px",threshold:Qg(n.amount)});return i.observe(e),()=>{i.disconnect(),typeof o=="function"&&o()}}function Sl(e,t){let n=!1,r=!1;if(typeof window=="undefined")return t(0),()=>{n=!0};let o=()=>{if(r=!1,n)return;let s=e.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight||1,l=a+s.height||1,c=(a-s.top)/l;t(Math.max(0,Math.min(1,c)))},i=()=>{r||n||(r=!0,requestAnimationFrame(o))};return window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),o(),()=>{n=!0,window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}}var Jg={opacity:[0,1],duration:420,easing:"easeOut"},Zg={opacity:[0,1],y:[24,0],duration:520,easing:"easeOutExpo"},eb={opacity:[0,1],y:[-24,0],duration:520,easing:"easeOutExpo"},tb={opacity:[0,1],scale:[.92,1],duration:460,easing:"easeOutBack"},nb={opacity:[0,1],x:[36,0],duration:500,easing:"easeOutExpo"},rb={opacity:[0,1],x:[-36,0],duration:500,easing:"easeOutExpo"},ob={opacity:[0,1],scale:[.6,1],spring:{stiffness:420,damping:18}},ib={opacity:[0,1],blur:[10,0],duration:560,easing:"easeOut"},sb={opacity:[0,1],rotateX:[-80,0],duration:620,easing:"easeOutBack"},hn={fadeIn:Jg,fadeUp:Zg,fadeDown:eb,scaleIn:tb,slideLeft:nb,slideRight:rb,pop:ob,blurIn:ib,flip:sb},ab=new Set(["duration","delay","easing","spring","repeat","repeatType","force","from","start","onUpdate","onComplete"]);function Ji(e){let t={},n={};for(let[r,o]of Object.entries(e))o!=null&&(ab.has(r)?n[r]=o:t[r]=o);return{keyframes:t,options:n}}function Ff(e){let t=e.trim();return t?/^['"`]/.test(t)||/^[[{(]/.test(t)?!0:/^[$A-Za-z_][\w$]*(?:\.[$A-Za-z_][\w$]*|\[[^\]]*\])*$/.test(t):!1}function lo(e,t){let n=e.trim();if(!n)return null;if(hn[n])return hn[n];if(!Ff(n))return null;let r=t();return typeof r=="string"&&hn[r]?hn[r]:r&&typeof r=="object"?r:null}function gt(e,t){var n;return(n=e.getAttribute(`${w.prefix}${t}`))!=null?n:e.getAttribute(`data-v-${t}`)}function Lf(e,t){return e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}var If=new WeakMap;function zf(e){let t=gt(e,"motion-stagger-from");return t==="last"||t==="center"?t:"first"}function lb(e){return Lf(e,"motion")||Lf(e,"motion-scroll")}function Bf(e){let t=e.parentElement;if(!t)return 0;let n=If.get(t);if(!n){let i=gt(t,"motion-stagger");if(i===null)return 0;n={step:G(i,60),from:zf(t)}}let r=Array.from(t.children).filter(lb),o=r.indexOf(e);return o<0?0:Of(o,r.length,n.step,n.from)}y("motion",({el:e,expression:t,evaluate:n,cleanup:r})=>{var c;let o=lo(t,n);if(!o){Y(`v-motion did not recognize the variant "${t}".`);return}let{keyframes:i,options:s}=Ji(o),a=Bf(e);a>0&&(s.delay=((c=s.delay)!=null?c:0)+a);let l=Rt(e,i,s);r(()=>l.stop())});y("motion-scroll",({el:e,expression:t,evaluate:n,modifiers:r,cleanup:o})=>{var m,h;let i=lo(t,n);if(!i){Y(`v-motion-scroll did not recognize the variant "${t}".`);return}let{keyframes:s,options:a}=Ji(i),l=Bf(e);l>0&&(a.delay=((m=a.delay)!=null?m:0)+l);let c=!r.repeat,d=gt(e,"motion-scroll-amount"),u=d===null?.25:parseFloat(d)||0;so()||Tf(e,s);let p=null,f=Qi(e,()=>{if(p==null||p.stop(),p=Rt(e,s,a),!c)return()=>{p==null||p.stop(),so()||Tf(e,s)}},{once:c,amount:u,margin:(h=gt(e,"motion-scroll-margin"))!=null?h:"0px"});o(()=>{f(),p==null||p.stop()})});y("motion-stagger",({el:e,expression:t,evaluate:n})=>{let r=n(),o=typeof r=="number"&&Number.isFinite(r)?r:G(t,60);If.set(e,{step:o,from:zf(e)})},{priority:j.BIND});function jf(e,t,n,r,o,i){let{keyframes:s,options:a}=Ji(t),l={...o,...a},c=null,d=null,u=m=>{d==null||d.stop(),d=Rt(e,m,l)},p=()=>{c||(c=Gg(e,s)),u(s)},f=()=>{c&&u(c)};for(let m of n)e.addEventListener(m,p);for(let m of r)e.addEventListener(m,f);i(()=>{for(let m of n)e.removeEventListener(m,p);for(let m of r)e.removeEventListener(m,f);d==null||d.stop()})}y("motion-hover",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=lo(t,n);if(!o){Y(`v-motion-hover did not recognize the variant "${t}".`);return}jf(e,o,["mouseenter","focusin"],["mouseleave","focusout"],{duration:220,easing:"easeOut"},r)});y("motion-tap",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=lo(t,n);if(!o){Y(`v-motion-tap did not recognize the variant "${t}".`);return}jf(e,o,["pointerdown"],["pointerup","pointercancel","pointerleave","blur"],{duration:140,easing:"easeOut"},r)});y("parallax",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(so()||typeof window=="undefined")return;let o=n(),i=typeof o=="number"&&Number.isFinite(o)?o:parseFloat(t)||.3;e.style.willChange="transform";let s=!1,a=()=>{s=!1;let c=e.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight||1,u=c.top+c.height/2;Xi(e).parallax=(d/2-u)*i,yl(e)},l=()=>{s||(s=!0,requestAnimationFrame(a))};window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),a(),r(()=>{window.removeEventListener("scroll",l),window.removeEventListener("resize",l),Xi(e).parallax=0,yl(e),e.style.removeProperty("will-change")})});var Ki=new Map,hl=null,wl=!1;function Mf(){wl||typeof requestAnimationFrame!="function"||(wl=!0,requestAnimationFrame(cb))}function cb(){var e;wl=!1;for(let t of Ki.values()){if(!t.el.isConnected||t.animating)continue;let n=t.el.getBoundingClientRect(),r=t.rect;t.rect=n;let o=r.left-n.left,i=r.top-n.top,s=n.width>0?r.width/n.width:1,a=n.height>0?r.height/n.height:1,l=Math.abs(o)>=1||Math.abs(i)>=1,c=Math.abs(s-1)>=.01||Math.abs(a-1)>=.01;!l&&!c||(t.animating=!0,(e=t.control)==null||e.stop(),t.control=Rt(t.el,{x:[o,0],y:[i,0],scaleX:[s,1],scaleY:[a,1]},t.options),t.control.finished.then(()=>{t.animating=!1,t.el.isConnected&&(t.rect=t.el.getBoundingClientRect())}))}}function db(){var t;if(hl||typeof MutationObserver=="undefined")return;let e=(t=w.root)!=null?t:document.body;e&&(hl=new MutationObserver(Mf),hl.observe(e,{childList:!0,subtree:!0}),window.addEventListener("resize",Mf))}y("flip",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(typeof document=="undefined")return;let o=lo(t,n),i=o?Ji(o).options:{};i.duration===void 0&&i.spring===void 0&&(i.spring={stiffness:340,damping:34}),db(),Ki.set(e,{el:e,rect:e.getBoundingClientRect(),options:i,control:null,animating:!1}),r(()=>{var s,a;(a=(s=Ki.get(e))==null?void 0:s.control)==null||a.stop(),Ki.delete(e)})});function ub(e,t){let n={minimumFractionDigits:t,maximumFractionDigits:t};e==="currency"&&(n.style="currency",n.currency=w.currency);let r=new Intl.NumberFormat(w.locale,n);return e==="percent"?o=>`${r.format(o)}%`:o=>r.format(o)}y("count",({el:e,evaluate:t,effect:n,cleanup:r})=>{var p,f,m,h,v;let o=G((p=gt(e,"count-duration"))!=null?p:void 0,1400),i=Math.max(0,Math.min(6,parseInt((f=gt(e,"count-decimals"))!=null?f:"0",10)||0)),s=(m=gt(e,"count-format"))!=null?m:"number",a=(h=gt(e,"count-prefix"))!=null?h:"",l=(v=gt(e,"count-suffix"))!=null?v:"",c=ub(s,i),d=0,u=null;n(()=>{let g=Number(t()),b=Number.isFinite(g)?g:0,x=d;u==null||u.stop(),u=Rt(e,{},{duration:o,easing:"easeOutExpo",onUpdate(T){d=x+(b-x)*T,e.textContent=`${a}${c(d)}${l}`}})}),r(()=>u==null?void 0:u.stop())});y("typewriter",({el:e,expression:t,evaluate:n,effect:r,cleanup:o})=>{var l;let i=G((l=gt(e,"typewriter-speed"))!=null?l:void 0,45),s=Ff(t),a=null;r(()=>{var u;let c=s?String((u=n())!=null?u:""):t;if(a==null||a.stop(),e.textContent="",!c)return;let d=-1;a=Rt(e,{},{duration:Math.max(1,c.length*i),easing:"linear",onUpdate(p){let f=Math.round(p*c.length);f!==d&&(d=f,e.textContent=c.slice(0,f))}})}),o(()=>a==null?void 0:a.stop())});He();le();function fb(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:me.reducedMotion}var co=["#6D3BF5","#FF3D8B","#2ED9A5","#FFB35C","#9B7BFF","#FF4D4D","#14111F","#3BB6F5"],pb=`
|
|
316
316
|
.v-chart{position:relative;display:block;width:100%;color:var(--v-text,#14111F);
|
|
317
317
|
font:500 12px/1.35 var(--v-font-sans,system-ui,-apple-system,'Segoe UI',sans-serif)}
|
|
318
318
|
.v-chart-svg{display:block;width:100%;overflow:visible;touch-action:pan-y}
|
|
@@ -365,13 +365,13 @@ form.v-loading [type="submit"],form.v-loading button[disabled]{opacity:.6}
|
|
|
365
365
|
@media (prefers-reduced-motion: reduce){
|
|
366
366
|
.v-chart *{transition:none !important}
|
|
367
367
|
}
|
|
368
|
-
`;function E(e){return Math.round(e*100)/100}function ye(e){let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:0}function bn(e,t,n){return e<t?t:e>n?n:e}var zf=new Map;function Bf(e,t){let n=`${w.locale}|${w.currency}|${e}`,r=zf.get(n);return r||(r=new Intl.NumberFormat(w.locale,t),zf.set(n,r)),r}function Ce(e,t="number"){if(!Number.isFinite(e))return"";if(t==="currency")return Bf("currency",{style:"currency",currency:w.currency,maximumFractionDigits:2}).format(e);let n=Bf("number",{maximumFractionDigits:2}).format(e);return t==="percent"?`${n}%`:n}function ub(e){return!!e&&typeof e=="object"&&Array.isArray(e.data)}function ze(e,t){let n=e[t];return n===void 0||n===""?`#${t+1}`:n}function fb(e,t){var c,d,u;let n=e.colors&&e.colors.length>0?e.colors:co,r=Array.isArray(e.labels),o=r?e.labels.map(p=>String(p)):[],i=[],s=e.data,a=(c=e.name)!=null?c:"Value";if(typeof s=="number")i.push({name:a,values:[s],xs:null,color:n[0]});else if(Array.isArray(s)&&s.length>0){let p=s[0];if(typeof p=="number")i.push({name:a,values:s.map(ye),xs:null,color:n[0]});else if(ub(p))s.forEach((f,m)=>{i.push({name:f.name||`Serie ${m+1}`,values:(f.data||[]).map(ye),xs:null,color:f.color||n[m%n.length]})});else{let f=s,m=[],h=[],v=!1;f.forEach((g,b)=>{m.push(ye(g.value!==void 0?g.value:g.y)),typeof g.x=="number"?(v=!0,h.push(g.x)):h.push(b),!r&&g.label!==void 0&&(o[b]=String(g.label))}),i.push({name:a,values:m,xs:v?h:null,color:n[0]})}}let l=t==="pie"||t==="donut";if(l)for(let p=0;p<((u=(d=i[0])==null?void 0:d.values.length)!=null?u:0);p++)o[p]===void 0&&(o[p]=ze(o,p));return{series:i,labels:o,categorical:l}}function pb(e,t){if(e.categorical){let n=e.series[0];return n?n.values.map((r,o)=>({key:ze(e.labels,o),name:ze(e.labels,o),color:t[o%t.length]})):[]}return e.series.map(n=>({key:n.name,name:n.name,color:n.color}))}function mb(e,t,n){var r;if(t.size===0)return e;if(e.categorical){let o=e.series[0];if(!o)return e;let i=[],s=[],a=[];return o.values.forEach((l,c)=>{let d=ze(e.labels,c);t.has(d)||(i.push(l),s.push(d),a.push(n[c%n.length]))}),{series:[{...o,values:i,xs:null,color:(r=a[0])!=null?r:o.color}],labels:s,categorical:!0}}return{series:e.series.filter(o=>!t.has(o.name)),labels:e.labels,categorical:!1}}function jf(e,t){let n=Math.abs(e)||1,r=Math.floor(Math.log10(n)),o=n/Math.pow(10,r),i;return t?o<1.5?i=1:o<3?i=2:o<7?i=5:i=10:o<=1?i=1:o<=2?i=2:o<=5?i=5:i=10,i*Math.pow(10,r)}function Ml(e,t,n=5){if(e===t){let c=Math.abs(e)||1;return Ml(e-c*.5,t+c*.5,n)}let r=jf(t-e,!1),o=jf(r/Math.max(1,n-1),!0),i=Math.max(0,Math.min(10,-Math.floor(Math.log10(o))+2)),s=Math.floor(e/o)*o,a=Math.ceil(t/o)*o,l=[];for(let c=s;c<=a+o*.5;c+=o)l.push(Number(c.toFixed(i)));return{min:s,max:a,ticks:l}}function Sl(e,t,n,r){let o=1/0,i=-1/0;if(n){let s=0;for(let a of e.series)s=Math.max(s,a.values.length);for(let a=0;a<s;a++){let l=0,c=0;for(let d of e.series){let u=ye(d.values[a]);u>=0?l+=u:c+=u}o=Math.min(o,c),i=Math.max(i,l)}}else for(let s of e.series)for(let a of s.values)Number.isFinite(a)&&(o=Math.min(o,a),i=Math.max(i,a));return(!Number.isFinite(o)||!Number.isFinite(i))&&(o=0,i=1),r&&(o=Math.min(o,0),i=Math.max(i,0)),t.min!==void 0&&(o=t.min),t.max!==void 0&&(i=t.max),o===i&&(i=o+(Math.abs(o)||1)),{min:o,max:i}}function qf(e){if(e.length===0)return"";let t=[`M ${E(e[0][0])} ${E(e[0][1])}`];for(let n=1;n<e.length;n++)t.push(`L ${E(e[n][0])} ${E(e[n][1])}`);return t.join(" ")}function vb(e){if(e.length<3)return qf(e);let t=[`M ${E(e[0][0])} ${E(e[0][1])}`];for(let n=0;n<e.length-1;n++){let r=n>0?e[n-1]:e[n],o=e[n],i=e[n+1],s=n+2<e.length?e[n+2]:i,a=o[0]+(i[0]-r[0])/6,l=o[1]+(i[1]-r[1])/6,c=i[0]-(s[0]-o[0])/6,d=i[1]-(s[1]-o[1])/6;t.push(`C ${E(a)} ${E(l)}, ${E(c)} ${E(d)}, ${E(i[0])} ${E(i[1])}`)}return t.join(" ")}function hb(e,t){return t?vb(e):qf(e)}function ot(e,t,n,r){return[e+Math.cos(r)*n,t+Math.sin(r)*n]}function gb(e,t,n,r,o,i){let s=i-o>Math.PI?1:0,[a,l]=ot(e,t,n,o),[c,d]=ot(e,t,n,i);if(r<=0)return`M ${E(e)} ${E(t)} L ${E(a)} ${E(l)} A ${E(n)} ${E(n)} 0 ${s} 1 ${E(c)} ${E(d)} Z`;let[u,p]=ot(e,t,r,o),[f,m]=ot(e,t,r,i);return`M ${E(a)} ${E(l)} A ${E(n)} ${E(n)} 0 ${s} 1 ${E(c)} ${E(d)} L ${E(f)} ${E(m)} A ${E(r)} ${E(r)} 0 ${s} 0 ${E(u)} ${E(p)} Z`}var bb=7;function Vf(e){let t=0;for(let n of e)t=Math.max(t,n.length);return t*bb+12}function Al(e,t){let{options:n,dataset:r,width:o,height:i}=e,s=Sl(r,n,t.stacked,t.baselineZero),a=n.min!==void 0&&n.max!==void 0?{min:s.min,max:s.max,ticks:Uf(s.min,s.max,5)}:Ml(s.min,s.max,5),l=a.ticks.map(T=>Ce(T,e.format)),c=n.showGrid!==!1&&!t.bare,d=r.labels.length>0&&!t.bare,u=t.bare?3:16,p=t.bare?3:16,f=t.bare?3:c?bn(Vf(l),32,140):8,m=t.bare?3:d?26:10,h=Math.max(1,o-f-p),v=Math.max(1,i-u-m),g=a.max-a.min||1,b=T=>u+v*(1-(T-a.min)/g),x="";if(c){let T=[];a.ticks.forEach((k,A)=>{let D=E(b(k));T.push(`<line class="v-chart-grid" x1="${E(f)}" y1="${D}" x2="${E(f+h)}" y2="${D}"/>`),T.push(`<text class="v-chart-axis" x="${E(f-8)}" y="${D+4}" text-anchor="end">${I(l[A])}</text>`)}),x=`<g>${T.join("")}</g>`}return{left:f,top:u,innerW:h,innerH:v,min:a.min,max:a.max,ticks:a.ticks,y:b,grid:x}}function Uf(e,t,n){let r=(t-e)/Math.max(1,n-1),o=[];for(let i=0;i<n;i++)o.push(Number((e+r*i).toFixed(6)));return o}function Cl(e,t,n,r,o){if(e.length===0||t===0)return"";let i=Math.max(1,Math.floor(o/56)),s=Math.max(1,Math.ceil(t/i)),a=[];for(let l=0;l<t;l+=s){let c=e[l];c===void 0||c===""||a.push(`<text class="v-chart-axis" x="${E(n(l))}" y="${E(r)}" text-anchor="middle">${I(c)}</text>`)}return a.join("")}function uo(e){let t=e.labels.length;for(let n of e.series)t=Math.max(t,n.values.length);return t}function yn(e){return`<text class="v-chart-empty" x="${E(e.width/2)}" y="${E(e.height/2)}" text-anchor="middle">No data</text>`}function xn(e,t,n){return`<title>${I(e)}: ${I(Ce(t,n))}</title>`}function yb(e,t){if(e.values.length===0)return e.name;let n=1/0,r=-1/0;for(let s of e.values)n=Math.min(n,s),r=Math.max(r,s);let o=e.values[0],i=e.values[e.values.length-1];return`${e.name}: from ${Ce(o,t)} to ${Ce(i,t)}, minimum ${Ce(n,t)}, maximum ${Ce(r,t)}`}function xb(e){let t=e.type==="sparkline",n=e.type==="area",r=uo(e.dataset);if(r===0)return yn(e);let o=Al(e,{stacked:!1,baselineZero:n,bare:t}),i=c=>r<=1?o.left+o.innerW/2:o.left+o.innerW*c/(r-1),s=e.options.smooth===!0,a=[o.grid],l=o.y(bn(0,o.min,o.max));for(let c of e.dataset.series){let d=[];for(let f=0;f<r;f++)d.push([i(f),o.y(ye(c.values[f]))]);if(d.length===0)continue;let u=hb(d,s);if(n){let f=`${u} L ${E(d[d.length-1][0])} ${E(l)} L ${E(d[0][0])} ${E(l)} Z`;a.push(`<path class="v-chart-area" d="${f}" fill="${I(c.color)}" fill-opacity="0.16"/>`)}let p=e.animated?' pathLength="1" stroke-dasharray="1"':"";a.push(`<path class="v-chart-line" d="${u}" stroke="${I(c.color)}"${p}><title>${I(yb(c,e.format))}</title></path>`),!t&&r<=40&&d.forEach((f,m)=>{a.push(`<circle class="v-chart-point" cx="${E(f[0])}" cy="${E(f[1])}" r="3.5" fill="${I(c.color)}">`+xn(`${c.name} ${ze(e.dataset.labels,m)}`,ye(c.values[m]),e.format)+"</circle>")}),e.options.showValues&&!t&&d.forEach((f,m)=>{a.push(`<text class="v-chart-value" x="${E(f[0])}" y="${E(f[1]-10)}" text-anchor="middle">${I(Ce(ye(c.values[m]),e.format))}</text>`)})}return t||a.push(Cl(e.dataset.labels,r,i,o.top+o.innerH+18,o.innerW)),Wf(e,r,i,c=>{let d=1/0;for(let u of e.dataset.series)d=Math.min(d,o.y(ye(u.values[c])));return Number.isFinite(d)?d:o.top}),a.join("")}function Wf(e,t,n,r){for(let o=0;o<t;o++)e.hits.push({x:n(o),y:r(o),title:ze(e.dataset.labels,o),rows:e.dataset.series.map(i=>({name:i.name,color:i.color,value:ye(i.values[o])}))})}function wb(e){let t=e.type==="stacked",n=uo(e.dataset);if(n===0)return yn(e);let r=Al(e,{stacked:t,baselineZero:!0,bare:!1}),o=r.innerW/n,i=t?1:Math.max(1,e.dataset.series.length),s=Math.min(o*.3,18),a=Math.max(2,(o-s)/i),l=r.y(bn(0,r.min,r.max)),c=Math.min(4,a/2),d=[r.grid],u=p=>r.left+o*p+o/2;for(let p=0;p<n;p++){let f=0,m=0;e.dataset.series.forEach((h,v)=>{let g=ye(h.values[p]),b,x,T;if(t){let D=g>=0?f:m,C=D+g;g>=0?f=C:m=C,b=Math.min(r.y(D),r.y(C)),x=Math.max(r.y(D),r.y(C)),T=r.left+o*p+s/2}else b=Math.min(r.y(g),l),x=Math.max(r.y(g),l),T=r.left+o*p+s/2+v*a;let k=t?Math.max(2,o-s):a*.86,A=Math.max(g===0?0:1,x-b);d.push(`<rect class="v-chart-bar" x="${E(T)}" y="${E(b)}" width="${E(k)}" height="${E(A)}" rx="${E(c)}" fill="${I(h.color)}" style="transform-origin:${E(T+k/2)}px ${E(l)}px;transition-delay:${p*30}ms">`+xn(`${h.name} ${ze(e.dataset.labels,p)}`,g,e.format)+"</rect>"),e.options.showValues&&!t&&d.push(`<text class="v-chart-value" x="${E(T+k/2)}" y="${E(b-6)}" text-anchor="middle">${I(Ce(g,e.format))}</text>`)})}return d.push(Cl(e.dataset.labels,n,u,r.top+r.innerH+18,r.innerW)),Wf(e,n,u,p=>{if(t){let m=0;for(let h of e.dataset.series)m+=Math.max(0,ye(h.values[p]));return r.y(m)}let f=l;for(let m of e.dataset.series)f=Math.min(f,r.y(ye(m.values[p])));return f}),d.join("")}function Eb(e){let t=uo(e.dataset);if(t===0)return yn(e);let n=Sl(e.dataset,e.options,!1,!0),r=e.options.min!==void 0&&e.options.max!==void 0?{min:n.min,max:n.max,ticks:Uf(n.min,n.max,5)}:Ml(n.min,n.max,5),o=bn(Vf(e.dataset.labels.length>0?e.dataset.labels:[""]),24,e.width*.4),i=e.dataset.labels.length>0?o:12,s=12,a=e.options.showGrid===!1?12:26,l=Math.max(1,e.width-i-20),c=Math.max(1,e.height-s-a),d=r.max-r.min||1,u=b=>i+l*(b-r.min)/d,p=u(bn(0,r.min,r.max)),f=c/t,m=Math.max(1,e.dataset.series.length),h=Math.min(f*.3,16),v=Math.max(2,(f-h)/m),g=[];if(e.options.showGrid!==!1)for(let b of r.ticks){let x=E(u(b));g.push(`<line class="v-chart-grid" x1="${x}" y1="${E(s)}" x2="${x}" y2="${E(s+c)}"/>`),g.push(`<text class="v-chart-axis" x="${x}" y="${E(s+c+16)}" text-anchor="middle">${I(Ce(b,e.format))}</text>`)}for(let b=0;b<t;b++){let x=e.dataset.labels[b];x&&g.push(`<text class="v-chart-axis" x="${E(i-8)}" y="${E(s+f*b+f/2+4)}" text-anchor="end">${I(x)}</text>`);let T=p;e.dataset.series.forEach((k,A)=>{let D=ye(k.values[b]),C=Math.min(u(D),p);T=Math.max(T,u(D));let oe=Math.max(D===0?0:1,Math.abs(u(D)-p)),N=s+f*b+h/2+A*v;g.push(`<rect class="v-chart-barh" x="${E(C)}" y="${E(N)}" width="${E(oe)}" height="${E(v*.86)}" rx="${E(Math.min(4,v/2))}" fill="${I(k.color)}" style="transform-origin:${E(p)}px ${E(N+v/2)}px;transition-delay:${b*30}ms">`+xn(`${k.name} ${ze(e.dataset.labels,b)}`,D,e.format)+"</rect>"),e.options.showValues&&g.push(`<text class="v-chart-value" x="${E(C+oe+6)}" y="${E(N+v*.6)}">${I(Ce(D,e.format))}</text>`)}),e.hits.push({x:T,y:s+f*b+f/2,title:ze(e.dataset.labels,b),rows:e.dataset.series.map(k=>({name:k.name,color:k.color,value:ye(k.values[b])}))})}return g.join("")}function kb(e){let t=e.dataset.series[0];if(!t||t.values.length===0)return yn(e);let n=e.type==="donut",r=t.values.map(p=>Math.max(0,ye(p))),o=r.reduce((p,f)=>p+f,0);if(o<=0)return yn(e);let i=e.width/2,s=e.height/2,a=Math.max(12,Math.min(e.width,e.height)/2-14),l=n?a*.62:0,c=`transform-origin:${E(i)}px ${E(s)}px`,d=[],u=-Math.PI/2;return r.forEach((p,f)=>{let m=p/o*Math.PI*2,h=e.palette[f%e.palette.length],v=ze(e.dataset.labels,f),g=m>=Math.PI*2-1e-6,b=g?n?`<circle class="v-chart-slice" data-hit="${f}" cx="${E(i)}" cy="${E(s)}" r="${E((a+l)/2)}" fill="none" stroke="${I(h)}" stroke-width="${E(a-l)}" style="${c}">`:`<circle class="v-chart-slice" data-hit="${f}" cx="${E(i)}" cy="${E(s)}" r="${E(a)}" fill="${I(h)}" style="${c}">`:`<path class="v-chart-slice" data-hit="${f}" d="${gb(i,s,a,l,u,u+m)}" fill="${I(h)}" style="${c};transition-delay:${f*45}ms">`;d.push(`${b}${xn(v,p,e.format)}${g?"</circle>":"</path>"}`);let x=u+m/2,[T,k]=ot(i,s,(a+l)/2,x);if(e.hits.push({x:T,y:k,title:v,rows:[{name:v,color:h,value:p}]}),e.options.showValues&&m>.3){let[A,D]=ot(i,s,n?(a+l)/2:a*.68,x),C=Math.round(p/o*100);d.push(`<text class="v-chart-value" x="${E(A)}" y="${E(D+4)}" text-anchor="middle">${C}%</text>`)}u+=m}),n&&d.push(`<text class="v-chart-center" x="${E(i)}" y="${E(s+2)}" text-anchor="middle">${I(Ce(o,e.format))}</text>`,`<text class="v-chart-center-sub" x="${E(i)}" y="${E(s+20)}" text-anchor="middle">Total</text>`),d.join("")}function Tb(e){let t=uo(e.dataset);if(t<3)return yn(e);let r=Sl(e.dataset,e.options,!1,!0).max||1,o=e.width/2,i=e.height/2,s=Math.max(20,Math.min(e.width,e.height)/2-28),a=c=>-Math.PI/2+Math.PI*2*c/t,l=[];for(let c=1;c<=4;c++){let d=[];for(let u=0;u<t;u++)d.push(ot(o,i,s*c/4,a(u)));l.push(`<polygon class="v-chart-radar-web" points="${d.map(u=>`${E(u[0])},${E(u[1])}`).join(" ")}"/>`)}for(let c=0;c<t;c++){let[d,u]=ot(o,i,s,a(c));l.push(`<line class="v-chart-grid" x1="${E(o)}" y1="${E(i)}" x2="${E(d)}" y2="${E(u)}"/>`);let p=e.dataset.labels[c];if(p){let[f,m]=ot(o,i,s+14,a(c)),h=Math.abs(f-o)<4?"middle":f>o?"start":"end";l.push(`<text class="v-chart-axis" x="${E(f)}" y="${E(m+4)}" text-anchor="${h}">${I(p)}</text>`)}}for(let c of e.dataset.series){let d=[];for(let u=0;u<t;u++){let p=bn(ye(c.values[u])/r,0,1);d.push(ot(o,i,s*p,a(u)))}l.push(`<polygon class="v-chart-radar-area v-chart-slice" points="${d.map(u=>`${E(u[0])},${E(u[1])}`).join(" ")}" fill="${I(c.color)}" fill-opacity="0.22" stroke="${I(c.color)}" style="transform-origin:${E(o)}px ${E(i)}px"/>`),d.forEach((u,p)=>{l.push(`<circle class="v-chart-point" data-hit="${p}" cx="${E(u[0])}" cy="${E(u[1])}" r="3.5" fill="${I(c.color)}">`+xn(`${c.name} ${ze(e.dataset.labels,p)}`,ye(c.values[p]),e.format)+"</circle>")})}for(let c=0;c<t;c++){let[d,u]=ot(o,i,s*.7,a(c));e.hits.push({x:d,y:u,title:ze(e.dataset.labels,c),rows:e.dataset.series.map(p=>({name:p.name,color:p.color,value:ye(p.values[c])}))})}return l.join("")}function Lb(e){let t=uo(e.dataset);if(t===0)return yn(e);let n=Al(e,{stacked:!1,baselineZero:!1,bare:!1}),r=1/0,o=-1/0;for(let c of e.dataset.series){let d=c.xs;if(d)for(let u of d)r=Math.min(r,u),o=Math.max(o,u)}let i=Number.isFinite(r)&&Number.isFinite(o)&&o>r,s=(c,d)=>i&&c.xs?n.left+n.innerW*(c.xs[d]-r)/(o-r):t<=1?n.left+n.innerW/2:n.left+n.innerW*d/(t-1),a=[n.grid],l=0;for(let c of e.dataset.series)c.values.forEach((d,u)=>{let p=s(c,u),f=n.y(ye(d));a.push(`<circle class="v-chart-point v-chart-slice" data-hit="${l}" cx="${E(p)}" cy="${E(f)}" r="4.5" fill="${I(c.color)}" style="transform-origin:${E(p)}px ${E(f)}px">`+xn(`${c.name} ${ze(e.dataset.labels,u)}`,ye(d),e.format)+"</circle>"),e.hits.push({x:p,y:f,title:ze(e.dataset.labels,u),rows:[{name:c.name,color:c.color,value:ye(d)}]}),l++});return i||a.push(Cl(e.dataset.labels,t,c=>t<=1?n.left+n.innerW/2:n.left+n.innerW*c/(t-1),n.top+n.innerH+18,n.innerW)),a.join("")}function Mb(e){var m,h,v,g,b;let t=e.dataset.series[0],n=t?ye(t.values[0]):0,r=(m=e.options.max)!=null?m:100,o=(h=e.options.min)!=null?h:0,i=bn((n-o)/(r-o||1),0,1),s=e.width/2,a=e.height/2,l=Math.max(16,Math.min(e.width,e.height)/2-16),c=Math.max(8,l*.2),d=l-c/2,u=2*Math.PI*d,p=u*(1-i),f=e.palette[0];return e.hits.push({x:s,y:a-d,title:(v=t==null?void 0:t.name)!=null?v:"Progresso",rows:[{name:(g=t==null?void 0:t.name)!=null?g:"Progresso",color:f,value:n}]}),`<circle class="v-chart-track" cx="${E(s)}" cy="${E(a)}" r="${E(d)}" stroke-width="${E(c)}"/><circle class="v-chart-ring" data-hit="0" cx="${E(s)}" cy="${E(a)}" r="${E(d)}" fill="none" stroke="${I(f)}" stroke-width="${E(c)}" stroke-linecap="round" stroke-dasharray="${E(u)}" style="--v-ring-full:${E(u)};--v-ring-offset:${E(p)};transform:rotate(-90deg);transform-origin:${E(s)}px ${E(a)}px">`+xn((b=t==null?void 0:t.name)!=null?b:"Progresso",n,e.format)+`</circle><text class="v-chart-center" x="${E(s)}" y="${E(a+4)}" text-anchor="middle">${Math.round(i*100)}%</text>`+(t?`<text class="v-chart-center-sub" x="${E(s)}" y="${E(a+22)}" text-anchor="middle">${I(Ce(n,e.format))}</text>`:"")}var Sb=new Set(["pie","donut","scatter","progress","radar"]);function Ab(e){return e==="sparkline"?56:260}function Cb(e,t){return e.showLegend===!1?!1:e.showLegend===!0?!0:t.categorical||t.series.length>1}var Rb={line:"line",area:"area",bar:"bar",column:"horizontal bar",stacked:"stacked bar",pie:"pie",donut:"donut",sparkline:"trend",radar:"radar",scatter:"scatter",progress:"progress"};function $b(e,t,n){if(t.series.length===0)return"Chart with no data.";let r=(t.series.length===1,"series"),o=[`${Rb[e]} chart with ${t.series.length} ${r}.`];for(let i of t.series){if(i.values.length===0)continue;let s=1/0,a=-1/0,l=0;for(let d of i.values)s=Math.min(s,d),a=Math.max(a,d),l+=d;let c=l/i.values.length;o.push(`${i.name}: ${i.values.length} points, minimum ${Ce(s,n)}, maximum ${Ce(a,n)}, average ${Ce(c,n)}.`)}return o.join(" ")}function Db(e){switch(e.type){case"bar":case"stacked":return wb(e);case"column":return Eb(e);case"pie":case"donut":return kb(e);case"radar":return Tb(e);case"scatter":return Lb(e);case"progress":return Mb(e);default:return xb(e)}}function Hb(e,t){return e.length===0?"":`<div class="v-chart-legend">${e.map(r=>{let o=t.has(r.key);return`<button type="button" class="v-chart-key" data-key="${I(r.key)}" aria-pressed="${o?"false":"true"}"><span class="v-chart-dot" style="background:${I(r.color)}"></span>${I(r.name)}</button>`}).join("")}</div>`}function Ji(e){var v,g,b;let t=e.el,n=e.options,r=(v=n.type)!=null?v:"line",o=n.colors&&n.colors.length>0?n.colors:co,i=(g=n.format)!=null?g:"number",s=Math.max(160,Math.round(t.clientWidth||n.width||640)),a=Math.max(48,Math.round((b=n.height)!=null?b:t.clientHeight||Ab(r)));e.lastWidth=s,e.viewWidth=s,e.viewHeight=a;let l=fb(n,r),c=pb(l,o),d=mb(l,e.hidden,o),u=n.animate!==!1&&!cb();e.hits=[],e.shapeHits=Sb.has(r),e.hitAxis=r==="column"?"y":"x";let p={type:r,options:n,dataset:d,palette:o,width:s,height:a,animated:u,format:i,hits:e.hits},f=Db(p),m=$b(r,d,i);t.classList.add("v-chart"),t.classList.toggle("v-chart-animate",u),t.classList.remove("v-chart-in");let h=[`<svg class="v-chart-svg" viewBox="0 0 ${s} ${a}" preserveAspectRatio="xMidYMid meet" `,`style="height:${a}px" role="img" aria-label="${I(m)}">`,f,"</svg>"];Cb(n,l)&&h.push(Hb(c,e.hidden)),n.tooltip!==!1&&h.push('<div class="v-chart-tip" hidden></div>'),t.innerHTML=h.join(""),u&&typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{requestAnimationFrame(()=>t.classList.add("v-chart-in"))})}function Pb(e,t){let n=e.rows.map(r=>`<div class="v-chart-tip-row"><span class="v-chart-dot" style="background:${I(r.color)}"></span>${I(r.name)}<b>${I(Ce(r.value,t))}</b></div>`);return`<div class="v-chart-tip-title">${I(e.title)}</div>${n.join("")}`}function _f(e){let t=e.el.querySelector(".v-chart-tip");t&&(t.hidden=!0)}function Nb(e,t){var a;if(e.options.tooltip===!1||e.hits.length===0)return;let n=e.el.querySelector(".v-chart-tip"),r=e.el.querySelector("svg");if(!n||!r)return;let o=r.getBoundingClientRect();if(o.width===0||o.height===0)return;let i;if(e.shapeHits){let l=t.target,c=l&&typeof l.closest=="function"?l.closest("[data-hit]"):null,d=c?Number(c.getAttribute("data-hit")):-1;d>=0&&(i=e.hits[d])}else if(e.hitAxis==="y"){let l=(t.clientY-o.top)/o.height*e.viewHeight,c=1/0;for(let d of e.hits){let u=Math.abs(d.y-l);u<c&&(c=u,i=d)}}else{let l=(t.clientX-o.left)/o.width*e.viewWidth,c=1/0;for(let d of e.hits){let u=Math.abs(d.x-l);u<c&&(c=u,i=d)}}if(!i){_f(e);return}let s=e.el.getBoundingClientRect();n.innerHTML=Pb(i,(a=e.options.format)!=null?a:"number"),n.style.left=`${o.left-s.left+i.x/e.viewWidth*o.width}px`,n.style.top=`${o.top-s.top+i.y/e.viewHeight*o.height}px`,n.hidden=!1}function Ob(e){let t=e.el,n=i=>{var l;let s=i.target;if(!s||typeof s.closest!="function")return;let a=(l=s.closest("[data-key]"))==null?void 0:l.getAttribute("data-key");a!=null&&(e.hidden.has(a)?e.hidden.delete(a):e.hidden.add(a),Ji(e))},r=i=>Nb(e,i),o=()=>_f(e);t.addEventListener("click",n),t.addEventListener("pointermove",r),t.addEventListener("pointerleave",o),e.teardown.push(()=>{t.removeEventListener("click",n),t.removeEventListener("pointermove",r),t.removeEventListener("pointerleave",o)})}function Fb(e){if(typeof ResizeObserver=="undefined")return;let t=new ResizeObserver(()=>{let n=Math.round(e.el.clientWidth);n===0||n===e.lastWidth||(e.frame&&cancelAnimationFrame(e.frame),e.frame=requestAnimationFrame(()=>{e.frame=0,Ji(e)}))});t.observe(e.el),e.observer=t}function ur(e,t){he(),ne("charts",db);let n={el:e,options:{...t},hidden:new Set,hits:[],shapeHits:!1,hitAxis:"x",viewWidth:1,viewHeight:1,lastWidth:0,observer:null,frame:0,teardown:[]};return Ob(n),Ji(n),Fb(n),{el:e,get options(){return n.options},update(r){Object.assign(n.options,r),Ji(n)},destroy(){var r;n.frame&&cancelAnimationFrame(n.frame),n.frame=0,(r=n.observer)==null||r.disconnect(),n.observer=null;for(let o of n.teardown)o();n.teardown.length=0,e.classList.remove("v-chart","v-chart-animate","v-chart-in"),e.innerHTML=""}}}function Qe(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function dr(e,t){return e===null?t:e===""||e==="true"||e==="1"?!0:e==="false"||e==="0"?!1:t}function Ib(e,t){let r=!!t&&typeof t=="object"&&!Array.isArray(t)&&"data"in t?{...t}:{data:t!=null?t:[]},o=Qe(e,"chart-type");o&&(r.type=o),r.type||(r.type="line");let i=Qe(e,"chart-height");i&&(r.height=parseFloat(i)||r.height);let s=Qe(e,"chart-format");s&&(r.format=s);let a=Qe(e,"chart-colors");a&&(r.colors=a.split(",").map(v=>v.trim()).filter(Boolean));let l=Qe(e,"chart-max");l!==null&&l!==""&&(r.max=parseFloat(l));let c=Qe(e,"chart-min");c!==null&&c!==""&&(r.min=parseFloat(c));let d=Qe(e,"chart-smooth");d!==null&&(r.smooth=dr(d,!0));let u=Qe(e,"chart-grid");u!==null&&(r.showGrid=dr(u,!0));let p=Qe(e,"chart-legend");p!==null&&(r.showLegend=dr(p,!0));let f=Qe(e,"chart-values");f!==null&&(r.showValues=dr(f,!0));let m=Qe(e,"chart-tooltip");m!==null&&(r.tooltip=dr(m,!0));let h=Qe(e,"chart-animate");return h!==null&&(r.animate=dr(h,!0)),r}function Ll(e,t=0){if(!e||typeof e!="object"||t>3)return 1;let n=0;if(Array.isArray(e)){for(let r of e)n+=Ll(r,t+1);return n}for(let r of Object.values(e))n+=Ll(r,t+1);return n}y("chart",({el:e,evaluate:t,effect:n,cleanup:r})=>{let o=null;n(()=>{let i=t();Ll(i);let s=Ib(e,i);o?o.update(s):o=ur(e,s)}),r(()=>{o==null||o.destroy(),o=null})});var Rl={render:ur,format:Ce,colors:co};be();le();He();He();le();var zb=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,Bb=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,jb=/^rgba?\(([^)]+)\)$/i,qb=/^hsla?\(([^)]+)\)$/i;function Kf(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function Vb(e,t,n){let r=(e%360+360)%360,o=Be(t/100,0,1),i=Be(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),l=i-s/2,c=Math.floor(r/60)%6,d=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[u,p,f]=d[c];return{r:Math.round((u+l)*255),g:Math.round((p+l)*255),b:Math.round((f+l)*255)}}function bt(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=zb.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=Bb.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=jb.exec(t);if(o){let[s,a,l]=Kf(o[1]);return s===void 0||a===void 0||l===void 0?null:{r:Be(s,0,255),g:Be(a,0,255),b:Be(l,0,255)}}let i=qb.exec(t);if(i){let[s,a,l]=Kf(i[1]);return s===void 0||a===void 0||l===void 0?null:Vb(s,a,l)}return null}function Be(e,t,n){return e<t?t:e>n?n:e}function mr(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $l(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function Ub(e){let t=mr(e.r),n=mr(e.g),r=mr(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),l=Math.cbrt(i),c=Math.cbrt(s);return{l:.2104542553*a+.793617785*l-.0040720468*c,a:1.9779984951*a-2.428592205*l+.4505937099*c,b:.0259040371*a+.7827717662*l-.808675766*c}}function Wb(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:$l(4.0767416621*o-3.3077115913*i+.2309699292*s),g:$l(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:$l(-.0041960863*o-.7034186147*i+1.707614701*s)}}function es(e){let t=Ub(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 Yf(e){let t=e.h*Math.PI/180;return Wb({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function pr(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=Yf({l:Be(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(Be(o.r,0,1)*255),g:Math.round(Be(o.g,0,1)*255),b:Math.round(Be(o.b,0,1)*255)};t*=.92}let n=Yf({l:Be(e.l,0,1),c:0,h:e.h});return{r:Math.round(Be(n.r,0,1)*255),g:Math.round(Be(n.g,0,1)*255),b:Math.round(Be(n.b,0,1)*255)}}function Dl(e){return Be(Math.round(e),0,255).toString(16).padStart(2,"0")}function wn(e){return`#${Dl(e.r)}${Dl(e.g)}${Dl(e.b)}`}function fr(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function Zf(e){return wn(pr(e))}function Pl(e){return .2126*mr(e.r)+.7152*mr(e.g)+.0722*mr(e.b)}function Nl(e,t){let n=typeof e=="string"?bt(e):e,r=typeof t=="string"?bt(t):t;if(!n||!r)return 1;let o=Pl(n),i=Pl(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var ep={r:255,g:255,b:255},ts={r:0,g:0,b:0};function fo(e){let t=typeof e=="string"?bt(e):e;return t?Nl(t,ep)>=Nl(t,ts)?"#ffffff":"#000000":"#ffffff"}var Ol=[50,100,200,300,400,500,600,700,800,900],tp=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],_b=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],np=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],Kb=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function rp(e,t=!1){var a;let n=typeof e=="string"?(a=bt(e))!=null?a:ts:e,r=es(n),o=t?np:tp,i=t?Kb:_b,s={};return Ol.forEach((l,c)=>{s[String(l)]=Zf({l:o[c],c:r.c*i[c],h:r.h})}),s}var ns={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"}},op=["primary","accent","success","warning","danger","info"],Fl="voodoo:palette",Xf="voodoo-palette",Yb="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Xb="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function Gf(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var Gb=/^([\d.]+)(px|rem|em)$/;function Qb(e){let t=(e||"12px").trim(),n=Gb.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 Qf(e,t){var c,d,u,p;let n={},r={},o={};for(let f of op){let m=(c=bt(e[f]))!=null?c:ts,h=es(m),v=rp(m,t);r[f]=v;for(let N of Ol)n[`--v-${f}-${N}`]=v[String(N)];let g=t?{l:Math.max(h.l,.62),c:h.c*.95,h:h.h}:h,b=t?{l:Math.min(g.l+.07,.94),c:g.c*.95,h:g.h}:{l:Math.max(g.l-.055,.12),c:g.c,h:g.h},x=t?{l:Math.min(g.l+.13,.97),c:g.c*.88,h:g.h}:{l:Math.max(g.l-.105,.1),c:g.c,h:g.h},T=pr(g),k=pr(b),A=pr(x);n[`--v-${f}`]=wn(t?T:m),n[`--v-${f}-hover`]=wn(k),n[`--v-${f}-active`]=wn(A),n[`--v-${f}-contrast`]=fo(t?T:m),n[`--v-${f}-contrast-hover`]=fo(k),n[`--v-${f}-contrast-active`]=fo(A);let D=v[50],C=v[100],oe=t?v[800]:v[700];n[`--v-${f}-soft`]=D,n[`--v-${f}-soft-hover`]=C,n[`--v-${f}-soft-text`]=oe,n[`--v-${f}-ring`]=fr(T,t?.45:.32),n[`--v-${f}-border`]=t?v[300]:v[200],o[f]=n[`--v-${f}-contrast`]}let i=(u=bt((d=e.neutral)!=null?d:e.primary))!=null?u:ts,s=es(i).h,a=(f,m)=>Zf({l:f,c:m,h:s}),l={};if(Ol.forEach((f,m)=>{let h=t?np:tp;l[String(f)]=a(h[m],.012),n[`--v-neutral-${f}`]=l[String(f)]}),r.neutral=l,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=pr({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"]=wn(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"]=fr(f,.45),n["--v-shadow-sm"]=`0 1px 2px ${fr(f,.08)}`,n["--v-shadow"]=`0 10px 30px ${fr(f,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${fr(f,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=fo((p=bt(n["--v-surface"]))!=null?p:ep),{vars:n,scales:r,contrast:o}}function Hl(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
368
|
+
`;function E(e){return Math.round(e*100)/100}function ye(e){let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:0}function bn(e,t,n){return e<t?t:e>n?n:e}var qf=new Map;function Vf(e,t){let n=`${w.locale}|${w.currency}|${e}`,r=qf.get(n);return r||(r=new Intl.NumberFormat(w.locale,t),qf.set(n,r)),r}function Ce(e,t="number"){if(!Number.isFinite(e))return"";if(t==="currency")return Vf("currency",{style:"currency",currency:w.currency,maximumFractionDigits:2}).format(e);let n=Vf("number",{maximumFractionDigits:2}).format(e);return t==="percent"?`${n}%`:n}function mb(e){return!!e&&typeof e=="object"&&Array.isArray(e.data)}function ze(e,t){let n=e[t];return n===void 0||n===""?`#${t+1}`:n}function vb(e,t){var c,d,u;let n=e.colors&&e.colors.length>0?e.colors:co,r=Array.isArray(e.labels),o=r?e.labels.map(p=>String(p)):[],i=[],s=e.data,a=(c=e.name)!=null?c:"Value";if(typeof s=="number")i.push({name:a,values:[s],xs:null,color:n[0]});else if(Array.isArray(s)&&s.length>0){let p=s[0];if(typeof p=="number")i.push({name:a,values:s.map(ye),xs:null,color:n[0]});else if(mb(p))s.forEach((f,m)=>{i.push({name:f.name||`Serie ${m+1}`,values:(f.data||[]).map(ye),xs:null,color:f.color||n[m%n.length]})});else{let f=s,m=[],h=[],v=!1;f.forEach((g,b)=>{m.push(ye(g.value!==void 0?g.value:g.y)),typeof g.x=="number"?(v=!0,h.push(g.x)):h.push(b),!r&&g.label!==void 0&&(o[b]=String(g.label))}),i.push({name:a,values:m,xs:v?h:null,color:n[0]})}}let l=t==="pie"||t==="donut";if(l)for(let p=0;p<((u=(d=i[0])==null?void 0:d.values.length)!=null?u:0);p++)o[p]===void 0&&(o[p]=ze(o,p));return{series:i,labels:o,categorical:l}}function hb(e,t){if(e.categorical){let n=e.series[0];return n?n.values.map((r,o)=>({key:ze(e.labels,o),name:ze(e.labels,o),color:t[o%t.length]})):[]}return e.series.map(n=>({key:n.name,name:n.name,color:n.color}))}function gb(e,t,n){var r;if(t.size===0)return e;if(e.categorical){let o=e.series[0];if(!o)return e;let i=[],s=[],a=[];return o.values.forEach((l,c)=>{let d=ze(e.labels,c);t.has(d)||(i.push(l),s.push(d),a.push(n[c%n.length]))}),{series:[{...o,values:i,xs:null,color:(r=a[0])!=null?r:o.color}],labels:s,categorical:!0}}return{series:e.series.filter(o=>!t.has(o.name)),labels:e.labels,categorical:!1}}function Uf(e,t){let n=Math.abs(e)||1,r=Math.floor(Math.log10(n)),o=n/Math.pow(10,r),i;return t?o<1.5?i=1:o<3?i=2:o<7?i=5:i=10:o<=1?i=1:o<=2?i=2:o<=5?i=5:i=10,i*Math.pow(10,r)}function Cl(e,t,n=5){if(e===t){let c=Math.abs(e)||1;return Cl(e-c*.5,t+c*.5,n)}let r=Uf(t-e,!1),o=Uf(r/Math.max(1,n-1),!0),i=Math.max(0,Math.min(10,-Math.floor(Math.log10(o))+2)),s=Math.floor(e/o)*o,a=Math.ceil(t/o)*o,l=[];for(let c=s;c<=a+o*.5;c+=o)l.push(Number(c.toFixed(i)));return{min:s,max:a,ticks:l}}function Rl(e,t,n,r){let o=1/0,i=-1/0;if(n){let s=0;for(let a of e.series)s=Math.max(s,a.values.length);for(let a=0;a<s;a++){let l=0,c=0;for(let d of e.series){let u=ye(d.values[a]);u>=0?l+=u:c+=u}o=Math.min(o,c),i=Math.max(i,l)}}else for(let s of e.series)for(let a of s.values)Number.isFinite(a)&&(o=Math.min(o,a),i=Math.max(i,a));return(!Number.isFinite(o)||!Number.isFinite(i))&&(o=0,i=1),r&&(o=Math.min(o,0),i=Math.max(i,0)),t.min!==void 0&&(o=t.min),t.max!==void 0&&(i=t.max),o===i&&(i=o+(Math.abs(o)||1)),{min:o,max:i}}function Wf(e){if(e.length===0)return"";let t=[`M ${E(e[0][0])} ${E(e[0][1])}`];for(let n=1;n<e.length;n++)t.push(`L ${E(e[n][0])} ${E(e[n][1])}`);return t.join(" ")}function bb(e){if(e.length<3)return Wf(e);let t=[`M ${E(e[0][0])} ${E(e[0][1])}`];for(let n=0;n<e.length-1;n++){let r=n>0?e[n-1]:e[n],o=e[n],i=e[n+1],s=n+2<e.length?e[n+2]:i,a=o[0]+(i[0]-r[0])/6,l=o[1]+(i[1]-r[1])/6,c=i[0]-(s[0]-o[0])/6,d=i[1]-(s[1]-o[1])/6;t.push(`C ${E(a)} ${E(l)}, ${E(c)} ${E(d)}, ${E(i[0])} ${E(i[1])}`)}return t.join(" ")}function yb(e,t){return t?bb(e):Wf(e)}function ot(e,t,n,r){return[e+Math.cos(r)*n,t+Math.sin(r)*n]}function xb(e,t,n,r,o,i){let s=i-o>Math.PI?1:0,[a,l]=ot(e,t,n,o),[c,d]=ot(e,t,n,i);if(r<=0)return`M ${E(e)} ${E(t)} L ${E(a)} ${E(l)} A ${E(n)} ${E(n)} 0 ${s} 1 ${E(c)} ${E(d)} Z`;let[u,p]=ot(e,t,r,o),[f,m]=ot(e,t,r,i);return`M ${E(a)} ${E(l)} A ${E(n)} ${E(n)} 0 ${s} 1 ${E(c)} ${E(d)} L ${E(f)} ${E(m)} A ${E(r)} ${E(r)} 0 ${s} 0 ${E(u)} ${E(p)} Z`}var wb=7;function _f(e){let t=0;for(let n of e)t=Math.max(t,n.length);return t*wb+12}function $l(e,t){let{options:n,dataset:r,width:o,height:i}=e,s=Rl(r,n,t.stacked,t.baselineZero),a=n.min!==void 0&&n.max!==void 0?{min:s.min,max:s.max,ticks:Kf(s.min,s.max,5)}:Cl(s.min,s.max,5),l=a.ticks.map(T=>Ce(T,e.format)),c=n.showGrid!==!1&&!t.bare,d=r.labels.length>0&&!t.bare,u=t.bare?3:16,p=t.bare?3:16,f=t.bare?3:c?bn(_f(l),32,140):8,m=t.bare?3:d?26:10,h=Math.max(1,o-f-p),v=Math.max(1,i-u-m),g=a.max-a.min||1,b=T=>u+v*(1-(T-a.min)/g),x="";if(c){let T=[];a.ticks.forEach((k,A)=>{let D=E(b(k));T.push(`<line class="v-chart-grid" x1="${E(f)}" y1="${D}" x2="${E(f+h)}" y2="${D}"/>`),T.push(`<text class="v-chart-axis" x="${E(f-8)}" y="${D+4}" text-anchor="end">${I(l[A])}</text>`)}),x=`<g>${T.join("")}</g>`}return{left:f,top:u,innerW:h,innerH:v,min:a.min,max:a.max,ticks:a.ticks,y:b,grid:x}}function Kf(e,t,n){let r=(t-e)/Math.max(1,n-1),o=[];for(let i=0;i<n;i++)o.push(Number((e+r*i).toFixed(6)));return o}function Dl(e,t,n,r,o){if(e.length===0||t===0)return"";let i=Math.max(1,Math.floor(o/56)),s=Math.max(1,Math.ceil(t/i)),a=[];for(let l=0;l<t;l+=s){let c=e[l];c===void 0||c===""||a.push(`<text class="v-chart-axis" x="${E(n(l))}" y="${E(r)}" text-anchor="middle">${I(c)}</text>`)}return a.join("")}function uo(e){let t=e.labels.length;for(let n of e.series)t=Math.max(t,n.values.length);return t}function yn(e){return`<text class="v-chart-empty" x="${E(e.width/2)}" y="${E(e.height/2)}" text-anchor="middle">No data</text>`}function xn(e,t,n){return`<title>${I(e)}: ${I(Ce(t,n))}</title>`}function Eb(e,t){if(e.values.length===0)return e.name;let n=1/0,r=-1/0;for(let s of e.values)n=Math.min(n,s),r=Math.max(r,s);let o=e.values[0],i=e.values[e.values.length-1];return`${e.name}: from ${Ce(o,t)} to ${Ce(i,t)}, minimum ${Ce(n,t)}, maximum ${Ce(r,t)}`}function kb(e){let t=e.type==="sparkline",n=e.type==="area",r=uo(e.dataset);if(r===0)return yn(e);let o=$l(e,{stacked:!1,baselineZero:n,bare:t}),i=c=>r<=1?o.left+o.innerW/2:o.left+o.innerW*c/(r-1),s=e.options.smooth===!0,a=[o.grid],l=o.y(bn(0,o.min,o.max));for(let c of e.dataset.series){let d=[];for(let f=0;f<r;f++)d.push([i(f),o.y(ye(c.values[f]))]);if(d.length===0)continue;let u=yb(d,s);if(n){let f=`${u} L ${E(d[d.length-1][0])} ${E(l)} L ${E(d[0][0])} ${E(l)} Z`;a.push(`<path class="v-chart-area" d="${f}" fill="${I(c.color)}" fill-opacity="0.16"/>`)}let p=e.animated?' pathLength="1" stroke-dasharray="1"':"";a.push(`<path class="v-chart-line" d="${u}" stroke="${I(c.color)}"${p}><title>${I(Eb(c,e.format))}</title></path>`),!t&&r<=40&&d.forEach((f,m)=>{a.push(`<circle class="v-chart-point" cx="${E(f[0])}" cy="${E(f[1])}" r="3.5" fill="${I(c.color)}">`+xn(`${c.name} ${ze(e.dataset.labels,m)}`,ye(c.values[m]),e.format)+"</circle>")}),e.options.showValues&&!t&&d.forEach((f,m)=>{a.push(`<text class="v-chart-value" x="${E(f[0])}" y="${E(f[1]-10)}" text-anchor="middle">${I(Ce(ye(c.values[m]),e.format))}</text>`)})}return t||a.push(Dl(e.dataset.labels,r,i,o.top+o.innerH+18,o.innerW)),Yf(e,r,i,c=>{let d=1/0;for(let u of e.dataset.series)d=Math.min(d,o.y(ye(u.values[c])));return Number.isFinite(d)?d:o.top}),a.join("")}function Yf(e,t,n,r){for(let o=0;o<t;o++)e.hits.push({x:n(o),y:r(o),title:ze(e.dataset.labels,o),rows:e.dataset.series.map(i=>({name:i.name,color:i.color,value:ye(i.values[o])}))})}function Tb(e){let t=e.type==="stacked",n=uo(e.dataset);if(n===0)return yn(e);let r=$l(e,{stacked:t,baselineZero:!0,bare:!1}),o=r.innerW/n,i=t?1:Math.max(1,e.dataset.series.length),s=Math.min(o*.3,18),a=Math.max(2,(o-s)/i),l=r.y(bn(0,r.min,r.max)),c=Math.min(4,a/2),d=[r.grid],u=p=>r.left+o*p+o/2;for(let p=0;p<n;p++){let f=0,m=0;e.dataset.series.forEach((h,v)=>{let g=ye(h.values[p]),b,x,T;if(t){let D=g>=0?f:m,C=D+g;g>=0?f=C:m=C,b=Math.min(r.y(D),r.y(C)),x=Math.max(r.y(D),r.y(C)),T=r.left+o*p+s/2}else b=Math.min(r.y(g),l),x=Math.max(r.y(g),l),T=r.left+o*p+s/2+v*a;let k=t?Math.max(2,o-s):a*.86,A=Math.max(g===0?0:1,x-b);d.push(`<rect class="v-chart-bar" x="${E(T)}" y="${E(b)}" width="${E(k)}" height="${E(A)}" rx="${E(c)}" fill="${I(h.color)}" style="transform-origin:${E(T+k/2)}px ${E(l)}px;transition-delay:${p*30}ms">`+xn(`${h.name} ${ze(e.dataset.labels,p)}`,g,e.format)+"</rect>"),e.options.showValues&&!t&&d.push(`<text class="v-chart-value" x="${E(T+k/2)}" y="${E(b-6)}" text-anchor="middle">${I(Ce(g,e.format))}</text>`)})}return d.push(Dl(e.dataset.labels,n,u,r.top+r.innerH+18,r.innerW)),Yf(e,n,u,p=>{if(t){let m=0;for(let h of e.dataset.series)m+=Math.max(0,ye(h.values[p]));return r.y(m)}let f=l;for(let m of e.dataset.series)f=Math.min(f,r.y(ye(m.values[p])));return f}),d.join("")}function Lb(e){let t=uo(e.dataset);if(t===0)return yn(e);let n=Rl(e.dataset,e.options,!1,!0),r=e.options.min!==void 0&&e.options.max!==void 0?{min:n.min,max:n.max,ticks:Kf(n.min,n.max,5)}:Cl(n.min,n.max,5),o=bn(_f(e.dataset.labels.length>0?e.dataset.labels:[""]),24,e.width*.4),i=e.dataset.labels.length>0?o:12,s=12,a=e.options.showGrid===!1?12:26,l=Math.max(1,e.width-i-20),c=Math.max(1,e.height-s-a),d=r.max-r.min||1,u=b=>i+l*(b-r.min)/d,p=u(bn(0,r.min,r.max)),f=c/t,m=Math.max(1,e.dataset.series.length),h=Math.min(f*.3,16),v=Math.max(2,(f-h)/m),g=[];if(e.options.showGrid!==!1)for(let b of r.ticks){let x=E(u(b));g.push(`<line class="v-chart-grid" x1="${x}" y1="${E(s)}" x2="${x}" y2="${E(s+c)}"/>`),g.push(`<text class="v-chart-axis" x="${x}" y="${E(s+c+16)}" text-anchor="middle">${I(Ce(b,e.format))}</text>`)}for(let b=0;b<t;b++){let x=e.dataset.labels[b];x&&g.push(`<text class="v-chart-axis" x="${E(i-8)}" y="${E(s+f*b+f/2+4)}" text-anchor="end">${I(x)}</text>`);let T=p;e.dataset.series.forEach((k,A)=>{let D=ye(k.values[b]),C=Math.min(u(D),p);T=Math.max(T,u(D));let oe=Math.max(D===0?0:1,Math.abs(u(D)-p)),N=s+f*b+h/2+A*v;g.push(`<rect class="v-chart-barh" x="${E(C)}" y="${E(N)}" width="${E(oe)}" height="${E(v*.86)}" rx="${E(Math.min(4,v/2))}" fill="${I(k.color)}" style="transform-origin:${E(p)}px ${E(N+v/2)}px;transition-delay:${b*30}ms">`+xn(`${k.name} ${ze(e.dataset.labels,b)}`,D,e.format)+"</rect>"),e.options.showValues&&g.push(`<text class="v-chart-value" x="${E(C+oe+6)}" y="${E(N+v*.6)}">${I(Ce(D,e.format))}</text>`)}),e.hits.push({x:T,y:s+f*b+f/2,title:ze(e.dataset.labels,b),rows:e.dataset.series.map(k=>({name:k.name,color:k.color,value:ye(k.values[b])}))})}return g.join("")}function Mb(e){let t=e.dataset.series[0];if(!t||t.values.length===0)return yn(e);let n=e.type==="donut",r=t.values.map(p=>Math.max(0,ye(p))),o=r.reduce((p,f)=>p+f,0);if(o<=0)return yn(e);let i=e.width/2,s=e.height/2,a=Math.max(12,Math.min(e.width,e.height)/2-14),l=n?a*.62:0,c=`transform-origin:${E(i)}px ${E(s)}px`,d=[],u=-Math.PI/2;return r.forEach((p,f)=>{let m=p/o*Math.PI*2,h=e.palette[f%e.palette.length],v=ze(e.dataset.labels,f),g=m>=Math.PI*2-1e-6,b=g?n?`<circle class="v-chart-slice" data-hit="${f}" cx="${E(i)}" cy="${E(s)}" r="${E((a+l)/2)}" fill="none" stroke="${I(h)}" stroke-width="${E(a-l)}" style="${c}">`:`<circle class="v-chart-slice" data-hit="${f}" cx="${E(i)}" cy="${E(s)}" r="${E(a)}" fill="${I(h)}" style="${c}">`:`<path class="v-chart-slice" data-hit="${f}" d="${xb(i,s,a,l,u,u+m)}" fill="${I(h)}" style="${c};transition-delay:${f*45}ms">`;d.push(`${b}${xn(v,p,e.format)}${g?"</circle>":"</path>"}`);let x=u+m/2,[T,k]=ot(i,s,(a+l)/2,x);if(e.hits.push({x:T,y:k,title:v,rows:[{name:v,color:h,value:p}]}),e.options.showValues&&m>.3){let[A,D]=ot(i,s,n?(a+l)/2:a*.68,x),C=Math.round(p/o*100);d.push(`<text class="v-chart-value" x="${E(A)}" y="${E(D+4)}" text-anchor="middle">${C}%</text>`)}u+=m}),n&&d.push(`<text class="v-chart-center" x="${E(i)}" y="${E(s+2)}" text-anchor="middle">${I(Ce(o,e.format))}</text>`,`<text class="v-chart-center-sub" x="${E(i)}" y="${E(s+20)}" text-anchor="middle">Total</text>`),d.join("")}function Sb(e){let t=uo(e.dataset);if(t<3)return yn(e);let r=Rl(e.dataset,e.options,!1,!0).max||1,o=e.width/2,i=e.height/2,s=Math.max(20,Math.min(e.width,e.height)/2-28),a=c=>-Math.PI/2+Math.PI*2*c/t,l=[];for(let c=1;c<=4;c++){let d=[];for(let u=0;u<t;u++)d.push(ot(o,i,s*c/4,a(u)));l.push(`<polygon class="v-chart-radar-web" points="${d.map(u=>`${E(u[0])},${E(u[1])}`).join(" ")}"/>`)}for(let c=0;c<t;c++){let[d,u]=ot(o,i,s,a(c));l.push(`<line class="v-chart-grid" x1="${E(o)}" y1="${E(i)}" x2="${E(d)}" y2="${E(u)}"/>`);let p=e.dataset.labels[c];if(p){let[f,m]=ot(o,i,s+14,a(c)),h=Math.abs(f-o)<4?"middle":f>o?"start":"end";l.push(`<text class="v-chart-axis" x="${E(f)}" y="${E(m+4)}" text-anchor="${h}">${I(p)}</text>`)}}for(let c of e.dataset.series){let d=[];for(let u=0;u<t;u++){let p=bn(ye(c.values[u])/r,0,1);d.push(ot(o,i,s*p,a(u)))}l.push(`<polygon class="v-chart-radar-area v-chart-slice" points="${d.map(u=>`${E(u[0])},${E(u[1])}`).join(" ")}" fill="${I(c.color)}" fill-opacity="0.22" stroke="${I(c.color)}" style="transform-origin:${E(o)}px ${E(i)}px"/>`),d.forEach((u,p)=>{l.push(`<circle class="v-chart-point" data-hit="${p}" cx="${E(u[0])}" cy="${E(u[1])}" r="3.5" fill="${I(c.color)}">`+xn(`${c.name} ${ze(e.dataset.labels,p)}`,ye(c.values[p]),e.format)+"</circle>")})}for(let c=0;c<t;c++){let[d,u]=ot(o,i,s*.7,a(c));e.hits.push({x:d,y:u,title:ze(e.dataset.labels,c),rows:e.dataset.series.map(p=>({name:p.name,color:p.color,value:ye(p.values[c])}))})}return l.join("")}function Ab(e){let t=uo(e.dataset);if(t===0)return yn(e);let n=$l(e,{stacked:!1,baselineZero:!1,bare:!1}),r=1/0,o=-1/0;for(let c of e.dataset.series){let d=c.xs;if(d)for(let u of d)r=Math.min(r,u),o=Math.max(o,u)}let i=Number.isFinite(r)&&Number.isFinite(o)&&o>r,s=(c,d)=>i&&c.xs?n.left+n.innerW*(c.xs[d]-r)/(o-r):t<=1?n.left+n.innerW/2:n.left+n.innerW*d/(t-1),a=[n.grid],l=0;for(let c of e.dataset.series)c.values.forEach((d,u)=>{let p=s(c,u),f=n.y(ye(d));a.push(`<circle class="v-chart-point v-chart-slice" data-hit="${l}" cx="${E(p)}" cy="${E(f)}" r="4.5" fill="${I(c.color)}" style="transform-origin:${E(p)}px ${E(f)}px">`+xn(`${c.name} ${ze(e.dataset.labels,u)}`,ye(d),e.format)+"</circle>"),e.hits.push({x:p,y:f,title:ze(e.dataset.labels,u),rows:[{name:c.name,color:c.color,value:ye(d)}]}),l++});return i||a.push(Dl(e.dataset.labels,t,c=>t<=1?n.left+n.innerW/2:n.left+n.innerW*c/(t-1),n.top+n.innerH+18,n.innerW)),a.join("")}function Cb(e){var m,h,v,g,b;let t=e.dataset.series[0],n=t?ye(t.values[0]):0,r=(m=e.options.max)!=null?m:100,o=(h=e.options.min)!=null?h:0,i=bn((n-o)/(r-o||1),0,1),s=e.width/2,a=e.height/2,l=Math.max(16,Math.min(e.width,e.height)/2-16),c=Math.max(8,l*.2),d=l-c/2,u=2*Math.PI*d,p=u*(1-i),f=e.palette[0];return e.hits.push({x:s,y:a-d,title:(v=t==null?void 0:t.name)!=null?v:"Progresso",rows:[{name:(g=t==null?void 0:t.name)!=null?g:"Progresso",color:f,value:n}]}),`<circle class="v-chart-track" cx="${E(s)}" cy="${E(a)}" r="${E(d)}" stroke-width="${E(c)}"/><circle class="v-chart-ring" data-hit="0" cx="${E(s)}" cy="${E(a)}" r="${E(d)}" fill="none" stroke="${I(f)}" stroke-width="${E(c)}" stroke-linecap="round" stroke-dasharray="${E(u)}" style="--v-ring-full:${E(u)};--v-ring-offset:${E(p)};transform:rotate(-90deg);transform-origin:${E(s)}px ${E(a)}px">`+xn((b=t==null?void 0:t.name)!=null?b:"Progresso",n,e.format)+`</circle><text class="v-chart-center" x="${E(s)}" y="${E(a+4)}" text-anchor="middle">${Math.round(i*100)}%</text>`+(t?`<text class="v-chart-center-sub" x="${E(s)}" y="${E(a+22)}" text-anchor="middle">${I(Ce(n,e.format))}</text>`:"")}var Rb=new Set(["pie","donut","scatter","progress","radar"]);function $b(e){return e==="sparkline"?56:260}function Db(e,t){return e.showLegend===!1?!1:e.showLegend===!0?!0:t.categorical||t.series.length>1}var Hb={line:"line",area:"area",bar:"bar",column:"horizontal bar",stacked:"stacked bar",pie:"pie",donut:"donut",sparkline:"trend",radar:"radar",scatter:"scatter",progress:"progress"};function Pb(e,t,n){if(t.series.length===0)return"Chart with no data.";let r=(t.series.length===1,"series"),o=[`${Hb[e]} chart with ${t.series.length} ${r}.`];for(let i of t.series){if(i.values.length===0)continue;let s=1/0,a=-1/0,l=0;for(let d of i.values)s=Math.min(s,d),a=Math.max(a,d),l+=d;let c=l/i.values.length;o.push(`${i.name}: ${i.values.length} points, minimum ${Ce(s,n)}, maximum ${Ce(a,n)}, average ${Ce(c,n)}.`)}return o.join(" ")}function Nb(e){switch(e.type){case"bar":case"stacked":return Tb(e);case"column":return Lb(e);case"pie":case"donut":return Mb(e);case"radar":return Sb(e);case"scatter":return Ab(e);case"progress":return Cb(e);default:return kb(e)}}function Ob(e,t){return e.length===0?"":`<div class="v-chart-legend">${e.map(r=>{let o=t.has(r.key);return`<button type="button" class="v-chart-key" data-key="${I(r.key)}" aria-pressed="${o?"false":"true"}"><span class="v-chart-dot" style="background:${I(r.color)}"></span>${I(r.name)}</button>`}).join("")}</div>`}function Zi(e){var v,g,b;let t=e.el,n=e.options,r=(v=n.type)!=null?v:"line",o=n.colors&&n.colors.length>0?n.colors:co,i=(g=n.format)!=null?g:"number",s=Math.max(160,Math.round(t.clientWidth||n.width||640)),a=Math.max(48,Math.round((b=n.height)!=null?b:t.clientHeight||$b(r)));e.lastWidth=s,e.viewWidth=s,e.viewHeight=a;let l=vb(n,r),c=hb(l,o),d=gb(l,e.hidden,o),u=n.animate!==!1&&!fb();e.hits=[],e.shapeHits=Rb.has(r),e.hitAxis=r==="column"?"y":"x";let p={type:r,options:n,dataset:d,palette:o,width:s,height:a,animated:u,format:i,hits:e.hits},f=Nb(p),m=Pb(r,d,i);t.classList.add("v-chart"),t.classList.toggle("v-chart-animate",u),t.classList.remove("v-chart-in");let h=[`<svg class="v-chart-svg" viewBox="0 0 ${s} ${a}" preserveAspectRatio="xMidYMid meet" `,`style="height:${a}px" role="img" aria-label="${I(m)}">`,f,"</svg>"];Db(n,l)&&h.push(Ob(c,e.hidden)),n.tooltip!==!1&&h.push('<div class="v-chart-tip" hidden></div>'),t.innerHTML=h.join(""),u&&typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{requestAnimationFrame(()=>t.classList.add("v-chart-in"))})}function Fb(e,t){let n=e.rows.map(r=>`<div class="v-chart-tip-row"><span class="v-chart-dot" style="background:${I(r.color)}"></span>${I(r.name)}<b>${I(Ce(r.value,t))}</b></div>`);return`<div class="v-chart-tip-title">${I(e.title)}</div>${n.join("")}`}function Xf(e){let t=e.el.querySelector(".v-chart-tip");t&&(t.hidden=!0)}function Ib(e,t){var a;if(e.options.tooltip===!1||e.hits.length===0)return;let n=e.el.querySelector(".v-chart-tip"),r=e.el.querySelector("svg");if(!n||!r)return;let o=r.getBoundingClientRect();if(o.width===0||o.height===0)return;let i;if(e.shapeHits){let l=t.target,c=l&&typeof l.closest=="function"?l.closest("[data-hit]"):null,d=c?Number(c.getAttribute("data-hit")):-1;d>=0&&(i=e.hits[d])}else if(e.hitAxis==="y"){let l=(t.clientY-o.top)/o.height*e.viewHeight,c=1/0;for(let d of e.hits){let u=Math.abs(d.y-l);u<c&&(c=u,i=d)}}else{let l=(t.clientX-o.left)/o.width*e.viewWidth,c=1/0;for(let d of e.hits){let u=Math.abs(d.x-l);u<c&&(c=u,i=d)}}if(!i){Xf(e);return}let s=e.el.getBoundingClientRect();n.innerHTML=Fb(i,(a=e.options.format)!=null?a:"number"),n.style.left=`${o.left-s.left+i.x/e.viewWidth*o.width}px`,n.style.top=`${o.top-s.top+i.y/e.viewHeight*o.height}px`,n.hidden=!1}function zb(e){let t=e.el,n=i=>{var l;let s=i.target;if(!s||typeof s.closest!="function")return;let a=(l=s.closest("[data-key]"))==null?void 0:l.getAttribute("data-key");a!=null&&(e.hidden.has(a)?e.hidden.delete(a):e.hidden.add(a),Zi(e))},r=i=>Ib(e,i),o=()=>Xf(e);t.addEventListener("click",n),t.addEventListener("pointermove",r),t.addEventListener("pointerleave",o),e.teardown.push(()=>{t.removeEventListener("click",n),t.removeEventListener("pointermove",r),t.removeEventListener("pointerleave",o)})}function Bb(e){if(typeof ResizeObserver=="undefined")return;let t=new ResizeObserver(()=>{let n=Math.round(e.el.clientWidth);n===0||n===e.lastWidth||(e.frame&&cancelAnimationFrame(e.frame),e.frame=requestAnimationFrame(()=>{e.frame=0,Zi(e)}))});t.observe(e.el),e.observer=t}function ur(e,t){he(),ne("charts",pb);let n={el:e,options:{...t},hidden:new Set,hits:[],shapeHits:!1,hitAxis:"x",viewWidth:1,viewHeight:1,lastWidth:0,observer:null,frame:0,teardown:[]};return zb(n),Zi(n),Bb(n),{el:e,get options(){return n.options},update(r){Object.assign(n.options,r),Zi(n)},destroy(){var r;n.frame&&cancelAnimationFrame(n.frame),n.frame=0,(r=n.observer)==null||r.disconnect(),n.observer=null;for(let o of n.teardown)o();n.teardown.length=0,e.classList.remove("v-chart","v-chart-animate","v-chart-in"),e.innerHTML=""}}}function Qe(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function dr(e,t){return e===null?t:e===""||e==="true"||e==="1"?!0:e==="false"||e==="0"?!1:t}function jb(e,t){let r=!!t&&typeof t=="object"&&!Array.isArray(t)&&"data"in t?{...t}:{data:t!=null?t:[]},o=Qe(e,"chart-type");o&&(r.type=o),r.type||(r.type="line");let i=Qe(e,"chart-height");i&&(r.height=parseFloat(i)||r.height);let s=Qe(e,"chart-format");s&&(r.format=s);let a=Qe(e,"chart-colors");a&&(r.colors=a.split(",").map(v=>v.trim()).filter(Boolean));let l=Qe(e,"chart-max");l!==null&&l!==""&&(r.max=parseFloat(l));let c=Qe(e,"chart-min");c!==null&&c!==""&&(r.min=parseFloat(c));let d=Qe(e,"chart-smooth");d!==null&&(r.smooth=dr(d,!0));let u=Qe(e,"chart-grid");u!==null&&(r.showGrid=dr(u,!0));let p=Qe(e,"chart-legend");p!==null&&(r.showLegend=dr(p,!0));let f=Qe(e,"chart-values");f!==null&&(r.showValues=dr(f,!0));let m=Qe(e,"chart-tooltip");m!==null&&(r.tooltip=dr(m,!0));let h=Qe(e,"chart-animate");return h!==null&&(r.animate=dr(h,!0)),r}function Al(e,t=0){if(!e||typeof e!="object"||t>3)return 1;let n=0;if(Array.isArray(e)){for(let r of e)n+=Al(r,t+1);return n}for(let r of Object.values(e))n+=Al(r,t+1);return n}y("chart",({el:e,evaluate:t,effect:n,cleanup:r})=>{let o=null;n(()=>{let i=t();Al(i);let s=jb(e,i);o?o.update(s):o=ur(e,s)}),r(()=>{o==null||o.destroy(),o=null})});var Hl={render:ur,format:Ce,colors:co};be();le();He();He();le();var qb=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,Vb=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,Ub=/^rgba?\(([^)]+)\)$/i,Wb=/^hsla?\(([^)]+)\)$/i;function Gf(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function _b(e,t,n){let r=(e%360+360)%360,o=Be(t/100,0,1),i=Be(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),l=i-s/2,c=Math.floor(r/60)%6,d=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[u,p,f]=d[c];return{r:Math.round((u+l)*255),g:Math.round((p+l)*255),b:Math.round((f+l)*255)}}function bt(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=qb.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=Vb.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=Ub.exec(t);if(o){let[s,a,l]=Gf(o[1]);return s===void 0||a===void 0||l===void 0?null:{r:Be(s,0,255),g:Be(a,0,255),b:Be(l,0,255)}}let i=Wb.exec(t);if(i){let[s,a,l]=Gf(i[1]);return s===void 0||a===void 0||l===void 0?null:_b(s,a,l)}return null}function Be(e,t,n){return e<t?t:e>n?n:e}function mr(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Pl(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function Kb(e){let t=mr(e.r),n=mr(e.g),r=mr(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),l=Math.cbrt(i),c=Math.cbrt(s);return{l:.2104542553*a+.793617785*l-.0040720468*c,a:1.9779984951*a-2.428592205*l+.4505937099*c,b:.0259040371*a+.7827717662*l-.808675766*c}}function Yb(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:Pl(4.0767416621*o-3.3077115913*i+.2309699292*s),g:Pl(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:Pl(-.0041960863*o-.7034186147*i+1.707614701*s)}}function ts(e){let t=Kb(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 Qf(e){let t=e.h*Math.PI/180;return Yb({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function pr(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=Qf({l:Be(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(Be(o.r,0,1)*255),g:Math.round(Be(o.g,0,1)*255),b:Math.round(Be(o.b,0,1)*255)};t*=.92}let n=Qf({l:Be(e.l,0,1),c:0,h:e.h});return{r:Math.round(Be(n.r,0,1)*255),g:Math.round(Be(n.g,0,1)*255),b:Math.round(Be(n.b,0,1)*255)}}function Nl(e){return Be(Math.round(e),0,255).toString(16).padStart(2,"0")}function wn(e){return`#${Nl(e.r)}${Nl(e.g)}${Nl(e.b)}`}function fr(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function np(e){return wn(pr(e))}function Fl(e){return .2126*mr(e.r)+.7152*mr(e.g)+.0722*mr(e.b)}function Il(e,t){let n=typeof e=="string"?bt(e):e,r=typeof t=="string"?bt(t):t;if(!n||!r)return 1;let o=Fl(n),i=Fl(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var rp={r:255,g:255,b:255},ns={r:0,g:0,b:0};function fo(e){let t=typeof e=="string"?bt(e):e;return t?Il(t,rp)>=Il(t,ns)?"#ffffff":"#000000":"#ffffff"}var zl=[50,100,200,300,400,500,600,700,800,900],op=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],Xb=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],ip=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],Gb=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function sp(e,t=!1){var a;let n=typeof e=="string"?(a=bt(e))!=null?a:ns:e,r=ts(n),o=t?ip:op,i=t?Gb:Xb,s={};return zl.forEach((l,c)=>{s[String(l)]=np({l:o[c],c:r.c*i[c],h:r.h})}),s}var rs={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"}},ap=["primary","accent","success","warning","danger","info"],Bl="voodoo:palette",Jf="voodoo-palette",Qb="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Jb="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function Zf(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var Zb=/^([\d.]+)(px|rem|em)$/;function ey(e){let t=(e||"12px").trim(),n=Zb.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 ep(e,t){var c,d,u,p;let n={},r={},o={};for(let f of ap){let m=(c=bt(e[f]))!=null?c:ns,h=ts(m),v=sp(m,t);r[f]=v;for(let N of zl)n[`--v-${f}-${N}`]=v[String(N)];let g=t?{l:Math.max(h.l,.62),c:h.c*.95,h:h.h}:h,b=t?{l:Math.min(g.l+.07,.94),c:g.c*.95,h:g.h}:{l:Math.max(g.l-.055,.12),c:g.c,h:g.h},x=t?{l:Math.min(g.l+.13,.97),c:g.c*.88,h:g.h}:{l:Math.max(g.l-.105,.1),c:g.c,h:g.h},T=pr(g),k=pr(b),A=pr(x);n[`--v-${f}`]=wn(t?T:m),n[`--v-${f}-hover`]=wn(k),n[`--v-${f}-active`]=wn(A),n[`--v-${f}-contrast`]=fo(t?T:m),n[`--v-${f}-contrast-hover`]=fo(k),n[`--v-${f}-contrast-active`]=fo(A);let D=v[50],C=v[100],oe=t?v[800]:v[700];n[`--v-${f}-soft`]=D,n[`--v-${f}-soft-hover`]=C,n[`--v-${f}-soft-text`]=oe,n[`--v-${f}-ring`]=fr(T,t?.45:.32),n[`--v-${f}-border`]=t?v[300]:v[200],o[f]=n[`--v-${f}-contrast`]}let i=(u=bt((d=e.neutral)!=null?d:e.primary))!=null?u:ns,s=ts(i).h,a=(f,m)=>np({l:f,c:m,h:s}),l={};if(zl.forEach((f,m)=>{let h=t?ip:op;l[String(f)]=a(h[m],.012),n[`--v-neutral-${f}`]=l[String(f)]}),r.neutral=l,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=pr({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"]=wn(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"]=fr(f,.45),n["--v-shadow-sm"]=`0 1px 2px ${fr(f,.08)}`,n["--v-shadow"]=`0 10px 30px ${fr(f,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${fr(f,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=fo((p=bt(n["--v-surface"]))!=null?p:rp),{vars:n,scales:r,contrast:o}}function Ol(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
369
369
|
`);return`${e} {
|
|
370
370
|
${n}
|
|
371
|
-
}`}var mo=null,po=null;function
|
|
372
|
-
${
|
|
373
|
-
}`,
|
|
374
|
-
`);
|
|
371
|
+
}`}var mo=null,po=null;function ty(e){var r,o,i,s,a,l,c,d,u;let t=(r=rs[e.preset])!=null?r:rs.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:(l=e.danger)!=null?l:t.danger,info:(c=e.info)!=null?c:t.info,neutral:(d=e.neutral)!=null?d:t.neutral};for(let p of ap)bt(n[p])||(console.warn(`[Voodoo] invalid color in palette.${p}: "${n[p]}". Using preset.`),n[p]=t[p]);return{colors:n,radius:(u=e.radius)!=null?u:"12px",font:Zf(e.font,Qb),mono:Zf(e.monoFont,Jb)}}function ny(e){if(typeof document=="undefined"||!w.injectStyles)return;he();let t=document.getElementById(Jf);t||(t=document.createElement("style"),t.id=Jf,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function es(e={}){let{colors:t,radius:n,font:r,mono:o}=ty(e),i=ep(t,!1),s=ep(t,!0),a={...ey(n),"--v-font-sans":r,"--v-font-mono":o},l=["/* Palette generated by V.palette(). Do not edit manually. */",Ol(":root",{...a,...i.vars}),`@media (prefers-color-scheme: dark) {
|
|
372
|
+
${Ol(':root:not([data-theme="light"])',s.vars)}
|
|
373
|
+
}`,Ol(':root[data-theme="dark"]',s.vars)].join(`
|
|
374
|
+
`);ny(l);let c={colors:t,radius:n,font:r,monoFont:o,light:i.scales,dark:s.scales,contrast:i.contrast,css:l};if(mo=c,po={...e},e.persist!==!1&&typeof document!="undefined"){let d={...e};delete d.persist,ue.set(Bl,d)}return typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("voodoo:palette",{detail:c})),c}var tp=!1;function jl(){if(mo&&tp)return mo;tp=!0;let e=ue.get(Bl),t=e&&typeof e=="object"?{...e,persist:!1}:{persist:!1};return es(t)}function vo(){mo||jl()}function lp(){return jl()}var cp=Object.assign(es,{presets:rs,get names(){return Object.keys(rs)},get current(){return mo},get options(){return po},init:jl,ensure:vo,reset(){return ue.remove(Bl),es({persist:!1})},use(e){return es({...po!=null?po:{},preset:e,primary:void 0,accent:void 0})},scale:sp,contrastText:fo,contrastRatio:Il,luminance(e){let t=typeof e=="string"?bt(e):e;return t?Fl(t):0},convert:{parseColor:bt,rgbToOklch:ts,oklchToRgb:pr,toHex:wn,toRgba:fr}});function ee(e){if(e===!0)return!0;if(e===!1||e===null||e===void 0)return!1;if(typeof e=="number")return e!==0;let t=String(e).trim().toLowerCase();return t===""||t==="true"||t==="1"||t==="yes"}function ge(...e){let t={};for(let n of e){let r=`is${n.charAt(0).toUpperCase()}${n.slice(1)}`;t[r]=function(){return ee(this[n])}}return t}var O={type:"any",default:!1},L={type:"string",default:""};function vr(e,t){var i;if(t==null||typeof t!="string")return t;let n=t.trim();if(!n)return null;if(n.startsWith("[")||n.startsWith("{"))try{return JSON.parse(n)}catch(s){return null}let r=n.split(/[.[(]/)[0].trim();if(!/^[A-Za-z_$][\w$]*$/.test(r))return null;let o=(i=e.$scope)==null?void 0:i.parent;return!o||!o.has(r)?null:q(n,o,"list attribute")}function go(e){return String(e).split(",").map(t=>t.trim()).filter(Boolean)}function Xt(e,t){let n=e.$el;Object.defineProperty(n,"value",{configurable:!0,enumerable:!1,get:t.get,set:t.set})}function ho(e){e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))}var fp={check:'<path d="m5 12.5 4.4 4.4L19 7.6"/>',x:'<path d="M6 6l12 12M18 6 6 18"/>',plus:'<path d="M12 5v14M5 12h14"/>',minus:'<path d="M5 12h14"/>',search:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 4 4"/>',"chevron-down":'<path d="m6 9.5 6 6 6-6"/>',"chevron-up":'<path d="m6 14.5 6-6 6 6"/>',"chevron-left":'<path d="m14.5 6-6 6 6 6"/>',"chevron-right":'<path d="m9.5 6 6 6-6 6"/>',"arrow-up":'<path d="M12 19V5M6 11l6-6 6 6"/>',"arrow-down":'<path d="M12 5v14M6 13l6 6 6-6"/>',"arrow-right":'<path d="M5 12h14M13 6l6 6-6 6"/>',"arrow-left":'<path d="M19 12H5M11 6l-6 6 6 6"/>',user:'<circle cx="12" cy="8.5" r="3.6"/><path d="M4.8 20a7.4 7.4 0 0 1 14.4 0"/>',users:'<circle cx="9.5" cy="8.5" r="3.2"/><path d="M3.4 19.5a6.4 6.4 0 0 1 12.2 0M16 5.6a3.2 3.2 0 0 1 0 5.9M17.4 14.4a6.4 6.4 0 0 1 3.2 5.1"/>',mail:'<rect x="3" y="5" width="18" height="14" rx="2.5"/><path d="m3.8 7 8.2 6 8.2-6"/>',lock:'<rect x="4.5" y="10.5" width="15" height="9.5" rx="2.4"/><path d="M8 10.5V8a4 4 0 0 1 8 0v2.5"/>',eye:'<path d="M2.6 12S6.4 5.8 12 5.8 21.4 12 21.4 12 17.6 18.2 12 18.2 2.6 12 2.6 12Z"/><circle cx="12" cy="12" r="2.8"/>',"eye-off":'<path d="M4 4l16 16M9.9 6.2A9.3 9.3 0 0 1 12 6c5.6 0 9.4 6 9.4 6a17 17 0 0 1-3.3 3.9M6.3 8.2A17 17 0 0 0 2.6 12S6.4 18 12 18c1 0 1.9-.2 2.7-.5"/>',calendar:'<rect x="3.5" y="5" width="17" height="15" rx="2.4"/><path d="M8 3v4M16 3v4M3.5 10h17"/>',clock:'<circle cx="12" cy="12" r="8.6"/><path d="M12 7.4V12l3 1.8"/>',star:'<path d="m12 4 2.5 5.2 5.5.8-4 3.9 1 5.6-5-2.7-5 2.7 1-5.6-4-3.9 5.5-.8z"/>',info:'<circle cx="12" cy="12" r="8.6"/><path d="M12 11v5.2M12 7.6v.2"/>',alert:'<circle cx="12" cy="12" r="8.6"/><path d="M12 7.5v5M12 16.4v.2"/>',warning:'<path d="M12 4.4 2.8 19.6h18.4z"/><path d="M12 10v3.8M12 16.9v.2"/>',trash:'<path d="M4.5 7h15M9.5 7V5.2A1.2 1.2 0 0 1 10.7 4h2.6a1.2 1.2 0 0 1 1.2 1.2V7M6.6 7l.8 12a1.6 1.6 0 0 0 1.6 1.5h6a1.6 1.6 0 0 0 1.6-1.5l.8-12"/>',edit:'<path d="M4.5 19.5h4l10-10a2.1 2.1 0 0 0-3-3l-10 10z"/><path d="M14 6.5 17.5 10"/>',copy:'<rect x="8.5" y="8.5" width="11.5" height="11.5" rx="2.2"/><path d="M15.5 5.5A1.5 1.5 0 0 0 14 4H6a2 2 0 0 0-2 2v8a1.5 1.5 0 0 0 1.5 1.5"/>',download:'<path d="M12 4v11M7.5 11 12 15.5 16.5 11M4.5 19.5h15"/>',upload:'<path d="M12 20V8.5M7.5 12.5 12 8l4.5 4.5M4.5 4.5h15"/>',settings:'<circle cx="12" cy="12" r="3.1"/><path d="M19.6 14.4a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.7 1.7 0 0 0-1.87-.34 1.7 1.7 0 0 0-1.03 1.56V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.56 1.7 1.7 0 0 0-1.87.34l-.06.06A2 2 0 1 1 4.15 16.9l.06-.06a1.7 1.7 0 0 0 .34-1.87A1.7 1.7 0 0 0 3 13.94H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.55-1.1 1.7 1.7 0 0 0-.34-1.87l-.06-.06A2 2 0 1 1 7.08 4.08l.06.06a1.7 1.7 0 0 0 1.87.34H9a1.7 1.7 0 0 0 1-1.56V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.56 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.7 1.7 0 0 0-.34 1.87V10a1.7 1.7 0 0 0 1.56 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.3 1z"/>',home:'<path d="M4 10.5 12 4l8 6.5V19a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 19z"/><path d="M9.6 20.5v-6h4.8v6"/>',heart:'<path d="M12 20s-7.5-4.6-7.5-9.4A4.1 4.1 0 0 1 12 8.2a4.1 4.1 0 0 1 7.5 2.4C19.5 15.4 12 20 12 20Z"/>',bell:'<path d="M18 9a6 6 0 1 0-12 0c0 5.2-2 6.5-2 6.5h16S18 14.2 18 9"/><path d="M13.7 19.5a2 2 0 0 1-3.4 0"/>',filter:'<path d="M4 5.5h16l-6.2 7.3v5.3l-3.6 2v-7.3z"/>',external:'<path d="M14 4.5h5.5V10M19 5l-8 8"/><path d="M18 13.5V18a1.5 1.5 0 0 1-1.5 1.5H6A1.5 1.5 0 0 1 4.5 18V7.5A1.5 1.5 0 0 1 6 6h4.5"/>',refresh:'<path d="M20 11a8 8 0 0 0-13.7-4.8L4 8.4"/><path d="M4 4.5v4h4M4 13a8 8 0 0 0 13.7 4.8L20 15.6"/><path d="M20 19.5v-4h-4"/>',folder:'<path d="M4 7.5A1.5 1.5 0 0 1 5.5 6h3.7l2 2.4h7.3A1.5 1.5 0 0 1 20 9.9v7.6a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 17.5z"/>',file:'<path d="M13.5 4H7a1.5 1.5 0 0 0-1.5 1.5v13A1.5 1.5 0 0 0 7 20h10a1.5 1.5 0 0 0 1.5-1.5V9z"/><path d="M13.5 4v5h5"/>',image:'<rect x="4" y="5" width="16" height="14" rx="2.2"/><circle cx="9" cy="10" r="1.7"/><path d="m5 17 4.6-4.3 3.4 3 2.6-2.3L19 17"/>',link:'<path d="M10.6 13.4a3.6 3.6 0 0 0 5.1 0l2.4-2.4a3.6 3.6 0 0 0-5.1-5.1l-1.3 1.3"/><path d="M13.4 10.6a3.6 3.6 0 0 0-5.1 0l-2.4 2.4a3.6 3.6 0 0 0 5.1 5.1l1.3-1.3"/>',menu:'<path d="M4 7h16M4 12h16M4 17h16"/>',more:'<circle cx="6" cy="12" r="1.4"/><circle cx="12" cy="12" r="1.4"/><circle cx="18" cy="12" r="1.4"/>',logout:'<path d="M14.5 8V6a1.5 1.5 0 0 0-1.5-1.5H6A1.5 1.5 0 0 0 4.5 6v12A1.5 1.5 0 0 0 6 19.5h7a1.5 1.5 0 0 0 1.5-1.5v-2"/><path d="M9.5 12h10.5M16.5 8.5 20 12l-3.5 3.5"/>',card:'<rect x="3" y="6" width="18" height="12" rx="2.4"/><path d="M3 10h18"/>',chart:'<path d="M4.5 19.5h15"/><path d="M7.5 19.5V11M12 19.5V5.5M16.5 19.5v-6"/>',box:'<path d="M20 8.6 12 4 4 8.6v6.8L12 20l8-4.6z"/><path d="m4 8.6 8 4.6 8-4.6M12 13.2V20"/>',inbox:'<path d="M4 13.5h4l1.4 2.4h5.2l1.4-2.4h4"/><path d="M4.6 13.5 7 5.6A1.5 1.5 0 0 1 8.5 4.5h7A1.5 1.5 0 0 1 17 5.6l2.4 7.9V18a1.5 1.5 0 0 1-1.5 1.5H6A1.5 1.5 0 0 1 4.5 18z"/>'};function ry(e){let t=String(e!=null?e:"").trim();if(!t)return"";let n=fp[t];return n?`<svg class="v-ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.85" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${n}</svg>`:""}var oy=`
|
|
375
375
|
.v-ic{width:1em;height:1em;flex:none}
|
|
376
376
|
.v-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
377
377
|
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
@@ -876,7 +876,7 @@ ${Hl(':root:not([data-theme="light"])',s.vars)}
|
|
|
876
876
|
.v-skeleton,.v-spinner,.v-btn-spin{animation-duration:1.6s}
|
|
877
877
|
.v-progress[data-indeterminate="true"] .v-progress-bar{animation-duration:2.4s}
|
|
878
878
|
}
|
|
879
|
-
`,
|
|
879
|
+
`,dp=!1;function iy(){dp||(dp=!0,he(),vo(),ne("components",oy))}function re(e,t){var r;let n=t.beforeMount;t.methods={svgIcon:o=>ry(o),hasFlag:o=>ee(o),...(r=t.methods)!=null?r:{}},t.beforeMount=function(){iy(),n==null||n.call(this)},Ft(e,t)}re("v-button",{props:{variant:{type:"string",default:"primary"},size:{type:"string",default:"md"},icon:L,iconRight:L,type:{type:"string",default:"button"},loading:O,disabled:O,block:O,rounded:O,ariaLabel:L},computed:{...ge("loading","disabled","block","rounded"),blocked(){return ee(this.disabled)||ee(this.loading)}},template:`
|
|
880
880
|
<button class="v-btn" :type="type" :data-variant="variant" :data-size="size"
|
|
881
881
|
:data-block="isBlock" :data-rounded="isRounded" :disabled="blocked"
|
|
882
882
|
:aria-busy="isLoading" :aria-label="ariaLabel || null">
|
|
@@ -956,7 +956,7 @@ ${Hl(':root:not([data-theme="light"])',s.vars)}
|
|
|
956
956
|
<p class="v-hint" :id="hintId" v-if="hint && !error" v-text="hint"></p>
|
|
957
957
|
<p class="v-error-text" :id="errorId" v-if="error" role="alert" v-text="error"></p>
|
|
958
958
|
</div>
|
|
959
|
-
`});function
|
|
959
|
+
`});function sy(e){return e?(Array.isArray(e)?e:typeof e=="string"?go(e):[]).map(n=>{var r,o,i,s,a,l,c,d;if(n!=null&&typeof n=="object"){let u=n,p=(s=(i=(o=(r=u.value)!=null?r:u.id)!=null?o:u.key)!=null?i:u.label)!=null?s:"",f=(d=(c=(l=(a=u.label)!=null?a:u.text)!=null?l:u.name)!=null?c:u.title)!=null?d:p;return{value:String(p),label:String(f),disabled:ee(u.disabled)}}return{value:String(n),label:String(n),disabled:!1}}):[]}re("v-select",{inheritScope:!0,props:{label:L,placeholder:{type:"string",default:"Select"},searchPlaceholder:{type:"string",default:"Search..."},emptyText:{type:"string",default:"No options found"},options:{type:"any",default:""},value:{type:"any",default:""},hint:L,error:L,name:L,id:L,size:{type:"string",default:"md"},multiple:O,searchable:O,clearable:O,disabled:O,required:O},state(e){let t=e.id||ae("v-select-"),n=e.value;return{open:!1,query:"",activeIndex:-1,selected:Array.isArray(n)||n==null?"":String(n),selectedList:Array.isArray(n)?n.map(String):[],fieldId:t}},computed:{...ge("multiple","searchable","clearable","disabled","required"),listId(){return`${this.fieldId}-list`},labelId(){return`${this.fieldId}-label`},hintId(){return`${this.fieldId}-hint`},errorId(){return`${this.fieldId}-error`},describedBy(){return this.error?this.errorId:this.hint?this.hintId:null},allOptions(){var e;return sy((e=vr(this,this.options))!=null?e:this.options)},filtered(){var t;let e=String((t=this.query)!=null?t:"").trim().toLowerCase();return e?this.allOptions.filter(n=>n.label.toLowerCase().includes(e)):this.allOptions},currentValue(){return ee(this.multiple)?this.selectedList:this.selected},hasSelection(){return ee(this.multiple)?this.selectedList.length>0:this.selected!==""},display(){if(!this.hasSelection)return this.placeholder;let e=t=>{let n=this.allOptions.find(r=>r.value===String(t));return n?n.label:String(t)};return ee(this.multiple)?this.selectedList.map(e).join(", "):e(this.selected)},activeId(){return!this.open||this.activeIndex<0||this.activeIndex>=this.filtered.length?null:`${this.listId}-opt-${this.activeIndex}`}},methods:{optionId(e){return`${this.listId}-opt-${e}`},isSelected(e){return ee(this.multiple)?this.selectedList.indexOf(String(e))>-1:this.selected===String(e)},openList(){if(ee(this.disabled)||this.open)return;this.open=!0,this.query="";let e=this.filtered.findIndex(t=>this.isSelected(t.value));this.activeIndex=e>-1?e:0,at(()=>{let t=this.$refs.search;t&&t.focus()})},closeList(){this.open&&(this.open=!1,this.activeIndex=-1)},closeAndFocus(){let e=this.open;this.closeList(),e&&at(()=>{let t=this.$refs.trigger;t&&t.focus()})},toggleList(){this.open?this.closeAndFocus():this.openList()},choose(e){if(!(!e||e.disabled)){if(ee(this.multiple)){let t=[...this.selectedList],n=t.indexOf(e.value);n>-1?t.splice(n,1):t.push(e.value),this.selectedList=t}else this.selected=e.value,this.closeAndFocus();ho(this.$el),this.emit("change",this.currentValue)}},clear(){this.selected="",this.selectedList=[],ho(this.$el),this.emit("change",this.currentValue)},move(e){let t=this.filtered;if(!t.length)return;let n=this.activeIndex+e;n<0&&(n=t.length-1),n>=t.length&&(n=0),this.activeIndex=n},onKey(e){let t=e.key;if(t==="Escape"){e.preventDefault(),this.closeAndFocus();return}if(t==="ArrowDown"||t==="ArrowUp"){e.preventDefault(),this.open?this.move(t==="ArrowDown"?1:-1):this.openList();return}if(t==="Home"||t==="End"){if(!this.open)return;e.preventDefault(),this.activeIndex=t==="Home"?0:this.filtered.length-1;return}if(t==="Enter"){e.preventDefault(),this.open?this.choose(this.filtered[this.activeIndex]):this.openList();return}if(t===" "&&!ee(this.searchable)){e.preventDefault(),this.toggleList();return}t==="Tab"&&this.open&&this.closeList()}},beforeMount(){Xt(this,{get:()=>this.currentValue,set:e=>{if(ee(this.multiple)){this.selectedList=Array.isArray(e)?e.map(String):go(String(e!=null?e:""));return}this.selected=e==null?"":String(e)}})},template:`
|
|
960
960
|
<div class="v-field" :data-error="!!error" :data-disabled="isDisabled">
|
|
961
961
|
<label class="v-label" :id="labelId" v-if="label" v-click="openList">
|
|
962
962
|
<span v-text="label"></span>
|
|
@@ -1058,7 +1058,7 @@ ${Hl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1058
1058
|
<button type="button" class="v-tag-close" v-if="isClosable" :aria-label="removeLabel"
|
|
1059
1059
|
v-click="remove" v-html="svgIcon('x')"></button>
|
|
1060
1060
|
</span>
|
|
1061
|
-
`});var
|
|
1061
|
+
`});var ay={info:"info",primary:"info",success:"check",warning:"warning",danger:"alert",neutral:"info"};re("v-alert",{props:{tone:{type:"string",default:"info"},title:L,icon:L,closable:O,closeLabel:{type:"string",default:"Close alert"}},state(){return{visible:!0}},computed:{...ge("closable"),resolvedIcon(){return this.icon==="none"?"":this.icon||ay[this.tone]||"info"},liveRole(){return this.tone==="danger"?"alert":"status"}},methods:{dismiss(){this.visible=!1,this.emit("close")}},template:`
|
|
1062
1062
|
<div class="v-alert" v-show="visible" :data-tone="tone" :role="liveRole">
|
|
1063
1063
|
<span class="v-alert-icon" v-if="resolvedIcon" v-html="svgIcon(resolvedIcon)" aria-hidden="true"></span>
|
|
1064
1064
|
<div class="v-alert-body">
|
|
@@ -1068,7 +1068,7 @@ ${Hl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1068
1068
|
<button type="button" class="v-alert-close" v-if="isClosable" :aria-label="closeLabel"
|
|
1069
1069
|
v-click="dismiss" v-html="svgIcon('x')"></button>
|
|
1070
1070
|
</div>
|
|
1071
|
-
`});var
|
|
1071
|
+
`});var up=["primary","accent","success","warning","danger","info"];re("v-avatar",{props:{name:L,src:L,alt:L,size:{type:"string",default:"md"},shape:{type:"string",default:"circle"},status:L},state(){return{failed:!1}},computed:{initials(){var t;let e=String((t=this.name)!=null?t:"").trim().split(/\s+/).filter(Boolean);return e.length?e.length===1?e[0].slice(0,2).toUpperCase():(e[0][0]+e[e.length-1][0]).toUpperCase():"?"},tone(){var n;let e=String((n=this.name)!=null?n:""),t=0;for(let r=0;r<e.length;r++)t=(t+e.charCodeAt(r))%9973;return up[t%up.length]},toneStyle(){return{background:`var(--v-${this.tone}-soft)`,color:`var(--v-${this.tone}-soft-text)`}},showImage(){return!!this.src&&!this.failed},imageAlt(){return this.alt||this.name||"Avatar"}},methods:{onError(){this.failed=!0}},template:`
|
|
1072
1072
|
<span class="v-avatar" :data-size="size" :data-shape="shape" :style="toneStyle"
|
|
1073
1073
|
:title="name || null">
|
|
1074
1074
|
<img class="v-avatar-img" v-if="showImage" :src="src" :alt="imageAlt" v-on:error="onError">
|
|
@@ -1101,7 +1101,7 @@ ${Hl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1101
1101
|
:aria-orientation="isVertical ? 'vertical' : 'horizontal'" :style="spacingStyle">
|
|
1102
1102
|
<span v-if="label" v-text="label"></span>
|
|
1103
1103
|
</div>
|
|
1104
|
-
`});function
|
|
1104
|
+
`});function ly(e){return Array.isArray(e)?e.map(t=>{var r,o,i,s,a,l;if(t!=null&&typeof t=="object"){let c=t,d=String((i=(o=(r=c.key)!=null?r:c.field)!=null?o:c.name)!=null?i:"");return{key:d,label:String((a=(s=c.label)!=null?s:c.title)!=null?a:Nr(d)),align:String((l=c.align)!=null?l:"left"),sortable:c.sortable===void 0?!0:ee(c.sortable)}}let n=String(t);return{key:n,label:Nr(n),align:"left",sortable:!0}}):typeof e!="string"?[]:go(e).map(t=>{let n=t.split(":").map(o=>o.trim()),r=n[0];return{key:r,label:n[1]||Nr(r),align:n[2]||"left",sortable:n[3]!=="fixed"}})}re("v-table",{inheritScope:!0,props:{columns:{type:"any",default:""},rows:{type:"any",default:""},empty:{type:"string",default:"No records found"},sortable:{type:"any",default:!0},dense:O,striped:O,hover:{type:"any",default:!0},caption:L},state(){return{sortKey:"",sortDir:"asc"}},computed:{...ge("dense","striped"),isSortable(){return this.sortable===!0||ee(this.sortable)},isHover(){return this.hover===!0||ee(this.hover)},cols(){var e;return ly((e=vr(this,this.columns))!=null?e:this.columns)},allRows(){var t;let e=(t=vr(this,this.rows))!=null?t:this.rows;return Array.isArray(e)?e:[]},sorted(){let e=this.sortKey;if(!e||!this.isSortable)return this.allRows;let t=this.sortDir==="desc"?-1:1;return[...this.allRows].sort((n,r)=>{let o=Pr(n,e),i=Pr(r,e);return o==null&&i==null?0:o==null?-t:i==null?t:typeof o=="number"&&typeof i=="number"?(o-i)*t:String(o).localeCompare(String(i),w.locale,{numeric:!0})*t})}},methods:{cell(e,t){let n=Pr(e,t.key);return n==null?"":String(n)},ariaSort(e){return!this.isSortable||!e.sortable?null:this.sortKey!==e.key?"none":this.sortDir==="asc"?"ascending":"descending"},canSort(e){return this.isSortable&&e.sortable},arrowFor(e){return this.sortKey!==e.key?"chevron-down":this.sortDir==="asc"?"chevron-up":"chevron-down"},toggleSort(e){this.canSort(e)&&(this.sortKey===e.key?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sortKey=e.key,this.sortDir="asc"),this.emit("sort",{key:this.sortKey,direction:this.sortDir}))},alignStyle(e){return{textAlign:e.align}}},template:`
|
|
1105
1105
|
<div class="v-table-wrap">
|
|
1106
1106
|
<table class="v-table" :data-dense="isDense" :data-striped="isStriped" :data-hover="isHover">
|
|
1107
1107
|
<caption class="v-sr" v-if="caption" v-text="caption"></caption>
|
|
@@ -1140,7 +1140,7 @@ ${Hl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1140
1140
|
<button type="button" class="v-page" :disabled="currentPage >= lastPage"
|
|
1141
1141
|
:aria-label="nextLabel" v-click="go(currentPage + 1)" v-html="svgIcon('chevron-right')"></button>
|
|
1142
1142
|
</nav>
|
|
1143
|
-
`});function
|
|
1143
|
+
`});function cy(e){return Array.isArray(e)?e.map(t=>{var n,r,o,i,s,a;if(t!=null&&typeof t=="object"){let l=t;return{label:String((o=(r=(n=l.label)!=null?n:l.text)!=null?r:l.title)!=null?o:""),href:String((a=(s=(i=l.href)!=null?i:l.url)!=null?s:l.to)!=null?a:"")}}return{label:String(t),href:""}}):typeof e!="string"?[]:go(e).map(t=>{let n=t.indexOf(":");return n===-1?{label:t,href:""}:{label:t.slice(0,n).trim(),href:t.slice(n+1).trim()}})}re("v-breadcrumb",{inheritScope:!0,props:{items:{type:"any",default:""},separator:{type:"string",default:"/"},ariaLabel:{type:"string",default:"Breadcrumb"}},computed:{crumbs(){var e;return cy((e=vr(this,this.items))!=null?e:this.items)}},methods:{isLast(e){return e===this.crumbs.length-1}},template:`
|
|
1144
1144
|
<nav class="v-breadcrumb" :aria-label="ariaLabel">
|
|
1145
1145
|
<ol class="v-breadcrumb-list">
|
|
1146
1146
|
<li class="v-breadcrumb-item" v-for="(crumb, index) in crumbs" :key="index"
|
|
@@ -1174,7 +1174,7 @@ ${Hl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1174
1174
|
<p class="v-empty-desc" v-if="description" v-text="description"></p>
|
|
1175
1175
|
<div class="v-empty-actions"><slot></slot></div>
|
|
1176
1176
|
</div>
|
|
1177
|
-
`});function
|
|
1177
|
+
`});function dy(e){return Array.isArray(e)?e.map(t=>{var n,r,o,i,s,a,l;if(t!=null&&typeof t=="object"){let c=t;return{title:String((r=(n=c.title)!=null?n:c.label)!=null?r:""),description:String((i=(o=c.description)!=null?o:c.text)!=null?i:""),time:String((a=(s=c.time)!=null?s:c.date)!=null?a:""),tone:String((l=c.tone)!=null?l:"primary")}}return{title:String(t),description:"",time:"",tone:"primary"}}):typeof e!="string"||!e.trim()?[]:e.split(";").map(t=>t.trim()).filter(Boolean).map(t=>{var r,o,i;let n=t.split("|").map(s=>s.trim());return{title:(r=n[0])!=null?r:"",description:(o=n[1])!=null?o:"",time:(i=n[2])!=null?i:"",tone:n[3]||"primary"}})}re("v-timeline",{inheritScope:!0,props:{items:{type:"any",default:""}},computed:{entries(){var e;return dy((e=vr(this,this.items))!=null?e:this.items)}},template:`
|
|
1178
1178
|
<ol class="v-timeline">
|
|
1179
1179
|
<li class="v-timeline-item" v-for="(entry, index) in entries" :key="index" :data-tone="entry.tone">
|
|
1180
1180
|
<span class="v-timeline-rail" aria-hidden="true"><span class="v-timeline-dot"></span></span>
|
|
@@ -1223,7 +1223,7 @@ ${Hl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1223
1223
|
<span class="v-tip" v-if="tooltip" :id="tipId" role="tooltip"
|
|
1224
1224
|
:data-placement="placement" v-text="tooltip"></span>
|
|
1225
1225
|
</span>
|
|
1226
|
-
`});async function
|
|
1226
|
+
`});async function uy(e){try{if(typeof navigator!="undefined"&&navigator.clipboard)return await navigator.clipboard.writeText(e),!0}catch(t){}try{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let n=document.execCommand("copy");return t.remove(),n}catch(t){return!1}}re("v-code-block",{props:{code:L,language:L,filename:L,copyLabel:{type:"string",default:"Copy"},copiedLabel:{type:"string",default:"Copied"},wrap:O},state(){return{copied:!1}},computed:{...ge("wrap"),header(){return this.filename||this.language||""},buttonLabel(){return this.copied?this.copiedLabel:this.copyLabel},buttonIcon(){return this.copied?"check":"copy"}},methods:{async copy(){let e=this.$refs.code,t=this.code||(e==null?void 0:e.textContent)||"";await uy(String(t))&&(this.copied=!0,this.emit("copy",t),setTimeout(()=>{this.copied=!1},1800))}},template:`
|
|
1227
1227
|
<div class="v-code" :data-wrap="isWrap">
|
|
1228
1228
|
<div class="v-code-head">
|
|
1229
1229
|
<span class="v-code-name" v-text="header"></span>
|
|
@@ -1236,7 +1236,7 @@ ${Hl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1236
1236
|
<pre class="v-code-pre"><code v-ref="code" :class="language ? 'language-' + language : null"
|
|
1237
1237
|
v-text="code"><slot></slot></code></pre>
|
|
1238
1238
|
</div>
|
|
1239
|
-
`});var
|
|
1239
|
+
`});var _1=Object.keys(fp);He();le();var it={confirm:"Confirm",cancel:"Cancel",ok:"OK",close:"Close",confirmQuestion:"Are you sure?",required:"Please fill in this field."},Ul={duration:220,size:"md"},fy=`
|
|
1240
1240
|
[v-modal-content]:not(.v-dialog-open),[data-v-modal-content]:not(.v-dialog-open){display:none}
|
|
1241
1241
|
|
|
1242
1242
|
.v-dialog-root{position:fixed;inset:0;z-index:calc(var(--v-z-modal,1000) + var(--v-dialog-layer,0));
|
|
@@ -1332,8 +1332,8 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1332
1332
|
@media (prefers-reduced-motion: reduce){
|
|
1333
1333
|
.v-dialog-backdrop,.v-dialog-panel{transition:none}
|
|
1334
1334
|
}
|
|
1335
|
-
`;function
|
|
1336
|
-
`)){let d=document.createElement("p");d.textContent=c,i.appendChild(d)}if(e.html){let c=document.createElement("div");for(c.innerHTML=e.html;c.firstChild;)i.appendChild(c.firstChild)}e.node&&i.appendChild(e.node),t.appendChild(i);let s=(l=e.buttons)!=null?l:[{label:it.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(c=>{var u;let d=mp({...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,d),c(p===void 0?null:p)}});if(o&&d.panel.insertBefore(o,d.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",(u=f.variant)!=null?u:"secondary"),m.textContent=f.label,f.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var v,g;((v=f.onClick)==null?void 0:v.call(f,d))!==!1&&f.close!==!1&&d.close((g=f.value)!=null?g:null)}),p.appendChild(m)}d.panel.appendChild(p)}d.body.childNodes.length||d.body.remove()})}function by(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function Kl(e,t={}){var n;return hr({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:it.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function as(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return hr({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:it.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:it.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function Yl(e,t={}){var m,h,v,g;ss();let n=(m=t.type)!=null?m:"text",r=ae("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 l=n==="textarea"?document.createElement("textarea"):document.createElement("input");if(l.className="v-dialog-input",l.id=r,l instanceof HTMLInputElement&&(l.type=n==="textarea"?"text":n),l.value=(h=t.value)!=null?h:"",t.placeholder&&(l.placeholder=t.placeholder),t.required&&(l.required=!0),l.setAttribute("data-autofocus",""),s.appendChild(l),t.hint){let b=document.createElement("p");b.className="v-dialog-hint",b.id=o,b.textContent=t.hint,s.appendChild(b),l.setAttribute("aria-describedby",o)}let c=document.createElement("p");c.className="v-dialog-error",c.id=i,c.hidden=!0,c.setAttribute("role","alert"),s.appendChild(c);let d=()=>n==="number"?l.value.trim():l.value,u=b=>{var k,A;let x=d(),T=null;return t.required&&!x.trim()?T=it.required:T=(A=(k=t.validate)==null?void 0:k.call(t,x))!=null?A:null,T?(c.textContent=T,c.hidden=!1,l.setAttribute("aria-invalid","true"),l.setAttribute("aria-describedby",i),l.focus(),!1):(c.hidden=!0,l.removeAttribute("aria-invalid"),b.close(x),!0)},p=null;return l.addEventListener("keydown",b=>{let x=b;x.key==="Enter"&&(n==="textarea"&&!x.ctrlKey&&!x.metaKey||(b.preventDefault(),p&&u(p)))}),hr({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(v=t.cancelLabel)!=null?v:it.cancel,value:null,variant:"secondary"},{label:(g=t.confirmLabel)!=null?g:it.confirm,variant:"primary",close:!1,onClick(b){return p=b,u(b),!1}}],onOpen(b){var x;p=b,(x=t.onOpen)==null||x.call(t,b)}}).then(b=>typeof b=="string"?b:null)}y("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){En.close(o||void 0);return}if(n.toggle){o&&En.toggle(o);return}o&&En.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});y("modal-content",({el:e})=>{ss(),e.id||(e.id=ae("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:j.REF});y("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?Vl.get(i):void 0;s?s.handle.close(t.trim()||void 0):En.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var Bl=!1;y("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||it.confirmQuestion,i=s=>{var u,p,f;if(Bl)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,l=(u=ke(e,`${w.prefix}confirm-title`))!=null?u:void 0,c=(p=ke(e,`${w.prefix}confirm-label`))!=null?p:void 0,d=(f=ke(e,`${w.prefix}confirm-cancel`))!=null?f:void 0;as(o,{title:l,confirmLabel:c,cancelLabel:d,danger:!!n.danger,size:"sm"}).then(m=>{if(m){Bl=!0;try{a.click()}finally{Bl=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:j.REF});P("$modal",()=>En);P("$dialog",()=>hr);P("$alert",()=>Kl);P("$confirm",()=>as);P("$prompt",()=>Yl);be();le();var yo=new Map;function Te(e,t){yo.set(e.trim().toLowerCase(),t)}var yy={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},xy=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,gp=new Set(["currency","percent"]);function kn(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=yy[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 cs(e,t={}){var h,v,g,b,x;let n=Math.max(0,Math.trunc((h=t.decimals)!=null?h:2)),r=(v=t.decimal)!=null?v:",",o=(g=t.thousands)!=null?g:".",i=(b=t.prefix)!=null?b:"R$ ",s=(x=t.suffix)!=null?x:"",a=String(e!=null?e:""),l=a.trim().startsWith("-"),c=a.replace(/\D/g,"").slice(0,15);if(!c)return"";let d=c.padStart(n+1,"0"),u=n?d.slice(0,d.length-n):d,p=n?d.slice(d.length-n):"",m=u.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${l?"-":""}${i}${m}${n?r+p:""}${s}`}function bp(e,t=2){return cs(e,{prefix:"",suffix:"%",decimals:t})}Te("cpf","999.999.999-99");Te("cnpj","99.999.999/9999-99");Te("cep","99999-999");Te("date","99/99/9999");Te("time","99:99");Te("datetime","99/99/9999 99:99");Te("cvv","9999");Te("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return kn(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});Te("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return kn(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});Te("currency",e=>cs(e));Te("percent",e=>bp(e));Te("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?kn(t,"9999 999999 99999"):t.length>16?kn(t,"9999 9999 9999 9999 999"):kn(t,"9999 9999 9999 9999")});Te("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return kn(t,n?"AAA-9999":"AAA9A99")});Te("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});Te("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 bo(e,t){let n=e==null?"":String(e);if(!t)return n;let r=yo.get(t.trim().toLowerCase());return typeof r=="function"?r(n):kn(n,typeof r=="string"?r:t)}function ds(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&gp.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 yp=Object.assign((e,t)=>bo(e,t),{apply:bo,unmask:ds,register:Te,currency:cs,percent:bp,presets:yo});function ls(e){return e!==void 0&&xy.test(e)}function vp(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)ls(e[o])&&n++;return n}function hp(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(ls(e[r])&&(n++,n===t))return r+1;return e.length}var Xl=new WeakSet;function xp(e,t,n){var m;if(Xl.has(e))return;Xl.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 h;return String(i?i.call(e):(h=e.getAttribute("value"))!=null?h:"")},l=h=>{s?s.call(e,h):e.setAttribute("value",h)},c=h=>{try{e.setSelectionRange(h,h)}catch(v){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let h=String(i.call(e));return t.clean?t.clean(h):h},set(h){s.call(e,t.format(h==null?"":String(h)))}}),n(()=>{let h=a();Reflect.deleteProperty(e,"value"),l(h)}));let d=()=>{var x,T;let h=a(),v=(x=e.selectionStart)!=null?x:h.length,g=vp(h,v),b=t.format(h);b!==h&&l(b),t.rightToLeft?c(Math.max(0,b.length-((T=t.suffixLength)!=null?T:0))):c(hp(b,g))},u=()=>d(),p=h=>{var A,D;if(h.key!=="Backspace")return;let v=(A=e.selectionStart)!=null?A:0,g=(D=e.selectionEnd)!=null?D:0;if(v!==g||v===0)return;let b=a();if(ls(b[v-1]))return;let x=v-1;for(;x>=0&&!ls(b[x]);)x--;if(h.preventDefault(),x<0)return;let T=b.slice(0,x)+b.slice(v),k=vp(T,x);l(t.format(T)),c(hp(a(),k)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",u),e.addEventListener("keydown",p),n(()=>{Xl.delete(e),e.removeEventListener("input",u),e.removeEventListener("keydown",p)});let f=a();f&&l(t.format(f))}function wp(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return Y(`${w.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(`${w.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}y("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=wp(e,"mask");if(!o)return;let i=t.trim();if(!i){Y(`${w.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;xp(o,{format:l=>bo(l,i),clean:a?l=>ds(l,s):void 0,rightToLeft:gp.has(s),suffixLength:s==="percent"?1:0},r)},{priority:j.MODEL+5});y("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var p,f,m,h;let o=wp(e,"mask-currency");if(!o)return;let i=v=>{var g;return(g=e.getAttribute(`${w.prefix}${v}`))!=null?g:e.getAttribute(`data-v-${v}`)},s=(p=typeof n.decimals=="string"?n.decimals:null)!=null?p:i("mask-decimals"),a=s!==null&&s!==""?Number(s):2,l=t.trim()?t:"",c={prefix:n.plain?"":l||i("mask-prefix")||"R$ ",suffix:(f=i("mask-suffix"))!=null?f:"",decimals:Number.isFinite(a)?a:2,decimal:n.dot?".":",",thousands:n.dot?",":"."},d=!!n.unmask||!!n.raw,u=(m=c.decimals)!=null?m:2;xp(o,{format:v=>cs(v,c),clean:d?v=>{let g=v.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!g)return"";if(u===0)return g;let b=g.padStart(u+1,"0"),x=`${b.slice(0,b.length-u)}.${b.slice(b.length-u)}`;return v.trim().startsWith("-")?`-${x}`:x}:void 0,rightToLeft:!0,suffixLength:((h=c.suffix)!=null?h:"").length},r)},{priority:j.MODEL+5});le();He();var Eo="v-xray-flash",Mp=200,wy=400,We=!1,Ep=!1,U=null,Ze="estado",Tn="auto",br=[],yr=[],Gt=new Map,ps=new Set,wo=new Map,ko=[],Gl=new WeakMap,we={effects:0,mutations:0,effectsPerSecond:0,updatesPerSecond:0,history:[]},yt=[],us=0,fs=0,xr=0,wr=0,xo=null,Ey=`
|
|
1335
|
+
`;function as(){he(),vo(),ne("dialog",fy)}var Wl={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>'},Je=[],_l=new WeakMap,Kl=0,pp="",mp="";function py(){if(Kl++>0)return;let e=document.body;pp=e.style.overflow,mp=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 my(){Kl!==0&&(--Kl>0||(document.body.style.overflow=pp,document.body.style.paddingRight=mp))}var vy='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 Yl(e){return Array.from(e.querySelectorAll(vy)).filter(t=>t.hasAttribute("disabled")||t.getAttribute("aria-hidden")==="true"?!1:t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0)}function Xl(){return Je[Je.length-1]}function hy(){return typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches}var ss=!1;function vp(e){let t=Xl();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=Yl(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 hp(e){var o;let t=Xl();if(!t)return;let n=e.target;if(n&&t.handle.root.contains(n))return;((o=Yl(t.handle.panel)[0])!=null?o:t.handle.panel).focus()}function gy(){ss||(ss=!0,document.addEventListener("keydown",vp,!0),document.addEventListener("focusin",hp,!0))}function by(){ss&&(ss=!1,document.removeEventListener("keydown",vp,!0),document.removeEventListener("focusin",hp,!0))}function gp(e){var p,f,m,h,v,g,b;as();let t=ae("v-dialog-"),n=hy()?0:Ul.duration,r=document.createElement("div");r.className="v-dialog-root",r.id=t,r.setAttribute("data-size",(p=e.size)!=null?p:Ul.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(Je.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 x=document.createComment(" v-modal ");(h=e.source.parentNode)==null||h.insertBefore(x,e.source),ql.set(e.source,x),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 x=document.createElement("button");x.type="button",x.className="v-dialog-x",x.setAttribute("aria-label",it.close),x.innerHTML=Wl.close,x.addEventListener("click",()=>d.close(void 0)),i.appendChild(x)}let a=!1,l=()=>{},c=new Promise(x=>{l=x}),d={id:t,root:r,panel:i,body:s,key:(v=e.key)!=null?v:null,source:(g=e.source)!=null?g:null,closed:c,close(x){if(a)return;a=!0;let T=Je.findIndex(A=>A.handle===d);T>-1&&Je.splice(T,1),_l.delete(r),u.locked&&my(),Je.length||by(),r.classList.remove("is-open"),r.classList.add("is-closing");let k=()=>{var D;let A=e.source;if(A){let C=ql.get(A);A.classList.remove("v-dialog-open"),C&&C.parentNode?(C.parentNode.insertBefore(A,C),C.remove()):A.remove(),ql.delete(A),Ys(A,"modal-content")&&A.setAttribute("hidden","")}if(r.remove(),(D=e.onClose)==null||D.call(e,x,d),l(x),e.restoreFocus!==!1){let C=u.previousFocus;C&&typeof C.focus=="function"&&C.isConnected&&C.focus()}};n>0?setTimeout(k,n):k()}},u={handle:d,options:e,previousFocus:document.activeElement,locked:e.lockScroll!==!1};return o.addEventListener("click",()=>{e.closeOnBackdrop!==!1&&d.close(void 0)}),u.locked&&py(),Je.push(u),_l.set(r,u),gy(),document.body.appendChild(r),requestAnimationFrame(()=>{r.classList.add("is-open");let x=yy(e,i);x==null||x.focus()}),(b=e.onOpen)==null||b.call(e,d),d}var ql=new WeakMap;function yy(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=Yl(t)[0])!=null?i:t)}function xy(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 os(e){return typeof e=="string"?e.trim()||null:e.id?`#${e.id}`:null}function is(e){let t=/^[\w-]+$/.test(e)?`#${e}`:e;return Je.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 En={open(e,t={}){var s,a;let n=xy(e);if(!n)return console.warn(`[Voodoo] modal.open: target not found (${String(e)}).`),null;let r=(s=os(e))!=null?s:n.id?`#${n.id}`:null,o=r?is(r):void 0;if(o)return o.handle;let i=n.querySelector("[data-dialog-title],h1,h2,h3");return i&&!i.id&&(i.id=ae("v-dialog-title-")),gp({...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=Xl())==null||o.handle.close(t);return}let n=os(e),r=n?is(n):void 0;r==null||r.handle.close(t)},closeAll(e){for(let t of[...Je].reverse())t.handle.close(e)},toggle(e,t={}){let n=os(e),r=n?is(n):void 0;return r?(r.handle.close(void 0),null):this.open(e,t)},isOpen(e){if(e===void 0)return Je.length>0;let t=os(e);return!!(t&&is(t))},get opened(){return Je.map(e=>e.handle)},get count(){return Je.length},configure(e){Object.assign(Ul,e)},labels(e){return Object.assign(it,e),it}};function hr(e){var a,l;as();let t=document.createDocumentFragment(),n=e.title?ae("v-dialog-title-"):null,r=e.description?ae("v-dialog-desc-"):null,o=null;if(e.title||e.description||e.icon){o=document.createElement("div"),o.className="v-dialog-head";let c=e.icon&&e.icon!=="none"?e.icon:null;if(c&&Wl[c]){let u=document.createElement("div");u.className="v-dialog-icon",u.setAttribute("aria-hidden","true"),u.setAttribute("data-tone",(a=e.tone)!=null?a:wy(c)),u.innerHTML=Wl[c],o.appendChild(u)}let d=document.createElement("div");if(d.className="v-dialog-heading",e.title){let u=document.createElement("h2");u.className="v-dialog-title",u.id=n,u.textContent=e.title,d.appendChild(u)}if(e.description){let u=document.createElement("p");u.className="v-dialog-desc",u.id=r,u.textContent=e.description,d.appendChild(u)}o.appendChild(d)}let i=document.createDocumentFragment();if(e.text)for(let c of e.text.split(`
|
|
1336
|
+
`)){let d=document.createElement("p");d.textContent=c,i.appendChild(d)}if(e.html){let c=document.createElement("div");for(c.innerHTML=e.html;c.firstChild;)i.appendChild(c.firstChild)}e.node&&i.appendChild(e.node),t.appendChild(i);let s=(l=e.buttons)!=null?l:[{label:it.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(c=>{var u;let d=gp({...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,d),c(p===void 0?null:p)}});if(o&&d.panel.insertBefore(o,d.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",(u=f.variant)!=null?u:"secondary"),m.textContent=f.label,f.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var v,g;((v=f.onClick)==null?void 0:v.call(f,d))!==!1&&f.close!==!1&&d.close((g=f.value)!=null?g:null)}),p.appendChild(m)}d.panel.appendChild(p)}d.body.childNodes.length||d.body.remove()})}function wy(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function Gl(e,t={}){var n;return hr({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:it.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function ls(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return hr({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:it.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:it.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function Ql(e,t={}){var m,h,v,g;as();let n=(m=t.type)!=null?m:"text",r=ae("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 l=n==="textarea"?document.createElement("textarea"):document.createElement("input");if(l.className="v-dialog-input",l.id=r,l instanceof HTMLInputElement&&(l.type=n==="textarea"?"text":n),l.value=(h=t.value)!=null?h:"",t.placeholder&&(l.placeholder=t.placeholder),t.required&&(l.required=!0),l.setAttribute("data-autofocus",""),s.appendChild(l),t.hint){let b=document.createElement("p");b.className="v-dialog-hint",b.id=o,b.textContent=t.hint,s.appendChild(b),l.setAttribute("aria-describedby",o)}let c=document.createElement("p");c.className="v-dialog-error",c.id=i,c.hidden=!0,c.setAttribute("role","alert"),s.appendChild(c);let d=()=>n==="number"?l.value.trim():l.value,u=b=>{var k,A;let x=d(),T=null;return t.required&&!x.trim()?T=it.required:T=(A=(k=t.validate)==null?void 0:k.call(t,x))!=null?A:null,T?(c.textContent=T,c.hidden=!1,l.setAttribute("aria-invalid","true"),l.setAttribute("aria-describedby",i),l.focus(),!1):(c.hidden=!0,l.removeAttribute("aria-invalid"),b.close(x),!0)},p=null;return l.addEventListener("keydown",b=>{let x=b;x.key==="Enter"&&(n==="textarea"&&!x.ctrlKey&&!x.metaKey||(b.preventDefault(),p&&u(p)))}),hr({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(v=t.cancelLabel)!=null?v:it.cancel,value:null,variant:"secondary"},{label:(g=t.confirmLabel)!=null?g:it.confirm,variant:"primary",close:!1,onClick(b){return p=b,u(b),!1}}],onOpen(b){var x;p=b,(x=t.onOpen)==null||x.call(t,b)}}).then(b=>typeof b=="string"?b:null)}y("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){En.close(o||void 0);return}if(n.toggle){o&&En.toggle(o);return}o&&En.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});y("modal-content",({el:e})=>{as(),e.id||(e.id=ae("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:j.REF});y("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?_l.get(i):void 0;s?s.handle.close(t.trim()||void 0):En.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var Vl=!1;y("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||it.confirmQuestion,i=s=>{var u,p,f;if(Vl)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,l=(u=ke(e,`${w.prefix}confirm-title`))!=null?u:void 0,c=(p=ke(e,`${w.prefix}confirm-label`))!=null?p:void 0,d=(f=ke(e,`${w.prefix}confirm-cancel`))!=null?f:void 0;ls(o,{title:l,confirmLabel:c,cancelLabel:d,danger:!!n.danger,size:"sm"}).then(m=>{if(m){Vl=!0;try{a.click()}finally{Vl=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:j.REF});P("$modal",()=>En);P("$dialog",()=>hr);P("$alert",()=>Gl);P("$confirm",()=>ls);P("$prompt",()=>Ql);be();le();var yo=new Map;function Te(e,t){yo.set(e.trim().toLowerCase(),t)}var Ey={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},ky=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,xp=new Set(["currency","percent"]);function kn(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=Ey[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 ds(e,t={}){var h,v,g,b,x;let n=Math.max(0,Math.trunc((h=t.decimals)!=null?h:2)),r=(v=t.decimal)!=null?v:",",o=(g=t.thousands)!=null?g:".",i=(b=t.prefix)!=null?b:"R$ ",s=(x=t.suffix)!=null?x:"",a=String(e!=null?e:""),l=a.trim().startsWith("-"),c=a.replace(/\D/g,"").slice(0,15);if(!c)return"";let d=c.padStart(n+1,"0"),u=n?d.slice(0,d.length-n):d,p=n?d.slice(d.length-n):"",m=u.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${l?"-":""}${i}${m}${n?r+p:""}${s}`}function wp(e,t=2){return ds(e,{prefix:"",suffix:"%",decimals:t})}Te("cpf","999.999.999-99");Te("cnpj","99.999.999/9999-99");Te("cep","99999-999");Te("date","99/99/9999");Te("time","99:99");Te("datetime","99/99/9999 99:99");Te("cvv","9999");Te("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return kn(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});Te("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return kn(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});Te("currency",e=>ds(e));Te("percent",e=>wp(e));Te("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?kn(t,"9999 999999 99999"):t.length>16?kn(t,"9999 9999 9999 9999 999"):kn(t,"9999 9999 9999 9999")});Te("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return kn(t,n?"AAA-9999":"AAA9A99")});Te("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});Te("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 bo(e,t){let n=e==null?"":String(e);if(!t)return n;let r=yo.get(t.trim().toLowerCase());return typeof r=="function"?r(n):kn(n,typeof r=="string"?r:t)}function us(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&xp.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 Ep=Object.assign((e,t)=>bo(e,t),{apply:bo,unmask:us,register:Te,currency:ds,percent:wp,presets:yo});function cs(e){return e!==void 0&&ky.test(e)}function bp(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)cs(e[o])&&n++;return n}function yp(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(cs(e[r])&&(n++,n===t))return r+1;return e.length}var Jl=new WeakSet;function kp(e,t,n){var m;if(Jl.has(e))return;Jl.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 h;return String(i?i.call(e):(h=e.getAttribute("value"))!=null?h:"")},l=h=>{s?s.call(e,h):e.setAttribute("value",h)},c=h=>{try{e.setSelectionRange(h,h)}catch(v){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let h=String(i.call(e));return t.clean?t.clean(h):h},set(h){s.call(e,t.format(h==null?"":String(h)))}}),n(()=>{let h=a();Reflect.deleteProperty(e,"value"),l(h)}));let d=()=>{var x,T;let h=a(),v=(x=e.selectionStart)!=null?x:h.length,g=bp(h,v),b=t.format(h);b!==h&&l(b),t.rightToLeft?c(Math.max(0,b.length-((T=t.suffixLength)!=null?T:0))):c(yp(b,g))},u=()=>d(),p=h=>{var A,D;if(h.key!=="Backspace")return;let v=(A=e.selectionStart)!=null?A:0,g=(D=e.selectionEnd)!=null?D:0;if(v!==g||v===0)return;let b=a();if(cs(b[v-1]))return;let x=v-1;for(;x>=0&&!cs(b[x]);)x--;if(h.preventDefault(),x<0)return;let T=b.slice(0,x)+b.slice(v),k=bp(T,x);l(t.format(T)),c(yp(a(),k)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",u),e.addEventListener("keydown",p),n(()=>{Jl.delete(e),e.removeEventListener("input",u),e.removeEventListener("keydown",p)});let f=a();f&&l(t.format(f))}function Tp(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return Y(`${w.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(`${w.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}y("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=Tp(e,"mask");if(!o)return;let i=t.trim();if(!i){Y(`${w.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;kp(o,{format:l=>bo(l,i),clean:a?l=>us(l,s):void 0,rightToLeft:xp.has(s),suffixLength:s==="percent"?1:0},r)},{priority:j.MODEL+5});y("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var p,f,m,h;let o=Tp(e,"mask-currency");if(!o)return;let i=v=>{var g;return(g=e.getAttribute(`${w.prefix}${v}`))!=null?g:e.getAttribute(`data-v-${v}`)},s=(p=typeof n.decimals=="string"?n.decimals:null)!=null?p:i("mask-decimals"),a=s!==null&&s!==""?Number(s):2,l=t.trim()?t:"",c={prefix:n.plain?"":l||i("mask-prefix")||"R$ ",suffix:(f=i("mask-suffix"))!=null?f:"",decimals:Number.isFinite(a)?a:2,decimal:n.dot?".":",",thousands:n.dot?",":"."},d=!!n.unmask||!!n.raw,u=(m=c.decimals)!=null?m:2;kp(o,{format:v=>ds(v,c),clean:d?v=>{let g=v.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!g)return"";if(u===0)return g;let b=g.padStart(u+1,"0"),x=`${b.slice(0,b.length-u)}.${b.slice(b.length-u)}`;return v.trim().startsWith("-")?`-${x}`:x}:void 0,rightToLeft:!0,suffixLength:((h=c.suffix)!=null?h:"").length},r)},{priority:j.MODEL+5});le();He();var Eo="v-xray-flash",Cp=200,Ty=400,We=!1,Lp=!1,W=null,Ze="estado",Tn="auto",br=[],yr=[],Gt=new Map,ms=new Set,wo=new Map,ko=[],Zl=new WeakMap,we={effects:0,mutations:0,effectsPerSecond:0,updatesPerSecond:0,history:[]},yt=[],fs=0,ps=0,xr=0,wr=0,xo=null,Ly=`
|
|
1337
1337
|
.v-xray-root{
|
|
1338
1338
|
all: initial;
|
|
1339
1339
|
--vx-accent:#6D3BF5;
|
|
@@ -1645,7 +1645,7 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1645
1645
|
@media (max-width: 640px){
|
|
1646
1646
|
.v-xray-panel{right:8px;left:8px;width:auto;max-height:60vh}
|
|
1647
1647
|
}
|
|
1648
|
-
`;function M(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r}function vs(e){if(!e||!U)return!1;let t=e.nodeType===1?e:e.parentElement;return!!t&&U.root.contains(t)}function Er(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",r=typeof e.className=="string"&&e.className?`.${e.className.trim().split(/\s+/).slice(0,2).join(".")}`:"";return`${t}${n}${r}`}function Sp(e,t=64){var r;if(e===null)return"null";if(e===void 0)return"undefined";let n=typeof e;if(n==="function")return"function()";if(n==="string")return`"${Go(e,t)}"`;if(n==="number"||n==="boolean"||n==="symbol")return String(e);if(typeof Element!="undefined"&&e instanceof Element)return`<${e.tagName.toLowerCase()}>`;try{return Go((r=JSON.stringify(e))!=null?r:String(e),t)}catch(o){return String(e)}}function ky(e){var t;if(typeof e=="string")return e;try{return(t=JSON.stringify(e))!=null?t:""}catch(n){return String(e)}}function Ty(e,t){if(typeof t=="string")return e;try{return JSON.parse(e)}catch(n){return e}}function Ap(e){let t=new Date(e),n=r=>String(r).padStart(2,"0");return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function Cp(e,t){for(let n of e.effects)t.push(n);for(let n of e.children)Cp(n,t)}function Jl(e){let t=[];for(let n of Gc(e))Cp(n,t);return t}function Rp(e){let t=Jl(e).length;for(let n of Array.from(e.childNodes))n.nodeType===3&&(t+=Jl(n).length);return t}function $p(e){if(!e||!We||vs(e))return;let t=wo.get(e);t&&window.clearTimeout(t),ps.add(e),e.classList.add(Eo);let n=window.setTimeout(()=>{e.classList.remove(Eo),wo.delete(e),window.setTimeout(()=>ps.delete(e),0)},460);wo.set(e,n)}function kp(e,t){for(let n of Jl(e)){if(Gt.has(n))continue;let r=n.fn;Gt.set(n,r),n.fn=()=>(we.effects++,$p(t),r())}}function Ly(){for(let[e,t]of Gt)e.fn=t;Gt.clear()}function Dp(){if(!We||typeof document=="undefined")return;for(let[n]of Gt)n.active||Gt.delete(n);let e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT),t=e.currentNode;for(;t;){if(t.nodeType===1){let n=t;if(U&&U.root.contains(n)){t=My(e);continue}kp(n,n)}else t.nodeType===3&&t.parentElement&&kp(t,t.parentElement);t=e.nextNode()}Cy()}function My(e){let t=e.currentNode,n=e.nextSibling();if(n)return n;let r=e.parentNode();for(;r;){if(n=e.nextSibling(),n)return n;r=e.parentNode()}return e.currentNode=t,null}function Sy(){let e=[],t=document.body.querySelectorAll("*");for(let n=0;n<t.length&&e.length<wy;n++){let r=t[n];U&&U.root.contains(r)||Xs(r)&&e.push(r)}return e}function Ay(e){return Dn(e).map(t=>t.arg?`${t.name}:${t.arg}`:t.name)}function Cy(){var t;if(!We||!U)return;let e=U.overlay;e.textContent="",ko.length=0;for(let n of Sy()){let r=M("div","v-xray-box"),o=!!((t=Lt(n))!=null&&t.component);r.dataset.kind=o?"component":"directive";let i=M("span","v-xray-tag",Ay(n).join(" "));r.appendChild(i),e.appendChild(r),ko.push({el:n,box:r})}tc()}function tc(){if(We)for(let e of ko){if(!e.el.isConnected){e.box.style.display="none";continue}let t=e.el.getBoundingClientRect();if(t.width===0&&t.height===0){e.box.style.display="none";continue}e.box.style.display="block",e.box.style.left=`${t.left}px`,e.box.style.top=`${t.top}px`,e.box.style.width=`${t.width}px`,e.box.style.height=`${t.height}px`}}function Ry(){wr||(wr=requestAnimationFrame(()=>{wr=0,tc()}))}function $y(e,t=40){let n=new Set,r=[],o=e;for(;o&&r.length<t;){let i=[];try{i=Object.keys(o.data)}catch(s){i=[]}for(let s of i){if(n.has(s))continue;n.add(s);let a;try{a=o.data[s]}catch(l){a="(read error)"}if(r.push([s,a]),r.length>=t)break}o=o.parent}return r}function Dy(e){var s;if(!U)return;let t=U.card;t.textContent="";let n=Ve(e),r=(s=n.owner)==null?void 0:s.component;t.appendChild(M("strong","v-xray-card-title",Er(e))),t.appendChild(M("span","v-xray-section","Directives"));let o=Dn(e);if(!o.length)t.appendChild(M("div","v-xray-val","none"));else for(let a of o){let l=M("div","v-xray-row");l.appendChild(M("span","v-xray-key",a.raw)),l.appendChild(M("span","v-xray-val",a.expression||"(no value)")),t.appendChild(l)}t.appendChild(M("span","v-xray-section","Component")),t.appendChild(M("div","v-xray-val",r?`${r.$name} in ${Er(r.$el)}`:"none")),t.appendChild(M("span","v-xray-section","Scope"));let i=$y(n);if(!i.length)t.appendChild(M("div","v-xray-val","root scope empty"));else for(let[a,l]of i){let c=M("div","v-xray-row");c.appendChild(M("span","v-xray-key",a)),c.appendChild(M("span","v-xray-val",Sp(l))),t.appendChild(c)}t.appendChild(M("span","v-xray-section","Reactivity")),t.appendChild(M("div","v-xray-val",`${Rp(e)} effect(s) depend on this element`))}function Hy(e,t){if(!U)return;let n=U.card,r=320,o=Math.min(n.scrollHeight||200,window.innerHeight*.6),i=e+16+r>window.innerWidth?Math.max(8,e-r-16):e+16,s=t+16+o>window.innerHeight?Math.max(8,t-o-16):t+16;n.style.left=`${i}px`,n.style.top=`${s}px`}function Tp(e){if(!We||!U)return;let t=e.target;if(!t||vs(t)){U.card.dataset.open="0",xo=null;return}let n=t;for(;n&&n!==document.body&&!Xs(n);)n=n.parentElement;if(!n||n===document.body){U.card.dataset.open="0",xo=null;return}n!==xo&&(xo=n,Dy(n)),U.card.dataset.open="1",Hy(e.clientX,e.clientY)}function Py(){let e=new Map,t=document.body.querySelectorAll("*");for(let r=0;r<t.length;r++){let o=t[r];if(U&&U.root.contains(o))continue;let i=Lt(o);i&&e.set(o,i)}let n=[];for(let[r,o]of e){let i=0,s=r.parentElement;for(;s;)e.has(s)&&i++,s=s.parentElement;n.push({el:r,scope:o,depth:i})}return n}function ms(e,t,n){let r=M("div","v-xray-row");if(r.appendChild(M("span","v-xray-key",e)),typeof t=="function")return r.appendChild(M("span","v-xray-val","function()")),r;let o=M("input","v-xray-input");return o.type="text",o.value=ky(t),o.spellcheck=!1,o.addEventListener("change",()=>{try{n(Ty(o.value,t)),o.dataset.error="0"}catch(i){o.dataset.error="1"}}),o.addEventListener("keydown",i=>{i.key==="Enter"&&o.blur()}),r.appendChild(o),r}function Ny(){let e=document.createDocumentFragment(),t=Py();if(!t.length)return e.appendChild(M("span","v-xray-empty","No scopes on the page. Use v-data or a component.")),e;for(let n of t){let r=M("div","v-xray-group");r.style.marginLeft=`${Math.min(n.depth,4)*8}px`;let o=M("div","v-xray-group-head");o.appendChild(M("span","v-xray-badge",n.scope.component?"component":"scope")),o.appendChild(M("span",void 0,Er(n.el))),o.addEventListener("click",()=>Pp(n.el)),r.appendChild(o);let i=M("div","v-xray-rows"),s=[];try{s=Object.keys(n.scope.data)}catch(a){s=[]}if(!s.length)i.appendChild(M("span","v-xray-empty","no variables"));else for(let a of s){let l;try{l=n.scope.data[a]}catch(c){l=void 0}i.appendChild(ms(a,l,c=>{n.scope.set(a,c)}))}r.appendChild(i),e.appendChild(r)}return e}function Oy(){var n;let e=document.createDocumentFragment(),t=[...Mt];if(!t.length)return e.appendChild(M("span","v-xray-empty","No components mounted.")),e;for(let r of t){let o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge",r.$name)),i.appendChild(M("span",void 0,Er(r.$el))),i.appendChild(M("span","v-xray-badge",`${Rp(r.$el)} effects`)),i.lastChild.dataset.tone="mute",i.addEventListener("click",()=>Pp(r.$el)),o.appendChild(i);let s=M("div","v-xray-rows"),a=(n=r.$props)!=null?n:{},l=Object.keys(a);if(l.length){s.appendChild(M("span","v-xray-section","Props"));for(let u of l)s.appendChild(ms(u,a[u],p=>{a[u]=p}))}let c=r.$scope,d=[];try{d=Object.keys(c.data).filter(u=>!l.includes(u))}catch(u){d=[]}if(d.length){s.appendChild(M("span","v-xray-section","State"));for(let u of d){let p;try{p=c.data[u]}catch(f){p=void 0}s.appendChild(ms(u,p,f=>{c.set(u,f)}))}}o.appendChild(s),e.appendChild(o)}return e}function Fy(){let e=document.createDocumentFragment(),t=Ko();if(!t.length)return e.appendChild(M("span","v-xray-empty","No global stores. Create one with V.store().")),e;for(let n of t){let r=Fn[n],o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge","store")),i.firstChild.dataset.tone="alt",i.appendChild(M("span",void 0,n)),o.appendChild(i);let s=M("div","v-xray-rows"),a=r?Object.keys(r):[];if(!a.length)s.appendChild(M("span","v-xray-empty","empty store"));else for(let l of a)s.appendChild(ms(l,r[l],c=>{r[l]=c}));o.appendChild(s),e.appendChild(o)}return e}function Hp(e,t,n,r){let o=M("div","v-xray-log");if(o.appendChild(M("span","v-xray-log-time",e)),o.appendChild(M("span","v-xray-log-main",t)),n!==void 0){let i=M("span",r==="fail"?"v-xray-fail":r==="ok"?"v-xray-ok":void 0,n);o.appendChild(i)}return o}function Iy(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{br.length=0,Qt()}),e.appendChild(t),!br.length)return e.appendChild(M("span","v-xray-empty","No events yet. Interact with the page.")),e;for(let n of[...br].reverse())e.appendChild(Hp(Ap(n.at),`${n.type} on ${n.target}`,n.detail||n.source));return e}function zy(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{yr.length=0,Qt()}),e.appendChild(t),!yr.length)return e.appendChild(M("span","v-xray-empty","No requests yet. v-get, v-post and V.http show up here.")),e;for(let n of[...yr].reverse())e.appendChild(Hp(Ap(n.at),`${n.method} ${n.url}`,`${n.status||"---"} ${Math.round(n.duration)}ms`,n.ok?"ok":"fail"));return e}function By(){let e=document.createDocumentFragment(),t=M("div","v-xray-metric");t.appendChild(M("span","v-xray-metric-value",String(we.updatesPerSecond))),t.appendChild(M("span",void 0,"DOM updates per second")),e.appendChild(t);let n=M("div","v-xray-metric");n.appendChild(M("span","v-xray-metric-value",String(we.effectsPerSecond))),n.appendChild(M("span",void 0,"reactive effects triggered per second")),e.appendChild(n);let r=M("div","v-xray-metric");r.appendChild(M("span","v-xray-metric-value",String(we.effects))),r.appendChild(M("span",void 0,"effects triggered since x-ray was enabled")),e.appendChild(r);let o=M("div","v-xray-chart"),i=Math.max(1,...we.history.map(s=>Math.max(s.effects,s.updates)));for(let s of we.history){let a=M("div","v-xray-bar"),l=Math.max(s.effects,s.updates);a.style.height=`${Math.max(2,Math.round(l/i*46))}px`,a.title=`${s.effects} effects, ${s.updates} updates`,o.appendChild(a)}return e.appendChild(o),e.appendChild(M("span","v-xray-hint",`${Gt.size} effects instrumented, peak of ${i} per second`)),e}var jy=[{id:"estado",label:"Estado"},{id:"componentes",label:"Componentes"},{id:"stores",label:"Stores"},{id:"eventos",label:"Eventos"},{id:"rede",label:"Rede"},{id:"desempenho",label:"Desempenho"}];function Qt(){if(!U)return;let e=document.activeElement;if(!(e instanceof HTMLInputElement&&U.body.contains(e))){switch(U.body.textContent="",Ze){case"estado":U.body.appendChild(Ny());break;case"componentes":U.body.appendChild(Oy());break;case"stores":U.body.appendChild(Fy());break;case"eventos":U.body.appendChild(Iy());break;case"rede":U.body.appendChild(zy());break;case"desempenho":U.body.appendChild(By());break}for(let t of Array.from(U.tabs.children)){let n=t;n.dataset.active=n.dataset.id===Ze?"1":"0"}U.status.textContent=`${ko.length} elements with directives, ${Mt.size} components, ${Gt.size} effects observed`}}function Pp(e){e.scrollIntoView({behavior:"smooth",block:"center"}),$p(e)}function qy(){let e=M("div","v-xray-root");e.setAttribute(`${w.prefix}ignore`,""),e.setAttribute("role","complementary"),e.setAttribute("aria-label","Voodoo x-ray inspector"),Tn!=="auto"&&(e.dataset.vXrayTheme=Tn);let t=M("div","v-xray-overlay");e.appendChild(t);let n=M("div","v-xray-card");n.dataset.open="0",e.appendChild(n);let r=M("div","v-xray-panel"),o=M("div","v-xray-header"),i=M("div","v-xray-brand");i.appendChild(M("span","v-xray-dot")),i.appendChild(document.createTextNode("Voodoo x-ray")),o.appendChild(i);let s=M("button","v-xray-btn","theme");s.addEventListener("click",()=>{Tn=Tn==="auto"?"dark":Tn==="dark"?"light":"auto",Tn==="auto"?delete e.dataset.vXrayTheme:e.dataset.vXrayTheme=Tn}),o.appendChild(s);let a=M("button","v-xray-btn","close");a.addEventListener("click",()=>Np()),o.appendChild(a),r.appendChild(o);let l=M("div","v-xray-tabs");for(let u of jy){let p=M("button","v-xray-tab",u.label);p.dataset.id=u.id,p.dataset.active=u.id===Ze?"1":"0",p.addEventListener("click",()=>{Ze=u.id,Qt()}),l.appendChild(p)}r.appendChild(l);let c=M("div","v-xray-body");r.appendChild(c);let d=M("div","v-xray-status","starting");return r.appendChild(d),e.appendChild(r),document.body.appendChild(e),{root:e,overlay:t,card:n,panel:r,tabs:l,body:c,status:d}}var Vy=["click","dblclick","submit","input","change","keydown","keyup","focus","blur","contextmenu","drop","paste"];function Lp(e){br.push(e),br.length>Mp&&br.shift(),Ze==="eventos"&&Qt()}function Ql(e){yr.push(e),yr.length>Mp&&yr.shift(),Ze==="rede"&&Qt()}function Uy(e,t){let n=e;for(let r=0;n&&r<6;r++){for(let o of Dn(n))if(o.name===t||o.name==="on"&&o.arg===t)return n;n=n.parentElement}return null}function Wy(){let e=new Set(Vy),t=document.body.querySelectorAll("*");for(let n=0;n<t.length;n++){let r=t[n];if(!(U&&U.root.contains(r)))for(let o of Dn(r))o.name==="on"&&o.arg&&e.add(o.arg)}return[...e]}function _y(){let e=t=>{if(!We)return;let n=t.target;if(!n||n.nodeType!==1||vs(n))return;let r=Uy(n,t.type),o=t.__voodoo===!0;!r&&!o||Lp({at:Date.now(),type:t.type,target:Er(r!=null?r:n),detail:o?"component emit":"",source:o?"component":"v-on"})};for(let t of Wy())document.addEventListener(t,e,!0),yt.push(()=>document.removeEventListener(t,e,!0));yt.push(Fe.on("event",t=>{var n,r;Lp({at:Date.now(),type:t.type,target:Er((n=t.el)!=null?n:null),detail:Sp(t.detail),source:(r=t.source)!=null?r:"bus"})}))}function Ky(){yt.push(ve.interceptors.request.use(e=>(Gl.set(e,performance.now()),e))),yt.push(ve.interceptors.response.use(e=>{var n,r;let t=(n=Gl.get(e.config))!=null?n:performance.now();return Ql({at:Date.now(),method:((r=e.config.method)!=null?r:"GET").toUpperCase(),url:e.config.url,status:e.status,ok:e.ok,duration:performance.now()-t,source:"http"}),e})),yt.push(ve.interceptors.error.use(e=>{var r,o,i;let t=e.config,n=t&&(r=Gl.get(t))!=null?r:performance.now();return Ql({at:Date.now(),method:((o=t==null?void 0:t.method)!=null?o:"GET").toUpperCase(),url:(i=t==null?void 0:t.url)!=null?i:"(unknown)",status:e.status,ok:!1,duration:performance.now()-n,source:"http"}),e})),yt.push(Fe.on("network",e=>{var t,n,r,o,i;Ql({at:Date.now(),method:((t=e.method)!=null?t:"GET").toUpperCase(),url:e.url,status:(n=e.status)!=null?n:0,ok:(r=e.ok)!=null?r:!e.error,duration:(o=e.duration)!=null?o:0,source:(i=e.source)!=null?i:"bus"})}))}var gr=null;function Yy(){gr=new MutationObserver(e=>{let t=!1;for(let n of e){let r=n.target;vs(r)||n.type==="attributes"&&n.attributeName==="class"&&r.nodeType===1&&ps.has(r)||(we.mutations++,n.type==="childList"&&n.addedNodes.length&&(t=!0))}t&&!xr&&(xr=window.setTimeout(()=>{xr=0,Dp()},250))}),gr.observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}function Xy(){fs=window.setInterval(()=>{we.effectsPerSecond=we.effects-Zl,we.updatesPerSecond=we.mutations-ec,Zl=we.effects,ec=we.mutations,we.history.push({effects:we.effectsPerSecond,updates:we.updatesPerSecond}),we.history.length>40&&we.history.shift(),Ze==="desempenho"&&Qt()},1e3),us=window.setInterval(()=>{tc(),(Ze==="estado"||Ze==="componentes"||Ze==="stores")&&Qt()},700)}var Zl=0,ec=0;function Gy(){if(We||typeof document=="undefined"||!document.body)return;We=!0,he(),ne("xray",Ey),U=qy(),Ze=Ze||"estado",we.effects=0,we.mutations=0,Zl=0,ec=0,we.history.length=0,Dp(),_y(),Ky(),Yy(),Xy();let e=()=>Ry();window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),document.addEventListener("mousemove",Tp,!0),yt.push(()=>window.removeEventListener("scroll",e,!0)),yt.push(()=>window.removeEventListener("resize",e)),yt.push(()=>document.removeEventListener("mousemove",Tp,!0)),Qt()}function Np(){if(We){We=!1;for(let e of yt.splice(0))try{e()}catch(t){}gr==null||gr.disconnect(),gr=null,fs&&window.clearInterval(fs),us&&window.clearInterval(us),xr&&window.clearTimeout(xr),wr&&cancelAnimationFrame(wr),fs=us=xr=wr=0;for(let[e,t]of wo)window.clearTimeout(t),e.classList.remove(Eo);wo.clear(),ps.clear(),Ly(),ko.length=0,xo=null,U==null||U.root.remove(),U=null}}function Op(){return We}function nc(){Ep||typeof document=="undefined"||(Ep=!0,document.addEventListener("keydown",e=>{!e.ctrlKey||!e.shiftKey||e.key!=="X"&&e.key!=="x"||(e.preventDefault(),To())}))}function To(e){return nc(),(e!=null?e:!We)?Gy():Np(),We}He();var Ip="voodoo:devtools:widget-position",rc="voodoo:devtools:widget-hidden",Qy=4,te=null,kr=!1,oc=0,hs=0,Lo=[],Jy=`
|
|
1648
|
+
`;function M(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r}function hs(e){if(!e||!W)return!1;let t=e.nodeType===1?e:e.parentElement;return!!t&&W.root.contains(t)}function Er(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",r=typeof e.className=="string"&&e.className?`.${e.className.trim().split(/\s+/).slice(0,2).join(".")}`:"";return`${t}${n}${r}`}function Rp(e,t=64){var r;if(e===null)return"null";if(e===void 0)return"undefined";let n=typeof e;if(n==="function")return"function()";if(n==="string")return`"${Go(e,t)}"`;if(n==="number"||n==="boolean"||n==="symbol")return String(e);if(typeof Element!="undefined"&&e instanceof Element)return`<${e.tagName.toLowerCase()}>`;try{return Go((r=JSON.stringify(e))!=null?r:String(e),t)}catch(o){return String(e)}}function My(e){var t;if(typeof e=="string")return e;try{return(t=JSON.stringify(e))!=null?t:""}catch(n){return String(e)}}function Sy(e,t){if(typeof t=="string")return e;try{return JSON.parse(e)}catch(n){return e}}function $p(e){let t=new Date(e),n=r=>String(r).padStart(2,"0");return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function Dp(e,t){for(let n of e.effects)t.push(n);for(let n of e.children)Dp(n,t)}function tc(e){let t=[];for(let n of Zc(e))Dp(n,t);return t}function Hp(e){let t=tc(e).length;for(let n of Array.from(e.childNodes))n.nodeType===3&&(t+=tc(n).length);return t}function Pp(e){if(!e||!We||hs(e))return;let t=wo.get(e);t&&window.clearTimeout(t),ms.add(e),e.classList.add(Eo);let n=window.setTimeout(()=>{e.classList.remove(Eo),wo.delete(e),window.setTimeout(()=>ms.delete(e),0)},460);wo.set(e,n)}function Mp(e,t){for(let n of tc(e)){if(Gt.has(n))continue;let r=n.fn;Gt.set(n,r),n.fn=()=>(we.effects++,Pp(t),r())}}function Ay(){for(let[e,t]of Gt)e.fn=t;Gt.clear()}function Np(){if(!We||typeof document=="undefined")return;for(let[n]of Gt)n.active||Gt.delete(n);let e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT),t=e.currentNode;for(;t;){if(t.nodeType===1){let n=t;if(W&&W.root.contains(n)){t=Cy(e);continue}Mp(n,n)}else t.nodeType===3&&t.parentElement&&Mp(t,t.parentElement);t=e.nextNode()}Dy()}function Cy(e){let t=e.currentNode,n=e.nextSibling();if(n)return n;let r=e.parentNode();for(;r;){if(n=e.nextSibling(),n)return n;r=e.parentNode()}return e.currentNode=t,null}function Ry(){let e=[],t=document.body.querySelectorAll("*");for(let n=0;n<t.length&&e.length<Ty;n++){let r=t[n];W&&W.root.contains(r)||Gs(r)&&e.push(r)}return e}function $y(e){return Dn(e).map(t=>t.arg?`${t.name}:${t.arg}`:t.name)}function Dy(){var t;if(!We||!W)return;let e=W.overlay;e.textContent="",ko.length=0;for(let n of Ry()){let r=M("div","v-xray-box"),o=!!((t=Lt(n))!=null&&t.component);r.dataset.kind=o?"component":"directive";let i=M("span","v-xray-tag",$y(n).join(" "));r.appendChild(i),e.appendChild(r),ko.push({el:n,box:r})}oc()}function oc(){if(We)for(let e of ko){if(!e.el.isConnected){e.box.style.display="none";continue}let t=e.el.getBoundingClientRect();if(t.width===0&&t.height===0){e.box.style.display="none";continue}e.box.style.display="block",e.box.style.left=`${t.left}px`,e.box.style.top=`${t.top}px`,e.box.style.width=`${t.width}px`,e.box.style.height=`${t.height}px`}}function Hy(){wr||(wr=requestAnimationFrame(()=>{wr=0,oc()}))}function Py(e,t=40){let n=new Set,r=[],o=e;for(;o&&r.length<t;){let i=[];try{i=Object.keys(o.data)}catch(s){i=[]}for(let s of i){if(n.has(s))continue;n.add(s);let a;try{a=o.data[s]}catch(l){a="(read error)"}if(r.push([s,a]),r.length>=t)break}o=o.parent}return r}function Ny(e){var s;if(!W)return;let t=W.card;t.textContent="";let n=Ve(e),r=(s=n.owner)==null?void 0:s.component;t.appendChild(M("strong","v-xray-card-title",Er(e))),t.appendChild(M("span","v-xray-section","Directives"));let o=Dn(e);if(!o.length)t.appendChild(M("div","v-xray-val","none"));else for(let a of o){let l=M("div","v-xray-row");l.appendChild(M("span","v-xray-key",a.raw)),l.appendChild(M("span","v-xray-val",a.expression||"(no value)")),t.appendChild(l)}t.appendChild(M("span","v-xray-section","Component")),t.appendChild(M("div","v-xray-val",r?`${r.$name} in ${Er(r.$el)}`:"none")),t.appendChild(M("span","v-xray-section","Scope"));let i=Py(n);if(!i.length)t.appendChild(M("div","v-xray-val","root scope empty"));else for(let[a,l]of i){let c=M("div","v-xray-row");c.appendChild(M("span","v-xray-key",a)),c.appendChild(M("span","v-xray-val",Rp(l))),t.appendChild(c)}t.appendChild(M("span","v-xray-section","Reactivity")),t.appendChild(M("div","v-xray-val",`${Hp(e)} effect(s) depend on this element`))}function Oy(e,t){if(!W)return;let n=W.card,r=320,o=Math.min(n.scrollHeight||200,window.innerHeight*.6),i=e+16+r>window.innerWidth?Math.max(8,e-r-16):e+16,s=t+16+o>window.innerHeight?Math.max(8,t-o-16):t+16;n.style.left=`${i}px`,n.style.top=`${s}px`}function Sp(e){if(!We||!W)return;let t=e.target;if(!t||hs(t)){W.card.dataset.open="0",xo=null;return}let n=t;for(;n&&n!==document.body&&!Gs(n);)n=n.parentElement;if(!n||n===document.body){W.card.dataset.open="0",xo=null;return}n!==xo&&(xo=n,Ny(n)),W.card.dataset.open="1",Oy(e.clientX,e.clientY)}function Fy(){let e=new Map,t=document.body.querySelectorAll("*");for(let r=0;r<t.length;r++){let o=t[r];if(W&&W.root.contains(o))continue;let i=Lt(o);i&&e.set(o,i)}let n=[];for(let[r,o]of e){let i=0,s=r.parentElement;for(;s;)e.has(s)&&i++,s=s.parentElement;n.push({el:r,scope:o,depth:i})}return n}function vs(e,t,n){let r=M("div","v-xray-row");if(r.appendChild(M("span","v-xray-key",e)),typeof t=="function")return r.appendChild(M("span","v-xray-val","function()")),r;let o=M("input","v-xray-input");return o.type="text",o.value=My(t),o.spellcheck=!1,o.addEventListener("change",()=>{try{n(Sy(o.value,t)),o.dataset.error="0"}catch(i){o.dataset.error="1"}}),o.addEventListener("keydown",i=>{i.key==="Enter"&&o.blur()}),r.appendChild(o),r}function Iy(){let e=document.createDocumentFragment(),t=Fy();if(!t.length)return e.appendChild(M("span","v-xray-empty","No scopes on the page. Use v-data or a component.")),e;for(let n of t){let r=M("div","v-xray-group");r.style.marginLeft=`${Math.min(n.depth,4)*8}px`;let o=M("div","v-xray-group-head");o.appendChild(M("span","v-xray-badge",n.scope.component?"component":"scope")),o.appendChild(M("span",void 0,Er(n.el))),o.addEventListener("click",()=>Fp(n.el)),r.appendChild(o);let i=M("div","v-xray-rows"),s=[];try{s=Object.keys(n.scope.data)}catch(a){s=[]}if(!s.length)i.appendChild(M("span","v-xray-empty","no variables"));else for(let a of s){let l;try{l=n.scope.data[a]}catch(c){l=void 0}i.appendChild(vs(a,l,c=>{n.scope.set(a,c)}))}r.appendChild(i),e.appendChild(r)}return e}function zy(){var n;let e=document.createDocumentFragment(),t=[...Mt];if(!t.length)return e.appendChild(M("span","v-xray-empty","No components mounted.")),e;for(let r of t){let o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge",r.$name)),i.appendChild(M("span",void 0,Er(r.$el))),i.appendChild(M("span","v-xray-badge",`${Hp(r.$el)} effects`)),i.lastChild.dataset.tone="mute",i.addEventListener("click",()=>Fp(r.$el)),o.appendChild(i);let s=M("div","v-xray-rows"),a=(n=r.$props)!=null?n:{},l=Object.keys(a);if(l.length){s.appendChild(M("span","v-xray-section","Props"));for(let u of l)s.appendChild(vs(u,a[u],p=>{a[u]=p}))}let c=r.$scope,d=[];try{d=Object.keys(c.data).filter(u=>!l.includes(u))}catch(u){d=[]}if(d.length){s.appendChild(M("span","v-xray-section","State"));for(let u of d){let p;try{p=c.data[u]}catch(f){p=void 0}s.appendChild(vs(u,p,f=>{c.set(u,f)}))}}o.appendChild(s),e.appendChild(o)}return e}function By(){let e=document.createDocumentFragment(),t=Ko();if(!t.length)return e.appendChild(M("span","v-xray-empty","No global stores. Create one with V.store().")),e;for(let n of t){let r=Fn[n],o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge","store")),i.firstChild.dataset.tone="alt",i.appendChild(M("span",void 0,n)),o.appendChild(i);let s=M("div","v-xray-rows"),a=r?Object.keys(r):[];if(!a.length)s.appendChild(M("span","v-xray-empty","empty store"));else for(let l of a)s.appendChild(vs(l,r[l],c=>{r[l]=c}));o.appendChild(s),e.appendChild(o)}return e}function Op(e,t,n,r){let o=M("div","v-xray-log");if(o.appendChild(M("span","v-xray-log-time",e)),o.appendChild(M("span","v-xray-log-main",t)),n!==void 0){let i=M("span",r==="fail"?"v-xray-fail":r==="ok"?"v-xray-ok":void 0,n);o.appendChild(i)}return o}function jy(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{br.length=0,Qt()}),e.appendChild(t),!br.length)return e.appendChild(M("span","v-xray-empty","No events yet. Interact with the page.")),e;for(let n of[...br].reverse())e.appendChild(Op($p(n.at),`${n.type} on ${n.target}`,n.detail||n.source));return e}function qy(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{yr.length=0,Qt()}),e.appendChild(t),!yr.length)return e.appendChild(M("span","v-xray-empty","No requests yet. v-get, v-post and V.http show up here.")),e;for(let n of[...yr].reverse())e.appendChild(Op($p(n.at),`${n.method} ${n.url}`,`${n.status||"---"} ${Math.round(n.duration)}ms`,n.ok?"ok":"fail"));return e}function Vy(){let e=document.createDocumentFragment(),t=M("div","v-xray-metric");t.appendChild(M("span","v-xray-metric-value",String(we.updatesPerSecond))),t.appendChild(M("span",void 0,"DOM updates per second")),e.appendChild(t);let n=M("div","v-xray-metric");n.appendChild(M("span","v-xray-metric-value",String(we.effectsPerSecond))),n.appendChild(M("span",void 0,"reactive effects triggered per second")),e.appendChild(n);let r=M("div","v-xray-metric");r.appendChild(M("span","v-xray-metric-value",String(we.effects))),r.appendChild(M("span",void 0,"effects triggered since x-ray was enabled")),e.appendChild(r);let o=M("div","v-xray-chart"),i=Math.max(1,...we.history.map(s=>Math.max(s.effects,s.updates)));for(let s of we.history){let a=M("div","v-xray-bar"),l=Math.max(s.effects,s.updates);a.style.height=`${Math.max(2,Math.round(l/i*46))}px`,a.title=`${s.effects} effects, ${s.updates} updates`,o.appendChild(a)}return e.appendChild(o),e.appendChild(M("span","v-xray-hint",`${Gt.size} effects instrumented, peak of ${i} per second`)),e}var Uy=[{id:"estado",label:"Estado"},{id:"componentes",label:"Componentes"},{id:"stores",label:"Stores"},{id:"eventos",label:"Eventos"},{id:"rede",label:"Rede"},{id:"desempenho",label:"Desempenho"}];function Qt(){if(!W)return;let e=document.activeElement;if(!(e instanceof HTMLInputElement&&W.body.contains(e))){switch(W.body.textContent="",Ze){case"estado":W.body.appendChild(Iy());break;case"componentes":W.body.appendChild(zy());break;case"stores":W.body.appendChild(By());break;case"eventos":W.body.appendChild(jy());break;case"rede":W.body.appendChild(qy());break;case"desempenho":W.body.appendChild(Vy());break}for(let t of Array.from(W.tabs.children)){let n=t;n.dataset.active=n.dataset.id===Ze?"1":"0"}W.status.textContent=`${ko.length} elements with directives, ${Mt.size} components, ${Gt.size} effects observed`}}function Fp(e){e.scrollIntoView({behavior:"smooth",block:"center"}),Pp(e)}function Wy(){let e=M("div","v-xray-root");e.setAttribute(`${w.prefix}ignore`,""),e.setAttribute("role","complementary"),e.setAttribute("aria-label","Voodoo x-ray inspector"),Tn!=="auto"&&(e.dataset.vXrayTheme=Tn);let t=M("div","v-xray-overlay");e.appendChild(t);let n=M("div","v-xray-card");n.dataset.open="0",e.appendChild(n);let r=M("div","v-xray-panel"),o=M("div","v-xray-header"),i=M("div","v-xray-brand");i.appendChild(M("span","v-xray-dot")),i.appendChild(document.createTextNode("Voodoo x-ray")),o.appendChild(i);let s=M("button","v-xray-btn","theme");s.addEventListener("click",()=>{Tn=Tn==="auto"?"dark":Tn==="dark"?"light":"auto",Tn==="auto"?delete e.dataset.vXrayTheme:e.dataset.vXrayTheme=Tn}),o.appendChild(s);let a=M("button","v-xray-btn","close");a.addEventListener("click",()=>Ip()),o.appendChild(a),r.appendChild(o);let l=M("div","v-xray-tabs");for(let u of Uy){let p=M("button","v-xray-tab",u.label);p.dataset.id=u.id,p.dataset.active=u.id===Ze?"1":"0",p.addEventListener("click",()=>{Ze=u.id,Qt()}),l.appendChild(p)}r.appendChild(l);let c=M("div","v-xray-body");r.appendChild(c);let d=M("div","v-xray-status","starting");return r.appendChild(d),e.appendChild(r),document.body.appendChild(e),{root:e,overlay:t,card:n,panel:r,tabs:l,body:c,status:d}}var _y=["click","dblclick","submit","input","change","keydown","keyup","focus","blur","contextmenu","drop","paste"];function Ap(e){br.push(e),br.length>Cp&&br.shift(),Ze==="eventos"&&Qt()}function ec(e){yr.push(e),yr.length>Cp&&yr.shift(),Ze==="rede"&&Qt()}function Ky(e,t){let n=e;for(let r=0;n&&r<6;r++){for(let o of Dn(n))if(o.name===t||o.name==="on"&&o.arg===t)return n;n=n.parentElement}return null}function Yy(){let e=new Set(_y),t=document.body.querySelectorAll("*");for(let n=0;n<t.length;n++){let r=t[n];if(!(W&&W.root.contains(r)))for(let o of Dn(r))o.name==="on"&&o.arg&&e.add(o.arg)}return[...e]}function Xy(){let e=t=>{if(!We)return;let n=t.target;if(!n||n.nodeType!==1||hs(n))return;let r=Ky(n,t.type),o=t.__voodoo===!0;!r&&!o||Ap({at:Date.now(),type:t.type,target:Er(r!=null?r:n),detail:o?"component emit":"",source:o?"component":"v-on"})};for(let t of Yy())document.addEventListener(t,e,!0),yt.push(()=>document.removeEventListener(t,e,!0));yt.push(Fe.on("event",t=>{var n,r;Ap({at:Date.now(),type:t.type,target:Er((n=t.el)!=null?n:null),detail:Rp(t.detail),source:(r=t.source)!=null?r:"bus"})}))}function Gy(){yt.push(ve.interceptors.request.use(e=>(Zl.set(e,performance.now()),e))),yt.push(ve.interceptors.response.use(e=>{var n,r;let t=(n=Zl.get(e.config))!=null?n:performance.now();return ec({at:Date.now(),method:((r=e.config.method)!=null?r:"GET").toUpperCase(),url:e.config.url,status:e.status,ok:e.ok,duration:performance.now()-t,source:"http"}),e})),yt.push(ve.interceptors.error.use(e=>{var r,o,i;let t=e.config,n=t&&(r=Zl.get(t))!=null?r:performance.now();return ec({at:Date.now(),method:((o=t==null?void 0:t.method)!=null?o:"GET").toUpperCase(),url:(i=t==null?void 0:t.url)!=null?i:"(unknown)",status:e.status,ok:!1,duration:performance.now()-n,source:"http"}),e})),yt.push(Fe.on("network",e=>{var t,n,r,o,i;ec({at:Date.now(),method:((t=e.method)!=null?t:"GET").toUpperCase(),url:e.url,status:(n=e.status)!=null?n:0,ok:(r=e.ok)!=null?r:!e.error,duration:(o=e.duration)!=null?o:0,source:(i=e.source)!=null?i:"bus"})}))}var gr=null;function Qy(){gr=new MutationObserver(e=>{let t=!1;for(let n of e){let r=n.target;hs(r)||n.type==="attributes"&&n.attributeName==="class"&&r.nodeType===1&&ms.has(r)||(we.mutations++,n.type==="childList"&&n.addedNodes.length&&(t=!0))}t&&!xr&&(xr=window.setTimeout(()=>{xr=0,Np()},250))}),gr.observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}function Jy(){ps=window.setInterval(()=>{we.effectsPerSecond=we.effects-nc,we.updatesPerSecond=we.mutations-rc,nc=we.effects,rc=we.mutations,we.history.push({effects:we.effectsPerSecond,updates:we.updatesPerSecond}),we.history.length>40&&we.history.shift(),Ze==="desempenho"&&Qt()},1e3),fs=window.setInterval(()=>{oc(),(Ze==="estado"||Ze==="componentes"||Ze==="stores")&&Qt()},700)}var nc=0,rc=0;function Zy(){if(We||typeof document=="undefined"||!document.body)return;We=!0,he(),ne("xray",Ly),W=Wy(),Ze=Ze||"estado",we.effects=0,we.mutations=0,nc=0,rc=0,we.history.length=0,Np(),Xy(),Gy(),Qy(),Jy();let e=()=>Hy();window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),document.addEventListener("mousemove",Sp,!0),yt.push(()=>window.removeEventListener("scroll",e,!0)),yt.push(()=>window.removeEventListener("resize",e)),yt.push(()=>document.removeEventListener("mousemove",Sp,!0)),Qt()}function Ip(){if(We){We=!1;for(let e of yt.splice(0))try{e()}catch(t){}gr==null||gr.disconnect(),gr=null,ps&&window.clearInterval(ps),fs&&window.clearInterval(fs),xr&&window.clearTimeout(xr),wr&&cancelAnimationFrame(wr),ps=fs=xr=wr=0;for(let[e,t]of wo)window.clearTimeout(t),e.classList.remove(Eo);wo.clear(),ms.clear(),Ay(),ko.length=0,xo=null,W==null||W.root.remove(),W=null}}function zp(){return We}function ic(){Lp||typeof document=="undefined"||(Lp=!0,document.addEventListener("keydown",e=>{!e.ctrlKey||!e.shiftKey||e.key!=="X"&&e.key!=="x"||(e.preventDefault(),To())}))}function To(e){return ic(),(e!=null?e:!We)?Zy():Ip(),We}He();var jp="voodoo:devtools:widget-position",sc="voodoo:devtools:widget-hidden",ex=4,te=null,kr=!1,ac=0,gs=0,Lo=[],tx=`
|
|
1649
1649
|
.v-devtools-widget{
|
|
1650
1650
|
all: initial;
|
|
1651
1651
|
--vw-accent:#6D3BF5;
|
|
@@ -1776,9 +1776,9 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1776
1776
|
.v-devtools-btn,.v-devtools-pulse,.v-devtools-close{transition:none}
|
|
1777
1777
|
.v-devtools-btn:hover{transform:none}
|
|
1778
1778
|
}
|
|
1779
|
-
`,
|
|
1779
|
+
`,nx=`<svg class="v-devtools-mark" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
1780
1780
|
<path d="M4 4l8 16 8-16" stroke="#6D3BF5" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1781
1781
|
<circle cx="12" cy="7.5" r="2" fill="#FF3D8B"/>
|
|
1782
|
-
</svg>`;function
|
|
1782
|
+
</svg>`;function rx(){try{let e=localStorage.getItem(jp);if(!e)return null;let t=JSON.parse(e);return typeof(t==null?void 0:t.x)!="number"||typeof(t==null?void 0:t.y)!="number"?null:t}catch(e){return null}}function ox(e){try{localStorage.setItem(jp,JSON.stringify(e))}catch(t){}}function lc(e,t){let n=e.offsetWidth||120,r=e.offsetHeight||38,o=Math.min(Math.max(8,t.x),Math.max(8,window.innerWidth-n-8)),i=Math.min(Math.max(8,t.y),Math.max(8,window.innerHeight-r-8));e.style.left=`${o}px`,e.style.top=`${i}px`,e.style.right="auto",e.style.bottom="auto"}function ix(){let e=document.createElement("div");e.className="v-devtools-widget",e.setAttribute("data-voodoo-devtools","widget");let t=document.createElement("button");t.type="button",t.className="v-devtools-btn",t.setAttribute("aria-label","Open Voodoo devtools (Ctrl+Shift+X)"),t.setAttribute("aria-pressed","false"),t.title="Voodoo devtools \u2014 click to inspect, drag to move (Ctrl+Shift+X)",t.innerHTML=nx;let n=document.createElement("span");n.className="v-devtools-label",n.textContent="Voodoo";let r=document.createElement("span");r.className="v-devtools-count",r.textContent="0";let o=document.createElement("span");o.className="v-devtools-pulse",o.setAttribute("data-on","false"),t.append(n,r,o);let i=document.createElement("button");i.type="button",i.className="v-devtools-close",i.setAttribute("aria-label","Hide the devtools widget in this tab"),i.title="Hide in this tab",i.textContent="\xD7",e.append(t,i),document.body.appendChild(e);let s=rx();return s?lc(e,s):(e.style.right="16px",e.style.bottom="16px"),{root:e,button:t,pulse:o,counter:r,close:i}}function sx(e,t){let n=!1,r=!1,o=0,i=0,s=0,a=0,l=f=>{var h,v;if(f.button!==0)return;let m=e.root.getBoundingClientRect();n=!0,r=!1,s=f.clientX,a=f.clientY,o=f.clientX-m.left,i=f.clientY-m.top,(v=(h=e.button).setPointerCapture)==null||v.call(h,f.pointerId)},c=f=>{if(!n)return;let m=Math.hypot(f.clientX-s,f.clientY-a);!r&&m<ex||(r=!0,f.preventDefault(),lc(e.root,{x:f.clientX-o,y:f.clientY-i}))},d=f=>{var h,v;if(!n)return;if(n=!1,(v=(h=e.button).releasePointerCapture)==null||v.call(h,f.pointerId),!r){t();return}let m=e.root.getBoundingClientRect();ox({x:m.left,y:m.top})},u=f=>{f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),t())},p=()=>{let f=e.root.getBoundingClientRect();e.root.style.left&&lc(e.root,{x:f.left,y:f.top})};return e.button.addEventListener("pointerdown",l),e.button.addEventListener("pointermove",c),e.button.addEventListener("pointerup",d),e.button.addEventListener("pointercancel",d),e.button.addEventListener("keydown",u),window.addEventListener("resize",p),()=>{e.button.removeEventListener("pointerdown",l),e.button.removeEventListener("pointermove",c),e.button.removeEventListener("pointerup",d),e.button.removeEventListener("pointercancel",d),e.button.removeEventListener("keydown",u),window.removeEventListener("resize",p)}}function ax(){te&&(te.pulse.setAttribute("data-on","true"),window.clearTimeout(gs),gs=window.setTimeout(()=>{te==null||te.pulse.setAttribute("data-on","false")},320))}function Bp(){if(!te)return;let e=Mt.size,t=e===1?"1 component":`${e} components`;te.counter.textContent!==t&&(te.counter.textContent=t)}function lx(){if(kr||typeof document=="undefined"||!document.body)return;try{if(sessionStorage.getItem(sc)==="1")return}catch(r){}kr=!0,ne("devtools-widget",tx),te=ix();let e=()=>{let r=To();te==null||te.root.setAttribute("data-active",String(r)),te==null||te.button.setAttribute("aria-pressed",String(r))};Lo.push(sx(te,e));let t=r=>{r.stopPropagation();try{sessionStorage.setItem(sc,"1")}catch(o){}qp(),console.info("[Voodoo] devtools widget hidden. Use V.devtoolsWidget(true) to bring back.")};te.close.addEventListener("click",t),Lo.push(()=>te==null?void 0:te.close.removeEventListener("click",t));let n=()=>{let r=zp();te==null||te.root.setAttribute("data-active",String(r)),te==null||te.button.setAttribute("aria-pressed",String(r))};document.addEventListener("keyup",n),Lo.push(()=>document.removeEventListener("keyup",n));for(let r of["network","event","navigation","update"])Lo.push(Fe.on(r,ax));Bp(),ac=window.setInterval(Bp,1e3)}function qp(){if(kr){kr=!1;for(let e of Lo.splice(0))try{e()}catch(t){}window.clearInterval(ac),window.clearTimeout(gs),ac=0,gs=0,te==null||te.root.remove(),te=null}}function Vp(e){if(e!=null?e:!kr){try{sessionStorage.removeItem(sc)}catch(n){}lx()}else qp();return kr}var Wp=((e,t)=>Ea(e,t));function Up(e,t,n){return((...r)=>(Rr(e,t),n(...r)))}Object.assign(Wp,li,{query:Ea,ready:ka,fromHtml:fu,Collection:ft,router:Wr,route:ce,navigate:Vt,resolveRoute:Gn,i18n:Kr,t:er,setLocale:_r,getLocale:xi,modal:En,alert:Gl,confirm:ls,prompt:Ql,dialog:hr,validator:Q,validate:ol,validateForm:Up("V.validateForm","V.validate",ol),serializeForm:or,messages:rt,showFormErrors:Ni,showFieldError:Pi,clearErrors:no,mask:Ep,masks:yo,applyMask:bo,unmask:us,registerMask:Te,animate:Rt,spring:Ll,stagger:Ml,inView:Qi,scrollProgress:Sl,motion:hn,easings:ao,chart:Up("V.chart","V.renderChart",ur),renderChart:ur,charts:Hl,chartColors:co,palette:cp,hotkey:Qr,sound:Yt,xray:To,enableXrayShortcut:ic,devtoolsWidget:Vp,devtools:Fe,magic:P});var cc=Wp;le();function cx(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 dx(){var i;if(typeof document=="undefined")return{manual:!1};let e=(i=document.currentScript)!=null?i:document.querySelector('script[src*="voodoo"]');if(!e)return{manual:!1};let t=e.hasAttribute("data-manual")||e.hasAttribute("data-defer-init"),n=e.getAttribute("data-prefix");n&&(w.prefix=n);let r=e.getAttribute("data-base-url");r&&(w.baseURL=r);let o=e.getAttribute("data-locale");return o&&(w.locale=o),cx(e)&&(w.devtools=!0),e.hasAttribute("data-no-styles")&&(w.injectStyles=!1),e.hasAttribute("data-no-observer")&&(w.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(w.cleanAttributes=!1),{manual:t}}function ux(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 _p(e){var o;if(typeof window=="undefined")return;let t=dx(),n=window;if(n.V=e,n.Voodoo=e,Pe.V=e,Pe.Voodoo=e,w.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(w.baseURL),t.manual||!w.autoStart)return;Uo(()=>{ut.init(),lp(),e.start(),w.devtools&&ux(e)})}_p(cc);var fx=cc;return om(px);})();
|
|
1783
1783
|
if(typeof window!=="undefined"){window.V=Voodoo.default||Voodoo;window.Voodoo=window.V;}
|
|
1784
1784
|
//# sourceMappingURL=voodoo.full.min.js.map
|