SGGL_SHJ/SGGL/FineUIPro.Web/HJGL/DataImport/ocrz-app.js

81 lines
1.5 MiB
JavaScript
Raw Normal View History

2026-05-27 23:13:02 +08:00
var zye=Object.defineProperty;var sR=An=>{throw TypeError(An)};var Hye=(An,Pn,Gt)=>Pn in An?zye(An,Pn,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):An[Pn]=Gt;var Wt=(An,Pn,Gt)=>Hye(An,typeof Pn!="symbol"?Pn+"":Pn,Gt),Nw=(An,Pn,Gt)=>Pn.has(An)||sR("Cannot "+Gt);var y=(An,Pn,Gt)=>(Nw(An,Pn,"read from private field"),Gt?Gt.call(An):Pn.get(An)),se=(An,Pn,Gt)=>Pn.has(An)?sR("Cannot add the same private member more than once"):Pn instanceof WeakSet?Pn.add(An):Pn.set(An,Gt),q=(An,Pn,Gt,tr)=>(Nw(An,Pn,"write to private field"),tr?tr.call(An,Gt):Pn.set(An,Gt),Gt),oe=(An,Pn,Gt)=>(Nw(An,Pn,"access private method"),Gt);var Ha=(An,Pn,Gt,tr)=>({set _(Yt){q(An,Pn,Yt,Gt)},get _(){return y(An,Pn,tr)}});(function(){"use strict";var hl,Db,Dw,Lv,kc,Xu,Er,Ju,Nv,$v,vb,aR,$a,oR,rR,Fb,iR,Fw,Dv,Zu,Qu,Ec,lR,cR,uR,mb,gh,Fv,ya,bh,Bb,ps,Ac,Bv,os,gb,dR,yh,yo,Rs,Js,wh,vl,_h,jo,Tc,ed,Ch,td,pi,Ar,nd,Vv,zv,Sh,Hv,vi,Mc,xh,Pc,mi,yb,Rc,Wv,Ic,sd,jv,Kv,Vs,Ln,ml,ad,Uv,qv,Oc,gi,gl,Gv,Ko,gt,Vb,Bw,fR,hR,zb,pR,vR,mR,Vw,gR,zw,Hw,bR,Wa,Ul,yR,wR,Ww,_R,i2,jw,zs,bi,Tr,Eh,yi,wo,Ah,wi,no,bl,od,_i,Lc,Mr,l2,Hb,Yv,rd,Xv,Jv,Zv,Qv,em,Th,yl,id,Nc,wl,CR,SR,Kw,ld,Pr,Xn,Mh,$c,tm,cd,Zs,ud,_l,Dc,nm,dd,_o,sm,fd,Cl,Ci,Ph,Rh,Uo,hd,am,wb,Ht,Uw,om,qw,Wb,xR,kR,Gw,jb,Yw,ER,AR,TR,Xw,MR,Jw,PR,RR,IR,Zw,c2,pd,vd,Hs,_b,OR,rm,Ih,Oh,qo,LR,NR,$R,Kb,im,md,Lh,Sl,xl,wa,gd,bd,Et,ka,u2,k0,Ub,E0,DR,Qw,A0,d2,f2,e_,h2,Rr,t_,n_,s_,lm,cm,yd,um,dm,fm,hm,Nh,Fc,Nn,$h,Dh,pm,a_,nR,Bc,so,vm,mm,wd,kl,gm,bm,_d,Fh,Bh,Vc,Vh,ym,zh,Cd,wm,_m,Sd,xd,Cm,zc,Hh,El,FR,BR,o_,Co,qb,r_,VR,zR,Sb,Hc,Al,Go,T0,Gb,Tl,kb,Eb,kd,Ed,Wh,Yb,jh,Xb,Ml,Si,Kh,Uh,Pl,Ad,p2,So,Sm,i_,Wc,jc,Td,Pd,qh,Gh,xm,l_,xo,af,HR,WR,Yh,Ab,Tb,Xh,Rd,fs,Rl,Jh,km,Em,Zh,Il,Ir,Ol,Am,Ll,Tm,Id,Od,Fn,Jb,c_,jR,KR,UR,qR,Zb,Qb,u_,Mm,Pm,Rm,Im,Om,Ld,Lm,d_,Nm,$m,f_,Dm,Nd,$d,Fm,Dd,GR,h_,Or,ko,Bm,Fd,Eo,xs,YR,XR,JR,e4,Nl,t4,n4,ZR,p_,QR,Ao,Lr,Qh,e0,xi,hn,Bd,Vd,Vm,zm,t0,n0,Kc,Hm,Mb,Pb,Os,v2,eI,tI,nI,sI,aI,oI,s0,zd,Dl,Wm,To,jm,vs,Rb,rI,Km,Um,Uc,Nr,Fa,iI,s4,lI,cI,v_,qm,a0,$r,Hd,o0,Ls,Gm,r0,Ym,Xm,qc,Dr,i0,Jm,Bn,m_,g_,b_,of,uI,su,l0,Zm,Fl,Wd,c0,oo,Qm,e2,jd,Yo,Mo,Qs,u0,Bl,_a,d0,Xo,t2,an,y_,a4,dI,fI,hI,w_,rf,Jo,M0,pI,o4,m2,vI,mI,gI,bI,yI,Kd,Po,f0,Ws,Ud,qd,Gc,Yc,Xc,Gd,yn,__,C_,S_,g2,wI,r4,b2,P0,ki,js,Ks,Yd,h0,Ba,ea,Zo,Xd,Jd,Zd,p0,i4,Va,n2,s2,Ro,Ei,Ai,v0,m0,g0,ta,ql,_I,CI,SI,b0,Ib,xI,rs,na,Jc,Vl,Zc,w0,Ti,Mi,Io,_0,Cn,y2,w2,l4,x_,c4,k_,u4,kI,Qd,C0,Pi,Qc,zl,Qo,eu,S0,ef,Fr,Hl,Ca,Wl,Lt,tu,ts,EI,Oi,E_,A_,d4,Vr,o2,za,tf,Ob,AI,Ri,T_,TI,M_;var An=typeof document<"u"?document.currentScript:null;/**
* @vue/shared v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Pn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Gt={},tr=[],Yt=()=>{},P_=()=>!1,_2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),f4=e=>e.startsWith("onUpdate:"),gs=Object.assign,h4=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},MI=Object.prototype.hasOwnProperty,jt=(e,t)=>MI.call(e,t),Ae=Array.isArray,lf=e=>R0(e)==="[object Map]",C2=e=>R0(e)==="[object Set]",Gl=e=>R0(e)==="[object Date]",Ze=e=>typeof e=="function",Ye=e=>typeof e=="string",nr=e=>typeof e=="symbol",dt=e=>e!==null&&typeof e=="object",au=e=>(dt(e)||Ze(e))&&Ze(e.then)&&Ze(e.catch),R_=Object.prototype.toString,R0=e=>R_.call(e),PI=e=>R0(e).slice(8,-1),I0=e=>R0(e)==="[object Object]",S2=e=>Ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,O0=Pn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),x2=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},RI=/-\w/g,Ea=x2(e=>e.replace(RI,t=>t.slice(1).toUpperCase())),II=/\B([A-Z])/g,Li=x2(e=>e.replace(II,"-$1").toLowerCase()),L0=x2(e=>e.charAt(0).toUpperCase()+e.slice(1)),N0=x2(e=>e?`on${L0(e)}`:""),Yl=(e,t)=>!Object.is(e,t),k2=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},I_=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},p4=e=>{const t=parseFloat(e);return isNaN(t)?e:t},OI=e=>{const t=Ye(e)?Number(e):NaN;return isNaN(t)?e:t};let O_;const E2=()=>O_||(O_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qe(e){if(Ae(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],a=Ye(s)?DI(s):Qe(s);if(a)for(const o in a)t[o]=a[o]}return t}else if(Ye(e)||dt(e))return e}const LI=/;(?![^(]*\))/g,NI=/:([^]+)/,$I=/\/\*[^]*?\*\//g;function DI(e){const t={};return e.replace($I,"").split(LI).forEach(n=>{if(n){const s=n.split(NI);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function D(e){let t="";if(Ye(e))t=e;else if(Ae(e))for(let n=0;n<e.length;n++){const s=D(e[n]);s&&(t+=s+" ")}else if(dt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ni(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ye(t)&&(e.class=D(t)),n&&(e.style=Qe(n)),e}const FI=Pn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function L_(e){return!!e||e===""}function BI(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=ou(e[s],t[s]);return n}function ou(e,t){if(e===t)return!0;let n=Gl(e),s=Gl(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=nr(e),s=nr(t),n||s)return e===t;if(n=Ae(e),s=Ae(t),n||s)return n&&s?BI(e,t):!1;if(n=dt(e),s=dt(t),n||s){if(!n||!s)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const r in e){const i=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(i&&!l||!i&&l||!ou(e[r],t[r]))return!1}}return String(e)===String(t)}function N_(e,t){return e.findIndex(n=>ou(n,t))}const $_=e=>!!(e&&e.__v_isRef===!0),me=e=>Ye(e)?e:e==null?"":Ae(e)||dt(e)&&(e.toString===R_||!Ze(e.toString))?$_(e)?me(e.value):JSON.stringify(e,D_,2):String(e),D_=(e,t)=>$_(t)?D_(e,t.value):lf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,a],o)=>(n[v4(s,o)+" =>"]=a,n),{})}:C2(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>v4(n))}:nr(t)?v4(t):dt(t)&&!Ae(t)&&!I0(t)?String(t):t,v4=(e,t="")=>{var n;return nr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let aa;class F_{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=aa,!t&&aa&&(this.index=(aa.scopes||(aa.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=aa;try{return aa=this,t()}finally{aa=n}}}on(){++this._on===1&&(this.prevScope=aa,aa=this)}off(){this._on>0&&--this._on===0&&(aa=this.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 a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function VI(e){return new F_(e)}function B_(){return aa}function V_(e,t=!1){aa&&aa.cleanups.push(e)}let Hn;const m4=new WeakSet;class z_{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,aa&&aa.active&&aa.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,m4.has(this)&&(m4.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||W_(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,G_(this),j_(this);const t=Hn,n=sr;Hn=this,sr=!0;try{return this.fn()}finally{K_(this),Hn=t,sr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)w4(t);this.deps=this.depsTail=void 0,G_(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?m4.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){y4(this)&&this.run()}get dirty(){return y4(this)}}let H_=0,$0,D0;function W_(e,t=!1){if(e.flags|=8,t){e.next=D0,D0=e;return}e.next=$0,$0=e}function g4(){H_++}function b4(){if(--H_>0)return;if(D0){let t=D0;for(D0=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;$0;){let t=$0;for($0=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 j_(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function K_(e){let t,n=e.depsTail,s=n;for(;s;){const a=s.prevDep;s.version===-1?(s===n&&(n=a),w4(s),zI(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=a}e.deps=t,e.depsTail=n}function y4(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(U_(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function U_(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===F0)||(e.globalVersion=F0,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!y4(e))))return;e.flags|=2;const t=e.dep,n=Hn,s=sr;Hn=e,sr=!0;try{j_(e);const a=e.fn(e._value);(t.version===0||Yl(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Hn=n,sr=s,K_(e),e.flags&=-3}}function w4(e,t=!1){const{dep:n,prevSub:s,nextSub:a}=e;if(s&&(s.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)w4(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function zI(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let sr=!0;const q_=[];function Hr(){q_.push(sr),sr=!1}function Wr(){const e=q_.pop();sr=e===void 0?!0:e}function G_(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Hn;Hn=void 0;try{t()}finally{Hn=n}}}let F0=0;class
* @vue/runtime-core v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const z0=[];let E4=!1;function Kye(e,...t){if(E4)return;E4=!0,Hr();const n=z0.length?z0[z0.length-1].component:null,s=n&&n.appContext.config.warnHandler,a=pO();if(s)df(s,n,11,[e+t.map(o=>{var r,i;return(i=(r=o.toString)==null?void 0:r.call(o))!=null?i:JSON.stringify(o)}).join(""),n&&n.proxy,a.map(({vnode:o})=>`at <${pS(n,o.type)}>`).join(`
`),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push(`
`,...vO(a)),console.warn(...o)}Wr(),E4=!1}function pO(){let e=z0[z0.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function vO(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
`],...mO(n))}),t}function mO({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,a=` at <${pS(e.component,e.type,s)}`,o=">"+n;return e.props?[a,...gO(e.props),o]:[a+o]}function gO(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...lC(s,e[s]))}),n.length>3&&t.push(" ..."),t}function lC(e,t,n){return Ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:vn(t)?(t=lC(e,un(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ze(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=un(t),n?t:[`${e}=`,t])}function df(e,t,n,s){try{return s?e(...s):e()}catch(a){F2(a,t,n)}}function or(e,t,n,s){if(Ze(e)){const a=df(e,t,n,s);return a&&au(a)&&a.catch(o=>{F2(o,t,n)}),a}if(Ae(e)){const a=[];for(let o=0;o<e.length;o++)a.push(or(e[o],t,n,s));return a}}function F2(e,t,n,s=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||Gt;if(t){let i=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}i=i.parent}if(o){Hr(),df(o,null,10,[e,l,c]),Wr();return}}bO(e,n,a,s,r)}function bO(e,t,n,s=!0,a=!1){if(a)throw e;console.error(e)}const Aa=[];let Kr=-1;const ff=[];let Jl=null,hf=0;const cC=Promise.resolve();let B2=null;function Be(e){const t=B2||cC;return e?t.then(this?e.bind(this):e):t}function yO(e){let t=Kr+1,n=Aa.length;for(;t<n;){const s=t+n>>>1,a=Aa[s],o=H0(a);o<e||o===e&&a.flags&2?t=s+1:n=s}return t}function A4(e){if(!(e.flags&1)){const t=H0(e),n=Aa[Aa.length-1];!n||!(e.flags&2)&&t>=H0(n)?Aa.push(e):Aa.splice(yO(t),0,e),e.flags|=1,uC()}}function uC(){B2||(B2=cC.then(hC))}function wO(e){Ae(e)?ff.push(...e):Jl&&e.id===-1?Jl.splice(hf+1,0,e):e.flags&1||(ff.push(e),e.flags|=1),uC()}function dC(e,t,n=Kr+1){for(;n<Aa.length;n++){const s=Aa[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Aa.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function fC(e){if(ff.length){const t=[...new Set(ff)].sort((n,s)=>H0(n)-H0(s));if(ff.length=0,Jl){Jl.push(...t);return}for(Jl=t,hf=0;hf<Jl.length;hf++){const n=Jl[hf];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Jl=null,hf=0}}const H0=e=>e.id==null?e.flags&2?-1:1/0:e.id;function hC(e){try{for(Kr=0;Kr<Aa.length;Kr++){const t=Aa[Kr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),df(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Kr<Aa.length;Kr++){const t=Aa[Kr];t&&(t.flags&=-2)}Kr=-1,Aa.length=0,fC(),B2=null,(Aa.length||ff.length)&&hC()}}let Us=null,pC=null;function V2(e){const t=Us;return Us=e,pC=e&&e.type.__scopeId||null,t}function X(e,t=Us,n){if(!t||e._n)return e;const s=(...a)=>{s._d&&Y2(-1);const o=V2(t);let r;try{r=e(...a)}finally{V2(o),s._d&&Y2(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function bt(e,t){if(Us===null)return e;const n=Z2(Us),s=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,r,i,l=Gt]=t[a];o&&(Ze(o)&&(o={mounted:o,updated:o}),o.deep&&Bi(r),s.push({dir:o,instance:n,value:r,oldValue:void 0,arg:i,modifiers:l}))}return e}function uu(e,t,n,s){const a=e.dirs,o=t&&t.dirs;for(let r=0;r<a.length;r++){const i=a[r];o&&(i.oldValue=o[r].value);let l=i.dir[s];l&&(Hr(),or(l,n,8,[e.el,i,e,t]),Wr())}}function Mt(e,t){if(ia){let n=ia.provides;const s=ia.parent&&ia.parent.provides;s===n&&(n=ia.provides=Object.create(s)),n[e]=t}}function We(e,t,n=!1){const s=Ct();if(s||vf){let a=vf?vf._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return n&&Ze(t)?t.call(s&&s.proxy):t}}const _O=Symbol.for("v-scx"),CO=()=>We(_O);function ja(e,t){return T4(e,null,t)}function ge(e,t,n){return T4(e,t,n)}function T4(e,t,n=Gt){const{immediate:s,deep:a,flush:o,once:r}=n,i=gs({},n),l=t&&s||!t&&o!=="post";let c;if(Q0){if(o==="sync"){const p=CO();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Yt,p.resume=Yt,p.pause=Yt,p}}const u=ia;i.call=(p,v,m)=>or(p,u,v,m);let d=!1;o==="post"?i.sc
* @vue/runtime-dom v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let X4;const vS=typeof window<"u"&&window.trustedTypes;if(vS)try{X4=vS.createPolicy("vue",{createHTML:e=>e})}catch{}const mS=X4?e=>X4.createHTML(e):e=>e,wL="http://www.w3.org/2000/svg",_L="http://www.w3.org/1998/Math/MathML",ji=typeof document<"u"?document:null,gS=ji&&ji.createElement("template"),CL={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 a=t==="svg"?ji.createElementNS(wL,e):t==="mathml"?ji.createElementNS(_L,e):n?ji.createElement(e,{is:n}):ji.createElement(e);return e==="select"&&s&&s.multiple!=null&&a.setAttribute("multiple",s.multiple),a},createText:e=>ji.createTextNode(e),createComment:e=>ji.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ji.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,a,o){const r=n?n.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===o||!(a=a.nextSibling)););else{gS.innerHTML=mS(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=gS.content;if(s==="svg"||s==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Zl="transition",ep="animation",gf=Symbol("_vtc"),bS={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},yS=gs({},SC,bS),ys=(e=>(e.displayName="Transition",e.props=yS,e))((e,{slots:t})=>at(AO,_S(e),t)),vu=(e,t=[])=>{Ae(e)?e.forEach(n=>n(...t)):e&&e(...t)},wS=e=>e?Ae(e)?e.some(t=>t.length>1):e.length>1:!1;function _S(e){const t={};for(const O in e)O in bS||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=i,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=SL(a),m=v&&v[0],g=v&&v[1],{onBeforeEnter:b,onEnter:_,onEnterCancelled:w,onLeave:C,onLeaveCancelled:x,onBeforeAppear:k=b,onAppear:T=_,onAppearCancelled:R=w}=t,I=(O,B,U,J)=>{O._enterCancelled=J,Ql(O,B?u:i),Ql(O,B?c:r),U&&U()},M=(O,B)=>{O._isLeaving=!1,Ql(O,d),Ql(O,p),Ql(O,h),B&&B()},$=O=>(B,U)=>{const J=O?T:_,Y=()=>I(B,O,U);vu(J,[B,Y]),CS(()=>{Ql(B,O?l:o),Xr(B,O?u:i),wS(J)||SS(B,s,m,Y)})};return gs(t,{onBeforeEnter(O){vu(b,[O]),Xr(O,o),Xr(O,r)},onBeforeAppear(O){vu(k,[O]),Xr(O,l),Xr(O,c)},onEnter:$(!1),onAppear:$(!0),onLeave(O,B){O._isLeaving=!0;const U=()=>M(O,B);Xr(O,d),O._enterCancelled?(Xr(O,h),Z4(O)):(Z4(O),Xr(O,h)),CS(()=>{O._isLeaving&&(Ql(O,d),Xr(O,p),wS(C)||SS(O,s,g,U))}),vu(C,[O,U])},onEnterCancelled(O){I(O,!1,void 0,!0),vu(w,[O])},onAppearCancelled(O){I(O,!0,void 0,!0),vu(R,[O])},onLeaveCancelled(O){M(O),vu(x,[O])}})}function SL(e){if(e==null)return null;if(dt(e))return[J4(e.enter),J4(e.leave)];{const t=J4(e);return[t,t]}}function J4(e){return OI(e)}function Xr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[gf]||(e[gf]=new Set)).add(t)}function Ql(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[gf];n&&(n.delete(t),n.size||(e[gf]=void 0))}function CS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xL=0;function SS(e,t,n,s){const a=e._endId=++xL,o=()=>{a===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:i,propCount:l}=xS(e,t);if(!r)return s();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,h),o()},h=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},i+1),e.addEventListener(c,h)}function xS(e,t){const n=window.getComputedStyle(e),s=v=>(n[v]||"").split(", "),a=s(`${Zl}Delay`),o=s(`${Zl}Duration`),r=kS(a,o),i=s(`${ep}Delay`),l=s(`${ep}Duration`),
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),M[2]||(M[2]=A("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):h.value&&e.node.checked?(S(),le(f(Xe),{key:2,class:D(f(o).e("prefix"))},{default:X(()=>[j(f(Pf))]),_:1},8,["class"])):ie("v-if",!0),ie(" content "),j(f(ane),{node:e.node},null,8,["node"]),ie(" postfix "),h.value?ie("v-if",!0):(S(),P(Ve,{key:3},[e.node.loading?(S(),le(f(Xe),{key:0,class:D([f(o).is("loading"),f(o).e("postfix")])},{default:X(()=>[j(f(Ds))]),_:1},8,["class"])):(S(),le(f(Xe),{key:1,class:D(["arrow-right",f(o).e("postfix")])},{default:X(()=>[j(f($s))]),_:1},8,["class"]))],64))],42,one))}}),ine=W({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=Ct(),s=ke("cascader-menu"),{t:a}=Ot(),o=Fs();let r,i;const l=We(Kg),c=F(),u=E(()=>!t.nodes.length),d=E(()=>!l.initialLoaded),h=E(()=>`${o.value}-${t.index}`),p=b=>{r=b.target},v=b=>{var _;if(!(!l.isHoverMenu||!r||!c.value))if(r.contains(b.target)){m();const w=n.vnode.el,{left:C}=w.getBoundingClientRect(),{offsetWidth:x,offsetHeight:k}=w,T=b.clientX-C,R=r.offsetTop,I=R+r.offsetHeight,M=((_=w.querySelector(`.${s.e("wrap")}`))==null?void 0:_.scrollTop)||0;c.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${R} L${x} ${M} V${R} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${I} L${x} ${k+M} V${I} Z" />
`}else i||(i=window.setTimeout(g,l.config.hoverThreshold))},m=()=>{i&&(clearTimeout(i),i=void 0)},g=()=>{c.value&&(c.value.innerHTML="",m())};return(b,_)=>(S(),le(f(vr),{key:h.value,tag:"ul",role:"menu",class:D(f(s).b()),"wrap-class":f(s).e("wrap"),"view-class":[f(s).e("list"),f(s).is("empty",u.value)],onMousemove:v,onMouseleave:g},{default:X(()=>{var w;return[(S(!0),P(Ve,null,wt(e.nodes,C=>(S(),le(rne,{key:C.uid,node:C,"menu-id":h.value,onExpand:p},null,8,["node","menu-id"]))),128)),d.value?(S(),P("div",{key:0,class:D(f(s).e("empty-text"))},[j(f(Xe),{size:"14",class:D(f(s).is("loading"))},{default:X(()=>[j(f(Ds))]),_:1},8,["class"]),Ke(" "+me(f(a)("el.cascader.loading")),1)],2)):u.value?(S(),P("div",{key:1,class:D(f(s).e("empty-text"))},[ue(b.$slots,"empty",{},()=>[Ke(me(f(a)("el.cascader.noData")),1)])],2)):(w=f(l))!=null&&w.isHoverMenu?(S(),P(Ve,{key:2},[ie(" eslint-disable vue/html-self-closing "),(S(),P("svg",{ref_key:"hoverZone",ref:c,class:D(f(s).e("hover-zone"))},null,2))],2112)):ie("v-if",!0),ie(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}),lne=Object.defineProperty,cne=(e,t,n)=>t in e?lne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ja=(e,t,n)=>cne(e,typeof t!="symbol"?t+"":t,n);let une=0;const dne=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let R3=class $w{constructor(t,n,s,a=!1){this.data=t,this.config=n,this.parent=s,this.root=a,Ja(this,"uid",une++),Ja(this,"level"),Ja(this,"value"),Ja(this,"label"),Ja(this,"pathNodes"),Ja(this,"pathValues"),Ja(this,"pathLabels"),Ja(this,"childrenData"),Ja(this,"children"),Ja(this,"text"),Ja(this,"loaded"),Ja(this,"checked",!1),Ja(this,"indeterminate",!1),Ja(this,"loading",!1);const{value:o,label:r,children:i}=n,l=t[i],c=dne(this);this.level=a?0:s?s.level+1:1,this.value=t[o],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(u=>u.value),this.pathLabels=c.map(u=>u.label),this.childrenData=l,this.children=(l||[]).map(u=>new $w(u,n,this)),this.loaded=!n.lazy||this.isLeaf||!Ia(l),this.text=""}get isDisabled(){const{data:t,parent:n,config:s}=this,{disabled:a,checkStrictly:o}=s;return(Ze(a)?a(t,this):!!t[a])||!o&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:s,loaded:a}=this,{lazy:o,leaf:r}=n,i=Ze(r)?r(t,this):t[r];return Dt(i)?o&&!a?!1:!(Ae(s)&&s.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:s}=this,a=new $w(t,this.config,this);return Ae(n)?n.push(t):this.childrenData=[t],s.push(a),a}calcText(t,n){const s=t?this.pathLabels.join(n):this.label;return this.text=s,s}broadcast(t){this.children.forEach(n=>{var s;n&&(n.broadcast(t),(s=n.onParentCheck)==null||s.call(n,t))})}emit(){var t;const{parent:n}=this;n&&((t=n.onChildCheck)==null||t.call(n),n.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),s=n.length?n.every(a=>a.checked):!1;this.setCheckState(s)}setCheckState(t){const n=this.children.length,s=this.children.reduce((a,o)=>{const r=o.checked?1:o.indeterminate?.5:0;return a+r},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&s!==n&&s>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:s}=this.config;n||!s?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};var fne=Object.defineProperty,hne=(e,t,n)=>t in e?fne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I3=(e,t,n)=>hne(e,typeof t!="symbol"?t+"":t,n);const O3=(e,t)=>e.reduce((n,s)=>(s.isLeaf?n.push(s):(!t&&n.push(s),n=n.concat(O3(s.children,t))),n),[]);class mE{constructor(t,n){this.config=n,I3(this,"nodes"),I3(this,"allNodes"),I3(this,"leafNodes");const s=(t||[]).map(a=>new R3(a,this.config));this.nodes=s,this.allNodes=O3(s,!1),this.leafNodes=O3(s,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const s=n?n.appendChild(t):new R3(t,this.confi
(?:
(?:`+s+":){7}(?:"+s+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+s+":){6}(?:"+n+"|:"+s+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+s+":){5}(?::"+n+"|(?::"+s+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+s+":){4}(?:(?::"+s+"){0,1}:"+n+"|(?::"+s+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+s+":){3}(?:(?::"+s+"){0,2}:"+n+"|(?::"+s+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+s+":){2}(?:(?::"+s+"){0,3}:"+n+"|(?::"+s+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+s+":){1}(?:(?::"+s+"){0,4}:"+n+"|(?::"+s+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+s+"){0,5}:"+n+"|(?::"+s+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),r=new RegExp("^"+n+"$"),i=new RegExp("^"+a+"$"),l=function(C){return C&&C.exact?o:new RegExp("(?:"+t(C)+n+t(C)+")|(?:"+t(C)+a+t(C)+")","g")};l.v4=function(w){return w&&w.exact?r:new RegExp(""+t(w)+n+t(w),"g")},l.v6=function(w){return w&&w.exact?i:new RegExp(""+t(w)+a+t(w),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,h=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',_="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+h+"|"+p+v+m+")"+g+b;return l1=new RegExp("(?:^"+_+"$)","i"),l1},RA={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Xp={integer:function(t){return Xp.number(t)&&parseInt(t,10)===t},float:function(t){return Xp.number(t)&&!Xp.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Xp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(RA.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(_ie())},hex:function(t){return typeof t=="string"&&!!t.match(RA.hex)}},Cie=function(t,n,s,a,o){if(t.required&&n===void 0){PA(t,n,s,a,o);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;r.indexOf(i)>-1?Xp[i](n)||a.push(po(o.messages.types[i],t.fullField,t.type)):i&&typeof n!==t.type&&a.push(po(o.messages.types[i],t.fullField,t.type))},Sie=function(t,n,s,a,o){var r=typeof t.len=="number",i=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,h=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(h?d="number":p?d="string":v&&(d="array"),!d)return!1;v&&(u=n.length),p&&(u=n.replace(c,"_").length),r?u!==t.len&&a.push(po(o.messages[d].len,t.fullField,t.len)):i&&!l&&u<t.min?a.push(po(o.messages[d].min,t.fullField,t.min)):l&&!i&&u>t.max?a.push(po(o.messages[d].max,t.fullField,t.max)):i&&l&&(u<t.min||u>t.max)&&a.push(po(o.messages[d].range,t.fullField,t.min,t.max))},Uf="enum",xie=function(t,n,s,a,o){t[Uf]=Array.isArray(t[Uf])?t[Uf]:[],t[Uf].indexOf(n)===-1&&a.push(po(o.messages[Uf],t.fullField,t[Uf].join(", ")))},kie=function(t,n,s,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(po(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||a.push(po(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},mn={required:PA,whitespace:wie,type:Cie,range:Sie,enum:xie,pattern:kie},Eie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n,"string")&&!t.required)return s();mn.required(t,n,a,r,o,"string"),Ts(n,"string")||(mn.type(t,n,a,r,o),mn.range(t,n,a,r,o),mn.pattern(t,n,a,r,o),t.whitespace===!0&&mn.whitespace(t,n,a,r,o))}s(r)},Aie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();mn.required(t,n,a,r,o),n!==void 0&&mn.type(t,n,a,r,o)}s(r)},Tie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(n===""&&(n=void 0),Ts(n)&&!t.required)return s();mn.required(t,n,a,r,o),n!==void 0&&(mn.type(t,n,a,r,o),mn.range(t,n,a,r,o))}s(r)},Mie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts
M 50 50
m 0 ${C?"":"-"}${w}
a ${w} ${w} 0 1 1 0 ${C?"-":""}${w*2}
a ${w} ${w} 0 1 1 0 ${C?"":"-"}${w*2}
`}),l=E(()=>2*Math.PI*r.value),c=E(()=>n.type==="dashboard"?.75:1),u=E(()=>`${-1*l.value*(1-c.value)/2}px`),d=E(()=>({strokeDasharray:`${l.value*c.value}px, ${l.value}px`,strokeDashoffset:u.value})),h=E(()=>({strokeDasharray:`${l.value*c.value*(n.percentage/100)}px, ${l.value}px`,strokeDashoffset:u.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=E(()=>{let w;return n.color?w=_(n.percentage):w=t[n.status]||t.default,w}),v=E(()=>n.status==="warning"?Ap:n.type==="line"?n.status==="success"?kp:Do:n.status==="success"?Pf:qa),m=E(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),g=E(()=>n.format(n.percentage));function b(w){const C=100/w.length;return w.map((k,T)=>Ye(k)?{color:k,percentage:(T+1)*C}:k).sort((k,T)=>k.percentage-T.percentage)}const _=w=>{var C;const{color:x}=n;if(Ze(x))return x(w);if(Ye(x))return x;{const k=b(x);for(const T of k)if(T.percentage>w)return T.color;return(C=k[k.length-1])==null?void 0:C.color}};return(w,C)=>(S(),P("div",{class:D([f(s).b(),f(s).m(e.type),f(s).is(e.status),{[f(s).m("without-text")]:!e.showText,[f(s).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(S(),P("div",{key:0,class:D(f(s).b("bar"))},[A("div",{class:D(f(s).be("bar","outer")),style:Qe({height:`${e.strokeWidth}px`})},[A("div",{class:D([f(s).be("bar","inner"),{[f(s).bem("bar","inner","indeterminate")]:e.indeterminate},{[f(s).bem("bar","inner","striped")]:e.striped},{[f(s).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:Qe(a.value)},[(e.showText||w.$slots.default)&&e.textInside?(S(),P("div",{key:0,class:D(f(s).be("bar","innerText"))},[ue(w.$slots,"default",{percentage:e.percentage},()=>[A("span",null,me(g.value),1)])],2)):ie("v-if",!0)],6)],6)],2)):(S(),P("div",{key:1,class:D(f(s).b("circle")),style:Qe({height:`${e.width}px`,width:`${e.width}px`})},[(S(),P("svg",Rce,[A("path",{class:D(f(s).be("circle","track")),d:i.value,stroke:`var(${f(s).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,fill:"none",style:Qe(d.value)},null,14,Ice),A("path",{class:D(f(s).be("circle","path")),d:i.value,stroke:p.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,style:Qe(h.value)},null,14,Oce)]))],6)),(e.showText||w.$slots.default)&&!e.textInside?(S(),P("div",{key:2,class:D(f(s).e("text")),style:Qe({fontSize:`${m.value}px`})},[ue(w.$slots,"default",{percentage:e.percentage},()=>[e.status?(S(),le(f(Xe),{key:1},{default:X(()=>[(S(),le(yt(v.value)))]),_:1})):(S(),P("span",Lce,me(g.value),1))])],6)):ie("v-if",!0)],10,Pce))}});const UA=ht(Nce),$ce=Me({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:re([Array,Object]),default:()=>In(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:re([Array,Object]),default:()=>[Ep,Ep,Ep]},voidIcon:{type:nn,default:()=>u9},disabledVoidIcon:{type:nn,default:()=>Ep},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:re(Array),default:()=>In(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:cs,clearable:Boolean,...ca(["ariaLabel"])}),Dce={[Rt]:e=>nt(e),[lt]:e=>nt(e)},Fce=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],Bce=["onMousemove","onClick"];var Vce=W({name:"ElRate",__name:"rate",props:$ce,emits:Dce,setup(e,{expose:t,emit:n}){function s(L,V){const z=K=>dt(K),G=Object.keys(V).map(K=>+K).filter(K=>{const ee=V[K];return(z(ee)?ee.excluded:!1)?L<K:L<=K}).sort((K,ee)=>K-ee),Q=V[G[0]];return z(Q)&&Q.value||Q}const a=e,o=n,r=We(ai,void 0),i=ss(),l=ke("rate"),{inputId:c,isLabeledByFormItem:u}=fo(a,{formItemContext:r}),d=F(wu(a.modelValue,0,a.max)),h=F(-1),p=F(!0),v=F([]),m=E(()=>v.value.map(L=>L.$
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const C1="_Mousewheel",jT=function(e,t){if(e&&e.addEventListener){KT(e);const n=function(s){const a=bfe(s);t&&Reflect.apply(t,this,[s,a])};e[C1]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},KT=e=>{var t;(t=e[C1])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[C1].wheelHandler),e[C1]=null)},yfe={beforeMount(e,t){jT(e,t.value)},unmounted(e){KT(e)},updated(e,t){t.value!==t.oldValue&&jT(e,t.value)}};let wfe=1;var _fe=W({name:"ElTable",directives:{Mousewheel:yfe},components:{TableHeader:Zde,TableBody:afe,TableFooter:ife,ElScrollbar:vr,hColgroup:IT},props:dfe,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=Ot(),n=ke("table"),s=Ct();Mt(yr,s);const a=Dde(s,e);s.store=a;const o=new zde({store:s.store,table:s,fit:e.fit,showHeader:e.showHeader});s.layout=o;const r=E(()=>(a.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:l,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,sort:m,updateKeyChildren:g}=lfe(a),{isHidden:b,renderExpanded:_,setDragVisible:w,isGroup:C,handleMouseLeave:x,handleHeaderFooterMousewheel:k,tableSize:T,emptyBlockStyle:R,resizeProxyVisible:I,bodyWidth:M,resizeState:$,doLayout:O,tableBodyStyles:B,tableLayout:U,scrollbarViewStyle:J,scrollbarStyle:Y}=cfe(e,o,a,s),{scrollBarRef:N,scrollTo:L,setScrollLeft:V,setScrollTop:z}=ffe(),G=Zr(O,50),Q=`${n.namespace.value}-table_${wfe++}`;s.tableId=Q,s.state={isGroup:C,resizeState:$,doLayout:O,debouncedUpdateLayout:G};const K=E(()=>{var fe;return(fe=e.sumText)!=null?fe:t("el.table.sumText")}),ee=E(()=>{var fe;return(fe=e.emptyText)!=null?fe:t("el.table.emptyText")}),ae=E(()=>RT(a.states.originColumns.value)[0]);return ufe(s),Xt(()=>{G.cancel()}),{ns:n,layout:o,store:a,columns:ae,handleHeaderFooterMousewheel:k,handleMouseLeave:x,tableId:Q,tableSize:T,isHidden:b,isEmpty:r,renderExpanded:_,resizeProxyVisible:I,resizeState:$,isGroup:C,bodyWidth:M,tableBodyStyles:B,emptyBlockStyle:R,debouncedUpdateLayout:G,setCurrentRow:i,getSelectionRows:l,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,doLayout:O,sort:m,updateKeyChildren:g,t,setDragVisible:w,context:s,computedSumText:K,computedEmptyText:ee,tableLayout:U,scrollbarViewStyle:J,scrollbarStyle:Y,scrollBarRef:N,scrollTo:L,setScrollLeft:V,setScrollTop:z,allowDragLastColumn:e.allowDragLastColumn}}});const Cfe=["data-prefix"],Sfe={ref:"hiddenColumns",class:"hidden-columns"};function xfe(e,t,n,s,a,o){const r=qe("hColgroup"),i=qe("table-header"),l=qe("table-body"),c=qe("table-footer"),u=qe("el-scrollbar"),d=$4("mousewheel");return S(),P("div",{ref:"tableWrapper",class:D([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Qe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[A("div",{ref:"tableInnerWrapper",class:D(e.ns.e("inner-wrapper"))},[A("div",Sfe,[ue(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?bt((S(),P("div",{key:0,ref:"headerWrapper",class:D(e.ns.e("header-wrapper"))},[A("table",{ref:"tableHeader",class:D(e.ns.e("header")),style:Qe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[j(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]
`||c==="\r"){r=l;continue}if(o.includes(c)){const u=r===-1?s:r;i={pattern:a.slice(l+1,u),start:l+1,end:u,prefix:c,prefixIndex:l,splitIndex:r,selectionEnd:s};break}}return i},tme=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,s=e.selectionEnd!==null?e.selectionEnd:0,a=t.useSelectionEnd?s:n,o=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const i=r.style,l=window.getComputedStyle(e),c=e.nodeName==="INPUT";i.whiteSpace=c?"nowrap":"pre-wrap",c||(i.wordWrap="break-word"),i.position="absolute",t.debug||(i.visibility="hidden"),o.forEach(h=>{if(c&&h==="lineHeight")if(l.boxSizing==="border-box"){const p=Number.parseInt(l.height),v=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),m=v+Number.parseInt(l.lineHeight);p>m?i.lineHeight=`${p-v}px`:p===m?i.lineHeight=l.lineHeight:i.lineHeight="0"}else i.lineHeight=l.height;else i[h]=l[h]}),s3()?e.scrollHeight>Number.parseInt(l.height)&&(i.overflowY="scroll"):i.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,a)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const u=document.createElement("span");u.textContent=e.value.slice(Math.max(0,a))||".",u.style.position="relative",u.style.left=`${-e.scrollLeft}px`,u.style.top=`${-e.scrollTop}px`,r.appendChild(u);const d={top:u.offsetTop+Number.parseInt(l.borderTopWidth),left:u.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?u.style.backgroundColor="#aaa":document.body.removeChild(r),d.left>=e.clientWidth&&(d.left=e.clientWidth),d},nme=Me({...Np,options:{type:re(Array),default:()=>[]},prefix:{type:re([String,Array]),default:"@",validator:e=>Ye(e)?e.length===1:e.every(t=>Ye(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:re([Boolean,Function]),default:()=>Qve,validator:e=>e===!1?!0:Ze(e)},placement:{type:re(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:re(Function)},modelValue:String,loading:Boolean,popperClass:sn.popperClass,popperStyle:sn.popperStyle,popperOptions:{type:re(Object),default:()=>({})},props:{type:re(Object),default:()=>b7}}),sme={[lt]:e=>Ye(e),"whole-remove":(e,t)=>Ye(e)&&Ye(t),input:e=>Ye(e),search:(e,t)=>Ye(e)&&Ye(t),select:(e,t)=>dt(e)&&Ye(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},b7={value:"value",label:"label",disabled:"disabled"},ame=Me({options:{type:re(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),ome={select:e=>Ye(e.value)},rme=["id","aria-disabled","aria-selected","onMousemove","onClick"];var ime=W({name:"ElMentionDropdown",__name:"mention-dropdown",props:ame,emits:ome,setup(e,{expose:t,emit:n}){const s=e,a=n,o=ke("mention"),{t:r}=Ot(),i=F(-1),l=F(),c=F(),u=F(),d=(C,x)=>[o.be("dropdown","item"),o.is("hovering",i.value===x),o.is("disabled",C.disabled||s.disabled)],h=C=>{C.disabled||s.disabled||a("select",C)},p=C=>{i.value=C},v=E(()=>s.disabled||s.options.every(C=>C.disabled)),m=E(()=>s.options[i.value]),g=()=>{m.value&&a("select",m.value)},b=C=>{const{options:x}=s;if(x.length===0||v.value)return;C==="next"?(i.value++,i.value===x.length&&(i.value=0)):C==="prev"&&(i.value--,i.value<0&&(i.value=x.length-1));const k=x[i.value];if(k.disabled){b(C);return}Be(()=>_(k))},_=C=>{var x,k,T,R;const{options:I}=s,M=I.findIndex
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const dh=typeof document<"u";function R7(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function x2e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&R7(e.default)}const Mn=Object.assign;function N8(e,t){const n={};for(const s in t){const a=t[s];n[s]=Sr(a)?a.map(e):e(a)}return n}const bv=()=>{},Sr=Array.isArray;function I7(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const O7=/#/g,k2e=/&/g,E2e=/\//g,A2e=/=/g,T2e=/\?/g,L7=/\+/g,M2e=/%5B/g,P2e=/%5D/g,N7=/%5E/g,R2e=/%60/g,$7=/%7B/g,I2e=/%7C/g,D7=/%7D/g,O2e=/%20/g;function $8(e){return e==null?"":encodeURI(""+e).replace(I2e,"|").replace(M2e,"[").replace(P2e,"]")}function L2e(e){return $8(e).replace($7,"{").replace(D7,"}").replace(N7,"^")}function D8(e){return $8(e).replace(L7,"%2B").replace(O2e,"+").replace(O7,"%23").replace(k2e,"%26").replace(R2e,"`").replace($7,"{").replace(D7,"}").replace(N7,"^")}function N2e(e){return D8(e).replace(A2e,"%3D")}function $2e(e){return $8(e).replace(O7,"%23").replace(T2e,"%3F")}function D2e(e){return $2e(e).replace(E2e,"%2F")}function yv(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const F2e=/\/$/,B2e=e=>e.replace(F2e,"");function F8(e,t,n="/"){let s,a={},o="",r="";const i=t.indexOf("#");let l=t.indexOf("?");return l=i>=0&&l>i?-1:l,l>=0&&(s=t.slice(0,l),o=t.slice(l,i>0?i:t.length),a=e(o.slice(1))),i>=0&&(s=s||t.slice(0,i),r=t.slice(i,t.length)),s=W2e(s??t,n),{fullPath:s+o+r,path:s,query:a,hash:yv(r)}}function V2e(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function F7(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function z2e(e,t,n){const s=t.matched.length-1,a=n.matched.length-1;return s>-1&&s===a&&fh(t.matched[s],n.matched[a])&&B7(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function fh(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function B7(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!H2e(e[n],t[n]))return!1;return!0}function H2e(e,t){return Sr(e)?V7(e,t):Sr(t)?V7(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function V7(e,t){return Sr(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function W2e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),a=s[s.length-1];(a===".."||a===".")&&s.push("");let o=n.length-1,r,i;for(r=0;r<s.length;r++)if(i=s[r],i!==".")if(i==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r).join("/")}const bc={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let B8=function(e){return e.pop="pop",e.push="push",e}({}),V8=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function j2e(e){if(!e)if(dh){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),B2e(e)}const K2e=/^[^#]+#/;function U2e(e,t){return e.replace(K2e,"#")+t}function q2e(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 W1=()=>({left:window.scrollX,top:window.scrollY});function G2e(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=q2e(a,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 z7(e,t){return(history.state?history.state.position-t:-1)+e}const z8=new Map;function Y2e(e,t){z8.set(e,t)}function X2e(e){const t=z8.get(e);return z8.delete(e),t}function J2e(e){return typeof e=="string"||e&&typeof e=="object"}function H7(e){return typeof e=="string"||typeof e=="symbol"}let ds=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let age=()=>location.protocol+"//"+location.host;function q7(e,t){const{pathname:n,search:s,hash:a}=t,o=e.indexOf("#");if(o>-1){let r=a.includes(e.slice(o))?e.slice(o).length:1,i=a.slice(r);return i[0]!=="/"&&(i="/"+i),F7(i,"")}return F7(n,e)+s+a}function oge(e,t,n,s){let a=[],o=[],r=null;const i=({state:h})=>{const p=q7(e,location),v=n.value,m=t.value;let g=0;if(h){if(n.value=p,t.value=h,r&&r===v){r=null;return}g=m?h.position-m.position:0}else s(p);a.forEach(b=>{b(n.value,v,{delta:g,type:B8.pop,direction:g?g>0?V8.forward:V8.back:V8.unknown})})};function l(){r=n.value}function c(h){a.push(h);const p=()=>{const v=a.indexOf(h);v>-1&&a.splice(v,1)};return o.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(Mn({},h.state,{scroll:W1()}),"")}}function d(){for(const h of o)h();o=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:d}}function G7(e,t,n,s=!1,a=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:a?W1():null}}function rge(e){const{history:t,location:n}=window,s={value:q7(e,n)},a={value:t.state};a.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:age()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),a.value=c}catch(p){console.error(p),n[u?"replace":"assign"](h)}}function r(l,c){o(l,Mn({},t.state,G7(a.value.back,l,a.value.forward,!0),c,{position:a.value.position}),!0),s.value=l}function i(l,c){const u=Mn({},a.value,t.state,{forward:l,scroll:W1()});o(u.current,u,!0),o(l,Mn({},G7(s.value,l,null),{position:u.position+1},c),!1),s.value=l}return{location:s,state:a,push:i,replace:r}}function ige(e){e=j2e(e);const t=rge(e),n=oge(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const a=Mn({location:"",base:e,go:s,createHref:U2e.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function lge(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ige(e)}let ju=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Ms=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}(Ms||{});const cge={type:ju.Static,value:""},uge=/[a-zA-Z0-9_]/;function dge(e){if(!e)return[[]];if(e==="/")return[[cge]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=Ms.Static,s=n;const a=[];let o;function r(){o&&a.push(o),o=[]}let i=0,l,c="",u="";function d(){c&&(n===Ms.Static?o.push({type:ju.Static,value:c}):n===Ms.Param||n===Ms.ParamRegExp||n===Ms.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:ju.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;i<e.length;){if(l=e[i++],l==="\\"&&n!==Ms.ParamRegExp){s=n,n=Ms.EscapeNext;continue}switch(n){case Ms.Static:l==="/"?(c&&d(),r()):l===":"?(d(),n=Ms.Param):h();break;case Ms.EscapeNext:h(),n=s;break;case Ms.Param:l==="("?n=Ms.ParamRegExp:uge.test(l)?h():(d(),n=Ms.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--);break;case Ms.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=Ms.ParamRegExpEnd:u+=l;break;case Ms.ParamRegExpEnd:d(),n=Ms.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--,u="";break;default:t("Unknown state");break}}return n===Ms.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),d(),r(),a}const
`);a=i.pop()??"";for(const l of i)if(l.startsWith("data: "))try{const c=JSON.parse(l.slice(6));t(c)}catch{}}}function U1(e,t){return`${K1}/download/${e}/${t}`}function Uge(e,t=["excel","json"],n,s="drawing",a=!0,o=null){const r=new FormData;for(const l of e)r.append("files",l);r.append("export_formats",t.join(",")),r.append("pdf_mode",s),r.append("auto_correct",a?"true":"false"),o&&r.append("max_concurrent",String(o));const i=new AbortController;return fetch(`${K1}/batch`,{method:"POST",body:r,signal:i.signal}).then(l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return j8(l,n)}).catch(l=>{l.name!=="AbortError"&&n({type:"error",data:{message:l.message}})}),()=>i.abort()}const qge={class:"panel-header"},Gge={class:"panel-title"},Yge={class:"panel-actions"},Xge={key:0,class:"overall-progress"},Jge={class:"progress-label"},Zge={key:0,class:"current-file"},Qge={key:0,class:"current-msg"},e1e={key:1,class:"summary-row"},t1e={key:1,class:"row-msg"},n1e={key:2,class:"text-danger"},s1e={key:3,class:"text-success"},a1e=cl({__name:"BatchResultPanel",props:{batchEvents:{type:Array,default:()=>[]},batchDone:{type:Boolean,default:!1},mergedSessionId:{type:String,default:""},outputFiles:{type:Object,default:()=>({})},totalFiles:{type:Number,default:0}},emits:["reset"],setup(e,{emit:t}){const n=e,s=t,a=F({});ge(()=>n.batchEvents,w=>{for(const C of w)o(C)},{deep:!0});function o(w){const{type:C,data:x}=w;if(C==="file_start")a.value[x.filename]={filename:x.filename,status:"processing",pages:0,message:"准备中...",percent:0,sessionId:null,error:null,success:!1};else if(C==="file_progress"){const k=a.value[x.filename];k&&(k.message=x.message||k.message,x.percent!=null&&(k.percent=x.percent))}else C==="file_done"?a.value[x.filename]={filename:x.filename,status:"done",pages:x.pages||0,message:"",percent:100,sessionId:x.session_id,error:null,success:!0}:C==="file_error"&&(a.value[x.filename]={filename:x.filename,status:"error",pages:0,message:"",percent:0,sessionId:null,error:x.error,success:!1})}const r=E(()=>Object.values(a.value)),i=E(()=>r.value.filter(w=>w.status==="done"||w.status==="error").length),l=E(()=>r.value.filter(w=>w.status==="done").length),c=E(()=>r.value.filter(w=>w.status==="error").length),u=E(()=>r.value.reduce((w,C)=>w+(C.pages||0),0)),d=E(()=>n.totalFiles?Math.round(i.value/n.totalFiles*100):0),h=E(()=>r.value.find(w=>w.status==="processing")),p=E(()=>{var w;return((w=h.value)==null?void 0:w.filename)||""}),v=E(()=>{var w;return((w=h.value)==null?void 0:w.message)||""}),m=E(()=>{var w;return!!((w=n.outputFiles)!=null&&w.excel)}),g=E(()=>{var w;return!!((w=n.outputFiles)!=null&&w.json)});function b(w){const C=U1(n.mergedSessionId,w),x=document.createElement("a");x.href=C,x.download=w,document.body.appendChild(x),x.click(),document.body.removeChild(x)}function _(w,C,x){const k=U1(w,C),T=C.endsWith(".xlsx")?".xlsx":".json",R=x?x.replace(/\.pdf$/i,"")+T:C,I=document.createElement("a");I.href=k,I.download=R,document.body.appendChild(I),I.click(),document.body.removeChild(I)}return(w,C)=>{const x=qe("el-icon"),k=qe("el-tag"),T=qe("el-button"),R=qe("el-progress"),I=qe("el-statistic"),M=qe("el-table-column"),$=qe("el-table"),O=qe("el-card");return S(),le(O,{class:"batch-result-card",shadow:"never"},{header:X(()=>[A("div",qge,[A("div",Gge,[j(x,null,{default:X(()=>[j(f(Fy))]),_:1}),C[3]||(C[3]=A("span",null,"批量解析结果",-1)),e.batchDone?(S(),le(k,{key:0,type:"success",size:"small"},{default:X(()=>[Ke(" 完成 "+me(l.value)+"/"+me(e.totalFiles),1)]),_:1})):ie("",!0),c.value>0?(S(),le(k,{key:1,type:"danger",size:"small"},{default:X(()=>[Ke(" 失败 "+me(c.value),1)]),_:1})):ie("",!0)]),A("div",Yge,[e.mergedSessionId?(S(),P(Ve,{key:0},[m.value?(S(),le(T,{key:0,type:"primary",size:"small",icon:f(Qi),onClick:C[0]||(C[0]=B=>b("result.xlsx"))},{default:X(()=>[...C[4]||(C[4]=[Ke("下载合并 Excel",-1)])]),_:1},8,["icon"])):ie("",!0),g.value?(S(),le(T,{key:1,size:"small",icon:f(Qi),onClick:C[1]||(C[1]=B=>b("result.json"))},{default:X(()=>[...C[5]||(C[5]=[Ke("下载合并 JSON",-1)])]),_:1},8,["icon"])):ie("",!0)],64)):ie("",
${v}`:`[${v}]`}function u({row:d,column:h}){if(!d._flags)return{};const p=h.property,v=d._flags[p];return v?new Set(["llm_corrected","rule_corrected"]).has(v)?{backgroundColor:"#FFB347",color:"#000",fontWeight:"bold"}:{backgroundColor:"#ADD8E6",color:"#000",fontWeight:"bold"}:{}}return(d,h)=>{const p=qe("el-tooltip"),v=qe("el-table-column"),m=qe("el-table"),g=qe("el-empty");return S(),P("div",null,[o.value.length>0?(S(),P(Ve,{key:0},[j(m,{data:o.value,border:"",stripe:"",size:"small",style:{width:"100%"},"max-height":500,"cell-style":u},{default:X(()=>[(S(!0),P(Ve,null,wt(r.value,b=>(S(),le(v,{key:b,prop:b,label:l(b),"min-width":"100"},{default:X(({row:_})=>[_._flags&&_._flags[b]?(S(),le(p,{key:0,content:c(_,b),placement:"top","show-after":300},{default:X(()=>[A("span",c1e,me(_[b]),1)]),_:2},1032,["content"])):(S(),P("span",u1e,me(_[b]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),A("div",d1e,"共 "+me(o.value.length)+" 行",1)],64)):i.value?(S(),P("pre",f1e,me(i.value),1)):(S(),le(g,{key:2,description:"暂无识别数据","image-size":60}))])}}},[["__scopeId","data-v-bfa225df"]]),p1e={key:1,class:"raw-text"},iP=cl({__name:"MetaInfo",props:{data:{type:[Object,null],default:null}},setup(e){const t=e,n=E(()=>!t.data||typeof t.data!="object"?[]:Object.entries(t.data).filter(([a])=>a!=="raw_text"&&a!=="parse_error"&&a!=="part").filter(([,a])=>a!=null).map(([a,o])=>({key:a,value:String(o)}))),s=E(()=>{var a;return((a=t.data)==null?void 0:a.raw_text)||""});return(a,o)=>{const r=qe("el-descriptions-item"),i=qe("el-descriptions"),l=qe("el-empty");return S(),P("div",null,[n.value.length>0?(S(),le(i,{key:0,column:1,border:"",size:"small"},{default:X(()=>[(S(!0),P(Ve,null,wt(n.value,({key:c,value:u})=>(S(),le(r,{key:c,label:c},{default:X(()=>[Ke(me(u),1)]),_:2},1032,["label"]))),128))]),_:1})):s.value?(S(),P("pre",p1e,me(s.value),1)):(S(),le(l,{key:2,description:"暂无数据","image-size":50}))])}}},[["__scopeId","data-v-9250db36"]]),v1e={class:"toolbar"},m1e={class:"result-summary"},g1e={key:0,class:"token-hint"},b1e={class:"btn-group"},y1e={key:0},w1e={key:1},_1e={key:0,style:{color:"#e6a23c"}},C1e={key:0,class:"reason-tags"},S1e={key:2,class:"page-detail"},lP=cl({__name:"ResultPanel",props:{pagesData:{type:Array,default:()=>[]},sessionId:{type:String,default:""},outputFiles:{type:Object,default:()=>({})},outputFilenames:{type:Object,default:()=>({})},tokenUsage:{type:Object,default:null},pdfName:{type:String,default:""},correctionSummary:{type:Object,default:null}},emits:["reset"],setup(e,{emit:t}){const n=e,s=t,a=F("1"),o=E(()=>{const c=parseInt(a.value);return n.pagesData.find(u=>u.page===c)||n.pagesData[0]});function r(c){const u=c==="excel"?".xlsx":".json",d=n.outputFilenames[c]||`result${u}`,h=U1(n.sessionId,d),p=document.createElement("a");p.href=h,p.download=d,document.body.appendChild(p),p.click(),document.body.removeChild(p)}const i={llm_suspicious:"LLM标记可疑",llm_corrected:"LLM已修正",rule_corrected:"规则已修正",seq_gap:"序号不连续",seq_dup:"序号重复",desc_overflow:"描述溢出到规格列",size_invalid:"规格字段异常",size_outlier:"规格偏离主导尺寸",qty_invalid:"数量字段异常",cell_overlap:"数值重叠(两格合并)",desc_num_tail:"描述末尾残留尺寸数字",size_num_prefix:"尺寸前缀数字粘连",pressure_oob:"压力值超范围",cross_inconsist:"跨页参数不一致"};function l(c){return i[c]||c}return(c,u)=>{const d=qe("CircleCheck"),h=qe("el-icon"),p=qe("el-button"),v=qe("el-card"),m=qe("el-tag"),g=qe("el-alert"),b=qe("el-tab-pane"),_=qe("el-tabs"),w=qe("el-col"),C=qe("el-row");return S(),P("div",null,[j(v,{class:"toolbar-card",shadow:"never"},{default:X(()=>[A("div",v1e,[A("div",m1e,[j(h,{color:"#67C23A",size:"20"},{default:X(()=>[j(d)]),_:1}),A("span",null,[u[4]||(u[4]=Ke("识别完成,共处理 ",-1)),A("strong",null,me(e.pagesData.length),1),u[5]||(u[5]=Ke(" 页",-1))]),e.tokenUsage?(S(),P("span",g1e," · "+me(e.tokenUsage.total_tokens.toLocaleString())+" tokens  ¥"+me(e.tokenUsage.cost_cny),1)):ie("",!0)]),A("div",b1e,[e.sessionId?
`);return t.join("")}}function kv(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return n==="http:"||n==="https:"}catch{return!1}}function kr(e){e.preventDefault()}function bo(e){e.preventDefault(),e.stopPropagation()}class tw{static toDateObject(t){if(!t||typeof t!="string")return null;y(this,Lv)||q(this,Lv,new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const n=y(this,Lv).exec(t);if(!n)return null;const s=parseInt(n[1],10);let a=parseInt(n[2],10);a=a>=1&&a<=12?a-1:0;let o=parseInt(n[3],10);o=o>=1&&o<=31?o:1;let r=parseInt(n[4],10);r=r>=0&&r<=23?r:0;let i=parseInt(n[5],10);i=i>=0&&i<=59?i:0;let l=parseInt(n[6],10);l=l>=0&&l<=59?l:0;const c=n[7]||"Z";let u=parseInt(n[8],10);u=u>=0&&u<=23?u:0;let d=parseInt(n[9],10)||0;return d=d>=0&&d<=59?d:0,c==="-"?(r+=u,i+=d):c==="+"&&(r-=u,i-=d),new Date(Date.UTC(s,a,o,r,i,l))}}Lv=new WeakMap,se(tw,Lv);function abe(e,{scale:t=1,rotation:n=0}){const{width:s,height:a}=e.attributes.style,o=[0,0,parseInt(s),parseInt(a)];return new xv({viewBox:o,userUnit:1,scale:t,rotation:n})}function nw(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(t&16711680)>>16,(t&65280)>>8,t&255]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map(t=>parseInt(t)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(ln(`Not a valid color format: "${e}"`),[0,0,0])}function obe(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const s=window.getComputedStyle(t).color;e.set(n,nw(s))}t.remove()}function Qn(e){const{a:t,b:n,c:s,d:a,e:o,f:r}=e.getTransform();return[t,n,s,a,o,r]}function fi(e){const{a:t,b:n,c:s,d:a,e:o,f:r}=e.getTransform().invertSelf();return[t,n,s,a,o,r]}function Ku(e,t,n=!1,s=!0){if(t instanceof xv){const{pageWidth:a,pageHeight:o}=t.rawDims,{style:r}=e,i=Na.isCSSRoundSupported,l=`var(--scale-factor) * ${a}px`,c=`var(--scale-factor) * ${o}px`,u=i?`round(down, ${l}, var(--scale-round-x, 1px))`:`calc(${l})`,d=i?`round(down, ${c}, var(--scale-round-y, 1px))`:`calc(${c})`;!n||t.rotation%180===0?(r.width=u,r.height=d):(r.width=d,r.height=u)}s&&e.setAttribute("data-main-rotation",t.rotation)}class sw{constructor(){const t=window.devicePixelRatio||1;this.sx=t,this.sy=t}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}}const pl=class pl{constructor(t){se(this,$a);se(this,kc,null);se(this,Xu,null);se(this,Er);se(this,Ju,null);se(this,Nv,null);q(this,Er,t),y(pl,$v)||q(pl,$v,Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"}))}render(){const t=q(this,kc,document.createElement("div"));t.classList.add("editToolbar","hidden"),t.setAttribute("role","toolbar");const n=y(this,Er)._uiManager._signal;t.addEventListener("contextmenu",kr,{signal:n}),t.addEventListener("pointerdown",oe(pl,vb,aR),{signal:n});const s=q(this,Ju,document.createElement("div"));s.className="buttons",t.append(s);const a=y(this,Er).toolbarPosition;if(a){const{style:o}=t,r=y(this,Er)._uiManager.direction==="ltr"?1-a[0]:a[0];o.insetInlineEnd=`${100*r}%`,o.top=`calc(${100*a[1]}% + var(--editor-toolbar-vert-offset))`}return oe(this,$a,iR).call(this),t}get div(){return y(this,kc)}hide(){var t;y(this,kc).classList.add("hidden"),(t=y(this,Xu))==null||t.hideDropdown()}show(){var t;y(this,kc).classList.remove("hidden"),(t=y(this,Nv))==null||t.shown()}async addAltText(t){const n=await t.render();oe(this,$a,Fb).call(this,n),y(this,Ju).prepend(n,y(this,$a,Fw)),q(this,Nv,t)}addColorPicker(t){q(this,Xu,t);const n=t.renderButton();oe(this,$a,Fb).call(this,n),y(this,Ju).prepend(n,y(this,$a,Fw))}remove(){var t;y(this,kc).remove(),(t=y(this,Xu))==null||t.destroy(),q(this,Xu,null)}};kc=new WeakMap,Xu=new WeakMap,Er=new WeakMap,Ju=new WeakMap,Nv=new WeakMap,$v=new WeakMap,vb=new WeakSet,aR=function(t){t.stopPropagation()},$a=new WeakSet,oR=function(t){y(this,Er)._focusEventsAllowed=!1,bo(t)},rR=function(
`))||null;c&&this.data.comb&&(c=c.replaceAll(/\s+/g,""));const u={userValue:i,formattedValue:c,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(s=document.createElement("textarea"),s.textContent=c??i,this.data.doNotScroll&&(s.style.overflowY="hidden")):(s=document.createElement("input"),s.type="text",s.setAttribute("value",c??i),this.data.doNotScroll&&(s.style.overflowX="hidden")),this.data.hasOwnCanvas&&(s.hidden=!0),qu.add(s),s.setAttribute("data-element-id",n),s.disabled=this.data.readOnly,s.name=this.data.fieldName,s.tabIndex=Ov,this._setRequired(s,this.data.required),l&&(s.maxLength=l),s.addEventListener("input",h=>{t.setValue(n,{value:h.target.value}),this.setPropertyOnSiblings(s,"value",h.target.value,"value"),u.formattedValue=null}),s.addEventListener("resetform",h=>{const p=this.data.defaultFieldValue??"";s.value=u.userValue=p,u.formattedValue=null});let d=h=>{const{formattedValue:p}=u;p!=null&&(h.target.value=p),h.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){s.addEventListener("focus",p=>{var m;if(u.focused)return;const{target:v}=p;u.userValue&&(v.value=u.userValue),u.lastCommittedValue=v.value,u.commitKey=1,(m=this.data.actions)!=null&&m.Focus||(u.focused=!0)}),s.addEventListener("updatefromsandbox",p=>{this.showElementAndHideCanvas(p.target);const v={value(m){u.userValue=m.detail.value??"",t.setValue(n,{value:u.userValue.toString()}),m.target.value=u.userValue},formattedValue(m){const{formattedValue:g}=m.detail;u.formattedValue=g,g!=null&&m.target!==document.activeElement&&(m.target.value=g),t.setValue(n,{formattedValue:g})},selRange(m){m.target.setSelectionRange(...m.detail.selRange)},charLimit:m=>{var w;const{charLimit:g}=m.detail,{target:b}=m;if(g===0){b.removeAttribute("maxLength");return}b.setAttribute("maxLength",g);let _=u.userValue;!_||_.length<=g||(_=_.slice(0,g),b.value=u.userValue=_,t.setValue(n,{value:_}),(w=this.linkService.eventBus)==null||w.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:_,willCommit:!0,commitKey:1,selStart:b.selectionStart,selEnd:b.selectionEnd}}))}};this._dispatchEventFromSandbox(v,p)}),s.addEventListener("keydown",p=>{var g;u.commitKey=1;let v=-1;if(p.key==="Escape"?v=0:p.key==="Enter"&&!this.data.multiLine?v=2:p.key==="Tab"&&(u.commitKey=3),v===-1)return;const{value:m}=p.target;u.lastCommittedValue!==m&&(u.lastCommittedValue=m,u.userValue=m,(g=this.linkService.eventBus)==null||g.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:m,willCommit:!0,commitKey:v,selStart:p.target.selectionStart,selEnd:p.target.selectionEnd}}))});const h=d;d=null,s.addEventListener("blur",p=>{var m,g;if(!u.focused||!p.relatedTarget)return;(m=this.data.actions)!=null&&m.Blur||(u.focused=!1);const{value:v}=p.target;u.userValue=v,u.lastCommittedValue!==v&&((g=this.linkService.eventBus)==null||g.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:v,willCommit:!0,commitKey:u.commitKey,selStart:p.target.selectionStart,selEnd:p.target.selectionEnd}})),h(p)}),(o=this.data.actions)!=null&&o.Keystroke&&s.addEventListener("beforeinput",p=>{var x;u.lastCommittedValue=null;const{data:v,target:m}=p,{value:g,selectionStart:b,selectionEnd:_}=m;let w=b,C=_;switch(p.inputType){case"deleteWordBackward":{const k=g.substring(0,b).match(/\w*[^\w]*$/);k&&(w-=k[0].length);break}case"deleteWordForward":{const k=g.substring(b).match(/^[^\w]*\w*/);k&&(C+=k[0].length);break}case"deleteContentBackward":b===_&&(w-=1);break;case"deleteContentForward":b===_&&(C+=1);break}p.preventDefault(),(x=this.linkService.eventBus)==null||x.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:g,change:v||"",willCommit:!1,selStart:w,selEnd:C}})}),this._setEventListeners(s,u,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],p=>p.target.value)}if(d&&s.addEventListener("blur",d),this.data.comb){const p=(this.data.rect[2]-this.data.rect[0])/l;s.classList.add("comb"),s.style.letterSpacing=`
`))n.push({name:"span",value:o,attributes:a});return s},UR=function(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(t.key==="Enter"||t.key==="Escape"&&y(this,Il))&&oe(this,Fn,Zb).call(this)},qR=function(){if(y(this,Ol)!==null)return;const{page:{view:t},viewport:{rawDims:{pageWidth:n,pageHeight:s,pageX:a,pageY:o}}}=y(this,Em);let r=!!y(this,Zh),i=r?y(this,Zh):y(this,Am);for(const v of y(this,km))if(!i||$t.intersect(v.data.rect,i)!==null){i=v.data.rect,r=!0;break}const l=$t.normalizeRect([i[0],t[3]-i[1]+t[1],i[2],t[3]-i[3]+t[1]]),u=r?i[2]-i[0]+5:0,d=l[0]+u,h=l[1];q(this,Ol,[100*(d-a)/n,100*(h-o)/s]);const{style:p}=y(this,fs);p.left=`${y(this,Ol)[0]}%`,p.top=`${y(this,Ol)[1]}%`},Zb=function(){q(this,Il,!y(this,Il)),y(this,Il)?(oe(this,Fn,Qb).call(this),y(this,fs).addEventListener("click",y(this,Xh)),y(this,fs).addEventListener("keydown",y(this,Yh))):(oe(this,Fn,u_).call(this),y(this,fs).removeEventListener("click",y(this,Xh)),y(this,fs).removeEventListener("keydown",y(this,Yh)))},Qb=function(){y(this,Ir)||this.render(),this.isVisible?y(this,Il)&&y(this,fs).classList.add("focused"):(oe(this,Fn,qR).call(this),y(this,fs).hidden=!1,y(this,fs).style.zIndex=parseInt(y(this,fs).style.zIndex)+1e3)},u_=function(){y(this,fs).classList.remove("focused"),!(y(this,Il)||!this.isVisible)&&(y(this,fs).hidden=!0,y(this,fs).style.zIndex=parseInt(y(this,fs).style.zIndex)-1e3)};class JP extends hs{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=rn.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const t=document.createElement("div");t.classList.add("annotationTextContent"),t.setAttribute("role","comment");for(const n of this.textContent){const s=document.createElement("span");s.textContent=n,t.append(s)}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class k4e extends hs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});se(this,Mm,null)}render(){this.container.classList.add("lineAnnotation");const n=this.data,{width:s,height:a}=xc(n.rect),o=this.svgFactory.create(s,a,!0),r=q(this,Mm,this.svgFactory.createElement("svg:line"));return r.setAttribute("x1",n.rect[2]-n.lineCoordinates[0]),r.setAttribute("y1",n.rect[3]-n.lineCoordinates[1]),r.setAttribute("x2",n.rect[2]-n.lineCoordinates[2]),r.setAttribute("y2",n.rect[3]-n.lineCoordinates[3]),r.setAttribute("stroke-width",n.borderStyle.width||1),r.setAttribute("stroke","transparent"),r.setAttribute("fill","transparent"),o.append(r),this.container.append(o),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return y(this,Mm)}addHighlightArea(){this.container.classList.add("highlightArea")}}Mm=new WeakMap;class E4e extends hs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});se(this,Pm,null)}render(){this.container.classList.add("squareAnnotation");const n=this.data,{width:s,height:a}=xc(n.rect),o=this.svgFactory.create(s,a,!0),r=n.borderStyle.width,i=q(this,Pm,this.svgFactory.createElement("svg:rect"));return i.setAttribute("x",r/2),i.setAttribute("y",r/2),i.setAttribute("width",s-r),i.setAttribute("height",a-r),i.setAttribute("stroke-width",r||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),o.append(i),this.container.append(o),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return y(this,Pm)}addHighlightArea(){this.container.classList.add("highlightArea")}}Pm=new WeakMap;class A4e extends hs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});se(this,Rm,null)}render(){this.container.classList.add("circleAnnotation");const n=this.data,{width:s,height:a}=xc(n.rect),o=this.svgFactory.create(s,a,!0),r=n.borderStyle.width,i=q(this,Rm,this.svgFactory.createElement("svg:ellipse"));return i.setAttribute("cx",s/2),i.setAttribute("cy",a/2),i.setAttribute("rx",s/2-r/2),i.setAttribute("ry",a/2-r/2),i.setAttribute("stroke-width",r||1),i.se
`);if(!o)return;const r=window.getSelection();if(!r.rangeCount)return;this.editorDiv.normalize(),r.deleteFromDocument();const i=r.getRangeAt(0);if(!o.includes(`
`)){i.insertNode(document.createTextNode(o)),this.editorDiv.normalize(),r.collapseToStart();return}const{startContainer:l,startOffset:c}=i,u=[],d=[];if(l.nodeType===Node.TEXT_NODE){const b=l.parentElement;if(d.push(l.nodeValue.slice(c).replaceAll(cb,"")),b!==this.editorDiv){let _=u;for(const w of this.editorDiv.childNodes){if(w===b){_=d;continue}_.push(oe(m=Kn,Nl,t4).call(m,w))}}u.push(l.nodeValue.slice(0,c).replaceAll(cb,""))}else if(l===this.editorDiv){let b=u,_=0;for(const w of this.editorDiv.childNodes)_++===c&&(b=d),b.push(oe(g=Kn,Nl,t4).call(g,w))}q(this,ko,`${u.join(`
`)}${o}${d.join(`
`)}`),oe(this,xs,n4).call(this);const h=new Range;let p=u.reduce((b,_)=>b+_.length,0);for(const{firstChild:b}of this.editorDiv.childNodes)if(b.nodeType===Node.TEXT_NODE){const _=b.nodeValue.length;if(p<=_){h.setStart(b,p),h.setEnd(b,p);break}p-=_}r.removeAllRanges(),r.addRange(h)}get contentDiv(){return this.editorDiv}static async deserialize(n,s,a){var i;let o=null;if(n instanceof JP){const{data:{defaultAppearanceData:{fontSize:l,fontColor:c},rect:u,rotation:d,id:h,popupRef:p},textContent:v,textPosition:m,parent:{page:{pageNumber:g}}}=n;if(!v||v.length===0)return null;o=n={annotationType:rn.FREETEXT,color:Array.from(c),fontSize:l,value:v.join(`
`),position:m,pageIndex:g-1,rect:u.slice(0),rotation:d,id:h,deleted:!1,popupRef:p}}const r=await super.deserialize(n,s,a);return q(r,Eo,n.fontSize),q(r,Or,$t.makeHexColor(...n.color)),q(r,ko,oe(i=Kn,Nl,p_).call(i,n.value)),r.annotationElementId=n.id||null,r._initialData=o,r}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const s=Kn._internalPadding*this.parentScale,a=this.getRect(s,s),o=as._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:y(this,Or)),r={annotationType:rn.FREETEXT,color:o,fontSize:y(this,Eo),value:oe(this,xs,ZR).call(this),pageIndex:this.pageIndex,rect:a,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?r:this.annotationElementId&&!oe(this,xs,QR).call(this,r)?null:(r.id=this.annotationElementId,r)}renderAnnotationElement(n){const s=super.renderAnnotationElement(n);if(this.deleted)return s;const{style:a}=s;a.fontSize=`calc(${y(this,Eo)}px * var(--scale-factor))`,a.color=y(this,Or),s.replaceChildren();for(const r of y(this,ko).split(`
`)){const i=document.createElement("div");i.append(r?document.createTextNode(r):document.createElement("br")),s.append(i)}const o=Kn._internalPadding*this.parentScale;return n.updateEdited({rect:this.getRect(o,o),popupContent:y(this,ko)}),s}resetAnnotationElement(n){super.resetAnnotationElement(n),n.resetEdited()}};Or=new WeakMap,ko=new WeakMap,Bm=new WeakMap,Fd=new WeakMap,Eo=new WeakMap,xs=new WeakSet,YR=function(n){const s=o=>{this.editorDiv.style.fontSize=`calc(${o}px * var(--scale-factor))`,this.translate(0,-(o-y(this,Eo))*this.parentScale),q(this,Eo,o),oe(this,xs,e4).call(this)},a=y(this,Eo);this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:gn.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},XR=function(n){const s=o=>{q(this,Or,this.editorDiv.style.color=o)},a=y(this,Or);this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:gn.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},JR=function(){var a;const n=[];this.editorDiv.normalize();let s=null;for(const o of this.editorDiv.childNodes)(s==null?void 0:s.nodeType)===Node.TEXT_NODE&&o.nodeName==="BR"||(n.push(oe(a=Kn,Nl,t4).call(a,o)),s=o);return n.join(`
`)},e4=function(){const[n,s]=this.parentDimensions;let a;if(this.isAttachedToDOM)a=this.div.getBoundingClientRect();else{const{currentLayer:o,div:r}=this,i=r.style.display,l=r.classList.contains("hidden");r.classList.remove("hidden"),r.style.display="hidden",o.div.append(this.div),a=r.getBoundingClientRect(),r.remove(),r.style.display=i,r.classList.toggle("hidden",l)}this.rotation%180===this.parentRotation%180?(this.width=a.width/n,this.height=a.height/s):(this.width=a.height/n,this.height=a.width/s),this.fixAndSetPosition()},Nl=new WeakSet,t4=function(n){return(n.nodeType===Node.TEXT_NODE?n.nodeValue:n.innerText).replaceAll(cb,"")},n4=function(){if(this.editorDiv.replaceChildren(),!!y(this,ko))for(const n of y(this,ko).split(`
`)){const s=document.createElement("div");s.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(s)}},ZR=function(){return y(this,ko).replaceAll(" "," ")},p_=function(n){return n.replaceAll(" "," ")},QR=function(n){const{value:s,fontSize:a,color:o,pageIndex:r}=this._initialData;return this._hasBeenMoved||n.value!==s||n.fontSize!==a||n.color.some((i,l)=>i!==o[l])||n.pageIndex!==r},se(Kn,Nl),Wt(Kn,"_freeTextDefaultContent",""),Wt(Kn,"_internalPadding",0),Wt(Kn,"_defaultColor",null),Wt(Kn,"_defaultFontSize",10),Wt(Kn,"_type","freetext"),Wt(Kn,"_editorType",rn.FREETEXT);let ww=Kn;class At{toSVGPath(){zn("Abstract method `toSVGPath` must be implemented.")}get box(){zn("Abstract getter `box` must be implemented.")}serialize(t,n){zn("Abstract method `serialize` must be implemented.")}static _rescale(t,n,s,a,o,r){r||(r=new Float32Array(t.length));for(let i=0,l=t.length;i<l;i+=2)r[i]=n+t[i]*a,r[i+1]=s+t[i+1]*o;return r}static _rescaleAndSwap(t,n,s,a,o,r){r||(r=new Float32Array(t.length));for(let i=0,l=t.length;i<l;i+=2)r[i]=n+t[i+1]*a,r[i+1]=s+t[i]*o;return r}static _translate(t,n,s,a){a||(a=new Float32Array(t.length));for(let o=0,r=t.length;o<r;o+=2)a[o]=n+t[o],a[o+1]=s+t[o+1];return a}static svgRound(t){return Math.round(t*1e4)}static _normalizePoint(t,n,s,a,o){switch(o){case 90:return[1-n/s,t/a];case 180:return[1-t/s,1-n/a];case 270:return[n/s,1-t/a];default:return[t/s,n/a]}}static _normalizePagePoint(t,n,s){switch(s){case 90:return[1-n,t];case 180:return[1-t,1-n];case 270:return[n,1-t];default:return[t,n]}}static createBezierPoints(t,n,s,a,o,r){return[(t+5*s)/6,(n+5*a)/6,(5*s+o)/6,(5*a+r)/6,(s+o)/2,(a+r)/2]}}Wt(At,"PRECISION",1e-4);const $l=class $l{constructor({x:t,y:n},s,a,o,r,i=0){se(this,Os);se(this,Ao);se(this,Lr,[]);se(this,Qh);se(this,e0);se(this,xi,[]);se(this,hn,new Float32Array(18));se(this,Bd);se(this,Vd);se(this,Vm);se(this,zm);se(this,t0);se(this,n0);se(this,Kc,[]);q(this,Ao,s),q(this,n0,o*a),q(this,e0,r),y(this,hn).set([NaN,NaN,NaN,NaN,t,n],6),q(this,Qh,i),q(this,zm,y($l,Hm)*a),q(this,Vm,y($l,Pb)*a),q(this,t0,a),y(this,Kc).push(t,n)}isEmpty(){return isNaN(y(this,hn)[8])}add({x:t,y:n}){var I;q(this,Bd,t),q(this,Vd,n);const[s,a,o,r]=y(this,Ao);let[i,l,c,u]=y(this,hn).subarray(8,12);const d=t-c,h=n-u,p=Math.hypot(d,h);if(p<y(this,Vm))return!1;const v=p-y(this,zm),m=v/p,g=m*d,b=m*h;let _=i,w=l;i=c,l=u,c+=g,u+=b,(I=y(this,Kc))==null||I.push(t,n);const C=-b/v,x=g/v,k=C*y(this,n0),T=x*y(this,n0);return y(this,hn).set(y(this,hn).subarray(2,8),0),y(this,hn).set([c+k,u+T],4),y(this,hn).set(y(this,hn).subarray(14,18),12),y(this,hn).set([c-k,u-T],16),isNaN(y(this,hn)[6])?(y(this,xi).length===0&&(y(this,hn).set([i+k,l+T],2),y(this,xi).push(NaN,NaN,NaN,NaN,(i+k-s)/o,(l+T-a)/r),y(this,hn).set([i-k,l-T],14),y(this,Lr).push(NaN,NaN,NaN,NaN,(i-k-s)/o,(l-T-a)/r)),y(this,hn).set([_,w,i,l,c,u],6),!this.isEmpty()):(y(this,hn).set([_,w,i,l,c,u],6),Math.abs(Math.atan2(w-l,_-i)-Math.atan2(b,g))<Math.PI/2?([i,l,c,u]=y(this,hn).subarray(2,6),y(this,xi).push(NaN,NaN,NaN,NaN,((i+c)/2-s)/o,((l+u)/2-a)/r),[i,l,_,w]=y(this,hn).subarray(14,18),y(this,Lr).push(NaN,NaN,NaN,NaN,((_+i)/2-s)/o,((w+l)/2-a)/r),!0):([_,w,i,l,c,u]=y(this,hn).subarray(0,6),y(this,xi).push(((_+5*i)/6-s)/o,((w+5*l)/6-a)/r,((5*i+c)/6-s)/o,((5*l+u)/6-a)/r,((i+c)/2-s)/o,((l+u)/2-a)/r),[c,u,i,l,_,w]=y(this,hn).subarray(12,18),y(this,Lr).push(((_+5*i)/6-s)/o,((w+5*l)/6-a)/r,((5*i+c)/6-s)/o,((5*l+u)/6-a)/r,((i+c)/2-s)/o,((l+u)/2-a)/r),!0))}toSVGPath(){if(this.isEmpty())return"";const t=y(this,xi),n=y(this,Lr);if(isNaN(y(this,hn)[6])&&!this.isEmpty())return oe(this,Os,eI).call(this);const s=[];s.push(`M${t[4]} ${t[5]}`);for(let a=6;a<t.length;a+=6)isNaN(t[a])?s.push(`L${t[a+4]} ${t[a+5]}`):s.push(`C${t[a]} ${t[a+1]} ${t[a+2]} ${t[a+3]} ${t[a+4]} ${t[a+5]}`);oe(this,Os,nI).call(this,s);for(let a=n.length-6;a>=6;a-=6)isNaN(n[a])?s.push(`L${n[a+4]} ${n[a+5]}`):s.push(`C${n[a]} ${n[a+1]} ${n[a+2]} ${n[a+3]} ${n[a+4]} ${n[a+5]}`);return oe(this,Os,tI).call(this,s),s.join(" ")}newFreeDrawOutline(t,n,s,a,o,r){return new tR(t,n,s,a,o,r)}getOutlines()
`):"(该页无材料明细行)",It.status=bn._validation_failed?"error":"done"}const Vn=mt.results.filter(bn=>bn._validation_failed).length;Vn>0?Xs.warning(`VL 识别完成${mt.total_pages} 页中 ${Vn} 页校验未通过内容可能为空`):Xs.success(`VL 识别完成 ${mt.total_pages} `)}catch(rt){clearInterval(ye),_.value.filter(mt=>mt.type==="A").forEach(mt=>{mt.status==="recognizing"&&(mt.status="error")}),Xs.error(`VL 识别失败${rt.message}`)}finally{k.value=!1}}function St(Ee){return!Ee||typeof Ee!="object"?"":Object.entries({pipeline_id:"管段号",operation_pressure_mpa:"操作压力(MPa)",operation_temp_c:"操作温度(℃)",design_pressure_mpa:"设计压力(MPa)",design_temp_c:"设计温度(℃)",test_pressure_mpa:"试验压力(MPa)",hydraulic_test_pressure:"水压/气密",pipe_diameter_dn:"管径DN",pipe_spec_grade:"管道等级",heat_insulation:"隔热要求",insulation_thickness_mm:"保温厚度(mm)",post_weld_heat_treatment:"焊后热处理",radiographic_examination:"射线探伤"}).map(([ye,je])=>{const rt=Ee[ye];return rt!=null&&rt!==""?`${je}: ${rt}`:null}).filter(Boolean).join(`
`)}async function Zt(){var pe;const Ee=_.value.find(ye=>ye.type==="B");if(Ee){_.value.filter(ye=>ye.type==="B"&&ye.status==="pending").forEach(ye=>{ye.status="recognizing"});try{const ye=await fetch(`${n}/api/manual/ocr-all-pages-vl-b`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:u.value,x_ratio:Ee.xr,y_ratio:Ee.yr,w_ratio:Ee.wr,h_ratio:Ee.hr,concurrency:5})});if(!ye.ok){const mt=await ye.json().catch(()=>({}));throw new Error(mt.detail||`HTTP ${ye.status}`)}const je=await ye.json(),rt=(pe=je.usage)!=null&&pe.total_tokens?Math.round(je.usage.total_tokens/(je.total_pages||1)):null;for(const mt of je.results){let zt=_.value.find(ms=>ms.type==="B"&&ms.page===mt.page_index);zt||(zt={id:crypto.randomUUID(),type:"B",page:mt.page_index,xr:Ee.xr,yr:Ee.yr,wr:Ee.wr,hr:Ee.hr,cx:Ee.cx,cy:Ee.cy,cw:Ee.cw,ch:Ee.ch,status:"pending",text:"",boxes:[],tokens:null,parts1:{}},_.value.push(zt));const{page_index:Vn,parse_error:bn,error:It,...is}=mt;zt.parts1=bn||It?{}:is,zt.text=St(zt.parts1),zt.tokens=rt,zt.status=bn||!zt.text?"error":"done"}}catch(ye){_.value.filter(je=>je.type==="B"&&je.status==="recognizing").forEach(je=>{je.status="error"}),Xs.error(`管线号 VL 识别失败${ye.message}`)}}}function Sn(){var Ee,pe,ye,je,rt;for(const mt of _.value.filter(zt=>zt.type==="B"&&zt.status==="done")){const zt=((pe=(Ee=mt.parts1)==null?void 0:Ee.pipeline_id)==null?void 0:pe.trim())||((je=(ye=mt.text)==null?void 0:ye.split(`
`)[0])==null?void 0:je.replace(/^管段号[:]\s*/,"").trim())||"";if(!zt)continue;const Vn=_.value.find(bn=>bn.type==="A"&&bn.page===mt.page);(rt=Vn==null?void 0:Vn.rows)!=null&&rt.length&&(Vn.rows=Vn.rows.map(bn=>({...bn,pipe_no:zt})))}}async function kn(){const Ee=_.value.find(pe=>pe.type==="C");if(Ee){_.value.filter(pe=>pe.type==="C"&&pe.status==="pending").forEach(pe=>{pe.status="recognizing"});try{const pe=await fetch(`${n}/api/manual/ocr-all-pages-vl-c`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:u.value,x_ratio:Ee.xr,y_ratio:Ee.yr,w_ratio:Ee.wr,h_ratio:Ee.hr,concurrency:5})});if(!pe.ok){const je=await pe.json().catch(()=>({}));throw new Error(je.detail||`HTTP ${pe.status}`)}const ye=await pe.json();for(const je of ye.results){let rt=_.value.find(mt=>mt.type==="C"&&mt.page===je.page_index);rt||(rt={id:crypto.randomUUID(),type:"C",page:je.page_index,xr:Ee.xr,yr:Ee.yr,wr:Ee.wr,hr:Ee.hr,cx:Ee.cx,cy:Ee.cy,cw:Ee.cw,ch:Ee.ch,status:"pending",text:"",boxes:[],tokens:null},_.value.push(rt)),rt.text=je.text||"",rt.status=je.parse_error?"error":"done"}}catch(pe){_.value.filter(ye=>ye.type==="C"&&ye.status==="recognizing").forEach(ye=>{ye.status="error"}),Xs.error(`C 区域 VL 识别失败${pe.message}`)}}}async function Fe(){if(!_.value.filter(mt=>mt.status==="pending").length)return;const pe=Z.value>0,ye=_.value.some(mt=>mt.type==="B"),je=_.value.some(mt=>mt.type==="C"),rt=[];pe&&rt.push(Ge()),ye&&rt.push(Zt()),je&&rt.push(kn()),rt.length&&await Promise.all(rt),pe&&ye&&Sn(),Xs.success("全部识别完成"),await Be(),await tt()}async function tt(){const Ee=H.value;if(Ee.length)try{const pe=await fetch(`${n}/api/manual/export`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({regions:Ee.map(rt=>({id:rt.id,region_type:rt.type,page_index:rt.page,text:rt.text,boxes:rt.boxes||[],rows:rt.rows||[],parts1:rt.parts1||{}})),format:"json"})});if(!pe.ok)return;const ye=await pe.text(),je=document.getElementById("resultdata");je&&(je.value=ye)}catch{}}async function ft(Ee){const pe=H.value;if(pe.length){x.value=Ee;try{const ye=await fetch(`${n}/api/manual/export`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({regions:pe.map(zt=>({id:zt.id,region_type:zt.type,page_index:zt.page,text:zt.text,boxes:zt.boxes||[],rows:zt.rows||[],parts1:zt.parts1||{}})),format:Ee})});if(!ye.ok){const zt=await ye.json().catch(()=>({}));throw new Error(zt.detail||`HTTP ${ye.status}`)}const je=await ye.blob(),rt=URL.createObjectURL(je),mt=document.createElement("a");mt.href=rt,mt.download=Ee==="excel"?"manual_ocr_result.xlsx":"manual_ocr_result.json",mt.click(),URL.revokeObjectURL(rt),Xs.success("导出成功")}catch(ye){Xs.error(`导出失败${ye.message}`)}finally{x.value=""}}}async function wn(Ee){try{await navigator.clipboard.writeText(Ee),Xs.success("已复制")}catch{Xs.warning("请手动复制")}}return fu(()=>{_e&&clearInterval(_e),Ie&&Ie.disconnect(),window.removeEventListener("mousemove",$e),window.removeEventListener("mouseup",He),window.removeEventListener("mousemove",Je),window.removeEventListener("mouseup",ot),u.value&&fetch(`${n}/api/manual/session/${u.value}`,{method:"DELETE"}).catch(()=>{})}),(Ee,pe)=>{const ye=qe("el-icon"),je=qe("el-upload"),rt=qe("el-tab-pane"),mt=qe("el-input"),zt=qe("el-tabs"),Vn=qe("el-tag"),bn=qe("el-progress");return S(),P("div",H4e,[A("div",W4e,[A("div",{class:D(["engine-badge","es-"+L.value])},[pe[17]||(pe[17]=A("span",{class:"es-dot"},null,-1)),A("span",j4e,[pe[16]||(pe[16]=Ke(" OCR  ",-1)),L.value==="loading"?(S(),P(Ve,{key:0},[Ke("引擎加载中…")],64)):L.value==="ready"?(S(),P(Ve,{key:1},[Ke("引擎就绪")],64)):(S(),P(Ve,{key:2},[Ke("引擎异常")],64))])],2),A("div",K4e,[A("div",U4e,[j(ye,null,{default:X(()=>[j(f(Sg))]),_:1}),pe[18]||(pe[18]=Ke(" 加载 PDF ",-1))]),j(zt,{modelValue:r.value,"onUpdate:modelValue":pe[2]||(pe[2]=It=>r.value=It),class:"src-tabs",size:"small"},{default:X(()=>[j(rt,{label:"本地文件",name:"file"},{default:X(()=>[j(je,{ref_key:"uploadRef",ref:O,"auto-upload"