Files
wecom_it_smart_desk/frontend-h5/dist.old/assets/index-DtOTKM3Z.js
T

44 lines
331 KiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BfRCPsu1.js","assets/index-Bt5n-keb.js","assets/index-Bq_Sa0hn.js","assets/index-BDaAU9Ak.js","assets/Login-DQImuBvP.js","assets/auth-VYNCQSes.js","assets/Login-CNJm1IaW.css","assets/Bind-D8O2neGo.js","assets/Bind-Dnw4b3CT.css","assets/index-p_Y1ee2a.css","assets/WeworkOnly-DY7IKcfi.js","assets/WeworkOnly-CSncHA2v.css","assets/AutomationProgress-Bg2dDc8V.js","assets/AutomationProgress-LpCNvoFl.css"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/**
* @vue/shared v3.5.35
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function jr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Le={},ns=[],Qt=()=>{},Ic=()=>!1,ti=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ni=e=>e.startsWith("onUpdate:"),tt=Object.assign,Ur=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Mf=Object.prototype.hasOwnProperty,Fe=(e,t)=>Mf.call(e,t),ve=Array.isArray,ss=e=>io(e)==="[object Map]",Pc=e=>io(e)==="[object Set]",Pa=e=>io(e)==="[object Date]",_e=e=>typeof e=="function",Me=e=>typeof e=="string",Ft=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",Oc=e=>(Be(e)||_e(e))&&_e(e.then)&&_e(e.catch),$c=Object.prototype.toString,io=e=>$c.call(e),Vf=e=>io(e).slice(8,-1),Fc=e=>io(e)==="[object Object]",si=e=>Me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ms=jr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),oi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},jf=/-\w/g,gt=oi(e=>e.replace(jf,t=>t.slice(1).toUpperCase())),Uf=/\B([A-Z])/g,pn=oi(e=>e.replace(Uf,"-$1").toLowerCase()),ii=oi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Oi=oi(e=>e?`on${ii(e)}`:""),Jt=(e,t)=>!Object.is(e,t),Bo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Bc=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Hr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Dc=e=>{const t=Me(e)?Number(e):NaN;return isNaN(t)?e:t};let Oa;const ri=()=>Oa||(Oa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vn(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=Me(s)?Wf(s):Vn(s);if(o)for(const i in o)t[i]=o[i]}return t}else if(Me(e)||Be(e))return e}const Hf=/;(?![^(]*\))/g,zf=/:([^]+)/,qf=/\/\*[^]*?\*\//g;function Wf(e){const t={};return e.replace(qf,"").split(Hf).forEach(n=>{if(n){const s=n.split(zf);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Kf(e){if(!e)return"";if(Me(e))return e;let t="";for(const n in e){const s=e[n];if(Me(s)||typeof s=="number"){const o=n.startsWith("--")?n:pn(n);t+=`${o}:${s};`}}return t}function Ue(e){let t="";if(Me(e))t=e;else if(ve(e))for(let n=0;n<e.length;n++){const s=Ue(e[n]);s&&(t+=s+" ")}else if(Be(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Gf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Jf=jr(Gf);function Nc(e){return!!e||e===""}function Xf(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=Pa(e),s=Pa(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ft(e),s=Ft(t),n||s)return e===t;if(n=ve(e),s=ve(t),n||s)return n&&s?Xf(e,t):!1;if(n=Be(e),s=Be(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 Lc=e=>!!(e&&e.__v_isRef===!0),re=e=>Me(e)?e:e==null?"":ve(e)||Be(e)&&(e.toString===$c||!_e(e.toString))?Lc(e)?re(e.value):JSON.stringify(e,Mc,2):String(e),Mc=(e,t)=>Lc(t)?Mc(e,t.value):ss(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],i)=>(n[$i(s,i)+" =>"]=o,n),{})}:Pc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$i(n))}:Ft(t)?$i(t):Be(t)&&!ve(t)&&!Fc(t)?String(t):t,$i=(e,t="")=>{var n;return Ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.35
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let et;class Vc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&et&&(et.active?(this.parent=et,this.index=(et.scopes||(et.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;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=et;try{return et=this,t()}finally{et=n}}}on(){++this._on===1&&(this.prevScope=et,et=this)}off(){if(this._on>0&&--this._on===0){if(et===this)et=this.prevScope;else{let t=et;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;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 jc(e){return new Vc(e)}function qr(){return et}function Uc(e,t=!1){et&&et.cleanups.push(e)}let je;const Fi=new WeakSet;class Hc{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,et&&(et.active?et.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Fi.has(this)&&(Fi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qc(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,$a(this),Wc(this);const t=je,n=Vt;je=this,Vt=!0;try{return this.fn()}finally{Kc(this),je=t,Vt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Gr(t);this.deps=this.depsTail=void 0,$a(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Fi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){rr(this)&&this.run()}get dirty(){return rr(this)}}let zc=0,Vs,js;function qc(e,t=!1){if(e.flags|=8,t){e.next=js,js=e;return}e.next=Vs,Vs=e}function Wr(){zc++}function Kr(){if(--zc>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(;Vs;){let t=Vs;for(Vs=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Wc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Kc(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),Gr(s),Yf(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function rr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Gc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Gc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Js)||(e.globalVersion=Js,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!rr(e))))return;e.flags|=2;const t=e.dep,n=je,s=Vt;je=e,Vt=!0;try{Wc(e);const o=e.fn(e._value);(t.version===0||Jt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{je=n,Vt=s,Kc(e),e.flags&=-3}}function Gr(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Gr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Yf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Vt=!0;const Jc=[];func
* @vue/runtime-core v3.5.35
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function ro(e,t,n,s){try{return s?e(...s):e()}catch(o){ao(o,t,n)}}function Bt(e,t,n,s){if(_e(e)){const o=ro(e,t,n,s);return o&&Oc(o)&&o.catch(i=>{ao(i,t,n)}),o}if(ve(e)){const o=[];for(let i=0;i<e.length;i++)o.push(Bt(e[i],t,n,s));return o}}function ao(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||Le;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}a=a.parent}if(i){un(),ro(i,null,10,[e,l,u]),dn();return}}xh(e,n,o,s,r)}function xh(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const mt=[];let Kt=-1;const is=[];let wn=null,Yn=0;const lu=Promise.resolve();let Wo=null;function We(e){const t=Wo||lu;return e?t.then(this?e.bind(this):e):t}function Ch(e){let t=Kt+1,n=mt.length;for(;t<n;){const s=t+n>>>1,o=mt[s],i=Ys(o);i<e||i===e&&o.flags&2?t=s+1:n=s}return t}function Yr(e){if(!(e.flags&1)){const t=Ys(e),n=mt[mt.length-1];!n||!(e.flags&2)&&t>=Ys(n)?mt.push(e):mt.splice(Ch(t),0,e),e.flags|=1,cu()}}function cu(){Wo||(Wo=lu.then(du))}function ur(e){ve(e)?is.push(...e):wn&&e.id===-1?wn.splice(Yn+1,0,e):e.flags&1||(is.push(e),e.flags|=1),cu()}function Ba(e,t,n=Kt+1){for(;n<mt.length;n++){const s=mt[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;mt.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function uu(e){if(is.length){const t=[...new Set(is)].sort((n,s)=>Ys(n)-Ys(s));if(is.length=0,wn){wn.push(...t);return}for(wn=t,Yn=0;Yn<wn.length;Yn++){const n=wn[Yn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}wn=null,Yn=0}}const Ys=e=>e.id==null?e.flags&2?-1:1/0:e.id;function du(e){try{for(Kt=0;Kt<mt.length;Kt++){const t=mt[Kt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ro(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Kt<mt.length;Kt++){const t=mt[Kt];t&&(t.flags&=-2)}Kt=-1,mt.length=0,uu(),Wo=null,(mt.length||is.length)&&du()}}let xt=null,fu=null;function Ko(e){const t=xt;return xt=e,fu=e&&e.type.__scopeId||null,t}function He(e,t=xt,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Xo(-1);const i=Ko(t);let r;try{r=e(...o)}finally{Ko(i),s._d&&Xo(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function lo(e,t){if(xt===null)return e;const n=mi(xt),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,r,a,l=Le]=t[o];i&&(_e(i)&&(i={mounted:i,updated:i}),i.deep&&an(r),s.push({dir:i,instance:n,value:r,oldValue:void 0,arg:a,modifiers:l}))}return e}function An(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&&(un(),Bt(l,n,8,[e.el,a,e,t]),dn())}}function Zt(e,t){if(lt){let n=lt.provides;const s=lt.parent&&lt.parent.provides;s===n&&(n=lt.provides=Object.create(s)),n[e]=t}}function ot(e,t,n=!1){const s=Dt();if(s||Dn){let o=Dn?Dn._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&&_e(t)?t.call(s&&s.proxy):t}}function Ah(){return!!(Dt()||Dn)}const kh=Symbol.for("v-scx"),Th=()=>ot(kh);function hu(e,t){return Qr(e,null,t)}function be(e,t,n){return Qr(e,t,n)}function Qr(e,t,n=Le){const{immediate:s,deep:o,flush:i,once:r}=n,a=tt({},n),l=t&&s||!t&&i!=="post";let u;if(eo){if(i==="sync"){const h=Th();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Qt,h.resume=Qt,h.pause=Qt,h}}const c=lt;a.call=(h,y,g)=>Bt(h,c,y,g);let d=!1;i==="post"?a.scheduler=h=>{rt(h,c&&c.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(h,y)=>{y?h():Yr(h)}),a.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=Eh(e,t,a);return eo&&(u?u.push(f):l&&f()),f}function Rh(e,t,n){const s=this.proxy,o=Me(e)?e.includes(".")?pu(s,e):()=>s[e]:e.bind(s,s);let i;_e(t)?i=t:(i=t.handler,n=t);const r=co(this),a=Qr(o,i.bind(s),n);return r(),a}function pu(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const yn=new WeakMap,mu=Symbol("_vte"),gu=e=>e.__isTeleport,On=e=>e&&(e.disabled||e.disabled
* @vue/runtime-dom v3.5.35
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Sr;const Ya=typeof window<"u"&&window.trustedTypes;if(Ya)try{Sr=Ya.createPolicy("vue",{createHTML:e=>e})}catch{}const Xu=Sr?e=>Sr.createHTML(e):e=>e,Np="http://www.w3.org/2000/svg",Lp="http://www.w3.org/1998/Math/MathML",sn=typeof document<"u"?document:null,Qa=sn&&sn.createElement("template"),Mp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?sn.createElementNS(Np,e):t==="mathml"?sn.createElementNS(Lp,e):n?sn.createElement(e,{is:n}):sn.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>sn.createTextNode(e),createComment:e=>sn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Qa.innerHTML=Xu(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=Qa.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},gn="transition",Cs="animation",to=Symbol("_vtc"),Yu={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Vp=tt({},vu,Yu),jp=e=>(e.displayName="Transition",e.props=Vp,e),Qo=jp((e,{slots:t})=>ia(Bh,Up(e),t)),Tn=(e,t=[])=>{ve(e)?e.forEach(n=>n(...t)):e&&e(...t)},Za=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Up(e){const t={};for(const U in e)U in Yu||(t[U]=e[U]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=r,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,y=Hp(o),g=y&&y[0],v=y&&y[1],{onBeforeEnter:_,onEnter:w,onEnterCancelled:T,onLeave:A,onLeaveCancelled:m,onBeforeAppear:k=_,onAppear:I=w,onAppearCancelled:z=T}=t,F=(U,ae,fe,ue)=>{U._enterCancelled=ue,Rn(U,ae?c:a),Rn(U,ae?u:r),fe&&fe()},B=(U,ae)=>{U._isLeaving=!1,Rn(U,d),Rn(U,h),Rn(U,f),ae&&ae()},K=U=>(ae,fe)=>{const ue=U?I:w,pe=()=>F(ae,U,fe);Tn(ue,[ae,pe]),el(()=>{Rn(ae,U?l:i),tn(ae,U?c:a),Za(ue)||tl(ae,s,g,pe)})};return tt(t,{onBeforeEnter(U){Tn(_,[U]),tn(U,i),tn(U,r)},onBeforeAppear(U){Tn(k,[U]),tn(U,l),tn(U,u)},onEnter:K(!1),onAppear:K(!0),onLeave(U,ae){U._isLeaving=!0;const fe=()=>B(U,ae);tn(U,d),U._enterCancelled?(tn(U,f),ol(U)):(ol(U),tn(U,f)),el(()=>{U._isLeaving&&(Rn(U,d),tn(U,h),Za(A)||tl(U,s,v,fe))}),Tn(A,[U,fe])},onEnterCancelled(U){F(U,!1,void 0,!0),Tn(T,[U])},onAppearCancelled(U){F(U,!0,void 0,!0),Tn(z,[U])},onLeaveCancelled(U){B(U),Tn(m,[U])}})}function Hp(e){if(e==null)return null;if(Be(e))return[Vi(e.enter),Vi(e.leave)];{const t=Vi(e);return[t,t]}}function Vi(e){return Dc(e)}function tn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[to]||(e[to]=new Set)).add(t)}function Rn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[to];n&&(n.delete(t),n.size||(e[to]=void 0))}function el(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let zp=0;function tl(e,t,n,s){const o=e._endId=++zp,i=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:a,propCount:l}=qp(e,t);if(!r)return s();const u=r+"end";let c=0;const d=()=>{e.removeEventListener(u,f),i()},f=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,f)}function qp(e,t){const n=window.getComputedStyle(e),s=y=>(n[y]||"").split(", "),o=s(`${gn}Delay`),i=s(`${gn}Duration`),r=nl(o,i),a=s(`
* pinia v2.3.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let Hd;const Ei=e=>Hd=e,zd=Symbol();function kr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ks;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ks||(Ks={}));function g_(){const e=jc(!0),t=e.run(()=>M({}));let n=[],s=[];const o=Xr({install(i){Ei(o),o._a=i,i.provide(zd,o),i.config.globalProperties.$pinia=o,s.forEach(r=>n.push(r)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const qd=()=>{};function Ll(e,t,n,s=qd){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&qr()&&Uc(o),o}function Gn(e,...t){e.slice().forEach(n=>{n(...t)})}const v_=e=>e(),Ml=Symbol(),Gi=Symbol();function Tr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];kr(o)&&kr(s)&&e.hasOwnProperty(n)&&!Ge(s)&&!ln(s)?e[n]=Tr(o,s):e[n]=s}return e}const __=Symbol();function y_(e){return!kr(e)||!e.hasOwnProperty(__)}const{assign:bn}=Object;function b_(e){return!!(Ge(e)&&e.effect)}function w_(e,t,n,s){const{state:o,actions:i,getters:r}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=vh(n.state.value[e]);return bn(c,i,Object.keys(r||{}).reduce((d,f)=>(d[f]=Xr(G(()=>{Ei(n);const h=n._s.get(e);return r[f].call(h,h)})),d),{}))}return l=Wd(e,u,t,n,s,!0),l}function Wd(e,t,n={},s,o,i){let r;const a=bn({actions:{}},n),l={deep:!0};let u,c,d=[],f=[],h;const y=s.state.value[e];!i&&!y&&(s.state.value[e]={});let g;function v(z){let F;u=c=!1,typeof z=="function"?(z(s.state.value[e]),F={type:Ks.patchFunction,storeId:e,events:h}):(Tr(s.state.value[e],z),F={type:Ks.patchObject,payload:z,storeId:e,events:h});const B=g=Symbol();We().then(()=>{g===B&&(u=!0)}),c=!0,Gn(d,F,s.state.value[e])}const _=i?function(){const{state:F}=n,B=F?F():{};this.$patch(K=>{bn(K,B)})}:qd;function w(){r.stop(),d=[],f=[],s._s.delete(e)}const T=(z,F="")=>{if(Ml in z)return z[Gi]=F,z;const B=function(){Ei(s);const K=Array.from(arguments),U=[],ae=[];function fe(le){U.push(le)}function ue(le){ae.push(le)}Gn(f,{args:K,name:B[Gi],store:m,after:fe,onError:ue});let pe;try{pe=z.apply(this&&this.$id===e?this:m,K)}catch(le){throw Gn(ae,le),le}return pe instanceof Promise?pe.then(le=>(Gn(U,le),le)).catch(le=>(Gn(ae,le),Promise.reject(le))):(Gn(U,pe),pe)};return B[Ml]=!0,B[Gi]=F,B},A={_p:s,$id:e,$onAction:Ll.bind(null,f),$patch:v,$reset:_,$subscribe(z,F={}){const B=Ll(d,z,F.detached,()=>K()),K=r.run(()=>be(()=>s.state.value[e],U=>{(F.flush==="sync"?c:u)&&z({storeId:e,type:Ks.direct,events:h},U)},bn({},l,F)));return B},$dispose:w},m=it(A);s._s.set(e,m);const I=(s._a&&s._a.runWithContext||v_)(()=>s._e.run(()=>(r=jc()).run(()=>t({action:T}))));for(const z in I){const F=I[z];if(Ge(F)&&!b_(F)||ln(F))i||(y&&y_(F)&&(Ge(F)?F.value=y[z]:Tr(F,y[z])),s.state.value[e][z]=F);else if(typeof F=="function"){const B=T(F,z);I[z]=B,a.actions[z]=F}}return bn(m,I),bn(Re(m),I),Object.defineProperty(m,"$state",{get:()=>s.state.value[e],set:z=>{v(F=>{bn(F,z)})}}),s._p.forEach(z=>{bn(m,r.run(()=>z({store:m,app:s._a,pinia:s,options:a})))}),y&&i&&n.hydrate&&n.hydrate(m.$state,y),u=!0,c=!0,m}/*! #__NO_SIDE_EFFECTS__ */function ga(e,t,n){let s,o;const i=typeof t=="function";typeof e=="string"?(s=e,o=i?n:t):(o=e,s=e.id);function r(a,l){const u=Ah();return a=a||(u?ot(zd,null):null),a&&Ei(a),a=Hd,a._s.has(s)||(i?Wd(s,t,o,a):w_(s,o,a)),a._s.get(s)}return r.$id=s,r}const Kd="it_desk_h5_theme";function Vl(e){document.documentElement.setAttribute("data-theme",e),localStorage.setItem(Kd,e)}function S_(){const e=localStorage.getItem(Kd);return e==="dark"||e==="light"?e:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const Gd=ga("theme",()=>{const e=M("light");function t(){const s=e.value==="light"?"dark":"light";e.value=s,Vl(s)}function n(){const s=S_();e.value=s,Vl(s)}return{currentTheme:e,toggleTheme:t,initTheme:n}}),E_={class:"app-l
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const Zn=typeof document<"u";function Jd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function T_(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Jd(e.default)}const $e=Object.assign;function Ji(e,t){const n={};for(const s in t){const o=t[s];n[s]=Ht(o)?o.map(e):e(o)}return n}const Gs=()=>{},Ht=Array.isArray;function Ul(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Xd=/#/g,R_=/&/g,I_=/\//g,P_=/=/g,O_=/\?/g,Yd=/\+/g,$_=/%5B/g,F_=/%5D/g,Qd=/%5E/g,B_=/%60/g,Zd=/%7B/g,D_=/%7C/g,ef=/%7D/g,N_=/%20/g;function va(e){return e==null?"":encodeURI(""+e).replace(D_,"|").replace($_,"[").replace(F_,"]")}function L_(e){return va(e).replace(Zd,"{").replace(ef,"}").replace(Qd,"^")}function Rr(e){return va(e).replace(Yd,"%2B").replace(N_,"+").replace(Xd,"%23").replace(R_,"%26").replace(B_,"`").replace(Zd,"{").replace(ef,"}").replace(Qd,"^")}function M_(e){return Rr(e).replace(P_,"%3D")}function V_(e){return va(e).replace(Xd,"%23").replace(O_,"%3F")}function j_(e){return V_(e).replace(I_,"%2F")}function oo(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const U_=/\/$/,H_=e=>e.replace(U_,"");function Xi(e,t,n="/"){let s,o={},i="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(s=t.slice(0,l),i=t.slice(l,a>0?a:t.length),o=e(i.slice(1))),a>=0&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=K_(s??t,n),{fullPath:s+i+r,path:s,query:o,hash:oo(r)}}function z_(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Hl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function q_(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&fs(t.matched[s],n.matched[o])&&tf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function fs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function tf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!W_(e[n],t[n]))return!1;return!0}function W_(e,t){return Ht(e)?zl(e,t):Ht(t)?zl(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function zl(e,t){return Ht(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function K_(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let i=n.length-1,r,a;for(r=0;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 vn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ir=function(e){return e.pop="pop",e.push="push",e}({}),Yi=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function G_(e){if(!e)if(Zn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),H_(e)}const J_=/^[^#]+#/;function X_(e,t){return e.replace(J_,"#")+t}function Y_(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const xi=()=>({left:window.scrollX,top:window.scrollY});function Q_(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Y_(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ql(e,t){return(history.state?history.state.position-t:-1)+e}const Pr=new Map;function Z_(e,t){Pr.set(e,t)}function ey(e){const t=Pr.get(e);return Pr.delete(e),t}function ty(e){return typeof e=="string"||e&&typeof e=="object"}function nf(e){return typeof e=="string"||typeof e=="symbol"}let Xe=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let ly=()=>location.protocol+"//"+location.host;function of(e,t){const{pathname:n,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){let r=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(r);return a[0]!=="/"&&(a="/"+a),Hl(a,"")}return Hl(n,e)+s+o}function cy(e,t,n,s){let o=[],i=[],r=null;const a=({state:f})=>{const h=of(e,location),y=n.value,g=t.value;let v=0;if(f){if(n.value=h,t.value=f,r&&r===y){r=null;return}v=g?f.position-g.position:0}else s(h);o.forEach(_=>{_(n.value,y,{delta:v,type:Ir.pop,direction:v?v>0?Yi.forward:Yi.back:Yi.unknown})})};function l(){r=n.value}function u(f){o.push(f);const h=()=>{const y=o.indexOf(f);y>-1&&o.splice(y,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState($e({},f.state,{scroll:xi()}),"")}}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:d}}function Gl(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?xi():null}}function uy(e){const{history:t,location:n}=window,s={value:of(e,n)},o={value:t.state};o.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:ly()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](f)}}function r(l,u){i(l,$e({},t.state,Gl(o.value.back,l,o.value.forward,!0),u,{position:o.value.position}),!0),s.value=l}function a(l,u){const c=$e({},o.value,t.state,{forward:l,scroll:xi()});i(c.current,c,!0),i(l,$e({},Gl(s.value,l,null),{position:c.position+1},u),!1),s.value=l}return{location:s,state:o,push:a,replace:r}}function dy(e){e=G_(e);const t=uy(e),n=cy(e,t.state,t.location,t.replace);function s(i,r=!0){r||n.pauseListeners(),history.go(i)}const o=$e({location:"",base:e,go:s,createHref:X_.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let $n=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Ze=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Ze||{});const fy={type:$n.Static,value:""},hy=/[a-zA-Z0-9_]/;function py(e){if(!e)return[[]];if(e==="/")return[[fy]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=Ze.Static,s=n;const o=[];let i;function r(){i&&o.push(i),i=[]}let a=0,l,u="",c="";function d(){u&&(n===Ze.Static?i.push({type:$n.Static,value:u}):n===Ze.Param||n===Ze.ParamRegExp||n===Ze.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:$n.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==Ze.ParamRegExp){s=n,n=Ze.EscapeNext;continue}switch(n){case Ze.Static:l==="/"?(u&&d(),r()):l===":"?(d(),n=Ze.Param):f();break;case Ze.EscapeNext:f(),n=s;break;case Ze.Param:l==="("?n=Ze.ParamRegExp:hy.test(l)?f():(d(),n=Ze.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case Ze.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=Ze.ParamRegExpEnd:c+=l;break;case Ze.ParamRegExpEnd:d(),n=Ze.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===Ze.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),d(),r(),o}const Jl="[^/]+?",my={sensitive:!1,strict:!1,start:!0,end:!0};var pt=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=
`).forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),s=r.substring(o+1).trim(),!(!n||t[n]&&Sb[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t};function xb(e){let t=0,n=e.length;for(;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 Cb=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Ab=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ya(e,t){return P.isArray(e)?e.map(n=>ya(n,t)):xb(String(e).replace(t,""))}const kb=e=>ya(e,Cb),Tb=e=>ya(e,Ab);function _f(e){const t=Object.create(null);return P.forEach(e.toJSON(),(n,s)=>{t[s]=Tb(n)}),t}const rc=Symbol("internals");function Os(e){return e&&String(e).trim().toLowerCase()}function Uo(e){return e===!1||e==null?e:P.isArray(e)?e.map(Uo):kb(String(e))}function Rb(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Ib=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zi(e,t,n,s,o){if(P.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!P.isString(t)){if(P.isString(s))return t.indexOf(s)!==-1;if(P.isRegExp(s))return s.test(t)}}function Pb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Ob(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(o,i,r){return this[s].call(this,t,o,i,r)},configurable:!0})})}let vt=class{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function i(a,l,u){const c=Os(l);if(!c)throw new Error("header name must be a non-empty string");const d=P.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=Uo(a))}const r=(a,l)=>P.forEach(a,(u,c)=>i(u,c,l));if(P.isPlainObject(t)||t instanceof this.constructor)r(t,n);else if(P.isString(t)&&(t=t.trim())&&!Ib(t))r(Eb(t),n);else if(P.isObject(t)&&P.isIterable(t)){let a={},l,u;for(const c of t){if(!P.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?P.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}r(a,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=Os(t),t){const s=P.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return Rb(o);if(P.isFunction(n))return n.call(this,o,s);if(P.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Os(t),t){const s=P.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Zi(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function i(r){if(r=Os(r),r){const a=P.findKey(s,r);a&&(!n||Zi(s,s[a],a,n))&&(delete s[a],o=!0)}}return P.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const i=n[s];(!t||Zi(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,s={};return P.forEach(this,(o,i)=>{const r=P.findKey(s,i);if(r){n[r]=Uo(o),delete n[i];return}const a=t?Pb(i):String(i).trim();a!==i&&delete n[i],n[a]=Uo(o),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&P.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[rc]=this[rc]={accessors:{}}).accessors,o=this.prototype;function i(r){const a=Os(r);s[a]||(Ob(o,r),s[a]=!0)}return P.isArray(t)?t.forEach(i):i(t),this}};vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(vt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});P.freezeMethods(vt);const $b="[REDACTED ****]";function Fb(e){if(P.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(P.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Bb(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),s=[],o=i=>{if(i===null||typeof i!="object"||P.isBuffer(i))return i;if(s.indexOf(i)!==-1)return;i instanceof vt&&(i=i.toJSON()),s.push(i);let r;if(P.isArray(i))r=[],i.forEach((a,l)=>{const u=o(a);P.isUndefined(u)||(r[l]=u)});else{if(!P.isPlainObject(i)&&Fb(i))return s.pop(),i;r=Object.create(null);for(const[a,l]of Object.entries(i)){const u=n.has(a.toLowerCase())?$b:o(l);P.isUndefined(u)||(r[a]=u)}}return s.pop(),r};return o(e)}let de=class yf extends Error{static from(t,n,s,o,i,r){const a=new yf(t.message,n||t.code,s,o,i);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),r&&Object.assign(a,r),a}constructor(t,n,s,o,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&P.hasOwnProp(t,"redact")?t.redact:void 0,s=P.isArray(n)&&n.length>0?Bb(t,n):P.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};de.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";de.ERR_BAD_OPTION="ERR_BAD_OPTION";de.ECONNABORTED="ECONNABORTED";de.ETIMEDOUT="ETIMEDOUT";de.ECONNREFUSED="ECONNREFUSED";de.ERR_NETWORK="ERR_NETWORK";de.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";de.ERR_DEPRECATED="ERR_DEPRECATED";de.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";de.ERR_BAD_REQUEST="ERR_BAD_REQUEST";de.ERR_CANCELED="ERR_CANCELED";de.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";de.ERR_INVALID_URL="ERR_INVALID_URL";de.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Db=null;function Br(e){return P.isPlainObject(e)||P.isArray(e)}function bf(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function er(e,t,n){return e?e.concat(t).map(function(o,i){return o=bf(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Nb(e){return P.isArray(e)&&!e.some(Br)}const Lb=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function Ii(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,_){return!P.isUndefined(_[v])});const s=n.metaTokens,o=n.visitor||d,i=n.dots,r=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,u=a&&P.isSpecCompliantForm(t);if(!P.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(P.isDate(g))return g.toISOString();if(P.isBoolean(g))return g.toString();if(!u&&P.isBlob(g))throw new de("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(g)||P.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,v,_){let w=g;if(P.isReactNative(t)&&P.isReactNativeBlob(g))return t.append(er(_,v,i),c(g)),!1;if(g&&!_&&typeof g=="object"){if(P.endsWith(v,"{}"))v=s?v:v.slice(0,-2),g=JSON.stringify(g);else if(P.isArray(g)&&Nb(g)||(P.isFileList(g)||P.endsWith(v,"[]"
`+r.map(mc).join(`
`):" "+mc(r[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const Rf={getAdapter:_w,adapters:xa};function nr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yo(null,e)}function gc(e){return nr(e),e.headers=vt.from(e.headers),e.data=tr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Rf.getAdapter(e.adapter||_o.adapter,e)(e).then(function(s){nr(e),e.response=s;try{s.data=tr.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=vt.from(s.headers),s},function(s){if(!xf(s)&&(nr(e),s&&s.response)){e.response=s.response;try{s.response.data=tr.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=vt.from(s.response.headers)}return Promise.reject(s)})}const Pi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pi[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const vc={};Pi.transitional=function(t,n,s){function o(i,r){return"[Axios v"+Ea+"] Transitional option '"+i+"'"+r+(s?". "+s:"")}return(i,r,a)=>{if(t===!1)throw new de(o(r," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED);return n&&!vc[r]&&(vc[r]=!0,console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,r,a):!0}};Pi.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function yw(e,t,n){if(typeof e!="object")throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const i=s[o],r=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(r){const a=e[i],l=a===void 0||r(a,i,e);if(l!==!0)throw new de("option "+i+" must be "+l,de.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}}const Ho={assertOptions:yw,validators:Pi},It=Ho.validators;let Ln=class{constructor(t){this.defaults=t||{},this.interceptors={request:new lc,response:new lc}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=(()=>{if(!o.stack)return"";const r=o.stack.indexOf(`
`);return r===-1?"":o.stack.slice(r+1)})();try{if(!s.stack)s.stack=i;else if(i){const r=i.indexOf(`
`),a=r===-1?-1:i.indexOf(`
`,r+1),l=a===-1?"":i.slice(a+1);String(s.stack).endsWith(l)||(s.stack+=`
`+i)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mn(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:i}=n;s!==void 0&&Ho.assertOptions(s,{silentJSONParsing:It.transitional(It.boolean),forcedJSONParsing:It.transitional(It.boolean),clarifyTimeoutError:It.transitional(It.boolean),legacyInterceptorReqResOrdering:It.transitional(It.boolean)},!1),o!=null&&(P.isFunction(o)?n.paramsSerializer={serialize:o}:Ho.assertOptions(o,{encode:It.function,serialize:It.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ho.assertOptions(n,{baseUrl:It.spelling("baseURL"),withXsrfToken:It.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=i&&P.merge(i.common,i[n.method]);i&&P.forEach(["delete","get","head","post","put","patch","query","common"],y=>{delete i[y]}),n.headers=vt.concat(r,i);const a=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;l=l&&g.synchronous;const v=n.transitional||wa;v&&v.legacyInterceptorReqResOrdering?a.unshift(g.fulfilled,g.rejected):a.push(g.fulfilled,g.rejected)});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,f;if(!l){const y=[gc.bind(this),void 0];for(y.unshift(...a),y.push(...u),f=y.length,c=Promise.resolve(n);d<f;)c=c.then(y[d++],y[d++]);return c}f=a.length;let h=n;for(;d<f;){const y=a[d++],g=a[d++];try{h=y(h)}catch(v){g.call(this,v);break}}try{c=gc.call(this,h)}catch(y){return Promise.reject(y)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=Mn(this.defaults,t);const n=Af(t.baseURL,t.url,t.allowAbsoluteUrls);return Sf(n,t.params,t.paramsSerializer)}};P.forEach(["delete","get","head","options"],function(t){Ln.prototype[t]=function(n,s){return this.request(Mn(s||{},{method:t,url:n,data:(s||{}).data}))}});P.forEach(["post","put","patch","query"],function(t){function n(s){return function(i,r,a){return this.request(Mn(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}Ln.prototype[t]=n(),t!=="query"&&(Ln.prototype[t+"Form"]=n(!0))});let bw=class If{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 yo(i,r,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new If(function(o){t=o}),cancel:t}}};function ww(e){return function(n){return e.apply(null,n)}}function Sw(e){return P.isObject(e)&&e.isAxiosError===!0}const Nr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,Misdirec
🎉 坐席已为您服务,请稍候...`,t.value&&(t.value.status="serving")):J.assign_result==="queued"&&(oe.content=`${J.funny_phrase}
⏳ 当前无空闲坐席,您已进入排队,请耐心等待...`),((N=J.conversation)==null?void 0:N.status)==="serving"&&await pe(),J.assign_result||"queued"}catch(L){return console.error("[Store] 招手失败:",L),"error"}finally{o.value=!1}}async function Y(){try{const C=await Pw();u.value=C,console.log("[Store] 获取审批链接成功:",C.length,"")}catch(C){console.error("[Store] 获取审批链接失败:",C)}}async function ye(C){var N;try{const L=await Fw(C);if(console.log("[Store] 审批意图检测结果:",L),L.is_approval_request){const J={message_id:`approval_card_${Date.now()}`,conversation_id:((N=t.value)==null?void 0:N.conversation_id)||"",message_type:"system",msg_type:"approval_card",content:"",sender_name:"",created_at:new Date().toISOString(),extra_data:{approval_type:L.approval_type,confidence:L.confidence}};n.value.push(J),console.log("[Store] 已插入审批卡片消息, approval_type:",L.approval_type)}}catch(L){console.warn("[Store] 审批意图检测失败:",L)}}function te(){c.value=!1,d.value=""}function he(C=""){var L;const N={message_id:`approval_card_${Date.now()}`,conversation_id:((L=t.value)==null?void 0:L.conversation_id)||"",message_type:"system",msg_type:"approval_card",content:"",sender_name:"",created_at:new Date().toISOString(),extra_data:{approval_type:"",confidence:0}};n.value.push(N),console.log("[Store] 手动插入审批卡片消息快捷按钮触发")}async function S(){try{const C=await Bw();f.value=C,console.log("[Store] 获取软件下载列表成功:",C.length,"")}catch(C){console.error("[Store] 获取软件下载列表失败:",C)}}function $(){l.value=!l.value}async function V(C){try{await pe();const N=t.value;N&&N.conversation_id!==C&&console.warn("[Store] 当前会话ID不匹配, 期望:",C,"实际:",N.conversation_id),n.value=[],h.value="",await Q(),console.log("[Store] 已切换到邀请会话:",C)}catch(N){console.error("[Store] 切换会话失败:",N)}}async function Z(){if(!t.value)return;const C=t.value.conversation_id;try{await Nw(C),console.log("[Store] 已退出会话:",C),t.value=null,w.value=[],n.value=[],h.value="",X()}catch(N){throw console.error("[Store] 退出会话失败:",N),N}}function ce(){T.value=!T.value}async function b(C){const N=n.value.findIndex(oe=>oe.message_id===C);if(N===-1){console.warn("[Store] 重试消息找不到:",C);return}const L=n.value[N];if(L.status!=="failed"){console.warn("[Store] 消息状态不是 failed无法重试:",C);return}const J=L.content;n.value.splice(N,1),console.log("[Store] 删除失败消息:",C),await le(J,{msg_type:L.msg_type,media_url:L.media_url,file_name:L.file_name,file_size:L.file_size})}function x(C){w.value=C,t.value&&(t.value.participants=C),console.log("[Store] 参与者列表已通过WS更新:",C.length,"")}function R(){console.log("[Store] 当前用户被移除会话清空状态"),t.value=null,w.value=[],n.value=[],h.value="",T.value=!1,X()}function j(C){var L;if(((L=t.value)==null?void 0:L.conversation_id)!==C.conversation_id||!C.chunk)return;if(!A.value){const J=`ai_stream_${C.conversation_id}_${Date.now()}`;A.value=J,n.value.push({message_id:J,conversation_id:C.conversation_id,message_type:"ai",msg_type:"text",content:"",sender_name:"Duckula达寇拉",created_at:new Date().toISOString()})}const N=n.value.findIndex(J=>J.message_id===A.value);N!==-1&&(n.value[N].content+=C.chunk)}function W(C){var oe,Se;if(((oe=t.value)==null?void 0:oe.conversation_id)!==C.conversation_id)return;const N={message_id:C.message_id,conversation_id:C.conversation_id,message_type:C.sender_type||"ai",msg_type:C.msg_type||"text",content:C.content,sender_name:C.sender_name||"Duckula达寇拉",created_at:new Date().toISOString(),status:"sent"},L=A.value?n.value.findIndex(Te=>Te.message_id===A.value):-1;if(L!==-1?n.value[L]=N:n.value.push(N),A.value=null,U(C.message_id),h.value=C.message_id,i.value=C.can_call_agent??!1,t.value){t.value.can_call_agent=C.can_call_agent??!1,t.value.ai_substantive_reply_count=C.ai_reply_count??0;const Te={ai_handling:"waiting",queued:"waiting",serving:"serving",
`)}nt(()=>{document.addEventListener("paste",A),document.addEventListener("keydown",le),h()&&c().catch(Q=>{console.warn("[InputBar] 企微 JS-SDK 初始化失败:",Q)})}),Cn(()=>{document.removeEventListener("paste",A),document.removeEventListener("keydown",le)});async function A(Q){var q;const ee=Q.target;if(ee.tagName==="TEXTAREA"||ee.isContentEditable)return;const X=(q=Q.clipboardData)==null?void 0:q.items;if(X){for(const Y of Array.from(X))if(Y.kind==="file"){Q.preventDefault();const ye=Y.getAsFile();if(!ye)continue;ye.type.startsWith("image/")?await B(ye):await K(ye);return}}}const m=["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","😊","😇","🥰","😍","🤩","😘","😗","😚","😙","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😏","😒","🙄","😬","😮","🤯","😲","😳","🥺","😢","😭","😤","😠","😡","🤬","👍","👎","👏","🙌","🤝","💪","","🤞","","🧡","💛","💚","💙","💜","💯",""];function k(Q){s.value+=Q,l.value=!1,We(()=>{var X,q;const ee=(q=(X=o.value)==null?void 0:X.$el)==null?void 0:q.querySelector("textarea");ee==null||ee.focus()})}function I(Q){/Android|iPhone|iPad|iPod/i.test(navigator.userAgent)||Q.shiftKey||(Q.preventDefault(),z())}async function z(){const Q=s.value.trim();!Q||n.loading||(s.value="",await n.sendNewMessage(Q))}async function F(Q){var X;const ee=(X=Q.clipboardData)==null?void 0:X.items;if(ee){for(const q of Array.from(ee))if(q.kind==="file"){Q.preventDefault();const Y=q.getAsFile();if(!Y)continue;Y.type.startsWith("image/")?await B(Y):await K(Y);return}}}async function B(Q){var ee,X;try{Ae("图片上传中...");const q=await ir(Q),Y=Q instanceof File?Q.name:"截图";await n.sendNewMessage(`[图片] ${Y}`,{msg_type:"image",media_url:q.url,file_name:q.filename,file_size:q.file_size}),Ae("图片发送成功")}catch(q){console.error("图片上传失败:",q),Ae(t((X=(ee=q==null?void 0:q.response)==null?void 0:ee.data)==null?void 0:X.detail)||(q==null?void 0:q.message)||"图片上传失败请重试")}}async function K(Q){var ee,X;try{const q=Q instanceof File?Q.name:"文件";Ae(`文件上传中: ${q}`);const Y=await ir(Q);await n.sendNewMessage(`[文件] ${Y.filename}`,{msg_type:"file",media_url:Y.url,file_name:Y.filename,file_size:Y.file_size}),Ae("文件发送成功")}catch(q){console.error("文件上传失败:",q),Ae(t((X=(ee=q==null?void 0:q.response)==null?void 0:ee.data)==null?void 0:X.detail)||(q==null?void 0:q.message)||"文件上传失败请重试")}}async function U(Q){const ee=Q.target,X=ee.files;if(!(!X||X.length===0)){for(const q of Array.from(X))try{Ae(`正在上传: ${q.name}`);const Y=await ir(q);Ae(`${q.name} 上传成功`),console.log("[InputBar] 文件上传成功:",Y.url)}catch(Y){console.error("文件上传失败:",Y),Ae(`${q.name} 上传失败`)}ee.value=""}}function ae(){l.value=!l.value}function fe(){i.value&&(i.value.accept="",i.value.multiple=!0,i.value.click())}async function ue(Q){if(Q==null||Q.preventDefault(),Q==null||Q.stopPropagation(),y.value!=="none")if(y.value==="wecom")try{if(u.isRecording){const ee=await f();ee?(T(s.value)&&(s.value+=" "),s.value+=ee,Ae("语音识别完成")):Ae("未识别到语音内容")}else await d(),Ae("正在录音点击停止")}catch(ee){const X=u.error||(ee==null?void 0:ee.message)||"语音识别失败";Ae(X),console.error("[InputBar] 企微语音识别错误:",ee)}else y.value==="baidu"&&(w.value=s.value,_.value=!0)}function pe(Q){Q&&(T(w.value)&&(s.value+=" "),s.value+=Q,Ae("语音识别完成"))}function le(Q){if(Q.ctrlKey&&(Q.key==="d"||Q.key==="D")){if(Q.preventDefault(),!g.value)return;ue()}}function me(Q){a.value=!0;const ee=Q.clientY,X=Q.target.closest(".input-bar"),q=X?X.offsetHeight:100;function Y(te){if(!a.value)return;const he=ee-te.clientY;let S=q+he;S=Math.max(100,Math.min(400,S)),X&&(X.style.height=`${S}px`,X.style.flexShrink="0")}function ye(){a.value=!1,document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",ye),document.body.style.curs