var Lp=Object.defineProperty;var Dp=(e,t,r)=>t in e?Lp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Et=(e,t,r)=>(Dp(e,typeof t!="symbol"?t+"":t,r),r);function yu(e,t){const r=Object.create(null),n=e.split(",");for(let s=0;s<n.length;s++)r[n[s]]=!0;return t?s=>!!r[s.toLowerCase()]:s=>!!r[s]}const de={},vr=[],nt=()=>{},Hp=()=>!1,vo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bu=e=>e.startsWith("onUpdate:"),Oe=Object.assign,yo=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Bp=Object.prototype.hasOwnProperty,le=(e,t)=>Bp.call(e,t),X=Array.isArray,yr=e=>Ps(e)==="[object Map]",_u=e=>Ps(e)==="[object Set]",ee=e=>typeof e=="function",Ae=e=>typeof e=="string",Mr=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",wu=e=>(he(e)||ee(e))&&ee(e.then)&&ee(e.catch),$u=Object.prototype.toString,Ps=e=>$u.call(e),Vp=e=>Ps(e).slice(8,-1),Su=e=>Ps(e)==="[object Object]",bo=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kn=yu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Is=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Wp=/-(\w)/g,pt=Is(e=>e.replace(Wp,(t,r)=>r?r.toUpperCase():"")),Up=/\B([A-Z])/g,ks=Is(e=>e.replace(Up,"-$1").toLowerCase()),_o=Is(e=>e.charAt(0).toUpperCase()+e.slice(1)),ti=Is(e=>e?`on${_o(e)}`:""),tr=(e,t)=>!Object.is(e,t),ri=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},rs=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},qp=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let wl;const xi=()=>wl||(wl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function wo(e){if(X(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],s=Ae(n)?Gp(n):wo(n);if(s)for(const i in s)t[i]=s[i]}return t}else if(Ae(e)||he(e))return e}const Kp=/;(?![^(]*\))/g,zp=/:([^]+)/,Yp=/\/\*[^]*?\*\//g;function Gp(e){const t={};return e.replace(Yp,"").split(Kp).forEach(r=>{if(r){const n=r.split(zp);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function $o(e){let t="";if(Ae(e))t=e;else if(X(e))for(let r=0;r<e.length;r++){const n=$o(e[r]);n&&(t+=n+" ")}else if(he(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const H$=e=>Ae(e)?e:e==null?"":X(e)||he(e)&&(e.toString===$u||!ee(e.toString))?JSON.stringify(e,xu,2):String(e),xu=(e,t)=>t&&t.__v_isRef?xu(e,t.value):yr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s],i)=>(r[ni(n,i)+" =>"]=s,r),{})}:_u(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>ni(r))}:Mr(t)?ni(t):he(t)&&!X(t)&&!Su(t)?String(t):t,ni=(e,t="")=>{var r;return Mr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let Ue;class Jp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ue,!t&&Ue&&(this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Ue;try{return Ue=this,t()}finally{Ue=r}}}on(){Ue=this}off(){Ue=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Xp(e,t=Ue){t&&t.active&&t.effects.push(e)}function Eu(){return Ue}function Zp(e){Ue&&Ue.cleanups.push(e)}const So=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Au=e=>(e.w&kt)>0,Cu=e=>(e.n&kt)>0,Qp=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=kt},ed=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const s=t[n];Au(s)&&!Cu(s)?s.delete(e):t[r++]=s,s.w&=~kt,s.n&=~kt}t.length=r}},ns=new WeakMap;let qr=0,kt=1;const Ei=30;let Ze;const Jt=Symbol(""),Ai=Symbol("");class xo{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Xp(this,n)}run(){if(!this.active)return this.fn();let t=Ze,r=Ot;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ze,Ze=this,Ot=!0,kt=1<<++qr,qr<=Ei?Qp(this):$l(this),this.fn()}finally{qr<=Ei&&ed(this),kt=1<<--qr,Ze=this.parent,Ot=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ze===this?this.deferStop=!0:this.active&&($l(this),this.onStop&&this.onStop(),this.active=!1)}}function $l(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let Ot=!0;const Tu=[];function Fr(){Tu.push(Ot),Ot=!1}function jr(){const e=Tu.pop();Ot=e===void 0?!0:e}function Ve(e,t,r){if(Ot&&Ze){let n=ns.get(e);n||ns.set(e,n=new Map);let s=n.get(r);s||n.set(r,s=So()),Ou(s)}}function Ou(e,t){let r=!1;qr<=Ei?Cu(e)||(e.n|=kt,r=!Au(e)):r=!e.has(Ze),r&&(e.add(Ze),Ze.deps.push(e))}function bt(e,t,r,n,s,i){const o=ns.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(r==="length"&&X(e)){const a=Number(n);o.forEach((u,c)=>{(c==="length"||!Mr(c)&&c>=a)&&l.push(u)})}else switch(r!==void 0&&l.push(o.get(r)),t){case"add":X(e)?bo(r)&&l.push(o.get("length")):(l.push(o.get(Jt)),yr(e)&&l.push(o.get(Ai)));break;case"delete":X(e)||(l.push(o.get(Jt)),yr(e)&&l.push(o.get(Ai)));break;case"set":yr(e)&&l.push(o.get(Jt));break}if(l.length===1)l[0]&&Ci(l[0]);else{const a=[];for(const u of l)u&&a.push(...u);Ci(So(a))}}function Ci(e,t){const r=X(e)?e:[...e];for(const n of r)n.computed&&Sl(n);for(const n of r)n.computed||Sl(n)}function Sl(e,t){(e!==Ze||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function td(e,t){var r;return(r=ns.get(e))==null?void 0:r.get(t)}const rd=yu("__proto__,__v_isRef,__isVue"),Pu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Mr)),xl=nd();function nd(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=ae(this);for(let i=0,o=this.length;i<o;i++)Ve(n,"get",i+"");const s=n[t](...r);return s===-1||s===!1?n[t](...r.map(ae)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Fr();const n=ae(this)[t].apply(this,r);return jr(),n}}),e}function sd(e){const t=ae(this);return Ve(t,"has",e),t.hasOwnProperty(e)}class Iu{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,n){const s=this._isReadonly,i=this._shallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(s?i?vd:ju:i?Fu:Mu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=X(t);if(!s){if(o&&le(xl,r))return Reflect.get(xl,r,n);if(r==="hasOwnProperty")return sd}const l=Reflect.get(t,r,n);return(Mr(r)?Pu.has(r):rd(r))||(s||Ve(t,"get",r),i)?l:ge(l)?o&&bo(r)?l:l.value:he(l)?s?Mt(l):vt(l):l}}class ku extends Iu{constructor(t=!1){super(!1,t)}set(t,r,n,s){let i=t[r];if(!this._shallow){const a=Er(i);if(!ss(n)&&!Er(n)&&(i=ae(i),n=ae(n)),!X(t)&&ge(i)&&!ge(n))return a?!1:(i.value=n,!0)}const o=X(t)&&bo(r)?Number(r)<t.length:le(t,r),l=Reflect.set(t,r,n,s);return t===ae(s)&&(o?tr(n,i)&&bt(t,"set",r,n):bt(t,"add",r,n)),l}deleteProperty(t,r){const n=le(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&n&&bt(t,"delete",r,void 0),s}has(t,r){const n=Reflect.has(t,r);return(!Mr(r)||!Pu.has(r))&&Ve(t,"has",r),n}ownKeys(t){return Ve(t,"iterate",X(t)?"length":Jt),Reflect.ownKeys(t)}}class id extends Iu{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const od=new ku,ld=new id,ad=new ku(!0),Eo=e=>e,Ms=e=>Reflect.getPrototypeOf(e);function Cn(e,t,r=!1,n=!1){e=e.__v_raw;const s=ae(e),i=ae(t);r||(tr(t,i)&&Ve(s,"get",t),Ve(s,"get",i));const{has:o}=Ms(s),l=n?Eo:r?To:ln;if(o.call(s,t))return l(e.get(t));if(o.call(s,i))return l(e.get(i));e!==s&&e.get(t)}function Tn(e,t=!1){const r=this.__v_raw,n=ae(r),s=ae(e);return t||(tr(e,s)&&Ve(n,"has",e),Ve(n,"has",s)),e===s?r.has(e):r.has(e)||r.has(s)}function On(e,t=!1){return e=e.__v_raw,!t&&Ve(ae(e),"iterate",Jt),Reflect.get(e,"size",e)}function El(e){e=ae(e);const t=ae(this);return Ms(t).has.call(t,e)||(t.add(e),bt(t,"add",e,e)),this}function Al(e,t){t=ae(t);const r=ae(this),{has:n,get:s}=Ms(r);let i=n.call(r,e);i||(e=ae(e),i=n.call(r,e));const o=s.call(r,e);return r.set(e,t),i?tr(t,o)&&bt(r,"set",e,t):bt(r,"add",e,t),this}function Cl(e){const t=ae(this),{has:r,get:n}=Ms(t);let s=r.call(t,e);s||(e=ae(e),s=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return s&&bt(t,"delete",e,void 0),i}function Tl(){const e=ae(this),t=e.size!==0,r=e.clear();return t&&bt(e,"clear",void 0,void 0),r}function Pn(e,t){return function(n,s){const i=this,o=i.__v_raw,l=ae(o),a=t?Eo:e?To:ln;return!e&&Ve(l,"iterate",Jt),o.forEach((u,c)=>n.call(s,a(u),a(c),i))}}function In(e,t,r){return function(...n){const s=this.__v_raw,i=ae(s),o=yr(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,u=s[e](...n),c=r?Eo:t?To:ln;return!t&&Ve(i,"iterate",a?Ai:Jt),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:l?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function At(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ud(){const e={get(i){return Cn(this,i)},get size(){return On(this)},has:Tn,add:El,set:Al,delete:Cl,clear:Tl,forEach:Pn(!1,!1)},t={get(i){return Cn(this,i,!1,!0)},get size(){return On(this)},has:Tn,add:El,set:Al,delete:Cl,clear:Tl,forEach:Pn(!1,!0)},r={get(i){return Cn(this,i,!0)},get size(){return On(this,!0)},has(i){return Tn.call(this,i,!0)},add:At("add"),set:At("set"),delete:At("delete"),clear:At("clear"),forEach:Pn(!0,!1)},n={get(i){return Cn(this,i,!0,!0)},get size(){return On(this,!0)},has(i){return Tn.call(this,i,!0)},add:At("add"),set:At("set"),delete:At("delete"),clear:At("clear"),forEach:Pn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=In(i,!1,!1),r[i]=In(i,!0,!1),t[i]=In(i,!1,!0),n[i]=In(i,!0,!0)}),[e,r,t,n]}const[cd,fd,pd,dd]=ud();function Ao(e,t){const r=t?e?dd:pd:e?fd:cd;return(n,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(le(r,s)&&s in n?r:n,s,i)}const hd={get:Ao(!1,!1)},md={get:Ao(!1,!0)},gd={get:Ao(!0,!1)},Mu=new WeakMap,Fu=new WeakMap,ju=new WeakMap,vd=new WeakMap;function yd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bd(e){return e.__v_skip||!Object.isExtensible(e)?0:yd(Vp(e))}function vt(e){return Er(e)?e:Co(e,!1,od,hd,Mu)}function _d(e){return Co(e,!1,ad,md,Fu)}function Mt(e){return Co(e,!0,ld,gd,ju)}function Co(e,t,r,n,s){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=bd(e);if(o===0)return e;const l=new Proxy(e,o===2?n:r);return s.set(e,l),l}function Pt(e){return Er(e)?Pt(e.__v_raw):!!(e&&e.__v_isReactive)}function Er(e){return!!(e&&e.__v_isReadonly)}function ss(e){return!!(e&&e.__v_isShallow)}function Nu(e){return Pt(e)||Er(e)}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function gn(e){return rs(e,"__v_skip",!0),e}const ln=e=>he(e)?vt(e):e,To=e=>he(e)?Mt(e):e;function Oo(e){Ot&&Ze&&(e=ae(e),Ou(e.dep||(e.dep=So())))}function Fs(e,t){e=ae(e);const r=e.dep;r&&Ci(r)}function ge(e){return!!(e&&e.__v_isRef===!0)}function z(e){return Ru(e,!1)}function br(e){return Ru(e,!0)}function Ru(e,t){return ge(e)?e:new wd(e,t)}class wd{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ae(t),this._value=r?t:ln(t)}get value(){return Oo(this),this._value}set value(t){const r=this.__v_isShallow||ss(t)||Er(t);t=r?t:ae(t),tr(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:ln(t),Fs(this))}}function kn(e){Fs(e)}function js(e){return ge(e)?e.value:e}const $d={get:(e,t,r)=>js(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return ge(s)&&!ge(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function Lu(e){return Pt(e)?e:new Proxy(e,$d)}class Sd{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:n}=t(()=>Oo(this),()=>Fs(this));this._get=r,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function xd(e){return new Sd(e)}function B$(e){const t=X(e)?new Array(e.length):{};for(const r in e)t[r]=Hu(e,r);return t}class Ed{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return td(ae(this._object),this._key)}}class Ad{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Du(e,t,r){return ge(e)?e:ee(e)?new Ad(e):he(e)&&arguments.length>1?Hu(e,t,r):z(e)}function Hu(e,t,r){const n=e[t];return ge(n)?n:new Ed(e,t,r)}class Cd{constructor(t,r,n,s){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new xo(t,()=>{this._dirty||(this._dirty=!0,Fs(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const t=ae(this);return Oo(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Td(e,t,r=!1){let n,s;const i=ee(e);return i?(n=e,s=nt):(n=e.get,s=e.set),new Cd(n,s,i||!s,r)}function It(e,t,r,n){let s;try{s=n?e(...n):e()}catch(i){Ns(i,t,r)}return s}function st(e,t,r,n){if(ee(e)){const i=It(e,t,r,n);return i&&wu(i)&&i.catch(o=>{Ns(o,t,r)}),i}const s=[];for(let i=0;i<e.length;i++)s.push(st(e[i],t,r,n));return s}function Ns(e,t,r,n=!0){const s=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,l=r;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,o,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){It(a,null,10,[e,o,l]);return}}Od(e,r,s,n)}function Od(e,t,r,n=!0){console.error(e)}let an=!1,Ti=!1;const Te=[];let ct=0;const _r=[];let mt=null,qt=0;const Bu=Promise.resolve();let Po=null;function vn(e){const t=Po||Bu;return e?t.then(this?e.bind(this):e):t}function Pd(e){let t=ct+1,r=Te.length;for(;t<r;){const n=t+r>>>1,s=Te[n],i=un(s);i<e||i===e&&s.pre?t=n+1:r=n}return t}function Io(e){(!Te.length||!Te.includes(e,an&&e.allowRecurse?ct+1:ct))&&(e.id==null?Te.push(e):Te.splice(Pd(e.id),0,e),Vu())}function Vu(){!an&&!Ti&&(Ti=!0,Po=Bu.then(Uu))}function Id(e){const t=Te.indexOf(e);t>ct&&Te.splice(t,1)}function kd(e){X(e)?_r.push(...e):(!mt||!mt.includes(e,e.allowRecurse?qt+1:qt))&&_r.push(e),Vu()}function Ol(e,t,r=an?ct+1:0){for(;r<Te.length;r++){const n=Te[r];if(n&&n.pre){if(e&&n.id!==e.uid)continue;Te.splice(r,1),r--,n()}}}function Wu(e){if(_r.length){const t=[...new Set(_r)];if(_r.length=0,mt){mt.push(...t);return}for(mt=t,mt.sort((r,n)=>un(r)-un(n)),qt=0;qt<mt.length;qt++)mt[qt]();mt=null,qt=0}}const un=e=>e.id==null?1/0:e.id,Md=(e,t)=>{const r=un(e)-un(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function Uu(e){Ti=!1,an=!0,Te.sort(Md);const t=nt;try{for(ct=0;ct<Te.length;ct++){const r=Te[ct];r&&r.active!==!1&&It(r,null,14)}}finally{ct=0,Te.length=0,Wu(),an=!1,Po=null,(Te.length||_r.length)&&Uu()}}function Fd(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||de;let s=r;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in n){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=n[c]||de;d&&(s=r.map(m=>Ae(m)?m.trim():m)),f&&(s=r.map(qp))}let l,a=n[l=ti(t)]||n[l=ti(pt(t))];!a&&i&&(a=n[l=ti(ks(t))]),a&&st(a,e,6,s);const u=n[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,st(u,e,6,s)}}function qu(e,t,r=!1){const n=t.emitsCache,s=n.get(e);if(s!==void 0)return s;const i=e.emits;let o={},l=!1;if(!ee(e)){const a=u=>{const c=qu(u,t,!0);c&&(l=!0,Oe(o,c))};!r&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(he(e)&&n.set(e,null),null):(X(i)?i.forEach(a=>o[a]=null):Oe(o,i),he(e)&&n.set(e,o),o)}function Rs(e,t){return!e||!vo(t)?!1:(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,ks(t))||le(e,t))}let Ee=null,Ku=null;function is(e){const t=Ee;return Ee=e,Ku=e&&e.type.__scopeId||null,t}function jd(e,t=Ee,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&Bl(-1);const i=is(t);let o;try{o=e(...s)}finally{is(i),n._d&&Bl(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function si(e){const{type:t,vnode:r,proxy:n,withProxy:s,props:i,propsOptions:[o],slots:l,attrs:a,emit:u,render:c,renderCache:f,data:d,setupState:m,ctx:v,inheritAttrs:p}=e;let b,$;const E=is(e);try{if(r.shapeFlag&4){const w=s||n,O=w;b=ut(c.call(O,w,f,i,m,d,v)),$=a}else{const w=t;b=ut(w.length>1?w(i,{attrs:a,slots:l,emit:u}):w(i,null)),$=t.props?a:Nd(a)}}catch(w){en.length=0,Ns(w,e,1),b=ke(Ft)}let A=b;if($&&p!==!1){const w=Object.keys($),{shapeFlag:O}=A;w.length&&O&7&&(o&&w.some(bu)&&($=Rd($,o)),A=rr(A,$))}return r.dirs&&(A=rr(A),A.dirs=A.dirs?A.dirs.concat(r.dirs):r.dirs),r.transition&&(A.transition=r.transition),b=A,is(E),b}const Nd=e=>{let t;for(const r in e)(r==="class"||r==="style"||vo(r))&&((t||(t={}))[r]=e[r]);return t},Rd=(e,t)=>{const r={};for(const n in e)(!bu(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function Ld(e,t,r){const{props:n,children:s,component:i}=e,{props:o,children:l,patchFlag:a}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&a>=0){if(a&1024)return!0;if(a&16)return n?Pl(n,o,u):!!o;if(a&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==n[d]&&!Rs(u,d))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?Pl(n,o,u):!0:!!o;return!1}function Pl(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s<n.length;s++){const i=n[s];if(t[i]!==e[i]&&!Rs(r,i))return!0}return!1}function Dd({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const ko="components",Hd="directives";function Bd(e,t){return Mo(ko,e,!0,t)||e}const zu=Symbol.for("v-ndc");function V$(e){return Ae(e)?Mo(ko,e,!1)||e:e||zu}function W$(e){return Mo(Hd,e)}function Mo(e,t,r=!0,n=!1){const s=Ee||we;if(s){const i=s.type;if(e===ko){const l=Ih(i,!1);if(l&&(l===t||l===pt(t)||l===_o(pt(t))))return i}const o=Il(s[e]||i[e],t)||Il(s.appContext[e],t);return!o&&n?i:o}}function Il(e,t){return e&&(e[t]||e[pt(t)]||e[_o(pt(t))])}const Vd=e=>e.__isSuspense;function Wd(e,t){t&&t.pendingBranch?X(e)?t.effects.push(...e):t.effects.push(e):kd(e)}function _e(e,t){return Fo(e,null,t)}const Mn={};function me(e,t,r){return Fo(e,t,r)}function Fo(e,t,{immediate:r,deep:n,flush:s,onTrack:i,onTrigger:o}=de){var l;const a=Eu()===((l=we)==null?void 0:l.scope)?we:null;let u,c=!1,f=!1;if(ge(e)?(u=()=>e.value,c=ss(e)):Pt(e)?(u=()=>e,n=!0):X(e)?(f=!0,c=e.some(w=>Pt(w)||ss(w)),u=()=>e.map(w=>{if(ge(w))return w.value;if(Pt(w))return Yt(w);if(ee(w))return It(w,a,2)})):ee(e)?t?u=()=>It(e,a,2):u=()=>{if(!(a&&a.isUnmounted))return d&&d(),st(e,a,3,[m])}:u=nt,t&&n){const w=u;u=()=>Yt(w())}let d,m=w=>{d=E.onStop=()=>{It(w,a,4),d=E.onStop=void 0}},v;if(fn)if(m=nt,t?r&&st(t,a,3,[u(),f?[]:void 0,m]):u(),s==="sync"){const w=Fh();v=w.__watcherHandles||(w.__watcherHandles=[])}else return nt;let p=f?new Array(e.length).fill(Mn):Mn;const b=()=>{if(E.active)if(t){const w=E.run();(n||c||(f?w.some((O,g)=>tr(O,p[g])):tr(w,p)))&&(d&&d(),st(t,a,3,[w,p===Mn?void 0:f&&p[0]===Mn?[]:p,m]),p=w)}else E.run()};b.allowRecurse=!!t;let $;s==="sync"?$=b:s==="post"?$=()=>Le(b,a&&a.suspense):(b.pre=!0,a&&(b.id=a.uid),$=()=>Io(b));const E=new xo(u,$);t?r?b():p=E.run():s==="post"?Le(E.run.bind(E),a&&a.suspense):E.run();const A=()=>{E.stop(),a&&a.scope&&yo(a.scope.effects,E)};return v&&v.push(A),A}function Ud(e,t,r){const n=this.proxy,s=Ae(e)?e.includes(".")?Yu(n,e):()=>n[e]:e.bind(n,n);let i;ee(t)?i=t:(i=t.handler,r=t);const o=we;Ar(this);const l=Fo(s,i.bind(n),r);return o?Ar(o):Xt(),l}function Yu(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s<r.length&&n;s++)n=n[r[s]];return n}}function Yt(e,t){if(!he(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ge(e))Yt(e.value,t);else if(X(e))for(let r=0;r<e.length;r++)Yt(e[r],t);else if(_u(e)||yr(e))e.forEach(r=>{Yt(r,t)});else if(Su(e))for(const r in e)Yt(e[r],t);return e}function U$(e,t){const r=Ee;if(r===null)return e;const n=Bs(r)||r.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,l,a,u=de]=t[i];o&&(ee(o)&&(o={mounted:o,updated:o}),o.deep&&Yt(l),s.push({dir:o,instance:n,value:l,oldValue:void 0,arg:a,modifiers:u}))}return e}function Wt(e,t,r,n){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const l=s[o];i&&(l.oldValue=i[o].value);let a=l.dir[n];a&&(Fr(),st(a,r,8,[e.el,l,e,t]),jr())}}/*! #__NO_SIDE_EFFECTS__ */function ht(e,t){return ee(e)?(()=>Oe({name:e.name},t,{setup:e}))():e}const Xr=e=>!!e.type.__asyncLoader,Gu=e=>e.type.__isKeepAlive;function Ju(e,t){Zu(e,"a",t)}function Xu(e,t){Zu(e,"da",t)}function Zu(e,t,r=we){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Ls(t,n,r),r){let s=r.parent;for(;s&&s.parent;)Gu(s.parent.vnode)&&qd(n,t,r,s),s=s.parent}}function qd(e,t,r,n){const s=Ls(t,e,n,!0);dt(()=>{yo(n[t],s)},r)}function Ls(e,t,r=we,n=!1){if(r){const s=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Fr(),Ar(r);const l=st(t,r,e,o);return Xt(),jr(),l});return n?s.unshift(i):s.push(i),i}}const xt=e=>(t,r=we)=>(!fn||e==="sp")&&Ls(e,(...n)=>t(...n),r),Kd=xt("bm"),Ge=xt("m"),zd=xt("bu"),Yd=xt("u"),jo=xt("bum"),dt=xt("um"),Gd=xt("sp"),Jd=xt("rtg"),Xd=xt("rtc");function Zd(e,t=we){Ls("ec",e,t)}function q$(e,t,r,n){let s;const i=r&&r[n];if(X(e)||Ae(e)){s=new Array(e.length);for(let o=0,l=e.length;o<l;o++)s[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){s=new Array(e);for(let o=0;o<e;o++)s[o]=t(o+1,o,void 0,i&&i[o])}else if(he(e))if(e[Symbol.iterator])s=Array.from(e,(o,l)=>t(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);s=new Array(o.length);for(let l=0,a=o.length;l<a;l++){const u=o[l];s[l]=t(e[u],u,l,i&&i[l])}}else s=[];return r&&(r[n]=s),s}function K$(e,t,r={},n,s){if(Ee.isCE||Ee.parent&&Xr(Ee.parent)&&Ee.parent.isCE)return t!=="default"&&(r.name=t),ke("slot",r,n&&n());let i=e[t];i&&i._c&&(i._d=!1),ac();const o=i&&Qu(i(r)),l=cc(qe,{key:r.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Qu(e){return e.some(t=>as(t)?!(t.type===Ft||t.type===qe&&!Qu(t.children)):!0)?e:null}const Oi=e=>e?hc(e)?Bs(e)||e.proxy:Oi(e.parent):null,Zr=Oe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Oi(e.parent),$root:e=>Oi(e.root),$emit:e=>e.emit,$options:e=>No(e),$forceUpdate:e=>e.f||(e.f=()=>Io(e.update)),$nextTick:e=>e.n||(e.n=vn.bind(e.proxy)),$watch:e=>Ud.bind(e)}),ii=(e,t)=>e!==de&&!e.__isScriptSetup&&le(e,t),Qd={get({_:e},t){const{ctx:r,setupState:n,data:s,props:i,accessCache:o,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return i[t]}else{if(ii(n,t))return o[t]=1,n[t];if(s!==de&&le(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&le(u,t))return o[t]=3,i[t];if(r!==de&&le(r,t))return o[t]=4,r[t];Pi&&(o[t]=0)}}const c=Zr[t];let f,d;if(c)return t==="$attrs"&&Ve(e,"get",t),c(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(r!==de&&le(r,t))return o[t]=4,r[t];if(d=a.config.globalProperties,le(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:i}=e;return ii(s,t)?(s[t]=r,!0):n!==de&&le(n,t)?(n[t]=r,!0):le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:s,propsOptions:i}},o){let l;return!!r[o]||e!==de&&le(e,o)||ii(t,o)||(l=i[0])&&le(l,o)||le(n,o)||le(Zr,o)||le(s.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:le(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function kl(e){return X(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Pi=!0;function eh(e){const t=No(e),r=e.proxy,n=e.ctx;Pi=!1,t.beforeCreate&&Ml(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:l,provide:a,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:m,updated:v,activated:p,deactivated:b,beforeDestroy:$,beforeUnmount:E,destroyed:A,unmounted:w,render:O,renderTracked:g,renderTriggered:_,errorCaptured:k,serverPrefetch:B,expose:I,inheritAttrs:L,components:S,directives:R,filters:U}=t;if(u&&th(u,n,null),o)for(const D in o){const Y=o[D];ee(Y)&&(n[D]=Y.bind(r))}if(s){const D=s.call(r,r);he(D)&&(e.data=vt(D))}if(Pi=!0,i)for(const D in i){const Y=i[D],fe=ee(Y)?Y.bind(r,r):ee(Y.get)?Y.get.bind(r,r):nt,ve=!ee(Y)&&ee(Y.set)?Y.set.bind(r):nt,J=Q({get:fe,set:ve});Object.defineProperty(n,D,{enumerable:!0,configurable:!0,get:()=>J.value,set:se=>J.value=se})}if(l)for(const D in l)ec(l[D],n,r,D);if(a){const D=ee(a)?a.call(r):a;Reflect.ownKeys(D).forEach(Y=>{Dt(Y,D[Y])})}c&&Ml(c,e,"c");function H(D,Y){X(Y)?Y.forEach(fe=>D(fe.bind(r))):Y&&D(Y.bind(r))}if(H(Kd,f),H(Ge,d),H(zd,m),H(Yd,v),H(Ju,p),H(Xu,b),H(Zd,k),H(Xd,g),H(Jd,_),H(jo,E),H(dt,w),H(Gd,B),X(I))if(I.length){const D=e.exposed||(e.exposed={});I.forEach(Y=>{Object.defineProperty(D,Y,{get:()=>r[Y],set:fe=>r[Y]=fe})})}else e.exposed||(e.exposed={});O&&e.render===nt&&(e.render=O),L!=null&&(e.inheritAttrs=L),S&&(e.components=S),R&&(e.directives=R)}function th(e,t,r=nt){X(e)&&(e=Ii(e));for(const n in e){const s=e[n];let i;he(s)?"default"in s?i=Se(s.from||n,s.default,!0):i=Se(s.from||n):i=Se(s),ge(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function Ml(e,t,r){st(X(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function ec(e,t,r,n){const s=n.includes(".")?Yu(r,n):()=>r[n];if(Ae(e)){const i=t[e];ee(i)&&me(s,i)}else if(ee(e))me(s,e.bind(r));else if(he(e))if(X(e))e.forEach(i=>ec(i,t,r,n));else{const i=ee(e.handler)?e.handler.bind(r):t[e.handler];ee(i)&&me(s,i,e)}}function No(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!s.length&&!r&&!n?a=t:(a={},s.length&&s.forEach(u=>os(a,u,o,!0)),os(a,t,o)),he(t)&&i.set(t,a),a}function os(e,t,r,n=!1){const{mixins:s,extends:i}=t;i&&os(e,i,r,!0),s&&s.forEach(o=>os(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const l=rh[o]||r&&r[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const rh={data:Fl,props:jl,emits:jl,methods:Kr,computed:Kr,beforeCreate:Pe,created:Pe,beforeMount:Pe,mounted:Pe,beforeUpdate:Pe,updated:Pe,beforeDestroy:Pe,beforeUnmount:Pe,destroyed:Pe,unmounted:Pe,activated:Pe,deactivated:Pe,errorCaptured:Pe,serverPrefetch:Pe,components:Kr,directives:Kr,watch:sh,provide:Fl,inject:nh};function Fl(e,t){return t?e?function(){return Oe(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function nh(e,t){return Kr(Ii(e),Ii(t))}function Ii(e){if(X(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Pe(e,t){return e?[...new Set([].concat(e,t))]:t}function Kr(e,t){return e?Oe(Object.create(null),e,t):t}function jl(e,t){return e?X(e)&&X(t)?[...new Set([...e,...t])]:Oe(Object.create(null),kl(e),kl(t??{})):t}function sh(e,t){if(!e)return t;if(!t)return e;const r=Oe(Object.create(null),e);for(const n in t)r[n]=Pe(e[n],t[n]);return r}function tc(){return{app:null,config:{isNativeTag:Hp,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ih=0;function oh(e,t){return function(n,s=null){ee(n)||(n=Oe({},n)),s!=null&&!he(s)&&(s=null);const i=tc(),o=new WeakSet;let l=!1;const a=i.app={_uid:ih++,_component:n,_props:s,_container:null,_context:i,_instance:null,version:jh,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&ee(u.install)?(o.add(u),u.install(a,...c)):ee(u)&&(o.add(u),u(a,...c))),a},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),a},component(u,c){return c?(i.components[u]=c,a):i.components[u]},directive(u,c){return c?(i.directives[u]=c,a):i.directives[u]},mount(u,c,f){if(!l){const d=ke(n,s);return d.appContext=i,c&&t?t(d,u):e(d,u,f),l=!0,a._container=u,u.__vue_app__=a,Bs(d.component)||d.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(u,c){return i.provides[u]=c,a},runWithContext(u){ls=a;try{return u()}finally{ls=null}}};return a}}let ls=null;function Dt(e,t){if(we){let r=we.provides;const n=we.parent&&we.parent.provides;n===r&&(r=we.provides=Object.create(n)),r[e]=t}}function Se(e,t,r=!1){const n=we||Ee;if(n||ls){const s=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:ls._context.provides;if(s&&e in s)return s[e];if(arguments.length>1)return r&&ee(t)?t.call(n&&n.proxy):t}}function lh(e,t,r,n=!1){const s={},i={};rs(i,Hs,1),e.propsDefaults=Object.create(null),rc(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);r?e.props=n?s:_d(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function ah(e,t,r,n){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,l=ae(s),[a]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Rs(e.emitsOptions,d))continue;const m=t[d];if(a)if(le(i,d))m!==i[d]&&(i[d]=m,u=!0);else{const v=pt(d);s[v]=ki(a,l,v,m,e,!1)}else m!==i[d]&&(i[d]=m,u=!0)}}}else{rc(e,t,s,i)&&(u=!0);let c;for(const f in l)(!t||!le(t,f)&&((c=ks(f))===f||!le(t,c)))&&(a?r&&(r[f]!==void 0||r[c]!==void 0)&&(s[f]=ki(a,l,f,void 0,e,!0)):delete s[f]);if(i!==l)for(const f in i)(!t||!le(t,f))&&(delete i[f],u=!0)}u&&bt(e,"set","$attrs")}function rc(e,t,r,n){const[s,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(Kn(a))continue;const u=t[a];let c;s&&le(s,c=pt(a))?!i||!i.includes(c)?r[c]=u:(l||(l={}))[c]=u:Rs(e.emitsOptions,a)||(!(a in n)||u!==n[a])&&(n[a]=u,o=!0)}if(i){const a=ae(r),u=l||de;for(let c=0;c<i.length;c++){const f=i[c];r[f]=ki(s,a,f,u[f],e,!le(u,f))}}return o}function ki(e,t,r,n,s,i){const o=e[r];if(o!=null){const l=le(o,"default");if(l&&n===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&ee(a)){const{propsDefaults:u}=s;r in u?n=u[r]:(Ar(s),n=u[r]=a.call(null,t),Xt())}else n=a}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===ks(r))&&(n=!0))}return n}function nc(e,t,r=!1){const n=t.propsCache,s=n.get(e);if(s)return s;const i=e.props,o={},l=[];let a=!1;if(!ee(e)){const c=f=>{a=!0;const[d,m]=nc(f,t,!0);Oe(o,d),m&&l.push(...m)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!a)return he(e)&&n.set(e,vr),vr;if(X(i))for(let c=0;c<i.length;c++){const f=pt(i[c]);Nl(f)&&(o[f]=de)}else if(i)for(const c in i){const f=pt(c);if(Nl(f)){const d=i[c],m=o[f]=X(d)||ee(d)?{type:d}:Oe({},d);if(m){const v=Dl(Boolean,m.type),p=Dl(String,m.type);m[0]=v>-1,m[1]=p<0||v<p,(v>-1||le(m,"default"))&&l.push(f)}}}const u=[o,l];return he(e)&&n.set(e,u),u}function Nl(e){return e[0]!=="$"}function Rl(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ll(e,t){return Rl(e)===Rl(t)}function Dl(e,t){return X(t)?t.findIndex(r=>Ll(r,e)):ee(t)&&Ll(t,e)?0:-1}const sc=e=>e[0]==="_"||e==="$stable",Ro=e=>X(e)?e.map(ut):[ut(e)],uh=(e,t,r)=>{if(t._n)return t;const n=jd((...s)=>Ro(t(...s)),r);return n._c=!1,n},ic=(e,t,r)=>{const n=e._ctx;for(const s in e){if(sc(s))continue;const i=e[s];if(ee(i))t[s]=uh(s,i,n);else if(i!=null){const o=Ro(i);t[s]=()=>o}}},oc=(e,t)=>{const r=Ro(t);e.slots.default=()=>r},ch=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=ae(t),rs(t,"_",r)):ic(t,e.slots={})}else e.slots={},t&&oc(e,t);rs(e.slots,Hs,1)},fh=(e,t,r)=>{const{vnode:n,slots:s}=e;let i=!0,o=de;if(n.shapeFlag&32){const l=t._;l?r&&l===1?i=!1:(Oe(s,t),!r&&l===1&&delete s._):(i=!t.$stable,ic(t,s)),o=t}else t&&(oc(e,t),o={default:1});if(i)for(const l in s)!sc(l)&&o[l]==null&&delete s[l]};function Mi(e,t,r,n,s=!1){if(X(e)){e.forEach((d,m)=>Mi(d,t&&(X(t)?t[m]:t),r,n,s));return}if(Xr(n)&&!s)return;const i=n.shapeFlag&4?Bs(n.component)||n.component.proxy:n.el,o=s?null:i,{i:l,r:a}=e,u=t&&t.r,c=l.refs===de?l.refs={}:l.refs,f=l.setupState;if(u!=null&&u!==a&&(Ae(u)?(c[u]=null,le(f,u)&&(f[u]=null)):ge(u)&&(u.value=null)),ee(a))It(a,l,12,[o,c]);else{const d=Ae(a),m=ge(a);if(d||m){const v=()=>{if(e.f){const p=d?le(f,a)?f[a]:c[a]:a.value;s?X(p)&&yo(p,i):X(p)?p.includes(i)||p.push(i):d?(c[a]=[i],le(f,a)&&(f[a]=c[a])):(a.value=[i],e.k&&(c[e.k]=a.value))}else d?(c[a]=o,le(f,a)&&(f[a]=o)):m&&(a.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,Le(v,r)):v()}}}const Le=Wd;function ph(e){return dh(e)}function dh(e,t){const r=xi();r.__VUE__=!0;const{insert:n,remove:s,patchProp:i,createElement:o,createText:l,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:m=nt,insertStaticContent:v}=e,p=(h,y,x,C=null,T=null,F=null,N=!1,M=null,j=!!y.dynamicChildren)=>{if(h===y)return;h&&!Dr(h,y)&&(C=An(h),se(h,T,F,!0),h=null),y.patchFlag===-2&&(j=!1,y.dynamicChildren=null);const{type:P,ref:q,shapeFlag:V}=y;switch(P){case Ds:b(h,y,x,C);break;case Ft:$(h,y,x,C);break;case zn:h==null&&E(y,x,C,N);break;case qe:S(h,y,x,C,T,F,N,M,j);break;default:V&1?O(h,y,x,C,T,F,N,M,j):V&6?R(h,y,x,C,T,F,N,M,j):(V&64||V&128)&&P.process(h,y,x,C,T,F,N,M,j,cr)}q!=null&&T&&Mi(q,h&&h.ref,F,y||h,!y)},b=(h,y,x,C)=>{if(h==null)n(y.el=l(y.children),x,C);else{const T=y.el=h.el;y.children!==h.children&&u(T,y.children)}},$=(h,y,x,C)=>{h==null?n(y.el=a(y.children||""),x,C):y.el=h.el},E=(h,y,x,C)=>{[h.el,h.anchor]=v(h.children,y,x,C,h.el,h.anchor)},A=({el:h,anchor:y},x,C)=>{let T;for(;h&&h!==y;)T=d(h),n(h,x,C),h=T;n(y,x,C)},w=({el:h,anchor:y})=>{let x;for(;h&&h!==y;)x=d(h),s(h),h=x;s(y)},O=(h,y,x,C,T,F,N,M,j)=>{N=N||y.type==="svg",h==null?g(y,x,C,T,F,N,M,j):B(h,y,T,F,N,M,j)},g=(h,y,x,C,T,F,N,M)=>{let j,P;const{type:q,props:V,shapeFlag:K,transition:Z,dirs:ne}=h;if(j=h.el=o(h.type,F,V&&V.is,V),K&8?c(j,h.children):K&16&&k(h.children,j,null,C,T,F&&q!=="foreignObject",N,M),ne&&Wt(h,null,C,"created"),_(j,h,h.scopeId,N,C),V){for(const ce in V)ce!=="value"&&!Kn(ce)&&i(j,ce,null,V[ce],F,h.children,C,T,Ne);"value"in V&&i(j,"value",null,V.value),(P=V.onVnodeBeforeMount)&&ot(P,C,h)}ne&&Wt(h,null,C,"beforeMount");const pe=hh(T,Z);pe&&Z.beforeEnter(j),n(j,y,x),((P=V&&V.onVnodeMounted)||pe||ne)&&Le(()=>{P&&ot(P,C,h),pe&&Z.enter(j),ne&&Wt(h,null,C,"mounted")},T)},_=(h,y,x,C,T)=>{if(x&&m(h,x),C)for(let F=0;F<C.length;F++)m(h,C[F]);if(T){let F=T.subTree;if(y===F){const N=T.vnode;_(h,N,N.scopeId,N.slotScopeIds,T.parent)}}},k=(h,y,x,C,T,F,N,M,j=0)=>{for(let P=j;P<h.length;P++){const q=h[P]=M?Ct(h[P]):ut(h[P]);p(null,q,y,x,C,T,F,N,M)}},B=(h,y,x,C,T,F,N)=>{const M=y.el=h.el;let{patchFlag:j,dynamicChildren:P,dirs:q}=y;j|=h.patchFlag&16;const V=h.props||de,K=y.props||de;let Z;x&&Ut(x,!1),(Z=K.onVnodeBeforeUpdate)&&ot(Z,x,y,h),q&&Wt(y,h,x,"beforeUpdate"),x&&Ut(x,!0);const ne=T&&y.type!=="foreignObject";if(P?I(h.dynamicChildren,P,M,x,C,ne,F):N||Y(h,y,M,null,x,C,ne,F,!1),j>0){if(j&16)L(M,y,V,K,x,C,T);else if(j&2&&V.class!==K.class&&i(M,"class",null,K.class,T),j&4&&i(M,"style",V.style,K.style,T),j&8){const pe=y.dynamicProps;for(let ce=0;ce<pe.length;ce++){const be=pe[ce],Je=V[be],fr=K[be];(fr!==Je||be==="value")&&i(M,be,Je,fr,T,h.children,x,C,Ne)}}j&1&&h.children!==y.children&&c(M,y.children)}else!N&&P==null&&L(M,y,V,K,x,C,T);((Z=K.onVnodeUpdated)||q)&&Le(()=>{Z&&ot(Z,x,y,h),q&&Wt(y,h,x,"updated")},C)},I=(h,y,x,C,T,F,N)=>{for(let M=0;M<y.length;M++){const j=h[M],P=y[M],q=j.el&&(j.type===qe||!Dr(j,P)||j.shapeFlag&70)?f(j.el):x;p(j,P,q,null,C,T,F,N,!0)}},L=(h,y,x,C,T,F,N)=>{if(x!==C){if(x!==de)for(const M in x)!Kn(M)&&!(M in C)&&i(h,M,x[M],null,N,y.children,T,F,Ne);for(const M in C){if(Kn(M))continue;const j=C[M],P=x[M];j!==P&&M!=="value"&&i(h,M,P,j,N,y.children,T,F,Ne)}"value"in C&&i(h,"value",x.value,C.value)}},S=(h,y,x,C,T,F,N,M,j)=>{const P=y.el=h?h.el:l(""),q=y.anchor=h?h.anchor:l("");let{patchFlag:V,dynamicChildren:K,slotScopeIds:Z}=y;Z&&(M=M?M.concat(Z):Z),h==null?(n(P,x,C),n(q,x,C),k(y.children,x,q,T,F,N,M,j)):V>0&&V&64&&K&&h.dynamicChildren?(I(h.dynamicChildren,K,x,T,F,N,M),(y.key!=null||T&&y===T.subTree)&&Lo(h,y,!0)):Y(h,y,x,q,T,F,N,M,j)},R=(h,y,x,C,T,F,N,M,j)=>{y.slotScopeIds=M,h==null?y.shapeFlag&512?T.ctx.activate(y,x,C,N,j):U(y,x,C,T,F,N,j):te(h,y,j)},U=(h,y,x,C,T,F,N)=>{const M=h.component=Ah(h,C,T);if(Gu(h)&&(M.ctx.renderer=cr),Ch(M),M.asyncDep){if(T&&T.registerDep(M,H),!h.el){const j=M.subTree=ke(Ft);$(null,j,y,x)}return}H(M,h,y,x,T,F,N)},te=(h,y,x)=>{const C=y.component=h.component;if(Ld(h,y,x))if(C.asyncDep&&!C.asyncResolved){D(C,y,x);return}else C.next=y,Id(C.update),C.update();else y.el=h.el,C.vnode=y},H=(h,y,x,C,T,F,N)=>{const M=()=>{if(h.isMounted){let{next:q,bu:V,u:K,parent:Z,vnode:ne}=h,pe=q,ce;Ut(h,!1),q?(q.el=ne.el,D(h,q,N)):q=ne,V&&ri(V),(ce=q.props&&q.props.onVnodeBeforeUpdate)&&ot(ce,Z,q,ne),Ut(h,!0);const be=si(h),Je=h.subTree;h.subTree=be,p(Je,be,f(Je.el),An(Je),h,T,F),q.el=be.el,pe===null&&Dd(h,be.el),K&&Le(K,T),(ce=q.props&&q.props.onVnodeUpdated)&&Le(()=>ot(ce,Z,q,ne),T)}else{let q;const{el:V,props:K}=y,{bm:Z,m:ne,parent:pe}=h,ce=Xr(y);if(Ut(h,!1),Z&&ri(Z),!ce&&(q=K&&K.onVnodeBeforeMount)&&ot(q,pe,y),Ut(h,!0),V&&ei){const be=()=>{h.subTree=si(h),ei(V,h.subTree,h,T,null)};ce?y.type.__asyncLoader().then(()=>!h.isUnmounted&&be()):be()}else{const be=h.subTree=si(h);p(null,be,x,C,h,T,F),y.el=be.el}if(ne&&Le(ne,T),!ce&&(q=K&&K.onVnodeMounted)){const be=y;Le(()=>ot(q,pe,be),T)}(y.shapeFlag&256||pe&&Xr(pe.vnode)&&pe.vnode.shapeFlag&256)&&h.a&&Le(h.a,T),h.isMounted=!0,y=x=C=null}},j=h.effect=new xo(M,()=>Io(P),h.scope),P=h.update=()=>j.run();P.id=h.uid,Ut(h,!0),P()},D=(h,y,x)=>{y.component=h;const C=h.vnode.props;h.vnode=y,h.next=null,ah(h,y.props,C,x),fh(h,y.children,x),Fr(),Ol(h),jr()},Y=(h,y,x,C,T,F,N,M,j=!1)=>{const P=h&&h.children,q=h?h.shapeFlag:0,V=y.children,{patchFlag:K,shapeFlag:Z}=y;if(K>0){if(K&128){ve(P,V,x,C,T,F,N,M,j);return}else if(K&256){fe(P,V,x,C,T,F,N,M,j);return}}Z&8?(q&16&&Ne(P,T,F),V!==P&&c(x,V)):q&16?Z&16?ve(P,V,x,C,T,F,N,M,j):Ne(P,T,F,!0):(q&8&&c(x,""),Z&16&&k(V,x,C,T,F,N,M,j))},fe=(h,y,x,C,T,F,N,M,j)=>{h=h||vr,y=y||vr;const P=h.length,q=y.length,V=Math.min(P,q);let K;for(K=0;K<V;K++){const Z=y[K]=j?Ct(y[K]):ut(y[K]);p(h[K],Z,x,null,T,F,N,M,j)}P>q?Ne(h,T,F,!0,!1,V):k(y,x,C,T,F,N,M,j,V)},ve=(h,y,x,C,T,F,N,M,j)=>{let P=0;const q=y.length;let V=h.length-1,K=q-1;for(;P<=V&&P<=K;){const Z=h[P],ne=y[P]=j?Ct(y[P]):ut(y[P]);if(Dr(Z,ne))p(Z,ne,x,null,T,F,N,M,j);else break;P++}for(;P<=V&&P<=K;){const Z=h[V],ne=y[K]=j?Ct(y[K]):ut(y[K]);if(Dr(Z,ne))p(Z,ne,x,null,T,F,N,M,j);else break;V--,K--}if(P>V){if(P<=K){const Z=K+1,ne=Z<q?y[Z].el:C;for(;P<=K;)p(null,y[P]=j?Ct(y[P]):ut(y[P]),x,ne,T,F,N,M,j),P++}}else if(P>K)for(;P<=V;)se(h[P],T,F,!0),P++;else{const Z=P,ne=P,pe=new Map;for(P=ne;P<=K;P++){const We=y[P]=j?Ct(y[P]):ut(y[P]);We.key!=null&&pe.set(We.key,P)}let ce,be=0;const Je=K-ne+1;let fr=!1,yl=0;const Lr=new Array(Je);for(P=0;P<Je;P++)Lr[P]=0;for(P=Z;P<=V;P++){const We=h[P];if(be>=Je){se(We,T,F,!0);continue}let it;if(We.key!=null)it=pe.get(We.key);else for(ce=ne;ce<=K;ce++)if(Lr[ce-ne]===0&&Dr(We,y[ce])){it=ce;break}it===void 0?se(We,T,F,!0):(Lr[it-ne]=P+1,it>=yl?yl=it:fr=!0,p(We,y[it],x,null,T,F,N,M,j),be++)}const bl=fr?mh(Lr):vr;for(ce=bl.length-1,P=Je-1;P>=0;P--){const We=ne+P,it=y[We],_l=We+1<q?y[We+1].el:C;Lr[P]===0?p(null,it,x,_l,T,F,N,M,j):fr&&(ce<0||P!==bl[ce]?J(it,x,_l,2):ce--)}}},J=(h,y,x,C,T=null)=>{const{el:F,type:N,transition:M,children:j,shapeFlag:P}=h;if(P&6){J(h.component.subTree,y,x,C);return}if(P&128){h.suspense.move(y,x,C);return}if(P&64){N.move(h,y,x,cr);return}if(N===qe){n(F,y,x);for(let V=0;V<j.length;V++)J(j[V],y,x,C);n(h.anchor,y,x);return}if(N===zn){A(h,y,x);return}if(C!==2&&P&1&&M)if(C===0)M.beforeEnter(F),n(F,y,x),Le(()=>M.enter(F),T);else{const{leave:V,delayLeave:K,afterLeave:Z}=M,ne=()=>n(F,y,x),pe=()=>{V(F,()=>{ne(),Z&&Z()})};K?K(F,ne,pe):pe()}else n(F,y,x)},se=(h,y,x,C=!1,T=!1)=>{const{type:F,props:N,ref:M,children:j,dynamicChildren:P,shapeFlag:q,patchFlag:V,dirs:K}=h;if(M!=null&&Mi(M,null,x,h,!0),q&256){y.ctx.deactivate(h);return}const Z=q&1&&K,ne=!Xr(h);let pe;if(ne&&(pe=N&&N.onVnodeBeforeUnmount)&&ot(pe,y,h),q&6)je(h.component,x,C);else{if(q&128){h.suspense.unmount(x,C);return}Z&&Wt(h,null,y,"beforeUnmount"),q&64?h.type.remove(h,y,x,T,cr,C):P&&(F!==qe||V>0&&V&64)?Ne(P,y,x,!1,!0):(F===qe&&V&384||!T&&q&16)&&Ne(j,y,x),C&&ye(h)}(ne&&(pe=N&&N.onVnodeUnmounted)||Z)&&Le(()=>{pe&&ot(pe,y,h),Z&&Wt(h,null,y,"unmounted")},x)},ye=h=>{const{type:y,el:x,anchor:C,transition:T}=h;if(y===qe){ue(x,C);return}if(y===zn){w(h);return}const F=()=>{s(x),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(h.shapeFlag&1&&T&&!T.persisted){const{leave:N,delayLeave:M}=T,j=()=>N(x,F);M?M(h.el,F,j):j()}else F()},ue=(h,y)=>{let x;for(;h!==y;)x=d(h),s(h),h=x;s(y)},je=(h,y,x)=>{const{bum:C,scope:T,update:F,subTree:N,um:M}=h;C&&ri(C),T.stop(),F&&(F.active=!1,se(N,h,y,x)),M&&Le(M,y),Le(()=>{h.isUnmounted=!0},y),y&&y.pendingBranch&&!y.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===y.pendingId&&(y.deps--,y.deps===0&&y.resolve())},Ne=(h,y,x,C=!1,T=!1,F=0)=>{for(let N=F;N<h.length;N++)se(h[N],y,x,C,T)},An=h=>h.shapeFlag&6?An(h.component.subTree):h.shapeFlag&128?h.suspense.next():d(h.anchor||h.el),vl=(h,y,x)=>{h==null?y._vnode&&se(y._vnode,null,null,!0):p(y._vnode||null,h,y,null,null,null,x),Ol(),Wu(),y._vnode=h},cr={p,um:se,m:J,r:ye,mt:U,mc:k,pc:Y,pbc:I,n:An,o:e};let Qs,ei;return t&&([Qs,ei]=t(cr)),{render:vl,hydrate:Qs,createApp:oh(vl,Qs)}}function Ut({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function hh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Lo(e,t,r=!1){const n=e.children,s=t.children;if(X(n)&&X(s))for(let i=0;i<n.length;i++){const o=n[i];let l=s[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[i]=Ct(s[i]),l.el=o.el),r||Lo(o,l)),l.type===Ds&&(l.el=o.el)}}function mh(e){const t=e.slice(),r=[0];let n,s,i,o,l;const a=e.length;for(n=0;n<a;n++){const u=e[n];if(u!==0){if(s=r[r.length-1],e[s]<u){t[n]=s,r.push(n);continue}for(i=0,o=r.length-1;i<o;)l=i+o>>1,e[r[l]]<u?i=l+1:o=l;u<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,o=r[i-1];i-- >0;)r[i]=o,o=t[o];return r}const gh=e=>e.__isTeleport,Qr=e=>e&&(e.disabled||e.disabled===""),Hl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Fi=(e,t)=>{const r=e&&e.to;return Ae(r)?t?t(r):null:r},vh={name:"Teleport",__isTeleport:!0,process(e,t,r,n,s,i,o,l,a,u){const{mc:c,pc:f,pbc:d,o:{insert:m,querySelector:v,createText:p,createComment:b}}=u,$=Qr(t.props);let{shapeFlag:E,children:A,dynamicChildren:w}=t;if(e==null){const O=t.el=p(""),g=t.anchor=p("");m(O,r,n),m(g,r,n);const _=t.target=Fi(t.props,v),k=t.targetAnchor=p("");_&&(m(k,_),o=o||Hl(_));const B=(I,L)=>{E&16&&c(A,I,L,s,i,o,l,a)};$?B(r,g):_&&B(_,k)}else{t.el=e.el;const O=t.anchor=e.anchor,g=t.target=e.target,_=t.targetAnchor=e.targetAnchor,k=Qr(e.props),B=k?r:g,I=k?O:_;if(o=o||Hl(g),w?(d(e.dynamicChildren,w,B,s,i,o,l),Lo(e,t,!0)):a||f(e,t,B,I,s,i,o,l,!1),$)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Fn(t,r,O,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const L=t.target=Fi(t.props,v);L&&Fn(t,L,null,u,0)}else k&&Fn(t,g,_,u,1)}lc(t)},remove(e,t,r,n,{um:s,o:{remove:i}},o){const{shapeFlag:l,children:a,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&i(c),o&&i(u),l&16){const m=o||!Qr(d);for(let v=0;v<a.length;v++){const p=a[v];s(p,t,r,m,!!p.dynamicChildren)}}},move:Fn,hydrate:yh};function Fn(e,t,r,{o:{insert:n},m:s},i=2){i===0&&n(e.targetAnchor,t,r);const{el:o,anchor:l,shapeFlag:a,children:u,props:c}=e,f=i===2;if(f&&n(o,t,r),(!f||Qr(c))&&a&16)for(let d=0;d<u.length;d++)s(u[d],t,r,2);f&&n(l,t,r)}function yh(e,t,r,n,s,i,{o:{nextSibling:o,parentNode:l,querySelector:a}},u){const c=t.target=Fi(t.props,a);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(Qr(t.props))t.anchor=u(o(e),t,l(e),r,n,s,i),t.targetAnchor=f;else{t.anchor=o(e);let d=f;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,c._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(f,t,c,r,n,s,i)}lc(t)}return t.anchor&&o(t.anchor)}const bh=vh;function lc(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r&&r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const qe=Symbol.for("v-fgt"),Ds=Symbol.for("v-txt"),Ft=Symbol.for("v-cmt"),zn=Symbol.for("v-stc"),en=[];let Qe=null;function ac(e=!1){en.push(Qe=e?null:[])}function _h(){en.pop(),Qe=en[en.length-1]||null}let cn=1;function Bl(e){cn+=e}function uc(e){return e.dynamicChildren=cn>0?Qe||vr:null,_h(),cn>0&&Qe&&Qe.push(e),e}function z$(e,t,r,n,s,i){return uc(pc(e,t,r,n,s,i,!0))}function cc(e,t,r,n,s){return uc(ke(e,t,r,n,s,!0))}function as(e){return e?e.__v_isVNode===!0:!1}function Dr(e,t){return e.type===t.type&&e.key===t.key}const Hs="__vInternal",fc=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ae(e)||ge(e)||ee(e)?{i:Ee,r:e,k:t,f:!!r}:e:null);function pc(e,t=null,r=null,n=0,s=null,i=e===qe?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fc(t),ref:t&&Yn(t),scopeId:Ku,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ee};return l?(Do(a,r),i&128&&e.normalize(a)):r&&(a.shapeFlag|=Ae(r)?8:16),cn>0&&!o&&Qe&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Qe.push(a),a}const ke=wh;function wh(e,t=null,r=null,n=0,s=null,i=!1){if((!e||e===zu)&&(e=Ft),as(e)){const l=rr(e,t,!0);return r&&Do(l,r),cn>0&&!i&&Qe&&(l.shapeFlag&6?Qe[Qe.indexOf(e)]=l:Qe.push(l)),l.patchFlag|=-2,l}if(kh(e)&&(e=e.__vccOpts),t){t=$h(t);let{class:l,style:a}=t;l&&!Ae(l)&&(t.class=$o(l)),he(a)&&(Nu(a)&&!X(a)&&(a=Oe({},a)),t.style=wo(a))}const o=Ae(e)?1:Vd(e)?128:gh(e)?64:he(e)?4:ee(e)?2:0;return pc(e,t,r,n,s,o,i,!0)}function $h(e){return e?Nu(e)||Hs in e?Oe({},e):e:null}function rr(e,t,r=!1){const{props:n,ref:s,patchFlag:i,children:o}=e,l=t?Sh(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&fc(l),ref:t&&t.ref?r&&s?X(s)?s.concat(Yn(t)):[s,Yn(t)]:Yn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&rr(e.ssContent),ssFallback:e.ssFallback&&rr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function dc(e=" ",t=0){return ke(Ds,null,e,t)}function Y$(e,t){const r=ke(zn,null,e);return r.staticCount=t,r}function G$(e="",t=!1){return t?(ac(),cc(Ft,null,e)):ke(Ft,null,e)}function ut(e){return e==null||typeof e=="boolean"?ke(Ft):X(e)?ke(qe,null,e.slice()):typeof e=="object"?Ct(e):ke(Ds,null,String(e))}function Ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:rr(e)}function Do(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(X(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),Do(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!(Hs in t)?t._ctx=Ee:s===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:Ee},r=32):(t=String(t),n&64?(r=16,t=[dc(t)]):r=8);e.children=t,e.shapeFlag|=r}function Sh(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=$o([t.class,n.class]));else if(s==="style")t.style=wo([t.style,n.style]);else if(vo(s)){const i=t[s],o=n[s];o&&i!==o&&!(X(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=n[s])}return t}function ot(e,t,r,n=null){st(e,t,7,[r,n])}const xh=tc();let Eh=0;function Ah(e,t,r){const n=e.type,s=(t?t.appContext:e.appContext)||xh,i={uid:Eh++,vnode:e,type:n,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Jp(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:nc(n,s),emitsOptions:qu(n,s),emit:null,emitted:null,propsDefaults:de,inheritAttrs:n.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Fd.bind(null,i),e.ce&&e.ce(i),i}let we=null;const nr=()=>we||Ee;let Ho,pr,Vl="__VUE_INSTANCE_SETTERS__";(pr=xi()[Vl])||(pr=xi()[Vl]=[]),pr.push(e=>we=e),Ho=e=>{pr.length>1?pr.forEach(t=>t(e)):pr[0](e)};const Ar=e=>{Ho(e),e.scope.on()},Xt=()=>{we&&we.scope.off(),Ho(null)};function hc(e){return e.vnode.shapeFlag&4}let fn=!1;function Ch(e,t=!1){fn=t;const{props:r,children:n}=e.vnode,s=hc(e);lh(e,r,s,t),ch(e,n);const i=s?Th(e,t):void 0;return fn=!1,i}function Th(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=gn(new Proxy(e.ctx,Qd));const{setup:n}=r;if(n){const s=e.setupContext=n.length>1?Ph(e):null;Ar(e),Fr();const i=It(n,e,0,[e.props,s]);if(jr(),Xt(),wu(i)){if(i.then(Xt,Xt),t)return i.then(o=>{Wl(e,o,t)}).catch(o=>{Ns(o,e,0)});e.asyncDep=i}else Wl(e,i,t)}else mc(e,t)}function Wl(e,t,r){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=Lu(t)),mc(e,r)}let Ul;function mc(e,t,r){const n=e.type;if(!e.render){if(!t&&Ul&&!n.render){const s=n.template||No(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=n,u=Oe(Oe({isCustomElement:i,delimiters:l},o),a);n.render=Ul(s,u)}}e.render=n.render||nt}{Ar(e),Fr();try{eh(e)}finally{jr(),Xt()}}}function Oh(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return Ve(e,"get","$attrs"),t[r]}}))}function Ph(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return Oh(e)},slots:e.slots,emit:e.emit,expose:t}}function Bs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Lu(gn(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Zr)return Zr[r](e)},has(t,r){return r in t||r in Zr}}))}function Ih(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function kh(e){return ee(e)&&"__vccOpts"in e}const Q=(e,t)=>Td(e,t,fn);function Ce(e,t,r){const n=arguments.length;return n===2?he(t)&&!X(t)?as(t)?ke(e,null,[t]):ke(e,t):ke(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&as(r)&&(r=[r]),ke(e,t,r))}const Mh=Symbol.for("v-scx"),Fh=()=>Se(Mh),jh="3.3.13";function Nh(e,t){const r=Object.create(null),n=e.split(",");for(let s=0;s<n.length;s++)r[n[s]]=!0;return t?s=>!!r[s.toLowerCase()]:s=>!!r[s]}const Rh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Lh=e=>e.startsWith("onUpdate:"),Dh=Object.assign,gc=Array.isArray,vc=e=>typeof e=="function",us=e=>typeof e=="string",yc=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Hh=/\B([A-Z])/g,bc=yc(e=>e.replace(Hh,"-$1").toLowerCase()),Bh=yc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Wh=Nh(Vh);function _c(e){return!!e||e===""}const Uh="http://www.w3.org/2000/svg",Kt=typeof document<"u"?document:null,ql=Kt&&Kt.createElement("template"),qh={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const s=t?Kt.createElementNS(Uh,e):Kt.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>Kt.createTextNode(e),createComment:e=>Kt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Kt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,i){const o=r?r.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===i||!(s=s.nextSibling)););else{ql.innerHTML=n?`<svg>${e}</svg>`:e;const l=ql.content;if(n){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Kh=Symbol("_vtc");function zh(e,t,r){const n=e[Kh];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Bo=Symbol("_vod"),J$={beforeMount(e,{value:t},{transition:r}){e[Bo]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Hr(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Hr(e,!0),n.enter(e)):n.leave(e,()=>{Hr(e,!1)}):Hr(e,t))},beforeUnmount(e,{value:t}){Hr(e,t)}};function Hr(e,t){e.style.display=t?e[Bo]:"none"}const Yh=Symbol("");function Gh(e,t,r){const n=e.style,s=us(r);if(r&&!s){if(t&&!us(t))for(const i in t)r[i]==null&&ji(n,i,"");for(const i in r)ji(n,i,r[i])}else{const i=n.display;if(s){if(t!==r){const o=n[Yh];o&&(r+=";"+o),n.cssText=r}}else t&&e.removeAttribute("style");Bo in e&&(n.display=i)}}const Kl=/\s*!important$/;function ji(e,t,r){if(gc(r))r.forEach(n=>ji(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Jh(e,t);Kl.test(r)?e.setProperty(bc(n),r.replace(Kl,""),"important"):e[n]=r}}const zl=["Webkit","Moz","ms"],oi={};function Jh(e,t){const r=oi[t];if(r)return r;let n=pt(t);if(n!=="filter"&&n in e)return oi[t]=n;n=Bh(n);for(let s=0;s<zl.length;s++){const i=zl[s]+n;if(i in e)return oi[t]=i}return t}const Yl="http://www.w3.org/1999/xlink";function Xh(e,t,r,n,s){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(Yl,t.slice(6,t.length)):e.setAttributeNS(Yl,t,r);else{const i=Wh(t);r==null||i&&!_c(r)?e.removeAttribute(t):e.setAttribute(t,i?"":r)}}function Zh(e,t,r,n,s,i,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,s,i),e[t]=r??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=r;const u=l==="OPTION"?e.getAttribute("value"):e.value,c=r??"";u!==c&&(e.value=c),r==null&&e.removeAttribute(t);return}let a=!1;if(r===""||r==null){const u=typeof e[t];u==="boolean"?r=_c(r):r==null&&u==="string"?(r="",a=!0):u==="number"&&(r=0,a=!0)}try{e[t]=r}catch{}a&&e.removeAttribute(t)}function Qh(e,t,r,n){e.addEventListener(t,r,n)}function em(e,t,r,n){e.removeEventListener(t,r,n)}const Gl=Symbol("_vei");function tm(e,t,r,n,s=null){const i=e[Gl]||(e[Gl]={}),o=i[t];if(n&&o)o.value=n;else{const[l,a]=rm(t);if(n){const u=i[t]=im(n,s);Qh(e,l,u,a)}else o&&(em(e,l,o,a),i[t]=void 0)}}const Jl=/(?:Once|Passive|Capture)$/;function rm(e){let t;if(Jl.test(e)){t={};let n;for(;n=e.match(Jl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):bc(e.slice(2)),t]}let li=0;const nm=Promise.resolve(),sm=()=>li||(nm.then(()=>li=0),li=Date.now());function im(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;st(om(n,r.value),t,5,[n])};return r.value=e,r.attached=sm(),r}function om(e,t){if(gc(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}const Xl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,lm=(e,t,r,n,s=!1,i,o,l,a)=>{t==="class"?zh(e,n,s):t==="style"?Gh(e,r,n):Rh(t)?Lh(t)||tm(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):am(e,t,n,s))?Zh(e,t,n,i,o,l,a):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Xh(e,t,n,s))};function am(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Xl(t)&&vc(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Xl(t)&&us(r)?!1:t in e}const um=Dh({patchProp:lm},qh);let Zl;function cm(){return Zl||(Zl=ph(um))}const X$=(...e)=>{const t=cm().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=fm(n);if(!s)return;const i=t._component;!vc(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=r(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function fm(e){return us(e)?document.querySelector(e):e}var pm=typeof window<"u",wc=["__key","__init","__shim","__original","__index","__prevKey"];function Nr(){return Math.random().toString(36).substring(2,15)}function dm(e,t){const r=e instanceof Set?e:new Set(e);return t&&t.forEach(n=>r.add(n)),[...r]}function G(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Me(e,t,r=!0,n=["__key"]){if(e===t)return!0;if(typeof t=="object"&&typeof e=="object"){if(e instanceof Map||e instanceof Set)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return hm(e,t);if(e===null||t===null||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s of n)if((s in e||s in t)&&e[s]!==t[s])return!1;for(const s in e)if(!(s in t)||e[s]!==t[s]&&!r||r&&!Me(e[s],t[s],r,n))return!1;return!0}return!1}function hm(e,t){return e.source===t.source&&e.flags.split("").sort().join("")===t.flags.split("").sort().join("")}function ze(e){const t=typeof e;if(t==="number")return!1;if(e===void 0)return!0;if(t==="string")return e==="";if(t==="object"){if(e===null)return!0;for(const r in e)return!1;return!(e instanceof RegExp||e instanceof Date)}return!1}function mm(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gm(e){const t=`^${mm(e)}$`,r={MM:"(0[1-9]|1[012])",M:"([1-9]|1[012])",DD:"([012][0-9]|3[01])",D:"([012]?[0-9]|3[01])",YYYY:"\\d{4}",YY:"\\d{2}"},n=Object.keys(r);return new RegExp(n.reduce((s,i)=>s.replace(i,r[i]),t))}function cs(e){return Object.prototype.toString.call(e)==="[object Object]"}function tn(e){return cs(e)||Array.isArray(e)}function Cr(e){if(cs(e)===!1||e.__FKNode__||e.__POJO__===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(cs(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)}var jt=(e,t,r=!1,n=!1)=>{if(t===null)return null;const s={};if(typeof t=="string")return t;for(const i in e)if(G(t,i)&&(t[i]!==void 0||!n)){if(r&&Array.isArray(e[i])&&Array.isArray(t[i])){s[i]=e[i].concat(t[i]);continue}if(t[i]===void 0)continue;Cr(e[i])&&Cr(t[i])?s[i]=jt(e[i],t[i],r,n):s[i]=t[i]}else s[i]=e[i];for(const i in t)!G(s,i)&&t[i]!==void 0&&(s[i]=t[i]);return s};function vm(e){if(e[0]!=='"'&&e[0]!=="'"||e[0]!==e[e.length-1])return!1;const t=e[0];for(let r=1;r<e.length;r++)if(e[r]===t&&(r===1||e[r-1]!=="\\")&&r!==e.length-1)return!1;return!0}function ym(e){if(!e.length)return"";let t="",r="";for(let n=0;n<e.length;n++){const s=e.charAt(n);(s!=="\\"||r==="\\")&&(t+=s),r=s}return t}function dr(...e){return e.reduce((t,r)=>{const{value:n,name:s,modelValue:i,config:o,plugins:l,...a}=r;return Object.assign(t,a)},{})}function bm(e){const t=[];let r="",n=0,s="",i="";for(let o=0;o<e.length;o++){const l=e.charAt(o);l===s&&i!=="\\"?s="":(l==="'"||l==='"')&&!s&&i!=="\\"?s=l:l==="("&&!s?n++:l===")"&&!s&&n--,l===","&&!s&&n===0?(t.push(r),r=""):(l!==" "||s)&&(r+=l),i=l}return r&&t.push(r),t}function Ql(e,t){const r={},n=t.filter(i=>i instanceof RegExp),s=new Set(t);for(const i in e)!s.has(i)&&!n.some(o=>o.test(i))&&(r[i]=e[i]);return r}function ea(e,t){const r={},n=t.filter(s=>s instanceof RegExp);return t.forEach(s=>{s instanceof RegExp||(r[s]=e[s])}),Object.keys(e).forEach(s=>{n.some(i=>i.test(s))&&(r[s]=e[s])}),r}function wr(e){return e.replace(/-([a-z0-9])/gi,(t,r)=>r.toUpperCase())}function $c(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,r,n)=>r+"-"+n.toLowerCase()).replace(" ","-").toLowerCase()}function Ni(e,t=wc){if(e!==null&&typeof e=="object"){let r;if(Array.isArray(e)?r=[...e]:Cr(e)&&(r={...e}),r)return wm(e,r,t),r}return e}function Tr(e,t=wc){if(e===null||e instanceof RegExp||e instanceof Date||e instanceof Map||e instanceof Set||typeof File=="function"&&e instanceof File)return e;let r;Array.isArray(e)?r=e.map(n=>typeof n=="object"?Tr(n,t):n):r=Object.keys(e).reduce((n,s)=>(n[s]=typeof e[s]=="object"?Tr(e[s],t):e[s],n),{});for(const n of t)n in e&&Object.defineProperty(r,n,{enumerable:!1,value:e[n]});return r}function et(e){return typeof e=="object"?Tr(e):e}function _m(e,t){if(!e||typeof e!="object")return null;const r=t.split(".");let n=e;for(const s in r){const i=r[s];if(G(n,i)&&(n=n[i]),+s===r.length-1)return n;if(!n||typeof n!="object")return null}return null}function tt(e){return e!==void 0&&e!=="false"&&e!==!1?!0:void 0}function Or(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function Vo(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function wm(e,t,r){for(const n of r)n in e&&Object.defineProperty(t,n,{enumerable:!1,value:e[n]});return t}function ta(e,t,r){if(!pm)return;r||(r=document);const n=r.getElementById(e);if(n)return t(n);const s=new MutationObserver(()=>{const i=r==null?void 0:r.getElementById(e);i&&(s==null||s.disconnect(),t(i))});s.observe(r,{childList:!0,subtree:!0})}function $m(e){let t=!1;return(...r)=>{if(!t)return t=!0,queueMicrotask(()=>t=!1),e(...r)}}function Sm(e){if(!(e==="false"||e===!1))return!0}function Wo(){const e=[];let t=0;const r=s=>e.push(s),n=s=>{const i=e[t];return typeof i=="function"?i(s,o=>(t++,n(o))):(t=0,s)};return r.dispatch=n,r.unshift=s=>e.unshift(s),r.remove=s=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)},r}function Sc(){const e=new Map,t=new Map;let r;const n=(s,i)=>{if(r){r.set(i.name,[s,i]);return}e.has(i.name)&&e.get(i.name).forEach(o=>{(i.origin===s||o.modifiers.includes("deep"))&&o.listener(i)}),i.bubble&&s.bubble(i)};return n.flush=()=>{e.clear(),t.clear(),r==null||r.clear()},n.on=(s,i,o="push")=>{const[l,...a]=s.split("."),u=i.receipt||Nr(),c={modifiers:a,event:l,listener:i,receipt:u};return e.has(l)?e.get(l)[o](c):e.set(l,[c]),t.has(u)?t.get(u)[o](l):t.set(u,[l]),u},n.off=s=>{var i;t.has(s)&&((i=t.get(s))==null||i.forEach(o=>{const l=e.get(o);Array.isArray(l)&&e.set(o,l.filter(a=>a.receipt!==s))}),t.delete(s))},n.pause=s=>{r||(r=new Map),s&&s.walk(i=>i._e.pause())},n.play=s=>{if(!r)return;const i=r;r=void 0,i.forEach(([o,l])=>n(o,l)),s&&s.walk(o=>o._e.play())},n}function xm(e,t,r,n,s=!0,i){return t._e(e,{payload:n,name:r,bubble:s,origin:e,meta:i}),e}function Em(e,t,r){return bn(e.parent)&&e.parent._e(e.parent,r),e}function Am(e,t,r,n,s){return t._e.on(r,n,s)}function Cm(e,t,r){return t._e.off(r),e}var Uo=Wo();Uo((e,t)=>(e.message||(e.message=`E${e.code}`),t(e)));var qo=Wo();qo((e,t)=>{e.message||(e.message=`W${e.code}`);const r=t(e);return console&&typeof console.warn=="function"&&console.warn(r.message),r});function lr(e,t={}){qo.dispatch({code:e,data:t})}function Ke(e,t={}){throw Error(Uo.dispatch({code:e,data:t}).message)}function Fe(e,t){const r={blocking:!1,key:Nr(),meta:{},type:"state",visible:!0,...e};return t&&r.value&&r.meta.localize!==!1&&(r.value=t.t(r),r.meta.locale=t.config.locale),r}var ra={apply:Mm,set:Om,remove:xc,filter:Im,reduce:km,release:Nm,touch:Pm};function Tm(e=!1){const t={};let r,n=e,s=[];const i=new Map;let o;const l=new Proxy(t,{get(...a){const[u,c]=a;return c==="buffer"?n:c==="_b"?s:c==="_m"?i:c==="_r"?o:G(ra,c)?ra[c].bind(null,t,l,r):Reflect.get(...a)},set(a,u,c){return u==="_n"?(r=c,o==="__n"&&Ec(r,l),!0):u==="_b"?(s=c,!0):u==="buffer"?(n=c,!0):u==="_r"?(o=c,!0):(Ke(101,r),!1)}});return l}function Om(e,t,r,n){if(t.buffer)return t._b.push([[n]]),t;if(e[n.key]!==n){if(typeof n.value=="string"&&n.meta.localize!==!1){const i=n.value;n.value=r.t(n),n.value!==i&&(n.meta.locale=r.props.locale)}const s=`message-${G(e,n.key)?"updated":"added"}`;e[n.key]=Object.freeze(r.hook.message.dispatch(n)),r.emit(s,n)}return t}function Pm(e,t){for(const r in e){const n={...e[r]};t.set(n)}}function xc(e,t,r,n){if(G(e,n)){const s=e[n];delete e[n],r.emit("message-removed",s)}return t.buffer===!0&&(t._b=t._b.filter(s=>(s[0]=s[0].filter(i=>i.key!==n),s[1]||s[0].length))),t}function Im(e,t,r,n,s){for(const i in e){const o=e[i];(!s||o.type===s)&&!n(o)&&xc(e,t,r,i)}}function km(e,t,r,n,s){for(const i in e){const o=e[i];s=n(s,o)}return s}function Mm(e,t,r,n,s){if(Array.isArray(n)){if(t.buffer){t._b.push([n,s]);return}const i=new Set(n.map(o=>(t.set(o),o.key)));typeof s=="string"?t.filter(o=>o.type!==s||i.has(o.key)):typeof s=="function"&&t.filter(o=>!s(o)||i.has(o.key))}else for(const i in n){const o=r.at(i);o?o.store.apply(n[i],s):jm(r,t,i,n[i],s)}}function Fm(e,...t){const r=`${e.name}-set`,n=s=>Fe({key:Vo(s),type:"error",value:s,meta:{source:r,autoClear:!0}});return t.filter(s=>!!s).map(s=>{if(typeof s=="string"&&(s=[s]),Array.isArray(s))return s.map(i=>n(i));{const i={};for(const o in s)Array.isArray(s[o])?i[o]=s[o].map(l=>n(l)):i[o]=[n(s[o])];return i}})}function jm(e,t,r,n,s){var o;const i=t._m;i.has(r)||i.set(r,[]),t._r||(t._r=Ec(e,t)),(o=i.get(r))==null||o.push([n,s])}function Ec(e,t){return e.on("child.deep",({payload:r})=>{t._m.forEach((n,s)=>{e.at(s)===r&&(n.forEach(([i,o])=>{r.store.apply(i,o)}),t._m.delete(s))}),t._m.size===0&&t._r&&(e.off(t._r),t._r=void 0)})}function Nm(e,t){t.buffer=!1,t._b.forEach(([r,n])=>t.apply(r,n)),t._b=[]}function Rm(){const e={};let t;return{count:(...r)=>Lm(t,e,...r),init(r){t=r,r.on("message-added.deep",na(e,1)),r.on("message-removed.deep",na(e,-1))},merge:r=>sa(t,e,r),settled(r){return G(e,r)?e[r].promise:Promise.resolve()},unmerge:r=>sa(t,e,r,!0),value(r){return G(e,r)?e[r].count:0}}}function Lm(e,t,r,n,s=0){if(n=Dm(n||r),!G(t,r)){const i={condition:n,count:0,name:r,node:e,promise:Promise.resolve(),resolve:()=>{}};t[r]=i,s=e.store.reduce((o,l)=>o+i.condition(l)*1,s),e.each(o=>{o.ledger.count(i.name,i.condition),s+=o.ledger.value(i.name)})}return Ac(t[r],s).promise}function Dm(e){return typeof e=="function"?e:t=>t.type===e}function Ac(e,t){const r=e.count,n=e.count+t;return e.count=n,r===0&&n!==0?(e.node.emit(`unsettled:${e.name}`,e.count,!1),e.promise=new Promise(s=>e.resolve=s)):r!==0&&n===0&&(e.node.emit(`settled:${e.name}`,e.count,!1),e.resolve()),e.node.emit(`count:${e.name}`,e.count,!1),e}function na(e,t){return r=>{for(const n in e){const s=e[n];s.condition(r.payload)&&Ac(s,t)}}}function sa(e,t,r,n=!1){const s=e;for(const i in t){const o=t[i].condition;n||r.ledger.count(i,o);const l=r.ledger.value(i)*(n?-1:1);if(e){do e.ledger.count(i,o,l),e=e.parent;while(e);e=s}}}var Ko=new Map,Gn=new Map,zo=Sc();function Hm(e){e.props.id&&(Ko.set(e.props.id,e),Gn.set(e,e.props.id),zo(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function Bm(e){if(Gn.has(e)){const t=Gn.get(e);Gn.delete(e),Ko.delete(t),zo(e,{payload:null,name:t,bubble:!1,origin:e})}}function yn(e){return Ko.get(e)}function Vm(e,t){return zo.on(e,t)}function Ri(e,t,r){let n=!0;return t in e.config._t?n=!1:e.emit(`config:${t}`,r,!1),t in e.props||(e.emit("prop",{prop:t,value:r}),e.emit(`prop:${t}`,r)),n}function Wm(e={}){const t=new Set,r={...e,_add:s=>t.add(s),_rm:s=>t.delete(s)};return new Proxy(r,{set(s,i,o,l){return typeof i=="string"&&t.forEach(a=>Ri(a,i,o)),Reflect.set(s,i,o,l)}})}function Cc(e,t){const r=(t||document).getElementById(e);if(r instanceof HTMLFormElement){const n=new Event("submit",{cancelable:!0,bubbles:!0});r.dispatchEvent(n);return}lr(151,e)}function Um(e){const t=r=>{for(const n in r.store){const s=r.store[n];s.type==="error"||s.type==="ui"&&n==="incomplete"?r.store.remove(n):s.type==="state"&&r.store.set({...s,value:!1})}};t(e),e.walk(t)}function Tc(e,t){const r=typeof e=="string"?yn(e):e;if(r){const n=o=>et(o.props.initial)||(o.type==="group"?{}:o.type==="list"?[]:void 0);r._e.pause(r);const s=et(t);return t&&!ze(t)&&(r.props.initial=tn(s)?Or(s):s,r.props._init=r.props.initial),r.input(n(r),!1),r.walk(o=>{o.type==="list"&&o.sync||o.input(n(o),!1)}),r.input(ze(s)&&s?s:n(r),!1),r.type!=="input"&&t&&!ze(t)&&tn(t)&&r.walk(o=>{o.props.initial=tn(o.value)?Or(o.value):o.value,o.props._init=o.props.initial}),r._e.play(r),Um(r),r.emit("reset",r),r}lr(152,e)}var qm={delimiter:".",delay:0,locale:"en",rootClasses:e=>({[`formkit-${$c(e)}`]:!0})},Oc=Symbol("index"),Li=Symbol("removed"),Di=Symbol("moved"),Pc=Symbol("inserted");function Km(e){return e.type==="list"&&Array.isArray(e._value)}function bn(e){return e&&typeof e=="object"&&e.__FKNode__===!0}var Jn=(e,t,r)=>{Ke(102,[e,r])},zm={_c:oe(hg,Jn,!1),add:oe(og),addProps:oe(ig),address:oe(gg,Jn,!1),at:oe(vg),bubble:oe(Em),clearErrors:oe(Ag),calm:oe(rg),config:oe(!1),define:oe(sg),disturb:oe(tg),destroy:oe(ng),extend:oe(Tg),hydrate:oe(Qm),index:oe(dg,pg,!1),input:oe(Mc),each:oe(ug),emit:oe(xm),find:oe(bg),on:oe(Am),off:oe(Cm),parent:oe(!1,lg),plugins:oe(!1),remove:oe(ag),root:oe(wg,Jn,!1),reset:oe(xg),resetConfig:oe(fg),setErrors:oe(Eg),submit:oe(Sg),t:oe($g),use:oe(Yo),name:oe(mg,!1,!1),walk:oe(cg)};function Ym(){return new Map(Object.entries(zm))}function oe(e,t,r=!0){return{get:e?(n,s)=>r?(...i)=>e(n,s,...i):e(n,s):!1,set:t!==void 0?t:Jn.bind(null)}}function Gm(){const e=new Map;return new Proxy(e,{get(t,r){return e.has(r)||e.set(r,Wo()),e.get(r)}})}var Ic=0,Jm=0;function Xm(e){var t,r;return((t=e.parent)==null?void 0:t.type)==="list"?Oc:e.name||`${((r=e.props)==null?void 0:r.type)||"input"}_${++Ic}`}function kc(e){return e.type==="group"?Or(e.value&&typeof e.value=="object"&&!Array.isArray(e.value)?e.value:{}):e.type==="list"?Or(Array.isArray(e.value)?e.value:[]):e.value}function Mc(e,t,r,n=!0){return t._value=Zm(e,e.hook.input.dispatch(r)),e.emit("input",t._value),e.isCreated&&e.type==="input"&&Me(t._value,t.value)&&!e.props.mergeStrategy?(e.emit("commitRaw",t.value),t.settled):(t.isSettled&&e.disturb(),n?(t._tmo&&clearTimeout(t._tmo),t._tmo=setTimeout(fs,e.props.delay,e,t)):fs(e,t),t.settled)}function Zm(e,t){switch(e.type){case"input":break;case"group":(!t||typeof t!="object")&&Ke(107,[e,t]);break;case"list":Array.isArray(t)||Ke(108,[e,t]);break}return t}function fs(e,t,r=!0,n=!0){t._value=t.value=e.hook.commit.dispatch(t._value),e.type!=="input"&&n&&e.hydrate(),e.emit("commitRaw",t.value),e.emit("commit",t.value),r&&e.calm()}function Fc(e,{name:t,value:r,from:n}){if(!Object.isFrozen(e._value)){if(Km(e)){const s=r===Li?[]:r===Di&&typeof n=="number"?e._value.splice(n,1):[r];e._value.splice(t,r===Di||n===Pc?0:1,...s);return}r!==Li?e._value[t]=r:delete e._value[t]}}function Qm(e,t){const r=t._value;return e.type==="list"&&e.sync&&eg(e,t),t.children.forEach(n=>{if(typeof r=="object")if(n.name in r){const s=n.type!=="input"||r[n.name]&&typeof r[n.name]=="object"?Or(r[n.name]):r[n.name];if(!n.isSettled||(!tn(s)||n.props.mergeStrategy)&&Me(s,n._value))return;n.input(s,!1)}else(e.type!=="list"||typeof n.name=="number")&&Fc(t,{name:n.name,value:n.value}),r.__init||(n.type==="group"?n.input({},!1):n.type==="list"?n.input([],!1):n.input(void 0,!1))}),e}function eg(e,t){const r=e._value;if(!Array.isArray(r))return;const n=[],s=new Set(t.children),i=new Map;r.forEach((l,a)=>{if(t.children[a]&&t.children[a]._value===l)n.push(t.children[a]),s.delete(t.children[a]);else{n.push(null);const u=i.get(l)||[];u.push(a),i.set(l,u)}}),s.size&&i.size&&s.forEach(l=>{if(i.has(l._value)){const a=i.get(l._value),u=a.shift();n[u]=l,s.delete(l),a.length||i.delete(l._value)}});const o=[];for(i.forEach(l=>{o.push(...l)});s.size&&o.length;){const l=s.values().next().value,a=o.shift();if(a===void 0)break;n[a]=l,s.delete(l)}o.forEach((l,a)=>{n[l]=kg({value:a})}),s.size&&s.forEach(l=>{if(!("__FKP"in l)){const a=l._c.parent;if(!a||Go(a))return;a.ledger.unmerge(l),l._c.parent=null,l.destroy()}}),t.children=n}function tg(e,t){var r;return t._d<=0&&(t.isSettled=!1,e.emit("settled",!1,!1),t.settled=new Promise(n=>{t._resolve=n}),e.parent&&((r=e.parent)==null||r.disturb())),t._d++,e}function rg(e,t,r){var n;if(r!==void 0&&e.type!=="input"){Fc(t,r);const s=!!(e.config.mergeStrategy&&e.config.mergeStrategy[r.name]);return fs(e,t,!0,s)}t._d>0&&t._d--,t._d===0&&(t.isSettled=!0,e.emit("settled",!0,!1),e.parent&&((n=e.parent)==null||n.calm({name:e.name,value:t.value})),t._resolve&&t._resolve(t.value))}function ng(e,t){e.emit("destroying",e),e.store.filter(()=>!1),e.parent&&e.parent.remove(e),Bm(e),e.emit("destroyed",e),t._e.flush(),t._value=t.value=void 0;for(const r in t.context)delete t.context[r];t.plugins.clear(),t.context=null}function sg(e,t,r){t.type=r.type;const n=Tr(r);e.props.__propDefs=jc(e.props.__propDefs??[],(n==null?void 0:n.props)||[]),n.props=e.props.__propDefs,t.props.definition=n,t.value=t._value=kc({type:e.type,value:t.value}),r.forceTypeProp&&(e.props.type&&(e.props.originalType=e.props.type),t.props.type=r.forceTypeProp),r.family&&(t.props.family=r.family),r.features&&r.features.forEach(s=>s(e)),r.props&&e.addProps(r.props),e.emit("defined",r)}function ig(e,t,r){const n=Array.isArray(r)?r:Object.keys(r),s=Array.isArray(r)?{}:n.reduce((o,l)=>("default"in r[l]&&(o[l]=r[l].default),o),{});if(e.props.attrs){const o={...e.props.attrs};e.props._emit=!1;for(const a in o){const u=wr(a);n.includes(u)&&(e.props[u]=o[a],delete o[a])}Array.isArray(r)||n.forEach(a=>{"default"in r[a]&&e.props[a]===void 0&&(e.props[a]=s[a])});const l=et(t._value);e.props.initial=e.type!=="input"?Or(l):l,e.props._emit=!0,e.props.attrs=o}const i=jc(e.props.__propDefs??[],r);return e.props.definition&&(e.props.definition.props=i),e.props.__propDefs=i,e.emit("added-props",r),e}function Hi(e){return Array.isArray(e)?e.reduce((t,r)=>(t[r]={},t),{}):e}function jc(e,t){return Array.isArray(e)&&Array.isArray(t)?e.concat(t):jt(Hi(e),Hi(t))}function og(e,t,r,n){if(e.type==="input"&&Ke(100,e),r.parent&&r.parent!==e&&r.parent.remove(r),!t.children.includes(r)){if(n!==void 0&&e.type==="list"){const s=t.children[n];s&&"__FKP"in s?(r._c.uid=s.uid,t.children.splice(n,1,r)):t.children.splice(n,0,r),Array.isArray(e.value)&&e.value.length<t.children.length&&e.disturb().calm({name:n,value:r.value,from:Pc})}else t.children.push(r);r.isSettled||e.disturb()}if(r.parent!==e){if(r.parent=e,r.parent!==e)return e.remove(r),r.parent.add(r),e}else r.use(e.plugins);return fs(e,t,!1),e.ledger.merge(r),e.emit("child",r),e}function lg(e,t,r,n){return bn(n)?(e.parent&&e.parent!==n&&e.parent.remove(e),t.parent=n,e.resetConfig(),n.children.includes(e)?e.use(n.plugins):n.add(e),!0):n===null?(t.parent=null,!0):!1}function ag(e,t,r){const n=t.children.indexOf(r);if(n!==-1){r.isSettled&&e.disturb(),t.children.splice(n,1);let s=tt(r.props.preserve),i=r.parent;for(;s===void 0&&i;)s=tt(i.props.preserve),i=i.parent;s?e.calm():e.calm({name:e.type==="list"?n:r.name,value:Li}),r.parent=null,r.config._rmn=r}return e.ledger.unmerge(r),e.emit("childRemoved",r),e}function ug(e,t,r){t.children.forEach(n=>!("__FKP"in n)&&r(n))}function cg(e,t,r,n=!1,s=!1){t.children.some(i=>{if("__FKP"in i)return!1;const o=r(i);return n&&o===!1?!0:s&&o===!1?!1:i.walk(r,n,s)})}function fg(e,t){const r=e.parent||void 0;t.config=Nc(e.config._t,r),e.walk(n=>n.resetConfig())}function Yo(e,t,r,n=!0,s=!0){return Array.isArray(r)||r instanceof Set?(r.forEach(i=>Yo(e,t,i)),e):(t.plugins.has(r)||(s&&typeof r.library=="function"&&r.library(e),n&&r(e)!==!1&&(t.plugins.add(r),e.children.forEach(i=>i.use(r)))),e)}function pg(e,t,r,n){if(bn(e.parent)){const s=e.parent.children,i=n>=s.length?s.length-1:n<0?0:n,o=s.indexOf(e);return o===-1?!1:(s.splice(o,1),s.splice(i,0,e),e.parent.children=s,e.parent.type==="list"&&e.parent.disturb().calm({name:i,value:Di,from:o}),!0)}return!1}function dg(e){if(e.parent){const t=[...e.parent.children].indexOf(e);return t===-1?e.parent.children.length:t}return-1}function hg(e,t){return t}function mg(e,t){var r;return((r=e.parent)==null?void 0:r.type)==="list"?e.index:t.name!==Oc?t.name:e.index}function gg(e,t){return t.parent?t.parent.address.concat([e.name]):[e.name]}function vg(e,t,r){const n=typeof r=="string"?r.split(e.config.delimiter):r;if(!n.length)return;const s=n[0];let i=e.parent;for(i||(String(n[0])===String(e.name)&&n.shift(),i=e),s==="$parent"&&n.shift();i&&n.length;){const o=n.shift();switch(o){case"$root":i=e.root;break;case"$parent":i=i.parent;break;case"$self":i=e;break;default:i=i.children.find(l=>!("__FKP"in l)&&String(l.name)===String(o))||yg(i,o)}}return i||void 0}function yg(e,t){const r=String(t).match(/^(find)\((.*)\)$/);if(r){const[,n,s]=r,i=s.split(",").map(o=>o.trim());switch(n){case"find":return e.find(i[0],i[1]);default:return}}}function bg(e,t,r,n){return _g(e,r,n)}function _g(e,t,r="name"){const n=typeof r=="string"?i=>i[r]==t:r,s=[e];for(;s.length;){const i=s.shift();if(!("__FKP"in i)){if(n(i,t))return i;s.push(...i.children)}}}function wg(e){let t=e;for(;t.parent;)t=t.parent;return t}function Nc(e={},t){let r;return new Proxy(e,{get(...n){const s=n[1];if(s==="_t")return e;const i=Reflect.get(...n);if(i!==void 0)return i;if(t){const o=t.config[s];if(o!==void 0)return o}if(e.rootConfig&&typeof s=="string"){const o=e.rootConfig[s];if(o!==void 0)return o}return s==="delay"&&(r==null?void 0:r.type)==="input"?20:qm[s]},set(...n){const s=n[1],i=n[2];if(s==="_n")return r=i,e.rootConfig&&e.rootConfig._add(r),!0;if(s==="_rmn")return e.rootConfig&&e.rootConfig._rm(r),r=void 0,!0;if(!Me(e[s],i,!1)){const o=Reflect.set(...n);return r&&(r.emit(`config:${s}`,i,!1),Ri(r,s,i),r.walk(l=>Ri(l,s,i),!1,!0)),o}return!0}})}function $g(e,t,r,n="ui"){const s=typeof r=="string"?{key:r,value:r,type:n}:r,i=e.hook.text.dispatch(s);return e.emit("text",i,!1),i.value}function Sg(e){const t=e.name;do{if(e.props.isForm===!0)break;e.parent||Ke(106,t),e=e.parent}while(e);e.props.id&&Cc(e.props.id,e.props.__root)}function xg(e,t,r){return Tc(e,r)}function Eg(e,t,r,n){const s=`${e.name}-set`,i=e.hook.setErrors.dispatch({localErrors:r,childErrors:n});return Fm(e,i.localErrors,i.childErrors).forEach(o=>{e.store.apply(o,l=>l.meta.source===s)}),e}function Ag(e,t,r=!0,n){return e.store.filter(s=>!(n===void 0||s.meta.source===n),"error"),r&&(n=n||`${e.name}-set`,e.walk(s=>{s.store.filter(i=>!(i.type==="error"&&i.meta&&i.meta.source===n))})),e}function Cg(e){const t={initial:typeof e=="object"?et(e):e};let r,n=!0,s={};return new Proxy(t,{get(...i){var c,f,d,m;const[o,l]=i;let a;G(t,l)?(a=Reflect.get(...i),(c=s[l])!=null&&c.boolean&&(a=Sm(a))):r&&typeof l=="string"&&r.config[l]!==void 0?(a=r.config[l],l==="mergeStrategy"&&(r==null?void 0:r.type)==="input"&&cs(a)&&r.name in a&&(a=a[r.name])):a=(f=s[l])==null?void 0:f.default;const u=(d=s[l])==null?void 0:d.getter;return(m=s[l])!=null&&m.boolean&&(a=!!a),u?u(a,r):a},set(i,o,l,a){var d;if(o==="_n")return r=l,!0;if(o==="_emit")return n=l,!0;let{prop:u,value:c}=r.hook.prop.dispatch({prop:o,value:l});const f=(d=s[u])==null?void 0:d.setter;if(c=f?f(c,r):c,!Me(t[u],c,!1)||typeof c=="object"){const m=Reflect.set(i,u,c,a);return u==="__propDefs"&&(s=Hi(c)),n&&(r.emit("prop",{prop:u,value:c}),typeof u=="string"&&r.emit(`prop:${u}`,c)),m}return!0}})}function Tg(e,t,r,n){return t.traps.set(r,n),e}function Og(e,t){if(e.props.definition)return e.define(e.props.definition);for(const r of t){if(e.props.definition)return;typeof r.library=="function"&&r.library(e)}}function Pg(e){const t=kc(e),r=Nc(e.config||{},e.parent);return{_d:0,_e:Sc(),uid:Symbol(),_resolve:!1,_tmo:!1,_value:t,children:dm(e.children||[]),config:r,hook:Gm(),isCreated:!1,isSettled:!0,ledger:Rm(),name:Xm(e),parent:e.parent||null,plugins:new Set,props:Cg(t),settled:Promise.resolve(t),store:Tm(!0),sync:e.sync||!1,traps:Ym(),type:e.type||"input",value:t}}function Ig(e,t){var n,s;const r=(n=t.props)==null?void 0:n.id;if(r||(s=t.props)==null||delete s.id,e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,Object.assign(e.props,r?{}:{id:`input_${Jm++}`},t.props??{}),e.props._emit=!0,Og(e,new Set([...t.plugins||[],...e.parent?e.parent.plugins:[]])),t.plugins)for(const i of t.plugins)Yo(e,e._c,i,!0,!1);return e.each(i=>e.add(i)),e.parent&&e.parent.add(e,t.index),e.type==="input"&&e.children.length&&Ke(100,e),Mc(e,e._c,e._value,!1),e.store.release(),r&&Hm(e),e.emit("created",e),e.isCreated=!0,e}function kg(e){return{__FKP:!0,uid:Symbol(),name:(e==null?void 0:e.name)??`p_${Ic++}`,value:(e==null?void 0:e.value)??null,_value:(e==null?void 0:e.value)??null,type:(e==null?void 0:e.type)??"input",props:{},use:()=>{},input(t){return this._value=t,this.value=t,Promise.resolve()},isSettled:!0}}function Go(e){return"__FKP"in e}function Mg(e){const t=e||{},r=Pg(t),n=new Proxy(r,{get(...s){const[,i]=s;if(i==="__FKNode__")return!0;const o=r.traps.get(i);return o&&o.get?o.get(n,r):Reflect.get(...s)},set(...s){const[,i,o]=s,l=r.traps.get(i);return l&&l.set?l.set(n,r,i,o):Reflect.set(...s)}});return Ig(n,t)}function Bi(e){return typeof e!="string"&&G(e,"$el")}function Vi(e){return typeof e!="string"&&G(e,"$cmp")}function hr(e){return!e||typeof e=="string"?!1:G(e,"if")&&G(e,"then")}function Fg(e){return typeof e!="string"&&"$formkit"in e}function jg(e){if(typeof e=="string")return{$el:"text",children:e};if(Fg(e)){const{$formkit:t,for:r,if:n,children:s,bind:i,...o}=e;return Object.assign({$cmp:"FormKit",props:{...o,type:t}},n?{if:n}:{},r?{for:r}:{},s?{children:s}:{},i?{bind:i}:{})}return e}function Xe(e){let t;const r=new Set,n=function(b,$){return typeof b=="function"?b($):b},s=[{"&&":(p,b,$)=>n(p,$)&&n(b,$),"||":(p,b,$)=>n(p,$)||n(b,$)},{"===":(p,b,$)=>n(p,$)===n(b,$),"!==":(p,b,$)=>n(p,$)!==n(b,$),"==":(p,b,$)=>n(p,$)==n(b,$),"!=":(p,b,$)=>n(p,$)!=n(b,$),">=":(p,b,$)=>n(p,$)>=n(b,$),"<=":(p,b,$)=>n(p,$)<=n(b,$),">":(p,b,$)=>n(p,$)>n(b,$),"<":(p,b,$)=>n(p,$)<n(b,$)},{"+":(p,b,$)=>n(p,$)+n(b,$),"-":(p,b,$)=>n(p,$)-n(b,$)},{"*":(p,b,$)=>n(p,$)*n(b,$),"/":(p,b,$)=>n(p,$)/n(b,$),"%":(p,b,$)=>n(p,$)%n(b,$)}],i=s.reduce((p,b)=>p.concat(Object.keys(b)),[]),o=new Set(i.map(p=>p.charAt(0)));function l(p,b,$,E){const A=p.filter(w=>w.startsWith(b));return A.length?A.find(w=>E.length>=$+w.length&&E.substring($,$+w.length)===w?w:!1):!1}function a(p,b,$=1){let E=$?b.substring(p+1).trim():b.substring(0,p).trim();if(!E.length)return-1;if(!$){const w=E.split("").reverse(),O=w.findIndex(g=>o.has(g));E=w.slice(O).join("")}const A=E[0];return s.findIndex(w=>{const O=Object.keys(w);return!!l(O,A,0,E)})}function u(p,b){let $="";const E=b.length;let A=0;for(let w=p;w<E;w++){const O=b.charAt(w);if(O==="(")A++;else if(O===")")A--;else if(A===0&&O===" ")continue;if(A===0&&l(i,O,w,b))return[$,w-1];$+=O}return[$,b.length-1]}function c(p,b=0){const $=s[b],E=p.length,A=Object.keys($);let w=0,O=!1,g=null,_="",k=null,B,I="",L="",S="",R="",U=0;const te=(H,D)=>{H?S+=D:_+=D};for(let H=0;H<E;H++)if(I=L,L=p.charAt(H),(L==="'"||L==='"')&&I!=="\\"&&(w===0&&!O||w&&!R)){w?R=L:O=L,te(w,L);continue}else if(O&&(L!==O||I==="\\")||R&&(L!==R||I==="\\")){te(w,L);continue}else if(O===L){O=!1,te(w,L);continue}else if(R===L){R=!1,te(w,L);continue}else{if(L===" ")continue;if(L==="(")w===0?U=H:S+=L,w++;else if(L===")")if(w--,w===0){const D=typeof _=="string"&&_.startsWith("$")?_:void 0,Y=D&&p.charAt(H+1)===".";let fe="";Y&&([fe,H]=u(H+2,p));const ve=g?b:a(U,p,0),J=a(H,p);ve===-1&&J===-1?(_=f(S,-1,D,fe),typeof _=="string"&&(_=S)):g&&(ve>=J||J===-1)&&b===ve?(k=g.bind(null,f(S,-1,D,fe)),g=null,_=""):J>ve&&b===J?_=f(S,-1,D,fe):_+=`(${S})${Y?`.${fe}`:""}`,S=""}else S+=L;else if(w===0&&(B=l(A,L,H,p))){H===0&&Ke(103,[B,p]),H+=B.length-1,H===p.length-1&&Ke(104,[B,p]),g?_&&(k=g.bind(null,f(_,b)),g=$[B].bind(null,k),_=""):k?(g=$[B].bind(null,f(k,b)),k=null):(g=$[B].bind(null,f(_,b)),_="");continue}else te(w,L)}return _&&g&&(g=g.bind(null,f(_,b))),g=!g&&k?k:g,!g&&_&&(g=(H,D)=>typeof H=="function"?H(D):H,g=g.bind(null,f(_,b))),!g&&!_&&Ke(105,p),g}function f(p,b,$,E){if($){const A=f($,s.length);let w,O=E?Xe(`$${E}`):!1;if(typeof A=="function"){const g=bm(String(p)).map(_=>f(_,-1));return _=>{const k=A(_);return typeof k!="function"?(lr(150,$),k):(w=k(...g.map(B=>typeof B=="function"?B(_):B)),O&&(O=O.provide(B=>{const I=t(B);return B.reduce((S,R)=>{if(R===E||(E==null?void 0:E.startsWith(`${R}(`))){const te=_m(w,R);S[R]=()=>te}else S[R]=I[R];return S},{})})),O?O():w)}}}else if(typeof p=="string"){if(p==="true")return!0;if(p==="false")return!1;if(p==="undefined")return;if(vm(p))return ym(p.substring(1,p.length-1));if(!isNaN(+p))return Number(p);if(b<s.length-1)return c(p,b+1);if(p.startsWith("$")){const A=p.substring(1);return r.add(A),function(O){return A in O?O[A]():void 0}}return p}return p}const d=c(e.startsWith("$:")?e.substring(2):e),m=Array.from(r);function v(p){return t=p,Object.assign(d.bind(null,p(m)),{provide:v})}return Object.assign(d,{provide:v})}function Xn(e,t,r){return r?typeof r=="string"?r.split(" ").reduce((s,i)=>Object.assign(s,{[i]:!0}),{}):typeof r=="function"?Xn(e,t,r(t,e)):r:{}}function Ng(e,t,...r){const n=r.reduce((s,i)=>{if(!i)return ai(s);const{$reset:o,...l}=i;return ai(o?l:Object.assign(s,l))},{});return Object.keys(e.hook.classes.dispatch({property:t,classes:n}).classes).filter(s=>n[s]).join(" ")||null}function ai(e){const t="$remove:";let r=!1;const n=Object.keys(e).filter(s=>(e[s]&&s.startsWith(t)&&(r=!0),e[s]));return n.length>1&&r&&n.filter(i=>i.startsWith(t)).map(i=>{const o=i.substring(t.length);e[o]=!1,e[i]=!1}),e}function Rg(e,t,r){const n=yn(e);n?n.setErrors(t,r):lr(651,e)}function Lg(e,t=!0){const r=yn(e);r?r.clearErrors(t):lr(652,e)}var ps="1.6.7",Rc=new WeakSet;function Vs(e,t){const r=t||Object.assign(new Map,{active:!1}),n=new Map,s=function(c){var f;r.active&&(r.has(e)||r.set(e,new Set),(f=r.get(e))==null||f.add(c))},i=function(c){return new Proxy(c,{get(...f){return typeof f[1]=="string"&&s(`prop:${f[1]}`),Reflect.get(...f)}})},o=function(c){return new Proxy(c,{get(...f){return f[1]==="value"?d=>(s(`count:${d}`),c.value(d)):Reflect.get(...f)}})},l=function(c,f){return bn(c)?Vs(c,r):(f==="value"&&s("commit"),f==="_value"&&s("input"),f==="props"?i(c):f==="ledger"?o(c):(f==="children"&&(s("child"),s("childRemoved")),c))},{proxy:a,revoke:u}=Proxy.revocable(e,{get(...c){switch(c[1]){case"_node":return e;case"deps":return r;case"watch":return(d,m,v)=>Hc(a,d,m,v);case"observe":return()=>{const d=new Map(r);return r.clear(),r.active=!0,d};case"stopObserve":return()=>{const d=new Map(r);return r.active=!1,d};case"receipts":return n;case"kill":return()=>{Dc(n),Rc.add(c[2]),u()}}const f=Reflect.get(...c);return typeof f=="function"?(...d)=>{const m=f(...d);return l(m,c[1])}:l(f,c[1])}});return a}function Lc(e,[t,r],n,s){t.forEach((i,o)=>{i.forEach(l=>{e.receipts.has(o)||e.receipts.set(o,{});const a=e.receipts.get(o)??{};a[l]=a[l]??[],a[l].push(o.on(l,n,s)),e.receipts.set(o,a)})}),r.forEach((i,o)=>{i.forEach(l=>{if(e.receipts.has(o)){const a=e.receipts.get(o);a&&G(a,l)&&(a[l].map(o.off),delete a[l],e.receipts.set(o,a))}})})}function Dc(e){e.forEach((t,r)=>{for(const n in t)t[n].map(r.off)}),e.clear()}function Hc(e,t,r,n){const s=l=>{const a=e.stopObserve();Lc(e,Bc(i,a),()=>Hc(e,t,r,n),n),r&&r(l)},i=new Map(e.deps);e.observe();const o=t(e);o instanceof Promise?o.then(l=>s(l)):s(o)}function Bc(e,t){const r=new Map,n=new Map;return t.forEach((s,i)=>{if(!e.has(i))r.set(i,s);else{const o=new Set,l=e.get(i);s.forEach(a=>!(l!=null&&l.has(a))&&o.add(a)),r.set(i,o)}}),e.forEach((s,i)=>{if(!t.has(i))n.set(i,s);else{const o=new Set,l=t.get(i);s.forEach(a=>!(l!=null&&l.has(a))&&o.add(a)),n.set(i,o)}}),[r,n]}function Jo(e){return Rc.has(e)}var Vc=function({value:t}){return["yes","on","1",1,!0,"true"].includes(t)};Vc.skipEmpty=!1;var Dg=Vc,Hg=function({value:e},t=!1){const r=Date.parse(t||new Date),n=Date.parse(String(e));return isNaN(n)?!1:n>r},Bg=Hg,Vg=function({value:e},t=!1){const r=Date.parse(t||new Date),n=Date.parse(String(e));return isNaN(n)?!1:n>r||n===r},Wg=Vg,Ug=function(e,t){var s;if(!t)return!1;const r=Date.parse(String(e.value)),n=Date.parse(String((s=e.at(t))==null?void 0:s.value));return isNaN(n)?!0:isNaN(r)?!1:r>n},qg=Ug,Kg=function({value:e},t="default"){const r={default:/^\p{L}+$/u,latin:/^[a-z]+$/i},n=G(r,t)?t:"default";return r[n].test(String(e))},zg=Kg,Yg=function({value:e},t="default"){const r={default:/^[\p{L} ]+$/u,latin:/^[a-z ]+$/i},n=G(r,t)?t:"default";return r[n].test(String(e))},Gg=Yg,Jg=function({value:e},t="default"){const r={default:/^[0-9\p{L}]+$/u,latin:/^[0-9a-z]+$/i},n=G(r,t)?t:"default";return r[n].test(String(e))},Xg=Jg,Zg=function({value:e},t=!1){const r=Date.parse(t||new Date),n=Date.parse(String(e));return isNaN(n)?!1:n<r},Qg=Zg,ev=function(e,t){var s;if(!t)return!1;const r=Date.parse(String(e.value)),n=Date.parse(String((s=e.at(t))==null?void 0:s.value));return isNaN(n)?!0:isNaN(r)?!1:r<n},tv=ev,rv=function({value:e},t=!1){const r=Date.parse(t||new Date),n=Date.parse(String(e));return isNaN(n)?!1:n<r||n===r},nv=rv,sv=function({value:t},r,n){if(!isNaN(t)&&!isNaN(r)&&!isNaN(n)){const s=1*t;r=Number(r),n=Number(n);const[i,o]=r<=n?[r,n]:[n,r];return s>=1*i&&s<=1*o}return!1},iv=sv,ia=/(_confirm(?:ed)?)$/,ov=function(t,r,n="loose"){var i;r||(r=ia.test(t.name)?t.name.replace(ia,""):`${t.name}_confirm`);const s=(i=t.at(r))==null?void 0:i.value;return n==="strict"?t.value===s:t.value==s},lv=ov,av=function({value:e},t="default"){const r={default:/\p{L}/u,latin:/[a-z]/i},n=G(r,t)?t:"default";return r[n].test(String(e))},uv=av,cv=function({value:e},t="default"){const r={default:/[\p{L} ]/u,latin:/[a-z ]/i},n=G(r,t)?t:"default";return r[n].test(String(e))},fv=cv,pv=function({value:e},t="default"){const r={default:/[0-9\p{L}]/u,latin:/[0-9a-z]/i},n=G(r,t)?t:"default";return r[n].test(String(e))},dv=pv,hv=function({value:e},t="default"){const r={default:/\p{Ll}/u,latin:/[a-z]/},n=G(r,t)?t:"default";return r[n].test(String(e))},mv=hv,gv=function({value:t}){return/[0-9]/.test(String(t))},vv=gv,yv=function({value:e}){return/[!-/:-@[-`{-~]/.test(String(e))},bv=yv,_v=function({value:e},t="default"){const r={default:/\p{Lu}/u,latin:/[A-Z]/},n=G(r,t)?t:"default";return r[n].test(String(e))},wv=_v,$v=function({value:t},r,n){r=r instanceof Date?r.getTime():Date.parse(r),n=n instanceof Date?n.getTime():Date.parse(n);const s=t instanceof Date?t.getTime():Date.parse(String(t));if(r&&!n)n=r,r=Date.now();else if(!r||!s)return!1;return s>=r&&s<=n},Sv=$v,xv=function({value:t},r){return r&&typeof r=="string"?gm(r).test(String(t)):!isNaN(Date.parse(String(t)))},Ev=xv,Av=function({value:t}){return/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(String(t))},Cv=Av,Tv=function({value:t},...r){return typeof t=="string"&&r.length?r.some(n=>t.endsWith(n)):typeof t=="string"&&r.length===0},Ov=Tv,Pv=function({value:t},...r){return r.some(n=>typeof n=="object"?Me(n,t):n==t)},Iv=Pv,kv=function({value:t},r=0,n=1/0){r=parseInt(r),n=isNaN(parseInt(n))?1/0:parseInt(n);const s=r<=n?r:n,i=n>=r?n:r;if(typeof t=="string"||Array.isArray(t))return t.length>=s&&t.length<=i;if(t&&typeof t=="object"){const o=Object.keys(t).length;return o>=s&&o<=i}return!1},Mv=kv,Fv=function({value:e},t="default"){const r={default:/^\p{Ll}+$/u,allow_non_alpha:/^[0-9\p{Ll}!-/:-@[-`{-~]+$/u,allow_numeric:/^[0-9\p{Ll}]+$/u,allow_numeric_dashes:/^[0-9\p{Ll}-]+$/u,latin:/^[a-z]+$/},n=G(r,t)?t:"default";return r[n].test(String(e))},jv=Fv,Nv=function({value:t},...r){return r.some(n=>(typeof n=="string"&&n.substr(0,1)==="/"&&n.substr(-1)==="/"&&(n=new RegExp(n.substr(1,n.length-2))),n instanceof RegExp?n.test(String(t)):n===t))},Rv=Nv,Lv=function({value:t},r=10){return Array.isArray(t)?t.length<=r:Number(t)<=Number(r)},Dv=Lv,Hv=function({value:t},r=1){return Array.isArray(t)?t.length>=r:Number(t)>=Number(r)},Bv=Hv,Vv=function({value:t},...r){return!r.some(n=>typeof n=="object"?Me(n,t):n===t)},Wv=Vv,Uv=function({value:t}){return!isNaN(t)},qv=Uv,Wc=function(e,...t){return ze(e.value)?t.map(n=>{var s;return(s=e.at(n))==null?void 0:s.value}).some(n=>!ze(n)):!0};Wc.skipEmpty=!1;var Kv=Wc,Uc=function({value:t},r="default"){return r==="trim"&&typeof t=="string"?!ze(t.trim()):!ze(t)};Uc.skipEmpty=!1;var zv=Uc,Yv=function({value:t},...r){return typeof t=="string"&&r.length?r.some(n=>t.startsWith(n)):typeof t=="string"&&r.length===0},Gv=Yv,Jv=function({value:e}){return/^[!-/:-@[-`{-~]+$/.test(String(e))},Xv=Jv,Zv=function({value:e},t="default"){const r={default:/^\p{Lu}+$/u,latin:/^[A-Z]+$/},n=G(r,t)?t:"default";return r[n].test(String(e))},Qv=Zv,ey=function({value:t},...r){try{const n=r.length?r:["http:","https:"],s=new URL(String(t));return n.includes(s.protocol)}catch{return!1}},ty=ey;const ry=Object.freeze(Object.defineProperty({__proto__:null,accepted:Dg,alpha:zg,alpha_spaces:Gg,alphanumeric:Xg,between:iv,confirm:lv,contains_alpha:uv,contains_alpha_spaces:fv,contains_alphanumeric:dv,contains_lowercase:mv,contains_numeric:vv,contains_symbol:bv,contains_uppercase:wv,date_after:Bg,date_after_node:qg,date_after_or_equal:Wg,date_before:Qg,date_before_node:tv,date_before_or_equal:nv,date_between:Sv,date_format:Ev,email:Cv,ends_with:Ov,is:Iv,length:Mv,lowercase:jv,matches:Rv,max:Dv,min:Bv,not:Wv,number:qv,require_one:Kv,required:zv,starts_with:Gv,symbol:Xv,uppercase:Qv,url:ty},Symbol.toStringTag,{value:"Module"}));var Wi=Fe({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});function ny(e={}){return function(r){let n=et(r.props.validationRules||{}),s={...e,...n};const i={input:Nr(),rerun:null,isPassing:!0};let o=et(r.props.validation);r.on("prop:validation",({payload:a})=>l(a,n)),r.on("prop:validationRules",({payload:a})=>l(o,a));function l(a,u){var c;Me(Object.keys(n||{}),Object.keys(u||{}))&&Me(o,a)||(n=et(u),o=et(a),s={...e,...n},(c=r.props.parsedRules)==null||c.forEach(f=>{qc(f),Dc(f.observer.receipts),f.observer.kill()}),r.store.filter(()=>!1,"validation"),r.props.parsedRules=la(a,s,r),i.isPassing=!0,Ui(r,r.props.parsedRules,i))}r.props.parsedRules=la(o,s,r),Ui(r,r.props.parsedRules,i)}}function Ui(e,t,r){Jo(e)||(r.input=Nr(),e.store.set(Fe({key:"failing",value:!r.isPassing,visible:!1})),r.isPassing=!0,e.store.filter(n=>!n.meta.removeImmediately,"validation"),t.forEach(n=>n.debounce&&clearTimeout(n.timer)),t.length&&(e.store.set(Wi),qi(0,t,r,!1,()=>{e.store.remove(Wi.key),e.store.set(Fe({key:"failing",value:!r.isPassing,visible:!1}))})))}function qi(e,t,r,n,s){const i=t[e];if(!i)return s();const o=i.observer;if(Jo(o))return;const l=r.input;i.state=null;function a(u,c){if(r.input!==l)return;r.isPassing=r.isPassing&&!!c,i.queued=!1;const f=o.stopObserve(),d=Bc(i.deps,f);if(Lc(o,d,function(){try{o.store.set(Wi)}catch{}i.queued=!0,r.rerun&&clearTimeout(r.rerun),r.rerun=setTimeout(Ui,0,o,t,r)},"unshift"),i.deps=f,i.state=c,c===!1?iy(i,n||u):qc(i),t.length>e+1){const m=t[e+1];(c||m.force||!m.skipEmpty)&&m.state===null&&(m.queued=!0),qi(e+1,t,r,n||u,s)}else s()}(!ze(o.value)||!i.skipEmpty)&&(r.isPassing||i.force)?i.queued?sy(i,o,u=>{u instanceof Promise?u.then(c=>a(!0,c)):a(!1,u)}):qi(e+1,t,r,n,s):ze(o.value)&&i.skipEmpty&&r.isPassing?(o.observe(),o.value,a(!1,r.isPassing)):a(!1,null)}function sy(e,t,r){e.debounce?e.timer=setTimeout(()=>{t.observe(),r(e.rule(t,...e.args))},e.debounce):(t.observe(),r(e.rule(t,...e.args)))}function qc(e){const t=`rule_${e.name}`;e.messageObserver&&(e.messageObserver=e.messageObserver.kill()),G(e.observer.store,t)&&e.observer.store.remove(t)}function iy(e,t){const r=e.observer;Jo(r)||(e.messageObserver||(e.messageObserver=Vs(r._node)),e.messageObserver.watch(n=>ly(n,e),n=>{const s=oy(r,e,n),i=Fe({blocking:e.blocking,key:`rule_${e.name}`,meta:{messageKey:e.name,removeImmediately:t,localize:!s,i18nArgs:n},type:"validation",value:s||"This field is not valid."});r.store.set(i)}))}function oy(e,t,r){const n=e.props.validationMessages&&G(e.props.validationMessages,t.name)?e.props.validationMessages[t.name]:void 0;return typeof n=="function"?n(...r):n}function ly(e,t){return[{node:e,name:Kc(e),args:t.args}]}function Kc(e){return typeof e.props.validationLabel=="function"?e.props.validationLabel(e):e.props.validationLabel||e.props.label||e.props.name||String(e.name)}var zc="(?:[\\*+?()0-9]+)",Yc="[a-zA-Z][a-zA-Z0-9_]+",ay=new RegExp(`^(${zc}?${Yc})(?:\\:(.*)+)?$`,"i"),uy=new RegExp(`^(${zc})(${Yc})$`,"i"),cy=/([\*+?]+)?(\(\d+\))([\*+?]+)?/,oa=/\(\d+\)/,fy={blocking:!0,debounce:0,force:!1,skipEmpty:!0,name:""};function la(e,t,r){return e?(typeof e=="string"?py(e):Tr(e)).reduce((s,i)=>{let o=i.shift();const l={};if(typeof o=="string"){const[a,u]=hy(o);G(t,a)&&(o=t[a],Object.assign(l,u))}return typeof o=="function"&&s.push({observer:Vs(r),rule:o,args:i,timer:0,state:null,queued:!0,deps:new Map,...fy,...my(l,o)}),s},[]):[]}function py(e){return e.split("|").reduce((t,r)=>{const n=dy(r);return n&&t.push(n),t},[])}function dy(e){const t=e.trim();if(t){const r=t.match(ay);if(r&&typeof r[1]=="string"){const n=r[1].trim(),s=r[2]&&typeof r[2]=="string"?r[2].split(",").map(i=>i.trim()):[];return[n,...s]}}return!1}function hy(e){const t=e.match(uy);if(!t)return[e,{name:e}];const r={"*":{force:!0},"+":{skipEmpty:!1},"?":{blocking:!1}},[,n,s]=t,i=oa.test(n)?n.match(cy)||[]:[,n];return[s,[i[1],i[2],i[3]].reduce((o,l)=>(l&&(oa.test(l)?o.debounce=parseInt(l.substr(1,l.length-1)):l.split("").forEach(a=>G(r,a)&&Object.assign(o,r[a]))),o),{name:s})]}function my(e,t){return e.name||(e.name=t.ruleName||t.name),["skipEmpty","force","debounce","blocking"].reduce((r,n)=>(G(t,n)&&!G(r,n)&&Object.assign(r,{[n]:t[n]}),r),e)}function ie(e){return e[0].toUpperCase()+e.substr(1)}function aa(e,t="or"){return e.reduce((r,n,s)=>(r+=n,s<=e.length-2&&e.length>2&&(r+=", "),s===e.length-2&&(r+=`${e.length===2?" ":""}${t} `),r),"")}function jn(e){const t=typeof e=="string"?new Date(Date.parse(e)):e;return t instanceof Date?new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeZone:"UTC"}).format(t):"(unknown)"}function gy(e,t){return Number(e)>=Number(t)?[t,e]:[e,t]}var vy={add:"Add",remove:"Remove",removeAll:"Remove all",incomplete:"Sorry, not all fields are filled out correctly.",submit:"Submit",noFiles:"No file chosen",moveUp:"Move up",moveDown:"Move down",isLoading:"Loading...",loadMore:"Load more",next:"Next",prev:"Previous",addAllValues:"Add all values",addSelectedValues:"Add selected values",removeAllValues:"Remove all values",removeSelectedValues:"Remove selected values",chooseDate:"Choose date",changeDate:"Change date",summaryHeader:"There were errors in your form.",close:"Close",open:"Open"},yy={accepted({name:e}){return`Please accept the ${e}.`},date_after({name:e,args:t}){return Array.isArray(t)&&t.length?`${ie(e)} must be after ${jn(t[0])}.`:`${ie(e)} must be in the future.`},alpha({name:e}){return`${ie(e)} can only contain alphabetical characters.`},alphanumeric({name:e}){return`${ie(e)} can only contain letters and numbers.`},alpha_spaces({name:e}){return`${ie(e)} can only contain letters and spaces.`},contains_alpha({name:e}){return`${ie(e)} must contain alphabetical characters.`},contains_alphanumeric({name:e}){return`${ie(e)} must contain letters or numbers.`},contains_alpha_spaces({name:e}){return`${ie(e)} must contain letters or spaces.`},contains_symbol({name:e}){return`${ie(e)} must contain a symbol.`},contains_uppercase({name:e}){return`${ie(e)} must contain an uppercase letter.`},contains_lowercase({name:e}){return`${ie(e)} must contain a lowercase letter.`},contains_numeric({name:e}){return`${ie(e)} must contain numbers.`},symbol({name:e}){return`${ie(e)} must be a symbol.`},uppercase({name:e}){return`${ie(e)} can only contain uppercase letters.`},lowercase({name:e,args:t}){let r="";return Array.isArray(t)&&t.length&&(t[0]==="allow_non_alpha"&&(r=", numbers and symbols"),t[0]==="allow_numeric"&&(r=" and numbers"),t[0]==="allow_numeric_dashes"&&(r=", numbers and dashes")),`${ie(e)} can only contain lowercase letters${r}.`},date_before({name:e,args:t}){return Array.isArray(t)&&t.length?`${ie(e)} must be before ${jn(t[0])}.`:`${ie(e)} must be in the past.`},between({name:e,args:t}){if(isNaN(t[0])||isNaN(t[1]))return"This field was configured incorrectly and can’t be submitted.";const[r,n]=gy(t[0],t[1]);return`${ie(e)} must be between ${r} and ${n}.`},confirm({name:e}){return`${ie(e)} does not match.`},date_format({name:e,args:t}){return Array.isArray(t)&&t.length?`${ie(e)} is not a valid date, please use the format ${t[0]}`:"This field was configured incorrectly and can’t be submitted"},date_between({name:e,args:t}){return`${ie(e)} must be between ${jn(t[0])} and ${jn(t[1])}`},email:"Please enter a valid email address.",ends_with({name:e,args:t}){return`${ie(e)} doesn’t end with ${aa(t)}.`},is({name:e}){return`${ie(e)} is not an allowed value.`},length({name:e,args:[t=0,r=1/0]}){const n=Number(t)<=Number(r)?t:r,s=Number(r)>=Number(t)?r:t;return n==1&&s===1/0?`${ie(e)} must be at least one character.`:n==0&&s?`${ie(e)} must be less than or equal to ${s} characters.`:n===s?`${ie(e)} should be ${s} characters long.`:n&&s===1/0?`${ie(e)} must be greater than or equal to ${n} characters.`:`${ie(e)} must be between ${n} and ${s} characters.`},matches({name:e}){return`${ie(e)} is not an allowed value.`},max({name:e,node:{value:t},args:r}){return Array.isArray(t)?`Cannot have more than ${r[0]} ${e}.`:`${ie(e)} must be no more than ${r[0]}.`},mime({name:e,args:t}){return t[0]?`${ie(e)} must be of the type: ${t[0]}`:"No file formats allowed."},min({name:e,node:{value:t},args:r}){return Array.isArray(t)?`Cannot have fewer than ${r[0]} ${e}.`:`${ie(e)} must be at least ${r[0]}.`},not({name:e,node:{value:t}}){return`“${t}” is not an allowed ${e}.`},number({name:e}){return`${ie(e)} must be a number.`},require_one:({name:e,node:t,args:r})=>{const n=r.map(s=>{const i=t.at(s);return i?Kc(i):!1}).filter(s=>!!s);return n.unshift(e),`${n.join(" or ")} is required.`},required({name:e}){return`${ie(e)} is required.`},starts_with({name:e,args:t}){return`${ie(e)} doesn’t start with ${aa(t)}.`},url(){return"Please enter a valid URL."},invalidDate:"The selected date is invalid."},by={ui:vy,validation:yy},ua=new Set;function _y(e){return function(r){ua.add(r),r.on("destroying",()=>ua.delete(r));let n=ca(r.config.locale,e),s=n?e[n]:{};r.on("prop:locale",({payload:i})=>{n=ca(i,e),s=n?e[n]:{},r.store.touch()}),r.on("prop:label",()=>r.store.touch()),r.on("prop:validationLabel",()=>r.store.touch()),r.hook.text((i,o)=>{var a,u;const l=((a=i.meta)==null?void 0:a.messageKey)||i.key;if(G(s,i.type)&&G(s[i.type],l)){const c=s[i.type][l];typeof c=="function"?i.value=Array.isArray((u=i.meta)==null?void 0:u.i18nArgs)?c(...i.meta.i18nArgs):c(i):i.value=c}return o(i)})}}function ca(e,t){if(G(t,e))return e;const[r]=e.split("-");if(G(t,r))return r;for(const n in t)return n;return!1}function wy(...e){const t=e.reduce((n,s)=>jt(n,s),{}),r=()=>{};return r.library=function(n){const s=wr(n.props.type);G(t,s)&&n.define(t[s])},r}var $y=["classes","config","delay","errors","id","index","inputErrors","library","modelValue","onUpdate:modelValue","name","number","parent","plugins","sectionsSchema","type","validation","validationLabel","validationMessages","validationRules","onInput","onInputRaw","onUpdate:modelValue","onNode","onSubmit","onSubmitInvalid","onSubmitRaw"];function Ws(e){return e&&typeof e=="object"&&"group"in e&&Array.isArray(e.options)}function Gc(e,t={count:1}){return Array.isArray(e)?e.map(r=>{if(typeof r=="string"||typeof r=="number")return{label:String(r),value:String(r)};if(typeof r=="object"){if("group"in r)return r.options=Gc(r.options||[],t),r;"value"in r&&typeof r.value!="string"&&Object.assign(r,{value:`__mask_${t.count++}`,__original:r.value})}return r}):Object.keys(e).map(r=>({label:e[r],value:r}))}function sr(e,t,r=!1){if(Array.isArray(e)){for(const n of e)if(!(typeof n!="object"&&n)){if(Ws(n)){const s=sr(n.options,t,!0);if(s!==void 0)return s}else if(t==n.value)return"__original"in n?n.__original:n.value}}return r?void 0:t}function Pr(e,t){return e===null&&t===void 0||e===void 0&&t===null?!1:e==t?!0:Cr(e)&&Cr(t)?Me(e,t):!1}function Xo(e){e.hook.prop((t,r)=>{var n;return t.prop==="options"&&(typeof t.value=="function"?(e.props.optionsLoader=t.value,t.value=[]):((n=e.props)._normalizeCounter??(n._normalizeCounter={count:1}),t.value=Gc(t.value,e.props._normalizeCounter))),r(t)})}function W(e,t,r=!1){return(...n)=>{const s=i=>{const o=!t||typeof t=="string"?{$el:t}:t();return(Bi(o)||Vi(o))&&(o.meta?o.meta.section=e:o.meta={section:e},n.length&&!o.children&&(o.children=[...n.map(l=>typeof l=="function"?l(i):l)]),Bi(o)&&(o.attrs={class:`$classes.${e}`,...o.attrs||{}})),{if:`$slots.${e}`,then:`$slots.${e}`,else:e in i?zr(o,i[e]):o}};return s._s=e,r?Sy(s):s}}function Sy(e){return t=>[e(t)]}function ds(e){return!!(e&&typeof e=="object"&&("$el"in e||"$cmp"in e||"$formkit"in e))}function zr(e,t={}){return typeof e=="string"?ds(t)||typeof t=="string"?t:e:Array.isArray(e)?ds(t)?t:e:jt(e,t)}var xy=W("actions",()=>({$el:"div",if:"$actions"})),hs=W("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",name:"$node.props.altName || $node.name",disabled:"$option.attrs.disabled || $disabled",onInput:"$handlers.toggleChecked",checked:"$fns.eq($_value, $onValue)",onBlur:"$handlers.blur",value:"$: true",id:"$id","aria-describedby":{if:"$options.length",then:{if:"$option.help",then:'$: "help-" + $option.attrs.id',else:void 0},else:{if:"$help",then:'$: "help-" + $id',else:void 0}}}})),Jc=W("optionHelp",()=>({$el:"div",if:"$option.help",attrs:{id:'$: "help-" + $option.attrs.id'}})),ms=W("inner","span"),gs=W("label","span"),Xc=W("option",()=>({$el:"li",for:["option","$options"],attrs:{"data-disabled":"$option.attrs.disabled || $disabled || undefined"}})),Zc=W("options","ul"),vs=W("wrapper",()=>({$el:"label",attrs:{"data-disabled":{if:"$options.length",then:void 0,else:"$disabled || undefined"},"data-checked":{if:"$options == undefined",then:"$fns.eq($_value, $onValue) || undefined",else:"$fns.isChecked($option.value) || undefined"}}})),Ey=W("input",()=>({$el:"button",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",id:"$id"}})),Ay=W("default",null),ys=W("decorator",()=>({$el:"span",attrs:{"aria-hidden":"true"}})),Qc=W("fieldset",()=>({$el:"fieldset",attrs:{id:"$id","aria-describedby":{if:"$help",then:'$: "help-" + $id',else:void 0}}})),Cy=W("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"file",disabled:"$disabled",name:"$node.name",onChange:"$handlers.files",onBlur:"$handlers.blur",id:"$id","aria-describedby":"$describedBy","aria-required":"$state.required || undefined"}})),Ty=W("fileItem",()=>({$el:"li",for:["file","$value"]})),Oy=W("fileList",()=>({$el:"ul",if:"$value.length",attrs:{"data-has-multiple":"$_hasMultipleFiles"}})),Py=W("fileName",()=>({$el:"span",attrs:{class:"$classes.fileName"}})),fa=W("fileRemove",()=>({$el:"button",attrs:{type:"button",onClick:"$handlers.resetFiles"}})),Iy=W("form",()=>({$el:"form",bind:"$attrs",meta:{autoAnimate:!0},attrs:{id:"$id",name:"$node.name",onSubmit:"$handlers.submit","data-loading":"$state.loading || undefined"}})),Zo=W("wrapper",null,!0),wt=W("help",()=>({$el:"div",if:"$help",attrs:{id:'$: "help-" + $id'}})),$e=(e,t)=>W(`${e}Icon`,()=>{const r=`_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;return{if:`$${e}Icon && $${r}`,$el:`${t||"span"}`,attrs:{class:`$classes.${e}Icon + " " + $classes.icon`,innerHTML:`$${r}`,onClick:`$handlers.iconClick(${e})`,role:`$fns.iconRole(${e})`,tabindex:`$fns.iconRole(${e}) === "button" && "0" || undefined`,for:{if:`${t==="label"}`,then:"$id"}}}})(),Us=W("inner","div"),qs=W("label",()=>({$el:"label",if:"$label",attrs:{for:"$id"}})),ef=W("legend",()=>({$el:"legend",if:"$label"})),Ht=W("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),Bt=W("messages",()=>({$el:"ul",if:"$defaultMessagePlacement && $fns.length($messages)"})),ky=W("noFiles",()=>({$el:"span",if:"$value == null || $value.length == 0"})),My=W("optGroup",()=>({$el:"optgroup",bind:"$option.attrs",attrs:{label:"$option.group"}})),pa=W("option",()=>({$el:"option",bind:"$option.attrs",attrs:{class:"$classes.option",value:"$option.value",selected:"$fns.isSelected($option)"}})),da=W("options",()=>({$el:null,if:"$options.length",for:["option","$option.options || $options"]})),ar=W("outer",()=>({$el:"div",meta:{autoAnimate:!0},attrs:{key:"$id","data-family":"$family || undefined","data-type":"$type","data-multiple":'$attrs.multiple || ($type != "select" && $options != undefined) || undefined',"data-has-multiple":"$_hasMultipleFiles","data-disabled":'$: ($disabled !== "false" && $disabled) || undefined',"data-empty":"$state.empty || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.invalid || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined","data-prefix-icon":"$_rawPrefixIcon !== undefined || undefined","data-suffix-icon":"$_rawSuffixIcon !== undefined || undefined","data-prefix-icon-click":"$onPrefixIconClick !== undefined || undefined","data-suffix-icon-click":"$onSuffixIconClick !== undefined || undefined"}})),$t=W("prefix",null),Fy=W("input",()=>({$el:"select",bind:"$attrs",attrs:{id:"$id","data-placeholder":"$fns.showPlaceholder($_value, $placeholder)",disabled:"$disabled",class:"$classes.input",name:"$node.name",onChange:"$handlers.onChange",onInput:"$handlers.selectInput",onBlur:"$handlers.blur","aria-describedby":"$describedBy","aria-required":"$state.required || undefined"}})),jy=W("submit",()=>({$cmp:"FormKit",bind:"$submitAttrs",props:{type:"submit",label:"$submitLabel"}})),St=W("suffix",null),tf=W("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$_value",id:"$id","aria-describedby":"$describedBy","aria-required":"$state.required || undefined"}})),Ny=W("input",()=>({$el:"textarea",bind:"$attrs",attrs:{disabled:"$disabled",name:"$node.name",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$_value",id:"$id","aria-describedby":"$describedBy","aria-required":"$state.required || undefined"},children:"$initialValue"})),_n=W("wrapper","div"),Ry=0;function rf(e){(e.type==="group"||e.type==="list")&&e.plugins.add(Ly)}function Ly(e){e.props.type==="radio"&&(e.addProps(["altName"]),e.props.altName=`${e.name}_${Ry++}`)}function nf(e){return function(t,r){return t.prop==="options"&&Array.isArray(t.value)&&(t.value=t.value.map(n=>{var s;return(s=n.attrs)!=null&&s.id?n:jt(n,{attrs:{id:`${e.props.id}-option-${Vo(String(n.value))}`}})}),e.props.type==="checkbox"&&!Array.isArray(e.value)&&(e.isCreated?e.input([],!1):e.on("created",()=>{Array.isArray(e.value)||e.input([],!1)}))),r(t)}}function Dy(e,t){const r=t.target;if(r instanceof HTMLInputElement){const n=Array.isArray(e.props.options)?sr(e.props.options,r.value):r.value;Array.isArray(e.props.options)&&e.props.options.length?Array.isArray(e._value)?e._value.some(s=>Pr(n,s))?e.input(e._value.filter(s=>!Pr(n,s))):e.input([...e._value,n]):e.input([n]):r.checked?e.input(e.props.onValue):e.input(e.props.offValue)}}function Hy(e,t){var r,n;return(r=e.context)==null||r.value,(n=e.context)==null||n._value,Array.isArray(e._value)?e._value.some(s=>Pr(sr(e.props.options,t),s)):!1}function By(e){e.on("created",()=>{var t,r;(t=e.context)!=null&&t.handlers&&(e.context.handlers.toggleChecked=Dy.bind(null,e)),(r=e.context)!=null&&r.fns&&(e.context.fns.isChecked=Hy.bind(null,e)),G(e.props,"onValue")||(e.props.onValue=!0),G(e.props,"offValue")||(e.props.offValue=!1)}),e.hook.prop(nf(e))}function Zt(e,t){return r=>{r.props[`${e}Icon`]===void 0&&(r.props[`${e}Icon`]=t.startsWith("<svg")?t:`default:${t}`)}}function wn(e){e.on("created",()=>{"disabled"in e.props&&(e.props.disabled=tt(e.props.disabled),e.config.disabled=tt(e.props.disabled))}),e.hook.prop(({prop:t,value:r},n)=>(r=t==="disabled"?tt(r):r,n({prop:t,value:r}))),e.on("prop:disabled",({payload:t})=>{e.config.disabled=tt(t)})}function $r(e,t){return r=>{r.store.set(Fe({key:e,type:"ui",value:t||e,meta:{localize:!0,i18nArgs:[r]}}))}}var ui=typeof window<"u";function sf(e){e.target instanceof HTMLElement&&e.target.hasAttribute("data-file-hover")&&e.target.removeAttribute("data-file-hover")}function ha(e,t){t.target instanceof HTMLInputElement?e==="dragover"&&t.target.setAttribute("data-file-hover","true"):t.preventDefault(),e==="drop"&&sf(t)}function Vy(e){$r("noFiles","Select file")(e),$r("removeAll","Remove all")(e),$r("remove")(e),e.addProps(["_hasMultipleFiles"]),ui&&(window._FormKit_File_Drop||(window.addEventListener("dragover",ha.bind(null,"dragover")),window.addEventListener("drop",ha.bind(null,"drop")),window.addEventListener("dragleave",sf),window._FormKit_File_Drop=!0)),e.hook.input((t,r)=>r(Array.isArray(t)?t:[])),e.on("input",({payload:t})=>{e.props._hasMultipleFiles=Array.isArray(t)&&t.length>1?!0:void 0}),e.on("reset",()=>{if(e.props.id&&ui){const t=document.getElementById(e.props.id);t&&(t.value="")}}),e.on("created",()=>{Array.isArray(e.value)||e.input([],!1),e.context&&(e.context.handlers.resetFiles=t=>{if(t.preventDefault(),e.input([]),e.props.id&&ui){const r=document.getElementById(e.props.id);r&&(r.value=""),r==null||r.focus()}},e.context.handlers.files=t=>{var n,s;const r=[];if(t.target instanceof HTMLInputElement&&t.target.files){for(let i=0;i<t.target.files.length;i++){let o;(o=t.target.files.item(i))&&r.push({name:o.name,file:o})}e.input(r)}e.context&&(e.context.files=r),typeof((n=e.props.attrs)==null?void 0:n.onChange)=="function"&&((s=e.props.attrs)==null||s.onChange(t))})})}var ma=Fe({key:"loading",value:!0,visible:!1});async function Wy(e,t){const r=Math.random();if(e.props._submitNonce=r,t.preventDefault(),await e.settled,e.ledger.value("validating")&&(e.store.set(ma),await e.ledger.settled("validating"),e.store.remove("loading"),e.props._submitNonce!==r))return;const n=s=>s.store.set(Fe({key:"submitted",value:!0,visible:!1}));if(e.walk(n),n(e),e.emit("submit-raw"),typeof e.props.onSubmitRaw=="function"&&e.props.onSubmitRaw(t,e),e.ledger.value("blocking"))typeof e.props.onSubmitInvalid=="function"&&e.props.onSubmitInvalid(e),e.props.incompleteMessage!==!1&&of(e);else if(typeof e.props.onSubmit=="function"){const s=e.props.onSubmit(e.hook.submit.dispatch(Tr(e.value)),e);if(s instanceof Promise){const i=e.props.disabled===void 0&&e.props.submitBehavior!=="live";i&&(e.props.disabled=!0),e.store.set(ma),await s,i&&(e.props.disabled=!1),e.store.remove("loading")}}else t.target instanceof HTMLFormElement&&t.target.submit()}function of(e){e.store.set(Fe({blocking:!1,key:"incomplete",meta:{localize:e.props.incompleteMessage===void 0,i18nArgs:[{node:e}],showAsMessage:!0},type:"ui",value:e.props.incompleteMessage||"Form incomplete."}))}function Uy(e){var t;e.props.isForm=!0,e.ledger.count("validating",r=>r.key==="validating"),(t=e.props).submitAttrs??(t.submitAttrs={disabled:e.props.disabled}),e.on("prop:disabled",({payload:r})=>{e.props.submitAttrs={...e.props.submitAttrs,disabled:r}}),e.on("created",()=>{var r;(r=e.context)!=null&&r.handlers&&(e.context.handlers.submit=Wy.bind(null,e)),G(e.props,"actions")||(e.props.actions=!0)}),e.on("prop:incompleteMessage",()=>{e.store.incomplete&&of(e)}),e.on("settled:blocking",()=>e.store.remove("incomplete"))}function qy(e){e.props.ignore===void 0&&(e.props.ignore=!0,e.parent=null)}function Ky(e){e.on("created",()=>{e.context&&(e.context.initialValue=e.value||"")})}function lf(e){if(typeof e.props.number>"u")return;const t=["number","range","hidden"].includes(e.props.type);e.hook.input((r,n)=>{if(r==="")return n(void 0);const s=e.props.number==="integer"?parseInt(r):parseFloat(r);return Number.isFinite(s)?n(s):n(t?void 0:r)})}function zy(e,t){t.target instanceof HTMLInputElement&&e.input(sr(e.props.options,t.target.value))}function Yy(e,t){var r,n;return(r=e.context)==null||r.value,(n=e.context)==null||n._value,Pr(sr(e.props.options,t),e._value)}function Gy(e){e.on("created",()=>{var t,r;Array.isArray(e.props.options)||lr(350,{node:e,inputType:"radio"}),(t=e.context)!=null&&t.handlers&&(e.context.handlers.toggleChecked=zy.bind(null,e)),(r=e.context)!=null&&r.fns&&(e.context.fns.isChecked=Yy.bind(null,e))}),e.hook.prop(nf(e))}function Jy(e,t){if(Ws(t))return!1;e.context&&e.context.value;const r="__original"in t?t.__original:t.value;return Array.isArray(e._value)?e._value.some(n=>Pr(n,r)):(e._value===void 0||e._value===null&&!af(e.props.options,null))&&t.attrs&&t.attrs["data-is-placeholder"]?!0:Pr(r,e._value)}function af(e,t){return e.some(r=>Ws(r)?af(r.options,t):("__original"in r?r.__original:r.value)===t)}async function Xy(e,t){var r;typeof((r=e.props.attrs)==null?void 0:r.onChange)=="function"&&(await new Promise(n=>setTimeout(n,0)),await e.settled,e.props.attrs.onChange(t))}function Zy(e,t){const r=t.target,n=r.hasAttribute("multiple")?Array.from(r.selectedOptions).map(s=>sr(e.props.options,s.value)):sr(e.props.options,r.value);e.input(n)}function ga(e,t){return e.some(r=>r.attrs&&r.attrs["data-is-placeholder"])?e:[{label:t,value:"",attrs:{hidden:!0,disabled:!0,"data-is-placeholder":"true"}},...e]}function uf(e){const t=e.length>0?e[0]:void 0;if(t)return Ws(t)?uf(t.options):"__original"in t?t.__original:t.value}function Qy(e){e.on("created",()=>{var r,n,s;const t=tt((r=e.props.attrs)==null?void 0:r.multiple);!t&&e.props.placeholder&&Array.isArray(e.props.options)&&(e.hook.prop(({prop:i,value:o},l)=>(i==="options"&&(o=ga(o,e.props.placeholder)),l({prop:i,value:o}))),e.props.options=ga(e.props.options,e.props.placeholder)),t?e.value===void 0&&e.input([],!1):e.context&&!e.context.options&&(e.props.attrs=Object.assign({},e.props.attrs,{value:e._value}),e.on("input",({payload:i})=>{e.props.attrs=Object.assign({},e.props.attrs,{value:i})})),(n=e.context)!=null&&n.handlers&&(e.context.handlers.selectInput=Zy.bind(null,e),e.context.handlers.onChange=Xy.bind(null,e)),(s=e.context)!=null&&s.fns&&(e.context.fns.isSelected=Jy.bind(null,e),e.context.fns.showPlaceholder=(i,o)=>{if(!Array.isArray(e.props.options))return!1;const l=e.props.options.some(a=>{if(a.attrs&&"data-is-placeholder"in a.attrs)return!1;const u="__original"in a?a.__original:a.value;return Me(i,u)});return o&&!l?!0:void 0})}),e.hook.input((t,r)=>{var n,s,i;return!e.props.placeholder&&t===void 0&&Array.isArray((n=e.props)==null?void 0:n.options)&&e.props.options.length&&!tt((i=(s=e.props)==null?void 0:s.attrs)==null?void 0:i.multiple)&&(t=uf(e.props.options)),r(t)})}function Ki(e){return!!(hr(e)&&e.if&&e.if.startsWith("$slots.")&&typeof e.then=="string"&&e.then.startsWith("$slots.")&&"else"in e)}function Ye(e,t,r){const n=s=>{const i=t(s);if(r||ds(i)&&"if"in i||Ki(i)){const o={if:e,then:i};return r&&(o.else=r(s)),o}else Ki(i)?Object.assign(i.else,{if:e}):ds(i)&&Object.assign(i,{if:e});return i};return n._s=Nr(),n}function Sr(e,t){const r=n=>{const s=e({});return Ki(s)?(Array.isArray(s.else)||(s.else=zr(zr(s.else,t),e._s?n[e._s]:{})),s):zr(zr(s,t),e._s?n[e._s]:{})};return r._s=e._s,r}var va={schema:ar(Bt(Ht("$message.value")),_n(Ey($e("prefix"),$t(),Ay("$label || $ui.submit.value"),St(),$e("suffix"))),wt("$help")),type:"input",family:"button",props:[],features:[$r("submit"),qy],schemaMemoKey:"h6st4epl3j8"},eb={schema:ar(Ye("$options == undefined",vs(ms($t(),hs(),ys($e("decorator")),St()),Sr(gs("$label"),{if:"$label"})),Qc(ef("$label"),wt("$help"),Zc(Xc(vs(ms($t(),Sr(hs(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),ys($e("decorator")),St()),Sr(gs("$option.label"),{if:"$option.label"})),Jc("$option.help"))))),Ye("$options == undefined && $help",wt("$help")),Bt(Ht("$message.value"))),type:"input",family:"box",props:["options","onValue","offValue","optionsLoader"],features:[Xo,By,Zt("decorator","checkboxDecorator")],schemaMemoKey:"qje02tb3gu8"},tb={schema:ar(_n(qs("$label"),Us($e("prefix","label"),$t(),Cy(),Oy(Ty($e("fileItem"),Py("$file.name"),Ye("$value.length === 1",fa($e("fileRemove"),'$ui.remove.value + " " + $file.name')))),Ye("$value.length > 1",fa("$ui.removeAll.value")),ky($e("noFiles"),"$ui.noFiles.value"),St(),$e("suffix"))),wt("$help"),Bt(Ht("$message.value"))),type:"input",family:"text",props:[],features:[Vy,Zt("fileItem","fileItem"),Zt("fileRemove","fileRemove"),Zt("noFiles","noFiles")],schemaMemoKey:"9kqc4852fv8"},rb={schema:Iy("$slots.default",Bt(Ht("$message.value")),xy(jy())),type:"group",props:["actions","submit","submitLabel","submitAttrs","submitBehavior","incompleteMessage"],features:[Uy,wn],schemaMemoKey:"5bg016redjo"},nb={schema:Zo("$slots.default"),type:"group",props:[],features:[wn,rf]},sb={schema:tf(),type:"input",props:[],features:[lf]},ib={schema:Zo("$slots.default"),type:"list",props:["sync","dynamic"],features:[wn,rf]},ob={schema:Zo(),type:"input",props:[],features:[]},lb={schema:ar(Ye("$options == undefined",vs(ms($t(),hs(),ys($e("decorator")),St()),Sr(gs("$label"),{if:"$label"})),Qc(ef("$label"),wt("$help"),Zc(Xc(vs(ms($t(),Sr(hs(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),ys($e("decorator")),St()),Sr(gs("$option.label"),{if:"$option.label"})),Jc("$option.help"))))),Ye("$options == undefined && $help",wt("$help")),Bt(Ht("$message.value"))),type:"input",family:"box",props:["options","onValue","offValue","optionsLoader"],features:[Xo,Gy,Zt("decorator","radioDecorator")],schemaMemoKey:"qje02tb3gu8"},ab={schema:ar(_n(qs("$label"),Us($e("prefix"),$t(),Fy(Ye("$slots.default",()=>"$slots.default",da(Ye("$option.group",My(da(pa("$option.label"))),pa("$option.label"))))),Ye("$attrs.multiple !== undefined",()=>"",$e("select")),St(),$e("suffix"))),wt("$help"),Bt(Ht("$message.value"))),type:"input",props:["options","placeholder","optionsLoader"],features:[Xo,Qy,Zt("select","select")],schemaMemoKey:"cb119h43krg"},ub={schema:ar(_n(qs("$label"),Us($e("prefix","label"),$t(),Ny(),St(),$e("suffix"))),wt("$help"),Bt(Ht("$message.value"))),type:"input",props:[],features:[Ky],schemaMemoKey:"b1n0td79m9g"},Re={schema:ar(_n(qs("$label"),Us($e("prefix","label"),$t(),tf(),St(),$e("suffix"))),wt("$help"),Bt(Ht("$message.value"))),type:"input",family:"text",props:[],features:[lf],schemaMemoKey:"c3cc4kflsg"},cb={button:va,submit:va,checkbox:eb,file:tb,form:rb,group:nb,hidden:sb,list:ib,meta:ob,radio:lb,select:ab,textarea:ub,text:Re,color:Re,date:Re,datetimeLocal:Re,email:Re,month:Re,number:Re,password:Re,search:Re,tel:Re,time:Re,url:Re,week:Re,range:Re},rt=void 0,lt=null,bs,cf=!1,Yr=!1,fb=new Promise(e=>{bs=()=>{cf=!0,e()}}),_t=typeof window<"u"&&typeof fetch<"u";rt=_t?getComputedStyle(document.documentElement):void 0;var gr={},ci={};function pb(e,t,r,n){t&&Object.assign(gr,t),_t&&!Yr&&(rt!=null&&rt.getPropertyValue("--formkit-theme"))?(bs(),Yr=!0):e&&!Yr&&_t?db(e):!Yr&&_t&&bs();const s=function(o){var l,a;o.addProps(["iconLoader","iconLoaderUrl"]),o.props.iconHandler=ya((l=o.props)!=null&&l.iconLoader?o.props.iconLoader:n,(a=o.props)!=null&&a.iconLoaderUrl?o.props.iconLoaderUrl:r),gb(o,o.props.iconHandler),o.on("created",()=>{var u,c;(u=o==null?void 0:o.context)!=null&&u.handlers&&(o.context.handlers.iconClick=f=>{const d=`on${f.charAt(0).toUpperCase()}${f.slice(1)}IconClick`,m=o.props[d];if(m&&typeof m=="function")return v=>m(o,v)}),(c=o==null?void 0:o.context)!=null&&c.fns&&(o.context.fns.iconRole=f=>{const d=`on${f.charAt(0).toUpperCase()}${f.slice(1)}IconClick`;return typeof o.props[d]=="function"?"button":null})})};return s.iconHandler=ya(n,r),s}function db(e){if(!(!e||!_t||typeof getComputedStyle!="function")&&(Yr=!0,lt=document.getElementById("formkit-theme"),e&&_t&&(!(rt!=null&&rt.getPropertyValue("--formkit-theme"))&&!lt||lt!=null&&lt.getAttribute("data-theme")&&(lt==null?void 0:lt.getAttribute("data-theme"))!==e))){const r=`https://cdn.jsdelivr.net/npm/@formkit/themes@${ps.startsWith("__")?"latest":ps}/dist/${e}/theme.css`,n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.id="formkit-theme",n.setAttribute("data-theme",e),n.onload=()=>{rt=getComputedStyle(document.documentElement),bs()},document.head.appendChild(n),n.href=r,lt&&lt.remove()}}function ya(e,t){return r=>{if(typeof r!="string")return;if(r.startsWith("<svg"))return r;const n=r.startsWith("default:");r=n?r.split(":")[1]:r;const s=r in gr;let i;if(s)return gr[r];if(!ci[r]){if(i=hb(r),i=_t&&typeof i>"u"?Promise.resolve(i):i,i instanceof Promise)ci[r]=i.then(o=>!o&&typeof r=="string"&&!n?i=typeof e=="function"?e(r):mb(r,t):o).then(o=>(typeof r=="string"&&(gr[n?`default:${r}`:r]=o),o));else if(typeof i=="string")return gr[n?`default:${r}`:r]=i,i}return ci[r]}}function hb(e){if(_t)return cf?ba(e):fb.then(()=>ba(e))}function ba(e){const t=rt==null?void 0:rt.getPropertyValue(`--fk-icon-${e}`);if(t){const r=atob(t);if(r.startsWith("<svg"))return gr[e]=r,r}}function mb(e,t){const r=ps.startsWith("__")?"latest":ps,n=typeof t=="function"?t(e):`https://cdn.jsdelivr.net/npm/@formkit/icons@${r}/dist/icons/${e}.svg`;if(_t)return fetch(`${n}`).then(async s=>{const i=await s.text();if(i.startsWith("<svg"))return i}).catch(s=>{console.error(s)})}function gb(e,t){const r=/^[a-zA-Z-]+(?:-icon|Icon)$/;Object.keys(e.props).filter(s=>r.test(s)).forEach(s=>vb(e,t,s))}function vb(e,t,r){const n=e.props[r],s=t(n),i=`_raw${r.charAt(0).toUpperCase()}${r.slice(1)}`,o=`on${r.charAt(0).toUpperCase()}${r.slice(1)}Click`;if(e.addProps([i,o]),e.on(`prop:${r}`,yb),s instanceof Promise)return s.then(l=>{e.props[i]=l});e.props[i]=s}function yb(e){var o;const t=e.origin,r=e.payload,n=(o=t==null?void 0:t.props)==null?void 0:o.iconHandler,s=e.name.split(":")[1],i=`_raw${s.charAt(0).toUpperCase()}${s.slice(1)}`;if(n&&typeof n=="function"){const l=n(r);if(l instanceof Promise)return l.then(a=>{t.props[i]=a});t.props[i]=l}}var _a={100:({data:e})=>`Only groups, lists, and forms can have children (${e.name}).`,101:({data:e})=>`You cannot directly modify the store (${e.name}). See: https://formkit.com/advanced/core#message-store`,102:({data:[e,t]})=>`You cannot directly assign node.${t} (${e.name})`,103:({data:[e]})=>`Schema expressions cannot start with an operator (${e})`,104:({data:[e,t]})=>`Schema expressions cannot end with an operator (${e} in "${t}")`,105:({data:e})=>`Invalid schema expression: ${e}`,106:({data:e})=>`Cannot submit because (${e}) is not in a form.`,107:({data:[e,t]})=>`Cannot set ${e.name} to non object value: ${t}`,108:({data:[e,t]})=>`Cannot set ${e.name} to non array value: ${t}`,300:({data:[e]})=>`Cannot set behavior prop to overscroll (on ${e.name} input) when options prop is a function.`,600:({data:e})=>`Unknown input type${typeof e.props.type=="string"?' "'+e.props.type+'"':""} ("${e.name}")`,601:({data:e})=>`Input definition${typeof e.props.type=="string"?' "'+e.props.type+'"':""} is missing a schema or component property (${e.name}).`},wa={150:({data:e})=>`Schema function "${e}()" is not a valid function.`,151:({data:e})=>`No form element with id: ${e}`,152:({data:e})=>`No input element with id: ${e}`,350:({data:{node:e,inputType:t}})=>`Invalid options prop for ${e.name} input (${t}). See https://formkit.com/inputs/${t}`,650:'Schema "$get()" must use the id of an input to access.',651:({data:e})=>`Cannot setErrors() on "${e}" because no such id exists.`,652:({data:e})=>`Cannot clearErrors() on "${e}" because no such id exists.`,800:({data:e})=>`${e} is deprecated.`},bb=(e,t)=>{if(e.code in _a){const r=_a[e.code];e.message=typeof r=="function"?r(e):r}return t(e)},$a=!1;function _b(){$a||(Uo(bb),qo(wb),$a=!0)}var wb=(e,t)=>{if(e.code in wa){const r=wa[e.code];e.message=typeof r=="function"?r(e):r}return t(e)},$b=Object.defineProperty,Sb=Object.getOwnPropertyNames,ff=(e,t)=>function(){return e&&(t=(0,e[Sb(e)[0]])(e=0)),t},xb=(e,t)=>{for(var r in t)$b(e,r,{get:t[r],enumerable:!0})},Sa,pf,df=ff({"packages/vue/src/bindings.ts"(){Sa=function(t){t.ledger.count("blocking",S=>S.blocking);const r=z(!t.ledger.value("blocking"));t.ledger.count("errors",S=>S.type==="error");const n=z(!!t.ledger.value("errors"));let s=!1;vn(()=>{s=!0});const i=vt(t.store.reduce((S,R)=>(R.visible&&(S[R.key]=R),S),{})),o=z(t.props.validationVisibility||(t.props.type==="checkbox"?"dirty":"blur"));t.on("prop:validationVisibility",({payload:S})=>{o.value=S});const l=z(o.value==="live"),a=z(!1),u=S=>{a.value=(S??[]).some(R=>R.name==="required")};u(t.props.parsedRules),t.on("prop:parsedRules",({payload:S})=>u(S));const c=z(t.children.map(S=>S.uid)),f=Q(()=>{if(!_.state)return!1;if(_.state.submitted)return!0;if(!l.value&&!_.state.settled)return!1;switch(o.value){case"live":return!0;case"blur":return _.state.blurred;case"dirty":return _.state.dirty;default:return!1}}),d=Q(()=>_.state.failing&&f.value),m=Q(()=>_&&v.value?r.value&&!n.value:_.state.dirty&&!ze(_.value)),v=z(Array.isArray(t.props.parsedRules)&&t.props.parsedRules.length>0);t.on("prop:parsedRules",({payload:S})=>{v.value=Array.isArray(S)&&S.length>0});const p=Q(()=>{const S={};for(const R in i){const U=i[R];(U.type!=="validation"||f.value)&&(S[R]=U)}return S}),b=vt(t.store.reduce((S,R)=>(R.type==="ui"&&R.visible&&(S[R.key]=R),S),{})),$=Q(()=>!_.state.failing),E=vt({}),A=new Proxy(E,{get(...S){if(!t)return"";const[R,U]=S;let te=Reflect.get(...S);return!te&&typeof U=="string"&&!G(R,U)&&!U.startsWith("__v")&&Vs(t).watch(D=>{const Y=typeof D.config.rootClasses=="function"?D.config.rootClasses(U,D):{},fe=D.config.classes?Xn(U,D,D.config.classes[U]):{},ve=Xn(U,D,D.props[`_${U}Class`]),J=Xn(U,D,D.props[`${U}Class`]);te=Ng(D,U,Y,fe,ve,J),R[U]=te??""}),te}});t.on("prop:rootClasses",()=>{const S=Object.keys(E);for(const R of S)delete E[R]});const w=Q(()=>{if(!t)return;const S=[];_.help&&S.push(`help-${t.props.id}`);for(const R in p.value)S.push(`${t.props.id}-${R}`);return S.length?S.join(" "):void 0}),O=z(t.value),g=z(t.value),_=vt({_value:g,attrs:t.props.attrs,disabled:t.props.disabled,describedBy:w,fns:{length:S=>Object.keys(S).length,number:S=>Number(S),string:S=>String(S),json:S=>JSON.stringify(S),eq:Me},handlers:{blur:S=>{t&&(t.store.set(Fe({key:"blurred",visible:!1,value:!0})),typeof t.props.attrs.onBlur=="function"&&t.props.attrs.onBlur(S))},touch:()=>{var U;const S=_.dirtyBehavior==="compare";if((U=t.store.dirty)!=null&&U.value&&!S)return;const R=!Me(t.props._init,t._value);!R&&!S||t.store.set(Fe({key:"dirty",visible:!1,value:R}))},DOMInput:S=>{t.input(S.target.value),t.emit("dom-input-event",S)}},help:t.props.help,id:t.props.id,items:c,label:t.props.label,messages:p,didMount:!1,node:gn(t),options:t.props.options,defaultMessagePlacement:!0,slots:t.props.__slots,state:{blurred:!1,complete:m,dirty:!1,empty:ze(O),submitted:!1,settled:t.isSettled,valid:r,invalid:d,errors:n,rules:v,validationVisible:f,required:a,failing:!1,passing:$},type:t.props.type,family:t.props.family,ui:b,value:O,classes:A});t.on("created",()=>{Me(_.value,t.value)||(g.value=t.value,O.value=t.value,kn(O),kn(g)),(async()=>(await t.settled,t&&(t.props._init=et(t.value))))()}),t.on("mounted",()=>{_.didMount=!0}),t.on("settled",({payload:S})=>{_.state.settled=S});function k(S){(Array.isArray(S)?S:Object.keys(S)).forEach(U=>{U=wr(U),G(_,U)||(_[U]=t.props[U]),t.on(`prop:${U}`,({payload:te})=>{_[U]=te})})}k((()=>{const S=["__root","help","label","disabled","options","type","attrs","preserve","preserveErrors","id","dirtyBehavior"],R=/^[a-zA-Z-]+(?:-icon|Icon)$/,U=Object.keys(t.props).filter(te=>R.test(te));return S.concat(U)})());function I(S){S.props&&k(S.props)}t.props.definition&&I(t.props.definition),t.on("added-props",({payload:S})=>k(S)),t.on("input",({payload:S})=>{t.type!=="input"&&!ge(S)&&!Pt(S)?g.value=Ni(S):(g.value=S,kn(g))}),t.on("commitRaw",({payload:S})=>{t.type!=="input"&&!ge(S)&&!Pt(S)?O.value=g.value=Ni(S):(O.value=g.value=S,kn(O)),t.emit("modelUpdated")}),t.on("commit",({payload:S})=>{var R;if((!_.state.dirty||_.dirtyBehavior==="compare")&&t.isCreated&&s)if(!((R=t.store.validating)!=null&&R.value))_.handlers.touch();else{const U=t.on("message-removed",({payload:te})=>{te.key==="validating"&&(_.handlers.touch(),t.off(U))})}m&&t.type==="input"&&n.value&&!tt(t.props.preserveErrors)&&t.store.filter(U=>{var te;return!(U.type==="error"&&((te=U.meta)==null?void 0:te.autoClear)===!0)}),t.type==="list"&&t.sync&&(c.value=t.children.map(U=>U.uid)),_.state.empty=ze(S)});const L=async S=>{S.type==="ui"&&S.visible&&!S.meta.showAsMessage?b[S.key]=S:S.visible?i[S.key]=S:S.type==="state"&&(_.state[S.key]=!!S.value)};t.on("message-added",S=>L(S.payload)),t.on("message-updated",S=>L(S.payload)),t.on("message-removed",({payload:S})=>{delete b[S.key],delete i[S.key],delete _.state[S.key]}),t.on("settled:blocking",()=>{r.value=!0}),t.on("unsettled:blocking",()=>{r.value=!1}),t.on("settled:errors",()=>{n.value=!1}),t.on("unsettled:errors",()=>{n.value=!0}),me(f,S=>{S&&(l.value=!0)}),t.context=_,t.emit("context",t,!1),t.on("destroyed",()=>{t.context=void 0,t=null})},pf=Sa}}),Eb={};xb(Eb,{defaultConfig:()=>hf});var hf,Ab=ff({"packages/vue/src/defaultConfig.ts"(){df(),hf=(e={})=>{_b();const{rules:t={},locales:r={},inputs:n={},messages:s={},locale:i=void 0,theme:o=void 0,iconLoaderUrl:l=void 0,iconLoader:a=void 0,icons:u={},...c}=e,f=ny({...ry,...t||{}}),d=_y(jt({en:by,...r||{}},s)),m=wy(cb,n),v=pb(o,u,l,a);return jt({plugins:[m,v,pf,d,f],...i?{config:{locale:i}}:{}},c||{},!0)}}}),Cb=typeof window>"u",fi=new Map;function Tb(e,t){var r;!Cb||!e||(fi.has(e)||fi.set(e,new Set),(r=fi.get(e))==null||r.add(t))}var mf=typeof window>"u",rn={},xr={},Ie,gt=new WeakMap,Ob="__raw__",Pb=/[a-zA-Z0-9\-][cC]lass$/;function Ib(e,t){const r=z(null);if(e==="get"){const s={};return r.value=kb.bind(null,s),r}const n=e.split(".");return _e(()=>{r.value=Qo(ge(t)?t.value:t,n)}),r}function Qo(e,t){if(Array.isArray(e)){for(const s of e){const i=s!==!1&&Qo(s,t);if(i!==void 0)return i}return}let r,n=e;for(const s in t){const i=t[s];if(typeof n!="object"||n===null){r=void 0;break}const o=n[i];if(Number(s)===t.length-1&&o!==void 0){r=typeof o=="function"?o.bind(n):o;break}n=o}return r}function kb(e,t){if(typeof t!="string")return lr(650);if(t in e||(e[t]=z(void 0)),e[t].value===void 0){e[t].value=null;const r=yn(t);r&&(e[t].value=r.context),Vm(t,({payload:n})=>{e[t].value=bn(n)?n.context:n})}return e[t].value}function xa(e,t,r){function n(m,v){const p=f(Xe(v.if),{if:!0}),b=u(m,v.then),$=v.else?u(m,v.else):null;return[p,b,$]}function s(m,v){var E,A;const p=f(Xe(m.if));let b=()=>v,$=()=>v;return typeof m.then=="object"?$=i(m.then,void 0):typeof m.then=="string"&&((E=m.then)!=null&&E.startsWith("$"))?$=f(Xe(m.then)):$=()=>m.then,G(m,"else")&&(typeof m.else=="object"?b=i(m.else):typeof m.else=="string"&&((A=m.else)!=null&&A.startsWith("$"))?b=f(Xe(m.else)):b=()=>m.else),()=>p()?$():b()}function i(m,v,p={}){const b=new Set(Object.keys(m||{})),$=v?f(Xe(v)):()=>({}),E=[A=>{const w=$();for(const O in w)b.has(O)||(A[O]=w[O])}];if(m){if(hr(m))return s(m,p);for(let A in m){const w=m[A];let O;const g=typeof w=="string";A.startsWith(Ob)?(A=A.substring(7),O=()=>w):g&&w.startsWith("$")&&w.length>1&&!(w.startsWith("$reset")&&Pb.test(A))?O=f(Xe(w)):typeof w=="object"&&hr(w)?O=s(w,void 0):typeof w=="object"&&Cr(w)?O=i(w):O=()=>w,E.push(_=>{_[A]=O()})}}return()=>{const A=Array.isArray(m)?[]:{};return E.forEach(w=>w(A)),A}}function o(m,v){let p=null,b=()=>null,$=!1,E=null,A=null,w=null,O=!1;const g=jg(v);if(Bi(g)?(p=g.$el,b=g.$el!=="text"?i(g.attrs,g.bind):()=>null):Vi(g)?(typeof g.$cmp=="string"?G(m,g.$cmp)?p=m[g.$cmp]:(p=g.$cmp,O=!0):p=g.$cmp,b=i(g.props,g.bind)):hr(g)&&([$,E,A]=n(m,g)),!hr(g)&&"if"in g?$=f(Xe(g.if)):!hr(g)&&p===null&&($=()=>!0),"children"in g&&g.children)if(typeof g.children=="string")if(g.children.startsWith("$slots."))p=p==="text"?"slot":p,E=f(Xe(g.children));else if(g.children.startsWith("$")&&g.children.length>1){const _=f(Xe(g.children));E=()=>String(_())}else E=()=>String(g.children);else if(Array.isArray(g.children))E=u(m,g.children);else{const[_,k,B]=n(m,g.children);E=I=>_&&_()?k&&k(I):B&&B(I)}if(Vi(g))if(E){const _=E;E=k=>({default(B,I){var R,U,te,H;const L=Ie;I&&(Ie=I),B&&((R=gt.get(Ie))==null||R.unshift(B)),k&&((U=gt.get(Ie))==null||U.unshift(k));const S=_(k);return B&&((te=gt.get(Ie))==null||te.shift()),k&&((H=gt.get(Ie))==null||H.shift()),Ie=L,S}}),E.slot=!0}else E=()=>({});if("for"in g&&g.for){const _=g.for.length===3?g.for[2]:g.for[1];w=[typeof _=="string"&&_.startsWith("$")?f(Xe(_)):()=>_,g.for[0],g.for.length===3?String(g.for[1]):null]}return[$,p,b,E,A,w,O]}function l(m,v){const p=m(v),b=Ie;return Object.keys(p).reduce(($,E)=>{const A=p&&p[E];return $[E]=w=>A&&A(w,b)||null,$},{})}function a(m,v){const[p,b,$,E,A,w,O]=o(m,v);let g=_=>{if(p&&b===null&&E)return p()?E(_):A&&A(_);if(b&&(!p||p())){if(b==="text"&&E)return dc(String(E()));if(b==="slot"&&E)return E(_);const k=O?Bd(b):b,B=E!=null&&E.slot?l(E,_):null;return Ce(k,$(),B||(E?E(_):[]))}return typeof A=="function"?A(_):A};if(w){const _=g,[k,B,I]=w;g=()=>{const L=k(),S=Number.isFinite(L)?Array(Number(L)).fill(0).map((H,D)=>D):L,R=[];if(typeof S!="object")return null;const U=gt.get(Ie)||[],te=Array.isArray(S);for(const H in S){if(te&&H in Array.prototype)continue;const D=Object.defineProperty({...U.reduce((Y,fe)=>Y.__idata?{...Y,...fe}:fe,{}),[B]:S[H],...I!==null?{[I]:te?Number(H):H}:{}},"__idata",{enumerable:!1,value:!0});U.unshift(D),R.push(_.bind(null,D)()),U.shift()}return R}}return g}function u(m,v){if(Array.isArray(v)){const b=v.map(a.bind(null,m));return $=>b.map(E=>E($))}const p=a(m,v);return b=>p(b)}const c=[];function f(m,v={}){const p=new WeakMap;return c.push((b,$)=>{p.set($,m.provide(E=>b(E,v)))}),()=>p.get(Ie)()}function d(m,v){r??(r=vf(t));const[p,b]=G(rn,r)?rn[r]:[u(e,t),c];return mf||(xr[r]??(xr[r]=0),xr[r]++,rn[r]=[p,b]),b.forEach($=>{$(m,v)}),()=>(Ie=v,p())}return d}function gf(e,t){const r=gt.get(Ie)||[];let n;return r.length&&(n=Qo(r,e.split("."))),n===void 0?t:n}function Mb(e,t){return new Proxy(e,{get(...r){let n;const s=r[1];if(typeof s=="string"){const i=Ie;Ie=t,n=gf(s,void 0),Ie=i}return n!==void 0?n:Reflect.get(...r)}})}function Ea(e,t,r){return e((n,s={})=>n.reduce((i,o)=>{if(o.startsWith("slots.")){const l=o.substring(6),a=()=>t.slots&&G(t.slots,l)&&typeof t.slots[l]=="function";if(s.if)i[o]=a;else if(t.slots){const u=Mb(t,r);i[o]=()=>a()?t.slots[l](u):null}}else{const l=Ib(o,t);i[o]=()=>gf(o,l.value)}return i},{}),r)}function Aa(e,t,r){if(t??(t=vf(e)),xr[t]--,xr[t]===0){delete xr[t];const[,n]=rn[t];delete rn[t],n.length=0}gt.delete(r)}function vf(e){return JSON.stringify(e,(t,r)=>typeof r=="function"?r.toString():r)}var yf=ht({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:()=>({})},library:{type:Object,default:()=>({})},memoKey:{type:String,required:!1}},emits:["mounted"],setup(e,t){var u;const r=nr();let n={};gt.set(n,[]);const s={FormKit:gn(_f),...e.library};let i=xa(s,e.schema,e.memoKey),o,l;mf||me(()=>e.schema,(c,f)=>{var m;const d=n;n={},gt.set(n,[]),i=xa(s,e.schema,e.memoKey),o=Ea(i,l,n),c===f&&((m=r==null?void 0:r.proxy)==null?void 0:m.$forceUpdate).call(m),Aa(e.schema,e.memoKey,d)},{deep:!0}),_e(()=>{l=Object.assign(vt(e.data??{}),{slots:t.slots}),t.slots,o=Ea(i,l,n)});function a(){Aa(e.schema,e.memoKey,n),l&&(l.node&&l.node.destroy(),l.slots=null,l=null),o=null}return Ge(()=>t.emit("mounted")),dt(a),Tb((u=nr())==null?void 0:u.appContext.app,a),()=>o?o():null}}),Fb=yf,jb=typeof window>"u",Ca=Symbol("FormKitParent"),Nb=Symbol("FormKitComponentCallback");function Rb(e,t){const r=Ub(e,t);if(r.props.definition||Ke(600,r),r.props.definition.component)return()=>{var u;return Ce((u=r.props.definition)==null?void 0:u.component,{context:r.context},{...t.slots})};const n=z([]);let s=r.props.definition.schemaMemoKey;const i=()=>{var c,f;const u=(f=(c=r.props)==null?void 0:c.definition)==null?void 0:f.schema;u||Ke(601,r),typeof u=="function"?(n.value=u({...e.sectionsSchema||{}}),(s&&e.sectionsSchema||"memoKey"in u&&typeof u.memoKey=="string")&&(s=(s??(u==null?void 0:u.memoKey))+JSON.stringify(e.sectionsSchema))):n.value=u};i(),jb||r.on("schema",()=>{s+="♻️",i()}),t.emit("node",r);const o=r.props.definition.library,l={FormKit:gn(bf),...o,...e.library??{}};function a(){r.emit("mounted")}return t.expose({node:r}),()=>Ce(yf,{schema:n.value,data:r.context,onMounted:a,library:l,memoKey:s},{...t.slots})}var bf=ht(Rb,{props:$y,inheritAttrs:!1}),_f=bf,Lb=Symbol();function Db(e,t){return e.component(t.alias||"FormKit",_f).component(t.schemaAlias||"FormKitSchema",Fb),{get:yn,setLocale:r=>{var n;(n=t.config)!=null&&n.rootConfig&&(t.config.rootConfig.locale=r)},clearErrors:Lg,setErrors:Rg,submit:Cc,reset:Tc}}var wf=Symbol.for("FormKitOptions"),Hb=Symbol.for("FormKitConfig"),Z$={install(e,t){const r=Object.assign({alias:"FormKit",schemaAlias:"FormKitSchema"},typeof t=="function"?t():t),n=Wm(r.config||{});r.config={rootConfig:n},e.config.globalProperties.$formkit=Db(e,r),e.provide(wf,r),e.provide(Hb,n),typeof window<"u"&&(globalThis.__FORMKIT_CONFIGS__=(globalThis.__FORMKIT_CONFIGS__||[]).concat([n]))}},Bb=typeof window<"u",pi=["ignore","disabled","preserve","help","label",/^preserve(-e|E)rrors/,/^[a-z]+(?:-visibility|Visibility|-behavior|Behavior)$/,/^[a-zA-Z-]+(?:-class|Class)$/,"prefixIcon","suffixIcon",/^[a-zA-Z-]+(?:-icon|Icon)$/],Vb=["disabled","ignore","preserve"];function Ta(e,t){t.classes&&Object.keys(t.classes).forEach(r=>{typeof r=="string"&&(e.props[`_${r}Class`]=t.classes[r],tn(t.classes[r])&&r==="inner"&&Object.values(t.classes[r]))})}function Wb(e){return e?["Submit","SubmitRaw","SubmitInvalid"].reduce((r,n)=>{const s=`on${n}`;return s in e&&typeof e[s]=="function"&&(r[s]=e[s]),r},{}):{}}function Ub(e,t,r={}){const n=Object.assign({},Se(wf)||{},r),s=Se(Lb,z(Bb?document:void 0)),i=Se(Nb,()=>{}),o=nr(),l=Wb(o==null?void 0:o.vnode.props),a=["modelValue","model-value"].some(g=>g in((o==null?void 0:o.vnode.props)??{}));let u=!1;Ge(()=>{u=!0});const c=e.modelValue!==void 0?e.modelValue:et(t.attrs.value);function f(){const g={...dr(e),...l,type:e.type??"text",__root:s.value,__slots:t.slots},_=Ql(dr(t.attrs),pi);_.key||(_.key=Nr()),g.attrs=_;const k=ea(dr(t.attrs),pi);for(const I in k)Vb.includes(I)&&k[I]===""&&(k[I]=!0),g[wr(I)]=k[I];const B={props:{}};return Ta(B,e),Object.assign(g,B.props),typeof g.type!="string"&&(g.definition=g.type,delete g.type),g}const d=f(),m=d.ignore?null:e.parent||Se(Ca,null),v=Mg(jt(n||{},{name:e.name||void 0,value:c,parent:m,plugins:(n.plugins||[]).concat(e.plugins??[]),config:e.config||{},props:d,index:e.index,sync:!!tt(t.attrs.sync||t.attrs.dynamic)},!1,!0));i(v),v.props.definition||Ke(600,v);const p=z(new Set(Array.isArray(v.props.__propDefs)?v.props.__propDefs:Object.keys(v.props.__propDefs??{})));v.on("added-props",({payload:g})=>{(Array.isArray(g)?g:Object.keys(g??{})).forEach(k=>p.value.add(k))});const b=Q(()=>pi.concat([...p.value]).reduce((g,_)=>(typeof _=="string"?(g.push(wr(_)),g.push($c(_))):g.push(_),g),[]));_e(()=>Ta(v,e));const $=dr(e);for(const g in $)me(()=>e[g],()=>{e[g]!==void 0&&(v.props[g]=e[g])});_e(()=>{v.props.__root=s.value});const E=new Set,A=dr(t.attrs);_e(()=>{w(ea(A,b.value))});function w(g){E.forEach(_=>{_(),E.delete(_)});for(const _ in g){const k=wr(_);E.add(me(()=>t.attrs[_],()=>{v.props[k]=t.attrs[_]}))}}if(_e(()=>{const g=Ql(dr(t.attrs),b.value);"multiple"in g&&(g.multiple=tt(g.multiple)),typeof g.onBlur=="function"&&(g.onBlur=$m(g.onBlur)),v.props.attrs=Object.assign({},v.props.attrs||{},g)}),_e(()=>{const g=(e.errors??[]).map(_=>Fe({key:Vo(_),type:"error",value:_,meta:{source:"prop"}}));v.store.apply(g,_=>_.type==="error"&&_.meta.source==="prop")}),v.type!=="input"){const g=`${v.name}-prop`;_e(()=>{const _=e.inputErrors??{},k=Object.keys(_);k.length||v.clearErrors(!0,g);const B=k.reduce((I,L)=>{let S=_[L];return typeof S=="string"&&(S=[S]),Array.isArray(S)&&(I[L]=S.map(R=>Fe({key:R,type:"error",value:R,meta:{source:g}}))),I},{});v.store.apply(B,I=>I.type==="error"&&I.meta.source===g)})}_e(()=>Object.assign(v.config,e.config)),v.type!=="input"&&Dt(Ca,v);let O;return v.on("modelUpdated",()=>{var g,_;t.emit("inputRaw",(g=v.context)==null?void 0:g.value,v),u&&t.emit("input",(_=v.context)==null?void 0:_.value,v),a&&v.context&&(O=et(v.value),t.emit("update:modelValue",Ni(v.value)))}),a&&(me(Du(e,"modelValue"),g=>{Me(O,g)||v.input(g,!1)},{deep:!0}),v.value!==c&&v.emit("modelUpdated")),jo(()=>v.destroy()),v}var qb=W("messages",()=>({$el:"ul",if:"$fns.length($messages)"})),Kb=W("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}}));qb(Kb("$message.value"));var zb=W("summary",()=>({$el:"div",attrs:{"aria-live":"polite"}})),Yb=W("summaryInner",()=>({$el:"div",if:"$summaries.length && $showSummaries"})),Gb=W("messages",()=>({$el:"ul",if:"$summaries.length && $showSummaries"})),Jb=W("message",()=>({$el:"li",for:["summary","$summaries"],attrs:{key:"$summary.key","data-message-type":"$summary.type"}})),Xb=W("summaryHeader",()=>({$el:"h2",attrs:{id:"$id"}})),Zb=W("messageLink",()=>({$el:"a",attrs:{id:"$summary.key",href:'$: "#" + $summary.id',onClick:"$jumpLink"}}));zb(Yb(Xb("$summaryHeader"),Gb(Jb(Zb("$summary.message")))));Ab();df();function Q$(e,t){var r;const n=br();return _e(()=>{n.value=e()},{...t,flush:(r=t==null?void 0:t.flush)!=null?r:"sync"}),Mt(n)}function $n(e){return Eu()?(Zp(e),!0):!1}function di(){const e=new Set,t=s=>{e.delete(s)};return{on:s=>{e.add(s);const i=()=>t(s);return $n(i),{off:i}},off:t,trigger:(...s)=>Promise.all(Array.from(e).map(i=>i(...s)))}}function De(e){return typeof e=="function"?e():js(e)}const $f=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Qb=Object.prototype.toString,e_=e=>Qb.call(e)==="[object Object]",Sf=()=>{};function t_(e,t){function r(...n){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(s).catch(i)})}return r}const xf=e=>e();function r_(e=xf){const t=z(!0);function r(){t.value=!1}function n(){t.value=!0}const s=(...i)=>{t.value&&e(...i)};return{isActive:Mt(t),pause:r,resume:n,eventFilter:s}}function Oa(e,t=!1,r="Timeout"){return new Promise((n,s)=>{setTimeout(t?()=>s(r):n,e)})}function n_(e,...t){return t.some(r=>r in e)}function s_(e){return e||nr()}function Zn(...e){if(e.length!==1)return Du(...e);const t=e[0];return typeof t=="function"?Mt(xd(()=>({get:t,set:Sf}))):z(t)}function i_(e,t,r={}){const{eventFilter:n=xf,...s}=r;return me(e,t_(n,t),s)}function o_(e,t,r={}){const{eventFilter:n,...s}=r,{eventFilter:i,pause:o,resume:l,isActive:a}=r_(n);return{stop:i_(e,t,{...s,eventFilter:i}),pause:o,resume:l,isActive:a}}function Ef(e,t=!0,r){s_()?Ge(e,r):t?e():vn(e)}function zi(e,t=!1){function r(f,{flush:d="sync",deep:m=!1,timeout:v,throwOnTimeout:p}={}){let b=null;const E=[new Promise(A=>{b=me(e,w=>{f(w)!==t&&(b==null||b(),A(w))},{flush:d,deep:m,immediate:!0})})];return v!=null&&E.push(Oa(v,p).then(()=>De(e)).finally(()=>b==null?void 0:b())),Promise.race(E)}function n(f,d){if(!ge(f))return r(w=>w===f,d);const{flush:m="sync",deep:v=!1,timeout:p,throwOnTimeout:b}=d??{};let $=null;const A=[new Promise(w=>{$=me([e,f],([O,g])=>{t!==(O===g)&&($==null||$(),w(O))},{flush:m,deep:v,immediate:!0})})];return p!=null&&A.push(Oa(p,b).then(()=>De(e)).finally(()=>($==null||$(),De(e)))),Promise.race(A)}function s(f){return r(d=>!!d,f)}function i(f){return n(null,f)}function o(f){return n(void 0,f)}function l(f){return r(Number.isNaN,f)}function a(f,d){return r(m=>{const v=Array.from(m);return v.includes(f)||v.includes(De(f))},d)}function u(f){return c(1,f)}function c(f=1,d){let m=-1;return r(()=>(m+=1,m>=f),d)}return Array.isArray(De(e))?{toMatch:r,toContains:a,changed:u,changedTimes:c,get not(){return zi(e,!t)}}:{toMatch:r,toBe:n,toBeTruthy:s,toBeNull:i,toBeNaN:l,toBeUndefined:o,changed:u,changedTimes:c,get not(){return zi(e,!t)}}}function l_(e){return zi(e)}function a_(e,t,r={}){const{immediate:n=!0}=r,s=z(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function l(){s.value=!1,o()}function a(...u){o(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=null,e(...u)},De(t))}return n&&(s.value=!0,$f&&a()),$n(l),{isPending:Mt(s),start:a,stop:l}}function e1(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,s=ge(e),i=z(e);function o(l){if(arguments.length)return i.value=l,i.value;{const a=De(r);return i.value=i.value===a?De(n):a,i.value}}return s?o:[i,o]}function _s(e){var t;const r=De(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Nt=$f?window:void 0;function Pa(...e){let t,r,n,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,s]=e,t=Nt):[t,r,n,s]=e,!t)return Sf;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},l=(c,f,d,m)=>(c.addEventListener(f,d,m),()=>c.removeEventListener(f,d,m)),a=me(()=>[_s(t),De(s)],([c,f])=>{if(o(),!c)return;const d=e_(f)?{...f}:f;i.push(...r.flatMap(m=>n.map(v=>l(c,m,v,d))))},{immediate:!0,flush:"post"}),u=()=>{a(),o()};return $n(u),u}function u_(){const e=z(!1),t=nr();return t&&Ge(()=>{e.value=!0},t),e}function Af(e){const t=u_();return Q(()=>(t.value,!!e()))}function c_(e,t={}){const{window:r=Nt}=t,n=Af(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const i=z(!1),o=u=>{i.value=u.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",o):s.removeListener(o))},a=_e(()=>{n.value&&(l(),s=r.matchMedia(De(e)),"addEventListener"in s?s.addEventListener("change",o):s.addListener(o),i.value=s.matches)});return $n(()=>{a(),l(),s=void 0}),i}const Nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Rn="__vueuse_ssr_handlers__",f_=p_();function p_(){return Rn in Nn||(Nn[Rn]=Nn[Rn]||{}),Nn[Rn]}function Cf(e,t){return f_[e]||t}function d_(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const h_={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ia="vueuse-storage";function m_(e,t,r,n={}){var s;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:u=!1,shallow:c,window:f=Nt,eventFilter:d,onError:m=I=>{console.error(I)},initOnMounted:v}=n,p=(c?br:z)(typeof t=="function"?t():t);if(!r)try{r=Cf("getDefaultStorage",()=>{var I;return(I=Nt)==null?void 0:I.localStorage})()}catch(I){m(I)}if(!r)return p;const b=De(t),$=d_(b),E=(s=n.serializer)!=null?s:h_[$],{pause:A,resume:w}=o_(p,()=>g(p.value),{flush:i,deep:o,eventFilter:d});f&&l&&Ef(()=>{Pa(f,"storage",k),Pa(f,Ia,B),v&&k()}),v||k();function O(I,L){f&&f.dispatchEvent(new CustomEvent(Ia,{detail:{key:e,oldValue:I,newValue:L,storageArea:r}}))}function g(I){try{const L=r.getItem(e);if(I==null)O(L,null),r.removeItem(e);else{const S=E.write(I);L!==S&&(r.setItem(e,S),O(L,S))}}catch(L){m(L)}}function _(I){const L=I?I.newValue:r.getItem(e);if(L==null)return a&&b!=null&&r.setItem(e,E.write(b)),b;if(!I&&u){const S=E.read(L);return typeof u=="function"?u(S,b):$==="object"&&!Array.isArray(S)?{...b,...S}:S}else return typeof L!="string"?L:E.read(L)}function k(I){if(!(I&&I.storageArea!==r)){if(I&&I.key==null){p.value=b;return}if(!(I&&I.key!==e)){A();try{(I==null?void 0:I.newValue)!==E.write(p.value)&&(p.value=_(I))}catch(L){m(L)}finally{I?vn(w):w()}}}}function B(I){k(I.detail)}return p}function Tf(e){return c_("(prefers-color-scheme: dark)",e)}function g_(e={}){const{selector:t="html",attribute:r="class",initialValue:n="auto",window:s=Nt,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:a,emitAuto:u,disableTransition:c=!0}=e,f={auto:"",light:"light",dark:"dark",...e.modes||{}},d=Tf({window:s}),m=Q(()=>d.value?"dark":"light"),v=a||(o==null?Zn(n):m_(o,n,i,{window:s,listenToStorageChanges:l})),p=Q(()=>v.value==="auto"?m.value:v.value),b=Cf("updateHTMLAttrs",(w,O,g)=>{const _=typeof w=="string"?s==null?void 0:s.document.querySelector(w):_s(w);if(!_)return;let k;if(c){k=s.document.createElement("style");const B="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";k.appendChild(document.createTextNode(B)),s.document.head.appendChild(k)}if(O==="class"){const B=g.split(/\s/g);Object.values(f).flatMap(I=>(I||"").split(/\s/g)).filter(Boolean).forEach(I=>{B.includes(I)?_.classList.add(I):_.classList.remove(I)})}else _.setAttribute(O,g);c&&(s.getComputedStyle(k).opacity,document.head.removeChild(k))});function $(w){var O;b(t,r,(O=f[w])!=null?O:w)}function E(w){e.onChanged?e.onChanged(w,$):$(w)}me(p,E,{flush:"post",immediate:!0}),Ef(()=>E(p.value));const A=Q({get(){return u?v.value:p.value},set(w){v.value=w}});try{return Object.assign(A,{store:v,system:m,state:p})}catch{return A}}function t1(e={}){const{valueDark:t="dark",valueLight:r="",window:n=Nt}=e,s=g_({...e,onChanged:(l,a)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,l==="dark",a,l):a(l)},modes:{dark:t,light:r}}),i=Q(()=>s.system?s.system.value:Tf({window:n}).value?"dark":"light");return Q({get(){return s.value==="dark"},set(l){const a=l?"dark":"light";i.value===a?s.value="auto":s.value=a}})}function r1(e,t,r={}){const{window:n=Nt,...s}=r;let i;const o=Af(()=>n&&"ResizeObserver"in n),l=()=>{i&&(i.disconnect(),i=void 0)},a=Q(()=>Array.isArray(e)?e.map(f=>_s(f)):[_s(e)]),u=me(a,f=>{if(l(),o.value&&n){i=new ResizeObserver(t);for(const d of f)d&&i.observe(d,s)}},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return $n(c),{isSupported:o,stop:c}}const v_={json:"application/json",text:"text/plain"};function ka(e){return e&&n_(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}function hi(e){return typeof Headers<"u"&&e instanceof Headers?Object.fromEntries(e.entries()):e}function n1(e,...t){var r;const n=typeof AbortController=="function";let s={},i={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const o={method:"GET",type:"text",payload:void 0};t.length>0&&(ka(t[0])?i={...i,...t[0]}:s=t[0]),t.length>1&&ka(t[1])&&(i={...i,...t[1]});const{fetch:l=(r=Nt)==null?void 0:r.fetch,initialData:a,timeout:u}=i,c=di(),f=di(),d=di(),m=z(!1),v=z(!1),p=z(!1),b=z(null),$=br(null),E=br(null),A=br(a||null),w=Q(()=>n&&v.value);let O,g;const _=()=>{n&&(O==null||O.abort(),O=new AbortController,O.signal.onabort=()=>p.value=!0,s={...s,signal:O.signal})},k=H=>{v.value=H,m.value=!H};u&&(g=a_(_,u,{immediate:!1}));let B=0;const I=async(H=!1)=>{var D,Y;_(),k(!0),E.value=null,b.value=null,p.value=!1,B+=1;const fe=B,ve={method:o.method,headers:{}};if(o.payload){const ue=hi(ve.headers),je=De(o.payload);!o.payloadType&&je&&Object.getPrototypeOf(je)===Object.prototype&&!(je instanceof FormData)&&(o.payloadType="json"),o.payloadType&&(ue["Content-Type"]=(D=v_[o.payloadType])!=null?D:o.payloadType),ve.body=o.payloadType==="json"?JSON.stringify(je):je}let J=!1;const se={url:De(e),options:{...ve,...s},cancel:()=>{J=!0}};if(i.beforeFetch&&Object.assign(se,await i.beforeFetch(se)),J||!l)return k(!1),Promise.resolve(null);let ye=null;return g&&g.start(),l(se.url,{...ve,...se.options,headers:{...hi(ve.headers),...hi((Y=se.options)==null?void 0:Y.headers)}}).then(async ue=>{if($.value=ue,b.value=ue.status,ye=await ue.clone()[o.type](),!ue.ok)throw A.value=a||null,new Error(ue.statusText);return i.afterFetch&&({data:ye}=await i.afterFetch({data:ye,response:ue})),A.value=ye,c.trigger(ue),ue}).catch(async ue=>{let je=ue.message||ue.name;if(i.onFetchError&&({error:je,data:ye}=await i.onFetchError({data:ye,error:ue,response:$.value})),E.value=je,i.updateDataOnError&&(A.value=ye),f.trigger(ue),H)throw ue;return null}).finally(()=>{fe===B&&k(!1),g&&g.stop(),d.trigger(null)})},L=Zn(i.refetch);me([L,Zn(e)],([H])=>H&&I(),{deep:!0});const S={isFinished:Mt(m),isFetching:Mt(v),statusCode:b,response:$,error:E,data:A,canAbort:w,aborted:p,abort:_,execute:I,onFetchResponse:c.on,onFetchError:f.on,onFetchFinally:d.on,get:R("GET"),put:R("PUT"),post:R("POST"),delete:R("DELETE"),patch:R("PATCH"),head:R("HEAD"),options:R("OPTIONS"),json:te("json"),text:te("text"),blob:te("blob"),arrayBuffer:te("arrayBuffer"),formData:te("formData")};function R(H){return(D,Y)=>{if(!v.value)return o.method=H,o.payload=D,o.payloadType=Y,ge(o.payload)&&me([L,Zn(o.payload)],([fe])=>fe&&I(),{deep:!0}),{...S,then(fe,ve){return U().then(fe,ve)}}}}function U(){return new Promise((H,D)=>{l_(m).toBe(!0).then(()=>H(S)).catch(Y=>D(Y))})}function te(H){return()=>{if(!v.value)return o.type=H,{...S,then(D,Y){return U().then(D,Y)}}}}return i.immediate&&Promise.resolve().then(()=>I()),{...S,then(H,D){return U().then(H,D)}}}const y_=new Set,He=new WeakMap,Ir=new WeakMap,ir=new WeakMap,Yi=new WeakMap,ws=new WeakMap,$s=new WeakMap,b_=new WeakSet;let Rt,el=0,tl=0;const yt="__aa_tgt",pn="__aa_del",Ss="__aa_new",__=e=>{const t=A_(e);t&&t.forEach(r=>C_(r))},w_=e=>{e.forEach(t=>{t.target===Rt&&S_(),He.has(t.target)&&Sn(t.target)})};function $_(e){const t=Yi.get(e);t==null||t.disconnect();let r=He.get(e),n=0;const s=5;r||(r=kr(e),He.set(e,r));const{offsetWidth:i,offsetHeight:o}=Rt,a=[r.top-s,i-(r.left+s+r.width),o-(r.top+s+r.height),r.left-s].map(c=>`${-1*Math.floor(c)}px`).join(" "),u=new IntersectionObserver(()=>{++n>1&&Sn(e)},{root:Rt,threshold:1,rootMargin:a});u.observe(e),Yi.set(e,u)}function Sn(e){clearTimeout($s.get(e));const t=Ks(e),r=sl(t)?500:t.duration;$s.set(e,setTimeout(async()=>{const n=ir.get(e);try{await(n==null?void 0:n.finished),He.set(e,kr(e)),$_(e)}catch{}},r))}function S_(){clearTimeout($s.get(Rt)),$s.set(Rt,setTimeout(()=>{y_.forEach(e=>O_(e,t=>x_(()=>Sn(t))))},100))}function x_(e){typeof requestIdleCallback=="function"?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}let Ma;const E_=typeof window<"u"&&"ResizeObserver"in window;E_&&(Rt=document.documentElement,new MutationObserver(__),Ma=new ResizeObserver(w_),window.addEventListener("scroll",()=>{tl=window.scrollY,el=window.scrollX}),Ma.observe(Rt));function A_(e){return e.reduce((n,s)=>[...n,...Array.from(s.addedNodes),...Array.from(s.removedNodes)],[]).every(n=>n.nodeName==="#comment")?!1:e.reduce((n,s)=>{if(n===!1)return!1;if(s.target instanceof Element){if(mi(s.target),!n.has(s.target)){n.add(s.target);for(let i=0;i<s.target.children.length;i++){const o=s.target.children.item(i);if(o){if(pn in o)return!1;mi(s.target,o),n.add(o)}}}if(s.removedNodes.length)for(let i=0;i<s.removedNodes.length;i++){const o=s.removedNodes[i];if(pn in o)return!1;o instanceof Element&&(n.add(o),mi(s.target,o),Ir.set(o,[s.previousSibling,s.nextSibling]))}}return n},new Set)}function mi(e,t){!t&&!(yt in e)?Object.defineProperty(e,yt,{value:e}):t&&!(yt in t)&&Object.defineProperty(t,yt,{value:e})}function C_(e){var t;const r=e.isConnected,n=He.has(e);r&&Ir.has(e)&&Ir.delete(e),ir.has(e)&&((t=ir.get(e))===null||t===void 0||t.cancel()),Ss in e?Fa(e):n&&r?P_(e):n&&!r?I_(e):Fa(e)}function at(e){return Number(e.replace(/[^0-9.\-]/g,""))}function T_(e){let t=e.parentElement;for(;t;){if(t.scrollLeft||t.scrollTop)return{x:t.scrollLeft,y:t.scrollTop};t=t.parentElement}return{x:0,y:0}}function kr(e){const t=e.getBoundingClientRect(),{x:r,y:n}=T_(e);return{top:t.top+n,left:t.left+r,width:t.width,height:t.height}}function Of(e,t,r){let n=t.width,s=t.height,i=r.width,o=r.height;const l=getComputedStyle(e);if(l.getPropertyValue("box-sizing")==="content-box"){const u=at(l.paddingTop)+at(l.paddingBottom)+at(l.borderTopWidth)+at(l.borderBottomWidth),c=at(l.paddingLeft)+at(l.paddingRight)+at(l.borderRightWidth)+at(l.borderLeftWidth);n-=c,i-=c,s-=u,o-=u}return[n,i,s,o].map(Math.round)}function Ks(e){return yt in e&&ws.has(e[yt])?ws.get(e[yt]):{duration:250,easing:"ease-in-out"}}function Pf(e){if(yt in e)return e[yt]}function rl(e){const t=Pf(e);return t?b_.has(t):!1}function O_(e,...t){t.forEach(r=>r(e,ws.has(e)));for(let r=0;r<e.children.length;r++){const n=e.children.item(r);n&&t.forEach(s=>s(n,ws.has(n)))}}function nl(e){return Array.isArray(e)?e:[e]}function sl(e){return typeof e=="function"}function P_(e){const t=He.get(e),r=kr(e);if(!rl(e))return He.set(e,r);let n;if(!t)return;const s=Ks(e);if(typeof s!="function"){const i=t.left-r.left,o=t.top-r.top,[l,a,u,c]=Of(e,t,r),f={transform:`translate(${i}px, ${o}px)`},d={transform:"translate(0, 0)"};l!==a&&(f.width=`${l}px`,d.width=`${a}px`),u!==c&&(f.height=`${u}px`,d.height=`${c}px`),n=e.animate([f,d],{duration:s.duration,easing:s.easing})}else{const[i]=nl(s(e,"remain",t,r));n=new Animation(i),n.play()}ir.set(e,n),He.set(e,r),n.addEventListener("finish",Sn.bind(null,e))}function Fa(e){Ss in e&&delete e[Ss];const t=kr(e);He.set(e,t);const r=Ks(e);if(!rl(e))return;let n;if(typeof r!="function")n=e.animate([{transform:"scale(.98)",opacity:0},{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:r.duration*1.5,easing:"ease-in"});else{const[s]=nl(r(e,"add",t));n=new Animation(s),n.play()}ir.set(e,n),n.addEventListener("finish",Sn.bind(null,e))}function ja(e,t){var r;e.remove(),He.delete(e),Ir.delete(e),ir.delete(e),(r=Yi.get(e))===null||r===void 0||r.disconnect(),setTimeout(()=>{if(pn in e&&delete e[pn],Object.defineProperty(e,Ss,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(const n in t)e.style[n]=""},0)}function I_(e){var t;if(!Ir.has(e)||!He.has(e))return;const[r,n]=Ir.get(e);Object.defineProperty(e,pn,{value:!0,configurable:!0});const s=window.scrollX,i=window.scrollY;if(n&&n.parentNode&&n.parentNode instanceof Element?n.parentNode.insertBefore(e,n):r&&r.parentNode?r.parentNode.appendChild(e):(t=Pf(e))===null||t===void 0||t.appendChild(e),!rl(e))return ja(e);const[o,l,a,u]=M_(e),c=Ks(e),f=He.get(e);(s!==el||i!==tl)&&k_(e,s,i,c);let d,m={position:"absolute",top:`${o}px`,left:`${l}px`,width:`${a}px`,height:`${u}px`,margin:"0",pointerEvents:"none",transformOrigin:"center",zIndex:"100"};if(!sl(c))Object.assign(e.style,m),d=e.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}],{duration:c.duration,easing:"ease-out"});else{const[v,p]=nl(c(e,"remove",f));(p==null?void 0:p.styleReset)!==!1&&(m=(p==null?void 0:p.styleReset)||m,Object.assign(e.style,m)),d=new Animation(v),d.play()}ir.set(e,d),d.addEventListener("finish",ja.bind(null,e,m))}function k_(e,t,r,n){const s=el-t,i=tl-r,o=document.documentElement.style.scrollBehavior;if(getComputedStyle(Rt).scrollBehavior==="smooth"&&(document.documentElement.style.scrollBehavior="auto"),window.scrollTo(window.scrollX+s,window.scrollY+i),!e.parentElement)return;const a=e.parentElement;let u=a.clientHeight,c=a.clientWidth;const f=performance.now();function d(){requestAnimationFrame(()=>{if(!sl(n)){const m=u-a.clientHeight,v=c-a.clientWidth;f+n.duration>performance.now()?(window.scrollTo({left:window.scrollX-v,top:window.scrollY-m}),u=a.clientHeight,c=a.clientWidth,d()):document.documentElement.style.scrollBehavior=o}})}d()}function M_(e){const t=He.get(e),[r,,n]=Of(e,t,kr(e));let s=e.parentElement;for(;s&&(getComputedStyle(s).position==="static"||s instanceof HTMLBodyElement);)s=s.parentElement;s||(s=document.body);const i=getComputedStyle(s),o=He.get(s)||kr(s),l=Math.round(t.top-o.top)-at(i.borderTopWidth),a=Math.round(t.left-o.left)-at(i.borderLeftWidth);return[l,a,r,n]}var F_=W("wrapper",()=>({$el:"div",attrs:{"data-tab-style":"$tabStyle","data-hide-labels":"$hideProgressLabels"}})),Na=W("badge",()=>({$el:"span",attrs:{role:"presentation"}})),j_=W("stepActions",()=>({$el:"div"})),N_=W("stepInner","div"),R_=W("stepNext",()=>({$el:"div",if:"$isLastStep === false || $stepIndex === 0",children:[{$cmp:"FormKit",bind:"$nextAttrs",props:{type:"button",label:{if:"$nextLabel",then:"$nextLabel",else:"$ui.next.value"},"data-next":"$isLastStep === false",onClick:"$handlers.next"}}]})),L_=W("stepOuter",()=>({$el:"div",attrs:{key:"$id","data-type":"step","data-disabled":"$disabled || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined",id:"$id",role:"tabpanel","aria-labelledby":'$node.parent.props.id + "_tab_" + $stepIndex',class:"$classes.step",hidden:"$isActiveStep === false || undefined"}})),D_=W("stepPrevious",()=>({$el:"div",if:"$isFirstStep === false",children:[{$cmp:"FormKit",bind:"$previousAttrs",props:{type:"button",label:{if:"$previousLabel",then:"$previousLabel",else:"$ui.prev.value"},"data-prev":"$isFirstStep === false",onClick:"$handlers.previous"}}]})),H_=W("steps",()=>({$el:"div"})),B_=(e,t)=>W(`${e}Icon`,()=>{const r=`_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;return{if:`$step.${e}Icon && $step.${r}`,then:{$el:`${t||"span"}`,attrs:{class:`$classes.${e}Icon + " formkit-icon"`,innerHTML:`$step.${r}`,role:"presentation",onClick:`$handlers.iconClick(${e})`}},else:{if:`$${e}Icon && $${r}`,then:{$el:`${t||"span"}`,attrs:{class:`$classes.${e}Icon + " formkit-icon"`,innerHTML:`$${r}`,role:"presentation",onClick:`$handlers.iconClick(${e})`}}}}})(),V_=W("tab",()=>({$el:"button",for:["step","index","$fns.getSteps()"],attrs:{key:"$step.id",type:"button",onClick:"$step.makeActive","data-active":"$step.isActiveStep","data-valid":"$step.isValid","data-visited":"$step.hasBeenVisited",role:"tab",id:'$id + "_tab_" + $index',"aria-selected":"$step.isActiveStep || false","aria-controls":"$step.id",tabindex:{if:"$step.isActiveStep",then:"0",else:"-1"}}})),W_=W("tabLabel",()=>({$el:"span"})),U_=W("tabs",()=>({$el:"div",attrs:{role:"tablist"}})),q_=W("multiStepOuter",()=>({$el:"div",attrs:{key:"$id",id:"$id",class:"$classes.outer","data-prerender":"$fns.preRenderSteps()","data-family":"$family || undefined","data-type":"$type","data-multiple":'$attrs.multiple || ($type != "select" && $options != undefined) || undefined',"data-disabled":"$disabled || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined"}})),K_={schema:q_(F_(U_(V_(Ye('$tabStyle === "tab" || ($tabStyle === "progress" && $hideProgressLabels === false)',W_("$step.stepName")),Ye("($step.totalErrorCount > 0) && $step.showStepErrors",Na("$step.totalErrorCount")),Ye("$step.isValid && $step.hasBeenVisited",Na(B_("validStep"))))),H_("$slots.default"))),type:"group",family:"multi-step",props:["allowIncomplete","hideProgressLabels","tabStyle","beforeStepChange","validStepIcon"],features:[Zt("validStep","check"),wn]},z_={schema:L_(N_("$slots.default"),j_(D_(),R_())),type:"group",family:"",props:["previousLabel","nextLabel","beforeStepChange","previousAttrs","nextAttrs","validStepIcon"],features:[$r("next"),$r("prev"),wn]},If=typeof window<"u",kf=e=>e&&e.replace(/([A-Z])/g,t=>` ${t}`).replace(/^./,t=>t.toUpperCase()).trim();function Ra(e,t){if(!If||!t)return t;const r=[...t];return r.sort((n,s)=>{var l,a;const i=(l=e.props.__root)==null?void 0:l.getElementById(n.id),o=(a=e.props.__root)==null?void 0:a.getElementById(s.id);return!i||!o?0:i.compareDocumentPosition(o)===2?1:-1}),r.map(n=>{n.ordered=!0}),r}function gi(e){e&&e.forEach((t,r)=>{t.isFirstStep=r===0,t.isLastStep=r===e.length-1,t.stepIndex=r,t.steps=e})}function Y_(e){if(e.showStepErrors)return parseInt(e.blockingCount)+parseInt(e.errorCount)>0}async function Mf(e,t){var u,c,f;if(e===t)return!0;const{allowIncomplete:r}=((u=e.node.parent)==null?void 0:u.props)||{},n=e.node.parent,s=n==null?void 0:n.props.steps.indexOf(e),i=n==null?void 0:n.props.steps.indexOf(t),o=Gi(e);if(e.showStepErrors=!0,i>=s&&!o&&!r)return!1;const l=i-s;for(let d=0;d<l;d++){const m=n==null?void 0:n.props.steps[s+d];if(!(r||((c=m.state)==null?void 0:c.valid)))return!1}const a=e.node.props.beforeStepChange||((f=e.node.parent)==null?void 0:f.props.beforeStepChange);if(a&&typeof a=="function"){n&&(n==null||n.store.set(Fe({key:"loading",value:!0,visible:!1})),n.props.disabled=!0,e.disabled=!0);const d=await a({currentStep:e,targetStep:t,delta:i-s});if(n&&(n==null||n.store.remove("loading"),n.props.disabled=!1,e.disabled=!1),typeof d=="boolean"&&!d)return!1}return!0}async function Ln(e,t){if(t&&t.preventDefault(),e&&e.node.name&&e.node.parent){const r=e.node.parent.props.steps.find(s=>{var i;return s.node.name===((i=e.node.parent)==null?void 0:i.props.activeStep)});await Mf(r,e)&&e.node.parent.context&&(e.node.parent.props.activeStep=e.node.name)}}async function mr(e,t){if(t&&t.node.name&&t.node.parent){const r=t.node.parent.props.steps,n=t.stepIndex,s=r[n+e];if(!s)return;const i=await Mf(t,s);s&&i&&(t.node.parent.props.activeStep=s.node.name)}}function Gi(e){var t,r;return e.node.walk(n=>{n.store.set(Fe({key:"submitted",value:!0,visible:!1}))}),((t=e.node.context)==null?void 0:t.state.valid)||((r=e.node.parent)==null?void 0:r.props.allowIncomplete)}function G_(e,t){t instanceof HTMLElement&&t.addEventListener("keydown",r=>{var n;if(r.target instanceof HTMLButtonElement&&r.key==="Tab"&&"data-next"in((n=r.target)==null?void 0:n.attributes)&&!r.shiftKey){r.preventDefault();const s=e.children.find(i=>!Go(i)&&i.name===e.props.activeStep);s&&s.context&&mr(1,s.context)}})}function J_(e){return!e||!e.length?[]:(e[0].type==Symbol.for("v-fgt")&&e[0].children?e[0].children:e).map((n,s)=>{var i,o,l;return{__isPlaceholder:!0,stepName:((i=n.props)==null?void 0:i.label)||kf((o=n.props)==null?void 0:o.name),isFirstStep:s===0,isLastStep:s===e.length-1,isActiveStep:s===0,node:{name:(l=n.props)==null?void 0:l.name}}})}function X_(e){return()=>{if(!e.context||e.props.steps)return;let t=[];e.context.slots&&e.context.slots.default&&(t=e.context.slots.default()),e.props.steps=e.props.steps||J_(t),e.context.stepCount=e.props.steps.length}}function s1(e){let t=!0;const r=n=>{var s,i;if(n.props.type==="multi-step"){if(!n.context)return;t=!0,n.addProps(["steps","tabs","activeStep"]),n.context.fns.preRenderSteps=X_(n),n.context.fns.getStepCount=()=>{if(n.context)return n.context.stepCount},n.context.fns.getSteps=()=>{if(n.context)return n.context.steps},n.props.allowIncomplete=typeof n.props.allowIncomplete=="boolean"?n.props.allowIncomplete:typeof(e==null?void 0:e.allowIncomplete)=="boolean"?e==null?void 0:e.allowIncomplete:!0,n.props.hideProgressLabels=typeof n.props.hideProgressLabels=="boolean"?n.props.hideProgressLabels:(e==null?void 0:e.hideProgressLabels)||!1,n.props.tabStyle=n.props.tabStyle||(e==null?void 0:e.tabStyle)||"tab",n.context.handlers.triggerStepValidations=Gi,n.context.handlers.showStepErrors=Y_,n.on("created",()=>{n.context&&(n.extend("next",{get:o=>()=>{var l;mr(1,(l=o==null?void 0:o.props)==null?void 0:l.steps.find(a=>a.isActiveStep))},set:!1}),n.extend("previous",{get:o=>()=>{var l;mr(-1,(l=o==null?void 0:o.props)==null?void 0:l.steps.find(a=>a.isActiveStep))},set:!1}),n.extend("goTo",{get:o=>l=>{if(typeof l=="number"){const a=o.props.steps[l];Ln(a)}else if(typeof l=="string"){const a=o.props.steps.find(u=>u.node.name===l);Ln(a)}},set:!1}),ta(`${n.props.id}`,o=>{G_(n,o)},n.props.__root))}),n.on("child",({payload:o})=>{n.props.steps&&n.props.steps.length&&(n.props.steps=n.props.steps.filter(l=>!l.__isPlaceholder)),n.props.steps=Array.isArray(n.props.steps)&&n.props.steps.length>0?[...n.props.steps,o.context]:[o.context],n.props.steps=Ra(n,n.props.steps),gi(n.props.steps),o.props.stepName=o.props.label||kf(o.name),o.props.errorCount=0,o.props.blockingCount=0,o.props.isActiveStep=t,t=!1,n.props.activeStep=n.props.activeStep?n.props.activeStep:n.props.steps[0]?n.props.steps[0].node.name:""}),n.on("prop:activeStep",({payload:o})=>{n.children.forEach(l=>{var a;if(!Go(l)&&(l.props.isActiveStep=l.name===o,If&&l.name===o)){const u=(a=n.props.__root)==null?void 0:a.querySelector(`[aria-controls="${l.props.id}"]`);u instanceof HTMLButtonElement&&u.focus()}})}),n.on("childRemoved",({payload:o})=>{let l=-1;if(o.props.ordered=!1,n.props.steps=n.props.steps.filter((a,u)=>a.node.name!==o.name?!0:(l=u,!1)),gi(n.props.steps),n.props.activeStep===o.name){const a=l>0?l-1:0;n.props.activeStep=n.props.steps[a]?n.props.steps[a].node.name:""}})}else if(n.props.type==="step"&&((s=n.parent)==null?void 0:s.props.type)==="multi-step"){let o=function(a){a.props.totalErrorCount=a.props.errorCount+a.props.blockingCount};if(!n.context||!n.parent||!n.parent.context)return;n.addProps(["isActiveStep","isFirstStep","isLastStep","stepName","errorCount","blockingCount","totalErrorCount","showStepErrors","isValid","hasBeenVisited","ordered"]);const l=n.parent;n.on("created",()=>{!n.context||!l.context||ta(`${n.props.id}`,()=>{l.props.steps=Ra(n,l.props.steps),gi(l.props.steps)},n.props.__root)}),n.context&&l.context&&(l.context.handlers.setActiveStep=a=>Ln.bind(null,a),n.context.handlers.incrementStep=a=>()=>mr(a,n.context),n.context.makeActive=()=>{Ln(n.context)},n.context.handlers.next=()=>mr(1,n.context),n.context.handlers.previous=()=>mr(-1,n.context)),n.on("count:errors",({payload:a})=>{n.props.errorCount=a}),n.on("count:blocking",({payload:a})=>{n.props.blockingCount=a}),n.on("prop:errorCount",()=>o(n)),n.on("prop:blockingCount",()=>o(n)),n.on("prop:totalErrorCount",()=>{n.props.isValid=n.props.totalErrorCount<=0}),n.on("message-added",({payload:a})=>{a.key==="submitted"&&(o(n),n.context&&(Gi(n.context),n.props.showStepErrors=!0))}),n.on("prop:isActiveStep",()=>{!n.props.hasBeenVisited&&n.props.isActiveStep&&(n.props.hasBeenVisited=!0)})}else((i=n.parent)==null?void 0:i.props.type)==="multi-step"&&console.warn('Invalid FormKit input location. <FormKit type="multi-step"> should only have <FormKit type="step"> inputs as immediate children. Failure to wrap child inputs in <FormKit type="step"> can lead to undesired behaviors.')};return r.library=n=>{switch(n.props.type){case"multi-step":return n.define(K_);case"step":return(!n.parent||n.parent.props.type!=="multi-step")&&console.warn('Invalid use of <FormKit type="step">. <FormKit type="step"> must be an immediate child of a <FormKit type="multi-step"> component.'),n.define(z_)}},r}var i1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 27"><polygon fill="currentColor" points="26.99 0 10.13 17.17 4.69 11.63 0 16.41 10.4 27 15.05 22.27 15.09 22.31 32 5.1 26.99 0"/></svg>',o1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle fill="currentColor" cx="16" cy="16" r="16"/></svg>',l1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 16"><path d="M10,12.5c-.13,0-.26-.05-.35-.15L1.65,4.35c-.2-.2-.2-.51,0-.71,.2-.2,.51-.2,.71,0L10.35,11.65c.2,.2,.2,.51,0,.71-.1,.1-.23,.15-.35,.15Z" fill="currentColor"/><path d="M2,12.5c-.13,0-.26-.05-.35-.15-.2-.2-.2-.51,0-.71L9.65,3.65c.2-.2,.51-.2,.71,0,.2,.2,.2,.51,0,.71L2.35,12.35c-.1,.1-.23,.15-.35,.15Z" fill="currentColor"/></svg>',a1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><path fill="currentColor" d="M7.56,13.88c-.28,0-.5-.22-.5-.5s.22-.5,.5-.5c2.96,0,5.38-2.41,5.38-5.38S10.53,2.12,7.56,2.12c-.28,0-.5-.22-.5-.5s.22-.5,.5-.5c3.52,0,6.38,2.86,6.38,6.38s-2.86,6.38-6.38,6.38Z"/></svg>',u1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><path fill="currentColor" d="M11.41,8.41h0l1.14-.93,1.14-.93c.48-.39,.37-.74-.25-.77l-1.58-.09-2.5-.14-.41-1.05s0,0,0,0l-.53-1.38-.53-1.38c-.22-.58-.59-.58-.81,0l-1.07,2.75s0,0,0,0l-.41,1.05-2.5,.14-1.58,.09c-.62,.03-.73,.38-.25,.77l1.14,.93,1.14,.93h0l.87,.71-.57,2.15-.47,1.79c-.16,.6,.14,.81,.66,.48l2.48-1.6h0s.94-.61,.94-.61l.94,.61h0s1.24,.8,1.24,.8l1.24,.8c.52,.33,.82,.12,.66-.48l-.47-1.79-.57-2.15,.87-.71Z"/></svg>',c1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 7"><path d="M8,6.5c-.13,0-.26-.05-.35-.15L3.15,1.85c-.2-.2-.2-.51,0-.71,.2-.2,.51-.2,.71,0l4.15,4.15L12.15,1.15c.2-.2,.51-.2,.71,0,.2,.2,.2,.51,0,.71l-4.5,4.5c-.1,.1-.23,.15-.35,.15Z" fill="currentColor"/></svg>';/**
* (c) Iconify
*
* For the full copyright and license information, please view the license.txt
* files at https://github.com/iconify/iconify
*
* Licensed under MIT.
*
* @license MIT
* @version 2.1.0
*/const Ff=Object.freeze({left:0,top:0,width:16,height:16}),xs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),xn=Object.freeze({...Ff,...xs}),Ji=Object.freeze({...xn,body:"",hidden:!1}),Z_=Object.freeze({width:null,height:null}),jf=Object.freeze({...Z_,...xs});function Q_(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(s){for(;s<0;)s+=4;return s%4}if(r===""){const s=parseInt(e);return isNaN(s)?0:n(s)}else if(r!==e){let s=0;switch(r){case"%":s=25;break;case"deg":s=90}if(s){let i=parseFloat(e.slice(0,e.length-r.length));return isNaN(i)?0:(i=i/s,i%1===0?n(i):0)}}return t}const e0=/[\s,]+/;function t0(e,t){t.split(e0).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Nf={...jf,preserveAspectRatio:""};function La(e){const t={...Nf},r=(n,s)=>e.getAttribute(n)||s;return t.width=r("width",null),t.height=r("height",null),t.rotate=Q_(r("rotate","")),t0(t,r("flip","")),t.preserveAspectRatio=r("preserveAspectRatio",r("preserveaspectratio","")),t}function r0(e,t){for(const r in Nf)if(e[r]!==t[r])return!0;return!1}const nn=/^[a-z0-9]+(-[a-z0-9]+)*$/,En=(e,t,r,n="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;n=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const l=s.pop(),a=s.pop(),u={provider:s.length>0?s[0]:n,prefix:a,name:l};return t&&!Qn(u)?null:u}const i=s[0],o=i.split("-");if(o.length>1){const l={provider:n,prefix:o.shift(),name:o.join("-")};return t&&!Qn(l)?null:l}if(r&&n===""){const l={provider:n,prefix:"",name:i};return t&&!Qn(l,r)?null:l}return null},Qn=(e,t)=>e?!!((e.provider===""||e.provider.match(nn))&&(t&&e.prefix===""||e.prefix.match(nn))&&e.name.match(nn)):!1;function n0(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function Da(e,t){const r=n0(e,t);for(const n in Ji)n in xs?n in e&&!(n in r)&&(r[n]=xs[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function s0(e,t){const r=e.icons,n=e.aliases||Object.create(null),s=Object.create(null);function i(o){if(r[o])return s[o]=[];if(!(o in s)){s[o]=null;const l=n[o]&&n[o].parent,a=l&&i(l);a&&(s[o]=[l].concat(a))}return s[o]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(i),s}function i0(e,t,r){const n=e.icons,s=e.aliases||Object.create(null);let i={};function o(l){i=Da(n[l]||s[l],i)}return o(t),r.forEach(o),Da(e,i)}function Rf(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),r.push(s)});const n=s0(e);for(const s in n){const i=n[s];i&&(t(s,i0(e,s,i)),r.push(s))}return r}const o0={provider:"",aliases:{},not_found:{},...Ff};function vi(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function Lf(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!vi(e,o0))return null;const r=t.icons;for(const s in r){const i=r[s];if(!s.match(nn)||typeof i.body!="string"||!vi(i,Ji))return null}const n=t.aliases||Object.create(null);for(const s in n){const i=n[s],o=i.parent;if(!s.match(nn)||typeof o!="string"||!r[o]&&!n[o]||!vi(i,Ji))return null}return t}const Es=Object.create(null);function l0(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Lt(e,t){const r=Es[e]||(Es[e]=Object.create(null));return r[t]||(r[t]=l0(e,t))}function il(e,t){return Lf(t)?Rf(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function a0(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}function u0(e,t){let r=[];return(typeof e=="string"?[e]:Object.keys(Es)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(Es[s]||{})).forEach(o=>{const l=Lt(s,o);r=r.concat(Object.keys(l.icons).map(a=>(s!==""?"@"+s+":":"")+o+":"+a))})}),r}let dn=!1;function Df(e){return typeof e=="boolean"&&(dn=e),dn}function hn(e){const t=typeof e=="string"?En(e,!0,dn):e;if(t){const r=Lt(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function Hf(e,t){const r=En(e,!0,dn);if(!r)return!1;const n=Lt(r.provider,r.prefix);return a0(n,r.name,t)}function Ha(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),dn&&!t&&!e.prefix){let s=!1;return Lf(e)&&(e.prefix="",Rf(e,(i,o)=>{o&&Hf(i,o)&&(s=!0)})),s}const r=e.prefix;if(!Qn({provider:t,prefix:r,name:"a"}))return!1;const n=Lt(t,r);return!!il(n,e)}function Ba(e){return!!hn(e)}function c0(e){const t=hn(e);return t?{...xn,...t}:null}function f0(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((s,i)=>s.provider!==i.provider?s.provider.localeCompare(i.provider):s.prefix!==i.prefix?s.prefix.localeCompare(i.prefix):s.name.localeCompare(i.name));let n={provider:"",prefix:"",name:""};return e.forEach(s=>{if(n.name===s.name&&n.prefix===s.prefix&&n.provider===s.provider)return;n=s;const i=s.provider,o=s.prefix,l=s.name,a=r[i]||(r[i]=Object.create(null)),u=a[o]||(a[o]=Lt(i,o));let c;l in u.icons?c=t.loaded:o===""||u.missing.has(l)?c=t.missing:c=t.pending;const f={provider:i,prefix:o,name:l};c.push(f)}),t}function Bf(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(s=>s.id!==t))})}function p0(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,s=e.prefix;t.forEach(i=>{const o=i.icons,l=o.pending.length;o.pending=o.pending.filter(a=>{if(a.prefix!==s)return!0;const u=a.name;if(e.icons[u])o.loaded.push({provider:n,prefix:s,name:u});else if(e.missing.has(u))o.missing.push({provider:n,prefix:s,name:u});else return r=!0,!0;return!1}),o.pending.length!==l&&(r||Bf([e],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}let d0=0;function h0(e,t,r){const n=d0++,s=Bf.bind(null,r,n);if(!t.pending.length)return s;const i={id:n,icons:t,callback:e,abort:s};return r.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),s}const Xi=Object.create(null);function Va(e,t){Xi[e]=t}function Zi(e){return Xi[e]||Xi[""]}function m0(e,t=!0,r=!1){const n=[];return e.forEach(s=>{const i=typeof s=="string"?En(s,t,r):s;i&&n.push(i)}),n}var g0={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function v0(e,t,r,n){const s=e.resources.length,i=e.random?Math.floor(Math.random()*s):e.index;let o;if(e.random){let g=e.resources.slice(0);for(o=[];g.length>1;){const _=Math.floor(Math.random()*g.length);o.push(g[_]),g=g.slice(0,_).concat(g.slice(_+1))}o=o.concat(g)}else o=e.resources.slice(i).concat(e.resources.slice(0,i));const l=Date.now();let a="pending",u=0,c,f=null,d=[],m=[];typeof n=="function"&&m.push(n);function v(){f&&(clearTimeout(f),f=null)}function p(){a==="pending"&&(a="aborted"),v(),d.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),d=[]}function b(g,_){_&&(m=[]),typeof g=="function"&&m.push(g)}function $(){return{startTime:l,payload:t,status:a,queriesSent:u,queriesPending:d.length,subscribe:b,abort:p}}function E(){a="failed",m.forEach(g=>{g(void 0,c)})}function A(){d.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),d=[]}function w(g,_,k){const B=_!=="success";switch(d=d.filter(I=>I!==g),a){case"pending":break;case"failed":if(B||!e.dataAfterTimeout)return;break;default:return}if(_==="abort"){c=k,E();return}if(B){c=k,d.length||(o.length?O():E());return}if(v(),A(),!e.random){const I=e.resources.indexOf(g.resource);I!==-1&&I!==e.index&&(e.index=I)}a="completed",m.forEach(I=>{I(k)})}function O(){if(a!=="pending")return;v();const g=o.shift();if(g===void 0){if(d.length){f=setTimeout(()=>{v(),a==="pending"&&(A(),E())},e.timeout);return}E();return}const _={status:"pending",resource:g,callback:(k,B)=>{w(_,k,B)}};d.push(_),u++,f=setTimeout(O,e.rotate),r(g,t,_.callback)}return setTimeout(O),$}function Vf(e){const t={...g0,...e};let r=[];function n(){r=r.filter(l=>l().status==="pending")}function s(l,a,u){const c=v0(t,l,a,(f,d)=>{n(),u&&u(f,d)});return r.push(c),c}function i(l){return r.find(a=>l(a))||null}return{query:s,find:i,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:n}}function ol(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const zs=Object.create(null),Br=["https://api.simplesvg.com","https://api.unisvg.com"],es=[];for(;Br.length>0;)Br.length===1||Math.random()>.5?es.push(Br.shift()):es.push(Br.pop());zs[""]=ol({resources:["https://api.iconify.design"].concat(es)});function Wa(e,t){const r=ol(t);return r===null?!1:(zs[e]=r,!0)}function Ys(e){return zs[e]}function y0(){return Object.keys(zs)}function Ua(){}const yi=Object.create(null);function b0(e){if(!yi[e]){const t=Ys(e);if(!t)return;const r=Vf(t),n={config:t,redundancy:r};yi[e]=n}return yi[e]}function Wf(e,t,r){let n,s;if(typeof e=="string"){const i=Zi(e);if(!i)return r(void 0,424),Ua;s=i.send;const o=b0(e);o&&(n=o.redundancy)}else{const i=ol(e);if(i){n=Vf(i);const o=e.resources?e.resources[0]:"",l=Zi(o);l&&(s=l.send)}}return!n||!s?(r(void 0,424),Ua):n.query(t,s,r)().abort}const qa="iconify2",mn="iconify",Uf=mn+"-count",Ka=mn+"-version",qf=36e5,_0=168,w0=50;function Qi(e,t){try{return e.getItem(t)}catch{}}function ll(e,t,r){try{return e.setItem(t,r),!0}catch{}}function za(e,t){try{e.removeItem(t)}catch{}}function eo(e,t){return ll(e,Uf,t.toString())}function to(e){return parseInt(Qi(e,Uf))||0}const Qt={local:!0,session:!0},Kf={local:new Set,session:new Set};let al=!1;function $0(e){al=e}let Dn=typeof window>"u"?{}:window;function zf(e){const t=e+"Storage";try{if(Dn&&Dn[t]&&typeof Dn[t].length=="number")return Dn[t]}catch{}Qt[e]=!1}function Yf(e,t){const r=zf(e);if(!r)return;const n=Qi(r,Ka);if(n!==qa){if(n){const l=to(r);for(let a=0;a<l;a++)za(r,mn+a.toString())}ll(r,Ka,qa),eo(r,0);return}const s=Math.floor(Date.now()/qf)-_0,i=l=>{const a=mn+l.toString(),u=Qi(r,a);if(typeof u=="string"){try{const c=JSON.parse(u);if(typeof c=="object"&&typeof c.cached=="number"&&c.cached>s&&typeof c.provider=="string"&&typeof c.data=="object"&&typeof c.data.prefix=="string"&&t(c,l))return!0}catch{}za(r,a)}};let o=to(r);for(let l=o-1;l>=0;l--)i(l)||(l===o-1?(o--,eo(r,o)):Kf[e].add(l))}function Gf(){if(!al){$0(!0);for(const e in Qt)Yf(e,t=>{const r=t.data,n=t.provider,s=r.prefix,i=Lt(n,s);if(!il(i,r).length)return!1;const o=r.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,o):o,!0})}}function S0(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Qt)Yf(n,s=>{const i=s.data;return s.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function x0(e,t){al||Gf();function r(n){let s;if(!Qt[n]||!(s=zf(n)))return;const i=Kf[n];let o;if(i.size)i.delete(o=Array.from(i).shift());else if(o=to(s),o>=w0||!eo(s,o+1))return;const l={cached:Math.floor(Date.now()/qf),provider:e.provider,data:t};return ll(s,mn+o.toString(),JSON.stringify(l))}t.lastModified&&!S0(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Ya(){}function E0(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,p0(e)}))}function A0(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,s=e.iconsToLoad;delete e.iconsToLoad;let i;if(!s||!(i=Zi(r)))return;i.prepare(r,n,s).forEach(l=>{Wf(r,l,a=>{if(typeof a!="object")l.icons.forEach(u=>{e.missing.add(u)});else try{const u=il(e,a);if(!u.length)return;const c=e.pendingIcons;c&&u.forEach(f=>{c.delete(f)}),x0(e,a)}catch(u){console.error(u)}E0(e)})})}))}const ul=(e,t)=>{const r=m0(e,!0,Df()),n=f0(r);if(!n.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(n.loaded,n.missing,n.pending,Ya)}),()=>{a=!1}}const s=Object.create(null),i=[];let o,l;return n.pending.forEach(a=>{const{provider:u,prefix:c}=a;if(c===l&&u===o)return;o=u,l=c,i.push(Lt(u,c));const f=s[u]||(s[u]=Object.create(null));f[c]||(f[c]=[])}),n.pending.forEach(a=>{const{provider:u,prefix:c,name:f}=a,d=Lt(u,c),m=d.pendingIcons||(d.pendingIcons=new Set);m.has(f)||(m.add(f),s[u][c].push(f))}),i.forEach(a=>{const{provider:u,prefix:c}=a;s[u][c].length&&A0(a,s[u][c])}),t?h0(t,n,i):Ya},C0=e=>new Promise((t,r)=>{const n=typeof e=="string"?En(e,!0):e;if(!n){r(e);return}ul([n||e],s=>{if(s.length&&n){const i=hn(n);if(i){t({...xn,...i});return}}r(e)})});function T0(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function O0(e,t){const r=typeof e=="string"?En(e,!0,!0):null;if(!r){const i=T0(e);return{value:e,data:i}}const n=hn(r);if(n!==void 0||!r.prefix)return{value:e,name:r,data:n};const s=ul([r],()=>t(e,r,hn(r)));return{value:e,name:r,loading:s}}let Jf=!1;try{Jf=navigator.vendor.indexOf("Apple")===0}catch{}function P0(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(Jf||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const I0=/(-?[0-9.]*[0-9]+[0-9.]*)/g,k0=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ro(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(I0);if(n===null||!n.length)return e;const s=[];let i=n.shift(),o=k0.test(i);for(;;){if(o){const l=parseFloat(i);isNaN(l)?s.push(i):s.push(Math.ceil(l*t*r)/r)}else s.push(i);if(i=n.shift(),i===void 0)return s.join("");o=!o}}function M0(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const s=e.indexOf(">",n),i=e.indexOf("</"+t);if(s===-1||i===-1)break;const o=e.indexOf(">",i);if(o===-1)break;r+=e.slice(s+1,i).trim(),e=e.slice(0,n).trim()+e.slice(o+1)}return{defs:r,content:e}}function F0(e,t){return e?"<defs>"+e+"</defs>"+t:t}function j0(e,t,r){const n=M0(e);return F0(n.defs,t+n.content+r)}const N0=e=>e==="unset"||e==="undefined"||e==="none";function Xf(e,t){const r={...xn,...e},n={...jf,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,n].forEach(p=>{const b=[],$=p.hFlip,E=p.vFlip;let A=p.rotate;$?E?A+=2:(b.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),b.push("scale(-1 1)"),s.top=s.left=0):E&&(b.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),b.push("scale(1 -1)"),s.top=s.left=0);let w;switch(A<0&&(A-=Math.floor(A/4)*4),A=A%4,A){case 1:w=s.height/2+s.top,b.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:b.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:w=s.width/2+s.left,b.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}A%2===1&&(s.left!==s.top&&(w=s.left,s.left=s.top,s.top=w),s.width!==s.height&&(w=s.width,s.width=s.height,s.height=w)),b.length&&(i=j0(i,'<g transform="'+b.join(" ")+'">',"</g>"))});const o=n.width,l=n.height,a=s.width,u=s.height;let c,f;o===null?(f=l===null?"1em":l==="auto"?u:l,c=ro(f,a/u)):(c=o==="auto"?a:o,f=l===null?ro(c,u/a):l==="auto"?u:l);const d={},m=(p,b)=>{N0(b)||(d[p]=b.toString())};m("width",c),m("height",f);const v=[s.left,s.top,a,u];return d.viewBox=v.join(" "),{attributes:d,viewBox:v,body:i}}function cl(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function R0(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function L0(e){return"data:image/svg+xml,"+R0(e)}function Zf(e){return'url("'+L0(e)+'")'}const D0=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let As=D0();function H0(e){As=e}function B0(){return As}function V0(e,t){const r=Ys(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let s=0;r.resources.forEach(o=>{s=Math.max(s,o.length)});const i=t+".json?icons=";n=r.maxURL-s-r.path.length-i.length}return n}function W0(e){return e===404}const U0=(e,t,r)=>{const n=[],s=V0(e,t),i="icons";let o={type:i,provider:e,prefix:t,icons:[]},l=0;return r.forEach((a,u)=>{l+=a.length+1,l>=s&&u>0&&(n.push(o),o={type:i,provider:e,prefix:t,icons:[]},l=a.length),o.icons.push(a)}),n.push(o),n};function q0(e){if(typeof e=="string"){const t=Ys(e);if(t)return t.path}return"/"}const K0=(e,t,r)=>{if(!As){r("abort",424);return}let n=q0(t.provider);switch(t.type){case"icons":{const i=t.prefix,l=t.icons.join(","),a=new URLSearchParams({icons:l});n+=i+".json?"+a.toString();break}case"custom":{const i=t.uri;n+=i.slice(0,1)==="/"?i.slice(1):i;break}default:r("abort",400);return}let s=503;As(e+n).then(i=>{const o=i.status;if(o!==200){setTimeout(()=>{r(W0(o)?"abort":"next",o)});return}return s=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?r("abort",i):r("next",s)});return}setTimeout(()=>{r("success",i)})}).catch(()=>{r("next",s)})},z0={prepare:U0,send:K0};function Ga(e,t){switch(e){case"local":case"session":Qt[e]=t;break;case"all":for(const r in Qt)Qt[r]=t;break}}const bi="data-style";let Qf="";function Y0(e){Qf=e}function Ja(e,t){let r=Array.from(e.childNodes).find(n=>n.hasAttribute&&n.hasAttribute(bi));r||(r=document.createElement("style"),r.setAttribute(bi,bi),e.appendChild(r)),r.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+Qf}function ep(){Va("",z0),Df(!0);let e;try{e=window}catch{}if(e){if(Gf(),e.IconifyPreload!==void 0){const r=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof r=="object"&&r!==null&&(r instanceof Array?r:[r]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Ha(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const r=e.IconifyProviders;if(typeof r=="object"&&r!==null)for(const n in r){const s="IconifyProviders["+n+"] is invalid.";try{const i=r[n];if(typeof i!="object"||!i||i.resources===void 0)continue;Wa(n,i)||console.error(s)}catch{console.error(s)}}}}return{enableCache:r=>Ga(r,!0),disableCache:r=>Ga(r,!1),iconLoaded:Ba,iconExists:Ba,getIcon:c0,listIcons:u0,addIcon:Hf,addCollection:Ha,calculateSize:ro,buildIcon:Xf,iconToHTML:cl,svgToURL:Zf,loadIcons:ul,loadIcon:C0,addAPIProvider:Wa,appendCustomStyle:Y0,_api:{getAPIConfig:Ys,setAPIModule:Va,sendAPIQuery:Wf,setFetch:H0,getFetch:B0,listAPIProviders:y0}}}const no={"background-color":"currentColor"},tp={"background-color":"transparent"},Xa={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Za={"-webkit-mask":no,mask:no,background:tp};for(const e in Za){const t=Za[e];for(const r in Xa)t[e+"-"+r]=Xa[r]}function Qa(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function G0(e,t,r){const n=document.createElement("span");let s=e.body;s.indexOf("<a")!==-1&&(s+="<!-- "+Date.now()+" -->");const i=e.attributes,o=cl(s,{...i,width:t.width+"",height:t.height+""}),l=Zf(o),a=n.style,u={"--svg":l,width:Qa(i.width),height:Qa(i.height),...r?no:tp};for(const c in u)a.setProperty(c,u[c]);return n}let sn;function J0(){try{sn=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{sn=null}}function X0(e){return sn===void 0&&J0(),sn?sn.createHTML(e):e}function Z0(e){const t=document.createElement("span"),r=e.attributes;let n="";r.width||(n="width: inherit;"),r.height||(n+="height: inherit;"),n&&(r.style=n);const s=cl(e.body,r);return t.innerHTML=X0(s),t.firstChild}function so(e){return Array.from(e.childNodes).find(t=>{const r=t.tagName&&t.tagName.toUpperCase();return r==="SPAN"||r==="SVG"})}function eu(e,t){const r=t.icon.data,n=t.customisations,s=Xf(r,n);n.preserveAspectRatio&&(s.attributes.preserveAspectRatio=n.preserveAspectRatio);const i=t.renderedMode;let o;switch(i){case"svg":o=Z0(s);break;default:o=G0(s,{...xn,...r},i==="mask")}const l=so(e);l?o.tagName==="SPAN"&&l.tagName===o.tagName?l.setAttribute("style",o.getAttribute("style")):e.replaceChild(o,l):e.appendChild(o)}function tu(e,t,r){const n=r&&(r.rendered?r:r.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:n}}function Q0(e="iconify-icon"){let t,r;try{t=window.customElements,r=window.HTMLElement}catch{return}if(!t||!r)return;const n=t.get(e);if(n)return n;const s=["icon","mode","inline","noobserver","width","height","rotate","flip"],i=class extends r{constructor(){super();Et(this,"_shadowRoot");Et(this,"_initialised",!1);Et(this,"_state");Et(this,"_checkQueued",!1);Et(this,"_connected",!1);Et(this,"_observer",null);Et(this,"_visible",!0);const a=this._shadowRoot=this.attachShadow({mode:"open"}),u=this.hasAttribute("inline");Ja(a,u),this._state=tu({value:""},u),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return s.slice(0)}attributeChangedCallback(a){switch(a){case"inline":{const u=this.hasAttribute("inline"),c=this._state;u!==c.inline&&(c.inline=u,Ja(this._shadowRoot,u));break}case"noobserver":{this.hasAttribute("noobserver")?this.startObserver():this.stopObserver();break}default:this._queueCheck()}}get icon(){const a=this.getAttribute("icon");if(a&&a.slice(0,1)==="{")try{return JSON.parse(a)}catch{}return a}set icon(a){typeof a=="object"&&(a=JSON.stringify(a)),this.setAttribute("icon",a)}get inline(){return this.hasAttribute("inline")}set inline(a){a?this.setAttribute("inline","true"):this.removeAttribute("inline")}get observer(){return this.hasAttribute("observer")}set observer(a){a?this.setAttribute("observer","true"):this.removeAttribute("observer")}restartAnimation(){const a=this._state;if(a.rendered){const u=this._shadowRoot;if(a.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}eu(u,a)}}get status(){const a=this._state;return a.rendered?"rendered":a.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const a=this._state,u=this.getAttribute("icon");if(u!==a.icon.value){this._iconChanged(u);return}if(!a.rendered||!this._visible)return;const c=this.getAttribute("mode"),f=La(this);(a.attrMode!==c||r0(a.customisations,f)||!so(this._shadowRoot))&&this._renderIcon(a.icon,f,c)}_iconChanged(a){const u=O0(a,(c,f,d)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==c)return;const v={value:c,name:f,data:d};v.data?this._gotIconData(v):m.icon=v});u.data?this._gotIconData(u):this._state=tu(u,this._state.inline,this._state)}_forceRender(){if(!this._visible){const a=so(this._shadowRoot);a&&this._shadowRoot.removeChild(a);return}this._queueCheck()}_gotIconData(a){this._checkQueued=!1,this._renderIcon(a,La(this),this.getAttribute("mode"))}_renderIcon(a,u,c){const f=P0(a.data.body,c),d=this._state.inline;eu(this._shadowRoot,this._state={rendered:!0,icon:a,inline:d,customisations:u,attrMode:c,renderedMode:f})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(a=>{const u=a.some(c=>c.isIntersecting);u!==this._visible&&(this._visible=u,this._forceRender())}),this._observer.observe(this)}catch{if(this._observer){try{this._observer.disconnect()}catch{}this._observer=null}}}stopObserver(){this._observer&&(this._observer.disconnect(),this._observer=null,this._visible=!0,this._connected&&this._forceRender())}};s.forEach(l=>{l in i.prototype||Object.defineProperty(i.prototype,l,{get:function(){return this.getAttribute(l)},set:function(a){a!==null?this.setAttribute(l,a):this.removeAttribute(l)}})});const o=ep();for(const l in o)i[l]=i.prototype[l]=o[l];return t.define(e,i),i}Q0()||ep();var ru=36,rp="";for(;ru--;)rp+=ru.toString(36);function f1(e){for(var t="",r=e||11;r--;)t+=rp[Math.random()*36|0];return t}var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},np={},fl={};Object.defineProperty(fl,"__esModule",{value:!0});fl.default=nw;var nu="html",su="head",Hn="body",ew=/<([a-zA-Z]+[0-9]?)/,iu=/<head[^]*>/i,ou=/<body[^]*>/i,Cs=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},io=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},lu=typeof window=="object"&&window.DOMParser;if(typeof lu=="function"){var tw=new lu,rw="text/html";io=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),tw.parseFromString(e,rw)},Cs=io}if(typeof document=="object"&&document.implementation){var Bn=document.implementation.createHTMLDocument();Cs=function(e,t){if(t){var r=Bn.documentElement.querySelector(t);return r&&(r.innerHTML=e),Bn}return Bn.documentElement.innerHTML=e,Bn}}var Vn=typeof document=="object"&&document.createElement("template"),oo;Vn&&Vn.content&&(oo=function(e){return Vn.innerHTML=e,Vn.content.childNodes});function nw(e){var t,r,n=e.match(ew),s=n&&n[1]?n[1].toLowerCase():"";switch(s){case nu:{var i=io(e);if(!iu.test(e)){var o=i.querySelector(su);(t=o==null?void 0:o.parentNode)===null||t===void 0||t.removeChild(o)}if(!ou.test(e)){var o=i.querySelector(Hn);(r=o==null?void 0:o.parentNode)===null||r===void 0||r.removeChild(o)}return i.querySelectorAll(nu)}case su:case Hn:{var l=Cs(e).querySelectorAll(s);return ou.test(e)&&iu.test(e)?l[0].parentNode.childNodes:l}default:{if(oo)return oo(e);var o=Cs(e,Hn).querySelector(Hn);return o.childNodes}}}var Gs={},sp={},pl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(pl);var re={},Vt=ft&&ft.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),on=ft&&ft.__assign||function(){return on=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},on.apply(this,arguments)};Object.defineProperty(re,"__esModule",{value:!0});re.cloneNode=re.hasChildren=re.isDocument=re.isDirective=re.isComment=re.isText=re.isCDATA=re.isTag=re.Element=re.Document=re.CDATA=re.NodeWithChildren=re.ProcessingInstruction=re.Comment=re.Text=re.DataNode=re.Node=void 0;var Be=pl,dl=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),hl(this,t)},e}();re.Node=dl;var Js=function(e){Vt(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(dl);re.DataNode=Js;var ip=function(e){Vt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Be.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(Js);re.Text=ip;var op=function(e){Vt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Be.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(Js);re.Comment=op;var lp=function(e){Vt(t,e);function t(r,n){var s=e.call(this,n)||this;return s.name=r,s.type=Be.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(Js);re.ProcessingInstruction=lp;var Xs=function(e){Vt(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(dl);re.NodeWithChildren=Xs;var ap=function(e){Vt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Be.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(Xs);re.CDATA=ap;var up=function(e){Vt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Be.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(Xs);re.Document=up;var cp=function(e){Vt(t,e);function t(r,n,s,i){s===void 0&&(s=[]),i===void 0&&(i=r==="script"?Be.ElementType.Script:r==="style"?Be.ElementType.Style:Be.ElementType.Tag);var o=e.call(this,s)||this;return o.name=r,o.attribs=n,o.type=i,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var s,i;return{name:n,value:r.attribs[n],namespace:(s=r["x-attribsNamespace"])===null||s===void 0?void 0:s[n],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[n]}})},enumerable:!1,configurable:!0}),t}(Xs);re.Element=cp;function fp(e){return(0,Be.isTag)(e)}re.isTag=fp;function pp(e){return e.type===Be.ElementType.CDATA}re.isCDATA=pp;function dp(e){return e.type===Be.ElementType.Text}re.isText=dp;function hp(e){return e.type===Be.ElementType.Comment}re.isComment=hp;function mp(e){return e.type===Be.ElementType.Directive}re.isDirective=mp;function gp(e){return e.type===Be.ElementType.Root}re.isDocument=gp;function sw(e){return Object.prototype.hasOwnProperty.call(e,"children")}re.hasChildren=sw;function hl(e,t){t===void 0&&(t=!1);var r;if(dp(e))r=new ip(e.data);else if(hp(e))r=new op(e.data);else if(fp(e)){var n=t?_i(e.children):[],s=new cp(e.name,on({},e.attribs),n);n.forEach(function(a){return a.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=on({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=on({},e["x-attribsPrefix"])),r=s}else if(pp(e)){var n=t?_i(e.children):[],i=new ap(n);n.forEach(function(u){return u.parent=i}),r=i}else if(gp(e)){var n=t?_i(e.children):[],o=new up(n);n.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),r=o}else if(mp(e)){var l=new lp(e.name,e.data);e["x-name"]!=null&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}re.cloneNode=hl;function _i(e){for(var t=e.map(function(n){return hl(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}(function(e){var t=ft&&ft.__createBinding||(Object.create?function(l,a,u,c){c===void 0&&(c=u);var f=Object.getOwnPropertyDescriptor(a,u);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[u]}}),Object.defineProperty(l,c,f)}:function(l,a,u,c){c===void 0&&(c=u),l[c]=a[u]}),r=ft&&ft.__exportStar||function(l,a){for(var u in l)u!=="default"&&!Object.prototype.hasOwnProperty.call(a,u)&&t(a,l,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=pl,s=re;r(re,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function l(a,u,c){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=i),typeof a=="object"&&(u=a,a=void 0),this.callback=a??null,this.options=u??i,this.elementCB=c??null}return l.prototype.onparserinit=function(a){this.parser=a},l.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(a){this.handleCallback(a)},l.prototype.onclosetag=function(){this.lastNode=null;var a=this.tagStack.pop();this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(a)},l.prototype.onopentag=function(a,u){var c=this.options.xmlMode?n.ElementType.Tag:void 0,f=new s.Element(a,u,void 0,c);this.addNode(f),this.tagStack.push(f)},l.prototype.ontext=function(a){var u=this.lastNode;if(u&&u.type===n.ElementType.Text)u.data+=a,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new s.Text(a);this.addNode(c),this.lastNode=c}},l.prototype.oncomment=function(a){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=a;return}var u=new s.Comment(a);this.addNode(u),this.lastNode=u},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var a=new s.Text(""),u=new s.CDATA([a]);this.addNode(u),a.parent=u,this.lastNode=a},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(a,u){var c=new s.ProcessingInstruction(a,u);this.addNode(c)},l.prototype.handleCallback=function(a){if(typeof this.callback=="function")this.callback(a,this.dom);else if(a)throw a},l.prototype.addNode=function(a){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),u.children.push(a),c&&(a.prev=c,c.next=a),a.parent=u,this.lastNode=null},l}();e.DomHandler=o,e.default=o})(sp);var vp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,r){return t[r.toLowerCase()]=r,t},{})})(vp);Object.defineProperty(Gs,"__esModule",{value:!0});Gs.formatAttributes=yp;Gs.formatDOM=bp;var Wn=sp,iw=vp;function ow(e){return iw.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function yp(e){for(var t={},r=0,n=e.length;r<n;r++){var s=e[r];t[s.name]=s.value}return t}function lw(e){e=e.toLowerCase();var t=ow(e);return t||e}function bp(e,t,r){t===void 0&&(t=null);for(var n=[],s,i=0,o=e.length;i<o;i++){var l=e[i];switch(l.nodeType){case 1:{var a=lw(l.nodeName);s=new Wn.Element(a,yp(l.attributes)),s.children=bp(a==="template"?l.content.childNodes:l.childNodes,s);break}case 3:s=new Wn.Text(l.nodeValue);break;case 8:s=new Wn.Comment(l.nodeValue);break;default:continue}var u=n[i-1]||null;u&&(u.next=s),s.parent=t,s.prev=u,s.next=null,n.push(s)}return r&&(s=new Wn.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),s.next=n[0]||null,s.parent=t,n.unshift(s),n[1]&&(n[1].prev=n[0])),n}var aw=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(np,"__esModule",{value:!0});var au=np.default=pw,uw=aw(fl),cw=Gs,fw=/<(![a-zA-Z\s]+)>/;function pw(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(fw),r=t?t[1]:void 0;return(0,cw.formatDOM)((0,uw.default)(e),null,r)}const p1=au.default||au;function ml(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function gl(){let e=[],t={addEventListener(r,n,s,i){return r.addEventListener(n,s,i),t.add(()=>r.removeEventListener(n,s,i))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...r)})},setTimeout(...r){let n=setTimeout(...r);t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return ml(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,s){let i=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:s}),this.add(()=>{Object.assign(r.style,{[n]:i})})},group(r){let n=gl();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let s of e.splice(n,1))s()}},dispose(){for(let r of e.splice(0))r()}};return t}let dw=Symbol("headlessui.useid"),hw=0;function _p(){return Se(dw,()=>`${++hw}`)()}function xe(e){var t;if(e==null||e.value==null)return null;let r=(t=e.value.$el)!=null?t:e.value;return r instanceof Node?r:null}function or(e,t,...r){if(e in t){let s=t[e];return typeof s=="function"?s(...r):s}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,or),n}var mw=Object.defineProperty,gw=(e,t,r)=>t in e?mw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uu=(e,t,r)=>(gw(e,typeof t!="symbol"?t+"":t,r),r);let vw=class{constructor(){uu(this,"current",this.detect()),uu(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Zs=new vw;function Rr(e){if(Zs.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=xe(e);if(t)return t.ownerDocument}return document}let lo=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Tt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Tt||{}),wp=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(wp||{}),yw=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(yw||{});function bw(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(lo)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var $p=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))($p||{});function _w(e,t=0){var r;return e===((r=Rr(e))==null?void 0:r.body)?!1:or(t,{0(){return e.matches(lo)},1(){let n=e;for(;n!==null;){if(n.matches(lo))return!0;n=n.parentElement}return!1}})}var ww=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ww||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function er(e){e==null||e.focus({preventScroll:!0})}let $w=["textarea","input"].join(",");function Sw(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,$w))!=null?r:!1}function xw(e,t=r=>r){return e.slice().sort((r,n)=>{let s=t(r),i=t(n);if(s===null||i===null)return 0;let o=s.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ts(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:s=[]}={}){var i;let o=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?i:document,l=Array.isArray(e)?r?xw(e):e:bw(e);s.length>0&&l.length>1&&(l=l.filter(v=>!s.includes(v))),n=n??o.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(n))-1;if(t&4)return Math.max(0,l.indexOf(n))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},f=0,d=l.length,m;do{if(f>=d||f+d<=0)return 0;let v=u+f;if(t&16)v=(v+d)%d;else{if(v<0)return 3;if(v>=d)return 1}m=l[v],m==null||m.focus(c),f+=a}while(m!==o.activeElement);return t&6&&Sw(m)&&m.select(),2}function Sp(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ew(){return/Android/gi.test(window.navigator.userAgent)}function Aw(){return Sp()||Ew()}function Un(e,t,r){Zs.isServer||_e(n=>{document.addEventListener(e,t,r),n(()=>document.removeEventListener(e,t,r))})}function xp(e,t,r){Zs.isServer||_e(n=>{window.addEventListener(e,t,r),n(()=>window.removeEventListener(e,t,r))})}function Cw(e,t,r=Q(()=>!0)){function n(i,o){if(!r.value||i.defaultPrevented)return;let l=o(i);if(l===null||!l.getRootNode().contains(l))return;let a=function u(c){return typeof c=="function"?u(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let u of a){if(u===null)continue;let c=u instanceof HTMLElement?u:xe(u);if(c!=null&&c.contains(l)||i.composed&&i.composedPath().includes(c))return}return!_w(l,$p.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let s=z(null);Un("pointerdown",i=>{var o,l;r.value&&(s.value=((l=(o=i.composedPath)==null?void 0:o.call(i))==null?void 0:l[0])||i.target)},!0),Un("mousedown",i=>{var o,l;r.value&&(s.value=((l=(o=i.composedPath)==null?void 0:o.call(i))==null?void 0:l[0])||i.target)},!0),Un("click",i=>{Aw()||s.value&&(n(i,()=>s.value),s.value=null)},!0),Un("touchend",i=>n(i,()=>i.target instanceof HTMLElement?i.target:null),!0),xp("blur",i=>n(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var ao=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ao||{}),Tw=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Tw||{});function ur({visible:e=!0,features:t=0,ourProps:r,theirProps:n,...s}){var i;let o=Ap(n,r),l=Object.assign(s,{props:o});if(e||t&2&&o.static)return wi(l);if(t&1){let a=(i=o.unmount)==null||i?0:1;return or(a,{0(){return null},1(){return wi({...s,props:{...o,hidden:!0,style:{display:"none"}}})}})}return wi(l)}function wi({props:e,attrs:t,slots:r,slot:n,name:s}){var i,o;let{as:l,...a}=Ow(e,["unmount","static"]),u=(i=r.default)==null?void 0:i.call(r,n),c={};if(n){let f=!1,d=[];for(let[m,v]of Object.entries(n))typeof v=="boolean"&&(f=!0),v===!0&&d.push(m);f&&(c["data-headlessui-state"]=d.join(" "))}if(l==="template"){if(u=Ep(u??[]),Object.keys(a).length>0||Object.keys(t).length>0){let[f,...d]=u??[];if(!Pw(f)||d.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${s} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(a).concat(Object.keys(t)).map(p=>p.trim()).filter((p,b,$)=>$.indexOf(p)===b).sort((p,b)=>p.localeCompare(b)).map(p=>`  - ${p}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>`  - ${p}`).join(`
`)].join(`
`));let m=Ap((o=f.props)!=null?o:{},a,c),v=rr(f,m,!0);for(let p in m)p.startsWith("on")&&(v.props||(v.props={}),v.props[p]=m[p]);return v}return Array.isArray(u)&&u.length===1?u[0]:u}return Ce(l,Object.assign({},a,c),{default:()=>u})}function Ep(e){return e.flatMap(t=>t.type===qe?Ep(t.children):[t])}function Ap(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let s in n)s.startsWith("on")&&typeof n[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(n[s])):t[s]=n[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](s,...i){let o=r[n];for(let l of o){if(s instanceof Event&&s.defaultPrevented)return;l(s,...i)}}});return t}function Ow(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function Pw(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var Ts=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ts||{});let uo=ht({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:r}){return()=>{var n;let{features:s,...i}=e,o={"aria-hidden":(s&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(s&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(s&4)===4&&(s&2)!==2&&{display:"none"}}};return ur({ourProps:o,theirProps:i,slot:{},attrs:r,slots:t,name:"Hidden"})}}}),Iw=Symbol("Context");var Gr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Gr||{});function kw(){return Se(Iw,null)}var Cp=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Cp||{});function Mw(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let zt=[];Mw(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&zt[0]!==t.target&&(zt.unshift(t.target),zt=zt.filter(r=>r!=null&&r.isConnected),zt.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Tp(e,t,r,n){Zs.isServer||_e(s=>{e=e??window,e.addEventListener(t,r,n),s(()=>e.removeEventListener(t,r,n))})}var Jr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Jr||{});function Fw(){let e=z(0);return xp("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function Op(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let r of e.value){let n=xe(r);n instanceof HTMLElement&&t.add(n)}return t}var Pp=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Pp||{});let Vr=Object.assign(ht({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:z(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:r,expose:n}){let s=z(null);n({el:s,$el:s});let i=Q(()=>Rr(s)),o=z(!1);Ge(()=>o.value=!0),dt(()=>o.value=!1),Nw({ownerDocument:i},Q(()=>o.value&&!!(e.features&16)));let l=Rw({ownerDocument:i,container:s,initialFocus:Q(()=>e.initialFocus)},Q(()=>o.value&&!!(e.features&2)));Lw({ownerDocument:i,container:s,containers:e.containers,previousActiveElement:l},Q(()=>o.value&&!!(e.features&8)));let a=Fw();function u(m){let v=xe(s);v&&(p=>p())(()=>{or(a.value,{[Jr.Forwards]:()=>{ts(v,Tt.First,{skipElements:[m.relatedTarget]})},[Jr.Backwards]:()=>{ts(v,Tt.Last,{skipElements:[m.relatedTarget]})}})})}let c=z(!1);function f(m){m.key==="Tab"&&(c.value=!0,requestAnimationFrame(()=>{c.value=!1}))}function d(m){if(!o.value)return;let v=Op(e.containers);xe(s)instanceof HTMLElement&&v.add(xe(s));let p=m.relatedTarget;p instanceof HTMLElement&&p.dataset.headlessuiFocusGuard!=="true"&&(Ip(v,p)||(c.value?ts(xe(s),or(a.value,{[Jr.Forwards]:()=>Tt.Next,[Jr.Backwards]:()=>Tt.Previous})|Tt.WrapAround,{relativeTo:m.target}):m.target instanceof HTMLElement&&er(m.target)))}return()=>{let m={},v={ref:s,onKeydown:f,onFocusout:d},{features:p,initialFocus:b,containers:$,...E}=e;return Ce(qe,[!!(p&4)&&Ce(uo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:Ts.Focusable}),ur({ourProps:v,theirProps:{...t,...E},slot:m,attrs:t,slots:r,name:"FocusTrap"}),!!(p&4)&&Ce(uo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:Ts.Focusable})])}}}),{features:Pp});function jw(e){let t=z(zt.slice());return me([e],([r],[n])=>{n===!0&&r===!1?ml(()=>{t.value.splice(0)}):n===!1&&r===!0&&(t.value=zt.slice())},{flush:"post"}),()=>{var r;return(r=t.value.find(n=>n!=null&&n.isConnected))!=null?r:null}}function Nw({ownerDocument:e},t){let r=jw(t);Ge(()=>{_e(()=>{var n,s;t.value||((n=e.value)==null?void 0:n.activeElement)===((s=e.value)==null?void 0:s.body)&&er(r())},{flush:"post"})}),dt(()=>{t.value&&er(r())})}function Rw({ownerDocument:e,container:t,initialFocus:r},n){let s=z(null),i=z(!1);return Ge(()=>i.value=!0),dt(()=>i.value=!1),Ge(()=>{me([t,r,n],(o,l)=>{if(o.every((u,c)=>(l==null?void 0:l[c])===u)||!n.value)return;let a=xe(t);a&&ml(()=>{var u,c;if(!i.value)return;let f=xe(r),d=(u=e.value)==null?void 0:u.activeElement;if(f){if(f===d){s.value=d;return}}else if(a.contains(d)){s.value=d;return}f?er(f):ts(a,Tt.First|Tt.NoScroll)===wp.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.value=(c=e.value)==null?void 0:c.activeElement})},{immediate:!0,flush:"post"})}),s}function Lw({ownerDocument:e,container:t,containers:r,previousActiveElement:n},s){var i;Tp((i=e.value)==null?void 0:i.defaultView,"focus",o=>{if(!s.value)return;let l=Op(r);xe(t)instanceof HTMLElement&&l.add(xe(t));let a=n.value;if(!a)return;let u=o.target;u&&u instanceof HTMLElement?Ip(l,u)?(n.value=u,er(u)):(o.preventDefault(),o.stopPropagation(),er(a)):er(n.value)},!0)}function Ip(e,t){for(let r of e)if(r.contains(t))return!0;return!1}function Dw(e){let t=br(e.getSnapshot());return dt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Hw(e,t){let r=e(),n=new Set;return{getSnapshot(){return r},subscribe(s){return n.add(s),()=>n.delete(s)},dispatch(s,...i){let o=t[s].call(r,...i);o&&(r=o,n.forEach(l=>l()))}}}function Bw(){let e;return{before({doc:t}){var r;let n=t.documentElement;e=((r=t.defaultView)!=null?r:window).innerWidth-n.clientWidth},after({doc:t,d:r}){let n=t.documentElement,s=n.clientWidth-n.offsetWidth,i=e-s;r.style(n,"paddingRight",`${i}px`)}}}function Vw(){return Sp()?{before({doc:e,d:t,meta:r}){function n(s){return r.containers.flatMap(i=>i()).some(i=>i.contains(s))}t.microTask(()=>{var s;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=gl();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let i=(s=window.scrollY)!=null?s:window.pageYOffset,o=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let a=l.target.closest("a");if(!a)return;let{hash:u}=new URL(a.href),c=e.querySelector(u);c&&!n(c)&&(o=c)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(n(l.target)){let a=l.target;for(;a.parentElement&&n(a.parentElement);)a=a.parentElement;t.style(a,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(n(l.target)){let a=l.target;for(;a.parentElement&&a.dataset.headlessuiPortal!==""&&!(a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth);)a=a.parentElement;a.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let a=(l=window.scrollY)!=null?l:window.pageYOffset;i!==a&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{}}function Ww(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Uw(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let Gt=Hw(()=>new Map,{PUSH(e,t){var r;let n=(r=this.get(e))!=null?r:{doc:e,count:0,d:gl(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:Uw(r)},s=[Vw(),Bw(),Ww()];s.forEach(({before:i})=>i==null?void 0:i(n)),s.forEach(({after:i})=>i==null?void 0:i(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Gt.subscribe(()=>{let e=Gt.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let n=t.get(r.doc)==="hidden",s=r.count!==0;(s&&!n||!s&&n)&&Gt.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),r.count===0&&Gt.dispatch("TEARDOWN",r)}});function qw(e,t,r){let n=Dw(Gt),s=Q(()=>{let i=e.value?n.value.get(e.value):void 0;return i?i.count>0:!1});return me([e,t],([i,o],[l],a)=>{if(!i||!o)return;Gt.dispatch("PUSH",i,r);let u=!1;a(()=>{u||(Gt.dispatch("POP",l??i,r),u=!0)})},{immediate:!0}),s}let $i=new Map,Wr=new Map;function cu(e,t=z(!0)){_e(r=>{var n;if(!t.value)return;let s=xe(e);if(!s)return;r(function(){var o;if(!s)return;let l=(o=Wr.get(s))!=null?o:1;if(l===1?Wr.delete(s):Wr.set(s,l-1),l!==1)return;let a=$i.get(s);a&&(a["aria-hidden"]===null?s.removeAttribute("aria-hidden"):s.setAttribute("aria-hidden",a["aria-hidden"]),s.inert=a.inert,$i.delete(s))});let i=(n=Wr.get(s))!=null?n:0;Wr.set(s,i+1),i===0&&($i.set(s,{"aria-hidden":s.getAttribute("aria-hidden"),inert:s.inert}),s.setAttribute("aria-hidden","true"),s.inert=!0)})}function Kw({defaultContainers:e=[],portals:t,mainTreeNodeRef:r}={}){let n=z(null),s=Rr(n);function i(){var o,l,a;let u=[];for(let c of e)c!==null&&(c instanceof HTMLElement?u.push(c):"value"in c&&c.value instanceof HTMLElement&&u.push(c.value));if(t!=null&&t.value)for(let c of t.value)u.push(c);for(let c of(o=s==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?o:[])c!==document.body&&c!==document.head&&c instanceof HTMLElement&&c.id!=="headlessui-portal-root"&&(c.contains(xe(n))||c.contains((a=(l=xe(n))==null?void 0:l.getRootNode())==null?void 0:a.host)||u.some(f=>c.contains(f))||u.push(c));return u}return{resolveContainers:i,contains(o){return i().some(l=>l.contains(o))},mainTreeNodeRef:n,MainTreeNode(){return r!=null?null:Ce(uo,{features:Ts.Hidden,ref:n})}}}let kp=Symbol("ForcePortalRootContext");function zw(){return Se(kp,!1)}let fu=ht({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:r}){return Dt(kp,e.force),()=>{let{force:n,...s}=e;return ur({theirProps:s,ourProps:{},slot:{},slots:t,attrs:r,name:"ForcePortalRoot"})}}}),Mp=Symbol("StackContext");var co=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(co||{});function Yw(){return Se(Mp,()=>{})}function Gw({type:e,enabled:t,element:r,onUpdate:n}){let s=Yw();function i(...o){n==null||n(...o),s(...o)}Ge(()=>{me(t,(o,l)=>{o?i(0,e,r):l===!0&&i(1,e,r)},{immediate:!0,flush:"sync"})}),dt(()=>{t.value&&i(1,e,r)}),Dt(Mp,i)}let Jw=Symbol("DescriptionContext");function Xw({slot:e=z({}),name:t="Description",props:r={}}={}){let n=z([]);function s(i){return n.value.push(i),()=>{let o=n.value.indexOf(i);o!==-1&&n.value.splice(o,1)}}return Dt(Jw,{register:s,slot:e,name:t,props:r}),Q(()=>n.value.length>0?n.value.join(" "):void 0)}function Zw(e){let t=Rr(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let r=t.getElementById("headlessui-portal-root");if(r)return r;let n=t.createElement("div");return n.setAttribute("id","headlessui-portal-root"),t.body.appendChild(n)}const fo=new WeakMap;function Qw(e){var t;return(t=fo.get(e))!=null?t:0}function pu(e,t){let r=t(Qw(e));return r<=0?fo.delete(e):fo.set(e,r),r}let e$=ht({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:r}){let n=z(null),s=Q(()=>Rr(n)),i=zw(),o=Se(Fp,null),l=z(i===!0||o==null?Zw(n.value):o.resolveTarget());l.value&&pu(l.value,d=>d+1);let a=z(!1);Ge(()=>{a.value=!0}),_e(()=>{i||o!=null&&(l.value=o.resolveTarget())});let u=Se(po,null),c=!1,f=nr();return me(n,()=>{if(c||!u)return;let d=xe(n);d&&(dt(u.register(d),f),c=!0)}),dt(()=>{var d,m;let v=(d=s.value)==null?void 0:d.getElementById("headlessui-portal-root");!v||l.value!==v||pu(l.value,p=>p-1)||l.value.children.length>0||(m=l.value.parentElement)==null||m.removeChild(l.value)}),()=>{if(!a.value||l.value===null)return null;let d={ref:n,"data-headlessui-portal":""};return Ce(bh,{to:l.value},ur({ourProps:d,theirProps:e,slot:{},attrs:r,slots:t,name:"Portal"}))}}}),po=Symbol("PortalParentContext");function t$(){let e=Se(po,null),t=z([]);function r(i){return t.value.push(i),e&&e.register(i),()=>n(i)}function n(i){let o=t.value.indexOf(i);o!==-1&&t.value.splice(o,1),e&&e.unregister(i)}let s={register:r,unregister:n,portals:t};return[t,ht({name:"PortalWrapper",setup(i,{slots:o}){return Dt(po,s),()=>{var l;return(l=o.default)==null?void 0:l.call(o)}}})]}let Fp=Symbol("PortalGroupContext"),r$=ht({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:r}){let n=vt({resolveTarget(){return e.target}});return Dt(Fp,n),()=>{let{target:s,...i}=e;return ur({theirProps:i,ourProps:{},slot:{},attrs:t,slots:r,name:"PortalGroup"})}}});var n$=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(n$||{});let ho=Symbol("DialogContext");function jp(e){let t=Se(ho,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jp),r}return t}let qn="DC8F892D-2EBD-447C-A4C8-A03058436FF4",h1=ht({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:qn},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:r,slots:n,expose:s}){var i,o;let l=(i=e.id)!=null?i:`headlessui-dialog-${_p()}`,a=z(!1);Ge(()=>{a.value=!0});let u=!1,c=Q(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(u||(u=!0,console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),f=z(0),d=kw(),m=Q(()=>e.open===qn&&d!==null?(d.value&Gr.Open)===Gr.Open:e.open),v=z(null),p=Q(()=>Rr(v));if(s({el:v,$el:v}),!(e.open!==qn||d!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof m.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${m.value===qn?void 0:e.open}`);let b=Q(()=>a.value&&m.value?0:1),$=Q(()=>b.value===0),E=Q(()=>f.value>1),A=Se(ho,null)!==null,[w,O]=t$(),{resolveContainers:g,mainTreeNodeRef:_,MainTreeNode:k}=Kw({portals:w,defaultContainers:[Q(()=>{var J;return(J=D.panelRef.value)!=null?J:v.value})]}),B=Q(()=>E.value?"parent":"leaf"),I=Q(()=>d!==null?(d.value&Gr.Closing)===Gr.Closing:!1),L=Q(()=>A||I.value?!1:$.value),S=Q(()=>{var J,se,ye;return(ye=Array.from((se=(J=p.value)==null?void 0:J.querySelectorAll("body > *"))!=null?se:[]).find(ue=>ue.id==="headlessui-portal-root"?!1:ue.contains(xe(_))&&ue instanceof HTMLElement))!=null?ye:null});cu(S,L);let R=Q(()=>E.value?!0:$.value),U=Q(()=>{var J,se,ye;return(ye=Array.from((se=(J=p.value)==null?void 0:J.querySelectorAll("[data-headlessui-portal]"))!=null?se:[]).find(ue=>ue.contains(xe(_))&&ue instanceof HTMLElement))!=null?ye:null});cu(U,R),Gw({type:"Dialog",enabled:Q(()=>b.value===0),element:v,onUpdate:(J,se)=>{if(se==="Dialog")return or(J,{[co.Add]:()=>f.value+=1,[co.Remove]:()=>f.value-=1})}});let te=Xw({name:"DialogDescription",slot:Q(()=>({open:m.value}))}),H=z(null),D={titleId:H,panelRef:z(null),dialogState:b,setTitleId(J){H.value!==J&&(H.value=J)},close(){t("close",!1)}};Dt(ho,D);let Y=Q(()=>!(!$.value||E.value));Cw(g,(J,se)=>{J.preventDefault(),D.close(),vn(()=>se==null?void 0:se.focus())},Y);let fe=Q(()=>!(E.value||b.value!==0));Tp((o=p.value)==null?void 0:o.defaultView,"keydown",J=>{fe.value&&(J.defaultPrevented||J.key===Cp.Escape&&(J.preventDefault(),J.stopPropagation(),D.close()))});let ve=Q(()=>!(I.value||b.value!==0||A));return qw(p,ve,J=>{var se;return{containers:[...(se=J.containers)!=null?se:[],g]}}),_e(J=>{if(b.value!==0)return;let se=xe(v);if(!se)return;let ye=new ResizeObserver(ue=>{for(let je of ue){let Ne=je.target.getBoundingClientRect();Ne.x===0&&Ne.y===0&&Ne.width===0&&Ne.height===0&&D.close()}});ye.observe(se),J(()=>ye.disconnect())}),()=>{let{open:J,initialFocus:se,...ye}=e,ue={...r,ref:v,id:l,role:c.value,"aria-modal":b.value===0?!0:void 0,"aria-labelledby":H.value,"aria-describedby":te.value},je={open:b.value===0};return Ce(fu,{force:!0},()=>[Ce(e$,()=>Ce(r$,{target:v.value},()=>Ce(fu,{force:!1},()=>Ce(Vr,{initialFocus:se,containers:g,features:$.value?or(B.value,{parent:Vr.features.RestoreFocus,leaf:Vr.features.All&~Vr.features.FocusLock}):Vr.features.None},()=>Ce(O,{},()=>ur({ourProps:ue,theirProps:{...ye,...r},slot:je,attrs:r,slots:n,visible:b.value===0,features:ao.RenderStrategy|ao.Static,name:"Dialog"})))))),Ce(k)])}}}),m1=ht({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var s;let i=(s=e.id)!=null?s:`headlessui-dialog-panel-${_p()}`,o=jp("DialogPanel");n({el:o.panelRef,$el:o.panelRef});function l(a){a.stopPropagation()}return()=>{let{...a}=e,u={id:i,ref:o.panelRef,onClick:l};return ur({ourProps:u,theirProps:a,slot:{open:o.dialogState.value===0},attrs:t,slots:r,name:"DialogPanel"})}}});var s$=typeof global=="object"&&global&&global.Object===Object&&global;const i$=s$;var o$=typeof self=="object"&&self&&self.Object===Object&&self,l$=i$||o$||Function("return this")();const Np=l$;var a$=Np.Symbol;const Os=a$;var Rp=Object.prototype,u$=Rp.hasOwnProperty,c$=Rp.toString,Ur=Os?Os.toStringTag:void 0;function f$(e){var t=u$.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var s=c$.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),s}var p$=Object.prototype,d$=p$.toString;function h$(e){return d$.call(e)}var m$="[object Null]",g$="[object Undefined]",du=Os?Os.toStringTag:void 0;function v$(e){return e==null?e===void 0?g$:m$:du&&du in Object(e)?f$(e):h$(e)}function y$(e){return e!=null&&typeof e=="object"}var b$="[object Symbol]";function _$(e){return typeof e=="symbol"||y$(e)&&v$(e)==b$}var w$=/\s/;function $$(e){for(var t=e.length;t--&&w$.test(e.charAt(t)););return t}var S$=/^\s+/;function x$(e){return e&&e.slice(0,$$(e)+1).replace(S$,"")}function mo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var hu=0/0,E$=/^[-+]0x[0-9a-f]+$/i,A$=/^0b[01]+$/i,C$=/^0o[0-7]+$/i,T$=parseInt;function mu(e){if(typeof e=="number")return e;if(_$(e))return hu;if(mo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=mo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=x$(e);var r=A$.test(e);return r||C$.test(e)?T$(e.slice(2),r?2:8):E$.test(e)?hu:+e}var O$=function(){return Np.Date.now()};const Si=O$;var P$="Expected a function",I$=Math.max,k$=Math.min;function g1(e,t,r){var n,s,i,o,l,a,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(P$);t=mu(t)||0,mo(r)&&(c=!!r.leading,f="maxWait"in r,i=f?I$(mu(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function m(g){var _=n,k=s;return n=s=void 0,u=g,o=e.apply(k,_),o}function v(g){return u=g,l=setTimeout($,t),c?m(g):o}function p(g){var _=g-a,k=g-u,B=t-_;return f?k$(B,i-k):B}function b(g){var _=g-a,k=g-u;return a===void 0||_>=t||_<0||f&&k>=i}function $(){var g=Si();if(b(g))return E(g);l=setTimeout($,p(g))}function E(g){return l=void 0,d&&n?m(g):(n=s=void 0,o)}function A(){l!==void 0&&clearTimeout(l),u=0,n=a=s=l=void 0}function w(){return l===void 0?o:E(Si())}function O(){var g=Si(),_=b(g);if(n=arguments,s=this,a=g,_){if(l===void 0)return v(a);if(f)return clearTimeout(l),l=setTimeout($,t),m(a)}return l===void 0&&(l=setTimeout($,t)),o}return O.cancel=A,O.flush=w,O}z(new Date);let M$;function F$(){return M$}function j$(e){return typeof e=="function"?e():js(e)}function go(e){if(e instanceof Promise)return e;const t=j$(e);if(!e||!t)return t;if(Array.isArray(t))return t.map(r=>go(r));if(typeof t=="object"){const r={};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(n==="titleTemplate"||n[0]==="o"&&n[1]==="n"){r[n]=js(t[n]);continue}r[n]=go(t[n])}return r}return t}const N$="usehead",gu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vu="__unhead_injection_handler__";function R$(){if(vu in gu)return gu[vu]();const e=Se(N$);return e||F$()}function v1(e,t={}){const r=t.head||R$();if(r)return r.ssr?r.push(e,t):L$(r,e,t)}function L$(e,t,r={}){const n=z(!1),s=z({});_e(()=>{s.value=n.value?{}:go(t)});const i=e.push(s.value,r);return me(s,l=>{i.patch(l)}),nr()&&(jo(()=>{i.dispose()}),Xu(()=>{n.value=!0}),Ju(()=>{n.value=!1})),i}export{J$ as $,z$ as A,v1 as B,l1 as C,c1 as D,e1 as E,yf as F,pc as G,H$ as H,dc as I,G$ as J,Sh as K,qe as L,c_ as M,$o as N,K$ as O,q$ as P,m1 as Q,t1 as R,a1 as S,Tf as T,me as U,g1 as V,r1 as W,jo as X,h1 as Y,W$ as Z,U$ as _,X$ as a,vn as a0,Q as a1,V$ as a2,s1 as b,Y$ as c,ht as d,i1 as e,o1 as f,u1 as g,Ce as h,f1 as i,hf as j,nr as k,Z$ as l,Q$ as m,Bd as n,cc as o,p1 as p,js as q,z as r,br as s,B$ as t,n1 as u,Tc as v,jd as w,ac as x,ke as y,Ge as z};
