@tvsgroup/support-client 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,19 +2,19 @@ var SupportClientWidget=function(on){"use strict";/**
|
|
|
2
2
|
* @vue/shared v3.5.29
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**/function Hn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const te={},wt=[],Pe=()=>{}
|
|
5
|
+
**/function Hn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const te={},wt=[],Pe=()=>{},Nr=()=>!1,ln=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Vn=e=>e.startsWith("onUpdate:"),oe=Object.assign,Wn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ji=Object.prototype.hasOwnProperty,q=(e,t)=>Ji.call(e,t),P=Array.isArray,xt=e=>It(e)==="[object Map]",Lr=e=>It(e)==="[object Set]",Dr=e=>It(e)==="[object Date]",L=e=>typeof e=="function",le=e=>typeof e=="string",$e=e=>typeof e=="symbol",X=e=>e!==null&&typeof e=="object",Ur=e=>(X(e)||L(e))&&L(e.then)&&L(e.catch),Br=Object.prototype.toString,It=e=>Br.call(e),Yi=e=>It(e).slice(8,-1),an=e=>It(e)==="[object Object]",zn=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rt=Hn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Xi=/-\w/g,Ie=cn(e=>e.replace(Xi,t=>t.slice(1).toUpperCase())),Zi=/\B([A-Z])/g,Ee=cn(e=>e.replace(Zi,"-$1").toLowerCase()),Hr=cn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kn=cn(e=>e?`on${Hr(e)}`:""),st=(e,t)=>!Object.is(e,t),fn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Vr=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Gn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qn=e=>{const t=le(e)?Number(e):NaN;return isNaN(t)?e:t};let Wr;const un=()=>Wr||(Wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function dn(e){if(P(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=le(r)?no(r):dn(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(le(e)||X(e))return e}const Qi=/;(?![^(]*\))/g,eo=/:([^]+)/,to=/\/\*[^]*?\*\//g;function no(e){const t={};return e.replace(to,"").split(Qi).forEach(n=>{if(n){const r=n.split(eo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function fe(e){let t="";if(le(e))t=e;else if(P(e))for(let n=0;n<e.length;n++){const r=fe(e[n]);r&&(t+=r+" ")}else if(X(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ro=Hn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function zr(e){return!!e||e===""}function so(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Jn(e[r],t[r]);return n}function Jn(e,t){if(e===t)return!0;let n=Dr(e),r=Dr(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=$e(e),r=$e(t),n||r)return e===t;if(n=P(e),r=P(t),n||r)return n&&r?so(e,t):!1;if(n=X(e),r=X(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),a=t.hasOwnProperty(o);if(l&&!a||!l&&a||!Jn(e[o],t[o]))return!1}}return String(e)===String(t)}const Kr=e=>!!(e&&e.__v_isRef===!0),ut=e=>le(e)?e:e==null?"":P(e)||X(e)&&(e.toString===Br||!L(e.toString))?Kr(e)?ut(e.value):JSON.stringify(e,Gr,2):String(e),Gr=(e,t)=>Kr(t)?Gr(e,t.value):xt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Yn(r,i)+" =>"]=s,n),{})}:Lr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Yn(n))}:$e(t)?Yn(t):X(t)&&!P(t)&&!an(t)?String(t):t,Yn=(e,t="")=>{var n;return $e(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
6
|
* @vue/reactivity v3.5.29
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let be;class io{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=be,!t&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=be;try{return be=this,t()}finally{be=n}}}on(){++this._on===1&&(this.prevScope=be,be=this)}off(){this._on>0&&--this._on===0&&(be=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=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}}}function oo(){return be}let re;const Xn=new WeakSet;class qr{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,be&&be.active&&be.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Xn.has(this)&&(Xn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Yr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ts(this),Xr(this);const t=re,n=Re;re=this,Re=!0;try{return this.fn()}finally{Zr(this),re=t,Re=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)tr(t);this.deps=this.depsTail=void 0,ts(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Xn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){er(this)&&this.run()}get dirty(){return er(this)}}let Jr=0,jt,Ft;function Yr(e,t=!1){if(e.flags|=8,t){e.next=Ft,Ft=e;return}e.next=jt,jt=e}function Zn(){Jr++}function Qn(){if(--Jr>0)return;if(Ft){let t=Ft;for(Ft=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;jt;){let t=jt;for(jt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Xr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Zr(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),tr(r),lo(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function er(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Qr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Qr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Pt)||(e.globalVersion=Pt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!er(e))))return;e.flags|=2;const t=e.dep,n=re,r=Re;re=e,Re=!0;try{Xr(e);const s=e.fn(e._value);(t.version===0||st(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{re=n,Re=r,Zr(e),e.flags&=-3}}function tr(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)tr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function lo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Re=!0;const es=[];function $e(){es.push(Re),Re=!1}function Le(){const e=es.pop();Re=e===void 0?!0:e}function ts(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=re;re=void 0;try{t()}finally{re=n}}}let Pt=0;class ao{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class nr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!re||!Re||re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==re)n=this.activeLink=new ao(re,this),re.deps?(n.prevDep=re.depsTail,re.depsTail.nextDep=n,re.depsTail=n):re.deps=re.depsTail=n,ns(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=re.depsTail,n.nextDep=void 0,re.depsTail.nextDep=n,re.depsTail=n,re.deps===n&&(re.deps=r)}return n}trigger(t){this.version++,Pt++,this.notify(t)}notify(t){Zn();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Qn()}}}function ns(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)ns(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const rr=new WeakMap,dt=Symbol(""),sr=Symbol(""),Nt=Symbol("");function de(e,t,n){if(Re&&re){let r=rr.get(e);r||rr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new nr),s.map=r,s.key=n),s.track()}}function Ge(e,t,n,r,s,i){const o=rr.get(e);if(!o){Pt++;return}const l=a=>{a&&a.trigger()};if(Zn(),t==="clear")o.forEach(l);else{const a=P(e),u=a&&Wn(n);if(a&&n==="length"){const f=Number(r);o.forEach((h,x)=>{(x==="length"||x===Nt||!Ne(x)&&x>=f)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),u&&l(o.get(Nt)),t){case"add":a?u&&l(o.get("length")):(l(o.get(dt)),xt(e)&&l(o.get(sr)));break;case"delete":a||(l(o.get(dt)),xt(e)&&l(o.get(sr)));break;case"set":xt(e)&&l(o.get(dt));break}}Qn()}function _t(e){const t=G(e);return t===e?t:(de(t,"iterate",Nt),Ae(e)?t:t.map(je))}function hn(e){return de(e=G(e),"iterate",Nt),e}function it(e,t){return Je(e)?Ct(ht(e)?je(t):t):je(t)}const co={__proto__:null,[Symbol.iterator](){return ir(this,Symbol.iterator,e=>it(this,e))},concat(...e){return _t(this).concat(...e.map(t=>P(t)?_t(t):t))},entries(){return ir(this,"entries",e=>(e[1]=it(this,e[1]),e))},every(e,t){return qe(this,"every",e,t,void 0,arguments)},filter(e,t){return qe(this,"filter",e,t,n=>n.map(r=>it(this,r)),arguments)},find(e,t){return qe(this,"find",e,t,n=>it(this,n),arguments)},findIndex(e,t){return qe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qe(this,"findLast",e,t,n=>it(this,n),arguments)},findLastIndex(e,t){return qe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qe(this,"forEach",e,t,void 0,arguments)},includes(...e){return or(this,"includes",e)},indexOf(...e){return or(this,"indexOf",e)},join(e){return _t(this).join(e)},lastIndexOf(...e){return or(this,"lastIndexOf",e)},map(e,t){return qe(this,"map",e,t,void 0,arguments)},pop(){return $t(this,"pop")},push(...e){return $t(this,"push",e)},reduce(e,...t){return rs(this,"reduce",e,t)},reduceRight(e,...t){return rs(this,"reduceRight",e,t)},shift(){return $t(this,"shift")},some(e,t){return qe(this,"some",e,t,void 0,arguments)},splice(...e){return $t(this,"splice",e)},toReversed(){return _t(this).toReversed()},toSorted(e){return _t(this).toSorted(e)},toSpliced(...e){return _t(this).toSpliced(...e)},unshift(...e){return $t(this,"unshift",e)},values(){return ir(this,"values",e=>it(this,e))}};function ir(e,t,n){const r=hn(e),s=r[t]();return r!==e&&!Ae(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const fo=Array.prototype;function qe(e,t,n,r,s,i){const o=hn(e),l=o!==e&&!Ae(e),a=o[t];if(a!==fo[t]){const h=a.apply(e,i);return l?je(h):h}let u=n;o!==e&&(l?u=function(h,x){return n.call(this,it(e,h),x,e)}:n.length>2&&(u=function(h,x){return n.call(this,h,x,e)}));const f=a.call(o,u,r);return l&&s?s(f):f}function rs(e,t,n,r){const s=hn(e);let i=n;return s!==e&&(Ae(e)?n.length>3&&(i=function(o,l,a){return n.call(this,o,l,a,e)}):i=function(o,l,a){return n.call(this,o,it(e,l),a,e)}),s[t](i,...r)}function or(e,t,n){const r=G(e);de(r,"iterate",Nt);const s=r[t](...n);return(s===-1||s===!1)&&cr(n[0])?(n[0]=G(n[0]),r[t](...n)):s}function $t(e,t,n=[]){$e(),Zn();const r=G(e)[t].apply(e,n);return Qn(),Le(),r}const uo=Hn("__proto__,__v_isRef,__isVue"),ss=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ne));function ho(e){Ne(e)||(e=String(e));const t=G(this);return de(t,"has",e),t.hasOwnProperty(e)}class is{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?us:fs:i?cs:as).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=P(t);if(!s){let a;if(o&&(a=co[n]))return a;if(n==="hasOwnProperty")return ho}const l=Reflect.get(t,n,ue(t)?t:r);if((Ne(n)?ss.has(n):uo(n))||(s||de(t,"get",n),i))return l;if(ue(l)){const a=o&&Wn(n)?l:l.value;return s&&X(a)?Lt(a):a}return X(l)?s?Lt(l):ar(l):l}}class os extends is{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=P(t)&&Wn(n);if(!this._isShallow){const u=Je(i);if(!Ae(r)&&!Je(r)&&(i=G(i),r=G(r)),!o&&ue(i)&&!ue(r))return u||(i.value=r),!0}const l=o?Number(n)<t.length:q(t,n),a=Reflect.set(t,n,r,ue(t)?t:s);return t===G(s)&&(l?st(r,i)&&Ge(t,"set",n,r):Ge(t,"add",n,r)),a}deleteProperty(t,n){const r=q(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Ge(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Ne(n)||!ss.has(n))&&de(t,"has",n),r}ownKeys(t){return de(t,"iterate",P(t)?"length":dt),Reflect.ownKeys(t)}}class ls extends is{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const po=new os,go=new ls,mo=new os(!0),yo=new ls(!0),lr=e=>e,pn=e=>Reflect.getPrototypeOf(e);function vo(e,t,n){return function(...r){const s=this.__v_raw,i=G(s),o=xt(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,u=s[e](...r),f=n?lr:t?Ct:je;return!t&&de(i,"iterate",a?sr:dt),oe(Object.create(u),{next(){const{value:h,done:x}=u.next();return x?{value:h,done:x}:{value:l?[f(h[0]),f(h[1])]:f(h),done:x}}})}}function gn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bo(e,t){const n={get(s){const i=this.__v_raw,o=G(i),l=G(s);e||(st(s,l)&&de(o,"get",s),de(o,"get",l));const{has:a}=pn(o),u=t?lr:e?Ct:je;if(a.call(o,s))return u(i.get(s));if(a.call(o,l))return u(i.get(l));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&de(G(s),"iterate",dt),s.size},has(s){const i=this.__v_raw,o=G(i),l=G(s);return e||(st(s,l)&&de(o,"has",s),de(o,"has",l)),s===l?i.has(s):i.has(s)||i.has(l)},forEach(s,i){const o=this,l=o.__v_raw,a=G(l),u=t?lr:e?Ct:je;return!e&&de(a,"iterate",dt),l.forEach((f,h)=>s.call(i,u(f),u(h),o))}};return oe(n,e?{add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear")}:{add(s){!t&&!Ae(s)&&!Je(s)&&(s=G(s));const i=G(this);return pn(i).has.call(i,s)||(i.add(s),Ge(i,"add",s,s)),this},set(s,i){!t&&!Ae(i)&&!Je(i)&&(i=G(i));const o=G(this),{has:l,get:a}=pn(o);let u=l.call(o,s);u||(s=G(s),u=l.call(o,s));const f=a.call(o,s);return o.set(s,i),u?st(i,f)&&Ge(o,"set",s,i):Ge(o,"add",s,i),this},delete(s){const i=G(this),{has:o,get:l}=pn(i);let a=o.call(i,s);a||(s=G(s),a=o.call(i,s)),l&&l.call(i,s);const u=i.delete(s);return a&&Ge(i,"delete",s,void 0),u},clear(){const s=G(this),i=s.size!==0,o=s.clear();return i&&Ge(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=vo(s,e,t)}),n}function mn(e,t){const n=bo(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(q(n,s)&&s in r?n:r,s,i)}const wo={get:mn(!1,!1)},xo={get:mn(!1,!0)},_o={get:mn(!0,!1)},Co={get:mn(!0,!0)},as=new WeakMap,cs=new WeakMap,fs=new WeakMap,us=new WeakMap;function So(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ko(e){return e.__v_skip||!Object.isExtensible(e)?0:So(Yi(e))}function ar(e){return Je(e)?e:yn(e,!1,po,wo,as)}function To(e){return yn(e,!1,mo,xo,cs)}function Lt(e){return yn(e,!0,go,_o,fs)}function kc(e){return yn(e,!0,yo,Co,us)}function yn(e,t,n,r,s){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=ko(e);if(i===0)return e;const o=s.get(e);if(o)return o;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function ht(e){return Je(e)?ht(e.__v_raw):!!(e&&e.__v_isReactive)}function Je(e){return!!(e&&e.__v_isReadonly)}function Ae(e){return!!(e&&e.__v_isShallow)}function cr(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Eo(e){return!q(e,"__v_skip")&&Object.isExtensible(e)&&Vr(e,"__v_skip",!0),e}const je=e=>X(e)?ar(e):e,Ct=e=>X(e)?Lt(e):e;function ue(e){return e?e.__v_isRef===!0:!1}function Ce(e){return Ao(e,!1)}function Ao(e,t){return ue(e)?e:new Mo(e,t)}class Mo{constructor(t,n){this.dep=new nr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:G(t),this._value=n?t:je(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ae(t)||Je(t);t=r?t:G(t),st(t,n)&&(this._rawValue=t,this._value=r?t:je(t),this.dep.trigger())}}function Ye(e){return ue(e)?e.value:e}const Oo={get:(e,t,n)=>t==="__v_raw"?e:Ye(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ue(s)&&!ue(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function ds(e){return ht(e)?e:new Proxy(e,Oo)}class Io{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new nr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&re!==this)return Yr(this,!0),!0}get value(){const t=this.dep.track();return Qr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ro(e,t,n=!1){let r,s;return L(e)?r=e:(r=e.get,s=e.set),new Io(r,s,n)}const vn={},bn=new WeakMap;let pt;function jo(e,t=!1,n=pt){if(n){let r=bn.get(n);r||bn.set(n,r=[]),r.push(e)}}function Fo(e,t,n=te){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:l,call:a}=n,u=b=>s?b:Ae(b)||s===!1||s===0?Xe(b,1):Xe(b);let f,h,x,_,$=!1,R=!1;if(ue(e)?(h=()=>e.value,$=Ae(e)):ht(e)?(h=()=>u(e),$=!0):P(e)?(R=!0,$=e.some(b=>ht(b)||Ae(b)),h=()=>e.map(b=>{if(ue(b))return b.value;if(ht(b))return u(b);if(L(b))return a?a(b,2):b()})):L(e)?t?h=a?()=>a(e,2):e:h=()=>{if(x){$e();try{x()}finally{Le()}}const b=pt;pt=f;try{return a?a(e,3,[_]):e(_)}finally{pt=b}}:h=Pe,t&&s){const b=h,M=s===!0?1/0:s;h=()=>Xe(b(),M)}const J=oo(),V=()=>{f.stop(),J&&J.active&&zn(J.effects,f)};if(i&&t){const b=t;t=(...M)=>{b(...M),V()}}let D=R?new Array(e.length).fill(vn):vn;const j=b=>{if(!(!(f.flags&1)||!f.dirty&&!b))if(t){const M=f.run();if(s||$||(R?M.some((z,ce)=>st(z,D[ce])):st(M,D))){x&&x();const z=pt;pt=f;try{const ce=[M,D===vn?void 0:R&&D[0]===vn?[]:D,_];D=M,a?a(t,3,ce):t(...ce)}finally{pt=z}}}else f.run()};return l&&l(j),f=new qr(h),f.scheduler=o?()=>o(j,!1):j,_=b=>jo(b,!1,f),x=f.onStop=()=>{const b=bn.get(f);if(b){if(a)a(b,4);else for(const M of b)M();bn.delete(f)}},t?r?j(!0):D=f.run():o?o(j.bind(null,!0),!0):f.run(),V.pause=f.pause.bind(f),V.resume=f.resume.bind(f),V.stop=V,V}function Xe(e,t=1/0,n){if(t<=0||!X(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ue(e))Xe(e.value,t,n);else if(P(e))for(let r=0;r<e.length;r++)Xe(e[r],t,n);else if(Lr(e)||xt(e))e.forEach(r=>{Xe(r,t,n)});else if(an(e)){for(const r in e)Xe(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Xe(e[r],t,n)}return e}/**
|
|
9
|
+
**/let be;class io{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=be,!t&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=be;try{return be=this,t()}finally{be=n}}}on(){++this._on===1&&(this.prevScope=be,be=this)}off(){this._on>0&&--this._on===0&&(be=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=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}}}function oo(){return be}let re;const Xn=new WeakSet;class qr{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,be&&be.active&&be.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Xn.has(this)&&(Xn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Yr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ts(this),Xr(this);const t=re,n=Re;re=this,Re=!0;try{return this.fn()}finally{Zr(this),re=t,Re=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)tr(t);this.deps=this.depsTail=void 0,ts(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Xn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){er(this)&&this.run()}get dirty(){return er(this)}}let Jr=0,jt,Ft;function Yr(e,t=!1){if(e.flags|=8,t){e.next=Ft,Ft=e;return}e.next=jt,jt=e}function Zn(){Jr++}function Qn(){if(--Jr>0)return;if(Ft){let t=Ft;for(Ft=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;jt;){let t=jt;for(jt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Xr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Zr(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),tr(r),lo(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function er(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Qr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Qr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Pt)||(e.globalVersion=Pt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!er(e))))return;e.flags|=2;const t=e.dep,n=re,r=Re;re=e,Re=!0;try{Xr(e);const s=e.fn(e._value);(t.version===0||st(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{re=n,Re=r,Zr(e),e.flags&=-3}}function tr(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)tr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function lo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Re=!0;const es=[];function Ne(){es.push(Re),Re=!1}function Le(){const e=es.pop();Re=e===void 0?!0:e}function ts(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=re;re=void 0;try{t()}finally{re=n}}}let Pt=0;class ao{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class nr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!re||!Re||re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==re)n=this.activeLink=new ao(re,this),re.deps?(n.prevDep=re.depsTail,re.depsTail.nextDep=n,re.depsTail=n):re.deps=re.depsTail=n,ns(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=re.depsTail,n.nextDep=void 0,re.depsTail.nextDep=n,re.depsTail=n,re.deps===n&&(re.deps=r)}return n}trigger(t){this.version++,Pt++,this.notify(t)}notify(t){Zn();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Qn()}}}function ns(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)ns(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const rr=new WeakMap,dt=Symbol(""),sr=Symbol(""),$t=Symbol("");function de(e,t,n){if(Re&&re){let r=rr.get(e);r||rr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new nr),s.map=r,s.key=n),s.track()}}function Ge(e,t,n,r,s,i){const o=rr.get(e);if(!o){Pt++;return}const l=a=>{a&&a.trigger()};if(Zn(),t==="clear")o.forEach(l);else{const a=P(e),u=a&&zn(n);if(a&&n==="length"){const f=Number(r);o.forEach((h,x)=>{(x==="length"||x===$t||!$e(x)&&x>=f)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),u&&l(o.get($t)),t){case"add":a?u&&l(o.get("length")):(l(o.get(dt)),xt(e)&&l(o.get(sr)));break;case"delete":a||(l(o.get(dt)),xt(e)&&l(o.get(sr)));break;case"set":xt(e)&&l(o.get(dt));break}}Qn()}function _t(e){const t=G(e);return t===e?t:(de(t,"iterate",$t),Ae(e)?t:t.map(je))}function hn(e){return de(e=G(e),"iterate",$t),e}function it(e,t){return Je(e)?Ct(ht(e)?je(t):t):je(t)}const co={__proto__:null,[Symbol.iterator](){return ir(this,Symbol.iterator,e=>it(this,e))},concat(...e){return _t(this).concat(...e.map(t=>P(t)?_t(t):t))},entries(){return ir(this,"entries",e=>(e[1]=it(this,e[1]),e))},every(e,t){return qe(this,"every",e,t,void 0,arguments)},filter(e,t){return qe(this,"filter",e,t,n=>n.map(r=>it(this,r)),arguments)},find(e,t){return qe(this,"find",e,t,n=>it(this,n),arguments)},findIndex(e,t){return qe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qe(this,"findLast",e,t,n=>it(this,n),arguments)},findLastIndex(e,t){return qe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qe(this,"forEach",e,t,void 0,arguments)},includes(...e){return or(this,"includes",e)},indexOf(...e){return or(this,"indexOf",e)},join(e){return _t(this).join(e)},lastIndexOf(...e){return or(this,"lastIndexOf",e)},map(e,t){return qe(this,"map",e,t,void 0,arguments)},pop(){return Nt(this,"pop")},push(...e){return Nt(this,"push",e)},reduce(e,...t){return rs(this,"reduce",e,t)},reduceRight(e,...t){return rs(this,"reduceRight",e,t)},shift(){return Nt(this,"shift")},some(e,t){return qe(this,"some",e,t,void 0,arguments)},splice(...e){return Nt(this,"splice",e)},toReversed(){return _t(this).toReversed()},toSorted(e){return _t(this).toSorted(e)},toSpliced(...e){return _t(this).toSpliced(...e)},unshift(...e){return Nt(this,"unshift",e)},values(){return ir(this,"values",e=>it(this,e))}};function ir(e,t,n){const r=hn(e),s=r[t]();return r!==e&&!Ae(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const fo=Array.prototype;function qe(e,t,n,r,s,i){const o=hn(e),l=o!==e&&!Ae(e),a=o[t];if(a!==fo[t]){const h=a.apply(e,i);return l?je(h):h}let u=n;o!==e&&(l?u=function(h,x){return n.call(this,it(e,h),x,e)}:n.length>2&&(u=function(h,x){return n.call(this,h,x,e)}));const f=a.call(o,u,r);return l&&s?s(f):f}function rs(e,t,n,r){const s=hn(e);let i=n;return s!==e&&(Ae(e)?n.length>3&&(i=function(o,l,a){return n.call(this,o,l,a,e)}):i=function(o,l,a){return n.call(this,o,it(e,l),a,e)}),s[t](i,...r)}function or(e,t,n){const r=G(e);de(r,"iterate",$t);const s=r[t](...n);return(s===-1||s===!1)&&cr(n[0])?(n[0]=G(n[0]),r[t](...n)):s}function Nt(e,t,n=[]){Ne(),Zn();const r=G(e)[t].apply(e,n);return Qn(),Le(),r}const uo=Hn("__proto__,__v_isRef,__isVue"),ss=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($e));function ho(e){$e(e)||(e=String(e));const t=G(this);return de(t,"has",e),t.hasOwnProperty(e)}class is{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?us:fs:i?cs:as).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=P(t);if(!s){let a;if(o&&(a=co[n]))return a;if(n==="hasOwnProperty")return ho}const l=Reflect.get(t,n,ue(t)?t:r);if(($e(n)?ss.has(n):uo(n))||(s||de(t,"get",n),i))return l;if(ue(l)){const a=o&&zn(n)?l:l.value;return s&&X(a)?Lt(a):a}return X(l)?s?Lt(l):ar(l):l}}class os extends is{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=P(t)&&zn(n);if(!this._isShallow){const u=Je(i);if(!Ae(r)&&!Je(r)&&(i=G(i),r=G(r)),!o&&ue(i)&&!ue(r))return u||(i.value=r),!0}const l=o?Number(n)<t.length:q(t,n),a=Reflect.set(t,n,r,ue(t)?t:s);return t===G(s)&&(l?st(r,i)&&Ge(t,"set",n,r):Ge(t,"add",n,r)),a}deleteProperty(t,n){const r=q(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Ge(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!$e(n)||!ss.has(n))&&de(t,"has",n),r}ownKeys(t){return de(t,"iterate",P(t)?"length":dt),Reflect.ownKeys(t)}}class ls extends is{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const po=new os,go=new ls,mo=new os(!0),yo=new ls(!0),lr=e=>e,pn=e=>Reflect.getPrototypeOf(e);function vo(e,t,n){return function(...r){const s=this.__v_raw,i=G(s),o=xt(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,u=s[e](...r),f=n?lr:t?Ct:je;return!t&&de(i,"iterate",a?sr:dt),oe(Object.create(u),{next(){const{value:h,done:x}=u.next();return x?{value:h,done:x}:{value:l?[f(h[0]),f(h[1])]:f(h),done:x}}})}}function gn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bo(e,t){const n={get(s){const i=this.__v_raw,o=G(i),l=G(s);e||(st(s,l)&&de(o,"get",s),de(o,"get",l));const{has:a}=pn(o),u=t?lr:e?Ct:je;if(a.call(o,s))return u(i.get(s));if(a.call(o,l))return u(i.get(l));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&de(G(s),"iterate",dt),s.size},has(s){const i=this.__v_raw,o=G(i),l=G(s);return e||(st(s,l)&&de(o,"has",s),de(o,"has",l)),s===l?i.has(s):i.has(s)||i.has(l)},forEach(s,i){const o=this,l=o.__v_raw,a=G(l),u=t?lr:e?Ct:je;return!e&&de(a,"iterate",dt),l.forEach((f,h)=>s.call(i,u(f),u(h),o))}};return oe(n,e?{add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear")}:{add(s){!t&&!Ae(s)&&!Je(s)&&(s=G(s));const i=G(this);return pn(i).has.call(i,s)||(i.add(s),Ge(i,"add",s,s)),this},set(s,i){!t&&!Ae(i)&&!Je(i)&&(i=G(i));const o=G(this),{has:l,get:a}=pn(o);let u=l.call(o,s);u||(s=G(s),u=l.call(o,s));const f=a.call(o,s);return o.set(s,i),u?st(i,f)&&Ge(o,"set",s,i):Ge(o,"add",s,i),this},delete(s){const i=G(this),{has:o,get:l}=pn(i);let a=o.call(i,s);a||(s=G(s),a=o.call(i,s)),l&&l.call(i,s);const u=i.delete(s);return a&&Ge(i,"delete",s,void 0),u},clear(){const s=G(this),i=s.size!==0,o=s.clear();return i&&Ge(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=vo(s,e,t)}),n}function mn(e,t){const n=bo(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(q(n,s)&&s in r?n:r,s,i)}const wo={get:mn(!1,!1)},xo={get:mn(!1,!0)},_o={get:mn(!0,!1)},Co={get:mn(!0,!0)},as=new WeakMap,cs=new WeakMap,fs=new WeakMap,us=new WeakMap;function So(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ko(e){return e.__v_skip||!Object.isExtensible(e)?0:So(Yi(e))}function ar(e){return Je(e)?e:yn(e,!1,po,wo,as)}function To(e){return yn(e,!1,mo,xo,cs)}function Lt(e){return yn(e,!0,go,_o,fs)}function kc(e){return yn(e,!0,yo,Co,us)}function yn(e,t,n,r,s){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=ko(e);if(i===0)return e;const o=s.get(e);if(o)return o;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function ht(e){return Je(e)?ht(e.__v_raw):!!(e&&e.__v_isReactive)}function Je(e){return!!(e&&e.__v_isReadonly)}function Ae(e){return!!(e&&e.__v_isShallow)}function cr(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Eo(e){return!q(e,"__v_skip")&&Object.isExtensible(e)&&Vr(e,"__v_skip",!0),e}const je=e=>X(e)?ar(e):e,Ct=e=>X(e)?Lt(e):e;function ue(e){return e?e.__v_isRef===!0:!1}function Se(e){return Ao(e,!1)}function Ao(e,t){return ue(e)?e:new Mo(e,t)}class Mo{constructor(t,n){this.dep=new nr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:G(t),this._value=n?t:je(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ae(t)||Je(t);t=r?t:G(t),st(t,n)&&(this._rawValue=t,this._value=r?t:je(t),this.dep.trigger())}}function Ye(e){return ue(e)?e.value:e}const Oo={get:(e,t,n)=>t==="__v_raw"?e:Ye(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ue(s)&&!ue(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function ds(e){return ht(e)?e:new Proxy(e,Oo)}class Io{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new nr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&re!==this)return Yr(this,!0),!0}get value(){const t=this.dep.track();return Qr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ro(e,t,n=!1){let r,s;return L(e)?r=e:(r=e.get,s=e.set),new Io(r,s,n)}const vn={},bn=new WeakMap;let pt;function jo(e,t=!1,n=pt){if(n){let r=bn.get(n);r||bn.set(n,r=[]),r.push(e)}}function Fo(e,t,n=te){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:l,call:a}=n,u=b=>s?b:Ae(b)||s===!1||s===0?Xe(b,1):Xe(b);let f,h,x,_,N=!1,R=!1;if(ue(e)?(h=()=>e.value,N=Ae(e)):ht(e)?(h=()=>u(e),N=!0):P(e)?(R=!0,N=e.some(b=>ht(b)||Ae(b)),h=()=>e.map(b=>{if(ue(b))return b.value;if(ht(b))return u(b);if(L(b))return a?a(b,2):b()})):L(e)?t?h=a?()=>a(e,2):e:h=()=>{if(x){Ne();try{x()}finally{Le()}}const b=pt;pt=f;try{return a?a(e,3,[_]):e(_)}finally{pt=b}}:h=Pe,t&&s){const b=h,M=s===!0?1/0:s;h=()=>Xe(b(),M)}const J=oo(),V=()=>{f.stop(),J&&J.active&&Wn(J.effects,f)};if(i&&t){const b=t;t=(...M)=>{b(...M),V()}}let D=R?new Array(e.length).fill(vn):vn;const j=b=>{if(!(!(f.flags&1)||!f.dirty&&!b))if(t){const M=f.run();if(s||N||(R?M.some((W,ce)=>st(W,D[ce])):st(M,D))){x&&x();const W=pt;pt=f;try{const ce=[M,D===vn?void 0:R&&D[0]===vn?[]:D,_];D=M,a?a(t,3,ce):t(...ce)}finally{pt=W}}}else f.run()};return l&&l(j),f=new qr(h),f.scheduler=o?()=>o(j,!1):j,_=b=>jo(b,!1,f),x=f.onStop=()=>{const b=bn.get(f);if(b){if(a)a(b,4);else for(const M of b)M();bn.delete(f)}},t?r?j(!0):D=f.run():o?o(j.bind(null,!0),!0):f.run(),V.pause=f.pause.bind(f),V.resume=f.resume.bind(f),V.stop=V,V}function Xe(e,t=1/0,n){if(t<=0||!X(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ue(e))Xe(e.value,t,n);else if(P(e))for(let r=0;r<e.length;r++)Xe(e[r],t,n);else if(Lr(e)||xt(e))e.forEach(r=>{Xe(r,t,n)});else if(an(e)){for(const r in e)Xe(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Xe(e[r],t,n)}return e}/**
|
|
10
10
|
* @vue/runtime-core v3.5.29
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const Dt=[];let fr=!1;function Tc(e,...t){if(fr)return;fr=!0
|
|
13
|
+
**/const Dt=[];let fr=!1;function Tc(e,...t){if(fr)return;fr=!0,Ne();const n=Dt.length?Dt[Dt.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=Po();if(r)St(r,n,11,[e+t.map(i=>{var o,l;return(l=(o=i.toString)==null?void 0:o.call(i))!=null?l:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${gi(n,i.type)}>`).join(`
|
|
14
14
|
`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
|
|
15
|
-
|
|
16
|
-
`],...$o(n))}),t}function $o({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${gi(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...Lo(e.props),i]:[s+i]}function Lo(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...hs(r,e[r]))}),n.length>3&&t.push(" ..."),t}function hs(e,t,n){return le(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ue(t)?(t=hs(e,G(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):L(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=G(t),n?t:[`${e}=`,t])}function St(e,t,n,r){try{return r?e(...r):e()}catch(s){wn(s,t,n)}}function Fe(e,t,n,r){if(L(e)){const s=St(e,t,n,r);return s&&Ur(s)&&s.catch(i=>{wn(i,t,n)}),s}if(P(e)){const s=[];for(let i=0;i<e.length;i++)s.push(Fe(e[i],t,n,r));return s}}function wn(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||te;if(t){let l=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const f=l.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,a,u)===!1)return}l=l.parent}if(i){$e(),St(i,null,10,[e,a,u]),Le();return}}Do(e,n,s,r,o)}function Do(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const pe=[];let De=-1;const kt=[];let ot=null,Tt=0;const ps=Promise.resolve();let xn=null;function Et(e){const t=xn||ps;return e?t.then(this?e.bind(this):e):t}function Uo(e){let t=De+1,n=pe.length;for(;t<n;){const r=t+n>>>1,s=pe[r],i=Ut(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function ur(e){if(!(e.flags&1)){const t=Ut(e),n=pe[pe.length-1];!n||!(e.flags&2)&&t>=Ut(n)?pe.push(e):pe.splice(Uo(t),0,e),e.flags|=1,gs()}}function gs(){xn||(xn=ps.then(vs))}function Bo(e){P(e)?kt.push(...e):ot&&e.id===-1?ot.splice(Tt+1,0,e):e.flags&1||(kt.push(e),e.flags|=1),gs()}function ms(e,t,n=De+1){for(;n<pe.length;n++){const r=pe[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;pe.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function ys(e){if(kt.length){const t=[...new Set(kt)].sort((n,r)=>Ut(n)-Ut(r));if(kt.length=0,ot){ot.push(...t);return}for(ot=t,Tt=0;Tt<ot.length;Tt++){const n=ot[Tt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ot=null,Tt=0}}const Ut=e=>e.id==null?e.flags&2?-1:1/0:e.id;function vs(e){try{for(De=0;De<pe.length;De++){const t=pe[De];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),St(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;De<pe.length;De++){const t=pe[De];t&&(t.flags&=-2)}De=-1,pe.length=0,ys(),xn=null,(pe.length||kt.length)&&vs()}}let Me=null,bs=null;function _n(e){const t=Me;return Me=e,bs=e&&e.type.__scopeId||null,t}function ws(e,t=Me,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Rn(-1);const i=_n(t);let o;try{o=e(...s)}finally{_n(i),r._d&&Rn(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function dr(e,t){if(Me===null)return e;const n=Nn(Me),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,l,a=te]=t[s];i&&(L(i)&&(i={mounted:i,updated:i}),i.deep&&Xe(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function gt(e,t,n,r){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[r];a&&($e(),Fe(a,n,8,[e.el,l,e,t]),Le())}}function Ho(e,t){if(ve){let n=ve.provides;const r=ve.parent&&ve.parent.provides;r===n&&(n=ve.provides=Object.create(r)),n[e]=t}}function Cn(e,t,n=!1){const r=fi();if(r||Mt){let s=Mt?Mt._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&L(t)?t.call(r&&r.proxy):t}}const Vo=Symbol.for("v-scx"),zo=()=>Cn(Vo);function lt(e,t,n){return xs(e,t,n)}function xs(e,t,n=te){const{immediate:r,deep:s,flush:i,once:o}=n,l=oe({},n),a=t&&r||!t&&i!=="post";let u;if(Xt){if(i==="sync"){const _=zo();u=_.__watcherHandles||(_.__watcherHandles=[])}else if(!a){const _=()=>{};return _.stop=Pe,_.resume=Pe,_.pause=Pe,_}}const f=ve;l.call=(_,$,R)=>Fe(_,f,$,R);let h=!1;i==="post"?l.scheduler=_=>{we(_,f&&f.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(_,$)=>{$?_():ur(_)}),l.augmentJob=_=>{t&&(_.flags|=4),h&&(_.flags|=2,f&&(_.id=f.uid,_.i=f))};const x=Fo(e,t,l);return Xt&&(u?u.push(x):a&&x()),x}function Wo(e,t,n){const r=this.proxy,s=le(e)?e.includes(".")?_s(r,e):()=>r[e]:e.bind(r,r);let i;L(t)?i=t:(i=t.handler,n=t);const o=Yt(this),l=xs(s,i.bind(r),n);return o(),l}function _s(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Ko=Symbol("_vte"),Cs=e=>e.__isTeleport,Ue=Symbol("_leaveCb"),Bt=Symbol("_enterCb");function Go(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gr(()=>{e.isMounted=!0}),Fs(()=>{e.isUnmounting=!0}),e}const Oe=[Function,Array],Ss={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Oe,onEnter:Oe,onAfterEnter:Oe,onEnterCancelled:Oe,onBeforeLeave:Oe,onLeave:Oe,onAfterLeave:Oe,onLeaveCancelled:Oe,onBeforeAppear:Oe,onAppear:Oe,onAfterAppear:Oe,onAppearCancelled:Oe},ks=e=>{const t=e.subTree;return t.component?ks(t.component):t},qo={name:"BaseTransition",props:Ss,setup(e,{slots:t}){const n=fi(),r=Go();return()=>{const s=t.default&&Ms(t.default(),!0);if(!s||!s.length)return;const i=Ts(s),o=G(e),{mode:l}=o;if(r.isLeaving)return pr(i);const a=As(i);if(!a)return pr(i);let u=hr(a,o,r,n,h=>u=h);a.type!==ye&&Ht(a,u);let f=n.subTree&&As(n.subTree);if(f&&f.type!==ye&&!yt(f,a)&&ks(n).type!==ye){let h=hr(f,o,r,n);if(Ht(f,h),l==="out-in"&&a.type!==ye)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,f=void 0},pr(i);l==="in-out"&&a.type!==ye?h.delayLeave=(x,_,$)=>{const R=Es(r,f);R[String(f.key)]=f,x[Ue]=()=>{_(),x[Ue]=void 0,delete u.delayedLeave,f=void 0},u.delayedLeave=()=>{$(),delete u.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return i}}};function Ts(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ye){t=n;break}}return t}const Jo=qo;function Es(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function hr(e,t,n,r,s){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:x,onLeave:_,onAfterLeave:$,onLeaveCancelled:R,onBeforeAppear:J,onAppear:V,onAfterAppear:D,onAppearCancelled:j}=t,b=String(e.key),M=Es(n,e),z=(H,Y)=>{H&&Fe(H,r,9,Y)},ce=(H,Y)=>{const O=Y[1];z(H,Y),P(H)?H.every(g=>g.length<=1)&&O():H.length<=1&&O()},he={mode:o,persisted:l,beforeEnter(H){let Y=a;if(!n.isMounted)if(i)Y=J||a;else return;H[Ue]&&H[Ue](!0);const O=M[b];O&&yt(e,O)&&O.el[Ue]&&O.el[Ue](),z(Y,[H])},enter(H){if(M[b]===e)return;let Y=u,O=f,g=h;if(!n.isMounted)if(i)Y=V||u,O=D||f,g=j||h;else return;let C=!1;H[Bt]=B=>{C||(C=!0,B?z(g,[H]):z(O,[H]),he.delayedLeave&&he.delayedLeave(),H[Bt]=void 0)};const I=H[Bt].bind(null,!1);Y?ce(Y,[H,I]):I()},leave(H,Y){const O=String(e.key);if(H[Bt]&&H[Bt](!0),n.isUnmounting)return Y();z(x,[H]);let g=!1;H[Ue]=I=>{g||(g=!0,Y(),I?z(R,[H]):z($,[H]),H[Ue]=void 0,M[O]===e&&delete M[O])};const C=H[Ue].bind(null,!1);M[O]=e,_?ce(_,[H,C]):C()},clone(H){const Y=hr(H,t,n,r,s);return s&&s(Y),Y}};return he}function pr(e){if(kn(e))return e=at(e),e.children=null,e}function As(e){if(!kn(e))return Cs(e.type)&&e.children?Ts(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&L(n.default))return n.default()}}function Ht(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ht(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ms(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===me?(o.patchFlag&128&&s++,r=r.concat(Ms(o.children,t,l))):(t||o.type!==ye)&&r.push(l!=null?at(o,{key:l}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function At(e,t){return L(e)?oe({name:e.name},t,{setup:e}):e}function Os(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Is(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Sn=new WeakMap;function Vt(e,t,n,r,s=!1){if(P(e)){e.forEach((R,J)=>Vt(R,t&&(P(t)?t[J]:t),n,r,s));return}if(zt(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Vt(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?Nn(r.component):r.el,o=s?null:i,{i:l,r:a}=e,u=t&&t.r,f=l.refs===te?l.refs={}:l.refs,h=l.setupState,x=G(h),_=h===te?$r:R=>Is(f,R)?!1:q(x,R),$=(R,J)=>!(J&&Is(f,J));if(u!=null&&u!==a){if(Rs(t),le(u))f[u]=null,_(u)&&(h[u]=null);else if(ue(u)){const R=t;$(u,R.k)&&(u.value=null),R.k&&(f[R.k]=null)}}if(L(a))St(a,l,12,[o,f]);else{const R=le(a),J=ue(a);if(R||J){const V=()=>{if(e.f){const D=R?_(a)?h[a]:f[a]:$()||!e.k?a.value:f[e.k];if(s)P(D)&&zn(D,i);else if(P(D))D.includes(i)||D.push(i);else if(R)f[a]=[i],_(a)&&(h[a]=f[a]);else{const j=[i];$(a,e.k)&&(a.value=j),e.k&&(f[e.k]=j)}}else R?(f[a]=o,_(a)&&(h[a]=o)):J&&($(a,e.k)&&(a.value=o),e.k&&(f[e.k]=o))};if(o){const D=()=>{V(),Sn.delete(e)};D.id=-1,Sn.set(e,D),we(D,n)}else Rs(e),V()}}}function Rs(e){const t=Sn.get(e);t&&(t.flags|=8,Sn.delete(e))}un().requestIdleCallback,un().cancelIdleCallback;const zt=e=>!!e.type.__asyncLoader,kn=e=>e.type.__isKeepAlive;function Yo(e,t){js(e,"a",t)}function Xo(e,t){js(e,"da",t)}function js(e,t,n=ve){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Tn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)kn(s.parent.vnode)&&Zo(r,t,n,s),s=s.parent}}function Zo(e,t,n,r){const s=Tn(t,e,r,!0);En(()=>{zn(r[t],s)},n)}function Tn(e,t,n=ve,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{$e();const l=Yt(n),a=Fe(t,n,e,o);return l(),Le(),a});return r?s.unshift(i):s.push(i),i}}const Ze=e=>(t,n=ve)=>{(!Xt||e==="sp")&&Tn(e,(...r)=>t(...r),n)},Qo=Ze("bm"),gr=Ze("m"),el=Ze("bu"),tl=Ze("u"),Fs=Ze("bum"),En=Ze("um"),nl=Ze("sp"),rl=Ze("rtg"),sl=Ze("rtc");function il(e,t=ve){Tn("ec",e,t)}const ol=Symbol.for("v-ndc");function Ps(e,t,n,r){let s;const i=n,o=P(e);if(o||le(e)){const l=o&&ht(e);let a=!1,u=!1;l&&(a=!Ae(e),u=Je(e),e=hn(e)),s=new Array(e.length);for(let f=0,h=e.length;f<h;f++)s[f]=t(a?u?Ct(je(e[f])):je(e[f]):e[f],f,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,i)}else if(X(e))if(e[Symbol.iterator])s=Array.from(e,(l,a)=>t(l,a,void 0,i));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,u=l.length;a<u;a++){const f=l[a];s[a]=t(e[f],f,a,i)}}else s=[];return s}const mr=e=>e?di(e)?Nn(e):mr(e.parent):null,Wt=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=>mr(e.parent),$root:e=>mr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ds(e),$forceUpdate:e=>e.f||(e.f=()=>{ur(e.update)}),$nextTick:e=>e.n||(e.n=Et.bind(e.proxy)),$watch:e=>Wo.bind(e)}),yr=(e,t)=>e!==te&&!e.__isScriptSetup&&q(e,t),ll={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:l,appContext:a}=e;if(t[0]!=="$"){const x=o[t];if(x!==void 0)switch(x){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(yr(r,t))return o[t]=1,r[t];if(s!==te&&q(s,t))return o[t]=2,s[t];if(q(i,t))return o[t]=3,i[t];if(n!==te&&q(n,t))return o[t]=4,n[t];vr&&(o[t]=0)}}const u=Wt[t];let f,h;if(u)return t==="$attrs"&&de(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==te&&q(n,t))return o[t]=4,n[t];if(h=a.config.globalProperties,q(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return yr(s,t)?(s[t]=n,!0):r!==te&&q(r,t)?(r[t]=n,!0):q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},l){let a;return!!(n[l]||e!==te&&l[0]!=="$"&&q(e,l)||yr(t,l)||q(i,l)||q(r,l)||q(Wt,l)||q(s.config.globalProperties,l)||(a=o.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ns(e){return P(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let vr=!0;function al(e){const t=Ds(e),n=e.proxy,r=e.ctx;vr=!1,t.beforeCreate&&$s(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:l,provide:a,inject:u,created:f,beforeMount:h,mounted:x,beforeUpdate:_,updated:$,activated:R,deactivated:J,beforeDestroy:V,beforeUnmount:D,destroyed:j,unmounted:b,render:M,renderTracked:z,renderTriggered:ce,errorCaptured:he,serverPrefetch:H,expose:Y,inheritAttrs:O,components:g,directives:C,filters:I}=t;if(u&&cl(u,r,null),o)for(const W in o){const Q=o[W];L(Q)&&(r[W]=Q.bind(n))}if(s){const W=s.call(n,n);X(W)&&(e.data=ar(W))}if(vr=!0,i)for(const W in i){const Q=i[W],ft=L(Q)?Q.bind(n,n):L(Q.get)?Q.get.bind(n,n):Pe,nt=!L(Q)&&L(Q.set)?Q.set.bind(n):Pe,rt=ke({get:ft,set:nt});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Ve=>rt.value=Ve})}if(l)for(const W in l)Ls(l[W],r,n,W);if(a){const W=L(a)?a.call(n):a;Reflect.ownKeys(W).forEach(Q=>{Ho(Q,W[Q])})}f&&$s(f,e,"c");function Z(W,Q){P(Q)?Q.forEach(ft=>W(ft.bind(n))):Q&&W(Q.bind(n))}if(Z(Qo,h),Z(gr,x),Z(el,_),Z(tl,$),Z(Yo,R),Z(Xo,J),Z(il,he),Z(sl,z),Z(rl,ce),Z(Fs,D),Z(En,b),Z(nl,H),P(Y))if(Y.length){const W=e.exposed||(e.exposed={});Y.forEach(Q=>{Object.defineProperty(W,Q,{get:()=>n[Q],set:ft=>n[Q]=ft,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===Pe&&(e.render=M),O!=null&&(e.inheritAttrs=O),g&&(e.components=g),C&&(e.directives=C),H&&Os(e)}function cl(e,t,n=Pe){P(e)&&(e=br(e));for(const r in e){const s=e[r];let i;X(s)?"default"in s?i=Cn(s.from||r,s.default,!0):i=Cn(s.from||r):i=Cn(s),ue(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function $s(e,t,n){Fe(P(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ls(e,t,n,r){let s=r.includes(".")?_s(n,r):()=>n[r];if(le(e)){const i=t[e];L(i)&<(s,i)}else if(L(e))lt(s,e.bind(n));else if(X(e))if(P(e))e.forEach(i=>Ls(i,t,n,r));else{const i=L(e.handler)?e.handler.bind(n):t[e.handler];L(i)&<(s,i,e)}}function Ds(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(u=>An(a,u,o,!0)),An(a,t,o)),X(t)&&i.set(t,a),a}function An(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&An(e,i,n,!0),s&&s.forEach(o=>An(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const l=fl[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const fl={data:Us,props:Bs,emits:Bs,methods:Kt,computed:Kt,beforeCreate:ge,created:ge,beforeMount:ge,mounted:ge,beforeUpdate:ge,updated:ge,beforeDestroy:ge,beforeUnmount:ge,destroyed:ge,unmounted:ge,activated:ge,deactivated:ge,errorCaptured:ge,serverPrefetch:ge,components:Kt,directives:Kt,watch:dl,provide:Us,inject:ul};function Us(e,t){return t?e?function(){return oe(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function ul(e,t){return Kt(br(e),br(t))}function br(e){if(P(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ge(e,t){return e?[...new Set([].concat(e,t))]:t}function Kt(e,t){return e?oe(Object.create(null),e,t):t}function Bs(e,t){return e?P(e)&&P(t)?[...new Set([...e,...t])]:oe(Object.create(null),Ns(e),Ns(t??{})):t}function dl(e,t){if(!e)return t;if(!t)return e;const n=oe(Object.create(null),e);for(const r in t)n[r]=ge(e[r],t[r]);return n}function Hs(){return{app:null,config:{isNativeTag:$r,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 hl=0;function pl(e,t){return function(r,s=null){L(r)||(r=oe({},r)),s!=null&&!X(s)&&(s=null);const i=Hs(),o=new WeakSet,l=[];let a=!1;const u=i.app={_uid:hl++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Xl,get config(){return i.config},set config(f){},use(f,...h){return o.has(f)||(f&&L(f.install)?(o.add(f),f.install(u,...h)):L(f)&&(o.add(f),f(u,...h))),u},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),u},component(f,h){return h?(i.components[f]=h,u):i.components[f]},directive(f,h){return h?(i.directives[f]=h,u):i.directives[f]},mount(f,h,x){if(!a){const _=u._ceVNode||ae(r,s);return _.appContext=i,x===!0?x="svg":x===!1&&(x=void 0),e(_,f,x),a=!0,u._container=f,f.__vue_app__=u,Nn(_.component)}},onUnmount(f){l.push(f)},unmount(){a&&(Fe(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(f,h){return i.provides[f]=h,u},runWithContext(f){const h=Mt;Mt=u;try{return f()}finally{Mt=h}}};return u}}let Mt=null;const gl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ie(t)}Modifiers`]||e[`${Ee(t)}Modifiers`];function ml(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||te;let s=n;const i=t.startsWith("update:"),o=i&&gl(r,t.slice(7));o&&(o.trim&&(s=n.map(f=>le(f)?f.trim():f)),o.number&&(s=n.map(Gn)));let l,a=r[l=Kn(t)]||r[l=Kn(Ie(t))];!a&&i&&(a=r[l=Kn(Ee(t))]),a&&Fe(a,e,6,s);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Fe(u,e,6,s)}}const yl=new WeakMap;function Vs(e,t,n=!1){const r=n?yl:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},l=!1;if(!L(e)){const a=u=>{const f=Vs(u,t,!0);f&&(l=!0,oe(o,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(X(e)&&r.set(e,null),null):(P(i)?i.forEach(a=>o[a]=null):oe(o,i),X(e)&&r.set(e,o),o)}function Mn(e,t){return!e||!ln(t)?!1:(t=t.slice(2).replace(/Once$/,""),q(e,t[0].toLowerCase()+t.slice(1))||q(e,Ee(t))||q(e,t))}function Ec(){}function zs(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:l,emit:a,render:u,renderCache:f,props:h,data:x,setupState:_,ctx:$,inheritAttrs:R}=e,J=_n(e);let V,D;try{if(n.shapeFlag&4){const b=s||r,M=b;V=Be(u.call(M,b,f,h,_,x,$)),D=l}else{const b=t;V=Be(b.length>1?b(h,{attrs:l,slots:o,emit:a}):b(h,null)),D=t.props?l:vl(l)}}catch(b){Gt.length=0,wn(b,e,1),V=ae(ye)}let j=V;if(D&&R!==!1){const b=Object.keys(D),{shapeFlag:M}=j;b.length&&M&7&&(i&&b.some(Vn)&&(D=bl(D,i)),j=at(j,D,!1,!0))}return n.dirs&&(j=at(j,null,!1,!0),j.dirs=j.dirs?j.dirs.concat(n.dirs):n.dirs),n.transition&&Ht(j,n.transition),V=j,_n(J),V}const vl=e=>{let t;for(const n in e)(n==="class"||n==="style"||ln(n))&&((t||(t={}))[n]=e[n]);return t},bl=(e,t)=>{const n={};for(const r in e)(!Vn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function wl(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:l,patchFlag:a}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Ws(r,o,u):!!o;if(a&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const x=f[h];if(Ks(o,r,x)&&!Mn(u,x))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===o?!1:r?o?Ws(r,o,u):!0:!!o;return!1}function Ws(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(Ks(t,e,i)&&!Mn(n,i))return!0}return!1}function Ks(e,t,n){const r=e[n],s=t[n];return n==="style"&&X(r)&&X(s)?!Jn(r,s):r!==s}function xl({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Gs={},qs=()=>Object.create(Gs),Js=e=>Object.getPrototypeOf(e)===Gs;function _l(e,t,n,r=!1){const s={},i=qs();e.propsDefaults=Object.create(null),Ys(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:To(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Cl(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,l=G(s),[a]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let x=f[h];if(Mn(e.emitsOptions,x))continue;const _=t[x];if(a)if(q(i,x))_!==i[x]&&(i[x]=_,u=!0);else{const $=Ie(x);s[$]=wr(a,l,$,_,e,!1)}else _!==i[x]&&(i[x]=_,u=!0)}}}else{Ys(e,t,s,i)&&(u=!0);let f;for(const h in l)(!t||!q(t,h)&&((f=Ee(h))===h||!q(t,f)))&&(a?n&&(n[h]!==void 0||n[f]!==void 0)&&(s[h]=wr(a,l,h,void 0,e,!0)):delete s[h]);if(i!==l)for(const h in i)(!t||!q(t,h))&&(delete i[h],u=!0)}u&&Ge(e.attrs,"set","")}function Ys(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(Rt(a))continue;const u=t[a];let f;s&&q(s,f=Ie(a))?!i||!i.includes(f)?n[f]=u:(l||(l={}))[f]=u:Mn(e.emitsOptions,a)||(!(a in r)||u!==r[a])&&(r[a]=u,o=!0)}if(i){const a=G(n),u=l||te;for(let f=0;f<i.length;f++){const h=i[f];n[h]=wr(s,a,h,u[h],e,!q(u,h))}}return o}function wr(e,t,n,r,s,i){const o=e[n];if(o!=null){const l=q(o,"default");if(l&&r===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&L(a)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const f=Yt(s);r=u[n]=a.call(null,t),f()}}else r=a;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!l?r=!1:o[1]&&(r===""||r===Ee(n))&&(r=!0))}return r}const Sl=new WeakMap;function Xs(e,t,n=!1){const r=n?Sl:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},l=[];let a=!1;if(!L(e)){const f=h=>{a=!0;const[x,_]=Xs(h,t,!0);oe(o,x),_&&l.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!a)return X(e)&&r.set(e,wt),wt;if(P(i))for(let f=0;f<i.length;f++){const h=Ie(i[f]);Zs(h)&&(o[h]=te)}else if(i)for(const f in i){const h=Ie(f);if(Zs(h)){const x=i[f],_=o[h]=P(x)||L(x)?{type:x}:oe({},x),$=_.type;let R=!1,J=!0;if(P($))for(let V=0;V<$.length;++V){const D=$[V],j=L(D)&&D.name;if(j==="Boolean"){R=!0;break}else j==="String"&&(J=!1)}else R=L($)&&$.name==="Boolean";_[0]=R,_[1]=J,(R||q(_,"default"))&&l.push(h)}}const u=[o,l];return X(e)&&r.set(e,u),u}function Zs(e){return e[0]!=="$"&&!Rt(e)}const xr=e=>e==="_"||e==="_ctx"||e==="$stable",_r=e=>P(e)?e.map(Be):[Be(e)],kl=(e,t,n)=>{if(t._n)return t;const r=ws((...s)=>_r(t(...s)),n);return r._c=!1,r},Qs=(e,t,n)=>{const r=e._ctx;for(const s in e){if(xr(s))continue;const i=e[s];if(L(i))t[s]=kl(s,i,r);else if(i!=null){const o=_r(i);t[s]=()=>o}}},ei=(e,t)=>{const n=_r(t);e.slots.default=()=>n},ti=(e,t,n)=>{for(const r in t)(n||!xr(r))&&(e[r]=t[r])},Tl=(e,t,n)=>{const r=e.slots=qs();if(e.vnode.shapeFlag&32){const s=t._;s?(ti(r,t,n),n&&Vr(r,"_",s,!0)):Qs(t,r)}else t&&ei(e,t)},El=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=te;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:ti(s,t,n):(i=!t.$stable,Qs(t,s)),o=t}else t&&(ei(e,t),o={default:1});if(i)for(const l in s)!xr(l)&&o[l]==null&&delete s[l]},we=Rl;function Al(e){return Ml(e)}function Ml(e,t){const n=un();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:l,createComment:a,setText:u,setElementText:f,parentNode:h,nextSibling:x,setScopeId:_=Pe,insertStaticContent:$}=e,R=(c,d,p,w=null,m=null,y=null,T=void 0,k=null,S=!!d.dynamicChildren)=>{if(c===d)return;c&&!yt(c,d)&&(w=Bn(c),Ve(c,m,y,!0),c=null),d.patchFlag===-2&&(S=!1,d.dynamicChildren=null);const{type:v,ref:N,shapeFlag:E}=d;switch(v){case On:J(c,d,p,w);break;case ye:V(c,d,p,w);break;case In:c==null&&D(d,p,w,T);break;case me:g(c,d,p,w,m,y,T,k,S);break;default:E&1?M(c,d,p,w,m,y,T,k,S):E&6?C(c,d,p,w,m,y,T,k,S):(E&64||E&128)&&v.process(c,d,p,w,m,y,T,k,S,rn)}N!=null&&m?Vt(N,c&&c.ref,y,d||c,!d):N==null&&c&&c.ref!=null&&Vt(c.ref,null,y,c,!0)},J=(c,d,p,w)=>{if(c==null)r(d.el=l(d.children),p,w);else{const m=d.el=c.el;d.children!==c.children&&u(m,d.children)}},V=(c,d,p,w)=>{c==null?r(d.el=a(d.children||""),p,w):d.el=c.el},D=(c,d,p,w)=>{[c.el,c.anchor]=$(c.children,d,p,w,c.el,c.anchor)},j=({el:c,anchor:d},p,w)=>{let m;for(;c&&c!==d;)m=x(c),r(c,p,w),c=m;r(d,p,w)},b=({el:c,anchor:d})=>{let p;for(;c&&c!==d;)p=x(c),s(c),c=p;s(d)},M=(c,d,p,w,m,y,T,k,S)=>{if(d.type==="svg"?T="svg":d.type==="math"&&(T="mathml"),c==null)z(d,p,w,m,y,T,k,S);else{const v=c.el&&c.el._isVueCE?c.el:null;try{v&&v._beginPatch(),H(c,d,m,y,T,k,S)}finally{v&&v._endPatch()}}},z=(c,d,p,w,m,y,T,k)=>{let S,v;const{props:N,shapeFlag:E,transition:F,dirs:U}=c;if(S=c.el=o(c.type,y,N&&N.is,N),E&8?f(S,c.children):E&16&&he(c.children,S,null,w,m,Cr(c,y),T,k),U&>(c,null,w,"created"),ce(S,c,c.scopeId,T,w),N){for(const ie in N)ie!=="value"&&!Rt(ie)&&i(S,ie,null,N[ie],y,w);"value"in N&&i(S,"value",null,N.value,y),(v=N.onVnodeBeforeMount)&&He(v,w,c)}U&>(c,null,w,"beforeMount");const K=Ol(m,F);K&&F.beforeEnter(S),r(S,d,p),((v=N&&N.onVnodeMounted)||K||U)&&we(()=>{v&&He(v,w,c),K&&F.enter(S),U&>(c,null,w,"mounted")},m)},ce=(c,d,p,w,m)=>{if(p&&_(c,p),w)for(let y=0;y<w.length;y++)_(c,w[y]);if(m){let y=m.subTree;if(d===y||oi(y.type)&&(y.ssContent===d||y.ssFallback===d)){const T=m.vnode;ce(c,T,T.scopeId,T.slotScopeIds,m.parent)}}},he=(c,d,p,w,m,y,T,k,S=0)=>{for(let v=S;v<c.length;v++){const N=c[v]=k?Qe(c[v]):Be(c[v]);R(null,N,d,p,w,m,y,T,k)}},H=(c,d,p,w,m,y,T)=>{const k=d.el=c.el;let{patchFlag:S,dynamicChildren:v,dirs:N}=d;S|=c.patchFlag&16;const E=c.props||te,F=d.props||te;let U;if(p&&mt(p,!1),(U=F.onVnodeBeforeUpdate)&&He(U,p,d,c),N&>(d,c,p,"beforeUpdate"),p&&mt(p,!0),(E.innerHTML&&F.innerHTML==null||E.textContent&&F.textContent==null)&&f(k,""),v?Y(c.dynamicChildren,v,k,p,w,Cr(d,m),y):T||Q(c,d,k,null,p,w,Cr(d,m),y,!1),S>0){if(S&16)O(k,E,F,p,m);else if(S&2&&E.class!==F.class&&i(k,"class",null,F.class,m),S&4&&i(k,"style",E.style,F.style,m),S&8){const K=d.dynamicProps;for(let ie=0;ie<K.length;ie++){const ee=K[ie],xe=E[ee],_e=F[ee];(_e!==xe||ee==="value")&&i(k,ee,xe,_e,m,p)}}S&1&&c.children!==d.children&&f(k,d.children)}else!T&&v==null&&O(k,E,F,p,m);((U=F.onVnodeUpdated)||N)&&we(()=>{U&&He(U,p,d,c),N&>(d,c,p,"updated")},w)},Y=(c,d,p,w,m,y,T)=>{for(let k=0;k<d.length;k++){const S=c[k],v=d[k],N=S.el&&(S.type===me||!yt(S,v)||S.shapeFlag&198)?h(S.el):p;R(S,v,N,null,w,m,y,T,!0)}},O=(c,d,p,w,m)=>{if(d!==p){if(d!==te)for(const y in d)!Rt(y)&&!(y in p)&&i(c,y,d[y],null,m,w);for(const y in p){if(Rt(y))continue;const T=p[y],k=d[y];T!==k&&y!=="value"&&i(c,y,k,T,m,w)}"value"in p&&i(c,"value",d.value,p.value,m)}},g=(c,d,p,w,m,y,T,k,S)=>{const v=d.el=c?c.el:l(""),N=d.anchor=c?c.anchor:l("");let{patchFlag:E,dynamicChildren:F,slotScopeIds:U}=d;U&&(k=k?k.concat(U):U),c==null?(r(v,p,w),r(N,p,w),he(d.children||[],p,N,m,y,T,k,S)):E>0&&E&64&&F&&c.dynamicChildren&&c.dynamicChildren.length===F.length?(Y(c.dynamicChildren,F,p,m,y,T,k),(d.key!=null||m&&d===m.subTree)&&ni(c,d,!0)):Q(c,d,p,N,m,y,T,k,S)},C=(c,d,p,w,m,y,T,k,S)=>{d.slotScopeIds=k,c==null?d.shapeFlag&512?m.ctx.activate(d,p,w,T,S):I(d,p,w,m,y,T,S):B(c,d,S)},I=(c,d,p,w,m,y,T)=>{const k=c.component=Bl(c,w,m);if(kn(c)&&(k.ctx.renderer=rn),Hl(k,!1,T),k.asyncDep){if(m&&m.registerDep(k,Z,T),!c.el){const S=k.subTree=ae(ye);V(null,S,d,p),c.placeholder=S.el}}else Z(k,c,d,p,m,y,T)},B=(c,d,p)=>{const w=d.component=c.component;if(wl(c,d,p))if(w.asyncDep&&!w.asyncResolved){W(w,d,p);return}else w.next=d,w.update();else d.el=c.el,w.vnode=d},Z=(c,d,p,w,m,y,T)=>{const k=()=>{if(c.isMounted){let{next:E,bu:F,u:U,parent:K,vnode:ie}=c;{const We=ri(c);if(We){E&&(E.el=ie.el,W(c,E,T)),We.asyncDep.then(()=>{we(()=>{c.isUnmounted||v()},m)});return}}let ee=E,xe;mt(c,!1),E?(E.el=ie.el,W(c,E,T)):E=ie,F&&fn(F),(xe=E.props&&E.props.onVnodeBeforeUpdate)&&He(xe,K,E,ie),mt(c,!0);const _e=zs(c),ze=c.subTree;c.subTree=_e,R(ze,_e,h(ze.el),Bn(ze),c,m,y),E.el=_e.el,ee===null&&xl(c,_e.el),U&&we(U,m),(xe=E.props&&E.props.onVnodeUpdated)&&we(()=>He(xe,K,E,ie),m)}else{let E;const{el:F,props:U}=d,{bm:K,m:ie,parent:ee,root:xe,type:_e}=c,ze=zt(d);mt(c,!1),K&&fn(K),!ze&&(E=U&&U.onVnodeBeforeMount)&&He(E,ee,d),mt(c,!0);{xe.ce&&xe.ce._hasShadowRoot()&&xe.ce._injectChildStyle(_e);const We=c.subTree=zs(c);R(null,We,p,w,c,m,y),d.el=We.el}if(ie&&we(ie,m),!ze&&(E=U&&U.onVnodeMounted)){const We=d;we(()=>He(E,ee,We),m)}(d.shapeFlag&256||ee&&zt(ee.vnode)&&ee.vnode.shapeFlag&256)&&c.a&&we(c.a,m),c.isMounted=!0,d=p=w=null}};c.scope.on();const S=c.effect=new qr(k);c.scope.off();const v=c.update=S.run.bind(S),N=c.job=S.runIfDirty.bind(S);N.i=c,N.id=c.uid,S.scheduler=()=>ur(N),mt(c,!0),v()},W=(c,d,p)=>{d.component=c;const w=c.vnode.props;c.vnode=d,c.next=null,Cl(c,d.props,w,p),El(c,d.children,p),$e(),ms(c),Le()},Q=(c,d,p,w,m,y,T,k,S=!1)=>{const v=c&&c.children,N=c?c.shapeFlag:0,E=d.children,{patchFlag:F,shapeFlag:U}=d;if(F>0){if(F&128){nt(v,E,p,w,m,y,T,k,S);return}else if(F&256){ft(v,E,p,w,m,y,T,k,S);return}}U&8?(N&16&&nn(v,m,y),E!==v&&f(p,E)):N&16?U&16?nt(v,E,p,w,m,y,T,k,S):nn(v,m,y,!0):(N&8&&f(p,""),U&16&&he(E,p,w,m,y,T,k,S))},ft=(c,d,p,w,m,y,T,k,S)=>{c=c||wt,d=d||wt;const v=c.length,N=d.length,E=Math.min(v,N);let F;for(F=0;F<E;F++){const U=d[F]=S?Qe(d[F]):Be(d[F]);R(c[F],U,p,null,m,y,T,k,S)}v>N?nn(c,m,y,!0,!1,E):he(d,p,w,m,y,T,k,S,E)},nt=(c,d,p,w,m,y,T,k,S)=>{let v=0;const N=d.length;let E=c.length-1,F=N-1;for(;v<=E&&v<=F;){const U=c[v],K=d[v]=S?Qe(d[v]):Be(d[v]);if(yt(U,K))R(U,K,p,null,m,y,T,k,S);else break;v++}for(;v<=E&&v<=F;){const U=c[E],K=d[F]=S?Qe(d[F]):Be(d[F]);if(yt(U,K))R(U,K,p,null,m,y,T,k,S);else break;E--,F--}if(v>E){if(v<=F){const U=F+1,K=U<N?d[U].el:w;for(;v<=F;)R(null,d[v]=S?Qe(d[v]):Be(d[v]),p,K,m,y,T,k,S),v++}}else if(v>F)for(;v<=E;)Ve(c[v],m,y,!0),v++;else{const U=v,K=v,ie=new Map;for(v=K;v<=F;v++){const Te=d[v]=S?Qe(d[v]):Be(d[v]);Te.key!=null&&ie.set(Te.key,v)}let ee,xe=0;const _e=F-K+1;let ze=!1,We=0;const sn=new Array(_e);for(v=0;v<_e;v++)sn[v]=0;for(v=U;v<=E;v++){const Te=c[v];if(xe>=_e){Ve(Te,m,y,!0);continue}let Ke;if(Te.key!=null)Ke=ie.get(Te.key);else for(ee=K;ee<=F;ee++)if(sn[ee-K]===0&&yt(Te,d[ee])){Ke=ee;break}Ke===void 0?Ve(Te,m,y,!0):(sn[Ke-K]=v+1,Ke>=We?We=Ke:ze=!0,R(Te,d[Ke],p,null,m,y,T,k,S),xe++)}const Ki=ze?Il(sn):wt;for(ee=Ki.length-1,v=_e-1;v>=0;v--){const Te=K+v,Ke=d[Te],Gi=d[Te+1],qi=Te+1<N?Gi.el||ii(Gi):w;sn[v]===0?R(null,Ke,p,qi,m,y,T,k,S):ze&&(ee<0||v!==Ki[ee]?rt(Ke,p,qi,2):ee--)}}},rt=(c,d,p,w,m=null)=>{const{el:y,type:T,transition:k,children:S,shapeFlag:v}=c;if(v&6){rt(c.component.subTree,d,p,w);return}if(v&128){c.suspense.move(d,p,w);return}if(v&64){T.move(c,d,p,rn);return}if(T===me){r(y,d,p);for(let E=0;E<S.length;E++)rt(S[E],d,p,w);r(c.anchor,d,p);return}if(T===In){j(c,d,p);return}if(w!==2&&v&1&&k)if(w===0)k.beforeEnter(y),r(y,d,p),we(()=>k.enter(y),m);else{const{leave:E,delayLeave:F,afterLeave:U}=k,K=()=>{c.ctx.isUnmounted?s(y):r(y,d,p)},ie=()=>{y._isLeaving&&y[Ue](!0),E(y,()=>{K(),U&&U()})};F?F(y,K,ie):ie()}else r(y,d,p)},Ve=(c,d,p,w=!1,m=!1)=>{const{type:y,props:T,ref:k,children:S,dynamicChildren:v,shapeFlag:N,patchFlag:E,dirs:F,cacheIndex:U}=c;if(E===-2&&(m=!1),k!=null&&($e(),Vt(k,null,p,c,!0),Le()),U!=null&&(d.renderCache[U]=void 0),N&256){d.ctx.deactivate(c);return}const K=N&1&&F,ie=!zt(c);let ee;if(ie&&(ee=T&&T.onVnodeBeforeUnmount)&&He(ee,d,c),N&6)Cc(c.component,p,w);else{if(N&128){c.suspense.unmount(p,w);return}K&>(c,null,d,"beforeUnmount"),N&64?c.type.remove(c,d,p,rn,w):v&&!v.hasOnce&&(y!==me||E>0&&E&64)?nn(v,d,p,!1,!0):(y===me&&E&384||!m&&N&16)&&nn(S,d,p),w&&zi(c)}(ie&&(ee=T&&T.onVnodeUnmounted)||K)&&we(()=>{ee&&He(ee,d,c),K&>(c,null,d,"unmounted")},p)},zi=c=>{const{type:d,el:p,anchor:w,transition:m}=c;if(d===me){_c(p,w);return}if(d===In){b(c);return}const y=()=>{s(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:T,delayLeave:k}=m,S=()=>T(p,y);k?k(c.el,y,S):S()}else y()},_c=(c,d)=>{let p;for(;c!==d;)p=x(c),s(c),c=p;s(d)},Cc=(c,d,p)=>{const{bum:w,scope:m,job:y,subTree:T,um:k,m:S,a:v}=c;si(S),si(v),w&&fn(w),m.stop(),y&&(y.flags|=8,Ve(T,c,d,p)),k&&we(k,d),we(()=>{c.isUnmounted=!0},d)},nn=(c,d,p,w=!1,m=!1,y=0)=>{for(let T=y;T<c.length;T++)Ve(c[T],d,p,w,m)},Bn=c=>{if(c.shapeFlag&6)return Bn(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const d=x(c.anchor||c.el),p=d&&d[Ko];return p?x(p):d};let Nr=!1;const Wi=(c,d,p)=>{let w;c==null?d._vnode&&(Ve(d._vnode,null,null,!0),w=d._vnode.component):R(d._vnode||null,c,d,null,null,null,p),d._vnode=c,Nr||(Nr=!0,ms(w),ys(),Nr=!1)},rn={p:R,um:Ve,m:rt,r:zi,mt:I,mc:he,pc:Q,pbc:Y,n:Bn,o:e};return{render:Wi,hydrate:void 0,createApp:pl(Wi)}}function Cr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function mt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ol(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ni(e,t,n=!1){const r=e.children,s=t.children;if(P(r)&&P(s))for(let i=0;i<r.length;i++){const o=r[i];let l=s[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[i]=Qe(s[i]),l.el=o.el),!n&&l.patchFlag!==-2&&ni(o,l)),l.type===On&&(l.patchFlag===-1&&(l=s[i]=Qe(l)),l.el=o.el),l.type===ye&&!l.el&&(l.el=o.el)}}function Il(e){const t=e.slice(),n=[0];let r,s,i,o,l;const a=e.length;for(r=0;r<a;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<u?i=l+1:o=l;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function ri(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ri(t)}function si(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ii(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ii(t.subTree):null}const oi=e=>e.__isSuspense;function Rl(e,t){t&&t.pendingBranch?P(e)?t.effects.push(...e):t.effects.push(e):Bo(e)}const me=Symbol.for("v-fgt"),On=Symbol.for("v-txt"),ye=Symbol.for("v-cmt"),In=Symbol.for("v-stc"),Gt=[];let Se=null;function ne(e=!1){Gt.push(Se=e?null:[])}function jl(){Gt.pop(),Se=Gt[Gt.length-1]||null}let qt=1;function Rn(e,t=!1){qt+=e,e<0&&Se&&t&&(Se.hasOnce=!0)}function li(e){return e.dynamicChildren=qt>0?Se||wt:null,jl(),qt>0&&Se&&Se.push(e),e}function se(e,t,n,r,s,i){return li(A(e,t,n,r,s,i,!0))}function Fl(e,t,n,r,s){return li(ae(e,t,n,r,s,!0))}function jn(e){return e?e.__v_isVNode===!0:!1}function yt(e,t){return e.type===t.type&&e.key===t.key}const ai=({key:e})=>e??null,Fn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?le(e)||ue(e)||L(e)?{i:Me,r:e,k:t,f:!!n}:e:null);function A(e,t=null,n=null,r=0,s=null,i=e===me?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ai(t),ref:t&&Fn(t),scopeId:bs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Me};return l?(Sr(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=le(n)?8:16),qt>0&&!o&&Se&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Se.push(a),a}const ae=Pl;function Pl(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===ol)&&(e=ye),jn(e)){const l=at(e,t,!0);return n&&Sr(l,n),qt>0&&!i&&Se&&(l.shapeFlag&6?Se[Se.indexOf(e)]=l:Se.push(l)),l.patchFlag=-2,l}if(Jl(e)&&(e=e.__vccOpts),t){t=Nl(t);let{class:l,style:a}=t;l&&!le(l)&&(t.class=fe(l)),X(a)&&(cr(a)&&!P(a)&&(a=oe({},a)),t.style=dn(a))}const o=le(e)?1:oi(e)?128:Cs(e)?64:X(e)?4:L(e)?2:0;return A(e,t,n,r,s,o,i,!0)}function Nl(e){return e?cr(e)||Js(e)?oe({},e):e:null}function at(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:l,transition:a}=e,u=t?Ll(s||{},t):s,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ai(u),ref:t&&t.ref?n&&i?P(i)?i.concat(Fn(t)):[i,Fn(t)]:Fn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&at(e.ssContent),ssFallback:e.ssFallback&&at(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Ht(f,a.clone(f)),f}function $l(e=" ",t=0){return ae(On,null,e,t)}function ci(e,t){const n=ae(In,null,e);return n.staticCount=t,n}function Jt(e="",t=!1){return t?(ne(),Fl(ye,null,e)):ae(ye,null,e)}function Be(e){return e==null||typeof e=="boolean"?ae(ye):P(e)?ae(me,null,e.slice()):jn(e)?Qe(e):ae(On,null,String(e))}function Qe(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:at(e)}function Sr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(P(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Sr(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Js(t)?t._ctx=Me:s===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else L(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),r&64?(n=16,t=[$l(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ll(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=fe([t.class,r.class]));else if(s==="style")t.style=dn([t.style,r.style]);else if(ln(s)){const i=t[s],o=r[s];o&&i!==o&&!(P(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function He(e,t,n,r=null){Fe(e,t,7,[n,r])}const Dl=Hs();let Ul=0;function Bl(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Dl,i={uid:Ul++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new io(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Xs(r,s),emitsOptions:Vs(r,s),emit:null,emitted:null,propsDefaults:te,inheritAttrs:r.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,setupContext:null,suspense:n,suspenseId:n?n.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=ml.bind(null,i),e.ce&&e.ce(i),i}let ve=null;const fi=()=>ve||Me;let Pn,kr;{const e=un(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Pn=t("__VUE_INSTANCE_SETTERS__",n=>ve=n),kr=t("__VUE_SSR_SETTERS__",n=>Xt=n)}const Yt=e=>{const t=ve;return Pn(e),e.scope.on(),()=>{e.scope.off(),Pn(t)}},ui=()=>{ve&&ve.scope.off(),Pn(null)};function di(e){return e.vnode.shapeFlag&4}let Xt=!1;function Hl(e,t=!1,n=!1){t&&kr(t);const{props:r,children:s}=e.vnode,i=di(e);_l(e,r,i,t),Tl(e,s,n||t);const o=i?Vl(e,t):void 0;return t&&kr(!1),o}function Vl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ll);const{setup:r}=n;if(r){$e();const s=e.setupContext=r.length>1?Wl(e):null,i=Yt(e),o=St(r,e,0,[e.props,s]),l=Ur(o);if(Le(),i(),(l||e.sp)&&!zt(e)&&Os(e),l){if(o.then(ui,ui),t)return o.then(a=>{hi(e,a)}).catch(a=>{wn(a,e,0)});e.asyncDep=o}else hi(e,o)}else pi(e)}function hi(e,t,n){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=ds(t)),pi(e)}function pi(e,t,n){const r=e.type;e.render||(e.render=r.render||Pe);{const s=Yt(e);$e();try{al(e)}finally{Le(),s()}}}const zl={get(e,t){return de(e,"get",""),e[t]}};function Wl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,zl),slots:e.slots,emit:e.emit,expose:t}}function Nn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ds(Eo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Wt)return Wt[n](e)},has(t,n){return n in t||n in Wt}})):e.proxy}const Kl=/(?:^|[-_])\w/g,Gl=e=>e.replace(Kl,t=>t.toUpperCase()).replace(/[-_]/g,"");function ql(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function gi(e,t,n=!1){let r=ql(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e){const s=i=>{for(const o in i)if(i[o]===t)return o};r=s(e.components)||e.parent&&s(e.parent.type.components)||s(e.appContext.components)}return r?Gl(r):n?"App":"Anonymous"}function Jl(e){return L(e)&&"__vccOpts"in e}const ke=(e,t)=>Ro(e,t,Xt);function Yl(e,t,n){try{Rn(-1);const r=arguments.length;return r===2?X(t)&&!P(t)?jn(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&jn(n)&&(n=[n]),ae(e,t,n))}finally{Rn(1)}}const Xl="3.5.29";/**
|
|
15
|
+
`,...$o(s)),console.warn(...i)}Le(),fr=!1}function Po(){let e=Dt[Dt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function $o(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
16
|
+
`],...No(n))}),t}function No({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${gi(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...Lo(e.props),i]:[s+i]}function Lo(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...hs(r,e[r]))}),n.length>3&&t.push(" ..."),t}function hs(e,t,n){return le(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ue(t)?(t=hs(e,G(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):L(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=G(t),n?t:[`${e}=`,t])}function St(e,t,n,r){try{return r?e(...r):e()}catch(s){wn(s,t,n)}}function Fe(e,t,n,r){if(L(e)){const s=St(e,t,n,r);return s&&Ur(s)&&s.catch(i=>{wn(i,t,n)}),s}if(P(e)){const s=[];for(let i=0;i<e.length;i++)s.push(Fe(e[i],t,n,r));return s}}function wn(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||te;if(t){let l=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const f=l.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,a,u)===!1)return}l=l.parent}if(i){Ne(),St(i,null,10,[e,a,u]),Le();return}}Do(e,n,s,r,o)}function Do(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const pe=[];let De=-1;const kt=[];let ot=null,Tt=0;const ps=Promise.resolve();let xn=null;function Et(e){const t=xn||ps;return e?t.then(this?e.bind(this):e):t}function Uo(e){let t=De+1,n=pe.length;for(;t<n;){const r=t+n>>>1,s=pe[r],i=Ut(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function ur(e){if(!(e.flags&1)){const t=Ut(e),n=pe[pe.length-1];!n||!(e.flags&2)&&t>=Ut(n)?pe.push(e):pe.splice(Uo(t),0,e),e.flags|=1,gs()}}function gs(){xn||(xn=ps.then(vs))}function Bo(e){P(e)?kt.push(...e):ot&&e.id===-1?ot.splice(Tt+1,0,e):e.flags&1||(kt.push(e),e.flags|=1),gs()}function ms(e,t,n=De+1){for(;n<pe.length;n++){const r=pe[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;pe.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function ys(e){if(kt.length){const t=[...new Set(kt)].sort((n,r)=>Ut(n)-Ut(r));if(kt.length=0,ot){ot.push(...t);return}for(ot=t,Tt=0;Tt<ot.length;Tt++){const n=ot[Tt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ot=null,Tt=0}}const Ut=e=>e.id==null?e.flags&2?-1:1/0:e.id;function vs(e){try{for(De=0;De<pe.length;De++){const t=pe[De];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),St(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;De<pe.length;De++){const t=pe[De];t&&(t.flags&=-2)}De=-1,pe.length=0,ys(),xn=null,(pe.length||kt.length)&&vs()}}let Me=null,bs=null;function _n(e){const t=Me;return Me=e,bs=e&&e.type.__scopeId||null,t}function ws(e,t=Me,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Rn(-1);const i=_n(t);let o;try{o=e(...s)}finally{_n(i),r._d&&Rn(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function dr(e,t){if(Me===null)return e;const n=$n(Me),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,l,a=te]=t[s];i&&(L(i)&&(i={mounted:i,updated:i}),i.deep&&Xe(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function gt(e,t,n,r){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[r];a&&(Ne(),Fe(a,n,8,[e.el,l,e,t]),Le())}}function Ho(e,t){if(ve){let n=ve.provides;const r=ve.parent&&ve.parent.provides;r===n&&(n=ve.provides=Object.create(r)),n[e]=t}}function Cn(e,t,n=!1){const r=fi();if(r||Mt){let s=Mt?Mt._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&L(t)?t.call(r&&r.proxy):t}}const Vo=Symbol.for("v-scx"),Wo=()=>Cn(Vo);function lt(e,t,n){return xs(e,t,n)}function xs(e,t,n=te){const{immediate:r,deep:s,flush:i,once:o}=n,l=oe({},n),a=t&&r||!t&&i!=="post";let u;if(Xt){if(i==="sync"){const _=Wo();u=_.__watcherHandles||(_.__watcherHandles=[])}else if(!a){const _=()=>{};return _.stop=Pe,_.resume=Pe,_.pause=Pe,_}}const f=ve;l.call=(_,N,R)=>Fe(_,f,N,R);let h=!1;i==="post"?l.scheduler=_=>{we(_,f&&f.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(_,N)=>{N?_():ur(_)}),l.augmentJob=_=>{t&&(_.flags|=4),h&&(_.flags|=2,f&&(_.id=f.uid,_.i=f))};const x=Fo(e,t,l);return Xt&&(u?u.push(x):a&&x()),x}function zo(e,t,n){const r=this.proxy,s=le(e)?e.includes(".")?_s(r,e):()=>r[e]:e.bind(r,r);let i;L(t)?i=t:(i=t.handler,n=t);const o=Yt(this),l=xs(s,i.bind(r),n);return o(),l}function _s(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Ko=Symbol("_vte"),Cs=e=>e.__isTeleport,Ue=Symbol("_leaveCb"),Bt=Symbol("_enterCb");function Go(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gr(()=>{e.isMounted=!0}),Fs(()=>{e.isUnmounting=!0}),e}const Oe=[Function,Array],Ss={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Oe,onEnter:Oe,onAfterEnter:Oe,onEnterCancelled:Oe,onBeforeLeave:Oe,onLeave:Oe,onAfterLeave:Oe,onLeaveCancelled:Oe,onBeforeAppear:Oe,onAppear:Oe,onAfterAppear:Oe,onAppearCancelled:Oe},ks=e=>{const t=e.subTree;return t.component?ks(t.component):t},qo={name:"BaseTransition",props:Ss,setup(e,{slots:t}){const n=fi(),r=Go();return()=>{const s=t.default&&Ms(t.default(),!0);if(!s||!s.length)return;const i=Ts(s),o=G(e),{mode:l}=o;if(r.isLeaving)return pr(i);const a=As(i);if(!a)return pr(i);let u=hr(a,o,r,n,h=>u=h);a.type!==ye&&Ht(a,u);let f=n.subTree&&As(n.subTree);if(f&&f.type!==ye&&!yt(f,a)&&ks(n).type!==ye){let h=hr(f,o,r,n);if(Ht(f,h),l==="out-in"&&a.type!==ye)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,f=void 0},pr(i);l==="in-out"&&a.type!==ye?h.delayLeave=(x,_,N)=>{const R=Es(r,f);R[String(f.key)]=f,x[Ue]=()=>{_(),x[Ue]=void 0,delete u.delayedLeave,f=void 0},u.delayedLeave=()=>{N(),delete u.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return i}}};function Ts(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ye){t=n;break}}return t}const Jo=qo;function Es(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function hr(e,t,n,r,s){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:x,onLeave:_,onAfterLeave:N,onLeaveCancelled:R,onBeforeAppear:J,onAppear:V,onAfterAppear:D,onAppearCancelled:j}=t,b=String(e.key),M=Es(n,e),W=(H,Y)=>{H&&Fe(H,r,9,Y)},ce=(H,Y)=>{const O=Y[1];W(H,Y),P(H)?H.every(g=>g.length<=1)&&O():H.length<=1&&O()},he={mode:o,persisted:l,beforeEnter(H){let Y=a;if(!n.isMounted)if(i)Y=J||a;else return;H[Ue]&&H[Ue](!0);const O=M[b];O&&yt(e,O)&&O.el[Ue]&&O.el[Ue](),W(Y,[H])},enter(H){if(M[b]===e)return;let Y=u,O=f,g=h;if(!n.isMounted)if(i)Y=V||u,O=D||f,g=j||h;else return;let C=!1;H[Bt]=B=>{C||(C=!0,B?W(g,[H]):W(O,[H]),he.delayedLeave&&he.delayedLeave(),H[Bt]=void 0)};const I=H[Bt].bind(null,!1);Y?ce(Y,[H,I]):I()},leave(H,Y){const O=String(e.key);if(H[Bt]&&H[Bt](!0),n.isUnmounting)return Y();W(x,[H]);let g=!1;H[Ue]=I=>{g||(g=!0,Y(),I?W(R,[H]):W(N,[H]),H[Ue]=void 0,M[O]===e&&delete M[O])};const C=H[Ue].bind(null,!1);M[O]=e,_?ce(_,[H,C]):C()},clone(H){const Y=hr(H,t,n,r,s);return s&&s(Y),Y}};return he}function pr(e){if(kn(e))return e=at(e),e.children=null,e}function As(e){if(!kn(e))return Cs(e.type)&&e.children?Ts(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&L(n.default))return n.default()}}function Ht(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ht(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ms(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===me?(o.patchFlag&128&&s++,r=r.concat(Ms(o.children,t,l))):(t||o.type!==ye)&&r.push(l!=null?at(o,{key:l}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function At(e,t){return L(e)?oe({name:e.name},t,{setup:e}):e}function Os(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Is(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Sn=new WeakMap;function Vt(e,t,n,r,s=!1){if(P(e)){e.forEach((R,J)=>Vt(R,t&&(P(t)?t[J]:t),n,r,s));return}if(Wt(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Vt(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?$n(r.component):r.el,o=s?null:i,{i:l,r:a}=e,u=t&&t.r,f=l.refs===te?l.refs={}:l.refs,h=l.setupState,x=G(h),_=h===te?Nr:R=>Is(f,R)?!1:q(x,R),N=(R,J)=>!(J&&Is(f,J));if(u!=null&&u!==a){if(Rs(t),le(u))f[u]=null,_(u)&&(h[u]=null);else if(ue(u)){const R=t;N(u,R.k)&&(u.value=null),R.k&&(f[R.k]=null)}}if(L(a))St(a,l,12,[o,f]);else{const R=le(a),J=ue(a);if(R||J){const V=()=>{if(e.f){const D=R?_(a)?h[a]:f[a]:N()||!e.k?a.value:f[e.k];if(s)P(D)&&Wn(D,i);else if(P(D))D.includes(i)||D.push(i);else if(R)f[a]=[i],_(a)&&(h[a]=f[a]);else{const j=[i];N(a,e.k)&&(a.value=j),e.k&&(f[e.k]=j)}}else R?(f[a]=o,_(a)&&(h[a]=o)):J&&(N(a,e.k)&&(a.value=o),e.k&&(f[e.k]=o))};if(o){const D=()=>{V(),Sn.delete(e)};D.id=-1,Sn.set(e,D),we(D,n)}else Rs(e),V()}}}function Rs(e){const t=Sn.get(e);t&&(t.flags|=8,Sn.delete(e))}un().requestIdleCallback,un().cancelIdleCallback;const Wt=e=>!!e.type.__asyncLoader,kn=e=>e.type.__isKeepAlive;function Yo(e,t){js(e,"a",t)}function Xo(e,t){js(e,"da",t)}function js(e,t,n=ve){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Tn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)kn(s.parent.vnode)&&Zo(r,t,n,s),s=s.parent}}function Zo(e,t,n,r){const s=Tn(t,e,r,!0);En(()=>{Wn(r[t],s)},n)}function Tn(e,t,n=ve,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Ne();const l=Yt(n),a=Fe(t,n,e,o);return l(),Le(),a});return r?s.unshift(i):s.push(i),i}}const Ze=e=>(t,n=ve)=>{(!Xt||e==="sp")&&Tn(e,(...r)=>t(...r),n)},Qo=Ze("bm"),gr=Ze("m"),el=Ze("bu"),tl=Ze("u"),Fs=Ze("bum"),En=Ze("um"),nl=Ze("sp"),rl=Ze("rtg"),sl=Ze("rtc");function il(e,t=ve){Tn("ec",e,t)}const ol=Symbol.for("v-ndc");function Ps(e,t,n,r){let s;const i=n,o=P(e);if(o||le(e)){const l=o&&ht(e);let a=!1,u=!1;l&&(a=!Ae(e),u=Je(e),e=hn(e)),s=new Array(e.length);for(let f=0,h=e.length;f<h;f++)s[f]=t(a?u?Ct(je(e[f])):je(e[f]):e[f],f,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,i)}else if(X(e))if(e[Symbol.iterator])s=Array.from(e,(l,a)=>t(l,a,void 0,i));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,u=l.length;a<u;a++){const f=l[a];s[a]=t(e[f],f,a,i)}}else s=[];return s}const mr=e=>e?di(e)?$n(e):mr(e.parent):null,zt=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=>mr(e.parent),$root:e=>mr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ds(e),$forceUpdate:e=>e.f||(e.f=()=>{ur(e.update)}),$nextTick:e=>e.n||(e.n=Et.bind(e.proxy)),$watch:e=>zo.bind(e)}),yr=(e,t)=>e!==te&&!e.__isScriptSetup&&q(e,t),ll={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:l,appContext:a}=e;if(t[0]!=="$"){const x=o[t];if(x!==void 0)switch(x){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(yr(r,t))return o[t]=1,r[t];if(s!==te&&q(s,t))return o[t]=2,s[t];if(q(i,t))return o[t]=3,i[t];if(n!==te&&q(n,t))return o[t]=4,n[t];vr&&(o[t]=0)}}const u=zt[t];let f,h;if(u)return t==="$attrs"&&de(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==te&&q(n,t))return o[t]=4,n[t];if(h=a.config.globalProperties,q(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return yr(s,t)?(s[t]=n,!0):r!==te&&q(r,t)?(r[t]=n,!0):q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},l){let a;return!!(n[l]||e!==te&&l[0]!=="$"&&q(e,l)||yr(t,l)||q(i,l)||q(r,l)||q(zt,l)||q(s.config.globalProperties,l)||(a=o.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $s(e){return P(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let vr=!0;function al(e){const t=Ds(e),n=e.proxy,r=e.ctx;vr=!1,t.beforeCreate&&Ns(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:l,provide:a,inject:u,created:f,beforeMount:h,mounted:x,beforeUpdate:_,updated:N,activated:R,deactivated:J,beforeDestroy:V,beforeUnmount:D,destroyed:j,unmounted:b,render:M,renderTracked:W,renderTriggered:ce,errorCaptured:he,serverPrefetch:H,expose:Y,inheritAttrs:O,components:g,directives:C,filters:I}=t;if(u&&cl(u,r,null),o)for(const z in o){const Q=o[z];L(Q)&&(r[z]=Q.bind(n))}if(s){const z=s.call(n,n);X(z)&&(e.data=ar(z))}if(vr=!0,i)for(const z in i){const Q=i[z],ft=L(Q)?Q.bind(n,n):L(Q.get)?Q.get.bind(n,n):Pe,nt=!L(Q)&&L(Q.set)?Q.set.bind(n):Pe,rt=xe({get:ft,set:nt});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Ve=>rt.value=Ve})}if(l)for(const z in l)Ls(l[z],r,n,z);if(a){const z=L(a)?a.call(n):a;Reflect.ownKeys(z).forEach(Q=>{Ho(Q,z[Q])})}f&&Ns(f,e,"c");function Z(z,Q){P(Q)?Q.forEach(ft=>z(ft.bind(n))):Q&&z(Q.bind(n))}if(Z(Qo,h),Z(gr,x),Z(el,_),Z(tl,N),Z(Yo,R),Z(Xo,J),Z(il,he),Z(sl,W),Z(rl,ce),Z(Fs,D),Z(En,b),Z(nl,H),P(Y))if(Y.length){const z=e.exposed||(e.exposed={});Y.forEach(Q=>{Object.defineProperty(z,Q,{get:()=>n[Q],set:ft=>n[Q]=ft,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===Pe&&(e.render=M),O!=null&&(e.inheritAttrs=O),g&&(e.components=g),C&&(e.directives=C),H&&Os(e)}function cl(e,t,n=Pe){P(e)&&(e=br(e));for(const r in e){const s=e[r];let i;X(s)?"default"in s?i=Cn(s.from||r,s.default,!0):i=Cn(s.from||r):i=Cn(s),ue(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Ns(e,t,n){Fe(P(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ls(e,t,n,r){let s=r.includes(".")?_s(n,r):()=>n[r];if(le(e)){const i=t[e];L(i)&<(s,i)}else if(L(e))lt(s,e.bind(n));else if(X(e))if(P(e))e.forEach(i=>Ls(i,t,n,r));else{const i=L(e.handler)?e.handler.bind(n):t[e.handler];L(i)&<(s,i,e)}}function Ds(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(u=>An(a,u,o,!0)),An(a,t,o)),X(t)&&i.set(t,a),a}function An(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&An(e,i,n,!0),s&&s.forEach(o=>An(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const l=fl[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const fl={data:Us,props:Bs,emits:Bs,methods:Kt,computed:Kt,beforeCreate:ge,created:ge,beforeMount:ge,mounted:ge,beforeUpdate:ge,updated:ge,beforeDestroy:ge,beforeUnmount:ge,destroyed:ge,unmounted:ge,activated:ge,deactivated:ge,errorCaptured:ge,serverPrefetch:ge,components:Kt,directives:Kt,watch:dl,provide:Us,inject:ul};function Us(e,t){return t?e?function(){return oe(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function ul(e,t){return Kt(br(e),br(t))}function br(e){if(P(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ge(e,t){return e?[...new Set([].concat(e,t))]:t}function Kt(e,t){return e?oe(Object.create(null),e,t):t}function Bs(e,t){return e?P(e)&&P(t)?[...new Set([...e,...t])]:oe(Object.create(null),$s(e),$s(t??{})):t}function dl(e,t){if(!e)return t;if(!t)return e;const n=oe(Object.create(null),e);for(const r in t)n[r]=ge(e[r],t[r]);return n}function Hs(){return{app:null,config:{isNativeTag:Nr,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 hl=0;function pl(e,t){return function(r,s=null){L(r)||(r=oe({},r)),s!=null&&!X(s)&&(s=null);const i=Hs(),o=new WeakSet,l=[];let a=!1;const u=i.app={_uid:hl++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Xl,get config(){return i.config},set config(f){},use(f,...h){return o.has(f)||(f&&L(f.install)?(o.add(f),f.install(u,...h)):L(f)&&(o.add(f),f(u,...h))),u},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),u},component(f,h){return h?(i.components[f]=h,u):i.components[f]},directive(f,h){return h?(i.directives[f]=h,u):i.directives[f]},mount(f,h,x){if(!a){const _=u._ceVNode||ae(r,s);return _.appContext=i,x===!0?x="svg":x===!1&&(x=void 0),e(_,f,x),a=!0,u._container=f,f.__vue_app__=u,$n(_.component)}},onUnmount(f){l.push(f)},unmount(){a&&(Fe(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(f,h){return i.provides[f]=h,u},runWithContext(f){const h=Mt;Mt=u;try{return f()}finally{Mt=h}}};return u}}let Mt=null;const gl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ie(t)}Modifiers`]||e[`${Ee(t)}Modifiers`];function ml(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||te;let s=n;const i=t.startsWith("update:"),o=i&&gl(r,t.slice(7));o&&(o.trim&&(s=n.map(f=>le(f)?f.trim():f)),o.number&&(s=n.map(Gn)));let l,a=r[l=Kn(t)]||r[l=Kn(Ie(t))];!a&&i&&(a=r[l=Kn(Ee(t))]),a&&Fe(a,e,6,s);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Fe(u,e,6,s)}}const yl=new WeakMap;function Vs(e,t,n=!1){const r=n?yl:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},l=!1;if(!L(e)){const a=u=>{const f=Vs(u,t,!0);f&&(l=!0,oe(o,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(X(e)&&r.set(e,null),null):(P(i)?i.forEach(a=>o[a]=null):oe(o,i),X(e)&&r.set(e,o),o)}function Mn(e,t){return!e||!ln(t)?!1:(t=t.slice(2).replace(/Once$/,""),q(e,t[0].toLowerCase()+t.slice(1))||q(e,Ee(t))||q(e,t))}function Ec(){}function Ws(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:l,emit:a,render:u,renderCache:f,props:h,data:x,setupState:_,ctx:N,inheritAttrs:R}=e,J=_n(e);let V,D;try{if(n.shapeFlag&4){const b=s||r,M=b;V=Be(u.call(M,b,f,h,_,x,N)),D=l}else{const b=t;V=Be(b.length>1?b(h,{attrs:l,slots:o,emit:a}):b(h,null)),D=t.props?l:vl(l)}}catch(b){Gt.length=0,wn(b,e,1),V=ae(ye)}let j=V;if(D&&R!==!1){const b=Object.keys(D),{shapeFlag:M}=j;b.length&&M&7&&(i&&b.some(Vn)&&(D=bl(D,i)),j=at(j,D,!1,!0))}return n.dirs&&(j=at(j,null,!1,!0),j.dirs=j.dirs?j.dirs.concat(n.dirs):n.dirs),n.transition&&Ht(j,n.transition),V=j,_n(J),V}const vl=e=>{let t;for(const n in e)(n==="class"||n==="style"||ln(n))&&((t||(t={}))[n]=e[n]);return t},bl=(e,t)=>{const n={};for(const r in e)(!Vn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function wl(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:l,patchFlag:a}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?zs(r,o,u):!!o;if(a&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const x=f[h];if(Ks(o,r,x)&&!Mn(u,x))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===o?!1:r?o?zs(r,o,u):!0:!!o;return!1}function zs(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(Ks(t,e,i)&&!Mn(n,i))return!0}return!1}function Ks(e,t,n){const r=e[n],s=t[n];return n==="style"&&X(r)&&X(s)?!Jn(r,s):r!==s}function xl({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Gs={},qs=()=>Object.create(Gs),Js=e=>Object.getPrototypeOf(e)===Gs;function _l(e,t,n,r=!1){const s={},i=qs();e.propsDefaults=Object.create(null),Ys(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:To(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Cl(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,l=G(s),[a]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let x=f[h];if(Mn(e.emitsOptions,x))continue;const _=t[x];if(a)if(q(i,x))_!==i[x]&&(i[x]=_,u=!0);else{const N=Ie(x);s[N]=wr(a,l,N,_,e,!1)}else _!==i[x]&&(i[x]=_,u=!0)}}}else{Ys(e,t,s,i)&&(u=!0);let f;for(const h in l)(!t||!q(t,h)&&((f=Ee(h))===h||!q(t,f)))&&(a?n&&(n[h]!==void 0||n[f]!==void 0)&&(s[h]=wr(a,l,h,void 0,e,!0)):delete s[h]);if(i!==l)for(const h in i)(!t||!q(t,h))&&(delete i[h],u=!0)}u&&Ge(e.attrs,"set","")}function Ys(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(Rt(a))continue;const u=t[a];let f;s&&q(s,f=Ie(a))?!i||!i.includes(f)?n[f]=u:(l||(l={}))[f]=u:Mn(e.emitsOptions,a)||(!(a in r)||u!==r[a])&&(r[a]=u,o=!0)}if(i){const a=G(n),u=l||te;for(let f=0;f<i.length;f++){const h=i[f];n[h]=wr(s,a,h,u[h],e,!q(u,h))}}return o}function wr(e,t,n,r,s,i){const o=e[n];if(o!=null){const l=q(o,"default");if(l&&r===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&L(a)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const f=Yt(s);r=u[n]=a.call(null,t),f()}}else r=a;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!l?r=!1:o[1]&&(r===""||r===Ee(n))&&(r=!0))}return r}const Sl=new WeakMap;function Xs(e,t,n=!1){const r=n?Sl:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},l=[];let a=!1;if(!L(e)){const f=h=>{a=!0;const[x,_]=Xs(h,t,!0);oe(o,x),_&&l.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!a)return X(e)&&r.set(e,wt),wt;if(P(i))for(let f=0;f<i.length;f++){const h=Ie(i[f]);Zs(h)&&(o[h]=te)}else if(i)for(const f in i){const h=Ie(f);if(Zs(h)){const x=i[f],_=o[h]=P(x)||L(x)?{type:x}:oe({},x),N=_.type;let R=!1,J=!0;if(P(N))for(let V=0;V<N.length;++V){const D=N[V],j=L(D)&&D.name;if(j==="Boolean"){R=!0;break}else j==="String"&&(J=!1)}else R=L(N)&&N.name==="Boolean";_[0]=R,_[1]=J,(R||q(_,"default"))&&l.push(h)}}const u=[o,l];return X(e)&&r.set(e,u),u}function Zs(e){return e[0]!=="$"&&!Rt(e)}const xr=e=>e==="_"||e==="_ctx"||e==="$stable",_r=e=>P(e)?e.map(Be):[Be(e)],kl=(e,t,n)=>{if(t._n)return t;const r=ws((...s)=>_r(t(...s)),n);return r._c=!1,r},Qs=(e,t,n)=>{const r=e._ctx;for(const s in e){if(xr(s))continue;const i=e[s];if(L(i))t[s]=kl(s,i,r);else if(i!=null){const o=_r(i);t[s]=()=>o}}},ei=(e,t)=>{const n=_r(t);e.slots.default=()=>n},ti=(e,t,n)=>{for(const r in t)(n||!xr(r))&&(e[r]=t[r])},Tl=(e,t,n)=>{const r=e.slots=qs();if(e.vnode.shapeFlag&32){const s=t._;s?(ti(r,t,n),n&&Vr(r,"_",s,!0)):Qs(t,r)}else t&&ei(e,t)},El=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=te;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:ti(s,t,n):(i=!t.$stable,Qs(t,s)),o=t}else t&&(ei(e,t),o={default:1});if(i)for(const l in s)!xr(l)&&o[l]==null&&delete s[l]},we=Rl;function Al(e){return Ml(e)}function Ml(e,t){const n=un();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:l,createComment:a,setText:u,setElementText:f,parentNode:h,nextSibling:x,setScopeId:_=Pe,insertStaticContent:N}=e,R=(c,d,p,w=null,m=null,y=null,T=void 0,k=null,S=!!d.dynamicChildren)=>{if(c===d)return;c&&!yt(c,d)&&(w=Bn(c),Ve(c,m,y,!0),c=null),d.patchFlag===-2&&(S=!1,d.dynamicChildren=null);const{type:v,ref:$,shapeFlag:E}=d;switch(v){case On:J(c,d,p,w);break;case ye:V(c,d,p,w);break;case In:c==null&&D(d,p,w,T);break;case me:g(c,d,p,w,m,y,T,k,S);break;default:E&1?M(c,d,p,w,m,y,T,k,S):E&6?C(c,d,p,w,m,y,T,k,S):(E&64||E&128)&&v.process(c,d,p,w,m,y,T,k,S,rn)}$!=null&&m?Vt($,c&&c.ref,y,d||c,!d):$==null&&c&&c.ref!=null&&Vt(c.ref,null,y,c,!0)},J=(c,d,p,w)=>{if(c==null)r(d.el=l(d.children),p,w);else{const m=d.el=c.el;d.children!==c.children&&u(m,d.children)}},V=(c,d,p,w)=>{c==null?r(d.el=a(d.children||""),p,w):d.el=c.el},D=(c,d,p,w)=>{[c.el,c.anchor]=N(c.children,d,p,w,c.el,c.anchor)},j=({el:c,anchor:d},p,w)=>{let m;for(;c&&c!==d;)m=x(c),r(c,p,w),c=m;r(d,p,w)},b=({el:c,anchor:d})=>{let p;for(;c&&c!==d;)p=x(c),s(c),c=p;s(d)},M=(c,d,p,w,m,y,T,k,S)=>{if(d.type==="svg"?T="svg":d.type==="math"&&(T="mathml"),c==null)W(d,p,w,m,y,T,k,S);else{const v=c.el&&c.el._isVueCE?c.el:null;try{v&&v._beginPatch(),H(c,d,m,y,T,k,S)}finally{v&&v._endPatch()}}},W=(c,d,p,w,m,y,T,k)=>{let S,v;const{props:$,shapeFlag:E,transition:F,dirs:U}=c;if(S=c.el=o(c.type,y,$&&$.is,$),E&8?f(S,c.children):E&16&&he(c.children,S,null,w,m,Cr(c,y),T,k),U&>(c,null,w,"created"),ce(S,c,c.scopeId,T,w),$){for(const ie in $)ie!=="value"&&!Rt(ie)&&i(S,ie,null,$[ie],y,w);"value"in $&&i(S,"value",null,$.value,y),(v=$.onVnodeBeforeMount)&&He(v,w,c)}U&>(c,null,w,"beforeMount");const K=Ol(m,F);K&&F.beforeEnter(S),r(S,d,p),((v=$&&$.onVnodeMounted)||K||U)&&we(()=>{v&&He(v,w,c),K&&F.enter(S),U&>(c,null,w,"mounted")},m)},ce=(c,d,p,w,m)=>{if(p&&_(c,p),w)for(let y=0;y<w.length;y++)_(c,w[y]);if(m){let y=m.subTree;if(d===y||oi(y.type)&&(y.ssContent===d||y.ssFallback===d)){const T=m.vnode;ce(c,T,T.scopeId,T.slotScopeIds,m.parent)}}},he=(c,d,p,w,m,y,T,k,S=0)=>{for(let v=S;v<c.length;v++){const $=c[v]=k?Qe(c[v]):Be(c[v]);R(null,$,d,p,w,m,y,T,k)}},H=(c,d,p,w,m,y,T)=>{const k=d.el=c.el;let{patchFlag:S,dynamicChildren:v,dirs:$}=d;S|=c.patchFlag&16;const E=c.props||te,F=d.props||te;let U;if(p&&mt(p,!1),(U=F.onVnodeBeforeUpdate)&&He(U,p,d,c),$&>(d,c,p,"beforeUpdate"),p&&mt(p,!0),(E.innerHTML&&F.innerHTML==null||E.textContent&&F.textContent==null)&&f(k,""),v?Y(c.dynamicChildren,v,k,p,w,Cr(d,m),y):T||Q(c,d,k,null,p,w,Cr(d,m),y,!1),S>0){if(S&16)O(k,E,F,p,m);else if(S&2&&E.class!==F.class&&i(k,"class",null,F.class,m),S&4&&i(k,"style",E.style,F.style,m),S&8){const K=d.dynamicProps;for(let ie=0;ie<K.length;ie++){const ee=K[ie],_e=E[ee],Ce=F[ee];(Ce!==_e||ee==="value")&&i(k,ee,_e,Ce,m,p)}}S&1&&c.children!==d.children&&f(k,d.children)}else!T&&v==null&&O(k,E,F,p,m);((U=F.onVnodeUpdated)||$)&&we(()=>{U&&He(U,p,d,c),$&>(d,c,p,"updated")},w)},Y=(c,d,p,w,m,y,T)=>{for(let k=0;k<d.length;k++){const S=c[k],v=d[k],$=S.el&&(S.type===me||!yt(S,v)||S.shapeFlag&198)?h(S.el):p;R(S,v,$,null,w,m,y,T,!0)}},O=(c,d,p,w,m)=>{if(d!==p){if(d!==te)for(const y in d)!Rt(y)&&!(y in p)&&i(c,y,d[y],null,m,w);for(const y in p){if(Rt(y))continue;const T=p[y],k=d[y];T!==k&&y!=="value"&&i(c,y,k,T,m,w)}"value"in p&&i(c,"value",d.value,p.value,m)}},g=(c,d,p,w,m,y,T,k,S)=>{const v=d.el=c?c.el:l(""),$=d.anchor=c?c.anchor:l("");let{patchFlag:E,dynamicChildren:F,slotScopeIds:U}=d;U&&(k=k?k.concat(U):U),c==null?(r(v,p,w),r($,p,w),he(d.children||[],p,$,m,y,T,k,S)):E>0&&E&64&&F&&c.dynamicChildren&&c.dynamicChildren.length===F.length?(Y(c.dynamicChildren,F,p,m,y,T,k),(d.key!=null||m&&d===m.subTree)&&ni(c,d,!0)):Q(c,d,p,$,m,y,T,k,S)},C=(c,d,p,w,m,y,T,k,S)=>{d.slotScopeIds=k,c==null?d.shapeFlag&512?m.ctx.activate(d,p,w,T,S):I(d,p,w,m,y,T,S):B(c,d,S)},I=(c,d,p,w,m,y,T)=>{const k=c.component=Bl(c,w,m);if(kn(c)&&(k.ctx.renderer=rn),Hl(k,!1,T),k.asyncDep){if(m&&m.registerDep(k,Z,T),!c.el){const S=k.subTree=ae(ye);V(null,S,d,p),c.placeholder=S.el}}else Z(k,c,d,p,m,y,T)},B=(c,d,p)=>{const w=d.component=c.component;if(wl(c,d,p))if(w.asyncDep&&!w.asyncResolved){z(w,d,p);return}else w.next=d,w.update();else d.el=c.el,w.vnode=d},Z=(c,d,p,w,m,y,T)=>{const k=()=>{if(c.isMounted){let{next:E,bu:F,u:U,parent:K,vnode:ie}=c;{const ze=ri(c);if(ze){E&&(E.el=ie.el,z(c,E,T)),ze.asyncDep.then(()=>{we(()=>{c.isUnmounted||v()},m)});return}}let ee=E,_e;mt(c,!1),E?(E.el=ie.el,z(c,E,T)):E=ie,F&&fn(F),(_e=E.props&&E.props.onVnodeBeforeUpdate)&&He(_e,K,E,ie),mt(c,!0);const Ce=Ws(c),We=c.subTree;c.subTree=Ce,R(We,Ce,h(We.el),Bn(We),c,m,y),E.el=Ce.el,ee===null&&xl(c,Ce.el),U&&we(U,m),(_e=E.props&&E.props.onVnodeUpdated)&&we(()=>He(_e,K,E,ie),m)}else{let E;const{el:F,props:U}=d,{bm:K,m:ie,parent:ee,root:_e,type:Ce}=c,We=Wt(d);mt(c,!1),K&&fn(K),!We&&(E=U&&U.onVnodeBeforeMount)&&He(E,ee,d),mt(c,!0);{_e.ce&&_e.ce._hasShadowRoot()&&_e.ce._injectChildStyle(Ce);const ze=c.subTree=Ws(c);R(null,ze,p,w,c,m,y),d.el=ze.el}if(ie&&we(ie,m),!We&&(E=U&&U.onVnodeMounted)){const ze=d;we(()=>He(E,ee,ze),m)}(d.shapeFlag&256||ee&&Wt(ee.vnode)&&ee.vnode.shapeFlag&256)&&c.a&&we(c.a,m),c.isMounted=!0,d=p=w=null}};c.scope.on();const S=c.effect=new qr(k);c.scope.off();const v=c.update=S.run.bind(S),$=c.job=S.runIfDirty.bind(S);$.i=c,$.id=c.uid,S.scheduler=()=>ur($),mt(c,!0),v()},z=(c,d,p)=>{d.component=c;const w=c.vnode.props;c.vnode=d,c.next=null,Cl(c,d.props,w,p),El(c,d.children,p),Ne(),ms(c),Le()},Q=(c,d,p,w,m,y,T,k,S=!1)=>{const v=c&&c.children,$=c?c.shapeFlag:0,E=d.children,{patchFlag:F,shapeFlag:U}=d;if(F>0){if(F&128){nt(v,E,p,w,m,y,T,k,S);return}else if(F&256){ft(v,E,p,w,m,y,T,k,S);return}}U&8?($&16&&nn(v,m,y),E!==v&&f(p,E)):$&16?U&16?nt(v,E,p,w,m,y,T,k,S):nn(v,m,y,!0):($&8&&f(p,""),U&16&&he(E,p,w,m,y,T,k,S))},ft=(c,d,p,w,m,y,T,k,S)=>{c=c||wt,d=d||wt;const v=c.length,$=d.length,E=Math.min(v,$);let F;for(F=0;F<E;F++){const U=d[F]=S?Qe(d[F]):Be(d[F]);R(c[F],U,p,null,m,y,T,k,S)}v>$?nn(c,m,y,!0,!1,E):he(d,p,w,m,y,T,k,S,E)},nt=(c,d,p,w,m,y,T,k,S)=>{let v=0;const $=d.length;let E=c.length-1,F=$-1;for(;v<=E&&v<=F;){const U=c[v],K=d[v]=S?Qe(d[v]):Be(d[v]);if(yt(U,K))R(U,K,p,null,m,y,T,k,S);else break;v++}for(;v<=E&&v<=F;){const U=c[E],K=d[F]=S?Qe(d[F]):Be(d[F]);if(yt(U,K))R(U,K,p,null,m,y,T,k,S);else break;E--,F--}if(v>E){if(v<=F){const U=F+1,K=U<$?d[U].el:w;for(;v<=F;)R(null,d[v]=S?Qe(d[v]):Be(d[v]),p,K,m,y,T,k,S),v++}}else if(v>F)for(;v<=E;)Ve(c[v],m,y,!0),v++;else{const U=v,K=v,ie=new Map;for(v=K;v<=F;v++){const Te=d[v]=S?Qe(d[v]):Be(d[v]);Te.key!=null&&ie.set(Te.key,v)}let ee,_e=0;const Ce=F-K+1;let We=!1,ze=0;const sn=new Array(Ce);for(v=0;v<Ce;v++)sn[v]=0;for(v=U;v<=E;v++){const Te=c[v];if(_e>=Ce){Ve(Te,m,y,!0);continue}let Ke;if(Te.key!=null)Ke=ie.get(Te.key);else for(ee=K;ee<=F;ee++)if(sn[ee-K]===0&&yt(Te,d[ee])){Ke=ee;break}Ke===void 0?Ve(Te,m,y,!0):(sn[Ke-K]=v+1,Ke>=ze?ze=Ke:We=!0,R(Te,d[Ke],p,null,m,y,T,k,S),_e++)}const Ki=We?Il(sn):wt;for(ee=Ki.length-1,v=Ce-1;v>=0;v--){const Te=K+v,Ke=d[Te],Gi=d[Te+1],qi=Te+1<$?Gi.el||ii(Gi):w;sn[v]===0?R(null,Ke,p,qi,m,y,T,k,S):We&&(ee<0||v!==Ki[ee]?rt(Ke,p,qi,2):ee--)}}},rt=(c,d,p,w,m=null)=>{const{el:y,type:T,transition:k,children:S,shapeFlag:v}=c;if(v&6){rt(c.component.subTree,d,p,w);return}if(v&128){c.suspense.move(d,p,w);return}if(v&64){T.move(c,d,p,rn);return}if(T===me){r(y,d,p);for(let E=0;E<S.length;E++)rt(S[E],d,p,w);r(c.anchor,d,p);return}if(T===In){j(c,d,p);return}if(w!==2&&v&1&&k)if(w===0)k.beforeEnter(y),r(y,d,p),we(()=>k.enter(y),m);else{const{leave:E,delayLeave:F,afterLeave:U}=k,K=()=>{c.ctx.isUnmounted?s(y):r(y,d,p)},ie=()=>{y._isLeaving&&y[Ue](!0),E(y,()=>{K(),U&&U()})};F?F(y,K,ie):ie()}else r(y,d,p)},Ve=(c,d,p,w=!1,m=!1)=>{const{type:y,props:T,ref:k,children:S,dynamicChildren:v,shapeFlag:$,patchFlag:E,dirs:F,cacheIndex:U}=c;if(E===-2&&(m=!1),k!=null&&(Ne(),Vt(k,null,p,c,!0),Le()),U!=null&&(d.renderCache[U]=void 0),$&256){d.ctx.deactivate(c);return}const K=$&1&&F,ie=!Wt(c);let ee;if(ie&&(ee=T&&T.onVnodeBeforeUnmount)&&He(ee,d,c),$&6)Cc(c.component,p,w);else{if($&128){c.suspense.unmount(p,w);return}K&>(c,null,d,"beforeUnmount"),$&64?c.type.remove(c,d,p,rn,w):v&&!v.hasOnce&&(y!==me||E>0&&E&64)?nn(v,d,p,!1,!0):(y===me&&E&384||!m&&$&16)&&nn(S,d,p),w&&Wi(c)}(ie&&(ee=T&&T.onVnodeUnmounted)||K)&&we(()=>{ee&&He(ee,d,c),K&>(c,null,d,"unmounted")},p)},Wi=c=>{const{type:d,el:p,anchor:w,transition:m}=c;if(d===me){_c(p,w);return}if(d===In){b(c);return}const y=()=>{s(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:T,delayLeave:k}=m,S=()=>T(p,y);k?k(c.el,y,S):S()}else y()},_c=(c,d)=>{let p;for(;c!==d;)p=x(c),s(c),c=p;s(d)},Cc=(c,d,p)=>{const{bum:w,scope:m,job:y,subTree:T,um:k,m:S,a:v}=c;si(S),si(v),w&&fn(w),m.stop(),y&&(y.flags|=8,Ve(T,c,d,p)),k&&we(k,d),we(()=>{c.isUnmounted=!0},d)},nn=(c,d,p,w=!1,m=!1,y=0)=>{for(let T=y;T<c.length;T++)Ve(c[T],d,p,w,m)},Bn=c=>{if(c.shapeFlag&6)return Bn(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const d=x(c.anchor||c.el),p=d&&d[Ko];return p?x(p):d};let $r=!1;const zi=(c,d,p)=>{let w;c==null?d._vnode&&(Ve(d._vnode,null,null,!0),w=d._vnode.component):R(d._vnode||null,c,d,null,null,null,p),d._vnode=c,$r||($r=!0,ms(w),ys(),$r=!1)},rn={p:R,um:Ve,m:rt,r:Wi,mt:I,mc:he,pc:Q,pbc:Y,n:Bn,o:e};return{render:zi,hydrate:void 0,createApp:pl(zi)}}function Cr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function mt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ol(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ni(e,t,n=!1){const r=e.children,s=t.children;if(P(r)&&P(s))for(let i=0;i<r.length;i++){const o=r[i];let l=s[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[i]=Qe(s[i]),l.el=o.el),!n&&l.patchFlag!==-2&&ni(o,l)),l.type===On&&(l.patchFlag===-1&&(l=s[i]=Qe(l)),l.el=o.el),l.type===ye&&!l.el&&(l.el=o.el)}}function Il(e){const t=e.slice(),n=[0];let r,s,i,o,l;const a=e.length;for(r=0;r<a;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<u?i=l+1:o=l;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function ri(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ri(t)}function si(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ii(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ii(t.subTree):null}const oi=e=>e.__isSuspense;function Rl(e,t){t&&t.pendingBranch?P(e)?t.effects.push(...e):t.effects.push(e):Bo(e)}const me=Symbol.for("v-fgt"),On=Symbol.for("v-txt"),ye=Symbol.for("v-cmt"),In=Symbol.for("v-stc"),Gt=[];let ke=null;function ne(e=!1){Gt.push(ke=e?null:[])}function jl(){Gt.pop(),ke=Gt[Gt.length-1]||null}let qt=1;function Rn(e,t=!1){qt+=e,e<0&&ke&&t&&(ke.hasOnce=!0)}function li(e){return e.dynamicChildren=qt>0?ke||wt:null,jl(),qt>0&&ke&&ke.push(e),e}function se(e,t,n,r,s,i){return li(A(e,t,n,r,s,i,!0))}function Fl(e,t,n,r,s){return li(ae(e,t,n,r,s,!0))}function jn(e){return e?e.__v_isVNode===!0:!1}function yt(e,t){return e.type===t.type&&e.key===t.key}const ai=({key:e})=>e??null,Fn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?le(e)||ue(e)||L(e)?{i:Me,r:e,k:t,f:!!n}:e:null);function A(e,t=null,n=null,r=0,s=null,i=e===me?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ai(t),ref:t&&Fn(t),scopeId:bs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Me};return l?(Sr(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=le(n)?8:16),qt>0&&!o&&ke&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&ke.push(a),a}const ae=Pl;function Pl(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===ol)&&(e=ye),jn(e)){const l=at(e,t,!0);return n&&Sr(l,n),qt>0&&!i&&ke&&(l.shapeFlag&6?ke[ke.indexOf(e)]=l:ke.push(l)),l.patchFlag=-2,l}if(Jl(e)&&(e=e.__vccOpts),t){t=$l(t);let{class:l,style:a}=t;l&&!le(l)&&(t.class=fe(l)),X(a)&&(cr(a)&&!P(a)&&(a=oe({},a)),t.style=dn(a))}const o=le(e)?1:oi(e)?128:Cs(e)?64:X(e)?4:L(e)?2:0;return A(e,t,n,r,s,o,i,!0)}function $l(e){return e?cr(e)||Js(e)?oe({},e):e:null}function at(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:l,transition:a}=e,u=t?Ll(s||{},t):s,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ai(u),ref:t&&t.ref?n&&i?P(i)?i.concat(Fn(t)):[i,Fn(t)]:Fn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&at(e.ssContent),ssFallback:e.ssFallback&&at(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Ht(f,a.clone(f)),f}function Nl(e=" ",t=0){return ae(On,null,e,t)}function ci(e,t){const n=ae(In,null,e);return n.staticCount=t,n}function Jt(e="",t=!1){return t?(ne(),Fl(ye,null,e)):ae(ye,null,e)}function Be(e){return e==null||typeof e=="boolean"?ae(ye):P(e)?ae(me,null,e.slice()):jn(e)?Qe(e):ae(On,null,String(e))}function Qe(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:at(e)}function Sr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(P(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Sr(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Js(t)?t._ctx=Me:s===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else L(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),r&64?(n=16,t=[Nl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ll(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=fe([t.class,r.class]));else if(s==="style")t.style=dn([t.style,r.style]);else if(ln(s)){const i=t[s],o=r[s];o&&i!==o&&!(P(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function He(e,t,n,r=null){Fe(e,t,7,[n,r])}const Dl=Hs();let Ul=0;function Bl(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Dl,i={uid:Ul++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new io(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Xs(r,s),emitsOptions:Vs(r,s),emit:null,emitted:null,propsDefaults:te,inheritAttrs:r.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,setupContext:null,suspense:n,suspenseId:n?n.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=ml.bind(null,i),e.ce&&e.ce(i),i}let ve=null;const fi=()=>ve||Me;let Pn,kr;{const e=un(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Pn=t("__VUE_INSTANCE_SETTERS__",n=>ve=n),kr=t("__VUE_SSR_SETTERS__",n=>Xt=n)}const Yt=e=>{const t=ve;return Pn(e),e.scope.on(),()=>{e.scope.off(),Pn(t)}},ui=()=>{ve&&ve.scope.off(),Pn(null)};function di(e){return e.vnode.shapeFlag&4}let Xt=!1;function Hl(e,t=!1,n=!1){t&&kr(t);const{props:r,children:s}=e.vnode,i=di(e);_l(e,r,i,t),Tl(e,s,n||t);const o=i?Vl(e,t):void 0;return t&&kr(!1),o}function Vl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ll);const{setup:r}=n;if(r){Ne();const s=e.setupContext=r.length>1?zl(e):null,i=Yt(e),o=St(r,e,0,[e.props,s]),l=Ur(o);if(Le(),i(),(l||e.sp)&&!Wt(e)&&Os(e),l){if(o.then(ui,ui),t)return o.then(a=>{hi(e,a)}).catch(a=>{wn(a,e,0)});e.asyncDep=o}else hi(e,o)}else pi(e)}function hi(e,t,n){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=ds(t)),pi(e)}function pi(e,t,n){const r=e.type;e.render||(e.render=r.render||Pe);{const s=Yt(e);Ne();try{al(e)}finally{Le(),s()}}}const Wl={get(e,t){return de(e,"get",""),e[t]}};function zl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Wl),slots:e.slots,emit:e.emit,expose:t}}function $n(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ds(Eo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zt)return zt[n](e)},has(t,n){return n in t||n in zt}})):e.proxy}const Kl=/(?:^|[-_])\w/g,Gl=e=>e.replace(Kl,t=>t.toUpperCase()).replace(/[-_]/g,"");function ql(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function gi(e,t,n=!1){let r=ql(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e){const s=i=>{for(const o in i)if(i[o]===t)return o};r=s(e.components)||e.parent&&s(e.parent.type.components)||s(e.appContext.components)}return r?Gl(r):n?"App":"Anonymous"}function Jl(e){return L(e)&&"__vccOpts"in e}const xe=(e,t)=>Ro(e,t,Xt);function Yl(e,t,n){try{Rn(-1);const r=arguments.length;return r===2?X(t)&&!P(t)?jn(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&jn(n)&&(n=[n]),ae(e,t,n))}finally{Rn(1)}}const Xl="3.5.29";/**
|
|
17
17
|
* @vue/runtime-dom v3.5.29
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
20
|
-
**/let Tr;const mi=typeof window<"u"&&window.trustedTypes;if(mi)try{Tr=mi.createPolicy("vue",{createHTML:e=>e})}catch{}const yi=Tr?e=>Tr.createHTML(e):e=>e,Zl="http://www.w3.org/2000/svg",Ql="http://www.w3.org/1998/Math/MathML",et=typeof document<"u"?document:null,vi=et&&et.createElement("template"),ea={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?et.createElementNS(Zl,e):t==="mathml"?et.createElementNS(Ql,e):n?et.createElement(e,{is:n}):et.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>et.createTextNode(e),createComment:e=>et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{vi.innerHTML=yi(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=vi.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ct="transition",Zt="animation",Qt=Symbol("_vtc"),bi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ta=oe({},Ss,bi),na=(e=>(e.displayName="Transition",e.props=ta,e))((e,{slots:t})=>Yl(Jo,ra(e),t)),vt=(e,t=[])=>{P(e)?e.forEach(n=>n(...t)):e&&e(...t)},wi=e=>e?P(e)?e.some(t=>t.length>1):e.length>1:!1;function ra(e){const t={};for(const g in e)g in bi||(t[g]=e[g]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:u=o,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:x=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=e,$=sa(s),R=$&&$[0],J=$&&$[1],{onBeforeEnter:V,onEnter:D,onEnterCancelled:j,onLeave:b,onLeaveCancelled:M,onBeforeAppear:z=V,onAppear:ce=D,onAppearCancelled:he=j}=t,H=(g,C,I,B)=>{g._enterCancelled=B,bt(g,C?f:l),bt(g,C?u:o),I&&I()},Y=(g,C)=>{g._isLeaving=!1,bt(g,h),bt(g,_),bt(g,x),C&&C()},O=g=>(C,I)=>{const B=g?ce:D,Z=()=>H(C,g,I);vt(B,[C,Z]),xi(()=>{bt(C,g?a:i),tt(C,g?f:l),wi(B)||_i(C,r,R,Z)})};return oe(t,{onBeforeEnter(g){vt(V,[g]),tt(g,i),tt(g,o)},onBeforeAppear(g){vt(z,[g]),tt(g,a),tt(g,u)},onEnter:O(!1),onAppear:O(!0),onLeave(g,C){g._isLeaving=!0;const I=()=>Y(g,C);tt(g,h),g._enterCancelled?(tt(g,x),ki(g)):(ki(g),tt(g,x)),xi(()=>{g._isLeaving&&(bt(g,h),tt(g,_),wi(b)||_i(g,r,J,I))}),vt(b,[g,I])},onEnterCancelled(g){H(g,!1,void 0,!0),vt(j,[g])},onAppearCancelled(g){H(g,!0,void 0,!0),vt(he,[g])},onLeaveCancelled(g){Y(g),vt(M,[g])}})}function sa(e){if(e==null)return null;if(X(e))return[Er(e.enter),Er(e.leave)];{const t=Er(e);return[t,t]}}function Er(e){return qn(e)}function tt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Qt]||(e[Qt]=new Set)).add(t)}function bt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Qt];n&&(n.delete(t),n.size||(e[Qt]=void 0))}function xi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ia=0;function _i(e,t,n,r){const s=e._endId=++ia,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:a}=oa(e,t);if(!o)return r();const u=o+"end";let f=0;const h=()=>{e.removeEventListener(u,x),i()},x=_=>{_.target===e&&++f>=a&&h()};setTimeout(()=>{f<a&&h()},l+1),e.addEventListener(u,x)}function oa(e,t){const n=window.getComputedStyle(e),r=$=>(n[$]||"").split(", "),s=r(`${ct}Delay`),i=r(`${ct}Duration`),o=Ci(s,i),l=r(`${Zt}Delay`),a=r(`${Zt}Duration`),u=Ci(l,a);let f=null,h=0,x=0;t===ct?o>0&&(f=ct,h=o,x=i.length):t===Zt?u>0&&(f=Zt,h=u,x=a.length):(h=Math.max(o,u),f=h>0?o>u?ct:Zt:null,x=f?f===ct?i.length:a.length:0);const _=f===ct&&/\b(?:transform|all)(?:,|$)/.test(r(`${ct}Property`).toString());return{type:f,timeout:h,propCount:x,hasTransform:_}}function Ci(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Si(n)+Si(e[r])))}function Si(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ki(e){return(e?e.ownerDocument:document).body.offsetHeight}function la(e,t,n){const r=e[Qt];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const $n=Symbol("_vod"),Ti=Symbol("_vsh"),Ei={name:"show",beforeMount(e,{value:t},{transition:n}){e[$n]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):en(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),en(e,!0),r.enter(e)):r.leave(e,()=>{en(e,!1)}):en(e,t))},beforeUnmount(e,{value:t}){en(e,t)}};function en(e,t){e.style.display=t?e[$n]:"none",e[Ti]=!t}const aa=Symbol(""),ca=/(?:^|;)\s*display\s*:/;function fa(e,t,n){const r=e.style,s=le(n);let i=!1;if(n&&!s){if(t)if(le(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&Ln(r,l,"")}else for(const o in t)n[o]==null&&Ln(r,o,"");for(const o in n)o==="display"&&(i=!0),Ln(r,o,n[o])}else if(s){if(t!==n){const o=r[aa];o&&(n+=";"+o),r.cssText=n,i=ca.test(n)}}else t&&e.removeAttribute("style");$n in e&&(e[$n]=i?r.display:"",e[Ti]&&(r.display="none"))}const Ai=/\s*!important$/;function Ln(e,t,n){if(P(n))n.forEach(r=>Ln(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=ua(e,t);Ai.test(n)?e.setProperty(Ee(r),n.replace(Ai,""),"important"):e[r]=n}}const Mi=["Webkit","Moz","ms"],Ar={};function ua(e,t){const n=Ar[t];if(n)return n;let r=Ie(t);if(r!=="filter"&&r in e)return Ar[t]=r;r=Hr(r);for(let s=0;s<Mi.length;s++){const i=Mi[s]+r;if(i in e)return Ar[t]=i}return t}const Oi="http://www.w3.org/1999/xlink";function Ii(e,t,n,r,s,i=ro(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Oi,t.slice(6,t.length)):e.setAttributeNS(Oi,t,n):n==null||i&&!Wr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ne(n)?String(n):n)}function Ri(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?yi(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Wr(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function Ot(e,t,n,r){e.addEventListener(t,n,r)}function da(e,t,n,r){e.removeEventListener(t,n,r)}const ji=Symbol("_vei");function ha(e,t,n,r,s=null){const i=e[ji]||(e[ji]={}),o=i[t];if(r&&o)o.value=r;else{const[l,a]=pa(t);if(r){const u=i[t]=ya(r,s);Ot(e,l,u,a)}else o&&(da(e,l,o,a),i[t]=void 0)}}const Fi=/(?:Once|Passive|Capture)$/;function pa(e){let t;if(Fi.test(e)){t={};let r;for(;r=e.match(Fi);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ee(e.slice(2)),t]}let Mr=0;const ga=Promise.resolve(),ma=()=>Mr||(ga.then(()=>Mr=0),Mr=Date.now());function ya(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Fe(va(r,n.value),t,5,[r])};return n.value=e,n.attached=ma(),n}function va(e,t){if(P(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Pi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ba=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?la(e,r,o):t==="style"?fa(e,n,r):ln(t)?Vn(t)||ha(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wa(e,t,r,o))?(Ri(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ii(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!le(r))?Ri(e,Ie(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ii(e,t,r,o))};function wa(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Pi(t)&&L(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||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 Pi(t)&&le(n)?!1:t in e}const Ni={};function xa(e,t,n){let r=At(e,t);an(r)&&(r=oe({},r,t));class s extends Or{constructor(o){super(r,o,n)}}return s.def=r,s}const _a=typeof HTMLElement<"u"?HTMLElement:class{};class Or extends _a{constructor(t,n={},r=Hi){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==Hi?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(oe({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Or){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Et(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=r;let l;if(i&&!P(i))for(const a in i){const u=i[a];(u===Number||u&&u.type===Number)&&(a in this._props&&(this._props[a]=qn(this._props[a])),(l||(l=Object.create(null)))[Ie(a)]=!0)}this._numberProps=l,this._resolveProps(r),this.shadowRoot&&this._applyStyles(o),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)q(this,r)||Object.defineProperty(this,r,{get:()=>Ye(n[r])})}_resolveProps(t){const{props:n}=t,r=P(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s]);for(const s of r.map(Ie))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(i){this._setProp(s,i,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):Ni;const s=Ie(t);n&&this._numberProps&&this._numberProps[s]&&(r=qn(r)),this._setProp(s,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!1){if(n!==this._props[t]&&(this._dirty=!0,n===Ni?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),r)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),n===!0?this.setAttribute(Ee(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ee(t),n+""):n||this.removeAttribute(Ee(t)),i&&i.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Ta(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=ae(this._def,oe(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const s=(i,o)=>{this.dispatchEvent(new CustomEvent(i,an(o[0])?oe({detail:o},o[0]):{detail:o}))};r.emit=(i,...o)=>{s(i,o),Ee(i)!==i&&s(Ee(i),o)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let s=t.length-1;s>=0;s--){const i=document.createElement("style");r&&i.setAttribute("nonce",r),i.textContent=t[s],this.shadowRoot.prepend(i)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const s=t[r],i=s.getAttribute("name")||"default",o=this._slots[i],l=s.parentNode;if(o)for(const a of o){if(n&&a.nodeType===1){const u=n+"-s",f=document.createTreeWalker(a,1);a.setAttribute(u,"");let h;for(;h=f.nextNode();)h.setAttribute(u,"")}l.insertBefore(a,s)}else for(;s.firstChild;)l.insertBefore(s.firstChild,s);l.removeChild(s)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const r of t){const s=r.querySelectorAll("slot");for(let i=0;i<s.length;i++)n.add(s[i])}return Array.from(n)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}const $i=e=>{const t=e.props["onUpdate:modelValue"]||!1;return P(t)?n=>fn(t,n):t};function Ca(e){e.target.composing=!0}function Li(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ir=Symbol("_assign");function Di(e,t,n){return t&&(e=e.trim()),n&&(e=Gn(e)),e}const Sa={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Ir]=$i(s);const i=r||s.props&&s.props.type==="number";Ot(e,t?"change":"input",o=>{o.target.composing||e[Ir](Di(e.value,n,i))}),(n||i)&&Ot(e,"change",()=>{e.value=Di(e.value,n,i)}),t||(Ot(e,"compositionstart",Ca),Ot(e,"compositionend",Li),Ot(e,"change",Li))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[Ir]=$i(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Gn(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===a)||(e.value=a))}},ka=oe({patchProp:ba},ea);let Ui;function Bi(){return Ui||(Ui=Al(ka))}const Ta=(...e)=>{Bi().render(...e)},Hi=(...e)=>{const t=Bi().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Aa(r);if(!s)return;const i=t._component;!L(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Ea(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function Ea(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Aa(e){return le(e)?document.querySelector(e):e}const Ma={class:"typing-indicator flex items-center gap-1 py-2"},Oa={class:"flex gap-0.5"},Ia=((e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n})(At({__name:"TypingIndicator",setup(e){return(t,n)=>(ne(),se("div",Ma,[n[0]||(n[0]=A("span",{class:"text-xs text-gray-500"},"Admin is typing",-1)),A("span",Oa,[(ne(),se(me,null,Ps(3,r=>A("span",{key:r,class:"w-1.5 h-1.5 bg-gray-400 rounded-full animate-bounce",style:dn({animationDelay:`${(r-1)*150}ms`})},null,4)),64))])]))}}),[["styles",["@keyframes bounce-d427c516{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-4px)}}.animate-bounce[data-v-d427c516]{animation:bounce-d427c516 1s infinite}"]],["__scopeId","data-v-d427c516"]]);async function Ra(e,t={}){const{filename:n}=t;try{const r=await fetch(e);if(!r.ok)throw new Error(`HTTP error: ${r.status}`);const s=await r.blob(),i=URL.createObjectURL(s),o=document.createElement("a");o.href=i,o.download=n||ja(e)||"download",o.rel="noopener noreferrer",document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(i)}catch(r){console.warn("[Download] Fetch failed, falling back to open in new tab:",r instanceof Error?r.message:"Unknown error"),Fa(e)}}function ja(e){try{const r=new URL(e).pathname.split("/"),s=r[r.length-1];return s&&s.split("?")[0]||null}catch{return null}}function Fa(e){const t=document.createElement("a");t.href=e,t.target="_blank",t.rel="noopener noreferrer",document.body.appendChild(t),t.click(),document.body.removeChild(t)}const Pa={class:"message-list flex-1 overflow-y-auto p-4 space-y-3"},Na={key:0,class:"text-center text-gray-400 py-8"},$a={key:0,class:"text-[11px] font-bold text-gray-400 uppercase tracking-widest text-center px-6"},La={key:0,class:"whitespace-pre-wrap"},Da={key:1,class:"mt-2"},Ua=["href"],Ba=["src"],Ha={class:"flex gap-2 mt-1"},Va=["href"],za=["onClick"],Wa={class:"flex-1 min-w-0"},Ka={class:"flex gap-1"},Ga=["onClick"],qa=["href"],Ja={key:2,class:"flex justify-start"},Ya={class:"bg-gray-100 rounded-2xl rounded-bl-md px-4 py-2"},Xa=At({__name:"MessageList",props:{messages:{type:Array},showTyping:{type:Boolean}},setup(e,{expose:t}){const n=e,r=Ce(null);function s(u){if(!u)return!1;const f=[".jpg",".jpeg",".png",".gif",".webp",".bmp"],h=u.toLowerCase();return f.some(x=>h.includes(x))||u.includes("image/")}function i(u){if(!u)return"File";try{const x=new URL(u).pathname.split("/"),_=x[x.length-1];return _&&_.split("?")[0]||"File"}catch{return"File"}}async function o(u){u&&await Ra(u)}function l(u){const f=u.target;f.style.display="none"}function a(){Et(()=>{var u;(u=r.value)==null||u.scrollIntoView({behavior:"smooth"})})}return lt(()=>n.messages.length,()=>{a()}),lt(()=>n.showTyping,()=>{a()}),t({scrollToBottom:a}),(u,f)=>(ne(),se("div",Pa,[e.messages.length===0?(ne(),se("div",Na,[...f[0]||(f[0]=[A("p",{class:"text-sm"},"No messages yet.",-1),A("p",{class:"text-xs mt-1"},"Start a conversation!",-1)])])):(ne(!0),se(me,{key:1},Ps(e.messages,h=>(ne(),se("div",{key:h.id,class:fe(["message-row flex w-full",[h.sender==="user"?"justify-end":"justify-start",h.sender==="system"?"justify-center py-2":""]])},[h.sender==="system"?(ne(),se("div",$a,ut(h.content),1)):(ne(),se("div",{key:1,class:fe(["message-bubble max-w-[80%] px-4 py-2 rounded-2xl text-sm break-words",h.sender==="user"?"bg-primary text-white rounded-br-md":"bg-gray-100 text-gray-800 rounded-bl-md"])},[h.content?(ne(),se("p",La,ut(h.content),1)):Jt("",!0),h.attachmentUrl?(ne(),se("div",Da,[s(h.attachmentUrl)?(ne(),se(me,{key:0},[A("a",{href:h.attachmentUrl,target:"_blank",rel:"noopener noreferrer",class:"block"},[A("img",{src:h.attachmentUrl,alt:"Attachment",class:"max-w-full rounded-lg border-0 cursor-pointer hover:opacity-90 transition-opacity max-h-48 object-cover",onError:l},null,40,Ba)],8,Ua),A("div",Ha,[A("a",{href:h.attachmentUrl,target:"_blank",rel:"noopener noreferrer",class:fe(["text-xs underline hover:no-underline",h.sender==="user"?"text-primary-100":"text-primary-600"])}," Open in new tab ",10,Va),A("button",{class:fe(["text-xs underline hover:no-underline",h.sender==="user"?"text-primary-100":"text-primary-600"]),onClick:x=>o(h.attachmentUrl)}," Download ",10,za)])],64)):(ne(),se("div",{key:1,class:fe(["flex items-center gap-3 p-2 rounded-lg border",h.sender==="user"?"border-primary-400/30 bg-primary-600/20":"border-gray-200 bg-gray-50"])},[A("div",{class:fe(["w-10 h-10 rounded-lg flex items-center justify-center",h.sender==="user"?"bg-primary-400/30":"bg-gray-200"])},[(ne(),se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",class:fe(h.sender==="user"?"text-primary-100":"text-gray-500")},[...f[1]||(f[1]=[A("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"},null,-1),A("polyline",{points:"14 2 14 8 20 8"},null,-1)])],2))],2),A("div",Wa,[A("p",{class:fe(["text-xs font-medium truncate",h.sender==="user"?"text-primary-50":"text-gray-700"])},ut(i(h.attachmentUrl)),3)]),A("div",Ka,[A("button",{class:fe(["p-1.5 rounded hover:bg-black/10 transition-colors",h.sender==="user"?"text-primary-100":"text-gray-500"]),title:"Download",onClick:x=>o(h.attachmentUrl)},[...f[2]||(f[2]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[A("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),A("polyline",{points:"7 10 12 15 17 10"}),A("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1)])],10,Ga),A("a",{href:h.attachmentUrl,target:"_blank",rel:"noopener noreferrer",class:fe(["p-1.5 rounded hover:bg-black/10 transition-colors",h.sender==="user"?"text-primary-100":"text-gray-500"]),title:"Open in new tab"},[...f[3]||(f[3]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[A("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),A("polyline",{points:"15 3 21 3 21 9"}),A("line",{x1:"10",y1:"14",x2:"21",y2:"3"})],-1)])],10,qa)])],2))])):Jt("",!0)],2))],2))),128)),e.showTyping?(ne(),se("div",Ja,[A("div",Ya,[ae(Ia)])])):Jt("",!0),A("div",{ref_key:"scrollAnchor",ref:r,class:"scroll-anchor h-0"},null,512)]))}}),Za={class:"message-input border-t border-gray-200 p-3"},Qa={key:0,class:"mb-2 flex items-center gap-2 p-2 bg-gray-50 rounded-lg"},ec={class:"text-sm text-gray-600 truncate flex-1"},tc={class:"flex items-end gap-2"},nc=["disabled"],rc=["disabled","placeholder"],sc=["disabled","aria-label"],ic={class:"flex items-center justify-between mt-1.5 px-1"},oc={class:"text-xs text-gray-400"},lc={key:0},ac={key:1},Rr=2500,cc=At({__name:"MessageInput",props:{isEnabled:{type:Boolean}},emits:["send","typing","upload"],setup(e,{expose:t,emit:n}){const r=e,s=n,i=Ce(""),o=Ce(null),l=Ce(null),a=Ce(null),u=ke(()=>i.value.length),f=ke(()=>u.value>Rr),h=ke(()=>{const b=i.value.trim();return r.isEnabled&&(b.length>0||a.value!==null)&&b.length<=Rr}),x=ke(()=>r.isEnabled?"Type a message...":"Waiting for connection...");function _(){var b;(b=l.value)==null||b.click()}function $(b){var ce;const M=b.target,z=(ce=M.files)==null?void 0:ce[0];if(z){if(z.size>10*1024*1024){alert("File size must be less than 10MB");return}a.value=z}M.value=""}function R(){a.value=null}function J(){const b=o.value;if(!b)return;b.style.height="auto";const M=Math.min(b.scrollHeight,120);b.style.height=`${M}px`,r.isEnabled&&s("typing")}function V(b){b.key==="Enter"&&!b.shiftKey&&!b.isComposing&&(b.preventDefault(),h.value&&D())}function D(){const b=i.value.trim(),M=a.value;r.isEnabled&&(M&&(s("upload",M),a.value=null),b&&s("send",b),i.value="",Et(()=>{const z=o.value;z&&(z.style.height="auto")}))}function j(){var b;(b=o.value)==null||b.focus()}return t({focus:j}),(b,M)=>(ne(),se("div",Za,[A("input",{ref_key:"fileInputRef",ref:l,type:"file",class:"hidden",accept:"image/jpeg,image/png,image/gif,image/webp,application/pdf,text/plain,application/msword,.doc,.docx",onChange:$},null,544),a.value?(ne(),se("div",Qa,[M[2]||(M[2]=A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",class:"text-gray-500"},[A("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),A("polyline",{points:"14 2 14 8 20 8"})],-1)),A("span",ec,ut(a.value.name),1),A("button",{type:"button",class:"text-gray-400 hover:text-gray-600 p-1",onClick:R},[...M[1]||(M[1]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[A("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])])):Jt("",!0),A("div",tc,[A("button",{disabled:!e.isEnabled,class:fe(["flex items-center justify-center w-10 h-10 text-gray-500 hover:text-gray-700 rounded-full transition-colors disabled:text-gray-300 disabled:cursor-not-allowed",{"hover:bg-gray-100":e.isEnabled}]),"aria-label":"Attach file",onClick:_},[...M[3]||(M[3]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[A("path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"})],-1)])],10,nc),dr(A("textarea",{ref_key:"textareaRef",ref:o,"onUpdate:modelValue":M[0]||(M[0]=z=>i.value=z),disabled:!e.isEnabled,placeholder:x.value,class:fe(["flex-1 min-h-[44px] max-h-[120px] px-3 py-2.5 text-sm border border-gray-300 rounded-xl resize-none outline-none transition-colors focus:border-primary focus:ring-1 focus:ring-primary disabled:bg-gray-100 disabled:text-gray-400",{"border-red-400 focus:border-red-500 focus:ring-red-500":f.value}]),rows:"1",onKeydown:V,onInput:J},null,42,rc),[[Sa,i.value]]),A("button",{disabled:!h.value,class:"send-button flex items-center justify-center w-10 h-10 bg-primary text-white rounded-full transition-all hover:bg-primary-600 disabled:bg-gray-300 disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2","aria-label":e.isEnabled?"Send message":"Cannot send message",onClick:D},[...M[4]||(M[4]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[A("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),A("polygon",{points:"22 2 15 22 11 13 2 9"})],-1)])],8,sc)]),A("div",ic,[A("p",oc,[e.isEnabled?(ne(),se("span",lc,"Press Enter to send, Shift+Enter for new line")):(ne(),se("span",ac,"Connecting..."))]),e.isEnabled&&u.value>0?(ne(),se("div",{key:0,class:fe(["text-[10px] font-bold uppercase tracking-widest px-2 py-0.5 rounded-md transition-colors",f.value?"bg-red-50 text-red-500":"bg-gray-100 text-gray-400"])},ut(u.value)+" / "+ut(Rr),3)):Jt("",!0)])]))}}),fc={class:"chat-window flex flex-col h-full bg-white rounded-xl shadow-lg overflow-hidden"},uc={class:"flex items-center justify-between px-4 py-3 bg-gradient-to-br from-primary to-primary-600 text-white shrink-0"},dc={key:0,class:"flex-1 flex flex-col items-center justify-center p-8"},hc={key:1,class:"flex-1 flex flex-col items-center justify-center p-8"},pc=At({__name:"ChatWindow",props:{status:{type:String},messages:{type:Array},adminTyping:{type:Boolean},isVisible:{type:Boolean}},emits:["close","retry","send","typing","upload"],setup(e,{emit:t}){const n=e,r=t,s=Ce(null),i=ke(()=>n.status==="connecting"),o=ke(()=>n.status==="connected"),l=ke(()=>n.status==="error");return lt(()=>n.status,a=>{a==="connected"&&Et(()=>{var u;(u=s.value)==null||u.scrollToBottom()})}),lt(()=>n.isVisible,a=>{a&&Et(()=>{var u;(u=s.value)==null||u.scrollToBottom()})}),(a,u)=>(ne(),se("div",fc,[A("div",uc,[u[6]||(u[6]=A("div",{class:"flex items-center gap-2"},[A("div",{class:"w-2 h-2 rounded-full bg-green-400"}),A("h2",{class:"text-base font-semibold"},"Support Chat")],-1)),A("button",{class:"flex items-center justify-center w-8 h-8 bg-white/20 border-0 text-white rounded-full cursor-pointer transition-colors hover:bg-white/30 focus:outline-none focus:ring-2 focus:ring-white/50","aria-label":"Close chat",onClick:u[0]||(u[0]=f=>r("close"))},[...u[5]||(u[5]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[A("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])]),i.value?(ne(),se("div",dc,[...u[7]||(u[7]=[A("div",{class:"w-10 h-10 border-4 border-primary-100 border-t-primary rounded-full animate-spin mb-4"},null,-1),A("p",{class:"text-gray-600 text-sm"},"Connecting to support...",-1)])])):l.value?(ne(),se("div",hc,[u[8]||(u[8]=ci('<div class="w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mb-4"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#dc2626" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg></div><p class="text-gray-800 font-medium mb-1">Connection failed</p><p class="text-gray-500 text-sm text-center mb-4"> Unable to connect to support. Please check your connection and try again. </p>',3)),A("button",{class:"px-4 py-2 bg-primary text-white text-sm font-medium rounded-lg transition-colors hover:bg-primary-600 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",onClick:u[1]||(u[1]=f=>r("retry"))}," Try Again ")])):(ne(),se(me,{key:2},[ae(Xa,{ref_key:"messageListRef",ref:s,messages:e.messages,"show-typing":e.adminTyping},null,8,["messages","show-typing"]),ae(cc,{"is-enabled":o.value,onSend:u[2]||(u[2]=f=>r("send",f)),onTyping:u[3]||(u[3]=f=>r("typing")),onUpload:u[4]||(u[4]=f=>r("upload",f))},null,8,["is-enabled"])],64))]))}}),Dn={initialDelay:1e3,maxDelay:31e3,multiplier:2,maxFailures:5};function gc(e={}){const t=Ce("disconnected"),n=Ce(null);let r=null,s=null,i=0,o=null,l=!1;function a(j){if(e.wsUrl){const z=new URL(e.wsUrl);return z.searchParams.set("jwt",j),z.toString()}const b=window.location.protocol==="https:"?"wss:":"ws:",M=window.location.host;return`${b}//${M}/ws?jwt=${encodeURIComponent(j)}`}function u(){const j=Dn.initialDelay*Math.pow(Dn.multiplier,i);return Math.min(j,Dn.maxDelay)}function f(){if(l)return;if(i>=Dn.maxFailures){t.value="error",n.value="Max reconnection attempts reached";return}const j=u();i++,o=setTimeout(()=>{!l&&s&&J(s)},j)}function h(){o&&(clearTimeout(o),o=null)}function x(){var j;t.value="connected",n.value=null,i=0,(j=e.onOpen)==null||j.call(e)}function _(j){var b;try{const M=JSON.parse(j.data);typeof M.event=="string"&&M.timestamp!==void 0&&typeof M.timestamp=="number"?(b=e.onMessage)==null||b.call(e,M):console.warn("[WebSocket] Received invalid envelope shape:",M)}catch{console.warn("[WebSocket] Received non-JSON message:",j.data)}}function $(j){var b;r=null,t.value="disconnected",(b=e.onClose)==null||b.call(e,j),l||f()}function R(j){var b;t.value="error",n.value="WebSocket error occurred",(b=e.onError)==null||b.call(e,j)}function J(j){if(!((r==null?void 0:r.readyState)===WebSocket.OPEN||(r==null?void 0:r.readyState)===WebSocket.CONNECTING)){h(),s=j,l=!1,t.value="connecting",n.value=null;try{const b=a(j);r=new WebSocket(b),r.addEventListener("open",x),r.addEventListener("message",_),r.addEventListener("close",$),r.addEventListener("error",R)}catch(b){t.value="error",n.value=b instanceof Error?b.message:"Failed to create WebSocket",f()}}}function V(j,b){if(!r||r.readyState!==WebSocket.OPEN)return!1;const M={event:j,data:b,timestamp:Math.floor(Date.now()/1e3)};try{return r.send(JSON.stringify(M)),!0}catch(z){return console.error("[WebSocket] Failed to send message:",z),!1}}function D(){l=!0,h(),r&&(r.removeEventListener("open",x),r.removeEventListener("message",_),r.removeEventListener("close",$),r.removeEventListener("error",R),(r.readyState===WebSocket.OPEN||r.readyState===WebSocket.CONNECTING)&&r.close(),r=null),t.value="disconnected",s=null,i=0}return{status:Lt(t),lastError:Lt(n),connect:J,send:V,disconnect:D}}function Un(e){try{const t=e.split(".");if(t.length!==3)return null;const n=t[1];if(!n)return null;const r=n+"=".repeat((4-n.length%4)%4),s=atob(r.replace(/-/g,"+").replace(/_/g,"/")),i=JSON.parse(s);return!i.platform_id||!i.external_user_id?null:{platform_id:i.platform_id,external_user_id:i.external_user_id}}catch{return null}}const mc="tvs_support_chat_id";function jr(e,t){return`${mc}:${e}:${t}`}function yc(e,t){try{const n=jr(e,t);return localStorage.getItem(n)}catch{return null}}function Fr(e,t,n){try{const r=jr(e,t);return localStorage.setItem(r,n),!0}catch{return!1}}function tn(e,t){try{const n=jr(e,t);return localStorage.removeItem(n),!0}catch{return!1}}function vc(e){const t=e.apiBaseUrl??"",n=Ce(null),r=Ce([]),s=Ce(!1),i=Ce(null),o=gc({onMessage:$,onOpen:()=>{i.value=null},onError:()=>{i.value="Connection error. Retrying..."},onClose:O=>{O.wasClean||(i.value="Connection lost. Reconnecting...")},wsUrl:e.wsUrl}),l=ke(()=>{switch(o.status.value){case"connecting":return"connecting";case"connected":return"connected";case"error":return"error";case"disconnected":return r.value.length>0?"error":"connecting";default:return"connecting"}}),a=ke(()=>l.value==="connected"),u=ke(()=>l.value==="connecting"),f=ke(()=>l.value==="error");let h=null;const x=300;function _(){return`${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function $(O){switch(O.event){case"server:message":{const g=O.data;if(!n.value){const C=Un(e.jwt),I=(C==null?void 0:C.platform_id)??"",B=(C==null?void 0:C.external_user_id)??"";n.value=g.chat_id,I&&B&&Fr(I,B,g.chat_id)}if(g.chat_id!==n.value)return;if(g.sender_type==="admin"&&(r.value.push({id:_(),sender:"admin",content:g.content??"",attachmentUrl:g.attachment_url,createdAt:new Date(g.created_at*1e3)}),s.value=!1),g.sender_type==="user"){let C=-1;for(let I=r.value.length-1;I>=0;I--){const B=r.value[I];if(B&&B.sender==="user"){const Z=!!g.attachment_url&&B.content===""&&B.attachmentUrl===null,W=!g.attachment_url&&B.content===g.content;if(Z||W){C=I;break}}}if(C!==-1){const I=r.value[C];I&&(I.attachmentUrl=g.attachment_url,I.createdAt=new Date(g.created_at*1e3))}else r.value.push({id:_(),sender:"user",content:g.content??"",attachmentUrl:g.attachment_url,createdAt:new Date(g.created_at*1e3)})}break}case"server:error":{const g=O.data;console.error("[Chat] Server error:",g),i.value=g.message||"An error occurred";break}case"server:chat_assigned":{O.data.chat_id===n.value&&r.value.push({id:_(),sender:"system",content:"TVS Agent joined the chat",createdAt:new Date});break}case"server:chat_closed":{if(O.data.chat_id===n.value){r.value.push({id:_(),sender:"system",content:"Chat ended",createdAt:new Date});const C=Un(e.jwt),I=(C==null?void 0:C.platform_id)??"",B=(C==null?void 0:C.external_user_id)??"";setTimeout(()=>{I&&B&&tn(I,B),n.value=null,r.value=[],s.value=!1},3100)}break}}}async function R(){var O,g;try{const C=await fetch(`${t}/api/chats`,{method:"POST",headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}});if(!C.ok){const B=await C.json().catch(()=>({}));throw new Error(((O=B.error)==null?void 0:O.message)||"Failed to create chat")}return((g=(await C.json()).data)==null?void 0:g.id)??null}catch(C){return console.error("[Chat] Failed to create chat:",C),i.value=C instanceof Error?C.message:"Failed to create chat",null}}async function J(O){try{const g=await fetch(`${t}/api/chats/${O}`,{method:"GET",headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}});if(g.status===403||g.status===404)return{notFound:!0};if(!g.ok)return null;const C=await g.json();return!C.ok||!C.data?{notFound:!0}:C.data}catch{return null}}async function V(){try{const O=await fetch(`${t}/api/chats?limit=20&offset=0`,{method:"GET",headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}});if(!O.ok)return null;const g=await O.json();if(!g.ok||!g.data)return null;const I=g.data.find(B=>B.status==="open"||B.status==="escalated");return I?{id:I.id,status:I.status}:null}catch{return null}}async function D(O){var g;try{const C=await fetch(`${t}/api/chats/${O}/messages?limit=50&offset=0`,{method:"GET",headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}});if(C.status===403||C.status===404)return{notFound:!0};if(!C.ok)return null;const I=await C.json();return!I.ok||!((g=I.data)!=null&&g.messages)?{notFound:!0}:I.data.messages.map(B=>({id:B.id,content:B.content??"",attachmentUrl:B.attachment_url,sender:B.sender_type,createdAt:new Date(B.created_at*1e3)}))}catch{return null}}async function j(){const O=Un(e.jwt),g=(O==null?void 0:O.platform_id)??"",C=(O==null?void 0:O.external_user_id)??"";if(!g||!C)return b("","");const I=yc(g,C);if(!I)return null;const B=await J(I);if(B===null){n.value=I;const W=await D(I);return W&&"notFound"in W?(tn(g,C),null):(r.value=W??[],I)}if("notFound"in B||B.status==="closed")return tn(g,C),null;n.value=I;const Z=await D(I);return Z&&"notFound"in Z?(tn(g,C),null):(r.value=Z??[],I)}async function b(O,g){const C=await R();return C?(n.value=C,O&&g&&Fr(O,g,C),C):null}async function M(){o.status.value==="connected"||o.status.value==="connecting"||(await j(),o.connect(e.jwt))}function z(){i.value=null,M()}function ce(){!n.value||!a.value||(h&&clearTimeout(h),h=setTimeout(()=>{o.send("client:typing",{chat_id:n.value})},x))}async function he(O){const g=O.trim();if(!g||!a.value)return;if(!n.value){const I=Un(e.jwt),B=(I==null?void 0:I.platform_id)??"",Z=(I==null?void 0:I.external_user_id)??"",W=await V();if(W)n.value=W.id,B&&Z&&Fr(B,Z,W.id);else if(!await b(B,Z)){i.value="Failed to start a new chat session";return}}r.value.push({id:_(),sender:"user",content:g,createdAt:new Date}),s.value=!1,o.send("client:message_send",{chat_id:n.value,content:g})||(r.value.pop(),i.value="Failed to send message")}async function H(O){var g;if(!a.value||!n.value){i.value="Not connected to chat";return}try{const C=await fetch(`${t}/api/chats/${n.value}/attachments/upload-url`,{method:"POST",headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"},body:JSON.stringify({filename:O.name,contentType:O.type,size:O.size})});if(!C.ok){const nt=await C.json().catch(()=>({}));throw new Error(((g=nt.error)==null?void 0:g.message)||"Failed to get upload URL")}const I=await C.json(),{uploadUrl:B,fileKey:Z}=I.data;if(!(await fetch(B,{method:"PUT",headers:{"Content-Type":O.type},body:O})).ok)throw new Error("Failed to upload file");const Q=_();if(r.value.push({id:Q,sender:"user",content:"",createdAt:new Date,attachmentUrl:null}),s.value=!1,!o.send("client:message_send",{chat_id:n.value,content:"",attachment_key:Z})){const nt=r.value.findIndex(rt=>rt.id===Q);nt!==-1&&r.value.splice(nt,1),i.value="Failed to send attachment"}}catch(C){console.error("[Chat] Failed to upload file:",C),i.value=C instanceof Error?C.message:"Failed to upload file"}}function Y(){h&&(clearTimeout(h),h=null),o.disconnect()}return En(Y),{status:l,messages:r,adminTyping:s,chatId:n,errorMessage:i,isConnected:a,isConnecting:u,isError:f,connect:M,retry:z,sendMessage:he,sendTyping:ce,uploadFile:H,cleanup:Y}}const bc={class:"support-client-widget font-sans"},wc={key:0,class:"bg-red-50 border border-red-200 rounded-lg p-4 text-center max-w-[350px]"},Vi=At({__name:"SupportClientWidget.ce",props:{jwt:{type:String},apiBaseUrl:{type:String},wsUrl:{type:String}},setup(e){const t=e,n=Ce(!1),r=ke(()=>"right-5 bottom-5"),s=vc({jwt:t.jwt,apiBaseUrl:t.apiBaseUrl,wsUrl:t.wsUrl}),i=()=>{n.value=!n.value};return gr(()=>{t.jwt&&s.connect()}),En(()=>{s.cleanup()}),lt(()=>t.jwt,o=>{o&&s.connect()}),(o,l)=>(ne(),se("div",bc,[e.jwt?(ne(),se(me,{key:1},[ae(na,{"enter-active-class":"transition-all duration-300 ease-out","enter-from-class":"opacity-0 translate-y-4 scale-95","enter-to-class":"opacity-100 translate-y-0 scale-100","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 translate-y-0 scale-100","leave-to-class":"opacity-0 translate-y-4 scale-95"},{default:ws(()=>[dr(A("div",{class:fe(["fixed chat-panel w-[min(360px,calc(100vw-32px))] h-[min(520px,calc(100vh-120px))] z-[9998]",r.value])},[ae(pc,{status:Ye(s).status.value,messages:Ye(s).messages.value,"admin-typing":Ye(s).adminTyping.value,"is-visible":n.value,onClose:i,onRetry:Ye(s).retry,onSend:Ye(s).sendMessage,onTyping:Ye(s).sendTyping,onUpload:Ye(s).uploadFile},null,8,["status","messages","admin-typing","is-visible","onRetry","onSend","onTyping","onUpload"])],2),[[Ei,n.value]])]),_:1}),dr(A("button",{class:fe(["fixed bubble-button w-14 h-14 rounded-full bg-gradient-to-br from-primary to-primary-600 text-white shadow-lg hover:shadow-xl transition-all duration-200 hover:scale-105 active:scale-95 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 z-[9999] flex items-center justify-center",r.value]),"aria-label":"Open chat",onClick:i},[...l[1]||(l[1]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[A("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})],-1)])],2),[[Ei,!n.value]])],64)):(ne(),se("div",wc,[...l[0]||(l[0]=[ci('<div class="w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#dc2626" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg></div><p class="text-red-600 font-semibold mb-1">Authentication required</p><p class="text-red-800 text-xs"> Please provide a valid JWT token via the <code class="bg-red-100 px-1 py-0.5 rounded font-mono">jwt</code> attribute. </p>',3)])]))]))}}),xc=xa(Vi,{styles:['/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-green-400:oklch(79.2% .209 151.711);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-widest:.1em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary:#d14343;--color-primary-600:#b13535;--color-primary-50:#fef2f2;--color-primary-100:#fee2e2}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.fixed{position:fixed}.static{position:static}.start{inset-inline-start:var(--spacing)}.right-5{right:calc(var(--spacing) * 5)}.bottom-5{bottom:calc(var(--spacing) * 5)}.z-\\[9998\\]{z-index:9998}.z-\\[9999\\]{z-index:9999}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.h-0{height:calc(var(--spacing) * 0)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-\\[min\\(520px\\,calc\\(100vh-120px\\)\\)\\]{height:min(520px,100vh - 120px)}.h-full{height:100%}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-\\[120px\\]{max-height:120px}.min-h-\\[44px\\]{min-height:44px}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-\\[min\\(360px\\,calc\\(100vw-32px\\)\\)\\]{width:min(360px,100vw - 32px)}.w-full{width:100%}.max-w-\\[80\\%\\]{max-width:80%}.max-w-\\[350px\\]{max-width:350px}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-bounce{animation:var(--animate-bounce)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-br-md{border-bottom-right-radius:var(--radius-md)}.rounded-bl-md{border-bottom-left-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-primary-100{border-color:var(--color-primary-100)}.border-red-200{border-color:var(--color-red-200)}.border-red-400{border-color:var(--color-red-400)}.border-t-primary{border-top-color:var(--color-primary)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-green-400{background-color:var(--color-green-400)}.bg-primary{background-color:var(--color-primary)}.bg-primary-600\\/20{background-color:#b1353533}@supports (color:color-mix(in lab,red,red)){.bg-primary-600\\/20{background-color:color-mix(in oklab,var(--color-primary-600) 20%,transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white) 20%,transparent)}}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-primary{--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary-600{--tw-gradient-to:var(--color-primary-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing) * 1)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-8{padding-block:calc(var(--spacing) * 8)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-primary-50{color:var(--color-primary-50)}.text-primary-100{color:var(--color-primary-100)}.text-primary-600{color:var(--color-primary-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:bg-black\\/10:hover{background-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-black\\/10:hover{background-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-primary-600:hover{background-color:var(--color-primary-600)}.hover\\:bg-white\\/30:hover{background-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/30:hover{background-color:color-mix(in oklab,var(--color-white) 30%,transparent)}}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-gray-700:hover{color:var(--color-gray-700)}.hover\\:no-underline:hover{text-decoration-line:none}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\\:border-primary:focus{border-color:var(--color-primary)}.focus\\:border-red-500:focus{border-color:var(--color-red-500)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-primary:focus{--tw-ring-color:var(--color-primary)}.focus\\:ring-red-500:focus{--tw-ring-color:var(--color-red-500)}.focus\\:ring-white\\/50:focus{--tw-ring-color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-white\\/50:focus{--tw-ring-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-100:disabled{background-color:var(--color-gray-100)}.disabled\\:bg-gray-300:disabled{background-color:var(--color-gray-300)}.disabled\\:text-gray-300:disabled{color:var(--color-gray-300)}.disabled\\:text-gray-400:disabled{color:var(--color-gray-400)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}',...Vi.styles||[]]});class Pr extends xc{connectedCallback(){super.connectedCallback(),queueMicrotask(()=>{this.dispatchEvent(new CustomEvent("ready",{bubbles:!0,composed:!0}))})}disconnectedCallback(){super.disconnectedCallback()}}return customElements.get("support-client-widget")||customElements.define("support-client-widget",Pr),on.SupportClientWidgetElement=Pr,on.default=Pr,Object.defineProperties(on,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),on}({});
|
|
20
|
+
**/let Tr;const mi=typeof window<"u"&&window.trustedTypes;if(mi)try{Tr=mi.createPolicy("vue",{createHTML:e=>e})}catch{}const yi=Tr?e=>Tr.createHTML(e):e=>e,Zl="http://www.w3.org/2000/svg",Ql="http://www.w3.org/1998/Math/MathML",et=typeof document<"u"?document:null,vi=et&&et.createElement("template"),ea={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?et.createElementNS(Zl,e):t==="mathml"?et.createElementNS(Ql,e):n?et.createElement(e,{is:n}):et.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>et.createTextNode(e),createComment:e=>et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{vi.innerHTML=yi(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=vi.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ct="transition",Zt="animation",Qt=Symbol("_vtc"),bi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ta=oe({},Ss,bi),na=(e=>(e.displayName="Transition",e.props=ta,e))((e,{slots:t})=>Yl(Jo,ra(e),t)),vt=(e,t=[])=>{P(e)?e.forEach(n=>n(...t)):e&&e(...t)},wi=e=>e?P(e)?e.some(t=>t.length>1):e.length>1:!1;function ra(e){const t={};for(const g in e)g in bi||(t[g]=e[g]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:u=o,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:x=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=e,N=sa(s),R=N&&N[0],J=N&&N[1],{onBeforeEnter:V,onEnter:D,onEnterCancelled:j,onLeave:b,onLeaveCancelled:M,onBeforeAppear:W=V,onAppear:ce=D,onAppearCancelled:he=j}=t,H=(g,C,I,B)=>{g._enterCancelled=B,bt(g,C?f:l),bt(g,C?u:o),I&&I()},Y=(g,C)=>{g._isLeaving=!1,bt(g,h),bt(g,_),bt(g,x),C&&C()},O=g=>(C,I)=>{const B=g?ce:D,Z=()=>H(C,g,I);vt(B,[C,Z]),xi(()=>{bt(C,g?a:i),tt(C,g?f:l),wi(B)||_i(C,r,R,Z)})};return oe(t,{onBeforeEnter(g){vt(V,[g]),tt(g,i),tt(g,o)},onBeforeAppear(g){vt(W,[g]),tt(g,a),tt(g,u)},onEnter:O(!1),onAppear:O(!0),onLeave(g,C){g._isLeaving=!0;const I=()=>Y(g,C);tt(g,h),g._enterCancelled?(tt(g,x),ki(g)):(ki(g),tt(g,x)),xi(()=>{g._isLeaving&&(bt(g,h),tt(g,_),wi(b)||_i(g,r,J,I))}),vt(b,[g,I])},onEnterCancelled(g){H(g,!1,void 0,!0),vt(j,[g])},onAppearCancelled(g){H(g,!0,void 0,!0),vt(he,[g])},onLeaveCancelled(g){Y(g),vt(M,[g])}})}function sa(e){if(e==null)return null;if(X(e))return[Er(e.enter),Er(e.leave)];{const t=Er(e);return[t,t]}}function Er(e){return qn(e)}function tt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Qt]||(e[Qt]=new Set)).add(t)}function bt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Qt];n&&(n.delete(t),n.size||(e[Qt]=void 0))}function xi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ia=0;function _i(e,t,n,r){const s=e._endId=++ia,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:a}=oa(e,t);if(!o)return r();const u=o+"end";let f=0;const h=()=>{e.removeEventListener(u,x),i()},x=_=>{_.target===e&&++f>=a&&h()};setTimeout(()=>{f<a&&h()},l+1),e.addEventListener(u,x)}function oa(e,t){const n=window.getComputedStyle(e),r=N=>(n[N]||"").split(", "),s=r(`${ct}Delay`),i=r(`${ct}Duration`),o=Ci(s,i),l=r(`${Zt}Delay`),a=r(`${Zt}Duration`),u=Ci(l,a);let f=null,h=0,x=0;t===ct?o>0&&(f=ct,h=o,x=i.length):t===Zt?u>0&&(f=Zt,h=u,x=a.length):(h=Math.max(o,u),f=h>0?o>u?ct:Zt:null,x=f?f===ct?i.length:a.length:0);const _=f===ct&&/\b(?:transform|all)(?:,|$)/.test(r(`${ct}Property`).toString());return{type:f,timeout:h,propCount:x,hasTransform:_}}function Ci(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Si(n)+Si(e[r])))}function Si(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ki(e){return(e?e.ownerDocument:document).body.offsetHeight}function la(e,t,n){const r=e[Qt];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Nn=Symbol("_vod"),Ti=Symbol("_vsh"),Ei={name:"show",beforeMount(e,{value:t},{transition:n}){e[Nn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):en(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),en(e,!0),r.enter(e)):r.leave(e,()=>{en(e,!1)}):en(e,t))},beforeUnmount(e,{value:t}){en(e,t)}};function en(e,t){e.style.display=t?e[Nn]:"none",e[Ti]=!t}const aa=Symbol(""),ca=/(?:^|;)\s*display\s*:/;function fa(e,t,n){const r=e.style,s=le(n);let i=!1;if(n&&!s){if(t)if(le(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&Ln(r,l,"")}else for(const o in t)n[o]==null&&Ln(r,o,"");for(const o in n)o==="display"&&(i=!0),Ln(r,o,n[o])}else if(s){if(t!==n){const o=r[aa];o&&(n+=";"+o),r.cssText=n,i=ca.test(n)}}else t&&e.removeAttribute("style");Nn in e&&(e[Nn]=i?r.display:"",e[Ti]&&(r.display="none"))}const Ai=/\s*!important$/;function Ln(e,t,n){if(P(n))n.forEach(r=>Ln(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=ua(e,t);Ai.test(n)?e.setProperty(Ee(r),n.replace(Ai,""),"important"):e[r]=n}}const Mi=["Webkit","Moz","ms"],Ar={};function ua(e,t){const n=Ar[t];if(n)return n;let r=Ie(t);if(r!=="filter"&&r in e)return Ar[t]=r;r=Hr(r);for(let s=0;s<Mi.length;s++){const i=Mi[s]+r;if(i in e)return Ar[t]=i}return t}const Oi="http://www.w3.org/1999/xlink";function Ii(e,t,n,r,s,i=ro(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Oi,t.slice(6,t.length)):e.setAttributeNS(Oi,t,n):n==null||i&&!zr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":$e(n)?String(n):n)}function Ri(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?yi(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=zr(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function Ot(e,t,n,r){e.addEventListener(t,n,r)}function da(e,t,n,r){e.removeEventListener(t,n,r)}const ji=Symbol("_vei");function ha(e,t,n,r,s=null){const i=e[ji]||(e[ji]={}),o=i[t];if(r&&o)o.value=r;else{const[l,a]=pa(t);if(r){const u=i[t]=ya(r,s);Ot(e,l,u,a)}else o&&(da(e,l,o,a),i[t]=void 0)}}const Fi=/(?:Once|Passive|Capture)$/;function pa(e){let t;if(Fi.test(e)){t={};let r;for(;r=e.match(Fi);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ee(e.slice(2)),t]}let Mr=0;const ga=Promise.resolve(),ma=()=>Mr||(ga.then(()=>Mr=0),Mr=Date.now());function ya(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Fe(va(r,n.value),t,5,[r])};return n.value=e,n.attached=ma(),n}function va(e,t){if(P(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Pi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ba=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?la(e,r,o):t==="style"?fa(e,n,r):ln(t)?Vn(t)||ha(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wa(e,t,r,o))?(Ri(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ii(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!le(r))?Ri(e,Ie(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ii(e,t,r,o))};function wa(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Pi(t)&&L(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||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 Pi(t)&&le(n)?!1:t in e}const $i={};function xa(e,t,n){let r=At(e,t);an(r)&&(r=oe({},r,t));class s extends Or{constructor(o){super(r,o,n)}}return s.def=r,s}const _a=typeof HTMLElement<"u"?HTMLElement:class{};class Or extends _a{constructor(t,n={},r=Hi){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==Hi?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(oe({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Or){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Et(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=r;let l;if(i&&!P(i))for(const a in i){const u=i[a];(u===Number||u&&u.type===Number)&&(a in this._props&&(this._props[a]=qn(this._props[a])),(l||(l=Object.create(null)))[Ie(a)]=!0)}this._numberProps=l,this._resolveProps(r),this.shadowRoot&&this._applyStyles(o),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)q(this,r)||Object.defineProperty(this,r,{get:()=>Ye(n[r])})}_resolveProps(t){const{props:n}=t,r=P(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s]);for(const s of r.map(Ie))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(i){this._setProp(s,i,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):$i;const s=Ie(t);n&&this._numberProps&&this._numberProps[s]&&(r=qn(r)),this._setProp(s,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!1){if(n!==this._props[t]&&(this._dirty=!0,n===$i?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),r)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),n===!0?this.setAttribute(Ee(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ee(t),n+""):n||this.removeAttribute(Ee(t)),i&&i.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Ta(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=ae(this._def,oe(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const s=(i,o)=>{this.dispatchEvent(new CustomEvent(i,an(o[0])?oe({detail:o},o[0]):{detail:o}))};r.emit=(i,...o)=>{s(i,o),Ee(i)!==i&&s(Ee(i),o)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let s=t.length-1;s>=0;s--){const i=document.createElement("style");r&&i.setAttribute("nonce",r),i.textContent=t[s],this.shadowRoot.prepend(i)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const s=t[r],i=s.getAttribute("name")||"default",o=this._slots[i],l=s.parentNode;if(o)for(const a of o){if(n&&a.nodeType===1){const u=n+"-s",f=document.createTreeWalker(a,1);a.setAttribute(u,"");let h;for(;h=f.nextNode();)h.setAttribute(u,"")}l.insertBefore(a,s)}else for(;s.firstChild;)l.insertBefore(s.firstChild,s);l.removeChild(s)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const r of t){const s=r.querySelectorAll("slot");for(let i=0;i<s.length;i++)n.add(s[i])}return Array.from(n)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}const Ni=e=>{const t=e.props["onUpdate:modelValue"]||!1;return P(t)?n=>fn(t,n):t};function Ca(e){e.target.composing=!0}function Li(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ir=Symbol("_assign");function Di(e,t,n){return t&&(e=e.trim()),n&&(e=Gn(e)),e}const Sa={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Ir]=Ni(s);const i=r||s.props&&s.props.type==="number";Ot(e,t?"change":"input",o=>{o.target.composing||e[Ir](Di(e.value,n,i))}),(n||i)&&Ot(e,"change",()=>{e.value=Di(e.value,n,i)}),t||(Ot(e,"compositionstart",Ca),Ot(e,"compositionend",Li),Ot(e,"change",Li))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[Ir]=Ni(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Gn(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===a)||(e.value=a))}},ka=oe({patchProp:ba},ea);let Ui;function Bi(){return Ui||(Ui=Al(ka))}const Ta=(...e)=>{Bi().render(...e)},Hi=(...e)=>{const t=Bi().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Aa(r);if(!s)return;const i=t._component;!L(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Ea(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function Ea(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Aa(e){return le(e)?document.querySelector(e):e}const Ma={class:"typing-indicator flex items-center gap-1 py-2"},Oa={class:"flex gap-0.5"},Ia=((e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n})(At({__name:"TypingIndicator",setup(e){return(t,n)=>(ne(),se("div",Ma,[n[0]||(n[0]=A("span",{class:"text-xs text-gray-500"},"Admin is typing",-1)),A("span",Oa,[(ne(),se(me,null,Ps(3,r=>A("span",{key:r,class:"w-1.5 h-1.5 bg-gray-400 rounded-full animate-bounce",style:dn({animationDelay:`${(r-1)*150}ms`})},null,4)),64))])]))}}),[["styles",["@keyframes bounce-d427c516{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-4px)}}.animate-bounce[data-v-d427c516]{animation:bounce-d427c516 1s infinite}"]],["__scopeId","data-v-d427c516"]]);async function Ra(e,t={}){const{filename:n}=t;try{const r=await fetch(e);if(!r.ok)throw new Error(`HTTP error: ${r.status}`);const s=await r.blob(),i=URL.createObjectURL(s),o=document.createElement("a");o.href=i,o.download=n||ja(e)||"download",o.rel="noopener noreferrer",document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(i)}catch(r){console.warn("[Download] Fetch failed, falling back to open in new tab:",r instanceof Error?r.message:"Unknown error"),Fa(e)}}function ja(e){try{const r=new URL(e).pathname.split("/"),s=r[r.length-1];return s&&s.split("?")[0]||null}catch{return null}}function Fa(e){const t=document.createElement("a");t.href=e,t.target="_blank",t.rel="noopener noreferrer",document.body.appendChild(t),t.click(),document.body.removeChild(t)}const Pa={class:"message-list flex-1 overflow-y-auto p-4 space-y-3"},$a={key:0,class:"text-center text-gray-400 py-8"},Na={key:0,class:"text-[11px] font-bold text-gray-400 uppercase tracking-widest text-center px-6"},La={key:0,class:"whitespace-pre-wrap"},Da={key:1,class:"mt-2"},Ua=["href"],Ba=["src"],Ha={class:"flex gap-2 mt-1"},Va=["href"],Wa=["onClick"],za={class:"flex-1 min-w-0"},Ka={class:"flex gap-1"},Ga=["onClick"],qa=["href"],Ja={key:2,class:"flex justify-start"},Ya={class:"bg-gray-100 rounded-2xl rounded-bl-md px-4 py-2"},Xa=At({__name:"MessageList",props:{messages:{type:Array},showTyping:{type:Boolean}},setup(e,{expose:t}){const n=e,r=Se(null);function s(u){if(!u)return!1;const f=[".jpg",".jpeg",".png",".gif",".webp",".bmp"],h=u.toLowerCase();return f.some(x=>h.includes(x))||u.includes("image/")}function i(u){if(!u)return"File";try{const x=new URL(u).pathname.split("/"),_=x[x.length-1];return _&&_.split("?")[0]||"File"}catch{return"File"}}async function o(u){u&&await Ra(u)}function l(u){const f=u.target;f.style.display="none"}function a(){Et(()=>{var u;(u=r.value)==null||u.scrollIntoView({behavior:"smooth"})})}return lt(()=>n.messages.length,()=>{a()}),lt(()=>n.showTyping,()=>{a()}),t({scrollToBottom:a}),(u,f)=>(ne(),se("div",Pa,[e.messages.length===0?(ne(),se("div",$a,[...f[0]||(f[0]=[A("p",{class:"text-sm"},"No messages yet.",-1),A("p",{class:"text-xs mt-1"},"Start a conversation!",-1)])])):(ne(!0),se(me,{key:1},Ps(e.messages,h=>(ne(),se("div",{key:h.id,class:fe(["message-row flex w-full",[h.sender==="user"?"justify-end":"justify-start",h.sender==="system"?"justify-center py-2":""]])},[h.sender==="system"?(ne(),se("div",Na,ut(h.content),1)):(ne(),se("div",{key:1,class:fe(["message-bubble max-w-[80%] px-4 py-2 rounded-2xl text-sm break-words",h.sender==="user"?"bg-primary text-white rounded-br-md":"bg-gray-100 text-gray-800 rounded-bl-md"])},[h.content?(ne(),se("p",La,ut(h.content),1)):Jt("",!0),h.attachmentUrl?(ne(),se("div",Da,[s(h.attachmentUrl)?(ne(),se(me,{key:0},[A("a",{href:h.attachmentUrl,target:"_blank",rel:"noopener noreferrer",class:"block"},[A("img",{src:h.attachmentUrl,alt:"Attachment",class:"max-w-full rounded-lg border-0 cursor-pointer hover:opacity-90 transition-opacity max-h-48 object-cover",onError:l},null,40,Ba)],8,Ua),A("div",Ha,[A("a",{href:h.attachmentUrl,target:"_blank",rel:"noopener noreferrer",class:fe(["text-xs underline hover:no-underline",h.sender==="user"?"text-primary-100":"text-primary-600"])}," Open in new tab ",10,Va),A("button",{class:fe(["text-xs underline hover:no-underline",h.sender==="user"?"text-primary-100":"text-primary-600"]),onClick:x=>o(h.attachmentUrl)}," Download ",10,Wa)])],64)):(ne(),se("div",{key:1,class:fe(["flex items-center gap-3 p-2 rounded-lg border",h.sender==="user"?"border-primary-400/30 bg-primary-600/20":"border-gray-200 bg-gray-50"])},[A("div",{class:fe(["w-10 h-10 rounded-lg flex items-center justify-center",h.sender==="user"?"bg-primary-400/30":"bg-gray-200"])},[(ne(),se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",class:fe(h.sender==="user"?"text-primary-100":"text-gray-500")},[...f[1]||(f[1]=[A("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"},null,-1),A("polyline",{points:"14 2 14 8 20 8"},null,-1)])],2))],2),A("div",za,[A("p",{class:fe(["text-xs font-medium truncate",h.sender==="user"?"text-primary-50":"text-gray-700"])},ut(i(h.attachmentUrl)),3)]),A("div",Ka,[A("button",{class:fe(["p-1.5 rounded hover:bg-black/10 transition-colors",h.sender==="user"?"text-primary-100":"text-gray-500"]),title:"Download",onClick:x=>o(h.attachmentUrl)},[...f[2]||(f[2]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[A("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),A("polyline",{points:"7 10 12 15 17 10"}),A("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1)])],10,Ga),A("a",{href:h.attachmentUrl,target:"_blank",rel:"noopener noreferrer",class:fe(["p-1.5 rounded hover:bg-black/10 transition-colors",h.sender==="user"?"text-primary-100":"text-gray-500"]),title:"Open in new tab"},[...f[3]||(f[3]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[A("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),A("polyline",{points:"15 3 21 3 21 9"}),A("line",{x1:"10",y1:"14",x2:"21",y2:"3"})],-1)])],10,qa)])],2))])):Jt("",!0)],2))],2))),128)),e.showTyping?(ne(),se("div",Ja,[A("div",Ya,[ae(Ia)])])):Jt("",!0),A("div",{ref_key:"scrollAnchor",ref:r,class:"scroll-anchor h-0"},null,512)]))}}),Za={class:"message-input border-t border-gray-200 p-3"},Qa={key:0,class:"mb-2 flex items-center gap-2 p-2 bg-gray-50 rounded-lg"},ec={class:"text-sm text-gray-600 truncate flex-1"},tc={class:"flex items-end gap-2"},nc=["disabled"],rc=["disabled","placeholder"],sc=["disabled","aria-label"],ic={class:"flex items-center justify-between mt-1.5 px-1"},oc={class:"text-xs text-gray-400"},lc={key:0},ac={key:1},Rr=2500,cc=At({__name:"MessageInput",props:{isEnabled:{type:Boolean}},emits:["send","typing","upload"],setup(e,{expose:t,emit:n}){const r=e,s=n,i=Se(""),o=Se(null),l=Se(null),a=Se(null),u=xe(()=>i.value.length),f=xe(()=>u.value>Rr),h=xe(()=>{const b=i.value.trim();return r.isEnabled&&(b.length>0||a.value!==null)&&b.length<=Rr}),x=xe(()=>r.isEnabled?"Type a message...":"Waiting for connection...");function _(){var b;(b=l.value)==null||b.click()}function N(b){var ce;const M=b.target,W=(ce=M.files)==null?void 0:ce[0];if(W){if(W.size>10*1024*1024){alert("File size must be less than 10MB");return}a.value=W}M.value=""}function R(){a.value=null}function J(){const b=o.value;if(!b)return;b.style.height="auto";const M=Math.min(b.scrollHeight,120);b.style.height=`${M}px`,r.isEnabled&&s("typing")}function V(b){b.key==="Enter"&&!b.shiftKey&&!b.isComposing&&(b.preventDefault(),h.value&&D())}function D(){const b=i.value.trim(),M=a.value;r.isEnabled&&(M&&(s("upload",M),a.value=null),b&&s("send",b),i.value="",Et(()=>{const W=o.value;W&&(W.style.height="auto")}))}function j(){var b;(b=o.value)==null||b.focus()}return t({focus:j}),(b,M)=>(ne(),se("div",Za,[A("input",{ref_key:"fileInputRef",ref:l,type:"file",class:"hidden",accept:"image/jpeg,image/png,image/gif,image/webp,application/pdf,text/plain,application/msword,.doc,.docx",onChange:N},null,544),a.value?(ne(),se("div",Qa,[M[2]||(M[2]=A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",class:"text-gray-500"},[A("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),A("polyline",{points:"14 2 14 8 20 8"})],-1)),A("span",ec,ut(a.value.name),1),A("button",{type:"button",class:"text-gray-400 hover:text-gray-600 p-1",onClick:R},[...M[1]||(M[1]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[A("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])])):Jt("",!0),A("div",tc,[A("button",{disabled:!e.isEnabled,class:fe(["flex items-center justify-center w-10 h-10 text-gray-500 hover:text-gray-700 rounded-full transition-colors disabled:text-gray-300 disabled:cursor-not-allowed",{"hover:bg-gray-100":e.isEnabled}]),"aria-label":"Attach file",onClick:_},[...M[3]||(M[3]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[A("path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"})],-1)])],10,nc),dr(A("textarea",{ref_key:"textareaRef",ref:o,"onUpdate:modelValue":M[0]||(M[0]=W=>i.value=W),disabled:!e.isEnabled,placeholder:x.value,class:fe(["flex-1 min-h-[44px] max-h-[120px] px-3 py-2.5 text-sm border border-gray-300 rounded-xl resize-none outline-none transition-colors focus:border-primary focus:ring-1 focus:ring-primary disabled:bg-gray-100 disabled:text-gray-400",{"border-red-400 focus:border-red-500 focus:ring-red-500":f.value}]),rows:"1",onKeydown:V,onInput:J},null,42,rc),[[Sa,i.value]]),A("button",{disabled:!h.value,class:"send-button flex items-center justify-center w-10 h-10 bg-primary text-white rounded-full transition-all hover:bg-primary-600 disabled:bg-gray-300 disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2","aria-label":e.isEnabled?"Send message":"Cannot send message",onClick:D},[...M[4]||(M[4]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[A("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),A("polygon",{points:"22 2 15 22 11 13 2 9"})],-1)])],8,sc)]),A("div",ic,[A("p",oc,[e.isEnabled?(ne(),se("span",lc,"Press Enter to send, Shift+Enter for new line")):(ne(),se("span",ac,"Connecting..."))]),e.isEnabled&&u.value>0?(ne(),se("div",{key:0,class:fe(["text-[10px] font-bold uppercase tracking-widest px-2 py-0.5 rounded-md transition-colors",f.value?"bg-red-50 text-red-500":"bg-gray-100 text-gray-400"])},ut(u.value)+" / "+ut(Rr),3)):Jt("",!0)])]))}}),fc={class:"chat-window flex flex-col h-full bg-white rounded-xl shadow-lg overflow-hidden"},uc={class:"flex items-center justify-between px-4 py-3 bg-gradient-to-br from-primary to-primary-600 text-white shrink-0"},dc={key:0,class:"flex-1 flex flex-col items-center justify-center p-8"},hc={key:1,class:"flex-1 flex flex-col items-center justify-center p-8"},pc=At({__name:"ChatWindow",props:{status:{type:String},messages:{type:Array},adminTyping:{type:Boolean},isVisible:{type:Boolean}},emits:["close","retry","send","typing","upload"],setup(e,{emit:t}){const n=e,r=t,s=Se(null),i=xe(()=>n.status==="connecting"),o=xe(()=>n.status==="connected"),l=xe(()=>n.status==="error");return lt(()=>n.status,a=>{a==="connected"&&Et(()=>{var u;(u=s.value)==null||u.scrollToBottom()})}),lt(()=>n.isVisible,a=>{a&&Et(()=>{var u;(u=s.value)==null||u.scrollToBottom()})}),(a,u)=>(ne(),se("div",fc,[A("div",uc,[u[6]||(u[6]=A("div",{class:"flex items-center gap-2"},[A("div",{class:"w-2 h-2 rounded-full bg-green-400"}),A("h2",{class:"text-base font-semibold"},"Support Chat")],-1)),A("button",{class:"flex items-center justify-center w-8 h-8 bg-white/20 border-0 text-white rounded-full cursor-pointer transition-colors hover:bg-white/30 focus:outline-none focus:ring-2 focus:ring-white/50","aria-label":"Close chat",onClick:u[0]||(u[0]=f=>r("close"))},[...u[5]||(u[5]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[A("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])]),i.value?(ne(),se("div",dc,[...u[7]||(u[7]=[A("div",{class:"w-10 h-10 border-4 border-primary-100 border-t-primary rounded-full animate-spin mb-4"},null,-1),A("p",{class:"text-gray-600 text-sm"},"Connecting to support...",-1)])])):l.value?(ne(),se("div",hc,[u[8]||(u[8]=ci('<div class="w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mb-4"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#dc2626" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg></div><p class="text-gray-800 font-medium mb-1">Connection failed</p><p class="text-gray-500 text-sm text-center mb-4"> Unable to connect to support. Please check your connection and try again. </p>',3)),A("button",{class:"px-4 py-2 bg-primary text-white text-sm font-medium rounded-lg transition-colors hover:bg-primary-600 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",onClick:u[1]||(u[1]=f=>r("retry"))}," Try Again ")])):(ne(),se(me,{key:2},[ae(Xa,{ref_key:"messageListRef",ref:s,messages:e.messages,"show-typing":e.adminTyping},null,8,["messages","show-typing"]),ae(cc,{"is-enabled":o.value,onSend:u[2]||(u[2]=f=>r("send",f)),onTyping:u[3]||(u[3]=f=>r("typing")),onUpload:u[4]||(u[4]=f=>r("upload",f))},null,8,["is-enabled"])],64))]))}}),Dn={initialDelay:1e3,maxDelay:31e3,multiplier:2,maxFailures:5};function gc(e={}){const t=Se("disconnected"),n=Se(null);let r=null,s=null,i=0,o=null,l=!1;function a(j){if(e.wsUrl){const W=new URL(e.wsUrl);return W.searchParams.set("jwt",j),W.toString()}const b=window.location.protocol==="https:"?"wss:":"ws:",M=window.location.host;return`${b}//${M}/ws?jwt=${encodeURIComponent(j)}`}function u(){const j=Dn.initialDelay*Math.pow(Dn.multiplier,i);return Math.min(j,Dn.maxDelay)}function f(){if(l)return;if(i>=Dn.maxFailures){t.value="error",n.value="Max reconnection attempts reached";return}const j=u();i++,o=setTimeout(()=>{!l&&s&&J(s)},j)}function h(){o&&(clearTimeout(o),o=null)}function x(){var j;t.value="connected",n.value=null,i=0,(j=e.onOpen)==null||j.call(e)}function _(j){var b;try{const M=JSON.parse(j.data);typeof M.event=="string"&&M.timestamp!==void 0&&typeof M.timestamp=="number"?(b=e.onMessage)==null||b.call(e,M):console.warn("[WebSocket] Received invalid envelope shape:",M)}catch{console.warn("[WebSocket] Received non-JSON message:",j.data)}}function N(j){var b;r=null,t.value="disconnected",(b=e.onClose)==null||b.call(e,j),l||f()}function R(j){var b;t.value="error",n.value="WebSocket error occurred",(b=e.onError)==null||b.call(e,j)}function J(j){if(!((r==null?void 0:r.readyState)===WebSocket.OPEN||(r==null?void 0:r.readyState)===WebSocket.CONNECTING)){h(),s=j,l=!1,t.value="connecting",n.value=null;try{const b=a(j);r=new WebSocket(b),r.addEventListener("open",x),r.addEventListener("message",_),r.addEventListener("close",N),r.addEventListener("error",R)}catch(b){t.value="error",n.value=b instanceof Error?b.message:"Failed to create WebSocket",f()}}}function V(j,b){if(!r||r.readyState!==WebSocket.OPEN)return!1;const M={event:j,data:b,timestamp:Math.floor(Date.now()/1e3)};try{return r.send(JSON.stringify(M)),!0}catch(W){return console.error("[WebSocket] Failed to send message:",W),!1}}function D(){l=!0,h(),r&&(r.removeEventListener("open",x),r.removeEventListener("message",_),r.removeEventListener("close",N),r.removeEventListener("error",R),(r.readyState===WebSocket.OPEN||r.readyState===WebSocket.CONNECTING)&&r.close(),r=null),t.value="disconnected",s=null,i=0}return{status:Lt(t),lastError:Lt(n),connect:J,send:V,disconnect:D}}function Un(e){try{const t=e.split(".");if(t.length!==3)return null;const n=t[1];if(!n)return null;const r=n+"=".repeat((4-n.length%4)%4),s=atob(r.replace(/-/g,"+").replace(/_/g,"/")),i=JSON.parse(s);return!i.platform_id||!i.external_user_id?null:{platform_id:i.platform_id,external_user_id:i.external_user_id}}catch{return null}}const mc="tvs_support_chat_id";function jr(e,t){return`${mc}:${e}:${t}`}function yc(e,t){try{const n=jr(e,t);return localStorage.getItem(n)}catch{return null}}function Fr(e,t,n){try{const r=jr(e,t);return localStorage.setItem(r,n),!0}catch{return!1}}function tn(e,t){try{const n=jr(e,t);return localStorage.removeItem(n),!0}catch{return!1}}function vc(e){const t=e.apiBaseUrl??"",n=Se(null),r=Se([]),s=Se(!1),i=Se(null),o=gc({onMessage:N,onOpen:()=>{i.value=null},onError:()=>{i.value="Connection error. Retrying..."},onClose:O=>{O.wasClean||(i.value="Connection lost. Reconnecting...")},wsUrl:e.wsUrl}),l=xe(()=>{switch(o.status.value){case"connecting":return"connecting";case"connected":return"connected";case"error":return"error";case"disconnected":return r.value.length>0?"error":"connecting";default:return"connecting"}}),a=xe(()=>l.value==="connected"),u=xe(()=>l.value==="connecting"),f=xe(()=>l.value==="error");let h=null;const x=300;function _(){return`${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function N(O){switch(O.event){case"server:message":{const g=O.data;if(!n.value){const C=Un(e.jwt),I=(C==null?void 0:C.platform_id)??"",B=(C==null?void 0:C.external_user_id)??"";n.value=g.chat_id,I&&B&&Fr(I,B,g.chat_id)}if(g.chat_id!==n.value)return;if(g.sender_type==="admin"&&(r.value.push({id:_(),sender:"admin",content:g.content??"",attachmentUrl:g.attachment_url,createdAt:new Date(g.created_at*1e3)}),s.value=!1),g.sender_type==="user"){let C=-1;for(let I=r.value.length-1;I>=0;I--){const B=r.value[I];if(B&&B.sender==="user"){const Z=!!g.attachment_url&&B.content===""&&B.attachmentUrl===null,z=!g.attachment_url&&B.content===g.content;if(Z||z){C=I;break}}}if(C!==-1){const I=r.value[C];I&&(I.attachmentUrl=g.attachment_url,I.createdAt=new Date(g.created_at*1e3))}else r.value.push({id:_(),sender:"user",content:g.content??"",attachmentUrl:g.attachment_url,createdAt:new Date(g.created_at*1e3)})}break}case"server:error":{const g=O.data;console.error("[Chat] Server error:",g),i.value=g.message||"An error occurred";break}case"server:chat_assigned":{O.data.chat_id===n.value&&r.value.push({id:_(),sender:"system",content:"TVS Agent joined the chat",createdAt:new Date});break}case"server:chat_closed":{if(O.data.chat_id===n.value){r.value.push({id:_(),sender:"system",content:"Chat ended",createdAt:new Date});const C=Un(e.jwt),I=(C==null?void 0:C.platform_id)??"",B=(C==null?void 0:C.external_user_id)??"";setTimeout(()=>{I&&B&&tn(I,B),n.value=null,r.value=[],s.value=!1},3100)}break}}}async function R(){var O,g;try{const C=await fetch(`${t}/api/chats`,{method:"POST",headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}});if(!C.ok){const B=await C.json().catch(()=>({}));throw new Error(((O=B.error)==null?void 0:O.message)||"Failed to create chat")}return((g=(await C.json()).data)==null?void 0:g.id)??null}catch(C){return console.error("[Chat] Failed to create chat:",C),i.value=C instanceof Error?C.message:"Failed to create chat",null}}async function J(O){try{const g=await fetch(`${t}/api/chats/${O}`,{method:"GET",headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}});if(g.status===403||g.status===404)return{notFound:!0};if(!g.ok)return null;const C=await g.json();return!C.ok||!C.data?{notFound:!0}:C.data}catch{return null}}async function V(){try{const O=await fetch(`${t}/api/chats?limit=20&offset=0`,{method:"GET",headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}});if(!O.ok)return null;const g=await O.json();if(!g.ok||!g.data)return null;const I=g.data.find(B=>B.status==="open"||B.status==="escalated");return I?{id:I.id,status:I.status}:null}catch{return null}}async function D(O){var g;try{const C=await fetch(`${t}/api/chats/${O}/messages?limit=50&offset=0`,{method:"GET",headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}});if(C.status===403||C.status===404)return{notFound:!0};if(!C.ok)return null;const I=await C.json();return!I.ok||!((g=I.data)!=null&&g.messages)?{notFound:!0}:I.data.messages.map(B=>({id:B.id,content:B.content??"",attachmentUrl:B.attachment_url,sender:B.sender_type,createdAt:new Date(B.created_at*1e3)}))}catch{return null}}async function j(){const O=Un(e.jwt),g=(O==null?void 0:O.platform_id)??"",C=(O==null?void 0:O.external_user_id)??"";if(!g||!C)return b("","");const I=yc(g,C);if(!I)return null;const B=await J(I);if(B===null){n.value=I;const z=await D(I);return z&&"notFound"in z?(tn(g,C),null):(r.value=z??[],I)}if("notFound"in B||B.status==="closed")return tn(g,C),null;n.value=I;const Z=await D(I);return Z&&"notFound"in Z?(tn(g,C),null):(r.value=Z??[],I)}async function b(O,g){const C=await R();return C?(n.value=C,O&&g&&Fr(O,g,C),C):null}async function M(){o.status.value==="connected"||o.status.value==="connecting"||(await j(),o.connect(e.jwt))}function W(){i.value=null,M()}function ce(){!n.value||!a.value||(h&&clearTimeout(h),h=setTimeout(()=>{o.send("client:typing",{chat_id:n.value})},x))}async function he(O){const g=O.trim();if(!g||!a.value)return;if(!n.value){const I=Un(e.jwt),B=(I==null?void 0:I.platform_id)??"",Z=(I==null?void 0:I.external_user_id)??"",z=await V();if(z)n.value=z.id,B&&Z&&Fr(B,Z,z.id);else if(!await b(B,Z)){i.value="Failed to start a new chat session";return}}r.value.push({id:_(),sender:"user",content:g,createdAt:new Date}),s.value=!1,o.send("client:message_send",{chat_id:n.value,content:g})||(r.value.pop(),i.value="Failed to send message")}async function H(O){var g;if(!a.value||!n.value){i.value="Not connected to chat";return}try{const C=await fetch(`${t}/api/chats/${n.value}/attachments/upload-url`,{method:"POST",headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"},body:JSON.stringify({filename:O.name,contentType:O.type,size:O.size})});if(!C.ok){const nt=await C.json().catch(()=>({}));throw new Error(((g=nt.error)==null?void 0:g.message)||"Failed to get upload URL")}const I=await C.json(),{uploadUrl:B,fileKey:Z}=I.data;if(!(await fetch(B,{method:"PUT",headers:{"Content-Type":O.type},body:O})).ok)throw new Error("Failed to upload file");const Q=_();if(r.value.push({id:Q,sender:"user",content:"",createdAt:new Date,attachmentUrl:null}),s.value=!1,!o.send("client:message_send",{chat_id:n.value,content:"",attachment_key:Z})){const nt=r.value.findIndex(rt=>rt.id===Q);nt!==-1&&r.value.splice(nt,1),i.value="Failed to send attachment"}}catch(C){console.error("[Chat] Failed to upload file:",C),i.value=C instanceof Error?C.message:"Failed to upload file"}}function Y(){h&&(clearTimeout(h),h=null),o.disconnect()}return En(Y),{status:l,messages:r,adminTyping:s,chatId:n,errorMessage:i,isConnected:a,isConnecting:u,isError:f,connect:M,retry:W,sendMessage:he,sendTyping:ce,uploadFile:H,cleanup:Y}}const bc={class:"support-client-widget font-sans"},wc={key:0,class:"bg-red-50 border border-red-200 rounded-lg p-4 text-center max-w-[350px]"},Vi=At({__name:"SupportClientWidget.ce",props:{jwt:{type:String},apiBaseUrl:{type:String}},setup(e){const t=e,n=Se(!1),r=xe(()=>"right-5 bottom-5"),s=xe(()=>t.apiBaseUrl?`${(t.apiBaseUrl.endsWith("/")?t.apiBaseUrl.slice(0,-1):t.apiBaseUrl).replace(/^http/,"ws")}/ws`:void 0),i=vc({jwt:t.jwt,apiBaseUrl:t.apiBaseUrl,wsUrl:s.value}),o=()=>{n.value=!n.value};return gr(()=>{t.jwt&&i.connect()}),En(()=>{i.cleanup()}),lt(()=>t.jwt,l=>{l&&i.connect()}),(l,a)=>(ne(),se("div",bc,[e.jwt?(ne(),se(me,{key:1},[ae(na,{"enter-active-class":"transition-all duration-300 ease-out","enter-from-class":"opacity-0 translate-y-4 scale-95","enter-to-class":"opacity-100 translate-y-0 scale-100","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 translate-y-0 scale-100","leave-to-class":"opacity-0 translate-y-4 scale-95"},{default:ws(()=>[dr(A("div",{class:fe(["fixed chat-panel w-[min(360px,calc(100vw-32px))] h-[min(520px,calc(100vh-120px))] z-[9998]",r.value])},[ae(pc,{status:Ye(i).status.value,messages:Ye(i).messages.value,"admin-typing":Ye(i).adminTyping.value,"is-visible":n.value,onClose:o,onRetry:Ye(i).retry,onSend:Ye(i).sendMessage,onTyping:Ye(i).sendTyping,onUpload:Ye(i).uploadFile},null,8,["status","messages","admin-typing","is-visible","onRetry","onSend","onTyping","onUpload"])],2),[[Ei,n.value]])]),_:1}),dr(A("button",{class:fe(["fixed bubble-button w-14 h-14 rounded-full bg-gradient-to-br from-primary to-primary-600 text-white shadow-lg hover:shadow-xl transition-all duration-200 hover:scale-105 active:scale-95 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 z-[9999] flex items-center justify-center",r.value]),"aria-label":"Open chat",onClick:o},[...a[1]||(a[1]=[A("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[A("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})],-1)])],2),[[Ei,!n.value]])],64)):(ne(),se("div",wc,[...a[0]||(a[0]=[ci('<div class="w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#dc2626" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg></div><p class="text-red-600 font-semibold mb-1">Authentication required</p><p class="text-red-800 text-xs"> Please provide a valid JWT token via the <code class="bg-red-100 px-1 py-0.5 rounded font-mono">jwt</code> attribute. </p>',3)])]))]))}}),xc=xa(Vi,{styles:['/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-green-400:oklch(79.2% .209 151.711);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-widest:.1em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary:#d14343;--color-primary-600:#b13535;--color-primary-50:#fef2f2;--color-primary-100:#fee2e2}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.fixed{position:fixed}.static{position:static}.start{inset-inline-start:var(--spacing)}.right-5{right:calc(var(--spacing) * 5)}.bottom-5{bottom:calc(var(--spacing) * 5)}.z-\\[9998\\]{z-index:9998}.z-\\[9999\\]{z-index:9999}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.h-0{height:calc(var(--spacing) * 0)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-\\[min\\(520px\\,calc\\(100vh-120px\\)\\)\\]{height:min(520px,100vh - 120px)}.h-full{height:100%}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-\\[120px\\]{max-height:120px}.min-h-\\[44px\\]{min-height:44px}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-\\[min\\(360px\\,calc\\(100vw-32px\\)\\)\\]{width:min(360px,100vw - 32px)}.w-full{width:100%}.max-w-\\[80\\%\\]{max-width:80%}.max-w-\\[350px\\]{max-width:350px}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-bounce{animation:var(--animate-bounce)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-br-md{border-bottom-right-radius:var(--radius-md)}.rounded-bl-md{border-bottom-left-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-primary-100{border-color:var(--color-primary-100)}.border-red-200{border-color:var(--color-red-200)}.border-red-400{border-color:var(--color-red-400)}.border-t-primary{border-top-color:var(--color-primary)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-green-400{background-color:var(--color-green-400)}.bg-primary{background-color:var(--color-primary)}.bg-primary-600\\/20{background-color:#b1353533}@supports (color:color-mix(in lab,red,red)){.bg-primary-600\\/20{background-color:color-mix(in oklab,var(--color-primary-600) 20%,transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white) 20%,transparent)}}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-primary{--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary-600{--tw-gradient-to:var(--color-primary-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing) * 1)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-8{padding-block:calc(var(--spacing) * 8)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-primary-50{color:var(--color-primary-50)}.text-primary-100{color:var(--color-primary-100)}.text-primary-600{color:var(--color-primary-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:bg-black\\/10:hover{background-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-black\\/10:hover{background-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-primary-600:hover{background-color:var(--color-primary-600)}.hover\\:bg-white\\/30:hover{background-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/30:hover{background-color:color-mix(in oklab,var(--color-white) 30%,transparent)}}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-gray-700:hover{color:var(--color-gray-700)}.hover\\:no-underline:hover{text-decoration-line:none}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\\:border-primary:focus{border-color:var(--color-primary)}.focus\\:border-red-500:focus{border-color:var(--color-red-500)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-primary:focus{--tw-ring-color:var(--color-primary)}.focus\\:ring-red-500:focus{--tw-ring-color:var(--color-red-500)}.focus\\:ring-white\\/50:focus{--tw-ring-color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-white\\/50:focus{--tw-ring-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-100:disabled{background-color:var(--color-gray-100)}.disabled\\:bg-gray-300:disabled{background-color:var(--color-gray-300)}.disabled\\:text-gray-300:disabled{color:var(--color-gray-300)}.disabled\\:text-gray-400:disabled{color:var(--color-gray-400)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}',...Vi.styles||[]]});class Pr extends xc{connectedCallback(){super.connectedCallback(),queueMicrotask(()=>{this.dispatchEvent(new CustomEvent("ready",{bubbles:!0,composed:!0}))})}disconnectedCallback(){super.disconnectedCallback()}}return customElements.get("support-client-widget")||customElements.define("support-client-widget",Pr),on.SupportClientWidgetElement=Pr,on.default=Pr,Object.defineProperties(on,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),on}({});
|
package/package.json
CHANGED
package/dist/index.html
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>TVS Client Widget - Local Dev</title>
|
|
6
|
-
<script src="./support-client-widget.iife.js"></script>
|
|
7
|
-
<style>
|
|
8
|
-
body {
|
|
9
|
-
background-color: #f0f2f5;
|
|
10
|
-
font-family: sans-serif;
|
|
11
|
-
}
|
|
12
|
-
</style>
|
|
13
|
-
</head>
|
|
14
|
-
<body>
|
|
15
|
-
<!-- The JWT will be injected here by setup_dev.ts or manually -->
|
|
16
|
-
<support-client-widget
|
|
17
|
-
id="019ce36c-561c-7203-b0ad-57738daa7e51"
|
|
18
|
-
jwt="{{WIDGET_JWT}}"
|
|
19
|
-
api-base-url="http://localhost:3100"
|
|
20
|
-
ws-url="ws://localhost:3100/ws"
|
|
21
|
-
></support-client-widget>
|
|
22
|
-
|
|
23
|
-
<script>
|
|
24
|
-
document.getElementById('019ce36c-561c-7203-b0ad-57738daa7e51').addEventListener('ready', () => {
|
|
25
|
-
console.log('support-client-widget ready');
|
|
26
|
-
});
|
|
27
|
-
</script>
|
|
28
|
-
</body>
|
|
29
|
-
</html>
|