var e3e=Object.defineProperty;var rR=Mn=>{throw TypeError(Mn)};var t3e=(Mn,In,Qt)=>In in Mn?e3e(Mn,In,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Mn[In]=Qt;var Ut=(Mn,In,Qt)=>t3e(Mn,typeof In!="symbol"?In+"":In,Qt),Dw=(Mn,In,Qt)=>In.has(Mn)||rR("Cannot "+Qt);var y=(Mn,In,Qt)=>(Dw(Mn,In,"read from private field"),Qt?Qt.call(Mn):In.get(Mn)),ne=(Mn,In,Qt)=>In.has(Mn)?rR("Cannot add the same private member more than once"):In instanceof WeakSet?In.add(Mn):In.set(Mn,Qt),G=(Mn,In,Qt,er)=>(Dw(Mn,In,"write to private field"),er?er.call(Mn,Qt):In.set(Mn,Qt),Qt),oe=(Mn,In,Qt)=>(Dw(Mn,In,"access private method"),Qt);var za=(Mn,In,Qt,er)=>({set _(en){G(Mn,In,en,Qt)},get _(){return y(Mn,In,er)}});(function(){"use strict";var hl,Bb,Bw,Ov,kc,Yu,kr,Xu,Lv,Nv,yb,iR,Na,lR,cR,Vb,uR,Vw,$v,Ju,Zu,Ec,dR,fR,hR,wb,vh,Dv,ya,mh,zb,ms,Ac,Fv,ls,_b,pR,gh,bo,Os,Js,bh,vl,yh,jo,Tc,Qu,wh,ed,hi,Er,td,Bv,Vv,_h,zv,pi,Mc,Ch,Pc,vi,Sb,Rc,Hv,Ic,nd,Wv,jv,zs,$n,ml,sd,Kv,Uv,Oc,mi,gl,qv,Ko,xt,Hb,zw,vR,mR,Wb,gR,bR,yR,Hw,wR,Ww,jw,_R,Ha,Ul,CR,SR,Kw,xR,c2,Uw,Hs,gi,Ar,xh,bi,yo,kh,yi,to,bl,ad,wi,Lc,Tr,u2,jb,Gv,od,Yv,Xv,Jv,Zv,Qv,Eh,yl,rd,Nc,wl,kR,ER,qw,id,Mr,Jn,Ah,$c,em,ld,Zs,cd,_l,Dc,tm,ud,wo,nm,dd,Cl,_i,Th,Mh,Uo,fd,sm,xb,Kt,Gw,am,Yw,Kb,AR,TR,Xw,Ub,Jw,MR,PR,RR,Zw,IR,Qw,OR,LR,NR,e_,d2,hd,pd,Ws,kb,$R,om,Ph,Rh,qo,DR,FR,BR,qb,rm,vd,Ih,Sl,xl,wa,md,gd,It,xa,f2,x0,Gb,k0,VR,t_,E0,h2,p2,n_,v2,Pr,s_,a_,o_,im,lm,bd,cm,um,dm,fm,Oh,Fc,Dn,Lh,Nh,hm,r_,oR,Bc,no,pm,vm,yd,kl,mm,gm,wd,$h,Dh,Vc,Fh,bm,Bh,_d,ym,wm,Cd,Sd,_m,zc,Vh,El,zR,HR,i_,_o,Yb,l_,WR,jR,Ab,Hc,Al,Go,A0,Xb,Tl,Mb,Pb,xd,kd,zh,Jb,Hh,Zb,Ml,Ci,Wh,jh,Pl,Ed,m2,Co,Cm,c_,Wc,jc,Ad,Md,Kh,Uh,Sm,u_,So,nf,KR,UR,qh,Rb,Ib,Gh,Pd,ps,Rl,Yh,xm,km,Xh,Il,Rr,Ol,Em,Ll,Am,Rd,Id,Vn,Qb,d_,qR,GR,YR,XR,e4,t4,f_,Tm,Mm,Pm,Rm,Im,Od,Om,h_,Lm,Nm,p_,$m,Ld,Nd,Dm,$d,JR,v_,Ir,xo,Fm,Dd,ko,ks,ZR,QR,eI,n4,Nl,s4,a4,tI,m_,nI,Eo,Or,Jh,Zh,Si,gn,Fd,Bd,Bm,Vm,Qh,e0,Kc,zm,Ob,Lb,Ns,g2,sI,aI,oI,rI,iI,lI,t0,Vd,Dl,Hm,Ao,Wm,gs,Nb,cI,jm,Km,Uc,Lr,Da,uI,o4,dI,fI,g_,Um,n0,Nr,zd,s0,$s,qm,a0,Gm,Ym,qc,$r,o0,Xm,zn,b_,y_,w_,sf,hI,nu,r0,Jm,Fl,Hd,i0,ao,Zm,Qm,Wd,Yo,To,Qs,l0,Bl,_a,c0,Xo,e2,cn,__,r4,pI,vI,mI,C_,af,Jo,T0,gI,i4,b2,bI,yI,wI,_I,CI,jd,Mo,u0,js,Kd,Ud,Gc,Yc,Xc,qd,Sn,S_,x_,k_,y2,SI,l4,w2,M0,xi,Ks,Us,Gd,d0,Fa,ea,Zo,Yd,Xd,Jd,f0,c4,Ba,t2,n2,Po,ki,Ei,h0,p0,v0,ta,ql,xI,kI,EI,m0,$b,AI,cs,na,Jc,Vl,Zc,b0,Ai,Ti,Ro,y0,An,_2,C2,u4,E_,d4,A_,f4,TI,Zd,w0,Mi,Qc,zl,Qo,eu,_0,Qd,Dr,Hl,Ca,Wl,Vt,tu,as,MI,Oi,T_,M_,h4,Br,a2,Va,ef,Db,PI,Pi,P_,RI,R_;var Mn=typeof document<"u"?document.currentScript:null;/** * @vue/shared v3.5.28 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function In(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Qt={},er=[],en=()=>{},I_=()=>!1,S2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),p4=e=>e.startsWith("onUpdate:"),bs=Object.assign,v4=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},II=Object.prototype.hasOwnProperty,Gt=(e,t)=>II.call(e,t),Ae=Array.isArray,of=e=>P0(e)==="[object Map]",x2=e=>P0(e)==="[object Set]",Gl=e=>P0(e)==="[object Date]",Ze=e=>typeof e=="function",Xe=e=>typeof e=="string",tr=e=>typeof e=="symbol",bt=e=>e!==null&&typeof e=="object",su=e=>(bt(e)||Ze(e))&&Ze(e.then)&&Ze(e.catch),O_=Object.prototype.toString,P0=e=>O_.call(e),OI=e=>P0(e).slice(8,-1),R0=e=>P0(e)==="[object Object]",k2=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,I0=In(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),E2=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},LI=/-\w/g,ka=E2(e=>e.replace(LI,t=>t.slice(1).toUpperCase())),NI=/\B([A-Z])/g,Li=E2(e=>e.replace(NI,"-$1").toLowerCase()),O0=E2(e=>e.charAt(0).toUpperCase()+e.slice(1)),L0=E2(e=>e?`on${O0(e)}`:""),Yl=(e,t)=>!Object.is(e,t),A2=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},m4=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$I=e=>{const t=Xe(e)?Number(e):NaN;return isNaN(t)?e:t};let N_;const T2=()=>N_||(N_=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{if(n){const s=n.split(FI);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function D(e){let t="";if(Xe(e))t=e;else if(Ae(e))for(let n=0;nau(n,t))}const F_=e=>!!(e&&e.__v_isRef===!0),ge=e=>Xe(e)?e:e==null?"":Ae(e)||bt(e)&&(e.toString===O_||!Ze(e.toString))?F_(e)?ge(e.value):JSON.stringify(e,B_,2):String(e),B_=(e,t)=>F_(t)?B_(e,t.value):of(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,a],o)=>(n[g4(s,o)+" =>"]=a,n),{})}:x2(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>g4(n))}:tr(t)?g4(t):bt(t)&&!Ae(t)&&!R0(t)?String(t):t,g4=(e,t="")=>{var n;return tr(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 V_{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;t0&&--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;n0)return;if($0){let t=$0;for($0=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;N0;){let t=N0;for(N0=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 U_(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function q_(e){let t,n=e.depsTail,s=n;for(;s;){const a=s.prevDep;s.version===-1?(s===n&&(n=a),C4(s),jI(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=a}e.deps=t,e.depsTail=n}function _4(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(G_(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function G_(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===D0)||(e.globalVersion=D0,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!_4(e))))return;e.flags|=2;const t=e.dep,n=Wn,s=nr;Wn=e,nr=!0;try{U_(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{Wn=n,nr=s,q_(e),e.flags&=-3}}function C4(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)C4(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function jI(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let nr=!0;const Y_=[];function zr(){Y_.push(nr),nr=!1}function Hr(){const e=Y_.pop();nr=e===void 0?!0:e}function X_(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Wn;Wn=void 0;try{t()}finally{Wn=n}}}let D0=0;class KI{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class S4{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Wn||!nr||Wn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Wn)n=this.activeLink=new KI(Wn,this),Wn.deps?(n.prevDep=Wn.depsTail,Wn.depsTail.nextDep=n,Wn.depsTail=n):Wn.deps=Wn.depsTail=n,J_(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Wn.depsTail,n.nextDep=void 0,Wn.depsTail.nextDep=n,Wn.depsTail=n,Wn.deps===n&&(Wn.deps=s)}return n}trigger(t){this.version++,D0++,this.notify(t)}notify(t){y4();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{w4()}}}function J_(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)J_(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const M2=new WeakMap,ou=Symbol(""),x4=Symbol(""),F0=Symbol("");function oa(e,t,n){if(nr&&Wn){let s=M2.get(e);s||M2.set(e,s=new Map);let a=s.get(n);a||(s.set(n,a=new S4),a.map=s,a.key=n),a.track()}}function $i(e,t,n,s,a,o){const r=M2.get(e);if(!r){D0++;return}const i=l=>{l&&l.trigger()};if(y4(),t==="clear")r.forEach(i);else{const l=Ae(e),c=l&&k2(n);if(l&&n==="length"){const u=Number(s);r.forEach((d,h)=>{(h==="length"||h===F0||!tr(h)&&h>=u)&&i(d)})}else switch((n!==void 0||r.has(void 0))&&i(r.get(n)),c&&i(r.get(F0)),t){case"add":l?c&&i(r.get("length")):(i(r.get(ou)),of(e)&&i(r.get(x4)));break;case"delete":l||(i(r.get(ou)),of(e)&&i(r.get(x4)));break;case"set":of(e)&&i(r.get(ou));break}}w4()}function UI(e,t){const n=M2.get(e);return n&&n.get(t)}function rf(e){const t=pn(e);return t===e?t:(oa(t,"iterate",F0),oo(e)?t:t.map(sr))}function P2(e){return oa(e=pn(e),"iterate",F0),e}function Xl(e,t){return Fi(e)?lf(iu(e)?sr(t):t):sr(t)}const qI={__proto__:null,[Symbol.iterator](){return k4(this,Symbol.iterator,e=>Xl(this,e))},concat(...e){return rf(this).concat(...e.map(t=>Ae(t)?rf(t):t))},entries(){return k4(this,"entries",e=>(e[1]=Xl(this,e[1]),e))},every(e,t){return Di(this,"every",e,t,void 0,arguments)},filter(e,t){return Di(this,"filter",e,t,n=>n.map(s=>Xl(this,s)),arguments)},find(e,t){return Di(this,"find",e,t,n=>Xl(this,n),arguments)},findIndex(e,t){return Di(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Di(this,"findLast",e,t,n=>Xl(this,n),arguments)},findLastIndex(e,t){return Di(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Di(this,"forEach",e,t,void 0,arguments)},includes(...e){return E4(this,"includes",e)},indexOf(...e){return E4(this,"indexOf",e)},join(e){return rf(this).join(e)},lastIndexOf(...e){return E4(this,"lastIndexOf",e)},map(e,t){return Di(this,"map",e,t,void 0,arguments)},pop(){return B0(this,"pop")},push(...e){return B0(this,"push",e)},reduce(e,...t){return Z_(this,"reduce",e,t)},reduceRight(e,...t){return Z_(this,"reduceRight",e,t)},shift(){return B0(this,"shift")},some(e,t){return Di(this,"some",e,t,void 0,arguments)},splice(...e){return B0(this,"splice",e)},toReversed(){return rf(this).toReversed()},toSorted(e){return rf(this).toSorted(e)},toSpliced(...e){return rf(this).toSpliced(...e)},unshift(...e){return B0(this,"unshift",e)},values(){return k4(this,"values",e=>Xl(this,e))}};function k4(e,t,n){const s=P2(e),a=s[t]();return s!==e&&!oo(e)&&(a._next=a.next,a.next=()=>{const o=a._next();return o.done||(o.value=n(o.value)),o}),a}const GI=Array.prototype;function Di(e,t,n,s,a,o){const r=P2(e),i=r!==e&&!oo(e),l=r[t];if(l!==GI[t]){const d=l.apply(e,o);return i?sr(d):d}let c=n;r!==e&&(i?c=function(d,h){return n.call(this,Xl(e,d),h,e)}:n.length>2&&(c=function(d,h){return n.call(this,d,h,e)}));const u=l.call(r,c,s);return i&&a?a(u):u}function Z_(e,t,n,s){const a=P2(e);let o=n;return a!==e&&(oo(e)?n.length>3&&(o=function(r,i,l){return n.call(this,r,i,l,e)}):o=function(r,i,l){return n.call(this,r,Xl(e,i),l,e)}),a[t](o,...s)}function E4(e,t,n){const s=pn(e);oa(s,"iterate",F0);const a=s[t](...n);return(a===-1||a===!1)&&$2(n[0])?(n[0]=pn(n[0]),s[t](...n)):a}function B0(e,t,n=[]){zr(),y4();const s=pn(e)[t].apply(e,n);return w4(),Hr(),s}const YI=In("__proto__,__v_isRef,__isVue"),Q_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tr));function XI(e){tr(e)||(e=String(e));const t=pn(this);return oa(t,"has",e),t.hasOwnProperty(e)}class eC{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const a=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(a?o?rC:oC:o?aC:sC).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=Ae(t);if(!a){let l;if(r&&(l=qI[n]))return l;if(n==="hasOwnProperty")return XI}const i=Reflect.get(t,n,yn(t)?t:s);if((tr(n)?Q_.has(n):YI(n))||(a||oa(t,"get",n),o))return i;if(yn(i)){const l=r&&k2(n)?i:i.value;return a&&bt(l)?ru(l):l}return bt(i)?a?ru(i):Yt(i):i}}class tC extends eC{constructor(t=!1){super(!1,t)}set(t,n,s,a){let o=t[n];const r=Ae(t)&&k2(n);if(!this._isShallow){const c=Fi(o);if(!oo(s)&&!Fi(s)&&(o=pn(o),s=pn(s)),!r&&yn(o)&&!yn(s))return c||(o.value=s),!0}const i=r?Number(n)e,R2=e=>Reflect.getPrototypeOf(e);function tO(e,t,n){return function(...s){const a=this.__v_raw,o=pn(a),r=of(o),i=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=a[e](...s),u=n?A4:t?lf:sr;return!t&&oa(o,"iterate",l?x4:ou),bs(Object.create(c),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:i?[u(d[0]),u(d[1])]:u(d),done:h}}})}}function I2(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nO(e,t){const n={get(a){const o=this.__v_raw,r=pn(o),i=pn(a);e||(Yl(a,i)&&oa(r,"get",a),oa(r,"get",i));const{has:l}=R2(r),c=t?A4:e?lf:sr;if(l.call(r,a))return c(o.get(a));if(l.call(r,i))return c(o.get(i));o!==r&&o.get(a)},get size(){const a=this.__v_raw;return!e&&oa(pn(a),"iterate",ou),a.size},has(a){const o=this.__v_raw,r=pn(o),i=pn(a);return e||(Yl(a,i)&&oa(r,"has",a),oa(r,"has",i)),a===i?o.has(a):o.has(a)||o.has(i)},forEach(a,o){const r=this,i=r.__v_raw,l=pn(i),c=t?A4:e?lf:sr;return!e&&oa(l,"iterate",ou),i.forEach((u,d)=>a.call(o,c(u),c(d),r))}};return bs(n,e?{add:I2("add"),set:I2("set"),delete:I2("delete"),clear:I2("clear")}:{add(a){!t&&!oo(a)&&!Fi(a)&&(a=pn(a));const o=pn(this);return R2(o).has.call(o,a)||(o.add(a),$i(o,"add",a,a)),this},set(a,o){!t&&!oo(o)&&!Fi(o)&&(o=pn(o));const r=pn(this),{has:i,get:l}=R2(r);let c=i.call(r,a);c||(a=pn(a),c=i.call(r,a));const u=l.call(r,a);return r.set(a,o),c?Yl(o,u)&&$i(r,"set",a,o):$i(r,"add",a,o),this},delete(a){const o=pn(this),{has:r,get:i}=R2(o);let l=r.call(o,a);l||(a=pn(a),l=r.call(o,a)),i&&i.call(o,a);const c=o.delete(a);return l&&$i(o,"delete",a,void 0),c},clear(){const a=pn(this),o=a.size!==0,r=a.clear();return o&&$i(a,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=tO(a,e,t)}),n}function O2(e,t){const n=nO(e,t);return(s,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?s:Reflect.get(Gt(n,a)&&a in s?n:s,a,o)}const sO={get:O2(!1,!1)},aO={get:O2(!1,!0)},oO={get:O2(!0,!1)},rO={get:O2(!0,!0)},sC=new WeakMap,aC=new WeakMap,oC=new WeakMap,rC=new WeakMap;function iO(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function lO(e){return e.__v_skip||!Object.isExtensible(e)?0:iO(OI(e))}function Yt(e){return Fi(e)?e:N2(e,!1,JI,sO,sC)}function L2(e){return N2(e,!1,QI,aO,aC)}function ru(e){return N2(e,!0,ZI,oO,oC)}function s3e(e){return N2(e,!0,eO,rO,rC)}function N2(e,t,n,s,a){if(!bt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=lO(e);if(o===0)return e;const r=a.get(e);if(r)return r;const i=new Proxy(e,o===2?s:n);return a.set(e,i),i}function iu(e){return Fi(e)?iu(e.__v_raw):!!(e&&e.__v_isReactive)}function Fi(e){return!!(e&&e.__v_isReadonly)}function oo(e){return!!(e&&e.__v_isShallow)}function $2(e){return e?!!e.__v_raw:!1}function pn(e){const t=e&&e.__v_raw;return t?pn(t):e}function Wr(e){return!Gt(e,"__v_skip")&&Object.isExtensible(e)&&L_(e,"__v_skip",!0),e}const sr=e=>bt(e)?Yt(e):e,lf=e=>bt(e)?ru(e):e;function yn(e){return e?e.__v_isRef===!0:!1}function F(e){return iC(e,!1)}function bn(e){return iC(e,!0)}function iC(e,t){return yn(e)?e:new cO(e,t)}class cO{constructor(t,n){this.dep=new S4,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:pn(t),this._value=n?t:sr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||oo(t)||Fi(t);t=s?t:pn(t),Yl(t,n)&&(this._rawValue=t,this._value=s?t:sr(t),this.dep.trigger())}}function D2(e){e.dep&&e.dep.trigger()}function f(e){return yn(e)?e.value:e}const uO={get:(e,t,n)=>t==="__v_raw"?e:f(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const a=e[t];return yn(a)&&!yn(n)?(a.value=n,!0):Reflect.set(e,t,n,s)}};function lC(e){return iu(e)?e:new Proxy(e,uO)}function ys(e){const t=Ae(e)?new Array(e.length):{};for(const n in e)t[n]=cC(e,n);return t}class dO{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=pn(t);let a=!0,o=t;if(!Ae(t)||!k2(String(n)))do a=!$2(o)||oo(o);while(a&&(o=o.__v_raw));this._shallow=a}get value(){let t=this._object[this._key];return this._shallow&&(t=f(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&yn(this._raw[this._key])){const n=this._object[this._key];if(yn(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return UI(this._raw,this._key)}}class fO{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function sn(e,t,n){return yn(e)?e:Ze(e)?new fO(e):bt(e)&&arguments.length>1?cC(e,t,n):F(e)}function cC(e,t,n){return new dO(e,t,n)}class hO{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new S4(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=D0-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Wn!==this)return K_(this,!0),!0}get value(){const t=this.dep.track();return G_(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function pO(e,t,n=!1){let s,a;return Ze(e)?s=e:(s=e.get,a=e.set),new hO(s,a,n)}const F2={},B2=new WeakMap;let lu;function vO(e,t=!1,n=lu){if(n){let s=B2.get(n);s||B2.set(n,s=[]),s.push(e)}}function mO(e,t,n=Qt){const{immediate:s,deep:a,once:o,scheduler:r,augmentJob:i,call:l}=n,c=_=>a?_:oo(_)||a===!1||a===0?Bi(_,1):Bi(_);let u,d,h,p,v=!1,m=!1;if(yn(e)?(d=()=>e.value,v=oo(e)):iu(e)?(d=()=>c(e),v=!0):Ae(e)?(m=!0,v=e.some(_=>iu(_)||oo(_)),d=()=>e.map(_=>{if(yn(_))return _.value;if(iu(_))return c(_);if(Ze(_))return l?l(_,2):_()})):Ze(e)?t?d=l?()=>l(e,2):e:d=()=>{if(h){zr();try{h()}finally{Hr()}}const _=lu;lu=u;try{return l?l(e,3,[p]):e(p)}finally{lu=_}}:d=en,t&&a){const _=d,x=a===!0?1/0:a;d=()=>Bi(_(),x)}const g=z_(),b=()=>{u.stop(),g&&g.active&&v4(g.effects,u)};if(o&&t){const _=t;t=(...x)=>{_(...x),b()}}let C=m?new Array(e.length).fill(F2):F2;const w=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const x=u.run();if(a||v||(m?x.some((k,T)=>Yl(k,C[T])):Yl(x,C))){h&&h();const k=lu;lu=u;try{const T=[x,C===F2?void 0:m&&C[0]===F2?[]:C,p];C=x,l?l(t,3,T):t(...T)}finally{lu=k}}}else u.run()};return i&&i(w),u=new W_(d),u.scheduler=r?()=>r(w,!1):w,p=_=>vO(_,!1,u),h=u.onStop=()=>{const _=B2.get(u);if(_){if(l)l(_,4);else for(const x of _)x();B2.delete(u)}},t?s?w(!0):C=u.run():r?r(w.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function Bi(e,t=1/0,n){if(t<=0||!bt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,yn(e))Bi(e.value,t,n);else if(Ae(e))for(let s=0;s{Bi(s,t,n)});else if(R0(e)){for(const s in e)Bi(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Bi(e[s],t,n)}return e}/** * @vue/runtime-core v3.5.28 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const V0=[];let T4=!1;function a3e(e,...t){if(T4)return;T4=!0,zr();const n=V0.length?V0[V0.length-1].component:null,s=n&&n.appContext.config.warnHandler,a=gO();if(s)cf(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 <${mS(n,o.type)}>`).join(` `),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push(` `,...bO(a)),console.warn(...o)}Hr(),T4=!1}function gO(){let e=V0[V0.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 bO(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[` `],...yO(n))}),t}function yO({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,a=` at <${mS(e.component,e.type,s)}`,o=">"+n;return e.props?[a,...wO(e.props),o]:[a+o]}function wO(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...uC(s,e[s]))}),n.length>3&&t.push(" ..."),t}function uC(e,t,n){return Xe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:yn(t)?(t=uC(e,pn(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ze(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=pn(t),n?t:[`${e}=`,t])}function cf(e,t,n,s){try{return s?e(...s):e()}catch(a){V2(a,t,n)}}function ar(e,t,n,s){if(Ze(e)){const a=cf(e,t,n,s);return a&&su(a)&&a.catch(o=>{V2(o,t,n)}),a}if(Ae(e)){const a=[];for(let o=0;o>>1,a=Ea[s],o=z0(a);o=z0(n)?Ea.push(e):Ea.splice(CO(t),0,e),e.flags|=1,fC()}}function fC(){z2||(z2=dC.then(vC))}function SO(e){Ae(e)?uf.push(...e):Jl&&e.id===-1?Jl.splice(df+1,0,e):e.flags&1||(uf.push(e),e.flags|=1),fC()}function hC(e,t,n=jr+1){for(;nz0(n)-z0(s));if(uf.length=0,Jl){Jl.push(...t);return}for(Jl=t,df=0;dfe.id==null?e.flags&2?-1:1/0:e.id;function vC(e){try{for(jr=0;jr{s._d&&J2(-1);const o=H2(t);let r;try{r=e(...a)}finally{H2(o),s._d&&J2(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Ct(e,t){if(qs===null)return e;const n=eg(qs),s=e.dirs||(e.dirs=[]);for(let a=0;a1)return n&&Ze(t)?t.call(s&&s.proxy):t}}const xO=Symbol.for("v-scx"),kO=()=>Ke(xO);function Wa(e,t){return P4(e,null,t)}function be(e,t,n){return P4(e,t,n)}function P4(e,t,n=Qt){const{immediate:s,deep:a,flush:o,once:r}=n,i=bs({},n),l=t&&s||!t&&o!=="post";let c;if(Z0){if(o==="sync"){const p=kO();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=en,p.resume=en,p.pause=en,p}}const u=ia;i.call=(p,v,m)=>ar(p,u,v,m);let d=!1;o==="post"?i.scheduler=p=>{ra(p,u&&u.suspense)}:o!=="sync"&&(d=!0,i.scheduler=(p,v)=>{v?p():M4(p)}),i.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=mO(e,t,i);return Z0&&(c?c.push(h):l&&h()),h}function EO(e,t,n){const s=this.proxy,a=Xe(e)?e.includes(".")?gC(s,e):()=>s[e]:e.bind(s,s);let o;Ze(t)?o=t:(o=t.handler,n=t);const r=J0(this),i=P4(a,o.bind(s),n);return r(),i}function gC(e,t){const n=t.split(".");return()=>{let s=e;for(let a=0;ae.__isTeleport,H0=e=>e&&(e.disabled||e.disabled===""),wC=e=>e&&(e.defer||e.defer===""),_C=e=>typeof SVGElement<"u"&&e instanceof SVGElement,CC=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,R4=(e,t)=>{const n=e&&e.to;return Xe(n)?t?t(n):null:n},SC={name:"Teleport",__isTeleport:!0,process(e,t,n,s,a,o,r,i,l,c){const{mc:u,pc:d,pbc:h,o:{insert:p,querySelector:v,createText:m,createComment:g}}=c,b=H0(t.props);let{shapeFlag:C,children:w,dynamicChildren:_}=t;if(e==null){const x=t.el=m(""),k=t.anchor=m("");p(x,n,s),p(k,n,s);const T=(O,R)=>{C&16&&u(w,O,R,a,o,r,i,l)},I=()=>{const O=t.target=R4(t.props,v),R=I4(O,t,m,p);O&&(r!=="svg"&&_C(O)?r="svg":r!=="mathml"&&CC(O)&&(r="mathml"),a&&a.isCE&&(a.ce._teleportTargets||(a.ce._teleportTargets=new Set)).add(O),b||(T(O,R),j2(t,!1)))};b&&(T(n,k),j2(t,!0)),wC(t.props)?(t.el.__isMounted=!1,ra(()=>{I(),delete t.el.__isMounted},o)):I()}else{if(wC(t.props)&&e.el.__isMounted===!1){ra(()=>{SC.process(e,t,n,s,a,o,r,i,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const x=t.anchor=e.anchor,k=t.target=e.target,T=t.targetAnchor=e.targetAnchor,I=H0(e.props),O=I?n:k,R=I?x:T;if(r==="svg"||_C(k)?r="svg":(r==="mathml"||CC(k))&&(r="mathml"),_?(h(e.dynamicChildren,_,O,a,o,r,i),G4(e,t,!0)):l||d(e,t,O,R,a,o,r,i,!1),b)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):W2(t,n,x,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=R4(t.props,v);$&&W2(t,$,null,c,0)}else I&&W2(t,k,T,c,1);j2(t,b)}},remove(e,t,n,{um:s,o:{remove:a}},o){const{shapeFlag:r,children:i,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=e;if(d&&(a(c),a(u)),o&&a(l),r&16){const p=o||!H0(h);for(let v=0;v{e.isMounted=!0}),tn(()=>{e.isUnmounting=!0}),e}const Oo=[Function,Array],kC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Oo,onEnter:Oo,onAfterEnter:Oo,onEnterCancelled:Oo,onBeforeLeave:Oo,onLeave:Oo,onAfterLeave:Oo,onLeaveCancelled:Oo,onBeforeAppear:Oo,onAppear:Oo,onAfterAppear:Oo,onAppearCancelled:Oo},EC=e=>{const t=e.subTree;return t.component?EC(t.component):t},MO={name:"BaseTransition",props:kC,setup(e,{slots:t}){const n=Mt(),s=xC();return()=>{const a=t.default&&L4(t.default(),!0);if(!a||!a.length)return;const o=AC(a),r=pn(e),{mode:i}=r;if(s.isLeaving)return O4(o);const l=MC(o);if(!l)return O4(o);let c=j0(l,r,s,n,d=>c=d);l.type!==Gn&&uu(l,c);let u=n.subTree&&MC(n.subTree);if(u&&u.type!==Gn&&!hu(u,l)&&EC(n).type!==Gn){let d=j0(u,r,s,n);if(uu(u,d),i==="out-in"&&l.type!==Gn)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},O4(o);i==="in-out"&&l.type!==Gn?d.delayLeave=(h,p,v)=>{const m=TC(s,u);m[String(u.key)]=u,h[Kr]=()=>{p(),h[Kr]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{v(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function AC(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Gn){t=n;break}}return t}const PO=MO;function TC(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function j0(e,t,n,s,a){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:g,onAppear:b,onAfterAppear:C,onAppearCancelled:w}=t,_=String(e.key),x=TC(n,e),k=(O,R)=>{O&&ar(O,s,9,R)},T=(O,R)=>{const $=R[1];k(O,R),Ae(O)?O.every(M=>M.length<=1)&&$():O.length<=1&&$()},I={mode:r,persisted:i,beforeEnter(O){let R=l;if(!n.isMounted)if(o)R=g||l;else return;O[Kr]&&O[Kr](!0);const $=x[_];$&&hu(e,$)&&$.el[Kr]&&$.el[Kr](),k(R,[O])},enter(O){let R=c,$=u,M=d;if(!n.isMounted)if(o)R=b||c,$=C||u,M=w||d;else return;let B=!1;O[W0]=J=>{B||(B=!0,J?k(M,[O]):k($,[O]),I.delayedLeave&&I.delayedLeave(),O[W0]=void 0)};const U=O[W0].bind(null,!1);R?T(R,[O,U]):U()},leave(O,R){const $=String(e.key);if(O[W0]&&O[W0](!0),n.isUnmounting)return R();k(h,[O]);let M=!1;O[Kr]=U=>{M||(M=!0,R(),U?k(m,[O]):k(v,[O]),O[Kr]=void 0,x[$]===e&&delete x[$])};const B=O[Kr].bind(null,!1);x[$]=e,p?T(p,[O,B]):B()},clone(O){const R=j0(O,t,n,s,a);return a&&a(R),R}};return I}function O4(e){if(U2(e))return e=Ur(e),e.children=null,e}function MC(e){if(!U2(e))return yC(e.type)&&e.children?AC(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ze(n.default))return n.default()}}function uu(e,t){e.shapeFlag&6&&e.component?(e.transition=t,uu(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function L4(e,t=!1,n){let s=[],a=0;for(let o=0;o1)for(let o=0;oK0(m,t&&(Ae(t)?t[g]:t),n,s,a));return}if(ff(s)&&!a){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&K0(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?eg(s.component):s.el,r=a?null:o,{i,r:l}=e,c=t&&t.r,u=i.refs===Qt?i.refs={}:i.refs,d=i.setupState,h=pn(d),p=d===Qt?I_:m=>RC(u,m)?!1:Gt(h,m),v=(m,g)=>!(g&&RC(u,g));if(c!=null&&c!==l){if(IC(t),Xe(c))u[c]=null,p(c)&&(d[c]=null);else if(yn(c)){const m=t;v(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(Ze(l))cf(l,i,12,[r,u]);else{const m=Xe(l),g=yn(l);if(m||g){const b=()=>{if(e.f){const C=m?p(l)?d[l]:u[l]:v()||!e.k?l.value:u[e.k];if(a)Ae(C)&&v4(C,o);else if(Ae(C))C.includes(o)||C.push(o);else if(m)u[l]=[o],p(l)&&(d[l]=u[l]);else{const w=[o];v(l,e.k)&&(l.value=w),e.k&&(u[e.k]=w)}}else m?(u[l]=r,p(l)&&(d[l]=r)):g&&(v(l,e.k)&&(l.value=r),e.k&&(u[e.k]=r))};if(r){const C=()=>{b(),K2.delete(e)};C.id=-1,K2.set(e,C),ra(C,n)}else IC(e),b()}}}function IC(e){const t=K2.get(e);t&&(t.flags|=8,K2.delete(e))}T2().requestIdleCallback,T2().cancelIdleCallback;const ff=e=>!!e.type.__asyncLoader,U2=e=>e.type.__isKeepAlive;function U0(e,t){OC(e,"a",t)}function N4(e,t){OC(e,"da",t)}function OC(e,t,n=ia){const s=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(q2(t,s,n),n){let a=n.parent;for(;a&&a.parent;)U2(a.parent.vnode)&&RO(s,t,n,a),a=a.parent}}function RO(e,t,n,s){const a=q2(t,e,s,!0);du(()=>{v4(s[t],a)},n)}function q2(e,t,n=ia,s=!1){if(n){const a=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{zr();const i=J0(n),l=ar(t,n,e,r);return i(),Hr(),l});return s?a.unshift(o):a.push(o),o}}const Vi=e=>(t,n=ia)=>{(!Z0||e==="sp")&&q2(e,(...s)=>t(...s),n)},G2=Vi("bm"),Pt=Vi("m"),$4=Vi("bu"),or=Vi("u"),tn=Vi("bum"),du=Vi("um"),IO=Vi("sp"),OO=Vi("rtg"),LO=Vi("rtc");function NO(e,t=ia){q2("ec",e,t)}const D4="components",$O="directives";function Ge(e,t){return B4(D4,e,!0,t)||e}const LC=Symbol.for("v-ndc");function kt(e){return Xe(e)?B4(D4,e,!1)||e:e||LC}function F4(e){return B4($O,e)}function B4(e,t,n=!0,s=!1){const a=qs||ia;if(a){const o=a.type;if(e===D4){const i=vS(o,!1);if(i&&(i===t||i===ka(t)||i===O0(ka(t))))return o}const r=NC(a[e]||o[e],t)||NC(a.appContext[e],t);return!r&&s?o:r}}function NC(e,t){return e&&(e[t]||e[ka(t)]||e[O0(ka(t))])}function Et(e,t,n,s){let a;const o=n,r=Ae(e);if(r||Xe(e)){const i=r&&iu(e);let l=!1,c=!1;i&&(l=!oo(e),c=Fi(e),e=P2(e)),a=new Array(e.length);for(let u=0,d=e.length;ut(i,l,void 0,o));else{const i=Object.keys(e);a=new Array(i.length);for(let l=0,c=i.length;l{const o=s.fn(...a);return o&&(o.key=s.key),o}:s.fn)}return e}function ue(e,t,n={},s,a){if(qs.ce||qs.parent&&ff(qs.parent)&&qs.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),S(),le(He,null,[W("slot",n,s&&s())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),S();const r=o&&$C(o(n)),i=n.key||r&&r.key,l=le(He,{key:(i&&!tr(i)?i:`_${t}`)+(!r&&s?"_fb":"")},r||(s?s():[]),r&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function $C(e){return e.some(t=>vn(t)?!(t.type===Gn||t.type===He&&!$C(t.children)):!0)?e:null}function DO(e,t){const n={};for(const s in e)n[L0(s)]=e[s];return n}const V4=e=>e?dS(e)?eg(e):V4(e.parent):null,q0=bs(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>V4(e.parent),$root:e=>V4(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zC(e),$forceUpdate:e=>e.f||(e.f=()=>{M4(e.update)}),$nextTick:e=>e.n||(e.n=ze.bind(e.proxy)),$watch:e=>EO.bind(e)}),z4=(e,t)=>e!==Qt&&!e.__isScriptSetup&&Gt(e,t),FO={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:a,props:o,accessCache:r,type:i,appContext:l}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else{if(z4(s,t))return r[t]=1,s[t];if(a!==Qt&&Gt(a,t))return r[t]=2,a[t];if(Gt(o,t))return r[t]=3,o[t];if(n!==Qt&&Gt(n,t))return r[t]=4,n[t];H4&&(r[t]=0)}}const c=q0[t];let u,d;if(c)return t==="$attrs"&&oa(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(n!==Qt&&Gt(n,t))return r[t]=4,n[t];if(d=l.config.globalProperties,Gt(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:a,ctx:o}=e;return z4(a,t)?(a[t]=n,!0):s!==Qt&&Gt(s,t)?(s[t]=n,!0):Gt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:a,props:o,type:r}},i){let l;return!!(n[i]||e!==Qt&&i[0]!=="$"&&Gt(e,i)||z4(t,i)||Gt(o,i)||Gt(s,i)||Gt(q0,i)||Gt(a.config.globalProperties,i)||(l=r.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Gt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function jn(){return DC().slots}function zi(){return DC().attrs}function DC(e){const t=Mt();return t.setupContext||(t.setupContext=pS(t))}function FC(e){return Ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let H4=!0;function BO(e){const t=zC(e),n=e.proxy,s=e.ctx;H4=!1,t.beforeCreate&&BC(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:r,watch:i,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:p,updated:v,activated:m,deactivated:g,beforeDestroy:b,beforeUnmount:C,destroyed:w,unmounted:_,render:x,renderTracked:k,renderTriggered:T,errorCaptured:I,serverPrefetch:O,expose:R,inheritAttrs:$,components:M,directives:B,filters:U}=t;if(c&&VO(c,s,null),r)for(const L in r){const N=r[L];Ze(N)&&(s[L]=N.bind(n))}if(a){const L=a.call(n,n);bt(L)&&(e.data=Yt(L))}if(H4=!0,o)for(const L in o){const N=o[L],V=Ze(N)?N.bind(n,n):Ze(N.get)?N.get.bind(n,n):en,z=!Ze(N)&&Ze(N.set)?N.set.bind(n):en,q=E({get:V,set:z});Object.defineProperty(s,L,{enumerable:!0,configurable:!0,get:()=>q.value,set:Q=>q.value=Q})}if(i)for(const L in i)VC(i[L],s,n,L);if(l){const L=Ze(l)?l.call(n):l;Reflect.ownKeys(L).forEach(N=>{Nt(N,L[N])})}u&&BC(u,e,"c");function Y(L,N){Ae(N)?N.forEach(V=>L(V.bind(n))):N&&L(N.bind(n))}if(Y(G2,d),Y(Pt,h),Y($4,p),Y(or,v),Y(U0,m),Y(N4,g),Y(NO,I),Y(LO,k),Y(OO,T),Y(tn,C),Y(du,_),Y(IO,O),Ae(R))if(R.length){const L=e.exposed||(e.exposed={});R.forEach(N=>{Object.defineProperty(L,N,{get:()=>n[N],set:V=>n[N]=V,enumerable:!0})})}else e.exposed||(e.exposed={});x&&e.render===en&&(e.render=x),$!=null&&(e.inheritAttrs=$),M&&(e.components=M),B&&(e.directives=B),O&&PC(e)}function VO(e,t,n=en){Ae(e)&&(e=W4(e));for(const s in e){const a=e[s];let o;bt(a)?"default"in a?o=Ke(a.from||s,a.default,!0):o=Ke(a.from||s):o=Ke(a),yn(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function BC(e,t,n){ar(Ae(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function VC(e,t,n,s){let a=s.includes(".")?gC(n,s):()=>n[s];if(Xe(e)){const o=t[e];Ze(o)&&be(a,o)}else if(Ze(e))be(a,e.bind(n));else if(bt(e))if(Ae(e))e.forEach(o=>VC(o,t,n,s));else{const o=Ze(e.handler)?e.handler.bind(n):t[e.handler];Ze(o)&&be(a,o,e)}}function zC(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,i=o.get(t);let l;return i?l=i:!a.length&&!n&&!s?l=t:(l={},a.length&&a.forEach(c=>Y2(l,c,r,!0)),Y2(l,t,r)),bt(t)&&o.set(t,l),l}function Y2(e,t,n,s=!1){const{mixins:a,extends:o}=t;o&&Y2(e,o,n,!0),a&&a.forEach(r=>Y2(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const i=zO[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const zO={data:HC,props:WC,emits:WC,methods:G0,computed:G0,beforeCreate:Ta,created:Ta,beforeMount:Ta,mounted:Ta,beforeUpdate:Ta,updated:Ta,beforeDestroy:Ta,beforeUnmount:Ta,destroyed:Ta,unmounted:Ta,activated:Ta,deactivated:Ta,errorCaptured:Ta,serverPrefetch:Ta,components:G0,directives:G0,watch:WO,provide:HC,inject:HO};function HC(e,t){return t?e?function(){return bs(Ze(e)?e.call(this,this):e,Ze(t)?t.call(this,this):t)}:t:e}function HO(e,t){return G0(W4(e),W4(t))}function W4(e){if(Ae(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ka(t)}Modifiers`]||e[`${Li(t)}Modifiers`];function qO(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Qt;let a=n;const o=t.startsWith("update:"),r=o&&UO(s,t.slice(7));r&&(r.trim&&(a=n.map(u=>Xe(u)?u.trim():u)),r.number&&(a=n.map(m4)));let i,l=s[i=L0(t)]||s[i=L0(ka(t))];!l&&o&&(l=s[i=L0(Li(t))]),l&&ar(l,e,6,a);const c=s[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,ar(c,e,6,a)}}const GO=new WeakMap;function KC(e,t,n=!1){const s=n?GO:t.emitsCache,a=s.get(e);if(a!==void 0)return a;const o=e.emits;let r={},i=!1;if(!Ze(e)){const l=c=>{const u=KC(c,t,!0);u&&(i=!0,bs(r,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!i?(bt(e)&&s.set(e,null),null):(Ae(o)?o.forEach(l=>r[l]=null):bs(r,o),bt(e)&&s.set(e,r),r)}function X2(e,t){return!e||!S2(t)?!1:(t=t.slice(2).replace(/Once$/,""),Gt(e,t[0].toLowerCase()+t.slice(1))||Gt(e,Li(t))||Gt(e,t))}function o3e(){}function UC(e){const{type:t,vnode:n,proxy:s,withProxy:a,propsOptions:[o],slots:r,attrs:i,emit:l,render:c,renderCache:u,props:d,data:h,setupState:p,ctx:v,inheritAttrs:m}=e,g=H2(e);let b,C;try{if(n.shapeFlag&4){const _=a||s,x=_;b=qr(c.call(x,_,u,d,p,h,v)),C=i}else{const _=t;b=qr(_.length>1?_(d,{attrs:i,slots:r,emit:l}):_(d,null)),C=t.props?i:YO(i)}}catch(_){Y0.length=0,V2(_,e,1),b=W(Gn)}let w=b;if(C&&m!==!1){const _=Object.keys(C),{shapeFlag:x}=w;_.length&&x&7&&(o&&_.some(p4)&&(C=XO(C,o)),w=Ur(w,C,!1,!0))}return n.dirs&&(w=Ur(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&uu(w,n.transition),b=w,H2(g),b}const YO=e=>{let t;for(const n in e)(n==="class"||n==="style"||S2(n))&&((t||(t={}))[n]=e[n]);return t},XO=(e,t)=>{const n={};for(const s in e)(!p4(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function JO(e,t,n){const{props:s,children:a,component:o}=e,{props:r,children:i,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?qC(s,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;dObject.create(YC),JC=e=>Object.getPrototypeOf(e)===YC;function QO(e,t,n,s=!1){const a={},o=XC();e.propsDefaults=Object.create(null),ZC(e,t,a,o);for(const r in e.propsOptions[0])r in a||(a[r]=void 0);n?e.props=s?a:L2(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function eL(e,t,n,s){const{props:a,attrs:o,vnode:{patchFlag:r}}=e,i=pn(a),[l]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[h,p]=QC(d,t,!0);bs(r,h),p&&i.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return bt(e)&&s.set(e,er),er;if(Ae(o))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",U4=e=>Ae(e)?e.map(qr):[qr(e)],nL=(e,t,n)=>{if(t._n)return t;const s=X((...a)=>U4(t(...a)),n);return s._c=!1,s},tS=(e,t,n)=>{const s=e._ctx;for(const a in e){if(K4(a))continue;const o=e[a];if(Ze(o))t[a]=nL(a,o,s);else if(o!=null){const r=U4(o);t[a]=()=>r}}},nS=(e,t)=>{const n=U4(t);e.slots.default=()=>n},sS=(e,t,n)=>{for(const s in t)(n||!K4(s))&&(e[s]=t[s])},sL=(e,t,n)=>{const s=e.slots=XC();if(e.vnode.shapeFlag&32){const a=t._;a?(sS(s,t,n),n&&L_(s,"_",a,!0)):tS(t,s)}else t&&nS(e,t)},aL=(e,t,n)=>{const{vnode:s,slots:a}=e;let o=!0,r=Qt;if(s.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:sS(a,t,n):(o=!t.$stable,tS(t,a)),r=t}else t&&(nS(e,t),r={default:1});if(o)for(const i in a)!K4(i)&&r[i]==null&&delete a[i]},ra=cL;function oL(e){return rL(e)}function rL(e,t){const n=T2();n.__VUE__=!0;const{insert:s,remove:a,patchProp:o,createElement:r,createText:i,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:p=en,insertStaticContent:v}=e,m=(H,ae,de,ye=null,_e=null,Se=null,Le=void 0,De=null,$e=!!ae.dynamicChildren)=>{if(H===ae)return;H&&!hu(H,ae)&&(ye=te(H),Q(H,_e,Se,!0),H=null),ae.patchFlag===-2&&($e=!1,ae.dynamicChildren=null);const{type:Ce,ref:Oe,shapeFlag:Ie}=ae;switch(Ce){case pf:g(H,ae,de,ye);break;case Gn:b(H,ae,de,ye);break;case Y4:H==null&&C(ae,de,ye,Le);break;case He:M(H,ae,de,ye,_e,Se,Le,De,$e);break;default:Ie&1?x(H,ae,de,ye,_e,Se,Le,De,$e):Ie&6?B(H,ae,de,ye,_e,Se,Le,De,$e):(Ie&64||Ie&128)&&Ce.process(H,ae,de,ye,_e,Se,Le,De,$e,ce)}Oe!=null&&_e?K0(Oe,H&&H.ref,Se,ae||H,!ae):Oe==null&&H&&H.ref!=null&&K0(H.ref,null,Se,H,!0)},g=(H,ae,de,ye)=>{if(H==null)s(ae.el=i(ae.children),de,ye);else{const _e=ae.el=H.el;ae.children!==H.children&&c(_e,ae.children)}},b=(H,ae,de,ye)=>{H==null?s(ae.el=l(ae.children||""),de,ye):ae.el=H.el},C=(H,ae,de,ye)=>{[H.el,H.anchor]=v(H.children,ae,de,ye,H.el,H.anchor)},w=({el:H,anchor:ae},de,ye)=>{let _e;for(;H&&H!==ae;)_e=h(H),s(H,de,ye),H=_e;s(ae,de,ye)},_=({el:H,anchor:ae})=>{let de;for(;H&&H!==ae;)de=h(H),a(H),H=de;a(ae)},x=(H,ae,de,ye,_e,Se,Le,De,$e)=>{if(ae.type==="svg"?Le="svg":ae.type==="math"&&(Le="mathml"),H==null)k(ae,de,ye,_e,Se,Le,De,$e);else{const Ce=H.el&&H.el._isVueCE?H.el:null;try{Ce&&Ce._beginPatch(),O(H,ae,_e,Se,Le,De,$e)}finally{Ce&&Ce._endPatch()}}},k=(H,ae,de,ye,_e,Se,Le,De)=>{let $e,Ce;const{props:Oe,shapeFlag:Ie,transition:We,dirs:nt}=H;if($e=H.el=r(H.type,Se,Oe&&Oe.is,Oe),Ie&8?u($e,H.children):Ie&16&&I(H.children,$e,null,ye,_e,q4(H,Se),Le,De),nt&&cu(H,null,ye,"created"),T($e,H,H.scopeId,Le,ye),Oe){for(const Fe in Oe)Fe!=="value"&&!I0(Fe)&&o($e,Fe,null,Oe[Fe],Se,ye);"value"in Oe&&o($e,"value",null,Oe.value,Se),(Ce=Oe.onVnodeBeforeMount)&&Gr(Ce,ye,H)}nt&&cu(H,null,ye,"beforeMount");const dt=iL(_e,We);dt&&We.beforeEnter($e),s($e,ae,de),((Ce=Oe&&Oe.onVnodeMounted)||dt||nt)&&ra(()=>{Ce&&Gr(Ce,ye,H),dt&&We.enter($e),nt&&cu(H,null,ye,"mounted")},_e)},T=(H,ae,de,ye,_e)=>{if(de&&p(H,de),ye)for(let Se=0;Se{for(let Ce=$e;Ce{const De=ae.el=H.el;let{patchFlag:$e,dynamicChildren:Ce,dirs:Oe}=ae;$e|=H.patchFlag&16;const Ie=H.props||Qt,We=ae.props||Qt;let nt;if(de&&fu(de,!1),(nt=We.onVnodeBeforeUpdate)&&Gr(nt,de,ae,H),Oe&&cu(ae,H,de,"beforeUpdate"),de&&fu(de,!0),(Ie.innerHTML&&We.innerHTML==null||Ie.textContent&&We.textContent==null)&&u(De,""),Ce?R(H.dynamicChildren,Ce,De,de,ye,q4(ae,_e),Se):Le||N(H,ae,De,null,de,ye,q4(ae,_e),Se,!1),$e>0){if($e&16)$(De,Ie,We,de,_e);else if($e&2&&Ie.class!==We.class&&o(De,"class",null,We.class,_e),$e&4&&o(De,"style",Ie.style,We.style,_e),$e&8){const dt=ae.dynamicProps;for(let Fe=0;Fe{nt&&Gr(nt,de,ae,H),Oe&&cu(ae,H,de,"updated")},ye)},R=(H,ae,de,ye,_e,Se,Le)=>{for(let De=0;De{if(ae!==de){if(ae!==Qt)for(const Se in ae)!I0(Se)&&!(Se in de)&&o(H,Se,ae[Se],null,_e,ye);for(const Se in de){if(I0(Se))continue;const Le=de[Se],De=ae[Se];Le!==De&&Se!=="value"&&o(H,Se,De,Le,_e,ye)}"value"in de&&o(H,"value",ae.value,de.value,_e)}},M=(H,ae,de,ye,_e,Se,Le,De,$e)=>{const Ce=ae.el=H?H.el:i(""),Oe=ae.anchor=H?H.anchor:i("");let{patchFlag:Ie,dynamicChildren:We,slotScopeIds:nt}=ae;nt&&(De=De?De.concat(nt):nt),H==null?(s(Ce,de,ye),s(Oe,de,ye),I(ae.children||[],de,Oe,_e,Se,Le,De,$e)):Ie>0&&Ie&64&&We&&H.dynamicChildren&&H.dynamicChildren.length===We.length?(R(H.dynamicChildren,We,de,_e,Se,Le,De),(ae.key!=null||_e&&ae===_e.subTree)&&G4(H,ae,!0)):N(H,ae,de,Oe,_e,Se,Le,De,$e)},B=(H,ae,de,ye,_e,Se,Le,De,$e)=>{ae.slotScopeIds=De,H==null?ae.shapeFlag&512?_e.ctx.activate(ae,de,ye,Le,$e):U(ae,de,ye,_e,Se,Le,$e):J(H,ae,$e)},U=(H,ae,de,ye,_e,Se,Le)=>{const De=H.component=pL(H,ye,_e);if(U2(H)&&(De.ctx.renderer=ce),vL(De,!1,Le),De.asyncDep){if(_e&&_e.registerDep(De,Y,Le),!H.el){const $e=De.subTree=W(Gn);b(null,$e,ae,de),H.placeholder=$e.el}}else Y(De,H,ae,de,_e,Se,Le)},J=(H,ae,de)=>{const ye=ae.component=H.component;if(JO(H,ae,de))if(ye.asyncDep&&!ye.asyncResolved){L(ye,ae,de);return}else ye.next=ae,ye.update();else ae.el=H.el,ye.vnode=ae},Y=(H,ae,de,ye,_e,Se,Le)=>{const De=()=>{if(H.isMounted){let{next:Ie,bu:We,u:nt,parent:dt,vnode:Fe}=H;{const ct=aS(H);if(ct){Ie&&(Ie.el=Fe.el,L(H,Ie,Le)),ct.asyncDep.then(()=>{ra(()=>{H.isUnmounted||Ce()},_e)});return}}let Be=Ie,et;fu(H,!1),Ie?(Ie.el=Fe.el,L(H,Ie,Le)):Ie=Fe,We&&A2(We),(et=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&Gr(et,dt,Ie,Fe),fu(H,!0);const Wt=UC(H),qt=H.subTree;H.subTree=Wt,m(qt,Wt,d(qt.el),te(qt),H,_e,Se),Ie.el=Wt.el,Be===null&&ZO(H,Wt.el),nt&&ra(nt,_e),(et=Ie.props&&Ie.props.onVnodeUpdated)&&ra(()=>Gr(et,dt,Ie,Fe),_e)}else{let Ie;const{el:We,props:nt}=ae,{bm:dt,m:Fe,parent:Be,root:et,type:Wt}=H,qt=ff(ae);fu(H,!1),dt&&A2(dt),!qt&&(Ie=nt&&nt.onVnodeBeforeMount)&&Gr(Ie,Be,ae),fu(H,!0);{et.ce&&et.ce._hasShadowRoot()&&et.ce._injectChildStyle(Wt);const ct=H.subTree=UC(H);m(null,ct,de,ye,H,_e,Se),ae.el=ct.el}if(Fe&&ra(Fe,_e),!qt&&(Ie=nt&&nt.onVnodeMounted)){const ct=ae;ra(()=>Gr(Ie,Be,ct),_e)}(ae.shapeFlag&256||Be&&ff(Be.vnode)&&Be.vnode.shapeFlag&256)&&H.a&&ra(H.a,_e),H.isMounted=!0,ae=de=ye=null}};H.scope.on();const $e=H.effect=new W_(De);H.scope.off();const Ce=H.update=$e.run.bind($e),Oe=H.job=$e.runIfDirty.bind($e);Oe.i=H,Oe.id=H.uid,$e.scheduler=()=>M4(Oe),fu(H,!0),Ce()},L=(H,ae,de)=>{ae.component=H;const ye=H.vnode.props;H.vnode=ae,H.next=null,eL(H,ae.props,ye,de),aL(H,ae.children,de),zr(),hC(H),Hr()},N=(H,ae,de,ye,_e,Se,Le,De,$e=!1)=>{const Ce=H&&H.children,Oe=H?H.shapeFlag:0,Ie=ae.children,{patchFlag:We,shapeFlag:nt}=ae;if(We>0){if(We&128){z(Ce,Ie,de,ye,_e,Se,Le,De,$e);return}else if(We&256){V(Ce,Ie,de,ye,_e,Se,Le,De,$e);return}}nt&8?(Oe&16&&pe(Ce,_e,Se),Ie!==Ce&&u(de,Ie)):Oe&16?nt&16?z(Ce,Ie,de,ye,_e,Se,Le,De,$e):pe(Ce,_e,Se,!0):(Oe&8&&u(de,""),nt&16&&I(Ie,de,ye,_e,Se,Le,De,$e))},V=(H,ae,de,ye,_e,Se,Le,De,$e)=>{H=H||er,ae=ae||er;const Ce=H.length,Oe=ae.length,Ie=Math.min(Ce,Oe);let We;for(We=0;WeOe?pe(H,_e,Se,!0,!1,Ie):I(ae,de,ye,_e,Se,Le,De,$e,Ie)},z=(H,ae,de,ye,_e,Se,Le,De,$e)=>{let Ce=0;const Oe=ae.length;let Ie=H.length-1,We=Oe-1;for(;Ce<=Ie&&Ce<=We;){const nt=H[Ce],dt=ae[Ce]=$e?Wi(ae[Ce]):qr(ae[Ce]);if(hu(nt,dt))m(nt,dt,de,null,_e,Se,Le,De,$e);else break;Ce++}for(;Ce<=Ie&&Ce<=We;){const nt=H[Ie],dt=ae[We]=$e?Wi(ae[We]):qr(ae[We]);if(hu(nt,dt))m(nt,dt,de,null,_e,Se,Le,De,$e);else break;Ie--,We--}if(Ce>Ie){if(Ce<=We){const nt=We+1,dt=ntWe)for(;Ce<=Ie;)Q(H[Ce],_e,Se,!0),Ce++;else{const nt=Ce,dt=Ce,Fe=new Map;for(Ce=dt;Ce<=We;Ce++){const xe=ae[Ce]=$e?Wi(ae[Ce]):qr(ae[Ce]);xe.key!=null&&Fe.set(xe.key,Ce)}let Be,et=0;const Wt=We-dt+1;let qt=!1,ct=0;const gt=new Array(Wt);for(Ce=0;Ce=Wt){Q(xe,_e,Se,!0);continue}let Ue;if(xe.key!=null)Ue=Fe.get(xe.key);else for(Be=dt;Be<=We;Be++)if(gt[Be-dt]===0&&hu(xe,ae[Be])){Ue=Be;break}Ue===void 0?Q(xe,_e,Se,!0):(gt[Ue-dt]=Ce+1,Ue>=ct?ct=Ue:qt=!0,m(xe,ae[Ue],de,null,_e,Se,Le,De,$e),et++)}const Ot=qt?lL(gt):er;for(Be=Ot.length-1,Ce=Wt-1;Ce>=0;Ce--){const xe=dt+Ce,Ue=ae[xe],we=ae[xe+1],Ye=xe+1{const{el:Se,type:Le,transition:De,children:$e,shapeFlag:Ce}=H;if(Ce&6){q(H.component.subTree,ae,de,ye);return}if(Ce&128){H.suspense.move(ae,de,ye);return}if(Ce&64){Le.move(H,ae,de,ce);return}if(Le===He){s(Se,ae,de);for(let Ie=0;Ie<$e.length;Ie++)q($e[Ie],ae,de,ye);s(H.anchor,ae,de);return}if(Le===Y4){w(H,ae,de);return}if(ye!==2&&Ce&1&&De)if(ye===0)De.beforeEnter(Se),s(Se,ae,de),ra(()=>De.enter(Se),_e);else{const{leave:Ie,delayLeave:We,afterLeave:nt}=De,dt=()=>{H.ctx.isUnmounted?a(Se):s(Se,ae,de)},Fe=()=>{Se._isLeaving&&Se[Kr](!0),Ie(Se,()=>{dt(),nt&&nt()})};We?We(Se,dt,Fe):Fe()}else s(Se,ae,de)},Q=(H,ae,de,ye=!1,_e=!1)=>{const{type:Se,props:Le,ref:De,children:$e,dynamicChildren:Ce,shapeFlag:Oe,patchFlag:Ie,dirs:We,cacheIndex:nt}=H;if(Ie===-2&&(_e=!1),De!=null&&(zr(),K0(De,null,de,H,!0),Hr()),nt!=null&&(ae.renderCache[nt]=void 0),Oe&256){ae.ctx.deactivate(H);return}const dt=Oe&1&&We,Fe=!ff(H);let Be;if(Fe&&(Be=Le&&Le.onVnodeBeforeUnmount)&&Gr(Be,ae,H),Oe&6)se(H.component,de,ye);else{if(Oe&128){H.suspense.unmount(de,ye);return}dt&&cu(H,null,ae,"beforeUnmount"),Oe&64?H.type.remove(H,ae,de,ce,ye):Ce&&!Ce.hasOnce&&(Se!==He||Ie>0&&Ie&64)?pe(Ce,ae,de,!1,!0):(Se===He&&Ie&384||!_e&&Oe&16)&&pe($e,ae,de),ye&&K(H)}(Fe&&(Be=Le&&Le.onVnodeUnmounted)||dt)&&ra(()=>{Be&&Gr(Be,ae,H),dt&&cu(H,null,ae,"unmounted")},de)},K=H=>{const{type:ae,el:de,anchor:ye,transition:_e}=H;if(ae===He){ee(de,ye);return}if(ae===Y4){_(H);return}const Se=()=>{a(de),_e&&!_e.persisted&&_e.afterLeave&&_e.afterLeave()};if(H.shapeFlag&1&&_e&&!_e.persisted){const{leave:Le,delayLeave:De}=_e,$e=()=>Le(de,Se);De?De(H.el,Se,$e):$e()}else Se()},ee=(H,ae)=>{let de;for(;H!==ae;)de=h(H),a(H),H=de;a(ae)},se=(H,ae,de)=>{const{bum:ye,scope:_e,job:Se,subTree:Le,um:De,m:$e,a:Ce}=H;oS($e),oS(Ce),ye&&A2(ye),_e.stop(),Se&&(Se.flags|=8,Q(Le,H,ae,de)),De&&ra(De,ae),ra(()=>{H.isUnmounted=!0},ae)},pe=(H,ae,de,ye=!1,_e=!1,Se=0)=>{for(let Le=Se;Le{if(H.shapeFlag&6)return te(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const ae=h(H.anchor||H.el),de=ae&&ae[bC];return de?h(de):ae};let fe=!1;const ve=(H,ae,de)=>{let ye;H==null?ae._vnode&&(Q(ae._vnode,null,null,!0),ye=ae._vnode.component):m(ae._vnode||null,H,ae,null,null,null,de),ae._vnode=H,fe||(fe=!0,hC(ye),pC(),fe=!1)},ce={p:m,um:Q,m:q,r:K,mt:U,mc:I,pc:N,pbc:R,n:te,o:e};return{render:ve,hydrate:void 0,createApp:KO(ve)}}function q4({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function fu({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function iL(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function G4(e,t,n=!1){const s=e.children,a=t.children;if(Ae(s)&&Ae(a))for(let o=0;o>1,e[n[i]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function aS(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:aS(t)}function oS(e){if(e)for(let t=0;te.__isSuspense;function cL(e,t){t&&t.pendingBranch?Ae(e)?t.effects.push(...e):t.effects.push(e):SO(e)}const He=Symbol.for("v-fgt"),pf=Symbol.for("v-txt"),Gn=Symbol.for("v-cmt"),Y4=Symbol.for("v-stc"),Y0=[];let ro=null;function S(e=!1){Y0.push(ro=e?null:[])}function uL(){Y0.pop(),ro=Y0[Y0.length-1]||null}let X0=1;function J2(e,t=!1){X0+=e,e<0&&ro&&t&&(ro.hasOnce=!0)}function lS(e){return e.dynamicChildren=X0>0?ro||er:null,uL(),X0>0&&ro&&ro.push(e),e}function P(e,t,n,s,a,o){return lS(A(e,t,n,s,a,o,!0))}function le(e,t,n,s,a){return lS(W(e,t,n,s,a,!0))}function vn(e){return e?e.__v_isVNode===!0:!1}function hu(e,t){return e.type===t.type&&e.key===t.key}const cS=({key:e})=>e??null,Z2=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Xe(e)||yn(e)||Ze(e)?{i:qs,r:e,k:t,f:!!n}:e:null);function A(e,t=null,n=null,s=0,a=null,o=e===He?0:1,r=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cS(t),ref:t&&Z2(t),scopeId:mC,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:qs};return i?(X4(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Xe(n)?8:16),X0>0&&!r&&ro&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&ro.push(l),l}const W=dL;function dL(e,t=null,n=null,s=0,a=null,o=!1){if((!e||e===LC)&&(e=Gn),vn(e)){const i=Ur(e,t,!0);return n&&X4(i,n),X0>0&&!o&&ro&&(i.shapeFlag&6?ro[ro.indexOf(e)]=i:ro.push(i)),i.patchFlag=-2,i}if(wL(e)&&(e=e.__vccOpts),t){t=Hi(t);let{class:i,style:l}=t;i&&!Xe(i)&&(t.class=D(i)),bt(l)&&($2(l)&&!Ae(l)&&(l=bs({},l)),t.style=Qe(l))}const r=Xe(e)?1:iS(e)?128:yC(e)?64:bt(e)?4:Ze(e)?2:0;return A(e,t,n,s,a,r,o,!0)}function Hi(e){return e?$2(e)||JC(e)?bs({},e):e:null}function Ur(e,t,n=!1,s=!1){const{props:a,ref:o,patchFlag:r,children:i,transition:l}=e,c=t?Tt(a||{},t):a,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&cS(c),ref:t&&t.ref?n&&o?Ae(o)?o.concat(Z2(t)):[o,Z2(t)]:Z2(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==He?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ur(e.ssContent),ssFallback:e.ssFallback&&Ur(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&uu(u,l.clone(u)),u}function je(e=" ",t=0){return W(pf,null,e,t)}function ie(e="",t=!1){return t?(S(),le(Gn,null,e)):W(Gn,null,e)}function qr(e){return e==null||typeof e=="boolean"?W(Gn):Ae(e)?W(He,null,e.slice()):vn(e)?Wi(e):W(pf,null,String(e))}function Wi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ur(e)}function X4(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Ae(t))n=16;else if(typeof t=="object")if(s&65){const a=t.default;a&&(a._c&&(a._d=!1),X4(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!JC(t)?t._ctx=qs:a===3&&qs&&(qs.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ze(t)?(t={default:t,_ctx:qs},n=32):(t=String(t),s&64?(n=16,t=[je(t)]):n=8);e.children=t,e.shapeFlag|=n}function Tt(...e){const t={};for(let n=0;nia||qs;let Q2,J4;{const e=T2(),t=(n,s)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(s),o=>{a.length>1?a.forEach(r=>r(o)):a[0](o)}};Q2=t("__VUE_INSTANCE_SETTERS__",n=>ia=n),J4=t("__VUE_SSR_SETTERS__",n=>Z0=n)}const J0=e=>{const t=ia;return Q2(e),e.scope.on(),()=>{e.scope.off(),Q2(t)}},uS=()=>{ia&&ia.scope.off(),Q2(null)};function dS(e){return e.vnode.shapeFlag&4}let Z0=!1;function vL(e,t=!1,n=!1){t&&J4(t);const{props:s,children:a}=e.vnode,o=dS(e);QO(e,s,o,t),sL(e,a,n||t);const r=o?mL(e,t):void 0;return t&&J4(!1),r}function mL(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,FO);const{setup:s}=n;if(s){zr();const a=e.setupContext=s.length>1?pS(e):null,o=J0(e),r=cf(s,e,0,[e.props,a]),i=su(r);if(Hr(),o(),(i||e.sp)&&!ff(e)&&PC(e),i){if(r.then(uS,uS),t)return r.then(l=>{fS(e,l)}).catch(l=>{V2(l,e,0)});e.asyncDep=r}else fS(e,r)}else hS(e)}function fS(e,t,n){Ze(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:bt(t)&&(e.setupState=lC(t)),hS(e)}function hS(e,t,n){const s=e.type;e.render||(e.render=s.render||en);{const a=J0(e);zr();try{BO(e)}finally{Hr(),a()}}}const gL={get(e,t){return oa(e,"get",""),e[t]}};function pS(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,gL),slots:e.slots,emit:e.emit,expose:t}}function eg(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(lC(Wr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in q0)return q0[n](e)},has(t,n){return n in t||n in q0}})):e.proxy}const bL=/(?:^|[-_])\w/g,yL=e=>e.replace(bL,t=>t.toUpperCase()).replace(/[-_]/g,"");function vS(e,t=!0){return Ze(e)?e.displayName||e.name:e.name||t&&e.__name}function mS(e,t,n=!1){let s=vS(t);if(!s&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(s=a[1])}if(!s&&e){const a=o=>{for(const r in o)if(o[r]===t)return r};s=a(e.components)||e.parent&&a(e.parent.type.components)||a(e.appContext.components)}return s?yL(s):n?"App":"Anonymous"}function wL(e){return Ze(e)&&"__vccOpts"in e}const E=(e,t)=>pO(e,t,Z0);function ut(e,t,n){try{J2(-1);const s=arguments.length;return s===2?bt(t)&&!Ae(t)?vn(t)?W(e,null,[t]):W(e,t):W(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&vn(n)&&(n=[n]),W(e,t,n))}finally{J2(1)}}const _L="3.5.28",CL=en;/** * @vue/runtime-dom v3.5.28 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Z4;const gS=typeof window<"u"&&window.trustedTypes;if(gS)try{Z4=gS.createPolicy("vue",{createHTML:e=>e})}catch{}const bS=Z4?e=>Z4.createHTML(e):e=>e,SL="http://www.w3.org/2000/svg",xL="http://www.w3.org/1998/Math/MathML",ji=typeof document<"u"?document:null,yS=ji&&ji.createElement("template"),kL={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(SL,e):t==="mathml"?ji.createElementNS(xL,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{yS.innerHTML=bS(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const i=yS.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",Q0="animation",vf=Symbol("_vtc"),wS={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},_S=bs({},kC,wS),ws=(e=>(e.displayName="Transition",e.props=_S,e))((e,{slots:t})=>ut(PO,SS(e),t)),pu=(e,t=[])=>{Ae(e)?e.forEach(n=>n(...t)):e&&e(...t)},CS=e=>e?Ae(e)?e.some(t=>t.length>1):e.length>1:!1;function SS(e){const t={};for(const M in e)M in wS||(t[M]=e[M]);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=EL(a),m=v&&v[0],g=v&&v[1],{onBeforeEnter:b,onEnter:C,onEnterCancelled:w,onLeave:_,onLeaveCancelled:x,onBeforeAppear:k=b,onAppear:T=C,onAppearCancelled:I=w}=t,O=(M,B,U,J)=>{M._enterCancelled=J,Ql(M,B?u:i),Ql(M,B?c:r),U&&U()},R=(M,B)=>{M._isLeaving=!1,Ql(M,d),Ql(M,p),Ql(M,h),B&&B()},$=M=>(B,U)=>{const J=M?T:C,Y=()=>O(B,M,U);pu(J,[B,Y]),xS(()=>{Ql(B,M?l:o),Yr(B,M?u:i),CS(J)||kS(B,s,m,Y)})};return bs(t,{onBeforeEnter(M){pu(b,[M]),Yr(M,o),Yr(M,r)},onBeforeAppear(M){pu(k,[M]),Yr(M,l),Yr(M,c)},onEnter:$(!1),onAppear:$(!0),onLeave(M,B){M._isLeaving=!0;const U=()=>R(M,B);Yr(M,d),M._enterCancelled?(Yr(M,h),ey(M)):(ey(M),Yr(M,h)),xS(()=>{M._isLeaving&&(Ql(M,d),Yr(M,p),CS(_)||kS(M,s,g,U))}),pu(_,[M,U])},onEnterCancelled(M){O(M,!1,void 0,!0),pu(w,[M])},onAppearCancelled(M){O(M,!0,void 0,!0),pu(I,[M])},onLeaveCancelled(M){R(M),pu(x,[M])}})}function EL(e){if(e==null)return null;if(bt(e))return[Q4(e.enter),Q4(e.leave)];{const t=Q4(e);return[t,t]}}function Q4(e){return $I(e)}function Yr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[vf]||(e[vf]=new Set)).add(t)}function Ql(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[vf];n&&(n.delete(t),n.size||(e[vf]=void 0))}function xS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let AL=0;function kS(e,t,n,s){const a=e._endId=++AL,o=()=>{a===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:i,propCount:l}=ES(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(n[v]||"").split(", "),a=s(`${Zl}Delay`),o=s(`${Zl}Duration`),r=AS(a,o),i=s(`${Q0}Delay`),l=s(`${Q0}Duration`),c=AS(i,l);let u=null,d=0,h=0;t===Zl?r>0&&(u=Zl,d=r,h=o.length):t===Q0?c>0&&(u=Q0,d=c,h=l.length):(d=Math.max(r,c),u=d>0?r>c?Zl:Q0:null,h=u?u===Zl?o.length:l.length:0);const p=u===Zl&&/\b(?:transform|all)(?:,|$)/.test(s(`${Zl}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:p}}function AS(e,t){for(;e.lengthTS(n)+TS(e[s])))}function TS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ey(e){return(e?e.ownerDocument:document).body.offsetHeight}function TL(e,t,n){const s=e[vf];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const tg=Symbol("_vod"),MS=Symbol("_vsh"),jt={name:"show",beforeMount(e,{value:t},{transition:n}){e[tg]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ep(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),ep(e,!0),s.enter(e)):s.leave(e,()=>{ep(e,!1)}):ep(e,t))},beforeUnmount(e,{value:t}){ep(e,t)}};function ep(e,t){e.style.display=t?e[tg]:"none",e[MS]=!t}const ML=Symbol(""),PL=/(?:^|;)\s*display\s*:/;function RL(e,t,n){const s=e.style,a=Xe(n);let o=!1;if(n&&!a){if(t)if(Xe(t))for(const r of t.split(";")){const i=r.slice(0,r.indexOf(":")).trim();n[i]==null&&ng(s,i,"")}else for(const r in t)n[r]==null&&ng(s,r,"");for(const r in n)r==="display"&&(o=!0),ng(s,r,n[r])}else if(a){if(t!==n){const r=s[ML];r&&(n+=";"+r),s.cssText=n,o=PL.test(n)}}else t&&e.removeAttribute("style");tg in e&&(e[tg]=o?s.display:"",e[MS]&&(s.display="none"))}const PS=/\s*!important$/;function ng(e,t,n){if(Ae(n))n.forEach(s=>ng(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=IL(e,t);PS.test(n)?e.setProperty(Li(s),n.replace(PS,""),"important"):e[s]=n}}const RS=["Webkit","Moz","ms"],ty={};function IL(e,t){const n=ty[t];if(n)return n;let s=ka(t);if(s!=="filter"&&s in e)return ty[t]=s;s=O0(s);for(let a=0;any||($L.then(()=>ny=0),ny=Date.now());function FL(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ar(BL(s,n.value),t,5,[s])};return n.value=e,n.attached=DL(),n}function BL(e,t){if(Ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>a=>!a._stopped&&s&&s(a))}else return t}const DS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,VL=(e,t,n,s,a,o)=>{const r=a==="svg";t==="class"?TL(e,s,r):t==="style"?RL(e,n,s):S2(t)?p4(t)||LL(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zL(e,t,s,r))?(LS(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&OS(e,t,s,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Xe(s))?LS(e,ka(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),OS(e,t,s,r))};function zL(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&DS(t)&&Ze(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return DS(t)&&Xe(n)?!1:t in e}const FS=new WeakMap,BS=new WeakMap,sg=Symbol("_moveCb"),VS=Symbol("_enterCb"),zS=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:bs({},_S,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Mt(),s=xC();let a,o;return or(()=>{if(!a.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!KL(a[0].el,n.vnode.el,r)){a=[];return}a.forEach(HL),a.forEach(WL);const i=a.filter(jL);ey(n.vnode.el),i.forEach(l=>{const c=l.el,u=c.style;Yr(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[sg]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[sg]=null,Ql(c,r))};c.addEventListener("transitionend",d)}),a=[]}),()=>{const r=pn(e),i=SS(r);let l=r.tag||He;if(a=[],o)for(let c=0;c{i.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=ES(s);return o.removeChild(s),r}const mf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ae(t)?n=>A2(t,n):t};function UL(e){e.target.composing=!0}function WS(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ki=Symbol("_assign");function jS(e,t,n){return t&&(e=e.trim()),n&&(e=m4(e)),e}const ag={created(e,{modifiers:{lazy:t,trim:n,number:s}},a){e[Ki]=mf(a);const o=s||a.props&&a.props.type==="number";ec(e,t?"change":"input",r=>{r.target.composing||e[Ki](jS(e.value,n,o))}),(n||o)&&ec(e,"change",()=>{e.value=jS(e.value,n,o)}),t||(ec(e,"compositionstart",UL),ec(e,"compositionend",WS),ec(e,"change",WS))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:a,number:o}},r){if(e[Ki]=mf(r),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?m4(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||a&&e.value.trim()===l)||(e.value=l))}},og={deep:!0,created(e,t,n){e[Ki]=mf(n),ec(e,"change",()=>{const s=e._modelValue,a=qS(e),o=e.checked,r=e[Ki];if(Ae(s)){const i=D_(s,a),l=i!==-1;if(o&&!l)r(s.concat(a));else if(!o&&l){const c=[...s];c.splice(i,1),r(c)}}else if(x2(s)){const i=new Set(s);o?i.add(a):i.delete(a),r(i)}else r(GS(e,o))})},mounted:KS,beforeUpdate(e,t,n){e[Ki]=mf(n),KS(e,t,n)}};function KS(e,{value:t,oldValue:n},s){e._modelValue=t;let a;if(Ae(t))a=D_(t,s.props.value)>-1;else if(x2(t))a=t.has(s.props.value);else{if(t===n)return;a=au(t,GS(e,!0))}e.checked!==a&&(e.checked=a)}const US={created(e,{value:t},n){e.checked=au(t,n.props.value),e[Ki]=mf(n),ec(e,"change",()=>{e[Ki](qS(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ki]=mf(s),t!==n&&(e.checked=au(t,s.props.value))}};function qS(e){return"_value"in e?e._value:e.value}function GS(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const qL=["ctrl","shift","alt","meta"],GL={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>qL.some(n=>e[`${n}Key`]&&!t.includes(n))},ht=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(a,...o)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=a=>{if(!("key"in a))return;const o=Li(a.key);if(t.some(r=>r===o||YL[r]===o))return e(a)})},XL=bs({patchProp:VL},kL);let YS;function XS(){return YS||(YS=oL(XL))}const tc=(...e)=>{XS().render(...e)},JS=(...e)=>{const t=XS().createApp(...e),{mount:n}=t;return t.mount=s=>{const a=ZL(s);if(!a)return;const o=t._component;!Ze(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const r=n(a,!1,JL(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),r},t};function JL(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ZL(e){return Xe(e)?document.querySelector(e):e}const QL="2.13.2",ZS=Symbol("INSTALLED_KEY"),QS=Symbol();var e5=typeof global=="object"&&global&&global.Object===Object&&global,eN=typeof self=="object"&&self&&self.Object===Object&&self,rr=e5||eN||Function("return this")(),Lo=rr.Symbol,t5=Object.prototype,tN=t5.hasOwnProperty,nN=t5.toString,tp=Lo?Lo.toStringTag:void 0;function sN(e){var t=tN.call(e,tp),n=e[tp];try{e[tp]=void 0;var s=!0}catch{}var a=nN.call(e);return s&&(t?e[tp]=n:delete e[tp]),a}var aN=Object.prototype,oN=aN.toString;function rN(e){return oN.call(e)}var iN="[object Null]",lN="[object Undefined]",n5=Lo?Lo.toStringTag:void 0;function vu(e){return e==null?e===void 0?lN:iN:n5&&n5 in Object(e)?sN(e):rN(e)}function Xr(e){return e!=null&&typeof e=="object"}var cN="[object Symbol]";function rg(e){return typeof e=="symbol"||Xr(e)&&vu(e)==cN}function sy(e,t){for(var n=-1,s=e==null?0:e.length,a=Array(s);++n0){if(++t>=DN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zN(e){return function(){return e}}var ig=function(){try{var e=gu(Object,"defineProperty");return e({},"",{}),e}catch{}}(),HN=ig?function(e,t){return ig(e,"toString",{configurable:!0,enumerable:!1,value:zN(t),writable:!0})}:ay,u5=VN(HN);function WN(e,t){for(var n=-1,s=e==null?0:e.length;++n-1}var GN=9007199254740991,YN=/^(?:0|[1-9]\d*)$/;function lg(e,t){var n=typeof e;return t=t??GN,!!t&&(n=="number"||n!="symbol"&&YN.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=ZN}function bf(e){return e!=null&&uy(e.length)&&!oy(e)}function QN(e,t,n){if(!Pa(n))return!1;var s=typeof t;return(s=="number"?bf(n)&&lg(t,n.length):s=="string"&&t in n)?sp(n[t],e):!1}function e$(e){return p5(function(t,n){var s=-1,a=n.length,o=a>1?n[a-1]:void 0,r=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,r&&QN(n[0],n[1],r)&&(o=a<3?void 0:o,a=1),t=Object(t);++s-1}function uD(e,t){var n=this.__data__,s=cg(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}function Ui(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(i)?t>1?dp(i,t-1,n,s,a):my(a,i):s||(a[a.length]=i)}return a}function hg(e){var t=e==null?0:e.length;return t?dp(e,1):[]}function k5(e){return u5(h5(e,void 0,hg),e+"")}var gy=S5(Object.getPrototypeOf,Object),kD="[object Object]",ED=Function.prototype,AD=Object.prototype,E5=ED.toString,TD=AD.hasOwnProperty,MD=E5.call(Object);function A5(e){if(!Xr(e)||vu(e)!=kD)return!1;var t=gy(e);if(t===null)return!0;var n=TD.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&E5.call(n)==MD}function PD(e,t,n){var s=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(a);++s=t?e:t)),e}function yu(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=np(n),n=n===n?n:0),t!==void 0&&(t=np(t),t=t===t?t:0),RD(np(e),t,n)}function ID(){this.__data__=new Ui,this.size=0}function OD(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function LD(e){return this.__data__.get(e)}function ND(e){return this.__data__.has(e)}var $D=200;function DD(e,t){var n=this.__data__;if(n instanceof Ui){var s=n.__data__;if(!up||s.length<$D-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new qi(s)}return n.set(e,t),this.size=n.size,this}function ir(e){var t=this.__data__=new Ui(e);this.size=t.size}ir.prototype.clear=ID,ir.prototype.delete=OD,ir.prototype.get=LD,ir.prototype.has=ND,ir.prototype.set=DD;function FD(e,t){return e&&gf(t,ip(t),e)}function BD(e,t){return e&&gf(t,lp(t),e)}var T5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,M5=T5&&typeof module=="object"&&module&&!module.nodeType&&module,VD=M5&&M5.exports===T5,P5=VD?rr.Buffer:void 0,R5=P5?P5.allocUnsafe:void 0;function I5(e,t){if(t)return e.slice();var n=e.length,s=R5?R5(n):new e.constructor(n);return e.copy(s),s}function zD(e,t){for(var n=-1,s=e==null?0:e.length,a=0,o=[];++ni))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=n&fB?new fp:void 0;for(o.set(e,t),o.set(t,e);++d=t||T<0||d&&I>=o}function b(){var k=Ey();if(g(k))return C(k);i=setTimeout(b,m(k))}function C(k){return i=void 0,h&&s?p(k):(s=a=void 0,r)}function w(){i!==void 0&&clearTimeout(i),c=0,s=l=a=i=void 0}function _(){return i===void 0?r:C(Ey())}function x(){var k=Ey(),T=g(k);if(s=arguments,a=this,l=k,T){if(i===void 0)return v(l);if(d)return clearTimeout(i),i=setTimeout(b,t),p(l)}return i===void 0&&(i=setTimeout(b,t)),r}return x.cancel=w,x.flush=_,x}function Ay(e,t,n){(n!==void 0&&!sp(e[t],n)||n===void 0&&!(t in e))&&ly(e,t,n)}function ux(e){return Xr(e)&&bf(e)}function Ty(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function eV(e){return gf(e,lp(e))}function tV(e,t,n,s,a,o,r){var i=Ty(e,n),l=Ty(t,n),c=r.get(l);if(c){Ay(e,n,c);return}var u=o?o(i,l,n+"",e,t,r):void 0,d=u===void 0;if(d){var h=Ma(l),p=!h&&op(l),v=!h&&!p&&py(l);u=l,h||p||v?Ma(i)?u=i:ux(i)?u=c5(i):p?(d=!1,u=I5(l,!0)):v?(d=!1,u=K5(l,!0)):u=[]:A5(l)||ap(l)?(u=i,ap(i)?u=eV(i):(!Pa(i)||oy(i))&&(u=U5(l))):d=!1}d&&(r.set(l,u),a(u,l,s,o,r),r.delete(l)),Ay(e,n,u)}function dx(e,t,n,s,a){e!==t&&cx(t,function(o,r){if(a||(a=new ir),Pa(o))tV(e,t,r,n,dx,s,a);else{var i=s?s(Ty(e,r),o,r+"",e,t,a):void 0;i===void 0&&(i=o),Ay(e,r,i)}},lp)}function nV(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function fx(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var a=s-1;return d5(e,lx(t),a,!0)}function sV(e,t){var n=-1,s=bf(e)?Array(e.length):[];return XB(e,function(a,o,r){s[++n]=t(a,o,r)}),s}function aV(e,t){var n=Ma(e)?sy:sV;return n(e,lx(t))}function hx(e,t){return dp(aV(e,t),1)}var oV=1/0;function rV(e){var t=e==null?0:e.length;return t?dp(e,oV):[]}function hp(e){for(var t=-1,n=e==null?0:e.length,s={};++t1),o}),gf(e,D5(e),n),s&&(n=Sf(n,gV|bV|yV,mV));for(var a=t.length;a--;)vV(n,t[a]);return n});function vx(e,t,n,s){if(!Pa(e))return e;t=wf(t,e);for(var a=-1,o=t.length,r=o-1,i=e;i!=null&&++a=EV){var c=kV(e);if(c)return xy(c);r=!1,a=Z5,l=new fp}else l=i;e:for(;++s(t,n)=>PV(t,n,f(e)),PV=(e,t,n)=>Qn(n,e,e).replace(/\{(\w+)\}/g,(s,a)=>{var o;return`${(o=t==null?void 0:t[a])!=null?o:`{${a}}`}`}),RV=e=>({lang:E(()=>f(e).name),locale:yn(e)?e:F(e),t:MV(e)}),mx=Symbol("localeContextKey"),Bt=e=>{const t=e||Ke(mx,F());return RV(E(()=>t.value||TV))},vp="el",IV="is-",wu=(e,t,n,s,a)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),s&&(o+=`__${s}`),a&&(o+=`--${a}`),o},gx=Symbol("namespaceContextKey"),Py=e=>{const t=e||(Mt()?Ke(gx,F(vp)):F(vp));return E(()=>f(t)||vp)},Ee=(e,t)=>{const n=Py(t);return{namespace:n,b:(m="")=>wu(n.value,e,m,"",""),e:m=>m?wu(n.value,e,"",m,""):"",m:m=>m?wu(n.value,e,"","",m):"",be:(m,g)=>m&&g?wu(n.value,e,m,g,""):"",em:(m,g)=>m&&g?wu(n.value,e,"",m,g):"",bm:(m,g)=>m&&g?wu(n.value,e,m,"",g):"",bem:(m,g,b)=>m&&g&&b?wu(n.value,e,m,g,b):"",is:(m,...g)=>{const b=g.length>=1?g[0]:!0;return m&&b?`${IV}${m}`:""},cssVar:m=>{const g={};for(const b in m)m[b]&&(g[`--${n.value}-${b}`]=m[b]);return g},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const g={};for(const b in m)m[b]&&(g[`--${n.value}-${e}-${b}`]=m[b]);return g},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},Ht=e=>e===void 0,on=e=>typeof e=="boolean",at=e=>typeof e=="number",Ra=e=>!e&&e!==0||Ae(e)&&e.length===0||bt(e)&&!Object.keys(e).length,ja=e=>typeof Element>"u"?!1:e instanceof Element,Ka=e=>Xn(e),OV=e=>Xe(e)?!Number.isNaN(Number(e)):!1,mp=e=>e===window;function bx(e,t){var n;const s=bn();return Wa(()=>{s.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),ru(s)}function _u(e){return z_()?(H_(e),!0):!1}function io(e){return typeof e=="function"?e():f(e)}function LV(e){if(!yn(e))return Yt(e);const t=new Proxy({},{get(n,s,a){return f(Reflect.get(e.value,s,a))},set(n,s,a){return yn(e.value[s])&&!yn(a)?e.value[s].value=a:e.value[s]=a,!0},deleteProperty(n,s){return Reflect.deleteProperty(e.value,s)},has(n,s){return Reflect.has(e.value,s)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Yt(t)}function NV(e){return LV(E(e))}const Xt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $V=e=>typeof e<"u",yx=e=>e!=null,DV=Object.prototype.toString,FV=e=>DV.call(e)==="[object Object]",wx=(e,t,n)=>Math.min(n,Math.max(t,e)),cr=()=>{},yg=BV();function BV(){var e,t;return Xt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function _x(e,t){function n(...s){return new Promise((a,o)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(a).catch(o)})}return n}function VV(e,t={}){let n,s,a=cr;const o=i=>{clearTimeout(i),a(),a=cr};return i=>{const l=io(e),c=io(t.maxWait);return n&&o(n),l<=0||c!==void 0&&c<=0?(s&&(o(s),s=null),Promise.resolve(i())):new Promise((u,d)=>{a=t.rejectOnCancel?d:u,c&&!s&&(s=setTimeout(()=>{n&&o(n),s=null,u(i())},c)),n=setTimeout(()=>{s&&o(s),s=null,u(i())},l)})}}function zV(...e){let t=0,n,s=!0,a=cr,o,r,i,l,c;!yn(e[0])&&typeof e[0]=="object"?{delay:r,trailing:i=!0,leading:l=!0,rejectOnCancel:c=!1}=e[0]:[r,i=!0,l=!0,c=!1]=e;const u=()=>{n&&(clearTimeout(n),n=void 0,a(),a=cr)};return h=>{const p=io(r),v=Date.now()-t,m=()=>o=h();return u(),p<=0?(t=Date.now(),m()):(v>p&&(l||!s)?(t=Date.now(),m()):i&&(o=new Promise((g,b)=>{a=c?b:g,n=setTimeout(()=>{t=Date.now(),s=!0,g(m()),u()},Math.max(0,p-v))})),!l&&!n&&(n=setTimeout(()=>s=!0,p)),s=!1,o)}}function HV(e){return Mt()}function gp(e,t=200,n={}){return _x(VV(t,n),e)}function WV(e,t=200,n={}){const s=F(e.value),a=gp(()=>{s.value=e.value},t,n);return be(e,()=>a()),s}function Cx(e,t=200,n=!1,s=!0,a=!1){return _x(zV(t,n,s,a),e)}function Ry(e,t=!0,n){HV()?Pt(e,n):t?e():ze(e)}function xf(e,t,n={}){const{immediate:s=!0}=n,a=F(!1);let o=null;function r(){o&&(clearTimeout(o),o=null)}function i(){a.value=!1,r()}function l(...c){r(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=null,e(...c)},io(t))}return s&&(a.value=!0,Xt&&l()),_u(i),{isPending:ru(a),start:l,stop:i}}function us(e){var t;const n=io(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ur=Xt?window:void 0,jV=Xt?window.document:void 0;function an(...e){let t,n,s,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,a]=e,t=ur):[t,n,s,a]=e,!t)return cr;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],r=()=>{o.forEach(u=>u()),o.length=0},i=(u,d,h,p)=>(u.addEventListener(d,h,p),()=>u.removeEventListener(d,h,p)),l=be(()=>[us(t),io(a)],([u,d])=>{if(r(),!u)return;const h=FV(d)?{...d}:d;o.push(...n.flatMap(p=>s.map(v=>i(u,p,v,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),r()};return _u(c),c}let Sx=!1;function Iy(e,t,n={}){const{window:s=ur,ignore:a=[],capture:o=!0,detectIframe:r=!1}=n;if(!s)return cr;yg&&!Sx&&(Sx=!0,Array.from(s.document.body.children).forEach(h=>h.addEventListener("click",cr)),s.document.documentElement.addEventListener("click",cr));let i=!0;const l=h=>a.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(v=>v===h.target||h.composedPath().includes(v));{const v=us(p);return v&&(h.target===v||h.composedPath().includes(v))}}),u=[an(s,"click",h=>{const p=us(e);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(i=!l(h)),!i){i=!0;return}t(h)}},{passive:!0,capture:o}),an(s,"pointerdown",h=>{const p=us(e);i=!l(h)&&!!(p&&!h.composedPath().includes(p))},{passive:!0}),r&&an(s,"blur",h=>{setTimeout(()=>{var p;const v=us(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(v!=null&&v.contains(s.document.activeElement))&&t(h)},0)})].filter(Boolean);return()=>u.forEach(h=>h())}function KV(){const e=F(!1),t=Mt();return t&&Pt(()=>{e.value=!0},t),e}function wg(e){const t=KV();return E(()=>(t.value,!!e()))}function bp(e,t,n={}){const{window:s=ur,...a}=n;let o;const r=wg(()=>s&&"MutationObserver"in s),i=()=>{o&&(o.disconnect(),o=void 0)},l=E(()=>{const h=io(e),p=(Array.isArray(h)?h:[h]).map(us).filter(yx);return new Set(p)}),c=be(()=>l.value,h=>{i(),r.value&&h.size&&(o=new MutationObserver(t),h.forEach(p=>o.observe(p,a)))},{immediate:!0,flush:"post"}),u=()=>o==null?void 0:o.takeRecords(),d=()=>{i(),c()};return _u(d),{isSupported:r,stop:d,takeRecords:u}}function UV(e={}){var t;const{window:n=ur,deep:s=!0,triggerOnRemoval:a=!1}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var c;let u=o==null?void 0:o.activeElement;if(s)for(;u!=null&&u.shadowRoot;)u=(c=u==null?void 0:u.shadowRoot)==null?void 0:c.activeElement;return u},i=F(),l=()=>{i.value=r()};return n&&(an(n,"blur",c=>{c.relatedTarget===null&&l()},!0),an(n,"focus",l,!0)),a&&bp(o,c=>{c.filter(u=>u.removedNodes.length).map(u=>Array.from(u.removedNodes)).flat().forEach(u=>{u===i.value&&l()})},{childList:!0,subtree:!0}),l(),i}function qV(e,t={}){const{window:n=ur}=t,s=wg(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const o=F(!1),r=c=>{o.value=c.matches},i=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",r):a.removeListener(r))},l=Wa(()=>{s.value&&(i(),a=n.matchMedia(io(e)),"addEventListener"in a?a.addEventListener("change",r):a.addListener(r),o.value=a.matches)});return _u(()=>{l(),i(),a=void 0}),o}function GV(e){return JSON.parse(JSON.stringify(e))}function YV(e,t,n={}){const{window:s=ur,initialValue:a="",observe:o=!1}=n,r=F(a),i=E(()=>{var c;return us(t)||((c=s==null?void 0:s.document)==null?void 0:c.documentElement)});function l(){var c;const u=io(e),d=io(i);if(d&&s){const h=(c=s.getComputedStyle(d).getPropertyValue(u))==null?void 0:c.trim();r.value=h||a}}return o&&bp(i,l,{attributeFilter:["style","class"],window:s}),be([i,()=>io(e)],l,{immediate:!0}),be(r,c=>{var u;(u=i.value)!=null&&u.style&&i.value.style.setProperty(io(e),c)}),r}function XV(e={}){const{document:t=jV}=e;if(!t)return F("visible");const n=F(t.visibilityState);return an(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function En(e,t,n={}){const{window:s=ur,...a}=n;let o;const r=wg(()=>s&&"ResizeObserver"in s),i=()=>{o&&(o.disconnect(),o=void 0)},l=E(()=>Array.isArray(e)?e.map(d=>us(d)):[us(e)]),c=be(l,d=>{if(i(),r.value&&s){o=new ResizeObserver(t);for(const h of d)h&&o.observe(h,a)}},{immediate:!0,flush:"post"}),u=()=>{i(),c()};return _u(u),{isSupported:r,stop:u}}function xx(e,t={}){const{reset:n=!0,windowResize:s=!0,windowScroll:a=!0,immediate:o=!0}=t,r=F(0),i=F(0),l=F(0),c=F(0),u=F(0),d=F(0),h=F(0),p=F(0);function v(){const m=us(e);if(!m){n&&(r.value=0,i.value=0,l.value=0,c.value=0,u.value=0,d.value=0,h.value=0,p.value=0);return}const g=m.getBoundingClientRect();r.value=g.height,i.value=g.bottom,l.value=g.left,c.value=g.right,u.value=g.top,d.value=g.width,h.value=g.x,p.value=g.y}return En(e,v),be(()=>us(e),m=>!m&&v()),bp(e,v,{attributeFilter:["style","class"]}),a&&an("scroll",v,{capture:!0,passive:!0}),s&&an("resize",v,{passive:!0}),Ry(()=>{o&&v()}),{height:r,bottom:i,left:l,right:c,top:u,width:d,x:h,y:p,update:v}}function Oy(e,t={width:0,height:0},n={}){const{window:s=ur,box:a="content-box"}=n,o=E(()=>{var d,h;return(h=(d=us(e))==null?void 0:d.namespaceURI)==null?void 0:h.includes("svg")}),r=F(t.width),i=F(t.height),{stop:l}=En(e,([d])=>{const h=a==="border-box"?d.borderBoxSize:a==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(s&&o.value){const p=us(e);if(p){const v=p.getBoundingClientRect();r.value=v.width,i.value=v.height}}else if(h){const p=Array.isArray(h)?h:[h];r.value=p.reduce((v,{inlineSize:m})=>v+m,0),i.value=p.reduce((v,{blockSize:m})=>v+m,0)}else r.value=d.contentRect.width,i.value=d.contentRect.height},n);Ry(()=>{const d=us(e);d&&(r.value="offsetWidth"in d?d.offsetWidth:t.width,i.value="offsetHeight"in d?d.offsetHeight:t.height)});const c=be(()=>us(e),d=>{r.value=d?t.width:0,i.value=d?t.height:0});function u(){l(),c()}return{width:r,height:i,stop:u}}function JV(e,t,n={}){const{root:s,rootMargin:a="0px",threshold:o=.1,window:r=ur,immediate:i=!0}=n,l=wg(()=>r&&"IntersectionObserver"in r),c=E(()=>{const v=io(e);return(Array.isArray(v)?v:[v]).map(us).filter(yx)});let u=cr;const d=F(i),h=l.value?be(()=>[c.value,us(s),d.value],([v,m])=>{if(u(),!d.value||!v.length)return;const g=new IntersectionObserver(t,{root:us(m),rootMargin:a,threshold:o});v.forEach(b=>b&&g.observe(b)),u=()=>{g.disconnect(),u=cr}},{immediate:i,flush:"post"}):cr,p=()=>{u(),h(),d.value=!1};return _u(p),{isSupported:l,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:p}}function kx(e,t,n,s={}){var a,o,r;const{clone:i=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:h}=s,p=Mt(),v=n||(p==null?void 0:p.emit)||((a=p==null?void 0:p.$emit)==null?void 0:a.bind(p))||((r=(o=p==null?void 0:p.proxy)==null?void 0:o.$emit)==null?void 0:r.bind(p==null?void 0:p.proxy));let m=c;t||(t="modelValue"),m=m||`update:${t.toString()}`;const g=w=>i?typeof i=="function"?i(w):GV(w):w,b=()=>$V(e[t])?g(e[t]):d,C=w=>{h?h(w)&&v(m,w):v(m,w)};if(l){const w=b(),_=F(w);let x=!1;return be(()=>e[t],k=>{x||(x=!0,_.value=g(k),ze(()=>x=!1))}),be(_,k=>{!x&&(k!==e[t]||u)&&C(k)},{deep:u}),_}else return E({get(){return b()},set(w){C(w)}})}function ZV(e={}){const{window:t=ur}=e;if(!t)return F(!1);const n=F(t.document.hasFocus());return an(t,"blur",()=>{n.value=!1}),an(t,"focus",()=>{n.value=!0}),n}function Ly(e={}){const{window:t=ur,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:o=!0}=e,r=F(n),i=F(s),l=()=>{t&&(o?(r.value=t.innerWidth,i.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};if(l(),Ry(l),an("resize",l,{passive:!0}),a){const c=qV("(orientation: portrait)");be(c,()=>l())}return{width:r,height:i}}class QV extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function es(e,t){throw new QV(`[${e}] ${t}`)}function c3e(e,t){}const Ex={current:0},Ax=F(0),Tx=2e3,Mx=Symbol("elZIndexContextKey"),Px=Symbol("zIndexContextKey"),yp=e=>{const t=Mt()?Ke(Mx,Ex):Ex,n=e||(Mt()?Ke(Px,void 0):void 0),s=E(()=>{const r=f(n);return at(r)?r:Tx}),a=E(()=>s.value+Ax.value),o=()=>(t.current++,Ax.value=t.current,a.value);return!Xt&&Ke(Mx),{initialZIndex:s,currentZIndex:a,nextZIndex:o}},Rx="__epPropKey",re=e=>e,ez=e=>bt(e)&&!!e[Rx],dr=(e,t)=>{if(!bt(e)||ez(e))return e;const{values:n,required:s,default:a,type:o,validator:r}=e,l={type:o,required:!!s,validator:n||r?c=>{let u=!1,d=[];if(n&&(d=Array.from(n),Gt(e,"default")&&d.push(a),u||(u=d.includes(c))),r&&(u||(u=r(c))),!u&&d.length>0){const h=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");CL(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[Rx]:!0};return Gt(e,"default")&&(l.default=a),l},Me=e=>hp(Object.entries(e).map(([t,n])=>[t,dr(n,t)])),fr=["","default","small","large"],ds=dr({type:String,values:fr,required:!1}),Ix=Symbol("size"),Ox=()=>{const e=Ke(Ix,{});return E(()=>f(e.size)||"")},Lx=Symbol("emptyValuesContextKey"),tz=["",void 0,null],nz=void 0,Cu=Me({emptyValues:Array,valueOnClear:{type:re([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Ze(e)?e():e,Ae(e)?e.every(t=>!t):!e)}}),wp=(e,t)=>{const n=Mt()?Ke(Lx,F({})):F({}),s=E(()=>e.emptyValues||n.value.emptyValues||tz),a=E(()=>Ze(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Ze(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:nz),o=r=>{let i=!0;return Ae(r)?i=s.value.some(l=>Bn(r,l)):i=s.value.includes(r),i};return o(a.value),{emptyValues:s,valueOnClear:a,isEmptyValue:o}},_p=e=>Object.keys(e),Nx=e=>Object.entries(e),kf=(e,t,n)=>({get value(){return Qn(e,t,n)},set value(s){CV(e,t,s)}}),_g=F();function Ef(e,t=void 0){const n=Mt()?Ke(QS,_g):_g;return e?E(()=>{var s,a;return(a=(s=n.value)==null?void 0:s[e])!=null?a:t}):n}function Cg(e,t){const n=Ef(),s=Ee(e,E(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||vp})),a=Bt(E(()=>{var i;return(i=n.value)==null?void 0:i.locale})),o=yp(E(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||Tx})),r=E(()=>{var i;return f(t)||((i=n.value)==null?void 0:i.size)||""});return Ny(E(()=>f(n)||{})),{ns:s,locale:a,zIndex:o,size:r}}const Ny=(e,t,n=!1)=>{var s;const a=!!Mt(),o=a?Ef():void 0,r=(s=t==null?void 0:t.provide)!=null?s:a?Nt:void 0;if(!r)return;const i=E(()=>{const l=f(e);return o!=null&&o.value?sz(o.value,l):l});return r(QS,i),r(mx,E(()=>i.value.locale)),r(gx,E(()=>i.value.namespace)),r(Px,E(()=>i.value.zIndex)),r(Ix,{size:E(()=>i.value.size||"")}),r(Lx,E(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!_g.value)&&(_g.value=i.value),i},sz=(e,t)=>{const n=[...new Set([..._p(e),..._p(t)])],s={};for(const a of n)s[a]=t[a]!==void 0?t[a]:e[a];return s},az=(e=[])=>({version:QL,install:(n,s)=>{n[ZS]||(n[ZS]=!0,e.forEach(a=>n.use(a)),s&&Ny(s,n,!0))}}),Cp=Me({to:{type:re([String,Object]),required:!0},disabled:Boolean}),mt="update:modelValue",Dt="change",os="input",oz=Me({zIndex:{type:re([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:Cp.to.type,default:"body"}}),rz={scroll:({scrollTop:e,fixed:t})=>at(e)&&on(t),[Dt]:e=>on(e)};var iz=j({__name:"teleport",props:Cp,setup(e){return(t,n)=>t.disabled?ue(t.$slots,"default",{key:0}):(S(),le(TO,{key:1,to:t.to},[ue(t.$slots,"default")],8,["to"]))}});const yt=(e,t)=>{if(e.install=n=>{for(const s of[e,...Object.values(t??{})])n.component(s.name,s)},t)for(const[n,s]of Object.entries(t))e[n]=s;return e},$x=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),lz=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Pn=e=>(e.install=en,e),Af=yt(iz);function cz(e,t,n,s){const a=n-t;return e/=s/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}const Zr=e=>Xt?window.requestAnimationFrame(e):setTimeout(e,16),Yi=e=>Xt?window.cancelAnimationFrame(e):clearTimeout(e),Dx=(e="")=>e.split(" ").filter(t=>!!t.trim()),Qr=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},No=(e,t)=>{!e||!t.trim()||e.classList.add(...Dx(t))},la=(e,t)=>{!e||!t.trim()||e.classList.remove(...Dx(t))},Xi=(e,t)=>{var n;if(!Xt||!e||!t)return"";let s=ka(t);s==="float"&&(s="cssFloat");try{const a=e.style[s];if(a)return a;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return o?o[s]:""}catch{return e.style[s]}},Fx=(e,t,n)=>{if(!(!e||!t))if(bt(t))Nx(t).forEach(([s,a])=>Fx(e,s,a));else{const s=ka(t);e.style[s]=n}};function On(e,t="px"){if(!e&&e!==0)return"";if(at(e)||OV(e))return`${e}${t}`;if(Xe(e))return e}const uz=(e,t)=>{if(!Xt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],s=Xi(e,n);return["scroll","auto","overlay"].some(a=>s.includes(a))},$y=(e,t)=>{if(!Xt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(uz(n,t))return n;n=n.parentNode}return n};let Sg;const Bx=e=>{var t;if(!Xt)return 0;if(Sg!==void 0)return Sg;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const s=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const o=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Sg=s-o,Sg};function Dy(e,t){if(!Xt)return;if(!t){e.scrollTop=0;return}const n=[];let s=t.offsetParent;for(;s!==null&&e!==s&&e.contains(s);)n.push(s),s=s.offsetParent;const a=t.offsetTop+n.reduce((l,c)=>l+c.offsetTop,0),o=a+t.offsetHeight,r=e.scrollTop,i=r+e.clientHeight;ai&&(e.scrollTop=o-e.clientHeight)}function dz(e,t,n,s,a){const o=Date.now();let r;const i=()=>{const c=Date.now()-o,u=cz(c>s?s:c,t,n,s);mp(e)?e.scrollTo(window.pageXOffset,u):e.scrollTop=u,c{r&&Yi(r)}}const Vx=(e,t)=>mp(t)?e.ownerDocument.documentElement:t,zx=e=>mp(e)?window.scrollY:e.scrollTop,Hx="ElAffix";var fz=j({name:Hx,__name:"affix",props:oz,emits:rz,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("affix"),r=bn(),i=bn(),l=bn(),{height:c}=Ly(),{height:u,width:d,top:h,bottom:p,left:v,update:m}=xx(i,{windowScroll:!1}),g=xx(r),b=F(!1),C=F(0),w=F(0),_=E(()=>!s.teleported||!b.value),x=E(()=>({height:b.value?`${u.value}px`:"",width:b.value?`${d.value}px`:""})),k=E(()=>{if(!b.value)return{};const R=On(s.offset);return{height:`${u.value}px`,width:`${d.value}px`,top:s.position==="top"?R:"",bottom:s.position==="bottom"?R:"",left:s.teleported?`${v.value}px`:"",transform:w.value?`translateY(${w.value}px)`:"",zIndex:s.zIndex}}),T=()=>{if(!l.value)return;C.value=l.value instanceof Window?document.documentElement.scrollTop:l.value.scrollTop||0;const{position:R,target:$,offset:M}=s,B=M+u.value;if(R==="top")if($){const U=g.bottom.value-B;b.value=M>h.value&&g.bottom.value>0,w.value=U<0?U:0}else b.value=M>h.value;else if($){const U=c.value-g.top.value-B;b.value=c.value-Mg.top.value,w.value=U<0?-U:0}else b.value=c.value-M{if(!b.value){m();return}b.value=!1,await ze(),m(),b.value=!0},O=async()=>{m(),await ze(),a("scroll",{scrollTop:C.value,fixed:b.value})};return be(b,R=>a(Dt,R)),Pt(()=>{var R;s.target?(r.value=(R=document.querySelector(s.target))!=null?R:void 0,r.value||es(Hx,`Target does not exist: ${s.target}`)):r.value=document.documentElement,l.value=$y(i.value,!0),m()}),U0(()=>{ze(I)}),N4(()=>{b.value=!1}),an(l,"scroll",O),Wa(T),t({update:T,updateRoot:I}),(R,$)=>(S(),P("div",{ref_key:"root",ref:i,class:D(f(o).b()),style:Qe(x.value)},[W(f(Af),{disabled:_.value,to:e.appendTo},{default:X(()=>[A("div",{class:D({[f(o).m("fixed")]:b.value}),style:Qe(k.value)},[ue(R.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}});const hz=yt(fz);/*! Element Plus Icons Vue v2.3.2 */var pz=j({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),A("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),A("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),vz=pz,mz=j({name:"Aim",__name:"aim",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),A("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),gz=mz,bz=j({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),A("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),yz=bz,wz=j({name:"Apple",__name:"apple",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M599.872 203.776a189.4 189.4 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a427 427 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664m-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688s81.28 34.688 136.96 33.536c56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152"})]))}}),_z=wz,Cz=j({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),Sz=Cz,xz=j({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),hr=xz,kz=j({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),Ez=kz,Az=j({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),$o=Az,Tz=j({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"})]))}}),Mz=Tz,Pz=j({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Ds=Pz,Rz=j({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),Iz=Rz,Oz=j({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Sp=Oz,Lz=j({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),Nz=Lz,$z=j({name:"Back",__name:"back",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),A("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),Wx=$z,Dz=j({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6m45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),A("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896M108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1737 1737 0 0 1-11.392-65.728"})]))}}),Fz=Dz,Bz=j({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M778.752 788.224a382.46 382.46 0 0 0 116.032-245.632 256.51 256.51 0 0 0-241.728-13.952 762.9 762.9 0 0 1 125.696 259.584m-55.04 44.224a699.65 699.65 0 0 0-125.056-269.632 256.13 256.13 0 0 0-56.064 331.968 382.7 382.7 0 0 0 181.12-62.336m-254.08 61.248A320.13 320.13 0 0 1 557.76 513.6a716 716 0 0 0-48.192-48.128 320.13 320.13 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.13 256.13 0 0 0 331.072-56.448 699.65 699.65 0 0 0-268.8-124.352 382.66 382.66 0 0 0-62.272 180.8m106.56-235.84a762.9 762.9 0 0 1 258.688 125.056 256.51 256.51 0 0 0-13.44-241.088A382.46 382.46 0 0 0 235.84 245.248m318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a780 780 0 0 1 66.176 66.112 320.83 320.83 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),Vz=Bz,zz=j({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.13 320.13 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),Hz=zz,Wz=j({name:"Bell",__name:"bell",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),A("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),A("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),jz=Wz,Kz=j({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),A("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),A("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),A("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),A("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),Uz=Kz,qz=j({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),A("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z"})]))}}),Gz=qz,Yz=j({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),A("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),Xz=Yz,Jz=j({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),Zz=Jz,Qz=j({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M714.432 704a351.74 351.74 0 0 0 148.16-256H161.408a351.74 351.74 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),eH=Qz,tH=j({name:"Box",__name:"box",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),A("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),A("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),nH=tH,sH=j({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),aH=sH,oH=j({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),rH=oH,iH=j({name:"Brush",__name:"brush",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a664 664 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168"})]))}}),lH=iH,cH=j({name:"Burger",__name:"burger",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),uH=cH,dH=j({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),jx=dH,fH=j({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),hH=fH,pH=j({name:"Camera",__name:"camera",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),vH=pH,mH=j({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),gH=mH,bH=j({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),yH=bH,wH=j({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Fy=wH,_H=j({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Kx=_H,CH=j({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),SH=CH,xH=j({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),A("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),kH=xH,EH=j({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),A("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),AH=EH,TH=j({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),A("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),MH=TH,PH=j({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),A("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),RH=PH,IH=j({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),OH=IH,LH=j({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),NH=LH,$H=j({name:"Check",__name:"check",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Tf=$H,DH=j({name:"Checked",__name:"checked",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),FH=DH,BH=j({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6M288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),VH=BH,zH=j({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.7 106.7 0 0 1-26.176-19.072 106.7 106.7 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112m57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52z"})]))}}),HH=zH,WH=j({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.37 212.37 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67"}),A("path",{fill:"currentColor",d:"M576.79 401.63a127.9 127.9 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128 128 0 0 0-2.16 127.44l1.24 2.13a127.9 127.9 0 0 0 46.36 46.61 127.9 127.9 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.98 127.98 0 0 0 .29-127.46 127.96 127.96 0 0 0-46.36-46.91"}),A("path",{fill:"currentColor",d:"M394.45 333.96A213.34 213.34 0 0 1 512 298.67h369.58A426.5 426.5 0 0 0 512 85.34a425.6 425.6 0 0 0-171.74 35.98 425.6 425.6 0 0 0-142.62 102.22l118.14 204.63a213.4 213.4 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.3 213.3 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.3 213.3 0 0 1-122.77-21.91"})]))}}),jH=WH,KH=j({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Ux=KH,UH=j({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),A("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),xp=UH,qH=j({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),xg=qH,GH=j({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),A("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Do=GH,YH=j({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"})]))}}),XH=YH,JH=j({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),A("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),A("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ZH=JH,QH=j({name:"Clock",__name:"clock",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),A("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),By=QH,eW=j({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),tW=eW,nW=j({name:"Close",__name:"close",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ua=nW,sW=j({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),aW=sW,oW=j({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.13 256.13 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),rW=oW,iW=j({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64zm68.736 64 36.544 512H708.16l36.544-512z"})]))}}),lW=iW,cW=j({name:"Coin",__name:"coin",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),A("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),A("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),uW=cW,dW=j({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.06 192.06 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),fW=dW,hW=j({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),pW=hW,vW=j({name:"Collection",__name:"collection",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),A("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),qx=vW,mW=j({name:"Comment",__name:"comment",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),gW=mW,bW=j({name:"Compass",__name:"compass",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),A("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),yW=bW,wW=j({name:"Connection",__name:"connection",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),A("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),_W=wW,CW=j({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),A("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),SW=CW,xW=j({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),A("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),kW=xW,EW=j({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),A("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),AW=EW,TW=j({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.35 52.35 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.35 52.35 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.35 52.35 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.35 52.35 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448S852.928 864 795.968 864H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.3 116.3 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448s41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384s17.088 41.6 17.088 98.56z"}),A("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),MW=TW,PW=j({name:"Crop",__name:"crop",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),A("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),kg=PW,RW=j({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),Ji=RW,IW=j({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),Zi=IW,OW=j({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),LW=OW,NW=j({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),$W=NW,DW=j({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),A("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),A("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),FW=DW,BW=j({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),VW=BW,zW=j({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),HW=zW,WW=j({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),A("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),A("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),jW=WW,KW=j({name:"Delete",__name:"delete",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Gx=KW,UW=j({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.81 143.81 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.81 143.81 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),qW=UW,GW=j({name:"Discount",__name:"discount",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),A("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),YW=GW,XW=j({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.19 448.19 0 0 1 955.392 768H68.544A448.19 448.19 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),JW=XW,ZW=j({name:"Dish",__name:"dish",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),QW=ZW,ej=j({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),Yx=ej,tj=j({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),nj=tj,sj=j({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),aj=sj,oj=j({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248z"})]))}}),rj=oj,ij=j({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),lj=ij,cj=j({name:"Document",__name:"document",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Eg=cj,uj=j({name:"Download",__name:"download",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),Qi=uj,dj=j({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),fj=dj,hj=j({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),pj=hj,vj=j({name:"Edit",__name:"edit",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),A("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),mj=vj,gj=j({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.69 330.69 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.55 47.55 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.3 234.3 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.55 47.55 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),bj=gj,yj=j({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24m526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.23 63.23 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8z"})]))}}),wj=yj,_j=j({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),Cj=_j,Sj=j({name:"Expand",__name:"expand",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),xj=Sj,kj=j({name:"Failed",__name:"failed",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),Ej=kj,Aj=j({name:"Female",__name:"female",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),A("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),A("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),Tj=Aj,Mj=j({name:"Files",__name:"files",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),Vy=Mj,Pj=j({name:"Film",__name:"film",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),Rj=Pj,Ij=j({name:"Filter",__name:"filter",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),Oj=Ij,Lj=j({name:"Finished",__name:"finished",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),Xx=Lj,Nj=j({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),A("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),$j=Nj,Dj=j({name:"Flag",__name:"flag",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),Fj=Dj,Bj=j({name:"Fold",__name:"fold",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),Vj=Bj,zj=j({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),Hj=zj,Wj=j({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),jj=Wj,Kj=j({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),Uj=Kj,qj=j({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),Ag=qj,Gj=j({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),Yj=Gj,Xj=j({name:"Folder",__name:"folder",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),Jj=Xj,Zj=j({name:"Food",__name:"food",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),Qj=Zj,eK=j({name:"Football",__name:"football",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),A("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a386 386 0 0 1-80.448-91.648m653.696-5.312a385.9 385.9 0 0 1-83.776 96.96l-32.512-56.384a322.9 322.9 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184M465.984 445.248l11.136-63.104a323.6 323.6 0 0 0 69.76 0l11.136 63.104a388 388 0 0 1-92.032 0m-62.72-12.8A381.8 381.8 0 0 1 320 396.544l32-55.424a320 320 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.8 381.8 0 0 1-83.328 35.84l-11.2-63.552A320 320 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.9 385.9 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072m657.536.128a1443 1443 0 0 1-49.024 43.072 321.4 321.4 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408M465.92 578.752a388 388 0 0 1 92.032 0l-11.136 63.104a323.6 323.6 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a320 320 0 0 0-62.464 27.712L320 627.392a381.8 381.8 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.3 318.3 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),tK=eK,nK=j({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),sK=nK,aK=j({name:"Fries",__name:"fries",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.74 95.74 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128 128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132 132 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),oK=aK,rK=j({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),zy=rK,iK=j({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),lK=iK,cK=j({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952 952 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),uK=cK,dK=j({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),fK=dK,hK=j({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),pK=hK,vK=j({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16M640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a360 360 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98"}),A("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),mK=vK,gK=j({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),bK=gK,yK=j({name:"Goods",__name:"goods",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),wK=yK,_K=j({name:"Grape",__name:"grape",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),CK=_K,SK=j({name:"Grid",__name:"grid",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),Jx=SK,xK=j({name:"Guide",__name:"guide",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),A("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),kK=xK,EK=j({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),AK=EK,TK=j({name:"Headset",__name:"headset",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),MK=TK,PK=j({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M926.784 480H701.312A192.51 192.51 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.51 192.51 0 0 0 701.312 544zM97.28 544h225.472A192.51 192.51 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.51 192.51 0 0 0 322.688 480H97.216z"})]))}}),RK=PK,IK=j({name:"Help",__name:"help",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.9 254.9 0 0 1 512 768a254.9 254.9 0 0 1-156.992-53.76l-90.944 91.008A382.46 382.46 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.46 382.46 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512s-20.096 113.6-53.76 156.992zm-45.312-541.184A382.46 382.46 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.9 254.9 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76zm-541.184 45.312A382.46 382.46 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.9 254.9 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.6 194.6 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.23 191.23 0 0 0-67.968-146.56A191.3 191.3 0 0 0 512 320a191.23 191.23 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.23 191.23 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),OK=IK,LK=j({name:"Hide",__name:"hide",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),A("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),Zx=LK,NK=j({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),$K=NK,DK=j({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),FK=DK,BK=j({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134M512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133M375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267"})]))}}),VK=BK,zK=j({name:"House",__name:"house",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),HK=zK,WK=j({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0"})]))}}),jK=WK,KK=j({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),UK=KK,qK=j({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.13 208.13 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0m351.36 0h286.272a144 144 0 0 0-286.272 0m-294.848 64 271.808 396.608L778.24 512zM511.68 352.64a207.87 207.87 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),GK=qK,YK=j({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.13 256.13 0 0 0 512 192.64m-64 8.064A256.45 256.45 0 0 0 264.256 384H448zm64-72.064A320.13 320.13 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.38 320.38 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),XK=YK,JK=j({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),ZK=JK,QK=j({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Mf=QK,eU=j({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),tU=eU,nU=j({name:"Key",__name:"key",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),sU=nU,aU=j({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256s32 177.152 32 288z"})]))}}),oU=aU,rU=j({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),A("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),iU=rU,lU=j({name:"Link",__name:"link",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),cU=lU,uU=j({name:"List",__name:"list",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),Qx=uU,dU=j({name:"Loading",__name:"loading",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),Fs=dU,fU=j({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),hU=fU,pU=j({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),A("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),A("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),vU=pU,mU=j({name:"Location",__name:"location",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),A("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),gU=mU,bU=j({name:"Lock",__name:"lock",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),A("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),yU=bU,wU=j({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),_U=wU,CU=j({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),SU=CU,xU=j({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),kU=xU,EU=j({name:"Male",__name:"male",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),A("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),A("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),AU=EU,TU=j({name:"Management",__name:"management",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),MU=TU,PU=j({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),A("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),RU=PU,IU=j({name:"Medal",__name:"medal",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),A("path",{fill:"currentColor",d:"M576 128H448v200a286.7 286.7 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96s-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),OU=IU,LU=j({name:"Memo",__name:"memo",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),A("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),A("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),NU=LU,$U=j({name:"Menu",__name:"menu",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),DU=$U,FU=j({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128"})]))}}),BU=FU,VU=j({name:"Message",__name:"message",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),A("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"})]))}}),zU=VU,HU=j({name:"Mic",__name:"mic",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),WU=HU,jU=j({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),KU=jU,UU=j({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),qU=UU,GU=j({name:"Minus",__name:"minus",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),e9=GU,YU=j({name:"Money",__name:"money",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),A("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.06 29.06 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),A("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),XU=YU,JU=j({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),ZU=JU,QU=j({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.3 448.3 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),A("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),eq=QU,tq=j({name:"Moon",__name:"moon",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),nq=tq,sq=j({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),Hy=sq,aq=j({name:"More",__name:"more",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),t9=aq,oq=j({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),rq=oq,iq=j({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112q-30.144 16.128-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76q16.128 30.144 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112q30.144-16.128 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.46 110.46 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.46 174.46 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.46 174.46 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.46 174.46 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),A("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),lq=iq,cq=j({name:"Mug",__name:"mug",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),uq=cq,dq=j({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),A("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),fq=dq,hq=j({name:"Mute",__name:"mute",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),A("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),pq=hq,vq=j({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),mq=vq,gq=j({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),bq=gq,yq=j({name:"Notification",__name:"notification",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),A("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),wq=yq,_q=j({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),A("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),A("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),Cq=_q,Sq=j({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),A("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),xq=Sq,kq=j({name:"Open",__name:"open",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),A("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),Eq=kq,Aq=j({name:"Operation",__name:"operation",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),Tq=Aq,Mq=j({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),Pq=Mq,Rq=j({name:"Orange",__name:"orange",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 894.72a382.34 382.34 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.34 382.34 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024zM894.656 480a382.34 382.34 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024zm-134.72-261.248A382.34 382.34 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.34 382.34 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.34 382.34 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.34 382.34 0 0 0 89.408 215.936l182.976-182.912A127.2 127.2 0 0 1 388.032 544zm134.72 261.248A382.34 382.34 0 0 0 480 894.656V635.968a127.2 127.2 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),Iq=Rq,Oq=j({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"})]))}}),Lq=Oq,Nq=j({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),A("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6004 6004 0 0 0-49.28 41.408"})]))}}),$q=Nq,Dq=j({name:"Pear",__name:"pear",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M542.336 258.816a443 443 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.69 162.69 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.69 162.69 0 0 0-130.112-133.12m-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a317 317 0 0 0-9.792 15.104 226.69 226.69 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),Fq=Dq,Bq=j({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048"})]))}}),Vq=Bq,zq=j({name:"Phone",__name:"phone",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),Hq=zq,Wq=j({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),n9=Wq,jq=j({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),A("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64-64-64 64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),Kq=jq,Uq=j({name:"Picture",__name:"picture",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),qq=Uq,Gq=j({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),A("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),Yq=Gq,Xq=j({name:"Place",__name:"place",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),A("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),Jq=Xq,Zq=j({name:"Platform",__name:"platform",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),Qq=Zq,eG=j({name:"Plus",__name:"plus",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),Wy=eG,tG=j({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),nG=tG,sG=j({name:"Position",__name:"position",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z"})]))}}),aG=sG,oG=j({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),A("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),rG=oG,iG=j({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),lG=iG,cG=j({name:"Present",__name:"present",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),A("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),A("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),A("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),uG=cG,dG=j({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),A("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),fG=dG,hG=j({name:"Printer",__name:"printer",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),pG=hG,vG=j({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),s9=vG,mG=j({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51q-13.005.48-22.5 10.02c-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01s-3.66-16.16-10.02-22.5c-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01q5.025 17.985 22.5 22.5m242.94 0q17.505-4.545 22.02-22.02c3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5q-9.54 9.51-10.02 22.5c-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),A("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),A("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),gG=mG,bG=j({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),a9=bG,yG=j({name:"Rank",__name:"rank",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"})]))}}),o9=yG,wG=j({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),A("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),_G=wG,CG=j({name:"Reading",__name:"reading",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36"}),A("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),SG=CG,xG=j({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),Tg=xG,kG=j({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),r9=kG,EG=j({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),AG=EG,TG=j({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),MG=TG,PG=j({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),RG=PG,IG=j({name:"Remove",__name:"remove",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),A("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),OG=IG,LG=j({name:"Right",__name:"right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),NG=LG,$G=j({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),i9=$G,DG=j({name:"School",__name:"school",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),A("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),FG=DG,BG=j({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),VG=BG,zG=j({name:"Search",__name:"search",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),l9=zG,HG=j({name:"Select",__name:"select",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}}),WG=HG,jG=j({name:"Sell",__name:"sell",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248"})]))}}),KG=jG,UG=j({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),qG=UG,GG=j({name:"Service",__name:"service",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),YG=GG,XG=j({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),A("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),A("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),A("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),JG=XG,ZG=j({name:"Setting",__name:"setting",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),QG=ZG,eY=j({name:"Share",__name:"share",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),tY=eY,nY=j({name:"Ship",__name:"ship",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z"})]))}}),sY=nY,aY=j({name:"Shop",__name:"shop",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),oY=aY,rY=j({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),A("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),iY=rY,lY=j({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"}),A("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648z"})]))}}),cY=lY,uY=j({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"})]))}}),dY=uY,fY=j({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),hY=fY,pY=j({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),vY=pY,mY=j({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.06 573.06 0 0 0 224.832-137.216 573.1 573.1 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.7 567.7 0 0 0 170.432 532.48zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944s-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248z"})]))}}),gY=mY,bY=j({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),yY=bY,wY=j({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),c9=wY,_Y=j({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),u9=_Y,CY=j({name:"Sort",__name:"sort",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),SY=CY,xY=j({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),kY=xY,EY=j({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),kp=EY,AY=j({name:"Star",__name:"star",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),d9=AY,TY=j({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),A("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),MY=TY,PY=j({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),jy=PY,RY=j({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16zm-548.8 198.72h447.168v2.24l60.8-60.8a63.8 63.8 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64 64 0 0 0-10.24 13.248zm0 64q4.128 7.104 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),IY=RY,OY=j({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5S64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),LY=OY,NY=j({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),A("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),$Y=NY,DY=j({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),FY=DY,BY=j({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0m-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),VY=BY,zY=j({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),HY=zY,WY=j({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),A("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),jY=WY,KY=j({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36"}),A("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.66 196.66 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.7 196.7 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42m-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.7 131.7 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.66 196.66 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.7 196.7 0 0 0 139.08-57.61A196.66 196.66 0 0 0 896 699.31V325.29a196.7 196.7 0 0 0-57.61-139.08m-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82"})]))}}),UY=KY,qY=j({name:"Switch",__name:"switch",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),GY=qY,YY=j({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),XY=YY,JY=j({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),ZY=JY,QY=j({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),f9=QY,eX=j({name:"Timer",__name:"timer",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),A("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),tX=eX,nX=j({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),A("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),sX=nX,aX=j({name:"Tools",__name:"tools",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),oX=aX,rX=j({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),A("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"})]))}}),iX=rX,lX=j({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),A("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z"})]))}}),cX=lX,uX=j({name:"Top",__name:"top",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),dX=uX,fX=j({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),hX=fX,pX=j({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4S745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6S256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6S96 217.6 96 224c3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6S352 790.4 352 800s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4M256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6S320 438.4 320 384V128h384v256q0 81.6-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2M768 896H256c-9.6 0-16 3.2-22.4 9.6S224 918.4 224 928s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6"})]))}}),vX=pX,mX=j({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M480 896V702.08A256.26 256.26 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.26 256.26 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),gX=mX,bX=j({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),A("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),yX=bX,wX=j({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),_X=wX,CX=j({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),A("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),SX=CX,xX=j({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),kX=xX,EX=j({name:"Upload",__name:"upload",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),h9=EX,AX=j({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),TX=AX,MX=j({name:"User",__name:"user",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),PX=MX,RX=j({name:"Van",__name:"van",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),IX=RX,OX=j({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),LX=OX,NX=j({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),$X=NX,DX=j({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),FX=DX,BX=j({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),VX=BX,zX=j({name:"View",__name:"view",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Ky=zX,HX=j({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),WX=HX,jX=j({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),A("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),KX=jX,UX=j({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),qX=UX,GX=j({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Ep=GX,YX=j({name:"Warning",__name:"warning",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),XX=YX,JX=j({name:"Watch",__name:"watch",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),A("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),A("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),ZX=JX,QX=j({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632z"})]))}}),eJ=QX,tJ=j({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),nJ=tJ,sJ=j({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Mg=sJ,aJ=j({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Uy=aJ;const oJ=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:vz,Aim:gz,AlarmClock:yz,Apple:_z,ArrowDown:hr,ArrowDownBold:Sz,ArrowLeft:$o,ArrowLeftBold:Ez,ArrowRight:Ds,ArrowRightBold:Mz,ArrowUp:Sp,ArrowUpBold:Iz,Avatar:Nz,Back:Wx,Baseball:Fz,Basketball:Vz,Bell:jz,BellFilled:Hz,Bicycle:Uz,Bottom:Zz,BottomLeft:Gz,BottomRight:Xz,Bowl:eH,Box:nH,Briefcase:aH,Brush:lH,BrushFilled:rH,Burger:uH,Calendar:jx,Camera:vH,CameraFilled:hH,CaretBottom:gH,CaretLeft:yH,CaretRight:Fy,CaretTop:Kx,Cellphone:SH,ChatDotRound:kH,ChatDotSquare:AH,ChatLineRound:MH,ChatLineSquare:RH,ChatRound:OH,ChatSquare:NH,Check:Tf,Checked:FH,Cherry:VH,Chicken:HH,ChromeFilled:jH,CircleCheck:xp,CircleCheckFilled:Ux,CircleClose:Do,CircleCloseFilled:xg,CirclePlus:ZH,CirclePlusFilled:XH,Clock:By,Close:Ua,CloseBold:tW,Cloudy:aW,Coffee:lW,CoffeeCup:rW,Coin:uW,ColdDrink:fW,Collection:qx,CollectionTag:pW,Comment:gW,Compass:yW,Connection:_W,Coordinate:SW,CopyDocument:kW,Cpu:AW,CreditCard:MW,Crop:kg,DArrowLeft:Ji,DArrowRight:Zi,DCaret:LW,DataAnalysis:$W,DataBoard:FW,DataLine:VW,Delete:Gx,DeleteFilled:HW,DeleteLocation:jW,Dessert:qW,Discount:YW,Dish:QW,DishDot:JW,Document:Eg,DocumentAdd:Yx,DocumentChecked:nj,DocumentCopy:aj,DocumentDelete:rj,DocumentRemove:lj,Download:Qi,Drizzling:fj,Edit:mj,EditPen:pj,Eleme:wj,ElemeFilled:bj,ElementPlus:Cj,Expand:xj,Failed:Ej,Female:Tj,Files:Vy,Film:Rj,Filter:Oj,Finished:Xx,FirstAidKit:$j,Flag:Fj,Fold:Vj,Folder:Jj,FolderAdd:Hj,FolderChecked:jj,FolderDelete:Uj,FolderOpened:Ag,FolderRemove:Yj,Food:Qj,Football:tK,ForkSpoon:sK,Fries:oK,FullScreen:zy,Goblet:pK,GobletFull:lK,GobletSquare:fK,GobletSquareFull:uK,GoldMedal:mK,Goods:wK,GoodsFilled:bK,Grape:CK,Grid:Jx,Guide:kK,Handbag:AK,Headset:MK,Help:OK,HelpFilled:RK,Hide:Zx,Histogram:$K,HomeFilled:FK,HotWater:VK,House:HK,IceCream:GK,IceCreamRound:jK,IceCreamSquare:UK,IceDrink:XK,IceTea:ZK,InfoFilled:Mf,Iphone:tU,Key:sU,KnifeFork:oU,Lightning:iU,Link:cU,List:Qx,Loading:Fs,Location:gU,LocationFilled:hU,LocationInformation:vU,Lock:yU,Lollipop:_U,MagicStick:SU,Magnet:kU,Male:AU,Management:MU,MapLocation:RU,Medal:OU,Memo:NU,Menu:DU,Message:zU,MessageBox:BU,Mic:WU,Microphone:KU,MilkTea:qU,Minus:e9,Money:XU,Monitor:ZU,Moon:nq,MoonNight:eq,More:t9,MoreFilled:Hy,MostlyCloudy:rq,Mouse:lq,Mug:uq,Mute:pq,MuteNotification:fq,NoSmoking:mq,Notebook:bq,Notification:wq,Odometer:Cq,OfficeBuilding:xq,Open:Eq,Operation:Tq,Opportunity:Pq,Orange:Iq,Paperclip:Lq,PartlyCloudy:$q,Pear:Fq,Phone:Hq,PhoneFilled:Vq,Picture:qq,PictureFilled:n9,PictureRounded:Kq,PieChart:Yq,Place:Jq,Platform:Qq,Plus:Wy,Pointer:nG,Position:aG,Postcard:rG,Pouring:lG,Present:uG,PriceTag:fG,Printer:pG,Promotion:s9,QuartzWatch:gG,QuestionFilled:a9,Rank:o9,Reading:SG,ReadingLamp:_G,Refresh:AG,RefreshLeft:Tg,RefreshRight:r9,Refrigerator:MG,Remove:OG,RemoveFilled:RG,Right:NG,ScaleToOriginal:i9,School:FG,Scissor:VG,Search:l9,Select:WG,Sell:KG,SemiSelect:qG,Service:YG,SetUp:JG,Setting:QG,Share:tY,Ship:sY,Shop:oY,ShoppingBag:iY,ShoppingCart:dY,ShoppingCartFull:cY,ShoppingTrolley:hY,Smoking:vY,Soccer:gY,SoldOut:yY,Sort:SY,SortDown:c9,SortUp:u9,Stamp:kY,Star:d9,StarFilled:kp,Stopwatch:MY,SuccessFilled:jy,Sugar:IY,Suitcase:$Y,SuitcaseLine:LY,Sunny:FY,Sunrise:VY,Sunset:HY,Switch:GY,SwitchButton:jY,SwitchFilled:UY,TakeawayBox:XY,Ticket:ZY,Tickets:f9,Timer:tX,ToiletPaper:sX,Tools:oX,Top:dX,TopLeft:iX,TopRight:cX,TrendCharts:hX,Trophy:gX,TrophyBase:vX,TurnOff:yX,Umbrella:_X,Unlock:SX,Upload:h9,UploadFilled:kX,User:PX,UserFilled:TX,Van:IX,VideoCamera:$X,VideoCameraFilled:LX,VideoPause:FX,VideoPlay:VX,View:Ky,Wallet:KX,WalletFilled:WX,WarnTriangleFilled:qX,Warning:XX,WarningFilled:Ep,Watch:ZX,Watermelon:eJ,WindPower:nJ,ZoomIn:Mg,ZoomOut:Uy},Symbol.toStringTag,{value:"Module"})),rn=re([String,Object,Function]),p9={Close:Ua},qy={Close:Ua,SuccessFilled:jy,InfoFilled:Mf,WarningFilled:Ep,CircleCloseFilled:xg},sc={primary:Mf,success:jy,warning:Ep,error:xg,info:Mf},Pg={validating:Fs,success:xp,error:Do},rJ=["light","dark"],iJ=Me({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:_p(sc),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:rJ,default:"light"}}),lJ={close:e=>e instanceof MouseEvent},cJ=Me({size:{type:re([Number,String])},color:{type:String}});var uJ=j({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:cJ,setup(e){const t=e,n=Ee("icon"),s=E(()=>{const{size:a,color:o}=t,r=On(a);return!r&&!o?{}:{fontSize:r,"--color":o}});return(a,o)=>(S(),P("i",Tt({class:f(n).b(),style:s.value},a.$attrs),[ue(a.$slots,"default")],16))}});const Je=yt(uJ);var Fo=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Fo||{});function Gy(e){return vn(e)&&e.type===He}function v9(e){return vn(e)&&e.type===Gn}function dJ(e){return vn(e)&&!Gy(e)&&!v9(e)}const fJ=e=>{if(!vn(e))return{};const t=e.props||{},n=(vn(e.type)?e.type.props:void 0)||{},s={};return Object.keys(n).forEach(a=>{Gt(n[a],"default")&&(s[a]=n[a].default)}),Object.keys(t).forEach(a=>{s[ka(a)]=t[a]}),s},lo=e=>{const t=Ae(e)?e:[e],n=[];return t.forEach(s=>{var a;Ae(s)?n.push(...lo(s)):vn(s)&&((a=s.component)!=null&&a.subTree)?n.push(s,...lo(s.component.subTree)):vn(s)&&Ae(s.children)?n.push(...lo(s.children)):vn(s)&&s.shapeFlag===2?n.push(...lo(s.type())):n.push(s)}),n};var hJ=j({name:"ElAlert",__name:"alert",props:iJ,emits:lJ,setup(e,{emit:t}){const{Close:n}=qy,s=e,a=t,o=jn(),r=Ee("alert"),i=F(!0),l=E(()=>sc[s.type]),c=E(()=>{var d;if(s.description)return!0;const h=(d=o.default)==null?void 0:d.call(o);return h?lo(h).some(v=>!v9(v)):!1}),u=d=>{i.value=!1,a("close",d)};return(d,h)=>(S(),le(ws,{name:f(r).b("fade"),persisted:""},{default:X(()=>[Ct(A("div",{class:D([f(r).b(),f(r).m(e.type),f(r).is("center",e.center),f(r).is(e.effect)]),role:"alert"},[e.showIcon&&(d.$slots.icon||l.value)?(S(),le(f(Je),{key:0,class:D([f(r).e("icon"),f(r).is("big",c.value)])},{default:X(()=>[ue(d.$slots,"icon",{},()=>[(S(),le(kt(l.value)))])]),_:3},8,["class"])):ie("v-if",!0),A("div",{class:D(f(r).e("content"))},[e.title||d.$slots.title?(S(),P("span",{key:0,class:D([f(r).e("title"),{"with-description":c.value}])},[ue(d.$slots,"title",{},()=>[je(ge(e.title),1)])],2)):ie("v-if",!0),c.value?(S(),P("p",{key:1,class:D(f(r).e("description"))},[ue(d.$slots,"default",{},()=>[je(ge(e.description),1)])],2)):ie("v-if",!0),e.closable?(S(),P(He,{key:2},[e.closeText?(S(),P("div",{key:0,class:D([f(r).e("close-btn"),f(r).is("customed")]),onClick:u},ge(e.closeText),3)):(S(),le(f(Je),{key:1,class:D(f(r).e("close-btn")),onClick:u},{default:X(()=>[W(f(n))]),_:1},8,["class"]))],64)):ie("v-if",!0)],2)],2),[[jt,i.value]])]),_:3},8,["name"]))}});const pJ=yt(hJ);var qa="top",Bo="bottom",Vo="right",Ga="left",Yy="auto",Ap=[qa,Bo,Vo,Ga],Pf="start",Tp="end",vJ="clippingParents",m9="viewport",Mp="popper",mJ="reference",g9=Ap.reduce(function(e,t){return e.concat([t+"-"+Pf,t+"-"+Tp])},[]),ei=[].concat(Ap,[Yy]).reduce(function(e,t){return e.concat([t,t+"-"+Pf,t+"-"+Tp])},[]),gJ="beforeRead",bJ="read",yJ="afterRead",wJ="beforeMain",_J="main",CJ="afterMain",SJ="beforeWrite",xJ="write",kJ="afterWrite",EJ=[gJ,bJ,yJ,wJ,_J,CJ,SJ,xJ,kJ];function ti(e){return e?(e.nodeName||"").toLowerCase():null}function co(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Su(e){var t=co(e).Element;return e instanceof t||e instanceof Element}function zo(e){var t=co(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Xy(e){if(typeof ShadowRoot>"u")return!1;var t=co(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function AJ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!zo(o)||!ti(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(r){var i=a[r];i===!1?o.removeAttribute(r):o.setAttribute(r,i===!0?"":i)}))})}function TJ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(s){var a=t.elements[s],o=t.attributes[s]||{},r=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),i=r.reduce(function(l,c){return l[c]="",l},{});!zo(a)||!ti(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}var b9={name:"applyStyles",enabled:!0,phase:"write",fn:AJ,effect:TJ,requires:["computeStyles"]};function ni(e){return e.split("-")[0]}var xu=Math.max,Rg=Math.min,Rf=Math.round;function Jy(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function y9(){return!/^((?!chrome|android).)*safari/i.test(Jy())}function If(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),a=1,o=1;t&&zo(e)&&(a=e.offsetWidth>0&&Rf(s.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Rf(s.height)/e.offsetHeight||1);var r=Su(e)?co(e):window,i=r.visualViewport,l=!y9()&&n,c=(s.left+(l&&i?i.offsetLeft:0))/a,u=(s.top+(l&&i?i.offsetTop:0))/o,d=s.width/a,h=s.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function Zy(e){var t=If(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function w9(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Xy(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function el(e){return co(e).getComputedStyle(e)}function MJ(e){return["table","td","th"].indexOf(ti(e))>=0}function ac(e){return((Su(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ig(e){return ti(e)==="html"?e:e.assignedSlot||e.parentNode||(Xy(e)?e.host:null)||ac(e)}function _9(e){return!zo(e)||el(e).position==="fixed"?null:e.offsetParent}function PJ(e){var t=/firefox/i.test(Jy()),n=/Trident/i.test(Jy());if(n&&zo(e)){var s=el(e);if(s.position==="fixed")return null}var a=Ig(e);for(Xy(a)&&(a=a.host);zo(a)&&["html","body"].indexOf(ti(a))<0;){var o=el(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Pp(e){for(var t=co(e),n=_9(e);n&&MJ(n)&&el(n).position==="static";)n=_9(n);return n&&(ti(n)==="html"||ti(n)==="body"&&el(n).position==="static")?t:n||PJ(e)||t}function Qy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rp(e,t,n){return xu(e,Rg(t,n))}function RJ(e,t,n){var s=Rp(e,t,n);return s>n?n:s}function C9(){return{top:0,right:0,bottom:0,left:0}}function S9(e){return Object.assign({},C9(),e)}function x9(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var IJ=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,S9(typeof e!="number"?e:x9(e,Ap))};function OJ(e){var t,n=e.state,s=e.name,a=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,i=ni(n.placement),l=Qy(i),c=[Ga,Vo].indexOf(i)>=0,u=c?"height":"width";if(!(!o||!r)){var d=IJ(a.padding,n),h=Zy(o),p=l==="y"?qa:Ga,v=l==="y"?Bo:Vo,m=n.rects.reference[u]+n.rects.reference[l]-r[l]-n.rects.popper[u],g=r[l]-n.rects.reference[l],b=Pp(o),C=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=m/2-g/2,_=d[p],x=C-h[u]-d[v],k=C/2-h[u]/2+w,T=Rp(_,k,x),I=l;n.modifiersData[s]=(t={},t[I]=T,t.centerOffset=T-k,t)}}function LJ(e){var t=e.state,n=e.options,s=n.element,a=s===void 0?"[data-popper-arrow]":s;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||w9(t.elements.popper,a)&&(t.elements.arrow=a))}var NJ={name:"arrow",enabled:!0,phase:"main",fn:OJ,effect:LJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Of(e){return e.split("-")[1]}var $J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DJ(e,t){var n=e.x,s=e.y,a=t.devicePixelRatio||1;return{x:Rf(n*a)/a||0,y:Rf(s*a)/a||0}}function k9(e){var t,n=e.popper,s=e.popperRect,a=e.placement,o=e.variation,r=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=r.x,p=h===void 0?0:h,v=r.y,m=v===void 0?0:v,g=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var b=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),w=Ga,_=qa,x=window;if(c){var k=Pp(n),T="clientHeight",I="clientWidth";if(k===co(n)&&(k=ac(n),el(k).position!=="static"&&i==="absolute"&&(T="scrollHeight",I="scrollWidth")),k=k,a===qa||(a===Ga||a===Vo)&&o===Tp){_=Bo;var O=d&&k===x&&x.visualViewport?x.visualViewport.height:k[T];m-=O-s.height,m*=l?1:-1}if(a===Ga||(a===qa||a===Bo)&&o===Tp){w=Vo;var R=d&&k===x&&x.visualViewport?x.visualViewport.width:k[I];p-=R-s.width,p*=l?1:-1}}var $=Object.assign({position:i},c&&$J),M=u===!0?DJ({x:p,y:m},co(n)):{x:p,y:m};if(p=M.x,m=M.y,l){var B;return Object.assign({},$,(B={},B[_]=C?"0":"",B[w]=b?"0":"",B.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",B))}return Object.assign({},$,(t={},t[_]=C?m+"px":"",t[w]=b?p+"px":"",t.transform="",t))}function FJ(e){var t=e.state,n=e.options,s=n.gpuAcceleration,a=s===void 0?!0:s,o=n.adaptive,r=o===void 0?!0:o,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:ni(t.placement),variation:Of(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,k9(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,k9(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var E9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:FJ,data:{}},Og={passive:!0};function BJ(e){var t=e.state,n=e.instance,s=e.options,a=s.scroll,o=a===void 0?!0:a,r=s.resize,i=r===void 0?!0:r,l=co(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Og)}),i&&l.addEventListener("resize",n.update,Og),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Og)}),i&&l.removeEventListener("resize",n.update,Og)}}var A9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:BJ,data:{}},VJ={left:"right",right:"left",bottom:"top",top:"bottom"};function Lg(e){return e.replace(/left|right|bottom|top/g,function(t){return VJ[t]})}var zJ={start:"end",end:"start"};function T9(e){return e.replace(/start|end/g,function(t){return zJ[t]})}function e3(e){var t=co(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function t3(e){return If(ac(e)).left+e3(e).scrollLeft}function HJ(e,t){var n=co(e),s=ac(e),a=n.visualViewport,o=s.clientWidth,r=s.clientHeight,i=0,l=0;if(a){o=a.width,r=a.height;var c=y9();(c||!c&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:r,x:i+t3(e),y:l}}function WJ(e){var t,n=ac(e),s=e3(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=xu(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),r=xu(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-s.scrollLeft+t3(e),l=-s.scrollTop;return el(a||n).direction==="rtl"&&(i+=xu(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:r,x:i,y:l}}function n3(e){var t=el(e),n=t.overflow,s=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+s)}function M9(e){return["html","body","#document"].indexOf(ti(e))>=0?e.ownerDocument.body:zo(e)&&n3(e)?e:M9(Ig(e))}function Ip(e,t){var n;t===void 0&&(t=[]);var s=M9(e),a=s===((n=e.ownerDocument)==null?void 0:n.body),o=co(s),r=a?[o].concat(o.visualViewport||[],n3(s)?s:[]):s,i=t.concat(r);return a?i:i.concat(Ip(Ig(r)))}function s3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jJ(e,t){var n=If(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function P9(e,t,n){return t===m9?s3(HJ(e,n)):Su(t)?jJ(t,n):s3(WJ(ac(e)))}function KJ(e){var t=Ip(Ig(e)),n=["absolute","fixed"].indexOf(el(e).position)>=0,s=n&&zo(e)?Pp(e):e;return Su(s)?t.filter(function(a){return Su(a)&&w9(a,s)&&ti(a)!=="body"}):[]}function UJ(e,t,n,s){var a=t==="clippingParents"?KJ(e):[].concat(t),o=[].concat(a,[n]),r=o[0],i=o.reduce(function(l,c){var u=P9(e,c,s);return l.top=xu(u.top,l.top),l.right=Rg(u.right,l.right),l.bottom=Rg(u.bottom,l.bottom),l.left=xu(u.left,l.left),l},P9(e,r,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function R9(e){var t=e.reference,n=e.element,s=e.placement,a=s?ni(s):null,o=s?Of(s):null,r=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(a){case qa:l={x:r,y:t.y-n.height};break;case Bo:l={x:r,y:t.y+t.height};break;case Vo:l={x:t.x+t.width,y:i};break;case Ga:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=a?Qy(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Pf:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Tp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Op(e,t){t===void 0&&(t={});var n=t,s=n.placement,a=s===void 0?e.placement:s,o=n.strategy,r=o===void 0?e.strategy:o,i=n.boundary,l=i===void 0?vJ:i,c=n.rootBoundary,u=c===void 0?m9:c,d=n.elementContext,h=d===void 0?Mp:d,p=n.altBoundary,v=p===void 0?!1:p,m=n.padding,g=m===void 0?0:m,b=S9(typeof g!="number"?g:x9(g,Ap)),C=h===Mp?mJ:Mp,w=e.rects.popper,_=e.elements[v?C:h],x=UJ(Su(_)?_:_.contextElement||ac(e.elements.popper),l,u,r),k=If(e.elements.reference),T=R9({reference:k,element:w,placement:a}),I=s3(Object.assign({},w,T)),O=h===Mp?I:k,R={top:x.top-O.top+b.top,bottom:O.bottom-x.bottom+b.bottom,left:x.left-O.left+b.left,right:O.right-x.right+b.right},$=e.modifiersData.offset;if(h===Mp&&$){var M=$[a];Object.keys(R).forEach(function(B){var U=[Vo,Bo].indexOf(B)>=0?1:-1,J=[qa,Bo].indexOf(B)>=0?"y":"x";R[B]+=M[J]*U})}return R}function qJ(e,t){t===void 0&&(t={});var n=t,s=n.placement,a=n.boundary,o=n.rootBoundary,r=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?ei:l,u=Of(s),d=u?i?g9:g9.filter(function(v){return Of(v)===u}):Ap,h=d.filter(function(v){return c.indexOf(v)>=0});h.length===0&&(h=d);var p=h.reduce(function(v,m){return v[m]=Op(e,{placement:m,boundary:a,rootBoundary:o,padding:r})[ni(m)],v},{});return Object.keys(p).sort(function(v,m){return p[v]-p[m]})}function GJ(e){if(ni(e)===Yy)return[];var t=Lg(e);return[T9(e),t,T9(t)]}function YJ(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,v=p===void 0?!0:p,m=n.allowedAutoPlacements,g=t.options.placement,b=ni(g),C=b===g,w=l||(C||!v?[Lg(g)]:GJ(g)),_=[g].concat(w).reduce(function(ee,se){return ee.concat(ni(se)===Yy?qJ(t,{placement:se,boundary:u,rootBoundary:d,padding:c,flipVariations:v,allowedAutoPlacements:m}):se)},[]),x=t.rects.reference,k=t.rects.popper,T=new Map,I=!0,O=_[0],R=0;R<_.length;R++){var $=_[R],M=ni($),B=Of($)===Pf,U=[qa,Bo].indexOf(M)>=0,J=U?"width":"height",Y=Op(t,{placement:$,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),L=U?B?Vo:Ga:B?Bo:qa;x[J]>k[J]&&(L=Lg(L));var N=Lg(L),V=[];if(o&&V.push(Y[M]<=0),i&&V.push(Y[L]<=0,Y[N]<=0),V.every(function(ee){return ee})){O=$,I=!1;break}T.set($,V)}if(I)for(var z=v?3:1,q=function(ee){var se=_.find(function(pe){var te=T.get(pe);if(te)return te.slice(0,ee).every(function(fe){return fe})});if(se)return O=se,"break"},Q=z;Q>0;Q--){var K=q(Q);if(K==="break")break}t.placement!==O&&(t.modifiersData[s]._skip=!0,t.placement=O,t.reset=!0)}}var XJ={name:"flip",enabled:!0,phase:"main",fn:YJ,requiresIfExists:["offset"],data:{_skip:!1}};function I9(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function O9(e){return[qa,Vo,Bo,Ga].some(function(t){return e[t]>=0})}function JJ(e){var t=e.state,n=e.name,s=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,r=Op(t,{elementContext:"reference"}),i=Op(t,{altBoundary:!0}),l=I9(r,s),c=I9(i,a,o),u=O9(l),d=O9(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var ZJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:JJ};function QJ(e,t,n){var s=ni(e),a=[Ga,qa].indexOf(s)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],i=o[1];return r=r||0,i=(i||0)*a,[Ga,Vo].indexOf(s)>=0?{x:i,y:r}:{x:r,y:i}}function eZ(e){var t=e.state,n=e.options,s=e.name,a=n.offset,o=a===void 0?[0,0]:a,r=ei.reduce(function(u,d){return u[d]=QJ(d,t.rects,o),u},{}),i=r[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=r}var tZ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eZ};function nZ(e){var t=e.state,n=e.name;t.modifiersData[n]=R9({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var L9={name:"popperOffsets",enabled:!0,phase:"read",fn:nZ,data:{}};function sZ(e){return e==="x"?"y":"x"}function aZ(e){var t=e.state,n=e.options,s=e.name,a=n.mainAxis,o=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,v=n.tetherOffset,m=v===void 0?0:v,g=Op(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=ni(t.placement),C=Of(t.placement),w=!C,_=Qy(b),x=sZ(_),k=t.modifiersData.popperOffsets,T=t.rects.reference,I=t.rects.popper,O=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(o){var B,U=_==="y"?qa:Ga,J=_==="y"?Bo:Vo,Y=_==="y"?"height":"width",L=k[_],N=L+g[U],V=L-g[J],z=p?-I[Y]/2:0,q=C===Pf?T[Y]:I[Y],Q=C===Pf?-I[Y]:-T[Y],K=t.elements.arrow,ee=p&&K?Zy(K):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:C9(),pe=se[U],te=se[J],fe=Rp(0,T[Y],ee[Y]),ve=w?T[Y]/2-z-fe-pe-R.mainAxis:q-fe-pe-R.mainAxis,ce=w?-T[Y]/2+z+fe+te+R.mainAxis:Q+fe+te+R.mainAxis,Z=t.elements.arrow&&Pp(t.elements.arrow),H=Z?_==="y"?Z.clientTop||0:Z.clientLeft||0:0,ae=(B=$==null?void 0:$[_])!=null?B:0,de=L+ve-ae-H,ye=L+ce-ae,_e=Rp(p?Rg(N,de):N,L,p?xu(V,ye):V);k[_]=_e,M[_]=_e-L}if(i){var Se,Le=_==="x"?qa:Ga,De=_==="x"?Bo:Vo,$e=k[x],Ce=x==="y"?"height":"width",Oe=$e+g[Le],Ie=$e-g[De],We=[qa,Ga].indexOf(b)!==-1,nt=(Se=$==null?void 0:$[x])!=null?Se:0,dt=We?Oe:$e-T[Ce]-I[Ce]-nt+R.altAxis,Fe=We?$e+T[Ce]+I[Ce]-nt-R.altAxis:Ie,Be=p&&We?RJ(dt,$e,Fe):Rp(p?dt:Oe,$e,p?Fe:Ie);k[x]=Be,M[x]=Be-$e}t.modifiersData[s]=M}}var oZ={name:"preventOverflow",enabled:!0,phase:"main",fn:aZ,requiresIfExists:["offset"]};function rZ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function iZ(e){return e===co(e)||!zo(e)?e3(e):rZ(e)}function lZ(e){var t=e.getBoundingClientRect(),n=Rf(t.width)/e.offsetWidth||1,s=Rf(t.height)/e.offsetHeight||1;return n!==1||s!==1}function cZ(e,t,n){n===void 0&&(n=!1);var s=zo(t),a=zo(t)&&lZ(t),o=ac(t),r=If(e,a,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((ti(t)!=="body"||n3(o))&&(i=iZ(t)),zo(t)?(l=If(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=t3(o))),{x:r.left+i.scrollLeft-l.x,y:r.top+i.scrollTop-l.y,width:r.width,height:r.height}}function uZ(e){var t=new Map,n=new Set,s=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&a(l)}}),s.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),s}function dZ(e){var t=uZ(e);return EJ.reduce(function(n,s){return n.concat(t.filter(function(a){return a.phase===s}))},[])}function fZ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function hZ(e){var t=e.reduce(function(n,s){var a=n[s.name];return n[s.name]=a?Object.assign({},a,s,{options:Object.assign({},a.options,s.options),data:Object.assign({},a.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var N9={placement:"bottom",modifiers:[],strategy:"absolute"};function $9(){for(var e=arguments.length,t=new Array(e),n=0;nGi(gZ,e),bZ=["fixed","absolute"],yZ=Me({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:re(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ei,default:"bottom"},popperOptions:{type:re(Object),default:()=>({})},strategy:{type:String,values:bZ,default:"absolute"}}),F9=Me({...yZ,...D9,id:String,style:{type:re([String,Array,Object])},className:{type:re([String,Array,Object])},effect:{type:re(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:re([String,Array,Object])},popperStyle:{type:re([String,Array,Object])},referenceEl:{type:re(Object)},triggerTargetEl:{type:re(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ca(["ariaLabel"]),loop:Boolean}),wZ={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0};function B9(){let e;const t=(s,a)=>{n(),e=window.setTimeout(s,a)},n=()=>window.clearTimeout(e);return _u(()=>n()),{registerTimeout:t,cancelTimeout:n}}const _Z=Me({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),CZ=({showAfter:e,hideAfter:t,autoClose:n,open:s,close:a})=>{const{registerTimeout:o}=B9(),{registerTimeout:r,cancelTimeout:i}=B9();return{onOpen:(u,d=f(e))=>{o(()=>{s(u);const h=f(n);at(h)&&h>0&&r(()=>{a(u)},h)},d)},onClose:(u,d=f(t))=>{i(),o(()=>{a(u)},d)}}},ln=Me({..._Z,...F9,appendTo:{type:Cp.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:re(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ca(["ariaLabel"])}),Ln=e=>e,Lp=Me({id:{type:String,default:void 0},size:ds,disabled:{type:Boolean,default:void 0},modelValue:{type:re([String,Number,Object]),default:""},modelModifiers:{type:re(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:re(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:re([Boolean,Object]),default:!1},autocomplete:{type:re(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:rn,default:Do},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:rn},prefixIcon:{type:rn},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:re([Object,Array,String]),default:()=>Ln({})},autofocus:Boolean,rows:{type:Number,default:2},...ca(["ariaLabel"]),inputmode:{type:re(String),default:void 0},name:String}),SZ={[mt]:e=>Xe(e),input:e=>Xe(e),change:(e,t)=>Xe(e)&&(t instanceof Event||t===void 0),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};Wr(Do);const xZ=Me({...Lp,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:re(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:re([Function,Array]),default:en},popperClass:ln.popperClass,popperStyle:ln.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:ln.teleported,appendTo:ln.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),kZ={[mt]:e=>Xe(e)||at(e),[os]:e=>Xe(e)||at(e),[Dt]:e=>Xe(e)||at(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>bt(e)},o3=()=>Xt&&/firefox/i.test(window.navigator.userAgent),V9=()=>Xt&&/android/i.test(window.navigator.userAgent);let Ya;const EZ={height:"0",visibility:"hidden",overflow:o3()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},AZ=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],z9=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function TZ(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),s=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:AZ.map(r=>[r,t.getPropertyValue(r)]),paddingSize:s,borderSize:a,boxSizing:n}}function H9(e,t=1,n){var s,a;Ya||(Ya=document.createElement("textarea"),((s=e.parentNode)!=null?s:document.body).appendChild(Ya));const{paddingSize:o,borderSize:r,boxSizing:i,contextStyle:l}=TZ(e);l.forEach(([h,p])=>Ya==null?void 0:Ya.style.setProperty(h,p)),Object.entries(EZ).forEach(([h,p])=>Ya==null?void 0:Ya.style.setProperty(h,p,"important")),Ya.value=e.value||e.placeholder||"";let c=Ya.scrollHeight;const u={};i==="border-box"?c=c+r:i==="content-box"&&(c=c-o),Ya.value="";const d=Ya.scrollHeight-o;if(at(t)){let h=d*t;i==="border-box"&&(h=h+o+r),c=Math.max(h,c),u.minHeight=`${h}px`}if(at(n)){let h=d*n;i==="border-box"&&(h=h+o+r),c=Math.min(h,c)}return u.height=`${c}px`,(a=Ya.parentNode)==null||a.removeChild(Ya),Ya=void 0,u}const MZ=["class","style"],PZ=/^on[A-Z]/,Ng=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,s=E(()=>((n==null?void 0:n.value)||[]).concat(MZ)),a=Mt();return E(a?()=>{var o;return hp(Object.entries((o=a.proxy)==null?void 0:o.$attrs).filter(([r])=>!s.value.includes(r)&&!(t&&PZ.test(r))))}:()=>({}))},W9=e=>{const t=Mt();return E(()=>{var n,s;return(s=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:s[e]})},ku=Symbol("formContextKey"),si=Symbol("formItemContextKey"),rs=(e,t={})=>{const n=F(void 0),s=t.prop?n:W9("size"),a=t.global?n:Ox(),o=t.form?{size:void 0}:Ke(ku,void 0),r=t.formItem?{size:void 0}:Ke(si,void 0);return E(()=>s.value||f(e)||(r==null?void 0:r.size)||(o==null?void 0:o.size)||a.value||"")},Nn=e=>{const t=W9("disabled"),n=Ke(ku,void 0);return E(()=>{var s,a,o;return(o=(a=(s=t.value)!=null?s:f(e))!=null?a:n==null?void 0:n.disabled)!=null?o:!1})},RZ='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',j9=e=>typeof Element>"u"?!1:e instanceof Element,IZ=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,K9=e=>Array.from(e.querySelectorAll(RZ)).filter(t=>Np(t)&&IZ(t)),Np=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},$g=function(e,t,...n){let s;t.includes("mouse")||t.includes("click")?s="MouseEvents":t.includes("key")?s="KeyboardEvent":s="HTMLEvents";const a=document.createEvent(s);return a.initEvent(t,...n),e.dispatchEvent(a),e},U9=e=>!e.getAttribute("aria-owns"),q9=(e,t,n)=>{const{parentNode:s}=e;if(!s)return null;const a=s.querySelectorAll(n),o=Array.prototype.indexOf.call(a,e);return a[o+t]||null},$p=(e,t)=>{if(!e||!e.focus)return;let n=!1;j9(e)&&!Np(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),j9(e)&&n&&e.removeAttribute("tabindex")},Dg=e=>{e&&($p(e),!U9(e)&&e.click())};function tl(e,{disabled:t,beforeFocus:n,afterFocus:s,beforeBlur:a,afterBlur:o}={}){const r=Mt(),{emit:i}=r,l=bn(),c=F(!1),u=p=>{const v=Ze(n)?n(p):!1;f(t)||c.value||v||(c.value=!0,i("focus",p),s==null||s())},d=p=>{var v;const m=Ze(a)?a(p):!1;f(t)||p.relatedTarget&&((v=l.value)!=null&&v.contains(p.relatedTarget))||m||(c.value=!1,i("blur",p),o==null||o())},h=p=>{var v,m;f(t)||Np(p.target)||(v=l.value)!=null&&v.contains(document.activeElement)&&l.value!==document.activeElement||(m=e.value)==null||m.focus()};return be([l,()=>f(t)],([p,v])=>{p&&(v?p.removeAttribute("tabindex"):p.setAttribute("tabindex","-1"))}),an(l,"focus",u,!0),an(l,"blur",d,!0),an(l,"click",h,!0),{isFocused:c,wrapperRef:l,handleFocus:u,handleBlur:d}}const G9={prefix:Math.floor(Math.random()*1e4),current:0},OZ=Symbol("elIdInjection"),r3=()=>Mt()?Ke(OZ,G9):G9,Bs=e=>{const t=r3(),n=Py();return bx(()=>f(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Ts=()=>{const e=Ke(ku,void 0),t=Ke(si,void 0);return{form:e,formItem:t}},uo=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:s})=>{n||(n=F(!1)),s||(s=F(!1));const a=Mt(),o=()=>{let c=a==null?void 0:a.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=F();let i;const l=E(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return Pt(()=>{i=be([sn(e,"id"),n],([c,u])=>{const d=c??(u?void 0:Bs().value);d!==r.value&&(t!=null&&t.removeInputId&&!o()&&(r.value&&t.removeInputId(r.value),!(s!=null&&s.value)&&!u&&d&&t.addInputId(d)),r.value=d)},{immediate:!0})}),du(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:l,inputId:r}},LZ=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function Dp({afterComposition:e,emit:t}){const n=F(!1),s=i=>{t==null||t("compositionstart",i),n.value=!0},a=i=>{var l;t==null||t("compositionupdate",i);const c=(l=i.target)==null?void 0:l.value,u=c[c.length-1]||"";n.value=!LZ(u)},o=i=>{t==null||t("compositionend",i),n.value&&(n.value=!1,ze(()=>e(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?o(i):a(i)},handleCompositionStart:s,handleCompositionUpdate:a,handleCompositionEnd:o}}function NZ(e){let t;function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:o,value:r}=e.value;if(a==null||o==null)return;const i=r.slice(0,Math.max(0,a)),l=r.slice(Math.max(0,o));t={selectionStart:a,selectionEnd:o,value:r,beforeTxt:i,afterTxt:l}}function s(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:o,afterTxt:r,selectionStart:i}=t;if(o==null||r==null||i==null)return;let l=a.length;if(a.endsWith(r))l=a.length-r.length;else if(a.startsWith(o))l=o.length;else{const c=o[i-1],u=a.indexOf(c,i-1);u!==-1&&(l=u+1)}e.value.setSelectionRange(l,l)}return[n,s]}const $Z=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],DZ=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role"];var FZ=j({name:"ElInput",inheritAttrs:!1,__name:"input",props:Lp,emits:SZ,setup(e,{expose:t,emit:n}){const s=e,a=n,o=zi(),r=Ng(),i=jn(),l=E(()=>[s.type==="textarea"?g.b():m.b(),m.m(p.value),m.is("disabled",v.value),m.is("exceed",K.value),{[m.b("group")]:i.prepend||i.append,[m.m("prefix")]:i.prefix||s.prefixIcon,[m.m("suffix")]:i.suffix||s.suffixIcon||s.clearable||s.showPassword,[m.bm("suffix","password-clear")]:V.value&&z.value,[m.b("hidden")]:s.type==="hidden"},o.class]),c=E(()=>[m.e("wrapper"),m.is("focus",O.value)]),{form:u,formItem:d}=Ts(),{inputId:h}=uo(s,{formItemContext:d}),p=rs(),v=Nn(),m=Ee("input"),g=Ee("textarea"),b=bn(),C=bn(),w=F(!1),_=F(!1),x=F(),k=bn(s.inputStyle),T=E(()=>b.value||C.value),{wrapperRef:I,isFocused:O,handleFocus:R,handleBlur:$}=tl(T,{disabled:v,afterBlur(){var Fe;s.validateEvent&&((Fe=d==null?void 0:d.validate)==null||Fe.call(d,"blur").catch(Be=>void 0))}}),M=E(()=>{var Fe;return(Fe=u==null?void 0:u.statusIcon)!=null?Fe:!1}),B=E(()=>(d==null?void 0:d.validateState)||""),U=E(()=>B.value&&Pg[B.value]),J=E(()=>_.value?Ky:Zx),Y=E(()=>[o.style]),L=E(()=>[s.inputStyle,k.value,{resize:s.resize}]),N=E(()=>Xn(s.modelValue)?"":String(s.modelValue)),V=E(()=>s.clearable&&!v.value&&!s.readonly&&!!N.value&&(O.value||w.value)),z=E(()=>s.showPassword&&!v.value&&!!N.value),q=E(()=>s.showWordLimit&&!!s.maxlength&&(s.type==="text"||s.type==="textarea")&&!v.value&&!s.readonly&&!s.showPassword),Q=E(()=>N.value.length),K=E(()=>!!q.value&&Q.value>Number(s.maxlength)),ee=E(()=>!!i.suffix||!!s.suffixIcon||V.value||s.showPassword||q.value||!!B.value&&M.value),se=E(()=>!!Object.keys(s.modelModifiers).length),[pe,te]=NZ(b);En(C,Fe=>{if(ce(),!q.value||s.resize!=="both"&&s.resize!=="horizontal")return;const Be=Fe[0],{width:et}=Be.contentRect;x.value={right:`calc(100% - ${et+22-10}px)`}});const fe=()=>{const{type:Fe,autosize:Be}=s;if(!(!Xt||Fe!=="textarea"||!C.value))if(Be){const et=bt(Be)?Be.minRows:void 0,Wt=bt(Be)?Be.maxRows:void 0,qt=H9(C.value,et,Wt);k.value={overflowY:"hidden",...qt},ze(()=>{C.value.offsetHeight,k.value=qt})}else k.value={minHeight:H9(C.value).minHeight}},ce=(Fe=>{let Be=!1;return()=>{var et;if(Be||!s.autosize)return;((et=C.value)==null?void 0:et.offsetParent)===null||(setTimeout(Fe),Be=!0)}})(fe),Z=()=>{const Fe=T.value,Be=s.formatter?s.formatter(N.value):N.value;!Fe||Fe.value===Be||s.type==="file"||(Fe.value=Be)},H=Fe=>{const{trim:Be,number:et}=s.modelModifiers;return Be&&(Fe=Fe.trim()),et&&(Fe=`${z9(Fe)}`),s.formatter&&s.parser&&(Fe=s.parser(Fe)),Fe},ae=async Fe=>{if(ye.value)return;const{lazy:Be}=s.modelModifiers;let{value:et}=Fe.target;if(Be){a(os,et);return}if(et=H(et),String(et)===N.value){s.formatter&&Z();return}pe(),a(mt,et),a(os,et),await ze(),(s.formatter&&s.parser||!se.value)&&Z(),te()},de=async Fe=>{let{value:Be}=Fe.target;Be=H(Be),s.modelModifiers.lazy&&a(mt,Be),a(Dt,Be,Fe),await ze(),Z()},{isComposing:ye,handleCompositionStart:_e,handleCompositionUpdate:Se,handleCompositionEnd:Le}=Dp({emit:a,afterComposition:ae}),De=()=>{_.value=!_.value},$e=()=>{var Fe;return(Fe=T.value)==null?void 0:Fe.focus()},Ce=()=>{var Fe;return(Fe=T.value)==null?void 0:Fe.blur()},Oe=Fe=>{w.value=!1,a("mouseleave",Fe)},Ie=Fe=>{w.value=!0,a("mouseenter",Fe)},We=Fe=>{a("keydown",Fe)},nt=()=>{var Fe;(Fe=T.value)==null||Fe.select()},dt=()=>{a(mt,""),a(Dt,""),a("clear"),a(os,"")};return be(()=>s.modelValue,()=>{var Fe;ze(()=>fe()),s.validateEvent&&((Fe=d==null?void 0:d.validate)==null||Fe.call(d,"change").catch(Be=>void 0))}),be(N,Fe=>{if(!T.value)return;const{trim:Be,number:et}=s.modelModifiers,Wt=T.value.value,qt=(et||s.type==="number")&&!/^0\d/.test(Wt)?`${z9(Wt)}`:Wt;qt!==Fe&&(document.activeElement===T.value&&T.value.type!=="range"&&Be&&qt.trim()===Fe||Z())}),be(()=>s.type,async()=>{await ze(),Z(),fe()}),Pt(()=>{!s.formatter&&s.parser,Z(),ze(fe)}),t({input:b,textarea:C,ref:T,textareaStyle:L,autosize:sn(s,"autosize"),isComposing:ye,focus:$e,blur:Ce,select:nt,clear:dt,resizeTextarea:fe}),(Fe,Be)=>(S(),P("div",{class:D([l.value,{[f(m).bm("group","append")]:Fe.$slots.append,[f(m).bm("group","prepend")]:Fe.$slots.prepend}]),style:Qe(Y.value),onMouseenter:Ie,onMouseleave:Oe},[ie(" input "),e.type!=="textarea"?(S(),P(He,{key:0},[ie(" prepend slot "),Fe.$slots.prepend?(S(),P("div",{key:0,class:D(f(m).be("group","prepend"))},[ue(Fe.$slots,"prepend")],2)):ie("v-if",!0),A("div",{ref_key:"wrapperRef",ref:I,class:D(c.value)},[ie(" prefix slot "),Fe.$slots.prefix||e.prefixIcon?(S(),P("span",{key:0,class:D(f(m).e("prefix"))},[A("span",{class:D(f(m).e("prefix-inner"))},[ue(Fe.$slots,"prefix"),e.prefixIcon?(S(),le(f(Je),{key:0,class:D(f(m).e("icon"))},{default:X(()=>[(S(),le(kt(e.prefixIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)):ie("v-if",!0),A("input",Tt({id:f(h),ref_key:"input",ref:b,class:f(m).e("inner")},f(r),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?_.value?"text":"password":e.type,disabled:f(v),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Be[0]||(Be[0]=(...et)=>f(_e)&&f(_e)(...et)),onCompositionupdate:Be[1]||(Be[1]=(...et)=>f(Se)&&f(Se)(...et)),onCompositionend:Be[2]||(Be[2]=(...et)=>f(Le)&&f(Le)(...et)),onInput:ae,onChange:de,onKeydown:We}),null,16,$Z),ie(" suffix slot "),ee.value?(S(),P("span",{key:1,class:D(f(m).e("suffix"))},[A("span",{class:D(f(m).e("suffix-inner"))},[!V.value||!z.value||!q.value?(S(),P(He,{key:0},[ue(Fe.$slots,"suffix"),e.suffixIcon?(S(),le(f(Je),{key:0,class:D(f(m).e("icon"))},{default:X(()=>[(S(),le(kt(e.suffixIcon)))]),_:1},8,["class"])):ie("v-if",!0)],64)):ie("v-if",!0),V.value?(S(),le(f(Je),{key:1,class:D([f(m).e("icon"),f(m).e("clear")]),onMousedown:ht(f(en),["prevent"]),onClick:dt},{default:X(()=>[(S(),le(kt(e.clearIcon)))]),_:1},8,["class","onMousedown"])):ie("v-if",!0),z.value?(S(),le(f(Je),{key:2,class:D([f(m).e("icon"),f(m).e("password")]),onClick:De,onMousedown:ht(f(en),["prevent"]),onMouseup:ht(f(en),["prevent"])},{default:X(()=>[(S(),le(kt(J.value)))]),_:1},8,["class","onMousedown","onMouseup"])):ie("v-if",!0),q.value?(S(),P("span",{key:3,class:D([f(m).e("count"),f(m).is("outside",e.wordLimitPosition==="outside")])},[A("span",{class:D(f(m).e("count-inner"))},ge(Q.value)+" / "+ge(e.maxlength),3)],2)):ie("v-if",!0),B.value&&U.value&&M.value?(S(),le(f(Je),{key:4,class:D([f(m).e("icon"),f(m).e("validateIcon"),f(m).is("loading",B.value==="validating")])},{default:X(()=>[(S(),le(kt(U.value)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)):ie("v-if",!0)],2),ie(" append slot "),Fe.$slots.append?(S(),P("div",{key:1,class:D(f(m).be("group","append"))},[ue(Fe.$slots,"append")],2)):ie("v-if",!0)],64)):(S(),P(He,{key:1},[ie(" textarea "),A("textarea",Tt({id:f(h),ref_key:"textarea",ref:C,class:[f(g).e("inner"),f(m).is("focus",f(O))]},f(r),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:f(v),readonly:e.readonly,autocomplete:e.autocomplete,style:L.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,onCompositionstart:Be[3]||(Be[3]=(...et)=>f(_e)&&f(_e)(...et)),onCompositionupdate:Be[4]||(Be[4]=(...et)=>f(Se)&&f(Se)(...et)),onCompositionend:Be[5]||(Be[5]=(...et)=>f(Le)&&f(Le)(...et)),onInput:ae,onFocus:Be[6]||(Be[6]=(...et)=>f(R)&&f(R)(...et)),onBlur:Be[7]||(Be[7]=(...et)=>f($)&&f($)(...et)),onChange:de,onKeydown:We}),null,16,DZ),q.value?(S(),P("span",{key:0,style:Qe(x.value),class:D([f(m).e("count"),f(m).is("outside",e.wordLimitPosition==="outside")])},ge(Q.value)+" / "+ge(e.maxlength),7)):ie("v-if",!0)],64))],38))}});const ua=yt(FZ),BZ=Me({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:re([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...ca(["ariaLabel","ariaOrientation"])}),Y9={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(at)},VZ=Me({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),Lf=4,X9={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},zZ=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),HZ=Me({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),i3=Symbol("scrollbarContextKey"),WZ="Thumb";var J9=j({__name:"thumb",props:HZ,setup(e){const t=e,n=Ke(i3),s=Ee("scrollbar");n||es(WZ,"can not inject scrollbar context");const a=F(),o=F(),r=F({}),i=F(!1);let l=!1,c=!1,u=0,d=0,h=Xt?document.onselectstart:null;const p=E(()=>X9[t.vertical?"vertical":"horizontal"]),v=E(()=>zZ({size:t.size,move:t.move,bar:p.value})),m=E(()=>a.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/o.value[p.value.offset]),g=I=>{var O;if(I.stopPropagation(),I.ctrlKey||[1,2].includes(I.button))return;(O=window.getSelection())==null||O.removeAllRanges(),C(I);const R=I.currentTarget;R&&(r.value[p.value.axis]=R[p.value.offset]-(I[p.value.client]-R.getBoundingClientRect()[p.value.direction]))},b=I=>{if(!o.value||!a.value||!n.wrapElement)return;const O=Math.abs(I.target.getBoundingClientRect()[p.value.direction]-I[p.value.client]),R=o.value[p.value.offset]/2,$=(O-R)*100*m.value/a.value[p.value.offset];n.wrapElement[p.value.scroll]=$*n.wrapElement[p.value.scrollSize]/100},C=I=>{I.stopImmediatePropagation(),l=!0,u=n.wrapElement.scrollHeight,d=n.wrapElement.scrollWidth,document.addEventListener("mousemove",w),document.addEventListener("mouseup",_),h=document.onselectstart,document.onselectstart=()=>!1},w=I=>{if(!a.value||!o.value||l===!1)return;const O=r.value[p.value.axis];if(!O)return;const R=(a.value.getBoundingClientRect()[p.value.direction]-I[p.value.client])*-1,$=o.value[p.value.offset]-O,M=(R-$)*100*m.value/a.value[p.value.offset];p.value.scroll==="scrollLeft"?n.wrapElement[p.value.scroll]=M*d/100:n.wrapElement[p.value.scroll]=M*u/100},_=()=>{l=!1,r.value[p.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",_),T(),c&&(i.value=!1)},x=()=>{c=!1,i.value=!!t.size},k=()=>{c=!0,i.value=l};tn(()=>{T(),document.removeEventListener("mouseup",_)});const T=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return an(sn(n,"scrollbarElement"),"mousemove",x),an(sn(n,"scrollbarElement"),"mouseleave",k),(I,O)=>(S(),le(ws,{name:f(s).b("fade"),persisted:""},{default:X(()=>[Ct(A("div",{ref_key:"instance",ref:a,class:D([f(s).e("bar"),f(s).is(p.value.key)]),onMousedown:b,onClick:O[0]||(O[0]=ht(()=>{},["stop"]))},[A("div",{ref_key:"thumb",ref:o,class:D(f(s).e("thumb")),style:Qe(v.value),onMousedown:g},null,38)],34),[[jt,e.always||i.value]])]),_:1},8,["name"]))}}),jZ=j({__name:"bar",props:VZ,setup(e,{expose:t}){const n=e,s=Ke(i3),a=F(0),o=F(0),r=F(""),i=F(""),l=F(1),c=F(1);return t({handleScroll:h=>{if(h){const p=h.offsetHeight-Lf,v=h.offsetWidth-Lf;o.value=h.scrollTop*100/p*l.value,a.value=h.scrollLeft*100/v*c.value}},update:()=>{const h=s==null?void 0:s.wrapElement;if(!h)return;const p=h.offsetHeight-Lf,v=h.offsetWidth-Lf,m=p**2/h.scrollHeight,g=v**2/h.scrollWidth,b=Math.max(m,n.minSize),C=Math.max(g,n.minSize);l.value=m/(p-m)/(b/(p-b)),c.value=g/(v-g)/(C/(v-C)),i.value=b+Lf(S(),P(He,null,[W(J9,{move:a.value,ratio:c.value,size:r.value,always:e.always},null,8,["move","ratio","size","always"]),W(J9,{move:o.value,ratio:l.value,size:i.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}});const KZ=["tabindex"];var UZ=j({name:"ElScrollbar",__name:"scrollbar",props:BZ,emits:Y9,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("scrollbar");let r,i,l,c=0,u=0,d="";const h={bottom:!1,top:!1,right:!1,left:!1},p=F(),v=F(),m=F(),g=F(),b=E(()=>{const M={},B=On(s.height),U=On(s.maxHeight);return B&&(M.height=B),U&&(M.maxHeight=U),[s.wrapStyle,M]}),C=E(()=>[s.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!s.native}]),w=E(()=>[o.e("view"),s.viewClass]),_=M=>{var B;return(B=h[M])!=null?B:!1},x={top:"bottom",bottom:"top",left:"right",right:"left"},k=M=>{const B=x[d];if(!B)return;const U=M[d],J=M[B];U&&!h[d]&&(h[d]=!0),!J&&h[B]&&(h[B]=!1)},T=()=>{var M;if(v.value){(M=g.value)==null||M.handleScroll(v.value);const B=c,U=u;c=v.value.scrollTop,u=v.value.scrollLeft;const J={bottom:c+v.value.clientHeight>=v.value.scrollHeight-s.distance,top:c<=s.distance&&B!==0,right:u+v.value.clientWidth>=v.value.scrollWidth-s.distance&&U!==u,left:u<=s.distance&&U!==0};if(a("scroll",{scrollTop:c,scrollLeft:u}),B!==c&&(d=c>B?"bottom":"top"),U!==u&&(d=u>U?"right":"left"),s.distance>0){if(_(d))return;k(J)}J[d]&&a("end-reached",d)}};function I(M,B){bt(M)?v.value.scrollTo(M):at(M)&&at(B)&&v.value.scrollTo(M,B)}const O=M=>{at(M)&&(v.value.scrollTop=M)},R=M=>{at(M)&&(v.value.scrollLeft=M)},$=()=>{var M;(M=g.value)==null||M.update(),h[d]=!1};return be(()=>s.noresize,M=>{M?(r==null||r(),i==null||i(),l==null||l()):({stop:r}=En(m,$),{stop:i}=En(v,$),l=an("resize",$))},{immediate:!0}),be(()=>[s.maxHeight,s.height],()=>{s.native||ze(()=>{var M;$(),v.value&&((M=g.value)==null||M.handleScroll(v.value))})}),Nt(i3,Yt({scrollbarElement:p,wrapElement:v})),U0(()=>{v.value&&(v.value.scrollTop=c,v.value.scrollLeft=u)}),Pt(()=>{s.native||ze(()=>{$()})}),or(()=>$()),t({wrapRef:v,update:$,scrollTo:I,setScrollTop:O,setScrollLeft:R,handleScroll:T}),(M,B)=>(S(),P("div",{ref_key:"scrollbarRef",ref:p,class:D(f(o).b())},[A("div",{ref_key:"wrapRef",ref:v,class:D(C.value),style:Qe(b.value),tabindex:e.tabindex,onScroll:T},[(S(),le(kt(e.tag),{id:e.id,ref_key:"resizeRef",ref:m,class:D(w.value),style:Qe(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:X(()=>[ue(M.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,KZ),e.native?ie("v-if",!0):(S(),le(jZ,{key:0,ref_key:"barRef",ref:g,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}});const pr=yt(UZ),Z9=Me({virtualRef:{type:re(Object)},virtualTriggering:Boolean,onMouseenter:{type:re(Function)},onMouseleave:{type:re(Function)},onClick:{type:re(Function)},onKeydown:{type:re(Function)},onFocus:{type:re(Function)},onBlur:{type:re(Function)},onContextmenu:{type:re(Function)},id:String,open:Boolean}),Te={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ai=Me({...Z9,disabled:Boolean,trigger:{type:re([String,Array]),default:"hover"},triggerKeys:{type:re(Array),default:()=>[Te.enter,Te.numpadEnter,Te.space]},focusOnTarget:Boolean}),qZ=dr({type:re(Boolean),default:null}),GZ=dr({type:re(Function)}),YZ=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,s=[t],a={[e]:qZ,[n]:GZ};return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:c,onShow:u,onHide:d})=>{const h=Mt(),{emit:p}=h,v=h.props,m=E(()=>Ze(v[n])),g=E(()=>v[e]===null),b=T=>{r.value!==!0&&(r.value=!0,i&&(i.value=T),Ze(u)&&u(T))},C=T=>{r.value!==!1&&(r.value=!1,i&&(i.value=T),Ze(d)&&d(T))},w=T=>{if(v.disabled===!0||Ze(c)&&!c())return;const I=m.value&&Xt;I&&p(t,!0),(g.value||!I)&&b(T)},_=T=>{if(v.disabled===!0||!Xt)return;const I=m.value&&Xt;I&&p(t,!1),(g.value||!I)&&C(T)},x=T=>{on(T)&&(v.disabled&&T?m.value&&p(t,!1):r.value!==T&&(T?b():C()))},k=()=>{r.value?_():w()};return be(()=>v[e],x),l&&h.appContext.config.globalProperties.$route!==void 0&&be(()=>({...h.proxy.$route}),()=>{l.value&&r.value&&_()}),Pt(()=>{x(v[e])}),{hide:_,show:w,toggle:k,hasUpdateHandler:m}},useModelToggleProps:a,useModelToggleEmits:s}},Q9=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],ek=Me({role:{type:String,values:Q9,default:"tooltip"}}),{useModelToggleProps:XZ,useModelToggleEmits:JZ,useModelToggle:ZZ}=YZ("visible"),QZ=Me({...ek,...XZ,...ln,...ai,...D9,showArrow:{type:Boolean,default:!0}}),eQ=[...JZ,"before-show","before-hide","show","hide","open","close"],l3=Symbol("popper"),tk=Symbol("popperContent");var tQ=j({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:ek,setup(e,{expose:t}){const n=e,s=F(),a=F(),o=F(),r=F(),i=E(()=>n.role),l={triggerRef:s,popperInstanceRef:a,contentRef:o,referenceRef:r,role:i};return t(l),Nt(l3,l),(c,u)=>ue(c.$slots,"default")}}),nQ=j({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=Ee("popper"),{arrowRef:s,arrowStyle:a}=Ke(tk,void 0);return tn(()=>{s.value=void 0}),t({arrowRef:s}),(o,r)=>(S(),P("span",{ref_key:"arrowRef",ref:s,class:D(f(n).e("arrow")),style:Qe(f(a)),"data-popper-arrow":""},null,6))}});const nk=Symbol("elForwardRef"),sQ=e=>{Nt(nk,{setForwardRef:n=>{e.value=n}})},aQ=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),sk=j({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var s;const a=Ke(nk),o=aQ((s=a==null?void 0:a.setForwardRef)!=null?s:en);return()=>{var r;const i=(r=t.default)==null?void 0:r.call(t,n);if(!i)return null;const[l,c]=ak(i);return l?Ct(Ur(l,n),[[o]]):null}}});function ak(e){if(!e)return[null,0];const t=e,n=t.filter(s=>s.type!==Gn).length;for(const s of t){if(bt(s))switch(s.type){case Gn:continue;case pf:case"svg":return[ok(s),n];case He:return ak(s.children);default:return[s,n]}return[ok(s),n]}return[null,0]}function ok(e){const t=Ee("only-child");return W("span",{class:t.e("content")},[e])}var oQ=j({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:Z9,setup(e,{expose:t}){const n=e,{role:s,triggerRef:a}=Ke(l3,void 0);sQ(a);const o=E(()=>i.value?n.id:void 0),r=E(()=>{if(s&&s.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=E(()=>{if(s&&s.value!=="tooltip")return s.value}),l=E(()=>i.value?`${n.open}`:void 0);let c;const u=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return Pt(()=>{be(()=>n.virtualRef,d=>{d&&(a.value=us(d))},{immediate:!0}),be(a,(d,h)=>{c==null||c(),c=void 0,ja(h)&&u.forEach(p=>{const v=n[p];v&&h.removeEventListener(p.slice(2).toLowerCase(),v,["onFocus","onBlur"].includes(p))}),ja(d)&&(u.forEach(p=>{const v=n[p];v&&d.addEventListener(p.slice(2).toLowerCase(),v,["onFocus","onBlur"].includes(p))}),Np(d)&&(c=be([o,r,i,l],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,m)=>{Xn(p[m])?d.removeAttribute(v):d.setAttribute(v,p[m])})},{immediate:!0}))),ja(h)&&Np(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>h.removeAttribute(p))},{immediate:!0})}),tn(()=>{if(c==null||c(),c=void 0,a.value&&ja(a.value)){const d=a.value;u.forEach(h=>{const p=n[h];p&&d.removeEventListener(h.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(h))}),a.value=void 0}}),t({triggerRef:a}),(d,h)=>e.virtualTriggering?ie("v-if",!0):(S(),le(f(sk),Tt({key:0},d.$attrs,{"aria-controls":o.value,"aria-describedby":r.value,"aria-expanded":l.value,"aria-haspopup":i.value}),{default:X(()=>[ue(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});const c3="focus-trap.focus-after-trapped",u3="focus-trap.focus-after-released",rQ="focus-trap.focusout-prevented",rk={cancelable:!0,bubbles:!1},iQ={cancelable:!0,bubbles:!1},ik="focusAfterTrapped",lk="focusAfterReleased",ck=Symbol("elFocusTrap"),d3=F(),Fg=F(0),f3=F(0);let Bg=0;const uk=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0||s===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},dk=(e,t)=>{for(const n of e)if(!lQ(n,t))return n},lQ=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},cQ=e=>{const t=uk(e),n=dk(t,e),s=dk(t.reverse(),e);return[n,s]},uQ=e=>e instanceof HTMLInputElement&&"select"in e,oc=(e,t)=>{if(e){const n=document.activeElement;$p(e,{preventScroll:!0}),f3.value=window.performance.now(),e!==n&&uQ(e)&&t&&e.select()}};function fk(e,t){const n=[...e],s=e.indexOf(t);return s!==-1&&n.splice(s,1),n}const dQ=()=>{let e=[];return{push:s=>{const a=e[0];a&&s!==a&&a.pause(),e=fk(e,s),e.unshift(s)},remove:s=>{var a,o;e=fk(e,s),(o=(a=e[0])==null?void 0:a.resume)==null||o.call(a)}}},fQ=(e,t=!1)=>{const n=document.activeElement;for(const s of e)if(oc(s,t),document.activeElement!==n)return},hk=dQ(),hQ=()=>Fg.value>f3.value,Vg=()=>{d3.value="pointer",Fg.value=window.performance.now()},pk=()=>{d3.value="keyboard",Fg.value=window.performance.now()},pQ=()=>(Pt(()=>{Bg===0&&(document.addEventListener("mousedown",Vg),document.addEventListener("touchstart",Vg),document.addEventListener("keydown",pk)),Bg++}),tn(()=>{Bg--,Bg<=0&&(document.removeEventListener("mousedown",Vg),document.removeEventListener("touchstart",Vg),document.removeEventListener("keydown",pk))}),{focusReason:d3,lastUserFocusTimestamp:Fg,lastAutomatedFocusTimestamp:f3}),zg=e=>new CustomEvent(rQ,{...iQ,detail:e}),_s=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const o=e==null?void 0:e(a);if(n===!1||!o)return t==null?void 0:t(a)},vk=e=>t=>t.pointerType==="mouse"?e(t):void 0,un=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=mk(e);if(t){if(Object.values(Te).includes(t))return t;switch(t){case" ":return Te.space;default:return""}}return""},mk=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&V9()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t};let Nf=[];const gk=e=>{un(e)===Te.esc&&Nf.forEach(n=>n(e))},vQ=e=>{Pt(()=>{Nf.length===0&&document.addEventListener("keydown",gk),Xt&&Nf.push(e)}),tn(()=>{Nf=Nf.filter(t=>t!==e),Nf.length===0&&Xt&&document.removeEventListener("keydown",gk)})};var mQ=j({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ik,lk,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=F();let s,a;const{focusReason:o}=pQ();vQ(v=>{e.trapped&&!r.paused&&t("release-requested",v)});const r={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=v=>{if(!e.loop&&!e.trapped||r.paused)return;const{altKey:m,ctrlKey:g,metaKey:b,currentTarget:C,shiftKey:w}=v,{loop:_}=e,k=un(v)===Te.tab&&!m&&!g&&!b,T=document.activeElement;if(k&&T){const I=C,[O,R]=cQ(I);if(O&&R){if(!w&&T===R){const M=zg({focusReason:o.value});t("focusout-prevented",M),M.defaultPrevented||(v.preventDefault(),_&&oc(O,!0))}else if(w&&[O,I].includes(T)){const M=zg({focusReason:o.value});t("focusout-prevented",M),M.defaultPrevented||(v.preventDefault(),_&&oc(R,!0))}}else if(T===I){const M=zg({focusReason:o.value});t("focusout-prevented",M),M.defaultPrevented||v.preventDefault()}}};Nt(ck,{focusTrapRef:n,onKeydown:i}),be(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),be([n],([v],[m])=>{v&&(v.addEventListener("keydown",i),v.addEventListener("focusin",u),v.addEventListener("focusout",d)),m&&(m.removeEventListener("keydown",i),m.removeEventListener("focusin",u),m.removeEventListener("focusout",d))});const l=v=>{t(ik,v)},c=v=>t(lk,v),u=v=>{const m=f(n);if(!m)return;const g=v.target,b=v.relatedTarget,C=g&&m.contains(g);e.trapped||b&&m.contains(b)||(s=b),C&&t("focusin",v),!r.paused&&e.trapped&&(C?a=g:oc(a,!0))},d=v=>{const m=f(n);if(!(r.paused||!m))if(e.trapped){const g=v.relatedTarget;!Xn(g)&&!m.contains(g)&&setTimeout(()=>{if(!r.paused&&e.trapped){const b=zg({focusReason:o.value});t("focusout-prevented",b),b.defaultPrevented||oc(a,!0)}},0)}else{const g=v.target;g&&m.contains(g)||t("focusout",v)}};async function h(){await ze();const v=f(n);if(v){hk.push(r);const m=v.contains(document.activeElement)?s:document.activeElement;if(s=m,!v.contains(m)){const b=new Event(c3,rk);v.addEventListener(c3,l),v.dispatchEvent(b),b.defaultPrevented||ze(()=>{let C=e.focusStartEl;Xe(C)||(oc(C),document.activeElement!==C&&(C="first")),C==="first"&&fQ(uk(v),!0),(document.activeElement===m||C==="container")&&oc(v)})}}}function p(){const v=f(n);if(v){v.removeEventListener(c3,l);const m=new CustomEvent(u3,{...rk,detail:{focusReason:o.value}});v.addEventListener(u3,c),v.dispatchEvent(m),!m.defaultPrevented&&(o.value=="keyboard"||!hQ()||v.contains(document.activeElement))&&oc(s??document.body),v.removeEventListener(u3,c),hk.remove(r),s=null,a=null}}return Pt(()=>{e.trapped&&h(),be(()=>e.trapped,v=>{v?h():p()})}),tn(()=>{e.trapped&&p(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",u),n.value.removeEventListener("focusout",d),n.value=void 0),s=null,a=null}),{onKeydown:i}}}),fs=(e,t)=>{const n=e.__vccOpts||e;for(const[s,a]of t)n[s]=a;return n};function gQ(e,t,n,s,a,o){return ue(e.$slots,"default",{handleKeydown:e.onKeydown})}var $f=fs(mQ,[["render",gQ]]);const bQ=(e,t)=>{const n=F(!1),s=F(),a=()=>{t("focus")},o=c=>{var u;((u=c.detail)==null?void 0:u.focusReason)!=="pointer"&&(s.value="first",t("blur"))},r=c=>{e.visible&&!n.value&&(c.target&&(s.value=c.target),n.value=!0)},i=c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},l=()=>{n.value=!1,t("close")};return tn(()=>{s.value=void 0}),{focusStartRef:s,trapped:n,onFocusAfterReleased:o,onFocusAfterTrapped:a,onFocusInTrap:r,onFocusoutPrevented:i,onReleaseRequested:l}},yQ=(e,t=[])=>{const{placement:n,strategy:s,popperOptions:a}=e,o={placement:n,strategy:s,...a,modifiers:[..._Q(e),...t]};return CQ(o,a==null?void 0:a.modifiers),o},wQ=e=>{if(Xt)return us(e)};function _Q(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:s}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:s}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function CQ(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const SQ=(e,t,n={})=>{const s={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const c=xQ(l);Object.assign(r.value,c)},requires:["computeStyles"]},a=E(()=>{const{onFirstUpdate:l,placement:c,strategy:u,modifiers:d}=f(n);return{onFirstUpdate:l,placement:c||"bottom",strategy:u||"absolute",modifiers:[...d||[],s,{name:"applyStyles",enabled:!1}]}}),o=bn(),r=F({styles:{popper:{position:f(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return be(a,l=>{const c=f(o);c&&c.setOptions(l)},{deep:!0}),be([e,t],([l,c])=>{i(),!(!l||!c)&&(o.value=mZ(l,c,f(a)))}),tn(()=>{i()}),{state:E(()=>{var l;return{...((l=f(o))==null?void 0:l.state)||{}}}),styles:E(()=>f(r).styles),attributes:E(()=>f(r).attributes),update:()=>{var l;return(l=f(o))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=f(o))==null?void 0:l.forceUpdate()},instanceRef:E(()=>f(o))}};function xQ(e){const t=Object.keys(e.elements),n=hp(t.map(a=>[a,e.styles[a]||{}])),s=hp(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:s}}const kQ=0,EQ=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:s,role:a}=Ke(l3,void 0),o=F(),r=E(()=>e.arrowOffset),i=E(()=>({name:"eventListeners",enabled:!!e.visible})),l=E(()=>{var b;const C=f(o),w=(b=f(r))!=null?b:kQ;return{name:"arrow",enabled:!fV(C),options:{element:C,padding:w}}}),c=E(()=>({onFirstUpdate:()=>{v()},...yQ(e,[f(l),f(i)])})),u=E(()=>wQ(e.referenceEl)||f(s)),{attributes:d,state:h,styles:p,update:v,forceUpdate:m,instanceRef:g}=SQ(u,n,c);return be(g,b=>t.value=b,{flush:"sync"}),Pt(()=>{be(()=>{var b,C;return(C=(b=f(u))==null?void 0:b.getBoundingClientRect)==null?void 0:C.call(b)},()=>{v()})}),tn(()=>{t.value=void 0}),{attributes:d,arrowRef:o,contentRef:n,instanceRef:g,state:h,styles:p,role:a,forceUpdate:m,update:v}},AQ=(e,{attributes:t,styles:n,role:s})=>{const{nextZIndex:a}=yp(),o=Ee("popper"),r=E(()=>f(t).popper),i=F(at(e.zIndex)?e.zIndex:a()),l=E(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),c=E(()=>[{zIndex:f(i)},f(n).popper,e.popperStyle||{}]),u=E(()=>s.value==="dialog"?"false":void 0),d=E(()=>f(n).arrow||{});return{ariaModal:u,arrowStyle:d,contentAttrs:r,contentClass:l,contentStyle:c,contentZIndex:i,updateZIndex:()=>{i.value=at(e.zIndex)?e.zIndex:a()}}};var TQ=j({name:"ElPopperContent",__name:"content",props:F9,emits:wZ,setup(e,{expose:t,emit:n}){const s=n,a=e,{focusStartRef:o,trapped:r,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:d}=bQ(a,s),{attributes:h,arrowRef:p,contentRef:v,styles:m,instanceRef:g,role:b,update:C}=EQ(a),{ariaModal:w,arrowStyle:_,contentAttrs:x,contentClass:k,contentStyle:T,updateZIndex:I}=AQ(a,{styles:m,attributes:h,role:b}),O=Ke(si,void 0);Nt(tk,{arrowStyle:_,arrowRef:p}),O&&Nt(si,{...O,addInputId:en,removeInputId:en});let R;const $=(B=!0)=>{C(),B&&I()},M=()=>{$(!1),a.visible&&a.focusOnShow?r.value=!0:a.visible===!1&&(r.value=!1)};return Pt(()=>{be(()=>a.triggerTargetEl,(B,U)=>{R==null||R(),R=void 0;const J=f(B||v.value),Y=f(U||v.value);ja(J)&&(R=be([b,()=>a.ariaLabel,w,()=>a.id],L=>{["role","aria-label","aria-modal","id"].forEach((N,V)=>{Xn(L[V])?J.removeAttribute(N):J.setAttribute(N,L[V])})},{immediate:!0})),Y!==J&&ja(Y)&&["role","aria-label","aria-modal","id"].forEach(L=>{Y.removeAttribute(L)})},{immediate:!0}),be(()=>a.visible,M,{immediate:!0})}),tn(()=>{R==null||R(),R=void 0,v.value=void 0}),t({popperContentRef:v,popperInstanceRef:g,updatePopper:$,contentStyle:T}),(B,U)=>(S(),P("div",Tt({ref_key:"contentRef",ref:v},f(x),{style:f(T),class:f(k),tabindex:"-1",onMouseenter:U[0]||(U[0]=J=>B.$emit("mouseenter",J)),onMouseleave:U[1]||(U[1]=J=>B.$emit("mouseleave",J))}),[W(f($f),{loop:e.loop,trapped:f(r),"trap-on-focus-in":!0,"focus-trap-el":f(v),"focus-start-el":f(o),onFocusAfterTrapped:f(l),onFocusAfterReleased:f(i),onFocusin:f(c),onFocusoutPrevented:f(u),onReleaseRequested:f(d)},{default:X(()=>[ue(B.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});const bk=yt(tQ),h3=Symbol("elTooltip"),p3=(e,t)=>Ae(e)?e.includes(t):e===t,Df=(e,t,n)=>s=>{p3(f(e),t)&&n(s)};var MQ=j({name:"ElTooltipTrigger",__name:"trigger",props:ai,setup(e,{expose:t}){const n=e,s=Ee("tooltip"),{controlled:a,id:o,open:r,onOpen:i,onClose:l,onToggle:c}=Ke(h3,void 0),u=F(null),d=()=>{if(f(a)||n.disabled)return!0},h=sn(n,"trigger"),p=_s(d,Df(h,"hover",_=>{i(_),n.focusOnTarget&&_.target&&ze(()=>{$p(_.target,{preventScroll:!0})})})),v=_s(d,Df(h,"hover",l)),m=_s(d,Df(h,"click",_=>{_.button===0&&c(_)})),g=_s(d,Df(h,"focus",i)),b=_s(d,Df(h,"focus",l)),C=_s(d,Df(h,"contextmenu",_=>{_.preventDefault(),c(_)})),w=_s(d,_=>{const x=un(_);n.triggerKeys.includes(x)&&(_.preventDefault(),c(_))});return t({triggerRef:u}),(_,x)=>(S(),le(f(oQ),{id:f(o),"virtual-ref":e.virtualRef,open:f(r),"virtual-triggering":e.virtualTriggering,class:D(f(s).e("trigger")),onBlur:f(b),onClick:f(m),onContextmenu:f(C),onFocus:f(g),onMouseenter:f(p),onMouseleave:f(v),onKeydown:f(w)},{default:X(()=>[ue(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});const yk=()=>{const e=Py(),t=r3(),n=E(()=>`${e.value}-popper-container-${t.prefix}`),s=E(()=>`#${n.value}`);return{id:n,selector:s}},PQ=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},RQ=()=>{const{id:e,selector:t}=yk();return G2(()=>{Xt&&(document.body.querySelector(t.value)||PQ(e.value))}),{id:e,selector:t}},wk=e=>[...new Set(e)],Fp=e=>Ae(e)?e[0]:e,da=e=>!e&&e!==0?[]:Ae(e)?e:[e];var IQ=j({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:ln,setup(e,{expose:t}){const n=e,{selector:s}=yk(),a=Ee("tooltip"),o=F(),r=bx(()=>{var N;return(N=o.value)==null?void 0:N.popperContentRef});let i;const{controlled:l,id:c,open:u,trigger:d,onClose:h,onOpen:p,onShow:v,onHide:m,onBeforeShow:g,onBeforeHide:b}=Ke(h3,void 0),C=E(()=>n.transition||`${a.namespace.value}-fade-in-linear`),w=E(()=>n.persistent);tn(()=>{i==null||i()});const _=E(()=>f(w)?!0:f(u)),x=E(()=>n.disabled?!1:f(u)),k=E(()=>n.appendTo||s.value),T=E(()=>{var N;return(N=n.style)!=null?N:{}}),I=F(!0),O=()=>{m(),L()&&$p(document.body,{preventScroll:!0}),I.value=!0},R=()=>{if(f(l))return!0},$=_s(R,()=>{n.enterable&&p3(f(d),"hover")&&p()}),M=_s(R,()=>{p3(f(d),"hover")&&h()}),B=()=>{var N,V;(V=(N=o.value)==null?void 0:N.updatePopper)==null||V.call(N),g==null||g()},U=()=>{b==null||b()},J=()=>{v()},Y=()=>{n.virtualTriggering||h()},L=N=>{var V;const z=(V=o.value)==null?void 0:V.popperContentRef,q=(N==null?void 0:N.relatedTarget)||document.activeElement;return z==null?void 0:z.contains(q)};return be(()=>f(u),N=>{N?(I.value=!1,i=Iy(r,()=>{if(f(l))return;da(f(d)).every(z=>z!=="hover"&&z!=="focus")&&h()},{detectIframe:!0})):i==null||i()},{flush:"post"}),be(()=>n.content,()=>{var N,V;(V=(N=o.value)==null?void 0:N.updatePopper)==null||V.call(N)}),t({contentRef:o,isFocusInsideContent:L}),(N,V)=>(S(),le(f(Af),{disabled:!e.teleported,to:k.value},{default:X(()=>[_.value||!I.value?(S(),le(ws,{key:0,name:C.value,appear:!w.value,onAfterLeave:O,onBeforeEnter:B,onAfterEnter:J,onBeforeLeave:U,persisted:""},{default:X(()=>[Ct(W(f(TQ),Tt({id:f(c),ref_key:"contentRef",ref:o},N.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":I.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,T.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:x.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:f($),onMouseleave:f(M),onBlur:Y,onClose:f(h)}),{default:X(()=>[ue(N.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[jt,x.value]])]),_:3},8,["name","appear"])):ie("v-if",!0)]),_:3},8,["disabled","to"]))}});const OQ=["innerHTML"],LQ={key:1};var NQ=j({name:"ElTooltip",__name:"tooltip",props:QZ,emits:eQ,setup(e,{expose:t,emit:n}){const s=e,a=n;RQ();const o=Ee("tooltip"),r=Bs(),i=F(),l=F(),c=()=>{var _;const x=f(i);x&&((_=x.popperInstanceRef)==null||_.update())},u=F(!1),d=F(),{show:h,hide:p,hasUpdateHandler:v}=ZZ({indicator:u,toggleReason:d}),{onOpen:m,onClose:g}=CZ({showAfter:sn(s,"showAfter"),hideAfter:sn(s,"hideAfter"),autoClose:sn(s,"autoClose"),open:h,close:p}),b=E(()=>on(s.visible)&&!v.value),C=E(()=>[o.b(),s.popperClass]);Nt(h3,{controlled:b,id:r,open:ru(u),trigger:sn(s,"trigger"),onOpen:m,onClose:g,onToggle:_=>{f(u)?g(_):m(_)},onShow:()=>{a("show",d.value)},onHide:()=>{a("hide",d.value)},onBeforeShow:()=>{a("before-show",d.value)},onBeforeHide:()=>{a("before-hide",d.value)},updatePopper:c}),be(()=>s.disabled,_=>{_&&u.value&&(u.value=!1)});const w=_=>{var x;return(x=l.value)==null?void 0:x.isFocusInsideContent(_)};return N4(()=>u.value&&p()),tn(()=>{d.value=void 0}),t({popperRef:i,contentRef:l,isFocusInsideContent:w,updatePopper:c,onOpen:m,onClose:g,hide:p}),(_,x)=>(S(),le(f(bk),{ref_key:"popperRef",ref:i,role:e.role},{default:X(()=>[W(MQ,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:X(()=>[_.$slots.default?ue(_.$slots,"default",{key:0}):ie("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),W(IQ,{ref_key:"contentRef",ref:l,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":C.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:X(()=>[ue(_.$slots,"content",{},()=>[e.rawContent?(S(),P("span",{key:0,innerHTML:e.content},null,8,OQ)):(S(),P("span",LQ,ge(e.content),1))]),e.showArrow?(S(),le(f(nQ),{key:0})):ie("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}});const Ms=yt(NQ),$Q=["aria-expanded","aria-owns"],DQ={key:0},FQ=["id","aria-selected","onClick"],_k="ElAutocomplete";var BQ=j({name:_k,inheritAttrs:!1,__name:"autocomplete",props:xZ,emits:kZ,setup(e,{expose:t,emit:n}){const s=e,a=n,o=E(()=>Gi(s,Object.keys(Lp))),r=zi(),i=Nn(),l=Ee("autocomplete"),c=F(),u=F(),d=F(),h=F();let p=!1,v=!1;const m=F([]),g=F(-1),b=F(""),C=F(!1),w=F(!1),_=F(!1),x=Bs(),k=E(()=>r.style),T=E(()=>(m.value.length>0||_.value)&&C.value),I=E(()=>!s.hideLoading&&_.value),O=E(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),R=()=>{T.value&&(b.value=`${c.value.$el.offsetWidth}px`)},$=()=>{g.value=-1},M=async Z=>{if(w.value)return;const H=ae=>{_.value=!1,!w.value&&(Ae(ae)?(m.value=ae,g.value=s.highlightFirstItem?0:-1):es(_k,"autocomplete suggestions must be an array"))};if(_.value=!0,Ae(s.fetchSuggestions))H(s.fetchSuggestions);else{const ae=await s.fetchSuggestions(Z,H);Ae(ae)&&H(ae)}},B=E(()=>s.debounce),U=gp(M,B),J=Z=>{const H=!!Z;if(a(os,Z),a(mt,Z),w.value=!1,C.value||(C.value=H),!s.triggerOnFocus&&!Z){w.value=!0,m.value=[];return}U(Z)},Y=Z=>{var H;i.value||(((H=Z.target)==null?void 0:H.tagName)!=="INPUT"||O.value.includes(document.activeElement))&&(C.value=!0)},L=Z=>{a(Dt,Z)},N=Z=>{var H;if(v)v=!1;else{C.value=!0,a("focus",Z);const ae=(H=s.modelValue)!=null?H:"";s.triggerOnFocus&&!p&&U(String(ae))}},V=Z=>{setTimeout(()=>{var H;if((H=d.value)!=null&&H.isFocusInsideContent()){v=!0;return}C.value&&K(),a("blur",Z)})},z=()=>{C.value=!1,a(mt,""),a("clear")},q=async()=>{var Z;(Z=c.value)!=null&&Z.isComposing||(T.value&&g.value>=0&&g.value{T.value&&(Z.preventDefault(),Z.stopPropagation(),K())},K=()=>{C.value=!1},ee=()=>{var Z;(Z=c.value)==null||Z.focus()},se=()=>{var Z;(Z=c.value)==null||Z.blur()},pe=async Z=>{a(os,Z[s.valueKey]),a(mt,Z[s.valueKey]),a("select",Z),m.value=[],g.value=-1},te=Z=>{var H,ae;if(!T.value||_.value)return;if(Z<0){if(!s.loopNavigation){g.value=-1;return}Z=m.value.length-1}Z>=m.value.length&&(Z=s.loopNavigation?0:m.value.length-1);const[de,ye]=fe(),_e=ye[Z],Se=de.scrollTop,{offsetTop:Le,scrollHeight:De}=_e;Le+De>Se+de.clientHeight&&(de.scrollTop=Le+De-de.clientHeight),Le{const Z=u.value.querySelector(`.${l.be("suggestion","wrap")}`),H=Z.querySelectorAll(`.${l.be("suggestion","list")} li`);return[Z,H]},ve=Iy(h,()=>{var Z;(Z=d.value)!=null&&Z.isFocusInsideContent()||T.value&&K()}),ce=Z=>{switch(un(Z)){case Te.up:Z.preventDefault(),te(g.value-1);break;case Te.down:Z.preventDefault(),te(g.value+1);break;case Te.enter:case Te.numpadEnter:Z.preventDefault(),q();break;case Te.tab:K();break;case Te.esc:Q(Z);break;case Te.home:Z.preventDefault(),te(0);break;case Te.end:Z.preventDefault(),te(m.value.length-1);break;case Te.pageUp:Z.preventDefault(),te(Math.max(0,g.value-10));break;case Te.pageDown:Z.preventDefault(),te(Math.min(m.value.length-1,g.value+10));break}};return tn(()=>{ve==null||ve()}),Pt(()=>{var Z;const H=(Z=c.value)==null?void 0:Z.ref;H&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:x.value},{key:"aria-activedescendant",value:`${x.value}-item-${g.value}`}].forEach(({key:ae,value:de})=>H.setAttribute(ae,de)),p=H.hasAttribute("readonly"))}),t({highlightedIndex:g,activated:C,loading:_,inputRef:c,popperRef:d,suggestions:m,handleSelect:pe,handleKeyEnter:q,focus:ee,blur:se,close:K,highlight:te,getData:M}),(Z,H)=>(S(),le(f(Ms),{ref_key:"popperRef",ref:d,visible:T.value,placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[f(l).e("popper"),e.popperClass],"popper-style":e.popperStyle,teleported:e.teleported,"append-to":e.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${f(l).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:R,onHide:$},{content:X(()=>[A("div",{ref_key:"regionRef",ref:u,class:D([f(l).b("suggestion"),f(l).is("loading",I.value)]),style:Qe({[e.fitInputWidth?"width":"minWidth"]:b.value,outline:"none"}),role:"region"},[Z.$slots.header?(S(),P("div",{key:0,class:D(f(l).be("suggestion","header")),onClick:H[0]||(H[0]=ht(()=>{},["stop"]))},[ue(Z.$slots,"header")],2)):ie("v-if",!0),W(f(pr),{id:f(x),tag:"ul","wrap-class":f(l).be("suggestion","wrap"),"view-class":f(l).be("suggestion","list"),role:"listbox"},{default:X(()=>[I.value?(S(),P("li",DQ,[ue(Z.$slots,"loading",{},()=>[W(f(Je),{class:D(f(l).is("loading"))},{default:X(()=>[W(f(Fs))]),_:1},8,["class"])])])):(S(!0),P(He,{key:1},Et(m.value,(ae,de)=>(S(),P("li",{id:`${f(x)}-item-${de}`,key:de,class:D({highlighted:g.value===de}),role:"option","aria-selected":g.value===de,onClick:ye=>pe(ae)},[ue(Z.$slots,"default",{item:ae},()=>[je(ge(ae[e.valueKey]),1)])],10,FQ))),128))]),_:3},8,["id","wrap-class","view-class"]),Z.$slots.footer?(S(),P("div",{key:1,class:D(f(l).be("suggestion","footer")),onClick:H[1]||(H[1]=ht(()=>{},["stop"]))},[ue(Z.$slots,"footer")],2)):ie("v-if",!0)],6)]),default:X(()=>[A("div",{ref_key:"listboxRef",ref:h,class:D([f(l).b(),Z.$attrs.class]),style:Qe(k.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":T.value,"aria-owns":f(x)},[W(f(ua),Tt({ref_key:"inputRef",ref:c},Tt(o.value,Z.$attrs),{"model-value":e.modelValue,disabled:f(i),onInput:J,onChange:L,onFocus:N,onBlur:V,onClear:z,onKeydown:ce,onMousedown:Y}),Aa({_:2},[Z.$slots.prepend?{name:"prepend",fn:X(()=>[ue(Z.$slots,"prepend")]),key:"0"}:void 0,Z.$slots.append?{name:"append",fn:X(()=>[ue(Z.$slots,"append")]),key:"1"}:void 0,Z.$slots.prefix?{name:"prefix",fn:X(()=>[ue(Z.$slots,"prefix")]),key:"2"}:void 0,Z.$slots.suffix?{name:"suffix",fn:X(()=>[ue(Z.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,$Q)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}});const VQ=yt(BQ),zQ=Me({size:{type:[Number,String],values:fr,validator:e=>at(e)},shape:{type:String,values:["circle","square"]},icon:{type:rn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:re(String),default:"cover"}}),HQ={error:e=>e instanceof Event},Ck=Symbol("avatarGroupContextKey"),WQ=["src","alt","srcset"];var Sk=j({name:"ElAvatar",__name:"avatar",props:zQ,emits:HQ,setup(e,{emit:t}){const n=e,s=t,a=Ke(Ck,void 0),o=Ee("avatar"),r=F(!1),i=E(()=>{var p;return(p=n.size)!=null?p:a==null?void 0:a.size}),l=E(()=>{var p,v;return(v=(p=n.shape)!=null?p:a==null?void 0:a.shape)!=null?v:"circle"}),c=E(()=>{const{icon:p}=n,v=[o.b()];return Xe(i.value)&&v.push(o.m(i.value)),p&&v.push(o.m("icon")),l.value&&v.push(o.m(l.value)),v}),u=E(()=>at(i.value)?o.cssVarBlock({size:On(i.value)}):void 0),d=E(()=>({objectFit:n.fit}));be(()=>[n.src,n.srcSet],()=>r.value=!1);function h(p){r.value=!0,s("error",p)}return(p,v)=>(S(),P("span",{class:D(c.value),style:Qe(u.value)},[(e.src||e.srcSet)&&!r.value?(S(),P("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:Qe(d.value),onError:h},null,44,WQ)):e.icon?(S(),le(f(Je),{key:1},{default:X(()=>[(S(),le(kt(e.icon)))]),_:1})):ue(p.$slots,"default",{key:2})],6))}});const jQ={size:{type:re([Number,String]),values:fr,validator:e=>at(e)},shape:{type:re(String),values:["circle","square"]},collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:re(String),default:"light"},placement:{type:re(String),values:ei,default:"top"},popperClass:ln.popperClass,popperStyle:ln.popperStyle,collapseClass:String,collapseStyle:{type:re([String,Array,Object])}};var xk=j({name:"ElAvatarGroup",props:jQ,setup(e,{slots:t}){const n=Ee("avatar-group");return Nt(Ck,Yt({size:sn(e,"size"),shape:sn(e,"shape")})),()=>{var s,a;const o=lo((a=(s=t.default)==null?void 0:s.call(t))!=null?a:[]);let r=o;if(e.collapseAvatars&&o.length>e.maxCollapseAvatars){r=o.slice(0,e.maxCollapseAvatars);const l=o.slice(e.maxCollapseAvatars);r.push(W(Ms,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>W(Sk,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[je("+ "),l.length]}),content:()=>W("div",{class:n.e("collapse-avatars")},[l.map((c,u)=>{var d;return vn(c)?Ur(c,{key:(d=c.key)!=null?d:u}):c})])}))}return W("div",{class:n.b()},[r])}}});const KQ=yt(Sk,{AvatarGroup:xk}),UQ=Pn(xk),qQ={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},GQ={click:e=>e instanceof MouseEvent},YQ=(e,t,n)=>{const s=bn(),a=bn(),o=F(!1),r=()=>{s.value&&(o.value=s.value.scrollTop>=e.visibilityHeight)},i=c=>{var u;(u=s.value)==null||u.scrollTo({top:0,behavior:"smooth"}),t("click",c)},l=Cx(r,300,!0);return an(a,"scroll",l),Pt(()=>{var c;a.value=document,s.value=document.documentElement,e.target&&(s.value=(c=document.querySelector(e.target))!=null?c:void 0,s.value||es(n,`target does not exist: ${e.target}`),a.value=s.value),r()}),{visible:o,handleClick:i}},kk="ElBacktop";var XQ=j({name:kk,__name:"backtop",props:qQ,emits:GQ,setup(e,{emit:t}){const n=e,s=t,a=Ee("backtop"),{handleClick:o,visible:r}=YQ(n,s,kk),i=E(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(l,c)=>(S(),le(ws,{name:`${f(a).namespace.value}-fade-in`},{default:X(()=>[f(r)?(S(),P("div",{key:0,style:Qe(i.value),class:D(f(a).b()),onClick:c[0]||(c[0]=ht((...u)=>f(o)&&f(o)(...u),["stop"]))},[ue(l.$slots,"default",{},()=>[W(f(Je),{class:D(f(a).e("icon"))},{default:X(()=>[W(f(Kx))]),_:1},8,["class"])])],6)):ie("v-if",!0)]),_:3},8,["name"]))}});const JQ=yt(XQ),ZQ=Me({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:re([String,Object,Array])},offset:{type:re(Array),default:()=>[0,0]},badgeClass:{type:String}});var QQ=j({name:"ElBadge",__name:"badge",props:ZQ,setup(e,{expose:t}){const n=e,s=Ee("badge"),a=E(()=>n.isDot?"":at(n.value)&&at(n.max)?n.max{var r;return[{backgroundColor:n.color,marginRight:On(-n.offset[0]),marginTop:On(n.offset[1])},(r=n.badgeStyle)!=null?r:{}]});return t({content:a}),(r,i)=>(S(),P("div",{class:D(f(s).b())},[ue(r.$slots,"default"),W(ws,{name:`${f(s).namespace.value}-zoom-in-center`,persisted:""},{default:X(()=>[Ct(A("sup",{class:D([f(s).e("content"),f(s).em("content",e.type),f(s).is("fixed",!!r.$slots.default),f(s).is("dot",e.isDot),f(s).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:Qe(o.value)},[ue(r.$slots,"content",{value:a.value},()=>[je(ge(a.value),1)])],6),[[jt,!e.hidden&&(a.value||e.isDot||r.$slots.content)]])]),_:3},8,["name"])],2))}});const Ek=yt(QQ),eee=Me({separator:{type:String,default:"/"},separatorIcon:{type:rn}}),Ak=Symbol("breadcrumbKey"),tee=["aria-label"];var nee=j({name:"ElBreadcrumb",__name:"breadcrumb",props:eee,setup(e){const{t}=Bt(),n=e,s=Ee("breadcrumb"),a=F();return Nt(Ak,n),Pt(()=>{const o=a.value.querySelectorAll(`.${s.e("item")}`);o.length&&o[o.length-1].setAttribute("aria-current","page")}),(o,r)=>(S(),P("div",{ref_key:"breadcrumb",ref:a,class:D(f(s).b()),"aria-label":f(t)("el.breadcrumb.label"),role:"navigation"},[ue(o.$slots,"default")],10,tee))}});const see=Me({to:{type:re([String,Object]),default:""},replace:Boolean});var Tk=j({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:see,setup(e){const t=e,n=Mt(),s=Ke(Ak,void 0),a=Ee("breadcrumb"),o=n.appContext.config.globalProperties.$router,r=()=>{!t.to||!o||(t.replace?o.replace(t.to):o.push(t.to))};return(i,l)=>{var c,u;return S(),P("span",{class:D(f(a).e("item"))},[A("span",{class:D([f(a).e("inner"),f(a).is("link",!!e.to)]),role:"link",onClick:r},[ue(i.$slots,"default")],2),(c=f(s))!=null&&c.separatorIcon?(S(),le(f(Je),{key:0,class:D(f(a).e("separator"))},{default:X(()=>[(S(),le(kt(f(s).separatorIcon)))]),_:1},8,["class"])):(S(),P("span",{key:1,class:D(f(a).e("separator")),role:"presentation"},ge((u=f(s))==null?void 0:u.separator),3))],2)}}});const aee=yt(nee,{BreadcrumbItem:Tk}),oee=Pn(Tk),v3=["default","primary","success","warning","info","danger","text",""],m3=Me({size:ds,disabled:{type:Boolean,default:void 0},type:{type:String,values:v3,default:""},icon:{type:rn},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:rn,default:()=>Fs},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:re([String,Object]),default:"button"}}),ree={click:e=>e instanceof MouseEvent},Mk=Symbol("buttonGroupContextKey"),oi=({from:e,replacement:t,scope:n,version:s,ref:a,type:o="API"},r)=>{be(()=>f(r),i=>{},{immediate:!0})},iee=(e,t)=>{oi({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},E(()=>e.type==="text"));const n=Ke(Mk,void 0),s=Ef("button"),{form:a}=Ts(),o=rs(E(()=>n==null?void 0:n.size)),r=Nn(),i=F(),l=jn(),c=E(()=>{var b;return e.type||(n==null?void 0:n.type)||((b=s.value)==null?void 0:b.type)||""}),u=E(()=>{var b,C,w;return(w=(C=e.autoInsertSpace)!=null?C:(b=s.value)==null?void 0:b.autoInsertSpace)!=null?w:!1}),d=E(()=>{var b,C,w;return(w=(C=e.plain)!=null?C:(b=s.value)==null?void 0:b.plain)!=null?w:!1}),h=E(()=>{var b,C,w;return(w=(C=e.round)!=null?C:(b=s.value)==null?void 0:b.round)!=null?w:!1}),p=E(()=>{var b,C,w;return(w=(C=e.text)!=null?C:(b=s.value)==null?void 0:b.text)!=null?w:!1}),v=E(()=>e.tag==="button"?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=E(()=>{var b;const C=(b=l.default)==null?void 0:b.call(l);if(u.value&&(C==null?void 0:C.length)===1){const w=C[0];if((w==null?void 0:w.type)===pf){const _=w.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(_.trim())}}return!1});return{_disabled:r,_size:o,_type:c,_ref:i,_props:v,_plain:d,_round:h,_text:p,shouldAddSpace:m,handleClick:b=>{if(r.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",b)}}};function Gs(e,t){lee(e)&&(e="100%");var n=cee(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Hg(e){return Math.min(1,Math.max(0,e))}function lee(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function cee(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Pk(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Wg(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Eu(e){return e.length===1?"0"+e:String(e)}function uee(e,t,n){return{r:Gs(e,255)*255,g:Gs(t,255)*255,b:Gs(n,255)*255}}function Rk(e,t,n){e=Gs(e,255),t=Gs(t,255),n=Gs(n,255);var s=Math.max(e,t,n),a=Math.min(e,t,n),o=0,r=0,i=(s+a)/2;if(s===a)r=0,o=0;else{var l=s-a;switch(r=i>.5?l/(2-s-a):l/(s+a),s){case e:o=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dee(e,t,n){var s,a,o;if(e=Gs(e,360),t=Gs(t,100),n=Gs(n,100),t===0)a=n,o=n,s=n;else{var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;s=g3(i,r,e+1/3),a=g3(i,r,e),o=g3(i,r,e-1/3)}return{r:s*255,g:a*255,b:o*255}}function Ik(e,t,n){e=Gs(e,255),t=Gs(t,255),n=Gs(n,255);var s=Math.max(e,t,n),a=Math.min(e,t,n),o=0,r=s,i=s-a,l=s===0?0:i/s;if(s===a)o=0;else{switch(s){case e:o=(t-n)/i+(t>16,g:(e&65280)>>8,b:e&255}}var b3={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function mee(e){var t={r:0,g:0,b:0},n=1,s=null,a=null,o=null,r=!1,i=!1;return typeof e=="string"&&(e=yee(e)),typeof e=="object"&&(nl(e.r)&&nl(e.g)&&nl(e.b)?(t=uee(e.r,e.g,e.b),r=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):nl(e.h)&&nl(e.s)&&nl(e.v)?(s=Wg(e.s),a=Wg(e.v),t=fee(e.h,s,a),r=!0,i="hsv"):nl(e.h)&&nl(e.s)&&nl(e.l)&&(s=Wg(e.s),o=Wg(e.l),t=dee(e.h,s,o),r=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Pk(n),{ok:r,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var gee="[-\\+]?\\d+%?",bee="[-\\+]?\\d*\\.\\d+%?",rc="(?:".concat(bee,")|(?:").concat(gee,")"),y3="[\\s|\\(]+(".concat(rc,")[,|\\s]+(").concat(rc,")[,|\\s]+(").concat(rc,")\\s*\\)?"),w3="[\\s|\\(]+(".concat(rc,")[,|\\s]+(").concat(rc,")[,|\\s]+(").concat(rc,")[,|\\s]+(").concat(rc,")\\s*\\)?"),vr={CSS_UNIT:new RegExp(rc),rgb:new RegExp("rgb"+y3),rgba:new RegExp("rgba"+w3),hsl:new RegExp("hsl"+y3),hsla:new RegExp("hsla"+w3),hsv:new RegExp("hsv"+y3),hsva:new RegExp("hsva"+w3),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function yee(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(b3[e])e=b3[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=vr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=vr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=vr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=vr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=vr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=vr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=vr.hex8.exec(e),n?{r:fo(n[1]),g:fo(n[2]),b:fo(n[3]),a:Lk(n[4]),format:t?"name":"hex8"}:(n=vr.hex6.exec(e),n?{r:fo(n[1]),g:fo(n[2]),b:fo(n[3]),format:t?"name":"hex"}:(n=vr.hex4.exec(e),n?{r:fo(n[1]+n[1]),g:fo(n[2]+n[2]),b:fo(n[3]+n[3]),a:Lk(n[4]+n[4]),format:t?"name":"hex8"}:(n=vr.hex3.exec(e),n?{r:fo(n[1]+n[1]),g:fo(n[2]+n[2]),b:fo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function nl(e){return!!vr.CSS_UNIT.exec(String(e))}var Ff=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var s;if(t instanceof e)return t;typeof t=="number"&&(t=vee(t)),this.originalInput=t;var a=mee(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(s=n.format)!==null&&s!==void 0?s:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,s,a,o=t.r/255,r=t.g/255,i=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*s+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Pk(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Ik(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ik(this.r,this.g,this.b),n=Math.round(t.h*360),s=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(s,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(s,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Rk(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Rk(this.r,this.g,this.b),n=Math.round(t.h*360),s=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(s,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(s,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Ok(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),hee(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),s=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(s,")"):"rgba(".concat(t,", ").concat(n,", ").concat(s,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Gs(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Gs(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Ok(this.r,this.g,this.b,!1),n=0,s=Object.entries(b3);n=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(s=this.toRgbString()),t==="prgb"&&(s=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(s=this.toHexString()),t==="hex3"&&(s=this.toHexString(!0)),t==="hex4"&&(s=this.toHex8String(!0)),t==="hex8"&&(s=this.toHex8String()),t==="name"&&(s=this.toName()),t==="hsl"&&(s=this.toHslString()),t==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Hg(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Hg(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Hg(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Hg(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),s=(n.h+t)%360;return n.h=s<0?360+s:s,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var s=this.toRgb(),a=new e(t).toRgb(),o=n/100,r={r:(a.r-s.r)*o+s.r,g:(a.g-s.g)*o+s.g,b:(a.b-s.b)*o+s.b,a:(a.a-s.a)*o+s.a};return new e(r)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var s=this.toHsl(),a=360/n,o=[this];for(s.h=(s.h-(a*t>>1)+720)%360;--t;)s.h=(s.h+a)%360,o.push(new e(s));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),s=n.h,a=n.s,o=n.v,r=[],i=1/t;t--;)r.push(new e({h:s,s:a,v:o})),o=(o+i)%1;return r},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),s=new e(t).toRgb(),a=n.a+s.a*(1-n.a);return new e({r:(n.r*n.a+s.r*s.a*(1-n.a))/a,g:(n.g*n.a+s.g*s.a*(1-n.a))/a,b:(n.b*n.a+s.b*s.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),s=n.h,a=[this],o=360/t,r=1;r{let s={},a=e.color;if(a){const o=a.match(/var\((.*?)\)/);o&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const r=new Ff(a),i=e.dark?r.tint(20).toString():ic(r,20);if(e.plain)s=n.cssVarBlock({"bg-color":e.dark?ic(r,90):r.tint(90).toString(),"text-color":a,"border-color":e.dark?ic(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(s[n.cssVarBlockName("disabled-bg-color")]=e.dark?ic(r,90):r.tint(90).toString(),s[n.cssVarBlockName("disabled-text-color")]=e.dark?ic(r,50):r.tint(50).toString(),s[n.cssVarBlockName("disabled-border-color")]=e.dark?ic(r,80):r.tint(80).toString());else{const l=e.dark?ic(r,30):r.tint(30).toString(),c=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(s=n.cssVarBlock({"bg-color":a,"text-color":c,"border-color":a,"hover-bg-color":l,"hover-text-color":c,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),t.value){const u=e.dark?ic(r,50):r.tint(50).toString();s[n.cssVarBlockName("disabled-bg-color")]=u,s[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,s[n.cssVarBlockName("disabled-border-color")]=u}}}return s})}var _ee=j({name:"ElButton",__name:"button",props:m3,emits:ree,setup(e,{expose:t,emit:n}){const s=e,a=n,o=wee(s),r=Ee("button"),{_ref:i,_size:l,_type:c,_disabled:u,_props:d,_plain:h,_round:p,_text:v,shouldAddSpace:m,handleClick:g}=iee(s,a),b=E(()=>[r.b(),r.m(c.value),r.m(l.value),r.is("disabled",u.value),r.is("loading",s.loading),r.is("plain",h.value),r.is("round",p.value),r.is("circle",s.circle),r.is("text",v.value),r.is("link",s.link),r.is("has-bg",s.bg)]);return t({ref:i,size:l,type:c,disabled:u,shouldAddSpace:m}),(C,w)=>(S(),le(kt(e.tag),Tt({ref_key:"_ref",ref:i},f(d),{class:b.value,style:f(o),onClick:f(g)}),{default:X(()=>[e.loading?(S(),P(He,{key:0},[C.$slots.loading?ue(C.$slots,"loading",{key:0}):(S(),le(f(Je),{key:1,class:D(f(r).is("loading"))},{default:X(()=>[(S(),le(kt(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||C.$slots.icon?(S(),le(f(Je),{key:1},{default:X(()=>[e.icon?(S(),le(kt(e.icon),{key:0})):ue(C.$slots,"icon",{key:1})]),_:3})):ie("v-if",!0),C.$slots.default?(S(),P("span",{key:2,class:D({[f(r).em("text","expand")]:f(m)})},[ue(C.$slots,"default")],2)):ie("v-if",!0)]),_:3},16,["class","style","onClick"]))}});const Cee={size:m3.size,type:m3.type,direction:{type:re(String),values:["horizontal","vertical"],default:"horizontal"}};var Nk=j({name:"ElButtonGroup",__name:"button-group",props:Cee,setup(e){const t=e;Nt(Mk,Yt({size:sn(t,"size"),type:sn(t,"type")}));const n=Ee("button");return(s,a)=>(S(),P("div",{class:D([f(n).b("group"),f(n).bm("group",t.direction)])},[ue(s.$slots,"default")],2))}});const Cs=yt(_ee,{ButtonGroup:Nk}),$k=Pn(Nk),See=e=>Ae(e)&&e.length===2&&e.every(t=>Gl(t)),xee=Me({modelValue:{type:Date},range:{type:re(Array),validator:See},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:re(Function)}}),kee={[mt]:e=>Gl(e),[os]:e=>Gl(e)};var sl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function al(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dk={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){var n=1e3,s=6e4,a=36e5,o="millisecond",r="second",i="minute",l="hour",c="day",u="week",d="month",h="quarter",p="year",v="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var J=["th","st","nd","rd"],Y=U%100;return"["+U+(J[(Y-20)%10]||J[Y]||J[0])+"]"}},w=function(U,J,Y){var L=String(U);return!L||L.length>=J?U:""+Array(J+1-L.length).join(Y)+U},_={s:w,z:function(U){var J=-U.utcOffset(),Y=Math.abs(J),L=Math.floor(Y/60),N=Y%60;return(J<=0?"+":"-")+w(L,2,"0")+":"+w(N,2,"0")},m:function U(J,Y){if(J.date()1)return U(z[0])}else{var q=J.name;k[q]=J,N=q}return!L&&N&&(x=N),N||!L&&x},R=function(U,J){if(I(U))return U.clone();var Y=typeof J=="object"?J:{};return Y.date=U,Y.args=arguments,new M(Y)},$=_;$.l=O,$.i=I,$.w=function(U,J){return R(U,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var M=function(){function U(Y){this.$L=O(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[T]=!0}var J=U.prototype;return J.parse=function(Y){this.$d=function(L){var N=L.date,V=L.utc;if(N===null)return new Date(NaN);if($.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var z=N.match(g);if(z){var q=z[2]-1||0,Q=(z[7]||"0").substring(0,3);return V?new Date(Date.UTC(z[1],q,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Q)):new Date(z[1],q,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Q)}}return new Date(N)}(Y),this.init()},J.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},J.$utils=function(){return $},J.isValid=function(){return this.$d.toString()!==m},J.isSame=function(Y,L){var N=R(Y);return this.startOf(L)<=N&&N<=this.endOf(L)},J.isAfter=function(Y,L){return R(Y)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),Fk=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Bk=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Vk=function(e,t){const n=Gl(e),s=Gl(t);return n&&s?e.getTime()===t.getTime():!n&&!s?e===t:!1},zk=function(e,t){const n=Ae(e),s=Ae(t);return n&&s?e.length!==t.length?!1:e.every((a,o)=>Vk(a,t[o])):!n&&!s?Vk(e,t):!1},Hk=function(e,t,n){const s=Ra(t)||t==="x"?wt(e).locale(n):wt(e,t).locale(n);return s.isValid()?s:void 0},Wk=function(e,t,n){return Ra(t)?e:t==="x"?+e:wt(e).locale(n).format(t)},C3=(e,t)=>{var n;const s=[],a=t==null?void 0:t();for(let o=0;oAe(e)?e.map(t=>t.toDate()):e.toDate(),Aee=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return lc(t).map((s,a)=>n-(t-a-1))},Tee=e=>{const t=e.daysInMonth();return lc(t).map((n,s)=>s+1)},Mee=e=>lc(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),Pee=Me({selectedDay:{type:re(Object)},range:{type:re(Array)},date:{type:re(Object),required:!0},hideHeader:{type:Boolean}}),Ree={pick:e=>bt(e)};var jk={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){return function(n,s,a){var o=s.prototype,r=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,h,p,v,m){var g=d.name?d:d.$locale(),b=r(g[h]),C=r(g[p]),w=b||C.map(function(x){return x.slice(0,v)});if(!m)return w;var _=g.weekStart;return w.map(function(x,k){return w[(k+(_||0))%7]})},l=function(){return a.Ls[a.locale()]},c=function(d,h){return d.formats[h]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,m,g){return m||g.slice(1)})}(d.formats[h.toUpperCase()])},u=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):i(d,"months")},monthsShort:function(h){return h?h.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return u.bind(this)()},a.localeData=function(){var d=l();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return c(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return i(l(),"months")},a.monthsShort=function(){return i(l(),"monthsShort","months",3)},a.weekdays=function(d){return i(l(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return i(l(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return i(l(),"weekdaysMin","weekdays",2,d)}}})})(jk);var Iee=jk.exports;const Kk=al(Iee),Oee=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],S3=["sun","mon","tue","wed","thu","fri","sat"],Lee=(e,t)=>{wt.extend(Kk);const n=wt.localeData().firstDayOfWeek(),{t:s,lang:a}=Bt(),o=wt().locale(a.value),r=E(()=>!!e.range&&!!e.range.length),i=E(()=>{let h=[];if(r.value){const[p,v]=e.range,m=lc(v.date()-p.date()+1).map(C=>({text:p.date()+C,type:"current"}));let g=m.length%7;g=g===0?0:7-g;const b=lc(g).map((C,w)=>({text:w+1,type:"next"}));h=m.concat(b)}else{const p=e.date.startOf("month").day(),v=Aee(e.date,(p-n+7)%7).map(C=>({text:C,type:"prev"})),m=Tee(e.date).map(C=>({text:C,type:"current"}));h=[...v,...m];const g=7-(h.length%7||7),b=lc(g).map((C,w)=>({text:w+1,type:"next"}));h=h.concat(b)}return Mee(h)}),l=E(()=>{const h=n;return h===0?S3.map(p=>s(`el.datepicker.weeks.${p}`)):S3.slice(h).concat(S3.slice(0,h)).map(p=>s(`el.datepicker.weeks.${p}`))}),c=(h,p)=>{switch(p){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:o,isInRange:r,rows:i,weekDays:l,getFormattedDate:c,handlePickDay:({text:h,type:p})=>{const v=c(h,p);t("pick",v)},getSlotData:({text:h,type:p})=>{const v=c(h,p);return{isSelected:v.isSame(e.selectedDay),type:`${p}-month`,day:v.format("YYYY-MM-DD"),date:v.toDate()}}}},Nee={key:0},$ee=["onClick"];var Uk=j({name:"DateTable",__name:"date-table",props:Pee,emits:Ree,setup(e,{expose:t,emit:n}){const s=e,a=n,{isInRange:o,now:r,rows:i,weekDays:l,getFormattedDate:c,handlePickDay:u,getSlotData:d}=Lee(s,a),h=Ee("calendar-table"),p=Ee("calendar-day"),v=({text:m,type:g})=>{const b=[g];if(g==="current"){const C=c(m,g);C.isSame(s.selectedDay,"day")&&b.push(p.is("selected")),C.isSame(r,"day")&&b.push(p.is("today"))}return b};return t({getFormattedDate:c}),(m,g)=>(S(),P("table",{class:D([f(h).b(),f(h).is("range",f(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?ie("v-if",!0):(S(),P("thead",Nee,[A("tr",null,[(S(!0),P(He,null,Et(f(l),b=>(S(),P("th",{key:b,scope:"col"},ge(b),1))),128))])])),A("tbody",null,[(S(!0),P(He,null,Et(f(i),(b,C)=>(S(),P("tr",{key:C,class:D({[f(h).e("row")]:!0,[f(h).em("row","hide-border")]:C===0&&e.hideHeader})},[(S(!0),P(He,null,Et(b,(w,_)=>(S(),P("td",{key:_,class:D(v(w)),onClick:x=>f(u)(w)},[A("div",{class:D(f(p).b())},[ue(m.$slots,"date-cell",{data:f(d)(w)},()=>[A("span",null,ge(w.text),1)])],2)],10,$ee))),128))],2))),128))])],2))}});const Dee=(e,t)=>{const n=e.endOf("month"),s=t.startOf("month"),o=n.isSame(s,"week")?s.add(1,"week"):s;return[[e,n],[o.startOf("week"),t]]},Fee=(e,t)=>{const n=e.endOf("month"),s=e.add(1,"month").startOf("month"),a=n.isSame(s,"week")?s.add(1,"week"):s,o=a.endOf("month"),r=t.startOf("month"),i=o.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[a.startOf("week"),o],[i.startOf("week"),t]]},Bee=(e,t,n)=>{const{lang:s}=Bt(),a=F(),o=wt().locale(s.value),r=E({get(){return e.modelValue?l.value:a.value},set(b){if(!b)return;a.value=b;const C=b.toDate();t(os,C),t(mt,C)}}),i=E(()=>{if(!e.range||!Ae(e.range)||e.range.length!==2||e.range.some(_=>!Gl(_)))return[];const b=e.range.map(_=>wt(_).locale(s.value)),[C,w]=b;return C.isAfter(w)?[]:C.isSame(w,"month")?p(C,w):C.add(1,"month").month()!==w.month()?[]:p(C,w)}),l=E(()=>e.modelValue?wt(e.modelValue).locale(s.value):r.value||(i.value.length?i.value[0][0]:o)),c=E(()=>l.value.subtract(1,"month").date(1)),u=E(()=>l.value.add(1,"month").date(1)),d=E(()=>l.value.subtract(1,"year").date(1)),h=E(()=>l.value.add(1,"year").date(1)),p=(b,C)=>{const w=b.startOf("week"),_=C.endOf("week"),x=w.get("month"),k=_.get("month");return x===k?[[w,_]]:(x+1)%12===k?Dee(w,_):x+2===k||(x+1)%11===k?Fee(w,_):[]},v=b=>{r.value=b},m=b=>{const w={"prev-month":c.value,"next-month":u.value,"prev-year":d.value,"next-year":h.value,today:o}[b];w.isSame(l.value,"day")||v(w)};return{calculateValidatedDateRange:p,date:l,realSelectedDay:r,pickDay:v,selectDate:m,validatedRange:i,handleDateChange:b=>{b==="today"?m("today"):v(b)}}},Vee=Me({date:{type:re(Object),required:!0},formatter:{type:re(Function)}}),zee={"date-change":e=>bt(e)||Xe(e)},ol=Me({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:fr},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Hee={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Wee=["aria-label"],jee=["aria-label"];var Kee=j({name:"ElTag",__name:"tag",props:ol,emits:Hee,setup(e,{emit:t}){const n=e,s=t,a=rs(),{t:o}=Bt(),r=Ee("tag"),i=E(()=>{const{type:d,hit:h,effect:p,closable:v,round:m}=n;return[r.b(),r.is("closable",v),r.m(d||"primary"),r.m(a.value),r.m(p),r.is("hit",h),r.is("round",m)]}),l=d=>{s("close",d)},c=d=>{s("click",d)},u=d=>{var h,p,v;(v=(p=(h=d==null?void 0:d.component)==null?void 0:h.subTree)==null?void 0:p.component)!=null&&v.bum&&(d.component.subTree.component.bum=null)};return(d,h)=>e.disableTransitions?(S(),P("span",{key:0,class:D(i.value),style:Qe({backgroundColor:e.color}),onClick:c},[A("span",{class:D(f(r).e("content"))},[ue(d.$slots,"default")],2),e.closable?(S(),P("button",{key:0,"aria-label":f(o)("el.tag.close"),class:D(f(r).e("close")),type:"button",onClick:ht(l,["stop"])},[W(f(Je),null,{default:X(()=>[W(f(Ua))]),_:1})],10,Wee)):ie("v-if",!0)],6)):(S(),le(ws,{key:1,name:`${f(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:u},{default:X(()=>[A("span",{class:D(i.value),style:Qe({backgroundColor:e.color}),onClick:c},[A("span",{class:D(f(r).e("content"))},[ue(d.$slots,"default")],2),e.closable?(S(),P("button",{key:0,"aria-label":f(o)("el.tag.close"),class:D(f(r).e("close")),type:"button",onClick:ht(l,["stop"])},[W(f(Je),null,{default:X(()=>[W(f(Ua))]),_:1})],10,jee)):ie("v-if",!0)],6)]),_:3},8,["name"]))}});const rl=yt(Kee),Kg={label:"label",value:"value",disabled:"disabled",options:"options"};function Bp(e){const t=F({...Kg,...e.props});let n={...e.props};return be(()=>e.props,i=>{Bn(i,n)||(t.value={...Kg,...i},n={...i})},{deep:!0}),{aliasProps:t,getLabel:i=>Qn(i,t.value.label),getValue:i=>Qn(i,t.value.value),getDisabled:i=>Qn(i,t.value.disabled),getOptions:i=>Qn(i,t.value.options)}}const qk=Symbol("ElSelectGroup"),Vp=Symbol("ElSelect"),x3="ElOption",Uee=Me({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),k3=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),cc=e=>O0(e);function qee(e,t){const n=Ke(Vp);n||es(x3,"usage: ");const s=Ke(qk,{disabled:!1}),a=E(()=>u(As(n.props.modelValue),e.value)),o=E(()=>{var p;if(n.props.multiple){const v=As((p=n.props.modelValue)!=null?p:[]);return!a.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),r=E(()=>{var p;return(p=e.label)!=null?p:bt(e.value)?"":e.value}),i=E(()=>e.value||e.label||""),l=E(()=>e.disabled||t.groupDisabled||o.value),c=Mt(),u=(p=[],v)=>{if(bt(e.value)){const m=n.props.valueKey;return p&&p.some(g=>pn(Qn(g,m))===Qn(v,m))}else return p&&p.includes(v)},d=()=>{l.value||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=p=>{const v=new RegExp(k3(p),"i");t.visible=v.test(String(r.value))||e.created};return be(()=>r.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),be(()=>e.value,(p,v)=>{const{remote:m,valueKey:g}=n.props;if((m?p!==v:!Bn(p,v))&&(n.onOptionDestroy(v,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!m){if(g&&bt(p)&&bt(v)&&p[g]===v[g])return;n.setSelected()}}),be(()=>s.disabled,()=>{t.groupDisabled=s.disabled},{immediate:!0}),{select:n,currentLabel:r,currentValue:i,itemSelected:a,isDisabled:l,hoverItem:d,updateOption:h}}var Gee=j({name:x3,componentName:x3,props:Uee,setup(e){const t=Ee("select"),n=Bs(),s=E(()=>[t.be("dropdown","item"),t.is("disabled",f(i)),t.is("selected",f(r)),t.is("hovering",f(h))]),a=Yt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:r,isDisabled:i,select:l,hoverItem:c,updateOption:u}=qee(e,a),{visible:d,hover:h}=ys(a),p=Mt().proxy;l.onOptionCreate(p),tn(()=>{const m=p.value;ze(()=>{const{selected:g}=l.states,b=g.some(C=>C.value===p.value);l.states.cachedOptions.get(m)===p&&!b&&l.states.cachedOptions.delete(m)}),l.onOptionDestroy(m,p)});function v(){i.value||l.handleOptionSelect(p)}return{ns:t,id:n,containerKls:s,currentLabel:o,itemSelected:r,isDisabled:i,select:l,visible:d,hover:h,states:a,hoverItem:c,updateOption:u,selectOptionClick:v}}});const Yee=["id","aria-disabled","aria-selected"];function Xee(e,t,n,s,a,o){return Ct((S(),P("li",{id:e.id,class:D(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=ht((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[ue(e.$slots,"default",{},()=>[A("span",null,ge(e.currentLabel),1)])],42,Yee)),[[jt,e.visible]])}var E3=fs(Gee,[["render",Xee]]);const Ug=11,Gk=2;var Jee=j({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ke(Vp),t=Ee("select"),n=E(()=>e.props.popperClass),s=E(()=>e.props.multiple),a=E(()=>e.props.fitInputWidth),o=F("");function r(){var i;const l=(i=e.selectRef)==null?void 0:i.offsetWidth;l?o.value=`${l-Gk}px`:o.value=""}return Pt(()=>{r(),En(e.selectRef,r)}),{ns:t,minWidth:o,popperClass:n,isMultiple:s,isFitInputWidth:a}}});function Zee(e,t,n,s,a,o){return S(),P("div",{class:D([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Qe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(S(),P("div",{key:0,class:D(e.ns.be("dropdown","header"))},[ue(e.$slots,"header")],2)):ie("v-if",!0),ue(e.$slots,"default"),e.$slots.footer?(S(),P("div",{key:1,class:D(e.ns.be("dropdown","footer"))},[ue(e.$slots,"footer")],2)):ie("v-if",!0)],6)}var Qee=fs(Jee,[["render",Zee]]);const ete=(e,t)=>{const{t:n}=Bt(),s=jn(),a=Bs(),o=Ee("select"),r=Ee("input"),i=Yt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=F(),c=F(),u=F(),d=F(),h=F(),p=F(),v=F(),m=F(),g=F(),b=F(),C=F(),w=F(!1),_=F(),x=F(!1),{form:k,formItem:T}=Ts(),{inputId:I}=uo(e,{formItemContext:T}),{valueOnClear:O,isEmptyValue:R}=wp(e),{isComposing:$,handleCompositionStart:M,handleCompositionUpdate:B,handleCompositionEnd:U}=Dp({afterComposition:Pe=>Wt(Pe)}),J=Nn(),{wrapperRef:Y,isFocused:L,handleBlur:N}=tl(h,{disabled:J,afterFocus(){e.automaticDropdown&&!w.value&&(w.value=!0,i.menuVisibleOnFocus=!0)},beforeBlur(Pe){var pt,me;return((pt=u.value)==null?void 0:pt.isFocusInsideContent(Pe))||((me=d.value)==null?void 0:me.isFocusInsideContent(Pe))},afterBlur(){var Pe;w.value=!1,i.menuVisibleOnFocus=!1,e.validateEvent&&((Pe=T==null?void 0:T.validate)==null||Pe.call(T,"blur").catch(pt=>void 0))}}),V=E(()=>Ae(e.modelValue)?e.modelValue.length>0:!R(e.modelValue)),z=E(()=>{var Pe;return(Pe=k==null?void 0:k.statusIcon)!=null?Pe:!1}),q=E(()=>e.clearable&&!J.value&&V.value&&(L.value||i.inputHovering)),Q=E(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),K=E(()=>o.is("reverse",!!(Q.value&&w.value))),ee=E(()=>(T==null?void 0:T.validateState)||""),se=E(()=>ee.value&&Pg[ee.value]),pe=E(()=>e.remote?e.debounce:0),te=E(()=>e.remote&&!i.inputValue&&i.options.size===0),fe=E(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&i.inputValue&&i.options.size>0&&ve.value===0?e.noMatchText||n("el.select.noMatch"):i.options.size===0?e.noDataText||n("el.select.noData"):null),ve=E(()=>ce.value.filter(Pe=>Pe.visible).length),ce=E(()=>{const Pe=Array.from(i.options.values()),pt=[];return i.optionValues.forEach(me=>{const he=Pe.findIndex(Re=>Re.value===me);he>-1&&pt.push(Pe[he])}),pt.length>=Pe.length?pt:Pe}),Z=E(()=>Array.from(i.cachedOptions.values())),H=E(()=>{const Pe=ce.value.filter(pt=>!pt.created).some(pt=>pt.currentLabel===i.inputValue);return e.filterable&&e.allowCreate&&i.inputValue!==""&&!Pe}),ae=()=>{e.filterable&&Ze(e.filterMethod)||e.filterable&&e.remote&&Ze(e.remoteMethod)||ce.value.forEach(Pe=>{var pt;(pt=Pe.updateOption)==null||pt.call(Pe,i.inputValue)})},de=rs(),ye=E(()=>["small"].includes(de.value)?"small":"default"),_e=E({get(){return w.value&&(e.loading||!te.value||e.remote&&!!s.empty)&&(!x.value||!Ra(i.previousQuery))},set(Pe){w.value=Pe}}),Se=E(()=>{if(e.multiple&&!Ht(e.modelValue))return As(e.modelValue).length===0&&!i.inputValue;const Pe=Ae(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Ht(Pe)?!i.inputValue:!0}),Le=E(()=>{var Pe;const pt=(Pe=e.placeholder)!=null?Pe:n("el.select.placeholder");return e.multiple||!V.value?pt:i.selectedLabel}),De=E(()=>yg?null:"mouseenter");be(()=>e.modelValue,(Pe,pt)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(i.inputValue="",$e("")),Oe(),!Bn(Pe,pt)&&e.validateEvent&&(T==null||T.validate("change").catch(me=>void 0))},{flush:"post",deep:!0}),be(()=>w.value,Pe=>{Pe?$e(i.inputValue):(i.inputValue="",i.previousQuery=null,i.isBeforeHide=!0,i.menuVisibleOnFocus=!1)}),be(()=>i.options.entries(),()=>{Xt&&(Oe(),e.defaultFirstOption&&(e.filterable||e.remote)&&ve.value&&Ce())},{flush:"post"}),be([()=>i.hoveringIndex,ce],([Pe])=>{at(Pe)&&Pe>-1?_.value=ce.value[Pe]||{}:_.value={},ce.value.forEach(pt=>{pt.hover=_.value===pt})}),Wa(()=>{i.isBeforeHide||ae()});const $e=Pe=>{i.previousQuery===Pe||$.value||(i.previousQuery=Pe,e.filterable&&Ze(e.filterMethod)?e.filterMethod(Pe):e.filterable&&e.remote&&Ze(e.remoteMethod)&&e.remoteMethod(Pe),e.defaultFirstOption&&(e.filterable||e.remote)&&ve.value?ze(Ce):ze(We))},Ce=()=>{const Pe=ce.value.filter(Re=>Re.visible&&!Re.disabled&&!Re.states.groupDisabled),pt=Pe.find(Re=>Re.created),me=Pe[0],he=ce.value.map(Re=>Re.value);i.hoveringIndex=Ye(he,pt||me)},Oe=()=>{if(e.multiple)i.selectedLabel="";else{const pt=Ae(e.modelValue)?e.modelValue[0]:e.modelValue,me=Ie(pt);i.selectedLabel=me.currentLabel,i.selected=[me];return}const Pe=[];Ht(e.modelValue)||As(e.modelValue).forEach(pt=>{Pe.push(Ie(pt))}),i.selected=Pe},Ie=Pe=>{let pt;const me=R0(Pe);for(let it=i.cachedOptions.size-1;it>=0;it--){const qe=Z.value[it];if(me?Qn(qe.value,e.valueKey)===Qn(Pe,e.valueKey):qe.value===Pe){pt={index:ce.value.filter(vt=>!vt.created).indexOf(qe),value:Pe,currentLabel:qe.currentLabel,get isDisabled(){return qe.isDisabled}};break}}if(pt)return pt;const he=me?Pe.label:Pe??"";return{index:-1,value:Pe,currentLabel:he}},We=()=>{const Pe=i.selected.length;if(Pe>0){const pt=i.selected[Pe-1];i.hoveringIndex=ce.value.findIndex(me=>Es(pt)===Es(me))}else i.hoveringIndex=-1},nt=()=>{i.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},dt=()=>{i.collapseItemWidth=b.value.getBoundingClientRect().width},Fe=()=>{var Pe,pt;(pt=(Pe=u.value)==null?void 0:Pe.updatePopper)==null||pt.call(Pe)},Be=()=>{var Pe,pt;(pt=(Pe=d.value)==null?void 0:Pe.updatePopper)==null||pt.call(Pe)},et=()=>{i.inputValue.length>0&&!w.value&&(w.value=!0),$e(i.inputValue)},Wt=Pe=>{if(i.inputValue=Pe.target.value,e.remote)x.value=!0,qt();else return et()},qt=gp(()=>{et(),x.value=!1},pe),ct=Pe=>{Bn(e.modelValue,Pe)||t(Dt,Pe)},gt=Pe=>fx(Pe,pt=>{const me=i.cachedOptions.get(pt);return!(me!=null&&me.disabled)&&!(me!=null&&me.states.groupDisabled)}),Ot=Pe=>{const pt=un(Pe);if(e.multiple&&pt!==Te.delete&&Pe.target.value.length<=0){const me=As(e.modelValue).slice(),he=gt(me);if(he<0)return;const Re=me[he];me.splice(he,1),t(mt,me),ct(me),t("remove-tag",Re)}},xe=(Pe,pt)=>{const me=i.selected.indexOf(pt);if(me>-1&&!J.value){const he=As(e.modelValue).slice();he.splice(me,1),t(mt,he),ct(he),t("remove-tag",pt.value)}Pe.stopPropagation(),st()},Ue=Pe=>{Pe.stopPropagation();const pt=e.multiple?[]:O.value;if(e.multiple)for(const me of i.selected)me.isDisabled&&pt.push(me.value);t(mt,pt),ct(pt),i.hoveringIndex=-1,w.value=!1,t("clear"),st()},we=Pe=>{var pt;if(e.multiple){const me=As((pt=e.modelValue)!=null?pt:[]).slice(),he=Ye(me,Pe);he>-1?me.splice(he,1):(e.multipleLimit<=0||me.length{At(Pe)})},Ye=(Pe,pt)=>Ht(pt)?-1:bt(pt.value)?Pe.findIndex(me=>Bn(Qn(me,e.valueKey),Es(pt))):Pe.indexOf(pt.value),At=Pe=>{var pt,me,he,Re,it;const qe=Ae(Pe)?Pe[Pe.length-1]:Pe;let lt=null;if(!Xn(qe==null?void 0:qe.value)){const vt=ce.value.filter(Ft=>Ft.value===qe.value);vt.length>0&&(lt=vt[0].$el)}if(u.value&<){const vt=(Re=(he=(me=(pt=u.value)==null?void 0:pt.popperRef)==null?void 0:me.contentRef)==null?void 0:he.querySelector)==null?void 0:Re.call(he,`.${o.be("dropdown","wrap")}`);vt&&Dy(vt,lt)}(it=C.value)==null||it.handleScroll()},Jt=Pe=>{i.options.set(Pe.value,Pe),i.cachedOptions.set(Pe.value,Pe)},Cn=(Pe,pt)=>{i.options.get(Pe)===pt&&i.options.delete(Pe)},xn=E(()=>{var Pe,pt;return(pt=(Pe=u.value)==null?void 0:Pe.popperRef)==null?void 0:pt.contentRef}),Ve=()=>{i.isBeforeHide=!1,ze(()=>{var Pe;(Pe=C.value)==null||Pe.update(),At(i.selected)})},st=()=>{var Pe;(Pe=h.value)==null||Pe.focus()},_t=()=>{var Pe;if(w.value){w.value=!1,ze(()=>{var pt;return(pt=h.value)==null?void 0:pt.blur()});return}(Pe=h.value)==null||Pe.blur()},kn=Pe=>{Ue(Pe)},Zt=Pe=>{if(w.value=!1,L.value){const pt=new FocusEvent("blur",Pe);ze(()=>N(pt))}},rt=()=>{i.inputValue.length>0?i.inputValue="":w.value=!1},ot=Pe=>{var pt;J.value||e.filterable&&w.value&&Pe&&!((pt=v.value)!=null&&pt.contains(Pe.target))||(yg&&(i.inputHovering=!0),i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:w.value=!w.value)},Rt=()=>{if(!w.value)ot();else{const Pe=ce.value[i.hoveringIndex];Pe&&!Pe.isDisabled&&we(Pe)}},Es=Pe=>bt(Pe.value)?Qn(Pe.value,e.valueKey):Pe.value,sa=E(()=>ce.value.filter(Pe=>Pe.visible).every(Pe=>Pe.isDisabled)),Io=E(()=>e.multiple?e.collapseTags?i.selected.slice(0,e.maxCollapseTags):i.selected:[]),C0=E(()=>e.multiple?e.collapseTags?i.selected.slice(e.maxCollapseTags):[]:[]),jl=Pe=>{if(!w.value){w.value=!0;return}if(!(i.options.size===0||ve.value===0||$.value)&&!sa.value){Pe==="next"?(i.hoveringIndex++,i.hoveringIndex===i.options.size&&(i.hoveringIndex=0)):Pe==="prev"&&(i.hoveringIndex--,i.hoveringIndex<0&&(i.hoveringIndex=i.options.size-1));const pt=ce.value[i.hoveringIndex];(pt.isDisabled||!pt.visible)&&jl(Pe),ze(()=>At(_.value))}},S0=(Pe,pt,me,he)=>{for(let Re=pt;Re>=0&&Re{var me;const he=i.options.size;if(he===0)return;const Re=yu(Pe,0,he-1),it=ce.value,qe=pt==="up"?-1:1,lt=(me=S0(it,Re,qe,he))!=null?me:S0(it,Re-qe,-qe,he);lt!=null&&(i.hoveringIndex=lt,ze(()=>At(_.value)))},o2=Pe=>{const pt=un(Pe);let me=!0;switch(pt){case Te.up:jl("prev");break;case Te.down:jl("next");break;case Te.enter:case Te.numpadEnter:$.value||Rt();break;case Te.esc:rt();break;case Te.backspace:me=!1,Ot(Pe);return;case Te.home:if(!w.value)return;Vr(0,"down");break;case Te.end:if(!w.value)return;Vr(i.options.size-1,"up");break;case Te.pageUp:if(!w.value)return;Vr(i.hoveringIndex-10,"up");break;case Te.pageDown:if(!w.value)return;Vr(i.hoveringIndex+10,"down");break;default:me=!1;break}me&&(Pe.preventDefault(),Pe.stopPropagation())},tf=()=>{if(!c.value)return 0;const Pe=window.getComputedStyle(c.value);return Number.parseFloat(Pe.gap||"6px")},r2=E(()=>{const Pe=tf(),pt=e.filterable?Pe+Ug:0;return{maxWidth:`${b.value&&e.maxCollapseTags===1?i.selectionWidth-i.collapseItemWidth-Pe-pt:i.selectionWidth-pt}px`}}),i2=E(()=>({maxWidth:`${i.selectionWidth}px`})),l2=Pe=>{t("popup-scroll",Pe)};En(c,nt),En(Y,Fe),En(g,Be),En(b,dt);let Kl;return be(()=>_e.value,Pe=>{Pe?Kl=En(m,Fe).stop:(Kl==null||Kl(),Kl=void 0),t("visible-change",Pe)}),Pt(()=>{Oe()}),{inputId:I,contentId:a,nsSelect:o,nsInput:r,states:i,isFocused:L,expanded:w,optionsArray:ce,hoverOption:_,selectSize:de,filteredOptionsCount:ve,updateTooltip:Fe,updateTagTooltip:Be,debouncedOnInputChange:qt,onInput:Wt,deletePrevTag:Ot,deleteTag:xe,deleteSelected:Ue,handleOptionSelect:we,scrollToOption:At,hasModelValue:V,shouldShowPlaceholder:Se,currentPlaceholder:Le,mouseEnterEventName:De,needStatusIcon:z,showClearBtn:q,iconComponent:Q,iconReverse:K,validateState:ee,validateIcon:se,showNewOption:H,updateOptions:ae,collapseTagSize:ye,setSelected:Oe,selectDisabled:J,emptyText:fe,handleCompositionStart:M,handleCompositionUpdate:B,handleCompositionEnd:U,handleKeydown:o2,onOptionCreate:Jt,onOptionDestroy:Cn,handleMenuEnter:Ve,focus:st,blur:_t,handleClearClick:kn,handleClickOutside:Zt,handleEsc:rt,toggleMenu:ot,selectOption:Rt,getValueKey:Es,navigateOptions:jl,dropdownMenuVisible:_e,showTagList:Io,collapseTagList:C0,popupScroll:l2,getOption:Ie,tagStyle:r2,collapseTagStyle:i2,popperRef:xn,inputRef:h,tooltipRef:u,tagTooltipRef:d,prefixRef:p,suffixRef:v,selectRef:l,wrapperRef:Y,selectionRef:c,scrollbarRef:C,menuRef:m,tagMenuRef:g,collapseItemRef:b}};var tte=j({name:"ElOptions",setup(e,{slots:t}){const n=Ke(Vp);let s=[];return()=>{var a,o;const r=(a=t.default)==null?void 0:a.call(t),i=[];function l(c){Ae(c)&&c.forEach(u=>{var d,h,p,v;const m=(d=(u==null?void 0:u.type)||{})==null?void 0:d.name;m==="ElOptionGroup"?l(!Xe(u.children)&&!Ae(u.children)&&Ze((h=u.children)==null?void 0:h.default)?(p=u.children)==null?void 0:p.default():u.children):m==="ElOption"?i.push((v=u.props)==null?void 0:v.value):Ae(u.children)&&l(u.children)})}return r.length&&l((o=r[0])==null?void 0:o.children),Bn(i,s)||(s=i,n&&(n.states.optionValues=i)),r}}});const Yk=Me({name:String,id:String,modelValue:{type:re([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:ds,effect:{type:re(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:re([String,Object])},popperOptions:{type:re(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:re(Function)},filterMethod:{type:re(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:ln.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:rn,default:Do},fitInputWidth:Boolean,suffixIcon:{type:rn,default:hr},tagType:{...ol.type,default:"info"},tagEffect:{...ol.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:re(String),values:ei,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:ln.appendTo,options:{type:re(Array)},props:{type:re(Object),default:()=>Kg},...Cu,...ca(["ariaLabel"])});Y9.scroll;var nte=j({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Ee("select"),n=F(),s=Mt(),a=F([]);Nt(qk,Yt({...ys(e)}));const o=E(()=>a.value.some(c=>c.visible===!0)),r=c=>{var u;return c.type.name==="ElOption"&&!!((u=c.component)!=null&&u.proxy)},i=c=>{const u=As(c),d=[];return u.forEach(h=>{var p;vn(h)&&(r(h)?d.push(h.component.proxy):Ae(h.children)&&h.children.length?d.push(...i(h.children)):(p=h.component)!=null&&p.subTree&&d.push(...i(h.component.subTree)))}),d},l=()=>{a.value=i(s.subTree)};return Pt(()=>{l()}),bp(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function ste(e,t,n,s,a,o){return Ct((S(),P("ul",{ref:"groupRef",class:D(e.ns.be("group","wrap"))},[A("li",{class:D(e.ns.be("group","title"))},ge(e.label),3),A("li",null,[A("ul",{class:D(e.ns.b("group"))},[ue(e.$slots,"default")],2)])],2)),[[jt,e.visible]])}var A3=fs(nte,[["render",ste]]);const uc=new Map;if(Xt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of uc.values())for(const{documentHandler:s}of n)s(t,e);e=void 0}})}function Xk(e,t){let n=[];return Ae(t.arg)?n=t.arg:ja(t.arg)&&n.push(t.arg),function(s,a){const o=t.instance.popperRef,r=s.target,i=a==null?void 0:a.target,l=!t||!t.instance,c=!r||!i,u=e.contains(r)||e.contains(i),d=e===r,h=n.length&&n.some(v=>v==null?void 0:v.contains(r))||n.length&&n.includes(i),p=o&&(o.contains(r)||o.contains(i));l||c||u||d||h||p||t.value(s,a)}}const dc={beforeMount(e,t){uc.has(e)||uc.set(e,[]),uc.get(e).push({documentHandler:Xk(e,t),bindingFn:t.value})},updated(e,t){uc.has(e)||uc.set(e,[]);const n=uc.get(e),s=n.findIndex(o=>o.bindingFn===t.oldValue),a={documentHandler:Xk(e,t),bindingFn:t.value};s>=0?n.splice(s,1,a):n.push(a)},unmounted(e){uc.delete(e)}};function T3(){const e=bn(),t=F(0),n=E(()=>({minWidth:`${Math.max(t.value,Ug)}px`}));return En(e,()=>{var a,o;t.value=(o=(a=e.value)==null?void 0:a.getBoundingClientRect().width)!=null?o:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const Jk="ElSelect",zp=new WeakMap,ate=e=>(...t)=>{var n,s;const a=t[0];if(!a||a.includes('Slot "default" invoked outside of the render function')&&((n=t[2])!=null&&n.includes("ElTreeSelect")))return;const o=(s=zp.get(e))==null?void 0:s.originalWarnHandler;if(o){o(...t);return}console.warn(...t)},ote=e=>{let t=zp.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:ate(e),count:0},zp.set(e,t)),t};var rte=j({name:Jk,componentName:Jk,components:{ElSelectMenu:Qee,ElOption:E3,ElOptions:tte,ElOptionGroup:A3,ElTag:rl,ElScrollbar:pr,ElTooltip:Ms,ElIcon:Je},directives:{ClickOutside:dc},props:Yk,emits:[mt,Dt,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const s=Mt(),a=ote(s.appContext);a.count+=1,s.appContext.config.warnHandler=a.handler;const o=E(()=>{const{modelValue:C,multiple:w}=e,_=w?[]:void 0;return Ae(C)?w?C:_:w?_:C}),r=Yt({...ys(e),modelValue:o}),i=ete(r,t),{calculatorRef:l,inputStyle:c}=T3(),{getLabel:u,getValue:d,getOptions:h,getDisabled:p}=Bp(e),v=C=>({label:u(C),value:d(C),disabled:p(C)}),m=C=>C.reduce((w,_)=>(w.push(_),_.children&&_.children.length>0&&w.push(...m(_.children)),w),[]),g=C=>{lo(C||[]).forEach(_=>{var x;if(bt(_)&&(_.type.name==="ElOption"||_.type.name==="ElTree")){const k=_.type.name;if(k==="ElTree"){const T=((x=_.props)==null?void 0:x.data)||[];m(T).forEach(O=>{O.currentLabel=O.label||(bt(O.value)?"":O.value),i.onOptionCreate(O)})}else if(k==="ElOption"){const T={..._.props};T.currentLabel=T.label||(bt(T.value)?"":T.value),i.onOptionCreate(T)}}})};be(()=>{var C;return[(C=n.default)==null?void 0:C.call(n),o.value]},()=>{var C;e.persistent||i.expanded.value||(i.states.options.clear(),g((C=n.default)==null?void 0:C.call(n)))},{immediate:!0}),Nt(Vp,Yt({props:r,states:i.states,selectRef:i.selectRef,optionsArray:i.optionsArray,setSelected:i.setSelected,handleOptionSelect:i.handleOptionSelect,onOptionCreate:i.onOptionCreate,onOptionDestroy:i.onOptionDestroy}));const b=E(()=>e.multiple?i.states.selected.map(C=>C.currentLabel):i.states.selectedLabel);return tn(()=>{const C=zp.get(s.appContext);C&&(C.count-=1,C.count<=0&&(s.appContext.config.warnHandler=C.originalWarnHandler,zp.delete(s.appContext)))}),{...i,modelValue:o,selectedLabel:b,calculatorRef:l,inputStyle:c,getLabel:u,getValue:d,getOptions:h,getDisabled:p,getOptionProps:v}}});const ite=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],lte=["textContent"],cte={key:1};function ute(e,t,n,s,a,o){const r=Ge("el-tag"),i=Ge("el-tooltip"),l=Ge("el-icon"),c=Ge("el-option"),u=Ge("el-option-group"),d=Ge("el-options"),h=Ge("el-scrollbar"),p=Ge("el-select-menu"),v=F4("click-outside");return Ct((S(),P("div",Tt({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[L0(e.mouseEnterEventName)]:t[10]||(t[10]=m=>e.states.inputHovering=!0)},{onMouseleave:t[11]||(t[11]=m=>e.states.inputHovering=!1)}),[W(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[9]||(t[9]=m=>e.states.isBeforeHide=!1)},{default:X(()=>{var m;return[A("div",{ref:"wrapperRef",class:D([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[6]||(t[6]=ht((...g)=>e.toggleMenu&&e.toggleMenu(...g),["prevent"]))},[e.$slots.prefix?(S(),P("div",{key:0,ref:"prefixRef",class:D(e.nsSelect.e("prefix"))},[ue(e.$slots,"prefix")],2)):ie("v-if",!0),A("div",{ref:"selectionRef",class:D([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?ue(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(S(!0),P(He,null,Et(e.showTagList,g=>(S(),P("div",{key:e.getValueKey(g),class:D(e.nsSelect.e("selected-item"))},[W(r,{closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Qe(e.tagStyle),onClose:b=>e.deleteTag(b,g)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:g.index,label:g.currentLabel,value:g.value},()=>[je(ge(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(S(),le(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported,"popper-options":e.popperOptions},{default:X(()=>[A("div",{ref:"collapseItemRef",class:D(e.nsSelect.e("selected-item"))},[W(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Qe(e.collapseTagStyle)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))}," + "+ge(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:X(()=>[A("div",{ref:"tagMenuRef",class:D(e.nsSelect.e("selection"))},[(S(!0),P(He,null,Et(e.collapseTagList,g=>(S(),P("div",{key:e.getValueKey(g),class:D(e.nsSelect.e("selected-item"))},[W(r,{class:"in-tooltip",closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:b=>e.deleteTag(b,g)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:g.index,label:g.currentLabel,value:g.value},()=>[je(ge(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported","popper-options"])):ie("v-if",!0)]):ie("v-if",!0),A("div",{class:D([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled)])},[A("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:D([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Qe(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((m=e.hoverOption)==null?void 0:m.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...g)=>e.handleKeydown&&e.handleKeydown(...g)),onCompositionstart:t[1]||(t[1]=(...g)=>e.handleCompositionStart&&e.handleCompositionStart(...g)),onCompositionupdate:t[2]||(t[2]=(...g)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...g)),onCompositionend:t[3]||(t[3]=(...g)=>e.handleCompositionEnd&&e.handleCompositionEnd(...g)),onInput:t[4]||(t[4]=(...g)=>e.onInput&&e.onInput(...g)),onClick:t[5]||(t[5]=ht((...g)=>e.toggleMenu&&e.toggleMenu(...g),["stop"]))},null,46,ite),e.filterable?(S(),P("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:D(e.nsSelect.e("input-calculator")),textContent:ge(e.states.inputValue)},null,10,lte)):ie("v-if",!0)],2),e.shouldShowPlaceholder?(S(),P("div",{key:1,class:D([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ue(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[A("span",null,ge(e.currentPlaceholder),1)]):(S(),P("span",cte,ge(e.currentPlaceholder),1))],2)):ie("v-if",!0)],2),A("div",{ref:"suffixRef",class:D(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(S(),le(l,{key:0,class:D([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:X(()=>[(S(),le(kt(e.iconComponent)))]),_:1},8,["class"])):ie("v-if",!0),e.showClearBtn&&e.clearIcon?(S(),le(l,{key:1,class:D([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:X(()=>[(S(),le(kt(e.clearIcon)))]),_:1},8,["class","onClick"])):ie("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(S(),le(l,{key:2,class:D([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:X(()=>[(S(),le(kt(e.validateIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)]}),content:X(()=>[W(p,{ref:"menuRef"},{default:X(()=>[e.$slots.header?(S(),P("div",{key:0,class:D(e.nsSelect.be("dropdown","header")),onClick:t[7]||(t[7]=ht(()=>{},["stop"]))},[ue(e.$slots,"header")],2)):ie("v-if",!0),Ct(W(h,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:D([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:X(()=>[e.showNewOption?(S(),le(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):ie("v-if",!0),W(d,null,{default:X(()=>[ue(e.$slots,"default",{},()=>[(S(!0),P(He,null,Et(e.options,(m,g)=>{var b;return S(),P(He,{key:g},[(b=e.getOptions(m))!=null&&b.length?(S(),le(u,{key:0,label:e.getLabel(m),disabled:e.getDisabled(m)},{default:X(()=>[(S(!0),P(He,null,Et(e.getOptions(m),C=>(S(),le(c,Tt({key:e.getValue(C)},{ref_for:!0},e.getOptionProps(C)),null,16))),128))]),_:2},1032,["label","disabled"])):(S(),le(c,Tt({key:1,ref_for:!0},e.getOptionProps(m)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[jt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(S(),P("div",{key:1,class:D(e.nsSelect.be("dropdown","loading"))},[ue(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(S(),P("div",{key:2,class:D(e.nsSelect.be("dropdown","empty"))},[ue(e.$slots,"empty",{},()=>[A("span",null,ge(e.emptyText),1)])],2)):ie("v-if",!0),e.$slots.footer?(S(),P("div",{key:3,class:D(e.nsSelect.be("dropdown","footer")),onClick:t[8]||(t[8]=ht(()=>{},["stop"]))},[ue(e.$slots,"footer")],2)):ie("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[v,e.handleClickOutside,e.popperRef]])}var dte=fs(rte,[["render",ute]]);const fc=yt(dte,{Option:E3,OptionGroup:A3}),qg=Pn(E3),fte=Pn(A3);var hte=j({name:"SelectController",__name:"select-controller",props:Vee,emits:zee,setup(e,{emit:t}){const n=e,s=t,a=Ee("calendar-select"),{t:o,lang:r}=Bt(),i=Array.from({length:12},(v,m)=>{const g=m+1,b=Ze(n.formatter)?n.formatter(g,"month"):g;return{value:g,label:b}}),l=E(()=>n.date.year()),c=E(()=>n.date.month()+1),u=E(()=>{const v=[];for(let m=-10;m<10;m++){const g=l.value+m;if(g>0){const b=Ze(n.formatter)?n.formatter(g,"year"):g;v.push({value:g,label:b})}}return v}),d=v=>{s("date-change",wt(new Date(v,c.value-1,1)).locale(r.value))},h=v=>{s("date-change",wt(new Date(l.value,v-1,1)).locale(r.value))},p=()=>{s("date-change","today")};return(v,m)=>(S(),P(He,null,[W(f(fc),{"model-value":l.value,size:"small",class:D(f(a).e("year")),"validate-event":!1,options:u.value,onChange:d},null,8,["model-value","class","options"]),W(f(fc),{"model-value":c.value,size:"small",class:D(f(a).e("month")),"validate-event":!1,options:f(i),onChange:h},null,8,["model-value","class","options"]),W(f(Cs),{size:"small",onClick:p},{default:X(()=>[je(ge(f(o)("el.datepicker.today")),1)]),_:1})],64))}}),pte=j({name:"ElCalendar",__name:"calendar",props:xee,emits:kee,setup(e,{expose:t,emit:n}){const s=Ee("calendar"),a=e,o=n,{calculateValidatedDateRange:r,date:i,pickDay:l,realSelectedDay:c,selectDate:u,validatedRange:d,handleDateChange:h}=Bee(a,o),{t:p}=Bt(),v=E(()=>{const m=`el.datepicker.month${i.value.format("M")}`;return`${i.value.year()} ${p("el.datepicker.year")} ${p(m)}`});return t({selectedDay:c,pickDay:l,selectDate:u,calculateValidatedDateRange:r}),(m,g)=>(S(),P("div",{class:D(f(s).b())},[A("div",{class:D(f(s).e("header"))},[ue(m.$slots,"header",{date:v.value},()=>[A("div",{class:D(f(s).e("title"))},ge(v.value),3),f(d).length===0&&e.controllerType==="button"?(S(),P("div",{key:0,class:D(f(s).e("button-group"))},[W(f($k),null,{default:X(()=>[W(f(Cs),{size:"small",onClick:g[0]||(g[0]=b=>f(u)("prev-month"))},{default:X(()=>[je(ge(f(p)("el.datepicker.prevMonth")),1)]),_:1}),W(f(Cs),{size:"small",onClick:g[1]||(g[1]=b=>f(u)("today"))},{default:X(()=>[je(ge(f(p)("el.datepicker.today")),1)]),_:1}),W(f(Cs),{size:"small",onClick:g[2]||(g[2]=b=>f(u)("next-month"))},{default:X(()=>[je(ge(f(p)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):f(d).length===0&&e.controllerType==="select"?(S(),P("div",{key:1,class:D(f(s).e("select-controller"))},[W(hte,{date:f(i),formatter:e.formatter,onDateChange:f(h)},null,8,["date","formatter","onDateChange"])],2)):ie("v-if",!0)])],2),f(d).length===0?(S(),P("div",{key:0,class:D(f(s).e("body"))},[W(Uk,{date:f(i),"selected-day":f(c),onPick:f(l)},Aa({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:X(b=>[ue(m.$slots,"date-cell",Ni(Hi(b)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(S(),P("div",{key:1,class:D(f(s).e("body"))},[(S(!0),P(He,null,Et(f(d),(b,C)=>(S(),le(Uk,{key:C,date:b[0],"selected-day":f(c),range:b,"hide-header":C!==0,onPick:f(l)},Aa({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:X(w=>[ue(m.$slots,"date-cell",Tt({ref_for:!0},w))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});const vte=yt(pte),mte=Me({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:re([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}});var gte=j({name:"ElCard",__name:"card",props:mte,setup(e){const t=Ef("card"),n=Ee("card");return(s,a)=>{var o;return S(),P("div",{class:D([f(n).b(),f(n).is(`${e.shadow||((o=f(t))==null?void 0:o.shadow)||"always"}-shadow`)])},[s.$slots.header||e.header?(S(),P("div",{key:0,class:D([f(n).e("header"),e.headerClass])},[ue(s.$slots,"header",{},()=>[je(ge(e.header),1)])],2)):ie("v-if",!0),A("div",{class:D([f(n).e("body"),e.bodyClass]),style:Qe(e.bodyStyle)},[ue(s.$slots,"default")],6),s.$slots.footer||e.footer?(S(),P("div",{key:1,class:D([f(n).e("footer"),e.footerClass])},[ue(s.$slots,"footer",{},()=>[je(ge(e.footer),1)])],2)):ie("v-if",!0)],2)}}});const bte=yt(gte),yte=Me({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),wte={change:(e,t)=>[e,t].every(at)},Zk=Symbol("carouselContextKey"),M3="ElCarouselItem",_te=(e,t,n)=>lo(e.subTree).filter(o=>{var r;return vn(o)&&((r=o.type)==null?void 0:r.name)===t&&!!o.component}).map(o=>o.component.uid).map(o=>n[o]).filter(o=>!!o),Gg=(e,t)=>{const n=bn({}),s=bn([]),a=new WeakMap,o=u=>{n.value[u.uid]=u,D2(n),Pt(()=>{const d=u.getVnode().el,h=d.parentNode;if(!a.has(h)){a.set(h,[]);const p=h.insertBefore.bind(h);h.insertBefore=(v,m)=>(a.get(h).some(b=>v===b||m===b)&&D2(n),p(v,m))}a.get(h).push(d)})},r=u=>{delete n.value[u.uid],D2(n);const d=u.getVnode().el,h=d.parentNode,p=a.get(h),v=p.indexOf(d);p.splice(v,1)},i=()=>{s.value=_te(e,t,n.value)},l=u=>u.render();return{children:s,addChild:o,removeChild:r,ChildrenSorter:j({setup(u,{slots:d}){return()=>(i(),d.default?ut(l,{render:d.default}):null)}})}},Qk=300,Cte=(e,t,n)=>{const{children:s,addChild:a,removeChild:o,ChildrenSorter:r}=Gg(Mt(),M3),i=jn(),l=F(-1),c=F(null),u=F(!1),d=F(),h=F(0),p=F(!0),v=E(()=>e.arrow!=="never"&&!f(b)),m=E(()=>s.value.some(se=>se.props.label.toString().length>0)),g=E(()=>e.type==="card"),b=E(()=>e.direction==="vertical"),C=E(()=>e.height!=="auto"?{height:e.height}:{height:`${h.value}px`,overflow:"hidden"}),w=nc(se=>{O(se)},Qk,{trailing:!0}),_=nc(se=>{L(se)},Qk),x=se=>p.value?l.value<=1?se<=1:se>1:!0;function k(){c.value&&(clearInterval(c.value),c.value=null)}function T(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>I(),e.interval))}const I=()=>{l.valueve.props.name===se);fe.length>0&&(se=s.value.indexOf(fe[0]))}if(se=Number(se),Number.isNaN(se)||se!==Math.floor(se))return;const pe=s.value.length,te=l.value;se<0?l.value=e.loop?pe-1:0:se>=pe?l.value=e.loop?0:pe-1:l.value=se,te===l.value&&R(te),z()}function R(se){s.value.forEach((pe,te)=>{pe.translateItem(te,l.value,se)})}function $(se,pe){var te,fe,ve,ce;const Z=f(s),H=Z.length;if(H===0||!se.states.inStage)return!1;const ae=pe+1,de=pe-1,ye=H-1,_e=Z[ye].states.active,Se=Z[0].states.active,Le=(fe=(te=Z[ae])==null?void 0:te.states)==null?void 0:fe.active,De=(ce=(ve=Z[de])==null?void 0:ve.states)==null?void 0:ce.active;return pe===ye&&Se||Le?"left":pe===0&&_e||De?"right":!1}function M(){u.value=!0,e.pauseOnHover&&k()}function B(){u.value=!1,T()}function U(se){f(b)||s.value.forEach((pe,te)=>{se===$(pe,te)&&(pe.states.hover=!0)})}function J(){f(b)||s.value.forEach(se=>{se.states.hover=!1})}function Y(se){l.value=se}function L(se){e.trigger==="hover"&&se!==l.value&&(l.value=se)}function N(){O(l.value-1)}function V(){O(l.value+1)}function z(){k(),e.pauseOnHover||T()}function q(se){e.height==="auto"&&(h.value=se)}function Q(){var se;const pe=(se=i.default)==null?void 0:se.call(i);if(!pe)return null;const fe=lo(pe).filter(ve=>vn(ve)&&ve.type.name===M3);return(fe==null?void 0:fe.length)===2&&e.loop&&!g.value?(p.value=!0,fe):(p.value=!1,null)}be(()=>l.value,(se,pe)=>{R(pe),p.value&&(se=se%2,pe=pe%2),pe>-1&&t(Dt,se,pe)});const K=E({get:()=>p.value?l.value%2:l.value,set:se=>l.value=se});be(()=>e.autoplay,se=>{se?T():k()}),be(()=>e.loop,()=>{O(l.value)}),be(()=>e.interval,()=>{z()});const ee=bn();return Pt(()=>{be(()=>s.value,()=>{s.value.length>0&&O(e.initialIndex)},{immediate:!0}),ee.value=En(d.value,()=>{R()}),T()}),tn(()=>{k(),d.value&&ee.value&&ee.value.stop()}),Nt(Zk,{root:d,isCardType:g,isVertical:b,items:s,loop:e.loop,cardScale:e.cardScale,addItem:a,removeItem:o,setActiveItem:O,setContainerHeight:q}),{root:d,activeIndex:l,exposeActiveIndex:K,arrowDisplay:v,hasLabel:m,hover:u,isCardType:g,items:s,isVertical:b,containerStyle:C,isItemsTwoLength:p,handleButtonEnter:U,handleButtonLeave:J,handleIndicatorClick:Y,handleMouseEnter:M,handleMouseLeave:B,setActiveItem:O,prev:N,next:V,PlaceholderItem:Q,isTwoLengthShow:x,ItemsSorter:r,throttledArrowClick:w,throttledIndicatorHover:_}},Ste=["aria-label"],xte=["aria-label"],kte=["onMouseenter","onClick"],Ete=["aria-label"],Ate={key:0},Tte={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}};var Mte=j({name:"ElCarousel",__name:"carousel",props:yte,emits:wte,setup(e,{expose:t,emit:n}){const s=e,a=n,{root:o,activeIndex:r,exposeActiveIndex:i,arrowDisplay:l,hasLabel:c,hover:u,isCardType:d,items:h,isVertical:p,containerStyle:v,handleButtonEnter:m,handleButtonLeave:g,handleIndicatorClick:b,handleMouseEnter:C,handleMouseLeave:w,setActiveItem:_,prev:x,next:k,PlaceholderItem:T,isTwoLengthShow:I,ItemsSorter:O,throttledArrowClick:R,throttledIndicatorHover:$}=Cte(s,a),M=Ee("carousel"),{t:B}=Bt(),U=E(()=>{const N=[M.b(),M.m(s.direction)];return f(d)&&N.push(M.m("card")),N}),J=E(()=>{const N=[M.e("indicators"),M.em("indicators",s.direction)];return f(c)&&N.push(M.em("indicators","labels")),s.indicatorPosition==="outside"&&N.push(M.em("indicators","outside")),f(p)&&N.push(M.em("indicators","right")),N});function Y(N){if(!s.motionBlur)return;const V=f(p)?`${M.namespace.value}-transitioning-vertical`:`${M.namespace.value}-transitioning`;N.currentTarget.classList.add(V)}function L(N){if(!s.motionBlur)return;const V=f(p)?`${M.namespace.value}-transitioning-vertical`:`${M.namespace.value}-transitioning`;N.currentTarget.classList.remove(V)}return t({activeIndex:i,setActiveItem:_,prev:x,next:k}),(N,V)=>(S(),P("div",{ref_key:"root",ref:o,class:D(U.value),onMouseenter:V[6]||(V[6]=ht((...z)=>f(C)&&f(C)(...z),["stop"])),onMouseleave:V[7]||(V[7]=ht((...z)=>f(w)&&f(w)(...z),["stop"]))},[f(l)?(S(),le(ws,{key:0,name:"carousel-arrow-left",persisted:""},{default:X(()=>[Ct(A("button",{type:"button",class:D([f(M).e("arrow"),f(M).em("arrow","left")]),"aria-label":f(B)("el.carousel.leftArrow"),onMouseenter:V[0]||(V[0]=z=>f(m)("left")),onMouseleave:V[1]||(V[1]=(...z)=>f(g)&&f(g)(...z)),onClick:V[2]||(V[2]=ht(z=>f(R)(f(r)-1),["stop"]))},[W(f(Je),null,{default:X(()=>[W(f($o))]),_:1})],42,Ste),[[jt,(e.arrow==="always"||f(u))&&(e.loop||f(r)>0)]])]),_:1})):ie("v-if",!0),f(l)?(S(),le(ws,{key:1,name:"carousel-arrow-right",persisted:""},{default:X(()=>[Ct(A("button",{type:"button",class:D([f(M).e("arrow"),f(M).em("arrow","right")]),"aria-label":f(B)("el.carousel.rightArrow"),onMouseenter:V[3]||(V[3]=z=>f(m)("right")),onMouseleave:V[4]||(V[4]=(...z)=>f(g)&&f(g)(...z)),onClick:V[5]||(V[5]=ht(z=>f(R)(f(r)+1),["stop"]))},[W(f(Je),null,{default:X(()=>[W(f(Ds))]),_:1})],42,xte),[[jt,(e.arrow==="always"||f(u))&&(e.loop||f(r)[e.indicatorPosition!=="none"?(S(),P("ul",{key:0,class:D(J.value)},[(S(!0),P(He,null,Et(f(h),(z,q)=>Ct((S(),P("li",{key:q,class:D([f(M).e("indicator"),f(M).em("indicator",e.direction),f(M).is("active",q===f(r))]),onMouseenter:Q=>f($)(q),onClick:ht(Q=>f(b)(q),["stop"])},[A("button",{class:D(f(M).e("button")),"aria-label":f(B)("el.carousel.indicator",{index:q+1})},[f(c)?(S(),P("span",Ate,ge(z.props.label),1)):ie("v-if",!0)],10,Ete)],42,kte)),[[jt,f(I)(q)]])),128))],2)):ie("v-if",!0)]),_:1}),e.motionBlur?(S(),P("svg",Tte,[...V[8]||(V[8]=[A("defs",null,[A("filter",{id:"elCarouselHorizontal"},[A("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),A("filter",{id:"elCarouselVertical"},[A("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):ie("v-if",!0)],34))}});const Pte=Me({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Rte=e=>{const t=Ke(Zk),n=Mt(),s=F(),a=F(!1),o=F(0),r=F(1),i=F(!1),l=F(!1),c=F(!1),u=F(!1),{isCardType:d,isVertical:h,cardScale:p}=t;function v(_,x,k){const T=k-1,I=x-1,O=x+1,R=k/2;return x===0&&_===T?-1:x===T&&_===0?k:_=R?k+1:_>O&&_-x>=R?-2:_}function m(_,x){var k,T;const I=f(h)?((k=t.root.value)==null?void 0:k.offsetHeight)||0:((T=t.root.value)==null?void 0:T.offsetWidth)||0;return c.value?I*((2-p)*(_-x)+1)/4:_{var T;const I=f(d),O=(T=t.items.value.length)!=null?T:Number.NaN,R=_===x;!I&&!Ht(k)&&(u.value=R||_===k),!R&&O>2&&t.loop&&(_=v(_,x,O));const $=f(h);i.value=R,I?(c.value=Math.round(Math.abs(_-x))<=1,o.value=m(_,x),r.value=f(i)?1:p):o.value=g(_,x,$),l.value=!0,R&&s.value&&t.setContainerHeight(s.value.offsetHeight)};function C(){if(t&&f(d)){const _=t.items.value.findIndex(({uid:x})=>x===n.uid);t.setActiveItem(_)}}const w={props:e,states:Yt({hover:a,translate:o,scale:r,active:i,ready:l,inStage:c,animating:u}),uid:n.uid,getVnode:()=>n.vnode,translateItem:b};return t.addItem(w),tn(()=>{t.removeItem(w)}),{carouselItemRef:s,active:i,animating:u,hover:a,inStage:c,isVertical:h,translate:o,isCardType:d,scale:r,ready:l,handleItemClick:C}};var eE=j({name:M3,__name:"carousel-item",props:Pte,setup(e){const t=e,n=Ee("carousel"),{carouselItemRef:s,active:a,animating:o,hover:r,inStage:i,isVertical:l,translate:c,isCardType:u,scale:d,ready:h,handleItemClick:p}=Rte(t),v=E(()=>[n.e("item"),n.is("active",a.value),n.is("in-stage",i.value),n.is("hover",r.value),n.is("animating",o.value),{[n.em("item","card")]:u.value,[n.em("item","card-vertical")]:u.value&&l.value}]),m=E(()=>{const b=`${`translate${f(l)?"Y":"X"}`}(${f(c)}px)`,C=`scale(${f(d)})`;return{transform:[b,C].join(" ")}});return(g,b)=>Ct((S(),P("div",{ref_key:"carouselItemRef",ref:s,class:D(v.value),style:Qe(m.value),onClick:b[0]||(b[0]=(...C)=>f(p)&&f(p)(...C))},[f(u)?Ct((S(),P("div",{key:0,class:D(f(n).e("mask"))},null,2)),[[jt,!f(a)]]):ie("v-if",!0),ue(g.$slots,"default")],6)),[[jt,f(h)]])}});const Ite=yt(Mte,{CarouselItem:eE}),Ote=Pn(eE),tE=Me({modelValue:{type:re([Number,String,Array,Object])},options:{type:re(Array),default:()=>[]},props:{type:re(Object),default:()=>({})}}),Lte={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:en,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},Nte=Me({...tE,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),nE=e=>!0,$te={[mt]:nE,[Dt]:nE,close:()=>!0,"expand-change":e=>e},Dte=e=>E(()=>({...Lte,...e.props})),Fte=Me({...tE,size:ds,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:rn,default:Do},filterable:Boolean,filterMethod:{type:re(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:re(Function),default:()=>!0},placement:{type:re(String),values:ei,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:ln.popperClass,popperStyle:ln.popperStyle,teleported:ln.teleported,effect:{type:re(String),default:"light"},tagType:{...ol.type,default:"info"},tagEffect:{...ol.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...Cu}),sE=e=>!0,Bte={[mt]:sE,[Dt]:sE,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>on(e),expandChange:e=>!!e,removeTag:e=>!!e},aE={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:ds,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ca(["ariaControls"])},oE={[mt]:e=>Xe(e)||at(e)||on(e),change:e=>Xe(e)||at(e)||on(e)},Bf=Symbol("checkboxGroupContextKey"),Vte=({model:e,isChecked:t})=>{const n=Ke(Bf,void 0),s=Ke(ku,void 0),a=E(()=>{var r,i;const l=(r=n==null?void 0:n.max)==null?void 0:r.value,c=(i=n==null?void 0:n.min)==null?void 0:i.value;return!Ht(l)&&e.value.length>=l&&!t.value||!Ht(c)&&e.value.length<=c&&t.value});return{isDisabled:Nn(E(()=>{var r,i;return n===void 0?(r=s==null?void 0:s.disabled)!=null?r:a.value:((i=n.disabled)==null?void 0:i.value)||a.value})),isLimitDisabled:a}},zte=(e,{model:t,isLimitExceeded:n,hasOwnLabel:s,isDisabled:a,isLabeledByFormItem:o})=>{const r=Ke(Bf,void 0),{formItem:i}=Ts(),{emit:l}=Mt();function c(v){var m,g,b,C;return[!0,e.trueValue,e.trueLabel].includes(v)?(g=(m=e.trueValue)!=null?m:e.trueLabel)!=null?g:!0:(C=(b=e.falseValue)!=null?b:e.falseLabel)!=null?C:!1}function u(v,m){l(Dt,c(v),m)}function d(v){if(n.value)return;const m=v.target;l(Dt,c(m.checked),v)}async function h(v){n.value||!s.value&&!a.value&&o.value&&(v.composedPath().some(b=>b.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await ze(),u(t.value,v)))}const p=E(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return be(()=>e.modelValue,()=>{p.value&&(i==null||i.validate("change").catch(v=>void 0))}),{handleChange:d,onClickRoot:h}},Hte=e=>{const t=F(!1),{emit:n}=Mt(),s=Ke(Bf,void 0),a=E(()=>Ht(s)===!1),o=F(!1),r=E({get(){var i,l;return a.value?(i=s==null?void 0:s.modelValue)==null?void 0:i.value:(l=e.modelValue)!=null?l:t.value},set(i){var l,c;a.value&&Ae(i)?(o.value=((l=s==null?void 0:s.max)==null?void 0:l.value)!==void 0&&i.length>(s==null?void 0:s.max.value)&&i.length>r.value.length,o.value===!1&&((c=s==null?void 0:s.changeEvent)==null||c.call(s,i))):(n(mt,i),t.value=i)}});return{model:r,isGroup:a,isLimitExceeded:o}},Wte=(e,t,{model:n})=>{const s=Ke(Bf,void 0),a=F(!1),o=E(()=>Ka(e.value)?e.label:e.value),r=E(()=>{const u=n.value;return on(u)?u:Ae(u)?bt(o.value)?u.map(pn).some(d=>Bn(d,o.value)):u.map(pn).includes(o.value):u!=null?u===e.trueValue||u===e.trueLabel:!!u}),i=rs(E(()=>{var u;return(u=s==null?void 0:s.size)==null?void 0:u.value}),{prop:!0}),l=rs(E(()=>{var u;return(u=s==null?void 0:s.size)==null?void 0:u.value})),c=E(()=>!!t.default||!Ka(o.value));return{checkboxButtonSize:i,isChecked:r,isFocused:a,checkboxSize:l,hasOwnLabel:c,actualValue:o}},rE=(e,t)=>{const{formItem:n}=Ts(),{model:s,isGroup:a,isLimitExceeded:o}=Hte(e),{isFocused:r,isChecked:i,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,actualValue:d}=Wte(e,t,{model:s}),{isDisabled:h}=Vte({model:s,isChecked:i}),{inputId:p,isLabeledByFormItem:v}=uo(e,{formItemContext:n,disableIdGeneration:u,disableIdManagement:a}),{handleChange:m,onClickRoot:g}=zte(e,{model:s,isLimitExceeded:o,hasOwnLabel:u,isDisabled:h,isLabeledByFormItem:v});return(()=>{function C(){var w,_;Ae(s.value)&&!s.value.includes(d.value)?s.value.push(d.value):s.value=(_=(w=e.trueValue)!=null?w:e.trueLabel)!=null?_:!0}e.checked&&C()})(),oi({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},E(()=>a.value&&Ka(e.value))),oi({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},E(()=>!!e.trueLabel)),oi({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},E(()=>!!e.falseLabel)),{inputId:p,isLabeledByFormItem:v,isChecked:i,isDisabled:h,isFocused:r,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,model:s,actualValue:d,handleChange:m,onClickRoot:g}},jte=["id","indeterminate","name","tabindex","disabled"];var iE=j({name:"ElCheckbox",__name:"checkbox",props:aE,emits:oE,setup(e){const t=e,n=jn(),{inputId:s,isLabeledByFormItem:a,isChecked:o,isDisabled:r,isFocused:i,checkboxSize:l,hasOwnLabel:c,model:u,actualValue:d,handleChange:h,onClickRoot:p}=rE(t,n),v=E(()=>{var C,w,_,x;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(w=(C=t.trueValue)!=null?C:t.trueLabel)!=null?w:!0,"false-value":(x=(_=t.falseValue)!=null?_:t.falseLabel)!=null?x:!1}:{value:d.value}}),m=Ee("checkbox"),g=E(()=>[m.b(),m.m(l.value),m.is("disabled",r.value),m.is("bordered",t.border),m.is("checked",o.value)]),b=E(()=>[m.e("input"),m.is("disabled",r.value),m.is("checked",o.value),m.is("indeterminate",t.indeterminate),m.is("focus",i.value)]);return(C,w)=>(S(),le(kt(!f(c)&&f(a)?"span":"label"),{for:!f(c)&&f(a)?null:f(s),class:D(g.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:f(p)},{default:X(()=>[A("span",{class:D(b.value)},[Ct(A("input",Tt({id:f(s),"onUpdate:modelValue":w[0]||(w[0]=_=>yn(u)?u.value=_:null),class:f(m).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:f(r)},v.value,{onChange:w[1]||(w[1]=(..._)=>f(h)&&f(h)(..._)),onFocus:w[2]||(w[2]=_=>i.value=!0),onBlur:w[3]||(w[3]=_=>i.value=!1),onClick:w[4]||(w[4]=ht(()=>{},["stop"]))}),null,16,jte),[[og,f(u)]]),A("span",{class:D(f(m).e("inner"))},null,2)],2),f(c)?(S(),P("span",{key:0,class:D(f(m).e("label"))},[ue(C.$slots,"default"),C.$slots.default?ie("v-if",!0):(S(),P(He,{key:0},[je(ge(e.label),1)],64))],2)):ie("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}});const Kte=["name","tabindex","disabled"];var P3=j({name:"ElCheckboxButton",__name:"checkbox-button",props:aE,emits:oE,setup(e){const t=e,n=jn(),{isFocused:s,isChecked:a,isDisabled:o,checkboxButtonSize:r,model:i,actualValue:l,handleChange:c}=rE(t,n),u=E(()=>{var m,g,b,C;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(g=(m=t.trueValue)!=null?m:t.trueLabel)!=null?g:!0,"false-value":(C=(b=t.falseValue)!=null?b:t.falseLabel)!=null?C:!1}:{value:l.value}}),d=Ke(Bf,void 0),h=Ee("checkbox"),p=E(()=>{var m,g,b,C;const w=(g=(m=d==null?void 0:d.fill)==null?void 0:m.value)!=null?g:"";return{backgroundColor:w,borderColor:w,color:(C=(b=d==null?void 0:d.textColor)==null?void 0:b.value)!=null?C:"",boxShadow:w?`-1px 0 0 0 ${w}`:void 0}}),v=E(()=>[h.b("button"),h.bm("button",r.value),h.is("disabled",o.value),h.is("checked",a.value),h.is("focus",s.value)]);return(m,g)=>(S(),P("label",{class:D(v.value)},[Ct(A("input",Tt({"onUpdate:modelValue":g[0]||(g[0]=b=>yn(i)?i.value=b:null),class:f(h).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:f(o)},u.value,{onChange:g[1]||(g[1]=(...b)=>f(c)&&f(c)(...b)),onFocus:g[2]||(g[2]=b=>s.value=!0),onBlur:g[3]||(g[3]=b=>s.value=!1),onClick:g[4]||(g[4]=ht(()=>{},["stop"]))}),null,16,Kte),[[og,f(i)]]),m.$slots.default||e.label?(S(),P("span",{key:0,class:D(f(h).be("button","inner")),style:Qe(f(a)?p.value:void 0)},[ue(m.$slots,"default",{},()=>[je(ge(e.label),1)])],6)):ie("v-if",!0)],2))}});const Ute=Me({modelValue:{type:re(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:ds,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:re(Array)},props:{type:re(Object),default:()=>lE},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ca(["ariaLabel"])}),qte={[mt]:e=>Ae(e),change:e=>Ae(e)},lE={label:"label",value:"value",disabled:"disabled"};var cE=j({name:"ElCheckboxGroup",__name:"checkbox-group",props:Ute,emits:qte,setup(e,{emit:t}){const n=e,s=t,a=Ee("checkbox"),o=Nn(),{formItem:r}=Ts(),{inputId:i,isLabeledByFormItem:l}=uo(n,{formItemContext:r}),c=async v=>{s(mt,v),await ze(),s(Dt,v)},u=E({get(){return n.modelValue},set(v){c(v)}}),d=E(()=>({...lE,...n.props})),h=v=>{const{label:m,value:g,disabled:b}=d.value,C={label:v[m],value:v[g],disabled:v[b]};return{...pp(v,[m,g,b]),...C}},p=E(()=>n.type==="button"?P3:iE);return Nt(Bf,{...Gi(ys(n),["size","min","max","validateEvent","fill","textColor"]),disabled:o,modelValue:u,changeEvent:c}),be(()=>n.modelValue,(v,m)=>{n.validateEvent&&!Bn(v,m)&&(r==null||r.validate("change").catch(g=>void 0))}),(v,m)=>{var g;return S(),le(kt(e.tag),{id:f(i),class:D(f(a).b("group")),role:"group","aria-label":f(l)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":f(l)?(g=f(r))==null?void 0:g.labelId:void 0},{default:X(()=>[ue(v.$slots,"default",{},()=>[(S(!0),P(He,null,Et(e.options,(b,C)=>(S(),le(kt(p.value),Tt({key:C},{ref_for:!0},h(b)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});const mr=yt(iE,{CheckboxButton:P3,CheckboxGroup:cE}),Gte=Pn(P3),R3=Pn(cE),uE=Me({modelValue:{type:[String,Number,Boolean],default:void 0},size:ds,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Yte=Me({...uE,border:Boolean}),dE={[mt]:e=>Xe(e)||at(e)||on(e),[Dt]:e=>Xe(e)||at(e)||on(e)},fE=Symbol("radioGroupKey"),hE=(e,t)=>{const n=F(),s=Ke(fE,void 0),a=E(()=>!!s),o=E(()=>Ka(e.value)?e.label:e.value),r=E({get(){return a.value?s.modelValue:e.modelValue},set(d){a.value?s.changeEvent(d):t&&t(mt,d),n.value.checked=e.modelValue===o.value}}),i=rs(E(()=>s==null?void 0:s.size)),l=Nn(E(()=>s==null?void 0:s.disabled)),c=F(!1),u=E(()=>l.value||a.value&&r.value!==o.value?-1:0);return oi({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},E(()=>a.value&&Ka(e.value))),{radioRef:n,isGroup:a,radioGroup:s,focus:c,size:i,disabled:l,tabIndex:u,modelValue:r,actualValue:o}},Xte=["value","name","disabled","checked"];var pE=j({name:"ElRadio",__name:"radio",props:Yte,emits:dE,setup(e,{emit:t}){const n=e,s=t,a=Ee("radio"),{radioRef:o,radioGroup:r,focus:i,size:l,disabled:c,modelValue:u,actualValue:d}=hE(n,s);function h(){ze(()=>s(Dt,u.value))}return(p,v)=>{var m;return S(),P("label",{class:D([f(a).b(),f(a).is("disabled",f(c)),f(a).is("focus",f(i)),f(a).is("bordered",e.border),f(a).is("checked",f(u)===f(d)),f(a).m(f(l))])},[A("span",{class:D([f(a).e("input"),f(a).is("disabled",f(c)),f(a).is("checked",f(u)===f(d))])},[Ct(A("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":v[0]||(v[0]=g=>yn(u)?u.value=g:null),class:D(f(a).e("original")),value:f(d),name:e.name||((m=f(r))==null?void 0:m.name),disabled:f(c),checked:f(u)===f(d),type:"radio",onFocus:v[1]||(v[1]=g=>i.value=!0),onBlur:v[2]||(v[2]=g=>i.value=!1),onChange:h,onClick:v[3]||(v[3]=ht(()=>{},["stop"]))},null,42,Xte),[[US,f(u)]]),A("span",{class:D(f(a).e("inner"))},null,2)],2),A("span",{class:D(f(a).e("label")),onKeydown:v[4]||(v[4]=ht(()=>{},["stop"]))},[ue(p.$slots,"default",{},()=>[je(ge(e.label),1)])],34)],2)}}});const Jte=Me({...uE}),Zte=["value","name","disabled"];var I3=j({name:"ElRadioButton",__name:"radio-button",props:Jte,setup(e){const t=e,n=Ee("radio"),{radioRef:s,focus:a,size:o,disabled:r,modelValue:i,radioGroup:l,actualValue:c}=hE(t),u=E(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(d,h)=>{var p;return S(),P("label",{class:D([f(n).b("button"),f(n).is("active",f(i)===f(c)),f(n).is("disabled",f(r)),f(n).is("focus",f(a)),f(n).bm("button",f(o))])},[Ct(A("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":h[0]||(h[0]=v=>yn(i)?i.value=v:null),class:D(f(n).be("button","original-radio")),value:f(c),type:"radio",name:e.name||((p=f(l))==null?void 0:p.name),disabled:f(r),onFocus:h[1]||(h[1]=v=>a.value=!0),onBlur:h[2]||(h[2]=v=>a.value=!1),onClick:h[3]||(h[3]=ht(()=>{},["stop"]))},null,42,Zte),[[US,f(i)]]),A("span",{class:D(f(n).be("button","inner")),style:Qe(f(i)===f(c)?u.value:{}),onKeydown:h[4]||(h[4]=ht(()=>{},["stop"]))},[ue(d.$slots,"default",{},()=>[je(ge(e.label),1)])],38)],2)}}});const vE={label:"label",value:"value",disabled:"disabled"},Qte=Me({id:{type:String,default:void 0},size:ds,disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:re(Array)},props:{type:re(Object),default:()=>vE},type:{type:String,values:["radio","button"],default:"radio"},...ca(["ariaLabel"])}),ene=dE,tne=["id","aria-label","aria-labelledby"];var mE=j({name:"ElRadioGroup",__name:"radio-group",props:Qte,emits:ene,setup(e,{emit:t}){const n=e,s=t,a=Ee("radio"),o=Bs(),r=F(),{formItem:i}=Ts(),{inputId:l,isLabeledByFormItem:c}=uo(n,{formItemContext:i}),u=m=>{s(mt,m),ze(()=>s(Dt,m))};Pt(()=>{const m=r.value.querySelectorAll("[type=radio]"),g=m[0];!Array.from(m).some(b=>b.checked)&&g&&(g.tabIndex=0)});const d=E(()=>n.name||o.value),h=E(()=>({...vE,...n.props})),p=m=>{const{label:g,value:b,disabled:C}=h.value,w={label:m[g],value:m[b],disabled:m[C]};return{...pp(m,[g,b,C]),...w}},v=E(()=>n.type==="button"?I3:pE);return Nt(fE,Yt({...ys(n),changeEvent:u,name:d})),be(()=>n.modelValue,(m,g)=>{n.validateEvent&&!Bn(m,g)&&(i==null||i.validate("change").catch(b=>void 0))}),(m,g)=>(S(),P("div",{id:f(l),ref_key:"radioGroupRef",ref:r,class:D(f(a).b("group")),role:"radiogroup","aria-label":f(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":f(c)?f(i).labelId:void 0},[ue(m.$slots,"default",{},()=>[(S(!0),P(He,null,Et(e.options,(b,C)=>(S(),le(kt(v.value),Tt({key:C},{ref_for:!0},p(b)),null,16))),128))])],10,tne))}});const gE=yt(pE,{RadioButton:I3,RadioGroup:mE}),nne=Pn(mE),sne=Pn(I3),Yg=Symbol();function ane(e){return!!(Ae(e)?e.every(({type:t})=>t===Gn):(e==null?void 0:e.type)===Gn)}var one=j({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=Ee("cascader-node"),{renderLabelFn:n}=Ke(Yg),{node:s}=e,{data:a,label:o}=s,r=()=>{const i=n==null?void 0:n({node:s,data:a});return ane(i)?o:i??o};return()=>W("span",{class:t.e("label")},[r()])}});const rne=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var ine=j({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,s=t,a=Ke(Yg),o=Ee("cascader-node"),r=E(()=>a.isHoverMenu),i=E(()=>a.config.multiple),l=E(()=>a.config.checkStrictly),c=E(()=>a.config.showPrefix),u=E(()=>{var O;return(O=a.checkedNodes[0])==null?void 0:O.uid}),d=E(()=>n.node.isDisabled),h=E(()=>n.node.isLeaf),p=E(()=>l.value&&!h.value||!d.value),v=E(()=>g(a.expandingNode)),m=E(()=>l.value&&a.checkedNodes.some(g)),g=O=>{var R;const{level:$,uid:M}=n.node;return((R=O==null?void 0:O.pathNodes[$-1])==null?void 0:R.uid)===M},b=()=>{v.value||a.expandNode(n.node)},C=O=>{const{node:R}=n;O!==R.checked&&a.handleCheckChange(R,O)},w=()=>{a.lazyLoad(n.node,()=>{h.value||b()})},_=O=>{r.value&&(x(),!h.value&&s("expand",O))},x=()=>{const{node:O}=n;!p.value||O.loading||(O.loaded?b():w())},k=()=>{h.value&&!d.value&&!l.value&&!i.value?I(!0):(a.config.checkOnClickNode&&(i.value||l.value)||h.value&&a.config.checkOnClickLeaf)&&!d.value?T(!n.node.checked):r.value||x()},T=O=>{l.value?(C(O),n.node.loaded&&b()):I(O)},I=O=>{n.node.loaded?(C(O),!l.value&&b()):w()};return(O,R)=>(S(),P("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!h.value,"aria-owns":h.value?void 0:e.menuId,"aria-expanded":v.value,tabindex:p.value?-1:void 0,class:D([f(o).b(),f(o).is("selectable",l.value),f(o).is("active",e.node.checked),f(o).is("disabled",!p.value),v.value&&"in-active-path",m.value&&"in-checked-path"]),onMouseenter:_,onFocus:_,onClick:k},[ie(" prefix "),i.value&&c.value?(S(),le(f(mr),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:d.value,onClick:R[0]||(R[0]=ht(()=>{},["stop"])),"onUpdate:modelValue":T},null,8,["model-value","indeterminate","disabled"])):l.value&&c.value?(S(),le(f(gE),{key:1,"model-value":u.value,label:e.node.uid,disabled:d.value,"onUpdate:modelValue":T,onClick:R[1]||(R[1]=ht(()=>{},["stop"]))},{default:X(()=>[ie(` Add an empty element to avoid render label, do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 `),R[2]||(R[2]=A("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):h.value&&e.node.checked?(S(),le(f(Je),{key:2,class:D(f(o).e("prefix"))},{default:X(()=>[W(f(Tf))]),_:1},8,["class"])):ie("v-if",!0),ie(" content "),W(f(one),{node:e.node},null,8,["node"]),ie(" postfix "),h.value?ie("v-if",!0):(S(),P(He,{key:3},[e.node.loading?(S(),le(f(Je),{key:0,class:D([f(o).is("loading"),f(o).e("postfix")])},{default:X(()=>[W(f(Fs))]),_:1},8,["class"])):(S(),le(f(Je),{key:1,class:D(["arrow-right",f(o).e("postfix")])},{default:X(()=>[W(f(Ds))]),_:1},8,["class"]))],64))],42,rne))}}),lne=j({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=Mt(),s=Ee("cascader-menu"),{t:a}=Bt(),o=Bs();let r,i;const l=Ke(Yg),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 C;if(!(!l.isHoverMenu||!r||!c.value))if(r.contains(b.target)){m();const w=n.vnode.el,{left:_}=w.getBoundingClientRect(),{offsetWidth:x,offsetHeight:k}=w,T=b.clientX-_,I=r.offsetTop,O=I+r.offsetHeight,R=((C=w.querySelector(`.${s.e("wrap")}`))==null?void 0:C.scrollTop)||0;c.value.innerHTML=` `}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,C)=>(S(),le(f(pr),{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(He,null,Et(e.nodes,_=>(S(),le(ine,{key:_.uid,node:_,"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"))},[W(f(Je),{size:"14",class:D(f(s).is("loading"))},{default:X(()=>[W(f(Fs))]),_:1},8,["class"]),je(" "+ge(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",{},()=>[je(ge(f(a)("el.cascader.noData")),1)])],2)):(w=f(l))!=null&&w.isHoverMenu?(S(),P(He,{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"]))}}),cne=Object.defineProperty,une=(e,t,n)=>t in e?cne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xa=(e,t,n)=>une(e,typeof t!="symbol"?t+"":t,n);let dne=0;const fne=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let O3=class Fw{constructor(t,n,s,a=!1){this.data=t,this.config=n,this.parent=s,this.root=a,Xa(this,"uid",dne++),Xa(this,"level"),Xa(this,"value"),Xa(this,"label"),Xa(this,"pathNodes"),Xa(this,"pathValues"),Xa(this,"pathLabels"),Xa(this,"childrenData"),Xa(this,"children"),Xa(this,"text"),Xa(this,"loaded"),Xa(this,"checked",!1),Xa(this,"indeterminate",!1),Xa(this,"loading",!1);const{value:o,label:r,children:i}=n,l=t[i],c=fne(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 Fw(u,n,this)),this.loaded=!n.lazy||this.isLeaf||!Ra(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 Ht(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 Fw(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 hne=Object.defineProperty,pne=(e,t,n)=>t in e?hne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L3=(e,t,n)=>pne(e,typeof t!="symbol"?t+"":t,n);const N3=(e,t)=>e.reduce((n,s)=>(s.isLeaf?n.push(s):(!t&&n.push(s),n=n.concat(N3(s.children,t))),n),[]);class bE{constructor(t,n){this.config=n,L3(this,"nodes"),L3(this,"allNodes"),L3(this,"leafNodes");const s=(t||[]).map(a=>new O3(a,this.config));this.nodes=s,this.allNodes=N3(s,!1),this.leafNodes=N3(s,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const s=n?n.appendChild(t):new O3(t,this.config);n||this.nodes.push(s),this.appendAllNodesAndLeafNodes(s)}appendNodes(t,n){t.length>0?t.forEach(s=>this.appendNode(s,n)):n&&n.isLeaf&&this.leafNodes.push(n)}appendAllNodesAndLeafNodes(t){this.allNodes.push(t),t.isLeaf&&this.leafNodes.push(t),t.children&&t.children.forEach(n=>{this.appendAllNodesAndLeafNodes(n)})}getNodeByValue(t,n=!1){return Ka(t)?null:this.getFlattedNodes(n).find(a=>Bn(a.value,t)||Bn(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:s,level:a})=>Bn(t.value,s)&&t.level===a)||null}}const yE=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},vne=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():U9(e)&&e.click()},mne=(e,t)=>{const n=t.slice(0),s=n.map(o=>o.uid),a=e.reduce((o,r)=>{const i=s.indexOf(r.uid);return i>-1&&(o.push(r),n.splice(i,1),s.splice(i,1)),o},[]);return a.push(...n),a};var gne=j({name:"ElCascaderPanel",__name:"index",props:Nte,emits:$te,setup(e,{expose:t,emit:n}){const s=e,a=n;let o=!1;const r=Ee("cascader"),i=Dte(s),l=jn();let c;const u=F(!0),d=F(!1),h=F([]),p=F(),v=F([]),m=F(),g=F([]),b=E(()=>i.value.expandTrigger==="hover"),C=E(()=>s.renderLabel||l.default),w=()=>{const{options:L}=s,N=i.value;o=!1,c=new bE(L,N),v.value=[c.getNodes()],N.lazy&&Ra(s.options)?(u.value=!1,_(void 0,V=>{V&&(c=new bE(V,N),v.value=[c.getNodes()]),u.value=!0,M(!1,!0)})):M(!1,!0)},_=(L,N)=>{const V=i.value;L=L||new O3({},V,void 0,!0),L.loading=!0;const z=Q=>{const K=L,ee=K.root?null:K;K.loading=!1,K.loaded=!0,K.childrenData=K.childrenData||[],Q&&(c==null||c.appendNodes(Q,ee)),Q&&(N==null||N(Q)),L.level===0&&(d.value=!0)},q=()=>{L.loading=!1,L.loaded=!1,L.level===0&&(u.value=!0)};V.lazyLoad(L,z,q)},x=(L,N)=>{var V;const{level:z}=L,q=v.value.slice(0,z);let Q;L.isLeaf?Q=L.pathNodes[z-2]:(Q=L,q.push(L.children)),((V=m.value)==null?void 0:V.uid)!==(Q==null?void 0:Q.uid)&&(m.value=L,v.value=q,!N&&a("expand-change",(L==null?void 0:L.pathValues)||[]))},k=(L,N,V=!0)=>{const{checkStrictly:z,multiple:q}=i.value,Q=g.value[0];o=!0,!q&&(Q==null||Q.doCheck(!1)),L.doCheck(N),$(),V&&!q&&!z&&a("close"),!V&&!q&&T(L)},T=L=>{L&&(L=L.parent,T(L),L&&x(L))},I=L=>c==null?void 0:c.getFlattedNodes(L),O=L=>{var N;return(N=I(L))==null?void 0:N.filter(({checked:V})=>V!==!1)},R=()=>{g.value.forEach(L=>L.doCheck(!1)),$(),v.value=v.value.slice(0,1),m.value=void 0,a("expand-change",[])},$=()=>{var L;const{checkStrictly:N,multiple:V}=i.value,z=g.value,q=O(!N),Q=mne(z,q),K=Q.map(ee=>ee.valueByOption);g.value=Q,p.value=V?K:(L=K[0])!=null?L:null},M=(L=!1,N=!1)=>{const{modelValue:V}=s,{lazy:z,multiple:q,checkStrictly:Q}=i.value,K=!Q;if(!(!u.value||o||!N&&Bn(V,p.value)))if(z&&!L){const se=wk(rV(da(V))).map(pe=>c==null?void 0:c.getNodeByValue(pe)).filter(pe=>!!pe&&!pe.loaded&&!pe.loading);se.length?se.forEach(pe=>{_(pe,()=>M(!1,N))}):M(!0,N)}else{const ee=q?da(V):[V],se=wk(ee.map(pe=>c==null?void 0:c.getNodeByValue(pe,K)));B(se,N),p.value=vg(V??void 0)}},B=(L,N=!0)=>{const{checkStrictly:V}=i.value,z=g.value,q=L.filter(ee=>!!ee&&(V||ee.isLeaf)),Q=c==null?void 0:c.getSameNode(m.value),K=N&&Q||q[0];K?K.pathNodes.forEach(ee=>x(ee,!0)):m.value=void 0,z.forEach(ee=>ee.doCheck(!1)),Yt(q).forEach(ee=>ee.doCheck(!0)),g.value=q,ze(U)},U=()=>{Xt&&h.value.forEach(L=>{const N=L==null?void 0:L.$el;if(N){const V=N.querySelector(`.${r.namespace.value}-scrollbar__wrap`);let z=N.querySelector(`.${r.b("node")}.in-active-path`);if(!z){const q=N.querySelectorAll(`.${r.b("node")}.${r.is("active")}`);z=q[q.length-1]}Dy(V,z)}})},J=L=>{const N=L.target,V=un(L);switch(V){case Te.up:case Te.down:{L.preventDefault();const z=V===Te.up?-1:1;Dg(q9(N,z,`.${r.b("node")}[tabindex="-1"]`));break}case Te.left:{L.preventDefault();const z=h.value[yE(N)-1],q=z==null?void 0:z.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);Dg(q);break}case Te.right:{L.preventDefault();const z=h.value[yE(N)+1],q=z==null?void 0:z.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);Dg(q);break}case Te.enter:case Te.numpadEnter:vne(N);break}};Nt(Yg,Yt({config:i,expandingNode:m,checkedNodes:g,isHoverMenu:b,initialLoaded:u,renderLabelFn:C,lazyLoad:_,expandNode:x,handleCheckChange:k})),be(i,(L,N)=>{Bn(L,N)||w()},{immediate:!0}),be(()=>s.options,w,{deep:!0}),be(()=>s.modelValue,()=>{o=!1,M()},{deep:!0}),be(()=>p.value,L=>{Bn(L,s.modelValue)||(a(mt,L),a(Dt,L))});const Y=()=>{d.value||w()};return $4(()=>h.value=[]),Pt(()=>!Ra(s.modelValue)&&M()),t({menuList:h,menus:v,checkedNodes:g,handleKeyDown:J,handleCheckChange:k,getFlattedNodes:I,getCheckedNodes:O,clearCheckedNodes:R,calculateCheckedValue:$,scrollToExpandingNode:U,loadLazyRootNodes:Y}),(L,N)=>(S(),P("div",{class:D([f(r).b("panel"),f(r).is("bordered",e.border)]),onKeydown:J},[(S(!0),P(He,null,Et(v.value,(V,z)=>(S(),le(lne,{key:z,ref_for:!0,ref:q=>h.value[z]=q,index:z,nodes:[...V]},{empty:X(()=>[ue(L.$slots,"empty")]),_:3},8,["index","nodes"]))),128))],34))}});const wE=yt(gne),bne=["placeholder"],yne=["onClick"];var wne=j({name:"ElCascader",__name:"cascader",props:Fte,emits:Bte,setup(e,{expose:t,emit:n}){const s={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Ve})=>{const{modifiersData:st,placement:_t}=Ve;["right","left","bottom","top"].includes(_t)||st.arrow&&(st.arrow.x=35)},requires:["arrow"]}]},a=e,o=n,r=zi(),i=jn();let l=0,c=0;const u=Ee("cascader"),d=Ee("input"),h={small:7,default:11,large:15},{t:p}=Bt(),{formItem:v}=Ts(),m=Nn(),{valueOnClear:g}=wp(a),{isComposing:b,handleComposition:C}=Dp({afterComposition(Ve){var st;const _t=(st=Ve.target)==null?void 0:st.value;At(_t)}}),w=F(),_=F(),x=F(),k=F(),T=F(),I=F(),O=F(!1),R=F(!1),$=F(!1),M=F(""),B=F(""),U=F([]),J=F([]),Y=E(()=>a.props.multiple?a.collapseTags?U.value.slice(0,a.maxCollapseTags):U.value:[]),L=E(()=>a.props.multiple?a.collapseTags?U.value.slice(a.maxCollapseTags):[]:[]),N=E(()=>r.style),V=E(()=>{var Ve;return(Ve=a.placeholder)!=null?Ve:p("el.cascader.placeholder")}),z=E(()=>B.value||U.value.length>0||b.value?"":V.value),q=rs(),Q=E(()=>q.value==="small"?"small":"default"),K=E(()=>!!a.props.multiple),ee=E(()=>!a.filterable||K.value),se=E(()=>K.value?B.value:M.value),pe=E(()=>{var Ve;return((Ve=T.value)==null?void 0:Ve.checkedNodes)||[]}),{wrapperRef:te,isFocused:fe,handleBlur:ve}=tl(x,{disabled:m,beforeBlur(Ve){var st,_t;return((st=w.value)==null?void 0:st.isFocusInsideContent(Ve))||((_t=_.value)==null?void 0:_t.isFocusInsideContent(Ve))},afterBlur(){var Ve;a.validateEvent&&((Ve=v==null?void 0:v.validate)==null||Ve.call(v,"blur").catch(st=>void 0))}}),ce=E(()=>!a.clearable||m.value||$.value||!R.value&&!fe.value?!1:!!pe.value.length),Z=E(()=>{const{showAllLevels:Ve,separator:st}=a,_t=pe.value;return _t.length?K.value?"":_t[0].calcText(Ve,st):""}),H=E(()=>(v==null?void 0:v.validateState)||""),ae=E({get(){return vg(a.modelValue)},set(Ve){const st=Ve??g.value;o(mt,st),o(Dt,st),a.validateEvent&&(v==null||v.validate("change").catch(_t=>void 0))}}),de=E(()=>[u.b(),u.m(q.value),u.is("disabled",m.value),r.class]),ye=E(()=>[d.e("icon"),"icon-arrow-down",u.is("reverse",O.value)]),_e=E(()=>u.is("focus",fe.value)),Se=E(()=>{var Ve,st;return(st=(Ve=w.value)==null?void 0:Ve.popperRef)==null?void 0:st.contentRef}),Le=Ve=>{if(fe.value){const st=new FocusEvent("blur",Ve);ve(st)}De(!1)},De=Ve=>{var st,_t;m.value||(Ve=Ve??!O.value,Ve!==O.value&&(O.value=Ve,(_t=(st=x.value)==null?void 0:st.input)==null||_t.setAttribute("aria-expanded",`${Ve}`),Ve?($e(),T.value&&ze(T.value.scrollToExpandingNode)):a.filterable&>(),o("visibleChange",Ve)))},$e=()=>{ze(()=>{var Ve;(Ve=w.value)==null||Ve.updatePopper()})},Ce=()=>{$.value=!1},Oe=Ve=>{const{showAllLevels:st,separator:_t}=a;return{node:Ve,key:Ve.uid,text:Ve.calcText(st,_t),hitState:!1,closable:!m.value&&!Ve.isDisabled}},Ie=Ve=>{var st;const _t=Ve.node;_t.doCheck(!1),(st=T.value)==null||st.calculateCheckedValue(),o("removeTag",_t.valueByOption)},We=()=>{switch(a.showCheckedStrategy){case"child":return pe.value;case"parent":{const Ve=et(!1),st=Ve.map(kn=>kn.value);return Ve.filter(kn=>!kn.parent||!st.includes(kn.parent.value))}default:return[]}},nt=()=>{if(!K.value)return;const Ve=We(),st=[];Ve.forEach(_t=>st.push(Oe(_t))),U.value=st},dt=()=>{var Ve,st;const{filterMethod:_t,showAllLevels:kn,separator:Zt}=a,rt=(st=(Ve=T.value)==null?void 0:Ve.getFlattedNodes(!a.props.checkStrictly))==null?void 0:st.filter(ot=>ot.isDisabled?!1:(ot.calcText(kn,Zt),_t(ot,se.value)));K.value&&U.value.forEach(ot=>{ot.hitState=!1}),$.value=!0,J.value=rt,$e()},Fe=()=>{var Ve;let st;$.value&&I.value?st=I.value.$el.querySelector(`.${u.e("suggestion-item")}`):st=(Ve=T.value)==null?void 0:Ve.$el.querySelector(`.${u.b("node")}[tabindex="-1"]`),st&&(st.focus(),!$.value&&st.click())},Be=()=>{var Ve,st,_t;const kn=(Ve=x.value)==null?void 0:Ve.input,Zt=k.value,rt=(st=I.value)==null?void 0:st.$el;if(!(!Xt||!kn)){if(rt){const ot=rt.querySelector(`.${u.e("suggestion-list")}`);ot.style.minWidth=`${kn.offsetWidth}px`}if(Zt){const{offsetHeight:ot}=Zt,Rt=U.value.length>0?`${Math.max(ot,l)-2}px`:`${l}px`;if(kn.style.height=Rt,i.prefix){const Es=(_t=x.value)==null?void 0:_t.$el.querySelector(`.${d.e("prefix")}`);let sa=0;Es&&(sa=Es.offsetWidth,sa>0&&(sa+=h[q.value||"default"])),Zt.style.left=`${sa}px`}else Zt.style.left="0";$e()}}},et=Ve=>{var st;return(st=T.value)==null?void 0:st.getCheckedNodes(Ve)},Wt=Ve=>{$e(),o("expandChange",Ve)},qt=Ve=>{if(b.value)return;switch(un(Ve)){case Te.enter:case Te.numpadEnter:De();break;case Te.down:De(!0),ze(Fe),Ve.preventDefault();break;case Te.esc:O.value===!0&&(Ve.preventDefault(),Ve.stopPropagation(),De(!1));break;case Te.tab:De(!1);break}},ct=()=>{var Ve;(Ve=T.value)==null||Ve.clearCheckedNodes(),!O.value&&a.filterable&>(),De(!1),o("clear")},gt=()=>{const{value:Ve}=Z;M.value=Ve,B.value=Ve},Ot=Ve=>{var st,_t;const{checked:kn}=Ve;K.value?(st=T.value)==null||st.handleCheckChange(Ve,!kn,!1):(!kn&&((_t=T.value)==null||_t.handleCheckChange(Ve,!0,!1)),De(!1))},xe=Ve=>{const st=Ve.target,_t=un(Ve);switch(_t){case Te.up:case Te.down:{Ve.preventDefault();const kn=_t===Te.up?-1:1;Dg(q9(st,kn,`.${u.e("suggestion-item")}[tabindex="-1"]`));break}case Te.enter:case Te.numpadEnter:st.click();break}},Ue=()=>{const Ve=U.value[U.value.length-1];c=B.value?0:c+1,!(!Ve||!c||a.collapseTags&&U.value.length>1)&&(Ve.hitState?Ie(Ve):Ve.hitState=!0)},we=E(()=>a.debounce),Ye=gp(()=>{const{value:Ve}=se;if(!Ve)return;const st=a.beforeFilter(Ve);su(st)?st.then(dt).catch(()=>{}):st!==!1?dt():Ce()},we),At=(Ve,st)=>{!O.value&&De(!0),!(st!=null&&st.isComposing)&&(Ve?Ye():Ce())},Jt=Ve=>Number.parseFloat(YV(d.cssVarName("input-height"),Ve).value)-2,Cn=()=>{var Ve;(Ve=x.value)==null||Ve.focus()},xn=()=>{var Ve;(Ve=x.value)==null||Ve.blur()};return be($,$e),be([pe,m,()=>a.collapseTags,()=>a.maxCollapseTags],nt),be(U,()=>{ze(()=>Be())}),be(q,async()=>{await ze();const Ve=x.value.input;l=Jt(Ve)||l,Be()}),be(Z,gt,{immediate:!0}),be(()=>O.value,Ve=>{var st;Ve&&a.props.lazy&&a.props.lazyLoad&&((st=T.value)==null||st.loadLazyRootNodes())}),Pt(()=>{const Ve=x.value.input,st=Jt(Ve);l=Ve.offsetHeight||st,En(Ve,Be)}),t({getCheckedNodes:et,cascaderPanelRef:T,togglePopperVisible:De,contentRef:Se,presentText:Z,focus:Cn,blur:xn}),(Ve,st)=>(S(),le(f(Ms),{ref_key:"tooltipRef",ref:w,visible:O.value,teleported:e.teleported,"popper-class":[f(u).e("dropdown"),e.popperClass],"popper-style":e.popperStyle,"popper-options":s,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:`${f(u).namespace.value}-zoom-in-top`,effect:e.effect,pure:"",persistent:e.persistent,onHide:Ce},{default:X(()=>[Ct((S(),P("div",{ref_key:"wrapperRef",ref:te,class:D(de.value),style:Qe(N.value),onClick:st[8]||(st[8]=()=>De(ee.value?void 0:!0)),onKeydown:qt,onMouseenter:st[9]||(st[9]=_t=>R.value=!0),onMouseleave:st[10]||(st[10]=_t=>R.value=!1)},[W(f(ua),{ref_key:"inputRef",ref:x,modelValue:M.value,"onUpdate:modelValue":st[1]||(st[1]=_t=>M.value=_t),placeholder:z.value,readonly:ee.value,disabled:f(m),"validate-event":!1,size:f(q),class:D(_e.value),tabindex:K.value&&e.filterable&&!f(m)?-1:void 0,onCompositionstart:f(C),onCompositionupdate:f(C),onCompositionend:f(C),onInput:At},Aa({suffix:X(()=>[ce.value?(S(),le(f(Je),{key:"clear",class:D([f(d).e("icon"),"icon-circle-close"]),onClick:ht(ct,["stop"])},{default:X(()=>[(S(),le(kt(e.clearIcon)))]),_:1},8,["class"])):(S(),le(f(Je),{key:"arrow-down",class:D(ye.value),onClick:st[0]||(st[0]=ht(_t=>De(),["stop"]))},{default:X(()=>[W(f(hr))]),_:1},8,["class"]))]),_:2},[Ve.$slots.prefix?{name:"prefix",fn:X(()=>[ue(Ve.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),K.value?(S(),P("div",{key:0,ref_key:"tagWrapper",ref:k,class:D([f(u).e("tags"),f(u).is("validate",!!H.value)])},[ue(Ve.$slots,"tag",{data:U.value,deleteTag:Ie},()=>[(S(!0),P(He,null,Et(Y.value,_t=>(S(),le(f(rl),{key:_t.key,type:e.tagType,size:Q.value,effect:e.tagEffect,hit:_t.hitState,closable:_t.closable,"disable-transitions":"",onClose:kn=>Ie(_t)},{default:X(()=>[A("span",null,ge(_t.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&U.value.length>e.maxCollapseTags?(S(),le(f(Ms),{key:0,ref_key:"tagTooltipRef",ref:_,disabled:O.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,effect:e.effect,persistent:e.persistent},{default:X(()=>[W(f(rl),{closable:!1,size:Q.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:X(()=>[A("span",{class:D(f(u).e("tags-text"))}," + "+ge(U.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:X(()=>[W(f(pr),{"max-height":e.maxCollapseTagsTooltipHeight},{default:X(()=>[A("div",{class:D(f(u).e("collapse-tags"))},[(S(!0),P(He,null,Et(L.value,(_t,kn)=>(S(),P("div",{key:kn,class:D(f(u).e("collapse-tag"))},[(S(),le(f(rl),{key:_t.key,class:"in-tooltip",type:e.tagType,size:Q.value,effect:e.tagEffect,hit:_t.hitState,closable:_t.closable,"disable-transitions":"",onClose:Zt=>Ie(_t)},{default:X(()=>[A("span",null,ge(_t.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):ie("v-if",!0),e.filterable&&!f(m)?Ct((S(),P("input",{key:1,"onUpdate:modelValue":st[2]||(st[2]=_t=>B.value=_t),type:"text",class:D(f(u).e("search-input")),placeholder:Z.value?"":V.value,onInput:st[3]||(st[3]=_t=>At(B.value,_t)),onClick:st[4]||(st[4]=ht(_t=>De(!0),["stop"])),onKeydown:Fn(Ue,["delete"]),onCompositionstart:st[5]||(st[5]=(..._t)=>f(C)&&f(C)(..._t)),onCompositionupdate:st[6]||(st[6]=(..._t)=>f(C)&&f(C)(..._t)),onCompositionend:st[7]||(st[7]=(..._t)=>f(C)&&f(C)(..._t))},null,42,bne)),[[ag,B.value]]):ie("v-if",!0)],2)):ie("v-if",!0)],38)),[[f(dc),Le,Se.value]])]),content:X(()=>[Ve.$slots.header?(S(),P("div",{key:0,class:D(f(u).e("header")),onClick:st[11]||(st[11]=ht(()=>{},["stop"]))},[ue(Ve.$slots,"header")],2)):ie("v-if",!0),Ct(W(f(wE),{ref_key:"cascaderPanelRef",ref:T,modelValue:ae.value,"onUpdate:modelValue":st[12]||(st[12]=_t=>ae.value=_t),options:e.options,props:a.props,border:!1,"render-label":Ve.$slots.default,onExpandChange:Wt,onClose:st[13]||(st[13]=_t=>Ve.$nextTick(()=>De(!1)))},{empty:X(()=>[ue(Ve.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[jt,!$.value]]),e.filterable?Ct((S(),le(f(pr),{key:1,ref_key:"suggestionPanel",ref:I,tag:"ul",class:D(f(u).e("suggestion-panel")),"view-class":f(u).e("suggestion-list"),onKeydown:xe},{default:X(()=>[J.value.length?(S(!0),P(He,{key:0},Et(J.value,_t=>(S(),P("li",{key:_t.uid,class:D([f(u).e("suggestion-item"),f(u).is("checked",_t.checked)]),tabindex:-1,onClick:kn=>Ot(_t)},[ue(Ve.$slots,"suggestion-item",{item:_t},()=>[A("span",null,ge(_t.text),1),_t.checked?(S(),le(f(Je),{key:0},{default:X(()=>[W(f(Tf))]),_:1})):ie("v-if",!0)])],10,yne))),128)):ue(Ve.$slots,"empty",{key:1},()=>[A("li",{class:D(f(u).e("empty-text"))},ge(f(p)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[jt,$.value]]):ie("v-if",!0),Ve.$slots.footer?(S(),P("div",{key:2,class:D(f(u).e("footer")),onClick:st[14]||(st[14]=ht(()=>{},["stop"]))},[ue(Ve.$slots,"footer")],2)):ie("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}});const _ne=yt(wne),Cne=Me({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),Sne={"update:checked":e=>on(e),[Dt]:e=>on(e)};var xne=j({name:"ElCheckTag",__name:"check-tag",props:Cne,emits:Sne,setup(e,{emit:t}){const n=e,s=t,a=Ee("check-tag"),o=E(()=>[a.b(),a.is("checked",n.checked),a.is("disabled",n.disabled),a.m(n.type||"primary")]),r=()=>{if(n.disabled)return;const i=!n.checked;s(Dt,i),s("update:checked",i)};return(i,l)=>(S(),P("span",{class:D(o.value),onClick:r},[ue(i.$slots,"default")],2))}});const kne=yt(xne),Ene=Me({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:re([Number,Object]),default:()=>Ln({})},sm:{type:re([Number,Object]),default:()=>Ln({})},md:{type:re([Number,Object]),default:()=>Ln({})},lg:{type:re([Number,Object]),default:()=>Ln({})},xl:{type:re([Number,Object]),default:()=>Ln({})}}),_E=Symbol("rowContextKey");var Ane=j({name:"ElCol",__name:"col",props:Ene,setup(e){const t=e,{gutter:n}=Ke(_E,{gutter:E(()=>0)}),s=Ee("col"),a=E(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),o=E(()=>{const r=[];return["span","offset","pull","push"].forEach(c=>{const u=t[c];at(u)&&(c==="span"?r.push(s.b(`${t[c]}`)):u>0&&r.push(s.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{at(t[c])?r.push(s.b(`${c}-${t[c]}`)):bt(t[c])&&Object.entries(t[c]).forEach(([u,d])=>{r.push(u!=="span"?s.b(`${c}-${u}-${d}`):s.b(`${c}-${d}`))})}),n.value&&r.push(s.is("guttered")),[s.b(),r]});return(r,i)=>(S(),le(kt(e.tag),{class:D(o.value),style:Qe(a.value)},{default:X(()=>[ue(r.$slots,"default")]),_:3},8,["class","style"]))}});const Tne=yt(Ane),CE=e=>at(e)||Xe(e)||Ae(e),Mne=Me({accordion:Boolean,modelValue:{type:re([Array,String,Number]),default:()=>Ln([])},expandIconPosition:{type:re([String]),default:"right"},beforeCollapse:{type:re(Function)}}),Pne={[mt]:CE,[Dt]:CE},SE=Symbol("collapseContextKey"),Rne="ElCollapse",Ine=(e,t)=>{const n=F(As(e.modelValue)),s=r=>{n.value=r;const i=e.accordion?n.value[0]:n.value;t(mt,i),t(Dt,i)},a=r=>{if(e.accordion)s([n.value[0]===r?"":r]);else{const i=[...n.value],l=i.indexOf(r);l>-1?i.splice(l,1):i.push(r),s(i)}},o=async r=>{const{beforeCollapse:i}=e;if(!i){a(r);return}const l=i(r);[su(l),on(l)].includes(!0)||es(Rne,"beforeCollapse must return type `Promise` or `boolean`"),su(l)?l.then(u=>{u!==!1&&a(r)}).catch(u=>{}):l&&a(r)};return be(()=>e.modelValue,()=>n.value=As(e.modelValue),{deep:!0}),Nt(SE,{activeNames:n,handleItemClick:o}),{activeNames:n,setActiveNames:s}},One=e=>{const t=Ee("collapse");return{rootKls:E(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}};var Lne=j({name:"ElCollapse",__name:"collapse",props:Mne,emits:Pne,setup(e,{expose:t,emit:n}){const s=e,a=n,{activeNames:o,setActiveNames:r}=Ine(s,a),{rootKls:i}=One(s);return t({activeNames:o,setActiveNames:r}),(l,c)=>(S(),P("div",{class:D(f(i))},[ue(l.$slots,"default")],2))}});const Nne=Me({title:{type:String,default:""},name:{type:re([String,Number]),default:void 0},icon:{type:rn,default:Ds},disabled:Boolean});var $ne=j({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=Ee("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},s={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.height&&(a.dataset.elExistsHeight=a.style.height),a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){requestAnimationFrame(()=>{a.dataset.oldOverflow=a.style.overflow,a.dataset.elExistsHeight?a.style.maxHeight=a.dataset.elExistsHeight:a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"})},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,o)=>(S(),le(ws,Tt({name:f(t).b()},DO(s)),{default:X(()=>[ue(a.$slots,"default")]),_:3},16,["name"]))}});const Xg=yt($ne),Dne=e=>{const t=Ke(SE),{namespace:n}=Ee("collapse"),s=F(!1),a=F(!1),o=r3(),r=E(()=>o.current++),i=E(()=>{var h;return(h=e.name)!=null?h:`${n.value}-id-${o.prefix}-${f(r)}`}),l=E(()=>t==null?void 0:t.activeNames.value.includes(f(i)));return{focusing:s,id:r,isActive:l,handleFocus:()=>{setTimeout(()=>{a.value?a.value=!1:s.value=!0},50)},handleHeaderClick:h=>{if(e.disabled)return;const p=h.target;p!=null&&p.closest("input, textarea, select")||(t==null||t.handleItemClick(f(i)),s.value=!1,a.value=!0)},handleEnterClick:h=>{const p=h.target;p!=null&&p.closest("input, textarea, select")||(h.preventDefault(),t==null||t.handleItemClick(f(i)))}}},Fne=(e,{focusing:t,isActive:n,id:s})=>{const a=Ee("collapse"),o=E(()=>[a.b("item"),a.is("active",f(n)),a.is("disabled",e.disabled)]),r=E(()=>[a.be("item","header"),a.is("active",f(n)),{focusing:f(t)&&!e.disabled}]),i=E(()=>[a.be("item","arrow"),a.is("active",f(n))]),l=E(()=>[a.be("item","title")]),c=E(()=>a.be("item","wrap")),u=E(()=>a.be("item","content")),d=E(()=>a.b(`content-${f(s)}`)),h=E(()=>a.b(`head-${f(s)}`));return{itemTitleKls:l,arrowKls:i,headKls:r,rootKls:o,itemWrapperKls:c,itemContentKls:u,scopedContentId:d,scopedHeadId:h}},Bne=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],Vne=["id","aria-hidden","aria-labelledby"];var xE=j({name:"ElCollapseItem",__name:"collapse-item",props:Nne,setup(e,{expose:t}){const n=e,{focusing:s,id:a,isActive:o,handleFocus:r,handleHeaderClick:i,handleEnterClick:l}=Dne(n),{arrowKls:c,headKls:u,rootKls:d,itemTitleKls:h,itemWrapperKls:p,itemContentKls:v,scopedContentId:m,scopedHeadId:g}=Fne(n,{focusing:s,isActive:o,id:a});return t({isActive:o}),(b,C)=>(S(),P("div",{class:D(f(d))},[A("div",{id:f(g),class:D(f(u)),"aria-expanded":f(o),"aria-controls":f(m),"aria-describedby":f(m),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:C[0]||(C[0]=(...w)=>f(i)&&f(i)(...w)),onKeydown:C[1]||(C[1]=Fn(ht((...w)=>f(l)&&f(l)(...w),["stop"]),["space","enter"])),onFocus:C[2]||(C[2]=(...w)=>f(r)&&f(r)(...w)),onBlur:C[3]||(C[3]=w=>s.value=!1)},[A("span",{class:D(f(h))},[ue(b.$slots,"title",{isActive:f(o)},()=>[je(ge(e.title),1)])],2),ue(b.$slots,"icon",{isActive:f(o)},()=>[W(f(Je),{class:D(f(c))},{default:X(()=>[(S(),le(kt(e.icon)))]),_:1},8,["class"])])],42,Bne),W(f(Xg),null,{default:X(()=>[Ct(A("div",{id:f(m),role:"region",class:D(f(p)),"aria-hidden":!f(o),"aria-labelledby":f(g)},[A("div",{class:D(f(v))},[ue(b.$slots,"default")],2)],10,Vne),[[jt,f(o)]])]),_:3})],2))}});const zne=yt(Lne,{CollapseItem:xE}),Hne=Pn(xE),kE=Me({modelValue:{type:re(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:String,disabled:Boolean,predefine:{type:re(Array)},validateEvent:{type:Boolean,default:!0}}),Wne={[mt]:e=>Xe(e)||Xn(e)},EE=Symbol("colorCommonPickerKey"),AE=Symbol("colorPickerPanelContextKey"),TE=Me({color:{type:re(Object),required:!0},vertical:Boolean,disabled:Boolean}),jne=TE;let $3=!1;function D3(e,t){if(!Xt)return;const n=function(o){var r;(r=t.drag)==null||r.call(t,o)},s=function(o){var r;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",s),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",s),document.onselectstart=null,document.ondragstart=null,$3=!1,(r=t.end)==null||r.call(t,o)},a=function(o){var r;$3||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",s),document.addEventListener("touchmove",n),document.addEventListener("touchend",s),$3=!0,(r=t.start)==null||r.call(t,o))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a,{passive:!1})}const ME=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},F3=(e,t)=>Math.abs(ME(e)-ME(t)),PE=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},RE=(e,{key:t,minValue:n,maxValue:s})=>{const a=Mt(),o=bn(),r=bn(),i=E(()=>e.color.get(t));function l(h){var p;if(e.disabled)return;h.target!==o.value&&c(h),(p=o.value)==null||p.focus()}function c(h){if(!r.value||!o.value||e.disabled)return;const v=a.vnode.el.getBoundingClientRect(),{clientX:m,clientY:g}=PE(h);let b;if(e.vertical){let C=g-v.top;C=Math.max(o.value.offsetHeight/2,C),C=Math.min(C,v.height-o.value.offsetHeight/2),b=Math.round((C-o.value.offsetHeight/2)/(v.height-o.value.offsetHeight)*s)}else{let C=m-v.left;C=Math.max(o.value.offsetWidth/2,C),C=Math.min(C,v.width-o.value.offsetWidth/2),b=Math.round((C-o.value.offsetWidth/2)/(v.width-o.value.offsetWidth)*s)}e.color.set(t,b)}function u(h){if(e.disabled)return;const{shiftKey:p}=h,v=un(h),m=p?10:1,g=t==="hue"?-1:1;let b=!0;switch(v){case Te.left:case Te.down:d(-m*g);break;case Te.right:case Te.up:d(m*g);break;case Te.home:e.color.set(t,t==="hue"?s:n);break;case Te.end:e.color.set(t,t==="hue"?n:s);break;case Te.pageDown:d(-4*g);break;case Te.pageUp:d(4*g);break;default:b=!1;break}b&&h.preventDefault()}function d(h){let p=i.value+h;p=ps?s:p,e.color.set(t,p)}return{thumb:o,bar:r,currentValue:i,handleDrag:c,handleClick:l,handleKeydown:u}},IE=(e,{namespace:t,maxValue:n,bar:s,thumb:a,currentValue:o,handleDrag:r,getBackground:i})=>{const l=Mt(),c=Ee(t),u=F(0),d=F(0),h=F();function p(){if(!a.value||e.vertical)return 0;const x=l.vnode.el,k=o.value;return x?Math.round(k*(x.offsetWidth-a.value.offsetWidth/2)/n):0}function v(){if(!a.value)return 0;const x=l.vnode.el;if(!e.vertical)return 0;const k=o.value;return x?Math.round(k*(x.offsetHeight-a.value.offsetHeight/2)/n):0}function m(){u.value=p(),d.value=v(),h.value=i==null?void 0:i()}Pt(()=>{if(!s.value||!a.value)return;const x={drag:k=>{r(k)},end:k=>{r(k)}};D3(s.value,x),D3(a.value,x),m()}),be(o,()=>m()),be(()=>e.color.value,()=>m());const g=E(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),b=E(()=>c.e("bar")),C=E(()=>c.e("thumb")),w=E(()=>({background:h.value})),_=E(()=>({left:On(u.value),top:On(d.value)}));return{rootKls:g,barKls:b,barStyle:w,thumbKls:C,thumbStyle:_,thumbLeft:u,thumbTop:d,update:m}},Kne=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],OE=0,B3=100;var Une=j({name:"ElColorAlphaSlider",__name:"alpha-slider",props:TE,setup(e,{expose:t}){const n=e,{currentValue:s,bar:a,thumb:o,handleDrag:r,handleClick:i,handleKeydown:l}=RE(n,{key:"alpha",minValue:OE,maxValue:B3}),{rootKls:c,barKls:u,barStyle:d,thumbKls:h,thumbStyle:p,update:v}=IE(n,{namespace:"color-alpha-slider",maxValue:B3,currentValue:s,bar:a,thumb:o,handleDrag:r,getBackground:C}),{t:m}=Bt(),g=E(()=>m("el.colorpicker.alphaLabel")),b=E(()=>m("el.colorpicker.alphaDescription",{alpha:s.value,color:n.color.value}));function C(){if(n.color&&n.color.value){const{r:w,g:_,b:x}=n.color.toRgb();return`linear-gradient(to right, rgba(${w}, ${_}, ${x}, 0) 0%, rgba(${w}, ${_}, ${x}, 1) 100%)`}return""}return t({update:v,bar:a,thumb:o}),(w,_)=>(S(),P("div",{class:D(f(c))},[A("div",{ref_key:"bar",ref:a,class:D(f(u)),style:Qe(f(d)),onClick:_[0]||(_[0]=(...x)=>f(i)&&f(i)(...x))},null,6),A("div",{ref_key:"thumb",ref:o,class:D(f(h)),style:Qe(f(p)),"aria-label":g.value,"aria-valuenow":f(s),"aria-valuetext":b.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":OE,"aria-valuemax":B3,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:_[1]||(_[1]=(...x)=>f(l)&&f(l)(...x))},null,46,Kne)],2))}});const qne=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],LE=0,V3=360;var Gne=j({name:"ElColorHueSlider",__name:"hue-slider",props:jne,setup(e,{expose:t}){const n=e,{currentValue:s,bar:a,thumb:o,handleDrag:r,handleClick:i,handleKeydown:l}=RE(n,{key:"hue",minValue:LE,maxValue:V3}),{rootKls:c,barKls:u,thumbKls:d,thumbStyle:h,thumbTop:p,update:v}=IE(n,{namespace:"color-hue-slider",maxValue:V3,currentValue:s,bar:a,thumb:o,handleDrag:r}),{t:m}=Bt(),g=E(()=>m("el.colorpicker.hueLabel")),b=E(()=>m("el.colorpicker.hueDescription",{hue:s.value,color:n.color.value}));return t({bar:a,thumb:o,thumbTop:p,update:v}),(C,w)=>(S(),P("div",{class:D(f(c))},[A("div",{ref_key:"bar",ref:a,class:D(f(u)),onClick:w[0]||(w[0]=(..._)=>f(i)&&f(i)(..._))},null,2),A("div",{ref_key:"thumb",ref:o,class:D(f(d)),style:Qe(f(h)),"aria-label":g.value,"aria-valuenow":f(s),"aria-valuetext":b.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":LE,"aria-valuemax":V3,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:w[1]||(w[1]=(..._)=>f(l)&&f(l)(..._))},null,46,qne)],2))}});const Yne=Me({colors:{type:re(Array),required:!0},color:{type:re(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var Xne=Object.defineProperty,Jne=(e,t,n)=>t in e?Xne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ri=(e,t,n)=>Jne(e,typeof t!="symbol"?t+"":t,n);class Jg{constructor(t={}){ri(this,"_hue",0),ri(this,"_saturation",100),ri(this,"_value",100),ri(this,"_alpha",100),ri(this,"_tiny",new Ff),ri(this,"_isValid",!1),ri(this,"enableAlpha",!1),ri(this,"format",""),ri(this,"value",""),ri(this,"selected");for(const n in t)Gt(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const s in t)Gt(t,s)&&this.set(s,t[s]);return}this[`_${t}`]=n,this._isValid=!0,this.doOnChange()}get(t){return["hue","saturation","value","alpha"].includes(t)?Math.round(this[`_${t}`]):this[`_${t}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(t){const n=new Ff(t);if(this._isValid=n.isValid,n.isValid){const{h:s,s:a,v:o,a:r}=n.toHsv();this._hue=s,this._saturation=a*100,this._value=o*100,this._alpha=r*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(t){const n=new Ff({h:t._hue,s:t._saturation/100,v:t._value/100,a:t._alpha/100});return this._tiny.equals(n)}doOnChange(){const{_hue:t,_saturation:n,_value:s,_alpha:a,format:o,enableAlpha:r}=this;let i=o||(r?"rgb":"hex");o==="hex"&&r&&(i="hex8"),this._tiny=new Ff({h:t,s:n/100,v:s/100,a:a/100}),this.value=this._isValid?this._tiny.toString(i):""}}const Zne=e=>{const{currentColor:t}=Ke(AE),n=F(a(e.colors,e.color));be(()=>t.value,o=>{const r=new Jg({value:o,enableAlpha:e.enableAlpha});n.value.forEach(i=>{i.selected=r.compare(i)})}),Wa(()=>{n.value=a(e.colors,e.color)});function s(o){e.color.fromString(e.colors[o])}function a(o,r){return o.map(i=>{const l=new Jg({value:i,enableAlpha:e.enableAlpha});return l.selected=l.compare(r),l})}return{rgbaColors:n,handleSelect:s}},Qne=e=>{const t=Ee("color-predefine"),n=E(()=>[t.b(),t.is("disabled",e.disabled)]),s=E(()=>t.e("colors"));function a(o){return[t.e("color-selector"),t.is("alpha",o.get("alpha")<100),{selected:o.selected}]}return{rootKls:n,colorsKls:s,colorSelectorKls:a}},ese=["disabled","aria-label","onClick"];var tse=j({name:"ElColorPredefine",__name:"predefine",props:Yne,setup(e){const t=e,{rgbaColors:n,handleSelect:s}=Zne(t),{rootKls:a,colorsKls:o,colorSelectorKls:r}=Qne(t),{t:i}=Bt(),l=c=>i("el.colorpicker.predefineDescription",{value:c});return(c,u)=>(S(),P("div",{class:D(f(a))},[A("div",{class:D(f(o))},[(S(!0),P(He,null,Et(f(n),(d,h)=>(S(),P("button",{key:e.colors[h],type:"button",disabled:e.disabled,"aria-label":l(d.value),class:D(f(r)(d)),onClick:p=>f(s)(h)},[A("div",{style:Qe({backgroundColor:d.value})},null,4)],10,ese))),128))],2)],2))}});const nse=Me({color:{type:re(Object),required:!0},disabled:Boolean}),sse=e=>{const t=Mt(),n=F(),s=F(0),a=F(0),o=F("hsl(0, 100%, 50%)"),r=E(()=>e.color.get("saturation")),i=E(()=>e.color.get("value")),l=E(()=>e.color.get("hue"));function c(v){var m;if(e.disabled)return;v.target!==n.value&&u(v),(m=n.value)==null||m.focus({preventScroll:!0})}function u(v){if(e.disabled)return;const g=t.vnode.el.getBoundingClientRect(),{clientX:b,clientY:C}=PE(v);let w=b-g.left,_=C-g.top;w=Math.max(0,w),w=Math.min(w,g.width),_=Math.max(0,_),_=Math.min(_,g.height),a.value=w,s.value=_,e.color.set({saturation:w/g.width*100,value:100-_/g.height*100})}function d(v){if(e.disabled)return;const{shiftKey:m}=v,g=un(v),b=m?10:1;let C=!0;switch(g){case Te.left:h(-b);break;case Te.right:h(b);break;case Te.up:p(b);break;case Te.down:p(-b);break;default:C=!1;break}C&&v.preventDefault()}function h(v){let m=r.value+v;m=m<0?0:m>100?100:m,e.color.set("saturation",m)}function p(v){let m=i.value+v;m=m<0?0:m>100?100:m,e.color.set("value",m)}return{cursorRef:n,cursorTop:s,cursorLeft:a,background:o,saturation:r,brightness:i,hue:l,handleClick:c,handleDrag:u,handleKeydown:d}},ase=(e,{cursorTop:t,cursorLeft:n,background:s,handleDrag:a})=>{const o=Mt(),r=Ee("color-svpanel");function i(){const h=e.color.get("saturation"),p=e.color.get("value"),v=o.vnode.el,{clientWidth:m,clientHeight:g}=v;n.value=h*m/100,t.value=(100-p)*g/100,s.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}Pt(()=>{D3(o.vnode.el,{drag:h=>{a(h)},end:h=>{a(h)}}),i()}),be([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>i());const l=E(()=>r.b()),c=E(()=>r.e("cursor")),u=E(()=>({backgroundColor:s.value})),d=E(()=>({top:On(t.value),left:On(n.value)}));return{rootKls:l,cursorKls:c,rootStyle:u,cursorStyle:d,update:i}},ose=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var rse=j({name:"ElSvPanel",__name:"sv-panel",props:nse,setup(e,{expose:t}){const n=e,{cursorRef:s,cursorTop:a,cursorLeft:o,background:r,saturation:i,brightness:l,handleClick:c,handleDrag:u,handleKeydown:d}=sse(n),{rootKls:h,cursorKls:p,rootStyle:v,cursorStyle:m,update:g}=ase(n,{cursorTop:a,cursorLeft:o,background:r,handleDrag:u}),{t:b}=Bt(),C=E(()=>b("el.colorpicker.svLabel")),w=E(()=>b("el.colorpicker.svDescription",{saturation:i.value,brightness:l.value,color:n.color.value}));return t({update:g}),(_,x)=>(S(),P("div",{class:D(f(h)),style:Qe(f(v)),onClick:x[1]||(x[1]=(...k)=>f(c)&&f(c)(...k))},[A("div",{ref_key:"cursorRef",ref:s,class:D(f(p)),style:Qe(f(m)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":C.value,"aria-valuenow":`${f(i)},${f(l)}`,"aria-valuetext":w.value,onKeydown:x[0]||(x[0]=(...k)=>f(d)&&f(d)(...k))},null,46,ose)],6))}});const NE=(e,t)=>{const n=Yt(new Jg({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return be(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(mt,n.value)}),{color:n}};var ise=j({name:"ElColorPickerPanel",__name:"color-picker-panel",props:kE,emits:Wne,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("color-picker-panel"),{formItem:r}=Ts(),i=Nn(),l=F(),c=F(),u=F(),d=F(),h=F(""),{color:p}=Ke(EE,()=>NE(s,a),!0);function v(){p.fromString(h.value),p.value!==h.value&&(h.value=p.value)}function m(){var b;s.validateEvent&&((b=r==null?void 0:r.validate)==null||b.call(r,"blur").catch(C=>void 0))}function g(){var b,C,w;(b=l.value)==null||b.update(),(C=c.value)==null||C.update(),(w=u.value)==null||w.update()}return Pt(()=>{s.modelValue&&(h.value=p.value),ze(g)}),be(()=>s.modelValue,b=>{b!==p.value&&(b?p.fromString(b):p.clear())}),be(()=>p.value,b=>{a(mt,b),h.value=b,s.validateEvent&&(r==null||r.validate("change").catch(C=>void 0))}),Nt(AE,{currentColor:E(()=>p.value)}),t({color:p,inputRef:d,update:g}),(b,C)=>(S(),P("div",{class:D([f(o).b(),f(o).is("disabled",f(i)),f(o).is("border",e.border)]),onFocusout:m},[A("div",{class:D(f(o).e("wrapper"))},[W(Gne,{ref_key:"hueRef",ref:l,class:"hue-slider",color:f(p),vertical:"",disabled:f(i)},null,8,["color","disabled"]),W(rse,{ref_key:"svRef",ref:c,color:f(p),disabled:f(i)},null,8,["color","disabled"])],2),e.showAlpha?(S(),le(Une,{key:0,ref_key:"alphaRef",ref:u,color:f(p),disabled:f(i)},null,8,["color","disabled"])):ie("v-if",!0),e.predefine?(S(),le(tse,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:f(p),colors:e.predefine,disabled:f(i)},null,8,["enable-alpha","color","colors","disabled"])):ie("v-if",!0),A("div",{class:D(f(o).e("footer"))},[W(f(ua),{ref_key:"inputRef",ref:d,modelValue:h.value,"onUpdate:modelValue":C[0]||(C[0]=w=>h.value=w),"validate-event":!1,size:"small",disabled:f(i),onChange:v},null,8,["modelValue","disabled"]),ue(b.$slots,"footer")],2)],34))}});const $E=yt(ise),lse=Me({persistent:{type:Boolean,default:!0},modelValue:{type:re(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:String,disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:ds,popperClass:ln.popperClass,popperStyle:ln.popperStyle,tabindex:{type:[String,Number],default:0},teleported:ln.teleported,appendTo:ln.appendTo,predefine:{type:re(Array)},validateEvent:{type:Boolean,default:!0},...Cu,...ca(["ariaLabel"])}),cse={[mt]:e=>Xe(e)||Xn(e),[Dt]:e=>Xe(e)||Xn(e),activeChange:e=>Xe(e)||Xn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},use=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var dse=j({name:"ElColorPicker",__name:"color-picker",props:lse,emits:cse,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Bt(),r=Ee("color"),{formItem:i}=Ts(),l=rs(),c=Nn(),{valueOnClear:u,isEmptyValue:d}=wp(s,null),h=NE(s,a),{inputId:p,isLabeledByFormItem:v}=uo(s,{formItemContext:i}),m=F(),g=F(),b=F(),C=F(!1),w=F(!1);let _=!0;const{isFocused:x,handleFocus:k,handleBlur:T}=tl(g,{disabled:c,beforeBlur(ce){var Z;return(Z=m.value)==null?void 0:Z.isFocusInsideContent(ce)},afterBlur(){var ce;Y(!1),z(),s.validateEvent&&((ce=i==null?void 0:i.validate)==null||ce.call(i,"blur").catch(Z=>void 0))}}),I=NV(()=>{var ce,Z;return(Z=(ce=b.value)==null?void 0:ce.color)!=null?Z:h.color}),O=E(()=>Gi(s,Object.keys(kE))),R=E(()=>!s.modelValue&&!w.value?"transparent":J(I,s.showAlpha)),$=E(()=>!s.modelValue&&!w.value?"":I.value),M=E(()=>v.value?void 0:s.ariaLabel||o("el.colorpicker.defaultLabel")),B=E(()=>v.value?i==null?void 0:i.labelId:void 0),U=E(()=>[r.b("picker"),r.is("disabled",c.value),r.bm("picker",l.value),r.is("focused",x.value)]);function J(ce,Z){const{r:H,g:ae,b:de,a:ye}=ce.toRgb();return Z?`rgba(${H}, ${ae}, ${de}, ${ye})`:`rgb(${H}, ${ae}, ${de})`}function Y(ce){C.value=ce}const L=Jr(Y,100,{leading:!0});function N(){c.value||Y(!0)}function V(){L(!1),z()}function z(){ze(()=>{s.modelValue?I.fromString(s.modelValue):(I.value="",ze(()=>{w.value=!1}))})}function q(){c.value||(C.value&&z(),L(!C.value))}function Q(){const ce=d(I.value)?u.value:I.value;a(mt,ce),a(Dt,ce),s.validateEvent&&(i==null||i.validate("change").catch(Z=>void 0)),L(!1),ze(()=>{const Z=new Jg({enableAlpha:s.showAlpha,format:s.colorFormat||"",value:s.modelValue});I.compare(Z)||z()})}function K(){L(!1),a(mt,u.value),a(Dt,u.value),s.modelValue!==u.value&&s.validateEvent&&(i==null||i.validate("change").catch(ce=>void 0)),z(),a("clear")}function ee(){var ce,Z;(Z=(ce=b==null?void 0:b.value)==null?void 0:ce.inputRef)==null||Z.focus()}function se(){C.value&&(V(),x.value&&fe())}function pe(ce){ce.preventDefault(),ce.stopPropagation(),Y(!1),z()}function te(ce){switch(un(ce)){case Te.enter:case Te.numpadEnter:case Te.space:ce.preventDefault(),ce.stopPropagation(),N();break;case Te.esc:pe(ce);break}}function fe(){g.value.focus()}function ve(){g.value.blur()}return be(()=>$.value,ce=>{_&&a("activeChange",ce),_=!0}),be(()=>I.value,()=>{!s.modelValue&&!w.value&&(w.value=!0)}),be(()=>s.modelValue,ce=>{ce?ce&&ce!==I.value&&(_=!1,I.fromString(ce)):w.value=!1}),be(()=>C.value,()=>{b.value&&ze(b.value.update)}),Nt(EE,h),t({color:I,show:N,hide:V,focus:fe,blur:ve}),(ce,Z)=>(S(),le(f(Ms),{ref_key:"popper",ref:m,visible:C.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[f(r).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:`${f(r).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:ee,onHide:Z[2]||(Z[2]=H=>Y(!1))},{content:X(()=>[Ct((S(),le(f($E),Tt({ref_key:"pickerPanelRef",ref:b},O.value,{border:!1,"validate-event":!1,onKeydown:Fn(pe,["esc"])}),{footer:X(()=>[A("div",null,[e.clearable?(S(),le(f(Cs),{key:0,class:D(f(r).be("footer","link-btn")),text:"",size:"small",onClick:K},{default:X(()=>[je(ge(f(o)("el.colorpicker.clear")),1)]),_:1},8,["class"])):ie("v-if",!0),W(f(Cs),{plain:"",size:"small",class:D(f(r).be("footer","btn")),onClick:Q},{default:X(()=>[je(ge(f(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[f(dc),se,g.value]])]),default:X(()=>[A("div",Tt({id:f(p),ref_key:"triggerRef",ref:g},ce.$attrs,{class:U.value,role:"button","aria-label":M.value,"aria-labelledby":B.value,"aria-description":f(o)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":f(c),tabindex:f(c)?void 0:e.tabindex,onKeydown:te,onFocus:Z[0]||(Z[0]=(...H)=>f(k)&&f(k)(...H)),onBlur:Z[1]||(Z[1]=(...H)=>f(T)&&f(T)(...H))}),[A("div",{class:D(f(r).be("picker","trigger")),onClick:q},[A("span",{class:D([f(r).be("picker","color"),f(r).is("alpha",e.showAlpha)])},[A("span",{class:D(f(r).be("picker","color-inner")),style:Qe({backgroundColor:R.value})},[Ct(W(f(Je),{class:D([f(r).be("picker","icon"),f(r).is("icon-arrow-down")])},{default:X(()=>[W(f(hr))]),_:1},8,["class"]),[[jt,e.modelValue||w.value]]),Ct(W(f(Je),{class:D([f(r).be("picker","empty"),f(r).is("icon-close")])},{default:X(()=>[W(f(Ua))]),_:1},8,["class"]),[[jt,!e.modelValue&&!w.value]])],6)],2)],2)],16,use)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}});const fse=yt(dse),hse=Me({a11y:{type:Boolean,default:!0},locale:{type:re(Object)},size:ds,button:{type:re(Object)},card:{type:re(Object)},dialog:{type:re(Object)},link:{type:re(Object)},experimentalFeatures:{type:re(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:re(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Cu}),fa={placement:"top"},pse=yt(j({name:"ElConfigProvider",props:hse,setup(e,{slots:t}){const n=Ny(e);return be(()=>e.message,s=>{var a,o;Object.assign(fa,(o=(a=n==null?void 0:n.value)==null?void 0:a.message)!=null?o:{},s??{})},{immediate:!0,deep:!0}),()=>ue(t,"default",{config:n==null?void 0:n.value})}}));var vse=j({name:"ElContainer",__name:"container",props:{direction:{type:String,required:!1}},setup(e){const t=e,n=jn(),s=Ee("container"),a=E(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(r=>{const i=r.type.name;return i==="ElHeader"||i==="ElFooter"}):!1);return(o,r)=>(S(),P("section",{class:D([f(s).b(),f(s).is("vertical",a.value)])},[ue(o.$slots,"default")],2))}}),DE=j({name:"ElAside",__name:"aside",props:{width:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=Ee("aside"),s=E(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,o)=>(S(),P("aside",{class:D(f(n).b()),style:Qe(s.value)},[ue(a.$slots,"default")],6))}}),FE=j({name:"ElFooter",__name:"footer",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=Ee("footer"),s=E(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,o)=>(S(),P("footer",{class:D(f(n).b()),style:Qe(s.value)},[ue(a.$slots,"default")],6))}}),BE=j({name:"ElHeader",__name:"header",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=Ee("header"),s=E(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,o)=>(S(),P("header",{class:D(f(n).b()),style:Qe(s.value)},[ue(a.$slots,"default")],6))}}),VE=j({name:"ElMain",__name:"main",setup(e){const t=Ee("main");return(n,s)=>(S(),P("main",{class:D(f(t).b())},[ue(n.$slots,"default")],2))}});const mse=yt(vse,{Aside:DE,Footer:FE,Header:BE,Main:VE}),gse=Pn(DE),bse=Pn(FE),yse=Pn(BE),wse=Pn(VE);var zE={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(b){this[g]=+b}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var C=b.match(/([+-]|\d\d)/g),w=60*C[1]+(+C[2]||0);return w===0?0:C[0]==="+"?-w:w}(g)}],h=function(g){var b=l[g];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(g,b){var C,w=l.meridiem;if(w){for(var _=1;_<=24;_+=1)if(g.indexOf(w(_,0,b))>-1){C=_>12;break}}else C=g===(b?"pm":"PM");return C},v={A:[i,function(g){this.afternoon=p(g,!1)}],a:[i,function(g){this.afternoon=p(g,!0)}],Q:[a,function(g){this.month=3*(g-1)+1}],S:[a,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[o,u("day")],Do:[i,function(g){var b=l.ordinal,C=g.match(/\d+/);if(this.day=C[0],b)for(var w=1;w<=31;w+=1)b(w).replace(/\[|\]/g,"")===g&&(this.day=w)}],w:[r,u("week")],ww:[o,u("week")],M:[r,u("month")],MM:[o,u("month")],MMM:[i,function(g){var b=h("months"),C=(h("monthsShort")||b.map(function(w){return w.slice(0,3)})).indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[i,function(g){var b=h("months").indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function m(g){var b,C;b=g,C=l&&l.formats;for(var w=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,$,M){var B=M&&M.toUpperCase();return $||C[M]||n[M]||C[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(U,J,Y){return J||Y.slice(1)})})).match(s),_=w.length,x=0;x<_;x+=1){var k=w[x],T=v[k],I=T&&T[0],O=T&&T[1];w[x]=O?{regex:I,parser:O}:k.replace(/^\[|\]$/g,"")}return function(R){for(var $={},M=0,B=0;M<_;M+=1){var U=w[M];if(typeof U=="string")B+=U.length;else{var J=U.regex,Y=U.parser,L=R.slice(B),N=J.exec(L)[0];Y.call($,N),R=R.replace(N,"")}}return function(V){var z=V.afternoon;if(z!==void 0){var q=V.hours;z?q<12&&(V.hours+=12):q===12&&(V.hours=0),delete V.afternoon}}($),$}}return function(g,b,C){C.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var w=b.prototype,_=w.parse;w.parse=function(x){var k=x.date,T=x.utc,I=x.args;this.$u=T;var O=I[1];if(typeof O=="string"){var R=I[2]===!0,$=I[3]===!0,M=R||$,B=I[2];$&&(B=I[2]),l=this.$locale(),!R&&B&&(l=C.Ls[B]),this.$d=function(L,N,V,z){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*L);var q=m(N)(L),Q=q.year,K=q.month,ee=q.day,se=q.hours,pe=q.minutes,te=q.seconds,fe=q.milliseconds,ve=q.zone,ce=q.week,Z=new Date,H=ee||(Q||K?1:Z.getDate()),ae=Q||Z.getFullYear(),de=0;Q&&!K||(de=K>0?K-1:Z.getMonth());var ye,_e=se||0,Se=pe||0,Le=te||0,De=fe||0;return ve?new Date(Date.UTC(ae,de,H,_e,Se,Le,De+60*ve.offset*1e3)):V?new Date(Date.UTC(ae,de,H,_e,Se,Le,De)):(ye=new Date(ae,de,H,_e,Se,Le,De),ce&&(ye=z(ye).week(ce).toDate()),ye)}catch{return new Date("")}}(k,O,T,C),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),M&&k!=this.format(O)&&(this.$d=new Date("")),l={}}else if(O instanceof Array)for(var U=O.length,J=1;J<=U;J+=1){I[1]=O[J-1];var Y=C.apply(this,I);if(Y.isValid()){this.$d=Y.$d,this.$L=Y.$L,this.init();break}J===U&&(this.$d=new Date(""))}else _.call(this,x)}}})})(zE);var _se=zE.exports;const z3=al(_se),HE=["hours","minutes","seconds"],gr="EP_PICKER_BASE",H3="ElPopperOptions",WE=Symbol("commonPickerContextKey"),Vf="HH:mm:ss",hc="YYYY-MM-DD",Cse={date:hc,dates:hc,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${hc} ${Vf}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:hc,datetimerange:`${hc} ${Vf}`},jE=(e,t)=>{const{lang:n}=Bt(),s=F(!1),a=F(!1),o=F(null),r=E(()=>{const{modelValue:v}=e;return!v||Ae(v)&&!v.filter(Boolean).length}),i=v=>{if(!zk(e.modelValue,v)){let m;Ae(v)?m=v.map(b=>Wk(b,e.valueFormat,n.value)):v&&(m=Wk(v,e.valueFormat,n.value)),t(mt,v&&m,n.value)}},l=E(()=>{var v;let m;if(r.value?c.value.getDefaultValue&&(m=c.value.getDefaultValue()):Ae(e.modelValue)?m=e.modelValue.map(g=>Hk(g,e.valueFormat,n.value)):m=Hk((v=e.modelValue)!=null?v:"",e.valueFormat,n.value),c.value.getRangeAvailableTime){const g=c.value.getRangeAvailableTime(m);Bn(g,m)||(m=g,r.value||i(jg(m)))}return Ae(m)&&m.some(g=>!g)&&(m=[]),m}),c=F({});return{parsedValue:l,pickerActualVisible:a,pickerOptions:c,pickerVisible:s,userInput:o,valueIsEmpty:r,emitInput:i,onCalendarChange:v=>{t("calendar-change",v)},onPanelChange:(v,m,g)=>{t("panel-change",v,m,g)},onPick:(v="",m=!1)=>{s.value=m;let g;Ae(v)?g=v.map(b=>b.toDate()):g=v&&v.toDate(),o.value=null,i(g)},onSetPickerOption:v=>{c.value[v[0]]=v[1],c.value.panelReady=!0}}},W3=Me({disabledHours:{type:re(Function)},disabledMinutes:{type:re(Function)},disabledSeconds:{type:re(Function)}}),KE=Me({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),j3=Me({automaticDropdown:{type:Boolean,default:!0},id:{type:re([Array,String])},name:{type:re([Array,String])},popperClass:ln.popperClass,popperStyle:ln.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:re([String,Object]),default:Do},editable:{type:Boolean,default:!0},prefixIcon:{type:re([String,Object]),default:""},size:ds,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:re(Object),default:()=>({})},modelValue:{type:re([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:re([Date,Array])},defaultTime:{type:re([Date,Array])},isRange:Boolean,...W3,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:re([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:re(String),values:ei,default:"bottom"},fallbackPlacements:{type:re(Array),default:["bottom","top","right","left"]},...Cu,...ca(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),Sse=Me({id:{type:re(Array)},name:{type:re(Array)},modelValue:{type:re([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),xse=["id","name","placeholder","value","disabled"],kse=["id","name","placeholder","value","disabled"];var Ese=j({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:Sse,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const s=e,a=n,{formItem:o}=Ts(),{inputId:r}=uo(Yt({id:E(()=>{var I;return(I=s.id)==null?void 0:I[0]})}),{formItemContext:o}),i=Ng(),l=Ee("date"),c=Ee("range"),u=F(),d=F(),{wrapperRef:h,isFocused:p}=tl(u,{disabled:E(()=>s.disabled)}),v=I=>{a("click",I)},m=I=>{a("mouseenter",I)},g=I=>{a("mouseleave",I)},b=I=>{a("touchstart",I)},C=I=>{a("startInput",I)},w=I=>{a("endInput",I)},_=I=>{a("startChange",I)},x=I=>{a("endChange",I)};return t({focus:()=>{var I;(I=u.value)==null||I.focus()},blur:()=>{var I,O;(I=u.value)==null||I.blur(),(O=d.value)==null||O.blur()}}),(I,O)=>(S(),P("div",{ref_key:"wrapperRef",ref:h,class:D([f(l).is("active",f(p)),I.$attrs.class]),style:Qe(I.$attrs.style),onClick:v,onMouseenter:m,onMouseleave:g,onTouchstartPassive:b},[ue(I.$slots,"prefix"),A("input",Tt(f(i),{id:f(r),ref_key:"inputRef",ref:u,name:I.name&&I.name[0],placeholder:I.startPlaceholder,value:I.modelValue&&I.modelValue[0],class:f(c).b("input"),disabled:I.disabled,onInput:C,onChange:_}),null,16,xse),ue(I.$slots,"range-separator"),A("input",Tt(f(i),{id:I.id&&I.id[1],ref_key:"endInputRef",ref:d,name:I.name&&I.name[1],placeholder:I.endPlaceholder,value:I.modelValue&&I.modelValue[1],class:f(c).b("input"),disabled:I.disabled,onInput:w,onChange:x}),null,16,kse),ue(I.$slots,"suffix")],38))}}),UE=j({name:"Picker",__name:"picker",props:j3,emits:[mt,Dt,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const s=e,a=n,o=zi(),r=Ee("date"),i=Ee("input"),l=Ee("range"),{formItem:c}=Ts(),u=Ke(H3,{}),d=wp(s,null),h=F(),p=F(),v=F(null);let m=!1;const g=Nn(),b=jE(s,a),{parsedValue:C,pickerActualVisible:w,userInput:_,pickerVisible:x,pickerOptions:k,valueIsEmpty:T,emitInput:I,onPick:O,onSetPickerOption:R,onCalendarChange:$,onPanelChange:M}=b,{isFocused:B,handleFocus:U,handleBlur:J}=tl(p,{disabled:g,beforeFocus(){return s.readonly},afterFocus(){s.automaticDropdown&&(x.value=!0)},beforeBlur(we){var Ye;return!m&&((Ye=h.value)==null?void 0:Ye.isFocusInsideContent(we))},afterBlur(){nt(),x.value=!1,m=!1,s.validateEvent&&(c==null||c.validate("blur").catch(we=>void 0))}}),Y=F(!1),L=E(()=>[r.b("editor"),r.bm("editor",s.type),i.e("wrapper"),r.is("disabled",g.value),r.is("active",x.value),l.b("editor"),Oe?l.bm("editor",Oe.value):"",o.class]),N=E(()=>[i.e("icon"),l.e("close-icon"),ye.value?"":l.em("close-icon","hidden")]);be(x,we=>{we?ze(()=>{we&&(v.value=s.modelValue)}):(_.value=null,ze(()=>{V(s.modelValue)}))});const V=(we,Ye)=>{(Ye||!zk(we,v.value))&&(a(Dt,we),Ye&&(v.value=we),s.validateEvent&&(c==null||c.validate("change").catch(At=>void 0)))},z=we=>{a("keydown",we)},q=E(()=>p.value?Array.from(p.value.$el.querySelectorAll("input")):[]),Q=(we,Ye,At)=>{const Jt=q.value;Jt.length&&(!At||At==="min"?(Jt[0].setSelectionRange(we,Ye),Jt[0].focus()):At==="max"&&(Jt[1].setSelectionRange(we,Ye),Jt[1].focus()))},K=()=>{w.value=!0},ee=()=>{a("visible-change",!0)},se=()=>{w.value=!1,x.value=!1,a("visible-change",!1)},pe=()=>{x.value=!0},te=()=>{x.value=!1},fe=E(()=>{const we=Fe(C.value);return Ae(_.value)?[_.value[0]||we&&we[0]||"",_.value[1]||we&&we[1]||""]:_.value!==null?_.value:!ce.value&&T.value||!x.value&&T.value?"":we?Z.value||H.value||ae.value?we.join(", "):we:""}),ve=E(()=>s.type.includes("time")),ce=E(()=>s.type.startsWith("time")),Z=E(()=>s.type==="dates"),H=E(()=>s.type==="months"),ae=E(()=>s.type==="years"),de=E(()=>s.prefixIcon||(ve.value?By:jx)),ye=E(()=>s.clearable&&!g.value&&!s.readonly&&!T.value&&(Y.value||B.value)),_e=we=>{s.readonly||g.value||(ye.value&&(we==null||we.stopPropagation(),k.value.handleClear?k.value.handleClear():I(d.valueOnClear.value),V(d.valueOnClear.value,!0),se()),a("clear"))},Se=async we=>{var Ye;s.readonly||g.value||(((Ye=we.target)==null?void 0:Ye.tagName)!=="INPUT"||B.value||!s.automaticDropdown)&&(x.value=!0)},Le=()=>{s.readonly||g.value||!T.value&&s.clearable&&(Y.value=!0)},De=()=>{Y.value=!1},$e=we=>{var Ye;s.readonly||g.value||(((Ye=we.touches[0].target)==null?void 0:Ye.tagName)!=="INPUT"||B.value||!s.automaticDropdown)&&(x.value=!0)},Ce=E(()=>s.type.includes("range")),Oe=rs(),Ie=E(()=>{var we,Ye;return(Ye=(we=f(h))==null?void 0:we.popperRef)==null?void 0:Ye.contentRef}),We=Iy(p,we=>{const Ye=f(Ie),At=us(p);Ye&&(we.target===Ye||we.composedPath().includes(Ye))||we.target===At||At&&we.composedPath().includes(At)||(x.value=!1)});tn(()=>{We==null||We()});const nt=()=>{if(_.value){const we=dt(fe.value);we&&(Be(we)&&I(jg(we)),_.value=null)}_.value===""&&(I(d.valueOnClear.value),V(d.valueOnClear.value,!0),_.value=null)},dt=we=>we?k.value.parseUserInput(we):null,Fe=we=>we?Ae(we)?we.map(At=>At.format(s.format)):we.format(s.format):null,Be=we=>k.value.isValidValue(we),et=async we=>{if(s.readonly||g.value)return;const Ye=un(we);if(z(we),Ye===Te.esc){x.value===!0&&(x.value=!1,we.preventDefault(),we.stopPropagation());return}if(Ye===Te.down&&(k.value.handleFocusPicker&&(we.preventDefault(),we.stopPropagation()),x.value===!1&&(x.value=!0,await ze()),k.value.handleFocusPicker)){k.value.handleFocusPicker();return}if(Ye===Te.tab){m=!0;return}if(Ye===Te.enter||Ye===Te.numpadEnter){x.value?(_.value===null||_.value===""||Be(dt(fe.value)))&&(nt(),x.value=!1):x.value=!0,we.preventDefault(),we.stopPropagation();return}if(_.value){we.stopPropagation();return}k.value.handleKeydownInput&&k.value.handleKeydownInput(we)},Wt=we=>{_.value=we,x.value||(x.value=!0)},qt=we=>{const Ye=we.target;_.value?_.value=[Ye.value,_.value[1]]:_.value=[Ye.value,null]},ct=we=>{const Ye=we.target;_.value?_.value=[_.value[0],Ye.value]:_.value=[null,Ye.value]},gt=()=>{var we;const Ye=_.value,At=dt(Ye&&Ye[0]),Jt=f(C);if(At&&At.isValid()){_.value=[Fe(At),((we=fe.value)==null?void 0:we[1])||null];const Cn=[At,Jt&&(Jt[1]||null)];Be(Cn)&&(I(jg(Cn)),_.value=null)}},Ot=()=>{var we;const Ye=f(_),At=dt(Ye&&Ye[1]),Jt=f(C);if(At&&At.isValid()){_.value=[((we=f(fe))==null?void 0:we[0])||null,Fe(At)];const Cn=[Jt&&Jt[0],At];Be(Cn)&&(I(jg(Cn)),_.value=null)}},xe=()=>{var we;(we=p.value)==null||we.focus()},Ue=()=>{var we;(we=p.value)==null||we.blur()};return Nt(gr,{props:s,emptyValues:d}),Nt(WE,b),t({focus:xe,blur:Ue,handleOpen:pe,handleClose:te,onPick:O}),(we,Ye)=>(S(),le(f(Ms),Tt({ref_key:"refPopper",ref:h,visible:f(x),effect:"light",pure:"",trigger:"click"},we.$attrs,{role:"dialog",teleported:"",transition:`${f(r).namespace.value}-zoom-in-top`,"popper-class":[`${f(r).namespace.value}-picker__popper`,we.popperClass],"popper-style":we.popperStyle,"popper-options":f(u),"fallback-placements":we.fallbackPlacements,"gpu-acceleration":!1,placement:we.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:K,onShow:ee,onHide:se}),{default:X(()=>[Ce.value?(S(),le(Ese,{key:1,id:we.id,ref_key:"inputRef",ref:p,"model-value":fe.value,name:we.name,disabled:f(g),readonly:!we.editable||we.readonly,"start-placeholder":we.startPlaceholder,"end-placeholder":we.endPlaceholder,class:D(L.value),style:Qe(we.$attrs.style),"aria-label":we.ariaLabel,tabindex:we.tabindex,autocomplete:"off",role:"combobox",onClick:Se,onFocus:f(U),onBlur:f(J),onStartInput:qt,onStartChange:gt,onEndInput:ct,onEndChange:Ot,onMousedown:Se,onMouseenter:Le,onMouseleave:De,onTouchstartPassive:$e,onKeydown:et},{prefix:X(()=>[de.value?(S(),le(f(Je),{key:0,class:D([f(i).e("icon"),f(l).e("icon")])},{default:X(()=>[(S(),le(kt(de.value)))]),_:1},8,["class"])):ie("v-if",!0)]),"range-separator":X(()=>[ue(we.$slots,"range-separator",{},()=>[A("span",{class:D(f(l).b("separator"))},ge(we.rangeSeparator),3)])]),suffix:X(()=>[we.clearIcon?(S(),le(f(Je),{key:0,class:D(N.value),onMousedown:ht(f(en),["prevent"]),onClick:_e},{default:X(()=>[(S(),le(kt(we.clearIcon)))]),_:1},8,["class","onMousedown"])):ie("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(S(),le(f(ua),{key:0,id:we.id,ref_key:"inputRef",ref:p,"container-role":"combobox","model-value":fe.value,name:we.name,size:f(Oe),disabled:f(g),placeholder:we.placeholder,class:D([f(r).b("editor"),f(r).bm("editor",we.type),f(r).is("focus",f(x)),we.$attrs.class]),style:Qe(we.$attrs.style),readonly:!we.editable||we.readonly||Z.value||H.value||ae.value||we.type==="week","aria-label":we.ariaLabel,tabindex:we.tabindex,"validate-event":!1,onInput:Wt,onFocus:f(U),onBlur:f(J),onKeydown:et,onChange:nt,onMousedown:Se,onMouseenter:Le,onMouseleave:De,onTouchstartPassive:$e,onClick:Ye[0]||(Ye[0]=ht(()=>{},["stop"]))},{prefix:X(()=>[de.value?(S(),le(f(Je),{key:0,class:D(f(i).e("icon")),onMousedown:ht(Se,["prevent"]),onTouchstartPassive:$e},{default:X(()=>[(S(),le(kt(de.value)))]),_:1},8,["class"])):ie("v-if",!0)]),suffix:X(()=>[ye.value&&we.clearIcon?(S(),le(f(Je),{key:0,class:D(`${f(i).e("icon")} clear-icon`),onMousedown:ht(f(en),["prevent"]),onClick:_e},{default:X(()=>[(S(),le(kt(we.clearIcon)))]),_:1},8,["class","onMousedown"])):ie("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:X(()=>[ue(we.$slots,"default",{visible:f(x),actualVisible:f(w),parsedValue:f(C),format:we.format,dateFormat:we.dateFormat,timeFormat:we.timeFormat,unlinkPanels:we.unlinkPanels,type:we.type,defaultValue:we.defaultValue,showNow:we.showNow,showConfirm:we.showConfirm,showFooter:we.showFooter,showWeekNumber:we.showWeekNumber,onPick:Ye[1]||(Ye[1]=(...At)=>f(O)&&f(O)(...At)),onSelectRange:Q,onSetPickerOption:Ye[2]||(Ye[2]=(...At)=>f(R)&&f(R)(...At)),onCalendarChange:Ye[3]||(Ye[3]=(...At)=>f($)&&f($)(...At)),onClear:_e,onPanelChange:Ye[4]||(Ye[4]=(...At)=>f(M)&&f(M)(...At)),onMousedown:Ye[5]||(Ye[5]=ht(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}});const Ase=Me({...KE,datetimeRole:String,parsedValue:{type:re(Object)}}),qE=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const s=(r,i,l,c)=>{const u={hour:e,minute:t,second:n};let d=r;return["hour","minute","second"].forEach(h=>{if(u[h]){let p;const v=u[h];switch(h){case"minute":{p=v(d.hour(),i,c);break}case"second":{p=v(d.hour(),d.minute(),i,c);break}default:{p=v(i,c);break}}if(p!=null&&p.length&&!p.includes(d[h]())){const m=l?0:p.length-1;d=d[h](p[m])}}}),d},a={};return{timePickerOptions:a,getAvailableTime:s,onSetOption:([r,i])=>{a[r]=i}}},K3=e=>{const t=(s,a)=>s||a,n=s=>s!==!0;return e.map(t).filter(n)},GE=(e,t,n)=>({getHoursList:(r,i)=>C3(24,e&&(()=>e==null?void 0:e(r,i))),getMinutesList:(r,i,l)=>C3(60,t&&(()=>t==null?void 0:t(r,i,l))),getSecondsList:(r,i,l,c)=>C3(60,n&&(()=>n==null?void 0:n(r,i,l,c)))}),YE=(e,t,n)=>{const{getHoursList:s,getMinutesList:a,getSecondsList:o}=GE(e,t,n);return{getAvailableHours:(c,u)=>K3(s(c,u)),getAvailableMinutes:(c,u,d)=>K3(a(c,u,d)),getAvailableSeconds:(c,u,d,h)=>K3(o(c,u,d,h))}},XE=e=>{const t=F(e.parsedValue);return be(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Tse=Me({role:{type:String,required:!0},spinnerDate:{type:re(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:re(String),default:""},...W3}),Mse=100,Pse=600,Zg="_RepeatClick",Qg={beforeMount(e,t){const n=t.value,{interval:s=Mse,delay:a=Pse}=Ze(n)?{}:n;let o,r;const i=()=>Ze(n)?n():n.handler(),l=()=>{r&&(clearTimeout(r),r=void 0),o&&(clearInterval(o),o=void 0)},c=u=>{u.button===0&&(l(),i(),document.addEventListener("mouseup",l,{once:!0}),r=setTimeout(()=>{o=setInterval(()=>{i()},s)},a))};e[Zg]={start:c,clear:l},e.addEventListener("mousedown",c)},unmounted(e){if(!e[Zg])return;const{start:t,clear:n}=e[Zg];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[Zg]=null}},Rse=["onClick"],Ise=["onMouseenter"];var U3=j({__name:"basic-time-spinner",props:Tse,emits:[Dt,"select-range","set-option"],setup(e,{emit:t}){const n=e,s=Ke(gr),{isRange:a,format:o}=s.props,r=t,i=Ee("time"),{getHoursList:l,getMinutesList:c,getSecondsList:u}=GE(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let d=!1;const h=F(),g={hours:F(),minutes:F(),seconds:F()},b=E(()=>n.showSeconds?HE:HE.slice(0,2)),C=E(()=>{const{spinnerDate:K}=n,ee=K.hour(),se=K.minute(),pe=K.second();return{hours:ee,minutes:se,seconds:pe}}),w=E(()=>{const{hours:K,minutes:ee}=f(C),{role:se,spinnerDate:pe}=n,te=a?void 0:pe;return{hours:l(se,te),minutes:c(K,se,te),seconds:u(K,ee,se,te)}}),_=E(()=>{const{hours:K,minutes:ee,seconds:se}=f(C);return{hours:_3(K,23),minutes:_3(ee,59),seconds:_3(se,59)}}),x=Jr(K=>{d=!1,I(K)},200),k=K=>{if(!!!n.amPmMode)return"";const se=n.amPmMode==="A";let pe=K<12?" am":" pm";return se&&(pe=pe.toUpperCase()),pe},T=K=>{let ee=[0,0];const se=o||Vf,pe=se.indexOf("HH"),te=se.indexOf("mm"),fe=se.indexOf("ss");switch(K){case"hours":pe!==-1&&(ee=[pe,pe+2]);break;case"minutes":te!==-1&&(ee=[te,te+2]);break;case"seconds":fe!==-1&&(ee=[fe,fe+2]);break}const[ve,ce]=ee;r("select-range",ve,ce),h.value=K},I=K=>{$(K,f(C)[K])},O=()=>{I("hours"),I("minutes"),I("seconds")},R=K=>K.querySelector(`.${i.namespace.value}-scrollbar__wrap`),$=(K,ee)=>{if(n.arrowControl)return;const se=f(g[K]);se&&se.$el&&(R(se.$el).scrollTop=Math.max(0,ee*M(K)))},M=K=>{const ee=f(g[K]),se=ee==null?void 0:ee.$el.querySelector("li");return se&&Number.parseFloat(Xi(se,"height"))||0},B=()=>{J(1)},U=()=>{J(-1)},J=K=>{h.value||T("hours");const ee=h.value,se=f(C)[ee],pe=h.value==="hours"?24:60,te=Y(ee,se,K,pe);L(ee,te),$(ee,te),ze(()=>T(ee))},Y=(K,ee,se,pe)=>{let te=(ee+se+pe)%pe;const fe=f(w)[K];for(;fe[te]&&te!==ee;)te=(te+se+pe)%pe;return te},L=(K,ee)=>{if(f(w)[K][ee])return;const{hours:te,minutes:fe,seconds:ve}=f(C);let ce;switch(K){case"hours":ce=n.spinnerDate.hour(ee).minute(fe).second(ve);break;case"minutes":ce=n.spinnerDate.hour(te).minute(ee).second(ve);break;case"seconds":ce=n.spinnerDate.hour(te).minute(fe).second(ee);break}r(Dt,ce)},N=(K,{value:ee,disabled:se})=>{se||(L(K,ee),T(K),$(K,ee))},V=K=>{const ee=f(g[K]);if(!ee)return;d=!0,x(K);const se=Math.min(Math.round((R(ee.$el).scrollTop-(z(K)*.5-10)/M(K)+3)/M(K)),K==="hours"?23:59);L(K,se)},z=K=>f(g[K]).$el.offsetHeight,q=()=>{const K=ee=>{const se=f(g[ee]);se&&se.$el&&(R(se.$el).onscroll=()=>{V(ee)})};K("hours"),K("minutes"),K("seconds")};Pt(()=>{ze(()=>{!n.arrowControl&&q(),O(),n.role==="start"&&T("hours")})});const Q=(K,ee)=>{g[ee].value=K??void 0};return r("set-option",[`${n.role}_scrollDown`,J]),r("set-option",[`${n.role}_emitSelectRange`,T]),be(()=>n.spinnerDate,()=>{d||O()}),(K,ee)=>(S(),P("div",{class:D([f(i).b("spinner"),{"has-seconds":K.showSeconds}])},[K.arrowControl?ie("v-if",!0):(S(!0),P(He,{key:0},Et(b.value,se=>(S(),le(f(pr),{key:se,ref_for:!0,ref:pe=>Q(pe,se),class:D(f(i).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":f(i).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:pe=>T(se),onMousemove:pe=>I(se)},{default:X(()=>[(S(!0),P(He,null,Et(w.value[se],(pe,te)=>(S(),P("li",{key:te,class:D([f(i).be("spinner","item"),f(i).is("active",te===C.value[se]),f(i).is("disabled",pe)]),onClick:fe=>N(se,{value:te,disabled:pe})},[se==="hours"?(S(),P(He,{key:0},[je(ge(("0"+(K.amPmMode?te%12||12:te)).slice(-2))+ge(k(te)),1)],64)):(S(),P(He,{key:1},[je(ge(("0"+te).slice(-2)),1)],64))],10,Rse))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),K.arrowControl?(S(!0),P(He,{key:1},Et(b.value,se=>(S(),P("div",{key:se,class:D([f(i).be("spinner","wrapper"),f(i).is("arrow")]),onMouseenter:pe=>T(se)},[Ct((S(),le(f(Je),{class:D(["arrow-up",f(i).be("spinner","arrow")])},{default:X(()=>[W(f(Sp))]),_:1},8,["class"])),[[f(Qg),U]]),Ct((S(),le(f(Je),{class:D(["arrow-down",f(i).be("spinner","arrow")])},{default:X(()=>[W(f(hr))]),_:1},8,["class"])),[[f(Qg),B]]),A("ul",{class:D(f(i).be("spinner","list"))},[(S(!0),P(He,null,Et(_.value[se],(pe,te)=>(S(),P("li",{key:te,class:D([f(i).be("spinner","item"),f(i).is("active",pe===C.value[se]),f(i).is("disabled",w.value[se][pe])])},[f(at)(pe)?(S(),P(He,{key:0},[se==="hours"?(S(),P(He,{key:0},[je(ge(("0"+(K.amPmMode?pe%12||12:pe)).slice(-2))+ge(k(pe)),1)],64)):(S(),P(He,{key:1},[je(ge(("0"+pe).slice(-2)),1)],64))],64)):ie("v-if",!0)],2))),128))],2)],42,Ise))),128)):ie("v-if",!0)],2))}}),e1=j({__name:"panel-time-pick",props:Ase,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=t,a=Ke(gr),{arrowControl:o,disabledHours:r,disabledMinutes:i,disabledSeconds:l,defaultValue:c}=a.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:h}=YE(r,i,l),p=Ee("time"),{t:v,lang:m}=Bt(),g=F([0,2]),b=XE(n),C=E(()=>Ht(n.actualVisible)?`${p.namespace.value}-zoom-in-top`:""),w=E(()=>n.format.includes("ss")),_=E(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),x=N=>{const V=wt(N).locale(m.value),z=J(V);return V.isSame(z)},k=()=>{const N=b.value;s("pick",N,!1),ze(()=>{b.value=N})},T=(N=!1,V=!1)=>{V||s("pick",n.parsedValue,N)},I=N=>{if(!n.visible)return;const V=J(N).millisecond(0);s("pick",V,!0)},O=(N,V)=>{s("select-range",N,V),g.value=[N,V]},R=N=>{const V=n.format,z=V.indexOf("HH"),q=V.indexOf("mm"),Q=V.indexOf("ss"),K=[],ee=[];z!==-1&&(K.push(z),ee.push("hours")),q!==-1&&(K.push(q),ee.push("minutes")),Q!==-1&&w.value&&(K.push(Q),ee.push("seconds"));const pe=(K.indexOf(g.value[0])+N+K.length)%K.length;M.start_emitSelectRange(ee[pe])},$=N=>{const V=un(N),{left:z,right:q,up:Q,down:K}=Te;if([z,q].includes(V)){R(V===z?-1:1),N.preventDefault();return}if([Q,K].includes(V)){const ee=V===Q?-1:1;M.start_scrollDown(ee),N.preventDefault();return}},{timePickerOptions:M,onSetOption:B,getAvailableTime:U}=qE({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:h}),J=N=>U(N,n.datetimeRole||"",!0),Y=N=>N?wt(N,n.format).locale(m.value):null,L=()=>wt(c).locale(m.value);return s("set-picker-option",["isValidValue",x]),s("set-picker-option",["parseUserInput",Y]),s("set-picker-option",["handleKeydownInput",$]),s("set-picker-option",["getRangeAvailableTime",J]),s("set-picker-option",["getDefaultValue",L]),(N,V)=>(S(),le(ws,{name:C.value},{default:X(()=>[N.actualVisible||N.visible?(S(),P("div",{key:0,class:D(f(p).b("panel"))},[A("div",{class:D([f(p).be("panel","content"),{"has-seconds":w.value}])},[W(U3,{ref:"spinner",role:N.datetimeRole||"start","arrow-control":f(o),"show-seconds":w.value,"am-pm-mode":_.value,"spinner-date":N.parsedValue,"disabled-hours":f(r),"disabled-minutes":f(i),"disabled-seconds":f(l),onChange:I,onSetOption:f(B),onSelectRange:O},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),A("div",{class:D(f(p).be("panel","footer"))},[A("button",{type:"button",class:D([f(p).be("panel","btn"),"cancel"]),onClick:k},ge(f(v)("el.datepicker.cancel")),3),A("button",{type:"button",class:D([f(p).be("panel","btn"),"confirm"]),onClick:V[0]||(V[0]=z=>T())},ge(f(v)("el.datepicker.confirm")),3)],2)],2)):ie("v-if",!0)]),_:1},8,["name"]))}});const Ose=Me({...KE,parsedValue:{type:re(Array)}}),Lse=["disabled"];var Nse=j({__name:"panel-time-range",props:Ose,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=t,a=(Z,H)=>{const ae=[];for(let de=Z;de<=H;de++)ae.push(de);return ae},{t:o,lang:r}=Bt(),i=Ee("time"),l=Ee("picker"),c=Ke(gr),{arrowControl:u,disabledHours:d,disabledMinutes:h,disabledSeconds:p,defaultValue:v}=c.props,m=E(()=>[i.be("range-picker","body"),i.be("panel","content"),i.is("arrow",u),x.value?"has-seconds":""]),g=E(()=>[i.be("range-picker","body"),i.be("panel","content"),i.is("arrow",u),x.value?"has-seconds":""]),b=E(()=>n.parsedValue[0]),C=E(()=>n.parsedValue[1]),w=XE(n),_=()=>{const Z=w.value;s("pick",Z,!1),ze(()=>{w.value=Z})},x=E(()=>n.format.includes("ss")),k=E(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=(Z=!1)=>{s("pick",[b.value,C.value],Z)},I=Z=>{$(Z.millisecond(0),C.value)},O=Z=>{$(b.value,Z.millisecond(0))},R=Z=>{const H=Z.map(de=>wt(de).locale(r.value)),ae=Q(H);return H[0].isSame(ae[0])&&H[1].isSame(ae[1])},$=(Z,H)=>{n.visible&&s("pick",[Z,H],!0)},M=E(()=>b.value>C.value),B=F([0,2]),U=(Z,H)=>{s("select-range",Z,H,"min"),B.value=[Z,H]},J=E(()=>x.value?11:8),Y=(Z,H)=>{s("select-range",Z,H,"max");const ae=f(J);B.value=[Z+ae,H+ae]},L=Z=>{const H=x.value?[0,3,6,11,14,17]:[0,3,8,11],ae=["hours","minutes"].concat(x.value?["seconds"]:[]),ye=(H.indexOf(B.value[0])+Z+H.length)%H.length,_e=H.length/2;ye<_e?pe.start_emitSelectRange(ae[ye]):pe.end_emitSelectRange(ae[ye-_e])},N=Z=>{const H=un(Z),{left:ae,right:de,up:ye,down:_e}=Te;if([ae,de].includes(H)){L(H===ae?-1:1),Z.preventDefault();return}if([ye,_e].includes(H)){const Se=H===ye?-1:1,Le=B.value[0]{const ae=d?d(Z):[],de=Z==="start",_e=(H||(de?C.value:b.value)).hour(),Se=de?a(_e+1,23):a(0,_e-1);return My(ae,Se)},z=(Z,H,ae)=>{const de=h?h(Z,H):[],ye=H==="start",_e=ae||(ye?C.value:b.value),Se=_e.hour();if(Z!==Se)return de;const Le=_e.minute(),De=ye?a(Le+1,59):a(0,Le-1);return My(de,De)},q=(Z,H,ae,de)=>{const ye=p?p(Z,H,ae):[],_e=ae==="start",Se=de||(_e?C.value:b.value),Le=Se.hour(),De=Se.minute();if(Z!==Le||H!==De)return ye;const $e=Se.second(),Ce=_e?a($e+1,59):a(0,$e-1);return My(ye,Ce)},Q=([Z,H])=>[te(Z,"start",!0,H),te(H,"end",!1,Z)],{getAvailableHours:K,getAvailableMinutes:ee,getAvailableSeconds:se}=YE(V,z,q),{timePickerOptions:pe,getAvailableTime:te,onSetOption:fe}=qE({getAvailableHours:K,getAvailableMinutes:ee,getAvailableSeconds:se}),ve=Z=>Z?Ae(Z)?Z.map(H=>wt(H,n.format).locale(r.value)):wt(Z,n.format).locale(r.value):null,ce=()=>{if(Ae(v))return v.map(H=>wt(H).locale(r.value));const Z=wt(v).locale(r.value);return[Z,Z.add(60,"m")]};return s("set-picker-option",["parseUserInput",ve]),s("set-picker-option",["isValidValue",R]),s("set-picker-option",["handleKeydownInput",N]),s("set-picker-option",["getDefaultValue",ce]),s("set-picker-option",["getRangeAvailableTime",Q]),(Z,H)=>Z.actualVisible?(S(),P("div",{key:0,class:D([f(i).b("range-picker"),f(l).b("panel")])},[A("div",{class:D(f(i).be("range-picker","content"))},[A("div",{class:D(f(i).be("range-picker","cell"))},[A("div",{class:D(f(i).be("range-picker","header"))},ge(f(o)("el.datepicker.startTime")),3),A("div",{class:D(m.value)},[W(U3,{ref:"minSpinner",role:"start","show-seconds":x.value,"am-pm-mode":k.value,"arrow-control":f(u),"spinner-date":b.value,"disabled-hours":V,"disabled-minutes":z,"disabled-seconds":q,onChange:I,onSetOption:f(fe),onSelectRange:U},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),A("div",{class:D(f(i).be("range-picker","cell"))},[A("div",{class:D(f(i).be("range-picker","header"))},ge(f(o)("el.datepicker.endTime")),3),A("div",{class:D(g.value)},[W(U3,{ref:"maxSpinner",role:"end","show-seconds":x.value,"am-pm-mode":k.value,"arrow-control":f(u),"spinner-date":C.value,"disabled-hours":V,"disabled-minutes":z,"disabled-seconds":q,onChange:O,onSetOption:f(fe),onSelectRange:Y},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),A("div",{class:D(f(i).be("panel","footer"))},[A("button",{type:"button",class:D([f(i).be("panel","btn"),"cancel"]),onClick:H[0]||(H[0]=ae=>_())},ge(f(o)("el.datepicker.cancel")),3),A("button",{type:"button",class:D([f(i).be("panel","btn"),"confirm"]),disabled:M.value,onClick:H[1]||(H[1]=ae=>T())},ge(f(o)("el.datepicker.confirm")),11,Lse)],2)],2)):ie("v-if",!0)}});wt.extend(z3);var $se=j({name:"ElTimePicker",install:null,props:{...j3,isRange:Boolean},emits:[mt],setup(e,t){const n=F(),[s,a]=e.isRange?["timerange",Nse]:["time",e1],o=r=>t.emit(mt,r);return Nt(H3,e.popperOptions),t.expose({focus:()=>{var r;(r=n.value)==null||r.focus()},blur:()=>{var r;(r=n.value)==null||r.blur()},handleOpen:()=>{var r;(r=n.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=n.value)==null||r.handleClose()}}),()=>{var r;const i=(r=e.format)!=null?r:Vf;return W(UE,Tt(e,{ref:n,type:s,format:i,"onUpdate:modelValue":o}),{default:l=>W(a,l,null)})}}});const Dse=yt($se);var JE={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){return function(n,s){var a=s.prototype,o=a.format;a.format=function(r){var i=this,l=this.$locale();if(!this.isValid())return o.bind(this)(r);var c=this.$utils(),u=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return l.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return l.ordinal(i.week(),"W");case"w":case"ww":return c.s(i.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(i.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(i.$H===0?24:i.$H),d==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return d}});return o.bind(this)(u)}}})})(JE);var Fse=JE.exports;const Bse=al(Fse);var ZE={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){var n="week",s="year";return function(a,o,r){var i=o.prototype;i.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=r(this).startOf(s).add(1,s).date(c),d=r(this).endOf(n);if(u.isBefore(d))return 1}var h=r(this).startOf(s).date(c).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?r(this).startOf("week").week():Math.ceil(p)},i.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(ZE);var Vse=ZE.exports;const zse=al(Vse);var QE={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){return function(n,s){s.prototype.weekYear=function(){var a=this.month(),o=this.week(),r=this.year();return o===1&&a===11?r+1:a===0&&o>=52?r-1:r}}})})(QE);var Hse=QE.exports;const Wse=al(Hse);var eA={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){return function(n,s,a){s.prototype.dayOfYear=function(o){var r=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return o==null?r:this.add(o-r,"day")}}})})(eA);var jse=eA.exports;const Kse=al(jse);var tA={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){return function(n,s){s.prototype.isSameOrAfter=function(a,o){return this.isSame(a,o)||this.isAfter(a,o)}}})})(tA);var Use=tA.exports;const qse=al(Use);var nA={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){return function(n,s){s.prototype.isSameOrBefore=function(a,o){return this.isSame(a,o)||this.isBefore(a,o)}}})})(nA);var Gse=nA.exports;const Yse=al(Gse),Xse=Me({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:re([Date,Array,String,Number]),default:""},defaultValue:{type:re([Date,Array])},defaultTime:{type:re([Date,Array])},isRange:Boolean,...W3,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:re(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),q3=Symbol("rootPickerContextKey"),Hp="ElIsDefaultFormat",Jse=["date","dates","year","years","month","months","week","range"],G3=Me({cellClassName:{type:re(Function)},disabledDate:{type:re(Function)},date:{type:re(Object),required:!0},minDate:{type:re(Object)},maxDate:{type:re(Object)},parsedValue:{type:re([Object,Array])},rangeState:{type:re(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),sA=Me({type:{type:re(String),required:!0,values:Oee},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),Y3=Me({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:re(Array)}}),X3=e=>({type:String,values:Jse,default:e}),Zse=Me({...sA,parsedValue:{type:re([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),Wp=e=>{if(!Ae(e))return!1;const[t,n]=e;return wt.isDayjs(t)&&wt.isDayjs(n)&&wt(t).isValid()&&wt(n).isValid()&&t.isSameOrBefore(n)},t1=(e,{lang:t,step:n=1,unit:s,unlinkPanels:a})=>{let o;if(Ae(e)){let[r,i]=e.map(l=>wt(l).locale(t));return a||(i=r.add(n,s)),[r,i]}else e?o=wt(e):o=wt();return o=o.locale(t),[o,o.add(n,s)]},Qse=(e,t,{columnIndexOffset:n,startDate:s,nextEndDate:a,now:o,unit:r,relativeDateGetter:i,setCellMetadata:l,setRowMetadata:c})=>{for(let u=0;u{const a=wt().locale(s).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second()),o=a.daysInMonth();return lc(o).map(r=>a.add(r,"day").toDate())},zf=(e,t,n,s,a)=>{const o=wt().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),r=n1(e,t,n,s).find(i=>!(a!=null&&a(i)));return r?wt(r).locale(s):o.locale(s)},s1=(e,t,n)=>{const s=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const a=e.month();if(!n1(e,s,a,t).every(n))return zf(e,s,a,t,n);for(let o=0;o<12;o++)if(!n1(e,s,o,t).every(n))return zf(e,s,o,t,n);return e},Hf=(e,t,n,s)=>{if(Ae(e))return e.map(a=>Hf(a,t,n,s));if(Xe(e)){const a=s!=null&&s.value?wt(e):wt(e,t);if(!a.isValid())return a}return wt(e,t).locale(n)},eae=Me({...G3,showWeekNumber:Boolean,selectionMode:X3("date")}),tae=["changerange","pick","select"],a1=(e="")=>["normal","today"].includes(e),nae=(e,t)=>{const{lang:n}=Bt(),s=F(),a=F(),o=F(),r=F(),i=F([[],[],[],[],[],[]]);let l=!1;const c=e.date.$locale().weekStart||7,u=e.date.locale("en").localeData().weekdaysShort().map(V=>V.toLowerCase()),d=E(()=>c>3?7-c:-c),h=E(()=>{const V=e.date.startOf("month");return V.subtract(V.day()||7,"day")}),p=E(()=>u.concat(u).slice(c,c+7)),v=E(()=>hg(f(_)).some(V=>V.isCurrent)),m=E(()=>{const V=e.date.startOf("month"),z=V.day()||7,q=V.daysInMonth(),Q=V.subtract(1,"month").daysInMonth();return{startOfMonthDay:z,dateCountOfMonth:q,dateCountOfLastMonth:Q}}),g=E(()=>e.selectionMode==="dates"?da(e.parsedValue):[]),b=(V,{count:z,rowIndex:q,columnIndex:Q})=>{const{startOfMonthDay:K,dateCountOfMonth:ee,dateCountOfLastMonth:se}=f(m),pe=f(d);if(q>=0&&q<=1){const te=K+pe<0?7+K+pe:K+pe;if(Q+q*7>=te)return V.text=z,!0;V.text=se-(te-Q%7)+1+q*7,V.type="prev-month"}else return z<=ee?V.text=z:(V.text=z-ee,V.type="next-month"),!0;return!1},C=(V,{columnIndex:z,rowIndex:q},Q)=>{const{disabledDate:K,cellClassName:ee}=e,se=f(g),pe=b(V,{count:Q,rowIndex:q,columnIndex:z}),te=V.dayjs.toDate();return V.selected=se.find(fe=>fe.isSame(V.dayjs,"day")),V.isSelected=!!V.selected,V.isCurrent=k(V),V.disabled=K==null?void 0:K(te),V.customClass=ee==null?void 0:ee(te),pe},w=V=>{if(e.selectionMode==="week"){const[z,q]=e.showWeekNumber?[1,7]:[0,6],Q=N(V[z+1]);V[z].inRange=Q,V[z].start=Q,V[q].inRange=Q,V[q].end=Q}},_=E(()=>{const{minDate:V,maxDate:z,rangeState:q,showWeekNumber:Q}=e,K=f(d),ee=f(i),se="day";let pe=1;if(Qse({row:6,column:7},ee,{startDate:V,columnIndexOffset:Q?1:0,nextEndDate:q.endDate||z||q.selecting&&V||null,now:wt().locale(f(n)).startOf(se),unit:se,relativeDateGetter:te=>f(h).add(te-K,se),setCellMetadata:(...te)=>{C(...te,pe)&&(pe+=1)},setRowMetadata:w}),Q)for(let te=0;te<6;te++)ee[te][1].dayjs&&(ee[te][0]={type:"week",text:ee[te][1].dayjs.week()});return ee});be(()=>e.date,async()=>{var V;(V=f(s))!=null&&V.contains(document.activeElement)&&(await ze(),await x())});const x=async()=>{var V;return(V=f(a))==null?void 0:V.focus()},k=V=>e.selectionMode==="date"&&a1(V.type)&&T(V,e.parsedValue),T=(V,z)=>z?wt(z).locale(f(n)).isSame(e.date.date(Number(V.text)),"day"):!1,I=(V,z)=>{const q=f(m).startOfMonthDay,Q=f(d),K=q+Q<0?7+q+Q:q+Q,ee=V*7+(z-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(K,"day").add(ee,"day")},O=V=>{var z;if(!e.rangeState.selecting)return;let q=V.target;if(q.tagName==="SPAN"&&(q=(z=q.parentNode)==null?void 0:z.parentNode),q.tagName==="DIV"&&(q=q.parentNode),q.tagName!=="TD")return;const Q=q.parentNode.rowIndex-1,K=q.cellIndex;f(_)[Q][K].disabled||(Q!==f(o)||K!==f(r))&&(o.value=Q,r.value=K,t("changerange",{selecting:!0,endDate:I(Q,K)}))},R=V=>!f(v)&&(V==null?void 0:V.text)===1&&a1(V.type)||V.isCurrent,$=V=>{l||f(v)||e.selectionMode!=="date"||L(V,!0)},M=V=>{V.target.closest("td")&&(l=!0)},B=V=>{V.target.closest("td")&&(l=!1)},U=V=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:V,maxDate:null}),t("select",!0)):(V>=e.minDate?t("pick",{minDate:e.minDate,maxDate:V}):t("pick",{minDate:V,maxDate:e.minDate}),t("select",!1))},J=V=>{const z=V.week(),q=`${V.year()}w${z}`;t("pick",{year:V.year(),week:z,value:q,date:V.startOf("week")})},Y=(V,z)=>{const q=z?da(e.parsedValue).filter(Q=>(Q==null?void 0:Q.valueOf())!==V.valueOf()):da(e.parsedValue).concat([V]);t("pick",q)},L=(V,z=!1)=>{if(e.disabled)return;const q=V.target.closest("td");if(!q)return;const Q=q.parentNode.rowIndex-1,K=q.cellIndex,ee=f(_)[Q][K];if(ee.disabled||ee.type==="week")return;const se=I(Q,K);switch(e.selectionMode){case"range":{U(se);break}case"date":{t("pick",se,z);break}case"week":{J(se);break}case"dates":{Y(se,!!ee.selected);break}}},N=V=>{if(e.selectionMode!=="week")return!1;let z=e.date.startOf("day");if(V.type==="prev-month"&&(z=z.subtract(1,"month")),V.type==="next-month"&&(z=z.add(1,"month")),z=z.date(Number.parseInt(V.text,10)),e.parsedValue&&!Ae(e.parsedValue)){const q=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(q,"day").isSame(z,"day")}return!1};return{WEEKS:p,rows:_,tbodyRef:s,currentCellRef:a,focus:x,isCurrent:k,isWeekActive:N,isSelectedCell:R,handlePickDate:L,handleMouseUp:B,handleMouseDown:M,handleMouseMove:O,handleFocus:$}},sae=(e,{isCurrent:t,isWeekActive:n})=>{const s=Ee("date-table"),{t:a}=Bt(),o=E(()=>[s.b(),s.is("week-mode",e.selectionMode==="week"&&!e.disabled)]),r=E(()=>a("el.datepicker.dateTablePrompt")),i=c=>{const u=[];return a1(c.type)&&!c.disabled?(u.push("available"),c.type==="today"&&u.push("today")):u.push(c.type),t(c)&&u.push("current"),c.inRange&&(a1(c.type)||e.selectionMode==="week")&&(u.push("in-range"),c.start&&u.push("start-date"),c.end&&u.push("end-date")),(c.disabled||e.disabled)&&u.push("disabled"),c.selected&&u.push("selected"),c.customClass&&u.push(c.customClass),u.join(" ")},l=c=>[s.e("row"),{current:n(c)}];return{tableKls:o,tableLabel:r,weekHeaderClass:s.e("week-header"),getCellClasses:i,getRowKls:l,t:a}},aae=Me({cell:{type:re(Object)}});var J3=j({name:"ElDatePickerCell",props:aae,setup(e){const t=Ee("date-table-cell"),{slots:n}=Ke(q3);return()=>{const{cell:s}=e;return ue(n,"default",{...s},()=>{var a;return[W("div",{class:t.b()},[W("span",{class:t.e("text")},[(a=s==null?void 0:s.renderText)!=null?a:s==null?void 0:s.text])])]})}}});const oae=["aria-label"],rae=["aria-label"],iae=["aria-current","aria-selected","tabindex","aria-disabled"];var Z3=j({__name:"basic-date-table",props:eae,emits:tae,setup(e,{expose:t,emit:n}){const s=e,a=n,{WEEKS:o,rows:r,tbodyRef:i,currentCellRef:l,focus:c,isCurrent:u,isWeekActive:d,isSelectedCell:h,handlePickDate:p,handleMouseUp:v,handleMouseDown:m,handleMouseMove:g,handleFocus:b}=nae(s,a),{tableLabel:C,tableKls:w,getCellClasses:_,getRowKls:x,weekHeaderClass:k,t:T}=sae(s,{isCurrent:u,isWeekActive:d});let I=!1;return tn(()=>{I=!0}),t({focus:c}),(O,R)=>(S(),P("table",{"aria-label":f(C),class:D(f(w)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:R[1]||(R[1]=(...$)=>f(p)&&f(p)(...$)),onMousemove:R[2]||(R[2]=(...$)=>f(g)&&f(g)(...$)),onMousedown:R[3]||(R[3]=(...$)=>f(m)&&f(m)(...$)),onMouseup:R[4]||(R[4]=(...$)=>f(v)&&f(v)(...$))},[A("tbody",{ref_key:"tbodyRef",ref:i},[A("tr",null,[O.showWeekNumber?(S(),P("th",{key:0,scope:"col",class:D(f(k))},null,2)):ie("v-if",!0),(S(!0),P(He,null,Et(f(o),($,M)=>(S(),P("th",{key:M,"aria-label":f(T)("el.datepicker.weeksFull."+$),scope:"col"},ge(f(T)("el.datepicker.weeks."+$)),9,rae))),128))]),(S(!0),P(He,null,Et(f(r),($,M)=>(S(),P("tr",{key:M,class:D(f(x)(O.showWeekNumber?$[2]:$[1]))},[(S(!0),P(He,null,Et($,(B,U)=>(S(),P("td",{key:`${M}.${U}`,ref_for:!0,ref:J=>!f(I)&&f(h)(B)&&(l.value=J),class:D(f(_)(B)),"aria-current":B.isCurrent?"date":void 0,"aria-selected":B.isCurrent,tabindex:O.disabled?void 0:f(h)(B)?0:-1,"aria-disabled":O.disabled,onFocus:R[0]||(R[0]=(...J)=>f(b)&&f(b)(...J))},[W(f(J3),{cell:B},null,8,["cell"])],42,iae))),128))],2))),128))],512)],42,oae))}});const lae=Me({...G3,selectionMode:X3("month")}),cae=["aria-label"],uae=["aria-selected","aria-label","tabindex","onKeydown"];var jp=j({__name:"basic-month-table",props:lae,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("month-table"),{t:r,lang:i}=Bt(),l=F(),c=F(),u=F(s.date.locale("en").localeData().monthsShort().map(_=>_.toLowerCase())),d=F([[],[],[]]),h=F(),p=F(),v=E(()=>{var _,x,k;const T=d.value,I=wt().locale(i.value).startOf("month");for(let O=0;O<3;O++){const R=T[O];for(let $=0;$<4;$++){const M=R[$]||(R[$]={row:O,column:$,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});M.type="normal";const B=O*4+$,U=s.date.startOf("year").month(B),J=s.rangeState.endDate||s.maxDate||s.rangeState.selecting&&s.minDate||null;M.inRange=!!(s.minDate&&U.isSameOrAfter(s.minDate,"month")&&J&&U.isSameOrBefore(J,"month"))||!!(s.minDate&&U.isSameOrBefore(s.minDate,"month")&&J&&U.isSameOrAfter(J,"month")),(_=s.minDate)!=null&&_.isSameOrAfter(J)?(M.start=!!(J&&U.isSame(J,"month")),M.end=s.minDate&&U.isSame(s.minDate,"month")):(M.start=!!(s.minDate&&U.isSame(s.minDate,"month")),M.end=!!(J&&U.isSame(J,"month"))),I.isSame(U)&&(M.type="today");const L=U.toDate();M.text=B,M.disabled=((x=s.disabledDate)==null?void 0:x.call(s,L))||!1,M.date=L,M.customClass=(k=s.cellClassName)==null?void 0:k.call(s,L),M.dayjs=U,M.timestamp=U.valueOf(),M.isSelected=b(M)}}return T}),m=()=>{var _;(_=c.value)==null||_.focus()},g=_=>{const x={},k=s.date.year(),T=new Date,I=_.text;return x.disabled=s.disabled||(s.disabledDate?n1(s.date,k,I,i.value).every(s.disabledDate):!1),x.current=da(s.parsedValue).some(O=>wt.isDayjs(O)&&O.year()===k&&O.month()===I),x.today=T.getFullYear()===k&&T.getMonth()===I,_.customClass&&(x[_.customClass]=!0),_.inRange&&(x["in-range"]=!0,_.start&&(x["start-date"]=!0),_.end&&(x["end-date"]=!0)),x},b=_=>{const x=s.date.year(),k=_.text;return da(s.date).some(T=>T.year()===x&&T.month()===k)},C=_=>{var x;if(!s.rangeState.selecting)return;let k=_.target;if(k.tagName==="SPAN"&&(k=(x=k.parentNode)==null?void 0:x.parentNode),k.tagName==="DIV"&&(k=k.parentNode),k.tagName!=="TD")return;const T=k.parentNode.rowIndex,I=k.cellIndex;v.value[T][I].disabled||(T!==h.value||I!==p.value)&&(h.value=T,p.value=I,a("changerange",{selecting:!0,endDate:s.date.startOf("year").month(T*4+I)}))},w=_=>{var x;if(s.disabled)return;const k=(x=_.target)==null?void 0:x.closest("td");if((k==null?void 0:k.tagName)!=="TD"||Qr(k,"disabled"))return;const T=k.cellIndex,O=k.parentNode.rowIndex*4+T,R=s.date.startOf("year").month(O);if(s.selectionMode==="months"){if(_.type==="keydown"){a("pick",da(s.parsedValue),!1);return}const $=zf(s.date,s.date.year(),O,i.value,s.disabledDate),M=Qr(k,"current")?da(s.parsedValue).filter(B=>(B==null?void 0:B.year())!==$.year()||(B==null?void 0:B.month())!==$.month()):da(s.parsedValue).concat([wt($)]);a("pick",M)}else s.selectionMode==="range"?s.rangeState.selecting?(s.minDate&&R>=s.minDate?a("pick",{minDate:s.minDate,maxDate:R}):a("pick",{minDate:R,maxDate:s.minDate}),a("select",!1)):(a("pick",{minDate:R,maxDate:null}),a("select",!0)):a("pick",O)};return be(()=>s.date,async()=>{var _,x;(_=l.value)!=null&&_.contains(document.activeElement)&&(await ze(),(x=c.value)==null||x.focus())}),t({focus:m}),(_,x)=>(S(),P("table",{role:"grid","aria-label":f(r)("el.datepicker.monthTablePrompt"),class:D(f(o).b()),onClick:w,onMousemove:C},[A("tbody",{ref_key:"tbodyRef",ref:l},[(S(!0),P(He,null,Et(v.value,(k,T)=>(S(),P("tr",{key:T},[(S(!0),P(He,null,Et(k,(I,O)=>(S(),P("td",{key:O,ref_for:!0,ref:R=>I.isSelected&&(c.value=R),class:D(g(I)),"aria-selected":!!I.isSelected,"aria-label":f(r)(`el.datepicker.month${+I.text+1}`),tabindex:I.isSelected?0:-1,onKeydown:[Fn(ht(w,["prevent","stop"]),["space"]),Fn(ht(w,["prevent","stop"]),["enter"])]},[W(f(J3),{cell:{...I,renderText:f(r)("el.datepicker.months."+u.value[I.text])}},null,8,["cell"])],42,uae))),128))]))),128))],512)],42,cae))}});const dae=Me({...G3,selectionMode:X3("year")}),fae=["aria-label"],hae=["aria-selected","aria-label","tabindex","onKeydown"];var Kp=j({__name:"basic-year-table",props:dae,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=(x,k)=>{const T=wt(String(x)).locale(k).startOf("year"),O=T.endOf("year").dayOfYear();return lc(O).map(R=>T.add(R,"day").toDate())},a=e,o=n,r=Ee("year-table"),{t:i,lang:l}=Bt(),c=F(),u=F(),d=E(()=>Math.floor(a.date.year()/10)*10),h=F([[],[],[]]),p=F(),v=F(),m=E(()=>{var x,k,T;const I=h.value,O=wt().locale(l.value).startOf("year");for(let R=0;R<3;R++){const $=I[R];for(let M=0;M<4&&!(R*4+M>=10);M++){let B=$[M];B||(B={row:R,column:M,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),B.type="normal";const U=R*4+M+d.value,J=wt().year(U),Y=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;B.inRange=!!(a.minDate&&J.isSameOrAfter(a.minDate,"year")&&Y&&J.isSameOrBefore(Y,"year"))||!!(a.minDate&&J.isSameOrBefore(a.minDate,"year")&&Y&&J.isSameOrAfter(Y,"year")),(x=a.minDate)!=null&&x.isSameOrAfter(Y)?(B.start=!!(Y&&J.isSame(Y,"year")),B.end=!!(a.minDate&&J.isSame(a.minDate,"year"))):(B.start=!!(a.minDate&&J.isSame(a.minDate,"year")),B.end=!!(Y&&J.isSame(Y,"year"))),O.isSame(J)&&(B.type="today"),B.text=U;const N=J.toDate();B.disabled=((k=a.disabledDate)==null?void 0:k.call(a,N))||!1,B.date=N,B.customClass=(T=a.cellClassName)==null?void 0:T.call(a,N),B.dayjs=J,B.timestamp=J.valueOf(),B.isSelected=C(B),$[M]=B}}return I}),g=()=>{var x;(x=u.value)==null||x.focus()},b=x=>{const k={},T=wt().locale(l.value),I=x.text;return k.disabled=a.disabled||(a.disabledDate?s(I,l.value).every(a.disabledDate):!1),k.today=T.year()===I,k.current=da(a.parsedValue).some(O=>O.year()===I),x.customClass&&(k[x.customClass]=!0),x.inRange&&(k["in-range"]=!0,x.start&&(k["start-date"]=!0),x.end&&(k["end-date"]=!0)),k},C=x=>{const k=x.text;return da(a.date).some(T=>T.year()===k)},w=x=>{var k;if(a.disabled)return;const T=(k=x.target)==null?void 0:k.closest("td");if(!T||!T.textContent||Qr(T,"disabled"))return;const I=T.cellIndex,R=T.parentNode.rowIndex*4+I+d.value,$=wt().year(R);if(a.selectionMode==="range")a.rangeState.selecting?(a.minDate&&$>=a.minDate?o("pick",{minDate:a.minDate,maxDate:$}):o("pick",{minDate:$,maxDate:a.minDate}),o("select",!1)):(o("pick",{minDate:$,maxDate:null}),o("select",!0));else if(a.selectionMode==="years"){if(x.type==="keydown"){o("pick",da(a.parsedValue),!1);return}const M=s1($.startOf("year"),l.value,a.disabledDate),B=Qr(T,"current")?da(a.parsedValue).filter(U=>(U==null?void 0:U.year())!==R):da(a.parsedValue).concat([M]);o("pick",B)}else o("pick",R)},_=x=>{var k;if(!a.rangeState.selecting)return;const T=(k=x.target)==null?void 0:k.closest("td");if(!T)return;const I=T.parentNode.rowIndex,O=T.cellIndex;m.value[I][O].disabled||(I!==p.value||O!==v.value)&&(p.value=I,v.value=O,o("changerange",{selecting:!0,endDate:wt().year(d.value).add(I*4+O,"year")}))};return be(()=>a.date,async()=>{var x,k;(x=c.value)!=null&&x.contains(document.activeElement)&&(await ze(),(k=u.value)==null||k.focus())}),t({focus:g}),(x,k)=>(S(),P("table",{role:"grid","aria-label":f(i)("el.datepicker.yearTablePrompt"),class:D(f(r).b()),onClick:w,onMousemove:_},[A("tbody",{ref_key:"tbodyRef",ref:c},[(S(!0),P(He,null,Et(m.value,(T,I)=>(S(),P("tr",{key:I},[(S(!0),P(He,null,Et(T,(O,R)=>(S(),P("td",{key:`${I}_${R}`,ref_for:!0,ref:$=>O.isSelected&&(u.value=$),class:D(["available",b(O)]),"aria-selected":O.isSelected,"aria-label":String(O.text),tabindex:O.isSelected?0:-1,onKeydown:[Fn(ht(w,["prevent","stop"]),["space"]),Fn(ht(w,["prevent","stop"]),["enter"])]},[W(f(J3),{cell:O},null,8,["cell"])],42,hae))),128))]))),128))],512)],42,fae))}});const pae=["disabled","onClick"],vae=["aria-label","disabled"],mae=["aria-label","disabled"],gae=["tabindex","aria-disabled"],bae=["tabindex","aria-disabled"],yae=["aria-label","disabled"],wae=["aria-label","disabled"];var _ae=j({__name:"panel-date-pick",props:Zse,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(xe,Ue,we)=>!0,s=e,a=t,o=Ee("picker-panel"),r=Ee("date-picker"),i=zi(),l=jn(),{t:c,lang:u}=Bt(),d=Ke(gr),h=Ke(Hp,void 0),{shortcuts:p,disabledDate:v,cellClassName:m,defaultTime:g}=d.props,b=sn(d.props,"defaultValue"),C=F(),w=F(wt().locale(u.value)),_=F(!1);let x=!1;const k=E(()=>wt(g).locale(u.value)),T=E(()=>w.value.month()),I=E(()=>w.value.year()),O=F([]),R=F(null),$=F(null),M=xe=>O.value.length>0?n(xe,O.value,s.format||"HH:mm:ss"):!0,B=xe=>g&&!Le.value&&!_.value&&!x?k.value.year(xe.year()).month(xe.month()).date(xe.date()):ve.value?xe.millisecond(0):xe.startOf("day"),U=(xe,...Ue)=>{if(!xe)a("pick",xe,...Ue);else if(Ae(xe)){const we=xe.map(B);a("pick",we,...Ue)}else a("pick",B(xe),...Ue);R.value=null,$.value=null,_.value=!1,x=!1},J=async(xe,Ue)=>{if(q.value==="date"&&wt.isDayjs(xe)){const we=Fp(s.parsedValue);let Ye=we?we.year(xe.year()).month(xe.month()).date(xe.date()):xe;M(Ye),w.value=Ye,U(Ye,ve.value||Ue)}else q.value==="week"?U(xe.date):q.value==="dates"&&U(xe,!0)},Y=xe=>{const Ue=xe?"add":"subtract";w.value=w.value[Ue](1,"month"),Ot("month")},L=xe=>{const Ue=w.value,we=xe?"add":"subtract";w.value=N.value==="year"?Ue[we](10,"year"):Ue[we](1,"year"),Ot("year")},N=F("date"),V=E(()=>{const xe=c("el.datepicker.year");if(N.value==="year"){const Ue=Math.floor(I.value/10)*10;return xe?`${Ue} ${xe} - ${Ue+9} ${xe}`:`${Ue} - ${Ue+9}`}return`${I.value} ${xe}`}),z=xe=>{const Ue=Ze(xe.value)?xe.value():xe.value;if(Ue){x=!0,U(wt(Ue).locale(u.value));return}xe.onClick&&xe.onClick({attrs:i,slots:l,emit:a})},q=E(()=>{const{type:xe}=s;return["week","month","months","year","years","dates"].includes(xe)?xe:"date"}),Q=E(()=>q.value==="dates"||q.value==="months"||q.value==="years"),K=E(()=>q.value==="date"?N.value:q.value),ee=E(()=>!!p.length),se=async(xe,Ue)=>{q.value==="month"?(w.value=zf(w.value,w.value.year(),xe,u.value,v),U(w.value,!1)):q.value==="months"?U(xe,Ue??!0):(w.value=zf(w.value,w.value.year(),xe,u.value,v),N.value="date",["month","year","date","week"].includes(q.value)&&(U(w.value,!0),await ze(),Wt())),Ot("month")},pe=async(xe,Ue)=>{if(q.value==="year"){const we=w.value.startOf("year").year(xe);w.value=s1(we,u.value,v),U(w.value,!1)}else if(q.value==="years")U(xe,Ue??!0);else{const we=w.value.year(xe);w.value=s1(we,u.value,v),N.value="month",["month","year","date","week"].includes(q.value)&&(U(w.value,!0),await ze(),Wt())}Ot("year")},te=Nn(),fe=async xe=>{te.value||(N.value=xe,await ze(),Wt())},ve=E(()=>s.type==="datetime"||s.type==="datetimerange"),ce=E(()=>{const xe=ve.value||q.value==="dates",Ue=q.value==="years",we=q.value==="months",Ye=N.value==="date",At=N.value==="year",Jt=N.value==="month";return xe&&Ye||Ue&&At||we&&Jt}),Z=E(()=>!Q.value&&s.showNow||s.showConfirm),H=E(()=>v?s.parsedValue?Ae(s.parsedValue)?v(s.parsedValue[0].toDate()):v(s.parsedValue.toDate()):!0:!1),ae=()=>{if(Q.value)U(s.parsedValue);else{let xe=Fp(s.parsedValue);if(!xe){const Ue=wt(g).locale(u.value),we=et();xe=Ue.year(we.year()).month(we.month()).date(we.date())}w.value=xe,U(xe)}},de=E(()=>v?v(wt().locale(u.value).toDate()):!1),ye=()=>{const Ue=wt().locale(u.value).toDate();_.value=!0,(!v||!v(Ue))&&M(Ue)&&(w.value=wt().locale(u.value),U(w.value))},_e=E(()=>s.timeFormat||Bk(s.format)||Vf),Se=E(()=>s.dateFormat||Fk(s.format)||hc),Le=E(()=>$.value?$.value:!s.parsedValue&&!b.value?void 0:(Fp(s.parsedValue)||w.value).format(_e.value)),De=E(()=>R.value?R.value:!s.parsedValue&&!b.value?void 0:(Fp(s.parsedValue)||w.value).format(Se.value)),$e=F(!1),Ce=()=>{$e.value=!0},Oe=()=>{$e.value=!1},Ie=xe=>({hour:xe.hour(),minute:xe.minute(),second:xe.second(),year:xe.year(),month:xe.month(),date:xe.date()}),We=(xe,Ue,we)=>{const{hour:Ye,minute:At,second:Jt}=Ie(xe),Cn=Fp(s.parsedValue),xn=Cn?Cn.hour(Ye).minute(At).second(Jt):xe;w.value=xn,U(w.value,!0),we||($e.value=Ue)},nt=xe=>{const Ue=wt(xe,_e.value).locale(u.value);if(Ue.isValid()&&M(Ue)){const{year:we,month:Ye,date:At}=Ie(w.value);w.value=Ue.year(we).month(Ye).date(At),$.value=null,$e.value=!1,U(w.value,!0)}},dt=xe=>{const Ue=Hf(xe,Se.value,u.value,h);if(Ue.isValid()){if(v&&v(Ue.toDate()))return;const{hour:we,minute:Ye,second:At}=Ie(w.value);w.value=Ue.hour(we).minute(Ye).second(At),R.value=null,U(w.value,!0)}},Fe=xe=>wt.isDayjs(xe)&&xe.isValid()&&(v?!v(xe.toDate()):!0),Be=xe=>Hf(xe,s.format,u.value,h),et=()=>{const xe=wt(b.value).locale(u.value);if(!b.value){const Ue=k.value;return wt().hour(Ue.hour()).minute(Ue.minute()).second(Ue.second()).locale(u.value)}return xe},Wt=()=>{var xe;["week","month","year","date"].includes(q.value)&&((xe=C.value)==null||xe.focus())},qt=()=>{Wt(),q.value==="week"&>(Te.down)},ct=xe=>{const Ue=un(xe);[Te.up,Te.down,Te.left,Te.right,Te.home,Te.end,Te.pageUp,Te.pageDown].includes(Ue)&&(gt(Ue),xe.stopPropagation(),xe.preventDefault()),[Te.enter,Te.space,Te.numpadEnter].includes(Ue)&&R.value===null&&$.value===null&&(xe.preventDefault(),U(w.value,!1))},gt=xe=>{var Ue;const{up:we,down:Ye,left:At,right:Jt,home:Cn,end:xn,pageUp:Ve,pageDown:st}=Te,_t={year:{[we]:-4,[Ye]:4,[At]:-1,[Jt]:1,offset:(Zt,rt)=>Zt.setFullYear(Zt.getFullYear()+rt)},month:{[we]:-4,[Ye]:4,[At]:-1,[Jt]:1,offset:(Zt,rt)=>Zt.setMonth(Zt.getMonth()+rt)},week:{[we]:-1,[Ye]:1,[At]:-1,[Jt]:1,offset:(Zt,rt)=>Zt.setDate(Zt.getDate()+rt*7)},date:{[we]:-7,[Ye]:7,[At]:-1,[Jt]:1,[Cn]:Zt=>-Zt.getDay(),[xn]:Zt=>-Zt.getDay()+6,[Ve]:Zt=>-new Date(Zt.getFullYear(),Zt.getMonth(),0).getDate(),[st]:Zt=>new Date(Zt.getFullYear(),Zt.getMonth()+1,0).getDate(),offset:(Zt,rt)=>Zt.setDate(Zt.getDate()+rt)}},kn=w.value.toDate();for(;Math.abs(w.value.diff(kn,"year",!0))<1;){const Zt=_t[K.value];if(!Zt)return;if(Zt.offset(kn,Ze(Zt[xe])?Zt[xe](kn):(Ue=Zt[xe])!=null?Ue:0),v&&v(kn))break;const rt=wt(kn).locale(u.value);w.value=rt,a("pick",rt,!0);break}},Ot=xe=>{a("panel-change",w.value.toDate(),xe,N.value)};return be(()=>q.value,xe=>{if(["month","year"].includes(xe)){N.value=xe;return}else if(xe==="years"){N.value="year";return}else if(xe==="months"){N.value="month";return}N.value="date"},{immediate:!0}),be(()=>b.value,xe=>{xe&&(w.value=et())},{immediate:!0}),be(()=>s.parsedValue,xe=>{if(xe){if(Q.value||Ae(xe))return;w.value=xe}else w.value=et()},{immediate:!0}),a("set-picker-option",["isValidValue",Fe]),a("set-picker-option",["parseUserInput",Be]),a("set-picker-option",["handleFocusPicker",qt]),(xe,Ue)=>(S(),P("div",{class:D([f(o).b(),f(r).b(),f(o).is("border",xe.border),f(o).is("disabled",f(te)),{"has-sidebar":xe.$slots.sidebar||ee.value,"has-time":ve.value}])},[A("div",{class:D(f(o).e("body-wrapper"))},[ue(xe.$slots,"sidebar",{class:D(f(o).e("sidebar"))}),ee.value?(S(),P("div",{key:0,class:D(f(o).e("sidebar"))},[(S(!0),P(He,null,Et(f(p),(we,Ye)=>(S(),P("button",{key:Ye,type:"button",disabled:f(te),class:D(f(o).e("shortcut")),onClick:At=>z(we)},ge(we.text),11,pae))),128))],2)):ie("v-if",!0),A("div",{class:D(f(o).e("body"))},[ve.value?(S(),P("div",{key:0,class:D(f(r).e("time-header"))},[A("span",{class:D(f(r).e("editor-wrap"))},[W(f(ua),{placeholder:f(c)("el.datepicker.selectDate"),"model-value":De.value,size:"small","validate-event":!1,disabled:f(te),readonly:!xe.editable,onInput:Ue[0]||(Ue[0]=we=>R.value=we),onChange:dt},null,8,["placeholder","model-value","disabled","readonly"])],2),Ct((S(),P("span",{class:D(f(r).e("editor-wrap"))},[W(f(ua),{placeholder:f(c)("el.datepicker.selectTime"),"model-value":Le.value,size:"small","validate-event":!1,disabled:f(te),readonly:!xe.editable,onFocus:Ce,onInput:Ue[1]||(Ue[1]=we=>$.value=we),onChange:nt},null,8,["placeholder","model-value","disabled","readonly"]),W(f(e1),{visible:$e.value,format:_e.value,"parsed-value":w.value,onPick:We},null,8,["visible","format","parsed-value"])],2)),[[f(dc),Oe]])],2)):ie("v-if",!0),Ct(A("div",{class:D([f(r).e("header"),(N.value==="year"||N.value==="month")&&f(r).em("header","bordered")])},[A("span",{class:D(f(r).e("prev-btn"))},[A("button",{type:"button","aria-label":f(c)("el.datepicker.prevYear"),class:D(["d-arrow-left",f(o).e("icon-btn")]),disabled:f(te),onClick:Ue[2]||(Ue[2]=we=>L(!1))},[ue(xe.$slots,"prev-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Ji))]),_:1})])],10,vae),Ct(A("button",{type:"button","aria-label":f(c)("el.datepicker.prevMonth"),class:D([f(o).e("icon-btn"),"arrow-left"]),disabled:f(te),onClick:Ue[3]||(Ue[3]=we=>Y(!1))},[ue(xe.$slots,"prev-month",{},()=>[W(f(Je),null,{default:X(()=>[W(f($o))]),_:1})])],10,mae),[[jt,N.value==="date"]])],2),A("span",{role:"button",class:D(f(r).e("header-label")),"aria-live":"polite",tabindex:xe.disabled?void 0:0,"aria-disabled":xe.disabled,onKeydown:Ue[4]||(Ue[4]=Fn(we=>fe("year"),["enter"])),onClick:Ue[5]||(Ue[5]=we=>fe("year"))},ge(V.value),43,gae),Ct(A("span",{role:"button","aria-live":"polite",tabindex:xe.disabled?void 0:0,"aria-disabled":xe.disabled,class:D([f(r).e("header-label"),{active:N.value==="month"}]),onKeydown:Ue[6]||(Ue[6]=Fn(we=>fe("month"),["enter"])),onClick:Ue[7]||(Ue[7]=we=>fe("month"))},ge(f(c)(`el.datepicker.month${T.value+1}`)),43,bae),[[jt,N.value==="date"]]),A("span",{class:D(f(r).e("next-btn"))},[Ct(A("button",{type:"button","aria-label":f(c)("el.datepicker.nextMonth"),class:D([f(o).e("icon-btn"),"arrow-right"]),disabled:f(te),onClick:Ue[8]||(Ue[8]=we=>Y(!0))},[ue(xe.$slots,"next-month",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Ds))]),_:1})])],10,yae),[[jt,N.value==="date"]]),A("button",{type:"button","aria-label":f(c)("el.datepicker.nextYear"),class:D([f(o).e("icon-btn"),"d-arrow-right"]),disabled:f(te),onClick:Ue[9]||(Ue[9]=we=>L(!0))},[ue(xe.$slots,"next-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Zi))]),_:1})])],10,wae)],2)],2),[[jt,N.value!=="time"]]),A("div",{class:D(f(o).e("content")),onKeydown:ct},[N.value==="date"?(S(),le(Z3,{key:0,ref_key:"currentViewRef",ref:C,"selection-mode":q.value,date:w.value,"parsed-value":xe.parsedValue,"disabled-date":f(v),disabled:f(te),"cell-class-name":f(m),"show-week-number":xe.showWeekNumber,onPick:J},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):ie("v-if",!0),N.value==="year"?(S(),le(Kp,{key:1,ref_key:"currentViewRef",ref:C,"selection-mode":q.value,date:w.value,"disabled-date":f(v),disabled:f(te),"parsed-value":xe.parsedValue,"cell-class-name":f(m),onPick:pe},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):ie("v-if",!0),N.value==="month"?(S(),le(jp,{key:2,ref_key:"currentViewRef",ref:C,"selection-mode":q.value,date:w.value,"parsed-value":xe.parsedValue,"disabled-date":f(v),disabled:f(te),"cell-class-name":f(m),onPick:se},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):ie("v-if",!0)],34)],2)],2),xe.showFooter&&ce.value&&Z.value?(S(),P("div",{key:0,class:D(f(o).e("footer"))},[Ct(W(f(Cs),{text:"",size:"small",class:D(f(o).e("link-btn")),disabled:de.value,onClick:ye},{default:X(()=>[je(ge(f(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[jt,!Q.value&&xe.showNow]]),xe.showConfirm?(S(),le(f(Cs),{key:0,plain:"",size:"small",class:D(f(o).e("link-btn")),disabled:H.value,onClick:ae},{default:X(()=>[je(ge(f(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):ie("v-if",!0)],2)):ie("v-if",!0)],2))}});const Cae=Me({...sA,...Y3}),Sae=e=>{const{emit:t}=Mt(),n=zi(),s=jn();return o=>{const r=Ze(o.value)?o.value():o.value;if(r){t("pick",[wt(r[0]).locale(e.value),wt(r[1]).locale(e.value)]);return}o.onClick&&o.onClick({attrs:n,slots:s,emit:t})}},Q3=(e,{defaultValue:t,defaultTime:n,leftDate:s,rightDate:a,step:o,unit:r,sortDates:i})=>{const{emit:l}=Mt(),{pickerNs:c}=Ke(q3),u=Ee("date-range-picker"),{t:d,lang:h}=Bt(),p=Sae(h),v=F(),m=F(),g=F({endDate:null,selecting:!1}),b=k=>{g.value=k},C=(k=!1)=>{const T=f(v),I=f(m);Wp([T,I])&&l("pick",[T,I],k)},w=k=>{g.value.selecting=k,k||(g.value.endDate=null)},_=k=>{if(Ae(k)&&k.length===2){const[T,I]=k;v.value=T,s.value=T,m.value=I,i(f(v),f(m))}else x()},x=()=>{let[k,T]=t1(f(t),{lang:f(h),step:o,unit:r,unlinkPanels:e.unlinkPanels});const I=R=>R.diff(R.startOf("d"),"ms"),O=f(n);if(O){let R=0,$=0;if(Ae(O)){const[M,B]=O.map(wt);R=I(M),$=I(B)}else{const M=I(wt(O));R=M,$=M}k=k.startOf("d").add(R,"ms"),T=T.startOf("d").add($,"ms")}v.value=void 0,m.value=void 0,s.value=k,a.value=T};return be(t,k=>{k&&x()},{immediate:!0}),be(()=>e.parsedValue,k=>{(!(k!=null&&k.length)||!Bn(k,[v.value,m.value]))&&_(k)},{immediate:!0}),be(()=>e.visible,()=>{e.visible&&_(e.parsedValue)},{immediate:!0}),{minDate:v,maxDate:m,rangeState:g,lang:h,ppNs:c,drpNs:u,handleChangeRange:b,handleRangeConfirm:C,handleShortcutClick:p,onSelect:w,parseValue:_,t:d}},xae=(e,t,n,s)=>{const a=F("date"),o=F(),r=F("date"),i=F(),l=Ke(gr),{disabledDate:c}=l.props,{t:u,lang:d}=Bt(),h=E(()=>n.value.year()),p=E(()=>n.value.month()),v=E(()=>s.value.year()),m=E(()=>s.value.month());function g(k,T){const I=u("el.datepicker.year");if(k.value==="year"){const O=Math.floor(T.value/10)*10;return I?`${O} ${I} - ${O+9} ${I}`:`${O} - ${O+9}`}return`${T.value} ${I}`}function b(k){k==null||k.focus()}async function C(k,T){if(e.disabled)return;const I=k==="left"?a:r,O=k==="left"?o:i;I.value=T,await ze(),b(O.value)}async function w(k,T,I){if(e.disabled)return;const O=T==="left",R=O?n:s,$=O?s:n,M=O?a:r,B=O?o:i;if(k==="year"){const U=R.value.year(I);R.value=s1(U,d.value,c)}k==="month"&&(R.value=zf(R.value,R.value.year(),I,d.value,c)),e.unlinkPanels||($.value=T==="left"?R.value.add(1,"month"):R.value.subtract(1,"month")),M.value=k==="year"?"month":"date",await ze(),b(B.value),_(k)}function _(k){t("panel-change",[n.value.toDate(),s.value.toDate()],k)}function x(k,T,I){const O=I?"add":"subtract";return k==="year"?T[O](10,"year"):T[O](1,"year")}return{leftCurrentView:a,rightCurrentView:r,leftCurrentViewRef:o,rightCurrentViewRef:i,leftYear:h,rightYear:v,leftMonth:p,rightMonth:m,leftYearLabel:E(()=>g(a,h)),rightYearLabel:E(()=>g(r,v)),showLeftPicker:k=>C("left",k),showRightPicker:k=>C("right",k),handleLeftYearPick:k=>w("year","left",k),handleRightYearPick:k=>w("year","right",k),handleLeftMonthPick:k=>w("month","left",k),handleRightMonthPick:k=>w("month","right",k),handlePanelChange:_,adjustDateByView:x}},kae=["disabled","onClick"],Eae=["aria-label","disabled"],Aae=["aria-label","disabled"],Tae=["disabled","aria-label"],Mae=["disabled","aria-label"],Pae=["tabindex","aria-disabled"],Rae=["tabindex","aria-disabled"],Iae=["disabled","aria-label"],Oae=["disabled","aria-label"],Lae=["aria-label","disabled"],Nae=["disabled","aria-label"],$ae=["tabindex","aria-disabled"],Dae=["tabindex","aria-disabled"],o1="month";var Fae=j({__name:"panel-date-range",props:Cae,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const n=e,s=t,a=Ke(gr),o=Ke(Hp,void 0),{disabledDate:r,cellClassName:i,defaultTime:l,clearable:c}=a.props,u=sn(a.props,"format"),d=sn(a.props,"shortcuts"),h=sn(a.props,"defaultValue"),{lang:p}=Bt(),v=F(wt().locale(p.value)),m=F(wt().locale(p.value).add(1,o1)),{minDate:g,maxDate:b,rangeState:C,ppNs:w,drpNs:_,handleChangeRange:x,handleRangeConfirm:k,handleShortcutClick:T,onSelect:I,parseValue:O,t:R}=Q3(n,{defaultValue:h,defaultTime:l,leftDate:v,rightDate:m,unit:o1,sortDates:Zt});be(()=>n.visible,rt=>{!rt&&C.value.selecting&&(O(n.parsedValue),I(!1))});const $=F({min:null,max:null}),M=F({min:null,max:null}),{leftCurrentView:B,rightCurrentView:U,leftCurrentViewRef:J,rightCurrentViewRef:Y,leftYear:L,rightYear:N,leftMonth:V,rightMonth:z,leftYearLabel:q,rightYearLabel:Q,showLeftPicker:K,showRightPicker:ee,handleLeftYearPick:se,handleRightYearPick:pe,handleLeftMonthPick:te,handleRightMonthPick:fe,handlePanelChange:ve,adjustDateByView:ce}=xae(n,s,v,m),Z=E(()=>!!d.value.length),H=E(()=>$.value.min!==null?$.value.min:g.value?g.value.format(Se.value):""),ae=E(()=>$.value.max!==null?$.value.max:b.value||g.value?(b.value||g.value).format(Se.value):""),de=E(()=>M.value.min!==null?M.value.min:g.value?g.value.format(_e.value):""),ye=E(()=>M.value.max!==null?M.value.max:b.value||g.value?(b.value||g.value).format(_e.value):""),_e=E(()=>n.timeFormat||Bk(u.value||"")||Vf),Se=E(()=>n.dateFormat||Fk(u.value||"")||hc),Le=rt=>Wp(rt)&&(r?!r(rt[0].toDate())&&!r(rt[1].toDate()):!0),De=()=>{v.value=ce(B.value,v.value,!1),n.unlinkPanels||(m.value=v.value.add(1,"month")),ve("year")},$e=()=>{v.value=v.value.subtract(1,"month"),n.unlinkPanels||(m.value=v.value.add(1,"month")),ve("month")},Ce=()=>{n.unlinkPanels?m.value=ce(U.value,m.value,!0):(v.value=ce(U.value,v.value,!0),m.value=v.value.add(1,"month")),ve("year")},Oe=()=>{n.unlinkPanels?m.value=m.value.add(1,"month"):(v.value=v.value.add(1,"month"),m.value=v.value.add(1,"month")),ve("month")},Ie=()=>{v.value=ce(B.value,v.value,!0),ve("year")},We=()=>{v.value=v.value.add(1,"month"),ve("month")},nt=()=>{m.value=ce(U.value,m.value,!1),ve("year")},dt=()=>{m.value=m.value.subtract(1,"month"),ve("month")},Fe=E(()=>{const rt=(V.value+1)%12,ot=V.value+1>=12?1:0;return n.unlinkPanels&&new Date(L.value+ot,rt)n.unlinkPanels&&N.value*12+z.value-(L.value*12+V.value+1)>=12),et=Nn(),Wt=E(()=>!(g.value&&b.value&&!C.value.selecting&&Wp([g.value,b.value])&&!et.value)),qt=E(()=>n.type==="datetime"||n.type==="datetimerange"),ct=(rt,ot)=>{if(rt)return l?wt(l[ot]||l).locale(p.value).year(rt.year()).month(rt.month()).date(rt.date()):rt},gt=(rt,ot=!0)=>{const Rt=rt.minDate,Es=rt.maxDate,sa=ct(Rt,0),Io=ct(Es,1);b.value===Io&&g.value===sa||(s("calendar-change",[Rt.toDate(),Es&&Es.toDate()]),b.value=Io,g.value=sa,!qt.value&&ot&&(ot=!sa||!Io),k(ot))},Ot=F(!1),xe=F(!1),Ue=()=>{Ot.value=!1},we=()=>{xe.value=!1},Ye=(rt,ot)=>{$.value[ot]=rt;const Rt=wt(rt,Se.value).locale(p.value);if(Rt.isValid()){if(r&&r(Rt.toDate()))return;ot==="min"?(v.value=Rt,g.value=(g.value||v.value).year(Rt.year()).month(Rt.month()).date(Rt.date()),!n.unlinkPanels&&(!b.value||b.value.isBefore(g.value))&&(m.value=Rt.add(1,"month"),b.value=g.value.add(1,"month"))):(m.value=Rt,b.value=(b.value||m.value).year(Rt.year()).month(Rt.month()).date(Rt.date()),!n.unlinkPanels&&(!g.value||g.value.isAfter(b.value))&&(v.value=Rt.subtract(1,"month"),g.value=b.value.subtract(1,"month"))),Zt(g.value,b.value),k(!0)}},At=(rt,ot)=>{$.value[ot]=null},Jt=(rt,ot)=>{M.value[ot]=rt;const Rt=wt(rt,_e.value).locale(p.value);Rt.isValid()&&(ot==="min"?(Ot.value=!0,g.value=(g.value||v.value).hour(Rt.hour()).minute(Rt.minute()).second(Rt.second()),v.value=g.value):(xe.value=!0,b.value=(b.value||m.value).hour(Rt.hour()).minute(Rt.minute()).second(Rt.second()),m.value=b.value))},Cn=(rt,ot)=>{M.value[ot]=null,ot==="min"?(v.value=g.value,Ot.value=!1,(!b.value||b.value.isBefore(g.value))&&(b.value=g.value)):(m.value=b.value,xe.value=!1,b.value&&b.value.isBefore(g.value)&&(g.value=b.value)),k(!0)},xn=(rt,ot,Rt)=>{M.value.min||(rt&&(g.value=(g.value||v.value).hour(rt.hour()).minute(rt.minute()).second(rt.second())),Rt||(Ot.value=ot),(!b.value||b.value.isBefore(g.value))&&(b.value=g.value,m.value=rt,ze(()=>{O(n.parsedValue)})),k(!0))},Ve=(rt,ot,Rt)=>{M.value.max||(rt&&(b.value=(b.value||m.value).hour(rt.hour()).minute(rt.minute()).second(rt.second())),Rt||(xe.value=ot),b.value&&b.value.isBefore(g.value)&&(g.value=b.value),k(!0))},st=()=>{_t(),s("clear")},_t=()=>{let rt=null;a!=null&&a.emptyValues&&(rt=a.emptyValues.valueOnClear.value),v.value=t1(f(h),{lang:f(p),unit:"month",unlinkPanels:n.unlinkPanels})[0],m.value=v.value.add(1,"month"),b.value=void 0,g.value=void 0,k(!0),s("pick",rt)},kn=rt=>Hf(rt,u.value||"",p.value,o);function Zt(rt,ot){if(n.unlinkPanels&&ot){const Rt=(rt==null?void 0:rt.year())||0,Es=(rt==null?void 0:rt.month())||0,sa=ot.year(),Io=ot.month();m.value=Rt===sa&&Es===Io?ot.add(1,o1):ot}else m.value=v.value.add(1,o1),ot&&(m.value=m.value.hour(ot.hour()).minute(ot.minute()).second(ot.second()))}return s("set-picker-option",["isValidValue",Le]),s("set-picker-option",["parseUserInput",kn]),s("set-picker-option",["handleClear",_t]),(rt,ot)=>(S(),P("div",{class:D([f(w).b(),f(_).b(),f(w).is("border",rt.border),f(w).is("disabled",f(et)),{"has-sidebar":rt.$slots.sidebar||Z.value,"has-time":qt.value}])},[A("div",{class:D(f(w).e("body-wrapper"))},[ue(rt.$slots,"sidebar",{class:D(f(w).e("sidebar"))}),Z.value?(S(),P("div",{key:0,class:D(f(w).e("sidebar"))},[(S(!0),P(He,null,Et(d.value,(Rt,Es)=>(S(),P("button",{key:Es,type:"button",disabled:f(et),class:D(f(w).e("shortcut")),onClick:sa=>f(T)(Rt)},ge(Rt.text),11,kae))),128))],2)):ie("v-if",!0),A("div",{class:D(f(w).e("body"))},[qt.value?(S(),P("div",{key:0,class:D(f(_).e("time-header"))},[A("span",{class:D(f(_).e("editors-wrap"))},[A("span",{class:D(f(_).e("time-picker-wrap"))},[W(f(ua),{size:"small",disabled:f(C).selecting||f(et),placeholder:f(R)("el.datepicker.startDate"),class:D(f(_).e("editor")),"model-value":H.value,"validate-event":!1,readonly:!rt.editable,onInput:ot[0]||(ot[0]=Rt=>Ye(Rt,"min")),onChange:ot[1]||(ot[1]=Rt=>At(Rt,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),Ct((S(),P("span",{class:D(f(_).e("time-picker-wrap"))},[W(f(ua),{size:"small",class:D(f(_).e("editor")),disabled:f(C).selecting||f(et),placeholder:f(R)("el.datepicker.startTime"),"model-value":de.value,"validate-event":!1,readonly:!rt.editable,onFocus:ot[2]||(ot[2]=Rt=>Ot.value=!0),onInput:ot[3]||(ot[3]=Rt=>Jt(Rt,"min")),onChange:ot[4]||(ot[4]=Rt=>Cn(Rt,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),W(f(e1),{visible:Ot.value,format:_e.value,"datetime-role":"start","parsed-value":f(g)||v.value,onPick:xn},null,8,["visible","format","parsed-value"])],2)),[[f(dc),Ue]])],2),A("span",null,[W(f(Je),null,{default:X(()=>[W(f(Ds))]),_:1})]),A("span",{class:D([f(_).e("editors-wrap"),"is-right"])},[A("span",{class:D(f(_).e("time-picker-wrap"))},[W(f(ua),{size:"small",class:D(f(_).e("editor")),disabled:f(C).selecting||f(et),placeholder:f(R)("el.datepicker.endDate"),"model-value":ae.value,readonly:!f(g)||!rt.editable,"validate-event":!1,onInput:ot[5]||(ot[5]=Rt=>Ye(Rt,"max")),onChange:ot[6]||(ot[6]=Rt=>At(Rt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Ct((S(),P("span",{class:D(f(_).e("time-picker-wrap"))},[W(f(ua),{size:"small",class:D(f(_).e("editor")),disabled:f(C).selecting||f(et),placeholder:f(R)("el.datepicker.endTime"),"model-value":ye.value,readonly:!f(g)||!rt.editable,"validate-event":!1,onFocus:ot[7]||(ot[7]=Rt=>f(g)&&(xe.value=!0)),onInput:ot[8]||(ot[8]=Rt=>Jt(Rt,"max")),onChange:ot[9]||(ot[9]=Rt=>Cn(Rt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),W(f(e1),{"datetime-role":"end",visible:xe.value,format:_e.value,"parsed-value":f(b)||m.value,onPick:Ve},null,8,["visible","format","parsed-value"])],2)),[[f(dc),we]])],2)],2)):ie("v-if",!0),A("div",{class:D([[f(w).e("content"),f(_).e("content")],"is-left"])},[A("div",{class:D(f(_).e("header"))},[A("button",{type:"button",class:D([f(w).e("icon-btn"),"d-arrow-left"]),"aria-label":f(R)("el.datepicker.prevYear"),disabled:f(et),onClick:De},[ue(rt.$slots,"prev-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Ji))]),_:1})])],10,Eae),Ct(A("button",{type:"button",class:D([f(w).e("icon-btn"),"arrow-left"]),"aria-label":f(R)("el.datepicker.prevMonth"),disabled:f(et),onClick:$e},[ue(rt.$slots,"prev-month",{},()=>[W(f(Je),null,{default:X(()=>[W(f($o))]),_:1})])],10,Aae),[[jt,f(B)==="date"]]),rt.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!Be.value||f(et),class:D([[f(w).e("icon-btn"),f(w).is("disabled",!Be.value||f(et))],"d-arrow-right"]),"aria-label":f(R)("el.datepicker.nextYear"),onClick:Ie},[ue(rt.$slots,"next-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Zi))]),_:1})])],10,Tae)):ie("v-if",!0),rt.unlinkPanels&&f(B)==="date"?(S(),P("button",{key:1,type:"button",disabled:!Fe.value||f(et),class:D([[f(w).e("icon-btn"),f(w).is("disabled",!Fe.value||f(et))],"arrow-right"]),"aria-label":f(R)("el.datepicker.nextMonth"),onClick:We},[ue(rt.$slots,"next-month",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Ds))]),_:1})])],10,Mae)):ie("v-if",!0),A("div",null,[A("span",{role:"button",class:D(f(_).e("header-label")),"aria-live":"polite",tabindex:rt.disabled?void 0:0,"aria-disabled":rt.disabled,onKeydown:ot[10]||(ot[10]=Fn(Rt=>f(K)("year"),["enter"])),onClick:ot[11]||(ot[11]=Rt=>f(K)("year"))},ge(f(q)),43,Pae),Ct(A("span",{role:"button","aria-live":"polite",tabindex:rt.disabled?void 0:0,"aria-disabled":rt.disabled,class:D([f(_).e("header-label"),{active:f(B)==="month"}]),onKeydown:ot[12]||(ot[12]=Fn(Rt=>f(K)("month"),["enter"])),onClick:ot[13]||(ot[13]=Rt=>f(K)("month"))},ge(f(R)(`el.datepicker.month${v.value.month()+1}`)),43,Rae),[[jt,f(B)==="date"]])])],2),f(B)==="date"?(S(),le(Z3,{key:0,ref_key:"leftCurrentViewRef",ref:J,"selection-mode":"range",date:v.value,"min-date":f(g),"max-date":f(b),"range-state":f(C),"disabled-date":f(r),"cell-class-name":f(i),"show-week-number":rt.showWeekNumber,disabled:f(et),onChangerange:f(x),onPick:gt,onSelect:f(I)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):ie("v-if",!0),f(B)==="year"?(S(),le(Kp,{key:1,ref_key:"leftCurrentViewRef",ref:J,"selection-mode":"year",date:v.value,"disabled-date":f(r),"parsed-value":rt.parsedValue,disabled:f(et),onPick:f(se)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):ie("v-if",!0),f(B)==="month"?(S(),le(jp,{key:2,ref_key:"leftCurrentViewRef",ref:J,"selection-mode":"month",date:v.value,"parsed-value":rt.parsedValue,"disabled-date":f(r),disabled:f(et),onPick:f(te)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):ie("v-if",!0)],2),A("div",{class:D([[f(w).e("content"),f(_).e("content")],"is-right"])},[A("div",{class:D(f(_).e("header"))},[rt.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!Be.value||f(et),class:D([[f(w).e("icon-btn"),f(w).is("disabled",!Be.value||f(et))],"d-arrow-left"]),"aria-label":f(R)("el.datepicker.prevYear"),onClick:nt},[ue(rt.$slots,"prev-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Ji))]),_:1})])],10,Iae)):ie("v-if",!0),rt.unlinkPanels&&f(U)==="date"?(S(),P("button",{key:1,type:"button",disabled:!Fe.value||f(et),class:D([[f(w).e("icon-btn"),f(w).is("disabled",!Fe.value||f(et))],"arrow-left"]),"aria-label":f(R)("el.datepicker.prevMonth"),onClick:dt},[ue(rt.$slots,"prev-month",{},()=>[W(f(Je),null,{default:X(()=>[W(f($o))]),_:1})])],10,Oae)):ie("v-if",!0),A("button",{type:"button","aria-label":f(R)("el.datepicker.nextYear"),class:D([f(w).e("icon-btn"),"d-arrow-right"]),disabled:f(et),onClick:Ce},[ue(rt.$slots,"next-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Zi))]),_:1})])],10,Lae),Ct(A("button",{type:"button",class:D([f(w).e("icon-btn"),"arrow-right"]),disabled:f(et),"aria-label":f(R)("el.datepicker.nextMonth"),onClick:Oe},[ue(rt.$slots,"next-month",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Ds))]),_:1})])],10,Nae),[[jt,f(U)==="date"]]),A("div",null,[A("span",{role:"button",class:D(f(_).e("header-label")),"aria-live":"polite",tabindex:rt.disabled?void 0:0,"aria-disabled":rt.disabled,onKeydown:ot[14]||(ot[14]=Fn(Rt=>f(ee)("year"),["enter"])),onClick:ot[15]||(ot[15]=Rt=>f(ee)("year"))},ge(f(Q)),43,$ae),Ct(A("span",{role:"button","aria-live":"polite",tabindex:rt.disabled?void 0:0,"aria-disabled":rt.disabled,class:D([f(_).e("header-label"),{active:f(U)==="month"}]),onKeydown:ot[16]||(ot[16]=Fn(Rt=>f(ee)("month"),["enter"])),onClick:ot[17]||(ot[17]=Rt=>f(ee)("month"))},ge(f(R)(`el.datepicker.month${m.value.month()+1}`)),43,Dae),[[jt,f(U)==="date"]])])],2),f(U)==="date"?(S(),le(Z3,{key:0,ref_key:"rightCurrentViewRef",ref:Y,"selection-mode":"range",date:m.value,"min-date":f(g),"max-date":f(b),"range-state":f(C),"disabled-date":f(r),"cell-class-name":f(i),"show-week-number":rt.showWeekNumber,disabled:f(et),onChangerange:f(x),onPick:gt,onSelect:f(I)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):ie("v-if",!0),f(U)==="year"?(S(),le(Kp,{key:1,ref_key:"rightCurrentViewRef",ref:Y,"selection-mode":"year",date:m.value,"disabled-date":f(r),"parsed-value":rt.parsedValue,disabled:f(et),onPick:f(pe)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):ie("v-if",!0),f(U)==="month"?(S(),le(jp,{key:2,ref_key:"rightCurrentViewRef",ref:Y,"selection-mode":"month",date:m.value,"parsed-value":rt.parsedValue,"disabled-date":f(r),disabled:f(et),onPick:f(fe)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):ie("v-if",!0)],2)],2)],2),rt.showFooter&&qt.value&&(rt.showConfirm||f(c))?(S(),P("div",{key:0,class:D(f(w).e("footer"))},[f(c)?(S(),le(f(Cs),{key:0,text:"",size:"small",class:D(f(w).e("link-btn")),onClick:st},{default:X(()=>[je(ge(f(R)("el.datepicker.clear")),1)]),_:1},8,["class"])):ie("v-if",!0),rt.showConfirm?(S(),le(f(Cs),{key:1,plain:"",size:"small",class:D(f(w).e("link-btn")),disabled:Wt.value,onClick:ot[18]||(ot[18]=Rt=>f(k)(!1))},{default:X(()=>[je(ge(f(R)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):ie("v-if",!0)],2)):ie("v-if",!0)],2))}});const Bae=Me({...Y3}),Vae=["pick","set-picker-option","calendar-change"],zae=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:s}=Bt(),a=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},o=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},r=()=>{t.value=t.value.add(1,"year")},i=()=>{n.value=n.value.subtract(1,"year")},l=E(()=>`${t.value.year()} ${s("el.datepicker.year")}`),c=E(()=>`${n.value.year()} ${s("el.datepicker.year")}`),u=E(()=>t.value.year()),d=E(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:o,leftNextYear:r,rightPrevYear:i,leftLabel:l,rightLabel:c,leftYear:u,rightYear:d}},Hae=["disabled","onClick"],Wae=["disabled"],jae=["disabled"],Kae=["disabled"],Uae=["disabled"],r1="year";var qae=j({name:"DatePickerMonthRange",__name:"panel-month-range",props:Bae,emits:Vae,setup(e,{emit:t}){const n=e,s=t,{lang:a}=Bt(),o=Ke(gr),r=Ke(Hp,void 0),{shortcuts:i,disabledDate:l,cellClassName:c}=o.props,u=sn(o.props,"format"),d=sn(o.props,"defaultValue"),h=F(wt().locale(a.value)),p=F(wt().locale(a.value).add(1,r1)),{minDate:v,maxDate:m,rangeState:g,ppNs:b,drpNs:C,handleChangeRange:w,handleRangeConfirm:_,handleShortcutClick:x,onSelect:k,parseValue:T}=Q3(n,{defaultValue:d,leftDate:h,rightDate:p,unit:r1,sortDates:q}),I=E(()=>!!i.length),{leftPrevYear:O,rightNextYear:R,leftNextYear:$,rightPrevYear:M,leftLabel:B,rightLabel:U,leftYear:J,rightYear:Y}=zae({unlinkPanels:sn(n,"unlinkPanels"),leftDate:h,rightDate:p}),L=E(()=>n.unlinkPanels&&Y.value>J.value+1),N=(K,ee=!0)=>{const se=K.minDate,pe=K.maxDate;m.value===pe&&v.value===se||(s("calendar-change",[se.toDate(),pe&&pe.toDate()]),m.value=pe,v.value=se,ee&&_())},V=()=>{let K=null;o!=null&&o.emptyValues&&(K=o.emptyValues.valueOnClear.value),h.value=t1(f(d),{lang:f(a),unit:"year",unlinkPanels:n.unlinkPanels})[0],p.value=h.value.add(1,"year"),s("pick",K)},z=K=>Hf(K,u.value,a.value,r);function q(K,ee){if(n.unlinkPanels&&ee){const se=(K==null?void 0:K.year())||0,pe=ee.year();p.value=se===pe?ee.add(1,r1):ee}else p.value=h.value.add(1,r1)}const Q=Nn();return be(()=>n.visible,K=>{!K&&g.value.selecting&&(T(n.parsedValue),k(!1))}),s("set-picker-option",["isValidValue",Wp]),s("set-picker-option",["parseUserInput",z]),s("set-picker-option",["handleClear",V]),(K,ee)=>(S(),P("div",{class:D([f(b).b(),f(C).b(),f(b).is("border",K.border),f(b).is("disabled",f(Q)),{"has-sidebar":!!K.$slots.sidebar||I.value}])},[A("div",{class:D(f(b).e("body-wrapper"))},[ue(K.$slots,"sidebar",{class:D(f(b).e("sidebar"))}),I.value?(S(),P("div",{key:0,class:D(f(b).e("sidebar"))},[(S(!0),P(He,null,Et(f(i),(se,pe)=>(S(),P("button",{key:pe,type:"button",class:D(f(b).e("shortcut")),disabled:f(Q),onClick:te=>f(x)(se)},ge(se.text),11,Hae))),128))],2)):ie("v-if",!0),A("div",{class:D(f(b).e("body"))},[A("div",{class:D([[f(b).e("content"),f(C).e("content")],"is-left"])},[A("div",{class:D(f(C).e("header"))},[A("button",{type:"button",class:D([f(b).e("icon-btn"),"d-arrow-left"]),disabled:f(Q),onClick:ee[0]||(ee[0]=(...se)=>f(O)&&f(O)(...se))},[ue(K.$slots,"prev-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Ji))]),_:1})])],10,Wae),K.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!L.value||f(Q),class:D([[f(b).e("icon-btn"),f(b).is("disabled",!L.value||f(Q))],"d-arrow-right"]),onClick:ee[1]||(ee[1]=(...se)=>f($)&&f($)(...se))},[ue(K.$slots,"next-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Zi))]),_:1})])],10,jae)):ie("v-if",!0),A("div",null,ge(f(B)),1)],2),W(jp,{"selection-mode":"range",date:h.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(l),disabled:f(Q),"cell-class-name":f(c),onChangerange:f(w),onPick:N,onSelect:f(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),A("div",{class:D([[f(b).e("content"),f(C).e("content")],"is-right"])},[A("div",{class:D(f(C).e("header"))},[K.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!L.value||f(Q),class:D([[f(b).e("icon-btn"),f(b).is("disabled",!L.value||f(Q))],"d-arrow-left"]),onClick:ee[2]||(ee[2]=(...se)=>f(M)&&f(M)(...se))},[ue(K.$slots,"prev-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Ji))]),_:1})])],10,Kae)):ie("v-if",!0),A("button",{type:"button",class:D([f(b).e("icon-btn"),"d-arrow-right"]),disabled:f(Q),onClick:ee[3]||(ee[3]=(...se)=>f(R)&&f(R)(...se))},[ue(K.$slots,"next-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Zi))]),_:1})])],10,Uae),A("div",null,ge(f(U)),1)],2),W(jp,{"selection-mode":"range",date:p.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(l),disabled:f(Q),"cell-class-name":f(c),onChangerange:f(w),onPick:N,onSelect:f(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});const Gae=Me({...Y3}),Yae=["pick","set-picker-option","calendar-change"],Xae=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const s=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},a=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},o=()=>{t.value=t.value.add(10,"year")},r=()=>{n.value=n.value.subtract(10,"year")},i=E(()=>{const d=Math.floor(t.value.year()/10)*10;return`${d}-${d+9}`}),l=E(()=>{const d=Math.floor(n.value.year()/10)*10;return`${d}-${d+9}`}),c=E(()=>Math.floor(t.value.year()/10)*10+9),u=E(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:s,rightNextYear:a,leftNextYear:o,rightPrevYear:r,leftLabel:i,rightLabel:l,leftYear:c,rightYear:u}},Jae=["disabled","onClick"],Zae=["disabled"],Qae=["disabled"],eoe=["disabled"],toe=["disabled"],Wf=10,Up="year";var noe=j({name:"DatePickerYearRange",__name:"panel-year-range",props:Gae,emits:Yae,setup(e,{emit:t}){const n=e,s=t,{lang:a}=Bt(),o=F(wt().locale(a.value)),r=F(wt().locale(a.value).add(Wf,Up)),i=Ke(Hp,void 0),l=Ke(gr),{shortcuts:c,disabledDate:u,cellClassName:d}=l.props,h=sn(l.props,"format"),p=sn(l.props,"defaultValue"),{minDate:v,maxDate:m,rangeState:g,ppNs:b,drpNs:C,handleChangeRange:w,handleRangeConfirm:_,handleShortcutClick:x,onSelect:k,parseValue:T}=Q3(n,{defaultValue:p,leftDate:o,rightDate:r,step:Wf,unit:Up,sortDates:pe}),{leftPrevYear:I,rightNextYear:O,leftNextYear:R,rightPrevYear:$,leftLabel:M,rightLabel:B,leftYear:U,rightYear:J}=Xae({unlinkPanels:sn(n,"unlinkPanels"),leftDate:o,rightDate:r}),Y=Nn(),L=E(()=>!!c.length),N=E(()=>[b.b(),C.b(),b.is("border",n.border),b.is("disabled",Y.value),{"has-sidebar":!!jn().sidebar||L.value}]),V=E(()=>({content:[b.e("content"),C.e("content"),"is-left"],arrowLeftBtn:[b.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[b.e("icon-btn"),b.is("disabled",!q.value||Y.value),"d-arrow-right"]})),z=E(()=>({content:[b.e("content"),C.e("content"),"is-right"],arrowLeftBtn:[b.e("icon-btn"),b.is("disabled",!q.value||Y.value),"d-arrow-left"],arrowRightBtn:[b.e("icon-btn"),"d-arrow-right"]})),q=E(()=>n.unlinkPanels&&J.value>U.value+1),Q=(te,fe=!0)=>{const ve=te.minDate,ce=te.maxDate;m.value===ce&&v.value===ve||(s("calendar-change",[ve.toDate(),ce&&ce.toDate()]),m.value=ce,v.value=ve,fe&&_())},K=te=>Hf(te,h.value,a.value,i),ee=te=>Wp(te)&&(u?!u(te[0].toDate())&&!u(te[1].toDate()):!0),se=()=>{let te=null;l!=null&&l.emptyValues&&(te=l.emptyValues.valueOnClear.value);const fe=t1(f(p),{lang:f(a),step:Wf,unit:Up,unlinkPanels:n.unlinkPanels});o.value=fe[0],r.value=fe[1],s("pick",te)};function pe(te,fe){if(n.unlinkPanels&&fe){const ve=(te==null?void 0:te.year())||0,ce=fe.year();r.value=ve+Wf>ce?fe.add(Wf,Up):fe}else r.value=o.value.add(Wf,Up)}return be(()=>n.visible,te=>{!te&&g.value.selecting&&(T(n.parsedValue),k(!1))}),s("set-picker-option",["isValidValue",ee]),s("set-picker-option",["parseUserInput",K]),s("set-picker-option",["handleClear",se]),(te,fe)=>(S(),P("div",{class:D(N.value)},[A("div",{class:D(f(b).e("body-wrapper"))},[ue(te.$slots,"sidebar",{class:D(f(b).e("sidebar"))}),L.value?(S(),P("div",{key:0,class:D(f(b).e("sidebar"))},[(S(!0),P(He,null,Et(f(c),(ve,ce)=>(S(),P("button",{key:ce,type:"button",class:D(f(b).e("shortcut")),disabled:f(Y),onClick:Z=>f(x)(ve)},ge(ve.text),11,Jae))),128))],2)):ie("v-if",!0),A("div",{class:D(f(b).e("body"))},[A("div",{class:D(V.value.content)},[A("div",{class:D(f(C).e("header"))},[A("button",{type:"button",class:D(V.value.arrowLeftBtn),disabled:f(Y),onClick:fe[0]||(fe[0]=(...ve)=>f(I)&&f(I)(...ve))},[ue(te.$slots,"prev-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Ji))]),_:1})])],10,Zae),te.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!q.value||f(Y),class:D(V.value.arrowRightBtn),onClick:fe[1]||(fe[1]=(...ve)=>f(R)&&f(R)(...ve))},[ue(te.$slots,"next-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Zi))]),_:1})])],10,Qae)):ie("v-if",!0),A("div",null,ge(f(M)),1)],2),W(Kp,{"selection-mode":"range",date:o.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(u),disabled:f(Y),"cell-class-name":f(d),onChangerange:f(w),onPick:Q,onSelect:f(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),A("div",{class:D(z.value.content)},[A("div",{class:D(f(C).e("header"))},[te.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!q.value||f(Y),class:D(z.value.arrowLeftBtn),onClick:fe[2]||(fe[2]=(...ve)=>f($)&&f($)(...ve))},[ue(te.$slots,"prev-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Ji))]),_:1})])],10,eoe)):ie("v-if",!0),A("button",{type:"button",class:D(z.value.arrowRightBtn),disabled:f(Y),onClick:fe[3]||(fe[3]=(...ve)=>f(O)&&f(O)(...ve))},[ue(te.$slots,"next-year",{},()=>[W(f(Je),null,{default:X(()=>[W(f(Zi))]),_:1})])],10,toe),A("div",null,ge(f(B)),1)],2),W(Kp,{"selection-mode":"range",date:r.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(u),disabled:f(Y),"cell-class-name":f(d),onChangerange:f(w),onPick:Q,onSelect:f(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});const soe=function(e){switch(e){case"daterange":case"datetimerange":return Fae;case"monthrange":return qae;case"yearrange":return noe;default:return _ae}};function aoe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}wt.extend(Kk),wt.extend(Bse),wt.extend(z3),wt.extend(zse),wt.extend(Wse),wt.extend(Kse),wt.extend(qse),wt.extend(Yse);var ooe=j({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:Xse,emits:[mt,"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:n,attrs:s}){const a=Ee("picker-panel"),o=Ke(gr,void 0);if(Ht(o)){const d=Yt({...ys(e)});Nt(gr,{props:d})}Nt(q3,{slots:t,pickerNs:a});const{parsedValue:r,onCalendarChange:i,onPanelChange:l,onSetPickerOption:c,onPick:u}=Ke(WE,()=>jE(e,n),!0);return()=>{const d=soe(e.type);return W(d,Tt(pp(s,"onPick"),e,{parsedValue:r.value,"onSet-picker-option":c,"onCalendar-change":i,"onPanel-change":l,onClear:()=>n("clear"),onPick:u}),aoe(t)?t:{default:()=>[t]})}}});const aA=yt(ooe),roe=Me({...j3,type:{type:re(String),default:"date"}});function ioe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}var loe=j({name:"ElDatePicker",install:null,props:roe,emits:[mt],setup(e,{expose:t,emit:n,slots:s}){const a=E(()=>!e.format);Nt(Hp,a),Nt(H3,Yt(sn(e,"popperOptions")));const o=F();t({focus:()=>{var l;(l=o.value)==null||l.focus()},blur:()=>{var l;(l=o.value)==null||l.blur()},handleOpen:()=>{var l;(l=o.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=o.value)==null||l.handleClose()}});const i=l=>{n(mt,l)};return()=>{var l;const c=(l=e.format)!=null?l:Cse[e.type]||hc;return W(UE,Tt(e,{format:c,type:e.type,ref:o,"onUpdate:modelValue":i}),{default:u=>W(aA,Tt({disabled:e.disabled,editable:e.editable,border:!1},u),ioe(s)?s:{default:()=>[s]}),"range-separator":s["range-separator"]})}}});const coe=yt(loe),uoe=Me({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:ds,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),doe=Me({row:{type:re(Array),default:()=>[]}}),e6=Symbol("elDescriptions");var qp=j({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Ke(e6,{})}},render(){var e,t,n,s;const a=fJ(this.cell),o=(((e=this.cell)==null?void 0:e.dirs)||[]).map(_=>{const{dir:x,arg:k,modifiers:T,value:I}=_;return[x,I,k,T]}),{border:r,direction:i}=this.descriptions,l=i==="vertical",c=()=>{var _,x,k;return((k=(x=(_=this.cell)==null?void 0:_.children)==null?void 0:x.label)==null?void 0:k.call(x))||a.label},u=()=>{var _,x,k;return(k=(x=(_=this.cell)==null?void 0:_.children)==null?void 0:x.default)==null?void 0:k.call(x)},d=a.span,h=a.rowspan,p=a.align?`is-${a.align}`:"",v=a.labelAlign?`is-${a.labelAlign}`:p,m=a.className,g=a.labelClassName,b=this.type==="label"&&(n=(t=a.labelWidth)!=null?t:this.descriptions.labelWidth)!=null?n:a.width,C={width:On(b),minWidth:On(a.minWidth)},w=Ee("descriptions");switch(this.type){case"label":return Ct(ut(this.tag,{style:C,class:[w.e("cell"),w.e("label"),w.is("bordered-label",r),w.is("vertical-label",l),v,g],colSpan:l?d:1,rowspan:l?1:h},c()),o);case"content":return Ct(ut(this.tag,{style:C,class:[w.e("cell"),w.e("content"),w.is("bordered-content",r),w.is("vertical-content",l),p,m],colSpan:l?d:d*2-1,rowspan:l?h*2-1:h},u()),o);default:{const _=c(),x={},k=On((s=a.labelWidth)!=null?s:this.descriptions.labelWidth);return k&&(x.width=k,x.display="inline-block"),Ct(ut("td",{style:C,class:[w.e("cell"),p],colSpan:d,rowspan:h},[Xn(_)?void 0:ut("span",{style:x,class:[w.e("label"),g]},_),ut("span",{class:[w.e("content"),m]},u())]),o)}}}});const foe={key:1};var hoe=j({name:"ElDescriptionsRow",__name:"descriptions-row",props:doe,setup(e){const t=Ke(e6,{});return(n,s)=>f(t).direction==="vertical"?(S(),P(He,{key:0},[A("tr",null,[(S(!0),P(He,null,Et(e.row,(a,o)=>(S(),le(f(qp),{key:`tr1-${o}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),A("tr",null,[(S(!0),P(He,null,Et(e.row,(a,o)=>(S(),le(f(qp),{key:`tr2-${o}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(S(),P("tr",foe,[(S(!0),P(He,null,Et(e.row,(a,o)=>(S(),P(He,{key:`tr3-${o}`},[f(t).border?(S(),P(He,{key:0},[W(f(qp),{cell:a,tag:"td",type:"label"},null,8,["cell"]),W(f(qp),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(S(),le(f(qp),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});const oA="ElDescriptionsItem";var poe=j({name:"ElDescriptions",__name:"description",props:uoe,setup(e){const t=e,n=Ee("descriptions"),s=rs(),a=jn();Nt(e6,t);const o=E(()=>[n.b(),n.m(s.value)]),r=(l,c,u,d=!1)=>(l.props||(l.props={}),c>u&&(l.props.span=u),d&&(l.props.span=c),l),i=()=>{if(!a.default)return[];const l=lo(a.default()).filter(v=>{var m;return((m=v==null?void 0:v.type)==null?void 0:m.name)===oA}),c=[];let u=[],d=t.column,h=0;const p=[];return l.forEach((v,m)=>{var g,b,C;const w=((g=v.props)==null?void 0:g.span)||1,_=((b=v.props)==null?void 0:b.rowspan)||1,x=c.length;if(p[x]||(p[x]=0),_>1)for(let k=1;k<_;k++)p[C=x+k]||(p[C]=0),p[x+k]++,h++;if(p[x]>0&&(d-=p[x],p[x]=0),md?d:w),m===l.length-1){const k=t.column-h%t.column;u.push(r(v,k,d,!0)),c.push(u);return}w(S(),P("div",{class:D(o.value)},[e.title||e.extra||l.$slots.title||l.$slots.extra?(S(),P("div",{key:0,class:D(f(n).e("header"))},[A("div",{class:D(f(n).e("title"))},[ue(l.$slots,"title",{},()=>[je(ge(e.title),1)])],2),A("div",{class:D(f(n).e("extra"))},[ue(l.$slots,"extra",{},()=>[je(ge(e.extra),1)])],2)],2)):ie("v-if",!0),A("div",{class:D(f(n).e("body"))},[A("table",{class:D([f(n).e("table"),f(n).is("bordered",e.border)])},[A("tbody",null,[(S(!0),P(He,null,Et(i(),(u,d)=>(S(),le(hoe,{key:d,row:u},null,8,["row"]))),128))])],2)],2)],2))}});const rA=["left","center","right"],voe=Me({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number]},align:{type:String,values:rA,default:"left"},labelAlign:{type:String,values:rA},className:{type:String,default:""},labelClassName:{type:String,default:""}}),iA=j({name:oA,props:voe}),moe=yt(poe,{DescriptionsItem:iA}),goe=Pn(iA),lA=Me({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:rn},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),boe={close:()=>!0},cA=Me({...lA,appendToBody:Boolean,appendTo:{type:Cp.to.type,default:"body"},beforeClose:{type:re(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:re([String,Object]),default:void 0}}),uA={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[mt]:e=>on(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},t6=e=>{if(!e)return{onClick:en,onMousedown:en,onMouseup:en};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},yoe=Me({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:re([String,Array,Object])},zIndex:{type:re([String,Number])}}),woe={click:e=>e instanceof MouseEvent},_oe="overlay";var Coe=j({name:"ElOverlay",props:yoe,emits:woe,setup(e,{slots:t,emit:n}){const s=Ee(_oe),a=l=>{n("click",l)},{onClick:o,onMousedown:r,onMouseup:i}=t6(e.customMaskEvent?void 0:a);return()=>e.mask?W("div",{class:[s.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:r,onMouseup:i},[ue(t,"default")],Fo.STYLE|Fo.CLASS|Fo.PROPS,["onClick","onMouseup","onMousedown"]):ut("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ue(t,"default")])}});const n6=Coe,dA=Symbol("dialogInjectionKey"),fA="dialog-fade",s6=(...e)=>t=>{e.forEach(n=>{n.value=t})},hA=(e,t,n,s)=>{const a={offsetX:0,offsetY:0},o=F(!1),r=(h,p)=>{if(e.value){const{offsetX:v,offsetY:m}=a,g=e.value.getBoundingClientRect(),b=g.left,C=g.top,w=g.width,_=g.height,x=document.documentElement.clientWidth,k=document.documentElement.clientHeight,T=-b+v,I=-C+m,O=x-b-w+v,R=k-C-(_{const p=h.clientX,v=h.clientY,{offsetX:m,offsetY:g}=a,b=w=>{o.value||(o.value=!0);const _=m+w.clientX-p,x=g+w.clientY-v;r(_,x)},C=()=>{o.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",C)},l=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",i),window.addEventListener("resize",d))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",i),window.removeEventListener("resize",d))},u=()=>{a.offsetX=0,a.offsetY=0,e.value&&(e.value.style.transform="")},d=()=>{const{offsetX:h,offsetY:p}=a;r(h,p)};return Pt(()=>{Wa(()=>{n.value?l():c()})}),tn(()=>{c()}),{isDragging:o,resetPosition:u,updatePosition:d}},Soe=["aria-level"],xoe=["aria-label"],koe=["id"];var Eoe=j({name:"ElDialogContent",__name:"dialog-content",props:lA,emits:boe,setup(e,{expose:t}){const{t:n}=Bt(),{Close:s}=p9,a=e,{dialogRef:o,headerRef:r,bodyId:i,ns:l,style:c}=Ke(dA),{focusTrapRef:u}=Ke(ck),d=s6(u,o),h=E(()=>!!a.draggable),p=E(()=>!!a.overflow),{resetPosition:v,updatePosition:m,isDragging:g}=hA(o,r,h,p),b=E(()=>[l.b(),l.is("fullscreen",a.fullscreen),l.is("draggable",h.value),l.is("dragging",g.value),l.is("align-center",!!a.alignCenter),{[l.m("center")]:a.center}]);return t({resetPosition:v,updatePosition:m}),(C,w)=>(S(),P("div",{ref:f(d),class:D(b.value),style:Qe(f(c)),tabindex:"-1"},[A("header",{ref_key:"headerRef",ref:r,class:D([f(l).e("header"),e.headerClass,{"show-close":e.showClose}])},[ue(C.$slots,"header",{},()=>[A("span",{role:"heading","aria-level":e.ariaLevel,class:D(f(l).e("title"))},ge(e.title),11,Soe)]),e.showClose?(S(),P("button",{key:0,"aria-label":f(n)("el.dialog.close"),class:D(f(l).e("headerbtn")),type:"button",onClick:w[0]||(w[0]=_=>C.$emit("close"))},[W(f(Je),{class:D(f(l).e("close"))},{default:X(()=>[(S(),le(kt(e.closeIcon||f(s))))]),_:1},8,["class"])],10,xoe)):ie("v-if",!0)],2),A("div",{id:f(i),class:D([f(l).e("body"),e.bodyClass])},[ue(C.$slots,"default")],10,koe),C.$slots.footer?(S(),P("footer",{key:0,class:D([f(l).e("footer"),e.footerClass])},[ue(C.$slots,"footer")],2)):ie("v-if",!0)],6))}});const i1=(e,t={})=>{yn(e)||es("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Ee("popup"),s=E(()=>n.bm("parent","hidden"));let a=0,o=!1,r="0",i=!1;const l=()=>{i||(i=!0,setTimeout(()=>{typeof document>"u"||o&&document&&(document.body.style.width=r,la(document.body,s.value))},200))};be(e,c=>{if(!c){l();return}i=!1,o=!Qr(document.body,s.value),o&&(r=document.body.style.width,No(document.body,s.value)),a=Bx(n.namespace.value);const u=document.documentElement.clientHeight0&&(u||d==="scroll")&&o&&(document.body.style.width=`calc(100% - ${a}px)`)}),H_(()=>l())},pA=(e,t)=>{var n;const a=Mt().emit,{nextZIndex:o}=yp();let r="";const i=Bs(),l=Bs(),c=F(!1),u=F(!1),d=F(!1),h=F((n=e.zIndex)!=null?n:o()),p=F(!1);let v,m;const g=Ef(),b=E(()=>{var Q,K;return(K=(Q=g.value)==null?void 0:Q.namespace)!=null?K:vp}),C=E(()=>{var Q;return(Q=g.value)==null?void 0:Q.dialog}),w=E(()=>{const Q={},K=`--${b.value}-dialog`;if(!e.fullscreen){e.top&&(Q[`${K}-margin-top`]=e.top);const ee=On(e.width);ee&&(Q[`${K}-width`]=ee)}return Q}),_=E(()=>{var Q,K,ee;return((ee=(K=e.draggable)!=null?K:(Q=C.value)==null?void 0:Q.draggable)!=null?ee:!1)&&!e.fullscreen}),x=E(()=>{var Q,K,ee;return(ee=(K=e.alignCenter)!=null?K:(Q=C.value)==null?void 0:Q.alignCenter)!=null?ee:!1}),k=E(()=>{var Q,K,ee;return(ee=(K=e.overflow)!=null?K:(Q=C.value)==null?void 0:Q.overflow)!=null?ee:!1}),T=E(()=>x.value?{display:"flex"}:{}),I=E(()=>{var Q,K,ee;const se=(ee=(K=e.transition)!=null?K:(Q=C.value)==null?void 0:Q.transition)!=null?ee:fA,pe={name:se,onAfterEnter:O,onBeforeLeave:$,onAfterLeave:R};if(bt(se)){const te={...se},fe=(ve,ce)=>Z=>{Ae(ve)?ve.forEach(H=>{Ze(H)&&H(Z)}):Ze(ve)&&ve(Z),ce()};return te.onAfterEnter=fe(te.onAfterEnter,O),te.onBeforeLeave=fe(te.onBeforeLeave,$),te.onAfterLeave=fe(te.onAfterLeave,R),te.name||(te.name=fA),te}return pe});function O(){a("opened")}function R(){a("closed"),a(mt,!1),e.destroyOnClose&&(d.value=!1),p.value=!1}function $(){p.value=!0,a("close")}function M(){m==null||m(),v==null||v(),e.openDelay&&e.openDelay>0?{stop:v}=xf(()=>Y(),e.openDelay):Y()}function B(){v==null||v(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=xf(()=>L(),e.closeDelay):L()}function U(){function Q(K){K||(u.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(Q):B()}function J(){e.closeOnClickModal&&U()}function Y(){Xt&&(c.value=!0)}function L(){c.value=!1}function N(){a("openAutoFocus")}function V(){a("closeAutoFocus")}function z(Q){var K;((K=Q.detail)==null?void 0:K.focusReason)==="pointer"&&Q.preventDefault()}e.lockScroll&&i1(c);function q(){e.closeOnPressEscape&&U()}return be(()=>e.zIndex,()=>{var Q;h.value=(Q=e.zIndex)!=null?Q:o()}),be(()=>e.modelValue,Q=>{var K;Q?(u.value=!1,p.value=!1,M(),d.value=!0,h.value=(K=e.zIndex)!=null?K:o(),ze(()=>{a("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):c.value&&B()}),be(()=>e.fullscreen,Q=>{t.value&&(Q?(r=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=r)}),Pt(()=>{e.modelValue&&(c.value=!0,d.value=!0,M())}),{afterEnter:O,afterLeave:R,beforeLeave:$,handleClose:U,onModalClick:J,close:B,doClose:L,onOpenAutoFocus:N,onCloseAutoFocus:V,onCloseRequested:q,onFocusoutPrevented:z,titleId:i,bodyId:l,closed:u,style:w,overlayDialogStyle:T,rendered:d,visible:c,zIndex:h,transitionConfig:I,_draggable:_,_alignCenter:x,_overflow:k,closing:p}},Aoe=["aria-label","aria-labelledby","aria-describedby"];var Toe=j({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:cA,emits:uA,setup(e,{expose:t}){const n=e,s=jn();oi({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},E(()=>!!s.title));const a=Ee("dialog"),o=F(),r=F(),i=F(),{visible:l,titleId:c,bodyId:u,style:d,overlayDialogStyle:h,rendered:p,transitionConfig:v,zIndex:m,_draggable:g,_alignCenter:b,_overflow:C,handleClose:w,onModalClick:_,onOpenAutoFocus:x,onCloseAutoFocus:k,onCloseRequested:T,onFocusoutPrevented:I,closing:O}=pA(n,o);Nt(dA,{dialogRef:o,headerRef:r,bodyId:u,ns:a,rendered:p,style:d});const R=t6(_),$=E(()=>n.modalPenetrable&&!n.modal&&!n.fullscreen);return t({visible:l,dialogContentRef:i,resetPosition:()=>{var B;(B=i.value)==null||B.resetPosition()},handleClose:w}),(B,U)=>(S(),le(f(Af),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:X(()=>[W(ws,Tt(f(v),{persisted:""}),{default:X(()=>{var J;return[Ct(W(f(n6),{"custom-mask-event":"",mask:e.modal,"overlay-class":[(J=e.modalClass)!=null?J:"",`${f(a).namespace.value}-modal-dialog`,f(a).is("penetrable",$.value)],"z-index":f(m)},{default:X(()=>[A("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:f(c),"aria-describedby":f(u),class:D([`${f(a).namespace.value}-overlay-dialog`,f(a).is("closing",f(O))]),style:Qe(f(h)),onClick:U[0]||(U[0]=(...Y)=>f(R).onClick&&f(R).onClick(...Y)),onMousedown:U[1]||(U[1]=(...Y)=>f(R).onMousedown&&f(R).onMousedown(...Y)),onMouseup:U[2]||(U[2]=(...Y)=>f(R).onMouseup&&f(R).onMouseup(...Y))},[W(f($f),{loop:"",trapped:f(l),"focus-start-el":"container",onFocusAfterTrapped:f(x),onFocusAfterReleased:f(k),onFocusoutPrevented:f(I),onReleaseRequested:f(T)},{default:X(()=>[f(p)?(S(),le(Eoe,Tt({key:0,ref_key:"dialogContentRef",ref:i},B.$attrs,{center:e.center,"align-center":f(b),"close-icon":e.closeIcon,draggable:f(g),overflow:f(C),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:f(w)}),Aa({header:X(()=>[B.$slots.title?ue(B.$slots,"title",{key:1}):ue(B.$slots,"header",{key:0,close:f(w),titleId:f(c),titleClass:f(a).e("title")})]),default:X(()=>[ue(B.$slots,"default")]),_:2},[B.$slots.footer?{name:"footer",fn:X(()=>[ue(B.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):ie("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,Aoe)]),_:3},8,["mask","overlay-class","z-index"]),[[jt,f(l)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});const Moe=yt(Toe),Poe=Me({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:re(String),default:"solid"}});var Roe=j({name:"ElDivider",__name:"divider",props:Poe,setup(e){const t=e,n=Ee("divider"),s=E(()=>n.cssVar({"border-style":t.borderStyle}));return(a,o)=>(S(),P("div",{class:D([f(n).b(),f(n).m(e.direction)]),style:Qe(s.value),role:"separator"},[a.$slots.default&&e.direction!=="vertical"?(S(),P("div",{key:0,class:D([f(n).e("text"),f(n).is(e.contentPosition)])},[ue(a.$slots,"default")],2)):ie("v-if",!0)],6))}});const vA=yt(Roe),Ioe=Me({...cA,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),Ooe={...uA,"resize-start":(e,t)=>e instanceof MouseEvent&&typeof t=="number",resize:(e,t)=>e instanceof MouseEvent&&typeof t=="number","resize-end":(e,t)=>e instanceof MouseEvent&&typeof t=="number"};function Loe(e,t,n){const{width:s,height:a}=Ly(),o=E(()=>["ltr","rtl"].includes(e.direction)),r=E(()=>["ltr","ttb"].includes(e.direction)?1:-1),i=E(()=>o.value?s.value:a.value),l=E(()=>wx(c.value+r.value*u.value,4,i.value)),c=F(0),u=F(0),d=F(!1),h=F(!1);let p=[],v=[];const m=()=>{var _;const x=(_=t.value)==null?void 0:_.closest('[aria-modal="true"]');return x?o.value?x.offsetWidth:x.offsetHeight:100};be(()=>[e.size,e.resizable],()=>{h.value=!1,c.value=0,u.value=0,C()});const g=_=>{e.resizable&&(h.value||(c.value=m(),h.value=!0),p=[_.pageX,_.pageY],d.value=!0,n("resize-start",_,c.value),v.push(an(window,"mouseup",C),an(window,"mousemove",b)))},b=_=>{const{pageX:x,pageY:k}=_,T=x-p[0],I=k-p[1];u.value=o.value?T:I,n("resize",_,l.value)},C=_=>{d.value&&(p=[],c.value=l.value,u.value=0,d.value=!1,v.forEach(x=>x==null?void 0:x()),v=[],_&&n("resize-end",_,c.value))},w=an(t,"mousedown",g);return tn(()=>{w(),C()}),{size:E(()=>h.value?`${l.value}px`:On(e.size)),isResizing:d,isHorizontal:o}}const Noe=["aria-label","aria-labelledby","aria-describedby"],$oe=["id","aria-level"],Doe=["aria-label"],Foe=["id"];var Boe=j({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:Ioe,emits:Ooe,setup(e,{expose:t,emit:n}){const s=e,a=n,o=jn();oi({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},E(()=>!!o.title));const r=F(),i=F(),l=F(),c=Ee("drawer"),{t:u}=Bt(),{afterEnter:d,afterLeave:h,beforeLeave:p,visible:v,rendered:m,titleId:g,bodyId:b,zIndex:C,onModalClick:w,onOpenAutoFocus:_,onCloseAutoFocus:x,onFocusoutPrevented:k,onCloseRequested:T,handleClose:I}=pA(s,r),{isHorizontal:O,size:R,isResizing:$}=Loe(s,l,a),M=E(()=>s.modalPenetrable&&!s.modal);return t({handleClose:I,afterEnter:d,afterLeave:h}),(B,U)=>(S(),le(f(Af),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:X(()=>[W(ws,{name:f(c).b("fade"),onAfterEnter:f(d),onAfterLeave:f(h),onBeforeLeave:f(p),persisted:""},{default:X(()=>{var J;return[Ct(W(f(n6),{mask:e.modal,"overlay-class":[f(c).is("drawer"),(J=e.modalClass)!=null?J:"",`${f(c).namespace.value}-modal-drawer`,f(c).is("penetrable",M.value)],"z-index":f(C),onClick:f(w)},{default:X(()=>[W(f($f),{loop:"",trapped:f(v),"focus-trap-el":r.value,"focus-start-el":i.value,onFocusAfterTrapped:f(_),onFocusAfterReleased:f(x),onFocusoutPrevented:f(k),onReleaseRequested:f(T)},{default:X(()=>[A("div",Tt({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:f(g),"aria-describedby":f(b)},B.$attrs,{class:[f(c).b(),e.direction,f(v)&&"open",f(c).is("dragging",f($))],style:{[f(O)?"width":"height"]:f(R)},role:"dialog",onClick:U[1]||(U[1]=ht(()=>{},["stop"]))}),[A("span",{ref_key:"focusStartRef",ref:i,class:D(f(c).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(S(),P("header",{key:0,class:D([f(c).e("header"),e.headerClass])},[B.$slots.title?ue(B.$slots,"title",{key:1},()=>[ie(" DEPRECATED SLOT ")]):ue(B.$slots,"header",{key:0,close:f(I),titleId:f(g),titleClass:f(c).e("title")},()=>[A("span",{id:f(g),role:"heading","aria-level":e.headerAriaLevel,class:D(f(c).e("title"))},ge(e.title),11,$oe)]),e.showClose?(S(),P("button",{key:2,"aria-label":f(u)("el.drawer.close"),class:D(f(c).e("close-btn")),type:"button",onClick:U[0]||(U[0]=(...Y)=>f(I)&&f(I)(...Y))},[W(f(Je),{class:D(f(c).e("close"))},{default:X(()=>[W(f(Ua))]),_:1},8,["class"])],10,Doe)):ie("v-if",!0)],2)):ie("v-if",!0),f(m)?(S(),P("div",{key:1,id:f(b),class:D([f(c).e("body"),e.bodyClass])},[ue(B.$slots,"default")],10,Foe)):ie("v-if",!0),B.$slots.footer?(S(),P("div",{key:2,class:D([f(c).e("footer"),e.footerClass])},[ue(B.$slots,"footer")],2)):ie("v-if",!0),e.resizable?(S(),P("div",{key:3,ref_key:"draggerRef",ref:l,style:Qe({zIndex:f(C)}),class:D(f(c).e("dragger"))},null,6)):ie("v-if",!0)],16,Noe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[jt,f(v)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});const Voe=yt(Boe);var zoe=j({inheritAttrs:!1});function Hoe(e,t,n,s,a,o){return ue(e.$slots,"default")}var Woe=fs(zoe,[["render",Hoe]]),joe=j({name:"ElCollectionItem",inheritAttrs:!1});function Koe(e,t,n,s,a,o){return ue(e.$slots,"default")}var Uoe=fs(joe,[["render",Koe]]);const mA="data-el-collection-item",qoe=e=>{const t=`El${e}Collection`,n=`${t}Item`,s=Symbol(t),a=Symbol(n),o=Object.assign({},Woe,{name:t,setup(){const i=F(),l=new Map;Nt(s,{itemMap:l,getItems:()=>{const u=f(i);if(!u)return[];const d=Array.from(u.querySelectorAll(`[${mA}]`));return[...l.values()].sort((p,v)=>d.indexOf(p.ref)-d.indexOf(v.ref))},collectionRef:i})}}),r=Object.assign({},Uoe,{name:n,setup(i,{attrs:l}){const c=F(),u=Ke(s,void 0);Nt(a,{collectionItemRef:c}),Pt(()=>{const d=f(c);d&&u.itemMap.set(d,{ref:d,...l})}),tn(()=>{const d=f(c);u.itemMap.delete(d)})}});return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:o,ElCollectionItem:r}},Goe=Me({style:{type:re([String,Array,Object])},currentTabId:{type:re(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:re(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Yoe,ElCollectionItem:Xoe,COLLECTION_INJECTION_KEY:gA,COLLECTION_ITEM_INJECTION_KEY:Joe}=qoe("RovingFocusGroup"),a6=Symbol("elRovingFocusGroup"),bA=Symbol("elRovingFocusGroupItem"),Zoe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Qoe=(e,t)=>e,ere=(e,t,n)=>{const s=un(e),a=Qoe(s);return Zoe[a]},tre=(e,t)=>e.map((n,s)=>e[(s+t)%e.length]),yA=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},wA="currentTabIdChange",_A="rovingFocusGroup.entryFocus",nre={bubbles:!1,cancelable:!0};var sre=j({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Goe,emits:[wA,"entryFocus"],setup(e,{emit:t}){var n;const s=F((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=F(!1),o=F(!1),r=F(),{getItems:i}=Ke(gA,void 0),l=E(()=>[{outline:"none"},e.style]),c=g=>{t(wA,g)},u=()=>{a.value=!0},d=_s(g=>{var b;(b=e.onMousedown)==null||b.call(e,g)},()=>{o.value=!0}),h=_s(g=>{var b;(b=e.onFocus)==null||b.call(e,g)},g=>{const b=!f(o),{target:C,currentTarget:w}=g;if(C===w&&b&&!f(a)){const _=new Event(_A,nre);if(w==null||w.dispatchEvent(_),!_.defaultPrevented){const x=i().filter(R=>R.focusable),k=x.find(R=>R.active),T=x.find(R=>R.id===f(s)),O=[k,T,...x].filter(Boolean).map(R=>R.ref);yA(O)}}o.value=!1}),p=_s(g=>{var b;(b=e.onBlur)==null||b.call(e,g)},()=>{a.value=!1}),v=(...g)=>{t("entryFocus",...g)},m=g=>{const b=ere(g);if(b){g.preventDefault();let w=i().filter(_=>_.focusable).map(_=>_.ref);switch(b){case"last":{w.reverse();break}case"prev":case"next":{b==="prev"&&w.reverse();const _=w.indexOf(g.currentTarget);w=e.loop?tre(w,_+1):w.slice(_+1);break}}ze(()=>{yA(w)})}};Nt(a6,{currentTabbedId:ru(s),loop:sn(e,"loop"),tabIndex:E(()=>f(a)?-1:0),rovingFocusGroupRef:r,rovingFocusGroupRootStyle:l,orientation:sn(e,"orientation"),dir:sn(e,"dir"),onItemFocus:c,onItemShiftTab:u,onBlur:p,onFocus:h,onMousedown:d,onKeydown:m}),be(()=>e.currentTabId,g=>{s.value=g??null}),an(r,_A,v)}});function are(e,t,n,s,a,o){return ue(e.$slots,"default")}var ore=fs(sre,[["render",are]]),rre=j({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Yoe,ElRovingFocusGroupImpl:ore}});function ire(e,t,n,s,a,o){const r=Ge("el-roving-focus-group-impl"),i=Ge("el-focus-group-collection");return S(),le(i,null,{default:X(()=>[W(r,Ni(Hi(e.$attrs)),{default:X(()=>[ue(e.$slots,"default")]),_:3},16)]),_:3})}var lre=fs(rre,[["render",ire]]);const l1=Me({trigger:{...ai.trigger,type:re([String,Array])},triggerKeys:{type:re(Array),default:()=>[Te.enter,Te.numpadEnter,Te.space,Te.down]},virtualTriggering:ai.virtualTriggering,virtualRef:ai.virtualRef,effect:{...ln.effect,default:"light"},type:{type:re(String)},placement:{type:re(String),default:"bottom"},popperOptions:{type:re(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:re([Number,String]),default:0},maxHeight:{type:re([Number,String]),default:""},popperClass:ln.popperClass,popperStyle:ln.popperStyle,disabled:Boolean,role:{type:String,values:Q9,default:"menu"},buttonProps:{type:re(Object)},teleported:ln.teleported,appendTo:ln.appendTo,persistent:{type:Boolean,default:!0}}),CA=Me({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:rn}}),cre=Me({onKeydown:{type:re(Function)}}),c1=Symbol("elDropdown"),SA="elDropdown",{ButtonGroup:ure}=Cs;var dre=j({name:"ElDropdown",components:{ElButton:Cs,ElButtonGroup:ure,ElScrollbar:pr,ElTooltip:Ms,ElRovingFocusGroup:lre,ElOnlyChild:sk,ElIcon:Je,ArrowDown:hr},props:l1,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Mt(),s=Ee("dropdown"),{t:a}=Bt(),o=F(),r=F(),i=F(),l=F(),c=F(null),u=F(null),d=F(!1),h=E(()=>({maxHeight:On(e.maxHeight)})),p=E(()=>[s.m(_.value)]),v=E(()=>As(e.trigger)),m=Bs().value,g=E(()=>e.id||m);function b(){var B;(B=i.value)==null||B.onClose(void 0,0)}function C(){var B;(B=i.value)==null||B.onClose()}function w(){var B;(B=i.value)==null||B.onOpen()}const _=rs();function x(...B){t("command",...B)}function k(){}function T(){const B=f(l);v.value.includes("hover")&&(B==null||B.focus({preventScroll:!0})),u.value=null}function I(B){u.value=B}function O(){t("visible-change",!0)}function R(B){var U;d.value=(B==null?void 0:B.type)==="keydown",(U=l.value)==null||U.focus()}function $(){t("visible-change",!1)}return Nt(c1,{contentRef:l,role:E(()=>e.role),triggerId:g,isUsingKeyboard:d,onItemEnter:k,onItemLeave:T,handleClose:C}),Nt(SA,{instance:n,dropdownSize:_,handleClick:b,commandHandler:x,trigger:sn(e,"trigger"),hideOnClick:sn(e,"hideOnClick")}),{t:a,ns:s,scrollbar:c,wrapStyle:h,dropdownTriggerKls:p,dropdownSize:_,triggerId:g,currentTabId:u,handleCurrentTabIdChange:I,handlerMainButtonClick:B=>{t("click",B)},handleClose:C,handleOpen:w,handleBeforeShowTooltip:O,handleShowTooltip:R,handleBeforeHideTooltip:$,popperRef:i,contentRef:l,triggeringElementRef:o,referenceElementRef:r}}});function fre(e,t,n,s,a,o){var r;const i=Ge("el-roving-focus-group"),l=Ge("el-scrollbar"),c=Ge("el-only-child"),u=Ge("el-tooltip"),d=Ge("el-button"),h=Ge("arrow-down"),p=Ge("el-icon"),v=Ge("el-button-group");return S(),P("div",{class:D([e.ns.b(),e.ns.is("disabled",e.disabled)])},[W(u,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":(r=e.virtualRef)!=null?r:e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Aa({content:X(()=>[W(l,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:X(()=>[W(i,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:X(()=>[ue(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:X(()=>[W(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:X(()=>[ue(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(S(),le(v,{key:0},{default:X(()=>[W(d,Tt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:X(()=>[ue(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),W(d,Tt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:X(()=>[W(p,{class:D(e.ns.e("icon"))},{default:X(()=>[W(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ie("v-if",!0)],2)}var hre=fs(dre,[["render",fre]]),pre=j({components:{ElRovingFocusCollectionItem:Xoe},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:s,onItemShiftTab:a,onKeydown:o}=Ke(a6,void 0),r=Bs(),i=F(),l=_s(h=>{t("mousedown",h)},h=>{e.focusable?s(f(r)):h.preventDefault()}),c=_s(h=>{t("focus",h)},()=>{s(f(r))}),u=_s(h=>{t("keydown",h)},h=>{const{shiftKey:p,target:v,currentTarget:m}=h;if(un(h)===Te.tab&&p){a();return}v===m&&o(h)}),d=E(()=>n.value===f(r));return Nt(bA,{rovingFocusGroupItemRef:i,tabIndex:E(()=>f(d)?0:-1),handleMousedown:l,handleFocus:c,handleKeydown:u}),{id:r,handleKeydown:u,handleFocus:c,handleMousedown:l}}});function vre(e,t,n,s,a,o){const r=Ge("el-roving-focus-collection-item");return S(),le(r,{id:e.id,focusable:e.focusable,active:e.active},{default:X(()=>[ue(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var mre=fs(pre,[["render",vre]]),gre=j({name:"DropdownItemImpl",components:{ElIcon:Je},props:CA,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Ee("dropdown"),{role:s}=Ke(c1,void 0),{collectionItemRef:a}=Ke(Joe,void 0),{rovingFocusGroupItemRef:o,tabIndex:r,handleFocus:i,handleKeydown:l,handleMousedown:c}=Ke(bA,void 0),u=s6(a,o),d=E(()=>s.value==="menu"?"menuitem":s.value==="navigation"?"link":"button"),h=_s(p=>{const v=un(p);if([Te.enter,Te.numpadEnter,Te.space].includes(v))return p.preventDefault(),p.stopImmediatePropagation(),t("clickimpl",p),!0},l);return{ns:n,itemRef:u,dataset:{[mA]:""},role:d,tabIndex:r,handleFocus:i,handleKeydown:h,handleMousedown:c}}});const bre=["aria-disabled","tabindex","role"];function yre(e,t,n,s,a,o){const r=Ge("el-icon");return S(),P(He,null,[e.divided?(S(),P("li",{key:0,role:"separator",class:D(e.ns.bem("menu","item","divided"))},null,2)):ie("v-if",!0),A("li",Tt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=ht((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon||e.$slots.icon?(S(),le(r,{key:0},{default:X(()=>[ue(e.$slots,"icon",{},()=>[(S(),le(kt(e.icon)))])]),_:3})):ie("v-if",!0),ue(e.$slots,"default")],16,bre)],64)}var wre=fs(gre,[["render",yre]]);const xA=()=>{const e=Ke(SA,{}),t=E(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}};var _re=j({name:"ElDropdownItem",components:{ElRovingFocusItem:mre,ElDropdownItemImpl:wre},inheritAttrs:!1,props:CA,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:s}=xA(),a=Mt(),{onItemEnter:o,onItemLeave:r}=Ke(c1,void 0),i=_s(d=>(t("pointermove",d),d.defaultPrevented),vk(d=>{if(e.disabled){r(d);return}const h=d.currentTarget;h===document.activeElement||h.contains(document.activeElement)||(o(d),d.defaultPrevented||h==null||h.focus({preventScroll:!0}))})),l=_s(d=>(t("pointerleave",d),d.defaultPrevented),vk(r)),c=_s(d=>{if(!e.disabled)return t("click",d),d.type!=="keydown"&&d.defaultPrevented},d=>{var h,p,v;if(e.disabled){d.stopImmediatePropagation();return}(h=s==null?void 0:s.hideOnClick)!=null&&h.value&&((p=s.handleClick)==null||p.call(s)),(v=s.commandHandler)==null||v.call(s,e.command,a,d)}),u=E(()=>({...e,...n}));return{handleClick:c,handlePointerMove:i,handlePointerLeave:l,propsAndAttrs:u}}});function Cre(e,t,n,s,a,o){const r=Ge("el-dropdown-item-impl"),i=Ge("el-roving-focus-item");return S(),le(i,{focusable:!e.disabled},{default:X(()=>[W(r,Tt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),Aa({default:X(()=>[ue(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:X(()=>[ue(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var kA=fs(_re,[["render",Cre]]),Sre=j({name:"ElDropdownMenu",props:cre,setup(e){const t=Ee("dropdown"),{_elDropdownSize:n}=xA(),s=n.value,{contentRef:a,role:o,triggerId:r,isUsingKeyboard:i,handleClose:l}=Ke(c1,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:u,onBlur:d,onFocus:h,onKeydown:p,onMousedown:v}=Ke(a6,void 0),{collectionRef:m}=Ke(gA,void 0),g=E(()=>[t.b("menu"),t.bm("menu",s==null?void 0:s.value)]),b=s6(a,c,m),C=_s(_=>{var x;(x=e.onKeydown)==null||x.call(e,_)},_=>{const{currentTarget:x,target:k}=_,T=un(_);if(x.contains(k),Te.tab===T)return l();p(_)});function w(_){i.value&&h(_)}return{size:s,rovingFocusGroupRootStyle:u,dropdownKls:g,role:o,triggerId:r,dropdownListWrapperRef:b,handleKeydown:C,onBlur:d,handleFocus:w,onMousedown:v}}});const xre=["role","aria-labelledby"];function kre(e,t,n,s,a,o){return S(),P("ul",{ref:e.dropdownListWrapperRef,class:D(e.dropdownKls),style:Qe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...r)=>e.handleFocus&&e.handleFocus(...r)),onFocusout:t[1]||(t[1]=(...r)=>e.onBlur&&e.onBlur(...r)),onKeydown:t[2]||(t[2]=ht((...r)=>e.handleKeydown&&e.handleKeydown(...r),["self"])),onMousedown:t[3]||(t[3]=ht((...r)=>e.onMousedown&&e.onMousedown(...r),["self"]))},[ue(e.$slots,"default")],46,xre)}var EA=fs(Sre,[["render",kre]]);const Ere=yt(hre,{DropdownItem:kA,DropdownMenu:EA}),Are=Pn(kA),Tre=Pn(EA),Mre=Me({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Pre={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Rre=["id"],Ire=["stop-color"],Ore=["stop-color"],Lre=["id"],Nre=["stop-color"],$re=["stop-color"],Dre=["id"],Fre={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Bre={transform:"translate(-1268.000000, -535.000000)"},Vre={transform:"translate(1268.000000, 535.000000)"},zre=["fill"],Hre=["fill"],Wre={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},jre=["fill"],Kre=["fill"],Ure=["fill"],qre=["fill"],Gre=["fill"],Yre={transform:"translate(53.000000, 45.000000)"},Xre=["fill","xlink:href"],Jre=["fill","mask"],Zre=["fill"];var Qre=j({name:"ImgEmpty",__name:"img-empty",setup(e){const t=Ee("empty"),n=Bs();return(s,a)=>(S(),P("svg",Pre,[A("defs",null,[A("linearGradient",{id:`linearGradient-1-${f(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[A("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Ire),A("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,Ore)],8,Rre),A("linearGradient",{id:`linearGradient-2-${f(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[A("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Nre),A("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,$re)],8,Lre),A("rect",{id:`path-3-${f(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,Dre)]),A("g",Fre,[A("g",Bre,[A("g",Vre,[A("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${f(t).cssVarBlockName("fill-color-3")})`},null,8,zre),A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,Hre),A("g",Wre,[A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,jre),A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,Kre),A("rect",{fill:`url(#linearGradient-1-${f(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,Ure),A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,qre)]),A("rect",{fill:`url(#linearGradient-2-${f(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,Gre),A("g",Yre,[A("use",{fill:`var(${f(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${f(n)}`},null,8,Xre),A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${f(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,Jre)]),A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,Zre)])])])]))}});const eie=["src"],tie={key:1};var nie=j({name:"ElEmpty",__name:"empty",props:Mre,setup(e){const t=e,{t:n}=Bt(),s=Ee("empty"),a=E(()=>t.description||n("el.table.emptyText")),o=E(()=>({width:On(t.imageSize)}));return(r,i)=>(S(),P("div",{class:D(f(s).b())},[A("div",{class:D(f(s).e("image")),style:Qe(o.value)},[e.image?(S(),P("img",{key:0,src:e.image,ondragstart:"return false"},null,8,eie)):ue(r.$slots,"image",{key:1},()=>[W(Qre)])],6),A("div",{class:D(f(s).e("description"))},[r.$slots.description?ue(r.$slots,"description",{key:0}):(S(),P("p",tie,ge(a.value),1))],2),r.$slots.default?(S(),P("div",{key:0,class:D(f(s).e("bottom"))},[ue(r.$slots,"default")],2)):ie("v-if",!0)],2))}});const AA=yt(nie),sie=Me({size:{type:String,values:fr},disabled:Boolean}),aie=Me({...sie,model:Object,rules:{type:re(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:re([Object,Boolean]),default:!0}}),oie={validate:(e,t,n)=>(Ae(e)||Xe(e))&&on(t)&&Xe(n)};function rie(){const e=F([]),t=E(()=>{if(!e.value.length)return"0";const o=Math.max(...e.value);return o?`${o}px`:""});function n(o){const r=e.value.indexOf(o);return r===-1&&t.value,r}function s(o,r){if(o&&r){const i=n(r);e.value.splice(i,1,o)}else o&&e.value.push(o)}function a(o){const r=n(o);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:s,deregisterLabelWidth:a}}const u1=(e,t)=>{const n=As(t).map(s=>Ae(s)?s.join("."):s);return n.length>0?e.filter(s=>s.propString&&n.includes(s.propString)):e};var iie=j({name:"ElForm",__name:"form",props:aie,emits:oie,setup(e,{expose:t,emit:n}){const s=e,a=n,o=F(),r=Yt([]),i=rs(),l=Ee("form"),c=E(()=>{const{labelPosition:k,inline:T}=s;return[l.b(),l.m(i.value||"default"),{[l.m(`label-${k}`)]:k,[l.m("inline")]:T}]}),u=k=>u1(r,[k])[0],d=k=>{r.push(k)},h=k=>{k.prop&&r.splice(r.indexOf(k),1)},p=k=>{s.model&&k&&r.forEach(T=>{if(T.prop&&uV(k,T.prop)){const I=kf(k,T.prop).value;T.setInitialValue(I)}})},v=(k=[])=>{s.model&&u1(r,k).forEach(T=>T.resetField())},m=(k=[])=>{u1(r,k).forEach(T=>T.clearValidate())},g=E(()=>!!s.model),b=k=>{if(r.length===0)return[];const T=u1(r,k);return T.length?T:[]},C=async k=>_(void 0,k),w=async(k=[])=>{if(!g.value)return!1;const T=b(k);if(T.length===0)return!0;let I={};for(const O of T)try{await O.validate(""),O.validateState==="error"&&!O.error&&O.resetField()}catch(R){I={...I,...R}}return Object.keys(I).length===0?!0:Promise.reject(I)},_=async(k=[],T)=>{let I=!1;const O=!Ze(T);try{return I=await w(k),I===!0&&await(T==null?void 0:T(I)),I}catch(R){if(R instanceof Error)throw R;const $=R;if(s.scrollToError&&o.value){const M=o.value.querySelector(`.${l.b()}-item.is-error`);M==null||M.scrollIntoView(s.scrollIntoViewOptions)}return!I&&await(T==null?void 0:T(!1,$)),O&&Promise.reject($)}},x=k=>{var T;const I=u(k);I&&((T=I.$el)==null||T.scrollIntoView(s.scrollIntoViewOptions))};return be(()=>s.rules,()=>{s.validateOnRuleChange&&C().catch(k=>void 0)},{deep:!0,flush:"post"}),Nt(ku,Yt({...ys(s),emit:a,resetFields:v,clearValidate:m,validateField:_,getField:u,addField:d,removeField:h,setInitialValues:p,...rie()})),t({validate:C,validateField:_,resetFields:v,clearValidate:m,scrollToField:x,getField:u,fields:r,setInitialValues:p}),(k,T)=>(S(),P("form",{ref_key:"formRef",ref:o,class:D(c.value)},[ue(k.$slots,"default")],2))}});const lie=["","error","validating","success"],cie=Me({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:re([String,Array])},required:{type:Boolean,default:void 0},rules:{type:re([Object,Array])},error:String,validateStatus:{type:String,values:lie},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:fr}});function Au(){return Au=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d1(e,t,n){return die()?d1=Reflect.construct.bind():d1=function(a,o,r){var i=[null];i.push.apply(i,o);var l=Function.bind.apply(a,i),c=new l;return r&&Gp(c,r.prototype),c},d1.apply(null,arguments)}function fie(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function r6(e){var t=typeof Map=="function"?new Map:void 0;return r6=function(s){if(s===null||!fie(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(s))return t.get(s);t.set(s,a)}function a(){return d1(s,arguments,o6(this).constructor)}return a.prototype=Object.create(s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Gp(a,s)},r6(e)}var hie=/%[sdj%]/g,pie=function(){};function i6(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var s=n.field;t[s]=t[s]||[],t[s].push(n)}),t}function ho(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s=o)return i;switch(i){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return i}});return r}return e}function vie(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ps(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||vie(t)&&typeof e=="string"&&!e)}function mie(e,t,n){var s=[],a=0,o=e.length;function r(i){s.push.apply(s,i||[]),a++,a===o&&n(s)}e.forEach(function(i){t(i,r)})}function TA(e,t,n){var s=0,a=e.length;function o(r){if(r&&r.length){n(r);return}var i=s;s=s+1,i()\[\]\\.,;:\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},Yp={integer:function(t){return Yp.number(t)&&parseInt(t,10)===t},float:function(t){return Yp.number(t)&&!Yp.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"&&!Yp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(OA.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Cie())},hex:function(t){return typeof t=="string"&&!!t.match(OA.hex)}},Sie=function(t,n,s,a,o){if(t.required&&n===void 0){IA(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?Yp[i](n)||a.push(ho(o.messages.types[i],t.fullField,t.type)):i&&typeof n!==t.type&&a.push(ho(o.messages.types[i],t.fullField,t.type))},xie=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(ho(o.messages[d].len,t.fullField,t.len)):i&&!l&&ut.max?a.push(ho(o.messages[d].max,t.fullField,t.max)):i&&l&&(ut.max)&&a.push(ho(o.messages[d].range,t.fullField,t.min,t.max))},jf="enum",kie=function(t,n,s,a,o){t[jf]=Array.isArray(t[jf])?t[jf]:[],t[jf].indexOf(n)===-1&&a.push(ho(o.messages[jf],t.fullField,t[jf].join(", ")))},Eie=function(t,n,s,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(ho(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(ho(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},wn={required:IA,whitespace:_ie,type:Sie,range:xie,enum:kie,pattern:Eie},Aie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ps(n,"string")&&!t.required)return s();wn.required(t,n,a,r,o,"string"),Ps(n,"string")||(wn.type(t,n,a,r,o),wn.range(t,n,a,r,o),wn.pattern(t,n,a,r,o),t.whitespace===!0&&wn.whitespace(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(Ps(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&wn.type(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(n===""&&(n=void 0),Ps(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&(wn.type(t,n,a,r,o),wn.range(t,n,a,r,o))}s(r)},Pie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ps(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&wn.type(t,n,a,r,o)}s(r)},Rie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ps(n)&&!t.required)return s();wn.required(t,n,a,r,o),Ps(n)||wn.type(t,n,a,r,o)}s(r)},Iie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ps(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&(wn.type(t,n,a,r,o),wn.range(t,n,a,r,o))}s(r)},Oie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ps(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&(wn.type(t,n,a,r,o),wn.range(t,n,a,r,o))}s(r)},Lie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(n==null&&!t.required)return s();wn.required(t,n,a,r,o,"array"),n!=null&&(wn.type(t,n,a,r,o),wn.range(t,n,a,r,o))}s(r)},Nie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ps(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&wn.type(t,n,a,r,o)}s(r)},$ie="enum",Die=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ps(n)&&!t.required)return s();wn.required(t,n,a,r,o),n!==void 0&&wn[$ie](t,n,a,r,o)}s(r)},Fie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ps(n,"string")&&!t.required)return s();wn.required(t,n,a,r,o),Ps(n,"string")||wn.pattern(t,n,a,r,o)}s(r)},Bie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ps(n,"date")&&!t.required)return s();if(wn.required(t,n,a,r,o),!Ps(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),wn.type(t,l,a,r,o),l&&wn.range(t,l.getTime(),a,r,o)}}s(r)},Vie=function(t,n,s,a,o){var r=[],i=Array.isArray(n)?"array":typeof n;wn.required(t,n,a,r,o,i),s(r)},l6=function(t,n,s,a,o){var r=t.type,i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ps(n,r)&&!t.required)return s();wn.required(t,n,a,i,o,r),Ps(n,r)||wn.type(t,n,a,i,o)}s(i)},zie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ps(n)&&!t.required)return s();wn.required(t,n,a,r,o)}s(r)},Xp={string:Aie,method:Tie,number:Mie,boolean:Pie,regexp:Rie,integer:Iie,float:Oie,array:Lie,object:Nie,enum:Die,pattern:Fie,date:Bie,url:l6,hex:l6,email:l6,required:Vie,any:zie};function c6(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var u6=c6(),Jp=function(){function e(n){this.rules=null,this._messages=u6,this.define(n)}var t=e.prototype;return t.define=function(s){var a=this;if(!s)throw new Error("Cannot configure a schema with no rules");if(typeof s!="object"||Array.isArray(s))throw new Error("Rules must be an object");this.rules={},Object.keys(s).forEach(function(o){var r=s[o];a.rules[o]=Array.isArray(r)?r:[r]})},t.messages=function(s){return s&&(this._messages=RA(c6(),s)),this._messages},t.validate=function(s,a,o){var r=this;a===void 0&&(a={}),o===void 0&&(o=function(){});var i=s,l=a,c=o;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(m){var g=[],b={};function C(_){if(Array.isArray(_)){var x;g=(x=g).concat.apply(x,_)}else g.push(_)}for(var w=0;w");const a=Ee("form"),o=F(),r=F(0),i=()=>{var u;if((u=o.value)!=null&&u.firstElementChild){const d=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},l=(u="update")=>{ze(()=>{t.default&&e.isAutoWidth&&(u==="update"?r.value=i():u==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},c=()=>l("update");return Pt(()=>{c()}),tn(()=>{l("remove")}),or(()=>c()),be(r,(u,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(u,d))}),En(E(()=>{var u,d;return(d=(u=o.value)==null?void 0:u.firstElementChild)!=null?d:null}),c),()=>{var u,d;if(!t)return null;const{isAutoWidth:h}=e;if(h){const p=n==null?void 0:n.autoLabelWidth,v=s==null?void 0:s.hasLabel,m={};if(v&&p&&p!=="auto"){const g=Math.max(0,Number.parseInt(p,10)-r.value),C=(s.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";g&&(m[C]=`${g}px`)}return W("div",{ref:o,class:[a.be("item","label-wrap")],style:m},[(u=t.default)==null?void 0:u.call(t)])}else return W(He,{ref:o},[(d=t.default)==null?void 0:d.call(t)])}}});const Wie=["role","aria-labelledby"];var NA=j({name:"ElFormItem",__name:"form-item",props:cie,setup(e,{expose:t}){const n=e,s=jn(),a=Ke(ku,void 0),o=Ke(si,void 0),r=rs(void 0,{formItem:!1}),i=Ee("form-item"),l=Bs().value,c=F([]),u=F(""),d=WV(u,100),h=F(""),p=F();let v,m=!1;const g=E(()=>n.labelPosition||(a==null?void 0:a.labelPosition)),b=E(()=>{var ve;return g.value==="top"?{}:{width:On((ve=n.labelWidth)!=null?ve:a==null?void 0:a.labelWidth)}}),C=E(()=>{var ve;if(g.value==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&R)return{};const ce=On((ve=n.labelWidth)!=null?ve:a==null?void 0:a.labelWidth);return!n.label&&!s.label?{marginLeft:ce}:{}}),w=E(()=>[i.b(),i.m(r.value),i.is("error",u.value==="error"),i.is("validating",u.value==="validating"),i.is("success",u.value==="success"),i.is("required",J.value||n.required),i.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:a==null?void 0:a.statusIcon,[i.m(`label-${g.value}`)]:g.value}]),_=E(()=>on(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),x=E(()=>[i.e("error"),{[i.em("error","inline")]:_.value}]),k=E(()=>n.prop?Ae(n.prop)?n.prop.join("."):n.prop:""),T=E(()=>!!(n.label||s.label)),I=E(()=>{var ve;return(ve=n.for)!=null?ve:c.value.length===1?c.value[0]:void 0}),O=E(()=>!I.value&&T.value),R=!!o,$=E(()=>{const ve=a==null?void 0:a.model;if(!(!ve||!n.prop))return kf(ve,n.prop).value}),M=E(()=>{const{required:ve}=n,ce=[];n.rules&&ce.push(...As(n.rules));const Z=a==null?void 0:a.rules;if(Z&&n.prop){const H=kf(Z,n.prop).value;H&&ce.push(...As(H))}if(ve!==void 0){const H=ce.map((ae,de)=>[ae,de]).filter(([ae])=>"required"in ae);if(H.length>0)for(const[ae,de]of H)ae.required!==ve&&(ce[de]={...ae,required:ve});else ce.push({required:ve})}return ce}),B=E(()=>M.value.length>0),U=ve=>M.value.filter(Z=>!Z.trigger||!ve?!0:Ae(Z.trigger)?Z.trigger.includes(ve):Z.trigger===ve).map(({trigger:Z,...H})=>H),J=E(()=>M.value.some(ve=>ve.required)),Y=E(()=>{var ve;return d.value==="error"&&n.showMessage&&((ve=a==null?void 0:a.showMessage)!=null?ve:!0)}),L=E(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),N=ve=>{u.value=ve},V=ve=>{var ce,Z;const{errors:H,fields:ae}=ve;(!H||!ae)&&console.error(ve),N("error"),h.value=H?(Z=(ce=H==null?void 0:H[0])==null?void 0:ce.message)!=null?Z:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,h.value)},z=()=>{N("success"),a==null||a.emit("validate",n.prop,!0,"")},q=async ve=>{const ce=k.value;return new Jp({[ce]:ve}).validate({[ce]:$.value},{firstFields:!0}).then(()=>(z(),!0)).catch(H=>(V(H),Promise.reject(H)))},Q=async(ve,ce)=>{if(m||!n.prop)return!1;const Z=Ze(ce);if(!B.value)return ce==null||ce(!1),!1;const H=U(ve);return H.length===0?(ce==null||ce(!0),!0):(N("validating"),q(H).then(()=>(ce==null||ce(!0),!0)).catch(ae=>{const{fields:de}=ae;return ce==null||ce(!1,de),Z?!1:Promise.reject(de)}))},K=()=>{N(""),h.value="",m=!1},ee=async()=>{const ve=a==null?void 0:a.model;if(!ve||!n.prop)return;const ce=kf(ve,n.prop);m=!0,ce.value=Sy(v),await ze(),K(),m=!1},se=ve=>{c.value.includes(ve)||c.value.push(ve)},pe=ve=>{c.value=c.value.filter(ce=>ce!==ve)},te=ve=>{v=Sy(ve)};be(()=>n.error,ve=>{h.value=ve||"",N(ve?"error":"")},{immediate:!0}),be(()=>n.validateStatus,ve=>N(ve||""));const fe=Yt({...ys(n),$el:p,size:r,validateMessage:h,validateState:u,labelId:l,inputIds:c,isGroup:O,hasLabel:T,fieldValue:$,addInputId:se,removeInputId:pe,resetField:ee,clearValidate:K,validate:Q,propString:k,setInitialValue:te});return Nt(si,fe),Pt(()=>{n.prop&&(a==null||a.addField(fe),v=Sy($.value))}),tn(()=>{a==null||a.removeField(fe)}),t({size:r,validateMessage:h,validateState:u,validate:Q,clearValidate:K,resetField:ee,setInitialValue:te}),(ve,ce)=>{var Z;return S(),P("div",{ref_key:"formItemRef",ref:p,class:D(w.value),role:O.value?"group":void 0,"aria-labelledby":O.value?f(l):void 0},[W(f(Hie),{"is-auto-width":b.value.width==="auto","update-all":((Z=f(a))==null?void 0:Z.labelWidth)==="auto"},{default:X(()=>[e.label||ve.$slots.label?(S(),le(kt(I.value?"label":"div"),{key:0,id:f(l),for:I.value,class:D(f(i).e("label")),style:Qe(b.value)},{default:X(()=>[ue(ve.$slots,"label",{label:L.value},()=>[je(ge(L.value),1)])]),_:3},8,["id","for","class","style"])):ie("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),A("div",{class:D(f(i).e("content")),style:Qe(C.value)},[ue(ve.$slots,"default"),W(zS,{name:`${f(i).namespace.value}-zoom-in-top`},{default:X(()=>[Y.value?ue(ve.$slots,"error",{key:0,error:h.value},()=>[A("div",{class:D(x.value)},ge(h.value),3)]):ie("v-if",!0)]),_:3},8,["name"])],6)],10,Wie)}}});const jie=yt(iie,{FormItem:NA}),Kie=Pn(NA),Uie=Me({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:re([String,Object])},previewSrcList:{type:re(Array),default:()=>Ln([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:re(String)}}),qie={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>at(e),close:()=>!0,show:()=>!0},Gie=Me({urlList:{type:re(Array),default:()=>Ln([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:re(String)}}),Yie={close:()=>!0,error:e=>e instanceof Event,switch:e=>at(e),rotate:e=>at(e)},Xie=["src","crossorigin"];var Jie=j({name:"ElImageViewer",__name:"image-viewer",props:Gie,emits:Yie,setup(e,{expose:t,emit:n}){var s;const a={CONTAIN:{name:"contain",icon:Wr(zy)},ORIGINAL:{name:"original",icon:Wr(i9)}},o=e,r=n;let i;const{t:l}=Bt(),c=Ee("image-viewer"),{nextZIndex:u}=yp(),d=F(),h=F(),p=WI(),v=E(()=>{const{scale:ce,minScale:Z,maxScale:H}=o;return wx(ce,Z,H)}),m=F(!0),g=F(!1),b=F(!1),C=F(o.initialIndex),w=bn(a.CONTAIN),_=F({scale:v.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),x=F((s=o.zIndex)!=null?s:u());i1(b,{ns:c});const k=E(()=>{const{urlList:ce}=o;return ce.length<=1}),T=E(()=>C.value===0),I=E(()=>C.value===o.urlList.length-1),O=E(()=>o.urlList[C.value]),R=E(()=>[c.e("btn"),c.e("prev"),c.is("disabled",!o.infinite&&T.value)]),$=E(()=>[c.e("btn"),c.e("next"),c.is("disabled",!o.infinite&&I.value)]),M=E(()=>{const{scale:ce,deg:Z,offsetX:H,offsetY:ae,enableTransition:de}=_.value;let ye=H/ce,_e=ae/ce;const Se=Z*Math.PI/180,Le=Math.cos(Se),De=Math.sin(Se);ye=ye*Le+_e*De,_e=_e*Le-H/ce*De;const $e={transform:`scale(${ce}) rotate(${Z}deg) translate(${ye}px, ${_e}px)`,transition:de?"transform .3s":""};return w.value.name===a.CONTAIN.name&&($e.maxWidth=$e.maxHeight="100%"),$e}),B=E(()=>`${C.value+1} / ${o.urlList.length}`);function U(){Y(),i==null||i(),b.value=!1,r("close")}function J(){const ce=nc(H=>{switch(un(H)){case Te.esc:o.closeOnPressEscape&&U();break;case Te.space:Q();break;case Te.left:ee();break;case Te.up:pe("zoomIn");break;case Te.right:se();break;case Te.down:pe("zoomOut");break}}),Z=nc(H=>{const ae=H.deltaY||H.deltaX;pe(ae<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});p.run(()=>{an(document,"keydown",ce),an(d,"wheel",Z)})}function Y(){p.stop()}function L(){m.value=!1}function N(ce){g.value=!0,m.value=!1,r("error",ce),ce.target.alt=l("el.image.error")}function V(ce){if(m.value||ce.button!==0||!d.value)return;_.value.enableTransition=!1;const{offsetX:Z,offsetY:H}=_.value,ae=ce.pageX,de=ce.pageY,ye=nc(Le=>{_.value={..._.value,offsetX:Z+Le.pageX-ae,offsetY:H+Le.pageY-de}}),_e=an(document,"mousemove",ye),Se=an(document,"mouseup",()=>{_e(),Se()});ce.preventDefault()}function z(ce){if(m.value||!d.value||ce.touches.length!==1)return;_.value.enableTransition=!1;const{offsetX:Z,offsetY:H}=_.value,{pageX:ae,pageY:de}=ce.touches[0],ye=nc(Le=>{const De=Le.touches[0];_.value={..._.value,offsetX:Z+De.pageX-ae,offsetY:H+De.pageY-de}}),_e=an(document,"touchmove",ye),Se=an(document,"touchend",()=>{_e(),Se()});ce.preventDefault()}function q(){_.value={scale:v.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function Q(){if(m.value||g.value)return;const ce=_p(a),Z=Object.values(a),H=w.value.name,de=(Z.findIndex(ye=>ye.name===H)+1)%ce.length;w.value=a[ce[de]],q()}function K(ce){g.value=!1;const Z=o.urlList.length;C.value=(ce+Z)%Z}function ee(){T.value&&!o.infinite||K(C.value-1)}function se(){I.value&&!o.infinite||K(C.value+1)}function pe(ce,Z={}){if(m.value||g.value)return;const{minScale:H,maxScale:ae}=o,{zoomRate:de,rotateDeg:ye,enableTransition:_e}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Z};switch(ce){case"zoomOut":_.value.scale>H&&(_.value.scale=Number.parseFloat((_.value.scale/de).toFixed(3)));break;case"zoomIn":_.value.scale0)return ce.preventDefault(),!1}}return be(()=>v.value,ce=>{_.value.scale=ce}),be(O,()=>{ze(()=>{const ce=h.value;ce!=null&&ce.complete||(m.value=!0)})}),be(C,ce=>{q(),r("switch",ce)}),Pt(()=>{b.value=!0,J(),i=an("wheel",ve,{passive:!1})}),t({setActiveItem:K}),(ce,Z)=>(S(),le(f(Af),{to:"body",disabled:!e.teleported},{default:X(()=>[W(ws,{name:"viewer-fade",appear:""},{default:X(()=>[A("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:D(f(c).e("wrapper")),style:Qe({zIndex:x.value})},[W(f($f),{loop:"",trapped:"","focus-trap-el":d.value,"focus-start-el":"container",onFocusoutPrevented:te,onReleaseRequested:fe},{default:X(()=>[A("div",{class:D(f(c).e("mask")),onClick:Z[0]||(Z[0]=ht(H=>e.hideOnClickModal&&U(),["self"]))},null,2),ie(" CLOSE "),A("span",{class:D([f(c).e("btn"),f(c).e("close")]),onClick:U},[W(f(Je),null,{default:X(()=>[W(f(Ua))]),_:1})],2),ie(" ARROW "),k.value?ie("v-if",!0):(S(),P(He,{key:0},[A("span",{class:D(R.value),onClick:ee},[W(f(Je),null,{default:X(()=>[W(f($o))]),_:1})],2),A("span",{class:D($.value),onClick:se},[W(f(Je),null,{default:X(()=>[W(f(Ds))]),_:1})],2)],64)),ce.$slots.progress||e.showProgress?(S(),P("div",{key:1,class:D([f(c).e("btn"),f(c).e("progress")])},[ue(ce.$slots,"progress",{activeIndex:C.value,total:e.urlList.length},()=>[je(ge(B.value),1)])],2)):ie("v-if",!0),ie(" ACTIONS "),A("div",{class:D([f(c).e("btn"),f(c).e("actions")])},[A("div",{class:D(f(c).e("actions__inner"))},[ue(ce.$slots,"toolbar",{actions:pe,prev:ee,next:se,reset:Q,activeIndex:C.value,setActiveItem:K},()=>[W(f(Je),{onClick:Z[1]||(Z[1]=H=>pe("zoomOut"))},{default:X(()=>[W(f(Uy))]),_:1}),W(f(Je),{onClick:Z[2]||(Z[2]=H=>pe("zoomIn"))},{default:X(()=>[W(f(Mg))]),_:1}),A("i",{class:D(f(c).e("actions__divider"))},null,2),W(f(Je),{onClick:Q},{default:X(()=>[(S(),le(kt(w.value.icon)))]),_:1}),A("i",{class:D(f(c).e("actions__divider"))},null,2),W(f(Je),{onClick:Z[3]||(Z[3]=H=>pe("anticlockwise"))},{default:X(()=>[W(f(Tg))]),_:1}),W(f(Je),{onClick:Z[4]||(Z[4]=H=>pe("clockwise"))},{default:X(()=>[W(f(r9))]),_:1})])],2)],2),ie(" CANVAS "),A("div",{class:D(f(c).e("canvas"))},[g.value&&ce.$slots["viewer-error"]?ue(ce.$slots,"viewer-error",{key:0,activeIndex:C.value,src:O.value}):(S(),P("img",{ref_key:"imgRef",ref:h,key:O.value,src:O.value,style:Qe(M.value),class:D(f(c).e("img")),crossorigin:e.crossorigin,onLoad:L,onError:N,onMousedown:V,onTouchstart:z},null,46,Xie))],2),ue(ce.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});const $A=yt(Jie),Zie=["src","loading","crossorigin"],Qie={key:0};var ele=j({name:"ElImage",inheritAttrs:!1,__name:"image",props:Uie,emits:qie,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Bt(),r=Ee("image"),i=zi(),l=E(()=>hp(Object.entries(i).filter(([L])=>/^(data-|on[A-Z])/i.test(L)||["id","style"].includes(L)))),c=Ng({excludeListeners:!0,excludeKeys:E(()=>Object.keys(l.value))}),u=F(),d=F(!1),h=F(!0),p=F(!1),v=F(),m=F(),g=Xt&&"loading"in HTMLImageElement.prototype;let b;const C=E(()=>[r.e("inner"),_.value&&r.e("preview"),h.value&&r.is("loading")]),w=E(()=>{const{fit:L}=s;return Xt&&L?{objectFit:L}:{}}),_=E(()=>{const{previewSrcList:L}=s;return Ae(L)&&L.length>0}),x=E(()=>{const{previewSrcList:L,initialIndex:N}=s;let V=N;return N>L.length-1&&(V=0),V}),k=E(()=>s.loading==="eager"?!1:!g&&s.loading==="lazy"||s.lazy),T=()=>{Xt&&(h.value=!0,d.value=!1,u.value=s.src)};function I(L){h.value=!1,d.value=!1,a("load",L)}function O(L){h.value=!1,d.value=!0,a("error",L)}function R(L){L&&(T(),B())}const $=Cx(R,200,!0);async function M(){var L;if(!Xt)return;await ze();const{scrollContainer:N}=s;if(ja(N))m.value=N;else if(Xe(N)&&N!=="")m.value=(L=document.querySelector(N))!=null?L:void 0;else if(v.value){const z=$y(v.value);m.value=mp(z)?void 0:z}const{stop:V}=JV(v,([z])=>{$(z.isIntersecting)},{root:m});b=V}function B(){!Xt||!$||(b==null||b(),m.value=void 0,b=void 0)}function U(){_.value&&(p.value=!0,a("show"))}function J(){p.value=!1,a("close")}function Y(L){a("switch",L)}return be(()=>s.src,()=>{k.value?(h.value=!0,d.value=!1,B(),M()):T()}),Pt(()=>{k.value?M():T()}),t({showPreview:U}),(L,N)=>(S(),P("div",Tt({ref_key:"container",ref:v},l.value,{class:[f(r).b(),L.$attrs.class]}),[d.value?ue(L.$slots,"error",{key:0},()=>[A("div",{class:D(f(r).e("error"))},ge(f(o)("el.image.error")),3)]):(S(),P(He,{key:1},[u.value!==void 0?(S(),P("img",Tt({key:0},f(c),{src:u.value,loading:e.loading,style:w.value,class:C.value,crossorigin:e.crossorigin,onClick:U,onLoad:I,onError:O}),null,16,Zie)):ie("v-if",!0),h.value?(S(),P("div",{key:1,class:D(f(r).e("wrapper"))},[ue(L.$slots,"placeholder",{},()=>[A("div",{class:D(f(r).e("placeholder"))},null,2)])],2)):ie("v-if",!0)],64)),_.value?(S(),P(He,{key:2},[p.value?(S(),le(f($A),{key:0,"z-index":e.zIndex,"initial-index":x.value,infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,scale:e.scale,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:J,onSwitch:Y},Aa({toolbar:X(V=>[ue(L.$slots,"toolbar",Ni(Hi(V)))]),default:X(()=>[L.$slots.viewer?(S(),P("div",Qie,[ue(L.$slots,"viewer")])):ie("v-if",!0)]),_:2},[L.$slots.progress?{name:"progress",fn:X(V=>[ue(L.$slots,"progress",Ni(Hi(V)))]),key:"0"}:void 0,L.$slots["viewer-error"]?{name:"viewer-error",fn:X(V=>[ue(L.$slots,"viewer-error",Ni(Hi(V)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):ie("v-if",!0)],64)):ie("v-if",!0)],16))}});const tle=yt(ele),nle=Me({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:ds,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:re([String,Number,null]),validator:e=>e===null||at(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...ca(["ariaLabel"]),inputmode:{type:re(String),default:void 0},align:{type:re(String),default:"center"},disabledScientific:Boolean}),sle={[Dt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[os]:e=>at(e)||Xn(e),[mt]:e=>at(e)||Xn(e)},ale=["aria-label"],ole=["aria-label"];var rle=j({name:"ElInputNumber",__name:"input-number",props:nle,emits:sle,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Bt(),r=Ee("input-number"),i=F(),l=Yt({currentValue:s.modelValue,userInput:null}),{formItem:c}=Ts(),u=E(()=>at(s.modelValue)&&s.modelValue<=s.min),d=E(()=>at(s.modelValue)&&s.modelValue>=s.max),h=E(()=>{const L=C(s.step);return Ht(s.precision)?Math.max(C(s.modelValue),L):(L>s.precision,s.precision)}),p=E(()=>s.controls&&s.controlsPosition==="right"),v=rs(),m=Nn(),g=E(()=>{if(l.userInput!==null)return l.userInput;let L=l.currentValue;if(Xn(L))return"";if(at(L)){if(Number.isNaN(L))return"";Ht(s.precision)||(L=L.toFixed(s.precision))}return L}),b=(L,N)=>{if(Ht(N)&&(N=h.value),N===0)return Math.round(L);let V=String(L);const z=V.indexOf(".");if(z===-1||!V.replace(".","").split("")[z+N])return L;const K=V.length;return V.charAt(K-1)==="5"&&(V=`${V.slice(0,Math.max(0,K-1))}6`),Number.parseFloat(Number(V).toFixed(N))},C=L=>{if(Xn(L))return 0;const N=L.toString(),V=N.indexOf(".");let z=0;return V!==-1&&(z=N.length-V-1),z},w=(L,N=1)=>at(L)?L>=Number.MAX_SAFE_INTEGER&&N===1||L<=Number.MIN_SAFE_INTEGER&&N===-1?L:b(L+s.step*N):l.currentValue,_=L=>{const N=un(L),V=mk(L);if(s.disabledScientific&&["e","E"].includes(V)){L.preventDefault();return}switch(N){case Te.up:{L.preventDefault(),x();break}case Te.down:{L.preventDefault(),k();break}}},x=()=>{if(s.readonly||m.value||d.value)return;const L=Number(g.value)||0,N=w(L);I(N),a(os,l.currentValue),J()},k=()=>{if(s.readonly||m.value||u.value)return;const L=Number(g.value)||0,N=w(L,-1);I(N),a(os,l.currentValue),J()},T=(L,N)=>{const{max:V,min:z,step:q,precision:Q,stepStrictly:K,valueOnClear:ee}=s;VV||seV?V:z,N&&a(mt,se)),se},I=(L,N=!0)=>{var V;const z=l.currentValue,q=T(L);if(!N){a(mt,q);return}l.userInput=null,!(z===q&&L)&&(a(mt,q),z!==q&&a(Dt,q,z),s.validateEvent&&((V=c==null?void 0:c.validate)==null||V.call(c,"change").catch(Q=>void 0)),l.currentValue=q)},O=L=>{l.userInput=L;const N=L===""?null:Number(L);a(os,N),I(N,!1)},R=L=>{const N=L!==""?Number(L):"";(at(N)&&!Number.isNaN(N)||L==="")&&I(N),J(),l.userInput=null},$=()=>{var L,N;(N=(L=i.value)==null?void 0:L.focus)==null||N.call(L)},M=()=>{var L,N;(N=(L=i.value)==null?void 0:L.blur)==null||N.call(L)},B=L=>{a("focus",L)},U=L=>{var N,V;l.userInput=null,l.currentValue===null&&((N=i.value)!=null&&N.input)&&(i.value.input.value=""),a("blur",L),s.validateEvent&&((V=c==null?void 0:c.validate)==null||V.call(c,"blur").catch(z=>void 0))},J=()=>{l.currentValue!==s.modelValue&&(l.currentValue=s.modelValue)},Y=L=>{document.activeElement===L.target&&L.preventDefault()};return be(()=>s.modelValue,(L,N)=>{const V=T(L,!0);l.userInput===null&&V!==N&&(l.currentValue=V)},{immediate:!0}),be(()=>s.precision,()=>{l.currentValue=T(s.modelValue)}),Pt(()=>{var L;const{min:N,max:V,modelValue:z}=s,q=(L=i.value)==null?void 0:L.input;if(q.setAttribute("role","spinbutton"),Number.isFinite(V)?q.setAttribute("aria-valuemax",String(V)):q.removeAttribute("aria-valuemax"),Number.isFinite(N)?q.setAttribute("aria-valuemin",String(N)):q.removeAttribute("aria-valuemin"),q.setAttribute("aria-valuenow",l.currentValue||l.currentValue===0?String(l.currentValue):""),q.setAttribute("aria-disabled",String(m.value)),!at(z)&&z!=null){let Q=Number(z);Number.isNaN(Q)&&(Q=null),a(mt,Q)}q.addEventListener("wheel",Y,{passive:!1})}),or(()=>{var L,N;const V=(L=i.value)==null?void 0:L.input;V==null||V.setAttribute("aria-valuenow",`${(N=l.currentValue)!=null?N:""}`)}),t({focus:$,blur:M}),(L,N)=>(S(),P("div",{class:D([f(r).b(),f(r).m(f(v)),f(r).is("disabled",f(m)),f(r).is("without-controls",!e.controls),f(r).is("controls-right",p.value),f(r).is(e.align,!!e.align)]),onDragstart:N[0]||(N[0]=ht(()=>{},["prevent"]))},[e.controls?Ct((S(),P("span",{key:0,role:"button","aria-label":f(o)("el.inputNumber.decrease"),class:D([f(r).e("decrease"),f(r).is("disabled",u.value)]),onKeydown:Fn(k,["enter"])},[ue(L.$slots,"decrease-icon",{},()=>[W(f(Je),null,{default:X(()=>[p.value?(S(),le(f(hr),{key:0})):(S(),le(f(e9),{key:1}))]),_:1})])],42,ale)),[[f(Qg),k]]):ie("v-if",!0),e.controls?Ct((S(),P("span",{key:1,role:"button","aria-label":f(o)("el.inputNumber.increase"),class:D([f(r).e("increase"),f(r).is("disabled",d.value)]),onKeydown:Fn(x,["enter"])},[ue(L.$slots,"increase-icon",{},()=>[W(f(Je),null,{default:X(()=>[p.value?(S(),le(f(Sp),{key:0})):(S(),le(f(Wy),{key:1}))]),_:1})])],42,ole)),[[f(Qg),x]]):ie("v-if",!0),W(f(ua),{id:e.id,ref_key:"input",ref:i,type:"number",step:e.step,"model-value":g.value,placeholder:e.placeholder,readonly:e.readonly,disabled:f(m),size:f(v),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:_,onBlur:U,onFocus:B,onInput:O,onChange:R},Aa({_:2},[L.$slots.prefix?{name:"prefix",fn:X(()=>[ue(L.$slots,"prefix")]),key:"0"}:void 0,L.$slots.suffix?{name:"suffix",fn:X(()=>[ue(L.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}});const DA=yt(rle),ile=Me({modelValue:{type:re(Array)},max:Number,tagType:{...ol.type,default:"info"},tagEffect:ol.effect,effect:{type:re(String),default:"light"},trigger:{type:re(String),default:Te.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:ds,clearable:Boolean,clearIcon:{type:rn,default:Do},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:re(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),lle={[mt]:e=>Ae(e)||Ht(e),[Dt]:e=>Ae(e)||Ht(e),[os]:e=>Xe(e),"add-tag":e=>Xe(e)||Ae(e),"remove-tag":(e,t)=>Xe(e)&&at(t),"drag-tag":(e,t,n)=>at(e)&&at(t)&&Xe(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function cle({props:e,emit:t,formItem:n}){const s=Nn(),a=rs(),o=bn(),r=F(),i=F(),l=E(()=>["small"].includes(a.value)?"small":"default"),c=E(()=>{var J;return(J=e.modelValue)!=null&&J.length?void 0:e.placeholder}),u=E(()=>!(e.readonly||s.value)),d=E(()=>{var J,Y;return Ht(e.max)?!1:((Y=(J=e.modelValue)==null?void 0:J.length)!=null?Y:0)>=e.max}),h=E(()=>{var J;return e.collapseTags?(J=e.modelValue)==null?void 0:J.slice(0,e.maxCollapseTags):e.modelValue}),p=E(()=>{var J;return e.collapseTags?(J=e.modelValue)==null?void 0:J.slice(e.maxCollapseTags):[]}),v=J=>{var Y;const L=[...(Y=e.modelValue)!=null?Y:[],...As(J)];t(mt,L),t(Dt,L),t("add-tag",J),r.value=void 0},m=J=>{var Y,L;const N=J.split(e.delimiter).filter(V=>V&&V!==J);if(e.max){const V=e.max-((L=(Y=e.modelValue)==null?void 0:Y.length)!=null?L:0);N.splice(V)}return N.length===1?N[0]:N},g=J=>{if(d.value){r.value=void 0;return}if(!$.value){if(e.delimiter&&r.value){const Y=m(r.value);Y.length&&v(Y)}t(os,J.target.value)}},b=J=>{var Y;if($.value)return;switch(un(J)){case e.trigger:J.preventDefault(),J.stopPropagation(),w();break;case Te.numpadEnter:e.trigger===Te.enter&&(J.preventDefault(),J.stopPropagation(),w());break;case Te.backspace:!r.value&&((Y=e.modelValue)!=null&&Y.length)&&(J.preventDefault(),J.stopPropagation(),_(e.modelValue.length-1));break}},C=J=>{if($.value||!V9())return;switch(un(J)){case Te.space:e.trigger===Te.space&&(J.preventDefault(),J.stopPropagation(),w());break}},w=()=>{var J;const Y=(J=r.value)==null?void 0:J.trim();!Y||d.value||v(Y)},_=J=>{var Y;const L=((Y=e.modelValue)!=null?Y:[]).slice(),[N]=L.splice(J,1);t(mt,L),t(Dt,L),t("remove-tag",N,J)},x=()=>{r.value=void 0,t(mt,void 0),t(Dt,void 0),t("clear")},k=(J,Y,L)=>{var N;const V=((N=e.modelValue)!=null?N:[]).slice(),[z]=V.splice(J,1),q=Y>J&&L==="before"?-1:Y{var J;(J=o.value)==null||J.focus()},I=()=>{var J;(J=o.value)==null||J.blur()},{wrapperRef:O,isFocused:R}=tl(o,{disabled:s,beforeBlur(J){var Y;return(Y=i.value)==null?void 0:Y.isFocusInsideContent(J)},afterBlur(){var J;e.saveOnBlur?w():r.value=void 0,e.validateEvent&&((J=n==null?void 0:n.validate)==null||J.call(n,"blur").catch(Y=>void 0))}}),{isComposing:$,handleCompositionStart:M,handleCompositionUpdate:B,handleCompositionEnd:U}=Dp({afterComposition:g});return be(()=>e.modelValue,()=>{var J;e.validateEvent&&((J=n==null?void 0:n.validate)==null||J.call(n,Dt).catch(Y=>void 0))}),{inputRef:o,wrapperRef:O,tagTooltipRef:i,isFocused:R,isComposing:$,inputValue:r,size:a,tagSize:l,placeholder:c,closable:u,disabled:s,inputLimit:d,showTagList:h,collapseTagList:p,handleDragged:k,handleInput:g,handleKeydown:b,handleKeyup:C,handleAddTag:w,handleRemoveTag:_,handleClear:x,handleCompositionStart:M,handleCompositionUpdate:B,handleCompositionEnd:U,focus:T,blur:I}}function ule(){const e=F(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function dle({wrapperRef:e,handleDragged:t,afterDragged:n}){const s=Ee("input-tag"),a=bn(),o=F(!1);let r,i,l,c;function u(v){return`.${s.e("inner")} .${s.namespace.value}-tag:nth-child(${v+1})`}function d(v,m){r=m,i=e.value.querySelector(u(m)),i&&(i.style.opacity="0.5"),v.dataTransfer.effectAllowed="move"}function h(v,m){if(l=m,v.preventDefault(),v.dataTransfer.dropEffect="move",Ht(r)||r===m){o.value=!1;return}const g=e.value.querySelector(u(m)).getBoundingClientRect(),b=r+1!==m,C=r-1!==m,w=v.clientX-g.left,_=b?C?.5:1:-1,x=C?b?.5:0:1;w<=g.width*_?c="before":w>g.width*x?c="after":c=void 0;const k=e.value.querySelector(`.${s.e("inner")}`),T=k.getBoundingClientRect(),I=Number.parseFloat(Xi(k,"gap"))/2,O=g.top-T.top;let R=-9999;if(c==="before")R=Math.max(g.left-T.left-I,Math.floor(-I/2));else if(c==="after"){const $=g.right-T.left;R=$+(T.width===$?Math.floor(I/2):I)}Fx(a.value,{top:`${O}px`,left:`${R}px`}),o.value=!!c}function p(v){v.preventDefault(),i&&(i.style.opacity=""),c&&!Ht(r)&&!Ht(l)&&r!==l&&t(r,l,c),o.value=!1,r=void 0,i=null,l=void 0,c=void 0,n==null||n()}return{dropIndicatorRef:a,showDropIndicator:o,handleDragStart:d,handleDragOver:h,handleDragEnd:p}}function fle({props:e,isFocused:t,hovering:n,disabled:s,inputValue:a,size:o,validateState:r,validateIcon:i,needStatusIcon:l}){const c=zi(),u=jn(),d=Ee("input-tag"),h=Ee("input"),p=F(),v=F(),m=E(()=>[d.b(),d.is("focused",t.value),d.is("hovering",n.value),d.is("disabled",s.value),d.m(o.value),d.e("wrapper"),c.class]),g=E(()=>[c.style]),b=E(()=>{var O,R;return[d.e("inner"),d.is("draggable",e.draggable),d.is("left-space",!((O=e.modelValue)!=null&&O.length)&&!u.prefix),d.is("right-space",!((R=e.modelValue)!=null&&R.length)&&!w.value)]}),C=E(()=>{var O;return e.clearable&&!s.value&&!e.readonly&&(((O=e.modelValue)==null?void 0:O.length)||a.value)&&(t.value||n.value)}),w=E(()=>u.suffix||C.value||r.value&&i.value&&l.value),_=Yt({innerWidth:0,collapseItemWidth:0}),x=()=>{if(!v.value)return 0;const O=window.getComputedStyle(v.value);return Number.parseFloat(O.gap||"6px")},k=()=>{_.innerWidth=Number.parseFloat(window.getComputedStyle(v.value).width)},T=()=>{_.collapseItemWidth=p.value.getBoundingClientRect().width},I=E(()=>{if(!e.collapseTags)return{};const O=x(),R=O+Ug,$=p.value&&e.maxCollapseTags===1?_.innerWidth-_.collapseItemWidth-O-R:_.innerWidth-R;return{maxWidth:`${Math.max($,0)}px`}});return En(v,k),En(p,T),{ns:d,nsInput:h,containerKls:m,containerStyle:g,innerKls:b,showClear:C,showSuffix:w,tagStyle:I,collapseItemRef:p,innerRef:v}}const hle=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],ple=["textContent"];var vle=j({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:ile,emits:lle,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ng(),r=jn(),{form:i,formItem:l}=Ts(),{inputId:c}=uo(s,{formItemContext:l}),u=E(()=>{var $e;return($e=i==null?void 0:i.statusIcon)!=null?$e:!1}),d=E(()=>(l==null?void 0:l.validateState)||""),h=E(()=>d.value&&Pg[d.value]),{inputRef:p,wrapperRef:v,tagTooltipRef:m,isFocused:g,inputValue:b,size:C,tagSize:w,placeholder:_,closable:x,disabled:k,showTagList:T,collapseTagList:I,handleDragged:O,handleInput:R,handleKeydown:$,handleKeyup:M,handleRemoveTag:B,handleClear:U,handleCompositionStart:J,handleCompositionUpdate:Y,handleCompositionEnd:L,focus:N,blur:V}=cle({props:s,emit:a,formItem:l}),{hovering:z,handleMouseEnter:q,handleMouseLeave:Q}=ule(),{calculatorRef:K,inputStyle:ee}=T3(),{dropIndicatorRef:se,showDropIndicator:pe,handleDragStart:te,handleDragOver:fe,handleDragEnd:ve}=dle({wrapperRef:v,handleDragged:O,afterDragged:N}),{ns:ce,nsInput:Z,containerKls:H,containerStyle:ae,innerKls:de,showClear:ye,showSuffix:_e,tagStyle:Se,collapseItemRef:Le,innerRef:De}=fle({props:s,hovering:z,isFocused:g,inputValue:b,disabled:k,size:C,validateState:d,validateIcon:h,needStatusIcon:u});return t({focus:N,blur:V}),($e,Ce)=>(S(),P("div",{ref_key:"wrapperRef",ref:v,class:D(f(H)),style:Qe(f(ae)),onMouseenter:Ce[8]||(Ce[8]=(...Oe)=>f(q)&&f(q)(...Oe)),onMouseleave:Ce[9]||(Ce[9]=(...Oe)=>f(Q)&&f(Q)(...Oe))},[f(r).prefix?(S(),P("div",{key:0,class:D(f(ce).e("prefix"))},[ue($e.$slots,"prefix")],2)):ie("v-if",!0),A("div",{ref_key:"innerRef",ref:De,class:D(f(de))},[(S(!0),P(He,null,Et(f(T),(Oe,Ie)=>(S(),le(f(rl),{key:Ie,size:f(w),closable:f(x),type:e.tagType,effect:e.tagEffect,draggable:f(x)&&e.draggable,style:Qe(f(Se)),"disable-transitions":"",onClose:We=>f(B)(Ie),onDragstart:We=>f(te)(We,Ie),onDragover:We=>f(fe)(We,Ie),onDragend:f(ve),onDrop:Ce[0]||(Ce[0]=ht(()=>{},["stop"]))},{default:X(()=>[ue($e.$slots,"tag",{value:Oe,index:Ie},()=>[je(ge(Oe),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),e.collapseTags&&e.modelValue&&e.modelValue.length>e.maxCollapseTags?(S(),le(f(Ms),{key:0,ref_key:"tagTooltipRef",ref:m,disabled:!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom"},{default:X(()=>[A("div",{ref_key:"collapseItemRef",ref:Le,class:D(f(ce).e("collapse-tag"))},[W(f(rl),{closable:!1,size:f(w),type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:X(()=>[je(" + "+ge(e.modelValue.length-e.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],2)]),content:X(()=>[A("div",{class:D(f(ce).e("input-tag-list"))},[(S(!0),P(He,null,Et(f(I),(Oe,Ie)=>(S(),le(f(rl),{key:Ie,size:f(w),closable:f(x),type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:We=>f(B)(Ie+e.maxCollapseTags)},{default:X(()=>[ue($e.$slots,"tag",{value:Oe,index:Ie+e.maxCollapseTags},()=>[je(ge(Oe),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):ie("v-if",!0),A("div",{class:D(f(ce).e("input-wrapper"))},[Ct(A("input",Tt({id:f(c),ref_key:"inputRef",ref:p,"onUpdate:modelValue":Ce[1]||(Ce[1]=Oe=>yn(b)?b.value=Oe:null)},f(o),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:f(k),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:f(_),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:f(ce).e("input"),style:f(ee),onCompositionstart:Ce[2]||(Ce[2]=(...Oe)=>f(J)&&f(J)(...Oe)),onCompositionupdate:Ce[3]||(Ce[3]=(...Oe)=>f(Y)&&f(Y)(...Oe)),onCompositionend:Ce[4]||(Ce[4]=(...Oe)=>f(L)&&f(L)(...Oe)),onInput:Ce[5]||(Ce[5]=(...Oe)=>f(R)&&f(R)(...Oe)),onKeydown:Ce[6]||(Ce[6]=(...Oe)=>f($)&&f($)(...Oe)),onKeyup:Ce[7]||(Ce[7]=(...Oe)=>f(M)&&f(M)(...Oe))}),null,16,hle),[[ag,f(b)]]),A("span",{ref_key:"calculatorRef",ref:K,"aria-hidden":"true",class:D(f(ce).e("input-calculator")),textContent:ge(f(b))},null,10,ple)],2),Ct(A("div",{ref_key:"dropIndicatorRef",ref:se,class:D(f(ce).e("drop-indicator"))},null,2),[[jt,f(pe)]])],2),f(_e)?(S(),P("div",{key:1,class:D(f(ce).e("suffix"))},[ue($e.$slots,"suffix"),f(ye)?(S(),le(f(Je),{key:0,class:D([f(ce).e("icon"),f(ce).e("clear")]),onMousedown:ht(f(en),["prevent"]),onClick:f(U)},{default:X(()=>[(S(),le(kt(e.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):ie("v-if",!0),d.value&&h.value&&u.value?(S(),le(f(Je),{key:1,class:D([f(Z).e("icon"),f(Z).e("validateIcon"),f(Z).is("loading",d.value==="validating")])},{default:X(()=>[(S(),le(kt(h.value)))]),_:1},8,["class"])):ie("v-if",!0)],2)):ie("v-if",!0)],38))}});const mle=yt(vle),gle=Me({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:rn}}),ble={click:e=>e instanceof MouseEvent},yle=["href","target"];var wle=j({name:"ElLink",__name:"link",props:gle,emits:ble,setup(e,{emit:t}){const n=e,s=t,a=Ef("link");oi({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},E(()=>on(n.underline)));const o=Ee("link"),r=E(()=>{var c,u,d;return[o.b(),o.m((d=(u=n.type)!=null?u:(c=a.value)==null?void 0:c.type)!=null?d:"default"),o.is("disabled",n.disabled),o.is("underline",i.value==="always"),o.is("hover-underline",i.value==="hover"&&!n.disabled)]}),i=E(()=>{var c,u,d;return on(n.underline)?n.underline?"hover":"never":(d=(u=n.underline)!=null?u:(c=a.value)==null?void 0:c.underline)!=null?d:"hover"});function l(c){n.disabled||s("click",c)}return(c,u)=>(S(),P("a",{class:D(r.value),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:l},[e.icon?(S(),le(f(Je),{key:0},{default:X(()=>[(S(),le(kt(e.icon)))]),_:1})):ie("v-if",!0),c.$slots.default?(S(),P("span",{key:1,class:D(f(o).e("inner"))},[ue(c.$slots,"default")],2)):ie("v-if",!0),c.$slots.icon?ue(c.$slots,"icon",{key:2}):ie("v-if",!0)],10,yle))}});const _le=yt(wle);var Cle=Object.defineProperty,Sle=(e,t,n)=>t in e?Cle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FA=(e,t,n)=>Sle(e,typeof t!="symbol"?t+"":t,n);let xle=class{constructor(t,n){this.parent=t,this.domNode=n,FA(this,"subMenuItems"),FA(this,"subIndex",0),this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",s=>{const a=un(s);let o=!1;switch(a){case Te.down:{this.gotoSubIndex(this.subIndex+1),o=!0;break}case Te.up:{this.gotoSubIndex(this.subIndex-1),o=!0;break}case Te.tab:{$g(t,"mouseleave");break}case Te.enter:case Te.numpadEnter:case Te.space:{o=!0,s.currentTarget.click();break}}return o&&(s.preventDefault(),s.stopPropagation()),!1})})}};var kle=Object.defineProperty,Ele=(e,t,n)=>t in e?kle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ale=(e,t,n)=>Ele(e,t+"",n);class Tle{constructor(t,n){this.domNode=t,Ale(this,"submenu",null),this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new xle(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{const n=un(t);let s=!1;switch(n){case Te.down:{$g(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),s=!0;break}case Te.up:{$g(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),s=!0;break}case Te.tab:{$g(t.currentTarget,"mouseleave");break}case Te.enter:case Te.numpadEnter:case Te.space:{s=!0,t.currentTarget.click();break}}s&&t.preventDefault()})}}let Mle=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(s=>{s.nodeType===1&&new Tle(s,t)})}};var Ple=j({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=Ee("menu"),n={onBeforeEnter:s=>s.style.opacity="0.2",onEnter(s,a){No(s,`${t.namespace.value}-opacity-transition`),s.style.opacity="1",a()},onAfterEnter(s){la(s,`${t.namespace.value}-opacity-transition`),s.style.opacity=""},onBeforeLeave(s){s.dataset||(s.dataset={}),Qr(s,t.m("collapse"))?(la(s,t.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),No(s,t.m("collapse"))):(No(s,t.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),la(s,t.m("collapse"))),s.style.width=`${s.scrollWidth}px`,s.style.overflow="hidden"},onLeave(s){No(s,"horizontal-collapse-transition"),s.style.width=`${s.dataset.scrollWidth}px`}};return(s,a)=>(S(),le(ws,Tt({mode:"out-in"},n),{default:X(()=>[ue(s.$slots,"default")]),_:3},16))}});function BA(e,t){const n=E(()=>{let a=e.parent;const o=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&o.unshift(a.props.index),a=a.parent;return o});return{parentMenu:E(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function Rle(e){return E(()=>{const n=e.backgroundColor;return n?new Ff(n).shade(20).toString():""})}const VA=(e,t)=>{const n=Ee("menu");return E(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Rle(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},d6="rootMenu",h1="subMenu:",Ile=Me({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:re([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:rn},expandOpenIcon:{type:rn},collapseCloseIcon:{type:rn},collapseOpenIcon:{type:rn}}),f6="ElSubMenu";var h6=j({name:f6,props:Ile,setup(e,{slots:t,expose:n}){const s=Mt(),{indexPath:a,parentMenu:o}=BA(s,E(()=>e.index)),r=Ee("menu"),i=Ee("sub-menu"),l=Ke(d6);l||es(f6,"can not inject root menu");const c=Ke(`${h1}${o.value.uid}`);c||es(f6,"can not inject sub menu");const u=F({}),d=F({});let h;const p=F(!1),v=F(),m=F(),g=E(()=>c.level===0),b=E(()=>I.value==="horizontal"&&g.value?"bottom-start":"right-start"),C=E(()=>I.value==="horizontal"&&g.value||I.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?k.value?e.expandOpenIcon:e.expandCloseIcon:hr:e.collapseCloseIcon&&e.collapseOpenIcon?k.value?e.collapseOpenIcon:e.collapseCloseIcon:Ds),w=E(()=>{const Q=e.teleported;return Ht(Q)?g.value:Q}),_=E(()=>l.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`),x=E(()=>I.value==="horizontal"&&g.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),k=E(()=>l.openedMenus.includes(e.index)),T=E(()=>[...Object.values(u.value),...Object.values(d.value)].some(({active:Q})=>Q)),I=E(()=>l.props.mode),O=E(()=>l.props.persistent),R=Yt({index:e.index,indexPath:a,active:T}),$=VA(l.props,c.level+1),M=E(()=>{var Q;return(Q=e.popperOffset)!=null?Q:l.props.popperOffset}),B=E(()=>{var Q;return(Q=e.popperClass)!=null?Q:l.props.popperClass}),U=E(()=>{var Q;return(Q=e.popperStyle)!=null?Q:l.props.popperStyle}),J=E(()=>{var Q;return(Q=e.showTimeout)!=null?Q:l.props.showTimeout}),Y=E(()=>{var Q;return(Q=e.hideTimeout)!=null?Q:l.props.hideTimeout}),L=()=>{var Q,K,ee;return(ee=(K=(Q=m.value)==null?void 0:Q.popperRef)==null?void 0:K.popperInstanceRef)==null?void 0:ee.destroy()},N=Q=>{Q||L()},V=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:a.value,active:T.value})},z=(Q,K=J.value)=>{var ee;if(Q.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,h==null||h(),{stop:h}=xf(()=>{l.openMenu(e.index,a.value)},K),w.value&&((ee=o.value.vnode.el)==null||ee.dispatchEvent(new MouseEvent("mouseenter"))),Q.type==="mouseenter"&&Q.target&&ze(()=>{$p(Q.target,{preventScroll:!0})})}},q=(Q=!1)=>{var K;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){c.mouseInChild.value=!1;return}h==null||h(),c.mouseInChild.value=!1,{stop:h}=xf(()=>!p.value&&l.closeMenu(e.index,a.value),Y.value),w.value&&Q&&((K=c.handleMouseleave)==null||K.call(c,!0))};be(()=>l.props.collapse,Q=>N(!!Q));{const Q=ee=>{d.value[ee.index]=ee},K=ee=>{delete d.value[ee.index]};Nt(`${h1}${s.uid}`,{addSubMenu:Q,removeSubMenu:K,handleMouseleave:q,mouseInChild:p,level:c.level+1})}return n({opened:k}),Pt(()=>{l.addSubMenu(R),c.addSubMenu(R)}),tn(()=>{c.removeSubMenu(R),l.removeSubMenu(R)}),()=>{var Q;const K=[(Q=t.title)==null?void 0:Q.call(t),ut(Je,{class:i.e("icon-arrow"),style:{transform:k.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Xe(C.value)?ut(s.appContext.components[C.value]):ut(C.value)})],ee=l.isMenuPopup?ut(Ms,{ref:m,visible:k.value,effect:"light",pure:!0,offset:M.value,showArrow:!1,persistent:O.value,popperClass:B.value,popperStyle:U.value,placement:b.value,teleported:w.value,fallbackPlacements:x.value,transition:_.value,gpuAcceleration:!1},{content:()=>{var se;return ut("div",{class:[r.m(I.value),r.m("popup-container"),B.value],onMouseenter:pe=>z(pe,100),onMouseleave:()=>q(!0),onFocus:pe=>z(pe,100)},[ut("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${b.value}`)],style:$.value},[(se=t.default)==null?void 0:se.call(t)])])},default:()=>ut("div",{class:i.e("title"),onClick:V},K)}):ut(He,{},[ut("div",{class:i.e("title"),ref:v,onClick:V},K),ut(Xg,{},{default:()=>{var se;return Ct(ut("ul",{role:"menu",class:[r.b(),r.m("inline")],style:$.value},[(se=t.default)==null?void 0:se.call(t)]),[[jt,k.value]])}})]);return ut("li",{class:[i.b(),i.is("active",T.value),i.is("opened",k.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:k.value,onMouseenter:z,onMouseleave:()=>q(),onFocus:z},[ee])}}});const Ole=Me({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:re(Array),default:()=>Ln([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:rn,default:()=>t9},popperEffect:{type:re(String),default:"dark"},popperClass:String,popperStyle:{type:re([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),p6=e=>Ae(e)&&e.every(t=>Xe(t)),Lle={close:(e,t)=>Xe(e)&&p6(t),open:(e,t)=>Xe(e)&&p6(t),select:(e,t,n,s)=>Xe(e)&&p6(t)&&bt(n)&&(Ht(s)||s instanceof Promise)},zA=64;var Nle=j({name:"ElMenu",props:Ole,emits:Lle,setup(e,{emit:t,slots:n,expose:s}){const a=Mt(),o=a.appContext.config.globalProperties.$router,r=F(),i=F(),l=Ee("menu"),c=Ee("sub-menu");let u=zA;const d=F(-1),h=F(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=F(e.defaultActive),v=F({}),m=F({}),g=E(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),b=()=>{const L=p.value&&v.value[p.value];if(!L||e.mode==="horizontal"||e.collapse)return;L.indexPath.forEach(V=>{const z=m.value[V];z&&C(V,z.indexPath)})},C=(L,N)=>{h.value.includes(L)||(e.uniqueOpened&&(h.value=h.value.filter(V=>N.includes(V))),h.value.push(L),t("open",L,N))},w=L=>{const N=h.value.indexOf(L);N!==-1&&h.value.splice(N,1)},_=(L,N)=>{w(L),t("close",L,N)},x=({index:L,indexPath:N})=>{h.value.includes(L)?_(L,N):C(L,N)},k=L=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:N,indexPath:V}=L;if(!(Xn(N)||Xn(V)))if(e.router&&o){const z=L.route||N,q=o.push(z).then(Q=>(Q||(p.value=N),Q));t("select",N,V,{index:N,indexPath:V,route:z},q)}else p.value=N,t("select",N,V,{index:N,indexPath:V})},T=L=>{var N;const V=v.value,z=V[L]||p.value&&V[p.value]||V[e.defaultActive];p.value=(N=z==null?void 0:z.index)!=null?N:L},I=L=>{const N=getComputedStyle(L),V=Number.parseInt(N.marginLeft,10),z=Number.parseInt(N.marginRight,10);return L.offsetWidth+V+z||0},O=()=>{if(!r.value)return-1;const L=Array.from(r.value.childNodes).filter(ee=>ee.nodeName!=="#comment"&&(ee.nodeName!=="#text"||ee.nodeValue)),N=getComputedStyle(r.value),V=Number.parseInt(N.paddingLeft,10),z=Number.parseInt(N.paddingRight,10),q=r.value.clientWidth-V-z;let Q=0,K=0;return L.forEach((ee,se)=>{Q+=I(ee),Q<=q-u&&(K=se+1)}),K===L.length?-1:K},R=L=>m.value[L].indexPath,$=(L,N=33.34)=>{let V;return()=>{V&&clearTimeout(V),V=setTimeout(()=>{L()},N)}};let M=!0;const B=()=>{const L=us(i);if(L&&(u=I(L)||zA),d.value===O())return;const N=()=>{d.value=-1,ze(()=>{d.value=O()})};M?N():$(N)(),M=!1};be(()=>e.defaultActive,L=>{v.value[L]||(p.value=""),T(L)}),be(()=>e.collapse,L=>{L&&(h.value=[])}),be(v.value,b);let U;Wa(()=>{e.mode==="horizontal"&&e.ellipsis?U=En(r,B).stop:U==null||U()});const J=F(!1);{const L=q=>{m.value[q.index]=q},N=q=>{delete m.value[q.index]};Nt(d6,Yt({props:e,openedMenus:h,items:v,subMenus:m,activeIndex:p,isMenuPopup:g,addMenuItem:q=>{v.value[q.index]=q},removeMenuItem:q=>{delete v.value[q.index]},addSubMenu:L,removeSubMenu:N,openMenu:C,closeMenu:_,handleMenuItemClick:k,handleSubMenuClick:x})),Nt(`${h1}${a.uid}`,{addSubMenu:L,removeSubMenu:N,mouseInChild:J,level:0})}Pt(()=>{e.mode==="horizontal"&&new Mle(a.vnode.el,l.namespace.value)}),s({open:N=>{const{indexPath:V}=m.value[N];V.forEach(z=>C(z,V))},close:w,updateActiveIndex:T,handleResize:B});const Y=VA(e,0);return()=>{var L,N;let V=(N=(L=n.default)==null?void 0:L.call(n))!=null?N:[];const z=[];if(e.mode==="horizontal"&&r.value){const K=lo(V).filter(pe=>(pe==null?void 0:pe.shapeFlag)!==8),ee=d.value===-1?K:K.slice(0,d.value),se=d.value===-1?[]:K.slice(d.value);se!=null&&se.length&&e.ellipsis&&(V=ee,z.push(ut(h6,{ref:i,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>ut(Je,{class:c.e("icon-more")},{default:()=>ut(e.ellipsisIcon)}),default:()=>se})))}const q=e.closeOnClickOutside?[[dc,()=>{h.value.length&&(J.value||(h.value.forEach(K=>t("close",K,R(K))),h.value=[]))}]]:[],Q=Ct(ut("ul",{key:String(e.collapse),role:"menubar",ref:r,style:Y.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...V,...z]),q);return e.collapseTransition&&e.mode==="vertical"?ut(Ple,()=>Q):Q}}});const $le=Me({index:{type:re([String,null]),default:null},route:{type:re([String,Object])},disabled:Boolean}),Dle={click:e=>Xe(e.index)&&Ae(e.indexPath)},v6="ElMenuItem";var HA=j({name:v6,__name:"menu-item",props:$le,emits:Dle,setup(e,{expose:t,emit:n}){const s=e,a=n;Ka(s.index)&&void 0;const o=Mt(),r=Ke(d6),i=Ee("menu"),l=Ee("menu-item");r||es(v6,"can not inject root menu");const{parentMenu:c,indexPath:u}=BA(o,sn(s,"index")),d=Ke(`${h1}${c.value.uid}`);d||es(v6,"can not inject sub menu");const h=E(()=>s.index===r.activeIndex),p=Yt({index:s.index,indexPath:u,active:h}),v=()=>{s.disabled||(r.handleMenuItemClick({index:s.index,indexPath:u.value,route:s.route}),a("click",p))};return Pt(()=>{d.addSubMenu(p),r.addMenuItem(p)}),tn(()=>{d.removeSubMenu(p),r.removeMenuItem(p)}),t({parentMenu:c,rootMenu:r,active:h,nsMenu:i,nsMenuItem:l,handleClick:v}),(m,g)=>(S(),P("li",{class:D([f(l).b(),f(l).is("active",h.value),f(l).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:v},[f(c).type.name==="ElMenu"&&f(r).props.collapse&&m.$slots.title?(S(),le(f(Ms),{key:0,effect:f(r).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":f(r).props.popperClass,"popper-style":f(r).props.popperStyle,persistent:f(r).props.persistent,"focus-on-target":""},{content:X(()=>[ue(m.$slots,"title")]),default:X(()=>[A("div",{class:D(f(i).be("tooltip","trigger"))},[ue(m.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(S(),P(He,{key:1},[ue(m.$slots,"default"),ue(m.$slots,"title")],64))],2))}}),WA=j({name:"ElMenuItemGroup",__name:"menu-item-group",props:{title:String},setup(e){const t=Ee("menu-item-group");return(n,s)=>(S(),P("li",{class:D(f(t).b())},[A("div",{class:D(f(t).e("title"))},[n.$slots.title?ue(n.$slots,"title",{key:1}):(S(),P(He,{key:0},[je(ge(e.title),1)],64))],2),A("ul",null,[ue(n.$slots,"default")])],2))}});const Fle=yt(Nle,{MenuItem:HA,MenuItemGroup:WA,SubMenu:h6}),Ble=Pn(HA),Vle=Pn(WA),zle=Pn(h6),Hle=Me({icon:{type:rn,default:()=>Wx},title:String,content:{type:String,default:""}}),Wle={back:()=>!0},jle=["aria-label"];var Kle=j({name:"ElPageHeader",__name:"page-header",props:Hle,emits:Wle,setup(e,{emit:t}){const n=t,{t:s}=Bt(),a=Ee("page-header");function o(){n("back")}return(r,i)=>(S(),P("div",{class:D([f(a).b(),f(a).is("contentful",!!r.$slots.default),{[f(a).m("has-breadcrumb")]:!!r.$slots.breadcrumb,[f(a).m("has-extra")]:!!r.$slots.extra}])},[r.$slots.breadcrumb?(S(),P("div",{key:0,class:D(f(a).e("breadcrumb"))},[ue(r.$slots,"breadcrumb")],2)):ie("v-if",!0),A("div",{class:D(f(a).e("header"))},[A("div",{class:D(f(a).e("left"))},[A("div",{class:D(f(a).e("back")),role:"button",tabindex:"0",onClick:o},[e.icon||r.$slots.icon?(S(),P("div",{key:0,"aria-label":e.title||f(s)("el.pageHeader.title"),class:D(f(a).e("icon"))},[ue(r.$slots,"icon",{},()=>[e.icon?(S(),le(f(Je),{key:0},{default:X(()=>[(S(),le(kt(e.icon)))]),_:1})):ie("v-if",!0)])],10,jle)):ie("v-if",!0),A("div",{class:D(f(a).e("title"))},[ue(r.$slots,"title",{},()=>[je(ge(e.title||f(s)("el.pageHeader.title")),1)])],2)],2),W(f(vA),{direction:"vertical"}),A("div",{class:D(f(a).e("content"))},[ue(r.$slots,"content",{},()=>[je(ge(e.content),1)])],2)],2),r.$slots.extra?(S(),P("div",{key:0,class:D(f(a).e("extra"))},[ue(r.$slots,"extra")],2)):ie("v-if",!0)],2),r.$slots.default?(S(),P("div",{key:1,class:D(f(a).e("main"))},[ue(r.$slots,"default")],2)):ie("v-if",!0)],2))}});const Ule=yt(Kle),jA=Symbol("elPaginationKey"),qle=Me({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:rn}}),Gle={click:e=>e instanceof MouseEvent},Yle=["disabled","aria-label","aria-disabled"],Xle={key:0};var Jle=j({name:"ElPaginationPrev",__name:"prev",props:qle,emits:Gle,setup(e){const t=e,{t:n}=Bt(),s=E(()=>t.disabled||t.currentPage<=1);return(a,o)=>(S(),P("button",{type:"button",class:"btn-prev",disabled:s.value,"aria-label":a.prevText||f(n)("el.pagination.prev"),"aria-disabled":s.value,onClick:o[0]||(o[0]=r=>a.$emit("click",r))},[a.prevText?(S(),P("span",Xle,ge(a.prevText),1)):(S(),le(f(Je),{key:1},{default:X(()=>[(S(),le(kt(a.prevIcon)))]),_:1}))],8,Yle))}});const Zle=Me({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:rn}}),Qle=["disabled","aria-label","aria-disabled"],ece={key:0};var tce=j({name:"ElPaginationNext",__name:"next",props:Zle,emits:["click"],setup(e){const t=e,{t:n}=Bt(),s=E(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,o)=>(S(),P("button",{type:"button",class:"btn-next",disabled:s.value,"aria-label":a.nextText||f(n)("el.pagination.next"),"aria-disabled":s.value,onClick:o[0]||(o[0]=r=>a.$emit("click",r))},[a.nextText?(S(),P("span",ece,ge(a.nextText),1)):(S(),le(f(Je),{key:1},{default:X(()=>[(S(),le(kt(a.nextIcon)))]),_:1}))],8,Qle))}});const m6=()=>Ke(jA,{}),nce=Me({pageSize:{type:Number,required:!0},pageSizes:{type:re(Array),default:()=>Ln([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:re([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:fr},appendSizeTo:String});var sce=j({name:"ElPaginationSizes",__name:"sizes",props:nce,emits:["page-size-change"],setup(e,{emit:t}){const n=e,s=t,{t:a}=Bt(),o=Ee("pagination"),r=m6(),i=F(n.pageSize);be(()=>n.pageSizes,(u,d)=>{if(!Bn(u,d)&&Ae(u)){const h=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];s("page-size-change",h)}}),be(()=>n.pageSize,u=>{i.value=u});const l=E(()=>n.pageSizes);function c(u){var d;u!==i.value&&(i.value=u,(d=r.handleSizeChange)==null||d.call(r,Number(u)))}return(u,d)=>(S(),P("span",{class:D(f(o).e("sizes"))},[W(f(fc),{"model-value":i.value,disabled:u.disabled,"popper-class":u.popperClass,"popper-style":u.popperStyle,size:u.size,teleported:u.teleported,"validate-event":!1,"append-to":u.appendSizeTo,onChange:c},{default:X(()=>[(S(!0),P(He,null,Et(l.value,h=>(S(),le(f(qg),{key:h,value:h,label:h+f(a)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}});const ace=Me({size:{type:String,values:fr}}),oce=["disabled"];var rce=j({name:"ElPaginationJumper",__name:"jumper",props:ace,setup(e){const{t}=Bt(),n=Ee("pagination"),{pageCount:s,disabled:a,currentPage:o,changeEvent:r}=m6(),i=F(),l=E(()=>{var d;return(d=i.value)!=null?d:o==null?void 0:o.value});function c(d){i.value=d?+d:""}function u(d){d=Math.trunc(+d),r==null||r(d),i.value=void 0}return(d,h)=>(S(),P("span",{class:D(f(n).e("jump")),disabled:f(a)},[A("span",{class:D([f(n).e("goto")])},ge(f(t)("el.pagination.goto")),3),W(f(ua),{size:d.size,class:D([f(n).e("editor"),f(n).is("in-pagination")]),min:1,max:f(s),disabled:f(a),"model-value":l.value,"validate-event":!1,"aria-label":f(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:u},null,8,["size","class","max","disabled","model-value","aria-label"]),A("span",{class:D([f(n).e("classifier")])},ge(f(t)("el.pagination.pageClassifier")),3)],10,oce))}});const ice=Me({total:{type:Number,default:1e3}}),lce=["disabled"];var cce=j({name:"ElPaginationTotal",__name:"total",props:ice,setup(e){const{t}=Bt(),n=Ee("pagination"),{disabled:s}=m6();return(a,o)=>(S(),P("span",{class:D(f(n).e("total")),disabled:f(s)},ge(f(t)("el.pagination.total",{total:a.total})),11,lce))}});const uce=Me({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),dce=["aria-current","aria-label","tabindex"],fce=["tabindex","aria-label"],hce=["aria-current","aria-label","tabindex"],pce=["tabindex","aria-label"],vce=["aria-current","aria-label","tabindex"];var mce=j({name:"ElPaginationPager",__name:"pager",props:uce,emits:[Dt],setup(e,{emit:t}){const n=e,s=t,a=Ee("pager"),o=Ee("icon"),{t:r}=Bt(),i=F(!1),l=F(!1),c=F(!1),u=F(!1),d=F(!1),h=F(!1),p=E(()=>{const x=n.pagerCount,k=(x-1)/2,T=Number(n.currentPage),I=Number(n.pageCount);let O=!1,R=!1;I>x&&(T>x-k&&(O=!0),T["more","btn-quickprev",o.b(),a.is("disabled",n.disabled)]),m=E(()=>["more","btn-quicknext",o.b(),a.is("disabled",n.disabled)]),g=E(()=>n.disabled?-1:0);be(()=>[n.pageCount,n.pagerCount,n.currentPage],([x,k,T])=>{const I=(k-1)/2;let O=!1,R=!1;x>k&&(O=T>k-I,R=TI&&(T=I)),T!==O&&s(Dt,T)}return(x,k)=>(S(),P("ul",{class:D(f(a).b()),onClick:_,onKeyup:Fn(w,["enter"])},[x.pageCount>0?(S(),P("li",{key:0,class:D([[f(a).is("active",x.currentPage===1),f(a).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===1,"aria-label":f(r)("el.pagination.currentPage",{pager:1}),tabindex:g.value}," 1 ",10,dce)):ie("v-if",!0),i.value?(S(),P("li",{key:1,class:D(v.value),tabindex:g.value,"aria-label":f(r)("el.pagination.prevPages",{pager:x.pagerCount-2}),onMouseenter:k[0]||(k[0]=T=>b(!0)),onMouseleave:k[1]||(k[1]=T=>c.value=!1),onFocus:k[2]||(k[2]=T=>C(!0)),onBlur:k[3]||(k[3]=T=>d.value=!1)},[(c.value||d.value)&&!x.disabled?(S(),le(f(Ji),{key:0})):(S(),le(f(Hy),{key:1}))],42,fce)):ie("v-if",!0),(S(!0),P(He,null,Et(p.value,T=>(S(),P("li",{key:T,class:D([[f(a).is("active",x.currentPage===T),f(a).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===T,"aria-label":f(r)("el.pagination.currentPage",{pager:T}),tabindex:g.value},ge(T),11,hce))),128)),l.value?(S(),P("li",{key:2,class:D(m.value),tabindex:g.value,"aria-label":f(r)("el.pagination.nextPages",{pager:x.pagerCount-2}),onMouseenter:k[4]||(k[4]=T=>b()),onMouseleave:k[5]||(k[5]=T=>u.value=!1),onFocus:k[6]||(k[6]=T=>C()),onBlur:k[7]||(k[7]=T=>h.value=!1)},[(u.value||h.value)&&!x.disabled?(S(),le(f(Zi),{key:0})):(S(),le(f(Hy),{key:1}))],42,pce)):ie("v-if",!0),x.pageCount>1?(S(),P("li",{key:3,class:D([[f(a).is("active",x.currentPage===x.pageCount),f(a).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===x.pageCount,"aria-label":f(r)("el.pagination.currentPage",{pager:x.pageCount}),tabindex:g.value},ge(x.pageCount),11,vce)):ie("v-if",!0)],34))}});const Ia=e=>typeof e!="number",gce=Me({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>at(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:re(Array),default:()=>Ln([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:re([String,Object])},prevText:{type:String,default:""},prevIcon:{type:rn,default:()=>$o},nextText:{type:String,default:""},nextIcon:{type:rn,default:()=>Ds},teleported:{type:Boolean,default:!0},small:Boolean,size:ds,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),bce={"update:current-page":e=>at(e),"update:page-size":e=>at(e),"size-change":e=>at(e),change:(e,t)=>at(e)&&at(t),"current-change":e=>at(e),"prev-click":e=>at(e),"next-click":e=>at(e)},KA="ElPagination";var yce=j({name:KA,props:gce,emits:bce,setup(e,{emit:t,slots:n}){const{t:s}=Bt(),a=Ee("pagination"),o=Mt().vnode.props||{},r=Ox(),i=E(()=>{var x;return e.small?"small":(x=e.size)!=null?x:r.value});oi({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},E(()=>!!e.small));const l="onUpdate:currentPage"in o||"onUpdate:current-page"in o||"onCurrentChange"in o,c="onUpdate:pageSize"in o||"onUpdate:page-size"in o||"onSizeChange"in o,u=E(()=>{if(Ia(e.total)&&Ia(e.pageCount)||!Ia(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(Ia(e.pageCount)){if(!Ia(e.total)&&!Ia(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),d=F(Ia(e.defaultPageSize)?10:e.defaultPageSize),h=F(Ia(e.defaultCurrentPage)?1:e.defaultCurrentPage),p=E({get(){return Ia(e.pageSize)?d.value:e.pageSize},set(x){Ia(e.pageSize)&&(d.value=x),c&&(t("update:page-size",x),t("size-change",x))}}),v=E(()=>{let x=0;return Ia(e.pageCount)?Ia(e.total)||(x=Math.max(1,Math.ceil(e.total/p.value))):x=e.pageCount,x}),m=E({get(){return Ia(e.currentPage)?h.value:e.currentPage},set(x){let k=x;x<1?k=1:x>v.value&&(k=v.value),Ia(e.currentPage)&&(h.value=k),l&&(t("update:current-page",k),t("current-change",k))}});be(v,x=>{m.value>x&&(m.value=x)}),be([m,p],x=>{t(Dt,...x)},{flush:"post"});function g(x){m.value=x}function b(x){p.value=x;const k=v.value;m.value>k&&(m.value=k)}function C(){e.disabled||(m.value-=1,t("prev-click",m.value))}function w(){e.disabled||(m.value+=1,t("next-click",m.value))}function _(x,k){x&&(x.props||(x.props={}),x.props.class=[x.props.class,k].join(" "))}return Nt(jA,{pageCount:v,disabled:E(()=>e.disabled),currentPage:m,changeEvent:g,handleSizeChange:b}),()=>{var x,k;if(!u.value)return s("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&v.value<=1)return null;const T=[],I=[],O=ut("div",{class:a.e("rightwrapper")},I),R={prev:ut(Jle,{disabled:e.disabled,currentPage:m.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:C}),jumper:ut(rce,{size:i.value}),pager:ut(mce,{currentPage:m.value,pageCount:v.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:ut(tce,{disabled:e.disabled,currentPage:m.value,pageCount:v.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:w}),sizes:ut(sce,{pageSize:p.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:i.value,appendSizeTo:e.appendSizeTo}),slot:(k=(x=n==null?void 0:n.default)==null?void 0:x.call(n))!=null?k:null,total:ut(cce,{total:Ia(e.total)?0:e.total})},$=e.layout.split(",").map(B=>B.trim());let M=!1;return $.forEach(B=>{if(B==="->"){M=!0;return}M?I.push(R[B]):T.push(R[B])}),_(T[0],a.is("first")),_(T[T.length-1],a.is("last")),M&&I.length>0&&(_(I[0],a.is("first")),_(I[I.length-1],a.is("last")),T.push(O)),ut("div",{class:[a.b(),a.is("background",e.background),a.m(i.value)]},T)}}});const wce=yt(yce),_ce=Me({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:v3,default:"primary"},cancelButtonType:{type:String,values:v3,default:"text"},icon:{type:rn,default:()=>a9},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...ln.effect,default:"light"},teleported:ln.teleported,persistent:ln.persistent,width:{type:[String,Number],default:150},virtualTriggering:ai.virtualTriggering,virtualRef:ai.virtualRef});var Cce=j({name:"ElPopconfirm",__name:"popconfirm",props:_ce,emits:{confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Bt(),r=Ee("popconfirm"),i=F(),l=F(),c=E(()=>{var b;return(b=f(i))==null?void 0:b.popperRef}),u=()=>{var b,C;(C=(b=l.value)==null?void 0:b.focus)==null||C.call(b)},d=()=>{var b,C;(C=(b=i.value)==null?void 0:b.onClose)==null||C.call(b)},h=E(()=>({width:On(s.width)})),p=b=>{a("confirm",b),d()},v=b=>{a("cancel",b),d()},m=E(()=>s.confirmButtonText||o("el.popconfirm.confirmButtonText")),g=E(()=>s.cancelButtonText||o("el.popconfirm.cancelButtonText"));return t({popperRef:c,hide:d}),(b,C)=>(S(),le(f(Ms),Tt({ref_key:"tooltipRef",ref:i,trigger:"click",effect:e.effect},b.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":`${f(r).namespace.value}-popover`,"popper-style":h.value,teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent,loop:"",onShow:u}),{content:X(()=>[A("div",{ref_key:"rootRef",ref:l,tabindex:"-1",class:D(f(r).b())},[A("div",{class:D(f(r).e("main"))},[!e.hideIcon&&e.icon?(S(),le(f(Je),{key:0,class:D(f(r).e("icon")),style:Qe({color:e.iconColor})},{default:X(()=>[(S(),le(kt(e.icon)))]),_:1},8,["class","style"])):ie("v-if",!0),je(" "+ge(e.title),1)],2),A("div",{class:D(f(r).e("action"))},[ue(b.$slots,"actions",{confirm:p,cancel:v},()=>[W(f(Cs),{size:"small",type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",onClick:v},{default:X(()=>[je(ge(g.value),1)]),_:1},8,["type","text"]),W(f(Cs),{size:"small",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",onClick:p},{default:X(()=>[je(ge(m.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:X(()=>[b.$slots.reference?ue(b.$slots,"reference",{key:0}):ie("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}});const Sce=yt(Cce),xce=Me({trigger:ai.trigger,triggerKeys:ai.triggerKeys,placement:l1.placement,disabled:ai.disabled,visible:ln.visible,transition:ln.transition,popperOptions:l1.popperOptions,tabindex:l1.tabindex,content:ln.content,popperStyle:ln.popperStyle,popperClass:ln.popperClass,enterable:{...ln.enterable,default:!0},effect:{...ln.effect,default:"light"},teleported:ln.teleported,appendTo:ln.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),kce={"update:visible":e=>on(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Ece="onUpdate:visible";var Ace=j({name:"ElPopover",__name:"popover",props:xce,emits:kce,setup(e,{expose:t,emit:n}){const s=e,a=n,o=E(()=>s[Ece]),r=Ee("popover"),i=F(),l=E(()=>{var b;return(b=f(i))==null?void 0:b.popperRef}),c=E(()=>[{width:On(s.width)},s.popperStyle]),u=E(()=>[r.b(),s.popperClass,{[r.m("plain")]:!!s.content}]),d=E(()=>s.transition===`${r.namespace.value}-fade-in-linear`),h=()=>{var b;(b=i.value)==null||b.hide()},p=()=>{a("before-enter")},v=()=>{a("before-leave")},m=()=>{a("after-enter")},g=()=>{a("update:visible",!1),a("after-leave")};return t({popperRef:l,hide:h}),(b,C)=>(S(),le(f(Ms),Tt({ref_key:"tooltipRef",ref:i},b.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":u.value,"popper-style":c.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":d.value,"onUpdate:visible":o.value,onBeforeShow:p,onBeforeHide:v,onShow:m,onHide:g}),{content:X(()=>[e.title?(S(),P("div",{key:0,class:D(f(r).e("title")),role:"title"},ge(e.title),3)):ie("v-if",!0),ue(b.$slots,"default",{},()=>[je(ge(e.content),1)])]),default:X(()=>[b.$slots.reference?ue(b.$slots,"reference",{key:0}):ie("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});const UA=(e,t)=>{const n=t.arg||t.value,s=n==null?void 0:n.popperRef;s&&(s.triggerRef=e)};var Tce={mounted(e,t){UA(e,t)},updated(e,t){UA(e,t)}};const qA=lz(Tce,"popover"),Mce=yt(Ace,{directive:qA}),Pce=Me({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:re(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:re([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:re(Function),default:e=>`${e}%`}}),Rce=["aria-valuenow"],Ice={viewBox:"0 0 100 100"},Oce=["d","stroke","stroke-linecap","stroke-width"],Lce=["d","stroke","opacity","stroke-linecap","stroke-width"],Nce={key:0};var $ce=j({name:"ElProgress",__name:"progress",props:Pce,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,s=Ee("progress"),a=E(()=>{const w={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},_=C(n.percentage);return _.includes("gradient")?w.background=_:w.backgroundColor=_,w}),o=E(()=>(n.strokeWidth/n.width*100).toFixed(1)),r=E(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),i=E(()=>{const w=r.value,_=n.type==="dashboard";return` M 50 50 m 0 ${_?"":"-"}${w} a ${w} ${w} 0 1 1 0 ${_?"-":""}${w*2} a ${w} ${w} 0 1 1 0 ${_?"":"-"}${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=C(n.percentage):w=t[n.status]||t.default,w}),v=E(()=>n.status==="warning"?Ep:n.type==="line"?n.status==="success"?xp:Do:n.status==="success"?Tf:Ua),m=E(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),g=E(()=>n.format(n.percentage));function b(w){const _=100/w.length;return w.map((k,T)=>Xe(k)?{color:k,percentage:(T+1)*_}:k).sort((k,T)=>k.percentage-T.percentage)}const C=w=>{var _;const{color:x}=n;if(Ze(x))return x(w);if(Xe(x))return x;{const k=b(x);for(const T of k)if(T.percentage>w)return T.color;return(_=k[k.length-1])==null?void 0:_.color}};return(w,_)=>(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,ge(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",Ice,[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,Oce),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,Lce)]))],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(Je),{key:1},{default:X(()=>[(S(),le(kt(v.value)))]),_:1})):(S(),P("span",Nce,ge(g.value),1))])],6)):ie("v-if",!0)],10,Rce))}});const GA=yt($ce),Dce=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:()=>Ln(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:re([Array,Object]),default:()=>[kp,kp,kp]},voidIcon:{type:rn,default:()=>d9},disabledVoidIcon:{type:rn,default:()=>kp},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:re(Array),default:()=>Ln(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:ds,clearable:Boolean,...ca(["ariaLabel"])}),Fce={[Dt]:e=>at(e),[mt]:e=>at(e)},Bce=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],Vce=["onMousemove","onClick"];var zce=j({name:"ElRate",__name:"rate",props:Dce,emits:Fce,setup(e,{expose:t,emit:n}){function s(N,V){const z=K=>bt(K),q=Object.keys(V).map(K=>+K).filter(K=>{const ee=V[K];return(z(ee)?ee.excluded:!1)?NK-ee),Q=V[q[0]];return z(Q)&&Q.value||Q}const a=e,o=n,r=Ke(si,void 0),i=rs(),l=Ee("rate"),{inputId:c,isLabeledByFormItem:u}=uo(a,{formItemContext:r}),d=F(yu(a.modelValue,0,a.max)),h=F(-1),p=F(!0),v=F([]),m=E(()=>v.value.map(N=>N.$el.clientWidth)),g=E(()=>[l.b(),l.m(i.value)]),b=Nn(),C=E(()=>l.cssVarBlock({"void-color":a.voidColor,"disabled-void-color":a.disabledVoidColor,"fill-color":k.value})),w=E(()=>{let N="";return a.showScore?N=a.scoreTemplate.replace(/\{\s*value\s*\}/,b.value?`${a.modelValue}`:`${d.value}`):a.showText&&(N=a.texts[Math.ceil(d.value)-1]),N}),_=E(()=>a.modelValue*100-Math.floor(a.modelValue)*100),x=E(()=>Ae(a.colors)?{[a.lowThreshold]:a.colors[0],[a.highThreshold]:{value:a.colors[1],excluded:!0},[a.max]:a.colors[2]}:a.colors),k=E(()=>{const N=s(d.value,x.value);return bt(N)?"":N}),T=E(()=>{let N="";return b.value?N=`${_.value}%`:a.allowHalf&&(N="50%"),{color:k.value,width:N}}),I=E(()=>{let N=Ae(a.icons)?[...a.icons]:{...a.icons};return N=Wr(N),Ae(N)?{[a.lowThreshold]:N[0],[a.highThreshold]:{value:N[1],excluded:!0},[a.max]:N[2]}:N}),O=E(()=>s(a.modelValue,I.value)),R=E(()=>b.value?Xe(a.disabledVoidIcon)?a.disabledVoidIcon:Wr(a.disabledVoidIcon):Xe(a.voidIcon)?a.voidIcon:Wr(a.voidIcon)),$=E(()=>s(d.value,I.value));function M(N){const V=b.value&&_.value>0&&N-1a.modelValue,z=a.allowHalf&&p.value&&N-.5<=d.value&&N>d.value;return V||z}function B(N){a.clearable&&N===a.modelValue&&(N=0),o(mt,N),a.modelValue!==N&&o(Dt,N)}function U(N){b.value||(a.allowHalf&&p.value?B(d.value):B(N))}function J(N){if(b.value)return;const V=un(N),z=a.allowHalf?.5:1;let q=d.value;switch(V){case Te.up:case Te.right:q+=z;break;case Te.left:case Te.down:q-=z;break}if(q=yu(q,0,a.max),q!==d.value)return N.stopPropagation(),N.preventDefault(),o(mt,q),o(Dt,q),q}function Y(N,V){b.value||(a.allowHalf&&V?(p.value=V.offsetX*2<=m.value[N-1],d.value=p.value?N-.5:N):d.value=N,h.value=N)}function L(){b.value||(a.allowHalf&&(p.value=a.modelValue!==Math.floor(a.modelValue)),d.value=yu(a.modelValue,0,a.max),h.value=-1)}return be(()=>a.modelValue,N=>{d.value=yu(N,0,a.max),p.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||o(mt,0),t({setCurrentValue:Y,resetCurrentValue:L}),(N,V)=>{var z;return S(),P("div",{id:f(c),class:D([g.value,f(l).is("disabled",f(b))]),role:"slider","aria-label":f(u)?void 0:e.ariaLabel||"rating","aria-labelledby":f(u)?(z=f(r))==null?void 0:z.labelId:void 0,"aria-valuenow":d.value,"aria-valuetext":w.value||void 0,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0",style:Qe(C.value),onKeydown:J},[(S(!0),P(He,null,Et(e.max,(q,Q)=>(S(),P("span",{key:Q,class:D(f(l).e("item")),onMousemove:K=>Y(q,K),onMouseleave:L,onClick:K=>U(q)},[W(f(Je),{ref_for:!0,ref_key:"iconRefs",ref:v,class:D([f(l).e("icon"),{hover:h.value===q},f(l).is("active",q<=d.value),f(l).is("focus-visible",q===Math.ceil(d.value||1))])},{default:X(()=>[Ct((S(),le(kt($.value),null,null,512)),[[jt,!M(q)&&q<=d.value]]),Ct((S(),le(kt(R.value),null,null,512)),[[jt,!M(q)&&q>d.value]]),Ct((S(),le(kt(R.value),{class:D([f(l).em("decimal","box")])},null,8,["class"])),[[jt,M(q)]]),Ct(W(f(Je),{style:Qe(T.value),class:D([f(l).e("icon"),f(l).e("decimal")])},{default:X(()=>[(S(),le(kt(O.value)))]),_:1},8,["style","class"]),[[jt,M(q)]])]),_:2},1032,["class"])],42,Vce))),128)),e.showText||e.showScore?(S(),P("span",{key:0,class:D(f(l).e("text")),style:Qe({color:e.textColor})},ge(w.value),7)):ie("v-if",!0)],46,Bce)}}});const Hce=yt(zce),Tu={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},YA={[Tu.primary]:Mf,[Tu.success]:Ux,[Tu.warning]:Ep,[Tu.error]:xg,[Tu.info]:Mf},Wce=Me({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}});var jce=j({name:"ElResult",__name:"result",props:Wce,setup(e){const t=e,n=Ee("result"),s=E(()=>{const a=t.icon,o=a&&Tu[a]?Tu[a]:"icon-info",r=YA[o]||YA["icon-info"];return{class:o,component:r}});return(a,o)=>(S(),P("div",{class:D(f(n).b())},[A("div",{class:D(f(n).e("icon"))},[ue(a.$slots,"icon",{},()=>[s.value.component?(S(),le(kt(s.value.component),{key:0,class:D(s.value.class)},null,8,["class"])):ie("v-if",!0)])],2),e.title||a.$slots.title?(S(),P("div",{key:0,class:D(f(n).e("title"))},[ue(a.$slots,"title",{},()=>[A("p",null,ge(e.title),1)])],2)):ie("v-if",!0),e.subTitle||a.$slots["sub-title"]?(S(),P("div",{key:1,class:D(f(n).e("subtitle"))},[ue(a.$slots,"sub-title",{},()=>[A("p",null,ge(e.subTitle),1)])],2)):ie("v-if",!0),a.$slots.extra?(S(),P("div",{key:2,class:D(f(n).e("extra"))},[ue(a.$slots,"extra")],2)):ie("v-if",!0)],2))}});const Kce=yt(jce),Uce=Me({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}});var qce=j({name:"ElRow",__name:"row",props:Uce,setup(e){const t=e,n=Ee("row"),s=E(()=>t.gutter);Nt(_E,{gutter:s});const a=E(()=>{const r={};return t.gutter&&(r.marginRight=r.marginLeft=`-${t.gutter/2}px`),r}),o=E(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(r,i)=>(S(),le(kt(e.tag),{class:D(o.value),style:Qe(a.value)},{default:X(()=>[ue(r.$slots,"default")]),_:3},8,["class","style"]))}});const Gce=yt(qce);var Yce=j({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:Ee("select")}}});function Xce(e,t,n,s,a,o){return S(),P("div",{class:D(e.ns.be("group","title")),style:Qe({...e.style,lineHeight:`${e.height}px`})},ge(e.item.label),7)}var Jce=fs(Yce,[["render",Xce]]);function Zce(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const Qce=Me({allowCreate:Boolean,autocomplete:{type:re(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:rn,default:Do},effect:{type:re(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:re(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:re([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:re(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:re(Array),required:!0},placeholder:{type:String},teleported:ln.teleported,persistent:{type:Boolean,default:!0},popperClass:ln.popperClass,popperStyle:ln.popperStyle,popperOptions:{type:re(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:ds,props:{type:re(Object),default:()=>Kg},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:re(String),values:ei,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","top-start","right","left"]},tagType:{...ol.type,default:"info"},tagEffect:{...ol.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:ln.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return on(e)||at(e)}},suffixIcon:{type:rn,default:hr},...Cu,...ca(["ariaLabel"])}),eue=Me({data:Array,disabled:Boolean,hovering:Boolean,item:{type:re(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),tue={[mt]:e=>!0,[Dt]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},nue={hover:e=>at(e),select:(e,t)=>!0},g6=Symbol("ElSelectV2Injection");var sue=j({props:eue,emits:nue,setup(e,{emit:t}){const n=Ke(g6),s=Ee("select"),{hoverItem:a,selectOptionClick:o}=Zce(e,{emit:t}),{getLabel:r}=Bp(n.props),i=n.contentId;return{ns:s,contentId:i,hoverItem:a,selectOptionClick:o,getLabel:r}}});const aue=["id","aria-selected","aria-disabled"];function oue(e,t,n,s,a,o){return S(),P("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:Qe(e.style),class:D([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=ht((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[ue(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[A("span",null,ge(e.getLabel(e.item)),1)])],46,aue)}var rue=fs(sue,[["render",oue]]),XA=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function iue(e,t){return!!(e===t||XA(e)&&XA(t))}function lue(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const t=Mt().proxy.$props;return E(()=>{const n=(s,a,o)=>({});return t.perfMode?dg(n):cue(n)})},b6=50,p1="itemRendered",v1="scroll",Kf="forward",m1="backward",Ho="auto",g1="smart",Zp="start",ii="center",Qp="end",Uf="horizontal",ZA="vertical",uue="ltr",qf="rtl",ev="negative",y6="positive-ascending",w6="positive-descending",due={[Uf]:"left",[ZA]:"top"},fue=20,QA=({atEndEdge:e,atStartEdge:t,layout:n},s)=>{let a,o=0;const r=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:r,onWheel:l=>{Yi(a);let{deltaX:c,deltaY:u}=l;l.shiftKey&&u!==0&&(c=u,u=0);const d=n.value===Uf?c:u;r(d)||(o+=d,!o3()&&d!==0&&l.preventDefault(),a=Zr(()=>{s(o),o=0}))}}},_6=dr({type:re([Number,Function]),required:!0}),C6=dr({type:Number}),S6=dr({type:Number,default:2}),hue=dr({type:String,values:["ltr","rtl"],default:"ltr"}),x6=dr({type:Number,default:0}),b1=dr({type:Number,required:!0}),eT=dr({type:String,values:["horizontal","vertical"],default:ZA}),tT=Me({className:{type:String,default:""},containerElement:{type:re([String,Object]),default:"div"},data:{type:re(Array),default:()=>Ln([])},direction:hue,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:re(Object),default:()=>({})},style:{type:re([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),nT=Me({cache:S6,estimatedItemSize:C6,layout:eT,initScrollOffset:x6,total:b1,itemSize:_6,...tT}),k6={type:Number,default:6},sT={type:Number,default:0},aT={type:Number,default:2},Mu=Me({columnCache:S6,columnWidth:_6,estimatedColumnWidth:C6,estimatedRowHeight:C6,initScrollLeft:x6,initScrollTop:x6,itemKey:{type:re(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:S6,rowHeight:_6,totalColumn:b1,totalRow:b1,hScrollbarSize:k6,vScrollbarSize:k6,scrollbarStartGap:sT,scrollbarEndGap:aT,role:String,...tT}),oT=Me({alwaysOn:Boolean,class:String,layout:eT,total:b1,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:k6,startGap:sT,endGap:aT,visible:Boolean}),Pu=(e,t)=>ee===uue||e===qf||e===Uf,rT=e=>e===qf;let Gf=null;function y1(e=!1){if(Gf===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const s=document.createElement("div"),a=s.style;return a.width="100px",a.height="100px",t.appendChild(s),document.body.appendChild(t),t.scrollLeft>0?Gf=w6:(t.scrollLeft=1,t.scrollLeft===0?Gf=ev:Gf=y6),document.body.removeChild(t),Gf}return Gf}function pue({move:e,size:t,bar:n},s){const a={},o=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=o,s==="horizontal"?a.height="100%":a.width="100%",a}const E6=j({name:"ElVirtualScrollBar",props:oT,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=E(()=>e.startGap+e.endGap),s=Ee("virtual-scrollbar"),a=Ee("scrollbar"),o=F(),r=F();let i=null,l=null;const c=Yt({isDragging:!1,traveled:0}),u=E(()=>X9[e.layout]),d=E(()=>e.clientSize-f(n)),h=E(()=>({position:"absolute",width:`${Uf===e.layout?d.value:e.scrollbarSize}px`,height:`${Uf===e.layout?e.scrollbarSize:d.value}px`,[due[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),p=E(()=>{const k=e.ratio;if(k>=100)return Number.POSITIVE_INFINITY;if(k>=50)return k*d.value/100;const T=d.value/3;return Math.floor(Math.min(Math.max(k*d.value/100,fue),T))}),v=E(()=>{if(!Number.isFinite(p.value))return{display:"none"};const k=`${p.value}px`;return pue({bar:u.value,size:k,move:c.traveled},e.layout)}),m=E(()=>Math.ceil(e.clientSize-p.value-f(n))),g=()=>{window.addEventListener("mousemove",_),window.addEventListener("mouseup",w);const k=f(r);k&&(l=document.onselectstart,document.onselectstart=()=>!1,k.addEventListener("touchmove",_,{passive:!0}),k.addEventListener("touchend",w))},b=()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",w),document.onselectstart=l,l=null;const k=f(r);k&&(k.removeEventListener("touchmove",_),k.removeEventListener("touchend",w))},C=k=>{k.stopImmediatePropagation(),!(k.ctrlKey||[1,2].includes(k.button))&&(c.isDragging=!0,c[u.value.axis]=k.currentTarget[u.value.offset]-(k[u.value.client]-k.currentTarget.getBoundingClientRect()[u.value.direction]),t("start-move"),g())},w=()=>{c.isDragging=!1,c[u.value.axis]=0,t("stop-move"),b()},_=k=>{const{isDragging:T}=c;if(!T||!r.value||!o.value)return;const I=c[u.value.axis];if(!I)return;Yi(i);const O=(o.value.getBoundingClientRect()[u.value.direction]-k[u.value.client])*-1,R=r.value[u.value.offset]-I,$=O-R;i=Zr(()=>{c.traveled=Math.max(0,Math.min($,m.value)),t("scroll",$,m.value)})},x=k=>{const T=Math.abs(k.target.getBoundingClientRect()[u.value.direction]-k[u.value.client]),I=r.value[u.value.offset]/2,O=T-I;c.traveled=Math.max(0,Math.min(O,m.value)),t("scroll",O,m.value)};return be(()=>e.scrollFrom,k=>{c.isDragging||(c.traveled=Math.ceil(k*m.value))}),tn(()=>{b()}),()=>ut("div",{role:"presentation",ref:o,class:[s.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:ht(x,["stop","prevent"]),onTouchstartPrevent:C},ut("div",{ref:r,class:a.e("thumb"),style:v.value,onMousedown:C},[]))}}),iT=({name:e,getOffset:t,getItemSize:n,getItemOffset:s,getEstimatedTotalSize:a,getStartIndexForOffset:o,getStopIndexForStartIndex:r,initCache:i,clearCache:l,validateProps:c})=>j({name:e??"ElVirtualList",props:nT,emits:[p1,v1],setup(u,{emit:d,expose:h}){c(u);const p=Mt(),v=Ee("vl"),m=F(i(u,p)),g=JA(),b=F(),C=F(),w=F(),_=F({isScrolling:!1,scrollDir:"forward",scrollOffset:at(u.initScrollOffset)?u.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:u.scrollbarAlwaysOn}),x=E(()=>{const{total:K,cache:ee}=u,{isScrolling:se,scrollDir:pe,scrollOffset:te}=f(_);if(K===0)return[0,0,0,0];const fe=o(u,te,f(m)),ve=r(u,fe,te,f(m)),ce=!se||pe===m1?Math.max(1,ee):1,Z=!se||pe===Kf?Math.max(1,ee):1;return[Math.max(0,fe-ce),Math.max(0,Math.min(K-1,ve+Z)),fe,ve]}),k=E(()=>a(u,f(m))),T=E(()=>tv(u.layout)),I=E(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:u.direction,height:at(u.height)?`${u.height}px`:u.height,width:at(u.width)?`${u.width}px`:u.width},u.style]),O=E(()=>{const K=f(k),ee=f(T);return{height:ee?"100%":`${K}px`,pointerEvents:f(_).isScrolling?"none":void 0,width:ee?`${K}px`:"100%",margin:0,boxSizing:"border-box"}}),R=E(()=>T.value?u.width:u.height),{onWheel:$}=QA({atStartEdge:E(()=>_.value.scrollOffset<=0),atEndEdge:E(()=>_.value.scrollOffset>=k.value),layout:E(()=>u.layout)},K=>{var ee,se;(se=(ee=w.value).onMouseUp)==null||se.call(ee),L(Math.min(_.value.scrollOffset+K,k.value-R.value))});an(b,"wheel",$,{passive:!1});const M=()=>{const{total:K}=u;if(K>0){const[te,fe,ve,ce]=f(x);d(p1,te,fe,ve,ce)}const{scrollDir:ee,scrollOffset:se,updateRequested:pe}=f(_);d(v1,ee,se,pe)},B=K=>{const{clientHeight:ee,scrollHeight:se,scrollTop:pe}=K.currentTarget,te=f(_);if(te.scrollOffset===pe)return;const fe=Math.max(0,Math.min(pe,se-ee));_.value={...te,isScrolling:!0,scrollDir:Pu(te.scrollOffset,fe),scrollOffset:fe,updateRequested:!1},ze(z)},U=K=>{const{clientWidth:ee,scrollLeft:se,scrollWidth:pe}=K.currentTarget,te=f(_);if(te.scrollOffset===se)return;const{direction:fe}=u;let ve=se;if(fe===qf)switch(y1()){case ev:{ve=-se;break}case w6:{ve=pe-ee-se;break}}ve=Math.max(0,Math.min(ve,pe-ee)),_.value={...te,isScrolling:!0,scrollDir:Pu(te.scrollOffset,ve),scrollOffset:ve,updateRequested:!1},ze(z)},J=K=>{f(T)?U(K):B(K),M()},Y=(K,ee)=>{const se=(k.value-R.value)/ee*K;L(Math.min(k.value-R.value,se))},L=K=>{K=Math.max(K,0),K!==f(_).scrollOffset&&(_.value={...f(_),scrollOffset:K,scrollDir:Pu(f(_).scrollOffset,K),updateRequested:!0},ze(z))},N=(K,ee=Ho)=>{const{scrollOffset:se}=f(_);K=Math.max(0,Math.min(K,u.total-1)),L(t(u,K,ee,se,f(m)))},V=K=>{const{direction:ee,itemSize:se,layout:pe}=u,te=g.value(l&&se,l&&pe,l&&ee);let fe;if(Gt(te,String(K)))fe=te[K];else{const ve=s(u,K,f(m)),ce=n(u,K,f(m)),Z=f(T),H=ee===qf,ae=Z?ve:0;te[K]=fe={position:"absolute",left:H?void 0:`${ae}px`,right:H?`${ae}px`:void 0,top:Z?0:`${ve}px`,height:Z?"100%":`${ce}px`,width:Z?`${ce}px`:"100%"}}return fe},z=()=>{_.value.isScrolling=!1,ze(()=>{g.value(-1,null,null)})},q=()=>{const K=b.value;K&&(K.scrollTop=0)};Pt(()=>{if(!Xt)return;const{initScrollOffset:K}=u,ee=f(b);at(K)&&ee&&(f(T)?ee.scrollLeft=K:ee.scrollTop=K),M()}),or(()=>{const{direction:K,layout:ee}=u,{scrollOffset:se,updateRequested:pe}=f(_),te=f(b);if(pe&&te)if(ee===Uf)if(K===qf)switch(y1()){case ev:{te.scrollLeft=-se;break}case y6:{te.scrollLeft=se;break}default:{const{clientWidth:fe,scrollWidth:ve}=te;te.scrollLeft=ve-fe-se;break}}else te.scrollLeft=se;else te.scrollTop=se}),U0(()=>{f(b).scrollTop=f(_).scrollOffset});const Q={ns:v,clientSize:R,estimatedTotalSize:k,windowStyle:I,windowRef:b,innerRef:C,innerStyle:O,itemsToRender:x,scrollbarRef:w,states:_,getItemStyle:V,onScroll:J,onScrollbarScroll:Y,onWheel:$,scrollTo:L,scrollToItem:N,resetScrollTop:q};return h({windowRef:b,innerRef:C,getItemStyleCache:g,scrollTo:L,scrollToItem:N,resetScrollTop:q,states:_}),Q},render(u){var d;const{$slots:h,className:p,clientSize:v,containerElement:m,data:g,getItemStyle:b,innerElement:C,itemsToRender:w,innerStyle:_,layout:x,total:k,onScroll:T,onScrollbarScroll:I,states:O,useIsScrolling:R,windowStyle:$,ns:M}=u,[B,U]=w,J=kt(m),Y=kt(C),L=[];if(k>0)for(let q=B;q<=U;q++)L.push(ut(He,{key:q},(d=h.default)==null?void 0:d.call(h,{data:g,index:q,isScrolling:R?O.isScrolling:void 0,style:b(q)})));const N=[ut(Y,Tt(u.innerProps,{style:_,ref:"innerRef"}),Xe(Y)?L:{default:()=>L})],V=ut(E6,{ref:"scrollbarRef",clientSize:v,layout:x,onScroll:I,ratio:v*100/this.estimatedTotalSize,scrollFrom:O.scrollOffset/(this.estimatedTotalSize-v),total:k,alwaysOn:O.scrollbarAlwaysOn}),z=ut(J,{class:[M.e("window"),p],style:$,onScroll:T,ref:"windowRef",key:0},Xe(J)?[N]:{default:()=>[N]});return ut("div",{key:0,class:[M.e("wrapper"),O.scrollbarAlwaysOn?"always-on":""]},[z,V])}}),lT=iT({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:s,width:a},o,r,i)=>{const l=tv(s)?a:e,c=Math.max(0,t*n-l),u=Math.min(c,o*n),d=Math.max(0,(o+1)*n-l);switch(r===g1&&(i>=d-l&&i<=u+l?r=Ho:r=ii),r){case Zp:return u;case Qp:return d;case ii:{const h=Math.round(d+(u-d)/2);return hc+Math.floor(l/2)?c:h}case Ho:default:return i>=d&&i<=u?i:iMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:s,width:a},o,r)=>{const i=o*n,l=tv(s)?a:e,c=Math.ceil((l+r-i)/n);return Math.max(0,Math.min(t-1,o+c-1))},initCache(){},clearCache:!0,validateProps(){}}),Yf=(e,t,n)=>{const{itemSize:s}=e,{items:a,lastVisitedIndex:o}=n;if(t>o){let r=0;if(o>=0){const i=a[o];r=i.offset+i.size}for(let i=o+1;i<=t;i++){const l=s(i);a[i]={offset:r,size:l},r+=l}n.lastVisitedIndex=t}return a[t]},vue=(e,t,n)=>{const{items:s,lastVisitedIndex:a}=t;return(a>0?s[a].offset:0)>=n?cT(e,t,0,a,n):mue(e,t,Math.max(0,a),n)},cT=(e,t,n,s,a)=>{for(;n<=s;){const o=n+Math.floor((s-n)/2),r=Yf(e,o,t).offset;if(r===a)return o;ra&&(s=o-1)}return Math.max(0,n-1)},mue=(e,t,n,s)=>{const{total:a}=e;let o=1;for(;n{let a=0;if(s>=e&&(s=e-1),s>=0){const i=t[s];a=i.offset+i.size}const r=(e-s-1)*n;return a+r},gue=iT({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Yf(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:uT,getOffset:(e,t,n,s,a)=>{const{height:o,layout:r,width:i}=e,l=tv(r)?i:o,c=Yf(e,t,a),u=uT(e,a),d=Math.max(0,Math.min(u-l,c.offset)),h=Math.max(0,c.offset-l+c.size);switch(n===g1&&(s>=h-l&&s<=d+l?n=Ho:n=ii),n){case Zp:return d;case Qp:return h;case ii:return Math.round(h+(d-h)/2);case Ho:default:return s>=h&&s<=d?s:svue(e,n,t),getStopIndexForStartIndex:(e,t,n,s)=>{const{height:a,total:o,layout:r,width:i}=e,l=tv(r)?i:a,c=Yf(e,t,s),u=n+l;let d=c.offset+c.size,h=t;for(;h{var o,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,s-1),(o=t.exposed)==null||o.getItemStyleCache(-1),a&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}});var bue=j({name:"ElSelectDropdown",props:{loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String},setup(e,{slots:t,expose:n}){const s=Ke(g6),a=Ee("select"),{getLabel:o,getValue:r,getDisabled:i}=Bp(s.props),l=F([]),c=F(),u=E(()=>e.data.length);be(()=>u.value,()=>{var $,M;(M=($=s.tooltipRef.value)==null?void 0:$.updatePopper)==null||M.call($)});const d=E(()=>Ht(s.props.estimatedOptionHeight)),h=E(()=>d.value?{itemSize:s.props.itemHeight}:{estimatedSize:s.props.estimatedOptionHeight,itemSize:$=>l.value[$]}),p=($=[],M)=>{const{props:{valueKey:B}}=s;return bt(M)?$&&$.some(U=>pn(Qn(U,B))===Qn(M,B)):$.includes(M)},v=($,M)=>{if(bt(M)){const{valueKey:B}=s.props;return Qn($,B)===Qn(M,B)}else return $===M},m=($,M)=>s.props.multiple?p($,r(M)):v($,r(M)),g=($,M)=>{const{disabled:B,multiple:U,multipleLimit:J}=s.props;return B||!M&&(U?J>0&&$.length>=J:!1)},b=$=>e.hoveringIndex===$;n({listRef:c,isSized:d,isItemDisabled:g,isItemHovering:b,isItemSelected:m,scrollToItem:$=>{const M=c.value;M&&M.scrollToItem($)},resetScrollTop:()=>{const $=c.value;$&&$.resetScrollTop()}});const x=$=>{const{index:M,data:B,style:U}=$,J=f(d),{itemSize:Y,estimatedSize:L}=f(h),{modelValue:N}=s.props,{onSelect:V,onHover:z}=s,q=B[M];if(q.type==="Group")return W(Jce,{item:q,style:U,height:J?Y:L},null);const Q=m(N,q),K=g(N,Q),ee=b(M);return W(rue,Tt($,{selected:Q,disabled:i(q)||K,created:!!q.created,hovering:ee,item:q,onSelect:V,onHover:z}),{default:se=>{var pe;return((pe=t.default)==null?void 0:pe.call(t,se))||W("span",null,[o(q)])}})},{onKeyboardNavigate:k,onKeyboardSelect:T}=s,I=()=>{k("forward")},O=()=>{k("backward")},R=$=>{const M=un($),{tab:B,esc:U,down:J,up:Y,enter:L,numpadEnter:N}=Te;switch([U,J,Y,L,N].includes(M)&&($.preventDefault(),$.stopPropagation()),M){case B:case U:break;case J:I();break;case Y:O();break;case L:case N:T();break}};return()=>{var $,M,B,U;const{data:J,width:Y}=e,{height:L,multiple:N,scrollbarAlwaysOn:V}=s.props,z=E(()=>yg?!0:V),q=f(d)?lT:gue;return W("div",{class:[a.b("dropdown"),a.is("multiple",N)],style:{width:`${Y}px`}},[($=t.header)==null?void 0:$.call(t),((M=t.loading)==null?void 0:M.call(t))||((B=t.empty)==null?void 0:B.call(t))||W(q,Tt({ref:c},f(h),{className:a.be("dropdown","list"),scrollbarAlwaysOn:z.value,data:J,height:L,width:Y,total:J.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:R}),{default:Q=>W(x,Q,null)}),(U=t.footer)==null?void 0:U.call(t)])}}});function yue(e,t){const{aliasProps:n,getLabel:s,getValue:a}=Bp(e),o=F(0),r=F(),i=E(()=>e.allowCreate&&e.filterable);be(()=>e.options,p=>{const v=new Set(p.map(m=>s(m)));t.createdOptions=t.createdOptions.filter(m=>!v.has(s(m)))});function l(p){const v=m=>s(m)===p;return e.options&&e.options.some(v)||t.createdOptions.some(v)}function c(p){i.value&&(e.multiple&&p.created?o.value++:r.value=p)}function u(p){if(i.value)if(p&&p.length>0){if(l(p)){t.createdOptions=t.createdOptions.filter(m=>s(m)!==t.previousQuery);return}const v={[n.value.value]:p,[n.value.label]:p,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=o.value?t.createdOptions[o.value]=v:t.createdOptions.push(v)}else if(e.multiple)t.createdOptions.length=o.value;else{const v=r.value;t.createdOptions.length=0,v&&v.created&&t.createdOptions.push(v)}}function d(p){if(!i.value||!p||!p.created||p.created&&e.reserveKeyword&&t.inputValue===s(p))return;const v=t.createdOptions.findIndex(m=>a(m)===a(p));~v&&(t.createdOptions.splice(v,1),o.value--)}function h(){i.value&&(t.createdOptions.length=0,o.value=0)}return{createNewOption:u,removeNewOption:d,selectNewOption:c,clearAllNewOption:h}}const wue=(e,t)=>{const{t:n}=Bt(),s=jn(),a=Ee("select"),o=Ee("input"),{form:r,formItem:i}=Ts(),{inputId:l}=uo(e,{formItemContext:i}),{aliasProps:c,getLabel:u,getValue:d,getDisabled:h,getOptions:p}=Bp(e),{valueOnClear:v,isEmptyValue:m}=wp(e),g=Yt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=F(-1),C=F(!1),w=F(),_=F(),x=F(),k=F(),T=F(),I=F(),O=F(),R=F(),$=F(),M=F(),{isComposing:B,handleCompositionStart:U,handleCompositionEnd:J,handleCompositionUpdate:Y}=Dp({afterComposition:ke=>he(ke)}),L=Nn(),{wrapperRef:N,isFocused:V,handleBlur:z}=tl(T,{disabled:L,afterFocus(){e.automaticDropdown&&!ee.value&&(ee.value=!0,g.menuVisibleOnFocus=!0)},beforeBlur(ke){var tt,Ne;return((tt=x.value)==null?void 0:tt.isFocusInsideContent(ke))||((Ne=k.value)==null?void 0:Ne.isFocusInsideContent(ke))},afterBlur(){var ke;ee.value=!1,g.menuVisibleOnFocus=!1,e.validateEvent&&((ke=i==null?void 0:i.validate)==null||ke.call(i,"blur").catch(tt=>void 0))}}),q=E(()=>Le("")),Q=E(()=>e.loading?!1:e.options.length>0||g.createdOptions.length>0),K=F([]),ee=F(!1),se=E(()=>{var ke;return(ke=r==null?void 0:r.statusIcon)!=null?ke:!1}),pe=E(()=>{const ke=K.value.length*e.itemHeight;return ke>e.height?e.height:ke}),te=E(()=>e.multiple?Ae(e.modelValue)&&e.modelValue.length>0:!m(e.modelValue)),fe=E(()=>e.clearable&&!L.value&&te.value&&(V.value||g.inputHovering)),ve=E(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),ce=E(()=>ve.value&&a.is("reverse",ee.value)),Z=E(()=>(i==null?void 0:i.validateState)||""),H=E(()=>{if(Z.value)return Pg[Z.value]}),ae=E(()=>e.remote?e.debounce:0),de=E(()=>e.remote&&!g.inputValue&&!Q.value),ye=E(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&g.inputValue&&Q.value&&K.value.length===0?e.noMatchText||n("el.select.noMatch"):Q.value?null:e.noDataText||n("el.select.noData")),_e=E(()=>e.filterable&&Ze(e.filterMethod)),Se=E(()=>e.filterable&&e.remote&&Ze(e.remoteMethod)),Le=ke=>{const tt=new RegExp(k3(ke),"i"),Ne=St=>_e.value||Se.value?!0:ke?tt.test(u(St)||""):!0;return e.loading?[]:[...g.createdOptions,...e.options].reduce((St,qn)=>{const Zn=p(qn);if(Ae(Zn)){const Ri=Zn.filter(Ne);Ri.length>0&&St.push({label:u(qn),type:"Group"},...Ri)}else(e.remote||Ne(qn))&&St.push(qn);return St},[])},De=()=>{K.value=Le(g.inputValue)},$e=E(()=>{const ke=new Map;return q.value.forEach((tt,Ne)=>{ke.set(ot(d(tt)),{option:tt,index:Ne})}),ke}),Ce=E(()=>{const ke=new Map;return K.value.forEach((tt,Ne)=>{ke.set(ot(d(tt)),{option:tt,index:Ne})}),ke}),Oe=E(()=>K.value.every(ke=>h(ke))),Ie=rs(),We=E(()=>Ie.value==="small"?"small":"default"),nt=()=>{var ke;if(at(e.fitInputWidth)){b.value=e.fitInputWidth;return}const tt=((ke=w.value)==null?void 0:ke.offsetWidth)||200;!e.fitInputWidth&&Q.value?ze(()=>{b.value=Math.max(tt,dt())}):b.value=tt},dt=()=>{var ke,tt;const St=document.createElement("canvas").getContext("2d"),qn=a.be("dropdown","item"),Ri=(((tt=(ke=R.value)==null?void 0:ke.listRef)==null?void 0:tt.innerRef)||document).querySelector(`.${qn}`);if(Ri===null||St===null)return 0;const Ii=getComputedStyle(Ri),Xye=Number.parseFloat(Ii.paddingLeft)+Number.parseFloat(Ii.paddingRight);return St.font=`bold ${Ii.font.replace(new RegExp(`\\b${Ii.fontWeight}\\b`),"")}`,K.value.reduce((Jye,Zye)=>{const Qye=St.measureText(u(Zye));return Math.max(Qye.width,Jye)},0)+Xye},Fe=()=>{if(!_.value)return 0;const ke=window.getComputedStyle(_.value);return Number.parseFloat(ke.gap||"6px")},Be=E(()=>{const ke=Fe(),tt=e.filterable?ke+Ug:0;return{maxWidth:`${M.value&&e.maxCollapseTags===1?g.selectionWidth-g.collapseItemWidth-ke-tt:g.selectionWidth-tt}px`}}),et=E(()=>({maxWidth:`${g.selectionWidth}px`})),Wt=E(()=>Ae(e.modelValue)?e.modelValue.length===0&&!g.inputValue:e.filterable?!g.inputValue:!0),qt=E(()=>{var ke;const tt=(ke=e.placeholder)!=null?ke:n("el.select.placeholder");return e.multiple||!te.value?tt:g.selectedLabel}),ct=E(()=>{var ke,tt;return(tt=(ke=x.value)==null?void 0:ke.popperRef)==null?void 0:tt.contentRef}),gt=E(()=>{if(e.multiple){const ke=e.modelValue.length;if(ke>0&&Ce.value.has(e.modelValue[ke-1])){const{index:tt}=Ce.value.get(e.modelValue[ke-1]);return tt}}else if(!m(e.modelValue)&&Ce.value.has(e.modelValue)){const{index:ke}=Ce.value.get(e.modelValue);return ke}return-1}),Ot=E({get(){return ee.value&&(e.loading||!de.value||e.remote&&!!s.empty)&&(!C.value||!Ra(g.previousQuery))},set(ke){ee.value=ke}}),xe=E(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(0,e.maxCollapseTags):g.cachedOptions:[]),Ue=E(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:we,removeNewOption:Ye,selectNewOption:At,clearAllNewOption:Jt}=yue(e,g),Cn=ke=>{var tt;L.value||e.filterable&&ee.value&&ke&&!((tt=O.value)!=null&&tt.contains(ke.target))||(g.menuVisibleOnFocus?g.menuVisibleOnFocus=!1:ee.value=!ee.value)},xn=()=>{g.inputValue.length>0&&!ee.value&&(ee.value=!0),we(g.inputValue),ze(()=>{st(g.inputValue)})},Ve=gp(()=>{xn(),C.value=!1},ae),st=ke=>{g.previousQuery===ke||B.value||(g.previousQuery=ke,e.filterable&&Ze(e.filterMethod)?e.filterMethod(ke):e.filterable&&e.remote&&Ze(e.remoteMethod)&&e.remoteMethod(ke),e.defaultFirstOption&&(e.filterable||e.remote)&&K.value.length?ze(_t):ze(me))},_t=()=>{const ke=K.value.filter(St=>!St.disabled&&St.type!=="Group"),tt=ke.find(St=>St.created),Ne=ke[0];g.hoveringIndex=rt(K.value,tt||Ne)},kn=ke=>{Bn(e.modelValue,ke)||t(Dt,ke)},Zt=ke=>{t(mt,ke),kn(ke),g.previousValue=e.multiple?String(ke):ke,ze(()=>{if(e.multiple&&Ae(e.modelValue)){const tt=g.cachedOptions.slice(),Ne=e.modelValue.map(St=>lt(St,tt));Bn(g.cachedOptions,Ne)||(g.cachedOptions=Ne)}else Ft(!0)})},rt=(ke=[],tt)=>{if(!bt(tt))return ke.indexOf(tt);const Ne=e.valueKey;let St=-1;return ke.some((qn,Zn)=>Qn(qn,Ne)===Qn(tt,Ne)?(St=Zn,!0):!1),St},ot=ke=>bt(ke)?Qn(ke,e.valueKey):ke,Rt=()=>{nt()},Es=()=>{g.selectionWidth=Number.parseFloat(window.getComputedStyle(_.value).width)},sa=()=>{g.collapseItemWidth=M.value.getBoundingClientRect().width},Io=()=>{var ke,tt;(tt=(ke=x.value)==null?void 0:ke.updatePopper)==null||tt.call(ke)},C0=()=>{var ke,tt;(tt=(ke=k.value)==null?void 0:ke.updatePopper)==null||tt.call(ke)},jl=ke=>{const tt=d(ke);if(e.multiple){let Ne=e.modelValue.slice();const St=rt(Ne,tt);St>-1?(Ne=[...Ne.slice(0,St),...Ne.slice(St+1)],g.cachedOptions.splice(St,1),Ye(ke)):(e.multipleLimit<=0||Ne.length{let Ne=e.modelValue.slice();const St=rt(Ne,d(tt));St>-1&&!L.value&&(Ne=[...e.modelValue.slice(0,St),...e.modelValue.slice(St+1)],g.cachedOptions.splice(St,1),Zt(Ne),t("remove-tag",d(tt)),Ye(tt)),ke.stopPropagation(),Vr()},Vr=()=>{var ke;(ke=T.value)==null||ke.focus()},o2=()=>{var ke;if(ee.value){ee.value=!1,ze(()=>{var tt;return(tt=T.value)==null?void 0:tt.blur()});return}(ke=T.value)==null||ke.blur()},tf=()=>{g.inputValue.length>0?g.inputValue="":ee.value=!1},r2=ke=>fx(ke,tt=>!g.cachedOptions.some(Ne=>d(Ne)===tt&&h(Ne))),i2=ke=>{const tt=un(ke);if(e.multiple&&tt!==Te.delete&&g.inputValue.length===0){ke.preventDefault();const Ne=e.modelValue.slice(),St=r2(Ne);if(St<0)return;const qn=Ne[St];Ne.splice(St,1);const Zn=g.cachedOptions[St];g.cachedOptions.splice(St,1),Ye(Zn),Zt(Ne),t("remove-tag",qn)}},l2=()=>{let ke;Ae(e.modelValue)?ke=[]:ke=v.value,g.selectedLabel="",ee.value=!1,Zt(ke),t("clear"),Jt(),Vr()},Kl=(ke,tt=void 0)=>{const Ne=K.value;if(!["forward","backward"].includes(ke)||L.value||Ne.length<=0||Oe.value||B.value)return;if(!ee.value)return Cn();Ht(tt)&&(tt=g.hoveringIndex);let St=-1;ke==="forward"?(St=tt+1,St>=Ne.length&&(St=0)):ke==="backward"&&(St=tt-1,(St<0||St>=Ne.length)&&(St=Ne.length-1));const qn=Ne[St];if(h(qn)||qn.type==="Group")return Kl(ke,St);g.hoveringIndex=St,qe(St)},Pe=()=>{if(ee.value)~g.hoveringIndex&&K.value[g.hoveringIndex]&&jl(K.value[g.hoveringIndex]);else return Cn()},pt=ke=>{g.hoveringIndex=ke??-1},me=()=>{if(!e.multiple)g.hoveringIndex=K.value.findIndex(ke=>ot(d(ke))===ot(e.modelValue));else{const ke=e.modelValue.length;if(ke>0){const tt=e.modelValue[ke-1];g.hoveringIndex=K.value.findIndex(Ne=>ot(tt)===ot(d(Ne)))}else g.hoveringIndex=-1}},he=ke=>{if(g.inputValue=ke.target.value,e.remote)C.value=!0,Ve();else return xn()},Re=ke=>{if(ee.value=!1,V.value){const tt=new FocusEvent("blur",ke);z(tt)}},it=()=>(g.isBeforeHide=!1,ze(()=>{~gt.value&&qe(gt.value)})),qe=ke=>{R.value.scrollToItem(ke)},lt=(ke,tt)=>{const Ne=ot(ke);if($e.value.has(Ne)){const{option:St}=$e.value.get(Ne);return St}if(tt&&tt.length){const St=tt.find(qn=>ot(d(qn))===Ne);if(St)return St}return{[c.value.value]:ke,[c.value.label]:ke}},vt=ke=>{var tt,Ne;return(Ne=(tt=$e.value.get(d(ke)))==null?void 0:tt.index)!=null?Ne:-1},Ft=(ke=!1)=>{if(e.multiple)if(e.modelValue.length>0){const tt=g.cachedOptions.slice();g.cachedOptions.length=0,g.previousValue=e.modelValue.toString();for(const Ne of e.modelValue){const St=lt(Ne,tt);g.cachedOptions.push(St)}}else g.cachedOptions=[],g.previousValue=void 0;else if(te.value){g.previousValue=e.modelValue;const tt=K.value,Ne=tt.findIndex(St=>ot(d(St))===ot(e.modelValue));~Ne?g.selectedLabel=u(tt[Ne]):(!g.selectedLabel||ke)&&(g.selectedLabel=ot(e.modelValue))}else g.selectedLabel="",g.previousValue=void 0;Jt(),nt()};be(()=>e.fitInputWidth,()=>{nt()}),be(ee,ke=>{ke?(e.persistent||nt(),st("")):(g.inputValue="",g.previousQuery=null,g.isBeforeHide=!0,g.menuVisibleOnFocus=!1,we(""))}),be(()=>e.modelValue,(ke,tt)=>{var Ne;(!ke||Ae(ke)&&ke.length===0||e.multiple&&!Bn(ke.toString(),g.previousValue)||!e.multiple&&ot(ke)!==ot(g.previousValue))&&Ft(!0),!Bn(ke,tt)&&e.validateEvent&&((Ne=i==null?void 0:i.validate)==null||Ne.call(i,"change").catch(qn=>void 0))},{deep:!0}),be(()=>e.options,()=>{const ke=T.value;(!ke||ke&&document.activeElement!==ke)&&Ft()},{deep:!0,flush:"post"}),be(()=>K.value,()=>(nt(),R.value&&ze(R.value.resetScrollTop))),Wa(()=>{g.isBeforeHide||De()}),Wa(()=>{const{valueKey:ke,options:tt}=e,Ne=new Map;for(const St of tt){const qn=d(St);let Zn=qn;if(bt(Zn)&&(Zn=Qn(qn,ke)),Ne.get(Zn))break;Ne.set(Zn,!0)}}),Pt(()=>{Ft()}),En(w,Rt),En(_,Es),En(N,Io),En($,C0),En(M,sa);let ft;return be(()=>Ot.value,ke=>{ke?ft=En(R,Io).stop:(ft==null||ft(),ft=void 0),t("visible-change",ke)}),{inputId:l,collapseTagSize:We,currentPlaceholder:qt,expanded:ee,emptyText:ye,popupHeight:pe,debounce:ae,allOptions:q,allOptionsValueMap:$e,filteredOptions:K,iconComponent:ve,iconReverse:ce,tagStyle:Be,collapseTagStyle:et,popperSize:b,dropdownMenuVisible:Ot,hasModelValue:te,shouldShowPlaceholder:Wt,selectDisabled:L,selectSize:Ie,needStatusIcon:se,showClearBtn:fe,states:g,isFocused:V,nsSelect:a,nsInput:o,inputRef:T,menuRef:R,tagMenuRef:$,tooltipRef:x,tagTooltipRef:k,selectRef:w,wrapperRef:N,selectionRef:_,prefixRef:I,suffixRef:O,collapseItemRef:M,popperRef:ct,validateState:Z,validateIcon:H,showTagList:xe,collapseTagList:Ue,debouncedOnInputChange:Ve,deleteTag:S0,getLabel:u,getValue:d,getDisabled:h,getValueKey:ot,getIndex:vt,handleClear:l2,handleClickOutside:Re,handleDel:i2,handleEsc:tf,focus:Vr,blur:o2,handleMenuEnter:it,handleResize:Rt,resetSelectionWidth:Es,updateTooltip:Io,updateTagTooltip:C0,updateOptions:De,toggleMenu:Cn,scrollTo:qe,onInput:he,onKeyboardNavigate:Kl,onKeyboardSelect:Pe,onSelect:jl,onHover:pt,handleCompositionStart:U,handleCompositionEnd:J,handleCompositionUpdate:Y}};var _ue=j({name:"ElSelectV2",components:{ElSelectMenu:bue,ElTag:rl,ElTooltip:Ms,ElIcon:Je},directives:{ClickOutside:dc},props:Qce,emits:tue,setup(e,{emit:t}){const n=E(()=>{const{modelValue:l,multiple:c}=e,u=c?[]:void 0;return Ae(l)?c?l:u:c?u:l}),s=wue(Yt({...ys(e),modelValue:n}),t),{calculatorRef:a,inputStyle:o}=T3(),r=Bs();Nt(g6,{props:Yt({...ys(e),height:s.popupHeight,modelValue:n}),expanded:s.expanded,tooltipRef:s.tooltipRef,contentId:r,onSelect:s.onSelect,onHover:s.onHover,onKeyboardNavigate:s.onKeyboardNavigate,onKeyboardSelect:s.onKeyboardSelect});const i=E(()=>e.multiple?s.states.cachedOptions.map(l=>s.getLabel(l)):s.states.selectedLabel);return{...s,modelValue:n,selectedLabel:i,calculatorRef:a,inputStyle:o,contentId:r,BORDER_HORIZONTAL_WIDTH:Gk}}});const Cue=["id","value","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],Sue=["textContent"],xue={key:1};function kue(e,t,n,s,a,o){const r=Ge("el-tag"),i=Ge("el-tooltip"),l=Ge("el-icon"),c=Ge("el-select-menu"),u=F4("click-outside");return Ct((S(),P("div",{ref:"selectRef",class:D([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[14]||(t[14]=d=>e.states.inputHovering=!0),onMouseleave:t[15]||(t[15]=d=>e.states.inputHovering=!1)},[W(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[13]||(t[13]=d=>e.states.isBeforeHide=!1)},{default:X(()=>{var d,h;return[A("div",{ref:"wrapperRef",class:D([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[10]||(t[10]=ht((...p)=>e.toggleMenu&&e.toggleMenu(...p),["prevent"]))},[e.$slots.prefix?(S(),P("div",{key:0,ref:"prefixRef",class:D(e.nsSelect.e("prefix"))},[ue(e.$slots,"prefix")],2)):ie("v-if",!0),A("div",{ref:"selectionRef",class:D([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?ue(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(S(!0),P(He,null,Et(e.showTagList,p=>(S(),P("div",{key:e.getValueKey(e.getValue(p)),class:D(e.nsSelect.e("selected-item"))},[W(r,{closable:!e.selectDisabled&&!e.getDisabled(p),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Qe(e.tagStyle),onClose:v=>e.deleteTag(v,p)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:e.getIndex(p),label:e.getLabel(p),value:e.getValue(p)},()=>[je(ge(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(S(),le(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported,"popper-options":e.popperOptions},{default:X(()=>[A("div",{ref:"collapseItemRef",class:D(e.nsSelect.e("selected-item"))},[W(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Qe(e.collapseTagStyle),"disable-transitions":""},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))}," + "+ge(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:X(()=>[A("div",{ref:"tagMenuRef",class:D(e.nsSelect.e("selection"))},[(S(!0),P(He,null,Et(e.collapseTagList,p=>(S(),P("div",{key:e.getValueKey(e.getValue(p)),class:D(e.nsSelect.e("selected-item"))},[W(r,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(p),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:v=>e.deleteTag(v,p)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:e.getIndex(p),label:e.getLabel(p),value:e.getValue(p)},()=>[je(ge(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported","popper-options"])):ie("v-if",!0)]):ie("v-if",!0),A("div",{class:D([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled)])},[A("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,style:Qe(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:D([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[0]||(t[0]=(...p)=>e.onInput&&e.onInput(...p)),onCompositionstart:t[1]||(t[1]=(...p)=>e.handleCompositionStart&&e.handleCompositionStart(...p)),onCompositionupdate:t[2]||(t[2]=(...p)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...p)),onCompositionend:t[3]||(t[3]=(...p)=>e.handleCompositionEnd&&e.handleCompositionEnd(...p)),onKeydown:[t[4]||(t[4]=Fn(ht(p=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[5]||(t[5]=Fn(ht(p=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[6]||(t[6]=Fn(ht((...p)=>e.onKeyboardSelect&&e.onKeyboardSelect(...p),["stop","prevent"]),["enter"])),t[7]||(t[7]=Fn(ht((...p)=>e.handleEsc&&e.handleEsc(...p),["stop","prevent"]),["esc"])),t[8]||(t[8]=Fn(ht((...p)=>e.handleDel&&e.handleDel(...p),["stop"]),["delete"]))],onClick:t[9]||(t[9]=ht((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},null,46,Cue),e.filterable?(S(),P("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:D(e.nsSelect.e("input-calculator")),textContent:ge(e.states.inputValue)},null,10,Sue)):ie("v-if",!0)],2),e.shouldShowPlaceholder?(S(),P("div",{key:1,class:D([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ue(e.$slots,"label",{key:0,index:(h=(d=e.allOptionsValueMap.get(e.modelValue))==null?void 0:d.index)!=null?h:-1,label:e.currentPlaceholder,value:e.modelValue},()=>[A("span",null,ge(e.currentPlaceholder),1)]):(S(),P("span",xue,ge(e.currentPlaceholder),1))],2)):ie("v-if",!0)],2),A("div",{ref:"suffixRef",class:D(e.nsSelect.e("suffix"))},[e.iconComponent?Ct((S(),le(l,{key:0,class:D([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:X(()=>[(S(),le(kt(e.iconComponent)))]),_:1},8,["class"])),[[jt,!e.showClearBtn]]):ie("v-if",!0),e.showClearBtn&&e.clearIcon?(S(),le(l,{key:1,class:D([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:ht(e.handleClear,["prevent","stop"])},{default:X(()=>[(S(),le(kt(e.clearIcon)))]),_:1},8,["class","onClick"])):ie("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(S(),le(l,{key:2,class:D([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:X(()=>[(S(),le(kt(e.validateIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)]}),content:X(()=>[W(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},Aa({default:X(d=>[ue(e.$slots,"default",Ni(Hi(d)))]),_:2},[e.$slots.header?{name:"header",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","header")),onClick:t[11]||(t[11]=ht(()=>{},["stop"]))},[ue(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","loading"))},[ue(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","empty"))},[ue(e.$slots,"empty",{},()=>[A("span",null,ge(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","footer")),onClick:t[12]||(t[12]=ht(()=>{},["stop"]))},[ue(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[u,e.handleClickOutside,e.popperRef]])}var Eue=fs(_ue,[["render",kue]]);const Aue=yt(Eue),Tue=Me({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:re([Number,Object])}}),Mue=Me({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var w1=j({name:"ElSkeletonItem",__name:"skeleton-item",props:Mue,setup(e){const t=Ee("skeleton");return(n,s)=>(S(),P("div",{class:D([f(t).e("item"),f(t).e(e.variant)])},[e.variant==="image"?(S(),le(f(n9),{key:0})):ie("v-if",!0)],2))}});const Pue=(e,t=0)=>{if(t===0)return e;const n=bt(t)&&!!t.initVal,s=F(n);let a=null;const o=i=>{if(Ht(i)){s.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{s.value=e.value},i)},r=i=>{i==="leading"?at(t)?o(t):o(t.leading):bt(t)?o(t.trailing):s.value=!1};return Pt(()=>r("leading")),be(()=>e.value,i=>{r(i?"leading":"trailing")}),s};var Rue=j({name:"ElSkeleton",__name:"skeleton",props:Tue,setup(e,{expose:t}){const n=e,s=Ee("skeleton"),a=Pue(sn(n,"loading"),n.throttle);return t({uiLoading:a}),(o,r)=>f(a)?(S(),P("div",Tt({key:0,class:[f(s).b(),f(s).is("animated",e.animated)]},o.$attrs),[(S(!0),P(He,null,Et(e.count,i=>(S(),P(He,{key:i},[f(a)?ue(o.$slots,"template",{key:i},()=>[W(w1,{class:D(f(s).is("first")),variant:"p"},null,8,["class"]),(S(!0),P(He,null,Et(e.rows,l=>(S(),le(w1,{key:l,class:D([f(s).e("paragraph"),f(s).is("last",l===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ie("v-if",!0)],64))),128))],16)):ue(o.$slots,"default",Ni(Tt({key:1},o.$attrs)))}});const Iue=yt(Rue,{SkeletonItem:w1}),Oue=Pn(w1),dT=Symbol("sliderContextKey"),Lue=Me({modelValue:{type:re([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:ds,inputSize:ds,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:re(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:re(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:ei,default:"top"},marks:{type:re(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...ca(["ariaLabel"])}),A6=e=>at(e)||Ae(e)&&e.every(at),Nue={[mt]:A6,[os]:A6,[Dt]:A6},$ue=Me({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:ei,default:"top"}}),Due={[mt]:e=>at(e)},Fue=(e,t,n)=>{const s=F(),a=F(!1),o=E(()=>t.value instanceof Function),r=E(()=>o.value&&t.value(e.modelValue)||e.modelValue),i=Jr(()=>{n.value&&(a.value=!0)},50),l=Jr(()=>{n.value&&(a.value=!1)},50);return{tooltip:s,tooltipVisible:a,formatValue:r,displayTooltip:i,hideTooltip:l}},Bue=(e,t,n)=>{const{disabled:s,min:a,max:o,step:r,showTooltip:i,persistent:l,precision:c,sliderSize:u,formatTooltip:d,emitChange:h,resetSize:p,updateDragging:v}=Ke(dT),{tooltip:m,tooltipVisible:g,formatValue:b,displayTooltip:C,hideTooltip:w}=Fue(e,d,i),_=F(),x=E(()=>`${(e.modelValue-a.value)/(o.value-a.value)*100}%`),k=E(()=>e.vertical?{bottom:x.value}:{left:x.value}),T=()=>{t.hovering=!0,C()},I=()=>{t.hovering=!1,t.dragging||w()},O=K=>{s.value||(K.preventDefault(),V(K),window.addEventListener("mousemove",z),window.addEventListener("touchmove",z),window.addEventListener("mouseup",q),window.addEventListener("touchend",q),window.addEventListener("contextmenu",q),_.value.focus())},R=K=>{s.value||(t.newPosition=Number.parseFloat(x.value)+K/(o.value-a.value)*100,Q(t.newPosition),h())},$=()=>{R(-r.value)},M=()=>{R(r.value)},B=()=>{R(-r.value*4)},U=()=>{R(r.value*4)},J=()=>{s.value||(Q(0),h())},Y=()=>{s.value||(Q(100),h())},L=K=>{const ee=un(K);let se=!0;switch(ee){case Te.left:case Te.down:$();break;case Te.right:case Te.up:M();break;case Te.home:J();break;case Te.end:Y();break;case Te.pageDown:B();break;case Te.pageUp:U();break;default:se=!1;break}se&&K.preventDefault()},N=K=>{let ee,se;return K.type.startsWith("touch")?(se=K.touches[0].clientY,ee=K.touches[0].clientX):(se=K.clientY,ee=K.clientX),{clientX:ee,clientY:se}},V=K=>{t.dragging=!0,t.isClick=!0;const{clientX:ee,clientY:se}=N(K);e.vertical?t.startY=se:t.startX=ee,t.startPosition=Number.parseFloat(x.value),t.newPosition=t.startPosition},z=K=>{if(t.dragging){t.isClick=!1,C(),p();let ee;const{clientX:se,clientY:pe}=N(K);e.vertical?(t.currentY=pe,ee=(t.startY-t.currentY)/u.value*100):(t.currentX=se,ee=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+ee,Q(t.newPosition)}},q=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||w(),t.isClick||Q(t.newPosition),h()},0),window.removeEventListener("mousemove",z),window.removeEventListener("touchmove",z),window.removeEventListener("mouseup",q),window.removeEventListener("touchend",q),window.removeEventListener("contextmenu",q))},Q=async K=>{if(K===null||Number.isNaN(+K))return;K=yu(K,0,100);const ee=Math.floor((o.value-a.value)/r.value),se=ee*r.value/(o.value-a.value)*100,pe=se+(100-se)/2;let te;if(Kt.dragging,K=>{v(K)}),an(_,"touchstart",O,{passive:!1}),{disabled:s,button:_,tooltip:m,tooltipVisible:g,showTooltip:i,persistent:l,wrapperStyle:k,formatValue:b,handleMouseEnter:T,handleMouseLeave:I,onButtonDown:O,onKeyDown:L,setPosition:Q}},Vue=["tabindex"];var fT=j({name:"ElSliderButton",__name:"button",props:$ue,emits:Due,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("slider"),r=Yt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:s.modelValue}),i=E(()=>d.value?h.value:!1),{disabled:l,button:c,tooltip:u,showTooltip:d,persistent:h,tooltipVisible:p,wrapperStyle:v,formatValue:m,handleMouseEnter:g,handleMouseLeave:b,onButtonDown:C,onKeyDown:w,setPosition:_}=Bue(s,r,a),{hovering:x,dragging:k}=ys(r);return t({onButtonDown:C,onKeyDown:w,setPosition:_,hovering:x,dragging:k}),(T,I)=>(S(),P("div",{ref_key:"button",ref:c,class:D([f(o).e("button-wrapper"),{hover:f(x),dragging:f(k)}]),style:Qe(f(v)),tabindex:f(l)?void 0:0,onMouseenter:I[0]||(I[0]=(...O)=>f(g)&&f(g)(...O)),onMouseleave:I[1]||(I[1]=(...O)=>f(b)&&f(b)(...O)),onMousedown:I[2]||(I[2]=(...O)=>f(C)&&f(C)(...O)),onFocus:I[3]||(I[3]=(...O)=>f(g)&&f(g)(...O)),onBlur:I[4]||(I[4]=(...O)=>f(b)&&f(b)(...O)),onKeydown:I[5]||(I[5]=(...O)=>f(w)&&f(w)(...O))},[W(f(Ms),{ref_key:"tooltip",ref:u,visible:f(p),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!f(d),persistent:i.value},{content:X(()=>[A("span",null,ge(f(m)),1)]),default:X(()=>[A("div",{class:D([f(o).e("button"),{hover:f(x),dragging:f(k)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,Vue))}});const zue=Me({mark:{type:re([String,Object]),default:void 0}});var Hue=j({name:"ElSliderMarker",props:zue,setup(e){const t=Ee("slider"),n=E(()=>Xe(e.mark)?e.mark:e.mark.label),s=E(()=>Xe(e.mark)?void 0:e.mark.style);return()=>ut("div",{class:t.e("marks-text"),style:s.value},n.value)}});const Wue=(e,t,n)=>{const{formItem:s}=Ts(),a=bn(),o=F(),r=F(),i={firstButton:o,secondButton:r},l=Nn(),c=E(()=>Math.min(t.firstValue,t.secondValue)),u=E(()=>Math.max(t.firstValue,t.secondValue)),d=E(()=>e.range?`${100*(u.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=E(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),p=E(()=>e.vertical?{height:e.height}:{}),v=E(()=>e.vertical?{height:d.value,bottom:h.value}:{width:d.value,left:h.value}),m=()=>{if(a.value){const $=a.value.getBoundingClientRect();t.sliderSize=$[e.vertical?"height":"width"]}},g=$=>{const M=e.min+$*(e.max-e.min)/100;if(!e.range)return o;let B;return Math.abs(c.value-M)t.secondValue?"firstButton":"secondButton",i[B]},b=$=>{const M=g($);return M.value.setPosition($),M},C=$=>{t.firstValue=$??e.min,_(e.range?[c.value,u.value]:$??e.min)},w=$=>{t.secondValue=$,e.range&&_([c.value,u.value])},_=$=>{n(mt,$),n(os,$)},x=async()=>{await ze(),n(Dt,e.range?[c.value,u.value]:e.modelValue)},k=$=>{var M,B,U,J,Y,L;if(l.value||t.dragging)return;m();let N=0;if(e.vertical){const V=(U=(B=(M=$.touches)==null?void 0:M.item(0))==null?void 0:B.clientY)!=null?U:$.clientY;N=(a.value.getBoundingClientRect().bottom-V)/t.sliderSize*100}else{const V=(L=(Y=(J=$.touches)==null?void 0:J.item(0))==null?void 0:Y.clientX)!=null?L:$.clientX,z=a.value.getBoundingClientRect().left;N=(V-z)/t.sliderSize*100}if(!(N<0||N>100))return b(N)};return{elFormItem:s,slider:a,firstButton:o,secondButton:r,sliderDisabled:l,minValue:c,maxValue:u,runwayStyle:p,barStyle:v,resetSize:m,setPosition:b,emitChange:x,onSliderWrapperPrevent:$=>{var M,B;((M=i.firstButton.value)!=null&&M.dragging||(B=i.secondButton.value)!=null&&B.dragging)&&$.preventDefault()},onSliderClick:$=>{k($)&&x()},onSliderDown:async $=>{const M=k($);M&&(await ze(),M.value.onButtonDown($))},onSliderMarkerDown:$=>{if(l.value||t.dragging)return;b($)&&x()},setFirstValue:C,setSecondValue:w}},jue=(e,t,n,s)=>({stops:E(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const r=Math.ceil((e.max-e.min)/e.step),i=100*e.step/(e.max-e.min),l=Array.from({length:r-1}).map((c,u)=>(u+1)*i);return e.range?l.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(s.value-e.min)/(e.max-e.min)):l.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),Kue=e=>E(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,s)=>n-s).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),Uue=(e,t,n,s,a,o)=>{const r=c=>{a(mt,c),a(os,c)},i=()=>e.range?![n.value,s.value].every((c,u)=>c===t.oldValue[u]):e.modelValue!==t.oldValue,l=()=>{var c,u;e.min>e.max&&es("Slider","min should not be greater than max.");const d=e.modelValue;e.range&&Ae(d)?d[1]e.max?r([e.max,e.max]):d[0]e.max?r([d[0],e.max]):(t.firstValue=d[0],t.secondValue=d[1],i()&&(e.validateEvent&&((c=o==null?void 0:o.validate)==null||c.call(o,"change").catch(h=>void 0)),t.oldValue=d.slice())):!e.range&&at(d)&&!Number.isNaN(d)&&(de.max?r(e.max):(t.firstValue=d,i()&&(e.validateEvent&&((u=o==null?void 0:o.validate)==null||u.call(o,"change").catch(h=>void 0)),t.oldValue=d)))};l(),be(()=>t.dragging,c=>{c||l()}),be(()=>e.modelValue,(c,u)=>{t.dragging||Ae(c)&&Ae(u)&&c.every((d,h)=>d===u[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||l()},{deep:!0}),be(()=>[e.min,e.max],()=>{l()})},que=(e,t,n)=>{const s=F();return Pt(async()=>{e.range?(Ae(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!at(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),an(window,"resize",n),await ze(),n()}),{sliderWrapper:s}},Gue=["id","role","aria-label","aria-labelledby"],Yue={key:1};var Xue=j({name:"ElSlider",__name:"slider",props:Lue,emits:Nue,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("slider"),{t:r}=Bt(),i=Yt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:l,slider:c,firstButton:u,secondButton:d,sliderDisabled:h,minValue:p,maxValue:v,runwayStyle:m,barStyle:g,resetSize:b,emitChange:C,onSliderWrapperPrevent:w,onSliderClick:_,onSliderDown:x,onSliderMarkerDown:k,setFirstValue:T,setSecondValue:I}=Wue(s,i,a),{stops:O,getStopStyle:R}=jue(s,i,p,v),{inputId:$,isLabeledByFormItem:M}=uo(s,{formItemContext:l}),B=rs(),U=E(()=>s.inputSize||B.value),J=E(()=>s.ariaLabel||r("el.slider.defaultLabel",{min:s.min,max:s.max})),Y=E(()=>s.range?s.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):J.value),L=E(()=>s.formatValueText?s.formatValueText(ee.value):`${ee.value}`),N=E(()=>s.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),V=E(()=>s.formatValueText?s.formatValueText(se.value):`${se.value}`),z=E(()=>[o.b(),o.m(B.value),o.is("vertical",s.vertical),{[o.m("with-input")]:s.showInput}]),q=Kue(s);Uue(s,i,p,v,a,l);const Q=E(()=>{const fe=[s.min,s.max,s.step].map(ve=>{const ce=`${ve}`.split(".")[1];return ce?ce.length:0});return Math.max.apply(null,fe)}),{sliderWrapper:K}=que(s,i,b),{firstValue:ee,secondValue:se,sliderSize:pe}=ys(i),te=fe=>{i.dragging=fe};return an(K,"touchstart",w,{passive:!1}),an(K,"touchmove",w,{passive:!1}),Nt(dT,{...ys(s),sliderSize:pe,disabled:h,precision:Q,emitChange:C,resetSize:b,updateDragging:te}),t({onSliderClick:_}),(fe,ve)=>{var ce,Z;return S(),P("div",{id:fe.range?f($):void 0,ref_key:"sliderWrapper",ref:K,class:D(z.value),role:fe.range?"group":void 0,"aria-label":fe.range&&!f(M)?J.value:void 0,"aria-labelledby":fe.range&&f(M)?(ce=f(l))==null?void 0:ce.labelId:void 0},[A("div",{ref_key:"slider",ref:c,class:D([f(o).e("runway"),{"show-input":fe.showInput&&!fe.range},f(o).is("disabled",f(h))]),style:Qe(f(m)),onMousedown:ve[0]||(ve[0]=(...H)=>f(x)&&f(x)(...H)),onTouchstartPassive:ve[1]||(ve[1]=(...H)=>f(x)&&f(x)(...H))},[A("div",{class:D(f(o).e("bar")),style:Qe(f(g))},null,6),W(fT,{id:fe.range?void 0:f($),ref_key:"firstButton",ref:u,"model-value":f(ee),vertical:fe.vertical,"tooltip-class":fe.tooltipClass,placement:fe.placement,role:"slider","aria-label":fe.range||!f(M)?Y.value:void 0,"aria-labelledby":!fe.range&&f(M)?(Z=f(l))==null?void 0:Z.labelId:void 0,"aria-valuemin":fe.min,"aria-valuemax":fe.range?f(se):fe.max,"aria-valuenow":f(ee),"aria-valuetext":L.value,"aria-orientation":fe.vertical?"vertical":"horizontal","aria-disabled":f(h),"onUpdate:modelValue":f(T)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),fe.range?(S(),le(fT,{key:0,ref_key:"secondButton",ref:d,"model-value":f(se),vertical:fe.vertical,"tooltip-class":fe.tooltipClass,placement:fe.placement,role:"slider","aria-label":N.value,"aria-valuemin":f(ee),"aria-valuemax":fe.max,"aria-valuenow":f(se),"aria-valuetext":V.value,"aria-orientation":fe.vertical?"vertical":"horizontal","aria-disabled":f(h),"onUpdate:modelValue":f(I)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ie("v-if",!0),fe.showStops?(S(),P("div",Yue,[(S(!0),P(He,null,Et(f(O),(H,ae)=>(S(),P("div",{key:ae,class:D(f(o).e("stop")),style:Qe(f(R)(H))},null,6))),128))])):ie("v-if",!0),f(q).length>0?(S(),P(He,{key:2},[A("div",null,[(S(!0),P(He,null,Et(f(q),(H,ae)=>(S(),P("div",{key:ae,style:Qe(f(R)(H.position)),class:D([f(o).e("stop"),f(o).e("marks-stop")])},null,6))),128))]),A("div",{class:D(f(o).e("marks"))},[(S(!0),P(He,null,Et(f(q),(H,ae)=>(S(),le(f(Hue),{key:ae,mark:H.mark,style:Qe(f(R)(H.position)),onMousedown:ht(de=>f(k)(H.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):ie("v-if",!0)],38),fe.showInput&&!fe.range?(S(),le(f(DA),{key:0,ref:"input","model-value":f(ee),class:D(f(o).e("input")),step:fe.step,disabled:f(h),controls:fe.showInputControls,min:fe.min,max:fe.max,precision:Q.value,size:U.value,"onUpdate:modelValue":f(T),onChange:f(C)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):ie("v-if",!0)],10,Gue)}}});const Jue=yt(Xue),Zue=Me({prefixCls:{type:String}}),hT=j({name:"ElSpaceItem",props:Zue,setup(e,{slots:t}){const n=Ee("space"),s=E(()=>`${e.prefixCls||n.b()}__item`);return()=>ut("div",{class:s.value},ue(t,"default"))}}),pT={small:8,default:12,large:16};function Que(e){const t=Ee("space"),n=E(()=>[t.b(),t.m(e.direction),e.class]),s=F(0),a=F(0),o=E(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap"}:{},l={alignItems:e.alignment},c={rowGap:`${a.value}px`,columnGap:`${s.value}px`};return[i,l,c,e.style]}),r=E(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return Wa(()=>{const{size:i="small",wrap:l,direction:c,fill:u}=e;if(Ae(i)){const[d=0,h=0]=i;s.value=d,a.value=h}else{let d;at(i)?d=i:d=pT[i||"small"]||pT.small,(l||u)&&c==="horizontal"?s.value=a.value=d:c==="horizontal"?(s.value=d,a.value=0):(a.value=d,s.value=0)}}),{classes:n,containerStyle:o,itemStyle:r}}const ede=Me({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:re([String,Object,Array]),default:""},style:{type:re([String,Array,Object]),default:""},alignment:{type:re(String),default:"center"},prefixCls:{type:String},spacer:{type:re([Object,String,Number,Array]),default:null,validator:e=>vn(e)||at(e)||Xe(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:fr,validator:e=>at(e)||Ae(e)&&e.length===2&&e.every(at)}}),tde=yt(j({name:"ElSpace",props:ede,setup(e,{slots:t}){const{classes:n,containerStyle:s,itemStyle:a}=Que(e);function o(r,i="",l=[]){const{prefixCls:c}=e;return r.forEach((u,d)=>{Gy(u)?Ae(u.children)&&u.children.forEach((h,p)=>{Gy(h)&&Ae(h.children)?o(h.children,`${i+p}-`,l):vn(h)&&(h==null?void 0:h.type)===Gn?l.push(h):l.push(W(hT,{style:a.value,prefixCls:c,key:`nested-${i+p}`},{default:()=>[h]},Fo.PROPS|Fo.STYLE,["style","prefixCls"]))}):dJ(u)&&l.push(W(hT,{style:a.value,prefixCls:c,key:`LoopKey${i+d}`},{default:()=>[u]},Fo.PROPS|Fo.STYLE,["style","prefixCls"]))}),l}return()=>{var r;const{spacer:i,direction:l}=e,c=ue(t,"default",{key:0},()=>[]);if(((r=c.children)!=null?r:[]).length===0)return null;if(Ae(c.children)){let u=o(c.children);if(i){const d=u.length-1;u=u.reduce((h,p,v)=>{const m=[...h,p];return v!==d&&m.push(W("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[vn(i)?i:je(i,Fo.TEXT)],Fo.STYLE)),m},[])}return W("div",{class:n.value,style:s.value},u,Fo.STYLE|Fo.CLASS)}return c.children}}})),nde=Me({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:re([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:re([String,Object,Array])}});var sde=j({name:"ElStatistic",__name:"statistic",props:nde,setup(e,{expose:t}){const n=e,s=Ee("statistic"),a=E(()=>{const{value:o,formatter:r,precision:i,decimalSeparator:l,groupSeparator:c}=n;if(Ze(r))return r(o);if(!at(o)||Number.isNaN(o))return o;let[u,d=""]=String(o).split(".");return d=d.padEnd(i,"0").slice(0,i>0?i:0),u=u.replace(/\B(?=(\d{3})+(?!\d))/g,c),[u,d].join(d?l:"")});return t({displayValue:a}),(o,r)=>(S(),P("div",{class:D(f(s).b())},[o.$slots.title||e.title?(S(),P("div",{key:0,class:D(f(s).e("head"))},[ue(o.$slots,"title",{},()=>[je(ge(e.title),1)])],2)):ie("v-if",!0),A("div",{class:D(f(s).e("content"))},[o.$slots.prefix||e.prefix?(S(),P("div",{key:0,class:D(f(s).e("prefix"))},[ue(o.$slots,"prefix",{},()=>[A("span",null,ge(e.prefix),1)])],2)):ie("v-if",!0),A("span",{class:D(f(s).e("number")),style:Qe(e.valueStyle)},ge(a.value),7),o.$slots.suffix||e.suffix?(S(),P("div",{key:1,class:D(f(s).e("suffix"))},[ue(o.$slots,"suffix",{},()=>[A("span",null,ge(e.suffix),1)])],2)):ie("v-if",!0)],2)],2))}});const vT=yt(sde),ade=Me({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:re([Number,Object]),default:0},valueStyle:{type:re([String,Object,Array])}}),ode={finish:()=>!0,[Dt]:e=>at(e)},rde=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],mT=e=>at(e)?new Date(e).getTime():e.valueOf(),gT=(e,t)=>{let n=e;const s=/\[([^\]]*)]/g;return rde.reduce((o,[r,i])=>{const l=new RegExp(`${r}+(?![^\\[\\]]*\\])`,"g");if(l.test(o)){const c=Math.floor(n/i);return n-=c*i,o.replace(l,u=>String(c).padStart(u.length,"0"))}return o},t).replace(s,"$1")};var ide=j({name:"ElCountdown",__name:"countdown",props:ade,emits:ode,setup(e,{expose:t,emit:n}){const s=e,a=n;let o;const r=F(0),i=E(()=>gT(r.value,s.format)),l=d=>gT(d,s.format),c=()=>{o&&(Yi(o),o=void 0)},u=()=>{const d=mT(s.value),h=()=>{let p=d-Date.now();a(Dt,p),p<=0?(p=0,c(),a("finish")):o=Zr(h),r.value=p};o=Zr(h)};return Pt(()=>{r.value=mT(s.value)-Date.now(),be(()=>[s.value,s.format],()=>{c(),u()},{immediate:!0})}),tn(()=>{c()}),t({displayValue:i}),(d,h)=>(S(),le(f(vT),{value:r.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:l},Aa({_:2},[Et(d.$slots,(p,v)=>({name:v,fn:X(()=>[ue(d.$slots,v)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});const lde=yt(ide),cde=Me({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),ude={[Dt]:(e,t)=>[e,t].every(at)},bT="ElSteps";var dde=j({name:"ElSteps",__name:"steps",props:cde,emits:ude,setup(e,{emit:t}){const n=e,s=t,a=Ee("steps"),{children:o,addChild:r,removeChild:i,ChildrenSorter:l}=Gg(Mt(),"ElStep");return be(o,()=>{o.value.forEach((c,u)=>{c.setIndex(u)})}),Nt(bT,{props:n,steps:o,addStep:r,removeStep:i}),be(()=>n.active,(c,u)=>{s(Dt,c,u)}),(c,u)=>(S(),P("div",{class:D([f(a).b(),f(a).m(e.simple?"simple":e.direction)])},[ue(c.$slots,"default"),W(f(l))],2))}});const fde=Me({title:{type:String,default:""},icon:{type:rn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}});var yT=j({name:"ElStep",__name:"item",props:fde,setup(e){const t=e,n=Ee("step"),s=F(-1),a=F({}),o=F(""),r=Ke(bT),i=Mt();let l=0,c=0;Pt(()=>{be([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([I],[O])=>{c=O||0,l=I-c,k(I)},{immediate:!0})});const u=E(()=>t.status||o.value),d=E(()=>{const I=r.steps.value[s.value-1];return I?I.internalStatus.value:"wait"}),h=E(()=>r.props.alignCenter),p=E(()=>r.props.direction==="vertical"),v=E(()=>r.props.simple),m=E(()=>r.steps.value.length),g=E(()=>{var I;return((I=r.steps.value[m.value-1])==null?void 0:I.uid)===i.uid}),b=E(()=>v.value?"":r.props.space),C=E(()=>[n.b(),n.is(v.value?"simple":r.props.direction),n.is("flex",g.value&&!b.value&&!h.value),n.is("center",h.value&&!p.value&&!v.value)]),w=E(()=>{const I={flexBasis:at(b.value)?`${b.value}px`:b.value?b.value:`${100/(m.value-(h.value?0:1))}%`};return p.value||g.value&&(I.maxWidth=`${100/m.value}%`),I}),_=I=>{s.value=I},x=I=>{const O=I==="wait",$={transitionDelay:`${Math.abs(l)===1?0:l>0?(s.value+1-c)*150:-(s.value+1-r.props.active)*150}ms`},M=I===r.props.processStatus||O?0:100;$.borderWidth=M&&!v.value?"1px":0,$[r.props.direction==="vertical"?"height":"width"]=`${M}%`,a.value=$},k=I=>{I>s.value?o.value=r.props.finishStatus:I===s.value&&d.value!=="error"?o.value=r.props.processStatus:o.value="wait";const O=r.steps.value[s.value-1];O&&O.calcProgress(o.value)},T={uid:i.uid,getVnode:()=>i.vnode,currentStatus:u,internalStatus:o,setIndex:_,calcProgress:x};return r.addStep(T),tn(()=>{r.removeStep(T)}),(I,O)=>(S(),P("div",{style:Qe(w.value),class:D(C.value)},[ie(" icon & line "),A("div",{class:D([f(n).e("head"),f(n).is(u.value)])},[v.value?ie("v-if",!0):(S(),P("div",{key:0,class:D(f(n).e("line"))},[A("i",{class:D(f(n).e("line-inner")),style:Qe(a.value)},null,6)],2)),A("div",{class:D([f(n).e("icon"),f(n).is(e.icon||I.$slots.icon?"icon":"text")])},[ue(I.$slots,"icon",{},()=>[e.icon?(S(),le(f(Je),{key:0,class:D(f(n).e("icon-inner"))},{default:X(()=>[(S(),le(kt(e.icon)))]),_:1},8,["class"])):u.value==="success"?(S(),le(f(Je),{key:1,class:D([f(n).e("icon-inner"),f(n).is("status")])},{default:X(()=>[W(f(Tf))]),_:1},8,["class"])):u.value==="error"?(S(),le(f(Je),{key:2,class:D([f(n).e("icon-inner"),f(n).is("status")])},{default:X(()=>[W(f(Ua))]),_:1},8,["class"])):v.value?ie("v-if",!0):(S(),P("div",{key:3,class:D(f(n).e("icon-inner"))},ge(s.value+1),3))])],2)],2),ie(" title & description "),A("div",{class:D(f(n).e("main"))},[A("div",{class:D([f(n).e("title"),f(n).is(u.value)])},[ue(I.$slots,"title",{},()=>[je(ge(e.title),1)])],2),v.value?(S(),P("div",{key:0,class:D(f(n).e("arrow"))},null,2)):(S(),P("div",{key:1,class:D([f(n).e("description"),f(n).is(u.value)])},[ue(I.$slots,"description",{},()=>[je(ge(e.description),1)])],2))],2)],6))}});const hde=yt(dde,{Step:yT}),pde=Pn(yT),wT=e=>["",...fr].includes(e),vde=Me({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:wT},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:rn},activeActionIcon:{type:rn},activeIcon:{type:rn},inactiveIcon:{type:rn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:re(Function)},id:String,tabindex:{type:[String,Number]},...ca(["ariaLabel"])}),mde={[mt]:e=>on(e)||Xe(e)||at(e),[Dt]:e=>on(e)||Xe(e)||at(e),[os]:e=>on(e)||Xe(e)||at(e)},gde=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],bde=["aria-hidden"],yde={key:1},wde={key:1},_de=["aria-hidden"],_T="ElSwitch";var Cde=j({name:_T,__name:"switch",props:vde,emits:mde,setup(e,{expose:t,emit:n}){const s=e,a=n,{formItem:o}=Ts(),r=rs(),i=Ee("switch"),{inputId:l}=uo(s,{formItemContext:o}),c=Nn(E(()=>{if(s.loading)return!0})),u=F(s.modelValue!==!1),d=bn(),h=E(()=>[i.b(),i.m(r.value),i.is("disabled",c.value),i.is("checked",b.value)]),p=E(()=>[i.e("label"),i.em("label","left"),i.is("active",!b.value)]),v=E(()=>[i.e("label"),i.em("label","right"),i.is("active",b.value)]),m=E(()=>({width:On(s.width)}));be(()=>s.modelValue,()=>{u.value=!0});const g=E(()=>u.value?s.modelValue:!1),b=E(()=>g.value===s.activeValue);[s.activeValue,s.inactiveValue].includes(g.value)||(a(mt,s.inactiveValue),a(Dt,s.inactiveValue),a(os,s.inactiveValue)),be(b,x=>{var k;d.value.checked=x,s.validateEvent&&((k=o==null?void 0:o.validate)==null||k.call(o,"change").catch(T=>void 0))});const C=()=>{const x=b.value?s.inactiveValue:s.activeValue;a(mt,x),a(Dt,x),a(os,x),ze(()=>{d.value.checked=b.value})},w=()=>{if(c.value)return;const{beforeChange:x}=s;if(!x){C();return}const k=x();[su(k),on(k)].includes(!0)||es(_T,"beforeChange must return type `Promise` or `boolean`"),su(k)?k.then(I=>{I&&C()}).catch(I=>{}):k&&C()},_=()=>{var x,k;(k=(x=d.value)==null?void 0:x.focus)==null||k.call(x)};return Pt(()=>{d.value.checked=b.value}),t({focus:_,checked:b}),(x,k)=>(S(),P("div",{class:D(h.value),onClick:ht(w,["prevent"])},[A("input",{id:f(l),ref_key:"input",ref:d,class:D(f(i).e("input")),type:"checkbox",role:"switch","aria-checked":b.value,"aria-disabled":f(c),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:f(c),tabindex:e.tabindex,onChange:C,onKeydown:Fn(w,["enter"])},null,42,gde),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||x.$slots.inactive)?(S(),P("span",{key:0,class:D(p.value)},[ue(x.$slots,"inactive",{},()=>[e.inactiveIcon?(S(),le(f(Je),{key:0},{default:X(()=>[(S(),le(kt(e.inactiveIcon)))]),_:1})):ie("v-if",!0),!e.inactiveIcon&&e.inactiveText?(S(),P("span",{key:1,"aria-hidden":b.value},ge(e.inactiveText),9,bde)):ie("v-if",!0)])],2)):ie("v-if",!0),A("span",{class:D(f(i).e("core")),style:Qe(m.value)},[e.inlinePrompt?(S(),P("div",{key:0,class:D(f(i).e("inner"))},[b.value?(S(),P("div",{key:1,class:D(f(i).e("inner-wrapper"))},[ue(x.$slots,"active",{},()=>[e.activeIcon?(S(),le(f(Je),{key:0},{default:X(()=>[(S(),le(kt(e.activeIcon)))]),_:1})):ie("v-if",!0),!e.activeIcon&&e.activeText?(S(),P("span",wde,ge(e.activeText),1)):ie("v-if",!0)])],2)):(S(),P("div",{key:0,class:D(f(i).e("inner-wrapper"))},[ue(x.$slots,"inactive",{},()=>[e.inactiveIcon?(S(),le(f(Je),{key:0},{default:X(()=>[(S(),le(kt(e.inactiveIcon)))]),_:1})):ie("v-if",!0),!e.inactiveIcon&&e.inactiveText?(S(),P("span",yde,ge(e.inactiveText),1)):ie("v-if",!0)])],2))],2)):ie("v-if",!0),A("div",{class:D(f(i).e("action"))},[e.loading?(S(),le(f(Je),{key:0,class:D(f(i).is("loading"))},{default:X(()=>[W(f(Fs))]),_:1},8,["class"])):b.value?ue(x.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(S(),le(f(Je),{key:0},{default:X(()=>[(S(),le(kt(e.activeActionIcon)))]),_:1})):ie("v-if",!0)]):b.value?ie("v-if",!0):ue(x.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(S(),le(f(Je),{key:0},{default:X(()=>[(S(),le(kt(e.inactiveActionIcon)))]),_:1})):ie("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||x.$slots.active)?(S(),P("span",{key:1,class:D(v.value)},[ue(x.$slots,"active",{},()=>[e.activeIcon?(S(),le(f(Je),{key:0},{default:X(()=>[(S(),le(kt(e.activeIcon)))]),_:1})):ie("v-if",!0),!e.activeIcon&&e.activeText?(S(),P("span",{key:1,"aria-hidden":!b.value},ge(e.activeText),9,_de)):ie("v-if",!0)])],2)):ie("v-if",!0)],2))}});const Sde=yt(Cde),T6=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},xde=function(e,t,n,s,a){if(!t&&!s&&(!a||Ae(a)&&!a.length))return e;Xe(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=s?null:function(i,l){return a?hx(As(a),c=>Xe(c)?Qn(i,c):c(i,l,e)):(t!=="$key"&&bt(i)&&"$value"in i&&(i=i.$value),[bt(i)?t?Qn(i,t):null:i])},r=function(i,l){var c,u,d,h,p,v;if(s)return s(i.value,l.value);for(let m=0,g=(u=(c=i.key)==null?void 0:c.length)!=null?u:0;m((v=l.key)==null?void 0:v[m]))return 1}return 0};return e.map((i,l)=>({value:i,index:l,key:o?o(i,l):null})).sort((i,l)=>{let c=r(i,l);return c||(c=i.index-l.index),c*+n}).map(i=>i.value)},CT=function(e,t){let n=null;return e.columns.forEach(s=>{s.id===t&&(n=s)}),n},kde=function(e,t){let n=null;for(let s=0;s{if(!e)throw new Error("Row is required when get row identity");if(Xe(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let s=e;for(const a of n)s=s[a];return`${s}`}else if(Ze(t))return t.call(null,e);return""},Xf=function(e,t,n=!1,s="children"){const a=e||[],o={};return a.forEach((r,i)=>{if(o[Ys(r,t)]={row:r,index:i},n){const l=r[s];Ae(l)&&Object.assign(o,Xf(l,t,!0,s))}}),o};function Ede(e,t){const n={};let s;for(s in e)n[s]=e[s];for(s in t)if(Gt(t,s)){const a=t[s];Ht(a)||(n[s]=a)}return n}function M6(e){return e===""||Ht(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function xT(e){return e===""||Ht(e)||(e=M6(e),Number.isNaN(e)&&(e=80)),e}function Ade(e){return at(e)?e:Xe(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Tde(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function _1(e,t,n,s,a,o,r){let i=o??0,l=!1;const u=(()=>{if(!r)return e.indexOf(t);const m=Ys(t,r);return e.findIndex(g=>Ys(g,r)===m)})(),d=u!==-1,h=a==null?void 0:a.call(null,t,i),p=m=>{m==="add"?e.push(t):e.splice(u,1),l=!0},v=m=>{let g=0;const b=(s==null?void 0:s.children)&&m[s.children];return b&&Ae(b)&&(g+=b.length,b.forEach(C=>{g+=v(C)})),g};return(!a||h)&&(on(n)?n&&!d?p("add"):!n&&d&&p("remove"):p(d?"remove":"add")),!(s!=null&&s.checkStrictly)&&(s!=null&&s.children)&&Ae(t[s.children])&&t[s.children].forEach(m=>{const g=_1(e,m,n??!d,s,a,i+1,r);i+=v(m)+1,g&&(l=g)}),l}function Mde(e,t,n="children",s="hasChildren",a=!1){const o=i=>!(Ae(i)&&i.length);function r(i,l,c){t(i,l,c),l.forEach(u=>{if(u[s]&&a){t(u,null,c+1);return}const d=u[n];o(d)||r(u,d,c+1)})}e.forEach(i=>{if(i[s]&&a){t(i,null,0);return}const l=i[n];o(l)||r(i,l,0)})}const Pde=(e,t,n,s)=>{const a={strategy:"fixed",...e.popperOptions},o=Ze(s==null?void 0:s.tooltipFormatter)?s.tooltipFormatter({row:n,column:s,cellValue:kf(n,s.property).value}):void 0;return vn(o)?{slotContent:o,content:null,...e,popperOptions:a}:{slotContent:null,content:o??t,...e,popperOptions:a}};let ha=null;function Rde(e,t,n,s,a,o){var r;const i=Pde(e,t,n,s),l={...i,slotContent:void 0};if((ha==null?void 0:ha.trigger)===a){const v=(r=ha.vm)==null?void 0:r.component;px(v==null?void 0:v.props,l),v&&i.slotContent&&(v.slots.content=()=>[i.slotContent]);return}ha==null||ha();const c=o==null?void 0:o.refs.tableWrapper,u=c==null?void 0:c.dataset.prefix,d=W(Ms,{virtualTriggering:!0,virtualRef:a,appendTo:c,placement:"top",transition:"none",offset:0,hideAfter:0,...l},i.slotContent?{content:()=>i.slotContent}:void 0);d.appContext={...o.appContext,...o};const h=document.createElement("div");tc(d,h),d.component.exposed.onOpen();const p=c==null?void 0:c.querySelector(`.${u}-scrollbar__wrap`);ha=()=>{var v,m;(m=(v=d.component)==null?void 0:v.exposed)!=null&&m.onClose&&d.component.exposed.onClose(),tc(null,h);const g=ha;p==null||p.removeEventListener("scroll",g),g.trigger=void 0,g.vm=void 0,ha=null},ha.trigger=a??void 0,ha.vm=d,p==null||p.addEventListener("scroll",ha)}function kT(e){return e.children?hx(e.children,kT):[e]}function ET(e,t){return e+t.colSpan}const AT=(e,t,n,s)=>{let a=0,o=e;const r=n.states.columns.value;if(s){const l=kT(s[e]);a=r.slice(0,r.indexOf(l[0])).reduce(ET,0),o=a+l.reduce(ET,0)-1}else a=e;let i;switch(t){case"left":o=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:o=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:a,after:o}:{}},P6=(e,t,n,s,a,o=0)=>{const r=[],{direction:i,start:l,after:c}=AT(t,n,s,a);if(i){const u=i==="left";r.push(`${e}-fixed-column--${i}`),u&&c+o===s.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!u&&l-o===s.states.columns.value.length-s.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function TT(e,t){return e+(bg(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const R6=(e,t,n,s)=>{const{direction:a,start:o=0,after:r=0}=AT(e,t,n,s);if(!a)return;const i={},l=a==="left",c=n.states.columns.value;return l?i.left=c.slice(0,o).reduce(TT,0):i.right=c.slice(r+1).reverse().reduce(TT,0),i},Jf=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function MT(e){return e.some(t=>vn(t)?!(t.type===Gn||t.type===He&&!MT(t.children)):!0)?e:null}function Ide(e){const t=Mt(),n=F(!1),s=F([]),a=(c,u)=>{var d;const h=t.store.states.rowExpandable.value;return(d=h==null?void 0:h(c,u))!=null?d:!0};return{updateExpandRows:()=>{const c=e.data.value||[],u=e.rowKey.value;if(n.value)s.value=t.store.states.rowExpandable.value?c.filter(a):c.slice();else if(u){const d=Xf(s.value,u);s.value=c.filter((h,p)=>{const v=Ys(h,u);return!!d[v]&&a(h,p)})}else s.value=[]},toggleRowExpansion:(c,u)=>{const h=(e.data.value||[]).indexOf(c);if(h>-1&&!a(c,h))return;_1(s.value,c,u,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,s.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,h=Xf(u,d);s.value=c.reduce((p,v)=>{const m=h[v];return m&&a(m.row,m.index)&&p.push(m.row),p},[])},isRowExpanded:c=>{const u=e.rowKey.value;return u?!!Xf(s.value,u)[Ys(c,u)]:s.value.includes(c)},states:{expandRows:s,defaultExpandAll:n}}}function Ode(e){const t=Mt(),n=F(null),s=F(null),a=c=>{t.store.assertRowKey(),n.value=c,r(c)},o=()=>{n.value=null},r=c=>{var u;const{data:d,rowKey:h}=e,p=s.value;let v=null;h.value&&(v=(u=(f(d)||[]).find(m=>Ys(m,h.value)===c))!=null?u:null),s.value=v??null,t.emit("current-change",s.value,p)};return{setCurrentRowKey:a,restoreCurrentRowKey:o,setCurrentRowByKey:r,updateCurrentRow:c=>{const u=s.value;if(c&&c!==u){s.value=c,t.emit("current-change",s.value,u);return}!c&&u&&(s.value=null,t.emit("current-change",null,u))},updateCurrentRowData:()=>{const c=e.rowKey.value,u=e.data.value||[],d=s.value;if(d&&!u.includes(d))if(c){const h=Ys(d,c);r(h)}else s.value=null,t.emit("current-change",null,d);else n.value&&(r(n.value),o())},states:{_currentRowKey:n,currentRow:s}}}function Lde(e){const t=F([]),n=F({}),s=F(16),a=F(!1),o=F({}),r=F("hasChildren"),i=F("children"),l=F(!1),c=Mt(),u=E(()=>{if(!e.rowKey.value)return{};const _=e.data.value||[];return h(_)}),d=E(()=>{const _=e.rowKey.value,x=Object.keys(o.value),k={};return x.length&&x.forEach(T=>{if(o.value[T].length){const I={children:[]};o.value[T].forEach(O=>{const R=Ys(O,_);I.children.push(R),O[r.value]&&!k[R]&&(k[R]={children:[]})}),k[T]=I}}),k}),h=_=>{const x=e.rowKey.value,k={};return Mde(_,(T,I,O)=>{const R=Ys(T,x);Ae(I)?k[R]={children:I.map($=>Ys($,x)),level:O}:a.value&&(k[R]={children:[],lazy:!0,level:O})},i.value,r.value,a.value),k},p=(_=!1,x)=>{var k,T;x||(x=(k=c.store)==null?void 0:k.states.defaultExpandAll.value);const I=u.value,O=d.value,R=Object.keys(I),$={};if(R.length){const M=f(n),B=[],U=(Y,L)=>{if(_)return t.value?x||t.value.includes(L):!!(x||Y!=null&&Y.expanded);{const N=x||t.value&&t.value.includes(L);return!!(Y!=null&&Y.expanded||N)}};R.forEach(Y=>{const L=M[Y],N={...I[Y]};if(N.expanded=U(L,Y),N.lazy){const{loaded:V=!1,loading:z=!1}=L||{};N.loaded=!!V,N.loading=!!z,B.push(Y)}$[Y]=N});const J=Object.keys(O);a.value&&J.length&&B.length&&J.forEach(Y=>{var L;const N=M[Y],V=O[Y].children;if(B.includes(Y)){if(((L=$[Y].children)==null?void 0:L.length)!==0)throw new Error("[ElTable]children must be an empty array.");$[Y].children=V}else{const{loaded:z=!1,loading:q=!1}=N||{};$[Y]={lazy:!0,loaded:!!z,loading:!!q,expanded:U(N,Y),children:V,level:void 0}}})}n.value=$,(T=c.store)==null||T.updateTableScrollY()};be(()=>t.value,()=>{p(!0)}),be(()=>u.value,()=>{p()}),be(()=>d.value,()=>{p()});const v=_=>{t.value=_,p()},m=_=>a.value&&_&&"loaded"in _&&!_.loaded,g=(_,x)=>{c.store.assertRowKey();const k=e.rowKey.value,T=Ys(_,k),I=T&&n.value[T];if(T&&I&&"expanded"in I){const O=I.expanded;x=Ht(x)?!I.expanded:x,n.value[T].expanded=x,O!==x&&c.emit("expand-change",_,x),x&&m(I)&&C(_,T,I),c.store.updateTableScrollY()}},b=_=>{c.store.assertRowKey();const x=e.rowKey.value,k=Ys(_,x),T=n.value[k];m(T)?C(_,k,T):g(_,void 0)},C=(_,x,k)=>{const{load:T}=c.props;T&&!n.value[x].loaded&&(n.value[x].loading=!0,T(_,k,I=>{if(!Ae(I))throw new TypeError("[ElTable] data must be an array");n.value[x].loading=!1,n.value[x].loaded=!0,n.value[x].expanded=!0,I.length&&(o.value[x]=I),c.emit("expand-change",_,!0)}))};return{loadData:C,loadOrToggle:b,toggleTreeExpansion:g,updateTreeExpandKeys:v,updateTreeData:p,updateKeyChildren:(_,x)=>{const{lazy:k,rowKey:T}=c.props;if(k){if(!T)throw new Error("[Table] rowKey is required in updateKeyChild");o.value[_]&&(o.value[_]=x)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:s,lazy:a,lazyTreeNodeMap:o,lazyColumnIdentifier:r,childrenColumnName:i,checkStrictly:l}}}const Nde=(e,t)=>{const n=t.sortingColumn;return!n||Xe(n.sortable)?e:xde(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},C1=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,C1(n.children)):t.push(n)}),t};function $de(){var e;const t=Mt(),{size:n}=ys((e=t.proxy)==null?void 0:e.$props),s=F(null),a=F([]),o=F([]),r=F(!1),i=F([]),l=F([]),c=F([]),u=F([]),d=F([]),h=F([]),p=F([]),v=F([]),m=[],g=F(0),b=F(0),C=F(0),w=F(!1),_=F([]),x=F(!1),k=F(!1),T=F(null),I=F(null),O=F({}),R=F(null),$=F(null),M=F(null),B=F(null),U=F(null),J=E(()=>s.value?Xf(_.value,s.value):void 0);be(a,()=>{var ct;t.state&&(V(!1),t.props.tableLayout==="auto"&&((ct=t.refs.tableHeaderRef)==null||ct.updateFixedColumnStyle()))},{deep:!0});const Y=()=>{if(!s.value)throw new Error("[ElTable] prop row-key is required")},L=ct=>{var gt;(gt=ct.children)==null||gt.forEach(Ot=>{Ot.fixed=ct.fixed,L(Ot)})},N=()=>{i.value.forEach(Ye=>{L(Ye)}),u.value=i.value.filter(Ye=>[!0,"left"].includes(Ye.fixed));const ct=i.value.find(Ye=>Ye.type==="selection");let gt;ct&&ct.fixed!=="right"&&!u.value.includes(ct)&&i.value.indexOf(ct)===0&&u.value.length&&(u.value.unshift(ct),gt=!0),d.value=i.value.filter(Ye=>Ye.fixed==="right");const Ot=i.value.filter(Ye=>(gt?Ye.type!=="selection":!0)&&!Ye.fixed);l.value=Array.from(u.value).concat(Ot).concat(d.value);const xe=C1(Ot),Ue=C1(u.value),we=C1(d.value);g.value=xe.length,b.value=Ue.length,C.value=we.length,c.value=Array.from(Ue).concat(xe).concat(we),r.value=u.value.length>0||d.value.length>0},V=(ct,gt=!1)=>{ct&&N(),gt?t.state.doLayout():t.state.debouncedUpdateLayout()},z=ct=>J.value?!!J.value[Ys(ct,s.value)]:_.value.includes(ct),q=()=>{w.value=!1;const ct=_.value;_.value=[],ct.length&&t.emit("selection-change",[])},Q=()=>{var ct,gt;let Ot;if(s.value){Ot=[];const xe=(gt=(ct=t==null?void 0:t.store)==null?void 0:ct.states)==null?void 0:gt.childrenColumnName.value,Ue=Xf(a.value,s.value,!0,xe);for(const we in J.value)Gt(J.value,we)&&!Ue[we]&&Ot.push(J.value[we].row)}else Ot=_.value.filter(xe=>!a.value.includes(xe));if(Ot.length){const xe=_.value.filter(Ue=>!Ot.includes(Ue));_.value=xe,t.emit("selection-change",xe.slice())}},K=()=>(_.value||[]).slice(),ee=(ct,gt,Ot=!0,xe=!1)=>{var Ue,we,Ye,At;const Jt={children:(we=(Ue=t==null?void 0:t.store)==null?void 0:Ue.states)==null?void 0:we.childrenColumnName.value,checkStrictly:(At=(Ye=t==null?void 0:t.store)==null?void 0:Ye.states)==null?void 0:At.checkStrictly.value};if(_1(_.value,ct,gt,Jt,xe?void 0:T.value,a.value.indexOf(ct),s.value)){const xn=(_.value||[]).slice();Ot&&t.emit("select",xn,ct),t.emit("selection-change",xn)}},se=()=>{var ct,gt;const Ot=k.value?!w.value:!(w.value||_.value.length);w.value=Ot;let xe=!1,Ue=0;const we=(gt=(ct=t==null?void 0:t.store)==null?void 0:ct.states)==null?void 0:gt.rowKey.value,{childrenColumnName:Ye}=t.store.states,At={children:Ye.value,checkStrictly:!1};a.value.forEach((Jt,Cn)=>{const xn=Cn+Ue;_1(_.value,Jt,Ot,At,T.value,xn,we)&&(xe=!0),Ue+=te(Ys(Jt,we))}),xe&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",(_.value||[]).slice())},pe=()=>{var ct;if(((ct=a.value)==null?void 0:ct.length)===0){w.value=!1;return}const{childrenColumnName:gt}=t.store.states;let Ot=0,xe=0;const Ue=Ye=>{var At;for(const Jt of Ye){const Cn=T.value&&T.value.call(null,Jt,Ot);if(z(Jt))xe++;else if(!T.value||Cn)return!1;if(Ot++,(At=Jt[gt.value])!=null&&At.length&&!Ue(Jt[gt.value]))return!1}return!0},we=Ue(a.value||[]);w.value=xe===0?!1:we},te=ct=>{var gt;if(!t||!t.store)return 0;const{treeData:Ot}=t.store.states;let xe=0;const Ue=(gt=Ot.value[ct])==null?void 0:gt.children;return Ue&&(xe+=Ue.length,Ue.forEach(we=>{xe+=te(we)})),xe},fe=(ct,gt)=>{const Ot={};return As(ct).forEach(xe=>{O.value[xe.id]=gt,Ot[xe.columnKey||xe.id]=gt}),Ot},ve=(ct,gt,Ot)=>{$.value&&$.value!==ct&&($.value.order=null),$.value=ct,M.value=gt,B.value=Ot},ce=()=>{let ct=f(o);Object.keys(O.value).forEach(gt=>{const Ot=O.value[gt];if(!Ot||Ot.length===0)return;const xe=CT({columns:c.value},gt);xe&&xe.filterMethod&&(ct=ct.filter(Ue=>Ot.some(we=>xe.filterMethod.call(null,we,Ue,xe))))}),R.value=ct},Z=()=>{var ct;a.value=Nde((ct=R.value)!=null?ct:[],{sortingColumn:$.value,sortProp:M.value,sortOrder:B.value})},H=(ct=void 0)=>{ct!=null&&ct.filter||ce(),Z()},ae=ct=>{const{tableHeaderRef:gt}=t.refs;if(!gt)return;const Ot=Object.assign({},gt.filterPanels),xe=Object.keys(Ot);if(xe.length)if(Xe(ct)&&(ct=[ct]),Ae(ct)){const Ue=ct.map(we=>kde({columns:c.value},we));xe.forEach(we=>{const Ye=Ue.find(At=>At.id===we);Ye&&(Ye.filteredValue=[])}),t.store.commit("filterChange",{column:Ue,values:[],silent:!0,multi:!0})}else xe.forEach(Ue=>{const we=c.value.find(Ye=>Ye.id===Ue);we&&(we.filteredValue=[])}),O.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},de=()=>{$.value&&(ve(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ye,toggleRowExpansion:_e,updateExpandRows:Se,states:Le,isRowExpanded:De}=Ide({data:a,rowKey:s}),{updateTreeExpandKeys:$e,toggleTreeExpansion:Ce,updateTreeData:Oe,updateKeyChildren:Ie,loadOrToggle:We,states:nt}=Lde({data:a,rowKey:s}),{updateCurrentRowData:dt,updateCurrentRow:Fe,setCurrentRowKey:Be,states:et}=Ode({data:a,rowKey:s});return{assertRowKey:Y,updateColumns:N,scheduleLayout:V,isSelected:z,clearSelection:q,cleanSelection:Q,getSelectionRows:K,toggleRowSelection:ee,_toggleAllSelection:se,toggleAllSelection:null,updateAllSelected:pe,updateFilters:fe,updateCurrentRow:Fe,updateSort:ve,execFilter:ce,execSort:Z,execQuery:H,clearFilter:ae,clearSort:de,toggleRowExpansion:_e,setExpandRowKeysAdapter:ct=>{ye(ct),$e(ct)},setCurrentRowKey:Be,toggleRowExpansionAdapter:(ct,gt)=>{c.value.some(({type:xe})=>xe==="expand")?_e(ct,gt):Ce(ct,gt)},isRowExpanded:De,updateExpandRows:Se,updateCurrentRowData:dt,loadOrToggle:We,updateTreeData:Oe,updateKeyChildren:Ie,states:{tableSize:n,rowKey:s,data:a,_data:o,isComplex:r,_columns:i,originColumns:l,columns:c,fixedColumns:u,rightFixedColumns:d,leafColumns:h,fixedLeafColumns:p,rightFixedLeafColumns:v,updateOrderFns:m,leafColumnsLength:g,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:C,isAllSelected:w,selection:_,reserveSelection:x,selectOnIndeterminate:k,selectable:T,rowExpandable:I,filters:O,filteredData:R,sortingColumn:$,sortProp:M,sortOrder:B,hoverRow:U,...Le,...nt,...et}}}function I6(e,t){return e.map(n=>{var s;return n.id===t.id?t:((s=n.children)!=null&&s.length&&(n.children=I6(n.children,t)),n)})}function O6(e){e.forEach(t=>{var n,s;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(s=t.children)!=null&&s.length&&O6(t.children)}),e.sort((t,n)=>t.no-n.no)}function Dde(){const e=Mt(),t=$de(),n=Ee("table"),{t:s}=Bt();return{ns:n,t:s,...t,mutations:{setData(i,l){const c=f(i._data)!==l;i.data.value=l,i._data.value=l,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),f(i.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(i,l,c,u){var d;const h=f(i._columns);let p=[];c?(c&&!c.children&&(c.children=[]),(d=c.children)==null||d.push(l),p=I6(h,c)):(h.push(l),p=h),O6(p),i._columns.value=p,i.updateOrderFns.push(u),l.type==="selection"&&(i.selectable.value=l.selectable,i.reserveSelection.value=l.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(i,l){var c;((c=l.getColumnIndex)==null?void 0:c.call(l))!==l.no&&(O6(i._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(i,l,c,u){var d;const h=f(i._columns)||[];if(c)(d=c.children)==null||d.splice(c.children.findIndex(v=>v.id===l.id),1),ze(()=>{var v;((v=c.children)==null?void 0:v.length)===0&&delete c.children}),i._columns.value=I6(h,c);else{const v=h.indexOf(l);v>-1&&(h.splice(v,1),i._columns.value=h)}const p=i.updateOrderFns.indexOf(u);p>-1&&i.updateOrderFns.splice(p,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(i,l){const{prop:c,order:u,init:d}=l;if(c){const h=f(i.columns).find(p=>p.property===c);h&&(h.order=u,e.store.updateSort(h,c,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(i,l){const{sortingColumn:c,sortProp:u,sortOrder:d}=i,h=f(c),p=f(u),v=f(d);bg(v)&&(i.sortingColumn.value=null,i.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!l||!(l.silent||l.init))&&e.emit("sort-change",{column:h,prop:p,order:v}),e.store.updateTableScrollY()},filterChange(i,l){const{column:c,values:u,silent:d}=l,h=e.store.updateFilters(c,u);e.store.execQuery(),d||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){var i,l;(l=(i=e.store).toggleAllSelection)==null||l.call(i)},rowSelectedChanged(i,l){e.store.toggleRowSelection(l),e.store.updateAllSelected()},setHoverRow(i,l){i.hoverRow.value=l},setCurrentRow(i,l){e.store.updateCurrentRow(l)}},commit:function(i,...l){const c=e.store.mutations;if(c[i])c[i].apply(e,[e.store.states,...l]);else throw new Error(`Action not found: ${i}`)},updateTableScrollY:function(){ze(()=>e.layout.updateScrollY.apply(e.layout))}}}const L6={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",rowExpandable:"rowExpandable",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function Fde(e,t){if(!e)throw new Error("Table is required.");const n=Dde();return n.toggleAllSelection=Jr(n._toggleAllSelection,10),Object.keys(L6).forEach(s=>{PT(RT(t,s),s,n)}),Bde(n,t),n}function Bde(e,t){Object.keys(L6).forEach(n=>{be(()=>RT(t,n),s=>{PT(s,n,e)})})}function PT(e,t,n){let s=e,a=L6[t];bt(a)&&(s=s||a.default,a=a.key),n.states[a].value=s}function RT(e,t){if(t.includes(".")){const n=t.split(".");let s=e;return n.forEach(a=>{s=s[a]}),s}else return e[t]}var Vde=Object.defineProperty,zde=(e,t,n)=>t in e?Vde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xs=(e,t,n)=>zde(e,typeof t!="symbol"?t+"":t,n);class Hde{constructor(t){Xs(this,"observers"),Xs(this,"table"),Xs(this,"store"),Xs(this,"columns"),Xs(this,"fit"),Xs(this,"showHeader"),Xs(this,"height"),Xs(this,"scrollX"),Xs(this,"scrollY"),Xs(this,"bodyWidth"),Xs(this,"fixedWidth"),Xs(this,"rightFixedWidth"),Xs(this,"tableHeight"),Xs(this,"headerHeight"),Xs(this,"appendHeight"),Xs(this,"footerHeight"),Xs(this,"gutterWidth"),this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=F(null),this.scrollX=F(!1),this.scrollY=F(!1),this.bodyWidth=F(null),this.fixedWidth=F(null),this.rightFixedWidth=F(null),this.gutterWidth=0;for(const n in t)Gt(t,n)&&(yn(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(bg(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let s=!0;const a=this.scrollY.value;return s=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=s,a!==s}return!1}setHeight(t,n="height"){if(!Xt)return;const s=this.table.vnode.el;if(t=Ade(t),this.height.value=Number(t),!s&&(t||t===0)){ze(()=>this.setHeight(t,n));return}s&&at(t)?(s.style[n]=`${t}px`,this.updateElsHeight()):s&&Xe(t)&&(s.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(s=>{s.isColumnGroup?t.push.apply(t,s.columns):t.push(s)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){var t;if(!Xt)return;const n=this.fit,s=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let a=0;const o=this.getFlattenColumns(),r=o.filter(c=>!at(c.width));if(o.forEach(c=>{at(c.width)&&c.realWidth&&(c.realWidth=null)}),r.length>0&&n){if(o.forEach(c=>{a+=Number(c.width||c.minWidth||80)}),a<=s){this.scrollX.value=!1;const c=s-a;if(r.length===1)r[0].realWidth=Number(r[0].minWidth||80)+c;else{const u=r.reduce((p,v)=>p+Number(v.minWidth||80),0),d=c/u;let h=0;r.forEach((p,v)=>{if(v===0)return;const m=Math.floor(Number(p.minWidth||80)*d);h+=m,p.realWidth=Number(p.minWidth||80)+m}),r[0].realWidth=Number(r[0].minWidth||80)+c-h}}else this.scrollX.value=!0,r.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(a,s),this.table.state.resizeState.value.width=this.bodyWidth.value}else o.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),a+=c.realWidth}),this.scrollX.value=a>s,this.bodyWidth.value=a;const i=this.store.states.fixedColumns.value;if(i.length>0){let c=0;i.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.fixedWidth.value=c}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let c=0;l.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=c}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(s=>{var a,o;switch(t){case"columns":(a=s.state)==null||a.onColumnsChange(this);break;case"scrollable":(o=s.state)==null||o.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}var Wde=j({name:"ElTableFilterPanel",components:{ElCheckbox:mr,ElCheckboxGroup:R3,ElScrollbar:pr,ElTooltip:Ms,ElIcon:Je,ArrowDown:hr,ArrowUp:Sp},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:ln.appendTo},setup(e){const t=Mt(),{t:n}=Bt(),s=Ee("table-filter"),a=t==null?void 0:t.parent;e.column&&!a.filterPanels.value[e.column.id]&&(a.filterPanels.value[e.column.id]=t);const o=F(null),r=F(null),i=F(0),l=E(()=>e.column&&e.column.filters),c=E(()=>e.column&&e.column.filterClassName?`${s.b()} ${e.column.filterClassName}`:s.b()),u=E({get:()=>{var T;return(((T=e.column)==null?void 0:T.filteredValue)||[])[0]},set:T=>{d.value&&(Ka(T)?d.value.splice(0,1):d.value.splice(0,1,T))}}),d=E({get(){return e.column?e.column.filteredValue||[]:[]},set(T){var I;e.column&&((I=e.upDataColumn)==null||I.call(e,"filteredValue",T))}}),h=E(()=>e.column?e.column.filterMultiple:!0),p=T=>T.value===u.value,v=()=>{var T;(T=o.value)==null||T.onClose()},m=()=>{C(d.value),v()},g=()=>{d.value=[],C(d.value),v()},b=(T,I)=>{u.value=T,i.value=I,Ka(T)?C([]):C(d.value),v()},C=T=>{var I,O;(I=e.store)==null||I.commit("filterChange",{column:e.column,values:T}),(O=e.store)==null||O.updateAllSelected()},w=()=>{var T,I;(T=r.value)==null||T.focus(),!h.value&&x(),e.column&&((I=e.upDataColumn)==null||I.call(e,"filterOpened",!0))},_=()=>{var T;e.column&&((T=e.upDataColumn)==null||T.call(e,"filterOpened",!1))},x=()=>{if(Ka(u)){i.value=0;return}const T=(l.value||[]).findIndex(I=>I.value===u.value);i.value=T>=0?T+1:0};return{multiple:h,filterClassName:c,filteredValue:d,filterValue:u,filters:l,handleConfirm:m,handleReset:g,handleSelect:b,isPropAbsent:Ka,isActive:p,t:n,ns:s,tooltipRef:o,rootRef:r,checkedIndex:i,handleShowTooltip:w,handleHideTooltip:_,handleKeydown:T=>{var I,O;const R=un(T),$=(l.value?l.value.length:0)+1;let M=i.value,B=!0;switch(R){case Te.down:case Te.right:M=(M+1)%$;break;case Te.up:case Te.left:M=(M-1+$)%$;break;case Te.tab:v(),B=!1;break;case Te.enter:case Te.space:if(M===0)b(null,0);else{const U=(l.value||[])[M-1];U.value&&b(U.value,M)}break;default:B=!1;break}B&&T.preventDefault(),i.value=M,(O=(I=r.value)==null?void 0:I.querySelector(`.${s.e("list-item")}:nth-child(${M+1})`))==null||O.focus()}}}});const jde=["disabled"],Kde=["tabindex","aria-checked"],Ude=["tabindex","aria-checked","onClick"],qde=["aria-label"];function Gde(e,t,n,s,a,o){const r=Ge("el-checkbox"),i=Ge("el-checkbox-group"),l=Ge("el-scrollbar"),c=Ge("arrow-up"),u=Ge("arrow-down"),d=Ge("el-icon"),h=Ge("el-tooltip");return S(),le(h,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:X(()=>[e.multiple?(S(),P("div",{key:0,ref:"rootRef",tabindex:"-1",class:D(e.ns.e("multiple"))},[A("div",{class:D(e.ns.e("content"))},[W(l,{"wrap-class":e.ns.e("wrap")},{default:X(()=>[W(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=p=>e.filteredValue=p),class:D(e.ns.e("checkbox-group"))},{default:X(()=>[(S(!0),P(He,null,Et(e.filters,p=>(S(),le(r,{key:p.value,value:p.value},{default:X(()=>[je(ge(p.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),A("div",{class:D(e.ns.e("bottom"))},[A("button",{class:D(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...p)=>e.handleConfirm&&e.handleConfirm(...p))},ge(e.t("el.table.confirmFilter")),11,jde),A("button",{type:"button",onClick:t[2]||(t[2]=(...p)=>e.handleReset&&e.handleReset(...p))},ge(e.t("el.table.resetFilter")),1)],2)],2)):(S(),P("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:D(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...p)=>e.handleKeydown&&e.handleKeydown(...p))},[A("li",{role:"radio",class:D([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=p=>e.handleSelect(null,0))},ge(e.t("el.table.clearFilter")),11,Kde),(S(!0),P(He,null,Et(e.filters,(p,v)=>(S(),P("li",{key:p.value,role:"radio",class:D([e.ns.e("list-item"),e.ns.is("active",e.isActive(p))]),tabindex:e.checkedIndex===v+1?0:-1,"aria-checked":e.isActive(p),onClick:m=>e.handleSelect(p.value,v+1)},ge(p.text),11,Ude))),128))],34))]),default:X(()=>{var p;return[A("button",{type:"button",class:D(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((p=e.column)==null?void 0:p.label)||""})},[W(d,null,{default:X(()=>[ue(e.$slots,"filter-icon",{},()=>{var v;return[(v=e.column)!=null&&v.filterOpened?(S(),le(c,{key:0})):(S(),le(u,{key:1}))]})]),_:3})],10,qde)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var Yde=fs(Wde,[["render",Gde]]);function N6(e){const t=Mt();G2(()=>{n.value.addObserver(t)}),Pt(()=>{s(n.value),a(n.value)}),or(()=>{s(n.value),a(n.value)}),du(()=>{n.value.removeObserver(t)});const n=E(()=>{const o=e.layout;if(!o)throw new Error("Can not find table layout.");return o}),s=o=>{var r;const i=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const l=o.getFlattenColumns(),c={};l.forEach(u=>{c[u.id]=u});for(let u=0,d=i.length;u{var r,i;const l=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let u=0,d=l.length;u{m.stopPropagation()},o=(m,g)=>{!g.filters&&g.sortable?v(m,g,!1):g.filterable&&!g.sortable&&a(m),s==null||s.emit("header-click",g,m)},r=(m,g)=>{s==null||s.emit("header-contextmenu",g,m)},i=F(null),l=F(!1),c=F(),u=(m,g)=>{var b,C;if(Xt&&!(g.children&&g.children.length>0)&&i.value&&e.border&&i.value.id===g.id){l.value=!0;const w=s;t("set-drag-visible",!0);const _=w==null?void 0:w.vnode.el,x=_==null?void 0:_.getBoundingClientRect().left,k=(C=(b=n==null?void 0:n.vnode)==null?void 0:b.el)==null?void 0:C.querySelector(`th.${g.id}`),T=k.getBoundingClientRect(),I=T.left-x+30;No(k,"noclick"),c.value={startMouseLeft:m.clientX,startLeft:T.right-x,startColumnLeft:T.left-x,tableLeft:x};const O=w==null?void 0:w.refs.resizeProxy;O.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const R=M=>{const B=M.clientX-c.value.startMouseLeft,U=c.value.startLeft+B;O.style.left=`${Math.max(I,U)}px`},$=()=>{if(l.value){const{startColumnLeft:M,startLeft:B}=c.value,J=Number.parseInt(O.style.left,10)-M;g.width=g.realWidth=J,w==null||w.emit("header-dragend",g.width,B-M,g,m),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,i.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",$),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{la(k,"noclick")},0)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",$)}},d=(m,g)=>{var b;if(!e.border||g.children&&g.children.length>0)return;const C=m.target,w=ja(C)?C.closest("th"):null;if(!w)return;const _=Qr(w,"is-sortable");if(_){const R=l.value?"col-resize":"";w.style.cursor=R;const $=w.querySelector(".caret-wrapper");$&&($.style.cursor=R)}if(!g.resizable||l.value){i.value=null;return}const x=w.getBoundingClientRect(),k=((b=w.parentNode)==null?void 0:b.lastElementChild)===w,T=e.allowDragLastColumn||!k,I=x.width>12&&x.right-m.clientX<8&&T,O=I?"col-resize":"";document.body.style.cursor=O,i.value=I?g:null,_&&(w.style.cursor=O)},h=()=>{!Xt||l.value||(document.body.style.cursor="")},p=({order:m,sortOrders:g})=>{if(m==="")return g[0];const b=g.indexOf(m||null);return g[b>g.length-2?0:b+1]},v=(m,g,b)=>{var C;m.stopPropagation();const w=g.order===b?null:b||p(g),_=(C=m.target)==null?void 0:C.closest("th");if(_&&Qr(_,"noclick")){la(_,"noclick");return}if(!g.sortable)return;const x=m.currentTarget;if(["ascending","descending"].some(R=>Qr(x,R)&&!g.sortOrders.includes(R)))return;const k=e.store.states;let T=k.sortProp.value,I;const O=k.sortingColumn.value;(O!==g||O===g&&bg(O.order))&&(O&&(O.order=null),k.sortingColumn.value=g,T=g.property),w?I=g.order=w:I=g.order=null,k.sortProp.value=T,k.sortOrder.value=I,s==null||s.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:r,handleMouseDown:u,handleMouseMove:d,handleMouseOut:h,handleSortClick:v,handleFilterClick:a}}function Jde(e){const t=Ke(br),n=Ee("table");return{getHeaderRowStyle:i=>{const l=t==null?void 0:t.props.headerRowStyle;return Ze(l)?l.call(null,{rowIndex:i}):l},getHeaderRowClass:i=>{const l=[],c=t==null?void 0:t.props.headerRowClassName;return Xe(c)?l.push(c):Ze(c)&&l.push(c.call(null,{rowIndex:i})),l.join(" ")},getHeaderCellStyle:(i,l,c,u)=>{var d;let h=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};Ze(h)&&(h=h.call(null,{rowIndex:i,columnIndex:l,row:c,column:u}));const p=R6(l,u.fixed,e.store,c);return Jf(p,"left"),Jf(p,"right"),Object.assign({},h,p)},getHeaderCellClass:(i,l,c,u)=>{const d=P6(n.b(),l,u.fixed,e.store,c),h=[u.id,u.order,u.headerAlign,u.className,u.labelClassName,...d];u.children||h.push("is-leaf"),u.sortable&&h.push("is-sortable");const p=t==null?void 0:t.props.headerCellClassName;return Xe(p)?h.push(p):Ze(p)&&h.push(p.call(null,{rowIndex:i,columnIndex:l,row:c,column:u})),h.push(n.e("cell")),h.filter(v=>!!v).join(" ")}}}const IT=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,IT(n.children))):t.push(n)}),t},OT=e=>{let t=1;const n=(o,r)=>{if(r&&(o.level=r.level+1,t{n(l,o),i+=l.colSpan}),o.colSpan=i}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const s=[];for(let o=0;o{o.children?(o.rowSpan=1,o.children.forEach(r=>r.isSubColumn=!0)):o.rowSpan=t-o.level+1,s[o.level-1].push(o)}),s};function Zde(e){const t=Ke(br),n=E(()=>OT(e.store.states.originColumns.value));return{isGroup:E(()=>{const o=n.value.length>1;return o&&t&&(t.state.isGroup.value=!0),o}),toggleAllSelection:o=>{o.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var Qde=j({name:"ElTableHeader",components:{ElCheckbox:mr},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=Mt(),s=Ke(br),a=Ee("table"),o=F({}),{onColumnsChange:r,onScrollableChange:i}=N6(s),l=(s==null?void 0:s.props.tableLayout)==="auto",c=Yt(new Map),u=F();let d;const h=()=>{d=setTimeout(()=>{c.size>0&&(c.forEach((M,B)=>{const U=u.value.querySelector(`.${B.replace(/\s/g,".")}`);if(U){const J=U.getBoundingClientRect().width;M.width=J||M.width}}),c.clear())})};be(c,h),tn(()=>{d&&(clearTimeout(d),d=void 0)}),Pt(async()=>{await ze(),await ze();const{prop:M,order:B}=e.defaultSort;s==null||s.store.commit("sort",{prop:M,order:B,init:!0}),h()});const{handleHeaderClick:p,handleHeaderContextMenu:v,handleMouseDown:m,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w}=Xde(e,t),{getHeaderRowStyle:_,getHeaderRowClass:x,getHeaderCellStyle:k,getHeaderCellClass:T}=Jde(e),{isGroup:I,toggleAllSelection:O,columnRows:R}=Zde(e),{t:$}=Bt();return n.state={onColumnsChange:r,onScrollableChange:i},n.filterPanels=o,{ns:a,t:$,filterPanels:o,onColumnsChange:r,onScrollableChange:i,columnRows:R,getHeaderRowClass:x,getHeaderRowStyle:_,getHeaderCellClass:T,getHeaderCellStyle:k,handleHeaderClick:p,handleHeaderContextMenu:v,handleMouseDown:m,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w,isGroup:I,toggleAllSelection:O,saveIndexSelection:c,isTableLayoutAuto:l,theadRef:u,updateFixedColumnStyle:h}},render(){const{ns:e,t,isGroup:n,columnRows:s,getHeaderCellStyle:a,getHeaderCellClass:o,getHeaderRowClass:r,getHeaderRowStyle:i,handleHeaderClick:l,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleSortClick:h,handleMouseOut:p,store:v,$parent:m,saveIndexSelection:g,isTableLayoutAuto:b}=this;let C=1;return ut("thead",{ref:"theadRef",class:e.is("group",n)},s.map((w,_)=>ut("tr",{class:r(_),key:_,style:i(_)},w.map((x,k)=>{x.rowSpan>C&&(C=x.rowSpan);const T=o(_,k,w,x);return b&&x.fixed&&g.set(T,x),ut("th",{class:T,colspan:x.colSpan,key:`${x.id}-thead`,rowspan:x.rowSpan,scope:x.colSpan>1?"colgroup":"col",ariaSort:x.sortable?x.order:void 0,style:a(_,k,w,x),onClick:I=>{var O;(O=I.currentTarget)!=null&&O.classList.contains("noclick")||l(I,x)},onContextmenu:I=>c(I,x),onMousedown:I=>u(I,x),onMousemove:I=>d(I,x),onMouseout:p},[ut("div",{class:["cell",x.filteredValue&&x.filteredValue.length>0?"highlight":""]},[x.renderHeader?x.renderHeader({column:x,$index:k,store:v,_self:m}):x.label,x.sortable&&ut("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:x.label||""}),onClick:I=>h(I,x)},[ut("i",{onClick:I=>h(I,x,"ascending"),class:"sort-caret ascending"}),ut("i",{onClick:I=>h(I,x,"descending"),class:"sort-caret descending"})]),x.filterable&&ut(Yde,{store:v,placement:x.filterPlacement||"bottom-start",appendTo:m==null?void 0:m.appendFilterPanelTo,column:x,upDataColumn:(I,O)=>{x[I]=O}},{"filter-icon":()=>x.renderFilterIcon?x.renderFilterIcon({filterOpened:x.filterOpened}):null})])])}))))}});function $6(e,t,n=.03){return e-t>n}function efe(e){const t=Ke(br),n=F(""),s=F(ut("div")),a=(v,m,g)=>{var b,C,w;const _=t,x=T6(v);let k=null;const T=(b=_==null?void 0:_.vnode.el)==null?void 0:b.dataset.prefix;x&&(k=ST({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},x,T),k&&(_==null||_.emit(`cell-${g}`,m,k,x,v))),_==null||_.emit(`row-${g}`,m,k,v)},o=(v,m)=>{a(v,m,"dblclick")},r=(v,m)=>{var g;(g=e.store)==null||g.commit("setCurrentRow",m),a(v,m,"click")},i=(v,m)=>{a(v,m,"contextmenu")},l=Jr(v=>{var m;(m=e.store)==null||m.commit("setHoverRow",v)},30),c=Jr(()=>{var v;(v=e.store)==null||v.commit("setHoverRow",null)},30),u=v=>{const m=window.getComputedStyle(v,null),g=Number.parseInt(m.paddingLeft,10)||0,b=Number.parseInt(m.paddingRight,10)||0,C=Number.parseInt(m.paddingTop,10)||0,w=Number.parseInt(m.paddingBottom,10)||0;return{left:g,right:b,top:C,bottom:w}},d=(v,m,g)=>{var b;let C=(b=m==null?void 0:m.target)==null?void 0:b.parentNode;for(;v>1&&(C=C==null?void 0:C.nextSibling,!(!C||C.nodeName!=="TR"));)g(C,"hover-row hover-fixed-row"),v--};return{handleDoubleClick:o,handleClick:r,handleContextMenu:i,handleMouseEnter:l,handleMouseLeave:c,handleCellMouseEnter:(v,m,g)=>{var b,C,w,_,x,k,T,I,O;if(!t)return;const R=t,$=T6(v),M=(b=R==null?void 0:R.vnode.el)==null?void 0:b.dataset.prefix;let B=null;if($){if(B=ST({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},$,M),!B)return;$.rowSpan>1&&d($.rowSpan,v,No);const pe=R.hoverState={cell:$,column:B,row:m};R==null||R.emit("cell-mouse-enter",pe.row,pe.column,pe.cell,v)}if(!g){((_=ha)==null?void 0:_.trigger)===$&&((x=ha)==null||x());return}const U=v.target.querySelector(".cell");if(!(Qr(U,`${M}-tooltip`)&&U.childNodes.length&&((k=U.textContent)!=null&&k.trim())))return;const J=document.createRange();J.setStart(U,0),J.setEnd(U,U.childNodes.length);const{width:Y,height:L}=J.getBoundingClientRect(),{width:N,height:V}=U.getBoundingClientRect(),{top:z,left:q,right:Q,bottom:K}=u(U),ee=q+Q,se=z+K;$6(Y+ee,N)||$6(L+se,V)||$6(U.scrollWidth,N)?Rde(g,(T=($==null?void 0:$.innerText)||($==null?void 0:$.textContent))!=null?T:"",m,B,$,R):((I=ha)==null?void 0:I.trigger)===$&&((O=ha)==null||O())},handleCellMouseLeave:v=>{const m=T6(v);if(!m)return;m.rowSpan>1&&d(m.rowSpan,v,la);const g=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,v)},tooltipContent:n,tooltipTrigger:s}}function tfe(e){const t=Ke(br),n=Ee("table");return{getRowStyle:(c,u)=>{const d=t==null?void 0:t.props.rowStyle;return Ze(d)?d.call(null,{row:c,rowIndex:u}):d||null},getRowClass:(c,u,d)=>{var h;const p=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===((h=e.store)==null?void 0:h.states.currentRow.value)&&p.push("current-row"),e.stripe&&d%2===1&&p.push(n.em("row","striped"));const v=t==null?void 0:t.props.rowClassName;return Xe(v)?p.push(v):Ze(v)&&p.push(v.call(null,{row:c,rowIndex:u})),p},getCellStyle:(c,u,d,h)=>{const p=t==null?void 0:t.props.cellStyle;let v=p??{};Ze(p)&&(v=p.call(null,{rowIndex:c,columnIndex:u,row:d,column:h}));const m=R6(u,e==null?void 0:e.fixed,e.store);return Jf(m,"left"),Jf(m,"right"),Object.assign({},v,m)},getCellClass:(c,u,d,h,p)=>{const v=P6(n.b(),u,e==null?void 0:e.fixed,e.store,void 0,p),m=[h.id,h.align,h.className,...v],g=t==null?void 0:t.props.cellClassName;return Xe(g)?m.push(g):Ze(g)&&m.push(g.call(null,{rowIndex:c,columnIndex:u,row:d,column:h})),m.push(n.e("cell")),m.filter(b=>!!b).join(" ")},getSpan:(c,u,d,h)=>{let p=1,v=1;const m=t==null?void 0:t.props.spanMethod;if(Ze(m)){const g=m({row:c,column:u,rowIndex:d,columnIndex:h});Ae(g)?(p=g[0],v=g[1]):bt(g)&&(p=g.rowspan,v=g.colspan)}return{rowspan:p,colspan:v}},getColspanRealWidth:(c,u,d)=>{if(u<1)return c[d].realWidth;const h=c.map(({realWidth:p,width:v})=>p||v).slice(d,d+u);return Number(h.reduce((p,v)=>Number(p)+Number(v),-1))}}}const nfe=["colspan","rowspan"];var sfe=j({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(S(),P("td",{colspan:e.colspan,rowspan:e.rowspan},[ue(t.$slots,"default")],8,nfe))}});function afe(e){const t=Ke(br),n=Ee("table"),{handleDoubleClick:s,handleClick:a,handleContextMenu:o,handleMouseEnter:r,handleMouseLeave:i,handleCellMouseEnter:l,handleCellMouseLeave:c,tooltipContent:u,tooltipTrigger:d}=efe(e),{getRowStyle:h,getRowClass:p,getCellStyle:v,getCellClass:m,getSpan:g,getColspanRealWidth:b}=tfe(e);let C=-1;const w=E(()=>{var I;return(I=e.store)==null?void 0:I.states.columns.value.findIndex(({type:O})=>O==="default")}),_=(I,O)=>{var R;const $=(R=t==null?void 0:t.props)==null?void 0:R.rowKey;return $?Ys(I,$):O},x=(I,O,R,$=!1)=>{const{tooltipEffect:M,tooltipOptions:B,store:U}=e,{indent:J,columns:Y}=U.states,L=[];let N=!0;return R&&(L.push(n.em("row",`level-${R.level}`)),N=!!R.display),O===0&&(C=-1),e.stripe&&N&&C++,L.push(...p(I,O,C)),ut("tr",{style:[N?null:{display:"none"},h(I,O)],class:L,key:_(I,O),onDblclick:z=>s(z,I),onClick:z=>a(z,I),onContextmenu:z=>o(z,I),onMouseenter:()=>r(O),onMouseleave:i},Y.value.map((z,q)=>{const{rowspan:Q,colspan:K}=g(I,z,O,q);if(!Q||!K)return null;const ee=Object.assign({},z);ee.realWidth=b(Y.value,K,q);const se={store:U,_self:e.context||t,column:ee,row:I,$index:O,cellIndex:q,expanded:$};q===w.value&&R&&(se.treeNode={indent:R.level&&R.level*J.value,level:R.level},on(R.expanded)&&(se.treeNode.expanded=R.expanded,"loading"in R&&(se.treeNode.loading=R.loading),"noLazyChildren"in R&&(se.treeNode.noLazyChildren=R.noLazyChildren)));const pe=`${_(I,O)},${q}`,te=ee.columnKey||ee.rawColumnKey||"",fe=z.showOverflowTooltip&&px({effect:M},B,z.showOverflowTooltip);return ut(sfe,{style:v(O,q,I,z),class:m(O,q,I,z,K-1),key:`${te}${pe}`,rowspan:Q,colspan:K,onMouseenter:ve=>l(ve,I,fe),onMouseleave:c},{default:()=>k(q,z,se)})}))},k=(I,O,R)=>O.renderCell(R);return{wrappedRowRender:(I,O)=>{const R=e.store,{isRowExpanded:$,assertRowKey:M}=R,{treeData:B,lazyTreeNodeMap:U,childrenColumnName:J,rowKey:Y}=R.states,L=R.states.columns.value;if(L.some(({type:V})=>V==="expand")){const V=$(I),z=x(I,O,void 0,V),q=t==null?void 0:t.renderExpanded;if(!q)return console.error("[Element Error]renderExpanded is required."),z;const Q=[[z]];return(t.props.preserveExpandedContent||V)&&Q[0].push(ut("tr",{key:`expanded-row__${z.key}`,style:{display:V?"":"none"}},[ut("td",{colspan:L.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[q({row:I,$index:O,store:R,expanded:V})])])),Q}else if(Object.keys(B.value).length){M();const V=Ys(I,Y.value);let z=B.value[V],q=null;z&&(q={expanded:z.expanded,level:z.level,display:!0,noLazyChildren:void 0,loading:void 0},on(z.lazy)&&(q&&on(z.loaded)&&z.loaded&&(q.noLazyChildren=!(z.children&&z.children.length)),q.loading=z.loading));const Q=[x(I,O,q??void 0)];if(z){let K=0;const ee=(pe,te)=>{pe&&pe.length&&te&&pe.forEach(fe=>{const ve={display:te.display&&te.expanded,level:te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ce=Ys(fe,Y.value);if(Ka(ce))throw new Error("For nested data item, row-key is required.");if(z={...B.value[ce]},z&&(ve.expanded=z.expanded,z.level=z.level||ve.level,z.display=!!(z.expanded&&ve.display),on(z.lazy)&&(on(z.loaded)&&z.loaded&&(ve.noLazyChildren=!(z.children&&z.children.length)),ve.loading=z.loading)),K++,Q.push(x(fe,O+K,ve)),z){const Z=U.value[ce]||fe[J.value];ee(Z,z)}})};z.display=!0;const se=U.value[V]||I[J.value];ee(se,z)}return Q}else return x(I,O,void 0)},tooltipContent:u,tooltipTrigger:d}}var ofe=j({name:"ElTableBody",props:{store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean},setup(e){var t;const n=Mt(),s=Ke(br),a=Ee("table"),{wrappedRowRender:o,tooltipContent:r,tooltipTrigger:i}=afe(e),{onColumnsChange:l,onScrollableChange:c}=N6(s),u=[];return be((t=e.store)==null?void 0:t.states.hoverRow,(d,h)=>{var p,v;const m=n==null?void 0:n.vnode.el,g=Array.from((m==null?void 0:m.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${a.e("row")}`));let b=d;const C=(p=g[b])==null?void 0:p.childNodes;if(C!=null&&C.length){let w=0;Array.from(C).reduce((x,k,T)=>{var I,O;return((I=C[T])==null?void 0:I.colSpan)>1&&(w=(O=C[T])==null?void 0:O.colSpan),k.nodeName!=="TD"&&w===0&&x.push(T),w>0&&w--,x},[]).forEach(x=>{var k;for(b=d;b>0;){const T=(k=g[b-1])==null?void 0:k.childNodes;if(T[x]&&T[x].nodeName==="TD"&&T[x].rowSpan>1){No(T[x],"hover-cell"),u.push(T[x]);break}b--}})}else u.forEach(w=>la(w,"hover-cell")),u.length=0;!((v=e.store)!=null&&v.states.isComplex.value)||!Xt||Zr(()=>{const w=g[h],_=g[d];w&&!w.classList.contains("hover-fixed-row")&&la(w,"hover-row"),_&&No(_,"hover-row")})}),du(()=>{var d;(d=ha)==null||d()}),{ns:a,onColumnsChange:l,onScrollableChange:c,wrappedRowRender:o,tooltipContent:r,tooltipTrigger:i}},render(){const{wrappedRowRender:e,store:t}=this,n=(t==null?void 0:t.states.data.value)||[];return ut("tbody",{tabIndex:-1},[n.reduce((s,a)=>s.concat(e(a,s.length)),[])])}});function rfe(){const e=Ke(br),t=e==null?void 0:e.store,n=E(()=>{var i;return(i=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?i:0}),s=E(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0}),a=E(()=>{var i;return(i=t==null?void 0:t.states.columns.value.length)!=null?i:0}),o=E(()=>{var i;return(i=t==null?void 0:t.states.fixedColumns.value.length)!=null?i:0}),r=E(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0});return{leftFixedLeafCount:n,rightFixedLeafCount:s,columnsCount:a,leftFixedCount:o,rightFixedCount:r,columns:E(()=>{var i;return(i=t==null?void 0:t.states.columns.value)!=null?i:[]})}}function ife(e){const{columns:t}=rfe(),n=Ee("table");return{getCellClasses:(o,r)=>{const i=o[r],l=[n.e("cell"),i.id,i.align,i.labelClassName,...P6(n.b(),r,i.fixed,e.store)];return i.className&&l.push(i.className),i.children||l.push(n.is("leaf")),l},getCellStyles:(o,r)=>{const i=R6(r,o.fixed,e.store);return Jf(i,"left"),Jf(i,"right"),i},columns:t}}var lfe=j({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Ke(br),n=Ee("table"),{getCellClasses:s,getCellStyles:a,columns:o}=ife(e),{onScrollableChange:r,onColumnsChange:i}=N6(t);return{ns:n,onScrollableChange:r,onColumnsChange:i,getCellClasses:s,getCellStyles:a,columns:o}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:s,sumText:a}=this,o=this.store.states.data.value;let r=[];return s?r=s({columns:e,data:o}):e.forEach((i,l)=>{if(l===0){r[l]=a;return}const c=o.map(p=>Number(p[i.property])),u=[];let d=!0;c.forEach(p=>{if(!Number.isNaN(+p)){d=!1;const v=`${p}`.split(".")[1];u.push(v?v.length:0)}});const h=Math.max.apply(null,u);d?r[l]="":r[l]=c.reduce((p,v)=>{const m=Number(v);return Number.isNaN(+m)?p:Number.parseFloat((p+v).toFixed(Math.min(h,20)))},0)}),ut(ut("tfoot",[ut("tr",{},[...e.map((i,l)=>ut("td",{key:l,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,l),style:t(i,l)},[ut("div",{class:["cell",i.labelClassName]},[r[l]])]))])]))}});function cfe(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,h,p=!0)=>{e.toggleRowSelection(d,h,!1,p),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,h)=>{e.toggleRowExpansionAdapter(d,h)},clearSort:()=>{e.clearSort()},sort:(d,h)=>{e.commit("sort",{prop:d,order:h})},updateKeyChildren:(d,h)=>{e.updateKeyChildren(d,h)}}}function ufe(e,t,n,s){const a=F(!1),o=F(null),r=F(!1),i=L=>{r.value=L},l=F({width:null,height:null,headerHeight:null}),c=F(!1),u={display:"inline-block",verticalAlign:"middle"},d=F(),h=F(0),p=F(0),v=F(0),m=F(0),g=F(0);be(()=>e.height,L=>{t.setHeight(L??null)},{immediate:!0}),be(()=>e.maxHeight,L=>{t.setMaxHeight(L??null)},{immediate:!0}),be(()=>[e.currentRowKey,n.states.rowKey],([L,N])=>{!f(N)||!f(L)||n.setCurrentRowKey(`${L}`)},{immediate:!0}),be(()=>e.data,L=>{s.store.commit("setData",L)},{immediate:!0,deep:!0}),Wa(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const b=()=>{s.store.commit("setHoverRow",null),s.hoverState&&(s.hoverState=null)},C=(L,N)=>{const{pixelX:V,pixelY:z}=N;Math.abs(V)>=Math.abs(z)&&(s.refs.bodyWrapper.scrollLeft+=N.pixelX/5)},w=E(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),_=E(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(O)};Pt(async()=>{await ze(),n.updateColumns(),R(),requestAnimationFrame(x);const L=s.vnode.el,N=s.refs.headerWrapper;e.flexible&&L&&L.parentElement&&(L.parentElement.style.minWidth="0"),l.value={width:d.value=L.offsetWidth,height:L.offsetHeight,headerHeight:e.showHeader&&N?N.offsetHeight:null},n.states.columns.value.forEach(V=>{V.filteredValue&&V.filteredValue.length&&s.store.commit("filterChange",{column:V,values:V.filteredValue,silent:!0})}),s.$ready=!0});const k=(L,N)=>{if(!L)return;const V=Array.from(L.classList).filter(z=>!z.startsWith("is-scrolling-"));V.push(t.scrollX.value?N:"is-scrolling-none"),L.className=V.join(" ")},T=L=>{const{tableWrapper:N}=s.refs;k(N,L)},I=L=>{const{tableWrapper:N}=s.refs;return!!(N&&N.classList.contains(L))},O=function(){if(!s.refs.scrollBarRef)return;if(!t.scrollX.value){const ee="is-scrolling-none";I(ee)||T(ee);return}const L=s.refs.scrollBarRef.wrapRef;if(!L)return;const{scrollLeft:N,offsetWidth:V,scrollWidth:z}=L,{headerWrapper:q,footerWrapper:Q}=s.refs;q&&(q.scrollLeft=N),Q&&(Q.scrollLeft=N);const K=z-V-1;N>=K?T("is-scrolling-right"):T(N===0?"is-scrolling-left":"is-scrolling-middle")},R=()=>{s.refs.scrollBarRef&&(s.refs.scrollBarRef.wrapRef&&an(s.refs.scrollBarRef.wrapRef,"scroll",O,{passive:!0}),e.fit?En(s.vnode.el,$):an(window,"resize",$),En(s.refs.tableInnerWrapper,()=>{var L,N;$(),(N=(L=s.refs)==null?void 0:L.scrollBarRef)==null||N.update()}))},$=()=>{var L,N,V,z;const q=s.vnode.el;if(!s.$ready||!q)return;let Q=!1;const{width:K,height:ee,headerHeight:se}=l.value,pe=d.value=q.offsetWidth;K!==pe&&(Q=!0);const te=q.offsetHeight;(e.height||w.value)&&ee!==te&&(Q=!0);const fe=e.tableLayout==="fixed"?s.refs.headerWrapper:(L=s.refs.tableHeaderRef)==null?void 0:L.$el;e.showHeader&&(fe==null?void 0:fe.offsetHeight)!==se&&(Q=!0),h.value=((N=s.refs.tableWrapper)==null?void 0:N.scrollHeight)||0,v.value=(fe==null?void 0:fe.scrollHeight)||0,m.value=((V=s.refs.footerWrapper)==null?void 0:V.offsetHeight)||0,g.value=((z=s.refs.appendWrapper)==null?void 0:z.offsetHeight)||0,p.value=h.value-v.value-m.value-g.value,Q&&(l.value={width:pe,height:te,headerHeight:e.showHeader&&(fe==null?void 0:fe.offsetHeight)||0},x())},M=rs(),B=E(()=>{const{bodyWidth:L,scrollY:N,gutterWidth:V}=t;return L.value?`${L.value-(N.value?V:0)}px`:""}),U=E(()=>e.maxHeight?"fixed":e.tableLayout),J=E(()=>{if(e.data&&e.data.length)return;let L="100%";e.height&&p.value&&(L=`${p.value}px`);const N=d.value;return{width:N?`${N}px`:"",height:L}}),Y=E(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+m.value}px)`}:{maxHeight:`${+e.maxHeight-v.value-m.value}px`}:{});return{isHidden:a,renderExpanded:o,setDragVisible:i,isGroup:c,handleMouseLeave:b,handleHeaderFooterMousewheel:C,tableSize:M,emptyBlockStyle:J,resizeProxyVisible:r,bodyWidth:B,resizeState:l,doLayout:x,tableBodyStyles:_,tableLayout:U,scrollbarViewStyle:u,scrollbarStyle:Y}}function dfe(e){let t;const n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},r=e.store.states.updateOrderFns;t=new MutationObserver(()=>{r.forEach(i=>i())}),t.observe(a,o)};Pt(()=>{n()}),du(()=>{t==null||t.disconnect()})}var ffe={data:{type:Array,default:()=>[]},size:ds,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,rowExpandable:{type:Function},defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function LT(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:a})=>Ht(a))&&(n=[]);const s=a=>{const o={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?o.style={width:`${a.width}px`}:o.name=a.id,o};return ut("colgroup",{},n.map(a=>ut("col",s(a))))}LT.props=["columns","tableLayout"];const hfe=()=>{const e=F(),t=(o,r)=>{const i=e.value;i&&i.scrollTo(o,r)},n=(o,r)=>{const i=e.value;i&&at(r)&&["Top","Left"].includes(o)&&i[`setScroll${o}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:o=>n("Top",o),setScrollLeft:o=>n("Left",o)}};var NT=!1,Ru,D6,F6,S1,x1,$T,k1,B6,V6,z6,DT,H6,W6,FT,BT;function Ja(){if(!NT){NT=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(H6=/\b(iPhone|iP[ao]d)/.exec(e),W6=/\b(iP[ao]d)/.exec(e),z6=/Android/i.exec(e),FT=/FBAN\/\w+;/i.exec(e),BT=/Mobile/i.exec(e),DT=!!/Win64/.exec(e),t){Ru=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ru&&document&&document.documentMode&&(Ru=document.documentMode);var s=/(?:Trident\/(\d+.\d+))/.exec(e);$T=s?parseFloat(s[1])+4:Ru,D6=t[2]?parseFloat(t[2]):NaN,F6=t[3]?parseFloat(t[3]):NaN,S1=t[4]?parseFloat(t[4]):NaN,S1?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),x1=t&&t[1]?parseFloat(t[1]):NaN):x1=NaN}else Ru=D6=F6=x1=S1=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);k1=a?parseFloat(a[1].replace("_",".")):!0}else k1=!1;B6=!!n[2],V6=!!n[3]}else k1=B6=V6=!1}}var j6={ie:function(){return Ja()||Ru},ieCompatibilityMode:function(){return Ja()||$T>Ru},ie64:function(){return j6.ie()&&DT},firefox:function(){return Ja()||D6},opera:function(){return Ja()||F6},webkit:function(){return Ja()||S1},safari:function(){return j6.webkit()},chrome:function(){return Ja()||x1},windows:function(){return Ja()||B6},osx:function(){return Ja()||k1},linux:function(){return Ja()||V6},iphone:function(){return Ja()||H6},mobile:function(){return Ja()||H6||W6||z6||BT},nativeApp:function(){return Ja()||FT},android:function(){return Ja()||z6},ipad:function(){return Ja()||W6}},pfe=j6,vfe=!!(typeof window<"u"&&window.document&&window.document.createElement),mfe={canUseDOM:vfe},VT=mfe,zT;VT.canUseDOM&&(zT=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function gfe(e,t){if(!VT.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,s=n in document;if(!s){var a=document.createElement("div");a.setAttribute(n,"return;"),s=typeof a[n]=="function"}return!s&&zT&&e==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}var bfe=gfe,HT=10,WT=40,jT=800;function KT(e){var t=0,n=0,s=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),s=t*HT,a=n*HT,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||a)&&e.deltaMode&&(e.deltaMode==1?(s*=WT,a*=WT):(s*=jT,a*=jT)),s&&!t&&(t=s<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:s,pixelY:a}}KT.getEventType=function(){return pfe.firefox()?"DOMMouseScroll":bfe("wheel")?"wheel":"mousewheel"};var yfe=KT;/** * 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 E1="_Mousewheel",UT=function(e,t){if(e&&e.addEventListener){qT(e);const n=function(s){const a=yfe(s);t&&Reflect.apply(t,this,[s,a])};e[E1]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},qT=e=>{var t;(t=e[E1])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[E1].wheelHandler),e[E1]=null)},wfe={beforeMount(e,t){UT(e,t.value)},unmounted(e){qT(e)},updated(e,t){t.value!==t.oldValue&&UT(e,t.value)}};let _fe=1;var Cfe=j({name:"ElTable",directives:{Mousewheel:wfe},components:{TableHeader:Qde,TableBody:ofe,TableFooter:lfe,ElScrollbar:pr,hColgroup:LT},props:ffe,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}=Bt(),n=Ee("table"),s=Mt();Nt(br,s);const a=Fde(s,e);s.store=a;const o=new Hde({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}=cfe(a),{isHidden:b,renderExpanded:C,setDragVisible:w,isGroup:_,handleMouseLeave:x,handleHeaderFooterMousewheel:k,tableSize:T,emptyBlockStyle:I,resizeProxyVisible:O,bodyWidth:R,resizeState:$,doLayout:M,tableBodyStyles:B,tableLayout:U,scrollbarViewStyle:J,scrollbarStyle:Y}=ufe(e,o,a,s),{scrollBarRef:L,scrollTo:N,setScrollLeft:V,setScrollTop:z}=hfe(),q=Jr(M,50),Q=`${n.namespace.value}-table_${_fe++}`;s.tableId=Q,s.state={isGroup:_,resizeState:$,doLayout:M,debouncedUpdateLayout:q};const K=E(()=>{var pe;return(pe=e.sumText)!=null?pe:t("el.table.sumText")}),ee=E(()=>{var pe;return(pe=e.emptyText)!=null?pe:t("el.table.emptyText")}),se=E(()=>OT(a.states.originColumns.value)[0]);return dfe(s),tn(()=>{q.cancel()}),{ns:n,layout:o,store:a,columns:se,handleHeaderFooterMousewheel:k,handleMouseLeave:x,tableId:Q,tableSize:T,isHidden:b,isEmpty:r,renderExpanded:C,resizeProxyVisible:O,resizeState:$,isGroup:_,bodyWidth:R,tableBodyStyles:B,emptyBlockStyle:I,debouncedUpdateLayout:q,setCurrentRow:i,getSelectionRows:l,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,doLayout:M,sort:m,updateKeyChildren:g,t,setDragVisible:w,context:s,computedSumText:K,computedEmptyText:ee,tableLayout:U,scrollbarViewStyle:J,scrollbarStyle:Y,scrollBarRef:L,scrollTo:N,setScrollLeft:V,setScrollTop:z,allowDragLastColumn:e.allowDragLastColumn}}});const Sfe=["data-prefix"],xfe={ref:"hiddenColumns",class:"hidden-columns"};function kfe(e,t,n,s,a,o){const r=Ge("hColgroup"),i=Ge("table-header"),l=Ge("table-body"),c=Ge("table-footer"),u=Ge("el-scrollbar"),d=F4("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",xfe,[ue(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Ct((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"},[W(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),W(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):ie("v-if",!0),A("div",{ref:"bodyWrapper",class:D(e.ns.e("body-wrapper"))},[W(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=h=>e.$emit("scroll",h))},{default:X(()=>[A("table",{ref:"tableBody",class:D(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Qe({width:e.bodyWidth,tableLayout:e.tableLayout})},[W(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(S(),le(i,{key:0,ref:"tableHeaderRef",class:D(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):ie("v-if",!0),W(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(S(),le(c,{key:1,class:D(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):ie("v-if",!0)],6),e.isEmpty?(S(),P("div",{key:0,ref:"emptyBlock",style:Qe(e.emptyBlockStyle),class:D(e.ns.e("empty-block"))},[A("span",{class:D(e.ns.e("empty-text"))},[ue(e.$slots,"empty",{},()=>[je(ge(e.computedEmptyText),1)])],2)],6)):ie("v-if",!0),e.$slots.append?(S(),P("div",{key:1,ref:"appendWrapper",class:D(e.ns.e("append-wrapper"))},[ue(e.$slots,"append")],2)):ie("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?Ct((S(),P("div",{key:1,ref:"footerWrapper",class:D(e.ns.e("footer-wrapper"))},[A("table",{class:D(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Qe(e.tableBodyStyles)},[W(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),W(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[jt,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):ie("v-if",!0),e.border||e.isGroup?(S(),P("div",{key:2,class:D(e.ns.e("border-left-patch"))},null,2)):ie("v-if",!0)],2),Ct(A("div",{ref:"resizeProxy",class:D(e.ns.e("column-resize-proxy"))},null,2),[[jt,e.resizeProxyVisible]])],46,Sfe)}var Efe=fs(Cfe,[["render",kfe]]);const Afe={selection:"table-column--selection",expand:"table__expand-column"},Tfe={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Mfe=e=>Afe[e]||"",Pfe={selection:{renderHeader({store:e}){var t;function n(){return e.states.data.value&&e.states.data.value.length===0}return ut(mr,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":(t=e.toggleAllSelection)!=null?t:void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:s}){return ut(mr,{disabled:t.selectable?!t.selectable.call(null,e,s):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const s=e.index;return at(s)?n=t+s:Ze(s)&&(n=s(t)),ut("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:s,$index:a}){var o,r,i;const{ns:l}=n,c=[l.e("expand-icon")];!e.renderExpand&&s&&c.push(l.em("expand-icon","expanded"));const u=function(h){h.stopPropagation(),n.toggleRowExpansion(t)},d=(i=(r=(o=n.states.rowExpandable).value)==null?void 0:r.call(o,t,a))!=null?i:!0;return d||c.push(l.is("disabled")),ut("button",{type:"button",disabled:!d,"aria-label":n.t(s?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":s,class:c,onClick:u},{default:()=>e.renderExpand?[e.renderExpand({expanded:s,expandable:d})]:[ut(Je,null,{default:()=>[ut(Ds)]})]})},sortable:!1,resizable:!1}};function Rfe({row:e,column:t,$index:n}){var s;const a=t.property,o=a&&kf(e,a).value;return t&&t.formatter?t.formatter(e,t,o,n):((s=o==null?void 0:o.toString)==null?void 0:s.call(o))||""}function Ife({row:e,treeNode:t,store:n},s=!1){const{ns:a}=n;if(!t)return s?[ut("span",{class:a.e("placeholder")})]:null;const o=[],r=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&o.push(ut("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),on(t.expanded)&&!t.noLazyChildren){const i=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let l=Ds;t.loading&&(l=Fs),o.push(ut("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:i,onClick:r},{default:()=>[ut(Je,{class:a.is("loading",t.loading)},{default:()=>[ut(l)]})]}))}else o.push(ut("span",{class:a.e("placeholder")}));return o}function GT(e,t){return e.reduce((n,s)=>(n[s]=s,n),t)}function Ofe(e,t){const n=Mt();return{registerComplexWatchers:()=>{const o=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},i=GT(o,r);Object.keys(i).forEach(l=>{const c=r[l];Gt(t,c)&&be(()=>t[c],u=>{let d=u;c==="width"&&l==="realWidth"&&(d=M6(u)),c==="minWidth"&&l==="realMinWidth"&&(d=xT(u)),n.columnConfig.value[c]=d,n.columnConfig.value[l]=d;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const o=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],r=["showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=GT(o,i);Object.keys(l).forEach(c=>{const u=i[c];Gt(t,u)&&be(()=>t[u],d=>{n.columnConfig.value[c]=d,(c==="filters"||c==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(c=>{Gt(e.value.props,c)&&be(()=>e.value.props[c],u=>{n.columnConfig.value.type!=="selection"&&Ht(t[c])&&(n.columnConfig.value[c]=u)})})}}}function Lfe(e,t,n){const s=Mt(),a=F(""),o=F(!1),r=F(),i=F(),l=Ee("table");Wa(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),Wa(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:r.value,i.value});const c=E(()=>{let _=s.vnode.vParent||s.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),u=E(()=>{const{store:_}=s.parent;if(!_)return!1;const{treeData:x}=_.states,k=x.value;return k&&Object.keys(k).length>0}),d=F(M6(e.width)),h=F(xT(e.minWidth)),p=_=>(d.value&&(_.width=d.value),h.value&&(_.minWidth=h.value),!d.value&&h.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(Ht(_.width)?_.minWidth:_.width),_),v=_=>{const x=_.type,k=Pfe[x]||{};Object.keys(k).forEach(I=>{const O=k[I];I!=="className"&&!Ht(O)&&(_[I]=O)});const T=Mfe(x);if(T){const I=`${f(l.namespace)}-${T}`;_.className=_.className?`${_.className} ${I}`:I}return _},m=_=>{Ae(_)?_.forEach(k=>x(k)):x(_);function x(k){var T;((T=k==null?void 0:k.type)==null?void 0:T.name)==="ElTableColumn"&&(k.vParent=s)}};return{columnId:a,realAlign:r,isSubColumn:o,realHeaderAlign:i,columnOrTableParent:c,setColumnWidth:p,setColumnForcedProps:v,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=k=>{if(s.columnConfig.value.label,t.header){const T=t.header(k);if(MT(T))return ut(He,T)}return je(_.label)}),t["filter-icon"]&&(_.renderFilterIcon=k=>ue(t,"filter-icon",k)),t.expand&&(_.renderExpand=k=>ue(t,"expand",k));let x=_.renderCell;return _.type==="expand"?(_.renderCell=k=>ut("div",{class:"cell"},[x(k)]),n.value.renderExpanded=k=>t.default?t.default(k):t.default):(x=x||Rfe,_.renderCell=k=>{let T=null;if(t.default){const B=t.default(k);T=B.some(U=>U.type!==Gn)?B:x(k)}else T=x(k);const{columns:I}=n.value.store.states,O=I.value.findIndex(B=>B.type==="default"),R=u.value&&k.cellIndex===O,$=Ife(k,R),M={class:"cell",style:{}};return _.showOverflowTooltip&&(M.class=`${M.class} ${f(l.namespace)}-tooltip`,M.style={width:`${(k.column.realWidth||Number(k.column.width))-1}px`}),m(T),ut("div",M,[$,T])}),_},getPropsData:(..._)=>_.reduce((x,k)=>(Ae(k)&&k.forEach(T=>{x[T]=e[T]}),x),{}),getColumnElIndex:(_,x)=>Array.prototype.indexOf.call(_,x),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",s.columnConfig.value)}}}var Nfe={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let $fe=1;var YT=j({name:"ElTableColumn",components:{ElCheckbox:mr},props:Nfe,setup(e,{slots:t}){const n=Mt(),s=F({}),a=E(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:o,registerComplexWatchers:r}=Ofe(a,e),{columnId:i,isSubColumn:l,realHeaderAlign:c,columnOrTableParent:u,setColumnWidth:d,setColumnForcedProps:h,setColumnRenders:p,getPropsData:v,getColumnElIndex:m,realAlign:g,updateColumnOrder:b}=Lfe(e,t,a),C=u.value;i.value=`${"tableId"in C&&C.tableId||"columnId"in C&&C.columnId}_column_${$fe++}`,G2(()=>{l.value=a.value!==C;const w=e.type||"default",_=e.sortable===""?!0:e.sortable,x=w==="selection"?!1:Ht(e.showOverflowTooltip)?C.props.showOverflowTooltip:e.showOverflowTooltip,k=Ht(e.tooltipFormatter)?C.props.tooltipFormatter:e.tooltipFormatter,T={...Tfe[w],id:i.value,type:w,property:e.prop||e.property,align:g,headerAlign:c,showOverflowTooltip:x,tooltipFormatter:k,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:n.vnode.key};let M=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);M=Ede(T,M),M=Tde(p,d,h)(M),s.value=M,o(),r()}),Pt(()=>{var w,_;const x=u.value,k=l.value?(w=x.vnode.el)==null?void 0:w.children:(_=x.refs.hiddenColumns)==null?void 0:_.children,T=()=>m(k||[],n.vnode.el);s.value.getColumnIndex=T,T()>-1&&a.value.store.commit("insertColumn",s.value,l.value?"columnConfig"in x&&x.columnConfig.value:null,b)}),tn(()=>{const w=s.value.getColumnIndex;(w?w():-1)>-1&&a.value.store.commit("removeColumn",s.value,l.value?"columnConfig"in C&&C.columnConfig.value:null,b)}),n.columnId=i.value,n.columnConfig=s},render(){var e,t,n;try{const s=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Ae(s))for(const r of s)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?a.push(r):r.type===He&&Ae(r.children)&&r.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!Xe(i==null?void 0:i.children)&&a.push(i)});return ut("div",a)}catch{return ut("div",[])}}});const Dfe=yt(Efe,{TableColumn:YT}),Ffe=Pn(YT);var Iu=(e=>(e.ASC="asc",e.DESC="desc",e))(Iu||{}),nv=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(nv||{}),XT=(e=>(e.LEFT="left",e.RIGHT="right",e))(XT||{});const K6={asc:"desc",desc:"asc"},sv=Symbol("placeholder"),Bfe=(e,t,n)=>{var s,a,o;const r={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:(s=e.flexGrow)!=null?s:0,flexShrink:(a=e.flexShrink)!=null?a:1}},i={...(o=e.style)!=null?o:{},...r,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function Vfe(e,t,n){const s=E(()=>f(t).map((g,b)=>{var C,w;return{...g,key:(w=(C=g.key)!=null?C:g.dataKey)!=null?w:b}})),a=E(()=>f(s).filter(g=>!g.hidden)),o=E(()=>f(a).filter(g=>g.fixed==="left"||g.fixed===!0)),r=E(()=>f(a).filter(g=>g.fixed==="right")),i=E(()=>f(a).filter(g=>!g.fixed)),l=E(()=>{const g=[];return f(o).forEach(b=>{g.push({...b,placeholderSign:sv})}),f(i).forEach(b=>{g.push(b)}),f(r).forEach(b=>{g.push({...b,placeholderSign:sv})}),g}),c=E(()=>f(o).length||f(r).length),u=E(()=>f(s).reduce((g,b)=>(g[b.key]=Bfe(b,f(n),e.fixed),g),{})),d=E(()=>f(a).reduce((g,b)=>g+b.width,0)),h=g=>f(s).find(b=>b.key===g),p=g=>f(u)[g],v=(g,b)=>{g.width=b};function m(g){var b;const{key:C}=g.currentTarget.dataset;if(!C)return;const{sortState:w,sortBy:_}=e;let x=Iu.ASC;bt(w)?x=K6[w[C]]:x=K6[_.order],(b=e.onColumnSort)==null||b.call(e,{column:h(C),key:C,order:x})}return{columns:s,columnsStyles:u,columnsTotalWidth:d,fixedColumnsOnLeft:o,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:l,normalColumns:i,visibleColumns:a,getColumn:h,getColumnStyle:p,updateColumnWidth:v,onColumnSorted:m}}const zfe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:a})=>{const o=F({scrollLeft:0,scrollTop:0});function r(p){var v,m,g;const{scrollTop:b}=p;(v=t.value)==null||v.scrollTo(p),(m=n.value)==null||m.scrollToTop(b),(g=s.value)==null||g.scrollToTop(b)}function i(p){o.value=p,r(p)}function l(p){o.value.scrollTop=p,r(f(o))}function c(p){var v,m;o.value.scrollLeft=p,(m=(v=t.value)==null?void 0:v.scrollTo)==null||m.call(v,f(o))}function u(p){var v;i(p),(v=e.onScroll)==null||v.call(e,p)}function d({scrollTop:p}){const{scrollTop:v}=f(o);p!==v&&l(p)}function h(p,v="auto"){var m;(m=t.value)==null||m.scrollToRow(p,v)}return be(()=>f(o).scrollTop,(p,v)=>{p>v&&a()}),{scrollPos:o,scrollTo:i,scrollToLeft:c,scrollToTop:l,scrollToRow:h,onScroll:u,onVerticalScroll:d}},Hfe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,tableInstance:a,ns:o,isScrolling:r})=>{const i=Mt(),{emit:l}=i,c=bn(!1),u=F(e.defaultExpandedRowKeys||[]),d=F(-1),h=bn(null),p=F({}),v=F({}),m=bn({}),g=bn({}),b=bn({}),C=E(()=>at(e.estimatedRowHeight));function w(R){var $;($=e.onRowsRendered)==null||$.call(e,R),R.rowCacheEnd>f(d)&&(d.value=R.rowCacheEnd)}function _({hovered:R,rowKey:$}){if(r.value)return;a.vnode.el.querySelectorAll(`[rowkey="${String($)}"]`).forEach(U=>{R?U.classList.add(o.is("hovered")):U.classList.remove(o.is("hovered"))})}function x({expanded:R,rowData:$,rowIndex:M,rowKey:B}){var U,J;const Y=[...f(u)],L=Y.indexOf(B);R?L===-1&&Y.push(B):L>-1&&Y.splice(L,1),u.value=Y,l("update:expandedRowKeys",Y),(U=e.onRowExpand)==null||U.call(e,{expanded:R,rowData:$,rowIndex:M,rowKey:B}),(J=e.onExpandedRowsChange)==null||J.call(e,Y),a.vnode.el.querySelector(`.${o.is("hovered")}[rowkey="${String(B)}"]`)&&ze(()=>_({hovered:!0,rowKey:B}))}const k=Jr(()=>{var R,$,M,B;c.value=!0,p.value={...f(p),...f(v)},T(f(h),!1),v.value={},h.value=null,(R=t.value)==null||R.forceUpdate(),($=n.value)==null||$.forceUpdate(),(M=s.value)==null||M.forceUpdate(),(B=i.proxy)==null||B.$forceUpdate(),c.value=!1},0);function T(R,$=!1){f(C)&&[t,n,s].forEach(M=>{const B=f(M);B&&B.resetAfterRowIndex(R,$)})}function I(R,$,M){const B=f(h);(B===null||B>M)&&(h.value=M),v.value[R]=$}function O({rowKey:R,height:$,rowIndex:M},B){B?B===XT.RIGHT?b.value[R]=$:m.value[R]=$:g.value[R]=$;const U=Math.max(...[m,b,g].map(J=>J.value[R]||0));f(p)[R]!==U&&(I(R,U,M),k())}return{expandedRowKeys:u,lastRenderedRowIndex:d,isDynamic:C,isResetting:c,rowHeights:p,resetAfterIndex:T,onRowExpanded:x,onRowHovered:_,onRowsRendered:w,onRowHeightChange:O}},Wfe=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:s})=>{const a=F({}),o=E(()=>{const i={},{data:l,rowKey:c}=e,u=f(t);if(!u||!u.length)return l;const d=[],h=new Set;u.forEach(v=>h.add(v));let p=l.slice();for(p.forEach(v=>i[v[c]]=0);p.length>0;){const v=p.shift();d.push(v),h.has(v[c])&&Ae(v.children)&&v.children.length>0&&(p=[...v.children,...p],v.children.forEach(m=>i[m[c]]=i[v[c]]+1))}return a.value=i,d}),r=E(()=>{const{data:i,expandColumnKey:l}=e;return l?f(o):i});return be(r,(i,l)=>{i!==l&&(n.value=-1,s(0,!0))}),{data:r,depthMap:a}},jfe=(e,t)=>e+t,A1=e=>Ae(e)?e.reduce(jfe,0):e,Ou=(e,t,n={})=>Ze(e)?e(t):e??n,pc=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=On(e[t])}),e),JT=e=>vn(e)?t=>ut(e,t):e,Kfe=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:s,fixedColumnsOnRight:a})=>{const o=E(()=>{const{fixed:b,width:C,vScrollbarSize:w}=e,_=C-w;return b?Math.max(Math.round(f(t)),_):_}),r=E(()=>{const{height:b=0,maxHeight:C=0,footerHeight:w,hScrollbarSize:_}=e;if(C>0){const x=f(h),k=f(n),I=f(d)+x+k+_;return Math.min(I,C-w)}return b-w}),i=E(()=>{const{maxHeight:b}=e,C=f(r);if(at(b)&&b>0)return C;const w=f(n)+f(d)+f(h);return Math.min(C,w)}),l=b=>b.width,c=E(()=>A1(f(s).map(l))),u=E(()=>A1(f(a).map(l))),d=E(()=>A1(e.headerHeight)),h=E(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),p=E(()=>f(r)-f(d)-f(h)),v=E(()=>{const{style:b={},height:C,width:w}=e;return pc({...b,height:C,width:w})}),m=E(()=>pc({height:e.footerHeight})),g=E(()=>({top:On(f(d)),bottom:On(e.footerHeight),width:On(e.width)}));return{bodyWidth:o,fixedTableHeight:i,mainTableHeight:r,leftTableWidth:c,rightTableWidth:u,windowHeight:p,footerHeight:m,emptyStyle:g,rootStyle:v,headerHeight:d}};function Ufe(e){const t=F(),n=F(),s=F(),{columns:a,columnsStyles:o,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:l,hasFixedColumns:c,mainColumns:u,onColumnSorted:d}=Vfe(e,sn(e,"columns"),sn(e,"fixed")),{scrollTo:h,scrollToLeft:p,scrollToTop:v,scrollToRow:m,onScroll:g,onVerticalScroll:b,scrollPos:C}=zfe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:ae}),w=Ee("table-v2"),_=Mt(),x=bn(!1),{expandedRowKeys:k,lastRenderedRowIndex:T,isDynamic:I,isResetting:O,rowHeights:R,resetAfterIndex:$,onRowExpanded:M,onRowHeightChange:B,onRowHovered:U,onRowsRendered:J}=Hfe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,tableInstance:_,ns:w,isScrolling:x}),{data:Y,depthMap:L}=Wfe(e,{expandedRowKeys:k,lastRenderedRowIndex:T,resetAfterIndex:$}),N=E(()=>{const{estimatedRowHeight:de,rowHeight:ye}=e,_e=f(Y);return at(de)?Object.values(f(R)).reduce((Se,Le)=>Se+Le,0):_e.length*ye}),{bodyWidth:V,fixedTableHeight:z,mainTableHeight:q,leftTableWidth:Q,rightTableWidth:K,windowHeight:ee,footerHeight:se,emptyStyle:pe,rootStyle:te,headerHeight:fe}=Kfe(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:l,rowsHeight:N}),ve=F(),ce=E(()=>{const de=f(Y).length===0;return Ae(e.fixedData)?e.fixedData.length===0&&de:de});function Z(de){const{estimatedRowHeight:ye,rowHeight:_e,rowKey:Se}=e;return ye?f(R)[f(Y)[de][Se]]||ye:_e}const H=F(!1);function ae(){const{onEndReached:de}=e;if(!de)return;const{scrollTop:ye}=f(C),_e=f(N),Se=f(ee),Le=_e-(ye+Se)+e.hScrollbarSize;!H.value&&f(T)>=0&&_e<=ye+f(q)-f(fe)?(H.value=!0,de(Le)):H.value=!1}return be(()=>f(N),()=>H.value=!1),be(()=>e.expandedRowKeys,de=>k.value=de,{deep:!0}),{columns:a,containerRef:ve,mainTableRef:t,leftTableRef:n,rightTableRef:s,isDynamic:I,isResetting:O,isScrolling:x,hasFixedColumns:c,columnsStyles:o,columnsTotalWidth:r,data:Y,expandedRowKeys:k,depthMap:L,fixedColumnsOnLeft:i,fixedColumnsOnRight:l,mainColumns:u,bodyWidth:V,emptyStyle:pe,rootStyle:te,footerHeight:se,mainTableHeight:q,fixedTableHeight:z,leftTableWidth:Q,rightTableWidth:K,showEmpty:ce,getRowHeight:Z,onColumnSorted:d,onRowHovered:U,onRowExpanded:M,onRowsRendered:J,onRowHeightChange:B,scrollTo:h,scrollToLeft:p,scrollToTop:v,scrollToRow:m,onScroll:g,onVerticalScroll:b}}const U6=Symbol("tableV2"),ZT="tableV2GridScrollLeft",QT=String,av={type:re(Array),required:!0},q6={type:re(Array)},eM={...q6,required:!0},qfe=String,tM={type:re(Array),default:()=>Ln([])},Lu={type:Number,required:!0},nM={type:re([String,Number,Symbol]),default:"id"},sM={type:re(Object)},Nu=Me({class:String,columns:av,columnsStyles:{type:re(Object),required:!0},depth:Number,expandColumnKey:qfe,estimatedRowHeight:{...Mu.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:re(Function)},onRowHover:{type:re(Function)},onRowHeightChange:{type:re(Function)},rowData:{type:re(Object),required:!0},rowEventHandlers:{type:re(Object)},rowIndex:{type:Number,required:!0},rowKey:nM,style:{type:re(Object)}}),G6={type:Number,required:!0},Y6=Me({class:String,columns:av,fixedHeaderData:{type:re(Array)},headerData:{type:re(Array),required:!0},headerHeight:{type:re([Number,Array]),default:50},rowWidth:G6,rowHeight:{type:Number,default:50},height:G6,width:G6}),T1=Me({columns:av,data:eM,fixedData:q6,estimatedRowHeight:Nu.estimatedRowHeight,width:Lu,height:Lu,headerWidth:Lu,headerHeight:Y6.headerHeight,bodyWidth:Lu,rowHeight:Lu,cache:nT.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Mu.scrollbarAlwaysOn,scrollbarStartGap:Mu.scrollbarStartGap,scrollbarEndGap:Mu.scrollbarEndGap,class:QT,style:sM,containerStyle:sM,getRowHeight:{type:re(Function),required:!0},rowKey:Nu.rowKey,onRowsRendered:{type:re(Function)},onScroll:{type:re(Function)}}),Gfe=Me({cache:T1.cache,estimatedRowHeight:Nu.estimatedRowHeight,rowKey:nM,headerClass:{type:re([String,Function])},headerProps:{type:re([Object,Function])},headerCellProps:{type:re([Object,Function])},headerHeight:Y6.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:re([String,Function])},rowProps:{type:re([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:re([Object,Function])},columns:av,data:eM,dataGetter:{type:re(Function)},fixedData:q6,expandColumnKey:Nu.expandColumnKey,expandedRowKeys:tM,defaultExpandedRowKeys:tM,class:QT,fixed:Boolean,style:{type:re(Object)},width:Lu,height:Lu,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Mu.hScrollbarSize,vScrollbarSize:Mu.vScrollbarSize,scrollbarAlwaysOn:oT.alwaysOn,sortBy:{type:re(Object),default:()=>({})},sortState:{type:re(Object),default:void 0},onColumnSort:{type:re(Function)},onExpandedRowsChange:{type:re(Function)},onEndReached:{type:re(Function)},onRowExpand:Nu.onRowExpand,onScroll:T1.onScroll,onRowsRendered:T1.onRowsRendered,rowEventHandlers:Nu.rowEventHandlers}),Yfe=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:s},a)=>{let o=null,r=0,i=0;const l=(u,d)=>{const h=u<0&&t.value||u>0&&e.value,p=d<0&&s.value||d>0&&n.value;return h||p};return{hasReachedEdge:l,onWheel:u=>{Yi(o);let d=u.deltaX,h=u.deltaY;Math.abs(d)>Math.abs(h)?h=0:d=0,u.shiftKey&&h!==0&&(d=h,h=0),!l(d,h)&&(r+=d,i+=h,u.preventDefault(),o=Zr(()=>{a(r,i),r=0,i=0}))}}},Xfe=(e,t,n,s,a,o,r)=>{const i=F(0),l=F(0);let c,u=0,d=0;const h=v=>{Yi(c),i.value=v.touches[0].clientX,l.value=v.touches[0].clientY,u=0,d=0},p=v=>{v.preventDefault(),Yi(c),u+=i.value-v.touches[0].clientX,d+=l.value-v.touches[0].clientY,i.value=v.touches[0].clientX,l.value=v.touches[0].clientY,c=Zr(()=>{const m=s.value-f(o),g=a.value-f(r),b=Math.min(t.value.scrollLeft+u,m),C=Math.min(t.value.scrollTop+d,g);n({scrollLeft:b,scrollTop:C}),u=0,d=0})};return an(e,"touchstart",h,{passive:!0}),an(e,"touchmove",p,{passive:!1}),{touchStartX:i,touchStartY:l,handleTouchStart:h,handleTouchMove:p}},aM=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:s,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:o,getEstimatedTotalWidth:r,getColumnOffset:i,getRowOffset:l,getRowPosition:c,getRowStartIndexForOffset:u,getRowStopIndexForStartIndex:d,initCache:h,injectToInstance:p,validateProps:v})=>j({name:e??"ElVirtualList",props:Mu,emits:[p1,v1],setup(m,{emit:g,expose:b,slots:C}){const w=Ee("vl");v(m);const _=Mt(),x=F(h(m,_));p==null||p(_,x);const k=F(),T=F(),I=F(),O=F(),R=F({isScrolling:!1,scrollLeft:at(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:at(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Kf,yAxisScrollDir:Kf}),$=JA(),M=E(()=>Number.parseInt(`${m.height}`,10)),B=E(()=>Number.parseInt(`${m.width}`,10)),U=E(()=>{const{totalColumn:Ce,totalRow:Oe,columnCache:Ie}=m,{isScrolling:We,xAxisScrollDir:nt,scrollLeft:dt}=f(R);if(Ce===0||Oe===0)return[0,0,0,0];const Fe=s(m,dt,f(x)),Be=a(m,Fe,dt,f(x)),et=!We||nt===m1?Math.max(1,Ie):1,Wt=!We||nt===Kf?Math.max(1,Ie):1;return[Math.max(0,Fe-et),Math.max(0,Math.min(Ce-1,Be+Wt)),Fe,Be]}),J=E(()=>{const{totalColumn:Ce,totalRow:Oe,rowCache:Ie}=m,{isScrolling:We,yAxisScrollDir:nt,scrollTop:dt}=f(R);if(Ce===0||Oe===0)return[0,0,0,0];const Fe=u(m,dt,f(x)),Be=d(m,Fe,dt,f(x)),et=!We||nt===m1?Math.max(1,Ie):1,Wt=!We||nt===Kf?Math.max(1,Ie):1;return[Math.max(0,Fe-et),Math.max(0,Math.min(Oe-1,Be+Wt)),Fe,Be]}),Y=E(()=>o(m,f(x))),L=E(()=>r(m,f(x))),N=E(()=>{var Ce;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:at(m.height)?`${m.height}px`:m.height,width:at(m.width)?`${m.width}px`:m.width},(Ce=m.style)!=null?Ce:{}]}),V=E(()=>{const Ce=`${f(L)}px`;return{height:`${f(Y)}px`,pointerEvents:f(R).isScrolling?"none":void 0,width:Ce,margin:0,boxSizing:"border-box"}}),z=()=>{const{totalColumn:Ce,totalRow:Oe}=m;if(Ce>0&&Oe>0){const[Be,et,Wt,qt]=f(U),[ct,gt,Ot,xe]=f(J);g(p1,{columnCacheStart:Be,columnCacheEnd:et,rowCacheStart:ct,rowCacheEnd:gt,columnVisibleStart:Wt,columnVisibleEnd:qt,rowVisibleStart:Ot,rowVisibleEnd:xe})}const{scrollLeft:Ie,scrollTop:We,updateRequested:nt,xAxisScrollDir:dt,yAxisScrollDir:Fe}=f(R);g(v1,{xAxisScrollDir:dt,scrollLeft:Ie,yAxisScrollDir:Fe,scrollTop:We,updateRequested:nt})},q=Ce=>{const{clientHeight:Oe,clientWidth:Ie,scrollHeight:We,scrollLeft:nt,scrollTop:dt,scrollWidth:Fe}=Ce.currentTarget,Be=f(R);if(Be.scrollTop===dt&&Be.scrollLeft===nt)return;let et=nt;if(rT(m.direction))switch(y1()){case ev:et=-nt;break;case w6:et=Fe-Ie-nt;break}R.value={...Be,isScrolling:!0,scrollLeft:et,scrollTop:Math.max(0,Math.min(dt,We-Oe)),updateRequested:!0,xAxisScrollDir:Pu(Be.scrollLeft,et),yAxisScrollDir:Pu(Be.scrollTop,dt)},ze(()=>H()),ae(),z()},Q=(Ce,Oe)=>{const Ie=f(M),We=(Y.value-Ie)/Oe*Ce;se({scrollTop:Math.min(Y.value-Ie,We)})},K=(Ce,Oe)=>{const Ie=f(B),We=(L.value-Ie)/Oe*Ce;se({scrollLeft:Math.min(L.value-Ie,We)})},{onWheel:ee}=Yfe({atXStartEdge:E(()=>R.value.scrollLeft<=0),atXEndEdge:E(()=>R.value.scrollLeft>=L.value-f(B)),atYStartEdge:E(()=>R.value.scrollTop<=0),atYEndEdge:E(()=>R.value.scrollTop>=Y.value-f(M))},(Ce,Oe)=>{var Ie,We,nt,dt;(We=(Ie=T.value)==null?void 0:Ie.onMouseUp)==null||We.call(Ie),(dt=(nt=I.value)==null?void 0:nt.onMouseUp)==null||dt.call(nt);const Fe=f(B),Be=f(M);se({scrollLeft:Math.min(R.value.scrollLeft+Ce,L.value-Fe),scrollTop:Math.min(R.value.scrollTop+Oe,Y.value-Be)})});an(k,"wheel",ee,{passive:!1});const se=({scrollLeft:Ce=R.value.scrollLeft,scrollTop:Oe=R.value.scrollTop})=>{Ce=Math.max(Ce,0),Oe=Math.max(Oe,0);const Ie=f(R);Oe===Ie.scrollTop&&Ce===Ie.scrollLeft||(R.value={...Ie,xAxisScrollDir:Pu(Ie.scrollLeft,Ce),yAxisScrollDir:Pu(Ie.scrollTop,Oe),scrollLeft:Ce,scrollTop:Oe,updateRequested:!0},ze(()=>H()),ae(),z())},{touchStartX:pe,touchStartY:te,handleTouchStart:fe,handleTouchMove:ve}=Xfe(k,R,se,L,Y,B,M),ce=(Ce=0,Oe=0,Ie=Ho)=>{const We=f(R);Oe=Math.max(0,Math.min(Oe,m.totalColumn-1)),Ce=Math.max(0,Math.min(Ce,m.totalRow-1));const nt=Bx(w.namespace.value),dt=f(x),Fe=o(m,dt),Be=r(m,dt);se({scrollLeft:i(m,Oe,Ie,We.scrollLeft,dt,Be>m.width?nt:0),scrollTop:l(m,Ce,Ie,We.scrollTop,dt,Fe>m.height?nt:0)})},Z=(Ce,Oe)=>{const{columnWidth:Ie,direction:We,rowHeight:nt}=m,dt=$.value(t&&Ie,t&&nt,t&&We),Fe=`${Ce},${Oe}`;if(Gt(dt,Fe))return dt[Fe];{const[,Be]=n(m,Oe,f(x)),et=f(x),Wt=rT(We),[qt,ct]=c(m,Ce,et),[gt]=n(m,Oe,et);return dt[Fe]={position:"absolute",left:Wt?void 0:`${Be}px`,right:Wt?`${Be}px`:void 0,top:`${ct}px`,height:`${qt}px`,width:`${gt}px`},dt[Fe]}},H=()=>{R.value.isScrolling=!1,ze(()=>{$.value(-1,null,null)})};Pt(()=>{if(!Xt)return;const{initScrollLeft:Ce,initScrollTop:Oe}=m,Ie=f(k);Ie&&(at(Ce)&&(Ie.scrollLeft=Ce),at(Oe)&&(Ie.scrollTop=Oe)),z()});const ae=()=>{const{direction:Ce}=m,{scrollLeft:Oe,scrollTop:Ie,updateRequested:We}=f(R),nt=f(k);if(We&&nt){if(Ce===qf)switch(y1()){case ev:{nt.scrollLeft=-Oe;break}case y6:{nt.scrollLeft=Oe;break}default:{const{clientWidth:dt,scrollWidth:Fe}=nt;nt.scrollLeft=Fe-dt-Oe;break}}else nt.scrollLeft=Math.max(0,Oe);nt.scrollTop=Math.max(0,Ie)}},{resetAfterColumnIndex:de,resetAfterRowIndex:ye,resetAfter:_e}=_.proxy;b({windowRef:k,innerRef:O,getItemStyleCache:$,touchStartX:pe,touchStartY:te,handleTouchStart:fe,handleTouchMove:ve,scrollTo:se,scrollToItem:ce,states:R,resetAfterColumnIndex:de,resetAfterRowIndex:ye,resetAfter:_e});const Se=()=>{const{scrollbarAlwaysOn:Ce,scrollbarStartGap:Oe,scrollbarEndGap:Ie,totalColumn:We,totalRow:nt}=m,dt=f(B),Fe=f(M),Be=f(L),et=f(Y),{scrollLeft:Wt,scrollTop:qt}=f(R),ct=ut(E6,{ref:T,alwaysOn:Ce,startGap:Oe,endGap:Ie,class:w.e("horizontal"),clientSize:dt,layout:"horizontal",onScroll:K,ratio:dt*100/Be,scrollFrom:Wt/(Be-dt),total:nt,visible:!0}),gt=ut(E6,{ref:I,alwaysOn:Ce,startGap:Oe,endGap:Ie,class:w.e("vertical"),clientSize:Fe,layout:"vertical",onScroll:Q,ratio:Fe*100/et,scrollFrom:qt/(et-Fe),total:We,visible:!0});return{horizontalScrollbar:ct,verticalScrollbar:gt}},Le=()=>{var Ce;const[Oe,Ie]=f(U),[We,nt]=f(J),{data:dt,totalColumn:Fe,totalRow:Be,useIsScrolling:et,itemKey:Wt}=m,qt=[];if(Be>0&&Fe>0)for(let ct=We;ct<=nt;ct++)for(let gt=Oe;gt<=Ie;gt++){const Ot=Wt({columnIndex:gt,data:dt,rowIndex:ct});qt.push(ut(He,{key:Ot},(Ce=C.default)==null?void 0:Ce.call(C,{columnIndex:gt,data:dt,isScrolling:et?f(R).isScrolling:void 0,style:Z(ct,gt),rowIndex:ct})))}return qt},De=()=>{const Ce=kt(m.innerElement),Oe=Le();return[ut(Ce,Tt(m.innerProps,{style:f(V),ref:O}),Xe(Ce)?Oe:{default:()=>Oe})]};return()=>{const Ce=kt(m.containerElement),{horizontalScrollbar:Oe,verticalScrollbar:Ie}=Se(),We=De();return ut("div",{key:0,class:w.e("wrapper"),role:m.role},[ut(Ce,{class:m.className,style:f(N),onScroll:q,ref:k},Xe(Ce)?We:{default:()=>We}),Oe,Ie])}}}),{max:M1,min:oM,floor:rM}=Math,Jfe={column:"columnWidth",row:"rowHeight"},X6={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},il=(e,t,n,s)=>{const[a,o,r]=[n[s],e[Jfe[s]],n[X6[s]]];if(t>r){let i=0;if(r>=0){const l=a[r];i=l.offset+l.size}for(let l=r+1;l<=t;l++){const c=o(l);a[l]={offset:i,size:c},i+=c}n[X6[s]]=t}return a[t]},iM=(e,t,n,s,a,o)=>{for(;n<=s;){const r=n+rM((s-n)/2),i=il(e,r,t,o).offset;if(i===a)return r;i{const o=a==="column"?e.totalColumn:e.totalRow;let r=1;for(;n{const[a,o]=[t[s],t[X6[s]]];return(o>0?a[o].offset:0)>=n?iM(e,t,0,o,n,s):Zfe(e,t,M1(0,o),n,s)},cM=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:s})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const i=s[n];a=i.offset+i.size}const r=(e-n-1)*t;return a+r},uM=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:s})=>{let a=0;if(s>e&&(s=e-1),s>=0){const i=t[s];a=i.offset+i.size}const r=(e-s-1)*n;return a+r},Qfe={column:uM,row:cM},dM=(e,t,n,s,a,o,r)=>{const[i,l]=[o==="row"?e.height:e.width,Qfe[o]],c=il(e,t,a,o),u=l(e,a),d=M1(0,oM(u-i,c.offset)),h=M1(0,c.offset-i+r+c.size);switch(n===g1&&(s>=h-i&&s<=d+i?n=Ho:n=ii),n){case Zp:return d;case Qp:return h;case ii:return Math.round(h+(d-h)/2);case Ho:default:return s>=h&&s<=d?s:h>d||s{const s=il(e,t,n,"column");return[s.size,s.offset]},getRowPosition:(e,t,n)=>{const s=il(e,t,n,"row");return[s.size,s.offset]},getColumnOffset:(e,t,n,s,a,o)=>dM(e,t,n,s,a,"column",o),getRowOffset:(e,t,n,s,a,o)=>dM(e,t,n,s,a,"row",o),getColumnStartIndexForOffset:(e,t,n)=>lM(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,s)=>{const a=il(e,t,s,"column"),o=n+e.width;let r=a.offset+a.size,i=t;for(;ilM(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,s)=>{const{totalRow:a,height:o}=e,r=il(e,t,s,"row"),i=n+o;let l=r.size+r.offset,c=t;for(;c{const n=({columnIndex:o,rowIndex:r},i)=>{var l,c;i=Ht(i)?!0:i,at(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),at(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),i&&((c=e.proxy)==null||c.$forceUpdate())},s=(o,r)=>{n({columnIndex:o},r)},a=(o,r)=>{n({rowIndex:o},r)};Object.assign(e.proxy,{resetAfterColumnIndex:s,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=b6,estimatedRowHeight:t=b6})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),the=aM({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},s,a,o,r,i)=>{n=Number(n);const l=Math.max(0,e*t-n),c=Math.min(l,s*t),u=Math.max(0,s*t-n+i+t);switch(a==="smart"&&(o>=u-n&&o<=c+n?a=Ho:a=ii),a){case Zp:return c;case Qp:return u;case ii:{const d=Math.round(u+(c-u)/2);return dl+Math.floor(n/2)?l:d}case Ho:default:return o>=u&&o<=c?o:u>c||o{t=Number(t);const l=Math.max(0,n*e-t),c=Math.min(l,s*e),u=Math.max(0,s*e-t+i+e);switch(a===g1&&(o>=u-t&&o<=c+t?a=Ho:a=ii),a){case Zp:return c;case Qp:return u;case ii:{const d=Math.round(u+(c-u)/2);return dl+Math.floor(t/2)?l:d}case Ho:default:return o>=u&&o<=c?o:u>c||oMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},s,a)=>{const o=s*e,r=Math.ceil((n+a-o)/e);return Math.max(0,Math.min(t-1,s+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},s,a)=>{const o=s*e,r=Math.ceil((n+a-o)/e);return Math.max(0,Math.min(t-1,s+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),nhe=j({name:"ElTableV2Header",props:Y6,setup(e,{slots:t,expose:n}){const s=Ee("table-v2"),a=Ke(ZT),o=F(),r=E(()=>pc({width:e.width,height:e.height})),i=E(()=>pc({width:e.rowWidth,height:e.height})),l=E(()=>As(f(e.headerHeight))),c=h=>{const p=f(o);ze(()=>{p!=null&&p.scroll&&p.scroll({left:h})})},u=()=>{const h=s.e("fixed-header-row"),{columns:p,fixedHeaderData:v,rowHeight:m}=e;return v==null?void 0:v.map((g,b)=>{var C;const w=pc({height:m,width:"100%"});return(C=t.fixed)==null?void 0:C.call(t,{class:h,columns:p,rowData:g,rowIndex:-(b+1),style:w})})},d=()=>{const h=s.e("dynamic-header-row"),{columns:p}=e;return f(l).map((v,m)=>{var g;const b=pc({width:"100%",height:v});return(g=t.dynamic)==null?void 0:g.call(t,{class:h,columns:p,headerIndex:m,style:b})})};return or(()=>{a!=null&&a.value&&c(a.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return W("div",{ref:o,class:e.class,style:f(r),role:"rowgroup"},[W("div",{style:f(i),class:s.e("header")},[d(),u()])])}}}),she="ElTableV2Grid",ahe=e=>{const t=F(),n=F(),s=F(0),a=E(()=>{const{data:g,rowHeight:b,estimatedRowHeight:C}=e;if(!C)return g.length*b}),o=E(()=>{const{fixedData:g,rowHeight:b}=e;return((g==null?void 0:g.length)||0)*b}),r=E(()=>A1(e.headerHeight)),i=E(()=>{const{height:g}=e;return Math.max(0,g-f(r)-f(o))}),l=E(()=>f(r)+f(o)>0),c=({data:g,rowIndex:b})=>g[b][e.rowKey];function u({rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:w}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:w})}function d(g,b){var C;(C=n.value)==null||C.resetAfterRowIndex(g,b)}function h(g,b){const C=f(t),w=f(n);bt(g)?(C==null||C.scrollToLeft(g.scrollLeft),s.value=g.scrollLeft,w==null||w.scrollTo(g)):(C==null||C.scrollToLeft(g),s.value=g,w==null||w.scrollTo({scrollLeft:g,scrollTop:b}))}function p(g){var b;(b=f(n))==null||b.scrollTo({scrollTop:g})}function v(g,b){const C=f(n);if(!C)return;const w=s.value;C.scrollToItem(g,0,b),w&&h({scrollLeft:w})}function m(){var g,b;(g=f(n))==null||g.$forceUpdate(),(b=f(t))==null||b.$forceUpdate()}return be(()=>e.bodyWidth,()=>{var g;at(e.estimatedRowHeight)&&((g=n.value)==null||g.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:m,fixedRowHeight:o,gridHeight:i,hasHeader:l,headerHeight:r,headerRef:t,totalHeight:a,itemKey:c,onItemRendered:u,resetAfterRowIndex:d,scrollTo:h,scrollToTop:p,scrollToRow:v,scrollLeft:s}},J6=j({name:she,props:T1,setup(e,{slots:t,expose:n}){const{ns:s}=Ke(U6),{bodyRef:a,fixedRowHeight:o,gridHeight:r,hasHeader:i,headerRef:l,headerHeight:c,totalHeight:u,forceUpdate:d,itemKey:h,onItemRendered:p,resetAfterRowIndex:v,scrollTo:m,scrollToTop:g,scrollToRow:b,scrollLeft:C}=ahe(e);Nt(ZT,C),U0(async()=>{var _;await ze();const x=(_=a.value)==null?void 0:_.states.scrollTop;x&&g(Math.round(x)+1)}),n({forceUpdate:d,totalHeight:u,scrollTo:m,scrollToTop:g,scrollToRow:b,resetAfterRowIndex:v});const w=()=>e.bodyWidth;return()=>{const{cache:_,columns:x,data:k,fixedData:T,useIsScrolling:I,scrollbarAlwaysOn:O,scrollbarEndGap:R,scrollbarStartGap:$,style:M,rowHeight:B,bodyWidth:U,estimatedRowHeight:J,headerWidth:Y,height:L,width:N,getRowHeight:V,onScroll:z}=e,q=at(J),Q=q?ehe:the,K=f(c);return W("div",{role:"table",class:[s.e("table"),e.class],style:M},[W(Q,{ref:a,data:k,useIsScrolling:I,itemKey:h,columnCache:0,columnWidth:q?w:U,totalColumn:1,totalRow:k.length,rowCache:_,rowHeight:q?V:B,width:N,height:f(r),class:s.e("body"),role:"rowgroup",scrollbarStartGap:$,scrollbarEndGap:R,scrollbarAlwaysOn:O,onScroll:z,onItemRendered:p,perfMode:!1},{default:ee=>{var se;const pe=k[ee.rowIndex];return(se=t.row)==null?void 0:se.call(t,{...ee,columns:x,rowData:pe})}}),f(i)&&W(nhe,{ref:l,class:s.e("header-wrapper"),columns:x,headerData:k,headerHeight:e.headerHeight,fixedHeaderData:T,rowWidth:Y,rowHeight:B,width:N,height:Math.min(K+f(o),L)},{dynamic:t.header,fixed:t.row})])}}});function ohe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}const rhe=(e,{slots:t})=>{const{mainTableRef:n,...s}=e;return W(J6,Tt({ref:n},s),ohe(t)?t:{default:()=>[t]})};function ihe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}const lhe=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...s}=e;return W(J6,Tt({ref:n},s),ihe(t)?t:{default:()=>[t]})};function che(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}const uhe=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...s}=e;return W(J6,Tt({ref:n},s),che(t)?t:{default:()=>[t]})},dhe=e=>{const{isScrolling:t}=Ke(U6),n=F(!1),s=F(),a=E(()=>at(e.estimatedRowHeight)&&e.rowIndex>=0),o=(l=!1)=>{const c=f(s);if(!c)return;const{columns:u,onRowHeightChange:d,rowKey:h,rowIndex:p,style:v}=e,{height:m}=c.getBoundingClientRect();n.value=!0,ze(()=>{if(l||m!==Number.parseInt(v.height)){const g=u[0],b=(g==null?void 0:g.placeholderSign)===sv;d==null||d({rowKey:h,height:m,rowIndex:p},g&&!b&&g.fixed)}})},r=E(()=>{const{rowData:l,rowIndex:c,rowKey:u,onRowHover:d}=e,h=e.rowEventHandlers||{},p={};return Object.entries(h).forEach(([v,m])=>{Ze(m)&&(p[v]=g=>{m({event:g,rowData:l,rowIndex:c,rowKey:u})})}),d&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:m})=>{const g=p[v];p[v]=b=>{d({event:b,hovered:m,rowData:l,rowIndex:c,rowKey:u}),g==null||g(b)}}),p}),i=l=>{const{onRowExpand:c,rowData:u,rowIndex:d,rowKey:h}=e;c==null||c({expanded:l,rowData:u,rowIndex:d,rowKey:h})};return Pt(()=>{f(a)&&o(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:s,eventHandlers:r,onExpand:i}},fhe=j({name:"ElTableV2TableRow",props:Nu,setup(e,{expose:t,slots:n,attrs:s}){const{eventHandlers:a,isScrolling:o,measurable:r,measured:i,rowRef:l,onExpand:c}=dhe(e);return t({onExpand:c}),()=>{const{columns:u,columnsStyles:d,expandColumnKey:h,depth:p,rowData:v,rowIndex:m,style:g}=e;let b=u.map((C,w)=>{const _=Ae(v.children)&&v.children.length>0&&C.key===h;return n.cell({column:C,columns:u,columnIndex:w,depth:p,style:d[C.key],rowData:v,rowIndex:m,isScrolling:f(o),expandIconProps:_?{rowData:v,rowIndex:m,onExpand:c}:void 0})});if(n.row&&(b=n.row({cells:b.map(C=>Ae(C)&&C.length===1?C[0]:C),style:g,columns:u,depth:p,rowData:v,rowIndex:m,isScrolling:f(o)})),f(r)){const{height:C,...w}=g||{},_=f(i);return W("div",Tt({ref:l,class:e.class,style:_?g:w,role:"row"},s,f(a)),[b])}return W("div",Tt(s,{ref:l,class:e.class,style:g,role:"row"},f(a)),[b])}}});function hhe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}const phe=(e,{slots:t})=>{const{columns:n,columnsStyles:s,depthMap:a,expandColumnKey:o,expandedRowKeys:r,estimatedRowHeight:i,hasFixedColumns:l,rowData:c,rowIndex:u,style:d,isScrolling:h,rowProps:p,rowClass:v,rowKey:m,rowEventHandlers:g,ns:b,onRowHovered:C,onRowExpanded:w}=e,_=Ou(v,{columns:n,rowData:c,rowIndex:u},""),x=Ou(p,{columns:n,rowData:c,rowIndex:u}),k=c[m],T=a[k]||0,I=!!o,O=u<0,R=[b.e("row"),_,b.is("expanded",I&&r.includes(k)),b.is("fixed",!T&&O),b.is("customized",!!t.row),{[b.e(`row-depth-${T}`)]:I&&u>=0}],$=l?C:void 0,M={...x,columns:n,columnsStyles:s,class:R,depth:T,expandColumnKey:o,estimatedRowHeight:O?void 0:i,isScrolling:h,rowIndex:u,rowData:c,rowKey:k,rowEventHandlers:g,style:d};return W(fhe,Tt(M,{onRowExpand:w,onMouseenter:J=>{$==null||$({hovered:!0,rowKey:k,event:J,rowData:c,rowIndex:u})},onMouseleave:J=>{$==null||$({hovered:!1,rowKey:k,event:J,rowData:c,rowIndex:u})},rowkey:k}),hhe(t)?t:{default:()=>[t]})},Z6=(e,{slots:t})=>{var n;const{cellData:s,style:a}=e,o=((n=s==null?void 0:s.toString)==null?void 0:n.call(s))||"",r=ue(t,"default",e,()=>[o]);return W("div",{class:e.class,title:o,style:a},[r])};Z6.displayName="ElTableV2Cell",Z6.inheritAttrs=!1;const fM=e=>{const{expanded:t,expandable:n,onExpand:s,style:a,size:o,ariaLabel:r}=e,i={onClick:n?()=>s(!t):void 0,ariaLabel:r,ariaExpanded:t,class:e.class};return W("button",Tt(i,{type:"button"}),[W(Je,{size:o,style:a},{default:()=>[W(Ds,null,null)]})])};fM.inheritAttrs=!1;const Q6=({columns:e,column:t,columnIndex:n,depth:s,expandIconProps:a,isScrolling:o,rowData:r,rowIndex:i,style:l,expandedRowKeys:c,ns:u,t:d,cellProps:h,expandColumnKey:p,indentSize:v,iconSize:m,rowKey:g},{slots:b})=>{const C=pc(l);if(t.placeholderSign===sv)return W("div",{class:u.em("row-cell","placeholder"),style:C},null);const{cellRenderer:w,dataKey:_,dataGetter:x}=t,k=Ze(x)?x({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i}):Qn(r,_??""),T=Ou(h,{cellData:k,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:r}),I={class:u.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:k,isScrolling:o,rowData:r,rowIndex:i},O=JT(w),R=O?O(I):ue(b,"default",I,()=>[W(Z6,I,null)]),$=[u.e("row-cell"),t.class,t.align===nv.CENTER&&u.is("align-center"),t.align===nv.RIGHT&&u.is("align-right")],M=i>=0&&p&&t.key===p,B=i>=0&&c.includes(r[g]);let U;const J=`margin-inline-start: ${s*v}px;`;return M&&(bt(a)?U=W(fM,Tt(a,{class:[u.e("expand-icon"),u.is("expanded",B)],size:m,expanded:B,ariaLabel:d(B?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:J,expandable:!0}),null):U=W("div",{style:[J,`width: ${m}px; height: ${m}px;`].join(" ")},null)),W("div",Tt({class:$,style:C},T,{role:"cell"}),[U,R])};Q6.inheritAttrs=!1;const vhe=Me({class:String,columns:av,columnsStyles:{type:re(Object),required:!0},headerIndex:Number,style:{type:re(Object)}}),mhe=j({name:"ElTableV2HeaderRow",props:vhe,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:s,headerIndex:a,style:o}=e;let r=n.map((i,l)=>t.cell({columns:n,column:i,columnIndex:l,headerIndex:a,style:s[i.key]}));return t.header&&(r=t.header({cells:r.map(i=>Ae(i)&&i.length===1?i[0]:i),columns:n,headerIndex:a})),W("div",{class:e.class,style:o,role:"row"},[r])}}});function ghe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}const bhe=({columns:e,columnsStyles:t,headerIndex:n,style:s,headerClass:a,headerProps:o,ns:r},{slots:i})=>{const l={columns:e,headerIndex:n},c=[r.e("header-row"),Ou(a,l,""),r.is("customized",!!i.header)],u={...Ou(o,l),columnsStyles:t,class:c,columns:e,headerIndex:n,style:s};return W(mhe,u,ghe(i)?i:{default:()=>[i]})},e8=(e,{slots:t})=>ue(t,"default",e,()=>{var n,s;return[W("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(s=e.column)==null?void 0:s.title])]});e8.displayName="ElTableV2HeaderCell",e8.inheritAttrs=!1;const yhe=e=>{const{sortOrder:t}=e;return W("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[W(Je,{size:14},{default:()=>[t===Iu.ASC?W(u9,null,null):W(c9,null,null)]})])},hM=(e,{slots:t})=>{const{column:n,ns:s,t:a,style:o,onColumnSorted:r}=e,i=pc(o);if(n.placeholderSign===sv)return W("div",{class:s.em("header-row-cell","placeholder"),style:i},null);const{headerCellRenderer:l,headerClass:c,sortable:u}=n,d={...e,class:s.e("header-cell-text")},h=JT(l),p=h?h(d):ue(t,"default",d,()=>[W(e8,d,null)]),{sortBy:v,sortState:m,headerCellProps:g}=e;let b,C,w;if(m){const k=m[n.key];b=!!K6[k],C=b?k:Iu.ASC}else b=n.key===v.key,C=b?v.order:Iu.ASC;C===Iu.ASC?w="ascending":C===Iu.DESC?w="descending":w=void 0;const _=[s.e("header-cell"),Ou(c,e,""),n.align===nv.CENTER&&s.is("align-center"),n.align===nv.RIGHT&&s.is("align-right"),u&&s.is("sortable")],x={...Ou(g,e),onClick:n.sortable?r:void 0,ariaSort:u?w:void 0,class:_,style:i,"data-key":n.key};return W("div",Tt(x,{role:"columnheader"}),[p,u&&W(yhe,{class:[s.e("sort-icon"),b&&s.is("sorting")],sortOrder:C,ariaLabel:a("el.table.sortLabel",{column:n.title||""})},null)])},pM=(e,{slots:t})=>{var n;return W("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};pM.displayName="ElTableV2Footer";const vM=(e,{slots:t})=>{const n=ue(t,"default",{},()=>[W(AA,null,null)]);return W("div",{class:e.class,style:e.style},[n])};vM.displayName="ElTableV2Empty";const mM=(e,{slots:t})=>{var n;return W("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};mM.displayName="ElTableV2Overlay";function ov(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vn(e)}const whe=j({name:"ElTableV2",props:Gfe,setup(e,{slots:t,expose:n}){const s=Ee("table-v2"),{t:a}=Bt(),{columnsStyles:o,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,mainColumns:l,mainTableHeight:c,fixedTableHeight:u,leftTableWidth:d,rightTableWidth:h,data:p,depthMap:v,expandedRowKeys:m,hasFixedColumns:g,mainTableRef:b,leftTableRef:C,rightTableRef:w,isDynamic:_,isResetting:x,isScrolling:k,bodyWidth:T,emptyStyle:I,rootStyle:O,footerHeight:R,showEmpty:$,scrollTo:M,scrollToLeft:B,scrollToTop:U,scrollToRow:J,getRowHeight:Y,onColumnSorted:L,onRowHeightChange:N,onRowHovered:V,onRowExpanded:z,onRowsRendered:q,onScroll:Q,onVerticalScroll:K}=Ufe(e);return n({scrollTo:M,scrollToLeft:B,scrollToTop:U,scrollToRow:J}),Nt(U6,{ns:s,isResetting:x,isScrolling:k}),()=>{const{cache:ee,cellProps:se,estimatedRowHeight:pe,expandColumnKey:te,fixedData:fe,headerHeight:ve,headerClass:ce,headerProps:Z,headerCellProps:H,sortBy:ae,sortState:de,rowHeight:ye,rowClass:_e,rowEventHandlers:Se,rowKey:Le,rowProps:De,scrollbarAlwaysOn:$e,indentSize:Ce,iconSize:Oe,useIsScrolling:Ie,vScrollbarSize:We,width:nt}=e,dt=f(p),Fe={cache:ee,class:s.e("main"),columns:f(l),data:dt,fixedData:fe,estimatedRowHeight:pe,bodyWidth:f(T),headerHeight:ve,headerWidth:f(T),height:f(c),mainTableRef:b,rowKey:Le,rowHeight:ye,scrollbarAlwaysOn:$e,scrollbarStartGap:2,scrollbarEndGap:We,useIsScrolling:Ie,width:nt,getRowHeight:Y,onRowsRendered:q,onScroll:Q},Be=f(d),et=f(u),Wt={cache:ee,class:s.e("left"),columns:f(r),data:dt,fixedData:fe,estimatedRowHeight:pe,leftTableRef:C,rowHeight:ye,bodyWidth:Be,headerWidth:Be,headerHeight:ve,height:et,rowKey:Le,scrollbarAlwaysOn:$e,scrollbarStartGap:2,scrollbarEndGap:We,useIsScrolling:Ie,width:Be,getRowHeight:Y,onScroll:K},qt=f(h),ct={cache:ee,class:s.e("right"),columns:f(i),data:dt,fixedData:fe,estimatedRowHeight:pe,rightTableRef:w,rowHeight:ye,bodyWidth:qt,headerWidth:qt,headerHeight:ve,height:et,rowKey:Le,scrollbarAlwaysOn:$e,scrollbarStartGap:2,scrollbarEndGap:We,width:qt,style:`${s.cssVarName("table-scrollbar-size")}: ${We}px`,useIsScrolling:Ie,getRowHeight:Y,onScroll:K},gt=f(o),Ot={ns:s,depthMap:f(v),columnsStyles:gt,expandColumnKey:te,expandedRowKeys:f(m),estimatedRowHeight:pe,hasFixedColumns:f(g),rowProps:De,rowClass:_e,rowKey:Le,rowEventHandlers:Se,onRowHovered:V,onRowExpanded:z,onRowHeightChange:N},xe={cellProps:se,expandColumnKey:te,indentSize:Ce,iconSize:Oe,rowKey:Le,expandedRowKeys:f(m),ns:s,t:a},Ue={ns:s,headerClass:ce,headerProps:Z,columnsStyles:gt},we={ns:s,t:a,sortBy:ae,sortState:de,headerCellProps:H,onColumnSorted:L},Ye={row:Cn=>W(phe,Tt(Cn,Ot),{row:t.row,cell:xn=>{let Ve;return t.cell?W(Q6,Tt(xn,xe,{style:gt[xn.column.key]}),ov(Ve=t.cell(xn))?Ve:{default:()=>[Ve]}):W(Q6,Tt(xn,xe,{style:gt[xn.column.key]}),null)}}),header:Cn=>W(bhe,Tt(Cn,Ue),{header:t.header,cell:xn=>{let Ve;return t["header-cell"]?W(hM,Tt(xn,we,{style:gt[xn.column.key]}),ov(Ve=t["header-cell"](xn))?Ve:{default:()=>[Ve]}):W(hM,Tt(xn,we,{style:gt[xn.column.key]}),null)}})},At=[e.class,s.b(),s.e("root"),s.is("dynamic",f(_))],Jt={class:s.e("footer"),style:f(R)};return W("div",{class:At,style:f(O)},[W(rhe,Fe,ov(Ye)?Ye:{default:()=>[Ye]}),W(lhe,Wt,ov(Ye)?Ye:{default:()=>[Ye]}),W(uhe,ct,ov(Ye)?Ye:{default:()=>[Ye]}),t.footer&&W(pM,Jt,{default:t.footer}),f($)&&W(vM,{class:s.e("empty"),style:f(I)},{default:t.empty}),t.overlay&&W(mM,{class:s.e("overlay")},{default:t.overlay})])}}}),_he=Me({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:re(Function)}}),Che=e=>{const t=F(),n=F(0),s=F(0);let a;return Pt(()=>{a=En(t,([o])=>{const{width:r,height:i}=o.contentRect,{paddingLeft:l,paddingRight:c,paddingTop:u,paddingBottom:d}=getComputedStyle(o.target),h=Number.parseInt(l)||0,p=Number.parseInt(c)||0,v=Number.parseInt(u)||0,m=Number.parseInt(d)||0;n.value=r-h-p,s.value=i-v-m}).stop}),tn(()=>{a==null||a()}),be([n,s],([o,r])=>{var i;(i=e.onResize)==null||i.call(e,{width:o,height:r})}),{sizer:t,width:n,height:s}},She=j({name:"ElAutoResizer",props:_he,setup(e,{slots:t}){const n=Ee("auto-resizer"),{height:s,width:a,sizer:o}=Che(e),r={width:"100%",height:"100%"};return()=>{var i;return W("div",{ref:o,class:n.b(),style:r},[(i=t.default)==null?void 0:i.call(t,{height:s.value,width:a.value})])}}}),xhe=yt(whe),khe=yt(She),P1=Symbol("tabsRootContextKey"),Ehe=Me({tabs:{type:re(Array),default:()=>Ln([])},tabRefs:{type:re(Object),default:()=>Ln({})}}),gM="ElTabBar";var Ahe=j({name:gM,__name:"tab-bar",props:Ehe,setup(e,{expose:t}){const n=e,s=Ke(P1);s||es(gM,"");const a=Ee("tabs"),o=F(),r=F(),i=E(()=>{var p;return Ht(s.props.defaultValue)||!!((p=r.value)!=null&&p.transform)}),l=()=>{let p=0,v=0;const m=["top","bottom"].includes(s.props.tabPosition)?"width":"height",g=m==="width"?"x":"y",b=g==="x"?"left":"top";return n.tabs.every(C=>{if(Ht(C.paneName))return!1;const w=n.tabRefs[C.paneName];if(!w)return!1;if(!C.active)return!0;p=w[`offset${cc(b)}`],v=w[`client${cc(m)}`];const _=window.getComputedStyle(w);return m==="width"&&(v-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight),p+=Number.parseFloat(_.paddingLeft)),!1}),{[m]:`${v}px`,transform:`translate${cc(g)}(${p}px)`}},c=()=>r.value=l(),u=[],d=()=>{u.forEach(p=>p.stop()),u.length=0,Object.values(n.tabRefs).forEach(p=>{u.push(En(p,c))})};be(()=>n.tabs,async()=>{await ze(),c(),d()},{immediate:!0});const h=En(o,()=>c());return tn(()=>{u.forEach(p=>p.stop()),u.length=0,h.stop()}),t({ref:o,update:c}),(p,v)=>i.value?(S(),P("div",{key:0,ref_key:"barRef",ref:o,class:D([f(a).e("active-bar"),f(a).is(f(s).props.tabPosition)]),style:Qe(r.value)},null,6)):ie("v-if",!0)}});const The=Me({panes:{type:re(Array),default:()=>Ln([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),Mhe={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},bM="ElTabNav",Phe=j({name:bM,props:The,emits:Mhe,setup(e,{expose:t,emit:n}){const s=Ke(P1);s||es(bM,"");const a=Ee("tabs"),o=XV(),r=ZV(),i=F(),l=F(),c=F(),u=F({}),d=F(),h=F(!1),p=F(0),v=F(!1),m=F(!0),g=bn(),b=E(()=>["top","bottom"].includes(s.props.tabPosition)),C=E(()=>b.value?"width":"height"),w=E(()=>({transform:`translate${C.value==="width"?"X":"Y"}(-${p.value}px)`})),{width:_,height:x}=Oy(i),{width:k,height:T}=Oy(l,{width:0,height:0},{box:"border-box"}),I=E(()=>b.value?_.value:x.value),O=E(()=>b.value?k.value:T.value),{onWheel:R}=QA({atStartEdge:E(()=>p.value<=0),atEndEdge:E(()=>O.value-p.value<=I.value),layout:E(()=>b.value?"horizontal":"vertical")},z=>{p.value=yu(p.value+z,0,O.value-I.value)}),$=()=>{if(!i.value)return;const z=i.value[`offset${cc(C.value)}`],q=p.value;if(!q)return;const Q=q>z?q-z:0;p.value=Q},M=()=>{if(!i.value||!l.value)return;const z=l.value[`offset${cc(C.value)}`],q=i.value[`offset${cc(C.value)}`],Q=p.value;if(z-Q<=q)return;const K=z-Q>q*2?Q+q:z-q;p.value=K},B=async()=>{const z=l.value;if(!h.value||!c.value||!i.value||!z)return;await ze();const q=u.value[e.currentName];if(!q)return;const Q=i.value,K=q.getBoundingClientRect(),ee=Q.getBoundingClientRect(),se=b.value?z.offsetWidth-ee.width:z.offsetHeight-ee.height,pe=p.value;let te=pe;b.value?(K.leftee.right&&(te=pe+K.right-ee.right)):(K.topee.bottom&&(te=pe+(K.bottom-ee.bottom))),te=Math.max(te,0),p.value=Math.min(te,se)},U=()=>{var z;if(!l.value||!i.value)return;e.stretch&&((z=d.value)==null||z.update());const q=l.value[`offset${cc(C.value)}`],Q=i.value[`offset${cc(C.value)}`],K=p.value;Q0&&(p.value=0))},J=z=>{const q=un(z);let Q=0;switch(q){case Te.left:case Te.up:Q=-1;break;case Te.right:case Te.down:Q=1;break;default:return}const K=Array.from(z.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let se=K.indexOf(z.target)+Q;se<0?se=K.length-1:se>=K.length&&(se=0),K[se].focus({preventScroll:!0}),K[se].click(),Y()},Y=()=>{m.value&&(v.value=!0)},L=()=>v.value=!1,N=(z,q)=>{u.value[q]=z},V=async()=>{await ze();const z=u.value[e.currentName];z==null||z.focus({preventScroll:!0})};return be(o,z=>{z==="hidden"?m.value=!1:z==="visible"&&setTimeout(()=>m.value=!0,50)}),be(r,z=>{z?setTimeout(()=>m.value=!0,50):m.value=!1}),En(c,()=>{Zr(U)}),Pt(()=>setTimeout(()=>B(),0)),or(()=>U()),t({scrollToActiveTab:B,removeFocus:L,focusActiveTab:V,tabListRef:l,tabBarRef:d,scheduleRender:()=>D2(g)}),()=>{const z=h.value?[W("span",{class:[a.e("nav-prev"),a.is("disabled",!h.value.prev)],onClick:$},[W(Je,null,{default:()=>[W($o,null,null)]})]),W("span",{class:[a.e("nav-next"),a.is("disabled",!h.value.next)],onClick:M},[W(Je,null,{default:()=>[W(Ds,null,null)]})])]:null,q=e.panes.map((Q,K)=>{var ee,se,pe,te,fe;const ve=Q.uid,ce=Q.props.disabled,Z=(se=(ee=Q.props.name)!=null?ee:Q.index)!=null?se:`${K}`,H=!ce&&(Q.isClosable||Q.props.closable!==!1&&e.editable);Q.index=`${K}`;const ae=H?W(Je,{class:"is-icon-close",onClick:_e=>n("tabRemove",Q,_e)},{default:()=>[W(Ua,null,null)]}):null,de=((te=(pe=Q.slots).label)==null?void 0:te.call(pe))||Q.props.label,ye=!ce&&Q.active?(fe=e.tabindex)!=null?fe:s.props.tabindex:-1;return W("div",{ref:_e=>N(_e,Z),class:[a.e("item"),a.is(s.props.tabPosition),a.is("active",Q.active),a.is("disabled",ce),a.is("closable",H),a.is("focus",v.value)],id:`tab-${Z}`,key:`tab-${ve}`,"aria-controls":`pane-${Z}`,role:"tab","aria-selected":Q.active,tabindex:ye,onFocus:()=>Y(),onBlur:()=>L(),onClick:_e=>{L(),n("tabClick",Q,Z,_e)},onKeydown:_e=>{const Se=un(_e);H&&(Se===Te.delete||Se===Te.backspace)&&n("tabRemove",Q,_e)}},[de,ae])});return g.value,W("div",{ref:c,class:[a.e("nav-wrap"),a.is("scrollable",!!h.value),a.is(s.props.tabPosition)]},[z,W("div",{class:a.e("nav-scroll"),ref:i},[e.panes.length>0?W("div",{class:[a.e("nav"),a.is(s.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(s.props.tabPosition))],ref:l,style:w.value,role:"tablist",onKeydown:J,onWheel:R},[e.type?null:W(Ahe,{ref:d,tabs:[...e.panes],tabRefs:u.value},null),q]):null])])}}}),Rhe=Me({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:re(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),t8=e=>Xe(e)||at(e),Ihe={[mt]:e=>t8(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>t8(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>t8(e),tabAdd:()=>!0},Ohe=j({name:"ElTabs",props:Rhe,emits:Ihe,setup(e,{emit:t,slots:n,expose:s}){var a;const o=Ee("tabs"),r=E(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:l,removeChild:c,ChildrenSorter:u}=Gg(Mt(),"ElTabPane"),d=F(),h=F((a=Ht(e.modelValue)?e.defaultValue:e.modelValue)!=null?a:"0"),p=async(w,_=!1)=>{var x,k,T,I;if(!(h.value===w||Ht(w)))try{let O;if(e.beforeLeave){const R=e.beforeLeave(w,h.value);O=R instanceof Promise?await R:R}else O=!0;if(O!==!1){const R=(x=i.value.find($=>$.paneName===h.value))==null?void 0:x.isFocusInsidePane();h.value=w,_&&(t(mt,w),t("tabChange",w)),(T=(k=d.value)==null?void 0:k.removeFocus)==null||T.call(k),R&&((I=d.value)==null||I.focusActiveTab())}}catch{}},v=(w,_,x)=>{w.props.disabled||(t("tabClick",w,x),p(_,!0))},m=(w,_)=>{w.props.disabled||Ht(w.props.name)||(_.stopPropagation(),t("edit",w.props.name,"remove"),t("tabRemove",w.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")},b=w=>{const _=un(w);[Te.enter,Te.numpadEnter].includes(_)&&g()},C=w=>{const _=w.el.firstChild,x=["bottom","right"].includes(e.tabPosition)?w.children[0].el:w.children[1].el;_!==x&&_.before(x)};return be(()=>e.modelValue,w=>p(w)),be(h,async()=>{var w;await ze(),(w=d.value)==null||w.scrollToActiveTab()}),Nt(P1,{props:e,currentName:h,registerPane:l,unregisterPane:c,nav$:d}),s({currentName:h,get tabNavRef(){return pp(d.value,["scheduleRender"])}}),()=>{const w=n["add-icon"],_=e.editable||e.addable?W("div",{class:[o.e("new-tab"),r.value&&o.e("new-tab-vertical")],tabindex:e.tabindex,onClick:g,onKeydown:b},[w?ue(n,"add-icon"):W(Je,{class:o.is("icon-plus")},{default:()=>[W(Wy,null,null)]})]):null,x=()=>W(Phe,{ref:d,currentName:h.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:v,onTabRemove:m},null),k=W("div",{class:[o.e("header"),r.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[W(u,null,{default:x,$stable:!0}),_]),T=W("div",{class:o.e("content")},[ue(n,"default")]);return W("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:C,onVnodeUpdated:C},[T,k])}}}),Lhe=Me({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),Nhe=["id","aria-hidden","aria-labelledby"],yM="ElTabPane";var wM=j({name:yM,__name:"tab-pane",props:Lhe,setup(e){const t=e,n=Mt(),s=jn(),a=Ke(P1);a||es(yM,"usage: ");const o=Ee("tab-pane"),r=F(),i=F(),l=E(()=>{var m;return(m=t.closable)!=null?m:a.props.closable}),c=E(()=>{var m;return a.currentName.value===((m=t.name)!=null?m:i.value)}),u=F(c.value),d=E(()=>{var m;return(m=t.name)!=null?m:i.value}),h=E(()=>!t.lazy||u.value||c.value),p=()=>{var m;return(m=r.value)==null?void 0:m.contains(document.activeElement)};be(c,m=>{m&&(u.value=!0)});const v=Yt({uid:n.uid,getVnode:()=>n.vnode,slots:s,props:t,paneName:d,active:c,index:i,isClosable:l,isFocusInsidePane:p});return a.registerPane(v),tn(()=>{a.unregisterPane(v)}),$4(()=>{var m;s.label&&((m=a.nav$.value)==null||m.scheduleRender())}),(m,g)=>h.value?Ct((S(),P("div",{key:0,id:`pane-${d.value}`,ref_key:"paneRef",ref:r,class:D(f(o).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${d.value}`},[ue(m.$slots,"default")],10,Nhe)),[[jt,c.value]]):ie("v-if",!0)}});const $he=yt(Ohe,{TabPane:wM}),Dhe=Pn(wM),Fhe=Me({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:fr,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});var Bhe=j({name:"ElText",__name:"text",props:Fhe,setup(e){const t=e,n=F(),s=rs(),a=Ee("text"),o=E(()=>[a.b(),a.m(t.type),a.m(s.value),a.is("truncated",t.truncated),a.is("line-clamp",!Ht(t.lineClamp))]),r=()=>{var i,l,c,u,d,h,p;if(zi().title)return;let m=!1;const g=((i=n.value)==null?void 0:i.textContent)||"";if(t.truncated){const b=(l=n.value)==null?void 0:l.offsetWidth,C=(c=n.value)==null?void 0:c.scrollWidth;b&&C&&C>b&&(m=!0)}else if(!Ht(t.lineClamp)){const b=(u=n.value)==null?void 0:u.offsetHeight,C=(d=n.value)==null?void 0:d.scrollHeight;b&&C&&C>b&&(m=!0)}m?(h=n.value)==null||h.setAttribute("title",g):(p=n.value)==null||p.removeAttribute("title")};return Pt(r),or(r),(i,l)=>(S(),le(kt(e.tag),{ref_key:"textRef",ref:n,class:D(o.value),style:Qe({"-webkit-line-clamp":e.lineClamp})},{default:X(()=>[ue(i.$slots,"default")]),_:3},8,["class","style"]))}});const n8=yt(Bhe),Vhe=Me({format:{type:String,default:"HH:mm"},modelValue:{type:re(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:re(String),default:"light"},clearable:{type:Boolean,default:!0},size:ds,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:re(String)},maxTime:{type:re(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:re([String,Object]),default:()=>By},clearIcon:{type:re([String,Object]),default:()=>Do},popperClass:{type:String,default:""},popperStyle:{type:re([String,Object])},...Cu}),ll=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const s=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:s}}return null},s8=(e,t)=>{const n=ll(e);if(!n)return-1;const s=ll(t);if(!s)return-1;const a=n.minutes+n.hours*60,o=s.minutes+s.hours*60;return a===o?0:a>o?1:-1},_M=e=>`${e}`.padStart(2,"0"),Zf=e=>`${_M(e.hours)}:${_M(e.minutes)}`,zhe=(e,t)=>{const n=ll(e);if(!n)return"";const s=ll(t);if(!s)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=s.minutes,a.hours+=s.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,Zf(a)};var Hhe=j({name:"ElTimeSelect",__name:"time-select",props:Vhe,emits:[Dt,"blur","focus","clear",mt],setup(e,{expose:t}){wt.extend(z3);const{Option:n}=fc,s=e,a=Ee("input"),o=F(),r=Nn(),{lang:i}=Bt(),l=E(()=>s.modelValue),c=E(()=>{const b=ll(s.start);return b?Zf(b):null}),u=E(()=>{const b=ll(s.end);return b?Zf(b):null}),d=E(()=>{const b=ll(s.step);return b?Zf(b):null}),h=E(()=>{const b=ll(s.minTime||"");return b?Zf(b):null}),p=E(()=>{const b=ll(s.maxTime||"");return b?Zf(b):null}),v=E(()=>{var b;const C=[],w=(_,x)=>{C.push({value:_,disabled:s8(x,h.value||"-1:-1")<=0||s8(x,p.value||"100:100")>=0})};if(s.start&&s.end&&s.step){let _=c.value,x;for(;_&&u.value&&s8(_,u.value)<=0;)x=wt(_,"HH:mm").locale(i.value).format(s.format),w(x,_),_=zhe(_,d.value);if(s.includeEndTime&&u.value&&((b=C[C.length-1])==null?void 0:b.value)!==u.value){const k=wt(u.value,"HH:mm").locale(i.value).format(s.format);w(k,u.value)}}return C});return t({blur:()=>{var b,C;(C=(b=o.value)==null?void 0:b.blur)==null||C.call(b)},focus:()=>{var b,C;(C=(b=o.value)==null?void 0:b.focus)==null||C.call(b)}}),(b,C)=>(S(),le(f(fc),{ref_key:"select",ref:o,"model-value":l.value,disabled:f(r),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"popper-class":e.popperClass,"popper-style":e.popperStyle,"onUpdate:modelValue":C[0]||(C[0]=w=>b.$emit(f(mt),w)),onChange:C[1]||(C[1]=w=>b.$emit(f(Dt),w)),onBlur:C[2]||(C[2]=w=>b.$emit("blur",w)),onFocus:C[3]||(C[3]=w=>b.$emit("focus",w)),onClear:C[4]||(C[4]=()=>b.$emit("clear"))},{prefix:X(()=>[e.prefixIcon?(S(),le(f(Je),{key:0,class:D(f(a).e("prefix-icon"))},{default:X(()=>[(S(),le(kt(e.prefixIcon)))]),_:1},8,["class"])):ie("v-if",!0)]),default:X(()=>[(S(!0),P(He,null,Et(v.value,w=>(S(),le(f(n),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}});const Whe=yt(Hhe),CM="timeline",jhe=Me({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),Khe=j({name:"ElTimeline",props:jhe,setup(e,{slots:t}){const n=Ee("timeline");Nt(CM,{props:e,slots:t});const s=E(()=>[n.b(),n.is(e.mode)]);return()=>{var a,o;const r=lo((o=(a=t.default)==null?void 0:a.call(t))!=null?o:[]);return ut("ul",{class:s.value},e.reverse?r.reverse():r)}}}),Uhe=Me({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:rn},hollow:Boolean});var SM=j({name:"ElTimelineItem",__name:"timeline-item",props:Uhe,setup(e){const t=e,{props:n}=Ke(CM),s=Ee("timeline-item"),a=E(()=>[s.e("node"),s.em("node",t.size||""),s.em("node",t.type||""),s.is("hollow",t.hollow)]),o=E(()=>[s.b(),{[s.e("center")]:t.center},s.is(n.mode)]);return(r,i)=>(S(),P("li",{class:D(o.value)},[A("div",{class:D(f(s).e("tail"))},null,2),r.$slots.dot?ie("v-if",!0):(S(),P("div",{key:0,class:D(a.value),style:Qe({backgroundColor:e.color})},[e.icon?(S(),le(f(Je),{key:0,class:D(f(s).e("icon"))},{default:X(()=>[(S(),le(kt(e.icon)))]),_:1},8,["class"])):ie("v-if",!0)],6)),r.$slots.dot?(S(),P("div",{key:1,class:D(f(s).e("dot"))},[ue(r.$slots,"dot")],2)):ie("v-if",!0),A("div",{class:D(f(s).e("wrapper"))},[!e.hideTimestamp&&e.placement==="top"?(S(),P("div",{key:0,class:D([f(s).e("timestamp"),f(s).is("top")])},ge(e.timestamp),3)):ie("v-if",!0),A("div",{class:D(f(s).e("content"))},[ue(r.$slots,"default")],2),!e.hideTimestamp&&e.placement==="bottom"?(S(),P("div",{key:1,class:D([f(s).e("timestamp"),f(s).is("bottom")])},ge(e.timestamp),3)):ie("v-if",!0)],2)],2))}});const qhe=yt(Khe,{TimelineItem:SM}),Ghe=Pn(SM),xM="left-check-change",kM="right-check-change",Qf=Me({data:{type:re(Array),default:()=>[]},titles:{type:re(Array),default:()=>[]},buttonTexts:{type:re(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:re(Function)},leftDefaultChecked:{type:re(Array),default:()=>[]},rightDefaultChecked:{type:re(Array),default:()=>[]},renderContent:{type:re(Function)},modelValue:{type:re(Array),default:()=>[]},format:{type:re(Object),default:()=>({})},filterable:Boolean,props:{type:re(Object),default:()=>Ln({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),a8=(e,t)=>[e,t].every(Ae)||Ae(e)&&Xn(t),Yhe={[Dt]:(e,t,n)=>[e,n].every(Ae)&&["left","right"].includes(t),[mt]:e=>Ae(e),[xM]:a8,[kM]:a8},o8="checked-change",Xhe=Me({data:Qf.data,optionRender:{type:re(Function)},placeholder:String,title:String,filterable:Boolean,format:Qf.format,filterMethod:Qf.filterMethod,defaultChecked:Qf.leftDefaultChecked,props:Qf.props}),Jhe={[o8]:a8},rv=e=>{const t={label:"label",key:"key",disabled:"disabled"};return E(()=>({...t,...e.props}))},Zhe=(e,t,n)=>{const s=rv(e),a=E(()=>e.data.filter(u=>Ze(e.filterMethod)?e.filterMethod(t.query,u):String(u[s.value.label]||u[s.value.key]).toLowerCase().includes(t.query.toLowerCase()))),o=E(()=>a.value.filter(u=>!u[s.value.disabled])),r=E(()=>{const u=t.checked.length,d=e.data.length,{noChecked:h,hasChecked:p}=e.format;return h&&p?u>0?p.replace(/\${checked}/g,u.toString()).replace(/\${total}/g,d.toString()):h.replace(/\${total}/g,d.toString()):`${u}/${d}`}),i=E(()=>{const u=t.checked.length;return u>0&&u{const u=o.value.map(d=>d[s.value.key]);t.allChecked=u.length>0&&u.every(d=>t.checked.includes(d))},c=u=>{t.checked=u?o.value.map(d=>d[s.value.key]):[]};return be(()=>t.checked,(u,d)=>{if(l(),t.checkChangeByUser){const h=u.concat(d).filter(p=>!u.includes(p)||!d.includes(p));n(o8,u,h)}else n(o8,u),t.checkChangeByUser=!0}),be(o,()=>{l()}),be(()=>e.data,()=>{const u=[],d=a.value.map(h=>h[s.value.key]);t.checked.forEach(h=>{d.includes(h)&&u.push(h)}),t.checkChangeByUser=!1,t.checked=u}),be(()=>e.defaultChecked,(u,d)=>{if(d&&u.length===d.length&&u.every(v=>d.includes(v)))return;const h=[],p=o.value.map(v=>v[s.value.key]);u.forEach(v=>{p.includes(v)&&h.push(v)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:a,checkableData:o,checkedSummary:r,isIndeterminate:i,updateAllChecked:l,handleAllCheckedChange:c}};var EM=j({name:"ElTransferPanel",__name:"transfer-panel",props:Xhe,emits:Jhe,setup(e,{expose:t,emit:n}){const s=e,a=n,o=jn(),r=({option:_})=>_,{t:i}=Bt(),l=Ee("transfer"),c=Yt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=rv(s),{filteredData:d,checkedSummary:h,isIndeterminate:p,handleAllCheckedChange:v}=Zhe(s,c,a),m=E(()=>!Ra(c.query)&&Ra(d.value)),g=E(()=>!Ra(o.default()[0].children)),{checked:b,allChecked:C,query:w}=ys(c);return t({query:w}),(_,x)=>(S(),P("div",{class:D(f(l).b("panel"))},[A("p",{class:D(f(l).be("panel","header"))},[W(f(mr),{modelValue:f(C),"onUpdate:modelValue":x[0]||(x[0]=k=>yn(C)?C.value=k:null),indeterminate:f(p),"validate-event":!1,onChange:f(v)},{default:X(()=>[je(ge(e.title)+" ",1),A("span",null,ge(f(h)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),A("div",{class:D([f(l).be("panel","body"),f(l).is("with-footer",g.value)])},[e.filterable?(S(),le(f(ua),{key:0,modelValue:f(w),"onUpdate:modelValue":x[1]||(x[1]=k=>yn(w)?w.value=k:null),class:D(f(l).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":f(l9),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):ie("v-if",!0),Ct(W(f(R3),{modelValue:f(b),"onUpdate:modelValue":x[2]||(x[2]=k=>yn(b)?b.value=k:null),"validate-event":!1,class:D([f(l).is("filterable",e.filterable),f(l).be("panel","list")])},{default:X(()=>[(S(!0),P(He,null,Et(f(d),k=>(S(),le(f(mr),{key:k[f(u).key],class:D(f(l).be("panel","item")),value:k[f(u).key],disabled:k[f(u).disabled],"validate-event":!1},{default:X(()=>{var T;return[W(r,{option:(T=e.optionRender)==null?void 0:T.call(e,k)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[jt,!m.value&&!f(Ra)(e.data)]]),Ct(A("div",{class:D(f(l).be("panel","empty"))},[ue(_.$slots,"empty",{},()=>[je(ge(m.value?f(i)("el.transfer.noMatch"):f(i)("el.transfer.noData")),1)])],2),[[jt,m.value||f(Ra)(e.data)]])],2),g.value?(S(),P("p",{key:0,class:D(f(l).be("panel","footer"))},[ue(_.$slots,"default")],2)):ie("v-if",!0)],2))}});const Qhe=e=>{const t=rv(e),n=E(()=>e.data.reduce((o,r)=>(o[r[t.value.key]]=r)&&o,{})),s=E(()=>e.data.filter(o=>!e.modelValue.includes(o[t.value.key]))),a=E(()=>e.targetOrder==="original"?e.data.filter(o=>e.modelValue.includes(o[t.value.key])):e.modelValue.reduce((o,r)=>{const i=n.value[r];return i&&o.push(i),o},[]));return{sourceData:s,targetData:a}},e0e=(e,t,n)=>{const s=rv(e),a=(i,l,c)=>{n(mt,i),n(Dt,i,l,c)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(l=>{const c=i.indexOf(l);c>-1&&i.splice(c,1)}),a(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const l=e.data.filter(c=>{const u=c[s.value.key];return t.leftChecked.includes(u)&&!e.modelValue.includes(u)}).map(c=>c[s.value.key]);i=e.targetOrder==="unshift"?l.concat(i):i.concat(l),e.targetOrder==="original"&&(i=e.data.filter(c=>i.includes(c[s.value.key])).map(c=>c[s.value.key])),a(i,"right",t.leftChecked)}}},t0e=(e,t)=>({onSourceCheckedChange:(a,o)=>{e.leftChecked=a,o&&t(xM,a,o)},onTargetCheckedChange:(a,o)=>{e.rightChecked=a,o&&t(kM,a,o)}}),n0e={key:0},s0e={key:0};var a0e=j({name:"ElTransfer",__name:"transfer",props:Qf,emits:Yhe,setup(e,{expose:t,emit:n}){const s=e,a=n,o=jn(),{t:r}=Bt(),i=Ee("transfer"),{formItem:l}=Ts(),c=Yt({leftChecked:[],rightChecked:[]}),u=rv(s),{sourceData:d,targetData:h}=Qhe(s),{onSourceCheckedChange:p,onTargetCheckedChange:v}=t0e(c,a),{addToLeft:m,addToRight:g}=e0e(s,c,a),b=F(),C=F(),w=O=>{switch(O){case"left":b.value.query="";break;case"right":C.value.query="";break}},_=E(()=>s.buttonTexts.length===2),x=E(()=>s.titles[0]||r("el.transfer.titles.0")),k=E(()=>s.titles[1]||r("el.transfer.titles.1")),T=E(()=>s.filterPlaceholder||r("el.transfer.filterPlaceholder"));be(()=>s.modelValue,()=>{var O;s.validateEvent&&((O=l==null?void 0:l.validate)==null||O.call(l,"change").catch(R=>void 0))});const I=E(()=>O=>{var R;if(s.renderContent)return s.renderContent(ut,O);const $=(((R=o.default)==null?void 0:R.call(o,{option:O}))||[]).filter(M=>M.type!==Gn);return $.length?$:ut("span",O[u.value.label]||O[u.value.key])});return t({clearQuery:w,leftPanel:b,rightPanel:C}),(O,R)=>(S(),P("div",{class:D(f(i).b())},[W(EM,{ref_key:"leftPanel",ref:b,data:f(d),"option-render":I.value,placeholder:T.value,title:x.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:s.props,onCheckedChange:f(p)},{empty:X(()=>[ue(O.$slots,"left-empty")]),default:X(()=>[ue(O.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),A("div",{class:D(f(i).e("buttons"))},[W(f(Cs),{type:"primary",class:D([f(i).e("button"),f(i).is("with-texts",_.value)]),disabled:f(Ra)(c.rightChecked),onClick:f(m)},{default:X(()=>[W(f(Je),null,{default:X(()=>[W(f($o))]),_:1}),f(Ht)(e.buttonTexts[0])?ie("v-if",!0):(S(),P("span",n0e,ge(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),W(f(Cs),{type:"primary",class:D([f(i).e("button"),f(i).is("with-texts",_.value)]),disabled:f(Ra)(c.leftChecked),onClick:f(g)},{default:X(()=>[f(Ht)(e.buttonTexts[1])?ie("v-if",!0):(S(),P("span",s0e,ge(e.buttonTexts[1]),1)),W(f(Je),null,{default:X(()=>[W(f(Ds))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),W(EM,{ref_key:"rightPanel",ref:C,data:f(h),"option-render":I.value,placeholder:T.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:k.value,"default-checked":e.rightDefaultChecked,props:s.props,onCheckedChange:f(v)},{empty:X(()=>[ue(O.$slots,"right-empty")]),default:X(()=>[ue(O.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});const o0e=yt(a0e),eh="$treeNodeId",AM=function(e,t){!t||t[eh]||Object.defineProperty(t,eh,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},r8=(e,t)=>t==null?void 0:t[e||eh],i8=(e,t,n)=>{const s=e.value.currentNode;n();const a=e.value.currentNode;s!==a&&t("current-change",a?a.data:null,a)};var r0e=Object.defineProperty,i0e=(e,t,n)=>t in e?r0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vs=(e,t,n)=>i0e(e,typeof t!="symbol"?t+"":t,n);const TM=e=>{let t=!0,n=!0,s=!0,a=!0;for(let o=0,r=e.length;o{n.canFocus=t,l8(n.childNodes,t)})};let l0e=0,c8=class Fb{constructor(t){Vs(this,"id"),Vs(this,"text"),Vs(this,"checked"),Vs(this,"indeterminate"),Vs(this,"data"),Vs(this,"expanded"),Vs(this,"parent"),Vs(this,"visible"),Vs(this,"isCurrent"),Vs(this,"store"),Vs(this,"isLeafByUser"),Vs(this,"isLeaf"),Vs(this,"canFocus"),Vs(this,"level"),Vs(this,"loaded"),Vs(this,"childNodes"),Vs(this,"loading"),Vs(this,"isEffectivelyChecked",!1),this.id=l0e++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Gt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);const s=n.props;if(s&&typeof s.isLeaf<"u"){const r=R1(this,"isLeaf");on(r)&&(this.isLeafByUser=r)}if(n.lazy!==!0&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&n.lazy&&n.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Ae(this.data)||AM(this,this.data),!this.data)return;const a=n.defaultExpandedKeys,o=n.key;o&&!Xn(this.key)&&a&&a.includes(this.key)&&this.expand(null,n.autoExpandParent),o&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode&&(n.currentNode.isCurrent=!1),n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){Ae(t)||AM(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ae(this.data)?n=this.data:n=R1(this,"children")||[];for(let s=0,a=n.length;s-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(s=>s===t||n&&s.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,s){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Fb)){if(!s){const a=this.getChildren(!0);a!=null&&a.includes(t.data)||(Ht(n)||n<0?a==null||a.push(t.data):a==null||a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Yt(new Fb(t)),t instanceof Fb&&t.initialize()}t.level=this.level+1,Ht(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let s;n&&(s=this.childNodes.indexOf(n)),this.insertChild(t,s)}insertAfter(t,n){let s;n&&(s=this.childNodes.indexOf(n),s!==-1&&(s+=1)),this.insertChild(t,s)}removeChild(t){const n=this.getChildren()||[],s=n.indexOf(t.data);s>-1&&n.splice(s,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(s=>s.data===t);n&&this.removeChild(n)}expand(t,n){const s=()=>{if(n){let a=this.parent;for(;a&&a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),l8(this.childNodes,!0)};this.shouldLoadData()?this.loadData(a=>{Ae(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||iv(this),s())}):s()}doCreateChildren(t,n={}){t.forEach(s=>{this.insertChild(Object.assign({data:s},n),void 0,!0)})}collapse(){this.expanded=!1,l8(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,s,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const r=()=>{if(n){const i=this.childNodes;for(let d=0,h=i.length;d{r(),iv(this)},{checked:t!==!1});return}else r()}const o=this.parent;!o||o.level===0||s||iv(o)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const s=this.store.props;let a="children";return s&&(a=s.children||"children"),Ht(n[a])&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(o=>o.data),s={},a=[];t.forEach((o,r)=>{const i=o[eh];!!i&&n.some(c=>(c==null?void 0:c[eh])===i)?s[i]={index:r,data:o}:a.push({index:r,data:o})}),this.store.lazy||n.forEach(o=>{s[o==null?void 0:o[eh]]||this.removeChildByData(o)}),a.forEach(({index:o,data:r})=>{this.insertChild({data:r},o)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const s=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,o)},a=()=>{this.loading=!1};this.store.load(this,s,a)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const s=n.shift();n.unshift(...s.childNodes),t(s)}}reInitChecked(){this.store.checkStrictly||iv(this)}};var c0e=Object.defineProperty,u0e=(e,t,n)=>t in e?c0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pa=(e,t,n)=>u0e(e,typeof t!="symbol"?t+"":t,n);class d0e{constructor(t){pa(this,"currentNode"),pa(this,"currentNodeKey"),pa(this,"nodesMap"),pa(this,"root"),pa(this,"data"),pa(this,"lazy",!1),pa(this,"load"),pa(this,"filterNodeMethod"),pa(this,"key"),pa(this,"defaultCheckedKeys"),pa(this,"checkStrictly",!1),pa(this,"defaultExpandedKeys"),pa(this,"autoExpandParent",!1),pa(this,"defaultExpandAll",!1),pa(this,"checkDescendants",!1),pa(this,"props"),this.currentNode=null,this.currentNodeKey=null;for(const n in t)Gt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new c8({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()},en)}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,s=this.lazy,a=async function(o){const r=o.root?o.root.childNodes:o.childNodes;for(const[i,l]of r.entries())l.visible=!!(n!=null&&n.call(l,t,l.data,l)),i%80===0&&i>0&&await ze(),await a(l);if(!o.visible&&r.length){let i=!0;i=!r.some(l=>l.visible),o.root?o.root.visible=i===!1:o.visible=i===!1}t&&o.visible&&!o.isLeaf&&(!s||o.loaded)&&o.expand()};a(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof c8)return t;const n=bt(t)?r8(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){var s;const a=this.getNode(n);(s=a.parent)==null||s.insertBefore({data:t},a)}insertAfter(t,n){var s;const a=this.getNode(n);(s=a.parent)==null||s.insertAfter({data:t},a)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const s=Ka(n)?this.root:this.getNode(n);s&&s.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(s=>{const a=n[s];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const n=this.defaultCheckedKeys||[];!Xn(t.key)&&n.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;if(!(!t||!t.data))if(!n)this.nodesMap[t.id]=t;else{const s=t.key;Xn(s)||(this.nodesMap[s]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(s=>{this.deregisterNode(s)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const s=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(i=>{(i.checked||n&&i.indeterminate)&&(!t||t&&i.isLeaf)&&s.push(i.data),a(i)})};return a(this),s}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(s){(s.root?s.root.childNodes:s.childNodes).forEach(o=>{o.indeterminate&&t.push(o.data),n(o)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const s in n)Gt(n,s)&&t.push(n[s]);return t}updateChildren(t,n){const s=this.nodesMap[t];if(!s)return;const a=s.childNodes;for(let o=a.length-1;o>=0;o--){const r=a[o];this.remove(r.data)}for(let o=0,r=n.length;ol.level-c.level),o=Object.create(null),r=Object.keys(s);a.forEach(l=>l.setChecked(!1,!1));const i=l=>{l.childNodes.forEach(c=>{var u;o[c.data[t]]=!0,(u=c.childNodes)!=null&&u.length&&i(c)})};for(let l=0,c=a.length;l{g.isLeaf||g.setChecked(!1,!1),p(g)})};p(u)}}}setCheckedNodes(t,n=!1){const s=this.key,a={};t.forEach(o=>{a[(o||{})[s]]=!0}),this._setCheckedKeys(s,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const s=this.key,a={};t.forEach(o=>{a[o]=!0}),this._setCheckedKeys(s,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const s=this.getNode(n);s&&s.expand(null,this.autoExpandParent)})}setChecked(t,n,s){const a=this.getNode(t);a&&a.setChecked(!!n,s)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){var s;const a=t[this.key],o=this.nodesMap[a];this.setCurrentNode(o),n&&this.currentNode&&this.currentNode.level>1&&((s=this.currentNode.parent)==null||s.expand(null,!0))}setCurrentNodeKey(t,n=!0){var s;if(this.currentNodeKey=t,Ka(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const a=this.getNode(t);a&&(this.setCurrentNode(a),n&&this.currentNode&&this.currentNode.level>1&&((s=this.currentNode.parent)==null||s.expand(null,!0)))}}const u8="RootTree",MM="NodeInstance",PM="TreeNodeMap";var f0e=j({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Ee("tree"),n=Ke(MM),s=Ke(u8);return()=>{const a=e.node,{data:o,store:r}=a;return e.renderContent?e.renderContent(ut,{_self:n,node:a,data:o,store:r}):ue(s.ctx.slots,"default",{node:a,data:o},()=>[ut(n8,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[a.label])])}}});function RM(e){const t=Ke(PM,null);let n={treeNodeExpand:s=>{var a;e.node!==s&&((a=e.node)==null||a.collapse())},children:new Set};return t&&t.children.add(n),tn(()=>{t&&t.children.delete(n),n=null}),Nt(PM,n),{broadcastExpanded:s=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(s)}}}const IM=Symbol("dragEvents");function h0e({props:e,ctx:t,el$:n,dropIndicator$:s,store:a}){const o=Ee("tree"),r=F({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Nt(IM,{treeNodeDragStart:({event:u,treeNode:d})=>{if(u.dataTransfer){if(Ze(e.allowDrag)&&!e.allowDrag(d.node))return u.preventDefault(),!1;u.dataTransfer.effectAllowed="move";try{u.dataTransfer.setData("text/plain","")}catch{}r.value.draggingNode=d,t.emit("node-drag-start",d.node,u)}},treeNodeDragOver:({event:u,treeNode:d})=>{if(!u.dataTransfer)return;const h=d,p=r.value.dropNode;p&&p.node.id!==h.node.id&&la(p.$el,o.is("drop-inner"));const v=r.value.draggingNode;if(!v||!h)return;let m=!0,g=!0,b=!0,C=!0;Ze(e.allowDrop)&&(m=e.allowDrop(v.node,h.node,"prev"),C=g=e.allowDrop(v.node,h.node,"inner"),b=e.allowDrop(v.node,h.node,"next")),u.dataTransfer.dropEffect=g||m||b?"move":"none",(m||g||b)&&(p==null?void 0:p.node.id)!==h.node.id&&(p&&t.emit("node-drag-leave",v.node,p.node,u),t.emit("node-drag-enter",v.node,h.node,u)),m||g||b?r.value.dropNode=h:r.value.dropNode=null,h.node.nextSibling===v.node&&(b=!1),h.node.previousSibling===v.node&&(m=!1),h.node.contains(v.node,!1)&&(g=!1),(v.node===h.node||v.node.contains(h.node))&&(m=!1,g=!1,b=!1);const w=h.$el,_=w.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),x=n.value.getBoundingClientRect(),k=n.value.scrollTop;let T;const I=m?g?.25:b?.45:1:Number.NEGATIVE_INFINITY,O=b?g?.75:m?.55:0:Number.POSITIVE_INFINITY;let R=-9999;const $=u.clientY-_.top;$<_.height*I?T="before":$>_.height*O?T="after":g?T="inner":T="none";const M=w.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),B=s.value;T==="before"?R=M.top-x.top+k:T==="after"&&(R=M.bottom-x.top+k),B.style.top=`${R}px`,B.style.left=`${M.right-x.left}px`,T==="inner"?No(w,o.is("drop-inner")):la(w,o.is("drop-inner")),r.value.showDropIndicator=T==="before"||T==="after",r.value.allowDrop=r.value.showDropIndicator||C,r.value.dropType=T,t.emit("node-drag-over",v.node,h.node,u)},treeNodeDragEnd:u=>{var d,h;const{draggingNode:p,dropType:v,dropNode:m}=r.value;if(u.preventDefault(),u.dataTransfer&&(u.dataTransfer.dropEffect="move"),p!=null&&p.node.data&&m){const g={data:p.node.data};v!=="none"&&p.node.remove(),v==="before"?(d=m.node.parent)==null||d.insertBefore(g,m.node):v==="after"?(h=m.node.parent)==null||h.insertAfter(g,m.node):v==="inner"&&m.node.insertChild(g),v!=="none"&&(a.value.registerNode(g),a.value.key&&p.node.eachNode(b=>{var C;(C=a.value.nodesMap[b.data[a.value.key]])==null||C.setChecked(b.checked,!a.value.checkStrictly)})),la(m.$el,o.is("drop-inner")),t.emit("node-drag-end",p.node,m.node,v,u),v!=="none"&&t.emit("node-drop",p.node,m.node,v,u)}p&&!m&&t.emit("node-drag-end",p.node,null,v,u),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}var p0e=j({name:"ElTreeNode",components:{ElCollapseTransition:Xg,ElCheckbox:mr,NodeContent:f0e,ElIcon:Je,Loading:Fs},props:{node:{type:c8,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=Ee("tree"),{broadcastExpanded:s}=RM(e),a=Ke(u8),o=F(!1),r=F(!1),i=F(),l=F(),c=F(),u=Ke(IM),d=Mt();Nt(MM,d),e.node.expanded&&(o.value=!0,r.value=!0);const h=a.props.props.children||"children";be(()=>{var O;const R=(O=e.node.data)==null?void 0:O[h];return R&&[...R]},()=>{e.node.updateChildren()}),be(()=>e.node.indeterminate,O=>{m(e.node.checked,O)}),be(()=>e.node.checked,O=>{m(O,e.node.indeterminate)}),be(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),be(()=>e.node.expanded,O=>{ze(()=>o.value=O),O&&(r.value=!0)});const p=O=>r8(a.props.nodeKey,O.data),v=O=>{const R=e.props.class;if(!R)return{};let $;if(Ze(R)){const{data:M}=O;$=R(M,O)}else $=R;return Xe($)?{[$]:!0}:$},m=(O,R)=>{(i.value!==O||l.value!==R)&&a.ctx.emit("check-change",e.node.data,O,R),i.value=O,l.value=R},g=O=>{i8(a.store,a.ctx.emit,()=>{var R;if((R=a==null?void 0:a.props)==null?void 0:R.nodeKey){const M=p(e.node);a.store.value.setCurrentNodeKey(M)}else a.store.value.setCurrentNode(e.node)}),a.currentNode.value=e.node,a.props.expandOnClickNode&&C(),(a.props.checkOnClickNode||e.node.isLeaf&&a.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&w(!e.node.checked),a.ctx.emit("node-click",e.node.data,e.node,d,O)},b=O=>{var R;(R=a.instance.vnode.props)!=null&&R.onNodeContextmenu&&(O.stopPropagation(),O.preventDefault()),a.ctx.emit("node-contextmenu",O,e.node.data,e.node,d)},C=()=>{e.node.isLeaf||(o.value?(a.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,d)}))},w=O=>{const R=a==null?void 0:a.props.checkStrictly,$=e.node.childNodes;!R&&$.length&&(O=$.some(M=>!M.isEffectivelyChecked)),e.node.setChecked(O,!R),ze(()=>{const M=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:M.getCheckedNodes(),checkedKeys:M.getCheckedKeys(),halfCheckedNodes:M.getHalfCheckedNodes(),halfCheckedKeys:M.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:a,expanded:o,childNodeRendered:r,oldChecked:i,oldIndeterminate:l,getNodeKey:p,getNodeClass:v,handleSelectChange:m,handleClick:g,handleContextMenu:b,handleExpandIconClick:C,handleCheckChange:w,handleChildNodeExpand:(O,R,$)=>{s(R),a.ctx.emit("node-expand",O,R,$)},handleDragStart:O=>{a.props.draggable&&u.treeNodeDragStart({event:O,treeNode:e})},handleDragOver:O=>{O.preventDefault(),a.props.draggable&&u.treeNodeDragOver({event:O,treeNode:{$el:c.value,node:e.node}})},handleDrop:O=>{O.preventDefault()},handleDragEnd:O=>{a.props.draggable&&u.treeNodeDragEnd(O)},CaretRight:Fy}}});const v0e=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],m0e=["aria-expanded"];function g0e(e,t,n,s,a,o){const r=Ge("el-icon"),i=Ge("el-checkbox"),l=Ge("loading"),c=Ge("node-content"),u=Ge("el-tree-node"),d=Ge("el-collapse-transition");return Ct((S(),P("div",{ref:"node$",class:D([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=ht((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[3]||(t[3]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[4]||(t[4]=ht((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[5]||(t[5]=ht((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[6]||(t[6]=ht((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[7]||(t[7]=ht((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[A("div",{class:D(e.ns.be("node","content")),style:Qe({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(S(),le(r,{key:0,class:D([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:ht(e.handleExpandIconClick,["stop"])},{default:X(()=>[(S(),le(kt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ie("v-if",!0),e.showCheckbox?(S(),le(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=ht(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ie("v-if",!0),e.node.loading?(S(),le(r,{key:2,class:D([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:X(()=>[W(l)]),_:1},8,["class"])):ie("v-if",!0),W(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),W(d,null,{default:X(()=>[!e.renderAfterExpand||e.childNodeRendered?Ct((S(),P("div",{key:0,class:D(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=ht(()=>{},["stop"]))},[(S(!0),P(He,null,Et(e.node.childNodes,h=>(S(),le(u,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,m0e)),[[jt,e.expanded]]):ie("v-if",!0)]),_:1})],42,v0e)),[[jt,e.node.visible]])}var b0e=fs(p0e,[["render",g0e]]);function y0e({el$:e},t){const n=Ee("tree");Pt(()=>{o()}),or(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(i=>{i.setAttribute("tabindex","-1")})});function s(r,i){var l,c;const u=t.value.getNode(r[i].dataset.key);return u.canFocus&&u.visible&&(((l=u.parent)==null?void 0:l.expanded)||((c=u.parent)==null?void 0:c.level)===0)}an(e,"keydown",r=>{const i=r.target;if(!i.className.includes(n.b("node")))return;const l=un(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),u=c.indexOf(i);let d;if([Te.up,Te.down].includes(l)){if(r.preventDefault(),l===Te.up){d=u===-1?0:u!==0?u-1:c.length-1;const p=d;for(;!s(c,d);){if(d--,d===p){d=-1;break}d<0&&(d=c.length-1)}}else{d=u===-1?0:u=c.length&&(d=0)}}d!==-1&&c[d].focus()}[Te.left,Te.right].includes(l)&&(r.preventDefault(),i.click());const h=i.querySelector('[type="checkbox"]');[Te.enter,Te.numpadEnter,Te.space].includes(l)&&h&&(r.preventDefault(),h.click())});const o=()=>{var r;if(!e.value)return;const i=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(u=>{u.setAttribute("tabindex","-1")});const c=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(c.length){c[0].setAttribute("tabindex","0");return}(r=i[0])==null||r.setAttribute("tabindex","0")}}const OM=Me({data:{type:re(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:re(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:re(Function)},allowDrop:{type:re(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:rn}});var w0e=j({name:"ElTree",components:{ElTreeNode:b0e},props:OM,emits:{"check-change":(e,t,n)=>e&&on(t)&&on(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,s)=>e&&t&&s instanceof Event,"node-contextmenu":(e,t,n,s)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,s)=>e&&s,"node-drop":(e,t,n,s)=>e&&t&&s,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},setup(e,t){const{t:n}=Bt(),s=Ee("tree"),a=F(new d0e({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const o=F(a.value.root),r=F(null),i=F(null),l=F(null),{broadcastExpanded:c}=RM(e),{dragState:u}=h0e({props:e,ctx:t,el$:i,dropIndicator$:l,store:a});y0e({el$:i},a);const d=Mt(),h=E(()=>{let z=d==null?void 0:d.parent;for(;z;){if(z.type.name==="ElTreeSelect")return!0;z=z.parent}return!1}),p=E(()=>{const{childNodes:z}=o.value;return(!z||z.length===0||z.every(({visible:q})=>!q))&&!h.value});be(()=>e.currentNodeKey,z=>{a.value.setCurrentNodeKey(z??null)}),be(()=>e.defaultCheckedKeys,(z,q)=>{Bn(z,q)||a.value.setDefaultCheckedKey(z??[])}),be(()=>e.defaultExpandedKeys,z=>{a.value.setDefaultExpandedKeys(z??[])}),be(()=>e.data,z=>{a.value.setData(z)},{deep:!0}),be(()=>e.checkStrictly,z=>{a.value.checkStrictly=z});const v=z=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(z)},m=z=>r8(e.nodeKey,z.data),g=z=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${z}`)},b=z=>{g("getNodePath");const q=a.value.getNode(z);if(!q)return[];const Q=[q.data];let K=q.parent;for(;K&&K!==o.value;)Q.push(K.data),K=K.parent;return Q.reverse()},C=(z,q)=>a.value.getCheckedNodes(z,q),w=z=>a.value.getCheckedKeys(z),_=()=>{const z=a.value.getCurrentNode();return z?z.data:null},x=()=>{g("getCurrentKey");const z=_();return z?z[e.nodeKey]:null},k=(z,q)=>{g("setCheckedNodes"),a.value.setCheckedNodes(z,q)},T=(z,q)=>{g("setCheckedKeys"),a.value.setCheckedKeys(z,q)},I=(z,q,Q)=>{a.value.setChecked(z,q,Q)},O=()=>a.value.getHalfCheckedNodes(),R=()=>a.value.getHalfCheckedKeys(),$=(z,q=!0)=>{g("setCurrentNode"),i8(a,t.emit,()=>{c(z),a.value.setUserCurrentNode(z,q)})},M=(z=null,q=!0)=>{g("setCurrentKey"),i8(a,t.emit,()=>{c(),a.value.setCurrentNodeKey(z,q)})},B=z=>a.value.getNode(z),U=z=>{a.value.remove(z)},J=(z,q)=>{a.value.append(z,q)},Y=(z,q)=>{a.value.insertBefore(z,q)},L=(z,q)=>{a.value.insertAfter(z,q)},N=(z,q,Q)=>{c(q),t.emit("node-expand",z,q,Q)},V=(z,q)=>{g("updateKeyChild"),a.value.updateChildren(z,q)};return Nt(u8,{ctx:t,props:e,store:a,root:o,currentNode:r,instance:d}),Nt(si,void 0),{ns:s,store:a,root:o,currentNode:r,dragState:u,el$:i,dropIndicator$:l,isEmpty:p,filter:v,getNodeKey:m,getNodePath:b,getCheckedNodes:C,getCheckedKeys:w,getCurrentNode:_,getCurrentKey:x,setCheckedNodes:k,setCheckedKeys:T,setChecked:I,getHalfCheckedNodes:O,getHalfCheckedKeys:R,setCurrentNode:$,setCurrentKey:M,t:n,getNode:B,remove:U,append:J,insertBefore:Y,insertAfter:L,handleNodeExpand:N,updateKeyChildren:V}}});function _0e(e,t,n,s,a,o){const r=Ge("el-tree-node");return S(),P("div",{ref:"el$",class:D([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(S(!0),P(He,null,Et(e.root.childNodes,i=>(S(),le(r,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(S(),P("div",{key:0,class:D(e.ns.e("empty-block"))},[ue(e.$slots,"empty",{},()=>{var i;return[A("span",{class:D(e.ns.e("empty-text"))},ge((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):ie("v-if",!0),Ct(A("div",{ref:"dropIndicator$",class:D(e.ns.e("drop-indicator"))},null,2),[[jt,e.dragState.showDropIndicator]])],2)}var C0e=fs(w0e,[["render",_0e]]);const d8=yt(C0e),S0e=(e,{attrs:t,emit:n},{select:s,tree:a,key:o})=>{const r=Ee("tree-select");be(()=>e.data,()=>{e.filterable&&ze(()=>{var c,u;(u=a.value)==null||u.filter((c=s.value)==null?void 0:c.states.inputValue)})},{flush:"post"});const i=c=>{var u;const d=c.at(-1);if(d.expanded&&d.childNodes.at(-1))i([d.childNodes.at(-1)]);else{const h=(u=a.value.el$)==null?void 0:u.querySelector(`[data-key="${c.at(-1).key}"]`);h==null||h.focus({preventScroll:!0});return}};return Pt(()=>{an(()=>{var c;return(c=s.value)==null?void 0:c.$el},"keydown",async c=>{const u=un(c),{dropdownMenuVisible:d}=s.value;[Te.down,Te.up].includes(u)&&d&&(await ze(),setTimeout(()=>{var h,p,v;if(Te.up===u){const m=a.value.store.root.childNodes;i(m);return}(v=(p=(h=s.value.optionsArray[s.value.states.hoveringIndex].$el)==null?void 0:h.parentNode)==null?void 0:p.parentNode)==null||v.focus({preventScroll:!0})}))},{capture:!0})}),{...Gi(ys(e),Object.keys(fc.props)),...t,class:E(()=>t.class),style:E(()=>t.style),"onUpdate:modelValue":c=>n(mt,c),valueKey:o,popperClass:E(()=>{const c=[r.e("popper")];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),filterMethod:(c="")=>{var u;e.filterMethod?e.filterMethod(c):e.remoteMethod?e.remoteMethod(c):(u=a.value)==null||u.filter(c)}}},x0e=j({extends:qg,setup(e,t){const n=qg.setup(e,t);delete n.selectOptionClick;const s=Mt().proxy;return ze(()=>{n.select.states.cachedOptions.get(s.value)||n.select.onOptionCreate(s)}),be(()=>t.attrs.visible,a=>{ze(()=>{n.states.visible=a})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function f8(e){return e||e===0}function h8(e){return Ae(e)&&e.length}function th(e){return Ae(e)?e:f8(e)?[e]:[]}function I1(e,t,n,s,a){for(let o=0;o{be([()=>e.modelValue,o],()=>{e.showCheckbox&&ze(()=>{const h=o.value;h&&!Bn(h.getCheckedKeys(),th(e.modelValue))&&h.setCheckedKeys(th(e.modelValue))})},{immediate:!0,deep:!0});const i=E(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(h,p)=>{var v;const m=i.value[h];return Ze(m)?m(p,(v=o.value)==null?void 0:v.getNode(l("value",p))):p[m]},c=th(e.modelValue).map(h=>I1(e.data||[],p=>l("value",p)===h,p=>l("children",p),(p,v,m,g)=>g&&l("value",g))).filter(h=>f8(h)),u=E(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return O1(e.data.concat(e.cacheData),p=>{const v=l("value",p);h.push({value:v,currentLabel:l("label",p),isDisabled:l("disabled",p)})},p=>l("children",p)),h}),d=()=>{var h;return(h=o.value)==null?void 0:h.getCheckedKeys().filter(p=>{var v;const m=(v=o.value)==null?void 0:v.getNode(p);return!Xn(m)&&Ra(m.childNodes)})};return{...Gi(ys(e),Object.keys(d8.props)),...t,nodeKey:r,expandOnClickNode:E(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:E(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(h,{node:p,data:v,store:m})=>h(x0e,{value:l("value",v),label:l("label",v),disabled:l("disabled",v),visible:p.visible},e.renderContent?()=>e.renderContent(h,{node:p,data:v,store:m}):n.default?()=>n.default({node:p,data:v,store:m}):void 0),filterNodeMethod:(h,p,v)=>e.filterNodeMethod?e.filterNodeMethod(h,p,v):h?new RegExp(k3(h),"i").test(l("label",p)||""):!0,onNodeClick:(h,p,v)=>{var m,g,b;if((m=t.onNodeClick)==null||m.call(t,h,p,v),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||p.isLeaf)){if(!l("disabled",h)){const C=(g=a.value)==null?void 0:g.states.options.get(l("value",h));(b=a.value)==null||b.handleOptionSelect(C)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick()},onCheck:(h,p)=>{var v;if(!e.showCheckbox)return;const m=l("value",h),g={};O1([o.value.store.root],_=>g[_.key]=_,_=>_.childNodes);const b=p.checkedKeys,C=e.multiple?th(e.modelValue).filter(_=>!(_ in g)&&!b.includes(_)):[],w=C.concat(b);if(e.checkStrictly)s(mt,e.multiple?w:w.includes(m)?m:void 0);else if(e.multiple){const _=d();s(mt,C.concat(_))}else{const _=I1([h],T=>!h8(l("children",T))&&!l("disabled",T),T=>l("children",T)),x=_?l("value",_):void 0,k=f8(e.modelValue)&&!!I1([h],T=>l("value",T)===e.modelValue,T=>l("children",T));s(mt,x===e.modelValue||k?void 0:x)}ze(()=>{var _;const x=th(e.modelValue);o.value.setCheckedKeys(x),(_=t.onCheck)==null||_.call(t,h,{checkedKeys:o.value.getCheckedKeys(),checkedNodes:o.value.getCheckedNodes(),halfCheckedKeys:o.value.getHalfCheckedKeys(),halfCheckedNodes:o.value.getHalfCheckedNodes()})}),(v=a.value)==null||v.focus()},onNodeExpand:(h,p,v)=>{var m;(m=t.onNodeExpand)==null||m.call(t,h,p,v),ze(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&p.checked){const g={},b=o.value.getCheckedKeys();O1([o.value.store.root],_=>g[_.key]=_,_=>_.childNodes);const C=th(e.modelValue).filter(_=>!(_ in g)&&!b.includes(_)),w=d();s(mt,C.concat(w))}})},cacheOptions:u}};var E0e=j({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ke(Vp);return be(()=>e.data,()=>{var n;e.data.forEach(a=>{t.states.cachedOptions.has(a.value)||t.states.cachedOptions.set(a.value,a)});const s=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];Xt&&!Array.from(s).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}}),A0e=j({name:"ElTreeSelect",inheritAttrs:!1,props:{...Yk,...OM,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:s}=t,a=F(),o=F(),r=E(()=>e.nodeKey||e.valueKey||"value"),i=S0e(e,t,{select:a,tree:o,key:r}),{cacheOptions:l,...c}=k0e(e,t,{select:a,tree:o,key:r}),u=Yt({});return s(u),Pt(()=>{Object.assign(u,{...Gi(o.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Gi(a.value,["focus","blur","selectedLabel"]),treeRef:o.value,selectRef:a.value})}),()=>ut(fc,Yt({...i,ref:d=>a.value=d}),{...n,default:()=>[ut(E0e,{data:l.value}),ut(d8,Yt({...c,ref:d=>o.value=d}))]})}});const T0e=yt(A0e),p8=Symbol(),M0e={key:-1,level:-1,data:{}};var lv=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(lv||{}),v8=(e=>(e.ADD="add",e.DELETE="delete",e))(v8||{});const LM={type:Number,default:26},P0e=Me({data:{type:re(Array),default:()=>Ln([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:re(Object),default:()=>Ln({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:re(Array),default:()=>Ln([])},checkStrictly:Boolean,defaultExpandedKeys:{type:re(Array),default:()=>Ln([])},indent:{type:Number,default:16},itemSize:LM,icon:{type:rn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:re([String,Number])},accordion:Boolean,filterMethod:{type:re(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),R0e=Me({node:{type:re(Object),default:()=>Ln(M0e)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:LM}),I0e=Me({node:{type:re(Object),required:!0}}),NM="node-click",$M="node-drop",DM="node-expand",FM="node-collapse",BM="current-change",VM="check",zM="check-change",HM="node-contextmenu",O0e={[NM]:(e,t,n)=>e&&t&&n,[$M]:(e,t,n)=>e&&t&&n,[DM]:(e,t)=>e&&t,[FM]:(e,t)=>e&&t,[BM]:(e,t)=>e&&t,[VM]:(e,t)=>e&&t,[zM]:(e,t)=>e&&on(t),[HM]:(e,t,n)=>e&&t&&n},L0e={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&on(t)};function N0e(e,t){const n=F(new Set),s=F(new Set),{emit:a}=Mt();be([()=>t.value,()=>e.defaultCheckedKeys],()=>ze(()=>{C(e.defaultCheckedKeys)}),{immediate:!0});const o=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:_}=t.value,x=n.value,k=new Set;for(let T=_;T>=1;--T){const I=w.get(T);I&&I.forEach(O=>{const R=O.children;let $=!O.isLeaf||O.disabled||x.has(O.key);if(R){let M=!0,B=!1;for(const U of R){const J=U.key;if(U.isEffectivelyChecked||($=!1),x.has(J))B=!0;else if(k.has(J)){M=!1,B=!0;break}else M=!1}M?x.add(O.key):B?(k.add(O.key),x.delete(O.key)):(x.delete(O.key),k.delete(O.key))}O.isEffectivelyChecked=$})}s.value=k},r=w=>n.value.has(w.key),i=w=>s.value.has(w.key),l=(w,_,x=!0,k=!0)=>{const T=n.value,I=w.children;!e.checkStrictly&&x&&(I!=null&&I.length)&&(_=I.some(R=>!R.isEffectivelyChecked));const O=(R,$)=>{T[$?v8.ADD:v8.DELETE](R.key);const M=R.children;!e.checkStrictly&&M&&M.forEach(B=>{(!B.disabled||B.children)&&O(B,$)})};O(w,_),k&&o(),x&&c(w,_)},c=(w,_)=>{const{checkedNodes:x,checkedKeys:k}=v(),{halfCheckedNodes:T,halfCheckedKeys:I}=m();a(VM,w.data,{checkedKeys:k,checkedNodes:x,halfCheckedKeys:I,halfCheckedNodes:T}),a(zM,w.data,_)};function u(w=!1){return v(w).checkedKeys}function d(w=!1){return v(w).checkedNodes}function h(){return m().halfCheckedKeys}function p(){return m().halfCheckedNodes}function v(w=!1){const _=[],x=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:k}=t.value;n.value.forEach(T=>{const I=k.get(T);I&&(!w||w&&I.isLeaf)&&(x.push(T),_.push(I.data))})}return{checkedKeys:x,checkedNodes:_}}function m(){const w=[],_=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:x}=t.value;s.value.forEach(k=>{const T=x.get(k);T&&(_.push(k),w.push(T.data))})}return{halfCheckedNodes:w,halfCheckedKeys:_}}function g(w){n.value.clear(),s.value.clear(),ze(()=>{C(w)})}function b(w,_){if(t!=null&&t.value&&e.showCheckbox){const x=t.value.treeNodeMap.get(w);x&&l(x,_,!1)}}function C(w){if(t!=null&&t.value){const{treeNodeMap:_}=t.value;if(e.showCheckbox&&_&&(w==null?void 0:w.length)>0){for(const x of w){const k=_.get(x);k&&!r(k)&&l(k,!0,!1,!1)}o()}}}return{updateCheckedKeys:o,toggleCheckbox:l,isChecked:r,isIndeterminate:i,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:h,getHalfCheckedNodes:p,setChecked:b,setCheckedKeys:g}}function $0e(e,t){const n=F(new Set([])),s=F(new Set([])),a=E(()=>Ze(e.filterMethod));function o(i){var l;if(!a.value)return;const c=new Set,u=s.value,d=n.value,h=[],p=((l=t.value)==null?void 0:l.treeNodes)||[],v=e.filterMethod;d.clear();function m(g){g.forEach(b=>{h.push(b),v!=null&&v(i,b.data,b)?h.forEach(w=>{c.add(w.key),w.expanded=!0}):(b.expanded=!1,b.isLeaf&&d.add(b.key));const C=b.children;if(C&&m(C),!b.isLeaf){if(!c.has(b.key))d.add(b.key);else if(C){let w=!0;for(const _ of C)if(!d.has(_.key)){w=!1;break}w?u.add(b.key):u.delete(b.key)}}h.pop()})}return m(p),c}function r(i){return s.value.has(i.key)}return{hiddenExpandIconKeySet:s,hiddenNodeKeySet:n,doFilter:o,isForceHiddenExpandIcon:r}}function D0e(e,t){const n=F(new Set),s=F(),a=bn(),o=F(),{isIndeterminate:r,isChecked:i,toggleCheckbox:l,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:p,setCheckedKeys:v}=N0e(e,a),{doFilter:m,hiddenNodeKeySet:g,isForceHiddenExpandIcon:b}=$0e(e,a),C=E(()=>{var Z;return((Z=e.props)==null?void 0:Z.value)||lv.KEY}),w=E(()=>{var Z;return((Z=e.props)==null?void 0:Z.children)||lv.CHILDREN}),_=E(()=>{var Z;return((Z=e.props)==null?void 0:Z.disabled)||lv.DISABLED}),x=E(()=>{var Z;return((Z=e.props)==null?void 0:Z.label)||lv.LABEL}),k=E(()=>{var Z;const H=n.value,ae=g.value,de=[],ye=((Z=a.value)==null?void 0:Z.treeNodes)||[],_e=[];for(let Se=ye.length-1;Se>=0;--Se)_e.push(ye[Se]);for(;_e.length;){const Se=_e.pop();if(!ae.has(Se.key)&&(de.push(Se),Se.children&&H.has(Se.key)))for(let Le=Se.children.length-1;Le>=0;--Le)_e.push(Se.children[Le])}return de}),T=E(()=>k.value.length>0);function I(Z){const H=new Map,ae=new Map;let de=1;function ye(Se,Le=1,De=void 0){var $e;const Ce=[];for(const Oe of Se){const Ie=$(Oe),We={level:Le,key:Ie,data:Oe};We.label=B(Oe),We.parent=De;const nt=R(Oe);We.disabled=M(Oe),We.isLeaf=!nt||nt.length===0,We.expanded=n.value.has(Ie),nt&&nt.length&&(We.children=ye(nt,Le+1,We)),Ce.push(We),H.set(Ie,We),ae.has(Le)||ae.set(Le,[]),($e=ae.get(Le))==null||$e.push(We)}return Le>de&&(de=Le),Ce}const _e=ye(Z);return{treeNodeMap:H,levelTreeNodeMap:ae,maxLevel:de,treeNodes:_e}}function O(Z){const H=m(Z);H&&(n.value=H)}function R(Z){return Z[w.value]}function $(Z){return Z?Z[C.value]:""}function M(Z){return Z[_.value]}function B(Z){return Z[x.value]}function U(Z){n.value.has(Z.key)?q(Z):z(Z)}function J(Z){const H=new Set,ae=a.value.treeNodeMap;n.value.forEach(de=>{const ye=ae.get(de);n.value.delete(ye.key),ye.expanded=!1}),Z.forEach(de=>{let ye=ae.get(de);for(;ye&&!H.has(ye.key);)H.add(ye.key),ye.expanded=!0,ye=ye.parent}),n.value=H}function Y(Z,H){t(NM,Z.data,Z,H),N(Z),e.expandOnClickNode&&U(Z),e.showCheckbox&&(e.checkOnClickNode||Z.isLeaf&&e.checkOnClickLeaf)&&!Z.disabled&&l(Z,!i(Z),!0)}function L(Z,H){t($M,Z.data,Z,H)}function N(Z){K(Z)||(s.value=Z.key,t(BM,Z.data,Z))}function V(Z,H){l(Z,H)}function z(Z){const H=n.value;if(a.value&&e.accordion){const{treeNodeMap:de}=a.value;H.forEach(ye=>{const _e=de.get(ye);Z&&Z.level===(_e==null?void 0:_e.level)&&(H.delete(ye),_e.expanded=!1)})}H.add(Z.key);const ae=fe(Z.key);ae&&(ae.expanded=!0,t(DM,ae.data,ae))}function q(Z){n.value.delete(Z.key);const H=fe(Z.key);H&&(H.expanded=!1,t(FM,H.data,H))}function Q(Z){return!!Z.disabled}function K(Z){const H=s.value;return H!==void 0&&H===Z.key}function ee(){var Z,H;if(s.value)return(H=(Z=a.value)==null?void 0:Z.treeNodeMap.get(s.value))==null?void 0:H.data}function se(){return s.value}function pe(Z){s.value=Z}function te(Z){a.value=I(Z)}function fe(Z){var H;const ae=bt(Z)?$(Z):Z;return(H=a.value)==null?void 0:H.treeNodeMap.get(ae)}function ve(Z,H="auto"){const ae=fe(Z);ae&&o.value&&o.value.scrollToItem(k.value.indexOf(ae),H)}function ce(Z){var H;(H=o.value)==null||H.scrollTo(Z)}return be(()=>e.currentNodeKey,Z=>{s.value=Z},{immediate:!0}),be(()=>e.defaultExpandedKeys,Z=>{n.value=new Set(Z)},{immediate:!0}),be(()=>e.data,Z=>{te(Z)},{immediate:!0}),{tree:a,flattenTree:k,isNotEmpty:T,listRef:o,getKey:$,getChildren:R,toggleExpand:U,toggleCheckbox:l,isChecked:i,isIndeterminate:r,isDisabled:Q,isCurrent:K,isForceHiddenExpandIcon:b,handleNodeClick:Y,handleNodeDrop:L,handleNodeCheck:V,getCurrentNode:ee,getCurrentKey:se,setCurrentKey:pe,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:p,setCheckedKeys:v,filter:O,setData:te,getNode:fe,expandNode:z,collapseNode:q,setExpandedKeys:J,scrollToNode:ve,scrollTo:ce}}var F0e=j({name:"ElTreeNodeContent",props:I0e,setup(e){const t=Ke(p8),n=Ee("tree");return()=>{const s=e.node,{data:a}=s;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:s,data:a}):ut(n8,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[s==null?void 0:s.label])}}});const B0e=["aria-expanded","aria-disabled","aria-checked","data-key"];var V0e=j({name:"ElTreeNode",__name:"tree-node",props:R0e,emits:L0e,setup(e,{emit:t}){const n=e,s=t,a=Ke(p8),o=Ee("tree"),r=E(()=>{var v;return(v=a==null?void 0:a.props.indent)!=null?v:16}),i=E(()=>{var v;return(v=a==null?void 0:a.props.icon)!=null?v:Fy}),l=v=>{var m;const g=(m=a==null?void 0:a.props.props)==null?void 0:m.class;if(!g)return{};let b;if(Ze(g)){const{data:C}=v;b=g(C,v)}else b=g;return Xe(b)?{[b]:!0}:b},c=v=>{s("click",n.node,v)},u=v=>{s("drop",n.node,v)},d=()=>{s("toggle",n.node)},h=v=>{s("check",n.node,v)},p=v=>{var m,g,b,C;(b=(g=(m=a==null?void 0:a.instance)==null?void 0:m.vnode)==null?void 0:g.props)!=null&&b.onNodeContextmenu&&(v.stopPropagation(),v.preventDefault()),a==null||a.ctx.emit(HM,v,(C=n.node)==null?void 0:C.data,n.node)};return(v,m)=>{var g,b,C;return S(),P("div",{ref:"node$",class:D([f(o).b("node"),f(o).is("expanded",e.expanded),f(o).is("current",e.current),f(o).is("focusable",!e.disabled),f(o).is("checked",!e.disabled&&e.checked),l(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":(g=e.node)==null?void 0:g.key,onClick:ht(c,["stop"]),onContextmenu:p,onDragover:m[1]||(m[1]=ht(()=>{},["prevent"])),onDragenter:m[2]||(m[2]=ht(()=>{},["prevent"])),onDrop:ht(u,["stop"])},[A("div",{class:D(f(o).be("node","content")),style:Qe({paddingLeft:`${(e.node.level-1)*r.value}px`,height:e.itemSize+"px"})},[i.value?(S(),le(f(Je),{key:0,class:D([f(o).is("leaf",!!((b=e.node)!=null&&b.isLeaf)),f(o).is("hidden",e.hiddenExpandIcon),{expanded:!((C=e.node)!=null&&C.isLeaf)&&e.expanded},f(o).be("node","expand-icon")]),onClick:ht(d,["stop"])},{default:X(()=>[(S(),le(kt(i.value)))]),_:1},8,["class"])):ie("v-if",!0),e.showCheckbox?(S(),le(f(mr),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:h,onClick:m[0]||(m[0]=ht(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):ie("v-if",!0),W(f(F0e),{node:{...e.node,expanded:e.expanded}},null,8,["node"])],6)],42,B0e)}}}),z0e=j({name:"ElTreeV2",__name:"tree",props:P0e,emits:O0e,setup(e,{expose:t,emit:n}){const s=e,a=n,o=jn(),r=E(()=>s.itemSize);Nt(p8,{ctx:{emit:a,slots:o},props:s,instance:Mt()}),Nt(si,void 0);const{t:i}=Bt(),l=Ee("tree"),{flattenTree:c,isNotEmpty:u,listRef:d,toggleExpand:h,isIndeterminate:p,isChecked:v,isDisabled:m,isCurrent:g,isForceHiddenExpandIcon:b,handleNodeClick:C,handleNodeDrop:w,handleNodeCheck:_,toggleCheckbox:x,getCurrentNode:k,getCurrentKey:T,setCurrentKey:I,getCheckedKeys:O,getCheckedNodes:R,getHalfCheckedKeys:$,getHalfCheckedNodes:M,setChecked:B,setCheckedKeys:U,filter:J,setData:Y,getNode:L,expandNode:N,collapseNode:V,setExpandedKeys:z,scrollToNode:q,scrollTo:Q}=D0e(s,a);return t({toggleCheckbox:x,getCurrentNode:k,getCurrentKey:T,setCurrentKey:I,getCheckedKeys:O,getCheckedNodes:R,getHalfCheckedKeys:$,getHalfCheckedNodes:M,setChecked:B,setCheckedKeys:U,filter:J,setData:Y,getNode:L,expandNode:N,collapseNode:V,setExpandedKeys:z,scrollToNode:q,scrollTo:Q}),(K,ee)=>(S(),P("div",{class:D([f(l).b(),{[f(l).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[f(u)?(S(),le(f(lT),{key:0,ref_key:"listRef",ref:d,"class-name":f(l).b("virtual-list"),data:f(c),total:f(c).length,height:e.height,"item-size":r.value,"perf-mode":e.perfMode,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:X(({data:se,index:pe,style:te})=>[(S(),le(V0e,{key:se[pe].key,style:Qe(te),node:se[pe],expanded:se[pe].expanded,"show-checkbox":e.showCheckbox,checked:f(v)(se[pe]),indeterminate:f(p)(se[pe]),"item-size":r.value,disabled:f(m)(se[pe]),current:f(g)(se[pe]),"hidden-expand-icon":f(b)(se[pe]),onClick:f(C),onToggle:f(h),onCheck:f(_),onDrop:f(w)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(S(),P("div",{key:1,class:D(f(l).e("empty-block"))},[ue(K.$slots,"empty",{},()=>{var se;return[A("span",{class:D(f(l).e("empty-text"))},ge((se=e.emptyText)!=null?se:f(i)("el.tree.emptyText")),3)]})],2))],2))}});const H0e=yt(z0e);var W0e=Object.defineProperty,j0e=(e,t,n)=>t in e?W0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L1=(e,t,n)=>j0e(e,typeof t!="symbol"?t+"":t,n);const K0e="ElUpload";class U0e extends Error{constructor(t,n,s,a){super(t),L1(this,"name","UploadAjaxError"),L1(this,"status"),L1(this,"method"),L1(this,"url"),this.status=n,this.method=s,this.url=a}}function WM(e,t,n){let s;return n.response?s=`${n.response.error||n.response}`:n.responseText?s=`${n.responseText}`:s=`fail to ${t.method} ${e} ${n.status}`,new U0e(s,n.status,t.method,e)}function q0e(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const G0e=e=>{typeof XMLHttpRequest>"u"&&es(K0e,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",o=>{const r=o;r.percent=o.total>0?o.loaded/o.total*100:0,e.onProgress(r)});const s=new FormData;if(e.data)for(const[o,r]of Object.entries(e.data))Ae(r)&&r.length?s.append(o,...r):s.append(o,r);s.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(WM(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(WM(n,e,t));e.onSuccess(q0e(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((o,r)=>t.setRequestHeader(r,o));else for(const[o,r]of Object.entries(a))Xn(r)||t.setRequestHeader(o,String(r));return t.send(s),t},jM=["text","picture","picture-card"];let Y0e=1;const m8=()=>Date.now()+Y0e++,KM=Me({action:{type:String,default:"#"},headers:{type:re(Object)},method:{type:String,default:"post"},data:{type:re([Object,Function,Promise]),default:()=>Ln({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:re(Array),default:()=>Ln([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:jM,default:"text"},httpRequest:{type:re(Function),default:G0e},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),X0e=Me({...KM,beforeUpload:{type:re(Function),default:en},beforeRemove:{type:re(Function)},onRemove:{type:re(Function),default:en},onChange:{type:re(Function),default:en},onPreview:{type:re(Function),default:en},onSuccess:{type:re(Function),default:en},onProgress:{type:re(Function),default:en},onError:{type:re(Function),default:en},onExceed:{type:re(Function),default:en},crossorigin:{type:re(String)}}),UM=Symbol("uploadContextKey"),J0e=Me({files:{type:re(Array),default:()=>Ln([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:re(Function),default:en},listType:{type:String,values:jM,default:"text"},crossorigin:{type:re(String)}}),Z0e={remove:e=>!!e},Q0e=["tabindex","aria-disabled","onKeydown"],epe=["src","crossorigin"],tpe=["onClick"],npe=["title"],spe=["onClick"],ape=["onClick"];var qM=j({name:"ElUploadList",__name:"upload-list",props:J0e,emits:Z0e,setup(e,{emit:t}){const n=e,s=t,{t:a}=Bt(),o=Ee("upload"),r=Ee("icon"),i=Ee("list"),l=Nn(),c=F(!1),u=E(()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",l.value)]),d=h=>{s("remove",h)};return(h,p)=>(S(),le(zS,{tag:"ul",class:D(u.value),name:f(i).b()},{default:X(()=>[(S(!0),P(He,null,Et(e.files,(v,m)=>(S(),P("li",{key:v.uid||v.name,class:D([f(o).be("list","item"),f(o).is(v.status),{focusing:c.value}]),tabindex:f(l)?void 0:0,"aria-disabled":f(l),role:"button",onKeydown:Fn(g=>!f(l)&&d(v),["delete"]),onFocus:p[0]||(p[0]=g=>c.value=!0),onBlur:p[1]||(p[1]=g=>c.value=!1),onClick:p[2]||(p[2]=g=>c.value=!1)},[ue(h.$slots,"default",{file:v,index:m},()=>[e.listType==="picture"||v.status!=="uploading"&&e.listType==="picture-card"?(S(),P("img",{key:0,class:D(f(o).be("list","item-thumbnail")),src:v.url,crossorigin:e.crossorigin,alt:""},null,10,epe)):ie("v-if",!0),v.status==="uploading"||e.listType!=="picture-card"?(S(),P("div",{key:1,class:D(f(o).be("list","item-info"))},[A("a",{class:D(f(o).be("list","item-name")),onClick:ht(g=>e.handlePreview(v),["prevent"])},[W(f(Je),{class:D(f(r).m("document"))},{default:X(()=>[W(f(Eg))]),_:1},8,["class"]),A("span",{class:D(f(o).be("list","item-file-name")),title:v.name},ge(v.name),11,npe)],10,tpe),v.status==="uploading"?(S(),le(f(GA),{key:0,type:e.listType==="picture-card"?"circle":"line","stroke-width":e.listType==="picture-card"?6:2,percentage:Number(v.percentage),style:Qe(e.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ie("v-if",!0)],2)):ie("v-if",!0),A("label",{class:D(f(o).be("list","item-status-label"))},[e.listType==="text"?(S(),le(f(Je),{key:0,class:D([f(r).m("upload-success"),f(r).m("circle-check")])},{default:X(()=>[W(f(xp))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(S(),le(f(Je),{key:1,class:D([f(r).m("upload-success"),f(r).m("check")])},{default:X(()=>[W(f(Tf))]),_:1},8,["class"])):ie("v-if",!0)],2),f(l)?ie("v-if",!0):(S(),le(f(Je),{key:2,class:D(f(r).m("close")),onClick:g=>d(v)},{default:X(()=>[W(f(Ua))]),_:1},8,["class","onClick"])),ie(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ie(" This is a bug which needs to be fixed "),ie(" TODO: Fix the incorrect navigation interaction "),f(l)?ie("v-if",!0):(S(),P("i",{key:3,class:D(f(r).m("close-tip"))},ge(f(a)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(S(),P("span",{key:4,class:D(f(o).be("list","item-actions"))},[A("span",{class:D(f(o).be("list","item-preview")),onClick:g=>e.handlePreview(v)},[W(f(Je),{class:D(f(r).m("zoom-in"))},{default:X(()=>[W(f(Mg))]),_:1},8,["class"])],10,spe),f(l)?ie("v-if",!0):(S(),P("span",{key:0,class:D(f(o).be("list","item-delete")),onClick:g=>d(v)},[W(f(Je),{class:D(f(r).m("delete"))},{default:X(()=>[W(f(Gx))]),_:1},8,["class"])],10,ape))],2)):ie("v-if",!0)])],42,Q0e))),128)),ue(h.$slots,"append")]),_:3},8,["class","name"]))}});const ope=Me({...KM,beforeUpload:{type:re(Function),default:en},onRemove:{type:re(Function),default:en},onStart:{type:re(Function),default:en},onSuccess:{type:re(Function),default:en},onProgress:{type:re(Function),default:en},onError:{type:re(Function),default:en},onExceed:{type:re(Function),default:en}}),rpe=Me({disabled:{type:Boolean,default:void 0},directory:Boolean}),ipe={file:e=>Ae(e)},GM="ElUploadDrag";var lpe=j({name:GM,__name:"upload-dragger",props:rpe,emits:ipe,setup(e,{emit:t}){const n=e,s=t;Ke(UM)||es(GM,"usage: ");const o=Ee("upload"),r=F(!1),i=Nn(),l=p=>new Promise((v,m)=>p.file(v,m)),c=async p=>{try{if(p.isFile){const v=await l(p);return v.isDirectory=!1,[v]}if(p.isDirectory){const v=p.createReader(),m=()=>new Promise((_,x)=>v.readEntries(_,x)),g=[];let b=await m();for(;b.length>0;)g.push(...b),b=await m();const C=g.map(_=>c(_).catch(()=>[])),w=await Promise.all(C);return hg(w)}}catch{return[]}return[]},u=async p=>{if(i.value)return;r.value=!1,p.stopPropagation();const v=Array.from(p.dataTransfer.files),m=p.dataTransfer.items||[];if(n.directory){const g=Array.from(m).map(C=>{var w;return(w=C==null?void 0:C.webkitGetAsEntry)==null?void 0:w.call(C)}).filter(C=>C),b=await Promise.all(g.map(c));s("file",hg(b));return}v.forEach((g,b)=>{var C;const w=m[b],_=(C=w==null?void 0:w.webkitGetAsEntry)==null?void 0:C.call(w);_&&(g.isDirectory=_.isDirectory)}),s("file",v)},d=()=>{i.value||(r.value=!0)},h=p=>{p.currentTarget.contains(p.relatedTarget)||(r.value=!1)};return(p,v)=>(S(),P("div",{class:D([f(o).b("dragger"),f(o).is("dragover",r.value)]),onDrop:ht(u,["prevent"]),onDragover:ht(d,["prevent"]),onDragleave:ht(h,["prevent"])},[ue(p.$slots,"default")],34))}});const cpe=["tabindex","aria-disabled","onKeydown"],upe=["name","disabled","multiple","accept","webkitdirectory"];var YM=j({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:ope,setup(e,{expose:t}){const n=e,s=Ee("upload"),a=Nn(),o=bn({}),r=bn(),i=m=>{if(m.length===0)return;const{autoUpload:g,limit:b,fileList:C,multiple:w,onStart:_,onExceed:x}=n;if(b&&C.length+m.length>b){x(m,C);return}w||(m=m.slice(0,1));for(const k of m){const T=k;T.uid=m8(),_(T),g&&l(T)}},l=async m=>{if(r.value.value="",!n.beforeUpload)return u(m);let g,b={};try{const w=n.data,_=n.beforeUpload(m);b=R0(n.data)?vg(n.data):n.data,g=await _,R0(n.data)&&Bn(w,b)&&(b=vg(n.data))}catch{g=!1}if(g===!1){n.onRemove(m);return}let C=m;g instanceof Blob&&(g instanceof File?C=g:C=new File([g],m.name,{type:m.type})),u(Object.assign(C,{uid:m.uid}),b)},c=async(m,g)=>Ze(m)?m(g):m,u=async(m,g)=>{const{headers:b,data:C,method:w,withCredentials:_,name:x,action:k,onProgress:T,onSuccess:I,onError:O,httpRequest:R}=n;try{g=await c(g??C,m)}catch{n.onRemove(m);return}const{uid:$}=m,M={headers:b||{},withCredentials:_,file:m,data:g,method:w,filename:x,action:k,onProgress:U=>{T(U,m)},onSuccess:U=>{I(U,m),delete o.value[$]},onError:U=>{O(U,m),delete o.value[$]}},B=R(M);o.value[$]=B,B instanceof Promise&&B.then(M.onSuccess,M.onError)},d=m=>{const g=m.target.files;g&&i(Array.from(g))},h=()=>{a.value||(r.value.value="",r.value.click())},p=()=>{h()};return t({abort:m=>{Nx(o.value).filter(m?([b])=>String(m.uid)===b:()=>!0).forEach(([b,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete o.value[b]})},upload:l}),(m,g)=>(S(),P("div",{class:D([f(s).b(),f(s).m(e.listType),f(s).is("drag",e.drag),f(s).is("disabled",f(a))]),tabindex:f(a)?void 0:0,"aria-disabled":f(a),role:"button",onClick:h,onKeydown:Fn(ht(p,["self"]),["enter","space"])},[e.drag?(S(),le(lpe,{key:0,disabled:f(a),directory:e.directory,onFile:i},{default:X(()=>[ue(m.$slots,"default")]),_:3},8,["disabled","directory"])):ue(m.$slots,"default",{key:1}),A("input",{ref_key:"inputRef",ref:r,class:D(f(s).e("input")),name:e.name,disabled:f(a),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:d,onClick:g[0]||(g[0]=ht(()=>{},["stop"]))},null,42,upe)],42,cpe))}});const XM="ElUpload",JM=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},dpe=(e,t)=>{const n=kx(e,"fileList",void 0,{passive:!0}),s=v=>n.value.find(m=>m.uid===v.uid);function a(v){var m;(m=t.value)==null||m.abort(v)}function o(v=["ready","uploading","success","fail"]){n.value=n.value.filter(m=>!v.includes(m.status))}function r(v){n.value=n.value.filter(m=>m.uid!==v.uid)}const i=v=>{ze(()=>e.onChange(v,n.value))},l=(v,m)=>{const g=s(m);g&&(console.error(v),g.status="fail",r(g),e.onError(v,g,n.value),i(g))},c=(v,m)=>{const g=s(m);g&&(e.onProgress(v,g,n.value),g.status="uploading",g.percentage=Math.round(v.percent))},u=(v,m)=>{const g=s(m);g&&(g.status="success",g.response=v,e.onSuccess(v,g,n.value),i(g))},d=v=>{Xn(v.uid)&&(v.uid=m8());const m={name:v.name,percentage:0,status:"ready",size:v.size,raw:v,uid:v.uid};if(e.listType==="picture-card"||e.listType==="picture")try{m.url=URL.createObjectURL(v)}catch(g){g.message,e.onError(g,m,n.value)}n.value=[...n.value,m],i(m)},h=async v=>{const m=v instanceof File?s(v):v;m||es(XM,"file to be removed not found");const g=b=>{a(b),r(b),e.onRemove(b,n.value),JM(b)};e.beforeRemove?await e.beforeRemove(m,n.value)!==!1&&g(m):g(m)};function p(){n.value.filter(({status:v})=>v==="ready").forEach(({raw:v})=>{var m;return v&&((m=t.value)==null?void 0:m.upload(v))})}return be(()=>e.listType,v=>{v!=="picture-card"&&v!=="picture"||(n.value=n.value.map(m=>{const{raw:g,url:b}=m;if(!b&&g)try{m.url=URL.createObjectURL(g)}catch(C){e.onError(C,m,n.value)}return m}))}),be(n,v=>{for(const m of v)m.uid||(m.uid=m8()),m.status||(m.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:o,handleError:l,handleProgress:c,handleStart:d,handleSuccess:u,handleRemove:h,submit:p,revokeFileObjectURL:JM}};var fpe=j({name:"ElUpload",__name:"upload",props:X0e,setup(e,{expose:t}){const n=e,s=Nn(),a=bn(),{abort:o,submit:r,clearFiles:i,uploadFiles:l,handleStart:c,handleError:u,handleRemove:d,handleSuccess:h,handleProgress:p,revokeFileObjectURL:v}=dpe(n,a),m=E(()=>n.listType==="picture-card"),g=E(()=>({...n,fileList:l.value,onStart:c,onProgress:p,onSuccess:h,onError:u,onRemove:d}));return tn(()=>{l.value.forEach(v)}),Nt(UM,{accept:sn(n,"accept")}),t({abort:o,submit:r,clearFiles:i,handleStart:c,handleRemove:d}),(b,C)=>(S(),P("div",null,[m.value&&e.showFileList?(S(),le(qM,{key:0,disabled:f(s),"list-type":e.listType,files:f(l),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:f(d)},Aa({append:X(()=>[W(YM,Tt({ref_key:"uploadRef",ref:a},g.value),{default:X(()=>[b.$slots.trigger?ue(b.$slots,"trigger",{key:0}):ie("v-if",!0),!b.$slots.trigger&&b.$slots.default?ue(b.$slots,"default",{key:1}):ie("v-if",!0)]),_:3},16)]),_:2},[b.$slots.file?{name:"default",fn:X(({file:w,index:_})=>[ue(b.$slots,"file",{file:w,index:_})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ie("v-if",!0),!m.value||m.value&&!e.showFileList?(S(),le(YM,Tt({key:1,ref_key:"uploadRef",ref:a},g.value),{default:X(()=>[b.$slots.trigger?ue(b.$slots,"trigger",{key:0}):ie("v-if",!0),!b.$slots.trigger&&b.$slots.default?ue(b.$slots,"default",{key:1}):ie("v-if",!0)]),_:3},16)):ie("v-if",!0),b.$slots.trigger?ue(b.$slots,"default",{key:2}):ie("v-if",!0),ue(b.$slots,"tip"),!m.value&&e.showFileList?(S(),le(qM,{key:3,disabled:f(s),"list-type":e.listType,files:f(l),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:f(d)},Aa({_:2},[b.$slots.file?{name:"default",fn:X(({file:w,index:_})=>[ue(b.$slots,"file",{file:w,index:_})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ie("v-if",!0)]))}});const hpe=yt(fpe),ppe=Me({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:re([String,Array]),default:"Element Plus"},font:{type:re(Object)},gap:{type:re(Array),default:()=>[100,100]},offset:{type:re(Array)}});function vpe(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function mpe(e){return Object.keys(e).map(t=>`${vpe(t)}: ${e[t]};`).join(" ")}function gpe(){return window.devicePixelRatio||1}const bpe=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},ype={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function g8(e,t,n=1){const s=document.createElement("canvas"),a=s.getContext("2d"),o=e*n,r=t*n;return s.setAttribute("width",`${o}px`),s.setAttribute("height",`${r}px`),a.save(),[a,s,o,r]}function wpe(){function e(t,n,s,a,o,r,i,l,c){const[u,d,h,p]=g8(a,o,s);let v=0;if(t instanceof HTMLImageElement)u.drawImage(t,0,0,h,p);else{const{color:K,fontSize:ee,fontStyle:se,fontWeight:pe,fontFamily:te,textAlign:fe,textBaseline:ve}=r,ce=Number(ee)*s;u.font=`${se} normal ${pe} ${ce}px/${o}px ${te}`,u.fillStyle=K,u.textAlign=fe,u.textBaseline=ve;const Z=Ae(t)?t:[t];if(ve!=="top"&&Z[0]){const H=u.measureText(Z[0]);u.textBaseline="top";const ae=u.measureText(Z[0]);v=H.actualBoundingBoxAscent-ae.actualBoundingBoxAscent}Z==null||Z.forEach((H,ae)=>{const[de,ye]=ype[fe];u.fillText(H??"",h*de+c*ye,ae*(ce+r.fontGap*s))})}const m=Math.PI/180*Number(n),g=Math.max(a,o),[b,C,w]=g8(g,g,s);b.translate(w/2,w/2),b.rotate(m),h>0&&p>0&&b.drawImage(d,-h/2,-p/2);function _(K,ee){const se=K*Math.cos(m)-ee*Math.sin(m),pe=K*Math.sin(m)+ee*Math.cos(m);return[se,pe]}let x=0,k=0,T=0,I=0;const O=h/2,R=p/2;[[0-O,0-R],[0+O,0-R],[0+O,0+R],[0-O,0+R]].forEach(([K,ee])=>{const[se,pe]=_(K,ee);x=Math.min(x,se),k=Math.max(k,se),T=Math.min(T,pe),I=Math.max(I,pe)});const M=x+w/2,B=T+w/2,U=k-x,J=I-T,Y=i*s,L=l*s,N=(U+Y)*2,V=J+L,[z,q]=g8(N,V);function Q(K=0,ee=0){z.drawImage(C,M,B,U,J,K,ee+v,U,J)}return Q(),Q(U+Y,-J/2-L/2),Q(U+Y,+J/2+L/2),[q.toDataURL(),N/s,V/s]}return e}var _pe=j({name:"ElWatermark",__name:"watermark",props:ppe,setup(e){const t={position:"relative"},n=e,s=E(()=>{var $,M;return(M=($=n.font)==null?void 0:$.fontGap)!=null?M:3}),a=E(()=>{var $,M;return(M=($=n.font)==null?void 0:$.color)!=null?M:"rgba(0,0,0,.15)"}),o=E(()=>{var $,M;return(M=($=n.font)==null?void 0:$.fontSize)!=null?M:16}),r=E(()=>{var $,M;return(M=($=n.font)==null?void 0:$.fontWeight)!=null?M:"normal"}),i=E(()=>{var $,M;return(M=($=n.font)==null?void 0:$.fontStyle)!=null?M:"normal"}),l=E(()=>{var $,M;return(M=($=n.font)==null?void 0:$.fontFamily)!=null?M:"sans-serif"}),c=E(()=>{var $,M;return(M=($=n.font)==null?void 0:$.textAlign)!=null?M:"center"}),u=E(()=>{var $,M;return(M=($=n.font)==null?void 0:$.textBaseline)!=null?M:"hanging"}),d=E(()=>n.gap[0]),h=E(()=>n.gap[1]),p=E(()=>d.value/2),v=E(()=>h.value/2),m=E(()=>{var $,M;return(M=($=n.offset)==null?void 0:$[0])!=null?M:p.value}),g=E(()=>{var $,M;return(M=($=n.offset)==null?void 0:$[1])!=null?M:v.value}),b=()=>{const $={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let M=m.value-p.value,B=g.value-v.value;return M>0&&($.left=`${M}px`,$.width=`calc(100% - ${M}px)`,M=0),B>0&&($.top=`${B}px`,$.height=`calc(100% - ${B}px)`,B=0),$.backgroundPosition=`${M}px ${B}px`,$},C=bn(null),w=bn(),_=F(!1),x=()=>{w.value&&(w.value.remove(),w.value=void 0)},k=($,M)=>{var B;C.value&&w.value&&(_.value=!0,w.value.setAttribute("style",mpe({...b(),backgroundImage:`url('${$}')`,backgroundSize:`${Math.floor(M)}px`})),(B=C.value)==null||B.append(w.value),setTimeout(()=>{_.value=!1}))},T=$=>{let M=120,B=64,U=0;const{image:J,content:Y,width:L,height:N,rotate:V}=n;if(!J&&$.measureText){$.font=`${Number(o.value)}px ${l.value}`;const z=Ae(Y)?Y:[Y];let q=0,Q=0;z.forEach(ee=>{const{width:se,fontBoundingBoxAscent:pe,fontBoundingBoxDescent:te,actualBoundingBoxAscent:fe,actualBoundingBoxDescent:ve}=$.measureText(ee),ce=Ht(pe)?fe+ve:pe+te;se>q&&(q=Math.ceil(se)),ce>Q&&(Q=Math.ceil(ce))}),M=q,B=Q*z.length+(z.length-1)*s.value;const K=Math.PI/180*Number(V);U=Math.ceil(Math.abs(Math.sin(K)*B)/2),M+=U}return[L??M,N??B,U]},I=wpe(),O=()=>{const M=document.createElement("canvas").getContext("2d"),B=n.image,U=n.content,J=n.rotate;if(M){w.value||(w.value=document.createElement("div"));const Y=gpe(),[L,N,V]=T(M),z=q=>{const[Q,K]=I(q||"",J,Y,L,N,{color:a.value,fontSize:o.value,fontStyle:i.value,fontWeight:r.value,fontFamily:l.value,fontGap:s.value,textAlign:c.value,textBaseline:u.value},d.value,h.value,V);k(Q,K)};if(B){const q=new Image;q.onload=()=>{z(q)},q.onerror=()=>{z(U)},q.crossOrigin="anonymous",q.referrerPolicy="no-referrer",q.src=B}else z(U)}};return Pt(()=>{O()}),be(()=>n,()=>{O()},{deep:!0,flush:"post"}),tn(()=>{x()}),bp(C,$=>{_.value||$.forEach(M=>{bpe(M,w.value)&&(x(),O())})},{attributes:!0,subtree:!0,childList:!0}),($,M)=>(S(),P("div",{ref_key:"containerRef",ref:C,style:Qe([t])},[ue($.$slots,"default")],4))}});const Cpe=yt(_pe),Spe=["absolute","fixed"],xpe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],b8=Me({placement:{type:re(String),values:xpe,default:"bottom"},reference:{type:re(Object),default:null},strategy:{type:re(String),values:Spe,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),kpe={close:()=>!0},Epe=Me({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:rn},placement:b8.placement,contentStyle:{type:re([Object])},mask:{type:re([Boolean,Object]),default:!0},gap:{type:re(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:re([Boolean,Object]),default:()=>({block:"center"})},type:{type:re(String)},appendTo:{type:Cp.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),Ape={[mt]:e=>on(e),"update:current":e=>at(e),close:e=>at(e),finish:()=>!0,change:e=>at(e)},Tpe=Me({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:re(Object)},targetAreaClickable:{type:Boolean,default:!0}}),nh=Math.min,$u=Math.max,N1=Math.round,$1=Math.floor,li=e=>({x:e,y:e}),Mpe={left:"right",right:"left",bottom:"top",top:"bottom"},Ppe={start:"end",end:"start"};function y8(e,t,n){return $u(e,nh(t,n))}function cv(e,t){return typeof e=="function"?e(t):e}function Du(e){return e.split("-")[0]}function uv(e){return e.split("-")[1]}function ZM(e){return e==="x"?"y":"x"}function w8(e){return e==="y"?"height":"width"}const Rpe=new Set(["top","bottom"]);function vc(e){return Rpe.has(Du(e))?"y":"x"}function _8(e){return ZM(vc(e))}function Ipe(e,t,n){n===void 0&&(n=!1);const s=uv(e),a=_8(e),o=w8(a);let r=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=D1(r)),[r,D1(r)]}function Ope(e){const t=D1(e);return[C8(e),t,C8(t)]}function C8(e){return e.replace(/start|end/g,t=>Ppe[t])}const QM=["left","right"],e7=["right","left"],Lpe=["top","bottom"],Npe=["bottom","top"];function $pe(e,t,n){switch(e){case"top":case"bottom":return n?t?e7:QM:t?QM:e7;case"left":case"right":return t?Lpe:Npe;default:return[]}}function Dpe(e,t,n,s){const a=uv(e);let o=$pe(Du(e),n==="start",s);return a&&(o=o.map(r=>r+"-"+a),t&&(o=o.concat(o.map(C8)))),o}function D1(e){return e.replace(/left|right|bottom|top/g,t=>Mpe[t])}function Fpe(e){return{top:0,right:0,bottom:0,left:0,...e}}function t7(e){return typeof e!="number"?Fpe(e):{top:e,right:e,bottom:e,left:e}}function F1(e){const{x:t,y:n,width:s,height:a}=e;return{width:s,height:a,top:n,left:t,right:t+s,bottom:n+a,x:t,y:n}}function n7(e,t,n){let{reference:s,floating:a}=e;const o=vc(t),r=_8(t),i=w8(r),l=Du(t),c=o==="y",u=s.x+s.width/2-a.width/2,d=s.y+s.height/2-a.height/2,h=s[i]/2-a[i]/2;let p;switch(l){case"top":p={x:u,y:s.y-a.height};break;case"bottom":p={x:u,y:s.y+s.height};break;case"right":p={x:s.x+s.width,y:d};break;case"left":p={x:s.x-a.width,y:d};break;default:p={x:s.x,y:s.y}}switch(uv(t)){case"start":p[r]-=h*(n&&c?-1:1);break;case"end":p[r]+=h*(n&&c?-1:1);break}return p}async function s7(e,t){var n;t===void 0&&(t={});const{x:s,y:a,platform:o,rects:r,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=cv(t,e),v=t7(p),g=i[h?d==="floating"?"reference":"floating":d],b=F1(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:l})),C=d==="floating"?{x:s,y:a,width:r.floating.width,height:r.floating.height}:r.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),_=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},x=F1(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:C,offsetParent:w,strategy:l}):C);return{top:(b.top-x.top+v.top)/_.y,bottom:(x.bottom-b.bottom+v.bottom)/_.y,left:(b.left-x.left+v.left)/_.x,right:(x.right-b.right+v.right)/_.x}}const Bpe=async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:o=[],platform:r}=n,i=o.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=n7(c,s,l),h=s,p={},v=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:a,rects:o,platform:r,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=cv(e,t)||{};if(c==null)return{};const d=t7(u),h={x:n,y:s},p=_8(a),v=w8(p),m=await r.getDimensions(c),g=p==="y",b=g?"top":"left",C=g?"bottom":"right",w=g?"clientHeight":"clientWidth",_=o.reference[v]+o.reference[p]-h[p]-o.floating[v],x=h[p]-o.reference[p],k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let T=k?k[w]:0;(!T||!await(r.isElement==null?void 0:r.isElement(k)))&&(T=i.floating[w]||o.floating[v]);const I=_/2-x/2,O=T/2-m[v]/2-1,R=nh(d[b],O),$=nh(d[C],O),M=R,B=T-m[v]-$,U=T/2-m[v]/2+I,J=y8(M,U,B),Y=!l.arrow&&uv(a)!=null&&U!==J&&o.reference[v]/2-(UU<=0)){var $,M;const U=((($=o.flip)==null?void 0:$.index)||0)+1,J=T[U];if(J&&(!(d==="alignment"?C!==vc(J):!1)||R.every(N=>vc(N.placement)===C?N.overflows[0]>0:!0)))return{data:{index:U,overflows:R},reset:{placement:J}};let Y=(M=R.filter(L=>L.overflows[0]<=0).sort((L,N)=>L.overflows[1]-N.overflows[1])[0])==null?void 0:M.placement;if(!Y)switch(p){case"bestFit":{var B;const L=(B=R.filter(N=>{if(k){const V=vc(N.placement);return V===C||V==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(V=>V>0).reduce((V,z)=>V+z,0)]).sort((N,V)=>N[1]-V[1])[0])==null?void 0:B[0];L&&(Y=L);break}case"initialPlacement":Y=i;break}if(a!==Y)return{reset:{placement:Y}}}return{}}}},Hpe=new Set(["left","top"]);async function Wpe(e,t){const{placement:n,platform:s,elements:a}=e,o=await(s.isRTL==null?void 0:s.isRTL(a.floating)),r=Du(n),i=uv(n),l=vc(n)==="y",c=Hpe.has(r)?-1:1,u=o&&l?-1:1,d=cv(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof v=="number"&&(p=i==="end"?v*-1:v),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const jpe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:a,y:o,placement:r,middlewareData:i}=t,l=await Wpe(t,e);return r===((n=i.offset)==null?void 0:n.placement)&&(s=i.arrow)!=null&&s.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:r}}}}},Kpe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:a,platform:o}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:l={fn:b=>{let{x:C,y:w}=b;return{x:C,y:w}}},...c}=cv(e,t),u={x:n,y:s},d=await o.detectOverflow(t,c),h=vc(Du(a)),p=ZM(h);let v=u[p],m=u[h];if(r){const b=p==="y"?"top":"left",C=p==="y"?"bottom":"right",w=v+d[b],_=v-d[C];v=y8(w,v,_)}if(i){const b=h==="y"?"top":"left",C=h==="y"?"bottom":"right",w=m+d[b],_=m-d[C];m=y8(w,m,_)}const g=l.fn({...t,[p]:v,[h]:m});return{...g,data:{x:g.x-n,y:g.y-s,enabled:{[p]:r,[h]:i}}}}}};function B1(){return typeof window<"u"}function sh(e){return a7(e)?(e.nodeName||"").toLowerCase():"#document"}function po(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ci(e){var t;return(t=(a7(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function a7(e){return B1()?e instanceof Node||e instanceof po(e).Node:!1}function yr(e){return B1()?e instanceof Element||e instanceof po(e).Element:!1}function ui(e){return B1()?e instanceof HTMLElement||e instanceof po(e).HTMLElement:!1}function o7(e){return!B1()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof po(e).ShadowRoot}const Upe=new Set(["inline","contents"]);function dv(e){const{overflow:t,overflowX:n,overflowY:s,display:a}=wr(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!Upe.has(a)}const qpe=new Set(["table","td","th"]);function Gpe(e){return qpe.has(sh(e))}const Ype=[":popover-open",":modal"];function V1(e){return Ype.some(t=>{try{return e.matches(t)}catch{return!1}})}const Xpe=["transform","translate","scale","rotate","perspective"],Jpe=["transform","translate","scale","rotate","perspective","filter"],Zpe=["paint","layout","strict","content"];function S8(e){const t=x8(),n=yr(e)?wr(e):e;return Xpe.some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Jpe.some(s=>(n.willChange||"").includes(s))||Zpe.some(s=>(n.contain||"").includes(s))}function Qpe(e){let t=mc(e);for(;ui(t)&&!ah(t);){if(S8(t))return t;if(V1(t))return null;t=mc(t)}return null}function x8(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const eve=new Set(["html","body","#document"]);function ah(e){return eve.has(sh(e))}function wr(e){return po(e).getComputedStyle(e)}function z1(e){return yr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mc(e){if(sh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||o7(e)&&e.host||ci(e);return o7(t)?t.host:t}function r7(e){const t=mc(e);return ah(t)?e.ownerDocument?e.ownerDocument.body:e.body:ui(t)&&dv(t)?t:r7(t)}function fv(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=r7(e),o=a===((s=e.ownerDocument)==null?void 0:s.body),r=po(a);if(o){const i=k8(r);return t.concat(r,r.visualViewport||[],dv(a)?a:[],i&&n?fv(i):[])}return t.concat(a,fv(a,[],n))}function k8(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function i7(e){const t=wr(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=ui(e),o=a?e.offsetWidth:n,r=a?e.offsetHeight:s,i=N1(n)!==o||N1(s)!==r;return i&&(n=o,s=r),{width:n,height:s,$:i}}function E8(e){return yr(e)?e:e.contextElement}function oh(e){const t=E8(e);if(!ui(t))return li(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:o}=i7(t);let r=(o?N1(n.width):n.width)/s,i=(o?N1(n.height):n.height)/a;return(!r||!Number.isFinite(r))&&(r=1),(!i||!Number.isFinite(i))&&(i=1),{x:r,y:i}}const tve=li(0);function l7(e){const t=po(e);return!x8()||!t.visualViewport?tve:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nve(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==po(e)?!1:t}function Fu(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=E8(e);let r=li(1);t&&(s?yr(s)&&(r=oh(s)):r=oh(e));const i=nve(o,n,s)?l7(o):li(0);let l=(a.left+i.x)/r.x,c=(a.top+i.y)/r.y,u=a.width/r.x,d=a.height/r.y;if(o){const h=po(o),p=s&&yr(s)?po(s):s;let v=h,m=k8(v);for(;m&&s&&p!==v;){const g=oh(m),b=m.getBoundingClientRect(),C=wr(m),w=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*g.x,_=b.top+(m.clientTop+parseFloat(C.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=w,c+=_,v=po(m),m=k8(v)}}return F1({width:u,height:d,x:l,y:c})}function H1(e,t){const n=z1(e).scrollLeft;return t?t.left+n:Fu(ci(e)).left+n}function c7(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-H1(e,n),a=n.top+t.scrollTop;return{x:s,y:a}}function sve(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const o=a==="fixed",r=ci(s),i=t?V1(t.floating):!1;if(s===r||i&&o)return n;let l={scrollLeft:0,scrollTop:0},c=li(1);const u=li(0),d=ui(s);if((d||!d&&!o)&&((sh(s)!=="body"||dv(r))&&(l=z1(s)),ui(s))){const p=Fu(s);c=oh(s),u.x=p.x+s.clientLeft,u.y=p.y+s.clientTop}const h=r&&!d&&!o?c7(r,l):li(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function ave(e){return Array.from(e.getClientRects())}function ove(e){const t=ci(e),n=z1(e),s=e.ownerDocument.body,a=$u(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=$u(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let r=-n.scrollLeft+H1(e);const i=-n.scrollTop;return wr(s).direction==="rtl"&&(r+=$u(t.clientWidth,s.clientWidth)-a),{width:a,height:o,x:r,y:i}}const u7=25;function rve(e,t){const n=po(e),s=ci(e),a=n.visualViewport;let o=s.clientWidth,r=s.clientHeight,i=0,l=0;if(a){o=a.width,r=a.height;const u=x8();(!u||u&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}const c=H1(s);if(c<=0){const u=s.ownerDocument,d=u.body,h=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(s.clientWidth-d.clientWidth-p);v<=u7&&(o-=v)}else c<=u7&&(o+=c);return{width:o,height:r,x:i,y:l}}const ive=new Set(["absolute","fixed"]);function lve(e,t){const n=Fu(e,!0,t==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,o=ui(e)?oh(e):li(1),r=e.clientWidth*o.x,i=e.clientHeight*o.y,l=a*o.x,c=s*o.y;return{width:r,height:i,x:l,y:c}}function d7(e,t,n){let s;if(t==="viewport")s=rve(e,n);else if(t==="document")s=ove(ci(e));else if(yr(t))s=lve(t,n);else{const a=l7(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return F1(s)}function f7(e,t){const n=mc(e);return n===t||!yr(n)||ah(n)?!1:wr(n).position==="fixed"||f7(n,t)}function cve(e,t){const n=t.get(e);if(n)return n;let s=fv(e,[],!1).filter(i=>yr(i)&&sh(i)!=="body"),a=null;const o=wr(e).position==="fixed";let r=o?mc(e):e;for(;yr(r)&&!ah(r);){const i=wr(r),l=S8(r);!l&&i.position==="fixed"&&(a=null),(o?!l&&!a:!l&&i.position==="static"&&!!a&&ive.has(a.position)||dv(r)&&!l&&f7(e,r))?s=s.filter(u=>u!==r):a=i,r=mc(r)}return t.set(e,s),s}function uve(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const r=[...n==="clippingAncestors"?V1(t)?[]:cve(t,this._c):[].concat(n),s],i=r[0],l=r.reduce((c,u)=>{const d=d7(t,u,a);return c.top=$u(d.top,c.top),c.right=nh(d.right,c.right),c.bottom=nh(d.bottom,c.bottom),c.left=$u(d.left,c.left),c},d7(t,i,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function dve(e){const{width:t,height:n}=i7(e);return{width:t,height:n}}function fve(e,t,n){const s=ui(t),a=ci(t),o=n==="fixed",r=Fu(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const l=li(0);function c(){l.x=H1(a)}if(s||!s&&!o)if((sh(t)!=="body"||dv(a))&&(i=z1(t)),s){const p=Fu(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else a&&c();o&&!s&&a&&c();const u=a&&!s&&!o?c7(a,i):li(0),d=r.left+i.scrollLeft-l.x-u.x,h=r.top+i.scrollTop-l.y-u.y;return{x:d,y:h,width:r.width,height:r.height}}function A8(e){return wr(e).position==="static"}function h7(e,t){if(!ui(e)||wr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ci(e)===n&&(n=n.ownerDocument.body),n}function p7(e,t){const n=po(e);if(V1(e))return n;if(!ui(e)){let a=mc(e);for(;a&&!ah(a);){if(yr(a)&&!A8(a))return a;a=mc(a)}return n}let s=h7(e,t);for(;s&&Gpe(s)&&A8(s);)s=h7(s,t);return s&&ah(s)&&A8(s)&&!S8(s)?n:s||Qpe(e)||n}const hve=async function(e){const t=this.getOffsetParent||p7,n=this.getDimensions,s=await n(e.floating);return{reference:fve(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function pve(e){return wr(e).direction==="rtl"}const vve={convertOffsetParentRelativeRectToViewportRelativeRect:sve,getDocumentElement:ci,getClippingRect:uve,getOffsetParent:p7,getElementRects:hve,getClientRects:ave,getDimensions:dve,getScale:oh,isElement:yr,isRTL:pve};function v7(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mve(e,t){let n=null,s;const a=ci(e);function o(){var i;clearTimeout(s),(i=n)==null||i.disconnect(),n=null}function r(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(i||t(),!h||!p)return;const v=$1(d),m=$1(a.clientWidth-(u+h)),g=$1(a.clientHeight-(d+p)),b=$1(u),w={rootMargin:-v+"px "+-m+"px "+-g+"px "+-b+"px",threshold:$u(0,nh(1,l))||1};let _=!0;function x(k){const T=k[0].intersectionRatio;if(T!==l){if(!_)return r();T?r(!1,T):s=setTimeout(()=>{r(!1,1e-7)},1e3)}T===1&&!v7(c,e.getBoundingClientRect())&&r(),_=!1}try{n=new IntersectionObserver(x,{...w,root:a.ownerDocument})}catch{n=new IntersectionObserver(x,w)}n.observe(e)}return r(!0),o}function gve(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,c=E8(e),u=a||o?[...c?fv(c):[],...fv(t)]:[];u.forEach(b=>{a&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const d=c&&i?mve(c,n):null;let h=-1,p=null;r&&(p=new ResizeObserver(b=>{let[C]=b;C&&C.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let v,m=l?Fu(e):null;l&&g();function g(){const b=Fu(e);m&&!v7(m,b)&&n(),m=b,v=requestAnimationFrame(g)}return n(),()=>{var b;u.forEach(C=>{a&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const bve=s7,yve=jpe,wve=Kpe,_ve=zpe,Cve=Vpe,Sve=(e,t,n)=>{const s=new Map,a={platform:vve,...n},o={...a.platform,_c:s};return Bpe(e,t,{...a,platform:o})},xve=(e,t,n,s,a)=>{const o=F(null),r=()=>{let d;return Xe(e.value)?d=document.querySelector(e.value):Ze(e.value)?d=e.value():d=e.value,d},i=()=>{const d=r();if(!d||!t.value){o.value=null;return}kve(d)||d.scrollIntoView(a.value);const{left:h,top:p,width:v,height:m}=d.getBoundingClientRect();o.value={left:h,top:p,width:v,height:m,radius:0}};Pt(()=>{be([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),tn(()=>{window.removeEventListener("resize",i)});const l=d=>{var h;return(h=Ae(n.value.offset)?n.value.offset[d]:n.value.offset)!=null?h:6},c=E(()=>{var d;if(!o.value)return o.value;const h=l(0),p=l(1),v=((d=n.value)==null?void 0:d.radius)||2;return{left:o.value.left-h,top:o.value.top-p,width:o.value.width+h*2,height:o.value.height+p*2,radius:v}}),u=E(()=>{const d=r();return!s.value||!d||!window.DOMRect?d||void 0:{getBoundingClientRect(){var h,p,v,m;return window.DOMRect.fromRect({width:((h=c.value)==null?void 0:h.width)||0,height:((p=c.value)==null?void 0:p.height)||0,x:((v=c.value)==null?void 0:v.left)||0,y:((m=c.value)==null?void 0:m.top)||0})}}});return{mergedPosInfo:c,triggerTarget:u}},W1=Symbol("ElTour");function kve(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:s,right:a,bottom:o,left:r}=e.getBoundingClientRect();return s>=0&&r>=0&&a<=t&&o<=n}const Eve=(e,t,n,s,a,o,r,i)=>{const l=F(),c=F(),u=F({}),d={x:l,y:c,placement:s,strategy:a,middlewareData:u},h=E(()=>{const b=[yve(f(o)),_ve(),wve(),Ave()];return f(i)&&f(n)&&b.push(Cve({element:f(n)})),b}),p=async()=>{if(!Xt)return;const b=f(e),C=f(t);if(!b||!C)return;const w=await Sve(b,C,{placement:f(s),strategy:f(a),middleware:f(h)});_p(d).forEach(_=>{d[_].value=w[_]})},v=E(()=>{if(!f(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:f(r)};const{overflow:b}=f(u);return{position:f(a),zIndex:f(r),top:f(c)!=null?`${f(c)}px`:"",left:f(l)!=null?`${f(l)}px`:"",maxWidth:b!=null&&b.maxWidth?`${b==null?void 0:b.maxWidth}px`:""}}),m=E(()=>{if(!f(i))return{};const{arrow:b}=f(u);return{left:(b==null?void 0:b.x)!=null?`${b==null?void 0:b.x}px`:"",top:(b==null?void 0:b.y)!=null?`${b==null?void 0:b.y}px`:""}});let g;return Pt(()=>{const b=f(e),C=f(t);b&&C&&(g=gve(b,C,p)),Wa(()=>{p()})}),tn(()=>{g&&g()}),{update:p,contentStyle:v,arrowStyle:m}},Ave=()=>({name:"overflow",async fn(e){const t=await bve(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Tve={style:{width:"100%",height:"100%"}},Mve=["d"];var Pve=j({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:Tpe,setup(e){const t=e,{ns:n}=Ke(W1),s=E(()=>{var u,d;return(d=(u=t.pos)==null?void 0:u.radius)!=null?d:2}),a=E(()=>{const u=s.value,d=`a${u},${u} 0 0 1`;return{topRight:`${d} ${u},${u}`,bottomRight:`${d} ${-u},${u}`,bottomLeft:`${d} ${-u},${-u}`,topLeft:`${d} ${u},${-u}`}}),{width:o,height:r}=Ly(),i=E(()=>{const u=o.value,d=r.value,h=a.value,p=`M${u},0 L0,0 L0,${d} L${u},${d} L${u},0 Z`,v=s.value;return t.pos?`${p} M${t.pos.left+v},${t.pos.top} h${t.pos.width-v*2} ${h.topRight} v${t.pos.height-v*2} ${h.bottomRight} h${-t.pos.width+v*2} ${h.bottomLeft} v${-t.pos.height+v*2} ${h.topLeft} z`:p}),l=E(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=E(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return i1(sn(t,"visible"),{ns:n}),(u,d)=>e.visible?(S(),P("div",Tt({key:0,class:f(n).e("mask"),style:l.value},u.$attrs),[(S(),P("svg",Tve,[A("path",{class:D(f(n).e("hollow")),style:Qe(c.value),d:i.value},null,14,Mve)]))],16)):ie("v-if",!0)}});const Rve=["data-side"];var Ive=j({name:"ElTourContent",__name:"content",props:b8,emits:kpe,setup(e,{emit:t}){const n=e,s=t,a=F(n.placement),o=F(n.strategy),r=F(null),i=F(null);be(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:l,arrowStyle:c}=Eve(sn(n,"reference"),r,i,a,o,sn(n,"offset"),sn(n,"zIndex"),sn(n,"showArrow")),u=E(()=>a.value.split("-")[0]),{ns:d}=Ke(W1),h=()=>{s("close")},p=v=>{v.detail.focusReason==="pointer"&&v.preventDefault()};return(v,m)=>(S(),P("div",{ref_key:"contentRef",ref:r,style:Qe(f(l)),class:D(f(d).e("content")),"data-side":u.value,tabindex:"-1"},[W(f($f),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:h,onFocusoutPrevented:p},{default:X(()=>[ue(v.$slots,"default")]),_:3},8,["focus-trap-el"]),e.showArrow?(S(),P("span",{key:0,ref_key:"arrowRef",ref:i,style:Qe(f(c)),class:D(f(d).e("arrow"))},null,6)):ie("v-if",!0)],14,Rve))}}),Ove=j({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let s=0;return()=>{var a,o;const r=(a=t.default)==null?void 0:a.call(t),i=[];let l=0;function c(u){Ae(u)&&u.forEach(d=>{var h;((h=(d==null?void 0:d.type)||{})==null?void 0:h.name)==="ElTourStep"&&(i.push(d),l+=1)})}return r.length&&c(lo((o=r[0])==null?void 0:o.children)),s!==l&&(s=l,n("update-total",l)),i.length?i[e.current]:null}}}),Lve=j({name:"ElTour",inheritAttrs:!1,__name:"tour",props:Epe,emits:Ape,setup(e,{emit:t}){const n=e,s=t,a=Ee("tour"),o=F(0),r=F(),i=kx(n,"current",s,{passive:!0}),l=E(()=>{var R;return(R=r.value)==null?void 0:R.target}),c=E(()=>[a.b(),b.value==="primary"?a.m("primary"):""]),u=E(()=>{var R;return((R=r.value)==null?void 0:R.placement)||n.placement}),d=E(()=>{var R,$;return($=(R=r.value)==null?void 0:R.contentStyle)!=null?$:n.contentStyle}),h=E(()=>{var R,$;return($=(R=r.value)==null?void 0:R.mask)!=null?$:n.mask}),p=E(()=>!!h.value&&n.modelValue),v=E(()=>on(h.value)?void 0:h.value),m=E(()=>{var R,$;return!!l.value&&(($=(R=r.value)==null?void 0:R.showArrow)!=null?$:n.showArrow)}),g=E(()=>{var R,$;return($=(R=r.value)==null?void 0:R.scrollIntoViewOptions)!=null?$:n.scrollIntoViewOptions}),b=E(()=>{var R,$;return($=(R=r.value)==null?void 0:R.type)!=null?$:n.type}),{nextZIndex:C}=yp(),w=C(),_=E(()=>{var R;return(R=n.zIndex)!=null?R:w}),{mergedPosInfo:x,triggerTarget:k}=xve(l,sn(n,"modelValue"),sn(n,"gap"),h,g);be(()=>n.modelValue,R=>{R||(i.value=0)});const T=()=>{n.closeOnPressEscape&&(s(mt,!1),s("close",i.value))},I=R=>{o.value=R},O=jn();return Nt(W1,{currentStep:r,current:i,total:o,showClose:sn(n,"showClose"),closeIcon:sn(n,"closeIcon"),mergedType:b,ns:a,slots:O,updateModelValue(R){s(mt,R)},onClose(){s("close",i.value)},onFinish(){s("finish")},onChange(){s(Dt,i.value)}}),(R,$)=>(S(),P(He,null,[W(f(Af),{to:e.appendTo},{default:X(()=>{var M,B;return[A("div",Tt({class:c.value},R.$attrs),[W(Pve,{visible:p.value,fill:(M=v.value)==null?void 0:M.color,style:Qe((B=v.value)==null?void 0:B.style),pos:f(x),"z-index":_.value,"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(S(),le(Ive,{key:f(i),reference:f(k),placement:u.value,"show-arrow":m.value,"z-index":_.value,style:Qe(d.value),onClose:T},{default:X(()=>[W(f(Ove),{current:f(i),onUpdateTotal:I},{default:X(()=>[ue(R.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):ie("v-if",!0)],16)]}),_:3},8,["to"]),ie(" just for IDE "),ie("v-if",!0)],64))}});const Nve=Me({target:{type:re([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:rn},showArrow:{type:Boolean,default:void 0},placement:b8.placement,mask:{type:re([Boolean,Object]),default:void 0},contentStyle:{type:re([Object])},prevButtonProps:{type:re(Object)},nextButtonProps:{type:re(Object)},scrollIntoViewOptions:{type:re([Boolean,Object]),default:void 0},type:{type:re(String)}}),$ve={close:()=>!0},Dve=["aria-label"];var m7=j({name:"ElTourStep",__name:"step",props:Nve,emits:$ve,setup(e,{emit:t}){const n=e,s=t,{Close:a}=p9,{t:o}=Bt(),{currentStep:r,current:i,total:l,showClose:c,closeIcon:u,mergedType:d,ns:h,slots:p,updateModelValue:v,onClose:m,onFinish:g,onChange:b}=Ke(W1);be(n,R=>{r.value=R},{immediate:!0});const C=E(()=>{var R;return(R=n.showClose)!=null?R:c.value}),w=E(()=>{var R,$;return($=(R=n.closeIcon)!=null?R:u.value)!=null?$:a}),_=R=>{if(R)return pp(R,["children","onClick"])},x=()=>{var R,$;i.value-=1,(R=n.prevButtonProps)!=null&&R.onClick&&(($=n.prevButtonProps)==null||$.onClick()),b()},k=()=>{var R;i.value>=l.value-1?T():i.value+=1,(R=n.nextButtonProps)!=null&&R.onClick&&n.nextButtonProps.onClick(),b()},T=()=>{I(),g()},I=()=>{v(!1),m(),s("close")},O=R=>{const $=R.target;if($!=null&&$.isContentEditable)return;switch(un(R)){case Te.left:R.preventDefault(),i.value>0&&x();break;case Te.right:R.preventDefault(),k();break}};return Pt(()=>{window.addEventListener("keydown",O)}),tn(()=>{window.removeEventListener("keydown",O)}),(R,$)=>(S(),P(He,null,[C.value?(S(),P("button",{key:0,"aria-label":f(o)("el.tour.close"),class:D(f(h).e("closebtn")),type:"button",onClick:I},[W(f(Je),{class:D(f(h).e("close"))},{default:X(()=>[(S(),le(kt(w.value)))]),_:1},8,["class"])],10,Dve)):ie("v-if",!0),A("header",{class:D([f(h).e("header"),{"show-close":f(c)}])},[ue(R.$slots,"header",{},()=>[A("span",{role:"heading",class:D(f(h).e("title"))},ge(e.title),3)])],2),A("div",{class:D(f(h).e("body"))},[ue(R.$slots,"default",{},()=>[A("span",null,ge(e.description),1)])],2),A("footer",{class:D(f(h).e("footer"))},[A("div",{class:D(f(h).b("indicators"))},[f(p).indicators?(S(),le(kt(f(p).indicators),{key:0,current:f(i),total:f(l)},null,8,["current","total"])):(S(!0),P(He,{key:1},Et(f(l),(M,B)=>(S(),P("span",{key:M,class:D([f(h).b("indicator"),f(h).is("active",B===f(i))])},null,2))),128))],2),A("div",{class:D(f(h).b("buttons"))},[f(i)>0?(S(),le(f(Cs),Tt({key:0,size:"small",type:f(d)},_(e.prevButtonProps),{onClick:x}),{default:X(()=>{var M,B;return[je(ge((B=(M=e.prevButtonProps)==null?void 0:M.children)!=null?B:f(o)("el.tour.previous")),1)]}),_:1},16,["type"])):ie("v-if",!0),f(i)<=f(l)-1?(S(),le(f(Cs),Tt({key:1,size:"small",type:f(d)==="primary"?"default":"primary"},_(e.nextButtonProps),{onClick:k}),{default:X(()=>{var M,B;return[je(ge((B=(M=e.nextButtonProps)==null?void 0:M.children)!=null?B:f(i)===f(l)-1?f(o)("el.tour.finish"):f(o)("el.tour.next")),1)]}),_:1},16,["type"])):ie("v-if",!0)],2)],2)],64))}});const Fve=yt(Lve,{TourStep:m7}),Bve=Pn(m7),Vve=Me({container:{type:re([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:re(String),default:"default"},direction:{type:re(String),default:"vertical"},selectScrollTop:Boolean}),zve={change:e=>Xe(e),click:(e,t)=>e instanceof MouseEvent&&(Xe(t)||Ht(t))},g7=Symbol("anchor");function Hve(e){let t=0;const n=(...s)=>{t&&Yi(t),t=Zr(()=>{e(...s),t=0})};return n.cancel=()=>{Yi(t),t=0},n}const j1=e=>{if(!Xt||e==="")return null;if(Xe(e))try{return document.querySelector(e)}catch{return null}return e};var Wve=j({name:"ElAnchor",__name:"anchor",props:Vve,emits:zve,setup(e,{expose:t,emit:n}){const s=e,a=n,o=jn(),r=F(""),i=F({}),l=F(null),c=F(null),u=F(),d={};let h=!1,p=0;const v=Ee("anchor"),m=E(()=>[v.b(),s.type==="underline"?v.m("underline"):"",v.m(s.direction)]),g=M=>{d[M.href]=M.el},b=M=>{delete d[M]},C=M=>{r.value!==M&&(r.value=M,a(Dt,M))};let w=null,_="";const x=M=>{if(!u.value)return;const B=j1(M);if(!B)return;if(w){if(_===M)return;w()}_=M,h=!0;const U=Vx(B,u.value),J=F3(B,U),Y=U.scrollHeight-U.clientHeight,L=Math.min(J-s.offset,Y);w=dz(u.value,p,L,s.duration,()=>{setTimeout(()=>{h=!1,_=""},20)})},k=M=>{M&&(C(M),x(M))},T=(M,B)=>{a("click",M,B),k(B)},I=Hve(()=>{u.value&&(p=zx(u.value));const M=O();h||Ht(M)||C(M)}),O=()=>{if(!u.value)return;const M=zx(u.value),B=[];for(const U of Object.keys(d)){const J=j1(U);if(!J)continue;const Y=Vx(J,u.value),L=F3(J,Y);B.push({top:L-s.offset-s.bound,href:U})}B.sort((U,J)=>U.top-J.top);for(let U=0;UM))return J.href}},R=()=>{const M=j1(s.container);!M||mp(M)?u.value=window:u.value=M};an(u,"scroll",I);const $=()=>{ze(()=>{if(!l.value||!c.value||!r.value){i.value={};return}const M=d[r.value];if(!M){i.value={};return}const B=l.value.getBoundingClientRect(),U=c.value.getBoundingClientRect(),J=M.getBoundingClientRect();if(s.direction==="horizontal"){const Y=J.left-B.left;i.value={left:`${Y}px`,width:`${J.width}px`,opacity:1}}else{const Y=J.top-B.top+(J.height-U.height)/2;i.value={top:`${Y}px`,opacity:1}}})};return be(r,$),be(()=>{var M;return(M=o.default)==null?void 0:M.call(o)},$),Pt(()=>{R();const M=decodeURIComponent(window.location.hash);j1(M)?k(M):I()}),be(()=>s.container,()=>{R()}),Nt(g7,{ns:v,direction:s.direction,currentAnchor:r,addLink:g,removeLink:b,handleClick:T}),t({scrollTo:k}),(M,B)=>(S(),P("div",{ref_key:"anchorRef",ref:l,class:D(m.value)},[e.marker?(S(),P("div",{key:0,ref_key:"markerRef",ref:c,class:D(f(v).e("marker")),style:Qe(i.value)},null,6)):ie("v-if",!0),A("div",{class:D(f(v).e("list"))},[ue(M.$slots,"default")],2)],2))}});const jve=Me({title:String,href:String}),Kve=["href"];var b7=j({name:"ElAnchorLink",__name:"anchor-link",props:jve,setup(e){const t=e,n=F(null),{ns:s,direction:a,currentAnchor:o,addLink:r,removeLink:i,handleClick:l}=Ke(g7),c=E(()=>[s.e("link"),s.is("active",o.value===t.href)]),u=d=>{l(d,t.href)};return be(()=>t.href,(d,h)=>{ze(()=>{h&&i(h),d&&r({href:d,el:n.value})})}),Pt(()=>{const{href:d}=t;d&&r({href:d,el:n.value})}),tn(()=>{const{href:d}=t;d&&i(d)}),(d,h)=>(S(),P("div",{class:D(f(s).e("item"))},[A("a",{ref_key:"linkRef",ref:n,class:D(c.value),href:e.href,onClick:u},[ue(d.$slots,"default",{},()=>[je(ge(e.title),1)])],10,Kve),d.$slots["sub-link"]&&f(a)==="vertical"?(S(),P("div",{key:0,class:D(f(s).e("list"))},[ue(d.$slots,"sub-link")],2)):ie("v-if",!0)],2))}});const Uve=yt(Wve,{AnchorLink:b7}),qve=Pn(b7),y7={label:"label",value:"value",disabled:"disabled"},Gve=Me({direction:{type:re(String),default:"horizontal"},options:{type:re(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:re(Object),default:()=>y7},block:Boolean,size:ds,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...ca(["ariaLabel"])}),Yve={[mt]:e=>Xe(e)||at(e)||on(e),[Dt]:e=>Xe(e)||at(e)||on(e)},Xve=["id","aria-label","aria-labelledby"],Jve=["name","disabled","checked","onChange"];var Zve=j({name:"ElSegmented",__name:"segmented",props:Gve,emits:Yve,setup(e,{emit:t}){const n=e,s=t,a=Ee("segmented"),o=Bs(),r=rs(),i=Nn(),{formItem:l}=Ts(),{inputId:c,isLabeledByFormItem:u}=uo(n,{formItemContext:l}),d=F(null),h=UV(),p=Yt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),v=(M,B)=>{const U=b(B);s(mt,U),s(Dt,U),M.target.checked=U===n.modelValue},m=E(()=>({...y7,...n.props})),g=M=>M,b=M=>bt(M)?M[m.value.value]:M,C=M=>bt(M)?M[m.value.label]:M,w=M=>!!(i.value||bt(M)&&M[m.value.disabled]),_=M=>n.modelValue===b(M),x=M=>n.options.find(B=>b(B)===M),k=M=>[a.e("item"),a.is("selected",_(M)),a.is("disabled",w(M))],T=()=>{if(!d.value)return;const M=d.value.querySelector(".is-selected"),B=d.value.querySelector(".is-selected input");if(!M||!B){p.width=0,p.height=0,p.translateX=0,p.translateY=0,p.focusVisible=!1;return}p.isInit=!0,n.direction==="vertical"?(p.height=M.offsetHeight,p.translateY=M.offsetTop):(p.width=M.offsetWidth,p.translateX=M.offsetLeft);try{p.focusVisible=B.matches(":focus-visible")}catch{}},I=E(()=>[a.b(),a.m(r.value),a.is("block",n.block)]),O=E(()=>({width:n.direction==="vertical"?"100%":`${p.width}px`,height:n.direction==="vertical"?`${p.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${p.translateY}px)`:`translateX(${p.translateX}px)`,display:p.isInit?"block":"none"})),R=E(()=>[a.e("item-selected"),a.is("disabled",w(x(n.modelValue))),a.is("focus-visible",p.focusVisible)]),$=E(()=>n.name||o.value);return En(d,T),be(h,T),be(()=>n.modelValue,()=>{var M;T(),n.validateEvent&&((M=l==null?void 0:l.validate)==null||M.call(l,"change").catch(B=>void 0))},{flush:"post"}),(M,B)=>e.options.length?(S(),P("div",{key:0,id:f(c),ref_key:"segmentedRef",ref:d,class:D(I.value),role:"radiogroup","aria-label":f(u)?void 0:e.ariaLabel||"segmented","aria-labelledby":f(u)?f(l).labelId:void 0},[A("div",{class:D([f(a).e("group"),f(a).m(e.direction)])},[A("div",{style:Qe(O.value),class:D(R.value)},null,6),(S(!0),P(He,null,Et(e.options,(U,J)=>(S(),P("label",{key:J,class:D(k(U))},[A("input",{class:D(f(a).e("item-input")),type:"radio",name:$.value,disabled:w(U),checked:_(U),onChange:Y=>v(Y,U)},null,42,Jve),A("div",{class:D(f(a).e("item-label"))},[ue(M.$slots,"default",{item:g(U)},()=>[je(ge(C(U)),1)])],2)],2))),128))],2)],10,Xve)):ie("v-if",!0)}});const Qve=yt(Zve),eme=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},tme=(e,t,n)=>{const{selectionEnd:s}=e;if(s===null)return;const a=e.value,o=As(t);let r=-1,i;for(let l=s-1;l>=0;--l){const c=a[l];if(c===n||c===` `||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},nme=(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]}),o3()?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},sme=Me({...Lp,options:{type:re(Array),default:()=>[]},prefix:{type:re([String,Array]),default:"@",validator:e=>Xe(e)?e.length===1:e.every(t=>Xe(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:re([Boolean,Function]),default:()=>eme,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:ln.popperClass,popperStyle:ln.popperStyle,popperOptions:{type:re(Object),default:()=>({})},props:{type:re(Object),default:()=>w7}}),ame={[mt]:e=>Xe(e),"whole-remove":(e,t)=>Xe(e)&&Xe(t),input:e=>Xe(e),search:(e,t)=>Xe(e)&&Xe(t),select:(e,t)=>bt(e)&&Xe(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},w7={value:"value",label:"label",disabled:"disabled"},ome=Me({options:{type:re(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),rme={select:e=>Xe(e.value)},ime=["id","aria-disabled","aria-selected","onMousemove","onClick"];var lme=j({name:"ElMentionDropdown",__name:"mention-dropdown",props:ome,emits:rme,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("mention"),{t:r}=Bt(),i=F(-1),l=F(),c=F(),u=F(),d=(_,x)=>[o.be("dropdown","item"),o.is("hovering",i.value===x),o.is("disabled",_.disabled||s.disabled)],h=_=>{_.disabled||s.disabled||a("select",_)},p=_=>{i.value=_},v=E(()=>s.disabled||s.options.every(_=>_.disabled)),m=E(()=>s.options[i.value]),g=()=>{m.value&&a("select",m.value)},b=_=>{const{options:x}=s;if(x.length===0||v.value)return;_==="next"?(i.value++,i.value===x.length&&(i.value=0)):_==="prev"&&(i.value--,i.value<0&&(i.value=x.length-1));const k=x[i.value];if(k.disabled){b(_);return}ze(()=>C(k))},C=_=>{var x,k,T,I;const{options:O}=s,R=O.findIndex(M=>M.value===_.value),$=(x=c.value)==null?void 0:x[R];if($){const M=(T=(k=u.value)==null?void 0:k.querySelector)==null?void 0:T.call(k,`.${o.be("dropdown","wrap")}`);M&&Dy(M,$)}(I=l.value)==null||I.handleScroll()};return be(()=>s.options,()=>{v.value||s.options.length===0?i.value=-1:i.value=0},{immediate:!0}),t({hoveringIndex:i,navigateOptions:b,selectHoverOption:g,hoverOption:m}),(_,x)=>(S(),P("div",{ref_key:"dropdownRef",ref:u,class:D(f(o).b("dropdown"))},[_.$slots.header?(S(),P("div",{key:0,class:D(f(o).be("dropdown","header"))},[ue(_.$slots,"header")],2)):ie("v-if",!0),Ct(W(f(pr),{id:e.contentId,ref_key:"scrollbarRef",ref:l,tag:"ul","wrap-class":f(o).be("dropdown","wrap"),"view-class":f(o).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:X(()=>[(S(!0),P(He,null,Et(e.options,(k,T)=>(S(),P("li",{id:`${e.contentId}-${T}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:T,class:D(d(k,T)),role:"option","aria-disabled":k.disabled||e.disabled||void 0,"aria-selected":i.value===T,onMousemove:I=>p(T),onClick:ht(I=>h(k),["stop"])},[ue(_.$slots,"label",{item:k,index:T},()=>{var I;return[A("span",null,ge((I=k.label)!=null?I:k.value),1)]})],42,ime))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[jt,e.options.length>0&&!e.loading]]),e.loading?(S(),P("div",{key:1,class:D(f(o).be("dropdown","loading"))},[ue(_.$slots,"loading",{},()=>[je(ge(f(r)("el.mention.loading")),1)])],2)):ie("v-if",!0),_.$slots.footer?(S(),P("div",{key:2,class:D(f(o).be("dropdown","footer"))},[ue(_.$slots,"footer")],2)):ie("v-if",!0)],2))}}),cme=j({name:"ElMention",inheritAttrs:!1,__name:"mention",props:sme,emits:ame,setup(e,{expose:t,emit:n}){const s=e,a=n,o=E(()=>Gi(s,Object.keys(Lp))),r=Ee("mention"),i=Nn(),l=Bs(),c=F(),u=F(),d=F(),h=F(!1),p=F(),v=F(),m=E(()=>s.showArrow?s.placement:`${s.placement}-start`),g=E(()=>s.showArrow?["bottom","top"]:["bottom-start","top-start"]),b=E(()=>({...w7,...s.props})),C=L=>{const N={label:L[b.value.label],value:L[b.value.value],disabled:L[b.value.disabled]};return{...L,...N}},w=E(()=>s.options.map(C)),_=E(()=>{const{filterOption:L}=s;return!v.value||!L?w.value:w.value.filter(N=>L(v.value.pattern,N))}),x=E(()=>h.value&&(!!_.value.length||s.loading)),k=E(()=>{var L;return`${l.value}-${(L=d.value)==null?void 0:L.hoveringIndex}`}),T=L=>{a(mt,L),a(os,L),U()},I=L=>{var N,V,z,q;if((N=c.value)!=null&&N.isComposing)return;const Q=un(L);switch(Q){case Te.left:case Te.right:U();break;case Te.up:case Te.down:if(!h.value)return;L.preventDefault(),(V=d.value)==null||V.navigateOptions(Q===Te.up?"prev":"next");break;case Te.enter:case Te.numpadEnter:if(!h.value){s.type!=="textarea"&&U();return}L.preventDefault(),(z=d.value)!=null&&z.hoverOption?(q=d.value)==null||q.selectHoverOption():h.value=!1;break;case Te.esc:if(!h.value)return;L.preventDefault(),h.value=!1;break;case Te.backspace:if(s.whole&&v.value){const{splitIndex:K,selectionEnd:ee,pattern:se,prefixIndex:pe,prefix:te}=v.value,fe=B();if(!fe)return;const ve=fe.value,ce=w.value.find(H=>H.value===se);if((Ze(s.checkIsWhole)?s.checkIsWhole(se,te):ce)&&K!==-1&&K+1===ee){L.preventDefault();const H=ve.slice(0,pe)+ve.slice(K+1);a(mt,H),a(os,H),a("whole-remove",se,te);const ae=pe;ze(()=>{fe.selectionStart=ae,fe.selectionEnd=ae,Y()})}}}},{wrapperRef:O}=tl(c,{disabled:i,afterFocus(){U()},beforeBlur(L){var N;return(N=u.value)==null?void 0:N.isFocusInsideContent(L)},afterBlur(){h.value=!1}}),R=()=>{U()},$=L=>s.options.find(N=>L.value===N[b.value.value]),M=L=>{if(!v.value)return;const N=B();if(!N)return;const V=N.value,{split:z}=s,q=V.slice(v.value.end),Q=q.startsWith(z),K=`${L.value}${Q?"":z}`,ee=V.slice(0,v.value.start)+K+q;a(mt,ee),a(os,ee),a("select",$(L),v.value.prefix);const se=v.value.start+K.length+(Q?1:0);ze(()=>{N.selectionStart=se,N.selectionEnd=se,N.focus(),Y()})},B=()=>{var L,N;return s.type==="textarea"?(L=c.value)==null?void 0:L.textarea:(N=c.value)==null?void 0:N.input},U=()=>{setTimeout(()=>{J(),Y(),ze(()=>{var L;return(L=u.value)==null?void 0:L.updatePopper()})},0)},J=()=>{const L=B();if(!L)return;const N=nme(L),V=L.getBoundingClientRect(),z=O.value.getBoundingClientRect();p.value={position:"absolute",width:0,height:`${N.height}px`,left:`${N.left+V.left-z.left}px`,top:`${N.top+V.top-z.top}px`}},Y=()=>{const L=B();if(document.activeElement!==L){h.value=!1;return}const{prefix:N,split:V}=s;if(v.value=tme(L,N,V),v.value&&v.value.splitIndex===-1){h.value=!0,a("search",v.value.pattern,v.value.prefix);return}h.value=!1};return t({input:c,tooltip:u,dropdownVisible:x}),(L,N)=>(S(),P("div",{ref_key:"wrapperRef",ref:O,class:D(f(r).b())},[W(f(ua),Tt(Tt(o.value,L.$attrs),{ref_key:"elInputRef",ref:c,"model-value":e.modelValue,disabled:f(i),role:x.value?"combobox":void 0,"aria-activedescendant":x.value?k.value||"":void 0,"aria-controls":x.value?f(l):void 0,"aria-expanded":x.value||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":x.value?"none":void 0,"aria-haspopup":x.value?"listbox":void 0,onInput:T,onKeydown:I,onMousedown:R}),Aa({_:2},[Et(L.$slots,(V,z)=>({name:z,fn:X(q=>[ue(L.$slots,z,Ni(Hi(q)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),W(f(Ms),{ref_key:"tooltipRef",ref:u,visible:x.value,"popper-class":[f(r).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,placement:m.value,"fallback-placements":g.value,effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:X(()=>[A("div",{style:Qe(p.value)},null,4)]),content:X(()=>[W(lme,{ref_key:"dropdownRef",ref:d,options:_.value,disabled:f(i),loading:e.loading,"content-id":f(l),"aria-label":e.ariaLabel,onSelect:M,onClick:N[0]||(N[0]=ht(V=>{var z;return(z=c.value)==null?void 0:z.focus()},["stop"]))},Aa({_:2},[Et(L.$slots,(V,z)=>({name:z,fn:X(q=>[ue(L.$slots,z,Ni(Hi(q)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});const ume=yt(cme),dme=Me({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),fme={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},_7=Symbol("splitterRootContextKey");function hme(e){const t=F(),{width:n,height:s}=Oy(t),a=E(()=>e.value==="horizontal"?n.value:s.value);return{containerEl:t,containerSize:a}}function T8(e){return Number(e.slice(0,-1))/100}function M8(e){return Number(e.slice(0,-2))}function P8(e){return Xe(e)&&e.endsWith("%")}function R8(e){return Xe(e)&&e.endsWith("px")}function pme(e,t){const n=E(()=>e.value.map(i=>i.size)),s=E(()=>e.value.length),a=F([]);be([n,s,t],()=>{var i;let l=[],c=0;for(let d=0;dd+(h||0),0);if(u>1||!c){const d=1/u;l=l.map(h=>h===void 0?0:h*d)}else{const d=(1-u)/c;l=l.map(h=>h===void 0?d:h)}a.value=l});const o=i=>i*t.value,r=E(()=>a.value.map(o));return{percentSizes:a,pxSizes:r}}function vme(e,t,n,s){const a=g=>g*t.value||0;function o(g,b){return P8(g)?a(T8(g)):R8(g)?M8(g):g??b}const r=F(0),i=F(null);let l=[],c=en;const u=E(()=>e.value.map(g=>[g.min,g.max]));be(s,()=>{if(r.value){const g=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(g)}});const d=g=>{r.value=0,i.value={index:g,confirmed:!1},l=n.value},h=(g,b)=>{var C,w;let _=null;if((!i.value||!i.value.confirmed)&&b!==0){if(b>0)_=g,i.value={index:g,confirmed:!0};else for(let B=g;B>=0;B-=1)if(l[B]>0){_=B,i.value={index:B,confirmed:!0};break}}const x=(w=_??((C=i.value)==null?void 0:C.index))!=null?w:g,k=[...l],T=x+1,I=o(u.value[x][0],0),O=o(u.value[T][0],0),R=o(u.value[x][1],t.value||0),$=o(u.value[T][1],t.value||0);let M=b;k[x]+MR&&(M=R-k[x]),k[T]-M>$&&(M=k[T]-$),k[x]+=M,k[T]-=M,r.value=M,c=()=>{e.value.forEach((B,U)=>{B.size=k[U]}),c=en},s.value||c()},p=()=>{s.value&&c(),r.value=0,i.value=null,l=[]},v=[];return{lazyOffset:r,onMoveStart:d,onMoving:h,onMoveEnd:p,movingIndex:i,onCollapse:(g,b)=>{v.length||v.push(...n.value);const C=n.value,w=b==="start"?g:g+1,_=b==="start"?g+1:g,x=C[w],k=C[_];if(x!==0&&k!==0)C[w]=0,C[_]+=x,v[g]=x;else{const T=x+k,I=v[g],O=T-I;C[_]=I,C[w]=O}e.value.forEach((T,I)=>{T.size=C[I]})}}}var mme=j({name:"ElSplitter",__name:"splitter",props:dme,emits:fme,setup(e,{emit:t}){const n=Ee("splitter"),s=t,a=e,o=sn(a,"layout"),r=sn(a,"lazy"),{containerEl:i,containerSize:l}=hme(o),{removeChild:c,children:u,addChild:d,ChildrenSorter:h}=Gg(Mt(),"ElSplitterPanel");be(u,()=>{g.value=null,u.value.forEach((R,$)=>{R.setIndex($)})});const{percentSizes:p,pxSizes:v}=pme(u,l),{lazyOffset:m,movingIndex:g,onMoveStart:b,onMoving:C,onMoveEnd:w,onCollapse:_}=vme(u,l,v,r),x=E(()=>({[n.cssVarBlockName("bar-offset")]:r.value?`${m.value}px`:void 0}));return Nt(_7,Yt({panels:u,percentSizes:p,pxSizes:v,layout:o,lazy:r,movingIndex:g,containerSize:l,onMoveStart:R=>{b(R),s("resizeStart",R,v.value)},onMoving:(R,$)=>{C(R,$),r.value||s("resize",R,v.value)},onMoveEnd:async R=>{w(),await ze(),s("resizeEnd",R,v.value)},onCollapse:(R,$)=>{_(R,$),s("collapse",R,$,v.value)},registerPanel:d,unregisterPanel:c})),(R,$)=>(S(),P("div",{ref_key:"containerEl",ref:i,class:D([f(n).b(),f(n).e(o.value)]),style:Qe(x.value)},[ue(R.$slots,"default"),W(f(h)),ie(" Prevent iframe touch events from breaking "),f(g)?(S(),P("div",{key:0,class:D([f(n).e("mask"),f(n).e(`mask-${o.value}`)])},null,2)):ie("v-if",!0)],6))}});const gme=Me({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),bme={"update:size":e=>typeof e=="number"||typeof e=="string"};function yme(e){return e&&bt(e)?e:{start:!!e,end:!!e}}function C7(e,t,n,s){return!!(e!=null&&e.collapsible.end&&t>0||n!=null&&n.collapsible.start&&s===0&&t>0)}var wme=j({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=Ee("splitter-bar"),s=e,a=t,o=E(()=>s.layout==="horizontal"),r=E(()=>o.value?{width:0}:{height:0}),i=E(()=>({width:o.value?"16px":"100%",height:o.value?"100%":"16px",cursor:s.resizable?o.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),l=E(()=>{const C=n.e("dragger");return{[`${C}-horizontal`]:o.value,[`${C}-vertical`]:!o.value,[`${C}-active`]:!!c.value}}),c=F(null),u=C=>{s.resizable&&(c.value=[C.pageX,C.pageY],a("moveStart",s.index),window.addEventListener("mouseup",v),window.addEventListener("mousemove",h))},d=C=>{if(s.resizable&&C.touches.length===1){C.preventDefault();const w=C.touches[0];c.value=[w.pageX,w.pageY],a("moveStart",s.index),window.addEventListener("touchend",m),window.addEventListener("touchmove",p)}},h=C=>{const{pageX:w,pageY:_}=C,x=w-c.value[0],k=_-c.value[1],T=o.value?x:k;a("moving",s.index,T)},p=C=>{if(C.touches.length===1){C.preventDefault();const w=C.touches[0],_=w.pageX-c.value[0],x=w.pageY-c.value[1],k=o.value?_:x;a("moving",s.index,k)}},v=()=>{c.value=null,window.removeEventListener("mouseup",v),window.removeEventListener("mousemove",h),a("moveEnd",s.index)},m=()=>{c.value=null,window.removeEventListener("touchend",m),window.removeEventListener("touchmove",p),a("moveEnd",s.index)},g=E(()=>o.value?$o:Sp),b=E(()=>o.value?Ds:hr);return(C,w)=>(S(),P("div",{class:D([f(n).b()]),style:Qe(r.value)},[e.startCollapsible?(S(),P("div",{key:0,class:D([f(n).e("collapse-icon"),f(n).e(`${e.layout}-collapse-icon-start`)]),onClick:w[0]||(w[0]=_=>a("collapse",e.index,"start"))},[ue(C.$slots,"start-collapsible",{},()=>[(S(),le(kt(g.value),{style:{width:"12px",height:"12px"}}))])],2)):ie("v-if",!0),A("div",{class:D([f(n).e("dragger"),l.value,f(n).is("disabled",!e.resizable),f(n).is("lazy",e.resizable&&e.lazy)]),style:Qe(i.value),onMousedown:u,onTouchstart:d},null,38),e.endCollapsible?(S(),P("div",{key:1,class:D([f(n).e("collapse-icon"),f(n).e(`${e.layout}-collapse-icon-end`)]),onClick:w[1]||(w[1]=_=>a("collapse",e.index,"end"))},[ue(C.$slots,"end-collapsible",{},()=>[(S(),le(kt(b.value),{style:{width:"12px",height:"12px"}}))])],2)):ie("v-if",!0)],6))}});const S7="ElSplitterPanel";var x7=j({name:S7,__name:"split-panel",props:gme,emits:bme,setup(e,{expose:t,emit:n}){const s=Ee("splitter-panel"),a=e,o=n,r=Ke(_7);r||es(S7,"usage: ");const{panels:i,layout:l,lazy:c,containerSize:u,pxSizes:d}=ys(r),{registerPanel:h,unregisterPanel:p,onCollapse:v,onMoveEnd:m,onMoveStart:g,onMoving:b}=r,C=F(),w=Mt(),_=w.uid,x=F(0),k=E(()=>i.value[x.value]),T=N=>{x.value=N},I=E(()=>{var N;return k.value&&(N=d.value[x.value])!=null?N:0}),O=E(()=>{var N;return k.value&&(N=d.value[x.value+1])!=null?N:0}),R=E(()=>k.value?i.value[x.value+1]:null),$=E(()=>{var N;return R.value?a.resizable&&((N=R.value)==null?void 0:N.resizable)&&(I.value!==0||!a.min)&&(O.value!==0||!R.value.min):!1}),M=E(()=>k.value?x.value!==i.value.length-1:!1),B=E(()=>C7(k.value,I.value,R.value,O.value)),U=E(()=>C7(R.value,O.value,k.value,I.value));function J(N){return P8(N)?T8(N)*u.value||0:R8(N)?M8(N):N??0}let Y=!1;be(()=>a.size,()=>{if(!Y&&k.value){if(!u.value){k.value.size=a.size;return}const N=J(a.size),V=J(a.max),z=J(a.min),q=Math.min(Math.max(N,z||0),V||N);q!==N&&o("update:size",q),k.value.size=q}}),be(()=>{var N;return(N=k.value)==null?void 0:N.size},N=>{N!==a.size&&(Y=!0,o("update:size",N),ze(()=>Y=!1))}),be(()=>a.resizable,N=>{k.value&&(k.value.resizable=N)});const L=Yt({uid:_,getVnode:()=>w.vnode,setIndex:T,...a,collapsible:E(()=>yme(a.collapsible))});return h(L),tn(()=>p(L)),t({splitterPanelRef:C}),(N,V)=>(S(),P(He,null,[A("div",Tt({ref_key:"panelEl",ref:C,class:[f(s).b()],style:{flexBasis:`${I.value}px`}},N.$attrs),[ue(N.$slots,"default")],16),M.value?(S(),le(wme,{key:0,index:x.value,layout:f(l),lazy:f(c),resizable:$.value,"start-collapsible":B.value,"end-collapsible":U.value,onMoveStart:f(g),onMoving:f(b),onMoveEnd:f(m),onCollapse:f(v)},{"start-collapsible":X(()=>[ue(N.$slots,"start-collapsible")]),"end-collapsible":X(()=>[ue(N.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):ie("v-if",!0)],64))}});const _me=yt(mme,{SplitPanel:x7}),Cme=Pn(x7);var Sme=[hz,pJ,VQ,khe,KQ,UQ,JQ,Ek,aee,oee,Cs,$k,vte,bte,Ite,Ote,_ne,wE,kne,mr,Gte,R3,Tne,zne,Hne,Xg,$E,fse,pse,mse,gse,bse,yse,wse,coe,aA,moe,goe,Moe,vA,Voe,Ere,Are,Tre,AA,jie,Kie,Je,tle,$A,ua,DA,mle,_le,Fle,Ble,Vle,zle,Ule,wce,Sce,Mce,bk,GA,gE,sne,nne,Hce,Kce,Gce,pr,fc,qg,fte,Aue,Iue,Oue,Jue,tde,vT,lde,hde,pde,Sde,Dfe,Ffe,xhe,$he,Dhe,rl,n8,Dse,Whe,qhe,Ghe,Ms,o0e,d8,T0e,H0e,hpe,Cpe,Fve,Bve,Uve,qve,Qve,ume,_me,Cme];const vo="ElInfiniteScroll",xme=50,kme={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},I8=(e,t)=>Object.entries(kme).reduce((n,[s,a])=>{var o,r;const{type:i,default:l}=a,c=e.getAttribute(`infinite-scroll-${s}`);let u=(r=(o=t[c])!=null?o:c)!=null?r:l;return u=u==="false"?!1:u,u=i(u),n[s]=Number.isNaN(u)?l:u,n},{}),k7=e=>{const{observer:t}=e[vo];t&&(t.disconnect(),delete e[vo].observer)},Eme=(e,t)=>{const{container:n,containerEl:s,instance:a,observer:o,lastScrollTop:r}=e[vo],{disabled:i,distance:l}=I8(e,a),{clientHeight:c,scrollHeight:u,scrollTop:d}=s,h=d-r;if(e[vo].lastScrollTop=d,o||i||h<0)return;let p=!1;if(n===e)p=u-(c+d)<=l;else{const{clientTop:v,scrollHeight:m}=e,g=F3(e,s);p=d+c>=g+v+m-l}p&&t.call(a)};function O8(e,t){const{containerEl:n,instance:s}=e[vo],{disabled:a}=I8(e,s);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(s):k7(e))}const L8={async mounted(e,t){const{instance:n,value:s}=t;oi({scope:vo,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),Ze(s)||es(vo,"'v-infinite-scroll' binding value must be a function"),await ze();const{delay:a,immediate:o}=I8(e,n),r=$y(e,!0),i=r===window?document.documentElement:r,l=nc(Eme.bind(null,e,s),a);if(r){if(e[vo]={instance:n,container:r,containerEl:i,delay:a,cb:s,onScroll:l,lastScrollTop:i.scrollTop},o){const c=new MutationObserver(nc(O8.bind(null,e,s),xme));e[vo].observer=c,c.observe(e,{childList:!0,subtree:!0}),O8(e,s)}r.addEventListener("scroll",l)}},unmounted(e){if(!e[vo])return;const{container:t,onScroll:n}=e[vo];t==null||t.removeEventListener("scroll",n),k7(e)},async updated(e){if(!e[vo])await ze();else{const{containerEl:t,cb:n,observer:s}=e[vo];t.clientHeight&&s&&O8(e,n)}}};L8.install=e=>{e.directive("InfiniteScroll",L8)};const Ame=L8;function Tme(e,t){let n;const s=F(!1),a=Yt({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(p){a.text=p}function r(){const p=a.parent,v=h.ns;if(!p.vLoadingAddClassList){let m=p.getAttribute("loading-number");m=Number.parseInt(m)-1,m?p.setAttribute("loading-number",m.toString()):(la(p,v.bm("parent","relative")),p.removeAttribute("loading-number")),la(p,v.bm("parent","hidden"))}i(),d.unmount()}function i(){var p,v;(v=(p=h.$el)==null?void 0:p.parentNode)==null||v.removeChild(h.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(s.value=!0,clearTimeout(n),n=setTimeout(c,400),a.visible=!1,(p=e.closed)==null||p.call(e))}function c(){if(!s.value)return;const p=a.parent;s.value=!1,p.vLoadingAddClassList=void 0,r()}const d=JS(j({name:"ElLoading",setup(p,{expose:v}){const{ns:m,zIndex:g}=Cg("loading");return v({ns:m,zIndex:g}),()=>{const b=a.spinner||a.svg,C=ut("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[ut("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=a.text?ut("p",{class:m.b("text")},[a.text]):void 0;return ut(ws,{name:m.b("fade"),onAfterLeave:c},{default:X(()=>[Ct(W("div",{style:{backgroundColor:a.background||""},class:[m.b("mask"),a.customClass,m.is("fullscreen",a.fullscreen)]},[ut("div",{class:m.b("spinner")},[C,w])]),[[jt,a.visible]])])})}}}));Object.assign(d._context,t??{});const h=d.mount(document.createElement("div"));return{...ys(a),setText:o,removeElLoadingChild:i,close:l,handleAfterLeave:c,vm:h,get $el(){return h.$el}}}let K1;const rh=function(e={},t){if(!Xt)return;const n=Mme(e);if(n.fullscreen&&K1)return K1;const s=Tme({...n,closed:()=>{var o;(o=n.closed)==null||o.call(n),n.fullscreen&&(K1=void 0)}},t??rh._context);Pme(n,n.parent,s),E7(n,n.parent,s),n.parent.vLoadingAddClassList=()=>E7(n,n.parent,s);let a=n.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",n.parent.setAttribute("loading-number",a),n.parent.appendChild(s.$el),ze(()=>s.visible.value=n.visible),n.fullscreen&&(K1=s),s},Mme=e=>{var t,n,s,a;let o;return Xe(e.target)?o=(t=document.querySelector(e.target))!=null?t:document.body:o=e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(s=e.lock)!=null?s:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:o}},Pme=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=Xi(document.body,"position"),n.originalOverflow.value=Xi(document.body,"overflow"),a.zIndex=s();else if(e.parent===document.body){n.originalPosition.value=Xi(document.body,"position"),await ze();for(const o of["top","left"]){const r=o==="top"?"scrollTop":"scrollLeft";a[o]=`${e.target.getBoundingClientRect()[o]+document.body[r]+document.documentElement[r]-Number.parseInt(Xi(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])a[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=Xi(t,"position");for(const[o,r]of Object.entries(a))n.$el.style[o]=r},E7=(e,t,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?la(t,s.bm("parent","relative")):No(t,s.bm("parent","relative")),e.fullscreen&&e.lock?No(t,s.bm("parent","hidden")):la(t,s.bm("parent","hidden"))};rh._context=null;const hv=Symbol("ElLoading"),Bu=e=>`element-loading-${Li(e)}`,A7=(e,t)=>{var n,s,a,o;const r=t.instance,i=p=>bt(t.value)?t.value[p]:void 0,l=p=>{const v=Xe(p)&&(r==null?void 0:r[p])||p;return F(v)},c=p=>l(i(p)||e.getAttribute(Bu(p))),u=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:u,target:(s=i("target"))!=null?s:u?void 0:e,body:(a=i("body"))!=null?a:t.modifiers.body,lock:(o=i("lock"))!=null?o:t.modifiers.lock},h=rh(d);h._context=pv._context,e[hv]={options:d,instance:h}},Rme=(e,t)=>{for(const n of Object.keys(e))yn(e[n])&&(e[n].value=t[n])},pv={mounted(e,t){t.value&&A7(e,t)},updated(e,t){const n=e[hv];if(!t.value){n==null||n.instance.close(),e[hv]=null;return}n?Rme(n.options,bt(t.value)?t.value:{text:e.getAttribute(Bu("text")),svg:e.getAttribute(Bu("svg")),svgViewBox:e.getAttribute(Bu("svgViewBox")),spinner:e.getAttribute(Bu("spinner")),background:e.getAttribute(Bu("background")),customClass:e.getAttribute(Bu("customClass"))}):A7(e,t)},unmounted(e){var t;(t=e[hv])==null||t.instance.close(),e[hv]=null}};pv._context=null;const Ime={install(e){rh._context=e._context,pv._context=e._context,e.directive("loading",pv),e.config.globalProperties.$loading=rh},directive:pv,service:rh},T7=["primary","success","info","warning","error"],M7=["top","top-left","top-right","bottom","bottom-left","bottom-right"],vv="top",va=Ln({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:Xt?document.body:void 0}),Ome=Me({customClass:{type:String,default:va.customClass},dangerouslyUseHTMLString:{type:Boolean,default:va.dangerouslyUseHTMLString},duration:{type:Number,default:va.duration},icon:{type:rn,default:va.icon},id:{type:String,default:va.id},message:{type:re([String,Object,Function]),default:va.message},onClose:{type:re(Function),default:va.onClose},showClose:{type:Boolean,default:va.showClose},type:{type:String,values:T7,default:va.type},plain:{type:Boolean,default:va.plain},offset:{type:Number,default:va.offset},placement:{type:String,values:M7,default:va.placement},zIndex:{type:Number,default:va.zIndex},grouping:{type:Boolean,default:va.grouping},repeatNum:{type:Number,default:va.repeatNum}}),Lme={destroy:()=>!0},_r=L2({}),Nme=e=>(_r[e]||(_r[e]=L2([])),_r[e]),$me=(e,t)=>{const n=_r[t]||[],s=n.findIndex(r=>r.id===e),a=n[s];let o;return s>0&&(o=n[s-1]),{current:a,prev:o}},Dme=(e,t)=>{const{prev:n}=$me(e,t);return n?n.vm.exposed.bottom.value:0},Fme=(e,t,n)=>(_r[n]||[]).findIndex(o=>o.id===e)>0?16:t,Bme=["id"],Vme=["innerHTML"];var zme=j({name:"ElMessage",__name:"message",props:Ome,emits:Lme,setup(e,{expose:t,emit:n}){const{Close:s}=qy,a=e,o=n,r=F(!1),{ns:i,zIndex:l}=Cg("message"),{currentZIndex:c,nextZIndex:u}=l,d=F(),h=F(!1),p=F(0);let v;const m=E(()=>a.type?a.type==="error"?"danger":a.type:"info"),g=E(()=>{const B=a.type;return{[i.bm("icon",B)]:B&&sc[B]}}),b=E(()=>a.icon||sc[a.type]||""),C=E(()=>a.placement||vv),w=E(()=>Dme(a.id,C.value)),_=E(()=>Fme(a.id,a.offset,C.value)+w.value),x=E(()=>p.value+_.value),k=E(()=>C.value.includes("left")?i.is("left"):C.value.includes("right")?i.is("right"):i.is("center")),T=E(()=>C.value.startsWith("top")?"top":"bottom"),I=E(()=>({[T.value]:`${_.value}px`,zIndex:c.value}));function O(){a.duration!==0&&({stop:v}=xf(()=>{$()},a.duration))}function R(){v==null||v()}function $(){h.value=!1,ze(()=>{var B;r.value||((B=a.onClose)==null||B.call(a),o("destroy"))})}function M(B){un(B)===Te.esc&&$()}return Pt(()=>{O(),u(),h.value=!0}),be(()=>a.repeatNum,()=>{R(),O()}),an(document,"keydown",M),En(d,()=>{p.value=d.value.getBoundingClientRect().height}),t({visible:h,bottom:x,close:$}),(B,U)=>(S(),le(ws,{name:f(i).b("fade"),onBeforeEnter:U[0]||(U[0]=J=>r.value=!0),onBeforeLeave:e.onClose,onAfterLeave:U[1]||(U[1]=J=>B.$emit("destroy")),persisted:""},{default:X(()=>[Ct(A("div",{id:e.id,ref_key:"messageRef",ref:d,class:D([f(i).b(),{[f(i).m(e.type)]:e.type},f(i).is("closable",e.showClose),f(i).is("plain",e.plain),f(i).is("bottom",T.value==="bottom"),k.value,e.customClass]),style:Qe(I.value),role:"alert",onMouseenter:R,onMouseleave:O},[e.repeatNum>1?(S(),le(f(Ek),{key:0,value:e.repeatNum,type:m.value,class:D(f(i).e("badge"))},null,8,["value","type","class"])):ie("v-if",!0),b.value?(S(),le(f(Je),{key:1,class:D([f(i).e("icon"),g.value])},{default:X(()=>[(S(),le(kt(b.value)))]),_:1},8,["class"])):ie("v-if",!0),ue(B.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(S(),P(He,{key:1},[ie(" Caution here, message could've been compromised, never use user's input as message "),A("p",{class:D(f(i).e("content")),innerHTML:e.message},null,10,Vme)],2112)):(S(),P("p",{key:0,class:D(f(i).e("content"))},ge(e.message),3))]),e.showClose?(S(),le(f(Je),{key:2,class:D(f(i).e("closeBtn")),onClick:ht($,["stop"])},{default:X(()=>[W(f(s))]),_:1},8,["class"])):ie("v-if",!0)],46,Bme),[[jt,h.value]])]),_:3},8,["name","onBeforeLeave"]))}});let Hme=1;const Wme=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Xe(e.appendTo)){let n=document.querySelector(e.appendTo);ja(n)||(n=document.body),e.appendTo=n}},jme=e=>{!e.placement&&Xe(fa.placement)&&fa.placement&&(e.placement=fa.placement),e.placement||(e.placement=vv),M7.includes(e.placement)||(e.placement=vv)},P7=e=>{const t=!e||Xe(e)||vn(e)||Ze(e)?{message:e}:e,n={...va,...t};return Wme(n),jme(n),on(fa.grouping)&&!n.grouping&&(n.grouping=fa.grouping),at(fa.duration)&&n.duration===3e3&&(n.duration=fa.duration),at(fa.offset)&&n.offset===16&&(n.offset=fa.offset),on(fa.showClose)&&!n.showClose&&(n.showClose=fa.showClose),on(fa.plain)&&!n.plain&&(n.plain=fa.plain),n},Kme=e=>{const t=e.props.placement||vv,n=_r[t],s=n.indexOf(e);if(s===-1)return;n.splice(s,1);const{handler:a}=e;a.close()},Ume=({appendTo:e,...t},n)=>{const s=`message_${Hme++}`,a=t.onClose,o=document.createElement("div"),r={...t,id:s,onClose:()=>{a==null||a(),Kme(u)},onDestroy:()=>{tc(null,o)}},i=W(zme,r,Ze(r.message)||vn(r.message)?{default:Ze(r.message)?r.message:()=>r.message}:null);i.appContext=n||Vu._context,tc(i,o),e.appendChild(o.firstElementChild);const l=i.component,u={id:s,vnode:i,vm:l,handler:{close:()=>{l.exposed.close()}},props:i.component.props};return u},Vu=(e={},t)=>{if(!Xt)return{close:()=>{}};const n=P7(e),s=Nme(n.placement||vv);if(n.grouping&&s.length){const o=s.find(({vnode:r})=>{var i;return((i=r.props)==null?void 0:i.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}if(at(fa.max)&&s.length>=fa.max)return{close:()=>{}};const a=Ume(n,t);return s.push(a),a.handler};T7.forEach(e=>{Vu[e]=(t={},n)=>{const s=P7(t);return Vu({...s,type:e},n)}});function qme(e){for(const t in _r)if(Gt(_r,t)){const n=[..._r[t]];for(const s of n)(!e||e===s.props.type)&&s.handler.close()}}function Gme(e){if(!_r[e])return;[..._r[e]].forEach(n=>n.handler.close())}Vu.closeAll=qme,Vu.closeAllByPlacement=Gme,Vu._context=null;const ts=$x(Vu,"$message"),N8="_trap-focus-children",zu=[],R7=e=>{if(zu.length===0)return;const t=un(e),n=zu[zu.length-1][N8];if(n.length>0&&t===Te.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const s=e.shiftKey,a=e.target===n[0],o=e.target===n[n.length-1];a&&s&&(e.preventDefault(),n[n.length-1].focus()),o&&!s&&(e.preventDefault(),n[0].focus())}};var Yme=j({name:"ElMessageBox",directives:{TrapFocus:{beforeMount(e){e[N8]=K9(e),zu.push(e),zu.length<=1&&document.addEventListener("keydown",R7)},updated(e){ze(()=>{e[N8]=K9(e)})},unmounted(){zu.shift(),zu.length===0&&document.removeEventListener("keydown",R7)}}},components:{ElButton:Cs,ElFocusTrap:$f,ElInput:ua,ElOverlay:n6,ElIcon:Je,...qy},inheritAttrs:!1,props:{buttonSize:{type:String,validator:wT},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:s,ns:a,size:o}=Cg("message-box",E(()=>e.buttonSize)),{t:r}=n,{nextZIndex:i}=s,l=F(!1),c=Yt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Wr(Fs),cancelButtonLoadingIcon:Wr(Fs),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),u=E(()=>{const L=c.type;return{[a.bm("icon",L)]:L&&sc[L]}}),d=Bs(),h=Bs(),p=E(()=>{const L=c.type;return c.icon||L&&sc[L]||""}),v=E(()=>!!c.message),m=F(),g=F(),b=F(),C=F(),w=F(),_=E(()=>c.confirmButtonClass);be(()=>c.inputValue,async L=>{await ze(),e.boxType==="prompt"&&L&&B()},{immediate:!0}),be(()=>l.value,L=>{var N,V;L&&(e.boxType!=="prompt"&&(c.autofocus?b.value=(V=(N=w.value)==null?void 0:N.$el)!=null?V:m.value:b.value=m.value),c.zIndex=i()),e.boxType==="prompt"&&(L?ze().then(()=>{var z;C.value&&C.value.$el&&(c.autofocus?b.value=(z=U())!=null?z:m.value:b.value=m.value)}):(c.editorErrorMessage="",c.validateError=!1))});const x=E(()=>e.draggable),k=E(()=>e.overflow),{isDragging:T}=hA(m,g,x,k);Pt(async()=>{await ze(),e.closeOnHashChange&&window.addEventListener("hashchange",I)}),tn(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",I)});function I(){l.value&&(l.value=!1,ze(()=>{c.action&&t("action",c.action)}))}const O=()=>{e.closeOnClickModal&&M(c.distinguishCancelAndClose?"close":"cancel")},R=t6(O),$=L=>{var N;if(c.inputType!=="textarea"&&!((N=C.value)!=null&&N.isComposing))return L.preventDefault(),M("confirm")},M=L=>{var N;e.boxType==="prompt"&&L==="confirm"&&!B()||(c.action=L,c.beforeClose?(N=c.beforeClose)==null||N.call(c,L,c,I):I())},B=()=>{if(e.boxType==="prompt"){const L=c.inputPattern;if(L&&!L.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;const N=c.inputValidator;if(Ze(N)){const V=N(c.inputValue);if(V===!1)return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;if(Xe(V))return c.editorErrorMessage=V,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},U=()=>{var L,N;const V=(L=C.value)==null?void 0:L.$refs;return(N=V==null?void 0:V.input)!=null?N:V==null?void 0:V.textarea},J=()=>{M("close")},Y=()=>{e.closeOnPressEscape&&J()};return e.lockScroll&&i1(l,{ns:a}),{...ys(c),ns:a,overlayEvent:R,visible:l,hasMessage:v,typeClass:u,contentId:d,inputId:h,btnSize:o,iconComponent:p,confirmButtonClasses:_,rootRef:m,focusStartRef:b,headerRef:g,inputRef:C,isDragging:T,confirmRef:w,doClose:I,handleClose:J,onCloseRequested:Y,handleWrapperClick:O,handleInputEnter:$,handleAction:M,t:r}}});const Xme=["aria-label","aria-describedby"],Jme=["aria-label"],Zme=["id"];function Qme(e,t,n,s,a,o){const r=Ge("el-icon"),i=Ge("el-input"),l=Ge("el-button"),c=Ge("el-focus-trap"),u=Ge("el-overlay");return S(),le(ws,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=d=>e.$emit("vanish")),persisted:""},{default:X(()=>[Ct(W(u,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:X(()=>[A("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:D(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...d)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...d)),onMousedown:t[9]||(t[9]=(...d)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...d)),onMouseup:t[10]||(t[10]=(...d)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...d))},[W(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:X(()=>[A("div",{ref:"rootRef",class:D([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:Qe(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=ht(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(S(),P("div",{key:0,ref:"headerRef",class:D([e.ns.e("header"),{"show-close":e.showClose}])},[A("div",{class:D(e.ns.e("title"))},[e.iconComponent&&e.center?(S(),le(r,{key:0,class:D([e.ns.e("status"),e.typeClass])},{default:X(()=>[(S(),le(kt(e.iconComponent)))]),_:1},8,["class"])):ie("v-if",!0),A("span",null,ge(e.title),1)],2),e.showClose?(S(),P("button",{key:0,type:"button",class:D(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Fn(ht(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[W(r,{class:D(e.ns.e("close"))},{default:X(()=>[(S(),le(kt(e.closeIcon||"close")))]),_:1},8,["class"])],42,Jme)):ie("v-if",!0)],2)):ie("v-if",!0),A("div",{id:e.contentId,class:D(e.ns.e("content"))},[A("div",{class:D(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(S(),le(r,{key:0,class:D([e.ns.e("status"),e.typeClass])},{default:X(()=>[(S(),le(kt(e.iconComponent)))]),_:1},8,["class"])):ie("v-if",!0),e.hasMessage?(S(),P("div",{key:1,class:D(e.ns.e("message"))},[ue(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(S(),le(kt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(S(),le(kt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:ge(e.message)},null,8,["for","textContent"]))])],2)):ie("v-if",!0)],2),Ct(A("div",{class:D(e.ns.e("input"))},[W(i,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=d=>e.inputValue=d),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:D({invalid:e.validateError}),onKeydown:Fn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),A("div",{class:D(e.ns.e("errormsg")),style:Qe({visibility:e.editorErrorMessage?"visible":"hidden"})},ge(e.editorErrorMessage),7)],2),[[jt,e.showInput]])],10,Zme),A("div",{class:D(e.ns.e("btns"))},[e.showCancelButton?(S(),le(l,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:D([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=d=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Fn(ht(d=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:X(()=>[je(ge(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):ie("v-if",!0),Ct(W(l,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:D([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=d=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Fn(ht(d=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:X(()=>[je(ge(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[jt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Xme)]),_:3},8,["z-index","overlay-class","mask"]),[[jt,e.visible]])]),_:3})}var e2e=fs(Yme,[["render",Qme]]);const mv=new Map,t2e=e=>{let t=document.body;return e.appendTo&&(Xe(e.appendTo)&&(t=document.querySelector(e.appendTo)),ja(e.appendTo)&&(t=e.appendTo),ja(t)||(t=document.body)),t},n2e=(e,t,n=null)=>{const s=W(e2e,e,Ze(e.message)||vn(e.message)?{default:Ze(e.message)?e.message:()=>e.message}:null);return s.appContext=n,tc(s,t),t2e(e).appendChild(t.firstElementChild),s.component},s2e=()=>document.createElement("div"),a2e=(e,t)=>{const n=s2e();e.onVanish=()=>{tc(null,n),mv.delete(a)},e.onAction=o=>{const r=mv.get(a);let i;e.showInput?i={value:a.inputValue,action:o}:i=o,e.callback?e.callback(i,s.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(i)};const s=n2e(e,n,t),a=s.proxy;for(const o in e)Gt(e,o)&&!Gt(a.$props,o)&&(o==="closeIcon"&&bt(e[o])?a[o]=Wr(e[o]):a[o]=e[o]);return a.visible=!0,a};function ih(e,t=null){if(!Xt)return Promise.reject();let n;return Xe(e)||vn(e)?e={message:e}:n=e.callback,new Promise((s,a)=>{const o=a2e(e,t??ih._context);mv.set(o,{options:e,callback:n,resolve:s,reject:a})})}const o2e=["alert","confirm","prompt"],r2e={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};o2e.forEach(e=>{ih[e]=i2e(e)});function i2e(e){return(t,n,s,a)=>{let o="";return bt(n)?(s=n,o=""):Ht(n)?o="":o=n,ih(Object.assign({title:o,message:t,type:"",...r2e[e]},s,{boxType:e}),a)}}ih.close=()=>{mv.forEach((e,t)=>{t.doClose()}),mv.clear()},ih._context=null;const gc=ih;gc.install=e=>{gc._context=e._context,e.config.globalProperties.$msgbox=gc,e.config.globalProperties.$messageBox=gc,e.config.globalProperties.$alert=gc.alert,e.config.globalProperties.$confirm=gc.confirm,e.config.globalProperties.$prompt=gc.prompt};const l2e=gc,I7=["primary","success","info","warning","error"],c2e=Me({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:rn},id:{type:String,default:""},message:{type:re([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:re(Function),default:()=>{}},onClose:{type:re(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...I7,""],default:""},zIndex:Number,closeIcon:{type:rn,default:Ua}}),u2e={destroy:()=>!0},d2e=["id"],f2e=["textContent"],h2e={key:0},p2e=["innerHTML"];var v2e=j({name:"ElNotification",__name:"notification",props:c2e,emits:u2e,setup(e,{expose:t}){const n=e,{ns:s,zIndex:a}=Cg("notification"),{nextZIndex:o,currentZIndex:r}=a,i=F(!1);let l;const c=E(()=>{const C=n.type;return C&&sc[n.type]?s.m(C):""}),u=E(()=>n.type&&sc[n.type]||n.icon),d=E(()=>n.position.endsWith("right")?"right":"left"),h=E(()=>n.position.startsWith("top")?"top":"bottom"),p=E(()=>{var C;return{[h.value]:`${n.offset}px`,zIndex:(C=n.zIndex)!=null?C:r.value}});function v(){n.duration>0&&({stop:l}=xf(()=>{i.value&&g()},n.duration))}function m(){l==null||l()}function g(){i.value=!1}function b(C){switch(un(C)){case Te.delete:case Te.backspace:m();break;case Te.esc:i.value&&g();break;default:v();break}}return Pt(()=>{v(),o(),i.value=!0}),an(document,"keydown",b),t({visible:i,close:g}),(C,w)=>(S(),le(ws,{name:f(s).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:w[1]||(w[1]=_=>C.$emit("destroy")),persisted:""},{default:X(()=>[Ct(A("div",{id:e.id,class:D([f(s).b(),e.customClass,d.value]),style:Qe(p.value),role:"alert",onMouseenter:m,onMouseleave:v,onClick:w[0]||(w[0]=(..._)=>e.onClick&&e.onClick(..._))},[u.value?(S(),le(f(Je),{key:0,class:D([f(s).e("icon"),c.value])},{default:X(()=>[(S(),le(kt(u.value)))]),_:1},8,["class"])):ie("v-if",!0),A("div",{class:D(f(s).e("group"))},[A("h2",{class:D(f(s).e("title")),textContent:ge(e.title)},null,10,f2e),Ct(A("div",{class:D(f(s).e("content")),style:Qe(e.title?void 0:{margin:0})},[ue(C.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(S(),P(He,{key:1},[ie(" Caution here, message could've been compromised, never use user's input as message "),A("p",{innerHTML:e.message},null,8,p2e)],2112)):(S(),P("p",h2e,ge(e.message),1))])],6),[[jt,e.message]]),e.showClose?(S(),le(f(Je),{key:0,class:D(f(s).e("closeBtn")),onClick:ht(g,["stop"])},{default:X(()=>[(S(),le(kt(e.closeIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],46,d2e),[[jt,i.value]])]),_:3},8,["name","onBeforeLeave"]))}});const lh={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},U1=16;let m2e=1;const Hu=function(e={},t){if(!Xt)return{close:()=>{}};(Xe(e)||vn(e))&&(e={message:e});const n=e.position||"top-right";let s=e.offset||0;lh[n].forEach(({vm:u})=>{var d;s+=(((d=u.el)==null?void 0:d.offsetHeight)||0)+U1}),s+=U1;const a=`notification_${m2e++}`,o=e.onClose,r={...e,offset:s,id:a,onClose:()=>{g2e(a,n,o)}};let i=document.body;ja(e.appendTo)?i=e.appendTo:Xe(e.appendTo)&&(i=document.querySelector(e.appendTo)),ja(i)||(i=document.body);const l=document.createElement("div"),c=W(v2e,r,Ze(r.message)?r.message:vn(r.message)?()=>r.message:null);return c.appContext=Ht(t)?Hu._context:t,c.props.onDestroy=()=>{tc(null,l)},tc(c,l),lh[n].push({vm:c}),i.appendChild(l.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};I7.forEach(e=>{Hu[e]=(t={},n)=>((Xe(t)||vn(t))&&(t={message:t}),Hu({...t,type:e},n))});function g2e(e,t,n){const s=lh[t],a=s.findIndex(({vm:c})=>{var u;return((u=c.component)==null?void 0:u.props.id)===e});if(a===-1)return;const{vm:o}=s[a];if(!o)return;n==null||n(o);const r=o.el.offsetHeight,i=t.split("-")[0];s.splice(a,1);const l=s.length;if(!(l<1))for(let c=a;c{t.component.exposed.visible.value=!1})}function y2e(e="top-right"){var t,n,s,a;let o=((s=(n=(t=lh[e][0])==null?void 0:t.vm.component)==null?void 0:n.props)==null?void 0:s.offset)||0;for(const{vm:r}of lh[e])r.component.props.offset=o,o+=(((a=r.el)==null?void 0:a.offsetHeight)||0)+U1}Hu.closeAll=b2e,Hu.updateOffsets=y2e,Hu._context=null;const w2e=$x(Hu,"$notify");var _2e=[Ame,Ime,ts,l2e,w2e,qA],$8=az([...Sme,..._2e]);$8.install,$8.version;const cl=(e,t)=>{const n=e.__vccOpts||e;for(const[s,a]of t)n[s]=a;return n},C2e={};function S2e(e,t){const n=Ge("RouterView");return S(),le(n)}const x2e=cl(C2e,[["render",S2e]]);/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const ch=typeof document<"u";function O7(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function k2e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&O7(e.default)}const Rn=Object.assign;function D8(e,t){const n={};for(const s in t){const a=t[s];n[s]=Cr(a)?a.map(e):e(a)}return n}const gv=()=>{},Cr=Array.isArray;function L7(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const N7=/#/g,E2e=/&/g,A2e=/\//g,T2e=/=/g,M2e=/\?/g,$7=/\+/g,P2e=/%5B/g,R2e=/%5D/g,D7=/%5E/g,I2e=/%60/g,F7=/%7B/g,O2e=/%7C/g,B7=/%7D/g,L2e=/%20/g;function F8(e){return e==null?"":encodeURI(""+e).replace(O2e,"|").replace(P2e,"[").replace(R2e,"]")}function N2e(e){return F8(e).replace(F7,"{").replace(B7,"}").replace(D7,"^")}function B8(e){return F8(e).replace($7,"%2B").replace(L2e,"+").replace(N7,"%23").replace(E2e,"%26").replace(I2e,"`").replace(F7,"{").replace(B7,"}").replace(D7,"^")}function $2e(e){return B8(e).replace(T2e,"%3D")}function D2e(e){return F8(e).replace(N7,"%23").replace(M2e,"%3F")}function F2e(e){return D2e(e).replace(A2e,"%2F")}function bv(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const B2e=/\/$/,V2e=e=>e.replace(B2e,"");function V8(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=j2e(s??t,n),{fullPath:s+o+r,path:s,query:a,hash:bv(r)}}function z2e(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function V7(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function H2e(e,t,n){const s=t.matched.length-1,a=n.matched.length-1;return s>-1&&s===a&&uh(t.matched[s],n.matched[a])&&z7(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function uh(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function z7(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!W2e(e[n],t[n]))return!1;return!0}function W2e(e,t){return Cr(e)?H7(e,t):Cr(t)?H7(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function H7(e,t){return Cr(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function j2e(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;r1&&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 z8=function(e){return e.pop="pop",e.push="push",e}({}),H8=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function K2e(e){if(!e)if(ch){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),V2e(e)}const U2e=/^[^#]+#/;function q2e(e,t){return e.replace(U2e,"#")+t}function G2e(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 q1=()=>({left:window.scrollX,top:window.scrollY});function Y2e(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=G2e(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 W7(e,t){return(history.state?history.state.position-t:-1)+e}const W8=new Map;function X2e(e,t){W8.set(e,t)}function J2e(e){const t=W8.get(e);return W8.delete(e),t}function Z2e(e){return typeof e=="string"||e&&typeof e=="object"}function j7(e){return typeof e=="string"||typeof e=="symbol"}let hs=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const K7=Symbol("");hs.MATCHER_NOT_FOUND+"",hs.NAVIGATION_GUARD_REDIRECT+"",hs.NAVIGATION_ABORTED+"",hs.NAVIGATION_CANCELLED+"",hs.NAVIGATION_DUPLICATED+"";function dh(e,t){return Rn(new Error,{type:e,[K7]:!0},t)}function ul(e,t){return e instanceof Error&&K7 in e&&(t==null||!!(e.type&t))}const Q2e=["params","query","hash"];function ege(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Q2e)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function tge(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sa&&B8(a)):[s&&B8(s)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function nge(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Cr(s)?s.map(a=>a==null?null:""+a):s==null?s:""+s)}return t}const sge=Symbol(""),q7=Symbol(""),G1=Symbol(""),G7=Symbol(""),j8=Symbol("");function yv(){let e=[];function t(s){return e.push(s),()=>{const a=e.indexOf(s);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function yc(e,t,n,s,a,o=r=>r()){const r=s&&(s.enterCallbacks[a]=s.enterCallbacks[a]||[]);return()=>new Promise((i,l)=>{const c=h=>{h===!1?l(dh(hs.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?l(h):Z2e(h)?l(dh(hs.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(r&&s.enterCallbacks[a]===r&&typeof h=="function"&&r.push(h),i())},u=o(()=>e.call(s&&s.instances[a],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(h=>l(h))})}function K8(e,t,n,s,a=o=>o()){const o=[];for(const r of e)for(const i in r.components){let l=r.components[i];if(!(t!=="beforeRouteEnter"&&!r.instances[i]))if(O7(l)){const c=(l.__vccOpts||l)[t];c&&o.push(yc(c,n,s,r,i,a))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${i}" at "${r.path}"`);const d=k2e(u)?u.default:u;r.mods[i]=u,r.components[i]=d;const h=(d.__vccOpts||d)[t];return h&&yc(h,n,s,r,i,a)()}))}}return o}function age(e,t){const n=[],s=[],a=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;ruh(c,i))?s.push(i):n.push(i));const l=e.matched[r];l&&(t.matched.find(c=>uh(c,l))||a.push(l))}return[n,s,a]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let oge=()=>location.protocol+"//"+location.host;function Y7(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),V7(i,"")}return V7(n,e)+s+a}function rge(e,t,n,s){let a=[],o=[],r=null;const i=({state:h})=>{const p=Y7(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:z8.pop,direction:g?g>0?H8.forward:H8.back:H8.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(Rn({},h.state,{scroll:q1()}),"")}}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 X7(e,t,n,s=!1,a=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:a?q1():null}}function ige(e){const{history:t,location:n}=window,s={value:Y7(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:oge()+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,Rn({},t.state,X7(a.value.back,l,a.value.forward,!0),c,{position:a.value.position}),!0),s.value=l}function i(l,c){const u=Rn({},a.value,t.state,{forward:l,scroll:q1()});o(u.current,u,!0),o(l,Rn({},X7(s.value,l,null),{position:u.position+1},c),!1),s.value=l}return{location:s,state:a,push:i,replace:r}}function lge(e){e=K2e(e);const t=ige(e),n=rge(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const a=Rn({location:"",base:e,go:s,createHref:q2e.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 cge(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),lge(e)}let Wu=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Rs=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}(Rs||{});const uge={type:Wu.Static,value:""},dge=/[a-zA-Z0-9_]/;function fge(e){if(!e)return[[]];if(e==="/")return[[uge]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=Rs.Static,s=n;const a=[];let o;function r(){o&&a.push(o),o=[]}let i=0,l,c="",u="";function d(){c&&(n===Rs.Static?o.push({type:Wu.Static,value:c}):n===Rs.Param||n===Rs.ParamRegExp||n===Rs.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Wu.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;it.length?t.length===1&&t[0]===Oa.Static+Oa.Segment?1:-1:0}function Z7(e,t){let n=0;const s=e.score,a=t.score;for(;n0&&t[t.length-1]<0}const gge={strict:!1,end:!0,sensitive:!1};function bge(e,t,n){const s=vge(fge(e.path),n),a=Rn(s,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function yge(e,t){const n=[],s=new Map;t=L7(gge,t);function a(d){return s.get(d)}function o(d,h,p){const v=!p,m=tP(d);m.aliasOf=p&&p.record;const g=L7(t,d),b=[m];if("alias"in d){const _=typeof d.alias=="string"?[d.alias]:d.alias;for(const x of _)b.push(tP(Rn({},m,{components:p?p.record.components:m.components,path:x,aliasOf:p?p.record:m})))}let C,w;for(const _ of b){const{path:x}=_;if(h&&x[0]!=="/"){const k=h.record.path,T=k[k.length-1]==="/"?"":"/";_.path=h.record.path+(x&&T+x)}if(C=bge(_,h,g),p?p.alias.push(C):(w=w||C,w!==C&&w.alias.push(C),v&&d.name&&!nP(C)&&r(d.name)),sP(C)&&l(C),m.children){const k=m.children;for(let T=0;T{r(w)}:gv}function r(d){if(j7(d)){const h=s.get(d);h&&(s.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&s.delete(d.record.name),d.children.forEach(r),d.alias.forEach(r))}}function i(){return n}function l(d){const h=Cge(d,n);n.splice(h,0,d),d.record.name&&!nP(d)&&s.set(d.record.name,d)}function c(d,h){let p,v={},m,g;if("name"in d&&d.name){if(p=s.get(d.name),!p)throw dh(hs.MATCHER_NOT_FOUND,{location:d});g=p.record.name,v=Rn(eP(h.params,p.keys.filter(w=>!w.optional).concat(p.parent?p.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),d.params&&eP(d.params,p.keys.map(w=>w.name))),m=p.stringify(v)}else if(d.path!=null)m=d.path,p=n.find(w=>w.re.test(m)),p&&(v=p.parse(m),g=p.record.name);else{if(p=h.name?s.get(h.name):n.find(w=>w.re.test(h.path)),!p)throw dh(hs.MATCHER_NOT_FOUND,{location:d,currentLocation:h});g=p.record.name,v=Rn({},h.params,d.params),m=p.stringify(v)}const b=[];let C=p;for(;C;)b.unshift(C.record),C=C.parent;return{name:g,path:m,params:v,matched:b,meta:_ge(b)}}e.forEach(d=>o(d));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:c,removeRoute:r,clearRoutes:u,getRoutes:i,getRecordMatcher:a}}function eP(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function tP(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:wge(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function wge(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function nP(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function _ge(e){return e.reduce((t,n)=>Rn(t,n.meta),{})}function Cge(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;Z7(e,t[o])<0?s=o:n=o+1}const a=Sge(e);return a&&(s=t.lastIndexOf(a,s-1)),s}function Sge(e){let t=e;for(;t=t.parent;)if(sP(t)&&Z7(e,t)===0)return t}function sP({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function aP(e){const t=Ke(G1),n=Ke(G7),s=E(()=>{const l=f(e.to);return t.resolve(l)}),a=E(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const h=d.findIndex(uh.bind(null,u));if(h>-1)return h;const p=oP(l[c-2]);return c>1&&oP(u)===p&&d[d.length-1].path!==p?d.findIndex(uh.bind(null,l[c-2])):h}),o=E(()=>a.value>-1&&Age(n.params,s.value.params)),r=E(()=>a.value>-1&&a.value===n.matched.length-1&&z7(n.params,s.value.params));function i(l={}){if(Ege(l)){const c=t[f(e.replace)?"replace":"push"](f(e.to)).catch(gv);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:E(()=>s.value.href),isActive:o,isExactActive:r,navigate:i}}function xge(e){return e.length===1?e[0]:e}const kge=j({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:aP,setup(e,{slots:t}){const n=Yt(aP(e)),{options:s}=Ke(G1),a=E(()=>({[rP(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[rP(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&xge(t.default(n));return e.custom?o:ut("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}});function Ege(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Age(e,t){for(const n in t){const s=t[n],a=e[n];if(typeof s=="string"){if(s!==a)return!1}else if(!Cr(a)||a.length!==s.length||s.some((o,r)=>o.valueOf()!==a[r].valueOf()))return!1}return!0}function oP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const rP=(e,t,n)=>e??t??n,Tge=j({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ke(j8),a=E(()=>e.route||s.value),o=Ke(q7,0),r=E(()=>{let c=f(o);const{matched:u}=a.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),i=E(()=>a.value.matched[r.value]);Nt(q7,E(()=>r.value+1)),Nt(sge,i),Nt(j8,a);const l=F();return be(()=>[l.value,i.value,e.name],([c,u,d],[h,p,v])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!uh(u,p)||!h)&&(u.enterCallbacks[d]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=a.value,u=e.name,d=i.value,h=d&&d.components[u];if(!h)return iP(n.default,{Component:h,route:c});const p=d.props[u],v=p?p===!0?c.params:typeof p=="function"?p(c):p:null,g=ut(h,Rn({},v,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return iP(n.default,{Component:g,route:c})||g}}});function iP(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Mge=Tge;function Pge(e){const t=yge(e.routes,e),n=e.parseQuery||tge,s=e.stringifyQuery||U7,a=e.history,o=yv(),r=yv(),i=yv(),l=bn(bc);let c=bc;ch&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=D8.bind(null,te=>""+te),d=D8.bind(null,F2e),h=D8.bind(null,bv);function p(te,fe){let ve,ce;return j7(te)?(ve=t.getRecordMatcher(te),ce=fe):ce=te,t.addRoute(ce,ve)}function v(te){const fe=t.getRecordMatcher(te);fe&&t.removeRoute(fe)}function m(){return t.getRoutes().map(te=>te.record)}function g(te){return!!t.getRecordMatcher(te)}function b(te,fe){if(fe=Rn({},fe||l.value),typeof te=="string"){const de=V8(n,te,fe.path),ye=t.resolve({path:de.path},fe),_e=a.createHref(de.fullPath);return Rn(de,ye,{params:h(ye.params),hash:bv(de.hash),redirectedFrom:void 0,href:_e})}let ve;if(te.path!=null)ve=Rn({},te,{path:V8(n,te.path,fe.path).path});else{const de=Rn({},te.params);for(const ye in de)de[ye]==null&&delete de[ye];ve=Rn({},te,{params:d(de)}),fe.params=d(fe.params)}const ce=t.resolve(ve,fe),Z=te.hash||"";ce.params=u(h(ce.params));const H=z2e(s,Rn({},te,{hash:N2e(Z),path:ce.path})),ae=a.createHref(H);return Rn({fullPath:H,hash:Z,query:s===U7?nge(te.query):te.query||{}},ce,{redirectedFrom:void 0,href:ae})}function C(te){return typeof te=="string"?V8(n,te,l.value.path):Rn({},te)}function w(te,fe){if(c!==te)return dh(hs.NAVIGATION_CANCELLED,{from:fe,to:te})}function _(te){return T(te)}function x(te){return _(Rn(C(te),{replace:!0}))}function k(te,fe){const ve=te.matched[te.matched.length-1];if(ve&&ve.redirect){const{redirect:ce}=ve;let Z=typeof ce=="function"?ce(te,fe):ce;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=C(Z):{path:Z},Z.params={}),Rn({query:te.query,hash:te.hash,params:Z.path!=null?{}:te.params},Z)}}function T(te,fe){const ve=c=b(te),ce=l.value,Z=te.state,H=te.force,ae=te.replace===!0,de=k(ve,ce);if(de)return T(Rn(C(de),{state:typeof de=="object"?Rn({},Z,de.state):Z,force:H,replace:ae}),fe||ve);const ye=ve;ye.redirectedFrom=fe;let _e;return!H&&H2e(s,ce,ve)&&(_e=dh(hs.NAVIGATION_DUPLICATED,{to:ye,from:ce}),q(ce,ce,!0,!1)),(_e?Promise.resolve(_e):R(ye,ce)).catch(Se=>ul(Se)?ul(Se,hs.NAVIGATION_GUARD_REDIRECT)?Se:z(Se):N(Se,ye,ce)).then(Se=>{if(Se){if(ul(Se,hs.NAVIGATION_GUARD_REDIRECT))return T(Rn({replace:ae},C(Se.to),{state:typeof Se.to=="object"?Rn({},Z,Se.to.state):Z,force:H}),fe||ye)}else Se=M(ye,ce,!0,ae,Z);return $(ye,ce,Se),Se})}function I(te,fe){const ve=w(te,fe);return ve?Promise.reject(ve):Promise.resolve()}function O(te){const fe=ee.values().next().value;return fe&&typeof fe.runWithContext=="function"?fe.runWithContext(te):te()}function R(te,fe){let ve;const[ce,Z,H]=age(te,fe);ve=K8(ce.reverse(),"beforeRouteLeave",te,fe);for(const de of ce)de.leaveGuards.forEach(ye=>{ve.push(yc(ye,te,fe))});const ae=I.bind(null,te,fe);return ve.push(ae),pe(ve).then(()=>{ve=[];for(const de of o.list())ve.push(yc(de,te,fe));return ve.push(ae),pe(ve)}).then(()=>{ve=K8(Z,"beforeRouteUpdate",te,fe);for(const de of Z)de.updateGuards.forEach(ye=>{ve.push(yc(ye,te,fe))});return ve.push(ae),pe(ve)}).then(()=>{ve=[];for(const de of H)if(de.beforeEnter)if(Cr(de.beforeEnter))for(const ye of de.beforeEnter)ve.push(yc(ye,te,fe));else ve.push(yc(de.beforeEnter,te,fe));return ve.push(ae),pe(ve)}).then(()=>(te.matched.forEach(de=>de.enterCallbacks={}),ve=K8(H,"beforeRouteEnter",te,fe,O),ve.push(ae),pe(ve))).then(()=>{ve=[];for(const de of r.list())ve.push(yc(de,te,fe));return ve.push(ae),pe(ve)}).catch(de=>ul(de,hs.NAVIGATION_CANCELLED)?de:Promise.reject(de))}function $(te,fe,ve){i.list().forEach(ce=>O(()=>ce(te,fe,ve)))}function M(te,fe,ve,ce,Z){const H=w(te,fe);if(H)return H;const ae=fe===bc,de=ch?history.state:{};ve&&(ce||ae?a.replace(te.fullPath,Rn({scroll:ae&&de&&de.scroll},Z)):a.push(te.fullPath,Z)),l.value=te,q(te,fe,ve,ae),z()}let B;function U(){B||(B=a.listen((te,fe,ve)=>{if(!se.listening)return;const ce=b(te),Z=k(ce,se.currentRoute.value);if(Z){T(Rn(Z,{replace:!0,force:!0}),ce).catch(gv);return}c=ce;const H=l.value;ch&&X2e(W7(H.fullPath,ve.delta),q1()),R(ce,H).catch(ae=>ul(ae,hs.NAVIGATION_ABORTED|hs.NAVIGATION_CANCELLED)?ae:ul(ae,hs.NAVIGATION_GUARD_REDIRECT)?(T(Rn(C(ae.to),{force:!0}),ce).then(de=>{ul(de,hs.NAVIGATION_ABORTED|hs.NAVIGATION_DUPLICATED)&&!ve.delta&&ve.type===z8.pop&&a.go(-1,!1)}).catch(gv),Promise.reject()):(ve.delta&&a.go(-ve.delta,!1),N(ae,ce,H))).then(ae=>{ae=ae||M(ce,H,!1),ae&&(ve.delta&&!ul(ae,hs.NAVIGATION_CANCELLED)?a.go(-ve.delta,!1):ve.type===z8.pop&&ul(ae,hs.NAVIGATION_ABORTED|hs.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),$(ce,H,ae)}).catch(gv)}))}let J=yv(),Y=yv(),L;function N(te,fe,ve){z(te);const ce=Y.list();return ce.length?ce.forEach(Z=>Z(te,fe,ve)):console.error(te),Promise.reject(te)}function V(){return L&&l.value!==bc?Promise.resolve():new Promise((te,fe)=>{J.add([te,fe])})}function z(te){return L||(L=!te,U(),J.list().forEach(([fe,ve])=>te?ve(te):fe()),J.reset()),te}function q(te,fe,ve,ce){const{scrollBehavior:Z}=e;if(!ch||!Z)return Promise.resolve();const H=!ve&&J2e(W7(te.fullPath,0))||(ce||!ve)&&history.state&&history.state.scroll||null;return ze().then(()=>Z(te,fe,H)).then(ae=>ae&&Y2e(ae)).catch(ae=>N(ae,te,fe))}const Q=te=>a.go(te);let K;const ee=new Set,se={currentRoute:l,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:m,resolve:b,options:e,push:_,replace:x,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:o.add,beforeResolve:r.add,afterEach:i.add,onError:Y.add,isReady:V,install(te){te.component("RouterLink",kge),te.component("RouterView",Mge),te.config.globalProperties.$router=se,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>f(l)}),ch&&!K&&l.value===bc&&(K=!0,_(a.location).catch(ce=>{}));const fe={};for(const ce in bc)Object.defineProperty(fe,ce,{get:()=>l.value[ce],enumerable:!0});te.provide(G1,se),te.provide(G7,L2(fe)),te.provide(j8,l);const ve=te.unmount;ee.add(te),te.unmount=function(){ee.delete(te),ee.size<1&&(c=bc,B&&B(),B=null,l.value=bc,K=!1,L=!1),ve()}}};function pe(te){return te.reduce((fe,ve)=>fe.then(()=>O(ve)),Promise.resolve())}return se}function lP(){return Ke(G1)}const Rge={class:"card-title"},Ige={class:"batch-area"},Oge={class:"batch-input-row"},Lge={key:0,class:"batch-preview"},Nge={class:"batch-summary"},$ge={class:"batch-limit-row"},Dge={key:0,class:"batch-more-hint"},Fge={key:1,class:"batch-empty"},Bge={class:"option-row"},Vge={class:"mode-hint"},zge={class:"option-row"},Hge={class:"option-row"},Wge={class:"submit-row"},jge=cl({__name:"FileUpload",emits:["submit"],setup(e,{emit:t}){const n=t,s=F("file"),a=F([]),o=F(null),r=F(""),i=F(["excel","json"]),l=F("drawing"),c=F(!0),u=F(null),d=F(null),h=F(null),p=F([]),v=F(200),m=E(()=>p.value.slice(0,v.value).map(O=>({name:O.webkitRelativePath||O.name,size:g(O.size),raw:O})));function g(O){return O<1024?`${O} B`:O<1024*1024?`${(O/1024).toFixed(1)} KB`:`${(O/(1024*1024)).toFixed(1)} MB`}function b(){var O;(O=d.value)==null||O.click()}function C(){var O;(O=h.value)==null||O.click()}function w(O){const R=Array.from(O.target.files||[]).filter($=>$.name.toLowerCase().endsWith(".pdf"));if(!R.length){ts.warning("未找到 PDF 文件");return}p.value=R,v.value=R.length,O.target.value=""}function _(){p.value=[],v.value=200}const x=E(()=>i.value.length===0?!1:s.value==="file"?!!o.value:s.value==="url"?r.value.trim().startsWith("http"):s.value==="batch"?p.value.length>0:!1);function k(O){o.value=O.raw,a.value=[O]}function T(){ts.warning("只能上传一个 PDF 文件,请先移除后再添加")}function I(){if(x.value){if(s.value==="batch"){const O=p.value.slice(0,v.value);n("submit",{file:null,url:null,files:O,formats:i.value,mode:l.value,autoCorrect:c.value,maxConcurrent:40,batch:!0});return}n("submit",{file:s.value==="file"?o.value:null,url:s.value==="url"?r.value.trim():null,files:null,formats:i.value,mode:l.value,autoCorrect:c.value,maxConcurrent:40,batch:!1})}}return(O,R)=>{const $=Ge("Upload"),M=Ge("el-icon"),B=Ge("UploadFilled"),U=Ge("el-upload"),J=Ge("el-tab-pane"),Y=Ge("Link"),L=Ge("el-input"),N=Ge("el-button"),V=Ge("el-tag"),z=Ge("el-input-number"),q=Ge("el-table-column"),Q=Ge("el-table"),K=Ge("el-tabs"),ee=Ge("el-radio-button"),se=Ge("el-radio-group"),pe=Ge("el-switch"),te=Ge("Grid"),fe=Ge("el-checkbox"),ve=Ge("DataLine"),ce=Ge("el-checkbox-group"),Z=Ge("el-card");return S(),le(Z,{class:"upload-card",shadow:"never"},{header:X(()=>[A("div",Rge,[W(M,null,{default:X(()=>[W($)]),_:1}),R[7]||(R[7]=A("span",null,"上传 PDF 文件",-1))])]),default:X(()=>[W(K,{modelValue:s.value,"onUpdate:modelValue":R[3]||(R[3]=H=>s.value=H),class:"upload-tabs"},{default:X(()=>[W(J,{label:"本地上传",name:"file"},{default:X(()=>[W(U,{ref_key:"uploadRef",ref:u,class:"drop-area",drag:"","auto-upload":!1,accept:".pdf",limit:1,"on-change":k,"on-exceed":T,"file-list":a.value},{tip:X(()=>[...R[8]||(R[8]=[A("div",{class:"upload-tip"},"支持单个 PDF 文件,最大 500MB",-1)])]),default:X(()=>[W(M,{class:"upload-icon"},{default:X(()=>[W(B)]),_:1}),R[9]||(R[9]=A("div",{class:"upload-text"},[je("拖拽 PDF 文件到此处,或 "),A("em",null,"点击选择")],-1))]),_:1},8,["file-list"])]),_:1}),W(J,{label:"网络 URL",name:"url"},{default:X(()=>[W(L,{modelValue:r.value,"onUpdate:modelValue":R[0]||(R[0]=H=>r.value=H),placeholder:"输入 PDF 文件的网络地址,例如 https://example.com/file.pdf",clearable:"",size:"large"},{prepend:X(()=>[W(M,null,{default:X(()=>[W(Y)]),_:1})]),_:1},8,["modelValue"])]),_:1}),W(J,{label:"批量解析",name:"batch"},{default:X(()=>[A("div",Ige,[A("div",Oge,[W(N,{icon:f(Ag),onClick:b},{default:X(()=>[...R[10]||(R[10]=[je(" 选择文件夹 ",-1)])]),_:1},8,["icon"]),W(N,{icon:f(Yx),onClick:C},{default:X(()=>[...R[11]||(R[11]=[je(" 选择多个文件 ",-1)])]),_:1},8,["icon"]),A("input",{ref_key:"folderInputRef",ref:d,type:"file",accept:".pdf",webkitdirectory:"",multiple:"",style:{display:"none"},onChange:w},null,544),A("input",{ref_key:"multiInputRef",ref:h,type:"file",accept:".pdf",multiple:"",style:{display:"none"},onChange:w},null,544)]),p.value.length?(S(),P("div",Lge,[A("div",Nge,[W(V,{type:"success"},{default:X(()=>[je(" 共检测到 "+ge(p.value.length)+" 个 PDF 文件 ",1)]),_:1}),p.value.length>v.value?(S(),le(V,{key:0,type:"warning"},{default:X(()=>[je(" 当前限制解析前 "+ge(v.value)+" 个 ",1)]),_:1})):ie("",!0),A("div",$ge,[R[13]||(R[13]=A("span",{class:"option-label"},"解析数量:",-1)),W(z,{modelValue:v.value,"onUpdate:modelValue":R[1]||(R[1]=H=>v.value=H),min:1,max:p.value.length,size:"small",step:10,style:{width:"120px"}},null,8,["modelValue","max"]),W(N,{size:"small",text:"",onClick:R[2]||(R[2]=H=>v.value=p.value.length)},{default:X(()=>[...R[12]||(R[12]=[je("全部",-1)])]),_:1})])]),W(Q,{data:m.value,size:"small","max-height":"200",class:"batch-table","highlight-current-row":""},{default:X(()=>[W(q,{type:"index",width:"50",label:"#"}),W(q,{prop:"name",label:"文件名","show-overflow-tooltip":""}),W(q,{prop:"size",label:"大小",width:"90",align:"right"})]),_:1},8,["data"]),p.value.length>v.value?(S(),P("div",Dge," ... 还有 "+ge(p.value.length-v.value)+" 个文件未显示(超出解析数量限制) ",1)):ie("",!0),W(N,{size:"small",text:"",type:"danger",onClick:_,class:"batch-clear-btn"},{default:X(()=>[...R[14]||(R[14]=[je("清除",-1)])]),_:1})])):(S(),P("div",Fge,[W(M,{size:"40",color:"#c0c4cc"},{default:X(()=>[W(f(Ag))]),_:1}),R[15]||(R[15]=A("p",null,"选择包含 PDF 的文件夹,或直接选择多个 PDF 文件",-1)),R[16]||(R[16]=A("p",{class:"batch-hint"},"支持 100+ 文件批量处理,逐文件顺序解析",-1))]))])]),_:1})]),_:1},8,["modelValue"]),A("div",Bge,[R[19]||(R[19]=A("span",{class:"option-label"},"识别模式:",-1)),W(se,{modelValue:l.value,"onUpdate:modelValue":R[4]||(R[4]=H=>l.value=H),size:"small"},{default:X(()=>[W(ee,{value:"drawing"},{default:X(()=>[...R[17]||(R[17]=[je("图纸模式",-1)])]),_:1}),W(ee,{value:"auto"},{default:X(()=>[...R[18]||(R[18]=[je("自动识别",-1)])]),_:1})]),_:1},8,["modelValue"]),A("span",Vge,ge(l.value==="drawing"?"管道轴测图:每页均为图纸,复用第1页区域配置,40并发高速识别":"VL 自动分类:图纸页专项裁剪,文字页通用识别,40并发"),1)]),A("div",zge,[R[20]||(R[20]=A("span",{class:"option-label"},"自动纠错:",-1)),W(pe,{modelValue:c.value,"onUpdate:modelValue":R[5]||(R[5]=H=>c.value=H),"active-text":"启用","inactive-text":"关闭"},null,8,["modelValue"]),R[21]||(R[21]=A("span",{class:"mode-hint"},"识别完成后调用 LLM 对结果进行连续性校验与自动修正",-1))]),A("div",Hge,[R[24]||(R[24]=A("span",{class:"option-label"},"导出格式:",-1)),W(ce,{modelValue:i.value,"onUpdate:modelValue":R[6]||(R[6]=H=>i.value=H)},{default:X(()=>[W(fe,{value:"excel",label:"excel"},{default:X(()=>[W(M,null,{default:X(()=>[W(te)]),_:1}),R[22]||(R[22]=je(" Excel ",-1))]),_:1}),W(fe,{value:"json",label:"json"},{default:X(()=>[W(M,null,{default:X(()=>[W(ve)]),_:1}),R[23]||(R[23]=je(" JSON ",-1))]),_:1})]),_:1},8,["modelValue"])]),A("div",Wge,[W(N,{type:"primary",size:"large",disabled:!x.value,icon:s.value==="batch"?f(Vy):f(s9),onClick:I},{default:X(()=>[je(ge(s.value==="batch"?`批量解析 ${Math.min(v.value,p.value.length)} 个文件`:"开始识别"),1)]),_:1},8,["disabled","icon"])])]),_:1})}}},[["__scopeId","data-v-a0c75cf1"]]),Y1="http://47.104.102.122:8000/api/ocr";function Kge(e,t=["excel","json"],n,s="drawing",a=!0,o=null){const r=new FormData;r.append("file",e),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(`${Y1}/upload`,{method:"POST",body:r,signal:i.signal}).then(l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return U8(l,n)}).catch(l=>{l.name!=="AbortError"&&n({type:"error",data:{message:l.message}})}),()=>i.abort()}function Uge(e,t=["excel","json"],n,s="drawing",a=!0){const o=new AbortController;return fetch(`${Y1}/url`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e,export_formats:t,pdf_mode:s,auto_correct:a}),signal:o.signal}).then(r=>{if(!r.ok)throw new Error(`HTTP ${r.status}`);return U8(r,n)}).catch(r=>{r.name!=="AbortError"&&n({type:"error",data:{message:r.message}})}),()=>o.abort()}async function U8(e,t){const n=e.body.getReader(),s=new TextDecoder;let a="";for(;;){const{done:o,value:r}=await n.read();if(o)break;a+=s.decode(r,{stream:!0});const i=a.split(` `);a=i.pop()??"";for(const l of i)if(l.startsWith("data: "))try{const c=JSON.parse(l.slice(6));t(c)}catch{}}}function X1(e,t){return`${Y1}/download/${e}/${t}`}function qge(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(`${Y1}/batch`,{method:"POST",body:r,signal:i.signal}).then(l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return U8(l,n)}).catch(l=>{l.name!=="AbortError"&&n({type:"error",data:{message:l.message}})}),()=>i.abort()}const Gge={class:"panel-header"},Yge={class:"panel-title"},Xge={class:"panel-actions"},Jge={key:0,class:"overall-progress"},Zge={class:"progress-label"},Qge={key:0,class:"current-file"},e1e={key:0,class:"current-msg"},t1e={key:1,class:"summary-row"},n1e={key:1,class:"row-msg"},s1e={key:2,class:"text-danger"},a1e={key:3,class:"text-success"},o1e=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({});be(()=>n.batchEvents,w=>{for(const _ of w)o(_)},{deep:!0});function o(w){const{type:_,data:x}=w;if(_==="file_start")a.value[x.filename]={filename:x.filename,status:"processing",pages:0,message:"准备中...",percent:0,sessionId:null,error:null,success:!1};else if(_==="file_progress"){const k=a.value[x.filename];k&&(k.message=x.message||k.message,x.percent!=null&&(k.percent=x.percent))}else _==="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}:_==="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,_)=>w+(_.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 _=X1(n.mergedSessionId,w),x=document.createElement("a");x.href=_,x.download=w,document.body.appendChild(x),x.click(),document.body.removeChild(x)}function C(w,_,x){const k=X1(w,_),T=_.endsWith(".xlsx")?".xlsx":".json",I=x?x.replace(/\.pdf$/i,"")+T:_,O=document.createElement("a");O.href=k,O.download=I,document.body.appendChild(O),O.click(),document.body.removeChild(O)}return(w,_)=>{const x=Ge("el-icon"),k=Ge("el-tag"),T=Ge("el-button"),I=Ge("el-progress"),O=Ge("el-statistic"),R=Ge("el-table-column"),$=Ge("el-table"),M=Ge("el-card");return S(),le(M,{class:"batch-result-card",shadow:"never"},{header:X(()=>[A("div",Gge,[A("div",Yge,[W(x,null,{default:X(()=>[W(f(Vy))]),_:1}),_[3]||(_[3]=A("span",null,"批量解析结果",-1)),e.batchDone?(S(),le(k,{key:0,type:"success",size:"small"},{default:X(()=>[je(" 完成 "+ge(l.value)+"/"+ge(e.totalFiles),1)]),_:1})):ie("",!0),c.value>0?(S(),le(k,{key:1,type:"danger",size:"small"},{default:X(()=>[je(" 失败 "+ge(c.value),1)]),_:1})):ie("",!0)]),A("div",Xge,[e.mergedSessionId?(S(),P(He,{key:0},[m.value?(S(),le(T,{key:0,type:"primary",size:"small",icon:f(Qi),onClick:_[0]||(_[0]=B=>b("result.xlsx"))},{default:X(()=>[..._[4]||(_[4]=[je("下载合并 Excel",-1)])]),_:1},8,["icon"])):ie("",!0),g.value?(S(),le(T,{key:1,size:"small",icon:f(Qi),onClick:_[1]||(_[1]=B=>b("result.json"))},{default:X(()=>[..._[5]||(_[5]=[je("下载合并 JSON",-1)])]),_:1},8,["icon"])):ie("",!0)],64)):ie("",!0),W(T,{size:"small",plain:"",onClick:_[2]||(_[2]=B=>s("reset"))},{default:X(()=>[..._[6]||(_[6]=[je("重新开始",-1)])]),_:1})])])]),default:X(()=>[e.batchDone?ie("",!0):(S(),P("div",Jge,[A("div",Zge,[je(" 已完成 "+ge(i.value)+" / "+ge(e.totalFiles)+" 个文件 ",1),p.value?(S(),P("span",Qge," — 正在处理:"+ge(p.value),1)):ie("",!0)]),W(I,{percentage:d.value,"stroke-width":10,striped:"","striped-flow":"",duration:10,status:""},null,8,["percentage"]),v.value?(S(),P("div",e1e,ge(v.value),1)):ie("",!0)])),e.batchDone?(S(),P("div",t1e,[W(O,{title:"总文件数",value:e.totalFiles},null,8,["value"]),W(O,{title:"成功解析",value:l.value,"value-style":"color:#67c23a"},null,8,["value"]),W(O,{title:"失败文件",value:c.value,"value-style":"color:#f56c6c"},null,8,["value"]),W(O,{title:"合计页数",value:u.value},null,8,["value"])])):ie("",!0),W($,{data:r.value,size:"small",class:"file-table","max-height":"420",stripe:""},{default:X(()=>[W(R,{type:"index",width:"55",label:"#",align:"center"}),W(R,{label:"文件名","min-width":"220","show-overflow-tooltip":""},{default:X(({row:B})=>[A("span",{class:D(B.success?"":"text-danger")},ge(B.filename),3)]),_:1}),W(R,{label:"状态",width:"110",align:"center"},{default:X(({row:B})=>[B.status==="done"?(S(),le(k,{key:0,type:"success",size:"small"},{default:X(()=>[W(x,null,{default:X(()=>[W(f(xp))]),_:1}),_[7]||(_[7]=je(" 完成 ",-1))]),_:1})):B.status==="error"?(S(),le(k,{key:1,type:"danger",size:"small"},{default:X(()=>[W(x,null,{default:X(()=>[W(f(Do))]),_:1}),_[8]||(_[8]=je(" 失败 ",-1))]),_:1})):B.status==="processing"?(S(),le(k,{key:2,type:"warning",size:"small"},{default:X(()=>[W(x,null,{default:X(()=>[W(f(Fs))]),_:1}),_[9]||(_[9]=je(" 处理中 ",-1))]),_:1})):(S(),le(k,{key:3,type:"info",size:"small"},{default:X(()=>[..._[10]||(_[10]=[je("等待",-1)])]),_:1}))]),_:1}),W(R,{label:"页数",width:"70",align:"center",prop:"pages"}),W(R,{label:"进度/错误信息","min-width":"260","show-overflow-tooltip":""},{default:X(({row:B})=>[B.status==="processing"&&B.percent!=null?(S(),le(I,{key:0,percentage:B.percent,"stroke-width":6,striped:"","striped-flow":"",duration:8,class:"row-progress"},null,8,["percentage"])):B.status==="processing"?(S(),P("span",n1e,ge(B.message),1)):B.status==="error"?(S(),P("span",s1e,ge(B.error),1)):B.status==="done"?(S(),P("span",a1e,"识别完成")):ie("",!0)]),_:1}),W(R,{label:"下载",width:"80",align:"center"},{default:X(({row:B})=>[B.sessionId?(S(),le(T,{key:0,size:"small",text:"",type:"primary",icon:f(Qi),title:"下载 Excel",onClick:U=>C(B.sessionId,"result.xlsx",B.filename)},null,8,["icon","onClick"])):ie("",!0)]),_:1})]),_:1},8,["data"])]),_:1})}}},[["__scopeId","data-v-d95acc72"]]),r1e={class:"card-title"},i1e={key:0,class:"page-indicator"},l1e={class:"log-time"},c1e=cl({__name:"ProgressTracker",props:{logs:{type:Array,default:()=>[]},percent:{type:Number,default:0},totalPages:{type:Number,default:0},currentPage:{type:Number,default:0}},setup(e){const t=e,n=F(null),s=Date.now(),a=[{color:"#409EFF",percentage:40},{color:"#67C23A",percentage:80},{color:"#E6A23C",percentage:100}];function o(r){return`[${Math.round((Date.now()-s)/1e3)}s]`}return be(()=>t.logs.length,async()=>{await ze(),n.value&&(n.value.scrollTop=n.value.scrollHeight)}),(r,i)=>{const l=Ge("Loading"),c=Ge("el-icon"),u=Ge("el-progress"),d=Ge("el-card");return S(),le(d,{class:"progress-card",shadow:"never"},{header:X(()=>[A("div",r1e,[W(c,{class:"spin"},{default:X(()=>[W(l)]),_:1}),i[0]||(i[0]=A("span",null,"正在处理中...",-1)),e.totalPages>0?(S(),P("span",i1e," 第 "+ge(e.currentPage)+" / "+ge(e.totalPages)+" 页 ",1)):ie("",!0)])]),default:X(()=>[W(u,{percentage:e.percent,"stroke-width":14,color:a,class:"main-progress"},null,8,["percentage"]),A("div",{class:"log-container",ref_key:"logContainer",ref:n},[(S(!0),P(He,null,Et(e.logs,(h,p)=>(S(),P("div",{key:p,class:D(["log-item",{"log-success":h.includes("✓")||h.includes("✅"),"log-error":h.includes("❌")}])},[A("span",l1e,ge(o(p)),1),je(" "+ge(h),1)],2))),128))],512)]),_:1})}}},[["__scopeId","data-v-673aebf7"]]),u1e={class:"flagged-cell"},d1e={key:1},f1e={class:"row-count"},h1e={key:1,class:"raw-text"},p1e=cl({__name:"Parts3Table",props:{data:{type:[Object,null],default:null}},setup(e){const t=e,n=new Set(["_flags","_corrections"]),s={seq_no:"序号",category:"类别",description:"材料描述",size:"SIZE",code:"材料代号",qty:"数量",pipe_no:"管道号",unit:"单位",material:"材质",remark:"备注",spec:"公称直径"},a={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:"尺寸前缀数字粘连"},o=E(()=>{if(!t.data)return[];const d=t.data;return d.rows&&Array.isArray(d.rows)?d.rows:d.data&&Array.isArray(d.data)?d.data:d.items&&Array.isArray(d.items)?d.items:[]}),r=E(()=>{if(o.value.length===0)return[];const d=new Set;return o.value.slice(0,5).forEach(h=>Object.keys(h).forEach(p=>d.add(p))),Array.from(d).filter(h=>!n.has(h))}),i=E(()=>t.data&&t.data.raw_text||"");function l(d){return s[d]||d}function c(d,h){var g,b;const p=(g=d._flags)==null?void 0:g[h],v=a[p]||p||"",m=(b=d._corrections)==null?void 0:b[h];return m!=null?`[已修正] 原值:${m} ${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=Ge("el-tooltip"),v=Ge("el-table-column"),m=Ge("el-table"),g=Ge("el-empty");return S(),P("div",null,[o.value.length>0?(S(),P(He,{key:0},[W(m,{data:o.value,border:"",stripe:"",size:"small",style:{width:"100%"},"max-height":500,"cell-style":u},{default:X(()=>[(S(!0),P(He,null,Et(r.value,b=>(S(),le(v,{key:b,prop:b,label:l(b),"min-width":"100"},{default:X(({row:C})=>[C._flags&&C._flags[b]?(S(),le(p,{key:0,content:c(C,b),placement:"top","show-after":300},{default:X(()=>[A("span",u1e,ge(C[b]),1)]),_:2},1032,["content"])):(S(),P("span",d1e,ge(C[b]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),A("div",f1e,"共 "+ge(o.value.length)+" 行",1)],64)):i.value?(S(),P("pre",h1e,ge(i.value),1)):(S(),le(g,{key:2,description:"暂无识别数据","image-size":60}))])}}},[["__scopeId","data-v-bfa225df"]]),v1e={key:1,class:"raw-text"},cP=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=Ge("el-descriptions-item"),i=Ge("el-descriptions"),l=Ge("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(He,null,Et(n.value,({key:c,value:u})=>(S(),le(r,{key:c,label:c},{default:X(()=>[je(ge(u),1)]),_:2},1032,["label"]))),128))]),_:1})):s.value?(S(),P("pre",v1e,ge(s.value),1)):(S(),le(l,{key:2,description:"暂无数据","image-size":50}))])}}},[["__scopeId","data-v-9250db36"]]),m1e={class:"toolbar"},g1e={class:"result-summary"},b1e={key:0,class:"token-hint"},y1e={class:"btn-group"},w1e={key:0},_1e={key:1},C1e={key:0,style:{color:"#e6a23c"}},S1e={key:0,class:"reason-tags"},x1e={key:2,class:"page-detail"},uP=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=X1(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=Ge("CircleCheck"),h=Ge("el-icon"),p=Ge("el-button"),v=Ge("el-card"),m=Ge("el-tag"),g=Ge("el-alert"),b=Ge("el-tab-pane"),C=Ge("el-tabs"),w=Ge("el-col"),_=Ge("el-row");return S(),P("div",null,[W(v,{class:"toolbar-card",shadow:"never"},{default:X(()=>[A("div",m1e,[A("div",g1e,[W(h,{color:"#67C23A",size:"20"},{default:X(()=>[W(d)]),_:1}),A("span",null,[u[4]||(u[4]=je("识别完成,共处理 ",-1)),A("strong",null,ge(e.pagesData.length),1),u[5]||(u[5]=je(" 页",-1))]),e.tokenUsage?(S(),P("span",b1e," · "+ge(e.tokenUsage.total_tokens.toLocaleString())+" tokens  ¥"+ge(e.tokenUsage.cost_cny),1)):ie("",!0)]),A("div",y1e,[e.sessionId?(S(),le(p,{key:0,type:"success",icon:f(Qi),onClick:u[0]||(u[0]=x=>r("excel"))},{default:X(()=>[...u[6]||(u[6]=[je(" 下载 Excel ",-1)])]),_:1},8,["icon"])):ie("",!0),e.sessionId?(S(),le(p,{key:1,type:"info",icon:f(Qi),onClick:u[1]||(u[1]=x=>r("json"))},{default:X(()=>[...u[7]||(u[7]=[je(" 下载 JSON ",-1)])]),_:1},8,["icon"])):ie("",!0),W(p,{icon:f(Tg),onClick:u[2]||(u[2]=x=>s("reset"))},{default:X(()=>[...u[8]||(u[8]=[je(" 重新识别 ",-1)])]),_:1},8,["icon"])])])]),_:1}),e.correctionSummary?(S(),le(g,{key:0,class:"correction-alert",closable:!0,"show-icon":"",type:e.correctionSummary.flagged_rows>0?e.correctionSummary.corrected_rows>0?"warning":"error":"success"},{title:X(()=>[e.correctionSummary.flagged_rows===0?(S(),P("span",w1e,"OCR 校验通过,未发现异常")):(S(),P("span",_1e,[u[9]||(u[9]=je(" 发现 ",-1)),A("strong",null,ge(e.correctionSummary.flagged_rows),1),u[10]||(u[10]=je(" 行存疑内容,已自动修正 ",-1)),A("strong",null,ge(e.correctionSummary.corrected_rows),1),u[11]||(u[11]=je(" 行 ",-1)),e.correctionSummary.flagged_rows>e.correctionSummary.corrected_rows?(S(),P("span",C1e,"(剩余 "+ge(e.correctionSummary.flagged_rows-e.correctionSummary.corrected_rows)+" 行已在 Excel 中标红)",1)):ie("",!0)]))]),default:X(()=>[e.correctionSummary.reasons&&Object.keys(e.correctionSummary.reasons).length?(S(),P("div",S1e,[(S(!0),P(He,null,Et(e.correctionSummary.reasons,(x,k)=>(S(),le(m,{key:k,size:"small",type:k==="llm_corrected"||k==="rule_corrected"?"success":k==="llm_suspicious"?"danger":"warning",class:"reason-tag"},{default:X(()=>[je(ge(l(k))+"×"+ge(x),1)]),_:2},1032,["type"]))),128))])):ie("",!0)]),_:1},8,["type"])):ie("",!0),e.pagesData.length>1?(S(),le(C,{key:1,modelValue:a.value,"onUpdate:modelValue":u[3]||(u[3]=x=>a.value=x),class:"page-tabs"},{default:X(()=>[(S(!0),P(He,null,Et(e.pagesData,x=>(S(),le(b,{key:x.page,label:`第 ${x.page} 页`,name:String(x.page)},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):ie("",!0),o.value?(S(),P("div",x1e,[W(v,{shadow:"never",class:"part-card parts3-card"},{header:X(()=>[...u[12]||(u[12]=[A("span",{class:"part-label parts3-label"},"⭐ 材料明细(Parts 3)",-1)])]),default:X(()=>[W(p1e,{data:o.value.parts3},null,8,["data"])]),_:1}),W(_,{gutter:16,class:"meta-row"},{default:X(()=>[W(w,{span:12},{default:X(()=>[W(v,{shadow:"never",class:"part-card"},{header:X(()=>[...u[13]||(u[13]=[A("span",{class:"part-label"},"标题栏(Parts 1)",-1)])]),default:X(()=>[W(cP,{data:o.value.parts1},null,8,["data"])]),_:1})]),_:1}),W(w,{span:12},{default:X(()=>[W(v,{shadow:"never",class:"part-card"},{header:X(()=>[...u[14]||(u[14]=[A("span",{class:"part-label"},"附属信息(Parts 2)",-1)])]),default:X(()=>[W(cP,{data:o.value.parts2},null,8,["data"])]),_:1})]),_:1})]),_:1})])):ie("",!0)])}}},[["__scopeId","data-v-7ae18195"]]),k1e={class:"toolbar"},E1e={class:"result-summary"},A1e={key:0,class:"token-hint"},T1e={class:"btn-group"},M1e={key:1,class:"page-content"},P1e={class:"table-header"},R1e={key:0,class:"table-title"},I1e={class:"para-label"},O1e={key:0,class:"para-title"},L1e={class:"para-text"},dP=cl({__name:"GeneralResultPanel",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:""}},emits:["reset"],setup(e,{emit:t}){const n=e,s=t,a=F("1"),o=E(()=>{const d=parseInt(a.value);return n.pagesData.find(h=>h.page===d)||n.pagesData[0]}),r=E(()=>n.pagesData.reduce((d,h)=>{var p;return d+(((p=h.tables)==null?void 0:p.length)||0)},0)),i=E(()=>n.pagesData.reduce((d,h)=>{var p;return d+(((p=h.paragraphs)==null?void 0:p.length)||0)},0));function l(d){return(d.rows||[]).map(h=>{const p={};return(h||[]).forEach((v,m)=>{p[String(m)]=v}),p})}function c(d){const h=d.headers||[];return h.length?h:((d.rows||[])[0]||[]).map((v,m)=>`列${m+1}`)}function u(d){const h=d==="excel"?".xlsx":".json",p=n.outputFilenames[d]||`result${h}`,v=X1(n.sessionId,p),m=document.createElement("a");m.href=v,m.download=p,document.body.appendChild(m),m.click(),document.body.removeChild(m)}return(d,h)=>{var T,I,O,R;const p=Ge("CircleCheck"),v=Ge("el-icon"),m=Ge("el-button"),g=Ge("el-card"),b=Ge("el-tab-pane"),C=Ge("el-tabs"),w=Ge("el-empty"),_=Ge("el-tag"),x=Ge("el-table-column"),k=Ge("el-table");return S(),P("div",null,[W(g,{class:"toolbar-card",shadow:"never"},{default:X(()=>[A("div",k1e,[A("div",E1e,[W(v,{color:"#67C23A",size:"20"},{default:X(()=>[W(p)]),_:1}),A("span",null,[h[4]||(h[4]=je("通用识别完成,共 ",-1)),A("strong",null,ge(e.pagesData.length),1),h[5]||(h[5]=je(" 页  ·  ",-1)),A("strong",null,ge(r.value),1),h[6]||(h[6]=je(" 张表格  ·  ",-1)),A("strong",null,ge(i.value),1),h[7]||(h[7]=je(" 段文字",-1))]),e.tokenUsage?(S(),P("span",A1e," · "+ge(e.tokenUsage.total_tokens.toLocaleString())+" tokens  ¥"+ge(e.tokenUsage.cost_cny),1)):ie("",!0)]),A("div",T1e,[e.sessionId?(S(),le(m,{key:0,type:"success",icon:f(Qi),onClick:h[0]||(h[0]=$=>u("excel"))},{default:X(()=>[...h[8]||(h[8]=[je("下载 Excel",-1)])]),_:1},8,["icon"])):ie("",!0),e.sessionId?(S(),le(m,{key:1,type:"info",icon:f(Qi),onClick:h[1]||(h[1]=$=>u("json"))},{default:X(()=>[...h[9]||(h[9]=[je("下载 JSON",-1)])]),_:1},8,["icon"])):ie("",!0),W(m,{icon:f(Tg),onClick:h[2]||(h[2]=$=>s("reset"))},{default:X(()=>[...h[10]||(h[10]=[je("重新识别",-1)])]),_:1},8,["icon"])])])]),_:1}),e.pagesData.length>1?(S(),le(C,{key:0,modelValue:a.value,"onUpdate:modelValue":h[3]||(h[3]=$=>a.value=$),class:"page-tabs"},{default:X(()=>[(S(!0),P(He,null,Et(e.pagesData,$=>(S(),le(b,{key:$.page,label:`第 ${$.page} 页`,name:String($.page)},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):ie("",!0),o.value?(S(),P("div",M1e,[!((T=o.value.tables)!=null&&T.length)&&!((I=o.value.paragraphs)!=null&&I.length)?(S(),le(w,{key:0,description:"本页未识别到表格或文字","image-size":80})):ie("",!0),(O=o.value.tables)!=null&&O.length?(S(!0),P(He,{key:1},Et(o.value.tables,($,M)=>(S(),le(g,{key:M,class:"table-card",shadow:"never"},{header:X(()=>[A("div",P1e,[W(_,{size:"small",type:"warning"},{default:X(()=>[je("表格 "+ge(M+1),1)]),_:2},1024),$.title?(S(),P("span",R1e,ge($.title),1)):ie("",!0)])]),default:X(()=>[W(k,{data:l($),size:"small",border:"",stripe:"",style:{width:"100%"},"max-height":"400"},{default:X(()=>[(S(!0),P(He,null,Et(c($),(B,U)=>(S(),le(x,{key:U,label:B,prop:String(U),"min-width":"120","show-overflow-tooltip":""},null,8,["label","prop"]))),128))]),_:2},1032,["data"])]),_:2},1024))),128)):ie("",!0),(R=o.value.paragraphs)!=null&&R.length?(S(),le(g,{key:2,class:"para-card",shadow:"never"},{header:X(()=>[A("span",I1e,"📝 段落文字("+ge(o.value.paragraphs.length)+" 段)",1)]),default:X(()=>[(S(!0),P(He,null,Et(o.value.paragraphs,($,M)=>(S(),P("div",{key:M,class:"para-item"},[$.title?(S(),P("div",O1e,ge($.title),1)):ie("",!0),A("pre",L1e,ge($.text),1)]))),128))]),_:1})):ie("",!0)])):ie("",!0)])}}},[["__scopeId","data-v-5cd76fd5"]]),N1e={class:"ocr-app"},$1e={class:"header-inner"},D1e={class:"header-actions"},F1e={class:"auto-section-title"},B1e={class:"auto-section-title"},V1e={__name:"App",setup(e){const t=lP();function n(){window.open("/docs","_blank")}const s=F(!1),a=F(!1),o=F(""),r=F([]),i=F(0),l=F(0),c=F(0),u=F([]),d=F(""),h=F({}),p=F(null),v=F("drawing"),m=F(""),g=F(null),b=F({}),C=F(!1),w=F(!1),_=F(!1),x=F([]),k=F(0),T=F(""),I=F({}),O=E(()=>u.value.filter(L=>L.page_type==="drawing")),R=E(()=>u.value.filter(L=>L.page_type==="table"||L.page_type==="text"));let $=null;function M({file:L,url:N,files:V,formats:z,mode:q,autoCorrect:Q,maxConcurrent:K,batch:ee}){Y(),v.value=q||"drawing";const se=K||null;if(ee&&V&&V.length){C.value=!0,w.value=!0,k.value=V.length,x.value=[],$=qge(V,z,U,v.value,Q!==!1,se);return}s.value=!0,L&&(m.value=L.name.replace(/\.pdf$/i,""));const pe=te=>{B(te)};L?$=Kge(L,z,pe,v.value,Q!==!1,se):N&&($=Uge(N,z,pe,v.value,Q!==!1))}function B(L){const{type:N,data:V}=L;N==="progress"&&(r.value.push(V.message),V.percent!=null&&(i.value=V.percent),V.total_pages&&(l.value=V.total_pages),V.current_page&&(c.value=V.current_page)),N==="page_done"&&(v.value==="drawing"&&u.value.push(V.result),c.value=V.page,r.value.push(`✓ 第 ${V.page} 页识别完成`)),N==="done"&&(i.value=100,d.value=V.session_id,h.value=V.output_files||{},p.value=V.token_usage||null,g.value=V.correction_summary?{flagged_rows:0,corrected_rows:0,reasons:{},...V.correction_summary}:{flagged_rows:0,corrected_rows:0,reasons:{}},b.value=V.output_filenames||{},v.value==="drawing"&&Array.isArray(V.pages_data)&&(u.value=V.pages_data),(V.pdf_mode==="general"||V.pdf_mode==="auto")&&Array.isArray(V.pages_data)&&(u.value=V.pages_data),p.value&&(p.value.total_tokens!=null&&p.value.drawing_ocr==null?r.value.push(`📊 Token: 输入 ${p.value.prompt_tokens} / 输出 ${p.value.completion_tokens},费用 ¥${p.value.cost_cny}`):p.value.total_tokens!=null&&r.value.push(`📊 Token 合计 ${p.value.total_tokens}(分类+检测+OCR)`)),r.value.push("✅ 全部处理完成!"),s.value=!1,a.value=!0),N==="error"&&(o.value=V.message,s.value=!1,r.value.push(`❌ 错误:${V.message}`))}function U(L){x.value=[...x.value,L];const{type:N,data:V}=L;N==="batch_done"&&(T.value=V.merged_session_id||"",I.value=V.output_files||{},w.value=!1,_.value=!0),N==="error"&&(o.value=V.message,w.value=!1)}function J(){Y()}function Y(){$&&($(),$=null),s.value=!1,a.value=!1,o.value="",r.value=[],i.value=0,l.value=0,c.value=0,u.value=[],d.value="",h.value={},p.value=null,g.value=null,b.value={},v.value="auto",m.value="",C.value=!1,w.value=!1,_.value=!1,x.value=[],k.value=0,T.value="",I.value={}}return(L,N)=>{const V=Ge("Document"),z=Ge("el-icon"),q=Ge("el-button"),Q=Ge("el-header"),K=Ge("el-alert"),ee=Ge("el-main");return S(),P("div",N1e,[W(Q,{class:"app-header"},{default:X(()=>[A("div",$1e,[W(z,{size:"28",class:"logo-icon"},{default:X(()=>[W(V)]),_:1}),N[2]||(N[2]=A("span",{class:"title"},"Ai辅助单线图自动提取材料表",-1)),N[3]||(N[3]=A("span",{class:"subtitle"},"单线图 PDF 智能识别与材料表生成",-1))]),A("div",D1e,[W(q,{size:"small",plain:"",class:"manual-btn",onClick:N[0]||(N[0]=se=>f(t).push("/Manual"))},{default:X(()=>[W(z,null,{default:X(()=>[W(f(kg))]),_:1}),N[4]||(N[4]=je(" 手动模式 ",-1))]),_:1}),W(q,{size:"small",plain:"",class:"swagger-btn",onClick:n},{default:X(()=>[...N[5]||(N[5]=[je("API Docs",-1)])]),_:1})])]),_:1}),W(ee,{class:"app-main"},{default:X(()=>[!s.value&&!a.value&&!C.value?(S(),le(jge,{key:0,onSubmit:M})):ie("",!0),C.value?(S(),le(o1e,{key:1,"batch-events":x.value,"batch-done":_.value,"merged-session-id":T.value,"output-files":I.value,"total-files":k.value,onReset:J},null,8,["batch-events","batch-done","merged-session-id","output-files","total-files"])):ie("",!0),s.value?(S(),le(c1e,{key:2,logs:r.value,percent:i.value,"total-pages":l.value,"current-page":c.value},null,8,["logs","percent","total-pages","current-page"])):ie("",!0),a.value&&v.value==="drawing"?(S(),le(uP,{key:3,"pages-data":u.value,"session-id":d.value,"output-files":h.value,"output-filenames":b.value,"token-usage":p.value,"pdf-name":m.value,"correction-summary":g.value,onReset:J},null,8,["pages-data","session-id","output-files","output-filenames","token-usage","pdf-name","correction-summary"])):ie("",!0),a.value&&v.value==="general"?(S(),le(dP,{key:4,"pages-data":u.value,"session-id":d.value,"output-files":h.value,"output-filenames":b.value,"token-usage":p.value,"pdf-name":m.value,onReset:J},null,8,["pages-data","session-id","output-files","output-filenames","token-usage","pdf-name"])):ie("",!0),a.value&&v.value==="auto"?(S(),P(He,{key:5},[O.value.length?(S(),P(He,{key:0},[A("div",F1e,"📐 图纸类页面("+ge(O.value.length)+" 页)",1),W(uP,{"pages-data":O.value,"session-id":d.value,"output-files":h.value,"output-filenames":b.value,"token-usage":null,"pdf-name":m.value,"correction-summary":g.value,onReset:J},null,8,["pages-data","session-id","output-files","output-filenames","pdf-name","correction-summary"])],64)):ie("",!0),R.value.length?(S(),P(He,{key:1},[A("div",B1e,"📄 文字/表格类页面("+ge(R.value.length)+" 页)",1),W(dP,{"pages-data":R.value,"session-id":d.value,"output-files":h.value,"output-filenames":b.value,"token-usage":p.value,"pdf-name":m.value,onReset:J},null,8,["pages-data","session-id","output-files","output-filenames","token-usage","pdf-name"])],64)):ie("",!0)],64)):ie("",!0),o.value?(S(),le(K,{key:6,title:o.value,type:"error","show-icon":"",class:"mt-4",onClose:N[1]||(N[1]=se=>o.value="")},null,8,["title"])):ie("",!0)]),_:1}),N[6]||(N[6]=A("footer",{class:"app-footer"},"© 2025 合肥诺必达信息技术有限公司 · 版权所有",-1))])}}};var wv={};wv.d=(e,t)=>{for(var n in t)wv.o(t,n)&&!wv.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},wv.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var nn=globalThis.pdfjsLib={};wv.d(nn,{AbortException:()=>Cc,AnnotationEditorLayer:()=>Mw,AnnotationEditorParamsType:()=>_n,AnnotationEditorType:()=>dn,AnnotationEditorUIManager:()=>Ku,AnnotationLayer:()=>N4e,AnnotationMode:()=>wc,ColorPicker:()=>vb,DOMSVGFactory:()=>yw,DrawLayer:()=>Pw,FeatureTest:()=>La,GlobalWorkerOptions:()=>fl,ImageKind:()=>J1,InvalidPDFException:()=>X8,MissingPDFException:()=>Cv,OPS:()=>Sr,OutputScale:()=>ow,PDFDataRangeTransport:()=>UP,PDFDateString:()=>sw,PDFWorker:()=>ph,PasswordResponses:()=>j1e,PermissionFlag:()=>W1e,PixelsPerInch:()=>Sc,RenderingCancelledException:()=>tw,TextLayer:()=>Tv,TouchManager:()=>ib,UnexpectedResponseException:()=>tb,Util:()=>zt,VerbosityLevel:()=>Z1,XfaLayer:()=>XP,build:()=>v4e,createValidAbsoluteUrl:()=>G1e,fetchData:()=>sb,getDocument:()=>r4e,getFilenameFromUrl:()=>sbe,getPdfFilenameFromUrl:()=>abe,getXfaPageViewport:()=>obe,isDataScheme:()=>ab,isPdfFile:()=>nw,noContextMenu:()=>xr,normalizeUnicode:()=>ebe,setLayerDimensions:()=>ju,shadow:()=>mn,stopEvent:()=>go,version:()=>p4e});const ma=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),fP=[1,0,0,1,0,0],q8=[.001,0,0,.001,0,0],z1e=1e7,G8=1.35,mo={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},wc={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},H1e="pdfjs_internal_editor_",dn={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},_n={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35,DRAW_STEP:41},W1e={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},ga={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},J1={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},Is={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,WIDGET:20},_v={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},Z1={ERRORS:0,WARNINGS:1,INFOS:5},Sr={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93},j1e={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let Q1=Z1.WARNINGS;function K1e(e){Number.isInteger(e)&&(Q1=e)}function U1e(){return Q1}function eb(e){Q1>=Z1.INFOS&&console.log(`Info: ${e}`)}function fn(e){Q1>=Z1.WARNINGS&&console.log(`Warning: ${e}`)}function Hn(e){throw new Error(e)}function Ss(e,t){e||Hn(t)}function q1e(e){switch(e==null?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function G1e(e,t=null,n=null){if(!e)return null;try{if(n&&typeof e=="string"){if(n.addDefaultProtocol&&e.startsWith("www.")){const a=e.match(/\./g);(a==null?void 0:a.length)>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=Q1e(e)}catch{}}const s=t?new URL(e,t):new URL(e);if(q1e(s))return s}catch{}return null}function mn(e,t,n,s=!1){return Object.defineProperty(e,t,{value:n,enumerable:!s,configurable:!0,writable:!1}),n}const _c=function(){function t(n,s){this.message=n,this.name=s}return t.prototype=new Error,t.constructor=t,t}();class hP extends _c{constructor(t,n){super(t,"PasswordException"),this.code=n}}class Y8 extends _c{constructor(t,n){super(t,"UnknownErrorException"),this.details=n}}class X8 extends _c{constructor(t){super(t,"InvalidPDFException")}}class Cv extends _c{constructor(t){super(t,"MissingPDFException")}}class tb extends _c{constructor(t,n){super(t,"UnexpectedResponseException"),this.status=n}}class Y1e extends _c{constructor(t){super(t,"FormatError")}}class Cc extends _c{constructor(t){super(t,"AbortException")}}function pP(e){(typeof e!="object"||(e==null?void 0:e.length)===void 0)&&Hn("Invalid argument for bytesToString");const t=e.length,n=8192;if(t>24&255,e>>16&255,e>>8&255,e&255)}function J8(e){const t=Object.create(null);for(const[n,s]of e)t[n]=s;return t}function J1e(){const e=new Uint8Array(4);return e[0]=1,new Uint32Array(e.buffer,0,1)[0]===1}function Z1e(){try{return new Function(""),!0}catch{return!1}}class La{static get isLittleEndian(){return mn(this,"isLittleEndian",J1e())}static get isEvalSupported(){return mn(this,"isEvalSupported",Z1e())}static get isOffscreenCanvasSupported(){return mn(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return mn(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get platform(){return typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.platform)=="string"?mn(this,"platform",{isMac:navigator.platform.includes("Mac"),isWindows:navigator.platform.includes("Win"),isFirefox:typeof(navigator==null?void 0:navigator.userAgent)=="string"&&navigator.userAgent.includes("Firefox")}):mn(this,"platform",{isMac:!1,isWindows:!1,isFirefox:!1})}static get isCSSRoundSupported(){var t,n;return mn(this,"isCSSRoundSupported",(n=(t=globalThis.CSS)==null?void 0:t.supports)==null?void 0:n.call(t,"width: round(1.5px, 1px)"))}}const Z8=Array.from(Array(256).keys(),e=>e.toString(16).padStart(2,"0"));class zt{static makeHexColor(t,n,s){return`#${Z8[t]}${Z8[n]}${Z8[s]}`}static scaleMinMax(t,n){let s;t[0]?(t[0]<0&&(s=n[0],n[0]=n[2],n[2]=s),n[0]*=t[0],n[2]*=t[0],t[3]<0&&(s=n[1],n[1]=n[3],n[3]=s),n[1]*=t[3],n[3]*=t[3]):(s=n[0],n[0]=n[1],n[1]=s,s=n[2],n[2]=n[3],n[3]=s,t[1]<0&&(s=n[1],n[1]=n[3],n[3]=s),n[1]*=t[1],n[3]*=t[1],t[2]<0&&(s=n[0],n[0]=n[2],n[2]=s),n[0]*=t[2],n[2]*=t[2]),n[0]+=t[4],n[1]+=t[5],n[2]+=t[4],n[3]+=t[5]}static transform(t,n){return[t[0]*n[0]+t[2]*n[1],t[1]*n[0]+t[3]*n[1],t[0]*n[2]+t[2]*n[3],t[1]*n[2]+t[3]*n[3],t[0]*n[4]+t[2]*n[5]+t[4],t[1]*n[4]+t[3]*n[5]+t[5]]}static applyTransform(t,n){const s=t[0]*n[0]+t[1]*n[2]+n[4],a=t[0]*n[1]+t[1]*n[3]+n[5];return[s,a]}static applyInverseTransform(t,n){const s=n[0]*n[3]-n[1]*n[2],a=(t[0]*n[3]-t[1]*n[2]+n[2]*n[5]-n[4]*n[3])/s,o=(-t[0]*n[1]+t[1]*n[0]+n[4]*n[1]-n[5]*n[0])/s;return[a,o]}static getAxialAlignedBoundingBox(t,n){const s=this.applyTransform(t,n),a=this.applyTransform(t.slice(2,4),n),o=this.applyTransform([t[0],t[3]],n),r=this.applyTransform([t[2],t[1]],n);return[Math.min(s[0],a[0],o[0],r[0]),Math.min(s[1],a[1],o[1],r[1]),Math.max(s[0],a[0],o[0],r[0]),Math.max(s[1],a[1],o[1],r[1])]}static inverseTransform(t){const n=t[0]*t[3]-t[1]*t[2];return[t[3]/n,-t[1]/n,-t[2]/n,t[0]/n,(t[2]*t[5]-t[4]*t[3])/n,(t[4]*t[1]-t[5]*t[0])/n]}static singularValueDecompose2dScale(t){const n=[t[0],t[2],t[1],t[3]],s=t[0]*n[0]+t[1]*n[2],a=t[0]*n[1]+t[1]*n[3],o=t[2]*n[0]+t[3]*n[2],r=t[2]*n[1]+t[3]*n[3],i=(s+r)/2,l=Math.sqrt((s+r)**2-4*(s*r-o*a))/2,c=i+l||1,u=i-l||1;return[Math.sqrt(c),Math.sqrt(u)]}static normalizeRect(t){const n=t.slice(0);return t[0]>t[2]&&(n[0]=t[2],n[2]=t[0]),t[1]>t[3]&&(n[1]=t[3],n[3]=t[1]),n}static intersect(t,n){const s=Math.max(Math.min(t[0],t[2]),Math.min(n[0],n[2])),a=Math.min(Math.max(t[0],t[2]),Math.max(n[0],n[2]));if(s>a)return null;const o=Math.max(Math.min(t[1],t[3]),Math.min(n[1],n[3])),r=Math.min(Math.max(t[1],t[3]),Math.max(n[1],n[3]));return o>r?null:[s,o,a,r]}static bezierBoundingBox(t,n,s,a,o,r,i,l,c){return c?(c[0]=Math.min(c[0],t,i),c[1]=Math.min(c[1],n,l),c[2]=Math.max(c[2],t,i),c[3]=Math.max(c[3],n,l)):c=[Math.min(t,i),Math.min(n,l),Math.max(t,i),Math.max(n,l)],oe(this,hl,Bw).call(this,t,s,o,i,n,a,r,l,3*(-t+3*(s-o)+i),6*(t-2*s+o),3*(s-t),c),oe(this,hl,Bw).call(this,t,s,o,i,n,a,r,l,3*(-n+3*(a-r)+l),6*(n-2*a+r),3*(a-n),c),c}}hl=new WeakSet,Bb=function(t,n,s,a,o,r,i,l,c,u){if(c<=0||c>=1)return;const d=1-c,h=c*c,p=h*c,v=d*(d*(d*t+3*c*n)+3*h*s)+p*a,m=d*(d*(d*o+3*c*r)+3*h*i)+p*l;u[0]=Math.min(u[0],v),u[1]=Math.min(u[1],m),u[2]=Math.max(u[2],v),u[3]=Math.max(u[3],m)},Bw=function(t,n,s,a,o,r,i,l,c,u,d,h){if(Math.abs(c)<1e-12){Math.abs(u)>=1e-12&&oe(this,hl,Bb).call(this,t,n,s,a,o,r,i,l,-d/u,h);return}const p=u**2-4*d*c;if(p<0)return;const v=Math.sqrt(p),m=2*c;oe(this,hl,Bb).call(this,t,n,s,a,o,r,i,l,(-u+v)/m,h),oe(this,hl,Bb).call(this,t,n,s,a,o,r,i,l,(-u-v)/m,h)},ne(zt,hl);function Q1e(e){return decodeURIComponent(escape(e))}let Q8=null,vP=null;function ebe(e){return Q8||(Q8=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,vP=new Map([["ſt","ſt"]])),e.replaceAll(Q8,(t,n,s)=>n?n.normalize("NFKC"):vP.get(s))}function tbe(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=new Uint8Array(32);return crypto.getRandomValues(e),pP(e)}const ew="pdfjs_internal_id_";function nbe(e){return Uint8Array.prototype.toBase64?e.toBase64():btoa(pP(e))}typeof Promise.try!="function"&&(Promise.try=function(e,...t){return new Promise(n=>{n(e(...t))})});const dl="http://www.w3.org/2000/svg",Gu=class Gu{};Ut(Gu,"CSS",96),Ut(Gu,"PDF",72),Ut(Gu,"PDF_TO_CSS_UNITS",Gu.CSS/Gu.PDF);let Sc=Gu;async function sb(e,t="text"){if(xv(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);switch(t){case"arraybuffer":return n.arrayBuffer();case"blob":return n.blob();case"json":return n.json()}return n.text()}return new Promise((n,s)=>{const a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType=t,a.onreadystatechange=()=>{if(a.readyState===XMLHttpRequest.DONE){if(a.status===200||a.status===0){switch(t){case"arraybuffer":case"blob":case"json":n(a.response);return}n(a.responseText);return}s(new Error(a.statusText))}},a.send(null)})}class Sv{constructor({viewBox:t,userUnit:n,scale:s,rotation:a,offsetX:o=0,offsetY:r=0,dontFlip:i=!1}){this.viewBox=t,this.userUnit=n,this.scale=s,this.rotation=a,this.offsetX=o,this.offsetY=r,s*=n;const l=(t[2]+t[0])/2,c=(t[3]+t[1])/2;let u,d,h,p;switch(a%=360,a<0&&(a+=360),a){case 180:u=-1,d=0,h=0,p=1;break;case 90:u=0,d=1,h=1,p=0;break;case 270:u=0,d=-1,h=-1,p=0;break;case 0:u=1,d=0,h=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}i&&(h=-h,p=-p);let v,m,g,b;u===0?(v=Math.abs(c-t[1])*s+o,m=Math.abs(l-t[0])*s+r,g=(t[3]-t[1])*s,b=(t[2]-t[0])*s):(v=Math.abs(l-t[0])*s+o,m=Math.abs(c-t[1])*s+r,g=(t[2]-t[0])*s,b=(t[3]-t[1])*s),this.transform=[u*s,d*s,h*s,p*s,v-u*s*l-h*s*c,m-d*s*l-p*s*c],this.width=g,this.height=b}get rawDims(){const{userUnit:t,viewBox:n}=this,s=n.map(a=>a*t);return mn(this,"rawDims",{pageWidth:s[2]-s[0],pageHeight:s[3]-s[1],pageX:s[0],pageY:s[1]})}clone({scale:t=this.scale,rotation:n=this.rotation,offsetX:s=this.offsetX,offsetY:a=this.offsetY,dontFlip:o=!1}={}){return new Sv({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:t,rotation:n,offsetX:s,offsetY:a,dontFlip:o})}convertToViewportPoint(t,n){return zt.applyTransform([t,n],this.transform)}convertToViewportRectangle(t){const n=zt.applyTransform([t[0],t[1]],this.transform),s=zt.applyTransform([t[2],t[3]],this.transform);return[n[0],n[1],s[0],s[1]]}convertToPdfPoint(t,n){return zt.applyInverseTransform([t,n],this.transform)}}class tw extends _c{constructor(t,n=0){super(t,"RenderingCancelledException"),this.extraDelay=n}}function ab(e){const t=e.length;let n=0;for(;n=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))}}Ov=new WeakMap,ne(sw,Ov);function obe(e,{scale:t=1,rotation:n=0}){const{width:s,height:a}=e.attributes.style,o=[0,0,parseInt(s),parseInt(a)];return new Sv({viewBox:o,userUnit:1,scale:t,rotation:n})}function aw(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):(fn(`Not a valid color format: "${e}"`),[0,0,0])}function rbe(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,aw(s))}t.remove()}function ns(e){const{a:t,b:n,c:s,d:a,e:o,f:r}=e.getTransform();return[t,n,s,a,o,r]}function di(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 ju(e,t,n=!1,s=!0){if(t instanceof Sv){const{pageWidth:a,pageHeight:o}=t.rawDims,{style:r}=e,i=La.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 ow{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){ne(this,Na);ne(this,kc,null);ne(this,Yu,null);ne(this,kr);ne(this,Xu,null);ne(this,Lv,null);G(this,kr,t),y(pl,Nv)||G(pl,Nv,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=G(this,kc,document.createElement("div"));t.classList.add("editToolbar","hidden"),t.setAttribute("role","toolbar");const n=y(this,kr)._uiManager._signal;t.addEventListener("contextmenu",xr,{signal:n}),t.addEventListener("pointerdown",oe(pl,yb,iR),{signal:n});const s=G(this,Xu,document.createElement("div"));s.className="buttons",t.append(s);const a=y(this,kr).toolbarPosition;if(a){const{style:o}=t,r=y(this,kr)._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,Na,uR).call(this),t}get div(){return y(this,kc)}hide(){var t;y(this,kc).classList.add("hidden"),(t=y(this,Yu))==null||t.hideDropdown()}show(){var t;y(this,kc).classList.remove("hidden"),(t=y(this,Lv))==null||t.shown()}async addAltText(t){const n=await t.render();oe(this,Na,Vb).call(this,n),y(this,Xu).prepend(n,y(this,Na,Vw)),G(this,Lv,t)}addColorPicker(t){G(this,Yu,t);const n=t.renderButton();oe(this,Na,Vb).call(this,n),y(this,Xu).prepend(n,y(this,Na,Vw))}remove(){var t;y(this,kc).remove(),(t=y(this,Yu))==null||t.destroy(),G(this,Yu,null)}};kc=new WeakMap,Yu=new WeakMap,kr=new WeakMap,Xu=new WeakMap,Lv=new WeakMap,Nv=new WeakMap,yb=new WeakSet,iR=function(t){t.stopPropagation()},Na=new WeakSet,lR=function(t){y(this,kr)._focusEventsAllowed=!1,go(t)},cR=function(t){y(this,kr)._focusEventsAllowed=!0,go(t)},Vb=function(t){const n=y(this,kr)._uiManager._signal;t.addEventListener("focusin",oe(this,Na,lR).bind(this),{capture:!0,signal:n}),t.addEventListener("focusout",oe(this,Na,cR).bind(this),{capture:!0,signal:n}),t.addEventListener("contextmenu",xr,{signal:n})},uR=function(){const{editorType:t,_uiManager:n}=y(this,kr),s=document.createElement("button");s.className="delete",s.tabIndex=0,s.setAttribute("data-l10n-id",y(pl,Nv)[t]),oe(this,Na,Vb).call(this,s),s.addEventListener("click",a=>{n.delete()},{signal:n._signal}),y(this,Xu).append(s)},Vw=function(){const t=document.createElement("div");return t.className="divider",t},ne(pl,yb),ne(pl,Nv,null);let rw=pl;class ibe{constructor(t){ne(this,Ec);ne(this,$v,null);ne(this,Ju,null);ne(this,Zu);G(this,Zu,t)}show(t,n,s){const[a,o]=oe(this,Ec,fR).call(this,n,s),{style:r}=y(this,Ju)||G(this,Ju,oe(this,Ec,dR).call(this));t.append(y(this,Ju)),r.insetInlineEnd=`${100*a}%`,r.top=`calc(${100*o}% + var(--editor-toolbar-vert-offset))`}hide(){y(this,Ju).remove()}}$v=new WeakMap,Ju=new WeakMap,Zu=new WeakMap,Ec=new WeakSet,dR=function(){const t=G(this,Ju,document.createElement("div"));t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",xr,{signal:y(this,Zu)._signal});const n=G(this,$v,document.createElement("div"));return n.className="buttons",t.append(n),oe(this,Ec,hR).call(this),t},fR=function(t,n){let s=0,a=0;for(const o of t){const r=o.y+o.height;if(rs){a=i,s=r;continue}n?i>a&&(a=i):i{y(this,Zu).highlightSelection("floating_button")},{signal:s}),y(this,$v).append(t)};function ob(e,t,n){for(const s of n)t.addEventListener(s,e[s].bind(e))}class lbe{constructor(){ne(this,wb,0)}get id(){return`${H1e}${za(this,wb)._++}`}}wb=new WeakMap;const Rw=class Rw{constructor(){ne(this,mh);ne(this,vh,tbe());ne(this,Dv,0);ne(this,ya,null)}static get _isSVGFittingCanvas(){const t='data:image/svg+xml;charset=UTF-8,',s=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),a=new Image;a.src=t;const o=a.decode().then(()=>(s.drawImage(a,0,0,1,1,0,0,1,3),new Uint32Array(s.getImageData(0,0,1,1).data.buffer)[0]===0));return mn(this,"_isSVGFittingCanvas",o)}async getFromFile(t){const{lastModified:n,name:s,size:a,type:o}=t;return oe(this,mh,zb).call(this,`${n}_${s}_${a}_${o}`,t)}async getFromUrl(t){return oe(this,mh,zb).call(this,t,t)}async getFromBlob(t,n){const s=await n;return oe(this,mh,zb).call(this,t,s)}async getFromId(t){y(this,ya)||G(this,ya,new Map);const n=y(this,ya).get(t);if(!n)return null;if(n.bitmap)return n.refCounter+=1,n;if(n.file)return this.getFromFile(n.file);if(n.blobPromise){const{blobPromise:s}=n;return delete n.blobPromise,this.getFromBlob(n.id,s)}return this.getFromUrl(n.url)}getFromCanvas(t,n){y(this,ya)||G(this,ya,new Map);let s=y(this,ya).get(t);if(s!=null&&s.bitmap)return s.refCounter+=1,s;const a=new OffscreenCanvas(n.width,n.height);return a.getContext("2d").drawImage(n,0,0),s={bitmap:a.transferToImageBitmap(),id:`image_${y(this,vh)}_${za(this,Dv)._++}`,refCounter:1,isSvg:!1},y(this,ya).set(t,s),y(this,ya).set(s.id,s),s}getSvgUrl(t){const n=y(this,ya).get(t);return n!=null&&n.isSvg?n.svgUrl:null}deleteId(t){var a;y(this,ya)||G(this,ya,new Map);const n=y(this,ya).get(t);if(!n||(n.refCounter-=1,n.refCounter!==0))return;const{bitmap:s}=n;if(!n.url&&!n.file){const o=new OffscreenCanvas(s.width,s.height);o.getContext("bitmaprenderer").transferFromImageBitmap(s),n.blobPromise=o.convertToBlob()}(a=s.close)==null||a.call(s),n.bitmap=null}isValidId(t){return t.startsWith(`image_${y(this,vh)}_`)}};vh=new WeakMap,Dv=new WeakMap,ya=new WeakMap,mh=new WeakSet,zb=async function(t,n){y(this,ya)||G(this,ya,new Map);let s=y(this,ya).get(t);if(s===null)return null;if(s!=null&&s.bitmap)return s.refCounter+=1,s;try{s||(s={bitmap:null,id:`image_${y(this,vh)}_${za(this,Dv)._++}`,refCounter:0,isSvg:!1});let a;if(typeof n=="string"?(s.url=n,a=await sb(n,"blob")):n instanceof File?a=s.file=n:n instanceof Blob&&(a=n),a.type==="image/svg+xml"){const o=Rw._isSVGFittingCanvas,r=new FileReader,i=new Image,l=new Promise((c,u)=>{i.onload=()=>{s.bitmap=i,s.isSvg=!0,c()},r.onload=async()=>{const d=s.svgUrl=r.result;i.src=await o?`${d}#svgView(preserveAspectRatio(none))`:d},i.onerror=r.onerror=u});r.readAsDataURL(a),await l}else s.bitmap=await createImageBitmap(a);s.refCounter=1}catch(a){fn(a),s=null}return y(this,ya).set(t,s),s&&y(this,ya).set(s.id,s),s};let iw=Rw;class cbe{constructor(t=128){ne(this,ms,[]);ne(this,Ac,!1);ne(this,Fv);ne(this,ls,-1);G(this,Fv,t)}add({cmd:t,undo:n,post:s,mustExec:a,type:o=NaN,overwriteIfSameType:r=!1,keepUndo:i=!1}){if(a&&t(),y(this,Ac))return;const l={cmd:t,undo:n,post:s,type:o};if(y(this,ls)===-1){y(this,ms).length>0&&(y(this,ms).length=0),G(this,ls,0),y(this,ms).push(l);return}if(r&&y(this,ms)[y(this,ls)].type===o){i&&(l.undo=y(this,ms)[y(this,ls)].undo),y(this,ms)[y(this,ls)]=l;return}const c=y(this,ls)+1;c===y(this,Fv)?y(this,ms).splice(0,1):(G(this,ls,c),c=0;n--)if(y(this,ms)[n].type!==t){y(this,ms).splice(n+1,y(this,ls)-n),G(this,ls,n);return}y(this,ms).length=0,G(this,ls,-1)}}destroy(){G(this,ms,null)}}ms=new WeakMap,Ac=new WeakMap,Fv=new WeakMap,ls=new WeakMap;class kv{constructor(t){ne(this,_b);this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:n}=La.platform;for(const[s,a,o={}]of t)for(const r of s){const i=r.startsWith("mac+");n&&i?(this.callbacks.set(r.slice(4),{callback:a,options:o}),this.allKeys.add(r.split("+").at(-1))):!n&&!i&&(this.callbacks.set(r,{callback:a,options:o}),this.allKeys.add(r.split("+").at(-1)))}}exec(t,n){if(!this.allKeys.has(n.key))return;const s=this.callbacks.get(oe(this,_b,pR).call(this,n));if(!s)return;const{callback:a,options:{bubbles:o=!1,args:r=[],checker:i=null}}=s;i&&!i(t,n)||(a.bind(t,...r,n)(),o||go(n))}}_b=new WeakSet,pR=function(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);const n=this.buffer.join("+");return this.buffer.length=0,n};const Cb=class Cb{get _colors(){const t=new Map([["CanvasText",null],["Canvas",null]]);return rbe(t),mn(this,"_colors",t)}convert(t){const n=aw(t);if(!window.matchMedia("(forced-colors: active)").matches)return n;for(const[s,a]of this._colors)if(a.every((o,r)=>o===n[r]))return Cb._colorsMapping.get(s);return n}getHexCode(t){const n=this._colors.get(t);return n?zt.makeHexColor(...n):t}};Ut(Cb,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let lw=Cb;const Sh=class Sh{constructor(t,n,s,a,o,r,i,l,c,u,d,h,p){ne(this,xt);ne(this,gh,new AbortController);ne(this,bo,null);ne(this,Os,new Map);ne(this,Js,new Map);ne(this,bh,null);ne(this,vl,null);ne(this,yh,null);ne(this,jo,new cbe);ne(this,Tc,null);ne(this,Qu,null);ne(this,wh,0);ne(this,ed,new Set);ne(this,hi,null);ne(this,Er,null);ne(this,td,new Set);Ut(this,"_editorUndoBar",null);ne(this,Bv,!1);ne(this,Vv,!1);ne(this,_h,!1);ne(this,zv,null);ne(this,pi,null);ne(this,Mc,null);ne(this,Ch,null);ne(this,Pc,!1);ne(this,vi,null);ne(this,Sb,new lbe);ne(this,Rc,!1);ne(this,Hv,!1);ne(this,Ic,null);ne(this,nd,null);ne(this,Wv,null);ne(this,jv,null);ne(this,zs,dn.NONE);ne(this,$n,new Set);ne(this,ml,null);ne(this,sd,null);ne(this,Kv,null);ne(this,Uv,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1});ne(this,Oc,[0,0]);ne(this,mi,null);ne(this,gl,null);ne(this,qv,null);ne(this,Ko,null);const v=this._signal=y(this,gh).signal;G(this,gl,t),G(this,qv,n),G(this,bh,s),this._eventBus=a,a._on("editingaction",this.onEditingAction.bind(this),{signal:v}),a._on("pagechanging",this.onPageChanging.bind(this),{signal:v}),a._on("scalechanging",this.onScaleChanging.bind(this),{signal:v}),a._on("rotationchanging",this.onRotationChanging.bind(this),{signal:v}),a._on("setpreference",this.onSetPreference.bind(this),{signal:v}),a._on("switchannotationeditorparams",m=>this.updateParams(m.type,m.value),{signal:v}),oe(this,xt,gR).call(this),oe(this,xt,_R).call(this),oe(this,xt,Hw).call(this),G(this,vl,o.annotationStorage),G(this,zv,o.filterFactory),G(this,sd,r),G(this,Ch,i||null),G(this,Bv,l),G(this,Vv,c),G(this,_h,u),G(this,jv,d||null),this.viewParameters={realScale:Sc.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=h||null,this._supportsPinchToZoom=p!==!1}static get _keyboardManager(){const t=Sh.prototype,n=r=>y(r,gl).contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&r.hasSomethingToControl(),s=(r,{target:i})=>{if(i instanceof HTMLInputElement){const{type:l}=i;return l!=="text"&&l!=="number"}return!0},a=this.TRANSLATE_SMALL,o=this.TRANSLATE_BIG;return mn(this,"_keyboardManager",new kv([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:s}],[["ctrl+z","mac+meta+z"],t.undo,{checker:s}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:s}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:s}],[["Enter","mac+Enter"],t.addNewEditorFromKeyboard,{checker:(r,{target:i})=>!(i instanceof HTMLButtonElement)&&y(r,gl).contains(i)&&!r.isEnterHandled}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(r,{target:i})=>!(i instanceof HTMLButtonElement)&&y(r,gl).contains(document.activeElement)}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-a,0],checker:n}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-o,0],checker:n}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[a,0],checker:n}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[o,0],checker:n}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-a],checker:n}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-o],checker:n}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,a],checker:n}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,o],checker:n}]]))}destroy(){var t,n,s,a,o;(t=y(this,Ko))==null||t.resolve(),G(this,Ko,null),(n=y(this,gh))==null||n.abort(),G(this,gh,null),this._signal=null;for(const r of y(this,Js).values())r.destroy();y(this,Js).clear(),y(this,Os).clear(),y(this,td).clear(),G(this,bo,null),y(this,$n).clear(),y(this,jo).destroy(),(s=y(this,bh))==null||s.destroy(),(a=y(this,vi))==null||a.hide(),G(this,vi,null),y(this,pi)&&(clearTimeout(y(this,pi)),G(this,pi,null)),y(this,mi)&&(clearTimeout(y(this,mi)),G(this,mi,null)),(o=this._editorUndoBar)==null||o.destroy()}combinedSignal(t){return AbortSignal.any([this._signal,t.signal])}get mlManager(){return y(this,jv)}get useNewAltTextFlow(){return y(this,Vv)}get useNewAltTextWhenAddingImage(){return y(this,_h)}get hcmFilter(){return mn(this,"hcmFilter",y(this,sd)?y(this,zv).addHCMFilter(y(this,sd).foreground,y(this,sd).background):"none")}get direction(){return mn(this,"direction",getComputedStyle(y(this,gl)).direction)}get highlightColors(){return mn(this,"highlightColors",y(this,Ch)?new Map(y(this,Ch).split(",").map(t=>t.split("=").map(n=>n.trim()))):null)}get highlightColorNames(){return mn(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}setCurrentDrawingSession(t){t?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),G(this,Qu,t)}setMainHighlightColorPicker(t){G(this,Wv,t)}editAltText(t,n=!1){var s;(s=y(this,bh))==null||s.editAltText(this,t,n)}switchToMode(t,n){this._eventBus.on("annotationeditormodechanged",n,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:t})}setPreference(t,n){this._eventBus.dispatch("setpreference",{source:this,name:t,value:n})}onSetPreference({name:t,value:n}){switch(t){case"enableNewAltTextWhenAddingImage":G(this,_h,n);break}}onPageChanging({pageNumber:t}){G(this,wh,t-1)}focusMainContainer(){y(this,gl).focus()}findParent(t,n){for(const s of y(this,Js).values()){const{x:a,y:o,width:r,height:i}=s.div.getBoundingClientRect();if(t>=a&&t<=a+r&&n>=o&&n<=o+i)return s}return null}disableUserSelect(t=!1){y(this,qv).classList.toggle("noUserSelect",t)}addShouldRescale(t){y(this,td).add(t)}removeShouldRescale(t){y(this,td).delete(t)}onScaleChanging({scale:t}){var n;this.commitOrRemove(),this.viewParameters.realScale=t*Sc.PDF_TO_CSS_UNITS;for(const s of y(this,td))s.onScaleChanging();(n=y(this,Qu))==null||n.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}highlightSelection(t=""){const n=document.getSelection();if(!n||n.isCollapsed)return;const{anchorNode:s,anchorOffset:a,focusNode:o,focusOffset:r}=n,i=n.toString(),c=oe(this,xt,Hb).call(this,n).closest(".textLayer"),u=this.getSelectionBoxes(c);if(!u)return;n.empty();const d=oe(this,xt,zw).call(this,c),h=y(this,zs)===dn.NONE,p=()=>{d==null||d.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:u,anchorNode:s,anchorOffset:a,focusNode:o,focusOffset:r,text:i}),h&&this.showAllEditors("highlight",!0,!0)};if(h){this.switchToMode(dn.HIGHLIGHT,p);return}p()}addToAnnotationStorage(t){!t.isEmpty()&&y(this,vl)&&!y(this,vl).has(t.id)&&y(this,vl).setValue(t.id,t)}blur(){if(this.isShiftKeyDown=!1,y(this,Pc)&&(G(this,Pc,!1),oe(this,xt,Wb).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const n of y(this,$n))if(n.div.contains(t)){G(this,nd,[n,t]),n._focusEventsAllowed=!1;break}}focus(){if(!y(this,nd))return;const[t,n]=y(this,nd);G(this,nd,null),n.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),n.focus()}addEditListeners(){oe(this,xt,Hw).call(this),oe(this,xt,Ww).call(this)}removeEditListeners(){oe(this,xt,wR).call(this),oe(this,xt,jw).call(this)}dragOver(t){for(const{type:n}of t.dataTransfer.items)for(const s of y(this,Er))if(s.isHandlingMimeForPasting(n)){t.dataTransfer.dropEffect="copy",t.preventDefault();return}}drop(t){for(const n of t.dataTransfer.items)for(const s of y(this,Er))if(s.isHandlingMimeForPasting(n.type)){s.paste(n,this.currentLayer),t.preventDefault();return}}copy(t){var s;if(t.preventDefault(),(s=y(this,bo))==null||s.commitOrRemove(),!this.hasSelection)return;const n=[];for(const a of y(this,$n)){const o=a.serialize(!0);o&&n.push(o)}n.length!==0&&t.clipboardData.setData("application/pdfjs",JSON.stringify(n))}cut(t){this.copy(t),this.delete()}async paste(t){t.preventDefault();const{clipboardData:n}=t;for(const o of n.items)for(const r of y(this,Er))if(r.isHandlingMimeForPasting(o.type)){r.paste(o,this.currentLayer);return}let s=n.getData("application/pdfjs");if(!s)return;try{s=JSON.parse(s)}catch(o){fn(`paste: "${o.message}".`);return}if(!Array.isArray(s))return;this.unselectAll();const a=this.currentLayer;try{const o=[];for(const l of s){const c=await a.deserialize(l);if(!c)return;o.push(c)}const r=()=>{for(const l of o)oe(this,xt,Kw).call(this,l);oe(this,xt,Uw).call(this,o)},i=()=>{for(const l of o)l.remove()};this.addCommands({cmd:r,undo:i,mustExec:!0})}catch(o){fn(`paste: "${o.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),y(this,zs)!==dn.NONE&&!this.isEditorHandlingKeyboard&&Sh._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,y(this,Pc)&&(G(this,Pc,!1),oe(this,xt,Wb).call(this,"main_toolbar")))}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}setEditingState(t){t?(oe(this,xt,bR).call(this),oe(this,xt,Ww).call(this),oe(this,xt,Ha).call(this,{isEditing:y(this,zs)!==dn.NONE,isEmpty:oe(this,xt,c2).call(this),hasSomethingToUndo:y(this,jo).hasSomethingToUndo(),hasSomethingToRedo:y(this,jo).hasSomethingToRedo(),hasSelectedEditor:!1})):(oe(this,xt,yR).call(this),oe(this,xt,jw).call(this),oe(this,xt,Ha).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!y(this,Er)){G(this,Er,t);for(const n of y(this,Er))oe(this,xt,Ul).call(this,n.defaultPropertiesToUpdate)}}getId(){return y(this,Sb).id}get currentLayer(){return y(this,Js).get(y(this,wh))}getLayer(t){return y(this,Js).get(t)}get currentPageIndex(){return y(this,wh)}addLayer(t){y(this,Js).set(t.pageIndex,t),y(this,Rc)?t.enable():t.disable()}removeLayer(t){y(this,Js).delete(t.pageIndex)}async updateMode(t,n=null,s=!1){var a;if(y(this,zs)!==t&&!(y(this,Ko)&&(await y(this,Ko).promise,!y(this,Ko)))){if(G(this,Ko,Promise.withResolvers()),G(this,zs,t),t===dn.NONE){this.setEditingState(!1),oe(this,xt,SR).call(this),(a=this._editorUndoBar)==null||a.hide(),y(this,Ko).resolve();return}this.setEditingState(!0),await oe(this,xt,CR).call(this),this.unselectAll();for(const o of y(this,Js).values())o.updateMode(t);if(!n){s&&this.addNewEditorFromKeyboard(),y(this,Ko).resolve();return}for(const o of y(this,Os).values())o.annotationElementId===n?(this.setSelected(o),o.enterInEditMode()):o.unselect();y(this,Ko).resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==y(this,zs)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,n){var s;if(y(this,Er)){switch(t){case _n.CREATE:this.currentLayer.addNewEditor();return;case _n.HIGHLIGHT_DEFAULT_COLOR:(s=y(this,Wv))==null||s.updateColor(n);break;case _n.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(y(this,Kv)||G(this,Kv,new Map)).set(t,n),this.showAllEditors("highlight",n);break}for(const a of y(this,$n))a.updateParams(t,n);for(const a of y(this,Er))a.updateDefaultParams(t,n)}}showAllEditors(t,n,s=!1){var o;for(const r of y(this,Os).values())r.editorType===t&&r.show(n);(((o=y(this,Kv))==null?void 0:o.get(_n.HIGHLIGHT_SHOW_ALL))??!0)!==n&&oe(this,xt,Ul).call(this,[[_n.HIGHLIGHT_SHOW_ALL,n]])}enableWaiting(t=!1){if(y(this,Hv)!==t){G(this,Hv,t);for(const n of y(this,Js).values())t?n.disableClick():n.enableClick(),n.div.classList.toggle("waiting",t)}}getEditors(t){const n=[];for(const s of y(this,Os).values())s.pageIndex===t&&n.push(s);return n}getEditor(t){return y(this,Os).get(t)}addEditor(t){y(this,Os).set(t.id,t)}removeEditor(t){var n;t.div.contains(document.activeElement)&&(y(this,pi)&&clearTimeout(y(this,pi)),G(this,pi,setTimeout(()=>{this.focusMainContainer(),G(this,pi,null)},0))),y(this,Os).delete(t.id),this.unselect(t),(!t.annotationElementId||!y(this,ed).has(t.annotationElementId))&&((n=y(this,vl))==null||n.remove(t.id))}addDeletedAnnotationElement(t){y(this,ed).add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return y(this,ed).has(t)}removeDeletedAnnotationElement(t){y(this,ed).delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}setActiveEditor(t){y(this,bo)!==t&&(G(this,bo,t),t&&oe(this,xt,Ul).call(this,t.propertiesToUpdate))}updateUI(t){y(this,xt,xR)===t&&oe(this,xt,Ul).call(this,t.propertiesToUpdate)}updateUIForDefaultProperties(t){oe(this,xt,Ul).call(this,t.defaultPropertiesToUpdate)}toggleSelected(t){if(y(this,$n).has(t)){y(this,$n).delete(t),t.unselect(),oe(this,xt,Ha).call(this,{hasSelectedEditor:this.hasSelection});return}y(this,$n).add(t),t.select(),oe(this,xt,Ul).call(this,t.propertiesToUpdate),oe(this,xt,Ha).call(this,{hasSelectedEditor:!0})}setSelected(t){var n;(n=y(this,Qu))==null||n.commitOrRemove();for(const s of y(this,$n))s!==t&&s.unselect();y(this,$n).clear(),y(this,$n).add(t),t.select(),oe(this,xt,Ul).call(this,t.propertiesToUpdate),oe(this,xt,Ha).call(this,{hasSelectedEditor:!0})}isSelected(t){return y(this,$n).has(t)}get firstSelectedEditor(){return y(this,$n).values().next().value}unselect(t){t.unselect(),y(this,$n).delete(t),oe(this,xt,Ha).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return y(this,$n).size!==0}get isEnterHandled(){return y(this,$n).size===1&&this.firstSelectedEditor.isEnterHandled}undo(){var t;y(this,jo).undo(),oe(this,xt,Ha).call(this,{hasSomethingToUndo:y(this,jo).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:oe(this,xt,c2).call(this)}),(t=this._editorUndoBar)==null||t.hide()}redo(){y(this,jo).redo(),oe(this,xt,Ha).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:y(this,jo).hasSomethingToRedo(),isEmpty:oe(this,xt,c2).call(this)})}addCommands(t){y(this,jo).add(t),oe(this,xt,Ha).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:oe(this,xt,c2).call(this)})}cleanUndoStack(t){y(this,jo).cleanType(t)}delete(){var o;this.commitOrRemove();const t=(o=this.currentLayer)==null?void 0:o.endDrawingSession(!0);if(!this.hasSelection&&!t)return;const n=t?[t]:[...y(this,$n)],s=()=>{var r;(r=this._editorUndoBar)==null||r.show(a,n.length===1?n[0].editorType:n.length);for(const i of n)i.remove()},a=()=>{for(const r of n)oe(this,xt,Kw).call(this,r)};this.addCommands({cmd:s,undo:a,mustExec:!0})}commitOrRemove(){var t;(t=y(this,bo))==null||t.commitOrRemove()}hasSomethingToControl(){return y(this,bo)||this.hasSelection}selectAll(){for(const t of y(this,$n))t.commit();oe(this,xt,Uw).call(this,y(this,Os).values())}unselectAll(){var t;if(!(y(this,bo)&&(y(this,bo).commitOrRemove(),y(this,zs)!==dn.NONE))&&!((t=y(this,Qu))!=null&&t.commitOrRemove())&&this.hasSelection){for(const n of y(this,$n))n.unselect();y(this,$n).clear(),oe(this,xt,Ha).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(t,n,s=!1){if(s||this.commitOrRemove(),!this.hasSelection)return;y(this,Oc)[0]+=t,y(this,Oc)[1]+=n;const[a,o]=y(this,Oc),r=[...y(this,$n)],i=1e3;y(this,mi)&&clearTimeout(y(this,mi)),G(this,mi,setTimeout(()=>{G(this,mi,null),y(this,Oc)[0]=y(this,Oc)[1]=0,this.addCommands({cmd:()=>{for(const l of r)y(this,Os).has(l.id)&&l.translateInPage(a,o)},undo:()=>{for(const l of r)y(this,Os).has(l.id)&&l.translateInPage(-a,-o)},mustExec:!1})},i));for(const l of r)l.translateInPage(t,n)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),G(this,hi,new Map);for(const t of y(this,$n))y(this,hi).set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!y(this,hi))return!1;this.disableUserSelect(!1);const t=y(this,hi);G(this,hi,null);let n=!1;for(const[{x:a,y:o,pageIndex:r},i]of t)i.newX=a,i.newY=o,i.newPageIndex=r,n||(n=a!==i.savedX||o!==i.savedY||r!==i.savedPageIndex);if(!n)return!1;const s=(a,o,r,i)=>{if(y(this,Os).has(a.id)){const l=y(this,Js).get(i);l?a._setParentAndPosition(l,o,r):(a.pageIndex=i,a.x=o,a.y=r)}};return this.addCommands({cmd:()=>{for(const[a,{newX:o,newY:r,newPageIndex:i}]of t)s(a,o,r,i)},undo:()=>{for(const[a,{savedX:o,savedY:r,savedPageIndex:i}]of t)s(a,o,r,i)},mustExec:!0}),!0}dragSelectedEditors(t,n){if(y(this,hi))for(const s of y(this,hi).keys())s.drag(t,n)}rebuild(t){if(t.parent===null){const n=this.getLayer(t.pageIndex);n?(n.changeParent(t),n.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){var t;return((t=this.getActive())==null?void 0:t.shouldGetKeyboardEvents())||y(this,$n).size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return y(this,bo)===t}getActive(){return y(this,bo)}getMode(){return y(this,zs)}get imageManager(){return mn(this,"imageManager",new iw)}getSelectionBoxes(t){if(!t)return null;const n=document.getSelection();for(let c=0,u=n.rangeCount;c({x:(u-a)/r,y:1-(c+d-s)/o,width:h/r,height:d/o});break;case"180":i=(c,u,d,h)=>({x:1-(c+d-s)/o,y:1-(u+h-a)/r,width:d/o,height:h/r});break;case"270":i=(c,u,d,h)=>({x:1-(u+h-a)/r,y:(c-s)/o,width:h/r,height:d/o});break;default:i=(c,u,d,h)=>({x:(c-s)/o,y:(u-a)/r,width:d/o,height:h/r});break}const l=[];for(let c=0,u=n.rangeCount;c{h.type==="pointerup"&&h.button!==0||(c.abort(),l==null||l.toggleDrawing(!0),h.type==="pointerup"&&oe(this,xt,Wb).call(this,"main_toolbar"))};window.addEventListener("pointerup",d,{signal:u}),window.addEventListener("blur",d,{signal:u})}},Wb=function(t=""){y(this,zs)===dn.HIGHLIGHT?this.highlightSelection(t):y(this,Bv)&&oe(this,xt,vR).call(this)},gR=function(){document.addEventListener("selectionchange",oe(this,xt,mR).bind(this),{signal:this._signal})},bR=function(){if(y(this,Mc))return;G(this,Mc,new AbortController);const t=this.combinedSignal(y(this,Mc));window.addEventListener("focus",this.focus.bind(this),{signal:t}),window.addEventListener("blur",this.blur.bind(this),{signal:t})},yR=function(){var t;(t=y(this,Mc))==null||t.abort(),G(this,Mc,null)},Hw=function(){if(y(this,Ic))return;G(this,Ic,new AbortController);const t=this.combinedSignal(y(this,Ic));window.addEventListener("keydown",this.keydown.bind(this),{signal:t}),window.addEventListener("keyup",this.keyup.bind(this),{signal:t})},wR=function(){var t;(t=y(this,Ic))==null||t.abort(),G(this,Ic,null)},Ww=function(){if(y(this,Tc))return;G(this,Tc,new AbortController);const t=this.combinedSignal(y(this,Tc));document.addEventListener("copy",this.copy.bind(this),{signal:t}),document.addEventListener("cut",this.cut.bind(this),{signal:t}),document.addEventListener("paste",this.paste.bind(this),{signal:t})},jw=function(){var t;(t=y(this,Tc))==null||t.abort(),G(this,Tc,null)},_R=function(){const t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})},Ha=function(t){Object.entries(t).some(([s,a])=>y(this,Uv)[s]!==a)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(y(this,Uv),t)}),y(this,zs)===dn.HIGHLIGHT&&t.hasSelectedEditor===!1&&oe(this,xt,Ul).call(this,[[_n.HIGHLIGHT_FREE,!0]]))},Ul=function(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})},CR=async function(){if(!y(this,Rc)){G(this,Rc,!0);const t=[];for(const n of y(this,Js).values())t.push(n.enable());await Promise.all(t);for(const n of y(this,Os).values())n.enable()}},SR=function(){if(this.unselectAll(),y(this,Rc)){G(this,Rc,!1);for(const t of y(this,Js).values())t.disable();for(const t of y(this,Os).values())t.disable()}},Kw=function(t){const n=y(this,Js).get(t.pageIndex);n?n.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))},xR=function(){let t=null;for(t of y(this,$n));return t},c2=function(){if(y(this,Os).size===0)return!0;if(y(this,Os).size===1)for(const t of y(this,Os).values())return t.isEmpty();return!1},Uw=function(t){for(const n of y(this,$n))n.unselect();y(this,$n).clear();for(const n of t)n.isEmpty()||(y(this,$n).add(n),n.select());oe(this,xt,Ha).call(this,{hasSelectedEditor:this.hasSelection})},Ut(Sh,"TRANSLATE_SMALL",1),Ut(Sh,"TRANSLATE_BIG",10);let Ku=Sh;const $a=class $a{constructor(t){ne(this,Tr);ne(this,Hs,null);ne(this,gi,!1);ne(this,Ar,null);ne(this,xh,null);ne(this,bi,null);ne(this,yo,null);ne(this,kh,!1);ne(this,yi,null);ne(this,to,null);ne(this,bl,null);ne(this,ad,null);ne(this,wi,!1);G(this,to,t),G(this,wi,t._uiManager.useNewAltTextFlow),y($a,Lc)||G($a,Lc,Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"}))}static initialize(t){$a._l10n??($a._l10n=t)}async render(){const t=G(this,Ar,document.createElement("button"));t.className="altText",t.tabIndex="0";const n=G(this,xh,document.createElement("span"));t.append(n),y(this,wi)?(t.classList.add("new"),t.setAttribute("data-l10n-id",y($a,Lc).missing),n.setAttribute("data-l10n-id",y($a,Lc)["missing-label"])):(t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));const s=y(this,to)._uiManager._signal;t.addEventListener("contextmenu",xr,{signal:s}),t.addEventListener("pointerdown",o=>o.stopPropagation(),{signal:s});const a=o=>{o.preventDefault(),y(this,to)._uiManager.editAltText(y(this,to)),y(this,wi)&&y(this,to)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:y(this,Tr,u2)}})};return t.addEventListener("click",a,{capture:!0,signal:s}),t.addEventListener("keydown",o=>{o.target===t&&o.key==="Enter"&&(G(this,kh,!0),a(o))},{signal:s}),await oe(this,Tr,jb).call(this),t}finish(){y(this,Ar)&&(y(this,Ar).focus({focusVisible:y(this,kh)}),G(this,kh,!1))}isEmpty(){return y(this,wi)?y(this,Hs)===null:!y(this,Hs)&&!y(this,gi)}hasData(){return y(this,wi)?y(this,Hs)!==null||!!y(this,bl):this.isEmpty()}get guessedText(){return y(this,bl)}async setGuessedText(t){y(this,Hs)===null&&(G(this,bl,t),G(this,ad,await $a._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:t})),oe(this,Tr,jb).call(this))}toggleAltTextBadge(t=!1){var n;if(!y(this,wi)||y(this,Hs)){(n=y(this,yi))==null||n.remove(),G(this,yi,null);return}if(!y(this,yi)){const s=G(this,yi,document.createElement("div"));s.className="noAltTextBadge",y(this,to).div.append(s)}y(this,yi).classList.toggle("hidden",!t)}serialize(t){let n=y(this,Hs);return!t&&y(this,bl)===n&&(n=y(this,ad)),{altText:n,decorative:y(this,gi),guessedText:y(this,bl),textWithDisclaimer:y(this,ad)}}get data(){return{altText:y(this,Hs),decorative:y(this,gi)}}set data({altText:t,decorative:n,guessedText:s,textWithDisclaimer:a,cancel:o=!1}){s&&(G(this,bl,s),G(this,ad,a)),!(y(this,Hs)===t&&y(this,gi)===n)&&(o||(G(this,Hs,t),G(this,gi,n)),oe(this,Tr,jb).call(this))}toggle(t=!1){y(this,Ar)&&(!t&&y(this,yo)&&(clearTimeout(y(this,yo)),G(this,yo,null)),y(this,Ar).disabled=!t)}shown(){y(this,to)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:y(this,Tr,u2)}})}destroy(){var t,n;(t=y(this,Ar))==null||t.remove(),G(this,Ar,null),G(this,xh,null),G(this,bi,null),(n=y(this,yi))==null||n.remove(),G(this,yi,null)}};Hs=new WeakMap,gi=new WeakMap,Ar=new WeakMap,xh=new WeakMap,bi=new WeakMap,yo=new WeakMap,kh=new WeakMap,yi=new WeakMap,to=new WeakMap,bl=new WeakMap,ad=new WeakMap,wi=new WeakMap,Lc=new WeakMap,Tr=new WeakSet,u2=function(){return y(this,Hs)&&"added"||y(this,Hs)===null&&this.guessedText&&"review"||"missing"},jb=async function(){var a,o,r;const t=y(this,Ar);if(!t)return;if(y(this,wi)){if(t.classList.toggle("done",!!y(this,Hs)),t.setAttribute("data-l10n-id",y($a,Lc)[y(this,Tr,u2)]),(a=y(this,xh))==null||a.setAttribute("data-l10n-id",y($a,Lc)[`${y(this,Tr,u2)}-label`]),!y(this,Hs)){(o=y(this,bi))==null||o.remove();return}}else{if(!y(this,Hs)&&!y(this,gi)){t.classList.remove("done"),(r=y(this,bi))==null||r.remove();return}t.classList.add("done"),t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let n=y(this,bi);if(!n){G(this,bi,n=document.createElement("span")),n.className="tooltip",n.setAttribute("role","tooltip"),n.id=`alt-text-tooltip-${y(this,to).id}`;const i=100,l=y(this,to)._uiManager._signal;l.addEventListener("abort",()=>{clearTimeout(y(this,yo)),G(this,yo,null)},{once:!0}),t.addEventListener("mouseenter",()=>{G(this,yo,setTimeout(()=>{G(this,yo,null),y(this,bi).classList.add("show"),y(this,to)._reportTelemetry({action:"alt_text_tooltip"})},i))},{signal:l}),t.addEventListener("mouseleave",()=>{var c;y(this,yo)&&(clearTimeout(y(this,yo)),G(this,yo,null)),(c=y(this,bi))==null||c.classList.remove("show")},{signal:l})}y(this,gi)?n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(n.removeAttribute("data-l10n-id"),n.textContent=y(this,Hs)),n.parentNode||t.append(n);const s=y(this,to).getImageForAltText();s==null||s.setAttribute("aria-describedby",n.id)},ne($a,Lc,null),Ut($a,"_l10n",null);let rb=$a;const Iw=class Iw{constructor({container:t,isPinchingDisabled:n=null,isPinchingStopped:s=null,onPinchStart:a=null,onPinching:o=null,onPinchEnd:r=null,signal:i}){ne(this,wl);ne(this,Gv);ne(this,od,!1);ne(this,Yv,null);ne(this,Xv);ne(this,Jv);ne(this,Zv);ne(this,Qv);ne(this,Eh);ne(this,yl,null);ne(this,rd);ne(this,Nc,null);G(this,Gv,t),G(this,Yv,s),G(this,Xv,n),G(this,Jv,a),G(this,Zv,o),G(this,Qv,r),G(this,rd,new AbortController),G(this,Eh,AbortSignal.any([i,y(this,rd).signal])),t.addEventListener("touchstart",oe(this,wl,kR).bind(this),{passive:!1,signal:y(this,Eh)})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return mn(this,"MIN_TOUCH_DISTANCE_TO_PINCH",35/(window.devicePixelRatio||1))}destroy(){var t;(t=y(this,rd))==null||t.abort(),G(this,rd,null)}};Gv=new WeakMap,od=new WeakMap,Yv=new WeakMap,Xv=new WeakMap,Jv=new WeakMap,Zv=new WeakMap,Qv=new WeakMap,Eh=new WeakMap,yl=new WeakMap,rd=new WeakMap,Nc=new WeakMap,wl=new WeakSet,kR=function(t){var a,o,r;if((a=y(this,Xv))!=null&&a.call(this)||t.touches.length<2)return;if(!y(this,Nc)){G(this,Nc,new AbortController);const i=AbortSignal.any([y(this,Eh),y(this,Nc).signal]),l=y(this,Gv),c={signal:i,passive:!1};l.addEventListener("touchmove",oe(this,wl,ER).bind(this),c),l.addEventListener("touchend",oe(this,wl,qw).bind(this),c),l.addEventListener("touchcancel",oe(this,wl,qw).bind(this),c),(o=y(this,Jv))==null||o.call(this)}if(go(t),t.touches.length!==2||(r=y(this,Yv))!=null&&r.call(this)){G(this,yl,null);return}let[n,s]=t.touches;n.identifier>s.identifier&&([n,s]=[s,n]),G(this,yl,{touch0X:n.screenX,touch0Y:n.screenY,touch1X:s.screenX,touch1Y:s.screenY})},ER=function(t){var _;if(!y(this,yl)||t.touches.length!==2)return;let[n,s]=t.touches;n.identifier>s.identifier&&([n,s]=[s,n]);const{screenX:a,screenY:o}=n,{screenX:r,screenY:i}=s,l=y(this,yl),{touch0X:c,touch0Y:u,touch1X:d,touch1Y:h}=l,p=d-c,v=h-u,m=r-a,g=i-o,b=Math.hypot(m,g)||1,C=Math.hypot(p,v)||1;if(!y(this,od)&&Math.abs(C-b)<=Iw.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(l.touch0X=a,l.touch0Y=o,l.touch1X=r,l.touch1Y=i,t.preventDefault(),!y(this,od)){G(this,od,!0);return}const w=[(a+r)/2,(o+i)/2];(_=y(this,Zv))==null||_.call(this,w,C,b)},qw=function(t){var n;y(this,Nc).abort(),G(this,Nc,null),(n=y(this,Qv))==null||n.call(this),y(this,yl)&&(t.preventDefault(),G(this,yl,null),G(this,od,!1))};let ib=Iw;const hn=class hn{constructor(t){ne(this,Kt);ne(this,id,null);ne(this,Mr,null);ne(this,Jn,null);ne(this,Ah,!1);ne(this,$c,null);ne(this,em,"");ne(this,ld,!1);ne(this,Zs,null);ne(this,cd,null);ne(this,_l,null);ne(this,Dc,null);ne(this,tm,"");ne(this,ud,!1);ne(this,wo,null);ne(this,nm,!1);ne(this,dd,!1);ne(this,Cl,!1);ne(this,_i,null);ne(this,Th,0);ne(this,Mh,0);ne(this,Uo,null);ne(this,fd,null);Ut(this,"_editToolbar",null);Ut(this,"_initialOptions",Object.create(null));Ut(this,"_initialData",null);Ut(this,"_isVisible",!0);Ut(this,"_uiManager",null);Ut(this,"_focusEventsAllowed",!0);ne(this,sm,!1);ne(this,xb,hn._zIndex++);this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;const{rotation:n,rawDims:{pageWidth:s,pageHeight:a,pageX:o,pageY:r}}=this.parent.viewport;this.rotation=n,this.pageRotation=(360+n-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[s,a],this.pageTranslation=[o,r];const[i,l]=this.parentDimensions;this.x=t.x/i,this.y=t.y/l,this.isAttachedToDOM=!1,this.deleted=!1}static get _resizerKeyboardManager(){const t=hn.prototype._resizeWithKeyboard,n=Ku.TRANSLATE_SMALL,s=Ku.TRANSLATE_BIG;return mn(this,"_resizerKeyboardManager",new kv([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-n,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-s,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[n,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[s,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-n]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-s]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,n]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,s]}],[["Escape","mac+Escape"],hn.prototype._stopResizingWithKeyboard]]))}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get isDrawer(){return!1}static get _defaultLineColor(){return mn(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const n=new ube({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});n.annotationElementId=t.annotationElementId,n.deleted=!0,n._uiManager.addToAnnotationStorage(n)}static initialize(t,n){if(hn._l10n??(hn._l10n=t),hn._l10nResizer||(hn._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"})),hn._borderLineWidth!==-1)return;const s=getComputedStyle(document.documentElement);hn._borderLineWidth=parseFloat(s.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,n){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,n){Hn("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return y(this,sm)}set _isDraggable(t){var n;G(this,sm,t),(n=this.div)==null||n.classList.toggle("draggable",t)}get isEnterHandled(){return!0}center(){const[t,n]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*n/(t*2),this.y+=this.width*t/(n*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*n/(t*2),this.y-=this.width*t/(n*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=y(this,xb)}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):oe(this,Kt,d2).call(this),this.parent=t}focusin(t){this._focusEventsAllowed&&(y(this,ud)?G(this,ud,!1):this.parent.setSelected(this))}focusout(t){var s;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const n=t.relatedTarget;n!=null&&n.closest(`#${this.id}`)||(t.preventDefault(),(s=this.parent)!=null&&s.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,n,s,a){const[o,r]=this.parentDimensions;[s,a]=this.screenToPageTranslation(s,a),this.x=(t+s)/o,this.y=(n+a)/r,this.fixAndSetPosition()}translate(t,n){oe(this,Kt,Gw).call(this,this.parentDimensions,t,n)}translateInPage(t,n){y(this,wo)||G(this,wo,[this.x,this.y,this.width,this.height]),oe(this,Kt,Gw).call(this,this.pageDimensions,t,n),this.div.scrollIntoView({block:"nearest"})}drag(t,n){y(this,wo)||G(this,wo,[this.x,this.y,this.width,this.height]);const{div:s,parentDimensions:[a,o]}=this;if(this.x+=t/a,this.y+=n/o,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:d,y:h}=this.div.getBoundingClientRect();this.parent.findNewParent(this,d,h)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:r,y:i}=this;const[l,c]=this.getBaseTranslation();r+=l,i+=c;const{style:u}=s;u.left=`${(100*r).toFixed(2)}%`,u.top=`${(100*i).toFixed(2)}%`,this._onTranslating(r,i),s.scrollIntoView({block:"nearest"})}_onTranslating(t,n){}_onTranslated(t,n){}get _hasBeenMoved(){return!!y(this,wo)&&(y(this,wo)[0]!==this.x||y(this,wo)[1]!==this.y)}get _hasBeenResized(){return!!y(this,wo)&&(y(this,wo)[2]!==this.width||y(this,wo)[3]!==this.height)}getBaseTranslation(){const[t,n]=this.parentDimensions,{_borderLineWidth:s}=hn,a=s/t,o=s/n;switch(this.rotation){case 90:return[-a,o];case 180:return[a,o];case 270:return[a,-o];default:return[-a,-o]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){const{div:{style:n},pageDimensions:[s,a]}=this;let{x:o,y:r,width:i,height:l}=this;if(i*=s,l*=a,o*=s,r*=a,this._mustFixPosition)switch(t){case 0:o=Math.max(0,Math.min(s-i,o)),r=Math.max(0,Math.min(a-l,r));break;case 90:o=Math.max(0,Math.min(s-l,o)),r=Math.min(a,Math.max(i,r));break;case 180:o=Math.min(s,Math.max(i,o)),r=Math.min(a,Math.max(l,r));break;case 270:o=Math.min(s,Math.max(l,o)),r=Math.max(0,Math.min(a-i,r));break}this.x=o/=s,this.y=r/=a;const[c,u]=this.getBaseTranslation();o+=c,r+=u,n.left=`${(100*o).toFixed(2)}%`,n.top=`${(100*r).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(t,n){var s;return oe(s=hn,am,Yw).call(s,t,n,this.parentRotation)}pageTranslationToScreen(t,n){var s;return oe(s=hn,am,Yw).call(s,t,n,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:t,pageDimensions:[n,s]}=this;return[n*t,s*t]}setDims(t,n){const[s,a]=this.parentDimensions,{style:o}=this.div;o.width=`${(100*t/s).toFixed(2)}%`,y(this,ld)||(o.height=`${(100*n/a).toFixed(2)}%`)}fixDims(){const{style:t}=this.div,{height:n,width:s}=t,a=s.endsWith("%"),o=!y(this,ld)&&n.endsWith("%");if(a&&o)return;const[r,i]=this.parentDimensions;a||(t.width=`${(100*parseFloat(s)/r).toFixed(2)}%`),!y(this,ld)&&!o&&(t.height=`${(100*parseFloat(n)/i).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}_onResized(){}static _round(t){return Math.round(t*1e4)/1e4}_onResizing(){}altTextFinish(){var t;(t=y(this,Jn))==null||t.finish()}async addEditToolbar(){return this._editToolbar||y(this,dd)?this._editToolbar:(this._editToolbar=new rw(this),this.div.append(this._editToolbar.render()),y(this,Jn)&&await this._editToolbar.addAltText(y(this,Jn)),this._editToolbar)}removeEditToolbar(){var t;this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,(t=y(this,Jn))==null||t.destroy())}addContainer(t){var s;const n=(s=this._editToolbar)==null?void 0:s.div;n?n.before(t):this.div.append(t)}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){y(this,Jn)||(rb.initialize(hn._l10n),G(this,Jn,new rb(this)),y(this,id)&&(y(this,Jn).data=y(this,id),G(this,id,null)),await this.addEditToolbar())}get altTextData(){var t;return(t=y(this,Jn))==null?void 0:t.data}set altTextData(t){y(this,Jn)&&(y(this,Jn).data=t)}get guessedAltText(){var t;return(t=y(this,Jn))==null?void 0:t.guessedText}async setGuessedAltText(t){var n;await((n=y(this,Jn))==null?void 0:n.setGuessedText(t))}serializeAltText(t){var n;return(n=y(this,Jn))==null?void 0:n.serialize(t)}hasAltText(){return!!y(this,Jn)&&!y(this,Jn).isEmpty()}hasAltTextData(){var t;return((t=y(this,Jn))==null?void 0:t.hasData())??!1}render(){var o;this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=y(this,Ah)?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),oe(this,Kt,Qw).call(this);const[t,n]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*n/t).toFixed(2)}%`,this.div.style.maxHeight=`${(100*t/n).toFixed(2)}%`);const[s,a]=this.getInitialTranslation();return this.translate(s,a),ob(this,this.div,["pointerdown"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(y(this,fd)||G(this,fd,new ib({container:this.div,isPinchingDisabled:()=>!this.isSelected,onPinchStart:oe(this,Kt,MR).bind(this),onPinching:oe(this,Kt,PR).bind(this),onPinchEnd:oe(this,Kt,RR).bind(this),signal:this._uiManager._signal}))),(o=this._uiManager._editorUndoBar)==null||o.hide(),this.div}pointerdown(t){const{isMac:n}=La.platform;if(t.button!==0||t.ctrlKey&&n){t.preventDefault();return}if(G(this,ud,!0),this._isDraggable){oe(this,Kt,IR).call(this,t);return}oe(this,Kt,Zw).call(this,t)}get isSelected(){return this._uiManager.isSelected(this)}_onStartDragging(){}_onStopDragging(){}moveInDOM(){y(this,_i)&&clearTimeout(y(this,_i)),G(this,_i,setTimeout(()=>{var t;G(this,_i,null),(t=this.parent)==null||t.moveEditorInDOM(this)},0))}_setParentAndPosition(t,n,s){t.changeParent(this),this.x=n,this.y=s,this.fixAndSetPosition(),this._onTranslated()}getRect(t,n,s=this.rotation){const a=this.parentScale,[o,r]=this.pageDimensions,[i,l]=this.pageTranslation,c=t/a,u=n/a,d=this.x*o,h=this.y*r,p=this.width*o,v=this.height*r;switch(s){case 0:return[d+c+i,r-h-u-v+l,d+c+p+i,r-h-u+l];case 90:return[d+u+i,r-h+c+l,d+u+v+i,r-h+c+p+l];case 180:return[d-c-p+i,r-h+u+l,d-c+i,r-h+u+v+l];case 270:return[d-u-v+i,r-h-c-p+l,d-u+i,r-h-c+l];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,n){const[s,a,o,r]=t,i=o-s,l=r-a;switch(this.rotation){case 0:return[s,n-r,i,l];case 90:return[s,n-a,l,i];case 180:return[o,n-a,i,l];case 270:return[o,n-r,l,i];default:throw new Error("Invalid rotation")}}onceAdded(t){}isEmpty(){return!1}enableEditMode(){G(this,dd,!0)}disableEditMode(){G(this,dd,!1)}isInEditMode(){return y(this,dd)}shouldGetKeyboardEvents(){return y(this,Cl)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){const{top:t,left:n,bottom:s,right:a}=this.getClientDimensions(),{innerHeight:o,innerWidth:r}=window;return n0&&t0}rebuild(){oe(this,Kt,Qw).call(this)}rotate(t){}resize(){}serializeDeleted(){var t;return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:((t=this._initialData)==null?void 0:t.popupRef)||""}}serialize(t=!1,n=null){Hn("An editor must be serializable")}static async deserialize(t,n,s){const a=new this.prototype.constructor({parent:n,id:n.getNextId(),uiManager:s});a.rotation=t.rotation,G(a,id,t.accessibilityData);const[o,r]=a.pageDimensions,[i,l,c,u]=a.getRectInCurrentCoords(t.rect,r);return a.x=i/o,a.y=l/r,a.width=c/o,a.height=u/r,a}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){var t,n;if((t=y(this,Dc))==null||t.abort(),G(this,Dc,null),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),y(this,_i)&&(clearTimeout(y(this,_i)),G(this,_i,null)),oe(this,Kt,d2).call(this),this.removeEditToolbar(),y(this,Uo)){for(const s of y(this,Uo).values())clearTimeout(s);G(this,Uo,null)}this.parent=null,(n=y(this,fd))==null||n.destroy(),G(this,fd,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(oe(this,Kt,AR).call(this),y(this,Zs).classList.remove("hidden"),ob(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),G(this,_l,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const n=y(this,Zs).children;if(!y(this,Mr)){G(this,Mr,Array.from(n));const r=oe(this,Kt,OR).bind(this),i=oe(this,Kt,LR).bind(this),l=this._uiManager._signal;for(const c of y(this,Mr)){const u=c.getAttribute("data-resizer-name");c.setAttribute("role","spinbutton"),c.addEventListener("keydown",r,{signal:l}),c.addEventListener("blur",i,{signal:l}),c.addEventListener("focus",oe(this,Kt,NR).bind(this,u),{signal:l}),c.setAttribute("data-l10n-id",hn._l10nResizer[u])}}const s=y(this,Mr)[0];let a=0;for(const r of n){if(r===s)break;a++}const o=(360-this.rotation+this.parentRotation)%360/90*(y(this,Mr).length/4);if(o!==a){if(oa)for(let i=0;i{var a,o;(a=this.div)!=null&&a.classList.contains("selectedEditor")&&((o=this._editToolbar)==null||o.show())});return}(n=this._editToolbar)==null||n.show(),(s=y(this,Jn))==null||s.toggleAltTextBadge(!1)}unselect(){var t,n,s,a,o;(t=y(this,Zs))==null||t.classList.add("hidden"),(n=this.div)==null||n.classList.remove("selectedEditor"),(s=this.div)!=null&&s.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),(a=this._editToolbar)==null||a.hide(),(o=y(this,Jn))==null||o.toggleAltTextBadge(!0)}updateParams(t,n){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return y(this,nm)}set isEditing(t){G(this,nm,t),this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,n){G(this,ld,!0);const s=t/n,{style:a}=this.div;a.aspectRatio=s,a.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t,n=!1){if(n){y(this,Uo)||G(this,Uo,new Map);const{action:s}=t;let a=y(this,Uo).get(s);a&&clearTimeout(a),a=setTimeout(()=>{this._reportTelemetry(t),y(this,Uo).delete(s),y(this,Uo).size===0&&G(this,Uo,null)},hn._telemetryTimeout),y(this,Uo).set(s,a);return}t.type||(t.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),G(this,Ah,!1)}disable(){this.div&&(this.div.tabIndex=-1),G(this,Ah,!0)}renderAnnotationElement(t){let n=t.container.querySelector(".annotationContent");if(!n)n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),t.container.prepend(n);else if(n.nodeName==="CANVAS"){const s=n;n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),s.before(n)}return n}resetAnnotationElement(t){const{firstChild:n}=t.container;(n==null?void 0:n.nodeName)==="DIV"&&n.classList.contains("annotationContent")&&n.remove()}};id=new WeakMap,Mr=new WeakMap,Jn=new WeakMap,Ah=new WeakMap,$c=new WeakMap,em=new WeakMap,ld=new WeakMap,Zs=new WeakMap,cd=new WeakMap,_l=new WeakMap,Dc=new WeakMap,tm=new WeakMap,ud=new WeakMap,wo=new WeakMap,nm=new WeakMap,dd=new WeakMap,Cl=new WeakMap,_i=new WeakMap,Th=new WeakMap,Mh=new WeakMap,Uo=new WeakMap,fd=new WeakMap,sm=new WeakMap,xb=new WeakMap,Kt=new WeakSet,Gw=function([t,n],s,a){[s,a]=this.screenToPageTranslation(s,a),this.x+=s/t,this.y+=a/n,this._onTranslating(this.x,this.y),this.fixAndSetPosition()},am=new WeakSet,Yw=function(t,n,s){switch(s){case 90:return[n,-t];case 180:return[-t,-n];case 270:return[-n,t];default:return[t,n]}},Kb=function(t){switch(t){case 90:{const[n,s]=this.pageDimensions;return[0,-n/s,s/n,0]}case 180:return[-1,0,0,-1];case 270:{const[n,s]=this.pageDimensions;return[0,n/s,-s/n,0]}default:return[1,0,0,1]}},AR=function(){if(y(this,Zs))return;G(this,Zs,document.createElement("div")),y(this,Zs).classList.add("resizers");const t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],n=this._uiManager._signal;for(const s of t){const a=document.createElement("div");y(this,Zs).append(a),a.classList.add("resizer",s),a.setAttribute("data-resizer-name",s),a.addEventListener("pointerdown",oe(this,Kt,TR).bind(this,s),{signal:n}),a.addEventListener("contextmenu",xr,{signal:n}),a.tabIndex=-1}this.div.prepend(y(this,Zs))},TR=function(t,n){var u;n.preventDefault();const{isMac:s}=La.platform;if(n.button!==0||n.ctrlKey&&s)return;(u=y(this,Jn))==null||u.toggle(!1);const a=this._isDraggable;this._isDraggable=!1,G(this,cd,[n.screenX,n.screenY]);const o=new AbortController,r=this._uiManager.combinedSignal(o);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",oe(this,Kt,Jw).bind(this,t),{passive:!0,capture:!0,signal:r}),window.addEventListener("touchmove",go,{passive:!1,signal:r}),window.addEventListener("contextmenu",xr,{signal:r}),G(this,_l,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const i=this.parent.div.style.cursor,l=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(n.target).cursor;const c=()=>{var d;o.abort(),this.parent.togglePointerEvents(!0),(d=y(this,Jn))==null||d.toggle(!0),this._isDraggable=a,this.parent.div.style.cursor=i,this.div.style.cursor=l,oe(this,Kt,Ub).call(this)};window.addEventListener("pointerup",c,{signal:r}),window.addEventListener("blur",c,{signal:r})},Xw=function(t,n,s,a){this.width=s,this.height=a,this.x=t,this.y=n;const[o,r]=this.parentDimensions;this.setDims(o*s,r*a),this.fixAndSetPosition(),this._onResized()},Ub=function(){if(!y(this,_l))return;const{savedX:t,savedY:n,savedWidth:s,savedHeight:a}=y(this,_l);G(this,_l,null);const o=this.x,r=this.y,i=this.width,l=this.height;o===t&&r===n&&i===s&&l===a||this.addCommands({cmd:oe(this,Kt,Xw).bind(this,o,r,i,l),undo:oe(this,Kt,Xw).bind(this,t,n,s,a),mustExec:!0})},Jw=function(t,n){const[s,a]=this.parentDimensions,o=this.x,r=this.y,i=this.width,l=this.height,c=hn.MIN_SIZE/s,u=hn.MIN_SIZE/a,d=oe(this,Kt,Kb).call(this,this.rotation),h=(Y,L)=>[d[0]*Y+d[2]*L,d[1]*Y+d[3]*L],p=oe(this,Kt,Kb).call(this,360-this.rotation),v=(Y,L)=>[p[0]*Y+p[2]*L,p[1]*Y+p[3]*L];let m,g,b=!1,C=!1;switch(t){case"topLeft":b=!0,m=(Y,L)=>[0,0],g=(Y,L)=>[Y,L];break;case"topMiddle":m=(Y,L)=>[Y/2,0],g=(Y,L)=>[Y/2,L];break;case"topRight":b=!0,m=(Y,L)=>[Y,0],g=(Y,L)=>[0,L];break;case"middleRight":C=!0,m=(Y,L)=>[Y,L/2],g=(Y,L)=>[0,L/2];break;case"bottomRight":b=!0,m=(Y,L)=>[Y,L],g=(Y,L)=>[0,0];break;case"bottomMiddle":m=(Y,L)=>[Y/2,L],g=(Y,L)=>[Y/2,0];break;case"bottomLeft":b=!0,m=(Y,L)=>[0,L],g=(Y,L)=>[Y,0];break;case"middleLeft":C=!0,m=(Y,L)=>[0,L/2],g=(Y,L)=>[Y,L/2];break}const w=m(i,l),_=g(i,l);let x=h(..._);const k=hn._round(o+x[0]),T=hn._round(r+x[1]);let I=1,O=1,R,$;if(n.fromKeyboard)({deltaX:R,deltaY:$}=n);else{const{screenX:Y,screenY:L}=n,[N,V]=y(this,cd);[R,$]=this.screenToPageTranslation(Y-N,L-V),y(this,cd)[0]=Y,y(this,cd)[1]=L}if([R,$]=v(R/s,$/a),b){const Y=Math.hypot(i,l);I=O=Math.max(Math.min(Math.hypot(_[0]-w[0]-R,_[1]-w[1]-$)/Y,1/i,1/l),c/i,u/l)}else C?I=Math.max(c,Math.min(1,Math.abs(_[0]-w[0]-R)))/i:O=Math.max(u,Math.min(1,Math.abs(_[1]-w[1]-$)))/l;const M=hn._round(i*I),B=hn._round(l*O);x=h(...g(M,B));const U=k-x[0],J=T-x[1];y(this,wo)||G(this,wo,[this.x,this.y,this.width,this.height]),this.width=M,this.height=B,this.x=U,this.y=J,this.setDims(s*M,a*B),this.fixAndSetPosition(),this._onResizing()},MR=function(){var t;G(this,_l,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height}),(t=y(this,Jn))==null||t.toggle(!1),this.parent.togglePointerEvents(!1)},PR=function(t,n,s){let o=.7*(s/n)+1-.7;if(o===1)return;const r=oe(this,Kt,Kb).call(this,this.rotation),i=(k,T)=>[r[0]*k+r[2]*T,r[1]*k+r[3]*T],[l,c]=this.parentDimensions,u=this.x,d=this.y,h=this.width,p=this.height,v=hn.MIN_SIZE/l,m=hn.MIN_SIZE/c;o=Math.max(Math.min(o,1/h,1/p),v/h,m/p);const g=hn._round(h*o),b=hn._round(p*o);if(g===h&&b===p)return;y(this,wo)||G(this,wo,[u,d,h,p]);const C=i(h/2,p/2),w=hn._round(u+C[0]),_=hn._round(d+C[1]),x=i(g/2,b/2);this.x=w-x[0],this.y=_-x[1],this.width=g,this.height=b,this.setDims(l*g,c*b),this.fixAndSetPosition(),this._onResizing()},RR=function(){var t;(t=y(this,Jn))==null||t.toggle(!0),this.parent.togglePointerEvents(!0),oe(this,Kt,Ub).call(this)},Zw=function(t){const{isMac:n}=La.platform;t.ctrlKey&&!n||t.shiftKey||t.metaKey&&n?this.parent.toggleSelected(this):this.parent.setSelected(this)},IR=function(t){const{isSelected:n}=this;this._uiManager.setUpDragSession();let s=!1;const a=new AbortController,o=this._uiManager.combinedSignal(a),r={capture:!0,passive:!1,signal:o},i=c=>{a.abort(),G(this,$c,null),G(this,ud,!1),this._uiManager.endDragSession()||oe(this,Kt,Zw).call(this,c),s&&this._onStopDragging()};n&&(G(this,Th,t.clientX),G(this,Mh,t.clientY),G(this,$c,t.pointerId),G(this,em,t.pointerType),window.addEventListener("pointermove",c=>{s||(s=!0,this._onStartDragging());const{clientX:u,clientY:d,pointerId:h}=c;if(h!==y(this,$c)){go(c);return}const[p,v]=this.screenToPageTranslation(u-y(this,Th),d-y(this,Mh));G(this,Th,u),G(this,Mh,d),this._uiManager.dragSelectedEditors(p,v)},r),window.addEventListener("touchmove",go,r),window.addEventListener("pointerdown",c=>{c.pointerType===y(this,em)&&(y(this,fd)||c.isPrimary)&&i(c),go(c)},r));const l=c=>{if(!y(this,$c)||y(this,$c)===c.pointerId){i(c);return}go(c)};window.addEventListener("pointerup",l,{signal:o}),window.addEventListener("blur",l,{signal:o})},Qw=function(){if(y(this,Dc)||!this.div)return;G(this,Dc,new AbortController);const t=this._uiManager.combinedSignal(y(this,Dc));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:t}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:t})},OR=function(t){hn._resizerKeyboardManager.exec(this,t)},LR=function(t){var n;y(this,Cl)&&((n=t.relatedTarget)==null?void 0:n.parentNode)!==y(this,Zs)&&oe(this,Kt,d2).call(this)},NR=function(t){G(this,tm,y(this,Cl)?t:"")},e_=function(t){if(y(this,Mr))for(const n of y(this,Mr))n.tabIndex=t},d2=function(){G(this,Cl,!1),oe(this,Kt,e_).call(this,-1),oe(this,Kt,Ub).call(this)},ne(hn,am),Ut(hn,"_l10n",null),Ut(hn,"_l10nResizer",null),Ut(hn,"_borderLineWidth",-1),Ut(hn,"_colorManager",new lw),Ut(hn,"_zIndex",1),Ut(hn,"_telemetryTimeout",1e3);let is=hn;class ube extends is{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const gP=3285377520,Wo=4294901760,fi=65535;class bP{constructor(t){this.h1=t?t&4294967295:gP,this.h2=t?t&4294967295:gP}update(t){let n,s;if(typeof t=="string"){n=new Uint8Array(t.length*2),s=0;for(let m=0,g=t.length;m>>8,n[s++]=b&255)}}else if(ArrayBuffer.isView(t))n=t.slice(),s=n.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const a=s>>2,o=s-a*4,r=new Uint32Array(n.buffer,0,a);let i=0,l=0,c=this.h1,u=this.h2;const d=3432918353,h=461845907,p=d&fi,v=h&fi;for(let m=0;m>>17,i=i*h&Wo|i*v&fi,c^=i,c=c<<13|c>>>19,c=c*5+3864292196):(l=r[m],l=l*d&Wo|l*p&fi,l=l<<15|l>>>17,l=l*h&Wo|l*v&fi,u^=l,u=u<<13|u>>>19,u=u*5+3864292196);switch(i=0,o){case 3:i^=n[a*4+2]<<16;case 2:i^=n[a*4+1]<<8;case 1:i^=n[a*4],i=i*d&Wo|i*p&fi,i=i<<15|i>>>17,i=i*h&Wo|i*v&fi,a&1?c^=i:u^=i}this.h1=c,this.h2=u}hexdigest(){let t=this.h1,n=this.h2;return t^=n>>>1,t=t*3981806797&Wo|t*36045&fi,n=n*4283543511&Wo|((n<<16|t>>>16)*2950163797&Wo)>>>16,t^=n>>>1,t=t*444984403&Wo|t*60499&fi,n=n*3301882366&Wo|((n<<16|t>>>16)*3120437893&Wo)>>>16,t^=n>>>1,(t>>>0).toString(16).padStart(8,"0")+(n>>>0).toString(16).padStart(8,"0")}}const cw=Object.freeze({map:null,hash:"",transfer:void 0});class uw{constructor(){ne(this,kb);ne(this,hd,!1);ne(this,pd,null);ne(this,Ws,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,n){const s=y(this,Ws).get(t);return s===void 0?n:Object.assign(n,s)}getRawValue(t){return y(this,Ws).get(t)}remove(t){if(y(this,Ws).delete(t),y(this,Ws).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const n of y(this,Ws).values())if(n instanceof is)return;this.onAnnotationEditor(null)}}setValue(t,n){const s=y(this,Ws).get(t);let a=!1;if(s!==void 0)for(const[o,r]of Object.entries(n))s[o]!==r&&(a=!0,s[o]=r);else a=!0,y(this,Ws).set(t,n);a&&oe(this,kb,$R).call(this),n instanceof is&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(n.constructor._type)}has(t){return y(this,Ws).has(t)}getAll(){return y(this,Ws).size>0?J8(y(this,Ws)):null}setAll(t){for(const[n,s]of Object.entries(t))this.setValue(n,s)}get size(){return y(this,Ws).size}resetModified(){y(this,hd)&&(G(this,hd,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new yP(this)}get serializable(){if(y(this,Ws).size===0)return cw;const t=new Map,n=new bP,s=[],a=Object.create(null);let o=!1;for(const[r,i]of y(this,Ws)){const l=i instanceof is?i.serialize(!1,a):i;l&&(t.set(r,l),n.update(`${r}:${JSON.stringify(l)}`),o||(o=!!l.bitmap))}if(o)for(const r of t.values())r.bitmap&&s.push(r.bitmap);return t.size>0?{map:t,hash:n.hexdigest(),transfer:s}:cw}get editorStats(){let t=null;const n=new Map;for(const s of y(this,Ws).values()){if(!(s instanceof is))continue;const a=s.telemetryFinalData;if(!a)continue;const{type:o}=a;n.has(o)||n.set(o,Object.getPrototypeOf(s).constructor),t||(t=Object.create(null));const r=t[o]||(t[o]=new Map);for(const[i,l]of Object.entries(a)){if(i==="type")continue;let c=r.get(i);c||(c=new Map,r.set(i,c));const u=c.get(l)??0;c.set(l,u+1)}}for(const[s,a]of n)t[s]=a.computeTelemetryFinalData(t[s]);return t}resetModifiedIds(){G(this,pd,null)}get modifiedIds(){if(y(this,pd))return y(this,pd);const t=[];for(const n of y(this,Ws).values())!(n instanceof is)||!n.annotationElementId||!n.serialize()||t.push(n.annotationElementId);return G(this,pd,{ids:new Set(t),hash:t.join(",")})}}hd=new WeakMap,pd=new WeakMap,Ws=new WeakMap,kb=new WeakSet,$R=function(){y(this,hd)||(G(this,hd,!0),typeof this.onSetModified=="function"&&this.onSetModified())};class yP extends uw{constructor(n){super();ne(this,om);const{map:s,hash:a,transfer:o}=n.serializable,r=structuredClone(s,o?{transfer:o}:null);G(this,om,{map:r,hash:a,transfer:o})}get print(){Hn("Should not call PrintAnnotationStorage.print")}get serializable(){return y(this,om)}get modifiedIds(){return mn(this,"modifiedIds",{ids:new Set,hash:""})}}om=new WeakMap;class dbe{constructor({ownerDocument:t=globalThis.document,styleElement:n=null}){ne(this,Ph,new Set);this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const n=this.styleElement.sheet;n.insertRule(t,n.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),y(this,Ph).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,_inspectFont:n}){if(!(!t||y(this,Ph).has(t.loadedName))){if(Ss(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:s,src:a,style:o}=t,r=new FontFace(s,a,o);this.addNativeFontFace(r);try{await r.load(),y(this,Ph).add(s),n==null||n(t)}catch{fn(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(r)}return}Hn("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){const s=t.createNativeFontFace();if(s){this.addNativeFontFace(s);try{await s.loaded}catch(a){throw fn(`Failed to load font '${s.family}': '${a}'.`),t.disableFontFace=!0,a}}return}const n=t.createFontFaceRule();if(n){if(this.insertRule(n),this.isSyncFontLoadingSupported)return;await new Promise(s=>{const a=this._queueLoadingCallback(s);this._prepareFontLoadEvent(t,a)})}}get isFontLoadingAPISupported(){var n;const t=!!((n=this._document)!=null&&n.fonts);return mn(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;return(ma||typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.userAgent)=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),mn(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){function n(){for(Ss(!a.done,"completeRequest() cannot be called twice."),a.done=!0;s.length>0&&s[0].done;){const o=s.shift();setTimeout(o.callback,0)}}const{loadingRequests:s}=this,a={done:!1,complete:n,callback:t};return s.push(a),a}get _loadTestFont(){const t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return mn(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,n){function s(_,x){return _.charCodeAt(x)<<24|_.charCodeAt(x+1)<<16|_.charCodeAt(x+2)<<8|_.charCodeAt(x+3)&255}function a(_,x,k,T){const I=_.substring(0,x),O=_.substring(x+k);return I+T+O}let o,r;const i=this._document.createElement("canvas");i.width=1,i.height=1;const l=i.getContext("2d");let c=0;function u(_,x){if(++c>30){fn("Load test font never loaded."),x();return}if(l.font="30px "+_,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0){x();return}setTimeout(u.bind(null,_,x))}const d=`lt${Date.now()}${this.loadTestFontId++}`;let h=this._loadTestFont;h=a(h,976,d.length,d);const v=16,m=1482184792;let g=s(h,v);for(o=0,r=d.length-3;o{w.remove(),n.complete()})}}Ph=new WeakMap;class fbe{constructor(t,{disableFontFace:n=!1,fontExtraProperties:s=!1,inspectFont:a=null}){this.compiledGlyphs=Object.create(null);for(const o in t)this[o]=t[o];this.disableFontFace=n===!0,this.fontExtraProperties=s===!0,this._inspectFont=a}createNativeFontFace(){var n;if(!this.data||this.disableFontFace)return null;let t;if(!this.cssFontInfo)t=new FontFace(this.loadedName,this.data,{});else{const s={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(s.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(this.cssFontInfo.fontFamily,this.data,s)}return(n=this._inspectFont)==null||n.call(this,this),t}createFontFaceRule(){var s;if(!this.data||this.disableFontFace)return null;const t=`url(data:${this.mimetype};base64,${nbe(this.data)});`;let n;if(!this.cssFontInfo)n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;else{let a=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(a+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${a}src:${t}}`}return(s=this._inspectFont)==null||s.call(this,this,t),n}getPathGenerator(t,n){if(this.compiledGlyphs[n]!==void 0)return this.compiledGlyphs[n];const s=this.loadedName+"_path_"+n;let a;try{a=t.get(s)}catch(r){fn(`getPathGenerator - ignoring character: "${r}".`)}const o=new Path2D(a||"");return this.fontExtraProperties||t.delete(s),this.compiledGlyphs[n]=o}}const lb={DATA:1,ERROR:2},xs={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function wP(){}function Za(e){if(e instanceof Cc||e instanceof X8||e instanceof Cv||e instanceof hP||e instanceof tb||e instanceof Y8)return e;switch(e instanceof Error||typeof e=="object"&&e!==null||Hn('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new Cc(e.message);case"InvalidPDFException":return new X8(e.message);case"MissingPDFException":return new Cv(e.message);case"PasswordException":return new hP(e.message,e.code);case"UnexpectedResponseException":return new tb(e.message,e.status);case"UnknownErrorException":return new Y8(e.message,e.details)}return new Y8(e.message,e.toString())}class Ev{constructor(t,n,s){ne(this,qo);ne(this,Rh,new AbortController);this.sourceName=t,this.targetName=n,this.comObj=s,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),s.addEventListener("message",oe(this,qo,DR).bind(this),{signal:y(this,Rh).signal})}on(t,n){const s=this.actionHandler;if(s[t])throw new Error(`There is already an actionName called "${t}"`);s[t]=n}send(t,n,s){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:n},s)}sendWithPromise(t,n,s){const a=this.callbackId++,o=Promise.withResolvers();this.callbackCapabilities[a]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:a,data:n},s)}catch(r){o.reject(r)}return o.promise}sendWithStream(t,n,s,a){const o=this.streamId++,r=this.sourceName,i=this.targetName,l=this.comObj;return new ReadableStream({start:c=>{const u=Promise.withResolvers();return this.streamControllers[o]={controller:c,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:r,targetName:i,action:t,streamId:o,data:n,desiredSize:c.desiredSize},a),u.promise},pull:c=>{const u=Promise.withResolvers();return this.streamControllers[o].pullCall=u,l.postMessage({sourceName:r,targetName:i,stream:xs.PULL,streamId:o,desiredSize:c.desiredSize}),u.promise},cancel:c=>{Ss(c instanceof Error,"cancel must have a valid reason");const u=Promise.withResolvers();return this.streamControllers[o].cancelCall=u,this.streamControllers[o].isClosed=!0,l.postMessage({sourceName:r,targetName:i,stream:xs.CANCEL,streamId:o,reason:Za(c)}),u.promise}},s)}destroy(){var t;(t=y(this,Rh))==null||t.abort(),G(this,Rh,null)}}Rh=new WeakMap,qo=new WeakSet,DR=function({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream){oe(this,qo,BR).call(this,t);return}if(t.callback){const s=t.callbackId,a=this.callbackCapabilities[s];if(!a)throw new Error(`Cannot resolve callback ${s}`);if(delete this.callbackCapabilities[s],t.callback===lb.DATA)a.resolve(t.data);else if(t.callback===lb.ERROR)a.reject(Za(t.reason));else throw new Error("Unexpected callback case");return}const n=this.actionHandler[t.action];if(!n)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const s=this.sourceName,a=t.sourceName,o=this.comObj;Promise.try(n,t.data).then(function(r){o.postMessage({sourceName:s,targetName:a,callback:lb.DATA,callbackId:t.callbackId,data:r})},function(r){o.postMessage({sourceName:s,targetName:a,callback:lb.ERROR,callbackId:t.callbackId,reason:Za(r)})});return}if(t.streamId){oe(this,qo,FR).call(this,t);return}n(t.data)},FR=function(t){const n=t.streamId,s=this.sourceName,a=t.sourceName,o=this.comObj,r=this,i=this.actionHandler[t.action],l={enqueue(c,u=1,d){if(this.isCancelled)return;const h=this.desiredSize;this.desiredSize-=u,h>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:s,targetName:a,stream:xs.ENQUEUE,streamId:n,chunk:c},d)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:s,targetName:a,stream:xs.CLOSE,streamId:n}),delete r.streamSinks[n])},error(c){Ss(c instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,o.postMessage({sourceName:s,targetName:a,stream:xs.ERROR,streamId:n,reason:Za(c)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[n]=l,Promise.try(i,t.data,l).then(function(){o.postMessage({sourceName:s,targetName:a,stream:xs.START_COMPLETE,streamId:n,success:!0})},function(c){o.postMessage({sourceName:s,targetName:a,stream:xs.START_COMPLETE,streamId:n,reason:Za(c)})})},BR=function(t){const n=t.streamId,s=this.sourceName,a=t.sourceName,o=this.comObj,r=this.streamControllers[n],i=this.streamSinks[n];switch(t.stream){case xs.START_COMPLETE:t.success?r.startCall.resolve():r.startCall.reject(Za(t.reason));break;case xs.PULL_COMPLETE:t.success?r.pullCall.resolve():r.pullCall.reject(Za(t.reason));break;case xs.PULL:if(!i){o.postMessage({sourceName:s,targetName:a,stream:xs.PULL_COMPLETE,streamId:n,success:!0});break}i.desiredSize<=0&&t.desiredSize>0&&i.sinkCapability.resolve(),i.desiredSize=t.desiredSize,Promise.try(i.onPull||wP).then(function(){o.postMessage({sourceName:s,targetName:a,stream:xs.PULL_COMPLETE,streamId:n,success:!0})},function(c){o.postMessage({sourceName:s,targetName:a,stream:xs.PULL_COMPLETE,streamId:n,reason:Za(c)})});break;case xs.ENQUEUE:if(Ss(r,"enqueue should have stream controller"),r.isClosed)break;r.controller.enqueue(t.chunk);break;case xs.CLOSE:if(Ss(r,"close should have stream controller"),r.isClosed)break;r.isClosed=!0,r.controller.close(),oe(this,qo,qb).call(this,r,n);break;case xs.ERROR:Ss(r,"error should have stream controller"),r.controller.error(Za(t.reason)),oe(this,qo,qb).call(this,r,n);break;case xs.CANCEL_COMPLETE:t.success?r.cancelCall.resolve():r.cancelCall.reject(Za(t.reason)),oe(this,qo,qb).call(this,r,n);break;case xs.CANCEL:if(!i)break;const l=Za(t.reason);Promise.try(i.onCancel||wP,l).then(function(){o.postMessage({sourceName:s,targetName:a,stream:xs.CANCEL_COMPLETE,streamId:n,success:!0})},function(c){o.postMessage({sourceName:s,targetName:a,stream:xs.CANCEL_COMPLETE,streamId:n,reason:Za(c)})}),i.sinkCapability.reject(l),i.isCancelled=!0,delete this.streamSinks[n];break;default:throw new Error("Unexpected stream case")}},qb=async function(t,n){var s,a,o;await Promise.allSettled([(s=t.startCall)==null?void 0:s.promise,(a=t.pullCall)==null?void 0:a.promise,(o=t.cancelCall)==null?void 0:o.promise]),delete this.streamControllers[n]};class _P{constructor({enableHWA:t=!1}){ne(this,rm,!1);G(this,rm,t)}create(t,n){if(t<=0||n<=0)throw new Error("Invalid canvas size");const s=this._createCanvas(t,n);return{canvas:s,context:s.getContext("2d",{willReadFrequently:!y(this,rm)})}}reset(t,n,s){if(!t.canvas)throw new Error("Canvas is not specified");if(n<=0||s<=0)throw new Error("Invalid canvas size");t.canvas.width=n,t.canvas.height=s}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}_createCanvas(t,n){Hn("Abstract method `_createCanvas` called.")}}rm=new WeakMap;class hbe extends _P{constructor({ownerDocument:t=globalThis.document,enableHWA:n=!1}){super({enableHWA:n}),this._document=t}_createCanvas(t,n){const s=this._document.createElement("canvas");return s.width=t,s.height=n,s}}class CP{constructor({baseUrl:t=null,isCompressed:n=!0}){this.baseUrl=t,this.isCompressed=n}async fetch({name:t}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!t)throw new Error("CMap name must be specified.");const n=this.baseUrl+t+(this.isCompressed?".bcmap":"");return this._fetch(n).then(s=>({cMapData:s,isCompressed:this.isCompressed})).catch(s=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${n}`)})}async _fetch(t){Hn("Abstract method `_fetch` called.")}}class SP extends CP{async _fetch(t){const n=await sb(t,this.isCompressed?"arraybuffer":"text");return n instanceof ArrayBuffer?new Uint8Array(n):nb(n)}}class xP{addFilter(t){return"none"}addHCMFilter(t,n){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addHighlightHCMFilter(t,n,s,a,o){return"none"}destroy(t=!1){}}class pbe extends xP{constructor({docId:n,ownerDocument:s=globalThis.document}){super();ne(this,It);ne(this,vd);ne(this,Ih);ne(this,Sl);ne(this,xl);ne(this,wa);ne(this,md);ne(this,gd,0);G(this,xl,n),G(this,wa,s)}addFilter(n){if(!n)return"none";let s=y(this,It,xa).get(n);if(s)return s;const[a,o,r]=oe(this,It,Gb).call(this,n),i=n.length===1?a:`${a}${o}${r}`;if(s=y(this,It,xa).get(i),s)return y(this,It,xa).set(n,s),s;const l=`g_${y(this,xl)}_transfer_map_${za(this,gd)._++}`,c=oe(this,It,k0).call(this,l);y(this,It,xa).set(n,c),y(this,It,xa).set(i,c);const u=oe(this,It,E0).call(this,l);return oe(this,It,p2).call(this,a,o,r,u),c}addHCMFilter(n,s){var v;const a=`${n}-${s}`,o="base";let r=y(this,It,f2).get(o);if((r==null?void 0:r.key)===a||(r?((v=r.filter)==null||v.remove(),r.key=a,r.url="none",r.filter=null):(r={key:a,url:"none",filter:null},y(this,It,f2).set(o,r)),!n||!s))return r.url;const i=oe(this,It,v2).call(this,n);n=zt.makeHexColor(...i);const l=oe(this,It,v2).call(this,s);if(s=zt.makeHexColor(...l),y(this,It,x0).style.color="",n==="#000000"&&s==="#ffffff"||n===s)return r.url;const c=new Array(256);for(let m=0;m<=255;m++){const g=m/255;c[m]=g<=.03928?g/12.92:((g+.055)/1.055)**2.4}const u=c.join(","),d=`g_${y(this,xl)}_hcm_filter`,h=r.filter=oe(this,It,E0).call(this,d);oe(this,It,p2).call(this,u,u,u,h),oe(this,It,t_).call(this,h);const p=(m,g)=>{const b=i[m]/255,C=l[m]/255,w=new Array(g+1);for(let _=0;_<=g;_++)w[_]=b+_/g*(C-b);return w.join(",")};return oe(this,It,p2).call(this,p(0,5),p(1,5),p(2,5),h),r.url=oe(this,It,k0).call(this,d),r.url}addAlphaFilter(n){let s=y(this,It,xa).get(n);if(s)return s;const[a]=oe(this,It,Gb).call(this,[n]),o=`alpha_${a}`;if(s=y(this,It,xa).get(o),s)return y(this,It,xa).set(n,s),s;const r=`g_${y(this,xl)}_alpha_map_${za(this,gd)._++}`,i=oe(this,It,k0).call(this,r);y(this,It,xa).set(n,i),y(this,It,xa).set(o,i);const l=oe(this,It,E0).call(this,r);return oe(this,It,n_).call(this,a,l),i}addLuminosityFilter(n){let s=y(this,It,xa).get(n||"luminosity");if(s)return s;let a,o;if(n?([a]=oe(this,It,Gb).call(this,[n]),o=`luminosity_${a}`):o="luminosity",s=y(this,It,xa).get(o),s)return y(this,It,xa).set(n,s),s;const r=`g_${y(this,xl)}_luminosity_map_${za(this,gd)._++}`,i=oe(this,It,k0).call(this,r);y(this,It,xa).set(n,i),y(this,It,xa).set(o,i);const l=oe(this,It,E0).call(this,r);return oe(this,It,VR).call(this,l),n&&oe(this,It,n_).call(this,a,l),i}addHighlightHCMFilter(n,s,a,o,r){var C;const i=`${s}-${a}-${o}-${r}`;let l=y(this,It,f2).get(n);if((l==null?void 0:l.key)===i||(l?((C=l.filter)==null||C.remove(),l.key=i,l.url="none",l.filter=null):(l={key:i,url:"none",filter:null},y(this,It,f2).set(n,l)),!s||!a))return l.url;const[c,u]=[s,a].map(oe(this,It,v2).bind(this));let d=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),h=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[p,v]=[o,r].map(oe(this,It,v2).bind(this));h{const k=new Array(256),T=(h-d)/x,I=w/255,O=(_-w)/(255*x);let R=0;for(let $=0;$<=x;$++){const M=Math.round(d+$*T),B=I+$*O;for(let U=R;U<=M;U++)k[U]=B;R=M+1}for(let $=R;$<256;$++)k[$]=k[R-1];return k.join(",")},g=`g_${y(this,xl)}_hcm_${n}_filter`,b=l.filter=oe(this,It,E0).call(this,g);return oe(this,It,t_).call(this,b),oe(this,It,p2).call(this,m(p[0],v[0],5),m(p[1],v[1],5),m(p[2],v[2],5),b),l.url=oe(this,It,k0).call(this,g),l.url}destroy(n=!1){var s,a,o,r;n&&((s=y(this,md))!=null&&s.size)||((a=y(this,Sl))==null||a.parentNode.parentNode.remove(),G(this,Sl,null),(o=y(this,Ih))==null||o.clear(),G(this,Ih,null),(r=y(this,md))==null||r.clear(),G(this,md,null),G(this,gd,0))}}vd=new WeakMap,Ih=new WeakMap,Sl=new WeakMap,xl=new WeakMap,wa=new WeakMap,md=new WeakMap,gd=new WeakMap,It=new WeakSet,xa=function(){return y(this,Ih)||G(this,Ih,new Map)},f2=function(){return y(this,md)||G(this,md,new Map)},x0=function(){if(!y(this,Sl)){const n=y(this,wa).createElement("div"),{style:s}=n;s.visibility="hidden",s.contain="strict",s.width=s.height=0,s.position="absolute",s.top=s.left=0,s.zIndex=-1;const a=y(this,wa).createElementNS(dl,"svg");a.setAttribute("width",0),a.setAttribute("height",0),G(this,Sl,y(this,wa).createElementNS(dl,"defs")),n.append(a),a.append(y(this,Sl)),y(this,wa).body.append(n)}return y(this,Sl)},Gb=function(n){if(n.length===1){const c=n[0],u=new Array(256);for(let h=0;h<256;h++)u[h]=c[h]/255;const d=u.join(",");return[d,d,d]}const[s,a,o]=n,r=new Array(256),i=new Array(256),l=new Array(256);for(let c=0;c<256;c++)r[c]=s[c]/255,i[c]=a[c]/255,l[c]=o[c]/255;return[r.join(","),i.join(","),l.join(",")]},k0=function(n){if(y(this,vd)===void 0){G(this,vd,"");const s=y(this,wa).URL;s!==y(this,wa).baseURI&&(ab(s)?fn('#createUrl: ignore "data:"-URL for performance reasons.'):G(this,vd,s.split("#",1)[0]))}return`url(${y(this,vd)}#${n})`},VR=function(n){const s=y(this,wa).createElementNS(dl,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),n.append(s)},t_=function(n){const s=y(this,wa).createElementNS(dl,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),n.append(s)},E0=function(n){const s=y(this,wa).createElementNS(dl,"filter");return s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("id",n),y(this,It,x0).append(s),s},h2=function(n,s,a){const o=y(this,wa).createElementNS(dl,s);o.setAttribute("type","discrete"),o.setAttribute("tableValues",a),n.append(o)},p2=function(n,s,a,o){const r=y(this,wa).createElementNS(dl,"feComponentTransfer");o.append(r),oe(this,It,h2).call(this,r,"feFuncR",n),oe(this,It,h2).call(this,r,"feFuncG",s),oe(this,It,h2).call(this,r,"feFuncB",a)},n_=function(n,s){const a=y(this,wa).createElementNS(dl,"feComponentTransfer");s.append(a),oe(this,It,h2).call(this,a,"feFuncA",n)},v2=function(n){return y(this,It,x0).style.color=n,aw(getComputedStyle(y(this,It,x0)).getPropertyValue("color"))};class kP{constructor({baseUrl:t=null}){this.baseUrl=t}async fetch({filename:t}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!t)throw new Error("Font filename must be specified.");const n=`${this.baseUrl}${t}`;return this._fetch(n).catch(s=>{throw new Error(`Unable to load font data at: ${n}`)})}async _fetch(t){Hn("Abstract method `_fetch` called.")}}class EP extends kP{async _fetch(t){const n=await sb(t,"arraybuffer");return new Uint8Array(n)}}ma&&fn("Please use the `legacy` build in Node.js environments.");async function AP(e){const n=await process.getBuiltinModule("fs").promises.readFile(e);return new Uint8Array(n)}class vbe extends xP{}class mbe extends _P{_createCanvas(t,n){return process.getBuiltinModule("module").createRequire(Mn&&Mn.tagName.toUpperCase()==="SCRIPT"&&Mn.src||new URL("ocrz-app.js",document.baseURI).href)("@napi-rs/canvas").createCanvas(t,n)}}class gbe extends CP{async _fetch(t){return AP(t)}}class bbe extends kP{async _fetch(t){return AP(t)}}const ba={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function dw(e,t){if(!t)return;const n=t[2]-t[0],s=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],n,s),e.clip(a)}class fw{getPattern(){Hn("Abstract method `getPattern` called.")}}class ybe extends fw{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let n;this._type==="axial"?n=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(n=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const s of this._colorStops)n.addColorStop(s[0],s[1]);return n}getPattern(t,n,s,a){let o;if(a===ba.STROKE||a===ba.FILL){const r=n.current.getClippedPathBoundingBox(a,ns(t))||[0,0,0,0],i=Math.ceil(r[2]-r[0])||1,l=Math.ceil(r[3]-r[1])||1,c=n.cachedCanvases.getCanvas("pattern",i,l),u=c.context;u.clearRect(0,0,u.canvas.width,u.canvas.height),u.beginPath(),u.rect(0,0,u.canvas.width,u.canvas.height),u.translate(-r[0],-r[1]),s=zt.transform(s,[1,0,0,1,r[0],r[1]]),u.transform(...n.baseTransform),this.matrix&&u.transform(...this.matrix),dw(u,this._bbox),u.fillStyle=this._createGradient(u),u.fill(),o=t.createPattern(c.canvas,"no-repeat");const d=new DOMMatrix(s);o.setTransform(d)}else dw(t,this._bbox),o=this._createGradient(t);return o}}function hw(e,t,n,s,a,o,r,i){const l=t.coords,c=t.colors,u=e.data,d=e.width*4;let h;l[n+1]>l[s+1]&&(h=n,n=s,s=h,h=o,o=r,r=h),l[s+1]>l[a+1]&&(h=s,s=a,a=h,h=r,r=i,i=h),l[n+1]>l[s+1]&&(h=n,n=s,s=h,h=o,o=r,r=h);const p=(l[n]+t.offsetX)*t.scaleX,v=(l[n+1]+t.offsetY)*t.scaleY,m=(l[s]+t.offsetX)*t.scaleX,g=(l[s+1]+t.offsetY)*t.scaleY,b=(l[a]+t.offsetX)*t.scaleX,C=(l[a+1]+t.offsetY)*t.scaleY;if(v>=C)return;const w=c[o],_=c[o+1],x=c[o+2],k=c[r],T=c[r+1],I=c[r+2],O=c[i],R=c[i+1],$=c[i+2],M=Math.round(v),B=Math.round(C);let U,J,Y,L,N,V,z,q;for(let Q=M;Q<=B;Q++){if(QC?te=1:g===C?te=0:te=(g-Q)/(g-C),U=m-(m-b)*te,J=k-(k-O)*te,Y=T-(T-R)*te,L=I-(I-$)*te}let K;QC?K=1:K=(v-Q)/(v-C),N=p-(p-b)*K,V=w-(w-O)*K,z=_-(_-R)*K,q=x-(x-$)*K;const ee=Math.round(Math.min(U,N)),se=Math.round(Math.max(U,N));let pe=d*Q+ee*4;for(let te=ee;te<=se;te++)K=(U-te)/(U-N),K<0?K=0:K>1&&(K=1),u[pe++]=J-(J-V)*K|0,u[pe++]=Y-(Y-z)*K|0,u[pe++]=L-(L-q)*K|0,u[pe++]=255}}function wbe(e,t,n){const s=t.coords,a=t.colors;let o,r;switch(t.type){case"lattice":const i=t.verticesPerRow,l=Math.floor(s.length/i)-1,c=i-1;for(o=0;o=R?_=l:k=!0,O>=$?x=c:T=!0;const M=this.getSizeAndScale(_,this.ctx.canvas.width,C),B=this.getSizeAndScale(x,this.ctx.canvas.height,w),U=t.cachedCanvases.getCanvas("pattern",M.size,B.size),J=U.context,Y=i.createCanvasGraphics(J);if(Y.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(Y,a,r),J.translate(-M.scale*u,-B.scale*d),Y.transform(M.scale,0,0,B.scale,0,0),J.save(),this.clipBbox(Y,u,d,h,p),Y.baseTransform=ns(Y.ctx),Y.executeOperatorList(s),Y.endDrawing(),J.restore(),k||T){const L=U.canvas;k&&(_=l),T&&(x=c);const N=this.getSizeAndScale(_,this.ctx.canvas.width,C),V=this.getSizeAndScale(x,this.ctx.canvas.height,w),z=N.size,q=V.size,Q=t.cachedCanvases.getCanvas("pattern-workaround",z,q),K=Q.context,ee=k?Math.floor(v/l):0,se=T?Math.floor(m/c):0;for(let pe=0;pe<=ee;pe++)for(let te=0;te<=se;te++)K.drawImage(L,z*pe,q*te,z,q,0,0,z,q);return{canvas:Q.canvas,scaleX:N.scale,scaleY:V.scale,offsetX:u,offsetY:d}}return{canvas:U.canvas,scaleX:M.scale,scaleY:B.scale,offsetX:u,offsetY:d}}getSizeAndScale(t,n,s){const a=Math.max(Eb.MAX_PATTERN_SIZE,n);let o=Math.ceil(t*s);return o>=a?o=a:s=o/t,{scale:s,size:o}}clipBbox(t,n,s,a,o){const r=a-n,i=o-s;t.ctx.rect(n,s,r,i),t.current.updateRectMinMax(ns(t.ctx),[n,s,a,o]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,n,s){const a=t.ctx,o=t.current;switch(n){case TP.COLORED:const r=this.ctx;a.fillStyle=r.fillStyle,a.strokeStyle=r.strokeStyle,o.fillColor=r.fillStyle,o.strokeColor=r.strokeStyle;break;case TP.UNCOLORED:const i=zt.makeHexColor(s[0],s[1],s[2]);a.fillStyle=i,a.strokeStyle=i,o.fillColor=i,o.strokeColor=i;break;default:throw new Y1e(`Unsupported paint type: ${n}`)}}getPattern(t,n,s,a){let o=s;a!==ba.SHADING&&(o=zt.transform(o,n.baseTransform),this.matrix&&(o=zt.transform(o,this.matrix)));const r=this.createPatternCanvas(n);let i=new DOMMatrix(o);i=i.translate(r.offsetX,r.offsetY),i=i.scale(1/r.scaleX,1/r.scaleY);const l=t.createPattern(r.canvas,"repeat");return l.setTransform(i),l}};Ut(Eb,"MAX_PATTERN_SIZE",3e3);let pw=Eb;function xbe({src:e,srcPos:t=0,dest:n,width:s,height:a,nonBlackColor:o=4294967295,inverseDecode:r=!1}){const i=La.isLittleEndian?4278190080:255,[l,c]=r?[o,i]:[i,o],u=s>>3,d=s&7,h=e.length;n=new Uint32Array(n.buffer);let p=0;for(let v=0;v{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(s,a){t.translate(s,a),this.__originalTranslate(s,a)},e.scale=function(s,a){t.scale(s,a),this.__originalScale(s,a)},e.transform=function(s,a,o,r,i,l){t.transform(s,a,o,r,i,l),this.__originalTransform(s,a,o,r,i,l)},e.setTransform=function(s,a,o,r,i,l){t.setTransform(s,a,o,r,i,l),this.__originalSetTransform(s,a,o,r,i,l)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(s){t.rotate(s),this.__originalRotate(s)},e.clip=function(s){t.clip(s),this.__originalClip(s)},e.moveTo=function(n,s){t.moveTo(n,s),this.__originalMoveTo(n,s)},e.lineTo=function(n,s){t.lineTo(n,s),this.__originalLineTo(n,s)},e.bezierCurveTo=function(n,s,a,o,r,i){t.bezierCurveTo(n,s,a,o,r,i),this.__originalBezierCurveTo(n,s,a,o,r,i)},e.rect=function(n,s,a,o){t.rect(n,s,a,o),this.__originalRect(n,s,a,o)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}class Abe{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,n,s){let a;return this.cache[t]!==void 0?(a=this.cache[t],this.canvasFactory.reset(a,n,s)):(a=this.canvasFactory.create(n,s),this.cache[t]=a),a}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const n=this.cache[t];this.canvasFactory.destroy(n),delete this.cache[t]}}}function cb(e,t,n,s,a,o,r,i,l,c){const[u,d,h,p,v,m]=ns(e);if(d===0&&h===0){const C=r*u+v,w=Math.round(C),_=i*p+m,x=Math.round(_),k=(r+l)*u+v,T=Math.abs(Math.round(k)-w)||1,I=(i+c)*p+m,O=Math.abs(Math.round(I)-x)||1;return e.setTransform(Math.sign(u),0,0,Math.sign(p),w,x),e.drawImage(t,n,s,a,o,0,0,T,O),e.setTransform(u,d,h,p,v,m),[T,O]}if(u===0&&p===0){const C=i*h+v,w=Math.round(C),_=r*d+m,x=Math.round(_),k=(i+c)*h+v,T=Math.abs(Math.round(k)-w)||1,I=(r+l)*d+m,O=Math.abs(Math.round(I)-x)||1;return e.setTransform(0,Math.sign(d),Math.sign(h),0,w,x),e.drawImage(t,n,s,a,o,0,0,O,T),e.setTransform(u,d,h,p,v,m),[O,T]}e.drawImage(t,n,s,a,o,r,i,l,c);const g=Math.hypot(u,d),b=Math.hypot(h,p);return[g*l,b*c]}function Tbe(e){const{width:t,height:n}=e;if(t>IP||n>IP)return null;const s=1e3,a=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),o=t+1;let r=new Uint8Array(o*(n+1)),i,l,c;const u=t+7&-8;let d=new Uint8Array(u*n),h=0;for(const b of e.data){let C=128;for(;C>0;)d[h++]=b&C?0:255,C>>=1}let p=0;for(h=0,d[h]!==0&&(r[0]=1,++p),l=1;l>2)+(d[h+1]?4:0)+(d[h-u+1]?8:0),a[b]&&(r[c+l]=a[b],++p),h++;if(d[h-u]!==d[h]&&(r[c+l]=d[h]?2:4,++p),p>s)return null}for(h=u*(n-1),c=i*o,d[h]!==0&&(r[c]=8,++p),l=1;ls)return null;const v=new Int32Array([0,o,-1,0,-o,0,0,0,1]),m=new Path2D;for(i=0;p&&i<=n;i++){let b=i*o;const C=b+t;for(;b>4,r[b]&=_>>2|_<<2),m.lineTo(b%o,b/o|0),r[b]||--p}while(w!==b);--i}return d=null,r=null,function(b){b.save(),b.scale(1/t,-1/n),b.translate(0,-n),b.fill(m),b.beginPath(),b.restore()}}class OP{constructor(t,n){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=fP,this.textMatrixScale=1,this.fontMatrix=q8,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=ga.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.patternStroke=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,n])}clone(){const t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,n){this.x=t,this.y=n}updatePathMinMax(t,n,s){[n,s]=zt.applyTransform([n,s],t),this.minX=Math.min(this.minX,n),this.minY=Math.min(this.minY,s),this.maxX=Math.max(this.maxX,n),this.maxY=Math.max(this.maxY,s)}updateRectMinMax(t,n){const s=zt.applyTransform(n,t),a=zt.applyTransform(n.slice(2),t),o=zt.applyTransform([n[0],n[3]],t),r=zt.applyTransform([n[2],n[1]],t);this.minX=Math.min(this.minX,s[0],a[0],o[0],r[0]),this.minY=Math.min(this.minY,s[1],a[1],o[1],r[1]),this.maxX=Math.max(this.maxX,s[0],a[0],o[0],r[0]),this.maxY=Math.max(this.maxY,s[1],a[1],o[1],r[1])}updateScalingPathMinMax(t,n){zt.scaleMinMax(t,n),this.minX=Math.min(this.minX,n[0]),this.minY=Math.min(this.minY,n[1]),this.maxX=Math.max(this.maxX,n[2]),this.maxY=Math.max(this.maxY,n[3])}updateCurvePathMinMax(t,n,s,a,o,r,i,l,c,u){const d=zt.bezierBoundingBox(n,s,a,o,r,i,l,c,u);u||this.updateRectMinMax(t,d)}getPathBoundingBox(t=ba.FILL,n=null){const s=[this.minX,this.minY,this.maxX,this.maxY];if(t===ba.STROKE){n||Hn("Stroke bounding box must include transform.");const a=zt.singularValueDecompose2dScale(n),o=a[0]*this.lineWidth/2,r=a[1]*this.lineWidth/2;s[0]-=o,s[1]-=r,s[2]+=o,s[3]+=r}return s}updateClipFromPath(){const t=zt.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(t=ba.FILL,n=null){return zt.intersect(this.clipBox,this.getPathBoundingBox(t,n))}}function LP(e,t){if(t instanceof ImageData){e.putImageData(t,0,0);return}const n=t.height,s=t.width,a=n%Qa,o=(n-a)/Qa,r=a===0?o:o+1,i=e.createImageData(s,Qa);let l=0,c;const u=t.data,d=i.data;let h,p,v,m;if(t.kind===J1.GRAYSCALE_1BPP){const g=u.byteLength,b=new Uint32Array(d.buffer,0,d.byteLength>>2),C=b.length,w=s+7>>3,_=4294967295,x=La.isLittleEndian?4278190080:255;for(h=0;hw?s:k*8-7,O=I&-8;let R=0,$=0;for(;T>=1}for(;c=o&&(v=a,m=s*v),c=0,p=m;p--;)d[c++]=u[l++],d[c++]=u[l++],d[c++]=u[l++],d[c++]=255;e.putImageData(i,0,h*Qa)}else throw new Error(`bad image kind: ${t.kind}`)}function NP(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}const n=t.height,s=t.width,a=n%Qa,o=(n-a)/Qa,r=a===0?o:o+1,i=e.createImageData(s,Qa);let l=0;const c=t.data,u=i.data;for(let d=0;dRP&&typeof s=="function",u=c?Date.now()+kbe:0;let d=0;const h=this.commonObjs,p=this.objs;let v;for(;;){if(a!==void 0&&i===a.nextBreakPoint)return a.breakIt(i,s),i;if(v=r[i],v!==Sr.dependency)this[v].apply(this,o[i]);else for(const m of o[i]){const g=m.startsWith("g_")?h:p;if(!g.has(m))return g.get(m,s),i}if(i++,i===l)return i;if(c&&++d>RP){if(Date.now()>u)return s(),i;d=0}}}endDrawing(){oe(this,Pr,s_).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const n of t.values())typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement&&(n.width=n.height=0);t.clear()}this._cachedBitmapsMap.clear(),oe(this,Pr,a_).call(this)}_scaleImage(t,n){const s=t.width??t.displayWidth,a=t.height??t.displayHeight;let o=Math.max(Math.hypot(n[0],n[1]),1),r=Math.max(Math.hypot(n[2],n[3]),1),i=s,l=a,c="prescale1",u,d;for(;o>2&&i>1||r>2&&l>1;){let h=i,p=l;o>2&&i>1&&(h=i>=16384?Math.floor(i/2)-1||1:Math.ceil(i/2),o/=i/h),r>2&&l>1&&(p=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l)/2,r/=l/p),u=this.cachedCanvases.getCanvas(c,h,p),d=u.context,d.clearRect(0,0,h,p),d.drawImage(t,0,0,i,l,0,0,h,p),t=u.canvas,i=h,l=p,c=c==="prescale1"?"prescale2":"prescale1"}return{img:t,paintWidth:i,paintHeight:l}}_createMaskCanvas(t){const n=this.ctx,{width:s,height:a}=t,o=this.current.fillColor,r=this.current.patternFill,i=ns(n);let l,c,u,d;if((t.bitmap||t.data)&&t.count>1){const I=t.bitmap||t.data.buffer;c=JSON.stringify(r?i:[i.slice(0,4),o]),l=this._cachedBitmapsMap.get(I),l||(l=new Map,this._cachedBitmapsMap.set(I,l));const O=l.get(c);if(O&&!r){const R=Math.round(Math.min(i[0],i[2])+i[4]),$=Math.round(Math.min(i[1],i[3])+i[5]);return{canvas:O,offsetX:R,offsetY:$}}u=O}u||(d=this.cachedCanvases.getCanvas("maskCanvas",s,a),NP(d.context,t));let h=zt.transform(i,[1/s,0,0,-1/a,0,0]);h=zt.transform(h,[1,0,0,1,0,-a]);const[p,v,m,g]=zt.getAxialAlignedBoundingBox([0,0,s,a],h),b=Math.round(m-p)||1,C=Math.round(g-v)||1,w=this.cachedCanvases.getCanvas("fillCanvas",b,C),_=w.context,x=p,k=v;_.translate(-x,-k),_.transform(...h),u||(u=this._scaleImage(d.canvas,di(_)),u=u.img,l&&r&&l.set(c,u)),_.imageSmoothingEnabled=$P(ns(_),t.interpolate),cb(_,u,0,0,u.width,u.height,0,0,s,a),_.globalCompositeOperation="source-in";const T=zt.transform(di(_),[1,0,0,1,-x,-k]);return _.fillStyle=r?o.getPattern(n,this,T,ba.FILL):o,_.fillRect(0,0,s,a),l&&!r&&(this.cachedCanvases.delete("fillCanvas"),l.set(c,w.canvas)),{canvas:w.canvas,offsetX:Math.round(x),offsetY:Math.round(k)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=Mbe[t]}setLineJoin(t){this.ctx.lineJoin=Pbe[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,n){const s=this.ctx;s.setLineDash!==void 0&&(s.setLineDash(t),s.lineDashOffset=n)}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[n,s]of t)switch(n){case"LW":this.setLineWidth(s);break;case"LC":this.setLineCap(s);break;case"LJ":this.setLineJoin(s);break;case"ML":this.setMiterLimit(s);break;case"D":this.setDash(s[0],s[1]);break;case"RI":this.setRenderingIntent(s);break;case"FL":this.setFlatness(s);break;case"Font":this.setFont(s[0],s[1]);break;case"CA":this.current.strokeAlpha=s;break;case"ca":this.current.fillAlpha=s,this.ctx.globalAlpha=s;break;case"BM":this.ctx.globalCompositeOperation=s;break;case"SMask":this.current.activeSMask=s?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(s);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,n=this.ctx.canvas.height,s="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(s,t,n);this.suspendedCtx=this.ctx,this.ctx=a.context;const o=this.ctx;o.setTransform(...ns(this.suspendedCtx)),Av(this.suspendedCtx,o),Ebe(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),Av(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const n=this.current.activeSMask,s=this.suspendedCtx;this.composeSMask(s,n,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(t,n,s,a){const o=a[0],r=a[1],i=a[2]-o,l=a[3]-r;i===0||l===0||(this.genericComposeSMask(n.context,s,i,l,n.subtype,n.backdrop,n.transferMap,o,r,n.offsetX,n.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(s.canvas,0,0),t.restore())}genericComposeSMask(t,n,s,a,o,r,i,l,c,u,d){let h=t.canvas,p=l-u,v=c-d;if(r){const g=zt.makeHexColor(...r);if(p<0||v<0||p+s>h.width||v+a>h.height){const b=this.cachedCanvases.getCanvas("maskExtension",s,a),C=b.context;C.drawImage(h,-p,-v),C.globalCompositeOperation="destination-atop",C.fillStyle=g,C.fillRect(0,0,s,a),C.globalCompositeOperation="source-over",h=b.canvas,p=v=0}else{t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);const b=new Path2D;b.rect(p,v,s,a),t.clip(b),t.globalCompositeOperation="destination-atop",t.fillStyle=g,t.fillRect(p,v,s,a),t.restore()}}n.save(),n.globalAlpha=1,n.setTransform(1,0,0,1,0,0),o==="Alpha"&&i?n.filter=this.filterFactory.addAlphaFilter(i):o==="Luminosity"&&(n.filter=this.filterFactory.addLuminosityFilter(i));const m=new Path2D;m.rect(l,c,s,a),n.clip(m),n.globalCompositeOperation="destination-in",n.drawImage(h,p,v,s,a,l,c,s,a),n.restore()}save(){this.inSMaskMode?(Av(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),Av(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,n,s,a,o,r){this.ctx.transform(t,n,s,a,o,r),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,n,s){const a=this.ctx,o=this.current;let r=o.x,i=o.y,l,c;const u=ns(a),d=u[0]===0&&u[3]===0||u[1]===0&&u[2]===0,h=d?s.slice(0):null;for(let p=0,v=0,m=t.length;pPP&&(c=PP),this.current.fontSizeScale=n/c,this.ctx.font=`${l} ${i} ${c}px ${r}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,n){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=n}setLeadingMoveText(t,n){this.setLeading(-n),this.moveText(t,n)}setTextMatrix(t,n,s,a,o,r){this.current.textMatrix=[t,n,s,a,o,r],this.current.textMatrixScale=Math.hypot(t,n),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(t,n,s,a,o){const r=this.ctx,i=this.current,l=i.font,c=i.textRenderingMode,u=i.fontSize/i.fontSizeScale,d=c&ga.FILL_STROKE_MASK,h=!!(c&ga.ADD_TO_PATH_FLAG),p=i.patternFill&&!l.missingFile,v=i.patternStroke&&!l.missingFile;let m;if((l.disableFontFace||h||p||v)&&(m=l.getPathGenerator(this.commonObjs,t)),l.disableFontFace||p||v){if(r.save(),r.translate(n,s),r.scale(u,-u),d===ga.FILL||d===ga.FILL_STROKE)if(a){const g=r.getTransform();r.setTransform(...a),r.fill(oe(this,Pr,o_).call(this,m,g,a))}else r.fill(m);if(d===ga.STROKE||d===ga.FILL_STROKE)if(o){const g=r.getTransform();r.setTransform(...o),r.stroke(oe(this,Pr,o_).call(this,m,g,o))}else r.lineWidth/=u,r.stroke(m);r.restore()}else(d===ga.FILL||d===ga.FILL_STROKE)&&r.fillText(t,n,s),(d===ga.STROKE||d===ga.FILL_STROKE)&&r.strokeText(t,n,s);h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:ns(r),x:n,y:s,fontSize:u,path:m})}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1),t.fillText("I",0,10);const n=t.getImageData(0,0,10,10).data;let s=!1;for(let a=3;a0&&n[a]<255){s=!0;break}return mn(this,"isFontSubpixelAAEnabled",s)}showText(t){const n=this.current,s=n.font;if(s.isType3Font)return this.showType3Text(t);const a=n.fontSize;if(a===0)return;const o=this.ctx,r=n.fontSizeScale,i=n.charSpacing,l=n.wordSpacing,c=n.fontDirection,u=n.textHScale*c,d=t.length,h=s.vertical,p=h?1:-1,v=s.defaultVMetrics,m=a*n.fontMatrix[0],g=n.textRenderingMode===ga.FILL&&!s.disableFontFace&&!n.patternFill;o.save(),o.transform(...n.textMatrix),o.translate(n.x,n.y+n.textRise),c>0?o.scale(u,-1):o.scale(u,1);let b,C;if(n.patternFill){o.save();const T=n.fillColor.getPattern(o,this,di(o),ba.FILL);b=ns(o),o.restore(),o.fillStyle=T}if(n.patternStroke){o.save();const T=n.strokeColor.getPattern(o,this,di(o),ba.STROKE);C=ns(o),o.restore(),o.strokeStyle=T}let w=n.lineWidth;const _=n.textMatrixScale;if(_===0||w===0){const T=n.textRenderingMode&ga.FILL_STROKE_MASK;(T===ga.STROKE||T===ga.FILL_STROKE)&&(w=this.getSinglePixelWidth())}else w/=_;if(r!==1&&(o.scale(r,r),w/=r),o.lineWidth=w,s.isInvalidPDFjsFont){const T=[];let I=0;for(const O of t)T.push(O.unicode),I+=O.width;o.fillText(T.join(""),0,0),n.x+=I*m*u,o.restore(),this.compose();return}let x=0,k;for(k=0;k0){const Y=o.measureText(R).width*1e3/a*r;if(Unew Ow(r,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};n=new pw(t,s,this.ctx,o,a)}else n=this._getPattern(t[1],t[2]);return n}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments),this.current.patternStroke=!0}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,n,s){this.ctx.strokeStyle=this.current.strokeColor=zt.makeHexColor(t,n,s),this.current.patternStroke=!1}setStrokeTransparent(){this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(t,n,s){this.ctx.fillStyle=this.current.fillColor=zt.makeHexColor(t,n,s),this.current.patternFill=!1}setFillTransparent(){this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(t,n=null){let s;return this.cachedPatterns.has(t)?s=this.cachedPatterns.get(t):(s=Sbe(this.getObject(t)),this.cachedPatterns.set(t,s)),n&&(s.matrix=n),s}shadingFill(t){if(!this.contentVisible)return;const n=this.ctx;this.save();const s=this._getPattern(t);n.fillStyle=s.getPattern(n,this,di(n),ba.SHADING);const a=di(n);if(a){const{width:o,height:r}=n.canvas,[i,l,c,u]=zt.getAxialAlignedBoundingBox([0,0,o,r],a);this.ctx.fillRect(i,l,c-i,u-l)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){Hn("Should not call beginInlineImage")}beginImageData(){Hn("Should not call beginImageData")}paintFormXObjectBegin(t,n){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=ns(this.ctx),n)){const s=n[2]-n[0],a=n[3]-n[1];this.ctx.rect(n[0],n[1],s,a),this.current.updateRectMinMax(ns(this.ctx),n),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const n=this.ctx;t.isolated||eb("TODO: Support non-isolated groups."),t.knockout&&fn("Knockout groups not supported.");const s=ns(n);if(t.matrix&&n.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let a=zt.getAxialAlignedBoundingBox(t.bbox,ns(n));const o=[0,0,n.canvas.width,n.canvas.height];a=zt.intersect(a,o)||[0,0,0,0];const r=Math.floor(a[0]),i=Math.floor(a[1]),l=Math.max(Math.ceil(a[2])-r,1),c=Math.max(Math.ceil(a[3])-i,1);this.current.startNewPathAndClipBox([0,0,l,c]);let u="groupAt"+this.groupLevel;t.smask&&(u+="_smask_"+this.smaskCounter++%2);const d=this.cachedCanvases.getCanvas(u,l,c),h=d.context;h.translate(-r,-i),h.transform(...s),t.smask?this.smaskStack.push({canvas:d.canvas,context:h,offsetX:r,offsetY:i,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(n.setTransform(1,0,0,1,0,0),n.translate(r,i),n.save()),Av(n,h),this.ctx=h,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(n),this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;const n=this.ctx,s=this.groupStack.pop();if(this.ctx=s,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const a=ns(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...a);const o=zt.getAxialAlignedBoundingBox([0,0,n.canvas.width,n.canvas.height],a);this.ctx.drawImage(n.canvas,0,0),this.ctx.restore(),this.compose(o)}}beginAnnotation(t,n,s,a,o){if(oe(this,Pr,s_).call(this),ub(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),n){const r=n[2]-n[0],i=n[3]-n[1];if(o&&this.annotationCanvasMap){s=s.slice(),s[4]-=n[0],s[5]-=n[1],n=n.slice(),n[0]=n[1]=0,n[2]=r,n[3]=i;const[l,c]=zt.singularValueDecompose2dScale(ns(this.ctx)),{viewportScale:u}=this,d=Math.ceil(r*this.outputScaleX*u),h=Math.ceil(i*this.outputScaleY*u);this.annotationCanvas=this.canvasFactory.create(d,h);const{canvas:p,context:v}=this.annotationCanvas;this.annotationCanvasMap.set(t,p),this.annotationCanvas.savedCtx=this.ctx,this.ctx=v,this.ctx.save(),this.ctx.setTransform(l,0,0,-c,0,i*c),ub(this.ctx)}else ub(this.ctx),this.endPath(),this.ctx.rect(n[0],n[1],r,i),this.ctx.clip(),this.ctx.beginPath()}this.current=new OP(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...s),this.transform(...a)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),oe(this,Pr,a_).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){if(!this.contentVisible)return;const n=t.count;t=this.getObject(t.data,t),t.count=n;const s=this.ctx,a=this.processingType3;if(a&&(a.compiled===void 0&&(a.compiled=Tbe(t)),a.compiled)){a.compiled(s);return}const o=this._createMaskCanvas(t),r=o.canvas;s.save(),s.setTransform(1,0,0,1,0,0),s.drawImage(r,o.offsetX,o.offsetY),s.restore(),this.compose()}paintImageMaskXObjectRepeat(t,n,s=0,a=0,o,r){if(!this.contentVisible)return;t=this.getObject(t.data,t);const i=this.ctx;i.save();const l=ns(i);i.transform(n,s,a,o,0,0);const c=this._createMaskCanvas(t);i.setTransform(1,0,0,1,c.offsetX-l[4],c.offsetY-l[5]);for(let u=0,d=r.length;ud?u/d:1,i=c>d?c/d:1}}this._cachedScaleForStroking[0]=r,this._cachedScaleForStroking[1]=i}return this._cachedScaleForStroking}rescaleAndStroke(t){const{ctx:n}=this,{lineWidth:s}=this.current,[a,o]=this.getScaleForStroking();if(n.lineWidth=s||1,a===1&&o===1){n.stroke();return}const r=n.getLineDash();if(t&&n.save(),n.scale(a,o),r.length>0){const i=Math.max(a,o);n.setLineDash(r.map(l=>l/i)),n.lineDashOffset/=i}n.stroke(),t&&n.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}};Pr=new WeakSet,s_=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},a_=function(){if(this.pageColors){const t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(t!=="none"){const n=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=n}}},o_=function(t,n,s){const a=new Path2D;return a.addPath(t,new DOMMatrix(s).invertSelf().multiplySelf(n)),a};let fh=Ow;for(const e in Sr)fh.prototype[e]!==void 0&&(fh.prototype[Sr[e]]=fh.prototype[e]);class fl{static get workerPort(){return y(this,im)}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");G(this,im,t)}static get workerSrc(){return y(this,lm)}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");G(this,lm,t)}}im=new WeakMap,lm=new WeakMap,ne(fl,im,null),ne(fl,lm,"");class Ibe{constructor({parsedData:t,rawData:n}){ne(this,bd);ne(this,cm);G(this,bd,t),G(this,cm,n)}getRaw(){return y(this,cm)}get(t){return y(this,bd).get(t)??null}getAll(){return J8(y(this,bd))}has(t){return y(this,bd).has(t)}}bd=new WeakMap,cm=new WeakMap;const hh=Symbol("INTERNAL");class Obe{constructor(t,{name:n,intent:s,usage:a,rbGroups:o}){ne(this,um,!1);ne(this,dm,!1);ne(this,fm,!1);ne(this,Oh,!0);G(this,um,!!(t&mo.DISPLAY)),G(this,dm,!!(t&mo.PRINT)),this.name=n,this.intent=s,this.usage=a,this.rbGroups=o}get visible(){if(y(this,fm))return y(this,Oh);if(!y(this,Oh))return!1;const{print:t,view:n}=this.usage;return y(this,um)?(n==null?void 0:n.viewState)!=="OFF":y(this,dm)?(t==null?void 0:t.printState)!=="OFF":!0}_setVisible(t,n,s=!1){t!==hh&&Hn("Internal method `_setVisible` called."),G(this,fm,s),G(this,Oh,n)}}um=new WeakMap,dm=new WeakMap,fm=new WeakMap,Oh=new WeakMap;class Lbe{constructor(t,n=mo.DISPLAY){ne(this,hm);ne(this,Fc,null);ne(this,Dn,new Map);ne(this,Lh,null);ne(this,Nh,null);if(this.renderingIntent=n,this.name=null,this.creator=null,t!==null){this.name=t.name,this.creator=t.creator,G(this,Nh,t.order);for(const s of t.groups)y(this,Dn).set(s.id,new Obe(n,s));if(t.baseState==="OFF")for(const s of y(this,Dn).values())s._setVisible(hh,!1);for(const s of t.on)y(this,Dn).get(s)._setVisible(hh,!0);for(const s of t.off)y(this,Dn).get(s)._setVisible(hh,!1);G(this,Lh,this.getHash())}}isVisible(t){if(y(this,Dn).size===0)return!0;if(!t)return eb("Optional content group not defined."),!0;if(t.type==="OCG")return y(this,Dn).has(t.id)?y(this,Dn).get(t.id).visible:(fn(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return oe(this,hm,r_).call(this,t.expression);if(!t.policy||t.policy==="AnyOn"){for(const n of t.ids){if(!y(this,Dn).has(n))return fn(`Optional content group not found: ${n}`),!0;if(y(this,Dn).get(n).visible)return!0}return!1}else if(t.policy==="AllOn"){for(const n of t.ids){if(!y(this,Dn).has(n))return fn(`Optional content group not found: ${n}`),!0;if(!y(this,Dn).get(n).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(const n of t.ids){if(!y(this,Dn).has(n))return fn(`Optional content group not found: ${n}`),!0;if(!y(this,Dn).get(n).visible)return!0}return!1}else if(t.policy==="AllOff"){for(const n of t.ids){if(!y(this,Dn).has(n))return fn(`Optional content group not found: ${n}`),!0;if(y(this,Dn).get(n).visible)return!1}return!0}return fn(`Unknown optional content policy ${t.policy}.`),!0}return fn(`Unknown group type ${t.type}.`),!0}setVisibility(t,n=!0,s=!0){var o;const a=y(this,Dn).get(t);if(!a){fn(`Optional content group not found: ${t}`);return}if(s&&n&&a.rbGroups.length)for(const r of a.rbGroups)for(const i of r)i!==t&&((o=y(this,Dn).get(i))==null||o._setVisible(hh,!1,!0));a._setVisible(hh,!!n,!0),G(this,Fc,null)}setOCGState({state:t,preserveRB:n}){let s;for(const a of t){switch(a){case"ON":case"OFF":case"Toggle":s=a;continue}const o=y(this,Dn).get(a);if(o)switch(s){case"ON":this.setVisibility(a,!0,n);break;case"OFF":this.setVisibility(a,!1,n);break;case"Toggle":this.setVisibility(a,!o.visible,n);break}}G(this,Fc,null)}get hasInitialVisibility(){return y(this,Lh)===null||this.getHash()===y(this,Lh)}getOrder(){return y(this,Dn).size?y(this,Nh)?y(this,Nh).slice():[...y(this,Dn).keys()]:null}getGroups(){return y(this,Dn).size>0?J8(y(this,Dn)):null}getGroup(t){return y(this,Dn).get(t)||null}getHash(){if(y(this,Fc)!==null)return y(this,Fc);const t=new bP;for(const[n,s]of y(this,Dn))t.update(`${n}:${s.visible}`);return G(this,Fc,t.hexdigest())}}Fc=new WeakMap,Dn=new WeakMap,Lh=new WeakMap,Nh=new WeakMap,hm=new WeakSet,r_=function(t){const n=t.length;if(n<2)return!0;const s=t[0];for(let a=1;a0){const l=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(l)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!s,this._isRangeSupported=!n,this._contentLength=a,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((l,c)=>{this._onReceiveData({begin:l,chunk:c})}),t.addProgressListener((l,c)=>{this._onProgress({loaded:l,total:c})}),t.addProgressiveReadListener(l=>{this._onReceiveData({chunk:l})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData({begin:t,chunk:n}){const s=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(t===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(s):this._queuedChunks.push(s);else{const a=this._rangeReaders.some(function(o){return o._begin!==t?!1:(o._enqueue(s),!0)});Ss(a,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}_onProgress(t){var n,s,a,o;t.total===void 0?(s=(n=this._rangeReaders[0])==null?void 0:n.onProgress)==null||s.call(n,{loaded:t.loaded}):(o=(a=this._fullRequestReader)==null?void 0:a.onProgress)==null||o.call(a,{loaded:t.loaded,total:t.total})}_onProgressiveDone(){var t;(t=this._fullRequestReader)==null||t.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const n=this._rangeReaders.indexOf(t);n>=0&&this._rangeReaders.splice(n,1)}getFullReader(){Ss(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new $be(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const s=new Dbe(this,t,n);return this._pdfDataRangeTransport.requestDataRange(t,n),this._rangeReaders.push(s),s}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const s of this._rangeReaders.slice(0))s.cancel(t);this._pdfDataRangeTransport.abort()}}class $be{constructor(t,n,s=!1,a=null){this._stream=t,this._done=s||!1,this._filename=nw(a)?a:null,this._queuedChunks=n||[],this._loaded=0;for(const o of this._queuedChunks)this._loaded+=o.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class Dbe{constructor(t,n,s){this._stream=t,this._begin=n,this._end=s,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length===0)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const s of this._requests)s.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function Fbe(e){let t=!0,n=s("filename\\*","i").exec(e);if(n){n=n[1];let u=i(n);return u=unescape(u),u=l(u),u=c(u),o(u)}if(n=r(e),n){const u=c(n);return o(u)}if(n=s("filename","i").exec(e),n){n=n[1];let u=i(n);return u=c(u),o(u)}function s(u,d){return new RegExp("(?:^|;)\\s*"+u+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',d)}function a(u,d){if(u){if(!/^[\x00-\xFF]+$/.test(d))return d;try{const h=new TextDecoder(u,{fatal:!0}),p=nb(d);d=h.decode(p),t=!1}catch{}}return d}function o(u){return t&&/[\x80-\xff]/.test(u)&&(u=a("utf-8",u),t&&(u=a("iso-8859-1",u))),u}function r(u){const d=[];let h;const p=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(h=p.exec(u))!==null;){let[,m,g,b]=h;if(m=parseInt(m,10),m in d){if(m===0)break;continue}d[m]=[g,b]}const v=[];for(let m=0;m{if(t._responseOrigin=db(o.url),!zP(o.status))throw fb(o.status,a);this._reader=o.body.getReader(),this._headersCapability.resolve();const r=o.headers,{allowRangeRequests:i,suggestedLength:l}=BP({responseHeaders:r,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=l||this._contentLength,this._filename=VP(r),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Cc("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;await this._headersCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded,total:this._contentLength}),{value:WP(t),done:!1})}cancel(t){var n;(n=this._reader)==null||n.cancel(t),this._abortController.abort()}}class Vbe{constructor(t,n,s){this._stream=t,this._reader=null,this._loaded=0;const a=t.source;this._withCredentials=a.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!a.disableStream,this._abortController=new AbortController;const o=new Headers(t.headers);o.append("Range",`bytes=${n}-${s-1}`);const r=a.url;fetch(r,HP(o,this._withCredentials,this._abortController)).then(i=>{const l=db(i.url);if(l!==t._responseOrigin)throw new Error(`Expected range response-origin "${l}" to match "${t._responseOrigin}".`);if(!zP(i.status))throw fb(i.status,r);this._readCapability.resolve(),this._reader=i.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;await this._readCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded}),{value:WP(t),done:!1})}cancel(t){var n;(n=this._reader)==null||n.cancel(t),this._abortController.abort()}}const vw=200,mw=206;function zbe(e){const t=e.response;return typeof t!="string"?t:nb(t).buffer}class Hbe{constructor({url:t,httpHeaders:n,withCredentials:s}){Ut(this,"_responseOrigin",null);this.url=t,this.isHttp=/^https?:/i.test(t),this.headers=FP(this.isHttp,n),this.withCredentials=s||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(t){const n=new XMLHttpRequest,s=this.currXhrId++,a=this.pendingRequests[s]={xhr:n};n.open("GET",this.url),n.withCredentials=this.withCredentials;for(const[o,r]of this.headers)n.setRequestHeader(o,r);return this.isHttp&&"begin"in t&&"end"in t?(n.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),a.expectedStatus=mw):a.expectedStatus=vw,n.responseType="arraybuffer",Ss(t.onError,"Expected `onError` callback to be provided."),n.onerror=()=>{t.onError(n.status)},n.onreadystatechange=this.onStateChange.bind(this,s),n.onprogress=this.onProgress.bind(this,s),a.onHeadersReceived=t.onHeadersReceived,a.onDone=t.onDone,a.onError=t.onError,a.onProgress=t.onProgress,n.send(null),s}onProgress(t,n){var a;const s=this.pendingRequests[t];s&&((a=s.onProgress)==null||a.call(s,n))}onStateChange(t,n){const s=this.pendingRequests[t];if(!s)return;const a=s.xhr;if(a.readyState>=2&&s.onHeadersReceived&&(s.onHeadersReceived(),delete s.onHeadersReceived),a.readyState!==4||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],a.status===0&&this.isHttp){s.onError(a.status);return}const o=a.status||vw;if(!(o===vw&&s.expectedStatus===mw)&&o!==s.expectedStatus){s.onError(a.status);return}const i=zbe(a);if(o===mw){const l=a.getResponseHeader("Content-Range"),c=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);c?s.onDone({begin:parseInt(c[1],10),chunk:i}):(fn('Missing or invalid "Content-Range" header.'),s.onError(0))}else i?s.onDone({begin:0,chunk:i}):s.onError(a.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const n=this.pendingRequests[t].xhr;delete this.pendingRequests[t],n.abort()}}class Wbe{constructor(t){this._source=t,this._manager=new Hbe(t),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const n=this._rangeRequestReaders.indexOf(t);n>=0&&this._rangeRequestReaders.splice(n,1)}getFullReader(){return Ss(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new jbe(this._manager,this._source),this._fullRequestReader}getRangeReader(t,n){const s=new Kbe(this._manager,t,n);return s.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(s),s}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const s of this._rangeRequestReaders.slice(0))s.cancel(t)}}class jbe{constructor(t,n){this._manager=t,this._url=n.url,this._fullRequestId=t.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,n=this._manager.getRequestXhr(t);this._manager._responseOrigin=db(n.responseURL);const s=n.getAllResponseHeaders(),a=new Headers(s?s.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(i=>{const[l,...c]=i.split(": ");return[l,c.join(": ")]}):[]),{allowRangeRequests:o,suggestedLength:r}=BP({responseHeaders:a,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});o&&(this._isRangeSupported=!0),this._contentLength=r||this._contentLength,this._filename=VP(a),this._isRangeSupported&&this._manager.abortRequest(t),this._headersCapability.resolve()}_onDone(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=fb(t,this._url),this._headersCapability.reject(this._storedError);for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){var n;(n=this.onProgress)==null||n.call(this,{loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersCapability.promise}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersCapability.reject(t);for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class Kbe{constructor(t,n,s){this._manager=t,this._url=t.url,this._requestId=t.request({begin:n,end:s,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){var n;const t=db((n=this._manager.getRequestXhr(this._requestId))==null?void 0:n.responseURL);t!==this._manager._responseOrigin&&(this._storedError=new Error(`Expected range response-origin "${t}" to match "${this._manager._responseOrigin}".`),this._onError(0))}_close(){var t;(t=this.onClosed)==null||t.call(this,this)}_onDone(t){const n=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:n,done:!1}):this._queuedChunk=n,this._done=!0;for(const s of this._requests)s.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){this._storedError??(this._storedError=fb(t,this._url));for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){var n;this.isStreamingSupported||(n=this.onProgress)==null||n.call(this,{loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const Ube=/^[a-z][a-z0-9\-+.]+:/i;function qbe(e){if(Ube.test(e))return new URL(e);const t=process.getBuiltinModule("url");return new URL(t.pathToFileURL(e))}class Gbe{constructor(t){this.source=t,this.url=qbe(t.url),Ss(this.url.protocol==="file:","PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var t;return((t=this._fullRequestReader)==null?void 0:t._loaded)??0}getFullReader(){return Ss(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new Ybe(this),this._fullRequestReader}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const s=new Xbe(this,t,n);return this._rangeRequestReaders.push(s),s}cancelAllRequests(t){var n;(n=this._fullRequestReader)==null||n.cancel(t);for(const s of this._rangeRequestReaders.slice(0))s.cancel(t)}}class Ybe{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const n=t.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();const s=process.getBuiltinModule("fs");s.promises.lstat(this._url).then(a=>{this._contentLength=a.size,this._setReadableStream(s.createReadStream(this._url)),this._headersCapability.resolve()},a=>{a.code==="ENOENT"&&(a=new Cv(`Missing PDF "${this._url}".`)),this._storedError=a,this._headersCapability.reject(a)})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",n=>{this._error(n)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Cc("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class Xbe{constructor(t,n,s){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const a=t.source;this._isStreamingSupported=!a.disableStream;const o=process.getBuiltinModule("fs");this._setReadableStream(o.createReadStream(this._url,{start:n,end:s-1}))}get isStreamingSupported(){return this._isStreamingSupported}async read(){var s;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,(s=this.onProgress)==null||s.call(this,{loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",n=>{this._error(n)}),this._storedError&&this._readableStream.destroy(this._storedError)}}const Jbe=1e5,eo=30,Zbe=.8,Ls=class Ls{constructor({textContentSource:t,container:n,viewport:s}){ne(this,El);ne(this,Bc,Promise.withResolvers());ne(this,no,null);ne(this,pm,!1);ne(this,vm,!!((oR=globalThis.FontInspector)!=null&&oR.enabled));ne(this,yd,null);ne(this,kl,null);ne(this,mm,0);ne(this,gm,0);ne(this,wd,null);ne(this,$h,null);ne(this,Dh,0);ne(this,Vc,0);ne(this,Fh,Object.create(null));ne(this,bm,[]);ne(this,Bh,null);ne(this,_d,[]);ne(this,ym,new WeakMap);ne(this,wm,null);var l;if(t instanceof ReadableStream)G(this,Bh,t);else if(typeof t=="object")G(this,Bh,new ReadableStream({start(c){c.enqueue(t),c.close()}}));else throw new Error('No "textContentSource" parameter specified.');G(this,no,G(this,$h,n)),G(this,Vc,s.scale*(globalThis.devicePixelRatio||1)),G(this,Dh,s.rotation),G(this,kl,{div:null,properties:null,ctx:null});const{pageWidth:a,pageHeight:o,pageX:r,pageY:i}=s.rawDims;G(this,wm,[1,0,0,-1,-r,i+o]),G(this,gm,a),G(this,mm,o),oe(l=Ls,_o,WR).call(l),ju(n,s),y(this,Bc).promise.finally(()=>{y(Ls,Vh).delete(this),G(this,kl,null),G(this,Fh,null)}).catch(()=>{})}static get fontFamilyMap(){const{isWindows:t,isFirefox:n}=La.platform;return mn(this,"fontFamilyMap",new Map([["sans-serif",`${t&&n?"Calibri, ":""}sans-serif`],["monospace",`${t&&n?"Lucida Console, ":""}monospace`]]))}render(){const t=()=>{y(this,wd).read().then(({value:n,done:s})=>{if(s){y(this,Bc).resolve();return}y(this,yd)??G(this,yd,n.lang),Object.assign(y(this,Fh),n.styles),oe(this,El,zR).call(this,n.items),t()},y(this,Bc).reject)};return G(this,wd,y(this,Bh).getReader()),y(Ls,Vh).add(this),t(),y(this,Bc).promise}update({viewport:t,onBefore:n=null}){var o;const s=t.scale*(globalThis.devicePixelRatio||1),a=t.rotation;if(a!==y(this,Dh)&&(n==null||n(),G(this,Dh,a),ju(y(this,$h),{rotation:a})),s!==y(this,Vc)){n==null||n(),G(this,Vc,s);const r={div:null,properties:null,ctx:oe(o=Ls,_o,Yb).call(o,y(this,yd))};for(const i of y(this,_d))r.properties=y(this,ym).get(i),r.div=i,oe(this,El,i_).call(this,r)}}cancel(){var n;const t=new Cc("TextLayer task cancelled.");(n=y(this,wd))==null||n.cancel(t).catch(()=>{}),G(this,wd,null),y(this,Bc).reject(t)}get textDivs(){return y(this,_d)}get textContentItemsStr(){return y(this,bm)}static cleanup(){if(!(y(this,Vh).size>0)){y(this,Cd).clear();for(const{canvas:t}of y(this,Sd).values())t.remove();y(this,Sd).clear()}}};Bc=new WeakMap,no=new WeakMap,pm=new WeakMap,vm=new WeakMap,yd=new WeakMap,kl=new WeakMap,mm=new WeakMap,gm=new WeakMap,wd=new WeakMap,$h=new WeakMap,Dh=new WeakMap,Vc=new WeakMap,Fh=new WeakMap,bm=new WeakMap,Bh=new WeakMap,_d=new WeakMap,ym=new WeakMap,wm=new WeakMap,Cd=new WeakMap,Sd=new WeakMap,_m=new WeakMap,zc=new WeakMap,Vh=new WeakMap,El=new WeakSet,zR=function(t){var a,o;if(y(this,pm))return;(o=y(this,kl)).ctx??(o.ctx=oe(a=Ls,_o,Yb).call(a,y(this,yd)));const n=y(this,_d),s=y(this,bm);for(const r of t){if(n.length>Jbe){fn("Ignoring additional textDivs for performance reasons."),G(this,pm,!0);return}if(r.str===void 0){if(r.type==="beginMarkedContentProps"||r.type==="beginMarkedContent"){const i=y(this,no);G(this,no,document.createElement("span")),y(this,no).classList.add("markedContent"),r.id!==null&&y(this,no).setAttribute("id",`${r.id}`),i.append(y(this,no))}else r.type==="endMarkedContent"&&G(this,no,y(this,no).parentNode);continue}s.push(r.str),oe(this,El,HR).call(this,r)}},HR=function(t){var m;const n=document.createElement("span"),s={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};y(this,_d).push(n);const a=zt.transform(y(this,wm),t.transform);let o=Math.atan2(a[1],a[0]);const r=y(this,Fh)[t.fontName];r.vertical&&(o+=Math.PI/2);let i=y(this,vm)&&r.fontSubstitution||r.fontFamily;i=Ls.fontFamilyMap.get(i)||i;const l=Math.hypot(a[2],a[3]),c=l*oe(m=Ls,_o,jR).call(m,i,y(this,yd));let u,d;o===0?(u=a[4],d=a[5]-c):(u=a[4]+c*Math.sin(o),d=a[5]-c*Math.cos(o));const h="calc(var(--scale-factor)*",p=n.style;y(this,no)===y(this,$h)?(p.left=`${(100*u/y(this,gm)).toFixed(2)}%`,p.top=`${(100*d/y(this,mm)).toFixed(2)}%`):(p.left=`${h}${u.toFixed(2)}px)`,p.top=`${h}${d.toFixed(2)}px)`),p.fontSize=`${h}${(y(Ls,zc)*l).toFixed(2)}px)`,p.fontFamily=i,s.fontSize=l,n.setAttribute("role","presentation"),n.textContent=t.str,n.dir=t.dir,y(this,vm)&&(n.dataset.fontName=r.fontSubstitutionLoadedName||t.fontName),o!==0&&(s.angle=o*(180/Math.PI));let v=!1;if(t.str.length>1)v=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){const g=Math.abs(t.transform[0]),b=Math.abs(t.transform[3]);g!==b&&Math.max(g,b)/Math.min(g,b)>1.5&&(v=!0)}if(v&&(s.canvasWidth=r.vertical?t.height:t.width),y(this,ym).set(n,s),y(this,kl).div=n,y(this,kl).properties=s,oe(this,El,i_).call(this,y(this,kl)),s.hasText&&y(this,no).append(n),s.hasEOL){const g=document.createElement("br");g.setAttribute("role","presentation"),y(this,no).append(g)}},i_=function(t){var i;const{div:n,properties:s,ctx:a}=t,{style:o}=n;let r="";if(y(Ls,zc)>1&&(r=`scale(${1/y(Ls,zc)})`),s.canvasWidth!==0&&s.hasText){const{fontFamily:l}=o,{canvasWidth:c,fontSize:u}=s;oe(i=Ls,_o,l_).call(i,a,u*y(this,Vc),l);const{width:d}=a.measureText(n.textContent);d>0&&(r=`scaleX(${c*y(this,Vc)/d}) ${r}`)}s.angle!==0&&(r=`rotate(${s.angle}deg) ${r}`),r.length>0&&(o.transform=r)},_o=new WeakSet,Yb=function(t=null){let n=y(this,Sd).get(t||(t=""));if(!n){const s=document.createElement("canvas");s.className="hiddenCanvasElement",s.lang=t,document.body.append(s),n=s.getContext("2d",{alpha:!1,willReadFrequently:!0}),y(this,Sd).set(t,n),y(this,_m).set(n,{size:0,family:""})}return n},l_=function(t,n,s){const a=y(this,_m).get(t);n===a.size&&s===a.family||(t.font=`${n}px ${s}`,a.size=n,a.family=s)},WR=function(){if(y(this,zc)!==null)return;const t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.style.position="absolute",t.textContent="X",document.body.append(t),G(this,zc,t.getBoundingClientRect().height),t.remove()},jR=function(t,n){const s=y(this,Cd).get(t);if(s)return s;const a=oe(this,_o,Yb).call(this,n);a.canvas.width=a.canvas.height=eo,oe(this,_o,l_).call(this,a,eo,t);const o=a.measureText("");let r=o.fontBoundingBoxAscent,i=Math.abs(o.fontBoundingBoxDescent);if(r){const u=r/(r+i);return y(this,Cd).set(t,u),a.canvas.width=a.canvas.height=0,u}a.strokeStyle="red",a.clearRect(0,0,eo,eo),a.strokeText("g",0,0);let l=a.getImageData(0,0,eo,eo).data;i=0;for(let u=l.length-1-3;u>=0;u-=4)if(l[u]>0){i=Math.ceil(u/4/eo);break}a.clearRect(0,0,eo,eo),a.strokeText("A",0,eo),l=a.getImageData(0,0,eo,eo).data,r=0;for(let u=0,d=l.length;u0){r=eo-Math.floor(u/4/eo);break}a.canvas.width=a.canvas.height=0;const c=r?r/(r+i):Zbe;return y(this,Cd).set(t,c),c},ne(Ls,_o),ne(Ls,Cd,new Map),ne(Ls,Sd,new Map),ne(Ls,_m,new WeakMap),ne(Ls,zc,null),ne(Ls,Vh,new Set);let Tv=Ls;class Mv{static textContent(t){const n=[],s={items:n,styles:Object.create(null)};function a(o){var l;if(!o)return;let r=null;const i=o.name;if(i==="#text")r=o.value;else if(Mv.shouldBuildText(i))(l=o==null?void 0:o.attributes)!=null&&l.textContent?r=o.attributes.textContent:o.value&&(r=o.value);else return;if(r!==null&&n.push({str:r}),!!o.children)for(const c of o.children)a(c)}return a(t),s}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}}const Qbe=65536,e4e=100,t4e=5e3,n4e=ma?mbe:hbe,s4e=ma?gbe:SP,a4e=ma?vbe:pbe,o4e=ma?bbe:EP;function r4e(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new gw,{docId:n}=t,s=e.url?i4e(e.url):null,a=e.data?l4e(e.data):null,o=e.httpHeaders||null,r=e.withCredentials===!0,i=e.password??null,l=e.range instanceof UP?e.range:null,c=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:Qbe;let u=e.worker instanceof ph?e.worker:null;const d=e.verbosity,h=typeof e.docBaseUrl=="string"&&!ab(e.docBaseUrl)?e.docBaseUrl:null,p=typeof e.cMapUrl=="string"?e.cMapUrl:null,v=e.cMapPacked!==!1,m=e.CMapReaderFactory||s4e,g=typeof e.standardFontDataUrl=="string"?e.standardFontDataUrl:null,b=e.StandardFontDataFactory||o4e,C=e.stopAtErrors!==!0,w=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,_=e.isEvalSupported!==!1,x=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!ma,k=typeof e.isImageDecoderSupported=="boolean"?e.isImageDecoderSupported:!ma&&(La.platform.isFirefox||!globalThis.chrome),T=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,I=typeof e.disableFontFace=="boolean"?e.disableFontFace:ma,O=e.fontExtraProperties===!0,R=e.enableXfa===!0,$=e.ownerDocument||globalThis.document,M=e.disableRange===!0,B=e.disableStream===!0,U=e.disableAutoFetch===!0,J=e.pdfBug===!0,Y=e.CanvasFactory||n4e,L=e.FilterFactory||a4e,N=e.enableHWA===!0,V=l?l.length:e.length??NaN,z=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!ma&&!I,q=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:m===SP&&b===EP&&p&&g&&xv(p,document.baseURI)&&xv(g,document.baseURI),Q=null;K1e(d);const K={canvasFactory:new Y({ownerDocument:$,enableHWA:N}),filterFactory:new L({docId:n,ownerDocument:$}),cMapReaderFactory:q?null:new m({baseUrl:p,isCompressed:v}),standardFontDataFactory:q?null:new b({baseUrl:g})};if(!u){const pe={verbosity:d,port:fl.workerPort};u=pe.port?ph.fromPort(pe):new ph(pe),t._worker=u}const ee={docId:n,apiVersion:"4.10.38",data:a,password:i,disableAutoFetch:U,rangeChunkSize:c,length:V,docBaseUrl:h,enableXfa:R,evaluatorOptions:{maxImageSize:w,disableFontFace:I,ignoreErrors:C,isEvalSupported:_,isOffscreenCanvasSupported:x,isImageDecoderSupported:k,canvasMaxAreaInBytes:T,fontExtraProperties:O,useSystemFonts:z,cMapUrl:q?p:null,standardFontDataUrl:q?g:null}},se={disableFontFace:I,fontExtraProperties:O,ownerDocument:$,pdfBug:J,styleElement:Q,loadingParams:{disableAutoFetch:U,enableXfa:R}};return u.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const pe=u.messageHandler.sendWithPromise("GetDocRequest",ee,a?[a.buffer]:null);let te;if(l)te=new Nbe(l,{disableRange:M,disableStream:B});else if(!a){if(!s)throw new Error("getDocument - no `url` parameter provided.");let fe;if(ma)if(xv(s)){if(typeof fetch>"u"||typeof Response>"u"||!("body"in Response.prototype))throw new Error("getDocument - the Fetch API was disabled in Node.js, see `--no-experimental-fetch`.");fe=jP}else fe=Gbe;else fe=xv(s)?jP:Wbe;te=new fe({url:s,length:V,httpHeaders:o,withCredentials:r,rangeChunkSize:c,disableRange:M,disableStream:B})}return pe.then(fe=>{if(t.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const ve=new Ev(n,fe,u.port),ce=new f4e(ve,t,te,se,K);t._transport=ce,ve.send("Ready",null)})}).catch(t._capability.reject),t}function i4e(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(ma&&typeof e=="string")return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function l4e(e){if(ma&&typeof Buffer<"u"&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e=="string")return nb(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof e=="object"&&!isNaN(e==null?void 0:e.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function KP(e){return typeof e=="object"&&Number.isInteger(e==null?void 0:e.num)&&e.num>=0&&Number.isInteger(e==null?void 0:e.gen)&&e.gen>=0}const Tb=class Tb{constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${za(Tb,Ab)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var t,n,s,a;this.destroyed=!0;try{(t=this._worker)!=null&&t.port&&(this._worker._pendingDestroy=!0),await((n=this._transport)==null?void 0:n.destroy())}catch(o){throw(s=this._worker)!=null&&s.port&&delete this._worker._pendingDestroy,o}this._transport=null,(a=this._worker)==null||a.destroy(),this._worker=null}};Ab=new WeakMap,ne(Tb,Ab,0);let gw=Tb;class UP{constructor(t,n,s=!1,a=null){this.length=t,this.initialData=n,this.progressiveDone=s,this.contentDispositionFilename=a,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,n){for(const s of this._rangeListeners)s(t,n)}onDataProgress(t,n){this._readyCapability.promise.then(()=>{for(const s of this._progressListeners)s(t,n)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const n of this._progressiveReadListeners)n(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,n){Hn("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class c4e{constructor(t,n){this._pdfInfo=t,this._transport=n}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return mn(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(n)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class u4e{constructor(t,n,s,a=!1){ne(this,Go);ne(this,Hc,null);ne(this,Al,!1);this._pageIndex=t,this._pageInfo=n,this._transport=s,this._stats=a?new mP:null,this._pdfBug=a,this.commonObjs=s.commonObjs,this.objs=new qP,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:n=this.rotate,offsetX:s=0,offsetY:a=0,dontFlip:o=!1}={}){return new Sv({viewBox:this.view,userUnit:this.userUnit,scale:t,rotation:n,offsetX:s,offsetY:a,dontFlip:o})}getAnnotations({intent:t="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,n)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return mn(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var t;return((t=this._transport._htmlForXfa)==null?void 0:t.children[this._pageIndex])||null}render({canvasContext:t,viewport:n,intent:s="display",annotationMode:a=wc.ENABLE,transform:o=null,background:r=null,optionalContentConfigPromise:i=null,annotationCanvasMap:l=null,pageColors:c=null,printAnnotationStorage:u=null,isEditing:d=!1}){var _,x;(_=this._stats)==null||_.time("Overall");const h=this._transport.getRenderingIntent(s,a,u,d),{renderingIntent:p,cacheKey:v}=h;G(this,Al,!1),oe(this,Go,Xb).call(this),i||(i=this._transport.getOptionalContentConfig(p));let m=this._intentStates.get(v);m||(m=Object.create(null),this._intentStates.set(v,m)),m.streamReaderCancelTimeout&&(clearTimeout(m.streamReaderCancelTimeout),m.streamReaderCancelTimeout=null);const g=!!(p&mo.PRINT);m.displayReadyCapability||(m.displayReadyCapability=Promise.withResolvers(),m.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(x=this._stats)==null||x.time("Page Request"),this._pumpOperatorList(h));const b=k=>{var T;m.renderTasks.delete(C),(this._maybeCleanupAfterRender||g)&&G(this,Al,!0),oe(this,Go,A0).call(this,!g),k?(C.capability.reject(k),this._abortOperatorList({intentState:m,reason:k instanceof Error?k:new Error(k)})):C.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),(T=globalThis.Stats)!=null&&T.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},C=new bw({callback:b,params:{canvasContext:t,viewport:n,transform:o,background:r},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:l,operatorList:m.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!g,pdfBug:this._pdfBug,pageColors:c});(m.renderTasks||(m.renderTasks=new Set)).add(C);const w=C.task;return Promise.all([m.displayReadyCapability.promise,i]).then(([k,T])=>{var I;if(this.destroyed){b();return}if((I=this._stats)==null||I.time("Rendering"),!(T.renderingIntent&p))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");C.initializeGraphics({transparency:k,optionalContentConfig:T}),C.operatorListChanged()}).catch(b),w}getOperatorList({intent:t="display",annotationMode:n=wc.ENABLE,printAnnotationStorage:s=null,isEditing:a=!1}={}){var c;function o(){i.operatorList.lastChunk&&(i.opListReadCapability.resolve(i.operatorList),i.renderTasks.delete(l))}const r=this._transport.getRenderingIntent(t,n,s,a,!0);let i=this._intentStates.get(r.cacheKey);i||(i=Object.create(null),this._intentStates.set(r.cacheKey,i));let l;return i.opListReadCapability||(l=Object.create(null),l.operatorListChanged=o,i.opListReadCapability=Promise.withResolvers(),(i.renderTasks||(i.renderTasks=new Set)).add(l),i.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(c=this._stats)==null||c.time("Page Request"),this._pumpOperatorList(r)),i.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:n=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:n===!0},{highWaterMark:100,size(a){return a.items.length}})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(s=>Mv.textContent(s));const n=this.streamTextContent(t);return new Promise(function(s,a){function o(){r.read().then(function({value:l,done:c}){if(c){s(i);return}i.lang??(i.lang=l.lang),Object.assign(i.styles,l.styles),i.items.push(...l.items),o()},a)}const r=n.getReader(),i={items:[],styles:Object.create(null),lang:null};o()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const n of this._intentStates.values())if(this._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),!n.opListReadCapability)for(const s of n.renderTasks)t.push(s.completed),s.cancel();return this.objs.clear(),G(this,Al,!1),oe(this,Go,Xb).call(this),Promise.all(t)}cleanup(t=!1){G(this,Al,!0);const n=oe(this,Go,A0).call(this,!1);return t&&n&&this._stats&&(this._stats=new mP),n}_startRenderPage(t,n){var a,o;const s=this._intentStates.get(n);s&&((a=this._stats)==null||a.timeEnd("Page Request"),(o=s.displayReadyCapability)==null||o.resolve(t))}_renderPageChunk(t,n){for(let s=0,a=t.length;s{l.read().then(({value:d,done:h})=>{if(h){c.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(d,c),u())},d=>{if(c.streamReader=null,!this._transport.destroyed){if(c.operatorList){c.operatorList.lastChunk=!0;for(const h of c.renderTasks)h.operatorListChanged();oe(this,Go,A0).call(this,!0)}if(c.displayReadyCapability)c.displayReadyCapability.reject(d);else if(c.opListReadCapability)c.opListReadCapability.reject(d);else throw d}})};u()}_abortOperatorList({intentState:t,reason:n,force:s=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!s){if(t.renderTasks.size>0)return;if(n instanceof tw){let a=e4e;n.extraDelay>0&&n.extraDelay<1e3&&(a+=n.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:n,force:!0})},a);return}}if(t.streamReader.cancel(new Cc(n.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[a,o]of this._intentStates)if(o===t){this._intentStates.delete(a);break}this.cleanup()}}}get stats(){return this._stats}}Hc=new WeakMap,Al=new WeakMap,Go=new WeakSet,A0=function(t=!1){if(oe(this,Go,Xb).call(this),!y(this,Al)||this.destroyed)return!1;if(t)return G(this,Hc,setTimeout(()=>{G(this,Hc,null),oe(this,Go,A0).call(this,!1)},t4e)),!1;for(const{renderTasks:n,operatorList:s}of this._intentStates.values())if(n.size>0||!s.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),G(this,Al,!1),!0},Xb=function(){y(this,Hc)&&(clearTimeout(y(this,Hc)),G(this,Hc,null))};class d4e{constructor(){ne(this,Tl,new Map);ne(this,Mb,Promise.resolve())}postMessage(t,n){const s={data:structuredClone(t,n?{transfer:n}:null)};y(this,Mb).then(()=>{for(const[a]of y(this,Tl))a.call(this,s)})}addEventListener(t,n,s=null){let a=null;if((s==null?void 0:s.signal)instanceof AbortSignal){const{signal:o}=s;if(o.aborted){fn("LoopbackPort - cannot use an `aborted` signal.");return}const r=()=>this.removeEventListener(t,n);a=()=>o.removeEventListener("abort",r),o.addEventListener("abort",r)}y(this,Tl).set(n,a)}removeEventListener(t,n){const s=y(this,Tl).get(n);s==null||s(),y(this,Tl).delete(n)}terminate(){for(const[,t]of y(this,Tl))t==null||t();y(this,Tl).clear()}}Tl=new WeakMap,Mb=new WeakMap;const ss=class ss{constructor({name:t=null,port:n=null,verbosity:s=U1e()}={}){ne(this,zh);var a;if(this.name=t,this.destroyed=!1,this.verbosity=s,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,n){if((a=y(ss,kd))!=null&&a.has(n))throw new Error("Cannot use more than one PDFWorker per port.");(y(ss,kd)||G(ss,kd,new WeakMap)).set(n,this),this._initializeFromPort(n);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new Ev("main","worker",t),this._messageHandler.on("ready",function(){}),oe(this,zh,Jb).call(this)}_initialize(){if(y(ss,xd)||y(ss,Hh,Zb)){this._setupFakeWorker();return}let{workerSrc:t}=ss;try{ss._isSameOrigin(window.location.href,t)||(t=ss._createCDNWrapper(new URL(t,window.location).href));const n=new Worker(t,{type:"module"}),s=new Ev("main","worker",n),a=()=>{o.abort(),s.destroy(),n.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=new AbortController;n.addEventListener("error",()=>{this._webWorker||a()},{signal:o.signal}),s.on("test",i=>{if(o.abort(),this.destroyed||!i){a();return}this._messageHandler=s,this._port=n,this._webWorker=n,oe(this,zh,Jb).call(this)}),s.on("ready",i=>{if(o.abort(),this.destroyed){a();return}try{r()}catch{this._setupFakeWorker()}});const r=()=>{const i=new Uint8Array;s.send("test",i,[i.buffer])};r();return}catch{eb("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){y(ss,xd)||(fn("Setting up fake worker."),G(ss,xd,!0)),ss._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const n=new d4e;this._port=n;const s=`fake${za(ss,Pb)._++}`,a=new Ev(s+"_worker",s,n);t.setup(a,n),this._messageHandler=new Ev(s,s+"_worker",n),oe(this,zh,Jb).call(this)}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){var t,n,s;this.destroyed=!0,(t=this._webWorker)==null||t.terminate(),this._webWorker=null,(n=y(ss,kd))==null||n.delete(this._port),this._port=null,(s=this._messageHandler)==null||s.destroy(),this._messageHandler=null}static fromPort(t){var s;if(!(t!=null&&t.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const n=(s=y(this,kd))==null?void 0:s.get(t.port);if(n){if(n._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return n}return new ss(t)}static get workerSrc(){if(fl.workerSrc)return fl.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return mn(this,"_setupFakeWorkerGlobal",(async()=>y(this,Hh,Zb)?y(this,Hh,Zb):(await import(this.workerSrc)).WorkerMessageHandler)())}};Pb=new WeakMap,xd=new WeakMap,kd=new WeakMap,zh=new WeakSet,Jb=function(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})},Hh=new WeakSet,Zb=function(){var t;try{return((t=globalThis.pdfjsWorker)==null?void 0:t.WorkerMessageHandler)||null}catch{return null}},ne(ss,Hh),ne(ss,Pb,0),ne(ss,xd,!1),ne(ss,kd),ma&&(G(ss,xd,!0),fl.workerSrc||(fl.workerSrc="./pdf.worker.mjs")),ss._isSameOrigin=(t,n)=>{let s;try{if(s=new URL(t),!s.origin||s.origin==="null")return!1}catch{return!1}const a=new URL(n,s);return s.origin===a.origin},ss._createCDNWrapper=t=>{const n=`await import("${t}");`;return URL.createObjectURL(new Blob([n],{type:"text/javascript"}))};let ph=ss;class f4e{constructor(t,n,s,a,o){ne(this,Ed);ne(this,Ml,new Map);ne(this,Ci,new Map);ne(this,Wh,new Map);ne(this,jh,new Map);ne(this,Pl,null);this.messageHandler=t,this.loadingTask=n,this.commonObjs=new qP,this.fontLoader=new dbe({ownerDocument:a.ownerDocument,styleElement:a.styleElement}),this.loadingParams=a.loadingParams,this._params=a,this.canvasFactory=o.canvasFactory,this.filterFactory=o.filterFactory,this.cMapReaderFactory=o.cMapReaderFactory,this.standardFontDataFactory=o.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=s,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}get annotationStorage(){return mn(this,"annotationStorage",new uw)}getRenderingIntent(t,n=wc.ENABLE,s=null,a=!1,o=!1){let r=mo.DISPLAY,i=cw;switch(t){case"any":r=mo.ANY;break;case"display":break;case"print":r=mo.PRINT;break;default:fn(`getRenderingIntent - invalid intent: ${t}`)}const l=r&mo.PRINT&&s instanceof yP?s:this.annotationStorage;switch(n){case wc.DISABLE:r+=mo.ANNOTATIONS_DISABLE;break;case wc.ENABLE:break;case wc.ENABLE_FORMS:r+=mo.ANNOTATIONS_FORMS;break;case wc.ENABLE_STORAGE:r+=mo.ANNOTATIONS_STORAGE,i=l.serializable;break;default:fn(`getRenderingIntent - invalid annotationMode: ${n}`)}a&&(r+=mo.IS_EDITING),o&&(r+=mo.OPLIST);const{ids:c,hash:u}=l.modifiedIds,d=[r,i.hash,u];return{renderingIntent:r,cacheKey:d.join("_"),annotationStorageSerializable:i,modifiedIds:c}}destroy(){var s;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),(s=y(this,Pl))==null||s.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const a of y(this,Ci).values())t.push(a._destroy());y(this,Ci).clear(),y(this,Wh).clear(),y(this,jh).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then(()=>{var a,o;this.commonObjs.clear(),this.fontLoader.clear(),y(this,Ml).clear(),this.filterFactory.destroy(),Tv.cleanup(),(a=this._networkStream)==null||a.cancelAllRequests(new Cc("Worker was terminated.")),(o=this.messageHandler)==null||o.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:n}=this;t.on("GetReader",(s,a)=>{Ss(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=o=>{this._lastProgress={loaded:o.loaded,total:o.total}},a.onPull=()=>{this._fullReader.read().then(function({value:o,done:r}){if(r){a.close();return}Ss(o instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(o),1,[o])}).catch(o=>{a.error(o)})},a.onCancel=o=>{this._fullReader.cancel(o),a.ready.catch(r=>{if(!this.destroyed)throw r})}}),t.on("ReaderHeadersReady",async s=>{var i;await this._fullReader.headersReady;const{isStreamingSupported:a,isRangeSupported:o,contentLength:r}=this._fullReader;return(!a||!o)&&(this._lastProgress&&((i=n.onProgress)==null||i.call(n,this._lastProgress)),this._fullReader.onProgress=l=>{var c;(c=n.onProgress)==null||c.call(n,{loaded:l.loaded,total:l.total})}),{isStreamingSupported:a,isRangeSupported:o,contentLength:r}}),t.on("GetRangeReader",(s,a)=>{Ss(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const o=this._networkStream.getRangeReader(s.begin,s.end);if(!o){a.close();return}a.onPull=()=>{o.read().then(function({value:r,done:i}){if(i){a.close();return}Ss(r instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(r),1,[r])}).catch(r=>{a.error(r)})},a.onCancel=r=>{o.cancel(r),a.ready.catch(i=>{if(!this.destroyed)throw i})}}),t.on("GetDoc",({pdfInfo:s})=>{this._numPages=s.numPages,this._htmlForXfa=s.htmlForXfa,delete s.htmlForXfa,n._capability.resolve(new c4e(s,this))}),t.on("DocException",s=>{n._capability.reject(Za(s))}),t.on("PasswordRequest",s=>{G(this,Pl,Promise.withResolvers());try{if(!n.onPassword)throw Za(s);const a=o=>{o instanceof Error?y(this,Pl).reject(o):y(this,Pl).resolve({password:o})};n.onPassword(a,s.code)}catch(a){y(this,Pl).reject(a)}return y(this,Pl).promise}),t.on("DataLoaded",s=>{var a;(a=n.onProgress)==null||a.call(n,{loaded:s.length,total:s.length}),this.downloadInfoCapability.resolve(s)}),t.on("StartRenderPage",s=>{if(this.destroyed)return;y(this,Ci).get(s.pageIndex)._startRenderPage(s.transparency,s.cacheKey)}),t.on("commonobj",([s,a,o])=>{var r;if(this.destroyed||this.commonObjs.has(s))return null;switch(a){case"Font":const{disableFontFace:i,fontExtraProperties:l,pdfBug:c}=this._params;if("error"in o){const p=o.error;fn(`Error during font loading: ${p}`),this.commonObjs.resolve(s,p);break}const u=c&&((r=globalThis.FontInspector)!=null&&r.enabled)?(p,v)=>globalThis.FontInspector.fontAdded(p,v):null,d=new fbe(o,{disableFontFace:i,fontExtraProperties:l,inspectFont:u});this.fontLoader.bind(d).catch(()=>t.sendWithPromise("FontFallback",{id:s})).finally(()=>{!l&&d.data&&(d.data=null),this.commonObjs.resolve(s,d)});break;case"CopyLocalImage":const{imageRef:h}=o;Ss(h,"The imageRef must be defined.");for(const p of y(this,Ci).values())for(const[,v]of p.objs)if((v==null?void 0:v.ref)===h)return v.dataLen?(this.commonObjs.resolve(s,structuredClone(v)),v.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(s,o);break;default:throw new Error(`Got unknown common object type ${a}`)}return null}),t.on("obj",([s,a,o,r])=>{var l;if(this.destroyed)return;const i=y(this,Ci).get(a);if(!i.objs.has(s)){if(i._intentStates.size===0){(l=r==null?void 0:r.bitmap)==null||l.close();return}switch(o){case"Image":i.objs.resolve(s,r),(r==null?void 0:r.dataLen)>z1e&&(i._maybeCleanupAfterRender=!0);break;case"Pattern":i.objs.resolve(s,r);break;default:throw new Error(`Got unknown object type ${o}`)}}}),t.on("DocProgress",s=>{var a;this.destroyed||(a=n.onProgress)==null||a.call(n,{loaded:s.loaded,total:s.total})}),t.on("FetchBuiltInCMap",async s=>{if(this.destroyed)throw new Error("Worker was destroyed.");if(!this.cMapReaderFactory)throw new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.");return this.cMapReaderFactory.fetch(s)}),t.on("FetchStandardFontData",async s=>{if(this.destroyed)throw new Error("Worker was destroyed.");if(!this.standardFontDataFactory)throw new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.");return this.standardFontDataFactory.fetch(s)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var s;this.annotationStorage.size<=0&&fn("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:t,transfer:n}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:((s=this._fullReader)==null?void 0:s.filename)??null},n).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const n=t-1,s=y(this,Wh).get(n);if(s)return s;const a=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(o=>{if(this.destroyed)throw new Error("Transport destroyed");o.refStr&&y(this,jh).set(o.refStr,t);const r=new u4e(n,o,this,this._params.pdfBug);return y(this,Ci).set(n,r),r});return y(this,Wh).set(n,a),a}getPageIndex(t){return KP(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(t,n){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:n})}getFieldObjects(){return oe(this,Ed,m2).call(this,"GetFieldObjects")}hasJSActions(){return oe(this,Ed,m2).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return oe(this,Ed,m2).call(this,"GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return oe(this,Ed,m2).call(this,"GetOptionalContentConfig").then(n=>new Lbe(n,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",n=y(this,Ml).get(t);if(n)return n;const s=this.messageHandler.sendWithPromise(t,null).then(a=>{var o,r;return{info:a[0],metadata:a[1]?new Ibe(a[1]):null,contentDispositionFilename:((o=this._fullReader)==null?void 0:o.filename)??null,contentLength:((r=this._fullReader)==null?void 0:r.contentLength)??null}});return y(this,Ml).set(t,s),s}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const n of y(this,Ci).values())if(!n.cleanup())throw new Error(`startCleanup: Page ${n.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),y(this,Ml).clear(),this.filterFactory.destroy(!0),Tv.cleanup()}}cachedPageNumber(t){if(!KP(t))return null;const n=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return y(this,jh).get(n)??null}}Ml=new WeakMap,Ci=new WeakMap,Wh=new WeakMap,jh=new WeakMap,Pl=new WeakMap,Ed=new WeakSet,m2=function(t,n=null){const s=y(this,Ml).get(t);if(s)return s;const a=this.messageHandler.sendWithPromise(t,n);return y(this,Ml).set(t,a),a};const Pv=Symbol("INITIAL_DATA");class qP{constructor(){ne(this,Cm);ne(this,Co,Object.create(null))}get(t,n=null){if(n){const a=oe(this,Cm,c_).call(this,t);return a.promise.then(()=>n(a.data)),null}const s=y(this,Co)[t];if(!s||s.data===Pv)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return s.data}has(t){const n=y(this,Co)[t];return!!n&&n.data!==Pv}delete(t){const n=y(this,Co)[t];return!n||n.data===Pv?!1:(delete y(this,Co)[t],!0)}resolve(t,n=null){const s=oe(this,Cm,c_).call(this,t);s.data=n,s.resolve()}clear(){var t;for(const n in y(this,Co)){const{data:s}=y(this,Co)[n];(t=s==null?void 0:s.bitmap)==null||t.close()}G(this,Co,Object.create(null))}*[Symbol.iterator](){for(const t in y(this,Co)){const{data:n}=y(this,Co)[t];n!==Pv&&(yield[t,n])}}}Co=new WeakMap,Cm=new WeakSet,c_=function(t){var n;return(n=y(this,Co))[t]||(n[t]={...Promise.withResolvers(),data:Pv})};class h4e{constructor(t){ne(this,Wc,null);G(this,Wc,t),this.onContinue=null}get promise(){return y(this,Wc).capability.promise}cancel(t=0){y(this,Wc).cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=y(this,Wc).operatorList;if(!t)return!1;const{annotationCanvasMap:n}=y(this,Wc);return t.form||t.canvas&&(n==null?void 0:n.size)>0}}Wc=new WeakMap;const Td=class Td{constructor({callback:t,params:n,objs:s,commonObjs:a,annotationCanvasMap:o,operatorList:r,pageIndex:i,canvasFactory:l,filterFactory:c,useRequestAnimationFrame:u=!1,pdfBug:d=!1,pageColors:h=null}){ne(this,jc,null);this.callback=t,this.params=n,this.objs=s,this.commonObjs=a,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=r,this._pageIndex=i,this.canvasFactory=l,this.filterFactory=c,this._pdfBug=d,this.pageColors=h,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=u===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new h4e(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:n}){var i,l;if(this.cancelled)return;if(this._canvas){if(y(Td,Ad).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");y(Td,Ad).add(this._canvas)}this._pdfBug&&((i=globalThis.StepperManager)!=null&&i.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:s,viewport:a,transform:o,background:r}=this.params;this.gfx=new fh(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:n},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:a,transparency:t,background:r}),this.operatorListIdx=0,this.graphicsReady=!0,(l=this.graphicsReadyCallback)==null||l.call(this)}cancel(t=null,n=0){var s;this.running=!1,this.cancelled=!0,(s=this.gfx)==null||s.endDrawing(),y(this,jc)&&(window.cancelAnimationFrame(y(this,jc)),G(this,jc,null)),y(Td,Ad).delete(this._canvas),this.callback(t||new tw(`Rendering cancelled, page ${this._pageIndex+1}`,n))}operatorListChanged(){var t;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(t=this.stepper)==null||t.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?G(this,jc,window.requestAnimationFrame(()=>{G(this,jc,null),this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),y(Td,Ad).delete(this._canvas),this.callback())))}};jc=new WeakMap,Ad=new WeakMap,ne(Td,Ad,new WeakSet);let bw=Td;const p4e="4.10.38",v4e="f9bea397f";function GP(e){return Math.floor(Math.max(0,Math.min(1,e))*255).toString(16).padStart(2,"0")}function Rv(e){return Math.max(0,Math.min(255,255*e))}class YP{static CMYK_G([t,n,s,a]){return["G",1-Math.min(1,.3*t+.59*s+.11*n+a)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return t=Rv(t),[t,t,t]}static G_HTML([t]){const n=GP(t);return`#${n}${n}${n}`}static RGB_G([t,n,s]){return["G",.3*t+.59*n+.11*s]}static RGB_rgb(t){return t.map(Rv)}static RGB_HTML(t){return`#${t.map(GP).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,n,s,a]){return["RGB",1-Math.min(1,t+a),1-Math.min(1,s+a),1-Math.min(1,n+a)]}static CMYK_rgb([t,n,s,a]){return[Rv(1-Math.min(1,t+a)),Rv(1-Math.min(1,s+a)),Rv(1-Math.min(1,n+a))]}static CMYK_HTML(t){const n=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(n)}static RGB_CMYK([t,n,s]){const a=1-t,o=1-n,r=1-s,i=Math.min(a,o,r);return["CMYK",a,o,r,i]}}class m4e{create(t,n,s=!1){if(t<=0||n<=0)throw new Error("Invalid SVG dimensions");const a=this._createSVG("svg:svg");return a.setAttribute("version","1.1"),s||(a.setAttribute("width",`${t}px`),a.setAttribute("height",`${n}px`)),a.setAttribute("preserveAspectRatio","none"),a.setAttribute("viewBox",`0 0 ${t} ${n}`),a}createElement(t){if(typeof t!="string")throw new Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){Hn("Abstract method `_createSVG` called.")}}class yw extends m4e{_createSVG(t){return document.createElementNS(dl,t)}}class XP{static setupStorage(t,n,s,a,o){const r=a.getValue(n,{value:null});switch(s.name){case"textarea":if(r.value!==null&&(t.textContent=r.value),o==="print")break;t.addEventListener("input",i=>{a.setValue(n,{value:i.target.value})});break;case"input":if(s.attributes.type==="radio"||s.attributes.type==="checkbox"){if(r.value===s.attributes.xfaOn?t.setAttribute("checked",!0):r.value===s.attributes.xfaOff&&t.removeAttribute("checked"),o==="print")break;t.addEventListener("change",i=>{a.setValue(n,{value:i.target.checked?i.target.getAttribute("xfaOn"):i.target.getAttribute("xfaOff")})})}else{if(r.value!==null&&t.setAttribute("value",r.value),o==="print")break;t.addEventListener("input",i=>{a.setValue(n,{value:i.target.value})})}break;case"select":if(r.value!==null){t.setAttribute("value",r.value);for(const i of s.children)i.attributes.value===r.value?i.attributes.selected=!0:i.attributes.hasOwnProperty("selected")&&delete i.attributes.selected}t.addEventListener("input",i=>{const l=i.target.options,c=l.selectedIndex===-1?"":l[l.selectedIndex].value;a.setValue(n,{value:c})});break}}static setAttributes({html:t,element:n,storage:s=null,intent:a,linkService:o}){const{attributes:r}=n,i=t instanceof HTMLAnchorElement;r.type==="radio"&&(r.name=`${r.name}-${a}`);for(const[l,c]of Object.entries(r))if(c!=null)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!i||l!=="href"&&l!=="newWindow")&&t.setAttribute(l,c)}i&&o.addLinkAttributes(t,r.href,r.newWindow),s&&r.dataId&&this.setupStorage(t,r.dataId,n,s)}static render(t){var d,h;const n=t.annotationStorage,s=t.linkService,a=t.xfaHtml,o=t.intent||"display",r=document.createElement(a.name);a.attributes&&this.setAttributes({html:r,element:a,intent:o,linkService:s});const i=o!=="richText",l=t.div;if(l.append(r),t.viewport){const p=`matrix(${t.viewport.transform.join(",")})`;l.style.transform=p}i&&l.setAttribute("class","xfaLayer xfaFont");const c=[];if(a.children.length===0){if(a.value){const p=document.createTextNode(a.value);r.append(p),i&&Mv.shouldBuildText(a.name)&&c.push(p)}return{textDivs:c}}const u=[[a,-1,r]];for(;u.length>0;){const[p,v,m]=u.at(-1);if(v+1===p.children.length){u.pop();continue}const g=p.children[++u.at(-1)[1]];if(g===null)continue;const{name:b}=g;if(b==="#text"){const w=document.createTextNode(g.value);c.push(w),m.append(w);continue}const C=(d=g==null?void 0:g.attributes)!=null&&d.xmlns?document.createElementNS(g.attributes.xmlns,b):document.createElement(b);if(m.append(C),g.attributes&&this.setAttributes({html:C,element:g,storage:n,intent:o,linkService:s}),((h=g.children)==null?void 0:h.length)>0)u.push([g,-1,C]);else if(g.value){const w=document.createTextNode(g.value);i&&Mv.shouldBuildText(b)&&c.push(w),C.append(w)}}for(const p of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))p.setAttribute("readOnly",!0);return{textDivs:c}}static update(t){const n=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=n,t.div.hidden=!1}}const Iv=1e3,g4e=9,Uu=new WeakSet;function xc(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class b4e{static create(t){switch(t.data.annotationType){case Is.LINK:return new JP(t);case Is.TEXT:return new y4e(t);case Is.WIDGET:switch(t.data.fieldType){case"Tx":return new w4e(t);case"Btn":return t.data.radioButton?new ZP(t):t.data.checkBox?new C4e(t):new S4e(t);case"Ch":return new x4e(t);case"Sig":return new _4e(t)}return new qu(t);case Is.POPUP:return new ww(t);case Is.FREETEXT:return new QP(t);case Is.LINE:return new E4e(t);case Is.SQUARE:return new A4e(t);case Is.CIRCLE:return new T4e(t);case Is.POLYLINE:return new eR(t);case Is.CARET:return new P4e(t);case Is.INK:return new _w(t);case Is.POLYGON:return new M4e(t);case Is.HIGHLIGHT:return new tR(t);case Is.UNDERLINE:return new R4e(t);case Is.SQUIGGLY:return new I4e(t);case Is.STRIKEOUT:return new O4e(t);case Is.STAMP:return new nR(t);case Is.FILEATTACHMENT:return new L4e(t);default:return new vs(t)}}}const Lw=class Lw{constructor(t,{isRenderable:n=!1,ignoreBorder:s=!1,createQuadrilaterals:a=!1}={}){ne(this,Sm);ne(this,Md,null);ne(this,Kh,!1);ne(this,Uh,null);this.isRenderable=n,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,n&&(this.container=this._createContainer(s)),a&&this._createQuadrilaterals()}static _hasPopupData({titleObj:t,contentsObj:n,richText:s}){return!!(t!=null&&t.str||n!=null&&n.str||s!=null&&s.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return Lw._hasPopupData(this.data)}updateEdited(t){var s;if(!this.container)return;y(this,Md)||G(this,Md,{rect:this.data.rect.slice(0)});const{rect:n}=t;n&&oe(this,Sm,u_).call(this,n),(s=y(this,Uh))==null||s.popup.updateEdited(t)}resetEdited(){var t;y(this,Md)&&(oe(this,Sm,u_).call(this,y(this,Md).rect),(t=y(this,Uh))==null||t.popup.resetEdited(),G(this,Md,null))}_createContainer(t){const{data:n,parent:{page:s,viewport:a}}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",n.id),this instanceof qu||(o.tabIndex=Iv);const{style:r}=o;if(r.zIndex=this.parent.zIndex++,n.alternativeText&&(o.title=n.alternativeText),n.noRotate&&o.classList.add("norotate"),!n.rect||this instanceof ww){const{rotation:m}=n;return!n.hasOwnCanvas&&m!==0&&this.setRotation(m,o),o}const{width:i,height:l}=xc(n.rect);if(!t&&n.borderStyle.width>0){r.borderWidth=`${n.borderStyle.width}px`;const m=n.borderStyle.horizontalCornerRadius,g=n.borderStyle.verticalCornerRadius;if(m>0||g>0){const C=`calc(${m}px * var(--scale-factor)) / calc(${g}px * var(--scale-factor))`;r.borderRadius=C}else if(this instanceof ZP){const C=`calc(${i}px * var(--scale-factor)) / calc(${l}px * var(--scale-factor))`;r.borderRadius=C}switch(n.borderStyle.style){case _v.SOLID:r.borderStyle="solid";break;case _v.DASHED:r.borderStyle="dashed";break;case _v.BEVELED:fn("Unimplemented border style: beveled");break;case _v.INSET:fn("Unimplemented border style: inset");break;case _v.UNDERLINE:r.borderBottomStyle="solid";break}const b=n.borderColor||null;b?(G(this,Kh,!0),r.borderColor=zt.makeHexColor(b[0]|0,b[1]|0,b[2]|0)):r.borderWidth=0}const c=zt.normalizeRect([n.rect[0],s.view[3]-n.rect[1]+s.view[1],n.rect[2],s.view[3]-n.rect[3]+s.view[1]]),{pageWidth:u,pageHeight:d,pageX:h,pageY:p}=a.rawDims;r.left=`${100*(c[0]-h)/u}%`,r.top=`${100*(c[1]-p)/d}%`;const{rotation:v}=n;return n.hasOwnCanvas||v===0?(r.width=`${100*i/u}%`,r.height=`${100*l/d}%`):this.setRotation(v,o),o}setRotation(t,n=this.container){if(!this.data.rect)return;const{pageWidth:s,pageHeight:a}=this.parent.viewport.rawDims,{width:o,height:r}=xc(this.data.rect);let i,l;t%180===0?(i=100*o/s,l=100*r/a):(i=100*r/s,l=100*o/a),n.style.width=`${i}%`,n.style.height=`${l}%`,n.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const t=(n,s,a)=>{const o=a.detail[n],r=o[0],i=o.slice(1);a.target.style[s]=YP[`${r}_HTML`](i),this.annotationStorage.setValue(this.data.id,{[s]:YP[`${r}_rgb`](i)})};return mn(this,"_commonActions",{display:n=>{const{display:s}=n.detail,a=s%2===1;this.container.style.visibility=a?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:a,noPrint:s===1||s===2})},print:n=>{this.annotationStorage.setValue(this.data.id,{noPrint:!n.detail.print})},hidden:n=>{const{hidden:s}=n.detail;this.container.style.visibility=s?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:s,noView:s})},focus:n=>{setTimeout(()=>n.target.focus({preventScroll:!1}),0)},userName:n=>{n.target.title=n.detail.userName},readonly:n=>{n.target.disabled=n.detail.readonly},required:n=>{this._setRequired(n.target,n.detail.required)},bgColor:n=>{t("bgColor","backgroundColor",n)},fillColor:n=>{t("fillColor","backgroundColor",n)},fgColor:n=>{t("fgColor","color",n)},textColor:n=>{t("textColor","color",n)},borderColor:n=>{t("borderColor","borderColor",n)},strokeColor:n=>{t("strokeColor","borderColor",n)},rotation:n=>{const s=n.detail.rotation;this.setRotation(s),this.annotationStorage.setValue(this.data.id,{rotation:s})}})}_dispatchEventFromSandbox(t,n){const s=this._commonActions;for(const a of Object.keys(n.detail)){const o=t[a]||s[a];o==null||o(n)}}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const n=this.annotationStorage.getRawValue(this.data.id);if(!n)return;const s=this._commonActions;for(const[a,o]of Object.entries(n)){const r=s[a];if(r){const i={detail:{[a]:o},target:t};r(i),delete n[a]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:t}=this.data;if(!t)return;const[n,s,a,o]=this.data.rect.map(m=>Math.fround(m));if(t.length===8){const[m,g,b,C]=t.subarray(2,6);if(a===m&&o===g&&n===b&&s===C)return}const{style:r}=this.container;let i;if(y(this,Kh)){const{borderColor:m,borderWidth:g}=r;r.borderWidth=0,i=["url('data:image/svg+xml;utf8,",'',``],this.container.classList.add("hasBorder")}const l=a-n,c=o-s,{svgFactory:u}=this,d=u.createElement("svg");d.classList.add("quadrilateralsContainer"),d.setAttribute("width",0),d.setAttribute("height",0);const h=u.createElement("defs");d.append(h);const p=u.createElement("clipPath"),v=`clippath_${this.data.id}`;p.setAttribute("id",v),p.setAttribute("clipPathUnits","objectBoundingBox"),h.append(p);for(let m=2,g=t.length;m`)}y(this,Kh)&&(i.push("')"),r.backgroundImage=i.join("")),this.container.append(d),this.container.style.clipPath=`url(#${v})`}_createPopup(){const{data:t}=this,n=G(this,Uh,new ww({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(n.render())}render(){Hn("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,n=null){const s=[];if(this._fieldObjects){const a=this._fieldObjects[t];if(a)for(const{page:o,id:r,exportValues:i}of a){if(o===-1||r===n)continue;const l=typeof i=="string"?i:null,c=document.querySelector(`[data-element-id="${r}"]`);if(c&&!Uu.has(c)){fn(`_getElementsByName - element not allowed: ${r}`);continue}s.push({id:r,exportValue:l,domElement:c})}return s}for(const a of document.getElementsByName(t)){const{exportValue:o}=a,r=a.getAttribute("data-element-id");r!==n&&Uu.has(a)&&s.push({id:r,exportValue:o,domElement:a})}return s}show(){var t;this.container&&(this.container.hidden=!1),(t=this.popup)==null||t.maybeShow()}hide(){var t;this.container&&(this.container.hidden=!0),(t=this.popup)==null||t.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(const n of t)n.classList.add("highlightArea");else t.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:t,data:{id:n}}=this;this.container.addEventListener("dblclick",()=>{var s;(s=this.linkService.eventBus)==null||s.dispatch("switchannotationeditormode",{source:this,mode:t,editId:n})})}};Md=new WeakMap,Kh=new WeakMap,Uh=new WeakMap,Sm=new WeakSet,u_=function(t){const{container:{style:n},data:{rect:s,rotation:a},parent:{viewport:{rawDims:{pageWidth:o,pageHeight:r,pageX:i,pageY:l}}}}=this;s==null||s.splice(0,4,...t);const{width:c,height:u}=xc(t);n.left=`${100*(t[0]-i)/o}%`,n.top=`${100*(r-t[3]+l)/r}%`,a===0?(n.width=`${100*c/o}%`,n.height=`${100*u/r}%`):this.setRotation(a)};let vs=Lw;class JP extends vs{constructor(n,s=null){super(n,{isRenderable:!0,ignoreBorder:!!(s!=null&&s.ignoreBorder),createQuadrilaterals:!0});ne(this,So);this.isTooltipOnly=n.data.isTooltipOnly}render(){const{data:n,linkService:s}=this,a=document.createElement("a");a.setAttribute("data-element-id",n.id);let o=!1;return n.url?(s.addLinkAttributes(a,n.url,n.newWindow),o=!0):n.action?(this._bindNamedAction(a,n.action),o=!0):n.attachment?(oe(this,So,KR).call(this,a,n.attachment,n.attachmentDest),o=!0):n.setOCGState?(oe(this,So,UR).call(this,a,n.setOCGState),o=!0):n.dest?(this._bindLink(a,n.dest),o=!0):(n.actions&&(n.actions.Action||n.actions["Mouse Up"]||n.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(a,n),o=!0),n.resetForm?(this._bindResetFormAction(a,n.resetForm),o=!0):this.isTooltipOnly&&!o&&(this._bindLink(a,""),o=!0)),this.container.classList.add("linkAnnotation"),o&&this.container.append(a),this.container}_bindLink(n,s){n.href=this.linkService.getDestinationHash(s),n.onclick=()=>(s&&this.linkService.goToDestination(s),!1),(s||s==="")&&oe(this,So,nf).call(this)}_bindNamedAction(n,s){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeNamedAction(s),!1),oe(this,So,nf).call(this)}_bindJSAction(n,s){n.href=this.linkService.getAnchorUrl("");const a=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const o of Object.keys(s.actions)){const r=a.get(o);r&&(n[r]=()=>{var i;return(i=this.linkService.eventBus)==null||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:s.id,name:o}}),!1})}n.onclick||(n.onclick=()=>!1),oe(this,So,nf).call(this)}_bindResetFormAction(n,s){const a=n.onclick;if(a||(n.href=this.linkService.getAnchorUrl("")),oe(this,So,nf).call(this),!this._fieldObjects){fn('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),a||(n.onclick=()=>!1);return}n.onclick=()=>{var d;a==null||a();const{fields:o,refs:r,include:i}=s,l=[];if(o.length!==0||r.length!==0){const h=new Set(r);for(const p of o){const v=this._fieldObjects[p]||[];for(const{id:m}of v)h.add(m)}for(const p of Object.values(this._fieldObjects))for(const v of p)h.has(v.id)===i&&l.push(v)}else for(const h of Object.values(this._fieldObjects))l.push(...h);const c=this.annotationStorage,u=[];for(const h of l){const{id:p}=h;switch(u.push(p),h.type){case"text":{const m=h.defaultValue||"";c.setValue(p,{value:m});break}case"checkbox":case"radiobutton":{const m=h.defaultValue===h.exportValues;c.setValue(p,{value:m});break}case"combobox":case"listbox":{const m=h.defaultValue||"";c.setValue(p,{value:m});break}default:continue}const v=document.querySelector(`[data-element-id="${p}"]`);if(v){if(!Uu.has(v)){fn(`_bindResetFormAction - element not allowed: ${p}`);continue}}else continue;v.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((d=this.linkService.eventBus)==null||d.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}})),!1}}}So=new WeakSet,nf=function(){this.container.setAttribute("data-internal-link","")},KR=function(n,s,a=null){n.href=this.linkService.getAnchorUrl(""),s.description&&(n.title=s.description),n.onclick=()=>{var o;return(o=this.downloadManager)==null||o.openOrDownloadData(s.content,s.filename,a),!1},oe(this,So,nf).call(this)},UR=function(n,s){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeSetOCGState(s),!1),oe(this,So,nf).call(this)};class y4e extends vs{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class qu extends vs{render(){return this.container}showElementAndHideCanvas(t){var n;this.data.hasOwnCanvas&&(((n=t.previousSibling)==null?void 0:n.nodeName)==="CANVAS"&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return La.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,n,s,a,o){s.includes("mouse")?t.addEventListener(s,r=>{var i;(i=this.linkService.eventBus)==null||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:o(r),shift:r.shiftKey,modifier:this._getKeyModifier(r)}})}):t.addEventListener(s,r=>{var i;if(s==="blur"){if(!n.focused||!r.relatedTarget)return;n.focused=!1}else if(s==="focus"){if(n.focused)return;n.focused=!0}o&&((i=this.linkService.eventBus)==null||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:o(r)}}))})}_setEventListeners(t,n,s,a){var o,r,i;for(const[l,c]of s)(c==="Action"||(o=this.data.actions)!=null&&o[c])&&((c==="Focus"||c==="Blur")&&(n||(n={focused:!1})),this._setEventListener(t,n,l,c,a),c==="Focus"&&!((r=this.data.actions)!=null&&r.Blur)?this._setEventListener(t,n,"blur","Blur",null):c==="Blur"&&!((i=this.data.actions)!=null&&i.Focus)&&this._setEventListener(t,n,"focus","Focus",null))}_setBackgroundColor(t){const n=this.data.backgroundColor||null;t.style.backgroundColor=n===null?"transparent":zt.makeHexColor(n[0],n[1],n[2])}_setTextStyle(t){const n=["left","center","right"],{fontColor:s}=this.data.defaultAppearanceData,a=this.data.defaultAppearanceData.fontSize||g4e,o=t.style;let r;const i=2,l=c=>Math.round(10*c)/10;if(this.data.multiLine){const c=Math.abs(this.data.rect[3]-this.data.rect[1]-i),u=Math.round(c/(G8*a))||1,d=c/u;r=Math.min(a,l(d/G8))}else{const c=Math.abs(this.data.rect[3]-this.data.rect[1]-i);r=Math.min(a,l(c/G8))}o.fontSize=`calc(${r}px * var(--scale-factor))`,o.color=zt.makeHexColor(s[0],s[1],s[2]),this.data.textAlignment!==null&&(o.textAlign=n[this.data.textAlignment])}_setRequired(t,n){n?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",n)}}class w4e extends qu{constructor(t){const n=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:n})}setPropertyOnSiblings(t,n,s,a){const o=this.annotationStorage;for(const r of this._getElementsByName(t.name,t.id))r.domElement&&(r.domElement[n]=s),o.setValue(r.id,{[a]:s})}render(){var a,o;const t=this.annotationStorage,n=this.data.id;this.container.classList.add("textWidgetAnnotation");let s=null;if(this.renderForms){const r=t.getValue(n,{value:this.data.fieldValue});let i=r.value||"";const l=t.getValue(n,{charLimit:this.data.maxLen}).charLimit;l&&i.length>l&&(i=i.slice(0,l));let c=r.formattedValue||((a=this.data.textContent)==null?void 0:a.join(` `))||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),Uu.add(s),s.setAttribute("data-element-id",n),s.disabled=this.data.readOnly,s.name=this.data.fieldName,s.tabIndex=Iv,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 C=u.userValue;!C||C.length<=g||(C=C.slice(0,g),b.value=u.userValue=C,t.setValue(n,{value:C}),(w=this.linkService.eventBus)==null||w.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:C,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:C}=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&&(_+=k[0].length);break}case"deleteContentBackward":b===C&&(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:_}})}),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=`calc(${p}px * var(--scale-factor) - 1ch)`}}else s=document.createElement("div"),s.textContent=this.data.fieldValue,s.style.verticalAlign="middle",s.style.display="table-cell",this.data.hasOwnCanvas&&(s.hidden=!0);return this._setTextStyle(s),this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}}class _4e extends qu{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}}class C4e extends qu{constructor(t){super(t,{isRenderable:t.renderForms})}render(){const t=this.annotationStorage,n=this.data,s=n.id;let a=t.getValue(s,{value:n.exportValue===n.fieldValue}).value;typeof a=="string"&&(a=a!=="Off",t.setValue(s,{value:a})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const o=document.createElement("input");return Uu.add(o),o.setAttribute("data-element-id",s),o.disabled=n.readOnly,this._setRequired(o,this.data.required),o.type="checkbox",o.name=n.fieldName,a&&o.setAttribute("checked",!0),o.setAttribute("exportValue",n.exportValue),o.tabIndex=Iv,o.addEventListener("change",r=>{const{name:i,checked:l}=r.target;for(const c of this._getElementsByName(i,s)){const u=l&&c.exportValue===n.exportValue;c.domElement&&(c.domElement.checked=u),t.setValue(c.id,{value:u})}t.setValue(s,{value:l})}),o.addEventListener("resetform",r=>{const i=n.defaultFieldValue||"Off";r.target.checked=i===n.exportValue}),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",r=>{const i={value(l){l.target.checked=l.detail.value!=="Off",t.setValue(s,{value:l.target.checked})}};this._dispatchEventFromSandbox(i,r)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],r=>r.target.checked)),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class ZP extends qu{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const t=this.annotationStorage,n=this.data,s=n.id;let a=t.getValue(s,{value:n.fieldValue===n.buttonValue}).value;if(typeof a=="string"&&(a=a!==n.buttonValue,t.setValue(s,{value:a})),a)for(const r of this._getElementsByName(n.fieldName,s))t.setValue(r.id,{value:!1});const o=document.createElement("input");if(Uu.add(o),o.setAttribute("data-element-id",s),o.disabled=n.readOnly,this._setRequired(o,this.data.required),o.type="radio",o.name=n.fieldName,a&&o.setAttribute("checked",!0),o.tabIndex=Iv,o.addEventListener("change",r=>{const{name:i,checked:l}=r.target;for(const c of this._getElementsByName(i,s))t.setValue(c.id,{value:!1});t.setValue(s,{value:l})}),o.addEventListener("resetform",r=>{const i=n.defaultFieldValue;r.target.checked=i!=null&&i===n.buttonValue}),this.enableScripting&&this.hasJSActions){const r=n.buttonValue;o.addEventListener("updatefromsandbox",i=>{const l={value:c=>{const u=r===c.detail.value;for(const d of this._getElementsByName(c.target.name)){const h=u&&d.id===s;d.domElement&&(d.domElement.checked=h),t.setValue(d.id,{value:h})}}};this._dispatchEventFromSandbox(l,i)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],i=>i.target.checked)}return this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class S4e extends JP{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){const t=super.render();t.classList.add("buttonWidgetAnnotation","pushButton");const n=t.lastChild;return this.enableScripting&&this.hasJSActions&&n&&(this._setDefaultPropertiesFromJS(n),n.addEventListener("updatefromsandbox",s=>{this._dispatchEventFromSandbox({},s)})),t}}class x4e extends qu{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const t=this.annotationStorage,n=this.data.id,s=t.getValue(n,{value:this.data.fieldValue}),a=document.createElement("select");Uu.add(a),a.setAttribute("data-element-id",n),a.disabled=this.data.readOnly,this._setRequired(a,this.data.required),a.name=this.data.fieldName,a.tabIndex=Iv;let o=this.data.combo&&this.data.options.length>0;this.data.combo||(a.size=this.data.options.length,this.data.multiSelect&&(a.multiple=!0)),a.addEventListener("resetform",u=>{const d=this.data.defaultFieldValue;for(const h of a.options)h.selected=h.value===d});for(const u of this.data.options){const d=document.createElement("option");d.textContent=u.displayValue,d.value=u.exportValue,s.value.includes(u.exportValue)&&(d.setAttribute("selected",!0),o=!1),a.append(d)}let r=null;if(o){const u=document.createElement("option");u.value=" ",u.setAttribute("hidden",!0),u.setAttribute("selected",!0),a.prepend(u),r=()=>{u.remove(),a.removeEventListener("input",r),r=null},a.addEventListener("input",r)}const i=u=>{const d=u?"value":"textContent",{options:h,multiple:p}=a;return p?Array.prototype.filter.call(h,v=>v.selected).map(v=>v[d]):h.selectedIndex===-1?null:h[h.selectedIndex][d]};let l=i(!1);const c=u=>{const d=u.target.options;return Array.prototype.map.call(d,h=>({displayValue:h.textContent,exportValue:h.value}))};return this.enableScripting&&this.hasJSActions?(a.addEventListener("updatefromsandbox",u=>{const d={value(h){r==null||r();const p=h.detail.value,v=new Set(Array.isArray(p)?p:[p]);for(const m of a.options)m.selected=v.has(m.value);t.setValue(n,{value:i(!0)}),l=i(!1)},multipleSelection(h){a.multiple=!0},remove(h){const p=a.options,v=h.detail.remove;p[v].selected=!1,a.remove(v),p.length>0&&Array.prototype.findIndex.call(p,g=>g.selected)===-1&&(p[0].selected=!0),t.setValue(n,{value:i(!0),items:c(h)}),l=i(!1)},clear(h){for(;a.length!==0;)a.remove(0);t.setValue(n,{value:null,items:[]}),l=i(!1)},insert(h){const{index:p,displayValue:v,exportValue:m}=h.detail.insert,g=a.children[p],b=document.createElement("option");b.textContent=v,b.value=m,g?g.before(b):a.append(b),t.setValue(n,{value:i(!0),items:c(h)}),l=i(!1)},items(h){const{items:p}=h.detail;for(;a.length!==0;)a.remove(0);for(const v of p){const{displayValue:m,exportValue:g}=v,b=document.createElement("option");b.textContent=m,b.value=g,a.append(b)}a.options.length>0&&(a.options[0].selected=!0),t.setValue(n,{value:i(!0),items:c(h)}),l=i(!1)},indices(h){const p=new Set(h.detail.indices);for(const v of h.target.options)v.selected=p.has(v.index);t.setValue(n,{value:i(!0)}),l=i(!1)},editable(h){h.target.disabled=!h.detail.editable}};this._dispatchEventFromSandbox(d,u)}),a.addEventListener("input",u=>{var p;const d=i(!0),h=i(!1);t.setValue(n,{value:d}),u.preventDefault(),(p=this.linkService.eventBus)==null||p.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:l,change:h,changeEx:d,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(a,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],u=>u.target.value)):a.addEventListener("input",function(u){t.setValue(n,{value:i(!0)})}),this.data.combo&&this._setTextStyle(a),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class ww extends vs{constructor(t){const{data:n,elements:s}=t;super(t,{isRenderable:vs._hasPopupData(n)}),this.elements=s,this.popup=null}render(){this.container.classList.add("popupAnnotation");const t=this.popup=new k4e({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),n=[];for(const s of this.elements)s.popup=t,s.container.ariaHasPopup="dialog",n.push(s.data.id),s.addHighlightArea();return this.container.setAttribute("aria-controls",n.map(s=>`${ew}${s}`).join(",")),this.container}}class k4e{constructor({container:t,color:n,elements:s,titleObj:a,modificationDate:o,contentsObj:r,richText:i,parent:l,rect:c,parentRect:u,open:d}){ne(this,Vn);ne(this,qh,oe(this,Vn,YR).bind(this));ne(this,Rb,oe(this,Vn,f_).bind(this));ne(this,Ib,oe(this,Vn,t4).bind(this));ne(this,Gh,oe(this,Vn,e4).bind(this));ne(this,Pd,null);ne(this,ps,null);ne(this,Rl,null);ne(this,Yh,null);ne(this,xm,null);ne(this,km,null);ne(this,Xh,null);ne(this,Il,!1);ne(this,Rr,null);ne(this,Ol,null);ne(this,Em,null);ne(this,Ll,null);ne(this,Am,null);ne(this,Rd,null);ne(this,Id,!1);var h;G(this,ps,t),G(this,Am,a),G(this,Rl,r),G(this,Ll,i),G(this,km,l),G(this,Pd,n),G(this,Em,c),G(this,Xh,u),G(this,xm,s),G(this,Yh,sw.toDateObject(o)),this.trigger=s.flatMap(p=>p.getElementsToTriggerPopup());for(const p of this.trigger)p.addEventListener("click",y(this,Gh)),p.addEventListener("mouseenter",y(this,Ib)),p.addEventListener("mouseleave",y(this,Rb)),p.classList.add("popupTriggerArea");for(const p of s)(h=p.container)==null||h.addEventListener("keydown",y(this,qh));y(this,ps).hidden=!0,d&&oe(this,Vn,e4).call(this)}render(){if(y(this,Rr))return;const t=G(this,Rr,document.createElement("div"));if(t.className="popup",y(this,Pd)){const o=t.style.outlineColor=zt.makeHexColor(...y(this,Pd));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?t.style.backgroundColor=`color-mix(in srgb, ${o} 30%, white)`:t.style.backgroundColor=zt.makeHexColor(...y(this,Pd).map(i=>Math.floor(.7*(255-i)+i)))}const n=document.createElement("span");n.className="header";const s=document.createElement("h1");if(n.append(s),{dir:s.dir,str:s.textContent}=y(this,Am),t.append(n),y(this,Yh)){const o=document.createElement("span");o.classList.add("popupDate"),o.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),o.setAttribute("data-l10n-args",JSON.stringify({dateObj:y(this,Yh).valueOf()})),n.append(o)}const a=y(this,Vn,Qb);if(a)XP.render({xfaHtml:a,intent:"richText",div:t}),t.lastChild.classList.add("richText","popupContent");else{const o=this._formatContents(y(this,Rl));t.append(o)}y(this,ps).append(t)}_formatContents({str:t,dir:n}){const s=document.createElement("p");s.classList.add("popupContent"),s.dir=n;const a=t.split(/(?:\r\n?|\n)/);for(let o=0,r=a.length;o=0&&r.setAttribute("stroke-width",s||1),a)for(let i=0,l=y(this,Od).length;i{r.key==="Enter"&&(o?r.metaKey:r.ctrlKey)&&oe(this,Nm,p_).call(this)}),!s.popupRef&&this.hasPopupData?this._createPopup():a.classList.add("popupTriggerArea"),n.append(a),n}getElementsToTriggerPopup(){return y(this,Lm)}addHighlightArea(){this.container.classList.add("highlightArea")}}Lm=new WeakMap,Nm=new WeakSet,p_=function(){var n;(n=this.downloadManager)==null||n.openOrDownloadData(this.content,this.filename)};class N4e{constructor({div:t,accessibilityManager:n,annotationCanvasMap:s,annotationEditorUIManager:a,page:o,viewport:r,structTreeLayer:i}){ne(this,$d);ne(this,$m,null);ne(this,Ld,null);ne(this,Nd,new Map);ne(this,Dm,null);this.div=t,G(this,$m,n),G(this,Ld,s),G(this,Dm,i||null),this.page=o,this.viewport=r,this.zIndex=0,this._annotationEditorUIManager=a}hasEditableAnnotations(){return y(this,Nd).size>0}async render(t){var r;const{annotations:n}=t,s=this.div;ju(s,this.viewport);const a=new Map,o={data:null,layer:s,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:t.renderForms!==!1,svgFactory:new yw,annotationStorage:t.annotationStorage||new uw,enableScripting:t.enableScripting===!0,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(const i of n){if(i.noHTML)continue;const l=i.annotationType===Is.POPUP;if(l){const d=a.get(i.id);if(!d)continue;o.elements=d}else{const{width:d,height:h}=xc(i.rect);if(d<=0||h<=0)continue}o.data=i;const c=b4e.create(o);if(!c.isRenderable)continue;if(!l&&i.popupRef){const d=a.get(i.popupRef);d?d.push(c):a.set(i.popupRef,[c])}const u=c.render();i.hidden&&(u.style.visibility="hidden"),await oe(this,$d,JR).call(this,u,i.id),c._isEditable&&(y(this,Nd).set(c.data.id,c),(r=this._annotationEditorUIManager)==null||r.renderAnnotationElement(c))}oe(this,$d,v_).call(this)}update({viewport:t}){const n=this.div;this.viewport=t,ju(n,{rotation:t.rotation}),oe(this,$d,v_).call(this),n.hidden=!1}getEditableAnnotations(){return Array.from(y(this,Nd).values())}getEditableAnnotation(t){return y(this,Nd).get(t)}}$m=new WeakMap,Ld=new WeakMap,Nd=new WeakMap,Dm=new WeakMap,$d=new WeakSet,JR=async function(t,n){var r,i;const s=t.firstChild||t,a=s.id=`${ew}${n}`,o=await((r=y(this,Dm))==null?void 0:r.getAriaAttributes(a));if(o)for(const[l,c]of o)s.setAttribute(l,c);this.div.append(t),(i=y(this,$m))==null||i.moveElementInDOM(this.div,t,s,!1)},v_=function(){if(!y(this,Ld))return;const t=this.div;for(const[n,s]of y(this,Ld)){const a=t.querySelector(`[data-annotation-id="${n}"]`);if(!a)continue;s.className="annotationContent";const{firstChild:o}=a;o?o.nodeName==="CANVAS"?o.replaceWith(s):o.classList.contains("annotationContent")?o.after(s):o.before(s):a.append(s)}y(this,Ld).clear()};const hb=/\r\n?|\n/g,Un=class Un extends is{constructor(n){super({...n,name:"freeTextEditor"});ne(this,ks);ne(this,Ir);ne(this,xo,"");ne(this,Fm,`${this.id}-editor`);ne(this,Dd,null);ne(this,ko);G(this,Ir,n.color||Un._defaultColor||is._defaultLineColor),G(this,ko,n.fontSize||Un._defaultFontSize)}static get _keyboardManager(){const n=Un.prototype,s=r=>r.isEmpty(),a=Ku.TRANSLATE_SMALL,o=Ku.TRANSLATE_BIG;return mn(this,"_keyboardManager",new kv([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],n.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],n.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],n._translateEmpty,{args:[-a,0],checker:s}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],n._translateEmpty,{args:[-o,0],checker:s}],[["ArrowRight","mac+ArrowRight"],n._translateEmpty,{args:[a,0],checker:s}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],n._translateEmpty,{args:[o,0],checker:s}],[["ArrowUp","mac+ArrowUp"],n._translateEmpty,{args:[0,-a],checker:s}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],n._translateEmpty,{args:[0,-o],checker:s}],[["ArrowDown","mac+ArrowDown"],n._translateEmpty,{args:[0,a],checker:s}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],n._translateEmpty,{args:[0,o],checker:s}]]))}static initialize(n,s){is.initialize(n,s);const a=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(a.getPropertyValue("--freetext-padding"))}static updateDefaultParams(n,s){switch(n){case _n.FREETEXT_SIZE:Un._defaultFontSize=s;break;case _n.FREETEXT_COLOR:Un._defaultColor=s;break}}updateParams(n,s){switch(n){case _n.FREETEXT_SIZE:oe(this,ks,ZR).call(this,s);break;case _n.FREETEXT_COLOR:oe(this,ks,QR).call(this,s);break}}static get defaultPropertiesToUpdate(){return[[_n.FREETEXT_SIZE,Un._defaultFontSize],[_n.FREETEXT_COLOR,Un._defaultColor||is._defaultLineColor]]}get propertiesToUpdate(){return[[_n.FREETEXT_SIZE,y(this,ko)],[_n.FREETEXT_COLOR,y(this,Ir)]]}_translateEmpty(n,s){this._uiManager.translateSelectedEditors(n,s,!0)}getInitialTranslation(){const n=this.parentScale;return[-Un._internalPadding*n,-(Un._internalPadding+y(this,ko))*n]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(this.isInEditMode())return;this.parent.setEditingState(!1),this.parent.updateToolbar(dn.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),G(this,Dd,new AbortController);const n=this._uiManager.combinedSignal(y(this,Dd));this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:n}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:n}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:n}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:n}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:n})}disableEditMode(){var n;this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",y(this,Fm)),this._isDraggable=!0,(n=y(this,Dd))==null||n.abort(),G(this,Dd,null),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}focusin(n){this._focusEventsAllowed&&(super.focusin(n),n.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(n){var s;this.width||(this.enableEditMode(),n&&this.editorDiv.focus(),(s=this._initialOptions)!=null&&s.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const n=y(this,xo),s=G(this,xo,oe(this,ks,eI).call(this).trimEnd());if(n===s)return;const a=o=>{if(G(this,xo,o),!o){this.remove();return}oe(this,ks,a4).call(this),this._uiManager.rebuild(this),oe(this,ks,n4).call(this)};this.addCommands({cmd:()=>{a(s)},undo:()=>{a(n)},mustExec:!1}),oe(this,ks,n4).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(n){this.enterInEditMode()}keydown(n){n.target===this.div&&n.key==="Enter"&&(this.enterInEditMode(),n.preventDefault())}editorDivKeydown(n){Un._keyboardManager.exec(this,n)}editorDivFocus(n){this.isEditing=!0}editorDivBlur(n){this.isEditing=!1}editorDivInput(n){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let n,s;this.width&&(n=this.x,s=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",y(this,Fm)),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;const{style:a}=this.editorDiv;if(a.fontSize=`calc(${y(this,ko)}px * var(--scale-factor))`,a.color=y(this,Ir),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),ob(this,this.div,["dblclick","keydown"]),this.width){const[o,r]=this.parentDimensions;if(this.annotationElementId){const{position:i}=this._initialData;let[l,c]=this.getInitialTranslation();[l,c]=this.pageTranslationToScreen(l,c);const[u,d]=this.pageDimensions,[h,p]=this.pageTranslation;let v,m;switch(this.rotation){case 0:v=n+(i[0]-h)/u,m=s+this.height-(i[1]-p)/d;break;case 90:v=n+(i[0]-h)/u,m=s-(i[1]-p)/d,[l,c]=[c,-l];break;case 180:v=n-this.width+(i[0]-h)/u,m=s-(i[1]-p)/d,[l,c]=[-l,-c];break;case 270:v=n+(i[0]-h-this.height*d)/u,m=s+(i[1]-p-this.width*u)/d,[l,c]=[-c,l];break}this.setAt(v*o,m*r,l,c)}else this.setAt(n*o,s*r,this.width*o,this.height*r);oe(this,ks,a4).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}editorDivPaste(n){var v,m,g;const s=n.clipboardData||window.clipboardData,{types:a}=s;if(a.length===1&&a[0]==="text/plain")return;n.preventDefault();const o=oe(v=Un,Nl,m_).call(v,s.getData("text")||"").replaceAll(hb,` `);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(hb,"")),b!==this.editorDiv){let C=u;for(const w of this.editorDiv.childNodes){if(w===b){C=d;continue}C.push(oe(m=Un,Nl,s4).call(m,w))}}u.push(l.nodeValue.slice(0,c).replaceAll(hb,""))}else if(l===this.editorDiv){let b=u,C=0;for(const w of this.editorDiv.childNodes)C++===c&&(b=d),b.push(oe(g=Un,Nl,s4).call(g,w))}G(this,xo,`${u.join(` `)}${o}${d.join(` `)}`),oe(this,ks,a4).call(this);const h=new Range;let p=u.reduce((b,C)=>b+C.length,0);for(const{firstChild:b}of this.editorDiv.childNodes)if(b.nodeType===Node.TEXT_NODE){const C=b.nodeValue.length;if(p<=C){h.setStart(b,p),h.setEnd(b,p);break}p-=C}r.removeAllRanges(),r.addRange(h)}get contentDiv(){return this.editorDiv}static async deserialize(n,s,a){var i;let o=null;if(n instanceof QP){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:dn.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 G(r,ko,n.fontSize),G(r,Ir,zt.makeHexColor(...n.color)),G(r,xo,oe(i=Un,Nl,m_).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=Un._internalPadding*this.parentScale,a=this.getRect(s,s),o=is._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:y(this,Ir)),r={annotationType:dn.FREETEXT,color:o,fontSize:y(this,ko),value:oe(this,ks,tI).call(this),pageIndex:this.pageIndex,rect:a,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?r:this.annotationElementId&&!oe(this,ks,nI).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,ko)}px * var(--scale-factor))`,a.color=y(this,Ir),s.replaceChildren();for(const r of y(this,xo).split(` `)){const i=document.createElement("div");i.append(r?document.createTextNode(r):document.createElement("br")),s.append(i)}const o=Un._internalPadding*this.parentScale;return n.updateEdited({rect:this.getRect(o,o),popupContent:y(this,xo)}),s}resetAnnotationElement(n){super.resetAnnotationElement(n),n.resetEdited()}};Ir=new WeakMap,xo=new WeakMap,Fm=new WeakMap,Dd=new WeakMap,ko=new WeakMap,ks=new WeakSet,ZR=function(n){const s=o=>{this.editorDiv.style.fontSize=`calc(${o}px * var(--scale-factor))`,this.translate(0,-(o-y(this,ko))*this.parentScale),G(this,ko,o),oe(this,ks,n4).call(this)},a=y(this,ko);this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_n.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},QR=function(n){const s=o=>{G(this,Ir,this.editorDiv.style.color=o)},a=y(this,Ir);this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_n.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},eI=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=Un,Nl,s4).call(a,o)),s=o);return n.join(` `)},n4=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,s4=function(n){return(n.nodeType===Node.TEXT_NODE?n.nodeValue:n.innerText).replaceAll(hb,"")},a4=function(){if(this.editorDiv.replaceChildren(),!!y(this,xo))for(const n of y(this,xo).split(` `)){const s=document.createElement("div");s.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(s)}},tI=function(){return y(this,xo).replaceAll(" "," ")},m_=function(n){return n.replaceAll(" "," ")},nI=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},ne(Un,Nl),Ut(Un,"_freeTextDefaultContent",""),Ut(Un,"_internalPadding",0),Ut(Un,"_defaultColor",null),Ut(Un,"_defaultFontSize",10),Ut(Un,"_type","freetext"),Ut(Un,"_editorType",dn.FREETEXT);let Cw=Un;class Lt{toSVGPath(){Hn("Abstract method `toSVGPath` must be implemented.")}get box(){Hn("Abstract getter `box` must be implemented.")}serialize(t,n){Hn("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=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,Ns,aI).call(this,s),s.join(" ")}newFreeDrawOutline(t,n,s,a,o,r){return new sR(t,n,s,a,o,r)}getOutlines(){var d;const t=y(this,Si),n=y(this,Or),s=y(this,gn),[a,o,r,i]=y(this,Eo),l=new Float32Array((((d=y(this,Kc))==null?void 0:d.length)??0)+2);for(let h=0,p=l.length-2;h=6;h-=6)for(let p=0;p<6;p+=2){if(isNaN(n[h+p])){c[u]=c[u+1]=NaN,u+=2;continue}c[u]=n[h+p],c[u+1]=n[h+p+1],u+=2}return oe(this,Ns,iI).call(this,c,u),this.newFreeDrawOutline(c,l,y(this,Eo),y(this,Qh),y(this,Jh),y(this,Zh))}};Eo=new WeakMap,Or=new WeakMap,Jh=new WeakMap,Zh=new WeakMap,Si=new WeakMap,gn=new WeakMap,Fd=new WeakMap,Bd=new WeakMap,Bm=new WeakMap,Vm=new WeakMap,Qh=new WeakMap,e0=new WeakMap,Kc=new WeakMap,zm=new WeakMap,Ob=new WeakMap,Lb=new WeakMap,Ns=new WeakSet,g2=function(){const t=y(this,gn).subarray(4,6),n=y(this,gn).subarray(16,18),[s,a,o,r]=y(this,Eo);return[(y(this,Fd)+(t[0]-n[0])/2-s)/o,(y(this,Bd)+(t[1]-n[1])/2-a)/r,(y(this,Fd)+(n[0]-t[0])/2-s)/o,(y(this,Bd)+(n[1]-t[1])/2-a)/r]},sI=function(){const[t,n,s,a]=y(this,Eo),[o,r,i,l]=oe(this,Ns,g2).call(this);return`M${(y(this,gn)[2]-t)/s} ${(y(this,gn)[3]-n)/a} L${(y(this,gn)[4]-t)/s} ${(y(this,gn)[5]-n)/a} L${o} ${r} L${i} ${l} L${(y(this,gn)[16]-t)/s} ${(y(this,gn)[17]-n)/a} L${(y(this,gn)[14]-t)/s} ${(y(this,gn)[15]-n)/a} Z`},aI=function(t){const n=y(this,Or);t.push(`L${n[4]} ${n[5]} Z`)},oI=function(t){const[n,s,a,o]=y(this,Eo),r=y(this,gn).subarray(4,6),i=y(this,gn).subarray(16,18),[l,c,u,d]=oe(this,Ns,g2).call(this);t.push(`L${(r[0]-n)/a} ${(r[1]-s)/o} L${l} ${c} L${u} ${d} L${(i[0]-n)/a} ${(i[1]-s)/o}`)},rI=function(t){const n=y(this,gn),[s,a,o,r]=y(this,Eo),[i,l,c,u]=oe(this,Ns,g2).call(this),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(n[2]-s)/o,(n[3]-a)/r,NaN,NaN,NaN,NaN,(n[4]-s)/o,(n[5]-a)/r,NaN,NaN,NaN,NaN,i,l,NaN,NaN,NaN,NaN,c,u,NaN,NaN,NaN,NaN,(n[16]-s)/o,(n[17]-a)/r,NaN,NaN,NaN,NaN,(n[14]-s)/o,(n[15]-a)/r],0),this.newFreeDrawOutline(d,t,y(this,Eo),y(this,Qh),y(this,Jh),y(this,Zh))},iI=function(t,n){const s=y(this,Or);return t.set([NaN,NaN,NaN,NaN,s[4],s[5]],n),n+=6},lI=function(t,n){const s=y(this,gn).subarray(4,6),a=y(this,gn).subarray(16,18),[o,r,i,l]=y(this,Eo),[c,u,d,h]=oe(this,Ns,g2).call(this);return t.set([NaN,NaN,NaN,NaN,(s[0]-o)/i,(s[1]-r)/l,NaN,NaN,NaN,NaN,c,u,NaN,NaN,NaN,NaN,d,h,NaN,NaN,NaN,NaN,(a[0]-o)/i,(a[1]-r)/l],n),n+=24},ne($l,zm,8),ne($l,Ob,2),ne($l,Lb,y($l,zm)+y($l,Ob));let pb=$l;class sR extends Lt{constructor(n,s,a,o,r,i){super();ne(this,Nb);ne(this,t0);ne(this,Vd,new Float32Array(4));ne(this,Dl);ne(this,Hm);ne(this,Ao);ne(this,Wm);ne(this,gs);G(this,gs,n),G(this,Ao,s),G(this,t0,a),G(this,Wm,o),G(this,Dl,r),G(this,Hm,i),this.lastPoint=[NaN,NaN],oe(this,Nb,cI).call(this,i);const[l,c,u,d]=y(this,Vd);for(let h=0,p=n.length;hn[0]-s[0]||n[1]-s[1]||n[2]-s[2]);const t=[];for(const n of y(this,Uc))n[3]?(t.push(...oe(this,Da,g_).call(this,n)),oe(this,Da,dI).call(this,n)):(oe(this,Da,fI).call(this,n),t.push(...oe(this,Da,g_).call(this,n)));return oe(this,Da,uI).call(this,t)}}jm=new WeakMap,Km=new WeakMap,Uc=new WeakMap,Lr=new WeakMap,Da=new WeakSet,uI=function(t){const n=[],s=new Set;for(const r of t){const[i,l,c]=r;n.push([i,l,r],[i,c,r])}n.sort((r,i)=>r[1]-i[1]||r[0]-i[0]);for(let r=0,i=n.length;r0;){const r=s.values().next().value;let[i,l,c,u,d]=r;s.delete(r);let h=i,p=l;for(o=[i,c],a.push(o);;){let v;if(s.has(u))v=u;else if(s.has(d))v=d;else break;s.delete(v),[i,l,c,u,d]=v,h!==i&&(o.push(h,p,i,p===l?l:c),h=i),p=p===l?c:l}o.push(h,p)}return new $4e(a,y(this,jm),y(this,Km))},o4=function(t){const n=y(this,Lr);let s=0,a=n.length-1;for(;s<=a;){const o=s+a>>1,r=n[o][0];if(r===t)return o;r=0;a--){const[o,r]=y(this,Lr)[a];if(o!==t)break;if(o===t&&r===n){y(this,Lr).splice(a,1);return}}},g_=function(t){const[n,s,a]=t,o=[[n,s,a]],r=oe(this,Da,o4).call(this,a);for(let i=0;i=l){if(p>c)o[u][1]=c;else{if(d===1)return[];o.splice(u,1),u--,d--}continue}o[u][2]=l,p>c&&o.push([n,c,p])}}}return o};class $4e extends Lt{constructor(n,s,a){super();ne(this,Um);ne(this,n0);G(this,n0,n),G(this,Um,s),this.lastPoint=a}toSVGPath(){const n=[];for(const s of y(this,n0)){let[a,o]=s;n.push(`M${a} ${o}`);for(let r=2;r-1?(G(this,Qs,!0),oe(this,cn,r4).call(this,n),oe(this,cn,af).call(this)):y(this,Fl)&&(G(this,r0,n.anchorNode),G(this,Jm,n.anchorOffset),G(this,Zm,n.focusNode),G(this,Qm,n.focusOffset),oe(this,cn,__).call(this),oe(this,cn,af).call(this),this.rotate(this.rotation))}static get _keyboardManager(){const n=Tn.prototype;return mn(this,"_keyboardManager",new kv([[["ArrowLeft","mac+ArrowLeft"],n._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],n._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],n._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],n._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:y(this,Qs)?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:y(this,Xo),methodOfCreation:y(this,e2)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(n){return{numberOfColors:n.get("color").size}}static initialize(n,s){var a;is.initialize(n,s),Tn._defaultColor||(Tn._defaultColor=((a=s.highlightColors)==null?void 0:a.values().next().value)||"#fff066")}static updateDefaultParams(n,s){switch(n){case _n.HIGHLIGHT_DEFAULT_COLOR:Tn._defaultColor=s;break;case _n.HIGHLIGHT_THICKNESS:Tn._defaultThickness=s;break}}translateInPage(n,s){}get toolbarPosition(){return y(this,l0)}updateParams(n,s){switch(n){case _n.HIGHLIGHT_COLOR:oe(this,cn,pI).call(this,s);break;case _n.HIGHLIGHT_THICKNESS:oe(this,cn,vI).call(this,s);break}}static get defaultPropertiesToUpdate(){return[[_n.HIGHLIGHT_DEFAULT_COLOR,Tn._defaultColor],[_n.HIGHLIGHT_THICKNESS,Tn._defaultThickness]]}get propertiesToUpdate(){return[[_n.HIGHLIGHT_COLOR,this.color||Tn._defaultColor],[_n.HIGHLIGHT_THICKNESS,y(this,Xo)||Tn._defaultThickness],[_n.HIGHLIGHT_FREE,y(this,Qs)]]}async addEditToolbar(){const n=await super.addEditToolbar();return n?(this._uiManager.highlightColors&&(G(this,i0,new vb({editor:this})),n.addColorPicker(y(this,i0))),n):null}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(oe(this,cn,b2).call(this))}getBaseTranslation(){return[0,0]}getRect(n,s){return super.getRect(n,s,oe(this,cn,b2).call(this))}onceAdded(n){this.annotationElementId||this.parent.addUndoableEditor(this),n&&this.div.focus()}remove(){oe(this,cn,C_).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(oe(this,cn,af).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(n){var a;let s=!1;this.parent&&!n?oe(this,cn,C_).call(this):n&&(oe(this,cn,af).call(this,n),s=!this.parent&&((a=this.div)==null?void 0:a.classList.contains("selectedEditor"))),super.setParent(n),this.show(this._isVisible),s&&this.select()}rotate(n){var o,r,i;const{drawLayer:s}=this.parent;let a;y(this,Qs)?(n=(n-this.rotation+360)%360,a=oe(o=Tn,Jo,T0).call(o,y(this,Yo).box,n)):a=oe(r=Tn,Jo,T0).call(r,[this.x,this.y,this.width,this.height],n),s.updateProperties(y(this,To),{bbox:a,root:{"data-main-rotation":n}}),s.updateProperties(y(this,_a),{bbox:oe(i=Tn,Jo,T0).call(i,y(this,ao).box,n),root:{"data-main-rotation":n}})}render(){if(this.div)return this.div;const n=super.render();y(this,c0)&&(n.setAttribute("aria-label",y(this,c0)),n.setAttribute("role","mark")),y(this,Qs)?n.classList.add("free"):this.div.addEventListener("keydown",oe(this,cn,gI).bind(this),{signal:this._uiManager._signal});const s=G(this,Wd,document.createElement("div"));n.append(s),s.setAttribute("aria-hidden","true"),s.className="internal",s.style.clipPath=y(this,Hd);const[a,o]=this.parentDimensions;return this.setDims(this.width*a,this.height*o),ob(this,y(this,Wd),["pointerover","pointerleave"]),this.enableEditing(),n}pointerover(){var n;this.isSelected||(n=this.parent)==null||n.drawLayer.updateProperties(y(this,_a),{rootClass:{hovered:!0}})}pointerleave(){var n;this.isSelected||(n=this.parent)==null||n.drawLayer.updateProperties(y(this,_a),{rootClass:{hovered:!1}})}_moveCaret(n){switch(this.parent.unselect(this),n){case 0:case 2:oe(this,cn,i4).call(this,!0);break;case 1:case 3:oe(this,cn,i4).call(this,!1);break}}select(){var n;super.select(),y(this,_a)&&((n=this.parent)==null||n.drawLayer.updateProperties(y(this,_a),{rootClass:{hovered:!1,selected:!0}}))}unselect(){var n;super.unselect(),y(this,_a)&&((n=this.parent)==null||n.drawLayer.updateProperties(y(this,_a),{rootClass:{selected:!1}}),y(this,Qs)||oe(this,cn,i4).call(this,!1))}get _mustFixPosition(){return!y(this,Qs)}show(n=this._isVisible){super.show(n),this.parent&&(this.parent.drawLayer.updateProperties(y(this,To),{rootClass:{hidden:!n}}),this.parent.drawLayer.updateProperties(y(this,_a),{rootClass:{hidden:!n}}))}static startHighlighting(n,s,{target:a,x:o,y:r}){const{x:i,y:l,width:c,height:u}=a.getBoundingClientRect(),d=new AbortController,h=n.combinedSignal(d),p=v=>{d.abort(),oe(this,Jo,_I).call(this,n,v)};window.addEventListener("blur",p,{signal:h}),window.addEventListener("pointerup",p,{signal:h}),window.addEventListener("pointerdown",go,{capture:!0,passive:!1,signal:h}),window.addEventListener("contextmenu",xr,{signal:h}),a.addEventListener("pointermove",oe(this,Jo,wI).bind(this,n),{signal:h}),this._freeHighlight=new xw({x:o,y:r},[i,l,c,u],n.scale,this._defaultThickness/2,s,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=n.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static async deserialize(n,s,a){var m,g,b,C;let o=null;if(n instanceof tR){const{data:{quadPoints:w,rect:_,rotation:x,id:k,color:T,opacity:I,popupRef:O},parent:{page:{pageNumber:R}}}=n;o=n={annotationType:dn.HIGHLIGHT,color:Array.from(T),opacity:I,quadPoints:w,boxes:null,pageIndex:R-1,rect:_.slice(0),rotation:x,id:k,deleted:!1,popupRef:O}}else if(n instanceof _w){const{data:{inkLists:w,rect:_,rotation:x,id:k,color:T,borderStyle:{rawWidth:I},popupRef:O},parent:{page:{pageNumber:R}}}=n;o=n={annotationType:dn.HIGHLIGHT,color:Array.from(T),thickness:I,inkLists:w,boxes:null,pageIndex:R-1,rect:_.slice(0),rotation:x,id:k,deleted:!1,popupRef:O}}const{color:r,quadPoints:i,inkLists:l,opacity:c}=n,u=await super.deserialize(n,s,a);u.color=zt.makeHexColor(...r),G(u,Bl,c||1),l&&G(u,Xo,n.thickness),u.annotationElementId=n.id||null,u._initialData=o;const[d,h]=u.pageDimensions,[p,v]=u.pageTranslation;if(i){const w=G(u,Fl,[]);for(let _=0;_=0)G(this,To,s),G(this,Hd,a),this.parent.drawLayer.finalizeDraw(s,{bbox:n.box,path:{d:n.toSVGPath()}}),G(this,_a,this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:y(this,ao).box,path:{d:y(this,ao).toSVGPath()}},!0));else if(this.parent){const p=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(y(this,To),{bbox:oe(d=Tn,Jo,T0).call(d,y(this,Yo).box,(p-this.rotation+360)%360),path:{d:n.toSVGPath()}}),this.parent.drawLayer.updateProperties(y(this,_a),{bbox:oe(h=Tn,Jo,T0).call(h,y(this,ao).box,p),path:{d:y(this,ao).toSVGPath()}})}const[r,i,l,c]=n.box;switch(this.rotation){case 0:this.x=r,this.y=i,this.width=l,this.height=c;break;case 90:{const[p,v]=this.parentDimensions;this.x=i,this.y=1-r,this.width=l*v/p,this.height=c*p/v;break}case 180:this.x=1-r,this.y=1-i,this.width=l,this.height=c;break;case 270:{const[p,v]=this.parentDimensions;this.x=1-i,this.y=r,this.width=l*v/p,this.height=c*p/v;break}}const{lastPoint:u}=y(this,ao);G(this,l0,[(u[0]-r)/l,(u[1]-i)/c])},pI=function(n){const s=(r,i)=>{var l,c;this.color=r,G(this,Bl,i),(l=this.parent)==null||l.drawLayer.updateProperties(y(this,To),{root:{fill:r,"fill-opacity":i}}),(c=y(this,i0))==null||c.updateColor(r)},a=this.color,o=y(this,Bl);this.addCommands({cmd:s.bind(this,n,Tn._defaultOpacity),undo:s.bind(this,a,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_n.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(n)},!0)},vI=function(n){const s=y(this,Xo),a=o=>{G(this,Xo,o),oe(this,cn,mI).call(this,o)};this.addCommands({cmd:a.bind(this,n),undo:a.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_n.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:n},!0)},mI=function(n){if(!y(this,Qs))return;oe(this,cn,r4).call(this,{highlightOutlines:y(this,Yo).getNewOutline(n/2)}),this.fixAndSetPosition();const[s,a]=this.parentDimensions;this.setDims(this.width*s,this.height*a)},C_=function(){y(this,To)===null||!this.parent||(this.parent.drawLayer.remove(y(this,To)),G(this,To,null),this.parent.drawLayer.remove(y(this,_a)),G(this,_a,null))},af=function(n=this.parent){y(this,To)===null&&({id:za(this,To)._,clipPathId:za(this,Hd)._}=n.drawLayer.draw({bbox:y(this,Yo).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":y(this,Bl)},rootClass:{highlight:!0,free:y(this,Qs)},path:{d:y(this,Yo).toSVGPath()}},!1,!0),G(this,_a,n.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:y(this,Qs)},bbox:y(this,ao).box,path:{d:y(this,ao).toSVGPath()}},y(this,Qs))),y(this,Wd)&&(y(this,Wd).style.clipPath=y(this,Hd)))},Jo=new WeakSet,T0=function([n,s,a,o],r){switch(r){case 90:return[1-s-o,n,o,a];case 180:return[1-n-a,1-s-o,a,o];case 270:return[s,1-n-a,o,a]}return[n,s,a,o]},gI=function(n){Tn._keyboardManager.exec(this,n)},i4=function(n){if(!y(this,r0))return;const s=window.getSelection();n?s.setPosition(y(this,r0),y(this,Jm)):s.setPosition(y(this,Zm),y(this,Qm))},b2=function(){return y(this,Qs)?this.rotation:0},bI=function(){if(y(this,Qs))return null;const[n,s]=this.pageDimensions,[a,o]=this.pageTranslation,r=y(this,Fl),i=new Float32Array(r.length*8);let l=0;for(const{x:c,y:u,width:d,height:h}of r){const p=c*n+a,v=(1-u)*s+o;i[l]=i[l+4]=p,i[l+1]=i[l+3]=v,i[l+2]=i[l+6]=p+d*n,i[l+5]=i[l+7]=v-h*s,l+=8}return i},yI=function(n){return y(this,Yo).serialize(n,oe(this,cn,b2).call(this))},wI=function(n,s){this._freeHighlight.add(s)&&n.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})},_I=function(n,s){this._freeHighlight.isEmpty()?n.drawLayer.remove(this._freeHighlightId):n.createAndAddNewEditor(s,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},CI=function(n){const{color:s}=this._initialData;return n.color.some((a,o)=>a!==s[o])},ne(Tn,Jo),Ut(Tn,"_defaultColor",null),Ut(Tn,"_defaultOpacity",1),Ut(Tn,"_defaultThickness",12),Ut(Tn,"_type","highlight"),Ut(Tn,"_editorType",dn.HIGHLIGHT),Ut(Tn,"_freeHighlightId",-1),Ut(Tn,"_freeHighlight",null),Ut(Tn,"_freeHighlightClipId","");let mb=Tn;class F4e{constructor(){ne(this,jd,Object.create(null))}updateProperty(t,n){this[t]=n,this.updateSVGProperty(t,n)}updateProperties(t){if(t)for(const[n,s]of Object.entries(t))this.updateProperty(n,s)}updateSVGProperty(t,n){y(this,jd)[t]=n}toSVGProperties(){const t=y(this,jd);return G(this,jd,Object.create(null)),{root:t}}reset(){G(this,jd,Object.create(null))}updateAll(t=this){this.updateProperties(t)}clone(){Hn("Not implemented")}}jd=new WeakMap;const $t=class $t extends is{constructor(n){super(n);ne(this,Sn);ne(this,Mo,null);ne(this,u0);Ut(this,"_drawId",null);G(this,u0,n.mustBeCommitted||!1),n.drawOutlines&&(oe(this,Sn,S_).call(this,n),oe(this,Sn,y2).call(this))}static _mergeSVGProperties(n,s){const a=new Set(Object.keys(n));for(const[o,r]of Object.entries(s))a.has(o)?Object.assign(n[o],r):n[o]=r;return n}static getDefaultDrawingOptions(n){Hn("Not implemented")}static get typesMap(){Hn("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(n,s){const a=this.typesMap.get(n);a&&this._defaultDrawingOptions.updateProperty(a,s),this._currentParent&&(y($t,js).updateProperty(a,s),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(n,s){const a=this.constructor.typesMap.get(n);a&&this._updateProperty(n,a,s)}static get defaultPropertiesToUpdate(){const n=[],s=this._defaultDrawingOptions;for(const[a,o]of this.typesMap)n.push([a,s[o]]);return n}get propertiesToUpdate(){const n=[],{_drawingOptions:s}=this;for(const[a,o]of this.constructor.typesMap)n.push([a,s[o]]);return n}_updateProperty(n,s,a){const o=this._drawingOptions,r=o[s],i=l=>{var u;o.updateProperty(s,l);const c=y(this,Mo).updateProperty(s,l);c&&oe(this,Sn,w2).call(this,c),(u=this.parent)==null||u.drawLayer.updateProperties(this._drawId,o.toSVGProperties())};this.addCommands({cmd:i.bind(this,a),undo:i.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:n,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,$t._mergeSVGProperties(y(this,Mo).getPathResizingSVGProperties(oe(this,Sn,l4).call(this)),{bbox:oe(this,Sn,M0).call(this)}))}_onResized(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,$t._mergeSVGProperties(y(this,Mo).getPathResizedSVGProperties(oe(this,Sn,l4).call(this)),{bbox:oe(this,Sn,M0).call(this)}))}_onTranslating(n,s){var a;(a=this.parent)==null||a.drawLayer.updateProperties(this._drawId,{bbox:oe(this,Sn,M0).call(this,n,s)})}_onTranslated(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,$t._mergeSVGProperties(y(this,Mo).getPathTranslatedSVGProperties(oe(this,Sn,l4).call(this),this.parentDimensions),{bbox:oe(this,Sn,M0).call(this)}))}_onStartDragging(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(n){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,y(this,u0)&&(G(this,u0,!1),this.commit(),this.parent.setSelected(this),n&&this.isOnScreen&&this.div.focus())}remove(){oe(this,Sn,k_).call(this),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(oe(this,Sn,y2).call(this),oe(this,Sn,w2).call(this,y(this,Mo).box),this.isAttachedToDOM||this.parent.add(this)))}setParent(n){var a;let s=!1;this.parent&&!n?(this._uiManager.removeShouldRescale(this),oe(this,Sn,k_).call(this)):n&&(this._uiManager.addShouldRescale(this),oe(this,Sn,y2).call(this,n),s=!this.parent&&((a=this.div)==null?void 0:a.classList.contains("selectedEditor"))),super.setParent(n),s&&this.select()}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,$t._mergeSVGProperties({bbox:oe(this,Sn,M0).call(this)},y(this,Mo).updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&oe(this,Sn,w2).call(this,y(this,Mo).updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;const n=super.render();n.classList.add("draw");const s=document.createElement("div");n.append(s),s.setAttribute("aria-hidden","true"),s.className="internal";const[a,o]=this.parentDimensions;return this.setDims(this.width*a,this.height*o),this._uiManager.addShouldRescale(this),this.disableEditing(),n}static createDrawerInstance(n,s,a,o,r){Hn("Not implemented")}static startDrawing(n,s,a,o){var g;const{target:r,offsetX:i,offsetY:l,pointerId:c,pointerType:u}=o;if(y($t,Yc)&&y($t,Yc)!==u)return;const{viewport:{rotation:d}}=n,{width:h,height:p}=r.getBoundingClientRect(),v=G($t,Kd,new AbortController),m=n.combinedSignal(v);if(y($t,Gc)||G($t,Gc,c),y($t,Yc)??G($t,Yc,u),window.addEventListener("pointerup",b=>{var C;y($t,Gc)===b.pointerId?this._endDraw(b):(C=y($t,Xc))==null||C.delete(b.pointerId)},{signal:m}),window.addEventListener("pointercancel",b=>{var C;y($t,Gc)===b.pointerId?this._currentParent.endDrawingSession():(C=y($t,Xc))==null||C.delete(b.pointerId)},{signal:m}),window.addEventListener("pointerdown",b=>{y($t,Yc)===b.pointerType&&((y($t,Xc)||G($t,Xc,new Set)).add(b.pointerId),y($t,js).isCancellable()&&(y($t,js).removeLastElement(),y($t,js).isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:m}),window.addEventListener("contextmenu",xr,{signal:m}),r.addEventListener("pointermove",this._drawMove.bind(this),{signal:m}),r.addEventListener("touchmove",b=>{b.timeStamp===y($t,qd)&&go(b)},{signal:m}),n.toggleDrawing(),(g=s._editorUndoBar)==null||g.hide(),y($t,js)){n.drawLayer.updateProperties(this._currentDrawId,y($t,js).startNew(i,l,h,p,d));return}s.updateUIForDefaultProperties(this),G($t,js,this.createDrawerInstance(i,l,h,p,d)),G($t,Ud,this.getDefaultDrawingOptions()),this._currentParent=n,{id:this._currentDrawId}=n.drawLayer.draw(this._mergeSVGProperties(y($t,Ud).toSVGProperties(),y($t,js).defaultSVGProperties),!0,!1)}static _drawMove(n){var r;if(G($t,qd,-1),!y($t,js))return;const{offsetX:s,offsetY:a,pointerId:o}=n;if(y($t,Gc)===o){if(((r=y($t,Xc))==null?void 0:r.size)>=1){this._endDraw(n);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,y($t,js).add(s,a)),G($t,qd,n.timeStamp),go(n)}}static _cleanup(n){n&&(this._currentDrawId=-1,this._currentParent=null,G($t,js,null),G($t,Ud,null),G($t,Yc,null),G($t,qd,NaN)),y($t,Kd)&&(y($t,Kd).abort(),G($t,Kd,null),G($t,Gc,NaN),G($t,Xc,null))}static _endDraw(n){const s=this._currentParent;if(s){if(s.toggleDrawing(!0),this._cleanup(!1),n&&s.drawLayer.updateProperties(this._currentDrawId,y($t,js).end(n.offsetX,n.offsetY)),this.supportMultipleDrawings){const a=y($t,js),o=this._currentDrawId,r=a.getLastElement();s.addCommands({cmd:()=>{s.drawLayer.updateProperties(o,a.setLastElement(r))},undo:()=>{s.drawLayer.updateProperties(o,a.removeLastElement())},mustExec:!1,type:_n.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(n){const s=this._currentParent;if(!s)return null;if(s.toggleDrawing(!0),s.cleanUndoStack(_n.DRAW_STEP),!y($t,js).isEmpty()){const{pageDimensions:[a,o],scale:r}=s,i=s.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:y($t,js).getOutlines(a*r,o*r,r,this._INNER_MARGIN),drawingOptions:y($t,Ud),mustBeCommitted:!n});return this._cleanup(!0),i}return s.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(n){}static deserializeDraw(n,s,a,o,r,i){Hn("Not implemented")}static async deserialize(n,s,a){var d,h;const{rawDims:{pageWidth:o,pageHeight:r,pageX:i,pageY:l}}=s.viewport,c=this.deserializeDraw(i,l,o,r,this._INNER_MARGIN,n),u=await super.deserialize(n,s,a);return u.createDrawingOptions(n),oe(d=u,Sn,S_).call(d,{drawOutlines:c}),oe(h=u,Sn,y2).call(h),u.onScaleChanging(),u.rotate(),u}serializeDraw(n){const[s,a]=this.pageTranslation,[o,r]=this.pageDimensions;return y(this,Mo).serialize([s,a,o,r],n)}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}};Mo=new WeakMap,u0=new WeakMap,js=new WeakMap,Kd=new WeakMap,Ud=new WeakMap,Gc=new WeakMap,Yc=new WeakMap,Xc=new WeakMap,qd=new WeakMap,Sn=new WeakSet,S_=function({drawOutlines:n,drawId:s,drawingOptions:a}){G(this,Mo,n),this._drawingOptions||(this._drawingOptions=a),s>=0?(this._drawId=s,this.parent.drawLayer.finalizeDraw(s,n.defaultProperties)):this._drawId=oe(this,Sn,x_).call(this,n,this.parent),oe(this,Sn,w2).call(this,n.box)},x_=function(n,s){const{id:a}=s.drawLayer.draw($t._mergeSVGProperties(this._drawingOptions.toSVGProperties(),n.defaultSVGProperties),!1,!1);return a},k_=function(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())},y2=function(n=this.parent){if(!(this._drawId!==null&&this.parent===n)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,n.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=oe(this,Sn,x_).call(this,y(this,Mo),n)}},SI=function([n,s,a,o]){const{parentDimensions:[r,i],rotation:l}=this;switch(l){case 90:return[s,1-n,a*(i/r),o*(r/i)];case 180:return[1-n,1-s,a,o];case 270:return[1-s,n,a*(i/r),o*(r/i)];default:return[n,s,a,o]}},l4=function(){const{x:n,y:s,width:a,height:o,parentDimensions:[r,i],rotation:l}=this;switch(l){case 90:return[1-s,n,a*(r/i),o*(i/r)];case 180:return[1-n,1-s,a,o];case 270:return[s,1-n,a*(r/i),o*(i/r)];default:return[n,s,a,o]}},w2=function(n){if([this.x,this.y,this.width,this.height]=oe(this,Sn,SI).call(this,n),this.div){this.fixAndSetPosition();const[s,a]=this.parentDimensions;this.setDims(this.width*s,this.height*a)}this._onResized()},M0=function(){const{x:n,y:s,width:a,height:o,rotation:r,parentRotation:i,parentDimensions:[l,c]}=this;switch((r*4+i)/90){case 1:return[1-s-o,n,o,a];case 2:return[1-n-a,1-s-o,a,o];case 3:return[s,1-n-a,o,a];case 4:return[n,s-a*(l/c),o*(c/l),a*(l/c)];case 5:return[1-s,n,a*(l/c),o*(c/l)];case 6:return[1-n-o*(c/l),1-s,o*(c/l),a*(l/c)];case 7:return[s-a*(l/c),1-n-o*(c/l),a*(l/c),o*(c/l)];case 8:return[n-a,s-o,a,o];case 9:return[1-s,n-a,o,a];case 10:return[1-n,1-s,a,o];case 11:return[s-o,1-n,o,a];case 12:return[n-o*(c/l),s,o*(c/l),a*(l/c)];case 13:return[1-s-a*(l/c),n-o*(c/l),a*(l/c),o*(c/l)];case 14:return[1-n,1-s-a*(l/c),o*(c/l),a*(l/c)];case 15:return[s,1-n,a*(l/c),o*(c/l)];default:return[n,s,a,o]}},Ut($t,"_currentDrawId",-1),Ut($t,"_currentParent",null),ne($t,js,null),ne($t,Kd,null),ne($t,Ud,null),ne($t,Gc,NaN),ne($t,Yc,null),ne($t,Xc,null),ne($t,qd,NaN),Ut($t,"_INNER_MARGIN",3);let kw=$t;class B4e{constructor(t,n,s,a,o,r){ne(this,f0);ne(this,xi,new Float64Array(6));ne(this,Ks);ne(this,Us);ne(this,Gd);ne(this,d0);ne(this,Fa);ne(this,ea,"");ne(this,Zo,0);ne(this,Yd,new gb);ne(this,Xd);ne(this,Jd);G(this,Xd,s),G(this,Jd,a),G(this,Gd,o),G(this,d0,r),[t,n]=oe(this,f0,c4).call(this,t,n);const i=G(this,Ks,[NaN,NaN,NaN,NaN,t,n]);G(this,Fa,[t,n]),G(this,Us,[{line:i,points:y(this,Fa)}]),y(this,xi).set(i,0)}updateProperty(t,n){t==="stroke-width"&&G(this,d0,n)}isEmpty(){return!y(this,Us)||y(this,Us).length===0}isCancellable(){return y(this,Fa).length<=10}add(t,n){[t,n]=oe(this,f0,c4).call(this,t,n);const[s,a,o,r]=y(this,xi).subarray(2,6),i=t-o,l=n-r;return Math.hypot(y(this,Xd)*i,y(this,Jd)*l)<=2?null:(y(this,Fa).push(t,n),isNaN(s)?(y(this,xi).set([o,r,t,n],2),y(this,Ks).push(NaN,NaN,NaN,NaN,t,n),{path:{d:this.toSVGPath()}}):(isNaN(y(this,xi)[0])&&y(this,Ks).splice(6,6),y(this,xi).set([s,a,o,r,t,n],0),y(this,Ks).push(...Lt.createBezierPoints(s,a,o,r,t,n)),{path:{d:this.toSVGPath()}}))}end(t,n){const s=this.add(t,n);return s||(y(this,Fa).length===2?{path:{d:this.toSVGPath()}}:null)}startNew(t,n,s,a,o){G(this,Xd,s),G(this,Jd,a),G(this,Gd,o),[t,n]=oe(this,f0,c4).call(this,t,n);const r=G(this,Ks,[NaN,NaN,NaN,NaN,t,n]);G(this,Fa,[t,n]);const i=y(this,Us).at(-1);return i&&(i.line=new Float32Array(i.line),i.points=new Float32Array(i.points)),y(this,Us).push({line:r,points:y(this,Fa)}),y(this,xi).set(r,0),G(this,Zo,0),this.toSVGPath(),null}getLastElement(){return y(this,Us).at(-1)}setLastElement(t){return y(this,Us)?(y(this,Us).push(t),G(this,Ks,t.line),G(this,Fa,t.points),G(this,Zo,0),{path:{d:this.toSVGPath()}}):y(this,Yd).setLastElement(t)}removeLastElement(){if(!y(this,Us))return y(this,Yd).removeLastElement();y(this,Us).pop(),G(this,ea,"");for(let t=0,n=y(this,Us).length;t_??NaN),h,p,v,m),points:g(l[C].map(_=>_??NaN),h,p,v,m)});const b=new Nw;return b.build(d,a,o,1,c,u,r),b}get box(){return y(this,Ba)}updateProperty(n,s){return n==="stroke-width"?oe(this,ta,EI).call(this,s):null}updateParentDimensions([n,s],a){const[o,r]=oe(this,ta,ql).call(this);G(this,ki,n),G(this,Ei,s),G(this,h0,a);const[i,l]=oe(this,ta,ql).call(this),c=i-o,u=l-r,d=y(this,Ba);return d[0]-=c,d[1]-=u,d[2]+=2*c,d[3]+=2*u,d}updateRotation(n){return G(this,t2,n),{path:{transform:this.rotationTransform}}}get viewBox(){return y(this,Ba).map(Lt.svgRound).join(" ")}get defaultProperties(){const[n,s]=y(this,Ba);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Lt.svgRound(n)} ${Lt.svgRound(s)}`}}}get rotationTransform(){const[,,n,s]=y(this,Ba);let a=0,o=0,r=0,i=0,l=0,c=0;switch(y(this,t2)){case 90:o=s/n,r=-n/s,l=n;break;case 180:a=-1,i=-1,l=n,c=s;break;case 270:o=-s/n,r=n/s,c=s;break;default:return""}return`matrix(${a} ${o} ${r} ${i} ${Lt.svgRound(l)} ${Lt.svgRound(c)})`}getPathResizingSVGProperties([n,s,a,o]){const[r,i]=oe(this,ta,ql).call(this),[l,c,u,d]=y(this,Ba);if(Math.abs(u-r)<=Lt.PRECISION||Math.abs(d-i)<=Lt.PRECISION){const g=n+a/2-(l+u/2),b=s+o/2-(c+d/2);return{path:{"transform-origin":`${Lt.svgRound(n)} ${Lt.svgRound(s)}`,transform:`${this.rotationTransform} translate(${g} ${b})`}}}const h=(a-2*r)/(u-2*r),p=(o-2*i)/(d-2*i),v=u/a,m=d/o;return{path:{"transform-origin":`${Lt.svgRound(l)} ${Lt.svgRound(c)}`,transform:`${this.rotationTransform} scale(${v} ${m}) translate(${Lt.svgRound(r)} ${Lt.svgRound(i)}) scale(${h} ${p}) translate(${Lt.svgRound(-r)} ${Lt.svgRound(-i)})`}}}getPathResizedSVGProperties([n,s,a,o]){const[r,i]=oe(this,ta,ql).call(this),l=y(this,Ba),[c,u,d,h]=l;if(l[0]=n,l[1]=s,l[2]=a,l[3]=o,Math.abs(d-r)<=Lt.PRECISION||Math.abs(h-i)<=Lt.PRECISION){const b=n+a/2-(c+d/2),C=s+o/2-(u+h/2);for(const{line:w,points:_}of y(this,Po))Lt._translate(w,b,C,w),Lt._translate(_,b,C,_);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Lt.svgRound(n)} ${Lt.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const p=(a-2*r)/(d-2*r),v=(o-2*i)/(h-2*i),m=-p*(c+r)+n+r,g=-v*(u+i)+s+i;if(p!==1||v!==1||m!==0||g!==0)for(const{line:b,points:C}of y(this,Po))Lt._rescale(b,m,g,p,v,b),Lt._rescale(C,m,g,p,v,C);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Lt.svgRound(n)} ${Lt.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([n,s],a){const[o,r]=a,i=y(this,Ba),l=n-i[0],c=s-i[1];if(y(this,ki)===o&&y(this,Ei)===r)for(const{line:u,points:d}of y(this,Po))Lt._translate(u,l,c,u),Lt._translate(d,l,c,d);else{const u=y(this,ki)/o,d=y(this,Ei)/r;G(this,ki,o),G(this,Ei,r);for(const{line:h,points:p}of y(this,Po))Lt._rescale(h,l,c,u,d,h),Lt._rescale(p,l,c,u,d,p);i[2]*=u,i[3]*=d}return i[0]=n,i[1]=s,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${Lt.svgRound(n)} ${Lt.svgRound(s)}`}}}get defaultSVGProperties(){const n=y(this,Ba);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${Lt.svgRound(n[0])} ${Lt.svgRound(n[1])}`,transform:this.rotationTransform||null},bbox:n}}};Ba=new WeakMap,t2=new WeakMap,n2=new WeakMap,Po=new WeakMap,ki=new WeakMap,Ei=new WeakMap,h0=new WeakMap,p0=new WeakMap,v0=new WeakMap,ta=new WeakSet,ql=function(n=y(this,v0)){const s=y(this,n2)+n/2*y(this,h0);return y(this,p0)%180===0?[s/y(this,ki),s/y(this,Ei)]:[s/y(this,Ei),s/y(this,ki)]},xI=function(){const[n,s,a,o]=y(this,Ba),[r,i]=oe(this,ta,ql).call(this,0);return[n+r,s+i,a-2*r,o-2*i]},kI=function(){const n=G(this,Ba,new Float32Array([1/0,1/0,-1/0,-1/0]));for(const{line:o}of y(this,Po)){if(o.length<=12){for(let l=4,c=o.length;li!==s[l])||n.thickness!==a||n.opacity!==o||n.pageIndex!==r},Ut(g0,"_type","ink"),Ut(g0,"_editorType",dn.INK),Ut(g0,"_defaultDrawingOptions",null);let Aw=g0;const s2=class s2 extends is{constructor(n){super({...n,name:"stampEditor"});ne(this,An);ne(this,cs,null);ne(this,na,null);ne(this,Jc,null);ne(this,Vl,null);ne(this,Zc,null);ne(this,b0,"");ne(this,Ai,null);ne(this,Ti,null);ne(this,Ro,!1);ne(this,y0,!1);G(this,Vl,n.bitmapUrl),G(this,Zc,n.bitmapFile)}static initialize(n,s){is.initialize(n,s)}static get supportedTypes(){return mn(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map(s=>`image/${s}`))}static get supportedTypesStr(){return mn(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(n){return this.supportedTypes.includes(n)}static paste(n,s){s.pasteEditor(dn.STAMP,{bitmapFile:n.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var n;return{type:"stamp",hasAltText:!!((n=this.altTextData)!=null&&n.altText)}}static computeTelemetryFinalData(n){const s=n.get("hasAltText");return{hasAltText:s.get(!0)??0,hasNoAltText:s.get(!1)??0}}async mlGuessAltText(n=null,s=!0){if(this.hasAltTextData())return null;const{mlManager:a}=this._uiManager;if(!a)throw new Error("No ML.");if(!await a.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:o,width:r,height:i}=n||this.copyCanvas(null,null,!0).imageData,l=await a.guess({name:"altText",request:{data:o,width:r,height:i,channels:o.length/(r*i)}});if(!l)throw new Error("No response from the AI service.");if(l.error)throw new Error("Error from the AI service.");if(l.cancel)return null;if(!l.output)throw new Error("No valid response from the AI service.");const c=l.output;return await this.setGuessedAltText(c),s&&!this.hasAltTextData()&&(this.altTextData={alt:c,decorative:!1}),c}remove(){var n;y(this,na)&&(G(this,cs,null),this._uiManager.imageManager.deleteId(y(this,na)),(n=y(this,Ai))==null||n.remove(),G(this,Ai,null),y(this,Ti)&&(clearTimeout(y(this,Ti)),G(this,Ti,null))),super.remove()}rebuild(){if(!this.parent){y(this,na)&&oe(this,An,u4).call(this);return}super.rebuild(),this.div!==null&&(y(this,na)&&y(this,Ai)===null&&oe(this,An,u4).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(n){this._isDraggable=!0,n&&this.div.focus()}isEmpty(){return!(y(this,Jc)||y(this,cs)||y(this,Vl)||y(this,Zc)||y(this,na))}get isResizable(){return!0}render(){if(this.div)return this.div;let n,s;if(this.width&&(n=this.x,s=this.y),super.render(),this.div.hidden=!0,this.div.setAttribute("role","figure"),this.addAltTextButton(),y(this,cs)?oe(this,An,E_).call(this):oe(this,An,u4).call(this),this.width&&!this.annotationElementId){const[a,o]=this.parentDimensions;this.setAt(n*a,s*o,this.width*a,this.height*o)}return this._uiManager.addShouldRescale(this),this.div}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;y(this,Ti)!==null&&clearTimeout(y(this,Ti)),G(this,Ti,setTimeout(()=>{G(this,Ti,null),oe(this,An,A_).call(this)},200))}copyCanvas(n,s,a=!1){var p;n||(n=224);const{width:o,height:r}=y(this,cs),i=new ow;let l=y(this,cs),c=o,u=r,d=null;if(s){if(o>s||r>s){const I=Math.min(s/o,s/r);c=Math.floor(o*I),u=Math.floor(r*I)}d=document.createElement("canvas");const v=d.width=Math.ceil(c*i.sx),m=d.height=Math.ceil(u*i.sy);y(this,Ro)||(l=oe(this,An,d4).call(this,v,m));const g=d.getContext("2d");g.filter=this._uiManager.hcmFilter;let b="white",C="#cfcfd8";this._uiManager.hcmFilter!=="none"?C="black":(p=window.matchMedia)!=null&&p.call(window,"(prefers-color-scheme: dark)").matches&&(b="#8f8f9d",C="#42414d");const w=15,_=w*i.sx,x=w*i.sy,k=new OffscreenCanvas(_*2,x*2),T=k.getContext("2d");T.fillStyle=b,T.fillRect(0,0,_*2,x*2),T.fillStyle=C,T.fillRect(0,0,_,x),T.fillRect(_,x,_,x),g.fillStyle=g.createPattern(k,"repeat"),g.fillRect(0,0,v,m),g.drawImage(l,0,0,l.width,l.height,0,0,v,m)}let h=null;if(a){let v,m;if(i.symmetric&&l.widthn||r>n){const C=Math.min(n/o,n/r);v=Math.floor(o*C),m=Math.floor(r*C),y(this,Ro)||(l=oe(this,An,d4).call(this,v,m))}const b=new OffscreenCanvas(v,m).getContext("2d",{willReadFrequently:!0});b.drawImage(l,0,0,l.width,l.height,0,0,v,m),h={width:v,height:m,data:b.getImageData(0,0,v,m).data}}return{canvas:d,width:c,height:u,imageData:h}}getImageForAltText(){return y(this,Ai)}static async deserialize(n,s,a){var m;let o=null;if(n instanceof nR){const{data:{rect:g,rotation:b,id:C,structParent:w,popupRef:_},container:x,parent:{page:{pageNumber:k}}}=n,T=x.querySelector("canvas"),I=a.imageManager.getFromCanvas(x.id,T);T.remove();const O=((m=await s._structTree.getAriaAttributes(`${ew}${C}`))==null?void 0:m.get("aria-label"))||"";o=n={annotationType:dn.STAMP,bitmapId:I.id,bitmap:I.bitmap,pageIndex:k-1,rect:g.slice(0),rotation:b,id:C,deleted:!1,accessibilityData:{decorative:!1,altText:O},isSvg:!1,structParent:w,popupRef:_}}const r=await super.deserialize(n,s,a),{rect:i,bitmap:l,bitmapUrl:c,bitmapId:u,isSvg:d,accessibilityData:h}=n;u&&a.imageManager.isValidId(u)?(G(r,na,u),l&&G(r,cs,l)):G(r,Vl,c),G(r,Ro,d);const[p,v]=r.pageDimensions;return r.width=(i[2]-i[0])/p,r.height=(i[3]-i[1])/v,r.annotationElementId=n.id||null,h&&(r.altTextData=h),r._initialData=o,G(r,y0,!!o),r}serialize(n=!1,s=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const a={annotationType:dn.STAMP,bitmapId:y(this,na),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:y(this,Ro),structTreeParentId:this._structTreeParentId};if(n)return a.bitmapUrl=oe(this,An,f4).call(this,!0),a.accessibilityData=this.serializeAltText(!0),a;const{decorative:o,altText:r}=this.serializeAltText(!1);if(!o&&r&&(a.accessibilityData={type:"Figure",alt:r}),this.annotationElementId){const l=oe(this,An,TI).call(this,a);if(l.isSame)return null;l.isSameAltText?delete a.accessibilityData:a.accessibilityData.structParent=this._initialData.structParent??-1}if(a.id=this.annotationElementId,s===null)return a;s.stamps||(s.stamps=new Map);const i=y(this,Ro)?(a.rect[2]-a.rect[0])*(a.rect[3]-a.rect[1]):null;if(!s.stamps.has(y(this,na)))s.stamps.set(y(this,na),{area:i,serialized:a}),a.bitmap=oe(this,An,f4).call(this,!1);else if(y(this,Ro)){const l=s.stamps.get(y(this,na));i>l.area&&(l.area=i,l.serialized.bitmap.close(),l.serialized.bitmap=oe(this,An,f4).call(this,!1))}return a}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}};cs=new WeakMap,na=new WeakMap,Jc=new WeakMap,Vl=new WeakMap,Zc=new WeakMap,b0=new WeakMap,Ai=new WeakMap,Ti=new WeakMap,Ro=new WeakMap,y0=new WeakMap,An=new WeakSet,_2=function(n,s=!1){if(!n){this.remove();return}G(this,cs,n.bitmap),s||(G(this,na,n.id),G(this,Ro,n.isSvg)),n.file&&G(this,b0,n.file.name),oe(this,An,E_).call(this)},C2=function(){if(G(this,Jc,null),this._uiManager.enableWaiting(!1),!!y(this,Ai)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&y(this,cs)){this._editToolbar.hide(),this._uiManager.editAltText(this,!0);return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&y(this,cs)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},u4=function(){if(y(this,na)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(y(this,na)).then(a=>oe(this,An,_2).call(this,a,!0)).finally(()=>oe(this,An,C2).call(this));return}if(y(this,Vl)){const a=y(this,Vl);G(this,Vl,null),this._uiManager.enableWaiting(!0),G(this,Jc,this._uiManager.imageManager.getFromUrl(a).then(o=>oe(this,An,_2).call(this,o)).finally(()=>oe(this,An,C2).call(this)));return}if(y(this,Zc)){const a=y(this,Zc);G(this,Zc,null),this._uiManager.enableWaiting(!0),G(this,Jc,this._uiManager.imageManager.getFromFile(a).then(o=>oe(this,An,_2).call(this,o)).finally(()=>oe(this,An,C2).call(this)));return}const n=document.createElement("input");n.type="file",n.accept=s2.supportedTypesStr;const s=this._uiManager._signal;G(this,Jc,new Promise(a=>{n.addEventListener("change",async()=>{if(!n.files||n.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const o=await this._uiManager.imageManager.getFromFile(n.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),oe(this,An,_2).call(this,o)}a()},{signal:s}),n.addEventListener("cancel",()=>{this.remove(),a()},{signal:s})}).finally(()=>oe(this,An,C2).call(this))),n.click()},E_=function(){var d;const{div:n}=this;let{width:s,height:a}=y(this,cs);const[o,r]=this.pageDimensions,i=.75;if(this.width)s=this.width*o,a=this.height*r;else if(s>i*o||a>i*r){const h=Math.min(i*o/s,i*r/a);s*=h,a*=h}const[l,c]=this.parentDimensions;this.setDims(s*l/o,a*c/r),this._uiManager.enableWaiting(!1);const u=G(this,Ai,document.createElement("canvas"));u.setAttribute("role","img"),this.addContainer(u),this.width=s/o,this.height=a/r,(d=this._initialOptions)!=null&&d.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(n.hidden=!1),oe(this,An,A_).call(this),y(this,y0)||(this.parent.addUndoableEditor(this),G(this,y0,!0)),this._reportTelemetry({action:"inserted_image"}),y(this,b0)&&u.setAttribute("aria-label",y(this,b0))},d4=function(n,s){const{width:a,height:o}=y(this,cs);let r=a,i=o,l=y(this,cs);for(;r>2*n||i>2*s;){const c=r,u=i;r>2*n&&(r=r>=16384?Math.floor(r/2)-1:Math.ceil(r/2)),i>2*s&&(i=i>=16384?Math.floor(i/2)-1:Math.ceil(i/2));const d=new OffscreenCanvas(r,i);d.getContext("2d").drawImage(l,0,0,c,u,0,0,r,i),l=d.transferToImageBitmap()}return l},A_=function(){const[n,s]=this.parentDimensions,{width:a,height:o}=this,r=new ow,i=Math.ceil(a*n*r.sx),l=Math.ceil(o*s*r.sy),c=y(this,Ai);if(!c||c.width===i&&c.height===l)return;c.width=i,c.height=l;const u=y(this,Ro)?y(this,cs):oe(this,An,d4).call(this,i,l),d=c.getContext("2d");d.filter=this._uiManager.hcmFilter,d.drawImage(u,0,0,u.width,u.height,0,0,i,l)},f4=function(n){if(n){if(y(this,Ro)){const o=this._uiManager.imageManager.getSvgUrl(y(this,na));if(o)return o}const s=document.createElement("canvas");return{width:s.width,height:s.height}=y(this,cs),s.getContext("2d").drawImage(y(this,cs),0,0),s.toDataURL()}if(y(this,Ro)){const[s,a]=this.pageDimensions,o=Math.round(this.width*s*Sc.PDF_TO_CSS_UNITS),r=Math.round(this.height*a*Sc.PDF_TO_CSS_UNITS),i=new OffscreenCanvas(o,r);return i.getContext("2d").drawImage(y(this,cs),0,0,y(this,cs).width,y(this,cs).height,0,0,o,r),i.transferToImageBitmap()}return structuredClone(y(this,cs))},TI=function(n){var i;const{pageIndex:s,accessibilityData:{altText:a}}=this._initialData,o=n.pageIndex===s,r=(((i=n.accessibilityData)==null?void 0:i.alt)||"")===a;return{isSame:!this._hasBeenMoved&&!this._hasBeenResized&&o&&r,isSameAltText:r}},Ut(s2,"_type","stamp"),Ut(s2,"_editorType",dn.STAMP);let Tw=s2;const Fr=class Fr{constructor({uiManager:t,pageIndex:n,div:s,structTreeLayer:a,accessibilityManager:o,annotationLayer:r,drawLayer:i,textLayer:l,viewport:c,l10n:u}){ne(this,as);ne(this,Zd);ne(this,w0,!1);ne(this,Mi,null);ne(this,Qc,null);ne(this,zl,null);ne(this,Qo,new Map);ne(this,eu,!1);ne(this,_0,!1);ne(this,Qd,!1);ne(this,Dr,null);ne(this,Hl,null);ne(this,Ca,null);ne(this,Wl,null);ne(this,Vt);const d=[...y(Fr,tu).values()];if(!Fr._initialized){Fr._initialized=!0;for(const h of d)h.initialize(u,t)}t.registerEditorTypes(d),G(this,Vt,t),this.pageIndex=n,this.div=s,G(this,Zd,o),G(this,Mi,r),this.viewport=c,G(this,Ca,l),this.drawLayer=i,this._structTree=a,y(this,Vt).addLayer(this)}get isEmpty(){return y(this,Qo).size===0}get isInvisible(){return this.isEmpty&&y(this,Vt).getMode()===dn.NONE}updateToolbar(t){y(this,Vt).updateToolbar(t)}updateMode(t=y(this,Vt).getMode()){switch(oe(this,as,h4).call(this),t){case dn.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case dn.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case dn.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:n}=this.div;for(const s of y(Fr,tu).values())n.toggle(`${s._type}Editing`,t===s._editorType);this.div.hidden=!1}hasTextLayer(t){var n;return t===((n=y(this,Ca))==null?void 0:n.div)}setEditingState(t){y(this,Vt).setEditingState(t)}addCommands(t){y(this,Vt).addCommands(t)}cleanUndoStack(t){y(this,Vt).cleanUndoStack(t)}toggleDrawing(t=!1){this.div.classList.toggle("drawing",!t)}togglePointerEvents(t=!1){this.div.classList.toggle("disabled",!t)}toggleAnnotationLayerPointerEvents(t=!1){var n;(n=y(this,Mi))==null||n.div.classList.toggle("disabled",!t)}async enable(){G(this,Qd,!0),this.div.tabIndex=0,this.togglePointerEvents(!0);const t=new Set;for(const s of y(this,Qo).values())s.enableEditing(),s.show(!0),s.annotationElementId&&(y(this,Vt).removeChangedExistingAnnotation(s),t.add(s.annotationElementId));if(!y(this,Mi)){G(this,Qd,!1);return}const n=y(this,Mi).getEditableAnnotations();for(const s of n){if(s.hide(),y(this,Vt).isDeletedAnnotationElement(s.data.id)||t.has(s.data.id))continue;const a=await this.deserialize(s);a&&(this.addOrRebuild(a),a.enableEditing())}G(this,Qd,!1)}disable(){var a;G(this,_0,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1);const t=new Map,n=new Map;for(const o of y(this,Qo).values())if(o.disableEditing(),!!o.annotationElementId){if(o.serialize()!==null){t.set(o.annotationElementId,o);continue}else n.set(o.annotationElementId,o);(a=this.getEditableAnnotation(o.annotationElementId))==null||a.show(),o.remove()}if(y(this,Mi)){const o=y(this,Mi).getEditableAnnotations();for(const r of o){const{id:i}=r.data;if(y(this,Vt).isDeletedAnnotationElement(i))continue;let l=n.get(i);if(l){l.resetAnnotationElement(r),l.show(!1),r.show();continue}l=t.get(i),l&&(y(this,Vt).addChangedExistingAnnotation(l),l.renderAnnotationElement(r)&&l.show(!1)),r.show()}}oe(this,as,h4).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:s}=this.div;for(const o of y(Fr,tu).values())s.remove(`${o._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),G(this,_0,!1)}getEditableAnnotation(t){var n;return((n=y(this,Mi))==null?void 0:n.getEditableAnnotation(t))||null}setActiveEditor(t){y(this,Vt).getActive()!==t&&y(this,Vt).setActiveEditor(t)}enableTextSelection(){var t;if(this.div.tabIndex=-1,(t=y(this,Ca))!=null&&t.div&&!y(this,Wl)){G(this,Wl,new AbortController);const n=y(this,Vt).combinedSignal(y(this,Wl));y(this,Ca).div.addEventListener("pointerdown",oe(this,as,MI).bind(this),{signal:n}),y(this,Ca).div.classList.add("highlighting")}}disableTextSelection(){var t;this.div.tabIndex=0,(t=y(this,Ca))!=null&&t.div&&y(this,Wl)&&(y(this,Wl).abort(),G(this,Wl,null),y(this,Ca).div.classList.remove("highlighting"))}enableClick(){if(y(this,Qc))return;G(this,Qc,new AbortController);const t=y(this,Vt).combinedSignal(y(this,Qc));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:t});const n=this.pointerup.bind(this);this.div.addEventListener("pointerup",n,{signal:t}),this.div.addEventListener("pointercancel",n,{signal:t})}disableClick(){var t;(t=y(this,Qc))==null||t.abort(),G(this,Qc,null)}attach(t){y(this,Qo).set(t.id,t);const{annotationElementId:n}=t;n&&y(this,Vt).isDeletedAnnotationElement(n)&&y(this,Vt).removeDeletedAnnotationElement(t)}detach(t){var n;y(this,Qo).delete(t.id),(n=y(this,Zd))==null||n.removePointerInTextLayer(t.contentDiv),!y(this,_0)&&t.annotationElementId&&y(this,Vt).addDeletedAnnotationElement(t)}remove(t){this.detach(t),y(this,Vt).removeEditor(t),t.div.remove(),t.isAttachedToDOM=!1}changeParent(t){var n;t.parent!==this&&(t.parent&&t.annotationElementId&&(y(this,Vt).addDeletedAnnotationElement(t.annotationElementId),is.deleteAnnotationElement(t),t.annotationElementId=null),this.attach(t),(n=t.parent)==null||n.detach(t),t.setParent(this),t.div&&t.isAttachedToDOM&&(t.div.remove(),this.div.append(t.div)))}add(t){if(!(t.parent===this&&t.isAttachedToDOM)){if(this.changeParent(t),y(this,Vt).addEditor(t),this.attach(t),!t.isAttachedToDOM){const n=t.render();this.div.append(n),t.isAttachedToDOM=!0}t.fixAndSetPosition(),t.onceAdded(!y(this,Qd)),y(this,Vt).addToAnnotationStorage(t),t._reportTelemetry(t.telemetryInitialData)}}moveEditorInDOM(t){var s;if(!t.isAttachedToDOM)return;const{activeElement:n}=document;t.div.contains(n)&&!y(this,zl)&&(t._focusEventsAllowed=!1,G(this,zl,setTimeout(()=>{G(this,zl,null),t.div.contains(document.activeElement)?t._focusEventsAllowed=!0:(t.div.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:y(this,Vt)._signal}),n.focus())},0))),t._structTreeParentId=(s=y(this,Zd))==null?void 0:s.moveElementInDOM(this.div,t.div,t.contentDiv,!0)}addOrRebuild(t){t.needsToBeRebuilt()?(t.parent||(t.parent=this),t.rebuild(),t.show()):this.add(t)}addUndoableEditor(t){const n=()=>t._uiManager.rebuild(t),s=()=>{t.remove()};this.addCommands({cmd:n,undo:s,mustExec:!1})}getNextId(){return y(this,Vt).getId()}combinedSignal(t){return y(this,Vt).combinedSignal(t)}canCreateNewEmptyEditor(){var t;return(t=y(this,as,Oi))==null?void 0:t.canCreateNewEmptyEditor()}pasteEditor(t,n){y(this,Vt).updateToolbar(t),y(this,Vt).updateMode(t);const{offsetX:s,offsetY:a}=oe(this,as,M_).call(this),o=this.getNextId(),r=oe(this,as,T_).call(this,{parent:this,id:o,x:s,y:a,uiManager:y(this,Vt),isCentered:!0,...n});r&&this.add(r)}async deserialize(t){var n;return await((n=y(Fr,tu).get(t.annotationType??t.annotationEditorType))==null?void 0:n.deserialize(t,this,y(this,Vt)))||null}createAndAddNewEditor(t,n,s={}){const a=this.getNextId(),o=oe(this,as,T_).call(this,{parent:this,id:a,x:t.offsetX,y:t.offsetY,uiManager:y(this,Vt),isCentered:n,...s});return o&&this.add(o),o}addNewEditor(){this.createAndAddNewEditor(oe(this,as,M_).call(this),!0)}setSelected(t){y(this,Vt).setSelected(t)}toggleSelected(t){y(this,Vt).toggleSelected(t)}unselect(t){y(this,Vt).unselect(t)}pointerup(t){var s;const{isMac:n}=La.platform;if(!(t.button!==0||t.ctrlKey&&n)&&t.target===this.div&&y(this,eu)&&(G(this,eu,!1),!((s=y(this,as,Oi))!=null&&s.isDrawer&&y(this,as,Oi).supportMultipleDrawings))){if(!y(this,w0)){G(this,w0,!0);return}if(y(this,Vt).getMode()===dn.STAMP){y(this,Vt).unselectAll();return}this.createAndAddNewEditor(t,!1)}}pointerdown(t){var a;if(y(this,Vt).getMode()===dn.HIGHLIGHT&&this.enableTextSelection(),y(this,eu)){G(this,eu,!1);return}const{isMac:n}=La.platform;if(t.button!==0||t.ctrlKey&&n||t.target!==this.div)return;if(G(this,eu,!0),(a=y(this,as,Oi))!=null&&a.isDrawer){this.startDrawingSession(t);return}const s=y(this,Vt).getActive();G(this,w0,!s||s.isEmpty())}startDrawingSession(t){if(this.div.focus(),y(this,Dr)){y(this,as,Oi).startDrawing(this,y(this,Vt),!1,t);return}y(this,Vt).setCurrentDrawingSession(this),G(this,Dr,new AbortController);const n=y(this,Vt).combinedSignal(y(this,Dr));this.div.addEventListener("blur",({relatedTarget:s})=>{s&&!this.div.contains(s)&&(G(this,Hl,null),this.commitOrRemove())},{signal:n}),y(this,as,Oi).startDrawing(this,y(this,Vt),!1,t)}pause(t){if(t){const{activeElement:n}=document;this.div.contains(n)&&G(this,Hl,n);return}y(this,Hl)&&setTimeout(()=>{var n;(n=y(this,Hl))==null||n.focus(),G(this,Hl,null)},0)}endDrawingSession(t=!1){return y(this,Dr)?(y(this,Vt).setCurrentDrawingSession(null),y(this,Dr).abort(),G(this,Dr,null),G(this,Hl,null),y(this,as,Oi).endDrawing(t)):null}findNewParent(t,n,s){const a=y(this,Vt).findParent(n,s);return a===null||a===this?!1:(a.changeParent(t),!0)}commitOrRemove(){return y(this,Dr)?(this.endDrawingSession(),!0):!1}onScaleChanging(){y(this,Dr)&&y(this,as,Oi).onScaleChangingWhenDrawing(this)}destroy(){var t,n;this.commitOrRemove(),((t=y(this,Vt).getActive())==null?void 0:t.parent)===this&&(y(this,Vt).commitOrRemove(),y(this,Vt).setActiveEditor(null)),y(this,zl)&&(clearTimeout(y(this,zl)),G(this,zl,null));for(const s of y(this,Qo).values())(n=y(this,Zd))==null||n.removePointerInTextLayer(s.contentDiv),s.setParent(null),s.isAttachedToDOM=!1,s.div.remove();this.div=null,y(this,Qo).clear(),y(this,Vt).removeLayer(this)}render({viewport:t}){this.viewport=t,ju(this.div,t);for(const n of y(this,Vt).getEditors(this.pageIndex))this.add(n),n.rebuild();this.updateMode()}update({viewport:t}){y(this,Vt).commitOrRemove(),oe(this,as,h4).call(this);const n=this.viewport.rotation,s=t.rotation;if(this.viewport=t,ju(this.div,{rotation:s}),n!==s)for(const a of y(this,Qo).values())a.rotate(s)}get pageDimensions(){const{pageWidth:t,pageHeight:n}=this.viewport.rawDims;return[t,n]}get scale(){return y(this,Vt).viewParameters.realScale}};Zd=new WeakMap,w0=new WeakMap,Mi=new WeakMap,Qc=new WeakMap,zl=new WeakMap,Qo=new WeakMap,eu=new WeakMap,_0=new WeakMap,Qd=new WeakMap,Dr=new WeakMap,Hl=new WeakMap,Ca=new WeakMap,Wl=new WeakMap,Vt=new WeakMap,tu=new WeakMap,as=new WeakSet,MI=function(t){y(this,Vt).unselectAll();const{target:n}=t;if(n===y(this,Ca).div||(n.getAttribute("role")==="img"||n.classList.contains("endOfContent"))&&y(this,Ca).div.contains(n)){const{isMac:s}=La.platform;if(t.button!==0||t.ctrlKey&&s)return;y(this,Vt).showAllEditors("highlight",!0,!0),y(this,Ca).div.classList.add("free"),this.toggleDrawing(),mb.startHighlighting(this,y(this,Vt).direction==="ltr",{target:y(this,Ca).div,x:t.x,y:t.y}),y(this,Ca).div.addEventListener("pointerup",()=>{y(this,Ca).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:y(this,Vt)._signal}),t.preventDefault()}},Oi=function(){return y(Fr,tu).get(y(this,Vt).getMode())},T_=function(t){const n=y(this,as,Oi);return n?new n.prototype.constructor(t):null},M_=function(){const{x:t,y:n,width:s,height:a}=this.div.getBoundingClientRect(),o=Math.max(0,t),r=Math.max(0,n),i=Math.min(window.innerWidth,t+s),l=Math.min(window.innerHeight,n+a),c=(o+i)/2-t,u=(r+l)/2-n,[d,h]=this.viewport.rotation%180===0?[c,u]:[u,c];return{offsetX:d,offsetY:h}},h4=function(){for(const t of y(this,Qo).values())t.isEmpty()&&t.remove()},Ut(Fr,"_initialized",!1),ne(Fr,tu,new Map([Cw,Aw,Tw,mb].map(t=>[t._editorType,t])));let Mw=Fr;const Sa=class Sa{constructor({pageIndex:t}){ne(this,Pi);ne(this,Br,null);ne(this,a2,0);ne(this,Va,new Map);ne(this,ef,new Map);this.pageIndex=t}setParent(t){if(!y(this,Br)){G(this,Br,t);return}if(y(this,Br)!==t){if(y(this,Va).size>0)for(const n of y(this,Va).values())n.remove(),t.append(n);G(this,Br,t)}}static get _svgFactory(){return mn(this,"_svgFactory",new yw)}draw(t,n=!1,s=!1){const a=za(this,a2)._++,o=oe(this,Pi,P_).call(this),r=Sa._svgFactory.createElement("defs");o.append(r);const i=Sa._svgFactory.createElement("path");r.append(i);const l=`path_p${this.pageIndex}_${a}`;i.setAttribute("id",l),i.setAttribute("vector-effect","non-scaling-stroke"),n&&y(this,ef).set(a,i);const c=s?oe(this,Pi,RI).call(this,r,l):null,u=Sa._svgFactory.createElement("use");return o.append(u),u.setAttribute("href",`#${l}`),this.updateProperties(o,t),y(this,Va).set(a,o),{id:a,clipPathId:`url(#${c})`}}drawOutline(t,n){const s=za(this,a2)._++,a=oe(this,Pi,P_).call(this),o=Sa._svgFactory.createElement("defs");a.append(o);const r=Sa._svgFactory.createElement("path");o.append(r);const i=`path_p${this.pageIndex}_${s}`;r.setAttribute("id",i),r.setAttribute("vector-effect","non-scaling-stroke");let l;if(n){const d=Sa._svgFactory.createElement("mask");o.append(d),l=`mask_p${this.pageIndex}_${s}`,d.setAttribute("id",l),d.setAttribute("maskUnits","objectBoundingBox");const h=Sa._svgFactory.createElement("rect");d.append(h),h.setAttribute("width","1"),h.setAttribute("height","1"),h.setAttribute("fill","white");const p=Sa._svgFactory.createElement("use");d.append(p),p.setAttribute("href",`#${i}`),p.setAttribute("stroke","none"),p.setAttribute("fill","black"),p.setAttribute("fill-rule","nonzero"),p.classList.add("mask")}const c=Sa._svgFactory.createElement("use");a.append(c),c.setAttribute("href",`#${i}`),l&&c.setAttribute("mask",`url(#${l})`);const u=c.cloneNode();return a.append(u),c.classList.add("mainOutline"),u.classList.add("secondaryOutline"),this.updateProperties(a,t),y(this,Va).set(s,a),s}finalizeDraw(t,n){y(this,ef).delete(t),this.updateProperties(t,n)}updateProperties(t,n){var l;if(!n)return;const{root:s,bbox:a,rootClass:o,path:r}=n,i=typeof t=="number"?y(this,Va).get(t):t;if(i){if(s&&oe(this,Pi,R_).call(this,i,s),a&&oe(l=Sa,Db,PI).call(l,i,a),o){const{classList:c}=i;for(const[u,d]of Object.entries(o))c.toggle(u,d)}if(r){const u=i.firstChild.firstChild;oe(this,Pi,R_).call(this,u,r)}}}updateParent(t,n){if(n===this)return;const s=y(this,Va).get(t);s&&(y(n,Br).append(s),y(this,Va).delete(t),y(n,Va).set(t,s))}remove(t){y(this,ef).delete(t),y(this,Br)!==null&&(y(this,Va).get(t).remove(),y(this,Va).delete(t))}destroy(){G(this,Br,null);for(const t of y(this,Va).values())t.remove();y(this,Va).clear(),y(this,ef).clear()}};Br=new WeakMap,a2=new WeakMap,Va=new WeakMap,ef=new WeakMap,Db=new WeakSet,PI=function(t,[n,s,a,o]){const{style:r}=t;r.top=`${100*s}%`,r.left=`${100*n}%`,r.width=`${100*a}%`,r.height=`${100*o}%`},Pi=new WeakSet,P_=function(){const t=Sa._svgFactory.create(1,1,!0);return y(this,Br).append(t),t.setAttribute("aria-hidden",!0),t},RI=function(t,n){const s=Sa._svgFactory.createElement("clipPath");t.append(s);const a=`clip_${n}`;s.setAttribute("id",a),s.setAttribute("clipPathUnits","objectBoundingBox");const o=Sa._svgFactory.createElement("use");return s.append(o),o.setAttribute("href",`#${n}`),o.classList.add("clip"),a},R_=function(t,n){for(const[s,a]of Object.entries(n))a===null?t.removeAttribute(s):t.setAttribute(s,a)},ne(Sa,Db);let Pw=Sa;globalThis.pdfjsTestingUtils={HighlightOutliner:Sw},nn.AbortException,nn.AnnotationEditorLayer,nn.AnnotationEditorParamsType,nn.AnnotationEditorType,nn.AnnotationEditorUIManager,nn.AnnotationLayer,nn.AnnotationMode,nn.ColorPicker,nn.DOMSVGFactory,nn.DrawLayer,nn.FeatureTest;var V4e=nn.GlobalWorkerOptions;nn.ImageKind,nn.InvalidPDFException,nn.MissingPDFException,nn.OPS,nn.OutputScale,nn.PDFDataRangeTransport,nn.PDFDateString,nn.PDFWorker,nn.PasswordResponses,nn.PermissionFlag,nn.PixelsPerInch,nn.RenderingCancelledException,nn.TextLayer,nn.TouchManager,nn.UnexpectedResponseException,nn.Util,nn.VerbosityLevel,nn.XfaLayer,nn.build,nn.createValidAbsoluteUrl,nn.fetchData;var z4e=nn.getDocument;nn.getFilenameFromUrl,nn.getPdfFilenameFromUrl,nn.getXfaPageViewport,nn.isDataScheme,nn.isPdfFile,nn.noContextMenu,nn.normalizeUnicode,nn.setLayerDimensions,nn.shadow,nn.stopEvent,nn.version;const H4e=""+new URL("assets/pdf.worker.min-yatZIOMy.mjs",document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href,W4e={class:"manual-wrap"},j4e={class:"sidebar"},K4e={class:"es-text",style:{display:"none"}},U4e={class:"sb-section"},q4e={class:"sb-title"},G4e={key:0,class:"sb-section sb-range-row"},Y4e={class:"range-check"},X4e={class:"range-inline"},J4e=["max","disabled"],Z4e=["min","max"],Q4e={key:1,class:"sb-section"},eye={class:"sb-title"},tye={style:{display:"flex",gap:"6px"}},nye={key:2,class:"sb-section"},sye={class:"mode-inline-row"},aye={class:"sb-title mode-inline-title"},oye={class:"mode-inline-check"},rye={key:3,class:"sb-section"},iye={class:"sb-title"},lye={class:"region-type-btns"},cye=["onClick"],uye={class:"rt-badge"},dye={key:4,class:"sb-section sb-regions"},fye={class:"sb-title"},hye={class:"region-list"},pye=["onClick"],vye={class:"ri-top"},mye={class:"ri-badge"},gye={class:"ri-label"},bye={class:"ri-page"},yye={class:"ri-status"},wye={key:0,class:"ri-tokens"},_ye={key:0,class:"ri-preview"},Cye={key:5,class:"sb-section sb-actions"},Sye={key:0,class:"vl-progress-wrap"},xye={class:"vl-progress-label"},kye={key:0},Eye={key:1,class:"vl-done"},Aye={key:6,class:"sb-section sb-export"},Tye={class:"sb-title"},Mye={style:{display:"flex",gap:"8px"}},Pye={class:"sb-footer"},Rye={class:"viewer"},Iye={key:0,class:"viewer-nav"},Oye={class:"el-button-group"},Lye={class:"nav-label"},Nye={class:"nav-type-indicator"},$ye={class:"el-button-group el-button-group--small"},Dye={class:"zoom-bar"},Fye={class:"zoom-pct"},Bye={key:1,class:"viewer-empty"},Vye={class:"img-inner"},zye={key:0,class:"page-loading"},Hye=["data-mode"],Wye={key:0,class:"result-panel"},jye={class:"rp-header"},Kye={class:"rp-title"},Uye={key:0,class:"rp-tokens"},qye={class:"rp-text"},aR="ocrz_region_presets",Gye=[{path:"/",redirect:"/Manual"},{path:"/Auto",component:V1e},{path:"/Manual",component:cl({__name:"ManualOCR",setup(e){V4e.workerSrc=H4e;const t=lP(),n="http://47.104.102.122:8000";function s(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,me=>{const he=typeof crypto<"u"&&crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1)):null,Re=he?(he[0]&255)%16:Math.random()*16|0;return(me==="x"?Re:Re&3|8).toString(16)})}const a=[{name:"陕化建图纸识别",data:[{type:"A",page:0,xr:.6780016792611251,yr:.0344418052256532,wr:.3140218303946264,hr:.6033254156769596},{type:"B",page:0,xr:.28337531486146095,yr:.7838479809976246,wr:.26448362720403024,hr:.19596199524940616},{type:"C",page:0,xr:.9147774979009236,yr:.8931116389548693,wr:.022670025188916875,hr:.021377672209026127},{type:"C",page:0,xr:.9534005037783375,yr:.8978622327790974,wr:.026028547439126783,hr:.023752969121140142},{type:"C",page:0,xr:.7619647355163728,yr:.7921615201900237,wr:.16960537363560033,hr:.026128266033254157},{type:"D",page:0,xr:.6788413098236776,yr:.6520190023752969,wr:.3089840470193115,hr:.08432304038004751}]}];function o(){const me=JSON.parse(localStorage.getItem(aR)||"[]"),he=[...a];for(const Re of me){const it=he.findIndex(qe=>qe.name===Re.name);it>=0?he[it]=Re:he.push(Re)}return he}const r=F(o()),i=F("");function l(){const me=window.prompt("请输入预设名称:",i.value||"");if(!me||!me.trim())return;const he=me.trim(),Re=M.value.map(qe=>({type:qe.type,page:qe.page,xr:qe.xr,yr:qe.yr,wr:qe.wr,hr:qe.hr,region_code:qe.region_code||""})),it=r.value.findIndex(qe=>qe.name===he);it>=0?r.value[it]={name:he,data:Re}:r.value.push({name:he,data:Re}),localStorage.setItem(aR,JSON.stringify(r.value)),i.value=he,ts.success(`预设「${he}」已保存(${Re.length} 个区域)`)}function c(){const me=r.value.find(ft=>ft.name===i.value);if(!me)return;const he=Array.isArray(me.data)?me.data:[];if(!he.length){ts.warning(`预设「${me.name}」没有可用区域`);return}const Re=[...new Set(he.map(ft=>Number.isFinite(ft.page)?ft.page:0))].sort((ft,ke)=>ft-ke),it=Re.length?Re[0]:0,qe=k.value-it;let lt=[];if(T.value&&x.value>0&&Re.length===1)for(let ft=k.value;ft0?lt=he.map(ft=>({...ft,page:(Number.isFinite(ft.page)?ft.page:0)+qe})).filter(ft=>ft.page>=0&&ft.page({...ft,page:Number.isFinite(ft.page)?ft.page:0}));const vt=new Map,Ft=ft=>{vt.has(ft)||vt.set(ft,new Set);const ke=vt.get(ft);let tt=1;for(;ke.has(`C${tt}`);)tt+=1;const Ne=`C${tt}`;return ke.add(Ne),Ne};M.value=lt.map(ft=>{const ke=Number.isFinite(ft.page)?ft.page:0,tt={...ft,page:ke,id:s(),status:"pending",text:null,tokens:null};return tt.type==="C"&&(tt.region_code?(vt.has(ke)||vt.set(ke,new Set),vt.get(ke).add(tt.region_code)):tt.region_code=Ft(ke)),tt}),B.value=null,ze(()=>ot()),ts.success(`已载入预设「${me.name}」(${M.value.length} 个区域)`)}const u=[{key:"A",label:"材料区域",color:"#2563eb"},{key:"B",label:"图纸信息",color:"#d97706"},{key:"C",label:"其他",color:"#059669"},{key:"D",label:"管长表",color:"#7c3aed"}],d=me=>{var he;return((he=u.find(Re=>Re.key===me))==null?void 0:he.color)??"#6b7280"},h=me=>{var he;return((he=u.find(Re=>Re.key===me))==null?void 0:he.label)??me};function p(me){if(!me)return"";if(me.type!=="C")return me.type;if(me.region_code)return me.region_code;const Re=M.value.filter(it=>it.type==="C").findIndex(it=>it.id===me.id);return Re>=0?`C${Re+1}`:"C"}function v(me){return me?me.type==="C"?`${p(me)} ${h(me.type)}`:h(me.type):""}function m(me){if(me!=="C")return"";const he=new Set(M.value.filter(it=>it.type==="C"&&it.region_code).map(it=>it.region_code));let Re=1;for(;he.has(`C${Re}`);)Re+=1;return`C${Re}`}const g=F("file"),b=F(null),C=F(""),w=F(!1),_=F(""),x=F(0),k=F(0),T=F(!1),I=bn(null),O=F(!1);let R=null;const $=F("A"),M=F([]),B=F(null),U=F(!0),J=F(!1),Y=F(""),L=F(!1),N=F(0),V=F(0),z=F(!0),q=F(1),Q=F(1),K=F(null),ee=F(null),se=F(null),pe=F(null),te=[.25,.5,.75,1,1.25,1.5,2,3],fe=F(1);function ve(){const me=te.find(he=>he>fe.value+.01);me&&(fe.value=me)}function ce(){const me=[...te].reverse().find(he=>heg.value==="file"?!!b.value:C.value.startsWith("http")),We=E(()=>M.value.filter(me=>me.status==="pending").length),nt=E(()=>M.value.filter(me=>me.status==="recognizing").length),dt=E(()=>M.value.filter(me=>me.type==="A"&&me.status==="pending").length),Fe=E(()=>M.value.filter(me=>me.status==="done")),Be=E(()=>M.value.find(me=>me.id===B.value)||null),et=E(()=>N.value>0?Math.round(V.value/N.value*100):0);be([z,k],()=>{z.value&&(q.value=k.value+1)}),be(x,me=>{me>0&&(Q.value=me),z.value&&(q.value=k.value+1)}),be(q,me=>{const he=Q.value;me<1?q.value=1:me>he&&(q.value=he)}),be(Q,me=>{const he=x.value||1;mehe&&(Q.value=he)});function Wt(me,he){if(!Array.isArray(me)||!me.length)return[];const Re=Math.max(0,(he||1)-1);return me.map(it=>{const qe=Number.isFinite(it.page)?Math.min(Math.max(it.page,0),Re):0;return{id:it.id||s(),type:it.type,page:qe,xr:it.xr,yr:it.yr,wr:it.wr,hr:it.hr,status:"pending",text:"",boxes:[],tokens:null,rows:[],parts1:{},b_table_rows:[],d_rows:[]}})}let qt=null;Pt(async()=>{try{const Re=await(await fetch(`${n}/api/manual/engine-info`)).json();H.value=Re.status==="ready"?"ready":"error",ae.value=Re.error||Re.engine||""}catch(he){H.value="error",ae.value=he.message}const me=document.getElementById("hdpdfurl2");if(me&&me.value&&me.value.trim()&&(C.value=me.value.trim(),g.value="url",await gt()),me){let he=me.value;qt=setInterval(async()=>{const Re=me.value?me.value.trim():"";Re&&Re!==he&&(he=Re,C.value=Re,g.value="url",await gt())},2e3)}});async function ct(me){b.value=me.raw,await gt(),pe.value&&pe.value.clearFiles()}async function gt(){w.value=!0;const me=M.value.map(Re=>({id:Re.id,type:Re.type,page:Re.page,xr:Re.xr,yr:Re.yr,wr:Re.wr,hr:Re.hr})),he=B.value;try{let Re,it=null;if(g.value==="file"){it=await b.value.arrayBuffer();const lt=new FormData;lt.append("file",b.value),lt.append("is_shj",U.value?"true":"false"),Re=await fetch(`${n}/api/manual/upload`,{method:"POST",body:lt})}else Re=await fetch(`${n}/api/manual/upload-url`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:C.value.trim(),is_shj:!!U.value})});if(!Re.ok){const lt=await Re.json().catch(()=>({}));throw new Error(lt.detail||`HTTP ${Re.status}`)}const qe=await Re.json();if(_.value&&fetch(`${n}/api/manual/session/${_.value}`,{method:"DELETE"}).catch(()=>{}),_.value=qe.session_id,x.value=qe.total_pages,k.value=0,M.value=Wt(me,qe.total_pages),B.value=M.value.some(lt=>lt.id===he)?he:null,T.value=!0,fe.value=1,!it){const lt=await fetch(`${n}/api/manual/pdf/${qe.session_id}`);if(!lt.ok)throw new Error(`获取 PDF 字节失败 HTTP ${lt.status}`);it=await lt.arrayBuffer()}await xe(it),ts.success(`PDF 加载成功,共 ${qe.total_pages} 页`)}catch(Re){ts.error(`加载失败:${Re.message}`)}finally{w.value=!1}}function Ot(me){me<0||me>=x.value||(k.value=me)}be(k,me=>{rt(),Ue(me)}),be([k,M],async()=>{T.value&&(await ze(),ot())},{deep:!0}),be(De,me=>{me==="draw"&&ee.value&&(ee.value.style.cursor="")}),be(fe,()=>{T.value&&I.value&&Ue(k.value)});async function xe(me){try{const he=z4e({data:me,cMapUrl:"/pdfjs-cmaps/",cMapPacked:!0});I.value=await he.promise,Ue(0)}catch(he){ts.error(`PDF.js 加载失败:${he.message}`)}}async function Ue(me){if(I.value){R&&(R.cancel(),R=null),O.value=!0;try{const he=await I.value.getPage(me+1),Re=window.devicePixelRatio||1,it=he.getViewport({scale:fe.value*Re}),qe=se.value;qe.width=it.width,qe.height=it.height,qe.style.width=it.width/Re+"px",qe.style.height=it.height/Re+"px";const lt=qe.getContext("2d");R=he.render({canvasContext:lt,viewport:it}),await R.promise,R=null,Ye()}catch(he){(he==null?void 0:he.name)!=="RenderingCancelledException"&&ts.error(`页面渲染失败:${he.message}`)}finally{O.value=!1}}}let we=null;function Ye(){const me=se.value,he=ee.value;if(!me||!he)return;const Re=me.offsetWidth,it=me.offsetHeight;Re===0||it===0||((he.width!==Re||he.height!==it)&&(he.width=Re,he.height=it),ot(),we||(we=new ResizeObserver(()=>Ye())),we.disconnect(),we.observe(me))}window.addEventListener("resize",()=>{T.value&&Ye()});function At(me){const he=ee.value.getBoundingClientRect();return{x:me.clientX-he.left,y:me.clientY-he.top}}function Jt(me){$e.value&&(K.value.scrollLeft=Ce.value-me.clientX,K.value.scrollTop=Oe.value-me.clientY)}function Cn(){$e.value&&($e.value=!1,ee.value&&(ee.value.style.cursor=""),window.removeEventListener("mousemove",Jt),window.removeEventListener("mouseup",Cn))}function xn(me){if(!de.value)return;const{x:he,y:Re}=At(me);Se.value=he,Le.value=Re,ot()}function Ve(me){if(!de.value)return;const{x:he,y:Re}=At(me);de.value=!1,window.removeEventListener("mousemove",xn),window.removeEventListener("mouseup",Ve);const it=ee.value,qe=it.width,lt=it.height,vt=Ii=>Math.max(0,Math.min(qe,Ii)),Ft=Ii=>Math.max(0,Math.min(lt,Ii)),ft=vt(he),ke=Ft(Re),tt=vt(ye.value),Ne=Ft(_e.value),St=Math.min(tt,ft),qn=Math.min(Ne,ke),Zn=Math.abs(ft-tt),Ri=Math.abs(ke-Ne);Zn>8&&Ri>8&&M.value.push({id:s(),type:$.value,region_code:m($.value),page:k.value,xr:St/qe,yr:qn/lt,wr:Zn/qe,hr:Ri/lt,cx:St,cy:qn,cw:Zn,ch:Ri,status:"pending",text:"",boxes:[],tokens:null,rows:[],parts1:{},b_table_rows:[],d_rows:[]}),rt(),ot()}function st(me){me.preventDefault();const{x:he,y:Re}=At(me);De.value==="draw"?(de.value=!0,ye.value=he,_e.value=Re,Se.value=he,Le.value=Re,window.addEventListener("mousemove",xn),window.addEventListener("mouseup",Ve)):De.value==="pan"&&($e.value=!0,Ce.value=me.clientX+K.value.scrollLeft,Oe.value=me.clientY+K.value.scrollTop,ee.value.style.cursor="grabbing",window.addEventListener("mousemove",Jt),window.addEventListener("mouseup",Cn))}function _t(me){}function kn(me){}function Zt(){}function rt(){de.value=!1,ye.value=0,_e.value=0,Se.value=0,Le.value=0}function ot(){const me=ee.value;if(!me)return;const he=me.getContext("2d");he.clearRect(0,0,me.width,me.height);const Re=me.width,it=me.height;for(const qe of M.value){if(qe.page!==k.value)continue;const lt=qe.xr*Re,vt=qe.yr*it,Ft=qe.wr*Re,ft=qe.hr*it,ke=d(qe.type),tt=qe.id===B.value;he.strokeStyle=ke,he.lineWidth=tt?3:2,he.setLineDash(qe.status==="pending"?[5,3]:[]),he.strokeRect(lt,vt,Ft,ft),he.fillStyle=ke+"18",he.fillRect(lt,vt,Ft,ft);const Ne=qe.type==="C"?`${p(qe)} ${h(qe.type)}`:`${qe.type} ${h(qe.type)}`;he.font="bold 12px sans-serif";const St=he.measureText(Ne).width+10;he.fillStyle=ke,he.fillRect(lt,vt-18,St,18),he.fillStyle="#fff",he.fillText(Ne,lt+5,vt-4)}if(de.value){const qe=Math.min(ye.value,Se.value),lt=Math.min(_e.value,Le.value),vt=Math.abs(Se.value-ye.value),Ft=Math.abs(Le.value-_e.value),ft=d($.value);he.strokeStyle=ft,he.lineWidth=2,he.setLineDash([4,3]),he.strokeRect(qe,lt,vt,Ft),he.fillStyle=ft+"15",he.fillRect(qe,lt,vt,Ft)}}function Rt(me){B.value=me.id,me.page!==k.value?Ot(me.page):ot()}function Es(me){M.value=M.value.filter(he=>he.id!==me),B.value===me&&(B.value=null),ot()}function sa(){M.value=[],B.value=null,ot()}async function Io(){var vt;const me=M.value.find(Ft=>Ft.type==="A");if(!me)return;M.value.filter(Ft=>Ft.type==="A"&&Ft.status==="pending").forEach(Ft=>{Ft.status="recognizing"});const he=q.value-1,Re=Q.value-1,it=Re-he+1;L.value=!0,N.value=it,V.value=0;const qe=Math.max(800,Math.round(3500*Math.ceil(it/10)/it)),lt=setInterval(()=>{V.value({}));throw new Error(Ne.detail||`HTTP ${Ft.status}`)}const ft=await Ft.json();V.value=N.value;const ke=(vt=ft.usage)!=null&&vt.total_tokens?Math.round(ft.usage.total_tokens/(ft.total_pages||1)):null;for(const Ne of ft.results){let St=M.value.find(Zn=>Zn.type==="A"&&Zn.page===Ne.page_index);St||(St={id:s(),type:"A",page:Ne.page_index,xr:me.xr,yr:me.yr,wr:me.wr,hr:me.hr,cx:me.cx,cy:me.cy,cw:me.cw,ch:me.ch,status:"pending",text:"",boxes:[],tokens:null,rows:[],b_table_rows:[]},M.value.push(St));const qn=Ne.rows||[];St.rows=qn,St.tokens=ke,St.text=qn.length?qn.map(Zn=>[Zn.seq_no??"",Zn.category??"",Zn.description??"",Zn.nominal_dia_mm??"",Zn.qty??""].filter(Ii=>Ii!=="").join(" | ")).join(` `):"(该页无材料明细行)",St.status=Ne._validation_failed?"error":"done"}const tt=ft.results.filter(Ne=>Ne._validation_failed).length;tt>0?ts.warning(`VL 识别完成,${ft.total_pages} 页中 ${tt} 页校验未通过(内容可能为空)`):ts.success(`VL 识别完成,共 ${ft.total_pages} 页`)}catch(Ft){clearInterval(lt),M.value.filter(ft=>ft.type==="A").forEach(ft=>{ft.status==="recognizing"&&(ft.status="error")}),ts.error(`VL 识别失败:${Ft.message}`)}finally{L.value=!1}}function C0(me){return!Array.isArray(me)||!me.length?"":me.map(he=>{const Re=String((he==null?void 0:he.name)||"").trim(),it=String((he==null?void 0:he.value)||"").trim();return!Re&&!it?null:`${Re}: ${it}`}).filter(Boolean).join(` `)}function jl(me){if(!Array.isArray(me))return"";const he=me.find(Re=>{const it=String((Re==null?void 0:Re.name)||"").toLowerCase();return it.includes("pipeline")||it.includes("line")||it.includes("管段")||it.includes("管线")});return String((he==null?void 0:he.value)||"").trim()}function S0(me){return!Array.isArray(me)||!me.length?"":me.map(he=>{const Re=(he==null?void 0:he.group_index)??"",it=(he==null?void 0:he.pos_no)??"",qe=(he==null?void 0:he.length_mm)??"",lt=(he==null?void 0:he.dn)??"";return`组${Re} | ${it} | ${qe} | ${lt}`}).join(` `)}async function Vr(){var it;const me=M.value.find(qe=>qe.type==="B");if(!me)return;M.value.filter(qe=>qe.type==="B"&&qe.status==="pending").forEach(qe=>{qe.status="recognizing"});const he=q.value-1,Re=Q.value-1;try{const qe=await fetch(`${n}/api/manual/ocr-all-pages-vl-b-ru`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:_.value,x_ratio:me.xr,y_ratio:me.yr,w_ratio:me.wr,h_ratio:me.hr,concurrency:5,start_page:he,end_page:Re})});if(!qe.ok){const Ft=await qe.json().catch(()=>({}));throw new Error(Ft.detail||`HTTP ${qe.status}`)}const lt=await qe.json(),vt=(it=lt.usage)!=null&&it.total_tokens?Math.round(lt.usage.total_tokens/(lt.total_pages||1)):null;for(const Ft of lt.results){let ft=M.value.find(tt=>tt.type==="B"&&tt.page===Ft.page_index);ft||(ft={id:s(),type:"B",page:Ft.page_index,xr:me.xr,yr:me.yr,wr:me.wr,hr:me.hr,cx:me.cx,cy:me.cy,cw:me.cw,ch:me.ch,status:"pending",text:"",boxes:[],tokens:null,parts1:{},b_table_rows:[]},M.value.push(ft));const ke=Ft.table_rows||[];ft.b_table_rows=Array.isArray(ke)?ke:[],ft.parts1={},ft.text=C0(ft.b_table_rows),ft.tokens=vt,ft.status=Ft.parse_error||!ft.text?"error":"done"}}catch(qe){M.value.filter(lt=>lt.type==="B"&<.status==="recognizing").forEach(lt=>{lt.status="error"}),ts.error(`管线号 VL 识别失败:${qe.message}`)}}function o2(){var me,he,Re,it,qe;for(const lt of M.value.filter(vt=>vt.type==="B"&&vt.status==="done")){const vt=((he=(me=lt.parts1)==null?void 0:me.pipeline_id)==null?void 0:he.trim())||jl(lt.b_table_rows)||((it=(Re=lt.text)==null?void 0:Re.split(` `)[0])==null?void 0:it.replace(/^管段号[::]\s*/,"").trim())||"";if(!vt)continue;const Ft=M.value.find(ft=>ft.type==="A"&&ft.page===lt.page);(qe=Ft==null?void 0:Ft.rows)!=null&&qe.length&&(Ft.rows=Ft.rows.map(ft=>({...ft,pipe_no:vt})))}}function tf(){var Re;if(!U.value)return 0;const me=M.value.filter(it=>it.type==="C"&&String(p(it)).toUpperCase()==="C3");if(!me.length)return 0;let he=0;for(const it of me){const qe=M.value.find(vt=>vt.type==="A"&&vt.page===it.page),lt=String((it==null?void 0:it.text)||"").trim();lt&&(Re=qe==null?void 0:qe.rows)!=null&&Re.length&&(qe.rows=qe.rows.map(vt=>({...vt,pipe_no:lt})),he+=1)}return he}async function r2(){var qe;const me=[],he=new Set;for(const lt of M.value.filter(vt=>vt.type==="C")){const vt=p(lt);he.has(vt)||(he.add(vt),me.push({code:vt,ref:lt}))}if(!me.length)return;me.sort((lt,vt)=>{const Ft=Number.parseInt(String(lt.code).replace(/^C/i,""),10),ft=Number.parseInt(String(vt.code).replace(/^C/i,""),10);return Number.isFinite(Ft)&&Number.isFinite(ft)?Ft-ft:String(lt.code).localeCompare(String(vt.code))}),M.value.filter(lt=>lt.type==="C"&<.status==="pending").forEach(lt=>{lt.status="recognizing"});const Re=q.value-1,it=Q.value-1;try{for(const lt of me){const vt=lt.ref,Ft=await fetch(`${n}/api/manual/ocr-all-pages-vl-c`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:_.value,x_ratio:vt.xr,y_ratio:vt.yr,w_ratio:vt.wr,h_ratio:vt.hr,concurrency:5,start_page:Re,end_page:it})});if(!Ft.ok){const tt=await Ft.json().catch(()=>({}));throw new Error(tt.detail||`HTTP ${Ft.status}`)}const ft=await Ft.json(),ke=(qe=ft.usage)!=null&&qe.total_tokens?Math.round(ft.usage.total_tokens/(ft.total_pages||1)):null;for(const tt of ft.results){let Ne=M.value.find(St=>St.type==="C"&&St.page===tt.page_index&&(St.region_code||"")===lt.code);Ne||(Ne={id:s(),type:"C",region_code:lt.code,page:tt.page_index,xr:vt.xr,yr:vt.yr,wr:vt.wr,hr:vt.hr,cx:vt.cx,cy:vt.cy,cw:vt.cw,ch:vt.ch,status:"pending",text:"",boxes:[],tokens:null,rows:[],b_table_rows:[]},M.value.push(Ne)),Ne.region_code=lt.code,Ne.status="done",Ne.text=tt.text||"",Ne.tokens=ke,Ne.boxes=[],Ne._validation_failed=tt._validation_failed||!1}}ot()}catch(lt){M.value.filter(vt=>vt.type==="C"&&vt.status==="recognizing").forEach(vt=>{vt.status="error"}),ts.error(`C 区域全页识别失败:${lt.message}`)}}async function i2(){var it;const me=M.value.find(qe=>qe.type==="D");if(!me)return;M.value.filter(qe=>qe.type==="D"&&qe.status==="pending").forEach(qe=>{qe.status="recognizing"});const he=q.value-1,Re=Q.value-1;try{const qe=await fetch(`${n}/api/manual/ocr-all-pages-vl-d`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:_.value,x_ratio:me.xr,y_ratio:me.yr,w_ratio:me.wr,h_ratio:me.hr,concurrency:5,start_page:he,end_page:Re})});if(!qe.ok){const Ft=await qe.json().catch(()=>({}));throw new Error(Ft.detail||`HTTP ${qe.status}`)}const lt=await qe.json(),vt=(it=lt.usage)!=null&&it.total_tokens?Math.round(lt.usage.total_tokens/(lt.total_pages||1)):null;for(const Ft of lt.results){let ft=M.value.find(ke=>ke.type==="D"&&ke.page===Ft.page_index);ft||(ft={id:s(),type:"D",page:Ft.page_index,xr:me.xr,yr:me.yr,wr:me.wr,hr:me.hr,cx:me.cx,cy:me.cy,cw:me.cw,ch:me.ch,status:"pending",text:"",boxes:[],tokens:null,rows:[],b_table_rows:[],d_rows:[]},M.value.push(ft)),ft.status="done",ft.d_rows=Ft.rows||[],ft.text=S0(ft.d_rows),ft.tokens=vt,ft._validation_failed=Ft._validation_failed||!1}ot()}catch(qe){M.value.filter(lt=>lt.type==="D"&<.status==="recognizing").forEach(lt=>{lt.status="error"}),ts.error(`D 区域全页识别失败:${qe.message}`)}}async function l2(){if(M.value.filter(he=>he.status==="pending").length){J.value=!0;try{const he=dt.value>0,Re=M.value.some(ke=>ke.type==="B"),it=M.value.some(ke=>ke.type==="C"),qe=M.value.some(ke=>ke.type==="D");he||(L.value=!1,N.value=0,V.value=0);const lt=[];he&<.push(Io()),Re&<.push(Vr()),it&<.push(r2()),qe&<.push(i2()),lt.length&&await Promise.all(lt),he&&Re&&o2(),tf();const vt=nt.value,Ft=We.value,ft=M.value.filter(ke=>ke.status==="error").length;if(vt>0){ts.warning(`仍有 ${vt} 个区域识别中,暂不标记为全部完成`);return}if(Ft>0){ts.warning(`仍有 ${Ft} 个区域待识别,暂不标记为全部完成`);return}await ze(),await Kl(),ft>0?ts.warning(`识别流程已结束,但有 ${ft} 个区域失败`):ts.success("全部识别完成")}finally{J.value=!1}}}async function Kl(){tf();const me=Fe.value;if(me.length)try{const he=await fetch(`${n}/api/manual/export`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({isSHJ:!!U.value,regions:me.map(qe=>({id:qe.id,region_type:qe.type,region_code:p(qe),page_index:qe.page,text:qe.text,boxes:qe.boxes||[],rows:qe.rows||[],parts1:qe.parts1||{},b_table_rows:qe.b_table_rows||[],d_rows:qe.d_rows||[]})),format:"json"})});if(!he.ok)return;const Re=await he.text(),it=document.getElementById("resultdata");it&&(it.value=Re)}catch{}}async function Pe(me){tf();const he=Fe.value;if(he.length){Y.value=me;try{const Re=await fetch(`${n}/api/manual/export`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({isSHJ:!!U.value,regions:he.map(vt=>({id:vt.id,region_type:vt.type,region_code:p(vt),page_index:vt.page,text:vt.text,boxes:vt.boxes||[],rows:vt.rows||[],parts1:vt.parts1||{},b_table_rows:vt.b_table_rows||[],d_rows:vt.d_rows||[]})),format:me})});if(!Re.ok){const vt=await Re.json().catch(()=>({}));throw new Error(vt.detail||`HTTP ${Re.status}`)}const it=await Re.blob(),qe=URL.createObjectURL(it),lt=document.createElement("a");lt.href=qe,lt.download=me==="excel"?"manual_ocr_result.xlsx":"manual_ocr_result.json",lt.click(),URL.revokeObjectURL(qe),ts.success("导出成功")}catch(Re){ts.error(`导出失败:${Re.message}`)}finally{Y.value=""}}}async function pt(me){try{await navigator.clipboard.writeText(me),ts.success("已复制")}catch{ts.warning("请手动复制")}}return du(()=>{qt&&clearInterval(qt),we&&we.disconnect(),window.removeEventListener("mousemove",xn),window.removeEventListener("mouseup",Ve),window.removeEventListener("mousemove",Jt),window.removeEventListener("mouseup",Cn),_.value&&fetch(`${n}/api/manual/session/${_.value}`,{method:"DELETE"}).catch(()=>{})}),(me,he)=>{const Re=Ge("el-icon"),it=Ge("el-upload"),qe=Ge("el-tab-pane"),lt=Ge("el-input"),vt=Ge("el-tabs"),Ft=Ge("el-option"),ft=Ge("el-select"),ke=Ge("el-tag"),tt=Ge("el-progress");return S(),P("div",W4e,[A("div",j4e,[A("div",{class:D(["engine-badge","es-"+H.value])},[he[25]||(he[25]=A("span",{class:"es-dot"},null,-1)),A("span",K4e,[he[24]||(he[24]=je(" OCR  ",-1)),H.value==="loading"?(S(),P(He,{key:0},[je("引擎加载中…")],64)):H.value==="ready"?(S(),P(He,{key:1},[je("引擎就绪")],64)):(S(),P(He,{key:2},[je("引擎异常")],64))])],2),A("div",U4e,[A("div",q4e,[W(Re,null,{default:X(()=>[W(f(Ag))]),_:1}),he[26]||(he[26]=je(" 加载 PDF ",-1))]),W(vt,{modelValue:g.value,"onUpdate:modelValue":he[2]||(he[2]=Ne=>g.value=Ne),class:"src-tabs",size:"small"},{default:X(()=>[W(qe,{label:"本地文件",name:"file"},{default:X(()=>[W(it,{ref_key:"uploadRef",ref:pe,"auto-upload":!1,accept:".pdf","show-file-list":!1,"on-change":ct},{default:X(()=>[A("div",{class:D(["el-button el-button--small el-button--plain",{"is-loading":w.value&&g.value==="file"}]),style:{width:"100%",cursor:"pointer"}},[w.value&&g.value==="file"?(S(),le(Re,{key:0,class:"is-loading"},{default:X(()=>[W(f(Fs))]),_:1})):(S(),le(Re,{key:1},{default:X(()=>[W(f(h9))]),_:1})),je(" "+ge(b.value?b.value.name:"选择 PDF(自动加载)…"),1)],2)]),_:1},512)]),_:1}),W(qe,{label:"网络 URL",name:"url"},{default:X(()=>[W(lt,{modelValue:C.value,"onUpdate:modelValue":he[0]||(he[0]=Ne=>C.value=Ne),placeholder:"https://…/file.pdf",clearable:"",size:"small"},null,8,["modelValue"]),A("div",{class:D(["el-button el-button--primary el-button--small",{"is-loading":w.value,"is-disabled":!Ie.value}]),style:{width:"100%","margin-top":"6px",cursor:"pointer"},onClick:he[1]||(he[1]=Ne=>!w.value&&Ie.value&>())},[w.value?(S(),le(Re,{key:0,class:"is-loading"},{default:X(()=>[W(f(Fs))]),_:1})):(S(),le(Re,{key:1},{default:X(()=>[W(f(Ky))]),_:1})),he[27]||(he[27]=je(" 加载 / 渲染 ",-1))],2)]),_:1})]),_:1},8,["modelValue"])]),T.value?(S(),P("div",G4e,[A("label",Y4e,[Ct(A("input",{type:"checkbox","onUpdate:modelValue":he[3]||(he[3]=Ne=>z.value=Ne)},null,512),[[og,z.value]]),he[28]||(he[28]=je(" 从当前页开始识别 ",-1))]),A("div",X4e,[Ct(A("input",{type:"number",class:"range-input",min:1,max:Q.value,disabled:z.value,"onUpdate:modelValue":he[4]||(he[4]=Ne=>q.value=Ne)},null,8,J4e),[[ag,q.value,void 0,{number:!0}]]),he[29]||(he[29]=A("span",{class:"range-sep"},"—",-1)),Ct(A("input",{type:"number",class:"range-input",min:q.value,max:x.value||1,"onUpdate:modelValue":he[5]||(he[5]=Ne=>Q.value=Ne)},null,8,Z4e),[[ag,Q.value,void 0,{number:!0}]]),he[30]||(he[30]=A("span",{style:{"font-size":"12px",color:"#6b7280"}},"页",-1))])])):ie("",!0),T.value?(S(),P("div",Q4e,[A("div",eye,[W(Re,null,{default:X(()=>[W(f(qx))]),_:1}),he[31]||(he[31]=je(" 预设区域 ",-1))]),W(ft,{modelValue:i.value,"onUpdate:modelValue":he[6]||(he[6]=Ne=>i.value=Ne),placeholder:"选择预设…",size:"small",clearable:"",style:{width:"100%","margin-bottom":"6px"},onChange:he[7]||(he[7]=Ne=>Ne&&c())},{default:X(()=>[(S(!0),P(He,null,Et(r.value,Ne=>(S(),le(Ft,{key:Ne.name,label:Ne.name,value:Ne.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),A("div",tye,[A("div",{class:D(["el-button el-button--small el-button--plain",{"is-disabled":!i.value}]),style:{flex:"1",cursor:"pointer"},onClick:he[8]||(he[8]=Ne=>i.value&&c())}," 使用预设区域 ",2),A("div",{class:"el-button el-button--small",style:{flex:"1",cursor:"pointer"},onClick:he[9]||(he[9]=Ne=>l())}," 保存设置区域 ")])])):ie("",!0),T.value?(S(),P("div",nye,[A("div",sye,[A("div",aye,[W(Re,null,{default:X(()=>[W(f(f9))]),_:1}),he[32]||(he[32]=je(" 图纸模式 ",-1))]),A("label",oye,[Ct(A("input",{type:"checkbox","onUpdate:modelValue":he[10]||(he[10]=Ne=>U.value=Ne)},null,512),[[og,U.value]]),he[33]||(he[33]=A("span",null,"俄文图纸",-1))])])])):ie("",!0),T.value?(S(),P("div",rye,[A("div",iye,[W(Re,null,{default:X(()=>[W(f(kg))]),_:1}),he[34]||(he[34]=je(" 当前区域类型 ",-1)),he[35]||(he[35]=A("span",{class:"sb-hint"},"拖拽在右侧图像上框选",-1))]),A("div",lye,[(S(),P(He,null,Et(u,Ne=>A("div",{key:Ne.key,class:D(["rt-btn",{active:$.value===Ne.key}]),style:Qe({"--rt-color":Ne.color}),onClick:St=>$.value=Ne.key},[A("span",uye,ge(Ne.key),1),je(" "+ge(Ne.label),1)],14,cye)),64))])])):ie("",!0),M.value.length?(S(),P("div",dye,[A("div",fye,[W(Re,null,{default:X(()=>[W(f(Qx))]),_:1}),je(" 已标注区域 ("+ge(M.value.length)+") ",1),A("div",{class:"el-button el-button--link el-button--danger el-button--small",style:{cursor:"pointer"},onClick:sa},"清空")]),A("div",hye,[(S(!0),P(He,null,Et(M.value,Ne=>(S(),P("div",{key:Ne.id,class:D(["region-item",{active:B.value===Ne.id}]),style:Qe({"--rt-color":d(Ne.type)}),onClick:St=>Rt(Ne)},[A("div",vye,[A("span",mye,ge(p(Ne)),1),A("span",gye,ge(h(Ne.type)),1),A("span",bye,"P"+ge(Ne.page+1),1),W(Re,{class:"ri-del",onClick:ht(St=>Es(Ne.id),["stop"])},{default:X(()=>[W(f(Ua))]),_:1},8,["onClick"])]),A("div",yye,[Ne.status==="pending"?(S(),le(ke,{key:0,size:"small",type:"info"},{default:X(()=>[...he[36]||(he[36]=[je("待识别",-1)])]),_:1})):Ne.status==="recognizing"?(S(),le(ke,{key:1,size:"small",type:"warning"},{default:X(()=>[...he[37]||(he[37]=[je("识别中…",-1)])]),_:1})):Ne.status==="done"?(S(),P(He,{key:2},[W(ke,{size:"small",type:"success"},{default:X(()=>[...he[38]||(he[38]=[je("已完成",-1)])]),_:1}),Ne.tokens?(S(),P("span",wye,ge(Ne.tokens)+"tk",1)):ie("",!0)],64)):Ne.status==="error"?(S(),le(ke,{key:3,size:"small",type:"danger"},{default:X(()=>[...he[39]||(he[39]=[je("失败",-1)])]),_:1})):ie("",!0)]),Ne.text?(S(),P("pre",_ye,ge(Ne.text.slice(0,120))+ge(Ne.text.length>120?"…":""),1)):ie("",!0)],14,pye))),128))])])):ie("",!0),T.value&&M.value.length?(S(),P("div",Cye,[A("div",{class:D(["el-button el-button--primary el-button--small",{"is-loading":J.value||L.value,"is-disabled":We.value===0||L.value}]),style:{width:"100%",cursor:"pointer"},onClick:he[11]||(he[11]=Ne=>!(J.value||L.value)&&We.value>0&&l2())},[J.value||L.value?(S(),le(Re,{key:0,class:"is-loading"},{default:X(()=>[W(f(Fs))]),_:1})):(S(),le(Re,{key:1},{default:X(()=>[W(f(Xx))]),_:1})),je(" 识别所有未处理区域 ("+ge(We.value)+") ",1)],2),W(ws,{name:"vl-fade"},{default:X(()=>[L.value||V.value>0&&V.value===N.value?(S(),P("div",Sye,[A("div",xye,[L.value?(S(),P("span",kye,[he[40]||(he[40]=A("span",{class:"vl-spin"},"⟳",-1)),je(" VL 识别中… "+ge(V.value)+" / "+ge(N.value)+" 页 ",1)])):(S(),P("span",Eye,"✓ 完成 "+ge(N.value)+" 页",1))]),W(tt,{percentage:et.value,striped:L.value,"striped-flow":L.value,duration:8,"stroke-width":6,"show-text":!1,status:L.value?"":"success",style:{"margin-top":"4px"}},null,8,["percentage","striped","striped-flow","status"])])):ie("",!0)]),_:1})])):ie("",!0),Fe.value.length?(S(),P("div",Aye,[A("div",Tye,[W(Re,null,{default:X(()=>[W(f(Qi))]),_:1}),he[41]||(he[41]=je(" 导出结果 ",-1))]),A("div",Mye,[A("div",{class:D(["el-button el-button--small",{"is-loading":Y.value==="excel"}]),style:{flex:"1",cursor:"pointer"},onClick:he[12]||(he[12]=Ne=>Pe("excel"))},[Y.value==="excel"?(S(),le(Re,{key:0,class:"is-loading"},{default:X(()=>[W(f(Fs))]),_:1})):(S(),le(Re,{key:1},{default:X(()=>[W(f(Jx))]),_:1})),he[42]||(he[42]=je(" Excel ",-1))],2),A("div",{class:D(["el-button el-button--small",{"is-loading":Y.value==="json"}]),style:{flex:"1",cursor:"pointer"},onClick:he[13]||(he[13]=Ne=>Pe("json"))},[Y.value==="json"?(S(),le(Re,{key:0,class:"is-loading"},{default:X(()=>[W(f(Fs))]),_:1})):(S(),le(Re,{key:1},{default:X(()=>[W(f(Eg))]),_:1})),he[43]||(he[43]=je(" JSON ",-1))],2)])])):ie("",!0),A("div",Pye,[A("div",{class:"el-button el-button--plain el-button--small",style:{width:"100%",cursor:"pointer"},onClick:he[14]||(he[14]=Ne=>f(t).push("/"))},[W(Re,null,{default:X(()=>[W(f($o))]),_:1}),he[44]||(he[44]=je(" 返回主页 ",-1))])])]),A("div",Rye,[T.value?(S(),P("div",Iye,[A("div",Oye,[A("div",{class:D(["el-button el-button--small",{"is-disabled":k.value===0}]),style:{cursor:"pointer"},onClick:he[15]||(he[15]=Ne=>k.value!==0&&Ot(k.value-1))},[W(Re,null,{default:X(()=>[W(f($o))]),_:1})],2),A("div",{class:D(["el-button el-button--small",{"is-disabled":k.value===x.value-1}]),style:{cursor:"pointer"},onClick:he[16]||(he[16]=Ne=>k.value!==x.value-1&&Ot(k.value+1))},[W(Re,null,{default:X(()=>[W(f(Ds))]),_:1})],2)]),A("span",Lye,"第 "+ge(k.value+1)+" / "+ge(x.value)+" 页",1),A("div",Nye,[A("span",{class:"nt-dot",style:Qe({background:d($.value)})},null,4),je(" "+ge($.value)+" — "+ge(h($.value)),1)]),A("div",$ye,[A("div",{class:D(["el-button el-button--small",{"el-button--primary":De.value==="draw"}]),style:{cursor:"pointer"},onClick:he[17]||(he[17]=Ne=>De.value="draw")},[W(Re,null,{default:X(()=>[W(f(kg))]),_:1}),he[45]||(he[45]=je(" 框选 ",-1))],2),A("div",{class:D(["el-button el-button--small",{"el-button--primary":De.value==="pan"}]),style:{cursor:"pointer"},onClick:he[18]||(he[18]=Ne=>De.value="pan")},[W(Re,null,{default:X(()=>[W(f(o9))]),_:1}),he[46]||(he[46]=je(" 拖动 ",-1))],2)]),A("div",Dye,[A("div",{class:D(["el-button el-button--small el-button--plain",{"is-disabled":fe.value<=.25}]),style:{cursor:"pointer"},onClick:he[19]||(he[19]=Ne=>fe.value>.25&&ce())},[W(Re,null,{default:X(()=>[W(f(Uy))]),_:1})],2),A("span",Fye,ge(Math.round(fe.value*100))+"%",1),A("div",{class:D(["el-button el-button--small el-button--plain",{"is-disabled":fe.value>=3}]),style:{cursor:"pointer"},onClick:he[20]||(he[20]=Ne=>fe.value<3&&ve())},[W(Re,null,{default:X(()=>[W(f(Mg))]),_:1})],2),A("div",{class:"el-button el-button--small el-button--plain",title:"适应宽度",style:{cursor:"pointer"},onClick:he[21]||(he[21]=Ne=>Z())},[W(Re,null,{default:X(()=>[W(f(zy))]),_:1})])])])):ie("",!0),T.value?ie("",!0):(S(),P("div",Bye,[W(Re,{size:"64",style:{color:"#d1d5db"}},{default:X(()=>[W(f(Eg))]),_:1}),he[47]||(he[47]=A("p",null,"请在左侧加载 PDF 文件",-1))])),Ct(A("div",{class:"img-wrap",ref_key:"wrapRef",ref:K},[A("div",Vye,[A("canvas",{ref_key:"pdfCanvasRef",ref:se,class:"pdf-canvas"},null,512),O.value?(S(),P("div",zye,[W(Re,{class:"spin"},{default:X(()=>[W(f(Fs))]),_:1}),he[48]||(he[48]=je(" 渲染页面中… ",-1))])):ie("",!0),A("canvas",{ref_key:"canvasRef",ref:ee,class:"overlay-canvas","data-mode":De.value,onMousedown:st,onMousemove:_t,onMouseup:kn,onMouseleave:Zt},null,40,Hye)])],512),[[jt,T.value]]),W(ws,{name:"fade"},{default:X(()=>[Be.value&&Be.value.text?(S(),P("div",Wye,[A("div",jye,[A("span",{class:"rp-badge",style:Qe({background:d(Be.value.type)})},ge(Be.value.type==="C"?p(Be.value):Be.value.type),5),A("span",Kye,ge(v(Be.value))+" — 第 "+ge(Be.value.page+1)+" 页",1),Be.value.tokens?(S(),P("span",Uye,ge(Be.value.tokens)+" tokens",1)):ie("",!0),A("div",{class:"el-button el-button--link el-button--small",style:{cursor:"pointer"},onClick:he[22]||(he[22]=Ne=>pt(Be.value.text))},"复制"),A("div",{class:"el-button el-button--link el-button--small",style:{cursor:"pointer"},onClick:he[23]||(he[23]=Ne=>B.value=null)},"×")]),A("pre",qye,ge(Be.value.text),1)])):ie("",!0)]),_:1})])])}}},[["__scopeId","data-v-ff41832d"]])}],Yye=Pge({history:cge(),routes:Gye}),bb=JS(x2e);bb.use($8),bb.use(Yye);for(const[e,t]of Object.entries(oJ))bb.component(e,t);bb.mount("#app")})();