44 lines
356 KiB
JavaScript
44 lines
356 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-C81wf5xM.js","assets/index-DNloDtMO.js","assets/index-spiRTnAv.js","assets/index-CYr92l9H.js","assets/Login-CLbuVS0A.js","assets/auth-C4b7Y9ej.js","assets/Login-BH4ngh9v.css","assets/Bind-CdE3Dwte.js","assets/Bind-Dnw4b3CT.css","assets/index-p_Y1ee2a.css","assets/WeworkOnly-CIz6Hbtk.js","assets/WeworkOnly-TGfgboZe.css","assets/AutomationProgress-DodsLDRS.js","assets/AutomationProgress-sYREh-Yt.css"])))=>i.map(i=>d[i]);
|
||
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/**
|
||
* @vue/shared v3.5.35
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function Yr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const je={},fs=[],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:"),ut=Object.assign,Qr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},eh=Object.prototype.hasOwnProperty,Le=(e,t)=>eh.call(e,t),ye=Array.isArray,hs=e=>go(e)==="[object Map]",Wc=e=>go(e)==="[object Set]",Ua=e=>go(e)==="[object Date]",Ce=e=>typeof e=="function",qe=e=>typeof e=="string",Ht=e=>typeof e=="symbol",Fe=e=>e!==null&&typeof e=="object",Kc=e=>(Fe(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),Gc=Object.prototype.toString,go=e=>Gc.call(e),th=e=>go(e).slice(8,-1),Jc=e=>go(e)==="[object Object]",mi=e=>qe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ks=Yr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nh=/-\w/g,kt=gi(e=>e.replace(nh,t=>t.slice(1).toUpperCase())),sh=/\B([A-Z])/g,Sn=gi(e=>e.replace(sh,"-$1").toLowerCase()),_i=gi(e=>e.charAt(0).toUpperCase()+e.slice(1)),ji=gi(e=>e?`on${_i(e)}`:""),on=(e,t)=>!Object.is(e,t),Ui=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Xc=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},oh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Yc=e=>{const t=qe(e)?Number(e):NaN;return isNaN(t)?e:t};let qa;const vi=()=>qa||(qa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ut(e){if(ye(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=qe(s)?lh(s):Ut(s);if(o)for(const i in o)t[i]=o[i]}return t}else if(qe(e)||Fe(e))return e}const ih=/;(?![^(]*\))/g,rh=/:([^]+)/,ah=/\/\*[^]*?\*\//g;function lh(e){const t={};return e.replace(ah,"").split(ih).forEach(n=>{if(n){const s=n.split(rh);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ch(e){if(!e)return"";if(qe(e))return e;let t="";for(const n in e){const s=e[n];if(qe(s)||typeof s=="number"){const o=n.startsWith("--")?n:Sn(n);t+=`${o}:${s};`}}return t}function ve(e){let t="";if(qe(e))t=e;else if(ye(e))for(let n=0;n<e.length;n++){const s=ve(e[n]);s&&(t+=s+" ")}else if(Fe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const uh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",dh=Yr(uh);function Qc(e){return!!e||e===""}function fh(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Zr(e[s],t[s]);return n}function Zr(e,t){if(e===t)return!0;let n=Ua(e),s=Ua(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ht(e),s=Ht(t),n||s)return e===t;if(n=ye(e),s=ye(t),n||s)return n&&s?fh(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 r in e){const a=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(a&&!l||!a&&l||!Zr(e[r],t[r]))return!1}}return String(e)===String(t)}const Zc=e=>!!(e&&e.__v_isRef===!0),j=e=>qe(e)?e:e==null?"":ye(e)||Fe(e)&&(e.toString===Gc||!Ce(e.toString))?Zc(e)?j(e.value):JSON.stringify(e,eu,2):String(e),eu=(e,t)=>Zc(t)?eu(e,t.value):hs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],i)=>(n[qi(s,i)+" =>"]=o,n),{})}:Wc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>qi(n))}:Ht(t)?qi(t):Fe(t)&&!ye(t)&&!Jc(t)?String(t):t,qi=(e,t="")=>{var n;return Ht(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 ct;class tu{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&&ct&&(ct.active?(this.parent=ct,this.index=(ct.scopes||(ct.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=ct;try{return ct=this,t()}finally{ct=n}}}on(){++this._on===1&&(this.prevScope=ct,ct=this)}off(){if(this._on>0&&--this._on===0){if(ct===this)ct=this.prevScope;else{let t=ct;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 nu(e){return new tu(e)}function ea(){return ct}function su(e,t=!1){ct&&ct.cleanups.push(e)}let He;const Hi=new WeakSet;class ou{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,ct&&(ct.active?ct.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||ru(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ha(this),au(this);const t=He,n=Xt;He=this,Xt=!0;try{return this.fn()}finally{lu(this),He=t,Xt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)sa(t);this.deps=this.depsTail=void 0,Ha(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){mr(this)&&this.run()}get dirty(){return mr(this)}}let iu=0,Gs,Js;function ru(e,t=!1){if(e.flags|=8,t){e.next=Js,Js=e;return}e.next=Gs,Gs=e}function ta(){iu++}function na(){if(--iu>0)return;if(Js){let t=Js;for(Js=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Gs;){let t=Gs;for(Gs=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 lu(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),sa(s),hh(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function mr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(cu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function cu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===oo)||(e.globalVersion=oo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!mr(e))))return;e.flags|=2;const t=e.dep,n=He,s=Xt;He=e,Xt=!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{He=n,Xt=s,lu(e),e.flags&=-3}}function sa(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)sa(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function hh(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Xt=!0;const uu=[];function bn(){uu.push(Xt),Xt=!1}function wn(){const e=uu.pop();Xt=e===void 0?!0:e}function Ha(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=He;He=void 0;try{t()}finally{He=n}}}let oo=0;class ph{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 oa{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(!He||!Xt||He===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==He)n=this.activeLink=new ph(He,this),He.deps?(n.prevDep=He.depsTail,He.depsTail.nextDep=n,He.depsTail=n):He.deps=He.depsTail=n,du(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=He.depsTail,n.nextDep=void 0,He.depsTail.nextDep=n,He.depsTail=n,He.deps===n&&(He.deps=s)}return n}trigger(t){this.version++,oo++,this.notify(t)}notify(t){ta();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{na()}}}function du(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)du(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const si=new WeakMap,Gn=Symbol(""),gr=Symbol(""),io=Symbol("");function vt(e,t,n){if(Xt&&He){let s=si.get(e);s||si.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new oa),o.map=s,o.key=n),o.track()}}function mn(e,t,n,s,o,i){const r=si.get(e);if(!r){oo++;return}const a=l=>{l&&l.trigger()};if(ta(),t==="clear")r.forEach(a);else{const l=ye(e),d=l&&mi(n);if(l&&n==="length"){const c=Number(s);r.forEach((u,f)=>{(f==="length"||f===io||!Ht(f)&&f>=c)&&a(u)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),d&&a(r.get(io)),t){case"add":l?d&&a(r.get("length")):(a(r.get(Gn)),hs(e)&&a(r.get(gr)));break;case"delete":l||(a(r.get(Gn)),hs(e)&&a(r.get(gr)));break;case"set":hs(e)&&a(r.get(Gn));break}}na()}function mh(e,t){const n=si.get(e);return n&&n.get(t)}function ts(e){const t=Pe(e);return t===e?t:(vt(t,"iterate",io),Bt(e)?t:t.map(Yt))}function yi(e){return vt(e=Pe(e),"iterate",io),e}function sn(e,t){return En(e)?_s(vn(e)?Yt(t):t):Yt(t)}const gh={__proto__:null,[Symbol.iterator](){return zi(this,Symbol.iterator,e=>sn(this,e))},concat(...e){return ts(this).concat(...e.map(t=>ye(t)?ts(t):t))},entries(){return zi(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 Wi(this,"includes",e)},indexOf(...e){return Wi(this,"indexOf",e)},join(e){return ts(this).join(e)},lastIndexOf(...e){return Wi(this,"lastIndexOf",e)},map(e,t){return un(this,"map",e,t,void 0,arguments)},pop(){return Is(this,"pop")},push(...e){return Is(this,"push",e)},reduce(e,...t){return za(this,"reduce",e,t)},reduceRight(e,...t){return za(this,"reduceRight",e,t)},shift(){return Is(this,"shift")},some(e,t){return un(this,"some",e,t,void 0,arguments)},splice(...e){return Is(this,"splice",e)},toReversed(){return ts(this).toReversed()},toSorted(e){return ts(this).toSorted(e)},toSpliced(...e){return ts(this).toSpliced(...e)},unshift(...e){return Is(this,"unshift",e)},values(){return zi(this,"values",e=>sn(this,e))}};function zi(e,t,n){const s=yi(e),o=s[t]();return s!==e&&!Bt(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=n(i.value)),i}),o}const _h=Array.prototype;function un(e,t,n,s,o,i){const r=yi(e),a=r!==e&&!Bt(e),l=r[t];if(l!==_h[t]){const u=l.apply(e,i);return a?Yt(u):u}let d=n;r!==e&&(a?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 c=l.call(r,d,s);return a&&o?o(c):c}function za(e,t,n,s){const o=yi(e),i=o!==e&&!Bt(e);let r=n,a=!1;o!==e&&(i?(a=s.length===0,r=function(d,c,u){return a&&(a=!1,d=sn(e,d)),n.call(this,d,sn(e,c),u,e)}):n.length>3&&(r=function(d,c,u){return n.call(this,d,c,u,e)}));const l=o[t](r,...s);return a?sn(e,l):l}function Wi(e,t,n){const s=Pe(e);vt(s,"iterate",io);const o=s[t](...n);return(o===-1||o===!1)&&Ei(n[0])?(n[0]=Pe(n[0]),s[t](...n)):o}function Is(e,t,n=[]){bn(),ta();const s=Pe(e)[t].apply(e,n);return na(),wn(),s}const vh=Yr("__proto__,__v_isRef,__isVue"),fu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ht));function yh(e){Ht(e)||(e=String(e));const t=Pe(this);return vt(t,"has",e),t.hasOwnProperty(e)}class hu{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?yu:vu:i?_u:gu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=ye(t);if(!o){let l;if(r&&(l=gh[n]))return l;if(n==="hasOwnProperty")return yh}const a=Reflect.get(t,n,Je(t)?t:s);if((Ht(n)?fu.has(n):vh(n))||(o||vt(t,"get",n),i))return a;if(Je(a)){const l=r&&mi(n)?a:a.value;return o&&Fe(l)?vr(l):l}return Fe(a)?o?vr(a):mt(a):a}}class pu extends hu{constructor(t=!1){super(!1,t)}set(t,n,s,o){let i=t[n];const r=ye(t)&&mi(n);if(!this._isShallow){const d=En(i);if(!Bt(s)&&!En(s)&&(i=Pe(i),s=Pe(s)),!r&&Je(i)&&!Je(s))return d||(i.value=s),!0}const a=r?Number(n)<t.length:Le(t,n),l=Reflect.set(t,n,s,Je(t)?t:o);return t===Pe(o)&&(a?on(s,i)&&mn(t,"set",n,s):mn(t,"add",n,s)),l}deleteProperty(t,n){const s=Le(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(!Ht(n)||!fu.has(n))&&vt(t,"has",n),s}ownKeys(t){return vt(t,"iterate",ye(t)?"length":Gn),Reflect.ownKeys(t)}}class mu extends hu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const bh=new pu,wh=new mu,Eh=new pu(!0),Sh=new mu(!0),_r=e=>e,No=e=>Reflect.getPrototypeOf(e);function Ch(e,t,n){return function(...s){const o=this.__v_raw,i=Pe(o),r=hs(i),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,d=o[e](...s),c=n?_r:t?_s:Yt;return!t&&vt(i,"iterate",l?gr:Gn),ut(Object.create(d),{next(){const{value:u,done:f}=d.next();return f?{value:u,done:f}:{value:a?[c(u[0]),c(u[1])]:c(u),done:f}}})}}function Lo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xh(e,t){const n={get(o){const i=this.__v_raw,r=Pe(i),a=Pe(o);e||(on(o,a)&&vt(r,"get",o),vt(r,"get",a));const{has:l}=No(r),d=t?_r:e?_s:Yt;if(l.call(r,o))return d(i.get(o));if(l.call(r,a))return d(i.get(a));i!==r&&i.get(o)},get size(){const o=this.__v_raw;return!e&&vt(Pe(o),"iterate",Gn),o.size},has(o){const i=this.__v_raw,r=Pe(i),a=Pe(o);return e||(on(o,a)&&vt(r,"has",o),vt(r,"has",a)),o===a?i.has(o):i.has(o)||i.has(a)},forEach(o,i){const r=this,a=r.__v_raw,l=Pe(a),d=t?_r:e?_s:Yt;return!e&&vt(l,"iterate",Gn),a.forEach((c,u)=>o.call(i,d(c),d(u),r))}};return ut(n,e?{add:Lo("add"),set:Lo("set"),delete:Lo("delete"),clear:Lo("clear")}:{add(o){const i=Pe(this),r=No(i),a=Pe(o),l=!t&&!Bt(o)&&!En(o)?a:o;return r.has.call(i,l)||on(o,l)&&r.has.call(i,o)||on(a,l)&&r.has.call(i,a)||(i.add(l),mn(i,"add",l,l)),this},set(o,i){!t&&!Bt(i)&&!En(i)&&(i=Pe(i));const r=Pe(this),{has:a,get:l}=No(r);let d=a.call(r,o);d||(o=Pe(o),d=a.call(r,o));const c=l.call(r,o);return r.set(o,i),d?on(i,c)&&mn(r,"set",o,i):mn(r,"add",o,i),this},delete(o){const i=Pe(this),{has:r,get:a}=No(i);let l=r.call(i,o);l||(o=Pe(o),l=r.call(i,o)),a&&a.call(i,o);const d=i.delete(o);return l&&mn(i,"delete",o,void 0),d},clear(){const o=Pe(this),i=o.size!==0,r=o.clear();return i&&mn(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Ch(o,e,t)}),n}function bi(e,t){const n=xh(e,t);return(s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Le(n,o)&&o in s?n:s,o,i)}const Ah={get:bi(!1,!1)},kh={get:bi(!1,!0)},Th={get:bi(!0,!1)},Rh={get:bi(!0,!0)},gu=new WeakMap,_u=new WeakMap,vu=new WeakMap,yu=new WeakMap;function Ih(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mt(e){return En(e)?e:wi(e,!1,bh,Ah,gu)}function bu(e){return wi(e,!1,Eh,kh,_u)}function vr(e){return wi(e,!0,wh,Th,vu)}function Jo(e){return wi(e,!0,Sh,Rh,yu)}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 r=Ih(th(e));if(r===0)return e;const a=new Proxy(e,r===2?s:n);return o.set(e,a),a}function vn(e){return En(e)?vn(e.__v_raw):!!(e&&e.__v_isReactive)}function En(e){return!!(e&&e.__v_isReadonly)}function Bt(e){return!!(e&&e.__v_isShallow)}function Ei(e){return e?!!e.__v_raw:!1}function Pe(e){const t=e&&e.__v_raw;return t?Pe(t):e}function ia(e){return!Le(e,"__v_skip")&&Object.isExtensible(e)&&Xc(e,"__v_skip",!0),e}const Yt=e=>Fe(e)?mt(e):e,_s=e=>Fe(e)?vr(e):e;function Je(e){return e?e.__v_isRef===!0:!1}function F(e){return wu(e,!1)}function Dn(e){return wu(e,!0)}function wu(e,t){return Je(e)?e:new Oh(e,t)}class Oh{constructor(t,n){this.dep=new oa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Pe(t),this._value=n?t:Yt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Bt(t)||En(t);t=s?t:Pe(t),on(t,n)&&(this._rawValue=t,this._value=s?t:Yt(t),this.dep.trigger())}}function Re(e){return Je(e)?e.value:e}function ps(e){return Ce(e)?e():Re(e)}const Ph={get:(e,t,n)=>t==="__v_raw"?e:Re(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Je(o)&&!Je(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Eu(e){return vn(e)?e:new Proxy(e,Ph)}function $h(e){const t=ye(e)?new Array(e.length):{};for(const n in e)t[n]=Dh(e,n);return t}class Bh{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=Ht(n)?n:String(n),this._raw=Pe(t);let o=!0,i=t;if(!ye(t)||Ht(this._key)||!mi(this._key))do o=!Ei(i)||Bt(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Re(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Je(this._raw[this._key])){const n=this._object[this._key];if(Je(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return mh(this._raw,this._key)}}function Dh(e,t,n){return new Bh(e,t,n)}class Nh{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new oa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=oo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&He!==this)return ru(this,!0),!0}get value(){const t=this.dep.track();return cu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Lh(e,t,n=!1){let s,o;return Ce(e)?s=e:(s=e.get,o=e.set),new Nh(s,o,n)}const Fo={},oi=new WeakMap;let Hn;function Fh(e,t=!1,n=Hn){if(n){let s=oi.get(n);s||oi.set(n,s=[]),s.push(e)}}function Mh(e,t,n=je){const{immediate:s,deep:o,once:i,scheduler:r,augmentJob:a,call:l}=n,d=x=>o?x:Bt(x)||o===!1||o===0?gn(x,1):gn(x);let c,u,f,h,g=!1,m=!1;if(Je(e)?(u=()=>e.value,g=Bt(e)):vn(e)?(u=()=>d(e),g=!0):ye(e)?(m=!0,g=e.some(x=>vn(x)||Bt(x)),u=()=>e.map(x=>{if(Je(x))return x.value;if(vn(x))return d(x);if(Ce(x))return l?l(x,2):x()})):Ce(e)?t?u=l?()=>l(e,2):e:u=()=>{if(f){bn();try{f()}finally{wn()}}const x=Hn;Hn=c;try{return l?l(e,3,[h]):e(h)}finally{Hn=x}}:u=ln,t&&o){const x=u,b=o===!0?1/0:o;u=()=>gn(x(),b)}const p=ea(),v=()=>{c.stop(),p&&p.active&&Qr(p.effects,c)};if(i&&t){const x=t;t=(...b)=>{x(...b),v()}}let S=m?new Array(e.length).fill(Fo):Fo;const T=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(t){const b=c.run();if(o||g||(m?b.some((P,B)=>on(P,S[B])):on(b,S))){f&&f();const P=Hn;Hn=c;try{const B=[b,S===Fo?void 0:m&&S[0]===Fo?[]:S,h];S=b,l?l(t,3,B):t(...B)}finally{Hn=P}}}else c.run()};return a&&a(T),c=new ou(u),c.scheduler=r?()=>r(T,!1):T,h=x=>Fh(x,!1,c),f=c.onStop=()=>{const x=oi.get(c);if(x){if(l)l(x,4);else for(const b of x)b();oi.delete(c)}},t?s?T(!0):S=c.run():r?r(T.bind(null,!0),!0):c.run(),v.pause=c.pause.bind(c),v.resume=c.resume.bind(c),v.stop=v,v}function gn(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--,Je(e))gn(e.value,t,n);else if(ye(e))for(let s=0;s<e.length;s++)gn(e[s],t,n);else if(Wc(e)||hs(e))e.forEach(s=>{gn(s,t,n)});else if(Jc(e)){for(const s in e)gn(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&gn(e[s],t,n)}return e}/**
|
||
* @vue/runtime-core v3.5.35
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function _o(e,t,n,s){try{return s?e(...s):e()}catch(o){vo(o,t,n)}}function zt(e,t,n,s){if(Ce(e)){const o=_o(e,t,n,s);return o&&Kc(o)&&o.catch(i=>{vo(i,t,n)}),o}if(ye(e)){const o=[];for(let i=0;i<e.length;i++)o.push(zt(e[i],t,n,s));return o}}function vo(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||je;if(t){let a=t.parent;const l=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,l,d)===!1)return}a=a.parent}if(i){bn(),_o(i,null,10,[e,l,d]),wn();return}}Vh(e,n,o,s,r)}function Vh(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Ct=[];let nn=-1;const ms=[];let On=null,ls=0;const Su=Promise.resolve();let ii=null;function Ze(e){const t=ii||Su;return e?t.then(this?e.bind(this):e):t}function jh(e){let t=nn+1,n=Ct.length;for(;t<n;){const s=t+n>>>1,o=Ct[s],i=ro(o);i<e||i===e&&o.flags&2?t=s+1:n=s}return t}function ra(e){if(!(e.flags&1)){const t=ro(e),n=Ct[Ct.length-1];!n||!(e.flags&2)&&t>=ro(n)?Ct.push(e):Ct.splice(jh(t),0,e),e.flags|=1,Cu()}}function Cu(){ii||(ii=Su.then(Au))}function yr(e){ye(e)?ms.push(...e):On&&e.id===-1?On.splice(ls+1,0,e):e.flags&1||(ms.push(e),e.flags|=1),Cu()}function Wa(e,t,n=nn+1){for(;n<Ct.length;n++){const s=Ct[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ct.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function xu(e){if(ms.length){const t=[...new Set(ms)].sort((n,s)=>ro(n)-ro(s));if(ms.length=0,On){On.push(...t);return}for(On=t,ls=0;ls<On.length;ls++){const n=On[ls];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}On=null,ls=0}}const ro=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Au(e){try{for(nn=0;nn<Ct.length;nn++){const t=Ct[nn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_o(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;nn<Ct.length;nn++){const t=Ct[nn];t&&(t.flags&=-2)}nn=-1,Ct.length=0,xu(),ii=null,(Ct.length||ms.length)&&Au()}}let $t=null,ku=null;function ri(e){const t=$t;return $t=e,ku=e&&e.type.__scopeId||null,t}function ot(e,t=$t,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&ci(-1);const i=ri(t);let r;try{r=e(...o)}finally{ri(i),s._d&&ci(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function $n(e,t){if($t===null)return e;const n=ki($t),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,r,a,l=je]=t[o];i&&(Ce(i)&&(i={mounted:i,updated:i}),i.deep&&gn(r),s.push({dir:i,instance:n,value:r,oldValue:void 0,arg:a,modifiers:l}))}return e}function Mn(e,t,n,s){const o=e.dirs,i=t&&t.dirs;for(let r=0;r<o.length;r++){const a=o[r];i&&(a.oldValue=i[r].value);let l=a.dir[s];l&&(bn(),zt(l,n,8,[e.el,a,e,t]),wn())}}function cn(e,t){if(yt){let n=yt.provides;const s=yt.parent&&yt.parent.provides;s===n&&(n=yt.provides=Object.create(s)),n[e]=t}}function ht(e,t,n=!1){const s=Wt();if(s||Jn){let o=Jn?Jn._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&&Ce(t)?t.call(s&&s.proxy):t}}function Uh(){return!!(Wt()||Jn)}const qh=Symbol.for("v-scx"),Hh=()=>ht(qh);function Tu(e,t){return aa(e,null,t)}function xe(e,t,n){return aa(e,t,n)}function aa(e,t,n=je){const{immediate:s,deep:o,flush:i,once:r}=n,a=ut({},n),l=t&&s||!t&&i!=="post";let d;if(co){if(i==="sync"){const h=Hh();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=ln,h.resume=ln,h.pause=ln,h}}const c=yt;a.call=(h,g,m)=>zt(h,c,g,m);let u=!1;i==="post"?a.scheduler=h=>{_t(h,c&&c.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,g)=>{g?h():ra(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=Mh(e,t,a);return co&&(d?d.push(f):l&&f()),f}function zh(e,t,n){const s=this.proxy,o=qe(e)?e.includes(".")?Ru(s,e):()=>s[e]:e.bind(s,s);let i;Ce(t)?i=t:(i=t.handler,n=t);const r=yo(this),a=aa(o,i.bind(s),n);return r(),a}function Ru(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 Rn=new WeakMap,Iu=Symbol("_vte"),Ou=e=>e.__isTeleport,zn=e=>e&&(e.disabled||e.disabled===""),Wh=e=>e&&(e.defer||e.defer===""),Ka=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ga=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,br=(e,t)=>{const n=e&&e.to;return qe(n)?t?t(n):null:n},Kh={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,i,r,a,l,d){const{mc:c,pc:u,pbc:f,o:{insert:h,querySelector:g,createText:m,createComment:p,parentNode:v}}=d,S=zn(t.props);let{dynamicChildren:T}=t;const x=(B,L,R)=>{B.shapeFlag&16&&c(B.children,L,R,o,i,r,a,l)},b=(B=t)=>{const L=zn(B.props),R=B.target=br(B.props,g),K=wr(R,B,m,h);R&&(r!=="svg"&&Ka(R)?r="svg":r!=="mathml"&&Ga(R)&&(r="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(R),L||(x(B,R,K),qs(B,!1)))},P=B=>{const L=()=>{if(Rn.get(B)===L){if(Rn.delete(B),zn(B.props)){const R=v(B.el)||n;x(B,R,B.anchor),qs(B,!0)}b(B)}};Rn.set(B,L),_t(L,i)};if(e==null){const B=t.el=m(""),L=t.anchor=m("");if(h(B,n,s),h(L,n,s),Wh(t.props)||i&&i.pendingBranch){P(t);return}S&&(x(t,n,L),qs(t,!0)),b()}else{t.el=e.el;const B=t.anchor=e.anchor,L=Rn.get(e);if(L){L.flags|=8,Rn.delete(e),P(t);return}t.targetStart=e.targetStart;const R=t.target=e.target,K=t.targetAnchor=e.targetAnchor,X=zn(e.props),z=X?n:R,ee=X?B:K;if(r==="svg"||Ka(R)?r="svg":(r==="mathml"||Ga(R))&&(r="mathml"),T?(f(e.dynamicChildren,T,z,o,i,r,a),ha(e,t,!0)):l||u(e,t,z,ee,o,i,r,a,!1),S)X?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Mo(t,n,B,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const G=t.target=br(t.props,g);G&&Mo(t,G,null,d,0)}else X&&Mo(t,R,K,d,1);qs(t,S)}},remove(e,t,n,{um:s,o:{remove:o}},i){const{shapeFlag:r,children:a,anchor:l,targetStart:d,targetAnchor:c,target:u,props:f}=e,h=i||!zn(f),g=Rn.get(e);if(g&&(g.flags|=8,Rn.delete(e)),u&&(o(d),o(c)),i&&o(l),!g&&r&16)for(let m=0;m<a.length;m++){const p=a[m];s(p,t,n,h,!!p.dynamicChildren)}},move:Mo,hydrate:Gh};function Mo(e,t,n,{o:{insert:s},m:o},i=2){i===0&&s(e.targetAnchor,t,n);const{el:r,anchor:a,shapeFlag:l,children:d,props:c}=e,u=i===2;if(u&&s(r,t,n),!Rn.has(e)&&(!u||zn(c))&&l&16)for(let f=0;f<d.length;f++)o(d[f],t,n,2);u&&s(a,t,n)}function Gh(e,t,n,s,o,i,{o:{nextSibling:r,parentNode:a,querySelector:l,insert:d,createText:c}},u){function f(p,v){let S=v;for(;S;){if(S&&S.nodeType===8){if(S.data==="teleport start anchor")t.targetStart=S;else if(S.data==="teleport anchor"){t.targetAnchor=S,p._lpa=t.targetAnchor&&r(t.targetAnchor);break}}S=r(S)}}function h(p,v){v.anchor=u(r(p),v,a(p),n,s,o,i)}const g=t.target=br(t.props,l),m=zn(t.props);if(g){const p=g._lpa||g.firstChild;t.shapeFlag&16&&(m?(h(e,t),f(g,p),t.targetAnchor||wr(g,t,c,d,a(e)===g?e:null)):(t.anchor=r(e),f(g,p),t.targetAnchor||wr(g,t,c,d),u(p&&r(p),t,g,n,s,o,i))),qs(t,m)}else m&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=r(e));return t.anchor&&r(t.anchor)}const Pu=Kh;function qs(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 wr(e,t,n,s,o=null){const i=t.targetStart=n(""),r=t.targetAnchor=n("");return i[Iu]=r,e&&(s(i,e,o),s(r,e,o)),r}const jt=Symbol("_leaveCb"),Os=Symbol("_enterCb");function Jh(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return st(()=>{e.isMounted=!0}),xs(()=>{e.isUnmounting=!0}),e}const Ft=[Function,Array],$u={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},Bu=e=>{const t=e.subTree;return t.component?Bu(t.component):t},Xh={name:"BaseTransition",props:$u,setup(e,{slots:t}){const n=Wt(),s=Jh();return()=>{const o=t.default&&Lu(t.default(),!0),i=o&&o.length?Du(o):n.subTree?re():void 0;if(!i)return;const r=Pe(e),{mode:a}=r;if(s.isLeaving)return Ki(i);const l=Ja(i);if(!l)return Ki(i);let d=Er(l,r,s,n,u=>d=u);l.type!==ft&&ao(l,d);let c=n.subTree&&Ja(n.subTree);if(c&&c.type!==ft&&!rn(c,l)&&Bu(n).type!==ft){let u=Er(c,r,s,n);if(ao(c,u),a==="out-in"&&l.type!==ft)return s.isLeaving=!0,u.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,c=void 0},Ki(i);a==="in-out"&&l.type!==ft?u.delayLeave=(f,h,g)=>{const m=Nu(s,c);m[String(c.key)]=c,f[jt]=()=>{h(),f[jt]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{g(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=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 Yh=Xh;function Nu(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 Er(e,t,n,s,o){const{appear:i,mode:r,persisted:a=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:g,onLeaveCancelled:m,onBeforeAppear:p,onAppear:v,onAfterAppear:S,onAppearCancelled:T}=t,x=String(e.key),b=Nu(n,e),P=(R,K)=>{R&&zt(R,s,9,K)},B=(R,K)=>{const X=K[1];P(R,K),ye(R)?R.every(z=>z.length<=1)&&X():R.length<=1&&X()},L={mode:r,persisted:a,beforeEnter(R){let K=l;if(!n.isMounted)if(i)K=p||l;else return;R[jt]&&R[jt](!0);const X=b[x];X&&rn(e,X)&&X.el[jt]&&X.el[jt](),P(K,[R])},enter(R){if(b[x]===e)return;let K=d,X=c,z=u;if(!n.isMounted)if(i)K=v||d,X=S||c,z=T||u;else return;let ee=!1;R[Os]=ie=>{ee||(ee=!0,ie?P(z,[R]):P(X,[R]),L.delayedLeave&&L.delayedLeave(),R[Os]=void 0)};const G=R[Os].bind(null,!1);K?B(K,[R,G]):G()},leave(R,K){const X=String(e.key);if(R[Os]&&R[Os](!0),n.isUnmounting)return K();P(f,[R]);let z=!1;R[jt]=G=>{z||(z=!0,K(),G?P(m,[R]):P(g,[R]),R[jt]=void 0,b[X]===e&&delete b[X])};const ee=R[jt].bind(null,!1);b[X]=e,h?B(h,[R,ee]):ee()},clone(R){const K=Er(R,t,n,s,o);return o&&o(K),K}};return L}function Ki(e){if(Si(e))return e=Nn(e),e.children=null,e}function Ja(e){if(!Si(e))return Ou(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&&Ce(n.default))return n.default()}}function ao(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ao(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 Lu(e,t=!1,n){let s=[],o=0;for(let i=0;i<e.length;i++){let r=e[i];const a=n==null?r.key:String(n)+String(r.key!=null?r.key:i);r.type===Se?(r.patchFlag&128&&o++,s=s.concat(Lu(r.children,t,a))):(t||r.type!==ft)&&s.push(a!=null?Nn(r,{key:a}):r)}if(o>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}function be(e,t){return Ce(e)?ut({name:e.name},t,{setup:e}):e}function Fu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xa(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ai=new WeakMap;function Xs(e,t,n,s,o=!1){if(ye(e)){e.forEach((m,p)=>Xs(m,t&&(ye(t)?t[p]:t),n,s,o));return}if(Ys(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Xs(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?ki(s.component):s.el,r=o?null:i,{i:a,r:l}=e,d=t&&t.r,c=a.refs===je?a.refs={}:a.refs,u=a.setupState,f=Pe(u),h=u===je?zc:m=>Xa(c,m)?!1:Le(f,m),g=(m,p)=>!(p&&Xa(c,p));if(d!=null&&d!==l){if(Ya(t),qe(d))c[d]=null,h(d)&&(u[d]=null);else if(Je(d)){const m=t;g(d,m.k)&&(d.value=null),m.k&&(c[m.k]=null)}}if(Ce(l))_o(l,a,12,[r,c]);else{const m=qe(l),p=Je(l);if(m||p){const v=()=>{if(e.f){const S=m?h(l)?u[l]:c[l]:g()||!e.k?l.value:c[e.k];if(o)ye(S)&&Qr(S,i);else if(ye(S))S.includes(i)||S.push(i);else if(m)c[l]=[i],h(l)&&(u[l]=c[l]);else{const T=[i];g(l,e.k)&&(l.value=T),e.k&&(c[e.k]=T)}}else m?(c[l]=r,h(l)&&(u[l]=r)):p&&(g(l,e.k)&&(l.value=r),e.k&&(c[e.k]=r))};if(r){const S=()=>{v(),ai.delete(e)};S.id=-1,ai.set(e,S),_t(S,n)}else Ya(e),v()}}}function Ya(e){const t=ai.get(e);t&&(t.flags|=8,ai.delete(e))}vi().requestIdleCallback;vi().cancelIdleCallback;const Ys=e=>!!e.type.__asyncLoader,Si=e=>e.type.__isKeepAlive;function Cs(e,t){Mu(e,"a",t)}function Zn(e,t){Mu(e,"da",t)}function Mu(e,t,n=yt){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;)Si(o.parent.vnode)&&Qh(s,t,n,o),o=o.parent}}function Qh(e,t,n,s){const o=Ci(t,e,s,!0);Ln(()=>{Qr(s[t],o)},n)}function Ci(e,t,n=yt,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{bn();const a=yo(n),l=zt(t,n,e,r);return a(),wn(),l});return s?o.unshift(i):o.push(i),i}}const Cn=e=>(t,n=yt)=>{(!co||e==="sp")&&Ci(e,(...s)=>t(...s),n)},Zh=Cn("bm"),st=Cn("m"),Vu=Cn("bu"),ep=Cn("u"),xs=Cn("bum"),Ln=Cn("um"),tp=Cn("sp"),np=Cn("rtg"),sp=Cn("rtc");function op(e,t=yt){Ci("ec",e,t)}const la="components",ip="directives";function rp(e,t){return ca(la,e,!0,t)||e}const ju=Symbol.for("v-ndc");function ap(e){return qe(e)?ca(la,e,!1)||e:e||ju}function vk(e){return ca(ip,e)}function ca(e,t,n=!0,s=!1){const o=$t||yt;if(o){const i=o.type;if(e===la){const a=Yp(i,!1);if(a&&(a===t||a===kt(t)||a===_i(kt(t))))return i}const r=Qa(o[e]||i[e],t)||Qa(o.appContext[e],t);return!r&&s?i:r}}function Qa(e,t){return e&&(e[t]||e[kt(t)]||e[_i(kt(t))])}function nt(e,t,n,s){let o;const i=n,r=ye(e);if(r||qe(e)){const a=r&&vn(e);let l=!1,d=!1;a&&(l=!Bt(e),d=En(e),e=yi(e)),o=new Array(e.length);for(let c=0,u=e.length;c<u;c++)o[c]=t(l?d?_s(Yt(e[c])):Yt(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,i)}else if(Fe(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,d=a.length;l<d;l++){const c=a[l];o[l]=t(e[c],c,l,i)}}else o=[];return o}const Sr=e=>e?ld(e)?ki(e):Sr(e.parent):null,Qs=ut(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=>Sr(e.parent),$root:e=>Sr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>qu(e),$forceUpdate:e=>e.f||(e.f=()=>{ra(e.update)}),$nextTick:e=>e.n||(e.n=Ze.bind(e.proxy)),$watch:e=>zh.bind(e)}),Gi=(e,t)=>e!==je&&!e.__isScriptSetup&&Le(e,t),lp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:i,accessCache:r,type:a,appContext:l}=e;if(t[0]!=="$"){const f=r[t];if(f!==void 0)switch(f){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Gi(s,t))return r[t]=1,s[t];if(o!==je&&Le(o,t))return r[t]=2,o[t];if(Le(i,t))return r[t]=3,i[t];if(n!==je&&Le(n,t))return r[t]=4,n[t];Cr&&(r[t]=0)}}const d=Qs[t];let c,u;if(d)return t==="$attrs"&&vt(e.attrs,"get",""),d(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==je&&Le(n,t))return r[t]=4,n[t];if(u=l.config.globalProperties,Le(u,t))return u[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return Gi(o,t)?(o[t]=n,!0):s!==je&&Le(s,t)?(s[t]=n,!0):Le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:i,type:r}},a){let l;return!!(n[a]||e!==je&&a[0]!=="$"&&Le(e,a)||Gi(t,a)||Le(i,a)||Le(s,a)||Le(Qs,a)||Le(o.config.globalProperties,a)||(l=r.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Za(e){return ye(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Cr=!0;function cp(e){const t=qu(e),n=e.proxy,s=e.ctx;Cr=!1,t.beforeCreate&&el(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:a,provide:l,inject:d,created:c,beforeMount:u,mounted:f,beforeUpdate:h,updated:g,activated:m,deactivated:p,beforeDestroy:v,beforeUnmount:S,destroyed:T,unmounted:x,render:b,renderTracked:P,renderTriggered:B,errorCaptured:L,serverPrefetch:R,expose:K,inheritAttrs:X,components:z,directives:ee,filters:G}=t;if(d&&up(d,s,null),r)for(const ne in r){const le=r[ne];Ce(le)&&(s[ne]=le.bind(n))}if(o){const ne=o.call(n,n);Fe(ne)&&(e.data=mt(ne))}if(Cr=!0,i)for(const ne in i){const le=i[ne],ke=Ce(le)?le.bind(n,n):Ce(le.get)?le.get.bind(n,n):ln,Te=!Ce(le)&&Ce(le.set)?le.set.bind(n):ln,se=M({get:ke,set:Te});Object.defineProperty(s,ne,{enumerable:!0,configurable:!0,get:()=>se.value,set:pe=>se.value=pe})}if(a)for(const ne in a)Uu(a[ne],s,n,ne);if(l){const ne=Ce(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(le=>{cn(le,ne[le])})}c&&el(c,e,"c");function de(ne,le){ye(le)?le.forEach(ke=>ne(ke.bind(n))):le&&ne(le.bind(n))}if(de(Zh,u),de(st,f),de(Vu,h),de(ep,g),de(Cs,m),de(Zn,p),de(op,L),de(sp,P),de(np,B),de(xs,S),de(Ln,x),de(tp,R),ye(K))if(K.length){const ne=e.exposed||(e.exposed={});K.forEach(le=>{Object.defineProperty(ne,le,{get:()=>n[le],set:ke=>n[le]=ke,enumerable:!0})})}else e.exposed||(e.exposed={});b&&e.render===ln&&(e.render=b),X!=null&&(e.inheritAttrs=X),z&&(e.components=z),ee&&(e.directives=ee),R&&Fu(e)}function up(e,t,n=ln){ye(e)&&(e=xr(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),Je(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function el(e,t,n){zt(ye(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Uu(e,t,n,s){let o=s.includes(".")?Ru(n,s):()=>n[s];if(qe(e)){const i=t[e];Ce(i)&&xe(o,i)}else if(Ce(e))xe(o,e.bind(n));else if(Fe(e))if(ye(e))e.forEach(i=>Uu(i,t,n,s));else{const i=Ce(e.handler)?e.handler.bind(n):t[e.handler];Ce(i)&&xe(o,i,e)}}function qu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(d=>li(l,d,r,!0)),li(l,t,r)),Fe(t)&&i.set(t,l),l}function li(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&li(e,i,n,!0),o&&o.forEach(r=>li(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=dp[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const dp={data:tl,props:nl,emits:nl,methods:Hs,computed:Hs,beforeCreate:Et,created:Et,beforeMount:Et,mounted:Et,beforeUpdate:Et,updated:Et,beforeDestroy:Et,beforeUnmount:Et,destroyed:Et,unmounted:Et,activated:Et,deactivated:Et,errorCaptured:Et,serverPrefetch:Et,components:Hs,directives:Hs,watch:hp,provide:tl,inject:fp};function tl(e,t){return t?e?function(){return ut(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function fp(e,t){return Hs(xr(e),xr(t))}function xr(e){if(ye(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Et(e,t){return e?[...new Set([].concat(e,t))]:t}function Hs(e,t){return e?ut(Object.create(null),e,t):t}function nl(e,t){return e?ye(e)&&ye(t)?[...new Set([...e,...t])]:ut(Object.create(null),Za(e),Za(t??{})):t}function hp(e,t){if(!e)return t;if(!t)return e;const n=ut(Object.create(null),e);for(const s in t)n[s]=Et(e[s],t[s]);return n}function Hu(){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 pp=0;function mp(e,t){return function(s,o=null){Ce(s)||(s=ut({},s)),o!=null&&!Fe(o)&&(o=null);const i=Hu(),r=new WeakSet,a=[];let l=!1;const d=i.app={_uid:pp++,_component:s,_props:o,_container:null,_context:i,_instance:null,version:Zp,get config(){return i.config},set config(c){},use(c,...u){return r.has(c)||(c&&Ce(c.install)?(r.add(c),c.install(d,...u)):Ce(c)&&(r.add(c),c(d,...u))),d},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),d},component(c,u){return u?(i.components[c]=u,d):i.components[c]},directive(c,u){return u?(i.directives[c]=u,d):i.directives[c]},mount(c,u,f){if(!l){const h=d._ceVNode||C(s,o);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),e(h,c,f),l=!0,d._container=c,c.__vue_app__=d,ki(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(zt(a,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(c,u){return i.provides[c]=u,d},runWithContext(c){const u=Jn;Jn=d;try{return c()}finally{Jn=u}}};return d}}let Jn=null;const gp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${kt(t)}Modifiers`]||e[`${Sn(t)}Modifiers`];function _p(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||je;let o=n;const i=t.startsWith("update:"),r=i&&gp(s,t.slice(7));r&&(r.trim&&(o=n.map(c=>qe(c)?c.trim():c)),r.number&&(o=n.map(oh)));let a,l=s[a=ji(t)]||s[a=ji(kt(t))];!l&&i&&(l=s[a=ji(Sn(t))]),l&&zt(l,e,6,o);const d=s[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,zt(d,e,6,o)}}const vp=new WeakMap;function zu(e,t,n=!1){const s=n?vp:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let r={},a=!1;if(!Ce(e)){const l=d=>{const c=zu(d,t,!0);c&&(a=!0,ut(r,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Fe(e)&&s.set(e,null),null):(ye(i)?i.forEach(l=>r[l]=null):ut(r,i),Fe(e)&&s.set(e,r),r)}function xi(e,t){return!e||!hi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Le(e,t[0].toLowerCase()+t.slice(1))||Le(e,Sn(t))||Le(e,t))}function sl(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:r,attrs:a,emit:l,render:d,renderCache:c,props:u,data:f,setupState:h,ctx:g,inheritAttrs:m}=e,p=ri(e);let v,S;try{if(n.shapeFlag&4){const x=o||s,b=x;v=Gt(d.call(b,x,c,u,h,f,g)),S=a}else{const x=t;v=Gt(x.length>1?x(u,{attrs:a,slots:r,emit:l}):x(u,null)),S=t.props?a:bp(a)}}catch(x){Zs.length=0,vo(x,e,1),v=C(ft)}let T=v;if(S&&m!==!1){const x=Object.keys(S),{shapeFlag:b}=T;x.length&&b&7&&(i&&x.some(pi)&&(S=wp(S,i)),T=Nn(T,S,!1,!0))}return n.dirs&&(T=Nn(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&ao(T,n.transition),v=T,ri(p),v}function yp(e,t=!0){let n;for(let s=0;s<e.length;s++){const o=e[s];if(ys(o)){if(o.type!==ft||o.children==="v-if"){if(n)return;n=o}}else return}return n}const bp=e=>{let t;for(const n in e)(n==="class"||n==="style"||hi(n))&&((t||(t={}))[n]=e[n]);return t},wp=(e,t)=>{const n={};for(const s in e)(!pi(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ep(e,t,n){const{props:s,children:o,component:i}=e,{props:r,children:a,patchFlag:l}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?ol(s,r,d):!!r;if(l&8){const c=t.dynamicProps;for(let u=0;u<c.length;u++){const f=c[u];if(Wu(r,s,f)&&!xi(d,f))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===r?!1:s?r?ol(s,r,d):!0:!!r;return!1}function ol(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(Wu(t,e,i)&&!xi(n,i))return!0}return!1}function Wu(e,t,n){const s=e[n],o=t[n];return n==="style"&&Fe(s)&&Fe(o)?!Zr(s,o):s!==o}function ua({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 Ku={},Gu=()=>Object.create(Ku),Ju=e=>Object.getPrototypeOf(e)===Ku;function Sp(e,t,n,s=!1){const o={},i=Gu();e.propsDefaults=Object.create(null),Xu(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:bu(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Cp(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,a=Pe(o),[l]=e.propsOptions;let d=!1;if((s||r>0)&&!(r&16)){if(r&8){const c=e.vnode.dynamicProps;for(let u=0;u<c.length;u++){let f=c[u];if(xi(e.emitsOptions,f))continue;const h=t[f];if(l)if(Le(i,f))h!==i[f]&&(i[f]=h,d=!0);else{const g=kt(f);o[g]=Ar(l,a,g,h,e,!1)}else h!==i[f]&&(i[f]=h,d=!0)}}}else{Xu(e,t,o,i)&&(d=!0);let c;for(const u in a)(!t||!Le(t,u)&&((c=Sn(u))===u||!Le(t,c)))&&(l?n&&(n[u]!==void 0||n[c]!==void 0)&&(o[u]=Ar(l,a,u,void 0,e,!0)):delete o[u]);if(i!==a)for(const u in i)(!t||!Le(t,u))&&(delete i[u],d=!0)}d&&mn(e.attrs,"set","")}function Xu(e,t,n,s){const[o,i]=e.propsOptions;let r=!1,a;if(t)for(let l in t){if(Ks(l))continue;const d=t[l];let c;o&&Le(o,c=kt(l))?!i||!i.includes(c)?n[c]=d:(a||(a={}))[c]=d:xi(e.emitsOptions,l)||(!(l in s)||d!==s[l])&&(s[l]=d,r=!0)}if(i){const l=Pe(n),d=a||je;for(let c=0;c<i.length;c++){const u=i[c];n[u]=Ar(o,l,u,d[u],e,!Le(d,u))}}return r}function Ar(e,t,n,s,o,i){const r=e[n];if(r!=null){const a=Le(r,"default");if(a&&s===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&Ce(l)){const{propsDefaults:d}=o;if(n in d)s=d[n];else{const c=yo(o);s=d[n]=l.call(null,t),c()}}else s=l;o.ce&&o.ce._setProp(n,s)}r[0]&&(i&&!a?s=!1:r[1]&&(s===""||s===Sn(n))&&(s=!0))}return s}const xp=new WeakMap;function Yu(e,t,n=!1){const s=n?xp:t.propsCache,o=s.get(e);if(o)return o;const i=e.props,r={},a=[];let l=!1;if(!Ce(e)){const c=u=>{l=!0;const[f,h]=Yu(u,t,!0);ut(r,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Fe(e)&&s.set(e,fs),fs;if(ye(i))for(let c=0;c<i.length;c++){const u=kt(i[c]);il(u)&&(r[u]=je)}else if(i)for(const c in i){const u=kt(c);if(il(u)){const f=i[c],h=r[u]=ye(f)||Ce(f)?{type:f}:ut({},f),g=h.type;let m=!1,p=!0;if(ye(g))for(let v=0;v<g.length;++v){const S=g[v],T=Ce(S)&&S.name;if(T==="Boolean"){m=!0;break}else T==="String"&&(p=!1)}else m=Ce(g)&&g.name==="Boolean";h[0]=m,h[1]=p,(m||Le(h,"default"))&&a.push(u)}}const d=[r,a];return Fe(e)&&s.set(e,d),d}function il(e){return e[0]!=="$"&&!Ks(e)}const da=e=>e==="_"||e==="_ctx"||e==="$stable",fa=e=>ye(e)?e.map(Gt):[Gt(e)],Ap=(e,t,n)=>{if(t._n)return t;const s=ot((...o)=>fa(t(...o)),n);return s._c=!1,s},Qu=(e,t,n)=>{const s=e._ctx;for(const o in e){if(da(o))continue;const i=e[o];if(Ce(i))t[o]=Ap(o,i,s);else if(i!=null){const r=fa(i);t[o]=()=>r}}},Zu=(e,t)=>{const n=fa(t);e.slots.default=()=>n},ed=(e,t,n)=>{for(const s in t)(n||!da(s))&&(e[s]=t[s])},kp=(e,t,n)=>{const s=e.slots=Gu();if(e.vnode.shapeFlag&32){const o=t._;o?(ed(s,t,n),n&&Xc(s,"_",o,!0)):Qu(t,s)}else t&&Zu(e,t)},Tp=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,r=je;if(s.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:ed(o,t,n):(i=!t.$stable,Qu(t,o)),r=t}else t&&(Zu(e,t),r={default:1});if(i)for(const a in o)!da(a)&&r[a]==null&&delete o[a]},_t=Mp;function Rp(e){return Ip(e)}function Ip(e,t){const n=vi();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:r,createText:a,createComment:l,setText:d,setElementText:c,parentNode:u,nextSibling:f,setScopeId:h=ln,insertStaticContent:g}=e,m=(y,w,A,V=null,J=null,W=null,oe=void 0,te=null,Z=!!w.dynamicChildren)=>{if(y===w)return;y&&!rn(y,w)&&(V=E(y),pe(y,J,W,!0),y=null),w.patchFlag===-2&&(Z=!1,w.dynamicChildren=null);const{type:Q,ref:_e,shapeFlag:ae}=w;switch(Q){case Ai:p(y,w,A,V);break;case ft:v(y,w,A,V);break;case Xo:y==null&&S(w,A,V,oe);break;case Se:z(y,w,A,V,J,W,oe,te,Z);break;default:ae&1?b(y,w,A,V,J,W,oe,te,Z):ae&6?ee(y,w,A,V,J,W,oe,te,Z):(ae&64||ae&128)&&Q.process(y,w,A,V,J,W,oe,te,Z,D)}_e!=null&&J?Xs(_e,y&&y.ref,W,w||y,!w):_e==null&&y&&y.ref!=null&&Xs(y.ref,null,W,y,!0)},p=(y,w,A,V)=>{if(y==null)s(w.el=a(w.children),A,V);else{const J=w.el=y.el;w.children!==y.children&&d(J,w.children)}},v=(y,w,A,V)=>{y==null?s(w.el=l(w.children||""),A,V):w.el=y.el},S=(y,w,A,V)=>{[y.el,y.anchor]=g(y.children,w,A,V,y.el,y.anchor)},T=({el:y,anchor:w},A,V)=>{let J;for(;y&&y!==w;)J=f(y),s(y,A,V),y=J;s(w,A,V)},x=({el:y,anchor:w})=>{let A;for(;y&&y!==w;)A=f(y),o(y),y=A;o(w)},b=(y,w,A,V,J,W,oe,te,Z)=>{if(w.type==="svg"?oe="svg":w.type==="math"&&(oe="mathml"),y==null)P(w,A,V,J,W,oe,te,Z);else{const Q=y.el&&y.el._isVueCE?y.el:null;try{Q&&Q._beginPatch(),R(y,w,J,W,oe,te,Z)}finally{Q&&Q._endPatch()}}},P=(y,w,A,V,J,W,oe,te)=>{let Z,Q;const{props:_e,shapeFlag:ae,transition:me,dirs:we}=y;if(Z=y.el=r(y.type,W,_e&&_e.is,_e),ae&8?c(Z,y.children):ae&16&&L(y.children,Z,null,V,J,Ji(y,W),oe,te),we&&Mn(y,null,V,"created"),B(Z,y,y.scopeId,oe,V),_e){for(const Ve in _e)Ve!=="value"&&!Ks(Ve)&&i(Z,Ve,null,_e[Ve],W,V);"value"in _e&&i(Z,"value",null,_e.value,W),(Q=_e.onVnodeBeforeMount)&&tn(Q,V,y)}we&&Mn(y,null,V,"beforeMount");const Ie=Op(J,me);Ie&&me.beforeEnter(Z),s(Z,w,A),((Q=_e&&_e.onVnodeMounted)||Ie||we)&&_t(()=>{try{Q&&tn(Q,V,y),Ie&&me.enter(Z),we&&Mn(y,null,V,"mounted")}finally{}},J)},B=(y,w,A,V,J)=>{if(A&&h(y,A),V)for(let W=0;W<V.length;W++)h(y,V[W]);if(J){let W=J.subTree;if(w===W||sd(W.type)&&(W.ssContent===w||W.ssFallback===w)){const oe=J.vnode;B(y,oe,oe.scopeId,oe.slotScopeIds,J.parent)}}},L=(y,w,A,V,J,W,oe,te,Z=0)=>{for(let Q=Z;Q<y.length;Q++){const _e=y[Q]=te?pn(y[Q]):Gt(y[Q]);m(null,_e,w,A,V,J,W,oe,te)}},R=(y,w,A,V,J,W,oe)=>{const te=w.el=y.el;let{patchFlag:Z,dynamicChildren:Q,dirs:_e}=w;Z|=y.patchFlag&16;const ae=y.props||je,me=w.props||je;let we;if(A&&Vn(A,!1),(we=me.onVnodeBeforeUpdate)&&tn(we,A,w,y),_e&&Mn(w,y,A,"beforeUpdate"),A&&Vn(A,!0),(ae.innerHTML&&me.innerHTML==null||ae.textContent&&me.textContent==null)&&c(te,""),Q?K(y.dynamicChildren,Q,te,A,V,Ji(w,J),W):oe||le(y,w,te,null,A,V,Ji(w,J),W,!1),Z>0){if(Z&16)X(te,ae,me,A,J);else if(Z&2&&ae.class!==me.class&&i(te,"class",null,me.class,J),Z&4&&i(te,"style",ae.style,me.style,J),Z&8){const Ie=w.dynamicProps;for(let Ve=0;Ve<Ie.length;Ve++){const Be=Ie[Ve],Ke=ae[Be],et=me[Be];(et!==Ke||Be==="value")&&i(te,Be,Ke,et,J,A)}}Z&1&&y.children!==w.children&&c(te,w.children)}else!oe&&Q==null&&X(te,ae,me,A,J);((we=me.onVnodeUpdated)||_e)&&_t(()=>{we&&tn(we,A,w,y),_e&&Mn(w,y,A,"updated")},V)},K=(y,w,A,V,J,W,oe)=>{for(let te=0;te<w.length;te++){const Z=y[te],Q=w[te],_e=Z.el&&(Z.type===Se||!rn(Z,Q)||Z.shapeFlag&198)?u(Z.el):A;m(Z,Q,_e,null,V,J,W,oe,!0)}},X=(y,w,A,V,J)=>{if(w!==A){if(w!==je)for(const W in w)!Ks(W)&&!(W in A)&&i(y,W,w[W],null,J,V);for(const W in A){if(Ks(W))continue;const oe=A[W],te=w[W];oe!==te&&W!=="value"&&i(y,W,te,oe,J,V)}"value"in A&&i(y,"value",w.value,A.value,J)}},z=(y,w,A,V,J,W,oe,te,Z)=>{const Q=w.el=y?y.el:a(""),_e=w.anchor=y?y.anchor:a("");let{patchFlag:ae,dynamicChildren:me,slotScopeIds:we}=w;we&&(te=te?te.concat(we):we),y==null?(s(Q,A,V),s(_e,A,V),L(w.children||[],A,_e,J,W,oe,te,Z)):ae>0&&ae&64&&me&&y.dynamicChildren&&y.dynamicChildren.length===me.length?(K(y.dynamicChildren,me,A,J,W,oe,te),(w.key!=null||J&&w===J.subTree)&&ha(y,w,!0)):le(y,w,A,_e,J,W,oe,te,Z)},ee=(y,w,A,V,J,W,oe,te,Z)=>{w.slotScopeIds=te,y==null?w.shapeFlag&512?J.ctx.activate(w,A,V,oe,Z):G(w,A,V,J,W,oe,Z):ie(y,w,Z)},G=(y,w,A,V,J,W,oe)=>{const te=y.component=Wp(y,V,J);if(Si(y)&&(te.ctx.renderer=D),Kp(te,!1,oe),te.asyncDep){if(J&&J.registerDep(te,de,oe),!y.el){const Z=te.subTree=C(ft);v(null,Z,w,A),y.placeholder=Z.el}}else de(te,y,w,A,J,W,oe)},ie=(y,w,A)=>{const V=w.component=y.component;if(Ep(y,w,A))if(V.asyncDep&&!V.asyncResolved){ne(V,w,A);return}else V.next=w,V.update();else w.el=y.el,V.vnode=w},de=(y,w,A,V,J,W,oe)=>{const te=()=>{if(y.isMounted){let{next:ae,bu:me,u:we,parent:Ie,vnode:Ve}=y;{const Nt=td(y);if(Nt){ae&&(ae.el=Ve.el,ne(y,ae,oe)),Nt.asyncDep.then(()=>{_t(()=>{y.isUnmounted||Q()},J)});return}}let Be=ae,Ke;Vn(y,!1),ae?(ae.el=Ve.el,ne(y,ae,oe)):ae=Ve,me&&Ui(me),(Ke=ae.props&&ae.props.onVnodeBeforeUpdate)&&tn(Ke,Ie,ae,Ve),Vn(y,!0);const et=sl(y),Dt=y.subTree;y.subTree=et,m(Dt,et,u(Dt.el),E(Dt),y,J,W),ae.el=et.el,Be===null&&ua(y,et.el),we&&_t(we,J),(Ke=ae.props&&ae.props.onVnodeUpdated)&&_t(()=>tn(Ke,Ie,ae,Ve),J)}else{let ae;const{el:me,props:we}=w,{bm:Ie,m:Ve,parent:Be,root:Ke,type:et}=y,Dt=Ys(w);Vn(y,!1),Ie&&Ui(Ie),!Dt&&(ae=we&&we.onVnodeBeforeMount)&&tn(ae,Be,w),Vn(y,!0);{Ke.ce&&Ke.ce._hasShadowRoot()&&Ke.ce._injectChildStyle(et,y.parent?y.parent.type:void 0);const Nt=y.subTree=sl(y);m(null,Nt,A,V,y,J,W),w.el=Nt.el}if(Ve&&_t(Ve,J),!Dt&&(ae=we&&we.onVnodeMounted)){const Nt=w;_t(()=>tn(ae,Be,Nt),J)}(w.shapeFlag&256||Be&&Ys(Be.vnode)&&Be.vnode.shapeFlag&256)&&y.a&&_t(y.a,J),y.isMounted=!0,w=A=V=null}};y.scope.on();const Z=y.effect=new ou(te);y.scope.off();const Q=y.update=Z.run.bind(Z),_e=y.job=Z.runIfDirty.bind(Z);_e.i=y,_e.id=y.uid,Z.scheduler=()=>ra(_e),Vn(y,!0),Q()},ne=(y,w,A)=>{w.component=y;const V=y.vnode.props;y.vnode=w,y.next=null,Cp(y,w.props,V,A),Tp(y,w.children,A),bn(),Wa(y),wn()},le=(y,w,A,V,J,W,oe,te,Z=!1)=>{const Q=y&&y.children,_e=y?y.shapeFlag:0,ae=w.children,{patchFlag:me,shapeFlag:we}=w;if(me>0){if(me&128){Te(Q,ae,A,V,J,W,oe,te,Z);return}else if(me&256){ke(Q,ae,A,V,J,W,oe,te,Z);return}}we&8?(_e&16&&ce(Q,J,W),ae!==Q&&c(A,ae)):_e&16?we&16?Te(Q,ae,A,V,J,W,oe,te,Z):ce(Q,J,W,!0):(_e&8&&c(A,""),we&16&&L(ae,A,V,J,W,oe,te,Z))},ke=(y,w,A,V,J,W,oe,te,Z)=>{y=y||fs,w=w||fs;const Q=y.length,_e=w.length,ae=Math.min(Q,_e);let me;for(me=0;me<ae;me++){const we=w[me]=Z?pn(w[me]):Gt(w[me]);m(y[me],we,A,null,J,W,oe,te,Z)}Q>_e?ce(y,J,W,!0,!1,ae):L(w,A,V,J,W,oe,te,Z,ae)},Te=(y,w,A,V,J,W,oe,te,Z)=>{let Q=0;const _e=w.length;let ae=y.length-1,me=_e-1;for(;Q<=ae&&Q<=me;){const we=y[Q],Ie=w[Q]=Z?pn(w[Q]):Gt(w[Q]);if(rn(we,Ie))m(we,Ie,A,null,J,W,oe,te,Z);else break;Q++}for(;Q<=ae&&Q<=me;){const we=y[ae],Ie=w[me]=Z?pn(w[me]):Gt(w[me]);if(rn(we,Ie))m(we,Ie,A,null,J,W,oe,te,Z);else break;ae--,me--}if(Q>ae){if(Q<=me){const we=me+1,Ie=we<_e?w[we].el:V;for(;Q<=me;)m(null,w[Q]=Z?pn(w[Q]):Gt(w[Q]),A,Ie,J,W,oe,te,Z),Q++}}else if(Q>me)for(;Q<=ae;)pe(y[Q],J,W,!0),Q++;else{const we=Q,Ie=Q,Ve=new Map;for(Q=Ie;Q<=me;Q++){const wt=w[Q]=Z?pn(w[Q]):Gt(w[Q]);wt.key!=null&&Ve.set(wt.key,Q)}let Be,Ke=0;const et=me-Ie+1;let Dt=!1,Nt=0;const Fn=new Array(et);for(Q=0;Q<et;Q++)Fn[Q]=0;for(Q=we;Q<=ae;Q++){const wt=y[Q];if(Ke>=et){pe(wt,J,W,!0);continue}let Lt;if(wt.key!=null)Lt=Ve.get(wt.key);else for(Be=Ie;Be<=me;Be++)if(Fn[Be-Ie]===0&&rn(wt,w[Be])){Lt=Be;break}Lt===void 0?pe(wt,J,W,!0):(Fn[Lt-Ie]=Q+1,Lt>=Nt?Nt=Lt:Dt=!0,m(wt,w[Lt],A,null,J,W,oe,te,Z),Ke++)}const Oo=Dt?Pp(Fn):fs;for(Be=Oo.length-1,Q=et-1;Q>=0;Q--){const wt=Ie+Q,Lt=w[wt],Po=w[wt+1],$o=wt+1<_e?Po.el||nd(Po):V;Fn[Q]===0?m(null,Lt,A,$o,J,W,oe,te,Z):Dt&&(Be<0||Q!==Oo[Be]?se(Lt,A,$o,2):Be--)}}},se=(y,w,A,V,J=null)=>{const{el:W,type:oe,transition:te,children:Z,shapeFlag:Q}=y;if(Q&6){se(y.component.subTree,w,A,V);return}if(Q&128){y.suspense.move(w,A,V);return}if(Q&64){oe.move(y,w,A,D);return}if(oe===Se){s(W,w,A);for(let ae=0;ae<Z.length;ae++)se(Z[ae],w,A,V);s(y.anchor,w,A);return}if(oe===Xo){T(y,w,A);return}if(V!==2&&Q&1&&te)if(V===0)te.persisted&&!W[jt]?s(W,w,A):(te.beforeEnter(W),s(W,w,A),_t(()=>te.enter(W),J));else{const{leave:ae,delayLeave:me,afterLeave:we}=te,Ie=()=>{y.ctx.isUnmounted?o(W):s(W,w,A)},Ve=()=>{const Be=W._isLeaving||!!W[jt];W._isLeaving&&W[jt](!0),te.persisted&&!Be?Ie():ae(W,()=>{Ie(),we&&we()})};me?me(W,Ie,Ve):Ve()}else s(W,w,A)},pe=(y,w,A,V=!1,J=!1)=>{const{type:W,props:oe,ref:te,children:Z,dynamicChildren:Q,shapeFlag:_e,patchFlag:ae,dirs:me,cacheIndex:we,memo:Ie}=y;if(ae===-2&&(J=!1),te!=null&&(bn(),Xs(te,null,A,y,!0),wn()),we!=null&&(w.renderCache[we]=void 0),_e&256){w.ctx.deactivate(y);return}const Ve=_e&1&&me,Be=!Ys(y);let Ke;if(Be&&(Ke=oe&&oe.onVnodeBeforeUnmount)&&tn(Ke,w,y),_e&6)H(y.component,A,V);else{if(_e&128){y.suspense.unmount(A,V);return}Ve&&Mn(y,null,w,"beforeUnmount"),_e&64?y.type.remove(y,w,A,D,V):Q&&!Q.hasOnce&&(W!==Se||ae>0&&ae&64)?ce(Q,w,A,!1,!0):(W===Se&&ae&384||!J&&_e&16)&&ce(Z,w,A),V&&fe(y)}const et=Ie!=null&&we==null;(Be&&(Ke=oe&&oe.onVnodeUnmounted)||Ve||et)&&_t(()=>{Ke&&tn(Ke,w,y),Ve&&Mn(y,null,w,"unmounted"),et&&(y.el=null)},A)},fe=y=>{const{type:w,el:A,anchor:V,transition:J}=y;if(w===Se){Ae(A,V);return}if(w===Xo){x(y);return}const W=()=>{o(A),J&&!J.persisted&&J.afterLeave&&J.afterLeave()};if(y.shapeFlag&1&&J&&!J.persisted){const{leave:oe,delayLeave:te}=J,Z=()=>oe(A,W);te?te(y.el,W,Z):Z()}else W()},Ae=(y,w)=>{let A;for(;y!==w;)A=f(y),o(y),y=A;o(w)},H=(y,w,A)=>{const{bum:V,scope:J,job:W,subTree:oe,um:te,m:Z,a:Q}=y;rl(Z),rl(Q),V&&Ui(V),J.stop(),W&&(W.flags|=8,pe(oe,y,w,A)),te&&_t(te,w),_t(()=>{y.isUnmounted=!0},w)},ce=(y,w,A,V=!1,J=!1,W=0)=>{for(let oe=W;oe<y.length;oe++)pe(y[oe],w,A,V,J)},E=y=>{if(y.shapeFlag&6)return E(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const w=f(y.anchor||y.el),A=w&&w[Iu];return A?f(A):w};let N=!1;const U=(y,w,A)=>{let V;y==null?w._vnode&&(pe(w._vnode,null,null,!0),V=w._vnode.component):m(w._vnode||null,y,w,null,null,null,A),w._vnode=y,N||(N=!0,Wa(V),xu(),N=!1)},D={p:m,um:pe,m:se,r:fe,mt:G,mc:L,pc:le,pbc:K,n:E,o:e};return{render:U,hydrate:void 0,createApp:mp(U)}}function Ji({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 Vn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Op(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ha(e,t,n=!1){const s=e.children,o=t.children;if(ye(s)&&ye(o))for(let i=0;i<s.length;i++){const r=s[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=pn(o[i]),a.el=r.el),!n&&a.patchFlag!==-2&&ha(r,a)),a.type===Ai&&(a.patchFlag===-1&&(a=o[i]=pn(a)),a.el=r.el),a.type===ft&&!a.el&&(a.el=r.el)}}function Pp(e){const t=e.slice(),n=[0];let s,o,i,r,a;const l=e.length;for(s=0;s<l;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,r=n.length-1;i<r;)a=i+r>>1,e[n[a]]<d?i=a+1:r=a;d<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function td(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:td(t)}function rl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function nd(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?nd(t.subTree):null}const sd=e=>e.__isSuspense;let kr=0;const $p={name:"Suspense",__isSuspense:!0,process(e,t,n,s,o,i,r,a,l,d){if(e==null)Dp(t,n,s,o,i,r,a,l,d);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Np(e,t,n,s,o,r,a,l,d)}},hydrate:Lp,normalize:Fp},Bp=$p;function lo(e,t){const n=e.props&&e.props[t];Ce(n)&&n()}function Dp(e,t,n,s,o,i,r,a,l){const{p:d,o:{createElement:c}}=l,u=c("div"),f=e.suspense=od(e,o,s,t,u,n,i,r,a,l);d(null,f.pendingBranch=e.ssContent,u,null,s,f,i,r),f.deps>0?(lo(e,"onPending"),lo(e,"onFallback"),d(null,e.ssFallback,t,n,s,null,i,r),gs(f,e.ssFallback)):f.resolve(!1,!0)}function Np(e,t,n,s,o,i,r,a,{p:l,um:d,o:{createElement:c}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:g,pendingBranch:m,isInFallback:p,isHydrating:v}=u;if(m)u.pendingBranch=f,rn(m,f)?(l(m,f,u.hiddenContainer,null,o,u,i,r,a),u.deps<=0?u.resolve():p&&(v||(l(g,h,n,s,o,null,i,r,a),gs(u,h)))):(u.pendingId=kr++,v?(u.isHydrating=!1,u.activeBranch=m):d(m,o,u),u.deps=0,u.effects.length=0,u.hiddenContainer=c("div"),p?(l(null,f,u.hiddenContainer,null,o,u,i,r,a),u.deps<=0?u.resolve():(l(g,h,n,s,o,null,i,r,a),gs(u,h))):g&&rn(g,f)?(l(g,f,n,s,o,u,i,r,a),u.resolve(!0)):(l(null,f,u.hiddenContainer,null,o,u,i,r,a),u.deps<=0&&u.resolve()));else if(g&&rn(g,f))l(g,f,n,s,o,u,i,r,a),gs(u,f);else if(lo(t,"onPending"),u.pendingBranch=f,f.shapeFlag&512?u.pendingId=f.component.suspenseId:u.pendingId=kr++,l(null,f,u.hiddenContainer,null,o,u,i,r,a),u.deps<=0)u.resolve();else{const{timeout:S,pendingId:T}=u;S>0?setTimeout(()=>{u.pendingId===T&&u.fallback(h)},S):S===0&&u.fallback(h)}}function od(e,t,n,s,o,i,r,a,l,d,c=!1){const{p:u,m:f,um:h,n:g,o:{parentNode:m,remove:p}}=d;let v;const S=Vp(e);S&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const T=e.props?Yc(e.props.timeout):void 0,x=i,b={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:o,deps:0,pendingId:kr++,timeout:typeof T=="number"?T:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(P=!1,B=!1){const{vnode:L,activeBranch:R,pendingBranch:K,pendingId:X,effects:z,parentComponent:ee,container:G,isInFallback:ie}=b;let de=!1;if(b.isHydrating)b.isHydrating=!1;else if(!P){de=R&&K.transition&&K.transition.mode==="out-in";let ke=!1;de&&(R.transition.afterLeave=()=>{X===b.pendingId&&(f(K,G,i===x&&!ke?g(R):i,0),yr(z),ie&&L.ssFallback&&(L.ssFallback.el=null))}),R&&!b.isFallbackMountPending&&(m(R.el)===G&&(i=g(R),ke=!0),h(R,ee,b,!0),!de&&ie&&L.ssFallback&&_t(()=>L.ssFallback.el=null,b)),de||f(K,G,i,0)}b.isFallbackMountPending=!1,gs(b,K),b.pendingBranch=null,b.isInFallback=!1;let ne=b.parent,le=!1;for(;ne;){if(ne.pendingBranch){ne.effects.push(...z),le=!0;break}ne=ne.parent}!le&&!de&&yr(z),b.effects=[],S&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!B&&t.resolve()),lo(L,"onResolve")},fallback(P){if(!b.pendingBranch)return;const{vnode:B,activeBranch:L,parentComponent:R,container:K,namespace:X}=b;lo(B,"onFallback");const z=g(L),ee=()=>{b.isFallbackMountPending=!1,b.isInFallback&&(u(null,P,K,z,R,null,X,a,l),gs(b,P))},G=P.transition&&P.transition.mode==="out-in";G&&(b.isFallbackMountPending=!0,L.transition.afterLeave=ee),b.isInFallback=!0,h(L,R,null,!0),G||ee()},move(P,B,L){b.activeBranch&&f(b.activeBranch,P,B,L),b.container=P},next(){return b.activeBranch&&g(b.activeBranch)},registerDep(P,B,L){const R=!!b.pendingBranch;R&&b.deps++;const K=P.vnode.el;P.asyncDep.catch(X=>{vo(X,P,0)}).then(X=>{if(P.isUnmounted||b.isUnmounted||b.pendingId!==P.suspenseId)return;Rr(),P.asyncResolved=!0;const{vnode:z}=P;Ir(P,X),K&&(z.el=K);const ee=!K&&P.subTree.el;B(P,z,m(K||P.subTree.el),K?null:g(P.subTree),b,r,L),ee&&(z.placeholder=null,p(ee)),ua(P,z.el),R&&--b.deps===0&&b.resolve()})},unmount(P,B){b.isUnmounted=!0,b.activeBranch&&h(b.activeBranch,n,P,B),b.pendingBranch&&h(b.pendingBranch,n,P,B)}};return b}function Lp(e,t,n,s,o,i,r,a,l){const d=t.suspense=od(t,s,n,e.parentNode,document.createElement("div"),null,o,i,r,a,!0),c=l(e,d.pendingBranch=t.ssContent,n,d,i,r);return d.deps===0&&d.resolve(!1,!0),c}function Fp(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=al(s?n.default:n),e.ssFallback=s?al(n.fallback):C(ft)}function al(e){let t;if(Ce(e)){const n=vs&&e._c;n&&(e._d=!1,k()),e=e(),n&&(e._d=!0,t=Rt,id())}return ye(e)&&(e=yp(e)),e=Gt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Mp(e,t){t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):yr(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,ua(s,o))}function Vp(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Se=Symbol.for("v-fgt"),Ai=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),Xo=Symbol.for("v-stc"),Zs=[];let Rt=null;function k(e=!1){Zs.push(Rt=e?null:[])}function id(){Zs.pop(),Rt=Zs[Zs.length-1]||null}let vs=1;function ci(e,t=!1){vs+=e,e<0&&Rt&&t&&(Rt.hasOnce=!0)}function rd(e){return e.dynamicChildren=vs>0?Rt||fs:null,id(),vs>0&&Rt&&Rt.push(e),e}function I(e,t,n,s,o,i){return rd(_(e,t,n,s,o,i,!0))}function At(e,t,n,s,o){return rd(C(e,t,n,s,o,!0))}function ys(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}const ad=({key:e})=>e??null,Yo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?qe(e)||Je(e)||Ce(e)?{i:$t,r:e,k:t,f:!!n}:e:null);function _(e,t=null,n=null,s=0,o=null,i=e===Se?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ad(t),ref:t&&Yo(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:$t};return a?(pa(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=qe(n)?8:16),vs>0&&!r&&Rt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Rt.push(l),l}const C=jp;function jp(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===ju)&&(e=ft),ys(e)){const a=Nn(e,t,!0);return n&&pa(a,n),vs>0&&!i&&Rt&&(a.shapeFlag&6?Rt[Rt.indexOf(e)]=a:Rt.push(a)),a.patchFlag=-2,a}if(Qp(e)&&(e=e.__vccOpts),t){t=Up(t);let{class:a,style:l}=t;a&&!qe(a)&&(t.class=ve(a)),Fe(l)&&(Ei(l)&&!ye(l)&&(l=ut({},l)),t.style=Ut(l))}const r=qe(e)?1:sd(e)?128:Ou(e)?64:Fe(e)?4:Ce(e)?2:0;return _(e,t,n,s,o,r,i,!0)}function Up(e){return e?Ei(e)||Ju(e)?ut({},e):e:null}function Nn(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:r,children:a,transition:l}=e,d=t?Pt(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&ad(d),ref:t&&t.ref?n&&i?ye(i)?i.concat(Yo(t)):[i,Yo(t)]:Yo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nn(e.ssContent),ssFallback:e.ssFallback&&Nn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&ao(c,l.clone(c)),c}function Ue(e=" ",t=0){return C(Ai,null,e,t)}function qp(e,t){const n=C(Xo,null,e);return n.staticCount=t,n}function re(e="",t=!1){return t?(k(),At(ft,null,e)):C(ft,null,e)}function Gt(e){return e==null||typeof e=="boolean"?C(ft):ye(e)?C(Se,null,e.slice()):ys(e)?pn(e):C(Ai,null,String(e))}function pn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nn(e)}function pa(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ye(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),pa(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Ju(t)?t._ctx=$t:o===3&&$t&&($t.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:$t},n=32):(t=String(t),s&64?(n=16,t=[Ue(t)]):n=8);e.children=t,e.shapeFlag|=n}function Pt(...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=ve([t.class,s.class]));else if(o==="style")t.style=Ut([t.style,s.style]);else if(hi(o)){const i=t[o],r=s[o];r&&i!==r&&!(ye(i)&&i.includes(r))?t[o]=i?[].concat(i,r):r:r==null&&i==null&&!pi(o)&&(t[o]=r)}else o!==""&&(t[o]=s[o])}return t}function tn(e,t,n,s=null){zt(e,t,7,[n,s])}const Hp=Hu();let zp=0;function Wp(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Hp,i={uid:zp++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new tu(!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:Yu(s,o),emitsOptions:zu(s,o),emit:null,emitted:null,propsDefaults:je,inheritAttrs:s.inheritAttrs,ctx:je,data:je,props:je,attrs:je,slots:je,refs:je,setupState:je,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=_p.bind(null,i),e.ce&&e.ce(i),i}let yt=null;const Wt=()=>yt||$t;let ui,Tr;{const e=vi(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};ui=t("__VUE_INSTANCE_SETTERS__",n=>yt=n),Tr=t("__VUE_SSR_SETTERS__",n=>co=n)}const yo=e=>{const t=yt;return ui(e),e.scope.on(),()=>{e.scope.off(),ui(t)}},Rr=()=>{yt&&yt.scope.off(),ui(null)};function ld(e){return e.vnode.shapeFlag&4}let co=!1;function Kp(e,t=!1,n=!1){t&&Tr(t);const{props:s,children:o}=e.vnode,i=ld(e);Sp(e,s,i,t),kp(e,o,n||t);const r=i?Gp(e,t):void 0;return t&&Tr(!1),r}function Gp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,lp);const{setup:s}=n;if(s){bn();const o=e.setupContext=s.length>1?Xp(e):null,i=yo(e),r=_o(s,e,0,[e.props,o]),a=Kc(r);if(wn(),i(),(a||e.sp)&&!Ys(e)&&Fu(e),a){if(r.then(Rr,Rr),t)return r.then(l=>{Ir(e,l)}).catch(l=>{vo(l,e,0)});e.asyncDep=r}else Ir(e,r)}else cd(e)}function Ir(e,t,n){Ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fe(t)&&(e.setupState=Eu(t)),cd(e)}function cd(e,t,n){const s=e.type;e.render||(e.render=s.render||ln);{const o=yo(e);bn();try{cp(e)}finally{wn(),o()}}}const Jp={get(e,t){return vt(e,"get",""),e[t]}};function Xp(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Jp),slots:e.slots,emit:e.emit,expose:t}}function ki(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Eu(ia(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qs)return Qs[n](e)},has(t,n){return n in t||n in Qs}})):e.proxy}function Yp(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function Qp(e){return Ce(e)&&"__vccOpts"in e}const M=(e,t)=>Lh(e,t,co);function ma(e,t,n){try{ci(-1);const s=arguments.length;return s===2?Fe(t)&&!ye(t)?ys(t)?C(e,null,[t]):C(e,t):C(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ys(n)&&(n=[n]),C(e,t,n))}finally{ci(1)}}const Zp="3.5.35";/**
|
||
* @vue/runtime-dom v3.5.35
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Or;const ll=typeof window<"u"&&window.trustedTypes;if(ll)try{Or=ll.createPolicy("vue",{createHTML:e=>e})}catch{}const ud=Or?e=>Or.createHTML(e):e=>e,em="http://www.w3.org/2000/svg",tm="http://www.w3.org/1998/Math/MathML",hn=typeof document<"u"?document:null,cl=hn&&hn.createElement("template"),nm={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(em,e):t==="mathml"?hn.createElementNS(tm,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 r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{cl.innerHTML=ud(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=cl.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},An="transition",Ps="animation",uo=Symbol("_vtc"),dd={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},sm=ut({},$u,dd),om=e=>(e.displayName="Transition",e.props=sm,e),Ti=om((e,{slots:t})=>ma(Yh,im(e),t)),jn=(e,t=[])=>{ye(e)?e.forEach(n=>n(...t)):e&&e(...t)},ul=e=>e?ye(e)?e.some(t=>t.length>1):e.length>1:!1;function im(e){const t={};for(const z in e)z in dd||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:d=r,appearToClass:c=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=rm(o),m=g&&g[0],p=g&&g[1],{onBeforeEnter:v,onEnter:S,onEnterCancelled:T,onLeave:x,onLeaveCancelled:b,onBeforeAppear:P=v,onAppear:B=S,onAppearCancelled:L=T}=t,R=(z,ee,G,ie)=>{z._enterCancelled=ie,Un(z,ee?c:a),Un(z,ee?d:r),G&&G()},K=(z,ee)=>{z._isLeaving=!1,Un(z,u),Un(z,h),Un(z,f),ee&&ee()},X=z=>(ee,G)=>{const ie=z?B:S,de=()=>R(ee,z,G);jn(ie,[ee,de]),dl(()=>{Un(ee,z?l:i),dn(ee,z?c:a),ul(ie)||fl(ee,s,m,de)})};return ut(t,{onBeforeEnter(z){jn(v,[z]),dn(z,i),dn(z,r)},onBeforeAppear(z){jn(P,[z]),dn(z,l),dn(z,d)},onEnter:X(!1),onAppear:X(!0),onLeave(z,ee){z._isLeaving=!0;const G=()=>K(z,ee);dn(z,u),z._enterCancelled?(dn(z,f),ml(z)):(ml(z),dn(z,f)),dl(()=>{z._isLeaving&&(Un(z,u),dn(z,h),ul(x)||fl(z,s,p,G))}),jn(x,[z,G])},onEnterCancelled(z){R(z,!1,void 0,!0),jn(T,[z])},onAppearCancelled(z){R(z,!0,void 0,!0),jn(L,[z])},onLeaveCancelled(z){K(z),jn(b,[z])}})}function rm(e){if(e==null)return null;if(Fe(e))return[Xi(e.enter),Xi(e.leave)];{const t=Xi(e);return[t,t]}}function Xi(e){return Yc(e)}function dn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[uo]||(e[uo]=new Set)).add(t)}function Un(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[uo];n&&(n.delete(t),n.size||(e[uo]=void 0))}function dl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let am=0;function fl(e,t,n,s){const o=e._endId=++am,i=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:a,propCount:l}=lm(e,t);if(!r)return s();const d=r+"end";let c=0;const u=()=>{e.removeEventListener(d,f),i()},f=h=>{h.target===e&&++c>=l&&u()};setTimeout(()=>{c<l&&u()},a+1),e.addEventListener(d,f)}function lm(e,t){const n=window.getComputedStyle(e),s=g=>(n[g]||"").split(", "),o=s(`${An}Delay`),i=s(`${An}Duration`),r=hl(o,i),a=s(`${Ps}Delay`),l=s(`${Ps}Duration`),d=hl(a,l);let c=null,u=0,f=0;t===An?r>0&&(c=An,u=r,f=i.length):t===Ps?d>0&&(c=Ps,u=d,f=l.length):(u=Math.max(r,d),c=u>0?r>d?An:Ps:null,f=c?c===An?i.length:l.length:0);const h=c===An&&/\b(?:transform|all)(?:,|$)/.test(s(`${An}Property`).toString());return{type:c,timeout:u,propCount:f,hasTransform:h}}function hl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>pl(n)+pl(e[s])))}function pl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ml(e){return(e?e.ownerDocument:document).body.offsetHeight}function cm(e,t,n){const s=e[uo];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const di=Symbol("_vod"),fd=Symbol("_vsh"),Bn={name:"show",beforeMount(e,{value:t},{transition:n}){e[di]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):$s(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),$s(e,!0),s.enter(e)):s.leave(e,()=>{$s(e,!1)}):$s(e,t))},beforeUnmount(e,{value:t}){$s(e,t)}};function $s(e,t){e.style.display=t?e[di]:"none",e[fd]=!t}const um=Symbol(""),dm=/(?:^|;)\s*display\s*:/;function fm(e,t,n){const s=e.style,o=qe(n);let i=!1;if(n&&!o){if(t)if(qe(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&zs(s,a,"")}else for(const r in t)n[r]==null&&zs(s,r,"");for(const r in n){r==="display"&&(i=!0);const a=n[r];a!=null?pm(e,r,!qe(t)&&t?t[r]:void 0,a)||zs(s,r,a):zs(s,r,"")}}else if(o){if(t!==n){const r=s[um];r&&(n+=";"+r),s.cssText=n,i=dm.test(n)}}else t&&e.removeAttribute("style");di in e&&(e[di]=i?s.display:"",e[fd]&&(s.display="none"))}const gl=/\s*!important$/;function zs(e,t,n){if(ye(n))n.forEach(s=>zs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=hm(e,t);gl.test(n)?e.setProperty(Sn(s),n.replace(gl,""),"important"):e[s]=n}}const _l=["Webkit","Moz","ms"],Yi={};function hm(e,t){const n=Yi[t];if(n)return n;let s=kt(t);if(s!=="filter"&&s in e)return Yi[t]=s;s=_i(s);for(let o=0;o<_l.length;o++){const i=_l[o]+s;if(i in e)return Yi[t]=i}return t}function pm(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&qe(s)&&n===s}const vl="http://www.w3.org/1999/xlink";function yl(e,t,n,s,o,i=dh(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(vl,t.slice(6,t.length)):e.setAttributeNS(vl,t,n):n==null||i&&!Qc(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ht(n)?String(n):n)}function bl(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ud(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Qc(n):n==null&&a==="string"?(n="",r=!0):a==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(o||t)}function mm(e,t,n,s){e.addEventListener(t,n,s)}function gm(e,t,n,s){e.removeEventListener(t,n,s)}const wl=Symbol("_vei");function _m(e,t,n,s,o=null){const i=e[wl]||(e[wl]={}),r=i[t];if(s&&r)r.value=s;else{const[a,l]=vm(t);if(s){const d=i[t]=wm(s,o);mm(e,a,d,l)}else r&&(gm(e,a,r,l),i[t]=void 0)}}const El=/(?:Once|Passive|Capture)$/;function vm(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):Sn(e.slice(2)),t]}let Qi=0;const ym=Promise.resolve(),bm=()=>Qi||(ym.then(()=>Qi=0),Qi=Date.now());function wm(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(ye(o)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const r=o.slice(),a=[s];for(let l=0;l<r.length&&!s._stopped;l++){const d=r[l];d&&zt(d,t,5,a)}}else zt(o,t,5,[s])};return n.value=e,n.attached=bm(),n}const Sl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Em=(e,t,n,s,o,i)=>{const r=o==="svg";t==="class"?cm(e,s,r):t==="style"?fm(e,n,s):hi(t)?pi(t)||_m(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Sm(e,t,s,r))?(bl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&yl(e,t,s,r,i,t!=="value")):e._isVueCE&&(Cm(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!qe(s)))?bl(e,kt(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),yl(e,t,s,r))};function Sm(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Sl(t)&&Ce(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 Sl(t)&&qe(n)?!1:t in e}function Cm(e,t){const n=e._def.props;if(!n)return!1;const s=kt(t);return Array.isArray(n)?n.some(o=>kt(o)===s):Object.keys(n).some(o=>kt(o)===s)}const xm=["ctrl","shift","alt","meta"],Am={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)=>xm.some(n=>e[`${n}Key`]&&!t.includes(n))},_n=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...i)=>{for(let r=0;r<t.length;r++){const a=Am[t[r]];if(a&&a(o,t))return}return e(o,...i)})},km={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},hd=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const i=Sn(o.key);if(t.some(r=>r===i||km[r]===i))return e(o)})},Tm=ut({patchProp:Em},nm);let Cl;function Rm(){return Cl||(Cl=Rp(Tm))}const pd=(...e)=>{const t=Rm().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Om(s);if(!o)return;const i=t._component;!Ce(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Im(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function Im(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Om(e){return qe(e)?document.querySelector(e):e}function Pr(){}const Ge=Object.assign,As=typeof window<"u",bo=e=>e!==null&&typeof e=="object",it=e=>e!=null,fo=e=>typeof e=="function",md=e=>bo(e)&&fo(e.then)&&fo(e.catch),gd=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),Pm=()=>As?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function xl(e,t){const n=t.split(".");let s=e;return n.forEach(o=>{var i;s=bo(s)&&(i=s[o])!=null?i:""}),s}function Yn(e,t,n){return t.reduce((s,o)=>(s[o]=e[o],s),{})}const Al=e=>Array.isArray(e)?e:[e],qt=null,$e=[Number,String],ze={type:Boolean,default:!0},Qo=e=>({type:e,required:!0}),_d=e=>({type:Number,default:e}),Jt=e=>({type:$e,default:e}),De=e=>({type:String,default:e});var ks=typeof window<"u";function ho(e){return ks?requestAnimationFrame(e):-1}function vd(e){ks&&cancelAnimationFrame(e)}function Ws(e){ho(()=>ho(e))}var $m=e=>e===window,kl=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),an=e=>{const t=Re(e);if($m(t)){const n=t.innerWidth,s=t.innerHeight;return kl(n,s)}return t!=null&&t.getBoundingClientRect?t.getBoundingClientRect():kl(0,0)};function wo(e){const t=ht(e,null);if(t){const n=Wt(),{link:s,unlink:o,internalChildren:i}=t;s(n),Ln(()=>o(n));const r=M(()=>i.indexOf(n));return{parent:t,index:r}}return{parent:null,index:F(-1)}}function Bm(e){const t=[],n=s=>{Array.isArray(s)&&s.forEach(o=>{var i;ys(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 Tl=(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 Dm(e,t,n){const s=Bm(e.subTree.children);n.sort((i,r)=>Tl(s,i.vnode)-Tl(s,r.vnode));const o=n.map(i=>i.proxy);t.sort((i,r)=>{const a=o.indexOf(i),l=o.indexOf(r);return a-l})}function ga(e){const t=mt([]),n=mt([]),s=Wt();return{children:t,linkChildren:i=>{cn(e,Object.assign({link:l=>{l.proxy&&(n.push(l),t.push(l.proxy),Dm(s,t,n))},unlink:l=>{const d=n.indexOf(l);t.splice(d,1),n.splice(d,1)},children:t,internalChildren:n},i))}}}function Ri(e){let t;st(()=>{e(),Ze(()=>{t=!0})}),Cs(()=>{t&&e()})}function es(e,t,n={}){if(!ks)return;const{target:s=window,passive:o=!1,capture:i=!1}=n;let r=!1,a;const l=u=>{if(r)return;const f=Re(u);f&&!a&&(f.addEventListener(e,t,{capture:i,passive:o}),a=!0)},d=u=>{if(r)return;const f=Re(u);f&&a&&(f.removeEventListener(e,t,i),a=!1)};Ln(()=>d(s)),Zn(()=>d(s)),Ri(()=>l(s));let c;return Je(s)&&(c=xe(s,(u,f)=>{d(f),l(u)})),()=>{c==null||c(),d(s),r=!0}}var Vo,Zi;function Nm(){if(!Vo&&(Vo=F(0),Zi=F(0),ks)){const e=()=>{Vo.value=window.innerWidth,Zi.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Vo,height:Zi}}var Lm=/scroll|auto|overlay/i,yd=ks?window:void 0;function Fm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function bd(e,t=yd){let n=e;for(;n&&n!==t&&Fm(n);){const{overflowY:s}=window.getComputedStyle(n);if(Lm.test(s))return n;n=n.parentNode}return t}function wd(e,t=yd){const n=F();return st(()=>{e.value&&(n.value=bd(e.value,t))}),n}var jo;function Mm(){if(!jo&&(jo=F("visible"),ks)){const e=()=>{jo.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return jo}var Ed=Symbol("van-field");function Sd(e){const t=ht(Ed,null);t&&!t.customValue.value&&(t.customValue.value=e,xe(e,()=>{t.resetValidation(),t.validateWithTrigger("onChange")}))}function _a(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function $r(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function va(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function ya(e){$r(window,e),$r(document.body,e)}function Rl(e,t){if(e===window)return 0;const n=t?_a(t):va();return an(e).top+n}const Vm=Pm();function jm(){Vm&&ya(va())}const Um=e=>e.stopPropagation();function yn(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Um(e)}function po(e){const t=Re(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:Eo,height:Ii}=Nm();function rt(e){if(it(e))return gd(e)?`${e}px`:String(e)}function Cd(e){if(it(e)){if(Array.isArray(e))return{width:rt(e[0]),height:rt(e[1])};const t=rt(e);return{width:t,height:t}}}function xd(e){const t={};return e!==void 0&&(t.zIndex=+e),t}let er;function qm(){if(!er){const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;er=parseFloat(t)}return er}function Hm(e){return e=e.replace(/rem/g,""),+e*qm()}function zm(e){return e=e.replace(/vw/g,""),+e*Eo.value/100}function Wm(e){return e=e.replace(/vh/g,""),+e*Ii.value/100}function Ad(e){if(typeof e=="number")return e;if(As){if(e.includes("rem"))return Hm(e);if(e.includes("vw"))return zm(e);if(e.includes("vh"))return Wm(e)}return parseFloat(e)}const Km=/-(\w)/g,kd=e=>e.replace(Km,(t,n)=>n.toUpperCase()),Gm=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),Zo=(e,t,n)=>Math.min(Math.max(e,t),n);function Il(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 Jm(e,t=!0,n=!0){t?e=Il(e,".",/\./g):e=e.split(".")[0],n?e=Il(e,"-",/-/g):e=e.replace(/-/,"");const s=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(s,"")}const{hasOwnProperty:Xm}=Object.prototype;function Ym(e,t,n){const s=t[n];it(s)&&(!Xm.call(e,n)||!bo(s)?e[n]=s:e[n]=Td(Object(e[n]),s))}function Td(e,t){return Object.keys(t).forEach(n=>{Ym(e,t,n)}),e}var Qm={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=F("zh-CN"),Pl=mt({"zh-CN":Qm}),Zm={messages(){return Pl[Ol.value]},use(e,t){Ol.value=e,this.add({[e]:t})},add(e={}){Td(Pl,e)}};var eg=Zm;function tg(e){const t=kd(e)+".";return(n,...s)=>{const o=eg.messages(),i=xl(o,t+n)||xl(o,n);return fo(i)?i(...s):i}}function Br(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,s)=>n+Br(e,s),""):Object.keys(t).reduce((n,s)=>n+(t[s]?Br(e,s):""),""):""}function ng(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${Br(t,n)}`)}function We(e){const t=`van-${e}`;return[t,ng(t),tg(t)]}const So="van-hairline",sg=`${So}--top`,og=`${So}--left`,yk=`${So}--bottom`,ig=`${So}--surround`,rg=`${So}--top-bottom`,Rd="van-haptics-feedback",ag=Symbol("van-form"),$l=5;function ba(e,{args:t=[],done:n,canceled:s,error:o}){if(e){const i=e.apply(null,t);md(i)?i.then(r=>{r?n():s&&s()}).catch(o||Pr):i?n():s&&s()}else n()}function Ye(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(kd(`-${n}`),e))},e}const Id=Symbol();function wa(e){const t=ht(Id,null);t&&xe(t,n=>{n&&e()})}const lg=(e,t)=>{const n=F(),s=()=>{n.value=an(e).height};return st(()=>{Ze(s);for(let o=1;o<=3;o++)setTimeout(s,100*o)}),wa(()=>Ze(s)),xe([Eo,Ii],s),n};function cg(e,t){const n=lg(e);return s=>C("div",{class:t("placeholder"),style:{height:n.value?`${n.value}px`:void 0}},[s()])}const[Od,Bl]=We("action-bar"),Pd=Symbol(Od),ug={placeholder:Boolean,safeAreaInsetBottom:ze};var dg=be({name:Od,props:ug,setup(e,{slots:t}){const n=F(),s=cg(n,Bl),{linkChildren:o}=ga(Pd);o();const i=()=>{var r;return C("div",{ref:n,class:[Bl(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[(r=t.default)==null?void 0:r.call(t)])};return()=>e.placeholder?s(i):i()}});const fg=Ye(dg);function Zt(e){const t=Wt();t&&Ge(t.proxy,e)}const Oi={to:[String,Object],url:String,replace:Boolean};function $d({to:e,url:t,replace:n,$router:s}){e&&s?s[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function Ea(){const e=Wt().proxy;return()=>$d(e)}const[hg,Dl]=We("badge"),pg={dot:Boolean,max:$e,tag:De("div"),color:String,offset:Array,content:$e,showZero:ze,position:De("top-right")};var mg=be({name:hg,props:pg,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:a,showZero:l}=e;return it(a)&&a!==""&&(l||a!==0&&a!=="0")},s=()=>{const{dot:a,max:l,content:d}=e;if(!a&&n())return t.content?t.content():it(l)&&gd(d)&&+d>+l?`${l}+`:d},o=a=>a.startsWith("-")?a.replace("-",""):`-${a}`,i=M(()=>{const a={background:e.color};if(e.offset){const[l,d]=e.offset,{position:c}=e,[u,f]=c.split("-");t.default?(typeof d=="number"?a[u]=rt(u==="top"?d:-d):a[u]=u==="top"?rt(d):o(d),typeof l=="number"?a[f]=rt(f==="left"?l:-l):a[f]=f==="left"?rt(l):o(l)):(a.marginTop=rt(d),a.marginLeft=rt(l))}return a}),r=()=>{if(n()||e.dot)return C("div",{class:Dl([e.position,{dot:e.dot,fixed:!!t.default}]),style:i.value},[s()])};return()=>{if(t.default){const{tag:a}=e;return C(a,{class:Dl("wrapper")},{default:()=>[t.default(),r()]})}return r()}}});const Bd=Ye(mg);let Dd=2e3;const gg=()=>++Dd,_g=e=>{Dd=e},[Nd,vg]=We("config-provider"),Ld=Symbol(Nd),yg={tag:De("div"),theme:De("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:De("local"),iconPrefix:String};function bg(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function wg(e){const t={};return Object.keys(e).forEach(n=>{const s=bg(Gm(n));t[`--van-${s}`]=e[n]}),t}function Uo(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 Eg=be({name:Nd,props:yg,setup(e,{slots:t}){const n=M(()=>wg(Ge({},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}`)};xe(()=>e.theme,(i,r)=>{r&&o(r),s()},{immediate:!0}),Cs(s),Zn(o),xs(o),xe(n,(i,r)=>{e.themeVarsScope==="global"&&Uo(i,r)}),xe(()=>e.themeVarsScope,(i,r)=>{r==="global"&&Uo({},n.value),i==="global"&&Uo(n.value,{})}),e.themeVarsScope==="global"&&Uo(n.value,{})}return cn(Ld,e),Tu(()=>{e.zIndex!==void 0&&_g(e.zIndex)}),()=>C(e.tag,{class:vg(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var s;return[(s=t.default)==null?void 0:s.call(t)]}})}});const[Sg,Nl]=We("icon"),Cg=e=>e==null?void 0:e.includes("/"),xg={dot:Boolean,tag:De("i"),name:String,size:$e,badge:$e,color:String,badgeProps:Object,classPrefix:String};var Ag=be({name:Sg,props:xg,setup(e,{slots:t}){const n=ht(Ld,null),s=M(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||Nl());return()=>{const{tag:o,dot:i,name:r,size:a,badge:l,color:d}=e,c=Cg(r);return C(Bd,Pt({dot:i,tag:o,class:[s.value,c?"":`${s.value}-${r}`],style:{color:d,fontSize:rt(a)},content:l},e.badgeProps),{default:()=>{var u;return[(u=t.default)==null?void 0:u.call(t),c&&C("img",{class:Nl("image"),src:r},null)]}})}}});const pt=Ye(Ag),[kg,eo]=We("loading"),Tg=Array(12).fill(null).map((e,t)=>C("i",{class:eo("line",String(t+1))},null)),Rg=C("svg",{class:eo("circular"),viewBox:"25 25 50 50"},[C("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),Ig={size:$e,type:De("circular"),color:String,vertical:Boolean,textSize:$e,textColor:String};var Og=be({name:kg,props:Ig,setup(e,{slots:t}){const n=M(()=>Ge({color:e.color},Cd(e.size))),s=()=>{const i=e.type==="spinner"?Tg:Rg;return C("span",{class:eo("spinner",e.type),style:n.value},[t.icon?t.icon():i])},o=()=>{var i;if(t.default)return C("span",{class:eo("text"),style:{fontSize:rt(e.textSize),color:(i=e.textColor)!=null?i:e.color}},[t.default()])};return()=>{const{type:i,vertical:r}=e;return C("div",{class:eo([i,{vertical:r}]),"aria-live":"polite","aria-busy":!0},[s(),o()])}}});const Co=Ye(Og),[Pg,ns]=We("button"),$g=Ge({},Oi,{tag:De("button"),text:String,icon:String,type:De("default"),size:De("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:De("button"),loadingSize:$e,loadingText:String,loadingType:String,iconPosition:De("left")});var Bg=be({name:Pg,props:$g,emits:["click"],setup(e,{emit:t,slots:n}){const s=Ea(),o=()=>n.loading?n.loading():C(Co,{size:e.loadingSize,type:e.loadingType,class:ns("loading")},null),i=()=>{if(e.loading)return o();if(n.icon)return C("div",{class:ns("icon")},[n.icon()]);if(e.icon)return C(pt,{name:e.icon,class:ns("icon"),classPrefix:e.iconPrefix},null)},r=()=>{let d;if(e.loading?d=e.loadingText:d=n.default?n.default():e.text,d)return C("span",{class:ns("text")},[d])},a=()=>{const{color:d,plain:c}=e;if(d){const u={color:c?d:"white"};return c||(u.background=d),d.includes("gradient")?u.border=0:u.borderColor=d,u}},l=d=>{e.loading?yn(d):e.disabled||(t("click",d),s())};return()=>{const{tag:d,type:c,size:u,block:f,round:h,plain:g,square:m,loading:p,disabled:v,hairline:S,nativeType:T,iconPosition:x}=e,b=[ns([c,u,{plain:g,block:f,round:h,square:m,loading:p,disabled:v,hairline:S}]),{[ig]:S}];return C(d,{type:T,class:b,style:a(),disabled:v,onClick:l},{default:()=>[C("div",{class:ns("content")},[x==="left"&&i(),r(),x==="right"&&i()])]})}}});const bs=Ye(Bg),[Dg,Ng]=We("action-bar-button"),Lg=Ge({},Oi,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var Fg=be({name:Dg,props:Lg,setup(e,{slots:t}){const n=Ea(),{parent:s,index:o}=wo(Pd),i=M(()=>{if(s){const a=s.children[o.value-1];return!(a&&"isButton"in a)}}),r=M(()=>{if(s){const a=s.children[o.value+1];return!(a&&"isButton"in a)}});return Zt({isButton:!0}),()=>{const{type:a,icon:l,text:d,color:c,loading:u,disabled:f}=e;return C(bs,{class:Ng([a,{last:r.value,first:i.value}]),size:"large",type:a,icon:l,color:c,loading:u,disabled:f,onClick:n},{default:()=>[t.default?t.default():d]})}}});const Ll=Ye(Fg),Sa={show:Boolean,zIndex:$e,overlay:ze,duration:$e,teleport:[String,Object],lockScroll:ze,lazyRender:ze,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:qt,transitionAppear:Boolean,closeOnClickOverlay:ze},Mg=Object.keys(Sa);function Vg(e,t){return e>t?"horizontal":t>e?"vertical":""}function Ca(){const e=F(0),t=F(0),n=F(0),s=F(0),o=F(0),i=F(0),r=F(""),a=F(!0),l=()=>r.value==="vertical",d=()=>r.value==="horizontal",c=()=>{n.value=0,s.value=0,o.value=0,i.value=0,r.value="",a.value=!0};return{move:h=>{const g=h.touches[0];n.value=(g.clientX<0?0:g.clientX)-e.value,s.value=g.clientY-t.value,o.value=Math.abs(n.value),i.value=Math.abs(s.value);const m=10;(!r.value||o.value<m&&i.value<m)&&(r.value=Vg(o.value,i.value)),a.value&&(o.value>$l||i.value>$l)&&(a.value=!1)},start:h=>{c(),e.value=h.touches[0].clientX,t.value=h.touches[0].clientY},reset:c,startX:e,startY:t,deltaX:n,deltaY:s,offsetX:o,offsetY:i,direction:r,isVertical:l,isHorizontal:d,isTap:a}}let Bs=0;const Fl="van-overflow-hidden";function jg(e,t){const n=Ca(),s="01",o="10",i=c=>{n.move(c);const u=n.deltaY.value>0?o:s,f=bd(c.target,e.value),{scrollHeight:h,offsetHeight:g,scrollTop:m}=f;let p="11";m===0?p=g>=h?"00":"01":m+g>=h&&(p="10"),p!=="11"&&n.isVertical()&&!(parseInt(p,2)&parseInt(u,2))&&yn(c,!0)},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",i,{passive:!1}),Bs||document.body.classList.add(Fl),Bs++},a=()=>{Bs&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",i),Bs--,Bs||document.body.classList.remove(Fl))},l=()=>t()&&r(),d=()=>t()&&a();Ri(l),Zn(d),xs(d),xe(t,c=>{c?r():a()})}function Fd(e){const t=F(!1);return xe(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Ml=()=>{var e;const{scopeId:t}=((e=Wt())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[Ug,qg]=We("overlay"),Hg={show:Boolean,zIndex:$e,duration:$e,className:qt,lockScroll:ze,lazyRender:ze,customStyle:Object,teleport:[String,Object]};var zg=be({name:Ug,inheritAttrs:!1,props:Hg,setup(e,{attrs:t,slots:n}){const s=F(),o=Fd(()=>e.show||!e.lazyRender),i=a=>{e.lockScroll&&yn(a,!0)},r=o(()=>{var a;const l=Ge(xd(e.zIndex),e.customStyle);return it(e.duration)&&(l.animationDuration=`${e.duration}s`),$n(C("div",Pt({ref:s,style:l,class:[qg(),e.className]},t),[(a=n.default)==null?void 0:a.call(n)]),[[Bn,e.show]])});return es("touchmove",i,{target:s}),()=>{const a=C(Ti,{name:"van-fade",appear:!0},{default:r});return e.teleport?C(Pu,{to:e.teleport},{default:()=>[a]}):a}}});const Wg=Ye(zg),Kg=Ge({},Sa,{round:Boolean,position:De("center"),closeIcon:De("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:De("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[Gg,Vl]=We("popup");var Jg=be({name:Gg,inheritAttrs:!1,props:Kg,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:s}){let o,i;const r=F(),a=F(),l=Fd(()=>e.show||!e.lazyRender),d=M(()=>{const P={zIndex:r.value};if(it(e.duration)){const B=e.position==="center"?"animationDuration":"transitionDuration";P[B]=`${e.duration}s`}return P}),c=()=>{o||(o=!0,r.value=e.zIndex!==void 0?+e.zIndex:gg(),t("open"))},u=()=>{o&&ba(e.beforeClose,{done(){o=!1,t("close"),t("update:show",!1)}})},f=P=>{t("clickOverlay",P),e.closeOnClickOverlay&&u()},h=()=>{if(e.overlay){const P=Ge({show:e.show,class:e.overlayClass,zIndex:r.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return C(Wg,Pt(P,Ml(),{onClick:f}),{default:s["overlay-content"]})}},g=P=>{t("clickCloseIcon",P),u()},m=()=>{if(e.closeable)return C(pt,{role:"button",tabindex:0,name:e.closeIcon,class:[Vl("close-icon",e.closeIconPosition),Rd],classPrefix:e.iconPrefix,onClick:g},null)};let p;const v=()=>{p&&clearTimeout(p),p=setTimeout(()=>{t("opened")})},S=()=>t("closed"),T=P=>t("keydown",P),x=l(()=>{var P;const{destroyOnClose:B,round:L,position:R,safeAreaInsetTop:K,safeAreaInsetBottom:X,show:z}=e;if(!(!z&&B))return $n(C("div",Pt({ref:a,style:d.value,role:"dialog",tabindex:0,class:[Vl({round:L,[R]:R}),{"van-safe-area-top":K,"van-safe-area-bottom":X}],onKeydown:T},n,Ml()),[(P=s.default)==null?void 0:P.call(s),m()]),[[Bn,z]])}),b=()=>{const{position:P,transition:B,transitionAppear:L}=e,R=P==="center"?"van-fade":`van-popup-slide-${P}`;return C(Ti,{name:B||R,appear:L,onAfterEnter:v,onAfterLeave:S},{default:x})};return xe(()=>e.show,P=>{P&&!o&&(c(),n.tabindex===0&&Ze(()=>{var B;(B=a.value)==null||B.focus()})),!P&&o&&(o=!1,t("close"))}),Zt({popupRef:a}),jg(a,()=>e.show&&e.lockScroll),es("popstate",()=>{e.closeOnPopstate&&(u(),i=!1)}),st(()=>{e.show&&c()}),Cs(()=>{i&&(t("update:show",!0),i=!1)}),Zn(()=>{e.show&&e.teleport&&(u(),i=!0)}),cn(Id,()=>e.show),()=>e.teleport?C(Pu,{to:e.teleport},{default:()=>[h(),b()]}):C(Se,null,[h(),b()])}});const Ts=Ye(Jg);function Xg(e,t,n){let s,o=0;const i=e.scrollLeft,r=n===0?1:Math.round(n*1e3/16);let a=i;function l(){vd(s)}function d(){a+=(t-i)/r,e.scrollLeft=a,++o<r&&(s=ho(d))}return d(),l}function Yg(e,t,n,s){let o,i=_a(e);const r=i<t,a=n===0?1:Math.round(n*1e3/16),l=(t-i)/a;function d(){vd(o)}function c(){i+=l,(r&&i>t||!r&&i<t)&&(i=t),$r(e,i),r&&i<t||!r&&i>t?o=ho(c):s&&(o=ho(s))}return c(),d}let Qg=0;function xo(){const e=Wt(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return`${t}-${++Qg}`}function Md(){const e=F([]),t=[];return Vu(()=>{e.value=[]}),[e,s=>(t[s]||(t[s]=o=>{e.value[s]=o}),t[s])]}function Vd(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)};Zn(o),xs(o),Ri(s)}const[Zg,e_]=We("sticky"),t_={zIndex:$e,position:De("top"),container:Object,offsetTop:Jt(0),offsetBottom:Jt(0)};var n_=be({name:Zg,props:t_,emits:["scroll","change"],setup(e,{emit:t,slots:n}){const s=F(),o=wd(s),i=mt({fixed:!1,width:0,height:0,transform:0}),r=F(!1),a=M(()=>Ad(e.position==="top"?e.offsetTop:e.offsetBottom)),l=M(()=>{if(r.value)return;const{fixed:f,height:h,width:g}=i;if(f)return{width:`${g}px`,height:`${h}px`}}),d=M(()=>{if(!i.fixed||r.value)return;const f=Ge(xd(e.zIndex),{width:`${i.width}px`,height:`${i.height}px`,[e.position]:`${a.value}px`});return i.transform&&(f.transform=`translate3d(0, ${i.transform}px, 0)`),f}),c=f=>t("scroll",{scrollTop:f,isFixed:i.fixed}),u=()=>{if(!s.value||po(s))return;const{container:f,position:h}=e,g=an(s),m=_a(window);if(i.width=g.width,i.height=g.height,h==="top")if(f){const p=an(f),v=p.bottom-a.value-i.height;i.fixed=a.value>g.top&&p.bottom>0,i.transform=v<0?v:0}else i.fixed=a.value>g.top;else{const{clientHeight:p}=document.documentElement;if(f){const v=an(f),S=p-v.top-a.value-i.height;i.fixed=p-a.value<g.bottom&&p>v.top,i.transform=S<0?-S:0}else i.fixed=p-a.value<g.bottom}c(m)};return xe(()=>i.fixed,f=>t("change",f)),es("scroll",u,{target:o,passive:!0}),Vd(s,u),xe([Eo,Ii],()=>{!s.value||po(s)||!i.fixed||(r.value=!0,Ze(()=>{const f=an(s);i.width=f.width,i.height=f.height,r.value=!1}))}),()=>{var f;return C("div",{ref:s,style:l.value},[C("div",{class:e_({fixed:i.fixed&&!r.value}),style:d.value},[(f=n.default)==null?void 0:f.call(n)])])}}});const s_=Ye(n_),[jd,qo]=We("swipe"),o_={loop:ze,width:$e,height:$e,vertical:Boolean,autoplay:Jt(0),duration:Jt(500),touchable:ze,lazyRender:Boolean,initialSwipe:Jt(0),indicatorColor:String,showIndicators:ze,stopPropagation:ze},Ud=Symbol(jd);var i_=be({name:jd,props:o_,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:n}){const s=F(),o=F(),i=mt({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let r=!1;const a=Ca(),{children:l,linkChildren:d}=ga(Ud),c=M(()=>l.length),u=M(()=>i[e.vertical?"height":"width"]),f=M(()=>e.vertical?a.deltaY.value:a.deltaX.value),h=M(()=>i.rect?(e.vertical?i.rect.height:i.rect.width)-u.value*c.value:0),g=M(()=>u.value?Math.ceil(Math.abs(h.value)/u.value):c.value),m=M(()=>c.value*u.value),p=M(()=>(i.active+c.value)%c.value),v=M(()=>{const se=e.vertical?"vertical":"horizontal";return a.direction.value===se}),S=M(()=>{const se={transitionDuration:`${i.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+i.offset.toFixed(2)}px)`};if(u.value){const pe=e.vertical?"height":"width",fe=e.vertical?"width":"height";se[pe]=`${m.value}px`,se[fe]=e[fe]?`${e[fe]}px`:""}return se}),T=se=>{const{active:pe}=i;return se?e.loop?Zo(pe+se,-1,c.value):Zo(pe+se,0,g.value):pe},x=(se,pe=0)=>{let fe=se*u.value;e.loop||(fe=Math.min(fe,-h.value));let Ae=pe-fe;return e.loop||(Ae=Zo(Ae,h.value,0)),Ae},b=({pace:se=0,offset:pe=0,emitChange:fe})=>{if(c.value<=1)return;const{active:Ae}=i,H=T(se),ce=x(H,pe);if(e.loop){if(l[0]&&ce!==h.value){const E=ce<h.value;l[0].setOffset(E?m.value:0)}if(l[c.value-1]&&ce!==0){const E=ce>0;l[c.value-1].setOffset(E?-m.value:0)}}i.active=H,i.offset=ce,fe&&H!==Ae&&t("change",p.value)},P=()=>{i.swiping=!0,i.active<=-1?b({pace:c.value}):i.active>=c.value&&b({pace:-c.value})},B=()=>{P(),a.reset(),Ws(()=>{i.swiping=!1,b({pace:-1,emitChange:!0})})},L=()=>{P(),a.reset(),Ws(()=>{i.swiping=!1,b({pace:1,emitChange:!0})})};let R;const K=()=>clearTimeout(R),X=()=>{K(),+e.autoplay>0&&c.value>1&&(R=setTimeout(()=>{L(),X()},+e.autoplay))},z=(se=+e.initialSwipe)=>{if(!s.value)return;const pe=()=>{var fe,Ae;if(!po(s)){const H={width:s.value.offsetWidth,height:s.value.offsetHeight};i.rect=H,i.width=+((fe=e.width)!=null?fe:H.width),i.height=+((Ae=e.height)!=null?Ae:H.height)}c.value&&(se=Math.min(c.value-1,se),se===-1&&(se=c.value-1)),i.active=se,i.swiping=!0,i.offset=x(se),l.forEach(H=>{H.setOffset(0)}),X()};po(s)?Ze().then(pe):pe()},ee=()=>z(i.active);let G;const ie=se=>{!e.touchable||se.touches.length>1||(a.start(se),r=!1,G=Date.now(),K(),P())},de=se=>{e.touchable&&i.swiping&&(a.move(se),v.value&&(!e.loop&&(i.active===0&&f.value>0||i.active===c.value-1&&f.value<0)||(yn(se,e.stopPropagation),b({offset:f.value}),r||(t("dragStart",{index:p.value}),r=!0))))},ne=()=>{if(!e.touchable||!i.swiping)return;const se=Date.now()-G,pe=f.value/se;if((Math.abs(pe)>.25||Math.abs(f.value)>u.value/2)&&v.value){const Ae=e.vertical?a.offsetY.value:a.offsetX.value;let H=0;e.loop?H=Ae>0?f.value>0?-1:1:0:H=-Math[f.value>0?"ceil":"floor"](f.value/u.value),b({pace:H,emitChange:!0})}else f.value&&b({pace:0});r=!1,i.swiping=!1,t("dragEnd",{index:p.value}),X()},le=(se,pe={})=>{P(),a.reset(),Ws(()=>{let fe;e.loop&&se===c.value?fe=i.active===0?0:se:fe=se%c.value,pe.immediate?Ws(()=>{i.swiping=!1}):i.swiping=!1,b({pace:fe-i.active,emitChange:!0})})},ke=(se,pe)=>{const fe=pe===p.value,Ae=fe?{backgroundColor:e.indicatorColor}:void 0;return C("i",{style:Ae,class:qo("indicator",{active:fe})},null)},Te=()=>{if(n.indicator)return n.indicator({active:p.value,total:c.value});if(e.showIndicators&&c.value>1)return C("div",{class:qo("indicators",{vertical:e.vertical})},[Array(c.value).fill("").map(ke)])};return Zt({prev:B,next:L,state:i,resize:ee,swipeTo:le}),d({size:u,props:e,count:c,activeIndicator:p}),xe(()=>e.initialSwipe,se=>z(+se)),xe(c,()=>z(i.active)),xe(()=>e.autoplay,X),xe([Eo,Ii,()=>e.width,()=>e.height],ee),xe(Mm(),se=>{se==="visible"?X():K()}),st(z),Cs(()=>z(i.active)),wa(()=>z(i.active)),Zn(K),xs(K),es("touchmove",de,{target:o}),()=>{var se;return C("div",{ref:s,class:qo()},[C("div",{ref:o,style:S.value,class:qo("track",{vertical:e.vertical}),onTouchstartPassive:ie,onTouchend:ne,onTouchcancel:ne},[(se=n.default)==null?void 0:se.call(n)]),Te()])}}});const r_=Ye(i_),[a_,jl]=We("tabs");var l_=be({name:a_,props:{count:Qo(Number),inited:Boolean,animated:Boolean,duration:Qo($e),swipeable:Boolean,lazyRender:Boolean,currentIndex:Qo(Number)},emits:["change"],setup(e,{emit:t,slots:n}){const s=F(),o=a=>t("change",a),i=()=>{var a;const l=(a=n.default)==null?void 0:a.call(n);return e.animated||e.swipeable?C(r_,{ref:s,loop:!1,class:jl("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:o},{default:()=>[l]}):l},r=a=>{const l=s.value;l&&l.state.active!==a&&l.swipeTo(a,{immediate:!e.inited})};return xe(()=>e.currentIndex,r),st(()=>{r(e.currentIndex)}),Zt({swipeRef:s}),()=>C("div",{class:jl("content",{animated:e.animated||e.swipeable})},[i()])}});const[qd,Ho]=We("tabs"),c_={type:De("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:Jt(0),duration:Jt(.3),animated:Boolean,ellipsis:ze,swipeable:Boolean,scrollspy:Boolean,offsetTop:Jt(0),background:String,lazyRender:ze,showHeader:ze,lineWidth:$e,lineHeight:$e,beforeChange:Function,swipeThreshold:Jt(5),titleActiveColor:String,titleInactiveColor:String},Hd=Symbol(qd);var u_=be({name:qd,props:c_,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:t,slots:n}){let s,o,i,r,a;const l=F(),d=F(),c=F(),u=F(),f=xo(),h=wd(l),[g,m]=Md(),{children:p,linkChildren:v}=ga(Hd),S=mt({inited:!1,position:"",lineStyle:{},currentIndex:-1}),T=M(()=>p.length>+e.swipeThreshold||!e.ellipsis||e.shrink),x=M(()=>({borderColor:e.color,background:e.background})),b=(H,ce)=>{var E;return(E=H.name)!=null?E:ce},P=M(()=>{const H=p[S.currentIndex];if(H)return b(H,S.currentIndex)}),B=M(()=>Ad(e.offsetTop)),L=M(()=>e.sticky?B.value+s:0),R=H=>{const ce=d.value,E=g.value;if(!T.value||!ce||!E||!E[S.currentIndex])return;const N=E[S.currentIndex].$el,U=N.offsetLeft-(ce.offsetWidth-N.offsetWidth)/2;r&&r(),r=Xg(ce,U,H?0:+e.duration)},K=()=>{const H=S.inited;Ze(()=>{const ce=g.value;if(!ce||!ce[S.currentIndex]||e.type!=="line"||po(l.value))return;const E=ce[S.currentIndex].$el,{lineWidth:N,lineHeight:U}=e,D=E.offsetLeft+E.offsetWidth/2,q={width:rt(N),backgroundColor:e.color,transform:`translateX(${D}px) translateX(-50%)`};if(H&&(q.transitionDuration=`${e.duration}s`),it(U)){const y=rt(U);q.height=y,q.borderRadius=y}S.lineStyle=q})},X=H=>{const ce=H<S.currentIndex?-1:1;for(;H>=0&&H<p.length;){if(!p[H].disabled)return H;H+=ce}},z=(H,ce)=>{const E=X(H);if(!it(E))return;const N=p[E],U=b(N,E),D=S.currentIndex!==null;S.currentIndex!==E&&(S.currentIndex=E,ce||R(),K()),U!==e.active&&(t("update:active",U),D&&t("change",U,N.title)),i&&!e.scrollspy&&ya(Math.ceil(Rl(l.value)-B.value))},ee=(H,ce)=>{const E=p.findIndex((N,U)=>b(N,U)===H);z(E===-1?0:E,ce)},G=(H=!1)=>{if(e.scrollspy){const ce=p[S.currentIndex].$el;if(ce&&h.value){const E=Rl(ce,h.value)-L.value;o=!0,a&&a(),a=Yg(h.value,E,H?0:+e.duration,()=>{o=!1})}}},ie=(H,ce,E)=>{const{title:N,disabled:U}=p[ce],D=b(p[ce],ce);U||(ba(e.beforeChange,{args:[D],done:()=>{z(ce),G()}}),$d(H)),t("clickTab",{name:D,title:N,event:E,disabled:U})},de=H=>{i=H.isFixed,t("scroll",H)},ne=H=>{Ze(()=>{ee(H),G(!0)})},le=()=>{for(let H=0;H<p.length;H++){const{top:ce}=an(p[H].$el);if(ce>L.value)return H===0?0:H-1}return p.length-1},ke=()=>{if(e.scrollspy&&!o){const H=le();z(H)}},Te=()=>{if(e.type==="line"&&p.length)return C("div",{class:Ho("line"),style:S.lineStyle},null)},se=()=>{var H,ce,E;const{type:N,border:U,sticky:D}=e,q=[C("div",{ref:D?void 0:c,class:[Ho("wrap"),{[rg]:N==="line"&&U}]},[C("div",{ref:d,role:"tablist",class:Ho("nav",[N,{shrink:e.shrink,complete:T.value}]),style:x.value,"aria-orientation":"horizontal"},[(H=n["nav-left"])==null?void 0:H.call(n),p.map(y=>y.renderTitle(ie)),Te(),(ce=n["nav-right"])==null?void 0:ce.call(n)])]),(E=n["nav-bottom"])==null?void 0:E.call(n)];return D?C("div",{ref:c},[q]):q},pe=()=>{K(),Ze(()=>{var H,ce;R(!0),(ce=(H=u.value)==null?void 0:H.swipeRef.value)==null||ce.resize()})};xe(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],K),xe(Eo,pe),xe(()=>e.active,H=>{H!==P.value&&ee(H)}),xe(()=>p.length,()=>{S.inited&&(ee(e.active),K(),Ze(()=>{R(!0)}))});const fe=()=>{ee(e.active,!0),Ze(()=>{S.inited=!0,c.value&&(s=an(c.value).height),R(!0)})},Ae=(H,ce)=>t("rendered",H,ce);return Zt({resize:pe,scrollTo:ne}),Cs(K),wa(K),Ri(fe),Vd(l,K),es("scroll",ke,{target:h,passive:!0}),v({id:f,props:e,setLine:K,scrollable:T,onRendered:Ae,currentName:P,setTitleRefs:m,scrollIntoView:R}),()=>C("div",{ref:l,class:Ho([e.type])},[e.showHeader?e.sticky?C(s_,{container:l.value,offsetTop:B.value,onScroll:de},{default:()=>[se()]}):se():null,C(l_,{ref:u,count:p.length,inited:S.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:S.currentIndex,onChange:z},{default:()=>{var H;return[(H=n.default)==null?void 0:H.call(n)]}})])}});const d_=Symbol(),zd=Symbol(),f_=()=>ht(zd,null),h_=e=>{const t=f_();cn(d_,e),cn(zd,M(()=>(t==null||t.value)&&e.value))},[p_,Ul]=We("tab"),m_=be({name:p_,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:$e,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:ze},setup(e,{slots:t}){const n=M(()=>{const o={},{type:i,color:r,disabled:a,isActive:l,activeColor:d,inactiveColor:c}=e;r&&i==="card"&&(o.borderColor=r,a||(l?o.backgroundColor=r:o.color=r));const f=l?d:c;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||it(e.badge)&&e.badge!==""?C(Bd,{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()])}}),[g_,__]=We("swipe-item");var v_=be({name:g_,setup(e,{slots:t}){let n;const s=mt({offset:0,inited:!1,mounted:!1}),{parent:o,index:i}=wo(Ud);if(!o)return;const r=M(()=>{const d={},{vertical:c}=o.props;return o.size.value&&(d[c?"height":"width"]=`${o.size.value}px`),s.offset&&(d.transform=`translate${c?"Y":"X"}(${s.offset}px)`),d}),a=M(()=>{const{loop:d,lazyRender:c}=o.props;if(!c||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,g=u===f&&d?0:u+1;return n=i.value===u||i.value===h||i.value===g,n}),l=d=>{s.offset=d};return st(()=>{Ze(()=>{s.mounted=!0})}),Zt({setOffset:l}),()=>{var d;return C("div",{class:__(),style:r.value},[a.value?(d=t.default)==null?void 0:d.call(t):null])}}});const y_=Ye(v_),[b_,tr]=We("tab"),w_=Ge({},Oi,{dot:Boolean,name:$e,badge:$e,title:String,disabled:Boolean,titleClass:qt,titleStyle:[String,Object],showZeroBadge:ze});var E_=be({name:b_,props:w_,setup(e,{slots:t}){const n=xo(),s=F(!1),o=Wt(),{parent:i,index:r}=wo(Hd);if(!i)return;const a=()=>{var g;return(g=e.name)!=null?g:r.value},l=()=>{s.value=!0,i.props.lazyRender&&Ze(()=>{i.onRendered(a(),e.title)})},d=M(()=>{const g=a()===i.currentName.value;return g&&!s.value&&l(),g}),c=F(""),u=F("");Tu(()=>{const{titleClass:g,titleStyle:m}=e;c.value=g?ve(g):"",u.value=m&&typeof m!="string"?ch(Ut(m)):m});const f=g=>C(m_,Pt({key:n,id:`${i.id}-${r.value}`,ref:i.setTitleRefs(r.value),style:u.value,class:c.value,isActive:d.value,controls:n,scrollable:i.scrollable.value,activeColor:i.props.titleActiveColor,inactiveColor:i.props.titleInactiveColor,onClick:m=>g(o.proxy,r.value,m)},Yn(i.props,["type","color","shrink"]),Yn(e,["dot","badge","title","disabled","showZeroBadge"])),{title:t.title}),h=F(!d.value);return xe(d,g=>{g?h.value=!1:Ws(()=>{h.value=!0})}),xe(()=>e.title,()=>{i.setLine(),i.scrollIntoView()}),h_(d),Zt({id:n,renderTitle:f}),()=>{var g;const m=`${i.id}-${r.value}`,{animated:p,swipeable:v,scrollspy:S,lazyRender:T}=i.props;if(!t.default&&!p)return;const x=S||d.value;if(p||v)return C(y_,{id:n,role:"tabpanel",class:tr("panel-wrapper",{inactive:h.value}),tabindex:d.value?0:-1,"aria-hidden":!d.value,"aria-labelledby":m,"data-allow-mismatch":"attribute"},{default:()=>{var B;return[C("div",{class:tr("panel")},[(B=t.default)==null?void 0:B.call(t)])]}});const P=s.value||S||!T?(g=t.default)==null?void 0:g.call(t):null;return $n(C("div",{id:n,role:"tabpanel",class:tr("panel"),tabindex:x?0:-1,"aria-labelledby":m,"data-allow-mismatch":"attribute"},[P]),[[Bn,x]])}}});const S_=Ye(E_),C_=Ye(u_),[x_,ss]=We("cell"),Wd={tag:De("div"),icon:String,size:String,title:$e,value:$e,label:$e,center:Boolean,isLink:Boolean,border:ze,iconPrefix:String,valueClass:qt,labelClass:qt,titleClass:qt,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},A_=Ge({},Wd,Oi);var k_=be({name:x_,props:A_,setup(e,{slots:t}){const n=Ea(),s=()=>{if(t.label||it(e.label))return C("div",{class:[ss("label"),e.labelClass]},[t.label?t.label():e.label])},o=()=>{var l;if(t.title||it(e.title)){const d=(l=t.title)==null?void 0:l.call(t);return Array.isArray(d)&&d.length===0?void 0:C("div",{class:[ss("title"),e.titleClass],style:e.titleStyle},[d||C("span",null,[e.title]),s()])}},i=()=>{const l=t.value||t.default;if(l||it(e.value))return C("div",{class:[ss("value"),e.valueClass]},[l?l():C("span",null,[e.value])])},r=()=>{if(t.icon)return t.icon();if(e.icon)return C(pt,{name:e.icon,class:ss("left-icon"),classPrefix:e.iconPrefix},null)},a=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const l=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return C(pt,{name:l,class:ss("right-icon")},null)}};return()=>{var l;const{tag:d,size:c,center:u,border:f,isLink:h,required:g}=e,m=(l=e.clickable)!=null?l:h,p={center:u,required:!!g,clickable:m,borderless:!f};return c&&(p[c]=!!c),C(d,{class:ss(p),role:m?"button":void 0,tabindex:m?0:void 0,onClick:n},{default:()=>{var v;return[r(),o(),i(),a(),(v=t.extra)==null?void 0:v.call(t)]}})}}});const T_=Ye(k_);function Kd(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function R_(e,t){if(Kd(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function I_(e,t){return new Promise(n=>{const s=t.validator(e,t);if(md(s)){s.then(n);return}n(s)})}function ql(e,t){const{message:n}=t;return fo(n)?n(e,t):n||""}function O_({target:e}){e.composing=!0}function Hl({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function P_(e,t){const n=va();e.style.height="auto";let s=e.scrollHeight;if(bo(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`,ya(n))}function $_(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function Ds(e){return[...e].length}function nr(e,t){return[...e].slice(0,t).join("")}const[B_,Mt]=We("field"),xa={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:$e,max:Number,min:Number,formatter:Function,clearIcon:De("clear"),modelValue:Jt(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:De("focus"),formatTrigger:De("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},D_=Ge({},Wd,xa,{rows:$e,type:De("text"),rules:Array,autosize:[Boolean,Object],labelWidth:$e,labelClass:qt,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var N_=be({name:B_,props:D_,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const s=xo(),o=mt({status:"unvalidated",focused:!1,validateMessage:""}),i=F(),r=F(),a=F(),{parent:l}=wo(ag),d=()=>{var E;return String((E=e.modelValue)!=null?E:"")},c=E=>{if(it(e[E]))return e[E];if(l&&it(l.props[E]))return l.props[E]},u=M(()=>{const E=c("readonly");if(e.clearable&&!E){const N=d()!=="",U=e.clearTrigger==="always"||e.clearTrigger==="focus"&&o.focused;return N&&U}return!1}),f=M(()=>a.value&&n.input?a.value():e.modelValue),h=M(()=>{var E;const N=c("required");return N==="auto"?(E=e.rules)==null?void 0:E.some(U=>U.required):N}),g=E=>E.reduce((N,U)=>N.then(()=>{if(o.status==="failed")return;let{value:D}=f;if(U.formatter&&(D=U.formatter(D,U)),!R_(D,U)){o.status="failed",o.validateMessage=ql(D,U);return}if(U.validator)return Kd(D)&&U.validateEmpty===!1?void 0:I_(D,U).then(q=>{q&&typeof q=="string"?(o.status="failed",o.validateMessage=q):q===!1&&(o.status="failed",o.validateMessage=ql(D,U))})}),Promise.resolve()),m=()=>{o.status="unvalidated",o.validateMessage=""},p=()=>t("endValidate",{status:o.status,message:o.validateMessage}),v=(E=e.rules)=>new Promise(N=>{m(),E?(t("startValidate"),g(E).then(()=>{o.status==="failed"?(N({name:e.name,message:o.validateMessage}),p()):(o.status="passed",N(),p())})):N()}),S=E=>{if(l&&e.rules){const{validateTrigger:N}=l.props,U=Al(N).includes(E),D=e.rules.filter(q=>q.trigger?Al(q.trigger).includes(E):U);D.length&&v(D)}},T=E=>{var N;const{maxlength:U}=e;if(it(U)&&Ds(E)>+U){const D=d();if(D&&Ds(D)===+U)return D;let q=(N=i.value)==null?void 0:N.selectionEnd;if(o.focused&&q){const y=[...E],w=y.length-+U;return q=Ds(E.slice(0,q)),y.splice(q-w,w),y.join("")}return nr(E,+U)}return E},x=(E,N="onChange")=>{var U,D;const q=E;E=T(E);const y=q.length-E.length;if(e.type==="number"||e.type==="digit"){const A=e.type==="number";if(E=Jm(E,A,A),N==="onBlur"&&E!==""&&(e.min!==void 0||e.max!==void 0)){const V=Zo(+E,(U=e.min)!=null?U:-1/0,(D=e.max)!=null?D:1/0);+E!==V&&(E=V.toString())}}let w=0;if(e.formatter&&N===e.formatTrigger){const{formatter:A,maxlength:V}=e;if(E=A(E),it(V)&&Ds(E)>+V&&(E=nr(E,+V)),i.value&&o.focused){const{selectionEnd:J}=i.value,W=nr(q,J);w=A(W).length-W.length}}if(i.value&&i.value.value!==E)if(o.focused){let{selectionStart:A,selectionEnd:V}=i.value;if(i.value.value=E,it(A)&&it(V)){const J=E.length;y?(A-=y,V-=y):w&&(A+=w,V+=w),i.value.setSelectionRange(Math.min(A,J),Math.min(V,J))}}else i.value.value=E;E!==e.modelValue&&t("update:modelValue",E)},b=E=>{E.target.composing||x(E.target.value)},P=()=>{var E;return(E=i.value)==null?void 0:E.blur()},B=()=>{var E;return(E=i.value)==null?void 0:E.focus()},L=()=>{const E=i.value;e.type==="textarea"&&e.autosize&&E&&P_(E,e.autosize)},R=E=>{o.focused=!0,t("focus",E),Ze(L),c("readonly")&&P()},K=E=>{o.focused=!1,x(d(),"onBlur"),t("blur",E),!c("readonly")&&(S("onBlur"),Ze(L),jm())},X=E=>t("clickInput",E),z=E=>t("clickLeftIcon",E),ee=E=>t("clickRightIcon",E),G=E=>{yn(E),t("update:modelValue",""),t("clear",E)},ie=M(()=>{if(typeof e.error=="boolean")return e.error;if(l&&l.props.showError&&o.status==="failed")return!0}),de=M(()=>{const E=c("labelWidth"),N=c("labelAlign");if(E&&N!=="top")return{width:rt(E)}}),ne=E=>{E.keyCode===13&&(!(l&&l.props.submitOnEnter)&&e.type!=="textarea"&&yn(E),e.type==="search"&&P()),t("keypress",E)},le=()=>e.id||`${s}-input`,ke=()=>o.status,Te=()=>{const E=Mt("control",[c("inputAlign"),{error:ie.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return C("div",{class:E,onClick:X},[n.input()]);const N={id:le(),ref:i,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:E,disabled:c("disabled"),readonly:c("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${s}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:K,onFocus:R,onInput:b,onClick:X,onChange:Hl,onKeypress:ne,onCompositionend:Hl,onCompositionstart:O_};return e.type==="textarea"?C("textarea",Pt(N,{inputmode:e.inputmode}),null):C("input",Pt($_(e.type,e.inputmode),N),null)},se=()=>{const E=n["left-icon"];if(e.leftIcon||E)return C("div",{class:Mt("left-icon"),onClick:z},[E?E():C(pt,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},pe=()=>{const E=n["right-icon"];if(e.rightIcon||E)return C("div",{class:Mt("right-icon"),onClick:ee},[E?E():C(pt,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},fe=()=>{if(e.showWordLimit&&e.maxlength){const E=Ds(d());return C("div",{class:Mt("word-limit")},[C("span",{class:Mt("word-num")},[E]),Ue("/"),e.maxlength])}},Ae=()=>{if(l&&l.props.showErrorMessage===!1)return;const E=e.errorMessage||o.validateMessage;if(E){const N=n["error-message"],U=c("errorMessageAlign");return C("div",{class:Mt("error-message",U)},[N?N({message:E}):E])}},H=()=>{const E=c("labelWidth"),N=c("labelAlign"),U=c("colon")?":":"";if(n.label)return[n.label(),U];if(e.label)return C("label",{id:`${s}-label`,for:n.input?void 0:le(),"data-allow-mismatch":"attribute",onClick:D=>{yn(D),B()},style:N==="top"&&E?{width:rt(E)}:void 0},[e.label+U])},ce=()=>[C("div",{class:Mt("body")},[Te(),u.value&&C(pt,{ref:r,name:e.clearIcon,class:Mt("clear")},null),pe(),n.button&&C("div",{class:Mt("button")},[n.button()])]),fe(),Ae()];return Zt({blur:P,focus:B,validate:v,formValue:f,resetValidation:m,getValidationStatus:ke}),cn(Ed,{customValue:a,resetValidation:m,validateWithTrigger:S}),xe(()=>e.modelValue,()=>{x(d()),m(),S("onChange"),Ze(L)}),st(()=>{x(d(),e.formatTrigger),Ze(L)}),es("touchstart",G,{target:M(()=>{var E;return(E=r.value)==null?void 0:E.$el})}),()=>{const E=c("disabled"),N=c("labelAlign"),U=se(),D=()=>{const q=H();return N==="top"?[U,q].filter(Boolean):q||[]};return C(T_,{size:e.size,class:Mt({error:ie.value,disabled:E,[`label-${N}`]:N}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:de.value,valueClass:Mt("value"),titleClass:[Mt("label",[N,{required:h.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:U&&N!=="top"?()=>U:null,title:D,value:ce,extra:n.extra})}}});const Aa=Ye(N_);let Ns=0;function L_(e){e?(Ns||document.body.classList.add("van-toast--unclickable"),Ns++):Ns&&(Ns--,Ns||document.body.classList.remove("van-toast--unclickable"))}const[F_,os]=We("toast"),M_=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],V_={icon:String,show:Boolean,type:De("text"),overlay:Boolean,message:$e,iconSize:$e,duration:_d(2e3),position:De("middle"),teleport:[String,Object],wordBreak:String,className:qt,iconPrefix:String,transition:De("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:qt,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:$e};var Gd=be({name:F_,props:V_,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,L_(o))},r=u=>t("update:show",u),a=()=>{e.closeOnClick&&r(!1)},l=()=>clearTimeout(s),d=()=>{const{icon:u,type:f,iconSize:h,iconPrefix:g,loadingType:m}=e;if(u||f==="success"||f==="fail")return C(pt,{name:u||f,size:h,class:os("icon"),classPrefix:g},null);if(f==="loading")return C(Co,{class:os("loading"),size:h,type:m},null)},c=()=>{const{type:u,message:f}=e;if(n.message)return C("div",{class:os("text")},[n.message()]);if(it(f)&&f!=="")return u==="html"?C("div",{key:0,class:os("text"),innerHTML:String(f)},null):C("div",{class:os("text")},[f])};return xe(()=>[e.show,e.forbidClick],i),xe(()=>[e.show,e.type,e.message,e.duration],()=>{l(),e.show&&e.duration>0&&(s=setTimeout(()=>{r(!1)},e.duration))}),st(i),Ln(i),()=>C(Ts,Pt({class:[os([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:a,onClosed:l,"onUpdate:show":r},Yn(e,M_)),{default:()=>[d(),c()]})}});function Jd(){const e=mt({show:!1}),t=o=>{e.show=o},n=o=>{Ge(e,o,{transitionAppear:!0}),t(!0)},s=()=>t(!1);return Zt({open:n,close:s,toggle:t}),{open:n,close:s,state:e,toggle:t}}function Xd(e){const t=pd(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const j_={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 us=[],U_=!1,zl=Ge({},j_);const q_=new Map;function Yd(e){return bo(e)?e:{message:e}}function H_(){const{instance:e}=Xd({setup(){const t=F(""),{open:n,state:s,close:o,toggle:i}=Jd(),r=()=>{},a=()=>C(Gd,Pt(s,{onClosed:r,"onUpdate:show":i}),null);return xe(t,l=>{s.message=l}),Wt().render=a,{open:n,close:o,message:t}}});return e}function z_(){if(!us.length||U_){const e=H_();us.push(e)}return us[us.length-1]}function Ee(e={}){if(!As)return{};const t=z_(),n=Yd(e);return t.open(Ge({},zl,q_.get(n.type||zl.type),n)),t}const ka=e=>t=>Ee(Ge({type:e},Yd(t))),W_=ka("loading"),bk=ka("success"),K_=ka("fail"),Wl=e=>{us.length&&us[0].close()};Ye(Gd);const[G_]=We("checkbox-group"),J_=Symbol(G_),[X_,Kl]=We("tag"),Y_={size:String,mark:Boolean,show:ze,type:De("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var Q_=be({name:X_,props:Y_,emits:["close"],setup(e,{slots:t,emit:n}){const s=r=>{r.stopPropagation(),n("close",r)},o=()=>e.plain?{color:e.textColor||e.color,borderColor:e.color}:{color:e.textColor,background:e.color},i=()=>{var r;const{type:a,mark:l,plain:d,round:c,size:u,closeable:f}=e,h={mark:l,plain:d,round:c};u&&(h[u]=u);const g=f&&C(pt,{name:"cross",class:[Kl("close"),Rd],onClick:s},null);return C("span",{style:o(),class:Kl([h,a])},[(r=t.default)==null?void 0:r.call(t),g])};return()=>C(Ti,{name:e.closeable?"van-fade":void 0},{default:()=>[e.show?i():null]})}});const Z_=Ye(Q_),Qd={name:qt,disabled:Boolean,iconSize:$e,modelValue:qt,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var ev=be({props:Ge({},Qd,{bem:Qo(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:ze,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,{emit:t,slots:n}){const s=F(),o=f=>{if(e.parent&&e.bindGroup)return e.parent.props[f]},i=M(()=>{if(e.parent&&e.bindGroup){const f=o("disabled")||e.disabled;if(e.role==="checkbox"){const h=o("modelValue").length,g=o("max"),m=g&&h>=+g;return f||m&&!e.checked}return f}return e.disabled}),r=M(()=>o("direction")),a=M(()=>{const f=e.checkedColor||o("checkedColor");if(f&&(e.checked||e.indeterminate)&&!i.value)return{borderColor:f,backgroundColor:f}}),l=M(()=>e.shape||o("shape")||"round"),d=f=>{const{target:h}=f,g=s.value,m=g===h||(g==null?void 0:g.contains(h));!i.value&&(m||!e.labelDisabled)&&t("toggle"),t("click",f)},c=()=>{var f,h;const{bem:g,checked:m,indeterminate:p}=e,v=e.iconSize||o("iconSize");return C("div",{ref:s,class:g("icon",[l.value,{disabled:i.value,checked:m,indeterminate:p}]),style:l.value!=="dot"?{fontSize:rt(v)}:{width:rt(v),height:rt(v),borderColor:(f=a.value)==null?void 0:f.borderColor}},[n.icon?n.icon({checked:m,disabled:i.value}):l.value!=="dot"?C(pt,{name:p?"minus":"success",style:a.value},null):C("div",{class:g("icon--dot__icon"),style:{backgroundColor:(h=a.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(),c()]:[c(),u()];return C("div",{role:e.role,class:e.bem([{disabled:i.value,"label-disabled":e.labelDisabled},r.value]),tabindex:i.value?void 0:0,"aria-checked":e.checked,onClick:d},[f])}}});const[tv,nv]=We("checkbox"),sv=Ge({},Qd,{shape:String,bindGroup:ze,indeterminate:{type:Boolean,default:null}});var ov=be({name:tv,props:sv,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:s}=wo(J_),o=a=>{const{name:l}=e,{max:d,modelValue:c}=s.props,u=c.slice();if(a)!(d&&u.length>=+d)&&!u.includes(l)&&(u.push(l),e.bindGroup&&s.updateValue(u));else{const f=u.indexOf(l);f!==-1&&(u.splice(f,1),e.bindGroup&&s.updateValue(u))}},i=M(()=>s&&e.bindGroup?s.props.modelValue.indexOf(e.name)!==-1:!!e.modelValue),r=(a=!i.value)=>{s&&e.bindGroup?o(a):t("update:modelValue",a),e.indeterminate!==null&&t("change",a)};return xe(()=>e.modelValue,a=>{e.indeterminate===null&&t("change",a)}),Zt({toggle:r,props:e,checked:i}),Sd(()=>e.modelValue),()=>C(ev,Pt({bem:nv,role:"checkbox",parent:s,checked:i.value,onToggle:r},e),Yn(n,["default","icon"]))}});const iv=Ye(ov),rv=Ye(Eg),[av,zo]=We("empty"),lv={image:De("default"),imageSize:[Number,String,Array],description:String};var cv=be({name:av,props:lv,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}`,r=v=>`url(#${i(v)})`,a=(v,S,T)=>C("stop",{"stop-color":v,offset:`${S}%`,"stop-opacity":T},null),l=(v,S)=>[a(v,0),a(S,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"},[a("#EBEDF0",0),a("#F2F3F5",100,.3)])]),C("ellipse",{fill:r(v),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8","data-allow-mismatch":"attribute"},null)],c=()=>[C("defs",null,[C("linearGradient",{id:i("a"),x1:"64%",y1:"100%",x2:"64%","data-allow-mismatch":"attribute"},[a("#FFF",0,.5),a("#F2F3F5",100)])]),C("g",{opacity:".8","data-allow-mismatch":"children"},[C("path",{d:"M36 131V53H16v20H2v58h34z",fill:r("a")},null),C("path",{d:"M123 15h22v14h9v77h-31V15z",fill:r("a")},null)])],u=()=>[C("defs",null,[C("linearGradient",{id:i("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%","data-allow-mismatch":"attribute"},[a("#F2F3F5",0,.3),a("#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:r("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:r("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%"},[a("#FFF",0,.5),a("#F2F3F5",100)]),C("linearGradient",{id:i(2),x1:"50%",x2:"50%",y2:"84%"},[a("#EBEDF0",0),a("#DCDEE0",100,0)]),C("linearGradient",{id:i(3),x1:"100%",x2:"100%",y2:"100%"},[l("#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)"},[a("#EBEDF0",0),a("#FFF",100,0)])]),C("g",{fill:"none"},[c(),C("path",{fill:r(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:r(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:r(3)},null),C("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:r(3)},null),C("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:r(3)},null),C("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:r(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)},[l("#F2F3F5","#DCDEE0")]),C("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:i(6)},[l("#EAEDF1","#DCDEE0")]),C("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:i(7)},[l("#EAEDF1","#DCDEE0")])]),c(),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:r(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:r(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:r(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)])]),g=()=>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"},[l("#EAEDF1","#DCDEE0")])]),c(),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:r(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)},[l("#EEE","#D8D8D8")]),C("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:i(10)},[l("#F2F3F5","#DCDEE0")]),C("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(11)},[l("#F2F3F5","#DCDEE0")]),C("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(12)},[l("#FFF","#F7F8FA")])]),c(),u(),d("d"),C("g",{transform:"rotate(-45 113 -4)",fill:"none","data-allow-mismatch":"children"},[C("rect",{fill:r(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),C("rect",{fill:r(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),C("circle",{stroke:r(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),C("circle",{fill:r(12),cx:"27",cy:"27",r:"16"},null),C("path",{d:"M37 7c-8 0-15 5-16 12",stroke:r(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),p=()=>{var v;if(t.image)return t.image();const S={error:g,search:m,network:f,default:h};return((v=S[e.image])==null?void 0:v.call(S))||C("img",{src:e.image},null)};return()=>C("div",{class:zo()},[C("div",{class:zo("image"),style:Cd(e.imageSize)},[p()]),n(),s()])}});const Zd=Ye(cv),[uv,Kt,Wo]=We("dialog"),dv=Ge({},Sa,{title:String,theme:String,width:$e,message:[String,Function],callback:Function,allowHtml:Boolean,className:qt,transition:De("van-dialog-bounce"),messageAlign:String,closeOnPopstate:ze,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:ze,closeOnClickOverlay:Boolean,keyboardEnabled:ze,destroyOnClose:Boolean}),fv=[...Mg,"transition","closeOnPopstate","destroyOnClose"];var ef=be({name:uv,props:dv,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:n}){const s=F(),o=mt({confirm:!1,cancel:!1}),i=v=>t("update:show",v),r=v=>{var S;i(!1),(S=e.callback)==null||S.call(e,v)},a=v=>()=>{e.show&&(t(v),e.beforeClose?(o[v]=!0,ba(e.beforeClose,{args:[v],done(){r(v),o[v]=!1},canceled(){o[v]=!1}})):r(v))},l=a("cancel"),d=a("confirm"),c=hd(v=>{var S,T;if(!e.keyboardEnabled||v.target!==((T=(S=s.value)==null?void 0:S.popupRef)==null?void 0:T.value))return;({Enter:e.showConfirmButton?d:Pr,Escape:e.showCancelButton?l:Pr})[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:S,allowHtml:T,messageAlign:x}=e,b=Kt("message",{"has-title":v,[x]:x}),P=fo(S)?S():S;return T&&typeof P=="string"?C("div",{class:b,innerHTML:P},null):C("div",{class:b},[P])},h=()=>{if(n.default)return C("div",{class:Kt("content")},[n.default()]);const{title:v,message:S,allowHtml:T}=e;if(S){const x=!!(v||n.title);return C("div",{key:T?1:0,class:Kt("content",{isolated:!x})},[f(x)])}},g=()=>C("div",{class:[sg,Kt("footer")]},[e.showCancelButton&&C(bs,{size:"large",text:e.cancelButtonText||Wo("cancel"),class:Kt("cancel"),style:{color:e.cancelButtonColor},loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:l},null),e.showConfirmButton&&C(bs,{size:"large",text:e.confirmButtonText||Wo("confirm"),class:[Kt("confirm"),{[og]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:d},null)]),m=()=>C(fg,{class:Kt("footer")},{default:()=>[e.showCancelButton&&C(Ll,{type:"warning",text:e.cancelButtonText||Wo("cancel"),class:Kt("cancel"),color:e.cancelButtonColor,loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:l},null),e.showConfirmButton&&C(Ll,{type:"danger",text:e.confirmButtonText||Wo("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():g();return()=>{const{width:v,title:S,theme:T,message:x,className:b}=e;return C(Ts,Pt({ref:s,role:"dialog",class:[Kt([T]),b],style:{width:rt(v)},tabindex:0,"aria-labelledby":S||x,onKeydown:c,"onUpdate:show":i},Yn(e,fv)),{default:()=>[u(),h(),p()]})}}});let Dr;const hv={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 pv=Ge({},hv);function mv(){({instance:Dr}=Xd({setup(){const{state:t,toggle:n}=Jd();return()=>C(ef,Pt(t,{"onUpdate:show":n}),null)}}))}function gv(e){return As?new Promise((t,n)=>{Dr||mv(),Dr.open(Ge({},pv,e,{callback:s=>{(s==="confirm"?t:n)(s)}}))}):Promise.resolve(void 0)}const _v=e=>gv(Ge({showCancelButton:!0},e)),wk=Ye(ef),[vv,Ko]=We("rate");function yv(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 bv={size:$e,icon:De("star"),color:String,count:Jt(5),gutter:$e,clearable:Boolean,readonly:Boolean,disabled:Boolean,voidIcon:De("star-o"),allowHalf:Boolean,voidColor:String,touchable:ze,iconPrefix:String,modelValue:_d(0),disabledColor:String};var wv=be({name:vv,props:bv,emits:["change","update:modelValue"],setup(e,{emit:t}){const n=Ca(),[s,o]=Md(),i=F(),r=M(()=>e.readonly||e.disabled),a=M(()=>r.value||!e.touchable),l=M(()=>Array(+e.count).fill("").map((T,x)=>yv(e.modelValue,x+1,e.allowHalf,e.readonly)));let d,c,u=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;const h=()=>{c=an(i);const T=s.value.map(an);d=[],T.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})})},g=(T,x)=>{for(let b=d.length-1;b>0;b--)if(x>=c.top&&x<=c.bottom){if(T>d[b].left&&x>=d[b].top&&x<=d[b].top+d[b].height)return d[b].score}else{const P=x<c.top?u:f;if(T>d[b].left&&d[b].top===P)return d[b].score}return e.allowHalf?.5:1},m=T=>{r.value||T===e.modelValue||(t("update:modelValue",T),t("change",T))},p=T=>{a.value||(n.start(T),h())},v=T=>{if(!a.value&&(n.move(T),n.isHorizontal()&&!n.isTap.value)){const{clientX:x,clientY:b}=T.touches[0];yn(T),m(g(x,b))}},S=(T,x)=>{const{icon:b,size:P,color:B,count:L,gutter:R,voidIcon:K,disabled:X,voidColor:z,allowHalf:ee,iconPrefix:G,disabledColor:ie}=e,de=x+1,ne=T.status==="full",le=T.status==="void",ke=ee&&T.value>0&&T.value<1;let Te;R&&de!==+L&&(Te={paddingRight:rt(R)});const se=pe=>{h();let fe=ee?g(pe.clientX,pe.clientY):de;e.clearable&&n.isTap.value&&fe===e.modelValue&&(fe=0),m(fe)};return C("div",{key:x,ref:o(x),role:"radio",style:Te,class:Ko("item"),tabindex:X?void 0:0,"aria-setsize":L,"aria-posinset":de,"aria-checked":!le,onClick:se},[C(pt,{size:P,name:ne?b:K,class:Ko("icon",{disabled:X,full:ne}),color:X?ie:ne?B:z,classPrefix:G},null),ke&&C(pt,{size:P,style:{width:T.value+"em"},name:le?K:b,class:Ko("icon",["half",{disabled:X,full:!le}]),color:X?ie:le?z:B,classPrefix:G},null)])};return Sd(()=>e.modelValue),es("touchmove",v,{target:i}),()=>C("div",{ref:i,role:"radiogroup",class:Ko({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstartPassive:p},[l.value.map(S)])}});const Ev=Ye(wv),[Sv,Ls,Cv]=We("search"),xv=Ge({},xa,{label:String,shape:De("square"),leftIcon:De("search"),clearable:ze,actionText:String,background:String,showAction:Boolean});var Av=be({name:Sv,props:xv,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n,attrs:s}){const o=xo(),i=F(),r=()=>{n.action||(t("update:modelValue",""),t("cancel"))},a=b=>{b.keyCode===13&&(yn(b),t("search",e.modelValue))},l=()=>e.id||`${o}-input`,d=()=>{if(n.label||e.label)return C("label",{class:Ls("label"),for:l(),"data-allow-mismatch":"attribute"},[n.label?n.label():e.label])},c=()=>{if(e.showAction){const b=e.actionText||Cv("cancel");return C("div",{class:Ls("action"),role:"button",tabindex:0,onClick:r},[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),g=b=>t("focus",b),m=b=>t("clear",b),p=b=>t("clickInput",b),v=b=>t("clickLeftIcon",b),S=b=>t("clickRightIcon",b),T=Object.keys(xa),x=()=>{const b=Ge({},s,Yn(e,T),{id:l()}),P=B=>t("update:modelValue",B);return C(Aa,Pt({ref:i,type:"search",class:Ls("field",{"with-message":b.errorMessage}),border:!1,labelAlign:"left",onBlur:h,onFocus:g,onClear:m,onKeypress:a,onClickInput:p,onClickLeftIcon:v,onClickRightIcon:S,"onUpdate:modelValue":P},b),Yn(n,["left-icon","right-icon"]))};return Zt({focus:f,blur:u}),()=>{var b;return C("div",{class:Ls({"show-action":e.showAction}),style:{background:e.background}},[(b=n.left)==null?void 0:b.call(n),C("div",{class:Ls("content",e.shape)},[d(),x()]),c()])}}});const kv=Ye(Av);/*!
|
||
* pinia v2.3.1
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let tf;const Pi=e=>tf=e,nf=Symbol();function Nr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var to;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(to||(to={}));function Tv(){const e=nu(!0),t=e.run(()=>F({}));let n=[],s=[];const o=ia({install(i){Pi(o),o._a=i,i.provide(nf,o),i.config.globalProperties.$pinia=o,s.forEach(r=>n.push(r)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const 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&&ea()&&su(o),o}function is(e,...t){e.slice().forEach(n=>{n(...t)})}const Rv=e=>e(),Jl=Symbol(),sr=Symbol();function Lr(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];Nr(o)&&Nr(s)&&e.hasOwnProperty(n)&&!Je(s)&&!vn(s)?e[n]=Lr(o,s):e[n]=s}return e}const Iv=Symbol();function Ov(e){return!Nr(e)||!e.hasOwnProperty(Iv)}const{assign:In}=Object;function Pv(e){return!!(Je(e)&&e.effect)}function $v(e,t,n,s){const{state:o,actions:i,getters:r}=t,a=n.state.value[e];let l;function d(){a||(n.state.value[e]=o?o():{});const c=$h(n.state.value[e]);return In(c,i,Object.keys(r||{}).reduce((u,f)=>(u[f]=ia(M(()=>{Pi(n);const h=n._s.get(e);return r[f].call(h,h)})),u),{}))}return l=of(e,d,t,n,s,!0),l}function of(e,t,n={},s,o,i){let r;const a=In({actions:{}},n),l={deep:!0};let d,c,u=[],f=[],h;const g=s.state.value[e];!i&&!g&&(s.state.value[e]={});let m;function p(L){let R;d=c=!1,typeof L=="function"?(L(s.state.value[e]),R={type:to.patchFunction,storeId:e,events:h}):(Lr(s.state.value[e],L),R={type:to.patchObject,payload:L,storeId:e,events:h});const K=m=Symbol();Ze().then(()=>{m===K&&(d=!0)}),c=!0,is(u,R,s.state.value[e])}const v=i?function(){const{state:R}=n,K=R?R():{};this.$patch(X=>{In(X,K)})}:sf;function S(){r.stop(),u=[],f=[],s._s.delete(e)}const T=(L,R="")=>{if(Jl in L)return L[sr]=R,L;const K=function(){Pi(s);const X=Array.from(arguments),z=[],ee=[];function G(ne){z.push(ne)}function ie(ne){ee.push(ne)}is(f,{args:X,name:K[sr],store:b,after:G,onError:ie});let de;try{de=L.apply(this&&this.$id===e?this:b,X)}catch(ne){throw is(ee,ne),ne}return de instanceof Promise?de.then(ne=>(is(z,ne),ne)).catch(ne=>(is(ee,ne),Promise.reject(ne))):(is(z,de),de)};return K[Jl]=!0,K[sr]=R,K},x={_p:s,$id:e,$onAction:Gl.bind(null,f),$patch:p,$reset:v,$subscribe(L,R={}){const K=Gl(u,L,R.detached,()=>X()),X=r.run(()=>xe(()=>s.state.value[e],z=>{(R.flush==="sync"?c:d)&&L({storeId:e,type:to.direct,events:h},z)},In({},l,R)));return K},$dispose:S},b=mt(x);s._s.set(e,b);const B=(s._a&&s._a.runWithContext||Rv)(()=>s._e.run(()=>(r=nu()).run(()=>t({action:T}))));for(const L in B){const R=B[L];if(Je(R)&&!Pv(R)||vn(R))i||(g&&Ov(R)&&(Je(R)?R.value=g[L]:Lr(R,g[L])),s.state.value[e][L]=R);else if(typeof R=="function"){const K=T(R,L);B[L]=K,a.actions[L]=R}}return In(b,B),In(Pe(b),B),Object.defineProperty(b,"$state",{get:()=>s.state.value[e],set:L=>{p(R=>{In(R,L)})}}),s._p.forEach(L=>{In(b,r.run(()=>L({store:b,app:s._a,pinia:s,options:a})))}),g&&i&&n.hydrate&&n.hydrate(b.$state,g),d=!0,c=!0,b}/*! #__NO_SIDE_EFFECTS__ */function Ta(e,t,n){let s,o;const i=typeof t=="function";typeof e=="string"?(s=e,o=i?n:t):(o=e,s=e.id);function r(a,l){const d=Uh();return a=a||(d?ht(nf,null):null),a&&Pi(a),a=tf,a._s.has(s)||(i?of(s,t,o,a):$v(s,o,a)),a._s.get(s)}return r.$id=s,r}const rf="it_desk_h5_theme";function Xl(e){document.documentElement.setAttribute("data-theme",e),localStorage.setItem(rf,e)}function Bv(){const e=localStorage.getItem(rf);return e==="dark"||e==="light"?e:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const af=Ta("theme",()=>{const e=F("light");function t(){const s=e.value==="light"?"dark":"light";e.value=s,Xl(s)}function n(){const s=Bv();e.value=s,Xl(s)}return{currentTheme:e,toggleTheme:t,initTheme:n}}),Dv={class:"app-loading"},Nv={key:1,class:"app-loading"},Lv=be({__name:"App",setup(e){const t=af(),n=F(!1);return st(()=>{t.initTheme(),n.value=!0}),(s,o)=>{const i=Co,r=rp("router-view"),a=rv;return k(),At(a,{theme:Re(t).currentTheme},{default:ot(()=>[n.value?(k(),At(r,{key:0},{default:ot(({Component:l})=>[(k(),At(Bp,null,{fallback:ot(()=>[_("div",Dv,[C(i,{type:"spinner",color:"#1989fa",size:"36"}),o[0]||(o[0]=_("div",{class:"app-loading__text"},"正在加载...",-1))])]),default:ot(()=>[(k(),At(ap(l)))]),_:2},1024))]),_:1})):(k(),I("div",Nv,[C(i,{type:"spinner",color:"#1989fa",size:"36"}),o[1]||(o[1]=_("div",{class:"app-loading__text"},"正在加载...",-1))]))]),_:1},8,["theme"])}}}),Fv="modulepreload",Mv=function(e){return"/h5/"+e},Yl={},ds=function(t,n,s){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),a=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));o=Promise.allSettled(n.map(l=>{if(l=Mv(l),l in Yl)return;Yl[l]=!0;const d=l.endsWith(".css"),c=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const u=document.createElement("link");if(u.rel=d?"stylesheet":Fv,d||(u.as="script"),u.crossOrigin="",u.href=l,a&&u.setAttribute("nonce",a),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 ${l}`)))})}))}function i(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return o.then(r=>{for(const a of r||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};/*!
|
||
* vue-router v4.6.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const cs=typeof document<"u";function lf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Vv(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&lf(e.default)}const Ne=Object.assign;function or(e,t){const n={};for(const s in t){const o=t[s];n[s]=Qt(o)?o.map(e):e(o)}return n}const no=()=>{},Qt=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,jv=/&/g,Uv=/\//g,qv=/=/g,Hv=/\?/g,uf=/\+/g,zv=/%5B/g,Wv=/%5D/g,df=/%5E/g,Kv=/%60/g,ff=/%7B/g,Gv=/%7C/g,hf=/%7D/g,Jv=/%20/g;function Ra(e){return e==null?"":encodeURI(""+e).replace(Gv,"|").replace(zv,"[").replace(Wv,"]")}function Xv(e){return Ra(e).replace(ff,"{").replace(hf,"}").replace(df,"^")}function Fr(e){return Ra(e).replace(uf,"%2B").replace(Jv,"+").replace(cf,"%23").replace(jv,"%26").replace(Kv,"`").replace(ff,"{").replace(hf,"}").replace(df,"^")}function Yv(e){return Fr(e).replace(qv,"%3D")}function Qv(e){return Ra(e).replace(cf,"%23").replace(Hv,"%3F")}function Zv(e){return Qv(e).replace(Uv,"%2F")}function mo(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const ey=/\/$/,ty=e=>e.replace(ey,"");function ir(e,t,n="/"){let s,o={},i="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(s=t.slice(0,l),i=t.slice(l,a>0?a:t.length),o=e(i.slice(1))),a>=0&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=iy(s??t,n),{fullPath:s+i+r,path:s,query:o,hash:mo(r)}}function ny(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 sy(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&ws(t.matched[s],n.matched[o])&&pf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ws(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(!oy(e[n],t[n]))return!1;return!0}function oy(e,t){return Qt(e)?ec(e,t):Qt(t)?ec(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function ec(e,t){return Qt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function iy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let i=n.length-1,r,a;for(r=0;r<s.length;r++)if(a=s[r],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(r).join("/")}const kn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Mr=function(e){return e.pop="pop",e.push="push",e}({}),rr=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function ry(e){if(!e)if(cs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ty(e)}const ay=/^[^#]+#/;function ly(e,t){return e.replace(ay,"#")+t}function cy(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 $i=()=>({left:window.scrollX,top:window.scrollY});function uy(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=cy(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 Vr=new Map;function dy(e,t){Vr.set(e,t)}function fy(e){const t=Vr.get(e);return Vr.delete(e),t}function hy(e){return typeof e=="string"||e&&typeof e=="object"}function mf(e){return typeof e=="string"||typeof e=="symbol"}let Qe=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 gf=Symbol("");Qe.MATCHER_NOT_FOUND+"",Qe.NAVIGATION_GUARD_REDIRECT+"",Qe.NAVIGATION_ABORTED+"",Qe.NAVIGATION_CANCELLED+"",Qe.NAVIGATION_DUPLICATED+"";function Es(e,t){return Ne(new Error,{type:e,[gf]:!0},t)}function fn(e,t){return e instanceof Error&&gf in e&&(t==null||!!(e.type&t))}const py=["params","query","hash"];function my(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of py)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function gy(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("="),r=mo(i<0?o:o.slice(0,i)),a=i<0?null:mo(o.slice(i+1));if(r in t){let l=t[r];Qt(l)||(l=t[r]=[l]),l.push(a)}else t[r]=a}return t}function nc(e){let t="";for(let n in e){const s=e[n];if(n=Yv(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Qt(s)?s.map(o=>o&&Fr(o)):[s&&Fr(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function _y(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Qt(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const vy=Symbol(""),sc=Symbol(""),Bi=Symbol(""),Ia=Symbol(""),jr=Symbol("");function Fs(){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=r=>r()){const r=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const d=f=>{f===!1?l(Es(Qe.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?l(f):hy(f)?l(Es(Qe.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(r&&s.enterCallbacks[o]===r&&typeof f=="function"&&r.push(f),a())},c=i(()=>e.call(s&&s.instances[o],t,n,d));let u=Promise.resolve(c);e.length<3&&(u=u.then(d)),u.catch(f=>l(f))})}function ar(e,t,n,s,o=i=>i()){const i=[];for(const r of e)for(const a in r.components){let l=r.components[a];if(!(t!=="beforeRouteEnter"&&!r.instances[a]))if(lf(l)){const d=(l.__vccOpts||l)[t];d&&i.push(Pn(d,n,s,r,a,o))}else{let d=l();i.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${r.path}"`);const u=Vv(c)?c.default:c;r.mods[a]=c,r.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&Pn(f,n,s,r,a,o)()}))}}return i}function yy(e,t){const n=[],s=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let r=0;r<i;r++){const a=t.matched[r];a&&(e.matched.find(d=>ws(d,a))?s.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(d=>ws(d,l))||o.push(l))}return[n,s,o]}/*!
|
||
* vue-router v4.6.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let by=()=>location.protocol+"//"+location.host;function _f(e,t){const{pathname:n,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){let r=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(r);return a[0]!=="/"&&(a="/"+a),Zl(a,"")}return Zl(n,e)+s+o}function wy(e,t,n,s){let o=[],i=[],r=null;const a=({state:f})=>{const h=_f(e,location),g=n.value,m=t.value;let p=0;if(f){if(n.value=h,t.value=f,r&&r===g){r=null;return}p=m?f.position-m.position:0}else s(h);o.forEach(v=>{v(n.value,g,{delta:p,type:Mr.pop,direction:p?p>0?rr.forward:rr.back:rr.unknown})})};function l(){r=n.value}function d(f){o.push(f);const h=()=>{const g=o.indexOf(f);g>-1&&o.splice(g,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Ne({},f.state,{scroll:$i()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen: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?$i():null}}function Ey(e){const{history:t,location:n}=window,s={value:_f(e,n)},o={value:t.state};o.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,d,c){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+l:by()+e+l;try{t[c?"replaceState":"pushState"](d,"",f),o.value=d}catch(h){console.error(h),n[c?"replace":"assign"](f)}}function r(l,d){i(l,Ne({},t.state,oc(o.value.back,l,o.value.forward,!0),d,{position:o.value.position}),!0),s.value=l}function a(l,d){const c=Ne({},o.value,t.state,{forward:l,scroll:$i()});i(c.current,c,!0),i(l,Ne({},oc(s.value,l,null),{position:c.position+1},d),!1),s.value=l}return{location:s,state:o,push:a,replace:r}}function Sy(e){e=ry(e);const t=Ey(e),n=wy(e,t.state,t.location,t.replace);function s(i,r=!0){r||n.pauseListeners(),history.go(i)}const o=Ne({location:"",base:e,go:s,createHref:ly.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 lt=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}(lt||{});const Cy={type:Wn.Static,value:""},xy=/[a-zA-Z0-9_]/;function Ay(e){if(!e)return[[]];if(e==="/")return[[Cy]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${d}": ${h}`)}let n=lt.Static,s=n;const o=[];let i;function r(){i&&o.push(i),i=[]}let a=0,l,d="",c="";function u(){d&&(n===lt.Static?i.push({type:Wn.Static,value:d}):n===lt.Param||n===lt.ParamRegExp||n===lt.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Wn.Param,value:d,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==lt.ParamRegExp){s=n,n=lt.EscapeNext;continue}switch(n){case lt.Static:l==="/"?(d&&u(),r()):l===":"?(u(),n=lt.Param):f();break;case lt.EscapeNext:f(),n=s;break;case lt.Param:l==="("?n=lt.ParamRegExp:xy.test(l)?f():(u(),n=lt.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case lt.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=lt.ParamRegExpEnd:c+=l;break;case lt.ParamRegExpEnd:u(),n=lt.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===lt.ParamRegExp&&t(`Unfinished custom RegExp for param "${d}"`),u(),r(),o}const ic="[^/]+?",ky={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 Ty=/[.+*?^${}()[\]/\\]/g;function Ry(e,t){const n=Ne({},ky,t),s=[];let o=n.start?"^":"";const i=[];for(const d of e){const c=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(Ty,"\\$&"),h+=St.Static;else if(f.type===Wn.Param){const{value:g,repeatable:m,optional:p,regexp:v}=f;i.push({name:g,repeatable:m,optional:p});const S=v||ic;if(S!==ic){h+=St.BonusCustomRegExp;try{`${S}`}catch(x){throw new Error(`Invalid custom RegExp for param "${g}" (${S}): `+x.message)}}let T=m?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;u||(T=p&&d.length<2?`(?:/${T})`:"/"+T),p&&(T+="?"),o+=T,h+=St.Dynamic,p&&(h+=St.BonusOptional),m&&(h+=St.BonusRepeatable),S===".*"&&(h+=St.BonusWildcard)}c.push(h)}s.push(c)}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 r=new RegExp(o,n.sensitive?"":"i");function a(d){const c=d.match(r),u={};if(!c)return null;for(let f=1;f<c.length;f++){const h=c[f]||"",g=i[f-1];u[g.name]=h&&g.repeatable?h.split("/"):h}return u}function l(d){let c="",u=!1;for(const f of e){(!u||!c.endsWith("/"))&&(c+="/"),u=!1;for(const h of f)if(h.type===Wn.Static)c+=h.value;else if(h.type===Wn.Param){const{value:g,repeatable:m,optional:p}=h,v=g in d?d[g]:"";if(Qt(v)&&!m)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const S=Qt(v)?v.join("/"):v;if(!S)if(p)f.length<2&&(c.endsWith("/")?c=c.slice(0,-1):u=!0);else throw new Error(`Missing required param "${g}"`);c+=S}}return c||"/"}return{re:r,score:s,keys:i,parse:a,stringify:l}}function Iy(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=Iy(s[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-s.length)===1){if(rc(s))return 1;if(rc(o))return-1}return o.length-s.length}function rc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Oy={strict:!1,end:!0,sensitive:!1};function Py(e,t,n){const s=Ry(Ay(e.path),n),o=Ne(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function $y(e,t){const n=[],s=new Map;t=Ql(Oy,t);function o(u){return s.get(u)}function i(u,f,h){const g=!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(Ne({},m,{components:h?h.record.components:m.components,path:b,aliasOf:h?h.record:m})))}let S,T;for(const x of v){const{path:b}=x;if(f&&b[0]!=="/"){const P=f.record.path,B=P[P.length-1]==="/"?"":"/";x.path=f.record.path+(b&&B+b)}if(S=Py(x,f,p),h?h.alias.push(S):(T=T||S,T!==S&&T.alias.push(S),g&&u.name&&!cc(S)&&r(u.name)),yf(S)&&l(S),m.children){const P=m.children;for(let B=0;B<P.length;B++)i(P[B],S,h&&h.children[B])}h=h||S}return T?()=>{r(T)}:no}function r(u){if(mf(u)){const f=s.get(u);f&&(s.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(r),f.alias.forEach(r))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&s.delete(u.record.name),u.children.forEach(r),u.alias.forEach(r))}}function a(){return n}function l(u){const f=Ny(u,n);n.splice(f,0,u),u.record.name&&!cc(u)&&s.set(u.record.name,u)}function d(u,f){let h,g={},m,p;if("name"in u&&u.name){if(h=s.get(u.name),!h)throw Es(Qe.MATCHER_NOT_FOUND,{location:u});p=h.record.name,g=Ne(ac(f.params,h.keys.filter(T=>!T.optional).concat(h.parent?h.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),u.params&&ac(u.params,h.keys.map(T=>T.name))),m=h.stringify(g)}else if(u.path!=null)m=u.path,h=n.find(T=>T.re.test(m)),h&&(g=h.parse(m),p=h.record.name);else{if(h=f.name?s.get(f.name):n.find(T=>T.re.test(f.path)),!h)throw Es(Qe.MATCHER_NOT_FOUND,{location:u,currentLocation:f});p=h.record.name,g=Ne({},f.params,u.params),m=h.stringify(g)}const v=[];let S=h;for(;S;)v.unshift(S.record),S=S.parent;return{name:p,path:m,params:g,matched:v,meta:Dy(v)}}e.forEach(u=>i(u));function c(){n.length=0,s.clear()}return{addRoute:i,resolve:d,removeRoute:r,clearRoutes:c,getRoutes:a,getRecordMatcher:o}}function ac(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:By(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 By(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 Dy(e){return e.reduce((t,n)=>Ne(t,n.meta),{})}function Ny(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=Ly(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function Ly(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(Ia),s=M(()=>{const l=Re(e.to);return t.resolve(l)}),o=M(()=>{const{matched:l}=s.value,{length:d}=l,c=l[d-1],u=n.matched;if(!c||!u.length)return-1;const f=u.findIndex(ws.bind(null,c));if(f>-1)return f;const h=dc(l[d-2]);return d>1&&dc(c)===h&&u[u.length-1].path!==h?u.findIndex(ws.bind(null,l[d-2])):f}),i=M(()=>o.value>-1&&Uy(n.params,s.value.params)),r=M(()=>o.value>-1&&o.value===n.matched.length-1&&pf(n.params,s.value.params));function a(l={}){if(jy(l)){const d=t[Re(e.replace)?"replace":"push"](Re(e.to)).catch(no);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:s,href:M(()=>s.value.href),isActive:i,isExactActive:r,navigate:a}}function Fy(e){return e.length===1?e[0]:e}const My=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=mt(uc(e)),{options:s}=ht(Bi),o=M(()=>({[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&&Fy(t.default(n));return e.custom?i:ma("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Vy=My;function jy(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 Uy(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(!Qt(o)||o.length!==s.length||s.some((i,r)=>i.valueOf()!==o[r].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,qy=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(jr),o=M(()=>e.route||s.value),i=ht(sc,0),r=M(()=>{let d=Re(i);const{matched:c}=o.value;let u;for(;(u=c[d])&&!u.components;)d++;return d}),a=M(()=>o.value.matched[r.value]);cn(sc,M(()=>r.value+1)),cn(vy,a),cn(jr,o);const l=F();return xe(()=>[l.value,a.value,e.name],([d,c,u],[f,h,g])=>{c&&(c.instances[u]=d,h&&h!==c&&d&&d===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),d&&c&&(!h||!ws(c,h)||!f)&&(c.enterCallbacks[u]||[]).forEach(m=>m(d))},{flush:"post"}),()=>{const d=o.value,c=e.name,u=a.value,f=u&&u.components[c];if(!f)return hc(n.default,{Component:f,route:d});const h=u.props[c],g=h?h===!0?d.params:typeof h=="function"?h(d):h:null,p=ma(f,Ne({},g,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(u.instances[c]=null)},ref:l}));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 Hy=qy;function zy(e){const t=$y(e.routes,e),n=e.parseQuery||gy,s=e.stringifyQuery||nc,o=e.history,i=Fs(),r=Fs(),a=Fs(),l=Dn(kn);let d=kn;cs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=or.bind(null,E=>""+E),u=or.bind(null,Zv),f=or.bind(null,mo);function h(E,N){let U,D;return mf(E)?(U=t.getRecordMatcher(E),D=N):D=E,t.addRoute(D,U)}function g(E){const N=t.getRecordMatcher(E);N&&t.removeRoute(N)}function m(){return t.getRoutes().map(E=>E.record)}function p(E){return!!t.getRecordMatcher(E)}function v(E,N){if(N=Ne({},N||l.value),typeof E=="string"){const A=ir(n,E,N.path),V=t.resolve({path:A.path},N),J=o.createHref(A.fullPath);return Ne(A,V,{params:f(V.params),hash:mo(A.hash),redirectedFrom:void 0,href:J})}let U;if(E.path!=null)U=Ne({},E,{path:ir(n,E.path,N.path).path});else{const A=Ne({},E.params);for(const V in A)A[V]==null&&delete A[V];U=Ne({},E,{params:u(A)}),N.params=u(N.params)}const D=t.resolve(U,N),q=E.hash||"";D.params=c(f(D.params));const y=ny(s,Ne({},E,{hash:Xv(q),path:D.path})),w=o.createHref(y);return Ne({fullPath:y,hash:q,query:s===nc?_y(E.query):E.query||{}},D,{redirectedFrom:void 0,href:w})}function S(E){return typeof E=="string"?ir(n,E,l.value.path):Ne({},E)}function T(E,N){if(d!==E)return Es(Qe.NAVIGATION_CANCELLED,{from:N,to:E})}function x(E){return B(E)}function b(E){return x(Ne(S(E),{replace:!0}))}function P(E,N){const U=E.matched[E.matched.length-1];if(U&&U.redirect){const{redirect:D}=U;let q=typeof D=="function"?D(E,N):D;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=S(q):{path:q},q.params={}),Ne({query:E.query,hash:E.hash,params:q.path!=null?{}:E.params},q)}}function B(E,N){const U=d=v(E),D=l.value,q=E.state,y=E.force,w=E.replace===!0,A=P(U,D);if(A)return B(Ne(S(A),{state:typeof A=="object"?Ne({},q,A.state):q,force:y,replace:w}),N||U);const V=U;V.redirectedFrom=N;let J;return!y&&sy(s,D,U)&&(J=Es(Qe.NAVIGATION_DUPLICATED,{to:V,from:D}),se(D,D,!0,!1)),(J?Promise.resolve(J):K(V,D)).catch(W=>fn(W)?fn(W,Qe.NAVIGATION_GUARD_REDIRECT)?W:Te(W):le(W,V,D)).then(W=>{if(W){if(fn(W,Qe.NAVIGATION_GUARD_REDIRECT))return B(Ne({replace:w},S(W.to),{state:typeof W.to=="object"?Ne({},q,W.to.state):q,force:y}),N||V)}else W=z(V,D,!0,w,q);return X(V,D,W),W})}function L(E,N){const U=T(E,N);return U?Promise.reject(U):Promise.resolve()}function R(E){const N=Ae.values().next().value;return N&&typeof N.runWithContext=="function"?N.runWithContext(E):E()}function K(E,N){let U;const[D,q,y]=yy(E,N);U=ar(D.reverse(),"beforeRouteLeave",E,N);for(const A of D)A.leaveGuards.forEach(V=>{U.push(Pn(V,E,N))});const w=L.bind(null,E,N);return U.push(w),ce(U).then(()=>{U=[];for(const A of i.list())U.push(Pn(A,E,N));return U.push(w),ce(U)}).then(()=>{U=ar(q,"beforeRouteUpdate",E,N);for(const A of q)A.updateGuards.forEach(V=>{U.push(Pn(V,E,N))});return U.push(w),ce(U)}).then(()=>{U=[];for(const A of y)if(A.beforeEnter)if(Qt(A.beforeEnter))for(const V of A.beforeEnter)U.push(Pn(V,E,N));else U.push(Pn(A.beforeEnter,E,N));return U.push(w),ce(U)}).then(()=>(E.matched.forEach(A=>A.enterCallbacks={}),U=ar(y,"beforeRouteEnter",E,N,R),U.push(w),ce(U))).then(()=>{U=[];for(const A of r.list())U.push(Pn(A,E,N));return U.push(w),ce(U)}).catch(A=>fn(A,Qe.NAVIGATION_CANCELLED)?A:Promise.reject(A))}function X(E,N,U){a.list().forEach(D=>R(()=>D(E,N,U)))}function z(E,N,U,D,q){const y=T(E,N);if(y)return y;const w=N===kn,A=cs?history.state:{};U&&(D||w?o.replace(E.fullPath,Ne({scroll:w&&A&&A.scroll},q)):o.push(E.fullPath,q)),l.value=E,se(E,N,U,w),Te()}let ee;function G(){ee||(ee=o.listen((E,N,U)=>{if(!H.listening)return;const D=v(E),q=P(D,H.currentRoute.value);if(q){B(Ne(q,{replace:!0,force:!0}),D).catch(no);return}d=D;const y=l.value;cs&&dy(tc(y.fullPath,U.delta),$i()),K(D,y).catch(w=>fn(w,Qe.NAVIGATION_ABORTED|Qe.NAVIGATION_CANCELLED)?w:fn(w,Qe.NAVIGATION_GUARD_REDIRECT)?(B(Ne(S(w.to),{force:!0}),D).then(A=>{fn(A,Qe.NAVIGATION_ABORTED|Qe.NAVIGATION_DUPLICATED)&&!U.delta&&U.type===Mr.pop&&o.go(-1,!1)}).catch(no),Promise.reject()):(U.delta&&o.go(-U.delta,!1),le(w,D,y))).then(w=>{w=w||z(D,y,!1),w&&(U.delta&&!fn(w,Qe.NAVIGATION_CANCELLED)?o.go(-U.delta,!1):U.type===Mr.pop&&fn(w,Qe.NAVIGATION_ABORTED|Qe.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),X(D,y,w)}).catch(no)}))}let ie=Fs(),de=Fs(),ne;function le(E,N,U){Te(E);const D=de.list();return D.length?D.forEach(q=>q(E,N,U)):console.error(E),Promise.reject(E)}function ke(){return ne&&l.value!==kn?Promise.resolve():new Promise((E,N)=>{ie.add([E,N])})}function Te(E){return ne||(ne=!E,G(),ie.list().forEach(([N,U])=>E?U(E):N()),ie.reset()),E}function se(E,N,U,D){const{scrollBehavior:q}=e;if(!cs||!q)return Promise.resolve();const y=!U&&fy(tc(E.fullPath,0))||(D||!U)&&history.state&&history.state.scroll||null;return Ze().then(()=>q(E,N,y)).then(w=>w&&uy(w)).catch(w=>le(w,E,N))}const pe=E=>o.go(E);let fe;const Ae=new Set,H={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:m,resolve:v,options:e,push:x,replace:b,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:i.add,beforeResolve:r.add,afterEach:a.add,onError:de.add,isReady:ke,install(E){E.component("RouterLink",Vy),E.component("RouterView",Hy),E.config.globalProperties.$router=H,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>Re(l)}),cs&&!fe&&l.value===kn&&(fe=!0,x(o.location).catch(D=>{}));const N={};for(const D in kn)Object.defineProperty(N,D,{get:()=>l.value[D],enumerable:!0});E.provide(Bi,H),E.provide(Ia,bu(N)),E.provide(jr,l);const U=E.unmount;Ae.add(E),E.unmount=function(){Ae.delete(E),Ae.size<1&&(d=kn,ee&&ee(),ee=null,l.value=kn,fe=!1,ne=!1),U()}}};function ce(E){return E.reduce((N,U)=>N.then(()=>R(U)),Promise.resolve())}return H}function bf(){return ht(Bi)}function wf(e){return ht(Ia)}function Ef(e,t){return function(){return e.apply(t,arguments)}}const{toString:Wy}=Object.prototype,{getPrototypeOf:Di}=Object,{iterator:Ni,toStringTag:Sf}=Symbol,Li=(e=>t=>{const n=Wy.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),en=e=>(e=e.toLowerCase(),t=>Li(t)===e),Fi=e=>t=>typeof t===e,{isArray:Rs}=Array,Ss=Fi("undefined");function Ao(e){return e!==null&&!Ss(e)&&e.constructor!==null&&!Ss(e.constructor)&&It(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cf=en("ArrayBuffer");function Ky(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cf(e.buffer),t}const Gy=Fi("string"),It=Fi("function"),xf=Fi("number"),ko=e=>e!==null&&typeof e=="object",Jy=e=>e===!0||e===!1,ei=e=>{if(Li(e)!=="object")return!1;const t=Di(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Sf in e)&&!(Ni in e)},Xy=e=>{if(!ko(e)||Ao(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Yy=en("Date"),Qy=en("File"),Zy=e=>!!(e&&typeof e.uri<"u"),eb=e=>e&&typeof e.getParts<"u",tb=en("Blob"),nb=en("FileList"),sb=e=>ko(e)&&It(e.pipe);function ob(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const pc=ob(),mc=typeof pc.FormData<"u"?pc.FormData:void 0,ib=e=>{if(!e)return!1;if(mc&&e instanceof mc)return!0;const t=Di(e);if(!t||t===Object.prototype||!It(e.append))return!1;const n=Li(e);return n==="formdata"||n==="object"&&It(e.toString)&&e.toString()==="[object FormData]"},rb=en("URLSearchParams"),[ab,lb,cb,ub]=["ReadableStream","Request","Response","Headers"].map(en),db=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function To(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),Rs(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{if(Ao(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let a;for(s=0;s<r;s++)a=i[s],t.call(null,e[a],a,e)}}function Af(e,t){if(Ao(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,kf=e=>!Ss(e)&&e!==Kn;function Ur(...e){const{caseless:t,skipUndefined:n}=kf(this)&&this||{},s={},o=(i,r)=>{if(r==="__proto__"||r==="constructor"||r==="prototype")return;const a=t&&Af(s,r)||r,l=qr(s,a)?s[a]:void 0;ei(l)&&ei(i)?s[a]=Ur(l,i):ei(i)?s[a]=Ur({},i):Rs(i)?s[a]=i.slice():(!n||!Ss(i))&&(s[a]=i)};for(let i=0,r=e.length;i<r;i++)e[i]&&To(e[i],o);return s}const fb=(e,t,n,{allOwnKeys:s}={})=>(To(t,(o,i)=>{n&&It(o)?Object.defineProperty(e,i,{__proto__:null,value:Ef(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),hb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pb=(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)},mb=(e,t,n,s)=>{let o,i,r;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)r=o[i],(!s||s(r,e,t))&&!a[r]&&(t[r]=e[r],a[r]=!0);e=n!==!1&&Di(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},gb=(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},_b=e=>{if(!e)return null;if(Rs(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},vb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Di(Uint8Array)),yb=(e,t)=>{const s=(e&&e[Ni]).call(e);let o;for(;(o=s.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},bb=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},wb=en("HTMLFormElement"),Eb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),qr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Sb=en("RegExp"),Tf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};To(n,(o,i)=>{let r;(r=t(o,i,e))!==!1&&(s[i]=r||o)}),Object.defineProperties(e,s)},Cb=e=>{Tf(e,(t,n)=>{if(It(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if(It(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+"'")})}})},xb=(e,t)=>{const n={},s=o=>{o.forEach(i=>{n[i]=!0})};return Rs(e)?s(e):s(String(e).split(t)),n},Ab=()=>{},kb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Tb(e){return!!(e&&It(e.append)&&e[Sf]==="FormData"&&e[Ni])}const Rb=e=>{const t=new WeakSet,n=s=>{if(ko(s)){if(t.has(s))return;if(Ao(s))return s;if(!("toJSON"in s)){t.add(s);const o=Rs(s)?[]:{};return To(s,(i,r)=>{const a=n(i);!Ss(a)&&(o[r]=a)}),t.delete(s),o}}return s};return n(e)},Ib=en("AsyncFunction"),Ob=e=>e&&(ko(e)||It(e))&&It(e.then)&&It(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",It(Kn.postMessage)),Pb=typeof queueMicrotask<"u"?queueMicrotask.bind(Kn):typeof process<"u"&&process.nextTick||Rf,$b=e=>e!=null&&It(e[Ni]),$={isArray:Rs,isArrayBuffer:Cf,isBuffer:Ao,isFormData:ib,isArrayBufferView:Ky,isString:Gy,isNumber:xf,isBoolean:Jy,isObject:ko,isPlainObject:ei,isEmptyObject:Xy,isReadableStream:ab,isRequest:lb,isResponse:cb,isHeaders:ub,isUndefined:Ss,isDate:Yy,isFile:Qy,isReactNativeBlob:Zy,isReactNative:eb,isBlob:tb,isRegExp:Sb,isFunction:It,isStream:sb,isURLSearchParams:rb,isTypedArray:vb,isFileList:nb,forEach:To,merge:Ur,extend:fb,trim:db,stripBOM:hb,inherits:pb,toFlatObject:mb,kindOf:Li,kindOfTest:en,endsWith:gb,toArray:_b,forEachEntry:yb,matchAll:bb,isHTMLForm:wb,hasOwnProperty:qr,hasOwnProp:qr,reduceDescriptors:Tf,freezeMethods:Cb,toObjectSet:xb,toCamelCase:Eb,noop:Ab,toFiniteNumber:kb,findKey:Af,global:Kn,isContextDefined:kf,isSpecCompliantForm:Tb,toJSONObject:Rb,isAsyncFn:Ib,isThenable:Ob,setImmediate:Rf,asap:Pb,isIterable:$b},Bb=$.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"]),Db=e=>{const t={};let n,s,o;return e&&e.split(`
|
||
`).forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),s=r.substring(o+1).trim(),!(!n||t[n]&&Bb[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t};function Nb(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 Lb=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Fb=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Oa(e,t){return $.isArray(e)?e.map(n=>Oa(n,t)):Nb(String(e).replace(t,""))}const Mb=e=>Oa(e,Lb),Vb=e=>Oa(e,Fb);function If(e){const t=Object.create(null);return $.forEach(e.toJSON(),(n,s)=>{t[s]=Vb(n)}),t}const gc=Symbol("internals");function Ms(e){return e&&String(e).trim().toLowerCase()}function ti(e){return e===!1||e==null?e:$.isArray(e)?e.map(ti):Mb(String(e))}function jb(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 Ub=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function lr(e,t,n,s,o){if($.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!$.isString(t)){if($.isString(s))return t.indexOf(s)!==-1;if($.isRegExp(s))return s.test(t)}}function qb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Hb(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(o,i,r){return this[s].call(this,t,o,i,r)},configurable:!0})})}let Tt=class{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function i(a,l,d){const c=Ms(l);if(!c)throw new Error("header name must be a non-empty string");const u=$.findKey(o,c);(!u||o[u]===void 0||d===!0||d===void 0&&o[u]!==!1)&&(o[u||l]=ti(a))}const r=(a,l)=>$.forEach(a,(d,c)=>i(d,c,l));if($.isPlainObject(t)||t instanceof this.constructor)r(t,n);else if($.isString(t)&&(t=t.trim())&&!Ub(t))r(Db(t),n);else if($.isObject(t)&&$.isIterable(t)){let a={},l,d;for(const c of t){if(!$.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[d=c[0]]=(l=a[d])?$.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}r(a,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=Ms(t),t){const s=$.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return jb(o);if($.isFunction(n))return n.call(this,o,s);if($.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ms(t),t){const s=$.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||lr(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function i(r){if(r=Ms(r),r){const a=$.findKey(s,r);a&&(!n||lr(s,s[a],a,n))&&(delete s[a],o=!0)}}return $.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||lr(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,s={};return $.forEach(this,(o,i)=>{const r=$.findKey(s,i);if(r){n[r]=ti(o),delete n[i];return}const a=t?qb(i):String(i).trim();a!==i&&delete n[i],n[a]=ti(o),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&$.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[gc]=this[gc]={accessors:{}}).accessors,o=this.prototype;function i(r){const a=Ms(r);s[a]||(Hb(o,r),s[a]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}};Tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(Tt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});$.freezeMethods(Tt);const zb="[REDACTED ****]";function Wb(e){if($.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if($.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Kb(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),s=[],o=i=>{if(i===null||typeof i!="object"||$.isBuffer(i))return i;if(s.indexOf(i)!==-1)return;i instanceof Tt&&(i=i.toJSON()),s.push(i);let r;if($.isArray(i))r=[],i.forEach((a,l)=>{const d=o(a);$.isUndefined(d)||(r[l]=d)});else{if(!$.isPlainObject(i)&&Wb(i))return s.pop(),i;r=Object.create(null);for(const[a,l]of Object.entries(i)){const d=n.has(a.toLowerCase())?zb:o(l);$.isUndefined(d)||(r[a]=d)}}return s.pop(),r};return o(e)}let he=class Of extends Error{static from(t,n,s,o,i,r){const a=new Of(t.message,n||t.code,s,o,i);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),r&&Object.assign(a,r),a}constructor(t,n,s,o,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&$.hasOwnProp(t,"redact")?t.redact:void 0,s=$.isArray(n)&&n.length>0?Kb(t,n):$.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}}};he.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";he.ERR_BAD_OPTION="ERR_BAD_OPTION";he.ECONNABORTED="ECONNABORTED";he.ETIMEDOUT="ETIMEDOUT";he.ECONNREFUSED="ECONNREFUSED";he.ERR_NETWORK="ERR_NETWORK";he.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";he.ERR_DEPRECATED="ERR_DEPRECATED";he.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";he.ERR_BAD_REQUEST="ERR_BAD_REQUEST";he.ERR_CANCELED="ERR_CANCELED";he.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";he.ERR_INVALID_URL="ERR_INVALID_URL";he.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Gb=null;function Hr(e){return $.isPlainObject(e)||$.isArray(e)}function Pf(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function cr(e,t,n){return e?e.concat(t).map(function(o,i){return o=Pf(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Jb(e){return $.isArray(e)&&!e.some(Hr)}const Xb=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Mi(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!$.isUndefined(v[p])});const s=n.metaTokens,o=n.visitor||u,i=n.dots,r=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,d=a&&$.isSpecCompliantForm(t);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if($.isDate(m))return m.toISOString();if($.isBoolean(m))return m.toString();if(!d&&$.isBlob(m))throw new he("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(m)||$.isTypedArray(m)?d&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,v){let S=m;if($.isReactNative(t)&&$.isReactNativeBlob(m))return t.append(cr(v,p,i),c(m)),!1;if(m&&!v&&typeof m=="object"){if($.endsWith(p,"{}"))p=s?p:p.slice(0,-2),m=JSON.stringify(m);else if($.isArray(m)&&Jb(m)||($.isFileList(m)||$.endsWith(p,"[]"))&&(S=$.toArray(m)))return p=Pf(p),S.forEach(function(x,b){!($.isUndefined(x)||x===null)&&t.append(r===!0?cr([p],b,i):r===null?p:p+"[]",c(x))}),!1}return Hr(m)?!0:(t.append(cr(v,p,i),c(m)),!1)}const f=[],h=Object.assign(Xb,{defaultVisitor:u,convertValue:c,isVisitable:Hr});function g(m,p,v=0){if(!$.isUndefined(m)){if(v>l)throw new he("Object is too deeply nested ("+v+" levels). Max depth: "+l,he.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),$.forEach(m,function(T,x){(!($.isUndefined(T)||T===null)&&o.call(t,T,$.isString(x)?x.trim():x,p,h))===!0&&g(T,p?p.concat(x):[x],v+1)}),f.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return g(e),t}function _c(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function Pa(e,t){this._pairs=[],e&&Mi(e,this,t)}const $f=Pa.prototype;$f.append=function(t,n){this._pairs.push([t,n])};$f.toString=function(t){const n=t?function(s){return t.call(this,s,_c)}:_c;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Yb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Bf(e,t,n){if(!t)return e;const s=n&&n.encode||Yb,o=$.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let r;if(i?r=i(t,o):r=$.isURLSearchParams(t)?t.toString():new Pa(t,o).toString(s),r){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+r}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){$.forEach(this.handlers,function(s){s!==null&&t(s)})}}const $a={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Qb=typeof URLSearchParams<"u"?URLSearchParams:Pa,Zb=typeof FormData<"u"?FormData:null,ew=typeof Blob<"u"?Blob:null,tw={isBrowser:!0,classes:{URLSearchParams:Qb,FormData:Zb,Blob:ew},protocols:["http","https","file","blob","url","data"]},Ba=typeof window<"u"&&typeof document<"u",zr=typeof navigator=="object"&&navigator||void 0,nw=Ba&&(!zr||["ReactNative","NativeScript","NS"].indexOf(zr.product)<0),sw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ow=Ba&&window.location.href||"http://localhost",iw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ba,hasStandardBrowserEnv:nw,hasStandardBrowserWebWorkerEnv:sw,navigator:zr,origin:ow},Symbol.toStringTag,{value:"Module"})),bt={...iw,...tw};function rw(e,t){return Mi(e,new bt.classes.URLSearchParams,{visitor:function(n,s,o,i){return bt.isNode&&$.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function aw(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lw(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 Df(e){function t(n,s,o,i){let r=n[i++];if(r==="__proto__")return!0;const a=Number.isFinite(+r),l=i>=n.length;return r=!r&&$.isArray(o)?o.length:r,l?($.hasOwnProp(o,r)?o[r]=$.isArray(o[r])?o[r].concat(s):[o[r],s]:o[r]=s,!a):((!$.hasOwnProp(o,r)||!$.isObject(o[r]))&&(o[r]=[]),t(n,s,o[r],i)&&$.isArray(o[r])&&(o[r]=lw(o[r])),!a)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(s,o)=>{t(aw(s),o,n,0)}),n}return null}const rs=(e,t)=>e!=null&&$.hasOwnProp(e,t)?e[t]:void 0;function cw(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ro={transitional:$a,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return o?JSON.stringify(Df(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){const l=rs(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return rw(t,l).toString();if((a=$.isFileList(t))||s.indexOf("multipart/form-data")>-1){const d=rs(this,"env"),c=d&&d.FormData;return Mi(a?{"files[]":t}:t,c&&new c,l)}}return i||o?(n.setContentType("application/json",!1),cw(t)):t}],transformResponse:[function(t){const n=rs(this,"transitional")||Ro.transitional,s=n&&n.forcedJSONParsing,o=rs(this,"responseType"),i=o==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(s&&!o||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,rs(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?he.from(l,he.ERR_BAD_RESPONSE,this,null,rs(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bt.classes.FormData,Blob:bt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch","query"],e=>{Ro.headers[e]={}});function ur(e,t){const n=this||Ro,s=t||n,o=Tt.from(s.headers);let i=s.data;return $.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Nf(e){return!!(e&&e.__CANCEL__)}let Io=class extends he{constructor(t,n,s){super(t??"canceled",he.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 he("Request failed with status code "+n.status,n.status>=400&&n.status<500?he.ERR_BAD_REQUEST:he.ERR_BAD_RESPONSE,n.config,n.request,n))}function uw(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function dw(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,i=0,r;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),c=s[i];r||(r=d),n[o]=l,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-r<t)return;const h=c&&d-c;return h?Math.round(f*1e3/h):void 0}}function fw(e,t){let n=0,s=1e3/t,o,i;const r=(d,c=Date.now())=>{n=c,o=null,i&&(clearTimeout(i),i=null),e(...d)};return[(...d)=>{const c=Date.now(),u=c-n;u>=s?r(d,c):(o=d,i||(i=setTimeout(()=>{i=null,r(o)},s-u)))},()=>o&&r(o)]}const fi=(e,t,n=3)=>{let s=0;const o=dw(50,250);return fw(i=>{if(!i||typeof i.loaded!="number")return;const r=i.loaded,a=i.lengthComputable?i.total:void 0,l=a!=null?Math.min(r,a):r,d=Math.max(0,l-s),c=o(d);s=Math.max(s,l);const u={loaded:l,total:a,progress:a?l/a:void 0,bytes:d,rate:c||void 0,estimated:c&&a?(a-l)/c:void 0,event:i,lengthComputable:a!=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)=>$.asap(()=>e(...t)),hw=bt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,bt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(bt.origin),bt.navigator&&/(msie|trident)/i.test(bt.navigator.userAgent)):()=>!0,pw=bt.hasStandardBrowserEnv?{write(e,t,n,s,o,i,r){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];$.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),$.isString(s)&&a.push(`path=${s}`),$.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),$.isString(r)&&a.push(`SameSite=${r}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;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 mw(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ff(e,t,n){let s=!mw(t);return e&&(s||n===!1)?gw(e,t):t}const wc=e=>e instanceof Tt?{...e}:e;function Qn(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,c,u,f){return $.isPlainObject(d)&&$.isPlainObject(c)?$.merge.call({caseless:f},d,c):$.isPlainObject(c)?$.merge({},c):$.isArray(c)?c.slice():c}function o(d,c,u,f){if($.isUndefined(c)){if(!$.isUndefined(d))return s(void 0,d,u,f)}else return s(d,c,u,f)}function i(d,c){if(!$.isUndefined(c))return s(void 0,c)}function r(d,c){if($.isUndefined(c)){if(!$.isUndefined(d))return s(void 0,d)}else return s(void 0,c)}function a(d,c,u){if($.hasOwnProp(t,u))return s(d,c);if($.hasOwnProp(e,u))return s(void 0,d)}const l={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,allowedSocketPaths:r,responseEncoding:r,validateStatus:a,headers:(d,c,u)=>o(wc(d),wc(c),u,!0)};return $.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const u=$.hasOwnProp(l,c)?l[c]:o,f=$.hasOwnProp(e,c)?e[c]:void 0,h=$.hasOwnProp(t,c)?t[c]:void 0,g=u(f,h,c);$.isUndefined(g)&&u!==a||(n[c]=g)}),n}const _w=["content-type","content-length"];function vw(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([s,o])=>{_w.includes(s.toLowerCase())&&e.set(s,o)})}const yw=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Mf=e=>{const t=Qn({},e),n=f=>$.hasOwnProp(t,f)?t[f]:void 0,s=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),r=n("xsrfCookieName");let a=n("headers");const l=n("auth"),d=n("baseURL"),c=n("allowAbsoluteUrls"),u=n("url");if(t.headers=a=Tt.from(a),t.url=Bf(Ff(d,u,c),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?yw(l.password):""))),$.isFormData(s)&&(bt.hasStandardBrowserEnv||bt.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):$.isFunction(s.getHeaders)&&vw(a,s.getHeaders(),n("formDataHeaderPolicy"))),bt.hasStandardBrowserEnv&&($.isFunction(o)&&(o=o(t)),o===!0||o==null&&hw(t.url))){const h=i&&r&&pw.read(r);h&&a.set(i,h)}return t},bw=typeof XMLHttpRequest<"u",ww=bw&&function(e){return new Promise(function(n,s){const o=Mf(e);let i=o.data;const r=Tt.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:d}=o,c,u,f,h,g;function m(){h&&h(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function v(){if(!p)return;const T=Tt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:T,config:e,request:p};Lf(function(B){n(B),m()},function(B){s(B),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 he("Request aborted",he.ECONNABORTED,e,p)),m(),p=null)},p.onerror=function(x){const b=x&&x.message?x.message:"Network Error",P=new he(b,he.ERR_NETWORK,e,p);P.event=x||null,s(P),m(),p=null},p.ontimeout=function(){let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||$a;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),s(new he(x,b.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,p)),m(),p=null},i===void 0&&r.setContentType(null),"setRequestHeader"in p&&$.forEach(If(r),function(x,b){p.setRequestHeader(b,x)}),$.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),a&&a!=="json"&&(p.responseType=o.responseType),d&&([f,g]=fi(d,!0),p.addEventListener("progress",f)),l&&p.upload&&([u,h]=fi(l),p.upload.addEventListener("progress",u),p.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(c=T=>{p&&(s(!T||T.type?new Io(null,e,p):T),p.abort(),m(),p=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const S=uw(o.url);if(S&&!bt.protocols.includes(S)){s(new he("Unsupported protocol "+S+":",he.ERR_BAD_REQUEST,e));return}p.send(i||null)})},Ew=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const o=function(l){if(!s){s=!0,r();const d=l instanceof Error?l:this.reason;n.abort(d instanceof he?d:new Io(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new he(`timeout of ${t}ms exceeded`,he.ETIMEDOUT))},t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>$.asap(r),a},Sw=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},Cw=async function*(e,t){for await(const n of xw(e))yield*Sw(n,t)},xw=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()}},Ec=(e,t,n,s)=>{const o=Cw(e,t);let i=0,r,a=l=>{r||(r=!0,s&&s(l))};return new ReadableStream({async pull(l){try{const{done:d,value:c}=await o.next();if(d){a(),l.close();return}let u=c.byteLength;if(n){let f=i+=u;n(f)}l.enqueue(new Uint8Array(c))}catch(d){throw a(d),d}},cancel(l){return a(l),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 r=s.length;const a=s.length;for(let h=0;h<a;h++)if(s.charCodeAt(h)===37&&h+2<a){const g=s.charCodeAt(h+1),m=s.charCodeAt(h+2);(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(r-=2,h+=2)}let l=0,d=a-1;const c=h=>h>=2&&s.charCodeAt(h-2)===37&&s.charCodeAt(h-1)===51&&(s.charCodeAt(h)===68||s.charCodeAt(h)===100);d>=0&&(s.charCodeAt(d)===61?(l++,d--):c(d)&&(l++,d-=3)),l===1&&d>=0&&(s.charCodeAt(d)===61||c(d))&&l++;const f=Math.floor(r/4)*3-(l||0);return f>0?f:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(s,"utf8");let i=0;for(let r=0,a=s.length;r<a;r++){const l=s.charCodeAt(r);if(l<128)i+=1;else if(l<2048)i+=2;else if(l>=55296&&l<=56319&&r+1<a){const d=s.charCodeAt(r+1);d>=56320&&d<=57343?(i+=4,r++):i+=3}else i+=3}return i}const Da="1.16.1",Sc=64*1024,{isFunction:Go}=$,Cc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kw=e=>{const t=$.global!==void 0&&$.global!==null?$.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=$.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:r}=e,a=o?Go(o):typeof fetch=="function",l=Go(i),d=Go(r);if(!a)return!1;const c=a&&Go(n),u=a&&(typeof s=="function"?(v=>S=>v.encode(S))(new s):async v=>new Uint8Array(await new i(v).arrayBuffer())),f=l&&c&&Cc(()=>{let v=!1;const S=new i(bt.origin,{body:new n,method:"POST",get duplex(){return v=!0,"half"}}),T=S.headers.has("Content-Type");return S.body!=null&&S.body.cancel(),v&&!T}),h=d&&c&&Cc(()=>$.isReadableStream(new r("").body)),g={stream:h&&(v=>v.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!g[v]&&(g[v]=(S,T)=>{let x=S&&S[v];if(x)return x.call(S);throw new he(`Response type '${v}' is not supported`,he.ERR_NOT_SUPPORT,T)})});const m=async v=>{if(v==null)return 0;if($.isBlob(v))return v.size;if($.isSpecCompliantForm(v))return(await new i(bt.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if($.isArrayBufferView(v)||$.isArrayBuffer(v))return v.byteLength;if($.isURLSearchParams(v)&&(v=v+""),$.isString(v))return(await u(v)).byteLength},p=async(v,S)=>{const T=$.toFiniteNumber(v.getContentLength());return T??m(S)};return async v=>{let{url:S,method:T,data:x,signal:b,cancelToken:P,timeout:B,onDownloadProgress:L,onUploadProgress:R,responseType:K,headers:X,withCredentials:z="same-origin",fetchOptions:ee,maxContentLength:G,maxBodyLength:ie}=Mf(v);const de=$.isNumber(G)&&G>-1,ne=$.isNumber(ie)&&ie>-1;let le=o||fetch;K=K?(K+"").toLowerCase():"text";let ke=Ew([b,P&&P.toAbortSignal()],B),Te=null;const se=ke&&ke.unsubscribe&&(()=>{ke.unsubscribe()});let pe;try{if(de&&typeof S=="string"&&S.startsWith("data:")&&Aw(S)>G)throw new he("maxContentLength size of "+G+" exceeded",he.ERR_BAD_RESPONSE,v,Te);if(ne&&T!=="get"&&T!=="head"){const N=await p(X,x);if(typeof N=="number"&&isFinite(N)&&N>ie)throw new he("Request body larger than maxBodyLength limit",he.ERR_BAD_REQUEST,v,Te)}if(R&&f&&T!=="get"&&T!=="head"&&(pe=await p(X,x))!==0){let N=new i(S,{method:"POST",body:x,duplex:"half"}),U;if($.isFormData(x)&&(U=N.headers.get("content-type"))&&X.setContentType(U),N.body){const[D,q]=yc(pe,fi(bc(R)));x=Ec(N.body,Sc,D,q)}}$.isString(z)||(z=z?"include":"omit");const fe=l&&"credentials"in i.prototype;if($.isFormData(x)){const N=X.getContentType();N&&/^multipart\/form-data/i.test(N)&&!/boundary=/i.test(N)&&X.delete("content-type")}X.set("User-Agent","axios/"+Da,!1);const Ae={...ee,signal:ke,method:T.toUpperCase(),headers:If(X.normalize()),body:x,duplex:"half",credentials:fe?z:void 0};Te=l&&new i(S,Ae);let H=await(l?le(Te,ee):le(S,Ae));if(de){const N=$.toFiniteNumber(H.headers.get("content-length"));if(N!=null&&N>G)throw new he("maxContentLength size of "+G+" exceeded",he.ERR_BAD_RESPONSE,v,Te)}const ce=h&&(K==="stream"||K==="response");if(h&&H.body&&(L||de||ce&&se)){const N={};["status","statusText","headers"].forEach(A=>{N[A]=H[A]});const U=$.toFiniteNumber(H.headers.get("content-length")),[D,q]=L&&yc(U,fi(bc(L),!0))||[];let y=0;const w=A=>{if(de&&(y=A,y>G))throw new he("maxContentLength size of "+G+" exceeded",he.ERR_BAD_RESPONSE,v,Te);D&&D(A)};H=new r(Ec(H.body,Sc,w,()=>{q&&q(),se&&se()}),N)}K=K||"text";let E=await g[$.findKey(g,K)||"text"](H,v);if(de&&!h&&!ce){let N;if(E!=null&&(typeof E.byteLength=="number"?N=E.byteLength:typeof E.size=="number"?N=E.size:typeof E=="string"&&(N=typeof s=="function"?new s().encode(E).byteLength:E.length)),typeof N=="number"&&N>G)throw new he("maxContentLength size of "+G+" exceeded",he.ERR_BAD_RESPONSE,v,Te)}return!ce&&se&&se(),await new Promise((N,U)=>{Lf(N,U,{data:E,headers:Tt.from(H.headers),status:H.status,statusText:H.statusText,config:v,request:Te})})}catch(fe){if(se&&se(),ke&&ke.aborted&&ke.reason instanceof he){const Ae=ke.reason;throw Ae.config=v,Te&&(Ae.request=Te),fe!==Ae&&(Ae.cause=fe),Ae}throw fe&&fe.name==="TypeError"&&/Load failed|fetch/i.test(fe.message)?Object.assign(new he("Network Error",he.ERR_NETWORK,v,Te,fe&&fe.response),{cause:fe.cause||fe}):he.from(fe,fe&&fe.code,v,Te,fe&&fe.response)}}},Tw=new Map,Vf=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:o}=t,i=[s,o,n];let r=i.length,a=r,l,d,c=Tw;for(;a--;)l=i[a],d=c.get(l),d===void 0&&c.set(l,d=a?new Map:kw(t)),c=d;return d};Vf();const Na={http:Gb,xhr:ww,fetch:{get:Vf}};$.forEach(Na,(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}`,Rw=e=>$.isFunction(e)||e===null||e===!1;function Iw(e,t){e=$.isArray(e)?e:[e];const{length:n}=e;let s,o;const i={};for(let r=0;r<n;r++){s=e[r];let a;if(o=s,!Rw(s)&&(o=Na[(a=String(s)).toLowerCase()],o===void 0))throw new he(`Unknown adapter '${a}'`);if(o&&($.isFunction(o)||(o=o.get(t))))break;i[a||"#"+r]=o}if(!o){const r=Object.entries(i).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=n?r.length>1?`since :
|
||
`+r.map(xc).join(`
|
||
`):" "+xc(r[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const jf={getAdapter:Iw,adapters:Na};function dr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Io(null,e)}function Ac(e){return dr(e),e.headers=Tt.from(e.headers),e.data=ur.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){dr(e),e.response=s;try{s.data=ur.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=Tt.from(s.headers),s},function(s){if(!Nf(s)&&(dr(e),s&&s.response)){e.response=s.response;try{s.response.data=ur.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=Tt.from(s.response.headers)}return Promise.reject(s)})}const Vi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vi[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const kc={};Vi.transitional=function(t,n,s){function o(i,r){return"[Axios v"+Da+"] Transitional option '"+i+"'"+r+(s?". "+s:"")}return(i,r,a)=>{if(t===!1)throw new he(o(r," has been removed"+(n?" in "+n:"")),he.ERR_DEPRECATED);return n&&!kc[r]&&(kc[r]=!0,console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,r,a):!0}};Vi.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Ow(e,t,n){if(typeof e!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const i=s[o],r=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(r){const a=e[i],l=a===void 0||r(a,i,e);if(l!==!0)throw new he("option "+i+" must be "+l,he.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new he("Unknown option "+i,he.ERR_BAD_OPTION)}}const ni={assertOptions:Ow,validators:Vi},Vt=ni.validators;let Xn=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 r=o.stack.indexOf(`
|
||
`);return r===-1?"":o.stack.slice(r+1)})();try{if(!s.stack)s.stack=i;else if(i){const r=i.indexOf(`
|
||
`),a=r===-1?-1:i.indexOf(`
|
||
`,r+1),l=a===-1?"":i.slice(a+1);String(s.stack).endsWith(l)||(s.stack+=`
|
||
`+i)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Qn(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:i}=n;s!==void 0&&ni.assertOptions(s,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean),legacyInterceptorReqResOrdering:Vt.transitional(Vt.boolean)},!1),o!=null&&($.isFunction(o)?n.paramsSerializer={serialize:o}:ni.assertOptions(o,{encode:Vt.function,serialize:Vt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ni.assertOptions(n,{baseUrl:Vt.spelling("baseURL"),withXsrfToken:Vt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=i&&$.merge(i.common,i[n.method]);i&&$.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete i[g]}),n.headers=Tt.concat(r,i);const a=[];let l=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;l=l&&m.synchronous;const p=n.transitional||$a;p&&p.legacyInterceptorReqResOrdering?a.unshift(m.fulfilled,m.rejected):a.push(m.fulfilled,m.rejected)});const d=[];this.interceptors.response.forEach(function(m){d.push(m.fulfilled,m.rejected)});let c,u=0,f;if(!l){const g=[Ac.bind(this),void 0];for(g.unshift(...a),g.push(...d),f=g.length,c=Promise.resolve(n);u<f;)c=c.then(g[u++],g[u++]);return c}f=a.length;let h=n;for(;u<f;){const g=a[u++],m=a[u++];try{h=g(h)}catch(p){m.call(this,p);break}}try{c=Ac.call(this,h)}catch(g){return Promise.reject(g)}for(u=0,f=d.length;u<f;)c=c.then(d[u++],d[u++]);return c}getUri(t){t=Qn(this.defaults,t);const n=Ff(t.baseURL,t.url,t.allowAbsoluteUrls);return Bf(n,t.params,t.paramsSerializer)}};$.forEach(["delete","get","head","options"],function(t){Xn.prototype[t]=function(n,s){return this.request(Qn(s||{},{method:t,url:n,data:(s||{}).data}))}});$.forEach(["post","put","patch","query"],function(t){function n(s){return function(i,r,a){return this.request(Qn(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}Xn.prototype[t]=n(),t!=="query"&&(Xn.prototype[t+"Form"]=n(!0))});let Pw=class Uf{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 r=new Promise(a=>{s.subscribe(a),i=a}).then(o);return r.cancel=function(){s.unsubscribe(i)},r},t(function(i,r,a){s.reason||(s.reason=new Io(i,r,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Uf(function(o){t=o}),cancel:t}}};function $w(e){return function(n){return e.apply(null,n)}}function Bw(e){return $.isObject(e)&&e.isAxiosError===!0}const Wr={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(Wr).forEach(([e,t])=>{Wr[t]=e});function qf(e){const t=new Xn(e),n=Ef(Xn.prototype.request,t);return $.extend(n,Xn.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return qf(Qn(e,o))},n}const Xe=qf(Ro);Xe.Axios=Xn;Xe.CanceledError=Io;Xe.CancelToken=Pw;Xe.isCancel=Nf;Xe.VERSION=Da;Xe.toFormData=Mi;Xe.AxiosError=he;Xe.Cancel=Xe.CanceledError;Xe.all=function(t){return Promise.all(t)};Xe.spread=$w;Xe.isAxiosError=Bw;Xe.mergeConfig=Qn;Xe.AxiosHeaders=Tt;Xe.formToJSON=e=>Df($.isHTMLForm(e)?new FormData(e):e);Xe.getAdapter=jf.getAdapter;Xe.HttpStatusCode=Wr;Xe.default=Xe;const{Axios:xk,AxiosError:Ak,CanceledError:kk,isCancel:Tk,CancelToken:Rk,VERSION:Ik,all:Ok,Cancel:Pk,isAxiosError:$k,spread:Bk,toFormData:Dk,AxiosHeaders:Nk,HttpStatusCode:Lk,formToJSON:Fk,getAdapter:Mk,mergeConfig:Vk,create:jk}=Xe;let Kr=null;function Dw(e){Kr=e}async function Nw(){return Kr?(await Kr(),!0):!1}const Me=Xe.create({baseURL:"/api",timeout:2e4,headers:{"Content-Type":"application/json"}});Me.interceptors.request.use(e=>{const t=localStorage.getItem("h5_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));Me.interceptors.response.use(e=>{const t=e.data;return t.code!==0?t.code===1002?(Rc("biz1002"),Promise.reject({code:1002,message:t.message||"未授权"})):(Ee(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&&Ee(t),Promise.reject({code:n,message:t})});const Lw="oauth_redirect_count",Tc=3;let Vs=null;async function Rc(e){const t=e==="http401"?"HTTP 401":"业务码 1002";return Vs?(console.warn(`[API] ${t} 未授权 — 已有处理进行中,等待完成`),Vs):(console.warn(`[API] ${t} 未授权,清除凭证并跳转登录`),Vs=(async()=>{try{if(localStorage.removeItem("h5_token"),localStorage.removeItem("employee_id"),localStorage.removeItem("employee_name"),"wwa8c87970b2011f41"){const s=parseInt(localStorage.getItem(Lw)||"0",10);if(s>=Tc){console.error("[API] OAuth2 重定向次数超限,疑似无限循环,停止重定向"),Ee("登录状态异常,请刷新页面重试");return}console.warn(`[API] OAuth2 重定向计数: ${s}/${Tc}`),await Nw()||(console.warn("[API] 认证过期处理器未注册,降级为刷新页面"),window.location.reload())}}catch(n){console.warn("[API] 401 处理失败,刷新页面:",n),window.location.reload()}finally{Vs=null}})(),Vs)}function Gr(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:typeof e.content=="string"?e.content:e.content?JSON.stringify(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 Hf(e){return(e||[]).map(Gr)}async function Fw(){return await Me.get("/h5/user")}function Mw(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 Vw(){const e=await Me.get("/h5/conversations/current");return Mw(e)}async function Ic(e){const t=await Me.post("/h5/conversations/current/messages",e,{timeout:3e4});return{user_message:Gr(t.user_message),ai_reply:t.ai_reply?Gr(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 jw(e){const n=await Me.get("/h5/conversations/current/messages/poll",{params:e}),s=(n==null?void 0:n.items)||n||[];return Hf(s)}async function Oc(e){const n=await Me.get("/h5/conversations/current/messages",{params:e}),s=(n==null?void 0:n.items)||[];return{items:Hf(s),has_more:(n==null?void 0:n.has_more)||!1}}async function Uw(e){return await Me.post("/h5/conversations/current/shake",e)}async function qw(){const t=await Me.get("/h5/approval-links");return(t==null?void 0:t.items)||t||[]}async function Hw(){return await Me.get("/approval/keywords")||[]}async function zw(e){return await Me.post("/approval/jump",{template_id:e})}async function Ww(){const t=await Me.get("/h5/software-downloads");return(t==null?void 0:t.items)||t||[]}async function Kw(e){return await Me.post(`/h5/conversations/${e}/join`)}async function Gw(e){return await Me.post(`/h5/conversations/${e}/leave-participant`)}async function Jw(e,t){return await Me.post(`/conversation/${e}/evaluate`,t)}async function Xw(e){return await Me.get(`/conversation/${e}/evaluation`)}async function Yw(e){return await Me.post("/h5/oauth/callback",e)}async function Qw(e){return await Me.post("/h5/mock-login",e)}async function Zw(){return await Me.get("/h5/me")}async function e0(){const e=window.location.origin+"/h5/";return await Me.get("/h5/oauth/authorize",{params:{redirect_uri:e}})}const fr="h5_token",qn="employee_id",as="employee_name",js="oauth_redirect_count",Pc=3,xt=Ta("employee",()=>{const e=F(localStorage.getItem(fr)||"");e.value&&!r(e.value)&&localStorage.removeItem(js);const t=F(null),n=F(!1),s=M(()=>e.value?!r(e.value):!1),o=M(()=>{var b;return((b=t.value)==null?void 0:b.employee_id)||localStorage.getItem(qn)||""}),i=M(()=>{var b;return((b=t.value)==null?void 0:b.employee_name)||localStorage.getItem(as)||""});function r(b){try{const P=b.split(".");if(P.length!==3)return!1;const B=JSON.parse(atob(P[1]));return B.exp?Math.floor(Date.now()/1e3)>=B.exp-60:!1}catch{return!1}}function a(b){e.value=b,localStorage.setItem(fr,b)}function l(){e.value="",t.value=null,localStorage.removeItem(fr),localStorage.removeItem(qn),localStorage.removeItem(as)}function d(){localStorage.removeItem(js)}function c(){const P=parseInt(localStorage.getItem(js)||"0",10)+1;return localStorage.setItem(js,String(P)),P}function u(){return parseInt(localStorage.getItem(js)||"0",10)>=Pc}async function f(b,P){n.value=!0;try{const B=await Yw({code:b,state:P});return a(B.token),localStorage.setItem(qn,B.employee_id),localStorage.setItem(as,B.employee_name),t.value={employee_id:B.employee_id,employee_name:B.employee_name,department:B.department,position:B.position,mobile:"",email:"",avatar:B.avatar,is_vip:!1},console.log("[EmployeeStore] OAuth2 登录成功:",B.employee_name),d(),B}catch(B){throw console.error("[EmployeeStore] OAuth2 登录失败:",B),B}finally{n.value=!1}}async function h(b,P){n.value=!0;try{const B=await Qw({employee_id:b,employee_name:P||"测试用户"});return a(B.token),localStorage.setItem(qn,B.employee_id),localStorage.setItem(as,B.employee_name),t.value={employee_id:B.employee_id,employee_name:B.employee_name,department:B.department,position:B.position,mobile:"",email:"",avatar:B.avatar,is_vip:!1},console.log("[EmployeeStore] Mock 登录成功:",B.employee_name),d(),B}catch(B){throw console.error("[EmployeeStore] Mock 登录失败:",B),B}finally{n.value=!1}}async function g(){if(e.value)try{const b=await Zw();t.value=b,localStorage.setItem(qn,b.employee_id),localStorage.setItem(as,b.employee_name),console.log("[EmployeeStore] 获取员工信息成功:",b.employee_name)}catch(b){throw console.error("[EmployeeStore] 获取员工信息失败:",b),b}}async function m(){const b=new URLSearchParams(window.location.search),P=b.get("invite"),B=b.get("eid");P&&(sessionStorage.setItem("h5_invite_conv_id",P),B&&sessionStorage.setItem("h5_invite_eid",B));const L=window.location.origin+"/h5/";try{const z=await e0();if(z.authorize_url){window.location.href=z.authorize_url;return}}catch(z){console.warn("[EmployeeStore] 从后端获取授权URL失败,尝试本地构造:",z)}const R="wwa8c87970b2011f41",K=encodeURIComponent(L),X=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${R}&redirect_uri=${K}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`;window.location.href=X}async function p(){if(console.warn("[EmployeeStore] Token 已过期或无效,重新授权"),u()){console.error("[EmployeeStore] OAuth2 重定向次数超限,疑似无限循环,停止重定向"),l(),d();const{showToast:P}=await ds(async()=>{const{showToast:B}=await import("./index-C81wf5xM.js");return{showToast:B}},__vite__mapDeps([0,1,2,3]));P("登录状态异常,请刷新页面重试");return}l();const b=c();console.warn(`[EmployeeStore] OAuth2 重定向计数: ${b}/${Pc}`),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 S(){l(),console.log("[EmployeeStore] 已登出")}function T(b){a(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(as,b.name)}return Dw(p),{token:e,employeeInfo:t,authenticating:n,isAuthenticated:s,employeeId:o,employeeName:i,handleOAuthCallback:f,mockLogin:h,fetchEmployeeInfo:g,redirectToOAuth:m,handleUnauthorized:p,devLogin:v,logout:S,setToken:T,setUserInfo:x}}),t0=Object.freeze(Object.defineProperty({__proto__:null,useEmployeeStore:xt},Symbol.toStringTag,{value:"Module"})),n0=3e4,s0=3e4,o0=1e3;let so=null;function i0(e){return so&&so.readyState===WebSocket.OPEN?(so.send(JSON.stringify(e)),!0):(console.warn("[H5 WS] WebSocket 未连接,无法发送消息:",e),!1)}function r0(){let e=null,t=null,n=null,s=0,o=!1;function i(){const u=xt(),f=u.employeeId,h=u.token;if(!f||!h){console.warn("[H5 WS] 未登录或缺少token,跳过连接");return}e&&r(),o=!1;const g=window.location.protocol==="https:"?"wss:":"ws:",m=window.location.host,p=`${g}//${m}/ws/h5/${f}`;console.log(`[H5 WS] 正在连接: ${p}`),e=new WebSocket(p,[`bearer.${h}`]),so=e,e.onopen=()=>{console.log("[H5 WS] 连接成功"),s=0,a(),Ot().stopPolling()},e.onmessage=v=>{try{const S=JSON.parse(v.data);c(S)}catch(S){console.error("[H5 WS] 消息解析失败:",S)}},e.onclose=()=>{if(console.log("[H5 WS] 连接关闭"),l(),e=null,!o){const v=Ot();v.cancelStreamingBubble(),v.startPolling(),d()}},e.onerror=v=>{console.error("[H5 WS] 连接错误:",v)}}function r(){o=!0,n&&(clearTimeout(n),n=null),l(),e&&(e.close(),e=null),so=null,s=0,console.log("[H5 WS] 已主动断开连接")}function a(){l(),t=setInterval(()=>{e&&e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"ping"}))},n0)}function l(){t&&(clearInterval(t),t=null)}function d(){if(o)return;const u=Math.min(o0*Math.pow(2,s),s0);s++,console.log(`[H5 WS] 将在 ${u/1e3} 秒后重连(第 ${s} 次)`),n&&clearTimeout(n),n=setTimeout(()=>{console.log("[H5 WS] 正在重连..."),i()},u)}function c(u){var h,g,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":(g=u.data)!=null&&g.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 S=xt();u.data.changed.map(x=>x.id).includes(S.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"asset_recommend":u.data&&f.handleAssetRecommend(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:r}}const a0="h5_messages_cache",l0=7,c0=100;function La(e){return`${a0}_${e}`}function u0(e){try{const t=La(e),n=localStorage.getItem(t);if(!n)return null;const s=JSON.parse(n),o=s.timestamp||0,i=Date.now(),r=l0*24*60*60*1e3;return i-o>r?(localStorage.removeItem(t),null):s.messages||null}catch(t){return console.warn("[Store] 读取消息缓存失败:",t),null}}function Us(e,t){try{const n=La(e),s=t.slice(-c0);localStorage.setItem(n,JSON.stringify({messages:s,timestamp:Date.now()}))}catch(n){console.warn("[Store] 保存消息缓存失败:",n)}}function d0(e){try{const t=La(e);localStorage.removeItem(t)}catch(t){console.warn("[Store] 清除消息缓存失败:",t)}}function f0(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=Ta("conversation",()=>{const e=F(null),t=F(null),n=F([]),s=F(!1),o=F(!1),i=F(!1),r=F(!0),a=F(null),l=F(!1),d=F([]),c=F(!1),u=F(""),f=F([]),h=F(""),g=F(!1),m=F([]),p=F(""),v=F(null),S=F([]),T=F(!1),x=F([]),b=F(0),P=F([]);function B(O){!O.recommends||O.recommends.length===0||(P.value.push(...O.recommends),P.value.length>5&&P.value.splice(0,P.value.length-5),b.value+=O.recommends.length,console.log("[Store] 资产推荐已接收:",O.recommends.length,"条, 未读:",b.value))}function L(){P.value=[]}const R=F(null),K=F(new Set),X=M(()=>xt().isAuthenticated),z=M(()=>t.value?t.value.status!=="resolved":!1),ee=M(()=>!t.value||!e.value||t.value.employee_id===e.value.employee_id?!1:S.value.some(O=>{var Y;return O.id===((Y=e.value)==null?void 0:Y.employee_id)})),G=M(()=>S.value.filter(Y=>Y.joined).length),ie=M(()=>{const O={};for(const Y of d.value)O[Y.category]||(O[Y.category]=[]),O[Y.category].push(Y);return O}),de=M(()=>{const O={};for(const Y of f.value)O[Y.category]||(O[Y.category]=[]),O[Y.category].push(Y);return O});function ne(O){const Y=K.value;if(Y.delete(O),Y.add(O),Y.size>500){const ue=Y.values().next().value;ue&&Y.delete(ue)}}function le(O){if(K.value.has(O.message_id)){console.log(`[H5 WS去重] 跳过重复消息: ${O.message_id}`);return}ne(O.message_id),n.value.push({message_id:O.message_id,conversation_id:O.conversation_id,message_type:O.sender_type||"system",msg_type:O.msg_type||"text",content:typeof O.content=="string"?O.content:O.content?JSON.stringify(O.content):"",sender_name:O.sender_name||"",created_at:new Date().toISOString()}),h.value=O.message_id}async function ke(O,Y){await xt().handleOAuthCallback(O,Y)}async function Te(){try{const O=xt();O.employeeInfo&&(e.value={employee_id:O.employeeInfo.employee_id,employee_name:O.employeeInfo.employee_name,department:O.employeeInfo.department,position:O.employeeInfo.position,level:"",is_vip:O.employeeInfo.is_vip,avatar_url:O.employeeInfo.avatar});const Y=await Fw();e.value=Y,console.log("[Store] 获取用户信息成功:",Y.employee_name)}catch(O){throw console.error("[Store] 获取用户信息失败:",O),O}}async function se(){try{const O=await Vw();t.value=O,i.value=(O==null?void 0:O.can_call_agent)??!1,S.value=(O==null?void 0:O.participants)||[],console.log("[Store] 获取当前会话:",O?O.conversation_id:"无活跃会话","参与者:",S.value.length)}catch(O){console.error("[Store] 获取当前会话失败:",O)}}async function pe(O,Y){var gt,xn,Va,ja;if(console.log("[Store] sendNewMessage 开始执行, content:",O,"options:",Y),!O.trim()){console.warn("[Store] content 为空,直接返回");return}const ue=xt(),ge=`temp_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,Oe={message_id:ge,conversation_id:((gt=t.value)==null?void 0:gt.conversation_id)||"",message_type:"employee",msg_type:(Y==null?void 0:Y.msg_type)||"text",content:O.trim(),sender_name:ue.employeeName||"我",created_at:new Date().toISOString(),status:"sending"};n.value.push(Oe),console.log("[Store] 乐观更新:临时消息已添加到列表, tempMessageId:",ge),s.value=!0;try{const dt={content:O.trim()};Y!=null&&Y.msg_type&&(dt.msg_type=Y.msg_type,dt.media_url=Y.media_url,dt.file_name=Y.file_name,dt.file_size=Y.file_size),console.log("[Store] 请求参数:",JSON.stringify(dt));const tt=await Ic(dt);if(console.log("[Store] API 响应:",tt),!tt)throw console.error("[Store] API 响应为空"),new Error("API 响应为空");if(!tt.user_message)throw console.error("[Store] API 响应缺少 user_message"),new Error("API 响应格式错误:缺少 user_message");const Bo=n.value.findIndex(Do=>Do.message_id===ge);if(Bo!==-1){n.value[Bo]={...tt.user_message,status:"sent"},ne(tt.user_message.message_id),h.value=tt.user_message.message_id,console.log("[Store] 乐观更新成功:临时消息已替换为真实消息");const Do=(xn=t.value)==null?void 0:xn.conversation_id;Do&&Us(Do,n.value)}else n.value.push({...tt.user_message,status:"sent"}),ne(tt.user_message.message_id),h.value=tt.user_message.message_id;i.value=tt.can_call_agent??!1,t.value&&(t.value.can_call_agent=tt.can_call_agent??!1,t.value.ai_substantive_reply_count=tt.ai_reply_count??0),!t.value&&((Va=tt.user_message)!=null&&Va.conversation_id)&&(console.log("[Store] 发送消息后 currentConversation 为 null,重新获取会话信息..."),await se(),t.value&&(t.value.can_call_agent=tt.can_call_agent??!1,t.value.ai_substantive_reply_count=tt.ai_reply_count??0,console.log("[Store] 新会话已获取:",t.value.conversation_id))),console.log("[Store] 消息发送成功, AI回复计数:",tt.ai_reply_count,"可呼叫坐席:",tt.can_call_agent,"是否引导:",tt.is_guidance)}catch(dt){console.error("[Store] 消息发送失败:",dt),console.error("[Store] 错误详情:",dt==null?void 0:dt.message,(ja=dt==null?void 0:dt.response)==null?void 0:ja.data,dt==null?void 0:dt.stack);const tt=n.value.findIndex(Bo=>Bo.message_id===ge);throw tt!==-1&&(n.value[tt].status="failed",console.log("[Store] 乐观更新失败:临时消息状态已改为 failed")),dt}finally{s.value=!1,console.log("[Store] sendNewMessage finally 执行完成")}}async function fe(){var O;if(!(!X.value||!z.value))try{const Y=h.value?{after_message_id:h.value}:void 0,ue=await jw(Y);if(ue&&ue.length>0){const ge=ue.filter(Oe=>K.value.has(Oe.message_id)?(console.log(`[H5轮询去重] 跳过重复消息: ${Oe.message_id}`),!1):(ne(Oe.message_id),!0));if(ge.length>0){n.value.push(...ge),h.value=ge[ge.length-1].message_id,console.log("[Store] 轮询到新消息:",ge.length,"条");const Oe=(O=t.value)==null?void 0:O.conversation_id;Oe&&Us(Oe,n.value)}}}catch(Y){console.error("[Store] 轮询消息失败:",Y)}}async function Ae(O){var Y;if(!(!X.value||!z.value))try{const ue=await Oc(O);if(ue.items&&ue.items.length>0){const ge=ue.items.filter(Oe=>K.value.has(Oe.message_id)?!1:(ne(Oe.message_id),!0));if(ge.length>0){O!=null&&O.before?n.value.push(...ge):n.value=ge;const Oe=ge[ge.length-1];Oe&&(h.value=Oe.message_id),console.log("[Store] 获取到历史消息:",ge.length,"条");const gt=(Y=t.value)==null?void 0:Y.conversation_id;gt&&Us(gt,n.value)}}}catch(ue){console.error("[Store] 获取历史消息失败:",ue)}}function H(){a.value||(console.log("[Store] 启动消息轮询(3秒间隔)"),a.value=setInterval(()=>{fe()},3e3))}function ce(){a.value&&(console.log("[Store] 停止消息轮询"),clearInterval(a.value),a.value=null)}async function E(){var O,Y;if(o.value)return"pending";o.value=!0;try{const ue=xt(),ge=await Uw({employee_id:ue.employeeId,employee_name:ue.employeeName});console.log("[Store] 招手成功:",ge);const Oe={message_id:`sys_shake_${Date.now()}`,conversation_id:((O=t.value)==null?void 0:O.conversation_id)||"",message_type:"system",content:ge.funny_phrase,sender_name:"系统",created_at:new Date().toISOString()};return n.value.push(Oe),ge.assign_result==="assigned"&&ge.assigned_agent_id?(Oe.content=`${ge.funny_phrase}
|
||
|
||
坐席正在查看您的信息,请等待处理回复!`,t.value&&(t.value.status="serving")):ge.assign_result==="queued"&&(Oe.content=`${ge.funny_phrase}
|
||
|
||
⏳ 当前无空闲坐席,您已进入排队,请耐心等待...`),((Y=ge.conversation)==null?void 0:Y.status)==="serving"&&await se(),ge.assign_result||"queued"}catch(ue){return console.error("[Store] 招手失败:",ue),"error"}finally{o.value=!1}}async function N(){try{const O=await qw();d.value=O,console.log("[Store] 获取审批链接成功:",O.length,"条")}catch(O){console.error("[Store] 获取审批链接失败:",O)}}function U(){c.value=!1,u.value=""}function D(O=""){var ue;const Y={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(Y),console.log("[Store] 手动插入审批卡片消息(快捷按钮触发)")}async function q(){try{const O=await Ww();f.value=O,console.log("[Store] 获取软件下载列表成功:",O.length,"条")}catch(O){console.error("[Store] 获取软件下载列表失败:",O)}}function y(){l.value=!l.value}async function w(O){try{await se();const Y=t.value;Y&&Y.conversation_id!==O&&console.warn("[Store] 当前会话ID不匹配, 期望:",O,"实际:",Y.conversation_id),n.value=[],h.value="",await Ae(),console.log("[Store] 已切换到邀请会话:",O)}catch(Y){console.error("[Store] 切换会话失败:",Y)}}async function A(){if(!t.value)return;const O=t.value.conversation_id;try{await Gw(O),console.log("[Store] 已退出会话:",O),t.value=null,S.value=[],n.value=[],h.value="",ce()}catch(Y){throw console.error("[Store] 退出会话失败:",Y),Y}}function V(){T.value=!T.value}async function J(O){const Y=n.value.findIndex(Oe=>Oe.message_id===O);if(Y===-1){console.warn("[Store] 重试消息找不到:",O);return}const ue=n.value[Y];if(ue.status!=="failed"){console.warn("[Store] 消息状态不是 failed,无法重试:",O);return}const ge=ue.content;n.value.splice(Y,1),console.log("[Store] 删除失败消息:",O),await pe(ge,{msg_type:ue.msg_type,media_url:ue.media_url,file_name:ue.file_name,file_size:ue.file_size})}function W(O){S.value=O,t.value&&(t.value.participants=O),console.log("[Store] 参与者列表已通过WS更新:",O.length,"人")}function oe(){console.log("[Store] 当前用户被移除会话,清空状态"),t.value=null,S.value=[],n.value=[],h.value="",T.value=!1,ce()}function te(O){var ue;if(((ue=t.value)==null?void 0:ue.conversation_id)!==O.conversation_id||!O.chunk)return;if(!R.value){const ge=`ai_stream_${O.conversation_id}_${Date.now()}`;R.value=ge,n.value.push({message_id:ge,conversation_id:O.conversation_id,message_type:"ai",msg_type:"text",content:"",sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString()})}const Y=n.value.findIndex(ge=>ge.message_id===R.value);Y!==-1&&(n.value[Y].content+=O.chunk)}function Z(O){var Oe,gt;if(((Oe=t.value)==null?void 0:Oe.conversation_id)!==O.conversation_id)return;const Y={message_id:O.message_id,conversation_id:O.conversation_id,message_type:O.sender_type||"ai",msg_type:O.msg_type||"text",content:typeof O.content=="string"?O.content:O.content?JSON.stringify(O.content):"",sender_name:O.sender_name||"Duckula(达寇拉)",created_at:new Date().toISOString(),status:"sent",extra_data:O.extra_data||void 0},ue=R.value?n.value.findIndex(xn=>xn.message_id===R.value):-1;if(ue!==-1?n.value[ue]=Y:n.value.push(Y),R.value=null,ne(O.message_id),h.value=O.message_id,i.value=O.can_call_agent??!1,t.value){t.value.can_call_agent=O.can_call_agent??!1,t.value.ai_substantive_reply_count=O.ai_reply_count??0;const xn={ai_handling:"waiting",queued:"waiting",serving:"serving",resolved:"resolved"};t.value.status=xn[O.conversation_status]||t.value.status}const ge=(gt=t.value)==null?void 0:gt.conversation_id;ge&&Us(ge,n.value)}function Q(O){var ge;if(((ge=t.value)==null?void 0:ge.conversation_id)!==O.conversation_id)return;const Y={message_id:`ai_failed_${O.conversation_id}_${Date.now()}`,conversation_id:O.conversation_id,message_type:"ai",msg_type:"text",content:O.message||"⚠️ AI 服务异常,请输入「IT」转人工或稍后重试。",sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString(),status:"sent"},ue=R.value?n.value.findIndex(Oe=>Oe.message_id===R.value):-1;ue!==-1?n.value[ue]=Y:n.value.push(Y),R.value=null}function _e(O){var Oe;if(((Oe=t.value)==null?void 0:Oe.conversation_id)!==O.conversation_id)return;const Y=R.value,ue=Y?n.value.findIndex(gt=>gt.message_id===Y):-1,ge=O.status==="still_thinking"?"仍在思考中,请稍候...":"正在思考...";if(ue!==-1)n.value[ue].content=ge;else{const gt=`ai_thinking_${O.conversation_id}_${Date.now()}`;R.value=gt,n.value.push({message_id:gt,conversation_id:O.conversation_id,message_type:"ai",msg_type:"text",content:ge,sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString()})}}function ae(O){x.value.push(O),x.value.length>3&&x.value.shift(),b.value+=1,console.log("[Store] 动态推荐已接收:",O.title,"未读:",b.value)}function me(){b.value=0}function we(O){const Y=x.value.findIndex(ue=>ue.recommend_id===O);Y!==-1&&x.value.splice(Y,1)}function Ie(O,Y){var gt;const ue=(gt=t.value)==null?void 0:gt.conversation_id;if(!ue)return;const ge=xt();n.value.push({message_id:`option_select_${Date.now()}`,conversation_id:ue,message_type:"employee",msg_type:"text",content:Y,sender_name:ge.employeeName||"我",created_at:new Date().toISOString(),status:"sent"}),i0({type:"option_select",data:{conversation_id:ue,option_value:O,option_label:Y}})||(console.warn("[Store] WS 未连接,选项选择降级为 HTTP 消息发送"),Ic({content:Y,msg_type:"text"}).catch(xn=>{console.error("[Store] 选项选择 HTTP 降级发送失败:",xn)})),console.log("[Store] 选项选择已发送:",O,Y)}function Ve(){if(!R.value)return;const O=n.value.findIndex(Y=>Y.message_id===R.value);O!==-1&&n.value.splice(O,1),R.value=null}const Be=F(null),Ke=F(null),et=F(null);function Dt(O){var Y;((Y=t.value)==null?void 0:Y.conversation_id)===O.conversation_id&&(Be.value={position:O.position,segment:O.segment,ahead_count:O.ahead_count,queue_priority:O.queue_priority})}function Nt(O){var ue;if(((ue=t.value)==null?void 0:ue.conversation_id)!==O.conversation_id)return;t.value&&(t.value.status="resolved"),et.value={conversation_id:O.conversation_id,resolved_by:O.resolved_by,resolved_method:O.resolved_method,resolve_summary:O.resolve_summary||""},Ke.value=null;const Y={message_id:`resolve_${O.conversation_id}_${Date.now()}`,conversation_id:O.conversation_id,message_type:"system",msg_type:"text",content:Po(O.resolved_method),sender_name:"系统",created_at:new Date().toISOString(),status:"sent"};n.value.push(Y)}function Fn(O){var ue;if(((ue=t.value)==null?void 0:ue.conversation_id)!==O.conversation_id)return;t.value&&(t.value.status="waiting"),Ke.value={conversation_id:O.conversation_id,resolve_summary:O.resolve_summary||"",agent_name:O.agent_name||"坐席"};const Y={message_id:`pending_close_${O.conversation_id}_${Date.now()}`,conversation_id:O.conversation_id,message_type:"system",msg_type:"text",content:`📋 ${O.agent_name||"坐席"}发起了结单请求,请确认`,sender_name:"系统",created_at:new Date().toISOString(),status:"sent"};n.value.push(Y)}function Oo(O){const Y={message_id:`quiz_diag_${O.conversation_id}_${Date.now()}`,conversation_id:O.conversation_id,message_type:"system",msg_type:"text",content:`📝 诊断信息已传递给坐席:${O.question} → ${O.selected_answer}`,sender_name:"系统",created_at:new Date().toISOString(),status:"sent"};n.value.push(Y)}function wt(){Ke.value=null}function Lt(){et.value=null,Be.value=null}function Po(O){return O==="ai_self"?"✅ 问题已解决,会话已关闭。24小时内可重新打开。":O==="agent_confirm"?"✅ 坐席已结单,会话已关闭。24小时内可重新打开。":O==="employee_initiative"?"✅ 会话已关闭。24小时内可重新打开。":O==="system_timeout"?"⏰ 会话因长时间无响应已自动关闭。24小时内可重新打开。":"✅ 会话已关闭。24小时内可重新打开。"}async function $o(){var O;if(!g.value)try{console.log("[Store] 开始初始化应用..."),await Promise.all([Te(),se()]);const Y=(O=t.value)==null?void 0:O.conversation_id;if(Y){const ue=u0(Y);if(ue&&ue.length>0){console.log(`[Store] 加载缓存消息 ${ue.length} 条`),n.value=ue;const ge=ue[ue.length-1];ge&&(h.value=ge.message_id)}}Promise.resolve().then(async()=>{try{const ue=await Oc({limit:50});if(ue.items&&ue.items.length>0){const ge=ue.items.filter(Oe=>K.value.has(Oe.message_id)?!1:(ne(Oe.message_id),!0));if(ge.length>0){Y&&n.value.length>0?n.value=f0(n.value,ge):n.value=ge;const Oe=ge[ge.length-1];Oe&&(h.value=Oe.message_id),Y&&Us(Y,n.value),console.log(`[Store] 历史消息已加载,共 ${n.value.length} 条`)}}}catch(ue){console.warn("[Store] 加载历史消息失败:",ue)}}),setTimeout(()=>{Promise.all([N(),q()]).catch(ue=>console.warn("[Store] 加载面板数据失败:",ue))},500),H(),g.value=!0,console.log("[Store] 应用初始化完成(缓存优先显示)")}catch(Y){console.error("[Store] 应用初始化失败:",Y)}}function Zf(){var O;(O=t.value)!=null&&O.conversation_id&&d0(t.value.conversation_id),ce()}return{userInfo:e,currentConversation:t,messages:n,loading:s,shaking:o,canCallAgent:i,agentOnline:r,assistantPanelVisible:l,approvalLinks:d,approvalCardVisible:c,approvalCardTriggerText:u,softwareDownloads:f,lastMessageId:h,initialized:g,troubleshootingSteps:m,troubleshootingTemplateName:p,troubleshootingCurrentNode:v,participants:S,participantPanelVisible:T,isLoggedIn:X,hasActiveConversation:z,isParticipant:ee,joinedParticipantCount:G,approvalLinksByCategory:ie,softwareDownloadsByCategory:de,handleOAuthCallback:ke,fetchUserInfo:Te,fetchCurrentConversation:se,fetchMessages:Ae,sendNewMessage:pe,pollNewMessages:fe,startPolling:H,stopPolling:ce,shakeAgent:E,fetchApprovalLinks:N,closeApprovalCard:U,showApprovalCard:D,fetchSoftwareDownloads:q,toggleAssistantPanel:y,switchToConversation:w,leaveAsParticipant:A,toggleParticipantPanel:V,retryMessage:J,updateParticipants:W,handleRemovedFromConversation:oe,initialize:$o,cleanup:Zf,handleNewMessage:le,handleAiReplyChunk:te,handleAiReply:Z,handleAiReplyFailed:Q,cancelStreamingBubble:Ve,handleAiThinking:_e,handleDynamicRecommend:ae,clearUnreadRecommend:me,removeRecommend:we,sendOptionSelect:Ie,dynamicRecommendations:x,unreadRecommendCount:b,handleAssetRecommend:B,clearAssetRecommend:L,assetRecommendations:P,queuePositionData:Be,pendingCloseRequest:Ke,resolvedInfo:et,handleQueuePositionUpdate:Dt,handleConversationResolved:Nt,handlePendingCloseRequest:Fn,handleQuizDiagnosticAnswer:Oo,clearPendingCloseRequest:wt,clearResolvedInfo:Lt}}),h0="/h5/duckula.webp";function p0(e,t){return ea()?(su(e,t),!0):!1}const Fa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const m0=Object.prototype.toString,g0=e=>m0.call(e)==="[object Object]";function _0(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 hr(e){return Array.isArray(e)?e:[e]}function v0(e,t,n={}){const{immediate:s=!0,immediateCallback:o=!1}=n,i=Dn(!1);let r;function a(){r&&(clearTimeout(r),r=void 0)}function l(){i.value=!1,a()}function d(...c){o&&e(),a(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=void 0,e(...c)},ps(t))}return s&&(i.value=!0,Fa&&d()),p0(l),{isPending:Jo(i),start:d,stop:l}}function y0(e,t,n){return xe(e,t,{...n,immediate:!0})}const b0=Fa?window:void 0,zf=Fa?window.navigator:void 0;function w0(e){var t;const n=ps(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Wf(...e){const t=(s,o,i,r)=>(s.addEventListener(o,i,r),()=>s.removeEventListener(o,i,r)),n=M(()=>{const s=hr(ps(e[0])).filter(o=>o!=null);return s.every(o=>typeof o!="string")?s:void 0});return y0(()=>{var s,o;return[(s=(o=n.value)===null||o===void 0?void 0:o.map(i=>w0(i)))!==null&&s!==void 0?s:[b0].filter(i=>i!=null),hr(ps(n.value?e[1]:e[0])),hr(Re(n.value?e[2]:e[1])),ps(n.value?e[3]:e[2])]},([s,o,i,r],a,l)=>{if(!(s!=null&&s.length)||!(o!=null&&o.length)||!(i!=null&&i.length))return;const d=g0(r)?{...r}:r,c=s.flatMap(u=>o.flatMap(f=>i.map(h=>t(u,f,h,d))));l(()=>{c.forEach(u=>u())})},{flush:"post"})}function E0(){const e=Dn(!1),t=Wt();return t&&st(()=>{e.value=!0},t),e}function Kf(e){const t=E0();return M(()=>(t.value,!!e()))}function $c(e,t={}){const{controls:n=!1,navigator:s=zf}=t,o=Kf(()=>s&&"permissions"in s),i=Dn(),r=typeof e=="string"?{name:e}:e,a=Dn(),l=()=>{var c,u;a.value=(c=(u=i.value)===null||u===void 0?void 0:u.state)!==null&&c!==void 0?c:"prompt"};Wf(i,"change",l,{passive:!0});const d=_0(async()=>{if(o.value){if(!i.value)try{i.value=await s.permissions.query(r)}catch{i.value=void 0}finally{l()}if(n)return Pe(i.value)}});return d(),n?{state:a,isSupported:o,query:d}:a}function S0(e={}){const{navigator:t=zf,read:n=!1,source:s,copiedDuring:o=1500,legacy:i=!1}=e,r=Kf(()=>t&&"clipboard"in t),a=$c("clipboard-read"),l=$c("clipboard-write"),d=M(()=>r.value||i),c=Dn(""),u=Dn(!1),f=Dn(!1),h=v0(()=>u.value=!1,o,{immediate:!1});let g=0;async function m(){let b=!(r.value&&x(a.value));if(!b)try{c.value=await t.clipboard.readText()}catch{b=!0}b&&(c.value=T())}d.value&&n&&Wf(["copy","cut"],m,{passive:!0});async function p(b){const P=b??ps(s);if(d.value&&P!=null){f.value=!0;let B=!(r.value&&x(l.value));if(!B)try{const L=v(P);await t.clipboard.write([L])}catch{B=!0}if(B)if(typeof P=="string")c.value=P,S(P);else{const L=++g,R=await P();R!=null&&L===g&&(c.value=R,S(R))}u.value=!0,h.start(),f.value=!1}}function v(b){return typeof b=="string"?(c.value=b,new ClipboardItem({"text/plain":b})):new ClipboardItem({"text/plain":b().then((P="")=>(c.value=P,new Blob([P],{type:"text/plain"})))})}function S(b){const P=document.createElement("textarea");P.value=b,P.style.position="absolute",P.style.opacity="0",P.setAttribute("readonly",""),document.body.appendChild(P),P.select(),document.execCommand("copy"),P.remove()}function T(){var b,P,B;return(b=(P=document)===null||P===void 0||(B=P.getSelection)===null||B===void 0||(B=B.call(P))===null||B===void 0?void 0:B.toString())!==null&&b!==void 0?b:""}function x(b){return b==="granted"||b==="prompt"}return{copyPending:Jo(f),isSupported:d,text:Jo(c),copied:Jo(u),copy:p}}async function Gf(e,t=!1){return Me.get("/wecom/jsapi-config",{params:{url:e,with_agent_config:t}})}const C0="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",Bc=8e3,Dc=8e3,x0=1e4,A0=8e3,k0=["agentConfig","thirdPartyOpenPage","checkJsApi"],T0=["thirdPartyOpenPage"];function Jf(){const e=F(!1),t=F(!1),n=F(null);let s=!1;function o(){return/wxwork/i.test(navigator.userAgent)}function i(h){const g=h.match(/template_id=([^&]+)/);return g?g[1]:null}function r(h){return h.includes("template_id=")}function a(){return new Promise((h,g)=>{if(typeof window.wx<"u"){h();return}const m=setTimeout(()=>{p.onload=null,p.onerror=null,g(new Error("加载企微 JS-SDK 脚本超时"))},x0),p=document.createElement("script");p.src=C0,p.async=!0,p.onload=()=>{clearTimeout(m),typeof window.wx<"u"?h():g(new Error("JS-SDK 脚本已加载但 window.wx 未挂载"))},p.onerror=()=>{clearTimeout(m),g(new Error("加载企微 JS-SDK 脚本失败"))},document.head.appendChild(p)})}function l(h){return new Promise((g,m)=>{const p=window.wx;if(!p||typeof p.config!="function"){m(new Error("wx.config 不可用,JS-SDK 未正确加载"));return}let v=!1;const S=setTimeout(()=>{v||(v=!0,m(new Error(`wx.config 鉴权超时(${Bc/1e3}秒无响应)`)))},Bc);p.ready(()=>{v||(v=!0,clearTimeout(S),g())}),p.error(T=>{v||(v=!0,clearTimeout(S),m(new Error(`wx.config 失败: ${T.errMsg}`)))}),p.config({beta:!0,debug:!1,appId:h.corp_id,timestamp:h.timestamp,nonceStr:h.nonce_str,signature:h.signature,jsApiList:k0})})}function d(h){return new Promise((g,m)=>{const p=window.wx;if(!p||typeof p.agentConfig!="function"){m(new Error("wx.agentConfig 不可用"));return}let v=!1;const S=setTimeout(()=>{v||(v=!0,m(new Error(`wx.agentConfig 超时(${Dc/1e3}秒无响应)`)))},Dc);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:T0,success:()=>{v||(v=!0,clearTimeout(S),g())},fail:T=>{v||(v=!0,clearTimeout(S),m(new Error(`wx.agentConfig 失败: ${T.errMsg}`)))}})})}function c(h){return new Promise(g=>{const m=window.wx;if(!m||typeof m.invoke!="function"){g(!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 S=setTimeout(()=>{v||(v=!0,g(!1))},A0);m.invoke("thirdPartyOpenPage",p,T=>{v||(v=!0,clearTimeout(S),g(T.err_msg==="thirdPartyOpenPage:ok"))})})}async function u(){if(!s){t.value=!0,n.value=null;try{await a();const h=window.location.href.split("#")[0],g=await Gf(h,!0);if(!g.agent_config)throw new Error("后端未返回 agent_config 签名");await l(g),await d({corp_id:g.corp_id,agent_id:g.agent_id,timestamp:g.timestamp,agent_config:g.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(!r(h)){window.location.href=h;return}const g=i(h);if(!g){window.location.href=h;return}if(s||await u(),!e.value){window.location.href=h;return}await c(g)||(window.location.href=h)}return{isReady:e,isLoading:t,error:n,isWecomEnv:o,openUrl:f,init:u}}const R0={class:"approval-card-inline"},I0={class:"approval-card-inline__header"},O0={class:"approval-card-inline__title-row"},P0={key:0,class:"approval-card-inline__tag"},$0={class:"approval-card-inline__options"},B0=["onClick"],D0={class:"approval-card-inline__option-icon"},N0={class:"approval-card-inline__option-content"},L0={class:"approval-card-inline__option-name"},F0={class:"approval-card-inline__option-desc"},M0=be({__name:"ApprovalCardModal",props:{approvalType:{default:""}},setup(e){const t=e,{openUrl:n}=Jf(),s={设备申请:[{name:"IT资产领用",icon:"orders-o",desc:"申请新设备",url:"https://itsm.servyou.com.cn/itsm-miniapp-mobile/"},{name:"IT资产借用",icon:"orders-o",desc:"临时借用设备",url:"https://itsm.servyou.com.cn/itsm-miniapp-mobile/"},{name:"IT资产升级",icon:"orders-o",desc:"设备升级换新",url:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?name=IT%E8%AE%BE%E5%A4%87%E5%8D%87%E7%BA%A7%E4%B8%8E%E7%A1%AC%E4%BB%B6%E7%BB%B4%E4%BF%AE"}],账号权限申请:[{name:"VPN账号申请",icon:"lock",desc:"零信任VPN",url:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?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://itsupport.servyou.com.cn/h5/itsm-bridge.html?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://itsupport.servyou.com.cn/h5/itsm-bridge.html?name=%E5%95%86%E4%B8%9A%E8%BD%AF%E4%BB%B6%E6%9C%8D%E5%8A%A1%E7%94%B3%E8%AF%B7"}],资产处置申请:[{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://itsupport.servyou.com.cn/h5/itsm-bridge.html?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://itsupport.servyou.com.cn/h5/itsm-bridge.html?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://itsupport.servyou.com.cn/h5/itsm-bridge.html?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://itsupport.servyou.com.cn/h5/itsm-bridge.html?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=M(()=>t.approvalType&&s[t.approvalType]?s[t.approvalType]:Object.values(s).flat()),i=F([]);async function r(){if(!(i.value.length>0))try{i.value=await Hw()}catch(l){console.error("[ApprovalCard] 加载审批关键词失败:",l)}}st(()=>{r()});async function a(l){if(l.url){await n(l.url);return}try{const d=i.value.find(c=>c.template_name===t.approvalType||c.keyword===l.name);if(d)if(d.type==="jump"){const c=await zw(d.template_id);await n(c.url)}else Ee("该功能正在开发中");else Ee(`${l.name} — 审批模板配置中,请稍后`)}catch(d){console.error("[ApprovalCard] 打开审批失败:",d),Ee("打开审批失败,请重试")}}return(l,d)=>{const c=pt;return k(),I("div",R0,[_("div",I0,[_("div",O0,[C(c,{name:"orders-o",size:"16",color:"#07c160"}),d[0]||(d[0]=_("span",{class:"approval-card-inline__title"},"审批快捷入口",-1)),e.approvalType?(k(),I("span",P0,j(e.approvalType),1)):re("",!0)]),d[1]||(d[1]=_("div",{class:"approval-card-inline__subtitle"}," 检测到您可能需要提交审批,请选择对应类型 ",-1))]),_("div",$0,[(k(!0),I(Se,null,nt(o.value,u=>(k(),I("div",{key:u.name,class:"approval-card-inline__option",onClick:f=>a(u)},[_("div",D0,[C(c,{name:u.icon,size:"20"},null,8,["name"])]),_("div",N0,[_("div",L0,j(u.name),1),_("div",F0,j(u.desc),1)]),C(c,{name:"arrow",class:"approval-card-inline__option-arrow"})],8,B0))),128))])])}}}),at=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Nc=at(M0,[["__scopeId","data-v-facff6d9"]]),V0={class:"byod-card__header"},j0={class:"byod-card__title-row"},U0={class:"byod-card__title"},q0={class:"byod-card__subtitle"},H0={class:"byod-card__info-section"},z0={class:"byod-card__info-row"},W0={class:"byod-card__info-value"},K0={key:0,class:"byod-card__info-row"},G0={class:"byod-card__info-value"},J0={key:0,class:"byod-card__notes"},X0={class:"byod-card__notes-title"},Y0={class:"byod-card__notes-list"},Q0={key:1,class:"byod-card__reason"},Z0={class:"byod-card__reason-text"},eE={key:2,class:"byod-card__action"},tE=["href"],nE=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=M(()=>t.eligible?"byod-card--eligible":t.applicationUrl?"byod-card--register":"byod-card--ineligible"),s=M(()=>t.eligible?"passed":t.applicationUrl?"edit":"close"),o=M(()=>t.eligible?"#07c160":t.applicationUrl?"#ff9800":"#969799"),i=M(()=>t.eligible?"自备电脑补贴资格":t.applicationUrl?"自备电脑登记":"自备电脑补贴资格"),r=M(()=>t.eligible?"byod-card__tag--eligible":t.applicationUrl?"byod-card__tag--register":"byod-card__tag--ineligible"),a=M(()=>t.eligible?"可申请":t.applicationUrl?"可登记":"不可申请"),l=M(()=>t.eligible?"您的岗位符合自备电脑补贴申请资格":t.applicationUrl?"您的岗位可进行自备电脑登记(无补贴)":"您的岗位暂不符合自备电脑补贴申请资格");function d(c){c.preventDefault();const u=c.currentTarget.href;u&&(window.location.href=u)}return(c,u)=>{const f=pt;return k(),I("div",{class:ve(["byod-card",n.value])},[_("div",V0,[_("div",j0,[C(f,{name:s.value,size:"16",color:o.value},null,8,["name","color"]),_("span",U0,j(i.value),1),_("span",{class:ve(["byod-card__tag",r.value])},j(a.value),3)]),_("div",q0,j(l.value),1)]),_("div",H0,[_("div",z0,[u[0]||(u[0]=_("span",{class:"byod-card__info-label"},"当前岗位",-1)),_("span",W0,j(e.position||"未获取到岗位信息"),1)]),e.matchedCategory?(k(),I("div",K0,[u[1]||(u[1]=_("span",{class:"byod-card__info-label"},"资格类别",-1)),_("span",G0,j(e.matchedCategory),1)])):re("",!0)]),e.notes.length>0?(k(),I("div",J0,[_("div",X0,[C(f,{name:"info-o",size:"13",color:o.value},null,8,["color"]),_("span",null,j(e.eligible?"申请须知":"登记须知"),1)]),_("ul",Y0,[(k(!0),I(Se,null,nt(e.notes,(h,g)=>(k(),I("li",{key:g,class:"byod-card__note-item"},j(h),1))),128))])])):re("",!0),!e.eligible&&e.reason?(k(),I("div",Q0,[C(f,{name:"warning-o",size:"14",color:o.value},null,8,["color"]),_("span",Z0,j(e.reason),1)])):re("",!0),e.applicationUrl?(k(),I("div",eE,[_("a",{href:e.applicationUrl,class:ve(["byod-card__btn",e.eligible?"byod-card__btn--eligible":"byod-card__btn--register"]),onClick:d},[C(f,{name:"arrow",size:"14",color:"#ffffff"}),_("span",null,j(e.eligible?"去申请":"去登记"),1)],10,tE)])):re("",!0)],2)}}}),sE=at(nE,[["__scopeId","data-v-7197147e"]]),oE={class:"contact-card"},iE={class:"contact-card__header"},rE=["src"],aE={key:1},lE={class:"contact-card__name-row"},cE={class:"contact-card__name"},uE={class:"contact-card__dept"},dE={class:"contact-card__body"},fE={class:"contact-card__info-item"},hE={class:"contact-card__info-value contact-card__info-value--highlight"},pE={key:0,class:"contact-card__info-item"},mE={class:"contact-card__info-value"},gE={key:1,class:"contact-card__info-item"},_E={class:"contact-card__info-label"},vE={class:"contact-card__info-value"},yE=be({__name:"ContactCard",props:{contact:{}},setup(e){const t=e,n=M(()=>t.contact.name?t.contact.name.charAt(0):"?"),s=M(()=>{const l=["gradient-1","gradient-2","gradient-3","gradient-4","gradient-5"];if(!t.contact.name)return l[0];const d=t.contact.name.charCodeAt(0);return l[d%l.length]}),o=M(()=>t.contact.gender==="female"?"♀":"♂"),i=M(()=>t.contact.gender==="female"?"gender-female":"gender-male"),r=M(()=>t.contact.business_category==="行政-物业"?"办公地点":"服务区域");function a(){const l=t.contact.wecom_userid;if(!l){Ee("暂时无法发起聊天,请联系管理员");return}const d=window.wx;if(!d||!d.invoke){Ee("暂时无法发起聊天,请联系管理员");return}try{d.invoke("openEnterpriseChat",{userids:l,chatTitle:t.contact.name},c=>{c&&c.err_msg&&c.err_msg!=="openEnterpriseChat:ok"&&(console.error("[ContactCard] openEnterpriseChat 失败:",c.err_msg),Ee("暂时无法发起聊天,请联系管理员"))})}catch(c){console.error("[ContactCard] openEnterpriseChat 调用异常:",c),Ee("暂时无法发起聊天,请联系管理员")}}return(l,d)=>(k(),I("div",oE,[_("div",iE,[_("div",{class:ve(["contact-card__avatar",s.value])},[e.contact.avatar_url?(k(),I("img",{key:0,src:e.contact.avatar_url,alt:"",class:"contact-card__avatar-img"},null,8,rE)):(k(),I("span",aE,j(n.value),1))],2),_("div",lE,[_("div",cE,[Ue(j(e.contact.name)+" ",1),_("span",{class:ve(["contact-card__gender",i.value])},j(o.value),3)]),_("div",uE,j(e.contact.department)+" · "+j(e.contact.position),1)]),d[0]||(d[0]=_("span",{class:"contact-card__badge"},"员工名片",-1))]),_("div",dE,[_("div",fE,[d[1]||(d[1]=_("span",{class:"contact-card__info-label"},"负责业务",-1)),_("span",hE,j(e.contact.responsibility),1)]),e.contact.extension?(k(),I("div",pE,[d[2]||(d[2]=_("span",{class:"contact-card__info-label"},"分机号",-1)),_("span",mE,j(e.contact.extension),1)])):re("",!0),e.contact.service_area?(k(),I("div",gE,[_("span",_E,j(r.value),1),_("span",vE,j(e.contact.service_area),1)])):re("",!0)]),_("div",{class:"contact-card__footer"},[_("button",{class:"contact-card__action-btn",onClick:a},[...d[3]||(d[3]=[_("span",{class:"contact-card__action-icon"},"💬",-1),_("span",null,"联系TA",-1)])])])]))}}),bE=at(yE,[["__scopeId","data-v-ab0a689c"]]),wE={key:0,class:"message-bubble message-bubble--approval-card"},EE={key:1,class:"message-bubble message-bubble--byod-card"},SE={key:2,class:"message-bubble message-bubble--contact-card"},CE={key:3,class:"message-bubble message-bubble--system"},xE={class:"message-bubble__system-text"},AE={key:0,class:"message-bubble__sender"},kE={key:0,src:h0,class:"message-bubble__ai-avatar",alt:"Duckula"},TE={class:"message-bubble__sender-name"},RE={class:"reply-quote__text"},IE={class:"reply-quote__sender"},OE={key:1,class:"message-bubble__text",style:{"white-space":"pre-wrap"}},PE={class:"message-bubble__text",style:{"white-space":"pre-wrap"}},$E={key:0,class:"ai-options"},BE=["onClick"],DE={key:1,class:"ai-action"},NE=["src","alt"],LE={key:1,class:"media-card"},FE={class:"media-card__info"},ME={key:0,class:"media-card__name"},VE=["href"],jE={class:"media-card__info"},UE={class:"media-card__label"},qE={key:0,class:"media-card__size"},HE={key:1,class:"media-card"},zE={class:"media-card__info"},WE={class:"media-card__label"},KE={key:0,class:"media-card__size"},GE={key:5,class:"media-card"},JE={class:"media-card__icon"},XE={class:"media-card__info"},YE={class:"media-card__label"},QE={key:0,class:"media-card__name"},ZE={key:1,class:"media-card__size"},e1={key:6,class:"message-bubble__actions"},t1=be({__name:"MessageBubble",props:{msg:{}},emits:["scrollToMessage"],setup(e){const t=e,n=Ot(),{copy:s}=S0(),o=F(!1),i=F(!1);async function r(){try{await s(t.msg.content),i.value=!0,Ee("已复制"),setTimeout(()=>{i.value=!1},1500)}catch(x){console.error("复制失败:",x)}}const a=M(()=>{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"&&l.value&&x.push("message-bubble--thinking"),x.join(" ")}),l=M(()=>{if(t.msg.message_type!=="ai")return!1;const x=t.msg.content||"";return x.startsWith("正在思考")||x.startsWith("仍在思考")}),d=M(()=>`message-bubble__content--${t.msg.message_type}`),c=M(()=>t.msg.message_type==="employee"?"message-bubble__time--right":"message-bubble__time--left"),u=M(()=>t.msg.message_type==="agent"?t.msg.sender_name||"IT坐席":t.msg.message_type==="ai"?"Duckula(达寇拉)":t.msg.sender_name),f=M(()=>({image:"🖼️",voice:"🎤",video:"🎬",file:"📎",location:"📍"})[t.msg.msg_type||""]||"📄"),h=M(()=>({image:"图片消息",voice:"语音消息",video:"视频消息",file:"文件消息",location:"位置消息"})[t.msg.msg_type||""]||"媒体消息"),g=M(()=>t.msg.reply_to_id?"...":""),m=M(()=>(t.msg.reply_to_id,""));function p(x){if(!x)return"";const b=new Date(x),P=b.getHours().toString().padStart(2,"0"),B=b.getMinutes().toString().padStart(2,"0");return`${P}:${B}`}function v(x){return x<1024?`${x} B`:x<1024*1024?`${(x/1024).toFixed(1)} KB`:`${(x/(1024*1024)).toFixed(1)} MB`}function S(){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 T(x){n.sendOptionSelect(x.value,x.label||x.value)}return(x,b)=>{var P,B,L,R,K,X,z,ee,G,ie,de,ne,le,ke,Te,se,pe,fe,Ae,H,ce,E;return e.msg.msg_type==="approval_card"?(k(),I("div",wE,[C(Nc,{"approval-type":((P=e.msg.extra_data)==null?void 0:P.approval_type)||""},null,8,["approval-type"])])):e.msg.msg_type==="byod_card"?(k(),I("div",EE,[C(sE,{eligible:((L=(B=e.msg.extra_data)==null?void 0:B.byod_result)==null?void 0:L.eligible)??!1,"has-subsidy":((K=(R=e.msg.extra_data)==null?void 0:R.byod_result)==null?void 0:K.has_subsidy)??!1,position:((z=(X=e.msg.extra_data)==null?void 0:X.byod_result)==null?void 0:z.position)??"","application-url":((G=(ee=e.msg.extra_data)==null?void 0:ee.byod_result)==null?void 0:G.application_url)??"",notes:((de=(ie=e.msg.extra_data)==null?void 0:ie.byod_result)==null?void 0:de.notes)??[],reason:((le=(ne=e.msg.extra_data)==null?void 0:ne.byod_result)==null?void 0:le.reason)??"","matched-category":((Te=(ke=e.msg.extra_data)==null?void 0:ke.byod_result)==null?void 0:Te.matched_category)??""},null,8,["eligible","has-subsidy","position","application-url","notes","reason","matched-category"])])):e.msg.msg_type==="contact_card"?(k(),I("div",SE,[C(bE,{contact:((se=e.msg.extra_data)==null?void 0:se.contact)??{}},null,8,["contact"])])):e.msg.message_type==="system"?(k(),I("div",CE,[_("span",xE,j(e.msg.content),1)])):(k(),I("div",{key:4,class:ve(["message-bubble",a.value]),onMouseenter:b[2]||(b[2]=N=>o.value=!0),onMouseleave:b[3]||(b[3]=N=>o.value=!1)},[e.msg.message_type!=="employee"?(k(),I("div",AE,[e.msg.message_type==="ai"?(k(),I("img",kE)):re("",!0),_("span",TE,j(u.value),1)])):re("",!0),_("div",{class:ve(["message-bubble__content",d.value])},[e.msg.reply_to_id&&g.value?(k(),I("div",{key:0,class:"reply-quote",onClick:b[0]||(b[0]=_n(N=>x.$emit("scrollToMessage",e.msg.reply_to_id),["stop"]))},[b[4]||(b[4]=_("div",{class:"reply-quote__bar"},null,-1)),_("div",RE,[_("span",IE,j(m.value),1),Ue(" "+j(g.value),1)])])):re("",!0),!e.msg.msg_type||e.msg.msg_type==="text"?(k(),I("p",OE,j(e.msg.content),1)):e.msg.msg_type==="ai_structured"?(k(),I(Se,{key:2},[_("p",PE,j(e.msg.content),1),(fe=(pe=e.msg.extra_data)==null?void 0:pe.options)!=null&&fe.length?(k(),I("div",$E,[(k(!0),I(Se,null,nt(e.msg.extra_data.options,(N,U)=>(k(),I("button",{key:U,class:"ai-options__btn",onClick:_n(D=>T(N),["stop"])},j(N.label||N.value),9,BE))),128))])):re("",!0),(H=(Ae=e.msg.extra_data)==null?void 0:Ae.action)!=null&&H.approval_type?(k(),I("div",DE,[C(Nc,{"approval-type":e.msg.extra_data.action.approval_type},null,8,["approval-type"])])):re("",!0)],64)):e.msg.msg_type==="image"?(k(),I("div",{key:3,class:"image-message message-image",onClick:S,style:{"max-width":"100px !important"}},[e.msg.media_url||(ce=e.msg.extra_data)!=null&&ce.pic_url?(k(),I("img",{key:0,src:e.msg.media_url||((E=e.msg.extra_data)==null?void 0:E.pic_url),alt:e.msg.file_name||"图片",class:"image-message__thumbnail",loading:"lazy",style:{"max-width":"100px !important"}},null,8,NE)):(k(),I("div",LE,[b[6]||(b[6]=_("div",{class:"media-card__icon"},"🖼️",-1)),_("div",FE,[b[5]||(b[5]=_("span",{class:"media-card__label"},"图片消息",-1)),e.msg.file_name?(k(),I("span",ME,j(e.msg.file_name),1)):re("",!0)])]))])):e.msg.msg_type==="file"?(k(),I(Se,{key:4},[e.msg.media_url?(k(),I("a",{key:0,href:e.msg.media_url,target:"_blank",class:"media-card media-card--link",onClick:b[1]||(b[1]=_n(()=>{},["stop"]))},[b[7]||(b[7]=_("div",{class:"media-card__icon"},"📎",-1)),_("div",jE,[_("span",UE,j(e.msg.file_name||"文件消息"),1),e.msg.file_size?(k(),I("span",qE,j(v(e.msg.file_size)),1)):re("",!0)])],8,VE)):(k(),I("div",HE,[b[8]||(b[8]=_("div",{class:"media-card__icon"},"📎",-1)),_("div",zE,[_("span",WE,j(e.msg.file_name||"文件消息"),1),e.msg.file_size?(k(),I("span",KE,j(v(e.msg.file_size)),1)):re("",!0)])]))],64)):(k(),I("div",GE,[_("div",JE,j(f.value),1),_("div",XE,[_("span",YE,j(h.value),1),e.msg.file_name?(k(),I("span",QE,j(e.msg.file_name),1)):re("",!0),e.msg.file_size?(k(),I("span",ZE,j(v(e.msg.file_size)),1)):re("",!0)])])),o.value?(k(),I("div",e1,[!e.msg.msg_type||e.msg.msg_type==="text"?(k(),I("button",{key:0,class:"action-btn",title:"复制消息",onClick:_n(r,["stop"])},j(i.value?"✓":"📋"),1)):re("",!0)])):re("",!0)],2),_("div",{class:ve(["message-bubble__time",c.value])},j(p(e.msg.created_at)),3)],34))}}}),n1=at(t1,[["__scopeId","data-v-6b595a85"]]);async function pr(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 s1(n)}async function s1(e,t=3){for(let n=0;n<=t;n++)try{return await Me.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 Lc="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",o1=59e3,Fc=8e3,i1=1e4,Mc=!1,Vc=["startRecord","stopRecord","translateVoice","checkJsApi"];function r1(){const e=mt({isReady:!1,isRecording:!1,isTranslating:!1,error:null});let t=!1,n=null;function s(){return new Promise((d,c)=>{if(typeof window.wx<"u"){console.log("[WecomVoice] JS-SDK 已加载(window.wx 存在),跳过动态加载"),d();return}console.log("[WecomVoice] 动态加载 JS-SDK 脚本:",Lc);const u=setTimeout(()=>{f.onload=null,f.onerror=null,c(new Error("加载企微 JS-SDK 脚本超时(10秒),请检查网络连接"))},i1),f=document.createElement("script");f.src=Lc,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 未挂载"),c(new Error("企微 JS-SDK 脚本已加载,但 window.wx 未挂载")))},f.onerror=()=>{clearTimeout(u),console.error("[WecomVoice] JS-SDK 脚本加载失败"),c(new Error("加载企微 JS-SDK 脚本失败,请检查网络连接"))},document.head.appendChild(f)})}function o(d){return new Promise((c,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 g=setTimeout(()=>{h||(h=!0,e.isReady=!1,e.error=`wx.config 鉴权超时(${Fc/1e3}秒无响应),可能是签名无效或企微环境异常`,console.error("[WecomVoice]",e.error),u(new Error(e.error)))},Fc);f.ready(()=>{h||(h=!0,clearTimeout(g),e.isReady=!0,console.log("[WecomVoice] wx.config 鉴权成功(ready 回调触发)"),c())}),f.error(m=>{h||(h=!0,clearTimeout(g),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:Vc}),f.config({beta:!0,debug:Mc,appId:d.corp_id,timestamp:d.timestamp,nonceStr:d.nonce_str,signature:d.signature,jsApiList:Vc})})}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 c=await Gf(d);console.log("[WecomVoice] 签名配置:",{corp_id:c.corp_id,agent_id:c.agent_id,timestamp:c.timestamp,nonce_str:c.nonce_str,signature:c.signature?c.signature.substring(0,10)+"...":"(空)"}),console.log("[WecomVoice] Step 3/3: wx.config 鉴权"),await o(c),window.wx&&typeof window.wx.checkJsApi=="function"&&window.wx.checkJsApi({jsApiList:["startRecord","stopRecord","translateVoice"],success: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 r(){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 c="wx.startRecord 不可用,JS-SDK 未正确初始化";throw console.error("[WecomVoice]",c),e.error=c,new Error(c)}return new Promise((c,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秒自动停止录音"),a().catch(g=>{e.error=`自动停止录音失败: ${(g==null?void 0:g.message)||"未知错误"}`}))},o1),console.log("[WecomVoice] 调用 wx.startRecord..."),d.startRecord({success:()=>{f||(f=!0,clearTimeout(h),e.isRecording=!0,e.error=null,console.log("[WecomVoice] 录音开始成功(startRecord success 回调)"),c())},fail:g=>{f||(f=!0,clearTimeout(h),n&&(clearTimeout(n),n=null),e.error=`开始录音失败: ${g.errMsg}`,console.error("[WecomVoice] 录音开始失败:",g.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 a(){const d=window.wx;return n&&(clearTimeout(n),n=null),e.isRecording?(console.log("[WecomVoice] 调用 wx.stopRecord..."),new Promise((c,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:g=>{e.isTranslating=!1;const m=(g.translateResult||"").trim();console.log("[WecomVoice] 语音转文字成功:",m),c(m)},fail:g=>{e.isTranslating=!1,e.error=`语音转文字失败: ${g.errMsg}`,console.error("[WecomVoice] 语音转文字失败:",g.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 l(){const d=navigator.userAgent,c=/wxwork/i.test(d),u=/Mobile|Android|iPhone|iPad|iPod/i.test(d);return c&&u}return{state:e,init:i,startRecording:r,stopAndTranslate:a,isSupported:l}}const Tn=16e3;function a1(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 l1(e,t,n){if(t===n)return e;const s=t/n,o=Math.round(e.length/s),i=new Float32Array(o);for(let r=0;r<o;r++){const a=r*s,l=Math.floor(a),d=a-l;l+1<e.length?i[r]=e[l]*(1-d)+e[l+1]*d:i[r]=e[l]||0}return i}function c1(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 u1(){const e=F(!1);let t=null,n=null,s=null,o=null,i=[],r=Tn,a=!1;async function l(){var u;if(e.value){console.warn("[AudioRecorder] 已在录音中,跳过 start()");return}a=!1,i=[];try{if(!((u=navigator.mediaDevices)!=null&&u.getUserMedia))throw new Error("当前浏览器不支持录音功能,请使用 Chrome 或 Edge");n=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,sampleRate:Tn,echoCancellation:!0,noiseSuppression:!0}});const f=window.AudioContext||window.webkitAudioContext;if(!f)throw new Error("当前浏览器不支持 Web Audio API");try{t=new f({sampleRate:Tn})}catch{t=new f}r=t.sampleRate,s=t.createMediaStreamSource(n),o=t.createScriptProcessor(4096,1,1),o.onaudioprocess=h=>{if(a)return;const g=h.inputBuffer.getChannelData(0);i.push(new Float32Array(g))},s.connect(o),o.connect(t.destination),e.value=!0,console.log(`[AudioRecorder] 录音开始(native=${r}Hz, target=${Tn}Hz)`)}catch(f){c();const h=f;throw(h==null?void 0:h.name)==="NotAllowedError"||(h==null?void 0:h.name)==="SecurityError"?new Error("麦克风权限被拒绝,请在浏览器设置中允许使用麦克风"):(h==null?void 0:h.name)==="NotFoundError"||(h==null?void 0:h.name)==="OverconstrainedError"?new Error("未找到麦克风设备,请检查设备连接"):(h==null?void 0:h.name)==="NotReadableError"?new Error("麦克风被其他程序占用,请关闭后重试"):h instanceof Error?h:new Error((h==null?void 0:h.message)||"录音启动失败")}}function d(){a=!0,c();const u=a1(i),f=r!==Tn?l1(u,r,Tn):u,h=c1(f),g=new Blob([h],{type:"audio/pcm"});return console.log(`[AudioRecorder] 录音停止,PCM 数据: ${g.size} bytes`+(r!==Tn?` (重采样 ${r}→${Tn}Hz)`:"")),e.value=!1,i=[],g}function c(){if(o){try{o.disconnect()}catch{}o.onaudioprocess=null,o=null}if(s){try{s.disconnect()}catch{}s=null}n&&(n.getTracks().forEach(u=>u.stop()),n=null),t&&(t.close().catch(()=>{}),t=null)}return{isRecording:e,start:l,stop:d}}async function d1(e){const t=new FormData;t.append("audio",e,"recording.pcm");const n=await Me.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 f1={class:"input-bar"},h1={class:"input-bar__row"},p1={key:0,class:"emoji-panel"},m1={class:"emoji-panel__grid"},g1=["onClick"],_1={key:1,class:"input-bar__voice-status"},v1={key:0},y1={key:1},b1={class:"input-bar__input-row"},w1={class:"input-bar__controls"},E1=["disabled","title"],S1={class:"call-agent-btn__icon"},C1={class:"call-agent-btn__text"},x1={class:"input-bar__controls-row"},A1=["title","disabled"],k1={key:1,class:"input-bar__guide"},T1=be({__name:"InputBar",emits:["call-agent"],setup(e,{emit:t}){function n(D){return D?typeof D=="string"?D:Array.isArray(D)?D.map(q=>q.loc&&q.msg?`${q.loc.slice(1).join(".")}: ${q.msg}`:q.msg?q.msg:JSON.stringify(q)).join("; "):typeof D=="object"?JSON.stringify(D):String(D):""}const s=Ot(),o=t,i=["电脑无法启动","网络无法连接","多人不能上网","无法上网","开不了机","连不上网","全部断网"],r=M(()=>{const D=s.currentConversation;return!D||D.status==="resolved"||D.status==="serving"?"hidden":f()?"urgent":s.canCallAgent?"active":"disabled"}),a=M(()=>r.value!=="hidden"),l=M(()=>({"call-agent-btn--disabled":r.value==="disabled","call-agent-btn--active":r.value==="active","call-agent-btn--urgent":r.value==="urgent"})),d=M(()=>r.value==="urgent"?"🚨":r.value==="active"?"🎧":"🔒"),c=M(()=>"人工坐席"),u=M(()=>r.value==="urgent"?"检测到紧急问题,直接呼叫人工坐席":r.value==="active"?"点击呼叫人工坐席":"再多描述几句话即可激活");function f(){var q;const D=s.messages.filter(y=>y.message_type==="employee").slice(-5);for(const y of D){const w=((q=y.content)==null?void 0:q.toLowerCase())||"";for(const A of i)if(w.includes(A.toLowerCase()))return!0}return!1}function h(){r.value!=="disabled"&&o("call-agent")}const g=F(""),m=F(null),p=F(null),v=M(()=>g.value.trim().length>0&&!s.loading&&s.isLoggedIn),S=F(!1),T=F(!1),{state:x,init:b,startRecording:P,stopAndTranslate:B,isSupported:L}=r1(),R=M(()=>{if(L())return"wecom";if(navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function")return"baidu";const D=navigator.userAgent,q=/wxwork/i.test(D),y=/Mobile|Android|iPhone|iPad|iPod/i.test(D),w=/Macintosh|Mac OS X/i.test(D);return q&&!y&&!w?"baidu":"none"}),K=M(()=>R.value!=="none"),X=u1(),z=M(()=>X.isRecording.value),ee=F(!1),G=M(()=>R.value==="wecom"?x.isRecording:R.value==="baidu"?z.value||ee.value:!1);function ie(D){return D.length>0&&!D.endsWith(" ")&&!D.endsWith(`
|
||
`)}st(()=>{document.addEventListener("paste",de),document.addEventListener("keydown",N),L()&&b().catch(D=>{console.warn("[InputBar] 企微 JS-SDK 初始化失败:",D)})}),Ln(()=>{document.removeEventListener("paste",de),document.removeEventListener("keydown",N),X.isRecording.value&&X.stop()});async function de(D){var w;const q=D.target;if(q.tagName==="TEXTAREA"||q.isContentEditable)return;const y=(w=D.clipboardData)==null?void 0:w.items;if(y){for(const A of Array.from(y))if(A.kind==="file"){D.preventDefault();const V=A.getAsFile();if(!V)continue;V.type.startsWith("image/")?await pe(V):await fe(V);return}}}const ne=["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","😊","😇","🥰","😍","🤩","😘","😗","😚","😙","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😏","😒","🙄","😬","😮","🤯","😲","😳","🥺","😢","😭","😤","😠","😡","🤬","👍","👎","👏","🙌","🤝","💪","✌️","🤞","❤️","🧡","💛","💚","💙","💜","💯","✅"];function le(D){g.value+=D,T.value=!1,Ze(()=>{var y,w;const q=(w=(y=m.value)==null?void 0:y.$el)==null?void 0:w.querySelector("textarea");q==null||q.focus()})}function ke(D){/Android|iPhone|iPad|iPod/i.test(navigator.userAgent)||D.shiftKey||(D.preventDefault(),Te())}async function Te(){const D=g.value.trim();!D||s.loading||(g.value="",await s.sendNewMessage(D))}async function se(D){var y;const q=(y=D.clipboardData)==null?void 0:y.items;if(q){for(const w of Array.from(q))if(w.kind==="file"){D.preventDefault();const A=w.getAsFile();if(!A)continue;A.type.startsWith("image/")?await pe(A):await fe(A);return}}}async function pe(D){var q,y;try{Ee("图片上传中...");const w=await pr(D),A=D instanceof File?D.name:"截图";await s.sendNewMessage(`[图片] ${A}`,{msg_type:"image",media_url:w.url,file_name:w.filename,file_size:w.file_size}),Ee("图片发送成功")}catch(w){console.error("图片上传失败:",w),Ee(n((y=(q=w==null?void 0:w.response)==null?void 0:q.data)==null?void 0:y.detail)||(w==null?void 0:w.message)||"图片上传失败,请重试")}}async function fe(D){var q,y;try{const w=D instanceof File?D.name:"文件";Ee(`文件上传中: ${w}`);const A=await pr(D);await s.sendNewMessage(`[文件] ${A.filename}`,{msg_type:"file",media_url:A.url,file_name:A.filename,file_size:A.file_size}),Ee("文件发送成功")}catch(w){console.error("文件上传失败:",w),Ee(n((y=(q=w==null?void 0:w.response)==null?void 0:q.data)==null?void 0:y.detail)||(w==null?void 0:w.message)||"文件上传失败,请重试")}}async function Ae(D){const q=D.target,y=q.files;if(!(!y||y.length===0)){for(const w of Array.from(y))try{Ee(`正在上传: ${w.name}`);const A=await pr(w);Ee(`${w.name} 上传成功`),console.log("[InputBar] 文件上传成功:",A.url)}catch(A){console.error("文件上传失败:",A),Ee(`${w.name} 上传失败`)}q.value=""}}function H(){T.value=!T.value}function ce(){p.value&&(p.value.accept="",p.value.multiple=!0,p.value.click())}async function E(D){if(D==null||D.preventDefault(),D==null||D.stopPropagation(),R.value!=="none"){if(R.value==="wecom")try{if(x.isRecording){const q=await B();q?(ie(g.value)&&(g.value+=" "),g.value+=q,Ee("语音识别完成")):Ee("未识别到语音内容")}else await P(),Ee("正在录音,点击停止")}catch(q){const y=x.error||(q==null?void 0:q.message)||"语音识别失败";Ee(y),console.error("[InputBar] 企微语音识别错误:",q)}else if(R.value==="baidu")if(z.value){const q=X.stop();if(q.size<1600){Ee("录音过短,请说更多内容");return}ee.value=!0;try{const y=await d1(q);y.error?Ee(y.error):y.text?(ie(g.value)&&(g.value+=" "),g.value+=y.text,Ee("语音识别完成")):Ee("未识别到语音内容")}catch(y){Ee((y==null?void 0:y.message)||"语音识别失败"),console.error("[InputBar] 百度ASR识别错误:",y)}finally{ee.value=!1}}else try{await X.start(),Ee("开始语音输入")}catch(q){Ee((q==null?void 0:q.message)||"录音启动失败"),console.error("[InputBar] 百度录音启动失败:",q)}}}function N(D){if(D.ctrlKey&&(D.key==="d"||D.key==="D")){if(D.preventDefault(),!K.value)return;E()}}function U(D){S.value=!0;const q=D.clientY,y=D.target.closest(".input-bar"),w=y?y.offsetHeight:100;function A(J){if(!S.value)return;const W=q-J.clientY;let oe=w+W;oe=Math.max(100,Math.min(400,oe)),y&&(y.style.height=`${oe}px`,y.style.flexShrink="0")}function V(){S.value=!1,document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",V),document.body.style.cursor="",document.body.style.userSelect=""}document.body.style.cursor="row-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",A),document.addEventListener("mouseup",V)}return(D,q)=>{const y=Aa,w=bs;return k(),I("div",f1,[_("div",{class:"input-bar__resize-handle",onMousedown:U},[...q[2]||(q[2]=[_("div",{class:"input-bar__resize-track"},null,-1)])],32),_("div",h1,[_("div",{class:"input-bar__toolbar"},[_("button",{class:"input-bar__tool-btn",title:"表情",onClick:H},[...q[3]||(q[3]=[_("span",null,"😊",-1)])]),_("button",{class:"input-bar__tool-btn",title:"文件",onClick:ce},[...q[4]||(q[4]=[_("span",null,"📎",-1)])])]),T.value?(k(),I("div",p1,[_("div",m1,[(k(),I(Se,null,nt(ne,A=>_("button",{key:A,class:"emoji-panel__item",onClick:V=>le(A)},j(A),9,g1)),64))])])):re("",!0),G.value&&R.value==="baidu"?(k(),I("div",_1,[ee.value?(k(),I("span",v1,"正在识别语音...")):(k(),I("span",y1,"正在语音输入... 点击⏹停止"))])):re("",!0),_("div",b1,[C(y,{ref_key:"inputFieldRef",ref:m,modelValue:g.value,"onUpdate:modelValue":q[0]||(q[0]=A=>g.value=A),class:"input-bar__field",placeholder:"请输入消息...",type:"textarea",autosize:{minHeight:54,maxHeight:200},rows:"3",disabled:!Re(s).isLoggedIn,onKeydown:hd(ke,["enter"]),onPaste:se},null,8,["modelValue","disabled"]),_("div",w1,[a.value?(k(),I("button",{key:0,class:ve(["call-agent-btn",l.value]),disabled:r.value==="disabled",onClick:h,title:u.value},[_("span",S1,j(d.value),1),_("span",C1,j(c.value),1)],10,E1)):re("",!0),_("div",x1,[K.value?(k(),I("button",{key:0,class:ve(["input-bar__voice-btn",{"input-bar__voice-btn--recording":G.value}]),title:ee.value?"正在识别...":G.value?"点击停止":"语音输入 (Ctrl+D)",disabled:ee.value,onMousedown:_n(E,["prevent"]),onClick:_n(E,["prevent"]),onTouchstart:_n(E,["prevent"])},j(ee.value?"⏳":G.value?"⏹":"🎤"),43,A1)):re("",!0),C(w,{class:"input-bar__send-btn",type:"primary",size:"small",disabled:!v.value,loading:Re(s).loading,onClick:Te},{default:ot(()=>[...q[5]||(q[5]=[Ue(" 发送 ",-1)])]),_:1},8,["disabled","loading"])])])])]),T.value?(k(),I("div",{key:0,class:"emoji-panel__overlay",onClick:q[1]||(q[1]=A=>T.value=!1)})):r.value==="active"?(k(),I("div",k1," 请描述你遇到的问题,AI 助手会帮你分析 💡 ")):re("",!0),_("input",{ref_key:"fileInputRef",ref:p,type:"file",style:{display:"none"},onChange:Ae},null,544)])}}}),R1=at(T1,[["__scopeId","data-v-2fa97ec5"]]),I1={key:0,class:"ts-flow"},O1={class:"ts-flow__path"},P1={class:"ts-flow__path-bar"},$1={class:"ts-flow__label"},B1={class:"ts-flow__card"},D1={key:0,class:"ts-flow__question"},N1={class:"ts-flow__question-header"},L1={class:"ts-flow__question-text"},F1={class:"ts-flow__options"},M1=["disabled"],V1=["disabled"],j1={key:1,class:"ts-flow__instruction"},U1={class:"ts-flow__instruction-header"},q1={class:"ts-flow__instruction-title"},H1={key:0,class:"ts-flow__instruction-steps"},z1={class:"ts-flow__sub-dot"},W1={class:"ts-flow__sub-label"},K1={key:2,class:"ts-flow__waiting"},G1={class:"ts-flow__sync-status"},J1=be({__name:"TroubleshootFlow",setup(e){const t=Ot(),n=F(!1),s=M(()=>t.troubleshootingSteps||[]),o=M(()=>t.troubleshootingTemplateName||"排查中"),i=M(()=>t.troubleshootingCurrentNode||null);function r(l){var d,c;if(!n.value){n.value=!0;try{i.value&&(i.value.status="done");const u=l==="yes"?(d=i.value)==null?void 0:d.yes_branch:(c=i.value)==null?void 0:c.no_branch;u&&(t.troubleshootingCurrentNode=u,u.status="current",u.type==="step"&&a(u)),console.log("[TroubleshootFlow] 用户选择:",l,"下一节点:",u==null?void 0:u.label)}finally{setTimeout(()=>{n.value=!1},500)}}}function a(l){const d=t.troubleshootingSteps;if(!d||d.length===0)return;const c=d.findIndex(u=>u.label===l.label);if(c>=0){const u=d.map((f,h)=>({...f,status:h<c?"done":h===c?"current":"pending"}));t.troubleshootingSteps=u}}return(l,d)=>{var c,u;return s.value.length>0?(k(),I("div",I1,[_("div",O1,[_("div",P1,[(k(!0),I(Se,null,nt(s.value,(f,h)=>(k(),I(Se,{key:h},[_("div",{class:ve(["ts-flow__step",`ts-flow__step--${f.status}`])},[_("span",{class:ve(["ts-flow__dot",`ts-flow__dot--${f.status}`])},[f.status==="done"?(k(),I(Se,{key:0},[Ue("✓")],64)):(k(),I(Se,{key:1},[Ue(j(h+1),1)],64))],2),_("span",$1,j(f.label),1)],2),h<s.value.length-1?(k(),I("span",{key:0,class:ve(["ts-flow__arrow",{"ts-flow__arrow--active":f.status==="done"}])},"→",2)):re("",!0)],64))),128))])]),_("div",B1,[i.value&&i.value.type==="decision"?(k(),I("div",D1,[_("div",N1,[d[2]||(d[2]=_("span",{class:"ts-flow__question-icon"},"❓",-1)),_("span",L1,j(i.value.label),1)]),_("div",F1,[_("button",{class:"ts-flow__option ts-flow__option--yes",onClick:d[0]||(d[0]=f=>r("yes")),disabled:n.value},[d[3]||(d[3]=_("span",{class:"ts-flow__option-icon"},"✅",-1)),_("span",null,j(((c=i.value.yes_branch)==null?void 0:c.label)||"是"),1)],8,M1),_("button",{class:"ts-flow__option ts-flow__option--no",onClick:d[1]||(d[1]=f=>r("no")),disabled:n.value},[d[4]||(d[4]=_("span",{class:"ts-flow__option-icon"},"❌",-1)),_("span",null,j(((u=i.value.no_branch)==null?void 0:u.label)||"否"),1)],8,V1)])])):i.value&&i.value.type==="step"?(k(),I("div",j1,[_("div",U1,[d[5]||(d[5]=_("span",{class:"ts-flow__instruction-icon"},"📋",-1)),_("span",q1,"正在执行:"+j(i.value.label),1)]),i.value.children&&i.value.children.length>0?(k(),I("div",H1,[(k(!0),I(Se,null,nt(i.value.children,(f,h)=>(k(),I("div",{key:f.id,class:ve(["ts-flow__sub-step",`ts-flow__sub-step--${f.status||"pending"}`])},[_("span",z1,j(h+1),1),_("span",W1,j(f.label),1)],2))),128))])):re("",!0),d[6]||(d[6]=_("div",{class:"ts-flow__instruction-hint"},[_("span",null,"💡 请按坐席指引操作,完成后坐席会推进到下一步")],-1))])):(k(),I("div",K1,[...d[7]||(d[7]=[_("span",{class:"ts-flow__waiting-icon"},"⏳",-1),_("span",null,"坐席正在选择排查流程,请稍候...",-1)])])),_("div",G1,[d[8]||(d[8]=_("span",{class:"ts-flow__sync-dot"},null,-1)),_("span",null,"排查进度实时同步 · "+j(o.value),1)])])])):re("",!0)}}}),X1=at(J1,[["__scopeId","data-v-412334b8"]]),Jr={primary_agent:"#3b82f6",collaborator:"#07C160",owner:"#FF9800",invitee:"transparent"};function Xf(){const e=Ot(),t=xt(),n=M(()=>{var r;return((r=e.userInfo)==null?void 0:r.employee_id)||""}),s=M(()=>{var d;const r=e.currentConversation;if(!r)return[];const a=[];if(r.agent_name&&a.push({id:r.agent_id||"agent_primary",name:r.agent_name,avatar:"",department:"IT坐席",role:"primary_agent",joined:!0,isSelf:!1}),r.employee_name){const c=r.employee_id===n.value;a.push({id:r.employee_id,name:c?"我":r.employee_name,avatar:c&&((d=t.employeeInfo)==null?void 0:d.avatar)||"",department:"",role:"owner",joined:!0,isSelf:c})}const l=(e.participants||[]).slice().sort((c,u)=>c.joined!==u.joined?c.joined?-1:1:c.joined_at&&u.joined_at?new Date(c.joined_at).getTime()-new Date(u.joined_at).getTime():0);for(const c of l)a.push({id:c.id,name:c.name,avatar:c.avatar||"",department:c.department||"",role:"invitee",joined:c.joined??!1,isSelf:c.id===n.value,joinedAt:c.joined_at});return a}),o=M(()=>s.value.length),i=M(()=>s.value.some(r=>!r.joined));return{normalizedParticipants:s,totalCount:o,hasPending:i,currentUserId:n}}async function Y1(e){return await Me.get("/h5/employees/search",{params:{keyword:e}})}async function Q1(){return await Me.get("/h5/org/tree")}async function Z1(e,t,n="recent10"){return await Me.post(`/h5/conversations/${e}/invite-participant`,{participants:t,history_mode:n})}const eS={class:"invite-sheet"},tS={class:"invite-sheet__header"},nS={class:"invite-sheet__content"},sS={key:0,class:"invite-sheet__loading"},oS={key:1,class:"invite-sheet__empty"},iS={key:2},rS=["onClick"],aS={class:"invite-cell__avatar"},lS={class:"invite-cell__info"},cS={class:"invite-cell__name"},uS={key:0,class:"invite-cell__dept"},dS={key:0,class:"invite-cell__badge"},fS={class:"invite-sheet__content"},hS={key:0,class:"invite-sheet__loading"},pS={key:2,class:"org-tree-flat"},mS=["onClick"],gS={class:"org-tree-node__label"},_S={class:"org-tree-node__count"},vS={class:"invite-cell__avatar"},yS={class:"invite-cell__info"},bS={class:"invite-cell__name"},wS={key:0,class:"invite-cell__dept"},ES={key:0,class:"invite-cell__badge"},SS={class:"invite-sheet__footer"},CS={class:"invite-sheet__count"},xS=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=F(0),i=F(""),r=F([]),a=F(!1),l=F([]),d=F(!1),c=F(!1),u=F([]),f=F(!1),h=F(new Map),g=M(()=>h.value.size),m=M(()=>{const G=[];function ie(de,ne){for(const le of de)if(le.isLeaf)G.push({id:le.id,label:le.label,isLeaf:!0,department:le.department,depth:ne,childCount:0});else{const ke=P(le);G.push({id:le.id,label:le.label,isLeaf:!1,department:le.department,depth:ne,childCount:ke}),u.value.includes(le.id)&&le.children&&ie(le.children,ne+1)}}return ie(l.value,0),G});function p(G){return(G||"?").charAt(0)}function v(G){return h.value.has(G)}function S(G){return n.existingParticipantIds.includes(G)}function T(G){S(G.id)||(h.value.has(G.id)?h.value.delete(G.id):h.value.set(G.id,G))}function x(G){T({id:G.id,name:G.name,department:G.department||""})}function b(G){T({id:G.id,name:G.label,department:G.department||""})}function P(G){if(G.isLeaf)return 1;let ie=0;for(const de of G.children||[])ie+=P(de);return ie}function B(G){return u.value.includes(G)}function L(G){const ie=u.value.indexOf(G);ie>=0?u.value.splice(ie,1):u.value.push(G)}let R=null;function K(G){R&&clearTimeout(R),R=setTimeout(()=>{X(G)},300)}async function X(G){const ie=(G||"").trim();if(!ie){r.value=[];return}a.value=!0;try{r.value=await Y1(ie)}catch(de){console.error("[InviteSheet] 搜索失败:",de)}finally{a.value=!1}}async function z(){if(!c.value){d.value=!0;try{l.value=await Q1(),c.value=!0,u.value=l.value.filter(G=>!G.isLeaf).map(G=>G.id)}catch(G){console.error("[InviteSheet] 获取组织架构树失败:",G)}finally{d.value=!1}}}async function ee(){if(!(g.value===0||!n.conversationId)){f.value=!0;try{const G=Array.from(h.value.values()).map(ie=>({id:ie.id,name:ie.name,department:ie.department,type:"employee"}));await Z1(n.conversationId,G,"recent10"),Ee("邀请已发送"),h.value.clear(),s("update:show",!1),s("invited")}catch(G){console.error("[InviteSheet] 邀请失败:",G)}finally{f.value=!1}}}return xe(()=>n.show,G=>{G&&(h.value.clear(),i.value="",r.value=[],o.value=0)}),xe(o,G=>{G===1&&!c.value&&!d.value&&z()}),(G,ie)=>{const de=kv,ne=Co,le=iv,ke=S_,Te=Zd,se=pt,pe=C_,fe=bs,Ae=Ts;return k(),At(Ae,{show:e.show,position:"bottom",round:"",teleport:"body",style:{maxHeight:"85vh",minHeight:"50vh"},"onUpdate:show":ie[3]||(ie[3]=H=>G.$emit("update:show",H))},{default:ot(()=>[_("div",eS,[_("div",tS,[ie[4]||(ie[4]=_("span",{class:"invite-sheet__title"},"邀请参与者",-1)),_("button",{class:"invite-sheet__close",onClick:ie[0]||(ie[0]=H=>G.$emit("update:show",!1))}," × ")]),C(pe,{active:o.value,"onUpdate:active":ie[2]||(ie[2]=H=>o.value=H),shrink:""},{default:ot(()=>[C(ke,{title:"搜索"},{default:ot(()=>[C(de,{modelValue:i.value,"onUpdate:modelValue":[ie[1]||(ie[1]=H=>i.value=H),K],placeholder:"搜索姓名或工号",shape:"round"},null,8,["modelValue"]),_("div",nS,[a.value?(k(),I("div",sS,[C(ne,{type:"spinner",size:"24px"},{default:ot(()=>[...ie[5]||(ie[5]=[Ue("搜索中...",-1)])]),_:1})])):i.value&&r.value.length===0?(k(),I("div",oS," 未找到匹配的员工 ")):(k(),I("div",iS,[(k(!0),I(Se,null,nt(r.value,H=>(k(),I("div",{key:H.id,class:ve(["invite-cell",{"invite-cell--disabled":S(H.id)}]),onClick:ce=>x(H)},[C(le,{"model-value":v(H.id),disabled:S(H.id),shape:"square"},null,8,["model-value","disabled"]),_("div",aS,j(p(H.name)),1),_("div",lS,[_("span",cS,j(H.name),1),H.department?(k(),I("span",uS,j(H.department),1)):re("",!0)]),S(H.id)?(k(),I("span",dS,"已在会话中")):re("",!0)],10,rS))),128))]))])]),_:1}),C(ke,{title:"组织架构"},{default:ot(()=>[_("div",fS,[d.value?(k(),I("div",hS,[C(ne,{type:"spinner",size:"24px"},{default:ot(()=>[...ie[6]||(ie[6]=[Ue("加载中...",-1)])]),_:1})])):l.value.length===0?(k(),At(Te,{key:1,description:"暂无组织架构数据",image:"search"})):(k(),I("div",pS,[(k(!0),I(Se,null,nt(m.value,H=>(k(),I("div",{key:H.id,class:ve(["org-tree-node",{"org-tree-node--dept":!H.isLeaf,"org-tree-node--emp":H.isLeaf,"invite-cell--disabled":H.isLeaf&&S(H.id)}]),style:Ut({paddingLeft:`${H.depth*16+12}px`}),onClick:ce=>H.isLeaf?b(H):L(H.id)},[H.isLeaf?(k(),I(Se,{key:1},[C(le,{"model-value":v(H.id),disabled:S(H.id),shape:"square"},null,8,["model-value","disabled"]),_("div",vS,j(p(H.label)),1),_("div",yS,[_("span",bS,j(H.label),1),H.department?(k(),I("span",wS,j(H.department),1)):re("",!0)]),S(H.id)?(k(),I("span",ES,"已在会话中")):re("",!0)],64)):(k(),I(Se,{key:0},[C(se,{name:B(H.id)?"arrow-down":"arrow",class:"org-tree-node__arrow"},null,8,["name"]),_("span",gS,j(H.label),1),_("span",_S,j(H.childCount)+"人",1)],64))],14,mS))),128))]))])]),_:1})]),_:1},8,["active"]),_("div",SS,[_("span",CS,[ie[7]||(ie[7]=Ue(" 已选 ",-1)),_("strong",null,j(g.value),1),ie[8]||(ie[8]=Ue(" 人 ",-1))]),C(fe,{type:"success",size:"small",round:"",loading:f.value,disabled:g.value===0||!e.conversationId,onClick:ee},{default:ot(()=>[...ie[9]||(ie[9]=[Ue(" 确认邀请 ",-1)])]),_:1},8,["loading","disabled"])])])]),_:1},8,["show"])}}}),Yf=at(xS,[["__scopeId","data-v-61086f47"]]),AS={class:"participant-strip__count"},kS={class:"participant-strip__avatars"},TS=["onMouseenter"],RS=["src","alt","onError"],IS={key:1,class:"participant-strip__avatar-letter"},OS={key:0,class:"participant-strip__overflow"},PS={key:1,class:"participant-strip__badge-dot"},$S={class:"participant-strip__tooltip-name"},BS={key:0,class:"participant-strip__tooltip-dept"},jc=4,DS=be({__name:"ParticipantStrip",setup(e){const t=Ot(),n=xt(),s=F({}),o=F(null),i=F(!1),{normalizedParticipants:r,totalCount:a,hasPending:l}=Xf(),d=M(()=>r.value.slice(0,jc)),c=M(()=>Math.max(0,r.value.length-jc)),u=M(()=>{const v=t.currentConversation;return v?v.employee_id===n.employeeId?!0:r.value.some(S=>S.id===n.employeeId):!1});function f(v){return v.role==="primary_agent"?"主责坐席":v.role==="collaborator"?"协作坐席":v.role==="owner"?"发起人":v.joined?"已加入":"待加入"}const h=M(()=>r.value.map(v=>v.id).filter(Boolean));async function g(){i.value=!1,await t.fetchCurrentConversation()}function m(v){return(v||"?").charAt(0)}function p(){t.participantPanelVisible=!0}return(v,S)=>{var T;return k(),I("div",{class:ve(["participant-strip",{"participant-strip--has-pending":Re(l)}]),onClick:p},[_("span",AS,j(Re(a))+"人在群",1),_("div",kS,[(k(!0),I(Se,null,nt(d.value,x=>(k(),I("div",{key:x.id,class:ve(["participant-strip__avatar",{"participant-strip__avatar--self":x.isSelf}]),style:Ut({borderColor:Re(Jr)[x.role]}),onMouseenter:b=>o.value=x,onMouseleave:S[0]||(S[0]=b=>o.value=null)},[x.avatar&&!s.value[x.id]?(k(),I("img",{key:0,src:x.avatar,alt:x.name,class:"participant-strip__avatar-img",onError:b=>s.value[x.id]=!0},null,40,RS)):(k(),I("span",IS,j(m(x.name)),1))],46,TS))),128)),c.value>0?(k(),I("span",OS," +"+j(c.value),1)):re("",!0)]),u.value?(k(),I("button",{key:0,class:"participant-strip__invite-btn",title:"邀请同事加入会话",onClick:S[1]||(S[1]=_n(x=>i.value=!0,["stop"]))}," + 邀请 ")):re("",!0),S[3]||(S[3]=_("span",{class:"participant-strip__arrow"},"▼",-1)),Re(l)?(k(),I("span",PS)):re("",!0),o.value?(k(),I("div",{key:2,class:"participant-strip__tooltip",style:Ut({borderColor:Re(Jr)[o.value.role]})},[_("div",$S,[Ue(j(o.value.name)+" ",1),_("span",{class:ve(["participant-strip__tooltip-role",`participant-strip__tooltip-role--${o.value.role}`])},j(f(o.value)),3)]),o.value.department?(k(),I("div",BS,j(o.value.department),1)):re("",!0)],4)):re("",!0),C(Yf,{show:i.value,"onUpdate:show":S[2]||(S[2]=x=>i.value=x),"conversation-id":((T=Re(t).currentConversation)==null?void 0:T.conversation_id)||"","existing-participant-ids":h.value,onInvited:g},null,8,["show","conversation-id","existing-participant-ids"])],2)}}}),NS=at(DS,[["__scopeId","data-v-b54d15e0"]]),LS={class:"participant-list"},FS={class:"participant-list__header"},MS={class:"participant-list__items"},VS=["src","alt","onError"],jS={key:1,class:"participant-item__avatar-letter"},US={class:"participant-item__info"},qS={class:"participant-item__name"},HS={key:0,class:"participant-item__self-tag"},zS={key:0,class:"participant-item__dept"},WS={key:0,class:"participant-item__badge participant-item__badge--agent"},KS={key:1,class:"participant-item__badge participant-item__badge--owner"},GS={key:2,class:"participant-item__badge participant-item__badge--joined"},JS={key:3,class:"participant-item__badge participant-item__badge--pending"},XS={key:0,class:"participant-list__invite-section"},YS={key:1,class:"participant-list__footer"},QS=["disabled"],ZS=be({__name:"ParticipantList",setup(e){const t=Ot(),n=xt(),s=F(!1),o=F({}),{normalizedParticipants:i}=Xf(),r=F(!1),a=M(()=>{const f=t.currentConversation;return f?f.employee_id===n.employeeId?!0:i.value.some(h=>h.id===n.employeeId):!1}),l=M(()=>i.value.map(f=>f.id).filter(Boolean));async function d(){r.value=!1,await t.fetchCurrentConversation()}function c(f){return(f||"?").charAt(0)}async function u(){try{await _v({title:"退出会话",message:"确定要退出该会话吗?退出后将无法查看会话消息。",confirmButtonText:"确定退出",cancelButtonText:"再想想",confirmButtonColor:"#ee0a24"}),s.value=!0,await t.leaveAsParticipant(),Ee("已退出会话"),t.participantPanelVisible=!1}catch(f){f!=="cancel"&&(console.error("[ParticipantList] 退出失败:",f),Ee("退出失败,请重试"))}finally{s.value=!1}}return(f,h)=>{var g;return k(),I("div",LS,[_("div",FS,[h[3]||(h[3]=_("span",{class:"participant-list__title"},"参与者",-1)),_("button",{class:"participant-list__close-btn",onClick:h[0]||(h[0]=m=>Re(t).participantPanelVisible=!1)}," × ")]),_("div",MS,[(k(!0),I(Se,null,nt(Re(i),m=>(k(),I("div",{key:m.id,class:ve(["participant-item",{"participant-item--self":m.isSelf}])},[_("div",{class:ve(["participant-item__avatar",{"participant-item__avatar--self":m.isSelf,"participant-item__avatar--agent":m.role==="primary_agent"}]),style:Ut({borderColor:Re(Jr)[m.role]})},[m.avatar&&!o.value[m.id]?(k(),I("img",{key:0,src:m.avatar,alt:m.name,class:"participant-item__avatar-img",onError:p=>o.value[m.id]=!0},null,40,VS)):(k(),I("span",jS,j(c(m.name)),1))],6),_("div",US,[_("span",qS,[Ue(j(m.name)+" ",1),m.isSelf?(k(),I("span",HS,"(我)")):re("",!0)]),m.department?(k(),I("span",zS,j(m.department),1)):re("",!0)]),m.role==="primary_agent"?(k(),I("span",WS,"坐席")):m.role==="owner"?(k(),I("span",KS,"发起人")):m.joined?(k(),I("span",GS,"已加入")):(k(),I("span",JS,"待加入"))],2))),128))]),a.value?(k(),I("div",XS,[_("button",{class:"participant-list__invite-btn",onClick:h[1]||(h[1]=m=>r.value=!0)},[...h[4]||(h[4]=[_("span",{class:"participant-list__invite-icon"},"+",-1),Ue(" 邀请参与者 ",-1)])])])):re("",!0),Re(t).isParticipant?(k(),I("div",YS,[_("button",{class:"participant-list__leave-btn",disabled:s.value,onClick:u},j(s.value?"退出中...":"退出会话"),9,QS)])):re("",!0),C(Yf,{show:r.value,"onUpdate:show":h[2]||(h[2]=m=>r.value=m),"conversation-id":((g=Re(t).currentConversation)==null?void 0:g.conversation_id)||"","existing-participant-ids":l.value,onInvited:d},null,8,["show","conversation-id","existing-participant-ids"])])}}}),eC=at(ZS,[["__scopeId","data-v-df70b1a6"]]),tC={class:"evaluation-dialog"},nC={class:"evaluation-dialog__section"},sC={class:"star-rating"},oC={class:"star-label"},iC={class:"evaluation-dialog__section"},rC={class:"emoji-selector"},aC={class:"evaluation-dialog__section"},lC={class:"evaluation-dialog__actions"},cC={class:"evaluation-dialog__skip"},uC=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=M({get:()=>s.modelValue,set:m=>o("update:modelValue",m)}),r=F({star_rating:0,emoji:"",feedback_text:""}),a=F(!1),l=M(()=>({0:"",1:"非常差",2:"较差",3:"一般",4:"满意",5:"非常满意"})[r.value.star_rating]||""),d=M(()=>r.value.star_rating>0&&r.value.emoji!=="");xe(i,async m=>{if(m&&s.conversationId)try{await Xw(s.conversationId)&&(i.value=!1,Ee("您已评价过该会话"))}catch(p){console.warn("[EvaluationDialog] 检查评价状态失败:",p)}});function c(m){r.value.emoji=m}function u(m){m>=4?r.value.emoji="satisfied":m>=2?r.value.emoji="neutral":r.value.emoji="dissatisfied"}async function f(){if(!(!d.value||a.value)){a.value=!0;try{await Jw(s.conversationId,{star_rating:r.value.star_rating,emoji:r.value.emoji,feedback_text:r.value.feedback_text||void 0}),Ee("评价成功,感谢您的反馈!"),i.value=!1,o("submitted")}catch(m){console.error("[EvaluationDialog] 提交评价失败:",m)}finally{a.value=!1}}}function h(){i.value=!1}function g(){r.value={star_rating:0,emoji:"",feedback_text:""},a.value=!1}return t({resetForm:g}),(m,p)=>{const v=Ev,S=Aa,T=bs,x=Ts;return k(),At(x,{show:i.value,"onUpdate:show":p[5]||(p[5]=b=>i.value=b),round:"","close-on-click-overlay":!1,class:"evaluation-popup"},{default:ot(()=>[_("div",tC,[p[14]||(p[14]=_("div",{class:"evaluation-dialog__header"},[_("h3",{class:"evaluation-dialog__title"},"请对本次服务进行评价"),_("p",{class:"evaluation-dialog__subtitle"},"您的评价对我们非常重要")],-1)),_("div",nC,[p[6]||(p[6]=_("div",{class:"evaluation-dialog__label"},"服务评分",-1)),_("div",sC,[C(v,{modelValue:r.value.star_rating,"onUpdate:modelValue":p[0]||(p[0]=b=>r.value.star_rating=b),count:5,size:"32",color:"#FFD21E","void-color":"#E5E5E5",onChange:u},null,8,["modelValue"]),_("span",oC,j(l.value),1)])]),_("div",iC,[p[10]||(p[10]=_("div",{class:"evaluation-dialog__label"},"整体感受",-1)),_("div",rC,[_("div",{class:ve(["emoji-item",{"emoji-item--selected":r.value.emoji==="satisfied"}]),onClick:p[1]||(p[1]=b=>c("satisfied"))},[...p[7]||(p[7]=[_("span",{class:"emoji-icon"},"😀",-1),_("span",{class:"emoji-text"},"满意",-1)])],2),_("div",{class:ve(["emoji-item",{"emoji-item--selected":r.value.emoji==="neutral"}]),onClick:p[2]||(p[2]=b=>c("neutral"))},[...p[8]||(p[8]=[_("span",{class:"emoji-icon"},"😐",-1),_("span",{class:"emoji-text"},"一般",-1)])],2),_("div",{class:ve(["emoji-item",{"emoji-item--selected":r.value.emoji==="dissatisfied"}]),onClick:p[3]||(p[3]=b=>c("dissatisfied"))},[...p[9]||(p[9]=[_("span",{class:"emoji-icon"},"😞",-1),_("span",{class:"emoji-text"},"不满意",-1)])],2)])]),_("div",aC,[p[11]||(p[11]=_("div",{class:"evaluation-dialog__label"},[Ue(" 改进建议 "),_("span",{class:"evaluation-dialog__optional"},"(选填)")],-1)),C(S,{modelValue:r.value.feedback_text,"onUpdate:modelValue":p[4]||(p[4]=b=>r.value.feedback_text=b),type:"textarea",placeholder:"您对本次服务有什么建议?",maxlength:"200","show-word-limit":"",rows:"3",class:"evaluation-dialog__textarea"},null,8,["modelValue"])]),_("div",lC,[C(T,{type:"primary",size:"large",loading:a.value,disabled:!d.value,onClick:f},{default:ot(()=>[...p[12]||(p[12]=[Ue(" 提交评价 ",-1)])]),_:1},8,["loading","disabled"])]),_("div",cC,[C(T,{size:"small",type:"default",disabled:a.value,onClick:h},{default:ot(()=>[...p[13]||(p[13]=[Ue(" 暂不评价 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),dC=at(uC,[["__scopeId","data-v-4e60a09d"]]),fC={class:"chat-panel"},hC={class:"chat-panel__header"},pC={class:"chat-panel__header-left"},mC={key:0,class:"chat-panel__status chat-panel__status--online"},gC={key:1,class:"chat-panel__status chat-panel__status--offline"},_C={class:"chat-panel__header-actions"},vC=["title"],yC={class:"chat-panel__user-info"},bC=["src","alt"],wC={key:1,class:"chat-panel__avatar chat-panel__avatar--fallback"},EC={class:"chat-panel__username"},SC={key:0,class:"chat-panel__troubleshoot-fixed"},CC={key:0,class:"chat-panel__not-logged"},xC={key:1,class:"chat-panel__empty"},AC=be({__name:"ChatPanel",setup(e){const t=Ot(),n=af(),s=xt(),o=F(!1),i=M(()=>{const p=s.employeeName;return p?p.charAt(0).toUpperCase():"?"});function r(){o.value=!0}const a=F(null),l=F(!1),d=F(""),c=F(""),u=F(!0);async function f(){await Ze(),a.value&&(a.value.scrollTop=a.value.scrollHeight)}function h(){if(!a.value)return;const{scrollTop:p,scrollHeight:v,clientHeight:S}=a.value;u.value=v-p-S<100}async function g(){if(!t.currentConversation){Ee("会话未就绪,请稍后再试");return}W_({message:"正在呼叫人工坐席...",forbidClick:!0,duration:0});try{await t.shakeAgent(),Wl()}catch(p){Wl(),Ee("呼叫失败,请稍后重试"),console.error("[ChatPanel] handleDirectCall failed:",p)}}function m(){console.log("[ChatPanel] 评价已提交")}return xe(()=>t.messages.length,()=>{f()}),xe(()=>{var p;return(p=t.currentConversation)==null?void 0:p.conversation_id},()=>{t.participantPanelVisible=!1}),xe(()=>{var p;return(p=t.currentConversation)==null?void 0:p.status},(p,v)=>{var S;if(v==="serving"&&p==="resolved"){const T=(S=t.currentConversation)==null?void 0:S.conversation_id;T&&setTimeout(()=>{d.value=T,l.value=!0},3e3)}c.value=p||""}),st(()=>{var p;f(),c.value=((p=t.currentConversation)==null?void 0:p.status)||""}),(p,v)=>{var x,b;const S=Zd,T=Ts;return k(),I("div",fC,[_("div",hC,[_("div",pC,[v[5]||(v[5]=_("span",{class:"logo-block"},"IT",-1)),v[6]||(v[6]=_("span",{class:"chat-panel__title"},"智能IT服务",-1)),Re(t).agentOnline?(k(),I("span",mC,[...v[3]||(v[3]=[_("span",{class:"chat-panel__status-dot"},null,-1),Ue(" 坐席在线 ",-1)])])):(k(),I("span",gC,[...v[4]||(v[4]=[_("span",{class:"chat-panel__status-dot"},null,-1),Ue(" 坐席离线 ",-1)])]))]),_("div",_C,[_("div",{class:"theme-switch",title:Re(n).currentTheme==="light"?"切换到深色模式":"切换到浅色模式",onClick:v[0]||(v[0]=P=>Re(n).toggleTheme())},[...v[7]||(v[7]=[_("span",{class:"switch-icon"},"☀️",-1),_("div",{class:"switch-track"},[_("div",{class:"switch-thumb"})],-1),_("span",{class:"switch-icon"},"🌙",-1)])],8,vC),_("div",yC,[(x=Re(s).employeeInfo)!=null&&x.avatar&&!o.value?(k(),I("img",{key:0,src:Re(s).employeeInfo.avatar,class:"chat-panel__avatar",alt:Re(s).employeeName,onError:r},null,40,bC)):(k(),I("span",wC,j(i.value),1)),_("span",EC,j(Re(s).employeeName),1)])])]),(b=Re(t).troubleshootingSteps)!=null&&b.length?(k(),I("div",SC,[C(X1)])):re("",!0),Re(t).participants.length>0?(k(),At(NS,{key:1})):re("",!0),_("div",{ref_key:"messageListRef",ref:a,class:"chat-panel__messages",onScroll:h},[Re(t).isLoggedIn?Re(t).messages.length===0?(k(),I("div",xC,[...v[8]||(v[8]=[_("div",{class:"chat-panel__empty-icon"},"💬",-1),_("p",{class:"chat-panel__empty-text"},"暂无消息",-1),_("p",{class:"chat-panel__empty-hint"},'输入问题咨询,或点击下方"人工坐席"按钮',-1)])])):(k(!0),I(Se,{key:2},nt(Re(t).messages,P=>(k(),At(n1,{key:P.message_id,msg:P},null,8,["msg"]))),128)):(k(),I("div",CC,[C(S,{description:"正在获取身份信息...",image:"search"})]))],544),C(R1,{onCallAgent:g}),C(dC,{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=P=>l.value=P),"conversation-id":d.value,onSubmitted:m},null,8,["modelValue","conversation-id"]),C(T,{show:Re(t).participantPanelVisible,"onUpdate:show":v[2]||(v[2]=P=>Re(t).participantPanelVisible=P),position:"bottom",round:"",teleport:"body",style:{maxHeight:"60vh"}},{default:ot(()=>[C(eC)]),_:1},8,["show"])])}}}),kC=at(AC,[["__scopeId","data-v-2c37691d"]]);function TC(){return Me.get("/h5/it-health")}const RC={class:"basic-info-card"},IC={key:0,class:"basic-info-card__loading"},OC={class:"basic-info-card__tabs"},PC={key:0,class:"basic-info-card__current"},$C={class:"device-header"},BC={class:"device-header__left"},DC={class:"device-header__name"},NC={class:"info-grid"},LC={class:"info-grid__main"},FC={class:"info-row"},MC={class:"info-row__value"},VC={class:"info-row__value"},jC={class:"info-row"},UC={class:"info-row__value"},qC={class:"info-row__value"},HC={class:"info-row"},zC={class:"info-row__value"},WC={class:"info-row__value"},KC={class:"info-row"},GC={class:"info-row__value"},JC={class:"info-row__value"},XC={class:"health-badge__score"},YC={key:0,class:"perf-section"},QC={key:0,class:"perf-item"},ZC={class:"perf-item__header"},ex={class:"perf-item__value"},tx={class:"perf-item__bar"},nx={key:1,class:"perf-item"},sx={class:"perf-item__header"},ox={class:"perf-item__value"},ix={class:"perf-item__bar"},rx={class:"perf-item__header"},ax={class:"perf-item__label"},lx={class:"perf-item__value"},cx={class:"perf-item__bar"},ux={key:1,class:"data-source-badge"},dx={key:1,class:"basic-info-card__other"},fx={key:0,class:"other-empty"},hx={key:1,class:"other-list"},px={class:"other-item__left"},mx={class:"other-item__type"},gx={class:"other-item__name"},_x={class:"other-item__right"},vx={class:"other-item__time"},yx={class:"other-item__location"},bx=be({__name:"BasicInfoCard",setup(e){const t=F("current"),n=F(!0),s=F("mock"),o=F({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=F([]);st(async()=>{await r()});async function r(){n.value=!0;try{const c=await TC();if(c){const u=c.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=(c.other_devices||[]).map(f=>({deviceType:f.device_type||"设备",deviceName:f.device_name||"",lastLoginTime:f.last_login_time||"",lastLoginLocation:f.last_login_location||""})),s.value=c.data_source||"mock"}}catch(c){console.warn("[BasicInfoCard] IT 健康数据获取失败,使用降级数据:",c),s.value="mock"}finally{n.value=!1}}const a=M(()=>{if(o.value.healthScore!==void 0)return o.value.healthScore;let c=100;for(const u of o.value.securityChecks)u.status==="danger"?c-=15:u.status==="warning"&&(c-=8);for(const u of o.value.complianceChecks)u.status==="warning"?c-=5:u.status==="danger"&&(c-=10);return o.value.isOnline||(c=Math.round(c*.6)),Math.max(0,c)}),l=M(()=>{const c=a.value;return c>=80?"good":c>=60?"fair":"poor"});function d(c){return c>85?"fill--danger":c>60?"fill--warning":"fill--normal"}return(c,u)=>{var f,h,g,m,p;return k(),I("div",RC,[n.value?(k(),I("div",IC,[...u[2]||(u[2]=[_("span",null,"正在获取设备信息...",-1)])])):(k(),I(Se,{key:1},[_("div",OC,[_("button",{class:ve(["tab-btn",{"tab-btn--active":t.value==="current"}]),onClick:u[0]||(u[0]=v=>t.value="current")}," 当前设备 ",2),_("button",{class:ve(["tab-btn",{"tab-btn--active":t.value==="other"}]),onClick:u[1]||(u[1]=v=>t.value="other")}," 其他设备 ("+j(i.value.length)+") ",3)]),t.value==="current"?(k(),I("div",PC,[_("div",$C,[_("div",BC,[_("span",{class:ve(["device-header__dot",o.value.isOnline?"dot--online":"dot--offline"])},null,2),_("span",DC,j(o.value.deviceName),1)]),_("span",{class:ve(["device-header__status",o.value.isOnline?"status--online":"status--offline"])},j(o.value.isOnline?"在线":"离线"),3)]),_("div",NC,[_("div",LC,[_("div",FC,[u[3]||(u[3]=_("span",{class:"info-row__label"},"资产编号",-1)),_("span",MC,j(o.value.assetTag||"-"),1),u[4]||(u[4]=_("span",{class:"info-row__label info-row__label--indent"},"启用时间",-1)),_("span",VC,j(o.value.activateDate||"-"),1)]),_("div",jC,[u[5]||(u[5]=_("span",{class:"info-row__label"},"内网IP",-1)),_("span",UC,j(o.value.ipAddress||"-"),1),u[6]||(u[6]=_("span",{class:"info-row__label info-row__label--indent"},"公网出口",-1)),_("span",qC,j(o.value.publicIp||"-"),1)]),_("div",HC,[u[7]||(u[7]=_("span",{class:"info-row__label"},"办公地点",-1)),_("span",zC,j(o.value.location||"-"),1),u[8]||(u[8]=_("span",{class:"info-row__label info-row__label--indent"},"操作系统",-1)),_("span",WC,j(o.value.os||"-"),1)]),_("div",KC,[u[9]||(u[9]=_("span",{class:"info-row__label"},"MAC地址",-1)),_("span",GC,j(o.value.mac||"-"),1),u[10]||(u[10]=_("span",{class:"info-row__label info-row__label--indent"},"运行时长",-1)),_("span",JC,j(o.value.uptime||"-"),1)])]),_("div",{class:ve(["health-badge",`health-badge--${l.value}`])},[_("span",XC,j(a.value),1),u[11]||(u[11]=_("span",{class:"health-badge__label"},"健康评分",-1))],2)]),(f=o.value.cpu)!=null&&f.model||(h=o.value.memory)!=null&&h.total||(g=o.value.disks)!=null&&g.length?(k(),I("div",YC,[(m=o.value.cpu)!=null&&m.model?(k(),I("div",QC,[_("div",ZC,[u[12]||(u[12]=_("span",{class:"perf-item__label"},"CPU",-1)),_("span",ex,j(o.value.cpu.usage)+"% · "+j(o.value.cpu.model),1)]),_("div",tx,[_("div",{class:ve(["perf-item__fill",d(o.value.cpu.usage)]),style:Ut({width:o.value.cpu.usage+"%"})},null,6)])])):re("",!0),(p=o.value.memory)!=null&&p.total?(k(),I("div",nx,[_("div",sx,[u[13]||(u[13]=_("span",{class:"perf-item__label"},"内存",-1)),_("span",ox,j(o.value.memory.usage)+"% · "+j(o.value.memory.total),1)]),_("div",ix,[_("div",{class:ve(["perf-item__fill",d(o.value.memory.usage)]),style:Ut({width:o.value.memory.usage+"%"})},null,6)])])):re("",!0),(k(!0),I(Se,null,nt(o.value.disks,v=>(k(),I("div",{class:"perf-item",key:v.label},[_("div",rx,[_("span",ax,j(v.label),1),_("span",lx,j(v.usage)+"% · "+j(v.used)+"/"+j(v.total),1)]),_("div",cx,[_("div",{class:ve(["perf-item__fill",d(v.usage)]),style:Ut({width:v.usage+"%"})},null,6)])]))),128))])):re("",!0),s.value==="mock"?(k(),I("div",ux," ⚠️ 数据来源:模拟(集成未配置) ")):re("",!0)])):(k(),I("div",dx,[i.value.length===0?(k(),I("div",fx," 暂无其他设备 ")):(k(),I("div",hx,[(k(!0),I(Se,null,nt(i.value,v=>(k(),I("div",{key:v.deviceName,class:"other-item"},[_("div",px,[_("span",mx,j(v.deviceType),1),_("span",gx,j(v.deviceName),1)]),_("div",_x,[_("span",vx,j(v.lastLoginTime),1),_("span",yx,j(v.lastLoginLocation),1)])]))),128))]))]))],64))])}}}),wx=at(bx,[["__scopeId","data-v-751fb5f6"]]),Ex={class:"self-diag"},Sx={class:"self-diag__header"},Cx=["disabled"],xx={class:"self-diag__tabs"},Ax=["onClick"],kx={key:0,class:"tab-btn__badge"},Tx={class:"self-diag__content"},Rx={class:"diag-chips"},Ix=["disabled","onClick"],Ox={class:"diag-chip__name"},Px={class:"diag-chip__icon"},$x={key:0,class:"diag-results"},Bx={class:"result-item__header"},Dx={class:"result-item__name"},Nx={key:0,class:"result-item__detail"},Lx={key:1,class:"risk-list"},Fx=["onClick"],Mx={class:"risk-item__icon"},Vx={class:"risk-item__name"},jx={class:"risk-item__toggle"},Ux={key:0,class:"risk-item__detail"},qx=["onClick"],Hx=be({__name:"SelfDiagnosis",setup(e){const t=F([{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=F("network"),s=mt(new Set),o=F(!1),i=M(()=>t.value.find(g=>g.key===n.value)||t.value[0]),r=M(()=>t.value.map(g=>{const m=g.diagItems.filter(v=>v.status==="warning"||v.status==="fail").length,p=g.riskItems.filter(v=>v.level==="warning"||v.level==="danger").length;return{key:g.key,label:g.label,badge:m+p}})),a=M(()=>i.value.diagItems.some(g=>g.status==="pass"||g.status==="warning"||g.status==="fail")),l={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(g){const m=i.value.diagItems.find(v=>v.key===g);if(!m||m.status==="running")return;m.status="running",m.detail="",await new Promise(v=>setTimeout(v,800+Math.random()*700));const p=l[g];p?(m.status=p.status,m.detail=p.detail):(m.status="pass",m.detail="诊断完成")}async function c(){if(i.value.diagItems.length!==0){o.value=!0;for(const g of i.value.diagItems)await d(g.key);o.value=!1}}function u(g){s.has(g)?s.delete(g):s.add(g)}function f(g){console.log("[Diag] risk action:",g.key,g.actionText)}function h(g){switch(g){case"pass":return"通过";case"warning":return"警告";case"fail":return"失败";default:return""}}return(g,m)=>(k(),I("div",Ex,[_("div",Sx,[m[0]||(m[0]=_("span",{class:"header__title"},"自助诊断",-1)),i.value.diagItems.length>0?(k(),I("button",{key:0,class:"header__btn",disabled:o.value,onClick:c},j(o.value?"诊断中...":"一键诊断"),9,Cx)):re("",!0)]),_("div",xx,[(k(!0),I(Se,null,nt(r.value,p=>(k(),I("button",{key:p.key,class:ve(["tab-btn",{"tab-btn--active":n.value===p.key}]),onClick:v=>n.value=p.key},[Ue(j(p.label)+" ",1),p.badge>0?(k(),I("span",kx,j(p.badge),1)):re("",!0)],10,Ax))),128))]),_("div",Tx,[i.value.diagItems.length>0?(k(),I(Se,{key:0},[_("div",Rx,[(k(!0),I(Se,null,nt(i.value.diagItems,p=>(k(),I("button",{key:p.key,class:ve(["diag-chip",`diag-chip--${p.status}`]),disabled:p.status==="running",onClick:v=>d(p.key)},[_("span",Ox,j(p.label),1),_("span",Px,[p.status==="running"?(k(),I(Se,{key:0},[Ue("...")],64)):p.status==="pass"?(k(),I(Se,{key:1},[Ue("✓")],64)):p.status==="warning"?(k(),I(Se,{key:2},[Ue("!")],64)):p.status==="fail"?(k(),I(Se,{key:3},[Ue("✕")],64)):(k(),I(Se,{key:4},[Ue("›")],64))])],10,Ix))),128))]),a.value?(k(),I("div",$x,[m[1]||(m[1]=_("div",{class:"diag-results__label"},"诊断结果",-1)),(k(!0),I(Se,null,nt(i.value.diagItems.filter(p=>p.status==="pass"||p.status==="warning"||p.status==="fail"),p=>(k(),I("div",{key:p.key,class:ve(["result-item",`result-item--${p.status}`])},[_("div",Bx,[_("span",Dx,j(p.label),1),_("span",{class:ve(["result-item__status",`result-item__status--${p.status}`])},j(h(p.status)),3)]),p.detail?(k(),I("div",Nx,j(p.detail),1)):re("",!0)],2))),128))])):re("",!0)],64)):re("",!0),i.value.riskItems.length>0?(k(),I("div",Lx,[(k(!0),I(Se,null,nt(i.value.riskItems,p=>(k(),I("div",{key:p.key,class:ve(["risk-item",[`risk-item--${p.level}`,{"risk-item--pending":p.level==="pending"}]])},[_("div",{class:"risk-item__header",onClick:v=>u(p.key)},[_("span",Mx,j(p.icon),1),_("span",Vx,j(p.label),1),_("span",{class:ve(["risk-item__status",`risk-item__status--${p.level}`])},j(p.statusText),3),_("span",jx,j(s.has(p.key)?"▴":"▾"),1)],8,Fx),s.has(p.key)?(k(),I("div",Ux,[(k(!0),I(Se,null,nt(p.detailLines,v=>(k(),I("div",{key:v,class:"detail-line"},j(v),1))),128)),p.actionText?(k(),I("button",{key:0,class:"risk-item__action",onClick:_n(v=>f(p),["stop"])},j(p.actionText),9,qx)):re("",!0)])):re("",!0)],2))),128))])):re("",!0)])]))}}),zx=at(Hx,[["__scopeId","data-v-9a55e083"]]),Wx={class:"recommend-card__header"},Kx={class:"recommend-card__icon"},Gx={class:"recommend-card__title-area"},Jx={class:"recommend-card__title"},Xx={key:0,class:"recommend-card__desc"},Yx={key:0,class:"recommend-card__items"},Qx=["onClick"],Zx={class:"item-label"},eA={class:"recommend-card__action"},tA={class:"recommend-card__source"},nA={class:"source-tag"},sA=be({__name:"RecommendCard",props:{card:{}},setup(e){const t={设备申请:"_SHOW_OPTIONS_",asset_receive:"https://itsm.servyou.com.cn/itsm-miniapp-mobile/",asset_borrow:"https://itsm.servyou.com.cn/itsm-miniapp-mobile/",asset_upgrade:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?name=IT%E8%AE%BE%E5%A4%87%E5%8D%87%E7%BA%A7%E4%B8%8E%E7%A1%AC%E4%BB%B6%E7%BB%B4%E4%BF%AE",it_device_repair:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?name=IT%E8%AE%BE%E5%A4%87%E5%8D%87%E7%BA%A7%E4%B8%8E%E7%A1%AC%E4%BB%B6%E7%BB%B4%E4%BF%AE",zero_trust_vpn:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?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",network_access:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?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",event_support:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?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_support_repair:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?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",public_email:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?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",IT资产领用:"https://itsm.servyou.com.cn/itsm-miniapp-mobile/",IT资产借用:"https://itsm.servyou.com.cn/itsm-miniapp-mobile/",IT资产升级:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?name=IT%E8%AE%BE%E5%A4%87%E5%8D%87%E7%BA%A7%E4%B8%8E%E7%A1%AC%E4%BB%B6%E7%BB%B4%E4%BF%AE",账号权限申请:"_SHOW_OPTIONS_",VPN账号申请:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?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",企微外联权限:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4WrCbZd214XrDMZJiHDho7ZQHWX7gsabb7x2fF72&sp_id=&from=template_list",公共邮箱账号:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?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",软件服务申请:"_SHOW_OPTIONS_",商业软件申请:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?name=%E5%95%86%E4%B8%9A%E8%BD%AF%E4%BB%B6%E6%9C%8D%E5%8A%A1%E7%94%B3%E8%AF%B7",资产处置申请:"_SHOW_OPTIONS_",IT资产外修:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=Bs7ucTLPo42dtj8Y1LzBoujijsa6geRWaRxZJjk4X&sp_id=&from=template_list",IT资产报废:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4WroCDfWuHKyujQjatjm3AjNv67imXk5C6WNooFkb&sp_id=&from=template_list",资产退还:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4c8qt33AZ52a7n9BBWDh6PmsDnpM5B6w8geqqqoHz&sp_id=&from=template_list",办公用品申请:"_SHOW_OPTIONS_",办公用品超额领用:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3WN6zRucbjycdnR94gBvkSVuXRamX7pKW4PrmNFh&sp_id=&from=template_list",会议室故障报修:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4ZXJMtjQJiPXo6N5vNMK26uPRT3KTi9VvkH2NScg&sp_id=&from=template_list",企业应用管理:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3WLJnRg2Se1fwizQtNvFtcYMgci1mhRJZhMw2FFKb&sp_id=&from=template_list",资产变更确认:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4cA2owjRcXRRPQ46otZvUHoWNEKL5t25tHHfeePip&sp_id=&from=template_list",终端设备网络准入:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?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",活动与会议技术支持:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?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支持与故障报修:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?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",公共邮箱账号申请:"https://itsupport.servyou.com.cn/h5/itsm-bridge.html?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"},n=e,s=M(()=>`card-layer-${(n.card.layer||"L1").toLowerCase()}`),o=M(()=>`card-source-${n.card.source||"unknown"}`),i=M(()=>n.card.icon?n.card.icon:{dify_action:"💬",dify_intent:"💬",keyword_assets:"📦",profile_trigger:"⚠️",role_assets:"👤",approval:"📋",action:"⚡",info:"ℹ️"}[n.card.source]||"💡"),r=M(()=>({dify_action:"AI 智能推荐",dify_intent:"AI 智能推荐",keyword_assets:"知识库匹配",profile_trigger:"系统检测",role_assets:"常用资源",approval:"审批入口",action:"操作建议"})[n.card.source]||n.card.source);function a(f){return!!(f.url||f.action||f.type==="info"||f.copyable)}function l(f){return{download:"down",approval:"description",info:"info-o",doc:"certificate",guide:"question-o",link:"link",contact:"phone-o"}[f]||"arrow"}function d(f){if(a(f))switch(f.type){case"download":f.url&&window.open(f.url,"_blank");break;case"approval":c(f.approval_type||"");break;case"info":f.copyable&&f.value&&navigator.clipboard.writeText(f.value).then(()=>{Ee("已复制到剪贴板")}).catch(()=>{Ee("复制失败")});break;case"doc":case"guide":case"link":f.url&&window.open(f.url,"_blank");break;case"contact":f.value&&navigator.clipboard.writeText(f.value).then(()=>{Ee("已复制联系方式")}).catch(()=>{Ee("复制失败")});break}}async function c(f){if(!f){Ee("审批类型未知");return}const h=t[f];if(h&&h!=="_SHOW_OPTIONS_"){const{openUrl:g}=Jf();await g(h);return}console.warn("[RecommendCard] 审批类型需要选择:",f),Ee('可在右侧"智能推荐"查看更多审批选项')}function u(){if(n.card.action_url){window.location.href=n.card.action_url;return}if(n.card.approval_type){const f=t[n.card.approval_type];if(f&&f!=="_SHOW_OPTIONS_"){window.location.href=f;return}}Ee('请点击右侧"智能推荐"选择审批类型')}return(f,h)=>{const g=Z_,m=pt;return k(),I("div",{class:ve(["recommend-card",[s.value,o.value]])},[_("div",Wx,[_("span",Kx,j(i.value),1),_("div",Gx,[_("div",Jx,j(e.card.title),1),e.card.description?(k(),I("div",Xx,j(e.card.description),1)):re("",!0)]),e.card.confidence?(k(),At(g,{key:0,size:"small",type:"primary"},{default:ot(()=>[Ue(j(Math.round(e.card.confidence*100))+"% ",1)]),_:1})):re("",!0)]),e.card.items&&e.card.items.length>0?(k(),I("div",Yx,[(k(!0),I(Se,null,nt(e.card.items,(p,v)=>(k(),I("div",{key:v,class:ve(["recommend-card__item",{"item-clickable":a(p)}]),onClick:S=>d(p)},[C(m,{name:l(p.type),class:"item-icon"},null,8,["name"]),_("span",Zx,j(p.label),1),a(p)?(k(),At(m,{key:0,name:"arrow",class:"item-arrow"})):re("",!0)],10,Qx))),128))])):re("",!0),_("div",eA,[_("button",{type:"button",style:{width:"100%",padding:"8px 16px",background:"#07C160",color:"#fff",border:"none","border-radius":"4px","font-size":"14px",cursor:"pointer"},onClick:u},j(e.card.action_label||"打开审批表单"),1)]),_("div",tA,[_("span",nA,j(r.value),1)])],2)}}}),oA=at(sA,[["__scopeId","data-v-f7902bb7"]]),iA={class:"dynamic-recommend"},rA={key:0,class:"dynamic-recommend__empty"},aA={key:1,class:"dynamic-recommend__cards"},lA=be({__name:"DynamicRecommend",setup(e){const t=Ot(),n=M(()=>{const i=t.dynamicRecommendations||[],r=t.assetRecommendations||[];return[...i,...r]});function s(i){const r=i.layer||"L1";return r==="L1"?"card-l1":r==="L2"?"card-l2":"card-l3"}function o(i){return{id:i.id||i.recommend_id||`rec_${Date.now()}`,layer:i.layer||"L1",layer_label:i.layer_label||"",source:i.source||i.card_type||"unknown",title:i.title||"",description:i.description||"",icon:i.icon,items:i.items,action_url:i.action_url,action_label:i.action_label,confidence:i.confidence,relevance:i.relevance||"high",card_type:i.card_type,approval_type:i.approval_type}}return st(()=>{t.clearUnreadRecommend()}),(i,r)=>(k(),I("div",iA,[n.value.length===0?(k(),I("div",rA,[...r[0]||(r[0]=[_("div",{class:"dynamic-recommend__empty-icon"},"💡",-1),_("p",{class:"dynamic-recommend__empty-text"},"暂无智能推荐",-1),_("p",{class:"dynamic-recommend__empty-hint"},"向 Duckula 提问后将显示相关推荐",-1)])])):(k(),I("div",aA,[(k(!0),I(Se,null,nt(n.value,a=>(k(),At(oA,{key:a.id||a.recommend_id,card:o(a),class:ve(s(a))},null,8,["card","class"]))),128))]))]))}}),cA=at(lA,[["__scopeId","data-v-7a62a529"]]);function uA(e){return Me.get("/h5/queue/status",{params:{employee_id:e}})}function dA(e,t){return Me.get("/h5/quiz/question",{params:{employee_id:e,conversation_id:t||void 0}})}function fA(e){return Me.post("/h5/quiz/answer",e)}const hA={class:"queue-waiting"},pA={class:"position-info"},mA={class:"position-value"},gA={key:0,class:"position-ahead"},_A={key:0,class:"position-points"},vA={class:"points-badge"},yA={class:"points-value"},bA={class:"queue-waiting__quiz-section"},wA={key:0,class:"quiz__loading"},EA={key:1,class:"quiz__empty"},SA={class:"quiz__question"},CA={class:"quiz__options"},xA=["disabled","onClick"],AA={class:"quiz__option-label"},kA={class:"quiz__option-text"},TA={key:0,class:"quiz__result-icon"},RA={key:1,class:"quiz__result-icon"},IA={class:"quiz__result-content"},OA={class:"quiz__result-text"},PA={key:0,class:"quiz__result-explanation"},$A={key:1,class:"quiz__result-jump"},BA={key:3,class:"quiz__no-more"},DA=be({__name:"QueueWaiting",props:{showQuiz:{type:Boolean}},setup(e,{expose:t}){const n=e,s=Ot(),o=xt(),i=F(null),r=F(null),a=F(!1),l=F(!1),d=F(-1),c=F(null);let u=null;const f=["A","B","C","D","E","F"],h=M(()=>{var L,R;return((R=(L=i.value)==null?void 0:L.queue)==null?void 0:R.position)||0}),g=M(()=>{var L,R;return((R=(L=i.value)==null?void 0:L.queue)==null?void 0:R.estimated_wait_text)||""}),m=M(()=>{var L;return((L=i.value)==null?void 0:L.points)||null}),p=M(()=>{var R,K;const L=(K=(R=i.value)==null?void 0:R.queue)==null?void 0:K.segment;return{"position-card--vip":L==="vip","position-card--completed":L==="completed","position-card--incomplete":L==="incomplete"}});function v(){return o.employeeId||localStorage.getItem("employee_id")||""}function S(){var L;return((L=s.currentConversation)==null?void 0:L.conversation_id)||null}async function T(){const L=v();if(L)try{const R=await uA(L);i.value=R}catch(R){console.error("[QueueWaiting] 加载排队状态失败:",R)}}async function x(){const L=v();if(L){a.value=!0;try{const R=await dA(L,S());r.value=R,l.value=!1,d.value=-1,c.value=null}catch(R){console.error("[QueueWaiting] 加载题目失败:",R),r.value=null}finally{a.value=!1}}}function b(L){r.value=L,l.value=!1,d.value=-1,c.value=null}async function P(L){var K;if(l.value||!r.value)return;const R=v();if(R){l.value=!0,d.value=L;try{const X=await fA({employee_id:R,question_id:r.value.question_id,selected_index:L,conversation_id:S()});c.value=X,X.queue_priority_changed&&await T(),i.value&&X.points!==void 0&&(i.value.points={points:X.points,level_name:X.level_name,level_index:X.level_index,to_next_level:0,next_level_name:null}),(K=i.value)!=null&&K.quiz&&(i.value.quiz.answered_in_session=X.answered_in_session,i.value.quiz.queue_priority=X.queue_priority,i.value.quiz.remaining_for_next_jump=X.remaining_for_next_jump,i.value.quiz.can_jump_more=X.can_jump_more)}catch(X){console.error("[QueueWaiting] 提交答案失败:",X),l.value=!1}}}function B(L){var R;(R=i.value)!=null&&R.queue&&(i.value.queue.position=L.position,i.value.queue.segment=L.segment,i.value.queue.ahead_count=L.ahead_count,i.value.queue.queue_priority=L.queue_priority)}return st(async()=>{var R;await T();const L=(R=i.value)==null?void 0:R.conversation_status;(L==="queued"||L==="ai_handling")&&await x(),u=setInterval(async()=>{await T()},15e3)}),Ln(()=>{u&&(clearInterval(u),u=null)}),t({handleQueuePositionUpdate:B,loadQueueStatus:T,loadQuestion:x,currentPosition:h}),(L,R)=>{var K,X;return k(),I("div",hA,[_("div",{class:ve(["queue-waiting__position-card",p.value])},[_("div",pA,[R[1]||(R[1]=_("span",{class:"position-icon"},"⏳",-1)),R[2]||(R[2]=_("span",{class:"position-label"},"排队位置",-1)),_("span",mA,j(h.value>0?h.value:"—"),1),h.value>0?(k(),I("span",gA," 前面"+j(((X=(K=i.value)==null?void 0:K.queue)==null?void 0:X.ahead_count)||0)+"人 · 等待"+j(g.value),1)):re("",!0)]),m.value?(k(),I("div",_A,[_("span",vA,"LV."+j(m.value.level_index),1),_("span",yA,j(m.value.points)+"分",1)])):re("",!0)],2),$n(_("div",bA,[a.value?(k(),I("div",wA,[...R[3]||(R[3]=[_("span",{class:"quiz__loading-spinner"},null,-1),_("span",null,"加载题目中…",-1)])])):r.value?(k(),I(Se,{key:2},[_("div",SA,j(r.value.question),1),_("div",CA,[(k(!0),I(Se,null,nt(r.value.options,(z,ee)=>(k(),I("button",{key:ee,class:ve(["quiz__option",{"quiz__option--correct":l.value&&ee===r.value.correct_index,"quiz__option--wrong":l.value&&d.value===ee&&ee!==r.value.correct_index,"quiz__option--disabled":l.value}]),disabled:l.value,onClick:G=>P(ee)},[_("span",AA,j(f[ee]),1),_("span",kA,j(z),1)],10,xA))),128))]),C(Ti,{name:"fade"},{default:ot(()=>[l.value&&c.value?(k(),I("div",{key:0,class:ve(["quiz__result",c.value.is_correct?"quiz__result--correct":"quiz__result--wrong"])},[c.value.is_correct?(k(),I("span",TA,"✅")):(k(),I("span",RA,"❌")),_("div",IA,[_("div",OA,j(c.value.is_correct?`答对啦!+${c.value.points_delta} 积分`:"答错了"),1),c.value.explanation?(k(),I("div",PA,j(c.value.explanation),1)):re("",!0),c.value.queue_priority_changed?(k(),I("div",$A," 🎉 恭喜!排队位置前移 1 位! ")):re("",!0)]),c.value.next_question?(k(),I("button",{key:2,class:"quiz__next-btn",onClick:R[0]||(R[0]=z=>b(c.value.next_question))}," 下一题 → ")):(k(),I("div",BA,"暂无更多题目"))],2)):re("",!0)]),_:1})],64)):(k(),I("div",EA,[...R[4]||(R[4]=[_("span",null,"📋 暂无更多题目",-1)])]))],512),[[Bn,n.showQuiz]])])}}}),NA=at(DA,[["__scopeId","data-v-ae7172d4"]]),LA={class:"right-panel"},FA={class:"right-panel__accordion"},MA={class:"accordion-item__toggle"},VA={class:"accordion-item__content"},jA={class:"accordion-item__toggle"},UA={class:"accordion-item__content"},qA={class:"accordion-item__toggle"},HA={class:"recommend-content"},zA={class:"right-panel__queue-section"},WA={class:"queue-header-v3"},KA={key:0,class:"queue-header-v3__position"},GA={class:"queue-header-v3__actions"},JA={class:"right-panel__queue-content"},XA=be({__name:"RightPanel",setup(e,{expose:t}){const n=Ot(),s=F(null);function o(g){s.value===g?s.value=null:s.value=g}const i=F(!0);function r(){i.value=!i.value}xe(()=>n.unreadRecommendCount,g=>{g>0&&n.clearUnreadRecommend()});const a=F(null),l=M(()=>{var m,p;return((m=n.currentConversation)==null?void 0:m.status)==="waiting"&&((p=n.currentConversation)==null?void 0:p.agent_id)===""}),d=M(()=>{var g;return((g=a.value)==null?void 0:g.currentPosition)||0}),c=F(!0),u=F(!1);xe(l,g=>{g&&(c.value=!0)},{immediate:!0});function f(){c.value=!c.value}function h(){u.value=!u.value}return t({queueWaitingRef:a}),(g,m)=>(k(),I("div",LA,[_("div",FA,[_("div",{class:ve(["accordion-item",{"accordion-item--active":s.value==="device"}])},[_("div",{class:"accordion-item__header",onClick:m[0]||(m[0]=p=>o("device"))},[m[2]||(m[2]=_("span",{class:"accordion-item__icon"},"💻",-1)),m[3]||(m[3]=_("span",{class:"accordion-item__title"},"设备信息",-1)),_("span",MA,j(s.value==="device"?"▾":"▸"),1)]),$n(_("div",VA,[C(wx)],512),[[Bn,s.value==="device"]])],2),_("div",{class:ve(["accordion-item",{"accordion-item--active":s.value==="diagnosis"}])},[_("div",{class:"accordion-item__header",onClick:m[1]||(m[1]=p=>o("diagnosis"))},[m[4]||(m[4]=_("span",{class:"accordion-item__icon"},"🩺",-1)),m[5]||(m[5]=_("span",{class:"accordion-item__title"},"自助诊断",-1)),_("span",jA,j(s.value==="diagnosis"?"▾":"▸"),1)]),$n(_("div",UA,[C(zx)],512),[[Bn,s.value==="diagnosis"]])],2)]),m[10]||(m[10]=_("div",{class:"right-panel__divider"},null,-1)),_("div",{class:ve(["right-panel__recommend-section",{"accordion-item--active":i.value}])},[_("div",{class:"accordion-item__header",onClick:r},[m[6]||(m[6]=_("span",{class:"accordion-item__icon"},"⚡",-1)),m[7]||(m[7]=_("span",{class:"accordion-item__title"},"智能推荐",-1)),_("span",qA,j(i.value?"▾":"▸"),1)]),$n(_("div",HA,[C(cA)],512),[[Bn,i.value]])],2),m[11]||(m[11]=_("div",{class:"right-panel__divider"},null,-1)),_("div",zA,[_("div",WA,[_("div",{class:"queue-header-v3__left",onClick:f},[m[8]||(m[8]=_("span",{class:"queue-header-v3__icon"},"⏳",-1)),m[9]||(m[9]=_("span",{class:"queue-header-v3__title"},"排队等待",-1)),l.value&&d.value>0?(k(),I("span",KA,"#"+j(d.value),1)):re("",!0)]),_("div",GA,[_("button",{class:"quiz-toggle-btn",onClick:h},j(u.value?"收起答题":"答题挑战"),1)])]),$n(_("div",JA,[C(NA,{ref_key:"queueWaitingRef",ref:a,"show-quiz":u.value},null,8,["show-quiz"])],512),[[Bn,c.value]])])]))}}),Xr=at(XA,[["__scopeId","data-v-a6fc8743"]]),YA={class:"chat-view"},QA={key:1,class:"chat-view__right"},ZA=be({__name:"ChatView",setup(e){const t=bf(),n=wf(),s=xt(),o=Ot(),i=r0(),r=F(window.innerWidth),a=F(60),l=F(!1),d=M(()=>r.value<500),c=M(()=>!d.value);function u(m){l.value=!0;const p=m.clientX,v=a.value,S=r.value;function T(b){if(!l.value)return;const B=(b.clientX-p)/S*100;let L=v+B;L=Math.max(40,Math.min(80,L)),a.value=L}function x(){l.value=!1,document.removeEventListener("mousemove",T),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",T),document.addEventListener("mouseup",x)}function f(){r.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,g=n.query.eid;if(h&&g){console.log(`[ChatView] 检测到邀请链接: conv=${h}, eid=${g}`);const m=xe(()=>o.initialized,async p=>{var v,S;if(p){m();try{await Kw(h),console.log("[ChatView] 已成功加入邀请的会话"),await o.switchToConversation(h)}catch(T){console.error("[ChatView] 加入会话失败:",T);const x=(S=(v=T==null?void 0:T.response)==null?void 0:v.data)==null?void 0:S.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 Ln(()=>{window.removeEventListener("resize",f),i.disconnect(),o.cleanup()}),(m,p)=>(k(),I("div",YA,[_("div",{class:ve(["chat-view__left",{"chat-view__left--full":!c.value}]),style:Ut(!d.value&&c.value?{flex:`0 0 ${a.value}%`,maxWidth:`${a.value}%`}:{})},[C(kC)],6),c.value&&!d.value?(k(),I("div",{key:0,class:"chat-view__resize-handle",onMousedown:u},[...p[0]||(p[0]=[_("div",{class:"chat-view__resize-grip"},null,-1)])],32)):re("",!0),c.value?(k(),I("div",QA,[C(Xr)])):re("",!0)]))}}),ek=at(ZA,[["__scopeId","data-v-8734f543"]]),tk={class:"emergency-dispatcher"},nk={class:"emergency-dispatcher__panel"},sk={class:"subtitle"},ok={key:1,class:"error-msg"},ik=be({__name:"EmergencyDispatcher",setup(e){const t=bf(),n=F(!0),s=F(""),o=F("正在检测身份...");function i(){return new Promise((c,u)=>{if(typeof window.wx<"u"&&window.wx.agentConfig){c();return}const f=document.createElement("script");f.src="https://res.wx.qq.com/wwopen/js/wwLogin-1.2.7.js",f.onload=()=>{const h=document.createElement("script");h.src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",h.onload=()=>c(),h.onerror=()=>u(new Error("加载企微 agent SDK 失败")),document.head.appendChild(h)},f.onerror=()=>u(new Error("加载企微 JS-SDK 失败")),document.head.appendChild(f)})}async function r(c){const u=await Xe.get("/api/wecom/jsapi-config",{params:{url:c}});if(u.data.code!==0)throw new Error(`拿签名失败: ${u.data.message}`);return u.data.data}function a(c){return new Promise((u,f)=>{const h=window.wx;h.config({beta:!0,debug:!1,appId:c.corp_id,timestamp:c.timestamp,nonceStr:c.nonce_str,signature:c.signature,jsApiList:["agentConfig"]}),h.ready(()=>u()),h.error(g=>f(new Error(`wx.config 失败: ${JSON.stringify(g)}`)))})}function l(c){return new Promise((u,f)=>{window.wx.agentConfig({corpid:c.corp_id,agentid:c.agent_id,timestamp:c.timestamp,nonceStr:c.nonce_str,signature:c.signature,jsApiList:["selectExternalContact"],success:g=>{const m=window.wecom_userid||"";u({userId:m})},fail:g=>f(new Error(`wx.agentConfig 失败: ${JSON.stringify(g)}`))})})}async function d(c){const u=await Xe.get("/api/wecom/check-role",{params:{userid:c}});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 c=window.location.href.split("#")[0],u=await r(c);o.value="正在初始化企微...",await a(u),o.value="正在获取身份...";const{userId:f}=await l(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(c){console.error("[EmergencyDispatcher] 错误:",c),s.value=c.message||"未知错误",n.value=!1,K_({message:s.value,duration:5e3}),setTimeout(()=>{t.push({path:"/h5-preview"})},3e3)}}),(c,u)=>{const f=Co;return k(),I("div",tk,[_("div",nk,[u[0]||(u[0]=_("div",{class:"logo"},null,-1)),u[1]||(u[1]=_("h2",{class:"title"},"智能IT服务",-1)),_("p",sk,j(o.value),1),n.value?(k(),At(f,{key:0,type:"spinner",color:"#1989fa",size:"32"})):re("",!0),s.value?(k(),I("div",ok,j(s.value),1)):re("",!0)])])}}}),rk=at(ik,[["__scopeId","data-v-12d9965e"]]),ak={class:"h5-preview"},lk={class:"h5-preview__topbar"},ck={key:1,class:"userid-tag"},uk={key:0,class:"h5-preview__content"},dk={class:"h5-preview__drawer-header"},fk={class:"h5-preview__drawer-body"},hk={key:2,class:"h5-preview__mobile-hint"},pk=be({__name:"H5PreviewView",setup(e){const t=wf(),n=F(!1),s=M(()=>t.query.userid||""),o=M(()=>window.innerWidth<500);return s.value&&Ee({message:"员工模式",duration:1500}),(i,r)=>{const a=pt,l=Ts;return k(),I("div",ak,[_("div",lk,[r[4]||(r[4]=qp('<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(),I("button",{key:0,class:"topbar-menu-btn",onClick:r[0]||(r[0]=d=>n.value=!0)},[C(a,{name:"apps-o",size:"22"}),r[3]||(r[3]=_("span",null,"右栏",-1))])):(k(),I("div",ck," userid: "+j(s.value||"anonymous"),1))]),o.value?re("",!0):(k(),I("div",uk,[C(Xr)])),o.value?(k(),At(l,{key:1,show:n.value,"onUpdate:show":r[2]||(r[2]=d=>n.value=d),position:"top",style:{height:"85%"},"close-on-click-overlay":!0,closeable:"","safe-area-inset-top":""},{default:ot(()=>[_("div",dk,[r[5]||(r[5]=_("span",{class:"drawer-title"},"📋 右栏内容",-1)),C(a,{name:"cross",size:"20",class:"drawer-close",onClick:r[1]||(r[1]=d=>n.value=!1)})]),_("div",fk,[C(Xr)])]),_:1},8,["show"])):re("",!0),o.value?(k(),I("div",hk,[...r[6]||(r[6]=[_("p",null,"💡 电脑端访问可获得完整体验(右栏常驻显示)",-1),_("p",null,'移动端请点上方"右栏"按钮打开内容',-1)])])):re("",!0)])}}}),mk=at(pk,[["__scopeId","data-v-3aa64e02"]]);function Uc(){return typeof navigator>"u"?!1:/wxwork/i.test(navigator.userAgent)}const gk=[{path:"/",name:"ChatView",component:ek,meta:{title:"智能IT服务",requiresAuth:!0}},{path:"/login",name:"Login",component:()=>ds(()=>import("./Login-CLbuVS0A.js"),__vite__mapDeps([4,5,6])),meta:{title:"登录",requiresAuth:!1}},{path:"/bind",name:"Bind",component:()=>ds(()=>import("./Bind-CdE3Dwte.js"),__vite__mapDeps([7,5,2,3,8,9])),meta:{title:"账号绑定",requiresAuth:!1}},{path:"/wework-only",name:"WeworkOnly",component:()=>ds(()=>import("./WeworkOnly-CIz6Hbtk.js"),__vite__mapDeps([10,11])),meta:{title:"请在企业微信中打开",requiresAuth:!1}},{path:"/emergency",name:"EmergencyDispatcher",component:rk,meta:{title:"应急身份检测",requiresAuth:!1}},{path:"/h5-preview",name:"H5Preview",component:mk,meta:{title:"员工自助",requiresAuth:!1}},{path:"/automation/:id",name:"AutomationProgress",component:()=>ds(()=>import("./AutomationProgress-DodsLDRS.js"),__vite__mapDeps([12,1,2,13,9])),meta:{title:"自动化处置",requiresAuth:!0}},{path:"/:pathMatch(.*)*",redirect:"/"}],Qf=zy({history:Sy("/h5/"),routes:gk});Qf.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"){n();return}if(e.name==="Login"){if(!s&&!Uc()){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(),c=d?`${window.location.pathname}?${d}`:window.location.pathname;window.history.replaceState({},"",c)}const{useEmployeeStore:r}=await ds(async()=>{const{useEmployeeStore:d}=await Promise.resolve().then(()=>t0);return{useEmployeeStore:d}},void 0),a=r();if(i){a.$patch({token:i});try{await a.fetchEmployeeInfo()}catch(d){console.warn("[Router] Portal token 验证失败:",d)}}if(!s&&!Uc()){if(a.isAuthenticated){n();return}n({name:"WeworkOnly"});return}const l=e.query.code||new URLSearchParams(window.location.search).get("code");if(l){try{await a.handleOAuthCallback(l);const d=new URLSearchParams(window.location.search);d.delete("code"),d.delete("state");const c=d.toString(),u=c?`${window.location.pathname}?${c}`:window.location.pathname;window.history.replaceState({},"",u);const f=sessionStorage.getItem("h5_invite_conv_id");if(f){const h=sessionStorage.getItem("h5_invite_eid")||"";sessionStorage.removeItem("h5_invite_conv_id"),sessionStorage.removeItem("h5_invite_eid");const g={invite:f};h&&(g.eid=h),n({path:e.path,query:g});return}n()}catch(d){console.error("[Router] OAuth2 授权失败:",d),a.redirectToOAuth()}return}if(a.isAuthenticated){n();return}a.redirectToOAuth()});const Ma=pd(Lv);Ma.use(Tv());Ma.use(Qf);const _k=Date.now(),qc=500;Ma.mount("#app");const Hc=Date.now()-_k;Hc>=qc?document.body.classList.add("app-loaded"):setTimeout(()=>{document.body.classList.add("app-loaded")},qc-Hc);export{f_ as $,fg as A,Bd as B,T_ as C,wk as D,Zd as E,Aa as F,bv as G,xv as H,pt as I,_g as J,_v as K,Co as L,gv as M,K_ as N,Wg as O,Ts as P,W_ as Q,Ev as R,kv as S,S_ as T,bk as U,t_ as V,o_ as W,w_ as X,c_ as Y,Y_ as Z,V_ as _,Ll as a,es as a$,gg as a0,Me as a1,at as a2,k as a3,I as a4,qp as a5,be as a6,ze as a7,C as a8,Se as a9,wo as aA,Yn as aB,ev as aC,Ge as aD,Qd as aE,Sa as aF,De as aG,Wt as aH,As as aI,xs as aJ,Ze as aK,M as aL,$n as aM,vk as aN,rt as aO,it as aP,Fd as aQ,Ws as aR,ho as aS,Bn as aT,Wd as aU,cg as aV,Rd as aW,yk as aX,xd as aY,wa as aZ,Ri as a_,Pt as aa,Ml as ab,rg as ac,We as ad,Ye as ae,bf as af,xt as ag,st as ah,Ln as ai,_ as aj,ot as ak,Ue as al,re as am,j as an,F as ao,wf as ap,At as aq,mt as ar,$e as as,Zt as at,ga as au,ag as av,yn as aw,qt as ax,xe as ay,Sd as az,bs as b,an as b0,Jt as b1,So as b2,Ta as b3,Re as b4,nt as b5,iv as c,rv as d,Zm as e,s_ as f,r_ as g,y_ as h,C_ as i,Z_ as j,Lg as k,ug as l,pg as m,$g as n,A_ as o,sv as p,Wl as q,yg as r,Ee as s,dv as t,lv as u,D_ as v,xg as w,Ig as x,Hg as y,Kg as z};
|