const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BfRCPsu1.js","assets/index-Bt5n-keb.js","assets/index-Bq_Sa0hn.js","assets/index-BDaAU9Ak.js","assets/Login-DQImuBvP.js","assets/auth-VYNCQSes.js","assets/Login-CNJm1IaW.css","assets/Bind-D8O2neGo.js","assets/Bind-Dnw4b3CT.css","assets/index-p_Y1ee2a.css","assets/WeworkOnly-DY7IKcfi.js","assets/WeworkOnly-CSncHA2v.css","assets/AutomationProgress-Bg2dDc8V.js","assets/AutomationProgress-LpCNvoFl.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/** * @vue/shared v3.5.35 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function jr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Le={},ns=[],Qt=()=>{},Ic=()=>!1,ti=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ni=e=>e.startsWith("onUpdate:"),tt=Object.assign,Ur=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Mf=Object.prototype.hasOwnProperty,Fe=(e,t)=>Mf.call(e,t),ve=Array.isArray,ss=e=>io(e)==="[object Map]",Pc=e=>io(e)==="[object Set]",Pa=e=>io(e)==="[object Date]",_e=e=>typeof e=="function",Me=e=>typeof e=="string",Ft=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",Oc=e=>(Be(e)||_e(e))&&_e(e.then)&&_e(e.catch),$c=Object.prototype.toString,io=e=>$c.call(e),Vf=e=>io(e).slice(8,-1),Fc=e=>io(e)==="[object Object]",si=e=>Me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ms=jr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),oi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},jf=/-\w/g,gt=oi(e=>e.replace(jf,t=>t.slice(1).toUpperCase())),Uf=/\B([A-Z])/g,pn=oi(e=>e.replace(Uf,"-$1").toLowerCase()),ii=oi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Oi=oi(e=>e?`on${ii(e)}`:""),Jt=(e,t)=>!Object.is(e,t),Bo=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Hr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Dc=e=>{const t=Me(e)?Number(e):NaN;return isNaN(t)?e:t};let Oa;const ri=()=>Oa||(Oa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vn(e){if(ve(e)){const t={};for(let n=0;n{if(n){const s=n.split(zf);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Kf(e){if(!e)return"";if(Me(e))return e;let t="";for(const n in e){const s=e[n];if(Me(s)||typeof s=="number"){const o=n.startsWith("--")?n:pn(n);t+=`${o}:${s};`}}return t}function Ue(e){let t="";if(Me(e))t=e;else if(ve(e))for(let n=0;n!!(e&&e.__v_isRef===!0),re=e=>Me(e)?e:e==null?"":ve(e)||Be(e)&&(e.toString===$c||!_e(e.toString))?Lc(e)?re(e.value):JSON.stringify(e,Mc,2):String(e),Mc=(e,t)=>Lc(t)?Mc(e,t.value):ss(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],i)=>(n[$i(s,i)+" =>"]=o,n),{})}:Pc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$i(n))}:Ft(t)?$i(t):Be(t)&&!ve(t)&&!Fc(t)?String(t):t,$i=(e,t="")=>{var n;return Ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.35 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let et;class Vc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&et&&(et.active?(this.parent=et,this.index=(et.scopes||(et.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!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;t0&&--this._on===0){if(et===this)et=this.prevScope;else{let t=et;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(js){let t=js;for(js=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Vs;){let t=Vs;for(Vs=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Wc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Kc(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),Gr(s),Yf(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function rr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Gc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Gc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Js)||(e.globalVersion=Js,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!rr(e))))return;e.flags|=2;const t=e.dep,n=je,s=Vt;je=e,Vt=!0;try{Wc(e);const o=e.fn(e._value);(t.version===0||Jt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{je=n,Vt=s,Kc(e),e.flags&=-3}}function Gr(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Gr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Yf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Vt=!0;const Jc=[];function un(){Jc.push(Vt),Vt=!1}function dn(){const e=Jc.pop();Vt=e===void 0?!0:e}function $a(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=je;je=void 0;try{t()}finally{je=n}}}let Js=0;class Qf{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 Jr{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(!je||!Vt||je===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==je)n=this.activeLink=new Qf(je,this),je.deps?(n.prevDep=je.depsTail,je.depsTail.nextDep=n,je.depsTail=n):je.deps=je.depsTail=n,Xc(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=je.depsTail,n.nextDep=void 0,je.depsTail.nextDep=n,je.depsTail=n,je.deps===n&&(je.deps=s)}return n}trigger(t){this.version++,Js++,this.notify(t)}notify(t){Wr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Kr()}}}function Xc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Xc(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const zo=new WeakMap,Bn=Symbol(""),ar=Symbol(""),Xs=Symbol("");function at(e,t,n){if(Vt&&je){let s=zo.get(e);s||zo.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new Jr),o.map=s,o.key=n),o.track()}}function rn(e,t,n,s,o,i){const r=zo.get(e);if(!r){Js++;return}const a=l=>{l&&l.trigger()};if(Wr(),t==="clear")r.forEach(a);else{const l=ve(e),u=l&&si(n);if(l&&n==="length"){const c=Number(s);r.forEach((d,f)=>{(f==="length"||f===Xs||!Ft(f)&&f>=c)&&a(d)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),u&&a(r.get(Xs)),t){case"add":l?u&&a(r.get("length")):(a(r.get(Bn)),ss(e)&&a(r.get(ar)));break;case"delete":l||(a(r.get(Bn)),ss(e)&&a(r.get(ar)));break;case"set":ss(e)&&a(r.get(Bn));break}}Kr()}function Zf(e,t){const n=zo.get(e);return n&&n.get(t)}function zn(e){const t=Re(e);return t===e?t:(at(t,"iterate",Xs),Ct(e)?t:t.map(Ut))}function ai(e){return at(e=Re(e),"iterate",Xs),e}function Gt(e,t){return fn(e)?as(ln(e)?Ut(t):t):Ut(t)}const eh={__proto__:null,[Symbol.iterator](){return Bi(this,Symbol.iterator,e=>Gt(this,e))},concat(...e){return zn(this).concat(...e.map(t=>ve(t)?zn(t):t))},entries(){return Bi(this,"entries",e=>(e[1]=Gt(this,e[1]),e))},every(e,t){return en(this,"every",e,t,void 0,arguments)},filter(e,t){return en(this,"filter",e,t,n=>n.map(s=>Gt(this,s)),arguments)},find(e,t){return en(this,"find",e,t,n=>Gt(this,n),arguments)},findIndex(e,t){return en(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return en(this,"findLast",e,t,n=>Gt(this,n),arguments)},findLastIndex(e,t){return en(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return en(this,"forEach",e,t,void 0,arguments)},includes(...e){return Di(this,"includes",e)},indexOf(...e){return Di(this,"indexOf",e)},join(e){return zn(this).join(e)},lastIndexOf(...e){return Di(this,"lastIndexOf",e)},map(e,t){return en(this,"map",e,t,void 0,arguments)},pop(){return Es(this,"pop")},push(...e){return Es(this,"push",e)},reduce(e,...t){return Fa(this,"reduce",e,t)},reduceRight(e,...t){return Fa(this,"reduceRight",e,t)},shift(){return Es(this,"shift")},some(e,t){return en(this,"some",e,t,void 0,arguments)},splice(...e){return Es(this,"splice",e)},toReversed(){return zn(this).toReversed()},toSorted(e){return zn(this).toSorted(e)},toSpliced(...e){return zn(this).toSpliced(...e)},unshift(...e){return Es(this,"unshift",e)},values(){return Bi(this,"values",e=>Gt(this,e))}};function Bi(e,t,n){const s=ai(e),o=s[t]();return s!==e&&!Ct(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=n(i.value)),i}),o}const th=Array.prototype;function en(e,t,n,s,o,i){const r=ai(e),a=r!==e&&!Ct(e),l=r[t];if(l!==th[t]){const d=l.apply(e,i);return a?Ut(d):d}let u=n;r!==e&&(a?u=function(d,f){return n.call(this,Gt(e,d),f,e)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,e)}));const c=l.call(r,u,s);return a&&o?o(c):c}function Fa(e,t,n,s){const o=ai(e),i=o!==e&&!Ct(e);let r=n,a=!1;o!==e&&(i?(a=s.length===0,r=function(u,c,d){return a&&(a=!1,u=Gt(e,u)),n.call(this,u,Gt(e,c),d,e)}):n.length>3&&(r=function(u,c,d){return n.call(this,u,c,d,e)}));const l=o[t](r,...s);return a?Gt(e,l):l}function Di(e,t,n){const s=Re(e);at(s,"iterate",Xs);const o=s[t](...n);return(o===-1||o===!1)&&ui(n[0])?(n[0]=Re(n[0]),s[t](...n)):o}function Es(e,t,n=[]){un(),Wr();const s=Re(e)[t].apply(e,n);return Kr(),dn(),s}const nh=jr("__proto__,__v_isRef,__isVue"),Yc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ft));function sh(e){Ft(e)||(e=String(e));const t=Re(this);return at(t,"has",e),t.hasOwnProperty(e)}class Qc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(o?i?ou:su:i?nu:tu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=ve(t);if(!o){let l;if(r&&(l=eh[n]))return l;if(n==="hasOwnProperty")return sh}const a=Reflect.get(t,n,Ge(t)?t:s);if((Ft(n)?Yc.has(n):nh(n))||(o||at(t,"get",n),i))return a;if(Ge(a)){const l=r&&si(n)?a:a.value;return o&&Be(l)?cr(l):l}return Be(a)?o?cr(a):it(a):a}}class Zc extends Qc{constructor(t=!1){super(!1,t)}set(t,n,s,o){let i=t[n];const r=ve(t)&&si(n);if(!this._isShallow){const u=fn(i);if(!Ct(s)&&!fn(s)&&(i=Re(i),s=Re(s)),!r&&Ge(i)&&!Ge(s))return u||(i.value=s),!0}const a=r?Number(n)e,bo=e=>Reflect.getPrototypeOf(e);function lh(e,t,n){return function(...s){const o=this.__v_raw,i=Re(o),r=ss(i),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,u=o[e](...s),c=n?lr:t?as:Ut;return!t&&at(i,"iterate",l?ar:Bn),tt(Object.create(u),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}}})}}function wo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ch(e,t){const n={get(o){const i=this.__v_raw,r=Re(i),a=Re(o);e||(Jt(o,a)&&at(r,"get",o),at(r,"get",a));const{has:l}=bo(r),u=t?lr:e?as:Ut;if(l.call(r,o))return u(i.get(o));if(l.call(r,a))return u(i.get(a));i!==r&&i.get(o)},get size(){const o=this.__v_raw;return!e&&at(Re(o),"iterate",Bn),o.size},has(o){const i=this.__v_raw,r=Re(i),a=Re(o);return e||(Jt(o,a)&&at(r,"has",o),at(r,"has",a)),o===a?i.has(o):i.has(o)||i.has(a)},forEach(o,i){const r=this,a=r.__v_raw,l=Re(a),u=t?lr:e?as:Ut;return!e&&at(l,"iterate",Bn),a.forEach((c,d)=>o.call(i,u(c),u(d),r))}};return tt(n,e?{add:wo("add"),set:wo("set"),delete:wo("delete"),clear:wo("clear")}:{add(o){const i=Re(this),r=bo(i),a=Re(o),l=!t&&!Ct(o)&&!fn(o)?a:o;return r.has.call(i,l)||Jt(o,l)&&r.has.call(i,o)||Jt(a,l)&&r.has.call(i,a)||(i.add(l),rn(i,"add",l,l)),this},set(o,i){!t&&!Ct(i)&&!fn(i)&&(i=Re(i));const r=Re(this),{has:a,get:l}=bo(r);let u=a.call(r,o);u||(o=Re(o),u=a.call(r,o));const c=l.call(r,o);return r.set(o,i),u?Jt(i,c)&&rn(r,"set",o,i):rn(r,"add",o,i),this},delete(o){const i=Re(this),{has:r,get:a}=bo(i);let l=r.call(i,o);l||(o=Re(o),l=r.call(i,o)),a&&a.call(i,o);const u=i.delete(o);return l&&rn(i,"delete",o,void 0),u},clear(){const o=Re(this),i=o.size!==0,r=o.clear();return i&&rn(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=lh(o,e,t)}),n}function li(e,t){const n=ch(e,t);return(s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Fe(n,o)&&o in s?n:s,o,i)}const uh={get:li(!1,!1)},dh={get:li(!1,!0)},fh={get:li(!0,!1)},hh={get:li(!0,!0)},tu=new WeakMap,nu=new WeakMap,su=new WeakMap,ou=new WeakMap;function ph(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function it(e){return fn(e)?e:ci(e,!1,oh,uh,tu)}function iu(e){return ci(e,!1,rh,dh,nu)}function cr(e){return ci(e,!0,ih,fh,su)}function Do(e){return ci(e,!0,ah,hh,ou)}function ci(e,t,n,s,o){if(!Be(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=o.get(e);if(i)return i;const r=ph(Vf(e));if(r===0)return e;const a=new Proxy(e,r===2?s:n);return o.set(e,a),a}function ln(e){return fn(e)?ln(e.__v_raw):!!(e&&e.__v_isReactive)}function fn(e){return!!(e&&e.__v_isReadonly)}function Ct(e){return!!(e&&e.__v_isShallow)}function ui(e){return e?!!e.__v_raw:!1}function Re(e){const t=e&&e.__v_raw;return t?Re(t):e}function Xr(e){return!Fe(e,"__v_skip")&&Object.isExtensible(e)&&Bc(e,"__v_skip",!0),e}const Ut=e=>Be(e)?it(e):e,as=e=>Be(e)?cr(e):e;function Ge(e){return e?e.__v_isRef===!0:!1}function M(e){return ru(e,!1)}function En(e){return ru(e,!0)}function ru(e,t){return Ge(e)?e:new mh(e,t)}class mh{constructor(t,n){this.dep=new Jr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Re(t),this._value=n?t:Ut(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ct(t)||fn(t);t=s?t:Re(t),Jt(t,n)&&(this._rawValue=t,this._value=s?t:Ut(t),this.dep.trigger())}}function Ee(e){return Ge(e)?e.value:e}function os(e){return _e(e)?e():Ee(e)}const gh={get:(e,t,n)=>t==="__v_raw"?e:Ee(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Ge(o)&&!Ge(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function au(e){return ln(e)?e:new Proxy(e,gh)}function vh(e){const t=ve(e)?new Array(e.length):{};for(const n in e)t[n]=yh(e,n);return t}class _h{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=Ft(n)?n:String(n),this._raw=Re(t);let o=!0,i=t;if(!ve(t)||Ft(this._key)||!si(this._key))do o=!ui(i)||Ct(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Ee(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ge(this._raw[this._key])){const n=this._object[this._key];if(Ge(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Zf(this._raw,this._key)}}function yh(e,t,n){return new _h(e,t,n)}class bh{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Jr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Js-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&je!==this)return qc(this,!0),!0}get value(){const t=this.dep.track();return Gc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function wh(e,t,n=!1){let s,o;return _e(e)?s=e:(s=e.get,o=e.set),new bh(s,o,n)}const So={},qo=new WeakMap;let Pn;function Sh(e,t=!1,n=Pn){if(n){let s=qo.get(n);s||qo.set(n,s=[]),s.push(e)}}function Eh(e,t,n=Le){const{immediate:s,deep:o,once:i,scheduler:r,augmentJob:a,call:l}=n,u=A=>o?A:Ct(A)||o===!1||o===0?an(A,1):an(A);let c,d,f,h,y=!1,g=!1;if(Ge(e)?(d=()=>e.value,y=Ct(e)):ln(e)?(d=()=>u(e),y=!0):ve(e)?(g=!0,y=e.some(A=>ln(A)||Ct(A)),d=()=>e.map(A=>{if(Ge(A))return A.value;if(ln(A))return u(A);if(_e(A))return l?l(A,2):A()})):_e(e)?t?d=l?()=>l(e,2):e:d=()=>{if(f){un();try{f()}finally{dn()}}const A=Pn;Pn=c;try{return l?l(e,3,[h]):e(h)}finally{Pn=A}}:d=Qt,t&&o){const A=d,m=o===!0?1/0:o;d=()=>an(A(),m)}const v=qr(),_=()=>{c.stop(),v&&v.active&&Ur(v.effects,c)};if(i&&t){const A=t;t=(...m)=>{A(...m),_()}}let w=g?new Array(e.length).fill(So):So;const T=A=>{if(!(!(c.flags&1)||!c.dirty&&!A))if(t){const m=c.run();if(o||y||(g?m.some((k,I)=>Jt(k,w[I])):Jt(m,w))){f&&f();const k=Pn;Pn=c;try{const I=[m,w===So?void 0:g&&w[0]===So?[]:w,h];w=m,l?l(t,3,I):t(...I)}finally{Pn=k}}}else c.run()};return a&&a(T),c=new Hc(d),c.scheduler=r?()=>r(T,!1):T,h=A=>Sh(A,!1,c),f=c.onStop=()=>{const A=qo.get(c);if(A){if(l)l(A,4);else for(const m of A)m();qo.delete(c)}},t?s?T(!0):w=c.run():r?r(T.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function an(e,t=1/0,n){if(t<=0||!Be(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ge(e))an(e.value,t,n);else if(ve(e))for(let s=0;s{an(s,t,n)});else if(Fc(e)){for(const s in e)an(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&an(e[s],t,n)}return e}/** * @vue/runtime-core v3.5.35 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function ro(e,t,n,s){try{return s?e(...s):e()}catch(o){ao(o,t,n)}}function Bt(e,t,n,s){if(_e(e)){const o=ro(e,t,n,s);return o&&Oc(o)&&o.catch(i=>{ao(i,t,n)}),o}if(ve(e)){const o=[];for(let i=0;i>>1,o=mt[s],i=Ys(o);i=Ys(n)?mt.push(e):mt.splice(Ch(t),0,e),e.flags|=1,cu()}}function cu(){Wo||(Wo=lu.then(du))}function ur(e){ve(e)?is.push(...e):wn&&e.id===-1?wn.splice(Yn+1,0,e):e.flags&1||(is.push(e),e.flags|=1),cu()}function Ba(e,t,n=Kt+1){for(;nYs(n)-Ys(s));if(is.length=0,wn){wn.push(...t);return}for(wn=t,Yn=0;Yne.id==null?e.flags&2?-1:1/0:e.id;function du(e){try{for(Kt=0;Kt{s._d&&Xo(-1);const i=Ko(t);let r;try{r=e(...o)}finally{Ko(i),s._d&&Xo(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function lo(e,t){if(xt===null)return e;const n=mi(xt),s=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&_e(t)?t.call(s&&s.proxy):t}}function Ah(){return!!(Dt()||Dn)}const kh=Symbol.for("v-scx"),Th=()=>ot(kh);function hu(e,t){return Qr(e,null,t)}function be(e,t,n){return Qr(e,t,n)}function Qr(e,t,n=Le){const{immediate:s,deep:o,flush:i,once:r}=n,a=tt({},n),l=t&&s||!t&&i!=="post";let u;if(eo){if(i==="sync"){const h=Th();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Qt,h.resume=Qt,h.pause=Qt,h}}const c=lt;a.call=(h,y,g)=>Bt(h,c,y,g);let d=!1;i==="post"?a.scheduler=h=>{rt(h,c&&c.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(h,y)=>{y?h():Yr(h)}),a.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=Eh(e,t,a);return eo&&(u?u.push(f):l&&f()),f}function Rh(e,t,n){const s=this.proxy,o=Me(e)?e.includes(".")?pu(s,e):()=>s[e]:e.bind(s,s);let i;_e(t)?i=t:(i=t.handler,n=t);const r=co(this),a=Qr(o,i.bind(s),n);return r(),a}function pu(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;oe.__isTeleport,On=e=>e&&(e.disabled||e.disabled===""),Ih=e=>e&&(e.defer||e.defer===""),Da=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Na=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,dr=(e,t)=>{const n=e&&e.to;return Me(n)?t?t(n):null:n},Ph={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,i,r,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:y,createText:g,createComment:v,parentNode:_}}=u,w=On(t.props);let{dynamicChildren:T}=t;const A=(I,z,F)=>{I.shapeFlag&16&&c(I.children,z,F,o,i,r,a,l)},m=(I=t)=>{const z=On(I.props),F=I.target=dr(I.props,y),B=fr(F,I,g,h);F&&(r!=="svg"&&Da(F)?r="svg":r!=="mathml"&&Na(F)&&(r="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(F),z||(A(I,F,B),Ds(I,!1)))},k=I=>{const z=()=>{if(yn.get(I)===z){if(yn.delete(I),On(I.props)){const F=_(I.el)||n;A(I,F,I.anchor),Ds(I,!0)}m(I)}};yn.set(I,z),rt(z,i)};if(e==null){const I=t.el=g(""),z=t.anchor=g("");if(h(I,n,s),h(z,n,s),Ih(t.props)||i&&i.pendingBranch){k(t);return}w&&(A(t,n,z),Ds(t,!0)),m()}else{t.el=e.el;const I=t.anchor=e.anchor,z=yn.get(e);if(z){z.flags|=8,yn.delete(e),k(t);return}t.targetStart=e.targetStart;const F=t.target=e.target,B=t.targetAnchor=e.targetAnchor,K=On(e.props),U=K?n:F,ae=K?I:B;if(r==="svg"||Da(F)?r="svg":(r==="mathml"||Na(F))&&(r="mathml"),T?(f(e.dynamicChildren,T,U,o,i,r,a),sa(e,t,!0)):l||d(e,t,U,ae,o,i,r,a,!1),w)K?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Eo(t,n,I,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const fe=t.target=dr(t.props,y);fe&&Eo(t,fe,null,u,0)}else K&&Eo(t,F,B,u,1);Ds(t,w)}},remove(e,t,n,{um:s,o:{remove:o}},i){const{shapeFlag:r,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:f}=e,h=i||!On(f),y=yn.get(e);if(y&&(y.flags|=8,yn.delete(e)),d&&(o(u),o(c)),i&&o(l),!y&&r&16)for(let g=0;g{e.isMounted=!0}),gs(()=>{e.isUnmounting=!0}),e}const Tt=[Function,Array],vu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Tt,onEnter:Tt,onAfterEnter:Tt,onEnterCancelled:Tt,onBeforeLeave:Tt,onLeave:Tt,onAfterLeave:Tt,onLeaveCancelled:Tt,onBeforeAppear:Tt,onAppear:Tt,onAfterAppear:Tt,onAppearCancelled:Tt},_u=e=>{const t=e.subTree;return t.component?_u(t.component):t},Fh={name:"BaseTransition",props:vu,setup(e,{slots:t}){const n=Dt(),s=$h();return()=>{const o=t.default&&wu(t.default(),!0),i=o&&o.length?yu(o):n.subTree?ge():void 0;if(!i)return;const r=Re(e),{mode:a}=r;if(s.isLeaving)return Ni(i);const l=La(i);if(!l)return Ni(i);let u=hr(l,r,s,n,d=>u=d);l.type!==st&&Qs(l,u);let c=n.subTree&&La(n.subTree);if(c&&c.type!==st&&!Xt(c,l)&&_u(n).type!==st){let d=hr(c,r,s,n);if(Qs(c,d),a==="out-in"&&l.type!==st)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},Ni(i);a==="in-out"&&l.type!==st?d.delayLeave=(f,h,y)=>{const g=bu(s,c);g[String(c.key)]=c,f[Pt]=()=>{h(),f[Pt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{y(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function yu(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==st){t=n;break}}return t}const Bh=Fh;function bu(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function hr(e,t,n,s,o){const{appear:i,mode:r,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:y,onLeaveCancelled:g,onBeforeAppear:v,onAppear:_,onAfterAppear:w,onAppearCancelled:T}=t,A=String(e.key),m=bu(n,e),k=(F,B)=>{F&&Bt(F,s,9,B)},I=(F,B)=>{const K=B[1];k(F,B),ve(F)?F.every(U=>U.length<=1)&&K():F.length<=1&&K()},z={mode:r,persisted:a,beforeEnter(F){let B=l;if(!n.isMounted)if(i)B=v||l;else return;F[Pt]&&F[Pt](!0);const K=m[A];K&&Xt(e,K)&&K.el[Pt]&&K.el[Pt](),k(B,[F])},enter(F){if(m[A]===e)return;let B=u,K=c,U=d;if(!n.isMounted)if(i)B=_||u,K=w||c,U=T||d;else return;let ae=!1;F[xs]=ue=>{ae||(ae=!0,ue?k(U,[F]):k(K,[F]),z.delayedLeave&&z.delayedLeave(),F[xs]=void 0)};const fe=F[xs].bind(null,!1);B?I(B,[F,fe]):fe()},leave(F,B){const K=String(e.key);if(F[xs]&&F[xs](!0),n.isUnmounting)return B();k(f,[F]);let U=!1;F[Pt]=fe=>{U||(U=!0,B(),fe?k(g,[F]):k(y,[F]),F[Pt]=void 0,m[K]===e&&delete m[K])};const ae=F[Pt].bind(null,!1);m[K]=e,h?I(h,[F,ae]):ae()},clone(F){const B=hr(F,t,n,s,o);return o&&o(B),B}};return z}function Ni(e){if(di(e))return e=xn(e),e.children=null,e}function La(e){if(!di(e))return gu(e.type)&&e.children?yu(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&&_e(n.default))return n.default()}}function Qs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qs(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 wu(e,t=!1,n){let s=[],o=0;for(let i=0;i1)for(let i=0;iUs(g,t&&(ve(t)?t[v]:t),n,s,o));return}if(Hs(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Us(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?mi(s.component):s.el,r=o?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Le?a.refs={}:a.refs,d=a.setupState,f=Re(d),h=d===Le?Ic:g=>Ma(c,g)?!1:Fe(f,g),y=(g,v)=>!(v&&Ma(c,v));if(u!=null&&u!==l){if(Va(t),Me(u))c[u]=null,h(u)&&(d[u]=null);else if(Ge(u)){const g=t;y(u,g.k)&&(u.value=null),g.k&&(c[g.k]=null)}}if(_e(l))ro(l,a,12,[r,c]);else{const g=Me(l),v=Ge(l);if(g||v){const _=()=>{if(e.f){const w=g?h(l)?d[l]:c[l]:y()||!e.k?l.value:c[e.k];if(o)ve(w)&&Ur(w,i);else if(ve(w))w.includes(i)||w.push(i);else if(g)c[l]=[i],h(l)&&(d[l]=c[l]);else{const T=[i];y(l,e.k)&&(l.value=T),e.k&&(c[e.k]=T)}}else g?(c[l]=r,h(l)&&(d[l]=r)):v&&(y(l,e.k)&&(l.value=r),e.k&&(c[e.k]=r))};if(r){const w=()=>{_(),Go.delete(e)};w.id=-1,Go.set(e,w),rt(w,n)}else Va(e),_()}}}function Va(e){const t=Go.get(e);t&&(t.flags|=8,Go.delete(e))}ri().requestIdleCallback;ri().cancelIdleCallback;const Hs=e=>!!e.type.__asyncLoader,di=e=>e.type.__isKeepAlive;function ms(e,t){Eu(e,"a",t)}function jn(e,t){Eu(e,"da",t)}function Eu(e,t,n=lt){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(fi(t,s,n),n){let o=n.parent;for(;o&&o.parent;)di(o.parent.vnode)&&Dh(s,t,n,o),o=o.parent}}function Dh(e,t,n,s){const o=fi(t,e,s,!0);Cn(()=>{Ur(s[t],o)},n)}function fi(e,t,n=lt,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{un();const a=co(n),l=Bt(t,n,e,r);return a(),dn(),l});return s?o.unshift(i):o.push(i),i}}const mn=e=>(t,n=lt)=>{(!eo||e==="sp")&&fi(e,(...s)=>t(...s),n)},Nh=mn("bm"),nt=mn("m"),xu=mn("bu"),Lh=mn("u"),gs=mn("bum"),Cn=mn("um"),Mh=mn("sp"),Vh=mn("rtg"),jh=mn("rtc");function Uh(e,t=lt){fi("ec",e,t)}const Cu="components";function Hh(e,t){return ku(Cu,e,!0,t)||e}const Au=Symbol.for("v-ndc");function zh(e){return Me(e)?ku(Cu,e,!1)||e:e||Au}function ku(e,t,n=!0,s=!1){const o=xt||lt;if(o){const i=o.type;{const a=Fp(i,!1);if(a&&(a===t||a===gt(t)||a===ii(gt(t))))return i}const r=ja(o[e]||i[e],t)||ja(o.appContext[e],t);return!r&&s?i:r}}function ja(e,t){return e&&(e[t]||e[gt(t)]||e[ii(gt(t))])}function bt(e,t,n,s){let o;const i=n,r=ve(e);if(r||Me(e)){const a=r&&ln(e);let l=!1,u=!1;a&&(l=!Ct(e),u=fn(e),e=ai(e)),o=new Array(e.length);for(let c=0,d=e.length;ct(a,l,void 0,i));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,u=a.length;le?Gu(e)?mi(e):pr(e.parent):null,zs=tt(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=>pr(e.parent),$root:e=>pr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ru(e),$forceUpdate:e=>e.f||(e.f=()=>{Yr(e.update)}),$nextTick:e=>e.n||(e.n=We.bind(e.proxy)),$watch:e=>Rh.bind(e)}),Li=(e,t)=>e!==Le&&!e.__isScriptSetup&&Fe(e,t),qh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:i,accessCache:r,type:a,appContext:l}=e;if(t[0]!=="$"){const f=r[t];if(f!==void 0)switch(f){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Li(s,t))return r[t]=1,s[t];if(o!==Le&&Fe(o,t))return r[t]=2,o[t];if(Fe(i,t))return r[t]=3,i[t];if(n!==Le&&Fe(n,t))return r[t]=4,n[t];mr&&(r[t]=0)}}const u=zs[t];let c,d;if(u)return t==="$attrs"&&at(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==Le&&Fe(n,t))return r[t]=4,n[t];if(d=l.config.globalProperties,Fe(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return Li(o,t)?(o[t]=n,!0):s!==Le&&Fe(s,t)?(s[t]=n,!0):Fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:i,type:r}},a){let l;return!!(n[a]||e!==Le&&a[0]!=="$"&&Fe(e,a)||Li(t,a)||Fe(i,a)||Fe(s,a)||Fe(zs,a)||Fe(o.config.globalProperties,a)||(l=r.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ua(e){return ve(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let mr=!0;function Wh(e){const t=Ru(e),n=e.proxy,s=e.ctx;mr=!1,t.beforeCreate&&Ha(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:y,activated:g,deactivated:v,beforeDestroy:_,beforeUnmount:w,destroyed:T,unmounted:A,render:m,renderTracked:k,renderTriggered:I,errorCaptured:z,serverPrefetch:F,expose:B,inheritAttrs:K,components:U,directives:ae,filters:fe}=t;if(u&&Kh(u,s,null),r)for(const le in r){const me=r[le];_e(me)&&(s[le]=me.bind(n))}if(o){const le=o.call(n,n);Be(le)&&(e.data=it(le))}if(mr=!0,i)for(const le in i){const me=i[le],Q=_e(me)?me.bind(n,n):_e(me.get)?me.get.bind(n,n):Qt,ee=!_e(me)&&_e(me.set)?me.set.bind(n):Qt,X=G({get:Q,set:ee});Object.defineProperty(s,le,{enumerable:!0,configurable:!0,get:()=>X.value,set:q=>X.value=q})}if(a)for(const le in a)Tu(a[le],s,n,le);if(l){const le=_e(l)?l.call(n):l;Reflect.ownKeys(le).forEach(me=>{Zt(me,le[me])})}c&&Ha(c,e,"c");function pe(le,me){ve(me)?me.forEach(Q=>le(Q.bind(n))):me&&le(me.bind(n))}if(pe(Nh,d),pe(nt,f),pe(xu,h),pe(Lh,y),pe(ms,g),pe(jn,v),pe(Uh,z),pe(jh,k),pe(Vh,I),pe(gs,w),pe(Cn,A),pe(Mh,F),ve(B))if(B.length){const le=e.exposed||(e.exposed={});B.forEach(me=>{Object.defineProperty(le,me,{get:()=>n[me],set:Q=>n[me]=Q,enumerable:!0})})}else e.exposed||(e.exposed={});m&&e.render===Qt&&(e.render=m),K!=null&&(e.inheritAttrs=K),U&&(e.components=U),ae&&(e.directives=ae),F&&Su(e)}function Kh(e,t,n=Qt){ve(e)&&(e=gr(e));for(const s in e){const o=e[s];let i;Be(o)?"default"in o?i=ot(o.from||s,o.default,!0):i=ot(o.from||s):i=ot(o),Ge(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function Ha(e,t,n){Bt(ve(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Tu(e,t,n,s){let o=s.includes(".")?pu(n,s):()=>n[s];if(Me(e)){const i=t[e];_e(i)&&be(o,i)}else if(_e(e))be(o,e.bind(n));else if(Be(e))if(ve(e))e.forEach(i=>Tu(i,t,n,s));else{const i=_e(e.handler)?e.handler.bind(n):t[e.handler];_e(i)&&be(o,i,e)}}function Ru(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(u=>Jo(l,u,r,!0)),Jo(l,t,r)),Be(t)&&i.set(t,l),l}function Jo(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&Jo(e,i,n,!0),o&&o.forEach(r=>Jo(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=Gh[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const Gh={data:za,props:qa,emits:qa,methods:Ns,computed:Ns,beforeCreate:ht,created:ht,beforeMount:ht,mounted:ht,beforeUpdate:ht,updated:ht,beforeDestroy:ht,beforeUnmount:ht,destroyed:ht,unmounted:ht,activated:ht,deactivated:ht,errorCaptured:ht,serverPrefetch:ht,components:Ns,directives:Ns,watch:Xh,provide:za,inject:Jh};function za(e,t){return t?e?function(){return tt(_e(e)?e.call(this,this):e,_e(t)?t.call(this,this):t)}:t:e}function Jh(e,t){return Ns(gr(e),gr(t))}function gr(e){if(ve(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${gt(t)}Modifiers`]||e[`${pn(t)}Modifiers`];function ep(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Le;let o=n;const i=t.startsWith("update:"),r=i&&Zh(s,t.slice(7));r&&(r.trim&&(o=n.map(c=>Me(c)?c.trim():c)),r.number&&(o=n.map(Hr)));let a,l=s[a=Oi(t)]||s[a=Oi(gt(t))];!l&&i&&(l=s[a=Oi(pn(t))]),l&&Bt(l,e,6,o);const u=s[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Bt(u,e,6,o)}}const tp=new WeakMap;function Pu(e,t,n=!1){const s=n?tp:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let r={},a=!1;if(!_e(e)){const l=u=>{const c=Pu(u,t,!0);c&&(a=!0,tt(r,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Be(e)&&s.set(e,null),null):(ve(i)?i.forEach(l=>r[l]=null):tt(r,i),Be(e)&&s.set(e,r),r)}function hi(e,t){return!e||!ti(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fe(e,t[0].toLowerCase()+t.slice(1))||Fe(e,pn(t))||Fe(e,t))}function Wa(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:r,attrs:a,emit:l,render:u,renderCache:c,props:d,data:f,setupState:h,ctx:y,inheritAttrs:g}=e,v=Ko(e);let _,w;try{if(n.shapeFlag&4){const A=o||s,m=A;_=Lt(u.call(m,A,c,d,h,f,y)),w=a}else{const A=t;_=Lt(A.length>1?A(d,{attrs:a,slots:r,emit:l}):A(d,null)),w=t.props?a:sp(a)}}catch(A){qs.length=0,ao(A,e,1),_=E(st)}let T=_;if(w&&g!==!1){const A=Object.keys(w),{shapeFlag:m}=T;A.length&&m&7&&(i&&A.some(ni)&&(w=op(w,i)),T=xn(T,w,!1,!0))}return n.dirs&&(T=xn(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&Qs(T,n.transition),_=T,Ko(v),_}function np(e,t=!0){let n;for(let s=0;s{let t;for(const n in e)(n==="class"||n==="style"||ti(n))&&((t||(t={}))[n]=e[n]);return t},op=(e,t)=>{const n={};for(const s in e)(!ni(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ip(e,t,n){const{props:s,children:o,component:i}=e,{props:r,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Ka(s,r,u):!!r;if(l&8){const c=t.dynamicProps;for(let d=0;dObject.create($u),Bu=e=>Object.getPrototypeOf(e)===$u;function rp(e,t,n,s=!1){const o={},i=Fu();e.propsDefaults=Object.create(null),Du(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:iu(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function ap(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,a=Re(o),[l]=e.propsOptions;let u=!1;if((s||r>0)&&!(r&16)){if(r&8){const c=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,h]=Nu(d,t,!0);tt(r,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Be(e)&&s.set(e,ns),ns;if(ve(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",na=e=>ve(e)?e.map(Lt):[Lt(e)],cp=(e,t,n)=>{if(t._n)return t;const s=He((...o)=>na(t(...o)),n);return s._c=!1,s},Lu=(e,t,n)=>{const s=e._ctx;for(const o in e){if(ta(o))continue;const i=e[o];if(_e(i))t[o]=cp(o,i,s);else if(i!=null){const r=na(i);t[o]=()=>r}}},Mu=(e,t)=>{const n=na(t);e.slots.default=()=>n},Vu=(e,t,n)=>{for(const s in t)(n||!ta(s))&&(e[s]=t[s])},up=(e,t,n)=>{const s=e.slots=Fu();if(e.vnode.shapeFlag&32){const o=t._;o?(Vu(s,t,n),n&&Bc(s,"_",o,!0)):Lu(t,s)}else t&&Mu(e,t)},dp=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,r=Le;if(s.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Vu(o,t,n):(i=!t.$stable,Lu(t,o)),r=t}else t&&(Mu(e,t),r={default:1});if(i)for(const a in o)!ta(a)&&r[a]==null&&delete o[a]},rt=Sp;function fp(e){return hp(e)}function hp(e,t){const n=ri();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:r,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=Qt,insertStaticContent:y}=e,g=(b,x,R,j=null,W=null,H=null,ie=void 0,se=null,ne=!!x.dynamicChildren)=>{if(b===x)return;b&&!Xt(b,x)&&(j=S(b),q(b,W,H,!0),b=null),x.patchFlag===-2&&(ne=!1,x.dynamicChildren=null);const{type:C,ref:N,shapeFlag:L}=x;switch(C){case pi:v(b,x,R,j);break;case st:_(b,x,R,j);break;case No:b==null&&w(x,R,j,ie);break;case Ie:U(b,x,R,j,W,H,ie,se,ne);break;default:L&1?m(b,x,R,j,W,H,ie,se,ne):L&6?ae(b,x,R,j,W,H,ie,se,ne):(L&64||L&128)&&C.process(b,x,R,j,W,H,ie,se,ne,Z)}N!=null&&W?Us(N,b&&b.ref,H,x||b,!x):N==null&&b&&b.ref!=null&&Us(b.ref,null,H,b,!0)},v=(b,x,R,j)=>{if(b==null)s(x.el=a(x.children),R,j);else{const W=x.el=b.el;x.children!==b.children&&u(W,x.children)}},_=(b,x,R,j)=>{b==null?s(x.el=l(x.children||""),R,j):x.el=b.el},w=(b,x,R,j)=>{[b.el,b.anchor]=y(b.children,x,R,j,b.el,b.anchor)},T=({el:b,anchor:x},R,j)=>{let W;for(;b&&b!==x;)W=f(b),s(b,R,j),b=W;s(x,R,j)},A=({el:b,anchor:x})=>{let R;for(;b&&b!==x;)R=f(b),o(b),b=R;o(x)},m=(b,x,R,j,W,H,ie,se,ne)=>{if(x.type==="svg"?ie="svg":x.type==="math"&&(ie="mathml"),b==null)k(x,R,j,W,H,ie,se,ne);else{const C=b.el&&b.el._isVueCE?b.el:null;try{C&&C._beginPatch(),F(b,x,W,H,ie,se,ne)}finally{C&&C._endPatch()}}},k=(b,x,R,j,W,H,ie,se)=>{let ne,C;const{props:N,shapeFlag:L,transition:J,dirs:oe}=b;if(ne=b.el=r(b.type,H,N&&N.is,N),L&8?c(ne,b.children):L&16&&z(b.children,ne,null,j,W,Mi(b,H),ie,se),oe&&An(b,null,j,"created"),I(ne,b,b.scopeId,ie,j),N){for(const Te in N)Te!=="value"&&!Ms(Te)&&i(ne,Te,null,N[Te],H,j);"value"in N&&i(ne,"value",null,N.value,H),(C=N.onVnodeBeforeMount)&&Wt(C,j,b)}oe&&An(b,null,j,"beforeMount");const Se=pp(W,J);Se&&J.beforeEnter(ne),s(ne,x,R),((C=N&&N.onVnodeMounted)||Se||oe)&&rt(()=>{try{C&&Wt(C,j,b),Se&&J.enter(ne),oe&&An(b,null,j,"mounted")}finally{}},W)},I=(b,x,R,j,W)=>{if(R&&h(b,R),j)for(let H=0;H{for(let C=ne;C{const se=x.el=b.el;let{patchFlag:ne,dynamicChildren:C,dirs:N}=x;ne|=b.patchFlag&16;const L=b.props||Le,J=x.props||Le;let oe;if(R&&kn(R,!1),(oe=J.onVnodeBeforeUpdate)&&Wt(oe,R,x,b),N&&An(x,b,R,"beforeUpdate"),R&&kn(R,!0),(L.innerHTML&&J.innerHTML==null||L.textContent&&J.textContent==null)&&c(se,""),C?B(b.dynamicChildren,C,se,R,j,Mi(x,W),H):ie||me(b,x,se,null,R,j,Mi(x,W),H,!1),ne>0){if(ne&16)K(se,L,J,R,W);else if(ne&2&&L.class!==J.class&&i(se,"class",null,J.class,W),ne&4&&i(se,"style",L.style,J.style,W),ne&8){const Se=x.dynamicProps;for(let Te=0;Te{oe&&Wt(oe,R,x,b),N&&An(x,b,R,"updated")},j)},B=(b,x,R,j,W,H,ie)=>{for(let se=0;se{if(x!==R){if(x!==Le)for(const H in x)!Ms(H)&&!(H in R)&&i(b,H,x[H],null,W,j);for(const H in R){if(Ms(H))continue;const ie=R[H],se=x[H];ie!==se&&H!=="value"&&i(b,H,se,ie,W,j)}"value"in R&&i(b,"value",x.value,R.value,W)}},U=(b,x,R,j,W,H,ie,se,ne)=>{const C=x.el=b?b.el:a(""),N=x.anchor=b?b.anchor:a("");let{patchFlag:L,dynamicChildren:J,slotScopeIds:oe}=x;oe&&(se=se?se.concat(oe):oe),b==null?(s(C,R,j),s(N,R,j),z(x.children||[],R,N,W,H,ie,se,ne)):L>0&&L&64&&J&&b.dynamicChildren&&b.dynamicChildren.length===J.length?(B(b.dynamicChildren,J,R,W,H,ie,se),(x.key!=null||W&&x===W.subTree)&&sa(b,x,!0)):me(b,x,R,N,W,H,ie,se,ne)},ae=(b,x,R,j,W,H,ie,se,ne)=>{x.slotScopeIds=se,b==null?x.shapeFlag&512?W.ctx.activate(x,R,j,ie,ne):fe(x,R,j,W,H,ie,ne):ue(b,x,ne)},fe=(b,x,R,j,W,H,ie)=>{const se=b.component=Rp(b,j,W);if(di(b)&&(se.ctx.renderer=Z),Ip(se,!1,ie),se.asyncDep){if(W&&W.registerDep(se,pe,ie),!b.el){const ne=se.subTree=E(st);_(null,ne,x,R),b.placeholder=ne.el}}else pe(se,b,x,R,W,H,ie)},ue=(b,x,R)=>{const j=x.component=b.component;if(ip(b,x,R))if(j.asyncDep&&!j.asyncResolved){le(j,x,R);return}else j.next=x,j.update();else x.el=b.el,j.vnode=x},pe=(b,x,R,j,W,H,ie)=>{const se=()=>{if(b.isMounted){let{next:L,bu:J,u:oe,parent:Se,vnode:Te}=b;{const ft=ju(b);if(ft){L&&(L.el=Te.el,le(b,L,ie)),ft.asyncDep.then(()=>{rt(()=>{b.isUnmounted||C()},W)});return}}let Pe=L,xe;kn(b,!1),L?(L.el=Te.el,le(b,L,ie)):L=Te,J&&Bo(J),(xe=L.props&&L.props.onVnodeBeforeUpdate)&&Wt(xe,Se,L,Te),kn(b,!0);const Ce=Wa(b),dt=b.subTree;b.subTree=Ce,g(dt,Ce,d(dt.el),S(dt),b,W,H),L.el=Ce.el,Pe===null&&ea(b,Ce.el),oe&&rt(oe,W),(xe=L.props&&L.props.onVnodeUpdated)&&rt(()=>Wt(xe,Se,L,Te),W)}else{let L;const{el:J,props:oe}=x,{bm:Se,m:Te,parent:Pe,root:xe,type:Ce}=b,dt=Hs(x);kn(b,!1),Se&&Bo(Se),!dt&&(L=oe&&oe.onVnodeBeforeMount)&&Wt(L,Pe,x),kn(b,!0);{xe.ce&&xe.ce._hasShadowRoot()&&xe.ce._injectChildStyle(Ce,b.parent?b.parent.type:void 0);const ft=b.subTree=Wa(b);g(null,ft,R,j,b,W,H),x.el=ft.el}if(Te&&rt(Te,W),!dt&&(L=oe&&oe.onVnodeMounted)){const ft=x;rt(()=>Wt(L,Pe,ft),W)}(x.shapeFlag&256||Pe&&Hs(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&b.a&&rt(b.a,W),b.isMounted=!0,x=R=j=null}};b.scope.on();const ne=b.effect=new Hc(se);b.scope.off();const C=b.update=ne.run.bind(ne),N=b.job=ne.runIfDirty.bind(ne);N.i=b,N.id=b.uid,ne.scheduler=()=>Yr(N),kn(b,!0),C()},le=(b,x,R)=>{x.component=b;const j=b.vnode.props;b.vnode=x,b.next=null,ap(b,x.props,j,R),dp(b,x.children,R),un(),Ba(b),dn()},me=(b,x,R,j,W,H,ie,se,ne=!1)=>{const C=b&&b.children,N=b?b.shapeFlag:0,L=x.children,{patchFlag:J,shapeFlag:oe}=x;if(J>0){if(J&128){ee(C,L,R,j,W,H,ie,se,ne);return}else if(J&256){Q(C,L,R,j,W,H,ie,se,ne);return}}oe&8?(N&16&&he(C,W,H),L!==C&&c(R,L)):N&16?oe&16?ee(C,L,R,j,W,H,ie,se,ne):he(C,W,H,!0):(N&8&&c(R,""),oe&16&&z(L,R,j,W,H,ie,se,ne))},Q=(b,x,R,j,W,H,ie,se,ne)=>{b=b||ns,x=x||ns;const C=b.length,N=x.length,L=Math.min(C,N);let J;for(J=0;JN?he(b,W,H,!0,!1,L):z(x,R,j,W,H,ie,se,ne,L)},ee=(b,x,R,j,W,H,ie,se,ne)=>{let C=0;const N=x.length;let L=b.length-1,J=N-1;for(;C<=L&&C<=J;){const oe=b[C],Se=x[C]=ne?on(x[C]):Lt(x[C]);if(Xt(oe,Se))g(oe,Se,R,null,W,H,ie,se,ne);else break;C++}for(;C<=L&&C<=J;){const oe=b[L],Se=x[J]=ne?on(x[J]):Lt(x[J]);if(Xt(oe,Se))g(oe,Se,R,null,W,H,ie,se,ne);else break;L--,J--}if(C>L){if(C<=J){const oe=J+1,Se=oeJ)for(;C<=L;)q(b[C],W,H,!0),C++;else{const oe=C,Se=C,Te=new Map;for(C=Se;C<=J;C++){const Et=x[C]=ne?on(x[C]):Lt(x[C]);Et.key!=null&&Te.set(Et.key,C)}let Pe,xe=0;const Ce=J-Se+1;let dt=!1,ft=0;const Ss=new Array(Ce);for(C=0;C=Ce){q(Et,W,H,!0);continue}let qt;if(Et.key!=null)qt=Te.get(Et.key);else for(Pe=Se;Pe<=J;Pe++)if(Ss[Pe-Se]===0&&Xt(Et,x[Pe])){qt=Pe;break}qt===void 0?q(Et,W,H,!0):(Ss[qt-Se]=C+1,qt>=ft?ft=qt:dt=!0,g(Et,x[qt],R,null,W,H,ie,se,ne),xe++)}const Ta=dt?mp(Ss):ns;for(Pe=Ta.length-1,C=Ce-1;C>=0;C--){const Et=Se+C,qt=x[Et],Ra=x[Et+1],Ia=Et+1{const{el:H,type:ie,transition:se,children:ne,shapeFlag:C}=b;if(C&6){X(b.component.subTree,x,R,j);return}if(C&128){b.suspense.move(x,R,j);return}if(C&64){ie.move(b,x,R,Z);return}if(ie===Ie){s(H,x,R);for(let L=0;Lse.enter(H),W));else{const{leave:L,delayLeave:J,afterLeave:oe}=se,Se=()=>{b.ctx.isUnmounted?o(H):s(H,x,R)},Te=()=>{const Pe=H._isLeaving||!!H[Pt];H._isLeaving&&H[Pt](!0),se.persisted&&!Pe?Se():L(H,()=>{Se(),oe&&oe()})};J?J(H,Se,Te):Te()}else s(H,x,R)},q=(b,x,R,j=!1,W=!1)=>{const{type:H,props:ie,ref:se,children:ne,dynamicChildren:C,shapeFlag:N,patchFlag:L,dirs:J,cacheIndex:oe,memo:Se}=b;if(L===-2&&(W=!1),se!=null&&(un(),Us(se,null,R,b,!0),dn()),oe!=null&&(x.renderCache[oe]=void 0),N&256){x.ctx.deactivate(b);return}const Te=N&1&&J,Pe=!Hs(b);let xe;if(Pe&&(xe=ie&&ie.onVnodeBeforeUnmount)&&Wt(xe,x,b),N&6)te(b.component,R,j);else{if(N&128){b.suspense.unmount(R,j);return}Te&&An(b,null,x,"beforeUnmount"),N&64?b.type.remove(b,x,R,Z,j):C&&!C.hasOnce&&(H!==Ie||L>0&&L&64)?he(C,x,R,!1,!0):(H===Ie&&L&384||!W&&N&16)&&he(ne,x,R),j&&Y(b)}const Ce=Se!=null&&oe==null;(Pe&&(xe=ie&&ie.onVnodeUnmounted)||Te||Ce)&&rt(()=>{xe&&Wt(xe,x,b),Te&&An(b,null,x,"unmounted"),Ce&&(b.el=null)},R)},Y=b=>{const{type:x,el:R,anchor:j,transition:W}=b;if(x===Ie){ye(R,j);return}if(x===No){A(b);return}const H=()=>{o(R),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(b.shapeFlag&1&&W&&!W.persisted){const{leave:ie,delayLeave:se}=W,ne=()=>ie(R,H);se?se(b.el,H,ne):ne()}else H()},ye=(b,x)=>{let R;for(;b!==x;)R=f(b),o(b),b=R;o(x)},te=(b,x,R)=>{const{bum:j,scope:W,job:H,subTree:ie,um:se,m:ne,a:C}=b;Ja(ne),Ja(C),j&&Bo(j),W.stop(),H&&(H.flags|=8,q(ie,b,x,R)),se&&rt(se,x),rt(()=>{b.isUnmounted=!0},x)},he=(b,x,R,j=!1,W=!1,H=0)=>{for(let ie=H;ie{if(b.shapeFlag&6)return S(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const x=f(b.anchor||b.el),R=x&&x[mu];return R?f(R):x};let $=!1;const V=(b,x,R)=>{let j;b==null?x._vnode&&(q(x._vnode,null,null,!0),j=x._vnode.component):g(x._vnode||null,b,x,null,null,null,R),x._vnode=b,$||($=!0,Ba(j),uu(),$=!1)},Z={p:g,um:q,m:X,r:Y,mt:fe,mc:z,pc:me,pbc:B,n:S,o:e};return{render:V,hydrate:void 0,createApp:Qh(V)}}function Mi({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 kn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function pp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sa(e,t,n=!1){const s=e.children,o=t.children;if(ve(s)&&ve(o))for(let i=0;i>1,e[n[a]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function ju(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ju(t)}function Ja(e){if(e)for(let t=0;te.__isSuspense;let _r=0;const gp={name:"Suspense",__isSuspense:!0,process(e,t,n,s,o,i,r,a,l,u){if(e==null)_p(t,n,s,o,i,r,a,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}yp(e,t,n,s,o,r,a,l,u)}},hydrate:bp,normalize:wp},vp=gp;function Zs(e,t){const n=e.props&&e.props[t];_e(n)&&n()}function _p(e,t,n,s,o,i,r,a,l){const{p:u,o:{createElement:c}}=l,d=c("div"),f=e.suspense=zu(e,o,s,t,d,n,i,r,a,l);u(null,f.pendingBranch=e.ssContent,d,null,s,f,i,r),f.deps>0?(Zs(e,"onPending"),Zs(e,"onFallback"),u(null,e.ssFallback,t,n,s,null,i,r),rs(f,e.ssFallback)):f.resolve(!1,!0)}function yp(e,t,n,s,o,i,r,a,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:y,pendingBranch:g,isInFallback:v,isHydrating:_}=d;if(g)d.pendingBranch=f,Xt(g,f)?(l(g,f,d.hiddenContainer,null,o,d,i,r,a),d.deps<=0?d.resolve():v&&(_||(l(y,h,n,s,o,null,i,r,a),rs(d,h)))):(d.pendingId=_r++,_?(d.isHydrating=!1,d.activeBranch=g):u(g,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),v?(l(null,f,d.hiddenContainer,null,o,d,i,r,a),d.deps<=0?d.resolve():(l(y,h,n,s,o,null,i,r,a),rs(d,h))):y&&Xt(y,f)?(l(y,f,n,s,o,d,i,r,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,o,d,i,r,a),d.deps<=0&&d.resolve()));else if(y&&Xt(y,f))l(y,f,n,s,o,d,i,r,a),rs(d,f);else if(Zs(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=_r++,l(null,f,d.hiddenContainer,null,o,d,i,r,a),d.deps<=0)d.resolve();else{const{timeout:w,pendingId:T}=d;w>0?setTimeout(()=>{d.pendingId===T&&d.fallback(h)},w):w===0&&d.fallback(h)}}function zu(e,t,n,s,o,i,r,a,l,u,c=!1){const{p:d,m:f,um:h,n:y,o:{parentNode:g,remove:v}}=u;let _;const w=Ep(e);w&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const T=e.props?Dc(e.props.timeout):void 0,A=i,m={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:o,deps:0,pendingId:_r++,timeout:typeof T=="number"?T:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(k=!1,I=!1){const{vnode:z,activeBranch:F,pendingBranch:B,pendingId:K,effects:U,parentComponent:ae,container:fe,isInFallback:ue}=m;let pe=!1;if(m.isHydrating)m.isHydrating=!1;else if(!k){pe=F&&B.transition&&B.transition.mode==="out-in";let Q=!1;pe&&(F.transition.afterLeave=()=>{K===m.pendingId&&(f(B,fe,i===A&&!Q?y(F):i,0),ur(U),ue&&z.ssFallback&&(z.ssFallback.el=null))}),F&&!m.isFallbackMountPending&&(g(F.el)===fe&&(i=y(F),Q=!0),h(F,ae,m,!0),!pe&&ue&&z.ssFallback&&rt(()=>z.ssFallback.el=null,m)),pe||f(B,fe,i,0)}m.isFallbackMountPending=!1,rs(m,B),m.pendingBranch=null,m.isInFallback=!1;let le=m.parent,me=!1;for(;le;){if(le.pendingBranch){le.effects.push(...U),me=!0;break}le=le.parent}!me&&!pe&&ur(U),m.effects=[],w&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!I&&t.resolve()),Zs(z,"onResolve")},fallback(k){if(!m.pendingBranch)return;const{vnode:I,activeBranch:z,parentComponent:F,container:B,namespace:K}=m;Zs(I,"onFallback");const U=y(z),ae=()=>{m.isFallbackMountPending=!1,m.isInFallback&&(d(null,k,B,U,F,null,K,a,l),rs(m,k))},fe=k.transition&&k.transition.mode==="out-in";fe&&(m.isFallbackMountPending=!0,z.transition.afterLeave=ae),m.isInFallback=!0,h(z,F,null,!0),fe||ae()},move(k,I,z){m.activeBranch&&f(m.activeBranch,k,I,z),m.container=k},next(){return m.activeBranch&&y(m.activeBranch)},registerDep(k,I,z){const F=!!m.pendingBranch;F&&m.deps++;const B=k.vnode.el;k.asyncDep.catch(K=>{ao(K,k,0)}).then(K=>{if(k.isUnmounted||m.isUnmounted||m.pendingId!==k.suspenseId)return;br(),k.asyncResolved=!0;const{vnode:U}=k;wr(k,K),B&&(U.el=B);const ae=!B&&k.subTree.el;I(k,U,g(B||k.subTree.el),B?null:y(k.subTree),m,r,z),ae&&(U.placeholder=null,v(ae)),ea(k,U.el),F&&--m.deps===0&&m.resolve()})},unmount(k,I){m.isUnmounted=!0,m.activeBranch&&h(m.activeBranch,n,k,I),m.pendingBranch&&h(m.pendingBranch,n,k,I)}};return m}function bp(e,t,n,s,o,i,r,a,l){const u=t.suspense=zu(t,s,n,e.parentNode,document.createElement("div"),null,o,i,r,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,r);return u.deps===0&&u.resolve(!1,!0),c}function wp(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=Xa(s?n.default:n),e.ssFallback=s?Xa(n.fallback):E(st)}function Xa(e){let t;if(_e(e)){const n=ls&&e._c;n&&(e._d=!1,O()),e=e(),n&&(e._d=!0,t=wt,qu())}return ve(e)&&(e=np(e)),e=Lt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Sp(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):ur(e)}function rs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,s&&s.subTree===n&&(s.vnode.el=o,ea(s,o))}function Ep(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ie=Symbol.for("v-fgt"),pi=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),No=Symbol.for("v-stc"),qs=[];let wt=null;function O(e=!1){qs.push(wt=e?null:[])}function qu(){qs.pop(),wt=qs[qs.length-1]||null}let ls=1;function Xo(e,t=!1){ls+=e,e<0&&wt&&t&&(wt.hasOnce=!0)}function Wu(e){return e.dynamicChildren=ls>0?wt||ns:null,qu(),ls>0&&wt&&wt.push(e),e}function D(e,t,n,s,o,i){return Wu(p(e,t,n,s,o,i,!0))}function ut(e,t,n,s,o){return Wu(E(e,t,n,s,o,!0))}function cs(e){return e?e.__v_isVNode===!0:!1}function Xt(e,t){return e.type===t.type&&e.key===t.key}const Ku=({key:e})=>e??null,Lo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Me(e)||Ge(e)||_e(e)?{i:xt,r:e,k:t,f:!!n}:e:null);function p(e,t=null,n=null,s=0,o=null,i=e===Ie?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ku(t),ref:t&&Lo(t),scopeId:fu,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:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:xt};return a?(oa(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Me(n)?8:16),ls>0&&!r&&wt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&wt.push(l),l}const E=xp;function xp(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===Au)&&(e=st),cs(e)){const a=xn(e,t,!0);return n&&oa(a,n),ls>0&&!i&&wt&&(a.shapeFlag&6?wt[wt.indexOf(e)]=a:wt.push(a)),a.patchFlag=-2,a}if(Bp(e)&&(e=e.__vccOpts),t){t=Cp(t);let{class:a,style:l}=t;a&&!Me(a)&&(t.class=Ue(a)),Be(l)&&(ui(l)&&!ve(l)&&(l=tt({},l)),t.style=Vn(l))}const r=Me(e)?1:Hu(e)?128:gu(e)?64:Be(e)?4:_e(e)?2:0;return p(e,t,n,s,o,r,i,!0)}function Cp(e){return e?ui(e)||Bu(e)?tt({},e):e:null}function xn(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:r,children:a,transition:l}=e,u=t?_t(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ku(u),ref:t&&t.ref?n&&i?ve(i)?i.concat(Lo(t)):[i,Lo(t)]:Lo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xn(e.ssContent),ssFallback:e.ssFallback&&xn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&Qs(c,l.clone(c)),c}function Ke(e=" ",t=0){return E(pi,null,e,t)}function Ap(e,t){const n=E(No,null,e);return n.staticCount=t,n}function ge(e="",t=!1){return t?(O(),ut(st,null,e)):E(st,null,e)}function Lt(e){return e==null||typeof e=="boolean"?E(st):ve(e)?E(Ie,null,e.slice()):cs(e)?on(e):E(pi,null,String(e))}function on(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xn(e)}function oa(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ve(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),oa(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Bu(t)?t._ctx=xt:o===3&&xt&&(xt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else _e(t)?(t={default:t,_ctx:xt},n=32):(t=String(t),s&64?(n=16,t=[Ke(t)]):n=8);e.children=t,e.shapeFlag|=n}function _t(...e){const t={};for(let n=0;nlt||xt;let Yo,yr;{const e=ri(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};Yo=t("__VUE_INSTANCE_SETTERS__",n=>lt=n),yr=t("__VUE_SSR_SETTERS__",n=>eo=n)}const co=e=>{const t=lt;return Yo(e),e.scope.on(),()=>{e.scope.off(),Yo(t)}},br=()=>{lt&<.scope.off(),Yo(null)};function Gu(e){return e.vnode.shapeFlag&4}let eo=!1;function Ip(e,t=!1,n=!1){t&&yr(t);const{props:s,children:o}=e.vnode,i=Gu(e);rp(e,s,i,t),up(e,o,n||t);const r=i?Pp(e,t):void 0;return t&&yr(!1),r}function Pp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qh);const{setup:s}=n;if(s){un();const o=e.setupContext=s.length>1?$p(e):null,i=co(e),r=ro(s,e,0,[e.props,o]),a=Oc(r);if(dn(),i(),(a||e.sp)&&!Hs(e)&&Su(e),a){if(r.then(br,br),t)return r.then(l=>{wr(e,l)}).catch(l=>{ao(l,e,0)});e.asyncDep=r}else wr(e,r)}else Ju(e)}function wr(e,t,n){_e(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Be(t)&&(e.setupState=au(t)),Ju(e)}function Ju(e,t,n){const s=e.type;e.render||(e.render=s.render||Qt);{const o=co(e);un();try{Wh(e)}finally{dn(),o()}}}const Op={get(e,t){return at(e,"get",""),e[t]}};function $p(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Op),slots:e.slots,emit:e.emit,expose:t}}function mi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(au(Xr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zs)return zs[n](e)},has(t,n){return n in t||n in zs}})):e.proxy}function Fp(e,t=!0){return _e(e)?e.displayName||e.name:e.name||t&&e.__name}function Bp(e){return _e(e)&&"__vccOpts"in e}const G=(e,t)=>wh(e,t,eo);function ia(e,t,n){try{Xo(-1);const s=arguments.length;return s===2?Be(t)&&!ve(t)?cs(t)?E(e,null,[t]):E(e,t):E(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&cs(n)&&(n=[n]),E(e,t,n))}finally{Xo(1)}}const Dp="3.5.35";/** * @vue/runtime-dom v3.5.35 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Sr;const Ya=typeof window<"u"&&window.trustedTypes;if(Ya)try{Sr=Ya.createPolicy("vue",{createHTML:e=>e})}catch{}const Xu=Sr?e=>Sr.createHTML(e):e=>e,Np="http://www.w3.org/2000/svg",Lp="http://www.w3.org/1998/Math/MathML",sn=typeof document<"u"?document:null,Qa=sn&&sn.createElement("template"),Mp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?sn.createElementNS(Np,e):t==="mathml"?sn.createElementNS(Lp,e):n?sn.createElement(e,{is:n}):sn.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>sn.createTextNode(e),createComment:e=>sn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Qa.innerHTML=Xu(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const a=Qa.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},gn="transition",Cs="animation",to=Symbol("_vtc"),Yu={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},Vp=tt({},vu,Yu),jp=e=>(e.displayName="Transition",e.props=Vp,e),Qo=jp((e,{slots:t})=>ia(Bh,Up(e),t)),Tn=(e,t=[])=>{ve(e)?e.forEach(n=>n(...t)):e&&e(...t)},Za=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Up(e){const t={};for(const U in e)U in Yu||(t[U]=e[U]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=r,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,y=Hp(o),g=y&&y[0],v=y&&y[1],{onBeforeEnter:_,onEnter:w,onEnterCancelled:T,onLeave:A,onLeaveCancelled:m,onBeforeAppear:k=_,onAppear:I=w,onAppearCancelled:z=T}=t,F=(U,ae,fe,ue)=>{U._enterCancelled=ue,Rn(U,ae?c:a),Rn(U,ae?u:r),fe&&fe()},B=(U,ae)=>{U._isLeaving=!1,Rn(U,d),Rn(U,h),Rn(U,f),ae&&ae()},K=U=>(ae,fe)=>{const ue=U?I:w,pe=()=>F(ae,U,fe);Tn(ue,[ae,pe]),el(()=>{Rn(ae,U?l:i),tn(ae,U?c:a),Za(ue)||tl(ae,s,g,pe)})};return tt(t,{onBeforeEnter(U){Tn(_,[U]),tn(U,i),tn(U,r)},onBeforeAppear(U){Tn(k,[U]),tn(U,l),tn(U,u)},onEnter:K(!1),onAppear:K(!0),onLeave(U,ae){U._isLeaving=!0;const fe=()=>B(U,ae);tn(U,d),U._enterCancelled?(tn(U,f),ol(U)):(ol(U),tn(U,f)),el(()=>{U._isLeaving&&(Rn(U,d),tn(U,h),Za(A)||tl(U,s,v,fe))}),Tn(A,[U,fe])},onEnterCancelled(U){F(U,!1,void 0,!0),Tn(T,[U])},onAppearCancelled(U){F(U,!0,void 0,!0),Tn(z,[U])},onLeaveCancelled(U){B(U),Tn(m,[U])}})}function Hp(e){if(e==null)return null;if(Be(e))return[Vi(e.enter),Vi(e.leave)];{const t=Vi(e);return[t,t]}}function Vi(e){return Dc(e)}function tn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[to]||(e[to]=new Set)).add(t)}function Rn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[to];n&&(n.delete(t),n.size||(e[to]=void 0))}function el(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let zp=0;function tl(e,t,n,s){const o=e._endId=++zp,i=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:a,propCount:l}=qp(e,t);if(!r)return s();const u=r+"end";let c=0;const d=()=>{e.removeEventListener(u,f),i()},f=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c(n[y]||"").split(", "),o=s(`${gn}Delay`),i=s(`${gn}Duration`),r=nl(o,i),a=s(`${Cs}Delay`),l=s(`${Cs}Duration`),u=nl(a,l);let c=null,d=0,f=0;t===gn?r>0&&(c=gn,d=r,f=i.length):t===Cs?u>0&&(c=Cs,d=u,f=l.length):(d=Math.max(r,u),c=d>0?r>u?gn:Cs:null,f=c?c===gn?i.length:l.length:0);const h=c===gn&&/\b(?:transform|all)(?:,|$)/.test(s(`${gn}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function nl(e,t){for(;e.lengthsl(n)+sl(e[s])))}function sl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ol(e){return(e?e.ownerDocument:document).body.offsetHeight}function Wp(e,t,n){const s=e[to];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zo=Symbol("_vod"),Qu=Symbol("_vsh"),gi={name:"show",beforeMount(e,{value:t},{transition:n}){e[Zo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):As(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),As(e,!0),s.enter(e)):s.leave(e,()=>{As(e,!1)}):As(e,t))},beforeUnmount(e,{value:t}){As(e,t)}};function As(e,t){e.style.display=t?e[Zo]:"none",e[Qu]=!t}const Kp=Symbol(""),Gp=/(?:^|;)\s*display\s*:/;function Jp(e,t,n){const s=e.style,o=Me(n);let i=!1;if(n&&!o){if(t)if(Me(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&Ls(s,a,"")}else for(const r in t)n[r]==null&&Ls(s,r,"");for(const r in n){r==="display"&&(i=!0);const a=n[r];a!=null?Yp(e,r,!Me(t)&&t?t[r]:void 0,a)||Ls(s,r,a):Ls(s,r,"")}}else if(o){if(t!==n){const r=s[Kp];r&&(n+=";"+r),s.cssText=n,i=Gp.test(n)}}else t&&e.removeAttribute("style");Zo in e&&(e[Zo]=i?s.display:"",e[Qu]&&(s.display="none"))}const il=/\s*!important$/;function Ls(e,t,n){if(ve(n))n.forEach(s=>Ls(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Xp(e,t);il.test(n)?e.setProperty(pn(s),n.replace(il,""),"important"):e[s]=n}}const rl=["Webkit","Moz","ms"],ji={};function Xp(e,t){const n=ji[t];if(n)return n;let s=gt(t);if(s!=="filter"&&s in e)return ji[t]=s;s=ii(s);for(let o=0;oUi||(tm.then(()=>Ui=0),Ui=Date.now());function sm(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(ve(o)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const r=o.slice(),a=[s];for(let l=0;le.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,om=(e,t,n,s,o,i)=>{const r=o==="svg";t==="class"?Wp(e,s,r):t==="style"?Jp(e,n,s):ti(t)?ni(t)||Zp(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):im(e,t,s,r))?(cl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ll(e,t,s,r,i,t!=="value")):e._isVueCE&&(rm(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Me(s)))?cl(e,gt(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),ll(e,t,s,r))};function im(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&fl(t)&&_e(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return fl(t)&&Me(n)?!1:t in e}function rm(e,t){const n=e._def.props;if(!n)return!1;const s=gt(t);return Array.isArray(n)?n.some(o=>gt(o)===s):Object.keys(n).some(o=>gt(o)===s)}const hl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?n=>Bo(t,n):t};function am(e){e.target.composing=!0}function pl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hi=Symbol("_assign");function ml(e,t,n){return t&&(e=e.trim()),n&&(e=Hr(e)),e}const lm={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[Hi]=hl(o);const i=s||o.props&&o.props.type==="number";Qn(e,t?"change":"input",r=>{r.target.composing||e[Hi](ml(e.value,n,i))}),(n||i)&&Qn(e,"change",()=>{e.value=ml(e.value,n,i)}),t||(Qn(e,"compositionstart",am),Qn(e,"compositionend",pl),Qn(e,"change",pl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:i}},r){if(e[Hi]=hl(r),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Hr(e.value):e.value,l=t??"";if(a===l)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===l)||(e.value=l)}},cm=["ctrl","shift","alt","meta"],um={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>cm.some(n=>e[`${n}Key`]&&!t.includes(n))},Nn=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...i)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const i=pn(o.key);if(t.some(r=>r===i||dm[r]===i))return e(o)})},fm=tt({patchProp:om},Mp);let gl;function hm(){return gl||(gl=fp(fm))}const ed=(...e)=>{const t=hm().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=mm(s);if(!o)return;const i=t._component;!_e(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,pm(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function pm(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function mm(e){return Me(e)?document.querySelector(e):e}function Er(){}const ze=Object.assign,vs=typeof window<"u",uo=e=>e!==null&&typeof e=="object",Ye=e=>e!=null,no=e=>typeof e=="function",td=e=>uo(e)&&no(e.then)&&no(e.catch),nd=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),gm=()=>vs?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function vl(e,t){const n=t.split(".");let s=e;return n.forEach(o=>{var i;s=uo(s)&&(i=s[o])!=null?i:""}),s}function hn(e,t,n){return t.reduce((s,o)=>(s[o]=e[o],s),{})}const _l=e=>Array.isArray(e)?e:[e],$t=null,ke=[Number,String],De={type:Boolean,default:!0},Mo=e=>({type:e,required:!0}),sd=e=>({type:Number,default:e}),Mt=e=>({type:ke,default:e}),Oe=e=>({type:String,default:e});var _s=typeof window<"u";function us(e){return _s?requestAnimationFrame(e):-1}function od(e){_s&&cancelAnimationFrame(e)}function es(e){us(()=>us(e))}var vm=e=>e===window,yl=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),Yt=e=>{const t=Ee(e);if(vm(t)){const n=t.innerWidth,s=t.innerHeight;return yl(n,s)}return t!=null&&t.getBoundingClientRect?t.getBoundingClientRect():yl(0,0)};function ys(e){const t=ot(e,null);if(t){const n=Dt(),{link:s,unlink:o,internalChildren:i}=t;s(n),Cn(()=>o(n));const r=G(()=>i.indexOf(n));return{parent:t,index:r}}return{parent:null,index:M(-1)}}function _m(e){const t=[],n=s=>{Array.isArray(s)&&s.forEach(o=>{var i;cs(o)&&(t.push(o),(i=o.component)!=null&&i.subTree&&(t.push(o.component.subTree),n(o.component.subTree.children)),o.children&&n(o.children))})};return n(e),t}var bl=(e,t)=>{const n=e.indexOf(t);return n===-1?e.findIndex(s=>t.key!==void 0&&t.key!==null&&s.type===t.type&&s.key===t.key):n};function ym(e,t,n){const s=_m(e.subTree.children);n.sort((i,r)=>bl(s,i.vnode)-bl(s,r.vnode));const o=n.map(i=>i.proxy);t.sort((i,r)=>{const a=o.indexOf(i),l=o.indexOf(r);return a-l})}function vi(e){const t=it([]),n=it([]),s=Dt();return{children:t,linkChildren:i=>{Zt(e,Object.assign({link:l=>{l.proxy&&(n.push(l),t.push(l.proxy),ym(s,t,n))},unlink:l=>{const u=n.indexOf(l);t.splice(u,1),n.splice(u,1)},children:t,internalChildren:n},i))}}}function _i(e){let t;nt(()=>{e(),We(()=>{t=!0})}),ms(()=>{t&&e()})}function Un(e,t,n={}){if(!_s)return;const{target:s=window,passive:o=!1,capture:i=!1}=n;let r=!1,a;const l=d=>{if(r)return;const f=Ee(d);f&&!a&&(f.addEventListener(e,t,{capture:i,passive:o}),a=!0)},u=d=>{if(r)return;const f=Ee(d);f&&a&&(f.removeEventListener(e,t,i),a=!1)};Cn(()=>u(s)),jn(()=>u(s)),_i(()=>l(s));let c;return Ge(s)&&(c=be(s,(d,f)=>{u(f),l(d)})),()=>{c==null||c(),u(s),r=!0}}var xo,zi;function bm(){if(!xo&&(xo=M(0),zi=M(0),_s)){const e=()=>{xo.value=window.innerWidth,zi.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:xo,height:zi}}var wm=/scroll|auto|overlay/i,id=_s?window:void 0;function Sm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function rd(e,t=id){let n=e;for(;n&&n!==t&&Sm(n);){const{overflowY:s}=window.getComputedStyle(n);if(wm.test(s))return n;n=n.parentNode}return t}function ad(e,t=id){const n=M();return nt(()=>{e.value&&(n.value=rd(e.value,t))}),n}var Co;function Em(){if(!Co&&(Co=M("visible"),_s)){const e=()=>{Co.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return Co}var ld=Symbol("van-field");function cd(e){const t=ot(ld,null);t&&!t.customValue.value&&(t.customValue.value=e,be(e,()=>{t.resetValidation(),t.validateWithTrigger("onChange")}))}function ra(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function xr(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function aa(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function la(e){xr(window,e),xr(document.body,e)}function wl(e,t){if(e===window)return 0;const n=t?ra(t):aa();return Yt(e).top+n}const xm=gm();function Cm(){xm&&la(aa())}const Am=e=>e.stopPropagation();function cn(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Am(e)}function so(e){const t=Ee(e);if(!t)return!1;const n=window.getComputedStyle(t),s=n.display==="none",o=t.offsetParent===null&&n.position!=="fixed";return s||o}const{width:fo,height:yi}=bm();function Qe(e){if(Ye(e))return nd(e)?`${e}px`:String(e)}function ud(e){if(Ye(e)){if(Array.isArray(e))return{width:Qe(e[0]),height:Qe(e[1])};const t=Qe(e);return{width:t,height:t}}}function dd(e){const t={};return e!==void 0&&(t.zIndex=+e),t}let qi;function km(){if(!qi){const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;qi=parseFloat(t)}return qi}function Tm(e){return e=e.replace(/rem/g,""),+e*km()}function Rm(e){return e=e.replace(/vw/g,""),+e*fo.value/100}function Im(e){return e=e.replace(/vh/g,""),+e*yi.value/100}function fd(e){if(typeof e=="number")return e;if(vs){if(e.includes("rem"))return Tm(e);if(e.includes("vw"))return Rm(e);if(e.includes("vh"))return Im(e)}return parseFloat(e)}const Pm=/-(\w)/g,hd=e=>e.replace(Pm,(t,n)=>n.toUpperCase()),Om=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),Vo=(e,t,n)=>Math.min(Math.max(e,t),n);function Sl(e,t,n){const s=e.indexOf(t);return s===-1?e:t==="-"&&s!==0?e.slice(0,s):e.slice(0,s+1)+e.slice(s).replace(n,"")}function $m(e,t=!0,n=!0){t?e=Sl(e,".",/\./g):e=e.split(".")[0],n?e=Sl(e,"-",/-/g):e=e.replace(/-/,"");const s=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(s,"")}const{hasOwnProperty:Fm}=Object.prototype;function Bm(e,t,n){const s=t[n];Ye(s)&&(!Fm.call(e,n)||!uo(s)?e[n]=s:e[n]=pd(Object(e[n]),s))}function pd(e,t){return Object.keys(t).forEach(n=>{Bm(e,t,n)}),e}var Dm={name:"姓名",tel:"电话",save:"保存",clear:"清空",undo:"撤销",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const El=M("zh-CN"),xl=it({"zh-CN":Dm}),Nm={messages(){return xl[El.value]},use(e,t){El.value=e,this.add({[e]:t})},add(e={}){pd(xl,e)}};var Lm=Nm;function Mm(e){const t=hd(e)+".";return(n,...s)=>{const o=Lm.messages(),i=vl(o,t+n)||vl(o,n);return no(i)?i(...s):i}}function Cr(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,s)=>n+Cr(e,s),""):Object.keys(t).reduce((n,s)=>n+(t[s]?Cr(e,s):""),""):""}function Vm(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${Cr(t,n)}`)}function Ve(e){const t=`van-${e}`;return[t,Vm(t),Mm(t)]}const ho="van-hairline",jm=`${ho}--top`,Um=`${ho}--left`,uC=`${ho}--bottom`,Hm=`${ho}--surround`,md=`${ho}--top-bottom`,zm="van-haptics-feedback",qm=Symbol("van-form"),Cl=5;function ca(e,{args:t=[],done:n,canceled:s,error:o}){if(e){const i=e.apply(null,t);td(i)?i.then(r=>{r?n():s&&s()}).catch(o||Er):i?n():s&&s()}else n()}function qe(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(hd(`-${n}`),e))},e}const gd=Symbol();function ua(e){const t=ot(gd,null);t&&be(t,n=>{n&&e()})}const Wm=(e,t)=>{const n=M(),s=()=>{n.value=Yt(e).height};return nt(()=>{We(s);for(let o=1;o<=3;o++)setTimeout(s,100*o)}),ua(()=>We(s)),be([fo,yi],s),n};function Km(e,t){const n=Wm(e);return s=>E("div",{class:t("placeholder"),style:{height:n.value?`${n.value}px`:void 0}},[s()])}const[vd,Al]=Ve("action-bar"),_d=Symbol(vd),Gm={placeholder:Boolean,safeAreaInsetBottom:De};var Jm=we({name:vd,props:Gm,setup(e,{slots:t}){const n=M(),s=Km(n,Al),{linkChildren:o}=vi(_d);o();const i=()=>{var r;return E("div",{ref:n,class:[Al(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[(r=t.default)==null?void 0:r.call(t)])};return()=>e.placeholder?s(i):i()}});const Xm=qe(Jm);function kt(e){const t=Dt();t&&ze(t.proxy,e)}const bi={to:[String,Object],url:String,replace:Boolean};function yd({to:e,url:t,replace:n,$router:s}){e&&s?s[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function da(){const e=Dt().proxy;return()=>yd(e)}const[Ym,kl]=Ve("badge"),Qm={dot:Boolean,max:ke,tag:Oe("div"),color:String,offset:Array,content:ke,showZero:De,position:Oe("top-right")};var Zm=we({name:Ym,props:Qm,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:a,showZero:l}=e;return Ye(a)&&a!==""&&(l||a!==0&&a!=="0")},s=()=>{const{dot:a,max:l,content:u}=e;if(!a&&n())return t.content?t.content():Ye(l)&&nd(u)&&+u>+l?`${l}+`:u},o=a=>a.startsWith("-")?a.replace("-",""):`-${a}`,i=G(()=>{const a={background:e.color};if(e.offset){const[l,u]=e.offset,{position:c}=e,[d,f]=c.split("-");t.default?(typeof u=="number"?a[d]=Qe(d==="top"?u:-u):a[d]=d==="top"?Qe(u):o(u),typeof l=="number"?a[f]=Qe(f==="left"?l:-l):a[f]=f==="left"?Qe(l):o(l)):(a.marginTop=Qe(u),a.marginLeft=Qe(l))}return a}),r=()=>{if(n()||e.dot)return E("div",{class:kl([e.position,{dot:e.dot,fixed:!!t.default}]),style:i.value},[s()])};return()=>{if(t.default){const{tag:a}=e;return E(a,{class:kl("wrapper")},{default:()=>[t.default(),r()]})}return r()}}});const bd=qe(Zm);let wd=2e3;const eg=()=>++wd,tg=e=>{wd=e},[Sd,ng]=Ve("config-provider"),Ed=Symbol(Sd),sg={tag:Oe("div"),theme:Oe("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:Oe("local"),iconPrefix:String};function og(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function ig(e){const t={};return Object.keys(e).forEach(n=>{const s=og(Om(n));t[`--van-${s}`]=e[n]}),t}function Ao(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}var rg=we({name:Sd,props:sg,setup(e,{slots:t}){const n=G(()=>ig(ze({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(vs){const s=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},o=(i=e.theme)=>{document.documentElement.classList.remove(`van-theme-${i}`)};be(()=>e.theme,(i,r)=>{r&&o(r),s()},{immediate:!0}),ms(s),jn(o),gs(o),be(n,(i,r)=>{e.themeVarsScope==="global"&&Ao(i,r)}),be(()=>e.themeVarsScope,(i,r)=>{r==="global"&&Ao({},n.value),i==="global"&&Ao(n.value,{})}),e.themeVarsScope==="global"&&Ao(n.value,{})}return Zt(Ed,e),hu(()=>{e.zIndex!==void 0&&tg(e.zIndex)}),()=>E(e.tag,{class:ng(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var s;return[(s=t.default)==null?void 0:s.call(t)]}})}});const[ag,Tl]=Ve("icon"),lg=e=>e==null?void 0:e.includes("/"),cg={dot:Boolean,tag:Oe("i"),name:String,size:ke,badge:ke,color:String,badgeProps:Object,classPrefix:String};var ug=we({name:ag,props:cg,setup(e,{slots:t}){const n=ot(Ed,null),s=G(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||Tl());return()=>{const{tag:o,dot:i,name:r,size:a,badge:l,color:u}=e,c=lg(r);return E(bd,_t({dot:i,tag:o,class:[s.value,c?"":`${s.value}-${r}`],style:{color:u,fontSize:Qe(a)},content:l},e.badgeProps),{default:()=>{var d;return[(d=t.default)==null?void 0:d.call(t),c&&E("img",{class:Tl("image"),src:r},null)]}})}}});const At=qe(ug),[dg,Ws]=Ve("loading"),fg=Array(12).fill(null).map((e,t)=>E("i",{class:Ws("line",String(t+1))},null)),hg=E("svg",{class:Ws("circular"),viewBox:"25 25 50 50"},[E("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),pg={size:ke,type:Oe("circular"),color:String,vertical:Boolean,textSize:ke,textColor:String};var mg=we({name:dg,props:pg,setup(e,{slots:t}){const n=G(()=>ze({color:e.color},ud(e.size))),s=()=>{const i=e.type==="spinner"?fg:hg;return E("span",{class:Ws("spinner",e.type),style:n.value},[t.icon?t.icon():i])},o=()=>{var i;if(t.default)return E("span",{class:Ws("text"),style:{fontSize:Qe(e.textSize),color:(i=e.textColor)!=null?i:e.color}},[t.default()])};return()=>{const{type:i,vertical:r}=e;return E("div",{class:Ws([i,{vertical:r}]),"aria-live":"polite","aria-busy":!0},[s(),o()])}}});const bs=qe(mg),[gg,qn]=Ve("button"),vg=ze({},bi,{tag:Oe("button"),text:String,icon:String,type:Oe("default"),size:Oe("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:Oe("button"),loadingSize:ke,loadingText:String,loadingType:String,iconPosition:Oe("left")});var _g=we({name:gg,props:vg,emits:["click"],setup(e,{emit:t,slots:n}){const s=da(),o=()=>n.loading?n.loading():E(bs,{size:e.loadingSize,type:e.loadingType,class:qn("loading")},null),i=()=>{if(e.loading)return o();if(n.icon)return E("div",{class:qn("icon")},[n.icon()]);if(e.icon)return E(At,{name:e.icon,class:qn("icon"),classPrefix:e.iconPrefix},null)},r=()=>{let u;if(e.loading?u=e.loadingText:u=n.default?n.default():e.text,u)return E("span",{class:qn("text")},[u])},a=()=>{const{color:u,plain:c}=e;if(u){const d={color:c?u:"white"};return c||(d.background=u),u.includes("gradient")?d.border=0:d.borderColor=u,d}},l=u=>{e.loading?cn(u):e.disabled||(t("click",u),s())};return()=>{const{tag:u,type:c,size:d,block:f,round:h,plain:y,square:g,loading:v,disabled:_,hairline:w,nativeType:T,iconPosition:A}=e,m=[qn([c,d,{plain:y,block:f,round:h,square:g,loading:v,disabled:_,hairline:w}]),{[Hm]:w}];return E(u,{type:T,class:m,style:a(),disabled:_,onClick:l},{default:()=>[E("div",{class:qn("content")},[A==="left"&&i(),r(),A==="right"&&i()])]})}}});const ds=qe(_g),[yg,bg]=Ve("action-bar-button"),wg=ze({},bi,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var Sg=we({name:yg,props:wg,setup(e,{slots:t}){const n=da(),{parent:s,index:o}=ys(_d),i=G(()=>{if(s){const a=s.children[o.value-1];return!(a&&"isButton"in a)}}),r=G(()=>{if(s){const a=s.children[o.value+1];return!(a&&"isButton"in a)}});return kt({isButton:!0}),()=>{const{type:a,icon:l,text:u,color:c,loading:d,disabled:f}=e;return E(ds,{class:bg([a,{last:r.value,first:i.value}]),size:"large",type:a,icon:l,color:c,loading:d,disabled:f,onClick:n},{default:()=>[t.default?t.default():u]})}}});const Rl=qe(Sg),fa={show:Boolean,zIndex:ke,overlay:De,duration:ke,teleport:[String,Object],lockScroll:De,lazyRender:De,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:$t,transitionAppear:Boolean,closeOnClickOverlay:De},Eg=Object.keys(fa);function xg(e,t){return e>t?"horizontal":t>e?"vertical":""}function ha(){const e=M(0),t=M(0),n=M(0),s=M(0),o=M(0),i=M(0),r=M(""),a=M(!0),l=()=>r.value==="vertical",u=()=>r.value==="horizontal",c=()=>{n.value=0,s.value=0,o.value=0,i.value=0,r.value="",a.value=!0};return{move:h=>{const y=h.touches[0];n.value=(y.clientX<0?0:y.clientX)-e.value,s.value=y.clientY-t.value,o.value=Math.abs(n.value),i.value=Math.abs(s.value);const g=10;(!r.value||o.valueCl||i.value>Cl)&&(a.value=!1)},start:h=>{c(),e.value=h.touches[0].clientX,t.value=h.touches[0].clientY},reset:c,startX:e,startY:t,deltaX:n,deltaY:s,offsetX:o,offsetY:i,direction:r,isVertical:l,isHorizontal:u,isTap:a}}let ks=0;const Il="van-overflow-hidden";function Cg(e,t){const n=ha(),s="01",o="10",i=c=>{n.move(c);const d=n.deltaY.value>0?o:s,f=rd(c.target,e.value),{scrollHeight:h,offsetHeight:y,scrollTop:g}=f;let v="11";g===0?v=y>=h?"00":"01":g+y>=h&&(v="10"),v!=="11"&&n.isVertical()&&!(parseInt(v,2)&parseInt(d,2))&&cn(c,!0)},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",i,{passive:!1}),ks||document.body.classList.add(Il),ks++},a=()=>{ks&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",i),ks--,ks||document.body.classList.remove(Il))},l=()=>t()&&r(),u=()=>t()&&a();_i(l),jn(u),gs(u),be(t,c=>{c?r():a()})}function pa(e){const t=M(!1);return be(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Pl=()=>{var e;const{scopeId:t}=((e=Dt())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[Ag,kg]=Ve("overlay"),Tg={show:Boolean,zIndex:ke,duration:ke,className:$t,lockScroll:De,lazyRender:De,customStyle:Object,teleport:[String,Object]};var Rg=we({name:Ag,inheritAttrs:!1,props:Tg,setup(e,{attrs:t,slots:n}){const s=M(),o=pa(()=>e.show||!e.lazyRender),i=a=>{e.lockScroll&&cn(a,!0)},r=o(()=>{var a;const l=ze(dd(e.zIndex),e.customStyle);return Ye(e.duration)&&(l.animationDuration=`${e.duration}s`),lo(E("div",_t({ref:s,style:l,class:[kg(),e.className]},t),[(a=n.default)==null?void 0:a.call(n)]),[[gi,e.show]])});return Un("touchmove",i,{target:s}),()=>{const a=E(Qo,{name:"van-fade",appear:!0},{default:r});return e.teleport?E(Zr,{to:e.teleport},{default:()=>[a]}):a}}});const Ig=qe(Rg),Pg=ze({},fa,{round:Boolean,position:Oe("center"),closeIcon:Oe("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:Oe("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[Og,Ol]=Ve("popup");var $g=we({name:Og,inheritAttrs:!1,props:Pg,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:s}){let o,i;const r=M(),a=M(),l=pa(()=>e.show||!e.lazyRender),u=G(()=>{const k={zIndex:r.value};if(Ye(e.duration)){const I=e.position==="center"?"animationDuration":"transitionDuration";k[I]=`${e.duration}s`}return k}),c=()=>{o||(o=!0,r.value=e.zIndex!==void 0?+e.zIndex:eg(),t("open"))},d=()=>{o&&ca(e.beforeClose,{done(){o=!1,t("close"),t("update:show",!1)}})},f=k=>{t("clickOverlay",k),e.closeOnClickOverlay&&d()},h=()=>{if(e.overlay){const k=ze({show:e.show,class:e.overlayClass,zIndex:r.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return E(Ig,_t(k,Pl(),{onClick:f}),{default:s["overlay-content"]})}},y=k=>{t("clickCloseIcon",k),d()},g=()=>{if(e.closeable)return E(At,{role:"button",tabindex:0,name:e.closeIcon,class:[Ol("close-icon",e.closeIconPosition),zm],classPrefix:e.iconPrefix,onClick:y},null)};let v;const _=()=>{v&&clearTimeout(v),v=setTimeout(()=>{t("opened")})},w=()=>t("closed"),T=k=>t("keydown",k),A=l(()=>{var k;const{destroyOnClose:I,round:z,position:F,safeAreaInsetTop:B,safeAreaInsetBottom:K,show:U}=e;if(!(!U&&I))return lo(E("div",_t({ref:a,style:u.value,role:"dialog",tabindex:0,class:[Ol({round:z,[F]:F}),{"van-safe-area-top":B,"van-safe-area-bottom":K}],onKeydown:T},n,Pl()),[(k=s.default)==null?void 0:k.call(s),g()]),[[gi,U]])}),m=()=>{const{position:k,transition:I,transitionAppear:z}=e,F=k==="center"?"van-fade":`van-popup-slide-${k}`;return E(Qo,{name:I||F,appear:z,onAfterEnter:_,onAfterLeave:w},{default:A})};return be(()=>e.show,k=>{k&&!o&&(c(),n.tabindex===0&&We(()=>{var I;(I=a.value)==null||I.focus()})),!k&&o&&(o=!1,t("close"))}),kt({popupRef:a}),Cg(a,()=>e.show&&e.lockScroll),Un("popstate",()=>{e.closeOnPopstate&&(d(),i=!1)}),nt(()=>{e.show&&c()}),ms(()=>{i&&(t("update:show",!0),i=!1)}),jn(()=>{e.show&&e.teleport&&(d(),i=!0)}),Zt(gd,()=>e.show),()=>e.teleport?E(Zr,{to:e.teleport},{default:()=>[h(),m()]}):E(Ie,null,[h(),m()])}});const Hn=qe($g);function Fg(e,t,n){let s,o=0;const i=e.scrollLeft,r=n===0?1:Math.round(n*1e3/16);let a=i;function l(){od(s)}function u(){a+=(t-i)/r,e.scrollLeft=a,++ot||!r&&it?o=us(c):s&&(o=us(s))}return c(),u}let Dg=0;function po(){const e=Dt(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return`${t}-${++Dg}`}function xd(){const e=M([]),t=[];return xu(()=>{e.value=[]}),[e,s=>(t[s]||(t[s]=o=>{e.value[s]=o}),t[s])]}function Cd(e,t){if(!vs||!window.IntersectionObserver)return;const n=new IntersectionObserver(i=>{t(i[0].intersectionRatio>0)},{root:document.body}),s=()=>{e.value&&n.observe(e.value)},o=()=>{e.value&&n.unobserve(e.value)};jn(o),gs(o),_i(s)}const[Ng,Lg]=Ve("sticky"),Mg={zIndex:ke,position:Oe("top"),container:Object,offsetTop:Mt(0),offsetBottom:Mt(0)};var Vg=we({name:Ng,props:Mg,emits:["scroll","change"],setup(e,{emit:t,slots:n}){const s=M(),o=ad(s),i=it({fixed:!1,width:0,height:0,transform:0}),r=M(!1),a=G(()=>fd(e.position==="top"?e.offsetTop:e.offsetBottom)),l=G(()=>{if(r.value)return;const{fixed:f,height:h,width:y}=i;if(f)return{width:`${y}px`,height:`${h}px`}}),u=G(()=>{if(!i.fixed||r.value)return;const f=ze(dd(e.zIndex),{width:`${i.width}px`,height:`${i.height}px`,[e.position]:`${a.value}px`});return i.transform&&(f.transform=`translate3d(0, ${i.transform}px, 0)`),f}),c=f=>t("scroll",{scrollTop:f,isFixed:i.fixed}),d=()=>{if(!s.value||so(s))return;const{container:f,position:h}=e,y=Yt(s),g=ra(window);if(i.width=y.width,i.height=y.height,h==="top")if(f){const v=Yt(f),_=v.bottom-a.value-i.height;i.fixed=a.value>y.top&&v.bottom>0,i.transform=_<0?_:0}else i.fixed=a.value>y.top;else{const{clientHeight:v}=document.documentElement;if(f){const _=Yt(f),w=v-_.top-a.value-i.height;i.fixed=v-a.value_.top,i.transform=w<0?-w:0}else i.fixed=v-a.valuei.fixed,f=>t("change",f)),Un("scroll",d,{target:o,passive:!0}),Cd(s,d),be([fo,yi],()=>{!s.value||so(s)||!i.fixed||(r.value=!0,We(()=>{const f=Yt(s);i.width=f.width,i.height=f.height,r.value=!1}))}),()=>{var f;return E("div",{ref:s,style:l.value},[E("div",{class:Lg({fixed:i.fixed&&!r.value}),style:u.value},[(f=n.default)==null?void 0:f.call(n)])])}}});const jg=qe(Vg),[Ad,ko]=Ve("swipe"),Ug={loop:De,width:ke,height:ke,vertical:Boolean,autoplay:Mt(0),duration:Mt(500),touchable:De,lazyRender:Boolean,initialSwipe:Mt(0),indicatorColor:String,showIndicators:De,stopPropagation:De},kd=Symbol(Ad);var Hg=we({name:Ad,props:Ug,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:n}){const s=M(),o=M(),i=it({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let r=!1;const a=ha(),{children:l,linkChildren:u}=vi(kd),c=G(()=>l.length),d=G(()=>i[e.vertical?"height":"width"]),f=G(()=>e.vertical?a.deltaY.value:a.deltaX.value),h=G(()=>i.rect?(e.vertical?i.rect.height:i.rect.width)-d.value*c.value:0),y=G(()=>d.value?Math.ceil(Math.abs(h.value)/d.value):c.value),g=G(()=>c.value*d.value),v=G(()=>(i.active+c.value)%c.value),_=G(()=>{const X=e.vertical?"vertical":"horizontal";return a.direction.value===X}),w=G(()=>{const X={transitionDuration:`${i.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+i.offset.toFixed(2)}px)`};if(d.value){const q=e.vertical?"height":"width",Y=e.vertical?"width":"height";X[q]=`${g.value}px`,X[Y]=e[Y]?`${e[Y]}px`:""}return X}),T=X=>{const{active:q}=i;return X?e.loop?Vo(q+X,-1,c.value):Vo(q+X,0,y.value):q},A=(X,q=0)=>{let Y=X*d.value;e.loop||(Y=Math.min(Y,-h.value));let ye=q-Y;return e.loop||(ye=Vo(ye,h.value,0)),ye},m=({pace:X=0,offset:q=0,emitChange:Y})=>{if(c.value<=1)return;const{active:ye}=i,te=T(X),he=A(te,q);if(e.loop){if(l[0]&&he!==h.value){const S=he0;l[c.value-1].setOffset(S?-g.value:0)}}i.active=te,i.offset=he,Y&&te!==ye&&t("change",v.value)},k=()=>{i.swiping=!0,i.active<=-1?m({pace:c.value}):i.active>=c.value&&m({pace:-c.value})},I=()=>{k(),a.reset(),es(()=>{i.swiping=!1,m({pace:-1,emitChange:!0})})},z=()=>{k(),a.reset(),es(()=>{i.swiping=!1,m({pace:1,emitChange:!0})})};let F;const B=()=>clearTimeout(F),K=()=>{B(),+e.autoplay>0&&c.value>1&&(F=setTimeout(()=>{z(),K()},+e.autoplay))},U=(X=+e.initialSwipe)=>{if(!s.value)return;const q=()=>{var Y,ye;if(!so(s)){const te={width:s.value.offsetWidth,height:s.value.offsetHeight};i.rect=te,i.width=+((Y=e.width)!=null?Y:te.width),i.height=+((ye=e.height)!=null?ye:te.height)}c.value&&(X=Math.min(c.value-1,X),X===-1&&(X=c.value-1)),i.active=X,i.swiping=!0,i.offset=A(X),l.forEach(te=>{te.setOffset(0)}),K()};so(s)?We().then(q):q()},ae=()=>U(i.active);let fe;const ue=X=>{!e.touchable||X.touches.length>1||(a.start(X),r=!1,fe=Date.now(),B(),k())},pe=X=>{e.touchable&&i.swiping&&(a.move(X),_.value&&(!e.loop&&(i.active===0&&f.value>0||i.active===c.value-1&&f.value<0)||(cn(X,e.stopPropagation),m({offset:f.value}),r||(t("dragStart",{index:v.value}),r=!0))))},le=()=>{if(!e.touchable||!i.swiping)return;const X=Date.now()-fe,q=f.value/X;if((Math.abs(q)>.25||Math.abs(f.value)>d.value/2)&&_.value){const ye=e.vertical?a.offsetY.value:a.offsetX.value;let te=0;e.loop?te=ye>0?f.value>0?-1:1:0:te=-Math[f.value>0?"ceil":"floor"](f.value/d.value),m({pace:te,emitChange:!0})}else f.value&&m({pace:0});r=!1,i.swiping=!1,t("dragEnd",{index:v.value}),K()},me=(X,q={})=>{k(),a.reset(),es(()=>{let Y;e.loop&&X===c.value?Y=i.active===0?0:X:Y=X%c.value,q.immediate?es(()=>{i.swiping=!1}):i.swiping=!1,m({pace:Y-i.active,emitChange:!0})})},Q=(X,q)=>{const Y=q===v.value,ye=Y?{backgroundColor:e.indicatorColor}:void 0;return E("i",{style:ye,class:ko("indicator",{active:Y})},null)},ee=()=>{if(n.indicator)return n.indicator({active:v.value,total:c.value});if(e.showIndicators&&c.value>1)return E("div",{class:ko("indicators",{vertical:e.vertical})},[Array(c.value).fill("").map(Q)])};return kt({prev:I,next:z,state:i,resize:ae,swipeTo:me}),u({size:d,props:e,count:c,activeIndicator:v}),be(()=>e.initialSwipe,X=>U(+X)),be(c,()=>U(i.active)),be(()=>e.autoplay,K),be([fo,yi,()=>e.width,()=>e.height],ae),be(Em(),X=>{X==="visible"?K():B()}),nt(U),ms(()=>U(i.active)),ua(()=>U(i.active)),jn(B),gs(B),Un("touchmove",pe,{target:o}),()=>{var X;return E("div",{ref:s,class:ko()},[E("div",{ref:o,style:w.value,class:ko("track",{vertical:e.vertical}),onTouchstartPassive:ue,onTouchend:le,onTouchcancel:le},[(X=n.default)==null?void 0:X.call(n)]),ee()])}}});const zg=qe(Hg),[qg,$l]=Ve("tabs");var Wg=we({name:qg,props:{count:Mo(Number),inited:Boolean,animated:Boolean,duration:Mo(ke),swipeable:Boolean,lazyRender:Boolean,currentIndex:Mo(Number)},emits:["change"],setup(e,{emit:t,slots:n}){const s=M(),o=a=>t("change",a),i=()=>{var a;const l=(a=n.default)==null?void 0:a.call(n);return e.animated||e.swipeable?E(zg,{ref:s,loop:!1,class:$l("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:o},{default:()=>[l]}):l},r=a=>{const l=s.value;l&&l.state.active!==a&&l.swipeTo(a,{immediate:!e.inited})};return be(()=>e.currentIndex,r),nt(()=>{r(e.currentIndex)}),kt({swipeRef:s}),()=>E("div",{class:$l("content",{animated:e.animated||e.swipeable})},[i()])}});const[Td,To]=Ve("tabs"),Kg={type:Oe("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:Mt(0),duration:Mt(.3),animated:Boolean,ellipsis:De,swipeable:Boolean,scrollspy:Boolean,offsetTop:Mt(0),background:String,lazyRender:De,showHeader:De,lineWidth:ke,lineHeight:ke,beforeChange:Function,swipeThreshold:Mt(5),titleActiveColor:String,titleInactiveColor:String},Rd=Symbol(Td);var Gg=we({name:Td,props:Kg,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:t,slots:n}){let s,o,i,r,a;const l=M(),u=M(),c=M(),d=M(),f=po(),h=ad(l),[y,g]=xd(),{children:v,linkChildren:_}=vi(Rd),w=it({inited:!1,position:"",lineStyle:{},currentIndex:-1}),T=G(()=>v.length>+e.swipeThreshold||!e.ellipsis||e.shrink),A=G(()=>({borderColor:e.color,background:e.background})),m=(te,he)=>{var S;return(S=te.name)!=null?S:he},k=G(()=>{const te=v[w.currentIndex];if(te)return m(te,w.currentIndex)}),I=G(()=>fd(e.offsetTop)),z=G(()=>e.sticky?I.value+s:0),F=te=>{const he=u.value,S=y.value;if(!T.value||!he||!S||!S[w.currentIndex])return;const $=S[w.currentIndex].$el,V=$.offsetLeft-(he.offsetWidth-$.offsetWidth)/2;r&&r(),r=Fg(he,V,te?0:+e.duration)},B=()=>{const te=w.inited;We(()=>{const he=y.value;if(!he||!he[w.currentIndex]||e.type!=="line"||so(l.value))return;const S=he[w.currentIndex].$el,{lineWidth:$,lineHeight:V}=e,Z=S.offsetLeft+S.offsetWidth/2,ce={width:Qe($),backgroundColor:e.color,transform:`translateX(${Z}px) translateX(-50%)`};if(te&&(ce.transitionDuration=`${e.duration}s`),Ye(V)){const b=Qe(V);ce.height=b,ce.borderRadius=b}w.lineStyle=ce})},K=te=>{const he=te=0&&te{const S=K(te);if(!Ye(S))return;const $=v[S],V=m($,S),Z=w.currentIndex!==null;w.currentIndex!==S&&(w.currentIndex=S,he||F(),B()),V!==e.active&&(t("update:active",V),Z&&t("change",V,$.title)),i&&!e.scrollspy&&la(Math.ceil(wl(l.value)-I.value))},ae=(te,he)=>{const S=v.findIndex(($,V)=>m($,V)===te);U(S===-1?0:S,he)},fe=(te=!1)=>{if(e.scrollspy){const he=v[w.currentIndex].$el;if(he&&h.value){const S=wl(he,h.value)-z.value;o=!0,a&&a(),a=Bg(h.value,S,te?0:+e.duration,()=>{o=!1})}}},ue=(te,he,S)=>{const{title:$,disabled:V}=v[he],Z=m(v[he],he);V||(ca(e.beforeChange,{args:[Z],done:()=>{U(he),fe()}}),yd(te)),t("clickTab",{name:Z,title:$,event:S,disabled:V})},pe=te=>{i=te.isFixed,t("scroll",te)},le=te=>{We(()=>{ae(te),fe(!0)})},me=()=>{for(let te=0;tez.value)return te===0?0:te-1}return v.length-1},Q=()=>{if(e.scrollspy&&!o){const te=me();U(te)}},ee=()=>{if(e.type==="line"&&v.length)return E("div",{class:To("line"),style:w.lineStyle},null)},X=()=>{var te,he,S;const{type:$,border:V,sticky:Z}=e,ce=[E("div",{ref:Z?void 0:c,class:[To("wrap"),{[md]:$==="line"&&V}]},[E("div",{ref:u,role:"tablist",class:To("nav",[$,{shrink:e.shrink,complete:T.value}]),style:A.value,"aria-orientation":"horizontal"},[(te=n["nav-left"])==null?void 0:te.call(n),v.map(b=>b.renderTitle(ue)),ee(),(he=n["nav-right"])==null?void 0:he.call(n)])]),(S=n["nav-bottom"])==null?void 0:S.call(n)];return Z?E("div",{ref:c},[ce]):ce},q=()=>{B(),We(()=>{var te,he;F(!0),(he=(te=d.value)==null?void 0:te.swipeRef.value)==null||he.resize()})};be(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],B),be(fo,q),be(()=>e.active,te=>{te!==k.value&&ae(te)}),be(()=>v.length,()=>{w.inited&&(ae(e.active),B(),We(()=>{F(!0)}))});const Y=()=>{ae(e.active,!0),We(()=>{w.inited=!0,c.value&&(s=Yt(c.value).height),F(!0)})},ye=(te,he)=>t("rendered",te,he);return kt({resize:q,scrollTo:le}),ms(B),ua(B),_i(Y),Cd(l,B),Un("scroll",Q,{target:h,passive:!0}),_({id:f,props:e,setLine:B,scrollable:T,onRendered:ye,currentName:k,setTitleRefs:g,scrollIntoView:F}),()=>E("div",{ref:l,class:To([e.type])},[e.showHeader?e.sticky?E(jg,{container:l.value,offsetTop:I.value,onScroll:pe},{default:()=>[X()]}):X():null,E(Wg,{ref:d,count:v.length,inited:w.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:w.currentIndex,onChange:U},{default:()=>{var te;return[(te=n.default)==null?void 0:te.call(n)]}})])}});const Jg=Symbol(),Id=Symbol(),Xg=()=>ot(Id,null),Yg=e=>{const t=Xg();Zt(Jg,e),Zt(Id,G(()=>(t==null||t.value)&&e.value))},[Qg,Fl]=Ve("tab"),Zg=we({name:Qg,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:ke,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:De},setup(e,{slots:t}){const n=G(()=>{const o={},{type:i,color:r,disabled:a,isActive:l,activeColor:u,inactiveColor:c}=e;r&&i==="card"&&(o.borderColor=r,a||(l?o.backgroundColor=r:o.color=r));const f=l?u:c;return f&&(o.color=f),o}),s=()=>{const o=E("span",{class:Fl("text",{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||Ye(e.badge)&&e.badge!==""?E(bd,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[o]}):o};return()=>E("div",{id:e.id,role:"tab",class:[Fl([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:n.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls,"data-allow-mismatch":"attribute"},[s()])}}),[ev,tv]=Ve("swipe-item");var nv=we({name:ev,setup(e,{slots:t}){let n;const s=it({offset:0,inited:!1,mounted:!1}),{parent:o,index:i}=ys(kd);if(!o)return;const r=G(()=>{const u={},{vertical:c}=o.props;return o.size.value&&(u[c?"height":"width"]=`${o.size.value}px`),s.offset&&(u.transform=`translate${c?"Y":"X"}(${s.offset}px)`),u}),a=G(()=>{const{loop:u,lazyRender:c}=o.props;if(!c||n)return!0;if(!s.mounted)return!1;const d=o.activeIndicator.value,f=o.count.value-1,h=d===0&&u?f:d-1,y=d===f&&u?0:d+1;return n=i.value===d||i.value===h||i.value===y,n}),l=u=>{s.offset=u};return nt(()=>{We(()=>{s.mounted=!0})}),kt({setOffset:l}),()=>{var u;return E("div",{class:tv(),style:r.value},[a.value?(u=t.default)==null?void 0:u.call(t):null])}}});const sv=qe(nv),[ov,Wi]=Ve("tab"),iv=ze({},bi,{dot:Boolean,name:ke,badge:ke,title:String,disabled:Boolean,titleClass:$t,titleStyle:[String,Object],showZeroBadge:De});var rv=we({name:ov,props:iv,setup(e,{slots:t}){const n=po(),s=M(!1),o=Dt(),{parent:i,index:r}=ys(Rd);if(!i)return;const a=()=>{var y;return(y=e.name)!=null?y:r.value},l=()=>{s.value=!0,i.props.lazyRender&&We(()=>{i.onRendered(a(),e.title)})},u=G(()=>{const y=a()===i.currentName.value;return y&&!s.value&&l(),y}),c=M(""),d=M("");hu(()=>{const{titleClass:y,titleStyle:g}=e;c.value=y?Ue(y):"",d.value=g&&typeof g!="string"?Kf(Vn(g)):g});const f=y=>E(Zg,_t({key:n,id:`${i.id}-${r.value}`,ref:i.setTitleRefs(r.value),style:d.value,class:c.value,isActive:u.value,controls:n,scrollable:i.scrollable.value,activeColor:i.props.titleActiveColor,inactiveColor:i.props.titleInactiveColor,onClick:g=>y(o.proxy,r.value,g)},hn(i.props,["type","color","shrink"]),hn(e,["dot","badge","title","disabled","showZeroBadge"])),{title:t.title}),h=M(!u.value);return be(u,y=>{y?h.value=!1:es(()=>{h.value=!0})}),be(()=>e.title,()=>{i.setLine(),i.scrollIntoView()}),Yg(u),kt({id:n,renderTitle:f}),()=>{var y;const g=`${i.id}-${r.value}`,{animated:v,swipeable:_,scrollspy:w,lazyRender:T}=i.props;if(!t.default&&!v)return;const A=w||u.value;if(v||_)return E(sv,{id:n,role:"tabpanel",class:Wi("panel-wrapper",{inactive:h.value}),tabindex:u.value?0:-1,"aria-hidden":!u.value,"aria-labelledby":g,"data-allow-mismatch":"attribute"},{default:()=>{var I;return[E("div",{class:Wi("panel")},[(I=t.default)==null?void 0:I.call(t)])]}});const k=s.value||w||!T?(y=t.default)==null?void 0:y.call(t):null;return lo(E("div",{id:n,role:"tabpanel",class:Wi("panel"),tabindex:A?0:-1,"aria-labelledby":g,"data-allow-mismatch":"attribute"},[k]),[[gi,A]])}}});const av=qe(rv),lv=qe(Gg),[cv,Wn]=Ve("cell"),wi={tag:Oe("div"),icon:String,size:String,title:ke,value:ke,label:ke,center:Boolean,isLink:Boolean,border:De,iconPrefix:String,valueClass:$t,labelClass:$t,titleClass:$t,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},uv=ze({},wi,bi);var dv=we({name:cv,props:uv,setup(e,{slots:t}){const n=da(),s=()=>{if(t.label||Ye(e.label))return E("div",{class:[Wn("label"),e.labelClass]},[t.label?t.label():e.label])},o=()=>{var l;if(t.title||Ye(e.title)){const u=(l=t.title)==null?void 0:l.call(t);return Array.isArray(u)&&u.length===0?void 0:E("div",{class:[Wn("title"),e.titleClass],style:e.titleStyle},[u||E("span",null,[e.title]),s()])}},i=()=>{const l=t.value||t.default;if(l||Ye(e.value))return E("div",{class:[Wn("value"),e.valueClass]},[l?l():E("span",null,[e.value])])},r=()=>{if(t.icon)return t.icon();if(e.icon)return E(At,{name:e.icon,class:Wn("left-icon"),classPrefix:e.iconPrefix},null)},a=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const l=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return E(At,{name:l,class:Wn("right-icon")},null)}};return()=>{var l;const{tag:u,size:c,center:d,border:f,isLink:h,required:y}=e,g=(l=e.clickable)!=null?l:h,v={center:d,required:!!y,clickable:g,borderless:!f};return c&&(v[c]=!!c),E(u,{class:Wn(v),role:g?"button":void 0,tabindex:g?0:void 0,onClick:n},{default:()=>{var _;return[r(),o(),i(),a(),(_=t.extra)==null?void 0:_.call(t)]}})}}});const Pd=qe(dv);function Od(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function fv(e,t){if(Od(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function hv(e,t){return new Promise(n=>{const s=t.validator(e,t);if(td(s)){s.then(n);return}n(s)})}function Bl(e,t){const{message:n}=t;return no(n)?n(e,t):n||""}function pv({target:e}){e.composing=!0}function Dl({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function mv(e,t){const n=aa();e.style.height="auto";let s=e.scrollHeight;if(uo(t)){const{maxHeight:o,minHeight:i}=t;o!==void 0&&(s=Math.min(s,o)),i!==void 0&&(s=Math.max(s,i))}s&&(e.style.height=`${s}px`,la(n))}function gv(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function Ts(e){return[...e].length}function Ki(e,t){return[...e].slice(0,t).join("")}const[vv,Rt]=Ve("field"),ma={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:ke,max:Number,min:Number,formatter:Function,clearIcon:Oe("clear"),modelValue:Mt(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:Oe("focus"),formatTrigger:Oe("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},_v=ze({},wi,ma,{rows:ke,type:Oe("text"),rules:Array,autosize:[Boolean,Object],labelWidth:ke,labelClass:$t,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var yv=we({name:vv,props:_v,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const s=po(),o=it({status:"unvalidated",focused:!1,validateMessage:""}),i=M(),r=M(),a=M(),{parent:l}=ys(qm),u=()=>{var S;return String((S=e.modelValue)!=null?S:"")},c=S=>{if(Ye(e[S]))return e[S];if(l&&Ye(l.props[S]))return l.props[S]},d=G(()=>{const S=c("readonly");if(e.clearable&&!S){const $=u()!=="",V=e.clearTrigger==="always"||e.clearTrigger==="focus"&&o.focused;return $&&V}return!1}),f=G(()=>a.value&&n.input?a.value():e.modelValue),h=G(()=>{var S;const $=c("required");return $==="auto"?(S=e.rules)==null?void 0:S.some(V=>V.required):$}),y=S=>S.reduce(($,V)=>$.then(()=>{if(o.status==="failed")return;let{value:Z}=f;if(V.formatter&&(Z=V.formatter(Z,V)),!fv(Z,V)){o.status="failed",o.validateMessage=Bl(Z,V);return}if(V.validator)return Od(Z)&&V.validateEmpty===!1?void 0:hv(Z,V).then(ce=>{ce&&typeof ce=="string"?(o.status="failed",o.validateMessage=ce):ce===!1&&(o.status="failed",o.validateMessage=Bl(Z,V))})}),Promise.resolve()),g=()=>{o.status="unvalidated",o.validateMessage=""},v=()=>t("endValidate",{status:o.status,message:o.validateMessage}),_=(S=e.rules)=>new Promise($=>{g(),S?(t("startValidate"),y(S).then(()=>{o.status==="failed"?($({name:e.name,message:o.validateMessage}),v()):(o.status="passed",$(),v())})):$()}),w=S=>{if(l&&e.rules){const{validateTrigger:$}=l.props,V=_l($).includes(S),Z=e.rules.filter(ce=>ce.trigger?_l(ce.trigger).includes(S):V);Z.length&&_(Z)}},T=S=>{var $;const{maxlength:V}=e;if(Ye(V)&&Ts(S)>+V){const Z=u();if(Z&&Ts(Z)===+V)return Z;let ce=($=i.value)==null?void 0:$.selectionEnd;if(o.focused&&ce){const b=[...S],x=b.length-+V;return ce=Ts(S.slice(0,ce)),b.splice(ce-x,x),b.join("")}return Ki(S,+V)}return S},A=(S,$="onChange")=>{var V,Z;const ce=S;S=T(S);const b=ce.length-S.length;if(e.type==="number"||e.type==="digit"){const R=e.type==="number";if(S=$m(S,R,R),$==="onBlur"&&S!==""&&(e.min!==void 0||e.max!==void 0)){const j=Vo(+S,(V=e.min)!=null?V:-1/0,(Z=e.max)!=null?Z:1/0);+S!==j&&(S=j.toString())}}let x=0;if(e.formatter&&$===e.formatTrigger){const{formatter:R,maxlength:j}=e;if(S=R(S),Ye(j)&&Ts(S)>+j&&(S=Ki(S,+j)),i.value&&o.focused){const{selectionEnd:W}=i.value,H=Ki(ce,W);x=R(H).length-H.length}}if(i.value&&i.value.value!==S)if(o.focused){let{selectionStart:R,selectionEnd:j}=i.value;if(i.value.value=S,Ye(R)&&Ye(j)){const W=S.length;b?(R-=b,j-=b):x&&(R+=x,j+=x),i.value.setSelectionRange(Math.min(R,W),Math.min(j,W))}}else i.value.value=S;S!==e.modelValue&&t("update:modelValue",S)},m=S=>{S.target.composing||A(S.target.value)},k=()=>{var S;return(S=i.value)==null?void 0:S.blur()},I=()=>{var S;return(S=i.value)==null?void 0:S.focus()},z=()=>{const S=i.value;e.type==="textarea"&&e.autosize&&S&&mv(S,e.autosize)},F=S=>{o.focused=!0,t("focus",S),We(z),c("readonly")&&k()},B=S=>{o.focused=!1,A(u(),"onBlur"),t("blur",S),!c("readonly")&&(w("onBlur"),We(z),Cm())},K=S=>t("clickInput",S),U=S=>t("clickLeftIcon",S),ae=S=>t("clickRightIcon",S),fe=S=>{cn(S),t("update:modelValue",""),t("clear",S)},ue=G(()=>{if(typeof e.error=="boolean")return e.error;if(l&&l.props.showError&&o.status==="failed")return!0}),pe=G(()=>{const S=c("labelWidth"),$=c("labelAlign");if(S&&$!=="top")return{width:Qe(S)}}),le=S=>{S.keyCode===13&&(!(l&&l.props.submitOnEnter)&&e.type!=="textarea"&&cn(S),e.type==="search"&&k()),t("keypress",S)},me=()=>e.id||`${s}-input`,Q=()=>o.status,ee=()=>{const S=Rt("control",[c("inputAlign"),{error:ue.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return E("div",{class:S,onClick:K},[n.input()]);const $={id:me(),ref:i,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:S,disabled:c("disabled"),readonly:c("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${s}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:B,onFocus:F,onInput:m,onClick:K,onChange:Dl,onKeypress:le,onCompositionend:Dl,onCompositionstart:pv};return e.type==="textarea"?E("textarea",_t($,{inputmode:e.inputmode}),null):E("input",_t(gv(e.type,e.inputmode),$),null)},X=()=>{const S=n["left-icon"];if(e.leftIcon||S)return E("div",{class:Rt("left-icon"),onClick:U},[S?S():E(At,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},q=()=>{const S=n["right-icon"];if(e.rightIcon||S)return E("div",{class:Rt("right-icon"),onClick:ae},[S?S():E(At,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},Y=()=>{if(e.showWordLimit&&e.maxlength){const S=Ts(u());return E("div",{class:Rt("word-limit")},[E("span",{class:Rt("word-num")},[S]),Ke("/"),e.maxlength])}},ye=()=>{if(l&&l.props.showErrorMessage===!1)return;const S=e.errorMessage||o.validateMessage;if(S){const $=n["error-message"],V=c("errorMessageAlign");return E("div",{class:Rt("error-message",V)},[$?$({message:S}):S])}},te=()=>{const S=c("labelWidth"),$=c("labelAlign"),V=c("colon")?":":"";if(n.label)return[n.label(),V];if(e.label)return E("label",{id:`${s}-label`,for:n.input?void 0:me(),"data-allow-mismatch":"attribute",onClick:Z=>{cn(Z),I()},style:$==="top"&&S?{width:Qe(S)}:void 0},[e.label+V])},he=()=>[E("div",{class:Rt("body")},[ee(),d.value&&E(At,{ref:r,name:e.clearIcon,class:Rt("clear")},null),q(),n.button&&E("div",{class:Rt("button")},[n.button()])]),Y(),ye()];return kt({blur:k,focus:I,validate:_,formValue:f,resetValidation:g,getValidationStatus:Q}),Zt(ld,{customValue:a,resetValidation:g,validateWithTrigger:w}),be(()=>e.modelValue,()=>{A(u()),g(),w("onChange"),We(z)}),nt(()=>{A(u(),e.formatTrigger),We(z)}),Un("touchstart",fe,{target:G(()=>{var S;return(S=r.value)==null?void 0:S.$el})}),()=>{const S=c("disabled"),$=c("labelAlign"),V=X(),Z=()=>{const ce=te();return $==="top"?[V,ce].filter(Boolean):ce||[]};return E(Pd,{size:e.size,class:Rt({error:ue.value,disabled:S,[`label-${$}`]:$}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:pe.value,valueClass:Rt("value"),titleClass:[Rt("label",[$,{required:h.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:V&&$!=="top"?()=>V:null,title:Z,value:he,extra:n.extra})}}});const Si=qe(yv);let Rs=0;function bv(e){e?(Rs||document.body.classList.add("van-toast--unclickable"),Rs++):Rs&&(Rs--,Rs||document.body.classList.remove("van-toast--unclickable"))}const[wv,Kn]=Ve("toast"),Sv=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],Ev={icon:String,show:Boolean,type:Oe("text"),overlay:Boolean,message:ke,iconSize:ke,duration:sd(2e3),position:Oe("middle"),teleport:[String,Object],wordBreak:String,className:$t,iconPrefix:String,transition:Oe("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:$t,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:ke};var $d=we({name:wv,props:Ev,emits:["update:show"],setup(e,{emit:t,slots:n}){let s,o=!1;const i=()=>{const d=e.show&&e.forbidClick;o!==d&&(o=d,bv(o))},r=d=>t("update:show",d),a=()=>{e.closeOnClick&&r(!1)},l=()=>clearTimeout(s),u=()=>{const{icon:d,type:f,iconSize:h,iconPrefix:y,loadingType:g}=e;if(d||f==="success"||f==="fail")return E(At,{name:d||f,size:h,class:Kn("icon"),classPrefix:y},null);if(f==="loading")return E(bs,{class:Kn("loading"),size:h,type:g},null)},c=()=>{const{type:d,message:f}=e;if(n.message)return E("div",{class:Kn("text")},[n.message()]);if(Ye(f)&&f!=="")return d==="html"?E("div",{key:0,class:Kn("text"),innerHTML:String(f)},null):E("div",{class:Kn("text")},[f])};return be(()=>[e.show,e.forbidClick],i),be(()=>[e.show,e.type,e.message,e.duration],()=>{l(),e.show&&e.duration>0&&(s=setTimeout(()=>{r(!1)},e.duration))}),nt(i),Cn(i),()=>E(Hn,_t({class:[Kn([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:a,onClosed:l,"onUpdate:show":r},hn(e,Sv)),{default:()=>[u(),c()]})}});function Fd(){const e=it({show:!1}),t=o=>{e.show=o},n=o=>{ze(e,o,{transitionAppear:!0}),t(!0)},s=()=>t(!1);return kt({open:n,close:s,toggle:t}),{open:n,close:s,state:e,toggle:t}}function Bd(e){const t=ed(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const xv={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let Ro=[],Cv=!1,Nl=ze({},xv);const Av=new Map;function Dd(e){return uo(e)?e:{message:e}}function kv(){const{instance:e}=Bd({setup(){const t=M(""),{open:n,state:s,close:o,toggle:i}=Fd(),r=()=>{},a=()=>E($d,_t(s,{onClosed:r,"onUpdate:show":i}),null);return be(t,l=>{s.message=l}),Dt().render=a,{open:n,close:o,message:t}}});return e}function Tv(){if(!Ro.length||Cv){const e=kv();Ro.push(e)}return Ro[Ro.length-1]}function Ae(e={}){if(!vs)return{};const t=Tv(),n=Dd(e);return t.open(ze({},Nl,Av.get(n.type||Nl.type),n)),t}const Nd=e=>t=>Ae(ze({type:e},Dd(t))),dC=Nd("success"),Rv=Nd("fail");qe($d);const[Iv]=Ve("checkbox-group"),Pv=Symbol(Iv),Ld={name:$t,disabled:Boolean,iconSize:ke,modelValue:$t,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var Ov=we({props:ze({},Ld,{bem:Mo(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:De,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,{emit:t,slots:n}){const s=M(),o=f=>{if(e.parent&&e.bindGroup)return e.parent.props[f]},i=G(()=>{if(e.parent&&e.bindGroup){const f=o("disabled")||e.disabled;if(e.role==="checkbox"){const h=o("modelValue").length,y=o("max"),g=y&&h>=+y;return f||g&&!e.checked}return f}return e.disabled}),r=G(()=>o("direction")),a=G(()=>{const f=e.checkedColor||o("checkedColor");if(f&&(e.checked||e.indeterminate)&&!i.value)return{borderColor:f,backgroundColor:f}}),l=G(()=>e.shape||o("shape")||"round"),u=f=>{const{target:h}=f,y=s.value,g=y===h||(y==null?void 0:y.contains(h));!i.value&&(g||!e.labelDisabled)&&t("toggle"),t("click",f)},c=()=>{var f,h;const{bem:y,checked:g,indeterminate:v}=e,_=e.iconSize||o("iconSize");return E("div",{ref:s,class:y("icon",[l.value,{disabled:i.value,checked:g,indeterminate:v}]),style:l.value!=="dot"?{fontSize:Qe(_)}:{width:Qe(_),height:Qe(_),borderColor:(f=a.value)==null?void 0:f.borderColor}},[n.icon?n.icon({checked:g,disabled:i.value}):l.value!=="dot"?E(At,{name:v?"minus":"success",style:a.value},null):E("div",{class:y("icon--dot__icon"),style:{backgroundColor:(h=a.value)==null?void 0:h.backgroundColor}},null)])},d=()=>{const{checked:f}=e;if(n.default)return E("span",{class:e.bem("label",[e.labelPosition,{disabled:i.value}])},[n.default({checked:f,disabled:i.value})])};return()=>{const f=e.labelPosition==="left"?[d(),c()]:[c(),d()];return E("div",{role:e.role,class:e.bem([{disabled:i.value,"label-disabled":e.labelDisabled},r.value]),tabindex:i.value?void 0:0,"aria-checked":e.checked,onClick:u},[f])}}});const[$v,Fv]=Ve("checkbox"),Bv=ze({},Ld,{shape:String,bindGroup:De,indeterminate:{type:Boolean,default:null}});var Dv=we({name:$v,props:Bv,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:s}=ys(Pv),o=a=>{const{name:l}=e,{max:u,modelValue:c}=s.props,d=c.slice();if(a)!(u&&d.length>=+u)&&!d.includes(l)&&(d.push(l),e.bindGroup&&s.updateValue(d));else{const f=d.indexOf(l);f!==-1&&(d.splice(f,1),e.bindGroup&&s.updateValue(d))}},i=G(()=>s&&e.bindGroup?s.props.modelValue.indexOf(e.name)!==-1:!!e.modelValue),r=(a=!i.value)=>{s&&e.bindGroup?o(a):t("update:modelValue",a),e.indeterminate!==null&&t("change",a)};return be(()=>e.modelValue,a=>{e.indeterminate===null&&t("change",a)}),kt({toggle:r,props:e,checked:i}),cd(()=>e.modelValue),()=>E(Ov,_t({bem:Fv,role:"checkbox",parent:s,checked:i.value,onToggle:r},e),hn(n,["default","icon"]))}});const Nv=qe(Dv),[Md,Lv]=Ve("collapse"),Vd=Symbol(Md),Mv={border:De,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};var Vv=we({name:Md,props:Mv,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:s,children:o}=vi(Vd),i=u=>{t("change",u),t("update:modelValue",u)},r=(u,c)=>{const{accordion:d,modelValue:f}=e;i(d?u===f?"":u:c?f.concat(u):f.filter(h=>h!==u))},a=(u={})=>{if(e.accordion)return;typeof u=="boolean"&&(u={expanded:u});const{expanded:c,skipDisabled:d}=u,h=o.filter(y=>y.disabled&&d?y.expanded.value:c??!y.expanded.value).map(y=>y.itemName.value);i(h)},l=u=>{const{accordion:c,modelValue:d}=e;return c?d===u:d.includes(u)};return kt({toggleAll:a}),s({toggle:r,isExpanded:l}),()=>{var u;return E("div",{class:[Lv(),{[md]:e.border}]},[(u=n.default)==null?void 0:u.call(n)])}}});const jv=qe(Vv),[Uv,Io]=Ve("collapse-item"),Hv=["icon","title","value","label","right-icon"],zv=ze({},wi,{name:ke,isLink:De,disabled:Boolean,readonly:Boolean,lazyRender:De});var qv=we({name:Uv,props:zv,setup(e,{slots:t}){const n=M(),s=M(),{parent:o,index:i}=ys(Vd);if(!o)return;const r=G(()=>{var g;return(g=e.name)!=null?g:i.value}),a=G(()=>o.isExpanded(r.value)),l=M(a.value),u=pa(()=>l.value||!e.lazyRender),c=()=>{a.value?n.value&&(n.value.style.height=""):l.value=!1};be(a,(g,v)=>{if(v===null)return;g&&(l.value=!0),(g?We:us)(()=>{if(!s.value||!n.value)return;const{offsetHeight:w}=s.value;if(w){const T=`${w}px`;n.value.style.height=g?"0":T,es(()=>{n.value&&(n.value.style.height=g?T:"0")})}else c()})});const d=(g=!a.value)=>{o.toggle(r.value,g)},f=()=>{!e.disabled&&!e.readonly&&d()},h=()=>{const{border:g,disabled:v,readonly:_}=e,w=hn(e,Object.keys(wi));return _&&(w.isLink=!1),(v||_)&&(w.clickable=!1),E(Pd,_t({role:"button",class:Io("title",{disabled:v,expanded:a.value,borderless:!g}),"aria-expanded":String(a.value),onClick:f},w),hn(t,Hv))},y=u(()=>{var g;return lo(E("div",{ref:n,class:Io("wrapper"),onTransitionend:c},[E("div",{ref:s,class:Io("content")},[(g=t.default)==null?void 0:g.call(t)])]),[[gi,l.value]])});return kt({toggle:d,expanded:a,itemName:r}),()=>E("div",{class:[Io({border:i.value&&e.border})]},[h(),y()])}});const Wv=qe(qv),Kv=qe(rg),[Gv,Po]=Ve("empty"),Jv={image:Oe("default"),imageSize:[Number,String,Array],description:String};var Xv=we({name:Gv,props:Jv,setup(e,{slots:t}){const n=()=>{const _=t.description?t.description():e.description;if(_)return E("p",{class:Po("description")},[_])},s=()=>{if(t.default)return E("div",{class:Po("bottom")},[t.default()])},o=po(),i=_=>`${o}-${_}`,r=_=>`url(#${i(_)})`,a=(_,w,T)=>E("stop",{"stop-color":_,offset:`${w}%`,"stop-opacity":T},null),l=(_,w)=>[a(_,0),a(w,100)],u=_=>[E("defs",null,[E("radialGradient",{id:i(_),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)","data-allow-mismatch":"attribute"},[a("#EBEDF0",0),a("#F2F3F5",100,.3)])]),E("ellipse",{fill:r(_),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8","data-allow-mismatch":"attribute"},null)],c=()=>[E("defs",null,[E("linearGradient",{id:i("a"),x1:"64%",y1:"100%",x2:"64%","data-allow-mismatch":"attribute"},[a("#FFF",0,.5),a("#F2F3F5",100)])]),E("g",{opacity:".8","data-allow-mismatch":"children"},[E("path",{d:"M36 131V53H16v20H2v58h34z",fill:r("a")},null),E("path",{d:"M123 15h22v14h9v77h-31V15z",fill:r("a")},null)])],d=()=>[E("defs",null,[E("linearGradient",{id:i("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%","data-allow-mismatch":"attribute"},[a("#F2F3F5",0,.3),a("#F2F3F5",100)])]),E("g",{opacity:".8","data-allow-mismatch":"children"},[E("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:r("b")},null),E("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:r("b")},null)])],f=()=>E("svg",{viewBox:"0 0 160 160"},[E("defs",{"data-allow-mismatch":"children"},[E("linearGradient",{id:i(1),x1:"64%",y1:"100%",x2:"64%"},[a("#FFF",0,.5),a("#F2F3F5",100)]),E("linearGradient",{id:i(2),x1:"50%",x2:"50%",y2:"84%"},[a("#EBEDF0",0),a("#DCDEE0",100,0)]),E("linearGradient",{id:i(3),x1:"100%",x2:"100%",y2:"100%"},[l("#EAEDF0","#DCDEE0")]),E("radialGradient",{id:i(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[a("#EBEDF0",0),a("#FFF",100,0)])]),E("g",{fill:"none"},[c(),E("path",{fill:r(4),d:"M0 139h160v21H0z","data-allow-mismatch":"attribute"},null),E("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:r(2),"data-allow-mismatch":"attribute"},null),E("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7","data-allow-mismatch":"children"},[E("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:r(3)},null),E("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:r(3)},null),E("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:r(3)},null),E("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:r(3)},null)]),E("g",{transform:"translate(31 105)"},[E("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),E("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),E("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),h=()=>E("svg",{viewBox:"0 0 160 160"},[E("defs",{"data-allow-mismatch":"children"},[E("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(5)},[l("#F2F3F5","#DCDEE0")]),E("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:i(6)},[l("#EAEDF1","#DCDEE0")]),E("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:i(7)},[l("#EAEDF1","#DCDEE0")])]),c(),d(),E("g",{transform:"translate(36 50)",fill:"none"},[E("g",{transform:"translate(8)"},[E("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),E("rect",{fill:r(5),width:"64",height:"66",rx:"2","data-allow-mismatch":"attribute"},null),E("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),E("g",{transform:"translate(15 17)",fill:r(6),"data-allow-mismatch":"attribute"},[E("rect",{width:"34",height:"6",rx:"1"},null),E("path",{d:"M0 14h34v6H0z"},null),E("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),E("rect",{fill:r(7),y:"61",width:"88",height:"28",rx:"1","data-allow-mismatch":"attribute"},null),E("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),y=()=>E("svg",{viewBox:"0 0 160 160"},[E("defs",null,[E("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(8),"data-allow-mismatch":"attribute"},[l("#EAEDF1","#DCDEE0")])]),c(),d(),u("c"),E("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:r(8),"data-allow-mismatch":"attribute"},null)]),g=()=>E("svg",{viewBox:"0 0 160 160"},[E("defs",{"data-allow-mismatch":"children"},[E("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:i(9)},[l("#EEE","#D8D8D8")]),E("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:i(10)},[l("#F2F3F5","#DCDEE0")]),E("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(11)},[l("#F2F3F5","#DCDEE0")]),E("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(12)},[l("#FFF","#F7F8FA")])]),c(),d(),u("d"),E("g",{transform:"rotate(-45 113 -4)",fill:"none","data-allow-mismatch":"children"},[E("rect",{fill:r(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),E("rect",{fill:r(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),E("circle",{stroke:r(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),E("circle",{fill:r(12),cx:"27",cy:"27",r:"16"},null),E("path",{d:"M37 7c-8 0-15 5-16 12",stroke:r(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),v=()=>{var _;if(t.image)return t.image();const w={error:y,search:g,network:f,default:h};return((_=w[e.image])==null?void 0:_.call(w))||E("img",{src:e.image},null)};return()=>E("div",{class:Po()},[E("div",{class:Po("image"),style:ud(e.imageSize)},[v()]),n(),s()])}});const jd=qe(Xv),[Yv,Nt,Oo]=Ve("dialog"),Qv=ze({},fa,{title:String,theme:String,width:ke,message:[String,Function],callback:Function,allowHtml:Boolean,className:$t,transition:Oe("van-dialog-bounce"),messageAlign:String,closeOnPopstate:De,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:De,closeOnClickOverlay:Boolean,keyboardEnabled:De,destroyOnClose:Boolean}),Zv=[...Eg,"transition","closeOnPopstate","destroyOnClose"];var Ud=we({name:Yv,props:Qv,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:n}){const s=M(),o=it({confirm:!1,cancel:!1}),i=_=>t("update:show",_),r=_=>{var w;i(!1),(w=e.callback)==null||w.call(e,_)},a=_=>()=>{e.show&&(t(_),e.beforeClose?(o[_]=!0,ca(e.beforeClose,{args:[_],done(){r(_),o[_]=!1},canceled(){o[_]=!1}})):r(_))},l=a("cancel"),u=a("confirm"),c=Zu(_=>{var w,T;if(!e.keyboardEnabled||_.target!==((T=(w=s.value)==null?void 0:w.popupRef)==null?void 0:T.value))return;({Enter:e.showConfirmButton?u:Er,Escape:e.showCancelButton?l:Er})[_.key](),t("keydown",_)},["enter","esc"]),d=()=>{const _=n.title?n.title():e.title;if(_)return E("div",{class:Nt("header",{isolated:!e.message&&!n.default})},[_])},f=_=>{const{message:w,allowHtml:T,messageAlign:A}=e,m=Nt("message",{"has-title":_,[A]:A}),k=no(w)?w():w;return T&&typeof k=="string"?E("div",{class:m,innerHTML:k},null):E("div",{class:m},[k])},h=()=>{if(n.default)return E("div",{class:Nt("content")},[n.default()]);const{title:_,message:w,allowHtml:T}=e;if(w){const A=!!(_||n.title);return E("div",{key:T?1:0,class:Nt("content",{isolated:!A})},[f(A)])}},y=()=>E("div",{class:[jm,Nt("footer")]},[e.showCancelButton&&E(ds,{size:"large",text:e.cancelButtonText||Oo("cancel"),class:Nt("cancel"),style:{color:e.cancelButtonColor},loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:l},null),e.showConfirmButton&&E(ds,{size:"large",text:e.confirmButtonText||Oo("confirm"),class:[Nt("confirm"),{[Um]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:u},null)]),g=()=>E(Xm,{class:Nt("footer")},{default:()=>[e.showCancelButton&&E(Rl,{type:"warning",text:e.cancelButtonText||Oo("cancel"),class:Nt("cancel"),color:e.cancelButtonColor,loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:l},null),e.showConfirmButton&&E(Rl,{type:"danger",text:e.confirmButtonText||Oo("confirm"),class:Nt("confirm"),color:e.confirmButtonColor,loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:u},null)]}),v=()=>n.footer?n.footer():e.theme==="round-button"?g():y();return()=>{const{width:_,title:w,theme:T,message:A,className:m}=e;return E(Hn,_t({ref:s,role:"dialog",class:[Nt([T]),m],style:{width:Qe(_)},tabindex:0,"aria-labelledby":w||A,onKeydown:c,"onUpdate:show":i},hn(e,Zv)),{default:()=>[d(),h(),v()]})}}});let Ar;const e_={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,destroyOnClose:!1};let t_=ze({},e_);function n_(){({instance:Ar}=Bd({setup(){const{state:t,toggle:n}=Fd();return()=>E(Ud,_t(t,{"onUpdate:show":n}),null)}}))}function s_(e){return vs?new Promise((t,n)=>{Ar||n_(),Ar.open(ze({},t_,e,{callback:s=>{(s==="confirm"?t:n)(s)}}))}):Promise.resolve(void 0)}const o_=e=>s_(ze({showCancelButton:!0},e)),i_=qe(Ud),[r_,$o]=Ve("rate");function a_(e,t,n,s){return e>=t?{status:"full",value:1}:e+.5>=t&&n&&!s?{status:"half",value:.5}:e+1>=t&&n&&s?{status:"half",value:Math.round((e-t+1)*1e10)/1e10}:{status:"void",value:0}}const l_={size:ke,icon:Oe("star"),color:String,count:Mt(5),gutter:ke,clearable:Boolean,readonly:Boolean,disabled:Boolean,voidIcon:Oe("star-o"),allowHalf:Boolean,voidColor:String,touchable:De,iconPrefix:String,modelValue:sd(0),disabledColor:String};var c_=we({name:r_,props:l_,emits:["change","update:modelValue"],setup(e,{emit:t}){const n=ha(),[s,o]=xd(),i=M(),r=G(()=>e.readonly||e.disabled),a=G(()=>r.value||!e.touchable),l=G(()=>Array(+e.count).fill("").map((T,A)=>a_(e.modelValue,A+1,e.allowHalf,e.readonly)));let u,c,d=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;const h=()=>{c=Yt(i);const T=s.value.map(Yt);u=[],T.forEach((A,m)=>{d=Math.min(A.top,d),f=Math.max(A.top,f),e.allowHalf?u.push({score:m+.5,left:A.left,top:A.top,height:A.height},{score:m+1,left:A.left+A.width/2,top:A.top,height:A.height}):u.push({score:m+1,left:A.left,top:A.top,height:A.height})})},y=(T,A)=>{for(let m=u.length-1;m>0;m--)if(A>=c.top&&A<=c.bottom){if(T>u[m].left&&A>=u[m].top&&A<=u[m].top+u[m].height)return u[m].score}else{const k=Au[m].left&&u[m].top===k)return u[m].score}return e.allowHalf?.5:1},g=T=>{r.value||T===e.modelValue||(t("update:modelValue",T),t("change",T))},v=T=>{a.value||(n.start(T),h())},_=T=>{if(!a.value&&(n.move(T),n.isHorizontal()&&!n.isTap.value)){const{clientX:A,clientY:m}=T.touches[0];cn(T),g(y(A,m))}},w=(T,A)=>{const{icon:m,size:k,color:I,count:z,gutter:F,voidIcon:B,disabled:K,voidColor:U,allowHalf:ae,iconPrefix:fe,disabledColor:ue}=e,pe=A+1,le=T.status==="full",me=T.status==="void",Q=ae&&T.value>0&&T.value<1;let ee;F&&pe!==+z&&(ee={paddingRight:Qe(F)});const X=q=>{h();let Y=ae?y(q.clientX,q.clientY):pe;e.clearable&&n.isTap.value&&Y===e.modelValue&&(Y=0),g(Y)};return E("div",{key:A,ref:o(A),role:"radio",style:ee,class:$o("item"),tabindex:K?void 0:0,"aria-setsize":z,"aria-posinset":pe,"aria-checked":!me,onClick:X},[E(At,{size:k,name:le?m:B,class:$o("icon",{disabled:K,full:le}),color:K?ue:le?I:U,classPrefix:fe},null),Q&&E(At,{size:k,style:{width:T.value+"em"},name:me?B:m,class:$o("icon",["half",{disabled:K,full:!me}]),color:K?ue:me?U:I,classPrefix:fe},null)])};return cd(()=>e.modelValue),Un("touchmove",_,{target:i}),()=>E("div",{ref:i,role:"radiogroup",class:$o({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstartPassive:v},[l.value.map(w)])}});const u_=qe(c_),[d_,Is,f_]=Ve("search"),h_=ze({},ma,{label:String,shape:Oe("square"),leftIcon:Oe("search"),clearable:De,actionText:String,background:String,showAction:Boolean});var p_=we({name:d_,props:h_,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n,attrs:s}){const o=po(),i=M(),r=()=>{n.action||(t("update:modelValue",""),t("cancel"))},a=m=>{m.keyCode===13&&(cn(m),t("search",e.modelValue))},l=()=>e.id||`${o}-input`,u=()=>{if(n.label||e.label)return E("label",{class:Is("label"),for:l(),"data-allow-mismatch":"attribute"},[n.label?n.label():e.label])},c=()=>{if(e.showAction){const m=e.actionText||f_("cancel");return E("div",{class:Is("action"),role:"button",tabindex:0,onClick:r},[n.action?n.action():m])}},d=()=>{var m;return(m=i.value)==null?void 0:m.blur()},f=()=>{var m;return(m=i.value)==null?void 0:m.focus()},h=m=>t("blur",m),y=m=>t("focus",m),g=m=>t("clear",m),v=m=>t("clickInput",m),_=m=>t("clickLeftIcon",m),w=m=>t("clickRightIcon",m),T=Object.keys(ma),A=()=>{const m=ze({},s,hn(e,T),{id:l()}),k=I=>t("update:modelValue",I);return E(Si,_t({ref:i,type:"search",class:Is("field",{"with-message":m.errorMessage}),border:!1,labelAlign:"left",onBlur:h,onFocus:y,onClear:g,onKeypress:a,onClickInput:v,onClickLeftIcon:_,onClickRightIcon:w,"onUpdate:modelValue":k},m),hn(n,["left-icon","right-icon"]))};return kt({focus:f,blur:d}),()=>{var m;return E("div",{class:Is({"show-action":e.showAction}),style:{background:e.background}},[(m=n.left)==null?void 0:m.call(n),E("div",{class:Is("content",e.shape)},[u(),A()]),c()])}}});const m_=qe(p_);/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Hd;const Ei=e=>Hd=e,zd=Symbol();function kr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ks;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ks||(Ks={}));function g_(){const e=jc(!0),t=e.run(()=>M({}));let n=[],s=[];const o=Xr({install(i){Ei(o),o._a=i,i.provide(zd,o),i.config.globalProperties.$pinia=o,s.forEach(r=>n.push(r)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const qd=()=>{};function Ll(e,t,n,s=qd){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&qr()&&Uc(o),o}function Gn(e,...t){e.slice().forEach(n=>{n(...t)})}const v_=e=>e(),Ml=Symbol(),Gi=Symbol();function Tr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];kr(o)&&kr(s)&&e.hasOwnProperty(n)&&!Ge(s)&&!ln(s)?e[n]=Tr(o,s):e[n]=s}return e}const __=Symbol();function y_(e){return!kr(e)||!e.hasOwnProperty(__)}const{assign:bn}=Object;function b_(e){return!!(Ge(e)&&e.effect)}function w_(e,t,n,s){const{state:o,actions:i,getters:r}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=vh(n.state.value[e]);return bn(c,i,Object.keys(r||{}).reduce((d,f)=>(d[f]=Xr(G(()=>{Ei(n);const h=n._s.get(e);return r[f].call(h,h)})),d),{}))}return l=Wd(e,u,t,n,s,!0),l}function Wd(e,t,n={},s,o,i){let r;const a=bn({actions:{}},n),l={deep:!0};let u,c,d=[],f=[],h;const y=s.state.value[e];!i&&!y&&(s.state.value[e]={});let g;function v(z){let F;u=c=!1,typeof z=="function"?(z(s.state.value[e]),F={type:Ks.patchFunction,storeId:e,events:h}):(Tr(s.state.value[e],z),F={type:Ks.patchObject,payload:z,storeId:e,events:h});const B=g=Symbol();We().then(()=>{g===B&&(u=!0)}),c=!0,Gn(d,F,s.state.value[e])}const _=i?function(){const{state:F}=n,B=F?F():{};this.$patch(K=>{bn(K,B)})}:qd;function w(){r.stop(),d=[],f=[],s._s.delete(e)}const T=(z,F="")=>{if(Ml in z)return z[Gi]=F,z;const B=function(){Ei(s);const K=Array.from(arguments),U=[],ae=[];function fe(le){U.push(le)}function ue(le){ae.push(le)}Gn(f,{args:K,name:B[Gi],store:m,after:fe,onError:ue});let pe;try{pe=z.apply(this&&this.$id===e?this:m,K)}catch(le){throw Gn(ae,le),le}return pe instanceof Promise?pe.then(le=>(Gn(U,le),le)).catch(le=>(Gn(ae,le),Promise.reject(le))):(Gn(U,pe),pe)};return B[Ml]=!0,B[Gi]=F,B},A={_p:s,$id:e,$onAction:Ll.bind(null,f),$patch:v,$reset:_,$subscribe(z,F={}){const B=Ll(d,z,F.detached,()=>K()),K=r.run(()=>be(()=>s.state.value[e],U=>{(F.flush==="sync"?c:u)&&z({storeId:e,type:Ks.direct,events:h},U)},bn({},l,F)));return B},$dispose:w},m=it(A);s._s.set(e,m);const I=(s._a&&s._a.runWithContext||v_)(()=>s._e.run(()=>(r=jc()).run(()=>t({action:T}))));for(const z in I){const F=I[z];if(Ge(F)&&!b_(F)||ln(F))i||(y&&y_(F)&&(Ge(F)?F.value=y[z]:Tr(F,y[z])),s.state.value[e][z]=F);else if(typeof F=="function"){const B=T(F,z);I[z]=B,a.actions[z]=F}}return bn(m,I),bn(Re(m),I),Object.defineProperty(m,"$state",{get:()=>s.state.value[e],set:z=>{v(F=>{bn(F,z)})}}),s._p.forEach(z=>{bn(m,r.run(()=>z({store:m,app:s._a,pinia:s,options:a})))}),y&&i&&n.hydrate&&n.hydrate(m.$state,y),u=!0,c=!0,m}/*! #__NO_SIDE_EFFECTS__ */function ga(e,t,n){let s,o;const i=typeof t=="function";typeof e=="string"?(s=e,o=i?n:t):(o=e,s=e.id);function r(a,l){const u=Ah();return a=a||(u?ot(zd,null):null),a&&Ei(a),a=Hd,a._s.has(s)||(i?Wd(s,t,o,a):w_(s,o,a)),a._s.get(s)}return r.$id=s,r}const Kd="it_desk_h5_theme";function Vl(e){document.documentElement.setAttribute("data-theme",e),localStorage.setItem(Kd,e)}function S_(){const e=localStorage.getItem(Kd);return e==="dark"||e==="light"?e:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const Gd=ga("theme",()=>{const e=M("light");function t(){const s=e.value==="light"?"dark":"light";e.value=s,Vl(s)}function n(){const s=S_();e.value=s,Vl(s)}return{currentTheme:e,toggleTheme:t,initTheme:n}}),E_={class:"app-loading"},x_={key:1,class:"app-loading"},C_=we({__name:"App",setup(e){const t=Gd(),n=M(!1);return nt(()=>{t.initTheme(),n.value=!0}),(s,o)=>{const i=bs,r=Hh("router-view"),a=Kv;return O(),ut(a,{theme:Ee(t).currentTheme},{default:He(()=>[n.value?(O(),ut(r,{key:0},{default:He(({Component:l})=>[(O(),ut(vp,null,{fallback:He(()=>[p("div",E_,[E(i,{type:"spinner",color:"#1989fa",size:"36"}),o[0]||(o[0]=p("div",{class:"app-loading__text"},"正在加载...",-1))])]),default:He(()=>[(O(),ut(zh(l)))]),_:2},1024))]),_:1})):(O(),D("div",x_,[E(i,{type:"spinner",color:"#1989fa",size:"36"}),o[1]||(o[1]=p("div",{class:"app-loading__text"},"正在加载...",-1))]))]),_:1},8,["theme"])}}}),A_="modulepreload",k_=function(e){return"/h5/"+e},jl={},ts=function(t,n,s){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),a=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));o=Promise.allSettled(n.map(l=>{if(l=k_(l),l in jl)return;jl[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":A_,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return o.then(r=>{for(const a of r||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const Zn=typeof document<"u";function Jd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function T_(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Jd(e.default)}const $e=Object.assign;function Ji(e,t){const n={};for(const s in t){const o=t[s];n[s]=Ht(o)?o.map(e):e(o)}return n}const Gs=()=>{},Ht=Array.isArray;function Ul(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Xd=/#/g,R_=/&/g,I_=/\//g,P_=/=/g,O_=/\?/g,Yd=/\+/g,$_=/%5B/g,F_=/%5D/g,Qd=/%5E/g,B_=/%60/g,Zd=/%7B/g,D_=/%7C/g,ef=/%7D/g,N_=/%20/g;function va(e){return e==null?"":encodeURI(""+e).replace(D_,"|").replace($_,"[").replace(F_,"]")}function L_(e){return va(e).replace(Zd,"{").replace(ef,"}").replace(Qd,"^")}function Rr(e){return va(e).replace(Yd,"%2B").replace(N_,"+").replace(Xd,"%23").replace(R_,"%26").replace(B_,"`").replace(Zd,"{").replace(ef,"}").replace(Qd,"^")}function M_(e){return Rr(e).replace(P_,"%3D")}function V_(e){return va(e).replace(Xd,"%23").replace(O_,"%3F")}function j_(e){return V_(e).replace(I_,"%2F")}function oo(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const U_=/\/$/,H_=e=>e.replace(U_,"");function Xi(e,t,n="/"){let s,o={},i="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(s=t.slice(0,l),i=t.slice(l,a>0?a:t.length),o=e(i.slice(1))),a>=0&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=K_(s??t,n),{fullPath:s+i+r,path:s,query:o,hash:oo(r)}}function z_(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Hl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function q_(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&fs(t.matched[s],n.matched[o])&&tf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function fs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function tf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!W_(e[n],t[n]))return!1;return!0}function W_(e,t){return Ht(e)?zl(e,t):Ht(t)?zl(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function zl(e,t){return Ht(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function K_(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let i=n.length-1,r,a;for(r=0;r1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(r).join("/")}const vn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ir=function(e){return e.pop="pop",e.push="push",e}({}),Yi=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function G_(e){if(!e)if(Zn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),H_(e)}const J_=/^[^#]+#/;function X_(e,t){return e.replace(J_,"#")+t}function Y_(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const xi=()=>({left:window.scrollX,top:window.scrollY});function Q_(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Y_(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ql(e,t){return(history.state?history.state.position-t:-1)+e}const Pr=new Map;function Z_(e,t){Pr.set(e,t)}function ey(e){const t=Pr.get(e);return Pr.delete(e),t}function ty(e){return typeof e=="string"||e&&typeof e=="object"}function nf(e){return typeof e=="string"||typeof e=="symbol"}let Xe=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const sf=Symbol("");Xe.MATCHER_NOT_FOUND+"",Xe.NAVIGATION_GUARD_REDIRECT+"",Xe.NAVIGATION_ABORTED+"",Xe.NAVIGATION_CANCELLED+"",Xe.NAVIGATION_DUPLICATED+"";function hs(e,t){return $e(new Error,{type:e,[sf]:!0},t)}function nn(e,t){return e instanceof Error&&sf in e&&(t==null||!!(e.type&t))}const ny=["params","query","hash"];function sy(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of ny)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function oy(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Rr(o)):[s&&Rr(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function iy(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ht(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const ry=Symbol(""),Kl=Symbol(""),Ci=Symbol(""),_a=Symbol(""),Or=Symbol("");function Ps(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Sn(e,t,n,s,o,i=r=>r()){const r=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const u=f=>{f===!1?l(hs(Xe.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?l(f):ty(f)?l(hs(Xe.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(r&&s.enterCallbacks[o]===r&&typeof f=="function"&&r.push(f),a())},c=i(()=>e.call(s&&s.instances[o],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>l(f))})}function Qi(e,t,n,s,o=i=>i()){const i=[];for(const r of e)for(const a in r.components){let l=r.components[a];if(!(t!=="beforeRouteEnter"&&!r.instances[a]))if(Jd(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Sn(u,n,s,r,a,o))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${r.path}"`);const d=T_(c)?c.default:c;r.mods[a]=c,r.components[a]=d;const f=(d.__vccOpts||d)[t];return f&&Sn(f,n,s,r,a,o)()}))}}return i}function ay(e,t){const n=[],s=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let r=0;rfs(u,a))?s.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(u=>fs(u,l))||o.push(l))}return[n,s,o]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let ly=()=>location.protocol+"//"+location.host;function of(e,t){const{pathname:n,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){let r=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(r);return a[0]!=="/"&&(a="/"+a),Hl(a,"")}return Hl(n,e)+s+o}function cy(e,t,n,s){let o=[],i=[],r=null;const a=({state:f})=>{const h=of(e,location),y=n.value,g=t.value;let v=0;if(f){if(n.value=h,t.value=f,r&&r===y){r=null;return}v=g?f.position-g.position:0}else s(h);o.forEach(_=>{_(n.value,y,{delta:v,type:Ir.pop,direction:v?v>0?Yi.forward:Yi.back:Yi.unknown})})};function l(){r=n.value}function u(f){o.push(f);const h=()=>{const y=o.indexOf(f);y>-1&&o.splice(y,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState($e({},f.state,{scroll:xi()}),"")}}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:d}}function Gl(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?xi():null}}function uy(e){const{history:t,location:n}=window,s={value:of(e,n)},o={value:t.state};o.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:ly()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](f)}}function r(l,u){i(l,$e({},t.state,Gl(o.value.back,l,o.value.forward,!0),u,{position:o.value.position}),!0),s.value=l}function a(l,u){const c=$e({},o.value,t.state,{forward:l,scroll:xi()});i(c.current,c,!0),i(l,$e({},Gl(s.value,l,null),{position:c.position+1},u),!1),s.value=l}return{location:s,state:o,push:a,replace:r}}function dy(e){e=G_(e);const t=uy(e),n=cy(e,t.state,t.location,t.replace);function s(i,r=!0){r||n.pauseListeners(),history.go(i)}const o=$e({location:"",base:e,go:s,createHref:X_.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let $n=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Ze=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Ze||{});const fy={type:$n.Static,value:""},hy=/[a-zA-Z0-9_]/;function py(e){if(!e)return[[]];if(e==="/")return[[fy]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=Ze.Static,s=n;const o=[];let i;function r(){i&&o.push(i),i=[]}let a=0,l,u="",c="";function d(){u&&(n===Ze.Static?i.push({type:$n.Static,value:u}):n===Ze.Param||n===Ze.ParamRegExp||n===Ze.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:$n.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;at.length?t.length===1&&t[0]===pt.Static+pt.Segment?1:-1:0}function rf(e,t){let n=0;const s=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const yy={strict:!1,end:!0,sensitive:!1};function by(e,t,n){const s=vy(py(e.path),n),o=$e(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function wy(e,t){const n=[],s=new Map;t=Ul(yy,t);function o(d){return s.get(d)}function i(d,f,h){const y=!h,g=Ql(d);g.aliasOf=h&&h.record;const v=Ul(t,d),_=[g];if("alias"in d){const A=typeof d.alias=="string"?[d.alias]:d.alias;for(const m of A)_.push(Ql($e({},g,{components:h?h.record.components:g.components,path:m,aliasOf:h?h.record:g})))}let w,T;for(const A of _){const{path:m}=A;if(f&&m[0]!=="/"){const k=f.record.path,I=k[k.length-1]==="/"?"":"/";A.path=f.record.path+(m&&I+m)}if(w=by(A,f,v),h?h.alias.push(w):(T=T||w,T!==w&&T.alias.push(w),y&&d.name&&!Zl(w)&&r(d.name)),af(w)&&l(w),g.children){const k=g.children;for(let I=0;I{r(T)}:Gs}function r(d){if(nf(d)){const f=s.get(d);f&&(s.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(r),f.alias.forEach(r))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&s.delete(d.record.name),d.children.forEach(r),d.alias.forEach(r))}}function a(){return n}function l(d){const f=xy(d,n);n.splice(f,0,d),d.record.name&&!Zl(d)&&s.set(d.record.name,d)}function u(d,f){let h,y={},g,v;if("name"in d&&d.name){if(h=s.get(d.name),!h)throw hs(Xe.MATCHER_NOT_FOUND,{location:d});v=h.record.name,y=$e(Yl(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),d.params&&Yl(d.params,h.keys.map(T=>T.name))),g=h.stringify(y)}else if(d.path!=null)g=d.path,h=n.find(T=>T.re.test(g)),h&&(y=h.parse(g),v=h.record.name);else{if(h=f.name?s.get(f.name):n.find(T=>T.re.test(f.path)),!h)throw hs(Xe.MATCHER_NOT_FOUND,{location:d,currentLocation:f});v=h.record.name,y=$e({},f.params,d.params),g=h.stringify(y)}const _=[];let w=h;for(;w;)_.unshift(w.record),w=w.parent;return{name:v,path:g,params:y,matched:_,meta:Ey(_)}}e.forEach(d=>i(d));function c(){n.length=0,s.clear()}return{addRoute:i,resolve:u,removeRoute:r,clearRoutes:c,getRoutes:a,getRecordMatcher:o}}function Yl(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Ql(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Sy(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Sy(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Zl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ey(e){return e.reduce((t,n)=>$e(t,n.meta),{})}function xy(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;rf(e,t[i])<0?s=i:n=i+1}const o=Cy(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function Cy(e){let t=e;for(;t=t.parent;)if(af(t)&&rf(e,t)===0)return t}function af({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ec(e){const t=ot(Ci),n=ot(_a),s=G(()=>{const l=Ee(e.to);return t.resolve(l)}),o=G(()=>{const{matched:l}=s.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(fs.bind(null,c));if(f>-1)return f;const h=tc(l[u-2]);return u>1&&tc(c)===h&&d[d.length-1].path!==h?d.findIndex(fs.bind(null,l[u-2])):f}),i=G(()=>o.value>-1&&Iy(n.params,s.value.params)),r=G(()=>o.value>-1&&o.value===n.matched.length-1&&tf(n.params,s.value.params));function a(l={}){if(Ry(l)){const u=t[Ee(e.replace)?"replace":"push"](Ee(e.to)).catch(Gs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:G(()=>s.value.href),isActive:i,isExactActive:r,navigate:a}}function Ay(e){return e.length===1?e[0]:e}const ky=we({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:ec,setup(e,{slots:t}){const n=it(ec(e)),{options:s}=ot(Ci),o=G(()=>({[nc(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[nc(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&Ay(t.default(n));return e.custom?i:ia("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Ty=ky;function Ry(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Iy(e,t){for(const n in t){const s=t[n],o=e[n];if(typeof s=="string"){if(s!==o)return!1}else if(!Ht(o)||o.length!==s.length||s.some((i,r)=>i.valueOf()!==o[r].valueOf()))return!1}return!0}function tc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const nc=(e,t,n)=>e??t??n,Py=we({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ot(Or),o=G(()=>e.route||s.value),i=ot(Kl,0),r=G(()=>{let u=Ee(i);const{matched:c}=o.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),a=G(()=>o.value.matched[r.value]);Zt(Kl,G(()=>r.value+1)),Zt(ry,a),Zt(Or,o);const l=M();return be(()=>[l.value,a.value,e.name],([u,c,d],[f,h,y])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!fs(c,h)||!f)&&(c.enterCallbacks[d]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,d=a.value,f=d&&d.components[c];if(!f)return sc(n.default,{Component:f,route:u});const h=d.props[c],y=h?h===!0?u.params:typeof h=="function"?h(u):h:null,v=ia(f,$e({},y,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return sc(n.default,{Component:v,route:u})||v}}});function sc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Oy=Py;function $y(e){const t=wy(e.routes,e),n=e.parseQuery||oy,s=e.stringifyQuery||Wl,o=e.history,i=Ps(),r=Ps(),a=Ps(),l=En(vn);let u=vn;Zn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ji.bind(null,S=>""+S),d=Ji.bind(null,j_),f=Ji.bind(null,oo);function h(S,$){let V,Z;return nf(S)?(V=t.getRecordMatcher(S),Z=$):Z=S,t.addRoute(Z,V)}function y(S){const $=t.getRecordMatcher(S);$&&t.removeRoute($)}function g(){return t.getRoutes().map(S=>S.record)}function v(S){return!!t.getRecordMatcher(S)}function _(S,$){if($=$e({},$||l.value),typeof S=="string"){const R=Xi(n,S,$.path),j=t.resolve({path:R.path},$),W=o.createHref(R.fullPath);return $e(R,j,{params:f(j.params),hash:oo(R.hash),redirectedFrom:void 0,href:W})}let V;if(S.path!=null)V=$e({},S,{path:Xi(n,S.path,$.path).path});else{const R=$e({},S.params);for(const j in R)R[j]==null&&delete R[j];V=$e({},S,{params:d(R)}),$.params=d($.params)}const Z=t.resolve(V,$),ce=S.hash||"";Z.params=c(f(Z.params));const b=z_(s,$e({},S,{hash:L_(ce),path:Z.path})),x=o.createHref(b);return $e({fullPath:b,hash:ce,query:s===Wl?iy(S.query):S.query||{}},Z,{redirectedFrom:void 0,href:x})}function w(S){return typeof S=="string"?Xi(n,S,l.value.path):$e({},S)}function T(S,$){if(u!==S)return hs(Xe.NAVIGATION_CANCELLED,{from:$,to:S})}function A(S){return I(S)}function m(S){return A($e(w(S),{replace:!0}))}function k(S,$){const V=S.matched[S.matched.length-1];if(V&&V.redirect){const{redirect:Z}=V;let ce=typeof Z=="function"?Z(S,$):Z;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=w(ce):{path:ce},ce.params={}),$e({query:S.query,hash:S.hash,params:ce.path!=null?{}:S.params},ce)}}function I(S,$){const V=u=_(S),Z=l.value,ce=S.state,b=S.force,x=S.replace===!0,R=k(V,Z);if(R)return I($e(w(R),{state:typeof R=="object"?$e({},ce,R.state):ce,force:b,replace:x}),$||V);const j=V;j.redirectedFrom=$;let W;return!b&&q_(s,Z,V)&&(W=hs(Xe.NAVIGATION_DUPLICATED,{to:j,from:Z}),X(Z,Z,!0,!1)),(W?Promise.resolve(W):B(j,Z)).catch(H=>nn(H)?nn(H,Xe.NAVIGATION_GUARD_REDIRECT)?H:ee(H):me(H,j,Z)).then(H=>{if(H){if(nn(H,Xe.NAVIGATION_GUARD_REDIRECT))return I($e({replace:x},w(H.to),{state:typeof H.to=="object"?$e({},ce,H.to.state):ce,force:b}),$||j)}else H=U(j,Z,!0,x,ce);return K(j,Z,H),H})}function z(S,$){const V=T(S,$);return V?Promise.reject(V):Promise.resolve()}function F(S){const $=ye.values().next().value;return $&&typeof $.runWithContext=="function"?$.runWithContext(S):S()}function B(S,$){let V;const[Z,ce,b]=ay(S,$);V=Qi(Z.reverse(),"beforeRouteLeave",S,$);for(const R of Z)R.leaveGuards.forEach(j=>{V.push(Sn(j,S,$))});const x=z.bind(null,S,$);return V.push(x),he(V).then(()=>{V=[];for(const R of i.list())V.push(Sn(R,S,$));return V.push(x),he(V)}).then(()=>{V=Qi(ce,"beforeRouteUpdate",S,$);for(const R of ce)R.updateGuards.forEach(j=>{V.push(Sn(j,S,$))});return V.push(x),he(V)}).then(()=>{V=[];for(const R of b)if(R.beforeEnter)if(Ht(R.beforeEnter))for(const j of R.beforeEnter)V.push(Sn(j,S,$));else V.push(Sn(R.beforeEnter,S,$));return V.push(x),he(V)}).then(()=>(S.matched.forEach(R=>R.enterCallbacks={}),V=Qi(b,"beforeRouteEnter",S,$,F),V.push(x),he(V))).then(()=>{V=[];for(const R of r.list())V.push(Sn(R,S,$));return V.push(x),he(V)}).catch(R=>nn(R,Xe.NAVIGATION_CANCELLED)?R:Promise.reject(R))}function K(S,$,V){a.list().forEach(Z=>F(()=>Z(S,$,V)))}function U(S,$,V,Z,ce){const b=T(S,$);if(b)return b;const x=$===vn,R=Zn?history.state:{};V&&(Z||x?o.replace(S.fullPath,$e({scroll:x&&R&&R.scroll},ce)):o.push(S.fullPath,ce)),l.value=S,X(S,$,V,x),ee()}let ae;function fe(){ae||(ae=o.listen((S,$,V)=>{if(!te.listening)return;const Z=_(S),ce=k(Z,te.currentRoute.value);if(ce){I($e(ce,{replace:!0,force:!0}),Z).catch(Gs);return}u=Z;const b=l.value;Zn&&Z_(ql(b.fullPath,V.delta),xi()),B(Z,b).catch(x=>nn(x,Xe.NAVIGATION_ABORTED|Xe.NAVIGATION_CANCELLED)?x:nn(x,Xe.NAVIGATION_GUARD_REDIRECT)?(I($e(w(x.to),{force:!0}),Z).then(R=>{nn(R,Xe.NAVIGATION_ABORTED|Xe.NAVIGATION_DUPLICATED)&&!V.delta&&V.type===Ir.pop&&o.go(-1,!1)}).catch(Gs),Promise.reject()):(V.delta&&o.go(-V.delta,!1),me(x,Z,b))).then(x=>{x=x||U(Z,b,!1),x&&(V.delta&&!nn(x,Xe.NAVIGATION_CANCELLED)?o.go(-V.delta,!1):V.type===Ir.pop&&nn(x,Xe.NAVIGATION_ABORTED|Xe.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),K(Z,b,x)}).catch(Gs)}))}let ue=Ps(),pe=Ps(),le;function me(S,$,V){ee(S);const Z=pe.list();return Z.length?Z.forEach(ce=>ce(S,$,V)):console.error(S),Promise.reject(S)}function Q(){return le&&l.value!==vn?Promise.resolve():new Promise((S,$)=>{ue.add([S,$])})}function ee(S){return le||(le=!S,fe(),ue.list().forEach(([$,V])=>S?V(S):$()),ue.reset()),S}function X(S,$,V,Z){const{scrollBehavior:ce}=e;if(!Zn||!ce)return Promise.resolve();const b=!V&&ey(ql(S.fullPath,0))||(Z||!V)&&history.state&&history.state.scroll||null;return We().then(()=>ce(S,$,b)).then(x=>x&&Q_(x)).catch(x=>me(x,S,$))}const q=S=>o.go(S);let Y;const ye=new Set,te={currentRoute:l,listening:!0,addRoute:h,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:g,resolve:_,options:e,push:A,replace:m,go:q,back:()=>q(-1),forward:()=>q(1),beforeEach:i.add,beforeResolve:r.add,afterEach:a.add,onError:pe.add,isReady:Q,install(S){S.component("RouterLink",Ty),S.component("RouterView",Oy),S.config.globalProperties.$router=te,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>Ee(l)}),Zn&&!Y&&l.value===vn&&(Y=!0,A(o.location).catch(Z=>{}));const $={};for(const Z in vn)Object.defineProperty($,Z,{get:()=>l.value[Z],enumerable:!0});S.provide(Ci,te),S.provide(_a,iu($)),S.provide(Or,l);const V=S.unmount;ye.add(S),S.unmount=function(){ye.delete(S),ye.size<1&&(u=vn,ae&&ae(),ae=null,l.value=vn,Y=!1,le=!1),V()}}};function he(S){return S.reduce(($,V)=>$.then(()=>F(V)),Promise.resolve())}return te}function lf(){return ot(Ci)}function cf(e){return ot(_a)}function uf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Fy}=Object.prototype,{getPrototypeOf:Ai}=Object,{iterator:ki,toStringTag:df}=Symbol,Ti=(e=>t=>{const n=Fy.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),zt=e=>(e=e.toLowerCase(),t=>Ti(t)===e),Ri=e=>t=>typeof t===e,{isArray:ws}=Array,ps=Ri("undefined");function mo(e){return e!==null&&!ps(e)&&e.constructor!==null&&!ps(e.constructor)&&St(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ff=zt("ArrayBuffer");function By(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ff(e.buffer),t}const Dy=Ri("string"),St=Ri("function"),hf=Ri("number"),go=e=>e!==null&&typeof e=="object",Ny=e=>e===!0||e===!1,jo=e=>{if(Ti(e)!=="object")return!1;const t=Ai(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(df in e)&&!(ki in e)},Ly=e=>{if(!go(e)||mo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},My=zt("Date"),Vy=zt("File"),jy=e=>!!(e&&typeof e.uri<"u"),Uy=e=>e&&typeof e.getParts<"u",Hy=zt("Blob"),zy=zt("FileList"),qy=e=>go(e)&&St(e.pipe);function Wy(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const oc=Wy(),ic=typeof oc.FormData<"u"?oc.FormData:void 0,Ky=e=>{if(!e)return!1;if(ic&&e instanceof ic)return!0;const t=Ai(e);if(!t||t===Object.prototype||!St(e.append))return!1;const n=Ti(e);return n==="formdata"||n==="object"&&St(e.toString)&&e.toString()==="[object FormData]"},Gy=zt("URLSearchParams"),[Jy,Xy,Yy,Qy]=["ReadableStream","Request","Response","Headers"].map(zt),Zy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),ws(e))for(s=0,o=e.length;s0;)if(o=n[s],t===o.toLowerCase())return o;return null}const Fn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mf=e=>!ps(e)&&e!==Fn;function $r(...e){const{caseless:t,skipUndefined:n}=mf(this)&&this||{},s={},o=(i,r)=>{if(r==="__proto__"||r==="constructor"||r==="prototype")return;const a=t&&pf(s,r)||r,l=Fr(s,a)?s[a]:void 0;jo(l)&&jo(i)?s[a]=$r(l,i):jo(i)?s[a]=$r({},i):ws(i)?s[a]=i.slice():(!n||!ps(i))&&(s[a]=i)};for(let i=0,r=e.length;i(vo(t,(o,i)=>{n&&St(o)?Object.defineProperty(e,i,{__proto__:null,value:uf(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),tb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nb=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},sb=(e,t,n,s)=>{let o,i,r;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)r=o[i],(!s||s(r,e,t))&&!a[r]&&(t[r]=e[r],a[r]=!0);e=n!==!1&&Ai(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ob=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},ib=e=>{if(!e)return null;if(ws(e))return e;let t=e.length;if(!hf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ai(Uint8Array)),ab=(e,t)=>{const s=(e&&e[ki]).call(e);let o;for(;(o=s.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},lb=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},cb=zt("HTMLFormElement"),ub=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),Fr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),db=zt("RegExp"),gf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};vo(n,(o,i)=>{let r;(r=t(o,i,e))!==!1&&(s[i]=r||o)}),Object.defineProperties(e,s)},fb=e=>{gf(e,(t,n)=>{if(St(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if(St(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},hb=(e,t)=>{const n={},s=o=>{o.forEach(i=>{n[i]=!0})};return ws(e)?s(e):s(String(e).split(t)),n},pb=()=>{},mb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function gb(e){return!!(e&&St(e.append)&&e[df]==="FormData"&&e[ki])}const vb=e=>{const t=new WeakSet,n=s=>{if(go(s)){if(t.has(s))return;if(mo(s))return s;if(!("toJSON"in s)){t.add(s);const o=ws(s)?[]:{};return vo(s,(i,r)=>{const a=n(i);!ps(a)&&(o[r]=a)}),t.delete(s),o}}return s};return n(e)},_b=zt("AsyncFunction"),yb=e=>e&&(go(e)||St(e))&&St(e.then)&&St(e.catch),vf=((e,t)=>e?setImmediate:t?((n,s)=>(Fn.addEventListener("message",({source:o,data:i})=>{o===Fn&&i===n&&s.length&&s.shift()()},!1),o=>{s.push(o),Fn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",St(Fn.postMessage)),bb=typeof queueMicrotask<"u"?queueMicrotask.bind(Fn):typeof process<"u"&&process.nextTick||vf,wb=e=>e!=null&&St(e[ki]),P={isArray:ws,isArrayBuffer:ff,isBuffer:mo,isFormData:Ky,isArrayBufferView:By,isString:Dy,isNumber:hf,isBoolean:Ny,isObject:go,isPlainObject:jo,isEmptyObject:Ly,isReadableStream:Jy,isRequest:Xy,isResponse:Yy,isHeaders:Qy,isUndefined:ps,isDate:My,isFile:Vy,isReactNativeBlob:jy,isReactNative:Uy,isBlob:Hy,isRegExp:db,isFunction:St,isStream:qy,isURLSearchParams:Gy,isTypedArray:rb,isFileList:zy,forEach:vo,merge:$r,extend:eb,trim:Zy,stripBOM:tb,inherits:nb,toFlatObject:sb,kindOf:Ti,kindOfTest:zt,endsWith:ob,toArray:ib,forEachEntry:ab,matchAll:lb,isHTMLForm:cb,hasOwnProperty:Fr,hasOwnProp:Fr,reduceDescriptors:gf,freezeMethods:fb,toObjectSet:hb,toCamelCase:ub,noop:pb,toFiniteNumber:mb,findKey:pf,global:Fn,isContextDefined:mf,isSpecCompliantForm:gb,toJSONObject:vb,isAsyncFn:_b,isThenable:yb,setImmediate:vf,asap:bb,isIterable:wb},Sb=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Eb=e=>{const t={};let n,s,o;return e&&e.split(` `).forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),s=r.substring(o+1).trim(),!(!n||t[n]&&Sb[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t};function xb(e){let t=0,n=e.length;for(;tt;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Cb=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Ab=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ya(e,t){return P.isArray(e)?e.map(n=>ya(n,t)):xb(String(e).replace(t,""))}const kb=e=>ya(e,Cb),Tb=e=>ya(e,Ab);function _f(e){const t=Object.create(null);return P.forEach(e.toJSON(),(n,s)=>{t[s]=Tb(n)}),t}const rc=Symbol("internals");function Os(e){return e&&String(e).trim().toLowerCase()}function Uo(e){return e===!1||e==null?e:P.isArray(e)?e.map(Uo):kb(String(e))}function Rb(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Ib=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zi(e,t,n,s,o){if(P.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!P.isString(t)){if(P.isString(s))return t.indexOf(s)!==-1;if(P.isRegExp(s))return s.test(t)}}function Pb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Ob(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(o,i,r){return this[s].call(this,t,o,i,r)},configurable:!0})})}let vt=class{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function i(a,l,u){const c=Os(l);if(!c)throw new Error("header name must be a non-empty string");const d=P.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=Uo(a))}const r=(a,l)=>P.forEach(a,(u,c)=>i(u,c,l));if(P.isPlainObject(t)||t instanceof this.constructor)r(t,n);else if(P.isString(t)&&(t=t.trim())&&!Ib(t))r(Eb(t),n);else if(P.isObject(t)&&P.isIterable(t)){let a={},l,u;for(const c of t){if(!P.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?P.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}r(a,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=Os(t),t){const s=P.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return Rb(o);if(P.isFunction(n))return n.call(this,o,s);if(P.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Os(t),t){const s=P.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Zi(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function i(r){if(r=Os(r),r){const a=P.findKey(s,r);a&&(!n||Zi(s,s[a],a,n))&&(delete s[a],o=!0)}}return P.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const i=n[s];(!t||Zi(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,s={};return P.forEach(this,(o,i)=>{const r=P.findKey(s,i);if(r){n[r]=Uo(o),delete n[i];return}const a=t?Pb(i):String(i).trim();a!==i&&delete n[i],n[a]=Uo(o),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&P.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[rc]=this[rc]={accessors:{}}).accessors,o=this.prototype;function i(r){const a=Os(r);s[a]||(Ob(o,r),s[a]=!0)}return P.isArray(t)?t.forEach(i):i(t),this}};vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(vt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});P.freezeMethods(vt);const $b="[REDACTED ****]";function Fb(e){if(P.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(P.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Bb(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),s=[],o=i=>{if(i===null||typeof i!="object"||P.isBuffer(i))return i;if(s.indexOf(i)!==-1)return;i instanceof vt&&(i=i.toJSON()),s.push(i);let r;if(P.isArray(i))r=[],i.forEach((a,l)=>{const u=o(a);P.isUndefined(u)||(r[l]=u)});else{if(!P.isPlainObject(i)&&Fb(i))return s.pop(),i;r=Object.create(null);for(const[a,l]of Object.entries(i)){const u=n.has(a.toLowerCase())?$b:o(l);P.isUndefined(u)||(r[a]=u)}}return s.pop(),r};return o(e)}let de=class yf extends Error{static from(t,n,s,o,i,r){const a=new yf(t.message,n||t.code,s,o,i);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),r&&Object.assign(a,r),a}constructor(t,n,s,o,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&P.hasOwnProp(t,"redact")?t.redact:void 0,s=P.isArray(n)&&n.length>0?Bb(t,n):P.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};de.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";de.ERR_BAD_OPTION="ERR_BAD_OPTION";de.ECONNABORTED="ECONNABORTED";de.ETIMEDOUT="ETIMEDOUT";de.ECONNREFUSED="ECONNREFUSED";de.ERR_NETWORK="ERR_NETWORK";de.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";de.ERR_DEPRECATED="ERR_DEPRECATED";de.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";de.ERR_BAD_REQUEST="ERR_BAD_REQUEST";de.ERR_CANCELED="ERR_CANCELED";de.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";de.ERR_INVALID_URL="ERR_INVALID_URL";de.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Db=null;function Br(e){return P.isPlainObject(e)||P.isArray(e)}function bf(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function er(e,t,n){return e?e.concat(t).map(function(o,i){return o=bf(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Nb(e){return P.isArray(e)&&!e.some(Br)}const Lb=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function Ii(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,_){return!P.isUndefined(_[v])});const s=n.metaTokens,o=n.visitor||d,i=n.dots,r=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,u=a&&P.isSpecCompliantForm(t);if(!P.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(P.isDate(g))return g.toISOString();if(P.isBoolean(g))return g.toString();if(!u&&P.isBlob(g))throw new de("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(g)||P.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,v,_){let w=g;if(P.isReactNative(t)&&P.isReactNativeBlob(g))return t.append(er(_,v,i),c(g)),!1;if(g&&!_&&typeof g=="object"){if(P.endsWith(v,"{}"))v=s?v:v.slice(0,-2),g=JSON.stringify(g);else if(P.isArray(g)&&Nb(g)||(P.isFileList(g)||P.endsWith(v,"[]"))&&(w=P.toArray(g)))return v=bf(v),w.forEach(function(A,m){!(P.isUndefined(A)||A===null)&&t.append(r===!0?er([v],m,i):r===null?v:v+"[]",c(A))}),!1}return Br(g)?!0:(t.append(er(_,v,i),c(g)),!1)}const f=[],h=Object.assign(Lb,{defaultVisitor:d,convertValue:c,isVisitable:Br});function y(g,v,_=0){if(!P.isUndefined(g)){if(_>l)throw new de("Object is too deeply nested ("+_+" levels). Max depth: "+l,de.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),P.forEach(g,function(T,A){(!(P.isUndefined(T)||T===null)&&o.call(t,T,P.isString(A)?A.trim():A,v,h))===!0&&y(T,v?v.concat(A):[A],_+1)}),f.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return y(e),t}function ac(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function ba(e,t){this._pairs=[],e&&Ii(e,this,t)}const wf=ba.prototype;wf.append=function(t,n){this._pairs.push([t,n])};wf.toString=function(t){const n=t?function(s){return t.call(this,s,ac)}:ac;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Mb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Sf(e,t,n){if(!t)return e;const s=n&&n.encode||Mb,o=P.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let r;if(i?r=i(t,o):r=P.isURLSearchParams(t)?t.toString():new ba(t,o).toString(s),r){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class lc{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,function(s){s!==null&&t(s)})}}const wa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Vb=typeof URLSearchParams<"u"?URLSearchParams:ba,jb=typeof FormData<"u"?FormData:null,Ub=typeof Blob<"u"?Blob:null,Hb={isBrowser:!0,classes:{URLSearchParams:Vb,FormData:jb,Blob:Ub},protocols:["http","https","file","blob","url","data"]},Sa=typeof window<"u"&&typeof document<"u",Dr=typeof navigator=="object"&&navigator||void 0,zb=Sa&&(!Dr||["ReactNative","NativeScript","NS"].indexOf(Dr.product)<0),qb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Wb=Sa&&window.location.href||"http://localhost",Kb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Sa,hasStandardBrowserEnv:zb,hasStandardBrowserWebWorkerEnv:qb,navigator:Dr,origin:Wb},Symbol.toStringTag,{value:"Module"})),ct={...Kb,...Hb};function Gb(e,t){return Ii(e,new ct.classes.URLSearchParams,{visitor:function(n,s,o,i){return ct.isNode&&P.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Jb(e){return P.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xb(e){const t={},n=Object.keys(e);let s;const o=n.length;let i;for(s=0;s=n.length;return r=!r&&P.isArray(o)?o.length:r,l?(P.hasOwnProp(o,r)?o[r]=P.isArray(o[r])?o[r].concat(s):[o[r],s]:o[r]=s,!a):((!P.hasOwnProp(o,r)||!P.isObject(o[r]))&&(o[r]=[]),t(n,s,o[r],i)&&P.isArray(o[r])&&(o[r]=Xb(o[r])),!a)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(s,o)=>{t(Jb(s),o,n,0)}),n}return null}const Jn=(e,t)=>e!=null&&P.hasOwnProp(e,t)?e[t]:void 0;function Yb(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const _o={transitional:wa,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,i=P.isObject(t);if(i&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return o?JSON.stringify(Ef(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){const l=Jn(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return Gb(t,l).toString();if((a=P.isFileList(t))||s.indexOf("multipart/form-data")>-1){const u=Jn(this,"env"),c=u&&u.FormData;return Ii(a?{"files[]":t}:t,c&&new c,l)}}return i||o?(n.setContentType("application/json",!1),Yb(t)):t}],transformResponse:[function(t){const n=Jn(this,"transitional")||_o.transitional,s=n&&n.forcedJSONParsing,o=Jn(this,"responseType"),i=o==="json";if(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.isString(t)&&(s&&!o||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,Jn(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?de.from(l,de.ERR_BAD_RESPONSE,this,null,Jn(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch","query"],e=>{_o.headers[e]={}});function tr(e,t){const n=this||_o,s=t||n,o=vt.from(s.headers);let i=s.data;return P.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function xf(e){return!!(e&&e.__CANCEL__)}let yo=class extends de{constructor(t,n,s){super(t??"canceled",de.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function Cf(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new de("Request failed with status code "+n.status,n.status>=400&&n.status<500?de.ERR_BAD_REQUEST:de.ERR_BAD_RESPONSE,n.config,n.request,n))}function Qb(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Zb(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,i=0,r;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=s[i];r||(r=u),n[o]=l,s[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-r{n=c,o=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=s?r(u,c):(o=u,i||(i=setTimeout(()=>{i=null,r(o)},s-d)))},()=>o&&r(o)]}const ei=(e,t,n=3)=>{let s=0;const o=Zb(50,250);return ew(i=>{if(!i||typeof i.loaded!="number")return;const r=i.loaded,a=i.lengthComputable?i.total:void 0,l=a!=null?Math.min(r,a):r,u=Math.max(0,l-s),c=o(u);s=Math.max(s,l);const d={loaded:l,total:a,progress:a?l/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a?(a-l)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},cc=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},uc=e=>(...t)=>P.asap(()=>e(...t)),tw=ct.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ct.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ct.origin),ct.navigator&&/(msie|trident)/i.test(ct.navigator.userAgent)):()=>!0,nw=ct.hasStandardBrowserEnv?{write(e,t,n,s,o,i,r){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];P.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),P.isString(s)&&a.push(`path=${s}`),P.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),P.isString(r)&&a.push(`SameSite=${r}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;ne instanceof vt?{...e}:e;function Mn(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(u,c,d,f){return P.isPlainObject(u)&&P.isPlainObject(c)?P.merge.call({caseless:f},u,c):P.isPlainObject(c)?P.merge({},c):P.isArray(c)?c.slice():c}function o(u,c,d,f){if(P.isUndefined(c)){if(!P.isUndefined(u))return s(void 0,u,d,f)}else return s(u,c,d,f)}function i(u,c){if(!P.isUndefined(c))return s(void 0,c)}function r(u,c){if(P.isUndefined(c)){if(!P.isUndefined(u))return s(void 0,u)}else return s(void 0,c)}function a(u,c,d){if(P.hasOwnProp(t,d))return s(u,c);if(P.hasOwnProp(e,d))return s(void 0,u)}const l={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,allowedSocketPaths:r,responseEncoding:r,validateStatus:a,headers:(u,c,d)=>o(dc(u),dc(c),d,!0)};return P.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const d=P.hasOwnProp(l,c)?l[c]:o,f=P.hasOwnProp(e,c)?e[c]:void 0,h=P.hasOwnProp(t,c)?t[c]:void 0,y=d(f,h,c);P.isUndefined(y)&&d!==a||(n[c]=y)}),n}const iw=["content-type","content-length"];function rw(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([s,o])=>{iw.includes(s.toLowerCase())&&e.set(s,o)})}const aw=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),kf=e=>{const t=Mn({},e),n=f=>P.hasOwnProp(t,f)?t[f]:void 0,s=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),r=n("xsrfCookieName");let a=n("headers");const l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),d=n("url");if(t.headers=a=vt.from(a),t.url=Sf(Af(u,d,c),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?aw(l.password):""))),P.isFormData(s)&&(ct.hasStandardBrowserEnv||ct.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):P.isFunction(s.getHeaders)&&rw(a,s.getHeaders(),n("formDataHeaderPolicy"))),ct.hasStandardBrowserEnv&&(P.isFunction(o)&&(o=o(t)),o===!0||o==null&&tw(t.url))){const h=i&&r&&nw.read(r);h&&a.set(i,h)}return t},lw=typeof XMLHttpRequest<"u",cw=lw&&function(e){return new Promise(function(n,s){const o=kf(e);let i=o.data;const r=vt.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=o,c,d,f,h,y;function g(){h&&h(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function _(){if(!v)return;const T=vt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:T,config:e,request:v};Cf(function(I){n(I),g()},function(I){s(I),g()},m),v=null}"onloadend"in v?v.onloadend=_:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.startsWith("file:"))||setTimeout(_)},v.onabort=function(){v&&(s(new de("Request aborted",de.ECONNABORTED,e,v)),g(),v=null)},v.onerror=function(A){const m=A&&A.message?A.message:"Network Error",k=new de(m,de.ERR_NETWORK,e,v);k.event=A||null,s(k),g(),v=null},v.ontimeout=function(){let A=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const m=o.transitional||wa;o.timeoutErrorMessage&&(A=o.timeoutErrorMessage),s(new de(A,m.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,v)),g(),v=null},i===void 0&&r.setContentType(null),"setRequestHeader"in v&&P.forEach(_f(r),function(A,m){v.setRequestHeader(m,A)}),P.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),u&&([f,y]=ei(u,!0),v.addEventListener("progress",f)),l&&v.upload&&([d,h]=ei(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(c=T=>{v&&(s(!T||T.type?new yo(null,e,v):T),v.abort(),g(),v=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const w=Qb(o.url);if(w&&!ct.protocols.includes(w)){s(new de("Unsupported protocol "+w+":",de.ERR_BAD_REQUEST,e));return}v.send(i||null)})},uw=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const o=function(l){if(!s){s=!0,r();const u=l instanceof Error?l:this.reason;n.abort(u instanceof de?u:new yo(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new de(`timeout of ${t}ms exceeded`,de.ETIMEDOUT))},t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>P.asap(r),a},dw=function*(e,t){let n=e.byteLength;if(n{const o=fw(e,t);let i=0,r,a=l=>{r||(r=!0,s&&s(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await o.next();if(u){a(),l.close();return}let d=c.byteLength;if(n){let f=i+=d;n(f)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),o.return()}},{highWaterMark:2})};function pw(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),s=e.slice(t+1);if(/;base64/i.test(n)){let r=s.length;const a=s.length;for(let h=0;h=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(r-=2,h+=2)}let l=0,u=a-1;const c=h=>h>=2&&s.charCodeAt(h-2)===37&&s.charCodeAt(h-1)===51&&(s.charCodeAt(h)===68||s.charCodeAt(h)===100);u>=0&&(s.charCodeAt(u)===61?(l++,u--):c(u)&&(l++,u-=3)),l===1&&u>=0&&(s.charCodeAt(u)===61||c(u))&&l++;const f=Math.floor(r/4)*3-(l||0);return f>0?f:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(s,"utf8");let i=0;for(let r=0,a=s.length;r=55296&&l<=56319&&r+1=56320&&u<=57343?(i+=4,r++):i+=3}else i+=3}return i}const Ea="1.16.1",hc=64*1024,{isFunction:Fo}=P,pc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mw=e=>{const t=P.global!==void 0&&P.global!==null?P.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=P.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:r}=e,a=o?Fo(o):typeof fetch=="function",l=Fo(i),u=Fo(r);if(!a)return!1;const c=a&&Fo(n),d=a&&(typeof s=="function"?(_=>w=>_.encode(w))(new s):async _=>new Uint8Array(await new i(_).arrayBuffer())),f=l&&c&&pc(()=>{let _=!1;const w=new i(ct.origin,{body:new n,method:"POST",get duplex(){return _=!0,"half"}}),T=w.headers.has("Content-Type");return w.body!=null&&w.body.cancel(),_&&!T}),h=u&&c&&pc(()=>P.isReadableStream(new r("").body)),y={stream:h&&(_=>_.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(_=>{!y[_]&&(y[_]=(w,T)=>{let A=w&&w[_];if(A)return A.call(w);throw new de(`Response type '${_}' is not supported`,de.ERR_NOT_SUPPORT,T)})});const g=async _=>{if(_==null)return 0;if(P.isBlob(_))return _.size;if(P.isSpecCompliantForm(_))return(await new i(ct.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(P.isArrayBufferView(_)||P.isArrayBuffer(_))return _.byteLength;if(P.isURLSearchParams(_)&&(_=_+""),P.isString(_))return(await d(_)).byteLength},v=async(_,w)=>{const T=P.toFiniteNumber(_.getContentLength());return T??g(w)};return async _=>{let{url:w,method:T,data:A,signal:m,cancelToken:k,timeout:I,onDownloadProgress:z,onUploadProgress:F,responseType:B,headers:K,withCredentials:U="same-origin",fetchOptions:ae,maxContentLength:fe,maxBodyLength:ue}=kf(_);const pe=P.isNumber(fe)&&fe>-1,le=P.isNumber(ue)&&ue>-1;let me=o||fetch;B=B?(B+"").toLowerCase():"text";let Q=uw([m,k&&k.toAbortSignal()],I),ee=null;const X=Q&&Q.unsubscribe&&(()=>{Q.unsubscribe()});let q;try{if(pe&&typeof w=="string"&&w.startsWith("data:")&&pw(w)>fe)throw new de("maxContentLength size of "+fe+" exceeded",de.ERR_BAD_RESPONSE,_,ee);if(le&&T!=="get"&&T!=="head"){const $=await v(K,A);if(typeof $=="number"&&isFinite($)&&$>ue)throw new de("Request body larger than maxBodyLength limit",de.ERR_BAD_REQUEST,_,ee)}if(F&&f&&T!=="get"&&T!=="head"&&(q=await v(K,A))!==0){let $=new i(w,{method:"POST",body:A,duplex:"half"}),V;if(P.isFormData(A)&&(V=$.headers.get("content-type"))&&K.setContentType(V),$.body){const[Z,ce]=cc(q,ei(uc(F)));A=fc($.body,hc,Z,ce)}}P.isString(U)||(U=U?"include":"omit");const Y=l&&"credentials"in i.prototype;if(P.isFormData(A)){const $=K.getContentType();$&&/^multipart\/form-data/i.test($)&&!/boundary=/i.test($)&&K.delete("content-type")}K.set("User-Agent","axios/"+Ea,!1);const ye={...ae,signal:Q,method:T.toUpperCase(),headers:_f(K.normalize()),body:A,duplex:"half",credentials:Y?U:void 0};ee=l&&new i(w,ye);let te=await(l?me(ee,ae):me(w,ye));if(pe){const $=P.toFiniteNumber(te.headers.get("content-length"));if($!=null&&$>fe)throw new de("maxContentLength size of "+fe+" exceeded",de.ERR_BAD_RESPONSE,_,ee)}const he=h&&(B==="stream"||B==="response");if(h&&te.body&&(z||pe||he&&X)){const $={};["status","statusText","headers"].forEach(R=>{$[R]=te[R]});const V=P.toFiniteNumber(te.headers.get("content-length")),[Z,ce]=z&&cc(V,ei(uc(z),!0))||[];let b=0;const x=R=>{if(pe&&(b=R,b>fe))throw new de("maxContentLength size of "+fe+" exceeded",de.ERR_BAD_RESPONSE,_,ee);Z&&Z(R)};te=new r(fc(te.body,hc,x,()=>{ce&&ce(),X&&X()}),$)}B=B||"text";let S=await y[P.findKey(y,B)||"text"](te,_);if(pe&&!h&&!he){let $;if(S!=null&&(typeof S.byteLength=="number"?$=S.byteLength:typeof S.size=="number"?$=S.size:typeof S=="string"&&($=typeof s=="function"?new s().encode(S).byteLength:S.length)),typeof $=="number"&&$>fe)throw new de("maxContentLength size of "+fe+" exceeded",de.ERR_BAD_RESPONSE,_,ee)}return!he&&X&&X(),await new Promise(($,V)=>{Cf($,V,{data:S,headers:vt.from(te.headers),status:te.status,statusText:te.statusText,config:_,request:ee})})}catch(Y){if(X&&X(),Q&&Q.aborted&&Q.reason instanceof de){const ye=Q.reason;throw ye.config=_,ee&&(ye.request=ee),Y!==ye&&(ye.cause=Y),ye}throw Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new de("Network Error",de.ERR_NETWORK,_,ee,Y&&Y.response),{cause:Y.cause||Y}):de.from(Y,Y&&Y.code,_,ee,Y&&Y.response)}}},gw=new Map,Tf=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:o}=t,i=[s,o,n];let r=i.length,a=r,l,u,c=gw;for(;a--;)l=i[a],u=c.get(l),u===void 0&&c.set(l,u=a?new Map:mw(t)),c=u;return u};Tf();const xa={http:Db,xhr:cw,fetch:{get:Tf}};P.forEach(xa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const mc=e=>`- ${e}`,vw=e=>P.isFunction(e)||e===null||e===!1;function _w(e,t){e=P.isArray(e)?e:[e];const{length:n}=e;let s,o;const i={};for(let r=0;r`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?r.length>1?`since : `+r.map(mc).join(` `):" "+mc(r[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const Rf={getAdapter:_w,adapters:xa};function nr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yo(null,e)}function gc(e){return nr(e),e.headers=vt.from(e.headers),e.data=tr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Rf.getAdapter(e.adapter||_o.adapter,e)(e).then(function(s){nr(e),e.response=s;try{s.data=tr.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=vt.from(s.headers),s},function(s){if(!xf(s)&&(nr(e),s&&s.response)){e.response=s.response;try{s.response.data=tr.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=vt.from(s.response.headers)}return Promise.reject(s)})}const Pi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pi[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const vc={};Pi.transitional=function(t,n,s){function o(i,r){return"[Axios v"+Ea+"] Transitional option '"+i+"'"+r+(s?". "+s:"")}return(i,r,a)=>{if(t===!1)throw new de(o(r," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED);return n&&!vc[r]&&(vc[r]=!0,console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,r,a):!0}};Pi.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function yw(e,t,n){if(typeof e!="object")throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const i=s[o],r=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(r){const a=e[i],l=a===void 0||r(a,i,e);if(l!==!0)throw new de("option "+i+" must be "+l,de.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}}const Ho={assertOptions:yw,validators:Pi},It=Ho.validators;let Ln=class{constructor(t){this.defaults=t||{},this.interceptors={request:new lc,response:new lc}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=(()=>{if(!o.stack)return"";const r=o.stack.indexOf(` `);return r===-1?"":o.stack.slice(r+1)})();try{if(!s.stack)s.stack=i;else if(i){const r=i.indexOf(` `),a=r===-1?-1:i.indexOf(` `,r+1),l=a===-1?"":i.slice(a+1);String(s.stack).endsWith(l)||(s.stack+=` `+i)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mn(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:i}=n;s!==void 0&&Ho.assertOptions(s,{silentJSONParsing:It.transitional(It.boolean),forcedJSONParsing:It.transitional(It.boolean),clarifyTimeoutError:It.transitional(It.boolean),legacyInterceptorReqResOrdering:It.transitional(It.boolean)},!1),o!=null&&(P.isFunction(o)?n.paramsSerializer={serialize:o}:Ho.assertOptions(o,{encode:It.function,serialize:It.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ho.assertOptions(n,{baseUrl:It.spelling("baseURL"),withXsrfToken:It.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=i&&P.merge(i.common,i[n.method]);i&&P.forEach(["delete","get","head","post","put","patch","query","common"],y=>{delete i[y]}),n.headers=vt.concat(r,i);const a=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;l=l&&g.synchronous;const v=n.transitional||wa;v&&v.legacyInterceptorReqResOrdering?a.unshift(g.fulfilled,g.rejected):a.push(g.fulfilled,g.rejected)});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,f;if(!l){const y=[gc.bind(this),void 0];for(y.unshift(...a),y.push(...u),f=y.length,c=Promise.resolve(n);d{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](o);s._listeners=null}),this.promise.then=o=>{let i;const r=new Promise(a=>{s.subscribe(a),i=a}).then(o);return r.cancel=function(){s.unsubscribe(i)},r},t(function(i,r,a){s.reason||(s.reason=new yo(i,r,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new If(function(o){t=o}),cancel:t}}};function ww(e){return function(n){return e.apply(null,n)}}function Sw(e){return P.isObject(e)&&e.isAxiosError===!0}const Nr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Nr).forEach(([e,t])=>{Nr[t]=e});function Pf(e){const t=new Ln(e),n=uf(Ln.prototype.request,t);return P.extend(n,Ln.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Pf(Mn(e,o))},n}const Je=Pf(_o);Je.Axios=Ln;Je.CanceledError=yo;Je.CancelToken=bw;Je.isCancel=xf;Je.VERSION=Ea;Je.toFormData=Ii;Je.AxiosError=de;Je.Cancel=Je.CanceledError;Je.all=function(t){return Promise.all(t)};Je.spread=ww;Je.isAxiosError=Sw;Je.mergeConfig=Mn;Je.AxiosHeaders=vt;Je.formToJSON=e=>Ef(P.isHTMLForm(e)?new FormData(e):e);Je.getAdapter=Rf.getAdapter;Je.HttpStatusCode=Nr;Je.default=Je;const{Axios:mC,AxiosError:gC,CanceledError:vC,isCancel:_C,CancelToken:yC,VERSION:bC,all:wC,Cancel:SC,isAxiosError:EC,spread:xC,toFormData:CC,AxiosHeaders:AC,HttpStatusCode:kC,formToJSON:TC,getAdapter:RC,mergeConfig:IC,create:PC}=Je;let Lr=null;function Ew(e){Lr=e}async function xw(){return Lr?(await Lr(),!0):!1}const Ne=Je.create({baseURL:"/api",timeout:2e4,headers:{"Content-Type":"application/json"}});Ne.interceptors.request.use(e=>{const t=localStorage.getItem("h5_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));Ne.interceptors.response.use(e=>{const t=e.data;return t.code!==0?t.code===1002?(yc("biz1002"),Promise.reject({code:1002,message:t.message||"未授权"})):(Ae(t.message||"请求失败"),Promise.reject({code:t.code,message:t.message||"请求失败"})):t.data},async e=>{let t="网络异常,请稍后重试",n=-1;if(e.response)switch(n=e.response.status,e.response.status){case 401:await yc("http401");break;case 403:t="拒绝访问";break;case 404:t="请求的资源不存在";break;case 500:t="服务器内部错误";break;default:t=`请求失败 (${e.response.status})`}else e.code==="ECONNABORTED"&&(t="请求超时,请稍后重试");return n!==401&&Ae(t),Promise.reject({code:n,message:t})});const Cw="oauth_redirect_count",_c=3;let $s=null;async function yc(e){const t=e==="http401"?"HTTP 401":"业务码 1002";return $s?(console.warn(`[API] ${t} 未授权 — 已有处理进行中,等待完成`),$s):(console.warn(`[API] ${t} 未授权,清除凭证并跳转登录`),$s=(async()=>{try{if(localStorage.removeItem("h5_token"),localStorage.removeItem("employee_id"),localStorage.removeItem("employee_name"),"wwa8c87970b2011f41"){const s=parseInt(localStorage.getItem(Cw)||"0",10);if(s>=_c){console.error("[API] OAuth2 重定向次数超限,疑似无限循环,停止重定向"),Ae("登录状态异常,请刷新页面重试");return}console.warn(`[API] OAuth2 重定向计数: ${s}/${_c}`),await xw()||(console.warn("[API] 认证过期处理器未注册,降级为刷新页面"),window.location.reload())}}catch(n){console.warn("[API] 401 处理失败,刷新页面:",n),window.location.reload()}finally{$s=null}})(),$s)}function Mr(e){return{message_id:e.id||e.message_id||"",conversation_id:e.conversation_id||"",message_type:e.sender_type||e.message_type||"text",msg_type:e.msg_type,content:e.content||"",sender_name:e.sender_name||"",created_at:e.created_at||"",media_url:e.media_url,file_name:e.file_name,file_size:e.file_size,extra_data:e.extra_data,reply_to_id:e.reply_to_id}}function Of(e){return(e||[]).map(Mr)}async function Aw(){return await Ne.get("/h5/user")}async function kw(){return await Ne.get("/h5/conversations/current")}async function Tw(e){const t=await Ne.post("/h5/conversations/current/messages",e,{timeout:3e4});return{user_message:Mr(t.user_message),ai_reply:t.ai_reply?Mr(t.ai_reply):t.ai_reply,is_guidance:t.is_guidance,ai_reply_count:t.ai_reply_count,can_call_agent:t.can_call_agent}}async function Rw(e){const n=await Ne.get("/h5/conversations/current/messages/poll",{params:e}),s=(n==null?void 0:n.items)||n||[];return Of(s)}async function bc(e){const n=await Ne.get("/h5/conversations/current/messages",{params:e}),s=(n==null?void 0:n.items)||[];return{items:Of(s),has_more:(n==null?void 0:n.has_more)||!1}}async function Iw(e){return await Ne.post("/h5/conversations/current/shake",e)}async function Pw(){const t=await Ne.get("/h5/approval-links");return(t==null?void 0:t.items)||t||[]}async function Ow(){return await Ne.get("/approval/keywords")||[]}async function $w(e){return await Ne.post("/approval/jump",{template_id:e})}async function Fw(e){return await Ne.post("/approval/detect-intent",{text:e})}async function Bw(){const t=await Ne.get("/h5/software-downloads");return(t==null?void 0:t.items)||t||[]}async function Dw(e){return await Ne.post(`/h5/conversations/${e}/join`)}async function Nw(e){return await Ne.post(`/h5/conversations/${e}/leave-participant`)}async function Lw(e,t){return await Ne.post(`/conversation/${e}/evaluate`,t)}async function Mw(e){return await Ne.get(`/conversation/${e}/evaluation`)}async function Vw(e){return await Ne.post("/h5/oauth/callback",e)}async function jw(e){return await Ne.post("/h5/mock-login",e)}async function Uw(){return await Ne.get("/h5/me")}async function Hw(){const e=window.location.origin+"/h5/";return await Ne.get("/h5/oauth/authorize",{params:{redirect_uri:e}})}async function zw(e){return await Ne.post("/agents/password",e)}const sr="h5_token",In="employee_id",Xn="employee_name",Fs="oauth_redirect_count",wc=3,Ot=ga("employee",()=>{const e=M(localStorage.getItem(sr)||"");e.value&&!r(e.value)&&localStorage.removeItem(Fs);const t=M(null),n=M(!1),s=G(()=>e.value?!r(e.value):!1),o=G(()=>{var m;return((m=t.value)==null?void 0:m.employee_id)||localStorage.getItem(In)||""}),i=G(()=>{var m;return((m=t.value)==null?void 0:m.employee_name)||localStorage.getItem(Xn)||""});function r(m){try{const k=m.split(".");if(k.length!==3)return!1;const I=JSON.parse(atob(k[1]));return I.exp?Math.floor(Date.now()/1e3)>=I.exp-60:!1}catch{return!1}}function a(m){e.value=m,localStorage.setItem(sr,m)}function l(){e.value="",t.value=null,localStorage.removeItem(sr),localStorage.removeItem(In),localStorage.removeItem(Xn)}function u(){localStorage.removeItem(Fs)}function c(){const k=parseInt(localStorage.getItem(Fs)||"0",10)+1;return localStorage.setItem(Fs,String(k)),k}function d(){return parseInt(localStorage.getItem(Fs)||"0",10)>=wc}async function f(m,k){n.value=!0;try{const I=await Vw({code:m,state:k});return a(I.token),localStorage.setItem(In,I.employee_id),localStorage.setItem(Xn,I.employee_name),t.value={employee_id:I.employee_id,employee_name:I.employee_name,department:I.department,position:I.position,mobile:"",email:"",avatar:I.avatar,is_vip:!1},console.log("[EmployeeStore] OAuth2 登录成功:",I.employee_name),u(),I}catch(I){throw console.error("[EmployeeStore] OAuth2 登录失败:",I),I}finally{n.value=!1}}async function h(m,k){n.value=!0;try{const I=await jw({employee_id:m,employee_name:k||"测试用户"});return a(I.token),localStorage.setItem(In,I.employee_id),localStorage.setItem(Xn,I.employee_name),t.value={employee_id:I.employee_id,employee_name:I.employee_name,department:I.department,position:I.position,mobile:"",email:"",avatar:I.avatar,is_vip:!1},console.log("[EmployeeStore] Mock 登录成功:",I.employee_name),u(),I}catch(I){throw console.error("[EmployeeStore] Mock 登录失败:",I),I}finally{n.value=!1}}async function y(){if(e.value)try{const m=await Uw();t.value=m,localStorage.setItem(In,m.employee_id),localStorage.setItem(Xn,m.employee_name),console.log("[EmployeeStore] 获取员工信息成功:",m.employee_name)}catch(m){throw console.error("[EmployeeStore] 获取员工信息失败:",m),m}}async function g(){const m=window.location.origin+"/h5/";try{const F=await Hw();if(F.authorize_url){window.location.href=F.authorize_url;return}}catch(F){console.warn("[EmployeeStore] 从后端获取授权URL失败,尝试本地构造:",F)}const k="wwa8c87970b2011f41",I=encodeURIComponent(m),z=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${k}&redirect_uri=${I}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`;window.location.href=z}async function v(){if(console.warn("[EmployeeStore] Token 已过期或无效,重新授权"),d()){console.error("[EmployeeStore] OAuth2 重定向次数超限,疑似无限循环,停止重定向"),l(),u();const{showToast:k}=await ts(async()=>{const{showToast:I}=await import("./index-BfRCPsu1.js");return{showToast:I}},__vite__mapDeps([0,1,2,3]));k("登录状态异常,请刷新页面重试");return}l();const m=c();console.warn(`[EmployeeStore] OAuth2 重定向计数: ${m}/${wc}`),await g()}function _(m){localStorage.setItem(In,m),e.value="",t.value={employee_id:m,employee_name:"开发测试用户",department:"IT部",position:"开发工程师",mobile:"",email:"",avatar:"",is_vip:!1},console.log("[EmployeeStore] 开发模式登录:",m)}function w(){l(),console.log("[EmployeeStore] 已登出")}function T(m){a(m),u()}function A(m){t.value={employee_id:m.userid,employee_name:m.name,department:m.department||"",position:"",mobile:m.phone||"",email:m.email||"",avatar:m.avatar||"",is_vip:!1},localStorage.setItem(In,m.userid),localStorage.setItem(Xn,m.name)}return Ew(v),{token:e,employeeInfo:t,authenticating:n,isAuthenticated:s,employeeId:o,employeeName:i,handleOAuthCallback:f,mockLogin:h,fetchEmployeeInfo:y,redirectToOAuth:g,handleUnauthorized:v,devLogin:_,logout:w,setToken:T,setUserInfo:A}}),qw=Object.freeze(Object.defineProperty({__proto__:null,useEmployeeStore:Ot},Symbol.toStringTag,{value:"Module"})),Ww="h5_messages_cache",Kw=7,Gw=100;function Ca(e){return`${Ww}_${e}`}function Jw(e){try{const t=Ca(e),n=localStorage.getItem(t);if(!n)return null;const s=JSON.parse(n),o=s.timestamp||0,i=Date.now(),r=Kw*24*60*60*1e3;return i-o>r?(localStorage.removeItem(t),null):s.messages||null}catch(t){return console.warn("[Store] 读取消息缓存失败:",t),null}}function Bs(e,t){try{const n=Ca(e),s=t.slice(-Gw);localStorage.setItem(n,JSON.stringify({messages:s,timestamp:Date.now()}))}catch(n){console.warn("[Store] 保存消息缓存失败:",n)}}function Xw(e){try{const t=Ca(e);localStorage.removeItem(t)}catch(t){console.warn("[Store] 清除消息缓存失败:",t)}}function Yw(e,t){const n=new Map;return e.forEach(s=>n.set(s.message_id,s)),t.forEach(s=>n.set(s.message_id,s)),Array.from(n.values()).sort((s,o)=>new Date(s.created_at).getTime()-new Date(o.created_at).getTime())}const jt=ga("conversation",()=>{const e=M(null),t=M(null),n=M([]),s=M(!1),o=M(!1),i=M(!1),r=M(!0),a=M(null),l=M(!1),u=M([]),c=M(!1),d=M(""),f=M([]),h=M(""),y=M(!1),g=M([]),v=M(""),_=M(null),w=M([]),T=M(!1),A=M(null),m=M(new Set),k=G(()=>Ot().isAuthenticated),I=G(()=>t.value?t.value.status!=="resolved":!1),z=G(()=>!t.value||!e.value||t.value.employee_id===e.value.employee_id?!1:w.value.some(C=>{var N;return C.id===((N=e.value)==null?void 0:N.employee_id)})),F=G(()=>w.value.filter(N=>N.joined).length),B=G(()=>{const C={};for(const N of u.value)C[N.category]||(C[N.category]=[]),C[N.category].push(N);return C}),K=G(()=>{const C={};for(const N of f.value)C[N.category]||(C[N.category]=[]),C[N.category].push(N);return C});function U(C){const N=m.value;if(N.delete(C),N.add(C),N.size>500){const L=N.values().next().value;L&&N.delete(L)}}function ae(C){if(m.value.has(C.message_id)){console.log(`[H5 WS去重] 跳过重复消息: ${C.message_id}`);return}U(C.message_id),n.value.push({message_id:C.message_id,conversation_id:C.conversation_id,message_type:C.sender_type||"system",msg_type:C.msg_type||"text",content:C.content,sender_name:C.sender_name||"",created_at:new Date().toISOString()}),h.value=C.message_id}async function fe(C,N){await Ot().handleOAuthCallback(C,N)}async function ue(){try{const C=Ot();C.employeeInfo&&(e.value={employee_id:C.employeeInfo.employee_id,employee_name:C.employeeInfo.employee_name,department:C.employeeInfo.department,position:C.employeeInfo.position,level:"",is_vip:C.employeeInfo.is_vip,avatar_url:C.employeeInfo.avatar});const N=await Aw();e.value=N,console.log("[Store] 获取用户信息成功:",N.employee_name)}catch(C){throw console.error("[Store] 获取用户信息失败:",C),C}}async function pe(){try{const C=await kw();t.value=C,i.value=(C==null?void 0:C.can_call_agent)??!1,w.value=(C==null?void 0:C.participants)||[],console.log("[Store] 获取当前会话:",C?C.conversation_id:"无活跃会话","参与者:",w.value.length)}catch(C){console.error("[Store] 获取当前会话失败:",C)}}async function le(C,N){var Se,Te,Pe;if(console.log("[Store] sendNewMessage 开始执行, content:",C,"options:",N),!C.trim()){console.warn("[Store] content 为空,直接返回");return}ye(C).catch(xe=>{console.warn("[Store] 审批意图检测异常:",xe)});const L=Ot(),J=`temp_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,oe={message_id:J,conversation_id:((Se=t.value)==null?void 0:Se.conversation_id)||"",message_type:"employee",msg_type:(N==null?void 0:N.msg_type)||"text",content:C.trim(),sender_name:L.employeeName||"我",created_at:new Date().toISOString(),status:"sending"};n.value.push(oe),console.log("[Store] 乐观更新:临时消息已添加到列表, tempMessageId:",J),s.value=!0;try{const xe={content:C.trim()};N!=null&&N.msg_type&&(xe.msg_type=N.msg_type,xe.media_url=N.media_url,xe.file_name=N.file_name,xe.file_size=N.file_size),console.log("[Store] 请求参数:",JSON.stringify(xe));const Ce=await Tw(xe);if(console.log("[Store] API 响应:",Ce),!Ce)throw console.error("[Store] API 响应为空"),new Error("API 响应为空");if(!Ce.user_message)throw console.error("[Store] API 响应缺少 user_message"),new Error("API 响应格式错误:缺少 user_message");const dt=n.value.findIndex(ft=>ft.message_id===J);if(dt!==-1){n.value[dt]={...Ce.user_message,status:"sent"},U(Ce.user_message.message_id),h.value=Ce.user_message.message_id,console.log("[Store] 乐观更新成功:临时消息已替换为真实消息");const ft=(Te=t.value)==null?void 0:Te.conversation_id;ft&&Bs(ft,n.value)}else n.value.push({...Ce.user_message,status:"sent"}),U(Ce.user_message.message_id),h.value=Ce.user_message.message_id;i.value=Ce.can_call_agent??!1,t.value&&(t.value.can_call_agent=Ce.can_call_agent??!1,t.value.ai_substantive_reply_count=Ce.ai_reply_count??0),console.log("[Store] 消息发送成功, AI回复计数:",Ce.ai_reply_count,"可呼叫坐席:",Ce.can_call_agent,"是否引导:",Ce.is_guidance)}catch(xe){console.error("[Store] 消息发送失败:",xe),console.error("[Store] 错误详情:",xe==null?void 0:xe.message,(Pe=xe==null?void 0:xe.response)==null?void 0:Pe.data,xe==null?void 0:xe.stack);const Ce=n.value.findIndex(dt=>dt.message_id===J);throw Ce!==-1&&(n.value[Ce].status="failed",console.log("[Store] 乐观更新失败:临时消息状态已改为 failed")),xe}finally{s.value=!1,console.log("[Store] sendNewMessage finally 执行完成")}}async function me(){var C;if(!(!k.value||!I.value))try{const N=h.value?{after_message_id:h.value}:void 0,L=await Rw(N);if(L&&L.length>0){const J=L.filter(oe=>m.value.has(oe.message_id)?(console.log(`[H5轮询去重] 跳过重复消息: ${oe.message_id}`),!1):(U(oe.message_id),!0));if(J.length>0){n.value.push(...J),h.value=J[J.length-1].message_id,console.log("[Store] 轮询到新消息:",J.length,"条");const oe=(C=t.value)==null?void 0:C.conversation_id;oe&&Bs(oe,n.value)}}}catch(N){console.error("[Store] 轮询消息失败:",N)}}async function Q(C){var N;if(!(!k.value||!I.value))try{const L=await bc(C);if(L.items&&L.items.length>0){const J=L.items.filter(oe=>m.value.has(oe.message_id)?!1:(U(oe.message_id),!0));if(J.length>0){C!=null&&C.before?n.value.push(...J):n.value=J;const oe=J[J.length-1];oe&&(h.value=oe.message_id),console.log("[Store] 获取到历史消息:",J.length,"条");const Se=(N=t.value)==null?void 0:N.conversation_id;Se&&Bs(Se,n.value)}}}catch(L){console.error("[Store] 获取历史消息失败:",L)}}function ee(){a.value||(console.log("[Store] 启动消息轮询(3秒间隔)"),a.value=setInterval(()=>{me()},3e3))}function X(){a.value&&(console.log("[Store] 停止消息轮询"),clearInterval(a.value),a.value=null)}async function q(){var C,N;if(o.value)return"pending";o.value=!0;try{const L=Ot(),J=await Iw({employee_id:L.employeeId,employee_name:L.employeeName});console.log("[Store] 招手成功:",J);const oe={message_id:`sys_shake_${Date.now()}`,conversation_id:((C=t.value)==null?void 0:C.conversation_id)||"",message_type:"system",content:J.funny_phrase,sender_name:"系统",created_at:new Date().toISOString()};return n.value.push(oe),J.assign_result==="assigned"&&J.assigned_agent_id?(oe.content=`${J.funny_phrase} 🎉 坐席已为您服务,请稍候...`,t.value&&(t.value.status="serving")):J.assign_result==="queued"&&(oe.content=`${J.funny_phrase} ⏳ 当前无空闲坐席,您已进入排队,请耐心等待...`),((N=J.conversation)==null?void 0:N.status)==="serving"&&await pe(),J.assign_result||"queued"}catch(L){return console.error("[Store] 招手失败:",L),"error"}finally{o.value=!1}}async function Y(){try{const C=await Pw();u.value=C,console.log("[Store] 获取审批链接成功:",C.length,"条")}catch(C){console.error("[Store] 获取审批链接失败:",C)}}async function ye(C){var N;try{const L=await Fw(C);if(console.log("[Store] 审批意图检测结果:",L),L.is_approval_request){const J={message_id:`approval_card_${Date.now()}`,conversation_id:((N=t.value)==null?void 0:N.conversation_id)||"",message_type:"system",msg_type:"approval_card",content:"",sender_name:"",created_at:new Date().toISOString(),extra_data:{approval_type:L.approval_type,confidence:L.confidence}};n.value.push(J),console.log("[Store] 已插入审批卡片消息, approval_type:",L.approval_type)}}catch(L){console.warn("[Store] 审批意图检测失败:",L)}}function te(){c.value=!1,d.value=""}function he(C=""){var L;const N={message_id:`approval_card_${Date.now()}`,conversation_id:((L=t.value)==null?void 0:L.conversation_id)||"",message_type:"system",msg_type:"approval_card",content:"",sender_name:"",created_at:new Date().toISOString(),extra_data:{approval_type:"",confidence:0}};n.value.push(N),console.log("[Store] 手动插入审批卡片消息(快捷按钮触发)")}async function S(){try{const C=await Bw();f.value=C,console.log("[Store] 获取软件下载列表成功:",C.length,"条")}catch(C){console.error("[Store] 获取软件下载列表失败:",C)}}function $(){l.value=!l.value}async function V(C){try{await pe();const N=t.value;N&&N.conversation_id!==C&&console.warn("[Store] 当前会话ID不匹配, 期望:",C,"实际:",N.conversation_id),n.value=[],h.value="",await Q(),console.log("[Store] 已切换到邀请会话:",C)}catch(N){console.error("[Store] 切换会话失败:",N)}}async function Z(){if(!t.value)return;const C=t.value.conversation_id;try{await Nw(C),console.log("[Store] 已退出会话:",C),t.value=null,w.value=[],n.value=[],h.value="",X()}catch(N){throw console.error("[Store] 退出会话失败:",N),N}}function ce(){T.value=!T.value}async function b(C){const N=n.value.findIndex(oe=>oe.message_id===C);if(N===-1){console.warn("[Store] 重试消息找不到:",C);return}const L=n.value[N];if(L.status!=="failed"){console.warn("[Store] 消息状态不是 failed,无法重试:",C);return}const J=L.content;n.value.splice(N,1),console.log("[Store] 删除失败消息:",C),await le(J,{msg_type:L.msg_type,media_url:L.media_url,file_name:L.file_name,file_size:L.file_size})}function x(C){w.value=C,t.value&&(t.value.participants=C),console.log("[Store] 参与者列表已通过WS更新:",C.length,"人")}function R(){console.log("[Store] 当前用户被移除会话,清空状态"),t.value=null,w.value=[],n.value=[],h.value="",T.value=!1,X()}function j(C){var L;if(((L=t.value)==null?void 0:L.conversation_id)!==C.conversation_id||!C.chunk)return;if(!A.value){const J=`ai_stream_${C.conversation_id}_${Date.now()}`;A.value=J,n.value.push({message_id:J,conversation_id:C.conversation_id,message_type:"ai",msg_type:"text",content:"",sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString()})}const N=n.value.findIndex(J=>J.message_id===A.value);N!==-1&&(n.value[N].content+=C.chunk)}function W(C){var oe,Se;if(((oe=t.value)==null?void 0:oe.conversation_id)!==C.conversation_id)return;const N={message_id:C.message_id,conversation_id:C.conversation_id,message_type:C.sender_type||"ai",msg_type:C.msg_type||"text",content:C.content,sender_name:C.sender_name||"Duckula(达寇拉)",created_at:new Date().toISOString(),status:"sent"},L=A.value?n.value.findIndex(Te=>Te.message_id===A.value):-1;if(L!==-1?n.value[L]=N:n.value.push(N),A.value=null,U(C.message_id),h.value=C.message_id,i.value=C.can_call_agent??!1,t.value){t.value.can_call_agent=C.can_call_agent??!1,t.value.ai_substantive_reply_count=C.ai_reply_count??0;const Te={ai_handling:"waiting",queued:"waiting",serving:"serving",resolved:"resolved"};t.value.status=Te[C.conversation_status]||t.value.status}const J=(Se=t.value)==null?void 0:Se.conversation_id;J&&Bs(J,n.value)}function H(C){var J;if(((J=t.value)==null?void 0:J.conversation_id)!==C.conversation_id)return;const N={message_id:`ai_failed_${C.conversation_id}_${Date.now()}`,conversation_id:C.conversation_id,message_type:"ai",msg_type:"text",content:C.message||"⚠️ AI 服务异常,请输入「IT」转人工或稍后重试。",sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString(),status:"sent"},L=A.value?n.value.findIndex(oe=>oe.message_id===A.value):-1;L!==-1?n.value[L]=N:n.value.push(N),A.value=null}function ie(){if(!A.value)return;const C=n.value.findIndex(N=>N.message_id===A.value);C!==-1&&n.value.splice(C,1),A.value=null}async function se(){var C;if(!y.value)try{console.log("[Store] 开始初始化应用..."),await Promise.all([ue(),pe()]);const N=(C=t.value)==null?void 0:C.conversation_id;if(N){const L=Jw(N);if(L&&L.length>0){console.log(`[Store] 加载缓存消息 ${L.length} 条`),n.value=L;const J=L[L.length-1];J&&(h.value=J.message_id)}}Promise.resolve().then(async()=>{try{const L=await bc({limit:50});if(L.items&&L.items.length>0){const J=L.items.filter(oe=>m.value.has(oe.message_id)?!1:(U(oe.message_id),!0));if(J.length>0){N&&n.value.length>0?n.value=Yw(n.value,J):n.value=J;const oe=J[J.length-1];oe&&(h.value=oe.message_id),N&&Bs(N,n.value),console.log(`[Store] 历史消息已加载,共 ${n.value.length} 条`)}}}catch(L){console.warn("[Store] 加载历史消息失败:",L)}}),setTimeout(()=>{Promise.all([Y(),S()]).catch(L=>console.warn("[Store] 加载面板数据失败:",L))},500),ee(),y.value=!0,console.log("[Store] 应用初始化完成(缓存优先显示)")}catch(N){console.error("[Store] 应用初始化失败:",N)}}function ne(){var C;(C=t.value)!=null&&C.conversation_id&&Xw(t.value.conversation_id),X()}return{userInfo:e,currentConversation:t,messages:n,loading:s,shaking:o,canCallAgent:i,agentOnline:r,assistantPanelVisible:l,approvalLinks:u,approvalCardVisible:c,approvalCardTriggerText:d,softwareDownloads:f,lastMessageId:h,initialized:y,troubleshootingSteps:g,troubleshootingTemplateName:v,troubleshootingCurrentNode:_,participants:w,participantPanelVisible:T,isLoggedIn:k,hasActiveConversation:I,isParticipant:z,joinedParticipantCount:F,approvalLinksByCategory:B,softwareDownloadsByCategory:K,handleOAuthCallback:fe,fetchUserInfo:ue,fetchCurrentConversation:pe,fetchMessages:Q,sendNewMessage:le,pollNewMessages:me,startPolling:ee,stopPolling:X,shakeAgent:q,fetchApprovalLinks:Y,checkApprovalIntent:ye,closeApprovalCard:te,showApprovalCard:he,fetchSoftwareDownloads:S,toggleAssistantPanel:$,switchToConversation:V,leaveAsParticipant:Z,toggleParticipantPanel:ce,retryMessage:b,updateParticipants:x,handleRemovedFromConversation:R,initialize:se,cleanup:ne,handleNewMessage:ae,handleAiReplyChunk:j,handleAiReply:W,handleAiReplyFailed:H,cancelStreamingBubble:ie}}),Qw=3e4,Zw=3e4,e0=1e3;function t0(){let e=null,t=null,n=null,s=0,o=!1;function i(){const d=Ot(),f=d.employeeId,h=d.token;if(!f||!h){console.warn("[H5 WS] 未登录或缺少token,跳过连接");return}e&&r(),o=!1;const y=window.location.protocol==="https:"?"wss:":"ws:",g=window.location.host,v=`${y}//${g}/ws/h5/${f}`;console.log(`[H5 WS] 正在连接: ${v}`),e=new WebSocket(v,[`bearer.${h}`]),e.onopen=()=>{console.log("[H5 WS] 连接成功"),s=0,a(),jt().stopPolling()},e.onmessage=_=>{try{const w=JSON.parse(_.data);c(w)}catch(w){console.error("[H5 WS] 消息解析失败:",w)}},e.onclose=()=>{if(console.log("[H5 WS] 连接关闭"),l(),e=null,!o){const _=jt();_.cancelStreamingBubble(),_.startPolling(),u()}},e.onerror=_=>{console.error("[H5 WS] 连接错误:",_)}}function r(){o=!0,n&&(clearTimeout(n),n=null),l(),e&&(e.close(),e=null),s=0,console.log("[H5 WS] 已主动断开连接")}function a(){l(),t=setInterval(()=>{e&&e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"ping"}))},Qw)}function l(){t&&(clearInterval(t),t=null)}function u(){if(o)return;const d=Math.min(e0*Math.pow(2,s),Zw);s++,console.log(`[H5 WS] 将在 ${d/1e3} 秒后重连(第 ${s} 次)`),n&&clearTimeout(n),n=setTimeout(()=>{console.log("[H5 WS] 正在重连..."),i()},d)}function c(d){var h,y,g,v,_;const f=jt();switch(d.type){case"participant_invited":(h=d.data)!=null&&h.participants&&f.updateParticipants(d.data.participants);break;case"participant_joined":(y=d.data)!=null&&y.participants&&f.updateParticipants(d.data.participants);break;case"participant_removed":if((g=d.data)!=null&&g.participants&&f.updateParticipants(d.data.participants),(v=d.data)!=null&&v.changed){const w=Ot();d.data.changed.map(A=>A.id).includes(w.employeeId)&&(console.log("[H5 WS] 当前用户被移除会话"),f.handleRemovedFromConversation())}break;case"participant_left":(_=d.data)!=null&&_.participants&&f.updateParticipants(d.data.participants);break;case"new_message":d.data&&f.handleNewMessage(d.data);break;case"ai_reply_chunk":d.data&&f.handleAiReplyChunk(d.data);break;case"ai_reply":d.data&&f.handleAiReply(d.data);break;case"ai_reply_failed":d.data&&f.handleAiReplyFailed(d.data);break;case"pong":break;default:console.warn(`[H5 WS] 未知消息类型: ${d.type}`)}}return{connect:i,disconnect:r}}const n0="/h5/duckula.webp";function s0(e,t){return qr()?(Uc(e,t),!0):!1}const Aa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const o0=Object.prototype.toString,i0=e=>o0.call(e)==="[object Object]";function r0(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const s=t;t=void 0,s&&await s},n}function or(e){return Array.isArray(e)?e:[e]}function a0(e,t,n={}){const{immediate:s=!0,immediateCallback:o=!1}=n,i=En(!1);let r;function a(){r&&(clearTimeout(r),r=void 0)}function l(){i.value=!1,a()}function u(...c){o&&e(),a(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=void 0,e(...c)},os(t))}return s&&(i.value=!0,Aa&&u()),s0(l),{isPending:Do(i),start:u,stop:l}}function l0(e,t,n){return be(e,t,{...n,immediate:!0})}const c0=Aa?window:void 0,$f=Aa?window.navigator:void 0;function u0(e){var t;const n=os(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Ff(...e){const t=(s,o,i,r)=>(s.addEventListener(o,i,r),()=>s.removeEventListener(o,i,r)),n=G(()=>{const s=or(os(e[0])).filter(o=>o!=null);return s.every(o=>typeof o!="string")?s:void 0});return l0(()=>{var s,o;return[(s=(o=n.value)===null||o===void 0?void 0:o.map(i=>u0(i)))!==null&&s!==void 0?s:[c0].filter(i=>i!=null),or(os(n.value?e[1]:e[0])),or(Ee(n.value?e[2]:e[1])),os(n.value?e[3]:e[2])]},([s,o,i,r],a,l)=>{if(!(s!=null&&s.length)||!(o!=null&&o.length)||!(i!=null&&i.length))return;const u=i0(r)?{...r}:r,c=s.flatMap(d=>o.flatMap(f=>i.map(h=>t(d,f,h,u))));l(()=>{c.forEach(d=>d())})},{flush:"post"})}function d0(){const e=En(!1),t=Dt();return t&&nt(()=>{e.value=!0},t),e}function Bf(e){const t=d0();return G(()=>(t.value,!!e()))}function Sc(e,t={}){const{controls:n=!1,navigator:s=$f}=t,o=Bf(()=>s&&"permissions"in s),i=En(),r=typeof e=="string"?{name:e}:e,a=En(),l=()=>{var c,d;a.value=(c=(d=i.value)===null||d===void 0?void 0:d.state)!==null&&c!==void 0?c:"prompt"};Ff(i,"change",l,{passive:!0});const u=r0(async()=>{if(o.value){if(!i.value)try{i.value=await s.permissions.query(r)}catch{i.value=void 0}finally{l()}if(n)return Re(i.value)}});return u(),n?{state:a,isSupported:o,query:u}:a}function f0(e={}){const{navigator:t=$f,read:n=!1,source:s,copiedDuring:o=1500,legacy:i=!1}=e,r=Bf(()=>t&&"clipboard"in t),a=Sc("clipboard-read"),l=Sc("clipboard-write"),u=G(()=>r.value||i),c=En(""),d=En(!1),f=En(!1),h=a0(()=>d.value=!1,o,{immediate:!1});let y=0;async function g(){let m=!(r.value&&A(a.value));if(!m)try{c.value=await t.clipboard.readText()}catch{m=!0}m&&(c.value=T())}u.value&&n&&Ff(["copy","cut"],g,{passive:!0});async function v(m){const k=m??os(s);if(u.value&&k!=null){f.value=!0;let I=!(r.value&&A(l.value));if(!I)try{const z=_(k);await t.clipboard.write([z])}catch{I=!0}if(I)if(typeof k=="string")c.value=k,w(k);else{const z=++y,F=await k();F!=null&&z===y&&(c.value=F,w(F))}d.value=!0,h.start(),f.value=!1}}function _(m){return typeof m=="string"?(c.value=m,new ClipboardItem({"text/plain":m})):new ClipboardItem({"text/plain":m().then((k="")=>(c.value=k,new Blob([k],{type:"text/plain"})))})}function w(m){const k=document.createElement("textarea");k.value=m,k.style.position="absolute",k.style.opacity="0",k.setAttribute("readonly",""),document.body.appendChild(k),k.select(),document.execCommand("copy"),k.remove()}function T(){var m,k,I;return(m=(k=document)===null||k===void 0||(I=k.getSelection)===null||I===void 0||(I=I.call(k))===null||I===void 0?void 0:I.toString())!==null&&m!==void 0?m:""}function A(m){return m==="granted"||m==="prompt"}return{copyPending:Do(f),isSupported:u,text:Do(c),copied:Do(d),copy:v}}const h0={class:"approval-card-inline"},p0={class:"approval-card-inline__header"},m0={class:"approval-card-inline__title-row"},g0={key:0,class:"approval-card-inline__tag"},v0={class:"approval-card-inline__options"},_0=["onClick"],y0={class:"approval-card-inline__option-icon"},b0={class:"approval-card-inline__option-content"},w0={class:"approval-card-inline__option-name"},S0={class:"approval-card-inline__option-desc"},E0=we({__name:"ApprovalCardModal",props:{approvalType:{default:""}},setup(e){const t=e,n={设备申请:[{name:"IT资产领用",icon:"orders-o",desc:"申请新设备",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4c8qt31AbSHwN9MuaFhYXt4Qwsx6ZLCftAFh6X1w&sp_id=&from=template_list"},{name:"IT资产借用",icon:"orders-o",desc:"临时借用设备",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3TmACnFs8oqgYcasxVh4BfSMGNX7p9sb6ydBX77mK&sp_id=&from=template_list"},{name:"IT资产升级",icon:"orders-o",desc:"设备升级换新",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=Bs7ucTGsPuFhxfk8pn8EydxrWxkVetB4JR8Pb6PHS&sp_id=&from=template_list"}],账号权限申请:[{name:"VPN账号申请",icon:"lock",desc:"零信任VPN",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E5%91%98%E5%B7%A5%E9%9B%B6%E4%BF%A1%E4%BB%BB%EF%BC%88%E5%8E%9FVPN%EF%BC%89%E8%B4%A6%E5%8F%B7%E7%94%B3%E8%AF%B7"},{name:"企微外联权限",icon:"lock",desc:"外部联系人权限",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4WrCbZd214XrDMZJiHDho7ZQHWX7gsabb7x2fF72&sp_id=&from=template_list"},{name:"公共邮箱账号",icon:"lock",desc:"共享邮箱",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E5%85%AC%E5%85%B1%E9%82%AE%E7%AE%B1%E8%B4%A6%E5%8F%B7%E7%94%B3%E8%AF%B7"}],软件服务申请:[{name:"商业软件申请",icon:"apps-o",desc:"正版软件授权",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3TmACf8DsJy5yr7aymanLskywC4EDhFLuz1KuBBQK&sp_id=&from=template_list"}],资产处置申请:[{name:"IT资产外修",icon:"warn-o",desc:"设备送修",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=Bs7ucTLPo42dtj8Y1LzBoujijsa6geRWaRxZJjk4X&sp_id=&from=template_list"},{name:"IT资产报废",icon:"delete-o",desc:"设备报废",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4WroCDfWuHKyujQjatjm3AjNv67imXk5C6WNooFkb&sp_id=&from=template_list"},{name:"资产退还",icon:"back-top",desc:"退还设备",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4c8qt33AZ52a7n9BBWDh6PmsDnpM5B6w8geqqqoHz&sp_id=&from=template_list"}],办公用品申请:[{name:"办公用品超额领用",icon:"gift-o",desc:"超配额申领",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3WN6zRucbjycdnR94gBvkSVuXRamX7pKW4PrmNFh&sp_id=&from=template_list"}],会议室故障报修:[{name:"会议室故障报修",icon:"warn-o",desc:"会议室设备故障",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4ZXJMtjQJiPXo6N5vNMK26uPRT3KTi9VvkH2NScg&sp_id=&from=template_list"}],企业应用管理:[{name:"企业应用管理",icon:"apps-o",desc:"企业应用开通管理",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3WLJnRg2Se1fwizQtNvFtcYMgci1mhRJZhMw2FFKb&sp_id=&from=template_list"}],资产变更确认:[{name:"资产变更确认",icon:"exchange",desc:"资产信息变更",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4cA2owjRcXRRPQ46otZvUHoWNEKL5t25tHHfeePip&sp_id=&from=template_list"}],终端设备网络准入:[{name:"终端设备网络准入申请",icon:"lock",desc:"终端网络准入",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E7%BB%88%E7%AB%AF%E8%AE%BE%E5%A4%87%E7%BD%91%E7%BB%9C%E5%87%86%E5%85%A5%E7%94%B3%E8%AF%B7"}],活动与会议技术支持:[{name:"活动与会议技术支持",icon:"calendar-o",desc:"活动会议技术保障",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E6%B4%BB%E5%8A%A8%E4%B8%8E%E4%BC%9A%E8%AE%AE%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81"}],员工IT支持与故障报修:[{name:"员工IT支持与故障报修",icon:"warn-o",desc:"IT支持与故障报修",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E5%91%98%E5%B7%A5IT%E6%94%AF%E6%8C%81%E4%B8%8E%E6%95%85%E9%9A%9C%E6%8A%A5%E4%BF%AE"}],公共邮箱账号申请:[{name:"公共邮箱账号申请",icon:"lock",desc:"公共邮箱账号",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E5%85%AC%E5%85%B1%E9%82%AE%E7%AE%B1%E8%B4%A6%E5%8F%B7%E7%94%B3%E8%AF%B7"}]},s=G(()=>t.approvalType&&n[t.approvalType]?n[t.approvalType]:Object.values(n).flat()),o=M([]);async function i(){if(!(o.value.length>0))try{o.value=await Ow()}catch(a){console.error("[ApprovalCard] 加载审批关键词失败:",a)}}nt(()=>{i()});async function r(a){if(a.url){window.location.href=a.url;return}try{const l=o.value.find(u=>u.template_name===t.approvalType||u.keyword===a.name);if(l)if(l.type==="jump"){const u=await $w(l.template_id);window.location.href=u.url}else Ae("该功能正在开发中");else Ae(`${a.name} — 审批模板配置中,请稍后`)}catch(l){console.error("[ApprovalCard] 打开审批失败:",l),Ae("打开审批失败,请重试")}}return(a,l)=>{const u=At;return O(),D("div",h0,[p("div",p0,[p("div",m0,[E(u,{name:"orders-o",size:"16",color:"#07c160"}),l[0]||(l[0]=p("span",{class:"approval-card-inline__title"},"审批快捷入口",-1)),e.approvalType?(O(),D("span",g0,re(e.approvalType),1)):ge("",!0)]),l[1]||(l[1]=p("div",{class:"approval-card-inline__subtitle"}," 检测到您可能需要提交审批,请选择对应类型 ",-1))]),p("div",v0,[(O(!0),D(Ie,null,bt(s.value,c=>(O(),D("div",{key:c.name,class:"approval-card-inline__option",onClick:d=>r(c)},[p("div",y0,[E(u,{name:c.icon,size:"20"},null,8,["name"])]),p("div",b0,[p("div",w0,re(c.name),1),p("div",S0,re(c.desc),1)]),E(u,{name:"arrow",class:"approval-card-inline__option-arrow"})],8,_0))),128))])])}}}),yt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},x0=yt(E0,[["__scopeId","data-v-76b39a8c"]]),C0={key:0,class:"message-bubble message-bubble--approval-card"},A0={key:1,class:"message-bubble message-bubble--system"},k0={class:"message-bubble__system-text"},T0={key:0,class:"message-bubble__sender"},R0={key:0,src:n0,class:"message-bubble__ai-avatar",alt:"Duckula"},I0={class:"message-bubble__sender-name"},P0={class:"reply-quote__text"},O0={class:"reply-quote__sender"},$0={key:1,class:"message-bubble__text",style:{"white-space":"pre-wrap"}},F0=["src","alt"],B0={key:1,class:"media-card"},D0={class:"media-card__info"},N0={key:0,class:"media-card__name"},L0=["href"],M0={class:"media-card__info"},V0={class:"media-card__label"},j0={key:0,class:"media-card__size"},U0={key:1,class:"media-card"},H0={class:"media-card__info"},z0={class:"media-card__label"},q0={key:0,class:"media-card__size"},W0={key:4,class:"media-card"},K0={class:"media-card__icon"},G0={class:"media-card__info"},J0={class:"media-card__label"},X0={key:0,class:"media-card__name"},Y0={key:1,class:"media-card__size"},Q0={key:5,class:"message-bubble__actions"},Z0=we({__name:"MessageBubble",props:{msg:{}},emits:["scrollToMessage"],setup(e){const t=e,{copy:n}=f0(),s=M(!1),o=M(!1);async function i(){try{await n(t.msg.content),o.value=!0,Ae("已复制"),setTimeout(()=>{o.value=!1},1500)}catch(_){console.error("复制失败:",_)}}const r=G(()=>{const _=[`message-bubble--${t.msg.message_type}`];return t.msg.status==="sending"?_.push("message-bubble--sending"):t.msg.status==="failed"&&_.push("message-bubble--failed"),_.join(" ")}),a=G(()=>`message-bubble__content--${t.msg.message_type}`),l=G(()=>t.msg.message_type==="employee"?"message-bubble__time--right":"message-bubble__time--left"),u=G(()=>t.msg.message_type==="agent"?t.msg.sender_name||"IT坐席":t.msg.message_type==="ai"?"Duckula(达寇拉)":t.msg.sender_name),c=G(()=>({image:"🖼️",voice:"🎤",video:"🎬",file:"📎",location:"📍"})[t.msg.msg_type||""]||"📄"),d=G(()=>({image:"图片消息",voice:"语音消息",video:"视频消息",file:"文件消息",location:"位置消息"})[t.msg.msg_type||""]||"媒体消息"),f=G(()=>t.msg.reply_to_id?"...":""),h=G(()=>(t.msg.reply_to_id,""));function y(_){if(!_)return"";const w=new Date(_),T=w.getHours().toString().padStart(2,"0"),A=w.getMinutes().toString().padStart(2,"0");return`${T}:${A}`}function g(_){return _<1024?`${_} B`:_<1024*1024?`${(_/1024).toFixed(1)} KB`:`${(_/(1024*1024)).toFixed(1)} MB`}function v(){var w;const _=t.msg.media_url||((w=t.msg.extra_data)==null?void 0:w.pic_url);_&&window.open(_,"_blank")}return(_,w)=>{var T,A,m;return e.msg.msg_type==="approval_card"?(O(),D("div",C0,[E(x0,{"approval-type":((T=e.msg.extra_data)==null?void 0:T.approval_type)||""},null,8,["approval-type"])])):e.msg.message_type==="system"?(O(),D("div",A0,[p("span",k0,re(e.msg.content),1)])):(O(),D("div",{key:2,class:Ue(["message-bubble",r.value]),onMouseenter:w[2]||(w[2]=k=>s.value=!0),onMouseleave:w[3]||(w[3]=k=>s.value=!1)},[e.msg.message_type!=="employee"?(O(),D("div",T0,[e.msg.message_type==="ai"?(O(),D("img",R0)):ge("",!0),p("span",I0,re(u.value),1)])):ge("",!0),p("div",{class:Ue(["message-bubble__content",a.value])},[e.msg.reply_to_id&&f.value?(O(),D("div",{key:0,class:"reply-quote",onClick:w[0]||(w[0]=Nn(k=>_.$emit("scrollToMessage",e.msg.reply_to_id),["stop"]))},[w[4]||(w[4]=p("div",{class:"reply-quote__bar"},null,-1)),p("div",P0,[p("span",O0,re(h.value),1),Ke(" "+re(f.value),1)])])):ge("",!0),!e.msg.msg_type||e.msg.msg_type==="text"?(O(),D("p",$0,re(e.msg.content),1)):e.msg.msg_type==="image"?(O(),D("div",{key:2,class:"image-message",onClick:v},[e.msg.media_url||(A=e.msg.extra_data)!=null&&A.pic_url?(O(),D("img",{key:0,src:e.msg.media_url||((m=e.msg.extra_data)==null?void 0:m.pic_url),alt:e.msg.file_name||"图片",class:"image-message__thumbnail",loading:"lazy"},null,8,F0)):(O(),D("div",B0,[w[6]||(w[6]=p("div",{class:"media-card__icon"},"🖼️",-1)),p("div",D0,[w[5]||(w[5]=p("span",{class:"media-card__label"},"图片消息",-1)),e.msg.file_name?(O(),D("span",N0,re(e.msg.file_name),1)):ge("",!0)])]))])):e.msg.msg_type==="file"?(O(),D(Ie,{key:3},[e.msg.media_url?(O(),D("a",{key:0,href:e.msg.media_url,target:"_blank",class:"media-card media-card--link",onClick:w[1]||(w[1]=Nn(()=>{},["stop"]))},[w[7]||(w[7]=p("div",{class:"media-card__icon"},"📎",-1)),p("div",M0,[p("span",V0,re(e.msg.file_name||"文件消息"),1),e.msg.file_size?(O(),D("span",j0,re(g(e.msg.file_size)),1)):ge("",!0)])],8,L0)):(O(),D("div",U0,[w[8]||(w[8]=p("div",{class:"media-card__icon"},"📎",-1)),p("div",H0,[p("span",z0,re(e.msg.file_name||"文件消息"),1),e.msg.file_size?(O(),D("span",q0,re(g(e.msg.file_size)),1)):ge("",!0)])]))],64)):(O(),D("div",W0,[p("div",K0,re(c.value),1),p("div",G0,[p("span",J0,re(d.value),1),e.msg.file_name?(O(),D("span",X0,re(e.msg.file_name),1)):ge("",!0),e.msg.file_size?(O(),D("span",Y0,re(g(e.msg.file_size)),1)):ge("",!0)])])),s.value?(O(),D("div",Q0,[!e.msg.msg_type||e.msg.msg_type==="text"?(O(),D("button",{key:0,class:"action-btn",title:"复制消息",onClick:Nn(i,["stop"])},re(o.value?"✓":"📋"),1)):ge("",!0)])):ge("",!0)],2),p("div",{class:Ue(["message-bubble__time",l.value])},re(y(e.msg.created_at)),3)],34))}}}),e1=yt(Z0,[["__scopeId","data-v-7ed50abc"]]);async function ir(e,t="paste"){const n=new FormData;if(e instanceof Blob&&!(e instanceof File)){const s=`${t}_${Date.now()}.png`;n.append("file",e,s)}else n.append("file",e);return await t1(n)}async function t1(e,t=3){for(let n=0;n<=t;n++)try{return await Ne.post("/upload",e,{headers:{"Content-Type":void 0},timeout:6e4})}catch(s){if(n===t)throw s;const o=1e3*Math.pow(2,n);console.warn(`[Upload H5] 上传失败,${o/1e3}秒后重试(第 ${n+1}/${t} 次)`),await new Promise(i=>setTimeout(i,o))}throw new Error("上传失败:已达最大重试次数")}async function n1(e){return Ne.get("/wecom/jsapi-config",{params:{url:e}})}const Ec="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",s1=59e3,xc=8e3,o1=1e4,Cc=!0,Ac=["startRecord","stopRecord","translateVoice","checkJsApi"];function i1(){const e=it({isReady:!1,isRecording:!1,isTranslating:!1,error:null});let t=!1,n=null;function s(){return new Promise((u,c)=>{if(typeof window.wx<"u"){console.log("[WecomVoice] JS-SDK 已加载(window.wx 存在),跳过动态加载"),u();return}console.log("[WecomVoice] 动态加载 JS-SDK 脚本:",Ec);const d=setTimeout(()=>{f.onload=null,f.onerror=null,c(new Error("加载企微 JS-SDK 脚本超时(10秒),请检查网络连接"))},o1),f=document.createElement("script");f.src=Ec,f.async=!0,f.onload=()=>{clearTimeout(d),typeof window.wx<"u"?(console.log("[WecomVoice] JS-SDK 脚本加载成功,window.wx 已挂载"),u()):(console.error("[WecomVoice] JS-SDK 脚本已加载,但 window.wx 未挂载"),c(new Error("企微 JS-SDK 脚本已加载,但 window.wx 未挂载")))},f.onerror=()=>{clearTimeout(d),console.error("[WecomVoice] JS-SDK 脚本加载失败"),c(new Error("加载企微 JS-SDK 脚本失败,请检查网络连接"))},document.head.appendChild(f)})}function o(u){return new Promise((c,d)=>{const f=window.wx;if(!f||typeof f.config!="function"){const g="wx.config 不可用,JS-SDK 未正确加载";console.error("[WecomVoice]",g),e.isReady=!1,e.error=g,d(new Error(g));return}let h=!1;const y=setTimeout(()=>{h||(h=!0,e.isReady=!1,e.error=`wx.config 鉴权超时(${xc/1e3}秒无响应),可能是签名无效或企微环境异常`,console.error("[WecomVoice]",e.error),d(new Error(e.error)))},xc);f.ready(()=>{h||(h=!0,clearTimeout(y),e.isReady=!0,console.log("[WecomVoice] wx.config 鉴权成功(ready 回调触发)"),c())}),f.error(g=>{h||(h=!0,clearTimeout(y),e.isReady=!1,e.error=`JS-SDK 鉴权失败: ${g.errMsg}`,console.error("[WecomVoice] wx.config 鉴权失败:",g.errMsg),d(new Error(e.error)))}),console.log("[WecomVoice] 调用 wx.config:",{appId:u.corp_id,timestamp:u.timestamp,debug:Cc,jsApiList:Ac}),f.config({beta:!0,debug:Cc,appId:u.corp_id,timestamp:u.timestamp,nonceStr:u.nonce_str,signature:u.signature,jsApiList:Ac})})}async function i(){if(t){console.log("[WecomVoice] 已初始化,跳过");return}console.log("[WecomVoice] ===== 开始初始化 =====");try{console.log("[WecomVoice] Step 1/3: 加载 JS-SDK 脚本"),await s(),console.log("[WecomVoice] Step 2/3: 获取签名配置");const u=window.location.href.split("#")[0];console.log("[WecomVoice] 签名 URL:",u);const c=await n1(u);console.log("[WecomVoice] 签名配置:",{corp_id:c.corp_id,agent_id:c.agent_id,timestamp:c.timestamp,nonce_str:c.nonce_str,signature:c.signature?c.signature.substring(0,10)+"...":"(空)"}),console.log("[WecomVoice] Step 3/3: wx.config 鉴权"),await o(c),window.wx&&typeof window.wx.checkJsApi=="function"&&window.wx.checkJsApi({jsApiList:["startRecord","stopRecord","translateVoice"],success:d=>{console.log("[WecomVoice] checkJsApi 结果:",JSON.stringify(d))},fail:d=>{console.warn("[WecomVoice] checkJsApi 失败(不阻塞):",d)}}),t=!0,e.error=null,console.log("[WecomVoice] ===== 初始化完成 =====")}catch(u){throw e.error=(u==null?void 0:u.message)||"JS-SDK 初始化失败",console.error("[WecomVoice] ===== 初始化失败 =====",e.error),u}}async function r(){if(e.isRecording){console.log("[WecomVoice] 已在录音中,跳过");return}e.isReady||(console.log("[WecomVoice] SDK 未就绪,先调用 init()..."),await i());const u=window.wx;if(!u||typeof u.startRecord!="function"){const c="wx.startRecord 不可用,JS-SDK 未正确初始化";throw console.error("[WecomVoice]",c),e.error=c,new Error(c)}return new Promise((c,d)=>{n=setTimeout(()=>{e.isRecording&&(console.log("[WecomVoice] 59秒自动停止录音"),a().catch(f=>{e.error=`自动停止录音失败: ${(f==null?void 0:f.message)||"未知错误"}`}))},s1),console.log("[WecomVoice] 调用 wx.startRecord..."),u.startRecord({success:()=>{e.isRecording=!0,e.error=null,console.log("[WecomVoice] 录音开始成功(startRecord success 回调)"),c()},fail:f=>{n&&(clearTimeout(n),n=null),e.error=`开始录音失败: ${f.errMsg}`,console.error("[WecomVoice] 录音开始失败:",f.errMsg),d(new Error(e.error))},cancel:()=>{n&&(clearTimeout(n),n=null),e.error="用户拒绝了录音权限",console.warn("[WecomVoice] 用户拒绝录音权限"),d(new Error(e.error))}})})}async function a(){const u=window.wx;return n&&(clearTimeout(n),n=null),e.isRecording?(console.log("[WecomVoice] 调用 wx.stopRecord..."),new Promise((c,d)=>{u.stopRecord({success:f=>{e.isRecording=!1;const h=f.localId;if(console.log("[WecomVoice] 停止录音成功,localId:",h),!h){d(new Error("未获取到录音 localId"));return}e.isTranslating=!0,console.log("[WecomVoice] 调用 wx.translateVoice..."),u.translateVoice({localId:h,isShowProgressTips:1,success:y=>{e.isTranslating=!1;const g=(y.translateResult||"").trim();console.log("[WecomVoice] 语音转文字成功:",g),c(g)},fail:y=>{e.isTranslating=!1,e.error=`语音转文字失败: ${y.errMsg}`,console.error("[WecomVoice] 语音转文字失败:",y.errMsg),d(new Error(e.error))}})},fail:f=>{e.isRecording=!1,e.error=`停止录音失败: ${f.errMsg}`,console.error("[WecomVoice] 停止录音失败:",f.errMsg),d(new Error(e.error))}})})):(console.log("[WecomVoice] 未在录音中,跳过 stopAndTranslate"),"")}function l(){const u=navigator.userAgent,c=/wxwork/i.test(u),d=/Mobile|Android|iPhone|iPad|iPod/i.test(u);return c&&d}return{state:e,init:i,startRecording:r,stopAndTranslate:a,isSupported:l}}const _n=16e3;function r1(e){let t=0;for(const o of e)t+=o.length;const n=new Float32Array(t);let s=0;for(const o of e)n.set(o,s),s+=o.length;return n}function a1(e,t,n){if(t===n)return e;const s=t/n,o=Math.round(e.length/s),i=new Float32Array(o);for(let r=0;r{if(a)return;const y=h.inputBuffer.getChannelData(0);i.push(new Float32Array(y))},s.connect(o),o.connect(t.destination),e.value=!0,console.log(`[AudioRecorder] 录音开始(native=${r}Hz, target=${_n}Hz)`)}catch(f){c();const h=f;throw(h==null?void 0:h.name)==="NotAllowedError"||(h==null?void 0:h.name)==="SecurityError"?new Error("麦克风权限被拒绝,请在浏览器设置中允许使用麦克风"):(h==null?void 0:h.name)==="NotFoundError"||(h==null?void 0:h.name)==="OverconstrainedError"?new Error("未找到麦克风设备,请检查设备连接"):(h==null?void 0:h.name)==="NotReadableError"?new Error("麦克风被其他程序占用,请关闭后重试"):h instanceof Error?h:new Error((h==null?void 0:h.message)||"录音启动失败")}}function u(){a=!0,c();const d=r1(i),f=r!==_n?a1(d,r,_n):d,h=l1(f),y=new Blob([h],{type:"audio/pcm"});return console.log(`[AudioRecorder] 录音停止,PCM 数据: ${y.size} bytes`+(r!==_n?` (重采样 ${r}→${_n}Hz)`:"")),e.value=!1,i=[],y}function c(){if(o){try{o.disconnect()}catch{}o.onaudioprocess=null,o=null}if(s){try{s.disconnect()}catch{}s=null}n&&(n.getTracks().forEach(d=>d.stop()),n=null),t&&(t.close().catch(()=>{}),t=null)}return{isRecording:e,start:l,stop:u}}async function u1(e){const t=new FormData;t.append("audio",e,"recording.pcm");const n=await Ne.post("/voice/asr",t,{headers:{"Content-Type":void 0},timeout:3e4});return{text:(n==null?void 0:n.text)||"",error:n==null?void 0:n.error}}const d1={class:"voice-modal"},f1={key:0,class:"voice-modal__body"},h1={class:"voice-modal__mic-area"},p1=["disabled"],m1={key:0,class:"voice-modal__existing-text"},g1={key:1,class:"voice-modal__body"},v1={class:"voice-modal__mic-area"},_1={class:"voice-modal__timer"},y1={key:2,class:"voice-modal__body"},b1={class:"voice-modal__mic-area"},w1={class:"voice-modal__spinner"},S1={key:3,class:"voice-modal__body"},E1={class:"voice-modal__result-area"},x1={class:"voice-modal__actions"},C1=["disabled"],A1={key:4,class:"voice-modal__body"},k1={class:"voice-modal__error-area"},T1={class:"voice-modal__error-text"},R1=we({__name:"VoiceRecordingModal",props:{visible:{type:Boolean},existingText:{}},emits:["update:visible","confirm","cancel"],setup(e,{emit:t}){const n=e,s=t,o=M("idle"),i=M(""),r=M(""),a=M(0);let l=null;const{isRecording:u,start:c,stop:d}=c1(),f=G(()=>o.value==="idle"),h=G(()=>{const m=Math.floor(a.value/60),k=a.value%60;return`${String(m).padStart(2,"0")}:${String(k).padStart(2,"0")}`});async function y(){i.value="",r.value="",a.value=0;try{await c(),u.value&&(o.value="recording",l=setInterval(()=>{a.value++},1e3))}catch(m){r.value=m instanceof Error?m.message:"录音启动失败",o.value="error",console.error("[VoiceModal] 录音启动失败:",m)}}async function g(){l&&(clearInterval(l),l=null),o.value="transcribing";try{const m=d();if(m.size<1600){r.value="录音过短,请说更多内容",o.value="error";return}const k=await u1(m);k.error?(r.value=k.error,o.value="error"):k.text?(i.value=k.text,o.value="success"):(r.value="未识别到语音内容,请重新录制",o.value="error")}catch(m){const k=m;r.value=(k==null?void 0:k.message)||"语音识别失败,请重试",o.value="error",console.error("[VoiceModal] 语音识别失败:",m)}}function v(){const m=i.value.trim();m&&s("confirm",m),w()}function _(){o.value="idle",i.value="",r.value="",a.value=0}function w(){o.value==="recording"&&u.value&&d(),l&&(clearInterval(l),l=null),s("update:visible",!1),s("cancel")}function T(m){m?s("update:visible",!0):w()}function A(){o.value="idle",i.value="",r.value="",a.value=0}return be(()=>n.visible,m=>{m&&(o.value="idle",i.value="",r.value="",a.value=0)}),Cn(()=>{l&&(clearInterval(l),l=null),u.value&&d()}),(m,k)=>{const I=bs,z=Hn;return O(),ut(z,{show:e.visible,position:"bottom",round:"",closeable:"","close-on-click-overlay":!0,"onUpdate:show":T,onClosed:A},{default:He(()=>[p("div",d1,[k[10]||(k[10]=p("div",{class:"voice-modal__header"},[p("span",{class:"voice-modal__title"},"语音输入")],-1)),o.value==="idle"?(O(),D("div",f1,[p("div",h1,[p("button",{class:"voice-modal__mic-btn",disabled:!f.value,onClick:y},[...k[1]||(k[1]=[p("span",{class:"voice-modal__mic-icon"},"🎤",-1)])],8,p1),k[2]||(k[2]=p("p",{class:"voice-modal__status-text"},"点击开始录音",-1)),e.existingText?(O(),D("p",m1," 输入框已有内容,识别结果将追加在末尾 ")):ge("",!0)])])):o.value==="recording"?(O(),D("div",g1,[p("div",v1,[p("button",{class:"voice-modal__mic-btn voice-modal__mic-btn--recording",onClick:g},[...k[3]||(k[3]=[p("span",{class:"voice-modal__mic-icon"},"⏹",-1)])]),k[4]||(k[4]=p("p",{class:"voice-modal__status-text voice-modal__status-text--recording"}," 正在录音... ",-1)),p("p",_1,re(h.value),1)]),k[5]||(k[5]=p("p",{class:"voice-modal__hint"},"点击按钮停止录音并开始识别",-1))])):o.value==="transcribing"?(O(),D("div",y1,[p("div",b1,[p("div",w1,[E(I,{type:"spinner",color:"#07C160",size:"48px"})]),k[6]||(k[6]=p("p",{class:"voice-modal__status-text"},"正在识别语音...",-1)),k[7]||(k[7]=p("p",{class:"voice-modal__hint"},"请稍候,识别通常需要几秒钟",-1))])])):o.value==="success"?(O(),D("div",S1,[p("div",E1,[k[8]||(k[8]=p("div",{class:"voice-modal__result-label"},"识别结果(可编辑)",-1)),lo(p("textarea",{"onUpdate:modelValue":k[0]||(k[0]=F=>i.value=F),class:"voice-modal__result-textarea",placeholder:"识别到的文字将显示在这里",rows:"4"},null,512),[[lm,i.value]])]),p("div",x1,[p("button",{class:"voice-modal__btn voice-modal__btn--secondary",onClick:_}," 重新录制 "),p("button",{class:"voice-modal__btn voice-modal__btn--primary",disabled:!i.value.trim(),onClick:v}," 填入输入框 ",8,C1)])])):o.value==="error"?(O(),D("div",A1,[p("div",k1,[k[9]||(k[9]=p("span",{class:"voice-modal__error-icon"},"⚠️",-1)),p("p",T1,re(r.value),1)]),p("div",{class:"voice-modal__actions"},[p("button",{class:"voice-modal__btn voice-modal__btn--primary",onClick:_}," 重新录制 ")])])):ge("",!0)])]),_:1},8,["show"])}}}),I1=yt(R1,[["__scopeId","data-v-8fef87ac"]]),P1={class:"input-bar"},O1={class:"input-bar__row"},$1={key:0,class:"emoji-panel"},F1={class:"emoji-panel__grid"},B1=["onClick"],D1={class:"input-bar__input-row"},N1=["title"],L1={key:0,class:"input-bar__guide input-bar__guide--active"},M1={key:2,class:"input-bar__guide"},V1=we({__name:"InputBar",emits:["call-agent"],setup(e){function t(Q){return Q?typeof Q=="string"?Q:Array.isArray(Q)?Q.map(ee=>ee.loc&&ee.msg?`${ee.loc.slice(1).join(".")}: ${ee.msg}`:ee.msg?ee.msg:JSON.stringify(ee)).join("; "):typeof Q=="object"?JSON.stringify(Q):String(Q):""}const n=jt(),s=M(""),o=M(null),i=M(null),r=G(()=>s.value.trim().length>0&&!n.loading&&n.isLoggedIn),a=M(!1),l=M(!1),{state:u,init:c,startRecording:d,stopAndTranslate:f,isSupported:h}=i1(),y=G(()=>h()?"wecom":navigator.mediaDevices?"baidu":"none"),g=G(()=>y.value!=="none"),v=G(()=>y.value==="wecom"?u.isRecording:!1),_=M(!1),w=M("");function T(Q){return Q.length>0&&!Q.endsWith(" ")&&!Q.endsWith(` `)}nt(()=>{document.addEventListener("paste",A),document.addEventListener("keydown",le),h()&&c().catch(Q=>{console.warn("[InputBar] 企微 JS-SDK 初始化失败:",Q)})}),Cn(()=>{document.removeEventListener("paste",A),document.removeEventListener("keydown",le)});async function A(Q){var q;const ee=Q.target;if(ee.tagName==="TEXTAREA"||ee.isContentEditable)return;const X=(q=Q.clipboardData)==null?void 0:q.items;if(X){for(const Y of Array.from(X))if(Y.kind==="file"){Q.preventDefault();const ye=Y.getAsFile();if(!ye)continue;ye.type.startsWith("image/")?await B(ye):await K(ye);return}}}const m=["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","😊","😇","🥰","😍","🤩","😘","😗","😚","😙","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😏","😒","🙄","😬","😮","🤯","😲","😳","🥺","😢","😭","😤","😠","😡","🤬","👍","👎","👏","🙌","🤝","💪","✌️","🤞","❤️","🧡","💛","💚","💙","💜","💯","✅"];function k(Q){s.value+=Q,l.value=!1,We(()=>{var X,q;const ee=(q=(X=o.value)==null?void 0:X.$el)==null?void 0:q.querySelector("textarea");ee==null||ee.focus()})}function I(Q){/Android|iPhone|iPad|iPod/i.test(navigator.userAgent)||Q.shiftKey||(Q.preventDefault(),z())}async function z(){const Q=s.value.trim();!Q||n.loading||(s.value="",await n.sendNewMessage(Q))}async function F(Q){var X;const ee=(X=Q.clipboardData)==null?void 0:X.items;if(ee){for(const q of Array.from(ee))if(q.kind==="file"){Q.preventDefault();const Y=q.getAsFile();if(!Y)continue;Y.type.startsWith("image/")?await B(Y):await K(Y);return}}}async function B(Q){var ee,X;try{Ae("图片上传中...");const q=await ir(Q),Y=Q instanceof File?Q.name:"截图";await n.sendNewMessage(`[图片] ${Y}`,{msg_type:"image",media_url:q.url,file_name:q.filename,file_size:q.file_size}),Ae("图片发送成功")}catch(q){console.error("图片上传失败:",q),Ae(t((X=(ee=q==null?void 0:q.response)==null?void 0:ee.data)==null?void 0:X.detail)||(q==null?void 0:q.message)||"图片上传失败,请重试")}}async function K(Q){var ee,X;try{const q=Q instanceof File?Q.name:"文件";Ae(`文件上传中: ${q}`);const Y=await ir(Q);await n.sendNewMessage(`[文件] ${Y.filename}`,{msg_type:"file",media_url:Y.url,file_name:Y.filename,file_size:Y.file_size}),Ae("文件发送成功")}catch(q){console.error("文件上传失败:",q),Ae(t((X=(ee=q==null?void 0:q.response)==null?void 0:ee.data)==null?void 0:X.detail)||(q==null?void 0:q.message)||"文件上传失败,请重试")}}async function U(Q){const ee=Q.target,X=ee.files;if(!(!X||X.length===0)){for(const q of Array.from(X))try{Ae(`正在上传: ${q.name}`);const Y=await ir(q);Ae(`${q.name} 上传成功`),console.log("[InputBar] 文件上传成功:",Y.url)}catch(Y){console.error("文件上传失败:",Y),Ae(`${q.name} 上传失败`)}ee.value=""}}function ae(){l.value=!l.value}function fe(){i.value&&(i.value.accept="",i.value.multiple=!0,i.value.click())}async function ue(Q){if(Q==null||Q.preventDefault(),Q==null||Q.stopPropagation(),y.value!=="none")if(y.value==="wecom")try{if(u.isRecording){const ee=await f();ee?(T(s.value)&&(s.value+=" "),s.value+=ee,Ae("语音识别完成")):Ae("未识别到语音内容")}else await d(),Ae("正在录音,点击停止")}catch(ee){const X=u.error||(ee==null?void 0:ee.message)||"语音识别失败";Ae(X),console.error("[InputBar] 企微语音识别错误:",ee)}else y.value==="baidu"&&(w.value=s.value,_.value=!0)}function pe(Q){Q&&(T(w.value)&&(s.value+=" "),s.value+=Q,Ae("语音识别完成"))}function le(Q){if(Q.ctrlKey&&(Q.key==="d"||Q.key==="D")){if(Q.preventDefault(),!g.value)return;ue()}}function me(Q){a.value=!0;const ee=Q.clientY,X=Q.target.closest(".input-bar"),q=X?X.offsetHeight:100;function Y(te){if(!a.value)return;const he=ee-te.clientY;let S=q+he;S=Math.max(100,Math.min(400,S)),X&&(X.style.height=`${S}px`,X.style.flexShrink="0")}function ye(){a.value=!1,document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",ye),document.body.style.cursor="",document.body.style.userSelect=""}document.body.style.cursor="row-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",Y),document.addEventListener("mouseup",ye)}return(Q,ee)=>{const X=Si,q=ds;return O(),D("div",P1,[p("div",{class:"input-bar__resize-handle",onMousedown:me},[...ee[4]||(ee[4]=[p("div",{class:"input-bar__resize-track"},null,-1)])],32),p("div",O1,[p("div",{class:"input-bar__toolbar"},[p("button",{class:"input-bar__tool-btn",title:"表情",onClick:ae},[...ee[5]||(ee[5]=[p("span",null,"😊",-1)])]),p("button",{class:"input-bar__tool-btn",title:"文件",onClick:fe},[...ee[6]||(ee[6]=[p("span",null,"📎",-1)])])]),l.value?(O(),D("div",$1,[p("div",F1,[(O(),D(Ie,null,bt(m,Y=>p("button",{key:Y,class:"emoji-panel__item",onClick:ye=>k(Y)},re(Y),9,B1)),64))])])):ge("",!0),p("div",D1,[E(X,{ref_key:"inputFieldRef",ref:o,modelValue:s.value,"onUpdate:modelValue":ee[0]||(ee[0]=Y=>s.value=Y),class:"input-bar__field",placeholder:"请输入消息...",type:"textarea",autosize:{minHeight:54,maxHeight:200},rows:"3",disabled:!Ee(n).isLoggedIn,onKeydown:Zu(I,["enter"]),onPaste:F},null,8,["modelValue","disabled"]),g.value?(O(),D("button",{key:0,class:Ue(["input-bar__voice-btn",{"input-bar__voice-btn--recording":v.value}]),title:v.value?"点击停止":"语音输入 (Ctrl+D)",onMousedown:Nn(ue,["prevent"]),onClick:Nn(ue,["prevent"]),onTouchstart:Nn(ue,["prevent"])},re(v.value?"⏹":"🎤"),43,N1)):ge("",!0),E(q,{class:"input-bar__send-btn",type:"primary",size:"small",disabled:!r.value,loading:Ee(n).loading,onClick:z},{default:He(()=>[...ee[7]||(ee[7]=[Ke(" 发送 ",-1)])]),_:1},8,["disabled","loading"])])]),Ee(n).canCallAgent?(O(),D("div",L1," 点击【呼叫】召唤人工坐席 ")):ge("",!0),l.value?(O(),D("div",{key:1,class:"emoji-panel__overlay",onClick:ee[1]||(ee[1]=Y=>l.value=!1)})):(O(),D("div",M1," 请描述你遇到的问题,AI 助手会帮你分析 💡 ")),p("input",{ref_key:"fileInputRef",ref:i,type:"file",style:{display:"none"},onChange:U},null,544),E(I1,{visible:_.value,"onUpdate:visible":ee[2]||(ee[2]=Y=>_.value=Y),"existing-text":s.value,onConfirm:pe,onCancel:ee[3]||(ee[3]=Y=>_.value=!1)},null,8,["visible","existing-text"])])}}}),j1=yt(V1,[["__scopeId","data-v-a4e07715"]]),U1={key:0,class:"call-modal call-modal--compact"},H1={class:"call-modal__step"},z1={class:"call-modal__body call-modal__body--center"},q1={key:0,class:"scene scene--hand"},W1={key:1,class:"scene scene--pound"},K1={key:2,class:"scene scene--scarecrow"},G1={key:3,class:"scene scene--watermelon"},J1={key:4,class:"scene scene--bell"},X1={key:5,class:"scene scene--cannon"},Y1={key:6,class:"scene scene--missile"},Q1={class:"call-modal__speech-text"},Z1={class:"call-modal__speech-emoji"},eS={class:"call-modal__speech-content"},tS={key:7,class:"call-modal__sending"},nS={key:8,class:"call-modal__success"},sS={class:"call-modal__footer call-modal__footer--center"},oS=we({__name:"CallAgentModal",props:{visible:{type:Boolean}},emits:["update:visible","call-success"],setup(e,{emit:t}){const n=e,s=t,o=jt(),i=M(1),r=M(!1),a=M(!1),l=[{id:1,emoji:"🙋",text:"看这里!看我这里...我有个问题!",weight:3},{id:2,emoji:"🪑",text:"快快快!我等不及了!",weight:3},{id:3,emoji:"💀",text:"这个问题不解决我就要原地爆炸了💥",weight:1.5},{id:4,emoji:"🍉",text:"IT!救我!这个问题卡住我了🍉",weight:1.5},{id:5,emoji:"🔔",text:"叮叮叮!有人吗!IT 在线吗!",weight:1},{id:6,emoji:"💣",text:"开炮!💣 这个问题必须解决了!",weight:1.5},{id:7,emoji:"🚀",text:"发射!🚀 紧急呼叫 IT 特种部队!",weight:1.5}];function u(){return 5}const c=G(()=>{var g;return((g=l.find(v=>v.id===i.value))==null?void 0:g.text)??""}),d=G(()=>{var g;return((g=l.find(v=>v.id===i.value))==null?void 0:g.emoji)??"🙋"});be(()=>n.visible,g=>{g&&h()});const f=M("");async function h(){i.value=u(),r.value=!0,a.value=!1,f.value="";try{const g=await o.shakeAgent();f.value=g,a.value=!0,s("call-success"),setTimeout(()=>{a.value&&y()},5e3)}catch{y()}finally{r.value=!1}}function y(){s("update:visible",!1),setTimeout(()=>{r.value=!1,a.value=!1},300)}return(g,v)=>(O(),ut(Zr,{to:"body"},[E(Qo,{name:"modal-fade"},{default:He(()=>[e.visible?(O(),D("div",{key:0,class:"call-modal__overlay",onClick:Nn(y,["self"])},[E(Qo,{name:"modal-zoom",appear:""},{default:He(()=>[e.visible?(O(),D("div",U1,[p("div",H1,[v[8]||(v[8]=p("div",{class:"call-modal__header"},[p("span",{class:"call-modal__icon"},"🔔"),p("h3",null,"呼叫人工坐席帮助...")],-1)),p("div",z1,[i.value===1?(O(),D("div",q1,[...v[0]||(v[0]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"140",width:"200",height:"40",fill:"#E8EAF6"}),p("rect",{x:"45",y:"75",width:"110",height:"65",rx:"10",fill:"#ECEFF1"}),p("rect",{x:"50",y:"80",width:"100",height:"55",rx:"8",fill:"#CFD8DC"}),p("rect",{x:"55",y:"85",width:"40",height:"25",rx:"3",fill:"#90CAF9"}),p("rect",{x:"100",y:"85",width:"40",height:"25",rx:"3",fill:"#90CAF9"}),p("circle",{cx:"135",cy:"70",r:"16",fill:"#F5C6A0"}),p("circle",{cx:"130",cy:"67",r:"2",fill:"#333"}),p("circle",{cx:"140",cy:"67",r:"2",fill:"#333"}),p("path",{d:"M130 75 Q135 79 140 75",stroke:"#333","stroke-width":"1.5",fill:"none"}),p("rect",{x:"12",y:"72",width:"30",height:"50",rx:"8",fill:"#F5C6A0"}),p("g",{class:"hand-arm"},[p("line",{x1:"42",y1:"80",x2:"55",y2:"55",stroke:"#F5C6A0","stroke-width":"8","stroke-linecap":"round"})]),p("g",{class:"bubble-float"},[p("rect",{x:"55",y:"36",width:"100",height:"24",rx:"12",fill:"#FF9800"}),p("text",{x:"105",y:"52","text-anchor":"middle",fill:"white","font-size":"11","font-weight":"bold"},"看这里!🙋")])],-1)])])):i.value===2?(O(),D("div",W1,[...v[1]||(v[1]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"140",width:"200",height:"40",fill:"#D7CCC8"}),p("rect",{x:"30",y:"105",width:"140",height:"35",rx:"6",fill:"#8D6E63"}),p("rect",{x:"35",y:"110",width:"130",height:"25",rx:"4",fill:"#A1887F"}),p("rect",{x:"20",y:"75",width:"35",height:"50",rx:"8",fill:"#795548"}),p("circle",{cx:"37",cy:"60",r:"16",fill:"#F5C6A0"}),p("g",{class:"pound-fists"},[p("circle",{cx:"75",cy:"98",r:"9",fill:"#F5C6A0"}),p("circle",{cx:"105",cy:"98",r:"9",fill:"#F5C6A0"})]),p("g",{class:"splash-lines"},[p("line",{x1:"68",y1:"90",x2:"62",y2:"82",stroke:"#FF5722","stroke-width":"2"}),p("line",{x1:"80",y1:"88",x2:"80",y2:"78",stroke:"#FF5722","stroke-width":"2"}),p("line",{x1:"90",y1:"88",x2:"95",y2:"78",stroke:"#FF5722","stroke-width":"2"}),p("line",{x1:"110",y1:"90",x2:"110",y2:"80",stroke:"#FF5722","stroke-width":"2"}),p("line",{x1:"120",y1:"90",x2:"126",y2:"82",stroke:"#FF5722","stroke-width":"2"})]),p("g",{class:"bubble-float"},[p("rect",{x:"90",y:"36",width:"100",height:"24",rx:"12",fill:"#FF5722"}),p("text",{x:"140",y:"52","text-anchor":"middle",fill:"white","font-size":"11","font-weight":"bold"},"快快快!🪑")])],-1)])])):i.value===3?(O(),D("div",K1,[...v[2]||(v[2]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"140",width:"200",height:"40",fill:"#C8E6C9"}),p("rect",{x:"145",y:"100",width:"6",height:"40",fill:"#795548"}),p("rect",{x:"133",y:"95",width:"30",height:"5",rx:"2",fill:"#795548"}),p("circle",{cx:"148",cy:"85",r:"14",fill:"#FFE082"}),p("line",{x1:"148",y1:"74",x2:"148",y2:"70",stroke:"#333","stroke-width":"1.5"}),p("rect",{x:"25",y:"72",width:"30",height:"50",rx:"8",fill:"#1565C0"}),p("circle",{cx:"40",cy:"57",r:"16",fill:"#F5C6A0"}),p("g",{class:"slash-blade"},[p("rect",{x:"55",y:"40",width:"6",height:"50",rx:"2",fill:"#B0BEC5"}),p("rect",{x:"52",y:"38",width:"12",height:"8",rx:"2",fill:"#90A4AE"})]),p("g",{class:"explosion-effect"},[p("circle",{cx:"148",cy:"85",r:"10",fill:"#FF5722",opacity:"0"})]),p("g",{class:"bubble-float"},[p("rect",{x:"5",y:"5",width:"105",height:"24",rx:"12",fill:"#D32F2F"}),p("text",{x:"57",y:"21","text-anchor":"middle",fill:"white","font-size":"10","font-weight":"bold"},"我要爆炸了💥")])],-1)])])):i.value===4?(O(),D("div",G1,[...v[3]||(v[3]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"140",width:"200",height:"40",fill:"#C8E6C9"}),p("g",{class:"melon"},[p("ellipse",{cx:"140",cy:"125",rx:"25",ry:"18",fill:"#4CAF50"}),p("ellipse",{cx:"140",cy:"122",rx:"18",ry:"10",fill:"#F44336"})]),p("rect",{x:"25",y:"75",width:"30",height:"47",rx:"8",fill:"#1565C0"}),p("circle",{cx:"40",cy:"60",r:"16",fill:"#F5C6A0"}),p("g",{class:"knife"},[p("rect",{x:"55",y:"42",width:"6",height:"45",rx:"2",fill:"#B0BEC5"}),p("rect",{x:"52",y:"40",width:"12",height:"8",rx:"2",fill:"#90A4AE"})]),p("g",{class:"juice-splash"},[p("circle",{cx:"130",cy:"110",r:"2",fill:"#F44336",opacity:"0"}),p("circle",{cx:"145",cy:"105",r:"2.5",fill:"#F44336",opacity:"0"}),p("circle",{cx:"155",cy:"112",r:"1.5",fill:"#F44336",opacity:"0"})]),p("g",{class:"bubble-float"},[p("rect",{x:"5",y:"5",width:"105",height:"24",rx:"12",fill:"#43A047"}),p("text",{x:"57",y:"21","text-anchor":"middle",fill:"white","font-size":"10","font-weight":"bold"},"IT救我!🍉")])],-1)])])):i.value===5?(O(),D("div",J1,[...v[4]||(v[4]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"140",width:"200",height:"40",fill:"#FFF3E0"}),p("rect",{x:"25",y:"70",width:"30",height:"52",rx:"8",fill:"#FF9800"}),p("circle",{cx:"40",cy:"55",r:"16",fill:"#F5C6A0"}),p("g",{class:"bell-left"},[p("path",{d:"M52 72 Q52 58 60 50 Q68 42 72 50 Q76 58 74 72",fill:"#FFD54F",stroke:"#FFA000","stroke-width":"1.5"}),p("ellipse",{cx:"63",cy:"72",rx:"9",ry:"3",fill:"#FFA000"})]),p("g",{class:"bell-right"},[p("path",{d:"M92 72 Q92 58 100 50 Q108 42 112 50 Q116 58 114 72",fill:"#FFD54F",stroke:"#FFA000","stroke-width":"1.5"}),p("ellipse",{cx:"103",cy:"72",rx:"9",ry:"3",fill:"#FFA000"})]),p("g",{class:"sound-waves"},[p("circle",{cx:"160",cy:"55",r:"10",fill:"none",stroke:"#FF9800","stroke-width":"1.5",opacity:"0"}),p("circle",{cx:"160",cy:"55",r:"16",fill:"none",stroke:"#FF9800","stroke-width":"1.5",opacity:"0"}),p("circle",{cx:"160",cy:"55",r:"22",fill:"none",stroke:"#FF9800","stroke-width":"1",opacity:"0"})]),p("g",{class:"bubble-float"},[p("rect",{x:"5",y:"5",width:"105",height:"24",rx:"12",fill:"#FF9800"}),p("text",{x:"57",y:"21","text-anchor":"middle",fill:"white","font-size":"10","font-weight":"bold"},"叮叮叮!有人吗")])],-1)])])):i.value===6?(O(),D("div",X1,[...v[5]||(v[5]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"145",width:"200",height:"35",fill:"#D7CCC8"}),p("rect",{x:"55",y:"132",width:"50",height:"16",rx:"3",fill:"#5D4037"}),p("circle",{cx:"80",cy:"138",r:"9",fill:"#4E342E"}),p("g",{class:"cannon-barrel"},[p("rect",{x:"58",y:"110",width:"55",height:"14",rx:"4",fill:"#616161"}),p("rect",{x:"108",y:"108",width:"12",height:"18",rx:"3",fill:"#757575"})]),p("g",{class:"fuse"},[p("path",{d:"M58 117 Q52 115 48 118 Q44 121 40 117",stroke:"#FF9800","stroke-width":"2",fill:"none"}),p("circle",{cx:"38",cy:"116",r:"3",fill:"#FF5722",class:"fuse-spark"})]),p("g",{class:"cannonball"},[p("circle",{cx:"120",cy:"105",r:"7",fill:"#37474F"})]),p("g",{class:"explosion"},[p("circle",{cx:"170",cy:"60",r:"18",fill:"#FF5722",opacity:"0",class:"blast-main"}),p("circle",{cx:"170",cy:"60",r:"12",fill:"#FFC107",opacity:"0",class:"blast-inner"}),p("line",{x1:"170",y1:"40",x2:"170",y2:"30",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-1"}),p("line",{x1:"185",y1:"48",x2:"192",y2:"42",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-2"}),p("line",{x1:"188",y1:"60",x2:"196",y2:"60",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-3"}),p("line",{x1:"185",y1:"72",x2:"192",y2:"78",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-4"}),p("line",{x1:"170",y1:"80",x2:"170",y2:"90",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-5"}),p("line",{x1:"155",y1:"72",x2:"148",y2:"78",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-6"}),p("line",{x1:"152",y1:"60",x2:"144",y2:"60",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-7"}),p("line",{x1:"155",y1:"48",x2:"148",y2:"42",stroke:"#FF5722","stroke-width":"3",opacity:"0",class:"blast-ray ray-8"})]),p("g",{class:"target"},[p("circle",{cx:"170",cy:"55",r:"14",fill:"none",stroke:"#F44336","stroke-width":"2"}),p("circle",{cx:"170",cy:"55",r:"8",fill:"none",stroke:"#F44336","stroke-width":"1.5"}),p("circle",{cx:"170",cy:"55",r:"2",fill:"#F44336"}),p("text",{x:"170",y:"38","text-anchor":"middle",fill:"#F44336","font-size":"9","font-weight":"bold"},"BUG")]),p("rect",{x:"5",y:"75",width:"30",height:"57",rx:"7",fill:"#795548"}),p("circle",{cx:"20",cy:"60",r:"16",fill:"#F5C6A0"}),p("circle",{cx:"15",cy:"57",r:"2",fill:"#333"}),p("circle",{cx:"25",cy:"57",r:"2",fill:"#333"}),p("path",{d:"M14 66 Q20 70 26 66",stroke:"#333","stroke-width":"1.5",fill:"none"}),p("line",{x1:"35",y1:"85",x2:"48",y2:"100",stroke:"#F5C6A0","stroke-width":"7","stroke-linecap":"round",class:"gunner-arm"}),p("g",{class:"bubble-float"},[p("rect",{x:"5",y:"5",width:"95",height:"24",rx:"12",fill:"#FF5722"}),p("text",{x:"52",y:"21","text-anchor":"middle",fill:"white","font-size":"11","font-weight":"bold"},"开炮!💣")])],-1)])])):i.value===7?(O(),D("div",Y1,[...v[6]||(v[6]=[p("svg",{viewBox:"0 0 200 180",xmlns:"http://www.w3.org/2000/svg",class:"scene__svg"},[p("rect",{x:"0",y:"0",width:"200",height:"140",fill:"#E3F2FD"}),p("rect",{x:"0",y:"140",width:"200",height:"40",fill:"#BDBDBD"}),p("rect",{x:"85",y:"130",width:"30",height:"12",rx:"2",fill:"#616161"}),p("rect",{x:"88",y:"142",width:"8",height:"10",fill:"#757575"}),p("rect",{x:"104",y:"142",width:"8",height:"10",fill:"#757575"}),p("g",{class:"missile-body"},[p("rect",{x:"94",y:"50",width:"12",height:"65",rx:"4",fill:"#E0E0E0"}),p("path",{d:"M94 50 L100 35 L106 50 Z",fill:"#F44336"}),p("polygon",{points:"94,108 86,115 94,112",fill:"#F44336"}),p("polygon",{points:"106,108 114,115 106,112",fill:"#F44336"})]),p("g",{class:"rocket-flame"},[p("ellipse",{cx:"100",cy:"118",rx:"4",ry:"10",fill:"#FF9800",class:"flame-outer"}),p("ellipse",{cx:"100",cy:"116",rx:"2",ry:"6",fill:"#FFEB3B",class:"flame-inner"})]),p("g",{class:"smoke"},[p("circle",{cx:"88",cy:"145",r:"8",fill:"#CFD8DC",opacity:"0",class:"smoke-puff puff-1"}),p("circle",{cx:"112",cy:"145",r:"8",fill:"#CFD8DC",opacity:"0",class:"smoke-puff puff-2"}),p("circle",{cx:"100",cy:"155",r:"10",fill:"#CFD8DC",opacity:"0",class:"smoke-puff puff-3"})]),p("g",{class:"trail"},[p("path",{d:"M100 130 L100 145",stroke:"#FFC107","stroke-width":"2",opacity:"0",class:"trail-line"})]),p("rect",{x:"15",y:"80",width:"28",height:"52",rx:"7",fill:"#1565C0"}),p("circle",{cx:"29",cy:"65",r:"16",fill:"#F5C6A0"}),p("rect",{x:"18",y:"58",width:"22",height:"8",rx:"3",fill:"#333",opacity:"0.7"}),p("circle",{cx:"24",cy:"62",r:"1.5",fill:"#FFF"}),p("circle",{cx:"34",cy:"62",r:"1.5",fill:"#FFF"}),p("ellipse",{cx:"29",cy:"72",rx:"4",ry:"3",fill:"#333"}),p("line",{x1:"43",y1:"90",x2:"60",y2:"100",stroke:"#F5C6A0","stroke-width":"7","stroke-linecap":"round"}),p("rect",{x:"55",y:"105",width:"15",height:"20",rx:"3",fill:"#424242"}),p("circle",{cx:"62.5",cy:"112",r:"3",fill:"#F44336",class:"launch-button"})],-1)])])):ge("",!0),p("div",Q1,[p("span",Z1,re(d.value),1),p("span",eS,re(c.value),1)]),r.value?(O(),D("div",tS,[...v[7]||(v[7]=[p("span",{class:"call-modal__dot-flashing"},null,-1),p("span",null,"正在通知 IT 坐席...",-1)])])):ge("",!0),a.value?(O(),D("div",nS,[f.value==="assigned"?(O(),D(Ie,{key:0},[Ke(" 🎉 呼叫成功!坐席已为您服务 ")],64)):f.value==="queued"?(O(),D(Ie,{key:1},[Ke(" ⏳ 坐席正忙,您已进入排队,请耐心等待... ")],64)):(O(),D(Ie,{key:2},[Ke(" ✅ 呼叫成功!坐席马上就来~ ")],64))])):ge("",!0)]),p("div",sS,[a.value?(O(),D("button",{key:0,class:"call-modal__btn call-modal__btn--primary call-modal__btn--large",onClick:y},"好的,返回聊天")):(O(),D("button",{key:1,class:"call-modal__btn call-modal__btn--cancel",onClick:y},"取消"))])])])):ge("",!0)]),_:1})])):ge("",!0)]),_:1})]))}}),iS=yt(oS,[["__scopeId","data-v-bdaecda0"]]),rS={key:0,class:"ts-flow"},aS={class:"ts-flow__path"},lS={class:"ts-flow__path-bar"},cS={class:"ts-flow__label"},uS={class:"ts-flow__card"},dS={key:0,class:"ts-flow__question"},fS={class:"ts-flow__question-header"},hS={class:"ts-flow__question-text"},pS={class:"ts-flow__options"},mS=["disabled"],gS=["disabled"],vS={key:1,class:"ts-flow__instruction"},_S={class:"ts-flow__instruction-header"},yS={class:"ts-flow__instruction-title"},bS={key:0,class:"ts-flow__instruction-steps"},wS={class:"ts-flow__sub-dot"},SS={class:"ts-flow__sub-label"},ES={key:2,class:"ts-flow__waiting"},xS={class:"ts-flow__sync-status"},CS=we({__name:"TroubleshootFlow",setup(e){const t=jt(),n=M(!1),s=G(()=>t.troubleshootingSteps||[]),o=G(()=>t.troubleshootingTemplateName||"排查中"),i=G(()=>t.troubleshootingCurrentNode||null);function r(l){var u,c;if(!n.value){n.value=!0;try{i.value&&(i.value.status="done");const d=l==="yes"?(u=i.value)==null?void 0:u.yes_branch:(c=i.value)==null?void 0:c.no_branch;d&&(t.troubleshootingCurrentNode=d,d.status="current",d.type==="step"&&a(d)),console.log("[TroubleshootFlow] 用户选择:",l,"下一节点:",d==null?void 0:d.label)}finally{setTimeout(()=>{n.value=!1},500)}}}function a(l){const u=t.troubleshootingSteps;if(!u||u.length===0)return;const c=u.findIndex(d=>d.label===l.label);if(c>=0){const d=u.map((f,h)=>({...f,status:h{var c,d;return s.value.length>0?(O(),D("div",rS,[p("div",aS,[p("div",lS,[(O(!0),D(Ie,null,bt(s.value,(f,h)=>(O(),D(Ie,{key:h},[p("div",{class:Ue(["ts-flow__step",`ts-flow__step--${f.status}`])},[p("span",{class:Ue(["ts-flow__dot",`ts-flow__dot--${f.status}`])},[f.status==="done"?(O(),D(Ie,{key:0},[Ke("✓")],64)):(O(),D(Ie,{key:1},[Ke(re(h+1),1)],64))],2),p("span",cS,re(f.label),1)],2),hr("yes")),disabled:n.value},[u[3]||(u[3]=p("span",{class:"ts-flow__option-icon"},"✅",-1)),p("span",null,re(((c=i.value.yes_branch)==null?void 0:c.label)||"是"),1)],8,mS),p("button",{class:"ts-flow__option ts-flow__option--no",onClick:u[1]||(u[1]=f=>r("no")),disabled:n.value},[u[4]||(u[4]=p("span",{class:"ts-flow__option-icon"},"❌",-1)),p("span",null,re(((d=i.value.no_branch)==null?void 0:d.label)||"否"),1)],8,gS)])])):i.value&&i.value.type==="step"?(O(),D("div",vS,[p("div",_S,[u[5]||(u[5]=p("span",{class:"ts-flow__instruction-icon"},"📋",-1)),p("span",yS,"正在执行:"+re(i.value.label),1)]),i.value.children&&i.value.children.length>0?(O(),D("div",bS,[(O(!0),D(Ie,null,bt(i.value.children,(f,h)=>(O(),D("div",{key:f.id,class:Ue(["ts-flow__sub-step",`ts-flow__sub-step--${f.status||"pending"}`])},[p("span",wS,re(h+1),1),p("span",SS,re(f.label),1)],2))),128))])):ge("",!0),u[6]||(u[6]=p("div",{class:"ts-flow__instruction-hint"},[p("span",null,"💡 请按坐席指引操作,完成后坐席会推进到下一步")],-1))])):(O(),D("div",ES,[...u[7]||(u[7]=[p("span",{class:"ts-flow__waiting-icon"},"⏳",-1),p("span",null,"坐席正在选择排查流程,请稍候...",-1)])])),p("div",xS,[u[8]||(u[8]=p("span",{class:"ts-flow__sync-dot"},null,-1)),p("span",null,"排查进度实时同步 · "+re(o.value),1)])])])):ge("",!0)}}}),AS=yt(CS,[["__scopeId","data-v-412334b8"]]),Df={primary_agent:"#3b82f6",collaborator:"#07C160",owner:"#FF9800",invitee:"transparent"};function Nf(){const e=jt(),t=Ot(),n=G(()=>{var r;return((r=e.userInfo)==null?void 0:r.employee_id)||""}),s=G(()=>{var u;const r=e.currentConversation;if(!r)return[];const a=[];if(r.agent_name&&a.push({id:r.agent_id||"agent_primary",name:r.agent_name,avatar:"",department:"IT坐席",role:"primary_agent",joined:!0,isSelf:!1}),r.employee_name){const c=r.employee_id===n.value;a.push({id:r.employee_id,name:c?"我":r.employee_name,avatar:c&&((u=t.employeeInfo)==null?void 0:u.avatar)||"",department:"",role:"owner",joined:!0,isSelf:c})}const l=(e.participants||[]).slice().sort((c,d)=>c.joined!==d.joined?c.joined?-1:1:c.joined_at&&d.joined_at?new Date(c.joined_at).getTime()-new Date(d.joined_at).getTime():0);for(const c of l)a.push({id:c.id,name:c.name,avatar:c.avatar||"",department:c.department||"",role:"invitee",joined:c.joined??!1,isSelf:c.id===n.value,joinedAt:c.joined_at});return a}),o=G(()=>s.value.length),i=G(()=>s.value.some(r=>!r.joined));return{normalizedParticipants:s,totalCount:o,hasPending:i,currentUserId:n}}const kS={class:"participant-strip__count"},TS={class:"participant-strip__avatars"},RS=["src","alt","onError"],IS={key:1,class:"participant-strip__avatar-letter"},PS={key:0,class:"participant-strip__overflow"},OS={key:0,class:"participant-strip__badge-dot"},kc=4,$S=we({__name:"ParticipantStrip",setup(e){const t=jt(),n=M({}),{normalizedParticipants:s,totalCount:o,hasPending:i}=Nf(),r=G(()=>s.value.slice(0,kc)),a=G(()=>Math.max(0,s.value.length-kc));function l(c){return(c||"?").charAt(0)}function u(){t.participantPanelVisible=!0}return(c,d)=>(O(),D("div",{class:Ue(["participant-strip",{"participant-strip--has-pending":Ee(i)}]),onClick:u},[p("span",kS,re(Ee(o))+"人在群",1),p("div",TS,[(O(!0),D(Ie,null,bt(r.value,f=>(O(),D("div",{key:f.id,class:Ue(["participant-strip__avatar",{"participant-strip__avatar--self":f.isSelf}]),style:Vn({borderColor:Ee(Df)[f.role]})},[f.avatar&&!n.value[f.id]?(O(),D("img",{key:0,src:f.avatar,alt:f.name,class:"participant-strip__avatar-img",onError:h=>n.value[f.id]=!0},null,40,RS)):(O(),D("span",IS,re(l(f.name)),1))],6))),128)),a.value>0?(O(),D("span",PS," +"+re(a.value),1)):ge("",!0)]),d[0]||(d[0]=p("span",{class:"participant-strip__arrow"},"▼",-1)),Ee(i)?(O(),D("span",OS)):ge("",!0)],2))}}),FS=yt($S,[["__scopeId","data-v-154a02b9"]]);async function BS(e){return await Ne.get("/h5/employees/search",{params:{keyword:e}})}async function DS(){return await Ne.get("/h5/org/tree")}async function NS(e,t,n="recent10"){return await Ne.post(`/h5/conversations/${e}/invite-participant`,{participants:t,history_mode:n})}const LS={class:"invite-sheet"},MS={class:"invite-sheet__header"},VS={class:"invite-sheet__content"},jS={key:0,class:"invite-sheet__loading"},US={key:1,class:"invite-sheet__empty"},HS={key:2},zS=["onClick"],qS={class:"invite-cell__avatar"},WS={class:"invite-cell__info"},KS={class:"invite-cell__name"},GS={key:0,class:"invite-cell__dept"},JS={key:0,class:"invite-cell__badge"},XS={class:"invite-sheet__content"},YS={key:0,class:"invite-sheet__loading"},QS={class:"invite-collapse__count"},ZS=["onClick"],eE={class:"invite-cell__avatar"},tE={class:"invite-cell__info"},nE={class:"invite-cell__name"},sE={key:0,class:"invite-cell__dept"},oE={key:0,class:"invite-cell__badge"},iE={class:"invite-sheet__footer"},rE={class:"invite-sheet__count"},aE=we({__name:"InviteParticipantSheet",props:{show:{type:Boolean,default:!1},conversationId:{default:""},existingParticipantIds:{default:()=>[]}},emits:["update:show","invited"],setup(e,{emit:t}){const n=e,s=t,o=M(0),i=M(""),r=M([]),a=M(!1),l=M([]),u=M(!1),c=M(!1),d=M([]),f=M(!1),h=M(new Map),y=G(()=>h.value.size);function g(B){return(B||"?").charAt(0)}function v(B){return h.value.has(B)}function _(B){return n.existingParticipantIds.includes(B)}function w(B){_(B.id)||(h.value.has(B.id)?h.value.delete(B.id):h.value.set(B.id,B))}function T(B){w({id:B.id,name:B.name,department:B.department||""})}function A(B){w({id:B.id,name:B.label,department:B.department||""})}let m=null;function k(B){m&&clearTimeout(m),m=setTimeout(()=>{I(B)},300)}async function I(B){const K=(B||"").trim();if(!K){r.value=[];return}a.value=!0;try{r.value=await BS(K)}catch(U){console.error("[InviteSheet] 搜索失败:",U)}finally{a.value=!1}}async function z(){if(!c.value){u.value=!0;try{l.value=await DS(),c.value=!0,l.value.length>0&&(d.value=[l.value[0].id])}catch(B){console.error("[InviteSheet] 获取组织架构树失败:",B)}finally{u.value=!1}}}async function F(){if(!(y.value===0||!n.conversationId)){f.value=!0;try{const B=Array.from(h.value.values()).map(K=>({id:K.id,name:K.name,department:K.department,type:"employee"}));await NS(n.conversationId,B,"recent10"),Ae("邀请已发送"),h.value.clear(),s("update:show",!1),s("invited")}catch(B){console.error("[InviteSheet] 邀请失败:",B)}finally{f.value=!1}}}return be(()=>n.show,B=>{B&&(h.value.clear(),i.value="",r.value=[],o.value=0)}),be(o,B=>{B===1&&!c.value&&!u.value&&z()}),(B,K)=>{const U=m_,ae=bs,fe=Nv,ue=av,pe=jd,le=Wv,me=jv,Q=lv,ee=ds,X=Hn;return O(),ut(X,{show:e.show,position:"bottom",round:"",teleport:"body",style:{maxHeight:"85vh",minHeight:"50vh"},"onUpdate:show":K[4]||(K[4]=q=>B.$emit("update:show",q))},{default:He(()=>[p("div",LS,[p("div",MS,[K[5]||(K[5]=p("span",{class:"invite-sheet__title"},"邀请参与者",-1)),p("button",{class:"invite-sheet__close",onClick:K[0]||(K[0]=q=>B.$emit("update:show",!1))}," × ")]),E(Q,{active:o.value,"onUpdate:active":K[3]||(K[3]=q=>o.value=q),shrink:""},{default:He(()=>[E(ue,{title:"搜索"},{default:He(()=>[E(U,{modelValue:i.value,"onUpdate:modelValue":[K[1]||(K[1]=q=>i.value=q),k],placeholder:"搜索姓名或工号",shape:"round"},null,8,["modelValue"]),p("div",VS,[a.value?(O(),D("div",jS,[E(ae,{type:"spinner",size:"24px"},{default:He(()=>[...K[6]||(K[6]=[Ke("搜索中...",-1)])]),_:1})])):i.value&&r.value.length===0?(O(),D("div",US," 未找到匹配的员工 ")):(O(),D("div",HS,[(O(!0),D(Ie,null,bt(r.value,q=>(O(),D("div",{key:q.id,class:Ue(["invite-cell",{"invite-cell--disabled":_(q.id)}]),onClick:Y=>T(q)},[E(fe,{"model-value":v(q.id),disabled:_(q.id),shape:"square"},null,8,["model-value","disabled"]),p("div",qS,re(g(q.name)),1),p("div",WS,[p("span",KS,re(q.name),1),q.department?(O(),D("span",GS,re(q.department),1)):ge("",!0)]),_(q.id)?(O(),D("span",JS,"已在会话中")):ge("",!0)],10,zS))),128))]))])]),_:1}),E(ue,{title:"组织架构"},{default:He(()=>[p("div",XS,[u.value?(O(),D("div",YS,[E(ae,{type:"spinner",size:"24px"},{default:He(()=>[...K[7]||(K[7]=[Ke("加载中...",-1)])]),_:1})])):l.value.length===0?(O(),ut(pe,{key:1,description:"暂无组织架构数据",image:"search"})):(O(),ut(me,{key:2,modelValue:d.value,"onUpdate:modelValue":K[2]||(K[2]=q=>d.value=q)},{default:He(()=>[(O(!0),D(Ie,null,bt(l.value,q=>(O(),ut(le,{key:q.id,name:q.id,title:q.label},{"right-icon":He(()=>[p("span",QS,re((q.children||[]).length)+"人 ",1)]),default:He(()=>[(O(!0),D(Ie,null,bt(q.children||[],Y=>(O(),D("div",{key:Y.id,class:Ue(["invite-cell",{"invite-cell--disabled":_(Y.id)}]),onClick:ye=>A(Y)},[E(fe,{"model-value":v(Y.id),disabled:_(Y.id),shape:"square"},null,8,["model-value","disabled"]),p("div",eE,re(g(Y.label)),1),p("div",tE,[p("span",nE,re(Y.label),1),Y.department?(O(),D("span",sE,re(Y.department),1)):ge("",!0)]),_(Y.id)?(O(),D("span",oE,"已在会话中")):ge("",!0)],10,ZS))),128))]),_:2},1032,["name","title"]))),128))]),_:1},8,["modelValue"]))])]),_:1})]),_:1},8,["active"]),p("div",iE,[p("span",rE,[K[8]||(K[8]=Ke(" 已选 ",-1)),p("strong",null,re(y.value),1),K[9]||(K[9]=Ke(" 人 ",-1))]),E(ee,{type:"success",size:"small",round:"",loading:f.value,disabled:y.value===0||!e.conversationId,onClick:F},{default:He(()=>[...K[10]||(K[10]=[Ke(" 确认邀请 ",-1)])]),_:1},8,["loading","disabled"])])])]),_:1},8,["show"])}}}),lE=yt(aE,[["__scopeId","data-v-cbc7149e"]]),cE={class:"participant-list"},uE={class:"participant-list__header"},dE={class:"participant-list__items"},fE=["src","alt","onError"],hE={key:1,class:"participant-item__avatar-letter"},pE={class:"participant-item__info"},mE={class:"participant-item__name"},gE={key:0,class:"participant-item__self-tag"},vE={key:0,class:"participant-item__dept"},_E={key:0,class:"participant-item__badge participant-item__badge--agent"},yE={key:1,class:"participant-item__badge participant-item__badge--owner"},bE={key:2,class:"participant-item__badge participant-item__badge--joined"},wE={key:3,class:"participant-item__badge participant-item__badge--pending"},SE={key:0,class:"participant-list__invite-section"},EE={key:1,class:"participant-list__footer"},xE=["disabled"],CE=we({__name:"ParticipantList",setup(e){const t=jt(),n=Ot(),s=M(!1),o=M({}),{normalizedParticipants:i}=Nf(),r=M(!1),a=G(()=>{const f=t.currentConversation;return!!f&&f.employee_id===n.employeeId}),l=G(()=>i.value.map(f=>f.id).filter(Boolean));async function u(){r.value=!1,await t.fetchCurrentConversation()}function c(f){return(f||"?").charAt(0)}async function d(){try{await o_({title:"退出会话",message:"确定要退出该会话吗?退出后将无法查看会话消息。",confirmButtonText:"确定退出",cancelButtonText:"再想想",confirmButtonColor:"#ee0a24"}),s.value=!0,await t.leaveAsParticipant(),Ae("已退出会话"),t.participantPanelVisible=!1}catch(f){f!=="cancel"&&(console.error("[ParticipantList] 退出失败:",f),Ae("退出失败,请重试"))}finally{s.value=!1}}return(f,h)=>{var y;return O(),D("div",cE,[p("div",uE,[h[3]||(h[3]=p("span",{class:"participant-list__title"},"参与者",-1)),p("button",{class:"participant-list__close-btn",onClick:h[0]||(h[0]=g=>Ee(t).participantPanelVisible=!1)}," × ")]),p("div",dE,[(O(!0),D(Ie,null,bt(Ee(i),g=>(O(),D("div",{key:g.id,class:Ue(["participant-item",{"participant-item--self":g.isSelf}])},[p("div",{class:Ue(["participant-item__avatar",{"participant-item__avatar--self":g.isSelf,"participant-item__avatar--agent":g.role==="primary_agent"}]),style:Vn({borderColor:Ee(Df)[g.role]})},[g.avatar&&!o.value[g.id]?(O(),D("img",{key:0,src:g.avatar,alt:g.name,class:"participant-item__avatar-img",onError:v=>o.value[g.id]=!0},null,40,fE)):(O(),D("span",hE,re(c(g.name)),1))],6),p("div",pE,[p("span",mE,[Ke(re(g.name)+" ",1),g.isSelf?(O(),D("span",gE,"(我)")):ge("",!0)]),g.department?(O(),D("span",vE,re(g.department),1)):ge("",!0)]),g.role==="primary_agent"?(O(),D("span",_E,"坐席")):g.role==="owner"?(O(),D("span",yE,"发起人")):g.joined?(O(),D("span",bE,"已加入")):(O(),D("span",wE,"待加入"))],2))),128))]),a.value?(O(),D("div",SE,[p("button",{class:"participant-list__invite-btn",onClick:h[1]||(h[1]=g=>r.value=!0)},[...h[4]||(h[4]=[p("span",{class:"participant-list__invite-icon"},"+",-1),Ke(" 邀请参与者 ",-1)])])])):ge("",!0),Ee(t).isParticipant?(O(),D("div",EE,[p("button",{class:"participant-list__leave-btn",disabled:s.value,onClick:d},re(s.value?"退出中...":"退出会话"),9,xE)])):ge("",!0),E(lE,{show:r.value,"onUpdate:show":h[2]||(h[2]=g=>r.value=g),"conversation-id":((y=Ee(t).currentConversation)==null?void 0:y.conversation_id)||"","existing-participant-ids":l.value,onInvited:u},null,8,["show","conversation-id","existing-participant-ids"])])}}}),AE=yt(CE,[["__scopeId","data-v-ef11ea34"]]),kE={class:"evaluation-dialog"},TE={class:"evaluation-dialog__section"},RE={class:"star-rating"},IE={class:"star-label"},PE={class:"evaluation-dialog__section"},OE={class:"emoji-selector"},$E={class:"evaluation-dialog__section"},FE={class:"evaluation-dialog__actions"},BE={class:"evaluation-dialog__skip"},DE=we({__name:"EvaluationDialog",props:{modelValue:{type:Boolean,default:!1},conversationId:{default:""}},emits:["update:modelValue","submitted"],setup(e,{expose:t,emit:n}){const s=e,o=n,i=G({get:()=>s.modelValue,set:g=>o("update:modelValue",g)}),r=M({star_rating:0,emoji:"",feedback_text:""}),a=M(!1),l=G(()=>({0:"",1:"非常差",2:"较差",3:"一般",4:"满意",5:"非常满意"})[r.value.star_rating]||""),u=G(()=>r.value.star_rating>0&&r.value.emoji!=="");be(i,async g=>{if(g&&s.conversationId)try{await Mw(s.conversationId)&&(i.value=!1,Ae("您已评价过该会话"))}catch(v){console.warn("[EvaluationDialog] 检查评价状态失败:",v)}});function c(g){r.value.emoji=g}function d(g){g>=4?r.value.emoji="satisfied":g>=2?r.value.emoji="neutral":r.value.emoji="dissatisfied"}async function f(){var g,v;if(!(!u.value||a.value)){a.value=!0;try{await Lw(s.conversationId,{star_rating:r.value.star_rating,emoji:r.value.emoji,feedback_text:r.value.feedback_text||void 0}),Ae("评价成功,感谢您的反馈!"),i.value=!1,o("submitted")}catch(_){console.error("[EvaluationDialog] 提交评价失败:",_);const w=((v=(g=_==null?void 0:_.response)==null?void 0:g.data)==null?void 0:v.message)||"提交失败,请稍后重试";Ae(w)}finally{a.value=!1}}}function h(){i.value=!1}function y(){r.value={star_rating:0,emoji:"",feedback_text:""},a.value=!1}return t({resetForm:y}),(g,v)=>{const _=u_,w=Si,T=ds,A=Hn;return O(),ut(A,{show:i.value,"onUpdate:show":v[5]||(v[5]=m=>i.value=m),round:"","close-on-click-overlay":!1,class:"evaluation-popup"},{default:He(()=>[p("div",kE,[v[14]||(v[14]=p("div",{class:"evaluation-dialog__header"},[p("h3",{class:"evaluation-dialog__title"},"请对本次服务进行评价"),p("p",{class:"evaluation-dialog__subtitle"},"您的评价对我们非常重要")],-1)),p("div",TE,[v[6]||(v[6]=p("div",{class:"evaluation-dialog__label"},"服务评分",-1)),p("div",RE,[E(_,{modelValue:r.value.star_rating,"onUpdate:modelValue":v[0]||(v[0]=m=>r.value.star_rating=m),count:5,size:"32",color:"#FFD21E","void-color":"#E5E5E5",onChange:d},null,8,["modelValue"]),p("span",IE,re(l.value),1)])]),p("div",PE,[v[10]||(v[10]=p("div",{class:"evaluation-dialog__label"},"整体感受",-1)),p("div",OE,[p("div",{class:Ue(["emoji-item",{"emoji-item--selected":r.value.emoji==="satisfied"}]),onClick:v[1]||(v[1]=m=>c("satisfied"))},[...v[7]||(v[7]=[p("span",{class:"emoji-icon"},"😀",-1),p("span",{class:"emoji-text"},"满意",-1)])],2),p("div",{class:Ue(["emoji-item",{"emoji-item--selected":r.value.emoji==="neutral"}]),onClick:v[2]||(v[2]=m=>c("neutral"))},[...v[8]||(v[8]=[p("span",{class:"emoji-icon"},"😐",-1),p("span",{class:"emoji-text"},"一般",-1)])],2),p("div",{class:Ue(["emoji-item",{"emoji-item--selected":r.value.emoji==="dissatisfied"}]),onClick:v[3]||(v[3]=m=>c("dissatisfied"))},[...v[9]||(v[9]=[p("span",{class:"emoji-icon"},"😞",-1),p("span",{class:"emoji-text"},"不满意",-1)])],2)])]),p("div",$E,[v[11]||(v[11]=p("div",{class:"evaluation-dialog__label"},[Ke(" 改进建议 "),p("span",{class:"evaluation-dialog__optional"},"(选填)")],-1)),E(w,{modelValue:r.value.feedback_text,"onUpdate:modelValue":v[4]||(v[4]=m=>r.value.feedback_text=m),type:"textarea",placeholder:"您对本次服务有什么建议?",maxlength:"200","show-word-limit":"",rows:"3",class:"evaluation-dialog__textarea"},null,8,["modelValue"])]),p("div",FE,[E(T,{type:"primary",size:"large",loading:a.value,disabled:!u.value,onClick:f},{default:He(()=>[...v[12]||(v[12]=[Ke(" 提交评价 ",-1)])]),_:1},8,["loading","disabled"])]),p("div",BE,[E(T,{size:"small",type:"default",disabled:a.value,onClick:h},{default:He(()=>[...v[13]||(v[13]=[Ke(" 暂不评价 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),NE=yt(DE,[["__scopeId","data-v-f4a30d2d"]]),LE={class:"chat-panel"},ME={class:"chat-panel__header"},VE={class:"chat-panel__header-left"},jE={key:0,class:"chat-panel__status chat-panel__status--online"},UE={key:1,class:"chat-panel__status chat-panel__status--offline"},HE={class:"chat-panel__header-actions"},zE=["disabled"],qE=["title"],WE={class:"user-menu"},KE={class:"user-avatar"},GE={key:0,class:"user-dropdown"},JE={class:"user-dropdown__info"},XE={class:"user-dropdown__name"},YE={class:"user-dropdown__id"},QE={key:0,class:"chat-panel__troubleshoot-fixed"},ZE={key:0,class:"chat-panel__not-logged"},ex={key:1,class:"chat-panel__empty"},tx={class:"change-password-form"},nx=we({__name:"ChatPanel",setup(e){const t=jt(),n=Gd(),s=Ot(),o=M(null),i=M(!1),r=M(!1),a=it({oldPassword:"",newPassword:"",confirmPassword:""}),l=M(!1),u=M(!1),c=M(""),d=M(""),f=M(!0);function h(){i.value=!1,a.oldPassword="",a.newPassword="",a.confirmPassword="",r.value=!0}async function y(){var A,m;if(!a.oldPassword){Ae("请输入旧密码");return}if(!a.newPassword||a.newPassword.length<6){Ae("新密码长度不能少于6位");return}if(a.newPassword!==a.confirmPassword){Ae("两次输入的密码不一致");return}if(a.oldPassword===a.newPassword){Ae("新密码不能与旧密码相同");return}try{await zw({old_password:a.oldPassword,new_password:a.newPassword}),Ae("密码修改成功"),r.value=!1}catch(k){console.error("修改密码失败:",k);const I=((m=(A=k==null?void 0:k.response)==null?void 0:A.data)==null?void 0:m.message)||(k==null?void 0:k.message)||"修改密码失败";Ae(I)}}function g(){i.value=!1,s.logout()}async function v(){await We(),o.value&&(o.value.scrollTop=o.value.scrollHeight)}function _(){if(!o.value)return;const{scrollTop:A,scrollHeight:m,clientHeight:k}=o.value;f.value=m-A-k<100}function w(){t.fetchCurrentConversation()}function T(){console.log("[ChatPanel] 评价已提交")}return be(()=>t.messages.length,()=>{v()}),be(()=>{var A;return(A=t.currentConversation)==null?void 0:A.conversation_id},()=>{t.participantPanelVisible=!1}),be(()=>{var A;return(A=t.currentConversation)==null?void 0:A.status},(A,m)=>{var k;if(m==="serving"&&A==="resolved"){const I=(k=t.currentConversation)==null?void 0:k.conversation_id;I&&setTimeout(()=>{c.value=I,u.value=!0},3e3)}d.value=A||""}),nt(()=>{var A;v(),d.value=((A=t.currentConversation)==null?void 0:A.status)||""}),(A,m)=>{var B,K,U,ae,fe;const k=jd,I=Si,z=i_,F=Hn;return O(),D("div",LE,[p("div",ME,[p("div",VE,[m[12]||(m[12]=p("span",{class:"chat-panel__title"},"IT智能服务台",-1)),Ee(t).agentOnline?(O(),D("span",jE,[...m[10]||(m[10]=[p("span",{class:"chat-panel__status-dot"},null,-1),Ke(" 坐席在线 ",-1)])])):(O(),D("span",UE,[...m[11]||(m[11]=[p("span",{class:"chat-panel__status-dot"},null,-1),Ke(" 坐席离线 ",-1)])]))]),p("div",HE,[Ee(t).canCallAgent?(O(),D("button",{key:0,class:"chat-panel__bell-btn",disabled:!Ee(t).isLoggedIn||Ee(t).shaking,title:"摇铃呼叫人工坐席",onClick:m[0]||(m[0]=ue=>l.value=!0)},[...m[13]||(m[13]=[p("span",{class:"chat-panel__bell-icon"},"🔔",-1),p("span",{class:"chat-panel__bell-text"},"呼叫",-1)])],8,zE)):ge("",!0),p("div",{class:"theme-switch",title:Ee(n).currentTheme==="light"?"切换到深色模式":"切换到浅色模式",onClick:m[1]||(m[1]=ue=>Ee(n).toggleTheme())},[...m[14]||(m[14]=[p("span",{class:"switch-icon"},"☀️",-1),p("div",{class:"switch-track"},[p("div",{class:"switch-thumb"})],-1),p("span",{class:"switch-icon"},"🌙",-1)])],8,qE),p("div",WE,[p("button",{class:"user-avatar-btn",onClick:m[2]||(m[2]=ue=>i.value=!i.value)},[p("span",KE,re(((K=(B=Ee(s).employeeInfo)==null?void 0:B.employee_name)==null?void 0:K.charAt(0))||"?"),1)]),i.value?(O(),D("div",GE,[p("div",JE,[p("div",XE,re((U=Ee(s).employeeInfo)==null?void 0:U.employee_name),1),p("div",YE,re((ae=Ee(s).employeeInfo)==null?void 0:ae.employee_id),1)]),m[17]||(m[17]=p("div",{class:"user-dropdown__divider"},null,-1)),p("div",{class:"user-dropdown__item",onClick:h},[...m[15]||(m[15]=[p("span",{class:"user-dropdown__icon"},"🔑",-1),Ke(" 修改密码 ",-1)])]),p("div",{class:"user-dropdown__item user-dropdown__item--danger",onClick:g},[...m[16]||(m[16]=[p("span",{class:"user-dropdown__icon"},"🚪",-1),Ke(" 退出登录 ",-1)])])])):ge("",!0)])])]),(fe=Ee(t).troubleshootingSteps)!=null&&fe.length?(O(),D("div",QE,[E(AS)])):ge("",!0),Ee(t).participants.length>0?(O(),ut(FS,{key:1})):ge("",!0),p("div",{ref_key:"messageListRef",ref:o,class:"chat-panel__messages",onScroll:_},[Ee(t).isLoggedIn?Ee(t).messages.length===0?(O(),D("div",ex,[...m[18]||(m[18]=[p("div",{class:"chat-panel__empty-icon"},"💬",-1),p("p",{class:"chat-panel__empty-text"},"暂无消息",-1),p("p",{class:"chat-panel__empty-hint"},"输入问题咨询,或 🔔 摇铃呼叫坐席",-1)])])):(O(!0),D(Ie,{key:2},bt(Ee(t).messages,ue=>(O(),ut(e1,{key:ue.message_id,msg:ue},null,8,["msg"]))),128)):(O(),D("div",ZE,[E(k,{description:"正在获取身份信息...",image:"search"})]))],544),E(j1),E(iS,{visible:l.value,"onUpdate:visible":m[3]||(m[3]=ue=>l.value=ue),onCallSuccess:w},null,8,["visible"]),E(NE,{modelValue:u.value,"onUpdate:modelValue":m[4]||(m[4]=ue=>u.value=ue),"conversation-id":c.value,onSubmitted:T},null,8,["modelValue","conversation-id"]),E(z,{show:r.value,"onUpdate:show":m[8]||(m[8]=ue=>r.value=ue),title:"修改密码","show-cancel-button":"","confirm-button-text":"确认修改",onConfirm:y},{default:He(()=>[p("div",tx,[E(I,{modelValue:a.oldPassword,"onUpdate:modelValue":m[5]||(m[5]=ue=>a.oldPassword=ue),type:"password",label:"旧密码",placeholder:"请输入旧密码",rules:[{required:!0,message:"请输入旧密码"}]},null,8,["modelValue"]),E(I,{modelValue:a.newPassword,"onUpdate:modelValue":m[6]||(m[6]=ue=>a.newPassword=ue),type:"password",label:"新密码",placeholder:"请输入新密码(6-128位)",rules:[{required:!0,message:"请输入新密码"}]},null,8,["modelValue"]),E(I,{modelValue:a.confirmPassword,"onUpdate:modelValue":m[7]||(m[7]=ue=>a.confirmPassword=ue),type:"password",label:"确认密码",placeholder:"请再次输入新密码",rules:[{required:!0,message:"请再次输入新密码"}]},null,8,["modelValue"])])]),_:1},8,["show"]),E(F,{show:Ee(t).participantPanelVisible,"onUpdate:show":m[9]||(m[9]=ue=>Ee(t).participantPanelVisible=ue),position:"bottom",round:"",teleport:"body",style:{maxHeight:"60vh"}},{default:He(()=>[E(AE)]),_:1},8,["show"])])}}}),sx=yt(nx,[["__scopeId","data-v-31533cb0"]]),ox={class:"right-panel"},ix={class:"right-panel__section right-panel__ai-push"},rx={class:"right-panel__section-body"},ax=["onClick"],lx={class:"ai-push-card__header"},cx={class:"ai-push-card__icon"},ux={class:"ai-push-card__type-label"},dx={class:"ai-push-card__title"},fx={key:0,class:"ai-push-card__subtitle"},hx={key:0,class:"right-panel__empty"},px={class:"right-panel__section right-panel__resources"},mx={class:"right-panel__tabs"},gx={key:0,class:"right-panel__tab-content"},vx=["onClick"],_x={class:"resource-item__icon"},yx={class:"resource-item__info"},bx={class:"resource-item__title"},wx={key:0,class:"resource-item__desc"},Sx={key:1,class:"right-panel__tab-content"},Ex=["onClick"],xx={class:"resource-item__icon"},Cx={class:"resource-item__info"},Ax={class:"resource-item__title"},kx={key:0,class:"resource-item__desc"},Tx={class:"right-panel__section right-panel__quiz"},Rx={class:"right-panel__section-header"},Ix={class:"right-panel__quiz-score"},Px={class:"right-panel__section-body"},Ox={class:"quiz-question"},$x={class:"quiz-options"},Fx=["disabled","onClick"],Bx={class:"quiz-option__label"},Dx={class:"quiz-option__text"},Nx={key:0,class:"quiz-result"},Lx={key:0,class:"quiz-result--correct"},Mx={key:1,class:"quiz-result--wrong"},Vx={key:1,class:"right-panel__empty"},jx=we({__name:"RightPanel",setup(e){const t=G(()=>[{id:"push-1",type:"guide",icon:"📖",typeLabel:"处理指南",title:"WiFi连接问题处理指南",subtitle:"已解决28次类似问题"},{id:"push-2",type:"process",icon:"📋",typeLabel:"申请流程",title:"网络连接申请流程",subtitle:"在线申请,1-3个工作日"},{id:"push-3",type:"download",icon:"💾",typeLabel:"软件下载",title:"无线网卡驱动下载",subtitle:"适用于 Windows 10/11"}]);function n(g){console.log("[RightPanel] AI推送点击:",g.title)}const s=M("process"),o=M([{id:"p-1",icon:"💻",title:"IT设备申请",desc:"电脑/显示器/外设"},{id:"p-2",icon:"🔐",title:"权限申请",desc:"系统/文件夹/VPN"},{id:"p-3",icon:"🌐",title:"VPN申请",desc:"远程办公网络"},{id:"p-4",icon:"📧",title:"邮箱别名申请",desc:"别名/分发组"}]),i=M([{id:"s-1",icon:"📝",title:"Office 365",desc:"Word/Excel/PPT"},{id:"s-2",icon:"📄",title:"Adobe Acrobat",desc:"PDF阅读/编辑"},{id:"s-3",icon:"💬",title:"企业微信",desc:"即时通讯/协作"},{id:"s-4",icon:"🛡️",title:"火绒安全",desc:"杀毒/终端防护"}]);function r(g){console.log("[RightPanel] 申请流程点击:",g.title)}function a(g){console.log("[RightPanel] 软件下载点击:",g.title)}const l=["A","B","C","D"],u=M(0),c=M(!1),d=M(-1),f=M([{id:"q-1",question:"IT服务台电话分机号是?",options:["8001","8002","8003","8004"],correctIndex:0},{id:"q-2",question:"电脑无法连接WiFi时,首先应该检查什么?",options:["重启路由器","WiFi适配器是否禁用","联系网络管理员","重新安装系统"],correctIndex:1},{id:"q-3",question:"VPN申请一般需要几个工作日?",options:["1个工作日","1-3个工作日","3-5个工作日","5个工作日以上"],correctIndex:1}]),h=G(()=>f.value[0]||null);function y(g){c.value||(c.value=!0,d.value=g,h.value&&g===h.value.correctIndex&&(u.value+=10))}return(g,v)=>(O(),D("div",ox,[p("div",ix,[v[3]||(v[3]=p("div",{class:"right-panel__section-header"},[p("span",{class:"right-panel__section-icon"},"🤖"),p("span",{class:"right-panel__section-title"},"AI 推荐")],-1)),p("div",rx,[(O(!0),D(Ie,null,bt(t.value,_=>(O(),D("div",{key:_.id,class:Ue(["ai-push-card",`ai-push-card--${_.type}`]),onClick:w=>n(_)},[p("div",lx,[p("span",cx,re(_.icon),1),p("span",ux,re(_.typeLabel),1)]),p("div",dx,re(_.title),1),_.subtitle?(O(),D("div",fx,re(_.subtitle),1)):ge("",!0)],10,ax))),128)),t.value.length===0?(O(),D("div",hx,[...v[2]||(v[2]=[p("span",null,"💡 对话过程中会自动推送相关资源",-1)])])):ge("",!0)])]),p("div",px,[v[6]||(v[6]=p("div",{class:"right-panel__section-header"},[p("span",{class:"right-panel__section-icon"},"📚"),p("span",{class:"right-panel__section-title"},"常用资源")],-1)),p("div",mx,[p("button",{class:Ue(["right-panel__tab",{"right-panel__tab--active":s.value==="process"}]),onClick:v[0]||(v[0]=_=>s.value="process")},"申请流程",2),p("button",{class:Ue(["right-panel__tab",{"right-panel__tab--active":s.value==="software"}]),onClick:v[1]||(v[1]=_=>s.value="software")},"必装软件",2)]),s.value==="process"?(O(),D("div",gx,[(O(!0),D(Ie,null,bt(o.value,_=>(O(),D("div",{key:_.id,class:"resource-item",onClick:w=>r(_)},[p("span",_x,re(_.icon),1),p("div",yx,[p("span",bx,re(_.title),1),_.desc?(O(),D("span",wx,re(_.desc),1)):ge("",!0)]),v[4]||(v[4]=p("span",{class:"resource-item__arrow"},"→",-1))],8,vx))),128))])):ge("",!0),s.value==="software"?(O(),D("div",Sx,[(O(!0),D(Ie,null,bt(i.value,_=>(O(),D("div",{key:_.id,class:"resource-item",onClick:w=>a(_)},[p("span",xx,re(_.icon),1),p("div",Cx,[p("span",Ax,re(_.title),1),_.desc?(O(),D("span",kx,re(_.desc),1)):ge("",!0)]),v[5]||(v[5]=p("span",{class:"resource-item__arrow"},"→",-1))],8,Ex))),128))])):ge("",!0)]),p("div",Tx,[p("div",Rx,[v[7]||(v[7]=p("span",{class:"right-panel__section-icon"},"🎯",-1)),v[8]||(v[8]=p("span",{class:"right-panel__section-title"},"趣味问答",-1)),p("span",Ix,"🏆 "+re(u.value)+"分",1)]),p("div",Px,[h.value?(O(),D(Ie,{key:0},[p("div",Ox,re(h.value.question),1),p("div",$x,[(O(!0),D(Ie,null,bt(h.value.options,(_,w)=>(O(),D("button",{key:w,class:Ue(["quiz-option",{"quiz-option--correct":c.value&&w===h.value.correctIndex,"quiz-option--wrong":c.value&&d.value===w&&w!==h.value.correctIndex}]),disabled:c.value,onClick:T=>y(w)},[p("span",Bx,re(l[w]),1),p("span",Dx,re(_),1)],10,Fx))),128))]),c.value?(O(),D("div",Nx,[d.value===h.value.correctIndex?(O(),D("span",Lx," ✅ 答对啦!+10积分 ")):(O(),D("span",Mx," ❌ 答错了!正确答案是 "+re(l[h.value.correctIndex]),1))])):ge("",!0)],64)):(O(),D("div",Vx,[...v[9]||(v[9]=[p("span",null,"暂无问答题目",-1)])]))])])]))}}),Vr=yt(jx,[["__scopeId","data-v-4f431dca"]]),Ux={class:"chat-view"},Hx={key:1,class:"chat-view__right"},zx=we({__name:"ChatView",setup(e){const t=lf(),n=cf(),s=Ot(),o=jt(),i=t0(),r=M(window.innerWidth),a=M(60),l=M(!1),u=G(()=>r.value<500),c=G(()=>!u.value);function d(g){l.value=!0;const v=g.clientX,_=a.value,w=r.value;function T(m){if(!l.value)return;const I=(m.clientX-v)/w*100;let z=_+I;z=Math.max(40,Math.min(80,z)),a.value=z}function A(){l.value=!1,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",A),document.body.style.cursor="",document.body.style.userSelect=""}document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",T),document.addEventListener("mouseup",A)}function f(){r.value=window.innerWidth}nt(()=>{if(window.addEventListener("resize",f),!s.isAuthenticated){console.warn("[ChatView] 未登录,跳转登录页"),t.push("/login");return}o.initialize(),i.connect()});const h=n.query.invite,y=n.query.eid;if(h&&y){console.log(`[ChatView] 检测到邀请链接: conv=${h}, eid=${y}`);const g=be(()=>o.initialized,async v=>{var _,w;if(v){g();try{await Dw(h),console.log("[ChatView] 已成功加入邀请的会话"),await o.switchToConversation(h)}catch(T){console.error("[ChatView] 加入会话失败:",T);const A=(w=(_=T==null?void 0:T.response)==null?void 0:_.data)==null?void 0:w.code;if(A!==3034&&A!==3033)try{await o.switchToConversation(h)}catch(m){console.error("[ChatView] 切换会话也失败:",m)}}finally{t.replace({path:n.path,query:{}})}}},{immediate:!0})}return Cn(()=>{window.removeEventListener("resize",f),i.disconnect(),o.cleanup()}),(g,v)=>(O(),D("div",Ux,[p("div",{class:Ue(["chat-view__left",{"chat-view__left--full":!c.value}]),style:Vn(!u.value&&c.value?{flex:`0 0 ${a.value}%`,maxWidth:`${a.value}%`}:{})},[E(sx)],6),c.value&&!u.value?(O(),D("div",{key:0,class:"chat-view__resize-handle",onMousedown:d},[...v[0]||(v[0]=[p("div",{class:"chat-view__resize-grip"},null,-1)])],32)):ge("",!0),c.value?(O(),D("div",Hx,[E(Vr)])):ge("",!0)]))}}),qx=yt(zx,[["__scopeId","data-v-8734f543"]]),Wx={class:"emergency-dispatcher"},Kx={class:"emergency-dispatcher__panel"},Gx={class:"subtitle"},Jx={key:1,class:"error-msg"},Xx=we({__name:"EmergencyDispatcher",setup(e){const t=lf(),n=M(!0),s=M(""),o=M("正在检测身份...");function i(){return new Promise((c,d)=>{if(typeof window.wx<"u"&&window.wx.agentConfig){c();return}const f=document.createElement("script");f.src="https://res.wx.qq.com/wwopen/js/wwLogin-1.2.7.js",f.onload=()=>{const h=document.createElement("script");h.src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",h.onload=()=>c(),h.onerror=()=>d(new Error("加载企微 agent SDK 失败")),document.head.appendChild(h)},f.onerror=()=>d(new Error("加载企微 JS-SDK 失败")),document.head.appendChild(f)})}async function r(c){const d=await Je.get("/api/wecom/jsapi-config",{params:{url:c}});if(d.data.code!==0)throw new Error(`拿签名失败: ${d.data.message}`);return d.data.data}function a(c){return new Promise((d,f)=>{const h=window.wx;h.config({beta:!0,debug:!1,appId:c.corp_id,timestamp:c.timestamp,nonceStr:c.nonce_str,signature:c.signature,jsApiList:["agentConfig"]}),h.ready(()=>d()),h.error(y=>f(new Error(`wx.config 失败: ${JSON.stringify(y)}`)))})}function l(c){return new Promise((d,f)=>{window.wx.agentConfig({corpid:c.corp_id,agentid:c.agent_id,timestamp:c.timestamp,nonceStr:c.nonce_str,signature:c.signature,jsApiList:["selectExternalContact"],success:y=>{const g=window.wecom_userid||"";d({userId:g})},fail:y=>f(new Error(`wx.agentConfig 失败: ${JSON.stringify(y)}`))})})}async function u(c){const d=await Je.get("/api/wecom/check-role",{params:{userid:c}});if(d.data.code!==0)throw new Error(`检查角色失败: ${d.data.message}`);return d.data.data}return nt(async()=>{try{o.value="正在加载企微 SDK...",await i(),o.value="正在获取鉴权签名...";const c=window.location.href.split("#")[0],d=await r(c);o.value="正在初始化企微...",await a(d),o.value="正在获取身份...";const{userId:f}=await l(d);if(!f)throw new Error("未能获取当前用户 userid");o.value="正在检查角色...";const h=await u(f);console.log("[EmergencyDispatcher] 角色检测:",h),o.value=`角色: ${h.role},正在跳转...`,h.role==="agent"?window.location.href="/itagent/agent-preview?userid="+encodeURIComponent(f):t.push({path:"/h5-preview",query:{userid:f}})}catch(c){console.error("[EmergencyDispatcher] 错误:",c),s.value=c.message||"未知错误",n.value=!1,Rv({message:s.value,duration:5e3}),setTimeout(()=>{t.push({path:"/h5-preview"})},3e3)}}),(c,d)=>{const f=bs;return O(),D("div",Wx,[p("div",Kx,[d[0]||(d[0]=p("div",{class:"logo"},null,-1)),d[1]||(d[1]=p("h2",{class:"title"},"IT 智能服务台",-1)),p("p",Gx,re(o.value),1),n.value?(O(),ut(f,{key:0,type:"spinner",color:"#1989fa",size:"32"})):ge("",!0),s.value?(O(),D("div",Jx,re(s.value),1)):ge("",!0)])])}}}),Yx=yt(Xx,[["__scopeId","data-v-fd04bede"]]),Qx={class:"h5-preview"},Zx={class:"h5-preview__topbar"},eC={key:1,class:"userid-tag"},tC={key:0,class:"h5-preview__content"},nC={class:"h5-preview__drawer-header"},sC={class:"h5-preview__drawer-body"},oC={key:2,class:"h5-preview__mobile-hint"},iC=we({__name:"H5PreviewView",setup(e){const t=cf(),n=M(!1),s=G(()=>t.query.userid||""),o=G(()=>window.innerWidth<500);return s.value&&Ae({message:"员工模式",duration:1500}),(i,r)=>{const a=At,l=Hn;return O(),D("div",Qx,[p("div",Zx,[r[4]||(r[4]=Ap('

员工自助

IT 智能服务台 · 应急模式

',1)),o.value?(O(),D("button",{key:0,class:"topbar-menu-btn",onClick:r[0]||(r[0]=u=>n.value=!0)},[E(a,{name:"apps-o",size:"22"}),r[3]||(r[3]=p("span",null,"右栏",-1))])):(O(),D("div",eC," userid: "+re(s.value||"anonymous"),1))]),o.value?ge("",!0):(O(),D("div",tC,[E(Vr)])),o.value?(O(),ut(l,{key:1,show:n.value,"onUpdate:show":r[2]||(r[2]=u=>n.value=u),position:"top",style:{height:"85%"},"close-on-click-overlay":!0,closeable:"","safe-area-inset-top":""},{default:He(()=>[p("div",nC,[r[5]||(r[5]=p("span",{class:"drawer-title"},"📋 右栏内容",-1)),E(a,{name:"cross",size:"20",class:"drawer-close",onClick:r[1]||(r[1]=u=>n.value=!1)})]),p("div",sC,[E(Vr)])]),_:1},8,["show"])):ge("",!0),o.value?(O(),D("div",oC,[...r[6]||(r[6]=[p("p",null,"💡 电脑端访问可获得完整体验(右栏常驻显示)",-1),p("p",null,'移动端请点上方"右栏"按钮打开内容',-1)])])):ge("",!0)])}}}),rC=yt(iC,[["__scopeId","data-v-f91237e0"]]);function aC(){return typeof navigator>"u"?!1:/wxwork/i.test(navigator.userAgent)}const lC=[{path:"/",name:"ChatView",component:qx,meta:{title:"IT智能服务台",requiresAuth:!0}},{path:"/login",name:"Login",component:()=>ts(()=>import("./Login-DQImuBvP.js"),__vite__mapDeps([4,5,6])),meta:{title:"登录",requiresAuth:!1}},{path:"/bind",name:"Bind",component:()=>ts(()=>import("./Bind-D8O2neGo.js"),__vite__mapDeps([7,5,1,2,8,9])),meta:{title:"账号绑定",requiresAuth:!1}},{path:"/wework-only",name:"WeworkOnly",component:()=>ts(()=>import("./WeworkOnly-DY7IKcfi.js"),__vite__mapDeps([10,11])),meta:{title:"请在企业微信中打开",requiresAuth:!1}},{path:"/emergency",name:"EmergencyDispatcher",component:Yx,meta:{title:"应急身份检测",requiresAuth:!1}},{path:"/h5-preview",name:"H5Preview",component:rC,meta:{title:"员工自助",requiresAuth:!1}},{path:"/automation/:id",name:"AutomationProgress",component:()=>ts(()=>import("./AutomationProgress-Bg2dDc8V.js"),__vite__mapDeps([12,3,1,13,9])),meta:{title:"自动化处置",requiresAuth:!0}},{path:"/:pathMatch(.*)*",redirect:"/"}],Lf=$y({history:dy("/h5/"),routes:lC});Lf.beforeEach(async(e,t,n)=>{if(e.name==="WeworkOnly"||e.name==="Login"||e.name==="Bind"||e.name==="EmergencyDispatcher"||e.name==="H5Preview"){n();return}const s=new URLSearchParams(window.location.search),o=e.query.token||s.get("token");if(o){localStorage.setItem("h5_token",o),s.delete("token");const u=s.toString(),c=u?`${window.location.pathname}?${u}`:window.location.pathname;window.history.replaceState({},"",c)}const{useEmployeeStore:i}=await ts(async()=>{const{useEmployeeStore:u}=await Promise.resolve().then(()=>qw);return{useEmployeeStore:u}},void 0),r=i();if(o){r.$patch({token:o});try{await r.fetchEmployeeInfo()}catch(u){console.warn("[Router] Portal token 验证失败:",u)}}if(!(/^localhost(:\d+)?$/.test(window.location.hostname)||window.location.hostname==="127.0.0.1")&&!aC()){if(r.isAuthenticated){n();return}n({name:"Login"});return}const l=e.query.code||new URLSearchParams(window.location.search).get("code");if(l){try{await r.handleOAuthCallback(l);const u=new URLSearchParams(window.location.search);u.delete("code"),u.delete("state");const c=u.toString(),d=c?`${window.location.pathname}?${c}`:window.location.pathname;window.history.replaceState({},"",d),n()}catch(u){console.error("[Router] OAuth2 授权失败:",u),r.redirectToOAuth()}return}if(r.isAuthenticated){n();return}r.redirectToOAuth()});const ka=ed(C_);ka.use(g_());ka.use(Lf);const cC=Date.now(),Tc=500;ka.mount("#app");const Rc=Date.now()-cC;Rc>=Tc?document.body.classList.add("app-loaded"):setTimeout(()=>{document.body.classList.add("app-loaded")},Tc-Rc);export{Xg as $,Xm as A,bd as B,Pd as C,i_ as D,jd as E,Si as F,Tg as G,Pg as H,At as I,l_ as J,h_ as K,bs as L,tg as M,o_ as N,Ig as O,Hn as P,s_ as Q,u_ as R,m_ as S,av as T,Rv as U,dC as V,Mg as W,Ug as X,iv as Y,Kg as Z,Ev as _,Rl as a,eg as a0,Ne as a1,yt as a2,O as a3,D as a4,Ap as a5,we as a6,De as a7,E as a8,Ie as a9,ys as aA,hn as aB,Ov as aC,ze as aD,Ld as aE,fa as aF,Oe as aG,Qo as aH,zm as aI,Km as aJ,uC as aK,dd as aL,Mt as aM,ho as aN,G as aO,ga as aP,Ee as aQ,bt as aR,_t as aa,Pl as ab,md as ac,Ve as ad,qe as ae,lf as af,Ot as ag,nt as ah,Cn as ai,p as aj,He as ak,Ke as al,ge as am,re as an,M as ao,cf as ap,ut as aq,it as ar,ke as as,kt as at,vi as au,qm as av,cn as aw,$t as ax,be as ay,cd as az,ds as b,Nv as c,jv as d,Wv as e,Kv as f,Nm as g,jg as h,zg as i,sv as j,lv as k,wg as l,Gm as m,Qm as n,vg as o,uv as p,Bv as q,zv as r,Ae as s,Mv as t,sg as u,Qv as v,Jv as w,_v as x,cg as y,pg as z};