Files
wecom_it_smart_desk/frontend-h5/dist_bak_20260713040756/assets/index-yAhHfLWN.js
T

44 lines
354 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Bu7XD84k.js","assets/index-BjaQzQ2G.js","assets/index-D3LozgQg.js","assets/index-DEoRO0_W.js","assets/Login-HMbPVM3K.js","assets/auth-9T69oSpu.js","assets/Login-BH4ngh9v.css","assets/Bind-BcG_klfu.js","assets/Bind-Dnw4b3CT.css","assets/index-p_Y1ee2a.css","assets/WeworkOnly-CEpeuqo-.js","assets/WeworkOnly-TGfgboZe.css","assets/AutomationProgress-ChUhvdzi.js","assets/AutomationProgress-5xKDZdIh.css","assets/VideoIntro-BMJbiLUd.js","assets/VideoIntro-Cvkd5Jd7.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 a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).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 Qa(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ue={},hs=[],ln=()=>{},zc=()=>!1,hi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),pi=e=>e.startsWith("onUpdate:"),ct=Object.assign,Za=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Qf=Object.prototype.hasOwnProperty,Me=(e,t)=>Qf.call(e,t),ve=Array.isArray,ps=e=>go(e)==="[object Map]",Hc=e=>go(e)==="[object Set]",Ur=e=>go(e)==="[object Date]",Ee=e=>typeof e=="function",ze=e=>typeof e=="string",zt=e=>typeof e=="symbol",Fe=e=>e!==null&&typeof e=="object",Wc=e=>(Fe(e)||Ee(e))&&Ee(e.then)&&Ee(e.catch),Kc=Object.prototype.toString,go=e=>Kc.call(e),Zf=e=>go(e).slice(8,-1),Gc=e=>go(e)==="[object Object]",mi=e=>ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Js=Qa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_i=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},eh=/-\w/g,xt=_i(e=>e.replace(eh,t=>t.slice(1).toUpperCase())),th=/\B([A-Z])/g,Cn=_i(e=>e.replace(th,"-$1").toLowerCase()),gi=_i(e=>e.charAt(0).toUpperCase()+e.slice(1)),qi=_i(e=>e?`on${gi(e)}`:""),on=(e,t)=>!Object.is(e,t),Ui=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Jc=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},nh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Xc=e=>{const t=ze(e)?Number(e):NaN;return isNaN(t)?e:t};let zr;const vi=()=>zr||(zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xt(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=ze(s)?ah(s):Xt(s);if(o)for(const i in o)t[i]=o[i]}return t}else if(ze(e)||Fe(e))return e}const sh=/;(?![^(]*\))/g,oh=/:([^]+)/,ih=/\/\*[^]*?\*\//g;function ah(e){const t={};return e.replace(ih,"").split(sh).forEach(n=>{if(n){const s=n.split(oh);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function rh(e){if(!e)return"";if(ze(e))return e;let t="";for(const n in e){const s=e[n];if(ze(s)||typeof s=="number"){const o=n.startsWith("--")?n:Cn(n);t+=`${o}:${s};`}}return t}function ge(e){let t="";if(ze(e))t=e;else if(ve(e))for(let n=0;n<e.length;n++){const s=ge(e[n]);s&&(t+=s+" ")}else if(Fe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const lh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ch=Qa(lh);function Yc(e){return!!e||e===""}function uh(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=er(e[s],t[s]);return n}function er(e,t){if(e===t)return!0;let n=Ur(e),s=Ur(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=zt(e),s=zt(t),n||s)return e===t;if(n=ve(e),s=ve(t),n||s)return n&&s?uh(e,t):!1;if(n=Fe(e),s=Fe(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const a in e){const r=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(r&&!c||!r&&c||!er(e[a],t[a]))return!1}}return String(e)===String(t)}const Qc=e=>!!(e&&e.__v_isRef===!0),F=e=>ze(e)?e:e==null?"":ve(e)||Fe(e)&&(e.toString===Kc||!Ee(e.toString))?Qc(e)?F(e.value):JSON.stringify(e,Zc,2):String(e),Zc=(e,t)=>Qc(t)?Zc(e,t.value):ps(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],i)=>(n[zi(s,i)+" =>"]=o,n),{})}:Hc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zi(n))}:zt(t)?zi(t):Fe(t)&&!ve(t)&&!Gc(t)?String(t):t,zi=(e,t="")=>{var n;return zt(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 lt;class eu{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&&lt&&(lt.active?(this.parent=lt,this.index=(lt.scopes||(lt.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;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=lt;try{return lt=this,t()}finally{lt=n}}}on(){++this._on===1&&(this.prevScope=lt,lt=this)}off(){if(this._on>0&&--this._on===0){if(lt===this)lt=this.prevScope;else{let t=lt;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;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function tu(e){return new eu(e)}function tr(){return lt}function nu(e,t=!1){lt&&lt.cleanups.push(e)}let We;const Hi=new WeakSet;class su{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,lt&&(lt.active?lt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Hi.has(this)&&(Hi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||iu(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Hr(this),au(this);const t=We,n=Yt;We=this,Yt=!0;try{return this.fn()}finally{ru(this),We=t,Yt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)or(t);this.deps=this.depsTail=void 0,Hr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){_a(this)&&this.run()}get dirty(){return _a(this)}}let ou=0,Xs,Ys;function iu(e,t=!1){if(e.flags|=8,t){e.next=Ys,Ys=e;return}e.next=Xs,Xs=e}function nr(){ou++}function sr(){if(--ou>0)return;if(Ys){let t=Ys;for(Ys=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Xs;){let t=Xs;for(Xs=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 au(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ru(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),or(s),dh(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function _a(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(lu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function lu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ao)||(e.globalVersion=ao,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!_a(e))))return;e.flags|=2;const t=e.dep,n=We,s=Yt;We=e,Yt=!0;try{au(e);const o=e.fn(e._value);(t.version===0||on(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{We=n,Yt=s,ru(e),e.flags&=-3}}function or(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)or(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function dh(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Yt=!0;const cu=[];function bn(){cu.push(Yt),Yt=!1}function wn(){const e=cu.pop();Yt=e===void 0?!0:e}function Hr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=We;We=void 0;try{t()}finally{We=n}}}let ao=0;class fh{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 ir{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(!We||!Yt||We===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==We)n=this.activeLink=new fh(We,this),We.deps?(n.prevDep=We.depsTail,We.depsTail.nextDep=n,We.depsTail=n):We.deps=We.depsTail=n,uu(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=We.depsTail,n.nextDep=void 0,We.depsTail.nextDep=n,We.depsTail=n,We.deps===n&&(We.deps=s)}return n}trigger(t){this.version++,ao++,this.notify(t)}notify(t){nr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{sr()}}}function uu(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)uu(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ni=new WeakMap,Gn=Symbol(""),ga=Symbol(""),ro=Symbol("");function gt(e,t,n){if(Yt&&We){let s=ni.get(e);s||ni.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new ir),o.map=s,o.key=n),o.track()}}function mn(e,t,n,s,o,i){const a=ni.get(e);if(!a){ao++;return}const r=c=>{c&&c.trigger()};if(nr(),t==="clear")a.forEach(r);else{const c=ve(e),d=c&&mi(n);if(c&&n==="length"){const l=Number(s);a.forEach((u,f)=>{(f==="length"||f===ro||!zt(f)&&f>=l)&&r(u)})}else switch((n!==void 0||a.has(void 0))&&r(a.get(n)),d&&r(a.get(ro)),t){case"add":c?d&&r(a.get("length")):(r(a.get(Gn)),ps(e)&&r(a.get(ga)));break;case"delete":c||(r(a.get(Gn)),ps(e)&&r(a.get(ga)));break;case"set":ps(e)&&r(a.get(Gn));break}}sr()}function hh(e,t){const n=ni.get(e);return n&&n.get(t)}function ns(e){const t=Pe(e);return t===e?t:(gt(t,"iterate",ro),Dt(e)?t:t.map(Qt))}function yi(e){return gt(e=Pe(e),"iterate",ro),e}function sn(e,t){return Sn(e)?vs(vn(e)?Qt(t):t):Qt(t)}const ph={__proto__:null,[Symbol.iterator](){return Wi(this,Symbol.iterator,e=>sn(this,e))},concat(...e){return ns(this).concat(...e.map(t=>ve(t)?ns(t):t))},entries(){return Wi(this,"entries",e=>(e[1]=sn(this,e[1]),e))},every(e,t){return un(this,"every",e,t,void 0,arguments)},filter(e,t){return un(this,"filter",e,t,n=>n.map(s=>sn(this,s)),arguments)},find(e,t){return un(this,"find",e,t,n=>sn(this,n),arguments)},findIndex(e,t){return un(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return un(this,"findLast",e,t,n=>sn(this,n),arguments)},findLastIndex(e,t){return un(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return un(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ki(this,"includes",e)},indexOf(...e){return Ki(this,"indexOf",e)},join(e){return ns(this).join(e)},lastIndexOf(...e){return Ki(this,"lastIndexOf",e)},map(e,t){return un(this,"map",e,t,void 0,arguments)},pop(){return Ps(this,"pop")},push(...e){return Ps(this,"push",e)},reduce(e,...t){return Wr(this,"reduce",e,t)},reduceRight(e,...t){return Wr(this,"reduceRight",e,t)},shift(){return Ps(this,"shift")},some(e,t){return un(this,"some",e,t,void 0,arguments)},splice(...e){return Ps(this,"splice",e)},toReversed(){return ns(this).toReversed()},toSorted(e){return ns(this).toSorted(e)},toSpliced(...e){return ns(this).toSpliced(...e)},unshift(...e){return Ps(this,"unshift",e)},values(){return Wi(this,"values",e=>sn(this,e))}};function Wi(e,t,n){const s=yi(e),o=s[t]();return s!==e&&!Dt(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=n(i.value)),i}),o}const mh=Array.prototype;function un(e,t,n,s,o,i){const a=yi(e),r=a!==e&&!Dt(e),c=a[t];if(c!==mh[t]){const u=c.apply(e,i);return r?Qt(u):u}let d=n;a!==e&&(r?d=function(u,f){return n.call(this,sn(e,u),f,e)}:n.length>2&&(d=function(u,f){return n.call(this,u,f,e)}));const l=c.call(a,d,s);return r&&o?o(l):l}function Wr(e,t,n,s){const o=yi(e),i=o!==e&&!Dt(e);let a=n,r=!1;o!==e&&(i?(r=s.length===0,a=function(d,l,u){return r&&(r=!1,d=sn(e,d)),n.call(this,d,sn(e,l),u,e)}):n.length>3&&(a=function(d,l,u){return n.call(this,d,l,u,e)}));const c=o[t](a,...s);return r?sn(e,c):c}function Ki(e,t,n){const s=Pe(e);gt(s,"iterate",ro);const o=s[t](...n);return(o===-1||o===!1)&&Si(n[0])?(n[0]=Pe(n[0]),s[t](...n)):o}function Ps(e,t,n=[]){bn(),nr();const s=Pe(e)[t].apply(e,n);return sr(),wn(),s}const _h=Qa("__proto__,__v_isRef,__isVue"),du=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zt));function gh(e){zt(e)||(e=String(e));const t=Pe(this);return gt(t,"has",e),t.hasOwnProperty(e)}class fu{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?vu:gu:i?_u:mu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const a=ve(t);if(!o){let c;if(a&&(c=ph[n]))return c;if(n==="hasOwnProperty")return gh}const r=Reflect.get(t,n,Ye(t)?t:s);if((zt(n)?du.has(n):_h(n))||(o||gt(t,"get",n),i))return r;if(Ye(r)){const c=a&&mi(n)?r:r.value;return o&&Fe(c)?ya(c):c}return Fe(r)?o?ya(r):pt(r):r}}class hu extends fu{constructor(t=!1){super(!1,t)}set(t,n,s,o){let i=t[n];const a=ve(t)&&mi(n);if(!this._isShallow){const d=Sn(i);if(!Dt(s)&&!Sn(s)&&(i=Pe(i),s=Pe(s)),!a&&Ye(i)&&!Ye(s))return d||(i.value=s),!0}const r=a?Number(n)<t.length:Me(t,n),c=Reflect.set(t,n,s,Ye(t)?t:o);return t===Pe(o)&&(r?on(s,i)&&mn(t,"set",n,s):mn(t,"add",n,s)),c}deleteProperty(t,n){const s=Me(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&mn(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!zt(n)||!du.has(n))&&gt(t,"has",n),s}ownKeys(t){return gt(t,"iterate",ve(t)?"length":Gn),Reflect.ownKeys(t)}}class pu extends fu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const vh=new hu,yh=new pu,bh=new hu(!0),wh=new pu(!0),va=e=>e,Do=e=>Reflect.getPrototypeOf(e);function Sh(e,t,n){return function(...s){const o=this.__v_raw,i=Pe(o),a=ps(i),r=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,d=o[e](...s),l=n?va:t?vs:Qt;return!t&&gt(i,"iterate",c?ga:Gn),ct(Object.create(d),{next(){const{value:u,done:f}=d.next();return f?{value:u,done:f}:{value:r?[l(u[0]),l(u[1])]:l(u),done:f}}})}}function Bo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Eh(e,t){const n={get(o){const i=this.__v_raw,a=Pe(i),r=Pe(o);e||(on(o,r)&&gt(a,"get",o),gt(a,"get",r));const{has:c}=Do(a),d=t?va:e?vs:Qt;if(c.call(a,o))return d(i.get(o));if(c.call(a,r))return d(i.get(r));i!==a&&i.get(o)},get size(){const o=this.__v_raw;return!e&&gt(Pe(o),"iterate",Gn),o.size},has(o){const i=this.__v_raw,a=Pe(i),r=Pe(o);return e||(on(o,r)&&gt(a,"has",o),gt(a,"has",r)),o===r?i.has(o):i.has(o)||i.has(r)},forEach(o,i){const a=this,r=a.__v_raw,c=Pe(r),d=t?va:e?vs:Qt;return!e&&gt(c,"iterate",Gn),r.forEach((l,u)=>o.call(i,d(l),d(u),a))}};return ct(n,e?{add:Bo("add"),set:Bo("set"),delete:Bo("delete"),clear:Bo("clear")}:{add(o){const i=Pe(this),a=Do(i),r=Pe(o),c=!t&&!Dt(o)&&!Sn(o)?r:o;return a.has.call(i,c)||on(o,c)&&a.has.call(i,o)||on(r,c)&&a.has.call(i,r)||(i.add(c),mn(i,"add",c,c)),this},set(o,i){!t&&!Dt(i)&&!Sn(i)&&(i=Pe(i));const a=Pe(this),{has:r,get:c}=Do(a);let d=r.call(a,o);d||(o=Pe(o),d=r.call(a,o));const l=c.call(a,o);return a.set(o,i),d?on(i,l)&&mn(a,"set",o,i):mn(a,"add",o,i),this},delete(o){const i=Pe(this),{has:a,get:r}=Do(i);let c=a.call(i,o);c||(o=Pe(o),c=a.call(i,o)),r&&r.call(i,o);const d=i.delete(o);return c&&mn(i,"delete",o,void 0),d},clear(){const o=Pe(this),i=o.size!==0,a=o.clear();return i&&mn(o,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Sh(o,e,t)}),n}function bi(e,t){const n=Eh(e,t);return(s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Me(n,o)&&o in s?n:s,o,i)}const Ch={get:bi(!1,!1)},xh={get:bi(!1,!0)},kh={get:bi(!0,!1)},Th={get:bi(!0,!0)},mu=new WeakMap,_u=new WeakMap,gu=new WeakMap,vu=new WeakMap;function Ah(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pt(e){return Sn(e)?e:wi(e,!1,vh,Ch,mu)}function yu(e){return wi(e,!1,bh,xh,_u)}function ya(e){return wi(e,!0,yh,kh,gu)}function Go(e){return wi(e,!0,wh,Th,vu)}function wi(e,t,n,s,o){if(!Fe(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 a=Ah(Zf(e));if(a===0)return e;const r=new Proxy(e,a===2?s:n);return o.set(e,r),r}function vn(e){return Sn(e)?vn(e.__v_raw):!!(e&&e.__v_isReactive)}function Sn(e){return!!(e&&e.__v_isReadonly)}function Dt(e){return!!(e&&e.__v_isShallow)}function Si(e){return e?!!e.__v_raw:!1}function Pe(e){const t=e&&e.__v_raw;return t?Pe(t):e}function ar(e){return!Me(e,"__v_skip")&&Object.isExtensible(e)&&Jc(e,"__v_skip",!0),e}const Qt=e=>Fe(e)?pt(e):e,vs=e=>Fe(e)?ya(e):e;function Ye(e){return e?e.__v_isRef===!0:!1}function q(e){return bu(e,!1)}function Dn(e){return bu(e,!0)}function bu(e,t){return Ye(e)?e:new Rh(e,t)}class Rh{constructor(t,n){this.dep=new ir,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Pe(t),this._value=n?t:Qt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Dt(t)||Sn(t);t=s?t:Pe(t),on(t,n)&&(this._rawValue=t,this._value=s?t:Qt(t),this.dep.trigger())}}function Ae(e){return Ye(e)?e.value:e}function ms(e){return Ee(e)?e():Ae(e)}const Ih={get:(e,t,n)=>t==="__v_raw"?e:Ae(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Ye(o)&&!Ye(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function wu(e){return vn(e)?e:new Proxy(e,Ih)}function $h(e){const t=ve(e)?new Array(e.length):{};for(const n in e)t[n]=Ph(e,n);return t}class Oh{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=zt(n)?n:String(n),this._raw=Pe(t);let o=!0,i=t;if(!ve(t)||zt(this._key)||!mi(this._key))do o=!Si(i)||Dt(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Ae(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ye(this._raw[this._key])){const n=this._object[this._key];if(Ye(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return hh(this._raw,this._key)}}function Ph(e,t,n){return new Oh(e,t,n)}class Dh{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ir(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ao-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return iu(this,!0),!0}get value(){const t=this.dep.track();return lu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Bh(e,t,n=!1){let s,o;return Ee(e)?s=e:(s=e.get,o=e.set),new Dh(s,o,n)}const No={},si=new WeakMap;let Un;function Nh(e,t=!1,n=Un){if(n){let s=si.get(n);s||si.set(n,s=[]),s.push(e)}}function Lh(e,t,n=Ue){const{immediate:s,deep:o,once:i,scheduler:a,augmentJob:r,call:c}=n,d=x=>o?x:Dt(x)||o===!1||o===0?_n(x,1):_n(x);let l,u,f,h,_=!1,m=!1;if(Ye(e)?(u=()=>e.value,_=Dt(e)):vn(e)?(u=()=>d(e),_=!0):ve(e)?(m=!0,_=e.some(x=>vn(x)||Dt(x)),u=()=>e.map(x=>{if(Ye(x))return x.value;if(vn(x))return d(x);if(Ee(x))return c?c(x,2):x()})):Ee(e)?t?u=c?()=>c(e,2):e:u=()=>{if(f){bn();try{f()}finally{wn()}}const x=Un;Un=l;try{return c?c(e,3,[h]):e(h)}finally{Un=x}}:u=ln,t&&o){const x=u,b=o===!0?1/0:o;u=()=>_n(x(),b)}const p=tr(),v=()=>{l.stop(),p&&p.active&&Za(p.effects,l)};if(i&&t){const x=t;t=(...b)=>{x(...b),v()}}let E=m?new Array(e.length).fill(No):No;const R=x=>{if(!(!(l.flags&1)||!l.dirty&&!x))if(t){const b=l.run();if(o||_||(m?b.some((I,P)=>on(I,E[P])):on(b,E))){f&&f();const I=Un;Un=l;try{const P=[b,E===No?void 0:m&&E[0]===No?[]:E,h];E=b,c?c(t,3,P):t(...P)}finally{Un=I}}}else l.run()};return r&&r(R),l=new su(u),l.scheduler=a?()=>a(R,!1):R,h=x=>Nh(x,!1,l),f=l.onStop=()=>{const x=si.get(l);if(x){if(c)c(x,4);else for(const b of x)b();si.delete(l)}},t?s?R(!0):E=l.run():a?a(R.bind(null,!0),!0):l.run(),v.pause=l.pause.bind(l),v.resume=l.resume.bind(l),v.stop=v,v}function _n(e,t=1/0,n){if(t<=0||!Fe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ye(e))_n(e.value,t,n);else if(ve(e))for(let s=0;s<e.length;s++)_n(e[s],t,n);else if(Hc(e)||ps(e))e.forEach(s=>{_n(s,t,n)});else if(Gc(e)){for(const s in e)_n(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&_n(e[s],t,n)}return e}/**
* @vue/runtime-core v3.5.35
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function vo(e,t,n,s){try{return s?e(...s):e()}catch(o){yo(o,t,n)}}function Ht(e,t,n,s){if(Ee(e)){const o=vo(e,t,n,s);return o&&Wc(o)&&o.catch(i=>{yo(i,t,n)}),o}if(ve(e)){const o=[];for(let i=0;i<e.length;i++)o.push(Ht(e[i],t,n,s));return o}}function yo(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Ue;if(t){let r=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const l=r.ec;if(l){for(let u=0;u<l.length;u++)if(l[u](e,c,d)===!1)return}r=r.parent}if(i){bn(),vo(i,null,10,[e,c,d]),wn();return}}Mh(e,n,o,s,a)}function Mh(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Et=[];let nn=-1;const _s=[];let On=null,cs=0;const Su=Promise.resolve();let oi=null;function Xe(e){const t=oi||Su;return e?t.then(this?e.bind(this):e):t}function Fh(e){let t=nn+1,n=Et.length;for(;t<n;){const s=t+n>>>1,o=Et[s],i=lo(o);i<e||i===e&&o.flags&2?t=s+1:n=s}return t}function rr(e){if(!(e.flags&1)){const t=lo(e),n=Et[Et.length-1];!n||!(e.flags&2)&&t>=lo(n)?Et.push(e):Et.splice(Fh(t),0,e),e.flags|=1,Eu()}}function Eu(){oi||(oi=Su.then(xu))}function ba(e){ve(e)?_s.push(...e):On&&e.id===-1?On.splice(cs+1,0,e):e.flags&1||(_s.push(e),e.flags|=1),Eu()}function Kr(e,t,n=nn+1){for(;n<Et.length;n++){const s=Et[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Et.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Cu(e){if(_s.length){const t=[...new Set(_s)].sort((n,s)=>lo(n)-lo(s));if(_s.length=0,On){On.push(...t);return}for(On=t,cs=0;cs<On.length;cs++){const n=On[cs];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}On=null,cs=0}}const lo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function xu(e){try{for(nn=0;nn<Et.length;nn++){const t=Et[nn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),vo(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;nn<Et.length;nn++){const t=Et[nn];t&&(t.flags&=-2)}nn=-1,Et.length=0,Cu(),oi=null,(Et.length||_s.length)&&xu()}}let Pt=null,ku=null;function ii(e){const t=Pt;return Pt=e,ku=e&&e.type.__scopeId||null,t}function Je(e,t=Pt,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&li(-1);const i=ii(t);let a;try{a=e(...o)}finally{ii(i),s._d&&li(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function Jn(e,t){if(Pt===null)return e;const n=Ti(Pt),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,a,r,c=Ue]=t[o];i&&(Ee(i)&&(i={mounted:i,updated:i}),i.deep&&_n(a),s.push({dir:i,instance:n,value:a,oldValue:void 0,arg:r,modifiers:c}))}return e}function Mn(e,t,n,s){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const r=o[a];i&&(r.oldValue=i[a].value);let c=r.dir[s];c&&(bn(),Ht(c,n,8,[e.el,r,e,t]),wn())}}function cn(e,t){if(vt){let n=vt.provides;const s=vt.parent&&vt.parent.provides;s===n&&(n=vt.provides=Object.create(s)),n[e]=t}}function ht(e,t,n=!1){const s=Wt();if(s||Xn){let o=Xn?Xn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Ee(t)?t.call(s&&s.proxy):t}}function Vh(){return!!(Wt()||Xn)}const jh=Symbol.for("v-scx"),qh=()=>ht(jh);function Tu(e,t){return lr(e,null,t)}function ke(e,t,n){return lr(e,t,n)}function lr(e,t,n=Ue){const{immediate:s,deep:o,flush:i,once:a}=n,r=ct({},n),c=t&&s||!t&&i!=="post";let d;if(fo){if(i==="sync"){const h=qh();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=ln,h.resume=ln,h.pause=ln,h}}const l=vt;r.call=(h,_,m)=>Ht(h,l,_,m);let u=!1;i==="post"?r.scheduler=h=>{_t(h,l&&l.suspense)}:i!=="sync"&&(u=!0,r.scheduler=(h,_)=>{_?h():rr(h)}),r.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,l&&(h.id=l.uid,h.i=l))};const f=Lh(e,t,r);return fo&&(d?d.push(f):c&&f()),f}function Uh(e,t,n){const s=this.proxy,o=ze(e)?e.includes(".")?Au(s,e):()=>s[e]:e.bind(s,s);let i;Ee(t)?i=t:(i=t.handler,n=t);const a=bo(this),r=lr(o,i.bind(s),n);return a(),r}function Au(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const In=new WeakMap,Ru=Symbol("_vte"),Iu=e=>e.__isTeleport,zn=e=>e&&(e.disabled||e.disabled===""),zh=e=>e&&(e.defer||e.defer===""),Gr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Jr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,wa=(e,t)=>{const n=e&&e.to;return ze(n)?t?t(n):null:n},Hh={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,i,a,r,c,d){const{mc:l,pc:u,pbc:f,o:{insert:h,querySelector:_,createText:m,createComment:p,parentNode:v}}=d,E=zn(t.props);let{dynamicChildren:R}=t;const x=(P,K,L)=>{P.shapeFlag&16&&l(P.children,K,L,o,i,a,r,c)},b=(P=t)=>{const K=zn(P.props),L=P.target=wa(P.props,_),j=Sa(L,P,m,h);L&&(a!=="svg"&&Gr(L)?a="svg":a!=="mathml"&&Jr(L)&&(a="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(L),K||(x(P,L,j),Ws(P,!1)))},I=P=>{const K=()=>{if(In.get(P)===K){if(In.delete(P),zn(P.props)){const L=v(P.el)||n;x(P,L,P.anchor),Ws(P,!0)}b(P)}};In.set(P,K),_t(K,i)};if(e==null){const P=t.el=m(""),K=t.anchor=m("");if(h(P,n,s),h(K,n,s),zh(t.props)||i&&i.pendingBranch){I(t);return}E&&(x(t,n,K),Ws(t,!0)),b()}else{t.el=e.el;const P=t.anchor=e.anchor,K=In.get(e);if(K){K.flags|=8,In.delete(e),I(t);return}t.targetStart=e.targetStart;const L=t.target=e.target,j=t.targetAnchor=e.targetAnchor,B=zn(e.props),O=B?n:L,Q=B?P:j;if(a==="svg"||Gr(L)?a="svg":(a==="mathml"||Jr(L))&&(a="mathml"),R?(f(e.dynamicChildren,R,O,o,i,a,r),pr(e,t,!0)):c||u(e,t,O,Q,o,i,a,r,!1),E)B?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Lo(t,n,P,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Z=t.target=wa(t.props,_);Z&&Lo(t,Z,null,d,0)}else B&&Lo(t,L,j,d,1);Ws(t,E)}},remove(e,t,n,{um:s,o:{remove:o}},i){const{shapeFlag:a,children:r,anchor:c,targetStart:d,targetAnchor:l,target:u,props:f}=e,h=i||!zn(f),_=In.get(e);if(_&&(_.flags|=8,In.delete(e)),u&&(o(d),o(l)),i&&o(c),!_&&a&16)for(let m=0;m<r.length;m++){const p=r[m];s(p,t,n,h,!!p.dynamicChildren)}},move:Lo,hydrate:Wh};function Lo(e,t,n,{o:{insert:s},m:o},i=2){i===0&&s(e.targetAnchor,t,n);const{el:a,anchor:r,shapeFlag:c,children:d,props:l}=e,u=i===2;if(u&&s(a,t,n),!In.has(e)&&(!u||zn(l))&&c&16)for(let f=0;f<d.length;f++)o(d[f],t,n,2);u&&s(r,t,n)}function Wh(e,t,n,s,o,i,{o:{nextSibling:a,parentNode:r,querySelector:c,insert:d,createText:l}},u){function f(p,v){let E=v;for(;E;){if(E&&E.nodeType===8){if(E.data==="teleport start anchor")t.targetStart=E;else if(E.data==="teleport anchor"){t.targetAnchor=E,p._lpa=t.targetAnchor&&a(t.targetAnchor);break}}E=a(E)}}function h(p,v){v.anchor=u(a(p),v,r(p),n,s,o,i)}const _=t.target=wa(t.props,c),m=zn(t.props);if(_){const p=_._lpa||_.firstChild;t.shapeFlag&16&&(m?(h(e,t),f(_,p),t.targetAnchor||Sa(_,t,l,d,r(e)===_?e:null)):(t.anchor=a(e),f(_,p),t.targetAnchor||Sa(_,t,l,d),u(p&&a(p),t,_,n,s,o,i))),Ws(t,m)}else m&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}const $u=Hh;function Ws(e,t){const n=e.ctx;if(n&&n.ut){let s,o;for(t?(s=e.el,o=e.anchor):(s=e.targetStart,o=e.targetAnchor);s&&s!==o;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Sa(e,t,n,s,o=null){const i=t.targetStart=n(""),a=t.targetAnchor=n("");return i[Ru]=a,e&&(s(i,e,o),s(a,e,o)),a}const qt=Symbol("_leaveCb"),Ds=Symbol("_enterCb");function Kh(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return st(()=>{e.isMounted=!0}),Ts(()=>{e.isUnmounting=!0}),e}const Ft=[Function,Array],Ou={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ft,onEnter:Ft,onAfterEnter:Ft,onEnterCancelled:Ft,onBeforeLeave:Ft,onLeave:Ft,onAfterLeave:Ft,onLeaveCancelled:Ft,onBeforeAppear:Ft,onAppear:Ft,onAfterAppear:Ft,onAppearCancelled:Ft},Pu=e=>{const t=e.subTree;return t.component?Pu(t.component):t},Gh={name:"BaseTransition",props:Ou,setup(e,{slots:t}){const n=Wt(),s=Kh();return()=>{const o=t.default&&Nu(t.default(),!0),i=o&&o.length?Du(o):n.subTree?re():void 0;if(!i)return;const a=Pe(e),{mode:r}=a;if(s.isLeaving)return Gi(i);const c=Xr(i);if(!c)return Gi(i);let d=Ea(c,a,s,n,u=>d=u);c.type!==ft&&co(c,d);let l=n.subTree&&Xr(n.subTree);if(l&&l.type!==ft&&!an(l,c)&&Pu(n).type!==ft){let u=Ea(l,a,s,n);if(co(l,u),r==="out-in"&&c.type!==ft)return s.isLeaving=!0,u.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,l=void 0},Gi(i);r==="in-out"&&c.type!==ft?u.delayLeave=(f,h,_)=>{const m=Bu(s,l);m[String(l.key)]=l,f[qt]=()=>{h(),f[qt]=void 0,delete d.delayedLeave,l=void 0},d.delayedLeave=()=>{_(),delete d.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return i}}};function Du(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ft){t=n;break}}return t}const Jh=Gh;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 Ea(e,t,n,s,o){const{appear:i,mode:a,persisted:r=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:_,onLeaveCancelled:m,onBeforeAppear:p,onAppear:v,onAfterAppear:E,onAppearCancelled:R}=t,x=String(e.key),b=Bu(n,e),I=(L,j)=>{L&&Ht(L,s,9,j)},P=(L,j)=>{const B=j[1];I(L,j),ve(L)?L.every(O=>O.length<=1)&&B():L.length<=1&&B()},K={mode:a,persisted:r,beforeEnter(L){let j=c;if(!n.isMounted)if(i)j=p||c;else return;L[qt]&&L[qt](!0);const B=b[x];B&&an(e,B)&&B.el[qt]&&B.el[qt](),I(j,[L])},enter(L){if(b[x]===e)return;let j=d,B=l,O=u;if(!n.isMounted)if(i)j=v||d,B=E||l,O=R||u;else return;let Q=!1;L[Ds]=Ce=>{Q||(Q=!0,Ce?I(O,[L]):I(B,[L]),K.delayedLeave&&K.delayedLeave(),L[Ds]=void 0)};const Z=L[Ds].bind(null,!1);j?P(j,[L,Z]):Z()},leave(L,j){const B=String(e.key);if(L[Ds]&&L[Ds](!0),n.isUnmounting)return j();I(f,[L]);let O=!1;L[qt]=Z=>{O||(O=!0,j(),Z?I(m,[L]):I(_,[L]),L[qt]=void 0,b[B]===e&&delete b[B])};const Q=L[qt].bind(null,!1);b[B]=e,h?P(h,[L,Q]):Q()},clone(L){const j=Ea(L,t,n,s,o);return o&&o(j),j}};return K}function Gi(e){if(Ei(e))return e=Bn(e),e.children=null,e}function Xr(e){if(!Ei(e))return Iu(e.type)&&e.children?Du(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&&Ee(n.default))return n.default()}}function co(e,t){e.shapeFlag&6&&e.component?(e.transition=t,co(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 Nu(e,t=!1,n){let s=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const r=n==null?a.key:String(n)+String(a.key!=null?a.key:i);a.type===Se?(a.patchFlag&128&&o++,s=s.concat(Nu(a.children,t,r))):(t||a.type!==ft)&&s.push(r!=null?Bn(a,{key:r}):a)}if(o>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}function be(e,t){return Ee(e)?ct({name:e.name},t,{setup:e}):e}function Lu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Yr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ai=new WeakMap;function Qs(e,t,n,s,o=!1){if(ve(e)){e.forEach((m,p)=>Qs(m,t&&(ve(t)?t[p]:t),n,s,o));return}if(Zs(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Qs(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Ti(s.component):s.el,a=o?null:i,{i:r,r:c}=e,d=t&&t.r,l=r.refs===Ue?r.refs={}:r.refs,u=r.setupState,f=Pe(u),h=u===Ue?zc:m=>Yr(l,m)?!1:Me(f,m),_=(m,p)=>!(p&&Yr(l,p));if(d!=null&&d!==c){if(Qr(t),ze(d))l[d]=null,h(d)&&(u[d]=null);else if(Ye(d)){const m=t;_(d,m.k)&&(d.value=null),m.k&&(l[m.k]=null)}}if(Ee(c))vo(c,r,12,[a,l]);else{const m=ze(c),p=Ye(c);if(m||p){const v=()=>{if(e.f){const E=m?h(c)?u[c]:l[c]:_()||!e.k?c.value:l[e.k];if(o)ve(E)&&Za(E,i);else if(ve(E))E.includes(i)||E.push(i);else if(m)l[c]=[i],h(c)&&(u[c]=l[c]);else{const R=[i];_(c,e.k)&&(c.value=R),e.k&&(l[e.k]=R)}}else m?(l[c]=a,h(c)&&(u[c]=a)):p&&(_(c,e.k)&&(c.value=a),e.k&&(l[e.k]=a))};if(a){const E=()=>{v(),ai.delete(e)};E.id=-1,ai.set(e,E),_t(E,n)}else Qr(e),v()}}}function Qr(e){const t=ai.get(e);t&&(t.flags|=8,ai.delete(e))}vi().requestIdleCallback;vi().cancelIdleCallback;const Zs=e=>!!e.type.__asyncLoader,Ei=e=>e.type.__isKeepAlive;function ks(e,t){Mu(e,"a",t)}function es(e,t){Mu(e,"da",t)}function Mu(e,t,n=vt){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ci(t,s,n),n){let o=n.parent;for(;o&&o.parent;)Ei(o.parent.vnode)&&Xh(s,t,n,o),o=o.parent}}function Xh(e,t,n,s){const o=Ci(t,e,s,!0);Nn(()=>{Za(s[t],o)},n)}function Ci(e,t,n=vt,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{bn();const r=bo(n),c=Ht(t,n,e,a);return r(),wn(),c});return s?o.unshift(i):o.push(i),i}}const xn=e=>(t,n=vt)=>{(!fo||e==="sp")&&Ci(e,(...s)=>t(...s),n)},Yh=xn("bm"),st=xn("m"),Fu=xn("bu"),Qh=xn("u"),Ts=xn("bum"),Nn=xn("um"),Zh=xn("sp"),ep=xn("rtg"),tp=xn("rtc");function np(e,t=vt){Ci("ec",e,t)}const cr="components",sp="directives";function op(e,t){return ur(cr,e,!0,t)||e}const Vu=Symbol.for("v-ndc");function ip(e){return ze(e)?ur(cr,e,!1)||e:e||Vu}function WT(e){return ur(sp,e)}function ur(e,t,n=!0,s=!1){const o=Pt||vt;if(o){const i=o.type;if(e===cr){const r=Jp(i,!1);if(r&&(r===t||r===xt(t)||r===gi(xt(t))))return i}const a=Zr(o[e]||i[e],t)||Zr(o.appContext[e],t);return!a&&s?i:a}}function Zr(e,t){return e&&(e[t]||e[xt(t)]||e[gi(xt(t))])}function tt(e,t,n,s){let o;const i=n,a=ve(e);if(a||ze(e)){const r=a&&vn(e);let c=!1,d=!1;r&&(c=!Dt(e),d=Sn(e),e=yi(e)),o=new Array(e.length);for(let l=0,u=e.length;l<u;l++)o[l]=t(c?d?vs(Qt(e[l])):Qt(e[l]):e[l],l,void 0,i)}else if(typeof e=="number"){o=new Array(e);for(let r=0;r<e;r++)o[r]=t(r+1,r,void 0,i)}else if(Fe(e))if(e[Symbol.iterator])o=Array.from(e,(r,c)=>t(r,c,void 0,i));else{const r=Object.keys(e);o=new Array(r.length);for(let c=0,d=r.length;c<d;c++){const l=r[c];o[c]=t(e[l],l,c,i)}}else o=[];return o}const Ca=e=>e?rd(e)?Ti(e):Ca(e.parent):null,eo=ct(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=>Ca(e.parent),$root:e=>Ca(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>qu(e),$forceUpdate:e=>e.f||(e.f=()=>{rr(e.update)}),$nextTick:e=>e.n||(e.n=Xe.bind(e.proxy)),$watch:e=>Uh.bind(e)}),Ji=(e,t)=>e!==Ue&&!e.__isScriptSetup&&Me(e,t),ap={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:i,accessCache:a,type:r,appContext:c}=e;if(t[0]!=="$"){const f=a[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(Ji(s,t))return a[t]=1,s[t];if(o!==Ue&&Me(o,t))return a[t]=2,o[t];if(Me(i,t))return a[t]=3,i[t];if(n!==Ue&&Me(n,t))return a[t]=4,n[t];xa&&(a[t]=0)}}const d=eo[t];let l,u;if(d)return t==="$attrs"&&gt(e.attrs,"get",""),d(e);if((l=r.__cssModules)&&(l=l[t]))return l;if(n!==Ue&&Me(n,t))return a[t]=4,n[t];if(u=c.config.globalProperties,Me(u,t))return u[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return Ji(o,t)?(o[t]=n,!0):s!==Ue&&Me(s,t)?(s[t]=n,!0):Me(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:a}},r){let c;return!!(n[r]||e!==Ue&&r[0]!=="$"&&Me(e,r)||Ji(t,r)||Me(i,r)||Me(s,r)||Me(eo,r)||Me(o.config.globalProperties,r)||(c=a.__cssModules)&&c[r])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function el(e){return ve(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xa=!0;function rp(e){const t=qu(e),n=e.proxy,s=e.ctx;xa=!1,t.beforeCreate&&tl(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:r,provide:c,inject:d,created:l,beforeMount:u,mounted:f,beforeUpdate:h,updated:_,activated:m,deactivated:p,beforeDestroy:v,beforeUnmount:E,destroyed:R,unmounted:x,render:b,renderTracked:I,renderTriggered:P,errorCaptured:K,serverPrefetch:L,expose:j,inheritAttrs:B,components:O,directives:Q,filters:Z}=t;if(d&&lp(d,s,null),a)for(const ae in a){const de=a[ae];Ee(de)&&(s[ae]=de.bind(n))}if(o){const ae=o.call(n,n);Fe(ae)&&(e.data=pt(ae))}if(xa=!0,i)for(const ae in i){const de=i[ae],xe=Ee(de)?de.bind(n,n):Ee(de.get)?de.get.bind(n,n):ln,we=!Ee(de)&&Ee(de.set)?de.set.bind(n):ln,oe=V({get:xe,set:we});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>oe.value,set:ne=>oe.value=ne})}if(r)for(const ae in r)ju(r[ae],s,n,ae);if(c){const ae=Ee(c)?c.call(n):c;Reflect.ownKeys(ae).forEach(de=>{cn(de,ae[de])})}l&&tl(l,e,"c");function he(ae,de){ve(de)?de.forEach(xe=>ae(xe.bind(n))):de&&ae(de.bind(n))}if(he(Yh,u),he(st,f),he(Fu,h),he(Qh,_),he(ks,m),he(es,p),he(np,K),he(tp,I),he(ep,P),he(Ts,E),he(Nn,x),he(Zh,L),ve(j))if(j.length){const ae=e.exposed||(e.exposed={});j.forEach(de=>{Object.defineProperty(ae,de,{get:()=>n[de],set:xe=>n[de]=xe,enumerable:!0})})}else e.exposed||(e.exposed={});b&&e.render===ln&&(e.render=b),B!=null&&(e.inheritAttrs=B),O&&(e.components=O),Q&&(e.directives=Q),L&&Lu(e)}function lp(e,t,n=ln){ve(e)&&(e=ka(e));for(const s in e){const o=e[s];let i;Fe(o)?"default"in o?i=ht(o.from||s,o.default,!0):i=ht(o.from||s):i=ht(o),Ye(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[s]=i}}function tl(e,t,n){Ht(ve(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ju(e,t,n,s){let o=s.includes(".")?Au(n,s):()=>n[s];if(ze(e)){const i=t[e];Ee(i)&&ke(o,i)}else if(Ee(e))ke(o,e.bind(n));else if(Fe(e))if(ve(e))e.forEach(i=>ju(i,t,n,s));else{const i=Ee(e.handler)?e.handler.bind(n):t[e.handler];Ee(i)&&ke(o,i,e)}}function qu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,r=i.get(t);let c;return r?c=r:!o.length&&!n&&!s?c=t:(c={},o.length&&o.forEach(d=>ri(c,d,a,!0)),ri(c,t,a)),Fe(t)&&i.set(t,c),c}function ri(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&ri(e,i,n,!0),o&&o.forEach(a=>ri(e,a,n,!0));for(const a in t)if(!(s&&a==="expose")){const r=cp[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const cp={data:nl,props:sl,emits:sl,methods:Ks,computed:Ks,beforeCreate:wt,created:wt,beforeMount:wt,mounted:wt,beforeUpdate:wt,updated:wt,beforeDestroy:wt,beforeUnmount:wt,destroyed:wt,unmounted:wt,activated:wt,deactivated:wt,errorCaptured:wt,serverPrefetch:wt,components:Ks,directives:Ks,watch:dp,provide:nl,inject:up};function nl(e,t){return t?e?function(){return ct(Ee(e)?e.call(this,this):e,Ee(t)?t.call(this,this):t)}:t:e}function up(e,t){return Ks(ka(e),ka(t))}function ka(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function wt(e,t){return e?[...new Set([].concat(e,t))]:t}function Ks(e,t){return e?ct(Object.create(null),e,t):t}function sl(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:ct(Object.create(null),el(e),el(t??{})):t}function dp(e,t){if(!e)return t;if(!t)return e;const n=ct(Object.create(null),e);for(const s in t)n[s]=wt(e[s],t[s]);return n}function Uu(){return{app:null,config:{isNativeTag:zc,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let fp=0;function hp(e,t){return function(s,o=null){Ee(s)||(s=ct({},s)),o!=null&&!Fe(o)&&(o=null);const i=Uu(),a=new WeakSet,r=[];let c=!1;const d=i.app={_uid:fp++,_component:s,_props:o,_container:null,_context:i,_instance:null,version:Yp,get config(){return i.config},set config(l){},use(l,...u){return a.has(l)||(l&&Ee(l.install)?(a.add(l),l.install(d,...u)):Ee(l)&&(a.add(l),l(d,...u))),d},mixin(l){return i.mixins.includes(l)||i.mixins.push(l),d},component(l,u){return u?(i.components[l]=u,d):i.components[l]},directive(l,u){return u?(i.directives[l]=u,d):i.directives[l]},mount(l,u,f){if(!c){const h=d._ceVNode||C(s,o);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),e(h,l,f),c=!0,d._container=l,l.__vue_app__=d,Ti(h.component)}},onUnmount(l){r.push(l)},unmount(){c&&(Ht(r,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(l,u){return i.provides[l]=u,d},runWithContext(l){const u=Xn;Xn=d;try{return l()}finally{Xn=u}}};return d}}let Xn=null;const pp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${xt(t)}Modifiers`]||e[`${Cn(t)}Modifiers`];function mp(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Ue;let o=n;const i=t.startsWith("update:"),a=i&&pp(s,t.slice(7));a&&(a.trim&&(o=n.map(l=>ze(l)?l.trim():l)),a.number&&(o=n.map(nh)));let r,c=s[r=qi(t)]||s[r=qi(xt(t))];!c&&i&&(c=s[r=qi(Cn(t))]),c&&Ht(c,e,6,o);const d=s[r+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,Ht(d,e,6,o)}}const _p=new WeakMap;function zu(e,t,n=!1){const s=n?_p:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let a={},r=!1;if(!Ee(e)){const c=d=>{const l=zu(d,t,!0);l&&(r=!0,ct(a,l))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!r?(Fe(e)&&s.set(e,null),null):(ve(i)?i.forEach(c=>a[c]=null):ct(a,i),Fe(e)&&s.set(e,a),a)}function xi(e,t){return!e||!hi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Me(e,t[0].toLowerCase()+t.slice(1))||Me(e,Cn(t))||Me(e,t))}function ol(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:a,attrs:r,emit:c,render:d,renderCache:l,props:u,data:f,setupState:h,ctx:_,inheritAttrs:m}=e,p=ii(e);let v,E;try{if(n.shapeFlag&4){const x=o||s,b=x;v=Gt(d.call(b,x,l,u,h,f,_)),E=r}else{const x=t;v=Gt(x.length>1?x(u,{attrs:r,slots:a,emit:c}):x(u,null)),E=t.props?r:vp(r)}}catch(x){to.length=0,yo(x,e,1),v=C(ft)}let R=v;if(E&&m!==!1){const x=Object.keys(E),{shapeFlag:b}=R;x.length&&b&7&&(i&&x.some(pi)&&(E=yp(E,i)),R=Bn(R,E,!1,!0))}return n.dirs&&(R=Bn(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&co(R,n.transition),v=R,ii(p),v}function gp(e,t=!0){let n;for(let s=0;s<e.length;s++){const o=e[s];if(bs(o)){if(o.type!==ft||o.children==="v-if"){if(n)return;n=o}}else return}return n}const vp=e=>{let t;for(const n in e)(n==="class"||n==="style"||hi(n))&&((t||(t={}))[n]=e[n]);return t},yp=(e,t)=>{const n={};for(const s in e)(!pi(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function bp(e,t,n){const{props:s,children:o,component:i}=e,{props:a,children:r,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?il(s,a,d):!!a;if(c&8){const l=t.dynamicProps;for(let u=0;u<l.length;u++){const f=l[u];if(Hu(a,s,f)&&!xi(d,f))return!0}}}else return(o||r)&&(!r||!r.$stable)?!0:s===a?!1:s?a?il(s,a,d):!0:!!a;return!1}function il(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const i=s[o];if(Hu(t,e,i)&&!xi(n,i))return!0}return!1}function Hu(e,t,n){const s=e[n],o=t[n];return n==="style"&&Fe(s)&&Fe(o)?!er(s,o):s!==o}function dr({vnode:e,parent:t,suspense:n},s){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=s,e=o),o===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Wu={},Ku=()=>Object.create(Wu),Gu=e=>Object.getPrototypeOf(e)===Wu;function wp(e,t,n,s=!1){const o={},i=Ku();e.propsDefaults=Object.create(null),Ju(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=s?o:yu(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Sp(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,r=Pe(o),[c]=e.propsOptions;let d=!1;if((s||a>0)&&!(a&16)){if(a&8){const l=e.vnode.dynamicProps;for(let u=0;u<l.length;u++){let f=l[u];if(xi(e.emitsOptions,f))continue;const h=t[f];if(c)if(Me(i,f))h!==i[f]&&(i[f]=h,d=!0);else{const _=xt(f);o[_]=Ta(c,r,_,h,e,!1)}else h!==i[f]&&(i[f]=h,d=!0)}}}else{Ju(e,t,o,i)&&(d=!0);let l;for(const u in r)(!t||!Me(t,u)&&((l=Cn(u))===u||!Me(t,l)))&&(c?n&&(n[u]!==void 0||n[l]!==void 0)&&(o[u]=Ta(c,r,u,void 0,e,!0)):delete o[u]);if(i!==r)for(const u in i)(!t||!Me(t,u))&&(delete i[u],d=!0)}d&&mn(e.attrs,"set","")}function Ju(e,t,n,s){const[o,i]=e.propsOptions;let a=!1,r;if(t)for(let c in t){if(Js(c))continue;const d=t[c];let l;o&&Me(o,l=xt(c))?!i||!i.includes(l)?n[l]=d:(r||(r={}))[l]=d:xi(e.emitsOptions,c)||(!(c in s)||d!==s[c])&&(s[c]=d,a=!0)}if(i){const c=Pe(n),d=r||Ue;for(let l=0;l<i.length;l++){const u=i[l];n[u]=Ta(o,c,u,d[u],e,!Me(d,u))}}return a}function Ta(e,t,n,s,o,i){const a=e[n];if(a!=null){const r=Me(a,"default");if(r&&s===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&Ee(c)){const{propsDefaults:d}=o;if(n in d)s=d[n];else{const l=bo(o);s=d[n]=c.call(null,t),l()}}else s=c;o.ce&&o.ce._setProp(n,s)}a[0]&&(i&&!r?s=!1:a[1]&&(s===""||s===Cn(n))&&(s=!0))}return s}const Ep=new WeakMap;function Xu(e,t,n=!1){const s=n?Ep:t.propsCache,o=s.get(e);if(o)return o;const i=e.props,a={},r=[];let c=!1;if(!Ee(e)){const l=u=>{c=!0;const[f,h]=Xu(u,t,!0);ct(a,f),h&&r.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!i&&!c)return Fe(e)&&s.set(e,hs),hs;if(ve(i))for(let l=0;l<i.length;l++){const u=xt(i[l]);al(u)&&(a[u]=Ue)}else if(i)for(const l in i){const u=xt(l);if(al(u)){const f=i[l],h=a[u]=ve(f)||Ee(f)?{type:f}:ct({},f),_=h.type;let m=!1,p=!0;if(ve(_))for(let v=0;v<_.length;++v){const E=_[v],R=Ee(E)&&E.name;if(R==="Boolean"){m=!0;break}else R==="String"&&(p=!1)}else m=Ee(_)&&_.name==="Boolean";h[0]=m,h[1]=p,(m||Me(h,"default"))&&r.push(u)}}const d=[a,r];return Fe(e)&&s.set(e,d),d}function al(e){return e[0]!=="$"&&!Js(e)}const fr=e=>e==="_"||e==="_ctx"||e==="$stable",hr=e=>ve(e)?e.map(Gt):[Gt(e)],Cp=(e,t,n)=>{if(t._n)return t;const s=Je((...o)=>hr(t(...o)),n);return s._c=!1,s},Yu=(e,t,n)=>{const s=e._ctx;for(const o in e){if(fr(o))continue;const i=e[o];if(Ee(i))t[o]=Cp(o,i,s);else if(i!=null){const a=hr(i);t[o]=()=>a}}},Qu=(e,t)=>{const n=hr(t);e.slots.default=()=>n},Zu=(e,t,n)=>{for(const s in t)(n||!fr(s))&&(e[s]=t[s])},xp=(e,t,n)=>{const s=e.slots=Ku();if(e.vnode.shapeFlag&32){const o=t._;o?(Zu(s,t,n),n&&Jc(s,"_",o,!0)):Yu(t,s)}else t&&Qu(e,t)},kp=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,a=Ue;if(s.shapeFlag&32){const r=t._;r?n&&r===1?i=!1:Zu(o,t,n):(i=!t.$stable,Yu(t,o)),a=t}else t&&(Qu(e,t),a={default:1});if(i)for(const r in o)!fr(r)&&a[r]==null&&delete o[r]},_t=Lp;function Tp(e){return Ap(e)}function Ap(e,t){const n=vi();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:a,createText:r,createComment:c,setText:d,setElementText:l,parentNode:u,nextSibling:f,setScopeId:h=ln,insertStaticContent:_}=e,m=(y,w,T,U=null,G=null,W=null,se=void 0,te=null,ee=!!w.dynamicChildren)=>{if(y===w)return;y&&!an(y,w)&&(U=S(y),ne(y,G,W,!0),y=null),w.patchFlag===-2&&(ee=!1,w.dynamicChildren=null);const{type:X,ref:_e,shapeFlag:le}=w;switch(X){case ki:p(y,w,T,U);break;case ft:v(y,w,T,U);break;case Jo:y==null&&E(w,T,U,se);break;case Se:O(y,w,T,U,G,W,se,te,ee);break;default:le&1?b(y,w,T,U,G,W,se,te,ee):le&6?Q(y,w,T,U,G,W,se,te,ee):(le&64||le&128)&&X.process(y,w,T,U,G,W,se,te,ee,N)}_e!=null&&G?Qs(_e,y&&y.ref,W,w||y,!w):_e==null&&y&&y.ref!=null&&Qs(y.ref,null,W,y,!0)},p=(y,w,T,U)=>{if(y==null)s(w.el=r(w.children),T,U);else{const G=w.el=y.el;w.children!==y.children&&d(G,w.children)}},v=(y,w,T,U)=>{y==null?s(w.el=c(w.children||""),T,U):w.el=y.el},E=(y,w,T,U)=>{[y.el,y.anchor]=_(y.children,w,T,U,y.el,y.anchor)},R=({el:y,anchor:w},T,U)=>{let G;for(;y&&y!==w;)G=f(y),s(y,T,U),y=G;s(w,T,U)},x=({el:y,anchor:w})=>{let T;for(;y&&y!==w;)T=f(y),o(y),y=T;o(w)},b=(y,w,T,U,G,W,se,te,ee)=>{if(w.type==="svg"?se="svg":w.type==="math"&&(se="mathml"),y==null)I(w,T,U,G,W,se,te,ee);else{const X=y.el&&y.el._isVueCE?y.el:null;try{X&&X._beginPatch(),L(y,w,G,W,se,te,ee)}finally{X&&X._endPatch()}}},I=(y,w,T,U,G,W,se,te)=>{let ee,X;const{props:_e,shapeFlag:le,transition:pe,dirs:ye}=y;if(ee=y.el=a(y.type,W,_e&&_e.is,_e),le&8?l(ee,y.children):le&16&&K(y.children,ee,null,U,G,Xi(y,W),se,te),ye&&Mn(y,null,U,"created"),P(ee,y,y.scopeId,se,U),_e){for(const De in _e)De!=="value"&&!Js(De)&&i(ee,De,null,_e[De],W,U);"value"in _e&&i(ee,"value",null,_e.value,W),(X=_e.onVnodeBeforeMount)&&tn(X,U,y)}ye&&Mn(y,null,U,"beforeMount");const Ie=Rp(G,pe);Ie&&pe.beforeEnter(ee),s(ee,w,T),((X=_e&&_e.onVnodeMounted)||Ie||ye)&&_t(()=>{try{X&&tn(X,U,y),Ie&&pe.enter(ee),ye&&Mn(y,null,U,"mounted")}finally{}},G)},P=(y,w,T,U,G)=>{if(T&&h(y,T),U)for(let W=0;W<U.length;W++)h(y,U[W]);if(G){let W=G.subTree;if(w===W||nd(W.type)&&(W.ssContent===w||W.ssFallback===w)){const se=G.vnode;P(y,se,se.scopeId,se.slotScopeIds,G.parent)}}},K=(y,w,T,U,G,W,se,te,ee=0)=>{for(let X=ee;X<y.length;X++){const _e=y[X]=te?pn(y[X]):Gt(y[X]);m(null,_e,w,T,U,G,W,se,te)}},L=(y,w,T,U,G,W,se)=>{const te=w.el=y.el;let{patchFlag:ee,dynamicChildren:X,dirs:_e}=w;ee|=y.patchFlag&16;const le=y.props||Ue,pe=w.props||Ue;let ye;if(T&&Fn(T,!1),(ye=pe.onVnodeBeforeUpdate)&&tn(ye,T,w,y),_e&&Mn(w,y,T,"beforeUpdate"),T&&Fn(T,!0),(le.innerHTML&&pe.innerHTML==null||le.textContent&&pe.textContent==null)&&l(te,""),X?j(y.dynamicChildren,X,te,T,U,Xi(w,G),W):se||de(y,w,te,null,T,U,Xi(w,G),W,!1),ee>0){if(ee&16)B(te,le,pe,T,G);else if(ee&2&&le.class!==pe.class&&i(te,"class",null,pe.class,G),ee&4&&i(te,"style",le.style,pe.style,G),ee&8){const Ie=w.dynamicProps;for(let De=0;De<Ie.length;De++){const Ne=Ie[De],Ze=le[Ne],at=pe[Ne];(at!==Ze||Ne==="value")&&i(te,Ne,Ze,at,G,T)}}ee&1&&y.children!==w.children&&l(te,w.children)}else!se&&X==null&&B(te,le,pe,T,G);((ye=pe.onVnodeUpdated)||_e)&&_t(()=>{ye&&tn(ye,T,w,y),_e&&Mn(w,y,T,"updated")},U)},j=(y,w,T,U,G,W,se)=>{for(let te=0;te<w.length;te++){const ee=y[te],X=w[te],_e=ee.el&&(ee.type===Se||!an(ee,X)||ee.shapeFlag&198)?u(ee.el):T;m(ee,X,_e,null,U,G,W,se,!0)}},B=(y,w,T,U,G)=>{if(w!==T){if(w!==Ue)for(const W in w)!Js(W)&&!(W in T)&&i(y,W,w[W],null,G,U);for(const W in T){if(Js(W))continue;const se=T[W],te=w[W];se!==te&&W!=="value"&&i(y,W,te,se,G,U)}"value"in T&&i(y,"value",w.value,T.value,G)}},O=(y,w,T,U,G,W,se,te,ee)=>{const X=w.el=y?y.el:r(""),_e=w.anchor=y?y.anchor:r("");let{patchFlag:le,dynamicChildren:pe,slotScopeIds:ye}=w;ye&&(te=te?te.concat(ye):ye),y==null?(s(X,T,U),s(_e,T,U),K(w.children||[],T,_e,G,W,se,te,ee)):le>0&&le&64&&pe&&y.dynamicChildren&&y.dynamicChildren.length===pe.length?(j(y.dynamicChildren,pe,T,G,W,se,te),(w.key!=null||G&&w===G.subTree)&&pr(y,w,!0)):de(y,w,T,_e,G,W,se,te,ee)},Q=(y,w,T,U,G,W,se,te,ee)=>{w.slotScopeIds=te,y==null?w.shapeFlag&512?G.ctx.activate(w,T,U,se,ee):Z(w,T,U,G,W,se,ee):Ce(y,w,ee)},Z=(y,w,T,U,G,W,se)=>{const te=y.component=zp(y,U,G);if(Ei(y)&&(te.ctx.renderer=N),Hp(te,!1,se),te.asyncDep){if(G&&G.registerDep(te,he,se),!y.el){const ee=te.subTree=C(ft);v(null,ee,w,T),y.placeholder=ee.el}}else he(te,y,w,T,G,W,se)},Ce=(y,w,T)=>{const U=w.component=y.component;if(bp(y,w,T))if(U.asyncDep&&!U.asyncResolved){ae(U,w,T);return}else U.next=w,U.update();else w.el=y.el,U.vnode=w},he=(y,w,T,U,G,W,se)=>{const te=()=>{if(y.isMounted){let{next:le,bu:pe,u:ye,parent:Ie,vnode:De}=y;{const Lt=ed(y);if(Lt){le&&(le.el=De.el,ae(y,le,se)),Lt.asyncDep.then(()=>{_t(()=>{y.isUnmounted||X()},G)});return}}let Ne=le,Ze;Fn(y,!1),le?(le.el=De.el,ae(y,le,se)):le=De,pe&&Ui(pe),(Ze=le.props&&le.props.onVnodeBeforeUpdate)&&tn(Ze,Ie,le,De),Fn(y,!0);const at=ol(y),Nt=y.subTree;y.subTree=at,m(Nt,at,u(Nt.el),S(Nt),y,G,W),le.el=at.el,Ne===null&&dr(y,at.el),ye&&_t(ye,G),(Ze=le.props&&le.props.onVnodeUpdated)&&_t(()=>tn(Ze,Ie,le,De),G)}else{let le;const{el:pe,props:ye}=w,{bm:Ie,m:De,parent:Ne,root:Ze,type:at}=y,Nt=Zs(w);Fn(y,!1),Ie&&Ui(Ie),!Nt&&(le=ye&&ye.onVnodeBeforeMount)&&tn(le,Ne,w),Fn(y,!0);{Ze.ce&&Ze.ce._hasShadowRoot()&&Ze.ce._injectChildStyle(at,y.parent?y.parent.type:void 0);const Lt=y.subTree=ol(y);m(null,Lt,T,U,y,G,W),w.el=Lt.el}if(De&&_t(De,G),!Nt&&(le=ye&&ye.onVnodeMounted)){const Lt=w;_t(()=>tn(le,Ne,Lt),G)}(w.shapeFlag&256||Ne&&Zs(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&y.a&&_t(y.a,G),y.isMounted=!0,w=T=U=null}};y.scope.on();const ee=y.effect=new su(te);y.scope.off();const X=y.update=ee.run.bind(ee),_e=y.job=ee.runIfDirty.bind(ee);_e.i=y,_e.id=y.uid,ee.scheduler=()=>rr(_e),Fn(y,!0),X()},ae=(y,w,T)=>{w.component=y;const U=y.vnode.props;y.vnode=w,y.next=null,Sp(y,w.props,U,T),kp(y,w.children,T),bn(),Kr(y),wn()},de=(y,w,T,U,G,W,se,te,ee=!1)=>{const X=y&&y.children,_e=y?y.shapeFlag:0,le=w.children,{patchFlag:pe,shapeFlag:ye}=w;if(pe>0){if(pe&128){we(X,le,T,U,G,W,se,te,ee);return}else if(pe&256){xe(X,le,T,U,G,W,se,te,ee);return}}ye&8?(_e&16&&ce(X,G,W),le!==X&&l(T,le)):_e&16?ye&16?we(X,le,T,U,G,W,se,te,ee):ce(X,G,W,!0):(_e&8&&l(T,""),ye&16&&K(le,T,U,G,W,se,te,ee))},xe=(y,w,T,U,G,W,se,te,ee)=>{y=y||hs,w=w||hs;const X=y.length,_e=w.length,le=Math.min(X,_e);let pe;for(pe=0;pe<le;pe++){const ye=w[pe]=ee?pn(w[pe]):Gt(w[pe]);m(y[pe],ye,T,null,G,W,se,te,ee)}X>_e?ce(y,G,W,!0,!1,le):K(w,T,U,G,W,se,te,ee,le)},we=(y,w,T,U,G,W,se,te,ee)=>{let X=0;const _e=w.length;let le=y.length-1,pe=_e-1;for(;X<=le&&X<=pe;){const ye=y[X],Ie=w[X]=ee?pn(w[X]):Gt(w[X]);if(an(ye,Ie))m(ye,Ie,T,null,G,W,se,te,ee);else break;X++}for(;X<=le&&X<=pe;){const ye=y[le],Ie=w[pe]=ee?pn(w[pe]):Gt(w[pe]);if(an(ye,Ie))m(ye,Ie,T,null,G,W,se,te,ee);else break;le--,pe--}if(X>le){if(X<=pe){const ye=pe+1,Ie=ye<_e?w[ye].el:U;for(;X<=pe;)m(null,w[X]=ee?pn(w[X]):Gt(w[X]),T,Ie,G,W,se,te,ee),X++}}else if(X>pe)for(;X<=le;)ne(y[X],G,W,!0),X++;else{const ye=X,Ie=X,De=new Map;for(X=Ie;X<=pe;X++){const bt=w[X]=ee?pn(w[X]):Gt(w[X]);bt.key!=null&&De.set(bt.key,X)}let Ne,Ze=0;const at=pe-Ie+1;let Nt=!1,Lt=0;const Ln=new Array(at);for(X=0;X<at;X++)Ln[X]=0;for(X=ye;X<=le;X++){const bt=y[X];if(Ze>=at){ne(bt,G,W,!0);continue}let Mt;if(bt.key!=null)Mt=De.get(bt.key);else for(Ne=Ie;Ne<=pe;Ne++)if(Ln[Ne-Ie]===0&&an(bt,w[Ne])){Mt=Ne;break}Mt===void 0?ne(bt,G,W,!0):(Ln[Mt-Ie]=X+1,Mt>=Lt?Lt=Mt:Nt=!0,m(bt,w[Mt],T,null,G,W,se,te,ee),Ze++)}const $o=Nt?Ip(Ln):hs;for(Ne=$o.length-1,X=at-1;X>=0;X--){const bt=Ie+X,Mt=w[bt],$=w[bt+1],J=bt+1<_e?$.el||td($):U;Ln[X]===0?m(null,Mt,T,J,G,W,se,te,ee):Nt&&(Ne<0||X!==$o[Ne]?oe(Mt,T,J,2):Ne--)}}},oe=(y,w,T,U,G=null)=>{const{el:W,type:se,transition:te,children:ee,shapeFlag:X}=y;if(X&6){oe(y.component.subTree,w,T,U);return}if(X&128){y.suspense.move(w,T,U);return}if(X&64){se.move(y,w,T,N);return}if(se===Se){s(W,w,T);for(let le=0;le<ee.length;le++)oe(ee[le],w,T,U);s(y.anchor,w,T);return}if(se===Jo){R(y,w,T);return}if(U!==2&&X&1&&te)if(U===0)te.persisted&&!W[qt]?s(W,w,T):(te.beforeEnter(W),s(W,w,T),_t(()=>te.enter(W),G));else{const{leave:le,delayLeave:pe,afterLeave:ye}=te,Ie=()=>{y.ctx.isUnmounted?o(W):s(W,w,T)},De=()=>{const Ne=W._isLeaving||!!W[qt];W._isLeaving&&W[qt](!0),te.persisted&&!Ne?Ie():le(W,()=>{Ie(),ye&&ye()})};pe?pe(W,Ie,De):De()}else s(W,w,T)},ne=(y,w,T,U=!1,G=!1)=>{const{type:W,props:se,ref:te,children:ee,dynamicChildren:X,shapeFlag:_e,patchFlag:le,dirs:pe,cacheIndex:ye,memo:Ie}=y;if(le===-2&&(G=!1),te!=null&&(bn(),Qs(te,null,T,y,!0),wn()),ye!=null&&(w.renderCache[ye]=void 0),_e&256){w.ctx.deactivate(y);return}const De=_e&1&&pe,Ne=!Zs(y);let Ze;if(Ne&&(Ze=se&&se.onVnodeBeforeUnmount)&&tn(Ze,w,y),_e&6)Y(y.component,T,U);else{if(_e&128){y.suspense.unmount(T,U);return}De&&Mn(y,null,w,"beforeUnmount"),_e&64?y.type.remove(y,w,T,N,U):X&&!X.hasOnce&&(W!==Se||le>0&&le&64)?ce(X,w,T,!1,!0):(W===Se&&le&384||!G&&_e&16)&&ce(ee,w,T),U&&ie(y)}const at=Ie!=null&&ye==null;(Ne&&(Ze=se&&se.onVnodeUnmounted)||De||at)&&_t(()=>{Ze&&tn(Ze,w,y),De&&Mn(y,null,w,"unmounted"),at&&(y.el=null)},T)},ie=y=>{const{type:w,el:T,anchor:U,transition:G}=y;if(w===Se){Re(T,U);return}if(w===Jo){x(y);return}const W=()=>{o(T),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(y.shapeFlag&1&&G&&!G.persisted){const{leave:se,delayLeave:te}=G,ee=()=>se(T,W);te?te(y.el,W,ee):ee()}else W()},Re=(y,w)=>{let T;for(;y!==w;)T=f(y),o(y),y=T;o(w)},Y=(y,w,T)=>{const{bum:U,scope:G,job:W,subTree:se,um:te,m:ee,a:X}=y;rl(ee),rl(X),U&&Ui(U),G.stop(),W&&(W.flags|=8,ne(se,y,w,T)),te&&_t(te,w),_t(()=>{y.isUnmounted=!0},w)},ce=(y,w,T,U=!1,G=!1,W=0)=>{for(let se=W;se<y.length;se++)ne(y[se],w,T,U,G)},S=y=>{if(y.shapeFlag&6)return S(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const w=f(y.anchor||y.el),T=w&&w[Ru];return T?f(T):w};let M=!1;const z=(y,w,T)=>{let U;y==null?w._vnode&&(ne(w._vnode,null,null,!0),U=w._vnode.component):m(w._vnode||null,y,w,null,null,null,T),w._vnode=y,M||(M=!0,Kr(U),Cu(),M=!1)},N={p:m,um:ne,m:oe,r:ie,mt:Z,mc:K,pc:de,pbc:j,n:S,o:e};return{render:z,hydrate:void 0,createApp:hp(z)}}function Xi({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 Fn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Rp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function pr(e,t,n=!1){const s=e.children,o=t.children;if(ve(s)&&ve(o))for(let i=0;i<s.length;i++){const a=s[i];let r=o[i];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=o[i]=pn(o[i]),r.el=a.el),!n&&r.patchFlag!==-2&&pr(a,r)),r.type===ki&&(r.patchFlag===-1&&(r=o[i]=pn(r)),r.el=a.el),r.type===ft&&!r.el&&(r.el=a.el)}}function Ip(e){const t=e.slice(),n=[0];let s,o,i,a,r;const c=e.length;for(s=0;s<c;s++){const d=e[s];if(d!==0){if(o=n[n.length-1],e[o]<d){t[s]=o,n.push(s);continue}for(i=0,a=n.length-1;i<a;)r=i+a>>1,e[n[r]]<d?i=r+1:a=r;d<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function ed(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ed(t)}function rl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function td(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?td(t.subTree):null}const nd=e=>e.__isSuspense;let Aa=0;const $p={name:"Suspense",__isSuspense:!0,process(e,t,n,s,o,i,a,r,c,d){if(e==null)Pp(t,n,s,o,i,a,r,c,d);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Dp(e,t,n,s,o,a,r,c,d)}},hydrate:Bp,normalize:Np},Op=$p;function uo(e,t){const n=e.props&&e.props[t];Ee(n)&&n()}function Pp(e,t,n,s,o,i,a,r,c){const{p:d,o:{createElement:l}}=c,u=l("div"),f=e.suspense=sd(e,o,s,t,u,n,i,a,r,c);d(null,f.pendingBranch=e.ssContent,u,null,s,f,i,a),f.deps>0?(uo(e,"onPending"),uo(e,"onFallback"),d(null,e.ssFallback,t,n,s,null,i,a),gs(f,e.ssFallback)):f.resolve(!1,!0)}function Dp(e,t,n,s,o,i,a,r,{p:c,um:d,o:{createElement:l}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:_,pendingBranch:m,isInFallback:p,isHydrating:v}=u;if(m)u.pendingBranch=f,an(m,f)?(c(m,f,u.hiddenContainer,null,o,u,i,a,r),u.deps<=0?u.resolve():p&&(v||(c(_,h,n,s,o,null,i,a,r),gs(u,h)))):(u.pendingId=Aa++,v?(u.isHydrating=!1,u.activeBranch=m):d(m,o,u),u.deps=0,u.effects.length=0,u.hiddenContainer=l("div"),p?(c(null,f,u.hiddenContainer,null,o,u,i,a,r),u.deps<=0?u.resolve():(c(_,h,n,s,o,null,i,a,r),gs(u,h))):_&&an(_,f)?(c(_,f,n,s,o,u,i,a,r),u.resolve(!0)):(c(null,f,u.hiddenContainer,null,o,u,i,a,r),u.deps<=0&&u.resolve()));else if(_&&an(_,f))c(_,f,n,s,o,u,i,a,r),gs(u,f);else if(uo(t,"onPending"),u.pendingBranch=f,f.shapeFlag&512?u.pendingId=f.component.suspenseId:u.pendingId=Aa++,c(null,f,u.hiddenContainer,null,o,u,i,a,r),u.deps<=0)u.resolve();else{const{timeout:E,pendingId:R}=u;E>0?setTimeout(()=>{u.pendingId===R&&u.fallback(h)},E):E===0&&u.fallback(h)}}function sd(e,t,n,s,o,i,a,r,c,d,l=!1){const{p:u,m:f,um:h,n:_,o:{parentNode:m,remove:p}}=d;let v;const E=Mp(e);E&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const R=e.props?Xc(e.props.timeout):void 0,x=i,b={vnode:e,parent:t,parentComponent:n,namespace:a,container:s,hiddenContainer:o,deps:0,pendingId:Aa++,timeout:typeof R=="number"?R:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!l,isHydrating:l,isUnmounted:!1,effects:[],resolve(I=!1,P=!1){const{vnode:K,activeBranch:L,pendingBranch:j,pendingId:B,effects:O,parentComponent:Q,container:Z,isInFallback:Ce}=b;let he=!1;if(b.isHydrating)b.isHydrating=!1;else if(!I){he=L&&j.transition&&j.transition.mode==="out-in";let xe=!1;he&&(L.transition.afterLeave=()=>{B===b.pendingId&&(f(j,Z,i===x&&!xe?_(L):i,0),ba(O),Ce&&K.ssFallback&&(K.ssFallback.el=null))}),L&&!b.isFallbackMountPending&&(m(L.el)===Z&&(i=_(L),xe=!0),h(L,Q,b,!0),!he&&Ce&&K.ssFallback&&_t(()=>K.ssFallback.el=null,b)),he||f(j,Z,i,0)}b.isFallbackMountPending=!1,gs(b,j),b.pendingBranch=null,b.isInFallback=!1;let ae=b.parent,de=!1;for(;ae;){if(ae.pendingBranch){ae.effects.push(...O),de=!0;break}ae=ae.parent}!de&&!he&&ba(O),b.effects=[],E&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),uo(K,"onResolve")},fallback(I){if(!b.pendingBranch)return;const{vnode:P,activeBranch:K,parentComponent:L,container:j,namespace:B}=b;uo(P,"onFallback");const O=_(K),Q=()=>{b.isFallbackMountPending=!1,b.isInFallback&&(u(null,I,j,O,L,null,B,r,c),gs(b,I))},Z=I.transition&&I.transition.mode==="out-in";Z&&(b.isFallbackMountPending=!0,K.transition.afterLeave=Q),b.isInFallback=!0,h(K,L,null,!0),Z||Q()},move(I,P,K){b.activeBranch&&f(b.activeBranch,I,P,K),b.container=I},next(){return b.activeBranch&&_(b.activeBranch)},registerDep(I,P,K){const L=!!b.pendingBranch;L&&b.deps++;const j=I.vnode.el;I.asyncDep.catch(B=>{yo(B,I,0)}).then(B=>{if(I.isUnmounted||b.isUnmounted||b.pendingId!==I.suspenseId)return;Ia(),I.asyncResolved=!0;const{vnode:O}=I;$a(I,B),j&&(O.el=j);const Q=!j&&I.subTree.el;P(I,O,m(j||I.subTree.el),j?null:_(I.subTree),b,a,K),Q&&(O.placeholder=null,p(Q)),dr(I,O.el),L&&--b.deps===0&&b.resolve()})},unmount(I,P){b.isUnmounted=!0,b.activeBranch&&h(b.activeBranch,n,I,P),b.pendingBranch&&h(b.pendingBranch,n,I,P)}};return b}function Bp(e,t,n,s,o,i,a,r,c){const d=t.suspense=sd(t,s,n,e.parentNode,document.createElement("div"),null,o,i,a,r,!0),l=c(e,d.pendingBranch=t.ssContent,n,d,i,a);return d.deps===0&&d.resolve(!1,!0),l}function Np(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=ll(s?n.default:n),e.ssFallback=s?ll(n.fallback):C(ft)}function ll(e){let t;if(Ee(e)){const n=ys&&e._c;n&&(e._d=!1,k()),e=e(),n&&(e._d=!0,t=At,od())}return ve(e)&&(e=gp(e)),e=Gt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Lp(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):ba(e)}function gs(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,dr(s,o))}function Mp(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Se=Symbol.for("v-fgt"),ki=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),Jo=Symbol.for("v-stc"),to=[];let At=null;function k(e=!1){to.push(At=e?null:[])}function od(){to.pop(),At=to[to.length-1]||null}let ys=1;function li(e,t=!1){ys+=e,e<0&&At&&t&&(At.hasOnce=!0)}function id(e){return e.dynamicChildren=ys>0?At||hs:null,od(),ys>0&&At&&At.push(e),e}function A(e,t,n,s,o,i){return id(g(e,t,n,s,o,i,!0))}function Rt(e,t,n,s,o){return id(C(e,t,n,s,o,!0))}function bs(e){return e?e.__v_isVNode===!0:!1}function an(e,t){return e.type===t.type&&e.key===t.key}const ad=({key:e})=>e??null,Xo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ze(e)||Ye(e)||Ee(e)?{i:Pt,r:e,k:t,f:!!n}:e:null);function g(e,t=null,n=null,s=0,o=null,i=e===Se?0:1,a=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ad(t),ref:t&&Xo(t),scopeId:ku,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:Pt};return r?(mr(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ze(n)?8:16),ys>0&&!a&&At&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&At.push(c),c}const C=Fp;function Fp(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===Vu)&&(e=ft),bs(e)){const r=Bn(e,t,!0);return n&&mr(r,n),ys>0&&!i&&At&&(r.shapeFlag&6?At[At.indexOf(e)]=r:At.push(r)),r.patchFlag=-2,r}if(Xp(e)&&(e=e.__vccOpts),t){t=Vp(t);let{class:r,style:c}=t;r&&!ze(r)&&(t.class=ge(r)),Fe(c)&&(Si(c)&&!ve(c)&&(c=ct({},c)),t.style=Xt(c))}const a=ze(e)?1:nd(e)?128:Iu(e)?64:Fe(e)?4:Ee(e)?2:0;return g(e,t,n,s,o,a,i,!0)}function Vp(e){return e?Si(e)||Gu(e)?ct({},e):e:null}function Bn(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:a,children:r,transition:c}=e,d=t?Tt(o||{},t):o,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&ad(d),ref:t&&t.ref?n&&i?ve(i)?i.concat(Xo(t)):[i,Xo(t)]:Xo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bn(e.ssContent),ssFallback:e.ssFallback&&Bn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&co(l,c.clone(l)),l}function je(e=" ",t=0){return C(ki,null,e,t)}function jp(e,t){const n=C(Jo,null,e);return n.staticCount=t,n}function re(e="",t=!1){return t?(k(),Rt(ft,null,e)):C(ft,null,e)}function Gt(e){return e==null||typeof e=="boolean"?C(ft):ve(e)?C(Se,null,e.slice()):bs(e)?pn(e):C(ki,null,String(e))}function pn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bn(e)}function mr(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),mr(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Gu(t)?t._ctx=Pt:o===3&&Pt&&(Pt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ee(t)?(t={default:t,_ctx:Pt},n=32):(t=String(t),s&64?(n=16,t=[je(t)]):n=8);e.children=t,e.shapeFlag|=n}function Tt(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=ge([t.class,s.class]));else if(o==="style")t.style=Xt([t.style,s.style]);else if(hi(o)){const i=t[o],a=s[o];a&&i!==a&&!(ve(i)&&i.includes(a))?t[o]=i?[].concat(i,a):a:a==null&&i==null&&!pi(o)&&(t[o]=a)}else o!==""&&(t[o]=s[o])}return t}function tn(e,t,n,s=null){Ht(e,t,7,[n,s])}const qp=Uu();let Up=0;function zp(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||qp,i={uid:Up++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new eu(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Xu(s,o),emitsOptions:zu(s,o),emit:null,emitted:null,propsDefaults:Ue,inheritAttrs:s.inheritAttrs,ctx:Ue,data:Ue,props:Ue,attrs:Ue,slots:Ue,refs:Ue,setupState:Ue,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=mp.bind(null,i),e.ce&&e.ce(i),i}let vt=null;const Wt=()=>vt||Pt;let ci,Ra;{const e=vi(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};ci=t("__VUE_INSTANCE_SETTERS__",n=>vt=n),Ra=t("__VUE_SSR_SETTERS__",n=>fo=n)}const bo=e=>{const t=vt;return ci(e),e.scope.on(),()=>{e.scope.off(),ci(t)}},Ia=()=>{vt&&vt.scope.off(),ci(null)};function rd(e){return e.vnode.shapeFlag&4}let fo=!1;function Hp(e,t=!1,n=!1){t&&Ra(t);const{props:s,children:o}=e.vnode,i=rd(e);wp(e,s,i,t),xp(e,o,n||t);const a=i?Wp(e,t):void 0;return t&&Ra(!1),a}function Wp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ap);const{setup:s}=n;if(s){bn();const o=e.setupContext=s.length>1?Gp(e):null,i=bo(e),a=vo(s,e,0,[e.props,o]),r=Wc(a);if(wn(),i(),(r||e.sp)&&!Zs(e)&&Lu(e),r){if(a.then(Ia,Ia),t)return a.then(c=>{$a(e,c)}).catch(c=>{yo(c,e,0)});e.asyncDep=a}else $a(e,a)}else ld(e)}function $a(e,t,n){Ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fe(t)&&(e.setupState=wu(t)),ld(e)}function ld(e,t,n){const s=e.type;e.render||(e.render=s.render||ln);{const o=bo(e);bn();try{rp(e)}finally{wn(),o()}}}const Kp={get(e,t){return gt(e,"get",""),e[t]}};function Gp(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Kp),slots:e.slots,emit:e.emit,expose:t}}function Ti(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(wu(ar(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in eo)return eo[n](e)},has(t,n){return n in t||n in eo}})):e.proxy}function Jp(e,t=!0){return Ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Xp(e){return Ee(e)&&"__vccOpts"in e}const V=(e,t)=>Bh(e,t,fo);function _r(e,t,n){try{li(-1);const s=arguments.length;return s===2?Fe(t)&&!ve(t)?bs(t)?C(e,null,[t]):C(e,t):C(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&bs(n)&&(n=[n]),C(e,t,n))}finally{li(1)}}const Yp="3.5.35";/**
* @vue/runtime-dom v3.5.35
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Oa;const cl=typeof window<"u"&&window.trustedTypes;if(cl)try{Oa=cl.createPolicy("vue",{createHTML:e=>e})}catch{}const cd=Oa?e=>Oa.createHTML(e):e=>e,Qp="http://www.w3.org/2000/svg",Zp="http://www.w3.org/1998/Math/MathML",hn=typeof document<"u"?document:null,ul=hn&&hn.createElement("template"),em={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"?hn.createElementNS(Qp,e):t==="mathml"?hn.createElementNS(Zp,e):n?hn.createElement(e,{is:n}):hn.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>hn.createTextNode(e),createComment:e=>hn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>hn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{ul.innerHTML=cd(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const r=ul.content;if(s==="svg"||s==="mathml"){const c=r.firstChild;for(;c.firstChild;)r.appendChild(c.firstChild);r.removeChild(c)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Tn="transition",Bs="animation",ho=Symbol("_vtc"),ud={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},tm=ct({},Ou,ud),nm=e=>(e.displayName="Transition",e.props=tm,e),ui=nm((e,{slots:t})=>_r(Jh,sm(e),t)),Vn=(e,t=[])=>{ve(e)?e.forEach(n=>n(...t)):e&&e(...t)},dl=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function sm(e){const t={};for(const O in e)O in ud||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:r=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:d=a,appearToClass:l=r,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,_=om(o),m=_&&_[0],p=_&&_[1],{onBeforeEnter:v,onEnter:E,onEnterCancelled:R,onLeave:x,onLeaveCancelled:b,onBeforeAppear:I=v,onAppear:P=E,onAppearCancelled:K=R}=t,L=(O,Q,Z,Ce)=>{O._enterCancelled=Ce,jn(O,Q?l:r),jn(O,Q?d:a),Z&&Z()},j=(O,Q)=>{O._isLeaving=!1,jn(O,u),jn(O,h),jn(O,f),Q&&Q()},B=O=>(Q,Z)=>{const Ce=O?P:E,he=()=>L(Q,O,Z);Vn(Ce,[Q,he]),fl(()=>{jn(Q,O?c:i),dn(Q,O?l:r),dl(Ce)||hl(Q,s,m,he)})};return ct(t,{onBeforeEnter(O){Vn(v,[O]),dn(O,i),dn(O,a)},onBeforeAppear(O){Vn(I,[O]),dn(O,c),dn(O,d)},onEnter:B(!1),onAppear:B(!0),onLeave(O,Q){O._isLeaving=!0;const Z=()=>j(O,Q);dn(O,u),O._enterCancelled?(dn(O,f),_l(O)):(_l(O),dn(O,f)),fl(()=>{O._isLeaving&&(jn(O,u),dn(O,h),dl(x)||hl(O,s,p,Z))}),Vn(x,[O,Z])},onEnterCancelled(O){L(O,!1,void 0,!0),Vn(R,[O])},onAppearCancelled(O){L(O,!0,void 0,!0),Vn(K,[O])},onLeaveCancelled(O){j(O),Vn(b,[O])}})}function om(e){if(e==null)return null;if(Fe(e))return[Yi(e.enter),Yi(e.leave)];{const t=Yi(e);return[t,t]}}function Yi(e){return Xc(e)}function dn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ho]||(e[ho]=new Set)).add(t)}function jn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[ho];n&&(n.delete(t),n.size||(e[ho]=void 0))}function fl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let im=0;function hl(e,t,n,s){const o=e._endId=++im,i=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:a,timeout:r,propCount:c}=am(e,t);if(!a)return s();const d=a+"end";let l=0;const u=()=>{e.removeEventListener(d,f),i()},f=h=>{h.target===e&&++l>=c&&u()};setTimeout(()=>{l<c&&u()},r+1),e.addEventListener(d,f)}function am(e,t){const n=window.getComputedStyle(e),s=_=>(n[_]||"").split(", "),o=s(`${Tn}Delay`),i=s(`${Tn}Duration`),a=pl(o,i),r=s(`${Bs}Delay`),c=s(`${Bs}Duration`),d=pl(r,c);let l=null,u=0,f=0;t===Tn?a>0&&(l=Tn,u=a,f=i.length):t===Bs?d>0&&(l=Bs,u=d,f=c.length):(u=Math.max(a,d),l=u>0?a>d?Tn:Bs:null,f=l?l===Tn?i.length:c.length:0);const h=l===Tn&&/\b(?:transform|all)(?:,|$)/.test(s(`${Tn}Property`).toString());return{type:l,timeout:u,propCount:f,hasTransform:h}}function pl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>ml(n)+ml(e[s])))}function ml(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function _l(e){return(e?e.ownerDocument:document).body.offsetHeight}function rm(e,t,n){const s=e[ho];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const di=Symbol("_vod"),dd=Symbol("_vsh"),Yn={name:"show",beforeMount(e,{value:t},{transition:n}){e[di]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ns(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),Ns(e,!0),s.enter(e)):s.leave(e,()=>{Ns(e,!1)}):Ns(e,t))},beforeUnmount(e,{value:t}){Ns(e,t)}};function Ns(e,t){e.style.display=t?e[di]:"none",e[dd]=!t}const lm=Symbol(""),cm=/(?:^|;)\s*display\s*:/;function um(e,t,n){const s=e.style,o=ze(n);let i=!1;if(n&&!o){if(t)if(ze(t))for(const a of t.split(";")){const r=a.slice(0,a.indexOf(":")).trim();n[r]==null&&Gs(s,r,"")}else for(const a in t)n[a]==null&&Gs(s,a,"");for(const a in n){a==="display"&&(i=!0);const r=n[a];r!=null?fm(e,a,!ze(t)&&t?t[a]:void 0,r)||Gs(s,a,r):Gs(s,a,"")}}else if(o){if(t!==n){const a=s[lm];a&&(n+=";"+a),s.cssText=n,i=cm.test(n)}}else t&&e.removeAttribute("style");di in e&&(e[di]=i?s.display:"",e[dd]&&(s.display="none"))}const gl=/\s*!important$/;function Gs(e,t,n){if(ve(n))n.forEach(s=>Gs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=dm(e,t);gl.test(n)?e.setProperty(Cn(s),n.replace(gl,""),"important"):e[s]=n}}const vl=["Webkit","Moz","ms"],Qi={};function dm(e,t){const n=Qi[t];if(n)return n;let s=xt(t);if(s!=="filter"&&s in e)return Qi[t]=s;s=gi(s);for(let o=0;o<vl.length;o++){const i=vl[o]+s;if(i in e)return Qi[t]=i}return t}function fm(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ze(s)&&n===s}const yl="http://www.w3.org/1999/xlink";function bl(e,t,n,s,o,i=ch(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(yl,t.slice(6,t.length)):e.setAttributeNS(yl,t,n):n==null||i&&!Yc(n)?e.removeAttribute(t):e.setAttribute(t,i?"":zt(n)?String(n):n)}function wl(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?cd(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const r=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(r!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const r=typeof e[t];r==="boolean"?n=Yc(n):n==null&&r==="string"?(n="",a=!0):r==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(o||t)}function hm(e,t,n,s){e.addEventListener(t,n,s)}function pm(e,t,n,s){e.removeEventListener(t,n,s)}const Sl=Symbol("_vei");function mm(e,t,n,s,o=null){const i=e[Sl]||(e[Sl]={}),a=i[t];if(s&&a)a.value=s;else{const[r,c]=_m(t);if(s){const d=i[t]=ym(s,o);hm(e,r,d,c)}else a&&(pm(e,r,a,c),i[t]=void 0)}}const El=/(?:Once|Passive|Capture)$/;function _m(e){let t;if(El.test(e)){t={};let s;for(;s=e.match(El);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Cn(e.slice(2)),t]}let Zi=0;const gm=Promise.resolve(),vm=()=>Zi||(gm.then(()=>Zi=0),Zi=Date.now());function ym(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 a=o.slice(),r=[s];for(let c=0;c<a.length&&!s._stopped;c++){const d=a[c];d&&Ht(d,t,5,r)}}else Ht(o,t,5,[s])};return n.value=e,n.attached=vm(),n}const Cl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bm=(e,t,n,s,o,i)=>{const a=o==="svg";t==="class"?rm(e,s,a):t==="style"?um(e,n,s):hi(t)?pi(t)||mm(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wm(e,t,s,a))?(wl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&bl(e,t,s,a,i,t!=="value")):e._isVueCE&&(Sm(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ze(s)))?wl(e,xt(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),bl(e,t,s,a))};function wm(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Cl(t)&&Ee(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 Cl(t)&&ze(n)?!1:t in e}function Sm(e,t){const n=e._def.props;if(!n)return!1;const s=xt(t);return Array.isArray(n)?n.some(o=>xt(o)===s):Object.keys(n).some(o=>xt(o)===s)}const Em=["ctrl","shift","alt","meta"],Cm={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)=>Em.some(n=>e[`${n}Key`]&&!t.includes(n))},gn=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...i)=>{for(let a=0;a<t.length;a++){const r=Cm[t[a]];if(r&&r(o,t))return}return e(o,...i)})},xm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},fd=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const i=Cn(o.key);if(t.some(a=>a===i||xm[a]===i))return e(o)})},km=ct({patchProp:bm},em);let xl;function Tm(){return xl||(xl=Tp(km))}const hd=(...e)=>{const t=Tm().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Rm(s);if(!o)return;const i=t._component;!Ee(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,Am(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function Am(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Rm(e){return ze(e)?document.querySelector(e):e}function Pa(){}const Ke=Object.assign,As=typeof window<"u",wo=e=>e!==null&&typeof e=="object",ot=e=>e!=null,po=e=>typeof e=="function",pd=e=>wo(e)&&po(e.then)&&po(e.catch),md=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),Im=()=>As?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function kl(e,t){const n=t.split(".");let s=e;return n.forEach(o=>{var i;s=wo(s)&&(i=s[o])!=null?i:""}),s}function En(e,t,n){return t.reduce((s,o)=>(s[o]=e[o],s),{})}const Tl=e=>Array.isArray(e)?e:[e],Ut=null,Oe=[Number,String],qe={type:Boolean,default:!0},Yo=e=>({type:e,required:!0}),_d=e=>({type:Number,default:e}),Jt=e=>({type:Oe,default:e}),Be=e=>({type:String,default:e});var Rs=typeof window<"u";function ws(e){return Rs?requestAnimationFrame(e):-1}function gd(e){Rs&&cancelAnimationFrame(e)}function ds(e){ws(()=>ws(e))}var $m=e=>e===window,Al=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),rn=e=>{const t=Ae(e);if($m(t)){const n=t.innerWidth,s=t.innerHeight;return Al(n,s)}return t!=null&&t.getBoundingClientRect?t.getBoundingClientRect():Al(0,0)};function Is(e){const t=ht(e,null);if(t){const n=Wt(),{link:s,unlink:o,internalChildren:i}=t;s(n),Nn(()=>o(n));const a=V(()=>i.indexOf(n));return{parent:t,index:a}}return{parent:null,index:q(-1)}}function Om(e){const t=[],n=s=>{Array.isArray(s)&&s.forEach(o=>{var i;bs(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 Rl=(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 Pm(e,t,n){const s=Om(e.subTree.children);n.sort((i,a)=>Rl(s,i.vnode)-Rl(s,a.vnode));const o=n.map(i=>i.proxy);t.sort((i,a)=>{const r=o.indexOf(i),c=o.indexOf(a);return r-c})}function Ai(e){const t=pt([]),n=pt([]),s=Wt();return{children:t,linkChildren:i=>{cn(e,Object.assign({link:c=>{c.proxy&&(n.push(c),t.push(c.proxy),Pm(s,t,n))},unlink:c=>{const d=n.indexOf(c);t.splice(d,1),n.splice(d,1)},children:t,internalChildren:n},i))}}}function Ri(e){let t;st(()=>{e(),Xe(()=>{t=!0})}),ks(()=>{t&&e()})}function ts(e,t,n={}){if(!Rs)return;const{target:s=window,passive:o=!1,capture:i=!1}=n;let a=!1,r;const c=u=>{if(a)return;const f=Ae(u);f&&!r&&(f.addEventListener(e,t,{capture:i,passive:o}),r=!0)},d=u=>{if(a)return;const f=Ae(u);f&&r&&(f.removeEventListener(e,t,i),r=!1)};Nn(()=>d(s)),es(()=>d(s)),Ri(()=>c(s));let l;return Ye(s)&&(l=ke(s,(u,f)=>{d(f),c(u)})),()=>{l==null||l(),d(s),a=!0}}var Mo,ea;function Dm(){if(!Mo&&(Mo=q(0),ea=q(0),Rs)){const e=()=>{Mo.value=window.innerWidth,ea.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Mo,height:ea}}var Bm=/scroll|auto|overlay/i,vd=Rs?window:void 0;function Nm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function yd(e,t=vd){let n=e;for(;n&&n!==t&&Nm(n);){const{overflowY:s}=window.getComputedStyle(n);if(Bm.test(s))return n;n=n.parentNode}return t}function bd(e,t=vd){const n=q();return st(()=>{e.value&&(n.value=yd(e.value,t))}),n}var Fo;function Lm(){if(!Fo&&(Fo=q("visible"),Rs)){const e=()=>{Fo.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return Fo}var wd=Symbol("van-field");function Sd(e){const t=ht(wd,null);t&&!t.customValue.value&&(t.customValue.value=e,ke(e,()=>{t.resetValidation(),t.validateWithTrigger("onChange")}))}function gr(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function Da(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function vr(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function yr(e){Da(window,e),Da(document.body,e)}function Il(e,t){if(e===window)return 0;const n=t?gr(t):vr();return rn(e).top+n}const Mm=Im();function Fm(){Mm&&yr(vr())}const Vm=e=>e.stopPropagation();function yn(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Vm(e)}function mo(e){const t=Ae(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:So,height:Ii}=Dm();function it(e){if(ot(e))return md(e)?`${e}px`:String(e)}function Ed(e){if(ot(e)){if(Array.isArray(e))return{width:it(e[0]),height:it(e[1])};const t=it(e);return{width:t,height:t}}}function Cd(e){const t={};return e!==void 0&&(t.zIndex=+e),t}let ta;function jm(){if(!ta){const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;ta=parseFloat(t)}return ta}function qm(e){return e=e.replace(/rem/g,""),+e*jm()}function Um(e){return e=e.replace(/vw/g,""),+e*So.value/100}function zm(e){return e=e.replace(/vh/g,""),+e*Ii.value/100}function xd(e){if(typeof e=="number")return e;if(As){if(e.includes("rem"))return qm(e);if(e.includes("vw"))return Um(e);if(e.includes("vh"))return zm(e)}return parseFloat(e)}const Hm=/-(\w)/g,kd=e=>e.replace(Hm,(t,n)=>n.toUpperCase()),Wm=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),Qo=(e,t,n)=>Math.min(Math.max(e,t),n);function $l(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 Km(e,t=!0,n=!0){t?e=$l(e,".",/\./g):e=e.split(".")[0],n?e=$l(e,"-",/-/g):e=e.replace(/-/,"");const s=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(s,"")}const{hasOwnProperty:Gm}=Object.prototype;function Jm(e,t,n){const s=t[n];ot(s)&&(!Gm.call(e,n)||!wo(s)?e[n]=s:e[n]=Td(Object(e[n]),s))}function Td(e,t){return Object.keys(t).forEach(n=>{Jm(e,t,n)}),e}var Xm={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 Ol=q("zh-CN"),Pl=pt({"zh-CN":Xm}),Ym={messages(){return Pl[Ol.value]},use(e,t){Ol.value=e,this.add({[e]:t})},add(e={}){Td(Pl,e)}};var Qm=Ym;function Zm(e){const t=kd(e)+".";return(n,...s)=>{const o=Qm.messages(),i=kl(o,t+n)||kl(o,n);return po(i)?i(...s):i}}function Ba(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,s)=>n+Ba(e,s),""):Object.keys(t).reduce((n,s)=>n+(t[s]?Ba(e,s):""),""):""}function e_(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${Ba(t,n)}`)}function He(e){const t=`van-${e}`;return[t,e_(t),Zm(t)]}const Eo="van-hairline",t_=`${Eo}--top`,n_=`${Eo}--left`,KT=`${Eo}--bottom`,s_=`${Eo}--surround`,Ad=`${Eo}--top-bottom`,o_="van-haptics-feedback",i_=Symbol("van-form"),Dl=5;function br(e,{args:t=[],done:n,canceled:s,error:o}){if(e){const i=e.apply(null,t);pd(i)?i.then(a=>{a?n():s&&s()}).catch(o||Pa):i?n():s&&s()}else n()}function Ge(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(kd(`-${n}`),e))},e}const Rd=Symbol();function wr(e){const t=ht(Rd,null);t&&ke(t,n=>{n&&e()})}const a_=(e,t)=>{const n=q(),s=()=>{n.value=rn(e).height};return st(()=>{Xe(s);for(let o=1;o<=3;o++)setTimeout(s,100*o)}),wr(()=>Xe(s)),ke([So,Ii],s),n};function r_(e,t){const n=a_(e);return s=>C("div",{class:t("placeholder"),style:{height:n.value?`${n.value}px`:void 0}},[s()])}const[Id,Bl]=He("action-bar"),$d=Symbol(Id),l_={placeholder:Boolean,safeAreaInsetBottom:qe};var c_=be({name:Id,props:l_,setup(e,{slots:t}){const n=q(),s=r_(n,Bl),{linkChildren:o}=Ai($d);o();const i=()=>{var a;return C("div",{ref:n,class:[Bl(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[(a=t.default)==null?void 0:a.call(t)])};return()=>e.placeholder?s(i):i()}});const u_=Ge(c_);function Bt(e){const t=Wt();t&&Ke(t.proxy,e)}const $i={to:[String,Object],url:String,replace:Boolean};function Od({to:e,url:t,replace:n,$router:s}){e&&s?s[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function Sr(){const e=Wt().proxy;return()=>Od(e)}const[d_,Nl]=He("badge"),f_={dot:Boolean,max:Oe,tag:Be("div"),color:String,offset:Array,content:Oe,showZero:qe,position:Be("top-right")};var h_=be({name:d_,props:f_,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:r,showZero:c}=e;return ot(r)&&r!==""&&(c||r!==0&&r!=="0")},s=()=>{const{dot:r,max:c,content:d}=e;if(!r&&n())return t.content?t.content():ot(c)&&md(d)&&+d>+c?`${c}+`:d},o=r=>r.startsWith("-")?r.replace("-",""):`-${r}`,i=V(()=>{const r={background:e.color};if(e.offset){const[c,d]=e.offset,{position:l}=e,[u,f]=l.split("-");t.default?(typeof d=="number"?r[u]=it(u==="top"?d:-d):r[u]=u==="top"?it(d):o(d),typeof c=="number"?r[f]=it(f==="left"?c:-c):r[f]=f==="left"?it(c):o(c)):(r.marginTop=it(d),r.marginLeft=it(c))}return r}),a=()=>{if(n()||e.dot)return C("div",{class:Nl([e.position,{dot:e.dot,fixed:!!t.default}]),style:i.value},[s()])};return()=>{if(t.default){const{tag:r}=e;return C(r,{class:Nl("wrapper")},{default:()=>[t.default(),a()]})}return a()}}});const Pd=Ge(h_);let Dd=2e3;const p_=()=>++Dd,m_=e=>{Dd=e},[Bd,__]=He("config-provider"),Nd=Symbol(Bd),g_={tag:Be("div"),theme:Be("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:Be("local"),iconPrefix:String};function v_(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function y_(e){const t={};return Object.keys(e).forEach(n=>{const s=v_(Wm(n));t[`--van-${s}`]=e[n]}),t}function Vo(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 b_=be({name:Bd,props:g_,setup(e,{slots:t}){const n=V(()=>y_(Ke({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(As){const s=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},o=(i=e.theme)=>{document.documentElement.classList.remove(`van-theme-${i}`)};ke(()=>e.theme,(i,a)=>{a&&o(a),s()},{immediate:!0}),ks(s),es(o),Ts(o),ke(n,(i,a)=>{e.themeVarsScope==="global"&&Vo(i,a)}),ke(()=>e.themeVarsScope,(i,a)=>{a==="global"&&Vo({},n.value),i==="global"&&Vo(n.value,{})}),e.themeVarsScope==="global"&&Vo(n.value,{})}return cn(Nd,e),Tu(()=>{e.zIndex!==void 0&&m_(e.zIndex)}),()=>C(e.tag,{class:__(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var s;return[(s=t.default)==null?void 0:s.call(t)]}})}});const[w_,Ll]=He("icon"),S_=e=>e==null?void 0:e.includes("/"),E_={dot:Boolean,tag:Be("i"),name:String,size:Oe,badge:Oe,color:String,badgeProps:Object,classPrefix:String};var C_=be({name:w_,props:E_,setup(e,{slots:t}){const n=ht(Nd,null),s=V(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||Ll());return()=>{const{tag:o,dot:i,name:a,size:r,badge:c,color:d}=e,l=S_(a);return C(Pd,Tt({dot:i,tag:o,class:[s.value,l?"":`${s.value}-${a}`],style:{color:d,fontSize:it(r)},content:c},e.badgeProps),{default:()=>{var u;return[(u=t.default)==null?void 0:u.call(t),l&&C("img",{class:Ll("image"),src:a},null)]}})}}});const It=Ge(C_),[x_,no]=He("loading"),k_=Array(12).fill(null).map((e,t)=>C("i",{class:no("line",String(t+1))},null)),T_=C("svg",{class:no("circular"),viewBox:"25 25 50 50"},[C("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),A_={size:Oe,type:Be("circular"),color:String,vertical:Boolean,textSize:Oe,textColor:String};var R_=be({name:x_,props:A_,setup(e,{slots:t}){const n=V(()=>Ke({color:e.color},Ed(e.size))),s=()=>{const i=e.type==="spinner"?k_:T_;return C("span",{class:no("spinner",e.type),style:n.value},[t.icon?t.icon():i])},o=()=>{var i;if(t.default)return C("span",{class:no("text"),style:{fontSize:it(e.textSize),color:(i=e.textColor)!=null?i:e.color}},[t.default()])};return()=>{const{type:i,vertical:a}=e;return C("div",{class:no([i,{vertical:a}]),"aria-live":"polite","aria-busy":!0},[s(),o()])}}});const Co=Ge(R_),[I_,ss]=He("button"),$_=Ke({},$i,{tag:Be("button"),text:String,icon:String,type:Be("default"),size:Be("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:Be("button"),loadingSize:Oe,loadingText:String,loadingType:String,iconPosition:Be("left")});var O_=be({name:I_,props:$_,emits:["click"],setup(e,{emit:t,slots:n}){const s=Sr(),o=()=>n.loading?n.loading():C(Co,{size:e.loadingSize,type:e.loadingType,class:ss("loading")},null),i=()=>{if(e.loading)return o();if(n.icon)return C("div",{class:ss("icon")},[n.icon()]);if(e.icon)return C(It,{name:e.icon,class:ss("icon"),classPrefix:e.iconPrefix},null)},a=()=>{let d;if(e.loading?d=e.loadingText:d=n.default?n.default():e.text,d)return C("span",{class:ss("text")},[d])},r=()=>{const{color:d,plain:l}=e;if(d){const u={color:l?d:"white"};return l||(u.background=d),d.includes("gradient")?u.border=0:u.borderColor=d,u}},c=d=>{e.loading?yn(d):e.disabled||(t("click",d),s())};return()=>{const{tag:d,type:l,size:u,block:f,round:h,plain:_,square:m,loading:p,disabled:v,hairline:E,nativeType:R,iconPosition:x}=e,b=[ss([l,u,{plain:_,block:f,round:h,square:m,loading:p,disabled:v,hairline:E}]),{[s_]:E}];return C(d,{type:R,class:b,style:r(),disabled:v,onClick:c},{default:()=>[C("div",{class:ss("content")},[x==="left"&&i(),a(),x==="right"&&i()])]})}}});const Ss=Ge(O_),[P_,D_]=He("action-bar-button"),B_=Ke({},$i,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var N_=be({name:P_,props:B_,setup(e,{slots:t}){const n=Sr(),{parent:s,index:o}=Is($d),i=V(()=>{if(s){const r=s.children[o.value-1];return!(r&&"isButton"in r)}}),a=V(()=>{if(s){const r=s.children[o.value+1];return!(r&&"isButton"in r)}});return Bt({isButton:!0}),()=>{const{type:r,icon:c,text:d,color:l,loading:u,disabled:f}=e;return C(Ss,{class:D_([r,{last:a.value,first:i.value}]),size:"large",type:r,icon:c,color:l,loading:u,disabled:f,onClick:n},{default:()=>[t.default?t.default():d]})}}});const Ml=Ge(N_),Er={show:Boolean,zIndex:Oe,overlay:qe,duration:Oe,teleport:[String,Object],lockScroll:qe,lazyRender:qe,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:Ut,transitionAppear:Boolean,closeOnClickOverlay:qe},L_=Object.keys(Er);function M_(e,t){return e>t?"horizontal":t>e?"vertical":""}function Cr(){const e=q(0),t=q(0),n=q(0),s=q(0),o=q(0),i=q(0),a=q(""),r=q(!0),c=()=>a.value==="vertical",d=()=>a.value==="horizontal",l=()=>{n.value=0,s.value=0,o.value=0,i.value=0,a.value="",r.value=!0};return{move:h=>{const _=h.touches[0];n.value=(_.clientX<0?0:_.clientX)-e.value,s.value=_.clientY-t.value,o.value=Math.abs(n.value),i.value=Math.abs(s.value);const m=10;(!a.value||o.value<m&&i.value<m)&&(a.value=M_(o.value,i.value)),r.value&&(o.value>Dl||i.value>Dl)&&(r.value=!1)},start:h=>{l(),e.value=h.touches[0].clientX,t.value=h.touches[0].clientY},reset:l,startX:e,startY:t,deltaX:n,deltaY:s,offsetX:o,offsetY:i,direction:a,isVertical:c,isHorizontal:d,isTap:r}}let Ls=0;const Fl="van-overflow-hidden";function F_(e,t){const n=Cr(),s="01",o="10",i=l=>{n.move(l);const u=n.deltaY.value>0?o:s,f=yd(l.target,e.value),{scrollHeight:h,offsetHeight:_,scrollTop:m}=f;let p="11";m===0?p=_>=h?"00":"01":m+_>=h&&(p="10"),p!=="11"&&n.isVertical()&&!(parseInt(p,2)&parseInt(u,2))&&yn(l,!0)},a=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",i,{passive:!1}),Ls||document.body.classList.add(Fl),Ls++},r=()=>{Ls&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",i),Ls--,Ls||document.body.classList.remove(Fl))},c=()=>t()&&a(),d=()=>t()&&r();Ri(c),es(d),Ts(d),ke(t,l=>{l?a():r()})}function xr(e){const t=q(!1);return ke(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Vl=()=>{var e;const{scopeId:t}=((e=Wt())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[V_,j_]=He("overlay"),q_={show:Boolean,zIndex:Oe,duration:Oe,className:Ut,lockScroll:qe,lazyRender:qe,customStyle:Object,teleport:[String,Object]};var U_=be({name:V_,inheritAttrs:!1,props:q_,setup(e,{attrs:t,slots:n}){const s=q(),o=xr(()=>e.show||!e.lazyRender),i=r=>{e.lockScroll&&yn(r,!0)},a=o(()=>{var r;const c=Ke(Cd(e.zIndex),e.customStyle);return ot(e.duration)&&(c.animationDuration=`${e.duration}s`),Jn(C("div",Tt({ref:s,style:c,class:[j_(),e.className]},t),[(r=n.default)==null?void 0:r.call(n)]),[[Yn,e.show]])});return ts("touchmove",i,{target:s}),()=>{const r=C(ui,{name:"van-fade",appear:!0},{default:a});return e.teleport?C($u,{to:e.teleport},{default:()=>[r]}):r}}});const z_=Ge(U_),H_=Ke({},Er,{round:Boolean,position:Be("center"),closeIcon:Be("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:Be("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[W_,jl]=He("popup");var K_=be({name:W_,inheritAttrs:!1,props:H_,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:s}){let o,i;const a=q(),r=q(),c=xr(()=>e.show||!e.lazyRender),d=V(()=>{const I={zIndex:a.value};if(ot(e.duration)){const P=e.position==="center"?"animationDuration":"transitionDuration";I[P]=`${e.duration}s`}return I}),l=()=>{o||(o=!0,a.value=e.zIndex!==void 0?+e.zIndex:p_(),t("open"))},u=()=>{o&&br(e.beforeClose,{done(){o=!1,t("close"),t("update:show",!1)}})},f=I=>{t("clickOverlay",I),e.closeOnClickOverlay&&u()},h=()=>{if(e.overlay){const I=Ke({show:e.show,class:e.overlayClass,zIndex:a.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return C(z_,Tt(I,Vl(),{onClick:f}),{default:s["overlay-content"]})}},_=I=>{t("clickCloseIcon",I),u()},m=()=>{if(e.closeable)return C(It,{role:"button",tabindex:0,name:e.closeIcon,class:[jl("close-icon",e.closeIconPosition),o_],classPrefix:e.iconPrefix,onClick:_},null)};let p;const v=()=>{p&&clearTimeout(p),p=setTimeout(()=>{t("opened")})},E=()=>t("closed"),R=I=>t("keydown",I),x=c(()=>{var I;const{destroyOnClose:P,round:K,position:L,safeAreaInsetTop:j,safeAreaInsetBottom:B,show:O}=e;if(!(!O&&P))return Jn(C("div",Tt({ref:r,style:d.value,role:"dialog",tabindex:0,class:[jl({round:K,[L]:L}),{"van-safe-area-top":j,"van-safe-area-bottom":B}],onKeydown:R},n,Vl()),[(I=s.default)==null?void 0:I.call(s),m()]),[[Yn,O]])}),b=()=>{const{position:I,transition:P,transitionAppear:K}=e,L=I==="center"?"van-fade":`van-popup-slide-${I}`;return C(ui,{name:P||L,appear:K,onAfterEnter:v,onAfterLeave:E},{default:x})};return ke(()=>e.show,I=>{I&&!o&&(l(),n.tabindex===0&&Xe(()=>{var P;(P=r.value)==null||P.focus()})),!I&&o&&(o=!1,t("close"))}),Bt({popupRef:r}),F_(r,()=>e.show&&e.lockScroll),ts("popstate",()=>{e.closeOnPopstate&&(u(),i=!1)}),st(()=>{e.show&&l()}),ks(()=>{i&&(t("update:show",!0),i=!1)}),es(()=>{e.show&&e.teleport&&(u(),i=!0)}),cn(Rd,()=>e.show),()=>e.teleport?C($u,{to:e.teleport},{default:()=>[h(),b()]}):C(Se,null,[h(),b()])}});const $s=Ge(K_);function G_(e,t,n){let s,o=0;const i=e.scrollLeft,a=n===0?1:Math.round(n*1e3/16);let r=i;function c(){gd(s)}function d(){r+=(t-i)/a,e.scrollLeft=r,++o<a&&(s=ws(d))}return d(),c}function J_(e,t,n,s){let o,i=gr(e);const a=i<t,r=n===0?1:Math.round(n*1e3/16),c=(t-i)/r;function d(){gd(o)}function l(){i+=c,(a&&i>t||!a&&i<t)&&(i=t),Da(e,i),a&&i<t||!a&&i>t?o=ws(l):s&&(o=ws(s))}return l(),d}let X_=0;function xo(){const e=Wt(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return`${t}-${++X_}`}function Ld(){const e=q([]),t=[];return Fu(()=>{e.value=[]}),[e,s=>(t[s]||(t[s]=o=>{e.value[s]=o}),t[s])]}function Md(e,t){if(!As||!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)};es(o),Ts(o),Ri(s)}const[Y_,Q_]=He("sticky"),Z_={zIndex:Oe,position:Be("top"),container:Object,offsetTop:Jt(0),offsetBottom:Jt(0)};var eg=be({name:Y_,props:Z_,emits:["scroll","change"],setup(e,{emit:t,slots:n}){const s=q(),o=bd(s),i=pt({fixed:!1,width:0,height:0,transform:0}),a=q(!1),r=V(()=>xd(e.position==="top"?e.offsetTop:e.offsetBottom)),c=V(()=>{if(a.value)return;const{fixed:f,height:h,width:_}=i;if(f)return{width:`${_}px`,height:`${h}px`}}),d=V(()=>{if(!i.fixed||a.value)return;const f=Ke(Cd(e.zIndex),{width:`${i.width}px`,height:`${i.height}px`,[e.position]:`${r.value}px`});return i.transform&&(f.transform=`translate3d(0, ${i.transform}px, 0)`),f}),l=f=>t("scroll",{scrollTop:f,isFixed:i.fixed}),u=()=>{if(!s.value||mo(s))return;const{container:f,position:h}=e,_=rn(s),m=gr(window);if(i.width=_.width,i.height=_.height,h==="top")if(f){const p=rn(f),v=p.bottom-r.value-i.height;i.fixed=r.value>_.top&&p.bottom>0,i.transform=v<0?v:0}else i.fixed=r.value>_.top;else{const{clientHeight:p}=document.documentElement;if(f){const v=rn(f),E=p-v.top-r.value-i.height;i.fixed=p-r.value<_.bottom&&p>v.top,i.transform=E<0?-E:0}else i.fixed=p-r.value<_.bottom}l(m)};return ke(()=>i.fixed,f=>t("change",f)),ts("scroll",u,{target:o,passive:!0}),Md(s,u),ke([So,Ii],()=>{!s.value||mo(s)||!i.fixed||(a.value=!0,Xe(()=>{const f=rn(s);i.width=f.width,i.height=f.height,a.value=!1}))}),()=>{var f;return C("div",{ref:s,style:c.value},[C("div",{class:Q_({fixed:i.fixed&&!a.value}),style:d.value},[(f=n.default)==null?void 0:f.call(n)])])}}});const tg=Ge(eg),[Fd,jo]=He("swipe"),ng={loop:qe,width:Oe,height:Oe,vertical:Boolean,autoplay:Jt(0),duration:Jt(500),touchable:qe,lazyRender:Boolean,initialSwipe:Jt(0),indicatorColor:String,showIndicators:qe,stopPropagation:qe},Vd=Symbol(Fd);var sg=be({name:Fd,props:ng,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:n}){const s=q(),o=q(),i=pt({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let a=!1;const r=Cr(),{children:c,linkChildren:d}=Ai(Vd),l=V(()=>c.length),u=V(()=>i[e.vertical?"height":"width"]),f=V(()=>e.vertical?r.deltaY.value:r.deltaX.value),h=V(()=>i.rect?(e.vertical?i.rect.height:i.rect.width)-u.value*l.value:0),_=V(()=>u.value?Math.ceil(Math.abs(h.value)/u.value):l.value),m=V(()=>l.value*u.value),p=V(()=>(i.active+l.value)%l.value),v=V(()=>{const oe=e.vertical?"vertical":"horizontal";return r.direction.value===oe}),E=V(()=>{const oe={transitionDuration:`${i.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+i.offset.toFixed(2)}px)`};if(u.value){const ne=e.vertical?"height":"width",ie=e.vertical?"width":"height";oe[ne]=`${m.value}px`,oe[ie]=e[ie]?`${e[ie]}px`:""}return oe}),R=oe=>{const{active:ne}=i;return oe?e.loop?Qo(ne+oe,-1,l.value):Qo(ne+oe,0,_.value):ne},x=(oe,ne=0)=>{let ie=oe*u.value;e.loop||(ie=Math.min(ie,-h.value));let Re=ne-ie;return e.loop||(Re=Qo(Re,h.value,0)),Re},b=({pace:oe=0,offset:ne=0,emitChange:ie})=>{if(l.value<=1)return;const{active:Re}=i,Y=R(oe),ce=x(Y,ne);if(e.loop){if(c[0]&&ce!==h.value){const S=ce<h.value;c[0].setOffset(S?m.value:0)}if(c[l.value-1]&&ce!==0){const S=ce>0;c[l.value-1].setOffset(S?-m.value:0)}}i.active=Y,i.offset=ce,ie&&Y!==Re&&t("change",p.value)},I=()=>{i.swiping=!0,i.active<=-1?b({pace:l.value}):i.active>=l.value&&b({pace:-l.value})},P=()=>{I(),r.reset(),ds(()=>{i.swiping=!1,b({pace:-1,emitChange:!0})})},K=()=>{I(),r.reset(),ds(()=>{i.swiping=!1,b({pace:1,emitChange:!0})})};let L;const j=()=>clearTimeout(L),B=()=>{j(),+e.autoplay>0&&l.value>1&&(L=setTimeout(()=>{K(),B()},+e.autoplay))},O=(oe=+e.initialSwipe)=>{if(!s.value)return;const ne=()=>{var ie,Re;if(!mo(s)){const Y={width:s.value.offsetWidth,height:s.value.offsetHeight};i.rect=Y,i.width=+((ie=e.width)!=null?ie:Y.width),i.height=+((Re=e.height)!=null?Re:Y.height)}l.value&&(oe=Math.min(l.value-1,oe),oe===-1&&(oe=l.value-1)),i.active=oe,i.swiping=!0,i.offset=x(oe),c.forEach(Y=>{Y.setOffset(0)}),B()};mo(s)?Xe().then(ne):ne()},Q=()=>O(i.active);let Z;const Ce=oe=>{!e.touchable||oe.touches.length>1||(r.start(oe),a=!1,Z=Date.now(),j(),I())},he=oe=>{e.touchable&&i.swiping&&(r.move(oe),v.value&&(!e.loop&&(i.active===0&&f.value>0||i.active===l.value-1&&f.value<0)||(yn(oe,e.stopPropagation),b({offset:f.value}),a||(t("dragStart",{index:p.value}),a=!0))))},ae=()=>{if(!e.touchable||!i.swiping)return;const oe=Date.now()-Z,ne=f.value/oe;if((Math.abs(ne)>.25||Math.abs(f.value)>u.value/2)&&v.value){const Re=e.vertical?r.offsetY.value:r.offsetX.value;let Y=0;e.loop?Y=Re>0?f.value>0?-1:1:0:Y=-Math[f.value>0?"ceil":"floor"](f.value/u.value),b({pace:Y,emitChange:!0})}else f.value&&b({pace:0});a=!1,i.swiping=!1,t("dragEnd",{index:p.value}),B()},de=(oe,ne={})=>{I(),r.reset(),ds(()=>{let ie;e.loop&&oe===l.value?ie=i.active===0?0:oe:ie=oe%l.value,ne.immediate?ds(()=>{i.swiping=!1}):i.swiping=!1,b({pace:ie-i.active,emitChange:!0})})},xe=(oe,ne)=>{const ie=ne===p.value,Re=ie?{backgroundColor:e.indicatorColor}:void 0;return C("i",{style:Re,class:jo("indicator",{active:ie})},null)},we=()=>{if(n.indicator)return n.indicator({active:p.value,total:l.value});if(e.showIndicators&&l.value>1)return C("div",{class:jo("indicators",{vertical:e.vertical})},[Array(l.value).fill("").map(xe)])};return Bt({prev:P,next:K,state:i,resize:Q,swipeTo:de}),d({size:u,props:e,count:l,activeIndicator:p}),ke(()=>e.initialSwipe,oe=>O(+oe)),ke(l,()=>O(i.active)),ke(()=>e.autoplay,B),ke([So,Ii,()=>e.width,()=>e.height],Q),ke(Lm(),oe=>{oe==="visible"?B():j()}),st(O),ks(()=>O(i.active)),wr(()=>O(i.active)),es(j),Ts(j),ts("touchmove",he,{target:o}),()=>{var oe;return C("div",{ref:s,class:jo()},[C("div",{ref:o,style:E.value,class:jo("track",{vertical:e.vertical}),onTouchstartPassive:Ce,onTouchend:ae,onTouchcancel:ae},[(oe=n.default)==null?void 0:oe.call(n)]),we()])}}});const og=Ge(sg),[ig,ql]=He("tabs");var ag=be({name:ig,props:{count:Yo(Number),inited:Boolean,animated:Boolean,duration:Yo(Oe),swipeable:Boolean,lazyRender:Boolean,currentIndex:Yo(Number)},emits:["change"],setup(e,{emit:t,slots:n}){const s=q(),o=r=>t("change",r),i=()=>{var r;const c=(r=n.default)==null?void 0:r.call(n);return e.animated||e.swipeable?C(og,{ref:s,loop:!1,class:ql("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:o},{default:()=>[c]}):c},a=r=>{const c=s.value;c&&c.state.active!==r&&c.swipeTo(r,{immediate:!e.inited})};return ke(()=>e.currentIndex,a),st(()=>{a(e.currentIndex)}),Bt({swipeRef:s}),()=>C("div",{class:ql("content",{animated:e.animated||e.swipeable})},[i()])}});const[jd,qo]=He("tabs"),rg={type:Be("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:Jt(0),duration:Jt(.3),animated:Boolean,ellipsis:qe,swipeable:Boolean,scrollspy:Boolean,offsetTop:Jt(0),background:String,lazyRender:qe,showHeader:qe,lineWidth:Oe,lineHeight:Oe,beforeChange:Function,swipeThreshold:Jt(5),titleActiveColor:String,titleInactiveColor:String},qd=Symbol(jd);var lg=be({name:jd,props:rg,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:t,slots:n}){let s,o,i,a,r;const c=q(),d=q(),l=q(),u=q(),f=xo(),h=bd(c),[_,m]=Ld(),{children:p,linkChildren:v}=Ai(qd),E=pt({inited:!1,position:"",lineStyle:{},currentIndex:-1}),R=V(()=>p.length>+e.swipeThreshold||!e.ellipsis||e.shrink),x=V(()=>({borderColor:e.color,background:e.background})),b=(Y,ce)=>{var S;return(S=Y.name)!=null?S:ce},I=V(()=>{const Y=p[E.currentIndex];if(Y)return b(Y,E.currentIndex)}),P=V(()=>xd(e.offsetTop)),K=V(()=>e.sticky?P.value+s:0),L=Y=>{const ce=d.value,S=_.value;if(!R.value||!ce||!S||!S[E.currentIndex])return;const M=S[E.currentIndex].$el,z=M.offsetLeft-(ce.offsetWidth-M.offsetWidth)/2;a&&a(),a=G_(ce,z,Y?0:+e.duration)},j=()=>{const Y=E.inited;Xe(()=>{const ce=_.value;if(!ce||!ce[E.currentIndex]||e.type!=="line"||mo(c.value))return;const S=ce[E.currentIndex].$el,{lineWidth:M,lineHeight:z}=e,N=S.offsetLeft+S.offsetWidth/2,H={width:it(M),backgroundColor:e.color,transform:`translateX(${N}px) translateX(-50%)`};if(Y&&(H.transitionDuration=`${e.duration}s`),ot(z)){const y=it(z);H.height=y,H.borderRadius=y}E.lineStyle=H})},B=Y=>{const ce=Y<E.currentIndex?-1:1;for(;Y>=0&&Y<p.length;){if(!p[Y].disabled)return Y;Y+=ce}},O=(Y,ce)=>{const S=B(Y);if(!ot(S))return;const M=p[S],z=b(M,S),N=E.currentIndex!==null;E.currentIndex!==S&&(E.currentIndex=S,ce||L(),j()),z!==e.active&&(t("update:active",z),N&&t("change",z,M.title)),i&&!e.scrollspy&&yr(Math.ceil(Il(c.value)-P.value))},Q=(Y,ce)=>{const S=p.findIndex((M,z)=>b(M,z)===Y);O(S===-1?0:S,ce)},Z=(Y=!1)=>{if(e.scrollspy){const ce=p[E.currentIndex].$el;if(ce&&h.value){const S=Il(ce,h.value)-K.value;o=!0,r&&r(),r=J_(h.value,S,Y?0:+e.duration,()=>{o=!1})}}},Ce=(Y,ce,S)=>{const{title:M,disabled:z}=p[ce],N=b(p[ce],ce);z||(br(e.beforeChange,{args:[N],done:()=>{O(ce),Z()}}),Od(Y)),t("clickTab",{name:N,title:M,event:S,disabled:z})},he=Y=>{i=Y.isFixed,t("scroll",Y)},ae=Y=>{Xe(()=>{Q(Y),Z(!0)})},de=()=>{for(let Y=0;Y<p.length;Y++){const{top:ce}=rn(p[Y].$el);if(ce>K.value)return Y===0?0:Y-1}return p.length-1},xe=()=>{if(e.scrollspy&&!o){const Y=de();O(Y)}},we=()=>{if(e.type==="line"&&p.length)return C("div",{class:qo("line"),style:E.lineStyle},null)},oe=()=>{var Y,ce,S;const{type:M,border:z,sticky:N}=e,H=[C("div",{ref:N?void 0:l,class:[qo("wrap"),{[Ad]:M==="line"&&z}]},[C("div",{ref:d,role:"tablist",class:qo("nav",[M,{shrink:e.shrink,complete:R.value}]),style:x.value,"aria-orientation":"horizontal"},[(Y=n["nav-left"])==null?void 0:Y.call(n),p.map(y=>y.renderTitle(Ce)),we(),(ce=n["nav-right"])==null?void 0:ce.call(n)])]),(S=n["nav-bottom"])==null?void 0:S.call(n)];return N?C("div",{ref:l},[H]):H},ne=()=>{j(),Xe(()=>{var Y,ce;L(!0),(ce=(Y=u.value)==null?void 0:Y.swipeRef.value)==null||ce.resize()})};ke(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],j),ke(So,ne),ke(()=>e.active,Y=>{Y!==I.value&&Q(Y)}),ke(()=>p.length,()=>{E.inited&&(Q(e.active),j(),Xe(()=>{L(!0)}))});const ie=()=>{Q(e.active,!0),Xe(()=>{E.inited=!0,l.value&&(s=rn(l.value).height),L(!0)})},Re=(Y,ce)=>t("rendered",Y,ce);return Bt({resize:ne,scrollTo:ae}),ks(j),wr(j),Ri(ie),Md(c,j),ts("scroll",xe,{target:h,passive:!0}),v({id:f,props:e,setLine:j,scrollable:R,onRendered:Re,currentName:I,setTitleRefs:m,scrollIntoView:L}),()=>C("div",{ref:c,class:qo([e.type])},[e.showHeader?e.sticky?C(tg,{container:c.value,offsetTop:P.value,onScroll:he},{default:()=>[oe()]}):oe():null,C(ag,{ref:u,count:p.length,inited:E.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:E.currentIndex,onChange:O},{default:()=>{var Y;return[(Y=n.default)==null?void 0:Y.call(n)]}})])}});const cg=Symbol(),Ud=Symbol(),ug=()=>ht(Ud,null),dg=e=>{const t=ug();cn(cg,e),cn(Ud,V(()=>(t==null||t.value)&&e.value))},[fg,Ul]=He("tab"),hg=be({name:fg,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:Oe,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:qe},setup(e,{slots:t}){const n=V(()=>{const o={},{type:i,color:a,disabled:r,isActive:c,activeColor:d,inactiveColor:l}=e;a&&i==="card"&&(o.borderColor=a,r||(c?o.backgroundColor=a:o.color=a));const f=c?d:l;return f&&(o.color=f),o}),s=()=>{const o=C("span",{class:Ul("text",{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||ot(e.badge)&&e.badge!==""?C(Pd,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[o]}):o};return()=>C("div",{id:e.id,role:"tab",class:[Ul([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()])}}),[pg,mg]=He("swipe-item");var _g=be({name:pg,setup(e,{slots:t}){let n;const s=pt({offset:0,inited:!1,mounted:!1}),{parent:o,index:i}=Is(Vd);if(!o)return;const a=V(()=>{const d={},{vertical:l}=o.props;return o.size.value&&(d[l?"height":"width"]=`${o.size.value}px`),s.offset&&(d.transform=`translate${l?"Y":"X"}(${s.offset}px)`),d}),r=V(()=>{const{loop:d,lazyRender:l}=o.props;if(!l||n)return!0;if(!s.mounted)return!1;const u=o.activeIndicator.value,f=o.count.value-1,h=u===0&&d?f:u-1,_=u===f&&d?0:u+1;return n=i.value===u||i.value===h||i.value===_,n}),c=d=>{s.offset=d};return st(()=>{Xe(()=>{s.mounted=!0})}),Bt({setOffset:c}),()=>{var d;return C("div",{class:mg(),style:a.value},[r.value?(d=t.default)==null?void 0:d.call(t):null])}}});const gg=Ge(_g),[vg,na]=He("tab"),yg=Ke({},$i,{dot:Boolean,name:Oe,badge:Oe,title:String,disabled:Boolean,titleClass:Ut,titleStyle:[String,Object],showZeroBadge:qe});var bg=be({name:vg,props:yg,setup(e,{slots:t}){const n=xo(),s=q(!1),o=Wt(),{parent:i,index:a}=Is(qd);if(!i)return;const r=()=>{var _;return(_=e.name)!=null?_:a.value},c=()=>{s.value=!0,i.props.lazyRender&&Xe(()=>{i.onRendered(r(),e.title)})},d=V(()=>{const _=r()===i.currentName.value;return _&&!s.value&&c(),_}),l=q(""),u=q("");Tu(()=>{const{titleClass:_,titleStyle:m}=e;l.value=_?ge(_):"",u.value=m&&typeof m!="string"?rh(Xt(m)):m});const f=_=>C(hg,Tt({key:n,id:`${i.id}-${a.value}`,ref:i.setTitleRefs(a.value),style:u.value,class:l.value,isActive:d.value,controls:n,scrollable:i.scrollable.value,activeColor:i.props.titleActiveColor,inactiveColor:i.props.titleInactiveColor,onClick:m=>_(o.proxy,a.value,m)},En(i.props,["type","color","shrink"]),En(e,["dot","badge","title","disabled","showZeroBadge"])),{title:t.title}),h=q(!d.value);return ke(d,_=>{_?h.value=!1:ds(()=>{h.value=!0})}),ke(()=>e.title,()=>{i.setLine(),i.scrollIntoView()}),dg(d),Bt({id:n,renderTitle:f}),()=>{var _;const m=`${i.id}-${a.value}`,{animated:p,swipeable:v,scrollspy:E,lazyRender:R}=i.props;if(!t.default&&!p)return;const x=E||d.value;if(p||v)return C(gg,{id:n,role:"tabpanel",class:na("panel-wrapper",{inactive:h.value}),tabindex:d.value?0:-1,"aria-hidden":!d.value,"aria-labelledby":m,"data-allow-mismatch":"attribute"},{default:()=>{var P;return[C("div",{class:na("panel")},[(P=t.default)==null?void 0:P.call(t)])]}});const I=s.value||E||!R?(_=t.default)==null?void 0:_.call(t):null;return Jn(C("div",{id:n,role:"tabpanel",class:na("panel"),tabindex:x?0:-1,"aria-labelledby":m,"data-allow-mismatch":"attribute"},[I]),[[Yn,x]])}}});const wg=Ge(bg),Sg=Ge(lg),[Eg,os]=He("cell"),Oi={tag:Be("div"),icon:String,size:String,title:Oe,value:Oe,label:Oe,center:Boolean,isLink:Boolean,border:qe,iconPrefix:String,valueClass:Ut,labelClass:Ut,titleClass:Ut,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},Cg=Ke({},Oi,$i);var xg=be({name:Eg,props:Cg,setup(e,{slots:t}){const n=Sr(),s=()=>{if(t.label||ot(e.label))return C("div",{class:[os("label"),e.labelClass]},[t.label?t.label():e.label])},o=()=>{var c;if(t.title||ot(e.title)){const d=(c=t.title)==null?void 0:c.call(t);return Array.isArray(d)&&d.length===0?void 0:C("div",{class:[os("title"),e.titleClass],style:e.titleStyle},[d||C("span",null,[e.title]),s()])}},i=()=>{const c=t.value||t.default;if(c||ot(e.value))return C("div",{class:[os("value"),e.valueClass]},[c?c():C("span",null,[e.value])])},a=()=>{if(t.icon)return t.icon();if(e.icon)return C(It,{name:e.icon,class:os("left-icon"),classPrefix:e.iconPrefix},null)},r=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const c=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return C(It,{name:c,class:os("right-icon")},null)}};return()=>{var c;const{tag:d,size:l,center:u,border:f,isLink:h,required:_}=e,m=(c=e.clickable)!=null?c:h,p={center:u,required:!!_,clickable:m,borderless:!f};return l&&(p[l]=!!l),C(d,{class:os(p),role:m?"button":void 0,tabindex:m?0:void 0,onClick:n},{default:()=>{var v;return[a(),o(),i(),r(),(v=t.extra)==null?void 0:v.call(t)]}})}}});const zd=Ge(xg);function Hd(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function kg(e,t){if(Hd(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function Tg(e,t){return new Promise(n=>{const s=t.validator(e,t);if(pd(s)){s.then(n);return}n(s)})}function zl(e,t){const{message:n}=t;return po(n)?n(e,t):n||""}function Ag({target:e}){e.composing=!0}function Hl({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function Rg(e,t){const n=vr();e.style.height="auto";let s=e.scrollHeight;if(wo(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`,yr(n))}function Ig(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function Ms(e){return[...e].length}function sa(e,t){return[...e].slice(0,t).join("")}const[$g,Vt]=He("field"),kr={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:Oe,max:Number,min:Number,formatter:Function,clearIcon:Be("clear"),modelValue:Jt(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:Be("focus"),formatTrigger:Be("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},Og=Ke({},Oi,kr,{rows:Oe,type:Be("text"),rules:Array,autosize:[Boolean,Object],labelWidth:Oe,labelClass:Ut,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var Pg=be({name:$g,props:Og,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const s=xo(),o=pt({status:"unvalidated",focused:!1,validateMessage:""}),i=q(),a=q(),r=q(),{parent:c}=Is(i_),d=()=>{var S;return String((S=e.modelValue)!=null?S:"")},l=S=>{if(ot(e[S]))return e[S];if(c&&ot(c.props[S]))return c.props[S]},u=V(()=>{const S=l("readonly");if(e.clearable&&!S){const M=d()!=="",z=e.clearTrigger==="always"||e.clearTrigger==="focus"&&o.focused;return M&&z}return!1}),f=V(()=>r.value&&n.input?r.value():e.modelValue),h=V(()=>{var S;const M=l("required");return M==="auto"?(S=e.rules)==null?void 0:S.some(z=>z.required):M}),_=S=>S.reduce((M,z)=>M.then(()=>{if(o.status==="failed")return;let{value:N}=f;if(z.formatter&&(N=z.formatter(N,z)),!kg(N,z)){o.status="failed",o.validateMessage=zl(N,z);return}if(z.validator)return Hd(N)&&z.validateEmpty===!1?void 0:Tg(N,z).then(H=>{H&&typeof H=="string"?(o.status="failed",o.validateMessage=H):H===!1&&(o.status="failed",o.validateMessage=zl(N,z))})}),Promise.resolve()),m=()=>{o.status="unvalidated",o.validateMessage=""},p=()=>t("endValidate",{status:o.status,message:o.validateMessage}),v=(S=e.rules)=>new Promise(M=>{m(),S?(t("startValidate"),_(S).then(()=>{o.status==="failed"?(M({name:e.name,message:o.validateMessage}),p()):(o.status="passed",M(),p())})):M()}),E=S=>{if(c&&e.rules){const{validateTrigger:M}=c.props,z=Tl(M).includes(S),N=e.rules.filter(H=>H.trigger?Tl(H.trigger).includes(S):z);N.length&&v(N)}},R=S=>{var M;const{maxlength:z}=e;if(ot(z)&&Ms(S)>+z){const N=d();if(N&&Ms(N)===+z)return N;let H=(M=i.value)==null?void 0:M.selectionEnd;if(o.focused&&H){const y=[...S],w=y.length-+z;return H=Ms(S.slice(0,H)),y.splice(H-w,w),y.join("")}return sa(S,+z)}return S},x=(S,M="onChange")=>{var z,N;const H=S;S=R(S);const y=H.length-S.length;if(e.type==="number"||e.type==="digit"){const T=e.type==="number";if(S=Km(S,T,T),M==="onBlur"&&S!==""&&(e.min!==void 0||e.max!==void 0)){const U=Qo(+S,(z=e.min)!=null?z:-1/0,(N=e.max)!=null?N:1/0);+S!==U&&(S=U.toString())}}let w=0;if(e.formatter&&M===e.formatTrigger){const{formatter:T,maxlength:U}=e;if(S=T(S),ot(U)&&Ms(S)>+U&&(S=sa(S,+U)),i.value&&o.focused){const{selectionEnd:G}=i.value,W=sa(H,G);w=T(W).length-W.length}}if(i.value&&i.value.value!==S)if(o.focused){let{selectionStart:T,selectionEnd:U}=i.value;if(i.value.value=S,ot(T)&&ot(U)){const G=S.length;y?(T-=y,U-=y):w&&(T+=w,U+=w),i.value.setSelectionRange(Math.min(T,G),Math.min(U,G))}}else i.value.value=S;S!==e.modelValue&&t("update:modelValue",S)},b=S=>{S.target.composing||x(S.target.value)},I=()=>{var S;return(S=i.value)==null?void 0:S.blur()},P=()=>{var S;return(S=i.value)==null?void 0:S.focus()},K=()=>{const S=i.value;e.type==="textarea"&&e.autosize&&S&&Rg(S,e.autosize)},L=S=>{o.focused=!0,t("focus",S),Xe(K),l("readonly")&&I()},j=S=>{o.focused=!1,x(d(),"onBlur"),t("blur",S),!l("readonly")&&(E("onBlur"),Xe(K),Fm())},B=S=>t("clickInput",S),O=S=>t("clickLeftIcon",S),Q=S=>t("clickRightIcon",S),Z=S=>{yn(S),t("update:modelValue",""),t("clear",S)},Ce=V(()=>{if(typeof e.error=="boolean")return e.error;if(c&&c.props.showError&&o.status==="failed")return!0}),he=V(()=>{const S=l("labelWidth"),M=l("labelAlign");if(S&&M!=="top")return{width:it(S)}}),ae=S=>{S.keyCode===13&&(!(c&&c.props.submitOnEnter)&&e.type!=="textarea"&&yn(S),e.type==="search"&&I()),t("keypress",S)},de=()=>e.id||`${s}-input`,xe=()=>o.status,we=()=>{const S=Vt("control",[l("inputAlign"),{error:Ce.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return C("div",{class:S,onClick:B},[n.input()]);const M={id:de(),ref:i,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:S,disabled:l("disabled"),readonly:l("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:j,onFocus:L,onInput:b,onClick:B,onChange:Hl,onKeypress:ae,onCompositionend:Hl,onCompositionstart:Ag};return e.type==="textarea"?C("textarea",Tt(M,{inputmode:e.inputmode}),null):C("input",Tt(Ig(e.type,e.inputmode),M),null)},oe=()=>{const S=n["left-icon"];if(e.leftIcon||S)return C("div",{class:Vt("left-icon"),onClick:O},[S?S():C(It,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},ne=()=>{const S=n["right-icon"];if(e.rightIcon||S)return C("div",{class:Vt("right-icon"),onClick:Q},[S?S():C(It,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},ie=()=>{if(e.showWordLimit&&e.maxlength){const S=Ms(d());return C("div",{class:Vt("word-limit")},[C("span",{class:Vt("word-num")},[S]),je("/"),e.maxlength])}},Re=()=>{if(c&&c.props.showErrorMessage===!1)return;const S=e.errorMessage||o.validateMessage;if(S){const M=n["error-message"],z=l("errorMessageAlign");return C("div",{class:Vt("error-message",z)},[M?M({message:S}):S])}},Y=()=>{const S=l("labelWidth"),M=l("labelAlign"),z=l("colon")?":":"";if(n.label)return[n.label(),z];if(e.label)return C("label",{id:`${s}-label`,for:n.input?void 0:de(),"data-allow-mismatch":"attribute",onClick:N=>{yn(N),P()},style:M==="top"&&S?{width:it(S)}:void 0},[e.label+z])},ce=()=>[C("div",{class:Vt("body")},[we(),u.value&&C(It,{ref:a,name:e.clearIcon,class:Vt("clear")},null),ne(),n.button&&C("div",{class:Vt("button")},[n.button()])]),ie(),Re()];return Bt({blur:I,focus:P,validate:v,formValue:f,resetValidation:m,getValidationStatus:xe}),cn(wd,{customValue:r,resetValidation:m,validateWithTrigger:E}),ke(()=>e.modelValue,()=>{x(d()),m(),E("onChange"),Xe(K)}),st(()=>{x(d(),e.formatTrigger),Xe(K)}),ts("touchstart",Z,{target:V(()=>{var S;return(S=a.value)==null?void 0:S.$el})}),()=>{const S=l("disabled"),M=l("labelAlign"),z=oe(),N=()=>{const H=Y();return M==="top"?[z,H].filter(Boolean):H||[]};return C(zd,{size:e.size,class:Vt({error:Ce.value,disabled:S,[`label-${M}`]:M}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:he.value,valueClass:Vt("value"),titleClass:[Vt("label",[M,{required:h.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:z&&M!=="top"?()=>z:null,title:N,value:ce,extra:n.extra})}}});const Tr=Ge(Pg);let Fs=0;function Dg(e){e?(Fs||document.body.classList.add("van-toast--unclickable"),Fs++):Fs&&(Fs--,Fs||document.body.classList.remove("van-toast--unclickable"))}const[Bg,is]=He("toast"),Ng=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],Lg={icon:String,show:Boolean,type:Be("text"),overlay:Boolean,message:Oe,iconSize:Oe,duration:_d(2e3),position:Be("middle"),teleport:[String,Object],wordBreak:String,className:Ut,iconPrefix:String,transition:Be("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:Ut,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:Oe};var Wd=be({name:Bg,props:Lg,emits:["update:show"],setup(e,{emit:t,slots:n}){let s,o=!1;const i=()=>{const u=e.show&&e.forbidClick;o!==u&&(o=u,Dg(o))},a=u=>t("update:show",u),r=()=>{e.closeOnClick&&a(!1)},c=()=>clearTimeout(s),d=()=>{const{icon:u,type:f,iconSize:h,iconPrefix:_,loadingType:m}=e;if(u||f==="success"||f==="fail")return C(It,{name:u||f,size:h,class:is("icon"),classPrefix:_},null);if(f==="loading")return C(Co,{class:is("loading"),size:h,type:m},null)},l=()=>{const{type:u,message:f}=e;if(n.message)return C("div",{class:is("text")},[n.message()]);if(ot(f)&&f!=="")return u==="html"?C("div",{key:0,class:is("text"),innerHTML:String(f)},null):C("div",{class:is("text")},[f])};return ke(()=>[e.show,e.forbidClick],i),ke(()=>[e.show,e.type,e.message,e.duration],()=>{c(),e.show&&e.duration>0&&(s=setTimeout(()=>{a(!1)},e.duration))}),st(i),Nn(i),()=>C($s,Tt({class:[is([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:r,onClosed:c,"onUpdate:show":a},En(e,Ng)),{default:()=>[d(),l()]})}});function Kd(){const e=pt({show:!1}),t=o=>{e.show=o},n=o=>{Ke(e,o,{transitionAppear:!0}),t(!0)},s=()=>t(!1);return Bt({open:n,close:s,toggle:t}),{open:n,close:s,state:e,toggle:t}}function Gd(e){const t=hd(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const Mg={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 fs=[],Fg=!1,Wl=Ke({},Mg);const Vg=new Map;function Jd(e){return wo(e)?e:{message:e}}function jg(){const{instance:e}=Gd({setup(){const t=q(""),{open:n,state:s,close:o,toggle:i}=Kd(),a=()=>{},r=()=>C(Wd,Tt(s,{onClosed:a,"onUpdate:show":i}),null);return ke(t,c=>{s.message=c}),Wt().render=r,{open:n,close:o,message:t}}});return e}function qg(){if(!fs.length||Fg){const e=jg();fs.push(e)}return fs[fs.length-1]}function Te(e={}){if(!As)return{};const t=qg(),n=Jd(e);return t.open(Ke({},Wl,Vg.get(n.type||Wl.type),n)),t}const Ar=e=>t=>Te(Ke({type:e},Jd(t))),Ug=Ar("loading"),GT=Ar("success"),zg=Ar("fail"),Kl=e=>{fs.length&&fs[0].close()};Ge(Wd);const[Hg]=He("checkbox-group"),Wg=Symbol(Hg),Xd={name:Ut,disabled:Boolean,iconSize:Oe,modelValue:Ut,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var Kg=be({props:Ke({},Xd,{bem:Yo(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:qe,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,{emit:t,slots:n}){const s=q(),o=f=>{if(e.parent&&e.bindGroup)return e.parent.props[f]},i=V(()=>{if(e.parent&&e.bindGroup){const f=o("disabled")||e.disabled;if(e.role==="checkbox"){const h=o("modelValue").length,_=o("max"),m=_&&h>=+_;return f||m&&!e.checked}return f}return e.disabled}),a=V(()=>o("direction")),r=V(()=>{const f=e.checkedColor||o("checkedColor");if(f&&(e.checked||e.indeterminate)&&!i.value)return{borderColor:f,backgroundColor:f}}),c=V(()=>e.shape||o("shape")||"round"),d=f=>{const{target:h}=f,_=s.value,m=_===h||(_==null?void 0:_.contains(h));!i.value&&(m||!e.labelDisabled)&&t("toggle"),t("click",f)},l=()=>{var f,h;const{bem:_,checked:m,indeterminate:p}=e,v=e.iconSize||o("iconSize");return C("div",{ref:s,class:_("icon",[c.value,{disabled:i.value,checked:m,indeterminate:p}]),style:c.value!=="dot"?{fontSize:it(v)}:{width:it(v),height:it(v),borderColor:(f=r.value)==null?void 0:f.borderColor}},[n.icon?n.icon({checked:m,disabled:i.value}):c.value!=="dot"?C(It,{name:p?"minus":"success",style:r.value},null):C("div",{class:_("icon--dot__icon"),style:{backgroundColor:(h=r.value)==null?void 0:h.backgroundColor}},null)])},u=()=>{const{checked:f}=e;if(n.default)return C("span",{class:e.bem("label",[e.labelPosition,{disabled:i.value}])},[n.default({checked:f,disabled:i.value})])};return()=>{const f=e.labelPosition==="left"?[u(),l()]:[l(),u()];return C("div",{role:e.role,class:e.bem([{disabled:i.value,"label-disabled":e.labelDisabled},a.value]),tabindex:i.value?void 0:0,"aria-checked":e.checked,onClick:d},[f])}}});const[Gg,Jg]=He("checkbox"),Xg=Ke({},Xd,{shape:String,bindGroup:qe,indeterminate:{type:Boolean,default:null}});var Yg=be({name:Gg,props:Xg,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:s}=Is(Wg),o=r=>{const{name:c}=e,{max:d,modelValue:l}=s.props,u=l.slice();if(r)!(d&&u.length>=+d)&&!u.includes(c)&&(u.push(c),e.bindGroup&&s.updateValue(u));else{const f=u.indexOf(c);f!==-1&&(u.splice(f,1),e.bindGroup&&s.updateValue(u))}},i=V(()=>s&&e.bindGroup?s.props.modelValue.indexOf(e.name)!==-1:!!e.modelValue),a=(r=!i.value)=>{s&&e.bindGroup?o(r):t("update:modelValue",r),e.indeterminate!==null&&t("change",r)};return ke(()=>e.modelValue,r=>{e.indeterminate===null&&t("change",r)}),Bt({toggle:a,props:e,checked:i}),Sd(()=>e.modelValue),()=>C(Kg,Tt({bem:Jg,role:"checkbox",parent:s,checked:i.value,onToggle:a},e),En(n,["default","icon"]))}});const Qg=Ge(Yg),[Yd,Zg]=He("collapse"),Qd=Symbol(Yd),ev={border:qe,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};var tv=be({name:Yd,props:ev,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:s,children:o}=Ai(Qd),i=d=>{t("change",d),t("update:modelValue",d)},a=(d,l)=>{const{accordion:u,modelValue:f}=e;i(u?d===f?"":d:l?f.concat(d):f.filter(h=>h!==d))},r=(d={})=>{if(e.accordion)return;typeof d=="boolean"&&(d={expanded:d});const{expanded:l,skipDisabled:u}=d,h=o.filter(_=>_.disabled&&u?_.expanded.value:l??!_.expanded.value).map(_=>_.itemName.value);i(h)},c=d=>{const{accordion:l,modelValue:u}=e;return l?u===d:u.includes(d)};return Bt({toggleAll:r}),s({toggle:a,isExpanded:c}),()=>{var d;return C("div",{class:[Zg(),{[Ad]:e.border}]},[(d=n.default)==null?void 0:d.call(n)])}}});const nv=Ge(tv),[sv,Uo]=He("collapse-item"),ov=["icon","title","value","label","right-icon"],iv=Ke({},Oi,{name:Oe,isLink:qe,disabled:Boolean,readonly:Boolean,lazyRender:qe});var av=be({name:sv,props:iv,setup(e,{slots:t}){const n=q(),s=q(),{parent:o,index:i}=Is(Qd);if(!o)return;const a=V(()=>{var m;return(m=e.name)!=null?m:i.value}),r=V(()=>o.isExpanded(a.value)),c=q(r.value),d=xr(()=>c.value||!e.lazyRender),l=()=>{r.value?n.value&&(n.value.style.height=""):c.value=!1};ke(r,(m,p)=>{if(p===null)return;m&&(c.value=!0),(m?Xe:ws)(()=>{if(!s.value||!n.value)return;const{offsetHeight:E}=s.value;if(E){const R=`${E}px`;n.value.style.height=m?"0":R,ds(()=>{n.value&&(n.value.style.height=m?R:"0")})}else l()})});const u=(m=!r.value)=>{o.toggle(a.value,m)},f=()=>{!e.disabled&&!e.readonly&&u()},h=()=>{const{border:m,disabled:p,readonly:v}=e,E=En(e,Object.keys(Oi));return v&&(E.isLink=!1),(p||v)&&(E.clickable=!1),C(zd,Tt({role:"button",class:Uo("title",{disabled:p,expanded:r.value,borderless:!m}),"aria-expanded":String(r.value),onClick:f},E),En(t,ov))},_=d(()=>{var m;return Jn(C("div",{ref:n,class:Uo("wrapper"),onTransitionend:l},[C("div",{ref:s,class:Uo("content")},[(m=t.default)==null?void 0:m.call(t)])]),[[Yn,c.value]])});return Bt({toggle:u,expanded:r,itemName:a}),()=>C("div",{class:[Uo({border:i.value&&e.border})]},[h(),_()])}});const rv=Ge(av),lv=Ge(b_),[cv,zo]=He("empty"),uv={image:Be("default"),imageSize:[Number,String,Array],description:String};var dv=be({name:cv,props:uv,setup(e,{slots:t}){const n=()=>{const v=t.description?t.description():e.description;if(v)return C("p",{class:zo("description")},[v])},s=()=>{if(t.default)return C("div",{class:zo("bottom")},[t.default()])},o=xo(),i=v=>`${o}-${v}`,a=v=>`url(#${i(v)})`,r=(v,E,R)=>C("stop",{"stop-color":v,offset:`${E}%`,"stop-opacity":R},null),c=(v,E)=>[r(v,0),r(E,100)],d=v=>[C("defs",null,[C("radialGradient",{id:i(v),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)","data-allow-mismatch":"attribute"},[r("#EBEDF0",0),r("#F2F3F5",100,.3)])]),C("ellipse",{fill:a(v),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8","data-allow-mismatch":"attribute"},null)],l=()=>[C("defs",null,[C("linearGradient",{id:i("a"),x1:"64%",y1:"100%",x2:"64%","data-allow-mismatch":"attribute"},[r("#FFF",0,.5),r("#F2F3F5",100)])]),C("g",{opacity:".8","data-allow-mismatch":"children"},[C("path",{d:"M36 131V53H16v20H2v58h34z",fill:a("a")},null),C("path",{d:"M123 15h22v14h9v77h-31V15z",fill:a("a")},null)])],u=()=>[C("defs",null,[C("linearGradient",{id:i("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%","data-allow-mismatch":"attribute"},[r("#F2F3F5",0,.3),r("#F2F3F5",100)])]),C("g",{opacity:".8","data-allow-mismatch":"children"},[C("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:a("b")},null),C("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:a("b")},null)])],f=()=>C("svg",{viewBox:"0 0 160 160"},[C("defs",{"data-allow-mismatch":"children"},[C("linearGradient",{id:i(1),x1:"64%",y1:"100%",x2:"64%"},[r("#FFF",0,.5),r("#F2F3F5",100)]),C("linearGradient",{id:i(2),x1:"50%",x2:"50%",y2:"84%"},[r("#EBEDF0",0),r("#DCDEE0",100,0)]),C("linearGradient",{id:i(3),x1:"100%",x2:"100%",y2:"100%"},[c("#EAEDF0","#DCDEE0")]),C("radialGradient",{id:i(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[r("#EBEDF0",0),r("#FFF",100,0)])]),C("g",{fill:"none"},[l(),C("path",{fill:a(4),d:"M0 139h160v21H0z","data-allow-mismatch":"attribute"},null),C("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:a(2),"data-allow-mismatch":"attribute"},null),C("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7","data-allow-mismatch":"children"},[C("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:a(3)},null),C("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:a(3)},null),C("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:a(3)},null),C("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:a(3)},null)]),C("g",{transform:"translate(31 105)"},[C("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),C("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),C("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),h=()=>C("svg",{viewBox:"0 0 160 160"},[C("defs",{"data-allow-mismatch":"children"},[C("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(5)},[c("#F2F3F5","#DCDEE0")]),C("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:i(6)},[c("#EAEDF1","#DCDEE0")]),C("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:i(7)},[c("#EAEDF1","#DCDEE0")])]),l(),u(),C("g",{transform:"translate(36 50)",fill:"none"},[C("g",{transform:"translate(8)"},[C("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),C("rect",{fill:a(5),width:"64",height:"66",rx:"2","data-allow-mismatch":"attribute"},null),C("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),C("g",{transform:"translate(15 17)",fill:a(6),"data-allow-mismatch":"attribute"},[C("rect",{width:"34",height:"6",rx:"1"},null),C("path",{d:"M0 14h34v6H0z"},null),C("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),C("rect",{fill:a(7),y:"61",width:"88",height:"28",rx:"1","data-allow-mismatch":"attribute"},null),C("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),_=()=>C("svg",{viewBox:"0 0 160 160"},[C("defs",null,[C("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(8),"data-allow-mismatch":"attribute"},[c("#EAEDF1","#DCDEE0")])]),l(),u(),d("c"),C("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:a(8),"data-allow-mismatch":"attribute"},null)]),m=()=>C("svg",{viewBox:"0 0 160 160"},[C("defs",{"data-allow-mismatch":"children"},[C("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:i(9)},[c("#EEE","#D8D8D8")]),C("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:i(10)},[c("#F2F3F5","#DCDEE0")]),C("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(11)},[c("#F2F3F5","#DCDEE0")]),C("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(12)},[c("#FFF","#F7F8FA")])]),l(),u(),d("d"),C("g",{transform:"rotate(-45 113 -4)",fill:"none","data-allow-mismatch":"children"},[C("rect",{fill:a(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),C("rect",{fill:a(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),C("circle",{stroke:a(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),C("circle",{fill:a(12),cx:"27",cy:"27",r:"16"},null),C("path",{d:"M37 7c-8 0-15 5-16 12",stroke:a(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),p=()=>{var v;if(t.image)return t.image();const E={error:_,search:m,network:f,default:h};return((v=E[e.image])==null?void 0:v.call(E))||C("img",{src:e.image},null)};return()=>C("div",{class:zo()},[C("div",{class:zo("image"),style:Ed(e.imageSize)},[p()]),n(),s()])}});const Zd=Ge(dv),[fv,Kt,Ho]=He("dialog"),hv=Ke({},Er,{title:String,theme:String,width:Oe,message:[String,Function],callback:Function,allowHtml:Boolean,className:Ut,transition:Be("van-dialog-bounce"),messageAlign:String,closeOnPopstate:qe,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:qe,closeOnClickOverlay:Boolean,keyboardEnabled:qe,destroyOnClose:Boolean}),pv=[...L_,"transition","closeOnPopstate","destroyOnClose"];var ef=be({name:fv,props:hv,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:n}){const s=q(),o=pt({confirm:!1,cancel:!1}),i=v=>t("update:show",v),a=v=>{var E;i(!1),(E=e.callback)==null||E.call(e,v)},r=v=>()=>{e.show&&(t(v),e.beforeClose?(o[v]=!0,br(e.beforeClose,{args:[v],done(){a(v),o[v]=!1},canceled(){o[v]=!1}})):a(v))},c=r("cancel"),d=r("confirm"),l=fd(v=>{var E,R;if(!e.keyboardEnabled||v.target!==((R=(E=s.value)==null?void 0:E.popupRef)==null?void 0:R.value))return;({Enter:e.showConfirmButton?d:Pa,Escape:e.showCancelButton?c:Pa})[v.key](),t("keydown",v)},["enter","esc"]),u=()=>{const v=n.title?n.title():e.title;if(v)return C("div",{class:Kt("header",{isolated:!e.message&&!n.default})},[v])},f=v=>{const{message:E,allowHtml:R,messageAlign:x}=e,b=Kt("message",{"has-title":v,[x]:x}),I=po(E)?E():E;return R&&typeof I=="string"?C("div",{class:b,innerHTML:I},null):C("div",{class:b},[I])},h=()=>{if(n.default)return C("div",{class:Kt("content")},[n.default()]);const{title:v,message:E,allowHtml:R}=e;if(E){const x=!!(v||n.title);return C("div",{key:R?1:0,class:Kt("content",{isolated:!x})},[f(x)])}},_=()=>C("div",{class:[t_,Kt("footer")]},[e.showCancelButton&&C(Ss,{size:"large",text:e.cancelButtonText||Ho("cancel"),class:Kt("cancel"),style:{color:e.cancelButtonColor},loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:c},null),e.showConfirmButton&&C(Ss,{size:"large",text:e.confirmButtonText||Ho("confirm"),class:[Kt("confirm"),{[n_]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:d},null)]),m=()=>C(u_,{class:Kt("footer")},{default:()=>[e.showCancelButton&&C(Ml,{type:"warning",text:e.cancelButtonText||Ho("cancel"),class:Kt("cancel"),color:e.cancelButtonColor,loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:c},null),e.showConfirmButton&&C(Ml,{type:"danger",text:e.confirmButtonText||Ho("confirm"),class:Kt("confirm"),color:e.confirmButtonColor,loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:d},null)]}),p=()=>n.footer?n.footer():e.theme==="round-button"?m():_();return()=>{const{width:v,title:E,theme:R,message:x,className:b}=e;return C($s,Tt({ref:s,role:"dialog",class:[Kt([R]),b],style:{width:it(v)},tabindex:0,"aria-labelledby":E||x,onKeydown:l,"onUpdate:show":i},En(e,pv)),{default:()=>[u(),h(),p()]})}}});let Na;const mv={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 _v=Ke({},mv);function gv(){({instance:Na}=Gd({setup(){const{state:t,toggle:n}=Kd();return()=>C(ef,Tt(t,{"onUpdate:show":n}),null)}}))}function vv(e){return As?new Promise((t,n)=>{Na||gv(),Na.open(Ke({},_v,e,{callback:s=>{(s==="confirm"?t:n)(s)}}))}):Promise.resolve(void 0)}const yv=e=>vv(Ke({showCancelButton:!0},e)),JT=Ge(ef),[bv,Wo]=He("rate");function wv(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 Sv={size:Oe,icon:Be("star"),color:String,count:Jt(5),gutter:Oe,clearable:Boolean,readonly:Boolean,disabled:Boolean,voidIcon:Be("star-o"),allowHalf:Boolean,voidColor:String,touchable:qe,iconPrefix:String,modelValue:_d(0),disabledColor:String};var Ev=be({name:bv,props:Sv,emits:["change","update:modelValue"],setup(e,{emit:t}){const n=Cr(),[s,o]=Ld(),i=q(),a=V(()=>e.readonly||e.disabled),r=V(()=>a.value||!e.touchable),c=V(()=>Array(+e.count).fill("").map((R,x)=>wv(e.modelValue,x+1,e.allowHalf,e.readonly)));let d,l,u=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;const h=()=>{l=rn(i);const R=s.value.map(rn);d=[],R.forEach((x,b)=>{u=Math.min(x.top,u),f=Math.max(x.top,f),e.allowHalf?d.push({score:b+.5,left:x.left,top:x.top,height:x.height},{score:b+1,left:x.left+x.width/2,top:x.top,height:x.height}):d.push({score:b+1,left:x.left,top:x.top,height:x.height})})},_=(R,x)=>{for(let b=d.length-1;b>0;b--)if(x>=l.top&&x<=l.bottom){if(R>d[b].left&&x>=d[b].top&&x<=d[b].top+d[b].height)return d[b].score}else{const I=x<l.top?u:f;if(R>d[b].left&&d[b].top===I)return d[b].score}return e.allowHalf?.5:1},m=R=>{a.value||R===e.modelValue||(t("update:modelValue",R),t("change",R))},p=R=>{r.value||(n.start(R),h())},v=R=>{if(!r.value&&(n.move(R),n.isHorizontal()&&!n.isTap.value)){const{clientX:x,clientY:b}=R.touches[0];yn(R),m(_(x,b))}},E=(R,x)=>{const{icon:b,size:I,color:P,count:K,gutter:L,voidIcon:j,disabled:B,voidColor:O,allowHalf:Q,iconPrefix:Z,disabledColor:Ce}=e,he=x+1,ae=R.status==="full",de=R.status==="void",xe=Q&&R.value>0&&R.value<1;let we;L&&he!==+K&&(we={paddingRight:it(L)});const oe=ne=>{h();let ie=Q?_(ne.clientX,ne.clientY):he;e.clearable&&n.isTap.value&&ie===e.modelValue&&(ie=0),m(ie)};return C("div",{key:x,ref:o(x),role:"radio",style:we,class:Wo("item"),tabindex:B?void 0:0,"aria-setsize":K,"aria-posinset":he,"aria-checked":!de,onClick:oe},[C(It,{size:I,name:ae?b:j,class:Wo("icon",{disabled:B,full:ae}),color:B?Ce:ae?P:O,classPrefix:Z},null),xe&&C(It,{size:I,style:{width:R.value+"em"},name:de?j:b,class:Wo("icon",["half",{disabled:B,full:!de}]),color:B?Ce:de?O:P,classPrefix:Z},null)])};return Sd(()=>e.modelValue),ts("touchmove",v,{target:i}),()=>C("div",{ref:i,role:"radiogroup",class:Wo({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstartPassive:p},[c.value.map(E)])}});const Cv=Ge(Ev),[xv,Vs,kv]=He("search"),Tv=Ke({},kr,{label:String,shape:Be("square"),leftIcon:Be("search"),clearable:qe,actionText:String,background:String,showAction:Boolean});var Av=be({name:xv,props:Tv,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n,attrs:s}){const o=xo(),i=q(),a=()=>{n.action||(t("update:modelValue",""),t("cancel"))},r=b=>{b.keyCode===13&&(yn(b),t("search",e.modelValue))},c=()=>e.id||`${o}-input`,d=()=>{if(n.label||e.label)return C("label",{class:Vs("label"),for:c(),"data-allow-mismatch":"attribute"},[n.label?n.label():e.label])},l=()=>{if(e.showAction){const b=e.actionText||kv("cancel");return C("div",{class:Vs("action"),role:"button",tabindex:0,onClick:a},[n.action?n.action():b])}},u=()=>{var b;return(b=i.value)==null?void 0:b.blur()},f=()=>{var b;return(b=i.value)==null?void 0:b.focus()},h=b=>t("blur",b),_=b=>t("focus",b),m=b=>t("clear",b),p=b=>t("clickInput",b),v=b=>t("clickLeftIcon",b),E=b=>t("clickRightIcon",b),R=Object.keys(kr),x=()=>{const b=Ke({},s,En(e,R),{id:c()}),I=P=>t("update:modelValue",P);return C(Tr,Tt({ref:i,type:"search",class:Vs("field",{"with-message":b.errorMessage}),border:!1,labelAlign:"left",onBlur:h,onFocus:_,onClear:m,onKeypress:r,onClickInput:p,onClickLeftIcon:v,onClickRightIcon:E,"onUpdate:modelValue":I},b),En(n,["left-icon","right-icon"]))};return Bt({focus:f,blur:u}),()=>{var b;return C("div",{class:Vs({"show-action":e.showAction}),style:{background:e.background}},[(b=n.left)==null?void 0:b.call(n),C("div",{class:Vs("content",e.shape)},[d(),x()]),l()])}}});const Rv=Ge(Av);/*!
* pinia v2.3.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let tf;const Pi=e=>tf=e,nf=Symbol();function La(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var so;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(so||(so={}));function Iv(){const e=tu(!0),t=e.run(()=>q({}));let n=[],s=[];const o=ar({install(i){Pi(o),o._a=i,i.provide(nf,o),i.config.globalProperties.$pinia=o,s.forEach(a=>n.push(a)),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 sf=()=>{};function Gl(e,t,n,s=sf){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&tr()&&nu(o),o}function as(e,...t){e.slice().forEach(n=>{n(...t)})}const $v=e=>e(),Jl=Symbol(),oa=Symbol();function Ma(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];La(o)&&La(s)&&e.hasOwnProperty(n)&&!Ye(s)&&!vn(s)?e[n]=Ma(o,s):e[n]=s}return e}const Ov=Symbol();function Pv(e){return!La(e)||!e.hasOwnProperty(Ov)}const{assign:$n}=Object;function Dv(e){return!!(Ye(e)&&e.effect)}function Bv(e,t,n,s){const{state:o,actions:i,getters:a}=t,r=n.state.value[e];let c;function d(){r||(n.state.value[e]=o?o():{});const l=$h(n.state.value[e]);return $n(l,i,Object.keys(a||{}).reduce((u,f)=>(u[f]=ar(V(()=>{Pi(n);const h=n._s.get(e);return a[f].call(h,h)})),u),{}))}return c=of(e,d,t,n,s,!0),c}function of(e,t,n={},s,o,i){let a;const r=$n({actions:{}},n),c={deep:!0};let d,l,u=[],f=[],h;const _=s.state.value[e];!i&&!_&&(s.state.value[e]={});let m;function p(K){let L;d=l=!1,typeof K=="function"?(K(s.state.value[e]),L={type:so.patchFunction,storeId:e,events:h}):(Ma(s.state.value[e],K),L={type:so.patchObject,payload:K,storeId:e,events:h});const j=m=Symbol();Xe().then(()=>{m===j&&(d=!0)}),l=!0,as(u,L,s.state.value[e])}const v=i?function(){const{state:L}=n,j=L?L():{};this.$patch(B=>{$n(B,j)})}:sf;function E(){a.stop(),u=[],f=[],s._s.delete(e)}const R=(K,L="")=>{if(Jl in K)return K[oa]=L,K;const j=function(){Pi(s);const B=Array.from(arguments),O=[],Q=[];function Z(ae){O.push(ae)}function Ce(ae){Q.push(ae)}as(f,{args:B,name:j[oa],store:b,after:Z,onError:Ce});let he;try{he=K.apply(this&&this.$id===e?this:b,B)}catch(ae){throw as(Q,ae),ae}return he instanceof Promise?he.then(ae=>(as(O,ae),ae)).catch(ae=>(as(Q,ae),Promise.reject(ae))):(as(O,he),he)};return j[Jl]=!0,j[oa]=L,j},x={_p:s,$id:e,$onAction:Gl.bind(null,f),$patch:p,$reset:v,$subscribe(K,L={}){const j=Gl(u,K,L.detached,()=>B()),B=a.run(()=>ke(()=>s.state.value[e],O=>{(L.flush==="sync"?l:d)&&K({storeId:e,type:so.direct,events:h},O)},$n({},c,L)));return j},$dispose:E},b=pt(x);s._s.set(e,b);const P=(s._a&&s._a.runWithContext||$v)(()=>s._e.run(()=>(a=tu()).run(()=>t({action:R}))));for(const K in P){const L=P[K];if(Ye(L)&&!Dv(L)||vn(L))i||(_&&Pv(L)&&(Ye(L)?L.value=_[K]:Ma(L,_[K])),s.state.value[e][K]=L);else if(typeof L=="function"){const j=R(L,K);P[K]=j,r.actions[K]=L}}return $n(b,P),$n(Pe(b),P),Object.defineProperty(b,"$state",{get:()=>s.state.value[e],set:K=>{p(L=>{$n(L,K)})}}),s._p.forEach(K=>{$n(b,a.run(()=>K({store:b,app:s._a,pinia:s,options:r})))}),_&&i&&n.hydrate&&n.hydrate(b.$state,_),d=!0,l=!0,b}/*! #__NO_SIDE_EFFECTS__ */function Rr(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 a(r,c){const d=Vh();return r=r||(d?ht(nf,null):null),r&&Pi(r),r=tf,r._s.has(s)||(i?of(s,t,o,r):Bv(s,o,r)),r._s.get(s)}return a.$id=s,a}const af="it_desk_h5_theme";function Xl(e){document.documentElement.setAttribute("data-theme",e),localStorage.setItem(af,e)}function Nv(){const e=localStorage.getItem(af);return e==="dark"||e==="light"?e:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const rf=Rr("theme",()=>{const e=q("light");function t(){const s=e.value==="light"?"dark":"light";e.value=s,Xl(s)}function n(){const s=Nv();e.value=s,Xl(s)}return{currentTheme:e,toggleTheme:t,initTheme:n}}),Lv={class:"app-loading"},Mv={key:1,class:"app-loading"},Fv=be({__name:"App",setup(e){const t=rf(),n=q(!1);return st(()=>{t.initTheme(),n.value=!0}),(s,o)=>{const i=Co,a=op("router-view"),r=lv;return k(),Rt(r,{theme:Ae(t).currentTheme},{default:Je(()=>[n.value?(k(),Rt(a,{key:0},{default:Je(({Component:c})=>[(k(),Rt(Op,null,{fallback:Je(()=>[g("div",Lv,[C(i,{type:"spinner",color:"#1989fa",size:"36"}),o[0]||(o[0]=g("div",{class:"app-loading__text"},"正在加载...",-1))])]),default:Je(()=>[(k(),Rt(ip(c)))]),_:2},1024))]),_:1})):(k(),A("div",Mv,[C(i,{type:"spinner",color:"#1989fa",size:"36"}),o[1]||(o[1]=g("div",{class:"app-loading__text"},"正在加载...",-1))]))]),_:1},8,["theme"])}}}),Vv="modulepreload",jv=function(e){return"/h5/"+e},Yl={},Hn=function(t,n,s){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),r=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=jv(c),c in Yl)return;Yl[c]=!0;const d=c.endsWith(".css"),l=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${l}`))return;const u=document.createElement("link");if(u.rel=d?"stylesheet":Vv,d||(u.as="script"),u.crossOrigin="",u.href=c,r&&u.setAttribute("nonce",r),document.head.appendChild(u),d)return new Promise((f,h)=>{u.addEventListener("load",f),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=a,window.dispatchEvent(r),!r.defaultPrevented)throw a}return o.then(a=>{for(const r of a||[])r.status==="rejected"&&i(r.reason);return t().catch(i)})};/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const us=typeof document<"u";function lf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function qv(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&lf(e.default)}const Le=Object.assign;function ia(e,t){const n={};for(const s in t){const o=t[s];n[s]=Zt(o)?o.map(e):e(o)}return n}const oo=()=>{},Zt=Array.isArray;function Ql(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const cf=/#/g,Uv=/&/g,zv=/\//g,Hv=/=/g,Wv=/\?/g,uf=/\+/g,Kv=/%5B/g,Gv=/%5D/g,df=/%5E/g,Jv=/%60/g,ff=/%7B/g,Xv=/%7C/g,hf=/%7D/g,Yv=/%20/g;function Ir(e){return e==null?"":encodeURI(""+e).replace(Xv,"|").replace(Kv,"[").replace(Gv,"]")}function Qv(e){return Ir(e).replace(ff,"{").replace(hf,"}").replace(df,"^")}function Fa(e){return Ir(e).replace(uf,"%2B").replace(Yv,"+").replace(cf,"%23").replace(Uv,"%26").replace(Jv,"`").replace(ff,"{").replace(hf,"}").replace(df,"^")}function Zv(e){return Fa(e).replace(Hv,"%3D")}function ey(e){return Ir(e).replace(cf,"%23").replace(Wv,"%3F")}function ty(e){return ey(e).replace(zv,"%2F")}function _o(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const ny=/\/$/,sy=e=>e.replace(ny,"");function aa(e,t,n="/"){let s,o={},i="",a="";const r=t.indexOf("#");let c=t.indexOf("?");return c=r>=0&&c>r?-1:c,c>=0&&(s=t.slice(0,c),i=t.slice(c,r>0?r:t.length),o=e(i.slice(1))),r>=0&&(s=s||t.slice(0,r),a=t.slice(r,t.length)),s=ry(s??t,n),{fullPath:s+i+a,path:s,query:o,hash:_o(a)}}function oy(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Zl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function iy(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&Es(t.matched[s],n.matched[o])&&pf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Es(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function pf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ay(e[n],t[n]))return!1;return!0}function ay(e,t){return Zt(e)?ec(e,t):Zt(t)?ec(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function ec(e,t){return Zt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function ry(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,a,r;for(a=0;a<s.length;a++)if(r=s[a],r!==".")if(r==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(a).join("/")}const An={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Va=function(e){return e.pop="pop",e.push="push",e}({}),ra=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function ly(e){if(!e)if(us){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),sy(e)}const cy=/^[^#]+#/;function uy(e,t){return e.replace(cy,"#")+t}function dy(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 Di=()=>({left:window.scrollX,top:window.scrollY});function fy(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=dy(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 tc(e,t){return(history.state?history.state.position-t:-1)+e}const ja=new Map;function hy(e,t){ja.set(e,t)}function py(e){const t=ja.get(e);return ja.delete(e),t}function my(e){return typeof e=="string"||e&&typeof e=="object"}function mf(e){return typeof e=="string"||typeof e=="symbol"}let et=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 _f=Symbol("");et.MATCHER_NOT_FOUND+"",et.NAVIGATION_GUARD_REDIRECT+"",et.NAVIGATION_ABORTED+"",et.NAVIGATION_CANCELLED+"",et.NAVIGATION_DUPLICATED+"";function Cs(e,t){return Le(new Error,{type:e,[_f]:!0},t)}function fn(e,t){return e instanceof Error&&_f in e&&(t==null||!!(e.type&t))}const _y=["params","query","hash"];function gy(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of _y)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function vy(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const o=n[s].replace(uf," "),i=o.indexOf("="),a=_o(i<0?o:o.slice(0,i)),r=i<0?null:_o(o.slice(i+1));if(a in t){let c=t[a];Zt(c)||(c=t[a]=[c]),c.push(r)}else t[a]=r}return t}function nc(e){let t="";for(let n in e){const s=e[n];if(n=Zv(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Zt(s)?s.map(o=>o&&Fa(o)):[s&&Fa(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function yy(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Zt(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const by=Symbol(""),sc=Symbol(""),Bi=Symbol(""),$r=Symbol(""),qa=Symbol("");function js(){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 Pn(e,t,n,s,o,i=a=>a()){const a=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((r,c)=>{const d=f=>{f===!1?c(Cs(et.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?c(f):my(f)?c(Cs(et.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(a&&s.enterCallbacks[o]===a&&typeof f=="function"&&a.push(f),r())},l=i(()=>e.call(s&&s.instances[o],t,n,d));let u=Promise.resolve(l);e.length<3&&(u=u.then(d)),u.catch(f=>c(f))})}function la(e,t,n,s,o=i=>i()){const i=[];for(const a of e)for(const r in a.components){let c=a.components[r];if(!(t!=="beforeRouteEnter"&&!a.instances[r]))if(lf(c)){const d=(c.__vccOpts||c)[t];d&&i.push(Pn(d,n,s,a,r,o))}else{let d=c();i.push(()=>d.then(l=>{if(!l)throw new Error(`Couldn't resolve component "${r}" at "${a.path}"`);const u=qv(l)?l.default:l;a.mods[r]=l,a.components[r]=u;const f=(u.__vccOpts||u)[t];return f&&Pn(f,n,s,a,r,o)()}))}}return i}function wy(e,t){const n=[],s=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const r=t.matched[a];r&&(e.matched.find(d=>Es(d,r))?s.push(r):n.push(r));const c=e.matched[a];c&&(t.matched.find(d=>Es(d,c))||o.push(c))}return[n,s,o]}/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let Sy=()=>location.protocol+"//"+location.host;function gf(e,t){const{pathname:n,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){let a=o.includes(e.slice(i))?e.slice(i).length:1,r=o.slice(a);return r[0]!=="/"&&(r="/"+r),Zl(r,"")}return Zl(n,e)+s+o}function Ey(e,t,n,s){let o=[],i=[],a=null;const r=({state:f})=>{const h=gf(e,location),_=n.value,m=t.value;let p=0;if(f){if(n.value=h,t.value=f,a&&a===_){a=null;return}p=m?f.position-m.position:0}else s(h);o.forEach(v=>{v(n.value,_,{delta:p,type:Va.pop,direction:p?p>0?ra.forward:ra.back:ra.unknown})})};function c(){a=n.value}function d(f){o.push(f);const h=()=>{const _=o.indexOf(f);_>-1&&o.splice(_,1)};return i.push(h),h}function l(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Le({},f.state,{scroll:Di()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",r),window.removeEventListener("pagehide",l),document.removeEventListener("visibilitychange",l)}return window.addEventListener("popstate",r),window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",l),{pauseListeners:c,listen:d,destroy:u}}function oc(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?Di():null}}function Cy(e){const{history:t,location:n}=window,s={value:gf(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(c,d,l){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+c:Sy()+e+c;try{t[l?"replaceState":"pushState"](d,"",f),o.value=d}catch(h){console.error(h),n[l?"replace":"assign"](f)}}function a(c,d){i(c,Le({},t.state,oc(o.value.back,c,o.value.forward,!0),d,{position:o.value.position}),!0),s.value=c}function r(c,d){const l=Le({},o.value,t.state,{forward:c,scroll:Di()});i(l.current,l,!0),i(c,Le({},oc(s.value,c,null),{position:l.position+1},d),!1),s.value=c}return{location:s,state:o,push:r,replace:a}}function xy(e){e=ly(e);const t=Cy(e),n=Ey(e,t.state,t.location,t.replace);function s(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=Le({location:"",base:e,go:s,createHref:uy.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 Wn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var rt=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}(rt||{});const ky={type:Wn.Static,value:""},Ty=/[a-zA-Z0-9_]/;function Ay(e){if(!e)return[[]];if(e==="/")return[[ky]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${d}": ${h}`)}let n=rt.Static,s=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let r=0,c,d="",l="";function u(){d&&(n===rt.Static?i.push({type:Wn.Static,value:d}):n===rt.Param||n===rt.ParamRegExp||n===rt.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Wn.Param,value:d,regexp:l,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=c}for(;r<e.length;){if(c=e[r++],c==="\\"&&n!==rt.ParamRegExp){s=n,n=rt.EscapeNext;continue}switch(n){case rt.Static:c==="/"?(d&&u(),a()):c===":"?(u(),n=rt.Param):f();break;case rt.EscapeNext:f(),n=s;break;case rt.Param:c==="("?n=rt.ParamRegExp:Ty.test(c)?f():(u(),n=rt.Static,c!=="*"&&c!=="?"&&c!=="+"&&r--);break;case rt.ParamRegExp:c===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+c:n=rt.ParamRegExpEnd:l+=c;break;case rt.ParamRegExpEnd:u(),n=rt.Static,c!=="*"&&c!=="?"&&c!=="+"&&r--,l="";break;default:t("Unknown state");break}}return n===rt.ParamRegExp&&t(`Unfinished custom RegExp for param "${d}"`),u(),a(),o}const ic="[^/]+?",Ry={sensitive:!1,strict:!1,start:!0,end:!0};var St=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(St||{});const Iy=/[.+*?^${}()[\]/\\]/g;function $y(e,t){const n=Le({},Ry,t),s=[];let o=n.start?"^":"";const i=[];for(const d of e){const l=d.length?[]:[St.Root];n.strict&&!d.length&&(o+="/");for(let u=0;u<d.length;u++){const f=d[u];let h=St.Segment+(n.sensitive?St.BonusCaseSensitive:0);if(f.type===Wn.Static)u||(o+="/"),o+=f.value.replace(Iy,"\\$&"),h+=St.Static;else if(f.type===Wn.Param){const{value:_,repeatable:m,optional:p,regexp:v}=f;i.push({name:_,repeatable:m,optional:p});const E=v||ic;if(E!==ic){h+=St.BonusCustomRegExp;try{`${E}`}catch(x){throw new Error(`Invalid custom RegExp for param "${_}" (${E}): `+x.message)}}let R=m?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;u||(R=p&&d.length<2?`(?:/${R})`:"/"+R),p&&(R+="?"),o+=R,h+=St.Dynamic,p&&(h+=St.BonusOptional),m&&(h+=St.BonusRepeatable),E===".*"&&(h+=St.BonusWildcard)}l.push(h)}s.push(l)}if(n.strict&&n.end){const d=s.length-1;s[d][s[d].length-1]+=St.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function r(d){const l=d.match(a),u={};if(!l)return null;for(let f=1;f<l.length;f++){const h=l[f]||"",_=i[f-1];u[_.name]=h&&_.repeatable?h.split("/"):h}return u}function c(d){let l="",u=!1;for(const f of e){(!u||!l.endsWith("/"))&&(l+="/"),u=!1;for(const h of f)if(h.type===Wn.Static)l+=h.value;else if(h.type===Wn.Param){const{value:_,repeatable:m,optional:p}=h,v=_ in d?d[_]:"";if(Zt(v)&&!m)throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);const E=Zt(v)?v.join("/"):v;if(!E)if(p)f.length<2&&(l.endsWith("/")?l=l.slice(0,-1):u=!0);else throw new Error(`Missing required param "${_}"`);l+=E}}return l||"/"}return{re:a,score:s,keys:i,parse:r,stringify:c}}function Oy(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===St.Static+St.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===St.Static+St.Segment?1:-1:0}function vf(e,t){let n=0;const s=e.score,o=t.score;for(;n<s.length&&n<o.length;){const i=Oy(s[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-s.length)===1){if(ac(s))return 1;if(ac(o))return-1}return o.length-s.length}function ac(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Py={strict:!1,end:!0,sensitive:!1};function Dy(e,t,n){const s=$y(Ay(e.path),n),o=Le(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function By(e,t){const n=[],s=new Map;t=Ql(Py,t);function o(u){return s.get(u)}function i(u,f,h){const _=!h,m=lc(u);m.aliasOf=h&&h.record;const p=Ql(t,u),v=[m];if("alias"in u){const x=typeof u.alias=="string"?[u.alias]:u.alias;for(const b of x)v.push(lc(Le({},m,{components:h?h.record.components:m.components,path:b,aliasOf:h?h.record:m})))}let E,R;for(const x of v){const{path:b}=x;if(f&&b[0]!=="/"){const I=f.record.path,P=I[I.length-1]==="/"?"":"/";x.path=f.record.path+(b&&P+b)}if(E=Dy(x,f,p),h?h.alias.push(E):(R=R||E,R!==E&&R.alias.push(E),_&&u.name&&!cc(E)&&a(u.name)),yf(E)&&c(E),m.children){const I=m.children;for(let P=0;P<I.length;P++)i(I[P],E,h&&h.children[P])}h=h||E}return R?()=>{a(R)}:oo}function a(u){if(mf(u)){const f=s.get(u);f&&(s.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&s.delete(u.record.name),u.children.forEach(a),u.alias.forEach(a))}}function r(){return n}function c(u){const f=My(u,n);n.splice(f,0,u),u.record.name&&!cc(u)&&s.set(u.record.name,u)}function d(u,f){let h,_={},m,p;if("name"in u&&u.name){if(h=s.get(u.name),!h)throw Cs(et.MATCHER_NOT_FOUND,{location:u});p=h.record.name,_=Le(rc(f.params,h.keys.filter(R=>!R.optional).concat(h.parent?h.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),u.params&&rc(u.params,h.keys.map(R=>R.name))),m=h.stringify(_)}else if(u.path!=null)m=u.path,h=n.find(R=>R.re.test(m)),h&&(_=h.parse(m),p=h.record.name);else{if(h=f.name?s.get(f.name):n.find(R=>R.re.test(f.path)),!h)throw Cs(et.MATCHER_NOT_FOUND,{location:u,currentLocation:f});p=h.record.name,_=Le({},f.params,u.params),m=h.stringify(_)}const v=[];let E=h;for(;E;)v.unshift(E.record),E=E.parent;return{name:p,path:m,params:_,matched:v,meta:Ly(v)}}e.forEach(u=>i(u));function l(){n.length=0,s.clear()}return{addRoute:i,resolve:d,removeRoute:a,clearRoutes:l,getRoutes:r,getRecordMatcher:o}}function rc(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function lc(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ny(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 Ny(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 cc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ly(e){return e.reduce((t,n)=>Le(t,n.meta),{})}function My(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;vf(e,t[i])<0?s=i:n=i+1}const o=Fy(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function Fy(e){let t=e;for(;t=t.parent;)if(yf(t)&&vf(e,t)===0)return t}function yf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function uc(e){const t=ht(Bi),n=ht($r),s=V(()=>{const c=Ae(e.to);return t.resolve(c)}),o=V(()=>{const{matched:c}=s.value,{length:d}=c,l=c[d-1],u=n.matched;if(!l||!u.length)return-1;const f=u.findIndex(Es.bind(null,l));if(f>-1)return f;const h=dc(c[d-2]);return d>1&&dc(l)===h&&u[u.length-1].path!==h?u.findIndex(Es.bind(null,c[d-2])):f}),i=V(()=>o.value>-1&&zy(n.params,s.value.params)),a=V(()=>o.value>-1&&o.value===n.matched.length-1&&pf(n.params,s.value.params));function r(c={}){if(Uy(c)){const d=t[Ae(e.replace)?"replace":"push"](Ae(e.to)).catch(oo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:s,href:V(()=>s.value.href),isActive:i,isExactActive:a,navigate:r}}function Vy(e){return e.length===1?e[0]:e}const jy=be({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:uc,setup(e,{slots:t}){const n=pt(uc(e)),{options:s}=ht(Bi),o=V(()=>({[fc(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[fc(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&Vy(t.default(n));return e.custom?i:_r("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),qy=jy;function Uy(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 zy(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(!Zt(o)||o.length!==s.length||s.some((i,a)=>i.valueOf()!==o[a].valueOf()))return!1}return!0}function dc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fc=(e,t,n)=>e??t??n,Hy=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ht(qa),o=V(()=>e.route||s.value),i=ht(sc,0),a=V(()=>{let d=Ae(i);const{matched:l}=o.value;let u;for(;(u=l[d])&&!u.components;)d++;return d}),r=V(()=>o.value.matched[a.value]);cn(sc,V(()=>a.value+1)),cn(by,r),cn(qa,o);const c=q();return ke(()=>[c.value,r.value,e.name],([d,l,u],[f,h,_])=>{l&&(l.instances[u]=d,h&&h!==l&&d&&d===f&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),d&&l&&(!h||!Es(l,h)||!f)&&(l.enterCallbacks[u]||[]).forEach(m=>m(d))},{flush:"post"}),()=>{const d=o.value,l=e.name,u=r.value,f=u&&u.components[l];if(!f)return hc(n.default,{Component:f,route:d});const h=u.props[l],_=h?h===!0?d.params:typeof h=="function"?h(d):h:null,p=_r(f,Le({},_,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(u.instances[l]=null)},ref:c}));return hc(n.default,{Component:p,route:d})||p}}});function hc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Wy=Hy;function Ky(e){const t=By(e.routes,e),n=e.parseQuery||vy,s=e.stringifyQuery||nc,o=e.history,i=js(),a=js(),r=js(),c=Dn(An);let d=An;us&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=ia.bind(null,S=>""+S),u=ia.bind(null,ty),f=ia.bind(null,_o);function h(S,M){let z,N;return mf(S)?(z=t.getRecordMatcher(S),N=M):N=S,t.addRoute(N,z)}function _(S){const M=t.getRecordMatcher(S);M&&t.removeRoute(M)}function m(){return t.getRoutes().map(S=>S.record)}function p(S){return!!t.getRecordMatcher(S)}function v(S,M){if(M=Le({},M||c.value),typeof S=="string"){const T=aa(n,S,M.path),U=t.resolve({path:T.path},M),G=o.createHref(T.fullPath);return Le(T,U,{params:f(U.params),hash:_o(T.hash),redirectedFrom:void 0,href:G})}let z;if(S.path!=null)z=Le({},S,{path:aa(n,S.path,M.path).path});else{const T=Le({},S.params);for(const U in T)T[U]==null&&delete T[U];z=Le({},S,{params:u(T)}),M.params=u(M.params)}const N=t.resolve(z,M),H=S.hash||"";N.params=l(f(N.params));const y=oy(s,Le({},S,{hash:Qv(H),path:N.path})),w=o.createHref(y);return Le({fullPath:y,hash:H,query:s===nc?yy(S.query):S.query||{}},N,{redirectedFrom:void 0,href:w})}function E(S){return typeof S=="string"?aa(n,S,c.value.path):Le({},S)}function R(S,M){if(d!==S)return Cs(et.NAVIGATION_CANCELLED,{from:M,to:S})}function x(S){return P(S)}function b(S){return x(Le(E(S),{replace:!0}))}function I(S,M){const z=S.matched[S.matched.length-1];if(z&&z.redirect){const{redirect:N}=z;let H=typeof N=="function"?N(S,M):N;return typeof H=="string"&&(H=H.includes("?")||H.includes("#")?H=E(H):{path:H},H.params={}),Le({query:S.query,hash:S.hash,params:H.path!=null?{}:S.params},H)}}function P(S,M){const z=d=v(S),N=c.value,H=S.state,y=S.force,w=S.replace===!0,T=I(z,N);if(T)return P(Le(E(T),{state:typeof T=="object"?Le({},H,T.state):H,force:y,replace:w}),M||z);const U=z;U.redirectedFrom=M;let G;return!y&&iy(s,N,z)&&(G=Cs(et.NAVIGATION_DUPLICATED,{to:U,from:N}),oe(N,N,!0,!1)),(G?Promise.resolve(G):j(U,N)).catch(W=>fn(W)?fn(W,et.NAVIGATION_GUARD_REDIRECT)?W:we(W):de(W,U,N)).then(W=>{if(W){if(fn(W,et.NAVIGATION_GUARD_REDIRECT))return P(Le({replace:w},E(W.to),{state:typeof W.to=="object"?Le({},H,W.to.state):H,force:y}),M||U)}else W=O(U,N,!0,w,H);return B(U,N,W),W})}function K(S,M){const z=R(S,M);return z?Promise.reject(z):Promise.resolve()}function L(S){const M=Re.values().next().value;return M&&typeof M.runWithContext=="function"?M.runWithContext(S):S()}function j(S,M){let z;const[N,H,y]=wy(S,M);z=la(N.reverse(),"beforeRouteLeave",S,M);for(const T of N)T.leaveGuards.forEach(U=>{z.push(Pn(U,S,M))});const w=K.bind(null,S,M);return z.push(w),ce(z).then(()=>{z=[];for(const T of i.list())z.push(Pn(T,S,M));return z.push(w),ce(z)}).then(()=>{z=la(H,"beforeRouteUpdate",S,M);for(const T of H)T.updateGuards.forEach(U=>{z.push(Pn(U,S,M))});return z.push(w),ce(z)}).then(()=>{z=[];for(const T of y)if(T.beforeEnter)if(Zt(T.beforeEnter))for(const U of T.beforeEnter)z.push(Pn(U,S,M));else z.push(Pn(T.beforeEnter,S,M));return z.push(w),ce(z)}).then(()=>(S.matched.forEach(T=>T.enterCallbacks={}),z=la(y,"beforeRouteEnter",S,M,L),z.push(w),ce(z))).then(()=>{z=[];for(const T of a.list())z.push(Pn(T,S,M));return z.push(w),ce(z)}).catch(T=>fn(T,et.NAVIGATION_CANCELLED)?T:Promise.reject(T))}function B(S,M,z){r.list().forEach(N=>L(()=>N(S,M,z)))}function O(S,M,z,N,H){const y=R(S,M);if(y)return y;const w=M===An,T=us?history.state:{};z&&(N||w?o.replace(S.fullPath,Le({scroll:w&&T&&T.scroll},H)):o.push(S.fullPath,H)),c.value=S,oe(S,M,z,w),we()}let Q;function Z(){Q||(Q=o.listen((S,M,z)=>{if(!Y.listening)return;const N=v(S),H=I(N,Y.currentRoute.value);if(H){P(Le(H,{replace:!0,force:!0}),N).catch(oo);return}d=N;const y=c.value;us&&hy(tc(y.fullPath,z.delta),Di()),j(N,y).catch(w=>fn(w,et.NAVIGATION_ABORTED|et.NAVIGATION_CANCELLED)?w:fn(w,et.NAVIGATION_GUARD_REDIRECT)?(P(Le(E(w.to),{force:!0}),N).then(T=>{fn(T,et.NAVIGATION_ABORTED|et.NAVIGATION_DUPLICATED)&&!z.delta&&z.type===Va.pop&&o.go(-1,!1)}).catch(oo),Promise.reject()):(z.delta&&o.go(-z.delta,!1),de(w,N,y))).then(w=>{w=w||O(N,y,!1),w&&(z.delta&&!fn(w,et.NAVIGATION_CANCELLED)?o.go(-z.delta,!1):z.type===Va.pop&&fn(w,et.NAVIGATION_ABORTED|et.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),B(N,y,w)}).catch(oo)}))}let Ce=js(),he=js(),ae;function de(S,M,z){we(S);const N=he.list();return N.length?N.forEach(H=>H(S,M,z)):console.error(S),Promise.reject(S)}function xe(){return ae&&c.value!==An?Promise.resolve():new Promise((S,M)=>{Ce.add([S,M])})}function we(S){return ae||(ae=!S,Z(),Ce.list().forEach(([M,z])=>S?z(S):M()),Ce.reset()),S}function oe(S,M,z,N){const{scrollBehavior:H}=e;if(!us||!H)return Promise.resolve();const y=!z&&py(tc(S.fullPath,0))||(N||!z)&&history.state&&history.state.scroll||null;return Xe().then(()=>H(S,M,y)).then(w=>w&&fy(w)).catch(w=>de(w,S,M))}const ne=S=>o.go(S);let ie;const Re=new Set,Y={currentRoute:c,listening:!0,addRoute:h,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:m,resolve:v,options:e,push:x,replace:b,go:ne,back:()=>ne(-1),forward:()=>ne(1),beforeEach:i.add,beforeResolve:a.add,afterEach:r.add,onError:he.add,isReady:xe,install(S){S.component("RouterLink",qy),S.component("RouterView",Wy),S.config.globalProperties.$router=Y,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>Ae(c)}),us&&!ie&&c.value===An&&(ie=!0,x(o.location).catch(N=>{}));const M={};for(const N in An)Object.defineProperty(M,N,{get:()=>c.value[N],enumerable:!0});S.provide(Bi,Y),S.provide($r,yu(M)),S.provide(qa,c);const z=S.unmount;Re.add(S),S.unmount=function(){Re.delete(S),Re.size<1&&(d=An,Q&&Q(),Q=null,c.value=An,ie=!1,ae=!1),z()}}};function ce(S){return S.reduce((M,z)=>M.then(()=>L(z)),Promise.resolve())}return Y}function bf(){return ht(Bi)}function wf(e){return ht($r)}function Sf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Gy}=Object.prototype,{getPrototypeOf:Ni}=Object,{iterator:Li,toStringTag:Ef}=Symbol,Mi=(e=>t=>{const n=Gy.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),en=e=>(e=e.toLowerCase(),t=>Mi(t)===e),Fi=e=>t=>typeof t===e,{isArray:Os}=Array,xs=Fi("undefined");function ko(e){return e!==null&&!xs(e)&&e.constructor!==null&&!xs(e.constructor)&&$t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cf=en("ArrayBuffer");function Jy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cf(e.buffer),t}const Xy=Fi("string"),$t=Fi("function"),xf=Fi("number"),To=e=>e!==null&&typeof e=="object",Yy=e=>e===!0||e===!1,Zo=e=>{if(Mi(e)!=="object")return!1;const t=Ni(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ef in e)&&!(Li in e)},Qy=e=>{if(!To(e)||ko(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Zy=en("Date"),eb=en("File"),tb=e=>!!(e&&typeof e.uri<"u"),nb=e=>e&&typeof e.getParts<"u",sb=en("Blob"),ob=en("FileList"),ib=e=>To(e)&&$t(e.pipe);function ab(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const pc=ab(),mc=typeof pc.FormData<"u"?pc.FormData:void 0,rb=e=>{if(!e)return!1;if(mc&&e instanceof mc)return!0;const t=Ni(e);if(!t||t===Object.prototype||!$t(e.append))return!1;const n=Mi(e);return n==="formdata"||n==="object"&&$t(e.toString)&&e.toString()==="[object FormData]"},lb=en("URLSearchParams"),[cb,ub,db,fb]=["ReadableStream","Request","Response","Headers"].map(en),hb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ao(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),Os(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{if(ko(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let r;for(s=0;s<a;s++)r=i[s],t.call(null,e[r],r,e)}}function kf(e,t){if(ko(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,o;for(;s-- >0;)if(o=n[s],t===o.toLowerCase())return o;return null}const Kn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tf=e=>!xs(e)&&e!==Kn;function Ua(...e){const{caseless:t,skipUndefined:n}=Tf(this)&&this||{},s={},o=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const r=t&&kf(s,a)||a,c=za(s,r)?s[r]:void 0;Zo(c)&&Zo(i)?s[r]=Ua(c,i):Zo(i)?s[r]=Ua({},i):Os(i)?s[r]=i.slice():(!n||!xs(i))&&(s[r]=i)};for(let i=0,a=e.length;i<a;i++)e[i]&&Ao(e[i],o);return s}const pb=(e,t,n,{allOwnKeys:s}={})=>(Ao(t,(o,i)=>{n&&$t(o)?Object.defineProperty(e,i,{__proto__:null,value:Sf(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),mb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_b=(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)},gb=(e,t,n,s)=>{let o,i,a;const r={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!s||s(a,e,t))&&!r[a]&&(t[a]=e[a],r[a]=!0);e=n!==!1&&Ni(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vb=(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},yb=e=>{if(!e)return null;if(Os(e))return e;let t=e.length;if(!xf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ni(Uint8Array)),wb=(e,t)=>{const s=(e&&e[Li]).call(e);let o;for(;(o=s.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Sb=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Eb=en("HTMLFormElement"),Cb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),za=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xb=en("RegExp"),Af=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ao(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(s[i]=a||o)}),Object.defineProperties(e,s)},kb=e=>{Af(e,(t,n)=>{if($t(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if($t(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+"'")})}})},Tb=(e,t)=>{const n={},s=o=>{o.forEach(i=>{n[i]=!0})};return Os(e)?s(e):s(String(e).split(t)),n},Ab=()=>{},Rb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ib(e){return!!(e&&$t(e.append)&&e[Ef]==="FormData"&&e[Li])}const $b=e=>{const t=new WeakSet,n=s=>{if(To(s)){if(t.has(s))return;if(ko(s))return s;if(!("toJSON"in s)){t.add(s);const o=Os(s)?[]:{};return Ao(s,(i,a)=>{const r=n(i);!xs(r)&&(o[a]=r)}),t.delete(s),o}}return s};return n(e)},Ob=en("AsyncFunction"),Pb=e=>e&&(To(e)||$t(e))&&$t(e.then)&&$t(e.catch),Rf=((e,t)=>e?setImmediate:t?((n,s)=>(Kn.addEventListener("message",({source:o,data:i})=>{o===Kn&&i===n&&s.length&&s.shift()()},!1),o=>{s.push(o),Kn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$t(Kn.postMessage)),Db=typeof queueMicrotask<"u"?queueMicrotask.bind(Kn):typeof process<"u"&&process.nextTick||Rf,Bb=e=>e!=null&&$t(e[Li]),D={isArray:Os,isArrayBuffer:Cf,isBuffer:ko,isFormData:rb,isArrayBufferView:Jy,isString:Xy,isNumber:xf,isBoolean:Yy,isObject:To,isPlainObject:Zo,isEmptyObject:Qy,isReadableStream:cb,isRequest:ub,isResponse:db,isHeaders:fb,isUndefined:xs,isDate:Zy,isFile:eb,isReactNativeBlob:tb,isReactNative:nb,isBlob:sb,isRegExp:xb,isFunction:$t,isStream:ib,isURLSearchParams:lb,isTypedArray:bb,isFileList:ob,forEach:Ao,merge:Ua,extend:pb,trim:hb,stripBOM:mb,inherits:_b,toFlatObject:gb,kindOf:Mi,kindOfTest:en,endsWith:vb,toArray:yb,forEachEntry:wb,matchAll:Sb,isHTMLForm:Eb,hasOwnProperty:za,hasOwnProp:za,reduceDescriptors:Af,freezeMethods:kb,toObjectSet:Tb,toCamelCase:Cb,noop:Ab,toFiniteNumber:Rb,findKey:kf,global:Kn,isContextDefined:Tf,isSpecCompliantForm:Ib,toJSONObject:$b,isAsyncFn:Ob,isThenable:Pb,setImmediate:Rf,asap:Db,isIterable:Bb},Nb=D.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"]),Lb=e=>{const t={};let n,s,o;return e&&e.split(`
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),s=a.substring(o+1).trim(),!(!n||t[n]&&Nb[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t};function Mb(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){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 Fb=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Vb=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Or(e,t){return D.isArray(e)?e.map(n=>Or(n,t)):Mb(String(e).replace(t,""))}const jb=e=>Or(e,Fb),qb=e=>Or(e,Vb);function If(e){const t=Object.create(null);return D.forEach(e.toJSON(),(n,s)=>{t[s]=qb(n)}),t}const _c=Symbol("internals");function qs(e){return e&&String(e).trim().toLowerCase()}function ei(e){return e===!1||e==null?e:D.isArray(e)?e.map(ei):jb(String(e))}function Ub(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 zb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ca(e,t,n,s,o){if(D.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!D.isString(t)){if(D.isString(s))return t.indexOf(s)!==-1;if(D.isRegExp(s))return s.test(t)}}function Hb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Wb(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(o,i,a){return this[s].call(this,t,o,i,a)},configurable:!0})})}let kt=class{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function i(r,c,d){const l=qs(c);if(!l)throw new Error("header name must be a non-empty string");const u=D.findKey(o,l);(!u||o[u]===void 0||d===!0||d===void 0&&o[u]!==!1)&&(o[u||c]=ei(r))}const a=(r,c)=>D.forEach(r,(d,l)=>i(d,l,c));if(D.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(D.isString(t)&&(t=t.trim())&&!zb(t))a(Lb(t),n);else if(D.isObject(t)&&D.isIterable(t)){let r={},c,d;for(const l of t){if(!D.isArray(l))throw TypeError("Object iterator must return a key-value pair");r[d=l[0]]=(c=r[d])?D.isArray(c)?[...c,l[1]]:[c,l[1]]:l[1]}a(r,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=qs(t),t){const s=D.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return Ub(o);if(D.isFunction(n))return n.call(this,o,s);if(D.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qs(t),t){const s=D.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||ca(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function i(a){if(a=qs(a),a){const r=D.findKey(s,a);r&&(!n||ca(s,s[r],r,n))&&(delete s[r],o=!0)}}return D.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||ca(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,s={};return D.forEach(this,(o,i)=>{const a=D.findKey(s,i);if(a){n[a]=ei(o),delete n[i];return}const r=t?Hb(i):String(i).trim();r!==i&&delete n[i],n[r]=ei(o),s[r]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&D.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[_c]=this[_c]={accessors:{}}).accessors,o=this.prototype;function i(a){const r=qs(a);s[r]||(Wb(o,a),s[r]=!0)}return D.isArray(t)?t.forEach(i):i(t),this}};kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(kt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});D.freezeMethods(kt);const Kb="[REDACTED ****]";function Gb(e){if(D.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(D.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Jb(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),s=[],o=i=>{if(i===null||typeof i!="object"||D.isBuffer(i))return i;if(s.indexOf(i)!==-1)return;i instanceof kt&&(i=i.toJSON()),s.push(i);let a;if(D.isArray(i))a=[],i.forEach((r,c)=>{const d=o(r);D.isUndefined(d)||(a[c]=d)});else{if(!D.isPlainObject(i)&&Gb(i))return s.pop(),i;a=Object.create(null);for(const[r,c]of Object.entries(i)){const d=n.has(r.toLowerCase())?Kb:o(c);D.isUndefined(d)||(a[r]=d)}}return s.pop(),a};return o(e)}let fe=class $f extends Error{static from(t,n,s,o,i,a){const r=new $f(t.message,n||t.code,s,o,i);return r.cause=t,r.name=t.name,t.status!=null&&r.status==null&&(r.status=t.status),a&&Object.assign(r,a),r}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&&D.hasOwnProp(t,"redact")?t.redact:void 0,s=D.isArray(n)&&n.length>0?Jb(t,n):D.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}}};fe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";fe.ERR_BAD_OPTION="ERR_BAD_OPTION";fe.ECONNABORTED="ECONNABORTED";fe.ETIMEDOUT="ETIMEDOUT";fe.ECONNREFUSED="ECONNREFUSED";fe.ERR_NETWORK="ERR_NETWORK";fe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";fe.ERR_DEPRECATED="ERR_DEPRECATED";fe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";fe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";fe.ERR_CANCELED="ERR_CANCELED";fe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";fe.ERR_INVALID_URL="ERR_INVALID_URL";fe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Xb=null;function Ha(e){return D.isPlainObject(e)||D.isArray(e)}function Of(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function ua(e,t,n){return e?e.concat(t).map(function(o,i){return o=Of(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Yb(e){return D.isArray(e)&&!e.some(Ha)}const Qb=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function Vi(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!D.isUndefined(v[p])});const s=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,r=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,d=r&&D.isSpecCompliantForm(t);if(!D.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(D.isDate(m))return m.toISOString();if(D.isBoolean(m))return m.toString();if(!d&&D.isBlob(m))throw new fe("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(m)||D.isTypedArray(m)?d&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,v){let E=m;if(D.isReactNative(t)&&D.isReactNativeBlob(m))return t.append(ua(v,p,i),l(m)),!1;if(m&&!v&&typeof m=="object"){if(D.endsWith(p,"{}"))p=s?p:p.slice(0,-2),m=JSON.stringify(m);else if(D.isArray(m)&&Yb(m)||(D.isFileList(m)||D.endsWith(p,"[]"))&&(E=D.toArray(m)))return p=Of(p),E.forEach(function(x,b){!(D.isUndefined(x)||x===null)&&t.append(a===!0?ua([p],b,i):a===null?p:p+"[]",l(x))}),!1}return Ha(m)?!0:(t.append(ua(v,p,i),l(m)),!1)}const f=[],h=Object.assign(Qb,{defaultVisitor:u,convertValue:l,isVisitable:Ha});function _(m,p,v=0){if(!D.isUndefined(m)){if(v>c)throw new fe("Object is too deeply nested ("+v+" levels). Max depth: "+c,fe.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),D.forEach(m,function(R,x){(!(D.isUndefined(R)||R===null)&&o.call(t,R,D.isString(x)?x.trim():x,p,h))===!0&&_(R,p?p.concat(x):[x],v+1)}),f.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return _(e),t}function gc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function Pr(e,t){this._pairs=[],e&&Vi(e,this,t)}const Pf=Pr.prototype;Pf.append=function(t,n){this._pairs.push([t,n])};Pf.toString=function(t){const n=t?function(s){return t.call(this,s,gc)}:gc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Zb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Df(e,t,n){if(!t)return e;const s=n&&n.encode||Zb,o=D.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(i?a=i(t,o):a=D.isURLSearchParams(t)?t.toString():new Pr(t,o).toString(s),a){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class vc{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){D.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Dr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ew=typeof URLSearchParams<"u"?URLSearchParams:Pr,tw=typeof FormData<"u"?FormData:null,nw=typeof Blob<"u"?Blob:null,sw={isBrowser:!0,classes:{URLSearchParams:ew,FormData:tw,Blob:nw},protocols:["http","https","file","blob","url","data"]},Br=typeof window<"u"&&typeof document<"u",Wa=typeof navigator=="object"&&navigator||void 0,ow=Br&&(!Wa||["ReactNative","NativeScript","NS"].indexOf(Wa.product)<0),iw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aw=Br&&window.location.href||"http://localhost",rw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Br,hasStandardBrowserEnv:ow,hasStandardBrowserWebWorkerEnv:iw,navigator:Wa,origin:aw},Symbol.toStringTag,{value:"Module"})),yt={...rw,...sw};function lw(e,t){return Vi(e,new yt.classes.URLSearchParams,{visitor:function(n,s,o,i){return yt.isNode&&D.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function cw(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function uw(e){const t={},n=Object.keys(e);let s;const o=n.length;let i;for(s=0;s<o;s++)i=n[s],t[i]=e[i];return t}function Bf(e){function t(n,s,o,i){let a=n[i++];if(a==="__proto__")return!0;const r=Number.isFinite(+a),c=i>=n.length;return a=!a&&D.isArray(o)?o.length:a,c?(D.hasOwnProp(o,a)?o[a]=D.isArray(o[a])?o[a].concat(s):[o[a],s]:o[a]=s,!r):((!D.hasOwnProp(o,a)||!D.isObject(o[a]))&&(o[a]=[]),t(n,s,o[a],i)&&D.isArray(o[a])&&(o[a]=uw(o[a])),!r)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(s,o)=>{t(cw(s),o,n,0)}),n}return null}const rs=(e,t)=>e!=null&&D.hasOwnProp(e,t)?e[t]:void 0;function dw(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ro={transitional:Dr,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,i=D.isObject(t);if(i&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return o?JSON.stringify(Bf(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(i){const c=rs(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return lw(t,c).toString();if((r=D.isFileList(t))||s.indexOf("multipart/form-data")>-1){const d=rs(this,"env"),l=d&&d.FormData;return Vi(r?{"files[]":t}:t,l&&new l,c)}}return i||o?(n.setContentType("application/json",!1),dw(t)):t}],transformResponse:[function(t){const n=rs(this,"transitional")||Ro.transitional,s=n&&n.forcedJSONParsing,o=rs(this,"responseType"),i=o==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(s&&!o||i)){const r=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,rs(this,"parseReviver"))}catch(c){if(r)throw c.name==="SyntaxError"?fe.from(c,fe.ERR_BAD_RESPONSE,this,null,rs(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch","query"],e=>{Ro.headers[e]={}});function da(e,t){const n=this||Ro,s=t||n,o=kt.from(s.headers);let i=s.data;return D.forEach(e,function(r){i=r.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Nf(e){return!!(e&&e.__CANCEL__)}let Io=class extends fe{constructor(t,n,s){super(t??"canceled",fe.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function Lf(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new fe("Request failed with status code "+n.status,n.status>=400&&n.status<500?fe.ERR_BAD_REQUEST:fe.ERR_BAD_RESPONSE,n.config,n.request,n))}function fw(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function hw(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),l=s[i];a||(a=d),n[o]=c,s[o]=d;let u=i,f=0;for(;u!==o;)f+=n[u++],u=u%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-a<t)return;const h=l&&d-l;return h?Math.round(f*1e3/h):void 0}}function pw(e,t){let n=0,s=1e3/t,o,i;const a=(d,l=Date.now())=>{n=l,o=null,i&&(clearTimeout(i),i=null),e(...d)};return[(...d)=>{const l=Date.now(),u=l-n;u>=s?a(d,l):(o=d,i||(i=setTimeout(()=>{i=null,a(o)},s-u)))},()=>o&&a(o)]}const fi=(e,t,n=3)=>{let s=0;const o=hw(50,250);return pw(i=>{if(!i||typeof i.loaded!="number")return;const a=i.loaded,r=i.lengthComputable?i.total:void 0,c=r!=null?Math.min(a,r):a,d=Math.max(0,c-s),l=o(d);s=Math.max(s,c);const u={loaded:c,total:r,progress:r?c/r:void 0,bytes:d,rate:l||void 0,estimated:l&&r?(r-c)/l:void 0,event:i,lengthComputable:r!=null,[t?"download":"upload"]:!0};e(u)},n)},yc=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},bc=e=>(...t)=>D.asap(()=>e(...t)),mw=yt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,yt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,_w=yt.hasStandardBrowserEnv?{write(e,t,n,s,o,i,a){if(typeof document>"u")return;const r=[`${e}=${encodeURIComponent(t)}`];D.isNumber(n)&&r.push(`expires=${new Date(n).toUTCString()}`),D.isString(s)&&r.push(`path=${s}`),D.isString(o)&&r.push(`domain=${o}`),i===!0&&r.push("secure"),D.isString(a)&&r.push(`SameSite=${a}`),document.cookie=r.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const s=t[n].replace(/^\s+/,""),o=s.indexOf("=");if(o!==-1&&s.slice(0,o)===e)return decodeURIComponent(s.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function gw(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Mf(e,t,n){let s=!gw(t);return e&&(s||n===!1)?vw(e,t):t}const wc=e=>e instanceof kt?{...e}:e;function Zn(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(d,l,u,f){return D.isPlainObject(d)&&D.isPlainObject(l)?D.merge.call({caseless:f},d,l):D.isPlainObject(l)?D.merge({},l):D.isArray(l)?l.slice():l}function o(d,l,u,f){if(D.isUndefined(l)){if(!D.isUndefined(d))return s(void 0,d,u,f)}else return s(d,l,u,f)}function i(d,l){if(!D.isUndefined(l))return s(void 0,l)}function a(d,l){if(D.isUndefined(l)){if(!D.isUndefined(d))return s(void 0,d)}else return s(void 0,l)}function r(d,l,u){if(D.hasOwnProp(t,u))return s(d,l);if(D.hasOwnProp(e,u))return s(void 0,d)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:r,headers:(d,l,u)=>o(wc(d),wc(l),u,!0)};return D.forEach(Object.keys({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const u=D.hasOwnProp(c,l)?c[l]:o,f=D.hasOwnProp(e,l)?e[l]:void 0,h=D.hasOwnProp(t,l)?t[l]:void 0,_=u(f,h,l);D.isUndefined(_)&&u!==r||(n[l]=_)}),n}const yw=["content-type","content-length"];function bw(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([s,o])=>{yw.includes(s.toLowerCase())&&e.set(s,o)})}const ww=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Ff=e=>{const t=Zn({},e),n=f=>D.hasOwnProp(t,f)?t[f]:void 0,s=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),a=n("xsrfCookieName");let r=n("headers");const c=n("auth"),d=n("baseURL"),l=n("allowAbsoluteUrls"),u=n("url");if(t.headers=r=kt.from(r),t.url=Df(Mf(d,u,l),e.params,e.paramsSerializer),c&&r.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?ww(c.password):""))),D.isFormData(s)&&(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv?r.setContentType(void 0):D.isFunction(s.getHeaders)&&bw(r,s.getHeaders(),n("formDataHeaderPolicy"))),yt.hasStandardBrowserEnv&&(D.isFunction(o)&&(o=o(t)),o===!0||o==null&&mw(t.url))){const h=i&&a&&_w.read(a);h&&r.set(i,h)}return t},Sw=typeof XMLHttpRequest<"u",Ew=Sw&&function(e){return new Promise(function(n,s){const o=Ff(e);let i=o.data;const a=kt.from(o.headers).normalize();let{responseType:r,onUploadProgress:c,onDownloadProgress:d}=o,l,u,f,h,_;function m(){h&&h(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function v(){if(!p)return;const R=kt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),b={data:!r||r==="text"||r==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:R,config:e,request:p};Lf(function(P){n(P),m()},function(P){s(P),m()},b),p=null}"onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.startsWith("file:"))||setTimeout(v)},p.onabort=function(){p&&(s(new fe("Request aborted",fe.ECONNABORTED,e,p)),m(),p=null)},p.onerror=function(x){const b=x&&x.message?x.message:"Network Error",I=new fe(b,fe.ERR_NETWORK,e,p);I.event=x||null,s(I),m(),p=null},p.ontimeout=function(){let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||Dr;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),s(new fe(x,b.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,p)),m(),p=null},i===void 0&&a.setContentType(null),"setRequestHeader"in p&&D.forEach(If(a),function(x,b){p.setRequestHeader(b,x)}),D.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),r&&r!=="json"&&(p.responseType=o.responseType),d&&([f,_]=fi(d,!0),p.addEventListener("progress",f)),c&&p.upload&&([u,h]=fi(c),p.upload.addEventListener("progress",u),p.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(l=R=>{p&&(s(!R||R.type?new Io(null,e,p):R),p.abort(),m(),p=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const E=fw(o.url);if(E&&!yt.protocols.includes(E)){s(new fe("Unsupported protocol "+E+":",fe.ERR_BAD_REQUEST,e));return}p.send(i||null)})},Cw=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const o=function(c){if(!s){s=!0,a();const d=c instanceof Error?c:this.reason;n.abort(d instanceof fe?d:new Io(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new fe(`timeout of ${t}ms exceeded`,fe.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:r}=n;return r.unsubscribe=()=>D.asap(a),r},xw=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,o;for(;s<n;)o=s+t,yield e.slice(s,o),s=o},kw=async function*(e,t){for await(const n of Tw(e))yield*xw(n,t)},Tw=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Sc=(e,t,n,s)=>{const o=kw(e,t);let i=0,a,r=c=>{a||(a=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:d,value:l}=await o.next();if(d){r(),c.close();return}let u=l.byteLength;if(n){let f=i+=u;n(f)}c.enqueue(new Uint8Array(l))}catch(d){throw r(d),d}},cancel(c){return r(c),o.return()}},{highWaterMark:2})};function Aw(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 a=s.length;const r=s.length;for(let h=0;h<r;h++)if(s.charCodeAt(h)===37&&h+2<r){const _=s.charCodeAt(h+1),m=s.charCodeAt(h+2);(_>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(a-=2,h+=2)}let c=0,d=r-1;const l=h=>h>=2&&s.charCodeAt(h-2)===37&&s.charCodeAt(h-1)===51&&(s.charCodeAt(h)===68||s.charCodeAt(h)===100);d>=0&&(s.charCodeAt(d)===61?(c++,d--):l(d)&&(c++,d-=3)),c===1&&d>=0&&(s.charCodeAt(d)===61||l(d))&&c++;const f=Math.floor(a/4)*3-(c||0);return f>0?f:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(s,"utf8");let i=0;for(let a=0,r=s.length;a<r;a++){const c=s.charCodeAt(a);if(c<128)i+=1;else if(c<2048)i+=2;else if(c>=55296&&c<=56319&&a+1<r){const d=s.charCodeAt(a+1);d>=56320&&d<=57343?(i+=4,a++):i+=3}else i+=3}return i}const Nr="1.16.1",Ec=64*1024,{isFunction:Ko}=D,Cc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rw=e=>{const t=D.global!==void 0&&D.global!==null?D.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=D.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:a}=e,r=o?Ko(o):typeof fetch=="function",c=Ko(i),d=Ko(a);if(!r)return!1;const l=r&&Ko(n),u=r&&(typeof s=="function"?(v=>E=>v.encode(E))(new s):async v=>new Uint8Array(await new i(v).arrayBuffer())),f=c&&l&&Cc(()=>{let v=!1;const E=new i(yt.origin,{body:new n,method:"POST",get duplex(){return v=!0,"half"}}),R=E.headers.has("Content-Type");return E.body!=null&&E.body.cancel(),v&&!R}),h=d&&l&&Cc(()=>D.isReadableStream(new a("").body)),_={stream:h&&(v=>v.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!_[v]&&(_[v]=(E,R)=>{let x=E&&E[v];if(x)return x.call(E);throw new fe(`Response type '${v}' is not supported`,fe.ERR_NOT_SUPPORT,R)})});const m=async v=>{if(v==null)return 0;if(D.isBlob(v))return v.size;if(D.isSpecCompliantForm(v))return(await new i(yt.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(D.isArrayBufferView(v)||D.isArrayBuffer(v))return v.byteLength;if(D.isURLSearchParams(v)&&(v=v+""),D.isString(v))return(await u(v)).byteLength},p=async(v,E)=>{const R=D.toFiniteNumber(v.getContentLength());return R??m(E)};return async v=>{let{url:E,method:R,data:x,signal:b,cancelToken:I,timeout:P,onDownloadProgress:K,onUploadProgress:L,responseType:j,headers:B,withCredentials:O="same-origin",fetchOptions:Q,maxContentLength:Z,maxBodyLength:Ce}=Ff(v);const he=D.isNumber(Z)&&Z>-1,ae=D.isNumber(Ce)&&Ce>-1;let de=o||fetch;j=j?(j+"").toLowerCase():"text";let xe=Cw([b,I&&I.toAbortSignal()],P),we=null;const oe=xe&&xe.unsubscribe&&(()=>{xe.unsubscribe()});let ne;try{if(he&&typeof E=="string"&&E.startsWith("data:")&&Aw(E)>Z)throw new fe("maxContentLength size of "+Z+" exceeded",fe.ERR_BAD_RESPONSE,v,we);if(ae&&R!=="get"&&R!=="head"){const M=await p(B,x);if(typeof M=="number"&&isFinite(M)&&M>Ce)throw new fe("Request body larger than maxBodyLength limit",fe.ERR_BAD_REQUEST,v,we)}if(L&&f&&R!=="get"&&R!=="head"&&(ne=await p(B,x))!==0){let M=new i(E,{method:"POST",body:x,duplex:"half"}),z;if(D.isFormData(x)&&(z=M.headers.get("content-type"))&&B.setContentType(z),M.body){const[N,H]=yc(ne,fi(bc(L)));x=Sc(M.body,Ec,N,H)}}D.isString(O)||(O=O?"include":"omit");const ie=c&&"credentials"in i.prototype;if(D.isFormData(x)){const M=B.getContentType();M&&/^multipart\/form-data/i.test(M)&&!/boundary=/i.test(M)&&B.delete("content-type")}B.set("User-Agent","axios/"+Nr,!1);const Re={...Q,signal:xe,method:R.toUpperCase(),headers:If(B.normalize()),body:x,duplex:"half",credentials:ie?O:void 0};we=c&&new i(E,Re);let Y=await(c?de(we,Q):de(E,Re));if(he){const M=D.toFiniteNumber(Y.headers.get("content-length"));if(M!=null&&M>Z)throw new fe("maxContentLength size of "+Z+" exceeded",fe.ERR_BAD_RESPONSE,v,we)}const ce=h&&(j==="stream"||j==="response");if(h&&Y.body&&(K||he||ce&&oe)){const M={};["status","statusText","headers"].forEach(T=>{M[T]=Y[T]});const z=D.toFiniteNumber(Y.headers.get("content-length")),[N,H]=K&&yc(z,fi(bc(K),!0))||[];let y=0;const w=T=>{if(he&&(y=T,y>Z))throw new fe("maxContentLength size of "+Z+" exceeded",fe.ERR_BAD_RESPONSE,v,we);N&&N(T)};Y=new a(Sc(Y.body,Ec,w,()=>{H&&H(),oe&&oe()}),M)}j=j||"text";let S=await _[D.findKey(_,j)||"text"](Y,v);if(he&&!h&&!ce){let M;if(S!=null&&(typeof S.byteLength=="number"?M=S.byteLength:typeof S.size=="number"?M=S.size:typeof S=="string"&&(M=typeof s=="function"?new s().encode(S).byteLength:S.length)),typeof M=="number"&&M>Z)throw new fe("maxContentLength size of "+Z+" exceeded",fe.ERR_BAD_RESPONSE,v,we)}return!ce&&oe&&oe(),await new Promise((M,z)=>{Lf(M,z,{data:S,headers:kt.from(Y.headers),status:Y.status,statusText:Y.statusText,config:v,request:we})})}catch(ie){if(oe&&oe(),xe&&xe.aborted&&xe.reason instanceof fe){const Re=xe.reason;throw Re.config=v,we&&(Re.request=we),ie!==Re&&(Re.cause=ie),Re}throw ie&&ie.name==="TypeError"&&/Load failed|fetch/i.test(ie.message)?Object.assign(new fe("Network Error",fe.ERR_NETWORK,v,we,ie&&ie.response),{cause:ie.cause||ie}):fe.from(ie,ie&&ie.code,v,we,ie&&ie.response)}}},Iw=new Map,Vf=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:o}=t,i=[s,o,n];let a=i.length,r=a,c,d,l=Iw;for(;r--;)c=i[r],d=l.get(c),d===void 0&&l.set(c,d=r?new Map:Rw(t)),l=d;return d};Vf();const Lr={http:Xb,xhr:Ew,fetch:{get:Vf}};D.forEach(Lr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const xc=e=>`- ${e}`,$w=e=>D.isFunction(e)||e===null||e===!1;function Ow(e,t){e=D.isArray(e)?e:[e];const{length:n}=e;let s,o;const i={};for(let a=0;a<n;a++){s=e[a];let r;if(o=s,!$w(s)&&(o=Lr[(r=String(s)).toLowerCase()],o===void 0))throw new fe(`Unknown adapter '${r}'`);if(o&&(D.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){const a=Object.entries(i).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let r=n?a.length>1?`since :
`+a.map(xc).join(`
`):" "+xc(a[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return o}const jf={getAdapter:Ow,adapters:Lr};function fa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Io(null,e)}function kc(e){return fa(e),e.headers=kt.from(e.headers),e.data=da.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jf.getAdapter(e.adapter||Ro.adapter,e)(e).then(function(s){fa(e),e.response=s;try{s.data=da.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=kt.from(s.headers),s},function(s){if(!Nf(s)&&(fa(e),s&&s.response)){e.response=s.response;try{s.response.data=da.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=kt.from(s.response.headers)}return Promise.reject(s)})}const ji={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ji[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Tc={};ji.transitional=function(t,n,s){function o(i,a){return"[Axios v"+Nr+"] Transitional option '"+i+"'"+a+(s?". "+s:"")}return(i,a,r)=>{if(t===!1)throw new fe(o(a," has been removed"+(n?" in "+n:"")),fe.ERR_DEPRECATED);return n&&!Tc[a]&&(Tc[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,r):!0}};ji.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Pw(e,t,n){if(typeof e!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const i=s[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const r=e[i],c=r===void 0||a(r,i,e);if(c!==!0)throw new fe("option "+i+" must be "+c,fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new fe("Unknown option "+i,fe.ERR_BAD_OPTION)}}const ti={assertOptions:Pw,validators:ji},jt=ti.validators;let Qn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new vc,response:new vc}}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 a=o.stack.indexOf(`
`);return a===-1?"":o.stack.slice(a+1)})();try{if(!s.stack)s.stack=i;else if(i){const a=i.indexOf(`
`),r=a===-1?-1:i.indexOf(`
`,a+1),c=r===-1?"":i.slice(r+1);String(s.stack).endsWith(c)||(s.stack+=`
`+i)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Zn(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:i}=n;s!==void 0&&ti.assertOptions(s,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean),legacyInterceptorReqResOrdering:jt.transitional(jt.boolean)},!1),o!=null&&(D.isFunction(o)?n.paramsSerializer={serialize:o}:ti.assertOptions(o,{encode:jt.function,serialize:jt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ti.assertOptions(n,{baseUrl:jt.spelling("baseURL"),withXsrfToken:jt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&D.merge(i.common,i[n.method]);i&&D.forEach(["delete","get","head","post","put","patch","query","common"],_=>{delete i[_]}),n.headers=kt.concat(a,i);const r=[];let c=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;c=c&&m.synchronous;const p=n.transitional||Dr;p&&p.legacyInterceptorReqResOrdering?r.unshift(m.fulfilled,m.rejected):r.push(m.fulfilled,m.rejected)});const d=[];this.interceptors.response.forEach(function(m){d.push(m.fulfilled,m.rejected)});let l,u=0,f;if(!c){const _=[kc.bind(this),void 0];for(_.unshift(...r),_.push(...d),f=_.length,l=Promise.resolve(n);u<f;)l=l.then(_[u++],_[u++]);return l}f=r.length;let h=n;for(;u<f;){const _=r[u++],m=r[u++];try{h=_(h)}catch(p){m.call(this,p);break}}try{l=kc.call(this,h)}catch(_){return Promise.reject(_)}for(u=0,f=d.length;u<f;)l=l.then(d[u++],d[u++]);return l}getUri(t){t=Zn(this.defaults,t);const n=Mf(t.baseURL,t.url,t.allowAbsoluteUrls);return Df(n,t.params,t.paramsSerializer)}};D.forEach(["delete","get","head","options"],function(t){Qn.prototype[t]=function(n,s){return this.request(Zn(s||{},{method:t,url:n,data:(s||{}).data}))}});D.forEach(["post","put","patch","query"],function(t){function n(s){return function(i,a,r){return this.request(Zn(r||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Qn.prototype[t]=n(),t!=="query"&&(Qn.prototype[t+"Form"]=n(!0))});let Dw=class qf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(o=>{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 a=new Promise(r=>{s.subscribe(r),i=r}).then(o);return a.cancel=function(){s.unsubscribe(i)},a},t(function(i,a,r){s.reason||(s.reason=new Io(i,a,r),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 qf(function(o){t=o}),cancel:t}}};function Bw(e){return function(n){return e.apply(null,n)}}function Nw(e){return D.isObject(e)&&e.isAxiosError===!0}const Ka={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(Ka).forEach(([e,t])=>{Ka[t]=e});function Uf(e){const t=new Qn(e),n=Sf(Qn.prototype.request,t);return D.extend(n,Qn.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Uf(Zn(e,o))},n}const Qe=Uf(Ro);Qe.Axios=Qn;Qe.CanceledError=Io;Qe.CancelToken=Dw;Qe.isCancel=Nf;Qe.VERSION=Nr;Qe.toFormData=Vi;Qe.AxiosError=fe;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=Bw;Qe.isAxiosError=Nw;Qe.mergeConfig=Zn;Qe.AxiosHeaders=kt;Qe.formToJSON=e=>Bf(D.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=jf.getAdapter;Qe.HttpStatusCode=Ka;Qe.default=Qe;const{Axios:ZT,AxiosError:eA,CanceledError:tA,isCancel:nA,CancelToken:sA,VERSION:oA,all:iA,Cancel:aA,isAxiosError:rA,spread:lA,toFormData:cA,AxiosHeaders:uA,HttpStatusCode:dA,formToJSON:fA,getAdapter:hA,mergeConfig:pA,create:mA}=Qe;let Ga=null;function Lw(e){Ga=e}async function Mw(){return Ga?(await Ga(),!0):!1}const Ve=Qe.create({baseURL:"/api",timeout:2e4,headers:{"Content-Type":"application/json"}});Ve.interceptors.request.use(e=>{const t=localStorage.getItem("h5_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));Ve.interceptors.response.use(e=>{const t=e.data;return t.code!==0?t.code===1002?(Rc("biz1002"),Promise.reject({code:1002,message:t.message||"未授权"})):(Te(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 Rc("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&&Te(t),Promise.reject({code:n,message:t})});const Fw="oauth_redirect_count",Ac=3;let Us=null;async function Rc(e){const t=e==="http401"?"HTTP 401":"业务码 1002";return Us?(console.warn(`[API] ${t} 未授权 已有处理进行中等待完成`),Us):(console.warn(`[API] ${t} 未授权清除凭证并跳转登录`),Us=(async()=>{try{if(localStorage.removeItem("h5_token"),localStorage.removeItem("employee_id"),localStorage.removeItem("employee_name"),"wwa8c87970b2011f41"){const s=parseInt(localStorage.getItem(Fw)||"0",10);if(s>=Ac){console.error("[API] OAuth2 重定向次数超限,疑似无限循环,停止重定向"),Te("登录状态异常,请刷新页面重试");return}console.warn(`[API] OAuth2 重定向计数: ${s}/${Ac}`),await Mw()||(console.warn("[API] 认证过期处理器未注册,降级为刷新页面"),window.location.reload())}}catch(n){console.warn("[API] 401 处理失败,刷新页面:",n),window.location.reload()}finally{Us=null}})(),Us)}function Ja(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 zf(e){return(e||[]).map(Ja)}async function Vw(){return await Ve.get("/h5/user")}function jw(e){return e?{conversation_id:e.id||e.conversation_id||"",employee_id:e.employee_id||"",employee_name:e.employee_name||"",status:e.status||"waiting",agent_id:e.assigned_agent_id||e.agent_id||"",agent_name:e.agent_name||"",created_at:e.created_at||"",updated_at:e.updated_at||"",ai_substantive_reply_count:e.ai_substantive_reply_count??0,can_call_agent:e.can_call_agent??!1,participants:e.participants||[]}:null}async function qw(){const e=await Ve.get("/h5/conversations/current");return jw(e)}async function Ic(e){const t=await Ve.post("/h5/conversations/current/messages",e,{timeout:3e4});return{user_message:Ja(t.user_message),ai_reply:t.ai_reply?Ja(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 Uw(e){const n=await Ve.get("/h5/conversations/current/messages/poll",{params:e}),s=(n==null?void 0:n.items)||n||[];return zf(s)}async function $c(e){const n=await Ve.get("/h5/conversations/current/messages",{params:e}),s=(n==null?void 0:n.items)||[];return{items:zf(s),has_more:(n==null?void 0:n.has_more)||!1}}async function zw(e){return await Ve.post("/h5/conversations/current/shake",e)}async function Hw(){const t=await Ve.get("/h5/approval-links");return(t==null?void 0:t.items)||t||[]}async function Ww(){return await Ve.get("/approval/keywords")||[]}async function Kw(e){return await Ve.post("/approval/jump",{template_id:e})}async function Gw(){const t=await Ve.get("/h5/software-downloads");return(t==null?void 0:t.items)||t||[]}async function Jw(e){return await Ve.post(`/h5/conversations/${e}/join`)}async function Xw(e){return await Ve.post(`/h5/conversations/${e}/leave-participant`)}async function Yw(e,t){return await Ve.post(`/conversation/${e}/evaluate`,t)}async function Qw(e){return await Ve.get(`/conversation/${e}/evaluation`)}async function Zw(e){return await Ve.post("/h5/oauth/callback",e)}async function e0(e){return await Ve.post("/h5/mock-login",e)}async function t0(){return await Ve.get("/h5/me")}async function n0(){const e=window.location.origin+"/h5/";return await Ve.get("/h5/oauth/authorize",{params:{redirect_uri:e}})}const ha="h5_token",qn="employee_id",ls="employee_name",zs="oauth_redirect_count",Oc=3,Ct=Rr("employee",()=>{const e=q(localStorage.getItem(ha)||"");e.value&&!a(e.value)&&localStorage.removeItem(zs);const t=q(null),n=q(!1),s=V(()=>e.value?!a(e.value):!1),o=V(()=>{var b;return((b=t.value)==null?void 0:b.employee_id)||localStorage.getItem(qn)||""}),i=V(()=>{var b;return((b=t.value)==null?void 0:b.employee_name)||localStorage.getItem(ls)||""});function a(b){try{const I=b.split(".");if(I.length!==3)return!1;const P=JSON.parse(atob(I[1]));return P.exp?Math.floor(Date.now()/1e3)>=P.exp-60:!1}catch{return!1}}function r(b){e.value=b,localStorage.setItem(ha,b)}function c(){e.value="",t.value=null,localStorage.removeItem(ha),localStorage.removeItem(qn),localStorage.removeItem(ls)}function d(){localStorage.removeItem(zs)}function l(){const I=parseInt(localStorage.getItem(zs)||"0",10)+1;return localStorage.setItem(zs,String(I)),I}function u(){return parseInt(localStorage.getItem(zs)||"0",10)>=Oc}async function f(b,I){n.value=!0;try{const P=await Zw({code:b,state:I});return r(P.token),localStorage.setItem(qn,P.employee_id),localStorage.setItem(ls,P.employee_name),t.value={employee_id:P.employee_id,employee_name:P.employee_name,department:P.department,position:P.position,mobile:"",email:"",avatar:P.avatar,is_vip:!1},console.log("[EmployeeStore] OAuth2 登录成功:",P.employee_name),d(),P}catch(P){throw console.error("[EmployeeStore] OAuth2 登录失败:",P),P}finally{n.value=!1}}async function h(b,I){n.value=!0;try{const P=await e0({employee_id:b,employee_name:I||"测试用户"});return r(P.token),localStorage.setItem(qn,P.employee_id),localStorage.setItem(ls,P.employee_name),t.value={employee_id:P.employee_id,employee_name:P.employee_name,department:P.department,position:P.position,mobile:"",email:"",avatar:P.avatar,is_vip:!1},console.log("[EmployeeStore] Mock 登录成功:",P.employee_name),d(),P}catch(P){throw console.error("[EmployeeStore] Mock 登录失败:",P),P}finally{n.value=!1}}async function _(){if(e.value)try{const b=await t0();t.value=b,localStorage.setItem(qn,b.employee_id),localStorage.setItem(ls,b.employee_name),console.log("[EmployeeStore] 获取员工信息成功:",b.employee_name)}catch(b){throw console.error("[EmployeeStore] 获取员工信息失败:",b),b}}async function m(){const b=window.location.origin+"/h5/";try{const L=await n0();if(L.authorize_url){window.location.href=L.authorize_url;return}}catch(L){console.warn("[EmployeeStore] 从后端获取授权URL失败,尝试本地构造:",L)}const I="wwa8c87970b2011f41",P=encodeURIComponent(b),K=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${I}&redirect_uri=${P}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`;window.location.href=K}async function p(){if(console.warn("[EmployeeStore] Token 已过期或无效,重新授权"),u()){console.error("[EmployeeStore] OAuth2 重定向次数超限,疑似无限循环,停止重定向"),c(),d();const{showToast:I}=await Hn(async()=>{const{showToast:P}=await import("./index-Bu7XD84k.js");return{showToast:P}},__vite__mapDeps([0,1,2,3]));I("登录状态异常,请刷新页面重试");return}c();const b=l();console.warn(`[EmployeeStore] OAuth2 重定向计数: ${b}/${Oc}`),await m()}function v(b){localStorage.setItem(qn,b),e.value="",t.value={employee_id:b,employee_name:"开发测试用户",department:"IT部",position:"开发工程师",mobile:"",email:"",avatar:"",is_vip:!1},console.log("[EmployeeStore] 开发模式登录:",b)}function E(){c(),console.log("[EmployeeStore] 已登出")}function R(b){r(b),d()}function x(b){t.value={employee_id:b.userid,employee_name:b.name,department:b.department||"",position:"",mobile:b.phone||"",email:b.email||"",avatar:b.avatar||"",is_vip:!1},localStorage.setItem(qn,b.userid),localStorage.setItem(ls,b.name)}return Lw(p),{token:e,employeeInfo:t,authenticating:n,isAuthenticated:s,employeeId:o,employeeName:i,handleOAuthCallback:f,mockLogin:h,fetchEmployeeInfo:_,redirectToOAuth:m,handleUnauthorized:p,devLogin:v,logout:E,setToken:R,setUserInfo:x}}),s0=Object.freeze(Object.defineProperty({__proto__:null,useEmployeeStore:Ct},Symbol.toStringTag,{value:"Module"})),o0=3e4,i0=3e4,a0=1e3;let io=null;function r0(e){return io&&io.readyState===WebSocket.OPEN?(io.send(JSON.stringify(e)),!0):(console.warn("[H5 WS] WebSocket 未连接,无法发送消息:",e),!1)}function l0(){let e=null,t=null,n=null,s=0,o=!1;function i(){const u=Ct(),f=u.employeeId,h=u.token;if(!f||!h){console.warn("[H5 WS] 未登录或缺少token,跳过连接");return}e&&a(),o=!1;const _=window.location.protocol==="https:"?"wss:":"ws:",m=window.location.host,p=`${_}//${m}/ws/h5/${f}`;console.log(`[H5 WS] 正在连接: ${p}`),e=new WebSocket(p,[`bearer.${h}`]),io=e,e.onopen=()=>{console.log("[H5 WS] 连接成功"),s=0,r(),Ot().stopPolling()},e.onmessage=v=>{try{const E=JSON.parse(v.data);l(E)}catch(E){console.error("[H5 WS] 消息解析失败:",E)}},e.onclose=()=>{if(console.log("[H5 WS] 连接关闭"),c(),e=null,!o){const v=Ot();v.cancelStreamingBubble(),v.startPolling(),d()}},e.onerror=v=>{console.error("[H5 WS] 连接错误:",v)}}function a(){o=!0,n&&(clearTimeout(n),n=null),c(),e&&(e.close(),e=null),io=null,s=0,console.log("[H5 WS] 已主动断开连接")}function r(){c(),t=setInterval(()=>{e&&e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"ping"}))},o0)}function c(){t&&(clearInterval(t),t=null)}function d(){if(o)return;const u=Math.min(a0*Math.pow(2,s),i0);s++,console.log(`[H5 WS] 将在 ${u/1e3} 秒后重连(第 ${s} 次)`),n&&clearTimeout(n),n=setTimeout(()=>{console.log("[H5 WS] 正在重连..."),i()},u)}function l(u){var h,_,m,p,v;const f=Ot();switch(u.type){case"participant_invited":(h=u.data)!=null&&h.participants&&f.updateParticipants(u.data.participants);break;case"participant_joined":(_=u.data)!=null&&_.participants&&f.updateParticipants(u.data.participants);break;case"participant_removed":if((m=u.data)!=null&&m.participants&&f.updateParticipants(u.data.participants),(p=u.data)!=null&&p.changed){const E=Ct();u.data.changed.map(x=>x.id).includes(E.employeeId)&&(console.log("[H5 WS] 当前用户被移除会话"),f.handleRemovedFromConversation())}break;case"participant_left":(v=u.data)!=null&&v.participants&&f.updateParticipants(u.data.participants);break;case"new_message":u.data&&f.handleNewMessage(u.data);break;case"ai_reply_chunk":u.data&&f.handleAiReplyChunk(u.data);break;case"ai_reply":u.data&&f.handleAiReply(u.data);break;case"ai_reply_failed":u.data&&f.handleAiReplyFailed(u.data);break;case"ai_thinking":u.data&&f.handleAiThinking(u.data);break;case"dynamic_recommend":u.data&&f.handleDynamicRecommend(u.data);break;case"pong":break;case"queue_position_update":u.data&&f.handleQueuePositionUpdate(u.data);break;case"conversation_resolved":u.data&&f.handleConversationResolved(u.data);break;case"pending_close_request":u.data&&f.handlePendingCloseRequest(u.data);break;case"quiz_diagnostic_answer":u.data&&f.handleQuizDiagnosticAnswer(u.data);break;default:console.warn(`[H5 WS] 未知消息类型: ${u.type}`)}}return{connect:i,disconnect:a}}const c0="h5_messages_cache",u0=7,d0=100;function Mr(e){return`${c0}_${e}`}function f0(e){try{const t=Mr(e),n=localStorage.getItem(t);if(!n)return null;const s=JSON.parse(n),o=s.timestamp||0,i=Date.now(),a=u0*24*60*60*1e3;return i-o>a?(localStorage.removeItem(t),null):s.messages||null}catch(t){return console.warn("[Store] 读取消息缓存失败:",t),null}}function Hs(e,t){try{const n=Mr(e),s=t.slice(-d0);localStorage.setItem(n,JSON.stringify({messages:s,timestamp:Date.now()}))}catch(n){console.warn("[Store] 保存消息缓存失败:",n)}}function h0(e){try{const t=Mr(e);localStorage.removeItem(t)}catch(t){console.warn("[Store] 清除消息缓存失败:",t)}}function p0(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 Ot=Rr("conversation",()=>{const e=q(null),t=q(null),n=q([]),s=q(!1),o=q(!1),i=q(!1),a=q(!0),r=q(null),c=q(!1),d=q([]),l=q(!1),u=q(""),f=q([]),h=q(""),_=q(!1),m=q([]),p=q(""),v=q(null),E=q([]),R=q(!1),x=q([]),b=q(0),I=q(null),P=q(new Set),K=V(()=>Ct().isAuthenticated),L=V(()=>t.value?t.value.status!=="resolved":!1),j=V(()=>!t.value||!e.value||t.value.employee_id===e.value.employee_id?!1:E.value.some($=>{var J;return $.id===((J=e.value)==null?void 0:J.employee_id)})),B=V(()=>E.value.filter(J=>J.joined).length),O=V(()=>{const $={};for(const J of d.value)$[J.category]||($[J.category]=[]),$[J.category].push(J);return $}),Q=V(()=>{const $={};for(const J of f.value)$[J.category]||($[J.category]=[]),$[J.category].push(J);return $});function Z($){const J=P.value;if(J.delete($),J.add($),J.size>500){const ue=J.values().next().value;ue&&J.delete(ue)}}function Ce($){if(P.value.has($.message_id)){console.log(`[H5 WS去重] 跳过重复消息: ${$.message_id}`);return}Z($.message_id),n.value.push({message_id:$.message_id,conversation_id:$.conversation_id,message_type:$.sender_type||"system",msg_type:$.msg_type||"text",content:$.content,sender_name:$.sender_name||"",created_at:new Date().toISOString()}),h.value=$.message_id}async function he($,J){await Ct().handleOAuthCallback($,J)}async function ae(){try{const $=Ct();$.employeeInfo&&(e.value={employee_id:$.employeeInfo.employee_id,employee_name:$.employeeInfo.employee_name,department:$.employeeInfo.department,position:$.employeeInfo.position,level:"",is_vip:$.employeeInfo.is_vip,avatar_url:$.employeeInfo.avatar});const J=await Vw();e.value=J,console.log("[Store] 获取用户信息成功:",J.employee_name)}catch($){throw console.error("[Store] 获取用户信息失败:",$),$}}async function de(){try{const $=await qw();t.value=$,i.value=($==null?void 0:$.can_call_agent)??!1,E.value=($==null?void 0:$.participants)||[],console.log("[Store] 获取当前会话:",$?$.conversation_id:"无活跃会话","参与者:",E.value.length)}catch($){console.error("[Store] 获取当前会话失败:",$)}}async function xe($,J){var mt,kn,jr,qr;if(console.log("[Store] sendNewMessage 开始执行, content:",$,"options:",J),!$.trim()){console.warn("[Store] content 为空,直接返回");return}const ue=Ct(),me=`temp_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,$e={message_id:me,conversation_id:((mt=t.value)==null?void 0:mt.conversation_id)||"",message_type:"employee",msg_type:(J==null?void 0:J.msg_type)||"text",content:$.trim(),sender_name:ue.employeeName||"我",created_at:new Date().toISOString(),status:"sending"};n.value.push($e),console.log("[Store] 乐观更新:临时消息已添加到列表, tempMessageId:",me),s.value=!0;try{const dt={content:$.trim()};J!=null&&J.msg_type&&(dt.msg_type=J.msg_type,dt.media_url=J.media_url,dt.file_name=J.file_name,dt.file_size=J.file_size),console.log("[Store] 请求参数:",JSON.stringify(dt));const nt=await Ic(dt);if(console.log("[Store] API 响应:",nt),!nt)throw console.error("[Store] API 响应为空"),new Error("API 响应为空");if(!nt.user_message)throw console.error("[Store] API 响应缺少 user_message"),new Error("API 响应格式错误:缺少 user_message");const Oo=n.value.findIndex(Po=>Po.message_id===me);if(Oo!==-1){n.value[Oo]={...nt.user_message,status:"sent"},Z(nt.user_message.message_id),h.value=nt.user_message.message_id,console.log("[Store] 乐观更新成功:临时消息已替换为真实消息");const Po=(kn=t.value)==null?void 0:kn.conversation_id;Po&&Hs(Po,n.value)}else n.value.push({...nt.user_message,status:"sent"}),Z(nt.user_message.message_id),h.value=nt.user_message.message_id;i.value=nt.can_call_agent??!1,t.value&&(t.value.can_call_agent=nt.can_call_agent??!1,t.value.ai_substantive_reply_count=nt.ai_reply_count??0),!t.value&&((jr=nt.user_message)!=null&&jr.conversation_id)&&(console.log("[Store] 发送消息后 currentConversation 为 null,重新获取会话信息..."),await de(),t.value&&(t.value.can_call_agent=nt.can_call_agent??!1,t.value.ai_substantive_reply_count=nt.ai_reply_count??0,console.log("[Store] 新会话已获取:",t.value.conversation_id))),console.log("[Store] 消息发送成功, AI回复计数:",nt.ai_reply_count,"可呼叫坐席:",nt.can_call_agent,"是否引导:",nt.is_guidance)}catch(dt){console.error("[Store] 消息发送失败:",dt),console.error("[Store] 错误详情:",dt==null?void 0:dt.message,(qr=dt==null?void 0:dt.response)==null?void 0:qr.data,dt==null?void 0:dt.stack);const nt=n.value.findIndex(Oo=>Oo.message_id===me);throw nt!==-1&&(n.value[nt].status="failed",console.log("[Store] 乐观更新失败:临时消息状态已改为 failed")),dt}finally{s.value=!1,console.log("[Store] sendNewMessage finally 执行完成")}}async function we(){var $;if(!(!K.value||!L.value))try{const J=h.value?{after_message_id:h.value}:void 0,ue=await Uw(J);if(ue&&ue.length>0){const me=ue.filter($e=>P.value.has($e.message_id)?(console.log(`[H5轮询去重] 跳过重复消息: ${$e.message_id}`),!1):(Z($e.message_id),!0));if(me.length>0){n.value.push(...me),h.value=me[me.length-1].message_id,console.log("[Store] 轮询到新消息:",me.length,"条");const $e=($=t.value)==null?void 0:$.conversation_id;$e&&Hs($e,n.value)}}}catch(J){console.error("[Store] 轮询消息失败:",J)}}async function oe($){var J;if(!(!K.value||!L.value))try{const ue=await $c($);if(ue.items&&ue.items.length>0){const me=ue.items.filter($e=>P.value.has($e.message_id)?!1:(Z($e.message_id),!0));if(me.length>0){$!=null&&$.before?n.value.push(...me):n.value=me;const $e=me[me.length-1];$e&&(h.value=$e.message_id),console.log("[Store] 获取到历史消息:",me.length,"条");const mt=(J=t.value)==null?void 0:J.conversation_id;mt&&Hs(mt,n.value)}}}catch(ue){console.error("[Store] 获取历史消息失败:",ue)}}function ne(){r.value||(console.log("[Store] 启动消息轮询(3秒间隔)"),r.value=setInterval(()=>{we()},3e3))}function ie(){r.value&&(console.log("[Store] 停止消息轮询"),clearInterval(r.value),r.value=null)}async function Re(){var $,J;if(o.value)return"pending";o.value=!0;try{const ue=Ct(),me=await zw({employee_id:ue.employeeId,employee_name:ue.employeeName});console.log("[Store] 招手成功:",me);const $e={message_id:`sys_shake_${Date.now()}`,conversation_id:(($=t.value)==null?void 0:$.conversation_id)||"",message_type:"system",content:me.funny_phrase,sender_name:"系统",created_at:new Date().toISOString()};return n.value.push($e),me.assign_result==="assigned"&&me.assigned_agent_id?($e.content=`${me.funny_phrase}
坐席正在查看您的信息请等待处理回复`,t.value&&(t.value.status="serving")):me.assign_result==="queued"&&($e.content=`${me.funny_phrase}
当前无空闲坐席您已进入排队请耐心等待...`),((J=me.conversation)==null?void 0:J.status)==="serving"&&await de(),me.assign_result||"queued"}catch(ue){return console.error("[Store] 招手失败:",ue),"error"}finally{o.value=!1}}async function Y(){try{const $=await Hw();d.value=$,console.log("[Store] 获取审批链接成功:",$.length,"条")}catch($){console.error("[Store] 获取审批链接失败:",$)}}function ce(){l.value=!1,u.value=""}function S($=""){var ue;const J={message_id:`approval_card_${Date.now()}`,conversation_id:((ue=t.value)==null?void 0:ue.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(J),console.log("[Store] 手动插入审批卡片消息(快捷按钮触发)")}async function M(){try{const $=await Gw();f.value=$,console.log("[Store] 获取软件下载列表成功:",$.length,"条")}catch($){console.error("[Store] 获取软件下载列表失败:",$)}}function z(){c.value=!c.value}async function N($){try{await de();const J=t.value;J&&J.conversation_id!==$&&console.warn("[Store] 当前会话ID不匹配, 期望:",$,"实际:",J.conversation_id),n.value=[],h.value="",await oe(),console.log("[Store] 已切换到邀请会话:",$)}catch(J){console.error("[Store] 切换会话失败:",J)}}async function H(){if(!t.value)return;const $=t.value.conversation_id;try{await Xw($),console.log("[Store] 已退出会话:",$),t.value=null,E.value=[],n.value=[],h.value="",ie()}catch(J){throw console.error("[Store] 退出会话失败:",J),J}}function y(){R.value=!R.value}async function w($){const J=n.value.findIndex($e=>$e.message_id===$);if(J===-1){console.warn("[Store] 重试消息找不到:",$);return}const ue=n.value[J];if(ue.status!=="failed"){console.warn("[Store] 消息状态不是 failed,无法重试:",$);return}const me=ue.content;n.value.splice(J,1),console.log("[Store] 删除失败消息:",$),await xe(me,{msg_type:ue.msg_type,media_url:ue.media_url,file_name:ue.file_name,file_size:ue.file_size})}function T($){E.value=$,t.value&&(t.value.participants=$),console.log("[Store] 参与者列表已通过WS更新:",$.length,"人")}function U(){console.log("[Store] 当前用户被移除会话,清空状态"),t.value=null,E.value=[],n.value=[],h.value="",R.value=!1,ie()}function G($){var ue;if(((ue=t.value)==null?void 0:ue.conversation_id)!==$.conversation_id||!$.chunk)return;if(!I.value){const me=`ai_stream_${$.conversation_id}_${Date.now()}`;I.value=me,n.value.push({message_id:me,conversation_id:$.conversation_id,message_type:"ai",msg_type:"text",content:"",sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString()})}const J=n.value.findIndex(me=>me.message_id===I.value);J!==-1&&(n.value[J].content+=$.chunk)}function W($){var $e,mt;if((($e=t.value)==null?void 0:$e.conversation_id)!==$.conversation_id)return;const J={message_id:$.message_id,conversation_id:$.conversation_id,message_type:$.sender_type||"ai",msg_type:$.msg_type||"text",content:$.content,sender_name:$.sender_name||"Duckula(达寇拉)",created_at:new Date().toISOString(),status:"sent",extra_data:$.extra_data||void 0},ue=I.value?n.value.findIndex(kn=>kn.message_id===I.value):-1;if(ue!==-1?n.value[ue]=J:n.value.push(J),I.value=null,Z($.message_id),h.value=$.message_id,i.value=$.can_call_agent??!1,t.value){t.value.can_call_agent=$.can_call_agent??!1,t.value.ai_substantive_reply_count=$.ai_reply_count??0;const kn={ai_handling:"waiting",queued:"waiting",serving:"serving",resolved:"resolved"};t.value.status=kn[$.conversation_status]||t.value.status}const me=(mt=t.value)==null?void 0:mt.conversation_id;me&&Hs(me,n.value)}function se($){var me;if(((me=t.value)==null?void 0:me.conversation_id)!==$.conversation_id)return;const J={message_id:`ai_failed_${$.conversation_id}_${Date.now()}`,conversation_id:$.conversation_id,message_type:"ai",msg_type:"text",content:$.message||"⚠️ AI 服务异常,请输入「IT」转人工或稍后重试。",sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString(),status:"sent"},ue=I.value?n.value.findIndex($e=>$e.message_id===I.value):-1;ue!==-1?n.value[ue]=J:n.value.push(J),I.value=null}function te($){var $e;if((($e=t.value)==null?void 0:$e.conversation_id)!==$.conversation_id)return;const J=I.value,ue=J?n.value.findIndex(mt=>mt.message_id===J):-1,me=$.status==="still_thinking"?"仍在思考中,请稍候...":"正在思考...";if(ue!==-1)n.value[ue].content=me;else{const mt=`ai_thinking_${$.conversation_id}_${Date.now()}`;I.value=mt,n.value.push({message_id:mt,conversation_id:$.conversation_id,message_type:"ai",msg_type:"text",content:me,sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString()})}}function ee($){x.value.push($),x.value.length>3&&x.value.shift(),b.value+=1,console.log("[Store] 动态推荐已接收:",$.title,"未读:",b.value)}function X(){b.value=0}function _e($){const J=x.value.findIndex(ue=>ue.recommend_id===$);J!==-1&&x.value.splice(J,1)}function le($,J){var mt;const ue=(mt=t.value)==null?void 0:mt.conversation_id;if(!ue)return;const me=Ct();n.value.push({message_id:`option_select_${Date.now()}`,conversation_id:ue,message_type:"employee",msg_type:"text",content:J,sender_name:me.employeeName||"我",created_at:new Date().toISOString(),status:"sent"}),r0({type:"option_select",data:{conversation_id:ue,option_value:$,option_label:J}})||(console.warn("[Store] WS 未连接,选项选择降级为 HTTP 消息发送"),Ic({content:J,msg_type:"text"}).catch(kn=>{console.error("[Store] 选项选择 HTTP 降级发送失败:",kn)})),console.log("[Store] 选项选择已发送:",$,J)}function pe(){if(!I.value)return;const $=n.value.findIndex(J=>J.message_id===I.value);$!==-1&&n.value.splice($,1),I.value=null}const ye=q(null),Ie=q(null),De=q(null);function Ne($){var J;((J=t.value)==null?void 0:J.conversation_id)===$.conversation_id&&(ye.value={position:$.position,segment:$.segment,ahead_count:$.ahead_count,queue_priority:$.queue_priority})}function Ze($){var ue;if(((ue=t.value)==null?void 0:ue.conversation_id)!==$.conversation_id)return;t.value&&(t.value.status="resolved"),De.value={conversation_id:$.conversation_id,resolved_by:$.resolved_by,resolved_method:$.resolved_method,resolve_summary:$.resolve_summary||""},Ie.value=null;const J={message_id:`resolve_${$.conversation_id}_${Date.now()}`,conversation_id:$.conversation_id,message_type:"system",msg_type:"text",content:$o($.resolved_method),sender_name:"系统",created_at:new Date().toISOString(),status:"sent"};n.value.push(J)}function at($){var ue;if(((ue=t.value)==null?void 0:ue.conversation_id)!==$.conversation_id)return;t.value&&(t.value.status="waiting"),Ie.value={conversation_id:$.conversation_id,resolve_summary:$.resolve_summary||"",agent_name:$.agent_name||"坐席"};const J={message_id:`pending_close_${$.conversation_id}_${Date.now()}`,conversation_id:$.conversation_id,message_type:"system",msg_type:"text",content:`📋 ${$.agent_name||"坐席"}发起了结单请求请确认`,sender_name:"系统",created_at:new Date().toISOString(),status:"sent"};n.value.push(J)}function Nt($){const J={message_id:`quiz_diag_${$.conversation_id}_${Date.now()}`,conversation_id:$.conversation_id,message_type:"system",msg_type:"text",content:`📝 诊断信息已传递给坐席${$.question} ${$.selected_answer}`,sender_name:"系统",created_at:new Date().toISOString(),status:"sent"};n.value.push(J)}function Lt(){Ie.value=null}function Ln(){De.value=null,ye.value=null}function $o($){return $==="ai_self"?"✅ 问题已解决,会话已关闭。24小时内可重新打开。":$==="agent_confirm"?"✅ 坐席已结单,会话已关闭。24小时内可重新打开。":$==="employee_initiative"?"✅ 会话已关闭。24小时内可重新打开。":$==="system_timeout"?"⏰ 会话因长时间无响应已自动关闭。24小时内可重新打开。":"✅ 会话已关闭。24小时内可重新打开。"}async function bt(){var $;if(!_.value)try{console.log("[Store] 开始初始化应用..."),await Promise.all([ae(),de()]);const J=($=t.value)==null?void 0:$.conversation_id;if(J){const ue=f0(J);if(ue&&ue.length>0){console.log(`[Store] 加载缓存消息 ${ue.length} `),n.value=ue;const me=ue[ue.length-1];me&&(h.value=me.message_id)}}Promise.resolve().then(async()=>{try{const ue=await $c({limit:50});if(ue.items&&ue.items.length>0){const me=ue.items.filter($e=>P.value.has($e.message_id)?!1:(Z($e.message_id),!0));if(me.length>0){J&&n.value.length>0?n.value=p0(n.value,me):n.value=me;const $e=me[me.length-1];$e&&(h.value=$e.message_id),J&&Hs(J,n.value),console.log(`[Store] 历史消息已加载 ${n.value.length} `)}}}catch(ue){console.warn("[Store] 加载历史消息失败:",ue)}}),setTimeout(()=>{Promise.all([Y(),M()]).catch(ue=>console.warn("[Store] 加载面板数据失败:",ue))},500),ne(),_.value=!0,console.log("[Store] 应用初始化完成(缓存优先显示)")}catch(J){console.error("[Store] 应用初始化失败:",J)}}function Mt(){var $;($=t.value)!=null&&$.conversation_id&&h0(t.value.conversation_id),ie()}return{userInfo:e,currentConversation:t,messages:n,loading:s,shaking:o,canCallAgent:i,agentOnline:a,assistantPanelVisible:c,approvalLinks:d,approvalCardVisible:l,approvalCardTriggerText:u,softwareDownloads:f,lastMessageId:h,initialized:_,troubleshootingSteps:m,troubleshootingTemplateName:p,troubleshootingCurrentNode:v,participants:E,participantPanelVisible:R,isLoggedIn:K,hasActiveConversation:L,isParticipant:j,joinedParticipantCount:B,approvalLinksByCategory:O,softwareDownloadsByCategory:Q,handleOAuthCallback:he,fetchUserInfo:ae,fetchCurrentConversation:de,fetchMessages:oe,sendNewMessage:xe,pollNewMessages:we,startPolling:ne,stopPolling:ie,shakeAgent:Re,fetchApprovalLinks:Y,closeApprovalCard:ce,showApprovalCard:S,fetchSoftwareDownloads:M,toggleAssistantPanel:z,switchToConversation:N,leaveAsParticipant:H,toggleParticipantPanel:y,retryMessage:w,updateParticipants:T,handleRemovedFromConversation:U,initialize:bt,cleanup:Mt,handleNewMessage:Ce,handleAiReplyChunk:G,handleAiReply:W,handleAiReplyFailed:se,cancelStreamingBubble:pe,handleAiThinking:te,handleDynamicRecommend:ee,clearUnreadRecommend:X,removeRecommend:_e,sendOptionSelect:le,dynamicRecommendations:x,unreadRecommendCount:b,queuePositionData:ye,pendingCloseRequest:Ie,resolvedInfo:De,handleQueuePositionUpdate:Ne,handleConversationResolved:Ze,handlePendingCloseRequest:at,handleQuizDiagnosticAnswer:Nt,clearPendingCloseRequest:Lt,clearResolvedInfo:Ln}}),m0="/h5/duckula.webp";function _0(e,t){return tr()?(nu(e,t),!0):!1}const Fr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const g0=Object.prototype.toString,v0=e=>g0.call(e)==="[object Object]";function y0(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 pa(e){return Array.isArray(e)?e:[e]}function b0(e,t,n={}){const{immediate:s=!0,immediateCallback:o=!1}=n,i=Dn(!1);let a;function r(){a&&(clearTimeout(a),a=void 0)}function c(){i.value=!1,r()}function d(...l){o&&e(),r(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=void 0,e(...l)},ms(t))}return s&&(i.value=!0,Fr&&d()),_0(c),{isPending:Go(i),start:d,stop:c}}function w0(e,t,n){return ke(e,t,{...n,immediate:!0})}const S0=Fr?window:void 0,Hf=Fr?window.navigator:void 0;function E0(e){var t;const n=ms(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Wf(...e){const t=(s,o,i,a)=>(s.addEventListener(o,i,a),()=>s.removeEventListener(o,i,a)),n=V(()=>{const s=pa(ms(e[0])).filter(o=>o!=null);return s.every(o=>typeof o!="string")?s:void 0});return w0(()=>{var s,o;return[(s=(o=n.value)===null||o===void 0?void 0:o.map(i=>E0(i)))!==null&&s!==void 0?s:[S0].filter(i=>i!=null),pa(ms(n.value?e[1]:e[0])),pa(Ae(n.value?e[2]:e[1])),ms(n.value?e[3]:e[2])]},([s,o,i,a],r,c)=>{if(!(s!=null&&s.length)||!(o!=null&&o.length)||!(i!=null&&i.length))return;const d=v0(a)?{...a}:a,l=s.flatMap(u=>o.flatMap(f=>i.map(h=>t(u,f,h,d))));c(()=>{l.forEach(u=>u())})},{flush:"post"})}function C0(){const e=Dn(!1),t=Wt();return t&&st(()=>{e.value=!0},t),e}function Kf(e){const t=C0();return V(()=>(t.value,!!e()))}function Pc(e,t={}){const{controls:n=!1,navigator:s=Hf}=t,o=Kf(()=>s&&"permissions"in s),i=Dn(),a=typeof e=="string"?{name:e}:e,r=Dn(),c=()=>{var l,u;r.value=(l=(u=i.value)===null||u===void 0?void 0:u.state)!==null&&l!==void 0?l:"prompt"};Wf(i,"change",c,{passive:!0});const d=y0(async()=>{if(o.value){if(!i.value)try{i.value=await s.permissions.query(a)}catch{i.value=void 0}finally{c()}if(n)return Pe(i.value)}});return d(),n?{state:r,isSupported:o,query:d}:r}function x0(e={}){const{navigator:t=Hf,read:n=!1,source:s,copiedDuring:o=1500,legacy:i=!1}=e,a=Kf(()=>t&&"clipboard"in t),r=Pc("clipboard-read"),c=Pc("clipboard-write"),d=V(()=>a.value||i),l=Dn(""),u=Dn(!1),f=Dn(!1),h=b0(()=>u.value=!1,o,{immediate:!1});let _=0;async function m(){let b=!(a.value&&x(r.value));if(!b)try{l.value=await t.clipboard.readText()}catch{b=!0}b&&(l.value=R())}d.value&&n&&Wf(["copy","cut"],m,{passive:!0});async function p(b){const I=b??ms(s);if(d.value&&I!=null){f.value=!0;let P=!(a.value&&x(c.value));if(!P)try{const K=v(I);await t.clipboard.write([K])}catch{P=!0}if(P)if(typeof I=="string")l.value=I,E(I);else{const K=++_,L=await I();L!=null&&K===_&&(l.value=L,E(L))}u.value=!0,h.start(),f.value=!1}}function v(b){return typeof b=="string"?(l.value=b,new ClipboardItem({"text/plain":b})):new ClipboardItem({"text/plain":b().then((I="")=>(l.value=I,new Blob([I],{type:"text/plain"})))})}function E(b){const I=document.createElement("textarea");I.value=b,I.style.position="absolute",I.style.opacity="0",I.setAttribute("readonly",""),document.body.appendChild(I),I.select(),document.execCommand("copy"),I.remove()}function R(){var b,I,P;return(b=(I=document)===null||I===void 0||(P=I.getSelection)===null||P===void 0||(P=P.call(I))===null||P===void 0?void 0:P.toString())!==null&&b!==void 0?b:""}function x(b){return b==="granted"||b==="prompt"}return{copyPending:Go(f),isSupported:d,text:Go(l),copied:Go(u),copy:p}}async function Gf(e,t=!1){return Ve.get("/wecom/jsapi-config",{params:{url:e,with_agent_config:t}})}const k0="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",Dc=8e3,Bc=8e3,T0=1e4,A0=8e3,R0=["agentConfig","thirdPartyOpenPage","checkJsApi"],I0=["thirdPartyOpenPage"];function $0(){const e=q(!1),t=q(!1),n=q(null);let s=!1;function o(){return/wxwork/i.test(navigator.userAgent)}function i(h){const _=h.match(/template_id=([^&]+)/);return _?_[1]:null}function a(h){return h.includes("template_id=")}function r(){return new Promise((h,_)=>{if(typeof window.wx<"u"){h();return}const m=setTimeout(()=>{p.onload=null,p.onerror=null,_(new Error("加载企微 JS-SDK 脚本超时"))},T0),p=document.createElement("script");p.src=k0,p.async=!0,p.onload=()=>{clearTimeout(m),typeof window.wx<"u"?h():_(new Error("JS-SDK 脚本已加载但 window.wx 未挂载"))},p.onerror=()=>{clearTimeout(m),_(new Error("加载企微 JS-SDK 脚本失败"))},document.head.appendChild(p)})}function c(h){return new Promise((_,m)=>{const p=window.wx;if(!p||typeof p.config!="function"){m(new Error("wx.config 不可用,JS-SDK 未正确加载"));return}let v=!1;const E=setTimeout(()=>{v||(v=!0,m(new Error(`wx.config 鉴权超时${Dc/1e3}秒无响应`)))},Dc);p.ready(()=>{v||(v=!0,clearTimeout(E),_())}),p.error(R=>{v||(v=!0,clearTimeout(E),m(new Error(`wx.config 失败: ${R.errMsg}`)))}),p.config({beta:!0,debug:!1,appId:h.corp_id,timestamp:h.timestamp,nonceStr:h.nonce_str,signature:h.signature,jsApiList:R0})})}function d(h){return new Promise((_,m)=>{const p=window.wx;if(!p||typeof p.agentConfig!="function"){m(new Error("wx.agentConfig 不可用"));return}let v=!1;const E=setTimeout(()=>{v||(v=!0,m(new Error(`wx.agentConfig 超时${Bc/1e3}秒无响应`)))},Bc);p.agentConfig({corpid:h.corp_id,agentid:h.agent_id,timestamp:h.agent_config.timestamp,nonceStr:h.agent_config.nonce_str,signature:h.agent_config.signature,jsApiList:I0,success:()=>{v||(v=!0,clearTimeout(E),_())},fail:R=>{v||(v=!0,clearTimeout(E),m(new Error(`wx.agentConfig 失败: ${R.errMsg}`)))}})})}function l(h){return new Promise(_=>{const m=window.wx;if(!m||typeof m.invoke!="function"){_(!1);return}const p={oaType:"10001",templateId:h,thirdNo:`itsmartdesk_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,extData:{fieldList:[]}};let v=!1;const E=setTimeout(()=>{v||(v=!0,_(!1))},A0);m.invoke("thirdPartyOpenPage",p,R=>{v||(v=!0,clearTimeout(E),_(R.err_msg==="thirdPartyOpenPage:ok"))})})}async function u(){if(!s){t.value=!0,n.value=null;try{await r();const h=window.location.href.split("#")[0],_=await Gf(h,!0);if(!_.agent_config)throw new Error("后端未返回 agent_config 签名");await c(_),await d({corp_id:_.corp_id,agent_id:_.agent_id,timestamp:_.timestamp,agent_config:_.agent_config}),s=!0,e.value=!0}catch(h){n.value=(h==null?void 0:h.message)||"JS-SDK 初始化失败"}finally{t.value=!1}}}async function f(h){if(!o()){window.location.href=h;return}if(!a(h)){window.location.href=h;return}const _=i(h);if(!_){window.location.href=h;return}if(s||await u(),!e.value){window.location.href=h;return}await l(_)||(window.location.href=h)}return{isReady:e,isLoading:t,error:n,isWecomEnv:o,openUrl:f,init:u}}const O0={class:"approval-card-inline"},P0={class:"approval-card-inline__header"},D0={class:"approval-card-inline__title-row"},B0={key:0,class:"approval-card-inline__tag"},N0={class:"approval-card-inline__options"},L0=["onClick"],M0={class:"approval-card-inline__option-icon"},F0={class:"approval-card-inline__option-content"},V0={class:"approval-card-inline__option-name"},j0={class:"approval-card-inline__option-desc"},q0=be({__name:"ApprovalCardModal",props:{approvalType:{default:""}},setup(e){const t=e,{openUrl:n}=$0(),s={设备申请:[{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"}]},o=V(()=>t.approvalType&&s[t.approvalType]?s[t.approvalType]:Object.values(s).flat()),i=q([]);async function a(){if(!(i.value.length>0))try{i.value=await Ww()}catch(c){console.error("[ApprovalCard] 加载审批关键词失败:",c)}}st(()=>{a()});async function r(c){if(c.url){await n(c.url);return}try{const d=i.value.find(l=>l.template_name===t.approvalType||l.keyword===c.name);if(d)if(d.type==="jump"){const l=await Kw(d.template_id);await n(l.url)}else Te("该功能正在开发中");else Te(`${c.name} 审批模板配置中请稍后`)}catch(d){console.error("[ApprovalCard] 打开审批失败:",d),Te("打开审批失败,请重试")}}return(c,d)=>{const l=It;return k(),A("div",O0,[g("div",P0,[g("div",D0,[C(l,{name:"orders-o",size:"16",color:"#07c160"}),d[0]||(d[0]=g("span",{class:"approval-card-inline__title"},"审批快捷入口",-1)),e.approvalType?(k(),A("span",B0,F(e.approvalType),1)):re("",!0)]),d[1]||(d[1]=g("div",{class:"approval-card-inline__subtitle"}," 检测到您可能需要提交审批,请选择对应类型 ",-1))]),g("div",N0,[(k(!0),A(Se,null,tt(o.value,u=>(k(),A("div",{key:u.name,class:"approval-card-inline__option",onClick:f=>r(u)},[g("div",M0,[C(l,{name:u.icon,size:"20"},null,8,["name"])]),g("div",F0,[g("div",V0,F(u.name),1),g("div",j0,F(u.desc),1)]),C(l,{name:"arrow",class:"approval-card-inline__option-arrow"})],8,L0))),128))])])}}}),ut=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},U0=ut(q0,[["__scopeId","data-v-8b4eb13d"]]),z0={class:"byod-card__header"},H0={class:"byod-card__title-row"},W0={class:"byod-card__title"},K0={class:"byod-card__subtitle"},G0={class:"byod-card__info-section"},J0={class:"byod-card__info-row"},X0={class:"byod-card__info-value"},Y0={key:0,class:"byod-card__info-row"},Q0={class:"byod-card__info-value"},Z0={key:0,class:"byod-card__notes"},e1={class:"byod-card__notes-title"},t1={class:"byod-card__notes-list"},n1={key:1,class:"byod-card__reason"},s1={class:"byod-card__reason-text"},o1={key:2,class:"byod-card__action"},i1=["href"],a1=be({__name:"ByodSubsidyCard",props:{eligible:{type:Boolean,default:!1},hasSubsidy:{type:Boolean,default:!1},position:{default:""},applicationUrl:{default:""},notes:{default:()=>[]},reason:{default:""},matchedCategory:{default:""}},setup(e){const t=e,n=V(()=>t.eligible?"byod-card--eligible":t.applicationUrl?"byod-card--register":"byod-card--ineligible"),s=V(()=>t.eligible?"passed":t.applicationUrl?"edit":"close"),o=V(()=>t.eligible?"#07c160":t.applicationUrl?"#ff9800":"#969799"),i=V(()=>t.eligible?"自备电脑补贴资格":t.applicationUrl?"自备电脑登记":"自备电脑补贴资格"),a=V(()=>t.eligible?"byod-card__tag--eligible":t.applicationUrl?"byod-card__tag--register":"byod-card__tag--ineligible"),r=V(()=>t.eligible?"可申请":t.applicationUrl?"可登记":"不可申请"),c=V(()=>t.eligible?"您的岗位符合自备电脑补贴申请资格":t.applicationUrl?"您的岗位可进行自备电脑登记(无补贴)":"您的岗位暂不符合自备电脑补贴申请资格");function d(l){l.preventDefault();const u=l.currentTarget.href;u&&(window.location.href=u)}return(l,u)=>{const f=It;return k(),A("div",{class:ge(["byod-card",n.value])},[g("div",z0,[g("div",H0,[C(f,{name:s.value,size:"16",color:o.value},null,8,["name","color"]),g("span",W0,F(i.value),1),g("span",{class:ge(["byod-card__tag",a.value])},F(r.value),3)]),g("div",K0,F(c.value),1)]),g("div",G0,[g("div",J0,[u[0]||(u[0]=g("span",{class:"byod-card__info-label"},"当前岗位",-1)),g("span",X0,F(e.position||"未获取到岗位信息"),1)]),e.matchedCategory?(k(),A("div",Y0,[u[1]||(u[1]=g("span",{class:"byod-card__info-label"},"资格类别",-1)),g("span",Q0,F(e.matchedCategory),1)])):re("",!0)]),e.notes.length>0?(k(),A("div",Z0,[g("div",e1,[C(f,{name:"info-o",size:"13",color:o.value},null,8,["color"]),g("span",null,F(e.eligible?"申请须知":"登记须知"),1)]),g("ul",t1,[(k(!0),A(Se,null,tt(e.notes,(h,_)=>(k(),A("li",{key:_,class:"byod-card__note-item"},F(h),1))),128))])])):re("",!0),!e.eligible&&e.reason?(k(),A("div",n1,[C(f,{name:"warning-o",size:"14",color:o.value},null,8,["color"]),g("span",s1,F(e.reason),1)])):re("",!0),e.applicationUrl?(k(),A("div",o1,[g("a",{href:e.applicationUrl,class:ge(["byod-card__btn",e.eligible?"byod-card__btn--eligible":"byod-card__btn--register"]),onClick:d},[C(f,{name:"arrow",size:"14",color:"#ffffff"}),g("span",null,F(e.eligible?"去申请":"去登记"),1)],10,i1)])):re("",!0)],2)}}}),r1=ut(a1,[["__scopeId","data-v-7197147e"]]),l1={class:"contact-card"},c1={class:"contact-card__header"},u1=["src"],d1={key:1},f1={class:"contact-card__name-row"},h1={class:"contact-card__name"},p1={class:"contact-card__dept"},m1={class:"contact-card__body"},_1={class:"contact-card__info-item"},g1={class:"contact-card__info-value contact-card__info-value--highlight"},v1={key:0,class:"contact-card__info-item"},y1={class:"contact-card__info-value"},b1={key:1,class:"contact-card__info-item"},w1={class:"contact-card__info-label"},S1={class:"contact-card__info-value"},E1=be({__name:"ContactCard",props:{contact:{}},setup(e){const t=e,n=V(()=>t.contact.name?t.contact.name.charAt(0):"?"),s=V(()=>{const c=["gradient-1","gradient-2","gradient-3","gradient-4","gradient-5"];if(!t.contact.name)return c[0];const d=t.contact.name.charCodeAt(0);return c[d%c.length]}),o=V(()=>t.contact.gender==="female"?"♀":"♂"),i=V(()=>t.contact.gender==="female"?"gender-female":"gender-male"),a=V(()=>t.contact.business_category==="行政-物业"?"办公地点":"服务区域");function r(){const c=t.contact.wecom_userid;if(!c){Te("暂时无法发起聊天,请联系管理员");return}const d=window.wx;if(!d||!d.invoke){Te("暂时无法发起聊天,请联系管理员");return}try{d.invoke("openEnterpriseChat",{userids:c,chatTitle:t.contact.name},l=>{l&&l.err_msg&&l.err_msg!=="openEnterpriseChat:ok"&&(console.error("[ContactCard] openEnterpriseChat 失败:",l.err_msg),Te("暂时无法发起聊天,请联系管理员"))})}catch(l){console.error("[ContactCard] openEnterpriseChat 调用异常:",l),Te("暂时无法发起聊天,请联系管理员")}}return(c,d)=>(k(),A("div",l1,[g("div",c1,[g("div",{class:ge(["contact-card__avatar",s.value])},[e.contact.avatar_url?(k(),A("img",{key:0,src:e.contact.avatar_url,alt:"",class:"contact-card__avatar-img"},null,8,u1)):(k(),A("span",d1,F(n.value),1))],2),g("div",f1,[g("div",h1,[je(F(e.contact.name)+" ",1),g("span",{class:ge(["contact-card__gender",i.value])},F(o.value),3)]),g("div",p1,F(e.contact.department)+" · "+F(e.contact.position),1)]),d[0]||(d[0]=g("span",{class:"contact-card__badge"},"员工名片",-1))]),g("div",m1,[g("div",_1,[d[1]||(d[1]=g("span",{class:"contact-card__info-label"},"负责业务",-1)),g("span",g1,F(e.contact.responsibility),1)]),e.contact.extension?(k(),A("div",v1,[d[2]||(d[2]=g("span",{class:"contact-card__info-label"},"分机号",-1)),g("span",y1,F(e.contact.extension),1)])):re("",!0),e.contact.service_area?(k(),A("div",b1,[g("span",w1,F(a.value),1),g("span",S1,F(e.contact.service_area),1)])):re("",!0)]),g("div",{class:"contact-card__footer"},[g("button",{class:"contact-card__action-btn",onClick:r},[...d[3]||(d[3]=[g("span",{class:"contact-card__action-icon"},"💬",-1),g("span",null,"联系TA",-1)])])])]))}}),C1=ut(E1,[["__scopeId","data-v-ab0a689c"]]),x1={key:0,class:"message-bubble message-bubble--approval-card"},k1={key:1,class:"message-bubble message-bubble--byod-card"},T1={key:2,class:"message-bubble message-bubble--contact-card"},A1={key:3,class:"message-bubble message-bubble--system"},R1={class:"message-bubble__system-text"},I1={key:0,class:"message-bubble__sender"},$1={key:0,src:m0,class:"message-bubble__ai-avatar",alt:"Duckula"},O1={class:"message-bubble__sender-name"},P1={class:"reply-quote__text"},D1={class:"reply-quote__sender"},B1={key:1,class:"message-bubble__text",style:{"white-space":"pre-wrap"}},N1={class:"message-bubble__text",style:{"white-space":"pre-wrap"}},L1={key:0,class:"ai-options"},M1=["onClick"],F1=["src","alt"],V1={key:1,class:"media-card"},j1={class:"media-card__info"},q1={key:0,class:"media-card__name"},U1=["href"],z1={class:"media-card__info"},H1={class:"media-card__label"},W1={key:0,class:"media-card__size"},K1={key:1,class:"media-card"},G1={class:"media-card__info"},J1={class:"media-card__label"},X1={key:0,class:"media-card__size"},Y1={key:5,class:"media-card"},Q1={class:"media-card__icon"},Z1={class:"media-card__info"},eS={class:"media-card__label"},tS={key:0,class:"media-card__name"},nS={key:1,class:"media-card__size"},sS={key:6,class:"message-bubble__actions"},oS=be({__name:"MessageBubble",props:{msg:{}},emits:["scrollToMessage"],setup(e){const t=e,n=Ot(),{copy:s}=x0(),o=q(!1),i=q(!1);async function a(){try{await s(t.msg.content),i.value=!0,Te("已复制"),setTimeout(()=>{i.value=!1},1500)}catch(x){console.error("复制失败:",x)}}const r=V(()=>{const x=[`message-bubble--${t.msg.message_type}`];return t.msg.status==="sending"?x.push("message-bubble--sending"):t.msg.status==="failed"&&x.push("message-bubble--failed"),t.msg.message_type==="ai"&&c.value&&x.push("message-bubble--thinking"),x.join(" ")}),c=V(()=>{if(t.msg.message_type!=="ai")return!1;const x=t.msg.content||"";return x.startsWith("正在思考")||x.startsWith("仍在思考")}),d=V(()=>`message-bubble__content--${t.msg.message_type}`),l=V(()=>t.msg.message_type==="employee"?"message-bubble__time--right":"message-bubble__time--left"),u=V(()=>t.msg.message_type==="agent"?t.msg.sender_name||"IT坐席":t.msg.message_type==="ai"?"Duckula(达寇拉)":t.msg.sender_name),f=V(()=>({image:"🖼️",voice:"🎤",video:"🎬",file:"📎",location:"📍"})[t.msg.msg_type||""]||"📄"),h=V(()=>({image:"图片消息",voice:"语音消息",video:"视频消息",file:"文件消息",location:"位置消息"})[t.msg.msg_type||""]||"媒体消息"),_=V(()=>t.msg.reply_to_id?"...":""),m=V(()=>(t.msg.reply_to_id,""));function p(x){if(!x)return"";const b=new Date(x),I=b.getHours().toString().padStart(2,"0"),P=b.getMinutes().toString().padStart(2,"0");return`${I}:${P}`}function v(x){return x<1024?`${x} B`:x<1024*1024?`${(x/1024).toFixed(1)} KB`:`${(x/(1024*1024)).toFixed(1)} MB`}function E(){var b;const x=t.msg.media_url||((b=t.msg.extra_data)==null?void 0:b.pic_url);x&&window.open(x,"_blank")}function R(x){n.sendOptionSelect(x.value,x.label||x.value)}return(x,b)=>{var I,P,K,L,j,B,O,Q,Z,Ce,he,ae,de,xe,we,oe,ne,ie,Re,Y;return e.msg.msg_type==="approval_card"?(k(),A("div",x1,[C(U0,{"approval-type":((I=e.msg.extra_data)==null?void 0:I.approval_type)||""},null,8,["approval-type"])])):e.msg.msg_type==="byod_card"?(k(),A("div",k1,[C(r1,{eligible:((K=(P=e.msg.extra_data)==null?void 0:P.byod_result)==null?void 0:K.eligible)??!1,"has-subsidy":((j=(L=e.msg.extra_data)==null?void 0:L.byod_result)==null?void 0:j.has_subsidy)??!1,position:((O=(B=e.msg.extra_data)==null?void 0:B.byod_result)==null?void 0:O.position)??"","application-url":((Z=(Q=e.msg.extra_data)==null?void 0:Q.byod_result)==null?void 0:Z.application_url)??"",notes:((he=(Ce=e.msg.extra_data)==null?void 0:Ce.byod_result)==null?void 0:he.notes)??[],reason:((de=(ae=e.msg.extra_data)==null?void 0:ae.byod_result)==null?void 0:de.reason)??"","matched-category":((we=(xe=e.msg.extra_data)==null?void 0:xe.byod_result)==null?void 0:we.matched_category)??""},null,8,["eligible","has-subsidy","position","application-url","notes","reason","matched-category"])])):e.msg.msg_type==="contact_card"?(k(),A("div",T1,[C(C1,{contact:((oe=e.msg.extra_data)==null?void 0:oe.contact)??{}},null,8,["contact"])])):e.msg.message_type==="system"?(k(),A("div",A1,[g("span",R1,F(e.msg.content),1)])):(k(),A("div",{key:4,class:ge(["message-bubble",r.value]),onMouseenter:b[2]||(b[2]=ce=>o.value=!0),onMouseleave:b[3]||(b[3]=ce=>o.value=!1)},[e.msg.message_type!=="employee"?(k(),A("div",I1,[e.msg.message_type==="ai"?(k(),A("img",$1)):re("",!0),g("span",O1,F(u.value),1)])):re("",!0),g("div",{class:ge(["message-bubble__content",d.value])},[e.msg.reply_to_id&&_.value?(k(),A("div",{key:0,class:"reply-quote",onClick:b[0]||(b[0]=gn(ce=>x.$emit("scrollToMessage",e.msg.reply_to_id),["stop"]))},[b[4]||(b[4]=g("div",{class:"reply-quote__bar"},null,-1)),g("div",P1,[g("span",D1,F(m.value),1),je(" "+F(_.value),1)])])):re("",!0),!e.msg.msg_type||e.msg.msg_type==="text"?(k(),A("p",B1,F(e.msg.content),1)):e.msg.msg_type==="ai_structured"?(k(),A(Se,{key:2},[g("p",N1,F(e.msg.content),1),(ie=(ne=e.msg.extra_data)==null?void 0:ne.options)!=null&&ie.length?(k(),A("div",L1,[(k(!0),A(Se,null,tt(e.msg.extra_data.options,(ce,S)=>(k(),A("button",{key:S,class:"ai-options__btn",onClick:gn(M=>R(ce),["stop"])},F(ce.label||ce.value),9,M1))),128))])):re("",!0)],64)):e.msg.msg_type==="image"?(k(),A("div",{key:3,class:"image-message",onClick:E},[e.msg.media_url||(Re=e.msg.extra_data)!=null&&Re.pic_url?(k(),A("img",{key:0,src:e.msg.media_url||((Y=e.msg.extra_data)==null?void 0:Y.pic_url),alt:e.msg.file_name||"图片",class:"image-message__thumbnail",loading:"lazy"},null,8,F1)):(k(),A("div",V1,[b[6]||(b[6]=g("div",{class:"media-card__icon"},"🖼️",-1)),g("div",j1,[b[5]||(b[5]=g("span",{class:"media-card__label"},"图片消息",-1)),e.msg.file_name?(k(),A("span",q1,F(e.msg.file_name),1)):re("",!0)])]))])):e.msg.msg_type==="file"?(k(),A(Se,{key:4},[e.msg.media_url?(k(),A("a",{key:0,href:e.msg.media_url,target:"_blank",class:"media-card media-card--link",onClick:b[1]||(b[1]=gn(()=>{},["stop"]))},[b[7]||(b[7]=g("div",{class:"media-card__icon"},"📎",-1)),g("div",z1,[g("span",H1,F(e.msg.file_name||"文件消息"),1),e.msg.file_size?(k(),A("span",W1,F(v(e.msg.file_size)),1)):re("",!0)])],8,U1)):(k(),A("div",K1,[b[8]||(b[8]=g("div",{class:"media-card__icon"},"📎",-1)),g("div",G1,[g("span",J1,F(e.msg.file_name||"文件消息"),1),e.msg.file_size?(k(),A("span",X1,F(v(e.msg.file_size)),1)):re("",!0)])]))],64)):(k(),A("div",Y1,[g("div",Q1,F(f.value),1),g("div",Z1,[g("span",eS,F(h.value),1),e.msg.file_name?(k(),A("span",tS,F(e.msg.file_name),1)):re("",!0),e.msg.file_size?(k(),A("span",nS,F(v(e.msg.file_size)),1)):re("",!0)])])),o.value?(k(),A("div",sS,[!e.msg.msg_type||e.msg.msg_type==="text"?(k(),A("button",{key:0,class:"action-btn",title:"复制消息",onClick:gn(a,["stop"])},F(i.value?"✓":"📋"),1)):re("",!0)])):re("",!0)],2),g("div",{class:ge(["message-bubble__time",l.value])},F(p(e.msg.created_at)),3)],34))}}}),iS=ut(oS,[["__scopeId","data-v-9160dbf4"]]);async function ma(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 aS(n)}async function aS(e,t=3){for(let n=0;n<=t;n++)try{return await Ve.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("上传失败:已达最大重试次数")}const Nc="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",rS=59e3,Lc=8e3,lS=1e4,Mc=!1,Fc=["startRecord","stopRecord","translateVoice","checkJsApi"];function cS(){const e=pt({isReady:!1,isRecording:!1,isTranslating:!1,error:null});let t=!1,n=null;function s(){return new Promise((d,l)=>{if(typeof window.wx<"u"){console.log("[WecomVoice] JS-SDK 已加载(window.wx 存在),跳过动态加载"),d();return}console.log("[WecomVoice] 动态加载 JS-SDK 脚本:",Nc);const u=setTimeout(()=>{f.onload=null,f.onerror=null,l(new Error("加载企微 JS-SDK 脚本超时(10秒),请检查网络连接"))},lS),f=document.createElement("script");f.src=Nc,f.async=!0,f.onload=()=>{clearTimeout(u),typeof window.wx<"u"?(console.log("[WecomVoice] JS-SDK 脚本加载成功,window.wx 已挂载"),d()):(console.error("[WecomVoice] JS-SDK 脚本已加载,但 window.wx 未挂载"),l(new Error("企微 JS-SDK 脚本已加载,但 window.wx 未挂载")))},f.onerror=()=>{clearTimeout(u),console.error("[WecomVoice] JS-SDK 脚本加载失败"),l(new Error("加载企微 JS-SDK 脚本失败,请检查网络连接"))},document.head.appendChild(f)})}function o(d){return new Promise((l,u)=>{const f=window.wx;if(!f||typeof f.config!="function"){const m="wx.config 不可用,JS-SDK 未正确加载";console.error("[WecomVoice]",m),e.isReady=!1,e.error=m,u(new Error(m));return}let h=!1;const _=setTimeout(()=>{h||(h=!0,e.isReady=!1,e.error=`wx.config 鉴权超时${Lc/1e3}秒无响应可能是签名无效或企微环境异常`,console.error("[WecomVoice]",e.error),u(new Error(e.error)))},Lc);f.ready(()=>{h||(h=!0,clearTimeout(_),e.isReady=!0,console.log("[WecomVoice] wx.config 鉴权成功(ready 回调触发)"),l())}),f.error(m=>{h||(h=!0,clearTimeout(_),e.isReady=!1,e.error=`JS-SDK 鉴权失败: ${m.errMsg}`,console.error("[WecomVoice] wx.config 鉴权失败:",m.errMsg),u(new Error(e.error)))}),console.log("[WecomVoice] 调用 wx.config:",{appId:d.corp_id,timestamp:d.timestamp,debug:Mc,jsApiList:Fc}),f.config({beta:!0,debug:Mc,appId:d.corp_id,timestamp:d.timestamp,nonceStr:d.nonce_str,signature:d.signature,jsApiList:Fc})})}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 d=window.location.href.split("#")[0];console.log("[WecomVoice] 签名 URL:",d);const l=await Gf(d);console.log("[WecomVoice] 签名配置:",{corp_id:l.corp_id,agent_id:l.agent_id,timestamp:l.timestamp,nonce_str:l.nonce_str,signature:l.signature?l.signature.substring(0,10)+"...":"(空)"}),console.log("[WecomVoice] Step 3/3: wx.config 鉴权"),await o(l),window.wx&&typeof window.wx.checkJsApi=="function"&&window.wx.checkJsApi({jsApiList:["startRecord","stopRecord","translateVoice"],success:u=>{console.log("[WecomVoice] checkJsApi 结果:",JSON.stringify(u))},fail:u=>{console.warn("[WecomVoice] checkJsApi 失败(不阻塞):",u)}}),t=!0,e.error=null,console.log("[WecomVoice] ===== 初始化完成 =====")}catch(d){throw e.error=(d==null?void 0:d.message)||"JS-SDK 初始化失败",console.error("[WecomVoice] ===== 初始化失败 =====",e.error),d}}async function a(){if(e.isRecording){console.log("[WecomVoice] 已在录音中,跳过");return}e.isReady||(console.log("[WecomVoice] SDK 未就绪,先调用 init()..."),await i());const d=window.wx;if(!d||typeof d.startRecord!="function"){const l="wx.startRecord 不可用,JS-SDK 未正确初始化";throw console.error("[WecomVoice]",l),e.error=l,new Error(l)}return new Promise((l,u)=>{let f=!1;const h=setTimeout(()=>{f||(f=!0,n&&(clearTimeout(n),n=null),e.error="录音启动超时,当前企微版本可能不支持语音录制接口",console.error("[WecomVoice] startRecord 15秒无回调,可能不支持此接口"),u(new Error(e.error)))},15e3);n=setTimeout(()=>{e.isRecording&&(console.log("[WecomVoice] 59秒自动停止录音"),r().catch(_=>{e.error=`自动停止录音失败: ${(_==null?void 0:_.message)||"未知错误"}`}))},rS),console.log("[WecomVoice] 调用 wx.startRecord..."),d.startRecord({success:()=>{f||(f=!0,clearTimeout(h),e.isRecording=!0,e.error=null,console.log("[WecomVoice] 录音开始成功(startRecord success 回调)"),l())},fail:_=>{f||(f=!0,clearTimeout(h),n&&(clearTimeout(n),n=null),e.error=`开始录音失败: ${_.errMsg}`,console.error("[WecomVoice] 录音开始失败:",_.errMsg),u(new Error(e.error)))},cancel:()=>{f||(f=!0,clearTimeout(h),n&&(clearTimeout(n),n=null),e.error="用户拒绝了录音权限",console.warn("[WecomVoice] 用户拒绝录音权限"),u(new Error(e.error)))}})})}async function r(){const d=window.wx;return n&&(clearTimeout(n),n=null),e.isRecording?(console.log("[WecomVoice] 调用 wx.stopRecord..."),new Promise((l,u)=>{d.stopRecord({success:f=>{e.isRecording=!1;const h=f.localId;if(console.log("[WecomVoice] 停止录音成功,localId:",h),!h){u(new Error("未获取到录音 localId"));return}e.isTranslating=!0,console.log("[WecomVoice] 调用 wx.translateVoice..."),d.translateVoice({localId:h,isShowProgressTips:1,success:_=>{e.isTranslating=!1;const m=(_.translateResult||"").trim();console.log("[WecomVoice] 语音转文字成功:",m),l(m)},fail:_=>{e.isTranslating=!1,e.error=`语音转文字失败: ${_.errMsg}`,console.error("[WecomVoice] 语音转文字失败:",_.errMsg),u(new Error(e.error))}})},fail:f=>{e.isRecording=!1,e.error=`停止录音失败: ${f.errMsg}`,console.error("[WecomVoice] 停止录音失败:",f.errMsg),u(new Error(e.error))}})})):(console.log("[WecomVoice] 未在录音中,跳过 stopAndTranslate"),"")}function c(){const d=navigator.userAgent,l=/wxwork/i.test(d),u=/Mobile|Android|iPhone|iPad|iPod/i.test(d);return l&&u}return{state:e,init:i,startRecording:a,stopAndTranslate:r,isSupported:c}}const Rn=16e3;function uS(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 dS(e,t,n){if(t===n)return e;const s=t/n,o=Math.round(e.length/s),i=new Float32Array(o);for(let a=0;a<o;a++){const r=a*s,c=Math.floor(r),d=r-c;c+1<e.length?i[a]=e[c]*(1-d)+e[c+1]*d:i[a]=e[c]||0}return i}function fS(e){const t=new ArrayBuffer(e.length*2),n=new DataView(t);for(let s=0;s<e.length;s++){const o=Math.max(-1,Math.min(1,e[s])),i=o<0?o*32768:o*32767;n.setInt16(s*2,i,!0)}return t}function hS(){const e=q(!1);let t=null,n=null,s=null,o=null,i=[],a=Rn,r=!1;async function c(){var u;if(e.value){console.warn("[AudioRecorder] 已在录音中,跳过 start()");return}r=!1,i=[];try{if(!((u=navigator.mediaDevices)!=null&&u.getUserMedia))throw new Error("当前浏览器不支持录音功能,请使用 Chrome 或 Edge");n=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,sampleRate:Rn,echoCancellation:!0,noiseSuppression:!0}});const f=window.AudioContext||window.webkitAudioContext;if(!f)throw new Error("当前浏览器不支持 Web Audio API");try{t=new f({sampleRate:Rn})}catch{t=new f}a=t.sampleRate,s=t.createMediaStreamSource(n),o=t.createScriptProcessor(4096,1,1),o.onaudioprocess=h=>{if(r)return;const _=h.inputBuffer.getChannelData(0);i.push(new Float32Array(_))},s.connect(o),o.connect(t.destination),e.value=!0,console.log(`[AudioRecorder] 录音开始native=${a}Hz, target=${Rn}Hz`)}catch(f){l();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 d(){r=!0,l();const u=uS(i),f=a!==Rn?dS(u,a,Rn):u,h=fS(f),_=new Blob([h],{type:"audio/pcm"});return console.log(`[AudioRecorder] 录音停止PCM 数据: ${_.size} bytes`+(a!==Rn?` (重采样 ${a}${Rn}Hz)`:"")),e.value=!1,i=[],_}function l(){if(o){try{o.disconnect()}catch{}o.onaudioprocess=null,o=null}if(s){try{s.disconnect()}catch{}s=null}n&&(n.getTracks().forEach(u=>u.stop()),n=null),t&&(t.close().catch(()=>{}),t=null)}return{isRecording:e,start:c,stop:d}}async function pS(e){const t=new FormData;t.append("audio",e,"recording.pcm");const n=await Ve.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 mS={class:"input-bar"},_S={class:"input-bar__row"},gS={key:0,class:"emoji-panel"},vS={class:"emoji-panel__grid"},yS=["onClick"],bS={key:1,class:"input-bar__voice-status"},wS={key:0},SS={key:1},ES={class:"input-bar__input-row"},CS={class:"input-bar__controls"},xS=["disabled","title"],kS={class:"call-agent-btn__icon"},TS={class:"call-agent-btn__text"},AS={class:"input-bar__controls-row"},RS=["title","disabled"],IS={key:1,class:"input-bar__guide"},$S=be({__name:"InputBar",emits:["call-agent"],setup(e,{emit:t}){function n(N){return N?typeof N=="string"?N:Array.isArray(N)?N.map(H=>H.loc&&H.msg?`${H.loc.slice(1).join(".")}: ${H.msg}`:H.msg?H.msg:JSON.stringify(H)).join("; "):typeof N=="object"?JSON.stringify(N):String(N):""}const s=Ot(),o=t,i=["电脑无法启动","网络无法连接","多人不能上网","无法上网","开不了机","连不上网","全部断网"],a=V(()=>{const N=s.currentConversation;return!N||N.status==="resolved"||N.status==="serving"?"hidden":f()?"urgent":s.canCallAgent?"active":"disabled"}),r=V(()=>a.value!=="hidden"),c=V(()=>({"call-agent-btn--disabled":a.value==="disabled","call-agent-btn--active":a.value==="active","call-agent-btn--urgent":a.value==="urgent"})),d=V(()=>a.value==="urgent"?"🚨":a.value==="active"?"🎧":"🔒"),l=V(()=>"人工坐席"),u=V(()=>a.value==="urgent"?"检测到紧急问题,直接呼叫人工坐席":a.value==="active"?"点击呼叫人工坐席":"再多描述几句话即可激活");function f(){var H;const N=s.messages.filter(y=>y.message_type==="employee").slice(-5);for(const y of N){const w=((H=y.content)==null?void 0:H.toLowerCase())||"";for(const T of i)if(w.includes(T.toLowerCase()))return!0}return!1}function h(){a.value!=="disabled"&&o("call-agent")}const _=q(""),m=q(null),p=q(null),v=V(()=>_.value.trim().length>0&&!s.loading&&s.isLoggedIn),E=q(!1),R=q(!1),{state:x,init:b,startRecording:I,stopAndTranslate:P,isSupported:K}=cS(),L=V(()=>{if(K())return"wecom";if(navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function")return"baidu";const N=navigator.userAgent,H=/wxwork/i.test(N),y=/Mobile|Android|iPhone|iPad|iPod/i.test(N),w=/Macintosh|Mac OS X/i.test(N);return H&&!y&&!w?"baidu":"none"}),j=V(()=>L.value!=="none"),B=hS(),O=V(()=>B.isRecording.value),Q=q(!1),Z=V(()=>L.value==="wecom"?x.isRecording:L.value==="baidu"?O.value||Q.value:!1);function Ce(N){return N.length>0&&!N.endsWith(" ")&&!N.endsWith(`
`)}st(()=>{document.addEventListener("paste",he),document.addEventListener("keydown",M),K()&&b().catch(N=>{console.warn("[InputBar] 企微 JS-SDK 初始化失败:",N)})}),Nn(()=>{document.removeEventListener("paste",he),document.removeEventListener("keydown",M),B.isRecording.value&&B.stop()});async function he(N){var w;const H=N.target;if(H.tagName==="TEXTAREA"||H.isContentEditable)return;const y=(w=N.clipboardData)==null?void 0:w.items;if(y){for(const T of Array.from(y))if(T.kind==="file"){N.preventDefault();const U=T.getAsFile();if(!U)continue;U.type.startsWith("image/")?await ne(U):await ie(U);return}}}const ae=["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","😊","😇","🥰","😍","🤩","😘","😗","😚","😙","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😏","😒","🙄","😬","😮","🤯","😲","😳","🥺","😢","😭","😤","😠","😡","🤬","👍","👎","👏","🙌","🤝","💪","✌️","🤞","❤️","🧡","💛","💚","💙","💜","💯","✅"];function de(N){_.value+=N,R.value=!1,Xe(()=>{var y,w;const H=(w=(y=m.value)==null?void 0:y.$el)==null?void 0:w.querySelector("textarea");H==null||H.focus()})}function xe(N){/Android|iPhone|iPad|iPod/i.test(navigator.userAgent)||N.shiftKey||(N.preventDefault(),we())}async function we(){const N=_.value.trim();!N||s.loading||(_.value="",await s.sendNewMessage(N))}async function oe(N){var y;const H=(y=N.clipboardData)==null?void 0:y.items;if(H){for(const w of Array.from(H))if(w.kind==="file"){N.preventDefault();const T=w.getAsFile();if(!T)continue;T.type.startsWith("image/")?await ne(T):await ie(T);return}}}async function ne(N){var H,y;try{Te("图片上传中...");const w=await ma(N),T=N instanceof File?N.name:"截图";await s.sendNewMessage(`[图片] ${T}`,{msg_type:"image",media_url:w.url,file_name:w.filename,file_size:w.file_size}),Te("图片发送成功")}catch(w){console.error("图片上传失败:",w),Te(n((y=(H=w==null?void 0:w.response)==null?void 0:H.data)==null?void 0:y.detail)||(w==null?void 0:w.message)||"图片上传失败,请重试")}}async function ie(N){var H,y;try{const w=N instanceof File?N.name:"文件";Te(`文件上传中: ${w}`);const T=await ma(N);await s.sendNewMessage(`[文件] ${T.filename}`,{msg_type:"file",media_url:T.url,file_name:T.filename,file_size:T.file_size}),Te("文件发送成功")}catch(w){console.error("文件上传失败:",w),Te(n((y=(H=w==null?void 0:w.response)==null?void 0:H.data)==null?void 0:y.detail)||(w==null?void 0:w.message)||"文件上传失败,请重试")}}async function Re(N){const H=N.target,y=H.files;if(!(!y||y.length===0)){for(const w of Array.from(y))try{Te(`正在上传: ${w.name}`);const T=await ma(w);Te(`${w.name} 上传成功`),console.log("[InputBar] 文件上传成功:",T.url)}catch(T){console.error("文件上传失败:",T),Te(`${w.name} 上传失败`)}H.value=""}}function Y(){R.value=!R.value}function ce(){p.value&&(p.value.accept="",p.value.multiple=!0,p.value.click())}async function S(N){if(N==null||N.preventDefault(),N==null||N.stopPropagation(),L.value!=="none"){if(L.value==="wecom")try{if(x.isRecording){const H=await P();H?(Ce(_.value)&&(_.value+=" "),_.value+=H,Te("语音识别完成")):Te("未识别到语音内容")}else await I(),Te("正在录音,点击停止")}catch(H){const y=x.error||(H==null?void 0:H.message)||"语音识别失败";Te(y),console.error("[InputBar] 企微语音识别错误:",H)}else if(L.value==="baidu")if(O.value){const H=B.stop();if(H.size<1600){Te("录音过短,请说更多内容");return}Q.value=!0;try{const y=await pS(H);y.error?Te(y.error):y.text?(Ce(_.value)&&(_.value+=" "),_.value+=y.text,Te("语音识别完成")):Te("未识别到语音内容")}catch(y){Te((y==null?void 0:y.message)||"语音识别失败"),console.error("[InputBar] 百度ASR识别错误:",y)}finally{Q.value=!1}}else try{await B.start(),Te("开始语音输入")}catch(H){Te((H==null?void 0:H.message)||"录音启动失败"),console.error("[InputBar] 百度录音启动失败:",H)}}}function M(N){if(N.ctrlKey&&(N.key==="d"||N.key==="D")){if(N.preventDefault(),!j.value)return;S()}}function z(N){E.value=!0;const H=N.clientY,y=N.target.closest(".input-bar"),w=y?y.offsetHeight:100;function T(G){if(!E.value)return;const W=H-G.clientY;let se=w+W;se=Math.max(100,Math.min(400,se)),y&&(y.style.height=`${se}px`,y.style.flexShrink="0")}function U(){E.value=!1,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",U),document.body.style.cursor="",document.body.style.userSelect=""}document.body.style.cursor="row-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",T),document.addEventListener("mouseup",U)}return(N,H)=>{const y=Tr,w=Ss;return k(),A("div",mS,[g("div",{class:"input-bar__resize-handle",onMousedown:z},[...H[2]||(H[2]=[g("div",{class:"input-bar__resize-track"},null,-1)])],32),g("div",_S,[g("div",{class:"input-bar__toolbar"},[g("button",{class:"input-bar__tool-btn",title:"表情",onClick:Y},[...H[3]||(H[3]=[g("span",null,"😊",-1)])]),g("button",{class:"input-bar__tool-btn",title:"文件",onClick:ce},[...H[4]||(H[4]=[g("span",null,"📎",-1)])])]),R.value?(k(),A("div",gS,[g("div",vS,[(k(),A(Se,null,tt(ae,T=>g("button",{key:T,class:"emoji-panel__item",onClick:U=>de(T)},F(T),9,yS)),64))])])):re("",!0),Z.value&&L.value==="baidu"?(k(),A("div",bS,[Q.value?(k(),A("span",wS,"正在识别语音...")):(k(),A("span",SS,"正在语音输入... 点击⏹停止"))])):re("",!0),g("div",ES,[C(y,{ref_key:"inputFieldRef",ref:m,modelValue:_.value,"onUpdate:modelValue":H[0]||(H[0]=T=>_.value=T),class:"input-bar__field",placeholder:"请输入消息...",type:"textarea",autosize:{minHeight:54,maxHeight:200},rows:"3",disabled:!Ae(s).isLoggedIn,onKeydown:fd(xe,["enter"]),onPaste:oe},null,8,["modelValue","disabled"]),g("div",CS,[r.value?(k(),A("button",{key:0,class:ge(["call-agent-btn",c.value]),disabled:a.value==="disabled",onClick:h,title:u.value},[g("span",kS,F(d.value),1),g("span",TS,F(l.value),1)],10,xS)):re("",!0),g("div",AS,[j.value?(k(),A("button",{key:0,class:ge(["input-bar__voice-btn",{"input-bar__voice-btn--recording":Z.value}]),title:Q.value?"正在识别...":Z.value?"点击停止":"语音输入 (Ctrl+D)",disabled:Q.value,onMousedown:gn(S,["prevent"]),onClick:gn(S,["prevent"]),onTouchstart:gn(S,["prevent"])},F(Q.value?"⏳":Z.value?"⏹":"🎤"),43,RS)):re("",!0),C(w,{class:"input-bar__send-btn",type:"primary",size:"small",disabled:!v.value,loading:Ae(s).loading,onClick:we},{default:Je(()=>[...H[5]||(H[5]=[je(" 发送 ",-1)])]),_:1},8,["disabled","loading"])])])])]),R.value?(k(),A("div",{key:0,class:"emoji-panel__overlay",onClick:H[1]||(H[1]=T=>R.value=!1)})):a.value==="active"?(k(),A("div",IS," 请描述你遇到的问题,AI 助手会帮你分析 💡 ")):re("",!0),g("input",{ref_key:"fileInputRef",ref:p,type:"file",style:{display:"none"},onChange:Re},null,544)])}}}),OS=ut($S,[["__scopeId","data-v-2fa97ec5"]]),PS={key:0,class:"ts-flow"},DS={class:"ts-flow__path"},BS={class:"ts-flow__path-bar"},NS={class:"ts-flow__label"},LS={class:"ts-flow__card"},MS={key:0,class:"ts-flow__question"},FS={class:"ts-flow__question-header"},VS={class:"ts-flow__question-text"},jS={class:"ts-flow__options"},qS=["disabled"],US=["disabled"],zS={key:1,class:"ts-flow__instruction"},HS={class:"ts-flow__instruction-header"},WS={class:"ts-flow__instruction-title"},KS={key:0,class:"ts-flow__instruction-steps"},GS={class:"ts-flow__sub-dot"},JS={class:"ts-flow__sub-label"},XS={key:2,class:"ts-flow__waiting"},YS={class:"ts-flow__sync-status"},QS=be({__name:"TroubleshootFlow",setup(e){const t=Ot(),n=q(!1),s=V(()=>t.troubleshootingSteps||[]),o=V(()=>t.troubleshootingTemplateName||"排查中"),i=V(()=>t.troubleshootingCurrentNode||null);function a(c){var d,l;if(!n.value){n.value=!0;try{i.value&&(i.value.status="done");const u=c==="yes"?(d=i.value)==null?void 0:d.yes_branch:(l=i.value)==null?void 0:l.no_branch;u&&(t.troubleshootingCurrentNode=u,u.status="current",u.type==="step"&&r(u)),console.log("[TroubleshootFlow] 用户选择:",c,"下一节点:",u==null?void 0:u.label)}finally{setTimeout(()=>{n.value=!1},500)}}}function r(c){const d=t.troubleshootingSteps;if(!d||d.length===0)return;const l=d.findIndex(u=>u.label===c.label);if(l>=0){const u=d.map((f,h)=>({...f,status:h<l?"done":h===l?"current":"pending"}));t.troubleshootingSteps=u}}return(c,d)=>{var l,u;return s.value.length>0?(k(),A("div",PS,[g("div",DS,[g("div",BS,[(k(!0),A(Se,null,tt(s.value,(f,h)=>(k(),A(Se,{key:h},[g("div",{class:ge(["ts-flow__step",`ts-flow__step--${f.status}`])},[g("span",{class:ge(["ts-flow__dot",`ts-flow__dot--${f.status}`])},[f.status==="done"?(k(),A(Se,{key:0},[je("✓")],64)):(k(),A(Se,{key:1},[je(F(h+1),1)],64))],2),g("span",NS,F(f.label),1)],2),h<s.value.length-1?(k(),A("span",{key:0,class:ge(["ts-flow__arrow",{"ts-flow__arrow--active":f.status==="done"}])},"→",2)):re("",!0)],64))),128))])]),g("div",LS,[i.value&&i.value.type==="decision"?(k(),A("div",MS,[g("div",FS,[d[2]||(d[2]=g("span",{class:"ts-flow__question-icon"},"❓",-1)),g("span",VS,F(i.value.label),1)]),g("div",jS,[g("button",{class:"ts-flow__option ts-flow__option--yes",onClick:d[0]||(d[0]=f=>a("yes")),disabled:n.value},[d[3]||(d[3]=g("span",{class:"ts-flow__option-icon"},"✅",-1)),g("span",null,F(((l=i.value.yes_branch)==null?void 0:l.label)||"是"),1)],8,qS),g("button",{class:"ts-flow__option ts-flow__option--no",onClick:d[1]||(d[1]=f=>a("no")),disabled:n.value},[d[4]||(d[4]=g("span",{class:"ts-flow__option-icon"},"❌",-1)),g("span",null,F(((u=i.value.no_branch)==null?void 0:u.label)||"否"),1)],8,US)])])):i.value&&i.value.type==="step"?(k(),A("div",zS,[g("div",HS,[d[5]||(d[5]=g("span",{class:"ts-flow__instruction-icon"},"📋",-1)),g("span",WS,"正在执行:"+F(i.value.label),1)]),i.value.children&&i.value.children.length>0?(k(),A("div",KS,[(k(!0),A(Se,null,tt(i.value.children,(f,h)=>(k(),A("div",{key:f.id,class:ge(["ts-flow__sub-step",`ts-flow__sub-step--${f.status||"pending"}`])},[g("span",GS,F(h+1),1),g("span",JS,F(f.label),1)],2))),128))])):re("",!0),d[6]||(d[6]=g("div",{class:"ts-flow__instruction-hint"},[g("span",null,"💡 请按坐席指引操作,完成后坐席会推进到下一步")],-1))])):(k(),A("div",XS,[...d[7]||(d[7]=[g("span",{class:"ts-flow__waiting-icon"},"⏳",-1),g("span",null,"坐席正在选择排查流程,请稍候...",-1)])])),g("div",YS,[d[8]||(d[8]=g("span",{class:"ts-flow__sync-dot"},null,-1)),g("span",null,"排查进度实时同步 · "+F(o.value),1)])])])):re("",!0)}}}),ZS=ut(QS,[["__scopeId","data-v-412334b8"]]),Xa={primary_agent:"#3b82f6",collaborator:"#07C160",owner:"#FF9800",invitee:"transparent"};function Jf(){const e=Ot(),t=Ct(),n=V(()=>{var a;return((a=e.userInfo)==null?void 0:a.employee_id)||""}),s=V(()=>{var d;const a=e.currentConversation;if(!a)return[];const r=[];if(a.agent_name&&r.push({id:a.agent_id||"agent_primary",name:a.agent_name,avatar:"",department:"IT坐席",role:"primary_agent",joined:!0,isSelf:!1}),a.employee_name){const l=a.employee_id===n.value;r.push({id:a.employee_id,name:l?"我":a.employee_name,avatar:l&&((d=t.employeeInfo)==null?void 0:d.avatar)||"",department:"",role:"owner",joined:!0,isSelf:l})}const c=(e.participants||[]).slice().sort((l,u)=>l.joined!==u.joined?l.joined?-1:1:l.joined_at&&u.joined_at?new Date(l.joined_at).getTime()-new Date(u.joined_at).getTime():0);for(const l of c)r.push({id:l.id,name:l.name,avatar:l.avatar||"",department:l.department||"",role:"invitee",joined:l.joined??!1,isSelf:l.id===n.value,joinedAt:l.joined_at});return r}),o=V(()=>s.value.length),i=V(()=>s.value.some(a=>!a.joined));return{normalizedParticipants:s,totalCount:o,hasPending:i,currentUserId:n}}async function eE(e){return await Ve.get("/h5/employees/search",{params:{keyword:e}})}async function tE(){return await Ve.get("/h5/org/tree")}async function nE(e,t,n="recent10"){return await Ve.post(`/h5/conversations/${e}/invite-participant`,{participants:t,history_mode:n})}const sE={class:"invite-sheet"},oE={class:"invite-sheet__header"},iE={class:"invite-sheet__content"},aE={key:0,class:"invite-sheet__loading"},rE={key:1,class:"invite-sheet__empty"},lE={key:2},cE=["onClick"],uE={class:"invite-cell__avatar"},dE={class:"invite-cell__info"},fE={class:"invite-cell__name"},hE={key:0,class:"invite-cell__dept"},pE={key:0,class:"invite-cell__badge"},mE={class:"invite-sheet__content"},_E={key:0,class:"invite-sheet__loading"},gE={class:"invite-collapse__count"},vE=["onClick"],yE={class:"invite-cell__avatar"},bE={class:"invite-cell__info"},wE={class:"invite-cell__name"},SE={key:0,class:"invite-cell__dept"},EE={key:0,class:"invite-cell__badge"},CE={class:"invite-sheet__footer"},xE={class:"invite-sheet__count"},kE=be({__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=q(0),i=q(""),a=q([]),r=q(!1),c=q([]),d=q(!1),l=q(!1),u=q([]),f=q(!1),h=q(new Map),_=V(()=>h.value.size);function m(j){return(j||"?").charAt(0)}function p(j){return h.value.has(j)}function v(j){return n.existingParticipantIds.includes(j)}function E(j){v(j.id)||(h.value.has(j.id)?h.value.delete(j.id):h.value.set(j.id,j))}function R(j){E({id:j.id,name:j.name,department:j.department||""})}function x(j){E({id:j.id,name:j.label,department:j.department||""})}let b=null;function I(j){b&&clearTimeout(b),b=setTimeout(()=>{P(j)},300)}async function P(j){const B=(j||"").trim();if(!B){a.value=[];return}r.value=!0;try{a.value=await eE(B)}catch(O){console.error("[InviteSheet] 搜索失败:",O)}finally{r.value=!1}}async function K(){if(!l.value){d.value=!0;try{c.value=await tE(),l.value=!0,c.value.length>0&&(u.value=[c.value[0].id])}catch(j){console.error("[InviteSheet] 获取组织架构树失败:",j)}finally{d.value=!1}}}async function L(){if(!(_.value===0||!n.conversationId)){f.value=!0;try{const j=Array.from(h.value.values()).map(B=>({id:B.id,name:B.name,department:B.department,type:"employee"}));await nE(n.conversationId,j,"recent10"),Te("邀请已发送"),h.value.clear(),s("update:show",!1),s("invited")}catch(j){console.error("[InviteSheet] 邀请失败:",j)}finally{f.value=!1}}}return ke(()=>n.show,j=>{j&&(h.value.clear(),i.value="",a.value=[],o.value=0)}),ke(o,j=>{j===1&&!l.value&&!d.value&&K()}),(j,B)=>{const O=Rv,Q=Co,Z=Qg,Ce=wg,he=Zd,ae=rv,de=nv,xe=Sg,we=Ss,oe=$s;return k(),Rt(oe,{show:e.show,position:"bottom",round:"",teleport:"body",style:{maxHeight:"85vh",minHeight:"50vh"},"onUpdate:show":B[4]||(B[4]=ne=>j.$emit("update:show",ne))},{default:Je(()=>[g("div",sE,[g("div",oE,[B[5]||(B[5]=g("span",{class:"invite-sheet__title"},"邀请参与者",-1)),g("button",{class:"invite-sheet__close",onClick:B[0]||(B[0]=ne=>j.$emit("update:show",!1))}," × ")]),C(xe,{active:o.value,"onUpdate:active":B[3]||(B[3]=ne=>o.value=ne),shrink:""},{default:Je(()=>[C(Ce,{title:"搜索"},{default:Je(()=>[C(O,{modelValue:i.value,"onUpdate:modelValue":[B[1]||(B[1]=ne=>i.value=ne),I],placeholder:"搜索姓名或工号",shape:"round"},null,8,["modelValue"]),g("div",iE,[r.value?(k(),A("div",aE,[C(Q,{type:"spinner",size:"24px"},{default:Je(()=>[...B[6]||(B[6]=[je("搜索中...",-1)])]),_:1})])):i.value&&a.value.length===0?(k(),A("div",rE," 未找到匹配的员工 ")):(k(),A("div",lE,[(k(!0),A(Se,null,tt(a.value,ne=>(k(),A("div",{key:ne.id,class:ge(["invite-cell",{"invite-cell--disabled":v(ne.id)}]),onClick:ie=>R(ne)},[C(Z,{"model-value":p(ne.id),disabled:v(ne.id),shape:"square"},null,8,["model-value","disabled"]),g("div",uE,F(m(ne.name)),1),g("div",dE,[g("span",fE,F(ne.name),1),ne.department?(k(),A("span",hE,F(ne.department),1)):re("",!0)]),v(ne.id)?(k(),A("span",pE,"已在会话中")):re("",!0)],10,cE))),128))]))])]),_:1}),C(Ce,{title:"组织架构"},{default:Je(()=>[g("div",mE,[d.value?(k(),A("div",_E,[C(Q,{type:"spinner",size:"24px"},{default:Je(()=>[...B[7]||(B[7]=[je("加载中...",-1)])]),_:1})])):c.value.length===0?(k(),Rt(he,{key:1,description:"暂无组织架构数据",image:"search"})):(k(),Rt(de,{key:2,modelValue:u.value,"onUpdate:modelValue":B[2]||(B[2]=ne=>u.value=ne)},{default:Je(()=>[(k(!0),A(Se,null,tt(c.value,ne=>(k(),Rt(ae,{key:ne.id,name:ne.id,title:ne.label},{"right-icon":Je(()=>[g("span",gE,F((ne.children||[]).length)+"人 ",1)]),default:Je(()=>[(k(!0),A(Se,null,tt(ne.children||[],ie=>(k(),A("div",{key:ie.id,class:ge(["invite-cell",{"invite-cell--disabled":v(ie.id)}]),onClick:Re=>x(ie)},[C(Z,{"model-value":p(ie.id),disabled:v(ie.id),shape:"square"},null,8,["model-value","disabled"]),g("div",yE,F(m(ie.label)),1),g("div",bE,[g("span",wE,F(ie.label),1),ie.department?(k(),A("span",SE,F(ie.department),1)):re("",!0)]),v(ie.id)?(k(),A("span",EE,"已在会话中")):re("",!0)],10,vE))),128))]),_:2},1032,["name","title"]))),128))]),_:1},8,["modelValue"]))])]),_:1})]),_:1},8,["active"]),g("div",CE,[g("span",xE,[B[8]||(B[8]=je(" 已选 ",-1)),g("strong",null,F(_.value),1),B[9]||(B[9]=je(" 人 ",-1))]),C(we,{type:"success",size:"small",round:"",loading:f.value,disabled:_.value===0||!e.conversationId,onClick:L},{default:Je(()=>[...B[10]||(B[10]=[je(" 确认邀请 ",-1)])]),_:1},8,["loading","disabled"])])])]),_:1},8,["show"])}}}),Xf=ut(kE,[["__scopeId","data-v-cbc7149e"]]),TE={class:"participant-strip__count"},AE={class:"participant-strip__avatars"},RE=["onMouseenter"],IE=["src","alt","onError"],$E={key:1,class:"participant-strip__avatar-letter"},OE={key:0,class:"participant-strip__overflow"},PE={key:1,class:"participant-strip__badge-dot"},DE={class:"participant-strip__tooltip-name"},BE={key:0,class:"participant-strip__tooltip-dept"},Vc=4,NE=be({__name:"ParticipantStrip",setup(e){const t=Ot(),n=Ct(),s=q({}),o=q(null),i=q(!1),{normalizedParticipants:a,totalCount:r,hasPending:c}=Jf(),d=V(()=>a.value.slice(0,Vc)),l=V(()=>Math.max(0,a.value.length-Vc)),u=V(()=>{const v=t.currentConversation;return v?v.employee_id===n.employeeId?!0:a.value.some(E=>E.id===n.employeeId):!1});function f(v){return v.role==="primary_agent"?"主责坐席":v.role==="collaborator"?"协作坐席":v.role==="owner"?"发起人":v.joined?"已加入":"待加入"}const h=V(()=>a.value.map(v=>v.id).filter(Boolean));async function _(){i.value=!1,await t.fetchCurrentConversation()}function m(v){return(v||"?").charAt(0)}function p(){t.participantPanelVisible=!0}return(v,E)=>{var R;return k(),A("div",{class:ge(["participant-strip",{"participant-strip--has-pending":Ae(c)}]),onClick:p},[g("span",TE,F(Ae(r))+"人在群",1),g("div",AE,[(k(!0),A(Se,null,tt(d.value,x=>(k(),A("div",{key:x.id,class:ge(["participant-strip__avatar",{"participant-strip__avatar--self":x.isSelf}]),style:Xt({borderColor:Ae(Xa)[x.role]}),onMouseenter:b=>o.value=x,onMouseleave:E[0]||(E[0]=b=>o.value=null)},[x.avatar&&!s.value[x.id]?(k(),A("img",{key:0,src:x.avatar,alt:x.name,class:"participant-strip__avatar-img",onError:b=>s.value[x.id]=!0},null,40,IE)):(k(),A("span",$E,F(m(x.name)),1))],46,RE))),128)),l.value>0?(k(),A("span",OE," +"+F(l.value),1)):re("",!0)]),u.value?(k(),A("button",{key:0,class:"participant-strip__invite-btn",title:"邀请同事加入会话",onClick:E[1]||(E[1]=gn(x=>i.value=!0,["stop"]))}," + 邀请 ")):re("",!0),E[3]||(E[3]=g("span",{class:"participant-strip__arrow"},"▼",-1)),Ae(c)?(k(),A("span",PE)):re("",!0),o.value?(k(),A("div",{key:2,class:"participant-strip__tooltip",style:Xt({borderColor:Ae(Xa)[o.value.role]})},[g("div",DE,[je(F(o.value.name)+" ",1),g("span",{class:ge(["participant-strip__tooltip-role",`participant-strip__tooltip-role--${o.value.role}`])},F(f(o.value)),3)]),o.value.department?(k(),A("div",BE,F(o.value.department),1)):re("",!0)],4)):re("",!0),C(Xf,{show:i.value,"onUpdate:show":E[2]||(E[2]=x=>i.value=x),"conversation-id":((R=Ae(t).currentConversation)==null?void 0:R.conversation_id)||"","existing-participant-ids":h.value,onInvited:_},null,8,["show","conversation-id","existing-participant-ids"])],2)}}}),LE=ut(NE,[["__scopeId","data-v-b54d15e0"]]),ME={class:"participant-list"},FE={class:"participant-list__header"},VE={class:"participant-list__items"},jE=["src","alt","onError"],qE={key:1,class:"participant-item__avatar-letter"},UE={class:"participant-item__info"},zE={class:"participant-item__name"},HE={key:0,class:"participant-item__self-tag"},WE={key:0,class:"participant-item__dept"},KE={key:0,class:"participant-item__badge participant-item__badge--agent"},GE={key:1,class:"participant-item__badge participant-item__badge--owner"},JE={key:2,class:"participant-item__badge participant-item__badge--joined"},XE={key:3,class:"participant-item__badge participant-item__badge--pending"},YE={key:0,class:"participant-list__invite-section"},QE={key:1,class:"participant-list__footer"},ZE=["disabled"],eC=be({__name:"ParticipantList",setup(e){const t=Ot(),n=Ct(),s=q(!1),o=q({}),{normalizedParticipants:i}=Jf(),a=q(!1),r=V(()=>{const f=t.currentConversation;return f?f.employee_id===n.employeeId?!0:i.value.some(h=>h.id===n.employeeId):!1}),c=V(()=>i.value.map(f=>f.id).filter(Boolean));async function d(){a.value=!1,await t.fetchCurrentConversation()}function l(f){return(f||"?").charAt(0)}async function u(){try{await yv({title:"退出会话",message:"确定要退出该会话吗?退出后将无法查看会话消息。",confirmButtonText:"确定退出",cancelButtonText:"再想想",confirmButtonColor:"#ee0a24"}),s.value=!0,await t.leaveAsParticipant(),Te("已退出会话"),t.participantPanelVisible=!1}catch(f){f!=="cancel"&&(console.error("[ParticipantList] 退出失败:",f),Te("退出失败,请重试"))}finally{s.value=!1}}return(f,h)=>{var _;return k(),A("div",ME,[g("div",FE,[h[3]||(h[3]=g("span",{class:"participant-list__title"},"参与者",-1)),g("button",{class:"participant-list__close-btn",onClick:h[0]||(h[0]=m=>Ae(t).participantPanelVisible=!1)}," × ")]),g("div",VE,[(k(!0),A(Se,null,tt(Ae(i),m=>(k(),A("div",{key:m.id,class:ge(["participant-item",{"participant-item--self":m.isSelf}])},[g("div",{class:ge(["participant-item__avatar",{"participant-item__avatar--self":m.isSelf,"participant-item__avatar--agent":m.role==="primary_agent"}]),style:Xt({borderColor:Ae(Xa)[m.role]})},[m.avatar&&!o.value[m.id]?(k(),A("img",{key:0,src:m.avatar,alt:m.name,class:"participant-item__avatar-img",onError:p=>o.value[m.id]=!0},null,40,jE)):(k(),A("span",qE,F(l(m.name)),1))],6),g("div",UE,[g("span",zE,[je(F(m.name)+" ",1),m.isSelf?(k(),A("span",HE,"(我)")):re("",!0)]),m.department?(k(),A("span",WE,F(m.department),1)):re("",!0)]),m.role==="primary_agent"?(k(),A("span",KE,"坐席")):m.role==="owner"?(k(),A("span",GE,"发起人")):m.joined?(k(),A("span",JE,"已加入")):(k(),A("span",XE,"待加入"))],2))),128))]),r.value?(k(),A("div",YE,[g("button",{class:"participant-list__invite-btn",onClick:h[1]||(h[1]=m=>a.value=!0)},[...h[4]||(h[4]=[g("span",{class:"participant-list__invite-icon"},"",-1),je(" 邀请参与者 ",-1)])])])):re("",!0),Ae(t).isParticipant?(k(),A("div",QE,[g("button",{class:"participant-list__leave-btn",disabled:s.value,onClick:u},F(s.value?"退出中...":"退出会话"),9,ZE)])):re("",!0),C(Xf,{show:a.value,"onUpdate:show":h[2]||(h[2]=m=>a.value=m),"conversation-id":((_=Ae(t).currentConversation)==null?void 0:_.conversation_id)||"","existing-participant-ids":c.value,onInvited:d},null,8,["show","conversation-id","existing-participant-ids"])])}}}),tC=ut(eC,[["__scopeId","data-v-df70b1a6"]]),nC={class:"evaluation-dialog"},sC={class:"evaluation-dialog__section"},oC={class:"star-rating"},iC={class:"star-label"},aC={class:"evaluation-dialog__section"},rC={class:"emoji-selector"},lC={class:"evaluation-dialog__section"},cC={class:"evaluation-dialog__actions"},uC={class:"evaluation-dialog__skip"},dC=be({__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=V({get:()=>s.modelValue,set:m=>o("update:modelValue",m)}),a=q({star_rating:0,emoji:"",feedback_text:""}),r=q(!1),c=V(()=>({0:"",1:"非常差",2:"较差",3:"一般",4:"满意",5:"非常满意"})[a.value.star_rating]||""),d=V(()=>a.value.star_rating>0&&a.value.emoji!=="");ke(i,async m=>{if(m&&s.conversationId)try{await Qw(s.conversationId)&&(i.value=!1,Te("您已评价过该会话"))}catch(p){console.warn("[EvaluationDialog] 检查评价状态失败:",p)}});function l(m){a.value.emoji=m}function u(m){m>=4?a.value.emoji="satisfied":m>=2?a.value.emoji="neutral":a.value.emoji="dissatisfied"}async function f(){var m,p;if(!(!d.value||r.value)){r.value=!0;try{await Yw(s.conversationId,{star_rating:a.value.star_rating,emoji:a.value.emoji,feedback_text:a.value.feedback_text||void 0}),Te("评价成功,感谢您的反馈!"),i.value=!1,o("submitted")}catch(v){console.error("[EvaluationDialog] 提交评价失败:",v);const E=((p=(m=v==null?void 0:v.response)==null?void 0:m.data)==null?void 0:p.message)||"提交失败,请稍后重试";Te(E)}finally{r.value=!1}}}function h(){i.value=!1}function _(){a.value={star_rating:0,emoji:"",feedback_text:""},r.value=!1}return t({resetForm:_}),(m,p)=>{const v=Cv,E=Tr,R=Ss,x=$s;return k(),Rt(x,{show:i.value,"onUpdate:show":p[5]||(p[5]=b=>i.value=b),round:"","close-on-click-overlay":!1,class:"evaluation-popup"},{default:Je(()=>[g("div",nC,[p[14]||(p[14]=g("div",{class:"evaluation-dialog__header"},[g("h3",{class:"evaluation-dialog__title"},"请对本次服务进行评价"),g("p",{class:"evaluation-dialog__subtitle"},"您的评价对我们非常重要")],-1)),g("div",sC,[p[6]||(p[6]=g("div",{class:"evaluation-dialog__label"},"服务评分",-1)),g("div",oC,[C(v,{modelValue:a.value.star_rating,"onUpdate:modelValue":p[0]||(p[0]=b=>a.value.star_rating=b),count:5,size:"32",color:"#FFD21E","void-color":"#E5E5E5",onChange:u},null,8,["modelValue"]),g("span",iC,F(c.value),1)])]),g("div",aC,[p[10]||(p[10]=g("div",{class:"evaluation-dialog__label"},"整体感受",-1)),g("div",rC,[g("div",{class:ge(["emoji-item",{"emoji-item--selected":a.value.emoji==="satisfied"}]),onClick:p[1]||(p[1]=b=>l("satisfied"))},[...p[7]||(p[7]=[g("span",{class:"emoji-icon"},"😀",-1),g("span",{class:"emoji-text"},"满意",-1)])],2),g("div",{class:ge(["emoji-item",{"emoji-item--selected":a.value.emoji==="neutral"}]),onClick:p[2]||(p[2]=b=>l("neutral"))},[...p[8]||(p[8]=[g("span",{class:"emoji-icon"},"😐",-1),g("span",{class:"emoji-text"},"一般",-1)])],2),g("div",{class:ge(["emoji-item",{"emoji-item--selected":a.value.emoji==="dissatisfied"}]),onClick:p[3]||(p[3]=b=>l("dissatisfied"))},[...p[9]||(p[9]=[g("span",{class:"emoji-icon"},"😞",-1),g("span",{class:"emoji-text"},"不满意",-1)])],2)])]),g("div",lC,[p[11]||(p[11]=g("div",{class:"evaluation-dialog__label"},[je(" 改进建议 "),g("span",{class:"evaluation-dialog__optional"},"(选填)")],-1)),C(E,{modelValue:a.value.feedback_text,"onUpdate:modelValue":p[4]||(p[4]=b=>a.value.feedback_text=b),type:"textarea",placeholder:"您对本次服务有什么建议?",maxlength:"200","show-word-limit":"",rows:"3",class:"evaluation-dialog__textarea"},null,8,["modelValue"])]),g("div",cC,[C(R,{type:"primary",size:"large",loading:r.value,disabled:!d.value,onClick:f},{default:Je(()=>[...p[12]||(p[12]=[je(" 提交评价 ",-1)])]),_:1},8,["loading","disabled"])]),g("div",uC,[C(R,{size:"small",type:"default",disabled:r.value,onClick:h},{default:Je(()=>[...p[13]||(p[13]=[je(" 暂不评价 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),fC=ut(dC,[["__scopeId","data-v-f4a30d2d"]]),hC={class:"chat-panel"},pC={class:"chat-panel__header"},mC={class:"chat-panel__header-left"},_C={key:0,class:"chat-panel__status chat-panel__status--online"},gC={key:1,class:"chat-panel__status chat-panel__status--offline"},vC={class:"chat-panel__header-actions"},yC=["title"],bC={class:"chat-panel__user-info"},wC=["src","alt"],SC={key:1,class:"chat-panel__avatar chat-panel__avatar--fallback"},EC={class:"chat-panel__username"},CC={key:0,class:"chat-panel__troubleshoot-fixed"},xC={key:0,class:"chat-panel__not-logged"},kC={key:1,class:"chat-panel__empty"},TC=be({__name:"ChatPanel",setup(e){const t=Ot(),n=rf(),s=Ct(),o=q(!1),i=V(()=>{const p=s.employeeName;return p?p.charAt(0).toUpperCase():"?"});function a(){o.value=!0}const r=q(null),c=q(!1),d=q(""),l=q(""),u=q(!0);async function f(){await Xe(),r.value&&(r.value.scrollTop=r.value.scrollHeight)}function h(){if(!r.value)return;const{scrollTop:p,scrollHeight:v,clientHeight:E}=r.value;u.value=v-p-E<100}async function _(){if(!t.currentConversation){Te("会话未就绪,请稍后再试");return}Ug({message:"正在呼叫人工坐席...",forbidClick:!0,duration:0});try{await t.shakeAgent(),Kl()}catch(p){Kl(),Te("呼叫失败,请稍后重试"),console.error("[ChatPanel] handleDirectCall failed:",p)}}function m(){console.log("[ChatPanel] 评价已提交")}return ke(()=>t.messages.length,()=>{f()}),ke(()=>{var p;return(p=t.currentConversation)==null?void 0:p.conversation_id},()=>{t.participantPanelVisible=!1}),ke(()=>{var p;return(p=t.currentConversation)==null?void 0:p.status},(p,v)=>{var E;if(v==="serving"&&p==="resolved"){const R=(E=t.currentConversation)==null?void 0:E.conversation_id;R&&setTimeout(()=>{d.value=R,c.value=!0},3e3)}l.value=p||""}),st(()=>{var p;f(),l.value=((p=t.currentConversation)==null?void 0:p.status)||""}),(p,v)=>{var x,b;const E=Zd,R=$s;return k(),A("div",hC,[g("div",pC,[g("div",mC,[v[5]||(v[5]=g("span",{class:"logo-block"},"IT",-1)),v[6]||(v[6]=g("span",{class:"chat-panel__title"},"智能IT服务",-1)),Ae(t).agentOnline?(k(),A("span",_C,[...v[3]||(v[3]=[g("span",{class:"chat-panel__status-dot"},null,-1),je(" 坐席在线 ",-1)])])):(k(),A("span",gC,[...v[4]||(v[4]=[g("span",{class:"chat-panel__status-dot"},null,-1),je(" 坐席离线 ",-1)])]))]),g("div",vC,[g("div",{class:"theme-switch",title:Ae(n).currentTheme==="light"?"切换到深色模式":"切换到浅色模式",onClick:v[0]||(v[0]=I=>Ae(n).toggleTheme())},[...v[7]||(v[7]=[g("span",{class:"switch-icon"},"☀️",-1),g("div",{class:"switch-track"},[g("div",{class:"switch-thumb"})],-1),g("span",{class:"switch-icon"},"🌙",-1)])],8,yC),g("div",bC,[(x=Ae(s).employeeInfo)!=null&&x.avatar&&!o.value?(k(),A("img",{key:0,src:Ae(s).employeeInfo.avatar,class:"chat-panel__avatar",alt:Ae(s).employeeName,onError:a},null,40,wC)):(k(),A("span",SC,F(i.value),1)),g("span",EC,F(Ae(s).employeeName),1)])])]),(b=Ae(t).troubleshootingSteps)!=null&&b.length?(k(),A("div",CC,[C(ZS)])):re("",!0),Ae(t).participants.length>0?(k(),Rt(LE,{key:1})):re("",!0),g("div",{ref_key:"messageListRef",ref:r,class:"chat-panel__messages",onScroll:h},[Ae(t).isLoggedIn?Ae(t).messages.length===0?(k(),A("div",kC,[...v[8]||(v[8]=[g("div",{class:"chat-panel__empty-icon"},"💬",-1),g("p",{class:"chat-panel__empty-text"},"暂无消息",-1),g("p",{class:"chat-panel__empty-hint"},'输入问题咨询,或点击下方"人工坐席"按钮',-1)])])):(k(!0),A(Se,{key:2},tt(Ae(t).messages,I=>(k(),Rt(iS,{key:I.message_id,msg:I},null,8,["msg"]))),128)):(k(),A("div",xC,[C(E,{description:"正在获取身份信息...",image:"search"})]))],544),C(OS,{onCallAgent:_}),C(fC,{modelValue:c.value,"onUpdate:modelValue":v[1]||(v[1]=I=>c.value=I),"conversation-id":d.value,onSubmitted:m},null,8,["modelValue","conversation-id"]),C(R,{show:Ae(t).participantPanelVisible,"onUpdate:show":v[2]||(v[2]=I=>Ae(t).participantPanelVisible=I),position:"bottom",round:"",teleport:"body",style:{maxHeight:"60vh"}},{default:Je(()=>[C(tC)]),_:1},8,["show"])])}}}),AC=ut(TC,[["__scopeId","data-v-2c37691d"]]);function RC(){return Ve.get("/h5/it-health")}const IC={class:"basic-info-card"},$C={key:0,class:"basic-info-card__loading"},OC={class:"basic-info-card__tabs"},PC={key:0,class:"basic-info-card__current"},DC={class:"device-header"},BC={class:"device-header__left"},NC={class:"device-header__name"},LC={class:"info-grid"},MC={class:"info-grid__main"},FC={class:"info-row"},VC={class:"info-row__value"},jC={class:"info-row__value"},qC={class:"info-row"},UC={class:"info-row__value"},zC={class:"info-row__value"},HC={class:"info-row"},WC={class:"info-row__value"},KC={class:"info-row__value"},GC={class:"info-row"},JC={class:"info-row__value"},XC={class:"info-row__value"},YC={class:"health-badge__score"},QC={key:0,class:"perf-section"},ZC={key:0,class:"perf-item"},ex={class:"perf-item__header"},tx={class:"perf-item__value"},nx={class:"perf-item__bar"},sx={key:1,class:"perf-item"},ox={class:"perf-item__header"},ix={class:"perf-item__value"},ax={class:"perf-item__bar"},rx={class:"perf-item__header"},lx={class:"perf-item__label"},cx={class:"perf-item__value"},ux={class:"perf-item__bar"},dx={key:1,class:"data-source-badge"},fx={key:1,class:"basic-info-card__other"},hx={key:0,class:"other-empty"},px={key:1,class:"other-list"},mx={class:"other-item__left"},_x={class:"other-item__type"},gx={class:"other-item__name"},vx={class:"other-item__right"},yx={class:"other-item__time"},bx={class:"other-item__location"},wx=be({__name:"BasicInfoCard",setup(e){const t=q("current"),n=q(!0),s=q("mock"),o=q({deviceName:"",isOnline:!0,assetTag:"",activateDate:"",ipAddress:"",publicIp:"",location:"",os:"",mac:"",uptime:"",cpu:{usage:0,model:""},memory:{usage:0,total:""},disks:[],securityChecks:[],complianceChecks:[],healthScore:100}),i=q([]);st(async()=>{await a()});async function a(){n.value=!0;try{const l=await RC();if(l){const u=l.current_device;o.value={deviceName:u.device_name,isOnline:u.is_online,assetTag:u.asset_tag,activateDate:u.activate_date,ipAddress:u.ip_address,publicIp:u.public_ip,location:u.location,os:u.os,mac:u.mac,uptime:u.uptime,cpu:u.cpu,memory:u.memory,disks:u.disks,securityChecks:u.security_checks,complianceChecks:u.compliance_checks,healthScore:u.health_score??100},i.value=(l.other_devices||[]).map(f=>({deviceType:f.device_type||"设备",deviceName:f.device_name||"",lastLoginTime:f.last_login_time||"",lastLoginLocation:f.last_login_location||""})),s.value=l.data_source||"mock"}}catch(l){console.warn("[BasicInfoCard] IT 健康数据获取失败,使用降级数据:",l),s.value="mock"}finally{n.value=!1}}const r=V(()=>{if(o.value.healthScore!==void 0)return o.value.healthScore;let l=100;for(const u of o.value.securityChecks)u.status==="danger"?l-=15:u.status==="warning"&&(l-=8);for(const u of o.value.complianceChecks)u.status==="warning"?l-=5:u.status==="danger"&&(l-=10);return o.value.isOnline||(l=Math.round(l*.6)),Math.max(0,l)}),c=V(()=>{const l=r.value;return l>=80?"good":l>=60?"fair":"poor"});function d(l){return l>85?"fill--danger":l>60?"fill--warning":"fill--normal"}return(l,u)=>{var f,h,_,m,p;return k(),A("div",IC,[n.value?(k(),A("div",$C,[...u[2]||(u[2]=[g("span",null,"正在获取设备信息...",-1)])])):(k(),A(Se,{key:1},[g("div",OC,[g("button",{class:ge(["tab-btn",{"tab-btn--active":t.value==="current"}]),onClick:u[0]||(u[0]=v=>t.value="current")}," 当前设备 ",2),g("button",{class:ge(["tab-btn",{"tab-btn--active":t.value==="other"}]),onClick:u[1]||(u[1]=v=>t.value="other")}," 其他设备 ("+F(i.value.length)+") ",3)]),t.value==="current"?(k(),A("div",PC,[g("div",DC,[g("div",BC,[g("span",{class:ge(["device-header__dot",o.value.isOnline?"dot--online":"dot--offline"])},null,2),g("span",NC,F(o.value.deviceName),1)]),g("span",{class:ge(["device-header__status",o.value.isOnline?"status--online":"status--offline"])},F(o.value.isOnline?"在线":"离线"),3)]),g("div",LC,[g("div",MC,[g("div",FC,[u[3]||(u[3]=g("span",{class:"info-row__label"},"资产编号",-1)),g("span",VC,F(o.value.assetTag||"-"),1),u[4]||(u[4]=g("span",{class:"info-row__label info-row__label--indent"},"启用时间",-1)),g("span",jC,F(o.value.activateDate||"-"),1)]),g("div",qC,[u[5]||(u[5]=g("span",{class:"info-row__label"},"内网IP",-1)),g("span",UC,F(o.value.ipAddress||"-"),1),u[6]||(u[6]=g("span",{class:"info-row__label info-row__label--indent"},"公网出口",-1)),g("span",zC,F(o.value.publicIp||"-"),1)]),g("div",HC,[u[7]||(u[7]=g("span",{class:"info-row__label"},"办公地点",-1)),g("span",WC,F(o.value.location||"-"),1),u[8]||(u[8]=g("span",{class:"info-row__label info-row__label--indent"},"操作系统",-1)),g("span",KC,F(o.value.os||"-"),1)]),g("div",GC,[u[9]||(u[9]=g("span",{class:"info-row__label"},"MAC地址",-1)),g("span",JC,F(o.value.mac||"-"),1),u[10]||(u[10]=g("span",{class:"info-row__label info-row__label--indent"},"运行时长",-1)),g("span",XC,F(o.value.uptime||"-"),1)])]),g("div",{class:ge(["health-badge",`health-badge--${c.value}`])},[g("span",YC,F(r.value),1),u[11]||(u[11]=g("span",{class:"health-badge__label"},"健康评分",-1))],2)]),(f=o.value.cpu)!=null&&f.model||(h=o.value.memory)!=null&&h.total||(_=o.value.disks)!=null&&_.length?(k(),A("div",QC,[(m=o.value.cpu)!=null&&m.model?(k(),A("div",ZC,[g("div",ex,[u[12]||(u[12]=g("span",{class:"perf-item__label"},"CPU",-1)),g("span",tx,F(o.value.cpu.usage)+"% · "+F(o.value.cpu.model),1)]),g("div",nx,[g("div",{class:ge(["perf-item__fill",d(o.value.cpu.usage)]),style:Xt({width:o.value.cpu.usage+"%"})},null,6)])])):re("",!0),(p=o.value.memory)!=null&&p.total?(k(),A("div",sx,[g("div",ox,[u[13]||(u[13]=g("span",{class:"perf-item__label"},"内存",-1)),g("span",ix,F(o.value.memory.usage)+"% · "+F(o.value.memory.total),1)]),g("div",ax,[g("div",{class:ge(["perf-item__fill",d(o.value.memory.usage)]),style:Xt({width:o.value.memory.usage+"%"})},null,6)])])):re("",!0),(k(!0),A(Se,null,tt(o.value.disks,v=>(k(),A("div",{class:"perf-item",key:v.label},[g("div",rx,[g("span",lx,F(v.label),1),g("span",cx,F(v.usage)+"% · "+F(v.used)+"/"+F(v.total),1)]),g("div",ux,[g("div",{class:ge(["perf-item__fill",d(v.usage)]),style:Xt({width:v.usage+"%"})},null,6)])]))),128))])):re("",!0),s.value==="mock"?(k(),A("div",dx," ⚠️ 数据来源:模拟(集成未配置) ")):re("",!0)])):(k(),A("div",fx,[i.value.length===0?(k(),A("div",hx," 暂无其他设备 ")):(k(),A("div",px,[(k(!0),A(Se,null,tt(i.value,v=>(k(),A("div",{key:v.deviceName,class:"other-item"},[g("div",mx,[g("span",_x,F(v.deviceType),1),g("span",gx,F(v.deviceName),1)]),g("div",vx,[g("span",yx,F(v.lastLoginTime),1),g("span",bx,F(v.lastLoginLocation),1)])]))),128))]))]))],64))])}}}),Sx=ut(wx,[["__scopeId","data-v-751fb5f6"]]),Ex={class:"self-diag"},Cx={class:"self-diag__header"},xx=["disabled"],kx={class:"self-diag__tabs"},Tx=["onClick"],Ax={key:0,class:"tab-btn__badge"},Rx={class:"self-diag__content"},Ix={class:"diag-chips"},$x=["disabled","onClick"],Ox={class:"diag-chip__name"},Px={class:"diag-chip__icon"},Dx={key:0,class:"diag-results"},Bx={class:"result-item__header"},Nx={class:"result-item__name"},Lx={key:0,class:"result-item__detail"},Mx={key:1,class:"risk-list"},Fx=["onClick"],Vx={class:"risk-item__icon"},jx={class:"risk-item__name"},qx={class:"risk-item__toggle"},Ux={key:0,class:"risk-item__detail"},zx=["onClick"],Hx=be({__name:"SelfDiagnosis",setup(e){const t=q([{key:"network",label:"网络联通",diagItems:[{key:"net_connect",label:"网络连通性",status:"idle",detail:""},{key:"net_dns",label:"DNS解析",status:"idle",detail:""},{key:"net_gateway",label:"网关检测",status:"idle",detail:""},{key:"net_proxy",label:"代理检测",status:"idle",detail:""},{key:"net_vpn",label:"VPN诊断",status:"idle",detail:""},{key:"net_fileshare",label:"文件共享",status:"idle",detail:""}],riskItems:[]},{key:"account",label:"账号权限",diagItems:[],riskItems:[{key:"ad_password",label:"域账号密码到期",icon:"🔑",level:"warning",statusText:"5天",detailLines:["到期时间: 2026-07-17 14:30","修改方式: Ctrl+Alt+Del → 更改密码","密码规则: 至少8位, 含大小写字母+数字+特殊字符"],actionText:"查看修改指南"},{key:"zero_trust",label:"零信任账号",icon:"🛡️",level:"normal",statusText:"正常",detailLines:["账号状态: 正常","最近登录: 2026-07-12 08:45","登录设备: DESKTOP-SIMON01"],actionText:""},{key:"cloud_disk",label:"税友云盘",icon:"☁️",level:"normal",statusText:"正常",detailLines:["状态: 正常","已用容量: 12.3GB / 50GB","最近同步: 2026-07-12 09:00"],actionText:""},{key:"email_status",label:"税友邮箱",icon:"📧",level:"normal",statusText:"正常",detailLines:["邮箱: songxian@servyou.com.cn","密码到期: 2026-08-15","容量: 2.1GB / 5GB"],actionText:""}]},{key:"hardware",label:"设备硬件",diagItems:[],riskItems:[{key:"hw_cpu",label:"CPU 使用率",icon:"🔲",level:"normal",statusText:"23%",detailLines:["型号: Intel i7-12700 (12核)","当前使用率: 23%","温度: 52°C (正常)","阈值: 使用率 >85% 或温度 >85°C 触发警告"],actionText:""},{key:"hw_memory",label:"内存健康",icon:"📏",level:"normal",statusText:"45%",detailLines:["总容量: 16GB","已用: 7.2GB (45%)","类型: DDR5-4800","阈值: 使用率 >85% 触发警告"],actionText:""},{key:"hw_disk",label:"硬盘SMART",icon:"💿",level:"warning",statusText:"1个警告",detailLines:["C盘 (SSD 256GB): SMART 正常, 使用率 67%","D盘 (SSD 256GB): SMART 正常, 使用率 43%","警告: C盘剩余空间不足 84GB (<100GB)","建议: 清理临时文件或迁移大文件至D盘"],actionText:"查看清理建议"},{key:"hw_driver",label:"驱动状态",icon:"🔌",level:"normal",statusText:"正常",detailLines:["显卡驱动: NVIDIA 552.22 (最新)","网卡驱动: Intel 12.2.1 (最新)","声卡驱动: Realtek 6.0 (最新)","蓝牙驱动: 正常"],actionText:""},{key:"hw_peripheral",label:"外设连接",icon:"🖱️",level:"normal",statusText:"3个设备",detailLines:["显示器: DELL U2723QE (USB-C 连接)","键鼠: 罗技 MX Keys + MX Master (蓝牙)","打印机: \\\\print-srv\\HP-5F (网络)","摄像头: 内置 (正常)"],actionText:""}]},{key:"system",label:"系统软件",diagItems:[{key:"sys_service",label:"系统服务",status:"idle",detail:""},{key:"sys_cert",label:"证书检测",status:"idle",detail:""}],riskItems:[{key:"sys_patches",label:"系统补丁",icon:"🔧",level:"warning",statusText:"2个高危",detailLines:["KB5037: Windows 安全更新 (高危)","KB5039: .NET Framework 更新 (高危)","建议: 尽快安装, 可联系IT协助"],actionText:"申请安装补丁"},{key:"sys_risk_sw",label:"高危软件",icon:"📦",level:"normal",statusText:"未发现",detailLines:["扫描时间: 2026-07-12 09:00","结果: 未发现高危软件"],actionText:""},{key:"sys_email_client",label:"邮件客户端",icon:"📧",level:"warning",statusText:"配置异常",detailLines:["客户端: Outlook 2019","问题: 邮箱密码可能已过期","建议: 检查邮箱密码或重新配置"],actionText:"查看配置指南"},{key:"sys_printer",label:"打印机状态",icon:"🖨️",level:"normal",statusText:"正常",detailLines:["默认打印机: \\\\print-srv\\HP-5F","状态: 在线, 墨粉充足","队列: 0 个任务"],actionText:""}]},{key:"security",label:"终端安全",diagItems:[],riskItems:[{key:"sec_huorong",label:"火绒安装",icon:"🛡️",level:"normal",statusText:"已安装",detailLines:["版本: v2.4.1","病毒库: 2026-07-12","最近全盘扫描: 2026-07-01"],actionText:""},{key:"sec_virus",label:"病毒状态",icon:"🦠",level:"normal",statusText:"安全",detailLines:["状态: 无病毒事件","最近扫描: 2026-07-01 全盘扫描","实时防护: 已开启"],actionText:""},{key:"sec_internal",label:"内部攻击",icon:"⚔️",level:"pending",statusText:"接入中",detailLines:["数据源: SIEM/IDS (接入中)","预计完成: 2026-Q4","当前状态: 暂无数据"],actionText:""},{key:"sec_proxy",label:"网络代理",icon:"🌐",level:"pending",statusText:"接入中",detailLines:["数据源: 联软网络准入 (接入中)","预计完成: 2026-Q4","当前状态: 暂无数据"],actionText:""}]},{key:"compliance",label:"合规检查",diagItems:[],riskItems:[{key:"comp_byod",label:"自备电脑",icon:"💻",level:"normal",statusText:"公司配发",detailLines:["设备类型: 公司配发设备","资产编号: SY-PC-00821","登记状态: 已登记"],actionText:""},{key:"comp_unapproved",label:"未审批商业软件",icon:"📋",level:"warning",statusText:"1个未审批",detailLines:["软件: Adobe Photoshop 2024 (未审批)","发现时间: 2026-07-10","建议: 提交软件安装审批申请"],actionText:"提交审批申请"}]}]),n=q("network"),s=pt(new Set),o=q(!1),i=V(()=>t.value.find(_=>_.key===n.value)||t.value[0]),a=V(()=>t.value.map(_=>{const m=_.diagItems.filter(v=>v.status==="warning"||v.status==="fail").length,p=_.riskItems.filter(v=>v.level==="warning"||v.level==="danger").length;return{key:_.key,label:_.label,badge:m+p}})),r=V(()=>i.value.diagItems.some(_=>_.status==="pass"||_.status==="warning"||_.status==="fail")),c={net_connect:{status:"pass",detail:"ping 10.90.5.1 -> 2ms, 丢包率 0%"},net_dns:{status:"pass",detail:"DNS解析正常, 解析时间 3ms"},net_gateway:{status:"pass",detail:"默认网关 10.90.5.1 可达"},net_proxy:{status:"warning",detail:"检测到系统代理 127.0.0.1:8080, 可能影响内网访问"},net_vpn:{status:"fail",detail:"aTrust VPN 连接超时 (10s), 可能需要重新认证"},net_fileshare:{status:"pass",detail:"文件服务器 \\\\file-srv 可访问"},sys_service:{status:"pass",detail:"关键服务运行正常 (5/5): DHCP, DNS, Windows Update, Firewall, Defender"},sys_cert:{status:"fail",detail:"发现1个过期证书: CN=old-ca (过期日: 2025-12-01), 建议更新"}};async function d(_){const m=i.value.diagItems.find(v=>v.key===_);if(!m||m.status==="running")return;m.status="running",m.detail="",await new Promise(v=>setTimeout(v,800+Math.random()*700));const p=c[_];p?(m.status=p.status,m.detail=p.detail):(m.status="pass",m.detail="诊断完成")}async function l(){if(i.value.diagItems.length!==0){o.value=!0;for(const _ of i.value.diagItems)await d(_.key);o.value=!1}}function u(_){s.has(_)?s.delete(_):s.add(_)}function f(_){console.log("[Diag] risk action:",_.key,_.actionText)}function h(_){switch(_){case"pass":return"通过";case"warning":return"警告";case"fail":return"失败";default:return""}}return(_,m)=>(k(),A("div",Ex,[g("div",Cx,[m[0]||(m[0]=g("span",{class:"header__title"},"自助诊断",-1)),i.value.diagItems.length>0?(k(),A("button",{key:0,class:"header__btn",disabled:o.value,onClick:l},F(o.value?"诊断中...":"一键诊断"),9,xx)):re("",!0)]),g("div",kx,[(k(!0),A(Se,null,tt(a.value,p=>(k(),A("button",{key:p.key,class:ge(["tab-btn",{"tab-btn--active":n.value===p.key}]),onClick:v=>n.value=p.key},[je(F(p.label)+" ",1),p.badge>0?(k(),A("span",Ax,F(p.badge),1)):re("",!0)],10,Tx))),128))]),g("div",Rx,[i.value.diagItems.length>0?(k(),A(Se,{key:0},[g("div",Ix,[(k(!0),A(Se,null,tt(i.value.diagItems,p=>(k(),A("button",{key:p.key,class:ge(["diag-chip",`diag-chip--${p.status}`]),disabled:p.status==="running",onClick:v=>d(p.key)},[g("span",Ox,F(p.label),1),g("span",Px,[p.status==="running"?(k(),A(Se,{key:0},[je("...")],64)):p.status==="pass"?(k(),A(Se,{key:1},[je("✓")],64)):p.status==="warning"?(k(),A(Se,{key:2},[je("!")],64)):p.status==="fail"?(k(),A(Se,{key:3},[je("✕")],64)):(k(),A(Se,{key:4},[je("")],64))])],10,$x))),128))]),r.value?(k(),A("div",Dx,[m[1]||(m[1]=g("div",{class:"diag-results__label"},"诊断结果",-1)),(k(!0),A(Se,null,tt(i.value.diagItems.filter(p=>p.status==="pass"||p.status==="warning"||p.status==="fail"),p=>(k(),A("div",{key:p.key,class:ge(["result-item",`result-item--${p.status}`])},[g("div",Bx,[g("span",Nx,F(p.label),1),g("span",{class:ge(["result-item__status",`result-item__status--${p.status}`])},F(h(p.status)),3)]),p.detail?(k(),A("div",Lx,F(p.detail),1)):re("",!0)],2))),128))])):re("",!0)],64)):re("",!0),i.value.riskItems.length>0?(k(),A("div",Mx,[(k(!0),A(Se,null,tt(i.value.riskItems,p=>(k(),A("div",{key:p.key,class:ge(["risk-item",[`risk-item--${p.level}`,{"risk-item--pending":p.level==="pending"}]])},[g("div",{class:"risk-item__header",onClick:v=>u(p.key)},[g("span",Vx,F(p.icon),1),g("span",jx,F(p.label),1),g("span",{class:ge(["risk-item__status",`risk-item__status--${p.level}`])},F(p.statusText),3),g("span",qx,F(s.has(p.key)?"▴":"▾"),1)],8,Fx),s.has(p.key)?(k(),A("div",Ux,[(k(!0),A(Se,null,tt(p.detailLines,v=>(k(),A("div",{key:v,class:"detail-line"},F(v),1))),128)),p.actionText?(k(),A("button",{key:0,class:"risk-item__action",onClick:gn(v=>f(p),["stop"])},F(p.actionText),9,zx)):re("",!0)])):re("",!0)],2))),128))])):re("",!0)])]))}}),Wx=ut(Hx,[["__scopeId","data-v-9a55e083"]]),Kx={class:"dynamic-recommend"},Gx={key:0,class:"dynamic-recommend__empty"},Jx={key:1,class:"dynamic-recommend__list"},Xx={class:"recommend-card__header"},Yx={class:"recommend-card__icon"},Qx={class:"recommend-card__title"},Zx=["onClick"],ek={key:0,class:"recommend-card__desc"},tk=["onClick"],nk=["onClick"],sk={key:3,class:"recommend-card__confidence"},ok=be({__name:"DynamicRecommend",setup(e){const t=Ot(),n=V(()=>t.dynamicRecommendations),s=V(()=>new URLSearchParams(window.location.search).has("debug"));function o(c){return{approval:"📋",action:"⚡",info:"️"}[c]||"💡"}function i(c){t.removeRecommend(c)}function a(c){c.approval_type&&console.log("[DynamicRecommend] 打开审批表单:",c.approval_type)}function r(c){console.log("[DynamicRecommend] 执行操作:",c.title)}return st(()=>{t.clearUnreadRecommend()}),(c,d)=>(k(),A("div",Kx,[n.value.length===0?(k(),A("div",Gx,[...d[0]||(d[0]=[g("div",{class:"dynamic-recommend__empty-icon"},"💡",-1),g("p",{class:"dynamic-recommend__empty-text"},"暂无智能推荐",-1),g("p",{class:"dynamic-recommend__empty-hint"},"向 Duckula 提问后将显示相关推荐",-1)])])):(k(),A("div",Jx,[(k(!0),A(Se,null,tt(n.value,l=>(k(),A("div",{key:l.recommend_id,class:ge(["recommend-card",`recommend-card--${l.card_type}`])},[g("div",Xx,[g("span",Yx,F(o(l.card_type)),1),g("span",Qx,F(l.title),1),g("button",{class:"recommend-card__close",title:"关闭推荐",onClick:u=>i(l.recommend_id)}," × ",8,Zx)]),l.description?(k(),A("p",ek,F(l.description),1)):re("",!0),l.card_type==="approval"&&l.approval_type?(k(),A("button",{key:1,class:"recommend-card__btn",onClick:u=>a(l)}," 打开审批表单 ",8,tk)):l.card_type==="action"?(k(),A("button",{key:2,class:"recommend-card__btn",onClick:u=>r(l)}," 立即执行 ",8,nk)):re("",!0),s.value?(k(),A("div",sk," 置信度: "+F(Math.round(l.confidence*100))+"% ",1)):re("",!0)],2))),128))]))]))}}),ik=ut(ok,[["__scopeId","data-v-0f383492"]]);function ak(e){return Ve.get("/h5/queue/status",{params:{employee_id:e}})}function rk(e,t){return Ve.get("/h5/quiz/question",{params:{employee_id:e,conversation_id:t||void 0}})}function lk(e){return Ve.post("/h5/quiz/answer",e)}const ck={class:"queue-waiting"},uk={class:"queue-waiting__segment-badge"},dk={class:"segment-badge__icon"},fk={class:"segment-badge__text"},hk={class:"queue-waiting__position-number"},pk={key:0,class:"queue-waiting__ahead"},mk={key:1,class:"queue-waiting__ahead queue-waiting__ahead--first"},_k={key:2,class:"queue-waiting__ahead"},gk={key:3,class:"queue-waiting__eta"},vk={key:4,class:"queue-waiting__jump-progress"},yk={class:"jump-progress__header"},bk={class:"jump-progress__priority"},wk={class:"jump-progress__bar"},Sk={key:0,class:"jump-progress__check"},Ek={key:0,class:"jump-progress__hint"},Ck={key:1,class:"jump-progress__hint jump-progress__hint--max"},xk={class:"queue-waiting__stats"},kk={class:"stats__grid"},Tk={class:"stats__item"},Ak={class:"stats__value"},Rk={class:"stats__item stats__item--queued"},Ik={class:"stats__value"},$k={class:"stats__item stats__item--serving"},Ok={class:"stats__value"},Pk={class:"stats__item stats__item--ai"},Dk={class:"stats__value"},Bk={key:0,class:"queue-waiting__points"},Nk={class:"level-badge__icon"},Lk={class:"level-badge__name"},Mk={class:"points__info"},Fk={class:"points__value"},Vk={key:0,class:"points__next"},jk={key:1,class:"points__next points__next--max"},qk={class:"queue-waiting__quiz"},Uk={class:"quiz__header"},zk={class:"quiz__title"},Hk={key:0,class:"quiz__type-badge quiz__type-badge--diag"},Wk={key:1,class:"quiz__type-badge quiz__type-badge--knowledge"},Kk={key:0,class:"quiz__loading"},Gk={key:1,class:"quiz__empty"},Jk={class:"quiz__question"},Xk={class:"quiz__options"},Yk=["disabled","onClick"],Qk={class:"quiz__option-label"},Zk={class:"quiz__option-text"},eT={key:0,class:"quiz__result-icon"},tT={key:1,class:"quiz__result-icon"},nT={class:"quiz__result-content"},sT={class:"quiz__result-text"},oT={key:0,class:"quiz__result-explanation"},iT={key:1,class:"quiz__result-jump"},aT={key:3,class:"quiz__no-more"},rT=be({__name:"QueueWaiting",setup(e,{expose:t}){const n=Ot(),s=Ct(),o=q(null),i=q(null),a=q(!1),r=q(!1),c=q(-1),d=q(null);let l=null;const u=["A","B","C","D","E","F"],f=V(()=>{var B,O;return((O=(B=o.value)==null?void 0:B.queue)==null?void 0:O.position)||0}),h=V(()=>{var B,O;return((O=(B=o.value)==null?void 0:B.queue)==null?void 0:O.estimated_wait_text)||""}),_=V(()=>{var B;return((B=o.value)==null?void 0:B.platform)||{total_active:0,queued:0,serving:0,ai_handling:0}}),m=V(()=>{var B;return((B=o.value)==null?void 0:B.points)||null}),p=V(()=>{var O,Q;const B=(Q=(O=o.value)==null?void 0:O.queue)==null?void 0:Q.segment;return B==="vip"?"⭐":B==="completed"?"✅":B==="incomplete"?"⏳":"📋"}),v=V(()=>{var O,Q;const B=(Q=(O=o.value)==null?void 0:O.queue)==null?void 0:Q.segment;return{"position-card--vip":B==="vip","position-card--completed":B==="completed","position-card--incomplete":B==="incomplete"}}),E=V(()=>{var Q;const B=((Q=m.value)==null?void 0:Q.level_index)||1;return["🐣","🌱","⚡","🔥","👑"][Math.min(B-1,4)]||"⭐"}),R=V(()=>{var B;return((B=i.value)==null?void 0:B.type)==="diagnostic"?"回答问题帮助坐席更快定位":"答题赢积分+插队"});function x(){return s.employeeId||localStorage.getItem("employee_id")||""}function b(){var B;return((B=n.currentConversation)==null?void 0:B.conversation_id)||null}async function I(){const B=x();if(B)try{const O=await ak(B);o.value=O}catch(O){console.error("[QueueWaiting] 加载排队状态失败:",O)}}async function P(){const B=x();if(B){a.value=!0;try{const O=await rk(B,b());i.value=O,r.value=!1,c.value=-1,d.value=null}catch(O){console.error("[QueueWaiting] 加载题目失败:",O),i.value=null}finally{a.value=!1}}}function K(B){i.value=B,r.value=!1,c.value=-1,d.value=null}async function L(B){var Q;if(r.value||!i.value)return;const O=x();if(O){r.value=!0,c.value=B;try{const Z=await lk({employee_id:O,question_id:i.value.question_id,selected_index:B,conversation_id:b()});d.value=Z,Z.queue_priority_changed&&await I(),o.value&&Z.points!==void 0&&(o.value.points={points:Z.points,level_name:Z.level_name,level_index:Z.level_index,to_next_level:0,next_level_name:null}),(Q=o.value)!=null&&Q.quiz&&(o.value.quiz.answered_in_session=Z.answered_in_session,o.value.quiz.queue_priority=Z.queue_priority,o.value.quiz.remaining_for_next_jump=Z.remaining_for_next_jump,o.value.quiz.can_jump_more=Z.can_jump_more)}catch(Z){console.error("[QueueWaiting] 提交答案失败:",Z),r.value=!1}}}function j(B){var O;(O=o.value)!=null&&O.queue&&(o.value.queue.position=B.position,o.value.queue.segment=B.segment,o.value.queue.ahead_count=B.ahead_count,o.value.queue.queue_priority=B.queue_priority)}return st(async()=>{var O;await I();const B=(O=o.value)==null?void 0:O.conversation_status;(B==="queued"||B==="ai_handling")&&await P(),l=setInterval(async()=>{await I()},15e3)}),Nn(()=>{l&&(clearInterval(l),l=null)}),t({handleQueuePositionUpdate:j,loadQueueStatus:I,loadQuestion:P,currentPosition:f}),(B,O)=>{var Q,Z,Ce,he,ae,de;return k(),A("div",ck,[g("div",{class:ge(["queue-waiting__position-card",v.value])},[g("div",uk,[g("span",dk,F(p.value),1),g("span",fk,F(((Z=(Q=o.value)==null?void 0:Q.queue)==null?void 0:Z.segment_label)||"等待中"),1)]),g("div",hk,[C(ui,{name:"position-flip",mode:"out-in"},{default:Je(()=>[(k(),A("span",{key:f.value,class:"position-number__value"},F(f.value>0?f.value:"—"),1))]),_:1}),O[1]||(O[1]=g("span",{class:"position-number__label"},"您的排队位置",-1))]),f.value>1?(k(),A("div",pk,[O[2]||(O[2]=je(" 前方还有 ",-1)),g("strong",null,F(((he=(Ce=o.value)==null?void 0:Ce.queue)==null?void 0:he.ahead_count)||0),1),O[3]||(O[3]=je(" 位同事等待 ",-1))])):f.value===1?(k(),A("div",mk," 即将轮到您,请准备好! ")):(k(),A("div",_k," 正在为您分配坐席… ")),h.value&&f.value>0?(k(),A("div",gk,[O[4]||(O[4]=g("span",{class:"eta-icon"},"⏱️",-1)),g("span",null,"预计等待 "+F(h.value),1)])):re("",!0),(ae=o.value)!=null&&ae.quiz?(k(),A("div",vk,[g("div",yk,[O[5]||(O[5]=g("span",{class:"jump-progress__title"},"答题插队",-1)),g("span",bk," 已前移 "+F(o.value.quiz.queue_priority)+"/"+F(o.value.quiz.max_priority)+" 位 ",1)]),g("div",wk,[(k(!0),A(Se,null,tt(o.value.quiz.max_priority,xe=>(k(),A("div",{key:xe,class:ge(["jump-progress__dot",{"jump-progress__dot--filled":xe<=o.value.quiz.queue_priority}])},[xe<=o.value.quiz.queue_priority?(k(),A("span",Sk,"✓")):re("",!0)],2))),128))]),o.value.quiz.can_jump_more?(k(),A("div",Ek," 再答 "+F(o.value.quiz.remaining_for_next_jump)+" 题可前移 1 位 ",1)):(k(),A("div",Ck," 已达最大插队次数 "))])):re("",!0)],2),g("div",xk,[O[10]||(O[10]=g("div",{class:"stats__header"},[g("span",{class:"stats__title"},"平台实时状态"),g("span",{class:"stats__live-indicator"},[g("span",{class:"live-dot"}),g("span",null,"实时")])],-1)),g("div",kk,[g("div",Tk,[g("div",Ak,F(_.value.total_active),1),O[6]||(O[6]=g("div",{class:"stats__label"},"总活跃",-1))]),g("div",Rk,[g("div",Ik,F(_.value.queued),1),O[7]||(O[7]=g("div",{class:"stats__label"},"排队中",-1))]),g("div",$k,[g("div",Ok,F(_.value.serving),1),O[8]||(O[8]=g("div",{class:"stats__label"},"服务中",-1))]),g("div",Pk,[g("div",Dk,F(_.value.ai_handling),1),O[9]||(O[9]=g("div",{class:"stats__label"},"AI处理",-1))])])]),m.value?(k(),A("div",Bk,[g("div",{class:ge(["points__level-badge",`points__level-badge--${m.value.level_index}`])},[g("span",Nk,F(E.value),1),g("span",Lk,F(m.value.level_name),1)],2),g("div",Mk,[g("span",Fk,F(m.value.points)+" 积分",1),m.value.next_level_name?(k(),A("span",Vk," 距 "+F(m.value.next_level_name)+" 还差 "+F(m.value.to_next_level)+" 分 ",1)):(k(),A("span",jk," 已达最高等级 🏆 "))])])):re("",!0),g("div",qk,[g("div",Uk,[g("span",zk,F(R.value),1),((de=i.value)==null?void 0:de.type)==="diagnostic"?(k(),A("span",Hk," 诊断题 ")):(k(),A("span",Wk," 知识题 "))]),a.value?(k(),A("div",Kk,[...O[11]||(O[11]=[g("span",{class:"quiz__loading-spinner"},null,-1),g("span",null,"加载题目中…",-1)])])):i.value?(k(),A(Se,{key:2},[g("div",Jk,F(i.value.question),1),g("div",Xk,[(k(!0),A(Se,null,tt(i.value.options,(xe,we)=>(k(),A("button",{key:we,class:ge(["quiz__option",{"quiz__option--correct":r.value&&we===i.value.correct_index,"quiz__option--wrong":r.value&&c.value===we&&we!==i.value.correct_index,"quiz__option--disabled":r.value}]),disabled:r.value,onClick:oe=>L(we)},[g("span",Qk,F(u[we]),1),g("span",Zk,F(xe),1)],10,Yk))),128))]),C(ui,{name:"fade"},{default:Je(()=>[r.value&&d.value?(k(),A("div",{key:0,class:ge(["quiz__result",d.value.is_correct?"quiz__result--correct":"quiz__result--wrong"])},[d.value.is_correct?(k(),A("span",eT,"✅")):(k(),A("span",tT,"❌")),g("div",nT,[g("div",sT,F(d.value.is_correct?`答对啦+${d.value.points_delta} 积分`:"答错了"),1),d.value.explanation?(k(),A("div",oT,F(d.value.explanation),1)):re("",!0),d.value.queue_priority_changed?(k(),A("div",iT," 🎉 恭喜!排队位置前移 1 位! ")):re("",!0)]),d.value.next_question?(k(),A("button",{key:2,class:"quiz__next-btn",onClick:O[0]||(O[0]=xe=>K(d.value.next_question))}," 下一题 → ")):(k(),A("div",aT,"暂无更多题目"))],2)):re("",!0)]),_:1})],64)):(k(),A("div",Gk,[...O[12]||(O[12]=[g("span",null,"📋 暂无更多题目",-1)])]))])])}}}),lT=ut(rT,[["__scopeId","data-v-c37ebe5d"]]),cT={class:"right-panel"},uT={class:"right-panel__accordion"},dT={class:"accordion-item__toggle"},fT={class:"accordion-item__content"},hT={class:"accordion-item__toggle"},pT={class:"accordion-item__content"},mT={class:"right-panel__recommend-section"},_T={class:"queue-collapsed-bar__left"},gT={class:"queue-collapsed-bar__icon"},vT={key:0,class:"queue-collapsed-bar__text"},yT={key:1,class:"queue-collapsed-bar__text"},bT={key:0,class:"queue-collapsed-bar__position"},wT={class:"queue-collapsed-bar__toggle"},ST={key:0,class:"queue-header__badge"},ET={class:"right-panel__queue-content"},CT=be({__name:"RightPanel",setup(e,{expose:t}){const n=Ot(),s=q(null);function o(l){s.value===l?s.value=null:s.value=l}ke(()=>n.unreadRecommendCount,l=>{l>0&&n.clearUnreadRecommend()});const i=q(null),a=V(()=>{var u,f;return((u=n.currentConversation)==null?void 0:u.status)==="waiting"&&((f=n.currentConversation)==null?void 0:f.agent_id)===""}),r=V(()=>{var l;return((l=i.value)==null?void 0:l.currentPosition)||0}),c=q(!1);ke(a,l=>{l&&(c.value=!0)},{immediate:!0});function d(){c.value=!c.value}return t({queueWaitingRef:i}),(l,u)=>(k(),A("div",cT,[g("div",uT,[g("div",{class:ge(["accordion-item",{"accordion-item--active":s.value==="device"}])},[g("div",{class:"accordion-item__header",onClick:u[0]||(u[0]=f=>o("device"))},[u[2]||(u[2]=g("span",{class:"accordion-item__icon"},"💻",-1)),u[3]||(u[3]=g("span",{class:"accordion-item__title"},"设备信息",-1)),g("span",dT,F(s.value==="device"?"▾":"▸"),1)]),Jn(g("div",fT,[C(Sx)],512),[[Yn,s.value==="device"]])],2),g("div",{class:ge(["accordion-item",{"accordion-item--active":s.value==="diagnosis"}])},[g("div",{class:"accordion-item__header",onClick:u[1]||(u[1]=f=>o("diagnosis"))},[u[4]||(u[4]=g("span",{class:"accordion-item__icon"},"🩺",-1)),u[5]||(u[5]=g("span",{class:"accordion-item__title"},"自助诊断",-1)),g("span",hT,F(s.value==="diagnosis"?"▾":"▸"),1)]),Jn(g("div",pT,[C(Wx)],512),[[Yn,s.value==="diagnosis"]])],2)]),u[10]||(u[10]=g("div",{class:"right-panel__divider"},null,-1)),g("div",mT,[C(ik)]),u[11]||(u[11]=g("div",{class:"right-panel__divider"},null,-1)),g("div",{class:ge(["right-panel__queue-section",{"right-panel__queue-section--collapsed":!c.value}])},[c.value?(k(),A(Se,{key:1},[g("div",{class:"queue-header",onClick:d},[u[7]||(u[7]=g("span",{class:"queue-header__icon"},"⏳",-1)),u[8]||(u[8]=g("span",{class:"queue-header__title"},"排队等待",-1)),a.value?(k(),A("span",ST)):re("",!0),u[9]||(u[9]=g("span",{class:"queue-header__toggle"},"收起 ▴",-1))]),Jn(g("div",ET,[C(lT,{ref_key:"queueWaitingRef",ref:i},null,512)],512),[[Yn,c.value]])],64)):(k(),A("div",{key:0,class:"queue-collapsed-bar",onClick:d},[g("div",_T,[g("span",gT,F(a.value?"⏳":"✅"),1),a.value?(k(),A("span",yT,[u[6]||(u[6]=je(" 排队中 ",-1)),r.value>0?(k(),A("span",bT,"#"+F(r.value),1)):re("",!0)])):(k(),A("span",vT,"当前无排队"))]),g("span",wT,F(a.value?"展开查看":"展开")+" ▾",1)]))],2)]))}}),Ya=ut(CT,[["__scopeId","data-v-90a73e1d"]]),xT={class:"chat-view"},kT={key:1,class:"chat-view__right"},TT=be({__name:"ChatView",setup(e){const t=bf(),n=wf(),s=Ct(),o=Ot(),i=l0(),a=q(window.innerWidth),r=q(60),c=q(!1),d=V(()=>a.value<500),l=V(()=>!d.value);function u(m){c.value=!0;const p=m.clientX,v=r.value,E=a.value;function R(b){if(!c.value)return;const P=(b.clientX-p)/E*100;let K=v+P;K=Math.max(40,Math.min(80,K)),r.value=K}function x(){c.value=!1,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",x),document.body.style.cursor="",document.body.style.userSelect=""}document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",R),document.addEventListener("mouseup",x)}function f(){a.value=window.innerWidth}st(()=>{if(window.addEventListener("resize",f),!s.isAuthenticated){console.warn("[ChatView] 未登录,跳转登录页"),t.push("/login");return}o.initialize(),i.connect()});const h=n.query.invite,_=n.query.eid;if(h&&_){console.log(`[ChatView] 检测到邀请链接: conv=${h}, eid=${_}`);const m=ke(()=>o.initialized,async p=>{var v,E;if(p){m();try{await Jw(h),console.log("[ChatView] 已成功加入邀请的会话"),await o.switchToConversation(h)}catch(R){console.error("[ChatView] 加入会话失败:",R);const x=(E=(v=R==null?void 0:R.response)==null?void 0:v.data)==null?void 0:E.code;if(x!==3034&&x!==3033)try{await o.switchToConversation(h)}catch(b){console.error("[ChatView] 切换会话也失败:",b)}}finally{t.replace({path:n.path,query:{}})}}},{immediate:!0})}return Nn(()=>{window.removeEventListener("resize",f),i.disconnect(),o.cleanup()}),(m,p)=>(k(),A("div",xT,[g("div",{class:ge(["chat-view__left",{"chat-view__left--full":!l.value}]),style:Xt(!d.value&&l.value?{flex:`0 0 ${r.value}%`,maxWidth:`${r.value}%`}:{})},[C(AC)],6),l.value&&!d.value?(k(),A("div",{key:0,class:"chat-view__resize-handle",onMousedown:u},[...p[0]||(p[0]=[g("div",{class:"chat-view__resize-grip"},null,-1)])],32)):re("",!0),l.value?(k(),A("div",kT,[C(Ya)])):re("",!0)]))}}),AT=ut(TT,[["__scopeId","data-v-8734f543"]]),RT={class:"emergency-dispatcher"},IT={class:"emergency-dispatcher__panel"},$T={class:"subtitle"},OT={key:1,class:"error-msg"},PT=be({__name:"EmergencyDispatcher",setup(e){const t=bf(),n=q(!0),s=q(""),o=q("正在检测身份...");function i(){return new Promise((l,u)=>{if(typeof window.wx<"u"&&window.wx.agentConfig){l();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=()=>l(),h.onerror=()=>u(new Error("加载企微 agent SDK 失败")),document.head.appendChild(h)},f.onerror=()=>u(new Error("加载企微 JS-SDK 失败")),document.head.appendChild(f)})}async function a(l){const u=await Qe.get("/api/wecom/jsapi-config",{params:{url:l}});if(u.data.code!==0)throw new Error(`拿签名失败: ${u.data.message}`);return u.data.data}function r(l){return new Promise((u,f)=>{const h=window.wx;h.config({beta:!0,debug:!1,appId:l.corp_id,timestamp:l.timestamp,nonceStr:l.nonce_str,signature:l.signature,jsApiList:["agentConfig"]}),h.ready(()=>u()),h.error(_=>f(new Error(`wx.config 失败: ${JSON.stringify(_)}`)))})}function c(l){return new Promise((u,f)=>{window.wx.agentConfig({corpid:l.corp_id,agentid:l.agent_id,timestamp:l.timestamp,nonceStr:l.nonce_str,signature:l.signature,jsApiList:["selectExternalContact"],success:_=>{const m=window.wecom_userid||"";u({userId:m})},fail:_=>f(new Error(`wx.agentConfig 失败: ${JSON.stringify(_)}`))})})}async function d(l){const u=await Qe.get("/api/wecom/check-role",{params:{userid:l}});if(u.data.code!==0)throw new Error(`检查角色失败: ${u.data.message}`);return u.data.data}return st(async()=>{try{o.value="正在加载企微 SDK...",await i(),o.value="正在获取鉴权签名...";const l=window.location.href.split("#")[0],u=await a(l);o.value="正在初始化企微...",await r(u),o.value="正在获取身份...";const{userId:f}=await c(u);if(!f)throw new Error("未能获取当前用户 userid");o.value="正在检查角色...";const h=await d(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(l){console.error("[EmergencyDispatcher] 错误:",l),s.value=l.message||"未知错误",n.value=!1,zg({message:s.value,duration:5e3}),setTimeout(()=>{t.push({path:"/h5-preview"})},3e3)}}),(l,u)=>{const f=Co;return k(),A("div",RT,[g("div",IT,[u[0]||(u[0]=g("div",{class:"logo"},null,-1)),u[1]||(u[1]=g("h2",{class:"title"},"智能IT服务",-1)),g("p",$T,F(o.value),1),n.value?(k(),Rt(f,{key:0,type:"spinner",color:"#1989fa",size:"32"})):re("",!0),s.value?(k(),A("div",OT,F(s.value),1)):re("",!0)])])}}}),DT=ut(PT,[["__scopeId","data-v-12d9965e"]]),BT={class:"h5-preview"},NT={class:"h5-preview__topbar"},LT={key:1,class:"userid-tag"},MT={key:0,class:"h5-preview__content"},FT={class:"h5-preview__drawer-header"},VT={class:"h5-preview__drawer-body"},jT={key:2,class:"h5-preview__mobile-hint"},qT=be({__name:"H5PreviewView",setup(e){const t=wf(),n=q(!1),s=V(()=>t.query.userid||""),o=V(()=>window.innerWidth<500);return s.value&&Te({message:"员工模式",duration:1500}),(i,a)=>{const r=It,c=$s;return k(),A("div",BT,[g("div",NT,[a[4]||(a[4]=jp('<div class="topbar-left" data-v-3aa64e02><span class="logo" data-v-3aa64e02>🤖</span><div class="title-block" data-v-3aa64e02><h1 class="title" data-v-3aa64e02>员工自助</h1><p class="subtitle" data-v-3aa64e02>智能IT服务 · 应急模式</p></div></div>',1)),o.value?(k(),A("button",{key:0,class:"topbar-menu-btn",onClick:a[0]||(a[0]=d=>n.value=!0)},[C(r,{name:"apps-o",size:"22"}),a[3]||(a[3]=g("span",null,"右栏",-1))])):(k(),A("div",LT," userid: "+F(s.value||"anonymous"),1))]),o.value?re("",!0):(k(),A("div",MT,[C(Ya)])),o.value?(k(),Rt(c,{key:1,show:n.value,"onUpdate:show":a[2]||(a[2]=d=>n.value=d),position:"top",style:{height:"85%"},"close-on-click-overlay":!0,closeable:"","safe-area-inset-top":""},{default:Je(()=>[g("div",FT,[a[5]||(a[5]=g("span",{class:"drawer-title"},"📋 右栏内容",-1)),C(r,{name:"cross",size:"20",class:"drawer-close",onClick:a[1]||(a[1]=d=>n.value=!1)})]),g("div",VT,[C(Ya)])]),_:1},8,["show"])):re("",!0),o.value?(k(),A("div",jT,[...a[6]||(a[6]=[g("p",null,"💡 电脑端访问可获得完整体验(右栏常驻显示)",-1),g("p",null,'移动端请点上方"右栏"按钮打开内容',-1)])])):re("",!0)])}}}),UT=ut(qT,[["__scopeId","data-v-3aa64e02"]]);function jc(){return typeof navigator>"u"?!1:/wxwork/i.test(navigator.userAgent)}const zT=[{path:"/",name:"ChatView",component:AT,meta:{title:"智能IT服务",requiresAuth:!0}},{path:"/login",name:"Login",component:()=>Hn(()=>import("./Login-HMbPVM3K.js"),__vite__mapDeps([4,5,6])),meta:{title:"登录",requiresAuth:!1}},{path:"/bind",name:"Bind",component:()=>Hn(()=>import("./Bind-BcG_klfu.js"),__vite__mapDeps([7,5,2,3,8,9])),meta:{title:"账号绑定",requiresAuth:!1}},{path:"/wework-only",name:"WeworkOnly",component:()=>Hn(()=>import("./WeworkOnly-CEpeuqo-.js"),__vite__mapDeps([10,11])),meta:{title:"请在企业微信中打开",requiresAuth:!1}},{path:"/emergency",name:"EmergencyDispatcher",component:DT,meta:{title:"应急身份检测",requiresAuth:!1}},{path:"/h5-preview",name:"H5Preview",component:UT,meta:{title:"员工自助",requiresAuth:!1}},{path:"/automation/:id",name:"AutomationProgress",component:()=>Hn(()=>import("./AutomationProgress-ChUhvdzi.js"),__vite__mapDeps([12,1,2,13,9])),meta:{title:"自动化处置",requiresAuth:!0}},{path:"/intro",name:"VideoIntro",component:()=>Hn(()=>import("./VideoIntro-BMJbiLUd.js"),__vite__mapDeps([14,15])),meta:{title:"智能IT服务",requiresAuth:!1}},{path:"/:pathMatch(.*)*",redirect:"/"}],Yf=Ky({history:xy("/h5/"),routes:zT});Yf.beforeEach(async(e,t,n)=>{const s=/^localhost(:\d+)?$/.test(window.location.hostname)||window.location.hostname==="127.0.0.1";if(e.name==="WeworkOnly"||e.name==="Bind"||e.name==="EmergencyDispatcher"||e.name==="H5Preview"||e.name==="VideoIntro"){n();return}if(e.name==="Login"){if(!s&&!jc()){n({name:"WeworkOnly"});return}n();return}const o=new URLSearchParams(window.location.search),i=e.query.token||o.get("token");if(i){localStorage.setItem("h5_token",i),o.delete("token");const d=o.toString(),l=d?`${window.location.pathname}?${d}`:window.location.pathname;window.history.replaceState({},"",l)}const{useEmployeeStore:a}=await Hn(async()=>{const{useEmployeeStore:d}=await Promise.resolve().then(()=>s0);return{useEmployeeStore:d}},void 0),r=a();if(i){r.$patch({token:i});try{await r.fetchEmployeeInfo()}catch(d){console.warn("[Router] Portal token 验证失败:",d)}}if(!s&&!jc()){if(r.isAuthenticated){n();return}n({name:"WeworkOnly"});return}if(e.name!=="VideoIntro"&&!localStorage.getItem("h5_video_intro_watched_v2")&&!(e.query.code||new URLSearchParams(window.location.search).get("code"))){n({name:"VideoIntro"});return}const c=e.query.code||new URLSearchParams(window.location.search).get("code");if(c){try{await r.handleOAuthCallback(c);const d=new URLSearchParams(window.location.search);d.delete("code"),d.delete("state");const l=d.toString(),u=l?`${window.location.pathname}?${l}`:window.location.pathname;window.history.replaceState({},"",u),n()}catch(d){console.error("[Router] OAuth2 授权失败:",d),r.redirectToOAuth()}return}if(r.isAuthenticated){n();return}r.redirectToOAuth()});const Vr=hd(Fv);Vr.use(Iv());Vr.use(Yf);const HT=Date.now(),qc=500;Vr.mount("#app");const Uc=Date.now()-HT;Uc>=qc?document.body.classList.add("app-loaded"):setTimeout(()=>{document.body.classList.add("app-loaded")},qc-Uc);export{rg as $,u_ as A,Pd as B,zd as C,JT as D,Zd as E,Tr as F,A_ as G,q_ as H,It as I,H_ as J,Sv as K,Co as L,Tv as M,m_ as N,z_ as O,$s as P,yv as Q,Cv as R,Rv as S,wg as T,vv as U,zg as V,Ug as W,GT as X,Z_ as Y,ng as Z,yg as _,Ml as a,rn as a$,Lg as a0,ug as a1,p_ as a2,Ve as a3,ut as a4,k as a5,A as a6,jp as a7,be as a8,qe as a9,ke as aA,Sd as aB,Is as aC,En as aD,Kg as aE,Ke as aF,Xd as aG,Er as aH,Be as aI,ui as aJ,o_ as aK,Wt as aL,As as aM,Ts as aN,Xe as aO,V as aP,Jn as aQ,WT as aR,it as aS,ot as aT,r_ as aU,KT as aV,Cd as aW,wr as aX,Ri as aY,ts as aZ,Yn as a_,C as aa,Se as ab,Tt as ac,Vl as ad,Ad as ae,He as af,Ge as ag,bf as ah,Ct as ai,st as aj,Nn as ak,g as al,Je as am,je as an,re as ao,F as ap,q as aq,wf as ar,Rt as as,pt as at,Oe as au,Bt as av,Ai as aw,i_ as ax,yn as ay,Ut as az,Ss as b,ds as b0,Jt as b1,ws as b2,Eo as b3,Rr as b4,Ae as b5,tt as b6,Qg as c,nv as d,rv as e,lv as f,Ym as g,tg as h,og as i,gg as j,Sg as k,B_ as l,l_ as m,f_ as n,$_ as o,Cg as p,Xg as q,Kl as r,Te as s,iv as t,ev as u,g_ as v,hv as w,uv as x,Og as y,E_ as z};