rc-test1 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,157 @@
1
+ (function(Tt,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(Tt=typeof globalThis<"u"?globalThis:Tt||self,i(Tt.RuleChain={},Tt.vue))})(this,function(Tt,i){"use strict";var AK=Object.defineProperty;var SK=(Tt,i,Ea)=>i in Tt?AK(Tt,i,{enumerable:!0,configurable:!0,writable:!0,value:Ea}):Tt[i]=Ea;var ms=(Tt,i,Ea)=>(SK(Tt,typeof i!="symbol"?i+"":i,Ea),Ea);var Ea=typeof global=="object"&&global&&global.Object===Object&&global;const Pv=Ea;var z2=typeof self=="object"&&self&&self.Object===Object&&self,W2=Pv||z2||Function("return this")();const No=W2;var K2=No.Symbol;const Zo=K2;var _v=Object.prototype,Y2=_v.hasOwnProperty,X2=_v.toString,Mi=Zo?Zo.toStringTag:void 0;function Q2(e){var t=Y2.call(e,Mi),n=e[Mi];try{e[Mi]=void 0;var r=!0}catch{}var o=X2.call(e);return r&&(t?e[Mi]=n:delete e[Mi]),o}var J2=Object.prototype,Z2=J2.toString;function q2(e){return Z2.call(e)}var $2="[object Null]",ew="[object Undefined]",Dv=Zo?Zo.toStringTag:void 0;function ys(e){return e==null?e===void 0?ew:$2:Dv&&Dv in Object(e)?Q2(e):q2(e)}function Ur(e){return e!=null&&typeof e=="object"}var tw="[object Symbol]";function gc(e){return typeof e=="symbol"||Ur(e)&&ys(e)==tw}function nw(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var ow=Array.isArray;const hr=ow;var rw=1/0,Iv=Zo?Zo.prototype:void 0,Fv=Iv?Iv.toString:void 0;function Nv(e){if(typeof e=="string")return e;if(hr(e))return nw(e,Nv)+"";if(gc(e))return Fv?Fv.call(e):"";var t=e+"";return t=="0"&&1/e==-rw?"-0":t}var aw=/\s/;function sw(e){for(var t=e.length;t--&&aw.test(e.charAt(t)););return t}var iw=/^\s+/;function lw(e){return e&&e.slice(0,sw(e)+1).replace(iw,"")}function qo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bv=0/0,cw=/^[-+]0x[0-9a-f]+$/i,uw=/^0b[01]+$/i,fw=/^0o[0-7]+$/i,dw=parseInt;function Rv(e){if(typeof e=="number")return e;if(gc(e))return Bv;if(qo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=lw(e);var n=uw.test(e);return n||fw.test(e)?dw(e.slice(2),n?2:8):cw.test(e)?Bv:+e}var hw="[object AsyncFunction]",pw="[object Function]",vw="[object GeneratorFunction]",gw="[object Proxy]";function Mv(e){if(!qo(e))return!1;var t=ys(e);return t==pw||t==vw||t==hw||t==gw}var mw=No["__core-js_shared__"];const Wf=mw;var Lv=function(){var e=/[^.]+$/.exec(Wf&&Wf.keys&&Wf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yw(e){return!!Lv&&Lv in e}var xw=Function.prototype,Ew=xw.toString;function Ca(e){if(e!=null){try{return Ew.call(e)}catch{}try{return e+""}catch{}}return""}var Cw=/[\\^$.*+?()[\]{}|]/g,ww=/^\[object .+?Constructor\]$/,bw=Function.prototype,Aw=Object.prototype,Sw=bw.toString,Tw=Aw.hasOwnProperty,kw=RegExp("^"+Sw.call(Tw).replace(Cw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ow(e){if(!qo(e)||yw(e))return!1;var t=Mv(e)?kw:ww;return t.test(Ca(e))}function Pw(e,t){return e==null?void 0:e[t]}function wa(e,t){var n=Pw(e,t);return Ow(n)?n:void 0}var _w=wa(No,"WeakMap");const Kf=_w;var Vv=Object.create,Dw=function(){function e(){}return function(t){if(!qo(t))return{};if(Vv)return Vv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Iw=Dw;function Fw(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Nw=function(){try{var e=wa(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Hv=Nw;function Bw(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Rw=9007199254740991,Mw=/^(?:0|[1-9]\d*)$/;function Uv(e,t){var n=typeof e;return t=t??Rw,!!t&&(n=="number"||n!="symbol"&&Mw.test(e))&&e>-1&&e%1==0&&e<t}function jv(e,t,n){t=="__proto__"&&Hv?Hv(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Yf(e,t){return e===t||e!==e&&t!==t}var Lw=Object.prototype,Vw=Lw.hasOwnProperty;function Xf(e,t,n){var r=e[t];(!(Vw.call(e,t)&&Yf(r,n))||n===void 0&&!(t in e))&&jv(e,t,n)}function mc(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),o?jv(n,l,c):Xf(n,l,c)}return n}var Hw=9007199254740991;function Gv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hw}function zv(e){return e!=null&&Gv(e.length)&&!Mv(e)}var Uw=Object.prototype;function Qf(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Uw;return e===n}function jw(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Gw="[object Arguments]";function Wv(e){return Ur(e)&&ys(e)==Gw}var Kv=Object.prototype,zw=Kv.hasOwnProperty,Ww=Kv.propertyIsEnumerable,Kw=Wv(function(){return arguments}())?Wv:function(e){return Ur(e)&&zw.call(e,"callee")&&!Ww.call(e,"callee")};const Yw=Kw;function Xw(){return!1}var Yv=typeof Tt=="object"&&Tt&&!Tt.nodeType&&Tt,Xv=Yv&&typeof module=="object"&&module&&!module.nodeType&&module,Qw=Xv&&Xv.exports===Yv,Qv=Qw?No.Buffer:void 0,Jw=Qv?Qv.isBuffer:void 0,Zw=Jw||Xw;const yc=Zw;var qw="[object Arguments]",$w="[object Array]",eb="[object Boolean]",tb="[object Date]",nb="[object Error]",ob="[object Function]",rb="[object Map]",ab="[object Number]",sb="[object Object]",ib="[object RegExp]",lb="[object Set]",cb="[object String]",ub="[object WeakMap]",fb="[object ArrayBuffer]",db="[object DataView]",hb="[object Float32Array]",pb="[object Float64Array]",vb="[object Int8Array]",gb="[object Int16Array]",mb="[object Int32Array]",yb="[object Uint8Array]",xb="[object Uint8ClampedArray]",Eb="[object Uint16Array]",Cb="[object Uint32Array]",_t={};_t[hb]=_t[pb]=_t[vb]=_t[gb]=_t[mb]=_t[yb]=_t[xb]=_t[Eb]=_t[Cb]=!0,_t[qw]=_t[$w]=_t[fb]=_t[eb]=_t[db]=_t[tb]=_t[nb]=_t[ob]=_t[rb]=_t[ab]=_t[sb]=_t[ib]=_t[lb]=_t[cb]=_t[ub]=!1;function wb(e){return Ur(e)&&Gv(e.length)&&!!_t[ys(e)]}function Jf(e){return function(t){return e(t)}}var Jv=typeof Tt=="object"&&Tt&&!Tt.nodeType&&Tt,Li=Jv&&typeof module=="object"&&module&&!module.nodeType&&module,bb=Li&&Li.exports===Jv,Zf=bb&&Pv.process,Ab=function(){try{var e=Li&&Li.require&&Li.require("util").types;return e||Zf&&Zf.binding&&Zf.binding("util")}catch{}}();const xs=Ab;var Zv=xs&&xs.isTypedArray,Sb=Zv?Jf(Zv):wb;const qv=Sb;var Tb=Object.prototype,kb=Tb.hasOwnProperty;function $v(e,t){var n=hr(e),r=!n&&Yw(e),o=!n&&!r&&yc(e),a=!n&&!r&&!o&&qv(e),s=n||r||o||a,l=s?jw(e.length,String):[],c=l.length;for(var u in e)(t||kb.call(e,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Uv(u,c)))&&l.push(u);return l}function eg(e,t){return function(n){return e(t(n))}}var Ob=eg(Object.keys,Object);const Pb=Ob;var _b=Object.prototype,Db=_b.hasOwnProperty;function Ib(e){if(!Qf(e))return Pb(e);var t=[];for(var n in Object(e))Db.call(e,n)&&n!="constructor"&&t.push(n);return t}function qf(e){return zv(e)?$v(e):Ib(e)}function Fb(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Nb=Object.prototype,Bb=Nb.hasOwnProperty;function Rb(e){if(!qo(e))return Fb(e);var t=Qf(e),n=[];for(var r in e)r=="constructor"&&(t||!Bb.call(e,r))||n.push(r);return n}function $f(e){return zv(e)?$v(e,!0):Rb(e)}var Mb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lb=/^\w*$/;function Vb(e,t){if(hr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||gc(e)?!0:Lb.test(e)||!Mb.test(e)||t!=null&&e in Object(t)}var Hb=wa(Object,"create");const Vi=Hb;function Ub(){this.__data__=Vi?Vi(null):{},this.size=0}function jb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Gb="__lodash_hash_undefined__",zb=Object.prototype,Wb=zb.hasOwnProperty;function Kb(e){var t=this.__data__;if(Vi){var n=t[e];return n===Gb?void 0:n}return Wb.call(t,e)?t[e]:void 0}var Yb=Object.prototype,Xb=Yb.hasOwnProperty;function Qb(e){var t=this.__data__;return Vi?t[e]!==void 0:Xb.call(t,e)}var Jb="__lodash_hash_undefined__";function Zb(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Vi&&t===void 0?Jb:t,this}function ba(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ba.prototype.clear=Ub,ba.prototype.delete=jb,ba.prototype.get=Kb,ba.prototype.has=Qb,ba.prototype.set=Zb;function qb(){this.__data__=[],this.size=0}function xc(e,t){for(var n=e.length;n--;)if(Yf(e[n][0],t))return n;return-1}var $b=Array.prototype,eA=$b.splice;function tA(e){var t=this.__data__,n=xc(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():eA.call(t,n,1),--this.size,!0}function nA(e){var t=this.__data__,n=xc(t,e);return n<0?void 0:t[n][1]}function oA(e){return xc(this.__data__,e)>-1}function rA(e,t){var n=this.__data__,r=xc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function pr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pr.prototype.clear=qb,pr.prototype.delete=tA,pr.prototype.get=nA,pr.prototype.has=oA,pr.prototype.set=rA;var aA=wa(No,"Map");const Hi=aA;function sA(){this.size=0,this.__data__={hash:new ba,map:new(Hi||pr),string:new ba}}function iA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ec(e,t){var n=e.__data__;return iA(t)?n[typeof t=="string"?"string":"hash"]:n.map}function lA(e){var t=Ec(this,e).delete(e);return this.size-=t?1:0,t}function cA(e){return Ec(this,e).get(e)}function uA(e){return Ec(this,e).has(e)}function fA(e,t){var n=Ec(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function vr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vr.prototype.clear=sA,vr.prototype.delete=lA,vr.prototype.get=cA,vr.prototype.has=uA,vr.prototype.set=fA;var dA="Expected a function";function ed(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dA);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=e.apply(this,r);return n.cache=a.set(o,s)||a,s};return n.cache=new(ed.Cache||vr),n}ed.Cache=vr;var hA=500;function pA(e){var t=ed(e,function(r){return n.size===hA&&n.clear(),r}),n=t.cache;return t}var vA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gA=/\\(\\)?/g,mA=pA(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(vA,function(n,r,o,a){t.push(o?a.replace(gA,"$1"):r||n)}),t});const yA=mA;function xA(e){return e==null?"":Nv(e)}function tg(e,t){return hr(e)?e:Vb(e,t)?[e]:yA(xA(e))}var EA=1/0;function ng(e){if(typeof e=="string"||gc(e))return e;var t=e+"";return t=="0"&&1/e==-EA?"-0":t}function CA(e,t){t=tg(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ng(t[n++])];return n&&n==r?e:void 0}function Bn(e,t,n){var r=e==null?void 0:CA(e,t);return r===void 0?n:r}function og(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var wA=eg(Object.getPrototypeOf,Object);const rg=wA;function td(){if(!arguments.length)return[];var e=arguments[0];return hr(e)?e:[e]}function bA(){this.__data__=new pr,this.size=0}function AA(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function SA(e){return this.__data__.get(e)}function TA(e){return this.__data__.has(e)}var kA=200;function OA(e,t){var n=this.__data__;if(n instanceof pr){var r=n.__data__;if(!Hi||r.length<kA-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new vr(r)}return n.set(e,t),this.size=n.size,this}function gr(e){var t=this.__data__=new pr(e);this.size=t.size}gr.prototype.clear=bA,gr.prototype.delete=AA,gr.prototype.get=SA,gr.prototype.has=TA,gr.prototype.set=OA;function PA(e,t){return e&&mc(t,qf(t),e)}function _A(e,t){return e&&mc(t,$f(t),e)}var ag=typeof Tt=="object"&&Tt&&!Tt.nodeType&&Tt,sg=ag&&typeof module=="object"&&module&&!module.nodeType&&module,DA=sg&&sg.exports===ag,ig=DA?No.Buffer:void 0,lg=ig?ig.allocUnsafe:void 0;function IA(e,t){if(t)return e.slice();var n=e.length,r=lg?lg(n):new e.constructor(n);return e.copy(r),r}function FA(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[o++]=s)}return a}function cg(){return[]}var NA=Object.prototype,BA=NA.propertyIsEnumerable,ug=Object.getOwnPropertySymbols,RA=ug?function(e){return e==null?[]:(e=Object(e),FA(ug(e),function(t){return BA.call(e,t)}))}:cg;const nd=RA;function MA(e,t){return mc(e,nd(e),t)}var LA=Object.getOwnPropertySymbols,VA=LA?function(e){for(var t=[];e;)og(t,nd(e)),e=rg(e);return t}:cg;const fg=VA;function HA(e,t){return mc(e,fg(e),t)}function dg(e,t,n){var r=t(e);return hr(e)?r:og(r,n(e))}function od(e){return dg(e,qf,nd)}function UA(e){return dg(e,$f,fg)}var jA=wa(No,"DataView");const rd=jA;var GA=wa(No,"Promise");const ad=GA;var zA=wa(No,"Set");const sd=zA;var hg="[object Map]",WA="[object Object]",pg="[object Promise]",vg="[object Set]",gg="[object WeakMap]",mg="[object DataView]",KA=Ca(rd),YA=Ca(Hi),XA=Ca(ad),QA=Ca(sd),JA=Ca(Kf),Aa=ys;(rd&&Aa(new rd(new ArrayBuffer(1)))!=mg||Hi&&Aa(new Hi)!=hg||ad&&Aa(ad.resolve())!=pg||sd&&Aa(new sd)!=vg||Kf&&Aa(new Kf)!=gg)&&(Aa=function(e){var t=ys(e),n=t==WA?e.constructor:void 0,r=n?Ca(n):"";if(r)switch(r){case KA:return mg;case YA:return hg;case XA:return pg;case QA:return vg;case JA:return gg}return t});const Ui=Aa;var ZA=Object.prototype,qA=ZA.hasOwnProperty;function $A(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&qA.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var eS=No.Uint8Array;const Cc=eS;function id(e){var t=new e.constructor(e.byteLength);return new Cc(t).set(new Cc(e)),t}function tS(e,t){var n=t?id(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var nS=/\w*$/;function oS(e){var t=new e.constructor(e.source,nS.exec(e));return t.lastIndex=e.lastIndex,t}var yg=Zo?Zo.prototype:void 0,xg=yg?yg.valueOf:void 0;function rS(e){return xg?Object(xg.call(e)):{}}function aS(e,t){var n=t?id(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var sS="[object Boolean]",iS="[object Date]",lS="[object Map]",cS="[object Number]",uS="[object RegExp]",fS="[object Set]",dS="[object String]",hS="[object Symbol]",pS="[object ArrayBuffer]",vS="[object DataView]",gS="[object Float32Array]",mS="[object Float64Array]",yS="[object Int8Array]",xS="[object Int16Array]",ES="[object Int32Array]",CS="[object Uint8Array]",wS="[object Uint8ClampedArray]",bS="[object Uint16Array]",AS="[object Uint32Array]";function SS(e,t,n){var r=e.constructor;switch(t){case pS:return id(e);case sS:case iS:return new r(+e);case vS:return tS(e,n);case gS:case mS:case yS:case xS:case ES:case CS:case wS:case bS:case AS:return aS(e,n);case lS:return new r;case cS:case dS:return new r(e);case uS:return oS(e);case fS:return new r;case hS:return rS(e)}}function TS(e){return typeof e.constructor=="function"&&!Qf(e)?Iw(rg(e)):{}}var kS="[object Map]";function OS(e){return Ur(e)&&Ui(e)==kS}var Eg=xs&&xs.isMap,PS=Eg?Jf(Eg):OS;const _S=PS;var DS="[object Set]";function IS(e){return Ur(e)&&Ui(e)==DS}var Cg=xs&&xs.isSet,FS=Cg?Jf(Cg):IS;const NS=FS;var BS=1,RS=2,MS=4,wg="[object Arguments]",LS="[object Array]",VS="[object Boolean]",HS="[object Date]",US="[object Error]",bg="[object Function]",jS="[object GeneratorFunction]",GS="[object Map]",zS="[object Number]",Ag="[object Object]",WS="[object RegExp]",KS="[object Set]",YS="[object String]",XS="[object Symbol]",QS="[object WeakMap]",JS="[object ArrayBuffer]",ZS="[object DataView]",qS="[object Float32Array]",$S="[object Float64Array]",eT="[object Int8Array]",tT="[object Int16Array]",nT="[object Int32Array]",oT="[object Uint8Array]",rT="[object Uint8ClampedArray]",aT="[object Uint16Array]",sT="[object Uint32Array]",kt={};kt[wg]=kt[LS]=kt[JS]=kt[ZS]=kt[VS]=kt[HS]=kt[qS]=kt[$S]=kt[eT]=kt[tT]=kt[nT]=kt[GS]=kt[zS]=kt[Ag]=kt[WS]=kt[KS]=kt[YS]=kt[XS]=kt[oT]=kt[rT]=kt[aT]=kt[sT]=!0,kt[US]=kt[bg]=kt[QS]=!1;function wc(e,t,n,r,o,a){var s,l=t&BS,c=t&RS,u=t&MS;if(n&&(s=o?n(e,r,o,a):n(e)),s!==void 0)return s;if(!qo(e))return e;var f=hr(e);if(f){if(s=$A(e),!l)return Fw(e,s)}else{var d=Ui(e),h=d==bg||d==jS;if(yc(e))return IA(e,l);if(d==Ag||d==wg||h&&!o){if(s=c||h?{}:TS(e),!l)return c?HA(e,_A(s,e)):MA(e,PA(s,e))}else{if(!kt[d])return o?e:{};s=SS(e,d,l)}}a||(a=new gr);var p=a.get(e);if(p)return p;a.set(e,s),NS(e)?e.forEach(function(m){s.add(wc(m,t,n,m,e,a))}):_S(e)&&e.forEach(function(m,y){s.set(y,wc(m,t,n,y,e,a))});var g=u?c?UA:od:c?$f:qf,v=f?void 0:g(e);return Bw(v||e,function(m,y){v&&(y=m,m=e[y]),Xf(s,y,wc(m,t,n,y,e,a))}),s}var iT=4;function Sg(e){return wc(e,iT)}var lT="__lodash_hash_undefined__";function cT(e){return this.__data__.set(e,lT),this}function uT(e){return this.__data__.has(e)}function bc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new vr;++t<n;)this.add(e[t])}bc.prototype.add=bc.prototype.push=cT,bc.prototype.has=uT;function fT(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function dT(e,t){return e.has(t)}var hT=1,pT=2;function Tg(e,t,n,r,o,a){var s=n&hT,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,p=n&pT?new bc:void 0;for(a.set(e,t),a.set(t,e);++d<l;){var g=e[d],v=t[d];if(r)var m=s?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(m!==void 0){if(m)continue;h=!1;break}if(p){if(!fT(t,function(y,E){if(!dT(p,E)&&(g===y||o(g,y,n,r,a)))return p.push(E)})){h=!1;break}}else if(!(g===v||o(g,v,n,r,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function vT(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function gT(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var mT=1,yT=2,xT="[object Boolean]",ET="[object Date]",CT="[object Error]",wT="[object Map]",bT="[object Number]",AT="[object RegExp]",ST="[object Set]",TT="[object String]",kT="[object Symbol]",OT="[object ArrayBuffer]",PT="[object DataView]",kg=Zo?Zo.prototype:void 0,ld=kg?kg.valueOf:void 0;function _T(e,t,n,r,o,a,s){switch(n){case PT:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case OT:return!(e.byteLength!=t.byteLength||!a(new Cc(e),new Cc(t)));case xT:case ET:case bT:return Yf(+e,+t);case CT:return e.name==t.name&&e.message==t.message;case AT:case TT:return e==t+"";case wT:var l=vT;case ST:var c=r&mT;if(l||(l=gT),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=yT,s.set(e,t);var f=Tg(l(e),l(t),r,o,a,s);return s.delete(e),f;case kT:if(ld)return ld.call(e)==ld.call(t)}return!1}var DT=1,IT=Object.prototype,FT=IT.hasOwnProperty;function NT(e,t,n,r,o,a){var s=n&DT,l=od(e),c=l.length,u=od(t),f=u.length;if(c!=f&&!s)return!1;for(var d=c;d--;){var h=l[d];if(!(s?h in t:FT.call(t,h)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var v=!0;a.set(e,t),a.set(t,e);for(var m=s;++d<c;){h=l[d];var y=e[h],E=t[h];if(r)var x=s?r(E,y,h,t,e,a):r(y,E,h,e,t,a);if(!(x===void 0?y===E||o(y,E,n,r,a):x)){v=!1;break}m||(m=h=="constructor")}if(v&&!m){var C=e.constructor,A=t.constructor;C!=A&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof A=="function"&&A instanceof A)&&(v=!1)}return a.delete(e),a.delete(t),v}var BT=1,Og="[object Arguments]",Pg="[object Array]",Ac="[object Object]",RT=Object.prototype,_g=RT.hasOwnProperty;function MT(e,t,n,r,o,a){var s=hr(e),l=hr(t),c=s?Pg:Ui(e),u=l?Pg:Ui(t);c=c==Og?Ac:c,u=u==Og?Ac:u;var f=c==Ac,d=u==Ac,h=c==u;if(h&&yc(e)){if(!yc(t))return!1;s=!0,f=!1}if(h&&!f)return a||(a=new gr),s||qv(e)?Tg(e,t,n,r,o,a):_T(e,t,c,n,r,o,a);if(!(n&BT)){var p=f&&_g.call(e,"__wrapped__"),g=d&&_g.call(t,"__wrapped__");if(p||g){var v=p?e.value():e,m=g?t.value():t;return a||(a=new gr),o(v,m,n,r,a)}}return h?(a||(a=new gr),NT(e,t,n,r,o,a)):!1}function Dg(e,t,n,r,o){return e===t?!0:e==null||t==null||!Ur(e)&&!Ur(t)?e!==e&&t!==t:MT(e,t,n,r,Dg,o)}var LT=function(){return No.Date.now()};const cd=LT;var VT="Expected a function",HT=Math.max,UT=Math.min;function Es(e,t,n){var r,o,a,s,l,c,u=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(VT);t=Rv(t)||0,qo(n)&&(f=!!n.leading,d="maxWait"in n,a=d?HT(Rv(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function p(w){var b=r,T=o;return r=o=void 0,u=w,s=e.apply(T,b),s}function g(w){return u=w,l=setTimeout(y,t),f?p(w):s}function v(w){var b=w-c,T=w-u,S=t-b;return d?UT(S,a-T):S}function m(w){var b=w-c,T=w-u;return c===void 0||b>=t||b<0||d&&T>=a}function y(){var w=cd();if(m(w))return E(w);l=setTimeout(y,v(w))}function E(w){return l=void 0,h&&r?p(w):(r=o=void 0,s)}function x(){l!==void 0&&clearTimeout(l),u=0,r=c=o=l=void 0}function C(){return l===void 0?s:E(cd())}function A(){var w=cd(),b=m(w);if(r=arguments,o=this,c=w,b){if(l===void 0)return g(c);if(d)return clearTimeout(l),l=setTimeout(y,t),p(c)}return l===void 0&&(l=setTimeout(y,t)),s}return A.cancel=x,A.flush=C,A}function Ig(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function Sc(e,t){return Dg(e,t)}function ji(e){return e==null}function jT(e,t,n,r){if(!qo(e))return e;t=tg(t,e);for(var o=-1,a=t.length,s=a-1,l=e;l!=null&&++o<a;){var c=ng(t[o]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=s){var f=l[c];u=r?r(f,c,l):void 0,u===void 0&&(u=qo(f)?f:Uv(t[o+1])?[]:{})}Xf(l,c,u),l=l[c]}return e}function GT(e,t,n){return e==null?e:jT(e,t,n)}const zT='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',WT=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Fg=e=>Array.from(e.querySelectorAll(zT)).filter(t=>KT(t)&&WT(t)),KT=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)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}},Cs=(e,t,n,r=!1)=>{e&&t&&n&&(e==null||e.addEventListener(t,n,r))},ws=(e,t,n,r=!1)=>{e&&t&&n&&(e==null||e.removeEventListener(t,n,r))},qt=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const a=e==null?void 0:e(o);if(n===!1||!a)return t==null?void 0:t(o)},Ng=e=>t=>t.pointerType==="mouse"?e(t):void 0;var Bg;const wt=typeof window<"u",Wn=e=>typeof e=="boolean",It=e=>typeof e=="number",YT=e=>typeof e=="string",ud=()=>{};wt&&((Bg=window==null?void 0:window.navigator)!=null&&Bg.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function XT(e,t){function n(...r){e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})}return n}function QT(e,t={}){let n,r;return a=>{const s=i.unref(e),l=i.unref(t.maxWait);if(n&&clearTimeout(n),s<=0||l!==void 0&&l<=0)return r&&(clearTimeout(r),r=null),a();l&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,a()},l)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,a()},s)}}function Tc(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}function JT(e,t=200,n={}){return XT(QT(t,n),e)}function ZT(e,t=200,n={}){if(t<=0)return e;const r=i.ref(e.value),o=JT(()=>{r.value=e.value},t,n);return i.watch(e,()=>o()),r}function fd(e,t,n={}){const{immediate:r=!0}=n,o=i.ref(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function l(){o.value=!1,s()}function c(...u){s(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...u)},i.unref(t))}return r&&(o.value=!0,wt&&c()),Tc(l),{isPending:o,start:c,stop:l}}function jr(e){var t;const n=i.unref(e);return(t=n==null?void 0:n.$el)!=null?t:n}const dd=wt?window:void 0;function $o(...e){let t,n,r,o;if(YT(e[0])?([n,r,o]=e,t=dd):[t,n,r,o]=e,!t)return ud;let a=ud;const s=i.watch(()=>jr(t),c=>{a(),c&&(c.addEventListener(n,r,o),a=()=>{c.removeEventListener(n,r,o),a=ud})},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return Tc(l),l}function qT(e,t,n={}){const{window:r=dd,ignore:o,capture:a=!0,detectIframe:s=!1}=n;if(!r)return;const l=i.ref(!0);let c;const u=h=>{r.clearTimeout(c);const p=jr(e),g=h.composedPath();!p||p===h.target||g.includes(p)||!l.value||o&&o.length>0&&o.some(v=>{const m=jr(v);return m&&(h.target===m||g.includes(m))})||t(h)},f=[$o(r,"click",u,{passive:!0,capture:a}),$o(r,"pointerdown",h=>{const p=jr(e);l.value=!!p&&!h.composedPath().includes(p)},{passive:!0}),$o(r,"pointerup",h=>{if(h.button===0){const p=h.composedPath();h.composedPath=()=>p,c=r.setTimeout(()=>u(h),50)}},{passive:!0}),s&&$o(r,"blur",h=>{var p;const g=jr(e);((p=document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(g!=null&&g.contains(document.activeElement))&&t(h)})].filter(Boolean);return()=>f.forEach(h=>h())}const Rg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Mg="__vueuse_ssr_handlers__";Rg[Mg]=Rg[Mg]||{};var Lg=Object.getOwnPropertySymbols,$T=Object.prototype.hasOwnProperty,e4=Object.prototype.propertyIsEnumerable,t4=(e,t)=>{var n={};for(var r in e)$T.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Lg)for(var r of Lg(e))t.indexOf(r)<0&&e4.call(e,r)&&(n[r]=e[r]);return n};function bs(e,t,n={}){const r=n,{window:o=dd}=r,a=t4(r,["window"]);let s;const l=o&&"ResizeObserver"in o,c=()=>{s&&(s.disconnect(),s=void 0)},u=i.watch(()=>jr(e),d=>{c(),l&&o&&d&&(s=new ResizeObserver(t),s.observe(d,a))},{immediate:!0,flush:"post"}),f=()=>{c(),u()};return Tc(f),{isSupported:l,stop:f}}var Vg;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Vg||(Vg={})),process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Rt=()=>{},n4=Object.prototype.hasOwnProperty,mr=(e,t)=>n4.call(e,t),hd=Array.isArray,mo=e=>typeof e=="function",Ot=e=>typeof e=="string",Kn=e=>e!==null&&typeof e=="object",Hg=e=>(Kn(e)||mo(e))&&mo(e.then)&&mo(e.catch),o4=Object.prototype.toString,Ug=e=>o4.call(e),pd=e=>Ug(e).slice(8,-1),jg=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},r4=/-(\w)/g,a4=jg(e=>e.replace(r4,(t,n)=>n?n.toUpperCase():"")),s4=/\B([A-Z])/g,i4=jg(e=>e.replace(s4,"-$1").toLowerCase()),kc=e=>e===void 0,Sa=e=>typeof Element>"u"?!1:e instanceof Element,l4=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Gg=e=>Object.keys(e),c4=e=>Object.entries(e),Oc=(e,t,n)=>({get value(){return Bn(e,t,n)},set value(r){GT(e,t,r)}});class zg extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ta(e,t){throw new zg(`[${e}] ${t}`)}function vt(e,t){if(process.env.NODE_ENV!=="production"){const n=Ot(e)?new zg(`[${e}] ${t}`):e;console.warn(n)}}const u4="utils/dom/style",Wg=(e="")=>e.split(" ").filter(t=>!!t.trim()),As=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Gi=(e,t)=>{!e||!t.trim()||e.classList.add(...Wg(t))},Gr=(e,t)=>{!e||!t.trim()||e.classList.remove(...Wg(t))},yr=(e,t)=>{var n;if(!wt||!e||!t)return"";let r=a4(t);r==="float"&&(r="cssFloat");try{const o=e.style[r];if(o)return o;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return a?a[r]:""}catch{return e.style[r]}};function xr(e,t="px"){if(!e)return"";if(Ot(e))return e;if(It(e))return`${e}${t}`;vt(u4,"binding value must be a string or number")}let Pc;const f4=()=>{var e;if(!wt)return 0;if(Pc!==void 0)return Pc;const t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",t.appendChild(r);const o=r.offsetWidth;return(e=t.parentNode)==null||e.removeChild(t),Pc=n-o,Pc};function d4(e,t){if(!wt)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const o=t.offsetTop+n.reduce((c,u)=>c+u.offsetTop,0),a=o+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;o<s?e.scrollTop=o:a>l&&(e.scrollTop=a-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var h4=i.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 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.592 30.592 0 0 0-42.752 0z"})]))}}),Kg=h4,p4=i.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),v4=p4,g4=i.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 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"})]))}}),vd=g4,m4=i.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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"})]))}}),Yg=m4,y4=i.defineComponent({name:"Check",__name:"check",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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"})]))}}),Xg=y4,x4=i.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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"}),i.createElementVNode("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.752l265.344-265.408z"})]))}}),gd=x4,E4=i.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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"})]))}}),Qg=E4,C4=i.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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"}),i.createElementVNode("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"})]))}}),_c=C4,w4=i.defineComponent({name:"Close",__name:"close",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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"})]))}}),Ss=w4,b4=i.defineComponent({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 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.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 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.672l331.648-340.224z"})]))}}),A4=b4,S4=i.defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 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.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),T4=S4,k4=i.defineComponent({name:"Delete",__name:"delete",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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"})]))}}),O4=k4,P4=i.defineComponent({name:"Document",__name:"document",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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"})]))}}),_4=P4,D4=i.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-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 176C44.8 438.4 0 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.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 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.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.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.6-28.8 48-80 105.6-153.6 172.8-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-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),i.createElementVNode("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 112-32 28.8-67.2 48-112 48Z"})]))}}),I4=D4,F4=i.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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.992 12.992 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"})]))}}),Jg=F4,N4=i.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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.248zm452.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.248zM828.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 0z"})]))}}),Dc=N4,B4=i.defineComponent({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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"})]))}}),Zg=B4,R4=i.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),qg=R4,M4=i.defineComponent({name:"View",__name:"view",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),L4=M4,V4=i.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 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"})]))}}),md=V4,H4=i.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("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"})]))}}),U4=H4;const $g="__epPropKey",Ie=e=>e,j4=e=>Kn(e)&&!!e[$g],Ic=(e,t)=>{if(!Kn(e)||j4(e))return e;const{values:n,required:r,default:o,type:a,validator:s}=e,c={type:a,required:!!r,validator:n||s?u=>{let f=!1,d=[];if(n&&(d=Array.from(n),mr(e,"default")&&d.push(o),f||(f=d.includes(u))),s&&(f||(f=s(u))),!f&&d.length>0){const h=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");i.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return f}:void 0,[$g]:!0};return mr(e,"default")&&(c.default=o),c},Je=e=>Ig(Object.entries(e).map(([t,n])=>[t,Ic(n,t)])),Er=Ie([String,Object,Function]),G4={Close:Ss},em={Close:Ss,SuccessFilled:qg,InfoFilled:Jg,WarningFilled:md,CircleCloseFilled:Qg},Fc={success:qg,warning:md,error:Qg,info:Jg},z4={validating:Dc,success:gd,error:_c},Mt=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},W4=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Rn=e=>(e.install=Rt,e),yd=(...e)=>t=>{e.forEach(n=>{mo(n)?n(t):n.value=t})},bt={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"},jt="update:modelValue",Ts="change",xd="input",zi=["","default","small","large"],K4={large:40,default:32,small:24},Y4=e=>K4[e||"default"],Ed=e=>["",...zi].includes(e);var Nc=(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))(Nc||{});const tm=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),X4=()=>Math.floor(Math.random()*1e4),yo=e=>e,Q4=["class","style"],J4=/^on[A-Z]/,Z4=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=i.computed(()=>((n==null?void 0:n.value)||[]).concat(Q4)),o=i.getCurrentInstance();return o?i.computed(()=>{var a;return Ig(Object.entries((a=o.proxy)==null?void 0:a.$attrs).filter(([s])=>!r.value.includes(s)&&!(t&&J4.test(s))))}):(vt("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),i.computed(()=>({})))},nm=Symbol("buttonGroupContextKey"),om=Symbol(),rm=Symbol("dialogInjectionKey"),zr=Symbol("formContextKey"),Cr=Symbol("formItemContextKey"),am=Symbol("elPaginationKey"),sm=Symbol("radioGroupKey"),im=Symbol("rowContextKey"),lm=Symbol("scrollbarContextKey"),cm=Symbol("uploadContextKey"),Cd=Symbol("popper"),um=Symbol("popperContent"),fm=e=>{const t=i.getCurrentInstance();return i.computed(()=>{var n,r;return(r=((n=t.proxy)==null?void 0:n.$props)[e])!=null?r:void 0})},Bc=i.ref();function ka(e,t=void 0){const n=i.getCurrentInstance()?i.inject(om,Bc):Bc;return e?i.computed(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}const q4=(e,t,n=!1)=>{var r;const o=!!i.getCurrentInstance(),a=o?ka():void 0,s=(r=t==null?void 0:t.provide)!=null?r:o?i.provide:void 0;if(!s){vt("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=i.computed(()=>{const c=i.unref(e);return a!=null&&a.value?$4(a.value,c):c});return s(om,l),(n||!Bc.value)&&(Bc.value=l.value),l},$4=(e,t)=>{var n;const r=[...new Set([...Gg(e),...Gg(t)])],o={};for(const a of r)o[a]=(n=t[a])!=null?n:e[a];return o},Oa=Ic({type:String,values:zi,required:!1}),Yn=(e,t={})=>{const n=i.ref(void 0),r=t.prop?n:fm("size"),o=t.global?n:ka("size"),a=t.form?{size:void 0}:i.inject(zr,void 0),s=t.formItem?{size:void 0}:i.inject(Cr,void 0);return i.computed(()=>r.value||i.unref(e)||(s==null?void 0:s.size)||(a==null?void 0:a.size)||o.value||"")},ks=e=>{const t=fm("disabled"),n=i.inject(zr,void 0);return i.computed(()=>t.value||i.unref(e)||(n==null?void 0:n.disabled)||!1)},dm=({from:e,replacement:t,scope:n,version:r,ref:o,type:a="API"},s)=>{i.watch(()=>i.unref(s),l=>{l&&vt(n,`${a} ${e} is about to be deprecated in version ${r}, please use ${t} instead.
2
+ For more detail, please visit: ${o}
3
+ `)},{immediate:!0})},hm=(e,t,n)=>{let r={offsetX:0,offsetY:0};const o=l=>{const c=l.clientX,u=l.clientY,{offsetX:f,offsetY:d}=r,h=e.value.getBoundingClientRect(),p=h.left,g=h.top,v=h.width,m=h.height,y=document.documentElement.clientWidth,E=document.documentElement.clientHeight,x=-p+f,C=-g+d,A=y-p-v+f,w=E-g-m+d,b=S=>{const _=Math.min(Math.max(f+S.clientX-c,x),A),I=Math.min(Math.max(d+S.clientY-u,C),w);r={offsetX:_,offsetY:I},e.value.style.transform=`translate(${xr(_)}, ${xr(I)})`},T=()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",T)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};i.onMounted(()=>{i.watchEffect(()=>{n.value?a():s()})}),i.onBeforeUnmount(()=>{s()})},ek=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}}),pm={prefix:Math.floor(Math.random()*1e4),current:0},tk=Symbol("elIdInjection"),er=e=>{const t=i.inject(tk,pm);return!wt&&t===pm&&vt("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
4
+ usage: app.provide(ID_INJECTION_KEY, {
5
+ prefix: number,
6
+ current: number,
7
+ })`),i.computed(()=>i.unref(e)||`el-id-${t.prefix}-${t.current++}`)},Rc=()=>{const e=i.inject(zr,void 0),t=i.inject(Cr,void 0);return{form:e,formItem:t}},Wi=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=i.ref(!1)),r||(r=i.ref(!1));const o=i.ref();let a;const s=i.computed(()=>{var l;return!!(!e.label&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return i.onMounted(()=>{a=i.watch([i.toRef(e,"id"),n],([l,c])=>{const u=l??(c?void 0:er().value);u!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(r!=null&&r.value)&&!c&&u&&t.addInputId(u)),o.value=u)},{immediate:!0})}),i.onUnmounted(()=>{a&&a(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:s,inputId:o}};var nk={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const ok=e=>(t,n)=>rk(t,n,i.unref(e)),rk=(e,t,n)=>Bn(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var a;return`${(a=t==null?void 0:t[o])!=null?a:`{${o}}`}`}),ak=e=>{const t=i.computed(()=>i.unref(e).name),n=i.isRef(e)?e:i.ref(e);return{lang:t,locale:n,t:ok(e)}},oo=()=>{const e=ka("locale");return ak(i.computed(()=>e.value||nk))},vm=e=>{if(i.isRef(e)||Ta("[useLockscreen]","You need to pass a ref param to this function"),!wt||As(document.body,"el-popup-parent--hidden"))return;let t=0,n=!1,r="0",o=0;const a=()=>{Gr(document.body,"el-popup-parent--hidden"),n&&(document.body.style.paddingRight=r)};i.watch(e,s=>{if(!s){a();return}n=!As(document.body,"el-popup-parent--hidden"),n&&(r=document.body.style.paddingRight,o=Number.parseInt(yr(document.body,"paddingRight"),10)),t=f4();const l=document.documentElement.clientHeight<document.body.scrollHeight,c=yr(document.body,"overflowY");t>0&&(l||c==="scroll")&&n&&(document.body.style.paddingRight=`${o+t}px`),Gi(document.body,"el-popup-parent--hidden")}),i.onScopeDispose(()=>a())},sk=Ic({type:Ie(Boolean),default:null}),ik=Ic({type:Ie(Function)}),gm=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:sk,[n]:ik};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:c,shouldProceed:u,onShow:f,onHide:d})=>{const h=i.getCurrentInstance(),{emit:p}=h,g=h.props,v=i.computed(()=>mo(g[n])),m=i.computed(()=>g[e]===null),y=b=>{s.value!==!0&&(s.value=!0,l&&(l.value=b),mo(f)&&f(b))},E=b=>{s.value!==!1&&(s.value=!1,l&&(l.value=b),mo(d)&&d(b))},x=b=>{if(g.disabled===!0||mo(u)&&!u())return;const T=v.value&&wt;T&&p(t,!0),(m.value||!T)&&y(b)},C=b=>{if(g.disabled===!0||!wt)return;const T=v.value&&wt;T&&p(t,!1),(m.value||!T)&&E(b)},A=b=>{Wn(b)&&(g.disabled&&b?v.value&&p(t,!1):s.value!==b&&(b?y():E()))},w=()=>{s.value?C():x()};return i.watch(()=>g[e],A),c&&h.appContext.config.globalProperties.$route!==void 0&&i.watch(()=>({...h.proxy.$route}),()=>{c.value&&s.value&&C()}),i.onMounted(()=>{A(g[e])}),{hide:C,show:x,toggle:w}},useModelToggleProps:o,useModelToggleEmits:r}};gm("modelValue");const lk=(e,t)=>{let n;i.watch(()=>e.value,r=>{var o,a;r?(n=document.activeElement,i.isRef(t)&&((a=(o=t.value).focus)==null||a.call(o))):process.env.NODE_ENV==="test"?n.focus.call(n):n.focus()})},wd=e=>{if(!e)return{onClick:Rt,onMousedown:Rt,onMouseup:Rt};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}};function ck(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return Tc(()=>n()),{registerTimeout:t,cancelTimeout:n}}let Os=[];const uk=e=>{const t=n=>{const r=n;r.key===bt.esc&&Os.forEach(o=>o(r))};i.onMounted(()=>{Os.length===0&&document.addEventListener("keydown",t),wt&&Os.push(e)}),i.onBeforeUnmount(()=>{Os=Os.filter(n=>n!==e),Os.length===0&&wt&&document.removeEventListener("keydown",t)})};let mm;const ym=`el-popper-container-${X4()}`,xm=`#${ym}`,fk=()=>{const e=document.createElement("div");return e.id=ym,document.body.appendChild(e),e},dk=()=>{i.onBeforeMount(()=>{wt&&(process.env.NODE_ENV==="test"||!mm||!document.body.querySelector(xm))&&(mm=fk())})},hk=Je({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),pk=({showAfter:e,hideAfter:t,open:n,close:r})=>{const{registerTimeout:o}=ck();return{onOpen:l=>{o(()=>{n(l)},i.unref(e))},onClose:l=>{o(()=>{r(l)},i.unref(t))}}},Em=Symbol("elForwardRef"),vk=e=>{const t=n=>{e.value=n};i.provide(Em,{setForwardRef:t})},gk=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Cm="el",mk="is-",Pa=(e,t,n,r,o)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),r&&(a+=`__${r}`),o&&(a+=`--${o}`),a},Me=e=>{const t=ka("namespace"),n=i.computed(()=>t.value||Cm);return{namespace:n,b:(v="")=>Pa(i.unref(n),e,v,"",""),e:v=>v?Pa(i.unref(n),e,"",v,""):"",m:v=>v?Pa(i.unref(n),e,"","",v):"",be:(v,m)=>v&&m?Pa(i.unref(n),e,v,m,""):"",em:(v,m)=>v&&m?Pa(i.unref(n),e,"",v,m):"",bm:(v,m)=>v&&m?Pa(i.unref(n),e,v,"",m):"",bem:(v,m,y)=>v&&m&&y?Pa(i.unref(n),e,v,m,y):"",is:(v,...m)=>{const y=m.length>=1?m[0]:!0;return v&&y?`${mk}${v}`:""},cssVar:v=>{const m={};for(const y in v)m[`--${n.value}-${y}`]=v[y];return m},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const m={};for(const y in v)m[`--${n.value}-${e}-${y}`]=v[y];return m},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}},wm=i.ref(0),Ps=()=>{const e=ka("zIndex",2e3),t=i.computed(()=>e.value+wm.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(wm.value++,t.value)}};function yk(e){const t=i.ref();function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:a,value:s}=e.value;if(o==null||a==null)return;const l=s.slice(0,Math.max(0,o)),c=s.slice(Math.max(0,a));t.value={selectionStart:o,selectionEnd:a,value:s,beforeTxt:l,afterTxt:c}}function r(){if(e.value==null||t.value==null)return;const{value:o}=e.value,{beforeTxt:a,afterTxt:s,selectionStart:l}=t.value;if(a==null||s==null||l==null)return;let c=o.length;if(o.endsWith(s))c=o.length-s.length;else if(o.startsWith(a))c=a.length;else{const u=a[l-1],f=o.indexOf(u,l-1);f!==-1&&(c=f+1)}e.value.setSelectionRange(c,c)}return[n,r]}var Ue=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const xk=Je({size:{type:Ie([Number,String])},color:{type:String}}),Ek={name:"ElIcon",inheritAttrs:!1},Ck=i.defineComponent({...Ek,props:xk,setup(e){const t=e,n=Me("icon"),r=i.computed(()=>!t.size&&!t.color?{}:{fontSize:kc(t.size)?void 0:xr(t.size),"--color":t.color});return(o,a)=>(i.openBlock(),i.createElementBlock("i",i.mergeProps({class:i.unref(n).b(),style:i.unref(r)},o.$attrs),[i.renderSlot(o.$slots,"default")],16))}});var wk=Ue(Ck,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const dt=Mt(wk);let Bo;const bk=`
8
+ height:0 !important;
9
+ visibility:hidden !important;
10
+ overflow:hidden !important;
11
+ position:absolute !important;
12
+ z-index:-1000 !important;
13
+ top:0 !important;
14
+ right:0 !important;
15
+ `,Ak=["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"];function Sk(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Ak.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function bm(e,t=1,n){var r;Bo||(Bo=document.createElement("textarea"),document.body.appendChild(Bo));const{paddingSize:o,borderSize:a,boxSizing:s,contextStyle:l}=Sk(e);Bo.setAttribute("style",`${l};${bk}`),Bo.value=e.value||e.placeholder||"";let c=Bo.scrollHeight;const u={};s==="border-box"?c=c+a:s==="content-box"&&(c=c-o),Bo.value="";const f=Bo.scrollHeight-o;if(It(t)){let d=f*t;s==="border-box"&&(d=d+o+a),c=Math.max(d,c),u.minHeight=`${d}px`}if(It(n)){let d=f*n;s==="border-box"&&(d=d+o+a),c=Math.min(d,c)}return u.height=`${c}px`,(r=Bo.parentNode)==null||r.removeChild(Bo),Bo=void 0,u}const Tk=Je({id:{type:String,default:void 0},size:Oa,disabled:Boolean,modelValue:{type:Ie([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ie([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Er,default:""},prefixIcon:{type:Er,default:""},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ie([Object,Array,String]),default:()=>yo({})}}),kk={[jt]:e=>Ot(e),input:e=>Ot(e),change:e=>Ot(e),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},Ok=["role"],Pk=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],_k=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],Dk={name:"ElInput",inheritAttrs:!1},Ik=i.defineComponent({...Dk,props:Tk,emits:kk,setup(e,{expose:t,emit:n}){const r=e,o={suffix:"append",prefix:"prepend"},a=i.getCurrentInstance(),s=i.useAttrs(),l=i.useSlots(),c=i.computed(()=>{const le={};return r.containerRole==="combobox"&&(le["aria-haspopup"]=s["aria-haspopup"],le["aria-owns"]=s["aria-owns"],le["aria-expanded"]=s["aria-expanded"]),le}),u=Z4({excludeKeys:i.computed(()=>Object.keys(c.value))}),{form:f,formItem:d}=Rc(),{inputId:h}=Wi(r,{formItemContext:d}),p=Yn(),g=ks(),v=Me("input"),m=Me("textarea"),y=i.shallowRef(),E=i.shallowRef(),x=i.ref(!1),C=i.ref(!1),A=i.ref(!1),w=i.ref(!1),b=i.ref(),T=i.shallowRef(r.inputStyle),S=i.computed(()=>y.value||E.value),_=i.computed(()=>{var le;return(le=f==null?void 0:f.statusIcon)!=null?le:!1}),I=i.computed(()=>(d==null?void 0:d.validateState)||""),H=i.computed(()=>z4[I.value]),B=i.computed(()=>w.value?L4:I4),j=i.computed(()=>[s.style,r.inputStyle]),Z=i.computed(()=>[r.inputStyle,T.value,{resize:r.resize}]),q=i.computed(()=>ji(r.modelValue)?"":String(r.modelValue)),K=i.computed(()=>r.clearable&&!g.value&&!r.readonly&&!!q.value&&(x.value||C.value)),oe=i.computed(()=>r.showPassword&&!g.value&&!r.readonly&&!!q.value&&(!!q.value||x.value)),ge=i.computed(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!g.value&&!r.readonly&&!r.showPassword),Ae=i.computed(()=>Array.from(q.value).length),pe=i.computed(()=>!!ge.value&&Ae.value>Number(u.value.maxlength)),P=i.computed(()=>!!l.suffix||!!r.suffixIcon||K.value||r.showPassword||ge.value||!!I.value&&_.value),[G,z]=yk(y);bs(E,le=>{if(!ge.value||r.resize!=="both")return;const Le=le[0],{width:tt}=Le.contentRect;b.value={right:`calc(100% - ${tt+15+6}px)`}});const U=()=>{const{type:le,autosize:Le}=r;if(!(!wt||le!=="textarea"))if(Le){const tt=Kn(Le)?Le.minRows:void 0,qe=Kn(Le)?Le.maxRows:void 0;T.value={...bm(E.value,tt,qe)}}else T.value={minHeight:bm(E.value).minHeight}},J=()=>{const le=S.value;!le||le.value===q.value||(le.value=q.value)},ne=le=>{const{el:Le}=a.vnode;if(!Le)return;const qe=Array.from(Le.querySelectorAll(`.${v.e(le)}`)).find(W=>W.parentNode===Le);if(!qe)return;const Pe=o[le];l[Pe]?qe.style.transform=`translateX(${le==="suffix"?"-":""}${Le.querySelector(`.${v.be("group",Pe)}`).offsetWidth}px)`:qe.removeAttribute("style")},ce=()=>{ne("prefix"),ne("suffix")},Q=async le=>{G();let{value:Le}=le.target;r.formatter&&(Le=r.parser?r.parser(Le):Le,Le=r.formatter(Le)),!A.value&&Le!==q.value&&(n(jt,Le),n("input",Le),await i.nextTick(),J(),z())},X=le=>{n("change",le.target.value)},de=le=>{n("compositionstart",le),A.value=!0},me=le=>{var Le;n("compositionupdate",le);const tt=(Le=le.target)==null?void 0:Le.value,qe=tt[tt.length-1]||"";A.value=!tm(qe)},Ne=le=>{n("compositionend",le),A.value&&(A.value=!1,Q(le))},Fe=()=>{w.value=!w.value,lt()},lt=async()=>{var le;await i.nextTick(),(le=S.value)==null||le.focus()},We=()=>{var le;return(le=S.value)==null?void 0:le.blur()},Ce=le=>{x.value=!0,n("focus",le)},ct=le=>{var Le;x.value=!1,n("blur",le),r.validateEvent&&((Le=d==null?void 0:d.validate)==null||Le.call(d,"blur").catch(tt=>vt(tt)))},Ct=le=>{C.value=!1,n("mouseleave",le)},ue=le=>{C.value=!0,n("mouseenter",le)},Ee=le=>{n("keydown",le)},Be=()=>{var le;(le=S.value)==null||le.select()},ot=()=>{n(jt,""),n("change",""),n("clear"),n("input","")};return i.watch(()=>r.modelValue,()=>{var le;i.nextTick(()=>U()),r.validateEvent&&((le=d==null?void 0:d.validate)==null||le.call(d,"change").catch(Le=>vt(Le)))}),i.watch(q,()=>J()),i.watch(()=>r.type,async()=>{await i.nextTick(),J(),U(),ce()}),i.onMounted(async()=>{!r.formatter&&r.parser&&vt("ElInput","If you set the parser, you also need to set the formatter."),J(),ce(),await i.nextTick(),U()}),i.onUpdated(async()=>{await i.nextTick(),ce()}),t({input:y,textarea:E,ref:S,textareaStyle:Z,autosize:i.toRef(r,"autosize"),focus:lt,blur:We,select:Be,clear:ot,resizeTextarea:U}),(le,Le)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps(i.unref(c),{class:[le.type==="textarea"?i.unref(m).b():i.unref(v).b(),i.unref(v).m(i.unref(p)),i.unref(v).is("disabled",i.unref(g)),i.unref(v).is("exceed",i.unref(pe)),{[i.unref(v).b("group")]:le.$slots.prepend||le.$slots.append,[i.unref(v).bm("group","append")]:le.$slots.append,[i.unref(v).bm("group","prepend")]:le.$slots.prepend,[i.unref(v).m("prefix")]:le.$slots.prefix||le.prefixIcon,[i.unref(v).m("suffix")]:le.$slots.suffix||le.suffixIcon||le.clearable||le.showPassword,[i.unref(v).bm("suffix","password-clear")]:i.unref(K)&&i.unref(oe)},le.$attrs.class],style:i.unref(j),role:le.containerRole,onMouseenter:ue,onMouseleave:Ct}),[i.createCommentVNode(" input "),le.type!=="textarea"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createCommentVNode(" prepend slot "),le.$slots.prepend?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(v).be("group","prepend"))},[i.renderSlot(le.$slots,"prepend")],2)):i.createCommentVNode("v-if",!0),i.createElementVNode("div",{class:i.normalizeClass([i.unref(v).e("wrapper"),i.unref(v).is("focus",x.value)])},[i.createCommentVNode(" prefix slot "),le.$slots.prefix||le.prefixIcon?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(v).e("prefix"))},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(v).e("prefix-inner"))},[i.renderSlot(le.$slots,"prefix"),le.prefixIcon?(i.openBlock(),i.createBlock(i.unref(dt),{key:0,class:i.normalizeClass(i.unref(v).e("icon"))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(le.prefixIcon)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0)],2)],2)):i.createCommentVNode("v-if",!0),i.createElementVNode("input",i.mergeProps({id:i.unref(h),ref_key:"input",ref:y,class:i.unref(v).e("inner")},i.unref(u),{type:le.showPassword?w.value?"text":"password":le.type,disabled:i.unref(g),formatter:le.formatter,parser:le.parser,readonly:le.readonly,autocomplete:le.autocomplete,tabindex:le.tabindex,"aria-label":le.label,placeholder:le.placeholder,style:le.inputStyle,onCompositionstart:de,onCompositionupdate:me,onCompositionend:Ne,onInput:Q,onFocus:Ce,onBlur:ct,onChange:X,onKeydown:Ee}),null,16,Pk),i.createCommentVNode(" suffix slot "),i.unref(P)?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(i.unref(v).e("suffix"))},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(v).e("suffix-inner"))},[!i.unref(K)||!i.unref(oe)||!i.unref(ge)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.renderSlot(le.$slots,"suffix"),le.suffixIcon?(i.openBlock(),i.createBlock(i.unref(dt),{key:0,class:i.normalizeClass(i.unref(v).e("icon"))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(le.suffixIcon)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0)],64)):i.createCommentVNode("v-if",!0),i.unref(K)?(i.openBlock(),i.createBlock(i.unref(dt),{key:1,class:i.normalizeClass([i.unref(v).e("icon"),i.unref(v).e("clear")]),onMousedown:Le[0]||(Le[0]=i.withModifiers(()=>{},["prevent"])),onClick:ot},{default:i.withCtx(()=>[i.createVNode(i.unref(_c))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),i.unref(oe)?(i.openBlock(),i.createBlock(i.unref(dt),{key:2,class:i.normalizeClass([i.unref(v).e("icon"),i.unref(v).e("password")]),onClick:Fe},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(B))))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),i.unref(ge)?(i.openBlock(),i.createElementBlock("span",{key:3,class:i.normalizeClass(i.unref(v).e("count"))},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(v).e("count-inner"))},i.toDisplayString(i.unref(Ae))+" / "+i.toDisplayString(i.unref(u).maxlength),3)],2)):i.createCommentVNode("v-if",!0),i.unref(I)&&i.unref(H)&&i.unref(_)?(i.openBlock(),i.createBlock(i.unref(dt),{key:4,class:i.normalizeClass([i.unref(v).e("icon"),i.unref(v).e("validateIcon"),i.unref(v).is("loading",i.unref(I)==="validating")])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(H))))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0)],2)],2)):i.createCommentVNode("v-if",!0)],2),i.createCommentVNode(" append slot "),le.$slots.append?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(v).be("group","append"))},[i.renderSlot(le.$slots,"append")],2)):i.createCommentVNode("v-if",!0)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createCommentVNode(" textarea "),i.createElementVNode("textarea",i.mergeProps({id:i.unref(h),ref_key:"textarea",ref:E,class:i.unref(m).e("inner")},i.unref(u),{tabindex:le.tabindex,disabled:i.unref(g),readonly:le.readonly,autocomplete:le.autocomplete,style:i.unref(Z),"aria-label":le.label,placeholder:le.placeholder,onCompositionstart:de,onCompositionupdate:me,onCompositionend:Ne,onInput:Q,onFocus:Ce,onBlur:ct,onChange:X,onKeydown:Ee}),null,16,_k),i.unref(ge)?(i.openBlock(),i.createElementBlock("span",{key:0,style:i.normalizeStyle(b.value),class:i.normalizeClass(i.unref(v).e("count"))},i.toDisplayString(i.unref(Ae))+" / "+i.toDisplayString(i.unref(u).maxlength),7)):i.createCommentVNode("v-if",!0)],64))],16,Ok)),[[i.vShow,le.type!=="hidden"]])}});var Fk=Ue(Ik,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const _a=Mt(Fk),_s=4,Nk={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"}},Bk=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Rk=Je({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean});var Am=Ue(i.defineComponent({__name:"thumb",props:Rk,setup(e){const t=e,n="Thumb",r=i.inject(lm),o=Me("scrollbar");r||Ta(n,"can not inject scrollbar context");const a=i.ref(),s=i.ref(),l=i.ref({}),c=i.ref(!1);let u=!1,f=!1,d=wt?document.onselectstart:null;const h=i.computed(()=>Nk[t.vertical?"vertical":"horizontal"]),p=i.computed(()=>Bk({size:t.size,move:t.move,bar:h.value})),g=i.computed(()=>a.value[h.value.offset]**2/r.wrapElement[h.value.scrollSize]/t.ratio/s.value[h.value.offset]),v=b=>{var T;if(b.stopPropagation(),b.ctrlKey||[1,2].includes(b.button))return;(T=window.getSelection())==null||T.removeAllRanges(),y(b);const S=b.currentTarget;S&&(l.value[h.value.axis]=S[h.value.offset]-(b[h.value.client]-S.getBoundingClientRect()[h.value.direction]))},m=b=>{if(!s.value||!a.value||!r.wrapElement)return;const T=Math.abs(b.target.getBoundingClientRect()[h.value.direction]-b[h.value.client]),S=s.value[h.value.offset]/2,_=(T-S)*100*g.value/a.value[h.value.offset];r.wrapElement[h.value.scroll]=_*r.wrapElement[h.value.scrollSize]/100},y=b=>{b.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x),d=document.onselectstart,document.onselectstart=()=>!1},E=b=>{if(!a.value||!s.value||u===!1)return;const T=l.value[h.value.axis];if(!T)return;const S=(a.value.getBoundingClientRect()[h.value.direction]-b[h.value.client])*-1,_=s.value[h.value.offset]-T,I=(S-_)*100*g.value/a.value[h.value.offset];r.wrapElement[h.value.scroll]=I*r.wrapElement[h.value.scrollSize]/100},x=()=>{u=!1,l.value[h.value.axis]=0,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x),w(),f&&(c.value=!1)},C=()=>{f=!1,c.value=!!t.size},A=()=>{f=!0,c.value=u};i.onBeforeUnmount(()=>{w(),document.removeEventListener("mouseup",x)});const w=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return $o(i.toRef(r,"scrollbarElement"),"mousemove",C),$o(i.toRef(r,"scrollbarElement"),"mouseleave",A),(b,T)=>(i.openBlock(),i.createBlock(i.Transition,{name:i.unref(o).b("fade"),persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref_key:"instance",ref:a,class:i.normalizeClass([i.unref(o).e("bar"),i.unref(o).is(i.unref(h).key)]),onMousedown:m},[i.createElementVNode("div",{ref_key:"thumb",ref:s,class:i.normalizeClass(i.unref(o).e("thumb")),style:i.normalizeStyle(i.unref(p)),onMousedown:v},null,38)],34),[[i.vShow,b.always||c.value]])]),_:1},8,["name"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Mk=Je({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}});var Lk=Ue(i.defineComponent({__name:"bar",props:Mk,setup(e,{expose:t}){const n=e,r=i.ref(0),o=i.ref(0);return t({handleScroll:s=>{if(s){const l=s.offsetHeight-_s,c=s.offsetWidth-_s;o.value=s.scrollTop*100/l*n.ratioY,r.value=s.scrollLeft*100/c*n.ratioX}}}),(s,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(Am,{move:r.value,ratio:s.ratioX,size:s.width,always:s.always},null,8,["move","ratio","size","always"]),i.createVNode(Am,{move:o.value,ratio:s.ratioY,size:s.height,vertical:"",always:s.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const Vk=Je({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:Ie([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}}),Hk={scroll:({scrollTop:e,scrollLeft:t})=>It(e)&&It(t)},Uk={name:"ElScrollbar"},jk=i.defineComponent({...Uk,props:Vk,emits:Hk,setup(e,{expose:t,emit:n}){const r=e,o=Me("scrollbar");let a,s;const l=i.ref(),c=i.ref(),u=i.ref(),f=i.ref("0"),d=i.ref("0"),h=i.ref(),p=i.ref(1),g=i.ref(1),v="ElScrollbar",m=i.computed(()=>{const w={};return r.height&&(w.height=xr(r.height)),r.maxHeight&&(w.maxHeight=xr(r.maxHeight)),[r.wrapStyle,w]}),y=()=>{var w;c.value&&((w=h.value)==null||w.handleScroll(c.value),n("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};function E(w,b){Kn(w)?c.value.scrollTo(w):It(w)&&It(b)&&c.value.scrollTo(w,b)}const x=w=>{if(!It(w)){vt(v,"value must be a number");return}c.value.scrollTop=w},C=w=>{if(!It(w)){vt(v,"value must be a number");return}c.value.scrollLeft=w},A=()=>{if(!c.value)return;const w=c.value.offsetHeight-_s,b=c.value.offsetWidth-_s,T=w**2/c.value.scrollHeight,S=b**2/c.value.scrollWidth,_=Math.max(T,r.minSize),I=Math.max(S,r.minSize);p.value=T/(w-T)/(_/(w-_)),g.value=S/(b-S)/(I/(b-I)),d.value=_+_s<w?`${_}px`:"",f.value=I+_s<b?`${I}px`:""};return i.watch(()=>r.noresize,w=>{w?(a==null||a(),s==null||s()):({stop:a}=bs(u,A),s=$o("resize",A))},{immediate:!0}),i.watch(()=>[r.maxHeight,r.height],()=>{r.native||i.nextTick(()=>{var w;A(),c.value&&((w=h.value)==null||w.handleScroll(c.value))})}),i.provide(lm,i.reactive({scrollbarElement:l,wrapElement:c})),i.onMounted(()=>{r.native||i.nextTick(()=>A())}),i.onUpdated(()=>A()),t({wrap$:c,update:A,scrollTo:E,setScrollTop:x,setScrollLeft:C,handleScroll:y}),(w,b)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"scrollbar$",ref:l,class:i.normalizeClass(i.unref(o).b())},[i.createElementVNode("div",{ref_key:"wrap$",ref:c,class:i.normalizeClass([w.wrapClass,i.unref(o).e("wrap"),{[i.unref(o).em("wrap","hidden-default")]:!w.native}]),style:i.normalizeStyle(i.unref(m)),onScroll:y},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w.tag),{ref_key:"resize$",ref:u,class:i.normalizeClass([i.unref(o).e("view"),w.viewClass]),style:i.normalizeStyle(w.viewStyle)},{default:i.withCtx(()=>[i.renderSlot(w.$slots,"default")]),_:3},8,["class","style"]))],38),w.native?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(Lk,{key:0,ref_key:"barRef",ref:h,height:d.value,width:f.value,always:w.always,"ratio-x":g.value,"ratio-y":p.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Gk=Ue(jk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Ds=Mt(Gk),Sm=Je({role:{type:String,default:"tooltip"}}),zk={name:"ElPopperRoot",inheritAttrs:!1},Wk=i.defineComponent({...zk,props:Sm,setup(e,{expose:t}){const n=e,r=i.ref(),o=i.ref(),a=i.ref(),s=i.ref(),l=i.computed(()=>n.role),c={triggerRef:r,popperInstanceRef:o,contentRef:a,referenceRef:s,role:l};return t(c),i.provide(Cd,c),(u,f)=>i.renderSlot(u.$slots,"default")}});var Kk=Ue(Wk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Tm=Je({arrowOffset:{type:Number,default:5}}),Yk={name:"ElPopperArrow",inheritAttrs:!1},Xk=i.defineComponent({...Yk,props:Tm,setup(e,{expose:t}){const n=e,r=Me("popper"),{arrowOffset:o,arrowRef:a}=i.inject(um,void 0);return i.watch(()=>n.arrowOffset,s=>{o.value=s}),i.onBeforeUnmount(()=>{a.value=void 0}),t({arrowRef:a}),(s,l)=>(i.openBlock(),i.createElementBlock("span",{ref_key:"arrowRef",ref:a,class:i.normalizeClass(i.unref(r).e("arrow")),"data-popper-arrow":""},null,2))}});var Qk=Ue(Xk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const bd="ElOnlyChild",km=i.defineComponent({name:bd,setup(e,{slots:t,attrs:n}){var r;const o=i.inject(Em),a=gk((r=o==null?void 0:o.setForwardRef)!=null?r:Rt);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,n);if(!l)return null;if(l.length>1)return vt(bd,"requires exact only one valid child."),null;const c=Om(l);return c?i.withDirectives(i.cloneVNode(c,n),[[a]]):(vt(bd,"no valid child node found"),null)}}});function Om(e){if(!e)return null;const t=e;for(const n of t){if(Kn(n))switch(n.type){case i.Comment:continue;case i.Text:return Ad(n);case"svg":return Ad(n);case i.Fragment:return Om(n.children);default:return n}return Ad(n)}return null}function Ad(e){return i.createVNode("span",{class:"el-only-child__content"},[e])}const Pm=Je({virtualRef:{type:Ie(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),Jk={name:"ElPopperTrigger",inheritAttrs:!1},Zk=i.defineComponent({...Jk,props:Pm,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=i.inject(Cd,void 0);vk(o);const a=i.computed(()=>l.value?n.id:void 0),s=i.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=i.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),c=i.computed(()=>l.value?`${n.open}`:void 0);let u;return i.onMounted(()=>{i.watch(()=>n.virtualRef,f=>{f&&(o.value=jr(f))},{immediate:!0}),i.watch(()=>o.value,(f,d)=>{u==null||u(),u=void 0,Sa(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(h=>{var p;const g=n[h];g&&(f.addEventListener(h.slice(2).toLowerCase(),g),(p=d==null?void 0:d.removeEventListener)==null||p.call(d,h.slice(2).toLowerCase(),g))}),u=i.watch([a,s,l,c],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{ji(h[g])?f.removeAttribute(p):f.setAttribute(p,h[g])})},{immediate:!0})),Sa(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>d.removeAttribute(h))},{immediate:!0})}),i.onBeforeUnmount(()=>{u==null||u(),u=void 0}),t({triggerRef:o}),(f,d)=>f.virtualTriggering?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(i.unref(km),i.mergeProps({key:0},f.$attrs,{"aria-controls":i.unref(a),"aria-describedby":i.unref(s),"aria-expanded":i.unref(c),"aria-haspopup":i.unref(l)}),{default:i.withCtx(()=>[i.renderSlot(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var qk=Ue(Zk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),Xn="top",xo="bottom",Eo="right",Qn="left",Sd="auto",Ki=[Xn,xo,Eo,Qn],Is="start",Yi="end",$k="clippingParents",_m="viewport",Xi="popper",eO="reference",Dm=Ki.reduce(function(e,t){return e.concat([t+"-"+Is,t+"-"+Yi])},[]),Td=[].concat(Ki,[Sd]).reduce(function(e,t){return e.concat([t,t+"-"+Is,t+"-"+Yi])},[]),tO="beforeRead",nO="read",oO="afterRead",rO="beforeMain",aO="main",sO="afterMain",iO="beforeWrite",lO="write",cO="afterWrite",uO=[tO,nO,oO,rO,aO,sO,iO,lO,cO];function tr(e){return e?(e.nodeName||"").toLowerCase():null}function Ro(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fs(e){var t=Ro(e).Element;return e instanceof t||e instanceof Element}function Co(e){var t=Ro(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function kd(e){if(typeof ShadowRoot>"u")return!1;var t=Ro(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fO(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!Co(a)||!tr(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function dO(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(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,u){return c[u]="",c},{});!Co(o)||!tr(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}var Im={name:"applyStyles",enabled:!0,phase:"write",fn:fO,effect:dO,requires:["computeStyles"]};function nr(e){return e.split("-")[0]}var Da=Math.max,Mc=Math.min,Ns=Math.round;function Bs(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Co(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=Ns(n.width)/s||1),a>0&&(o=Ns(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Od(e){var t=Bs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Fm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&kd(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wr(e){return Ro(e).getComputedStyle(e)}function hO(e){return["table","td","th"].indexOf(tr(e))>=0}function Wr(e){return((Fs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lc(e){return tr(e)==="html"?e:e.assignedSlot||e.parentNode||(kd(e)?e.host:null)||Wr(e)}function Nm(e){return!Co(e)||wr(e).position==="fixed"?null:e.offsetParent}function pO(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Co(e)){var r=wr(e);if(r.position==="fixed")return null}var o=Lc(e);for(kd(o)&&(o=o.host);Co(o)&&["html","body"].indexOf(tr(o))<0;){var a=wr(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Qi(e){for(var t=Ro(e),n=Nm(e);n&&hO(n)&&wr(n).position==="static";)n=Nm(n);return n&&(tr(n)==="html"||tr(n)==="body"&&wr(n).position==="static")?t:n||pO(e)||t}function Pd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ji(e,t,n){return Da(e,Mc(t,n))}function vO(e,t,n){var r=Ji(e,t,n);return r>n?n:r}function Bm(){return{top:0,right:0,bottom:0,left:0}}function Rm(e){return Object.assign({},Bm(),e)}function Mm(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var gO=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Rm(typeof e!="number"?e:Mm(e,Ki))};function mO(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=nr(n.placement),c=Pd(l),u=[Qn,Eo].indexOf(l)>=0,f=u?"height":"width";if(!(!a||!s)){var d=gO(o.padding,n),h=Od(a),p=c==="y"?Xn:Qn,g=c==="y"?xo:Eo,v=n.rects.reference[f]+n.rects.reference[c]-s[c]-n.rects.popper[f],m=s[c]-n.rects.reference[c],y=Qi(a),E=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,x=v/2-m/2,C=d[p],A=E-h[f]-d[g],w=E/2-h[f]/2+x,b=Ji(C,w,A),T=c;n.modifiersData[r]=(t={},t[T]=b,t.centerOffset=b-w,t)}}function yO(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!Fm(t.elements.popper,o)||(t.elements.arrow=o))}var xO={name:"arrow",enabled:!0,phase:"main",fn:mO,effect:yO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rs(e){return e.split("-")[1]}var EO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function CO(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Ns(t*o)/o||0,y:Ns(n*o)/o||0}}function Lm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,d=e.isFixed,h=s.x,p=h===void 0?0:h,g=s.y,v=g===void 0?0:g,m=typeof f=="function"?f({x:p,y:v}):{x:p,y:v};p=m.x,v=m.y;var y=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),x=Qn,C=Xn,A=window;if(u){var w=Qi(n),b="clientHeight",T="clientWidth";if(w===Ro(n)&&(w=Wr(n),wr(w).position!=="static"&&l==="absolute"&&(b="scrollHeight",T="scrollWidth")),w=w,o===Xn||(o===Qn||o===Eo)&&a===Yi){C=xo;var S=d&&w===A&&A.visualViewport?A.visualViewport.height:w[b];v-=S-r.height,v*=c?1:-1}if(o===Qn||(o===Xn||o===xo)&&a===Yi){x=Eo;var _=d&&w===A&&A.visualViewport?A.visualViewport.width:w[T];p-=_-r.width,p*=c?1:-1}}var I=Object.assign({position:l},u&&EO),H=f===!0?CO({x:p,y:v}):{x:p,y:v};if(p=H.x,v=H.y,c){var B;return Object.assign({},I,(B={},B[C]=E?"0":"",B[x]=y?"0":"",B.transform=(A.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",B))}return Object.assign({},I,(t={},t[C]=E?v+"px":"",t[x]=y?p+"px":"",t.transform="",t))}function wO(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:nr(t.placement),variation:Rs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Lm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Vm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wO,data:{}},Vc={passive:!0};function bO(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,c=Ro(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(f){f.addEventListener("scroll",n.update,Vc)}),l&&c.addEventListener("resize",n.update,Vc),function(){a&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Vc)}),l&&c.removeEventListener("resize",n.update,Vc)}}var Hm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bO,data:{}},AO={left:"right",right:"left",bottom:"top",top:"bottom"};function Hc(e){return e.replace(/left|right|bottom|top/g,function(t){return AO[t]})}var SO={start:"end",end:"start"};function Um(e){return e.replace(/start|end/g,function(t){return SO[t]})}function _d(e){var t=Ro(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Dd(e){return Bs(Wr(e)).left+_d(e).scrollLeft}function TO(e){var t=Ro(e),n=Wr(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,l=r.offsetTop)),{width:o,height:a,x:s+Dd(e),y:l}}function kO(e){var t,n=Wr(e),r=_d(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Da(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Da(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Dd(e),c=-r.scrollTop;return wr(o||n).direction==="rtl"&&(l+=Da(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function Id(e){var t=wr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function jm(e){return["html","body","#document"].indexOf(tr(e))>=0?e.ownerDocument.body:Co(e)&&Id(e)?e:jm(Lc(e))}function Zi(e,t){var n;t===void 0&&(t=[]);var r=jm(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Ro(r),s=o?[a].concat(a.visualViewport||[],Id(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Zi(Lc(s)))}function Fd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function OO(e){var t=Bs(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Gm(e,t){return t===_m?Fd(TO(e)):Fs(t)?OO(t):Fd(kO(Wr(e)))}function PO(e){var t=Zi(Lc(e)),n=["absolute","fixed"].indexOf(wr(e).position)>=0,r=n&&Co(e)?Qi(e):e;return Fs(r)?t.filter(function(o){return Fs(o)&&Fm(o,r)&&tr(o)!=="body"}):[]}function _O(e,t,n){var r=t==="clippingParents"?PO(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce(function(l,c){var u=Gm(e,c);return l.top=Da(u.top,l.top),l.right=Mc(u.right,l.right),l.bottom=Mc(u.bottom,l.bottom),l.left=Da(u.left,l.left),l},Gm(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function zm(e){var t=e.reference,n=e.element,r=e.placement,o=r?nr(r):null,a=r?Rs(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case Xn:c={x:s,y:t.y-n.height};break;case xo:c={x:s,y:t.y+t.height};break;case Eo:c={x:t.x+t.width,y:l};break;case Qn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?Pd(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(a){case Is:c[u]=c[u]-(t[f]/2-n[f]/2);break;case Yi:c[u]=c[u]+(t[f]/2-n[f]/2);break}}return c}function qi(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.boundary,s=a===void 0?$k:a,l=n.rootBoundary,c=l===void 0?_m:l,u=n.elementContext,f=u===void 0?Xi:u,d=n.altBoundary,h=d===void 0?!1:d,p=n.padding,g=p===void 0?0:p,v=Rm(typeof g!="number"?g:Mm(g,Ki)),m=f===Xi?eO:Xi,y=e.rects.popper,E=e.elements[h?m:f],x=_O(Fs(E)?E:E.contextElement||Wr(e.elements.popper),s,c),C=Bs(e.elements.reference),A=zm({reference:C,element:y,strategy:"absolute",placement:o}),w=Fd(Object.assign({},y,A)),b=f===Xi?w:C,T={top:x.top-b.top+v.top,bottom:b.bottom-x.bottom+v.bottom,left:x.left-b.left+v.left,right:b.right-x.right+v.right},S=e.modifiersData.offset;if(f===Xi&&S){var _=S[o];Object.keys(T).forEach(function(I){var H=[Eo,xo].indexOf(I)>=0?1:-1,B=[Xn,xo].indexOf(I)>=0?"y":"x";T[I]+=_[B]*H})}return T}function DO(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Td:c,f=Rs(r),d=f?l?Dm:Dm.filter(function(g){return Rs(g)===f}):Ki,h=d.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=d);var p=h.reduce(function(g,v){return g[v]=qi(e,{placement:v,boundary:o,rootBoundary:a,padding:s})[nr(v)],g},{});return Object.keys(p).sort(function(g,v){return p[g]-p[v]})}function IO(e){if(nr(e)===Sd)return[];var t=Hc(e);return[Um(e),t,Um(t)]}function FO(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,f=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,v=n.allowedAutoPlacements,m=t.options.placement,y=nr(m),E=y===m,x=c||(E||!g?[Hc(m)]:IO(m)),C=[m].concat(x).reduce(function(z,U){return z.concat(nr(U)===Sd?DO(t,{placement:U,boundary:f,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:v}):U)},[]),A=t.rects.reference,w=t.rects.popper,b=new Map,T=!0,S=C[0],_=0;_<C.length;_++){var I=C[_],H=nr(I),B=Rs(I)===Is,j=[Xn,xo].indexOf(H)>=0,Z=j?"width":"height",q=qi(t,{placement:I,boundary:f,rootBoundary:d,altBoundary:h,padding:u}),K=j?B?Eo:Qn:B?xo:Xn;A[Z]>w[Z]&&(K=Hc(K));var oe=Hc(K),ge=[];if(a&&ge.push(q[H]<=0),l&&ge.push(q[K]<=0,q[oe]<=0),ge.every(function(z){return z})){S=I,T=!1;break}b.set(I,ge)}if(T)for(var Ae=g?3:1,pe=function(z){var U=C.find(function(J){var ne=b.get(J);if(ne)return ne.slice(0,z).every(function(ce){return ce})});if(U)return S=U,"break"},P=Ae;P>0;P--){var G=pe(P);if(G==="break")break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}}var NO={name:"flip",enabled:!0,phase:"main",fn:FO,requiresIfExists:["offset"],data:{_skip:!1}};function Wm(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 Km(e){return[Xn,Eo,xo,Qn].some(function(t){return e[t]>=0})}function BO(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=qi(t,{elementContext:"reference"}),l=qi(t,{altBoundary:!0}),c=Wm(s,r),u=Wm(l,o,a),f=Km(c),d=Km(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}var RO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:BO};function MO(e,t,n){var r=nr(e),o=[Qn,Xn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[Qn,Eo].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function LO(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=Td.reduce(function(f,d){return f[d]=MO(d,t.rects,a),f},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}var VO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:LO};function HO(e){var t=e.state,n=e.name;t.modifiersData[n]=zm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Ym={name:"popperOffsets",enabled:!0,phase:"read",fn:HO,data:{}};function UO(e){return e==="x"?"y":"x"}function jO(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,f=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,g=n.tetherOffset,v=g===void 0?0:g,m=qi(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:f}),y=nr(t.placement),E=Rs(t.placement),x=!E,C=Pd(y),A=UO(C),w=t.modifiersData.popperOffsets,b=t.rects.reference,T=t.rects.popper,S=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,_=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(w){if(a){var B,j=C==="y"?Xn:Qn,Z=C==="y"?xo:Eo,q=C==="y"?"height":"width",K=w[C],oe=K+m[j],ge=K-m[Z],Ae=p?-T[q]/2:0,pe=E===Is?b[q]:T[q],P=E===Is?-T[q]:-b[q],G=t.elements.arrow,z=p&&G?Od(G):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bm(),J=U[j],ne=U[Z],ce=Ji(0,b[q],z[q]),Q=x?b[q]/2-Ae-ce-J-_.mainAxis:pe-ce-J-_.mainAxis,X=x?-b[q]/2+Ae+ce+ne+_.mainAxis:P+ce+ne+_.mainAxis,de=t.elements.arrow&&Qi(t.elements.arrow),me=de?C==="y"?de.clientTop||0:de.clientLeft||0:0,Ne=(B=I==null?void 0:I[C])!=null?B:0,Fe=K+Q-Ne-me,lt=K+X-Ne,We=Ji(p?Mc(oe,Fe):oe,K,p?Da(ge,lt):ge);w[C]=We,H[C]=We-K}if(l){var Ce,ct=C==="x"?Xn:Qn,Ct=C==="x"?xo:Eo,ue=w[A],Ee=A==="y"?"height":"width",Be=ue+m[ct],ot=ue-m[Ct],le=[Xn,Qn].indexOf(y)!==-1,Le=(Ce=I==null?void 0:I[A])!=null?Ce:0,tt=le?Be:ue-b[Ee]-T[Ee]-Le+_.altAxis,qe=le?ue+b[Ee]+T[Ee]-Le-_.altAxis:ot,Pe=p&&le?vO(tt,ue,qe):Ji(p?tt:Be,ue,p?qe:ot);w[A]=Pe,H[A]=Pe-ue}t.modifiersData[r]=H}}var GO={name:"preventOverflow",enabled:!0,phase:"main",fn:jO,requiresIfExists:["offset"]};function zO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function WO(e){return e===Ro(e)||!Co(e)?_d(e):zO(e)}function KO(e){var t=e.getBoundingClientRect(),n=Ns(t.width)/e.offsetWidth||1,r=Ns(t.height)/e.offsetHeight||1;return n!==1||r!==1}function YO(e,t,n){n===void 0&&(n=!1);var r=Co(t),o=Co(t)&&KO(t),a=Wr(t),s=Bs(e,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((tr(t)!=="body"||Id(a))&&(l=WO(t)),Co(t)?(c=Bs(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Dd(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function XO(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function QO(e){var t=XO(e);return uO.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function JO(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ZO(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Xm={placement:"bottom",modifiers:[],strategy:"absolute"};function Qm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Nd(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?Xm:o;return function(s,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xm,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:u,setOptions:function(v){var m=typeof v=="function"?v(u.options):v;g(),u.options=Object.assign({},a,u.options,m),u.scrollParents={reference:Fs(s)?Zi(s):s.contextElement?Zi(s.contextElement):[],popper:Zi(l)};var y=QO(ZO([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(E){return E.enabled}),p(),h.update()},forceUpdate:function(){if(!d){var v=u.elements,m=v.reference,y=v.popper;if(Qm(m,y)){u.rects={reference:YO(m,Qi(y),u.options.strategy==="fixed"),popper:Od(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var x=u.orderedModifiers[E],C=x.fn,A=x.options,w=A===void 0?{}:A,b=x.name;typeof C=="function"&&(u=C({state:u,options:w,name:b,instance:h})||u)}}}},update:JO(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){g(),d=!0}};if(!Qm(s,l))return h;h.setOptions(c).then(function(v){!d&&c.onFirstUpdate&&c.onFirstUpdate(v)});function p(){u.orderedModifiers.forEach(function(v){var m=v.name,y=v.options,E=y===void 0?{}:y,x=v.effect;if(typeof x=="function"){var C=x({state:u,name:m,instance:h,options:E}),A=function(){};f.push(C||A)}})}function g(){f.forEach(function(v){return v()}),f=[]}return h}}Nd();var qO=[Hm,Ym,Vm,Im];Nd({defaultModifiers:qO});var $O=[Hm,Ym,Vm,Im,VO,NO,GO,xO,RO],Jm=Nd({defaultModifiers:$O});const Zm=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},qm=(e,t)=>{for(const n of e)if(!eP(n,t))return n},eP=(e,t)=>{if(process.env.NODE_ENV==="test")return!1;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},tP=e=>{const t=Zm(e),n=qm(t,e),r=qm(t.reverse(),e);return[n,r]},nP=e=>e instanceof HTMLInputElement&&"select"in e,Kr=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&nP(e)&&t&&e.select()}};function $m(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const oP=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=$m(e,r),e.unshift(r)},remove:r=>{var o,a;e=$m(e,r),(a=(o=e[0])==null?void 0:o.resume)==null||a.call(o)}}},rP=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Kr(r,t),document.activeElement!==n)return},e0=oP(),Bd="focus-trap.focus-after-trapped",Rd="focus-trap.focus-after-released",t0={cancelable:!0,bubbles:!1},n0="focusAfterTrapped",o0="focusAfterReleased",Md=Symbol("elFocusTrap"),aP=i.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[n0,o0,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=i.ref();let r,o;uk(p=>{e.trapped&&!a.paused&&t("release-requested",p)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:g,altKey:v,ctrlKey:m,metaKey:y,currentTarget:E,shiftKey:x}=p,{loop:C}=e,A=g===bt.tab&&!v&&!m&&!y,w=document.activeElement;if(A&&w){const b=E,[T,S]=tP(b);T&&S?!x&&w===S?(p.preventDefault(),C&&Kr(T,!0),t("focusout-prevented")):x&&[T,b].includes(w)&&(p.preventDefault(),C&&Kr(S,!0),t("focusout-prevented")):w===b&&(p.preventDefault(),t("focusout-prevented"))}};i.provide(Md,{focusTrapRef:n,onKeydown:s}),i.watch(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),i.watch([n],([p],[g])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",u),p.addEventListener("focusout",f)),g&&(g.removeEventListener("keydown",s),g.removeEventListener("focusin",u),g.removeEventListener("focusout",f))});const l=p=>{t(n0,p)},c=p=>t(o0,p),u=p=>{const g=i.unref(n);if(!g)return;const v=p.target,m=v&&g.contains(v);m&&t("focusin",p),!a.paused&&e.trapped&&(m?o=v:Kr(o,!0))},f=p=>{const g=i.unref(n);if(!(a.paused||!g))if(e.trapped){const v=p.relatedTarget;!ji(v)&&!g.contains(v)&&setTimeout(()=>{!a.paused&&e.trapped&&Kr(o,!0)},0)}else{const v=p.target;v&&g.contains(v)||t("focusout",p)}};async function d(){await i.nextTick();const p=i.unref(n);if(p){e0.push(a);const g=document.activeElement;if(r=g,!p.contains(g)){const m=new Event(Bd,t0);p.addEventListener(Bd,l),p.dispatchEvent(m),m.defaultPrevented||i.nextTick(()=>{let y=e.focusStartEl;Ot(y)||(Kr(y),document.activeElement!==y&&(y="first")),y==="first"&&rP(Zm(p),!0),(document.activeElement===g||y==="container")&&Kr(p)})}}}function h(){const p=i.unref(n);if(p){p.removeEventListener(Bd,l);const g=new Event(Rd,t0);p.addEventListener(Rd,c),p.dispatchEvent(g),g.defaultPrevented||Kr(r??document.body,!0),p.removeEventListener(Rd,l),e0.remove(a)}}return i.onMounted(()=>{e.trapped&&d(),i.watch(()=>e.trapped,p=>{p?d():h()})}),i.onBeforeUnmount(()=>{e.trapped&&h()}),{onKeydown:s}}});function sP(e,t,n,r,o,a){return i.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var Ld=Ue(aP,[["render",sP],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const iP=["fixed","absolute"],lP=Je({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ie(Array),default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Td,default:"bottom"},popperOptions:{type:Ie(Object),default:()=>({})},strategy:{type:String,values:iP,default:"absolute"}}),r0=Je({...lP,id:String,style:{type:Ie([String,Array,Object])},className:{type:Ie([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Ie([String,Array,Object])},popperStyle:{type:Ie([String,Array,Object])},referenceEl:{type:Ie(Object)},triggerTargetEl:{type:Ie(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),cP=["mouseenter","mouseleave","focus","blur","close"],a0=(e,t)=>{const{placement:n,strategy:r,popperOptions:o}=e,a={placement:n,strategy:r,...o,modifiers:fP(e)};return dP(a,t),hP(a,o==null?void 0:o.modifiers),a},uP=e=>{if(wt)return jr(e)};function fP(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r??[]}},{name:"computeStyles",options:{gpuAcceleration:n,adaptive:n}}]}function dP(e,{arrowEl:t,arrowOffset:n}){e.modifiers.push({name:"arrow",options:{element:t,padding:n??5}})}function hP(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const pP={name:"ElPopperContent"},vP=i.defineComponent({...pP,props:r0,emits:cP,setup(e,{expose:t,emit:n}){const r=e,{popperInstanceRef:o,contentRef:a,triggerRef:s,role:l}=i.inject(Cd,void 0),c=i.inject(Cr,void 0),{nextZIndex:u}=Ps(),f=Me("popper"),d=i.ref(),h=i.ref("first"),p=i.ref(),g=i.ref();i.provide(um,{arrowRef:p,arrowOffset:g}),c&&(c.addInputId||c.removeInputId)&&i.provide(Cr,{...c,addInputId:Rt,removeInputId:Rt});const v=i.ref(r.zIndex||u()),m=i.ref(!1);let y;const E=i.computed(()=>uP(r.referenceEl)||i.unref(s)),x=i.computed(()=>[{zIndex:i.unref(v)},r.popperStyle]),C=i.computed(()=>[f.b(),f.is("pure",r.pure),f.is(r.effect),r.popperClass]),A=i.computed(()=>l&&l.value==="dialog"?"false":void 0),w=({referenceEl:j,popperContentEl:Z,arrowEl:q})=>{const K=a0(r,{arrowEl:q,arrowOffset:i.unref(g)});return Jm(j,Z,K)},b=(j=!0)=>{var Z;(Z=i.unref(o))==null||Z.update(),j&&(v.value=r.zIndex||u())},T=()=>{var j,Z;const q={name:"eventListeners",enabled:r.visible};(Z=(j=i.unref(o))==null?void 0:j.setOptions)==null||Z.call(j,K=>({...K,modifiers:[...K.modifiers||[],q]})),b(!1),r.visible&&r.focusOnShow?m.value=!0:r.visible===!1&&(m.value=!1)},S=()=>{n("focus")},_=()=>{h.value="first",n("blur")},I=j=>{var Z;r.visible&&!m.value&&(j.relatedTarget&&((Z=j.relatedTarget)==null||Z.focus()),j.target&&(h.value=j.target),m.value=!0)},H=()=>{r.trapping||(m.value=!1)},B=()=>{m.value=!1,n("close")};return i.onMounted(()=>{let j;i.watch(E,Z=>{var q;j==null||j();const K=i.unref(o);if((q=K==null?void 0:K.destroy)==null||q.call(K),Z){const oe=i.unref(d);a.value=oe,o.value=w({referenceEl:Z,popperContentEl:oe,arrowEl:i.unref(p)}),j=i.watch(()=>Z.getBoundingClientRect(),()=>b(),{immediate:!0})}else o.value=void 0},{immediate:!0}),i.watch(()=>r.triggerTargetEl,(Z,q)=>{y==null||y(),y=void 0;const K=i.unref(Z||d.value),oe=i.unref(q||d.value);if(Sa(K)){const{ariaLabel:ge,id:Ae}=i.toRefs(r);y=i.watch([l,ge,A,Ae],pe=>{["role","aria-label","aria-modal","id"].forEach((P,G)=>{ji(pe[G])?K.removeAttribute(P):K.setAttribute(P,pe[G])})},{immediate:!0})}Sa(oe)&&["role","aria-label","aria-modal","id"].forEach(ge=>{oe.removeAttribute(ge)})},{immediate:!0}),i.watch(()=>r.visible,T,{immediate:!0}),i.watch(()=>a0(r,{arrowEl:i.unref(p),arrowOffset:i.unref(g)}),Z=>{var q;return(q=o.value)==null?void 0:q.setOptions(Z)})}),i.onBeforeUnmount(()=>{y==null||y(),y=void 0}),t({popperContentRef:d,popperInstanceRef:o,updatePopper:b,contentStyle:x}),(j,Z)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"popperContentRef",ref:d,style:i.normalizeStyle(i.unref(x)),class:i.normalizeClass(i.unref(C)),tabindex:"-1",onMouseenter:Z[0]||(Z[0]=q=>j.$emit("mouseenter",q)),onMouseleave:Z[1]||(Z[1]=q=>j.$emit("mouseleave",q))},[i.createVNode(i.unref(Ld),{trapped:m.value,"trap-on-focus-in":!0,"focus-trap-el":d.value,"focus-start-el":h.value,onFocusAfterTrapped:S,onFocusAfterReleased:_,onFocusin:I,onFocusoutPrevented:H,onReleaseRequested:B},{default:i.withCtx(()=>[i.renderSlot(j.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var gP=Ue(vP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const mP=Mt(Kk),yP=Me("tooltip"),Uc=Je({...hk,...r0,appendTo:{type:Ie([String,Object]),default:xm},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Ie(Boolean),default:null},transition:{type:String,default:`${yP.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),Vd=Je({...Pm,disabled:Boolean,trigger:{type:Ie([String,Array]),default:"hover"},triggerKeys:{type:Ie(Array),default:()=>[bt.enter,bt.space]}}),xP=Je({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),Hd=Symbol("elTooltip"),EP=i.defineComponent({name:"ElTooltipContent",components:{ElPopperContent:gP},inheritAttrs:!1,props:Uc,setup(e){const t=i.ref(null),n=i.ref(!1),r=i.ref(!1),o=i.ref(!1),a=i.ref(!1),{controlled:s,id:l,open:c,trigger:u,onClose:f,onOpen:d,onShow:h,onHide:p,onBeforeShow:g,onBeforeHide:v}=i.inject(Hd,void 0),m=i.computed(()=>process.env.NODE_ENV==="test"?!0:e.persistent);i.onBeforeUnmount(()=>{a.value=!0});const y=i.computed(()=>i.unref(m)?!0:i.unref(c)),E=i.computed(()=>e.disabled?!1:i.unref(c)),x=i.computed(()=>{var j;return(j=e.style)!=null?j:{}}),C=i.computed(()=>!i.unref(c)),A=()=>{p()},w=()=>{if(i.unref(s))return!0},b=qt(w,()=>{e.enterable&&i.unref(u)==="hover"&&d()}),T=qt(w,()=>{i.unref(u)==="hover"&&f()}),S=()=>{var j,Z;(Z=(j=t.value)==null?void 0:j.updatePopper)==null||Z.call(j),g==null||g()},_=()=>{v==null||v()},I=()=>{h(),B=qT(i.computed(()=>{var j;return(j=t.value)==null?void 0:j.popperContentRef}),()=>{if(i.unref(s))return;i.unref(u)!=="hover"&&f()})},H=()=>{e.virtualTriggering||f()};let B;return i.watch(()=>i.unref(c),j=>{j||B==null||B()},{flush:"post"}),{ariaHidden:C,entering:r,leaving:o,id:l,intermediateOpen:n,contentStyle:x,contentRef:t,destroyed:a,shouldRender:y,shouldShow:E,onClose:f,open:c,onAfterShow:I,onBeforeEnter:S,onBeforeLeave:_,onContentEnter:b,onContentLeave:T,onTransitionLeave:A,onBlur:H}}});function CP(e,t,n,r,o,a){const s=i.resolveComponent("el-popper-content");return i.openBlock(),i.createBlock(i.Teleport,{disabled:!e.teleported,to:e.appendTo},[i.createVNode(i.Transition,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:i.withCtx(()=>[e.shouldRender?i.withDirectives((i.openBlock(),i.createBlock(s,i.mergeProps({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:i.withCtx(()=>[i.createCommentVNode(" Workaround bug #6378 "),e.destroyed?i.createCommentVNode("v-if",!0):i.renderSlot(e.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[i.vShow,e.shouldShow]]):i.createCommentVNode("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var wP=Ue(EP,[["render",CP],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const bP=(e,t)=>hd(e)?e.includes(t):e===t,Ms=(e,t,n)=>r=>{bP(i.unref(e),t)&&n(r)},AP=i.defineComponent({name:"ElTooltipTrigger",components:{ElPopperTrigger:qk},props:Vd,setup(e){const t=Me("tooltip"),{controlled:n,id:r,open:o,onOpen:a,onClose:s,onToggle:l}=i.inject(Hd,void 0),c=i.ref(null),u=()=>{if(i.unref(n)||e.disabled)return!0},f=i.toRef(e,"trigger"),d=qt(u,Ms(f,"hover",a)),h=qt(u,Ms(f,"hover",s)),p=qt(u,Ms(f,"click",E=>{E.button===0&&l(E)})),g=qt(u,Ms(f,"focus",a)),v=qt(u,Ms(f,"focus",s)),m=qt(u,Ms(f,"contextmenu",E=>{E.preventDefault(),l(E)})),y=qt(u,E=>{const{code:x}=E;e.triggerKeys.includes(x)&&(E.preventDefault(),l(E))});return{onBlur:v,onContextMenu:m,onFocus:g,onMouseenter:d,onMouseleave:h,onClick:p,onKeydown:y,open:o,id:r,triggerRef:c,ns:t}}});function SP(e,t,n,r,o,a){const s=i.resolveComponent("el-popper-trigger");return i.openBlock(),i.createBlock(s,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:i.normalizeClass(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var TP=Ue(AP,[["render",SP],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:kP,useModelToggle:OP,useModelToggleEmits:PP}=gm("visible"),_P=i.defineComponent({name:"ElTooltip",components:{ElPopper:mP,ElPopperArrow:Qk,ElTooltipContent:wP,ElTooltipTrigger:TP},props:{...Sm,...kP,...Uc,...Vd,...Tm,...xP},emits:[...PP,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){dk();const n=i.computed(()=>(kc(e.openDelay)||vt("ElTooltip","open-delay is about to be deprecated in the next major version, please use `show-after` instead"),e.openDelay||e.showAfter)),r=i.computed(()=>(kc(e.visibleArrow)||vt("ElTooltip","`visible-arrow` is about to be deprecated in the next major version, please use `show-arrow` instead"),Wn(e.visibleArrow)?e.visibleArrow:e.showArrow)),o=er(),a=i.ref(null),s=i.ref(null),l=()=>{var m;const y=i.unref(a);y&&((m=y.popperInstanceRef)==null||m.update())},c=i.ref(!1),u=i.ref(void 0),{show:f,hide:d}=OP({indicator:c,toggleReason:u}),{onOpen:h,onClose:p}=pk({showAfter:n,hideAfter:i.toRef(e,"hideAfter"),open:f,close:d}),g=i.computed(()=>Wn(e.visible));return i.provide(Hd,{controlled:g,id:o,open:i.readonly(c),trigger:i.toRef(e,"trigger"),onOpen:m=>{h(m)},onClose:m=>{p(m)},onToggle:m=>{i.unref(c)?p(m):h(m)},onShow:()=>{t("show",u.value)},onHide:()=>{t("hide",u.value)},onBeforeShow:()=>{t("before-show",u.value)},onBeforeHide:()=>{t("before-hide",u.value)},updatePopper:l}),i.watch(()=>e.disabled,m=>{m&&c.value&&(c.value=!1)}),{compatShowAfter:n,compatShowArrow:r,popperRef:a,contentRef:s,open:c,hide:d,isFocusInsideContent:()=>{var m,y;const E=(y=(m=s.value)==null?void 0:m.contentRef)==null?void 0:y.popperContentRef;return E&&E.contains(document.activeElement)},updatePopper:l,onOpen:h,onClose:p}}}),DP=["innerHTML"],IP={key:1};function FP(e,t,n,r,o,a){const s=i.resolveComponent("el-tooltip-trigger"),l=i.resolveComponent("el-popper-arrow"),c=i.resolveComponent("el-tooltip-content"),u=i.resolveComponent("el-popper");return i.openBlock(),i.createBlock(u,{ref:"popperRef",role:e.role},{default:i.withCtx(()=>[i.createVNode(s,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:i.withCtx(()=>[e.$slots.default?i.renderSlot(e.$slots,"default",{key:0}):i.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),i.createVNode(c,{ref:"contentRef","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":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"content",{},()=>[e.rawContent?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:e.content},null,8,DP)):(i.openBlock(),i.createElementBlock("span",IP,i.toDisplayString(e.content),1))]),e.compatShowArrow?(i.openBlock(),i.createBlock(l,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):i.createCommentVNode("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","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"])}var NP=Ue(_P,[["render",FP],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const jc=Mt(NP),BP=Je({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"}}),RP=["textContent"],MP={name:"ElBadge"},LP=i.defineComponent({...MP,props:BP,setup(e,{expose:t}){const n=e,r=Me("badge"),o=i.computed(()=>n.isDot?"":It(n.value)&&It(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:o}),(a,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(i.unref(r).b())},[i.renderSlot(a.$slots,"default"),i.createVNode(i.Transition,{name:`${i.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("sup",{class:i.normalizeClass([i.unref(r).e("content"),i.unref(r).em("content",a.type),i.unref(r).is("fixed",!!a.$slots.default),i.unref(r).is("dot",a.isDot)]),textContent:i.toDisplayString(i.unref(o))},null,10,RP),[[i.vShow,!a.hidden&&(i.unref(o)||a.isDot)]])]),_:1},8,["name"])],2))}});var VP=Ue(LP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const HP=Mt(VP),Ud=Je({size:Oa,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Er,default:""},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Er,default:()=>Dc},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),UP={click:e=>e instanceof MouseEvent};function vn(e,t){jP(e)&&(e="100%");var n=GP(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 Gc(e){return Math.min(1,Math.max(0,e))}function jP(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function GP(e){return typeof e=="string"&&e.indexOf("%")!==-1}function s0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function zc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ia(e){return e.length===1?"0"+e:String(e)}function zP(e,t,n){return{r:vn(e,255)*255,g:vn(t,255)*255,b:vn(n,255)*255}}function i0(e,t,n){e=vn(e,255),t=vn(t,255),n=vn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=0,l=(r+o)/2;if(r===o)s=0,a=0;else{var c=r-o;switch(s=l>.5?c/(2-r-o):c/(r+o),r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s,l}}function jd(e,t,n){return n<0&&(n+=1),n>1&&(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 WP(e,t,n){var r,o,a;if(e=vn(e,360),t=vn(t,100),n=vn(n,100),t===0)o=n,a=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=jd(l,s,e+1/3),o=jd(l,s,e),a=jd(l,s,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function l0(e,t,n){e=vn(e,255),t=vn(t,255),n=vn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=r,l=r-o,c=r===0?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s:c,v:s}}function KP(e,t,n){e=vn(e,360)*6,t=vn(t,100),n=vn(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6,u=[n,s,a,a,l,n][c],f=[l,n,n,s,a,a][c],d=[a,a,l,n,n,s][c];return{r:u*255,g:f*255,b:d*255}}function c0(e,t,n,r){var o=[Ia(Math.round(e).toString(16)),Ia(Math.round(t).toString(16)),Ia(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function YP(e,t,n,r,o){var a=[Ia(Math.round(e).toString(16)),Ia(Math.round(t).toString(16)),Ia(Math.round(n).toString(16)),Ia(XP(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function XP(e){return Math.round(parseFloat(e)*255).toString(16)}function u0(e){return ro(e)/255}function ro(e){return parseInt(e,16)}function QP(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Gd={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 JP(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,s=!1,l=!1;return typeof e=="string"&&(e=$P(e)),typeof e=="object"&&(br(e.r)&&br(e.g)&&br(e.b)?(t=zP(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):br(e.h)&&br(e.s)&&br(e.v)?(r=zc(e.s),o=zc(e.v),t=KP(e.h,r,o),s=!0,l="hsv"):br(e.h)&&br(e.s)&&br(e.l)&&(r=zc(e.s),a=zc(e.l),t=WP(e.h,r,a),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=s0(n),{ok:s,format:e.format||l,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 ZP="[-\\+]?\\d+%?",qP="[-\\+]?\\d*\\.\\d+%?",Yr="(?:".concat(qP,")|(?:").concat(ZP,")"),zd="[\\s|\\(]+(".concat(Yr,")[,|\\s]+(").concat(Yr,")[,|\\s]+(").concat(Yr,")\\s*\\)?"),Wd="[\\s|\\(]+(".concat(Yr,")[,|\\s]+(").concat(Yr,")[,|\\s]+(").concat(Yr,")[,|\\s]+(").concat(Yr,")\\s*\\)?"),Mo={CSS_UNIT:new RegExp(Yr),rgb:new RegExp("rgb"+zd),rgba:new RegExp("rgba"+Wd),hsl:new RegExp("hsl"+zd),hsla:new RegExp("hsla"+Wd),hsv:new RegExp("hsv"+zd),hsva:new RegExp("hsva"+Wd),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 $P(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Gd[e])e=Gd[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Mo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Mo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Mo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Mo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Mo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Mo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Mo.hex8.exec(e),n?{r:ro(n[1]),g:ro(n[2]),b:ro(n[3]),a:u0(n[4]),format:t?"name":"hex8"}:(n=Mo.hex6.exec(e),n?{r:ro(n[1]),g:ro(n[2]),b:ro(n[3]),format:t?"name":"hex"}:(n=Mo.hex4.exec(e),n?{r:ro(n[1]+n[1]),g:ro(n[2]+n[2]),b:ro(n[3]+n[3]),a:u0(n[4]+n[4]),format:t?"name":"hex8"}:(n=Mo.hex3.exec(e),n?{r:ro(n[1]+n[1]),g:ro(n[2]+n[2]),b:ro(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function br(e){return!!Mo.CSS_UNIT.exec(String(e))}var e_=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=QP(t)),this.originalInput=t;var o=JP(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.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,r,o,a=t.r/255,s=t.g/255,l=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=s0(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=l0(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=l0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=i0(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=i0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),c0(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),YP(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),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(vn(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(vn(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="#"+c0(this.r,this.g,this.b,!1),n=0,r=Object.entries(Gd);n<r.length;n++){var o=r[n],a=o[0],s=o[1];if(t===s)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||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=Gc(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=Gc(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=Gc(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=Gc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,s={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},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(),r=n.h,o=n.s,a=n.v,s=[],l=1/t;t--;)s.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return s},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(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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(),r=n.h,o=[this],a=360/t,s=1;s<t;s++)o.push(new e({h:(r+s*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Xr(e,t=20){return e.mix("#141414",t).toString()}function t_(e){const t=ks(),n=Me("button");return i.computed(()=>{let r={};const o=e.color;if(o){const a=new e_(o),s=e.dark?a.tint(20).toString():Xr(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Xr(a,90):a.tint(90).toString(),"text-color":o,"border-color":e.dark?Xr(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Xr(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Xr(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Xr(a,80):a.tint(80).toString());else{const l=e.dark?Xr(a,30):a.tint(30).toString(),c=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":l,"hover-text-color":c,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),t.value){const u=e.dark?Xr(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const n_=["aria-disabled","disabled","autofocus","type"],o_={name:"ElButton"},r_=i.defineComponent({...o_,props:Ud,emits:UP,setup(e,{expose:t,emit:n}){const r=e,o=i.useSlots();dm({from:"type.text",replacement:"type.link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},i.computed(()=>r.type==="text"));const a=i.inject(nm,void 0),s=ka("button"),l=Me("button"),{form:c}=Rc(),u=Yn(i.computed(()=>a==null?void 0:a.size)),f=ks(),d=i.ref(),h=i.computed(()=>r.type||(a==null?void 0:a.type)||""),p=i.computed(()=>{var y,E,x;return(x=(E=r.autoInsertSpace)!=null?E:(y=s.value)==null?void 0:y.autoInsertSpace)!=null?x:!1}),g=i.computed(()=>{var y;const E=(y=o.default)==null?void 0:y.call(o);if(p.value&&(E==null?void 0:E.length)===1){const x=E[0];if((x==null?void 0:x.type)===i.Text){const C=x.children;return/^\p{Unified_Ideograph}{2}$/u.test(C.trim())}}return!1}),v=t_(r),m=y=>{r.nativeType==="reset"&&(c==null||c.resetFields()),n("click",y)};return t({ref:d,size:u,type:h,disabled:f,shouldAddSpace:g}),(y,E)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"_ref",ref:d,class:i.normalizeClass([i.unref(l).b(),i.unref(l).m(i.unref(h)),i.unref(l).m(i.unref(u)),i.unref(l).is("disabled",i.unref(f)),i.unref(l).is("loading",y.loading),i.unref(l).is("plain",y.plain),i.unref(l).is("round",y.round),i.unref(l).is("circle",y.circle),i.unref(l).is("text",y.text),i.unref(l).is("link",y.link),i.unref(l).is("has-bg",y.bg)]),"aria-disabled":i.unref(f)||y.loading,disabled:i.unref(f)||y.loading,autofocus:y.autofocus,type:y.nativeType,style:i.normalizeStyle(i.unref(v)),onClick:m},[y.loading?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[y.$slots.loading?i.renderSlot(y.$slots,"loading",{key:0}):(i.openBlock(),i.createBlock(i.unref(dt),{key:1,class:i.normalizeClass(i.unref(l).is("loading"))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(i.openBlock(),i.createBlock(i.unref(dt),{key:1},{default:i.withCtx(()=>[y.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(y.icon),{key:0})):i.renderSlot(y.$slots,"icon",{key:1})]),_:3})):i.createCommentVNode("v-if",!0),y.$slots.default?(i.openBlock(),i.createElementBlock("span",{key:2,class:i.normalizeClass({[i.unref(l).em("text","expand")]:i.unref(g)})},[i.renderSlot(y.$slots,"default")],2)):i.createCommentVNode("v-if",!0)],14,n_))}});var a_=Ue(r_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const s_={size:Ud.size,type:Ud.type},i_={name:"ElButtonGroup"},l_=i.defineComponent({...i_,props:s_,setup(e){const t=e;i.provide(nm,i.reactive({size:i.toRef(t,"size"),type:i.toRef(t,"type")}));const n=Me("button");return(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`${i.unref(n).b("group")}`)},[i.renderSlot(r.$slots,"default")],2))}});var f0=Ue(l_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Lo=Mt(a_,{ButtonGroup:f0});Rn(f0);var Ls=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function c_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var a=Function.bind.apply(t,o);return new a}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}const Qr=new Map;let d0;wt&&(document.addEventListener("mousedown",e=>d0=e),document.addEventListener("mouseup",e=>{for(const t of Qr.values())for(const{documentHandler:n}of t)n(e,d0)}));function h0(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Sa(t.arg)&&n.push(t.arg),function(r,o){const a=t.instance.popperRef,s=r.target,l=o==null?void 0:o.target,c=!t||!t.instance,u=!s||!l,f=e.contains(s)||e.contains(l),d=e===s,h=n.length&&n.some(g=>g==null?void 0:g.contains(s))||n.length&&n.includes(l),p=a&&(a.contains(s)||a.contains(l));c||u||f||d||h||p||t.value(r,o)}}const p0={beforeMount(e,t){Qr.has(e)||Qr.set(e,[]),Qr.get(e).push({documentHandler:h0(e,t),bindingFn:t.value})},updated(e,t){Qr.has(e)||Qr.set(e,[]);const n=Qr.get(e),r=n.findIndex(a=>a.bindingFn===t.oldValue),o={documentHandler:h0(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){Qr.delete(e)}},Yd="_trap-focus-children",Fa=[],v0=e=>{var t;if(Fa.length===0)return;const n=Fa[Fa.length-1][Yd];if(n.length>0&&e.code===bt.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const r=e.shiftKey,o=e.target===n[0],a=e.target===n[n.length-1];if(o&&r&&(e.preventDefault(),n[n.length-1].focus()),a&&!r&&(e.preventDefault(),n[0].focus()),process.env.NODE_ENV==="test"){const s=n.indexOf(e.target);s!==-1&&((t=n[r?s-1:s+1])==null||t.focus())}}},u_={beforeMount(e){e[Yd]=Fg(e),Fa.push(e),Fa.length<=1&&Cs(document,"keydown",v0)},updated(e){i.nextTick(()=>{e[Yd]=Fg(e)})},unmounted(){Fa.shift(),Fa.length===0&&ws(document,"keydown",v0)}};var g0=!1,Na,Xd,Qd,Wc,Kc,m0,Yc,Jd,Zd,qd,y0,$d,eh,x0,E0;function Jn(){if(!g0){g0=!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($d=/\b(iPhone|iP[ao]d)/.exec(e),eh=/\b(iP[ao]d)/.exec(e),qd=/Android/i.exec(e),x0=/FBAN\/\w+;/i.exec(e),E0=/Mobile/i.exec(e),y0=!!/Win64/.exec(e),t){Na=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Na&&document&&document.documentMode&&(Na=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);m0=r?parseFloat(r[1])+4:Na,Xd=t[2]?parseFloat(t[2]):NaN,Qd=t[3]?parseFloat(t[3]):NaN,Wc=t[4]?parseFloat(t[4]):NaN,Wc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Kc=t&&t[1]?parseFloat(t[1]):NaN):Kc=NaN}else Na=Xd=Qd=Kc=Wc=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Yc=o?parseFloat(o[1].replace("_",".")):!0}else Yc=!1;Jd=!!n[2],Zd=!!n[3]}else Yc=Jd=Zd=!1}}var th={ie:function(){return Jn()||Na},ieCompatibilityMode:function(){return Jn()||m0>Na},ie64:function(){return th.ie()&&y0},firefox:function(){return Jn()||Xd},opera:function(){return Jn()||Qd},webkit:function(){return Jn()||Wc},safari:function(){return th.webkit()},chrome:function(){return Jn()||Kc},windows:function(){return Jn()||Jd},osx:function(){return Jn()||Yc},linux:function(){return Jn()||Zd},iphone:function(){return Jn()||$d},mobile:function(){return Jn()||$d||eh||qd||E0},nativeApp:function(){return Jn()||x0},android:function(){return Jn()||qd},ipad:function(){return Jn()||eh}},f_=th,Xc=!!(typeof window<"u"&&window.document&&window.document.createElement),d_={canUseDOM:Xc,canUseWorkers:typeof Worker<"u",canUseEventListeners:Xc&&!!(window.addEventListener||window.attachEvent),canUseViewport:Xc&&!!window.screen,isInWorker:!Xc},C0=d_,w0;C0.canUseDOM&&(w0=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function h_(e,t){if(!C0.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r=typeof o[n]=="function"}return!r&&w0&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var p_=h_,b0=10,A0=40,S0=800;function T0(e){var t=0,n=0,r=0,o=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),r=t*b0,o=n*b0,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(e.deltaMode==1?(r*=A0,o*=A0):(r*=S0,o*=S0)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}T0.getEventType=function(){return f_.firefox()?"DOMMouseScroll":p_("wheel")?"wheel":"mousewheel"};var v_=T0;/**
16
+ * Checks if an event is supported in the current execution environment.
17
+ *
18
+ * NOTE: This will not work correctly for non-generic events such as `change`,
19
+ * `reset`, `load`, `error`, and `select`.
20
+ *
21
+ * Borrows from Modernizr.
22
+ *
23
+ * @param {string} eventNameSuffix Event name, e.g. "click".
24
+ * @param {?boolean} capture Check if the capture phase is supported.
25
+ * @return {boolean} True if the event is supported.
26
+ * @internal
27
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
28
+ */const g_=function(e,t){if(e&&e.addEventListener){const n=function(r){const o=v_(r);t&&Reflect.apply(t,this,[r,o])};e.addEventListener("wheel",n,{passive:!0})}},m_={beforeMount(e,t){g_(e,t.value)}},y_={modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:Oa,id:{type:String,default:void 0},label:{type:String,default:void 0},fill:{type:String,default:void 0},textColor:{type:String,default:void 0},tag:{type:String,default:"div"}},k0={modelValue:{type:[Number,String,Boolean],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Oa,tabindex:[String,Number]},Vs=()=>{const e=i.inject(zr,{}),t=i.inject(Cr,{}),n=i.inject("CheckboxGroup",{}),r=i.computed(()=>n&&(n==null?void 0:n.name)==="ElCheckboxGroup"),o=i.computed(()=>t.size);return{isGroup:r,checkboxGroup:n,elForm:e,elFormItemSize:o,elFormItem:t}},x_=(e,{elFormItem:t})=>{const{inputId:n,isLabeledByFormItem:r}=Wi(e,{formItemContext:t});return{isLabeledByFormItem:r,groupId:n}},E_=e=>{const t=i.ref(!1),{emit:n}=i.getCurrentInstance(),{isGroup:r,checkboxGroup:o,elFormItem:a}=Vs(),s=i.ref(!1);return{model:i.computed({get(){var c,u;return r.value?(c=o.modelValue)==null?void 0:c.value:(u=e.modelValue)!=null?u:t.value},set(c){var u;r.value&&Array.isArray(c)?(s.value=o.max!==void 0&&c.length>o.max.value,s.value===!1&&((u=o==null?void 0:o.changeEvent)==null||u.call(o,c))):(n(jt,c),t.value=c)}}),isGroup:r,isLimitExceeded:s,elFormItem:a}},C_=(e,t,{model:n})=>{const{isGroup:r,checkboxGroup:o}=Vs(),a=i.ref(!1),s=Yn(o==null?void 0:o.checkboxGroupSize,{prop:!0}),l=i.computed(()=>{const f=n.value;return Ug(f)==="[object Boolean]"?f:Array.isArray(f)?f.includes(e.label):f!=null?f===e.trueLabel:!!f}),c=Yn(i.computed(()=>{var f;return r.value?(f=o==null?void 0:o.checkboxGroupSize)==null?void 0:f.value:void 0})),u=i.computed(()=>!!(t.default||e.label));return{isChecked:l,focus:a,size:s,checkboxSize:c,hasOwnLabel:u}},w_=(e,{model:t,isChecked:n})=>{const{elForm:r,isGroup:o,checkboxGroup:a}=Vs(),s=i.computed(()=>{var c,u;const f=(c=a.max)==null?void 0:c.value,d=(u=a.min)==null?void 0:u.value;return!!(f||d)&&t.value.length>=f&&!n.value||t.value.length<=d&&n.value});return{isDisabled:i.computed(()=>{var c,u;const f=e.disabled||(r==null?void 0:r.disabled);return(u=o.value?((c=a.disabled)==null?void 0:c.value)||f||s.value:f)!=null?u:!1}),isLimitDisabled:s}},b_=(e,{model:t})=>{function n(){Array.isArray(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},A_=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:a})=>{const{elFormItem:s}=Vs(),{emit:l}=i.getCurrentInstance();function c(h){var p,g;return h===e.trueLabel||h===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function u(h,p){l("change",c(h),p)}function f(h){if(n.value)return;const p=h.target;l("change",c(p.checked),h)}async function d(h){n.value||!r.value&&!o.value&&a.value&&(t.value=c([!1,e.falseLabel].includes(t.value)),await i.nextTick(),u(t.value,h))}return i.watch(()=>e.modelValue,()=>{var h;(h=s==null?void 0:s.validate)==null||h.call(s,"change").catch(p=>vt(p))}),{handleChange:f,onClickRoot:d}},nh={[jt]:e=>Ot(e)||It(e)||Wn(e),change:e=>Ot(e)||It(e)||Wn(e)},O0=(e,t)=>{const{model:n,isGroup:r,isLimitExceeded:o,elFormItem:a}=E_(e),{focus:s,size:l,isChecked:c,checkboxSize:u,hasOwnLabel:f}=C_(e,t,{model:n}),{isDisabled:d}=w_(e,{model:n,isChecked:c}),{inputId:h,isLabeledByFormItem:p}=Wi(e,{formItemContext:a,disableIdGeneration:f,disableIdManagement:r}),{handleChange:g,onClickRoot:v}=A_(e,{model:n,isLimitExceeded:o,hasOwnLabel:f,isDisabled:d,isLabeledByFormItem:p});return b_(e,{model:n}),{elFormItem:a,inputId:h,isLabeledByFormItem:p,isChecked:c,isDisabled:d,isGroup:r,checkboxSize:u,hasOwnLabel:f,model:n,handleChange:g,onClickRoot:v,focus:s,size:l}},S_=["tabindex","role","aria-checked"],T_=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],k_=["id","aria-hidden","disabled","value","name","tabindex"],O_={name:"ElCheckbox"},P_=i.defineComponent({...O_,props:k0,emits:nh,setup(e){const t=e,n=i.useSlots(),{inputId:r,isLabeledByFormItem:o,isChecked:a,isDisabled:s,checkboxSize:l,hasOwnLabel:c,model:u,handleChange:f,onClickRoot:d,focus:h}=O0(t,n),p=Me("checkbox");return(g,v)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(!i.unref(c)&&i.unref(o)?"span":"label"),{class:i.normalizeClass([i.unref(p).b(),i.unref(p).m(i.unref(l)),i.unref(p).is("disabled",i.unref(s)),i.unref(p).is("bordered",g.border),i.unref(p).is("checked",i.unref(a))]),"aria-controls":g.indeterminate?g.controls:null,onClick:i.unref(d)},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass([i.unref(p).e("input"),i.unref(p).is("disabled",i.unref(s)),i.unref(p).is("checked",i.unref(a)),i.unref(p).is("indeterminate",g.indeterminate),i.unref(p).is("focus",i.unref(h))]),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,id:i.unref(r),"onUpdate:modelValue":v[0]||(v[0]=m=>i.isRef(u)?u.value=m:null),class:i.normalizeClass(i.unref(p).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:i.unref(s),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:v[1]||(v[1]=(...m)=>i.unref(f)&&i.unref(f)(...m)),onFocus:v[2]||(v[2]=m=>h.value=!0),onBlur:v[3]||(v[3]=m=>h.value=!1)},null,42,T_)),[[i.vModelCheckbox,i.unref(u)]]):i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:1,id:i.unref(r),"onUpdate:modelValue":v[4]||(v[4]=m=>i.isRef(u)?u.value=m:null),class:i.normalizeClass(i.unref(p).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:i.unref(s),value:g.label,name:g.name,tabindex:g.tabindex,onChange:v[5]||(v[5]=(...m)=>i.unref(f)&&i.unref(f)(...m)),onFocus:v[6]||(v[6]=m=>h.value=!0),onBlur:v[7]||(v[7]=m=>h.value=!1)},null,42,k_)),[[i.vModelCheckbox,i.unref(u)]]),i.createElementVNode("span",{class:i.normalizeClass(i.unref(p).e("inner"))},null,2)],10,S_),i.unref(c)?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(p).e("label"))},[i.renderSlot(g.$slots,"default"),g.$slots.default?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(g.label),1)],64))],2)):i.createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var __=Ue(P_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const D_=["name","tabindex","disabled","true-value","false-value"],I_=["name","tabindex","disabled","value"],F_={name:"ElCheckboxButton"},N_=i.defineComponent({...F_,props:k0,emits:nh,setup(e){const t=e,n=i.useSlots(),{focus:r,isChecked:o,isDisabled:a,size:s,model:l,handleChange:c}=O0(t,n),{checkboxGroup:u}=Vs(),f=Me("checkbox"),d=i.computed(()=>{var h,p,g,v;const m=(p=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?p:"";return{backgroundColor:m,borderColor:m,color:(v=(g=u==null?void 0:u.textColor)==null?void 0:g.value)!=null?v:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}});return(h,p)=>(i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass([i.unref(f).b("button"),i.unref(f).bm("button",i.unref(s)),i.unref(f).is("disabled",i.unref(a)),i.unref(f).is("checked",i.unref(o)),i.unref(f).is("focus",i.unref(r))])},[h.trueLabel||h.falseLabel?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=g=>i.isRef(l)?l.value=g:null),class:i.normalizeClass(i.unref(f).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:i.unref(a),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:p[1]||(p[1]=(...g)=>i.unref(c)&&i.unref(c)(...g)),onFocus:p[2]||(p[2]=g=>r.value=!0),onBlur:p[3]||(p[3]=g=>r.value=!1)},null,42,D_)),[[i.vModelCheckbox,i.unref(l)]]):i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:1,"onUpdate:modelValue":p[4]||(p[4]=g=>i.isRef(l)?l.value=g:null),class:i.normalizeClass(i.unref(f).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:i.unref(a),value:h.label,onChange:p[5]||(p[5]=(...g)=>i.unref(c)&&i.unref(c)(...g)),onFocus:p[6]||(p[6]=g=>r.value=!0),onBlur:p[7]||(p[7]=g=>r.value=!1)},null,42,I_)),[[i.vModelCheckbox,i.unref(l)]]),h.$slots.default||h.label?(i.openBlock(),i.createElementBlock("span",{key:2,class:i.normalizeClass(i.unref(f).be("button","inner")),style:i.normalizeStyle(i.unref(o)?i.unref(d):void 0)},[i.renderSlot(h.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(h.label),1)])],6)):i.createCommentVNode("v-if",!0)],2))}});var P0=Ue(N_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const B_={name:"ElCheckboxGroup"},R_=i.defineComponent({...B_,props:y_,emits:nh,setup(e,{emit:t}){const n=e,{elFormItem:r}=Vs(),{groupId:o,isLabeledByFormItem:a}=x_(n,{elFormItem:r}),s=Yn(),l=Me("checkbox"),c=f=>{t(jt,f),i.nextTick(()=>{t("change",f)})},u=i.computed({get(){return n.modelValue},set(f){c(f)}});return i.provide("CheckboxGroup",{name:"ElCheckboxGroup",modelValue:u,...i.toRefs(n),checkboxGroupSize:s,changeEvent:c}),i.watch(()=>n.modelValue,()=>{var f;(f=r.validate)==null||f.call(r,"change").catch(d=>vt(d))}),(f,d)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(f.tag),{id:i.unref(o),class:i.normalizeClass(i.unref(l).b("group")),role:"group","aria-label":i.unref(a)?void 0:f.label||"checkbox-group","aria-labelledby":i.unref(a)?i.unref(r).labelId:void 0},{default:i.withCtx(()=>[i.renderSlot(f.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"]))}});var _0=Ue(R_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Ba=Mt(__,{CheckboxButton:P0,CheckboxGroup:_0});Rn(P0),Rn(_0);const D0=Je({size:Oa,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),M_=Je({...D0,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),I0={[jt]:e=>Ot(e)||It(e)||Wn(e),[Ts]:e=>Ot(e)||It(e)||Wn(e)},F0=(e,t)=>{const n=i.ref(),r=i.inject(sm,void 0),o=i.computed(()=>!!r),a=i.computed({get(){return o.value?r.modelValue:e.modelValue},set(f){o.value?r.changeEvent(f):t&&t(jt,f),n.value.checked=e.modelValue===e.label}}),s=Yn(i.computed(()=>r==null?void 0:r.size)),l=ks(i.computed(()=>r==null?void 0:r.disabled)),c=i.ref(!1),u=i.computed(()=>l.value||o.value&&a.value!==e.label?-1:0);return{radioRef:n,isGroup:o,radioGroup:r,focus:c,size:s,disabled:l,tabIndex:u,modelValue:a}},L_=["value","name","disabled"],V_={name:"ElRadio"},H_=i.defineComponent({...V_,props:M_,emits:I0,setup(e,{emit:t}){const n=e,r=Me("radio"),{radioRef:o,radioGroup:a,focus:s,size:l,disabled:c,modelValue:u}=F0(n,t);function f(){i.nextTick(()=>t("change",u.value))}return(d,h)=>{var p;return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass([i.unref(r).b(),i.unref(r).is("disabled",i.unref(c)),i.unref(r).is("focus",i.unref(s)),i.unref(r).is("bordered",d.border),i.unref(r).is("checked",i.unref(u)===d.label),i.unref(r).m(i.unref(l))])},[i.createElementVNode("span",{class:i.normalizeClass([i.unref(r).e("input"),i.unref(r).is("disabled",i.unref(c)),i.unref(r).is("checked",i.unref(u)===d.label)])},[i.withDirectives(i.createElementVNode("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":h[0]||(h[0]=g=>i.isRef(u)?u.value=g:null),class:i.normalizeClass(i.unref(r).e("original")),value:d.label,name:d.name||((p=i.unref(a))==null?void 0:p.name),disabled:i.unref(c),type:"radio",onFocus:h[1]||(h[1]=g=>s.value=!0),onBlur:h[2]||(h[2]=g=>s.value=!1),onChange:f},null,42,L_),[[i.vModelRadio,i.unref(u)]]),i.createElementVNode("span",{class:i.normalizeClass(i.unref(r).e("inner"))},null,2)],2),i.createElementVNode("span",{class:i.normalizeClass(i.unref(r).e("label")),onKeydown:h[3]||(h[3]=i.withModifiers(()=>{},["stop"]))},[i.renderSlot(d.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(d.label),1)])],34)],2)}}});var U_=Ue(H_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const j_=Je({...D0,name:{type:String,default:""}}),G_=["value","name","disabled"],z_={name:"ElRadioButton"},W_=i.defineComponent({...z_,props:j_,setup(e){const t=e,n=Me("radio"),{radioRef:r,focus:o,size:a,disabled:s,modelValue:l,radioGroup:c}=F0(t),u=i.computed(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(f,d)=>{var h;return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass([i.unref(n).b("button"),i.unref(n).is("active",i.unref(l)===f.label),i.unref(n).is("disabled",i.unref(s)),i.unref(n).is("focus",i.unref(o)),i.unref(n).bm("button",i.unref(a))])},[i.withDirectives(i.createElementVNode("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":d[0]||(d[0]=p=>i.isRef(l)?l.value=p:null),class:i.normalizeClass(i.unref(n).be("button","original-radio")),value:f.label,type:"radio",name:f.name||((h=i.unref(c))==null?void 0:h.name),disabled:i.unref(s),onFocus:d[1]||(d[1]=p=>o.value=!0),onBlur:d[2]||(d[2]=p=>o.value=!1)},null,42,G_),[[i.vModelRadio,i.unref(l)]]),i.createElementVNode("span",{class:i.normalizeClass(i.unref(n).be("button","inner")),style:i.normalizeStyle(i.unref(l)===f.label?i.unref(u):{}),onKeydown:d[3]||(d[3]=i.withModifiers(()=>{},["stop"]))},[i.renderSlot(f.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(f.label),1)])],38)],2)}}});var N0=Ue(W_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const K_=Je({id:{type:String,default:void 0},size:Oa,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0}}),Y_=I0,X_=["id","aria-label","aria-labelledby"],Q_={name:"ElRadioGroup"},J_=i.defineComponent({...Q_,props:K_,emits:Y_,setup(e,{emit:t}){const n=e,r=Me("radio"),o=er(),a=i.ref(),{formItem:s}=Rc(),{inputId:l,isLabeledByFormItem:c}=Wi(n,{formItemContext:s}),u=d=>{t(jt,d),i.nextTick(()=>t("change",d))};i.onMounted(()=>{const d=a.value.querySelectorAll("[type=radio]"),h=d[0];!Array.from(d).some(p=>p.checked)&&h&&(h.tabIndex=0)});const f=i.computed(()=>n.name||o.value);return i.provide(sm,i.reactive({...i.toRefs(n),changeEvent:u,name:f})),i.watch(()=>n.modelValue,()=>s==null?void 0:s.validate("change").catch(d=>vt(d))),(d,h)=>(i.openBlock(),i.createElementBlock("div",{id:i.unref(l),ref_key:"radioGroupRef",ref:a,class:i.normalizeClass(i.unref(r).b("group")),role:"radiogroup","aria-label":i.unref(c)?void 0:d.label||"radio-group","aria-labelledby":i.unref(c)?i.unref(s).labelId:void 0},[i.renderSlot(d.$slots,"default")],10,X_))}});var B0=Ue(J_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const Z_=Mt(U_,{RadioButton:N0,RadioGroup:B0}),q_=Rn(B0);Rn(N0);const R0=Je({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:zi,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),$_={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},eD={name:"ElTag"},tD=i.defineComponent({...eD,props:R0,emits:$_,setup(e,{emit:t}){const n=e,r=Yn(),o=Me("tag"),a=i.computed(()=>{const{type:c,hit:u,effect:f,closable:d,round:h}=n;return[o.b(),o.is("closable",d),o.m(c),o.m(r.value),o.m(f),o.is("hit",u),o.is("round",h)]}),s=c=>{t("close",c)},l=c=>{t("click",c)};return(c,u)=>c.disableTransitions?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(a)),style:i.normalizeStyle({backgroundColor:c.color}),onClick:l},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(o).e("content"))},[i.renderSlot(c.$slots,"default")],2),c.closable?(i.openBlock(),i.createBlock(i.unref(dt),{key:0,class:i.normalizeClass(i.unref(o).e("close")),onClick:i.withModifiers(s,["stop"])},{default:i.withCtx(()=>[i.createVNode(i.unref(Ss))]),_:1},8,["class","onClick"])):i.createCommentVNode("v-if",!0)],6)):(i.openBlock(),i.createBlock(i.Transition,{key:1,name:`${i.unref(o).namespace.value}-zoom-in-center`,appear:""},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(i.unref(a)),style:i.normalizeStyle({backgroundColor:c.color}),onClick:l},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(o).e("content"))},[i.renderSlot(c.$slots,"default")],2),c.closable?(i.openBlock(),i.createBlock(i.unref(dt),{key:0,class:i.normalizeClass(i.unref(o).e("close")),onClick:i.withModifiers(s,["stop"])},{default:i.withCtx(()=>[i.createVNode(i.unref(Ss))]),_:1},8,["class","onClick"])):i.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var nD=Ue(tD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const oD=Mt(nD),rD=Je({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:Ie([Number,Object]),default:()=>yo({})},sm:{type:Ie([Number,Object]),default:()=>yo({})},md:{type:Ie([Number,Object]),default:()=>yo({})},lg:{type:Ie([Number,Object]),default:()=>yo({})},xl:{type:Ie([Number,Object]),default:()=>yo({})}}),aD={name:"ElCol"},sD=i.defineComponent({...aD,props:rD,setup(e){const t=e,{gutter:n}=i.inject(im,{gutter:i.computed(()=>0)}),r=Me("col"),o=i.computed(()=>{const s={};return n.value&&(s.paddingLeft=s.paddingRight=`${n.value/2}px`),s}),a=i.computed(()=>{const s=[];return["span","offset","pull","push"].forEach(u=>{const f=t[u];It(f)&&(u==="span"?s.push(r.b(`${t[u]}`)):f>0&&s.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{It(t[u])?s.push(r.b(`${u}-${t[u]}`)):Kn(t[u])&&Object.entries(t[u]).forEach(([f,d])=>{s.push(f!=="span"?r.b(`${u}-${f}-${d}`):r.b(`${u}-${d}`))})}),n.value&&s.push(r.is("guttered")),s});return(s,l)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s.tag),{class:i.normalizeClass([i.unref(r).b(),i.unref(a)]),style:i.normalizeStyle(i.unref(o))},{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var iD=Ue(sD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const $i=Mt(iD),oh={},lD=Je({a11y:{type:Boolean,default:!0},locale:{type:Ie(Object)},size:Oa,button:{type:Ie(Object)},experimentalFeatures:{type:Ie(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Ie(Object)},zIndex:Number,namespace:{type:String,default:"el"}});i.defineComponent({name:"ElConfigProvider",props:lD,setup(e,{slots:t}){i.watch(()=>e.message,r=>{Object.assign(oh,r??{})},{immediate:!0,deep:!0});const n=q4(e);return()=>i.renderSlot(t,"default",{config:n==null?void 0:n.value})}});const cD={name:"ElContainer"},uD=i.defineComponent({...cD,props:{direction:{type:String}},setup(e){const t=e,n=i.useSlots(),r=Me("container"),o=i.computed(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(s=>{const l=s.type.name;return l==="ElHeader"||l==="ElFooter"}):!1);return(a,s)=>(i.openBlock(),i.createElementBlock("section",{class:i.normalizeClass([i.unref(r).b(),i.unref(r).is("vertical",i.unref(o))])},[i.renderSlot(a.$slots,"default")],2))}});var fD=Ue(uD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const dD={name:"ElAside"},hD=i.defineComponent({...dD,props:{width:{type:String,default:null}},setup(e){const t=e,n=Me("aside"),r=i.computed(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,a)=>(i.openBlock(),i.createElementBlock("aside",{class:i.normalizeClass(i.unref(n).b()),style:i.normalizeStyle(i.unref(r))},[i.renderSlot(o.$slots,"default")],6))}});var M0=Ue(hD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const pD={name:"ElFooter"},vD=i.defineComponent({...pD,props:{height:{type:String,default:null}},setup(e){const t=e,n=Me("footer"),r=i.computed(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,a)=>(i.openBlock(),i.createElementBlock("footer",{class:i.normalizeClass(i.unref(n).b()),style:i.normalizeStyle(i.unref(r))},[i.renderSlot(o.$slots,"default")],6))}});var L0=Ue(vD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const gD={name:"ElHeader"},mD=i.defineComponent({...gD,props:{height:{type:String,default:null}},setup(e){const t=e,n=Me("header"),r=i.computed(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,a)=>(i.openBlock(),i.createElementBlock("header",{class:i.normalizeClass(i.unref(n).b()),style:i.normalizeStyle(i.unref(r))},[i.renderSlot(o.$slots,"default")],6))}});var V0=Ue(mD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const yD={name:"ElMain"},xD=i.defineComponent({...yD,setup(e){const t=Me("main");return(n,r)=>(i.openBlock(),i.createElementBlock("main",{class:i.normalizeClass(i.unref(t).b())},[i.renderSlot(n.$slots,"default")],2))}});var H0=Ue(xD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const ED=Mt(fD,{Aside:M0,Footer:L0,Header:V0,Main:H0});Rn(M0),Rn(L0),Rn(V0);const CD=Rn(H0),wD=Je({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Ie([String,Array,Object])},zIndex:{type:Ie([String,Number])}}),bD={click:e=>e instanceof MouseEvent};var AD=i.defineComponent({name:"ElOverlay",props:wD,emits:bD,setup(e,{slots:t,emit:n}){const r=Me("overlay"),o=c=>{n("click",c)},{onClick:a,onMousedown:s,onMouseup:l}=wd(e.customMaskEvent?void 0:o);return()=>e.mask?i.createVNode("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:a,onMousedown:s,onMouseup:l},[i.renderSlot(t,"default")],Nc.STYLE|Nc.CLASS|Nc.PROPS,["onClick","onMouseup","onMousedown"]):i.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[i.renderSlot(t,"default")])}});const U0=AD,j0=Je({center:{type:Boolean,default:!1},closeIcon:{type:Er,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),SD={close:()=>!0},TD=["aria-label"],kD=["id"],OD={name:"ElDialogContent"},PD=i.defineComponent({...OD,props:j0,emits:SD,setup(e){const t=e,{t:n}=oo(),{Close:r}=G4,{dialogRef:o,headerRef:a,bodyId:s,ns:l,style:c}=i.inject(rm),{focusTrapRef:u}=i.inject(Md),f=yd(u,o),d=i.computed(()=>t.draggable);return hm(o,a,d),(h,p)=>(i.openBlock(),i.createElementBlock("div",{ref:i.unref(f),class:i.normalizeClass([i.unref(l).b(),i.unref(l).is("fullscreen",h.fullscreen),i.unref(l).is("draggable",i.unref(d)),{[i.unref(l).m("center")]:h.center},h.customClass]),style:i.normalizeStyle(i.unref(c)),tabindex:"-1",onClick:p[1]||(p[1]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("header",{ref_key:"headerRef",ref:a,class:i.normalizeClass(i.unref(l).e("header"))},[i.renderSlot(h.$slots,"header",{},()=>[i.createElementVNode("span",{role:"heading",class:i.normalizeClass(i.unref(l).e("title"))},i.toDisplayString(h.title),3)]),h.showClose?(i.openBlock(),i.createElementBlock("button",{key:0,"aria-label":i.unref(n)("el.dialog.close"),class:i.normalizeClass(i.unref(l).e("headerbtn")),type:"button",onClick:p[0]||(p[0]=g=>h.$emit("close"))},[i.createVNode(i.unref(dt),{class:i.normalizeClass(i.unref(l).e("close"))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(h.closeIcon||i.unref(r))))]),_:1},8,["class"])],10,TD)):i.createCommentVNode("v-if",!0)],2),i.createElementVNode("div",{id:i.unref(s),class:i.normalizeClass(i.unref(l).e("body"))},[i.renderSlot(h.$slots,"default")],10,kD),h.$slots.footer?(i.openBlock(),i.createElementBlock("footer",{key:0,class:i.normalizeClass(i.unref(l).e("footer"))},[i.renderSlot(h.$slots,"footer")],2)):i.createCommentVNode("v-if",!0)],6))}});var _D=Ue(PD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const DD=Je({...j0,appendToBody:{type:Boolean,default:!1},beforeClose:{type:Ie(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,required:!0},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),ID={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[jt]:e=>Wn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},FD=(e,t)=>{const r=i.getCurrentInstance().emit,{nextZIndex:o}=Ps();let a="";const s=er(),l=er(),c=i.ref(!1),u=i.ref(!1),f=i.ref(!1),d=i.ref(e.zIndex||o());let h,p;const g=i.computed(()=>It(e.width)?`${e.width}px`:e.width),v=ka("namespace",Cm),m=i.computed(()=>{const B={},j=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(B[`${j}-margin-top`]=e.top),e.width&&(B[`${j}-width`]=g.value)),B});function y(){r("opened")}function E(){r("closed"),r(jt,!1),e.destroyOnClose&&(f.value=!1)}function x(){r("close")}function C(){p==null||p(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=fd(()=>T(),e.openDelay):T()}function A(){h==null||h(),p==null||p(),e.closeDelay&&e.closeDelay>0?{stop:p}=fd(()=>S(),e.closeDelay):S()}function w(){function B(j){j||(u.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(B):A()}function b(){e.closeOnClickModal&&w()}function T(){wt&&(c.value=!0)}function S(){c.value=!1}function _(){r("openAutoFocus")}function I(){r("closeAutoFocus")}e.lockScroll&&vm(c);function H(){e.closeOnPressEscape&&w()}return i.watch(()=>e.modelValue,B=>{B?(u.value=!1,C(),f.value=!0,r("open"),d.value=e.zIndex?d.value++:o(),i.nextTick(()=>{t.value&&(t.value.scrollTop=0)})):c.value&&A()}),i.watch(()=>e.fullscreen,B=>{t.value&&(B?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),i.onMounted(()=>{e.modelValue&&(c.value=!0,f.value=!0,C())}),{afterEnter:y,afterLeave:E,beforeLeave:x,handleClose:w,onModalClick:b,close:A,doClose:S,onOpenAutoFocus:_,onCloseAutoFocus:I,onCloseRequested:H,titleId:s,bodyId:l,closed:u,style:m,rendered:f,visible:c,zIndex:d}},ND=["aria-label","aria-labelledby","aria-describedby"],BD={name:"ElDialog"},RD=i.defineComponent({...BD,props:DD,emits:ID,setup(e,{expose:t}){const n=e,r=i.useSlots();dm({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"},i.computed(()=>!!r.title));const o=Me("dialog"),a=i.ref(),s=i.ref(),l=i.ref(),{visible:c,titleId:u,bodyId:f,style:d,rendered:h,zIndex:p,afterEnter:g,afterLeave:v,beforeLeave:m,handleClose:y,onModalClick:E,onOpenAutoFocus:x,onCloseAutoFocus:C,onCloseRequested:A}=FD(n,a);i.provide(rm,{dialogRef:a,headerRef:s,bodyId:f,ns:o,rendered:h,style:d});const w=wd(E),b=i.computed(()=>n.draggable&&!n.fullscreen);return t({visible:c,dialogContentRef:l}),(T,S)=>(i.openBlock(),i.createBlock(i.Teleport,{to:"body",disabled:!T.appendToBody},[i.createVNode(i.Transition,{name:"dialog-fade",onAfterEnter:i.unref(g),onAfterLeave:i.unref(v),onBeforeLeave:i.unref(m),persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createVNode(i.unref(U0),{"custom-mask-event":"",mask:T.modal,"overlay-class":T.modalClass,"z-index":i.unref(p)},{default:i.withCtx(()=>[i.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":T.title||void 0,"aria-labelledby":T.title?void 0:i.unref(u),"aria-describedby":i.unref(f),class:i.normalizeClass(`${i.unref(o).namespace.value}-overlay-dialog`),onClick:S[0]||(S[0]=(..._)=>i.unref(w).onClick&&i.unref(w).onClick(..._)),onMousedown:S[1]||(S[1]=(..._)=>i.unref(w).onMousedown&&i.unref(w).onMousedown(..._)),onMouseup:S[2]||(S[2]=(..._)=>i.unref(w).onMouseup&&i.unref(w).onMouseup(..._))},[i.createVNode(i.unref(Ld),{loop:"",trapped:i.unref(c),"focus-start-el":"container",onFocusAfterTrapped:i.unref(x),onFocusAfterReleased:i.unref(C),onReleaseRequested:i.unref(A)},{default:i.withCtx(()=>[i.unref(h)?(i.openBlock(),i.createBlock(_D,{key:0,ref_key:"dialogContentRef",ref:l,"custom-class":T.customClass,center:T.center,"close-icon":T.closeIcon,draggable:i.unref(b),fullscreen:T.fullscreen,"show-close":T.showClose,style:i.normalizeStyle(i.unref(d)),title:T.title,onClose:i.unref(y)},i.createSlots({header:i.withCtx(()=>[T.$slots.title?i.renderSlot(T.$slots,"title",{key:1}):i.renderSlot(T.$slots,"header",{key:0,close:i.unref(y),titleId:i.unref(u),titleClass:i.unref(o).e("title")})]),default:i.withCtx(()=>[i.renderSlot(T.$slots,"default")]),_:2},[T.$slots.footer?{name:"footer",fn:i.withCtx(()=>[i.renderSlot(T.$slots,"footer")])}:void 0]),1032,["custom-class","center","close-icon","draggable","fullscreen","show-close","style","title","onClose"])):i.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],42,ND)]),_:3},8,["mask","overlay-class","z-index"]),[[i.vShow,i.unref(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var MD=Ue(RD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const G0=Mt(MD),LD=Je({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Ie(String),default:"solid"}}),VD={name:"ElDivider"},HD=i.defineComponent({...VD,props:LD,setup(e){const t=e,n=Me("divider"),r=i.computed(()=>n.cssVar({"border-style":t.borderStyle}));return(o,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(n).b(),i.unref(n).m(o.direction)]),style:i.normalizeStyle(i.unref(r)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass([i.unref(n).e("text"),i.unref(n).is(o.contentPosition)])},[i.renderSlot(o.$slots,"default")],2)):i.createCommentVNode("v-if",!0)],6))}});var UD=Ue(HD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const jD=Mt(UD),GD={inheritAttrs:!1};function zD(e,t,n,r,o,a){return i.renderSlot(e.$slots,"default")}var WD=Ue(GD,[["render",zD],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const KD={name:"ElCollectionItem",inheritAttrs:!1};function YD(e,t,n,r,o,a){return i.renderSlot(e.$slots,"default")}var XD=Ue(KD,[["render",YD],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const z0="data-el-collection-item",W0=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),a={...WD,name:t,setup(){const l=i.ref(null),c=new Map,u=()=>{const f=i.unref(l);if(!f)return[];const d=Array.from(f.querySelectorAll(`[${z0}]`));return[...c.values()].sort((p,g)=>d.indexOf(p.ref)-d.indexOf(g.ref))};i.provide(r,{itemMap:c,getItems:u,collectionRef:l})}},s={...XD,name:n,setup(l,{attrs:c}){const u=i.ref(null),f=i.inject(r,void 0);i.provide(o,{collectionItemRef:u}),i.onMounted(()=>{const d=i.unref(u);d&&f.itemMap.set(d,{ref:d,...c})}),i.onBeforeUnmount(()=>{const d=i.unref(u);f.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:a,ElCollectionItem:s}},QD=Je({style:{type:Ie([String,Array,Object])},currentTabId:{type:Ie(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:Ie(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:JD,ElCollectionItem:ZD,COLLECTION_INJECTION_KEY:rh,COLLECTION_ITEM_INJECTION_KEY:qD}=W0("RovingFocusGroup"),ah=Symbol("elRovingFocusGroup"),K0=Symbol("elRovingFocusGroupItem"),$D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},eI=(e,t)=>{if(t!=="rtl")return e;switch(e){case bt.right:return bt.left;case bt.left:return bt.right;default:return e}},tI=(e,t,n)=>{const r=eI(e.key,n);if(!(t==="vertical"&&[bt.left,bt.right].includes(r))&&!(t==="horizontal"&&[bt.up,bt.down].includes(r)))return $D[r]},nI=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),sh=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Y0="currentTabIdChange",ih="rovingFocusGroup.entryFocus",oI={bubbles:!1,cancelable:!0},rI=i.defineComponent({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:QD,emits:[Y0,"entryFocus"],setup(e,{emit:t}){var n;const r=i.ref((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),o=i.ref(!1),a=i.ref(!1),s=i.ref(null),{getItems:l}=i.inject(rh,void 0),c=i.computed(()=>[{outline:"none"},e.style]),u=v=>{t(Y0,v)},f=()=>{o.value=!0},d=qt(v=>{var m;(m=e.onMousedown)==null||m.call(e,v)},()=>{a.value=!0}),h=qt(v=>{var m;(m=e.onFocus)==null||m.call(e,v)},v=>{const m=!i.unref(a),{target:y,currentTarget:E}=v;if(y===E&&m&&!i.unref(o)){const x=new Event(ih,oI);if(E==null||E.dispatchEvent(x),!x.defaultPrevented){const C=l().filter(S=>S.focusable),A=C.find(S=>S.active),w=C.find(S=>S.id===i.unref(r)),T=[A,w,...C].filter(Boolean).map(S=>S.ref);sh(T)}}a.value=!1}),p=qt(v=>{var m;(m=e.onBlur)==null||m.call(e,v)},()=>{o.value=!1}),g=(...v)=>{t("entryFocus",...v)};i.provide(ah,{currentTabbedId:i.readonly(r),loop:i.toRef(e,"loop"),tabIndex:i.computed(()=>i.unref(o)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:c,orientation:i.toRef(e,"orientation"),dir:i.toRef(e,"dir"),onItemFocus:u,onItemShiftTab:f,onBlur:p,onFocus:h,onMousedown:d}),i.watch(()=>e.currentTabId,v=>{r.value=v??null}),i.onMounted(()=>{const v=i.unref(s);Cs(v,ih,g)}),i.onBeforeUnmount(()=>{const v=i.unref(s);ws(v,ih,g)})}});function aI(e,t,n,r,o,a){return i.renderSlot(e.$slots,"default")}var sI=Ue(rI,[["render",aI],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const iI=i.defineComponent({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:JD,ElRovingFocusGroupImpl:sI}});function lI(e,t,n,r,o,a){const s=i.resolveComponent("el-roving-focus-group-impl"),l=i.resolveComponent("el-focus-group-collection");return i.openBlock(),i.createBlock(l,null,{default:i.withCtx(()=>[i.createVNode(s,i.normalizeProps(i.guardReactiveProps(e.$attrs)),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16)]),_:3})}var cI=Ue(iI,[["render",lI],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const uI=i.defineComponent({components:{ElRovingFocusCollectionItem:ZD},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:o,onItemShiftTab:a}=i.inject(ah,void 0),{getItems:s}=i.inject(rh,void 0),l=er(),c=i.ref(null),u=qt(p=>{t("mousedown",p)},p=>{e.focusable?o(i.unref(l)):p.preventDefault()}),f=qt(p=>{t("focus",p)},()=>{o(i.unref(l))}),d=qt(p=>{t("keydown",p)},p=>{const{key:g,shiftKey:v,target:m,currentTarget:y}=p;if(g===bt.tab&&v){a();return}if(m!==y)return;const E=tI(p);if(E){p.preventDefault();let C=s().filter(A=>A.focusable).map(A=>A.ref);switch(E){case"last":{C.reverse();break}case"prev":case"next":{E==="prev"&&C.reverse();const A=C.indexOf(y);C=r.value?nI(C,A+1):C.slice(A+1);break}}i.nextTick(()=>{sh(C)})}}),h=i.computed(()=>n.value===i.unref(l));return i.provide(K0,{rovingFocusGroupItemRef:c,tabIndex:i.computed(()=>i.unref(h)?0:-1),handleMousedown:u,handleFocus:f,handleKeydown:d}),{id:l,handleKeydown:d,handleFocus:f,handleMousedown:u}}});function fI(e,t,n,r,o,a){const s=i.resolveComponent("el-roving-focus-collection-item");return i.openBlock(),i.createBlock(s,{id:e.id,focusable:e.focusable,active:e.active},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var dI=Ue(uI,[["render",fI],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const hI=Je({trigger:Vd.trigger,effect:{...Uc.effect,default:"light"},type:{type:Ie(String)},placement:{type:Ie(String),default:"bottom"},popperOptions:{type:Ie(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Ie([Number,String]),default:0},maxHeight:{type:Ie([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Ie(Object)}}),X0=Je({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Er}}),pI=Je({onKeydown:{type:Ie(Function)}}),vI=[bt.down,bt.pageDown,bt.home],Q0=[bt.up,bt.pageUp,bt.end],gI=[...vI,...Q0],{ElCollection:mI,ElCollectionItem:yI,COLLECTION_INJECTION_KEY:xI,COLLECTION_ITEM_INJECTION_KEY:EI}=W0("Dropdown"),Qc=Symbol("elDropdown"),{ButtonGroup:CI}=Lo,wI=i.defineComponent({name:"ElDropdown",components:{ElButton:Lo,ElButtonGroup:CI,ElScrollbar:Ds,ElDropdownCollection:mI,ElTooltip:jc,ElRovingFocusGroup:cI,ElOnlyChild:km,ElIcon:dt,ArrowDown:Kg},props:hI,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=i.getCurrentInstance(),r=Me("dropdown"),{t:o}=oo(),a=i.ref(),s=i.ref(),l=i.ref(null),c=i.ref(null),u=i.ref(null),f=i.ref(null),d=i.ref(!1),h=[bt.enter,bt.space,bt.down],p=i.computed(()=>({maxHeight:xr(e.maxHeight)})),g=i.computed(()=>[r.m(C.value)]),v=er().value,m=i.computed(()=>e.id||v);function y(){E()}function E(){var j;(j=l.value)==null||j.onClose()}function x(){var j;(j=l.value)==null||j.onOpen()}const C=Yn();function A(...j){t("command",...j)}function w(){}function b(){const j=i.unref(c);j==null||j.focus(),f.value=null}function T(j){f.value=j}function S(j){d.value||(j.preventDefault(),j.stopImmediatePropagation())}function _(j){(j==null?void 0:j.type)==="keydown"&&c.value.focus(),t("visible-change",!0)}function I(){t("visible-change",!1)}return i.provide(Qc,{contentRef:c,role:i.computed(()=>e.role),triggerId:m,isUsingKeyboard:d,onItemEnter:w,onItemLeave:b}),i.provide("elDropdown",{instance:n,dropdownSize:C,handleClick:y,commandHandler:A,trigger:i.toRef(e,"trigger"),hideOnClick:i.toRef(e,"hideOnClick")}),{t:o,ns:r,scrollbar:u,wrapStyle:p,dropdownTriggerKls:g,dropdownSize:C,triggerId:m,triggerKeys:h,currentTabId:f,handleCurrentTabIdChange:T,handlerMainButtonClick:j=>{t("click",j)},handleEntryFocus:S,handleClose:E,handleOpen:x,handleShowTooltip:_,handleHideTooltip:I,onFocusAfterTrapped:j=>{var Z,q;j.preventDefault(),(q=(Z=c.value)==null?void 0:Z.focus)==null||q.call(Z,{preventScroll:!0})},popperRef:l,contentRef:c,triggeringElementRef:a,referenceElementRef:s}}});function bI(e,t,n,r,o,a){var s;const l=i.resolveComponent("el-dropdown-collection"),c=i.resolveComponent("el-roving-focus-group"),u=i.resolveComponent("el-scrollbar"),f=i.resolveComponent("el-only-child"),d=i.resolveComponent("el-tooltip"),h=i.resolveComponent("el-button"),p=i.resolveComponent("arrow-down"),g=i.resolveComponent("el-icon"),v=i.resolveComponent("el-button-group");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([e.ns.b(),e.ns.is("disabled",e.disabled)])},[i.createVNode(d,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(s=e.referenceElementRef)==null?void 0:s.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:"",pure:"",persistent:"",onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},i.createSlots({content:i.withCtx(()=>[i.createVNode(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:i.withCtx(()=>[i.createVNode(c,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:i.withCtx(()=>[i.createVNode(l,null,{default:i.withCtx(()=>[i.renderSlot(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:i.withCtx(()=>[i.createVNode(f,{id:e.triggerId,role:"button",tabindex:e.tabindex},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","onShow","onHide"]),e.splitButton?(i.openBlock(),i.createBlock(v,{key:0},{default:i.withCtx(()=>[i.createVNode(h,i.mergeProps({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),i.createVNode(h,i.mergeProps({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:i.withCtx(()=>[i.createVNode(g,{class:i.normalizeClass(e.ns.e("icon"))},{default:i.withCtx(()=>[i.createVNode(p)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):i.createCommentVNode("v-if",!0)],2)}var AI=Ue(wI,[["render",bI],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const SI=i.defineComponent({name:"DropdownItemImpl",components:{ElIcon:dt},props:X0,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Me("dropdown"),{role:r}=i.inject(Qc,void 0),{collectionItemRef:o}=i.inject(EI,void 0),{collectionItemRef:a}=i.inject(qD,void 0),{rovingFocusGroupItemRef:s,tabIndex:l,handleFocus:c,handleKeydown:u,handleMousedown:f}=i.inject(K0,void 0),d=yd(o,a,s),h=i.computed(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),p=qt(g=>{const{code:v}=g;if(v===bt.enter||v===bt.space)return g.preventDefault(),g.stopImmediatePropagation(),t("clickimpl",g),!0},u);return{ns:n,itemRef:d,dataset:{[z0]:""},role:h,tabIndex:l,handleFocus:c,handleKeydown:p,handleMousedown:f}}}),TI=["aria-disabled","tabindex","role"];function kI(e,t,n,r,o,a){const s=i.resolveComponent("el-icon");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.divided?(i.openBlock(),i.createElementBlock("li",i.mergeProps({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):i.createCommentVNode("v-if",!0),i.createElementVNode("li",i.mergeProps({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]=l=>e.$emit("clickimpl",l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onKeydown:t[2]||(t[2]=(...l)=>e.handleKeydown&&e.handleKeydown(...l)),onMousedown:t[3]||(t[3]=(...l)=>e.handleMousedown&&e.handleMousedown(...l)),onPointermove:t[4]||(t[4]=l=>e.$emit("pointermove",l)),onPointerleave:t[5]||(t[5]=l=>e.$emit("pointerleave",l))}),[e.icon?(i.openBlock(),i.createBlock(s,{key:0},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.icon)))]),_:1})):i.createCommentVNode("v-if",!0),i.renderSlot(e.$slots,"default")],16,TI)],64)}var OI=Ue(SI,[["render",kI],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const J0=()=>{const e=i.inject("elDropdown",{}),t=i.computed(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},PI=i.defineComponent({name:"ElDropdownItem",components:{ElDropdownCollectionItem:yI,ElRovingFocusItem:dI,ElDropdownItemImpl:OI},inheritAttrs:!1,props:X0,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=J0(),o=i.getCurrentInstance(),a=i.ref(null),s=i.computed(()=>{var p,g;return(g=(p=i.unref(a))==null?void 0:p.textContent)!=null?g:""}),{onItemEnter:l,onItemLeave:c}=i.inject(Qc,void 0),u=qt(p=>(t("pointermove",p),p.defaultPrevented),Ng(p=>{var g;e.disabled?c(p):(l(p),p.defaultPrevented||(g=p.currentTarget)==null||g.focus())})),f=qt(p=>(t("pointerleave",p),p.defaultPrevented),Ng(p=>{c(p)})),d=qt(p=>(t("click",p),p.type!=="keydown"&&p.defaultPrevented),p=>{var g,v,m;if(e.disabled){p.stopImmediatePropagation();return}(g=r==null?void 0:r.hideOnClick)!=null&&g.value&&((v=r.handleClick)==null||v.call(r)),(m=r.commandHandler)==null||m.call(r,e.command,o,p)}),h=i.computed(()=>({...e,...n}));return{handleClick:d,handlePointerMove:u,handlePointerLeave:f,textContent:s,propsAndAttrs:h}}});function _I(e,t,n,r,o,a){var s;const l=i.resolveComponent("el-dropdown-item-impl"),c=i.resolveComponent("el-roving-focus-item"),u=i.resolveComponent("el-dropdown-collection-item");return i.openBlock(),i.createBlock(u,{disabled:e.disabled,"text-value":(s=e.textValue)!=null?s:e.textContent},{default:i.withCtx(()=>[i.createVNode(c,{focusable:!e.disabled},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Z0=Ue(PI,[["render",_I],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const DI=i.defineComponent({name:"ElDropdownMenu",props:pI,setup(e){const t=Me("dropdown"),{_elDropdownSize:n}=J0(),r=n.value,{focusTrapRef:o,onKeydown:a}=i.inject(Md,void 0),{contentRef:s,role:l,triggerId:c}=i.inject(Qc,void 0),{collectionRef:u,getItems:f}=i.inject(xI,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:h,tabIndex:p,onBlur:g,onFocus:v,onMousedown:m}=i.inject(ah,void 0),{collectionRef:y}=i.inject(rh,void 0),E=i.computed(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),x=yd(s,u,o,d,y),C=qt(w=>{var b;(b=e.onKeydown)==null||b.call(e,w)},w=>{const{currentTarget:b,code:T,target:S}=w;if(b.contains(S),bt.tab===T&&w.stopImmediatePropagation(),w.preventDefault(),S!==i.unref(s)||!gI.includes(T))return;const I=f().filter(H=>!H.disabled).map(H=>H.ref);Q0.includes(T)&&I.reverse(),sh(I)});return{size:r,rovingFocusGroupRootStyle:h,tabIndex:p,dropdownKls:E,role:l,triggerId:c,dropdownListWrapperRef:x,handleKeydown:w=>{C(w),a(w)},onBlur:g,onFocus:v,onMousedown:m}}}),II=["role","aria-labelledby"];function FI(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("ul",{ref:e.dropdownListWrapperRef,class:i.normalizeClass(e.dropdownKls),style:i.normalizeStyle(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...s)=>e.onBlur&&e.onBlur(...s)),onFocus:t[1]||(t[1]=(...s)=>e.onFocus&&e.onFocus(...s)),onKeydown:t[2]||(t[2]=(...s)=>e.handleKeydown&&e.handleKeydown(...s)),onMousedown:t[3]||(t[3]=(...s)=>e.onMousedown&&e.onMousedown(...s))},[i.renderSlot(e.$slots,"default")],46,II)}var q0=Ue(DI,[["render",FI],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const NI=Mt(AI,{DropdownItem:Z0,DropdownMenu:q0});Rn(Z0),Rn(q0);const BI=Je({model:Object,rules:{type:Ie(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:zi},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),RI={validate:(e,t,n)=>(hd(e)||Ot(e))&&Wn(t)&&Ot(n)},MI="ElForm";function LI(){const e=i.ref([]),t=i.computed(()=>{if(!e.value.length)return"0";const a=Math.max(...e.value);return a?`${a}px`:""});function n(a){const s=e.value.indexOf(a);return s===-1&&vt(MI,`unexpected width ${a}`),s}function r(a,s){if(a&&s){const l=n(s);e.value.splice(l,1,a)}else a&&e.value.push(a)}function o(a){const s=n(a);s>-1&&e.value.splice(s,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:o}}const Jc=(e,t)=>{const n=td(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},VI={name:"ElForm"},HI=i.defineComponent({...VI,props:BI,emits:RI,setup(e,{expose:t,emit:n}){const r=e,o="ElForm",a=[],s=Yn(),l=Me("form"),c=i.computed(()=>{const{labelPosition:x,inline:C}=r;return[l.b(),l.m(s.value||"default"),{[l.m(`label-${x}`)]:x,[l.m("inline")]:C}]}),u=x=>{a.push(x)},f=x=>{x.prop&&a.splice(a.indexOf(x),1)},d=(x=[])=>{if(!r.model){vt(o,"model is required for resetFields to work.");return}Jc(a,x).forEach(C=>C.resetField())},h=(x=[])=>{Jc(a,x).forEach(C=>C.clearValidate())},p=i.computed(()=>{const x=!!r.model;return x||vt(o,"model is required for validate to work."),x}),g=x=>{if(a.length===0)return[];const C=Jc(a,x);return C.length?C:(vt(o,"please pass correct props!"),[])},v=async x=>y(void 0,x),m=async(x=[])=>{if(!p.value)return!1;const C=g(x);if(C.length===0)return!0;let A={};for(const w of C)try{await w.validate("")}catch(b){A={...A,...b}}return Object.keys(A).length===0?!0:Promise.reject(A)},y=async(x=[],C)=>{const A=!mo(C);try{const w=await m(x);return w===!0&&(C==null||C(w)),w}catch(w){const b=w;return r.scrollToError&&E(Object.keys(b)[0]),C==null||C(!1,b),A&&Promise.reject(b)}},E=x=>{var C;const A=Jc(a,x)[0];A&&((C=A.$el)==null||C.scrollIntoView())};return i.watch(()=>r.rules,()=>{r.validateOnRuleChange&&v().catch(x=>vt(x))},{deep:!0}),i.provide(zr,i.reactive({...i.toRefs(r),emit:n,resetFields:d,clearValidate:h,validateField:y,addField:u,removeField:f,...LI()})),t({validate:v,validateField:y,resetFields:d,clearValidate:h,scrollToField:E}),(x,C)=>(i.openBlock(),i.createElementBlock("form",{class:i.normalizeClass(i.unref(c))},[i.renderSlot(x.$slots,"default")],2))}});var UI=Ue(HI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Ra(){return Ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ra.apply(this,arguments)}function jI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,el(e,t)}function lh(e){return lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lh(e)}function el(e,t){return el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},el(e,t)}function GI(){if(typeof Reflect>"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 Zc(e,t,n){return GI()?Zc=Reflect.construct.bind():Zc=function(o,a,s){var l=[null];l.push.apply(l,a);var c=Function.bind.apply(o,l),u=new c;return s&&el(u,s.prototype),u},Zc.apply(null,arguments)}function zI(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ch(e){var t=typeof Map=="function"?new Map:void 0;return ch=function(r){if(r===null||!zI(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return Zc(r,arguments,lh(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),el(o,r)},ch(e)}var WI=/%[sdj%]/g,$0=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&($0=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function uh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function ao(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(WI,function(l){if(l==="%%")return"%";if(o>=a)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return s}return e}function KI(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function an(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||KI(t)&&typeof e=="string"&&!e)}function YI(e,t,n){var r=[],o=0,a=e.length;function s(l){r.push.apply(r,l||[]),o++,o===a&&n(r)}e.forEach(function(l){t(l,s)})}function ey(e,t,n){var r=0,o=e.length;function a(s){if(s&&s.length){n(s);return}var l=r;r=r+1,l<o?t(e[l],a):n([])}a([])}function XI(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var ty=function(e){jI(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(ch(Error));function QI(e,t,n,r,o){if(t.first){var a=new Promise(function(h,p){var g=function(y){return r(y),y.length?p(new ty(y,uh(y))):h(o)},v=XI(e);ey(v,n,g)});return a.catch(function(h){return h}),a}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,u=0,f=[],d=new Promise(function(h,p){var g=function(m){if(f.push.apply(f,m),u++,u===c)return r(f),f.length?p(new ty(f,uh(f))):h(o)};l.length||(r(f),h(o)),l.forEach(function(v){var m=e[v];s.indexOf(v)!==-1?ey(m,n,g):YI(m,n,g)})});return d.catch(function(h){return h}),d}function JI(e){return!!(e&&e.message!==void 0)}function ZI(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function ny(e,t){return function(n){var r;return e.fullFields?r=ZI(t,e.fullFields):r=t[n.field||e.fullField],JI(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function oy(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Ra({},e[n],r):e[n]=r}}return e}var ry=function(t,n,r,o,a,s){t.required&&(!r.hasOwnProperty(t.field)||an(n,s||t.type))&&o.push(ao(a.messages.required,t.fullField))},qI=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(ao(a.messages.whitespace,t.fullField))},qc,$I=function(){if(qc)return qc;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
29
+ (?:
30
+ (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
31
+ (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
32
+ (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
33
+ (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
34
+ (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
35
+ (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
36
+ (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
37
+ (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
38
+ )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
39
+ `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),s=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),c=function(C){return C&&C.exact?a:new RegExp("(?:"+t(C)+n+t(C)+")|(?:"+t(C)+o+t(C)+")","g")};c.v4=function(x){return x&&x.exact?s:new RegExp(""+t(x)+n+t(x),"g")},c.v6=function(x){return x&&x.exact?l:new RegExp(""+t(x)+o+t(x),"g")};var u="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",d=c.v4().source,h=c.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',E="(?:"+u+"|www\\.)"+f+"(?:localhost|"+d+"|"+h+"|"+p+g+v+")"+m+y;return qc=new RegExp("(?:^"+E+"$)","i"),qc},ay={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},tl={integer:function(t){return tl.number(t)&&parseInt(t,10)===t},float:function(t){return tl.number(t)&&!tl.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"&&!tl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(ay.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match($I())},hex:function(t){return typeof t=="string"&&!!t.match(ay.hex)}},e3=function(t,n,r,o,a){if(t.required&&n===void 0){ry(t,n,r,o,a);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;s.indexOf(l)>-1?tl[l](n)||o.push(ao(a.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(ao(a.messages.types[l],t.fullField,t.type))},t3=function(t,n,r,o,a){var s=typeof t.len=="number",l=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,d=null,h=typeof n=="number",p=typeof n=="string",g=Array.isArray(n);if(h?d="number":p?d="string":g&&(d="array"),!d)return!1;g&&(f=n.length),p&&(f=n.replace(u,"_").length),s?f!==t.len&&o.push(ao(a.messages[d].len,t.fullField,t.len)):l&&!c&&f<t.min?o.push(ao(a.messages[d].min,t.fullField,t.min)):c&&!l&&f>t.max?o.push(ao(a.messages[d].max,t.fullField,t.max)):l&&c&&(f<t.min||f>t.max)&&o.push(ao(a.messages[d].range,t.fullField,t.min,t.max))},Hs="enum",n3=function(t,n,r,o,a){t[Hs]=Array.isArray(t[Hs])?t[Hs]:[],t[Hs].indexOf(n)===-1&&o.push(ao(a.messages[Hs],t.fullField,t[Hs].join(", ")))},o3=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(ao(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||o.push(ao(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},st={required:ry,whitespace:qI,type:e3,range:t3,enum:n3,pattern:o3},r3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(an(n,"string")&&!t.required)return r();st.required(t,n,o,s,a,"string"),an(n,"string")||(st.type(t,n,o,s,a),st.range(t,n,o,s,a),st.pattern(t,n,o,s,a),t.whitespace===!0&&st.whitespace(t,n,o,s,a))}r(s)},a3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(an(n)&&!t.required)return r();st.required(t,n,o,s,a),n!==void 0&&st.type(t,n,o,s,a)}r(s)},s3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),an(n)&&!t.required)return r();st.required(t,n,o,s,a),n!==void 0&&(st.type(t,n,o,s,a),st.range(t,n,o,s,a))}r(s)},i3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(an(n)&&!t.required)return r();st.required(t,n,o,s,a),n!==void 0&&st.type(t,n,o,s,a)}r(s)},l3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(an(n)&&!t.required)return r();st.required(t,n,o,s,a),an(n)||st.type(t,n,o,s,a)}r(s)},c3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(an(n)&&!t.required)return r();st.required(t,n,o,s,a),n!==void 0&&(st.type(t,n,o,s,a),st.range(t,n,o,s,a))}r(s)},u3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(an(n)&&!t.required)return r();st.required(t,n,o,s,a),n!==void 0&&(st.type(t,n,o,s,a),st.range(t,n,o,s,a))}r(s)},f3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();st.required(t,n,o,s,a,"array"),n!=null&&(st.type(t,n,o,s,a),st.range(t,n,o,s,a))}r(s)},d3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(an(n)&&!t.required)return r();st.required(t,n,o,s,a),n!==void 0&&st.type(t,n,o,s,a)}r(s)},h3="enum",p3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(an(n)&&!t.required)return r();st.required(t,n,o,s,a),n!==void 0&&st[h3](t,n,o,s,a)}r(s)},v3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(an(n,"string")&&!t.required)return r();st.required(t,n,o,s,a),an(n,"string")||st.pattern(t,n,o,s,a)}r(s)},g3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(an(n,"date")&&!t.required)return r();if(st.required(t,n,o,s,a),!an(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),st.type(t,c,o,s,a),c&&st.range(t,c.getTime(),o,s,a)}}r(s)},m3=function(t,n,r,o,a){var s=[],l=Array.isArray(n)?"array":typeof n;st.required(t,n,o,s,a,l),r(s)},fh=function(t,n,r,o,a){var s=t.type,l=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(an(n,s)&&!t.required)return r();st.required(t,n,o,l,a,s),an(n,s)||st.type(t,n,o,l,a)}r(l)},y3=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(an(n)&&!t.required)return r();st.required(t,n,o,s,a)}r(s)},nl={string:r3,method:a3,number:s3,boolean:i3,regexp:l3,integer:c3,float:u3,array:f3,object:d3,enum:p3,pattern:v3,date:g3,url:fh,hex:fh,email:fh,required:m3,any:y3};function dh(){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 hh=dh(),ol=function(){function e(n){this.rules=null,this._messages=hh,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var s=r[a];o.rules[a]=Array.isArray(s)?s:[s]})},t.messages=function(r){return r&&(this._messages=oy(dh(),r)),this._messages},t.validate=function(r,o,a){var s=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var l=r,c=o,u=a;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function f(v){var m=[],y={};function E(C){if(Array.isArray(C)){var A;m=(A=m).concat.apply(A,C)}else m.push(C)}for(var x=0;x<v.length;x++)E(v[x]);m.length?(y=uh(m),u(m,y)):u(null,l)}if(c.messages){var d=this.messages();d===hh&&(d=dh()),oy(d,c.messages),c.messages=d}else c.messages=this.messages();var h={},p=c.keys||Object.keys(this.rules);p.forEach(function(v){var m=s.rules[v],y=l[v];m.forEach(function(E){var x=E;typeof x.transform=="function"&&(l===r&&(l=Ra({},l)),y=l[v]=x.transform(y)),typeof x=="function"?x={validator:x}:x=Ra({},x),x.validator=s.getValidationMethod(x),x.validator&&(x.field=v,x.fullField=x.fullField||v,x.type=s.getType(x),h[v]=h[v]||[],h[v].push({rule:x,value:y,source:l,field:v}))})});var g={};return QI(h,c,function(v,m){var y=v.rule,E=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");E=E&&(y.required||!y.required&&v.value),y.field=v.field;function x(w,b){return Ra({},b,{fullField:y.fullField+"."+w,fullFields:y.fullFields?[].concat(y.fullFields,[w]):[w]})}function C(w){w===void 0&&(w=[]);var b=Array.isArray(w)?w:[w];!c.suppressWarning&&b.length&&e.warning("async-validator:",b),b.length&&y.message!==void 0&&(b=[].concat(y.message));var T=b.map(ny(y,l));if(c.first&&T.length)return g[y.field]=1,m(T);if(!E)m(T);else{if(y.required&&!v.value)return y.message!==void 0?T=[].concat(y.message).map(ny(y,l)):c.error&&(T=[c.error(y,ao(c.messages.required,y.field))]),m(T);var S={};y.defaultField&&Object.keys(v.value).map(function(H){S[H]=y.defaultField}),S=Ra({},S,v.rule.fields);var _={};Object.keys(S).forEach(function(H){var B=S[H],j=Array.isArray(B)?B:[B];_[H]=j.map(x.bind(null,H))});var I=new e(_);I.messages(c.messages),v.rule.options&&(v.rule.options.messages=c.messages,v.rule.options.error=c.error),I.validate(v.value,v.rule.options||c,function(H){var B=[];T&&T.length&&B.push.apply(B,T),H&&H.length&&B.push.apply(B,H),m(B.length?B:null)})}}var A;if(y.asyncValidator)A=y.asyncValidator(y,v.value,C,v.source,c);else if(y.validator){try{A=y.validator(y,v.value,C,v.source,c)}catch(w){console.error==null||console.error(w),c.suppressValidatorError||setTimeout(function(){throw w},0),C(w.message)}A===!0?C():A===!1?C(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):A instanceof Array?C(A):A instanceof Error&&C(A.message)}A&&A.then&&A.then(function(){return C()},function(w){return C(w)})},function(v){f(v)},l)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!nl.hasOwnProperty(r.type))throw new Error(ao("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),a=o.indexOf("message");return a!==-1&&o.splice(a,1),o.length===1&&o[0]==="required"?nl.required:nl[this.getType(r)]||void 0},e}();ol.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");nl[t]=n},ol.warning=$0,ol.messages=hh,ol.validators=nl;const x3=["","error","validating","success"],E3=Je({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Ie([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Ie([Object,Array])},error:String,validateStatus:{type:String,values:x3},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:zi}}),sy="ElLabelWrap";var C3=i.defineComponent({name:sy,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=i.inject(zr,void 0);i.inject(Cr)||Ta(sy,"usage: <el-form-item><label-wrap /></el-form-item>");const o=Me("form"),a=i.ref(),s=i.ref(0),l=()=>{var f;if((f=a.value)!=null&&f.firstElementChild){const d=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},c=(f="update")=>{i.nextTick(()=>{t.default&&e.isAutoWidth&&(f==="update"?s.value=l():f==="remove"&&(n==null||n.deregisterLabelWidth(s.value)))})},u=()=>c("update");return i.onMounted(()=>{u()}),i.onBeforeUnmount(()=>{c("remove")}),i.onUpdated(()=>u()),i.watch(s,(f,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(f,d))}),bs(i.computed(()=>{var f,d;return(d=(f=a.value)==null?void 0:f.firstElementChild)!=null?d:null}),u),()=>{var f,d;if(!t)return null;const{isAutoWidth:h}=e;if(h){const p=n==null?void 0:n.autoLabelWidth,g={};if(p&&p!=="auto"){const v=Math.max(0,Number.parseInt(p,10)-s.value),m=n.labelPosition==="left"?"marginRight":"marginLeft";v&&(g[m]=`${v}px`)}return i.createVNode("div",{ref:a,class:[o.be("item","label-wrap")],style:g},[(f=t.default)==null?void 0:f.call(t)])}else return i.createVNode(i.Fragment,{ref:a},[(d=t.default)==null?void 0:d.call(t)])}}});const w3=["role","aria-labelledby"],b3={name:"ElFormItem"},A3=i.defineComponent({...b3,props:E3,setup(e,{expose:t}){const n=e,r=i.useSlots(),o=i.inject(zr,void 0),a=i.inject(Cr,void 0),s=Yn(void 0,{formItem:!1}),l=Me("form-item"),c=er().value,u=i.ref([]),f=i.ref(""),d=ZT(f,100),h=i.ref(""),p=i.ref();let g,v=!1;const m=i.computed(()=>{if((o==null?void 0:o.labelPosition)==="top")return{};const ne=xr(n.labelWidth||(o==null?void 0:o.labelWidth)||"");return ne?{width:ne}:{}}),y=i.computed(()=>{if((o==null?void 0:o.labelPosition)==="top"||o!=null&&o.inline)return{};if(!n.label&&!n.labelWidth&&S)return{};const ne=xr(n.labelWidth||(o==null?void 0:o.labelWidth)||"");return!n.label&&!r.label?{marginLeft:ne}:{}}),E=i.computed(()=>[l.b(),l.m(s.value),l.is("error",f.value==="error"),l.is("validating",f.value==="validating"),l.is("success",f.value==="success"),l.is("required",j.value||n.required),l.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),{[l.m("feedback")]:o==null?void 0:o.statusIcon}]),x=i.computed(()=>Wn(n.inlineMessage)?n.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),C=i.computed(()=>[l.e("error"),{[l.em("error","inline")]:x.value}]),A=i.computed(()=>n.prop?Ot(n.prop)?n.prop:n.prop.join("."):""),w=i.computed(()=>!!(n.label||r.label)),b=i.computed(()=>n.for||u.value.length===1?u.value[0]:void 0),T=i.computed(()=>!b.value&&w.value),S=!!a,_=i.computed(()=>{const ne=o==null?void 0:o.model;if(!(!ne||!n.prop))return Oc(ne,n.prop).value}),I=i.computed(()=>{const ne=n.rules?td(n.rules):[],ce=o==null?void 0:o.rules;if(ce&&n.prop){const Q=Oc(ce,n.prop).value;Q&&ne.push(...td(Q))}return n.required!==void 0&&ne.push({required:!!n.required}),ne}),H=i.computed(()=>I.value.length>0),B=ne=>I.value.filter(Q=>!Q.trigger||!ne?!0:Array.isArray(Q.trigger)?Q.trigger.includes(ne):Q.trigger===ne).map(({trigger:Q,...X})=>X),j=i.computed(()=>I.value.some(ne=>ne.required===!0)),Z=i.computed(()=>{var ne;return d.value==="error"&&n.showMessage&&((ne=o==null?void 0:o.showMessage)!=null?ne:!0)}),q=i.computed(()=>`${n.label||""}${(o==null?void 0:o.labelSuffix)||""}`),K=ne=>{f.value=ne},oe=ne=>{var ce,Q;const{errors:X,fields:de}=ne;(!X||!de)&&console.error(ne),K("error"),h.value=X?(Q=(ce=X==null?void 0:X[0])==null?void 0:ce.message)!=null?Q:`${n.prop} is required`:"",o==null||o.emit("validate",n.prop,!1,h.value)},ge=()=>{K("success"),o==null||o.emit("validate",n.prop,!0,"")},Ae=async ne=>{const ce=A.value;return new ol({[ce]:ne}).validate({[ce]:_.value},{firstFields:!0}).then(()=>(ge(),!0)).catch(X=>(oe(X),Promise.reject(X)))},pe=async(ne,ce)=>{if(v)return v=!1,!1;const Q=mo(ce);if(!H.value)return ce==null||ce(!1),!1;const X=B(ne);return X.length===0?(ce==null||ce(!0),!0):(K("validating"),Ae(X).then(()=>(ce==null||ce(!0),!0)).catch(de=>{const{fields:me}=de;return ce==null||ce(!1,me),Q?!1:Promise.reject(me)}))},P=()=>{K(""),h.value=""},G=async()=>{const ne=o==null?void 0:o.model;if(!ne||!n.prop)return;const ce=Oc(ne,n.prop);Sc(ce.value,g)||(v=!0),ce.value=Sg(g),await i.nextTick(),P()},z=ne=>{u.value.includes(ne)||u.value.push(ne)},U=ne=>{u.value=u.value.filter(ce=>ce!==ne)};i.watch(()=>n.error,ne=>{h.value=ne||"",K(ne?"error":"")},{immediate:!0}),i.watch(()=>n.validateStatus,ne=>K(ne||""));const J=i.reactive({...i.toRefs(n),$el:p,size:s,validateState:f,labelId:c,inputIds:u,isGroup:T,addInputId:z,removeInputId:U,resetField:G,clearValidate:P,validate:pe});return i.provide(Cr,J),i.onMounted(()=>{n.prop&&(o==null||o.addField(J),g=Sg(_.value))}),i.onBeforeUnmount(()=>{o==null||o.removeField(J)}),t({size:s,validateMessage:h,validateState:f,validate:pe,clearValidate:P,resetField:G}),(ne,ce)=>{var Q;return i.openBlock(),i.createElementBlock("div",{ref_key:"formItemRef",ref:p,class:i.normalizeClass(i.unref(E)),role:i.unref(T)?"group":void 0,"aria-labelledby":i.unref(T)?i.unref(c):void 0},[i.createVNode(i.unref(C3),{"is-auto-width":i.unref(m).width==="auto","update-all":((Q=i.unref(o))==null?void 0:Q.labelWidth)==="auto"},{default:i.withCtx(()=>[i.unref(w)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(b)?"label":"div"),{key:0,id:i.unref(c),for:i.unref(b),class:i.normalizeClass(i.unref(l).e("label")),style:i.normalizeStyle(i.unref(m))},{default:i.withCtx(()=>[i.renderSlot(ne.$slots,"label",{label:i.unref(q)},()=>[i.createTextVNode(i.toDisplayString(i.unref(q)),1)])]),_:3},8,["id","for","class","style"])):i.createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),i.createElementVNode("div",{class:i.normalizeClass(i.unref(l).e("content")),style:i.normalizeStyle(i.unref(y))},[i.renderSlot(ne.$slots,"default"),i.createVNode(i.Transition,{name:`${i.unref(l).namespace.value}-zoom-in-top`},{default:i.withCtx(()=>[i.unref(Z)?i.renderSlot(ne.$slots,"error",{key:0,error:h.value},()=>[i.createElementVNode("div",{class:i.normalizeClass(i.unref(C))},i.toDisplayString(h.value),3)]):i.createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,w3)}}});var iy=Ue(A3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Us=Mt(UI,{FormItem:iy}),rl=Rn(iy),S3=Je({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String}}),T3={click:e=>e instanceof MouseEvent},k3=["disabled","aria-disabled"],O3={key:0},P3={name:"ElPaginationPrev"},_3=i.defineComponent({...P3,props:S3,emits:T3,setup(e){const t=e,n=i.computed(()=>t.disabled||t.currentPage<=1);return(r,o)=>(i.openBlock(),i.createElementBlock("button",{type:"button",class:"btn-prev",disabled:i.unref(n),"aria-disabled":i.unref(n),onClick:o[0]||(o[0]=a=>r.$emit("click",a))},[r.prevText?(i.openBlock(),i.createElementBlock("span",O3,i.toDisplayString(r.prevText),1)):(i.openBlock(),i.createBlock(i.unref(dt),{key:1},{default:i.withCtx(()=>[i.createVNode(i.unref(v4))]),_:1}))],8,k3))}});var D3=Ue(_3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const I3=Je({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String}}),F3=["disabled","aria-disabled"],N3={key:0},B3={name:"ElPaginationNext"},R3=i.defineComponent({...B3,props:I3,emits:["click"],setup(e){const t=e,n=i.computed(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,o)=>(i.openBlock(),i.createElementBlock("button",{type:"button",class:"btn-next",disabled:i.unref(n),"aria-disabled":i.unref(n),onClick:o[0]||(o[0]=a=>r.$emit("click",a))},[r.nextText?(i.openBlock(),i.createElementBlock("span",N3,i.toDisplayString(r.nextText),1)):(i.openBlock(),i.createBlock(i.unref(dt),{key:1},{default:i.withCtx(()=>[i.createVNode(i.unref(vd))]),_:1}))],8,F3))}});var M3=Ue(R3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const ly="ElSelectGroup",$c="ElSelect";function L3(e,t){const n=i.inject($c),r=i.inject(ly,{disabled:!1}),o=i.computed(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),a=i.computed(()=>n.props.multiple?d(n.props.modelValue,e.value):h(e.value,n.props.modelValue)),s=i.computed(()=>{if(n.props.multiple){const v=n.props.modelValue||[];return!a.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),l=i.computed(()=>e.label||(o.value?"":e.value)),c=i.computed(()=>e.value||e.label||""),u=i.computed(()=>e.disabled||t.groupDisabled||s.value),f=i.getCurrentInstance(),d=(v=[],m)=>{if(o.value){const y=n.props.valueKey;return v&&v.some(E=>Bn(E,y)===Bn(m,y))}else return v&&v.includes(m)},h=(v,m)=>{if(o.value){const{valueKey:y}=n.props;return Bn(v,y)===Bn(m,y)}else return v===m},p=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(f.proxy))};i.watch(()=>l.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),i.watch(()=>e.value,(v,m)=>{const{remote:y,valueKey:E}=n.props;if(!e.created&&!y){if(E&&typeof v=="object"&&typeof m=="object"&&v[E]===m[E])return;n.setSelected()}}),i.watch(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:g}=i.toRaw(n);return i.watch(g,v=>{const{query:m}=i.unref(v),y=new RegExp(l4(m),"i");t.visible=y.test(l.value)||e.created,t.visible||n.filteredOptionsCount--}),{select:n,currentLabel:l,currentValue:c,itemSelected:a,isDisabled:u,hoverItem:p}}const V3=i.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=Me("select"),n=i.reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:o,isDisabled:a,select:s,hoverItem:l}=L3(e,n),{visible:c,hover:u}=i.toRefs(n),f=i.getCurrentInstance().proxy,d=f.value;s.onOptionCreate(f),i.onBeforeUnmount(()=>{const{selected:p}=s,v=(s.props.multiple?p:[p]).some(m=>m.value===f.value);s.cachedOptions.get(d)===f&&!v&&i.nextTick(()=>{s.cachedOptions.delete(d)}),s.onOptionDestroy(d,f)});function h(){e.disabled!==!0&&n.groupDisabled!==!0&&s.handleOptionSelect(f,!0)}return{ns:t,currentLabel:r,itemSelected:o,isDisabled:a,select:s,hoverItem:l,visible:c,hover:u,selectOptionClick:h,states:n}}});function H3(e,t,n,r,o,a){return i.withDirectives((i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:t[1]||(t[1]=i.withModifiers((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[i.renderSlot(e.$slots,"default",{},()=>[i.createElementVNode("span",null,i.toDisplayString(e.currentLabel),1)])],34)),[[i.vShow,e.visible]])}var ph=Ue(V3,[["render",H3],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const U3=i.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=i.inject($c),t=Me("select"),n=i.computed(()=>e.props.popperClass),r=i.computed(()=>e.props.multiple),o=i.computed(()=>e.props.fitInputWidth),a=i.ref("");function s(){var l;a.value=`${(l=e.selectWrapper)==null?void 0:l.getBoundingClientRect().width}px`}return i.onMounted(()=>{s(),bs(e.selectWrapper,s)}),{ns:t,minWidth:a,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function j3(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:i.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[i.renderSlot(e.$slots,"default")],6)}var G3=Ue(U3,[["render",j3],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function z3(e){const{t}=oo();return i.reactive({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const W3=(e,t,n)=>{const{t:r}=oo(),o=Me("select"),a=i.ref(null),s=i.ref(null),l=i.ref(null),c=i.ref(null),u=i.ref(null),f=i.ref(null),d=i.ref(-1),h=i.shallowRef({query:""}),p=i.shallowRef(""),g=i.inject(zr,{}),v=i.inject(Cr,{}),m=i.computed(()=>!e.filterable||e.multiple||!t.visible),y=i.computed(()=>e.disabled||g.disabled),E=i.computed(()=>{const k=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!y.value&&t.inputHovering&&k}),x=i.computed(()=>e.remote&&e.filterable?"":e.suffixIcon),C=i.computed(()=>o.is("reverse",x.value&&t.visible)),A=i.computed(()=>e.remote?300:0),w=i.computed(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),b=i.computed(()=>Array.from(t.options.values())),T=i.computed(()=>Array.from(t.cachedOptions.values())),S=i.computed(()=>{const k=b.value.filter(L=>!L.created).some(L=>L.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!k}),_=Yn(),I=i.computed(()=>["small"].includes(_.value)?"small":"default"),H=i.computed({get(){return t.visible&&w.value!==!1},set(k){t.visible=k}});i.watch([()=>y.value,()=>_.value,()=>g.size],()=>{i.nextTick(()=>{B()})}),i.watch(()=>e.placeholder,k=>{t.cachedPlaceHolder=t.currentPlaceholder=k}),i.watch(()=>e.modelValue,(k,L)=>{var ee;e.multiple&&(B(),k&&k.length>0||s.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",j(t.query))),K(),e.filterable&&!e.multiple&&(t.inputLength=20),Sc(k,L)||(ee=v.validate)==null||ee.call(v,"change").catch(ve=>vt(ve))},{flush:"post",deep:!0}),i.watch(()=>t.visible,k=>{var L,ee,ve;k?((ee=(L=l.value)==null?void 0:L.updatePopper)==null||ee.call(L),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?(ve=s.value)==null||ve.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),j(t.query),!e.multiple&&!e.remote&&(h.value.query="",i.triggerRef(h),i.triggerRef(p)))):(s.value&&s.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,ge(),i.nextTick(()=>{s.value&&s.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",k)}),i.watch(()=>t.options.entries(),()=>{var k,L,ee;if(!wt)return;(L=(k=l.value)==null?void 0:k.updatePopper)==null||L.call(k),e.multiple&&B();const ve=((ee=u.value)==null?void 0:ee.querySelectorAll("input"))||[];Array.from(ve).includes(document.activeElement)||K(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&q()},{flush:"post"}),i.watch(()=>t.hoverIndex,k=>{typeof k=="number"&&k>-1&&(d.value=b.value[k]||{}),b.value.forEach(L=>{L.hover=d.value===L})});const B=()=>{e.collapseTags&&!e.filterable||i.nextTick(()=>{var k,L;if(!a.value)return;const ee=a.value.$el.querySelector("input"),ve=c.value,Oe=Y4(_.value||g.size);ee.style.height=`${t.selected.length===0?Oe:Math.max(ve?ve.clientHeight+(ve.clientHeight>Oe?6:0):0,Oe)-2}px`,t.tagInMultiLine=Number.parseFloat(ee.style.height)>=Oe,t.visible&&w.value!==!1&&((L=(k=l.value)==null?void 0:k.updatePopper)==null||L.call(k))})},j=k=>{if(!(t.previousQuery===k||t.isOnComposition)){if(t.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){t.previousQuery=k;return}t.previousQuery=k,i.nextTick(()=>{var L,ee;t.visible&&((ee=(L=l.value)==null?void 0:L.updatePopper)==null||ee.call(L))}),t.hoverIndex=-1,e.multiple&&e.filterable&&i.nextTick(()=>{const L=s.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,L):L,Z(),B()}),e.remote&&typeof e.remoteMethod=="function"?(t.hoverIndex=-1,e.remoteMethod(k)):typeof e.filterMethod=="function"?(e.filterMethod(k),i.triggerRef(p)):(t.filteredOptionsCount=t.optionsCount,h.value.query=k,i.triggerRef(h),i.triggerRef(p)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&q()}},Z=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=s.value.value?"":t.cachedPlaceHolder)},q=()=>{const k=b.value.filter(ve=>ve.visible&&!ve.disabled&&!ve.states.groupDisabled),L=k.find(ve=>ve.created),ee=k[0];t.hoverIndex=X(b.value,L||ee)},K=()=>{var k;if(e.multiple)t.selectedLabel="";else{const ee=oe(e.modelValue);(k=ee.props)!=null&&k.created?(t.createdLabel=ee.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=ee.currentLabel,t.selected=ee,e.filterable&&(t.query=t.selectedLabel);return}const L=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(ee=>{L.push(oe(ee))}),t.selected=L,i.nextTick(()=>{B()})},oe=k=>{let L;const ee=pd(k).toLowerCase()==="object",ve=pd(k).toLowerCase()==="null",Oe=pd(k).toLowerCase()==="undefined";for(let ut=t.cachedOptions.size-1;ut>=0;ut--){const je=T.value[ut];if(ee?Bn(je.value,e.valueKey)===Bn(k,e.valueKey):je.value===k){L={value:k,currentLabel:je.currentLabel,isDisabled:je.isDisabled};break}}if(L)return L;const ze=ee?k.label:!ve&&!Oe?k:"",Ye={value:k,currentLabel:ze};return e.multiple&&(Ye.hitState=!1),Ye},ge=()=>{setTimeout(()=>{const k=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(L=>b.value.findIndex(ee=>Bn(ee,k)===Bn(L,k)))):t.hoverIndex=-1:t.hoverIndex=b.value.findIndex(L=>qe(L)===qe(t.selected))},300)},Ae=()=>{var k,L;pe(),(L=(k=l.value)==null?void 0:k.updatePopper)==null||L.call(k),e.multiple&&!e.filterable&&B()},pe=()=>{var k;t.inputWidth=(k=a.value)==null?void 0:k.$el.getBoundingClientRect().width},P=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,j(t.query))},G=Es(()=>{P()},A.value),z=Es(k=>{j(k.target.value)},A.value),U=k=>{Sc(e.modelValue,k)||n.emit(Ts,k)},J=k=>{if(k.target.value.length<=0&&!We()){const L=e.modelValue.slice();L.pop(),n.emit(jt,L),U(L)}k.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},ne=(k,L)=>{const ee=t.selected.indexOf(L);if(ee>-1&&!y.value){const ve=e.modelValue.slice();ve.splice(ee,1),n.emit(jt,ve),U(ve),n.emit("remove-tag",L.value)}k.stopPropagation()},ce=k=>{k.stopPropagation();const L=e.multiple?[]:"";if(typeof L!="string")for(const ee of t.selected)ee.isDisabled&&L.push(ee.value);n.emit(jt,L),U(L),t.visible=!1,n.emit("clear")},Q=(k,L)=>{var ee;if(e.multiple){const ve=(e.modelValue||[]).slice(),Oe=X(ve,k.value);Oe>-1?ve.splice(Oe,1):(e.multipleLimit<=0||ve.length<e.multipleLimit)&&ve.push(k.value),n.emit(jt,ve),U(ve),k.created&&(t.query="",j(""),t.inputLength=20),e.filterable&&((ee=s.value)==null||ee.focus())}else n.emit(jt,k.value),U(k.value),t.visible=!1;t.isSilentBlur=L,de(),!t.visible&&i.nextTick(()=>{me(k)})},X=(k=[],L)=>{if(!Kn(L))return k.indexOf(L);const ee=e.valueKey;let ve=-1;return k.some((Oe,ze)=>Bn(Oe,ee)===Bn(L,ee)?(ve=ze,!0):!1),ve},de=()=>{t.softFocus=!0;const k=s.value||a.value;k&&(k==null||k.focus())},me=k=>{var L,ee,ve,Oe,ze;const Ye=Array.isArray(k)?k[0]:k;let ut=null;if(Ye!=null&&Ye.value){const je=b.value.filter(_e=>_e.value===Ye.value);je.length>0&&(ut=je[0].$el)}if(l.value&&ut){const je=(Oe=(ve=(ee=(L=l.value)==null?void 0:L.popperRef)==null?void 0:ee.contentRef)==null?void 0:ve.querySelector)==null?void 0:Oe.call(ve,`.${o.be("dropdown","wrap")}`);je&&d4(je,ut)}(ze=f.value)==null||ze.handleScroll()},Ne=k=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(k.value,k),t.cachedOptions.set(k.value,k)},Fe=(k,L)=>{t.options.get(k)===L&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(k))},lt=k=>{k.code!==bt.backspace&&We(!1),t.inputLength=s.value.value.length*15+20,B()},We=k=>{if(!Array.isArray(t.selected))return;const L=t.selected[t.selected.length-1];if(L)return k===!0||k===!1?(L.hitState=k,k):(L.hitState=!L.hitState,L.hitState)},Ce=k=>{const L=k.target.value;if(k.type==="compositionend")t.isOnComposition=!1,i.nextTick(()=>j(L));else{const ee=L[L.length-1]||"";t.isOnComposition=!tm(ee)}},ct=()=>{i.nextTick(()=>me(t.selected))},Ct=k=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",k))},ue=()=>{var k;t.visible=!1,(k=a.value)==null||k.blur()},Ee=k=>{i.nextTick(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",k)}),t.softFocus=!1},Be=k=>{ce(k)},ot=()=>{t.visible=!1},le=k=>{t.visible&&(k.preventDefault(),k.stopPropagation(),t.visible=!1)},Le=()=>{var k;e.automaticDropdown||y.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&((k=s.value||a.value)==null||k.focus()))},tt=()=>{t.visible?b.value[t.hoverIndex]&&Q(b.value[t.hoverIndex],void 0):Le()},qe=k=>Kn(k.value)?Bn(k.value,e.valueKey):k.value,Pe=i.computed(()=>b.value.filter(k=>k.visible).every(k=>k.disabled)),W=k=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Pe.value){k==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):k==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const L=b.value[t.hoverIndex];(L.disabled===!0||L.states.groupDisabled===!0||!L.visible)&&W(k),i.nextTick(()=>me(d.value))}};return{optionsArray:b,selectSize:_,handleResize:Ae,debouncedOnInputChange:G,debouncedQueryChange:z,deletePrevTag:J,deleteTag:ne,deleteSelected:ce,handleOptionSelect:Q,scrollToOption:me,readonly:m,resetInputHeight:B,showClose:E,iconComponent:x,iconReverse:C,showNewOption:S,collapseTagSize:I,setSelected:K,managePlaceholder:Z,selectDisabled:y,emptyText:w,toggleLastOptionHitState:We,resetInputState:lt,handleComposition:Ce,onOptionCreate:Ne,onOptionDestroy:Fe,handleMenuEnter:ct,handleFocus:Ct,blur:ue,handleBlur:Ee,handleClearClick:Be,handleClose:ot,handleKeydownEscape:le,toggleMenu:Le,selectOption:tt,getValueKey:qe,navigateOptions:W,dropMenuVisible:H,queryChange:h,groupQueryChange:p,reference:a,input:s,tooltipRef:l,tags:c,selectWrapper:u,scrollbar:f}},cy="ElSelect",K3=i.defineComponent({name:cy,componentName:cy,components:{ElInput:_a,ElSelectMenu:G3,ElOption:ph,ElTag:oD,ElScrollbar:Ds,ElTooltip:jc,ElIcon:dt},directives:{ClickOutside:p0},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Ed},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod: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:{type:Boolean,default:!1},teleported:Uc.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:_c},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:Yg},tagType:{...R0.type,default:"info"}},emits:[jt,Ts,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Me("select"),r=Me("input"),{t:o}=oo(),a=z3(e),{optionsArray:s,selectSize:l,readonly:c,handleResize:u,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:p,deleteTag:g,deleteSelected:v,handleOptionSelect:m,scrollToOption:y,setSelected:E,resetInputHeight:x,managePlaceholder:C,showClose:A,selectDisabled:w,iconComponent:b,iconReverse:T,showNewOption:S,emptyText:_,toggleLastOptionHitState:I,resetInputState:H,handleComposition:B,onOptionCreate:j,onOptionDestroy:Z,handleMenuEnter:q,handleFocus:K,blur:oe,handleBlur:ge,handleClearClick:Ae,handleClose:pe,handleKeydownEscape:P,toggleMenu:G,selectOption:z,getValueKey:U,navigateOptions:J,dropMenuVisible:ne,reference:ce,input:Q,tooltipRef:X,tags:de,selectWrapper:me,scrollbar:Ne,queryChange:Fe,groupQueryChange:lt}=W3(e,a,t),{focus:We}=ek(ce),{inputWidth:Ce,selected:ct,inputLength:Ct,filteredOptionsCount:ue,visible:Ee,softFocus:Be,selectedLabel:ot,hoverIndex:le,query:Le,inputHovering:tt,currentPlaceholder:qe,menuVisibleOnFocus:Pe,isOnComposition:W,isSilentBlur:k,options:L,cachedOptions:ee,optionsCount:ve,prefixWidth:Oe,tagInMultiLine:ze}=i.toRefs(a),Ye=i.computed(()=>{const _e=[n.b()],He=i.unref(l);return He&&_e.push(n.m(He)),e.disabled&&_e.push(n.m("disabled")),_e}),ut=i.computed(()=>({maxWidth:`${i.unref(Ce)-32}px`,width:"100%"}));i.provide($c,i.reactive({props:e,options:L,optionsArray:s,cachedOptions:ee,optionsCount:ve,filteredOptionsCount:ue,hoverIndex:le,handleOptionSelect:m,onOptionCreate:j,onOptionDestroy:Z,selectWrapper:me,selected:ct,setSelected:E,queryChange:Fe,groupQueryChange:lt})),i.onMounted(()=>{a.cachedPlaceHolder=qe.value=e.placeholder||o("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(qe.value=""),bs(me,u),e.remote&&e.multiple&&x(),i.nextTick(()=>{const _e=ce.value&&ce.value.$el;if(_e&&(Ce.value=_e.getBoundingClientRect().width,t.slots.prefix)){const He=_e.querySelector(`.${r.e("prefix")}`);Oe.value=Math.max(He.getBoundingClientRect().width+5,30)}}),E()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(jt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(jt,"");const je=i.computed(()=>{var _e,He;return(He=(_e=X.value)==null?void 0:_e.popperRef)==null?void 0:He.contentRef});return{tagInMultiLine:ze,prefixWidth:Oe,selectSize:l,readonly:c,handleResize:u,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:p,deleteTag:g,deleteSelected:v,handleOptionSelect:m,scrollToOption:y,inputWidth:Ce,selected:ct,inputLength:Ct,filteredOptionsCount:ue,visible:Ee,softFocus:Be,selectedLabel:ot,hoverIndex:le,query:Le,inputHovering:tt,currentPlaceholder:qe,menuVisibleOnFocus:Pe,isOnComposition:W,isSilentBlur:k,options:L,resetInputHeight:x,managePlaceholder:C,showClose:A,selectDisabled:w,iconComponent:b,iconReverse:T,showNewOption:S,emptyText:_,toggleLastOptionHitState:I,resetInputState:H,handleComposition:B,handleMenuEnter:q,handleFocus:K,blur:oe,handleBlur:ge,handleClearClick:Ae,handleClose:pe,handleKeydownEscape:P,toggleMenu:G,selectOption:z,getValueKey:U,navigateOptions:J,dropMenuVisible:ne,focus:We,reference:ce,input:Q,tooltipRef:X,popperPaneRef:je,tags:de,selectWrapper:me,scrollbar:Ne,wrapperKls:Ye,selectTagsStyle:ut,nsSelect:n}}}),Y3={class:"select-trigger"},X3=["disabled","autocomplete"],Q3={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function J3(e,t,n,r,o,a){const s=i.resolveComponent("el-tag"),l=i.resolveComponent("el-tooltip"),c=i.resolveComponent("el-icon"),u=i.resolveComponent("el-input"),f=i.resolveComponent("el-option"),d=i.resolveComponent("el-scrollbar"),h=i.resolveComponent("el-select-menu"),p=i.resolveDirective("click-outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{ref:"selectWrapper",class:i.normalizeClass(e.wrapperKls),onClick:t[23]||(t[23]=i.withModifiers((...g)=>e.toggleMenu&&e.toggleMenu(...g),["stop"]))},[i.createVNode(l,{ref:"tooltipRef",visible:e.dropMenuVisible,"onUpdate:visible":t[22]||(t[22]=g=>e.dropMenuVisible=g),placement:"bottom-start",teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],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,onShow:e.handleMenuEnter},{default:i.withCtx(()=>[i.createElementVNode("div",Y3,[e.multiple?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"tags",class:i.normalizeClass(e.nsSelect.e("tags")),style:i.normalizeStyle(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[i.createVNode(s,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=g=>e.deleteTag(g,e.selected[0]))},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(e.nsSelect.e("tags-text")),style:i.normalizeStyle({maxWidth:e.inputWidth-123+"px"})},i.toDisplayString(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(i.openBlock(),i.createBlock(s,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:i.withCtx(()=>[e.collapseTagsTooltip?(i.openBlock(),i.createBlock(l,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(e.nsSelect.e("tags-text"))},"+ "+i.toDisplayString(e.selected.length-1),3)]),content:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(e.nsSelect.e("collapse-tags"))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.selected,(g,v)=>(i.openBlock(),i.createElementBlock("div",{key:v,class:i.normalizeClass(e.nsSelect.e("collapse-tag"))},[(i.openBlock(),i.createBlock(s,{key:e.getValueKey(g),class:"in-tooltip",closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,hit:g.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:m=>e.deleteTag(m,g)},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(e.nsSelect.e("tags-text")),style:i.normalizeStyle({maxWidth:e.inputWidth-75+"px"})},i.toDisplayString(g.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(e.nsSelect.e("tags-text"))},"+ "+i.toDisplayString(e.selected.length-1),3))]),_:1},8,["size","type"])):i.createCommentVNode("v-if",!0)],2)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" <div> "),e.collapseTags?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(i.Transition,{key:1,onAfterLeave:e.resetInputHeight},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.selected,g=>(i.openBlock(),i.createBlock(s,{key:e.getValueKey(g),closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,hit:g.hitState,type:e.tagType,"disable-transitions":"",onClose:v=>e.deleteTag(v,g)},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(e.nsSelect.e("tags-text")),style:i.normalizeStyle({maxWidth:e.inputWidth-75+"px"})},i.toDisplayString(g.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),i.createCommentVNode(" </div> "),e.filterable?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=g=>e.query=g),type:"text",class:i.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:i.normalizeStyle({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[2]||(t[2]=(...g)=>e.handleFocus&&e.handleFocus(...g)),onBlur:t[3]||(t[3]=(...g)=>e.handleBlur&&e.handleBlur(...g)),onKeyup:t[4]||(t[4]=(...g)=>e.managePlaceholder&&e.managePlaceholder(...g)),onKeydown:[t[5]||(t[5]=(...g)=>e.resetInputState&&e.resetInputState(...g)),t[6]||(t[6]=i.withKeys(i.withModifiers(g=>e.navigateOptions("next"),["prevent"]),["down"])),t[7]||(t[7]=i.withKeys(i.withModifiers(g=>e.navigateOptions("prev"),["prevent"]),["up"])),t[8]||(t[8]=i.withKeys((...g)=>e.handleKeydownEscape&&e.handleKeydownEscape(...g),["esc"])),t[9]||(t[9]=i.withKeys(i.withModifiers((...g)=>e.selectOption&&e.selectOption(...g),["stop","prevent"]),["enter"])),t[10]||(t[10]=i.withKeys((...g)=>e.deletePrevTag&&e.deletePrevTag(...g),["delete"])),t[11]||(t[11]=i.withKeys(g=>e.visible=!1,["tab"]))],onCompositionstart:t[12]||(t[12]=(...g)=>e.handleComposition&&e.handleComposition(...g)),onCompositionupdate:t[13]||(t[13]=(...g)=>e.handleComposition&&e.handleComposition(...g)),onCompositionend:t[14]||(t[14]=(...g)=>e.handleComposition&&e.handleComposition(...g)),onInput:t[15]||(t[15]=(...g)=>e.debouncedQueryChange&&e.debouncedQueryChange(...g))},null,46,X3)),[[i.vModelText,e.query]]):i.createCommentVNode("v-if",!0)],6)):i.createCommentVNode("v-if",!0),i.createVNode(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=g=>e.selectedLabel=g),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:i.normalizeClass([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=i.withKeys(i.withModifiers(g=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=i.withKeys(i.withModifiers(g=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),i.withKeys(i.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),i.withKeys(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=i.withKeys(g=>e.visible=!1,["tab"]))],onMouseenter:t[20]||(t[20]=g=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=g=>e.inputHovering=!1)},i.createSlots({suffix:i.withCtx(()=>[e.iconComponent&&!e.showClose?(i.openBlock(),i.createBlock(c,{key:0,class:i.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(i.openBlock(),i.createBlock(c,{key:1,class:i.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):i.createCommentVNode("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:i.withCtx(()=>[i.createElementVNode("div",Q3,[i.renderSlot(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])]),content:i.withCtx(()=>[i.createVNode(h,null,{default:i.withCtx(()=>[i.withDirectives(i.createVNode(d,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:i.normalizeClass([e.nsSelect.is("empty",!e.allowCreate&&!!e.query&&e.filteredOptionsCount===0)])},{default:i.withCtx(()=>[e.showNewOption?(i.openBlock(),i.createBlock(f,{key:0,value:e.query,created:!0},null,8,["value"])):i.createCommentVNode("v-if",!0),i.renderSlot(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[i.vShow,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[e.$slots.empty?i.renderSlot(e.$slots,"empty",{key:0}):(i.openBlock(),i.createElementBlock("p",{key:1,class:i.normalizeClass(e.nsSelect.be("dropdown","empty"))},i.toDisplayString(e.emptyText),3))],64)):i.createCommentVNode("v-if",!0)]),_:3})]),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[p,e.handleClose,e.popperPaneRef]])}var Z3=Ue(K3,[["render",J3],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const q3=i.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=Me("select"),n=i.ref(!0),r=i.getCurrentInstance(),o=i.ref([]);i.provide(ly,i.reactive({...i.toRefs(e)}));const a=i.inject($c);i.onMounted(()=>{o.value=s(r.subTree)});const s=c=>{const u=[];return Array.isArray(c.children)&&c.children.forEach(f=>{var d;f.type&&f.type.name==="ElOption"&&f.component&&f.component.proxy?u.push(f.component.proxy):(d=f.children)!=null&&d.length&&u.push(...s(f))}),u},{groupQueryChange:l}=i.toRaw(a);return i.watch(l,()=>{n.value=o.value.some(c=>c.visible===!0)}),{visible:n,ns:t}}});function $3(e,t,n,r,o,a){return i.withDirectives((i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(e.ns.be("group","wrap"))},[i.createElementVNode("li",{class:i.normalizeClass(e.ns.be("group","title"))},i.toDisplayString(e.label),3),i.createElementVNode("li",null,[i.createElementVNode("ul",{class:i.normalizeClass(e.ns.b("group"))},[i.renderSlot(e.$slots,"default")],2)])],2)),[[i.vShow,e.visible]])}var uy=Ue(q3,[["render",$3],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const eu=Mt(Z3,{Option:ph,OptionGroup:uy}),tu=Rn(ph);Rn(uy);const vh=()=>i.inject(am,{}),eF=Je({pageSize:{type:Number,required:!0},pageSizes:{type:Ie(Array),default:()=>yo([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,default:"default"}}),tF={name:"ElPaginationSizes"},nF=i.defineComponent({...tF,props:eF,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=oo(),o=Me("pagination"),a=vh(),s=i.ref(n.pageSize);i.watch(()=>n.pageSizes,(u,f)=>{if(!Sc(u,f)&&Array.isArray(u)){const d=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",d)}}),i.watch(()=>n.pageSize,u=>{s.value=u});const l=i.computed(()=>n.pageSizes);function c(u){var f;u!==s.value&&(s.value=u,(f=a.handleSizeChange)==null||f.call(a,Number(u)))}return(u,f)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(i.unref(o).e("sizes"))},[i.createVNode(i.unref(eu),{"model-value":s.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,onChange:c},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(l),d=>(i.openBlock(),i.createBlock(i.unref(tu),{key:d,value:d,label:d+i.unref(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var oF=Ue(nF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const rF=["disabled"],aF={name:"ElPaginationJumper"},sF=i.defineComponent({...aF,setup(e){const{t}=oo(),n=Me("pagination"),{pageCount:r,disabled:o,currentPage:a,changeEvent:s}=vh(),l=i.ref(),c=i.computed(()=>{var d;return(d=l.value)!=null?d:a==null?void 0:a.value});function u(d){l.value=+d}function f(d){d=Math.trunc(+d),s==null||s(+d),l.value=void 0}return(d,h)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(i.unref(n).e("jump")),disabled:i.unref(o)},[i.createTextVNode(i.toDisplayString(i.unref(t)("el.pagination.goto"))+" ",1),i.createVNode(i.unref(_a),{size:"small",class:i.normalizeClass([i.unref(n).e("editor"),i.unref(n).is("in-pagination")]),min:1,max:i.unref(r),disabled:i.unref(o),"model-value":i.unref(c),type:"number","onUpdate:modelValue":u,onChange:f},null,8,["class","max","disabled","model-value"]),i.createTextVNode(" "+i.toDisplayString(i.unref(t)("el.pagination.pageClassifier")),1)],10,rF))}});var iF=Ue(sF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const lF=Je({total:{type:Number,default:1e3}}),cF=["disabled"],uF={name:"ElPaginationTotal"},fF=i.defineComponent({...uF,props:lF,setup(e){const{t}=oo(),n=Me("pagination"),{disabled:r}=vh();return(o,a)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(i.unref(n).e("total")),disabled:i.unref(r)},i.toDisplayString(i.unref(t)("el.pagination.total",{total:o.total})),11,cF))}});var dF=Ue(fF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const hF=Je({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),pF=["onKeyup"],vF=["aria-current"],gF=["aria-current"],mF=["aria-current"],yF={name:"ElPaginationPager"},xF=i.defineComponent({...yF,props:hF,emits:["change"],setup(e,{emit:t}){const n=e,r=Me("pager"),o=Me("icon"),a=i.ref(!1),s=i.ref(!1),l=i.ref(!1),c=i.ref(!1),u=i.computed(()=>{const p=n.pagerCount,g=(p-1)/2,v=Number(n.currentPage),m=Number(n.pageCount);let y=!1,E=!1;m>p&&(v>p-g&&(y=!0),v<m-g&&(E=!0));const x=[];if(y&&!E){const C=m-(p-2);for(let A=C;A<m;A++)x.push(A)}else if(!y&&E)for(let C=2;C<p;C++)x.push(C);else if(y&&E){const C=Math.floor(p/2)-1;for(let A=v-C;A<=v+C;A++)x.push(A)}else for(let C=2;C<m;C++)x.push(C);return x});i.watchEffect(()=>{const p=(n.pagerCount-1)/2;a.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-p&&(a.value=!0),n.currentPage<n.pageCount-p&&(s.value=!0))});function f(p){n.disabled||(p==="left"?l.value=!0:c.value=!0)}function d(p){const g=p.target;if(g.tagName.toLowerCase()==="li"&&Array.from(g.classList).includes("number")){const v=Number(g.textContent);v!==n.currentPage&&t("change",v)}}function h(p){const g=p.target;if(g.tagName.toLowerCase()==="ul"||n.disabled)return;let v=Number(g.textContent);const m=n.pageCount,y=n.currentPage,E=n.pagerCount-2;g.className.includes("more")&&(g.className.includes("quickprev")?v=y-E:g.className.includes("quicknext")&&(v=y+E)),Number.isNaN(+v)||(v<1&&(v=1),v>m&&(v=m)),v!==y&&t("change",v)}return(p,g)=>(i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(i.unref(r).b()),onClick:h,onKeyup:i.withKeys(d,["enter"])},[p.pageCount>0?(i.openBlock(),i.createElementBlock("li",{key:0,class:i.normalizeClass([[i.unref(r).is("active",p.currentPage===1),i.unref(r).is("disabled",p.disabled)],"number"]),"aria-current":p.currentPage===1,tabindex:"0"}," 1 ",10,vF)):i.createCommentVNode("v-if",!0),a.value?(i.openBlock(),i.createElementBlock("li",{key:1,class:i.normalizeClass(["more","btn-quickprev",i.unref(o).b(),i.unref(r).is("disabled",p.disabled)]),onMouseenter:g[0]||(g[0]=v=>f("left")),onMouseleave:g[1]||(g[1]=v=>l.value=!1)},[l.value?(i.openBlock(),i.createBlock(i.unref(A4),{key:0})):(i.openBlock(),i.createBlock(i.unref(Zg),{key:1}))],34)):i.createCommentVNode("v-if",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),v=>(i.openBlock(),i.createElementBlock("li",{key:v,class:i.normalizeClass([[i.unref(r).is("active",p.currentPage===v),i.unref(r).is("disabled",p.disabled)],"number"]),"aria-current":p.currentPage===v,tabindex:"0"},i.toDisplayString(v),11,gF))),128)),s.value?(i.openBlock(),i.createElementBlock("li",{key:2,class:i.normalizeClass(["more","btn-quicknext",i.unref(o).b(),i.unref(r).is("disabled",p.disabled)]),onMouseenter:g[2]||(g[2]=v=>f("right")),onMouseleave:g[3]||(g[3]=v=>c.value=!1)},[c.value?(i.openBlock(),i.createBlock(i.unref(T4),{key:0})):(i.openBlock(),i.createBlock(i.unref(Zg),{key:1}))],34)):i.createCommentVNode("v-if",!0),p.pageCount>1?(i.openBlock(),i.createElementBlock("li",{key:3,class:i.normalizeClass([[i.unref(r).is("active",p.currentPage===p.pageCount),i.unref(r).is("disabled",p.disabled)],"number"]),"aria-current":p.currentPage===p.pageCount,tabindex:"0"},i.toDisplayString(p.pageCount),11,mF)):i.createCommentVNode("v-if",!0)],42,pF))}});var EF=Ue(xF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Mn=e=>typeof e!="number",CF=Je({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>typeof e=="number"&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Ie(Array),default:()=>yo([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},nextText:{type:String,default:""},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),wF={"update:current-page":e=>typeof e=="number","update:page-size":e=>typeof e=="number","size-change":e=>typeof e=="number","current-change":e=>typeof e=="number","prev-click":e=>typeof e=="number","next-click":e=>typeof e=="number"},fy="ElPagination";var bF=i.defineComponent({name:fy,props:CF,emits:wF,setup(e,{emit:t,slots:n}){const{t:r}=oo(),o=Me("pagination"),a=i.getCurrentInstance().vnode.props||{},s="onUpdate:currentPage"in a||"onUpdate:current-page"in a||"onCurrentChange"in a,l="onUpdate:pageSize"in a||"onUpdate:page-size"in a||"onSizeChange"in a,c=i.computed(()=>{if(Mn(e.total)&&Mn(e.pageCount)||!Mn(e.currentPage)&&!s)return!1;if(e.layout.includes("sizes")){if(Mn(e.pageCount)){if(!Mn(e.total)&&!Mn(e.pageSize)&&!l)return!1}else if(!l)return!1}return!0}),u=i.ref(Mn(e.defaultPageSize)?10:e.defaultPageSize),f=i.ref(Mn(e.defaultCurrentPage)?1:e.defaultCurrentPage),d=i.computed({get(){return Mn(e.pageSize)?u.value:e.pageSize},set(x){Mn(e.pageSize)&&(u.value=x),l&&(t("update:page-size",x),t("size-change",x))}}),h=i.computed(()=>{let x=0;return Mn(e.pageCount)?Mn(e.total)||(x=Math.max(1,Math.ceil(e.total/d.value))):x=e.pageCount,x}),p=i.computed({get(){return Mn(e.currentPage)?f.value:e.currentPage},set(x){let C=x;x<1?C=1:x>h.value&&(C=h.value),Mn(e.currentPage)&&(f.value=C),s&&(t("update:current-page",C),t("current-change",C))}});i.watch(h,x=>{p.value>x&&(p.value=x)});function g(x){p.value=x}function v(x){d.value=x;const C=h.value;p.value>C&&(p.value=C)}function m(){e.disabled||(p.value-=1,t("prev-click",p.value))}function y(){e.disabled||(p.value+=1,t("next-click",p.value))}function E(x,C){x&&(x.props||(x.props={}),x.props.class=[x.props.class,C].join(" "))}return i.provide(am,{pageCount:h,disabled:i.computed(()=>e.disabled),currentPage:p,changeEvent:g,handleSizeChange:v}),()=>{var x,C;if(!c.value)return vt(fy,r("el.pagination.deprecationWarning")),null;if(!e.layout||e.hideOnSinglePage&&h.value<=1)return null;const A=[],w=[],b=i.h("div",{class:o.e("rightwrapper")},w),T={prev:i.h(D3,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,onClick:m}),jumper:i.h(iF),pager:i.h(EF,{currentPage:p.value,pageCount:h.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:i.h(M3,{disabled:e.disabled,currentPage:p.value,pageCount:h.value,nextText:e.nextText,onClick:y}),sizes:i.h(oF,{pageSize:d.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(C=(x=n==null?void 0:n.default)==null?void 0:x.call(n))!=null?C:null,total:i.h(dF,{total:Mn(e.total)?0:e.total})},S=e.layout.split(",").map(I=>I.trim());let _=!1;return S.forEach(I=>{if(I==="->"){_=!0;return}_?w.push(T[I]):A.push(T[I])}),E(A[0],o.is("first")),E(A[A.length-1],o.is("last")),_&&w.length>0&&(E(w[0],o.is("first")),E(w[w.length-1],o.is("last")),A.push(b)),i.h("div",{role:"pagination","aria-label":"pagination",class:[o.b(),o.is("background",e.background),{[o.m("small")]:e.small}]},A)}}});const AF=Mt(bF),SF=Je({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:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Ie(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Ie([String,Array,Function]),default:""},format:{type:Ie(Function),default:e=>`${e}%`}}),TF=["aria-valuenow"],kF={viewBox:"0 0 100 100"},OF=["d","stroke","stroke-width"],PF=["d","stroke","opacity","stroke-linecap","stroke-width"],_F={key:0},DF={name:"ElProgress"},IF=i.defineComponent({...DF,props:SF,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Me("progress"),o=i.computed(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:E(t.percentage)})),a=i.computed(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=i.computed(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(a.value)/2}`,10):0),l=i.computed(()=>{const x=s.value,C=t.type==="dashboard";return`
40
+ M 50 50
41
+ m 0 ${C?"":"-"}${x}
42
+ a ${x} ${x} 0 1 1 0 ${C?"-":""}${x*2}
43
+ a ${x} ${x} 0 1 1 0 ${C?"":"-"}${x*2}
44
+ `}),c=i.computed(()=>2*Math.PI*s.value),u=i.computed(()=>t.type==="dashboard"?.75:1),f=i.computed(()=>`${-1*c.value*(1-u.value)/2}px`),d=i.computed(()=>({strokeDasharray:`${c.value*u.value}px, ${c.value}px`,strokeDashoffset:f.value})),h=i.computed(()=>({strokeDasharray:`${c.value*u.value*(t.percentage/100)}px, ${c.value}px`,strokeDashoffset:f.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=i.computed(()=>{let x;return t.color?x=E(t.percentage):x=n[t.status]||n.default,x}),g=i.computed(()=>t.status==="warning"?md:t.type==="line"?t.status==="success"?gd:_c:t.status==="success"?Xg:Ss),v=i.computed(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),m=i.computed(()=>t.format(t.percentage));function y(x){const C=100/x.length;return x.map((w,b)=>Ot(w)?{color:w,percentage:(b+1)*C}:w).sort((w,b)=>w.percentage-b.percentage)}const E=x=>{var C;const{color:A}=t;if(mo(A))return A(x);if(Ot(A))return A;{const w=y(A);for(const b of w)if(b.percentage>x)return b.color;return(C=w[w.length-1])==null?void 0:C.color}};return(x,C)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(r).b(),i.unref(r).m(x.type),i.unref(r).is(x.status),{[i.unref(r).m("without-text")]:!x.showText,[i.unref(r).m("text-inside")]:x.textInside}]),role:"progressbar","aria-valuenow":x.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[x.type==="line"?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(r).b("bar"))},[i.createElementVNode("div",{class:i.normalizeClass(i.unref(r).be("bar","outer")),style:i.normalizeStyle({height:`${x.strokeWidth}px`})},[i.createElementVNode("div",{class:i.normalizeClass([i.unref(r).be("bar","inner"),{[i.unref(r).bem("bar","inner","indeterminate")]:x.indeterminate}]),style:i.normalizeStyle(i.unref(o))},[(x.showText||x.$slots.default)&&x.textInside?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(r).be("bar","innerText"))},[i.renderSlot(x.$slots,"default",{percentage:x.percentage},()=>[i.createElementVNode("span",null,i.toDisplayString(i.unref(m)),1)])],2)):i.createCommentVNode("v-if",!0)],6)],6)],2)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(r).b("circle")),style:i.normalizeStyle({height:`${x.width}px`,width:`${x.width}px`})},[(i.openBlock(),i.createElementBlock("svg",kF,[i.createElementVNode("path",{class:i.normalizeClass(i.unref(r).be("circle","track")),d:i.unref(l),stroke:`var(${i.unref(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":i.unref(a),fill:"none",style:i.normalizeStyle(i.unref(d))},null,14,OF),i.createElementVNode("path",{class:i.normalizeClass(i.unref(r).be("circle","path")),d:i.unref(l),stroke:i.unref(p),fill:"none",opacity:x.percentage?1:0,"stroke-linecap":x.strokeLinecap,"stroke-width":i.unref(a),style:i.normalizeStyle(i.unref(h))},null,14,PF)]))],6)),(x.showText||x.$slots.default)&&!x.textInside?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(i.unref(r).e("text")),style:i.normalizeStyle({fontSize:`${i.unref(v)}px`})},[i.renderSlot(x.$slots,"default",{percentage:x.percentage},()=>[x.status?(i.openBlock(),i.createBlock(i.unref(dt),{key:1},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(g))))]),_:1})):(i.openBlock(),i.createElementBlock("span",_F,i.toDisplayString(i.unref(m)),1))])],6)):i.createCommentVNode("v-if",!0)],10,TF))}});var FF=Ue(IF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const NF=Mt(FF),BF=Je({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"],default:"top"}}),RF={name:"ElRow"},MF=i.defineComponent({...RF,props:BF,setup(e){const t=e,n=Me("row"),r=i.computed(()=>t.gutter);i.provide(im,{gutter:r});const o=i.computed(()=>{const a={};return t.gutter&&(a.marginRight=a.marginLeft=`-${t.gutter/2}px`),a});return(a,s)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.tag),{class:i.normalizeClass([i.unref(n).b(),i.unref(n).is(`justify-${t.justify}`,a.justify!=="start"),i.unref(n).is(`align-${t.align}`,a.align!=="top")]),style:i.normalizeStyle(i.unref(o))},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:3},8,["class","style"]))}});var LF=Ue(MF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const al=Mt(LF),VF=Je({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Er,default:""},inactiveIcon:{type:Er,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{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},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Ie(Function)},size:{type:String,validator:Ed},tabindex:{type:[String,Number]}}),HF={[jt]:e=>Wn(e)||Ot(e)||It(e),[Ts]:e=>Wn(e)||Ot(e)||It(e),[xd]:e=>Wn(e)||Ot(e)||It(e)},gh="ElSwitch",UF=i.defineComponent({name:gh,components:{ElIcon:dt,Loading:Dc},props:VF,emits:HF,setup(e,{emit:t}){const{formItem:n}=Rc(),r=ks(i.computed(()=>e.loading)),o=Me("switch"),{inputId:a}=Wi(e,{formItemContext:n}),s=Yn(),l=i.ref(e.modelValue!==!1),c=i.ref(),u=i.ref(),f=i.computed(()=>[o.b(),o.m(s.value),o.is("disabled",r.value),o.is("checked",p.value)]),d=i.computed(()=>({width:xr(e.width)}));i.watch(()=>e.modelValue,()=>{l.value=!0}),i.watch(()=>e.value,()=>{l.value=!1});const h=i.computed(()=>l.value?e.modelValue:e.value),p=i.computed(()=>h.value===e.activeValue);[e.activeValue,e.inactiveValue].includes(h.value)||(t(jt,e.inactiveValue),t(Ts,e.inactiveValue),t(xd,e.inactiveValue)),i.watch(p,()=>{var E;c.value.checked=p.value,(e.activeColor||e.inactiveColor)&&m(),e.validateEvent&&((E=n==null?void 0:n.validate)==null||E.call(n,"change").catch(x=>vt(x)))});const g=()=>{const E=p.value?e.inactiveValue:e.activeValue;t(jt,E),t(Ts,E),t(xd,E),i.nextTick(()=>{c.value.checked=p.value})},v=()=>{if(r.value)return;const{beforeChange:E}=e;if(!E){g();return}const x=E();[Hg(x),Wn(x)].some(A=>A)||Ta(gh,"beforeChange must return type `Promise<boolean>` or `boolean`"),Hg(x)?x.then(A=>{A&&g()}).catch(A=>{vt(gh,`some error occurred: ${A}`)}):x&&g()},m=()=>{const E=p.value?e.activeColor:e.inactiveColor,x=u.value;e.borderColor?x.style.borderColor=e.borderColor:e.borderColor||(x.style.borderColor=E),x.style.backgroundColor=E,x.children[0].style.color=E},y=()=>{var E,x;(x=(E=c.value)==null?void 0:E.focus)==null||x.call(E)};return i.onMounted(()=>{(e.activeColor||e.inactiveColor||e.borderColor)&&m(),c.value.checked=p.value}),{ns:o,input:c,inputId:a,core:u,switchDisabled:r,checked:p,switchKls:f,coreStyle:d,handleChange:g,switchValue:v,focus:y}}}),jF=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex"],GF=["aria-hidden"],zF=["aria-hidden"],WF=["aria-hidden"],KF=["aria-hidden"];function YF(e,t,n,r,o,a){const s=i.resolveComponent("el-icon"),l=i.resolveComponent("loading");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.switchKls),onClick:t[2]||(t[2]=i.withModifiers((...c)=>e.switchValue&&e.switchValue(...c),["prevent"]))},[i.createElementVNode("input",{id:e.inputId,ref:"input",class:i.normalizeClass(e.ns.e("input")),type:"checkbox",role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled,tabindex:e.tabindex,onChange:t[0]||(t[0]=(...c)=>e.handleChange&&e.handleChange(...c)),onKeydown:t[1]||(t[1]=i.withKeys((...c)=>e.switchValue&&e.switchValue(...c),["enter"]))},null,42,jF),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText)?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass([e.ns.e("label"),e.ns.em("label","left"),e.ns.is("active",!e.checked)])},[e.inactiveIcon?(i.openBlock(),i.createBlock(s,{key:0},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.inactiveIcon)))]),_:1})):i.createCommentVNode("v-if",!0),!e.inactiveIcon&&e.inactiveText?(i.openBlock(),i.createElementBlock("span",{key:1,"aria-hidden":e.checked},i.toDisplayString(e.inactiveText),9,GF)):i.createCommentVNode("v-if",!0)],2)):i.createCommentVNode("v-if",!0),i.createElementVNode("span",{ref:"core",class:i.normalizeClass(e.ns.e("core")),style:i.normalizeStyle(e.coreStyle)},[e.inlinePrompt?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.ns.e("inner"))},[e.activeIcon||e.inactiveIcon?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[e.activeIcon?(i.openBlock(),i.createBlock(s,{key:0,class:i.normalizeClass([e.ns.is("icon"),e.checked?e.ns.is("show"):e.ns.is("hide")])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.activeIcon)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),e.inactiveIcon?(i.openBlock(),i.createBlock(s,{key:1,class:i.normalizeClass([e.ns.is("icon"),e.checked?e.ns.is("hide"):e.ns.is("show")])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.inactiveIcon)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0)],64)):e.activeText||e.inactiveIcon?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[e.activeText?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass([e.ns.is("text"),e.checked?e.ns.is("show"):e.ns.is("hide")]),"aria-hidden":!e.checked},i.toDisplayString(e.activeText.substring(0,3)),11,zF)):i.createCommentVNode("v-if",!0),e.inactiveText?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass([e.ns.is("text"),e.checked?e.ns.is("hide"):e.ns.is("show")]),"aria-hidden":e.checked},i.toDisplayString(e.inactiveText.substring(0,3)),11,WF)):i.createCommentVNode("v-if",!0)],64)):i.createCommentVNode("v-if",!0)],2)):i.createCommentVNode("v-if",!0),i.createElementVNode("div",{class:i.normalizeClass(e.ns.e("action"))},[e.loading?(i.openBlock(),i.createBlock(s,{key:0,class:i.normalizeClass(e.ns.is("loading"))},{default:i.withCtx(()=>[i.createVNode(l)]),_:1},8,["class"])):i.createCommentVNode("v-if",!0)],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText)?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass([e.ns.e("label"),e.ns.em("label","right"),e.ns.is("active",e.checked)])},[e.activeIcon?(i.openBlock(),i.createBlock(s,{key:0},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.activeIcon)))]),_:1})):i.createCommentVNode("v-if",!0),!e.activeIcon&&e.activeText?(i.openBlock(),i.createElementBlock("span",{key:1,"aria-hidden":!e.checked},i.toDisplayString(e.activeText),9,KF)):i.createCommentVNode("v-if",!0)],2)):i.createCommentVNode("v-if",!0)],2)}var XF=Ue(UF,[["render",YF],["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const dy=Mt(XF);/*!
45
+ * escape-html
46
+ * Copyright(c) 2012-2013 TJ Holowaychuk
47
+ * Copyright(c) 2015 Andreas Lubbe
48
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
49
+ * MIT Licensed
50
+ */var QF=/["'&<>]/,JF=ZF;function ZF(e){var t=""+e,n=QF.exec(t);if(!n)return t;var r,o="",a=0,s=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}s!==a&&(o+=t.substring(s,a)),s=a+1,o+=r}return s!==a?o+t.substring(s,a):o}const qF=Kd(JF),mh=function(e){let t=e.target;for(;t&&t.tagName.toUpperCase()!=="HTML";){if(t.tagName.toUpperCase()==="TD")return t;t=t.parentNode}return null},hy=function(e){return e!==null&&typeof e=="object"},$F=function(e,t,n,r,o){if(!t&&!r&&(!o||Array.isArray(o)&&!o.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const a=r?null:function(l,c){return o?(Array.isArray(o)||(o=[o]),o.map(u=>typeof u=="string"?Bn(l,u):u(l,c,e))):(t!=="$key"&&hy(l)&&"$value"in l&&(l=l.$value),[hy(l)?Bn(l,t):l])},s=function(l,c){if(r)return r(l.value,c.value);for(let u=0,f=l.key.length;u<f;u++){if(l.key[u]<c.key[u])return-1;if(l.key[u]>c.key[u])return 1}return 0};return e.map((l,c)=>({value:l,index:c,key:a?a(l,c):null})).sort((l,c)=>{let u=s(l,c);return u||(u=l.index-c.index),u*+n}).map(l=>l.value)},py=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},eN=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const o=e.columns[r];if(o.columnKey===t){n=o;break}}return n},vy=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?py(e,r[0]):null},gn=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const o of n)r=r[o];return`${r}`}else if(typeof t=="function")return t.call(null,e)},Ma=function(e,t){const n={};return(e||[]).forEach((r,o)=>{n[gn(r,t)]={row:r,index:o}}),n};function tN(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(mr(t,r)){const o=t[r];typeof o<"u"&&(n[r]=o)}return n}function yh(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function gy(e){return e===""||e!==void 0&&(e=yh(e),Number.isNaN(e)&&(e=80)),e}function xh(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function nN(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function nu(e,t,n){let r=!1;const o=e.indexOf(t),a=o!==-1,s=()=>{e.push(t),r=!0},l=()=>{e.splice(o,1),r=!0};return typeof n=="boolean"?n&&!a?s():!n&&a&&l():a?l():s(),r}function oN(e,t,n="children",r="hasChildren"){const o=s=>!(Array.isArray(s)&&s.length);function a(s,l,c){t(s,l,c),l.forEach(u=>{if(u[r]){t(u,null,c+1);return}const f=u[n];o(f)||a(u,f,c+1)})}e.forEach(s=>{if(s[r]){t(s,null,0);return}const l=s[n];o(l)||a(s,l,0)})}let Jr;function rN(e,t,n,r,o){const{nextZIndex:a}=Ps(),s=e==null?void 0:e.dataset.prefix,l=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function c(){const g=o==="light",v=document.createElement("div");return v.className=`${s}-popper ${g?"is-light":"is-dark"}`,n=qF(n),v.innerHTML=n,v.style.zIndex=String(a()),e==null||e.appendChild(v),v}function u(){const g=document.createElement("div");return g.className=`${s}-popper__arrow`,g}function f(){d&&d.update()}Jr=()=>{try{d&&d.destroy(),h&&(e==null||e.removeChild(h)),ws(t,"mouseenter",f),ws(t,"mouseleave",Jr),l&&ws(l,"scroll",Jr),Jr=void 0}catch{}};let d=null;const h=c(),p=u();return h.appendChild(p),d=Jm(t,h,{strategy:"absolute",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:p,padding:10}}],...r}),Cs(t,"mouseenter",f),Cs(t,"mouseleave",Jr),l&&Cs(l,"scroll",Jr),d}const my=(e,t,n,r)=>{let o=0,a=e;if(r){if(r[e].colSpan>1)return{};for(let c=0;c<e;c++)o+=r[c].colSpan;a=o+r[e].colSpan-1}else o=e;let s;const l=n.states.columns;switch(t){case"left":a<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":o>=l.value.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:a<n.states.fixedLeafColumnsLength.value?s="left":o>=l.value.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:a}:{}},Eh=(e,t,n,r,o)=>{const a=[],{direction:s,start:l}=my(t,n,r,o);if(s){const c=s==="left";a.push(`${e}-fixed-column--${s}`),c&&l===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!c&&l===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function yy(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Ch=(e,t,n,r)=>{const{direction:o,start:a=0}=my(e,t,n,r);if(!o)return;const s={},l=o==="left",c=n.states.columns.value;return l?s.left=c.slice(0,e).reduce(yy,0):s.right=c.slice(a+1).reverse().reduce(yy,0),s},js=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function aN(e){const t=i.getCurrentInstance(),n=i.ref(!1),r=i.ref([]);return{updateExpandRows:()=>{const c=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=c.slice();else if(u){const f=Ma(r.value,u);r.value=c.reduce((d,h)=>{const p=gn(h,u);return f[p]&&d.push(h),d},[])}else r.value=[]},toggleRowExpansion:(c,u)=>{nu(r.value,c,u)&&t.emit("expand-change",c,r.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const u=e.data.value||[],f=e.rowKey.value,d=Ma(u,f);r.value=c.reduce((h,p)=>{const g=d[p];return g&&h.push(g.row),h},[])},isRowExpanded:c=>{const u=e.rowKey.value;return u?!!Ma(r.value,u)[gn(c,u)]:r.value.includes(c)},states:{expandRows:r,defaultExpandAll:n}}}function sN(e){const t=i.getCurrentInstance(),n=i.ref(null),r=i.ref(null),o=u=>{t.store.assertRowKey(),n.value=u,s(u)},a=()=>{n.value=null},s=u=>{const{data:f,rowKey:d}=e;let h=null;d.value&&(h=(i.unref(f)||[]).find(p=>gn(p,d.value)===u)),r.value=h,t.emit("current-change",r.value,null)};return{setCurrentRowKey:o,restoreCurrentRowKey:a,setCurrentRowByKey:s,updateCurrentRow:u=>{const f=r.value;if(u&&u!==f){r.value=u,t.emit("current-change",r.value,f);return}!u&&f&&(r.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const u=e.rowKey.value,f=e.data.value||[],d=r.value;if(!f.includes(d)&&d){if(u){const h=gn(d,u);s(h)}else r.value=null;r.value===null&&t.emit("current-change",null,d)}else n.value&&(s(n.value),a())},states:{_currentRowKey:n,currentRow:r}}}function iN(e){const t=i.ref([]),n=i.ref({}),r=i.ref(16),o=i.ref(!1),a=i.ref({}),s=i.ref("hasChildren"),l=i.ref("children"),c=i.getCurrentInstance(),u=i.computed(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return d(y)}),f=i.computed(()=>{const y=e.rowKey.value,E=Object.keys(a.value),x={};return E.length&&E.forEach(C=>{if(a.value[C].length){const A={children:[]};a.value[C].forEach(w=>{const b=gn(w,y);A.children.push(b),w[s.value]&&!x[b]&&(x[b]={children:[]})}),x[C]=A}}),x}),d=y=>{const E=e.rowKey.value,x={};return oN(y,(C,A,w)=>{const b=gn(C,E);Array.isArray(A)?x[b]={children:A.map(T=>gn(T,E)),level:w}:o.value&&(x[b]={children:[],lazy:!0,level:w})},l.value,s.value),x},h=(y=!1,E=(x=>(x=c.store)==null?void 0:x.states.defaultExpandAll.value)())=>{var x;const C=u.value,A=f.value,w=Object.keys(C),b={};if(w.length){const T=i.unref(n),S=[],_=(H,B)=>{if(y)return t.value?E||t.value.includes(B):!!(E||H!=null&&H.expanded);{const j=E||t.value&&t.value.includes(B);return!!(H!=null&&H.expanded||j)}};w.forEach(H=>{const B=T[H],j={...C[H]};if(j.expanded=_(B,H),j.lazy){const{loaded:Z=!1,loading:q=!1}=B||{};j.loaded=!!Z,j.loading=!!q,S.push(H)}b[H]=j});const I=Object.keys(A);o.value&&I.length&&S.length&&I.forEach(H=>{const B=T[H],j=A[H].children;if(S.includes(H)){if(b[H].children.length!==0)throw new Error("[ElTable]children must be an empty array.");b[H].children=j}else{const{loaded:Z=!1,loading:q=!1}=B||{};b[H]={lazy:!0,loaded:!!Z,loading:!!q,expanded:_(B,H),children:j,level:""}}})}n.value=b,(x=c.store)==null||x.updateTableScrollY()};i.watch(()=>t.value,()=>{h(!0)}),i.watch(()=>u.value,()=>{h()}),i.watch(()=>f.value,()=>{h()});const p=y=>{t.value=y,h()},g=(y,E)=>{c.store.assertRowKey();const x=e.rowKey.value,C=gn(y,x),A=C&&n.value[C];if(C&&A&&"expanded"in A){const w=A.expanded;E=typeof E>"u"?!A.expanded:E,n.value[C].expanded=E,w!==E&&c.emit("expand-change",y,E),c.store.updateTableScrollY()}},v=y=>{c.store.assertRowKey();const E=e.rowKey.value,x=gn(y,E),C=n.value[x];o.value&&C&&"loaded"in C&&!C.loaded?m(y,x,C):g(y,void 0)},m=(y,E,x)=>{const{load:C}=c.props;C&&!n.value[E].loaded&&(n.value[E].loading=!0,C(y,x,A=>{if(!Array.isArray(A))throw new TypeError("[ElTable] data must be an array");n.value[E].loading=!1,n.value[E].loaded=!0,n.value[E].expanded=!0,A.length&&(a.value[E]=A),c.emit("expand-change",y,!0)}))};return{loadData:m,loadOrToggle:v,toggleTreeExpansion:g,updateTreeExpandKeys:p,updateTreeData:h,normalize:d,states:{expandRowKeys:t,treeData:n,indent:r,lazy:o,lazyTreeNodeMap:a,lazyColumnIdentifier:s,childrenColumnName:l}}}const lN=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:$F(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},ou=e=>{const t=[];return e.forEach(n=>{n.children?t.push.apply(t,ou(n.children)):t.push(n)}),t};function cN(){var e;const t=i.getCurrentInstance(),{size:n}=i.toRefs((e=t.proxy)==null?void 0:e.$props),r=i.ref(null),o=i.ref([]),a=i.ref([]),s=i.ref(!1),l=i.ref([]),c=i.ref([]),u=i.ref([]),f=i.ref([]),d=i.ref([]),h=i.ref([]),p=i.ref([]),g=i.ref([]),v=i.ref(0),m=i.ref(0),y=i.ref(0),E=i.ref(!1),x=i.ref([]),C=i.ref(!1),A=i.ref(!1),w=i.ref(null),b=i.ref({}),T=i.ref(null),S=i.ref(null),_=i.ref(null),I=i.ref(null),H=i.ref(null);i.watch(o,()=>t.state&&Z(!1),{deep:!0});const B=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},j=()=>{f.value=l.value.filter(ee=>ee.fixed===!0||ee.fixed==="left"),d.value=l.value.filter(ee=>ee.fixed==="right"),f.value.length>0&&l.value[0]&&l.value[0].type==="selection"&&!l.value[0].fixed&&(l.value[0].fixed=!0,f.value.unshift(l.value[0]));const Pe=l.value.filter(ee=>!ee.fixed);c.value=[].concat(f.value).concat(Pe).concat(d.value);const W=ou(Pe),k=ou(f.value),L=ou(d.value);v.value=W.length,m.value=k.length,y.value=L.length,u.value=[].concat(k).concat(W).concat(L),s.value=f.value.length>0||d.value.length>0},Z=(Pe,W=!1)=>{Pe&&j(),W?t.state.doLayout():t.state.debouncedUpdateLayout()},q=Pe=>x.value.includes(Pe),K=()=>{E.value=!1,x.value.length&&(x.value=[],t.emit("selection-change",[]))},oe=()=>{let Pe;if(r.value){Pe=[];const W=Ma(x.value,r.value),k=Ma(o.value,r.value);for(const L in W)mr(W,L)&&!k[L]&&Pe.push(W[L].row)}else Pe=x.value.filter(W=>!o.value.includes(W));if(Pe.length){const W=x.value.filter(k=>!Pe.includes(k));x.value=W,t.emit("selection-change",W.slice())}},ge=()=>(x.value||[]).slice(),Ae=(Pe,W=void 0,k=!0)=>{if(nu(x.value,Pe,W)){const ee=(x.value||[]).slice();k&&t.emit("select",ee,Pe),t.emit("selection-change",ee)}},pe=()=>{var Pe,W;const k=A.value?!E.value:!(E.value||x.value.length);E.value=k;let L=!1,ee=0;const ve=(W=(Pe=t==null?void 0:t.store)==null?void 0:Pe.states)==null?void 0:W.rowKey.value;o.value.forEach((Oe,ze)=>{const Ye=ze+ee;w.value?w.value.call(null,Oe,Ye)&&nu(x.value,Oe,k)&&(L=!0):nu(x.value,Oe,k)&&(L=!0),ee+=z(gn(Oe,ve))}),L&&t.emit("selection-change",x.value?x.value.slice():[]),t.emit("select-all",x.value)},P=()=>{const Pe=Ma(x.value,r.value);o.value.forEach(W=>{const k=gn(W,r.value),L=Pe[k];L&&(x.value[L.index]=W)})},G=()=>{var Pe,W,k;if(((Pe=o.value)==null?void 0:Pe.length)===0){E.value=!1;return}let L;r.value&&(L=Ma(x.value,r.value));const ee=function(Ye){return L?!!L[gn(Ye,r.value)]:x.value.includes(Ye)};let ve=!0,Oe=0,ze=0;for(let Ye=0,ut=(o.value||[]).length;Ye<ut;Ye++){const je=(k=(W=t==null?void 0:t.store)==null?void 0:W.states)==null?void 0:k.rowKey.value,_e=Ye+ze,He=o.value[Ye],rt=w.value&&w.value.call(null,He,_e);if(ee(He))Oe++;else if(!w.value||rt){ve=!1;break}ze+=z(gn(He,je))}Oe===0&&(ve=!1),E.value=ve},z=Pe=>{var W;if(!t||!t.store)return 0;const{treeData:k}=t.store.states;let L=0;const ee=(W=k.value[Pe])==null?void 0:W.children;return ee&&(L+=ee.length,ee.forEach(ve=>{L+=z(ve)})),L},U=(Pe,W)=>{Array.isArray(Pe)||(Pe=[Pe]);const k={};return Pe.forEach(L=>{b.value[L.id]=W,k[L.columnKey||L.id]=W}),k},J=(Pe,W,k)=>{S.value&&S.value!==Pe&&(S.value.order=null),S.value=Pe,_.value=W,I.value=k},ne=()=>{let Pe=i.unref(a);Object.keys(b.value).forEach(W=>{const k=b.value[W];if(!k||k.length===0)return;const L=py({columns:u.value},W);L&&L.filterMethod&&(Pe=Pe.filter(ee=>k.some(ve=>L.filterMethod.call(null,ve,ee,L))))}),T.value=Pe},ce=()=>{o.value=lN(T.value,{sortingColumn:S.value,sortProp:_.value,sortOrder:I.value})},Q=(Pe=void 0)=>{Pe&&Pe.filter||ne(),ce()},X=Pe=>{const{tableHeaderRef:W}=t.refs;if(!W)return;const k=Object.assign({},W.filterPanels),L=Object.keys(k);if(L.length)if(typeof Pe=="string"&&(Pe=[Pe]),Array.isArray(Pe)){const ee=Pe.map(ve=>eN({columns:u.value},ve));L.forEach(ve=>{const Oe=ee.find(ze=>ze.id===ve);Oe&&(Oe.filteredValue=[])}),t.store.commit("filterChange",{column:ee,values:[],silent:!0,multi:!0})}else L.forEach(ee=>{const ve=u.value.find(Oe=>Oe.id===ee);ve&&(ve.filteredValue=[])}),b.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},de=()=>{S.value&&(J(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:me,toggleRowExpansion:Ne,updateExpandRows:Fe,states:lt,isRowExpanded:We}=aN({data:o,rowKey:r}),{updateTreeExpandKeys:Ce,toggleTreeExpansion:ct,updateTreeData:Ct,loadOrToggle:ue,states:Ee}=iN({data:o,rowKey:r}),{updateCurrentRowData:Be,updateCurrentRow:ot,setCurrentRowKey:le,states:Le}=sN({data:o,rowKey:r});return{assertRowKey:B,updateColumns:j,scheduleLayout:Z,isSelected:q,clearSelection:K,cleanSelection:oe,getSelectionRows:ge,toggleRowSelection:Ae,_toggleAllSelection:pe,toggleAllSelection:null,updateSelectionByRowKey:P,updateAllSelected:G,updateFilters:U,updateCurrentRow:ot,updateSort:J,execFilter:ne,execSort:ce,execQuery:Q,clearFilter:X,clearSort:de,toggleRowExpansion:Ne,setExpandRowKeysAdapter:Pe=>{me(Pe),Ce(Pe)},setCurrentRowKey:le,toggleRowExpansionAdapter:(Pe,W)=>{u.value.some(({type:L})=>L==="expand")?Ne(Pe,W):ct(Pe,W)},isRowExpanded:We,updateExpandRows:Fe,updateCurrentRowData:Be,loadOrToggle:ue,updateTreeData:Ct,states:{tableSize:n,rowKey:r,data:o,_data:a,isComplex:s,_columns:l,originColumns:c,columns:u,fixedColumns:f,rightFixedColumns:d,leafColumns:h,fixedLeafColumns:p,rightFixedLeafColumns:g,leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:E,selection:x,reserveSelection:C,selectOnIndeterminate:A,selectable:w,filters:b,filteredData:T,sortingColumn:S,sortProp:_,sortOrder:I,hoverRow:H,...lt,...Ee,...Le}}}function wh(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=wh(n.children,t)),n)})}function xy(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&xy(t.children)}),e.sort((t,n)=>t.no-n.no)}function uN(){const e=i.getCurrentInstance(),t=cN();return{ns:Me("table"),...t,mutations:{setData(s,l){const c=i.unref(s._data)!==l;s.data.value=l,s._data.value=l,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),i.unref(s.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,l,c){const u=i.unref(s._columns);let f=[];c?(c&&!c.children&&(c.children=[]),c.children.push(l),f=wh(u,c)):(u.push(l),f=u),xy(f),s._columns.value=f,l.type==="selection"&&(s.selectable.value=l.selectable,s.reserveSelection.value=l.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(s,l,c){const u=i.unref(s._columns)||[];if(c)c.children.splice(c.children.findIndex(f=>f.id===l.id),1),c.children.length===0&&delete c.children,s._columns.value=wh(u,c);else{const f=u.indexOf(l);f>-1&&(u.splice(f,1),s._columns.value=u)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,l){const{prop:c,order:u,init:f}=l;if(c){const d=i.unref(s.columns).find(h=>h.property===c);d&&(d.order=u,e.store.updateSort(d,c,u),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(s,l){const{sortingColumn:c,sortProp:u,sortOrder:f}=s;i.unref(f)===null&&(s.sortingColumn.value=null,s.sortProp.value=null);const d={filter:!0};e.store.execQuery(d),(!l||!(l.silent||l.init))&&e.emit("sort-change",{column:i.unref(c),prop:i.unref(u),order:i.unref(f)}),e.store.updateTableScrollY()},filterChange(s,l){const{column:c,values:u,silent:f}=l,d=e.store.updateFilters(c,u);e.store.execQuery(),f||e.emit("filter-change",d),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(s,l){e.store.toggleRowSelection(l),e.store.updateAllSelected()},setHoverRow(s,l){s.hoverRow.value=l},setCurrentRow(s,l){e.store.updateCurrentRow(l)}},commit:function(s,...l){const c=e.store.mutations;if(c[s])c[s].apply(e,[e.store.states].concat(l));else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){i.nextTick(()=>e.layout.updateScrollY.apply(e.layout))}}}const sl={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function fN(e,t){if(!e)throw new Error("Table is required.");const n=uN();return n.toggleAllSelection=Es(n._toggleAllSelection,10),Object.keys(sl).forEach(r=>{Ey(Cy(t,r),r,n)}),dN(n,t),n}function dN(e,t){Object.keys(sl).forEach(n=>{i.watch(()=>Cy(t,n),r=>{Ey(r,n,e)})})}function Ey(e,t,n){let r=e,o=sl[t];typeof sl[t]=="object"&&(o=o.key,r=r||sl[t].default),n.states[o].value=r}function Cy(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(o=>{r=r[o]}),r}else return e[t]}class hN{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=i.ref(null),this.scrollX=i.ref(!1),this.scrollY=i.ref(!1),this.bodyWidth=i.ref(null),this.fixedWidth=i.ref(null),this.rightFixedWidth=i.ref(null),this.tableHeight=i.ref(null),this.headerHeight=i.ref(44),this.appendHeight=i.ref(0),this.footerHeight=i.ref(44),this.viewportHeight=i.ref(null),this.bodyHeight=i.ref(null),this.bodyScrollHeight=i.ref(0),this.fixedBodyHeight=i.ref(null),this.gutterWidth=0;for(const n in t)mr(t,n)&&(i.isRef(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(){if(this.height.value===null)return!1;const n=this.table.refs.bodyWrapper;if(this.table.vnode.el&&n){let r=!0;const o=this.scrollY.value;return this.bodyHeight.value===null?r=!1:r=n.scrollHeight>this.bodyHeight.value,this.scrollY.value=r,o!==r}return!1}setHeight(t,n="height"){if(!wt)return;const r=this.table.vnode.el;if(t=xh(t),this.height.value=Number(t),!r&&(t||t===0))return i.nextTick(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){var t,n;if(!this.table.$ready)return i.nextTick(()=>this.updateElsHeight());const{tableWrapper:r,headerWrapper:o,appendWrapper:a,footerWrapper:s,tableHeader:l,tableBody:c}=this.table.refs;if(r&&r.style.display==="none")return;const{tableLayout:u}=this.table.props;if(this.appendHeight.value=a?a.offsetHeight:0,this.showHeader&&!o&&u==="fixed")return;const f=l||null,d=this.headerDisplayNone(f),h=(o==null?void 0:o.offsetHeight)||0,p=this.headerHeight.value=this.showHeader?h:0;if(this.showHeader&&!d&&h>0&&(this.table.store.states.columns.value||[]).length>0&&p<2)return i.nextTick(()=>this.updateElsHeight());const g=this.tableHeight.value=(n=(t=this.table)==null?void 0:t.vnode.el)==null?void 0:n.clientHeight,v=this.footerHeight.value=s?s.offsetHeight:0;this.height.value!==null&&(this.bodyHeight.value===null&&requestAnimationFrame(()=>this.updateElsHeight()),this.bodyHeight.value=g-p-v+(s?1:0),this.bodyScrollHeight.value=c==null?void 0:c.scrollHeight),this.fixedBodyHeight.value=this.scrollX.value?this.bodyHeight.value-this.gutterWidth:this.bodyHeight.value,this.viewportHeight.value=this.scrollX.value?g-this.gutterWidth:g,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(){if(!wt)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const o=this.getFlattenColumns(),a=o.filter(c=>typeof c.width!="number");if(o.forEach(c=>{typeof c.width=="number"&&c.realWidth&&(c.realWidth=null)}),a.length>0&&t){if(o.forEach(c=>{r+=Number(c.width||c.minWidth||80)}),r<=n){this.scrollX.value=!1;const c=n-r;if(a.length===1)a[0].realWidth=Number(a[0].minWidth||80)+c;else{const u=a.reduce((h,p)=>h+Number(p.minWidth||80),0),f=c/u;let d=0;a.forEach((h,p)=>{if(p===0)return;const g=Math.floor(Number(h.minWidth||80)*f);d+=g,h.realWidth=Number(h.minWidth||80)+g}),a[0].realWidth=Number(a[0].minWidth||80)+c-d}}else this.scrollX.value=!0,a.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(r,n),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),r+=c.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const s=this.store.states.fixedColumns.value;if(s.length>0){let c=0;s.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(r=>{var o,a;switch(t){case"columns":(o=r.state)==null||o.onColumnsChange(this);break;case"scrollable":(a=r.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:pN}=Ba,vN=i.defineComponent({name:"ElTableFilterPanel",components:{ElCheckbox:Ba,ElCheckboxGroup:pN,ElScrollbar:Ds,ElTooltip:jc,ElIcon:dt,ArrowDown:Kg,ArrowUp:Yg},directives:{ClickOutside:p0},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=i.getCurrentInstance(),{t:n}=oo(),r=Me("table-filter"),o=t==null?void 0:t.parent;o.filterPanels.value[e.column.id]||(o.filterPanels.value[e.column.id]=t);const a=i.ref(!1),s=i.ref(null),l=i.computed(()=>e.column&&e.column.filters),c=i.computed({get:()=>{var C;return(((C=e.column)==null?void 0:C.filteredValue)||[])[0]},set:C=>{u.value&&(typeof C<"u"&&C!==null?u.value.splice(0,1,C):u.value.splice(0,1))}}),u=i.computed({get(){return e.column?e.column.filteredValue||[]:[]},set(C){e.column&&e.upDataColumn("filteredValue",C)}}),f=i.computed(()=>e.column?e.column.filterMultiple:!0),d=C=>C.value===c.value,h=()=>{a.value=!1},p=C=>{C.stopPropagation(),a.value=!a.value},g=()=>{a.value=!1},v=()=>{E(u.value),h()},m=()=>{u.value=[],E(u.value),h()},y=C=>{c.value=C,E(typeof C<"u"&&C!==null?u.value:[]),h()},E=C=>{e.store.commit("filterChange",{column:e.column,values:C}),e.store.updateAllSelected()};i.watch(a,C=>{e.column&&e.upDataColumn("filterOpened",C)},{immediate:!0});const x=i.computed(()=>{var C,A;return(A=(C=s.value)==null?void 0:C.popperRef)==null?void 0:A.contentRef});return{tooltipVisible:a,multiple:f,filteredValue:u,filterValue:c,filters:l,handleConfirm:v,handleReset:m,handleSelect:y,isActive:d,t:n,ns:r,showFilterPanel:p,hideFilterPanel:g,popperPaneRef:x,tooltip:s}}}),gN={key:0},mN=["disabled"],yN=["label","onClick"];function xN(e,t,n,r,o,a){const s=i.resolveComponent("el-checkbox"),l=i.resolveComponent("el-checkbox-group"),c=i.resolveComponent("el-scrollbar"),u=i.resolveComponent("arrow-up"),f=i.resolveComponent("arrow-down"),d=i.resolveComponent("el-icon"),h=i.resolveComponent("el-tooltip"),p=i.resolveDirective("click-outside");return i.openBlock(),i.createBlock(h,{ref:"tooltip",visible:e.tooltipVisible,"onUpdate:visible":t[5]||(t[5]=g=>e.tooltipVisible=g),offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:i.withCtx(()=>[e.multiple?(i.openBlock(),i.createElementBlock("div",gN,[i.createElementVNode("div",{class:i.normalizeClass(e.ns.e("content"))},[i.createVNode(c,{"wrap-class":e.ns.e("wrap")},{default:i.withCtx(()=>[i.createVNode(l,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:i.normalizeClass(e.ns.e("checkbox-group"))},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.filters,g=>(i.openBlock(),i.createBlock(s,{key:g.value,label:g.value},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(g.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),i.createElementVNode("div",{class:i.normalizeClass(e.ns.e("bottom"))},[i.createElementVNode("button",{class:i.normalizeClass({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},i.toDisplayString(e.t("el.table.confirmFilter")),11,mN),i.createElementVNode("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},i.toDisplayString(e.t("el.table.resetFilter")),1)],2)])):(i.openBlock(),i.createElementBlock("ul",{key:1,class:i.normalizeClass(e.ns.e("list"))},[i.createElementVNode("li",{class:i.normalizeClass([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=g=>e.handleSelect(null))},i.toDisplayString(e.t("el.table.clearFilter")),3),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.filters,g=>(i.openBlock(),i.createElementBlock("li",{key:g.value,class:i.normalizeClass([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),label:g.value,onClick:v=>e.handleSelect(g.value)},i.toDisplayString(g.text),11,yN))),128))],2))]),default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...g)=>e.showFilterPanel&&e.showFilterPanel(...g))},[i.createVNode(d,null,{default:i.withCtx(()=>[e.column.filterOpened?(i.openBlock(),i.createBlock(u,{key:0})):(i.openBlock(),i.createBlock(f,{key:1}))]),_:1})],2)),[[p,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var EN=Ue(vN,[["render",xN],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function wy(e){const t=i.getCurrentInstance();i.onBeforeMount(()=>{n.value.addObserver(t)}),i.onMounted(()=>{r(n.value),o(n.value)}),i.onUpdated(()=>{r(n.value),o(n.value)}),i.onUnmounted(()=>{n.value.removeObserver(t)});const n=i.computed(()=>{const a=e.layout;if(!a)throw new Error("Can not find table layout.");return a}),r=a=>{var s;const l=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col"))||[];if(!l.length)return;const c=a.getFlattenColumns(),u={};c.forEach(f=>{u[f.id]=f});for(let f=0,d=l.length;f<d;f++){const h=l[f],p=h.getAttribute("name"),g=u[p];g&&h.setAttribute("width",g.realWidth||g.width)}},o=a=>{var s,l;const c=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let f=0,d=c.length;f<d;f++)c[f].setAttribute("width",a.scrollY.value?a.gutterWidth:"0");const u=((l=e.vnode.el)==null?void 0:l.querySelectorAll("th.gutter"))||[];for(let f=0,d=u.length;f<d;f++){const h=u[f];h.style.width=a.scrollY.value?`${a.gutterWidth}px`:"0",h.style.display=a.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:o}}const or=Symbol("ElTable");function CN(e,t){const n=i.getCurrentInstance(),r=i.inject(or),o=v=>{v.stopPropagation()},a=(v,m)=>{!m.filters&&m.sortable?g(v,m,!1):m.filterable&&!m.sortable&&o(v),r==null||r.emit("header-click",m,v)},s=(v,m)=>{r==null||r.emit("header-contextmenu",m,v)},l=i.ref(null),c=i.ref(!1),u=i.ref({}),f=(v,m)=>{if(wt&&!(m.children&&m.children.length>0)&&l.value&&e.border){c.value=!0;const y=r;t("set-drag-visible",!0);const x=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,C=n.vnode.el.querySelector(`th.${m.id}`),A=C.getBoundingClientRect(),w=A.left-x+30;Gi(C,"noclick"),u.value={startMouseLeft:v.clientX,startLeft:A.right-x,startColumnLeft:A.left-x,tableLeft:x};const b=y==null?void 0:y.refs.resizeProxy;b.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const T=_=>{const I=_.clientX-u.value.startMouseLeft,H=u.value.startLeft+I;b.style.left=`${Math.max(w,H)}px`},S=()=>{if(c.value){const{startColumnLeft:_,startLeft:I}=u.value,B=Number.parseInt(b.style.left,10)-_;m.width=m.realWidth=B,y==null||y.emit("header-dragend",m.width,I-_,m,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",c.value=!1,l.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",S),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Gr(C,"noclick")},0)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",S)}},d=(v,m)=>{if(m.children&&m.children.length>0)return;let y=v.target;for(;y&&y.tagName!=="TH";)y=y.parentNode;if(!(!m||!m.resizable)&&!c.value&&e.border){const E=y.getBoundingClientRect(),x=document.body.style;E.width>12&&E.right-v.pageX<8?(x.cursor="col-resize",As(y,"is-sortable")&&(y.style.cursor="col-resize"),l.value=m):c.value||(x.cursor="",As(y,"is-sortable")&&(y.style.cursor="pointer"),l.value=null)}},h=()=>{wt&&(document.body.style.cursor="")},p=({order:v,sortOrders:m})=>{if(v==="")return m[0];const y=m.indexOf(v||null);return m[y>m.length-2?0:y+1]},g=(v,m,y)=>{v.stopPropagation();const E=m.order===y?null:y||p(m);let x=v.target;for(;x&&x.tagName!=="TH";)x=x.parentNode;if(x&&x.tagName==="TH"&&As(x,"noclick")){Gr(x,"noclick");return}if(!m.sortable)return;const C=e.store.states;let A=C.sortProp.value,w;const b=C.sortingColumn.value;(b!==m||b===m&&b.order===null)&&(b&&(b.order=null),C.sortingColumn.value=m,A=m.property),E?w=m.order=E:w=m.order=null,C.sortProp.value=A,C.sortOrder.value=w,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:s,handleMouseDown:f,handleMouseMove:d,handleMouseOut:h,handleSortClick:g,handleFilterClick:o}}function wN(e){const t=i.inject(or),n=Me("table");return{getHeaderRowStyle:l=>{const c=t==null?void 0:t.props.headerRowStyle;return typeof c=="function"?c.call(null,{rowIndex:l}):c},getHeaderRowClass:l=>{const c=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?c.push(u):typeof u=="function"&&c.push(u.call(null,{rowIndex:l})),c.join(" ")},getHeaderCellStyle:(l,c,u,f)=>{var d;let h=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};typeof h=="function"&&(h=h.call(null,{rowIndex:l,columnIndex:c,row:u,column:f}));const p=f.isSubColumn?null:Ch(c,f.fixed,e.store,u);return js(p,"left"),js(p,"right"),Object.assign({},h,p)},getHeaderCellClass:(l,c,u,f)=>{const d=f.isSubColumn?[]:Eh(n.b(),c,f.fixed,e.store,u),h=[f.id,f.order,f.headerAlign,f.className,f.labelClassName,...d];f.children||h.push("is-leaf"),f.sortable&&h.push("is-sortable");const p=t==null?void 0:t.props.headerCellClassName;return typeof p=="string"?h.push(p):typeof p=="function"&&h.push(p.call(null,{rowIndex:l,columnIndex:c,row:u,column:f})),h.push(n.e("cell")),h.filter(g=>!!g).join(" ")}}}const by=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,by(n.children))):t.push(n)}),t},bN=e=>{let t=1;const n=(a,s)=>{if(s&&(a.level=s.level+1,t<a.level&&(t=a.level)),a.children){let l=0;a.children.forEach(c=>{n(c,a),l+=c.colSpan}),a.colSpan=l}else a.colSpan=1};e.forEach(a=>{a.level=1,n(a,void 0)});const r=[];for(let a=0;a<t;a++)r.push([]);return by(e).forEach(a=>{a.children?(a.rowSpan=1,a.children.forEach(s=>s.isSubColumn=!0)):a.rowSpan=t-a.level+1,r[a.level-1].push(a)}),r};function AN(e){const t=i.inject(or),n=i.computed(()=>bN(e.store.states.originColumns.value));return{isGroup:i.computed(()=>{const a=n.value.length>1;return a&&t&&(t.state.isGroup.value=!0),a}),toggleAllSelection:a=>{a.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var SN=i.defineComponent({name:"ElTableHeader",components:{ElCheckbox:Ba},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=i.getCurrentInstance(),r=i.inject(or),o=Me("table"),a=i.ref({}),{onColumnsChange:s,onScrollableChange:l}=wy(r);i.onMounted(async()=>{await i.nextTick(),await i.nextTick();const{prop:w,order:b}=e.defaultSort;r==null||r.store.commit("sort",{prop:w,order:b,init:!0})});const{handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:d,handleMouseOut:h,handleSortClick:p,handleFilterClick:g}=CN(e,t),{getHeaderRowStyle:v,getHeaderRowClass:m,getHeaderCellStyle:y,getHeaderCellClass:E}=wN(e),{isGroup:x,toggleAllSelection:C,columnRows:A}=AN(e);return n.state={onColumnsChange:s,onScrollableChange:l},n.filterPanels=a,{ns:o,filterPanels:a,onColumnsChange:s,onScrollableChange:l,columnRows:A,getHeaderRowClass:m,getHeaderRowStyle:v,getHeaderCellClass:E,getHeaderCellStyle:y,handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:d,handleMouseOut:h,handleSortClick:p,handleFilterClick:g,isGroup:x,toggleAllSelection:C}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:o,getHeaderRowClass:a,getHeaderRowStyle:s,handleHeaderClick:l,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:f,handleSortClick:d,handleMouseOut:h,store:p,$parent:g}=this;let v=1;return i.h("thead",{class:{[e.is("group")]:t}},n.map((m,y)=>i.h("tr",{class:a(y),key:y,style:s(y)},m.map((E,x)=>(E.rowSpan>v&&(v=E.rowSpan),i.h("th",{class:o(y,x,m,E),colspan:E.colSpan,key:`${E.id}-thead`,rowspan:E.rowSpan,style:r(y,x,m,E),onClick:C=>l(C,E),onContextmenu:C=>c(C,E),onMousedown:C=>u(C,E),onMousemove:C=>f(C,E),onMouseout:h},[i.h("div",{class:["cell",E.filteredValue&&E.filteredValue.length>0?"highlight":"",E.labelClassName]},[E.renderHeader?E.renderHeader({column:E,$index:x,store:p,_self:g}):E.label,E.sortable&&i.h("span",{onClick:C=>d(C,E),class:"caret-wrapper"},[i.h("i",{onClick:C=>d(C,E,"ascending"),class:"sort-caret ascending"}),i.h("i",{onClick:C=>d(C,E,"descending"),class:"sort-caret descending"})]),E.filterable&&i.h(EN,{store:p,placement:E.filterPlacement||"bottom-start",column:E,upDataColumn:(C,A)=>{E[C]=A}})])]))))))}});function TN(e){const t=i.inject(or),n=i.ref(""),r=i.ref(i.h("div")),o=(h,p,g)=>{var v;const m=t,y=mh(h);let E;const x=(v=m==null?void 0:m.vnode.el)==null?void 0:v.dataset.prefix;y&&(E=vy({columns:e.store.states.columns.value},y,x),E&&(m==null||m.emit(`cell-${g}`,p,E,y,h))),m==null||m.emit(`row-${g}`,p,E,h)},a=(h,p)=>{o(h,p,"dblclick")},s=(h,p)=>{e.store.commit("setCurrentRow",p),o(h,p,"click")},l=(h,p)=>{o(h,p,"contextmenu")},c=Es(h=>{e.store.commit("setHoverRow",h)},30),u=Es(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:a,handleClick:s,handleContextMenu:l,handleMouseEnter:c,handleMouseLeave:u,handleCellMouseEnter:(h,p)=>{var g;const v=t,m=mh(h),y=(g=v==null?void 0:v.vnode.el)==null?void 0:g.dataset.prefix;if(m){const w=vy({columns:e.store.states.columns.value},m,y),b=v.hoverState={cell:m,column:w,row:p};v==null||v.emit("cell-mouse-enter",b.row,b.column,b.cell,h)}const E=h.target.querySelector(".cell");if(!(As(E,`${y}-tooltip`)&&E.childNodes.length))return;const x=document.createRange();x.setStart(E,0),x.setEnd(E,E.childNodes.length);const C=x.getBoundingClientRect().width,A=(Number.parseInt(yr(E,"paddingLeft"),10)||0)+(Number.parseInt(yr(E,"paddingRight"),10)||0);(C+A>E.offsetWidth||E.scrollWidth>E.offsetWidth)&&rN(t==null?void 0:t.refs.tableWrapper,m,m.innerText||m.textContent,{placement:"top",strategy:"fixed"},p.tooltipEffect)},handleCellMouseLeave:h=>{if(!mh(h))return;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,h)},tooltipContent:n,tooltipTrigger:r}}function kN(e){const t=i.inject(or),n=Me("table");return{getRowStyle:(u,f)=>{const d=t==null?void 0:t.props.rowStyle;return typeof d=="function"?d.call(null,{row:u,rowIndex:f}):d||null},getRowClass:(u,f)=>{const d=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&d.push("current-row"),e.stripe&&f%2===1&&d.push(n.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return typeof h=="string"?d.push(h):typeof h=="function"&&d.push(h.call(null,{row:u,rowIndex:f})),d},getCellStyle:(u,f,d,h)=>{const p=t==null?void 0:t.props.cellStyle;let g=p??{};typeof p=="function"&&(g=p.call(null,{rowIndex:u,columnIndex:f,row:d,column:h}));const v=h.isSubColumn?null:Ch(f,e==null?void 0:e.fixed,e.store);return js(v,"left"),js(v,"right"),Object.assign({},g,v)},getCellClass:(u,f,d,h)=>{const p=h.isSubColumn?[]:Eh(n.b(),f,e==null?void 0:e.fixed,e.store),g=[h.id,h.align,h.className,...p],v=t==null?void 0:t.props.cellClassName;return typeof v=="string"?g.push(v):typeof v=="function"&&g.push(v.call(null,{rowIndex:u,columnIndex:f,row:d,column:h})),g.push(n.e("cell")),g.filter(m=>!!m).join(" ")},getSpan:(u,f,d,h)=>{let p=1,g=1;const v=t==null?void 0:t.props.spanMethod;if(typeof v=="function"){const m=v({row:u,column:f,rowIndex:d,columnIndex:h});Array.isArray(m)?(p=m[0],g=m[1]):typeof m=="object"&&(p=m.rowspan,g=m.colspan)}return{rowspan:p,colspan:g}},getColspanRealWidth:(u,f,d)=>{if(f<1)return u[d].realWidth;const h=u.map(({realWidth:p,width:g})=>p||g).slice(d,d+f);return Number(h.reduce((p,g)=>Number(p)+Number(g),-1))}}}function ON(e){const t=i.inject(or),{handleDoubleClick:n,handleClick:r,handleContextMenu:o,handleMouseEnter:a,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:c,tooltipContent:u,tooltipTrigger:f}=TN(e),{getRowStyle:d,getRowClass:h,getCellStyle:p,getCellClass:g,getSpan:v,getColspanRealWidth:m}=kN(e),y=i.computed(()=>e.store.states.columns.value.findIndex(({type:w})=>w==="default")),E=(w,b)=>{const T=t.props.rowKey;return T?gn(w,T):b},x=(w,b,T,S=!1)=>{const{tooltipEffect:_,store:I}=e,{indent:H,columns:B}=I.states,j=h(w,b);let Z=!0;T&&(j.push(`el-table__row--level-${T.level}`),Z=T.display);const q=Z?null:{display:"none"};return i.h("tr",{style:[q,d(w,b)],class:j,key:E(w,b),onDblclick:K=>n(K,w),onClick:K=>r(K,w),onContextmenu:K=>o(K,w),onMouseenter:()=>a(b),onMouseleave:s},B.value.map((K,oe)=>{const{rowspan:ge,colspan:Ae}=v(w,K,b,oe);if(!ge||!Ae)return null;const pe={...K};pe.realWidth=m(B.value,Ae,oe);const P={store:e.store,_self:e.context||t,column:pe,row:w,$index:b,cellIndex:oe,expanded:S};oe===y.value&&T&&(P.treeNode={indent:T.level*H.value,level:T.level},typeof T.expanded=="boolean"&&(P.treeNode.expanded=T.expanded,"loading"in T&&(P.treeNode.loading=T.loading),"noLazyChildren"in T&&(P.treeNode.noLazyChildren=T.noLazyChildren)));const G=`${b},${oe}`,z=pe.columnKey||pe.rawColumnKey||"",U=C(oe,K,P);return i.h("td",{style:p(b,oe,w,K),class:g(b,oe,w,K),key:`${z}${G}`,rowspan:ge,colspan:Ae,onMouseenter:J=>l(J,{...w,tooltipEffect:_}),onMouseleave:c},[U])}))},C=(w,b,T)=>b.renderCell(T);return{wrappedRowRender:(w,b)=>{const T=e.store,{isRowExpanded:S,assertRowKey:_}=T,{treeData:I,lazyTreeNodeMap:H,childrenColumnName:B,rowKey:j}=T.states,Z=T.states.columns.value;if(Z.some(({type:K})=>K==="expand")){const K=S(w),oe=x(w,b,void 0,K),ge=t.renderExpanded;return K?ge?[[oe,i.h("tr",{key:`expanded-row__${oe.key}`},[i.h("td",{colspan:Z.length,class:"el-table__cell el-table__expanded-cell"},[ge({row:w,$index:b,store:T,expanded:K})])])]]:(console.error("[Element Error]renderExpanded is required."),oe):[[oe]]}else if(Object.keys(I.value).length){_();const K=gn(w,j.value);let oe=I.value[K],ge=null;oe&&(ge={expanded:oe.expanded,level:oe.level,display:!0},typeof oe.lazy=="boolean"&&(typeof oe.loaded=="boolean"&&oe.loaded&&(ge.noLazyChildren=!(oe.children&&oe.children.length)),ge.loading=oe.loading));const Ae=[x(w,b,ge)];if(oe){let pe=0;const P=(z,U)=>{z&&z.length&&U&&z.forEach(J=>{const ne={display:U.display&&U.expanded,level:U.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ce=gn(J,j.value);if(ce==null)throw new Error("For nested data item, row-key is required.");if(oe={...I.value[ce]},oe&&(ne.expanded=oe.expanded,oe.level=oe.level||ne.level,oe.display=!!(oe.expanded&&ne.display),typeof oe.lazy=="boolean"&&(typeof oe.loaded=="boolean"&&oe.loaded&&(ne.noLazyChildren=!(oe.children&&oe.children.length)),ne.loading=oe.loading)),pe++,Ae.push(x(J,b+pe,ne)),oe){const Q=H.value[ce]||J[B.value];P(Q,oe)}})};oe.display=!0;const G=H.value[K]||w[B.value];P(G,oe)}return Ae}else return x(w,b,void 0)},tooltipContent:u,tooltipTrigger:f}}const PN={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var _N=i.defineComponent({name:"ElTableBody",props:PN,setup(e){const t=i.getCurrentInstance(),n=i.inject(or),r=Me("table"),{wrappedRowRender:o,tooltipContent:a,tooltipTrigger:s}=ON(e),{onColumnsChange:l,onScrollableChange:c}=wy(n);return i.watch(e.store.states.hoverRow,(u,f)=>{if(!e.store.states.isComplex.value||!wt)return;let d=window.requestAnimationFrame;d||(d=h=>window.setTimeout(h,16)),d(()=>{var h;const p=(h=t==null?void 0:t.vnode.el)==null?void 0:h.querySelectorAll(`.${r.e("row")}`),g=p[f],v=p[u];g&&Gr(g,"hover-row"),v&&Gi(v,"hover-row")})}),i.onUnmounted(()=>{var u;(u=Jr)==null||u()}),i.onUpdated(()=>{var u;(u=Jr)==null||u()}),{ns:r,onColumnsChange:l,onScrollableChange:c,wrappedRowRender:o,tooltipContent:a,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return i.h("tbody",{},[n.reduce((r,o)=>r.concat(e(o,r.length)),[])])}});function bh(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(o=>o.width===void 0)&&(n=[]);const r=o=>{const a={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?a.style={width:`${o.width}px`}:a.name=o.id,a};return i.h("colgroup",{},n.map(o=>i.h("col",r(o))))}bh.props=["columns","tableLayout"];function DN(){const e=i.inject(or),t=e==null?void 0:e.store,n=i.computed(()=>t.states.fixedLeafColumnsLength.value),r=i.computed(()=>t.states.rightFixedColumns.value.length),o=i.computed(()=>t.states.columns.value.length),a=i.computed(()=>t.states.fixedColumns.value.length),s=i.computed(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:o,leftFixedCount:a,rightFixedCount:s,columns:t.states.columns}}function IN(e){const{columns:t}=DN(),n=Me("table");return{getCellClasses:(a,s)=>{const l=a[s],c=[n.e("cell"),l.id,l.align,l.labelClassName,...Eh(n.b(),s,l.fixed,e.store)];return l.className&&c.push(l.className),l.children||c.push(n.is("leaf")),c},getCellStyles:(a,s)=>{const l=Ch(s,a.fixed,e.store);return js(l,"left"),js(l,"right"),l},columns:t}}var FN=i.defineComponent({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{getCellClasses:t,getCellStyles:n,columns:r}=IN(e);return{ns:Me("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:o,ns:a}=this,s=this.store.states.data.value;let l=[];return r?l=r({columns:e,data:s}):e.forEach((c,u)=>{if(u===0){l[u]=o;return}const f=s.map(g=>Number(g[c.property])),d=[];let h=!0;f.forEach(g=>{if(!Number.isNaN(+g)){h=!1;const v=`${g}`.split(".")[1];d.push(v?v.length:0)}});const p=Math.max.apply(null,d);h?l[u]="":l[u]=f.reduce((g,v)=>{const m=Number(v);return Number.isNaN(+m)?g:Number.parseFloat((g+v).toFixed(Math.min(p,20)))},0)}),i.h("table",{class:a.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[bh({columns:e}),i.h("tbody",[i.h("tr",{},[...e.map((c,u)=>i.h("td",{key:u,colspan:c.colSpan,rowspan:c.rowSpan,class:n(e,u),style:t(c,u)},[i.h("div",{class:["cell",c.labelClassName]},[l[u]])]))])])])}});function NN(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,d)=>{e.toggleRowSelection(f,d,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,d)=>{e.toggleRowExpansionAdapter(f,d)},clearSort:()=>{e.clearSort()},sort:(f,d)=>{e.commit("sort",{prop:f,order:d})}}}function BN(e,t,n,r){const o=i.ref(!1),a=i.ref(null),s=i.ref(!1),l=K=>{s.value=K},c=i.ref({width:null,height:null}),u=i.ref(!1),f={display:"block",verticalAlign:"middle"},d=i.ref();i.watchEffect(()=>{t.setHeight(e.height)}),i.watchEffect(()=>{t.setMaxHeight(e.maxHeight)}),i.watch(()=>[e.currentRowKey,n.states.rowKey],([K,oe])=>{i.unref(oe)&&n.setCurrentRowKey(`${K}`)},{immediate:!0}),i.watch(()=>e.data,K=>{r.store.commit("setData",K)},{immediate:!0,deep:!0}),i.watchEffect(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const h=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},p=(K,oe)=>{const{pixelX:ge,pixelY:Ae}=oe;Math.abs(ge)>=Math.abs(Ae)&&(r.refs.bodyWrapper.scrollLeft+=oe.pixelX/5)},g=i.computed(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),v=i.computed(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),m=()=>{g.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(C)};i.onMounted(async()=>{await i.nextTick(),n.updateColumns(),A(),requestAnimationFrame(m);const K=r.vnode.el;e.flexible&&K&&K.parentElement&&(K.parentElement.style.minWidth="0"),c.value={width:d.value=K.offsetWidth,height:K.offsetHeight},n.states.columns.value.forEach(oe=>{oe.filteredValue&&oe.filteredValue.length&&r.store.commit("filterChange",{column:oe,values:oe.filteredValue,silent:!0})}),r.$ready=!0});const y=(K,oe)=>{if(!K)return;const ge=Array.from(K.classList).filter(Ae=>!Ae.startsWith("is-scrolling-"));ge.push(t.scrollX.value?oe:"is-scrolling-none"),K.className=ge.join(" ")},E=K=>{const{tableWrapper:oe}=r.refs;y(oe,K)},x=K=>{const{tableWrapper:oe}=r.refs;return!!(oe&&oe.classList.contains(K))},C=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const z="is-scrolling-none";x(z)||E(z);return}const K=r.refs.scrollBarRef.wrap$;if(!K)return;const{scrollLeft:oe,offsetWidth:ge,scrollWidth:Ae}=K,{headerWrapper:pe,footerWrapper:P}=r.refs;pe&&(pe.scrollLeft=oe),P&&(P.scrollLeft=oe);const G=Ae-ge-1;oe>=G?E("is-scrolling-right"):E(oe===0?"is-scrolling-left":"is-scrolling-middle")},A=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrap$&&$o(r.refs.scrollBarRef.wrap$,"scroll",C,{passive:!0}),e.fit?bs(r.vnode.el,w):$o(window,"resize",w))},w=()=>{if(!r.$ready)return;let K=!1;const oe=r.vnode.el,{width:ge,height:Ae}=c.value,pe=d.value=oe.offsetWidth;ge!==pe&&(K=!0);const P=oe.offsetHeight;(e.height||g.value)&&Ae!==P&&(K=!0),K&&(c.value={width:pe,height:P},m())},b=Yn(),T=i.computed(()=>{const{bodyWidth:K,scrollY:oe,gutterWidth:ge}=t;return K.value?`${K.value-(oe.value?ge:0)}px`:""}),S=i.computed(()=>e.maxHeight?"fixed":e.tableLayout);function _(K,oe,ge){const Ae=xh(K),pe=e.showHeader?ge:0;if(Ae!==null)return Ot(Ae)?`calc(${Ae} - ${oe}px - ${pe}px)`:Ae-oe-pe}const I=i.computed(()=>{const K=t.headerHeight.value||0,oe=t.bodyHeight.value,ge=t.footerHeight.value||0;if(e.height)return oe||void 0;if(e.maxHeight)return _(e.maxHeight,ge,K)}),H=i.computed(()=>{const K=t.headerHeight.value||0,oe=t.bodyHeight.value,ge=t.footerHeight.value||0;if(e.height)return{height:oe?`${oe}px`:""};if(e.maxHeight){const Ae=_(e.maxHeight,ge,K);if(Ae!==null)return{"max-height":`${Ae}${It(Ae)?"px":""}`}}return{}}),B=i.computed(()=>{if(e.data&&e.data.length)return null;let K="100%";return t.appendHeight.value&&(K=`calc(100% - ${t.appendHeight.value}px)`),{width:d.value?`${d.value}px`:"",height:K}}),j=(K,oe)=>{const ge=r.refs.bodyWrapper;if(Math.abs(oe.spinY)>0){const Ae=ge.scrollTop;oe.pixelY<0&&Ae!==0&&K.preventDefault(),oe.pixelY>0&&ge.scrollHeight-ge.clientHeight>Ae&&K.preventDefault(),ge.scrollTop+=Math.ceil(oe.pixelY/5)}else ge.scrollLeft+=Math.ceil(oe.pixelX/5)},Z=i.computed(()=>e.maxHeight?e.showSummary?{bottom:0}:{bottom:t.scrollX.value&&e.data.length?`${t.gutterWidth}px`:""}:e.showSummary?{height:t.tableHeight.value?`${t.tableHeight.value}px`:""}:{height:t.viewportHeight.value?`${t.viewportHeight.value}px`:""}),q=i.computed(()=>{if(e.height)return{height:t.fixedBodyHeight.value?`${t.fixedBodyHeight.value}px`:""};if(e.maxHeight){let K=xh(e.maxHeight);if(typeof K=="number")return K=t.scrollX.value?K-t.gutterWidth:K,e.showHeader&&(K-=t.headerHeight.value),K-=t.footerHeight.value,{"max-height":`${K}px`}}return{}});return{isHidden:o,renderExpanded:a,setDragVisible:l,isGroup:u,handleMouseLeave:h,handleHeaderFooterMousewheel:p,tableSize:b,bodyHeight:H,height:I,emptyBlockStyle:B,handleFixedMousewheel:j,fixedHeight:Z,fixedBodyHeight:q,resizeProxyVisible:s,bodyWidth:T,resizeState:c,doLayout:m,tableBodyStyles:v,tableLayout:S,scrollbarViewStyle:f}}var RN={data:{type:Array,default:()=>[]},size:String,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,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const MN=()=>{const e=i.ref(),t=(a,s)=>{const l=e.value;l&&l.scrollTo(a,s)},n=(a,s)=>{const l=e.value;l&&It(s)&&["Top","Left"].includes(a)&&l[`setScroll${a}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:a=>n("Top",a),setScrollLeft:a=>n("Left",a)}};let LN=1;const VN=i.defineComponent({name:"ElTable",directives:{Mousewheel:m_},components:{TableHeader:SN,TableBody:_N,TableFooter:FN,ElScrollbar:Ds,hColgroup:bh},props:RN,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"],setup(e){const{t}=oo(),n=Me("table"),r=i.getCurrentInstance();i.provide(or,r);const o=fN(r,e);r.store=o;const a=new hN({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=a;const s=i.computed(()=>(o.states.data.value||[]).length===0),{setCurrentRow:l,getSelectionRows:c,toggleRowSelection:u,clearSelection:f,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:g,sort:v}=NN(o),{isHidden:m,renderExpanded:y,setDragVisible:E,isGroup:x,handleMouseLeave:C,handleHeaderFooterMousewheel:A,tableSize:w,bodyHeight:b,height:T,emptyBlockStyle:S,handleFixedMousewheel:_,fixedHeight:I,fixedBodyHeight:H,resizeProxyVisible:B,bodyWidth:j,resizeState:Z,doLayout:q,tableBodyStyles:K,tableLayout:oe,scrollbarViewStyle:ge}=BN(e,a,o,r),{scrollBarRef:Ae,scrollTo:pe,setScrollLeft:P,setScrollTop:G}=MN(),z=Es(q,50),U=`el-table_${LN++}`;r.tableId=U,r.state={isGroup:x,resizeState:Z,doLayout:q,debouncedUpdateLayout:z};const J=i.computed(()=>e.sumText||t("el.table.sumText")),ne=i.computed(()=>e.emptyText||t("el.table.emptyText"));return{ns:n,layout:a,store:o,handleHeaderFooterMousewheel:A,handleMouseLeave:C,tableId:U,tableSize:w,isHidden:m,isEmpty:s,renderExpanded:y,resizeProxyVisible:B,resizeState:Z,isGroup:x,bodyWidth:j,bodyHeight:b,height:T,tableBodyStyles:K,emptyBlockStyle:S,debouncedUpdateLayout:z,handleFixedMousewheel:_,fixedHeight:I,fixedBodyHeight:H,setCurrentRow:l,getSelectionRows:c,toggleRowSelection:u,clearSelection:f,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:g,doLayout:q,sort:v,t,setDragVisible:E,context:r,computedSumText:J,computedEmptyText:ne,tableLayout:oe,scrollbarViewStyle:ge,scrollBarRef:Ae,scrollTo:pe,setScrollLeft:P,setScrollTop:G}}}),HN=["data-prefix"],UN={ref:"hiddenColumns",class:"hidden-columns"};function jN(e,t,n,r,o,a){const s=i.resolveComponent("hColgroup"),l=i.resolveComponent("table-header"),c=i.resolveComponent("table-body"),u=i.resolveComponent("el-scrollbar"),f=i.resolveComponent("table-footer"),d=i.resolveDirective("mousewheel");return i.openBlock(),i.createElementBlock("div",{ref:"tableWrapper",class:i.normalizeClass([{[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:i.normalizeStyle(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=h=>e.handleMouseLeave())},[i.createElementVNode("div",{class:i.normalizeClass(e.ns.e("inner-wrapper"))},[i.createElementVNode("div",UN,[i.renderSlot(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,ref:"headerWrapper",class:i.normalizeClass(e.ns.e("header-wrapper"))},[i.createElementVNode("table",{ref:"tableHeader",class:i.normalizeClass(e.ns.e("header")),style:i.normalizeStyle(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[i.createVNode(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),i.createVNode(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):i.createCommentVNode("v-if",!0),i.createElementVNode("div",{ref:"bodyWrapper",style:i.normalizeStyle(e.bodyHeight),class:i.normalizeClass(e.ns.e("body-wrapper"))},[i.createVNode(u,{ref:"scrollBarRef",height:e.maxHeight?void 0:e.height,"max-height":e.maxHeight?e.height:void 0,"view-style":e.scrollbarViewStyle,always:e.scrollbarAlwaysOn},{default:i.withCtx(()=>[i.createElementVNode("table",{ref:"tableBody",class:i.normalizeClass(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:i.normalizeStyle({width:e.bodyWidth,tableLayout:e.tableLayout})},[i.createVNode(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(i.openBlock(),i.createBlock(l,{key:0,border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):i.createCommentVNode("v-if",!0),i.createVNode(c,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","row-style","store","stripe"])],6),e.isEmpty?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"emptyBlock",style:i.normalizeStyle(e.emptyBlockStyle),class:i.normalizeClass(e.ns.e("empty-block"))},[i.createElementVNode("span",{class:i.normalizeClass(e.ns.e("empty-text"))},[i.renderSlot(e.$slots,"empty",{},()=>[i.createTextVNode(i.toDisplayString(e.computedEmptyText),1)])],2)],6)):i.createCommentVNode("v-if",!0),e.$slots.append?(i.openBlock(),i.createElementBlock("div",{key:1,ref:"appendWrapper",class:i.normalizeClass(e.ns.e("append-wrapper"))},[i.renderSlot(e.$slots,"append")],2)):i.createCommentVNode("v-if",!0)]),_:3},8,["height","max-height","view-style","always"])],6),e.border||e.isGroup?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(e.ns.e("border-left-patch"))},null,2)):i.createCommentVNode("v-if",!0)],2),e.showSummary?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,ref:"footerWrapper",class:i.normalizeClass(e.ns.e("footer-wrapper"))},[i.createVNode(f,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:i.normalizeStyle(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[i.vShow,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):i.createCommentVNode("v-if",!0),i.withDirectives(i.createElementVNode("div",{ref:"resizeProxy",class:i.normalizeClass(e.ns.e("column-resize-proxy"))},null,2),[[i.vShow,e.resizeProxyVisible]])],46,HN)}var GN=Ue(VN,[["render",jN],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const zN={selection:"table-column--selection",expand:"table__expand-column"},WN={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:""}},KN=e=>zN[e]||"",YN={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return i.h(Ba,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:r}){return i.h(Ba,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),i.h("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,o=[r.e("expand-icon")];n&&o.push(r.em("expand-icon","expanded"));const a=function(s){s.stopPropagation(),t.toggleRowExpansion(e)};return i.h("div",{class:o,onClick:a},{default:()=>[i.h(dt,null,{default:()=>[i.h(vd)]})]})},sortable:!1,resizable:!1}};function XN({row:e,column:t,$index:n}){var r;const o=t.property,a=o&&Oc(e,o).value;return t&&t.formatter?t.formatter(e,t,a,n):((r=a==null?void 0:a.toString)==null?void 0:r.call(a))||""}function QN({row:e,treeNode:t,store:n},r=!1){const{ns:o}=n;if(!t)return r?[i.h("span",{class:o.e("placeholder")})]:null;const a=[],s=function(l){l.stopPropagation(),n.loadOrToggle(e)};if(t.indent&&a.push(i.h("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const l=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let c=vd;t.loading&&(c=Dc),a.push(i.h("div",{class:l,onClick:s},{default:()=>[i.h(dt,{class:{[o.is("loading")]:t.loading}},{default:()=>[i.h(c)]})]}))}else a.push(i.h("span",{class:o.e("placeholder")}));return a}function Ay(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function JN(e,t){const n=i.getCurrentInstance();return{registerComplexWatchers:()=>{const a=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},l=Ay(a,s);Object.keys(l).forEach(c=>{const u=s[c];mr(t,u)&&i.watch(()=>t[u],f=>{let d=f;u==="width"&&c==="realWidth"&&(d=yh(f)),u==="minWidth"&&c==="realMinWidth"&&(d=gy(f)),n.columnConfig.value[u]=d,n.columnConfig.value[c]=d;const h=u==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const a=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=Ay(a,s);Object.keys(l).forEach(c=>{const u=s[c];mr(t,u)&&i.watch(()=>t[u],f=>{n.columnConfig.value[c]=f})})}}}function ZN(e,t,n){const r=i.getCurrentInstance(),o=i.ref(""),a=i.ref(!1),s=i.ref(),l=i.ref(),c=Me("table");i.watchEffect(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),i.watchEffect(()=>{l.value=e.headerAlign?`is-${e.headerAlign}`:s.value,l.value});const u=i.computed(()=>{let x=r.vnode.vParent||r.parent;for(;x&&!x.tableId&&!x.columnId;)x=x.vnode.vParent||x.parent;return x}),f=i.computed(()=>{const{store:x}=r.parent;if(!x)return!1;const{treeData:C}=x.states,A=C.value;return A&&Object.keys(A).length>0}),d=i.ref(yh(e.width)),h=i.ref(gy(e.minWidth)),p=x=>(d.value&&(x.width=d.value),h.value&&(x.minWidth=h.value),x.minWidth||(x.minWidth=80),x.realWidth=Number(x.width===void 0?x.minWidth:x.width),x),g=x=>{const C=x.type,A=YN[C]||{};Object.keys(A).forEach(b=>{const T=A[b];b!=="className"&&T!==void 0&&(x[b]=T)});const w=KN(C);if(w){const b=`${i.unref(c.namespace)}-${w}`;x.className=x.className?`${x.className} ${b}`:b}return x},v=x=>{Array.isArray(x)?x.forEach(A=>C(A)):C(x);function C(A){var w;((w=A==null?void 0:A.type)==null?void 0:w.name)==="ElTableColumn"&&(A.vParent=r)}};return{columnId:o,realAlign:s,isSubColumn:a,realHeaderAlign:l,columnOrTableParent:u,setColumnWidth:p,setColumnForcedProps:g,setColumnRenders:x=>{e.renderHeader?vt("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):x.type!=="selection"&&(x.renderHeader=w=>{r.columnConfig.value.label;const b=t.header;return b?b(w):x.label});let C=x.renderCell;const A=f.value;return x.type==="expand"?(x.renderCell=w=>i.h("div",{class:"cell"},[C(w)]),n.value.renderExpanded=w=>t.default?t.default(w):t.default):(C=C||XN,x.renderCell=w=>{let b=null;if(t.default){const I=t.default(w);b=I.some(H=>H.type!==i.Comment)?I:C(w)}else b=C(w);const T=A&&w.cellIndex===0,S=QN(w,T),_={class:"cell",style:{}};return x.showOverflowTooltip&&(_.class=`${_.class} ${i.unref(c.namespace)}-tooltip`,_.style={width:`${(w.column.realWidth||Number(w.column.width))-1}px`}),v(b),i.h("div",_,[S,b])}),x},getPropsData:(...x)=>x.reduce((C,A)=>(Array.isArray(A)&&A.forEach(w=>{C[w]=e[w]}),C),{}),getColumnElIndex:(x,C)=>Array.prototype.indexOf.call(x,C)}}var qN={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,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let $N=1;var Sy=i.defineComponent({name:"ElTableColumn",components:{ElCheckbox:Ba},props:qN,setup(e,{slots:t}){const n=i.getCurrentInstance(),r=i.ref({}),o=i.computed(()=>{let E=n.parent;for(;E&&!E.tableId;)E=E.parent;return E}),{registerNormalWatchers:a,registerComplexWatchers:s}=JN(o,e),{columnId:l,isSubColumn:c,realHeaderAlign:u,columnOrTableParent:f,setColumnWidth:d,setColumnForcedProps:h,setColumnRenders:p,getPropsData:g,getColumnElIndex:v,realAlign:m}=ZN(e,t,o),y=f.value;l.value=`${y.tableId||y.columnId}_column_${$N++}`,i.onBeforeMount(()=>{c.value=o.value!==y;const E=e.type||"default",x=e.sortable===""?!0:e.sortable,C={...WN[E],id:l.value,type:E,property:e.prop||e.property,align:m,headerAlign:u,showOverflowTooltip:e.showOverflowTooltip||e.showTooltipWhenOverflow,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:x,index:e.index,rawColumnKey:n.vnode.key};let S=g(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);S=tN(C,S),S=nN(p,d,h)(S),r.value=S,a(),s()}),i.onMounted(()=>{var E;const x=f.value,C=c.value?x.vnode.el.children:(E=x.refs.hiddenColumns)==null?void 0:E.children,A=()=>v(C||[],n.vnode.el);r.value.getColumnIndex=A,A()>-1&&o.value.store.commit("insertColumn",r.value,c.value?x.columnConfig.value:null)}),i.onBeforeUnmount(()=>{o.value.store.commit("removeColumn",r.value,c.value?y.columnConfig.value:null)}),n.columnId=l.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(Array.isArray(r))for(const s of r)((n=s.type)==null?void 0:n.name)==="ElTableColumn"||s.shapeFlag&2?o.push(s):s.type===i.Fragment&&Array.isArray(s.children)&&s.children.forEach(l=>{(l==null?void 0:l.patchFlag)!==1024&&!Ot(l==null?void 0:l.children)&&o.push(l)});return i.h("div",o)}catch{return i.h("div",[])}}});const eB=Mt(GN,{TableColumn:Sy}),tB=Rn(Sy),nB="ElUpload";class oB extends Error{constructor(t,n,r,o){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=o}}function Ty(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new oB(r,n.status,t.method,e)}function rB(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const aB=e=>{typeof XMLHttpRequest>"u"&&Ta(nB,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",a=>{const s=a;s.percent=a.total>0?a.loaded/a.total*100:0,e.onProgress(s)});const r=new FormData;if(e.data)for(const[a,s]of Object.entries(e.data))Array.isArray(s)?r.append(a,...s):r.append(a,s);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Ty(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Ty(n,e,t));e.onSuccess(rB(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((a,s)=>t.setRequestHeader(s,a));else for(const[a,s]of Object.entries(o))ji(s)||t.setRequestHeader(a,String(s));return t.send(r),t},ky=["text","picture","picture-card"];let sB=1;const Oy=()=>Date.now()+sB++,Py=Je({action:{type:String,default:"#"},headers:{type:Ie(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>yo({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:Ie(Array),default:()=>yo([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:ky,default:"text"},httpRequest:{type:Ie(Function),default:aB},disabled:Boolean,limit:Number}),iB=Je({...Py,beforeUpload:{type:Ie(Function),default:Rt},beforeRemove:{type:Ie(Function)},onRemove:{type:Ie(Function),default:Rt},onChange:{type:Ie(Function),default:Rt},onPreview:{type:Ie(Function),default:Rt},onSuccess:{type:Ie(Function),default:Rt},onProgress:{type:Ie(Function),default:Rt},onError:{type:Ie(Function),default:Rt},onExceed:{type:Ie(Function),default:Rt}}),lB=Je({files:{type:Ie(Array),default:()=>yo([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Ie(Function),default:Rt},listType:{type:String,values:ky,default:"text"}}),cB={remove:e=>!!e},uB=["onKeydown"],fB=["src"],dB=["onClick"],hB=["onClick"],pB=["onClick"],vB={name:"ElUploadList"},gB=i.defineComponent({...vB,props:lB,emits:cB,setup(e,{emit:t}){const n=e,{t:r}=oo(),o=Me("upload"),a=Me("icon"),s=Me("list"),l=i.ref(!1),c=f=>{n.handlePreview(f)},u=f=>{t("remove",f)};return(f,d)=>(i.openBlock(),i.createBlock(i.TransitionGroup,{tag:"ul",class:i.normalizeClass([i.unref(o).b("list"),i.unref(o).bm("list",f.listType),i.unref(o).is("disabled",f.disabled)]),name:i.unref(s).b()},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.files,h=>(i.openBlock(),i.createElementBlock("li",{key:h.uid||h.name,class:i.normalizeClass([i.unref(o).be("list","item"),i.unref(o).is(h.status),{focusing:l.value}]),tabindex:"0",onKeydown:i.withKeys(p=>!f.disabled&&u(h),["delete"]),onFocus:d[0]||(d[0]=p=>l.value=!0),onBlur:d[1]||(d[1]=p=>l.value=!1),onClick:d[2]||(d[2]=p=>l.value=!1)},[i.renderSlot(f.$slots,"default",{file:h},()=>[f.listType==="picture"||h.status!=="uploading"&&f.listType==="picture-card"?(i.openBlock(),i.createElementBlock("img",{key:0,class:i.normalizeClass(i.unref(o).be("list","item-thumbnail")),src:h.url,alt:""},null,10,fB)):i.createCommentVNode("v-if",!0),f.listType!=="picture"&&(h.status==="uploading"||f.listType!=="picture-card")?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(o).be("list","item-info"))},[i.createElementVNode("a",{class:i.normalizeClass(i.unref(o).be("list","item-name")),onClick:i.withModifiers(p=>c(h),["prevent"])},[i.createVNode(i.unref(dt),{class:i.normalizeClass(i.unref(a).m("document"))},{default:i.withCtx(()=>[i.createVNode(i.unref(_4))]),_:1},8,["class"]),i.createElementVNode("span",{class:i.normalizeClass(i.unref(o).be("list","item-file-name"))},i.toDisplayString(h.name),3)],10,dB),h.status==="uploading"?(i.openBlock(),i.createBlock(i.unref(NF),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:i.normalizeStyle(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):i.createCommentVNode("v-if",!0)],2)):i.createCommentVNode("v-if",!0),i.createElementVNode("label",{class:i.normalizeClass(i.unref(o).be("list","item-status-label"))},[f.listType==="text"?(i.openBlock(),i.createBlock(i.unref(dt),{key:0,class:i.normalizeClass([i.unref(a).m("upload-success"),i.unref(a).m("circle-check")])},{default:i.withCtx(()=>[i.createVNode(i.unref(gd))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(i.openBlock(),i.createBlock(i.unref(dt),{key:1,class:i.normalizeClass([i.unref(a).m("upload-success"),i.unref(a).m("check")])},{default:i.withCtx(()=>[i.createVNode(i.unref(Xg))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0)],2),f.disabled?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(i.unref(dt),{key:2,class:i.normalizeClass(i.unref(a).m("close")),onClick:p=>u(h)},{default:i.withCtx(()=>[i.createVNode(i.unref(Ss))]),_:2},1032,["class","onClick"])),i.createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),i.createCommentVNode(" This is a bug which needs to be fixed "),i.createCommentVNode(" TODO: Fix the incorrect navigation interaction "),f.disabled?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("i",{key:3,class:i.normalizeClass(i.unref(a).m("close-tip"))},i.toDisplayString(i.unref(r)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(i.openBlock(),i.createElementBlock("span",{key:4,class:i.normalizeClass(i.unref(o).be("list","item-actions"))},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(o).be("list","item-preview")),onClick:p=>f.handlePreview(h)},[i.createVNode(i.unref(dt),{class:i.normalizeClass(i.unref(a).m("zoom-in"))},{default:i.withCtx(()=>[i.createVNode(i.unref(U4))]),_:1},8,["class"])],10,hB),f.disabled?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(o).be("list","item-delete")),onClick:p=>u(h)},[i.createVNode(i.unref(dt),{class:i.normalizeClass(i.unref(a).m("delete"))},{default:i.withCtx(()=>[i.createVNode(i.unref(O4))]),_:1},8,["class"])],10,pB))],2)):i.createCommentVNode("v-if",!0)])],42,uB))),128)),i.renderSlot(f.$slots,"append")]),_:3},8,["class","name"]))}});var _y=Ue(gB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const mB=Je({disabled:{type:Boolean,default:!1}}),yB={file:e=>hd(e)},xB=["onDrop","onDragover"],EB={name:"ElUploadDrag"},CB=i.defineComponent({...EB,props:mB,emits:yB,setup(e,{emit:t}){const n=e,r="ElUploadDrag",o=i.inject(cm);o||Ta(r,"usage: <el-upload><el-upload-dragger /></el-upload>");const a=Me("upload"),s=i.ref(!1),l=u=>{if(n.disabled)return;s.value=!1;const f=Array.from(u.dataTransfer.files),d=o.accept.value;if(!d){t("file",f);return}const h=f.filter(p=>{const{type:g,name:v}=p,m=v.includes(".")?`.${v.split(".").pop()}`:"",y=g.replace(/\/.*$/,"");return d.split(",").map(E=>E.trim()).filter(E=>E).some(E=>E.startsWith(".")?m===E:/\/\*$/.test(E)?y===E.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(E)?g===E:!1)});t("file",h)},c=()=>{n.disabled||(s.value=!0)};return(u,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(a).b("dragger"),i.unref(a).is("dragover",s.value)]),onDrop:i.withModifiers(l,["prevent"]),onDragover:i.withModifiers(c,["prevent"]),onDragleave:f[0]||(f[0]=i.withModifiers(d=>s.value=!1,["prevent"]))},[i.renderSlot(u.$slots,"default")],42,xB))}});var wB=Ue(CB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const bB=Je({...Py,fileList:{type:Ie(Array),default:()=>yo([])},beforeUpload:{type:Ie(Function),default:Rt},onRemove:{type:Ie(Function),default:Rt},onStart:{type:Ie(Function),default:Rt},onSuccess:{type:Ie(Function),default:Rt},onProgress:{type:Ie(Function),default:Rt},onError:{type:Ie(Function),default:Rt},onExceed:{type:Ie(Function),default:Rt}}),AB=["onKeydown"],SB=["name","multiple","accept"],TB={name:"ElUploadContent",inheritAttrs:!1},kB=i.defineComponent({...TB,props:bB,setup(e,{expose:t}){const n=e,r=Me("upload"),o=i.shallowRef({}),a=i.shallowRef(),s=p=>{if(p.length===0)return;const{autoUpload:g,limit:v,fileList:m,multiple:y,onStart:E,onExceed:x}=n;if(v&&m.length+p.length>v){x(p,m);return}y||(p=p.slice(0,1));for(const C of p){const A=C;A.uid=Oy(),E(A),g&&l(A)}},l=async p=>{if(a.value.value="",!n.beforeUpload)return c(p);let g;try{g=await n.beforeUpload(p)}catch{g=!1}if(g===!1){n.onRemove(p);return}let v=p;g instanceof Blob&&(g instanceof File?v=g:v=new File([g],p.name,{type:p.type})),c(Object.assign(v,{uid:p.uid}))},c=p=>{const{headers:g,data:v,method:m,withCredentials:y,name:E,action:x,onProgress:C,onSuccess:A,onError:w,httpRequest:b}=n,{uid:T}=p,S={headers:g||{},withCredentials:y,file:p,data:v,method:m,filename:E,action:x,onProgress:I=>{C(I,p)},onSuccess:I=>{A(I,p),delete o.value[T]},onError:I=>{w(I,p),delete o.value[T]}},_=b(S);o.value[T]=_,_ instanceof Promise&&_.then(S.onSuccess,S.onError)},u=p=>{const g=p.target.files;g&&s(Array.from(g))},f=()=>{n.disabled||(a.value.value="",a.value.click())},d=()=>{f()};return t({abort:p=>{c4(o.value).filter(p?([v])=>String(p.uid)===v:()=>!0).forEach(([v,m])=>{m instanceof XMLHttpRequest&&m.abort(),delete o.value[v]})},upload:l}),(p,g)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(r).b(),i.unref(r).m(p.listType),i.unref(r).is("drag",p.drag)]),tabindex:"0",onClick:f,onKeydown:i.withKeys(i.withModifiers(d,["self"]),["enter","space"])},[p.drag?(i.openBlock(),i.createBlock(wB,{key:0,disabled:p.disabled,onFile:s},{default:i.withCtx(()=>[i.renderSlot(p.$slots,"default")]),_:3},8,["disabled"])):i.renderSlot(p.$slots,"default",{key:1}),i.createElementVNode("input",{ref_key:"inputRef",ref:a,class:i.normalizeClass(i.unref(r).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:u,onClick:g[0]||(g[0]=i.withModifiers(()=>{},["stop"]))},null,42,SB)],42,AB))}});var Dy=Ue(kB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const Iy="ElUpload",OB=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},PB=(e,t)=>{const n=i.ref([]),r=h=>n.value.find(p=>p.uid===h.uid);function o(h){var p;(p=t.value)==null||p.abort(h)}function a(h=["ready","uploading","success","fail"]){n.value=n.value.filter(p=>!h.includes(p.status))}const s=(h,p)=>{const g=r(p);g&&(g.status="fail",n.value.splice(n.value.indexOf(g),1),e.onError(h,g,n.value),e.onChange(g,n.value))},l=(h,p)=>{const g=r(p);g&&(e.onProgress(h,g,n.value),g.status="uploading",g.percentage=Math.round(h.percent))},c=(h,p)=>{const g=r(p);g&&(g.status="success",g.response=h,e.onSuccess(h,g,n.value),e.onChange(g,n.value))},u=h=>{const p={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{p.url=URL.createObjectURL(h)}catch(g){vt(Iy,g.message),e.onError(g,p,n.value)}n.value.push(p),e.onChange(p,n.value)},f=async h=>{const p=h instanceof File?r(h):h;p||Ta(Iy,"file to be removed not found");const g=v=>{o(v);const m=n.value;m.splice(m.indexOf(v),1),e.onRemove(v,m),OB(v)};e.beforeRemove?await e.beforeRemove(p,n.value)!==!1&&g(p):g(p)};function d(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var p;return h&&((p=t.value)==null?void 0:p.upload(h))})}return i.watch(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(p=>{const{raw:g,url:v}=p;if(!v&&g)try{p.url=URL.createObjectURL(g)}catch(m){e.onError(m,p,n.value)}return p}))}),i.watch(()=>e.fileList,h=>{for(const p of h)p.uid||(p.uid=Oy()),p.status||(p.status="success");n.value=h},{immediate:!0,deep:!0}),{abort:o,clearFiles:a,handleError:s,handleProgress:l,handleStart:u,handleSuccess:c,handleRemove:f,submit:d,uploadFiles:n}},_B={name:"ElUpload"},DB=i.defineComponent({..._B,props:iB,setup(e,{expose:t}){const n=e,r=i.useSlots(),o=ks(),a=i.shallowRef(),{abort:s,submit:l,clearFiles:c,uploadFiles:u,handleStart:f,handleError:d,handleRemove:h,handleSuccess:p,handleProgress:g}=PB(n,a),v=i.computed(()=>n.listType==="picture-card"),m=i.computed(()=>({...n,onStart:f,onProgress:g,onSuccess:p,onError:d,onRemove:h}));return i.onBeforeUnmount(()=>{u.value.forEach(({url:y})=>{y!=null&&y.startsWith("blob:")&&URL.revokeObjectURL(y)})}),i.provide(cm,{accept:i.toRef(n,"accept")}),t({abort:s,submit:l,clearFiles:c,handleStart:f,handleRemove:h}),(y,E)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(v)&&y.showFileList?(i.openBlock(),i.createBlock(_y,{key:0,disabled:i.unref(o),"list-type":y.listType,files:i.unref(u),"handle-preview":y.onPreview,onRemove:i.unref(h)},i.createSlots({append:i.withCtx(()=>[y.listType==="picture-card"?(i.openBlock(),i.createBlock(Dy,i.mergeProps({key:0,ref_key:"uploadRef",ref:a},i.unref(m)),{default:i.withCtx(()=>[i.unref(r).trigger?i.renderSlot(y.$slots,"trigger",{key:0}):i.createCommentVNode("v-if",!0),!i.unref(r).trigger&&i.unref(r).default?i.renderSlot(y.$slots,"default",{key:1}):i.createCommentVNode("v-if",!0)]),_:3},16)):i.createCommentVNode("v-if",!0)]),_:2},[y.$slots.file?{name:"default",fn:i.withCtx(({file:x})=>[i.renderSlot(y.$slots,"file",{file:x})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):i.createCommentVNode("v-if",!0),y.listType!=="picture-card"?(i.openBlock(),i.createBlock(Dy,i.mergeProps({key:1,ref_key:"uploadRef",ref:a},i.unref(m)),{default:i.withCtx(()=>[i.unref(r).trigger?i.renderSlot(y.$slots,"trigger",{key:0}):i.createCommentVNode("v-if",!0),!i.unref(r).trigger&&i.unref(r).default?i.renderSlot(y.$slots,"default",{key:1}):i.createCommentVNode("v-if",!0)]),_:3},16)):i.createCommentVNode("v-if",!0),y.$slots.trigger?i.renderSlot(y.$slots,"default",{key:2}):i.createCommentVNode("v-if",!0),i.renderSlot(y.$slots,"tip"),!i.unref(v)&&y.showFileList?(i.openBlock(),i.createBlock(_y,{key:3,disabled:i.unref(o),"list-type":y.listType,files:i.unref(u),"handle-preview":y.onPreview,onRemove:i.unref(h)},i.createSlots({_:2},[y.$slots.file?{name:"default",fn:i.withCtx(({file:x})=>[i.renderSlot(y.$slots,"file",{file:x})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):i.createCommentVNode("v-if",!0)]))}});var IB=Ue(DB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const FB=Mt(IB);function NB(e){let t;const n=Me("loading"),r=i.ref(!1),o=i.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(p){o.text=p}function s(){const p=o.parent;if(!p.vLoadingAddClassList){let g=p.getAttribute("loading-number");g=Number.parseInt(g)-1,g?p.setAttribute("loading-number",g.toString()):(Gr(p,n.bm("parent","relative")),p.removeAttribute("loading-number")),Gr(p,n.bm("parent","hidden"))}l(),d.unmount()}function l(){var p,g;(g=(p=h.$el)==null?void 0:p.parentNode)==null||g.removeChild(h.$el)}function c(){var p;if(e.beforeClose&&!e.beforeClose())return;const g=o.parent;g.vLoadingAddClassList=void 0,r.value=!0,clearTimeout(t),t=window.setTimeout(()=>{r.value&&(r.value=!1,s())},400),o.visible=!1,(p=e.closed)==null||p.call(e)}function u(){r.value&&(r.value=!1,s())}const f={name:"ElLoading",setup(){return()=>{const p=o.spinner||o.svg,g=i.h("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"25 25 50 50",...p?{innerHTML:p}:{}},[i.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})]),v=o.text?i.h("p",{class:n.b("text")},[o.text]):void 0;return i.h(i.Transition,{name:n.b("fade"),onAfterLeave:u},{default:i.withCtx(()=>[i.withDirectives(i.createVNode("div",{style:{backgroundColor:o.background||""},class:[n.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[i.h("div",{class:n.b("spinner")},[g,v])]),[[i.vShow,o.visible]])])})}}},d=i.createApp(f),h=d.mount(document.createElement("div"));return{...i.toRefs(o),setText:a,removeElLoadingChild:l,close:c,handleAfterLeave:u,vm:h,get $el(){return h.$el}}}let ru;const BB=function(e={}){if(!wt)return;const t=RB(e);if(t.fullscreen&&ru)return ru;const n=NB({...t,closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(ru=void 0)}});MB(t,t.parent,n),Fy(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Fy(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),i.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(ru=n),n},RB=e=>{var t,n,r,o;let a;return Ot(e.target)?a=(t=document.querySelector(e.target))!=null?t:document.body:a=e.target||document.body,{parent:a===document.body||e.body?document.body:a,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:a===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(o=e.visible)!=null?o:!0,target:a}},MB=async(e,t,n)=>{const{nextZIndex:r}=Ps(),o={};if(e.fullscreen)n.originalPosition.value=yr(document.body,"position"),n.originalOverflow.value=yr(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=yr(document.body,"position"),await i.nextTick();for(const a of["top","left"]){const s=a==="top"?"scrollTop":"scrollLeft";o[a]=`${e.target.getBoundingClientRect()[a]+document.body[s]+document.documentElement[s]-Number.parseInt(yr(document.body,`margin-${a}`),10)}px`}for(const a of["height","width"])o[a]=`${e.target.getBoundingClientRect()[a]}px`}else n.originalPosition.value=yr(t,"position");for(const[a,s]of Object.entries(o))n.$el.style[a]=s},Fy=(e,t,n)=>{const r=Me("loading");n.originalPosition.value!=="absolute"&&n.originalPosition.value!=="fixed"?Gi(t,r.bm("parent","relative")):Gr(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Gi(t,r.bm("parent","hidden")):Gr(t,r.bm("parent","hidden"))},Ah=Symbol("ElLoading"),Ny=(e,t)=>{var n,r,o,a;const s=t.instance,l=h=>Kn(t.value)?t.value[h]:void 0,c=h=>{const p=Ot(h)&&(s==null?void 0:s[h])||h;return p&&i.ref(p)},u=h=>c(l(h)||e.getAttribute(`element-loading-${i4(h)}`)),f=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:f,target:(r=l("target"))!=null?r:f?void 0:e,body:(o=l("body"))!=null?o:t.modifiers.body,lock:(a=l("lock"))!=null?a:t.modifiers.lock};e[Ah]={options:d,instance:BB(d)}},LB=(e,t)=>{for(const n of Object.keys(t))i.isRef(t[n])&&(t[n].value=e[n])},VB={mounted(e,t){t.value&&Ny(e,t)},updated(e,t){const n=e[Ah];t.oldValue!==t.value&&(t.value&&!t.oldValue?Ny(e,t):t.value&&t.oldValue?Kn(t.value)&&LB(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Ah])==null||t.instance.close()}},By=["success","info","warning","error"],HB=Je({customClass:{type:String,default:""},center:{type:Boolean,default:!1},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:3e3},icon:{type:Er,default:""},id:{type:String,default:""},message:{type:Ie([String,Object,Function]),default:""},onClose:{type:Ie(Function),required:!1},showClose:{type:Boolean,default:!1},type:{type:String,values:By,default:"info"},offset:{type:Number,default:20},zIndex:{type:Number,default:0},grouping:{type:Boolean,default:!1},repeatNum:{type:Number,default:1}}),UB={destroy:()=>!0},jB=i.defineComponent({name:"ElMessage",components:{ElBadge:HP,ElIcon:dt,...em},props:HB,emits:UB,setup(e){const t=Me("message"),n=i.ref(!1),r=i.ref(e.type?e.type==="error"?"danger":e.type:"info");let o;const a=i.computed(()=>{const h=e.type;return{[t.bm("icon",h)]:h&&Fc[h]}}),s=i.computed(()=>e.icon||Fc[e.type]||""),l=i.computed(()=>({top:`${e.offset}px`,zIndex:e.zIndex}));function c(){e.duration>0&&({stop:o}=fd(()=>{n.value&&f()},e.duration))}function u(){o==null||o()}function f(){n.value=!1}function d({code:h}){h===bt.esc?n.value&&f():c()}return i.onMounted(()=>{c(),n.value=!0}),i.watch(()=>e.repeatNum,()=>{u(),c()}),$o(document,"keydown",d),{ns:t,typeClass:a,iconComponent:s,customStyle:l,visible:n,badgeType:r,close:f,clearTimer:u,startTimer:c}}}),GB=["id"],zB=["innerHTML"];function WB(e,t,n,r,o,a){const s=i.resolveComponent("el-badge"),l=i.resolveComponent("el-icon"),c=i.resolveComponent("close");return i.openBlock(),i.createBlock(i.Transition,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[2]||(t[2]=u=>e.$emit("destroy")),persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{id:e.id,class:i.normalizeClass([e.ns.b(),{[e.ns.m(e.type)]:e.type&&!e.icon},e.ns.is("center",e.center),e.ns.is("closable",e.showClose),e.customClass]),style:i.normalizeStyle(e.customStyle),role:"alert",onMouseenter:t[0]||(t[0]=(...u)=>e.clearTimer&&e.clearTimer(...u)),onMouseleave:t[1]||(t[1]=(...u)=>e.startTimer&&e.startTimer(...u))},[e.repeatNum>1?(i.openBlock(),i.createBlock(s,{key:0,value:e.repeatNum,type:e.badgeType,class:i.normalizeClass(e.ns.e("badge"))},null,8,["value","type","class"])):i.createCommentVNode("v-if",!0),e.iconComponent?(i.openBlock(),i.createBlock(l,{key:1,class:i.normalizeClass([e.ns.e("icon"),e.typeClass])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),i.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),i.createElementVNode("p",{class:i.normalizeClass(e.ns.e("content")),innerHTML:e.message},null,10,zB)],2112)):(i.openBlock(),i.createElementBlock("p",{key:0,class:i.normalizeClass(e.ns.e("content"))},i.toDisplayString(e.message),3))]),e.showClose?(i.openBlock(),i.createBlock(l,{key:2,class:i.normalizeClass(e.ns.e("closeBtn")),onClick:i.withModifiers(e.close,["stop"])},{default:i.withCtx(()=>[i.createVNode(c)]),_:1},8,["class","onClick"])):i.createCommentVNode("v-if",!0)],46,GB),[[i.vShow,e.visible]])]),_:3},8,["name","onBeforeLeave"])}var KB=Ue(jB,[["render",WB],["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);const so=[];let YB=1;const Gs=function(e={},t){if(!wt)return{close:()=>{}};if(It(oh.max)&&so.length>=oh.max)return{close:()=>{}};if(!i.isVNode(e)&&Kn(e)&&e.grouping&&!i.isVNode(e.message)&&so.length){const d=so.find(h=>{var p,g,v;return`${(g=(p=h.vm.props)==null?void 0:p.message)!=null?g:""}`==`${(v=e.message)!=null?v:""}`});if(d)return d.vm.component.props.repeatNum+=1,d.vm.component.props.type=(e==null?void 0:e.type)||"info",{close:()=>f.component.proxy.visible=!1}}(Ot(e)||i.isVNode(e))&&(e={message:e});let n=e.offset||20;so.forEach(({vm:d})=>{var h;n+=(((h=d.el)==null?void 0:h.offsetHeight)||0)+16}),n+=16;const{nextZIndex:r}=Ps(),o=`message_${YB++}`,a=e.onClose,s={zIndex:r(),...e,offset:n,id:o,onClose:()=>{XB(o,a)}};let l=document.body;Sa(e.appendTo)?l=e.appendTo:Ot(e.appendTo)&&(l=document.querySelector(e.appendTo)),Sa(l)||(vt("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),l=document.body);const c=document.createElement("div");c.className=`container_${o}`;const u=s.message,f=i.createVNode(KB,s,mo(u)?{default:u}:i.isVNode(u)?{default:()=>u}:null);return f.appContext=t||Gs._context,f.props.onDestroy=()=>{i.render(null,c)},i.render(f,c),so.push({vm:f}),l.appendChild(c.firstElementChild),{close:()=>f.component.proxy.visible=!1}};By.forEach(e=>{Gs[e]=(t={},n)=>((Ot(t)||i.isVNode(t))&&(t={message:t}),Gs({...t,type:e},n))});function XB(e,t){const n=so.findIndex(({vm:s})=>e===s.component.props.id);if(n===-1)return;const{vm:r}=so[n];if(!r)return;t==null||t(r);const o=r.el.offsetHeight;so.splice(n,1);const a=so.length;if(!(a<1))for(let s=n;s<a;s++){const l=Number.parseInt(so[s].vm.el.style.top,10)-o-16;so[s].vm.component.props.offset=l}}function QB(){var e;for(let t=so.length-1;t>=0;t--){const n=so[t].vm.component;(e=n==null?void 0:n.proxy)==null||e.close()}}Gs.closeAll=QB,Gs._context=null;const wo=W4(Gs,"$message"),JB=i.defineComponent({name:"ElMessageBox",directives:{TrapFocus:u_},components:{ElButton:Lo,ElFocusTrap:Ld,ElInput:_a,ElOverlay:U0,ElIcon:dt,...em},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Ed},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,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=oo(),r=Me("message-box"),o=i.ref(!1),{nextZIndex:a}=Ps(),s=i.reactive({beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:a()}),l=i.computed(()=>{const B=s.type;return{[r.bm("icon",B)]:B&&Fc[B]}}),c=er(),u=er(),f=Yn(i.computed(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),d=i.computed(()=>s.icon||Fc[s.type]||""),h=i.computed(()=>!!s.message),p=i.ref(),g=i.ref(),v=i.ref(),m=i.ref(),y=i.ref(),E=i.computed(()=>s.confirmButtonClass);i.watch(()=>s.inputValue,async B=>{await i.nextTick(),e.boxType==="prompt"&&B!==null&&S()},{immediate:!0}),i.watch(()=>o.value,B=>{var j,Z;B&&((e.boxType==="alert"||e.boxType==="confirm")&&(v.value=(Z=(j=y.value)==null?void 0:j.$el)!=null?Z:p.value),s.zIndex=a()),e.boxType==="prompt"&&(B?i.nextTick().then(()=>{var q;m.value&&m.value.$el&&(v.value=(q=_())!=null?q:p.value)}):(s.editorErrorMessage="",s.validateError=!1))});const x=i.computed(()=>e.draggable);hm(p,g,x),i.onMounted(async()=>{await i.nextTick(),e.closeOnHashChange&&Cs(window,"hashchange",C)}),i.onBeforeUnmount(()=>{e.closeOnHashChange&&ws(window,"hashchange",C)});function C(){o.value&&(o.value=!1,i.nextTick(()=>{s.action&&t("action",s.action)}))}const A=()=>{e.closeOnClickModal&&T(s.distinguishCancelAndClose?"close":"cancel")},w=wd(A),b=B=>{if(s.inputType!=="textarea")return B.preventDefault(),T("confirm")},T=B=>{var j;e.boxType==="prompt"&&B==="confirm"&&!S()||(s.action=B,s.beforeClose?(j=s.beforeClose)==null||j.call(s,B,s,C):C())},S=()=>{if(e.boxType==="prompt"){const B=s.inputPattern;if(B&&!B.test(s.inputValue||""))return s.editorErrorMessage=s.inputErrorMessage||n("el.messagebox.error"),s.validateError=!0,!1;const j=s.inputValidator;if(typeof j=="function"){const Z=j(s.inputValue);if(Z===!1)return s.editorErrorMessage=s.inputErrorMessage||n("el.messagebox.error"),s.validateError=!0,!1;if(typeof Z=="string")return s.editorErrorMessage=Z,s.validateError=!0,!1}}return s.editorErrorMessage="",s.validateError=!1,!0},_=()=>{const B=m.value.$refs;return B.input||B.textarea},I=()=>{T("close")},H=()=>{e.closeOnPressEscape&&I()};return e.lockScroll&&vm(o),lk(o),{...i.toRefs(s),ns:r,overlayEvent:w,visible:o,hasMessage:h,typeClass:l,contentId:c,inputId:u,btnSize:f,iconComponent:d,confirmButtonClasses:E,rootRef:p,focusStartRef:v,headerRef:g,inputRef:m,confirmRef:y,doClose:C,handleClose:I,onCloseRequested:H,handleWrapperClick:A,handleInputEnter:b,handleAction:T,t:n}}}),ZB=["aria-label","aria-describedby"],qB=["aria-label"],$B=["id"];function e8(e,t,n,r,o,a){const s=i.resolveComponent("el-icon"),l=i.resolveComponent("close"),c=i.resolveComponent("el-input"),u=i.resolveComponent("el-button"),f=i.resolveComponent("el-focus-trap"),d=i.resolveComponent("el-overlay");return i.openBlock(),i.createBlock(i.Transition,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=h=>e.$emit("vanish")),persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createVNode(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:i.withCtx(()=>[i.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:i.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...h)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...h)),onMousedown:t[9]||(t[9]=(...h)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...h)),onMouseup:t[10]||(t[10]=(...h)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...h))},[i.createVNode(f,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:i.withCtx(()=>[i.createElementVNode("div",{ref:"rootRef",class:i.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:i.normalizeStyle(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=i.withModifiers(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"headerRef",class:i.normalizeClass(e.ns.e("header"))},[i.createElementVNode("div",{class:i.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(i.openBlock(),i.createBlock(s,{key:0,class:i.normalizeClass([e.ns.e("status"),e.typeClass])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),i.createElementVNode("span",null,i.toDisplayString(e.title),1)],2),e.showClose?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:i.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=i.withKeys(i.withModifiers(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[i.createVNode(s,{class:i.normalizeClass(e.ns.e("close"))},{default:i.withCtx(()=>[i.createVNode(l)]),_:1},8,["class"])],42,qB)):i.createCommentVNode("v-if",!0)],2)):i.createCommentVNode("v-if",!0),i.createElementVNode("div",{id:e.contentId,class:i.normalizeClass(e.ns.e("content"))},[i.createElementVNode("div",{class:i.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(i.openBlock(),i.createBlock(s,{key:0,class:i.normalizeClass([e.ns.e("status"),e.typeClass])},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):i.createCommentVNode("v-if",!0),e.hasMessage?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(e.ns.e("message"))},[i.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):i.createCommentVNode("v-if",!0)],2),i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(e.ns.e("input"))},[i.createVNode(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=h=>e.inputValue=h),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:i.normalizeClass({invalid:e.validateError}),onKeydown:i.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),i.createElementVNode("div",{class:i.normalizeClass(e.ns.e("errormsg")),style:i.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},i.toDisplayString(e.editorErrorMessage),7)],2),[[i.vShow,e.showInput]])],10,$B),i.createElementVNode("div",{class:i.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(i.openBlock(),i.createBlock(u,{key:0,loading:e.cancelButtonLoading,class:i.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=h=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=i.withKeys(i.withModifiers(h=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):i.createCommentVNode("v-if",!0),i.withDirectives(i.createVNode(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:i.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=h=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=i.withKeys(i.withModifiers(h=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[i.vShow,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,ZB)]),_:3},8,["z-index","overlay-class","mask"]),[[i.vShow,e.visible]])]),_:3})}var t8=Ue(JB,[["render",e8],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const il=new Map,n8=(e,t,n=null)=>{const r=i.h(t8,e);return r.appContext=n,i.render(r,t),document.body.appendChild(t.firstElementChild),r.component},o8=()=>document.createElement("div"),r8=(e,t)=>{const n=o8();e.onVanish=()=>{i.render(null,n),il.delete(o)},e.onAction=a=>{const s=il.get(o);let l;e.showInput?l={value:o.inputValue,action:a}:l=a,e.callback?e.callback(l,r.proxy):a==="cancel"||a==="close"?e.distinguishCancelAndClose&&a!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(l)};const r=n8(e,n,t),o=r.proxy;for(const a in e)mr(e,a)&&!mr(o.$props,a)&&(o[a]=e[a]);return i.watch(()=>o.message,(a,s)=>{i.isVNode(a)?r.slots.default=()=>[a]:i.isVNode(s)&&!i.isVNode(a)&&delete r.slots.default},{immediate:!0}),o.visible=!0,o};function zs(e,t=null){if(!wt)return Promise.reject();let n;return Ot(e)||i.isVNode(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const a=r8(e,t??zs._context);il.set(a,{options:e,callback:n,resolve:r,reject:o})})}const a8=["alert","confirm","prompt"],s8={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};a8.forEach(e=>{zs[e]=i8(e)});function i8(e){return(t,n,r,o)=>{let a;return Kn(n)?(r=n,a=""):kc(n)?a="":a=n,zs(Object.assign({title:a,message:t,type:"",...s8[e]},r,{boxType:e}),o)}}zs.close=()=>{il.forEach((e,t)=>{t.doClose()}),il.clear()},zs._context=null;const Zr=zs;Zr.install=e=>{Zr._context=e._context,e.config.globalProperties.$msgbox=Zr,e.config.globalProperties.$messageBox=Zr,e.config.globalProperties.$alert=Zr.alert,e.config.globalProperties.$confirm=Zr.confirm,e.config.globalProperties.$prompt=Zr.prompt};const au=Zr,IK="",FK="",NK="",BK="",RK="",MK="",LK="",VK="",HK="",UK="",jK="",GK="",zK="",WK="",KK="",YK="",XK="",QK="",JK="";var Ry={exports:{}};(function(e,t){(function(n,r){r()})(Ls,function(){function n(u,f){return typeof f>"u"?f={autoBom:!1}:typeof f!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function r(u,f,d){var h=new XMLHttpRequest;h.open("GET",u),h.responseType="blob",h.onload=function(){c(h.response,f,d)},h.onerror=function(){console.error("could not download file")},h.send()}function o(u){var f=new XMLHttpRequest;f.open("HEAD",u,!1);try{f.send()}catch{}return 200<=f.status&&299>=f.status}function a(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(f)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Ls=="object"&&Ls.global===Ls?Ls:void 0,l=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!l?function(u,f,d){var h=s.URL||s.webkitURL,p=document.createElement("a");f=f||u.name||"download",p.download=f,p.rel="noopener",typeof u=="string"?(p.href=u,p.origin===location.origin?a(p):o(p.href)?r(u,f,d):a(p,p.target="_blank")):(p.href=h.createObjectURL(u),setTimeout(function(){h.revokeObjectURL(p.href)},4e4),setTimeout(function(){a(p)},0))}:"msSaveOrOpenBlob"in navigator?function(u,f,d){if(f=f||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,d),f);else if(o(u))r(u,f,d);else{var h=document.createElement("a");h.href=u,h.target="_blank",setTimeout(function(){a(h)})}}:function(u,f,d,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof u=="string")return r(u,f,d);var p=u.type==="application/octet-stream",g=/constructor/i.test(s.HTMLElement)||s.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||p&&g||l)&&typeof FileReader<"u"){var m=new FileReader;m.onloadend=function(){var x=m.result;x=v?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=x:location=x,h=null},m.readAsDataURL(u)}else{var y=s.URL||s.webkitURL,E=y.createObjectURL(u);h?h.location=E:location.href=E,h=null,setTimeout(function(){y.revokeObjectURL(E)},4e4)}});s.saveAs=c.saveAs=c,e.exports=c})})(Ry);var l8=Ry.exports;const c8=Kd(l8);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var su={};su.version="0.18.5";var My=1252,u8=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Ly=function(e){u8.indexOf(e)!=-1&&(My=e)};function f8(){Ly(1252)}var ll=function(e){Ly(e)};function d8(){ll(1200),f8()}function h8(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}var iu=function(t){return String.fromCharCode(t)},Vy=function(t){return String.fromCharCode(t)},La,qr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function cl(e){for(var t="",n=0,r=0,o=0,a=0,s=0,l=0,c=0,u=0;u<e.length;)n=e.charCodeAt(u++),a=n>>2,r=e.charCodeAt(u++),s=(n&3)<<4|r>>4,o=e.charCodeAt(u++),l=(r&15)<<2|o>>6,c=o&63,isNaN(r)?l=c=64:isNaN(o)&&(c=64),t+=qr.charAt(a)+qr.charAt(s)+qr.charAt(l)+qr.charAt(c);return t}function Ar(e){var t="",n=0,r=0,o=0,a=0,s=0,l=0,c=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<e.length;)a=qr.indexOf(e.charAt(u++)),s=qr.indexOf(e.charAt(u++)),n=a<<2|s>>4,t+=String.fromCharCode(n),l=qr.indexOf(e.charAt(u++)),r=(s&15)<<4|l>>2,l!==64&&(t+=String.fromCharCode(r)),c=qr.indexOf(e.charAt(u++)),o=(l&3)<<6|c,c!==64&&(t+=String.fromCharCode(o));return t}var pt=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Sr=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,n){return n?new Buffer(t,n):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Va(e){return pt?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Hy(e){return pt?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Vo=function(t){return pt?Sr(t,"binary"):t.split("").map(function(n){return n.charCodeAt(0)&255})};function lu(e){if(typeof ArrayBuffer>"u")return Vo(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=e.charCodeAt(r)&255;return t}function ul(e){if(Array.isArray(e))return e.map(function(r){return String.fromCharCode(r)}).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function p8(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var mn=pt?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Sr(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var r=new Uint8Array(n),o=0;for(t=0,n=0;t<e.length;n+=o,++t)if(o=e[t].length,e[t]instanceof Uint8Array)r.set(e[t],n);else{if(typeof e[t]=="string")throw"wtf";r.set(new Uint8Array(e[t]),n)}return r}return[].concat.apply([],e.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function v8(e){for(var t=[],n=0,r=e.length+250,o=Va(e.length+255),a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s<128)o[n++]=s;else if(s<2048)o[n++]=192|s>>6&31,o[n++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var l=e.charCodeAt(++a)&1023;o[n++]=240|s>>8&7,o[n++]=128|s>>2&63,o[n++]=128|l>>6&15|(s&3)<<4,o[n++]=128|l&63}else o[n++]=224|s>>12&15,o[n++]=128|s>>6&63,o[n++]=128|s&63;n>r&&(t.push(o.slice(0,n)),n=0,o=Va(65535),r=65530)}return t.push(o.slice(0,n)),mn(t)}var fl=/\u0000/g,cu=/[\u0001-\u0006]/g;function Ws(e){for(var t="",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function Ho(e,t){var n=""+e;return n.length>=t?n:zt("0",t-n.length)+n}function Sh(e,t){var n=""+e;return n.length>=t?n:zt(" ",t-n.length)+n}function uu(e,t){var n=""+e;return n.length>=t?n:n+zt(" ",t-n.length)}function g8(e,t){var n=""+Math.round(e);return n.length>=t?n:zt("0",t-n.length)+n}function m8(e,t){var n=""+e;return n.length>=t?n:zt("0",t-n.length)+n}var Uy=Math.pow(2,32);function Ks(e,t){if(e>Uy||e<-Uy)return g8(e,t);var n=Math.round(e);return m8(n,t)}function fu(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var jy=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Th=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function y8(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Gt={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Gy={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},x8={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function du(e,t,n){for(var r=e<0?-1:1,o=e*r,a=0,s=1,l=0,c=1,u=0,f=0,d=Math.floor(o);u<t&&(d=Math.floor(o),l=d*s+a,f=d*u+c,!(o-d<5e-8));)o=1/(o-d),a=s,s=l,c=u,u=f;if(f>t&&(u>t?(f=c,l=a):(f=u,l=s)),!n)return[0,r*l,f];var h=Math.floor(r*l/f);return[h,r*l-h*f,f]}function hu(e,t,n){if(e>2958465||e<0)return null;var r=e|0,o=Math.floor(86400*(e-r)),a=0,s=[],l={D:r,T:o,u:86400*(e-r)-o,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(l.u)<1e-6&&(l.u=0),t&&t.date1904&&(r+=1462),l.u>.9999&&(l.u=0,++o==86400&&(l.T=o=0,++r,++l.D)),r===60)s=n?[1317,10,29]:[1900,2,29],a=3;else if(r===0)s=n?[1317,8,29]:[1900,1,0],a=6;else{r>60&&--r;var c=new Date(1900,0,1);c.setDate(c.getDate()+r-1),s=[c.getFullYear(),c.getMonth()+1,c.getDate()],a=c.getDay(),r<60&&(a=(a+6)%7),n&&(a=T8(c,s))}return l.y=s[0],l.m=s[1],l.d=s[2],l.S=o%60,o=Math.floor(o/60),l.M=o%60,o=Math.floor(o/60),l.H=o,l.q=a,l}var zy=new Date(1899,11,31,0,0,0),E8=zy.getTime(),C8=new Date(1900,2,1,0,0,0);function Wy(e,t){var n=e.getTime();return t?n-=1461*24*60*60*1e3:e>=C8&&(n+=24*60*60*1e3),(n-(E8+(e.getTimezoneOffset()-zy.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function kh(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function w8(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function b8(e){var t=e<0?12:11,n=kh(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10),n.length<=t)?n:e.toExponential(5)}function A8(e){var t=kh(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function S8(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),n;return t>=-4&&t<=-1?n=e.toPrecision(10+t):Math.abs(t)<=9?n=b8(e):t===10?n=e.toFixed(10).substr(0,12):n=A8(e),kh(w8(n.toUpperCase()))}function Oh(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):S8(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return ea(14,Wy(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function T8(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}function k8(e,t,n,r){var o="",a=0,s=0,l=n.y,c,u=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:c=l%100,u=2;break;default:c=l%1e4,u=4;break}break;case 109:switch(t.length){case 1:case 2:c=n.m,u=t.length;break;case 3:return Th[n.m-1][1];case 5:return Th[n.m-1][0];default:return Th[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:c=n.d,u=t.length;break;case 3:return jy[n.q][0];default:return jy[n.q][1]}break;case 104:switch(t.length){case 1:case 2:c=1+(n.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:c=n.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:c=n.M,u=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return n.u===0&&(t=="s"||t=="ss")?Ho(n.S,t.length):(r>=2?s=r===3?1e3:100:s=r===1?10:1,a=Math.round(s*(n.S+n.u)),a>=60*s&&(a=0),t==="s"?a===0?"0":""+a/s:(o=Ho(a,2+r),t==="ss"?o.substr(0,2):"."+o.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":c=n.D*24+n.H;break;case"[m]":case"[mm]":c=(n.D*24+n.H)*60+n.M;break;case"[s]":case"[ss]":c=((n.D*24+n.H)*60+n.M)*60+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}u=t.length===3?1:2;break;case 101:c=l,u=1;break}var f=u>0?Ho(c,u):"";return f}function $r(e){var t=3;if(e.length<=t)return e;for(var n=e.length%t,r=e.substr(0,n);n!=e.length;n+=t)r+=(r.length>0?",":"")+e.substr(n,t);return r}var Ky=/%/g;function O8(e,t,n){var r=t.replace(Ky,""),o=t.length-r.length;return Tr(e,r,n*Math.pow(10,2*o))+zt("%",o)}function P8(e,t,n){for(var r=t.length-1;t.charCodeAt(r-1)===44;)--r;return Tr(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}function Yy(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Yy(e,-t);var o=e.indexOf(".");o===-1&&(o=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%o;if(a<0&&(a+=o),n=(t/Math.pow(10,a)).toPrecision(r+1+(o+a)%o),n.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(n.indexOf(".")===-1?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+a):n+="E+"+(s-a);n.substr(0,2)==="0.";)n=n.charAt(0)+n.substr(2,o)+"."+n.substr(2+o),n=n.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(l,c,u,f){return c+u+f.substr(0,(o+a)%o)+"."+f.substr(a)+"E"})}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var Xy=/# (\?+)( ?)\/( ?)(\d+)/;function _8(e,t,n){var r=parseInt(e[4],10),o=Math.round(t*r),a=Math.floor(o/r),s=o-a*r,l=r;return n+(a===0?"":""+a)+" "+(s===0?zt(" ",e[1].length+1+e[4].length):Sh(s,e[1].length)+e[2]+"/"+e[3]+Ho(l,e[4].length))}function D8(e,t,n){return n+(t===0?"":""+t)+zt(" ",e[1].length+2+e[4].length)}var Qy=/^#*0*\.([0#]+)/,Jy=/\).*[0#]/,Zy=/\(###\) ###\\?-####/;function Ln(e){for(var t="",n,r=0;r!=e.length;++r)switch(n=e.charCodeAt(r)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(n)}return t}function qy(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function $y(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function I8(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function F8(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function bo(e,t,n){if(e.charCodeAt(0)===40&&!t.match(Jy)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?bo("n",r,n):"("+bo("n",r,-n)+")"}if(t.charCodeAt(t.length-1)===44)return P8(e,t,n);if(t.indexOf("%")!==-1)return O8(e,t,n);if(t.indexOf("E")!==-1)return Yy(t,n);if(t.charCodeAt(0)===36)return"$"+bo(e,t.substr(t.charAt(1)==" "?2:1),n);var o,a,s,l,c=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+Ks(c,t.length);if(t.match(/^[#?]+$/))return o=Ks(n,0),o==="0"&&(o=""),o.length>t.length?o:Ln(t.substr(0,t.length-o.length))+o;if(a=t.match(Xy))return _8(a,c,u);if(t.match(/^#+0+$/))return u+Ks(c,t.length-t.indexOf("0"));if(a=t.match(Qy))return o=qy(n,a[1].length).replace(/^([^\.]+)$/,"$1."+Ln(a[1])).replace(/\.$/,"."+Ln(a[1])).replace(/\.(\d*)$/,function(g,v){return"."+v+zt("0",Ln(a[1]).length-v.length)}),t.indexOf("0.")!==-1?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return u+qy(c,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return u+$r(Ks(c,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+bo(e,t,-n):$r(""+(Math.floor(n)+I8(n,a[1].length)))+"."+Ho($y(n,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return bo(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=Ws(bo(e,t.replace(/[\\-]/g,""),n)),s=0,Ws(Ws(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return s<o.length?o.charAt(s++):g==="0"?"0":""}));if(t.match(Zy))return o=bo(e,"##########",n),"("+o.substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var f="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),l=du(c,Math.pow(10,s)-1,!1),o=""+u,f=Tr("n",a[1],l[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),o+=f+a[2]+"/"+a[3],f=uu(l[2],s),f.length<a[4].length&&(f=Ln(a[4].substr(a[4].length-f.length))+f),o+=f,o;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),l=du(c,Math.pow(10,s)-1,!0),u+(l[0]||(l[1]?"":"0"))+" "+(l[1]?Sh(l[1],s)+a[2]+"/"+a[3]+uu(l[2],s):zt(" ",2*s+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return o=Ks(n,0),t.length<=o.length?o:Ln(t.substr(0,t.length-o.length))+o;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=o.indexOf(".");var d=t.indexOf(".")-s,h=t.length-o.length-d;return Ln(t.substr(0,d)+o+t.substr(t.length-h))}if(a=t.match(/^00,000\.([#0]*0)$/))return s=$y(n,a[1].length),n<0?"-"+bo(e,t,-n):$r(F8(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?Ho(0,3-g.length):"")+g})+"."+Ho(s,a[1].length);switch(t){case"###,##0.00":return bo(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var p=$r(Ks(c,0));return p!=="0"?u+p:"";case"###,###.00":return bo(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return bo(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function N8(e,t,n){for(var r=t.length-1;t.charCodeAt(r-1)===44;)--r;return Tr(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}function B8(e,t,n){var r=t.replace(Ky,""),o=t.length-r.length;return Tr(e,r,n*Math.pow(10,2*o))+zt("%",o)}function e1(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+e1(e,-t);var o=e.indexOf(".");o===-1&&(o=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%o;if(a<0&&(a+=o),n=(t/Math.pow(10,a)).toPrecision(r+1+(o+a)%o),!n.match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);n.indexOf(".")===-1?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+a):n+="E+"+(s-a),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(l,c,u,f){return c+u+f.substr(0,(o+a)%o)+"."+f.substr(a)+"E"})}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function rr(e,t,n){if(e.charCodeAt(0)===40&&!t.match(Jy)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?rr("n",r,n):"("+rr("n",r,-n)+")"}if(t.charCodeAt(t.length-1)===44)return N8(e,t,n);if(t.indexOf("%")!==-1)return B8(e,t,n);if(t.indexOf("E")!==-1)return e1(t,n);if(t.charCodeAt(0)===36)return"$"+rr(e,t.substr(t.charAt(1)==" "?2:1),n);var o,a,s,l,c=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+Ho(c,t.length);if(t.match(/^[#?]+$/))return o=""+n,n===0&&(o=""),o.length>t.length?o:Ln(t.substr(0,t.length-o.length))+o;if(a=t.match(Xy))return D8(a,c,u);if(t.match(/^#+0+$/))return u+Ho(c,t.length-t.indexOf("0"));if(a=t.match(Qy))return o=(""+n).replace(/^([^\.]+)$/,"$1."+Ln(a[1])).replace(/\.$/,"."+Ln(a[1])),o=o.replace(/\.(\d*)$/,function(g,v){return"."+v+zt("0",Ln(a[1]).length-v.length)}),t.indexOf("0.")!==-1?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return u+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return u+$r(""+c);if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+rr(e,t,-n):$r(""+n)+"."+zt("0",a[1].length);if(a=t.match(/^#,#*,#0/))return rr(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=Ws(rr(e,t.replace(/[\\-]/g,""),n)),s=0,Ws(Ws(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return s<o.length?o.charAt(s++):g==="0"?"0":""}));if(t.match(Zy))return o=rr(e,"##########",n),"("+o.substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var f="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),l=du(c,Math.pow(10,s)-1,!1),o=""+u,f=Tr("n",a[1],l[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),o+=f+a[2]+"/"+a[3],f=uu(l[2],s),f.length<a[4].length&&(f=Ln(a[4].substr(a[4].length-f.length))+f),o+=f,o;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),l=du(c,Math.pow(10,s)-1,!0),u+(l[0]||(l[1]?"":"0"))+" "+(l[1]?Sh(l[1],s)+a[2]+"/"+a[3]+uu(l[2],s):zt(" ",2*s+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return o=""+n,t.length<=o.length?o:Ln(t.substr(0,t.length-o.length))+o;if(a=t.match(/^([#0]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=o.indexOf(".");var d=t.indexOf(".")-s,h=t.length-o.length-d;return Ln(t.substr(0,d)+o+t.substr(t.length-h))}if(a=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+rr(e,t,-n):$r(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?Ho(0,3-g.length):"")+g})+"."+Ho(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var p=$r(""+c);return p!=="0"?u+p:"";default:if(t.match(/\.[0#?]*$/))return rr(e,t.slice(0,t.lastIndexOf(".")),n)+Ln(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Tr(e,t,n){return(n|0)===n?rr(e,t,n):bo(e,t,n)}function R8(e){for(var t=[],n=!1,r=0,o=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(o,r-o),o=r+1}if(t[t.length]=e.substr(o),n===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var t1=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function n1(e){for(var t=0,n="",r="";t<e.length;)switch(n=e.charAt(t)){case"G":fu(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(r=n;e.charAt(t++)!=="]"&&t<e.length;)r+=e.charAt(t);if(r.match(t1))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||n=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function M8(e,t,n,r){for(var o=[],a="",s=0,l="",c="t",u,f,d,h="H";s<e.length;)switch(l=e.charAt(s)){case"G":if(!fu(e,s))throw new Error("unrecognized character "+l+" in "+e);o[o.length]={t:"G",v:"General"},s+=7;break;case'"':for(a="";(d=e.charCodeAt(++s))!==34&&s<e.length;)a+=String.fromCharCode(d);o[o.length]={t:"t",v:a},++s;break;case"\\":var p=e.charAt(++s),g=p==="("||p===")"?p:"t";o[o.length]={t:g,v:p},++s;break;case"_":o[o.length]={t:"t",v:" "},s+=2;break;case"@":o[o.length]={t:"T",v:t},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(u==null&&(u=hu(t,n,e.charAt(s+1)==="2"),u==null))return"";o[o.length]={t:"X",v:e.substr(s,2)},c=l,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":l=l.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||u==null&&(u=hu(t,n),u==null))return"";for(a=l;++s<e.length&&e.charAt(s).toLowerCase()===l;)a+=l;l==="m"&&c.toLowerCase()==="h"&&(l="M"),l==="h"&&(l=h),o[o.length]={t:l,v:a},c=l;break;case"A":case"a":case"上":var v={t:l,v:l};if(u==null&&(u=hu(t,n)),e.substr(s,3).toUpperCase()==="A/P"?(u!=null&&(v.v=u.H>=12?"P":"A"),v.t="T",h="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(u!=null&&(v.v=u.H>=12?"PM":"AM"),v.t="T",s+=5,h="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(u!=null&&(v.v=u.H>=12?"下午":"上午"),v.t="T",s+=5,h="h"):(v.t="t",++s),u==null&&v.t==="T")return"";o[o.length]=v,c=l;break;case"[":for(a=l;e.charAt(s++)!=="]"&&s<e.length;)a+=e.charAt(s);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(t1)){if(u==null&&(u=hu(t,n),u==null))return"";o[o.length]={t:"Z",v:a.toLowerCase()},c=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",n1(e)||(o[o.length]={t:"t",v:a}));break;case".":if(u!=null){for(a=l;++s<e.length&&(l=e.charAt(s))==="0";)a+=l;o[o.length]={t:"s",v:a};break}case"0":case"#":for(a=l;++s<e.length&&"0#?.,E+-%".indexOf(l=e.charAt(s))>-1;)a+=l;o[o.length]={t:"n",v:a};break;case"?":for(a=l;e.charAt(++s)===l;)a+=l;o[o.length]={t:l,v:a},c=l;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":o[o.length]={t:r===1?"t":l,v:l},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=l;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)a+=e.charAt(s);o[o.length]={t:"D",v:a};break;case" ":o[o.length]={t:l,v:l},++s;break;case"$":o[o.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(l)===-1)throw new Error("unrecognized character "+l+" in "+e);o[o.length]={t:"t",v:l},++s;break}var m=0,y=0,E;for(s=o.length-1,c="t";s>=0;--s)switch(o[s].t){case"h":case"H":o[s].t=h,c="h",m<1&&(m=1);break;case"s":(E=o[s].v.match(/\.0+$/))&&(y=Math.max(y,E[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":c=o[s].t;break;case"m":c==="s"&&(o[s].t="M",m<2&&(m=2));break;case"X":break;case"Z":m<1&&o[s].v.match(/[Hh]/)&&(m=1),m<2&&o[s].v.match(/[Mm]/)&&(m=2),m<3&&o[s].v.match(/[Ss]/)&&(m=3)}switch(m){case 0:break;case 1:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M),u.M>=60&&(u.M=0,++u.H);break;case 2:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M);break}var x="",C;for(s=0;s<o.length;++s)switch(o[s].t){case"t":case"T":case" ":case"D":break;case"X":o[s].v="",o[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":o[s].v=k8(o[s].t.charCodeAt(0),o[s].v,u,y),o[s].t="t";break;case"n":case"?":for(C=s+1;o[C]!=null&&((l=o[C].t)==="?"||l==="D"||(l===" "||l==="t")&&o[C+1]!=null&&(o[C+1].t==="?"||o[C+1].t==="t"&&o[C+1].v==="/")||o[s].t==="("&&(l===" "||l==="n"||l===")")||l==="t"&&(o[C].v==="/"||o[C].v===" "&&o[C+1]!=null&&o[C+1].t=="?"));)o[s].v+=o[C].v,o[C]={v:"",t:";"},++C;x+=o[s].v,s=C-1;break;case"G":o[s].t="t",o[s].v=Oh(t,n);break}var A="",w,b;if(x.length>0){x.charCodeAt(0)==40?(w=t<0&&x.charCodeAt(0)===45?-t:t,b=Tr("n",x,w)):(w=t<0&&r>1?-t:t,b=Tr("n",x,w),w<0&&o[0]&&o[0].t=="t"&&(b=b.substr(1),o[0].v="-"+o[0].v)),C=b.length-1;var T=o.length;for(s=0;s<o.length;++s)if(o[s]!=null&&o[s].t!="t"&&o[s].v.indexOf(".")>-1){T=s;break}var S=o.length;if(T===o.length&&b.indexOf("E")===-1){for(s=o.length-1;s>=0;--s)o[s]==null||"n?".indexOf(o[s].t)===-1||(C>=o[s].v.length-1?(C-=o[s].v.length,o[s].v=b.substr(C+1,o[s].v.length)):C<0?o[s].v="":(o[s].v=b.substr(0,C+1),C=-1),o[s].t="t",S=s);C>=0&&S<o.length&&(o[S].v=b.substr(0,C+1)+o[S].v)}else if(T!==o.length&&b.indexOf("E")===-1){for(C=b.indexOf(".")-1,s=T;s>=0;--s)if(!(o[s]==null||"n?".indexOf(o[s].t)===-1)){for(f=o[s].v.indexOf(".")>-1&&s===T?o[s].v.indexOf(".")-1:o[s].v.length-1,A=o[s].v.substr(f+1);f>=0;--f)C>=0&&(o[s].v.charAt(f)==="0"||o[s].v.charAt(f)==="#")&&(A=b.charAt(C--)+A);o[s].v=A,o[s].t="t",S=s}for(C>=0&&S<o.length&&(o[S].v=b.substr(0,C+1)+o[S].v),C=b.indexOf(".")+1,s=T;s<o.length;++s)if(!(o[s]==null||"n?(".indexOf(o[s].t)===-1&&s!==T)){for(f=o[s].v.indexOf(".")>-1&&s===T?o[s].v.indexOf(".")+1:0,A=o[s].v.substr(0,f);f<o[s].v.length;++f)C<b.length&&(A+=b.charAt(C++));o[s].v=A,o[s].t="t",S=s}}}for(s=0;s<o.length;++s)o[s]!=null&&"n?".indexOf(o[s].t)>-1&&(w=r>1&&t<0&&s>0&&o[s-1].v==="-"?-t:t,o[s].v=Tr(o[s].t,o[s].v,w),o[s].t="t");var _="";for(s=0;s!==o.length;++s)o[s]!=null&&(_+=o[s].v);return _}var o1=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function r1(e,t){if(t==null)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0;break}return!1}function L8(e,t){var n=R8(e),r=n.length,o=n[r-1].indexOf("@");if(r<4&&o>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if(typeof t!="number")return[4,n.length===4||o>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=o>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=o>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=o>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"];break}var a=t>0?n[0]:t<0?n[1]:n[2];if(n[0].indexOf("[")===-1&&n[1].indexOf("[")===-1)return[r,a];if(n[0].match(/\[[=<>]/)!=null||n[1].match(/\[[=<>]/)!=null){var s=n[0].match(o1),l=n[1].match(o1);return r1(t,s)?[r,n[0]]:r1(t,l)?[r,n[1]]:[r,n[s!=null&&l!=null?2:1]]}return[r,a]}function ea(e,t,n){n==null&&(n={});var r="";switch(typeof e){case"string":e=="m/d/yy"&&n.dateNF?r=n.dateNF:r=e;break;case"number":e==14&&n.dateNF?r=n.dateNF:r=(n.table!=null?n.table:Gt)[e],r==null&&(r=n.table&&n.table[Gy[e]]||Gt[Gy[e]]),r==null&&(r=x8[e]||"General");break}if(fu(r,0))return Oh(t,n);t instanceof Date&&(t=Wy(t,n.date1904));var o=L8(r,t);if(fu(o[1]))return Oh(t,n);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return M8(o[1],t,n,o[0])}function a1(e,t){if(typeof t!="number"){t=+t||-1;for(var n=0;n<392;++n){if(Gt[n]==null){t<0&&(t=n);continue}if(Gt[n]==e){t=n;break}}t<0&&(t=391)}return Gt[t]=e,t}function pu(e){for(var t=0;t!=392;++t)e[t]!==void 0&&a1(e[t],t)}function vu(){Gt=y8()}var s1=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function V8(e){var t=typeof e=="number"?Gt[e]:e;return t=t.replace(s1,"(\\d+)"),new RegExp("^"+t+"$")}function H8(e,t,n){var r=-1,o=-1,a=-1,s=-1,l=-1,c=-1;(t.match(s1)||[]).forEach(function(d,h){var p=parseInt(n[h+1],10);switch(d.toLowerCase().charAt(0)){case"y":r=p;break;case"d":a=p;break;case"h":s=p;break;case"s":c=p;break;case"m":s>=0?l=p:o=p;break}}),c>=0&&l==-1&&o>=0&&(l=o,o=-1);var u=(""+(r>=0?r:new Date().getFullYear())).slice(-4)+"-"+("00"+(o>=1?o:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);u.length==7&&(u="0"+u),u.length==8&&(u="20"+u);var f=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return s==-1&&l==-1&&c==-1?u:r==-1&&o==-1&&a==-1?f:u+"T"+f}var U8=function(){var e={};e.version="1.2.0";function t(){for(var b=0,T=new Array(256),S=0;S!=256;++S)b=S,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,T[S]=b;return typeof Int32Array<"u"?new Int32Array(T):T}var n=t();function r(b){var T=0,S=0,_=0,I=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(_=0;_!=256;++_)I[_]=b[_];for(_=0;_!=256;++_)for(S=b[_],T=256+_;T<4096;T+=256)S=I[T]=S>>>8^b[S&255];var H=[];for(_=1;_!=16;++_)H[_-1]=typeof Int32Array<"u"?I.subarray(_*256,_*256+256):I.slice(_*256,_*256+256);return H}var o=r(n),a=o[0],s=o[1],l=o[2],c=o[3],u=o[4],f=o[5],d=o[6],h=o[7],p=o[8],g=o[9],v=o[10],m=o[11],y=o[12],E=o[13],x=o[14];function C(b,T){for(var S=T^-1,_=0,I=b.length;_<I;)S=S>>>8^n[(S^b.charCodeAt(_++))&255];return~S}function A(b,T){for(var S=T^-1,_=b.length-15,I=0;I<_;)S=x[b[I++]^S&255]^E[b[I++]^S>>8&255]^y[b[I++]^S>>16&255]^m[b[I++]^S>>>24]^v[b[I++]]^g[b[I++]]^p[b[I++]]^h[b[I++]]^d[b[I++]]^f[b[I++]]^u[b[I++]]^c[b[I++]]^l[b[I++]]^s[b[I++]]^a[b[I++]]^n[b[I++]];for(_+=15;I<_;)S=S>>>8^n[(S^b[I++])&255];return~S}function w(b,T){for(var S=T^-1,_=0,I=b.length,H=0,B=0;_<I;)H=b.charCodeAt(_++),H<128?S=S>>>8^n[(S^H)&255]:H<2048?(S=S>>>8^n[(S^(192|H>>6&31))&255],S=S>>>8^n[(S^(128|H&63))&255]):H>=55296&&H<57344?(H=(H&1023)+64,B=b.charCodeAt(_++)&1023,S=S>>>8^n[(S^(240|H>>8&7))&255],S=S>>>8^n[(S^(128|H>>2&63))&255],S=S>>>8^n[(S^(128|B>>6&15|(H&3)<<4))&255],S=S>>>8^n[(S^(128|B&63))&255]):(S=S>>>8^n[(S^(224|H>>12&15))&255],S=S>>>8^n[(S^(128|H>>6&63))&255],S=S>>>8^n[(S^(128|H&63))&255]);return~S}return e.table=n,e.bstr=C,e.buf=A,e.str=w,e}(),At=function(){var t={};t.version="1.2.1";function n(O,R){for(var D=O.split("/"),N=R.split("/"),M=0,V=0,ae=Math.min(D.length,N.length);M<ae;++M){if(V=D[M].length-N[M].length)return V;if(D[M]!=N[M])return D[M]<N[M]?-1:1}return D.length-N.length}function r(O){if(O.charAt(O.length-1)=="/")return O.slice(0,-1).indexOf("/")===-1?O:r(O.slice(0,-1));var R=O.lastIndexOf("/");return R===-1?O:O.slice(0,R+1)}function o(O){if(O.charAt(O.length-1)=="/")return o(O.slice(0,-1));var R=O.lastIndexOf("/");return R===-1?O:O.slice(R+1)}function a(O,R){typeof R=="string"&&(R=new Date(R));var D=R.getHours();D=D<<6|R.getMinutes(),D=D<<5|R.getSeconds()>>>1,O.write_shift(2,D);var N=R.getFullYear()-1980;N=N<<4|R.getMonth()+1,N=N<<5|R.getDate(),O.write_shift(2,N)}function s(O){var R=O.read_shift(2)&65535,D=O.read_shift(2)&65535,N=new Date,M=D&31;D>>>=5;var V=D&15;D>>>=4,N.setMilliseconds(0),N.setFullYear(D+1980),N.setMonth(V-1),N.setDate(M);var ae=R&31;R>>>=5;var he=R&63;return R>>>=6,N.setHours(R),N.setMinutes(he),N.setSeconds(ae<<1),N}function l(O){co(O,0);for(var R={},D=0;O.l<=O.length-4;){var N=O.read_shift(2),M=O.read_shift(2),V=O.l+M,ae={};switch(N){case 21589:D=O.read_shift(1),D&1&&(ae.mtime=O.read_shift(4)),M>5&&(D&2&&(ae.atime=O.read_shift(4)),D&4&&(ae.ctime=O.read_shift(4))),ae.mtime&&(ae.mt=new Date(ae.mtime*1e3));break}O.l=V,R[N]=ae}return R}var c;function u(){return c||(c={})}function f(O,R){if(O[0]==80&&O[1]==75)return He(O,R);if((O[0]|32)==109&&(O[1]|32)==105)return yK(O,R);if(O.length<512)throw new Error("CFB file size "+O.length+" < 512");var D=3,N=512,M=0,V=0,ae=0,he=0,re=0,se=[],ie=O.slice(0,512);co(ie,0);var we=d(ie);switch(D=we[0],D){case 3:N=512;break;case 4:N=4096;break;case 0:if(we[1]==0)return He(O,R);default:throw new Error("Major Version: Expected 3 or 4 saw "+D)}N!==512&&(ie=O.slice(0,N),co(ie,28));var De=O.slice(0,N);h(ie,D);var Ve=ie.read_shift(4,"i");if(D===3&&Ve!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Ve);ie.l+=4,ae=ie.read_shift(4,"i"),ie.l+=4,ie.chk("00100000","Mini Stream Cutoff Size: "),he=ie.read_shift(4,"i"),M=ie.read_shift(4,"i"),re=ie.read_shift(4,"i"),V=ie.read_shift(4,"i");for(var be=-1,Re=0;Re<109&&(be=ie.read_shift(4,"i"),!(be<0));++Re)se[Re]=be;var $e=p(O,N);m(re,V,$e,N,se);var Ht=E($e,ae,se,N);Ht[ae].name="!Directory",M>0&&he!==B&&(Ht[he].name="!MiniFAT"),Ht[se[0]].name="!FAT",Ht.fat_addrs=se,Ht.ssz=N;var Ut={},Nn=[],hc=[],pc=[];x(ae,Ht,$e,Nn,M,Ut,hc,he),g(hc,pc,Nn),Nn.shift();var vc={FileIndex:hc,FullPaths:pc};return R&&R.raw&&(vc.raw={header:De,sectors:$e}),vc}function d(O){if(O[O.l]==80&&O[O.l+1]==75)return[0,0];O.chk(j,"Header Signature: "),O.l+=16;var R=O.read_shift(2,"u");return[O.read_shift(2,"u"),R]}function h(O,R){var D=9;switch(O.l+=2,D=O.read_shift(2)){case 9:if(R!=3)throw new Error("Sector Shift: Expected 9 saw "+D);break;case 12:if(R!=4)throw new Error("Sector Shift: Expected 12 saw "+D);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+D)}O.chk("0600","Mini Sector Shift: "),O.chk("000000000000","Reserved: ")}function p(O,R){for(var D=Math.ceil(O.length/R)-1,N=[],M=1;M<D;++M)N[M-1]=O.slice(M*R,(M+1)*R);return N[D-1]=O.slice(D*R),N}function g(O,R,D){for(var N=0,M=0,V=0,ae=0,he=0,re=D.length,se=[],ie=[];N<re;++N)se[N]=ie[N]=N,R[N]=D[N];for(;he<ie.length;++he)N=ie[he],M=O[N].L,V=O[N].R,ae=O[N].C,se[N]===N&&(M!==-1&&se[M]!==M&&(se[N]=se[M]),V!==-1&&se[V]!==V&&(se[N]=se[V])),ae!==-1&&(se[ae]=N),M!==-1&&N!=se[N]&&(se[M]=se[N],ie.lastIndexOf(M)<he&&ie.push(M)),V!==-1&&N!=se[N]&&(se[V]=se[N],ie.lastIndexOf(V)<he&&ie.push(V));for(N=1;N<re;++N)se[N]===N&&(V!==-1&&se[V]!==V?se[N]=se[V]:M!==-1&&se[M]!==M&&(se[N]=se[M]));for(N=1;N<re;++N)if(O[N].type!==0){if(he=N,he!=se[he])do he=se[he],R[N]=R[he]+"/"+R[N];while(he!==0&&se[he]!==-1&&he!=se[he]);se[N]=-1}for(R[0]+="/",N=1;N<re;++N)O[N].type!==2&&(R[N]+="/")}function v(O,R,D){for(var N=O.start,M=O.size,V=[],ae=N;D&&M>0&&ae>=0;)V.push(R.slice(ae*H,ae*H+H)),M-=H,ae=Ha(D,ae*4);return V.length===0?fe(0):mn(V).slice(0,O.size)}function m(O,R,D,N,M){var V=B;if(O===B){if(R!==0)throw new Error("DIFAT chain shorter than expected")}else if(O!==-1){var ae=D[O],he=(N>>>2)-1;if(!ae)return;for(var re=0;re<he&&(V=Ha(ae,re*4))!==B;++re)M.push(V);m(Ha(ae,N-4),R-1,D,N,M)}}function y(O,R,D,N,M){var V=[],ae=[];M||(M=[]);var he=N-1,re=0,se=0;for(re=R;re>=0;){M[re]=!0,V[V.length]=re,ae.push(O[re]);var ie=D[Math.floor(re*4/N)];if(se=re*4&he,N<4+se)throw new Error("FAT boundary crossed: "+re+" 4 "+N);if(!O[ie])break;re=Ha(O[ie],se)}return{nodes:V,data:x1([ae])}}function E(O,R,D,N){var M=O.length,V=[],ae=[],he=[],re=[],se=N-1,ie=0,we=0,De=0,Ve=0;for(ie=0;ie<M;++ie)if(he=[],De=ie+R,De>=M&&(De-=M),!ae[De]){re=[];var be=[];for(we=De;we>=0;){be[we]=!0,ae[we]=!0,he[he.length]=we,re.push(O[we]);var Re=D[Math.floor(we*4/N)];if(Ve=we*4&se,N<4+Ve)throw new Error("FAT boundary crossed: "+we+" 4 "+N);if(!O[Re]||(we=Ha(O[Re],Ve),be[we]))break}V[De]={nodes:he,data:x1([re])}}return V}function x(O,R,D,N,M,V,ae,he){for(var re=0,se=N.length?2:0,ie=R[O].data,we=0,De=0,Ve;we<ie.length;we+=128){var be=ie.slice(we,we+128);co(be,64),De=be.read_shift(2),Ve=Bh(be,0,De-se),N.push(Ve);var Re={name:Ve,type:be.read_shift(1),color:be.read_shift(1),L:be.read_shift(4,"i"),R:be.read_shift(4,"i"),C:be.read_shift(4,"i"),clsid:be.read_shift(16),state:be.read_shift(4,"i"),start:0,size:0},$e=be.read_shift(2)+be.read_shift(2)+be.read_shift(2)+be.read_shift(2);$e!==0&&(Re.ct=C(be,be.l-8));var Ht=be.read_shift(2)+be.read_shift(2)+be.read_shift(2)+be.read_shift(2);Ht!==0&&(Re.mt=C(be,be.l-8)),Re.start=be.read_shift(4,"i"),Re.size=be.read_shift(4,"i"),Re.size<0&&Re.start<0&&(Re.size=Re.type=0,Re.start=B,Re.name=""),Re.type===5?(re=Re.start,M>0&&re!==B&&(R[re].name="!StreamData")):Re.size>=4096?(Re.storage="fat",R[Re.start]===void 0&&(R[Re.start]=y(D,Re.start,R.fat_addrs,R.ssz)),R[Re.start].name=Re.name,Re.content=R[Re.start].data.slice(0,Re.size)):(Re.storage="minifat",Re.size<0?Re.size=0:re!==B&&Re.start!==B&&R[re]&&(Re.content=v(Re,R[re].data,(R[he]||{}).data))),Re.content&&co(Re.content,0),V[Ve]=Re,ae.push(Re)}}function C(O,R){return new Date((lo(O,R+4)/1e7*Math.pow(2,32)+lo(O,R)/1e7-11644473600)*1e3)}function A(O,R){return u(),f(c.readFileSync(O),R)}function w(O,R){var D=R&&R.type;switch(D||pt&&Buffer.isBuffer(O)&&(D="buffer"),D||"base64"){case"file":return A(O,R);case"base64":return f(Vo(Ar(O)),R);case"binary":return f(Vo(O),R)}return f(O,R)}function b(O,R){var D=R||{},N=D.root||"Root Entry";if(O.FullPaths||(O.FullPaths=[]),O.FileIndex||(O.FileIndex=[]),O.FullPaths.length!==O.FileIndex.length)throw new Error("inconsistent CFB structure");O.FullPaths.length===0&&(O.FullPaths[0]=N+"/",O.FileIndex[0]={name:N,type:5}),D.CLSID&&(O.FileIndex[0].clsid=D.CLSID),T(O)}function T(O){var R="Sh33tJ5";if(!At.find(O,"/"+R)){var D=fe(4);D[0]=55,D[1]=D[3]=50,D[2]=54,O.FileIndex.push({name:R,type:2,content:D,size:4,L:69,R:69,C:69}),O.FullPaths.push(O.FullPaths[0]+R),S(O)}}function S(O,R){b(O);for(var D=!1,N=!1,M=O.FullPaths.length-1;M>=0;--M){var V=O.FileIndex[M];switch(V.type){case 0:N?D=!0:(O.FileIndex.pop(),O.FullPaths.pop());break;case 1:case 2:case 5:N=!0,isNaN(V.R*V.L*V.C)&&(D=!0),V.R>-1&&V.L>-1&&V.R==V.L&&(D=!0);break;default:D=!0;break}}if(!(!D&&!R)){var ae=new Date(1987,1,19),he=0,re=Object.create?Object.create(null):{},se=[];for(M=0;M<O.FullPaths.length;++M)re[O.FullPaths[M]]=!0,O.FileIndex[M].type!==0&&se.push([O.FullPaths[M],O.FileIndex[M]]);for(M=0;M<se.length;++M){var ie=r(se[M][0]);N=re[ie],N||(se.push([ie,{name:o(ie).replace("/",""),type:1,clsid:q,ct:ae,mt:ae,content:null}]),re[ie]=!0)}for(se.sort(function(Ve,be){return n(Ve[0],be[0])}),O.FullPaths=[],O.FileIndex=[],M=0;M<se.length;++M)O.FullPaths[M]=se[M][0],O.FileIndex[M]=se[M][1];for(M=0;M<se.length;++M){var we=O.FileIndex[M],De=O.FullPaths[M];if(we.name=o(De).replace("/",""),we.L=we.R=we.C=-(we.color=1),we.size=we.content?we.content.length:0,we.start=0,we.clsid=we.clsid||q,M===0)we.C=se.length>1?1:-1,we.size=0,we.type=5;else if(De.slice(-1)=="/"){for(he=M+1;he<se.length&&r(O.FullPaths[he])!=De;++he);for(we.C=he>=se.length?-1:he,he=M+1;he<se.length&&r(O.FullPaths[he])!=r(De);++he);we.R=he>=se.length?-1:he,we.type=1}else r(O.FullPaths[M+1]||"")==r(De)&&(we.R=M+1),we.type=2}}}function _(O,R){var D=R||{};if(D.fileType=="mad")return xK(O,D);switch(S(O),D.fileType){case"zip":return ft(O,D)}var N=function(Ve){for(var be=0,Re=0,$e=0;$e<Ve.FileIndex.length;++$e){var Ht=Ve.FileIndex[$e];if(Ht.content){var Ut=Ht.content.length;Ut>0&&(Ut<4096?be+=Ut+63>>6:Re+=Ut+511>>9)}}for(var Nn=Ve.FullPaths.length+3>>2,hc=be+7>>3,pc=be+127>>7,vc=hc+Re+Nn+pc,gs=vc+127>>7,Ov=gs<=109?0:Math.ceil((gs-109)/127);vc+gs+Ov+127>>7>gs;)Ov=++gs<=109?0:Math.ceil((gs-109)/127);var Hr=[1,Ov,gs,pc,Nn,Re,be,0];return Ve.FileIndex[0].size=be<<6,Hr[7]=(Ve.FileIndex[0].start=Hr[0]+Hr[1]+Hr[2]+Hr[3]+Hr[4]+Hr[5])+(Hr[6]+7>>3),Hr}(O),M=fe(N[7]<<9),V=0,ae=0;{for(V=0;V<8;++V)M.write_shift(1,Z[V]);for(V=0;V<8;++V)M.write_shift(2,0);for(M.write_shift(2,62),M.write_shift(2,3),M.write_shift(2,65534),M.write_shift(2,9),M.write_shift(2,6),V=0;V<3;++V)M.write_shift(2,0);for(M.write_shift(4,0),M.write_shift(4,N[2]),M.write_shift(4,N[0]+N[1]+N[2]+N[3]-1),M.write_shift(4,0),M.write_shift(4,4096),M.write_shift(4,N[3]?N[0]+N[1]+N[2]-1:B),M.write_shift(4,N[3]),M.write_shift(-4,N[1]?N[0]-1:B),M.write_shift(4,N[1]),V=0;V<109;++V)M.write_shift(-4,V<N[2]?N[1]+V:-1)}if(N[1])for(ae=0;ae<N[1];++ae){for(;V<236+ae*127;++V)M.write_shift(-4,V<N[2]?N[1]+V:-1);M.write_shift(-4,ae===N[1]-1?B:ae+1)}var he=function(Ve){for(ae+=Ve;V<ae-1;++V)M.write_shift(-4,V+1);Ve&&(++V,M.write_shift(-4,B))};for(ae=V=0,ae+=N[1];V<ae;++V)M.write_shift(-4,K.DIFSECT);for(ae+=N[2];V<ae;++V)M.write_shift(-4,K.FATSECT);he(N[3]),he(N[4]);for(var re=0,se=0,ie=O.FileIndex[0];re<O.FileIndex.length;++re)ie=O.FileIndex[re],ie.content&&(se=ie.content.length,!(se<4096)&&(ie.start=ae,he(se+511>>9)));for(he(N[6]+7>>3);M.l&511;)M.write_shift(-4,K.ENDOFCHAIN);for(ae=V=0,re=0;re<O.FileIndex.length;++re)ie=O.FileIndex[re],ie.content&&(se=ie.content.length,!(!se||se>=4096)&&(ie.start=ae,he(se+63>>6)));for(;M.l&511;)M.write_shift(-4,K.ENDOFCHAIN);for(V=0;V<N[4]<<2;++V){var we=O.FullPaths[V];if(!we||we.length===0){for(re=0;re<17;++re)M.write_shift(4,0);for(re=0;re<3;++re)M.write_shift(4,-1);for(re=0;re<12;++re)M.write_shift(4,0);continue}ie=O.FileIndex[V],V===0&&(ie.start=ie.size?ie.start-1:B);var De=V===0&&D.root||ie.name;if(se=2*(De.length+1),M.write_shift(64,De,"utf16le"),M.write_shift(2,se),M.write_shift(1,ie.type),M.write_shift(1,ie.color),M.write_shift(-4,ie.L),M.write_shift(-4,ie.R),M.write_shift(-4,ie.C),ie.clsid)M.write_shift(16,ie.clsid,"hex");else for(re=0;re<4;++re)M.write_shift(4,0);M.write_shift(4,ie.state||0),M.write_shift(4,0),M.write_shift(4,0),M.write_shift(4,0),M.write_shift(4,0),M.write_shift(4,ie.start),M.write_shift(4,ie.size),M.write_shift(4,0)}for(V=1;V<O.FileIndex.length;++V)if(ie=O.FileIndex[V],ie.size>=4096)if(M.l=ie.start+1<<9,pt&&Buffer.isBuffer(ie.content))ie.content.copy(M,M.l,0,ie.size),M.l+=ie.size+511&-512;else{for(re=0;re<ie.size;++re)M.write_shift(1,ie.content[re]);for(;re&511;++re)M.write_shift(1,0)}for(V=1;V<O.FileIndex.length;++V)if(ie=O.FileIndex[V],ie.size>0&&ie.size<4096)if(pt&&Buffer.isBuffer(ie.content))ie.content.copy(M,M.l,0,ie.size),M.l+=ie.size+63&-64;else{for(re=0;re<ie.size;++re)M.write_shift(1,ie.content[re]);for(;re&63;++re)M.write_shift(1,0)}if(pt)M.l=M.length;else for(;M.l<M.length;)M.write_shift(1,0);return M}function I(O,R){var D=O.FullPaths.map(function(re){return re.toUpperCase()}),N=D.map(function(re){var se=re.split("/");return se[se.length-(re.slice(-1)=="/"?2:1)]}),M=!1;R.charCodeAt(0)===47?(M=!0,R=D[0].slice(0,-1)+R):M=R.indexOf("/")!==-1;var V=R.toUpperCase(),ae=M===!0?D.indexOf(V):N.indexOf(V);if(ae!==-1)return O.FileIndex[ae];var he=!V.match(cu);for(V=V.replace(fl,""),he&&(V=V.replace(cu,"!")),ae=0;ae<D.length;++ae)if((he?D[ae].replace(cu,"!"):D[ae]).replace(fl,"")==V||(he?N[ae].replace(cu,"!"):N[ae]).replace(fl,"")==V)return O.FileIndex[ae];return null}var H=64,B=-2,j="d0cf11e0a1b11ae1",Z=[208,207,17,224,161,177,26,225],q="00000000000000000000000000000000",K={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:B,FREESECT:-1,HEADER_SIGNATURE:j,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:q,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function oe(O,R,D){u();var N=_(O,D);c.writeFileSync(R,N)}function ge(O){for(var R=new Array(O.length),D=0;D<O.length;++D)R[D]=String.fromCharCode(O[D]);return R.join("")}function Ae(O,R){var D=_(O,R);switch(R&&R.type||"buffer"){case"file":return u(),c.writeFileSync(R.filename,D),D;case"binary":return typeof D=="string"?D:ge(D);case"base64":return cl(typeof D=="string"?D:ge(D));case"buffer":if(pt)return Buffer.isBuffer(D)?D:Sr(D);case"array":return typeof D=="string"?Vo(D):D}return D}var pe;function P(O){try{var R=O.InflateRaw,D=new R;if(D._processChunk(new Uint8Array([3,0]),D._finishFlushFlag),D.bytesRead)pe=O;else throw new Error("zlib does not expose bytesRead")}catch(N){console.error("cannot use native zlib: "+(N.message||N))}}function G(O,R){if(!pe)return je(O,R);var D=pe.InflateRaw,N=new D,M=N._processChunk(O.slice(O.l),N._finishFlushFlag);return O.l+=N.bytesRead,M}function z(O){return pe?pe.deflateRawSync(O):k(O)}var U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],J=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],ne=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function ce(O){var R=(O<<1|O<<11)&139536|(O<<5|O<<15)&558144;return(R>>16|R>>8|R)&255}for(var Q=typeof Uint8Array<"u",X=Q?new Uint8Array(256):[],de=0;de<256;++de)X[de]=ce(de);function me(O,R){var D=X[O&255];return R<=8?D>>>8-R:(D=D<<8|X[O>>8&255],R<=16?D>>>16-R:(D=D<<8|X[O>>16&255],D>>>24-R))}function Ne(O,R){var D=R&7,N=R>>>3;return(O[N]|(D<=6?0:O[N+1]<<8))>>>D&3}function Fe(O,R){var D=R&7,N=R>>>3;return(O[N]|(D<=5?0:O[N+1]<<8))>>>D&7}function lt(O,R){var D=R&7,N=R>>>3;return(O[N]|(D<=4?0:O[N+1]<<8))>>>D&15}function We(O,R){var D=R&7,N=R>>>3;return(O[N]|(D<=3?0:O[N+1]<<8))>>>D&31}function Ce(O,R){var D=R&7,N=R>>>3;return(O[N]|(D<=1?0:O[N+1]<<8))>>>D&127}function ct(O,R,D){var N=R&7,M=R>>>3,V=(1<<D)-1,ae=O[M]>>>N;return D<8-N||(ae|=O[M+1]<<8-N,D<16-N)||(ae|=O[M+2]<<16-N,D<24-N)||(ae|=O[M+3]<<24-N),ae&V}function Ct(O,R,D){var N=R&7,M=R>>>3;return N<=5?O[M]|=(D&7)<<N:(O[M]|=D<<N&255,O[M+1]=(D&7)>>8-N),R+3}function ue(O,R,D){var N=R&7,M=R>>>3;return D=(D&1)<<N,O[M]|=D,R+1}function Ee(O,R,D){var N=R&7,M=R>>>3;return D<<=N,O[M]|=D&255,D>>>=8,O[M+1]=D,R+8}function Be(O,R,D){var N=R&7,M=R>>>3;return D<<=N,O[M]|=D&255,D>>>=8,O[M+1]=D&255,O[M+2]=D>>>8,R+16}function ot(O,R){var D=O.length,N=2*D>R?2*D:R+5,M=0;if(D>=R)return O;if(pt){var V=Hy(N);if(O.copy)O.copy(V);else for(;M<O.length;++M)V[M]=O[M];return V}else if(Q){var ae=new Uint8Array(N);if(ae.set)ae.set(O);else for(;M<D;++M)ae[M]=O[M];return ae}return O.length=N,O}function le(O){for(var R=new Array(O),D=0;D<O;++D)R[D]=0;return R}function Le(O,R,D){var N=1,M=0,V=0,ae=0,he=0,re=O.length,se=Q?new Uint16Array(32):le(32);for(V=0;V<32;++V)se[V]=0;for(V=re;V<D;++V)O[V]=0;re=O.length;var ie=Q?new Uint16Array(re):le(re);for(V=0;V<re;++V)se[M=O[V]]++,N<M&&(N=M),ie[V]=0;for(se[0]=0,V=1;V<=N;++V)se[V+16]=he=he+se[V-1]<<1;for(V=0;V<re;++V)he=O[V],he!=0&&(ie[V]=se[he+16]++);var we=0;for(V=0;V<re;++V)if(we=O[V],we!=0)for(he=me(ie[V],N)>>N-we,ae=(1<<N+4-we)-1;ae>=0;--ae)R[he|ae<<we]=we&15|V<<4;return N}var tt=Q?new Uint16Array(512):le(512),qe=Q?new Uint16Array(32):le(32);if(!Q){for(var Pe=0;Pe<512;++Pe)tt[Pe]=0;for(Pe=0;Pe<32;++Pe)qe[Pe]=0}(function(){for(var O=[],R=0;R<32;R++)O.push(5);Le(O,qe,32);var D=[];for(R=0;R<=143;R++)D.push(8);for(;R<=255;R++)D.push(9);for(;R<=279;R++)D.push(7);for(;R<=287;R++)D.push(8);Le(D,tt,288)})();var W=function(){for(var R=Q?new Uint8Array(32768):[],D=0,N=0;D<ne.length-1;++D)for(;N<ne[D+1];++N)R[N]=D;for(;N<32768;++N)R[N]=29;var M=Q?new Uint8Array(259):[];for(D=0,N=0;D<J.length-1;++D)for(;N<J[D+1];++N)M[N]=D;function V(he,re){for(var se=0;se<he.length;){var ie=Math.min(65535,he.length-se),we=se+ie==he.length;for(re.write_shift(1,+we),re.write_shift(2,ie),re.write_shift(2,~ie&65535);ie-- >0;)re[re.l++]=he[se++]}return re.l}function ae(he,re){for(var se=0,ie=0,we=Q?new Uint16Array(32768):[];ie<he.length;){var De=Math.min(65535,he.length-ie);if(De<10){for(se=Ct(re,se,+(ie+De==he.length)),se&7&&(se+=8-(se&7)),re.l=se/8|0,re.write_shift(2,De),re.write_shift(2,~De&65535);De-- >0;)re[re.l++]=he[ie++];se=re.l*8;continue}se=Ct(re,se,+(ie+De==he.length)+2);for(var Ve=0;De-- >0;){var be=he[ie];Ve=(Ve<<5^be)&32767;var Re=-1,$e=0;if((Re=we[Ve])&&(Re|=ie&-32768,Re>ie&&(Re-=32768),Re<ie))for(;he[Re+$e]==he[ie+$e]&&$e<250;)++$e;if($e>2){be=M[$e],be<=22?se=Ee(re,se,X[be+1]>>1)-1:(Ee(re,se,3),se+=5,Ee(re,se,X[be-23]>>5),se+=3);var Ht=be<8?0:be-4>>2;Ht>0&&(Be(re,se,$e-J[be]),se+=Ht),be=R[ie-Re],se=Ee(re,se,X[be]>>3),se-=3;var Ut=be<4?0:be-2>>1;Ut>0&&(Be(re,se,ie-Re-ne[be]),se+=Ut);for(var Nn=0;Nn<$e;++Nn)we[Ve]=ie&32767,Ve=(Ve<<5^he[ie])&32767,++ie;De-=$e-1}else be<=143?be=be+48:se=ue(re,se,1),se=Ee(re,se,X[be]),we[Ve]=ie&32767,++ie}se=Ee(re,se,0)-1}return re.l=(se+7)/8|0,re.l}return function(re,se){return re.length<8?V(re,se):ae(re,se)}}();function k(O){var R=fe(50+Math.floor(O.length*1.1)),D=W(O,R);return R.slice(0,D)}var L=Q?new Uint16Array(32768):le(32768),ee=Q?new Uint16Array(32768):le(32768),ve=Q?new Uint16Array(128):le(128),Oe=1,ze=1;function Ye(O,R){var D=We(O,R)+257;R+=5;var N=We(O,R)+1;R+=5;var M=lt(O,R)+4;R+=4;for(var V=0,ae=Q?new Uint8Array(19):le(19),he=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],re=1,se=Q?new Uint8Array(8):le(8),ie=Q?new Uint8Array(8):le(8),we=ae.length,De=0;De<M;++De)ae[U[De]]=V=Fe(O,R),re<V&&(re=V),se[V]++,R+=3;var Ve=0;for(se[0]=0,De=1;De<=re;++De)ie[De]=Ve=Ve+se[De-1]<<1;for(De=0;De<we;++De)(Ve=ae[De])!=0&&(he[De]=ie[Ve]++);var be=0;for(De=0;De<we;++De)if(be=ae[De],be!=0){Ve=X[he[De]]>>8-be;for(var Re=(1<<7-be)-1;Re>=0;--Re)ve[Ve|Re<<be]=be&7|De<<3}var $e=[];for(re=1;$e.length<D+N;)switch(Ve=ve[Ce(O,R)],R+=Ve&7,Ve>>>=3){case 16:for(V=3+Ne(O,R),R+=2,Ve=$e[$e.length-1];V-- >0;)$e.push(Ve);break;case 17:for(V=3+Fe(O,R),R+=3;V-- >0;)$e.push(0);break;case 18:for(V=11+Ce(O,R),R+=7;V-- >0;)$e.push(0);break;default:$e.push(Ve),re<Ve&&(re=Ve);break}var Ht=$e.slice(0,D),Ut=$e.slice(D);for(De=D;De<286;++De)Ht[De]=0;for(De=N;De<30;++De)Ut[De]=0;return Oe=Le(Ht,L,286),ze=Le(Ut,ee,30),R}function ut(O,R){if(O[0]==3&&!(O[1]&3))return[Va(R),2];for(var D=0,N=0,M=Hy(R||1<<18),V=0,ae=M.length>>>0,he=0,re=0;!(N&1);){if(N=Fe(O,D),D+=3,N>>>1)N>>1==1?(he=9,re=5):(D=Ye(O,D),he=Oe,re=ze);else{D&7&&(D+=8-(D&7));var se=O[D>>>3]|O[(D>>>3)+1]<<8;if(D+=32,se>0)for(!R&&ae<V+se&&(M=ot(M,V+se),ae=M.length);se-- >0;)M[V++]=O[D>>>3],D+=8;continue}for(;;){!R&&ae<V+32767&&(M=ot(M,V+32767),ae=M.length);var ie=ct(O,D,he),we=N>>>1==1?tt[ie]:L[ie];if(D+=we&15,we>>>=4,!(we>>>8&255))M[V++]=we;else{if(we==256)break;we-=257;var De=we<8?0:we-4>>2;De>5&&(De=0);var Ve=V+J[we];De>0&&(Ve+=ct(O,D,De),D+=De),ie=ct(O,D,re),we=N>>>1==1?qe[ie]:ee[ie],D+=we&15,we>>>=4;var be=we<4?0:we-2>>1,Re=ne[we];for(be>0&&(Re+=ct(O,D,be),D+=be),!R&&ae<Ve&&(M=ot(M,Ve+100),ae=M.length);V<Ve;)M[V]=M[V-Re],++V}}}return R?[M,D+7>>>3]:[M.slice(0,V),D+7>>>3]}function je(O,R){var D=O.slice(O.l||0),N=ut(D,R);return O.l+=N[1],N[0]}function _e(O,R){if(O)typeof console<"u"&&console.error(R);else throw new Error(R)}function He(O,R){var D=O;co(D,0);var N=[],M=[],V={FileIndex:N,FullPaths:M};b(V,{root:R.root});for(var ae=D.length-4;(D[ae]!=80||D[ae+1]!=75||D[ae+2]!=5||D[ae+3]!=6)&&ae>=0;)--ae;D.l=ae+4,D.l+=4;var he=D.read_shift(2);D.l+=6;var re=D.read_shift(4);for(D.l=re,ae=0;ae<he;++ae){D.l+=20;var se=D.read_shift(4),ie=D.read_shift(4),we=D.read_shift(2),De=D.read_shift(2),Ve=D.read_shift(2);D.l+=8;var be=D.read_shift(4),Re=l(D.slice(D.l+we,D.l+we+De));D.l+=we+De+Ve;var $e=D.l;D.l=be+4,rt(D,se,ie,V,Re),D.l=$e}return V}function rt(O,R,D,N,M){O.l+=2;var V=O.read_shift(2),ae=O.read_shift(2),he=s(O);if(V&8257)throw new Error("Unsupported ZIP encryption");for(var re=O.read_shift(4),se=O.read_shift(4),ie=O.read_shift(4),we=O.read_shift(2),De=O.read_shift(2),Ve="",be=0;be<we;++be)Ve+=String.fromCharCode(O[O.l++]);if(De){var Re=l(O.slice(O.l,O.l+De));(Re[21589]||{}).mt&&(he=Re[21589].mt),((M||{})[21589]||{}).mt&&(he=M[21589].mt)}O.l+=De;var $e=O.slice(O.l,O.l+se);switch(ae){case 8:$e=G(O,ie);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+ae)}var Ht=!1;V&8&&(re=O.read_shift(4),re==134695760&&(re=O.read_shift(4),Ht=!0),se=O.read_shift(4),ie=O.read_shift(4)),se!=R&&_e(Ht,"Bad compressed size: "+R+" != "+se),ie!=D&&_e(Ht,"Bad uncompressed size: "+D+" != "+ie),kv(N,Ve,$e,{unsafe:!0,mt:he})}function ft(O,R){var D=R||{},N=[],M=[],V=fe(1),ae=D.compression?8:0,he=0,re=0,se=0,ie=0,we=0,De=O.FullPaths[0],Ve=De,be=O.FileIndex[0],Re=[],$e=0;for(re=1;re<O.FullPaths.length;++re)if(Ve=O.FullPaths[re].slice(De.length),be=O.FileIndex[re],!(!be.size||!be.content||Ve=="Sh33tJ5")){var Ht=ie,Ut=fe(Ve.length);for(se=0;se<Ve.length;++se)Ut.write_shift(1,Ve.charCodeAt(se)&127);Ut=Ut.slice(0,Ut.l),Re[we]=U8.buf(be.content,0);var Nn=be.content;ae==8&&(Nn=z(Nn)),V=fe(30),V.write_shift(4,67324752),V.write_shift(2,20),V.write_shift(2,he),V.write_shift(2,ae),be.mt?a(V,be.mt):V.write_shift(4,0),V.write_shift(-4,Re[we]),V.write_shift(4,Nn.length),V.write_shift(4,be.content.length),V.write_shift(2,Ut.length),V.write_shift(2,0),ie+=V.length,N.push(V),ie+=Ut.length,N.push(Ut),ie+=Nn.length,N.push(Nn),V=fe(46),V.write_shift(4,33639248),V.write_shift(2,0),V.write_shift(2,20),V.write_shift(2,he),V.write_shift(2,ae),V.write_shift(4,0),V.write_shift(-4,Re[we]),V.write_shift(4,Nn.length),V.write_shift(4,be.content.length),V.write_shift(2,Ut.length),V.write_shift(2,0),V.write_shift(2,0),V.write_shift(2,0),V.write_shift(2,0),V.write_shift(4,0),V.write_shift(4,Ht),$e+=V.l,M.push(V),$e+=Ut.length,M.push(Ut),++we}return V=fe(22),V.write_shift(4,101010256),V.write_shift(2,0),V.write_shift(2,0),V.write_shift(2,we),V.write_shift(2,we),V.write_shift(4,$e),V.write_shift(4,ie),V.write_shift(2,0),mn([mn(N),mn(M),V])}var cn={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function dc(O,R){if(O.ctype)return O.ctype;var D=O.name||"",N=D.match(/\.([^\.]+)$/);return N&&cn[N[1]]||R&&(N=(D=R).match(/[\.\\]([^\.\\])+$/),N&&cn[N[1]])?cn[N[1]]:"application/octet-stream"}function Tv(O){for(var R=cl(O),D=[],N=0;N<R.length;N+=76)D.push(R.slice(N,N+76));return D.join(`\r
51
+ `)+`\r
52
+ `}function Ri(O){var R=O.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(se){var ie=se.charCodeAt(0).toString(16).toUpperCase();return"="+(ie.length==1?"0"+ie:ie)});R=R.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),R.charAt(0)==`
53
+ `&&(R="=0D"+R.slice(1)),R=R.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
54
+ =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var D=[],N=R.split(`\r
55
+ `),M=0;M<N.length;++M){var V=N[M];if(V.length==0){D.push("");continue}for(var ae=0;ae<V.length;){var he=76,re=V.slice(ae,ae+he);re.charAt(he-1)=="="?he--:re.charAt(he-2)=="="?he-=2:re.charAt(he-3)=="="&&(he-=3),re=V.slice(ae,ae+he),ae+=he,ae<V.length&&(re+="="),D.push(re)}}return D.join(`\r
56
+ `)}function gK(O){for(var R=[],D=0;D<O.length;++D){for(var N=O[D];D<=O.length&&N.charAt(N.length-1)=="=";)N=N.slice(0,N.length-1)+O[++D];R.push(N)}for(var M=0;M<R.length;++M)R[M]=R[M].replace(/[=][0-9A-Fa-f]{2}/g,function(V){return String.fromCharCode(parseInt(V.slice(1),16))});return Vo(R.join(`\r
57
+ `))}function mK(O,R,D){for(var N="",M="",V="",ae,he=0;he<10;++he){var re=R[he];if(!re||re.match(/^\s*$/))break;var se=re.match(/^(.*?):\s*([^\s].*)$/);if(se)switch(se[1].toLowerCase()){case"content-location":N=se[2].trim();break;case"content-type":V=se[2].trim();break;case"content-transfer-encoding":M=se[2].trim();break}}switch(++he,M.toLowerCase()){case"base64":ae=Vo(Ar(R.slice(he).join("")));break;case"quoted-printable":ae=gK(R.slice(he));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+M)}var ie=kv(O,N.slice(D.length),ae,{unsafe:!0});V&&(ie.ctype=V)}function yK(O,R){if(ge(O.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var D=R&&R.root||"",N=(pt&&Buffer.isBuffer(O)?O.toString("binary"):ge(O)).split(`\r
58
+ `),M=0,V="";for(M=0;M<N.length;++M)if(V=N[M],!!/^Content-Location:/i.test(V)&&(V=V.slice(V.indexOf("file")),D||(D=V.slice(0,V.lastIndexOf("/")+1)),V.slice(0,D.length)!=D))for(;D.length>0&&(D=D.slice(0,D.length-1),D=D.slice(0,D.lastIndexOf("/")+1),V.slice(0,D.length)!=D););var ae=(N[1]||"").match(/boundary="(.*?)"/);if(!ae)throw new Error("MAD cannot find boundary");var he="--"+(ae[1]||""),re=[],se=[],ie={FileIndex:re,FullPaths:se};b(ie);var we,De=0;for(M=0;M<N.length;++M){var Ve=N[M];Ve!==he&&Ve!==he+"--"||(De++&&mK(ie,N.slice(we,M),D),we=M)}return ie}function xK(O,R){var D=R||{},N=D.boundary||"SheetJS";N="------="+N;for(var M=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+N.slice(2)+'"',"","",""],V=O.FullPaths[0],ae=V,he=O.FileIndex[0],re=1;re<O.FullPaths.length;++re)if(ae=O.FullPaths[re].slice(V.length),he=O.FileIndex[re],!(!he.size||!he.content||ae=="Sh33tJ5")){ae=ae.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function($e){return"_x"+$e.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function($e){return"_u"+$e.charCodeAt(0).toString(16)+"_"});for(var se=he.content,ie=pt&&Buffer.isBuffer(se)?se.toString("binary"):ge(se),we=0,De=Math.min(1024,ie.length),Ve=0,be=0;be<=De;++be)(Ve=ie.charCodeAt(be))>=32&&Ve<128&&++we;var Re=we>=De*4/5;M.push(N),M.push("Content-Location: "+(D.root||"file:///C:/SheetJS/")+ae),M.push("Content-Transfer-Encoding: "+(Re?"quoted-printable":"base64")),M.push("Content-Type: "+dc(he,ae)),M.push(""),M.push(Re?Ri(ie):Tv(ie))}return M.push(N+`--\r
59
+ `),M.join(`\r
60
+ `)}function EK(O){var R={};return b(R,O),R}function kv(O,R,D,N){var M=N&&N.unsafe;M||b(O);var V=!M&&At.find(O,R);if(!V){var ae=O.FullPaths[0];R.slice(0,ae.length)==ae?ae=R:(ae.slice(-1)!="/"&&(ae+="/"),ae=(ae+R).replace("//","/")),V={name:o(R),type:2},O.FileIndex.push(V),O.FullPaths.push(ae),M||At.utils.cfb_gc(O)}return V.content=D,V.size=D?D.length:0,N&&(N.CLSID&&(V.clsid=N.CLSID),N.mt&&(V.mt=N.mt),N.ct&&(V.ct=N.ct)),V}function CK(O,R){b(O);var D=At.find(O,R);if(D){for(var N=0;N<O.FileIndex.length;++N)if(O.FileIndex[N]==D)return O.FileIndex.splice(N,1),O.FullPaths.splice(N,1),!0}return!1}function wK(O,R,D){b(O);var N=At.find(O,R);if(N){for(var M=0;M<O.FileIndex.length;++M)if(O.FileIndex[M]==N)return O.FileIndex[M].name=o(D),O.FullPaths[M]=D,!0}return!1}function bK(O){S(O,!0)}return t.find=I,t.read=w,t.parse=f,t.write=Ae,t.writeFile=oe,t.utils={cfb_new:EK,cfb_add:kv,cfb_del:CK,cfb_mov:wK,cfb_gc:bK,ReadShift:yl,CheckField:B1,prep_blob:co,bconcat:mn,use_zlib:P,_deflateRaw:k,_inflateRaw:je,consts:K},t}();function j8(e){return typeof e=="string"?lu(e):Array.isArray(e)?p8(e):e}function dl(e,t,n){if(typeof Deno<"u"){if(n&&typeof t=="string")switch(n){case"utf8":t=new TextEncoder(n).encode(t);break;case"binary":t=lu(t);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(e,t)}var r=n=="utf8"?Or(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(r,e);if(typeof Blob<"u"){var o=new Blob([j8(r)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(o,e);if(typeof saveAs<"u")return saveAs(o,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(o);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var l=File(e);return l.open("w"),l.encoding="binary",Array.isArray(t)&&(t=ul(t)),l.write(t),l.close(),t}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("cannot save file "+e)}function yn(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function i1(e,t){for(var n=[],r=yn(e),o=0;o!==r.length;++o)n[e[r[o]][t]]==null&&(n[e[r[o]][t]]=r[o]);return n}function Ph(e){for(var t=[],n=yn(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}function gu(e){for(var t=[],n=yn(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}function G8(e){for(var t=[],n=yn(e),r=0;r!==n.length;++r)t[e[n[r]]]==null&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}var mu=new Date(1899,11,30,0,0,0);function Zn(e,t){var n=e.getTime();t&&(n-=1462*24*60*60*1e3);var r=mu.getTime()+(e.getTimezoneOffset()-mu.getTimezoneOffset())*6e4;return(n-r)/(24*60*60*1e3)}var l1=new Date,z8=mu.getTime()+(l1.getTimezoneOffset()-mu.getTimezoneOffset())*6e4,c1=l1.getTimezoneOffset();function u1(e){var t=new Date;return t.setTime(e*24*60*60*1e3+z8),t.getTimezoneOffset()!==c1&&t.setTime(t.getTime()+(t.getTimezoneOffset()-c1)*6e4),t}var f1=new Date("2017-02-19T19:06:09.000Z"),d1=isNaN(f1.getFullYear())?new Date("2/19/17"):f1,W8=d1.getFullYear()==2017;function Vn(e,t){var n=new Date(e);if(W8)return t>0?n.setTime(n.getTime()+n.getTimezoneOffset()*60*1e3):t<0&&n.setTime(n.getTime()-n.getTimezoneOffset()*60*1e3),n;if(e instanceof Date)return e;if(d1.getFullYear()==1917&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var o=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+o[0],+o[1]-1,+o[2],+o[3]||0,+o[4]||0,+o[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function yu(e,t){if(pt&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return Or(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Or(h8(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return Or(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Or(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(a){return n[a]||a})}catch{}for(var r=[],o=0;o!=e.length;++o)r.push(String.fromCharCode(e[o]));return r.join("")}function qn(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=qn(e[n]));return t}function zt(e,t){for(var n="";n.length<t;)n+=e;return n}function kr(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var n=1,r=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return n*=100,""});return!isNaN(t=Number(r))||(r=r.replace(/[(](.*)[)]/,function(o,a){return n=-n,a}),!isNaN(t=Number(r)))?t/n:t}var K8=["january","february","march","april","may","june","july","august","september","october","november","december"];function hl(e){var t=new Date(e),n=new Date(NaN),r=t.getYear(),o=t.getMonth(),a=t.getDate();if(isNaN(a))return n;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&K8.indexOf(s)==-1)return n}else if(s.match(/[a-z]/))return n;return r<0||r>8099?n:(o>0||a>1)&&r!=101?t:e.match(/[^-0-9:,\/\\]/)?n:t}function nt(e,t,n){if(e.FullPaths){if(typeof n=="string"){var r;return pt?r=Sr(n):r=v8(n),At.utils.cfb_add(e,t,r)}At.utils.cfb_add(e,t,n)}else e.file(t,n)}function _h(){return At.utils.cfb_new()}var $t=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
61
+ `,Y8={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},Dh=Ph(Y8),Ih=/[&<>'"]/g,X8=/[\u0000-\u0008\u000b-\u001f]/g;function gt(e){var t=e+"";return t.replace(Ih,function(n){return Dh[n]}).replace(X8,function(n){return"_x"+("000"+n.charCodeAt(0).toString(16)).slice(-4)+"_"})}function h1(e){return gt(e).replace(/ /g,"_x0020_")}var p1=/[\u0000-\u001f]/g;function Q8(e){var t=e+"";return t.replace(Ih,function(n){return Dh[n]}).replace(/\n/g,"<br/>").replace(p1,function(n){return"&#x"+("000"+n.charCodeAt(0).toString(16)).slice(-4)+";"})}function J8(e){var t=e+"";return t.replace(Ih,function(n){return Dh[n]}).replace(p1,function(n){return"&#x"+n.charCodeAt(0).toString(16).toUpperCase()+";"})}function Z8(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function q8(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Fh(e){for(var t="",n=0,r=0,o=0,a=0,s=0,l=0;n<e.length;){if(r=e.charCodeAt(n++),r<128){t+=String.fromCharCode(r);continue}if(o=e.charCodeAt(n++),r>191&&r<224){s=(r&31)<<6,s|=o&63,t+=String.fromCharCode(s);continue}if(a=e.charCodeAt(n++),r<240){t+=String.fromCharCode((r&15)<<12|(o&63)<<6|a&63);continue}s=e.charCodeAt(n++),l=((r&7)<<18|(o&63)<<12|(a&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(l>>>10&1023)),t+=String.fromCharCode(56320+(l&1023))}return t}function v1(e){var t=Va(2*e.length),n,r,o=1,a=0,s=0,l;for(r=0;r<e.length;r+=o)o=1,(l=e.charCodeAt(r))<128?n=l:l<224?(n=(l&31)*64+(e.charCodeAt(r+1)&63),o=2):l<240?(n=(l&15)*4096+(e.charCodeAt(r+1)&63)*64+(e.charCodeAt(r+2)&63),o=3):(o=4,n=(l&7)*262144+(e.charCodeAt(r+1)&63)*4096+(e.charCodeAt(r+2)&63)*64+(e.charCodeAt(r+3)&63),n-=65536,s=55296+(n>>>10&1023),n=56320+(n&1023)),s!==0&&(t[a++]=s&255,t[a++]=s>>>8,s=0),t[a++]=n%256,t[a++]=n>>>8;return t.slice(0,a).toString("ucs2")}function g1(e){return Sr(e,"binary").toString("utf8")}var xu="foo bar baz☃🍣",pl=pt&&(g1(xu)==Fh(xu)&&g1||v1(xu)==Fh(xu)&&v1)||Fh,Or=pt?function(e){return Sr(e,"utf8").toString("binary")}:function(e){for(var t=[],n=0,r=0,o=0;n<e.length;)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(r&63)));break;case(r>=55296&&r<57344):r-=55296,o=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(o>>18&7))),t.push(String.fromCharCode(144+(o>>12&63))),t.push(String.fromCharCode(128+(o>>6&63))),t.push(String.fromCharCode(128+(o&63)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(r&63)))}return t.join("")},$8=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(n){for(var r=n.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
62
+ `).replace(/<[^>]*>/g,""),o=0;o<e.length;++o)r=r.replace(e[o][0],e[o][1]);return r}}(),m1=/(^\s|\s$|\n)/;function xn(e,t){return"<"+e+(t.match(m1)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function vl(e){return yn(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function Se(e,t,n){return"<"+e+(n!=null?vl(n):"")+(t!=null?(t.match(m1)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function Nh(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(n){if(t)throw n}return""}function e6(e,t){switch(typeof e){case"string":var n=Se("vt:lpwstr",gt(e));return t&&(n=n.replace(/&quot;/g,"_x0022_")),n;case"number":return Se((e|0)==e?"vt:i4":"vt:r8",gt(String(e)));case"boolean":return Se("vt:bool",e?"true":"false")}if(e instanceof Date)return Se("vt:filetime",Nh(e));throw new Error("Unable to serialize "+e)}var un={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Ys=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],io={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function t6(e,t){for(var n=1-2*(e[t+7]>>>7),r=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),o=e[t+6]&15,a=5;a>=0;--a)o=o*256+e[t+a];return r==2047?o==0?n*(1/0):NaN:(r==0?r=-1022:(r-=1023,o+=Math.pow(2,52)),n*Math.pow(2,r-52)*o)}function n6(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,o=0,a=0,s=r?-t:t;isFinite(s)?s==0?o=a=0:(o=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-o),o<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?o=-1022:(a-=Math.pow(2,52),o+=1023)):(o=2047,a=isNaN(t)?26985:0);for(var l=0;l<=5;++l,a/=256)e[n+l]=a&255;e[n+6]=(o&15)<<4|a&15,e[n+7]=o>>4|r}var y1=function(e){for(var t=[],n=10240,r=0;r<e[0].length;++r)if(e[0][r])for(var o=0,a=e[0][r].length;o<a;o+=n)t.push.apply(t,e[0][r].slice(o,o+n));return t},x1=pt?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Sr(t)})):y1(e)}:y1,E1=function(e,t,n){for(var r=[],o=t;o<n;o+=2)r.push(String.fromCharCode(ml(e,o)));return r.join("").replace(fl,"")},Bh=pt?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf16le",t,n).replace(fl,""):E1(e,t,n)}:E1,C1=function(e,t,n){for(var r=[],o=t;o<t+n;++o)r.push(("0"+e[o].toString(16)).slice(-2));return r.join("")},w1=pt?function(e,t,n){return Buffer.isBuffer(e)?e.toString("hex",t,t+n):C1(e,t,n)}:C1,b1=function(e,t,n){for(var r=[],o=t;o<n;o++)r.push(String.fromCharCode(Xs(e,o)));return r.join("")},gl=pt?function(t,n,r){return Buffer.isBuffer(t)?t.toString("utf8",n,r):b1(t,n,r)}:b1,A1=function(e,t){var n=lo(e,t);return n>0?gl(e,t+4,t+4+n-1):""},S1=A1,T1=function(e,t){var n=lo(e,t);return n>0?gl(e,t+4,t+4+n-1):""},k1=T1,O1=function(e,t){var n=2*lo(e,t);return n>0?gl(e,t+4,t+4+n-1):""},P1=O1,_1=function(t,n){var r=lo(t,n);return r>0?Bh(t,n+4,n+4+r):""},D1=_1,I1=function(e,t){var n=lo(e,t);return n>0?gl(e,t+4,t+4+n):""},F1=I1,N1=function(e,t){return t6(e,t)},Eu=N1,Rh=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};pt&&(S1=function(t,n){if(!Buffer.isBuffer(t))return A1(t,n);var r=t.readUInt32LE(n);return r>0?t.toString("utf8",n+4,n+4+r-1):""},k1=function(t,n){if(!Buffer.isBuffer(t))return T1(t,n);var r=t.readUInt32LE(n);return r>0?t.toString("utf8",n+4,n+4+r-1):""},P1=function(t,n){if(!Buffer.isBuffer(t))return O1(t,n);var r=2*t.readUInt32LE(n);return t.toString("utf16le",n+4,n+4+r-1)},D1=function(t,n){if(!Buffer.isBuffer(t))return _1(t,n);var r=t.readUInt32LE(n);return t.toString("utf16le",n+4,n+4+r)},F1=function(t,n){if(!Buffer.isBuffer(t))return I1(t,n);var r=t.readUInt32LE(n);return t.toString("utf8",n+4,n+4+r)},Eu=function(t,n){return Buffer.isBuffer(t)?t.readDoubleLE(n):N1(t,n)},Rh=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Xs=function(e,t){return e[t]},ml=function(e,t){return e[t+1]*256+e[t]},o6=function(e,t){var n=e[t+1]*256+e[t];return n<32768?n:(65535-n+1)*-1},lo=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Ha=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},r6=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function yl(e,t){var n="",r,o,a=[],s,l,c,u;switch(t){case"dbcs":if(u=this.l,pt&&Buffer.isBuffer(this))n=this.slice(this.l,this.l+2*e).toString("utf16le");else for(c=0;c<e;++c)n+=String.fromCharCode(ml(this,u)),u+=2;e*=2;break;case"utf8":n=gl(this,this.l,this.l+e);break;case"utf16le":e*=2,n=Bh(this,this.l,this.l+e);break;case"wstr":return yl.call(this,e,"dbcs");case"lpstr-ansi":n=S1(this,this.l),e=4+lo(this,this.l);break;case"lpstr-cp":n=k1(this,this.l),e=4+lo(this,this.l);break;case"lpwstr":n=P1(this,this.l),e=4+2*lo(this,this.l);break;case"lpp4":e=4+lo(this,this.l),n=D1(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+lo(this,this.l),n=F1(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,n="";(s=Xs(this,this.l+e++))!==0;)a.push(iu(s));n=a.join("");break;case"_wstr":for(e=0,n="";(s=ml(this,this.l+e))!==0;)a.push(iu(s)),e+=2;e+=2,n=a.join("");break;case"dbcs-cont":for(n="",u=this.l,c=0;c<e;++c){if(this.lens&&this.lens.indexOf(u)!==-1)return s=Xs(this,u),this.l=u+1,l=yl.call(this,e-c,s?"dbcs-cont":"sbcs-cont"),a.join("")+l;a.push(iu(ml(this,u))),u+=2}n=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(n="",u=this.l,c=0;c!=e;++c){if(this.lens&&this.lens.indexOf(u)!==-1)return s=Xs(this,u),this.l=u+1,l=yl.call(this,e-c,s?"dbcs-cont":"sbcs-cont"),a.join("")+l;a.push(iu(Xs(this,u))),u+=1}n=a.join("");break;default:switch(e){case 1:return r=Xs(this,this.l),this.l++,r;case 2:return r=(t==="i"?o6:ml)(this,this.l),this.l+=2,r;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(r=(e>0?Ha:r6)(this,this.l),this.l+=4,r):(o=lo(this,this.l),this.l+=4,o);case 8:case-8:if(t==="f")return e==8?o=Eu(this,this.l):o=Eu([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,o;e=8;case 16:n=w1(this,this.l,e);break}}return this.l+=e,n}var a6=function(e,t,n){e[n]=t&255,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},s6=function(e,t,n){e[n]=t&255,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},i6=function(e,t,n){e[n]=t&255,e[n+1]=t>>>8&255};function l6(e,t,n){var r=0,o=0;if(n==="dbcs"){for(o=0;o!=t.length;++o)i6(this,t.charCodeAt(o),this.l+2*o);r=2*t.length}else if(n==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),o=0;o!=t.length;++o)this[this.l+o]=t.charCodeAt(o)&255;r=t.length}else if(n==="hex"){for(;o<e;++o)this[this.l++]=parseInt(t.slice(2*o,2*o+2),16)||0;return this}else if(n==="utf16le"){var a=Math.min(this.l+e,this.length);for(o=0;o<Math.min(t.length,e);++o){var s=t.charCodeAt(o);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<a;)this[this.l++]=0;return this}else switch(e){case 1:r=1,this[this.l]=t&255;break;case 2:r=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:r=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:r=4,a6(this,t,this.l);break;case 8:if(r=8,n==="f"){n6(this,t,this.l);break}case 16:break;case-4:r=4,s6(this,t,this.l);break}return this.l+=r,this}function B1(e,t){var n=w1(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function co(e,t){e.l=t,e.read_shift=yl,e.chk=B1,e.write_shift=l6}function ar(e,t){e.l+=t}function fe(e){var t=Va(e);return co(t,0),t}function $n(){var e=[],t=pt?256:2048,n=function(u){var f=fe(u);return co(f,0),f},r=n(t),o=function(){r&&(r.length>r.l&&(r=r.slice(0,r.l),r.l=r.length),r.length>0&&e.push(r),r=null)},a=function(u){return r&&u<r.length-r.l?r:(o(),r=n(Math.max(u+1,t)))},s=function(){return o(),mn(e)},l=function(u){o(),r=u,r.l==null&&(r.l=r.length),a(t)};return{next:a,push:l,end:s,_bufs:e}}function ye(e,t,n,r){var o=+t,a;if(!isNaN(o)){r||(r=t7[o].p||(n||[]).length||0),a=1+(o>=128?1:0)+1,r>=128&&++a,r>=16384&&++a,r>=2097152&&++a;var s=e.next(a);o<=127?s.write_shift(1,o):(s.write_shift(1,(o&127)+128),s.write_shift(1,o>>7));for(var l=0;l!=4;++l)if(r>=128)s.write_shift(1,(r&127)+128),r>>=7;else{s.write_shift(1,r);break}r>0&&Rh(n)&&e.push(n)}}function xl(e,t,n){var r=qn(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function R1(e,t,n){var r=qn(e);return r.s=xl(r.s,t.s,n),r.e=xl(r.e,t.s,n),r}function El(e,t){if(e.cRel&&e.c<0)for(e=qn(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=qn(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=mt(e);return!e.cRel&&e.cRel!=null&&(n=f6(n)),!e.rRel&&e.rRel!=null&&(n=c6(n)),n}function Mh(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+On(e.s.c)+":"+(e.e.cRel?"":"$")+On(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+En(e.s.r)+":"+(e.e.rRel?"":"$")+En(e.e.r):El(e.s,t.biff)+":"+El(e.e,t.biff)}function Lh(e){return parseInt(u6(e),10)-1}function En(e){return""+(e+1)}function c6(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function u6(e){return e.replace(/\$(\d+)$/,"$1")}function Vh(e){for(var t=d6(e),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function On(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function f6(e){return e.replace(/^([A-Z])/,"$$$1")}function d6(e){return e.replace(/^\$([A-Z])/,"$1")}function h6(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function fn(e){for(var t=0,n=0,r=0;r<e.length;++r){var o=e.charCodeAt(r);o>=48&&o<=57?t=10*t+(o-48):o>=65&&o<=90&&(n=26*n+(o-64))}return{c:n-1,r:t-1}}function mt(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function uo(e){var t=e.indexOf(":");return t==-1?{s:fn(e),e:fn(e)}:{s:fn(e.slice(0,t)),e:fn(e.slice(t+1))}}function en(e,t){return typeof t>"u"||typeof t=="number"?en(e.s,e.e):(typeof e!="string"&&(e=mt(e)),typeof t!="string"&&(t=mt(t)),e==t?e:e+":"+t)}function Dt(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,o=0,a=e.length;for(n=0;r<a&&!((o=e.charCodeAt(r)-64)<1||o>26);++r)n=26*n+o;for(t.s.c=--n,n=0;r<a&&!((o=e.charCodeAt(r)-48)<0||o>9);++r)n=10*n+o;if(t.s.r=--n,r===a||o!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=a&&!((o=e.charCodeAt(r)-64)<1||o>26);++r)n=26*n+o;for(t.e.c=--n,n=0;r!=a&&!((o=e.charCodeAt(r)-48)<0||o>9);++r)n=10*n+o;return t.e.r=--n,t}function M1(e,t){var n=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=ea(e.z,n?Zn(t):t)}catch{}try{return e.w=ea((e.XF||{}).numFmtId||(n?14:0),n?Zn(t):t)}catch{return""+t}}function Pr(e,t,n){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),e.t=="e"?Cl[e.v]||e.v:t==null?M1(e,e.v):M1(e,t))}function Ua(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function L1(e,t,n){var r=n||{},o=e?Array.isArray(e):r.dense,a=e||(o?[]:{}),s=0,l=0;if(a&&r.origin!=null){if(typeof r.origin=="number")s=r.origin;else{var c=typeof r.origin=="string"?fn(r.origin):r.origin;s=c.r,l=c.c}a["!ref"]||(a["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var f=Dt(a["!ref"]);u.s.c=f.s.c,u.s.r=f.s.r,u.e.c=Math.max(u.e.c,f.e.c),u.e.r=Math.max(u.e.r,f.e.r),s==-1&&(u.e.r=s=f.e.r+1)}for(var d=0;d!=t.length;++d)if(t[d]){if(!Array.isArray(t[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=t[d].length;++h)if(!(typeof t[d][h]>"u")){var p={v:t[d][h]},g=s+d,v=l+h;if(u.s.r>g&&(u.s.r=g),u.s.c>v&&(u.s.c=v),u.e.r<g&&(u.e.r=g),u.e.c<v&&(u.e.c=v),t[d][h]&&typeof t[d][h]=="object"&&!Array.isArray(t[d][h])&&!(t[d][h]instanceof Date))p=t[d][h];else if(Array.isArray(p.v)&&(p.f=t[d][h][1],p.v=p.v[0]),p.v===null)if(p.f)p.t="n";else if(r.nullError)p.t="e",p.v=0;else if(r.sheetStubs)p.t="z";else continue;else typeof p.v=="number"?p.t="n":typeof p.v=="boolean"?p.t="b":p.v instanceof Date?(p.z=r.dateNF||Gt[14],r.cellDates?(p.t="d",p.w=ea(p.z,Zn(p.v))):(p.t="n",p.v=Zn(p.v),p.w=ea(p.z,p.v))):p.t="s";if(o)a[g]||(a[g]=[]),a[g][v]&&a[g][v].z&&(p.z=a[g][v].z),a[g][v]=p;else{var m=mt({c:v,r:g});a[m]&&a[m].z&&(p.z=a[m].z),a[m]=p}}}return u.s.c<1e7&&(a["!ref"]=en(u)),a}function Qs(e,t){return L1(null,e,t)}function p6(e){return e.read_shift(4,"i")}function Uo(e,t){return t||(t=fe(4)),t.write_shift(4,e),t}function Pn(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function dn(e,t){var n=!1;return t==null&&(n=!0,t=fe(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function v6(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function g6(e,t){return t||(t=fe(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function Hh(e,t){var n=e.l,r=e.read_shift(1),o=Pn(e),a=[],s={t:o,h:o};if(r&1){for(var l=e.read_shift(4),c=0;c!=l;++c)a.push(v6(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=n+t,s}function m6(e,t){var n=!1;return t==null&&(n=!0,t=fe(15+4*e.t.length)),t.write_shift(1,0),dn(e.t,t),n?t.slice(0,t.l):t}var y6=Hh;function x6(e,t){var n=!1;return t==null&&(n=!0,t=fe(23+4*e.t.length)),t.write_shift(1,1),dn(e.t,t),t.write_shift(4,1),g6({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}function Ao(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function ja(e,t){return t==null&&(t=fe(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function Ga(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function za(e,t){return t==null&&(t=fe(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var E6=Pn,V1=dn;function Uh(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function Cu(e,t){var n=!1;return t==null&&(n=!0,t=fe(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var C6=Pn,jh=Uh,Gh=Cu;function H1(e){var t=e.slice(e.l,e.l+4),n=t[0]&1,r=t[0]&2;e.l+=4;var o=r===0?Eu([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Ha(t,0)>>2;return n?o/100:o}function U1(e,t){t==null&&(t=fe(4));var n=0,r=0,o=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?r=1:o==(o|0)&&o>=-(1<<29)&&o<1<<29&&(r=1,n=1),r)t.write_shift(-4,((n?o:e)<<2)+(n+2));else throw new Error("unsupported RkNumber "+e)}function j1(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function w6(e,t){return t||(t=fe(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var Wa=j1,Js=w6;function Zs(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Ka(e,t){return(t||fe(8)).write_shift(8,e,"f")}function b6(e){var t={},n=e.read_shift(1),r=n>>>1,o=e.read_shift(1),a=e.read_shift(2,"i"),s=e.read_shift(1),l=e.read_shift(1),c=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=o;var u=I6[o];u&&(t.rgb=mx(u));break;case 2:t.rgb=mx([s,l,c]);break;case 3:t.theme=o;break}return a!=0&&(t.tint=a>0?a/32767:a/32768),t}function wu(e,t){if(t||(t=fe(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var r=e.rgb||"FFFFFF";typeof r=="number"&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}return t}function A6(e){var t=e.read_shift(1);e.l++;var n={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return n}function S6(e,t){t||(t=fe(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,n),t.write_shift(1,0),t}var G1=2,fo=3,bu=11,Au=19,Su=64,T6=65,k6=71,O6=4108,P6=4126,Cn=80,z1={1:{n:"CodePage",t:G1},2:{n:"Category",t:Cn},3:{n:"PresentationFormat",t:Cn},4:{n:"ByteCount",t:fo},5:{n:"LineCount",t:fo},6:{n:"ParagraphCount",t:fo},7:{n:"SlideCount",t:fo},8:{n:"NoteCount",t:fo},9:{n:"HiddenCount",t:fo},10:{n:"MultimediaClipCount",t:fo},11:{n:"ScaleCrop",t:bu},12:{n:"HeadingPairs",t:O6},13:{n:"TitlesOfParts",t:P6},14:{n:"Manager",t:Cn},15:{n:"Company",t:Cn},16:{n:"LinksUpToDate",t:bu},17:{n:"CharacterCount",t:fo},19:{n:"SharedDoc",t:bu},22:{n:"HyperlinksChanged",t:bu},23:{n:"AppVersion",t:fo,p:"version"},24:{n:"DigSig",t:T6},26:{n:"ContentType",t:Cn},27:{n:"ContentStatus",t:Cn},28:{n:"Language",t:Cn},29:{n:"Version",t:Cn},255:{},2147483648:{n:"Locale",t:Au},2147483651:{n:"Behavior",t:Au},1919054434:{}},W1={1:{n:"CodePage",t:G1},2:{n:"Title",t:Cn},3:{n:"Subject",t:Cn},4:{n:"Author",t:Cn},5:{n:"Keywords",t:Cn},6:{n:"Comments",t:Cn},7:{n:"Template",t:Cn},8:{n:"LastAuthor",t:Cn},9:{n:"RevNumber",t:Cn},10:{n:"EditTime",t:Su},11:{n:"LastPrinted",t:Su},12:{n:"CreatedDate",t:Su},13:{n:"ModifiedDate",t:Su},14:{n:"PageCount",t:fo},15:{n:"WordCount",t:fo},16:{n:"CharCount",t:fo},17:{n:"Thumbnail",t:k6},18:{n:"Application",t:Cn},19:{n:"DocSecurity",t:fo},255:{},2147483648:{n:"Locale",t:Au},2147483651:{n:"Behavior",t:Au},1919054434:{}};function _6(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var D6=_6([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),I6=qn(D6),Cl={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},F6={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Tu={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function K1(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Y1(e,t){var n=G8(F6),r=[],o;r[r.length]=$t,r[r.length]=Se("Types",null,{xmlns:un.CT,"xmlns:xsd":un.xsd,"xmlns:xsi":un.xsi}),r=r.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(c){return Se("Default",null,{Extension:c[0],ContentType:c[1]})}));var a=function(c){e[c]&&e[c].length>0&&(o=e[c][0],r[r.length]=Se("Override",null,{PartName:(o[0]=="/"?"":"/")+o,ContentType:Tu[c][t.bookType]||Tu[c].xlsx}))},s=function(c){(e[c]||[]).forEach(function(u){r[r.length]=Se("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:Tu[c][t.bookType]||Tu[c].xlsx})})},l=function(c){(e[c]||[]).forEach(function(u){r[r.length]=Se("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:n[c][0]})})};return a("workbooks"),s("sheets"),s("charts"),l("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(l),l("vba"),l("comments"),l("threadedcomments"),l("drawings"),s("metadata"),l("people"),r.length>2&&(r[r.length]="</Types>",r[1]=r[1].replace("/>",">")),r.join("")}var ht={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function X1(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function qs(e){var t=[$t,Se("Relationships",null,{xmlns:un.RELS})];return yn(e["!id"]).forEach(function(n){t[t.length]=Se("Relationship",null,e["!id"][n])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function yt(e,t,n,r,o,a){if(o||(o={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,o.Id="rId"+t,o.Type=r,o.Target=n,a?o.TargetMode=a:[ht.HLINK,ht.XPATH,ht.XMISS].indexOf(o.Type)>-1&&(o.TargetMode="External"),e["!id"][o.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][o.Id]=o,e[("/"+o.Target).replace("//","/")]=o,t}function N6(e){var t=[$t];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
63
+ `),t.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
64
+ `);for(var n=0;n<e.length;++n)t.push(' <manifest:file-entry manifest:full-path="'+e[n][0]+'" manifest:media-type="'+e[n][1]+`"/>
65
+ `);return t.push("</manifest:manifest>"),t.join("")}function Q1(e,t,n){return[' <rdf:Description rdf:about="'+e+`">
66
+ `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+t+`"/>
67
+ `,` </rdf:Description>
68
+ `].join("")}function B6(e,t){return[' <rdf:Description rdf:about="'+e+`">
69
+ `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
70
+ `,` </rdf:Description>
71
+ `].join("")}function R6(e){var t=[$t];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
72
+ `);for(var n=0;n!=e.length;++n)t.push(Q1(e[n][0],e[n][1])),t.push(B6("",e[n][0]));return t.push(Q1("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function J1(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+su.version+"</meta:generator></office:meta></office:document-meta>"}var Ya=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function zh(e,t,n,r,o){o[e]!=null||t==null||t===""||(o[e]=t,t=gt(t),r[r.length]=n?Se(e,t,n):xn(e,t))}function Z1(e,t){var n=t||{},r=[$t,Se("cp:coreProperties",null,{"xmlns:cp":un.CORE_PROPS,"xmlns:dc":un.dc,"xmlns:dcterms":un.dcterms,"xmlns:dcmitype":un.dcmitype,"xmlns:xsi":un.xsi})],o={};if(!e&&!n.Props)return r.join("");e&&(e.CreatedDate!=null&&zh("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:Nh(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,o),e.ModifiedDate!=null&&zh("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:Nh(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,o));for(var a=0;a!=Ya.length;++a){var s=Ya[a],l=n.Props&&n.Props[s[1]]!=null?n.Props[s[1]]:e?e[s[1]]:null;l===!0?l="1":l===!1?l="0":typeof l=="number"&&(l=String(l)),l!=null&&zh(s[0],l,null,r,o)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var $s=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],q1=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function $1(e){var t=[],n=Se;return e||(e={}),e.Application="SheetJS",t[t.length]=$t,t[t.length]=Se("Properties",null,{xmlns:un.EXT_PROPS,"xmlns:vt":un.vt}),$s.forEach(function(r){if(e[r[1]]!==void 0){var o;switch(r[2]){case"string":o=gt(String(e[r[1]]));break;case"bool":o=e[r[1]]?"true":"false";break}o!==void 0&&(t[t.length]=n(r[0],o))}}),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map(function(r){return"<vt:lpstr>"+gt(r)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function ex(e){var t=[$t,Se("Properties",null,{xmlns:un.CUST_PROPS,"xmlns:vt":un.vt})];if(!e)return t.join("");var n=1;return yn(e).forEach(function(o){++n,t[t.length]=Se("property",e6(e[o],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:gt(o)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var tx={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function M6(e,t){var n=[];return yn(tx).map(function(r){for(var o=0;o<Ya.length;++o)if(Ya[o][1]==r)return Ya[o];for(o=0;o<$s.length;++o)if($s[o][1]==r)return $s[o];throw r}).forEach(function(r){if(e[r[1]]!=null){var o=t&&t.Props&&t.Props[r[1]]!=null?t.Props[r[1]]:e[r[1]];switch(r[2]){case"date":o=new Date(o).toISOString().replace(/\.\d*Z/,"Z");break}typeof o=="number"?o=String(o):o===!0||o===!1?o=o?"1":"0":o instanceof Date&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"")),n.push(xn(tx[r[1]]||r[1],o))}}),Se("DocumentProperties",n.join(""),{xmlns:io.o})}function L6(e,t){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",o=[];return e&&yn(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var s=0;s<Ya.length;++s)if(a==Ya[s][1])return;for(s=0;s<$s.length;++s)if(a==$s[s][1])return;for(s=0;s<n.length;++s)if(a==n[s])return;var l=e[a],c="string";typeof l=="number"?(c="float",l=String(l)):l===!0||l===!1?(c="boolean",l=l?"1":"0"):l=String(l),o.push(Se(h1(a),l,{"dt:dt":c}))}}),t&&yn(t).forEach(function(a){if(Object.prototype.hasOwnProperty.call(t,a)&&!(e&&Object.prototype.hasOwnProperty.call(e,a))){var s=t[a],l="string";typeof s=="number"?(l="float",s=String(s)):s===!0||s===!1?(l="boolean",s=s?"1":"0"):s instanceof Date?(l="dateTime.tz",s=s.toISOString()):s=String(s),o.push(Se(h1(a),s,{"dt:dt":l}))}}),"<"+r+' xmlns="'+io.o+'">'+o.join("")+"</"+r+">"}function V6(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,n=t.getTime()/1e3+11644473600,r=n%Math.pow(2,32),o=(n-r)/Math.pow(2,32);r*=1e7,o*=1e7;var a=r/Math.pow(2,32)|0;a>0&&(r=r%Math.pow(2,32),o+=a);var s=fe(8);return s.write_shift(4,r),s.write_shift(4,o),s}function nx(e,t){var n=fe(4),r=fe(4);switch(n.write_shift(4,e==80?31:e),e){case 3:r.write_shift(-4,t);break;case 5:r=fe(8),r.write_shift(8,t,"f");break;case 11:r.write_shift(4,t?1:0);break;case 64:r=V6(t);break;case 31:case 80:for(r=fe(4+2*(t.length+1)+(t.length%2?0:2)),r.write_shift(4,t.length+1),r.write_shift(0,t,"dbcs");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return mn([n,r])}var ox=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function H6(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function rx(e,t,n){var r=fe(8),o=[],a=[],s=8,l=0,c=fe(8),u=fe(8);if(c.write_shift(4,2),c.write_shift(4,1200),u.write_shift(4,1),a.push(c),o.push(u),s+=8+c.length,!t){u=fe(8),u.write_shift(4,0),o.unshift(u);var f=[fe(4)];for(f[0].write_shift(4,e.length),l=0;l<e.length;++l){var d=e[l][0];for(c=fe(4+4+2*(d.length+1)+(d.length%2?0:2)),c.write_shift(4,l+2),c.write_shift(4,d.length+1),c.write_shift(0,d,"dbcs");c.l!=c.length;)c.write_shift(1,0);f.push(c)}c=mn(f),a.unshift(c),s+=8+c.length}for(l=0;l<e.length;++l)if(!(t&&!t[e[l][0]])&&!(ox.indexOf(e[l][0])>-1||q1.indexOf(e[l][0])>-1)&&e[l][1]!=null){var h=e[l][1],p=0;if(t){p=+t[e[l][0]];var g=n[p];if(g.p=="version"&&typeof h=="string"){var v=h.split(".");h=(+v[0]<<16)+(+v[1]||0)}c=nx(g.t,h)}else{var m=H6(h);m==-1&&(m=31,h=String(h)),c=nx(m,h)}a.push(c),u=fe(8),u.write_shift(4,t?p:2+l),o.push(u),s+=8+c.length}var y=8*(a.length+1);for(l=0;l<a.length;++l)o[l].write_shift(4,y),y+=a[l].length;return r.write_shift(4,s),r.write_shift(4,a.length),mn([r].concat(o).concat(a))}function ax(e,t,n,r,o,a){var s=fe(o?68:48),l=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,At.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,o?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,o?68:48);var c=rx(e,n,r);if(l.push(c),o){var u=rx(o,null,null);s.write_shift(16,a,"hex"),s.write_shift(4,68+c.length),l.push(u)}return mn(l)}function U6(e,t){t||(t=fe(e));for(var n=0;n<e;++n)t.write_shift(1,0);return t}function j6(e,t){return e.read_shift(t)===1}function Hn(e,t){return t||(t=fe(2)),t.write_shift(2,+!!e),t}function sx(e){return e.read_shift(2,"u")}function So(e,t){return t||(t=fe(2)),t.write_shift(2,e),t}function ix(e,t,n){return n||(n=fe(2)),n.write_shift(1,t=="e"?+e:+!!e),n.write_shift(1,t=="e"?1:0),n}function lx(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),o="sbcs-cont";if(n&&n.biff>=8,!n||n.biff==8){var a=e.read_shift(1);a&&(o="dbcs-cont")}else n.biff==12&&(o="wstr");n.biff>=2&&n.biff<=5&&(o="cpstr");var s=r?e.read_shift(r,o):"";return s}function G6(e){var t=e.t||"",n=fe(3+0);n.write_shift(2,t.length),n.write_shift(1,1);var r=fe(2*t.length);r.write_shift(2*t.length,t,"utf16le");var o=[n,r];return mn(o)}function z6(e,t,n){var r;if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}var o=e.read_shift(1);return o===0?r=e.read_shift(t,"sbcs-cont"):r=e.read_shift(t,"dbcs-cont"),r}function W6(e,t,n){var r=e.read_shift(n&&n.biff==2?1:2);return r===0?(e.l++,""):z6(e,r,n)}function K6(e,t,n){if(n.biff>5)return W6(e,t,n);var r=e.read_shift(1);return r===0?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function cx(e,t,n){return n||(n=fe(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function ux(e,t){t||(t=fe(6+e.length*2)),t.write_shift(4,1+e.length);for(var n=0;n<e.length;++n)t.write_shift(2,e.charCodeAt(n));return t.write_shift(2,0),t}function Y6(e){var t=fe(512),n=0,r=e.Target;r.slice(0,7)=="file://"&&(r=r.slice(7));var o=r.indexOf("#"),a=o>-1?31:23;switch(r.charAt(0)){case"#":a=28;break;case".":a&=-3;break}t.write_shift(4,2),t.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(n=0;n<s.length;++n)t.write_shift(4,s[n]);if(a==28)r=r.slice(1),ux(r,t);else if(a&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<s.length;++n)t.write_shift(1,parseInt(s[n],16));var l=o>-1?r.slice(0,o):r;for(t.write_shift(4,2*(l.length+1)),n=0;n<l.length;++n)t.write_shift(2,l.charCodeAt(n));t.write_shift(2,0),a&8&&ux(o>-1?r.slice(o+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<s.length;++n)t.write_shift(1,parseInt(s[n],16));for(var c=0;r.slice(c*3,c*3+3)=="../"||r.slice(c*3,c*3+3)=="..\\";)++c;for(t.write_shift(2,c),t.write_shift(4,r.length-3*c+1),n=0;n<r.length-3*c;++n)t.write_shift(1,r.charCodeAt(n+3*c)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),n=0;n<6;++n)t.write_shift(4,0)}return t.slice(0,t.l)}function Xa(e,t,n,r){return r||(r=fe(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function X6(e,t,n){var r=n.biff>8?4:2,o=e.read_shift(r),a=e.read_shift(r,"i"),s=e.read_shift(r,"i");return[o,a,s]}function Q6(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),o=e.read_shift(2);return{s:{c:r,r:t},e:{c:o,r:n}}}function fx(e,t){return t||(t=fe(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Wh(e,t,n){var r=1536,o=16;switch(n.bookType){case"biff8":break;case"biff5":r=1280,o=8;break;case"biff4":r=4,o=6;break;case"biff3":r=3,o=6;break;case"biff2":r=2,o=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=fe(o);return a.write_shift(2,r),a.write_shift(2,t),o>4&&a.write_shift(2,29282),o>6&&a.write_shift(2,1997),o>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function J6(e,t){var n=!t||t.biff==8,r=fe(n?112:54);for(r.write_shift(t.biff==8?2:1,7),n&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(n?0:536870912));r.l<r.length;)r.write_shift(1,n?0:32);return r}function Z6(e,t){var n=!t||t.biff>=8?2:1,r=fe(8+n*e.name.length);r.write_shift(4,e.pos),r.write_shift(1,e.hs||0),r.write_shift(1,e.dt),r.write_shift(1,e.name.length),t.biff>=8&&r.write_shift(1,1),r.write_shift(n*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var o=r.slice(0,r.l);return o.l=r.l,o}function q6(e,t){var n=fe(8);n.write_shift(4,e.Count),n.write_shift(4,e.Unique);for(var r=[],o=0;o<e.length;++o)r[o]=G6(e[o]);var a=mn([n].concat(r));return a.parts=[n.length].concat(r.map(function(s){return s.length})),a}function $6(){var e=fe(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function eR(e){var t=fe(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function tR(e,t){var n=e.name||"Arial",r=t&&t.biff==5,o=r?15+n.length:16+2*n.length,a=fe(o);return a.write_shift(2,(e.sz||12)*20),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,n.length),r||a.write_shift(1,1),a.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le"),a}function nR(e,t,n,r){var o=fe(10);return Xa(e,t,r,o),o.write_shift(4,n),o}function oR(e,t,n,r,o){var a=!o||o.biff==8,s=fe(6+2+ +a+(1+a)*n.length);return Xa(e,t,r,s),s.write_shift(2,n.length),a&&s.write_shift(1,1),s.write_shift((1+a)*n.length,n,a?"utf16le":"sbcs"),s}function rR(e,t,n,r){var o=n&&n.biff==5;r||(r=fe(o?3+t.length:5+2*t.length)),r.write_shift(2,e),r.write_shift(o?1:2,t.length),o||r.write_shift(1,1),r.write_shift((o?1:2)*t.length,t,o?"sbcs":"utf16le");var a=r.length>r.l?r.slice(0,r.l):r;return a.l==null&&(a.l=a.length),a}function aR(e,t){var n=t.biff==8||!t.biff?4:2,r=fe(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}function dx(e,t,n,r){var o=n&&n.biff==5;r||(r=fe(o?16:20)),r.write_shift(2,0),e.style?(r.write_shift(2,e.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,e.numFmtId||0),r.write_shift(2,t<<4));var a=0;return e.numFmtId>0&&o&&(a|=1024),r.write_shift(4,a),r.write_shift(4,0),o||r.write_shift(4,0),r.write_shift(2,0),r}function sR(e){var t=fe(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function iR(e,t,n,r,o,a){var s=fe(8);return Xa(e,t,r,s),ix(n,a,s),s}function lR(e,t,n,r){var o=fe(14);return Xa(e,t,r,o),Ka(n,o),o}function cR(e,t,n){if(n.biff<8)return uR(e,t,n);for(var r=[],o=e.l+t,a=e.read_shift(n.biff>8?4:2);a--!==0;)r.push(X6(e,n.biff>8?12:6,n));if(e.l!=o)throw new Error("Bad ExternSheet: "+e.l+" != "+o);return r}function uR(e,t,n){e[e.l+1]==3&&e[e.l]++;var r=lx(e,t,n);return r.charCodeAt(0)==3?r.slice(1):r}function fR(e){var t=fe(2+e.length*8);t.write_shift(2,e.length);for(var n=0;n<e.length;++n)fx(e[n],t);return t}function dR(e){var t=fe(24),n=fn(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),o=0;o<16;++o)t.write_shift(1,parseInt(r[o],16));return mn([t,Y6(e[1])])}function hR(e){var t=e[1].Tooltip,n=fe(10+2*(t.length+1));n.write_shift(2,2048);var r=fn(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var o=0;o<t.length;++o)n.write_shift(2,t.charCodeAt(o));return n.write_shift(2,0),n}function pR(e){return e||(e=fe(4)),e.write_shift(2,1),e.write_shift(2,1),e}function vR(e,t,n){if(!n.cellStyles)return ar(e,t);var r=n&&n.biff>=12?4:2,o=e.read_shift(r),a=e.read_shift(r),s=e.read_shift(r),l=e.read_shift(r),c=e.read_shift(2);r==2&&(e.l+=2);var u={s:o,e:a,w:s,ixfe:l,flags:c};return(n.biff>=5||!n.biff)&&(u.level=c>>8&7),u}function gR(e,t){var n=fe(12);n.write_shift(2,t),n.write_shift(2,t),n.write_shift(2,e.width*256),n.write_shift(2,0);var r=0;return e.hidden&&(r|=1),n.write_shift(1,r),r=e.level||0,n.write_shift(1,r),n.write_shift(2,0),n}function mR(e){for(var t=fe(2*e),n=0;n<e;++n)t.write_shift(2,n+1);return t}function yR(e,t,n){var r=fe(15);return Sl(r,e,t),r.write_shift(8,n,"f"),r}function xR(e,t,n){var r=fe(9);return Sl(r,e,t),r.write_shift(2,n),r}var ER=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Ph({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(l,c){var u=[],f=Va(1);switch(c.type){case"base64":f=Vo(Ar(l));break;case"binary":f=Vo(l);break;case"buffer":case"array":f=l;break}co(f,0);var d=f.read_shift(1),h=!!(d&136),p=!1,g=!1;switch(d){case 2:break;case 3:break;case 48:p=!0,h=!0;break;case 49:p=!0,h=!0;break;case 131:break;case 139:break;case 140:g=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+d.toString(16))}var v=0,m=521;d==2&&(v=f.read_shift(2)),f.l+=3,d!=2&&(v=f.read_shift(4)),v>1048576&&(v=1e6),d!=2&&(m=f.read_shift(2));var y=f.read_shift(2),E=c.codepage||1252;d!=2&&(f.l+=16,f.read_shift(1),f[f.l]!==0&&(E=e[f[f.l]]),f.l+=1,f.l+=2),g&&(f.l+=36);for(var x=[],C={},A=Math.min(f.length,d==2?521:m-10-(p?264:0)),w=g?32:11;f.l<A&&f[f.l]!=13;)switch(C={},C.name=La.utils.decode(E,f.slice(f.l,f.l+w)).replace(/[\u0000\r\n].*$/g,""),f.l+=w,C.type=String.fromCharCode(f.read_shift(1)),d!=2&&!g&&(C.offset=f.read_shift(4)),C.len=f.read_shift(1),d==2&&(C.offset=f.read_shift(2)),C.dec=f.read_shift(1),C.name.length&&x.push(C),d!=2&&(f.l+=g?13:14),C.type){case"B":(!p||C.len!=8)&&c.WTF&&console.log("Skipping "+C.name+":"+C.type);break;case"G":case"P":c.WTF&&console.log("Skipping "+C.name+":"+C.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+C.type)}if(f[f.l]!==13&&(f.l=m-1),f.read_shift(1)!==13)throw new Error("DBF Terminator not found "+f.l+" "+f[f.l]);f.l=m;var b=0,T=0;for(u[0]=[],T=0;T!=x.length;++T)u[0][T]=x[T].name;for(;v-- >0;){if(f[f.l]===42){f.l+=y;continue}for(++f.l,u[++b]=[],T=0,T=0;T!=x.length;++T){var S=f.slice(f.l,f.l+x[T].len);f.l+=x[T].len,co(S,0);var _=La.utils.decode(E,S);switch(x[T].type){case"C":_.trim().length&&(u[b][T]=_.replace(/\s+$/,""));break;case"D":_.length===8?u[b][T]=new Date(+_.slice(0,4),+_.slice(4,6)-1,+_.slice(6,8)):u[b][T]=_;break;case"F":u[b][T]=parseFloat(_.trim());break;case"+":case"I":u[b][T]=g?S.read_shift(-4,"i")^2147483648:S.read_shift(4,"i");break;case"L":switch(_.trim().toUpperCase()){case"Y":case"T":u[b][T]=!0;break;case"N":case"F":u[b][T]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+_+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+d.toString(16));u[b][T]="##MEMO##"+(g?parseInt(_.trim(),10):S.read_shift(4));break;case"N":_=_.replace(/\u0000/g,"").trim(),_&&_!="."&&(u[b][T]=+_||0);break;case"@":u[b][T]=new Date(S.read_shift(-8,"f")-621356832e5);break;case"T":u[b][T]=new Date((S.read_shift(4)-2440588)*864e5+S.read_shift(4));break;case"Y":u[b][T]=S.read_shift(4,"i")/1e4+S.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":u[b][T]=-S.read_shift(-8,"f");break;case"B":if(p&&x[T].len==8){u[b][T]=S.read_shift(8,"f");break}case"G":case"P":S.l+=x[T].len;break;case"0":if(x[T].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+x[T].type)}}}if(d!=2&&f.l<f.length&&f[f.l++]!=26)throw new Error("DBF EOF Marker missing "+(f.l-1)+" of "+f.length+" "+f[f.l-1].toString(16));return c&&c.sheetRows&&(u=u.slice(0,c.sheetRows)),c.DBF=x,u}function r(l,c){var u=c||{};u.dateNF||(u.dateNF="yyyymmdd");var f=Qs(n(l,u),u);return f["!cols"]=u.DBF.map(function(d){return{wch:d.len,DBF:d}}),delete u.DBF,f}function o(l,c){try{return Ua(r(l,c),c)}catch(u){if(c&&c.WTF)throw u}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function s(l,c){var u=c||{};if(+u.codepage>=0&&ll(+u.codepage),u.type=="string")throw new Error("Cannot write DBF to JS string");var f=$n(),d=Bu(l,{header:1,raw:!0,cellDates:!0}),h=d[0],p=d.slice(1),g=l["!cols"]||[],v=0,m=0,y=0,E=1;for(v=0;v<h.length;++v){if(((g[v]||{}).DBF||{}).name){h[v]=g[v].DBF.name,++y;continue}if(h[v]!=null){if(++y,typeof h[v]=="number"&&(h[v]=h[v].toString(10)),typeof h[v]!="string")throw new Error("DBF Invalid column name "+h[v]+" |"+typeof h[v]+"|");if(h.indexOf(h[v])!==v){for(m=0;m<1024;++m)if(h.indexOf(h[v]+"_"+m)==-1){h[v]+="_"+m;break}}}}var x=Dt(l["!ref"]),C=[],A=[],w=[];for(v=0;v<=x.e.c-x.s.c;++v){var b="",T="",S=0,_=[];for(m=0;m<p.length;++m)p[m][v]!=null&&_.push(p[m][v]);if(_.length==0||h[v]==null){C[v]="?";continue}for(m=0;m<_.length;++m){switch(typeof _[m]){case"number":T="B";break;case"string":T="C";break;case"boolean":T="L";break;case"object":T=_[m]instanceof Date?"D":"C";break;default:T="C"}S=Math.max(S,String(_[m]).length),b=b&&b!=T?"C":T}S>250&&(S=250),T=((g[v]||{}).DBF||{}).type,T=="C"&&g[v].DBF.len>S&&(S=g[v].DBF.len),b=="B"&&T=="N"&&(b="N",w[v]=g[v].DBF.dec,S=g[v].DBF.len),A[v]=b=="C"||T=="N"?S:a[b]||0,E+=A[v],C[v]=b}var I=f.next(32);for(I.write_shift(4,318902576),I.write_shift(4,p.length),I.write_shift(2,296+32*y),I.write_shift(2,E),v=0;v<4;++v)I.write_shift(4,0);for(I.write_shift(4,0|(+t[My]||3)<<8),v=0,m=0;v<h.length;++v)if(h[v]!=null){var H=f.next(32),B=(h[v].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);H.write_shift(1,B,"sbcs"),H.write_shift(1,C[v]=="?"?"C":C[v],"sbcs"),H.write_shift(4,m),H.write_shift(1,A[v]||a[C[v]]||0),H.write_shift(1,w[v]||0),H.write_shift(1,2),H.write_shift(4,0),H.write_shift(1,0),H.write_shift(4,0),H.write_shift(4,0),m+=A[v]||a[C[v]]||0}var j=f.next(264);for(j.write_shift(4,13),v=0;v<65;++v)j.write_shift(4,0);for(v=0;v<p.length;++v){var Z=f.next(E);for(Z.write_shift(1,0),m=0;m<h.length;++m)if(h[m]!=null)switch(C[m]){case"L":Z.write_shift(1,p[v][m]==null?63:p[v][m]?84:70);break;case"B":Z.write_shift(8,p[v][m]||0,"f");break;case"N":var q="0";for(typeof p[v][m]=="number"&&(q=p[v][m].toFixed(w[m]||0)),y=0;y<A[m]-q.length;++y)Z.write_shift(1,32);Z.write_shift(1,q,"sbcs");break;case"D":p[v][m]?(Z.write_shift(4,("0000"+p[v][m].getFullYear()).slice(-4),"sbcs"),Z.write_shift(2,("00"+(p[v][m].getMonth()+1)).slice(-2),"sbcs"),Z.write_shift(2,("00"+p[v][m].getDate()).slice(-2),"sbcs")):Z.write_shift(8,"00000000","sbcs");break;case"C":var K=String(p[v][m]!=null?p[v][m]:"").slice(0,A[m]);for(Z.write_shift(1,K,"sbcs"),y=0;y<A[m]-K.length;++y)Z.write_shift(1,32);break}}return f.next(1).write_shift(1,26),f.end()}return{to_workbook:o,to_sheet:r,from_sheet:s}}(),CR=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+yn(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(h,p){var g=e[p];return typeof g=="number"?Vy(g):g},r=function(h,p,g){var v=p.charCodeAt(0)-32<<4|g.charCodeAt(0)-48;return v==59?h:Vy(v)};e["|"]=254;function o(h,p){switch(p.type){case"base64":return a(Ar(h),p);case"binary":return a(h,p);case"buffer":return a(pt&&Buffer.isBuffer(h)?h.toString("binary"):ul(h),p);case"array":return a(yu(h),p)}throw new Error("Unrecognized type "+p.type)}function a(h,p){var g=h.split(/[\n\r]+/),v=-1,m=-1,y=0,E=0,x=[],C=[],A=null,w={},b=[],T=[],S=[],_=0,I;for(+p.codepage>=0&&ll(+p.codepage);y!==g.length;++y){_=0;var H=g[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),B=H.replace(/;;/g,"\0").split(";").map(function(U){return U.replace(/\u0000/g,";")}),j=B[0],Z;if(H.length>0)switch(j){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":B[1].charAt(0)=="P"&&C.push(H.slice(3).replace(/;;/g,";"));break;case"C":var q=!1,K=!1,oe=!1,ge=!1,Ae=-1,pe=-1;for(E=1;E<B.length;++E)switch(B[E].charAt(0)){case"A":break;case"X":m=parseInt(B[E].slice(1))-1,K=!0;break;case"Y":for(v=parseInt(B[E].slice(1))-1,K||(m=0),I=x.length;I<=v;++I)x[I]=[];break;case"K":Z=B[E].slice(1),Z.charAt(0)==='"'?Z=Z.slice(1,Z.length-1):Z==="TRUE"?Z=!0:Z==="FALSE"?Z=!1:isNaN(kr(Z))?isNaN(hl(Z).getDate())||(Z=Vn(Z)):(Z=kr(Z),A!==null&&n1(A)&&(Z=u1(Z))),q=!0;break;case"E":ge=!0;var P=xM(B[E].slice(1),{r:v,c:m});x[v][m]=[x[v][m],P];break;case"S":oe=!0,x[v][m]=[x[v][m],"S5S"];break;case"G":break;case"R":Ae=parseInt(B[E].slice(1))-1;break;case"C":pe=parseInt(B[E].slice(1))-1;break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+H)}if(q&&(x[v][m]&&x[v][m].length==2?x[v][m][0]=Z:x[v][m]=Z,A=null),oe){if(ge)throw new Error("SYLK shared formula cannot have own formula");var G=Ae>-1&&x[Ae][pe];if(!G||!G[1])throw new Error("SYLK shared formula cannot find base");x[v][m][1]=EM(G[1],{r:v-Ae,c:m-pe})}break;case"F":var z=0;for(E=1;E<B.length;++E)switch(B[E].charAt(0)){case"X":m=parseInt(B[E].slice(1))-1,++z;break;case"Y":for(v=parseInt(B[E].slice(1))-1,I=x.length;I<=v;++I)x[I]=[];break;case"M":_=parseInt(B[E].slice(1))/20;break;case"F":break;case"G":break;case"P":A=C[parseInt(B[E].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(S=B[E].slice(1).split(" "),I=parseInt(S[0],10);I<=parseInt(S[1],10);++I)_=parseInt(S[2],10),T[I-1]=_===0?{hidden:!0}:{wch:_},Yh(T[I-1]);break;case"C":m=parseInt(B[E].slice(1))-1,T[m]||(T[m]={});break;case"R":v=parseInt(B[E].slice(1))-1,b[v]||(b[v]={}),_>0?(b[v].hpt=_,b[v].hpx=xx(_)):_===0&&(b[v].hidden=!0);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+H)}z<1&&(A=null);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+H)}}return b.length>0&&(w["!rows"]=b),T.length>0&&(w["!cols"]=T),p&&p.sheetRows&&(x=x.slice(0,p.sheetRows)),[x,w]}function s(h,p){var g=o(h,p),v=g[0],m=g[1],y=Qs(v,p);return yn(m).forEach(function(E){y[E]=m[E]}),y}function l(h,p){return Ua(s(h,p),p)}function c(h,p,g,v){var m="C;Y"+(g+1)+";X"+(v+1)+";K";switch(h.t){case"n":m+=h.v||0,h.f&&!h.F&&(m+=";E"+Jh(h.f,{r:g,c:v}));break;case"b":m+=h.v?"TRUE":"FALSE";break;case"e":m+=h.w||h.v;break;case"d":m+='"'+(h.w||h.v)+'"';break;case"s":m+='"'+h.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return m}function u(h,p){p.forEach(function(g,v){var m="F;W"+(v+1)+" "+(v+1)+" ";g.hidden?m+="0":(typeof g.width=="number"&&!g.wpx&&(g.wpx=ku(g.width)),typeof g.wpx=="number"&&!g.wch&&(g.wch=Ou(g.wpx)),typeof g.wch=="number"&&(m+=Math.round(g.wch))),m.charAt(m.length-1)!=" "&&h.push(m)})}function f(h,p){p.forEach(function(g,v){var m="F;";g.hidden?m+="M0;":g.hpt?m+="M"+20*g.hpt+";":g.hpx&&(m+="M"+20*Pu(g.hpx)+";"),m.length>2&&h.push(m+"R"+(v+1))})}function d(h,p){var g=["ID;PWXL;N;E"],v=[],m=Dt(h["!ref"]),y,E=Array.isArray(h),x=`\r
73
+ `;g.push("P;PGeneral"),g.push("F;P0;DG0G8;M255"),h["!cols"]&&u(g,h["!cols"]),h["!rows"]&&f(g,h["!rows"]),g.push("B;Y"+(m.e.r-m.s.r+1)+";X"+(m.e.c-m.s.c+1)+";D"+[m.s.c,m.s.r,m.e.c,m.e.r].join(" "));for(var C=m.s.r;C<=m.e.r;++C)for(var A=m.s.c;A<=m.e.c;++A){var w=mt({r:C,c:A});y=E?(h[C]||[])[A]:h[w],!(!y||y.v==null&&(!y.f||y.F))&&v.push(c(y,h,C,A))}return g.join(x)+x+v.join(x)+x+"E"+x}return{to_workbook:l,to_sheet:s,from_sheet:d}}(),wR=function(){function e(a,s){switch(s.type){case"base64":return t(Ar(a),s);case"binary":return t(a,s);case"buffer":return t(pt&&Buffer.isBuffer(a)?a.toString("binary"):ul(a),s);case"array":return t(yu(a),s)}throw new Error("Unrecognized type "+s.type)}function t(a,s){for(var l=a.split(`
74
+ `),c=-1,u=-1,f=0,d=[];f!==l.length;++f){if(l[f].trim()==="BOT"){d[++c]=[],u=0;continue}if(!(c<0)){var h=l[f].trim().split(","),p=h[0],g=h[1];++f;for(var v=l[f]||"";(v.match(/["]/g)||[]).length&1&&f<l.length-1;)v+=`
75
+ `+l[++f];switch(v=v.trim(),+p){case-1:if(v==="BOT"){d[++c]=[],u=0;continue}else if(v!=="EOD")throw new Error("Unrecognized DIF special command "+v);break;case 0:v==="TRUE"?d[c][u]=!0:v==="FALSE"?d[c][u]=!1:isNaN(kr(g))?isNaN(hl(g).getDate())?d[c][u]=g:d[c][u]=Vn(g):d[c][u]=kr(g),++u;break;case 1:v=v.slice(1,v.length-1),v=v.replace(/""/g,'"'),v&&v.match(/^=".*"$/)&&(v=v.slice(2,-1)),d[c][u++]=v!==""?v:null;break}if(v==="EOD")break}}return s&&s.sheetRows&&(d=d.slice(0,s.sheetRows)),d}function n(a,s){return Qs(e(a,s),s)}function r(a,s){return Ua(n(a,s),s)}var o=function(){var a=function(c,u,f,d,h){c.push(u),c.push(f+","+d),c.push('"'+h.replace(/"/g,'""')+'"')},s=function(c,u,f,d){c.push(u+","+f),c.push(u==1?'"'+d.replace(/"/g,'""')+'"':d)};return function(c){var u=[],f=Dt(c["!ref"]),d,h=Array.isArray(c);a(u,"TABLE",0,1,"sheetjs"),a(u,"VECTORS",0,f.e.r-f.s.r+1,""),a(u,"TUPLES",0,f.e.c-f.s.c+1,""),a(u,"DATA",0,0,"");for(var p=f.s.r;p<=f.e.r;++p){s(u,-1,0,"BOT");for(var g=f.s.c;g<=f.e.c;++g){var v=mt({r:p,c:g});if(d=h?(c[p]||[])[g]:c[v],!d){s(u,1,0,"");continue}switch(d.t){case"n":var m=d.w;!m&&d.v!=null&&(m=d.v),m==null?d.f&&!d.F?s(u,1,0,"="+d.f):s(u,1,0,""):s(u,0,m,"V");break;case"b":s(u,0,d.v?1:0,d.v?"TRUE":"FALSE");break;case"s":s(u,1,0,isNaN(d.v)?d.v:'="'+d.v+'"');break;case"d":d.w||(d.w=ea(d.z||Gt[14],Zn(Vn(d.v)))),s(u,0,d.w,"V");break;default:s(u,1,0,"")}}}s(u,-1,0,"EOD");var y=`\r
76
+ `,E=u.join(y);return E}}();return{to_workbook:r,to_sheet:n,from_sheet:o}}(),hx=function(){function e(d){return d.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
77
+ `)}function t(d){return d.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(d,h){for(var p=d.split(`
78
+ `),g=-1,v=-1,m=0,y=[];m!==p.length;++m){var E=p[m].trim().split(":");if(E[0]==="cell"){var x=fn(E[1]);if(y.length<=x.r)for(g=y.length;g<=x.r;++g)y[g]||(y[g]=[]);switch(g=x.r,v=x.c,E[2]){case"t":y[g][v]=e(E[3]);break;case"v":y[g][v]=+E[3];break;case"vtf":var C=E[E.length-1];case"vtc":switch(E[3]){case"nl":y[g][v]=!!+E[4];break;default:y[g][v]=+E[4];break}E[2]=="vtf"&&(y[g][v]=[y[g][v],C])}}}return h&&h.sheetRows&&(y=y.slice(0,h.sheetRows)),y}function r(d,h){return Qs(n(d,h),h)}function o(d,h){return Ua(r(d,h),h)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
79
+ `),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
80
+ `)+`
81
+ `,l=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
82
+ `),c="--SocialCalcSpreadsheetControlSave--";function u(d){if(!d||!d["!ref"])return"";for(var h=[],p=[],g,v="",m=uo(d["!ref"]),y=Array.isArray(d),E=m.s.r;E<=m.e.r;++E)for(var x=m.s.c;x<=m.e.c;++x)if(v=mt({r:E,c:x}),g=y?(d[E]||[])[x]:d[v],!(!g||g.v==null||g.t==="z")){switch(p=["cell",v,"t"],g.t){case"s":case"str":p.push(t(g.v));break;case"n":g.f?(p[2]="vtf",p[3]="n",p[4]=g.v,p[5]=t(g.f)):(p[2]="v",p[3]=g.v);break;case"b":p[2]="vt"+(g.f?"f":"c"),p[3]="nl",p[4]=g.v?"1":"0",p[5]=t(g.f||(g.v?"TRUE":"FALSE"));break;case"d":var C=Zn(Vn(g.v));p[2]="vtc",p[3]="nd",p[4]=""+C,p[5]=g.w||ea(g.z||Gt[14],C);break;case"e":continue}h.push(p.join(":"))}return h.push("sheet:c:"+(m.e.c-m.s.c+1)+":r:"+(m.e.r-m.s.r+1)+":tvf:1"),h.push("valueformat:1:text-wiki"),h.join(`
83
+ `)}function f(d){return[a,s,l,s,u(d),c].join(`
84
+ `)}return{to_workbook:o,to_sheet:r,from_sheet:f}}(),bR=function(){function e(f,d,h,p,g){g.raw?d[h][p]=f:f===""||(f==="TRUE"?d[h][p]=!0:f==="FALSE"?d[h][p]=!1:isNaN(kr(f))?isNaN(hl(f).getDate())?d[h][p]=f:d[h][p]=Vn(f):d[h][p]=kr(f))}function t(f,d){var h=d||{},p=[];if(!f||f.length===0)return p;for(var g=f.split(/[\r\n]/),v=g.length-1;v>=0&&g[v].length===0;)--v;for(var m=10,y=0,E=0;E<=v;++E)y=g[E].indexOf(" "),y==-1?y=g[E].length:y++,m=Math.max(m,y);for(E=0;E<=v;++E){p[E]=[];var x=0;for(e(g[E].slice(0,m).trim(),p,E,x,h),x=1;x<=(g[E].length-m)/10+1;++x)e(g[E].slice(m+(x-1)*10,m+x*10).trim(),p,E,x,h)}return h.sheetRows&&(p=p.slice(0,h.sheetRows)),p}var n={44:",",9:" ",59:";",124:"|"},r={44:3,9:2,59:1,124:0};function o(f){for(var d={},h=!1,p=0,g=0;p<f.length;++p)(g=f.charCodeAt(p))==34?h=!h:!h&&g in n&&(d[g]=(d[g]||0)+1);g=[];for(p in d)Object.prototype.hasOwnProperty.call(d,p)&&g.push([d[p],p]);if(!g.length){d=r;for(p in d)Object.prototype.hasOwnProperty.call(d,p)&&g.push([d[p],p])}return g.sort(function(v,m){return v[0]-m[0]||r[v[1]]-r[m[1]]}),n[g.pop()[1]]||44}function a(f,d){var h=d||{},p="",g=h.dense?[]:{},v={s:{c:0,r:0},e:{c:0,r:0}};f.slice(0,4)=="sep="?f.charCodeAt(5)==13&&f.charCodeAt(6)==10?(p=f.charAt(4),f=f.slice(7)):f.charCodeAt(5)==13||f.charCodeAt(5)==10?(p=f.charAt(4),f=f.slice(6)):p=o(f.slice(0,1024)):h&&h.FS?p=h.FS:p=o(f.slice(0,1024));var m=0,y=0,E=0,x=0,C=0,A=p.charCodeAt(0),w=!1,b=0,T=f.charCodeAt(0);f=f.replace(/\r\n/mg,`
85
+ `);var S=h.dateNF!=null?V8(h.dateNF):null;function _(){var I=f.slice(x,C),H={};if(I.charAt(0)=='"'&&I.charAt(I.length-1)=='"'&&(I=I.slice(1,-1).replace(/""/g,'"')),I.length===0)H.t="z";else if(h.raw)H.t="s",H.v=I;else if(I.trim().length===0)H.t="s",H.v=I;else if(I.charCodeAt(0)==61)I.charCodeAt(1)==34&&I.charCodeAt(I.length-1)==34?(H.t="s",H.v=I.slice(2,-1).replace(/""/g,'"')):CM(I)?(H.t="n",H.f=I.slice(1)):(H.t="s",H.v=I);else if(I=="TRUE")H.t="b",H.v=!0;else if(I=="FALSE")H.t="b",H.v=!1;else if(!isNaN(E=kr(I)))H.t="n",h.cellText!==!1&&(H.w=I),H.v=E;else if(!isNaN(hl(I).getDate())||S&&I.match(S)){H.z=h.dateNF||Gt[14];var B=0;S&&I.match(S)&&(I=H8(I,h.dateNF,I.match(S)||[]),B=1),h.cellDates?(H.t="d",H.v=Vn(I,B)):(H.t="n",H.v=Zn(Vn(I,B))),h.cellText!==!1&&(H.w=ea(H.z,H.v instanceof Date?Zn(H.v):H.v)),h.cellNF||delete H.z}else H.t="s",H.v=I;if(H.t=="z"||(h.dense?(g[m]||(g[m]=[]),g[m][y]=H):g[mt({c:y,r:m})]=H),x=C+1,T=f.charCodeAt(x),v.e.c<y&&(v.e.c=y),v.e.r<m&&(v.e.r=m),b==A)++y;else if(y=0,++m,h.sheetRows&&h.sheetRows<=m)return!0}e:for(;C<f.length;++C)switch(b=f.charCodeAt(C)){case 34:T===34&&(w=!w);break;case A:case 10:case 13:if(!w&&_())break e;break}return C-x>0&&_(),g["!ref"]=en(v),g}function s(f,d){return!(d&&d.PRN)||d.FS||f.slice(0,4)=="sep="||f.indexOf(" ")>=0||f.indexOf(",")>=0||f.indexOf(";")>=0?a(f,d):Qs(t(f,d),d)}function l(f,d){var h="",p=d.type=="string"?[0,0,0,0]:B7(f,d);switch(d.type){case"base64":h=Ar(f);break;case"binary":h=f;break;case"buffer":d.codepage==65001?h=f.toString("utf8"):d.codepage&&typeof La<"u"?h=La.utils.decode(d.codepage,f):h=pt&&Buffer.isBuffer(f)?f.toString("binary"):ul(f);break;case"array":h=yu(f);break;case"string":h=f;break;default:throw new Error("Unrecognized type "+d.type)}return p[0]==239&&p[1]==187&&p[2]==191?h=pl(h.slice(3)):d.type!="string"&&d.type!="buffer"&&d.codepage==65001?h=pl(h):d.type=="binary"&&typeof La<"u"&&d.codepage&&(h=La.utils.decode(d.codepage,La.utils.encode(28591,h))),h.slice(0,19)=="socialcalc:version:"?hx.to_sheet(d.type=="string"?h:pl(h),d):s(h,d)}function c(f,d){return Ua(l(f,d),d)}function u(f){for(var d=[],h=Dt(f["!ref"]),p,g=Array.isArray(f),v=h.s.r;v<=h.e.r;++v){for(var m=[],y=h.s.c;y<=h.e.c;++y){var E=mt({r:v,c:y});if(p=g?(f[v]||[])[y]:f[E],!p||p.v==null){m.push(" ");continue}for(var x=(p.w||(Pr(p),p.w)||"").slice(0,10);x.length<10;)x+=" ";m.push(x+(y===0?" ":""))}d.push(m.join(""))}return d.join(`
86
+ `)}return{to_workbook:c,to_sheet:l,from_sheet:u}}(),px=function(){function e(P,G,z){if(P){co(P,P.l||0);for(var U=z.Enum||Ae;P.l<P.length;){var J=P.read_shift(2),ne=U[J]||U[65535],ce=P.read_shift(2),Q=P.l+ce,X=ne.f&&ne.f(P,ce,z);if(P.l=Q,G(X,ne,J))return}}}function t(P,G){switch(G.type){case"base64":return n(Vo(Ar(P)),G);case"binary":return n(Vo(P),G);case"buffer":case"array":return n(P,G)}throw"Unsupported type "+G.type}function n(P,G){if(!P)return P;var z=G||{},U=z.dense?[]:{},J="Sheet1",ne="",ce=0,Q={},X=[],de=[],me={s:{r:0,c:0},e:{r:0,c:0}},Ne=z.sheetRows||0;if(P[2]==0&&(P[3]==8||P[3]==9)&&P.length>=16&&P[14]==5&&P[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(P[2]==2)z.Enum=Ae,e(P,function(Ce,ct,Ct){switch(Ct){case 0:z.vers=Ce,Ce>=4096&&(z.qpro=!0);break;case 6:me=Ce;break;case 204:Ce&&(ne=Ce);break;case 222:ne=Ce;break;case 15:case 51:z.qpro||(Ce[1].v=Ce[1].v.slice(1));case 13:case 14:case 16:Ct==14&&(Ce[2]&112)==112&&(Ce[2]&15)>1&&(Ce[2]&15)<15&&(Ce[1].z=z.dateNF||Gt[14],z.cellDates&&(Ce[1].t="d",Ce[1].v=u1(Ce[1].v))),z.qpro&&Ce[3]>ce&&(U["!ref"]=en(me),Q[J]=U,X.push(J),U=z.dense?[]:{},me={s:{r:0,c:0},e:{r:0,c:0}},ce=Ce[3],J=ne||"Sheet"+(ce+1),ne="");var ue=z.dense?(U[Ce[0].r]||[])[Ce[0].c]:U[mt(Ce[0])];if(ue){ue.t=Ce[1].t,ue.v=Ce[1].v,Ce[1].z!=null&&(ue.z=Ce[1].z),Ce[1].f!=null&&(ue.f=Ce[1].f);break}z.dense?(U[Ce[0].r]||(U[Ce[0].r]=[]),U[Ce[0].r][Ce[0].c]=Ce[1]):U[mt(Ce[0])]=Ce[1];break}},z);else if(P[2]==26||P[2]==14)z.Enum=pe,P[2]==14&&(z.qpro=!0,P.l=0),e(P,function(Ce,ct,Ct){switch(Ct){case 204:J=Ce;break;case 22:Ce[1].v=Ce[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Ce[3]>ce&&(U["!ref"]=en(me),Q[J]=U,X.push(J),U=z.dense?[]:{},me={s:{r:0,c:0},e:{r:0,c:0}},ce=Ce[3],J="Sheet"+(ce+1)),Ne>0&&Ce[0].r>=Ne)break;z.dense?(U[Ce[0].r]||(U[Ce[0].r]=[]),U[Ce[0].r][Ce[0].c]=Ce[1]):U[mt(Ce[0])]=Ce[1],me.e.c<Ce[0].c&&(me.e.c=Ce[0].c),me.e.r<Ce[0].r&&(me.e.r=Ce[0].r);break;case 27:Ce[14e3]&&(de[Ce[14e3][0]]=Ce[14e3][1]);break;case 1537:de[Ce[0]]=Ce[1],Ce[0]==ce&&(J=Ce[1]);break}},z);else throw new Error("Unrecognized LOTUS BOF "+P[2]);if(U["!ref"]=en(me),Q[ne||J]=U,X.push(ne||J),!de.length)return{SheetNames:X,Sheets:Q};for(var Fe={},lt=[],We=0;We<de.length;++We)Q[X[We]]?(lt.push(de[We]||X[We]),Fe[de[We]]=Q[de[We]]||Q[X[We]]):(lt.push(de[We]),Fe[de[We]]={"!ref":"A1"});return{SheetNames:lt,Sheets:Fe}}function r(P,G){var z=G||{};if(+z.codepage>=0&&ll(+z.codepage),z.type=="string")throw new Error("Cannot write WK1 to JS string");var U=$n(),J=Dt(P["!ref"]),ne=Array.isArray(P),ce=[];Te(U,0,a(1030)),Te(U,6,c(J));for(var Q=Math.min(J.e.r,8191),X=J.s.r;X<=Q;++X)for(var de=En(X),me=J.s.c;me<=J.e.c;++me){X===J.s.r&&(ce[me]=On(me));var Ne=ce[me]+de,Fe=ne?(P[X]||[])[me]:P[Ne];if(!(!Fe||Fe.t=="z"))if(Fe.t=="n")(Fe.v|0)==Fe.v&&Fe.v>=-32768&&Fe.v<=32767?Te(U,13,p(X,me,Fe.v)):Te(U,14,v(X,me,Fe.v));else{var lt=Pr(Fe);Te(U,15,d(X,me,lt.slice(0,239)))}}return Te(U,1),U.end()}function o(P,G){var z=G||{};if(+z.codepage>=0&&ll(+z.codepage),z.type=="string")throw new Error("Cannot write WK3 to JS string");var U=$n();Te(U,0,s(P));for(var J=0,ne=0;J<P.SheetNames.length;++J)(P.Sheets[P.SheetNames[J]]||{})["!ref"]&&Te(U,27,ge(P.SheetNames[J],ne++));var ce=0;for(J=0;J<P.SheetNames.length;++J){var Q=P.Sheets[P.SheetNames[J]];if(!(!Q||!Q["!ref"])){for(var X=Dt(Q["!ref"]),de=Array.isArray(Q),me=[],Ne=Math.min(X.e.r,8191),Fe=X.s.r;Fe<=Ne;++Fe)for(var lt=En(Fe),We=X.s.c;We<=X.e.c;++We){Fe===X.s.r&&(me[We]=On(We));var Ce=me[We]+lt,ct=de?(Q[Fe]||[])[We]:Q[Ce];if(!(!ct||ct.t=="z"))if(ct.t=="n")Te(U,23,_(Fe,We,ce,ct.v));else{var Ct=Pr(ct);Te(U,22,b(Fe,We,ce,Ct.slice(0,239)))}}++ce}}return Te(U,1),U.end()}function a(P){var G=fe(2);return G.write_shift(2,P),G}function s(P){var G=fe(26);G.write_shift(2,4096),G.write_shift(2,4),G.write_shift(4,0);for(var z=0,U=0,J=0,ne=0;ne<P.SheetNames.length;++ne){var ce=P.SheetNames[ne],Q=P.Sheets[ce];if(!(!Q||!Q["!ref"])){++J;var X=uo(Q["!ref"]);z<X.e.r&&(z=X.e.r),U<X.e.c&&(U=X.e.c)}}return z>8191&&(z=8191),G.write_shift(2,z),G.write_shift(1,J),G.write_shift(1,U),G.write_shift(2,0),G.write_shift(2,0),G.write_shift(1,1),G.write_shift(1,2),G.write_shift(4,0),G.write_shift(4,0),G}function l(P,G,z){var U={s:{c:0,r:0},e:{c:0,r:0}};return G==8&&z.qpro?(U.s.c=P.read_shift(1),P.l++,U.s.r=P.read_shift(2),U.e.c=P.read_shift(1),P.l++,U.e.r=P.read_shift(2),U):(U.s.c=P.read_shift(2),U.s.r=P.read_shift(2),G==12&&z.qpro&&(P.l+=2),U.e.c=P.read_shift(2),U.e.r=P.read_shift(2),G==12&&z.qpro&&(P.l+=2),U.s.c==65535&&(U.s.c=U.e.c=U.s.r=U.e.r=0),U)}function c(P){var G=fe(8);return G.write_shift(2,P.s.c),G.write_shift(2,P.s.r),G.write_shift(2,P.e.c),G.write_shift(2,P.e.r),G}function u(P,G,z){var U=[{c:0,r:0},{t:"n",v:0},0,0];return z.qpro&&z.vers!=20768?(U[0].c=P.read_shift(1),U[3]=P.read_shift(1),U[0].r=P.read_shift(2),P.l+=2):(U[2]=P.read_shift(1),U[0].c=P.read_shift(2),U[0].r=P.read_shift(2)),U}function f(P,G,z){var U=P.l+G,J=u(P,G,z);if(J[1].t="s",z.vers==20768){P.l++;var ne=P.read_shift(1);return J[1].v=P.read_shift(ne,"utf8"),J}return z.qpro&&P.l++,J[1].v=P.read_shift(U-P.l,"cstr"),J}function d(P,G,z){var U=fe(7+z.length);U.write_shift(1,255),U.write_shift(2,G),U.write_shift(2,P),U.write_shift(1,39);for(var J=0;J<U.length;++J){var ne=z.charCodeAt(J);U.write_shift(1,ne>=128?95:ne)}return U.write_shift(1,0),U}function h(P,G,z){var U=u(P,G,z);return U[1].v=P.read_shift(2,"i"),U}function p(P,G,z){var U=fe(7);return U.write_shift(1,255),U.write_shift(2,G),U.write_shift(2,P),U.write_shift(2,z,"i"),U}function g(P,G,z){var U=u(P,G,z);return U[1].v=P.read_shift(8,"f"),U}function v(P,G,z){var U=fe(13);return U.write_shift(1,255),U.write_shift(2,G),U.write_shift(2,P),U.write_shift(8,z,"f"),U}function m(P,G,z){var U=P.l+G,J=u(P,G,z);if(J[1].v=P.read_shift(8,"f"),z.qpro)P.l=U;else{var ne=P.read_shift(2);C(P.slice(P.l,P.l+ne),J),P.l+=ne}return J}function y(P,G,z){var U=G&32768;return G&=-32769,G=(U?P:0)+(G>=8192?G-16384:G),(U?"":"$")+(z?On(G):En(G))}var E={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},x=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function C(P,G){co(P,0);for(var z=[],U=0,J="",ne="",ce="",Q="";P.l<P.length;){var X=P[P.l++];switch(X){case 0:z.push(P.read_shift(8,"f"));break;case 1:ne=y(G[0].c,P.read_shift(2),!0),J=y(G[0].r,P.read_shift(2),!1),z.push(ne+J);break;case 2:{var de=y(G[0].c,P.read_shift(2),!0),me=y(G[0].r,P.read_shift(2),!1);ne=y(G[0].c,P.read_shift(2),!0),J=y(G[0].r,P.read_shift(2),!1),z.push(de+me+":"+ne+J)}break;case 3:if(P.l<P.length){console.error("WK1 premature formula end");return}break;case 4:z.push("("+z.pop()+")");break;case 5:z.push(P.read_shift(2));break;case 6:{for(var Ne="";X=P[P.l++];)Ne+=String.fromCharCode(X);z.push('"'+Ne.replace(/"/g,'""')+'"')}break;case 8:z.push("-"+z.pop());break;case 23:z.push("+"+z.pop());break;case 22:z.push("NOT("+z.pop()+")");break;case 20:case 21:Q=z.pop(),ce=z.pop(),z.push(["AND","OR"][X-20]+"("+ce+","+Q+")");break;default:if(X<32&&x[X])Q=z.pop(),ce=z.pop(),z.push(ce+x[X]+Q);else if(E[X]){if(U=E[X][1],U==69&&(U=P[P.l++]),U>z.length){console.error("WK1 bad formula parse 0x"+X.toString(16)+":|"+z.join("|")+"|");return}var Fe=z.slice(-U);z.length-=U,z.push(E[X][0]+"("+Fe.join(",")+")")}else return X<=7?console.error("WK1 invalid opcode "+X.toString(16)):X<=24?console.error("WK1 unsupported op "+X.toString(16)):X<=30?console.error("WK1 invalid opcode "+X.toString(16)):X<=115?console.error("WK1 unsupported function opcode "+X.toString(16)):console.error("WK1 unrecognized opcode "+X.toString(16))}}z.length==1?G[1].f=""+z[0]:console.error("WK1 bad formula parse |"+z.join("|")+"|")}function A(P){var G=[{c:0,r:0},{t:"n",v:0},0];return G[0].r=P.read_shift(2),G[3]=P[P.l++],G[0].c=P[P.l++],G}function w(P,G){var z=A(P);return z[1].t="s",z[1].v=P.read_shift(G-4,"cstr"),z}function b(P,G,z,U){var J=fe(6+U.length);J.write_shift(2,P),J.write_shift(1,z),J.write_shift(1,G),J.write_shift(1,39);for(var ne=0;ne<U.length;++ne){var ce=U.charCodeAt(ne);J.write_shift(1,ce>=128?95:ce)}return J.write_shift(1,0),J}function T(P,G){var z=A(P);z[1].v=P.read_shift(2);var U=z[1].v>>1;if(z[1].v&1)switch(U&7){case 0:U=(U>>3)*5e3;break;case 1:U=(U>>3)*500;break;case 2:U=(U>>3)/20;break;case 3:U=(U>>3)/200;break;case 4:U=(U>>3)/2e3;break;case 5:U=(U>>3)/2e4;break;case 6:U=(U>>3)/16;break;case 7:U=(U>>3)/64;break}return z[1].v=U,z}function S(P,G){var z=A(P),U=P.read_shift(4),J=P.read_shift(4),ne=P.read_shift(2);if(ne==65535)return U===0&&J===3221225472?(z[1].t="e",z[1].v=15):U===0&&J===3489660928?(z[1].t="e",z[1].v=42):z[1].v=0,z;var ce=ne&32768;return ne=(ne&32767)-16446,z[1].v=(1-ce*2)*(J*Math.pow(2,ne+32)+U*Math.pow(2,ne)),z}function _(P,G,z,U){var J=fe(14);if(J.write_shift(2,P),J.write_shift(1,z),J.write_shift(1,G),U==0)return J.write_shift(4,0),J.write_shift(4,0),J.write_shift(2,65535),J;var ne=0,ce=0,Q=0,X=0;return U<0&&(ne=1,U=-U),ce=Math.log2(U)|0,U/=Math.pow(2,ce-31),X=U>>>0,X&2147483648||(U/=2,++ce,X=U>>>0),U-=X,X|=2147483648,X>>>=0,U*=Math.pow(2,32),Q=U>>>0,J.write_shift(4,Q),J.write_shift(4,X),ce+=16383+(ne?32768:0),J.write_shift(2,ce),J}function I(P,G){var z=S(P);return P.l+=G-14,z}function H(P,G){var z=A(P),U=P.read_shift(4);return z[1].v=U>>6,z}function B(P,G){var z=A(P),U=P.read_shift(8,"f");return z[1].v=U,z}function j(P,G){var z=B(P);return P.l+=G-10,z}function Z(P,G){return P[P.l+G-1]==0?P.read_shift(G,"cstr"):""}function q(P,G){var z=P[P.l++];z>G-1&&(z=G-1);for(var U="";U.length<z;)U+=String.fromCharCode(P[P.l++]);return U}function K(P,G,z){if(!(!z.qpro||G<21)){var U=P.read_shift(1);P.l+=17,P.l+=1,P.l+=2;var J=P.read_shift(G-21,"cstr");return[U,J]}}function oe(P,G){for(var z={},U=P.l+G;P.l<U;){var J=P.read_shift(2);if(J==14e3){for(z[J]=[0,""],z[J][0]=P.read_shift(2);P[P.l];)z[J][1]+=String.fromCharCode(P[P.l]),P.l++;P.l++}}return z}function ge(P,G){var z=fe(5+P.length);z.write_shift(2,14e3),z.write_shift(2,G);for(var U=0;U<P.length;++U){var J=P.charCodeAt(U);z[z.l++]=J>127?95:J}return z[z.l++]=0,z}var Ae={0:{n:"BOF",f:sx},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:l},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:h},14:{n:"NUMBER",f:g},15:{n:"LABEL",f},16:{n:"FORMULA",f:m},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:Z},222:{n:"SHEETNAMELP",f:q},65535:{n:""}},pe={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:w},23:{n:"NUMBER17",f:S},24:{n:"NUMBER18",f:T},25:{n:"FORMULA19",f:I},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:oe},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:H},38:{n:"??"},39:{n:"NUMBER27",f:B},40:{n:"FORMULA28",f:j},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:Z},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:K},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:r,book_to_wk3:o,to_workbook:t}}(),AR=/^\s|\s$|[\t\n\r]/;function vx(e,t){if(!t.bookSST)return"";var n=[$t];n[n.length]=Se("sst",null,{xmlns:Ys[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(e[r]!=null){var o=e[r],a="<si>";o.r?a+=o.r:(a+="<t",o.t||(o.t=""),o.t.match(AR)&&(a+=' xml:space="preserve"'),a+=">"+gt(o.t)+"</t>"),a+="</si>",n[n.length]=a}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}function SR(e){return[e.read_shift(4),e.read_shift(4)]}function TR(e,t){return t||(t=fe(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var kR=m6;function OR(e){var t=$n();ye(t,159,TR(e));for(var n=0;n<e.length;++n)ye(t,19,kR(e[n]));return ye(t,160),t.end()}function PR(e){for(var t=[],n=e.split(""),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}function gx(e){var t=0,n,r=PR(e),o=r.length+1,a,s,l,c,u;for(n=Va(o),n[0]=r.length,a=1;a!=o;++a)n[a]=r[a-1];for(a=o-1;a>=0;--a)s=n[a],l=t&16384?1:0,c=t<<1&32767,u=l|c,t=u^s;return t^52811}var _R=function(){function e(o,a){switch(a.type){case"base64":return t(Ar(o),a);case"binary":return t(o,a);case"buffer":return t(pt&&Buffer.isBuffer(o)?o.toString("binary"):ul(o),a);case"array":return t(yu(o),a)}throw new Error("Unrecognized type "+a.type)}function t(o,a){var s=a||{},l=s.dense?[]:{},c=o.match(/\\trowd.*?\\row\b/g);if(!c.length)throw new Error("RTF missing table");var u={s:{c:0,r:0},e:{c:0,r:c.length-1}};return c.forEach(function(f,d){Array.isArray(l)&&(l[d]=[]);for(var h=/\\\w+\b/g,p=0,g,v=-1;g=h.exec(f);){switch(g[0]){case"\\cell":var m=f.slice(p,h.lastIndex-g[0].length);if(m[0]==" "&&(m=m.slice(1)),++v,m.length){var y={v:m,t:"s"};Array.isArray(l)?l[d][v]=y:l[mt({r:d,c:v})]=y}break}p=h.lastIndex}v>u.e.c&&(u.e.c=v)}),l["!ref"]=en(u),l}function n(o,a){return Ua(e(o,a),a)}function r(o){for(var a=["{\\rtf1\\ansi"],s=Dt(o["!ref"]),l,c=Array.isArray(o),u=s.s.r;u<=s.e.r;++u){a.push("\\trowd\\trautofit1");for(var f=s.s.c;f<=s.e.c;++f)a.push("\\cellx"+(f+1));for(a.push("\\pard\\intbl"),f=s.s.c;f<=s.e.c;++f){var d=mt({r:u,c:f});l=c?(o[u]||[])[f]:o[d],!(!l||l.v==null&&(!l.f||l.F))&&(a.push(" "+(l.w||(Pr(l),l.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:n,to_sheet:e,from_sheet:r}}();function mx(e){for(var t=0,n=1;t!=3;++t)n=n*256+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}var DR=6,_r=DR;function ku(e){return Math.floor((e+Math.round(128/_r)/256)*_r)}function Ou(e){return Math.floor((e-5)/_r*100+.5)/100}function Kh(e){return Math.round((e*_r+5)/_r*256)/256}function Yh(e){e.width?(e.wpx=ku(e.width),e.wch=Ou(e.wpx),e.MDW=_r):e.wpx?(e.wch=Ou(e.wpx),e.width=Kh(e.wch),e.MDW=_r):typeof e.wch=="number"&&(e.width=Kh(e.wch),e.wpx=ku(e.width),e.MDW=_r),e.customWidth&&delete e.customWidth}var IR=96,yx=IR;function Pu(e){return e*96/yx}function xx(e){return e*yx/96}function FR(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)e[r]!=null&&(t[t.length]=Se("numFmt",null,{numFmtId:r,formatCode:gt(e[r])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=Se("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function NR(e){var t=[];return t[t.length]=Se("cellXfs",null),e.forEach(function(n){t[t.length]=Se("xf",null,n)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=Se("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function Ex(e,t){var n=[$t,Se("styleSheet",null,{xmlns:Ys[0],"xmlns:vt":un.vt})],r;return e.SSF&&(r=FR(e.SSF))!=null&&(n[n.length]=r),n[n.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',n[n.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',n[n.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',n[n.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(r=NR(t.cellXfs))&&(n[n.length]=r),n[n.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',n[n.length]='<dxfs count="0"/>',n[n.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',n.length>2&&(n[n.length]="</styleSheet>",n[1]=n[1].replace("/>",">")),n.join("")}function BR(e,t){var n=e.read_shift(2),r=Pn(e);return[n,r]}function RR(e,t,n){n||(n=fe(6+4*t.length)),n.write_shift(2,e),dn(t,n);var r=n.length>n.l?n.slice(0,n.l):n;return n.l==null&&(n.l=n.length),r}function MR(e,t,n){var r={};r.sz=e.read_shift(2)/20;var o=A6(e);o.fItalic&&(r.italic=1),o.fCondense&&(r.condense=1),o.fExtend&&(r.extend=1),o.fShadow&&(r.shadow=1),o.fOutline&&(r.outline=1),o.fStrikeout&&(r.strike=1);var a=e.read_shift(2);switch(a===700&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(r.underline=s);var l=e.read_shift(1);l>0&&(r.family=l);var c=e.read_shift(1);switch(c>0&&(r.charset=c),e.l++,r.color=b6(e),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=Pn(e),r}function LR(e,t){t||(t=fe(25+4*32)),t.write_shift(2,e.sz*20),S6(e,t),t.write_shift(2,e.bold?700:400);var n=0;e.vertAlign=="superscript"?n=1:e.vertAlign=="subscript"&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),wu(e.color,t);var r=0;return e.scheme=="major"&&(r=1),e.scheme=="minor"&&(r=2),t.write_shift(1,r),dn(e.name,t),t.length>t.l?t.slice(0,t.l):t}var VR=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Xh,HR=ar;function Cx(e,t){t||(t=fe(4*3+8*7+16*1)),Xh||(Xh=Ph(VR));var n=Xh[e.patternType];n==null&&(n=40),t.write_shift(4,n);var r=0;if(n!=40)for(wu({auto:1},t),wu({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function UR(e,t){var n=e.l+t,r=e.read_shift(2),o=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:o}}function wx(e,t,n){n||(n=fe(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);var r=0;return n.write_shift(1,r),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function wl(e,t){return t||(t=fe(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var jR=ar;function GR(e,t){return t||(t=fe(51)),t.write_shift(1,0),wl(null,t),wl(null,t),wl(null,t),wl(null,t),wl(null,t),t.length>t.l?t.slice(0,t.l):t}function zR(e,t){return t||(t=fe(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),Cu(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function WR(e,t,n){var r=fe(2052);return r.write_shift(4,e),Cu(t,r),Cu(n,r),r.length>r.l?r.slice(0,r.l):r}function KR(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var o=r[0];o<=r[1];++o)t[o]!=null&&++n}),n!=0&&(ye(e,615,Uo(n)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var o=r[0];o<=r[1];++o)t[o]!=null&&ye(e,44,RR(o,t[o]))}),ye(e,616))}}function YR(e){var t=1;ye(e,611,Uo(t)),ye(e,43,LR({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),ye(e,612)}function XR(e){var t=2;ye(e,603,Uo(t)),ye(e,45,Cx({patternType:"none"})),ye(e,45,Cx({patternType:"gray125"})),ye(e,604)}function QR(e){var t=1;ye(e,613,Uo(t)),ye(e,46,GR()),ye(e,614)}function JR(e){var t=1;ye(e,626,Uo(t)),ye(e,47,wx({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ye(e,627)}function ZR(e,t){ye(e,617,Uo(t.length)),t.forEach(function(n){ye(e,47,wx(n,0))}),ye(e,618)}function qR(e){var t=1;ye(e,619,Uo(t)),ye(e,48,zR({xfId:0,builtinId:0,name:"Normal"})),ye(e,620)}function $R(e){var t=0;ye(e,505,Uo(t)),ye(e,506)}function eM(e){var t=0;ye(e,508,WR(t,"TableStyleMedium9","PivotStyleMedium4")),ye(e,509)}function tM(e,t){var n=$n();return ye(n,278),KR(n,e.SSF),YR(n),XR(n),QR(n),JR(n),ZR(n,t.cellXfs),qR(n),$R(n),eM(n),ye(n,279),n.end()}function bx(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var n=[$t];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function nM(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Pn(e)}}function oM(e){var t=fe(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),dn(e.name,t),t.slice(0,t.l)}function rM(e){for(var t=[],n=e.read_shift(4);n-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function aM(e){var t=fe(4+8*e.length);t.write_shift(4,e.length);for(var n=0;n<e.length;++n)t.write_shift(4,e[n][0]),t.write_shift(4,e[n][1]);return t}function sM(e,t){var n=fe(8+2*t.length);return n.write_shift(4,e),dn(t,n),n.slice(0,n.l)}function iM(e){return e.l+=4,e.read_shift(4)!=0}function lM(e,t){var n=fe(8);return n.write_shift(4,e),n.write_shift(4,t?1:0),n}function cM(){var e=$n();return ye(e,332),ye(e,334,Uo(1)),ye(e,335,oM({name:"XLDAPR",version:12e4,flags:3496657072})),ye(e,336),ye(e,339,sM(1,"XLDAPR")),ye(e,52),ye(e,35,Uo(514)),ye(e,4096,Uo(0)),ye(e,4097,So(1)),ye(e,36),ye(e,53),ye(e,340),ye(e,337,lM(1,!0)),ye(e,51,aM([[1,0]])),ye(e,338),ye(e,333),e.end()}function Ax(){var e=[$t];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
87
+ <metadataTypes count="1">
88
+ <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
89
+ </metadataTypes>
90
+ <futureMetadata name="XLDAPR" count="1">
91
+ <bk>
92
+ <extLst>
93
+ <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
94
+ <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
95
+ </ext>
96
+ </extLst>
97
+ </bk>
98
+ </futureMetadata>
99
+ <cellMetadata count="1">
100
+ <bk>
101
+ <rc t="1" v="0"/>
102
+ </bk>
103
+ </cellMetadata>
104
+ </metadata>`),e.join("")}function uM(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=mt(n);var r=e.read_shift(1);return r&2&&(t.l="1"),r&8&&(t.a="1"),t}var ei=1024;function Sx(e,t){for(var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),o=[Se("xml",null,{"xmlns:v":io.v,"xmlns:o":io.o,"xmlns:x":io.x,"xmlns:mv":io.mv}).replace(/\/>/,">"),Se("o:shapelayout",Se("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Se("v:shapetype",[Se("v:stroke",null,{joinstyle:"miter"}),Se("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];ei<e*1e3;)ei+=1e3;return t.forEach(function(a){var s=fn(a[0]),l={color2:"#BEFF82",type:"gradient"};l.type=="gradient"&&(l.angle="-180");var c=l.type=="gradient"?Se("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,u=Se("v:fill",c,l),f={on:"t",obscured:"t"};++ei,o=o.concat(["<v:shape"+vl({id:"_x0000_s"+ei,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(a[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",u,Se("v:shadow",null,f),Se("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",xn("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),xn("x:AutoFill","False"),xn("x:Row",String(s.r)),xn("x:Column",String(s.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),o.push("</xml>"),o.join("")}function Tx(e){var t=[$t,Se("comments",null,{xmlns:Ys[0]})],n=[];return t.push("<authors>"),e.forEach(function(r){r[1].forEach(function(o){var a=gt(o.a);n.indexOf(a)==-1&&(n.push(a),t.push("<author>"+a+"</author>")),o.T&&o.ID&&n.indexOf("tc="+o.ID)==-1&&(n.push("tc="+o.ID),t.push("<author>tc="+o.ID+"</author>"))})}),n.length==0&&(n.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(r){var o=0,a=[];if(r[1][0]&&r[1][0].T&&r[1][0].ID?o=n.indexOf("tc="+r[1][0].ID):r[1].forEach(function(c){c.a&&(o=n.indexOf(gt(c.a))),a.push(c.t||"")}),t.push('<comment ref="'+r[0]+'" authorId="'+o+'"><text>'),a.length<=1)t.push(xn("t",gt(a[0]||"")));else{for(var s=`Comment:
105
+ `+a[0]+`
106
+ `,l=1;l<a.length;++l)s+=`Reply:
107
+ `+a[l]+`
108
+ `;t.push(xn("t",gt(s)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function fM(e,t,n){var r=[$t,Se("ThreadedComments",null,{xmlns:un.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(o){var a="";(o[1]||[]).forEach(function(s,l){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var c={ref:o[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};l==0?a=c.id:c.parentId=a,s.ID=c.id,s.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),r.push(Se("threadedComment",xn("text",s.t||""),c))})}),r.push("</ThreadedComments>"),r.join("")}function dM(e){var t=[$t,Se("personList",null,{xmlns:un.TCMNT,"xmlns:x":Ys[0]}).replace(/[\/]>/,">")];return e.forEach(function(n,r){t.push(Se("person",null,{displayName:n,id:"{54EE7950-7262-4200-6969-"+("000000000000"+r).slice(-12)+"}",userId:n,providerId:"None"}))}),t.push("</personList>"),t.join("")}function hM(e){var t={};t.iauthor=e.read_shift(4);var n=Wa(e);return t.rfx=n.s,t.ref=mt(n.s),e.l+=16,t}function pM(e,t){return t==null&&(t=fe(36)),t.write_shift(4,e[1].iauthor),Js(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var vM=Pn;function gM(e){return dn(e.slice(0,54))}function mM(e){var t=$n(),n=[];return ye(t,628),ye(t,630),e.forEach(function(r){r[1].forEach(function(o){n.indexOf(o.a)>-1||(n.push(o.a.slice(0,54)),ye(t,632,gM(o.a)))})}),ye(t,631),ye(t,633),e.forEach(function(r){r[1].forEach(function(o){o.iauthor=n.indexOf(o.a);var a={s:fn(r[0]),e:fn(r[0])};ye(t,635,pM([a,o])),o.t&&o.t.length>0&&ye(t,637,x6(o)),ye(t,636),delete o.iauthor})}),ye(t,634),ye(t,629),t.end()}function yM(e,t){t.FullPaths.forEach(function(n,r){if(r!=0){var o=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");o.slice(-1)!=="/"&&At.utils.cfb_add(e,o,t.FileIndex[r].content)}})}var kx=["xlsb","xlsm","xlam","biff8","xla"],xM=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(r,o,a,s){var l=!1,c=!1;a.length==0?c=!0:a.charAt(0)=="["&&(c=!0,a=a.slice(1,-1)),s.length==0?l=!0:s.charAt(0)=="["&&(l=!0,s=s.slice(1,-1));var u=a.length>0?parseInt(a,10)|0:0,f=s.length>0?parseInt(s,10)|0:0;return l?f+=t.c:--f,c?u+=t.r:--u,o+(l?"":"$")+On(f)+(c?"":"$")+En(u)}return function(o,a){return t=a,o.replace(e,n)}}(),Qh=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Jh=function(){return function(t,n){return t.replace(Qh,function(r,o,a,s,l,c){var u=Vh(s)-(a?0:n.c),f=Lh(c)-(l?0:n.r),d=f==0?"":l?f+1:"["+f+"]",h=u==0?"":a?u+1:"["+u+"]";return o+"R"+d+"C"+h})}}();function EM(e,t){return e.replace(Qh,function(n,r,o,a,s,l){return r+(o=="$"?o+a:On(Vh(a)+t.c))+(s=="$"?s+l:En(Lh(l)+t.r))})}function CM(e){return e.length!=1}function tn(e){e.l+=1}function ta(e,t){var n=e.read_shift(t==1?1:2);return[n&16383,n>>14&1,n>>15&1]}function Ox(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return Px(e);n.biff==12&&(r=4)}var o=e.read_shift(r),a=e.read_shift(r),s=ta(e,2),l=ta(e,2);return{s:{r:o,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:l[0],cRel:l[1],rRel:l[2]}}}function Px(e){var t=ta(e,2),n=ta(e,2),r=e.read_shift(1),o=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:o,cRel:n[1],rRel:n[2]}}}function wM(e,t,n){if(n.biff<8)return Px(e);var r=e.read_shift(n.biff==12?4:2),o=e.read_shift(n.biff==12?4:2),a=ta(e,2),s=ta(e,2);return{s:{r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function _x(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return bM(e);var r=e.read_shift(n&&n.biff==12?4:2),o=ta(e,2);return{r,c:o[0],cRel:o[1],rRel:o[2]}}function bM(e){var t=ta(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}function AM(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:n&255,fQuoted:!!(n&16384),cRel:n>>15,rRel:n>>15}}function SM(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return TM(e);var o=e.read_shift(r>=12?4:2),a=e.read_shift(2),s=(a&16384)>>14,l=(a&32768)>>15;if(a&=16383,l==1)for(;o>524287;)o-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:o,c:a,cRel:s,rRel:l}}function TM(e){var t=e.read_shift(2),n=e.read_shift(1),r=(t&32768)>>15,o=(t&16384)>>14;return t&=16383,r==1&&t>=8192&&(t=t-16384),o==1&&n>=128&&(n=n-256),{r:t,c:n,cRel:o,rRel:r}}function kM(e,t,n){var r=(e[e.l++]&96)>>5,o=Ox(e,n.biff>=2&&n.biff<=5?6:8,n);return[r,o]}function OM(e,t,n){var r=(e[e.l++]&96)>>5,o=e.read_shift(2,"i"),a=8;if(n)switch(n.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var s=Ox(e,a,n);return[r,o,s]}function PM(e,t,n){var r=(e[e.l++]&96)>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}function _M(e,t,n){var r=(e[e.l++]&96)>>5,o=e.read_shift(2),a=8;if(n)switch(n.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[r,o]}function DM(e,t,n){var r=(e[e.l++]&96)>>5,o=wM(e,t-1,n);return[r,o]}function IM(e,t,n){var r=(e[e.l++]&96)>>5;return e.l+=n.biff==2?6:n.biff==12?14:7,[r]}function Dx(e){var t=e[e.l+1]&1,n=1;return e.l+=4,[t,n]}function FM(e,t,n){e.l+=2;for(var r=e.read_shift(n&&n.biff==2?1:2),o=[],a=0;a<=r;++a)o.push(e.read_shift(n&&n.biff==2?1:2));return o}function NM(e,t,n){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(n&&n.biff==2?1:2)]}function BM(e,t,n){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(n&&n.biff==2?1:2)]}function RM(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function MM(e,t,n){var r=e[e.l+1]&255?1:0;return e.l+=n&&n.biff==2?3:4,[r]}function Ix(e){var t=e.read_shift(1),n=e.read_shift(1);return[t,n]}function LM(e){return e.read_shift(2),Ix(e)}function VM(e){return e.read_shift(2),Ix(e)}function HM(e,t,n){var r=(e[e.l]&96)>>5;e.l+=1;var o=_x(e,0,n);return[r,o]}function UM(e,t,n){var r=(e[e.l]&96)>>5;e.l+=1;var o=SM(e,0,n);return[r,o]}function jM(e,t,n){var r=(e[e.l]&96)>>5;e.l+=1;var o=e.read_shift(2);n&&n.biff==5&&(e.l+=12);var a=_x(e,0,n);return[r,o,a]}function GM(e,t,n){var r=(e[e.l]&96)>>5;e.l+=1;var o=e.read_shift(n&&n.biff<=3?1:2);return[GL[o],Mx[o],r]}function zM(e,t,n){var r=e[e.l++],o=e.read_shift(1),a=n&&n.biff<=3?[r==88?-1:0,e.read_shift(1)]:WM(e);return[o,(a[0]===0?Mx:jL)[a[1]]]}function WM(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function KM(e,t,n){e.l+=n&&n.biff==2?3:4}function YM(e,t,n){if(e.l++,n&&n.biff==12)return[e.read_shift(4,"i"),0];var r=e.read_shift(2),o=e.read_shift(n&&n.biff==2?1:2);return[r,o]}function XM(e){return e.l++,Cl[e.read_shift(1)]}function QM(e){return e.l++,e.read_shift(2)}function JM(e){return e.l++,e.read_shift(1)!==0}function ZM(e){return e.l++,Zs(e)}function qM(e,t,n){return e.l++,lx(e,t-1,n)}function $M(e,t){var n=[e.read_shift(1)];if(t==12)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2;break}switch(n[0]){case 4:n[1]=j6(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:n[1]=Cl[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:n[1]=Zs(e);break;case 2:n[1]=K6(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function eL(e,t,n){for(var r=e.read_shift(n.biff==12?4:2),o=[],a=0;a!=r;++a)o.push((n.biff==12?Wa:Q6)(e));return o}function tL(e,t,n){var r=0,o=0;n.biff==12?(r=e.read_shift(4),o=e.read_shift(4)):(o=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,--o==0&&(o=256));for(var a=0,s=[];a!=r&&(s[a]=[]);++a)for(var l=0;l!=o;++l)s[a][l]=$M(e,n.biff);return s}function nL(e,t,n){var r=e.read_shift(1)>>>5&3,o=!n||n.biff>=8?4:2,a=e.read_shift(o);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[r,0,a]}function oL(e,t,n){if(n.biff==5)return rL(e);var r=e.read_shift(1)>>>5&3,o=e.read_shift(2),a=e.read_shift(4);return[r,o,a]}function rL(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}function aL(e,t,n){var r=e.read_shift(1)>>>5&3;e.l+=n&&n.biff==2?3:4;var o=e.read_shift(n&&n.biff==2?1:2);return[r,o]}function sL(e,t,n){var r=e.read_shift(1)>>>5&3,o=e.read_shift(n&&n.biff==2?1:2);return[r,o]}function iL(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,n.biff==12&&(e.l+=2),[r]}function lL(e,t,n){var r=(e[e.l++]&96)>>5,o=e.read_shift(2),a=4;if(n)switch(n.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[r,o]}var cL=ar,uL=ar,fL=ar;function bl(e,t,n){return e.l+=2,[AM(e)]}function Zh(e){return e.l+=6,[]}var dL=bl,hL=Zh,pL=Zh,vL=bl;function Fx(e){return e.l+=2,[sx(e),e.read_shift(2)&1]}var gL=bl,mL=Fx,yL=Zh,xL=bl,EL=bl,CL=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function wL(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),o=e.read_shift(2),a=e.read_shift(2),s=CL[n>>2&31];return{ixti:t,coltype:n&3,rt:s,idx:r,c:o,C:a}}function bL(e){return e.l+=2,[e.read_shift(4)]}function AL(e,t,n){return e.l+=5,e.l+=2,e.l+=n.biff==2?1:4,["PTGSHEET"]}function SL(e,t,n){return e.l+=n.biff==2?4:5,["PTGENDSHEET"]}function TL(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function kL(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function OL(e){return e.l+=4,[0,0]}var Nx={1:{n:"PtgExp",f:YM},2:{n:"PtgTbl",f:fL},3:{n:"PtgAdd",f:tn},4:{n:"PtgSub",f:tn},5:{n:"PtgMul",f:tn},6:{n:"PtgDiv",f:tn},7:{n:"PtgPower",f:tn},8:{n:"PtgConcat",f:tn},9:{n:"PtgLt",f:tn},10:{n:"PtgLe",f:tn},11:{n:"PtgEq",f:tn},12:{n:"PtgGe",f:tn},13:{n:"PtgGt",f:tn},14:{n:"PtgNe",f:tn},15:{n:"PtgIsect",f:tn},16:{n:"PtgUnion",f:tn},17:{n:"PtgRange",f:tn},18:{n:"PtgUplus",f:tn},19:{n:"PtgUminus",f:tn},20:{n:"PtgPercent",f:tn},21:{n:"PtgParen",f:tn},22:{n:"PtgMissArg",f:tn},23:{n:"PtgStr",f:qM},26:{n:"PtgSheet",f:AL},27:{n:"PtgEndSheet",f:SL},28:{n:"PtgErr",f:XM},29:{n:"PtgBool",f:JM},30:{n:"PtgInt",f:QM},31:{n:"PtgNum",f:ZM},32:{n:"PtgArray",f:IM},33:{n:"PtgFunc",f:GM},34:{n:"PtgFuncVar",f:zM},35:{n:"PtgName",f:nL},36:{n:"PtgRef",f:HM},37:{n:"PtgArea",f:kM},38:{n:"PtgMemArea",f:aL},39:{n:"PtgMemErr",f:cL},40:{n:"PtgMemNoMem",f:uL},41:{n:"PtgMemFunc",f:sL},42:{n:"PtgRefErr",f:iL},43:{n:"PtgAreaErr",f:PM},44:{n:"PtgRefN",f:UM},45:{n:"PtgAreaN",f:DM},46:{n:"PtgMemAreaN",f:TL},47:{n:"PtgMemNoMemN",f:kL},57:{n:"PtgNameX",f:oL},58:{n:"PtgRef3d",f:jM},59:{n:"PtgArea3d",f:OM},60:{n:"PtgRefErr3d",f:lL},61:{n:"PtgAreaErr3d",f:_M},255:{}},PL={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},_L={1:{n:"PtgElfLel",f:Fx},2:{n:"PtgElfRw",f:xL},3:{n:"PtgElfCol",f:dL},6:{n:"PtgElfRwV",f:EL},7:{n:"PtgElfColV",f:vL},10:{n:"PtgElfRadical",f:gL},11:{n:"PtgElfRadicalS",f:yL},13:{n:"PtgElfColS",f:hL},15:{n:"PtgElfColSV",f:pL},16:{n:"PtgElfRadicalLel",f:mL},25:{n:"PtgList",f:wL},29:{n:"PtgSxName",f:bL},255:{}},DL={0:{n:"PtgAttrNoop",f:OL},1:{n:"PtgAttrSemi",f:MM},2:{n:"PtgAttrIf",f:BM},4:{n:"PtgAttrChoose",f:FM},8:{n:"PtgAttrGoto",f:NM},16:{n:"PtgAttrSum",f:KM},32:{n:"PtgAttrBaxcel",f:Dx},33:{n:"PtgAttrBaxcel",f:Dx},64:{n:"PtgAttrSpace",f:LM},65:{n:"PtgAttrSpaceSemi",f:VM},128:{n:"PtgAttrIfError",f:RM},255:{}};function IL(e,t,n,r){if(r.biff<8)return ar(e,t);for(var o=e.l+t,a=[],s=0;s!==n.length;++s)switch(n[s][0]){case"PtgArray":n[s][1]=tL(e,0,r),a.push(n[s][1]);break;case"PtgMemArea":n[s][2]=eL(e,n[s][1],r),a.push(n[s][2]);break;case"PtgExp":r&&r.biff==12&&(n[s][1][1]=e.read_shift(4),a.push(n[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[s][0]}return t=o-e.l,t!==0&&a.push(ar(e,t)),a}function FL(e,t,n){for(var r=e.l+t,o,a,s=[];r!=e.l;)t=r-e.l,a=e[e.l],o=Nx[a]||Nx[PL[a]],(a===24||a===25)&&(o=(a===24?_L:DL)[e[e.l+1]]),!o||!o.f?ar(e,t):s.push([o.n,o.f(e,t,n)]);return s}function NL(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n],o=[],a=0;a<r.length;++a){var s=r[a];if(s)switch(s[0]){case 2:o.push('"'+s[1].replace(/"/g,'""')+'"');break;default:o.push(s[1])}else o.push("")}t.push(o.join(","))}return t.join(";")}var BL={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function RL(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Bx(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var o="";if(n.biff>8)switch(e[r[0]][0]){case 357:return o=r[1]==-1?"#REF":e.SheetNames[r[1]],r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 358:return n.SID!=null?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];case 355:default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return o=r[1]==-1?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return e[r[0]][0][3]?(o=r[1]==-1?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?o:o+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Rx(e,t,n){var r=Bx(e,t,n);return r=="#REF"?r:RL(r,n)}function ti(e,t,n,r,o){var a=o&&o.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},l=[],c,u,f,d=0,h=0,p,g="";if(!e[0]||!e[0][0])return"";for(var v=-1,m="",y=0,E=e[0].length;y<E;++y){var x=e[0][y];switch(x[0]){case"PtgUminus":l.push("-"+l.pop());break;case"PtgUplus":l.push("+"+l.pop());break;case"PtgPercent":l.push(l.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(c=l.pop(),u=l.pop(),v>=0){switch(e[0][v][1][0]){case 0:m=zt(" ",e[0][v][1][1]);break;case 1:m=zt("\r",e[0][v][1][1]);break;default:if(m="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}u=u+m,v=-1}l.push(u+BL[x[0]]+c);break;case"PtgIsect":c=l.pop(),u=l.pop(),l.push(u+" "+c);break;case"PtgUnion":c=l.pop(),u=l.pop(),l.push(u+","+c);break;case"PtgRange":c=l.pop(),u=l.pop(),l.push(u+":"+c);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":f=xl(x[1][1],s,o),l.push(El(f,a));break;case"PtgRefN":f=n?xl(x[1][1],n,o):x[1][1],l.push(El(f,a));break;case"PtgRef3d":d=x[1][1],f=xl(x[1][2],s,o),g=Rx(r,d,o),l.push(g+"!"+El(f,a));break;case"PtgFunc":case"PtgFuncVar":var C=x[1][0],A=x[1][1];C||(C=0),C&=127;var w=C==0?[]:l.slice(-C);l.length-=C,A==="User"&&(A=w.shift()),l.push(A+"("+w.join(",")+")");break;case"PtgBool":l.push(x[1]?"TRUE":"FALSE");break;case"PtgInt":l.push(x[1]);break;case"PtgNum":l.push(String(x[1]));break;case"PtgStr":l.push('"'+x[1].replace(/"/g,'""')+'"');break;case"PtgErr":l.push(x[1]);break;case"PtgAreaN":p=R1(x[1][1],n?{s:n}:s,o),l.push(Mh(p,o));break;case"PtgArea":p=R1(x[1][1],s,o),l.push(Mh(p,o));break;case"PtgArea3d":d=x[1][1],p=x[1][2],g=Rx(r,d,o),l.push(g+"!"+Mh(p,o));break;case"PtgAttrSum":l.push("SUM("+l.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=x[1][2];var b=(r.names||[])[h-1]||(r[0]||[])[h],T=b?b.Name:"SH33TJSNAME"+String(h);T&&T.slice(0,6)=="_xlfn."&&!o.xlfn&&(T=T.slice(6)),l.push(T);break;case"PtgNameX":var S=x[1][1];h=x[1][2];var _;if(o.biff<=5)S<0&&(S=-S),r[S]&&(_=r[S][h]);else{var I="";if(((r[S]||[])[0]||[])[0]==14849||(((r[S]||[])[0]||[])[0]==1025?r[S][h]&&r[S][h].itab>0&&(I=r.SheetNames[r[S][h].itab-1]+"!"):I=r.SheetNames[h-1]+"!"),r[S]&&r[S][h])I+=r[S][h].Name;else if(r[0]&&r[0][h])I+=r[0][h].Name;else{var H=(Bx(r,S,o)||"").split(";;");H[h-1]?I=H[h-1]:I+="SH33TJSERRX"}l.push(I);break}_||(_={Name:"SH33TJSERRY"}),l.push(_.Name);break;case"PtgParen":var B="(",j=")";if(v>=0){switch(m="",e[0][v][1][0]){case 2:B=zt(" ",e[0][v][1][1])+B;break;case 3:B=zt("\r",e[0][v][1][1])+B;break;case 4:j=zt(" ",e[0][v][1][1])+j;break;case 5:j=zt("\r",e[0][v][1][1])+j;break;default:if(o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}v=-1}l.push(B+l.pop()+j);break;case"PtgRefErr":l.push("#REF!");break;case"PtgRefErr3d":l.push("#REF!");break;case"PtgExp":f={c:x[1][1],r:x[1][0]};var Z={c:n.c,r:n.r};if(r.sharedf[mt(f)]){var q=r.sharedf[mt(f)];l.push(ti(q,s,Z,r,o))}else{var K=!1;for(c=0;c!=r.arrayf.length;++c)if(u=r.arrayf[c],!(f.c<u[0].s.c||f.c>u[0].e.c)&&!(f.r<u[0].s.r||f.r>u[0].e.r)){l.push(ti(u[1],s,Z,r,o)),K=!0;break}K||l.push(x[1])}break;case"PtgArray":l.push("{"+NL(x[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":v=y;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":l.push("");break;case"PtgAreaErr":l.push("#REF!");break;case"PtgAreaErr3d":l.push("#REF!");break;case"PtgList":l.push("Table"+x[1].idx+"[#"+x[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(x));default:throw new Error("Unrecognized Formula Token: "+String(x))}var oe=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(o.biff!=3&&v>=0&&oe.indexOf(e[0][y][0])==-1){x=e[0][v];var ge=!0;switch(x[1][0]){case 4:ge=!1;case 0:m=zt(" ",x[1][1]);break;case 5:ge=!1;case 1:m=zt("\r",x[1][1]);break;default:if(m="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+x[1][0])}l.push((ge?m:"")+l.pop()+(ge?"":m)),v=-1}}if(l.length>1&&o.WTF)throw new Error("bad formula stack");return l[0]}function ML(e){if(e==null){var t=fe(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Ka(e);return Ka(0)}function LL(e,t,n,r,o){var a=Xa(t,n,o),s=ML(e.v),l=fe(6),c=33;l.write_shift(2,c),l.write_shift(4,0);for(var u=fe(e.bf.length),f=0;f<e.bf.length;++f)u[f]=e.bf[f];var d=mn([a,s,l,u]);return d}function _u(e,t,n){var r=e.read_shift(4),o=FL(e,r,n),a=e.read_shift(4),s=a>0?IL(e,a,o,n):null;return[o,s]}var VL=_u,Du=_u,HL=_u,UL=_u,jL={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Mx={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},GL={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function zL(e){var t="of:="+e.replace(Qh,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function WL(e){return e.replace(/\./,"!")}var Al=typeof Map<"u";function qh(e,t,n){var r=0,o=e.length;if(n){if(Al?n.has(t):Object.prototype.hasOwnProperty.call(n,t)){for(var a=Al?n.get(t):n[t];r<a.length;++r)if(e[a[r]].t===t)return e.Count++,a[r]}}else for(;r<o;++r)if(e[r].t===t)return e.Count++,r;return e[o]={t},e.Count++,e.Unique++,n&&(Al?(n.has(t)||n.set(t,[]),n.get(t).push(o)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(o))),o}function Iu(e,t){var n={min:e+1,max:e+1},r=-1;return t.MDW&&(_r=t.MDW),t.width!=null?n.customWidth=1:t.wpx!=null?r=Ou(t.wpx):t.wch!=null&&(r=t.wch),r>-1?(n.width=Kh(r),n.customWidth=1):t.width!=null&&(n.width=t.width),t.hidden&&(n.hidden=!0),t.level!=null&&(n.outlineLevel=n.level=t.level),n}function Lx(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(n=[1,1,1,1,.5,.5]),e.left==null&&(e.left=n[0]),e.right==null&&(e.right=n[1]),e.top==null&&(e.top=n[2]),e.bottom==null&&(e.bottom=n[3]),e.header==null&&(e.header=n[4]),e.footer==null&&(e.footer=n[5])}}function na(e,t,n){var r=n.revssf[t.z!=null?t.z:"General"],o=60,a=e.length;if(r==null&&n.ssf){for(;o<392;++o)if(n.ssf[o]==null){a1(t.z,o),n.ssf[o]=t.z,n.revssf[t.z]=r=o;break}}for(o=0;o!=a;++o)if(e[o].numFmtId===r)return o;return e[a]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function KL(e,t,n){if(e&&e["!ref"]){var r=Dt(e["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+n+"): "+e["!ref"])}}function YL(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',n=0;n!=e.length;++n)t+='<mergeCell ref="'+en(e[n])+'"/>';return t+"</mergeCells>"}function XL(e,t,n,r,o){var a=!1,s={},l=null;if(r.bookType!=="xlsx"&&t.vbaraw){var c=t.SheetNames[n];try{t.Workbook&&(c=t.Workbook.Sheets[n].CodeName||c)}catch{}a=!0,s.codeName=Or(gt(c))}if(e&&e["!outline"]){var u={summaryBelow:1,summaryRight:1};e["!outline"].above&&(u.summaryBelow=0),e["!outline"].left&&(u.summaryRight=0),l=(l||"")+Se("outlinePr",null,u)}!a&&!l||(o[o.length]=Se("sheetPr",l,s))}var QL=["objects","scenarios","selectLockedCells","selectUnlockedCells"],JL=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function ZL(e){var t={sheet:1};return QL.forEach(function(n){e[n]!=null&&e[n]&&(t[n]="1")}),JL.forEach(function(n){e[n]!=null&&!e[n]&&(t[n]="0")}),e.password&&(t.password=gx(e.password).toString(16).toUpperCase()),Se("sheetProtection",null,t)}function qL(e){return Lx(e),Se("pageMargins",null,e)}function $L(e,t){for(var n=["<cols>"],r,o=0;o!=t.length;++o)(r=t[o])&&(n[n.length]=Se("col",null,Iu(o,r)));return n[n.length]="</cols>",n.join("")}function e5(e,t,n,r){var o=typeof e.ref=="string"?e.ref:en(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var a=n.Workbook.Names,s=uo(o);s.s.r==s.e.r&&(s.e.r=uo(t["!ref"]).e.r,o=en(s));for(var l=0;l<a.length;++l){var c=a[l];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==r){c.Ref="'"+n.SheetNames[r]+"'!"+o;break}}return l==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+o}),Se("autoFilter",null,{ref:o})}function t5(e,t,n,r){var o={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(o.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),Se("sheetViews",Se("sheetView",null,o),{})}function n5(e,t,n,r){if(e.c&&n["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var o="",a=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":o=e.v?"1":"0";break;case"n":o=""+e.v;break;case"e":o=Cl[e.v];break;case"d":r&&r.cellDates?o=Vn(e.v,-1).toISOString():(e=qn(e),e.t="n",o=""+(e.v=Zn(Vn(e.v)))),typeof e.z>"u"&&(e.z=Gt[14]);break;default:o=e.v;break}var l=xn("v",gt(o)),c={r:t},u=na(r.cellXfs,e,r);switch(u!==0&&(c.s=u),e.t){case"n":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){l=xn("v",""+qh(r.Strings,e.v,r.revStrings)),c.t="s";break}c.t="str";break}if(e.t!=a&&(e.t=a,e.v=s),typeof e.f=="string"&&e.f){var f=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;l=Se("f",gt(e.f),f)+(e.v!=null?l:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(c.cm=1),Se("c",l,c)}function o5(e,t,n,r){var o=[],a=[],s=Dt(e["!ref"]),l="",c,u="",f=[],d=0,h=0,p=e["!rows"],g=Array.isArray(e),v={r:u},m,y=-1;for(h=s.s.c;h<=s.e.c;++h)f[h]=On(h);for(d=s.s.r;d<=s.e.r;++d){for(a=[],u=En(d),h=s.s.c;h<=s.e.c;++h){c=f[h]+u;var E=g?(e[d]||[])[h]:e[c];E!==void 0&&(l=n5(E,c,e,t))!=null&&a.push(l)}(a.length>0||p&&p[d])&&(v={r:u},p&&p[d]&&(m=p[d],m.hidden&&(v.hidden=1),y=-1,m.hpx?y=Pu(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(v.ht=y,v.customHeight=1),m.level&&(v.outlineLevel=m.level)),o[o.length]=Se("row",a.join(""),v))}if(p)for(;d<p.length;++d)p&&p[d]&&(v={r:d+1},m=p[d],m.hidden&&(v.hidden=1),y=-1,m.hpx?y=Pu(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(v.ht=y,v.customHeight=1),m.level&&(v.outlineLevel=m.level),o[o.length]=Se("row","",v));return o.join("")}function Vx(e,t,n,r){var o=[$t,Se("worksheet",null,{xmlns:Ys[0],"xmlns:r":un.r})],a=n.SheetNames[e],s=0,l="",c=n.Sheets[a];c==null&&(c={});var u=c["!ref"]||"A1",f=Dt(u);if(f.e.c>16383||f.e.r>1048575){if(t.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),u=en(f)}r||(r={}),c["!comments"]=[];var d=[];XL(c,n,e,t,o),o[o.length]=Se("dimension",null,{ref:u}),o[o.length]=t5(c,t,e,n),t.sheetFormat&&(o[o.length]=Se("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),c["!cols"]!=null&&c["!cols"].length>0&&(o[o.length]=$L(c,c["!cols"])),o[s=o.length]="<sheetData/>",c["!links"]=[],c["!ref"]!=null&&(l=o5(c,t),l.length>0&&(o[o.length]=l)),o.length>s+1&&(o[o.length]="</sheetData>",o[s]=o[s].replace("/>",">")),c["!protect"]&&(o[o.length]=ZL(c["!protect"])),c["!autofilter"]!=null&&(o[o.length]=e5(c["!autofilter"],c,n,e)),c["!merges"]!=null&&c["!merges"].length>0&&(o[o.length]=YL(c["!merges"]));var h=-1,p,g=-1;return c["!links"].length>0&&(o[o.length]="<hyperlinks>",c["!links"].forEach(function(v){v[1].Target&&(p={ref:v[0]},v[1].Target.charAt(0)!="#"&&(g=yt(r,-1,gt(v[1].Target).replace(/#.*$/,""),ht.HLINK),p["r:id"]="rId"+g),(h=v[1].Target.indexOf("#"))>-1&&(p.location=gt(v[1].Target.slice(h+1))),v[1].Tooltip&&(p.tooltip=gt(v[1].Tooltip)),o[o.length]=Se("hyperlink",null,p))}),o[o.length]="</hyperlinks>"),delete c["!links"],c["!margins"]!=null&&(o[o.length]=qL(c["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(o[o.length]=xn("ignoredErrors",Se("ignoredError",null,{numberStoredAsText:1,sqref:u}))),d.length>0&&(g=yt(r,-1,"../drawings/drawing"+(e+1)+".xml",ht.DRAW),o[o.length]=Se("drawing",null,{"r:id":"rId"+g}),c["!drawing"]=d),c["!comments"].length>0&&(g=yt(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",ht.VML),o[o.length]=Se("legacyDrawing",null,{"r:id":"rId"+g}),c["!legacy"]=g),o.length>1&&(o[o.length]="</worksheet>",o[1]=o[1].replace("/>",">")),o.join("")}function r5(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var o=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=r,a&7&&(n.level=a&7),a&16&&(n.hidden=!0),a&32&&(n.hpt=o/20),n}function a5(e,t,n){var r=fe(145),o=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var a=320;o.hpx?a=Pu(o.hpx)*20:o.hpt&&(a=o.hpt*20),r.write_shift(2,a),r.write_shift(1,0);var s=0;o.level&&(s|=o.level),o.hidden&&(s|=16),(o.hpx||o.hpt)&&(s|=32),r.write_shift(1,s),r.write_shift(1,0);var l=0,c=r.l;r.l+=4;for(var u={r:e,c:0},f=0;f<16;++f)if(!(t.s.c>f+1<<10||t.e.c<f<<10)){for(var d=-1,h=-1,p=f<<10;p<f+1<<10;++p){u.c=p;var g=Array.isArray(n)?(n[u.r]||[])[u.c]:n[mt(u)];g&&(d<0&&(d=p),h=p)}d<0||(++l,r.write_shift(4,d),r.write_shift(4,h))}var v=r.l;return r.l=c,r.write_shift(4,l),r.l=v,r.length>r.l?r.slice(0,r.l):r}function s5(e,t,n,r){var o=a5(r,n,t);(o.length>17||(t["!rows"]||[])[r])&&ye(e,0,o)}var i5=Wa,l5=Js;function c5(){}function u5(e,t){var n={},r=e[e.l];return++e.l,n.above=!(r&64),n.left=!(r&128),e.l+=18,n.name=E6(e),n}function f5(e,t,n){n==null&&(n=fe(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var o=1;o<3;++o)n.write_shift(1,0);return wu({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),V1(e,n),n.slice(0,n.l)}function d5(e){var t=Ao(e);return[t]}function h5(e,t,n){return n==null&&(n=fe(8)),ja(t,n)}function p5(e){var t=Ga(e);return[t]}function v5(e,t,n){return n==null&&(n=fe(4)),za(t,n)}function g5(e){var t=Ao(e),n=e.read_shift(1);return[t,n,"b"]}function m5(e,t,n){return n==null&&(n=fe(9)),ja(t,n),n.write_shift(1,e.v?1:0),n}function y5(e){var t=Ga(e),n=e.read_shift(1);return[t,n,"b"]}function x5(e,t,n){return n==null&&(n=fe(5)),za(t,n),n.write_shift(1,e.v?1:0),n}function E5(e){var t=Ao(e),n=e.read_shift(1);return[t,n,"e"]}function C5(e,t,n){return n==null&&(n=fe(9)),ja(t,n),n.write_shift(1,e.v),n}function w5(e){var t=Ga(e),n=e.read_shift(1);return[t,n,"e"]}function b5(e,t,n){return n==null&&(n=fe(8)),za(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}function A5(e){var t=Ao(e),n=e.read_shift(4);return[t,n,"s"]}function S5(e,t,n){return n==null&&(n=fe(12)),ja(t,n),n.write_shift(4,t.v),n}function T5(e){var t=Ga(e),n=e.read_shift(4);return[t,n,"s"]}function k5(e,t,n){return n==null&&(n=fe(8)),za(t,n),n.write_shift(4,t.v),n}function O5(e){var t=Ao(e),n=Zs(e);return[t,n,"n"]}function P5(e,t,n){return n==null&&(n=fe(16)),ja(t,n),Ka(e.v,n),n}function _5(e){var t=Ga(e),n=Zs(e);return[t,n,"n"]}function D5(e,t,n){return n==null&&(n=fe(12)),za(t,n),Ka(e.v,n),n}function I5(e){var t=Ao(e),n=H1(e);return[t,n,"n"]}function F5(e,t,n){return n==null&&(n=fe(12)),ja(t,n),U1(e.v,n),n}function N5(e){var t=Ga(e),n=H1(e);return[t,n,"n"]}function B5(e,t,n){return n==null&&(n=fe(8)),za(t,n),U1(e.v,n),n}function R5(e){var t=Ao(e),n=Hh(e);return[t,n,"is"]}function M5(e){var t=Ao(e),n=Pn(e);return[t,n,"str"]}function L5(e,t,n){return n==null&&(n=fe(12+4*e.v.length)),ja(t,n),dn(e.v,n),n.length>n.l?n.slice(0,n.l):n}function V5(e){var t=Ga(e),n=Pn(e);return[t,n,"str"]}function H5(e,t,n){return n==null&&(n=fe(8+4*e.v.length)),za(t,n),dn(e.v,n),n.length>n.l?n.slice(0,n.l):n}function U5(e,t,n){var r=e.l+t,o=Ao(e);o.r=n["!row"];var a=e.read_shift(1),s=[o,a,"b"];if(n.cellFormula){e.l+=2;var l=Du(e,r-e.l,n);s[3]=ti(l,null,o,n.supbooks,n)}else e.l=r;return s}function j5(e,t,n){var r=e.l+t,o=Ao(e);o.r=n["!row"];var a=e.read_shift(1),s=[o,a,"e"];if(n.cellFormula){e.l+=2;var l=Du(e,r-e.l,n);s[3]=ti(l,null,o,n.supbooks,n)}else e.l=r;return s}function G5(e,t,n){var r=e.l+t,o=Ao(e);o.r=n["!row"];var a=Zs(e),s=[o,a,"n"];if(n.cellFormula){e.l+=2;var l=Du(e,r-e.l,n);s[3]=ti(l,null,o,n.supbooks,n)}else e.l=r;return s}function z5(e,t,n){var r=e.l+t,o=Ao(e);o.r=n["!row"];var a=Pn(e),s=[o,a,"str"];if(n.cellFormula){e.l+=2;var l=Du(e,r-e.l,n);s[3]=ti(l,null,o,n.supbooks,n)}else e.l=r;return s}var W5=Wa,K5=Js;function Y5(e,t){return t==null&&(t=fe(4)),t.write_shift(4,e),t}function X5(e,t){var n=e.l+t,r=Wa(e),o=Uh(e),a=Pn(e),s=Pn(e),l=Pn(e);e.l=n;var c={rfx:r,relId:o,loc:a,display:l};return s&&(c.Tooltip=s),c}function Q5(e,t){var n=fe(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Js({s:fn(e[0]),e:fn(e[0])},n),Gh("rId"+t,n);var r=e[1].Target.indexOf("#"),o=r==-1?"":e[1].Target.slice(r+1);return dn(o||"",n),dn(e[1].Tooltip||"",n),dn("",n),n.slice(0,n.l)}function J5(){}function Z5(e,t,n){var r=e.l+t,o=j1(e),a=e.read_shift(1),s=[o];if(s[2]=a,n.cellFormula){var l=VL(e,r-e.l,n);s[1]=l}else e.l=r;return s}function q5(e,t,n){var r=e.l+t,o=Wa(e),a=[o];if(n.cellFormula){var s=UL(e,r-e.l,n);a[1]=s,e.l=r}else e.l=r;return a}function $5(e,t,n){n==null&&(n=fe(18));var r=Iu(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,(r.width||10)*256),n.write_shift(4,0);var o=0;return t.hidden&&(o|=1),typeof r.width=="number"&&(o|=2),t.level&&(o|=t.level<<8),n.write_shift(2,o),n}var Hx=["left","right","top","bottom","header","footer"];function e9(e){var t={};return Hx.forEach(function(n){t[n]=Zs(e)}),t}function t9(e,t){return t==null&&(t=fe(6*8)),Lx(e),Hx.forEach(function(n){Ka(e[n],t)}),t}function n9(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function o9(e,t,n){n==null&&(n=fe(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}function r9(e){var t=fe(24);return t.write_shift(4,4),t.write_shift(4,1),Js(e,t),t}function a9(e,t){return t==null&&(t=fe(16*4+2)),t.write_shift(2,e.password?gx(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(n){n[1]?t.write_shift(4,e[n[0]]!=null&&!e[n[0]]?1:0):t.write_shift(4,e[n[0]]!=null&&e[n[0]]?0:1)}),t}function s9(){}function i9(){}function l9(e,t,n,r,o,a,s){if(t.v===void 0)return!1;var l="";switch(t.t){case"b":l=t.v?"1":"0";break;case"d":t=qn(t),t.z=t.z||Gt[14],t.v=Zn(Vn(t.v)),t.t="n";break;case"n":case"e":l=""+t.v;break;default:l=t.v;break}var c={r:n,c:r};switch(c.s=na(o.cellXfs,t,o),t.l&&a["!links"].push([mt(c),t.l]),t.c&&a["!comments"].push([mt(c),t.c]),t.t){case"s":case"str":return o.bookSST?(l=qh(o.Strings,t.v,o.revStrings),c.t="s",c.v=l,s?ye(e,18,k5(t,c)):ye(e,7,S5(t,c))):(c.t="str",s?ye(e,17,H5(t,c)):ye(e,6,L5(t,c))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?s?ye(e,13,B5(t,c)):ye(e,2,F5(t,c)):s?ye(e,16,D5(t,c)):ye(e,5,P5(t,c)),!0;case"b":return c.t="b",s?ye(e,15,x5(t,c)):ye(e,4,m5(t,c)),!0;case"e":return c.t="e",s?ye(e,14,b5(t,c)):ye(e,3,C5(t,c)),!0}return s?ye(e,12,v5(t,c)):ye(e,1,h5(t,c)),!0}function c9(e,t,n,r){var o=Dt(t["!ref"]||"A1"),a,s="",l=[];ye(e,145);var c=Array.isArray(t),u=o.e.r;t["!rows"]&&(u=Math.max(o.e.r,t["!rows"].length-1));for(var f=o.s.r;f<=u;++f){s=En(f),s5(e,t,o,f);var d=!1;if(f<=o.e.r)for(var h=o.s.c;h<=o.e.c;++h){f===o.s.r&&(l[h]=On(h)),a=l[h]+s;var p=c?(t[f]||[])[h]:t[a];if(!p){d=!1;continue}d=l9(e,p,f,h,r,t,d)}}ye(e,146)}function u9(e,t){!t||!t["!merges"]||(ye(e,177,Y5(t["!merges"].length)),t["!merges"].forEach(function(n){ye(e,176,K5(n))}),ye(e,178))}function f9(e,t){!t||!t["!cols"]||(ye(e,390),t["!cols"].forEach(function(n,r){n&&ye(e,60,$5(r,n))}),ye(e,391))}function d9(e,t){!t||!t["!ref"]||(ye(e,648),ye(e,649,r9(Dt(t["!ref"]))),ye(e,650))}function h9(e,t,n){t["!links"].forEach(function(r){if(r[1].Target){var o=yt(n,-1,r[1].Target.replace(/#.*$/,""),ht.HLINK);ye(e,494,Q5(r,o))}}),delete t["!links"]}function p9(e,t,n,r){if(t["!comments"].length>0){var o=yt(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",ht.VML);ye(e,551,Gh("rId"+o)),t["!legacy"]=o}}function v9(e,t,n,r){if(t["!autofilter"]){var o=t["!autofilter"],a=typeof o.ref=="string"?o.ref:en(o.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var s=n.Workbook.Names,l=uo(a);l.s.r==l.e.r&&(l.e.r=uo(t["!ref"]).e.r,a=en(l));for(var c=0;c<s.length;++c){var u=s[c];if(u.Name=="_xlnm._FilterDatabase"&&u.Sheet==r){u.Ref="'"+n.SheetNames[r]+"'!"+a;break}}c==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+a}),ye(e,161,Js(Dt(a))),ye(e,162)}}function g9(e,t,n){ye(e,133),ye(e,137,o9(t,n)),ye(e,138),ye(e,134)}function m9(e,t){t["!protect"]&&ye(e,535,a9(t["!protect"]))}function y9(e,t,n,r){var o=$n(),a=n.SheetNames[e],s=n.Sheets[a]||{},l=a;try{n&&n.Workbook&&(l=n.Workbook.Sheets[e].CodeName||l)}catch{}var c=Dt(s["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],ye(o,129),(n.vbaraw||s["!outline"])&&ye(o,147,f5(l,s["!outline"])),ye(o,148,l5(c)),g9(o,s,n.Workbook),f9(o,s),c9(o,s,e,t),m9(o,s),v9(o,s,n,e),u9(o,s),h9(o,s,r),s["!margins"]&&ye(o,476,t9(s["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&d9(o,s),p9(o,s,e,r),ye(o,130),o.end()}function x9(e,t){e.l+=10;var n=Pn(e);return{name:n}}var E9=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function C9(e){return!e.Workbook||!e.Workbook.WBProps?"false":q8(e.Workbook.WBProps.date1904)?"true":"false"}var w9="][*?/\\".split("");function Ux(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return w9.forEach(function(r){if(e.indexOf(r)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}}),n}function b9(e,t,n){e.forEach(function(r,o){Ux(r);for(var a=0;a<o;++a)if(r==e[a])throw new Error("Duplicate Sheet Name: "+r);if(n){var s=t&&t[o]&&t[o].CodeName||r;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function A9(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];b9(e.SheetNames,t,!!e.vbaraw);for(var n=0;n<e.SheetNames.length;++n)KL(e.Sheets[e.SheetNames[n]],e.SheetNames[n],n)}function jx(e){var t=[$t];t[t.length]=Se("workbook",null,{xmlns:Ys[0],"xmlns:r":un.r});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(E9.forEach(function(l){e.Workbook.WBProps[l[0]]!=null&&e.Workbook.WBProps[l[0]]!=l[1]&&(r[l[0]]=e.Workbook.WBProps[l[0]])}),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=Se("workbookPr",null,r);var o=e.Workbook&&e.Workbook.Sheets||[],a=0;if(o&&o[0]&&o[0].Hidden){for(t[t.length]="<bookViews>",a=0;a!=e.SheetNames.length&&!(!o[a]||!o[a].Hidden);++a);a==e.SheetNames.length&&(a=0),t[t.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var s={name:gt(e.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),o[a])switch(o[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=Se("sheet",null,s)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(l){var c={name:l.Name};l.Comment&&(c.comment=l.Comment),l.Sheet!=null&&(c.localSheetId=""+l.Sheet),l.Hidden&&(c.hidden="1"),l.Ref&&(t[t.length]=Se("definedName",gt(l.Ref),c))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function S9(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=jh(e),n.name=Pn(e),n}function T9(e,t){return t||(t=fe(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Gh(e.strRelID,t),dn(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function k9(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var o=t>8?Pn(e):"";return o.length>0&&(n.CodeName=o),n.autoCompressPictures=!!(r&65536),n.backupFile=!!(r&64),n.checkCompatibility=!!(r&4096),n.date1904=!!(r&1),n.filterPrivacy=!!(r&8),n.hidePivotFieldList=!!(r&1024),n.promptedSolutions=!!(r&16),n.publishItems=!!(r&2048),n.refreshAllConnections=!!(r&262144),n.saveExternalLinkValues=!!(r&128),n.showBorderUnselectedTables=!!(r&4),n.showInkAnnotation=!!(r&32),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(r&32768),n.updateLinks=["userSet","never","always"][r>>8&3],n}function O9(e,t){t||(t=fe(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),V1(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function P9(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var o=e.read_shift(4),a=C6(e),s=HL(e,0,n),l=Uh(e);e.l=r;var c={Name:a,Ptg:s};return o<268435455&&(c.Sheet=o),l&&(c.Comment=l),c}function _9(e,t){ye(e,143);for(var n=0;n!=t.SheetNames.length;++n){var r=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,o={Hidden:r,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]};ye(e,156,T9(o))}ye(e,144)}function D9(e,t){t||(t=fe(127));for(var n=0;n!=4;++n)t.write_shift(4,0);return dn("SheetJS",t),dn(su.version,t),dn(su.version,t),dn("7262",t),t.length>t.l?t.slice(0,t.l):t}function I9(e,t){t||(t=fe(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var n=120;return t.write_shift(1,n),t.length>t.l?t.slice(0,t.l):t}function F9(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var n=t.Workbook.Sheets,r=0,o=-1,a=-1;r<n.length;++r)!n[r]||!n[r].Hidden&&o==-1?o=r:n[r].Hidden==1&&a==-1&&(a=r);a>o||(ye(e,135),ye(e,158,I9(o)),ye(e,136))}}function N9(e,t){var n=$n();return ye(n,131),ye(n,128,D9()),ye(n,153,O9(e.Workbook&&e.Workbook.WBProps||null)),F9(n,e),_9(n,e),ye(n,132),n.end()}function B9(e,t,n){return(t.slice(-4)===".bin"?N9:jx)(e)}function R9(e,t,n,r,o){return(t.slice(-4)===".bin"?y9:Vx)(e,n,r,o)}function M9(e,t,n){return(t.slice(-4)===".bin"?tM:Ex)(e,n)}function L9(e,t,n){return(t.slice(-4)===".bin"?OR:vx)(e,n)}function V9(e,t,n){return(t.slice(-4)===".bin"?mM:Tx)(e)}function H9(e){return(e.slice(-4)===".bin"?cM:Ax)()}function U9(e,t){var n=[];return e.Props&&n.push(M6(e.Props,t)),e.Custprops&&n.push(L6(e.Props,e.Custprops)),n.join("")}function j9(){return""}function G9(e,t){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(r,o){var a=[];a.push(Se("NumberFormat",null,{"ss:Format":gt(Gt[r.numFmtId])}));var s={"ss:ID":"s"+(21+o)};n.push(Se("Style",a.join(""),s))}),Se("Styles",n.join(""))}function Gx(e){return Se("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Jh(e.Ref,{r:0,c:0})})}function z9(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],r=0;r<t.length;++r){var o=t[r];o.Sheet==null&&(o.Name.match(/^_xlfn\./)||n.push(Gx(o)))}return Se("Names",n.join(""))}function W9(e,t,n,r){if(!e||!((r||{}).Workbook||{}).Names)return"";for(var o=r.Workbook.Names,a=[],s=0;s<o.length;++s){var l=o[s];l.Sheet==n&&(l.Name.match(/^_xlfn\./)||a.push(Gx(l)))}return a.join("")}function K9(e,t,n,r){if(!e)return"";var o=[];if(e["!margins"]&&(o.push("<PageSetup>"),e["!margins"].header&&o.push(Se("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&o.push(Se("Footer",null,{"x:Margin":e["!margins"].footer})),o.push(Se("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),o.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)o.push(Se("Visible",r.Workbook.Sheets[n].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<n&&!(r.Workbook.Sheets[a]&&!r.Workbook.Sheets[a].Hidden);++a);a==n&&o.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&o.push("<DisplayRightToLeft/>"),e["!protect"]&&(o.push(xn("ProtectContents","True")),e["!protect"].objects&&o.push(xn("ProtectObjects","True")),e["!protect"].scenarios&&o.push(xn("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?o.push(xn("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&o.push(xn("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&o.push("<"+s[1]+"/>")})),o.length==0?"":Se("WorksheetOptions",o.join(""),{xmlns:io.x})}function Y9(e){return e.map(function(t){var n=Z8(t.t||""),r=Se("ss:Data",n,{xmlns:"http://www.w3.org/TR/REC-html40"});return Se("Comment",r,{"ss:Author":t.a})}).join("")}function X9(e,t,n,r,o,a,s){if(!e||e.v==null&&e.f==null)return"";var l={};if(e.f&&(l["ss:Formula"]="="+gt(Jh(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var c=fn(e.F.slice(t.length+1));l["ss:ArrayRange"]="RC:R"+(c.r==s.r?"":"["+(c.r-s.r)+"]")+"C"+(c.c==s.c?"":"["+(c.c-s.c)+"]")}if(e.l&&e.l.Target&&(l["ss:HRef"]=gt(e.l.Target),e.l.Tooltip&&(l["x:HRefScreenTip"]=gt(e.l.Tooltip))),n["!merges"])for(var u=n["!merges"],f=0;f!=u.length;++f)u[f].s.c!=s.c||u[f].s.r!=s.r||(u[f].e.c>u[f].s.c&&(l["ss:MergeAcross"]=u[f].e.c-u[f].s.c),u[f].e.r>u[f].s.r&&(l["ss:MergeDown"]=u[f].e.r-u[f].s.r));var d="",h="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":d="Number",h=String(e.v);break;case"b":d="Boolean",h=e.v?"1":"0";break;case"e":d="Error",h=Cl[e.v];break;case"d":d="DateTime",h=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Gt[14]);break;case"s":d="String",h=J8(e.v||"");break}var p=na(r.cellXfs,e,r);l["ss:StyleID"]="s"+(21+p),l["ss:Index"]=s.c+1;var g=e.v!=null?h:"",v=e.t=="z"?"":'<Data ss:Type="'+d+'">'+g+"</Data>";return(e.c||[]).length>0&&(v+=Y9(e.c)),Se("Cell",v,l)}function Q9(e,t){var n='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=xx(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(n+=' ss:Hidden="1"')),n+">"}function J9(e,t,n,r){if(!e["!ref"])return"";var o=Dt(e["!ref"]),a=e["!merges"]||[],s=0,l=[];e["!cols"]&&e["!cols"].forEach(function(m,y){Yh(m);var E=!!m.width,x=Iu(y,m),C={"ss:Index":y+1};E&&(C["ss:Width"]=ku(x.width)),m.hidden&&(C["ss:Hidden"]="1"),l.push(Se("Column",null,C))});for(var c=Array.isArray(e),u=o.s.r;u<=o.e.r;++u){for(var f=[Q9(u,(e["!rows"]||[])[u])],d=o.s.c;d<=o.e.c;++d){var h=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>d)&&!(a[s].s.r>u)&&!(a[s].e.c<d)&&!(a[s].e.r<u)){(a[s].s.c!=d||a[s].s.r!=u)&&(h=!0);break}if(!h){var p={r:u,c:d},g=mt(p),v=c?(e[u]||[])[d]:e[g];f.push(X9(v,g,e,t,n,r,p))}}f.push("</Row>"),f.length>2&&l.push(f.join(""))}return l.join("")}function Z9(e,t,n){var r=[],o=n.SheetNames[e],a=n.Sheets[o],s=a?W9(a,t,e,n):"";return s.length>0&&r.push("<Names>"+s+"</Names>"),s=a?J9(a,t,e,n):"",s.length>0&&r.push("<Table>"+s+"</Table>"),r.push(K9(a,t,e,n)),r.join("")}function q9(e,t){t||(t={}),e.SSF||(e.SSF=qn(Gt)),e.SSF&&(vu(),pu(e.SSF),t.revssf=gu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],na(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(U9(e,t)),n.push(j9()),n.push(""),n.push("");for(var r=0;r<e.SheetNames.length;++r)n.push(Se("Worksheet",Z9(r,t,e),{"ss:Name":gt(e.SheetNames[r])}));return n[2]=G9(e,t),n[3]=z9(e),$t+Se("Workbook",n.join(""),{xmlns:io.ss,"xmlns:o":io.o,"xmlns:x":io.x,"xmlns:ss":io.ss,"xmlns:dt":io.dt,"xmlns:html":io.html})}var $h={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function $9(e,t){var n=[],r=[],o=[],a=0,s,l=i1(z1,"n"),c=i1(W1,"n");if(e.Props)for(s=yn(e.Props),a=0;a<s.length;++a)(Object.prototype.hasOwnProperty.call(l,s[a])?n:Object.prototype.hasOwnProperty.call(c,s[a])?r:o).push([s[a],e.Props[s[a]]]);if(e.Custprops)for(s=yn(e.Custprops),a=0;a<s.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},s[a])||(Object.prototype.hasOwnProperty.call(l,s[a])?n:Object.prototype.hasOwnProperty.call(c,s[a])?r:o).push([s[a],e.Custprops[s[a]]]);var u=[];for(a=0;a<o.length;++a)ox.indexOf(o[a][0])>-1||q1.indexOf(o[a][0])>-1||o[a][1]!=null&&u.push(o[a]);r.length&&At.utils.cfb_add(t,"/SummaryInformation",ax(r,$h.SI,c,W1)),(n.length||u.length)&&At.utils.cfb_add(t,"/DocumentSummaryInformation",ax(n,$h.DSI,l,z1,u.length?u:null,$h.UDI))}function e7(e,t){var n=t||{},r=At.utils.cfb_new({root:"R"}),o="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":o="/Workbook",n.biff=8;break;case"biff5":o="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return At.utils.cfb_add(r,o,zx(e,n)),n.biff==8&&(e.Props||e.Custprops)&&$9(e,r),n.biff==8&&e.vbaraw&&yM(r,At.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),r}var t7={0:{f:r5},1:{f:d5},2:{f:I5},3:{f:E5},4:{f:g5},5:{f:O5},6:{f:M5},7:{f:A5},8:{f:z5},9:{f:G5},10:{f:U5},11:{f:j5},12:{f:p5},13:{f:N5},14:{f:w5},15:{f:y5},16:{f:_5},17:{f:V5},18:{f:T5},19:{f:Hh},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:P9},40:{},42:{},43:{f:MR},44:{f:BR},45:{f:HR},46:{f:jR},47:{f:UR},48:{},49:{f:p6},50:{},51:{f:rM},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:vR},62:{f:R5},63:{f:uM},64:{f:s9},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ar,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:n9},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:u5},148:{f:i5,p:16},151:{f:J5},152:{},153:{f:k9},154:{},155:{},156:{f:S9},157:{},158:{},159:{T:1,f:SR},160:{T:-1},161:{T:1,f:Wa},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:W5},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:nM},336:{T:-1},337:{f:iM,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:jh},357:{},358:{},359:{},360:{T:1},361:{},362:{f:cR},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Z5},427:{f:q5},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:e9},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:c5},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:X5},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:jh},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:vM},633:{T:1},634:{T:-1},635:{T:1,f:hM},636:{T:-1},637:{f:y6},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:x9},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:i9},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function Te(e,t,n,r){var o=t;if(!isNaN(o)){var a=r||(n||[]).length||0,s=e.next(4);s.write_shift(2,o),s.write_shift(2,a),a>0&&Rh(n)&&e.push(n)}}function n7(e,t,n,r){var o=r||(n||[]).length||0;if(o<=8224)return Te(e,t,n,o);var a=t;if(!isNaN(a)){for(var s=n.parts||[],l=0,c=0,u=0;u+(s[l]||8224)<=8224;)u+=s[l]||8224,l++;var f=e.next(4);for(f.write_shift(2,a),f.write_shift(2,u),e.push(n.slice(c,c+u)),c+=u;c<o;){for(f=e.next(4),f.write_shift(2,60),u=0;u+(s[l]||8224)<=8224;)u+=s[l]||8224,l++;f.write_shift(2,u),e.push(n.slice(c,c+u)),c+=u}}}function Sl(e,t,n){return e||(e=fe(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function o7(e,t,n,r){var o=fe(9);return Sl(o,e,t),ix(n,r||"b",o),o}function r7(e,t,n){var r=fe(8+2*n.length);return Sl(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}function a7(e,t,n,r){if(t.v!=null)switch(t.t){case"d":case"n":var o=t.t=="d"?Zn(Vn(t.v)):t.v;o==(o|0)&&o>=0&&o<65536?Te(e,2,xR(n,r,o)):Te(e,3,yR(n,r,o));return;case"b":case"e":Te(e,5,o7(n,r,t.v,t.t));return;case"s":case"str":Te(e,4,r7(n,r,(t.v||"").slice(0,255)));return}Te(e,1,Sl(null,n,r))}function s7(e,t,n,r){var o=Array.isArray(t),a=Dt(t["!ref"]||"A1"),s,l="",c=[];if(a.e.c>255||a.e.r>16383){if(r.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),s=en(a)}for(var u=a.s.r;u<=a.e.r;++u){l=En(u);for(var f=a.s.c;f<=a.e.c;++f){u===a.s.r&&(c[f]=On(f)),s=c[f]+l;var d=o?(t[u]||[])[f]:t[s];d&&a7(e,d,u,f)}}}function i7(e,t){for(var n=t||{},r=$n(),o=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==n.sheet&&(o=a);if(o==0&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return Te(r,n.biff==4?1033:n.biff==3?521:9,Wh(e,16,n)),s7(r,e.Sheets[e.SheetNames[o]],o,n),Te(r,10),r.end()}function l7(e,t,n){Te(e,49,tR({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}function c7(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var o=r[0];o<=r[1];++o)t[o]!=null&&Te(e,1054,rR(o,t[o],n))})}function u7(e,t){var n=fe(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),Te(e,2151,n),n=fe(39),n.write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),fx(Dt(t["!ref"]||"A1"),n),n.write_shift(4,4),Te(e,2152,n)}function f7(e,t){for(var n=0;n<16;++n)Te(e,224,dx({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(r){Te(e,224,dx(r,0,t))})}function d7(e,t){for(var n=0;n<t["!links"].length;++n){var r=t["!links"][n];Te(e,440,dR(r)),r[1].Tooltip&&Te(e,2048,hR(r))}delete t["!links"]}function h7(e,t){if(t){var n=0;t.forEach(function(r,o){++n<=256&&r&&Te(e,125,gR(Iu(o,r),o))})}}function p7(e,t,n,r,o){var a=16+na(o.cellXfs,t,o);if(t.v==null&&!t.bf){Te(e,513,Xa(n,r,a));return}if(t.bf)Te(e,6,LL(t,n,r,o,a));else switch(t.t){case"d":case"n":var s=t.t=="d"?Zn(Vn(t.v)):t.v;Te(e,515,lR(n,r,s,a));break;case"b":case"e":Te(e,517,iR(n,r,t.v,a,o,t.t));break;case"s":case"str":if(o.bookSST){var l=qh(o.Strings,t.v,o.revStrings);Te(e,253,nR(n,r,l,a))}else Te(e,516,oR(n,r,(t.v||"").slice(0,255),a,o));break;default:Te(e,513,Xa(n,r,a))}}function v7(e,t,n){var r=$n(),o=n.SheetNames[e],a=n.Sheets[o]||{},s=(n||{}).Workbook||{},l=(s.Sheets||[])[e]||{},c=Array.isArray(a),u=t.biff==8,f,d="",h=[],p=Dt(a["!ref"]||"A1"),g=u?65536:16384;if(p.e.c>255||p.e.r>=g){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");p.e.c=Math.min(p.e.c,255),p.e.r=Math.min(p.e.c,g-1)}Te(r,2057,Wh(n,16,t)),Te(r,13,So(1)),Te(r,12,So(100)),Te(r,15,Hn(!0)),Te(r,17,Hn(!1)),Te(r,16,Ka(.001)),Te(r,95,Hn(!0)),Te(r,42,Hn(!1)),Te(r,43,Hn(!1)),Te(r,130,So(1)),Te(r,128,sR([0,0])),Te(r,131,Hn(!1)),Te(r,132,Hn(!1)),u&&h7(r,a["!cols"]),Te(r,512,aR(p,t)),u&&(a["!links"]=[]);for(var v=p.s.r;v<=p.e.r;++v){d=En(v);for(var m=p.s.c;m<=p.e.c;++m){v===p.s.r&&(h[m]=On(m)),f=h[m]+d;var y=c?(a[v]||[])[m]:a[f];y&&(p7(r,y,v,m,t),u&&y.l&&a["!links"].push([f,y.l]))}}var E=l.CodeName||l.name||o;return u&&Te(r,574,eR((s.Views||[])[0])),u&&(a["!merges"]||[]).length&&Te(r,229,fR(a["!merges"])),u&&d7(r,a),Te(r,442,cx(E)),u&&u7(r,a),Te(r,10),r.end()}function g7(e,t,n){var r=$n(),o=(e||{}).Workbook||{},a=o.Sheets||[],s=o.WBProps||{},l=n.biff==8,c=n.biff==5;if(Te(r,2057,Wh(e,5,n)),n.bookType=="xla"&&Te(r,135),Te(r,225,l?So(1200):null),Te(r,193,U6(2)),c&&Te(r,191),c&&Te(r,192),Te(r,226),Te(r,92,J6("SheetJS",n)),Te(r,66,So(l?1200:1252)),l&&Te(r,353,So(0)),l&&Te(r,448),Te(r,317,mR(e.SheetNames.length)),l&&e.vbaraw&&Te(r,211),l&&e.vbaraw){var u=s.CodeName||"ThisWorkbook";Te(r,442,cx(u))}Te(r,156,So(17)),Te(r,25,Hn(!1)),Te(r,18,Hn(!1)),Te(r,19,So(0)),l&&Te(r,431,Hn(!1)),l&&Te(r,444,So(0)),Te(r,61,$6()),Te(r,64,Hn(!1)),Te(r,141,So(0)),Te(r,34,Hn(C9(e)=="true")),Te(r,14,Hn(!0)),l&&Te(r,439,Hn(!1)),Te(r,218,So(0)),l7(r,e,n),c7(r,e.SSF,n),f7(r,n),l&&Te(r,352,Hn(!1));var f=r.end(),d=$n();l&&Te(d,140,pR()),l&&n.Strings&&n7(d,252,q6(n.Strings)),Te(d,10);var h=d.end(),p=$n(),g=0,v=0;for(v=0;v<e.SheetNames.length;++v)g+=(l?12:11)+(l?2:1)*e.SheetNames[v].length;var m=f.length+g+h.length;for(v=0;v<e.SheetNames.length;++v){var y=a[v]||{};Te(p,133,Z6({pos:m,hs:y.Hidden||0,dt:0,name:e.SheetNames[v]},n)),m+=t[v].length}var E=p.end();if(g!=E.length)throw new Error("BS8 "+g+" != "+E.length);var x=[];return f.length&&x.push(f),E.length&&x.push(E),h.length&&x.push(h),mn(x)}function m7(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=qn(Gt)),e&&e.SSF&&(vu(),pu(e.SSF),n.revssf=gu(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,np(n),n.cellXfs=[],na(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var o=0;o<e.SheetNames.length;++o)r[r.length]=v7(o,n,e);return r.unshift(g7(e,r,n)),mn(r)}function zx(e,t){for(var n=0;n<=e.SheetNames.length;++n){var r=e.Sheets[e.SheetNames[n]];if(!(!r||!r["!ref"])){var o=uo(r["!ref"]);o.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[n]+"' extends beyond column IV (255). Data may be lost.")}}var a=t||{};switch(a.biff||2){case 8:case 5:return m7(e,t);case 4:case 3:case 2:return i7(e,t)}throw new Error("invalid type "+a.bookType+" for BIFF")}function y7(e,t,n,r){for(var o=e["!merges"]||[],a=[],s=t.s.c;s<=t.e.c;++s){for(var l=0,c=0,u=0;u<o.length;++u)if(!(o[u].s.r>n||o[u].s.c>s)&&!(o[u].e.r<n||o[u].e.c<s)){if(o[u].s.r<n||o[u].s.c<s){l=-1;break}l=o[u].e.r-o[u].s.r+1,c=o[u].e.c-o[u].s.c+1;break}if(!(l<0)){var f=mt({r:n,c:s}),d=r.dense?(e[n]||[])[s]:e[f],h=d&&d.v!=null&&(d.h||Q8(d.w||(Pr(d),d.w)||""))||"",p={};l>1&&(p.rowspan=l),c>1&&(p.colspan=c),r.editable?h='<span contenteditable="true">'+h+"</span>":d&&(p["data-t"]=d&&d.t||"z",d.v!=null&&(p["data-v"]=d.v),d.z!=null&&(p["data-z"]=d.z),d.l&&(d.l.Target||"#").charAt(0)!="#"&&(h='<a href="'+d.l.Target+'">'+h+"</a>")),p.id=(r.id||"sjs")+"-"+f,a.push(Se("td",h,p))}}var g="<tr>";return g+a.join("")+"</tr>"}var x7='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',E7="</body></html>";function C7(e,t,n){var r=[];return r.join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}function Wx(e,t){var n=t||{},r=n.header!=null?n.header:x7,o=n.footer!=null?n.footer:E7,a=[r],s=uo(e["!ref"]);n.dense=Array.isArray(e),a.push(C7(e,s,n));for(var l=s.s.r;l<=s.e.r;++l)a.push(y7(e,s,l,n));return a.push("</table>"+o),a.join("")}function Kx(e,t,n){var r=n||{},o=0,a=0;if(r.origin!=null)if(typeof r.origin=="number")o=r.origin;else{var s=typeof r.origin=="string"?fn(r.origin):r.origin;o=s.r,a=s.c}var l=t.getElementsByTagName("tr"),c=Math.min(r.sheetRows||1e7,l.length),u={s:{r:0,c:0},e:{r:o,c:a}};if(e["!ref"]){var f=uo(e["!ref"]);u.s.r=Math.min(u.s.r,f.s.r),u.s.c=Math.min(u.s.c,f.s.c),u.e.r=Math.max(u.e.r,f.e.r),u.e.c=Math.max(u.e.c,f.e.c),o==-1&&(u.e.r=o=f.e.r+1)}var d=[],h=0,p=e["!rows"]||(e["!rows"]=[]),g=0,v=0,m=0,y=0,E=0,x=0;for(e["!cols"]||(e["!cols"]=[]);g<l.length&&v<c;++g){var C=l[g];if(Xx(C)){if(r.display)continue;p[v]={hidden:!0}}var A=C.children;for(m=y=0;m<A.length;++m){var w=A[m];if(!(r.display&&Xx(w))){var b=w.hasAttribute("data-v")?w.getAttribute("data-v"):w.hasAttribute("v")?w.getAttribute("v"):$8(w.innerHTML),T=w.getAttribute("data-z")||w.getAttribute("z");for(h=0;h<d.length;++h){var S=d[h];S.s.c==y+a&&S.s.r<v+o&&v+o<=S.e.r&&(y=S.e.c+1-a,h=-1)}x=+w.getAttribute("colspan")||1,((E=+w.getAttribute("rowspan")||1)>1||x>1)&&d.push({s:{r:v+o,c:y+a},e:{r:v+o+(E||1)-1,c:y+a+(x||1)-1}});var _={t:"s",v:b},I=w.getAttribute("data-t")||w.getAttribute("t")||"";b!=null&&(b.length==0?_.t=I||"z":r.raw||b.trim().length==0||I=="s"||(b==="TRUE"?_={t:"b",v:!0}:b==="FALSE"?_={t:"b",v:!1}:isNaN(kr(b))?isNaN(hl(b).getDate())||(_={t:"d",v:Vn(b)},r.cellDates||(_={t:"n",v:Zn(_.v)}),_.z=r.dateNF||Gt[14]):_={t:"n",v:kr(b)})),_.z===void 0&&T!=null&&(_.z=T);var H="",B=w.getElementsByTagName("A");if(B&&B.length)for(var j=0;j<B.length&&!(B[j].hasAttribute("href")&&(H=B[j].getAttribute("href"),H.charAt(0)!="#"));++j);H&&H.charAt(0)!="#"&&(_.l={Target:H}),r.dense?(e[v+o]||(e[v+o]=[]),e[v+o][y+a]=_):e[mt({c:y+a,r:v+o})]=_,u.e.c<y+a&&(u.e.c=y+a),y+=x}}++v}return d.length&&(e["!merges"]=(e["!merges"]||[]).concat(d)),u.e.r=Math.max(u.e.r,v-1+o),e["!ref"]=en(u),v>=c&&(e["!fullref"]=en((u.e.r=l.length-g+v-1+o,u))),e}function Yx(e,t){var n=t||{},r=n.dense?[]:{};return Kx(r,e,t)}function w7(e,t){return Ua(Yx(e,t),t)}function Xx(e){var t="",n=b7(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function b7(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var A7=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+vl({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return $t+t}}(),Qx=function(){var e=function(a){return gt(a).replace(/ +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=` <table:table-cell />
109
+ `,n=` <table:covered-table-cell/>
110
+ `,r=function(a,s,l){var c=[];c.push(' <table:table table:name="'+gt(s.SheetNames[l])+`" table:style-name="ta1">
111
+ `);var u=0,f=0,d=uo(a["!ref"]||"A1"),h=a["!merges"]||[],p=0,g=Array.isArray(a);if(a["!cols"])for(f=0;f<=d.e.c;++f)c.push(" <table:table-column"+(a["!cols"][f]?' table:style-name="co'+a["!cols"][f].ods+'"':"")+`></table:table-column>
112
+ `);var v="",m=a["!rows"]||[];for(u=0;u<d.s.r;++u)v=m[u]?' table:style-name="ro'+m[u].ods+'"':"",c.push(" <table:table-row"+v+`></table:table-row>
113
+ `);for(;u<=d.e.r;++u){for(v=m[u]?' table:style-name="ro'+m[u].ods+'"':"",c.push(" <table:table-row"+v+`>
114
+ `),f=0;f<d.s.c;++f)c.push(t);for(;f<=d.e.c;++f){var y=!1,E={},x="";for(p=0;p!=h.length;++p)if(!(h[p].s.c>f)&&!(h[p].s.r>u)&&!(h[p].e.c<f)&&!(h[p].e.r<u)){(h[p].s.c!=f||h[p].s.r!=u)&&(y=!0),E["table:number-columns-spanned"]=h[p].e.c-h[p].s.c+1,E["table:number-rows-spanned"]=h[p].e.r-h[p].s.r+1;break}if(y){c.push(n);continue}var C=mt({r:u,c:f}),A=g?(a[u]||[])[f]:a[C];if(A&&A.f&&(E["table:formula"]=gt(zL(A.f)),A.F&&A.F.slice(0,C.length)==C)){var w=uo(A.F);E["table:number-matrix-columns-spanned"]=w.e.c-w.s.c+1,E["table:number-matrix-rows-spanned"]=w.e.r-w.s.r+1}if(!A){c.push(t);continue}switch(A.t){case"b":x=A.v?"TRUE":"FALSE",E["office:value-type"]="boolean",E["office:boolean-value"]=A.v?"true":"false";break;case"n":x=A.w||String(A.v||0),E["office:value-type"]="float",E["office:value"]=A.v||0;break;case"s":case"str":x=A.v==null?"":A.v,E["office:value-type"]="string";break;case"d":x=A.w||Vn(A.v).toISOString(),E["office:value-type"]="date",E["office:date-value"]=Vn(A.v).toISOString(),E["table:style-name"]="ce1";break;default:c.push(t);continue}var b=e(x);if(A.l&&A.l.Target){var T=A.l.Target;T=T.charAt(0)=="#"?"#"+WL(T.slice(1)):T,T.charAt(0)!="#"&&!T.match(/^\w+:/)&&(T="../"+T),b=Se("text:a",b,{"xlink:href":T.replace(/&/g,"&amp;")})}c.push(" "+Se("table:table-cell",Se("text:p",b,{}),E)+`
115
+ `)}c.push(` </table:table-row>
116
+ `)}return c.push(` </table:table>
117
+ `),c.join("")},o=function(a,s){a.push(` <office:automatic-styles>
118
+ `),a.push(` <number:date-style style:name="N37" number:automatic-order="true">
119
+ `),a.push(` <number:month number:style="long"/>
120
+ `),a.push(` <number:text>/</number:text>
121
+ `),a.push(` <number:day number:style="long"/>
122
+ `),a.push(` <number:text>/</number:text>
123
+ `),a.push(` <number:year/>
124
+ `),a.push(` </number:date-style>
125
+ `);var l=0;s.SheetNames.map(function(u){return s.Sheets[u]}).forEach(function(u){if(u&&u["!cols"]){for(var f=0;f<u["!cols"].length;++f)if(u["!cols"][f]){var d=u["!cols"][f];if(d.width==null&&d.wpx==null&&d.wch==null)continue;Yh(d),d.ods=l;var h=u["!cols"][f].wpx+"px";a.push(' <style:style style:name="co'+l+`" style:family="table-column">
126
+ `),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+h+`"/>
127
+ `),a.push(` </style:style>
128
+ `),++l}}});var c=0;s.SheetNames.map(function(u){return s.Sheets[u]}).forEach(function(u){if(u&&u["!rows"]){for(var f=0;f<u["!rows"].length;++f)if(u["!rows"][f]){u["!rows"][f].ods=c;var d=u["!rows"][f].hpx+"px";a.push(' <style:style style:name="ro'+c+`" style:family="table-row">
129
+ `),a.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+d+`"/>
130
+ `),a.push(` </style:style>
131
+ `),++c}}}),a.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
132
+ `),a.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
133
+ `),a.push(` </style:style>
134
+ `),a.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
135
+ `),a.push(` </office:automatic-styles>
136
+ `)};return function(s,l){var c=[$t],u=vl({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),f=vl({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});l.bookType=="fods"?(c.push("<office:document"+u+f+`>
137
+ `),c.push(J1().replace(/office:document-meta/g,"office:meta"))):c.push("<office:document-content"+u+`>
138
+ `),o(c,s),c.push(` <office:body>
139
+ `),c.push(` <office:spreadsheet>
140
+ `);for(var d=0;d!=s.SheetNames.length;++d)c.push(r(s.Sheets[s.SheetNames[d]],s,d));return c.push(` </office:spreadsheet>
141
+ `),c.push(` </office:body>
142
+ `),l.bookType=="fods"?c.push("</office:document>"):c.push("</office:document-content>"),c.join("")}}();function Jx(e,t){if(t.bookType=="fods")return Qx(e,t);var n=_h(),r="",o=[],a=[];return r="mimetype",nt(n,r,"application/vnd.oasis.opendocument.spreadsheet"),r="content.xml",nt(n,r,Qx(e,t)),o.push([r,"text/xml"]),a.push([r,"ContentFile"]),r="styles.xml",nt(n,r,A7(e,t)),o.push([r,"text/xml"]),a.push([r,"StylesFile"]),r="meta.xml",nt(n,r,$t+J1()),o.push([r,"text/xml"]),a.push([r,"MetadataFile"]),r="manifest.rdf",nt(n,r,R6(a)),o.push([r,"application/rdf+xml"]),r="META-INF/manifest.xml",nt(n,r,N6(o)),n}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Fu(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function S7(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Vo(Or(e))}function T7(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r<t.length;++r)if(e[n+r]!=t[r])continue e;return!0}return!1}function oa(e){var t=e.reduce(function(o,a){return o+a.length},0),n=new Uint8Array(t),r=0;return e.forEach(function(o){n.set(o,r),r+=o.length}),n}function k7(e,t,n){var r=Math.floor(n==0?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,o=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(r&127)<<1;for(var a=0;o>=1;++a,o/=256)e[t+a]=o&255;e[t+15]|=n>=0?0:128}function Tl(e,t){var n=t?t[0]:0,r=e[n]&127;e:if(e[n++]>=128&&(r|=(e[n]&127)<<7,e[n++]<128||(r|=(e[n]&127)<<14,e[n++]<128)||(r|=(e[n]&127)<<21,e[n++]<128)||(r+=(e[n]&127)*Math.pow(2,28),++n,e[n++]<128)||(r+=(e[n]&127)*Math.pow(2,35),++n,e[n++]<128)||(r+=(e[n]&127)*Math.pow(2,42),++n,e[n++]<128)))break e;return t&&(t[0]=n),r}function xt(e){var t=new Uint8Array(7);t[0]=e&127;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383||(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)||(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)||(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)||(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103))break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function ni(e){var t=0,n=e[t]&127;e:if(e[t++]>=128){if(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128))break e;n|=(e[t]&127)<<28}return n}function sn(e){for(var t=[],n=[0];n[0]<e.length;){var r=n[0],o=Tl(e,n),a=o&7;o=Math.floor(o/8);var s=0,l;if(o==0)break;switch(a){case 0:{for(var c=n[0];e[n[0]++]>=128;);l=e.slice(c,n[0])}break;case 5:s=4,l=e.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,l=e.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=Tl(e,n),l=e.slice(n[0],n[0]+s),n[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(o," at offset ").concat(r))}var u={data:l,type:a};t[o]==null?t[o]=[u]:t[o].push(u)}return t}function wn(e){var t=[];return e.forEach(function(n,r){n.forEach(function(o){o.data&&(t.push(xt(r*8+o.type)),o.type==2&&t.push(xt(o.data.length)),t.push(o.data))})}),oa(t)}function jo(e){for(var t,n=[],r=[0];r[0]<e.length;){var o=Tl(e,r),a=sn(e.slice(r[0],r[0]+o));r[0]+=o;var s={id:ni(a[1][0].data),messages:[]};a[2].forEach(function(l){var c=sn(l.data),u=ni(c[3][0].data);s.messages.push({meta:c,data:e.slice(r[0],r[0]+u)}),r[0]+=u}),(t=a[3])!=null&&t[0]&&(s.merge=ni(a[3][0].data)>>>0>0),n.push(s)}return n}function oi(e){var t=[];return e.forEach(function(n){var r=[];r[1]=[{data:xt(n.id),type:0}],r[2]=[],n.merge!=null&&(r[3]=[{data:xt(+!!n.merge),type:0}]);var o=[];n.messages.forEach(function(s){o.push(s.data),s.meta[3]=[{type:0,data:xt(s.data.length)}],r[2].push({data:wn(s.meta),type:2})});var a=wn(r);t.push(xt(a.length)),t.push(a),o.forEach(function(s){return t.push(s)})}),oa(t)}function O7(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=Tl(t,n),o=[];n[0]<t.length;){var a=t[n[0]]&3;if(a==0){var s=t[n[0]++]>>2;if(s<60)++s;else{var l=s-59;s=t[n[0]],l>1&&(s|=t[n[0]+1]<<8),l>2&&(s|=t[n[0]+2]<<16),l>3&&(s|=t[n[0]+3]<<24),s>>>=0,s++,n[0]+=l}o.push(t.slice(n[0],n[0]+s)),n[0]+=s;continue}else{var c=0,u=0;if(a==1?(u=(t[n[0]]>>2&7)+4,c=(t[n[0]++]&224)<<3,c|=t[n[0]++]):(u=(t[n[0]++]>>2)+1,a==2?(c=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(c=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),o=[oa(o)],c==0)throw new Error("Invalid offset 0");if(c>o[0].length)throw new Error("Invalid offset beyond length");if(u>=c)for(o.push(o[0].slice(-c)),u-=c;u>=o[o.length-1].length;)o.push(o[o.length-1]),u-=o[o.length-1].length;o.push(o[0].slice(-c,-c+u))}}var f=oa(o);if(f.length!=r)throw new Error("Unexpected length: ".concat(f.length," != ").concat(r));return f}function Go(e){for(var t=[],n=0;n<e.length;){var r=e[n++],o=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(O7(r,e.slice(n,n+o))),n+=o}if(n!==e.length)throw new Error("data is not a valid framed stream!");return oa(t)}function ri(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),o=new Uint8Array(4);t.push(o);var a=xt(r),s=a.length;t.push(a),r<=60?(s++,t.push(new Uint8Array([r-1<<2]))):r<=256?(s+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(s+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(s+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(s+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),s+=r,o[0]=0,o[1]=s&255,o[2]=s>>8&255,o[3]=s>>16&255,n+=r}return oa(t)}function ep(e,t){var n=new Uint8Array(32),r=Fu(n),o=12,a=0;switch(n[0]=5,e.t){case"n":n[1]=2,k7(n,o,e.v),a|=1,o+=16;break;case"b":n[1]=6,r.setFloat64(o,e.v?1:0,!0),a|=2,o+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(o,t.indexOf(e.v),!0),a|=8,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,a,!0),n.slice(0,o)}function tp(e,t){var n=new Uint8Array(32),r=Fu(n),o=12,a=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(o,e.v,!0),a|=32,o+=8;break;case"b":n[2]=6,r.setFloat64(o,e.v?1:0,!0),a|=32,o+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(o,t.indexOf(e.v),!0),a|=16,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,a,!0),n.slice(0,o)}function ra(e){var t=sn(e);return Tl(t[1][0].data)}function P7(e,t,n){var r,o,a,s;if(!((r=e[6])!=null&&r[0])||!((o=e[7])!=null&&o[0]))throw"Mutation only works on post-BNC storages!";var l=((s=(a=e[8])==null?void 0:a[0])==null?void 0:s.data)&&ni(e[8][0].data)>0||!1;if(l)throw"Math only works with normal offsets";for(var c=0,u=Fu(e[7][0].data),f=0,d=[],h=Fu(e[4][0].data),p=0,g=[],v=0;v<t.length;++v){if(t[v]==null){u.setUint16(v*2,65535,!0),h.setUint16(v*2,65535);continue}u.setUint16(v*2,f,!0),h.setUint16(v*2,p,!0);var m,y;switch(typeof t[v]){case"string":m=ep({t:"s",v:t[v]},n),y=tp({t:"s",v:t[v]},n);break;case"number":m=ep({t:"n",v:t[v]},n),y=tp({t:"n",v:t[v]},n);break;case"boolean":m=ep({t:"b",v:t[v]},n),y=tp({t:"b",v:t[v]},n);break;default:throw new Error("Unsupported value "+t[v])}d.push(m),f+=m.length,g.push(y),p+=y.length,++c}for(e[2][0].data=xt(c);v<e[7][0].data.length/2;++v)u.setUint16(v*2,65535,!0),h.setUint16(v*2,65535,!0);return e[6][0].data=oa(d),e[3][0].data=oa(g),c}function _7(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var r=uo(n["!ref"]);r.s.r=r.s.c=0;var o=!1;r.e.c>9&&(o=!0,r.e.c=9),r.e.r>49&&(o=!0,r.e.r=49),o&&console.error("The Numbers writer is currently limited to ".concat(en(r)));var a=Bu(n,{range:r,header:1}),s=["~Sh33tJ5~"];a.forEach(function(G){return G.forEach(function(z){typeof z=="string"&&s.push(z)})});var l={},c=[],u=At.read(t.numbers,{type:"base64"});u.FileIndex.map(function(G,z){return[G,u.FullPaths[z]]}).forEach(function(G){var z=G[0],U=G[1];if(z.type==2&&z.name.match(/\.iwa/)){var J=z.content,ne=Go(J),ce=jo(ne);ce.forEach(function(Q){c.push(Q.id),l[Q.id]={deps:[],location:U,type:ni(Q.messages[0].meta[1][0].data)}})}}),c.sort(function(G,z){return G-z});var f=c.filter(function(G){return G>1}).map(function(G){return[G,xt(G)]});u.FileIndex.map(function(G,z){return[G,u.FullPaths[z]]}).forEach(function(G){var z=G[0];if(G[1],!!z.name.match(/\.iwa/)){var U=jo(Go(z.content));U.forEach(function(J){J.messages.forEach(function(ne){f.forEach(function(ce){J.messages.some(function(Q){return ni(Q.meta[1][0].data)!=11006&&T7(Q.data,ce[1])})&&l[ce[0]].deps.push(J.id)})})})}});for(var d=At.find(u,l[1].location),h=jo(Go(d.content)),p,g=0;g<h.length;++g){var v=h[g];v.id==1&&(p=v)}var m=ra(sn(p.messages[0].data)[1][0].data);for(d=At.find(u,l[m].location),h=jo(Go(d.content)),g=0;g<h.length;++g)v=h[g],v.id==m&&(p=v);for(m=ra(sn(p.messages[0].data)[2][0].data),d=At.find(u,l[m].location),h=jo(Go(d.content)),g=0;g<h.length;++g)v=h[g],v.id==m&&(p=v);for(m=ra(sn(p.messages[0].data)[2][0].data),d=At.find(u,l[m].location),h=jo(Go(d.content)),g=0;g<h.length;++g)v=h[g],v.id==m&&(p=v);var y=sn(p.messages[0].data);{y[6][0].data=xt(r.e.r+1),y[7][0].data=xt(r.e.c+1);var E=ra(y[46][0].data),x=At.find(u,l[E].location),C=jo(Go(x.content));{for(var A=0;A<C.length&&C[A].id!=E;++A);if(C[A].id!=E)throw"Bad ColumnRowUIDMapArchive";var w=sn(C[A].messages[0].data);w[1]=[],w[2]=[],w[3]=[];for(var b=0;b<=r.e.c;++b){var T=[];T[1]=T[2]=[{type:0,data:xt(b+420690)}],w[1].push({type:2,data:wn(T)}),w[2].push({type:0,data:xt(b)}),w[3].push({type:0,data:xt(b)})}w[4]=[],w[5]=[],w[6]=[];for(var S=0;S<=r.e.r;++S)T=[],T[1]=T[2]=[{type:0,data:xt(S+726270)}],w[4].push({type:2,data:wn(T)}),w[5].push({type:0,data:xt(S)}),w[6].push({type:0,data:xt(S)});C[A].messages[0].data=wn(w)}x.content=ri(oi(C)),x.size=x.content.length,delete y[46];var _=sn(y[4][0].data);{_[7][0].data=xt(r.e.r+1);var I=sn(_[1][0].data),H=ra(I[2][0].data);x=At.find(u,l[H].location),C=jo(Go(x.content));{if(C[0].id!=H)throw"Bad HeaderStorageBucket";var B=sn(C[0].messages[0].data);for(S=0;S<a.length;++S){var j=sn(B[2][0].data);j[1][0].data=xt(S),j[4][0].data=xt(a[S].length),B[2][S]={type:B[2][0].type,data:wn(j)}}C[0].messages[0].data=wn(B)}x.content=ri(oi(C)),x.size=x.content.length;var Z=ra(_[2][0].data);x=At.find(u,l[Z].location),C=jo(Go(x.content));{if(C[0].id!=Z)throw"Bad HeaderStorageBucket";for(B=sn(C[0].messages[0].data),b=0;b<=r.e.c;++b)j=sn(B[2][0].data),j[1][0].data=xt(b),j[4][0].data=xt(r.e.r+1),B[2][b]={type:B[2][0].type,data:wn(j)};C[0].messages[0].data=wn(B)}x.content=ri(oi(C)),x.size=x.content.length;var q=ra(_[4][0].data);(function(){for(var G=At.find(u,l[q].location),z=jo(Go(G.content)),U,J=0;J<z.length;++J){var ne=z[J];ne.id==q&&(U=ne)}var ce=sn(U.messages[0].data);{ce[3]=[];var Q=[];s.forEach(function(me,Ne){Q[1]=[{type:0,data:xt(Ne)}],Q[2]=[{type:0,data:xt(1)}],Q[3]=[{type:2,data:S7(me)}],ce[3].push({type:2,data:wn(Q)})})}U.messages[0].data=wn(ce);var X=oi(z),de=ri(X);G.content=de,G.size=G.content.length})();var K=sn(_[3][0].data);{var oe=K[1][0];delete K[2];var ge=sn(oe.data);{var Ae=ra(ge[2][0].data);(function(){for(var G=At.find(u,l[Ae].location),z=jo(Go(G.content)),U,J=0;J<z.length;++J){var ne=z[J];ne.id==Ae&&(U=ne)}var ce=sn(U.messages[0].data);{delete ce[6],delete K[7];var Q=new Uint8Array(ce[5][0].data);ce[5]=[];for(var X=0,de=0;de<=r.e.r;++de){var me=sn(Q);X+=P7(me,a[de],s),me[1][0].data=xt(de),ce[5].push({data:wn(me),type:2})}ce[1]=[{type:0,data:xt(r.e.c+1)}],ce[2]=[{type:0,data:xt(r.e.r+1)}],ce[3]=[{type:0,data:xt(X)}],ce[4]=[{type:0,data:xt(r.e.r+1)}]}U.messages[0].data=wn(ce);var Ne=oi(z),Fe=ri(Ne);G.content=Fe,G.size=G.content.length})()}oe.data=wn(ge)}_[3][0].data=wn(K)}y[4][0].data=wn(_)}p.messages[0].data=wn(y);var pe=oi(h),P=ri(pe);return d.content=P,d.size=d.content.length,u}function D7(e){return function(n){for(var r=0;r!=e.length;++r){var o=e[r];n[o[0]]===void 0&&(n[o[0]]=o[1]),o[2]==="n"&&(n[o[0]]=Number(n[o[0]]))}}}function np(e){D7([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function I7(e,t){return t.bookType=="ods"?Jx(e,t):t.bookType=="numbers"?_7(e,t):t.bookType=="xlsb"?F7(e,t):N7(e,t)}function F7(e,t){ei=1024,e&&!e.SSF&&(e.SSF=qn(Gt)),e&&e.SSF&&(vu(),pu(e.SSF),t.revssf=gu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Al?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n=t.bookType=="xlsb"?"bin":"xml",r=kx.indexOf(t.bookType)>-1,o=K1();np(t=t||{});var a=_h(),s="",l=0;if(t.cellXfs=[],na(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",nt(a,s,Z1(e.Props,t)),o.coreprops.push(s),yt(t.rels,2,s,ht.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var c=[],u=0;u<e.SheetNames.length;++u)(e.Workbook.Sheets[u]||{}).Hidden!=2&&c.push(e.SheetNames[u]);e.Props.SheetNames=c}for(e.Props.Worksheets=e.Props.SheetNames.length,nt(a,s,$1(e.Props)),o.extprops.push(s),yt(t.rels,3,s,ht.EXT_PROPS),e.Custprops!==e.Props&&yn(e.Custprops||{}).length>0&&(s="docProps/custom.xml",nt(a,s,ex(e.Custprops)),o.custprops.push(s),yt(t.rels,4,s,ht.CUST_PROPS)),l=1;l<=e.SheetNames.length;++l){var f={"!id":{}},d=e.Sheets[e.SheetNames[l-1]],h=(d||{})["!type"]||"sheet";switch(h){case"chart":default:s="xl/worksheets/sheet"+l+"."+n,nt(a,s,R9(l-1,s,t,e,f)),o.sheets.push(s),yt(t.wbrels,-1,"worksheets/sheet"+l+"."+n,ht.WS[0])}if(d){var p=d["!comments"],g=!1,v="";p&&p.length>0&&(v="xl/comments"+l+"."+n,nt(a,v,V9(p,v)),o.comments.push(v),yt(f,-1,"../comments"+l+"."+n,ht.CMNT),g=!0),d["!legacy"]&&g&&nt(a,"xl/drawings/vmlDrawing"+l+".vml",Sx(l,d["!comments"])),delete d["!comments"],delete d["!legacy"]}f["!id"].rId1&&nt(a,X1(s),qs(f))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+n,nt(a,s,L9(t.Strings,s,t)),o.strs.push(s),yt(t.wbrels,-1,"sharedStrings."+n,ht.SST)),s="xl/workbook."+n,nt(a,s,B9(e,s)),o.workbooks.push(s),yt(t.rels,1,s,ht.WB),s="xl/theme/theme1.xml",nt(a,s,bx(e.Themes,t)),o.themes.push(s),yt(t.wbrels,-1,"theme/theme1.xml",ht.THEME),s="xl/styles."+n,nt(a,s,M9(e,s,t)),o.styles.push(s),yt(t.wbrels,-1,"styles."+n,ht.STY),e.vbaraw&&r&&(s="xl/vbaProject.bin",nt(a,s,e.vbaraw),o.vba.push(s),yt(t.wbrels,-1,"vbaProject.bin",ht.VBA)),s="xl/metadata."+n,nt(a,s,H9(s)),o.metadata.push(s),yt(t.wbrels,-1,"metadata."+n,ht.XLMETA),nt(a,"[Content_Types].xml",Y1(o,t)),nt(a,"_rels/.rels",qs(t.rels)),nt(a,"xl/_rels/workbook."+n+".rels",qs(t.wbrels)),delete t.revssf,delete t.ssf,a}function N7(e,t){ei=1024,e&&!e.SSF&&(e.SSF=qn(Gt)),e&&e.SSF&&(vu(),pu(e.SSF),t.revssf=gu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Al?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=kx.indexOf(t.bookType)>-1,o=K1();np(t=t||{});var a=_h(),s="",l=0;if(t.cellXfs=[],na(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",nt(a,s,Z1(e.Props,t)),o.coreprops.push(s),yt(t.rels,2,s,ht.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var c=[],u=0;u<e.SheetNames.length;++u)(e.Workbook.Sheets[u]||{}).Hidden!=2&&c.push(e.SheetNames[u]);e.Props.SheetNames=c}e.Props.Worksheets=e.Props.SheetNames.length,nt(a,s,$1(e.Props)),o.extprops.push(s),yt(t.rels,3,s,ht.EXT_PROPS),e.Custprops!==e.Props&&yn(e.Custprops||{}).length>0&&(s="docProps/custom.xml",nt(a,s,ex(e.Custprops)),o.custprops.push(s),yt(t.rels,4,s,ht.CUST_PROPS));var f=["SheetJ5"];for(t.tcid=0,l=1;l<=e.SheetNames.length;++l){var d={"!id":{}},h=e.Sheets[e.SheetNames[l-1]],p=(h||{})["!type"]||"sheet";switch(p){case"chart":default:s="xl/worksheets/sheet"+l+"."+n,nt(a,s,Vx(l-1,t,e,d)),o.sheets.push(s),yt(t.wbrels,-1,"worksheets/sheet"+l+"."+n,ht.WS[0])}if(h){var g=h["!comments"],v=!1,m="";if(g&&g.length>0){var y=!1;g.forEach(function(E){E[1].forEach(function(x){x.T==!0&&(y=!0)})}),y&&(m="xl/threadedComments/threadedComment"+l+"."+n,nt(a,m,fM(g,f,t)),o.threadedcomments.push(m),yt(d,-1,"../threadedComments/threadedComment"+l+"."+n,ht.TCMNT)),m="xl/comments"+l+"."+n,nt(a,m,Tx(g)),o.comments.push(m),yt(d,-1,"../comments"+l+"."+n,ht.CMNT),v=!0}h["!legacy"]&&v&&nt(a,"xl/drawings/vmlDrawing"+l+".vml",Sx(l,h["!comments"])),delete h["!comments"],delete h["!legacy"]}d["!id"].rId1&&nt(a,X1(s),qs(d))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+n,nt(a,s,vx(t.Strings,t)),o.strs.push(s),yt(t.wbrels,-1,"sharedStrings."+n,ht.SST)),s="xl/workbook."+n,nt(a,s,jx(e)),o.workbooks.push(s),yt(t.rels,1,s,ht.WB),s="xl/theme/theme1.xml",nt(a,s,bx(e.Themes,t)),o.themes.push(s),yt(t.wbrels,-1,"theme/theme1.xml",ht.THEME),s="xl/styles."+n,nt(a,s,Ex(e,t)),o.styles.push(s),yt(t.wbrels,-1,"styles."+n,ht.STY),e.vbaraw&&r&&(s="xl/vbaProject.bin",nt(a,s,e.vbaraw),o.vba.push(s),yt(t.wbrels,-1,"vbaProject.bin",ht.VBA)),s="xl/metadata."+n,nt(a,s,Ax()),o.metadata.push(s),yt(t.wbrels,-1,"metadata."+n,ht.XLMETA),f.length>1&&(s="xl/persons/person.xml",nt(a,s,dM(f)),o.people.push(s),yt(t.wbrels,-1,"persons/person.xml",ht.PEOPLE)),nt(a,"[Content_Types].xml",Y1(o,t)),nt(a,"_rels/.rels",qs(t.rels)),nt(a,"xl/_rels/workbook."+n+".rels",qs(t.wbrels)),delete t.revssf,delete t.ssf,a}function B7(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=Ar(e.slice(0,12));break;case"binary":n=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function Zx(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return dl(t.file,At.write(e,{type:pt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return At.write(e,t)}function R7(e,t){var n=qn(t||{}),r=I7(e,n);return M7(r,n)}function M7(e,t){var n={},r=pt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var o=e.FullPaths?At.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if(typeof Deno<"u"&&typeof o=="string"){if(t.type=="binary"||t.type=="base64")return o;o=new Uint8Array(lu(o))}return t.password&&typeof encrypt_agile<"u"?Zx(encrypt_agile(o,t.password),t):t.type==="file"?dl(t.file,o):t.type=="string"?pl(o):o}function L7(e,t){var n=t||{},r=e7(e,n);return Zx(r,n)}function sr(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return cl(Or(r));case"binary":return Or(r);case"string":return e;case"file":return dl(t.file,r,"utf8");case"buffer":return pt?Sr(r,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(r):sr(r,{type:"binary"}).split("").map(function(o){return o.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function V7(e,t){switch(t.type){case"base64":return cl(e);case"binary":return e;case"string":return e;case"file":return dl(t.file,e,"binary");case"buffer":return pt?Sr(e,"binary"):e.split("").map(function(n){return n.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Nu(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",r=0;r<e.length;++r)n+=String.fromCharCode(e[r]);return t.type=="base64"?cl(n):t.type=="string"?pl(n):n;case"file":return dl(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function qx(e,t){d8(),A9(e);var n=qn(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),n.type=="array"){n.type="binary";var r=qx(e,n);return n.type="array",lu(r)}var o=0;if(n.sheet&&(typeof n.sheet=="number"?o=n.sheet:o=e.SheetNames.indexOf(n.sheet),!e.SheetNames[o]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return sr(q9(e,n),n);case"slk":case"sylk":return sr(CR.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"htm":case"html":return sr(Wx(e.Sheets[e.SheetNames[o]],n),n);case"txt":return V7(eE(e.Sheets[e.SheetNames[o]],n),n);case"csv":return sr(op(e.Sheets[e.SheetNames[o]],n),n,"\uFEFF");case"dif":return sr(wR.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"dbf":return Nu(ER.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"prn":return sr(bR.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"rtf":return sr(_R.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"eth":return sr(hx.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"fods":return sr(Jx(e,n),n);case"wk1":return Nu(px.sheet_to_wk1(e.Sheets[e.SheetNames[o]],n),n);case"wk3":return Nu(px.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),Nu(zx(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),L7(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return R7(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function H7(e,t,n,r,o,a,s,l){var c=En(n),u=l.defval,f=l.raw||!Object.prototype.hasOwnProperty.call(l,"raw"),d=!0,h=o===1?[]:{};if(o!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:n,enumerable:!1})}catch{h.__rowNum__=n}else h.__rowNum__=n;if(!s||e[n])for(var p=t.s.c;p<=t.e.c;++p){var g=s?e[n][p]:e[r[p]+c];if(g===void 0||g.t===void 0){if(u===void 0)continue;a[p]!=null&&(h[a[p]]=u);continue}var v=g.v;switch(g.t){case"z":if(v==null)break;continue;case"e":v=v==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+g.t)}if(a[p]!=null){if(v==null)if(g.t=="e"&&v===null)h[a[p]]=null;else if(u!==void 0)h[a[p]]=u;else if(f&&v===null)h[a[p]]=null;else continue;else h[a[p]]=f&&(g.t!=="n"||g.t==="n"&&l.rawNumbers!==!1)?v:Pr(g,v,l);v!=null&&(d=!1)}}return{row:h,isempty:d}}function Bu(e,t){if(e==null||e["!ref"]==null)return[];var n={t:"n",v:0},r=0,o=1,a=[],s=0,l="",c={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},f=u.range!=null?u.range:e["!ref"];switch(u.header===1?r=1:u.header==="A"?r=2:Array.isArray(u.header)?r=3:u.header==null&&(r=0),typeof f){case"string":c=Dt(f);break;case"number":c=Dt(e["!ref"]),c.s.r=f;break;default:c=f}r>0&&(o=0);var d=En(c.s.r),h=[],p=[],g=0,v=0,m=Array.isArray(e),y=c.s.r,E=0,x={};m&&!e[y]&&(e[y]=[]);var C=u.skipHidden&&e["!cols"]||[],A=u.skipHidden&&e["!rows"]||[];for(E=c.s.c;E<=c.e.c;++E)if(!(C[E]||{}).hidden)switch(h[E]=On(E),n=m?e[y][E]:e[h[E]+d],r){case 1:a[E]=E-c.s.c;break;case 2:a[E]=h[E];break;case 3:a[E]=u.header[E-c.s.c];break;default:if(n==null&&(n={w:"__EMPTY",t:"s"}),l=s=Pr(n,null,u),v=x[s]||0,!v)x[s]=1;else{do l=s+"_"+v++;while(x[l]);x[s]=v,x[l]=1}a[E]=l}for(y=c.s.r+o;y<=c.e.r;++y)if(!(A[y]||{}).hidden){var w=H7(e,c,y,h,r,a,m,u);(w.isempty===!1||(r===1?u.blankrows!==!1:u.blankrows))&&(p[g++]=w.row)}return p.length=g,p}var $x=/"/g;function U7(e,t,n,r,o,a,s,l){for(var c=!0,u=[],f="",d=En(n),h=t.s.c;h<=t.e.c;++h)if(r[h]){var p=l.dense?(e[n]||[])[h]:e[r[h]+d];if(p==null)f="";else if(p.v!=null){c=!1,f=""+(l.rawNumbers&&p.t=="n"?p.v:Pr(p,null,l));for(var g=0,v=0;g!==f.length;++g)if((v=f.charCodeAt(g))===o||v===a||v===34||l.forceQuotes){f='"'+f.replace($x,'""')+'"';break}f=="ID"&&(f='"ID"')}else p.f!=null&&!p.F?(c=!1,f="="+p.f,f.indexOf(",")>=0&&(f='"'+f.replace($x,'""')+'"')):f="";u.push(f)}return l.blankrows===!1&&c?null:u.join(s)}function op(e,t){var n=[],r=t??{};if(e==null||e["!ref"]==null)return"";var o=Dt(e["!ref"]),a=r.FS!==void 0?r.FS:",",s=a.charCodeAt(0),l=r.RS!==void 0?r.RS:`
143
+ `,c=l.charCodeAt(0),u=new RegExp((a=="|"?"\\|":a)+"+$"),f="",d=[];r.dense=Array.isArray(e);for(var h=r.skipHidden&&e["!cols"]||[],p=r.skipHidden&&e["!rows"]||[],g=o.s.c;g<=o.e.c;++g)(h[g]||{}).hidden||(d[g]=On(g));for(var v=0,m=o.s.r;m<=o.e.r;++m)(p[m]||{}).hidden||(f=U7(e,o,m,d,s,c,a,r),f!=null&&(r.strip&&(f=f.replace(u,"")),(f||r.blankrows!==!1)&&n.push((v++?l:"")+f)));return delete r.dense,n.join("")}function eE(e,t){t||(t={}),t.FS=" ",t.RS=`
144
+ `;var n=op(e,t);return n}function j7(e){var t="",n,r="";if(e==null||e["!ref"]==null)return[];var o=Dt(e["!ref"]),a="",s=[],l,c=[],u=Array.isArray(e);for(l=o.s.c;l<=o.e.c;++l)s[l]=On(l);for(var f=o.s.r;f<=o.e.r;++f)for(a=En(f),l=o.s.c;l<=o.e.c;++l)if(t=s[l]+a,n=u?(e[f]||[])[l]:e[t],r="",n!==void 0){if(n.F!=null){if(t=n.F,!n.f)continue;r=n.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(n.f!=null)r=n.f;else{if(n.t=="z")continue;if(n.t=="n"&&n.v!=null)r=""+n.v;else if(n.t=="b")r=n.v?"TRUE":"FALSE";else if(n.w!==void 0)r="'"+n.w;else{if(n.v===void 0)continue;n.t=="s"?r="'"+n.v:r=""+n.v}}c[c.length]=t+"="+r}return c}function tE(e,t,n){var r=n||{},o=+!r.skipHeader,a=e||{},s=0,l=0;if(a&&r.origin!=null)if(typeof r.origin=="number")s=r.origin;else{var c=typeof r.origin=="string"?fn(r.origin):r.origin;s=c.r,l=c.c}var u,f={s:{c:0,r:0},e:{c:l,r:s+t.length-1+o}};if(a["!ref"]){var d=Dt(a["!ref"]);f.e.c=Math.max(f.e.c,d.e.c),f.e.r=Math.max(f.e.r,d.e.r),s==-1&&(s=d.e.r+1,f.e.r=s+t.length-1+o)}else s==-1&&(s=0,f.e.r=t.length-1+o);var h=r.header||[],p=0;t.forEach(function(v,m){yn(v).forEach(function(y){(p=h.indexOf(y))==-1&&(h[p=h.length]=y);var E=v[y],x="z",C="",A=mt({c:l+p,r:s+m+o});u=kl(a,A),E&&typeof E=="object"&&!(E instanceof Date)?a[A]=E:(typeof E=="number"?x="n":typeof E=="boolean"?x="b":typeof E=="string"?x="s":E instanceof Date?(x="d",r.cellDates||(x="n",E=Zn(E)),C=r.dateNF||Gt[14]):E===null&&r.nullError&&(x="e",E=0),u?(u.t=x,u.v=E,delete u.w,delete u.R,C&&(u.z=C)):a[A]=u={t:x,v:E},C&&(u.z=C))})}),f.e.c=Math.max(f.e.c,l+h.length-1);var g=En(s);if(o)for(p=0;p<h.length;++p)a[On(p+l)+g]={t:"s",v:h[p]};return a["!ref"]=en(f),a}function G7(e,t){return tE(null,e,t)}function kl(e,t,n){if(typeof t=="string"){if(Array.isArray(e)){var r=fn(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?kl(e,mt(t)):kl(e,mt({r:t,c:n||0}))}function z7(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function W7(){return{SheetNames:[],Sheets:{}}}function K7(e,t,n,r){var o=1;if(!n)for(;o<=65535&&e.SheetNames.indexOf(n="Sheet"+o)!=-1;++o,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var a=n.match(/(^.*?)(\d+)$/);o=a&&+a[2]||0;var s=a&&a[1]||n;for(++o;o<=65535&&e.SheetNames.indexOf(n=s+o)!=-1;++o);}if(Ux(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function Y7(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=z7(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n}function X7(e,t){return e.z=t,e}function nE(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}function Q7(e,t,n){return nE(e,"#"+t,n)}function J7(e,t,n){e.c||(e.c=[]),e.c.push({t,a:n||"SheetJS"})}function Z7(e,t,n,r){for(var o=typeof t!="string"?t:Dt(t),a=typeof t=="string"?t:en(t),s=o.s.r;s<=o.e.r;++s)for(var l=o.s.c;l<=o.e.c;++l){var c=kl(e,s,l);c.t="n",c.F=a,delete c.v,s==o.s.r&&l==o.s.c&&(c.f=n,r&&(c.D=!0))}return e}var oE={encode_col:On,encode_row:En,encode_cell:mt,encode_range:en,decode_col:Vh,decode_row:Lh,split_cell:h6,decode_cell:fn,decode_range:uo,format_cell:Pr,sheet_add_aoa:L1,sheet_add_json:tE,sheet_add_dom:Kx,aoa_to_sheet:Qs,json_to_sheet:G7,table_to_sheet:Yx,table_to_book:w7,sheet_to_csv:op,sheet_to_txt:eE,sheet_to_json:Bu,sheet_to_html:Wx,sheet_to_formulae:j7,sheet_to_row_object_array:Bu,sheet_get_cell:kl,book_new:W7,book_append_sheet:K7,book_set_sheet_visibility:Y7,cell_set_number_format:X7,cell_set_hyperlink:nE,cell_set_internal_link:Q7,cell_add_comment:J7,sheet_set_array_formula:Z7,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const q7=(e,t)=>{if(!e)return;let n=window.URL.createObjectURL(new Blob([e])),r=document.createElement("a");r.style.display="none",r.href=n,r.setAttribute("download",t?t+".xlsx":"excel.xlsx"),document.body.appendChild(r),r.click()},$7=e=>e!=null&&!Number.isNaN(e)&&(typeof e!="number"||Number.isFinite(e)),rp=(e,t="-")=>$7(e)?e:t,eV="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAAIABJREFUeF7svQd4HNd1L/67907Zjl5JgAS7SIpUoYpVbCqyLUtucRwqseNnWy6SrESK7bxYzy9+H8n/S7Od9pTEiuQit9gOmThxFMvdZGyq2axi7wABorfFAtum3P937swASxggQQAUSWOXHz9gsTOzc+/c87un/M45DMVXcQaKMzBnZ4DN2ZEXB16cgeIMoAgAxUVQnIE5PANFAJjDD7849OIMFAGguAaKMzCHZ6AIAHP44ReHXpyBIg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8Qq0HcBpfPHbp95egbYDaN8D7RU4jVeg7QBO44vfPvX2CrQdQPseaK/AabwCbQdwGl/89qm3V6DtANr3QHsFTuMVaDuA0/jit0+9vQJtB9C+B9orcBqvQNsBnMYXv33q7RVoO4D2PdBegdN4BdoO4DS++O1Tb69A2wG074H2CpzGK9B2AKfxxW+fensF2g6gfQ+0V+A0XoG2AziNL3771Nsr0HYA7XugvQKn8Qr8/2AwWHSvl/cRAAAAAElFTkSuQmCC",ZK="",aa=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},tV={class:"box"},nV=["width"],oV={class:"text"},rV=i.defineComponent({__name:"NoData",props:{text:{type:String,default:"暂无数据"},iconWidth:{type:Number,default:120}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",tV,[i.createElementVNode("img",{width:e.iconWidth,src:eV},null,8,nV),i.createElementVNode("div",oV,i.toDisplayString(e.text),1)]))}}),aV=aa(rV,[["__scopeId","data-v-fecf4e1e"]]),qK="",sV={class:"table-container"},iV={key:0},lV={key:1},cV={key:2},uV=["title"],fV={key:0,class:"page-box"},dV=i.defineComponent({__name:"ComPaginationTable",props:{data:{type:Array,default:()=>[]},height:{type:[String,Number],default:"100%"},width:{type:[String,Number],default:"100%"},showPage:{type:Boolean,default:!1},headers:{type:Array,default:()=>[]},currentPage:{type:Number},total:{type:Number,default:0},loading:{type:Boolean,default:!1},pageSize:{type:Number},pageSizes:{type:Array,default:[10,20,30,40,50,100,200]},tableOptions:{type:Object},tableEvents:{type:Object},pageOptions:{type:Object,default:()=>({layout:"total, sizes, prev, pager, next, jumper"})}},emits:["currentChange","sizeChange","sizeOrCurrentChange","select","selectAll","sortChange","update:currentPage","update:pageSize","refresh","sortColumn"],setup(e,{expose:t,emit:n}){const r=i.ref([]),o=e,a=i.ref(null),s=n;i.onUpdated(()=>{s("refresh")});const l=v=>{s("update:currentPage",v),s("currentChange",v),s("sizeOrCurrentChange")},c=v=>{s("update:currentPage",1),s("currentChange",1),s("update:pageSize",v),s("sizeChange",v),s("sizeOrCurrentChange")},u=(v,m)=>{a.value.toggleRowSelection(v,m);const y=a.value.getSelectionRows();s("select",y,v)},f=v=>{v.length>0?r.value=v.map(()=>!0):r.value=r.value.map(()=>!1),s("selectAll",v)},d=(v,m,y)=>{s("sortColumn",v,m,y)},h=i.computed(()=>o.headers.filter(v=>v.isVisible&&!v.isExpand));return t({clearSelection:()=>{r.value=r.value.map(()=>!1),a.value.clearSelection()},table:a,toggleRowSelection:(v,m)=>{o.data.forEach((y,E)=>{v===y&&(r.value[E]=m)}),a.value.toggleRowSelection(v,m)}}),(v,m)=>{const y=tB,E=Ba,x=eB,C=AF,A=VB;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",sV,[i.withDirectives((i.openBlock(),i.createBlock(x,i.mergeProps({onSortChange:d,class:e.data.length||"no-data",ref_key:"tableRef",ref:a,border:"","highlight-current-row":"","show-overflow-tooltip":"",style:[{overflow:"auto",height:"100%"},{width:e.width}],height:e.height},v.$attrs,{data:e.data,onSelectAll:f}),{empty:i.withCtx(()=>[i.renderSlot(v.$slots,"empty",{},()=>[i.createVNode(aV,{"icon-width":80})],!0)]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,w=>(i.openBlock(),i.createBlock(y,i.mergeProps(w,{key:w.type||w.prop}),{header:i.withCtx(()=>[i.renderSlot(v.$slots,"header."+w.prop,{header:w},()=>[i.createTextVNode(i.toDisplayString(w.label),1)],!0)]),default:i.withCtx(b=>{var T;return[((T=w.children)==null?void 0:T.length)>0?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(w.children,(S,_)=>(i.openBlock(),i.createBlock(y,i.mergeProps(S,{key:(S.prop||"")+_}),i.createSlots({header:i.withCtx(()=>[i.renderSlot(v.$slots,"header."+S.prop,{header:S},()=>[i.createTextVNode(i.toDisplayString(S.label),1)],!0)]),_:2},[S.type?void 0:{name:"default",fn:i.withCtx(I=>[i.renderSlot(v.$slots,"row."+S.prop,i.normalizeProps(i.guardReactiveProps(I)),()=>[i.createTextVNode(i.toDisplayString(i.unref(rp)(I.row[S.prop])),1)],!0)]),key:"0"}]),1040))),128)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[w.type==="expand"?(i.openBlock(),i.createElementBlock("div",iV,[i.renderSlot(v.$slots,"row:expand",i.normalizeProps(i.guardReactiveProps(b)),void 0,!0)])):i.createCommentVNode("",!0),w.type==="selection"?(i.openBlock(),i.createElementBlock("div",lV,[i.createVNode(E,{modelValue:r.value[b.$index],"onUpdate:modelValue":S=>r.value[b.$index]=S,onChange:S=>u(b.row,S)},null,8,["modelValue","onUpdate:modelValue","onChange"])])):i.createCommentVNode("",!0),w.type==="index"?(i.openBlock(),i.createElementBlock("div",cV,[e.showPage?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString((e.currentPage-1)*e.pageSize+(b.$index+1)),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(b.$index+1),1)],64))])):i.createCommentVNode("",!0),w.type?i.createCommentVNode("",!0):i.renderSlot(v.$slots,"row."+w.prop,i.normalizeProps(i.mergeProps({key:3},b)),()=>[i.createElementVNode("div",{title:i.unref(rp)(b.row[w.prop]),class:"ellipsis"},i.toDisplayString(i.unref(rp)(b.row[w.prop])),9,uV)],!0)],64))]}),_:2},1040))),128))]),_:3},16,["class","style","height","data"])),[[A,e.loading]])]),e.showPage?(i.openBlock(),i.createElementBlock("div",fV,[i.createVNode(C,i.mergeProps({"popper-class":"my-pagination",style:{"margin-top":"12px"},"current-page":e.currentPage,onCurrentChange:l,onSizeChange:c,total:e.total,"page-size":e.pageSize,"page-sizes":e.pageSizes},e.pageOptions),null,16,["current-page","total","page-size","page-sizes"])])):i.createCommentVNode("",!0)],64)}}}),rE=aa(dV,[["__scopeId","data-v-87b17a86"]]),$K="",eY="",tY="",nY="",oY="",h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2bRtucnLSolKp/pydnc0RCoXN6HnOJiAqBUql8pC7u/v1nTt3+jiMyooh9HjU2traaDKZUItrtVZyVnsCBmq1+u2RkREpm82OZzAYRNTQHQGLUoEUdE9Pz8jo6OjPDAZDxuVyB5dHblWx4AgIR9pwSFQcCbTc1n+4k7BW/OXkDwAAAABJRU5ErkJggg==";var aE={exports:{}};/**!
145
+ * Sortable 1.14.0
146
+ * @author RubaXa <trash@rubaxa.org>
147
+ * @author owenm <owen23355@gmail.com>
148
+ * @license MIT
149
+ */function sE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sE(Object(n),!0).forEach(function(r){gV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ru(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ru=function(t){return typeof t}:Ru=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ru(e)}function gV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function To(){return To=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},To.apply(this,arguments)}function mV(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function yV(e,t){if(e==null)return{};var n=mV(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xV(e){return EV(e)||CV(e)||wV(e)||bV()}function EV(e){if(Array.isArray(e))return ap(e)}function CV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wV(e,t){if(e){if(typeof e=="string")return ap(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ap(e,t)}}function ap(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
150
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var AV="1.14.0";function Dr(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ir=Dr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ol=Dr(/Edge/i),iE=Dr(/firefox/i),Pl=Dr(/safari/i)&&!Dr(/chrome/i)&&!Dr(/android/i),lE=Dr(/iP(ad|od|hone)/i),SV=Dr(/chrome/i)&&Dr(/android/i),cE={capture:!1,passive:!1};function it(e,t,n){e.addEventListener(t,n,!Ir&&cE)}function at(e,t,n){e.removeEventListener(t,n,!Ir&&cE)}function Mu(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function TV(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function zo(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Mu(e,t):Mu(e,t))||r&&e===n)return e;if(e===n)break}while(e=TV(e))}return null}var uE=/\s+/g;function Lt(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(uE," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(uE," ")}}function Ge(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function Qa(e,t){var n="";if(typeof e=="string")n=e;else do{var r=Ge(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function fE(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,a=r.length;if(n)for(;o<a;o++)n(r[o],o);return r}return[]}function lr(){var e=document.scrollingElement;return e||document.documentElement}function Ft(e,t,n,r,o){if(!(!e.getBoundingClientRect&&e!==window)){var a,s,l,c,u,f,d;if(e!==window&&e.parentNode&&e!==lr()?(a=e.getBoundingClientRect(),s=a.top,l=a.left,c=a.bottom,u=a.right,f=a.height,d=a.width):(s=0,l=0,c=window.innerHeight,u=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!Ir))do if(o&&o.getBoundingClientRect&&(Ge(o,"transform")!=="none"||n&&Ge(o,"position")!=="static")){var h=o.getBoundingClientRect();s-=h.top+parseInt(Ge(o,"border-top-width")),l-=h.left+parseInt(Ge(o,"border-left-width")),c=s+a.height,u=l+a.width;break}while(o=o.parentNode);if(r&&e!==window){var p=Qa(o||e),g=p&&p.a,v=p&&p.d;p&&(s/=v,l/=g,d/=g,f/=v,c=s+f,u=l+d)}return{top:s,left:l,bottom:c,right:u,width:d,height:f}}}function dE(e,t,n){for(var r=sa(e,!0),o=Ft(e)[t];r;){var a=Ft(r)[n],s=void 0;if(n==="top"||n==="left"?s=o>=a:s=o<=a,!s)return r;if(r===lr())break;r=sa(r,!1)}return!1}function ai(e,t,n,r){for(var o=0,a=0,s=e.children;a<s.length;){if(s[a].style.display!=="none"&&s[a]!==Qe.ghost&&(r||s[a]!==Qe.dragged)&&zo(s[a],n.draggable,e,!1)){if(o===t)return s[a];o++}a++}return null}function sp(e,t){for(var n=e.lastElementChild;n&&(n===Qe.ghost||Ge(n,"display")==="none"||t&&!Mu(n,t));)n=n.previousElementSibling;return n||null}function Wt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Qe.clone&&(!t||Mu(e,t))&&n++;return n}function hE(e){var t=0,n=0,r=lr();if(e)do{var o=Qa(e),a=o.a,s=o.d;t+=e.scrollLeft*a,n+=e.scrollTop*s}while(e!==r&&(e=e.parentNode));return[t,n]}function kV(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function sa(e,t){if(!e||!e.getBoundingClientRect)return lr();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Ge(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return lr();if(r||t)return n;r=!0}}while(n=n.parentNode);return lr()}function OV(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function ip(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var _l;function pE(e,t){return function(){if(!_l){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),_l=setTimeout(function(){_l=void 0},t)}}}function PV(){clearTimeout(_l),_l=void 0}function vE(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function lp(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function gE(e,t){Ge(e,"position","absolute"),Ge(e,"top",t.top),Ge(e,"left",t.left),Ge(e,"width",t.width),Ge(e,"height",t.height)}function cp(e){Ge(e,"position",""),Ge(e,"top",""),Ge(e,"left",""),Ge(e,"width",""),Ge(e,"height","")}var _n="Sortable"+new Date().getTime();function _V(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(Ge(o,"display")==="none"||o===Qe.ghost)){e.push({target:o,rect:Ft(o)});var a=ir({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=Qa(o,!0);s&&(a.top-=s.f,a.left-=s.e)}o.fromRect=a}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(kV(e,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var a=!1,s=0;e.forEach(function(l){var c=0,u=l.target,f=u.fromRect,d=Ft(u),h=u.prevFromRect,p=u.prevToRect,g=l.rect,v=Qa(u,!0);v&&(d.top-=v.f,d.left-=v.e),u.toRect=d,u.thisAnimationDuration&&ip(h,d)&&!ip(f,d)&&(g.top-d.top)/(g.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(c=IV(g,h,p,o.options)),ip(d,f)||(u.prevFromRect=f,u.prevToRect=d,c||(c=o.options.animation),o.animate(u,g,d,c)),c&&(a=!0,s=Math.max(s,c),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},c),u.thisAnimationDuration=c)}),clearTimeout(t),a?t=setTimeout(function(){typeof r=="function"&&r()},s):typeof r=="function"&&r(),e=[]},animate:function(r,o,a,s){if(s){Ge(r,"transition",""),Ge(r,"transform","");var l=Qa(this.el),c=l&&l.a,u=l&&l.d,f=(o.left-a.left)/(c||1),d=(o.top-a.top)/(u||1);r.animatingX=!!f,r.animatingY=!!d,Ge(r,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=DV(r),Ge(r,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),Ge(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Ge(r,"transition",""),Ge(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},s)}}}}function DV(e){return e.offsetWidth}function IV(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var si=[],up={initializeByDefault:!0},Dl={mount:function(t){for(var n in up)up.hasOwnProperty(n)&&!(n in t)&&(t[n]=up[n]);si.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),si.push(t)},pluginEvent:function(t,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var a=t+"Global";si.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][a]&&n[s.pluginName][a](ir({sortable:n},r)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](ir({sortable:n},r)))})},initializePlugins:function(t,n,r,o){si.forEach(function(l){var c=l.pluginName;if(!(!t.options[c]&&!l.initializeByDefault)){var u=new l(t,n,t.options);u.sortable=t,u.options=t.options,t[c]=u,To(r,u.defaults)}});for(var a in t.options)if(t.options.hasOwnProperty(a)){var s=this.modifyOption(t,a,t.options[a]);typeof s<"u"&&(t.options[a]=s)}},getEventProperties:function(t,n){var r={};return si.forEach(function(o){typeof o.eventProperties=="function"&&To(r,o.eventProperties.call(n[o.pluginName],t))}),r},modifyOption:function(t,n,r){var o;return si.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(o=a.optionListeners[n].call(t[a.pluginName],r))}),o}};function Il(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,a=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,u=e.newIndex,f=e.oldDraggableIndex,d=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[_n],!!t){var v,m=t.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Ir&&!Ol?v=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(r,!0,!0)),v.to=s||n,v.from=l||n,v.item=o||n,v.clone=a,v.oldIndex=c,v.newIndex=u,v.oldDraggableIndex=f,v.newDraggableIndex=d,v.originalEvent=h,v.pullMode=p?p.lastPutMode:void 0;var E=ir(ir({},g),Dl.getEventProperties(r,t));for(var x in E)v[x]=E[x];n&&n.dispatchEvent(v),m[y]&&m[y].call(t,v)}}var FV=["evt"],eo=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,a=yV(r,FV);Dl.pluginEvent.bind(Qe)(t,n,ir({dragEl:ke,parentEl:Kt,ghostEl:et,rootEl:Nt,nextEl:Ja,lastDownEl:Lu,cloneEl:Yt,cloneHidden:ia,dragStarted:Nl,putSortable:bn,activeSortable:Qe.active,originalEvent:o,oldIndex:ii,oldDraggableIndex:Fl,newIndex:ho,newDraggableIndex:la,hideGhostForTarget:bE,unhideGhostForTarget:AE,cloneNowHidden:function(){ia=!0},cloneNowShown:function(){ia=!1},dispatchSortableEvent:function(l){Un({sortable:n,name:l,originalEvent:o})}},a))};function Un(e){Il(ir({putSortable:bn,cloneEl:Yt,targetEl:ke,rootEl:Nt,oldIndex:ii,oldDraggableIndex:Fl,newIndex:ho,newDraggableIndex:la},e))}var ke,Kt,et,Nt,Ja,Lu,Yt,ia,ii,ho,Fl,la,Vu,bn,li=!1,Hu=!1,Uu=[],Za,Wo,fp,dp,mE,yE,Nl,ci,Bl,Rl=!1,ju=!1,Gu,Dn,hp=[],pp=!1,zu=[],Wu=typeof document<"u",Ku=lE,xE=Ol||Ir?"cssFloat":"float",NV=Wu&&!SV&&!lE&&"draggable"in document.createElement("div"),EE=function(){if(Wu){if(Ir)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),CE=function(t,n){var r=Ge(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=ai(t,0,n),s=ai(t,1,n),l=a&&Ge(a),c=s&&Ge(s),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ft(a).width,f=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Ft(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===d)?"vertical":"horizontal"}return a&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=o&&r[xE]==="none"||s&&r[xE]==="none"&&u+f>o)?"vertical":"horizontal"},BV=function(t,n,r){var o=r?t.left:t.top,a=r?t.right:t.bottom,s=r?t.width:t.height,l=r?n.left:n.top,c=r?n.right:n.bottom,u=r?n.width:n.height;return o===l||a===c||o+s/2===l+u/2},RV=function(t,n){var r;return Uu.some(function(o){var a=o[_n].options.emptyInsertThreshold;if(!(!a||sp(o))){var s=Ft(o),l=t>=s.left-a&&t<=s.right+a,c=n>=s.top-a&&n<=s.bottom+a;if(l&&c)return r=o}}),r},wE=function(t){function n(a,s){return function(l,c,u,f){var d=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(a==null&&(s||d))return!0;if(a==null||a===!1)return!1;if(s&&a==="clone")return a;if(typeof a=="function")return n(a(l,c,u,f),s)(l,c,u,f);var h=(s?l:c).options.group.name;return a===!0||typeof a=="string"&&a===h||a.join&&a.indexOf(h)>-1}}var r={},o=t.group;(!o||Ru(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,t.group=r},bE=function(){!EE&&et&&Ge(et,"display","none")},AE=function(){!EE&&et&&Ge(et,"display","")};Wu&&document.addEventListener("click",function(e){if(Hu)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Hu=!1,!1},!0);var qa=function(t){if(ke){t=t.touches?t.touches[0]:t;var n=RV(t.clientX,t.clientY);if(n){var r={};for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[_n]._onDragOver(r)}}},MV=function(t){ke&&ke.parentNode[_n]._isOutsideThisEl(t.target)};function Qe(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=To({},t),e[_n]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return CE(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Qe.supportPointer!==!1&&"PointerEvent"in window&&!Pl,emptyInsertThreshold:5};Dl.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);wE(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:NV,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?it(e,"pointerdown",this._onTapStart):(it(e,"mousedown",this._onTapStart),it(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(it(e,"dragover",this),it(e,"dragenter",this)),Uu.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),To(this,_V())}Qe.prototype={constructor:Qe,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(ci=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,ke):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,o=this.options,a=o.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,f=o.filter;if(WV(r),!ke&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Pl&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=zo(c,o.draggable,r,!1),!(c&&c.animated)&&Lu!==c)){if(ii=Wt(c),Fl=Wt(c,o.draggable),typeof f=="function"){if(f.call(this,t,c,this)){Un({sortable:n,rootEl:u,name:"filter",targetEl:c,toEl:r,fromEl:r}),eo("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=zo(u,d.trim(),r,!1),d)return Un({sortable:n,rootEl:d,name:"filter",targetEl:c,fromEl:r,toEl:r}),eo("filter",n,{evt:t}),!0}),f)){a&&t.cancelable&&t.preventDefault();return}o.handle&&!zo(u,o.handle,r,!1)||this._prepareDragStart(t,l,c)}}},_prepareDragStart:function(t,n,r){var o=this,a=o.el,s=o.options,l=a.ownerDocument,c;if(r&&!ke&&r.parentNode===a){var u=Ft(r);if(Nt=a,ke=r,Kt=ke.parentNode,Ja=ke.nextSibling,Lu=r,Vu=s.group,Qe.dragged=ke,Za={target:ke,clientX:(n||t).clientX,clientY:(n||t).clientY},mE=Za.clientX-u.left,yE=Za.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,ke.style["will-change"]="all",c=function(){if(eo("delayEnded",o,{evt:t}),Qe.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!iE&&o.nativeDraggable&&(ke.draggable=!0),o._triggerDragStart(t,n),Un({sortable:o,name:"choose",originalEvent:t}),Lt(ke,s.chosenClass,!0)},s.ignore.split(",").forEach(function(f){fE(ke,f.trim(),vp)}),it(l,"dragover",qa),it(l,"mousemove",qa),it(l,"touchmove",qa),it(l,"mouseup",o._onDrop),it(l,"touchend",o._onDrop),it(l,"touchcancel",o._onDrop),iE&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ke.draggable=!0),eo("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ol||Ir))){if(Qe.eventCanceled){this._onDrop();return}it(l,"mouseup",o._disableDelayedDrag),it(l,"touchend",o._disableDelayedDrag),it(l,"touchcancel",o._disableDelayedDrag),it(l,"mousemove",o._delayedDragTouchMoveHandler),it(l,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&it(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ke&&vp(ke),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;at(t,"mouseup",this._disableDelayedDrag),at(t,"touchend",this._disableDelayedDrag),at(t,"touchcancel",this._disableDelayedDrag),at(t,"mousemove",this._delayedDragTouchMoveHandler),at(t,"touchmove",this._delayedDragTouchMoveHandler),at(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?it(document,"pointermove",this._onTouchMove):n?it(document,"touchmove",this._onTouchMove):it(document,"mousemove",this._onTouchMove):(it(ke,"dragend",this),it(Nt,"dragstart",this._onDragStart));try{document.selection?Xu(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(li=!1,Nt&&ke){eo("dragStarted",this,{evt:n}),this.nativeDraggable&&it(document,"dragover",MV);var r=this.options;!t&&Lt(ke,r.dragClass,!1),Lt(ke,r.ghostClass,!0),Qe.active=this,t&&this._appendGhost(),Un({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Wo){this._lastX=Wo.clientX,this._lastY=Wo.clientY,bE();for(var t=document.elementFromPoint(Wo.clientX,Wo.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Wo.clientX,Wo.clientY),t!==n);)n=t;if(ke.parentNode[_n]._isOutsideThisEl(t),n)do{if(n[_n]){var r=void 0;if(r=n[_n]._onDragOver({clientX:Wo.clientX,clientY:Wo.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);AE()}},_onTouchMove:function(t){if(Za){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,s=et&&Qa(et,!0),l=et&&s&&s.a,c=et&&s&&s.d,u=Ku&&Dn&&hE(Dn),f=(a.clientX-Za.clientX+o.x)/(l||1)+(u?u[0]-hp[0]:0)/(l||1),d=(a.clientY-Za.clientY+o.y)/(c||1)+(u?u[1]-hp[1]:0)/(c||1);if(!Qe.active&&!li){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(et){s?(s.e+=f-(fp||0),s.f+=d-(dp||0)):s={a:1,b:0,c:0,d:1,e:f,f:d};var h="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");Ge(et,"webkitTransform",h),Ge(et,"mozTransform",h),Ge(et,"msTransform",h),Ge(et,"transform",h),fp=f,dp=d,Wo=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!et){var t=this.options.fallbackOnBody?document.body:Nt,n=Ft(ke,!0,Ku,!0,t),r=this.options;if(Ku){for(Dn=t;Ge(Dn,"position")==="static"&&Ge(Dn,"transform")==="none"&&Dn!==document;)Dn=Dn.parentNode;Dn!==document.body&&Dn!==document.documentElement?(Dn===document&&(Dn=lr()),n.top+=Dn.scrollTop,n.left+=Dn.scrollLeft):Dn=lr(),hp=hE(Dn)}et=ke.cloneNode(!0),Lt(et,r.ghostClass,!1),Lt(et,r.fallbackClass,!0),Lt(et,r.dragClass,!0),Ge(et,"transition",""),Ge(et,"transform",""),Ge(et,"box-sizing","border-box"),Ge(et,"margin",0),Ge(et,"top",n.top),Ge(et,"left",n.left),Ge(et,"width",n.width),Ge(et,"height",n.height),Ge(et,"opacity","0.8"),Ge(et,"position",Ku?"absolute":"fixed"),Ge(et,"zIndex","100000"),Ge(et,"pointerEvents","none"),Qe.ghost=et,t.appendChild(et),Ge(et,"transform-origin",mE/parseInt(et.style.width)*100+"% "+yE/parseInt(et.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,o=t.dataTransfer,a=r.options;if(eo("dragStart",this,{evt:t}),Qe.eventCanceled){this._onDrop();return}eo("setupClone",this),Qe.eventCanceled||(Yt=lp(ke),Yt.draggable=!1,Yt.style["will-change"]="",this._hideClone(),Lt(Yt,this.options.chosenClass,!1),Qe.clone=Yt),r.cloneId=Xu(function(){eo("clone",r),!Qe.eventCanceled&&(r.options.removeCloneOnHide||Nt.insertBefore(Yt,ke),r._hideClone(),Un({sortable:r,name:"clone"}))}),!n&&Lt(ke,a.dragClass,!0),n?(Hu=!0,r._loopId=setInterval(r._emulateDragOver,50)):(at(document,"mouseup",r._onDrop),at(document,"touchend",r._onDrop),at(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(r,o,ke)),it(document,"drop",r),Ge(ke,"transform","translateZ(0)")),li=!0,r._dragStartId=Xu(r._dragStarted.bind(r,n,t)),it(document,"selectstart",r),Nl=!0,Pl&&Ge(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,o,a,s,l=this.options,c=l.group,u=Qe.active,f=Vu===c,d=l.sort,h=bn||u,p,g=this,v=!1;if(pp)return;function m(oe,ge){eo(oe,g,ir({evt:t,isOwner:f,axis:p?"vertical":"horizontal",revert:s,dragRect:o,targetRect:a,canSort:d,fromSortable:h,target:r,completed:E,onMove:function(pe,P){return Yu(Nt,n,ke,o,pe,Ft(pe),t,P)},changed:x},ge))}function y(){m("dragOverAnimationCapture"),g.captureAnimationState(),g!==h&&h.captureAnimationState()}function E(oe){return m("dragOverCompleted",{insertion:oe}),oe&&(f?u._hideClone():u._showClone(g),g!==h&&(Lt(ke,bn?bn.options.ghostClass:u.options.ghostClass,!1),Lt(ke,l.ghostClass,!0)),bn!==g&&g!==Qe.active?bn=g:g===Qe.active&&bn&&(bn=null),h===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){m("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===ke&&!ke.animated||r===n&&!r.animated)&&(ci=null),!l.dragoverBubble&&!t.rootEl&&r!==document&&(ke.parentNode[_n]._isOutsideThisEl(t.target),!oe&&qa(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function x(){ho=Wt(ke),la=Wt(ke,l.draggable),Un({sortable:g,name:"change",toEl:n,newIndex:ho,newDraggableIndex:la,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=zo(r,l.draggable,n,!0),m("dragOver"),Qe.eventCanceled)return v;if(ke.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return E(!1);if(Hu=!1,u&&!l.disabled&&(f?d||(s=Kt!==Nt):bn===this||(this.lastPutMode=Vu.checkPull(this,u,ke,t))&&c.checkPut(this,u,ke,t))){if(p=this._getDirection(t,r)==="vertical",o=Ft(ke),m("dragOverValid"),Qe.eventCanceled)return v;if(s)return Kt=Nt,y(),this._hideClone(),m("revert"),Qe.eventCanceled||(Ja?Nt.insertBefore(ke,Ja):Nt.appendChild(ke)),E(!0);var C=sp(n,l.draggable);if(!C||UV(t,p,this)&&!C.animated){if(C===ke)return E(!1);if(C&&n===t.target&&(r=C),r&&(a=Ft(r)),Yu(Nt,n,ke,o,r,a,t,!!r)!==!1)return y(),n.appendChild(ke),Kt=n,x(),E(!0)}else if(C&&HV(t,p,this)){var A=ai(n,0,l,!0);if(A===ke)return E(!1);if(r=A,a=Ft(r),Yu(Nt,n,ke,o,r,a,t,!1)!==!1)return y(),n.insertBefore(ke,A),Kt=n,x(),E(!0)}else if(r.parentNode===n){a=Ft(r);var w=0,b,T=ke.parentNode!==n,S=!BV(ke.animated&&ke.toRect||o,r.animated&&r.toRect||a,p),_=p?"top":"left",I=dE(r,"top","top")||dE(ke,"top","top"),H=I?I.scrollTop:void 0;ci!==r&&(b=a[_],Rl=!1,ju=!S&&l.invertSwap||T),w=jV(t,r,a,p,S?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,ju,ci===r);var B;if(w!==0){var j=Wt(ke);do j-=w,B=Kt.children[j];while(B&&(Ge(B,"display")==="none"||B===et))}if(w===0||B===r)return E(!1);ci=r,Bl=w;var Z=r.nextElementSibling,q=!1;q=w===1;var K=Yu(Nt,n,ke,o,r,a,t,q);if(K!==!1)return(K===1||K===-1)&&(q=K===1),pp=!0,setTimeout(VV,30),y(),q&&!Z?n.appendChild(ke):r.parentNode.insertBefore(ke,q?Z:r),I&&vE(I,0,H-I.scrollTop),Kt=ke.parentNode,b!==void 0&&!ju&&(Gu=Math.abs(b-Ft(r)[_])),x(),E(!0)}if(n.contains(ke))return E(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){at(document,"mousemove",this._onTouchMove),at(document,"touchmove",this._onTouchMove),at(document,"pointermove",this._onTouchMove),at(document,"dragover",qa),at(document,"mousemove",qa),at(document,"touchmove",qa)},_offUpEvents:function(){var t=this.el.ownerDocument;at(t,"mouseup",this._onDrop),at(t,"touchend",this._onDrop),at(t,"pointerup",this._onDrop),at(t,"touchcancel",this._onDrop),at(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(ho=Wt(ke),la=Wt(ke,r.draggable),eo("drop",this,{evt:t}),Kt=ke&&ke.parentNode,ho=Wt(ke),la=Wt(ke,r.draggable),Qe.eventCanceled){this._nulling();return}li=!1,ju=!1,Rl=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),gp(this.cloneId),gp(this._dragStartId),this.nativeDraggable&&(at(document,"drop",this),at(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Pl&&Ge(document.body,"user-select",""),Ge(ke,"transform",""),t&&(Nl&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),et&&et.parentNode&&et.parentNode.removeChild(et),(Nt===Kt||bn&&bn.lastPutMode!=="clone")&&Yt&&Yt.parentNode&&Yt.parentNode.removeChild(Yt),ke&&(this.nativeDraggable&&at(ke,"dragend",this),vp(ke),ke.style["will-change"]="",Nl&&!li&&Lt(ke,bn?bn.options.ghostClass:this.options.ghostClass,!1),Lt(ke,this.options.chosenClass,!1),Un({sortable:this,name:"unchoose",toEl:Kt,newIndex:null,newDraggableIndex:null,originalEvent:t}),Nt!==Kt?(ho>=0&&(Un({rootEl:Kt,name:"add",toEl:Kt,fromEl:Nt,originalEvent:t}),Un({sortable:this,name:"remove",toEl:Kt,originalEvent:t}),Un({rootEl:Kt,name:"sort",toEl:Kt,fromEl:Nt,originalEvent:t}),Un({sortable:this,name:"sort",toEl:Kt,originalEvent:t})),bn&&bn.save()):ho!==ii&&ho>=0&&(Un({sortable:this,name:"update",toEl:Kt,originalEvent:t}),Un({sortable:this,name:"sort",toEl:Kt,originalEvent:t})),Qe.active&&((ho==null||ho===-1)&&(ho=ii,la=Fl),Un({sortable:this,name:"end",toEl:Kt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){eo("nulling",this),Nt=ke=Kt=et=Ja=Yt=Lu=ia=Za=Wo=Nl=ho=la=ii=Fl=ci=Bl=bn=Vu=Qe.dragged=Qe.ghost=Qe.clone=Qe.active=null,zu.forEach(function(t){t.checked=!0}),zu.length=fp=dp=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ke&&(this._onDragOver(t),LV(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,o=0,a=r.length,s=this.options;o<a;o++)n=r[o],zo(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||zV(n));return t},sort:function(t,n){var r={},o=this.el;this.toArray().forEach(function(a,s){var l=o.children[s];zo(l,this.options.draggable,o,!1)&&(r[a]=l)},this),n&&this.captureAnimationState(),t.forEach(function(a){r[a]&&(o.removeChild(r[a]),o.appendChild(r[a]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return zo(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var o=Dl.modifyOption(this,t,n);typeof o<"u"?r[t]=o:r[t]=n,t==="group"&&wE(r)},destroy:function(){eo("destroy",this);var t=this.el;t[_n]=null,at(t,"mousedown",this._onTapStart),at(t,"touchstart",this._onTapStart),at(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(at(t,"dragover",this),at(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Uu.splice(Uu.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ia){if(eo("hideClone",this),Qe.eventCanceled)return;Ge(Yt,"display","none"),this.options.removeCloneOnHide&&Yt.parentNode&&Yt.parentNode.removeChild(Yt),ia=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(ia){if(eo("showClone",this),Qe.eventCanceled)return;ke.parentNode==Nt&&!this.options.group.revertClone?Nt.insertBefore(Yt,ke):Ja?Nt.insertBefore(Yt,Ja):Nt.appendChild(Yt),this.options.group.revertClone&&this.animate(ke,Yt),Ge(Yt,"display",""),ia=!1}}};function LV(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Yu(e,t,n,r,o,a,s,l){var c,u=e[_n],f=u.options.onMove,d;return window.CustomEvent&&!Ir&&!Ol?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=o||t,c.relatedRect=a||Ft(t),c.willInsertAfter=l,c.originalEvent=s,e.dispatchEvent(c),f&&(d=f.call(u,c,s)),d}function vp(e){e.draggable=!1}function VV(){pp=!1}function HV(e,t,n){var r=Ft(ai(n.el,0,n.options,!0)),o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}function UV(e,t,n){var r=Ft(sp(n.el,n.options.draggable)),o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}function jV(e,t,n,r,o,a,s,l){var c=r?e.clientY:e.clientX,u=r?n.height:n.width,f=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!s){if(l&&Gu<u*o){if(!Rl&&(Bl===1?c>f+u*a/2:c<d-u*a/2)&&(Rl=!0),Rl)h=!0;else if(Bl===1?c<f+Gu:c>d-Gu)return-Bl}else if(c>f+u*(1-o)/2&&c<d-u*(1-o)/2)return GV(t)}return h=h||s,h&&(c<f+u*a/2||c>d-u*a/2)?c>f+u/2?1:-1:0}function GV(e){return Wt(ke)<Wt(e)?1:-1}function zV(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function WV(e){zu.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&zu.push(r)}}function Xu(e){return setTimeout(e,0)}function gp(e){return clearTimeout(e)}Wu&&it(document,"touchmove",function(e){(Qe.active||li)&&e.cancelable&&e.preventDefault()}),Qe.utils={on:it,off:at,css:Ge,find:fE,is:function(t,n){return!!zo(t,n,t,!1)},extend:OV,throttle:pE,closest:zo,toggleClass:Lt,clone:lp,index:Wt,nextTick:Xu,cancelNextTick:gp,detectDirection:CE,getChild:ai},Qe.get=function(e){return e[_n]},Qe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Qe.utils=ir(ir({},Qe.utils),r.utils)),Dl.mount(r)})},Qe.create=function(e,t){return new Qe(e,t)},Qe.version=AV;var nn=[],Ml,mp,yp=!1,xp,Ep,Qu,Ll;function KV(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?it(document,"dragover",this._handleAutoScroll):this.options.supportPointer?it(document,"pointermove",this._handleFallbackAutoScroll):r.touches?it(document,"touchmove",this._handleFallbackAutoScroll):it(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?at(document,"dragover",this._handleAutoScroll):(at(document,"pointermove",this._handleFallbackAutoScroll),at(document,"touchmove",this._handleFallbackAutoScroll),at(document,"mousemove",this._handleFallbackAutoScroll)),SE(),Ju(),PV()},nulling:function(){Qu=mp=Ml=yp=Ll=xp=Ep=null,nn.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,a=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(a,s);if(Qu=n,r||this.options.forceAutoScrollFallback||Ol||Ir||Pl){Cp(n,this.options,l,r);var c=sa(l,!0);yp&&(!Ll||a!==xp||s!==Ep)&&(Ll&&SE(),Ll=setInterval(function(){var u=sa(document.elementFromPoint(a,s),!0);u!==c&&(c=u,Ju()),Cp(n,o.options,u,r)},10),xp=a,Ep=s)}else{if(!this.options.bubbleScroll||sa(l,!0)===lr()){Ju();return}Cp(n,this.options,sa(l,!1),!1)}}},To(e,{pluginName:"scroll",initializeByDefault:!0})}function Ju(){nn.forEach(function(e){clearInterval(e.pid)}),nn=[]}function SE(){clearInterval(Ll)}var Cp=pE(function(e,t,n,r){if(t.scroll){var o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=lr(),u=!1,f;mp!==n&&(mp=n,Ju(),Ml=t.scroll,f=t.scrollFn,Ml===!0&&(Ml=sa(n,!0)));var d=0,h=Ml;do{var p=h,g=Ft(p),v=g.top,m=g.bottom,y=g.left,E=g.right,x=g.width,C=g.height,A=void 0,w=void 0,b=p.scrollWidth,T=p.scrollHeight,S=Ge(p),_=p.scrollLeft,I=p.scrollTop;p===c?(A=x<b&&(S.overflowX==="auto"||S.overflowX==="scroll"||S.overflowX==="visible"),w=C<T&&(S.overflowY==="auto"||S.overflowY==="scroll"||S.overflowY==="visible")):(A=x<b&&(S.overflowX==="auto"||S.overflowX==="scroll"),w=C<T&&(S.overflowY==="auto"||S.overflowY==="scroll"));var H=A&&(Math.abs(E-o)<=s&&_+x<b)-(Math.abs(y-o)<=s&&!!_),B=w&&(Math.abs(m-a)<=s&&I+C<T)-(Math.abs(v-a)<=s&&!!I);if(!nn[d])for(var j=0;j<=d;j++)nn[j]||(nn[j]={});(nn[d].vx!=H||nn[d].vy!=B||nn[d].el!==p)&&(nn[d].el=p,nn[d].vx=H,nn[d].vy=B,clearInterval(nn[d].pid),(H!=0||B!=0)&&(u=!0,nn[d].pid=setInterval(function(){r&&this.layer===0&&Qe.active._onTouchMove(Qu);var Z=nn[this.layer].vy?nn[this.layer].vy*l:0,q=nn[this.layer].vx?nn[this.layer].vx*l:0;typeof f=="function"&&f.call(Qe.dragged.parentNode[_n],q,Z,e,Qu,nn[this.layer].el)!=="continue"||vE(nn[this.layer].el,q,Z)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==c&&(h=sa(h,!1)));yp=u}},30),TE=function(t){var n=t.originalEvent,r=t.putSortable,o=t.dragEl,a=t.activeSortable,s=t.dispatchSortableEvent,l=t.hideGhostForTarget,c=t.unhideGhostForTarget;if(n){var u=r||a;l();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(f.clientX,f.clientY);c(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function wp(){}wp.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=ai(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:TE},To(wp,{pluginName:"revertOnSpill"});function bp(){}bp.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:TE},To(bp,{pluginName:"removeOnSpill"});var ko;function YV(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var r=n.dragEl;ko=r},dragOverValid:function(n){var r=n.completed,o=n.target,a=n.onMove,s=n.activeSortable,l=n.changed,c=n.cancel;if(s.options.swap){var u=this.sortable.el,f=this.options;if(o&&o!==u){var d=ko;a(o)!==!1?(Lt(o,f.swapClass,!0),ko=o):ko=null,d&&d!==ko&&Lt(d,f.swapClass,!1)}l(),r(!0),c()}},drop:function(n){var r=n.activeSortable,o=n.putSortable,a=n.dragEl,s=o||this.sortable,l=this.options;ko&&Lt(ko,l.swapClass,!1),ko&&(l.swap||o&&o.options.swap)&&a!==ko&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),XV(a,ko),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){ko=null}},To(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ko}}})}function XV(e,t){var n=e.parentNode,r=t.parentNode,o,a;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(o=Wt(e),a=Wt(t),n.isEqualNode(r)&&o<a&&a++,n.insertBefore(t,n.children[o]),r.insertBefore(e,r.children[a]))}var Ze=[],po=[],Vl,Ko,Hl=!1,to=!1,ui=!1,Pt,Ul,Zu;function QV(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?it(document,"pointerup",this._deselectMultiDrag):(it(document,"mouseup",this._deselectMultiDrag),it(document,"touchend",this._deselectMultiDrag)),it(document,"keydown",this._checkKeyDown),it(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(o,a){var s="";Ze.length&&Ko===t?Ze.forEach(function(l,c){s+=(c?", ":"")+l.textContent}):s=a.textContent,o.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;Pt=r},delayEnded:function(){this.isMultiDrag=~Ze.indexOf(Pt)},setupClone:function(n){var r=n.sortable,o=n.cancel;if(this.isMultiDrag){for(var a=0;a<Ze.length;a++)po.push(lp(Ze[a])),po[a].sortableIndex=Ze[a].sortableIndex,po[a].draggable=!1,po[a].style["will-change"]="",Lt(po[a],this.options.selectedClass,!1),Ze[a]===Pt&&Lt(po[a],this.options.chosenClass,!1);r._hideClone(),o()}},clone:function(n){var r=n.sortable,o=n.rootEl,a=n.dispatchSortableEvent,s=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Ze.length&&Ko===r&&(kE(!0,o),a("clone"),s()))},showClone:function(n){var r=n.cloneNowShown,o=n.rootEl,a=n.cancel;this.isMultiDrag&&(kE(!1,o),po.forEach(function(s){Ge(s,"display","")}),r(),Zu=!1,a())},hideClone:function(n){var r=this;n.sortable;var o=n.cloneNowHidden,a=n.cancel;this.isMultiDrag&&(po.forEach(function(s){Ge(s,"display","none"),r.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),o(),Zu=!0,a())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ko&&Ko.multiDrag._deselectMultiDrag(),Ze.forEach(function(r){r.sortableIndex=Wt(r)}),Ze=Ze.sort(function(r,o){return r.sortableIndex-o.sortableIndex}),ui=!0},dragStarted:function(n){var r=this,o=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){Ze.forEach(function(s){s!==Pt&&Ge(s,"position","absolute")});var a=Ft(Pt,!1,!0,!0);Ze.forEach(function(s){s!==Pt&&gE(s,a)}),to=!0,Hl=!0}o.animateAll(function(){to=!1,Hl=!1,r.options.animation&&Ze.forEach(function(s){cp(s)}),r.options.sort&&qu()})}},dragOver:function(n){var r=n.target,o=n.completed,a=n.cancel;to&&~Ze.indexOf(r)&&(o(!1),a())},revert:function(n){var r=n.fromSortable,o=n.rootEl,a=n.sortable,s=n.dragRect;Ze.length>1&&(Ze.forEach(function(l){a.addAnimationState({target:l,rect:to?Ft(l):s}),cp(l),l.fromRect=s,r.removeAnimationState(l)}),to=!1,JV(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var r=n.sortable,o=n.isOwner,a=n.insertion,s=n.activeSortable,l=n.parentEl,c=n.putSortable,u=this.options;if(a){if(o&&s._hideClone(),Hl=!1,u.animation&&Ze.length>1&&(to||!o&&!s.options.sort&&!c)){var f=Ft(Pt,!1,!0,!0);Ze.forEach(function(h){h!==Pt&&(gE(h,f),l.appendChild(h))}),to=!0}if(!o)if(to||qu(),Ze.length>1){var d=Zu;s._showClone(r),s.options.animation&&!Zu&&d&&po.forEach(function(h){s.addAnimationState({target:h,rect:Ul}),h.fromRect=Ul,h.thisAnimationDuration=null})}else s._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,o=n.isOwner,a=n.activeSortable;if(Ze.forEach(function(l){l.thisAnimationDuration=null}),a.options.animation&&!o&&a.multiDrag.isMultiDrag){Ul=To({},r);var s=Qa(Pt,!0);Ul.top-=s.f,Ul.left-=s.e}},dragOverAnimationComplete:function(){to&&(to=!1,qu())},drop:function(n){var r=n.originalEvent,o=n.rootEl,a=n.parentEl,s=n.sortable,l=n.dispatchSortableEvent,c=n.oldIndex,u=n.putSortable,f=u||this.sortable;if(r){var d=this.options,h=a.children;if(!ui)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Lt(Pt,d.selectedClass,!~Ze.indexOf(Pt)),~Ze.indexOf(Pt))Ze.splice(Ze.indexOf(Pt),1),Vl=null,Il({sortable:s,rootEl:o,name:"deselect",targetEl:Pt,originalEvt:r});else{if(Ze.push(Pt),Il({sortable:s,rootEl:o,name:"select",targetEl:Pt,originalEvt:r}),r.shiftKey&&Vl&&s.el.contains(Vl)){var p=Wt(Vl),g=Wt(Pt);if(~p&&~g&&p!==g){var v,m;for(g>p?(m=p,v=g):(m=g,v=p+1);m<v;m++)~Ze.indexOf(h[m])||(Lt(h[m],d.selectedClass,!0),Ze.push(h[m]),Il({sortable:s,rootEl:o,name:"select",targetEl:h[m],originalEvt:r}))}}else Vl=Pt;Ko=f}if(ui&&this.isMultiDrag){if(to=!1,(a[_n].options.sort||a!==o)&&Ze.length>1){var y=Ft(Pt),E=Wt(Pt,":not(."+this.options.selectedClass+")");if(!Hl&&d.animation&&(Pt.thisAnimationDuration=null),f.captureAnimationState(),!Hl&&(d.animation&&(Pt.fromRect=y,Ze.forEach(function(C){if(C.thisAnimationDuration=null,C!==Pt){var A=to?Ft(C):y;C.fromRect=A,f.addAnimationState({target:C,rect:A})}})),qu(),Ze.forEach(function(C){h[E]?a.insertBefore(C,h[E]):a.appendChild(C),E++}),c===Wt(Pt))){var x=!1;Ze.forEach(function(C){if(C.sortableIndex!==Wt(C)){x=!0;return}}),x&&l("update")}Ze.forEach(function(C){cp(C)}),f.animateAll()}Ko=f}(o===a||u&&u.lastPutMode!=="clone")&&po.forEach(function(C){C.parentNode&&C.parentNode.removeChild(C)})}},nullingGlobal:function(){this.isMultiDrag=ui=!1,po.length=0},destroyGlobal:function(){this._deselectMultiDrag(),at(document,"pointerup",this._deselectMultiDrag),at(document,"mouseup",this._deselectMultiDrag),at(document,"touchend",this._deselectMultiDrag),at(document,"keydown",this._checkKeyDown),at(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof ui<"u"&&ui)&&Ko===this.sortable&&!(n&&zo(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Ze.length;){var r=Ze[0];Lt(r,this.options.selectedClass,!1),Ze.shift(),Il({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},To(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[_n];!r||!r.options.multiDrag||~Ze.indexOf(n)||(Ko&&Ko!==r&&(Ko.multiDrag._deselectMultiDrag(),Ko=r),Lt(n,r.options.selectedClass,!0),Ze.push(n))},deselect:function(n){var r=n.parentNode[_n],o=Ze.indexOf(n);!r||!r.options.multiDrag||!~o||(Lt(n,r.options.selectedClass,!1),Ze.splice(o,1))}},eventProperties:function(){var n=this,r=[],o=[];return Ze.forEach(function(a){r.push({multiDragElement:a,index:a.sortableIndex});var s;to&&a!==Pt?s=-1:to?s=Wt(a,":not(."+n.options.selectedClass+")"):s=Wt(a),o.push({multiDragElement:a,index:s})}),{items:xV(Ze),clones:[].concat(po),oldIndicies:r,newIndicies:o}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function JV(e,t){Ze.forEach(function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function kE(e,t){po.forEach(function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function qu(){Ze.forEach(function(e){e!==Pt&&e.parentNode&&e.parentNode.removeChild(e)})}Qe.mount(new KV),Qe.mount(bp,wp);const ZV=c_(Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:QV,Sortable:Qe,Swap:YV,default:Qe},Symbol.toStringTag,{value:"Module"})));(function(e,t){(function(r,o){e.exports=o(i,ZV)})(typeof self<"u"?self:Ls,function(n,r){return function(o){var a={};function s(l){if(a[l])return a[l].exports;var c=a[l]={i:l,l:!1,exports:{}};return o[l].call(c.exports,c,c.exports,s),c.l=!0,c.exports}return s.m=o,s.c=a,s.d=function(l,c,u){s.o(l,c)||Object.defineProperty(l,c,{enumerable:!0,get:u})},s.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},s.t=function(l,c){if(c&1&&(l=s(l)),c&8||c&4&&typeof l=="object"&&l&&l.__esModule)return l;var u=Object.create(null);if(s.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:l}),c&2&&typeof l!="string")for(var f in l)s.d(u,f,function(d){return l[d]}.bind(null,f));return u},s.n=function(l){var c=l&&l.__esModule?function(){return l.default}:function(){return l};return s.d(c,"a",c),c},s.o=function(l,c){return Object.prototype.hasOwnProperty.call(l,c)},s.p="",s(s.s="fb15")}({"00ee":function(o,a,s){var l=s("b622"),c=l("toStringTag"),u={};u[c]="z",o.exports=String(u)==="[object z]"},"0366":function(o,a,s){var l=s("1c0b");o.exports=function(c,u,f){if(l(c),u===void 0)return c;switch(f){case 0:return function(){return c.call(u)};case 1:return function(d){return c.call(u,d)};case 2:return function(d,h){return c.call(u,d,h)};case 3:return function(d,h,p){return c.call(u,d,h,p)}}return function(){return c.apply(u,arguments)}}},"057f":function(o,a,s){var l=s("fc6a"),c=s("241c").f,u={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(h){try{return c(h)}catch{return f.slice()}};o.exports.f=function(p){return f&&u.call(p)=="[object Window]"?d(p):c(l(p))}},"06cf":function(o,a,s){var l=s("83ab"),c=s("d1e7"),u=s("5c6c"),f=s("fc6a"),d=s("c04e"),h=s("5135"),p=s("0cfb"),g=Object.getOwnPropertyDescriptor;a.f=l?g:function(m,y){if(m=f(m),y=d(y,!0),p)try{return g(m,y)}catch{}if(h(m,y))return u(!c.f.call(m,y),m[y])}},"0cfb":function(o,a,s){var l=s("83ab"),c=s("d039"),u=s("cc12");o.exports=!l&&!c(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(o,a,s){var l=s("23e7"),c=s("d58f").left,u=s("a640"),f=s("ae40"),d=u("reduce"),h=f("reduce",{1:0});l({target:"Array",proto:!0,forced:!d||!h},{reduce:function(g){return c(this,g,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(o,a,s){var l=s("c6b6"),c=s("9263");o.exports=function(u,f){var d=u.exec;if(typeof d=="function"){var h=d.call(u,f);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}if(l(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return c.call(u,f)}},"159b":function(o,a,s){var l=s("da84"),c=s("fdbc"),u=s("17c2"),f=s("9112");for(var d in c){var h=l[d],p=h&&h.prototype;if(p&&p.forEach!==u)try{f(p,"forEach",u)}catch{p.forEach=u}}},"17c2":function(o,a,s){var l=s("b727").forEach,c=s("a640"),u=s("ae40"),f=c("forEach"),d=u("forEach");o.exports=!f||!d?function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(o,a,s){var l=s("d066");o.exports=l("document","documentElement")},"1c0b":function(o,a){o.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"1c7e":function(o,a,s){var l=s("b622"),c=l("iterator"),u=!1;try{var f=0,d={next:function(){return{done:!!f++}},return:function(){u=!0}};d[c]=function(){return this},Array.from(d,function(){throw 2})}catch{}o.exports=function(h,p){if(!p&&!u)return!1;var g=!1;try{var v={};v[c]=function(){return{next:function(){return{done:g=!0}}}},h(v)}catch{}return g}},"1d80":function(o,a){o.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"1dde":function(o,a,s){var l=s("d039"),c=s("b622"),u=s("2d00"),f=c("species");o.exports=function(d){return u>=51||!l(function(){var h=[],p=h.constructor={};return p[f]=function(){return{foo:1}},h[d](Boolean).foo!==1})}},"23cb":function(o,a,s){var l=s("a691"),c=Math.max,u=Math.min;o.exports=function(f,d){var h=l(f);return h<0?c(h+d,0):u(h,d)}},"23e7":function(o,a,s){var l=s("da84"),c=s("06cf").f,u=s("9112"),f=s("6eeb"),d=s("ce4e"),h=s("e893"),p=s("94ca");o.exports=function(g,v){var m=g.target,y=g.global,E=g.stat,x,C,A,w,b,T;if(y?C=l:E?C=l[m]||d(m,{}):C=(l[m]||{}).prototype,C)for(A in v){if(b=v[A],g.noTargetGet?(T=c(C,A),w=T&&T.value):w=C[A],x=p(y?A:m+(E?".":"#")+A,g.forced),!x&&w!==void 0){if(typeof b==typeof w)continue;h(b,w)}(g.sham||w&&w.sham)&&u(b,"sham",!0),f(C,A,b,g)}}},"241c":function(o,a,s){var l=s("ca84"),c=s("7839"),u=c.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(d){return l(d,u)}},"25f0":function(o,a,s){var l=s("6eeb"),c=s("825a"),u=s("d039"),f=s("ad6d"),d="toString",h=RegExp.prototype,p=h[d],g=u(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),v=p.name!=d;(g||v)&&l(RegExp.prototype,d,function(){var y=c(this),E=String(y.source),x=y.flags,C=String(x===void 0&&y instanceof RegExp&&!("flags"in h)?f.call(y):x);return"/"+E+"/"+C},{unsafe:!0})},"2ca0":function(o,a,s){var l=s("23e7"),c=s("06cf").f,u=s("50c4"),f=s("5a34"),d=s("1d80"),h=s("ab13"),p=s("c430"),g="".startsWith,v=Math.min,m=h("startsWith"),y=!p&&!m&&!!function(){var E=c(String.prototype,"startsWith");return E&&!E.writable}();l({target:"String",proto:!0,forced:!y&&!m},{startsWith:function(x){var C=String(d(this));f(x);var A=u(v(arguments.length>1?arguments[1]:void 0,C.length)),w=String(x);return g?g.call(C,w,A):C.slice(A,A+w.length)===w}})},"2d00":function(o,a,s){var l=s("da84"),c=s("342f"),u=l.process,f=u&&u.versions,d=f&&f.v8,h,p;d?(h=d.split("."),p=h[0]+h[1]):c&&(h=c.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=c.match(/Chrome\/(\d+)/),h&&(p=h[1]))),o.exports=p&&+p},"342f":function(o,a,s){var l=s("d066");o.exports=l("navigator","userAgent")||""},"35a1":function(o,a,s){var l=s("f5df"),c=s("3f8c"),u=s("b622"),f=u("iterator");o.exports=function(d){if(d!=null)return d[f]||d["@@iterator"]||c[l(d)]}},"37e8":function(o,a,s){var l=s("83ab"),c=s("9bf2"),u=s("825a"),f=s("df75");o.exports=l?Object.defineProperties:function(h,p){u(h);for(var g=f(p),v=g.length,m=0,y;v>m;)c.f(h,y=g[m++],p[y]);return h}},"3bbe":function(o,a,s){var l=s("861d");o.exports=function(c){if(!l(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype");return c}},"3ca3":function(o,a,s){var l=s("6547").charAt,c=s("69f3"),u=s("7dd0"),f="String Iterator",d=c.set,h=c.getterFor(f);u(String,"String",function(p){d(this,{type:f,string:String(p),index:0})},function(){var g=h(this),v=g.string,m=g.index,y;return m>=v.length?{value:void 0,done:!0}:(y=l(v,m),g.index+=y.length,{value:y,done:!1})})},"3f8c":function(o,a){o.exports={}},4160:function(o,a,s){var l=s("23e7"),c=s("17c2");l({target:"Array",proto:!0,forced:[].forEach!=c},{forEach:c})},"428f":function(o,a,s){var l=s("da84");o.exports=l},"44ad":function(o,a,s){var l=s("d039"),c=s("c6b6"),u="".split;o.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return c(f)=="String"?u.call(f,""):Object(f)}:Object},"44d2":function(o,a,s){var l=s("b622"),c=s("7c73"),u=s("9bf2"),f=l("unscopables"),d=Array.prototype;d[f]==null&&u.f(d,f,{configurable:!0,value:c(null)}),o.exports=function(h){d[f][h]=!0}},"44e7":function(o,a,s){var l=s("861d"),c=s("c6b6"),u=s("b622"),f=u("match");o.exports=function(d){var h;return l(d)&&((h=d[f])!==void 0?!!h:c(d)=="RegExp")}},4930:function(o,a,s){var l=s("d039");o.exports=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())})},"4d64":function(o,a,s){var l=s("fc6a"),c=s("50c4"),u=s("23cb"),f=function(d){return function(h,p,g){var v=l(h),m=c(v.length),y=u(g,m),E;if(d&&p!=p){for(;m>y;)if(E=v[y++],E!=E)return!0}else for(;m>y;y++)if((d||y in v)&&v[y]===p)return d||y||0;return!d&&-1}};o.exports={includes:f(!0),indexOf:f(!1)}},"4de4":function(o,a,s){var l=s("23e7"),c=s("b727").filter,u=s("1dde"),f=s("ae40"),d=u("filter"),h=f("filter");l({target:"Array",proto:!0,forced:!d||!h},{filter:function(g){return c(this,g,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(o,a,s){var l=s("0366"),c=s("7b0b"),u=s("9bdd"),f=s("e95a"),d=s("50c4"),h=s("8418"),p=s("35a1");o.exports=function(v){var m=c(v),y=typeof this=="function"?this:Array,E=arguments.length,x=E>1?arguments[1]:void 0,C=x!==void 0,A=p(m),w=0,b,T,S,_,I,H;if(C&&(x=l(x,E>2?arguments[2]:void 0,2)),A!=null&&!(y==Array&&f(A)))for(_=A.call(m),I=_.next,T=new y;!(S=I.call(_)).done;w++)H=C?u(_,x,[S.value,w],!0):S.value,h(T,w,H);else for(b=d(m.length),T=new y(b);b>w;w++)H=C?x(m[w],w):m[w],h(T,w,H);return T.length=w,T}},"4fad":function(o,a,s){var l=s("23e7"),c=s("6f53").entries;l({target:"Object",stat:!0},{entries:function(f){return c(f)}})},"50c4":function(o,a,s){var l=s("a691"),c=Math.min;o.exports=function(u){return u>0?c(l(u),9007199254740991):0}},5135:function(o,a){var s={}.hasOwnProperty;o.exports=function(l,c){return s.call(l,c)}},5319:function(o,a,s){var l=s("d784"),c=s("825a"),u=s("7b0b"),f=s("50c4"),d=s("a691"),h=s("1d80"),p=s("8aa5"),g=s("14c3"),v=Math.max,m=Math.min,y=Math.floor,E=/\$([$&'`]|\d\d?|<[^>]*>)/g,x=/\$([$&'`]|\d\d?)/g,C=function(A){return A===void 0?A:String(A)};l("replace",2,function(A,w,b,T){var S=T.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,_=T.REPLACE_KEEPS_$0,I=S?"$":"$0";return[function(j,Z){var q=h(this),K=j==null?void 0:j[A];return K!==void 0?K.call(j,q,Z):w.call(String(q),j,Z)},function(B,j){if(!S&&_||typeof j=="string"&&j.indexOf(I)===-1){var Z=b(w,B,this,j);if(Z.done)return Z.value}var q=c(B),K=String(this),oe=typeof j=="function";oe||(j=String(j));var ge=q.global;if(ge){var Ae=q.unicode;q.lastIndex=0}for(var pe=[];;){var P=g(q,K);if(P===null||(pe.push(P),!ge))break;var G=String(P[0]);G===""&&(q.lastIndex=p(K,f(q.lastIndex),Ae))}for(var z="",U=0,J=0;J<pe.length;J++){P=pe[J];for(var ne=String(P[0]),ce=v(m(d(P.index),K.length),0),Q=[],X=1;X<P.length;X++)Q.push(C(P[X]));var de=P.groups;if(oe){var me=[ne].concat(Q,ce,K);de!==void 0&&me.push(de);var Ne=String(j.apply(void 0,me))}else Ne=H(ne,K,ce,Q,de,j);ce>=U&&(z+=K.slice(U,ce)+Ne,U=ce+ne.length)}return z+K.slice(U)}];function H(B,j,Z,q,K,oe){var ge=Z+B.length,Ae=q.length,pe=x;return K!==void 0&&(K=u(K),pe=E),w.call(oe,pe,function(P,G){var z;switch(G.charAt(0)){case"$":return"$";case"&":return B;case"`":return j.slice(0,Z);case"'":return j.slice(ge);case"<":z=K[G.slice(1,-1)];break;default:var U=+G;if(U===0)return P;if(U>Ae){var J=y(U/10);return J===0?P:J<=Ae?q[J-1]===void 0?G.charAt(1):q[J-1]+G.charAt(1):P}z=q[U-1]}return z===void 0?"":z})}})},5692:function(o,a,s){var l=s("c430"),c=s("c6cd");(o.exports=function(u,f){return c[u]||(c[u]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.5",mode:l?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(o,a,s){var l=s("d066"),c=s("241c"),u=s("7418"),f=s("825a");o.exports=l("Reflect","ownKeys")||function(h){var p=c.f(f(h)),g=u.f;return g?p.concat(g(h)):p}},"5a34":function(o,a,s){var l=s("44e7");o.exports=function(c){if(l(c))throw TypeError("The method doesn't accept regular expressions");return c}},"5c6c":function(o,a){o.exports=function(s,l){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:l}}},"5db7":function(o,a,s){var l=s("23e7"),c=s("a2bf"),u=s("7b0b"),f=s("50c4"),d=s("1c0b"),h=s("65f0");l({target:"Array",proto:!0},{flatMap:function(g){var v=u(this),m=f(v.length),y;return d(g),y=h(v,0),y.length=c(y,v,v,m,0,1,g,arguments.length>1?arguments[1]:void 0),y}})},6547:function(o,a,s){var l=s("a691"),c=s("1d80"),u=function(f){return function(d,h){var p=String(c(d)),g=l(h),v=p.length,m,y;return g<0||g>=v?f?"":void 0:(m=p.charCodeAt(g),m<55296||m>56319||g+1===v||(y=p.charCodeAt(g+1))<56320||y>57343?f?p.charAt(g):m:f?p.slice(g,g+2):(m-55296<<10)+(y-56320)+65536)}};o.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(o,a,s){var l=s("861d"),c=s("e8b5"),u=s("b622"),f=u("species");o.exports=function(d,h){var p;return c(d)&&(p=d.constructor,typeof p=="function"&&(p===Array||c(p.prototype))?p=void 0:l(p)&&(p=p[f],p===null&&(p=void 0))),new(p===void 0?Array:p)(h===0?0:h)}},"69f3":function(o,a,s){var l=s("7f9a"),c=s("da84"),u=s("861d"),f=s("9112"),d=s("5135"),h=s("f772"),p=s("d012"),g=c.WeakMap,v,m,y,E=function(S){return y(S)?m(S):v(S,{})},x=function(S){return function(_){var I;if(!u(_)||(I=m(_)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return I}};if(l){var C=new g,A=C.get,w=C.has,b=C.set;v=function(S,_){return b.call(C,S,_),_},m=function(S){return A.call(C,S)||{}},y=function(S){return w.call(C,S)}}else{var T=h("state");p[T]=!0,v=function(S,_){return f(S,T,_),_},m=function(S){return d(S,T)?S[T]:{}},y=function(S){return d(S,T)}}o.exports={set:v,get:m,has:y,enforce:E,getterFor:x}},"6eeb":function(o,a,s){var l=s("da84"),c=s("9112"),u=s("5135"),f=s("ce4e"),d=s("8925"),h=s("69f3"),p=h.get,g=h.enforce,v=String(String).split("String");(o.exports=function(m,y,E,x){var C=x?!!x.unsafe:!1,A=x?!!x.enumerable:!1,w=x?!!x.noTargetGet:!1;if(typeof E=="function"&&(typeof y=="string"&&!u(E,"name")&&c(E,"name",y),g(E).source=v.join(typeof y=="string"?y:"")),m===l){A?m[y]=E:f(y,E);return}else C?!w&&m[y]&&(A=!0):delete m[y];A?m[y]=E:c(m,y,E)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||d(this)})},"6f53":function(o,a,s){var l=s("83ab"),c=s("df75"),u=s("fc6a"),f=s("d1e7").f,d=function(h){return function(p){for(var g=u(p),v=c(g),m=v.length,y=0,E=[],x;m>y;)x=v[y++],(!l||f.call(g,x))&&E.push(h?[x,g[x]]:g[x]);return E}};o.exports={entries:d(!0),values:d(!1)}},"73d9":function(o,a,s){var l=s("44d2");l("flatMap")},7418:function(o,a){a.f=Object.getOwnPropertySymbols},"746f":function(o,a,s){var l=s("428f"),c=s("5135"),u=s("e538"),f=s("9bf2").f;o.exports=function(d){var h=l.Symbol||(l.Symbol={});c(h,d)||f(h,d,{value:u.f(d)})}},7839:function(o,a){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(o,a,s){var l=s("1d80");o.exports=function(c){return Object(l(c))}},"7c73":function(o,a,s){var l=s("825a"),c=s("37e8"),u=s("7839"),f=s("d012"),d=s("1be4"),h=s("cc12"),p=s("f772"),g=">",v="<",m="prototype",y="script",E=p("IE_PROTO"),x=function(){},C=function(S){return v+y+g+S+v+"/"+y+g},A=function(S){S.write(C("")),S.close();var _=S.parentWindow.Object;return S=null,_},w=function(){var S=h("iframe"),_="java"+y+":",I;return S.style.display="none",d.appendChild(S),S.src=String(_),I=S.contentWindow.document,I.open(),I.write(C("document.F=Object")),I.close(),I.F},b,T=function(){try{b=document.domain&&new ActiveXObject("htmlfile")}catch{}T=b?A(b):w();for(var S=u.length;S--;)delete T[m][u[S]];return T()};f[E]=!0,o.exports=Object.create||function(_,I){var H;return _!==null?(x[m]=l(_),H=new x,x[m]=null,H[E]=_):H=T(),I===void 0?H:c(H,I)}},"7dd0":function(o,a,s){var l=s("23e7"),c=s("9ed3"),u=s("e163"),f=s("d2bb"),d=s("d44e"),h=s("9112"),p=s("6eeb"),g=s("b622"),v=s("c430"),m=s("3f8c"),y=s("ae93"),E=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,C=g("iterator"),A="keys",w="values",b="entries",T=function(){return this};o.exports=function(S,_,I,H,B,j,Z){c(I,_,H);var q=function(J){if(J===B&&pe)return pe;if(!x&&J in ge)return ge[J];switch(J){case A:return function(){return new I(this,J)};case w:return function(){return new I(this,J)};case b:return function(){return new I(this,J)}}return function(){return new I(this)}},K=_+" Iterator",oe=!1,ge=S.prototype,Ae=ge[C]||ge["@@iterator"]||B&&ge[B],pe=!x&&Ae||q(B),P=_=="Array"&&ge.entries||Ae,G,z,U;if(P&&(G=u(P.call(new S)),E!==Object.prototype&&G.next&&(!v&&u(G)!==E&&(f?f(G,E):typeof G[C]!="function"&&h(G,C,T)),d(G,K,!0,!0),v&&(m[K]=T))),B==w&&Ae&&Ae.name!==w&&(oe=!0,pe=function(){return Ae.call(this)}),(!v||Z)&&ge[C]!==pe&&h(ge,C,pe),m[_]=pe,B)if(z={values:q(w),keys:j?pe:q(A),entries:q(b)},Z)for(U in z)(x||oe||!(U in ge))&&p(ge,U,z[U]);else l({target:_,proto:!0,forced:x||oe},z);return z}},"7f9a":function(o,a,s){var l=s("da84"),c=s("8925"),u=l.WeakMap;o.exports=typeof u=="function"&&/native code/.test(c(u))},"825a":function(o,a,s){var l=s("861d");o.exports=function(c){if(!l(c))throw TypeError(String(c)+" is not an object");return c}},"83ab":function(o,a,s){var l=s("d039");o.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(o,a,s){var l=s("c04e"),c=s("9bf2"),u=s("5c6c");o.exports=function(f,d,h){var p=l(d);p in f?c.f(f,p,u(0,h)):f[p]=h}},"861d":function(o,a){o.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},8875:function(o,a,s){var l,c,u;(function(f,d){c=[],l=d,u=typeof l=="function"?l.apply(a,c):l,u!==void 0&&(o.exports=u)})(typeof self<"u"?self:this,function(){function f(){var d=Object.getOwnPropertyDescriptor(document,"currentScript");if(!d&&"currentScript"in document&&document.currentScript||d&&d.get!==f&&document.currentScript)return document.currentScript;try{throw new Error}catch(b){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,g=h.exec(b.stack)||p.exec(b.stack),v=g&&g[1]||!1,m=g&&g[2]||!1,y=document.location.href.replace(document.location.hash,""),E,x,C,A=document.getElementsByTagName("script");v===y&&(E=document.documentElement.outerHTML,x=new RegExp("(?:[^\\n]+?\\n){0,"+(m-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),C=E.replace(x,"$1").trim());for(var w=0;w<A.length;w++)if(A[w].readyState==="interactive"||A[w].src===v||v===y&&A[w].innerHTML&&A[w].innerHTML.trim()===C)return A[w];return null}}return f})},8925:function(o,a,s){var l=s("c6cd"),c=Function.toString;typeof l.inspectSource!="function"&&(l.inspectSource=function(u){return c.call(u)}),o.exports=l.inspectSource},"8aa5":function(o,a,s){var l=s("6547").charAt;o.exports=function(c,u,f){return u+(f?l(c,u).length:1)}},"8bbf":function(o,a){o.exports=n},"90e3":function(o,a){var s=0,l=Math.random();o.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++s+l).toString(36)}},9112:function(o,a,s){var l=s("83ab"),c=s("9bf2"),u=s("5c6c");o.exports=l?function(f,d,h){return c.f(f,d,u(1,h))}:function(f,d,h){return f[d]=h,f}},9263:function(o,a,s){var l=s("ad6d"),c=s("9f7f"),u=RegExp.prototype.exec,f=String.prototype.replace,d=u,h=function(){var m=/a/,y=/b*/g;return u.call(m,"a"),u.call(y,"a"),m.lastIndex!==0||y.lastIndex!==0}(),p=c.UNSUPPORTED_Y||c.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,v=h||g||p;v&&(d=function(y){var E=this,x,C,A,w,b=p&&E.sticky,T=l.call(E),S=E.source,_=0,I=y;return b&&(T=T.replace("y",""),T.indexOf("g")===-1&&(T+="g"),I=String(y).slice(E.lastIndex),E.lastIndex>0&&(!E.multiline||E.multiline&&y[E.lastIndex-1]!==`
151
+ `)&&(S="(?: "+S+")",I=" "+I,_++),C=new RegExp("^(?:"+S+")",T)),g&&(C=new RegExp("^"+S+"$(?!\\s)",T)),h&&(x=E.lastIndex),A=u.call(b?C:E,I),b?A?(A.input=A.input.slice(_),A[0]=A[0].slice(_),A.index=E.lastIndex,E.lastIndex+=A[0].length):E.lastIndex=0:h&&A&&(E.lastIndex=E.global?A.index+A[0].length:x),g&&A&&A.length>1&&f.call(A[0],C,function(){for(w=1;w<arguments.length-2;w++)arguments[w]===void 0&&(A[w]=void 0)}),A}),o.exports=d},"94ca":function(o,a,s){var l=s("d039"),c=/#|\.prototype\./,u=function(g,v){var m=d[f(g)];return m==p?!0:m==h?!1:typeof v=="function"?l(v):!!v},f=u.normalize=function(g){return String(g).replace(c,".").toLowerCase()},d=u.data={},h=u.NATIVE="N",p=u.POLYFILL="P";o.exports=u},"99af":function(o,a,s){var l=s("23e7"),c=s("d039"),u=s("e8b5"),f=s("861d"),d=s("7b0b"),h=s("50c4"),p=s("8418"),g=s("65f0"),v=s("1dde"),m=s("b622"),y=s("2d00"),E=m("isConcatSpreadable"),x=9007199254740991,C="Maximum allowed index exceeded",A=y>=51||!c(function(){var S=[];return S[E]=!1,S.concat()[0]!==S}),w=v("concat"),b=function(S){if(!f(S))return!1;var _=S[E];return _!==void 0?!!_:u(S)},T=!A||!w;l({target:"Array",proto:!0,forced:T},{concat:function(_){var I=d(this),H=g(I,0),B=0,j,Z,q,K,oe;for(j=-1,q=arguments.length;j<q;j++)if(oe=j===-1?I:arguments[j],b(oe)){if(K=h(oe.length),B+K>x)throw TypeError(C);for(Z=0;Z<K;Z++,B++)Z in oe&&p(H,B,oe[Z])}else{if(B>=x)throw TypeError(C);p(H,B++,oe)}return H.length=B,H}})},"9bdd":function(o,a,s){var l=s("825a");o.exports=function(c,u,f,d){try{return d?u(l(f)[0],f[1]):u(f)}catch(p){var h=c.return;throw h!==void 0&&l(h.call(c)),p}}},"9bf2":function(o,a,s){var l=s("83ab"),c=s("0cfb"),u=s("825a"),f=s("c04e"),d=Object.defineProperty;a.f=l?d:function(p,g,v){if(u(p),g=f(g,!0),u(v),c)try{return d(p,g,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(p[g]=v.value),p}},"9ed3":function(o,a,s){var l=s("ae93").IteratorPrototype,c=s("7c73"),u=s("5c6c"),f=s("d44e"),d=s("3f8c"),h=function(){return this};o.exports=function(p,g,v){var m=g+" Iterator";return p.prototype=c(l,{next:u(1,v)}),f(p,m,!1,!0),d[m]=h,p}},"9f7f":function(o,a,s){var l=s("d039");function c(u,f){return RegExp(u,f)}a.UNSUPPORTED_Y=l(function(){var u=c("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),a.BROKEN_CARET=l(function(){var u=c("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(o,a,s){var l=s("e8b5"),c=s("50c4"),u=s("0366"),f=function(d,h,p,g,v,m,y,E){for(var x=v,C=0,A=y?u(y,E,3):!1,w;C<g;){if(C in p){if(w=A?A(p[C],C,h):p[C],m>0&&l(w))x=f(d,h,w,c(w.length),x,m-1)-1;else{if(x>=9007199254740991)throw TypeError("Exceed the acceptable array length");d[x]=w}x++}C++}return x};o.exports=f},a352:function(o,a){o.exports=r},a434:function(o,a,s){var l=s("23e7"),c=s("23cb"),u=s("a691"),f=s("50c4"),d=s("7b0b"),h=s("65f0"),p=s("8418"),g=s("1dde"),v=s("ae40"),m=g("splice"),y=v("splice",{ACCESSORS:!0,0:0,1:2}),E=Math.max,x=Math.min,C=9007199254740991,A="Maximum allowed length exceeded";l({target:"Array",proto:!0,forced:!m||!y},{splice:function(b,T){var S=d(this),_=f(S.length),I=c(b,_),H=arguments.length,B,j,Z,q,K,oe;if(H===0?B=j=0:H===1?(B=0,j=_-I):(B=H-2,j=x(E(u(T),0),_-I)),_+B-j>C)throw TypeError(A);for(Z=h(S,j),q=0;q<j;q++)K=I+q,K in S&&p(Z,q,S[K]);if(Z.length=j,B<j){for(q=I;q<_-j;q++)K=q+j,oe=q+B,K in S?S[oe]=S[K]:delete S[oe];for(q=_;q>_-j+B;q--)delete S[q-1]}else if(B>j)for(q=_-j;q>I;q--)K=q+j-1,oe=q+B-1,K in S?S[oe]=S[K]:delete S[oe];for(q=0;q<B;q++)S[q+I]=arguments[q+2];return S.length=_-j+B,Z}})},a4d3:function(o,a,s){var l=s("23e7"),c=s("da84"),u=s("d066"),f=s("c430"),d=s("83ab"),h=s("4930"),p=s("fdbf"),g=s("d039"),v=s("5135"),m=s("e8b5"),y=s("861d"),E=s("825a"),x=s("7b0b"),C=s("fc6a"),A=s("c04e"),w=s("5c6c"),b=s("7c73"),T=s("df75"),S=s("241c"),_=s("057f"),I=s("7418"),H=s("06cf"),B=s("9bf2"),j=s("d1e7"),Z=s("9112"),q=s("6eeb"),K=s("5692"),oe=s("f772"),ge=s("d012"),Ae=s("90e3"),pe=s("b622"),P=s("e538"),G=s("746f"),z=s("d44e"),U=s("69f3"),J=s("b727").forEach,ne=oe("hidden"),ce="Symbol",Q="prototype",X=pe("toPrimitive"),de=U.set,me=U.getterFor(ce),Ne=Object[Q],Fe=c.Symbol,lt=u("JSON","stringify"),We=H.f,Ce=B.f,ct=_.f,Ct=j.f,ue=K("symbols"),Ee=K("op-symbols"),Be=K("string-to-symbol-registry"),ot=K("symbol-to-string-registry"),le=K("wks"),Le=c.QObject,tt=!Le||!Le[Q]||!Le[Q].findChild,qe=d&&g(function(){return b(Ce({},"a",{get:function(){return Ce(this,"a",{value:7}).a}})).a!=7})?function(je,_e,He){var rt=We(Ne,_e);rt&&delete Ne[_e],Ce(je,_e,He),rt&&je!==Ne&&Ce(Ne,_e,rt)}:Ce,Pe=function(je,_e){var He=ue[je]=b(Fe[Q]);return de(He,{type:ce,tag:je,description:_e}),d||(He.description=_e),He},W=p?function(je){return typeof je=="symbol"}:function(je){return Object(je)instanceof Fe},k=function(_e,He,rt){_e===Ne&&k(Ee,He,rt),E(_e);var ft=A(He,!0);return E(rt),v(ue,ft)?(rt.enumerable?(v(_e,ne)&&_e[ne][ft]&&(_e[ne][ft]=!1),rt=b(rt,{enumerable:w(0,!1)})):(v(_e,ne)||Ce(_e,ne,w(1,{})),_e[ne][ft]=!0),qe(_e,ft,rt)):Ce(_e,ft,rt)},L=function(_e,He){E(_e);var rt=C(He),ft=T(rt).concat(Ye(rt));return J(ft,function(cn){(!d||ve.call(rt,cn))&&k(_e,cn,rt[cn])}),_e},ee=function(_e,He){return He===void 0?b(_e):L(b(_e),He)},ve=function(_e){var He=A(_e,!0),rt=Ct.call(this,He);return this===Ne&&v(ue,He)&&!v(Ee,He)?!1:rt||!v(this,He)||!v(ue,He)||v(this,ne)&&this[ne][He]?rt:!0},Oe=function(_e,He){var rt=C(_e),ft=A(He,!0);if(!(rt===Ne&&v(ue,ft)&&!v(Ee,ft))){var cn=We(rt,ft);return cn&&v(ue,ft)&&!(v(rt,ne)&&rt[ne][ft])&&(cn.enumerable=!0),cn}},ze=function(_e){var He=ct(C(_e)),rt=[];return J(He,function(ft){!v(ue,ft)&&!v(ge,ft)&&rt.push(ft)}),rt},Ye=function(_e){var He=_e===Ne,rt=ct(He?Ee:C(_e)),ft=[];return J(rt,function(cn){v(ue,cn)&&(!He||v(Ne,cn))&&ft.push(ue[cn])}),ft};if(h||(Fe=function(){if(this instanceof Fe)throw TypeError("Symbol is not a constructor");var _e=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),He=Ae(_e),rt=function(ft){this===Ne&&rt.call(Ee,ft),v(this,ne)&&v(this[ne],He)&&(this[ne][He]=!1),qe(this,He,w(1,ft))};return d&&tt&&qe(Ne,He,{configurable:!0,set:rt}),Pe(He,_e)},q(Fe[Q],"toString",function(){return me(this).tag}),q(Fe,"withoutSetter",function(je){return Pe(Ae(je),je)}),j.f=ve,B.f=k,H.f=Oe,S.f=_.f=ze,I.f=Ye,P.f=function(je){return Pe(pe(je),je)},d&&(Ce(Fe[Q],"description",{configurable:!0,get:function(){return me(this).description}}),f||q(Ne,"propertyIsEnumerable",ve,{unsafe:!0}))),l({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:Fe}),J(T(le),function(je){G(je)}),l({target:ce,stat:!0,forced:!h},{for:function(je){var _e=String(je);if(v(Be,_e))return Be[_e];var He=Fe(_e);return Be[_e]=He,ot[He]=_e,He},keyFor:function(_e){if(!W(_e))throw TypeError(_e+" is not a symbol");if(v(ot,_e))return ot[_e]},useSetter:function(){tt=!0},useSimple:function(){tt=!1}}),l({target:"Object",stat:!0,forced:!h,sham:!d},{create:ee,defineProperty:k,defineProperties:L,getOwnPropertyDescriptor:Oe}),l({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:ze,getOwnPropertySymbols:Ye}),l({target:"Object",stat:!0,forced:g(function(){I.f(1)})},{getOwnPropertySymbols:function(_e){return I.f(x(_e))}}),lt){var ut=!h||g(function(){var je=Fe();return lt([je])!="[null]"||lt({a:je})!="{}"||lt(Object(je))!="{}"});l({target:"JSON",stat:!0,forced:ut},{stringify:function(_e,He,rt){for(var ft=[_e],cn=1,dc;arguments.length>cn;)ft.push(arguments[cn++]);if(dc=He,!(!y(He)&&_e===void 0||W(_e)))return m(He)||(He=function(Tv,Ri){if(typeof dc=="function"&&(Ri=dc.call(this,Tv,Ri)),!W(Ri))return Ri}),ft[1]=He,lt.apply(null,ft)}})}Fe[Q][X]||Z(Fe[Q],X,Fe[Q].valueOf),z(Fe,ce),ge[ne]=!0},a630:function(o,a,s){var l=s("23e7"),c=s("4df4"),u=s("1c7e"),f=!u(function(d){Array.from(d)});l({target:"Array",stat:!0,forced:f},{from:c})},a640:function(o,a,s){var l=s("d039");o.exports=function(c,u){var f=[][c];return!!f&&l(function(){f.call(null,u||function(){throw 1},1)})}},a691:function(o,a){var s=Math.ceil,l=Math.floor;o.exports=function(c){return isNaN(c=+c)?0:(c>0?l:s)(c)}},ab13:function(o,a,s){var l=s("b622"),c=l("match");o.exports=function(u){var f=/./;try{"/./"[u](f)}catch{try{return f[c]=!1,"/./"[u](f)}catch{}}return!1}},ac1f:function(o,a,s){var l=s("23e7"),c=s("9263");l({target:"RegExp",proto:!0,forced:/./.exec!==c},{exec:c})},ad6d:function(o,a,s){var l=s("825a");o.exports=function(){var c=l(this),u="";return c.global&&(u+="g"),c.ignoreCase&&(u+="i"),c.multiline&&(u+="m"),c.dotAll&&(u+="s"),c.unicode&&(u+="u"),c.sticky&&(u+="y"),u}},ae40:function(o,a,s){var l=s("83ab"),c=s("d039"),u=s("5135"),f=Object.defineProperty,d={},h=function(p){throw p};o.exports=function(p,g){if(u(d,p))return d[p];g||(g={});var v=[][p],m=u(g,"ACCESSORS")?g.ACCESSORS:!1,y=u(g,0)?g[0]:h,E=u(g,1)?g[1]:void 0;return d[p]=!!v&&!c(function(){if(m&&!l)return!0;var x={length:-1};m?f(x,1,{enumerable:!0,get:h}):x[1]=1,v.call(x,y,E)})}},ae93:function(o,a,s){var l=s("e163"),c=s("9112"),u=s("5135"),f=s("b622"),d=s("c430"),h=f("iterator"),p=!1,g=function(){return this},v,m,y;[].keys&&(y=[].keys(),"next"in y?(m=l(l(y)),m!==Object.prototype&&(v=m)):p=!0),v==null&&(v={}),!d&&!u(v,h)&&c(v,h,g),o.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:p}},b041:function(o,a,s){var l=s("00ee"),c=s("f5df");o.exports=l?{}.toString:function(){return"[object "+c(this)+"]"}},b0c0:function(o,a,s){var l=s("83ab"),c=s("9bf2").f,u=Function.prototype,f=u.toString,d=/^\s*function ([^ (]*)/,h="name";l&&!(h in u)&&c(u,h,{configurable:!0,get:function(){try{return f.call(this).match(d)[1]}catch{return""}}})},b622:function(o,a,s){var l=s("da84"),c=s("5692"),u=s("5135"),f=s("90e3"),d=s("4930"),h=s("fdbf"),p=c("wks"),g=l.Symbol,v=h?g:g&&g.withoutSetter||f;o.exports=function(m){return u(p,m)||(d&&u(g,m)?p[m]=g[m]:p[m]=v("Symbol."+m)),p[m]}},b64b:function(o,a,s){var l=s("23e7"),c=s("7b0b"),u=s("df75"),f=s("d039"),d=f(function(){u(1)});l({target:"Object",stat:!0,forced:d},{keys:function(p){return u(c(p))}})},b727:function(o,a,s){var l=s("0366"),c=s("44ad"),u=s("7b0b"),f=s("50c4"),d=s("65f0"),h=[].push,p=function(g){var v=g==1,m=g==2,y=g==3,E=g==4,x=g==6,C=g==5||x;return function(A,w,b,T){for(var S=u(A),_=c(S),I=l(w,b,3),H=f(_.length),B=0,j=T||d,Z=v?j(A,H):m?j(A,0):void 0,q,K;H>B;B++)if((C||B in _)&&(q=_[B],K=I(q,B,S),g)){if(v)Z[B]=K;else if(K)switch(g){case 3:return!0;case 5:return q;case 6:return B;case 2:h.call(Z,q)}else if(E)return!1}return x?-1:y||E?E:Z}};o.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(o,a,s){var l=s("861d");o.exports=function(c,u){if(!l(c))return c;var f,d;if(u&&typeof(f=c.toString)=="function"&&!l(d=f.call(c))||typeof(f=c.valueOf)=="function"&&!l(d=f.call(c))||!u&&typeof(f=c.toString)=="function"&&!l(d=f.call(c)))return d;throw TypeError("Can't convert object to primitive value")}},c430:function(o,a){o.exports=!1},c6b6:function(o,a){var s={}.toString;o.exports=function(l){return s.call(l).slice(8,-1)}},c6cd:function(o,a,s){var l=s("da84"),c=s("ce4e"),u="__core-js_shared__",f=l[u]||c(u,{});o.exports=f},c740:function(o,a,s){var l=s("23e7"),c=s("b727").findIndex,u=s("44d2"),f=s("ae40"),d="findIndex",h=!0,p=f(d);d in[]&&Array(1)[d](function(){h=!1}),l({target:"Array",proto:!0,forced:h||!p},{findIndex:function(v){return c(this,v,arguments.length>1?arguments[1]:void 0)}}),u(d)},c8ba:function(o,a){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}o.exports=s},c975:function(o,a,s){var l=s("23e7"),c=s("4d64").indexOf,u=s("a640"),f=s("ae40"),d=[].indexOf,h=!!d&&1/[1].indexOf(1,-0)<0,p=u("indexOf"),g=f("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:h||!p||!g},{indexOf:function(m){return h?d.apply(this,arguments)||0:c(this,m,arguments.length>1?arguments[1]:void 0)}})},ca84:function(o,a,s){var l=s("5135"),c=s("fc6a"),u=s("4d64").indexOf,f=s("d012");o.exports=function(d,h){var p=c(d),g=0,v=[],m;for(m in p)!l(f,m)&&l(p,m)&&v.push(m);for(;h.length>g;)l(p,m=h[g++])&&(~u(v,m)||v.push(m));return v}},caad:function(o,a,s){var l=s("23e7"),c=s("4d64").includes,u=s("44d2"),f=s("ae40"),d=f("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:!d},{includes:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(o,a,s){var l=s("da84"),c=s("861d"),u=l.document,f=c(u)&&c(u.createElement);o.exports=function(d){return f?u.createElement(d):{}}},ce4e:function(o,a,s){var l=s("da84"),c=s("9112");o.exports=function(u,f){try{c(l,u,f)}catch{l[u]=f}return f}},d012:function(o,a){o.exports={}},d039:function(o,a){o.exports=function(s){try{return!!s()}catch{return!0}}},d066:function(o,a,s){var l=s("428f"),c=s("da84"),u=function(f){return typeof f=="function"?f:void 0};o.exports=function(f,d){return arguments.length<2?u(l[f])||u(c[f]):l[f]&&l[f][d]||c[f]&&c[f][d]}},d1e7:function(o,a,s){var l={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u=c&&!l.call({1:2},1);a.f=u?function(d){var h=c(this,d);return!!h&&h.enumerable}:l},d28b:function(o,a,s){var l=s("746f");l("iterator")},d2bb:function(o,a,s){var l=s("825a"),c=s("3bbe");o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,f={},d;try{d=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,d.call(f,[]),u=f instanceof Array}catch{}return function(p,g){return l(p),c(g),u?d.call(p,g):p.__proto__=g,p}}():void 0)},d3b7:function(o,a,s){var l=s("00ee"),c=s("6eeb"),u=s("b041");l||c(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(o,a,s){var l=s("9bf2").f,c=s("5135"),u=s("b622"),f=u("toStringTag");o.exports=function(d,h,p){d&&!c(d=p?d:d.prototype,f)&&l(d,f,{configurable:!0,value:h})}},d58f:function(o,a,s){var l=s("1c0b"),c=s("7b0b"),u=s("44ad"),f=s("50c4"),d=function(h){return function(p,g,v,m){l(g);var y=c(p),E=u(y),x=f(y.length),C=h?x-1:0,A=h?-1:1;if(v<2)for(;;){if(C in E){m=E[C],C+=A;break}if(C+=A,h?C<0:x<=C)throw TypeError("Reduce of empty array with no initial value")}for(;h?C>=0:x>C;C+=A)C in E&&(m=g(m,E[C],C,y));return m}};o.exports={left:d(!1),right:d(!0)}},d784:function(o,a,s){s("ac1f");var l=s("6eeb"),c=s("d039"),u=s("b622"),f=s("9263"),d=s("9112"),h=u("species"),p=!c(function(){var E=/./;return E.exec=function(){var x=[];return x.groups={a:"7"},x},"".replace(E,"$<a>")!=="7"}),g=function(){return"a".replace(/./,"$0")==="$0"}(),v=u("replace"),m=function(){return/./[v]?/./[v]("a","$0")==="":!1}(),y=!c(function(){var E=/(?:)/,x=E.exec;E.exec=function(){return x.apply(this,arguments)};var C="ab".split(E);return C.length!==2||C[0]!=="a"||C[1]!=="b"});o.exports=function(E,x,C,A){var w=u(E),b=!c(function(){var B={};return B[w]=function(){return 7},""[E](B)!=7}),T=b&&!c(function(){var B=!1,j=/a/;return E==="split"&&(j={},j.constructor={},j.constructor[h]=function(){return j},j.flags="",j[w]=/./[w]),j.exec=function(){return B=!0,null},j[w](""),!B});if(!b||!T||E==="replace"&&!(p&&g&&!m)||E==="split"&&!y){var S=/./[w],_=C(w,""[E],function(B,j,Z,q,K){return j.exec===f?b&&!K?{done:!0,value:S.call(j,Z,q)}:{done:!0,value:B.call(Z,j,q)}:{done:!1}},{REPLACE_KEEPS_$0:g,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:m}),I=_[0],H=_[1];l(String.prototype,E,I),l(RegExp.prototype,w,x==2?function(B,j){return H.call(B,this,j)}:function(B){return H.call(B,this)})}A&&d(RegExp.prototype[w],"sham",!0)}},d81d:function(o,a,s){var l=s("23e7"),c=s("b727").map,u=s("1dde"),f=s("ae40"),d=u("map"),h=f("map");l({target:"Array",proto:!0,forced:!d||!h},{map:function(g){return c(this,g,arguments.length>1?arguments[1]:void 0)}})},da84:function(o,a,s){(function(l){var c=function(u){return u&&u.Math==Math&&u};o.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof l=="object"&&l)||Function("return this")()}).call(this,s("c8ba"))},dbb4:function(o,a,s){var l=s("23e7"),c=s("83ab"),u=s("56ef"),f=s("fc6a"),d=s("06cf"),h=s("8418");l({target:"Object",stat:!0,sham:!c},{getOwnPropertyDescriptors:function(g){for(var v=f(g),m=d.f,y=u(v),E={},x=0,C,A;y.length>x;)A=m(v,C=y[x++]),A!==void 0&&h(E,C,A);return E}})},dbf1:function(o,a,s){(function(l){s.d(a,"a",function(){return u});function c(){return typeof window<"u"?window.console:l.console}var u=c()}).call(this,s("c8ba"))},ddb0:function(o,a,s){var l=s("da84"),c=s("fdbc"),u=s("e260"),f=s("9112"),d=s("b622"),h=d("iterator"),p=d("toStringTag"),g=u.values;for(var v in c){var m=l[v],y=m&&m.prototype;if(y){if(y[h]!==g)try{f(y,h,g)}catch{y[h]=g}if(y[p]||f(y,p,v),c[v]){for(var E in u)if(y[E]!==u[E])try{f(y,E,u[E])}catch{y[E]=u[E]}}}}},df75:function(o,a,s){var l=s("ca84"),c=s("7839");o.exports=Object.keys||function(f){return l(f,c)}},e01a:function(o,a,s){var l=s("23e7"),c=s("83ab"),u=s("da84"),f=s("5135"),d=s("861d"),h=s("9bf2").f,p=s("e893"),g=u.Symbol;if(c&&typeof g=="function"&&(!("description"in g.prototype)||g().description!==void 0)){var v={},m=function(){var w=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),b=this instanceof m?new g(w):w===void 0?g():g(w);return w===""&&(v[b]=!0),b};p(m,g);var y=m.prototype=g.prototype;y.constructor=m;var E=y.toString,x=String(g("test"))=="Symbol(test)",C=/^Symbol\((.*)\)[^)]+$/;h(y,"description",{configurable:!0,get:function(){var w=d(this)?this.valueOf():this,b=E.call(w);if(f(v,w))return"";var T=x?b.slice(7,-1):b.replace(C,"$1");return T===""?void 0:T}}),l({global:!0,forced:!0},{Symbol:m})}},e163:function(o,a,s){var l=s("5135"),c=s("7b0b"),u=s("f772"),f=s("e177"),d=u("IE_PROTO"),h=Object.prototype;o.exports=f?Object.getPrototypeOf:function(p){return p=c(p),l(p,d)?p[d]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?h:null}},e177:function(o,a,s){var l=s("d039");o.exports=!l(function(){function c(){}return c.prototype.constructor=null,Object.getPrototypeOf(new c)!==c.prototype})},e260:function(o,a,s){var l=s("fc6a"),c=s("44d2"),u=s("3f8c"),f=s("69f3"),d=s("7dd0"),h="Array Iterator",p=f.set,g=f.getterFor(h);o.exports=d(Array,"Array",function(v,m){p(this,{type:h,target:l(v),index:0,kind:m})},function(){var v=g(this),m=v.target,y=v.kind,E=v.index++;return!m||E>=m.length?(v.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:E,done:!1}:y=="values"?{value:m[E],done:!1}:{value:[E,m[E]],done:!1}},"values"),u.Arguments=u.Array,c("keys"),c("values"),c("entries")},e439:function(o,a,s){var l=s("23e7"),c=s("d039"),u=s("fc6a"),f=s("06cf").f,d=s("83ab"),h=c(function(){f(1)}),p=!d||h;l({target:"Object",stat:!0,forced:p,sham:!d},{getOwnPropertyDescriptor:function(v,m){return f(u(v),m)}})},e538:function(o,a,s){var l=s("b622");a.f=l},e893:function(o,a,s){var l=s("5135"),c=s("56ef"),u=s("06cf"),f=s("9bf2");o.exports=function(d,h){for(var p=c(h),g=f.f,v=u.f,m=0;m<p.length;m++){var y=p[m];l(d,y)||g(d,y,v(h,y))}}},e8b5:function(o,a,s){var l=s("c6b6");o.exports=Array.isArray||function(u){return l(u)=="Array"}},e95a:function(o,a,s){var l=s("b622"),c=s("3f8c"),u=l("iterator"),f=Array.prototype;o.exports=function(d){return d!==void 0&&(c.Array===d||f[u]===d)}},f5df:function(o,a,s){var l=s("00ee"),c=s("c6b6"),u=s("b622"),f=u("toStringTag"),d=c(function(){return arguments}())=="Arguments",h=function(p,g){try{return p[g]}catch{}};o.exports=l?c:function(p){var g,v,m;return p===void 0?"Undefined":p===null?"Null":typeof(v=h(g=Object(p),f))=="string"?v:d?c(g):(m=c(g))=="Object"&&typeof g.callee=="function"?"Arguments":m}},f772:function(o,a,s){var l=s("5692"),c=s("90e3"),u=l("keys");o.exports=function(f){return u[f]||(u[f]=c(f))}},fb15:function(o,a,s){if(s.r(a),typeof window<"u"){var l=window.document.currentScript;{var c=s("8875");l=c(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:c})}var u=l&&l.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(s.p=u[1])}s("99af"),s("4de4"),s("4160"),s("c975"),s("d81d"),s("a434"),s("159b"),s("a4d3"),s("e439"),s("dbb4"),s("b64b");function f(W,k,L){return k in W?Object.defineProperty(W,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):W[k]=L,W}function d(W,k){var L=Object.keys(W);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(W);k&&(ee=ee.filter(function(ve){return Object.getOwnPropertyDescriptor(W,ve).enumerable})),L.push.apply(L,ee)}return L}function h(W){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?d(Object(L),!0).forEach(function(ee){f(W,ee,L[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(L)):d(Object(L)).forEach(function(ee){Object.defineProperty(W,ee,Object.getOwnPropertyDescriptor(L,ee))})}return W}function p(W){if(Array.isArray(W))return W}s("e01a"),s("d28b"),s("e260"),s("d3b7"),s("3ca3"),s("ddb0");function g(W,k){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(W)))){var L=[],ee=!0,ve=!1,Oe=void 0;try{for(var ze=W[Symbol.iterator](),Ye;!(ee=(Ye=ze.next()).done)&&(L.push(Ye.value),!(k&&L.length===k));ee=!0);}catch(ut){ve=!0,Oe=ut}finally{try{!ee&&ze.return!=null&&ze.return()}finally{if(ve)throw Oe}}return L}}s("a630"),s("fb6a"),s("b0c0"),s("25f0");function v(W,k){(k==null||k>W.length)&&(k=W.length);for(var L=0,ee=new Array(k);L<k;L++)ee[L]=W[L];return ee}function m(W,k){if(W){if(typeof W=="string")return v(W,k);var L=Object.prototype.toString.call(W).slice(8,-1);if(L==="Object"&&W.constructor&&(L=W.constructor.name),L==="Map"||L==="Set")return Array.from(W);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return v(W,k)}}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
152
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E(W,k){return p(W)||g(W,k)||m(W,k)||y()}function x(W){if(Array.isArray(W))return v(W)}function C(W){if(typeof Symbol<"u"&&Symbol.iterator in Object(W))return Array.from(W)}function A(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
153
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(W){return x(W)||C(W)||m(W)||A()}var b=s("a352"),T=s.n(b);function S(W){W.parentElement!==null&&W.parentElement.removeChild(W)}function _(W,k,L){var ee=L===0?W.children[0]:W.children[L-1].nextSibling;W.insertBefore(k,ee)}var I=s("dbf1");s("13d5"),s("4fad"),s("ac1f"),s("5319");function H(W){var k=Object.create(null);return function(ee){var ve=k[ee];return ve||(k[ee]=W(ee))}}var B=/-(\w)/g,j=H(function(W){return W.replace(B,function(k,L){return L.toUpperCase()})});s("5db7"),s("73d9");var Z=["Start","Add","Remove","Update","End"],q=["Choose","Unchoose","Sort","Filter","Clone"],K=["Move"],oe=[K,Z,q].flatMap(function(W){return W}).map(function(W){return"on".concat(W)}),ge={manage:K,manageAndEmit:Z,emit:q};function Ae(W){return oe.indexOf(W)!==-1}s("caad"),s("2ca0");var pe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function P(W){return pe.includes(W)}function G(W){return["transition-group","TransitionGroup"].includes(W)}function z(W){return["id","class","role","style"].includes(W)||W.startsWith("data-")||W.startsWith("aria-")||W.startsWith("on")}function U(W){return W.reduce(function(k,L){var ee=E(L,2),ve=ee[0],Oe=ee[1];return k[ve]=Oe,k},{})}function J(W){var k=W.$attrs,L=W.componentData,ee=L===void 0?{}:L,ve=U(Object.entries(k).filter(function(Oe){var ze=E(Oe,2),Ye=ze[0];return ze[1],z(Ye)}));return h(h({},ve),ee)}function ne(W){var k=W.$attrs,L=W.callBackBuilder,ee=U(ce(k));Object.entries(L).forEach(function(Oe){var ze=E(Oe,2),Ye=ze[0],ut=ze[1];ge[Ye].forEach(function(je){ee["on".concat(je)]=ut(je)})});var ve="[data-draggable]".concat(ee.draggable||"");return h(h({},ee),{},{draggable:ve})}function ce(W){return Object.entries(W).filter(function(k){var L=E(k,2),ee=L[0];return L[1],!z(ee)}).map(function(k){var L=E(k,2),ee=L[0],ve=L[1];return[j(ee),ve]}).filter(function(k){var L=E(k,2),ee=L[0];return L[1],!Ae(ee)})}s("c740");function Q(W,k){if(!(W instanceof k))throw new TypeError("Cannot call a class as a function")}function X(W,k){for(var L=0;L<k.length;L++){var ee=k[L];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(W,ee.key,ee)}}function de(W,k,L){return k&&X(W.prototype,k),L&&X(W,L),W}var me=function(k){var L=k.el;return L},Ne=function(k,L){return k.__draggable_context=L},Fe=function(k){return k.__draggable_context},lt=function(){function W(k){var L=k.nodes,ee=L.header,ve=L.default,Oe=L.footer,ze=k.root,Ye=k.realList;Q(this,W),this.defaultNodes=ve,this.children=[].concat(w(ee),w(ve),w(Oe)),this.externalComponent=ze.externalComponent,this.rootTransition=ze.transition,this.tag=ze.tag,this.realList=Ye}return de(W,[{key:"render",value:function(L,ee){var ve=this.tag,Oe=this.children,ze=this._isRootComponent,Ye=ze?{default:function(){return Oe}}:Oe;return L(ve,ee,Ye)}},{key:"updated",value:function(){var L=this.defaultNodes,ee=this.realList;L.forEach(function(ve,Oe){Ne(me(ve),{element:ee[Oe],index:Oe})})}},{key:"getUnderlyingVm",value:function(L){return Fe(L)}},{key:"getVmIndexFromDomIndex",value:function(L,ee){var ve=this.defaultNodes,Oe=ve.length,ze=ee.children,Ye=ze.item(L);if(Ye===null)return Oe;var ut=Fe(Ye);if(ut)return ut.index;if(Oe===0)return 0;var je=me(ve[0]),_e=w(ze).findIndex(function(He){return He===je});return L<_e?0:Oe}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),W}(),We=s("8bbf");function Ce(W,k){var L=W[k];return L?L():[]}function ct(W){var k=W.$slots,L=W.realList,ee=W.getKey,ve=L||[],Oe=["header","footer"].map(function(He){return Ce(k,He)}),ze=E(Oe,2),Ye=ze[0],ut=ze[1],je=k.item;if(!je)throw new Error("draggable element must have an item slot");var _e=ve.flatMap(function(He,rt){return je({element:He,index:rt}).map(function(ft){return ft.key=ee(He),ft.props=h(h({},ft.props||{}),{},{"data-draggable":!0}),ft})});if(_e.length!==ve.length)throw new Error("Item slot must have only one child");return{header:Ye,footer:ut,default:_e}}function Ct(W){var k=G(W),L=!P(W)&&!k;return{transition:k,externalComponent:L,tag:L?Object(We.resolveComponent)(W):k?We.TransitionGroup:W}}function ue(W){var k=W.$slots,L=W.tag,ee=W.realList,ve=W.getKey,Oe=ct({$slots:k,realList:ee,getKey:ve}),ze=Ct(L);return new lt({nodes:Oe,root:ze,realList:ee})}function Ee(W,k){var L=this;Object(We.nextTick)(function(){return L.$emit(W.toLowerCase(),k)})}function Be(W){var k=this;return function(L,ee){if(k.realList!==null)return k["onDrag".concat(W)](L,ee)}}function ot(W){var k=this,L=Be.call(this,W);return function(ee,ve){L.call(k,ee,ve),Ee.call(k,W,ee)}}var le=null,Le={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(k){return k}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},tt=["update:modelValue","change"].concat(w([].concat(w(ge.manageAndEmit),w(ge.emit)).map(function(W){return W.toLowerCase()}))),qe=Object(We.defineComponent)({name:"draggable",inheritAttrs:!1,props:Le,emits:tt,data:function(){return{error:!1}},render:function(){try{this.error=!1;var k=this.$slots,L=this.$attrs,ee=this.tag,ve=this.componentData,Oe=this.realList,ze=this.getKey,Ye=ue({$slots:k,tag:ee,realList:Oe,getKey:ze});this.componentStructure=Ye;var ut=J({$attrs:L,componentData:ve});return Ye.render(We.h,ut)}catch(je){return this.error=!0,Object(We.h)("pre",{style:{color:"red"}},je.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&I.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var k=this;if(!this.error){var L=this.$attrs,ee=this.$el,ve=this.componentStructure;ve.updated();var Oe=ne({$attrs:L,callBackBuilder:{manageAndEmit:function(ut){return ot.call(k,ut)},emit:function(ut){return Ee.bind(k,ut)},manage:function(ut){return Be.call(k,ut)}}}),ze=ee.nodeType===1?ee:ee.parentElement;this._sortable=new T.a(ze,Oe),this.targetDomElement=ze,ze.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var k=this.list;return k||this.modelValue},getKey:function(){var k=this.itemKey;return typeof k=="function"?k:function(L){return L[k]}}},watch:{$attrs:{handler:function(k){var L=this._sortable;L&&ce(k).forEach(function(ee){var ve=E(ee,2),Oe=ve[0],ze=ve[1];L.option(Oe,ze)})},deep:!0}},methods:{getUnderlyingVm:function(k){return this.componentStructure.getUnderlyingVm(k)||null},getUnderlyingPotencialDraggableComponent:function(k){return k.__draggable_component__},emitChanges:function(k){var L=this;Object(We.nextTick)(function(){return L.$emit("change",k)})},alterList:function(k){if(this.list){k(this.list);return}var L=w(this.modelValue);k(L),this.$emit("update:modelValue",L)},spliceList:function(){var k=arguments,L=function(ve){return ve.splice.apply(ve,w(k))};this.alterList(L)},updatePosition:function(k,L){var ee=function(Oe){return Oe.splice(L,0,Oe.splice(k,1)[0])};this.alterList(ee)},getRelatedContextFromMoveEvent:function(k){var L=k.to,ee=k.related,ve=this.getUnderlyingPotencialDraggableComponent(L);if(!ve)return{component:ve};var Oe=ve.realList,ze={list:Oe,component:ve};if(L!==ee&&Oe){var Ye=ve.getUnderlyingVm(ee)||{};return h(h({},Ye),ze)}return ze},getVmIndexFromDomIndex:function(k){return this.componentStructure.getVmIndexFromDomIndex(k,this.targetDomElement)},onDragStart:function(k){this.context=this.getUnderlyingVm(k.item),k.item._underlying_vm_=this.clone(this.context.element),le=k.item},onDragAdd:function(k){var L=k.item._underlying_vm_;if(L!==void 0){S(k.item);var ee=this.getVmIndexFromDomIndex(k.newIndex);this.spliceList(ee,0,L);var ve={element:L,newIndex:ee};this.emitChanges({added:ve})}},onDragRemove:function(k){if(_(this.$el,k.item,k.oldIndex),k.pullMode==="clone"){S(k.clone);return}var L=this.context,ee=L.index,ve=L.element;this.spliceList(ee,1);var Oe={element:ve,oldIndex:ee};this.emitChanges({removed:Oe})},onDragUpdate:function(k){S(k.item),_(k.from,k.item,k.oldIndex);var L=this.context.index,ee=this.getVmIndexFromDomIndex(k.newIndex);this.updatePosition(L,ee);var ve={element:this.context.element,oldIndex:L,newIndex:ee};this.emitChanges({moved:ve})},computeFutureIndex:function(k,L){if(!k.element)return 0;var ee=w(L.to.children).filter(function(Ye){return Ye.style.display!=="none"}),ve=ee.indexOf(L.related),Oe=k.component.getVmIndexFromDomIndex(ve),ze=ee.indexOf(le)!==-1;return ze||!L.willInsertAfter?Oe:Oe+1},onDragMove:function(k,L){var ee=this.move,ve=this.realList;if(!ee||!ve)return!0;var Oe=this.getRelatedContextFromMoveEvent(k),ze=this.computeFutureIndex(Oe,k),Ye=h(h({},this.context),{},{futureIndex:ze}),ut=h(h({},k),{},{relatedContext:Oe,draggedContext:Ye});return ee(ut,L)},onDragEnd:function(){le=null}}}),Pe=qe;a.default=Pe},fb6a:function(o,a,s){var l=s("23e7"),c=s("861d"),u=s("e8b5"),f=s("23cb"),d=s("50c4"),h=s("fc6a"),p=s("8418"),g=s("b622"),v=s("1dde"),m=s("ae40"),y=v("slice"),E=m("slice",{ACCESSORS:!0,0:0,1:2}),x=g("species"),C=[].slice,A=Math.max;l({target:"Array",proto:!0,forced:!y||!E},{slice:function(b,T){var S=h(this),_=d(S.length),I=f(b,_),H=f(T===void 0?_:T,_),B,j,Z;if(u(S)&&(B=S.constructor,typeof B=="function"&&(B===Array||u(B.prototype))?B=void 0:c(B)&&(B=B[x],B===null&&(B=void 0)),B===Array||B===void 0))return C.call(S,I,H);for(j=new(B===void 0?Array:B)(A(H-I,0)),Z=0;I<H;I++,Z++)I in S&&p(j,Z,S[I]);return j.length=Z,j}})},fc6a:function(o,a,s){var l=s("44ad"),c=s("1d80");o.exports=function(u){return l(c(u))}},fdbc:function(o,a){o.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(o,a,s){var l=s("4930");o.exports=l&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(aE);var qV=aE.exports;const $V=Kd(qV),aY="",eH=e=>(i.pushScopeId("data-v-59ce15e6"),e=e(),i.popScopeId(),e),tH={class:"three-buttons-group"},nH=eH(()=>i.createElementVNode("img",{src:pV,style:{"margin-left":"10px"}},null,-1)),oH=i.defineComponent({__name:"ThreeButtonsGroup",props:{headers:{type:Array,default:()=>[]},sortable:{type:Boolean,default:!0},exportable:{type:Boolean,default:!0}},emits:["refresh","exportData"],setup(e,{expose:t,emit:n}){const r=e,o=i.reactive({data:r.headers});let a=i.ref([]);i.watch(()=>r.headers,()=>{let v=r.headers.filter(m=>m.prop!="action");a.value=v,o.data=v});const s=n;t({exportExcel:p,exportExcelDown:g});function l(){c(o.data)}function c(v){s("refresh",v)}function u(){s("exportData")}function f(){h.value&&g("#"+h.value,h.value)}const d=i.ref([]);let h=i.ref(null);function p(v,m){m.forEach(y=>{for(let E in y)(y[E]+""=="true"||y[E]+""=="false")&&(y[E]=y[E]?"是":"否")}),d.value=m,h.value=v}function g(v,m){h.value=null;var y={raw:!0},E=document.querySelector(".el-table__fixed"),x;E?(x=oE.table_to_book(document.querySelector(v).removeChild(E),y),document.querySelector(v).appendChild(E)):x=oE.table_to_book(document.querySelector(v),y);var C=qx(x,{bookType:"xlsx",bookSST:!0,type:"array"});try{c8.saveAs(new Blob([C],{type:"application/octet-stream"}),m+".xlsx")}catch(A){typeof console<"u"&&console.log(A,C)}return C}return(v,m)=>{const y=jc,E=Lo,x=$i,C=dy,A=al,w=NI,b=rE;return i.openBlock(),i.createElementBlock("div",tH,[i.createVNode(y,{content:"刷新",placement:"top",effect:"light","popper-class":"my-popper"},{default:i.withCtx(()=>[i.createElementVNode("img",{onClick:c,src:hV})]),_:1}),e.sortable?(i.openBlock(),i.createBlock(y,{key:0,content:"数据列",placement:"top",effect:"light","popper-class":"my-popper"},{default:i.withCtx(()=>[e.sortable?(i.openBlock(),i.createBlock(w,{key:0},{dropdown:i.withCtx(()=>[i.createVNode(i.unref($V),{modelValue:i.unref(o).data,"onUpdate:modelValue":m[0]||(m[0]=T=>i.unref(o).data=T),"item-key":"label",onChange:l},{item:i.withCtx(({element:T})=>[T.label?(i.openBlock(),i.createBlock(A,{key:0},{default:i.withCtx(()=>[i.createVNode(x,{span:16},{default:i.withCtx(()=>[i.createVNode(E,{text:"",size:"small",style:{color:"white"}},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(T.label),1)]),_:2},1024)]),_:2},1024),i.createVNode(x,{span:8},{default:i.withCtx(()=>[i.createVNode(C,{size:"small",modelValue:T.isVisible,"onUpdate:modelValue":S=>T.isVisible=S},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)):i.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),default:i.withCtx(()=>[nH]),_:1})):i.createCommentVNode("",!0)]),_:1})):i.createCommentVNode("",!0),e.exportable?(i.openBlock(),i.createBlock(y,{key:1,content:"导出",placement:"top",effect:"light","popper-class":"my-popper"},{default:i.withCtx(()=>[i.createElementVNode("img",{onClick:u,src:vV,style:{"margin-left":"10px"}})]),_:1})):i.createCommentVNode("",!0),i.createVNode(b,{style:{height:"1px",width:"1px",display:"none"},id:i.unref(h),data:i.unref(d),headers:e.headers,onRefresh:f},null,8,["id","data","headers"])])}}}),rH=aa(oH,[["__scopeId","data-v-59ce15e6"]]),sY="",iY="",lY="",aH={},sH={class:"com-operation-row"},iH={class:"com-operation-row-container"},lH={class:"com-operation-row-content"},cH={class:"children-center com-operation-row-content-right"};function uH(e,t){const n=Ds;return i.openBlock(),i.createElementBlock("div",sH,[i.createVNode(n,null,{default:i.withCtx(()=>[i.createElementVNode("div",iH,[i.createElementVNode("div",lH,[i.renderSlot(e.$slots,"default")]),i.createElementVNode("div",cH,[i.renderSlot(e.$slots,"right")])])]),_:3})])}const fH=aa(aH,[["render",uH]]),cY="",dH=i.defineComponent({__name:"ComIcon",props:{right:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,n=i.computed(()=>t.right?"el-icon--right":"el-icon--left");return(r,o)=>{const a=dt;return i.openBlock(),i.createBlock(a,i.mergeProps(r.$attrs,i.toHandlers(r.$attrs),{class:i.unref(n)}),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},16,["class"])}}}),hH={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},pH=[i.createElementVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"},null,-1),i.createElementVNode("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"},null,-1),i.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"},null,-1)];function vH(e,t){return i.openBlock(),i.createElementBlock("svg",hH,[...pH])}const gH={name:"ep-circle-plus",render:vH},hY="",pY="",mH={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},yH=[i.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.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"},null,-1)];function xH(e,t){return i.openBlock(),i.createElementBlock("svg",mH,[...yH])}const EH={name:"ep-close",render:xH},gY="",CH=e=>(i.pushScopeId("data-v-00c6d26f"),e=e(),i.popScopeId(),e),wH={class:"com-dialog"},bH={class:"header"},AH={class:"title"},SH=CH(()=>i.createElementVNode("div",{class:"spacer"},null,-1)),TH={key:0,class:"footer"},kH=i.defineComponent({__name:"ComDialog",props:{title:String,titleBg:{type:String,default:"#d9d9d9"},titleHeight:{type:String,default:"40px"},footerBg:{type:String,default:"#ffffff"},footerHeight:{type:String,default:"30px"},hasFooter:{type:Boolean,default:!0}},emits:["update:modelValue","close","cancel","ok"],setup(e,{emit:t}){i.useCssVars(s=>({a026ce50:e.titleHeight,"8fdcc2ee":e.footerHeight})),console.log(e);const r=t,o=()=>{r("update:modelValue",!1),r("close")},a=()=>{r("cancel"),o()};return(s,l)=>{const c=EH,u=dt,f=Lo,d=G0;return i.openBlock(),i.createElementBlock("div",wH,[i.createVNode(d,i.mergeProps({onClose:o,"close-on-click-modal":!1,"show-close":!1},s.$attrs,{draggable:""}),{header:i.withCtx(()=>[i.createElementVNode("div",bH,[i.createElementVNode("div",AH,[i.createTextVNode(i.toDisplayString(e.title)+" ",1),SH,i.createVNode(u,{size:15,onClick:o},{default:i.withCtx(()=>[i.createVNode(c)]),_:1})])])]),footer:i.withCtx(()=>[e.hasFooter?(i.openBlock(),i.createElementBlock("div",TH,[i.renderSlot(s.$slots,"footer",{},()=>[i.createVNode(f,{type:"primary",onClick:l[0]||(l[0]=h=>r("ok"))},{default:i.withCtx(()=>[i.createTextVNode("确认")]),_:1}),i.createVNode(f,{onClick:a},{default:i.withCtx(()=>[i.createTextVNode("取消")]),_:1})],!0)])):i.createCommentVNode("",!0)]),default:i.withCtx(()=>[i.renderSlot(s.$slots,"default",{},void 0,!0)]),_:3},16)])}}}),OH=aa(kH,[["__scopeId","data-v-00c6d26f"]]),PH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAE2xJREFUeF7lXXl8VNW9/57ZMpNM9n2BBJBNkCSEnYpBgtvTilJ2q9hiRQXts/qqBavW5amIPkUFrbsZUDZFW7WCiCgqYIJssspONmaSycxk9rm/97l3SJqE3LnnTgIuPf/B/W3nO2f9/X7nF4afeCu0kI8RnGBwEuBkQA0D9gnAPsawTwtsq5jOrD9WN9iPpZhXb2E5UURaBmLAThDWazRYH6PDuq8nMw+v/M7S/fwBbIcAAxwErNRo8GblNGxkjEX+ATqJ4C8OwDZ4MBzSEBZkpeC1j65gvk5i1SF7lwNY+hnpNoxlwa4yVnEKcyhiDFUEPBmrx5Kunt5dCmCxhcqIsFirw5SKqaySo2+KJF0BYLMSxnBEw3B75XT2gaJiToIuAXDYakr1u7GQgBtO6/10+3WsjNOGiGRdCWALkMD7WgPmVkxmxzprY6cBLLbQVAKeJUJ6a2O0GlxeOZ193FkDzwaAok0MsGsYfl85g63ujI1RA/gAkebdpVgAwp0dGcAYdkyYjuIHGBM6Y+DZArCVTYv6GHDXisnMH42dUQFYupzMDQEsA+HKSEoZw43fzWCvR2NYXt4kUyDGGJ/14Ju10fCr4WHAVyYDrvp6MqtXw3d6JKtjGbqMugVC+ICAQg7OE8m56L1hLPPK0WZ2v7ZnSNBcDEaDQdQXjPUFIQsgrciT+9gqDjWdJ2HA9zEmXLp5IjuhRpq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np+oi+D0+HNi4BUHPv1966kzGYEr39IvqHun/Fc+k4AZQGokWyifCRjB8sW06fhttdcjmwjspM+6aZRw4ktsHydMhtTSeRpc0EoVgEHqTKZhxXrdLTt5f8BmvHFUANo9EUwpqOltk8fTD7joQUniNPVt0zrp6nNixx5uam31h9SO9vlWjRzWAaoRHoi220BiBIP9WoqsUccgRa8S4/K4JB38X3/qdPwdnNKUsuMQqExVZaAER7lKmPOsU5778XVd0qdBC4st41XUZukK3KONHL8DYmY4Me5v6+ILgrpDWGV0d8bKfUgnQaDpXZJEquC2IhrczPD/ZIrRqO1Vkoc+JMEYtX7T0YhlkxrDQqMPin3QZZJ4OSiWlAqgjAv+TIB7BHc/Vn18hbqW+Fi6l6yDgLSW6aL//4kvBD7ZQicAwmQSMZAxDiMBf0KrjUfaf+8cISr4lfeggilgII0E4n4BUMKQCSCVCCmNIJUDb7s9hiKU4pD+FQcDeH/vPYfw/qpSBLkbOzukAAAAASUVORK5CYII=",mY="",_H={class:"pitch-mixin","data-augmented-ui":"tl-2-clip-y t-clip-x tr-scoop bl-2-clip-x br-clip-x both",style:{width:"100%","min-height":"120px",height:"100%",padding:"20px 40px 40px 40px","box-sizing":"border-box",display:"flex","flex-direction":"column"}},DH={style:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","margin-bottom":"20px","font-size":"var(--el-dialog-title-font-size)","line-height":"24px"}},IH={class:"customized el-dialog__footer"},jl=i.defineComponent({__name:"CoolDialog",props:{title:{},notDraggable:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},emits:["update:modelValue","close"],setup(e,{emit:t}){const n=i.ref(),r=t,o=()=>{r("update:modelValue",!1),r("close")};return(a,s)=>{const l=G0;return i.openBlock(),i.createBlock(l,i.mergeProps({onClose:o},a.$attrs,{"custom-class":"cool-dialog",ref_key:"dialogRef",ref:n,draggable:!a.notDraggable,"close-on-click-modal":a.closeOnClickModal}),{default:i.withCtx(()=>[i.createElementVNode("img",{onClick:o,src:PH,style:{width:"48px",height:"48px",position:"absolute",top:"-16px",right:"-16px",cursor:"pointer"}}),i.createElementVNode("div",_H,[i.createElementVNode("p",DH,i.toDisplayString(a.title),1),i.createElementVNode("div",null,[i.renderSlot(a.$slots,"default")]),i.createElementVNode("div",IH,[i.renderSlot(a.$slots,"footer")])])]),_:3},16,["draggable","close-on-click-modal"])}}}),yY="",xY="",EY="",CY="";var $a=(e=>(e[e.add=0]="add",e[e.edit=1]="edit",e[e.detail=2]="detail",e))($a||{}),Yo=(e=>(e.ruleNode="1",e.backValNode="2",e.midNode="3",e.chainNode="4",e.backNode="5",e))(Yo||{});const FH=[{label:"kafka",value:"1"}],NH={style:{height:"100%",display:"flex","flex-direction":"column"}},BH={class:"content"},RH={style:{display:"flex","flex-direction":"column"}},MH={style:{"margin-top":"30px","text-align":"center"}},LH=i.defineComponent({__name:"LineSettingDialog",props:{lineAttr:{type:Object,default:{}},modelValue:{type:String,default:"0"}},emits:["setConnectionLabel","update:modelValue","cancelLine"],setup(e,{emit:t}){const n=e,r=t,o=i.inject("apis"),a=i.ref(!1),s=i.ref({}),l=()=>{c(),r("cancelLine",n.lineAttr.id)},c=()=>{a.value=!1,s.value={triggerType:9},r("update:modelValue",0)},u=i.computed(()=>{let d="";return s.value.triggerType==1&&(d="真值触发"),s.value.triggerType==0&&(d="假值触发"),s.value.triggerType==9&&(d="始终触发"),d}),f=()=>{r("setConnectionLabel",{lineLabel:u.value,triggerType:s.value.triggerType}),c()};return i.onMounted(async()=>{if(n.lineAttr.id){let h=(await(o==null?void 0:o.getChainNodeDetail(n.lineAttr.id))).data.data;s.value={lineLabel:h.lineLabel,triggerType:h.triggerType}}else s.value={triggerType:9,...n.lineAttr};a.value=!0}),i.onUnmounted(()=>{c()}),(d,h)=>{const p=Z_,g=q_,v=rl,m=Us,y=Lo,E=jl;return i.openBlock(),i.createBlock(E,{modelValue:i.unref(a),"onUpdate:modelValue":h[1]||(h[1]=x=>i.isRef(a)?a.value=x:null),width:"30vw",onClose:l},{default:i.withCtx(()=>[i.createElementVNode("div",NH,[i.createElementVNode("div",BH,[i.createVNode(m,{model:i.unref(s),"label-width":"70px"},{default:i.withCtx(()=>{var x;return[((x=e.lineAttr)==null?void 0:x.parentType)==i.unref(Yo).ruleNode?(i.openBlock(),i.createBlock(v,{key:0,label:"触发方式"},{default:i.withCtx(()=>[i.createVNode(g,{modelValue:i.unref(s).triggerType,"onUpdate:modelValue":h[0]||(h[0]=C=>i.unref(s).triggerType=C)},{default:i.withCtx(()=>[i.createElementVNode("div",RH,[i.createVNode(p,{label:1},{default:i.withCtx(()=>[i.createTextVNode("真值触发")]),_:1}),i.createVNode(p,{label:0},{default:i.withCtx(()=>[i.createTextVNode("假值触发")]),_:1}),i.createVNode(p,{label:9},{default:i.withCtx(()=>[i.createTextVNode("始终触发")]),_:1})])]),_:1},8,["modelValue"])]),_:1})):i.createCommentVNode("",!0)]}),_:1},8,["model"])]),i.createElementVNode("div",MH,[i.createVNode(y,{onClick:f},{default:i.withCtx(()=>[i.createTextVNode("确定")]),_:1}),i.createVNode(y,{onClick:l},{default:i.withCtx(()=>[i.createTextVNode("取消")]),_:1})])])]),_:1},8,["modelValue"])}}});class OE{constructor(){ms(this,"length",0);ms(this,"head",null)}get(t){if(t<0||t>=this.length)return null;for(var n=this.head,r=0;r<t;r++)n=n.next;return n.data}getNode(t){if(t<0||t>=this.length)return null;for(var n=this.head,r=0;r<t;r++)n=n.next;return n}update(t,n){if(t<0||t>=this.length)return null;for(var r=this.head,o=0;o<t;o++)r=r.next;r.data=n}append(t,n){var r=new PE(t+" ");n&&(r.engData=n+" ");var o;if(this.head===null)this.head=r;else{for(o=this.head;o.next;)o=o.next;o.next=r}this.length++}removeAt(t,n){if(t>-1&&t<this.length){var r=this.head,o=0,a=null;let s=0;if(t==0&&!n)this.head=(r==null?void 0:r.next)||null,s=-1;else{for(;o++<t;)a=r,r=r.next,s=o-1;if(n){let l=this.getNode(n);a?a.next=l.next:this.head=l.next,this.length=this.length-(n-t+1)}else a.next=r.next,this.length--}return s}else return t>=this.length?this.length:0}insert(t,n,r,o){if(t>-1&&t<=this.length){var a=new PE(n+" ");r&&(a.engData=r+" "),o&&(a.type=o);var s=this.head,l=0,c;if(t==0){if(a.type&&a.type==(s==null?void 0:s.type))return!1;a.next=s,this.head=a}else{for(;l++<t;)c=s,s=s.next;if(a.type&&(a.type==c.type||a.type==(s==null?void 0:s.type)))return!1;c.next=a,a.next=s}return this.length++,!0}else return!1}insertAtFocus(t,n,r,o){let a=this.toString();if(!a)return this.append(n,r),!0;if(t==0)return this.insert(0,n,r,o);let s=t-1,l=a.charAt(t),c=a.charAt(s),u=-1;return c==" "||c==null?u=this.byFocusGetNodeInfo(t).position:(l==" "||l==null)&&(u=this.byFocusGetNodeInfo(t).position+1),this.insert(u,n,r,o)}removeAtFocus(t,n,r){let o=this.toString(),a=-1;if(t==n){a=this.byFocusGetNodeInfo(t).position;let s=o.charAt(t),l=o.charAt(t-1);if((l==" "||l==null)&&r=="backspace")return a=this.removeAt(a-1),a;if((s==" "||s==null)&&r=="delete")return a=this.removeAt(a+1),a;a=this.removeAt(a)}else{let s=this.byFocusGetNodeInfo(t+1).position,l=this.byFocusGetNodeInfo(n-1).position;s==l?a=this.removeAt(s):a=this.removeAt(s,l)}return a}indexOf(t){for(var n=this.head,r=-1;n;){if(t+" "===n.data)return r;r++,n=n.next}return-1}toString(){for(var t=this.head,n="";t;)n+=t.data,t=t.next;return n}toEngString(){for(var t=this.head,n="";t;)t.engData?n+=t.engData:n+=t.data,t=t.next;return n}parse(t,n){if(t&&n){this.head=null,this.length=0;let r=t.split(" "),o=n.split(" ");for(let a=0,s=r.length;a<s;a++)r[a]&&this.append(r[a],o[a])}}toPositionString(t){var n="",r=this.head;if(t==-1)return n;for(var o=0;o<=t;o++)r&&(n+=r==null?void 0:r.data,r=r==null?void 0:r.next);return n}size(){return this.length}byFocusGetNodeInfo(t){let n=this.head,r=0;if(n){let o=n.data;for(;o.length<=t;)n?(n=n==null?void 0:n.next,r++,n!=null&&n.data&&(o+=n==null?void 0:n.data)):o=o+t}return{current:n,position:r}}}class PE{constructor(t){ms(this,"data");ms(this,"engData",null);ms(this,"type",null);ms(this,"next",null);this.data=t}}const wY="",Ap=e=>(i.pushScopeId("data-v-14c75f04"),e=e(),i.popScopeId(),e),VH=Ap(()=>i.createElementVNode("p",null,"节点名称",-1)),HH=Ap(()=>i.createElementVNode("p",null,"规则表达式",-1)),UH=Ap(()=>i.createElementVNode("p",null,"执行表达式",-1)),jH={class:"div-direct"},GH={class:"div-direct"},zH={class:"div-direct buttons-warp"},WH={style:{"text-align":"center"}};var Sp=(e=>(e.面积="${Area}",e.并且="&&",e.或者="||",e.空="null",e))(Sp||{});const KH=i.defineComponent({__name:"RuleExpressionDialog",props:{modelValue:{type:String,default:"0"},clickNodeInfo:{type:Object,default:{}}},emits:["update:modelValue","delete","saveConfiguration"],setup(e,{emit:t}){const n=e,r=i.inject("apis"),o=i.inject("showArea"),a=t,s=i.ref(),l=i.ref(),c=i.ref(),u=i.ref(),f=i.ref(),d=i.ref(),h=i.ref(),p=[{val:"="},{val:"!=",type:"logic"},{val:">",type:"logic"},{val:">=",type:"logic"},{val:"==",type:"logic"},{val:"<",type:"logic"},{val:"<=",type:"logic"},{val:"并且",type:"logic"},{val:"或者",type:"logic"}],g=[1,2,3,4,5,6,7,8,9,0,"(",")","空",{val:"+",type:"calc"},{val:"-",type:"calc"},{val:"*",type:"calc"},{val:"/",type:"calc"},".",","],v=i.ref("");let m=new OE,y=v.value;const E=i.ref("");let x=new OE,C=E.value;const A=i.ref([]),w=ue=>{A.value=A.value.filter(Ee=>Ee.field!=ue.field),A.value.push(ue)},b=ue=>{i.nextTick(()=>{h.value=ue;let Ee=document.getElementById(ue);Ee&&Ee.focus()})},T=i.ref(),S=async()=>{let ue=await(r==null?void 0:r.getDeviceList());T.value=ue.data.data},_=i.ref(),I=async()=>{let ue=await(r==null?void 0:r.getDeviceTypeList());debugger;_.value=ue.data.data},H=i.ref(),B=async()=>{let ue=await(r==null?void 0:r.getFunctionList());H.value=ue.data.data},j=i.ref(),Z=async()=>{let ue=await(r==null?void 0:r.getExpressPoints());j.value=ue.data.data},q=ue=>{f.value.blur(),J(ue,ue)},K=ue=>{d.value.blur(),J("设备="+ue.name,'${deviceName}=="'+ue.deviceName+'"'),w({field:"deviceName",type:"BASE"})},oe=ue=>{u.value.blur(),J("设备类型="+ue.deviceTypeName,'${deviceTypeKey}=="'+ue.deviceTypeKey+'"'),w({field:"deviceTypeKey",type:"BASE"})},ge=ue=>{c.value.blur(),J(ue.pointName,"${"+ue.pointTag+"}"),w({field:ue.pointTag,type:"POINT"})},Ae=ue=>{let Ee=ue.val||ue,Be=ue.type||null;Sp[Ee]?J(Ee,Sp[Ee],Be):J(Ee,null,Be),ue=="面积"&&w({field:"面积",type:"EXTRA"})},pe=i.ref(),P=ue=>{pe.value=ue.srcElement.selectionStart},G=i.ref(0),z=()=>{h.value="ruleExp",i.nextTick(()=>{s.value.$el.children[0].setSelectionRange(G.value,G.value)})},U=ue=>{h.value="exeExp",i.nextTick(()=>{ue.srcElement.setSelectionRange(G.value,G.value)})},J=(ue,Ee,Be)=>{X(),G.value=pe.value;let ot=!1,le=pe.value;h.value=="ruleExp"?ne(v.value,le)?(ot=m.insertAtFocus(le,ue,Ee,Be),v.value=m.toString(),y=v.value,ot&&(G.value=pe.value+ue.toString().length+1),i.nextTick(()=>{b("ruleExp")})):i.nextTick(()=>{b("ruleExp")}):h.value=="exeExp"&&(ne(E.value,le)?(ot=x.insertAtFocus(le,ue,Ee,Be),E.value=x.toString(),C=E.value,ot&&(G.value=pe.value+ue.toString().length+1),i.nextTick(()=>{b("exeExp")})):i.nextTick(()=>{b("exeExp")}))},ne=(ue,Ee)=>{let Be=ue;return!(Ee!=0&&Ee!=Be.length&&Be[Ee]!=" "&&Be[Ee-1]!=" ")},ce=i.ref(!1),Q=ue=>{var ot,le;if(ce.value)return;X();let Ee="";if(ue.code=="Delete"?Ee="delete":ue.code=="Backspace"&&(Ee="backspace"),Ee=="backspace"||Ee=="delete")if(h.value=="ruleExp"){const Le=We("ruleExp");let tt=m.removeAtFocus(Le[0],Le[1],Ee),qe=(ot=m.toPositionString(tt))==null?void 0:ot.length;G.value=qe,pe.value=qe,v.value=m.toString(),y=v.value,setTimeout(()=>{s.value.$el.children[0].setSelectionRange(qe,qe)},10)}else{const Le=We("exeExp");let tt=x.removeAtFocus(Le[0],Le[1],Ee),qe=(le=x.toPositionString(tt))==null?void 0:le.length;G.value=qe,pe.value=qe,E.value=x.toString(),C=E.value,setTimeout(()=>{l.value.$el.children[0].setSelectionRange(qe,qe)},10)}["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(ue.code)||(console.log(ue.code),ue.preventDefault(),h.value=="ruleExp"?v.value=y:E.value=C)},X=()=>{if(s.value&&l.value){let ue;h.value=="ruleExp"?ue=s.value.$el.children[0].selectionStart:ue=l.value.$el.children[0].selectionStart,pe.value=ue,console.log("光标移动"+pe.value)}},de=i.ref({nodeName:""}),me=()=>{de.value.ruleExpression=[{id:ct.value,conditionExpressionStr:m.toString(),executionExpressionStr:x.toString(),conditionExpression:m.toEngString(),executionExpression:x.toEngString(),ruleFieldList:A.value}],a("saveConfiguration",{...de.value,type:Yo.ruleNode,ruleExpression:de.value.ruleExpression}),Fe()},Ne=i.ref(!1),Fe=()=>{Ne.value=!1,de.value={},a("update:modelValue",0)},lt=()=>{Fe(),n.clickNodeInfo.id||a("delete")},We=ue=>{var le,Le;const Ee=document.getElementById(ue);let Be=0,ot=0;if("selectionStart"in Ee)Be=Ee.selectionStart,ot=Ee.selectionEnd;else if("selection"in document&&(Ee.focus(),document&&document.selection)){let tt=document.selection.createRange(),qe=(Le=(le=document==null?void 0:document.selection.createRange())==null?void 0:le.text)==null?void 0:Le.length;tt.moveStart("character",-Ee.value.length),Be=tt.text.length-qe,ot=tt.text.length}return[Be,ot]};i.onMounted(()=>{Ne.value=!0,Ct(),window.addEventListener("keydown",Q)}),i.onUnmounted(()=>{window.removeEventListener("keydown",Q),lt()});const Ce=i.ref(),ct=i.ref(null),Ct=async()=>{Ce.value=160,S(),I(),B(),Z();let ue={};n.clickNodeInfo.id&&(ue=(await(r==null?void 0:r.getChainNodeDetail(n.clickNodeInfo.id))).data.data||{},ct.value=ue.ruleExpression[0].id),de.value={...ue},ue.ruleExpression&&(v.value=ue.ruleExpression[0].conditionExpressionStr,m.parse(ue.ruleExpression[0].conditionExpressionStr,ue.ruleExpression[0].conditionExpression),E.value=ue.ruleExpression[0].executionExpressionStr,x.parse(ue.ruleExpression[0].executionExpressionStr,ue.ruleExpression[0].executionExpression)),Ne.value=!0};return i.onUnmounted(()=>{Fe()}),(ue,Ee)=>{const Be=_a,ot=Us,le=tu,Le=eu,tt=Lo,qe=$i,Pe=al,W=jl;return i.openBlock(),i.createBlock(W,{modelValue:i.unref(Ne),"onUpdate:modelValue":Ee[12]||(Ee[12]=k=>i.isRef(Ne)?Ne.value=k:null),width:"57vw",onClose:lt},{default:i.withCtx(()=>[i.createVNode(ot,{model:i.unref(de)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[VH,i.createVNode(Be,{modelValue:i.unref(de).nodeName,"onUpdate:modelValue":Ee[0]||(Ee[0]=k=>i.unref(de).nodeName=k),onFocus:Ee[1]||(Ee[1]=k=>ce.value=!0),onBlur:Ee[2]||(Ee[2]=k=>ce.value=!1),placeholder:"请输入节点名称",maxlength:"100","show-word-limit":""},null,8,["modelValue"])]),i.createElementVNode("div",null,[HH,i.createVNode(Be,{id:"ruleExp",ref_key:"ruleExpRef",ref:s,modelValue:i.unref(v),"onUpdate:modelValue":Ee[3]||(Ee[3]=k=>i.isRef(v)?v.value=k:null),type:"textarea",onFocus:z,onBlur:P,placeholder:"规则表达式"},null,8,["modelValue"]),UH,i.createVNode(Be,{id:"exeExp",ref_key:"exeExpRef",ref:l,modelValue:i.unref(E),"onUpdate:modelValue":Ee[4]||(Ee[4]=k=>i.isRef(E)?E.value=k:null),type:"textarea",onFocus:U,onBlur:P,placeholder:"执行表达式"},null,8,["modelValue"])])]),_:1},8,["model"]),i.createElementVNode("div",null,[i.createVNode(Pe,null,{default:i.withCtx(()=>[i.createVNode(qe,{span:24,style:{"padding-right":"10px"}},{default:i.withCtx(()=>[i.createElementVNode("div",jH,[i.createVNode(Le,{ref_key:"pointsRef",ref:c,placeholder:"选测点",onChange:ge,class:"margin-content","value-key":"pointTag",filterable:"",onFocus:Ee[5]||(Ee[5]=k=>ce.value=!0),onBlur:Ee[6]||(Ee[6]=k=>ce.value=!1)},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(j),k=>(i.openBlock(),i.createBlock(le,{label:k.pointName,value:k,key:k.pointTag},null,8,["label","value"]))),128))]),_:1},512),i.createVNode(Le,{ref_key:"coresRef",ref:u,disabled:i.unref(h)=="exeExp",placeholder:"选设备类型",class:"margin-content",onChange:oe,"value-key":"deviceTypeKey",filterable:"",onFocus:Ee[7]||(Ee[7]=k=>ce.value=!0),onBlur:Ee[8]||(Ee[8]=k=>ce.value=!1)},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(_),k=>(i.openBlock(),i.createBlock(le,{label:k.deviceTypeName,value:k,key:k.deviceTypeKey},null,8,["label","value"]))),128))]),_:1},8,["disabled"]),i.createVNode(Le,{ref_key:"trunkRef",ref:d,disabled:i.unref(h)=="exeExp",placeholder:"选设备",class:"margin-content",onChange:K,filterable:"",onFocus:Ee[9]||(Ee[9]=k=>ce.value=!0),onBlur:Ee[10]||(Ee[10]=k=>ce.value=!1),"value-key":"deviceName"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(T),k=>(i.openBlock(),i.createBlock(le,{label:k.name,value:k,key:k.deviceName},null,8,["label","value"]))),128))]),_:1},8,["disabled"]),i.createVNode(Le,{ref_key:"funcRef",ref:f,placeholder:"常用函数",onChange:q,class:"margin-content"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(H),k=>(i.openBlock(),i.createBlock(le,{label:k.description,value:k.operator,key:k.operator},null,8,["label","value"]))),128))]),_:1},512),i.unref(o)?(i.openBlock(),i.createBlock(tt,{key:0,onClick:Ee[11]||(Ee[11]=k=>Ae("面积"))},{default:i.withCtx(()=>[i.createTextVNode("面积")]),_:1})):i.createCommentVNode("",!0)]),i.createElementVNode("div",GH,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(p,k=>i.createVNode(tt,{onClick:L=>Ae(k),disabled:i.unref(h)=="exeExp"&&k.val!="="||i.unref(h)=="ruleExp"&&k.val=="="},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(k.val),1)]),_:2},1032,["onClick","disabled"])),64))]),i.createElementVNode("div",zH,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(g,k=>i.createVNode(tt,{onClick:L=>Ae(k)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(k.val||k),1)]),_:2},1032,["onClick"])),64))])]),_:1})]),_:1})]),i.createElementVNode("div",WH,[i.createVNode(tt,{onClick:me},{default:i.withCtx(()=>[i.createTextVNode("确定")]),_:1}),i.createVNode(tt,{onClick:lt},{default:i.withCtx(()=>[i.createTextVNode("取消")]),_:1})])]),_:1},8,["modelValue"])}}}),YH=aa(KH,[["__scopeId","data-v-14c75f04"]]),XH={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},QH=[i.createElementVNode("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"},null,-1)];function JH(e,t){return i.openBlock(),i.createElementBlock("svg",XH,[...QH])}const _E={name:"ep-plus",render:JH},ZH={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},qH=[i.createElementVNode("path",{fill:"currentColor",d:"m466.752 512l-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"},null,-1),i.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"},null,-1)];function $H(e,t){return i.openBlock(),i.createElementBlock("svg",ZH,[...qH])}const DE={name:"ep-circle-close",render:$H},eU={style:{height:"100%","line-height":"100%",display:"flex","align-items":"center","justify-content":"center"}},tU={style:{display:"flex",width:"100%","justify-content":"center","align-items":"center"}},nU={style:{"margin-top":"30px","text-align":"center"}},oU=i.defineComponent({__name:"BackNodeDialog",props:{modelValue:{type:String,default:"0"},clickNodeInfo:{type:Object,default:{}}},emits:["update:modelValue","delete","saveConfiguration"],setup(e,{emit:t}){const n=e,r=t,o=i.inject("apis"),a=i.ref(!1),s=i.ref(),l=i.reactive({nodeName:[{required:!0,message:"请输入名称",trigger:"blur"}],returnParams:[{required:!0,message:"请输入返回值",trigger:"blur"}]}),c=i.ref({returnParams:[]}),u=()=>{c.value.returnParams=[{},...c.value.returnParams]},f=async p=>{p&&await p.validate((g,v)=>{g?(r("saveConfiguration",{...c.value,type:Yo.backValNode,configuration:JSON.stringify({returnParams:c.value.returnParams})}),d()):console.log("error submit!",v)})},d=()=>{c.value={returnParams:[]},a.value=!1,r("update:modelValue",0)},h=()=>{d(),n.clickNodeInfo.id||r("delete")};return i.onMounted(async()=>{let p={};n.clickNodeInfo.id&&(p=(await(o==null?void 0:o.getChainNodeDetail(n.clickNodeInfo.id))).data.data||{}),c.value={returnParams:[],...p},a.value=!0}),i.onUnmounted(()=>{d()}),(p,g)=>{const v=_a,m=rl,y=$i,E=DE,x=dt,C=al,A=_E,w=Us,b=Lo,T=jl;return i.openBlock(),i.createBlock(T,{modelValue:i.unref(a),"onUpdate:modelValue":g[2]||(g[2]=S=>i.isRef(a)?a.value=S:null),width:"30vw",onClose:h},{default:i.withCtx(()=>[i.createVNode(w,{model:i.unref(c),"label-width":"80px",ref_key:"nodeConfigFormRef",ref:s,rules:i.unref(l)},{default:i.withCtx(()=>[i.createVNode(m,{label:"节点名称",prop:"nodeName"},{default:i.withCtx(()=>[i.createVNode(v,{modelValue:i.unref(c).nodeName,"onUpdate:modelValue":g[0]||(g[0]=S=>i.unref(c).nodeName=S),placeholder:"请输入节点名称",maxlength:"100","show-word-limit":""},null,8,["modelValue"])]),_:1}),i.createVNode(m,{label:"返回值",prop:"returnParams"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(c).returnParams,(S,_)=>(i.openBlock(),i.createBlock(C,{gutter:3,key:_,style:{"margin-bottom":"15px"}},{default:i.withCtx(()=>[i.createVNode(y,{span:12},{default:i.withCtx(()=>[i.createVNode(m,{prop:`returnParams.${_}.key`},{default:i.withCtx(()=>[i.createVNode(v,{modelValue:S.key,"onUpdate:modelValue":I=>S.key=I,placeholder:"关键字"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),i.createVNode(y,{span:10},{default:i.withCtx(()=>[i.createVNode(m,{prop:`returnParams.${_}.value`},{default:i.withCtx(()=>[i.createVNode(v,{modelValue:S.value,"onUpdate:modelValue":I=>S.value=I,placeholder:"值"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),i.createVNode(y,{span:2},{default:i.withCtx(()=>[i.createElementVNode("div",eU,[i.createVNode(x,{size:20,onClick:I=>i.unref(c).returnParams.splice(_,1)},{default:i.withCtx(()=>[i.createVNode(E)]),_:2},1032,["onClick"])])]),_:2},1024)]),_:2},1024))),128)),i.createElementVNode("div",tU,[i.createVNode(x,{class:"add-params",onClick:u},{default:i.withCtx(()=>[i.createVNode(A)]),_:1})])]),_:1})]),_:1},8,["model","rules"]),i.createElementVNode("div",nU,[i.createVNode(b,{onClick:g[1]||(g[1]=S=>f(i.unref(s)))},{default:i.withCtx(()=>[i.createTextVNode("确定")]),_:1}),i.createVNode(b,{onClick:h},{default:i.withCtx(()=>[i.createTextVNode("取消")]),_:1})])]),_:1},8,["modelValue"])}}}),rU={class:"param-list"},aU={style:{height:"100%","line-height":"100%",display:"flex","align-items":"center","justify-content":"center"}},sU={style:{display:"flex",width:"100%","justify-content":"center","align-items":"center"}},iU={style:{"margin-top":"30px","text-align":"center"}},lU=i.defineComponent({__name:"MidNodeDialog",props:{modelValue:{type:String,default:"0"},clickNodeInfo:{type:Object,default:{}}},emits:["update:modelValue","saveConfiguration"],setup(e,{emit:t}){const n=e,r=t,o=i.inject("apis"),a=i.ref(!1),s=i.ref({typeOptions:FH}),l=i.ref(),c=i.reactive({nodeName:[{required:!0,message:"请输入名称",trigger:"blur"}],type:[{required:!0,message:"请输入选择中间件",trigger:"blur"}],serverNodeList:[{required:!0,message:"请输入服务器信息",trigger:"blur"}],topic:[{required:!0,message:"请输入topic",trigger:"blur"}]}),u=()=>{f.value.serverNodeList=[{},...f.value.serverNodeList]},f=i.ref({}),d=async g=>{g&&await g.validate((v,m)=>{v?(r("saveConfiguration",{...f.value,type:Yo.midNode,configuration:JSON.stringify({type:f.value.type,topic:f.value.topic,serverNodeList:f.value.serverNodeList})}),h()):console.log("error submit!",m)})},h=()=>{f.value={serverNodeList:[]},a.value=!1,r("update:modelValue",0)},p=()=>{h()};return i.onMounted(async()=>{let g={};n.clickNodeInfo.id&&(g=(await(o==null?void 0:o.getChainNodeDetail(n.clickNodeInfo.id))).data.data||{}),f.value={serverNodeList:[],...g},a.value=!0}),i.onUnmounted(()=>{h()}),(g,v)=>{const m=_a,y=rl,E=tu,x=eu,C=$i,A=DE,w=dt,b=al,T=_E,S=Lo,_=Us,I=jl;return i.openBlock(),i.createBlock(I,{modelValue:i.unref(a),"onUpdate:modelValue":v[4]||(v[4]=H=>i.isRef(a)?a.value=H:null),width:500,onClose:p},{default:i.withCtx(()=>[i.createVNode(_,{model:i.unref(f),"label-width":"80px",ref_key:"nodeConfigFormRef",ref:l,rules:i.unref(c)},{default:i.withCtx(()=>[i.createVNode(y,{label:"节点名称",prop:"nodeName"},{default:i.withCtx(()=>[i.createVNode(m,{modelValue:i.unref(f).nodeName,"onUpdate:modelValue":v[0]||(v[0]=H=>i.unref(f).nodeName=H),placeholder:"请输入节点名称",maxlength:"100","show-word-limit":""},null,8,["modelValue"])]),_:1}),i.createVNode(y,{label:"中间件",prop:"type"},{default:i.withCtx(()=>[i.createVNode(x,{modelValue:i.unref(f).type,"onUpdate:modelValue":v[1]||(v[1]=H=>i.unref(f).type=H),class:"m-2",placeholder:"请选择类型"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s).typeOptions,H=>(i.openBlock(),i.createBlock(E,{key:H.value,label:H.label,value:H.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.createVNode(y,{label:"服务器",prop:"serverNodeList"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f).serverNodeList,(H,B)=>(i.openBlock(),i.createElementBlock("div",rU,[i.createVNode(b,{style:{"margin-bottom":"10px"}},{default:i.withCtx(()=>[i.createVNode(C,{span:14},{default:i.withCtx(()=>[i.createVNode(m,{modelValue:H.ip,"onUpdate:modelValue":j=>H.ip=j,placeholder:"IP地址"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),i.createVNode(C,{span:8,style:{"padding-left":"5px"}},{default:i.withCtx(()=>[i.createVNode(m,{modelValue:H.port,"onUpdate:modelValue":j=>H.port=j,placeholder:"端口号"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),i.createVNode(C,{span:2},{default:i.withCtx(()=>[i.createElementVNode("div",aU,[i.createVNode(w,{size:20,onClick:j=>i.unref(f).serverNodeList.splice(B,1)},{default:i.withCtx(()=>[i.createVNode(A)]),_:2},1032,["onClick"])])]),_:2},1024)]),_:2},1024)]))),256)),i.createElementVNode("div",sU,[i.createVNode(w,{class:"add-params",onClick:u},{default:i.withCtx(()=>[i.createVNode(T)]),_:1})])]),_:1}),i.createVNode(y,{label:"topic",prop:"topic"},{default:i.withCtx(()=>[i.createVNode(m,{modelValue:i.unref(f).topic,"onUpdate:modelValue":v[2]||(v[2]=H=>i.unref(f).topic=H),placeholder:"请输入topic",maxlength:"50","show-word-limit":""},null,8,["modelValue"])]),_:1}),i.createElementVNode("div",iU,[i.createVNode(S,{onClick:v[3]||(v[3]=H=>d(i.unref(l)))},{default:i.withCtx(()=>[i.createTextVNode("确定")]),_:1}),i.createVNode(S,{onClick:p},{default:i.withCtx(()=>[i.createTextVNode("取消")]),_:1})])]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}}),TY="";function es(e,t,n){return e==="*"?!0:e.length>0?e.indexOf(t)!==-1:!n}function Xe(e,t,n){var r;e=e||{},t=t||{};var o=e,a=t;if(n)for(r=0;r<n.length;r++)o[n[r]]=a[n[r]];else for(r in a)o[r]=a[r];return e}function Tp(e){return Object.prototype.toString.call(e)==="[object Number]"}function Xt(e){return typeof e=="string"}function IE(e){return typeof e=="boolean"}function fi(e){return e==null?!1:Object.prototype.toString.call(e)==="[object Object]"}function cU(e){return Object.prototype.toString.call(e)==="[object Date]"}function ts(e){return Object.prototype.toString.call(e)==="[object Function]"}function $u(e){if(Xt(e))return""+e;if(IE(e))return!!e;if(cU(e))return new Date(e.getTime());if(ts(e))return e;if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push($u(e[n]));return t}else if(fi(e)){var r={};for(var o in e)r[o]=$u(e[o]);return r}else return e}function ef(e,t,n,r){var o={},a,s,l={};for(n=n||[],r=r||[],s=0;s<n.length;s++)o[n[s]]=!0;for(s=0;s<r.length;s++)l[r[s]]=!0;var c=$u(e);for(s in t)if(c[s]==null||l[s])c[s]=t[s];else if(o[s])a=[],a.push.apply(a,Array.isArray(c[s])?c[s]:[c[s]]),a.push(t[s]),c[s]=a;else if(Xt(t[s])||IE(t[s])||ts(t[s])||Tp(t[s]))c[s]=t[s];else if(Array.isArray(t[s]))a=[],Array.isArray(c[s])&&a.push.apply(a,c[s]),a.push.apply(a,t[s]),c[s]=a;else if(fi(t[s])){fi(c[s])||(c[s]={});for(var u in t[s])c[s][u]=t[s][u]}return c}function FE(e,t,n){for(var r=0;r<n.length;r++){var o=n[r][0][n[r][1]].apply(n[r][0],n[r][2]);if(o===t)return o}return e}function uU(e,t,n,r){var o=function(l){var c=l.match(/(\${.*?})/g);if(c!=null)for(var u=0;u<c.length;u++){var f=t[c[u].substring(2,c[u].length-1)]||"";f!=null&&(l=l.replace(c[u],f))}if(c=l.match(/({{.*?}})/g),c!=null)for(var d=0;d<c.length;d++){var h=t[c[d].substring(2,c[d].length-2)]||"";h!=null&&(l=l.replace(c[d],h))}return l},a=function s(l){if(l!=null){if(Xt(l))return o(l);if(ts(l)&&!r&&(n==null||(l.name||"").indexOf(n)===0))return l(t);if(Array.isArray(l)){for(var c=[],u=0;u<l.length;u++)c.push(s(l[u]));return c}else if(fi(l)){var f={};for(var d in l)f[d]=s(l[d]);return f}else return l}};return a(e)}function Ke(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]);else return null}function ca(e,t){if(e){for(var n=0;n<e.length;n++)if(t(e[n]))return n}return-1}function fU(e,t){var n=[];if(e)for(var r=0;r<e.length;r++)t(e[r])&&n.push(r);return n}function kp(e,t){var n=ca(e,t);return n===-1?null:e[n]}function dU(e,t){var n=fU(e,t);return n.map(function(r){return e[r]})}function NE(e,t){var n=null;return e.forEach(function(r){t(r)&&(n=r)}),n}function hU(e){var t=[];return e.forEach(function(n){t.push(n)}),t}function hn(e,t){var n=ca(e,t);return n>-1&&e.splice(n,1),n!==-1}function tf(e){if(Array.fromArray!=null)return Array.from(e);var t=[];return Array.prototype.push.apply(t,e),t}function BE(e,t){var n=e.indexOf(t);return n>-1&&e.splice(n,1),n!==-1}function RE(e,t,n,r){var o=e[t];return o==null&&(o=[],e[t]=o),o[r?"unshift":"push"](n),o}function Gl(e,t,n){return e.indexOf(t)===-1?(n?e.unshift(t):e.push(t),!0):!1}for(var An=[],zl=0;zl<256;zl++)An[zl]=(zl<16?"0":"")+zl.toString(16);function pn(){var e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return An[e&255]+An[e>>8&255]+An[e>>16&255]+An[e>>24&255]+"-"+An[t&255]+An[t>>8&255]+"-"+An[t>>16&15|64]+An[t>>24&255]+"-"+An[n&63|128]+An[n>>8&255]+"-"+An[n>>16&255]+An[n>>24&255]+An[r&255]+An[r>>8&255]+An[r>>16&255]+An[r>>24&255]}function nf(e,t,n){var r={x:e.x-t.x,y:e.y-t.y},o=Math.cos(n/360*Math.PI*2),a=Math.sin(n/360*Math.PI*2);return{x:r.x*o-r.y*a+t.x,y:r.y*o+r.x*a+t.y,cr:o,sr:a}}function Op(e){if(e==null)return null;for(var t=e.replace(/^\s\s*/,""),n=/\s/,r=t.length;n.test(t.charAt(--r)););return t.slice(0,r+1)}function pU(e,t){e=e.length==null||typeof e=="string"?[e]:e;for(var n=0;n<e.length;n++)t(e[n])}function ME(e,t){for(var n=[],r=0;r<e.length;r++)n.push(t(e[r]));return n}function ln(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(typeof console<"u")try{var r=arguments[arguments.length-1];console.log(r)}catch{}}function of(e){return e<0?-1:e>0?1:0}function rf(e,t,n){return function(){var r=null;try{t!=null&&(r=t.apply(this,arguments))}catch(o){ln("jsPlumb function failed : "+o)}if(e!=null&&(n==null||r!==n))try{r=e.apply(this,arguments)}catch(o){ln("wrapped function failed : "+o)}return r}}function LE(e,t,n){return e.has(t)||e.set(t,n()),e.get(t)}function VE(e,t){for(var n=e.__proto__;n!=null;){if(n instanceof t)return!0;n=n.__proto__}return!1}function vU(e,t,n,r){if(t.length===0)t.push(e);else{for(var o=r?-1:1,a=0,s=t.length,l=Math.floor((a+s)/2);s>a;){var c=n(e,t[l])*o;c<0?s=l:a=l+1,l=Math.floor((a+s)/2)}t.splice(l,0,e)}}function HE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jE(e,t,n){return t&&UE(e.prototype,t),n&&UE(e,n),e}function Wl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pp(e,t)}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function Pp(e,t){return Pp=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},Pp(e,t)}function mU(){if(typeof Reflect>"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 yU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xU(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:yU(e)}function EU(e){var t=mU();return function(){var r=af(e),o;if(t){var a=af(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return xU(this,o)}}var Kl=function(){function e(){HE(this,e),Wl(this,"_listeners",{}),Wl(this,"eventsSuspended",!1),Wl(this,"tick",!1),Wl(this,"eventsToDieOn",{ready:!0}),Wl(this,"queue",[])}return jE(e,[{key:"fire",value:function(n,r,o){var a=null;if(this.tick)this.queue.unshift(arguments);else{if(this.tick=!0,!this.eventsSuspended&&this._listeners[n]){var s=this._listeners[n].length,l=0,c=!1;if(!this.shouldFireEvent||this.shouldFireEvent(n,r,o))for(;!c&&l<s&&a!==!1;){if(this.eventsToDieOn[n])this._listeners[n][l](r,o);else try{a=this._listeners[n][l](r,o)}catch(u){ln("jsPlumb: fire failed for event "+n+" : "+(u.message||u))}l++,(this._listeners==null||this._listeners[n]==null)&&(c=!0)}}this.tick=!1,this._drain()}return a}},{key:"_drain",value:function(){var n=this.queue.pop();n&&this.fire.apply(this,n)}},{key:"unbind",value:function(n,r){if(arguments.length===0)this._listeners={};else if(arguments.length===1){if(typeof n=="string")delete this._listeners[n];else if(n.__jsPlumb){var o;for(var a in n.__jsPlumb)o=n.__jsPlumb[a],BE(this._listeners[o]||[],n)}}else arguments.length===2&&BE(this._listeners[n]||[],r);return this}},{key:"getListener",value:function(n){return this._listeners[n]||[]}},{key:"isSuspendEvents",value:function(){return this.eventsSuspended}},{key:"setSuspendEvents",value:function(n){this.eventsSuspended=n}},{key:"bind",value:function(n,r,o){var a=this,s=function(u){RE(a._listeners,u,r,o),r.__jsPlumb=r.__jsPlumb||{},r.__jsPlumb[pn()]=u};if(typeof n=="string")s(n);else if(n.length!=null)for(var l=0;l<n.length;l++)s(n[l]);return this}},{key:"silently",value:function(n){this.setSuspendEvents(!0);try{n()}catch(r){ln("Cannot execute silent function "+r)}this.setSuspendEvents(!1)}}]),e}();(function(e){gU(n,e);var t=EU(n);function n(){return HE(this,n),t.apply(this,arguments)}return jE(n,[{key:"shouldFireEvent",value:function(o,a,s){return!0}}]),n})(Kl);var CU=[null,[1,-1],[1,1],[-1,1],[-1,-1]],wU=[null,[-1,-1],[-1,1],[1,1],[1,-1]],ns=2*Math.PI;function di(e,t){return t.x===e.x?t.y>e.y?1/0:-1/0:t.y===e.y?t.x>e.x?0:-0:(t.y-e.y)/(t.x-e.x)}function bU(e,t){return-1/di(e,t)}function _p(e,t){return Math.sqrt(Math.pow(t.y-e.y,2)+Math.pow(t.x-e.x,2))}function Dp(e,t){return t.x>e.x||t.x==e.x?t.y>e.y?2:1:t.y>e.y?3:4}function AU(e,t){var n=di(e,t),r=Math.atan(n),o=Dp(e,t);return(o==4||o==3)&&(r+=Math.PI),r<0&&(r+=2*Math.PI),r}function GE(e,t){var n=e.x,r=e.x+e.w,o=e.y,a=e.y+e.h,s=t.x,l=t.x+t.w,c=t.y,u=t.y+t.h;return n<=s&&s<=r&&o<=c&&c<=a||n<=l&&l<=r&&o<=c&&c<=a||n<=s&&s<=r&&o<=u&&u<=a||n<=l&&s<=r&&o<=u&&u<=a||s<=n&&n<=l&&c<=o&&o<=u||s<=r&&r<=l&&c<=o&&o<=u||s<=n&&n<=l&&c<=a&&a<=u||s<=r&&n<=l&&c<=a&&a<=u}function os(e,t,n){var r=di(e,t),o=Dp(e,t),a=n>0?CU[o]:wU[o],s=Math.atan(r),l=Math.abs(n*Math.sin(s))*a[1],c=Math.abs(n*Math.cos(s))*a[0];return{x:e.x+c,y:e.y+l}}function SU(e,t,n){var r=di(e,t),o=Math.atan(-1/r),a=n/2*Math.sin(o),s=n/2*Math.cos(o);return[{x:t.x+s,y:t.y+a},{x:t.x-s,y:t.y-a}]}function TU(e,t,n,r){n=n??(t.thresholdX==null?t.w/2:t.thresholdX),r=r??(t.thresholdY==null?t.h/2:t.thresholdY);var o=Math.floor(e.x/t.w),a=t.w*o,s=a+t.w,l=Math.abs(e.x-a)<=n?a:Math.abs(s-e.x)<=n?s:e.x,c=Math.floor(e.y/t.h),u=t.h*c,f=u+t.h,d=Math.abs(e.y-u)<=r?u:Math.abs(f-e.y)<=r?f:e.y;return{x:l,y:d}}var ua;(function(e){e.Circle="Circle",e.Ellipse="Ellipse",e.Triangle="Triangle",e.Diamond="Diamond",e.Rectangle="Rectangle",e.Square="Square"})(ua||(ua={}));var hi;(function(e){e.Assign="Assign",e.AutoDefault="AutoDefault",e.Bottom="Bottom",e.BottomLeft="BottomLeft",e.BottomRight="BottomRight",e.Center="Center",e.Continuous="Continuous",e.ContinuousBottom="ContinuousBottom",e.ContinuousLeft="ContinuousLeft",e.ContinuousRight="ContinuousRight",e.ContinuousTop="ContinuousTop",e.ContinuousLeftRight="ContinuousLeftRight",e.ContinuousTopBottom="ContinuousTopBottom",e.Left="Left",e.Perimeter="Perimeter",e.Right="Right",e.Top="Top",e.TopLeft="TopLeft",e.TopRight="TopRight"})(hi||(hi={}));function kU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function OU(e,t,n){return t&&zE(e.prototype,t),n&&zE(e,n),e}function pi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PU(){return{d:1/0,x:null,y:null,l:null,x1:null,y1:null,x2:null,y2:null}}function sf(){return{xmin:1/0,xmax:-1/0,ymin:1/0,ymax:-1/0}}var Ip=function(){function e(t){kU(this,e),this.params=t,pi(this,"x1",void 0),pi(this,"x2",void 0),pi(this,"y1",void 0),pi(this,"y2",void 0),pi(this,"extents",sf()),pi(this,"type",void 0),this.x1=t.x1,this.y1=t.y1,this.x2=t.x2,this.y2=t.y2}return OU(e,[{key:"findClosestPointOnPath",value:function(n,r){return PU()}},{key:"lineIntersection",value:function(n,r,o,a){return[]}},{key:"boxIntersection",value:function(n,r,o,a){var s=[];return s.push.apply(s,this.lineIntersection(n,r,n+o,r)),s.push.apply(s,this.lineIntersection(n+o,r,n+o,r+a)),s.push.apply(s,this.lineIntersection(n+o,r+a,n,r+a)),s.push.apply(s,this.lineIntersection(n,r+a,n,r)),s}},{key:"boundingBoxIntersection",value:function(n){return this.boxIntersection(n.x,n.y,n.w,n.h)}}]),e}(),WE="undefined",lf="default",KE="true",vi="false",rs="*";function Et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vt(e,t,n){return t&&YE(e.prototype,t),n&&YE(e,n),e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function on(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fp(e,t)}function jn(e){return jn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jn(e)}function Fp(e,t){return Fp=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},Fp(e,t)}function _U(){if(typeof Reflect>"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 Y(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DU(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:Y(e)}function rn(e){var t=_U();return function(){var r=jn(e),o;if(t){var a=jn(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return DU(this,o)}}function IU(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=jn(e),e!==null););return e}function vo(e,t,n){return typeof Reflect<"u"&&Reflect.get?vo=Reflect.get:vo=function(o,a,s){var l=IU(o,a);if(l){var c=Object.getOwnPropertyDescriptor(l,a);return c.get?c.get.call(s):c.value}},vo(e,t,n||e)}function Np(e,t){return NU(e)||RU(e,t)||XE(e,t)||LU()}function cf(e){return FU(e)||BU(e)||XE(e)||MU()}function FU(e){if(Array.isArray(e))return Bp(e)}function NU(e){if(Array.isArray(e))return e}function BU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,a=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(c){a=!0,l=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function XE(e,t){if(e){if(typeof e=="string")return Bp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bp(e,t)}}function Bp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
154
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
155
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var QE={},JE={},ZE={},fa={get:function(t,n,r){var o=QE[n];if(o)return new o(t,r);throw{message:"jsPlumb: unknown endpoint type '"+n+"'"}},clone:function(t){var n=ZE[t.type];return fa.get(t.endpoint,t.type,n.getParams(t))},compute:function(t,n,r,o){var a=JE[t.type];if(a!=null)return a(t,n,r,o);ln("jsPlumb: cannot find endpoint calculator for endpoint of type ",t.type)},registerHandler:function(t){ZE[t.type]=t,QE[t.type]=t.cls,JE[t.type]=t.compute}},gi=function(){function e(t,n){Et(this,e),this.endpoint=t,F(this,"typeId",void 0),F(this,"x",void 0),F(this,"y",void 0),F(this,"w",void 0),F(this,"h",void 0),F(this,"computedValue",void 0),F(this,"bounds",sf()),F(this,"classes",[]),F(this,"instance",void 0),F(this,"type",void 0),n=n||{},this.instance=t.instance,t.cssClass&&this.classes.push(t.cssClass),n.cssClass&&this.classes.push(n.cssClass)}return Vt(e,[{key:"addClass",value:function(n){this.classes.push(n),this.instance.addEndpointClass(this.endpoint,n)}},{key:"removeClass",value:function(n){this.classes=this.classes.filter(function(r){return r!==n}),this.instance.removeEndpointClass(this.endpoint,n)}},{key:"compute",value:function(n,r,o){this.computedValue=fa.compute(this,n,r,o),this.bounds.xmin=this.x,this.bounds.ymin=this.y,this.bounds.xmax=this.x+this.w,this.bounds.ymax=this.y+this.h}},{key:"setVisible",value:function(n){this.instance.setEndpointVisible(this.endpoint,n)}}]),e}(),mi=function(e){on(n,e);var t=rn(n);function n(r,o){var a;return Et(this,n),a=t.call(this,r,o),F(Y(a),"radius",void 0),F(Y(a),"defaultOffset",void 0),F(Y(a),"defaultInnerRadius",void 0),F(Y(a),"type",n.type),o=o||{},a.radius=o.radius||5,a.defaultOffset=.5*a.radius,a.defaultInnerRadius=a.radius/3,a}return n}(gi);F(mi,"type","Dot");var VU={type:mi.type,cls:mi,compute:function(t,n,r,o){var a=n.curX-t.radius,s=n.curY-t.radius,l=t.radius*2,c=t.radius*2;if(o&&o.stroke){var u=o.strokeWidth||1;a-=u,s-=u,l+=u*2,c+=u*2}return t.x=a,t.y=s,t.w=l,t.h=c,[a,s,l,c,t.radius]},getParams:function(t){return{radius:t.radius}}},uf=function(e){on(n,e);var t=rn(n);function n(r,o){var a;return Et(this,n),a=t.call(this,r,o),F(Y(a),"type",n.type),a}return n}(gi);F(uf,"type","Blank");var HU={type:uf.type,cls:uf,compute:function(t,n,r,o){return t.x=n.curX,t.y=n.curY,t.w=10,t.h=0,[n.curX,n.curY,10,0]},getParams:function(t){return{}}},ff=function(e){on(n,e);var t=rn(n);function n(r,o){var a;return Et(this,n),a=t.call(this,r,o),F(Y(a),"width",void 0),F(Y(a),"height",void 0),F(Y(a),"type",n.type),o=o||{},a.width=o.width||10,a.height=o.height||10,a}return Vt(n,null,[{key:"_getParams",value:function(o){return{width:o.width,height:o.height}}}]),n}(gi);F(ff,"type","Rectangle");var UU={type:ff.type,cls:ff,compute:function(t,n,r,o){var a=o.width||t.width,s=o.height||t.height,l=n.curX-a/2,c=n.curY-s/2;return t.x=l,t.y=c,t.w=a,t.h=s,[l,c,a,s]},getParams:function(t){return{width:t.width,height:t.height}}},Rp=function(){function e(t,n){Et(this,e),this.connection=t,F(this,"type",void 0),F(this,"edited",!1),F(this,"stub",void 0),F(this,"sourceStub",void 0),F(this,"targetStub",void 0),F(this,"maxStub",void 0),F(this,"typeId",void 0),F(this,"gap",void 0),F(this,"sourceGap",void 0),F(this,"targetGap",void 0),F(this,"segments",[]),F(this,"totalLength",0),F(this,"segmentProportions",[]),F(this,"segmentProportionalLengths",[]),F(this,"paintInfo",null),F(this,"strokeWidth",void 0),F(this,"x",void 0),F(this,"y",void 0),F(this,"w",void 0),F(this,"h",void 0),F(this,"segment",void 0),F(this,"bounds",sf()),F(this,"cssClass",void 0),F(this,"hoverClass",void 0),F(this,"geometry",void 0),this.stub=n.stub||this.getDefaultStubs(),this.sourceStub=Array.isArray(this.stub)?this.stub[0]:this.stub,this.targetStub=Array.isArray(this.stub)?this.stub[1]:this.stub,this.gap=n.gap||0,this.sourceGap=Array.isArray(this.gap)?this.gap[0]:this.gap,this.targetGap=Array.isArray(this.gap)?this.gap[1]:this.gap,this.maxStub=Math.max(this.sourceStub,this.targetStub),this.cssClass=n.cssClass||"",this.hoverClass=n.hoverClass||""}return Vt(e,[{key:"getTypeDescriptor",value:function(){return"connector"}},{key:"getIdPrefix",value:function(){return"_jsplumb_connector"}},{key:"setGeometry",value:function(n,r){this.geometry=n,this.edited=n!=null&&!r}},{key:"exportGeometry",value:function(){return this.geometry}},{key:"importGeometry",value:function(n){return this.geometry=n,!0}},{key:"resetGeometry",value:function(){this.geometry=null,this.edited=!1}},{key:"transformAnchorPlacement",value:function(n,r,o){return{x:n.x,y:n.y,ox:n.ox,oy:n.oy,curX:n.curX+r,curY:n.curY+o}}},{key:"resetBounds",value:function(){this.bounds=sf()}},{key:"findSegmentForPoint",value:function(n,r){for(var o={d:1/0,s:null,x:null,y:null,l:null,x1:null,y1:null,x2:null,y2:null,index:null,connectorLocation:null},a=0;a<this.segments.length;a++){var s=this.segments[a].findClosestPointOnPath(n,r);s.d<o.d&&(o.d=s.d,o.l=s.l,o.x=s.x,o.y=s.y,o.s=this.segments[a],o.x1=s.x1,o.x2=s.x2,o.y1=s.y1,o.y2=s.y2,o.index=a,o.connectorLocation=this.segmentProportions[a][0]+s.l*(this.segmentProportions[a][1]-this.segmentProportions[a][0]))}return o}},{key:"lineIntersection",value:function(n,r,o,a){for(var s=[],l=0;l<this.segments.length;l++)s.push.apply(s,this.segments[l].lineIntersection(n,r,o,a));return s}},{key:"boxIntersection",value:function(n,r,o,a){for(var s=[],l=0;l<this.segments.length;l++)s.push.apply(s,this.segments[l].boxIntersection(n,r,o,a));return s}},{key:"boundingBoxIntersection",value:function(n){for(var r=[],o=0;o<this.segments.length;o++)r.push.apply(r,this.segments[o].boundingBoxIntersection(n));return r}},{key:"_updateSegmentProportions",value:function(){for(var n=0,r=0;r<this.segments.length;r++){var o=this.segments[r].getLength();this.segmentProportionalLengths[r]=o/this.totalLength,this.segmentProportions[r]=[n,n+=o/this.totalLength]}}},{key:"_findSegmentForLocation",value:function(n,r){var o,a,s;if(r&&(n=n>0?n/this.totalLength:(this.totalLength+n)/this.totalLength),n===1)o=this.segments.length-1,s=1;else if(n===0)s=0,o=0;else if(n>=.5){for(o=0,s=0,a=this.segmentProportions.length-1;a>-1;a--)if(this.segmentProportions[a][1]>=n&&this.segmentProportions[a][0]<=n){o=a,s=(n-this.segmentProportions[a][0])/this.segmentProportionalLengths[a];break}}else for(o=this.segmentProportions.length-1,s=1,a=0;a<this.segmentProportions.length;a++)if(this.segmentProportions[a][1]>=n){o=a,s=(n-this.segmentProportions[a][0])/this.segmentProportionalLengths[a];break}return{segment:this.segments[o],proportion:s,index:o}}},{key:"_addSegment",value:function(n,r){if(!(r.x1===r.x2&&r.y1===r.y2)){var o=new n(r);this.segments.push(o),this.totalLength+=o.getLength(),this.updateBounds(o)}}},{key:"_clearSegments",value:function(){this.totalLength=0,this.segments.length=0,this.segmentProportions.length=0,this.segmentProportionalLengths.length=0}},{key:"getLength",value:function(){return this.totalLength}},{key:"_prepareCompute",value:function(n){this.strokeWidth=n.strokeWidth;var r=n.sourcePos.curX,o=n.targetPos.curX,a=n.sourcePos.curY,s=n.targetPos.curY,l=Dp({x:r,y:a},{x:o,y:s}),c=o<r,u=s<a,f=[n.sourcePos.ox,n.sourcePos.oy],d=[n.targetPos.ox,n.targetPos.oy],h=c?o:r,p=u?s:a,g=Math.abs(o-r),v=Math.abs(s-a),m=f[0]===0&&f[1]===0,y=d[0]===0&&d[1]===0;if(m||y){var E=g>v?0:1,x=[1,0][E],C=E===0?r:a,A=E===0?o:s;m&&(f[E]=C>A?-1:1,f[x]=0),y&&(d[E]=C>A?1:-1,d[x]=0)}var w=c?g+this.sourceGap*f[0]:this.sourceGap*f[0],b=u?v+this.sourceGap*f[1]:this.sourceGap*f[1],T=c?this.targetGap*d[0]:g+this.targetGap*d[0],S=u?this.targetGap*d[1]:v+this.targetGap*d[1],_=f[0]*d[0]+f[1]*d[1],I={sx:w,sy:b,tx:T,ty:S,xSpan:Math.abs(T-w),ySpan:Math.abs(S-b),mx:(w+T)/2,my:(b+S)/2,so:f,to:d,x:h,y:p,w:g,h:v,segment:l,startStubX:w+f[0]*this.sourceStub,startStubY:b+f[1]*this.sourceStub,endStubX:T+d[0]*this.targetStub,endStubY:S+d[1]*this.targetStub,isXGreaterThanStubTimes2:Math.abs(w-T)>this.sourceStub+this.targetStub,isYGreaterThanStubTimes2:Math.abs(b-S)>this.sourceStub+this.targetStub,opposite:_===-1,perpendicular:_===0,orthogonal:_===1,sourceAxis:f[0]===0?"y":"x",points:[h,p,g,v,w,b,T,S],stubs:[this.sourceStub,this.targetStub]};return I.anchorOrientation=I.opposite?"opposite":I.orthogonal?"orthogonal":"perpendicular",I}},{key:"updateBounds",value:function(n){var r=n.extents;this.bounds.xmin=Math.min(this.bounds.xmin,r.xmin),this.bounds.xmax=Math.max(this.bounds.xmax,r.xmax),this.bounds.ymin=Math.min(this.bounds.ymin,r.ymin),this.bounds.ymax=Math.max(this.bounds.ymax,r.ymax)}},{key:"dumpSegmentsToConsole",value:function(){ln("SEGMENTS:");for(var n=0;n<this.segments.length;n++)ln(this.segments[n].type,""+this.segments[n].getLength(),""+this.segmentProportions[n])}},{key:"pointOnPath",value:function(n,r){var o=this._findSegmentForLocation(n,r);return o.segment&&o.segment.pointOnPath(o.proportion,!1)||{x:0,y:0}}},{key:"gradientAtPoint",value:function(n,r){var o=this._findSegmentForLocation(n,r);return o.segment&&o.segment.gradientAtPoint(o.proportion,!1)||0}},{key:"pointAlongPathFrom",value:function(n,r,o){var a=this._findSegmentForLocation(n,o);return a.segment&&a.segment.pointAlongPathFrom(a.proportion,r,!1)||{x:0,y:0}}},{key:"compute",value:function(n){this.paintInfo=this._prepareCompute(n),this._clearSegments(),this._compute(this.paintInfo,n),this.x=this.paintInfo.points[0],this.y=this.paintInfo.points[1],this.w=this.paintInfo.points[2],this.h=this.paintInfo.points[3],this.segment=this.paintInfo.segment,this._updateSegmentProportions()}},{key:"setAnchorOrientation",value:function(n,r){}}]),e}(),df=function(e){on(n,e);var t=rn(n);function n(r){var o;return Et(this,n),o=t.call(this,r),F(Y(o),"length",void 0),F(Y(o),"m",void 0),F(Y(o),"m2",void 0),F(Y(o),"type",n.segmentType),o._setCoordinates({x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}),o}return Vt(n,[{key:"getPath",value:function(o){return(o?"M "+this.x1+" "+this.y1+" ":"")+"L "+this.x2+" "+this.y2}},{key:"_recalc",value:function(){this.length=Math.sqrt(Math.pow(this.x2-this.x1,2)+Math.pow(this.y2-this.y1,2)),this.m=di({x:this.x1,y:this.y1},{x:this.x2,y:this.y2}),this.m2=-1/this.m,this.extents={xmin:Math.min(this.x1,this.x2),ymin:Math.min(this.y1,this.y2),xmax:Math.max(this.x1,this.x2),ymax:Math.max(this.y1,this.y2)}}},{key:"getLength",value:function(){return this.length}},{key:"getGradient",value:function(){return this.m}},{key:"_setCoordinates",value:function(o){this.x1=o.x1,this.y1=o.y1,this.x2=o.x2,this.y2=o.y2,this._recalc()}},{key:"pointOnPath",value:function(o,a){if(o===0&&!a)return{x:this.x1,y:this.y1};if(o===1&&!a)return{x:this.x2,y:this.y2};var s=a?o>0?o:this.length+o:o*this.length;return os({x:this.x1,y:this.y1},{x:this.x2,y:this.y2},s)}},{key:"gradientAtPoint",value:function(o,a){return this.m}},{key:"pointAlongPathFrom",value:function(o,a,s){var l=this.pointOnPath(o,s),c=a<=0?{x:this.x1,y:this.y1}:{x:this.x2,y:this.y2};return a<=0&&Math.abs(a)>1&&(a*=-1),os(l,c,a)}},{key:"within",value:function(o,a,s){return s>=Math.min(o,a)&&s<=Math.max(o,a)}},{key:"closest",value:function(o,a,s){return Math.abs(s-o)<Math.abs(s-a)?o:a}},{key:"findClosestPointOnPath",value:function(o,a){var s={d:1/0,x:null,y:null,l:null,x1:this.x1,x2:this.x2,y1:this.y1,y2:this.y2};if(this.m===0)s.y=this.y1,s.x=this.within(this.x1,this.x2,o)?o:this.closest(this.x1,this.x2,o);else if(this.m===1/0||this.m===-1/0)s.x=this.x1,s.y=this.within(this.y1,this.y2,a)?a:this.closest(this.y1,this.y2,a);else{var l=this.y1-this.m*this.x1,c=a-this.m2*o,u=(c-l)/(this.m-this.m2),f=this.m*u+l;s.x=this.within(this.x1,this.x2,u)?u:this.closest(this.x1,this.x2,u),s.y=this.within(this.y1,this.y2,f)?f:this.closest(this.y1,this.y2,f)}var d=_p({x:s.x,y:s.y},{x:this.x1,y:this.y1});return s.d=_p({x:o,y:a},s),s.l=d/length,s}},{key:"_pointLiesBetween",value:function(o,a,s){return s>a?a<=o&&o<=s:a>=o&&o>=s}},{key:"lineIntersection",value:function(o,a,s,l){var c=Math.abs(di({x:o,y:a},{x:s,y:l})),u=Math.abs(this.m),f=u===1/0?this.x1:this.y1-u*this.x1,d=[],h=c===1/0?o:a-c*o;if(c!==u)if(c===1/0&&u===0)this._pointLiesBetween(o,this.x1,this.x2)&&this._pointLiesBetween(this.y1,a,l)&&d.push({x:o,y:this.y1});else if(c===0&&u===1/0)this._pointLiesBetween(a,this.y1,this.y2)&&this._pointLiesBetween(this.x1,o,s)&&d.push({x:this.x1,y:a});else{var p,g;c===1/0?(p=o,this._pointLiesBetween(p,this.x1,this.x2)&&(g=u*o+f,this._pointLiesBetween(g,a,l)&&d.push({x:p,y:g}))):c===0?(g=a,this._pointLiesBetween(g,this.y1,this.y2)&&(p=(a-f)/u,this._pointLiesBetween(p,o,s)&&d.push({x:p,y:g}))):(p=(h-f)/(u-c),g=u*p+f,this._pointLiesBetween(p,this.x1,this.x2)&&this._pointLiesBetween(g,this.y1,this.y2)&&d.push({x:p,y:g}))}return d}},{key:"boxIntersection",value:function(o,a,s,l){var c=[];return c.push.apply(c,this.lineIntersection(o,a,o+s,a)),c.push.apply(c,this.lineIntersection(o+s,a,o+s,a+l)),c.push.apply(c,this.lineIntersection(o+s,a+l,o,a+l)),c.push.apply(c,this.lineIntersection(o,a+l,o,a)),c}}]),n}(Ip);F(df,"segmentType","Straight");var hf=function(e){on(n,e);var t=rn(n);function n(){var r;Et(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=t.call.apply(t,[this].concat(a)),F(Y(r),"type",n.type),r}return Vt(n,[{key:"getDefaultStubs",value:function(){return[0,0]}},{key:"_compute",value:function(o,a){this._addSegment(df,{x1:o.sx,y1:o.sy,x2:o.startStubX,y2:o.startStubY}),this._addSegment(df,{x1:o.startStubX,y1:o.startStubY,x2:o.endStubX,y2:o.endStubY}),this._addSegment(df,{x1:o.endStubX,y1:o.endStubY,x2:o.tx,y2:o.ty}),this.geometry={source:a.sourcePos,target:a.targetPos}}},{key:"transformGeometry",value:function(o,a,s){return{source:this.transformAnchorPlacement(o.source,a,s),target:this.transformAnchorPlacement(o.target,a,s)}}}]),n}(Rp);F(hf,"type","Straight");var qE={},pf={get:function(t,n,r){var o=qE[n];if(o)return new o(t,r);throw{message:"jsPlumb: unknown connector type '"+n+"'"}},register:function(t,n){qE[t]=n}};function as(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map(function(r){return"."+r}).join(",")}function jU(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join(" ")}function Mp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map(function(r){return"["+r+"]"}).join(",")}var Lp="source",$E="target",Vp="block",yi="none",Yl="absolute",eC="fixed",GU="static",tC="data-jtk-group",da="data-jtk-managed",vf="data-jtk-not-draggable",nC="tabindex",zU="data-jtk-scope",oC=zU+"-",rC="checkCondition",WU="checkDropAllowed",Hp="jtk-connector",KU="jtk-connector-outline",YU="jtk-connected",xi="jtk-endpoint",XU="jtk-endpoint-connected",QU="jtk-endpoint-full",Up="jtk-floating-endpoint",JU="jtk-endpoint-drop-allowed",ZU="jtk-endpoint-drop-forbidden",qU="jtk-endpoint-anchor",gf="jtk-group-collapsed",Xl="jtk-group-expanded",mf="jtk-overlay",$U="anchor:changed",ej="connection",aC="internal.connection",tj="connection:detach",sC="connection:move",nj="container:change",oj="endpoint:replaced",iC="internal.endpoint:unregistered",jp="internal.connection:detached",rj="element:manage",aj="group:added",sj="group:collapse",ij="group:expand",lj="group:member:added",cj="group:member:removed",uj="group:removed",lC="maxConnections",fj="group:nested:added",dj="group:nested:removed",hj="element:unmanage",cC="zoom",Ei="isDetachAllowed",pj="beforeDrag",vj="beforeDrop",uC="beforeDetach",gj="beforeStartDetach",Qt=Mp(da),mj="Cannot establish connection: source endpoint is full",yj="Cannot establish connection: target endpoint is full",xj="Cannot establish connection: source does not exist",Ej="Cannot establish connection: target does not exist",Cj="connectionOverlays",wj="allowNestedGroups",Ci="paintStyle",bj="scope";function Gp(e){var t=null;return Xt(e)?t={type:e,options:{}}:t=e,t.options.id=t.options.id||pn(),t}var yf=function(e){on(n,e);var t=rn(n);function n(r,o,a){var s;Et(this,n),s=t.call(this),s.instance=r,s.component=o,F(Y(s),"id",void 0),F(Y(s),"type",void 0),F(Y(s),"cssClass",void 0),F(Y(s),"visible",!0),F(Y(s),"location",void 0),F(Y(s),"events",void 0),F(Y(s),"attributes",void 0),a=a||{},s.id=a.id||pn(),s.cssClass=a.cssClass||"",s.setLocation(a.location),s.events=a.events||{},s.attributes=a.attributes||{};for(var l in s.events)s.bind(l,s.events[l]);return s}return Vt(n,[{key:"setLocation",value:function(o){var a=this.location==null?.5:this.location;if(o!=null)try{var s=typeof o=="string"?parseFloat(o):o;isNaN(s)||(a=s)}catch{}this.location=a}},{key:"shouldFireEvent",value:function(o,a,s){return!0}},{key:"setVisible",value:function(o){this.visible=o,this.instance.setOverlayVisible(this,o)}},{key:"isVisible",value:function(){return this.visible}}]),n}(Kl),fC={},ss={get:function(t,n,r,o){var a=fC[n];if(a)return new a(t,r,o);throw{message:"jsPlumb: unknown overlay type '"+n+"'"}},register:function(t,n){fC[t]=n}},is=function(e){on(n,e);var t=rn(n);function n(r,o,a){var s;return Et(this,n),s=t.call(this,r,o,a),s.instance=r,s.component=o,F(Y(s),"label",void 0),F(Y(s),"labelText",void 0),F(Y(s),"type",n.type),F(Y(s),"cachedDimensions",void 0),a=a||{label:""},s.setLabel(a.label),s}return Vt(n,[{key:"getLabel",value:function(){return ts(this.label)?this.label(this):this.labelText}},{key:"setLabel",value:function(o){this.label=o,this.labelText=null,this.instance.updateLabel(this)}},{key:"getDimensions",value:function(){return{w:1,h:1}}},{key:"updateFrom",value:function(o){o.label!=null&&this.setLabel(o.label),o.location!=null&&(this.setLocation(o.location),this.instance.updateLabel(this))}}]),n}(yf);F(is,"type","Label");function ha(e){return e.type===is.type}ss.register(is.type,is);function xf(e){return e==null?null:e.split(" ").filter(function(t){return t!=null&&t.length>0})}function dC(e,t,n){for(var r in t)e[r]=n}var Aj="connector",Sj="override",Tj="cssClass",hC="__default",kj="anchor",Oj="anchors",Ql="__label",Pj="jtk-default-label",pC="overlay",_j="labelLocation",vC="add",gC="remove";function wi(e,t){if(e.getDefaultType){var n=e.getTypeDescriptor(),r={},o=e.getDefaultType(),a=Xe({},o);dC(r,o,hC),e._types.forEach(function(s){if(s!==hC){var l=e.instance.getType(s,n);if(l!=null){var c=new Set([Aj,kj,Oj]);if(l.mergeStrategy===Sj)for(var u in l)c.add(u);a=ef(a,l,[Tj],hU(c)),dC(r,l,s)}}}),t&&(a=uU(a,t,"_")),e.applyType(a,r)}}function zp(e,t){var n=e.instance.getType(t,e.getTypeDescriptor());n!=null&&n.cssClass&&e.removeClass(n.cssClass)}function mC(e){if(e.paintStyle&&e.hoverPaintStyle){var t={};Xe(t,e.paintStyle),Xe(t,e.hoverPaintStyle),e.hoverPaintStyle=t}}function Dj(e,t){var n={cssClass:t.cssClass,id:Ql,component:e},r=Xe(n,t);return new is(e.instance,e,r)}function Ij(e,t){var n=null;if(Xt(t))n=ss.get(e.instance,t,e,{});else if(t.type!=null&&t.options!=null){var r=t,o=Xe({},r.options);n=ss.get(e.instance,r.type,e,o)}else n=t;return n.id=n.id||pn(),e.cacheTypeItem(pC,n,n.id),e.overlays[n.id]=n,n}var yC=function(e){on(n,e);var t=rn(n);function n(r,o){var a;if(Et(this,n),a=t.call(this),a.instance=r,F(Y(a),"defaultLabelLocation",.5),F(Y(a),"overlays",{}),F(Y(a),"overlayPositions",{}),F(Y(a),"overlayPlacements",{}),F(Y(a),"clone",void 0),F(Y(a),"deleted",void 0),F(Y(a),"segment",void 0),F(Y(a),"x",void 0),F(Y(a),"y",void 0),F(Y(a),"w",void 0),F(Y(a),"h",void 0),F(Y(a),"id",void 0),F(Y(a),"visible",!0),F(Y(a),"typeId",void 0),F(Y(a),"params",{}),F(Y(a),"paintStyle",void 0),F(Y(a),"hoverPaintStyle",void 0),F(Y(a),"paintStyleInUse",void 0),F(Y(a),"_hover",!1),F(Y(a),"lastPaintedAt",void 0),F(Y(a),"data",void 0),F(Y(a),"_defaultType",void 0),F(Y(a),"events",void 0),F(Y(a),"parameters",void 0),F(Y(a),"_types",void 0),F(Y(a),"_typeCache",void 0),F(Y(a),"cssClass",void 0),F(Y(a),"hoverClass",void 0),F(Y(a),"beforeDetach",void 0),F(Y(a),"beforeDrop",void 0),o=o||{},a.cssClass=o.cssClass||"",a.hoverClass=o.hoverClass||r.defaults.hoverClass,a.beforeDetach=o.beforeDetach,a.beforeDrop=o.beforeDrop,a._types=new Set,a._typeCache={},a.parameters=$u(o.parameters||{}),a.id=o.id||a.getIdPrefix()+new Date().getTime(),a._defaultType={parameters:a.parameters,scope:o.scope||a.instance.defaultScope,overlays:{}},o.events)for(var s in o.events)a.bind(s,o.events[s]);a.clone=function(){var p=Object.create(a.constructor.prototype);return a.constructor.apply(p,[r,o]),p},a.overlays={},a.overlayPositions={};var l=o.overlays||[],c={},u=a.getDefaultOverlayKey();if(u){var f=a.instance.defaults[u];f&&l.push.apply(l,cf(f));for(var d=0;d<l.length;d++){var h=Gp(l[d]);c[h.options.id]=h}}return a._defaultType.overlays=c,o.label&&(a.getDefaultType().overlays[Ql]={type:is.type,options:{label:o.label,location:o.labelLocation||a.defaultLabelLocation,id:Ql,cssClass:Pj}}),a}return Vt(n,[{key:"isDetachAllowed",value:function(o){var a=!0;if(this.beforeDetach)try{a=this.beforeDetach(o)}catch(s){ln("jsPlumb: beforeDetach callback failed",s)}return a}},{key:"isDropAllowed",value:function(o,a,s,l,c){var u,f={sourceId:o,targetId:a,scope:s,connection:l,dropEndpoint:c};if(this.beforeDrop)try{u=this.beforeDrop(f)}catch(d){ln("jsPlumb: beforeDrop callback failed",d)}else u=this.instance.checkCondition(vj,f);return u}},{key:"getDefaultType",value:function(){return this._defaultType}},{key:"appendToDefaultType",value:function(o){for(var a in o)this._defaultType[a]=o[a]}},{key:"getId",value:function(){return this.id}},{key:"cacheTypeItem",value:function(o,a,s){this._typeCache[s]=this._typeCache[s]||{},this._typeCache[s][o]=a}},{key:"getCachedTypeItem",value:function(o,a){return this._typeCache[a]?this._typeCache[a][o]:null}},{key:"setType",value:function(o,a){this.clearTypes(),(xf(o)||[]).forEach(this._types.add,this._types),wi(this,a)}},{key:"getType",value:function(){return Array.from(this._types.keys())}},{key:"reapplyTypes",value:function(o){wi(this,o)}},{key:"hasType",value:function(o){return this._types.has(o)}},{key:"addType",value:function(o,a){var s=xf(o),l=!1;if(s!=null){for(var c=0,u=s.length;c<u;c++)this._types.has(s[c])||(this._types.add(s[c]),l=!0);l&&wi(this,a)}}},{key:"removeType",value:function(o,a){var s=this,l=xf(o),c=!1,u=function(p){return s._types.has(p)?(zp(s,p),s._types.delete(p),!0):!1};if(l!=null){for(var f=0,d=l.length;f<d;f++)c=u(l[f])||c;c&&wi(this,a)}}},{key:"clearTypes",value:function(o){var a=this;this._types.forEach(function(s){zp(a,s)}),this._types.clear(),wi(this,o)}},{key:"toggleType",value:function(o,a){var s=xf(o);if(s!=null){for(var l=0,c=s.length;l<c;l++)this._types.has(s[l])?(zp(this,s[l]),this._types.delete(s[l])):this._types.add(s[l]);wi(this,a)}}},{key:"applyType",value:function(o,a){if(this.setPaintStyle(o.paintStyle),this.setHoverPaintStyle(o.hoverPaintStyle),this.mergeParameters(o.parameters),this.paintStyleInUse=this.getPaintStyle(),o.overlays){var s={},l;for(l in o.overlays){var c=this.overlays[o.overlays[l].options.id];if(c)c.updateFrom(o.overlays[l].options),s[o.overlays[l].options.id]=!0,this.instance.reattachOverlay(c,this);else{var u=this.getCachedTypeItem(pC,o.overlays[l].options.id);u!=null?(this.instance.reattachOverlay(u,this),u.setVisible(!0),u.updateFrom(o.overlays[l].options),this.overlays[u.id]=u):u=this.addOverlay(o.overlays[l]),s[u.id]=!0}}for(l in this.overlays)s[this.overlays[l].id]==null&&this.removeOverlay(this.overlays[l].id,!0)}}},{key:"setPaintStyle",value:function(o){this.paintStyle=o,this.paintStyleInUse=this.paintStyle,mC(this)}},{key:"getPaintStyle",value:function(){return this.paintStyle}},{key:"setHoverPaintStyle",value:function(o){this.hoverPaintStyle=o,mC(this)}},{key:"getHoverPaintStyle",value:function(){return this.hoverPaintStyle}},{key:"destroy",value:function(){for(var o in this.overlays)this.instance.destroyOverlay(this.overlays[o]);this.overlays={},this.overlayPositions={},this.unbind(),this.clone=null}},{key:"isHover",value:function(){return this._hover}},{key:"mergeParameters",value:function(o){o!=null&&Xe(this.parameters,o)}},{key:"setVisible",value:function(o){this.visible=o,o?this.showOverlays():this.hideOverlays()}},{key:"isVisible",value:function(){return this.visible}},{key:"setAbsoluteOverlayPosition",value:function(o,a){this.overlayPositions[o.id]=a}},{key:"getAbsoluteOverlayPosition",value:function(o){return this.overlayPositions?this.overlayPositions[o.id]:null}},{key:"_clazzManip",value:function(o,a){for(var s in this.overlays)o===vC?this.instance.addOverlayClass(this.overlays[s],a):o===gC&&this.instance.removeOverlayClass(this.overlays[s],a)}},{key:"addClass",value:function(o,a){var s=(this.cssClass||"").split(" ");s.push(o),this.cssClass=s.join(" "),this._clazzManip(vC,o)}},{key:"removeClass",value:function(o,a){var s=(this.cssClass||"").split(" ");this.cssClass=s.filter(function(l){return l!==o}).join(" "),this._clazzManip(gC,o)}},{key:"getClass",value:function(){return this.cssClass}},{key:"shouldFireEvent",value:function(o,a,s){return!0}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(o){this.data=o||{}}},{key:"mergeData",value:function(o){this.data=Xe(this.data,o)}},{key:"addOverlay",value:function(o){var a=Ij(this,o);if(this.getData&&a.type===is.type&&!Xt(o)){var s=this.getData(),l=o.options;if(s){var c=l.labelLocationAttribute||_j,u=s[c];u&&(a.location=u)}}return a}},{key:"getOverlay",value:function(o){return this.overlays[o]}},{key:"getOverlays",value:function(){return this.overlays}},{key:"hideOverlay",value:function(o){var a=this.getOverlay(o);a&&a.setVisible(!1)}},{key:"hideOverlays",value:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];a=a||[];for(var l in this.overlays)(a.length===0||a.indexOf(l)!==-1)&&this.overlays[l].setVisible(!1)}},{key:"showOverlay",value:function(o){var a=this.getOverlay(o);a&&a.setVisible(!0)}},{key:"showOverlays",value:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];a=a||[];for(var l in this.overlays)(a.length===0||a.indexOf(l)!==-1)&&this.overlays[l].setVisible(!0)}},{key:"removeAllOverlays",value:function(){for(var o in this.overlays)this.instance.destroyOverlay(this.overlays[o]);this.overlays={},this.overlayPositions=null,this.overlayPlacements={}}},{key:"removeOverlay",value:function(o,a){var s=this.overlays[o];s&&(s.setVisible(!1),a||this.instance.destroyOverlay(s),delete this.overlays[o],this.overlayPositions&&delete this.overlayPositions[o],this.overlayPlacements&&delete this.overlayPlacements[o])}},{key:"removeOverlays",value:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];for(var l=0,c=a.length;l<c;l++)this.removeOverlay(arguments[l])}},{key:"getLabel",value:function(){var o=this.getLabelOverlay();return o!=null?o.getLabel():null}},{key:"getLabelOverlay",value:function(){return this.getOverlay(Ql)}},{key:"setLabel",value:function(o){var a=this.getLabelOverlay();if(a)if(Xt(o)||ts(o))a.setLabel(o);else{var l=o;l.label&&a.setLabel(l.label),l.location&&(a.location=l.location)}else{var s=Xt(o)||ts(o)?{label:o}:o;a=Dj(this,s),this.overlays[Ql]=a}}}]),n}(Kl),bi,Ai,Si,Ti;(function(e){e.top="top",e.left="left",e.right="right",e.bottom="bottom"})(Ti||(Ti={}));var Zt=Ti.top,In=Ti.left,Sn=Ti.right,Gn=Ti.bottom,Fj=[In,Sn],Nj=[Zt,Gn],Bj=function(){function e(t,n,r){Et(this,e),this.instance=t,this.element=n,F(this,"isFloating",!0),F(this,"isContinuous",void 0),F(this,"isDynamic",void 0),F(this,"locations",[]),F(this,"currentLocation",0),F(this,"locked",!1),F(this,"cssClass",""),F(this,"timestamp",null),F(this,"type","Floating"),F(this,"id",pn()),F(this,"orientation",[0,0]),F(this,"size",void 0),this.size=t.viewport.getPosition(r),this.locations.push({x:.5,y:.5,ox:this.orientation[0],oy:this.orientation[1],offx:0,offy:0,iox:this.orientation[0],ioy:this.orientation[1],cls:""})}return Vt(e,[{key:"_updateOrientationInRouter",value:function(){this.instance.router.setAnchorOrientation(this,[this.locations[0].ox,this.locations[0].oy])}},{key:"over",value:function(n){this.orientation=this.instance.router.getEndpointOrientation(n),this.locations[0].ox=this.orientation[0],this.locations[0].oy=this.orientation[1],this._updateOrientationInRouter()}},{key:"out",value:function(){this.orientation=null,this.locations[0].ox=this.locations[0].iox,this.locations[0].oy=this.locations[0].ioy,this._updateOrientationInRouter()}}]),e}(),xC=(bi={},F(bi,Zt,Gn),F(bi,Sn,In),F(bi,In,Sn),F(bi,Gn,Zt),bi),EC=(Ai={},F(Ai,Zt,Sn),F(Ai,Sn,Gn),F(Ai,In,Zt),F(Ai,Gn,In),Ai),CC=(Si={},F(Si,Zt,In),F(Si,Sn,Zt),F(Si,In,Gn),F(Si,Gn,Sn),Si);function Rj(e){return e.faces.length===0?Zt:e.faces[0]}function Jl(e,t){return e.faces.indexOf(t)!==-1}function Mj(e,t){return(e.clockwise?EC:CC)[t]}function Lj(e,t){return(e.clockwise?CC:EC)[t]}function wC(e,t){return e.lockedAxis==null?e.lockedFace==null?Jl(e,t)===!0:e.lockedFace===t:e.lockedAxis.indexOf(t)!==-1}function Vj(e,t){if(Jl(e,t))return t;if(Jl(e,xC[t]))return xC[t];var n=Mj(e,t);if(Jl(e,n))return n;var r=Lj(e,t);return Jl(e,r)?r:t}var bC={x:.5,y:0,ox:0,oy:-1,offx:0,offy:0},AC={x:.5,y:1,ox:0,oy:1,offx:0,offy:0},SC={x:0,y:.5,ox:-1,oy:0,offx:0,offy:0},TC={x:1,y:.5,ox:1,oy:0,offx:0,offy:0},Hj={x:0,y:0,ox:0,oy:-1,offx:0,offy:0},Uj={x:1,y:0,ox:1,oy:-1,offx:0,offy:0},jj={x:0,y:1,ox:0,oy:1,offx:0,offy:0},Gj={x:1,y:1,ox:0,oy:1,offx:0,offy:0},zj={x:.5,y:.5,ox:0,oy:0,offx:0,offy:0},kC={Top:[bC],Bottom:[AC],Left:[SC],Right:[TC],TopLeft:[Hj],TopRight:[Uj],BottomLeft:[jj],BottomRight:[Gj],Center:[zj],AutoDefault:[bC,SC,AC,TC]},Wj={Continuous:{faces:[Zt,In,Gn,Sn]},ContinuousTop:{faces:[Zt]},ContinuousRight:{faces:[Sn]},ContinuousBottom:{faces:[Gn]},ContinuousLeft:{faces:[In]},ContinuousLeftRight:{faces:[In,Sn]},ContinuousTopBottom:{faces:[Zt,Gn]}};function OC(e,t){if(t=t||{},e===hi.Perimeter)return $j(t);var n=kC[e];if(n!=null)return Ef(e,ME(n,function(r){return Xe({iox:r.ox,ioy:r.oy},r)}),t);if(n=Wj[e],n!=null)return Xj(e,n.faces,t);throw{message:"jsPlumb: unknown anchor type '"+e+"'"}}function Ef(e,t,n){return{type:e,locations:t,currentLocation:0,locked:!1,id:pn(),isFloating:!1,isContinuous:!1,isDynamic:t.length>1,timestamp:null,cssClass:n.cssClass||""}}function Kj(e,t,n){return new Bj(e,t,n)}var Yj="currentFace";function Xj(e,t,n){var r={type:e,locations:[],currentLocation:0,locked:!1,id:pn(),cssClass:n.cssClass||"",isFloating:!1,isContinuous:!0,timestamp:null,faces:n.faces||t,lockedFace:null,lockedAxis:null,clockwise:n.clockwise!==!1,__currentFace:null};return Object.defineProperty(r,Yj,{get:function(){return this.__currentFace},set:function(a){this.__currentFace=Vj(this,a)}}),r}function PC(e){return e.length<7&&e.every(Tp)||e.length===7&&e.slice(0,5).every(Tp)&&Xt(e[6])}function Zl(e){if(Xt(e))return OC(e,null);if(Array.isArray(e))if(PC(e)){var t=e;return Ef(null,[{x:t[0],y:t[1],ox:t[2],oy:t[3],offx:t[4]==null?0:t[4],offy:t[5]==null?0:t[5],iox:t[2],ioy:t[3],cls:t[6]||""}],{cssClass:t[6]||""})}else{var n=ME(e,function(o){if(Xt(o)){var a=kC[o];return a!=null?Xe({iox:a[0].ox,ioy:a[0].oy,cls:""},a[0]):null}else if(PC(o))return{x:o[0],y:o[1],ox:o[2],oy:o[3],offx:o[4]==null?0:o[4],offy:o[5]==null?0:o[5],iox:o[2],ioy:o[3],cls:o[6]||""}}).filter(function(o){return o!=null});return Ef("Dynamic",n,{})}else{var r=e;return OC(r.type,r.options)}}function _C(e){for(var t=.5,n=Math.PI*2/e,r=[],o=0,a=0;a<e;a++){var s=t+t*Math.sin(o),l=t+t*Math.cos(o);r.push({x:s,y:l,ox:0,oy:0,offx:0,offy:0,iox:0,ioy:0,cls:""}),o+=n}return r}function Qj(e,t){for(var n=t/e.length,r=[],o=function(l,c,u,f,d,h,p){n=t*d;for(var g=(u-l)/n,v=(f-c)/n,m=0;m<n;m++)r.push({x:l+g*m,y:c+v*m,ox:h??0,oy:p??0,offx:0,offy:0,iox:0,ioy:0,cls:""})},a=0;a<e.length;a++)o.apply(null,e[a]);return r}function Wp(e,t){for(var n=[],r=0;r<e.length;r++)n.push([e[r][0],e[r][1],e[r][2],e[r][3],1/e.length,e[r][4],e[r][5]]);return Qj(n,t)}function DC(e){return Wp([[0,0,1,0,0,-1],[1,0,1,1,1,0],[1,1,0,1,0,1],[0,1,0,0,-1,0]],e)}function Jj(e){return Wp([[.5,0,1,.5],[1,.5,.5,1],[.5,1,0,.5],[0,.5,.5,0]],e)}function Zj(e){return Wp([[.5,0,1,1],[1,1,0,1],[0,1,.5,0]],e)}function qj(e,t){for(var n=[],r=t/180*Math.PI,o=0;o<e.length;o++){var a=e[o].x-.5,s=e[o].y-.5;n.push({x:.5+(a*Math.cos(r)-s*Math.sin(r)),y:.5+(a*Math.sin(r)+s*Math.cos(r)),ox:e[o].ox,oy:e[o].oy,offx:0,offy:0,iox:0,ioy:0,cls:""})}return n}var pa=new Map;pa.set(ua.Circle,_C),pa.set(ua.Ellipse,_C),pa.set(ua.Rectangle,DC),pa.set(ua.Square,DC),pa.set(ua.Diamond,Jj),pa.set(ua.Triangle,Zj);function $j(e){e=e||{};var t=e.anchorCount||60,n=e.shape;if(!n)throw new Error("no shape supplied to Perimeter Anchor type");if(!pa.has(n))throw new Error("Shape ["+n+"] is unknown by Perimeter Anchor type");var r=pa.get(n)(t);e.rotation&&(r=qj(r,e.rotation));var o=Ef(hi.Perimeter,r,e),a=Xe(o,{shape:n});return a}var Cf="anchors",Kp="connector";function IC(e,t,n,r,o,a,s){var l;if(t)e.endpoints[n]=t,t.addConnection(e);else{var c=s||e.endpointSpec||e.endpointsSpec[n]||e.instance.defaults.endpoints[n]||e.instance.defaults.endpoint,u=e.endpointStyles[n]||e.endpointStyle||e.instance.defaults.endpointStyles[n]||e.instance.defaults.endpointStyle;u.fill==null&&e.paintStyle!=null&&(u.fill=e.paintStyle.stroke),u.outlineStroke==null&&e.paintStyle!=null&&(u.outlineStroke=e.paintStyle.outlineStroke),u.outlineWidth==null&&e.paintStyle!=null&&(u.outlineWidth=e.paintStyle.outlineWidth);var f=e.endpointHoverStyles[n]||e.endpointHoverStyle||e.endpointHoverStyle||e.instance.defaults.endpointHoverStyles[n]||e.instance.defaults.endpointHoverStyle;e.hoverPaintStyle!=null&&(f==null&&(f={}),f.fill==null&&(f.fill=e.hoverPaintStyle.stroke));var d=e.uuids?e.uuids[n]:null;r=r??(e.instance.defaults.anchors!=null?e.instance.defaults.anchors[n]:e.instance.defaults.anchor),l=e.instance._internal_newEndpoint({paintStyle:u,hoverPaintStyle:f,endpoint:c,connections:[e],uuid:d,element:o,scope:e.scope,anchor:r,reattachConnections:e.reattach||e.instance.defaults.reattachConnections,connectionsDetachable:e.detachable||e.instance.defaults.connectionsDetachable}),e.instance._refreshEndpoint(l),t==null&&(l.deleteOnEmpty=!0),e.endpoints[n]=l}return l}var ql=function(e){on(n,e);var t=rn(n);function n(r,o){var a;Et(this,n),a=t.call(this,r,o),a.instance=r,F(Y(a),"connector",void 0),F(Y(a),"defaultLabelLocation",.5),F(Y(a),"scope",void 0),F(Y(a),"typeId","_jsplumb_connection"),F(Y(a),"previousConnection",void 0),F(Y(a),"sourceId",void 0),F(Y(a),"targetId",void 0),F(Y(a),"source",void 0),F(Y(a),"target",void 0),F(Y(a),"detachable",!0),F(Y(a),"reattach",!1),F(Y(a),"uuids",void 0),F(Y(a),"cost",1),F(Y(a),"directed",void 0),F(Y(a),"endpoints",[null,null]),F(Y(a),"endpointStyles",void 0),F(Y(a),"endpointSpec",void 0),F(Y(a),"endpointsSpec",void 0),F(Y(a),"endpointStyle",{}),F(Y(a),"endpointHoverStyle",{}),F(Y(a),"endpointHoverStyles",void 0),F(Y(a),"suspendedEndpoint",void 0),F(Y(a),"suspendedIndex",void 0),F(Y(a),"suspendedElement",void 0),F(Y(a),"suspendedElementId",void 0),F(Y(a),"suspendedElementType",void 0),F(Y(a),"_forceReattach",void 0),F(Y(a),"_forceDetach",void 0),F(Y(a),"proxies",[]),F(Y(a),"pending",!1),a.id=o.id,a.previousConnection=o.previousConnection,a.source=o.source,a.target=o.target,o.sourceEndpoint?(a.source=o.sourceEndpoint.element,a.sourceId=o.sourceEndpoint.elementId):a.sourceId=r.getId(a.source),o.targetEndpoint?(a.target=o.targetEndpoint.element,a.targetId=o.targetEndpoint.elementId):a.targetId=r.getId(a.target),a.scope=o.scope;var s=o.anchors?o.anchors[0]:o.anchor,l=o.anchors?o.anchors[1]:o.anchor;r.manage(a.source),r.manage(a.target),a.visible=!0,a.params={cssClass:o.cssClass,hoverClass:o.hoverClass,"pointer-events":o["pointer-events"],overlays:o.overlays},a.lastPaintedAt=null,o.type&&(o.endpoints=o.endpoints||a.instance._deriveEndpointAndAnchorSpec(o.type).endpoints),a.endpointSpec=o.endpoint,a.endpointsSpec=o.endpoints||[null,null],a.endpointStyle=o.endpointStyle,a.endpointHoverStyle=o.endpointHoverStyle,a.endpointStyles=o.endpointStyles||[null,null],a.endpointHoverStyles=o.endpointHoverStyles||[null,null],a.paintStyle=o.paintStyle,a.hoverPaintStyle=o.hoverPaintStyle,a.uuids=o.uuids,a.makeEndpoint(!0,a.source,a.sourceId,s,o.sourceEndpoint),a.makeEndpoint(!1,a.target,a.targetId,l,o.targetEndpoint),a.scope||(a.scope=a.endpoints[0].scope),o.deleteEndpointsOnEmpty!=null&&(a.endpoints[0].deleteOnEmpty=o.deleteEndpointsOnEmpty,a.endpoints[1].deleteOnEmpty=o.deleteEndpointsOnEmpty);var c=a.instance.defaults.connectionsDetachable;o.detachable===!1&&(c=!1),a.endpoints[0].connectionsDetachable===!1&&(c=!1),a.endpoints[1].connectionsDetachable===!1&&(c=!1),a.endpointsSpec=o.endpoints||[null,null],a.endpointSpec=o.endpoint||null;var u=o.reattach||a.endpoints[0].reattachConnections||a.endpoints[1].reattachConnections||a.instance.defaults.reattachConnections,f=Xe({},a.endpoints[0].connectorStyle||a.endpoints[1].connectorStyle||o.paintStyle||a.instance.defaults.paintStyle);if(a.appendToDefaultType({detachable:c,reattach:u,paintStyle:f,hoverPaintStyle:Xe({},a.endpoints[0].connectorHoverStyle||a.endpoints[1].connectorHoverStyle||o.hoverPaintStyle||a.instance.defaults.hoverPaintStyle)}),o.outlineWidth&&(f.outlineWidth=o.outlineWidth),o.outlineColor&&(f.outlineStroke=o.outlineColor),o.lineWidth&&(f.strokeWidth=o.lineWidth),o.color&&(f.stroke=o.color),!a.instance._suspendDrawing){var d=a.instance._suspendedAt||pn();a.instance._paintEndpoint(a.endpoints[0],{timestamp:d}),a.instance._paintEndpoint(a.endpoints[1],{timestamp:d})}a.cost=o.cost||a.endpoints[0].connectionCost,a.directed=o.directed,o.directed==null&&(a.directed=a.endpoints[0].connectionsDirected);var h=Xe({},a.endpoints[1].parameters);Xe(h,a.endpoints[0].parameters),Xe(h,a.parameters),a.parameters=h,a.paintStyleInUse=a.getPaintStyle()||{},a._setConnector(a.endpoints[0].connector||a.endpoints[1].connector||o.connector||a.instance.defaults.connector,!0);var p=o.data==null||!fi(o.data)?{}:o.data;a.setData(p);var g=[lf,a.endpoints[0].edgeType,a.endpoints[1].edgeType,o.type].join(" ");return/[^\s]/.test(g)&&a.addType(g,o.data),a}return Vt(n,[{key:"getIdPrefix",value:function(){return"_jsPlumb_c"}},{key:"getDefaultOverlayKey",value:function(){return Cj}},{key:"getXY",value:function(){return{x:this.connector.x,y:this.connector.y}}},{key:"makeEndpoint",value:function(o,a,s,l,c){return s=s||this.instance.getId(a),IC(this,c,o?0:1,l,a)}},{key:"getTypeDescriptor",value:function(){return n.type}},{key:"isDetachable",value:function(o){return this.detachable===!1?!1:o!=null?o.connectionsDetachable===!0:this.detachable===!0}},{key:"setDetachable",value:function(o){this.detachable=o===!0}},{key:"isReattach",value:function(){return this.reattach===!0||this.endpoints[0].reattachConnections===!0||this.endpoints[1].reattachConnections===!0}},{key:"setReattach",value:function(o){this.reattach=o===!0}},{key:"applyType",value:function(o,a){var s=null;o.connector!=null&&(s=this.getCachedTypeItem(Kp,a.connector),s==null&&(s=this.prepareConnector(o.connector,a.connector),this.cacheTypeItem(Kp,s,a.connector)),this.setPreparedConnector(s)),vo(jn(n.prototype),"applyType",this).call(this,o,a),o.detachable!=null&&this.setDetachable(o.detachable),o.reattach!=null&&this.setReattach(o.reattach),o.scope&&(this.scope=o.scope);var l=null;o.anchor?(l=this.getCachedTypeItem(Cf,a.anchor),l==null&&(l=[Zl(o.anchor),Zl(o.anchor)],this.cacheTypeItem(Cf,l,a.anchor))):o.anchors&&(l=this.getCachedTypeItem(Cf,a.anchors),l==null&&(l=[Zl(o.anchors[0]),Zl(o.anchors[1])],this.cacheTypeItem(Cf,l,a.anchors))),l!=null&&(this.instance.router.setConnectionAnchors(this,l),this.instance.router.isDynamicAnchor(this.endpoints[1])&&this.instance.repaint(this.endpoints[1].element)),this.instance.applyConnectorType(this.connector,o)}},{key:"addClass",value:function(o,a){vo(jn(n.prototype),"addClass",this).call(this,o),a&&(this.endpoints[0].addClass(o),this.endpoints[1].addClass(o),this.suspendedEndpoint&&this.suspendedEndpoint.addClass(o)),this.connector&&this.instance.addConnectorClass(this.connector,o)}},{key:"removeClass",value:function(o,a){vo(jn(n.prototype),"removeClass",this).call(this,o),a&&(this.endpoints[0].removeClass(o),this.endpoints[1].removeClass(o),this.suspendedEndpoint&&this.suspendedEndpoint.removeClass(o)),this.connector&&this.instance.removeConnectorClass(this.connector,o)}},{key:"setVisible",value:function(o){vo(jn(n.prototype),"setVisible",this).call(this,o),this.connector&&this.instance.setConnectorVisible(this.connector,o),this.instance._paintConnection(this)}},{key:"destroy",value:function(){vo(jn(n.prototype),"destroy",this).call(this),this.endpoints=null,this.endpointStyles=null,this.source=null,this.target=null,this.instance.destroyConnector(this),this.connector=null,this.deleted=!0}},{key:"getUuids",value:function(){return[this.endpoints[0].getUuid(),this.endpoints[1].getUuid()]}},{key:"prepareConnector",value:function(o,a){var s={cssClass:this.params.cssClass,hoverClass:this.params.hoverClass,"pointer-events":this.params["pointer-events"]},l;if(Xt(o))l=this.instance._makeConnector(this,o,s);else{var c=o;l=this.instance._makeConnector(this,c.type,ef(c.options||{},s))}return a!=null&&(l.typeId=a),l}},{key:"setPreparedConnector",value:function(o,a,s,l){if(this.connector!==o){var c,u="";if(this.connector!=null&&(c=this.connector,u=this.instance.getConnectorClass(this.connector),this.instance.destroyConnector(this)),this.connector=o,l&&this.cacheTypeItem(Kp,o,l),this.addClass(u),c!=null){var f=this.getOverlays();for(var d in f)this.instance.reattachOverlay(f[d],this)}a||this.instance._paintConnection(this)}}},{key:"_setConnector",value:function(o,a,s,l){var c=this.prepareConnector(o,l);this.setPreparedConnector(c,a,s,l)}},{key:"replaceEndpoint",value:function(o,a){var s=this.endpoints[o],l=s.elementId,c=this.instance.getEndpoints(s.element),u=c.indexOf(s),f=IC(this,null,o,null,s.element,l,a);this.endpoints[o]=f,c.splice(u,1,f),s.detachFromConnection(this),this.instance.deleteEndpoint(s),this.instance.fire(oj,{previous:s,current:f})}}]),n}(yC);F(ql,"type","connection");var eG=["connectorStyle","connectorHoverStyle","connectorOverlays","connector","connectionType","connectorClass","connectorHoverClass"],ki=function(e){on(n,e);var t=rn(n);function n(r,o){var a;Et(this,n),a=t.call(this,r,o),a.instance=r,F(Y(a),"connections",[]),F(Y(a),"endpoint",void 0),F(Y(a),"element",void 0),F(Y(a),"elementId",void 0),F(Y(a),"dragAllowedWhenFull",!0),F(Y(a),"timestamp",void 0),F(Y(a),"portId",void 0),F(Y(a),"maxConnections",void 0),F(Y(a),"proxiedBy",void 0),F(Y(a),"connectorClass",void 0),F(Y(a),"connectorHoverClass",void 0),F(Y(a),"finalEndpoint",void 0),F(Y(a),"enabled",!0),F(Y(a),"isSource",void 0),F(Y(a),"isTarget",void 0),F(Y(a),"isTemporarySource",void 0),F(Y(a),"connectionCost",1),F(Y(a),"connectionsDirected",void 0),F(Y(a),"connectionsDetachable",void 0),F(Y(a),"reattachConnections",void 0),F(Y(a),"currentAnchorClass",void 0),F(Y(a),"referenceEndpoint",void 0),F(Y(a),"edgeType",void 0),F(Y(a),"connector",void 0),F(Y(a),"connectorOverlays",void 0),F(Y(a),"connectorStyle",void 0),F(Y(a),"connectorHoverStyle",void 0),F(Y(a),"deleteOnEmpty",void 0),F(Y(a),"uuid",void 0),F(Y(a),"scope",void 0),F(Y(a),"_anchor",void 0),F(Y(a),"defaultLabelLocation",[.5,.5]),a.appendToDefaultType({edgeType:o.edgeType,maxConnections:o.maxConnections==null?a.instance.defaults.maxConnections:o.maxConnections,paintStyle:o.paintStyle||a.instance.defaults.endpointStyle,hoverPaintStyle:o.hoverPaintStyle||a.instance.defaults.endpointHoverStyle,connectorStyle:o.connectorStyle,connectorHoverStyle:o.connectorHoverStyle,connectorClass:o.connectorClass,connectorHoverClass:o.connectorHoverClass,connectorOverlays:o.connectorOverlays,connector:o.connector}),a.enabled=o.enabled!==!1,a.visible=!0,a.element=o.element,a.uuid=o.uuid,a.portId=o.portId,a.elementId=o.elementId,a.connectionCost=o.connectionCost==null?1:o.connectionCost,a.connectionsDirected=o.connectionsDirected,a.currentAnchorClass="",a.events={},a.connectorOverlays=o.connectorOverlays,a.connectorStyle=o.connectorStyle,a.connectorHoverStyle=o.connectorHoverStyle,a.connector=o.connector,a.edgeType=o.edgeType,a.connectorClass=o.connectorClass,a.connectorHoverClass=o.connectorHoverClass,a.deleteOnEmpty=o.deleteOnEmpty===!0,a.isSource=o.source||!1,a.isTemporarySource=o.isTemporarySource||!1,a.isTarget=o.target||!1,a.connections=o.connections||[],a.scope=o.scope||r.defaultScope,a.timestamp=null,a.reattachConnections=o.reattachConnections||r.defaults.reattachConnections,a.connectionsDetachable=r.defaults.connectionsDetachable,o.connectionsDetachable===!1&&(a.connectionsDetachable=!1),a.dragAllowedWhenFull=o.dragAllowedWhenFull!==!1,o.onMaxConnections&&a.bind(lC,o.onMaxConnections);var s=o.endpoint||o.existingEndpoint||r.defaults.endpoint;if(a.setEndpoint(s),o.preparedAnchor!=null)a.setPreparedAnchor(o.preparedAnchor);else{var l=o.anchor?o.anchor:o.anchors?o.anchors:r.defaults.anchor||hi.Top;a.setAnchor(l)}var c=[lf,o.type||""].join(" ");return a.addType(c,o.data),a}return Vt(n,[{key:"getIdPrefix",value:function(){return"_jsplumb_e"}},{key:"getTypeDescriptor",value:function(){return"endpoint"}},{key:"getXY",value:function(){return{x:this.endpoint.x,y:this.endpoint.y}}},{key:"getDefaultOverlayKey",value:function(){return"endpointOverlays"}},{key:"_updateAnchorClass",value:function(){var o=this._anchor&&this._anchor.cssClass;if(o!=null&&o.length>0){var a=this.instance.endpointAnchorClassPrefix+"-"+this.currentAnchorClass;this.currentAnchorClass=o;var s=this.instance.endpointAnchorClassPrefix+(this.currentAnchorClass?"-"+this.currentAnchorClass:"");a!==s&&(this.removeClass(a),this.addClass(s),this.instance.removeClass(this.element,a),this.instance.addClass(this.element,s))}}},{key:"setPreparedAnchor",value:function(o){return this.instance.router.setAnchor(this,o),this._updateAnchorClass(),this}},{key:"_anchorLocationChanged",value:function(o){this.fire($U,{endpoint:this,anchor:o}),this._updateAnchorClass()}},{key:"setAnchor",value:function(o){var a=this.instance.router.prepareAnchor(o);return this.setPreparedAnchor(a),this}},{key:"addConnection",value:function(o){this.connections.push(o),this.instance._refreshEndpoint(this)}},{key:"detachFromConnection",value:function(o,a,s){a=a??this.connections.indexOf(o),a>=0&&(this.connections.splice(a,1),this.instance._refreshEndpoint(this)),!s&&this.deleteOnEmpty&&this.connections.length===0&&this.instance.deleteEndpoint(this)}},{key:"deleteEveryConnection",value:function(o){for(var a=this.connections.length,s=0;s<a;s++)this.instance.deleteConnection(this.connections[0],o)}},{key:"detachFrom",value:function(o){for(var a=[],s=0;s<this.connections.length;s++)(this.connections[s].endpoints[1]===o||this.connections[s].endpoints[0]===o)&&a.push(this.connections[s]);for(var l=0,c=a.length;l<c;l++)this.instance.deleteConnection(a[0]);return this}},{key:"setVisible",value:function(o,a,s){if(vo(jn(n.prototype),"setVisible",this).call(this,o),this.endpoint.setVisible(o),o?this.showOverlays():this.hideOverlays(),!a){for(var l=0;l<this.connections.length;l++)if(this.connections[l].setVisible(o),!s){var c=this===this.connections[l].endpoints[0]?1:0;this.connections[l].endpoints[c].connections.length===1&&this.connections[l].endpoints[c].setVisible(o,!0,!0)}}}},{key:"applyType",value:function(o,a){vo(jn(n.prototype),"applyType",this).call(this,o,a),this.setPaintStyle(o.endpointStyle||o.paintStyle),this.setHoverPaintStyle(o.endpointHoverStyle||o.hoverPaintStyle),this.connectorStyle=o.connectorStyle,this.connectorHoverStyle=o.connectorHoverStyle,this.connector=o.connector,this.connectorOverlays=o.connectorOverlays,this.edgeType=o.edgeType,o.maxConnections!=null&&(this.maxConnections=o.maxConnections),o.scope&&(this.scope=o.scope),Xe(o,eG),this.instance.applyEndpointType(this,o)}},{key:"destroy",value:function(){vo(jn(n.prototype),"destroy",this).call(this),this.deleted=!0,this.endpoint!=null&&this.instance.destroyEndpoint(this)}},{key:"isFull",value:function(){return this.maxConnections===0?!0:!(this.isFloating()||this.maxConnections<0||this.connections.length<this.maxConnections)}},{key:"isFloating",value:function(){return this.instance.router.isFloating(this)}},{key:"isConnectedTo",value:function(o){var a=!1;if(o){for(var s=0;s<this.connections.length;s++)if(this.connections[s].endpoints[1]===o||this.connections[s].endpoints[0]===o){a=!0;break}}return a}},{key:"setDragAllowedWhenFull",value:function(o){this.dragAllowedWhenFull=o}},{key:"getUuid",value:function(){return this.uuid}},{key:"connectorSelector",value:function(){return this.connections[0]}},{key:"prepareEndpoint",value:function(o,a){var s={cssClass:this.cssClass,endpoint:this},l;if(VE(o,gi)){var c=o;l=fa.clone(c),l.classes=s.cssClass.split(" ")}else if(Xt(o))l=fa.get(this,o,s);else{var u=o;Xe(s,u.options||{}),l=fa.get(this,u.type,s)}return l.typeId=a,l}},{key:"setEndpoint",value:function(o){var a=this.prepareEndpoint(o);this.setPreparedEndpoint(a)}},{key:"setPreparedEndpoint",value:function(o){this.endpoint!=null&&this.instance.destroyEndpoint(this),this.endpoint=o}},{key:"addClass",value:function(o,a){vo(jn(n.prototype),"addClass",this).call(this,o,a),this.endpoint!=null&&this.endpoint.addClass(o)}},{key:"removeClass",value:function(o,a){vo(jn(n.prototype),"removeClass",this).call(this,o,a),this.endpoint!=null&&this.endpoint.removeClass(o)}}]),n}(yC),Yp=function e(t,n){Et(this,e),this.instance=t,this.el=n,F(this,"group",void 0)},tG=function(e){on(n,e);var t=rn(n);function n(r,o,a){var s;Et(this,n),s=t.call(this,r,o),s.instance=r,F(Y(s),"children",[]),F(Y(s),"collapsed",!1),F(Y(s),"droppable",void 0),F(Y(s),"enabled",void 0),F(Y(s),"orphan",void 0),F(Y(s),"constrain",void 0),F(Y(s),"proxied",void 0),F(Y(s),"ghost",void 0),F(Y(s),"revert",void 0),F(Y(s),"prune",void 0),F(Y(s),"dropOverride",void 0),F(Y(s),"anchor",void 0),F(Y(s),"endpoint",void 0),F(Y(s),"connections",{source:[],target:[],internal:[]}),F(Y(s),"manager",void 0),F(Y(s),"id",void 0),F(Y(s),"elId",void 0);var l=s.el;return l._isJsPlumbGroup=!0,l._jsPlumbGroup=Y(s),s.elId=r.getId(o),s.orphan=a.orphan===!0,s.revert=s.orphan===!0?!1:a.revert!==!1,s.droppable=a.droppable!==!1,s.ghost=a.ghost===!0,s.enabled=a.enabled!==!1,s.prune=s.orphan!==!0&&a.prune===!0,s.constrain=s.ghost||a.constrain===!0,s.proxied=a.proxied!==!1,s.id=a.id||pn(),s.dropOverride=a.dropOverride===!0,s.anchor=a.anchor,s.endpoint=a.endpoint,s.anchor=a.anchor,r.setAttribute(o,tC,""),s}return Vt(n,[{key:"contentArea",get:function(){return this.instance.getGroupContentArea(this)}},{key:"overrideDrop",value:function(o,a){return this.dropOverride&&(this.revert||this.prune||this.orphan)}},{key:"getAnchor",value:function(o,a){return this.anchor||"Continuous"}},{key:"getEndpoint",value:function(o,a){return this.endpoint||{type:mi.type,options:{radius:10}}}},{key:"add",value:function(o,a){var s=this.instance.getGroupContentArea(this),l=o;if(l._jsPlumbParentGroup!=null){if(l._jsPlumbParentGroup===this)return;l._jsPlumbParentGroup.remove(o,!0,a,!1)}l._jsPlumbParentGroup=this,this.children.push(new Yp(this.instance,o)),this.instance._appendElement(l,s),this.manager._updateConnectionsForGroup(this)}},{key:"resolveNode",value:function(o){return o==null?null:kp(this.children,function(a){return a.el===o})}},{key:"remove",value:function(o,a,s,l,c){var u=this.resolveNode(o);u!=null&&this._doRemove(u,a,s,l,c)}},{key:"_doRemove",value:function(o,a,s,l,c){var u=o.el;if(delete u._jsPlumbParentGroup,hn(this.children,function(d){return d===o}),a)try{this.instance.getGroupContentArea(this).removeChild(u)}catch(d){ln("Could not remove element from Group "+d)}if(!s){var f={group:this,el:u};c&&(f.targetGroup=c),this.instance.fire(cj,f)}l||this.manager._updateConnectionsForGroup(this)}},{key:"removeAll",value:function(o,a){for(var s=0,l=this.children.length;s<l;s++){var c=this.children[0];this._doRemove(c,o,a,!0),this.instance.unmanage(c.el,!0)}this.children.length=0,this.manager._updateConnectionsForGroup(this)}},{key:"orphanAll",value:function(){for(var o={},a=0;a<this.children.length;a++){var s=this.manager.orphan(this.children[a].el,!1);o[s.id]=s.pos}return this.children.length=0,o}},{key:"addGroup",value:function(o){if(this.instance.allowNestedGroups&&o!==this){if(this.instance.groupManager.isAncestor(this,o))return!1;o.group!=null&&o.group.removeGroup(o);var a=this.instance.getId(o.el),s=this.instance.getManagedElements()[a];s.group=this.elId;var l=this.instance.getOffsetRelativeToRoot(o.el),c=this.collapsed?this.instance.getOffsetRelativeToRoot(this.el):this.instance.getOffsetRelativeToRoot(this.instance.getGroupContentArea(this));o.el._jsPlumbParentGroup=this,this.children.push(o),this.instance._appendElementToGroup(this,o.el),o.group=this;var u={x:l.x-c.x,y:l.y-c.y};return this.instance.setPosition(o.el,u),this.instance.fire(fj,{parent:this,child:o}),!0}else return!1}},{key:"removeGroup",value:function(o){if(o.group===this){var a=o.el,s=this.instance.getGroupContentArea(this);s===a.parentNode&&s.removeChild(o.el);var l=this.instance.getId(o.el),c=this.instance.getManagedElements()[l];c&&delete c.group,this.children=this.children.filter(function(u){return u.id!==o.id}),delete o.group,delete a._jsPlumbParentGroup,this.instance.fire(dj,{parent:this,child:o})}}},{key:"getGroups",value:function(){return this.children.filter(function(o){return o.constructor===n})}},{key:"getNodes",value:function(){return this.children.filter(function(o){return o.constructor===Yp})}},{key:"collapseParent",get:function(){var o=null;if(this.group==null)return null;for(var a=this.group;a!=null;)a.collapsed&&(o=a),a=a.group;return o}}]),n}(Yp),nG=function(){function e(t){var n=this;Et(this,e),this.instance=t,F(this,"groupMap",{}),F(this,"_connectionSourceMap",{}),F(this,"_connectionTargetMap",{}),t.bind(aC,function(r){var o=n.getGroupFor(r.source),a=n.getGroupFor(r.target);o!=null&&a!=null&&o===a?(n._connectionSourceMap[r.connection.id]=o,n._connectionTargetMap[r.connection.id]=o,Gl(o.connections.internal,r.connection)):(o!=null&&(r.target._jsPlumbGroup===o?Gl(o.connections.internal,r.connection):Gl(o.connections.source,r.connection),n._connectionSourceMap[r.connection.id]=o),a!=null&&(r.source._jsPlumbGroup===a?Gl(a.connections.internal,r.connection):Gl(a.connections.target,r.connection),n._connectionTargetMap[r.connection.id]=a))}),t.bind(jp,function(r){n._cleanupDetachedConnection(r.connection)}),t.bind(sC,function(r){var o=r.originalEndpoint.element,a=n.getGroupFor(o),s=r.connection.endpoints[r.index],l=s.element,c=n.getGroupFor(l),u=r.index===0?n._connectionSourceMap:n._connectionTargetMap,f=r.index===0?n._connectionTargetMap:n._connectionSourceMap;c!=null?(u[r.connection.id]=c,r.connection.source===r.connection.target&&(f[r.connection.id]=c)):(delete u[r.connection.id],r.connection.source===r.connection.target&&delete f[r.connection.id]),a!=null&&n._updateConnectionsForGroup(a),c!=null&&n._updateConnectionsForGroup(c)})}return Vt(e,[{key:"_cleanupDetachedConnection",value:function(n){n.proxies.length=0;var r=this._connectionSourceMap[n.id],o;r!=null&&(o=function(s){return s.id===n.id},hn(r.connections.source,o),hn(r.connections.target,o),hn(r.connections.internal,o),delete this._connectionSourceMap[n.id]),r=this._connectionTargetMap[n.id],r!=null&&(o=function(s){return s.id===n.id},hn(r.connections.source,o),hn(r.connections.target,o),hn(r.connections.internal,o),delete this._connectionTargetMap[n.id])}},{key:"addGroup",value:function(n){var r=n.el;if(this.groupMap[n.id]!=null)throw new Error("cannot create Group ["+n.id+"]; a Group with that ID exists");if(r._isJsPlumbGroup!=null)throw new Error("cannot create Group ["+n.id+"]; the given element is already a Group");var o=new tG(this.instance,n.el,n);return this.groupMap[o.id]=o,n.collapsed&&this.collapseGroup(o),this.instance.manage(o.el),this.instance.addClass(o.el,Xl),o.manager=this,this._updateConnectionsForGroup(o),this.instance.fire(aj,{group:o}),o}},{key:"getGroup",value:function(n){var r=n;if(Xt(n)&&(r=this.groupMap[n],r==null))throw new Error("No such group ["+n+"]");return r}},{key:"getGroupFor",value:function(n){for(var r=n,o=this.instance.getContainer(),a=!1,s=null;!a;)r==null||r===o?a=!0:r._jsPlumbParentGroup?(s=r._jsPlumbParentGroup,a=!0):r=r.parentNode;return s}},{key:"getGroups",value:function(){var n=[];for(var r in this.groupMap)n.push(this.groupMap[r]);return n}},{key:"removeGroup",value:function(n,r,o,a){var s=this,l=this.getGroup(n);this.expandGroup(l,!0);var c={};return Ke(l.children,function(u){var f=s.instance.getManagedElements()[s.instance.getId(u.el)];f&&delete f.group}),r?(Ke(l.getGroups(),function(u){return s.removeGroup(u,r,o)}),l.removeAll(o,a)):(l.group&&Ke(l.children,function(u){return l.group.add(u.el)}),c=l.orphanAll()),l.group&&l.group.removeGroup(l),this.instance.unmanage(l.el,!0),delete this.groupMap[l.id],this.instance.fire(uj,{group:l}),c}},{key:"removeAllGroups",value:function(n,r,o){for(var a in this.groupMap)this.removeGroup(this.groupMap[a],n,r,o)}},{key:"forEach",value:function(n){for(var r in this.groupMap)n(this.groupMap[r])}},{key:"orphan",value:function(n,r){var o=n;if(o._jsPlumbParentGroup){var a=o._jsPlumbParentGroup,s=this.instance.getId(o),l=this.instance.getOffset(n);return r!==!0&&a.group?this.instance._appendElementToGroup(a.group,n):this.instance._appendElementToContainer(n),this.instance.setPosition(n,l),delete o._jsPlumbParentGroup,{id:s,pos:l}}}},{key:"_updateConnectionsForGroup",value:function(n){var r=this;n.connections.source.length=0,n.connections.target.length=0,n.connections.internal.length=0;var o=n.children.slice().map(function(h){return h.el}),a=[];if(Ke(o,function(h){Array.prototype.push.apply(a,r.instance.getSelector(h,Qt))}),Array.prototype.push.apply(o,a),o.length>0){var s=this.instance.getConnections({source:o,scope:rs},!0),l=this.instance.getConnections({target:o,scope:rs},!0),c={},u,f,d=function(p){for(var g=0;g<p.length;g++)c[p[g].id]||(c[p[g].id]=!0,u=r.getGroupFor(p[g].source),f=r.getGroupFor(p[g].target),p[g].source===n.el&&f===n||p[g].target===n.el&&u===n?n.connections.internal.push(p[g]):u===n?(f!==n?n.connections.source.push(p[g]):n.connections.internal.push(p[g]),r._connectionSourceMap[p[g].id]=n):f===n&&(n.connections.target.push(p[g]),r._connectionTargetMap[p[g].id]=n))};d(s),d(l)}}},{key:"_collapseConnection",value:function(n,r,o){var a=n.endpoints[r===0?1:0].element;if(a._jsPlumbParentGroup&&!a._jsPlumbParentGroup.proxied&&a._jsPlumbParentGroup.collapsed)return!1;var s=n.endpoints[0].element,l=s._jsPlumbParentGroup,c=l!=null?l.collapseParent||l:null,u=n.endpoints[1].element,f=u._jsPlumbParentGroup,d=f!=null?f.collapseParent||f:null;if(c==null||d==null||c.id!==d.id){var h=o.el;return this.instance.getId(h),this.instance.proxyConnection(n,r,h,function(p,g){return o.getEndpoint(p,g)},function(p,g){return o.getAnchor(p,g)}),!0}else return!1}},{key:"_expandConnection",value:function(n,r,o){this.instance.unproxyConnection(n,r)}},{key:"isElementDescendant",value:function(n,r){for(var o=this.instance.getContainer(),a=!1;!a;){if(n==null||n===o)return!1;if(n===r)return!0;n=n.parentNode}}},{key:"collapseGroup",value:function(n){var r=this,o=this.getGroup(n);if(!(o==null||o.collapsed)){var a=o.el;if(o.collapseParent==null){if(this.instance.setGroupVisible(o,!1),o.collapsed=!0,this.instance.removeClass(a,Xl),this.instance.addClass(a,gf),o.proxied){var s=new Set,l=function(u,f){for(var d=0;d<u.length;d++){var h=u[d];r._collapseConnection(h,f,o)===!0&&s.add(h.id)}};l(o.connections.source,0),l(o.connections.target,1),Ke(o.getGroups(),function(c){r.cascadeCollapse(o,c,s)})}this.instance.revalidate(a),this.repaintGroup(o),this.instance.fire(sj,{group:o})}else o.collapsed=!0,this.instance.removeClass(a,Xl),this.instance.addClass(a,gf)}}},{key:"cascadeCollapse",value:function(n,r,o){var a=this;if(n.proxied){var s=function(c,u){for(var f=0;f<c.length;f++){var d=c[f];o.has(d.id)||a._collapseConnection(d,u,n)===!0&&o.add(d.id)}};s(r.connections.source,0),s(r.connections.target,1)}Ke(r.getGroups(),function(l){a.cascadeCollapse(n,l,o)})}},{key:"expandGroup",value:function(n,r){var o=this,a=this.getGroup(n);if(a!=null){var s=a.el;if(a.collapseParent==null){if(this.instance.setGroupVisible(a,!0),a.collapsed=!1,this.instance.addClass(s,Xl),this.instance.removeClass(s,gf),a.proxied){var l=function(f,d){for(var h=0;h<f.length;h++){var p=f[h];o._expandConnection(p,d,a)}};l(a.connections.source,0),l(a.connections.target,1);var c=function u(f,d){if(d||f.collapsed){var h=function(g,v){for(var m=0;m<g.length;m++){var y=g[m];o._collapseConnection(y,v,f.collapseParent||f)}};h(f.connections.source,0),h(f.connections.target,1),Ke(f.connections.internal,function(p){return p.setVisible(!1)}),Ke(f.getGroups(),function(p){return u(p,!0)})}else o.expandGroup(f,!0)};Ke(a.getGroups(),c)}this.instance.revalidate(s),this.repaintGroup(a),r||this.instance.fire(ij,{group:a})}else a.collapsed=!1,this.instance.addClass(s,Xl),this.instance.removeClass(s,gf)}}},{key:"toggleGroup",value:function(n){n=this.getGroup(n),n!=null&&(n.collapsed?this.expandGroup(n):this.collapseGroup(n))}},{key:"repaintGroup",value:function(n){for(var r=this.getGroup(n),o=r.children,a=0;a<o.length;a++)this.instance.revalidate(o[a].el)}},{key:"addToGroup",value:function(n,r){var o=this,a=this.getGroup(n);if(a){for(var s=a.el,l=function(h){var p=h,g=p._isJsPlumbGroup!=null,v=p._jsPlumbGroup,m=p._jsPlumbParentGroup;if(m!==a){var y=o.instance.manage(h),E=o.instance.getOffset(h),x=a.collapsed?o.instance.getOffsetRelativeToRoot(s):o.instance.getOffset(o.instance.getGroupContentArea(a));y.group=a.elId,m!=null&&(m.remove(h,!1,r,!1,a),o._updateConnectionsForGroup(m)),g?a.addGroup(v):a.add(h,r);var C=function(T,S){var _=S===0?1:0;T.each(function(I){I.setVisible(!1),I.endpoints[_].element._jsPlumbGroup===a?(I.endpoints[_].setVisible(!1),o._expandConnection(I,_,a)):(I.endpoints[S].setVisible(!1),o._collapseConnection(I,S,a))})};a.collapsed&&(C(o.instance.select({source:h}),0),C(o.instance.select({target:h}),1)),o.instance.getId(h);var A={x:E.x-x.x,y:E.y-x.y};if(o.instance.setPosition(h,A),o._updateConnectionsForGroup(a),o.instance.revalidate(h),!r){var w={group:a,el:h,pos:A};m&&(w.sourceGroup=m),o.instance.fire(lj,w)}}},c=arguments.length,u=new Array(c>2?c-2:0),f=2;f<c;f++)u[f-2]=arguments[f];Ke(u,l)}}},{key:"removeFromGroup",value:function(n,r){var o=this,a=this.getGroup(n);if(a){for(var s=function(d){if(a.collapsed){var h=function(v,m){for(var y=0;y<v.length;y++){var E=v[y];if(E.proxies){for(var x=0;x<E.proxies.length;x++)if(E.proxies[x]!=null){var C=E.proxies[x].originalEp.element;(C===d||o.isElementDescendant(C,d))&&o._expandConnection(E,m,a)}}}};h(a.connections.source.slice(),0),h(a.connections.target.slice(),1)}a.remove(d,null,r);var p=o.instance.getManagedElements()[o.instance.getId(d)];p&&delete p.group},l=arguments.length,c=new Array(l>2?l-2:0),u=2;u<l;u++)c[u-2]=arguments[u];Ke(c,s)}}},{key:"getAncestors",value:function(n){for(var r=[],o=n.group;o!=null;)r.push(o),o=o.group;return r}},{key:"isAncestor",value:function(n,r){return n==null||r==null?!1:this.getAncestors(n).indexOf(r)!==-1}},{key:"getDescendants",value:function(n){var r=[],o=function a(s){var l=s.getGroups();r.push.apply(r,cf(l)),Ke(l,a)};return o(n),r}},{key:"isDescendant",value:function(n,r){return n==null||r==null?!1:this.getDescendants(r).indexOf(n)!==-1}},{key:"reset",value:function(){this._connectionSourceMap={},this._connectionTargetMap={},this.groupMap={}}}]),e}(),FC=function(){function e(t,n){Et(this,e),this.instance=t,this.entries=n}return Vt(e,[{key:"length",get:function(){return this.entries.length}},{key:"each",value:function(n){return Ke(this.entries,function(r){return n(r)}),this}},{key:"get",value:function(n){return this.entries[n]}},{key:"addClass",value:function(n,r){return this.each(function(o){return o.addClass(n,r)}),this}},{key:"removeClass",value:function(n,r){return this.each(function(o){return o.removeClass(n,r)}),this}},{key:"removeAllOverlays",value:function(){return this.each(function(n){return n.removeAllOverlays()}),this}},{key:"setLabel",value:function(n){return this.each(function(r){return r.setLabel(n)}),this}},{key:"clear",value:function(){return this.entries.length=0,this}},{key:"map",value:function(n){var r=[];return this.each(function(o){return r.push(n(o))}),r}},{key:"addOverlay",value:function(n){return this.each(function(r){return r.addOverlay(n)}),this}},{key:"removeOverlay",value:function(n){return this.each(function(r){return r.removeOverlay(n)}),this}},{key:"removeOverlays",value:function(){return this.each(function(n){return n.removeOverlays()}),this}},{key:"showOverlay",value:function(n){return this.each(function(r){return r.showOverlay(n)}),this}},{key:"hideOverlay",value:function(n){return this.each(function(r){return r.hideOverlay(n)}),this}},{key:"setPaintStyle",value:function(n){return this.each(function(r){return r.setPaintStyle(n)}),this}},{key:"setHoverPaintStyle",value:function(n){return this.each(function(r){return r.setHoverPaintStyle(n)}),this}},{key:"setSuspendEvents",value:function(n){return this.each(function(r){return r.setSuspendEvents(n)}),this}},{key:"setParameter",value:function(n,r){return this.each(function(o){return o.parameters[n]=r}),this}},{key:"setParameters",value:function(n){return this.each(function(r){return r.parameters=n}),this}},{key:"setVisible",value:function(n){return this.each(function(r){return r.setVisible(n)}),this}},{key:"addType",value:function(n){return this.each(function(r){return r.addType(n)}),this}},{key:"toggleType",value:function(n){return this.each(function(r){return r.toggleType(n)}),this}},{key:"removeType",value:function(n){return this.each(function(r){return r.removeType(n)}),this}},{key:"bind",value:function(n,r){return this.each(function(o){return o.bind(n,r)}),this}},{key:"unbind",value:function(n,r){return this.each(function(o){return o.unbind(n,r)}),this}},{key:"setHover",value:function(n){var r=this;return this.each(function(o){return r.instance.setHover(o,n)}),this}}]),e}(),oG=function(e){on(n,e);var t=rn(n);function n(){return Et(this,n),t.apply(this,arguments)}return Vt(n,[{key:"setEnabled",value:function(o){return this.each(function(a){return a.enabled=o}),this}},{key:"setAnchor",value:function(o){return this.each(function(a){return a.setAnchor(o)}),this}},{key:"deleteEveryConnection",value:function(){return this.each(function(o){return o.deleteEveryConnection()}),this}},{key:"deleteAll",value:function(){var o=this;return this.each(function(a){return o.instance.deleteEndpoint(a)}),this.clear(),this}}]),n}(FC),rG=function(e){on(n,e);var t=rn(n);function n(){return Et(this,n),t.apply(this,arguments)}return Vt(n,[{key:"setDetachable",value:function(o){return this.each(function(a){return a.setDetachable(o)}),this}},{key:"setReattach",value:function(o){return this.each(function(a){return a.setReattach(o)}),this}},{key:"setConnector",value:function(o){return this.each(function(a){return a._setConnector(o)}),this}},{key:"deleteAll",value:function(){var o=this;this.each(function(a){return o.instance.deleteConnection(a)}),this.clear()}},{key:"repaint",value:function(){var o=this;return this.each(function(a){return o.instance._paintConnection(a)}),this}}]),n}(FC),aG=function e(){Et(this,e),F(this,"affectedElements",new Set)};function NC(){return{x:0,y:0,w:0,h:0,r:0,c:{x:0,y:0},x2:0,y2:0,t:{x:0,y:0,c:{x:0,y:0},w:0,h:0,r:0,x2:0,y2:0,cr:0,sr:0},dirty:!0}}function sG(e,t,n,r,o){var a={x:e+n/2,y:t+r/2},s=Math.cos(o/360*Math.PI*2),l=Math.sin(o/360*Math.PI*2),c=function(x,C){return{x:a.x+Math.round((x-a.x)*s-(C-a.y)*l),y:a.y+Math.round((C-a.y)*s-(x-a.x)*l)}},u=c(e,t),f=c(e+n,t),d=c(e+n,t+r),h=c(e,t+r),p=c(e+n/2,t+r/2),g=Math.min(u.x,f.x,d.x,h.x),v=Math.max(u.x,f.x,d.x,h.x),m=Math.min(u.y,f.y,d.y,h.y),y=Math.max(u.y,f.y,d.y,h.y);return{x:g,y:m,w:v-g,h:y-m,c:p,r:o,x2:v,y2:y,cr:s,sr:l}}var wf=function(t,n){var r=0;return n[1]>t[1]?r=-1:n[1]<t[1]&&(r=1),r},BC=function(t,n){return wf(t,n)*-1};function bf(e,t,n,r){vU([e,t],n,wf,r)}function va(e,t){var n=ca(t,function(r){return r[0]===e});n>-1&&t.splice(n,1)}var iG=function(e){on(n,e);var t=rn(n);function n(r){var o;return Et(this,n),o=t.call(this),o.instance=r,F(Y(o),"_currentTransaction",null),F(Y(o),"_sortedElements",{xmin:[],xmax:[],ymin:[],ymax:[]}),F(Y(o),"_elementMap",new Map),F(Y(o),"_transformedElementMap",new Map),F(Y(o),"_bounds",{minx:0,maxx:0,miny:0,maxy:0}),o}return Vt(n,[{key:"_updateBounds",value:function(o,a,s){a!=null&&(va(o,this._sortedElements.xmin),va(o,this._sortedElements.xmax),va(o,this._sortedElements.ymin),va(o,this._sortedElements.ymax),bf(o,a.t.x,this._sortedElements.xmin,!1),bf(o,a.t.x+a.t.w,this._sortedElements.xmax,!0),bf(o,a.t.y,this._sortedElements.ymin,!1),bf(o,a.t.y+a.t.h,this._sortedElements.ymax,!0),s!==!0&&this._recalculateBounds())}},{key:"_recalculateBounds",value:function(){this._bounds.minx=this._sortedElements.xmin.length>0?this._sortedElements.xmin[0][1]:0,this._bounds.maxx=this._sortedElements.xmax.length>0?this._sortedElements.xmax[0][1]:0,this._bounds.miny=this._sortedElements.ymin.length>0?this._sortedElements.ymin[0][1]:0,this._bounds.maxy=this._sortedElements.ymax.length>0?this._sortedElements.ymax[0][1]:0}},{key:"recomputeBounds",value:function(){var o=this;this._sortedElements.xmin.length=0,this._sortedElements.xmax.length=0,this._sortedElements.ymin.length=0,this._sortedElements.ymax.length=0,this._elementMap.forEach(function(a,s){o._sortedElements.xmin.push([s,a.t.x]),o._sortedElements.xmax.push([s,a.t.x+a.t.w]),o._sortedElements.ymin.push([s,a.t.y]),o._sortedElements.ymax.push([s,a.t.y+a.t.h])}),this._sortedElements.xmin.sort(wf),this._sortedElements.ymin.sort(wf),this._sortedElements.xmax.sort(BC),this._sortedElements.ymax.sort(BC),this._recalculateBounds()}},{key:"_finaliseUpdate",value:function(o,a,s){a.t=sG(a.x,a.y,a.w,a.h,a.r),this._transformedElementMap.set(o,a.t),s!==!0&&this._updateBounds(o,a,s)}},{key:"shouldFireEvent",value:function(o,a,s){return!0}},{key:"startTransaction",value:function(){if(this._currentTransaction!=null)throw new Error("Viewport: cannot start transaction; a transaction is currently active.");this._currentTransaction=new aG}},{key:"endTransaction",value:function(){var o=this;this._currentTransaction!=null&&(this._currentTransaction.affectedElements.forEach(function(a){var s=o.getPosition(a);o._finaliseUpdate(a,s,!0)}),this.recomputeBounds(),this._currentTransaction=null)}},{key:"updateElements",value:function(o){var a=this;Ke(o,function(s){return a.updateElement(s.id,s.x,s.y,s.width,s.height,s.rotation)})}},{key:"updateElement",value:function(o,a,s,l,c,u,f){var d=LE(this._elementMap,o,NC);return d.dirty=a==null&&d.x==null||s==null&&d.y==null||l==null&&d.w==null||c==null&&d.h==null,a!=null&&(d.x=a),s!=null&&(d.y=s),l!=null&&(d.w=l),c!=null&&(d.h=c),u!=null&&(d.r=u||0),d.c.x=d.x+d.w/2,d.c.y=d.y+d.h/2,d.x2=d.x+d.w,d.y2=d.y+d.h,this._currentTransaction==null?this._finaliseUpdate(o,d,f):this._currentTransaction.affectedElements.add(o),d}},{key:"refreshElement",value:function(o,a){var s=this.instance.getManagedElements(),l=s[o]?s[o].el:null;if(l!=null){var c=this.getSize(l),u=this.getOffset(l);return this.updateElement(o,u.x,u.y,c.w,c.h,null,a)}else return null}},{key:"getSize",value:function(o){return this.instance.getSize(o)}},{key:"getOffset",value:function(o){return this.instance.getOffset(o)}},{key:"registerElement",value:function(o,a){return this.updateElement(o,0,0,0,0,0,a)}},{key:"addElement",value:function(o,a,s,l,c,u){return this.updateElement(o,a,s,l,c,u)}},{key:"rotateElement",value:function(o,a){var s=LE(this._elementMap,o,NC);return s.r=a||0,this._finaliseUpdate(o,s),s}},{key:"getBoundsWidth",value:function(){return this._bounds.maxx-this._bounds.minx}},{key:"getBoundsHeight",value:function(){return this._bounds.maxy-this._bounds.miny}},{key:"getX",value:function(){return this._bounds.minx}},{key:"getY",value:function(){return this._bounds.miny}},{key:"setSize",value:function(o,a,s){if(this._elementMap.has(o))return this.updateElement(o,null,null,a,s,null)}},{key:"setPosition",value:function(o,a,s){if(this._elementMap.has(o))return this.updateElement(o,a,s,null,null,null)}},{key:"reset",value:function(){this._sortedElements.xmin.length=0,this._sortedElements.xmax.length=0,this._sortedElements.ymin.length=0,this._sortedElements.ymax.length=0,this._elementMap.clear(),this._transformedElementMap.clear(),this._recalculateBounds()}},{key:"remove",value:function(o){va(o,this._sortedElements.xmin),va(o,this._sortedElements.xmax),va(o,this._sortedElements.ymin),va(o,this._sortedElements.ymax),this._elementMap.delete(o),this._transformedElementMap.delete(o),this._recalculateBounds()}},{key:"getPosition",value:function(o){return this._elementMap.get(o)}},{key:"getElements",value:function(){return this._elementMap}},{key:"isEmpty",value:function(){return this._elementMap.size===0}}]),n}(Kl),Oi;function lG(e,t,n,r,o){for(var a=n?e.w:e.h,s=n?e.h:e.w,l=[],c=a/(t.length+1),u=0;u<t.length;u++){var f=(u+1)*c,d=r*s;o&&(f=a-f);var h=n?f:d,p=e.x+h,g=h/e.w,v=n?d:f,m=e.y+v,y=v/e.h;if(e.r!==0&&e.r!=null){var E=nf({x:p,y:m},e.c,e.r);p=E.x,m=E.y}l.push({x:p,y:m,xLoc:g,yLoc:y,c:t[u].c})}return l}function RC(e,t){return t.theta-e.theta}function MC(e,t){var n=e.theta<0?-Math.PI-e.theta:Math.PI-e.theta,r=t.theta<0?-Math.PI-t.theta:Math.PI-t.theta;return n-r}var cG=(Oi={},F(Oi,Zt,MC),F(Oi,Sn,RC),F(Oi,Gn,RC),F(Oi,In,MC),Oi);function ga(e){return e.isContinuous===!0}function LC(e){return e.isContinuous===!0}function uG(e){return e.locations.length>1}function VC(e){return[e.currentLocation,e.locations[e.currentLocation]]}var fG=function(){function e(t){var n=this;Et(this,e),this.instance=t,F(this,"anchorLists",new Map),F(this,"anchorLocations",new Map),t.bind(jp,function(r){r.sourceEndpoint._anchor.isContinuous&&n._removeEndpointFromAnchorLists(r.sourceEndpoint),r.targetEndpoint._anchor.isContinuous&&n._removeEndpointFromAnchorLists(r.targetEndpoint)}),t.bind(iC,function(r){n._removeEndpointFromAnchorLists(r)})}return Vt(e,[{key:"getAnchorOrientation",value:function(n){var r=this.anchorLocations.get(n.id);return r?[r.ox,r.oy]:[0,0]}},{key:"_distance",value:function(n,r,o,a,s,l,c){var u=a.x+n.x*s.w,f=a.y+n.y*s.h,d=a.x+s.w/2,h=a.y+s.h/2;if(l!=null&&l.length>0){var p=this.instance._applyRotations([u,f,0,0],l);u=p.x,f=p.y}return Math.sqrt(Math.pow(r-u,2)+Math.pow(o-f,2))+Math.sqrt(Math.pow(d-u,2)+Math.pow(h-f,2))}},{key:"_anchorSelector",value:function(n,r,o,a,s,l,c){for(var u=o.x+a.w/2,f=o.y+a.h/2,d=-1,h=1/0,p=0;p<c.length;p++){var g=this._distance(c[p],u,f,n,r,s,l);g<h&&(d=p+0,h=g)}return[d,c[d]]}},{key:"_floatingAnchorCompute",value:function(n,r){var o=r.xy,a={curX:o.x+n.size.w/2,curY:o.y+n.size.h/2,x:0,y:0,ox:0,oy:0};return this._setComputedPosition(n,a)}},{key:"_setComputedPosition",value:function(n,r,o){return this.anchorLocations.set(n.id,r),n.computedPosition=r,o&&(n.timestamp=o),r}},{key:"_computeSingleLocation",value:function(n,r,o,a){var s,l=a.rotation,c={curX:r.x+n.x*o.w+n.offx,curY:r.y+n.y*o.h+n.offy,x:n.x,y:n.y,ox:0,oy:0};if(l!=null&&l.length>0){var u=[n.iox,n.ioy],f={x:c.curX,y:c.curY,cr:0,sr:0};Ke(l,function(d){f=nf(f,d.c,d.r);var h=[Math.round(u[0]*f.cr-u[1]*f.sr),Math.round(u[1]*f.cr+u[0]*f.sr)];u=h.slice()}),n.ox=u[0],n.oy=u[1],s={curX:f.x,curY:f.y,x:n.x,y:n.y,ox:u[0],oy:u[1]}}else n.ox=n.iox,n.oy=n.ioy,s=Xe({ox:n.iox,oy:n.ioy},c);return s}},{key:"_singleAnchorCompute",value:function(n,r){var o=r.xy,a=r.wh,s=r.timestamp,l=this.anchorLocations.get(n.id);if(l!=null&&s&&s===n.timestamp)return l;var c=VC(n),u=Np(c,2);u[0];var f=u[1];return l=this._computeSingleLocation(f,o,a,r),this._setComputedPosition(n,l,s)}},{key:"_defaultAnchorCompute",value:function(n,r){var o;if(n.locations.length===1)return this._singleAnchorCompute(n,r);var a=r.xy,s=r.wh,l=r.txy,c=r.twh,u=VC(n),f=Np(u,2),d=f[0],h=f[1];if(n.locked||l==null||c==null)o=this._computeSingleLocation(h,a,s,r);else{var p=this._anchorSelector(a,s,l,c,r.rotation,r.tRotation,n.locations),g=Np(p,2),v=g[0],m=g[1];n.currentLocation=v,v!==d&&(n.cssClass=m.cls||n.cssClass,r.element._anchorLocationChanged(n)),o=this._computeSingleLocation(m,a,s,r)}return this._setComputedPosition(n,o,r.timestamp)}},{key:"_placeAnchors",value:function(n,r){var o=this,a=this.instance.viewport.getPosition(n),s=function(c,u,f,d,h,p){if(f.length>0)for(var g=f.sort(cG[c]),v=c===Sn||c===Zt,m=lG(a,g,d,h,v),y=0;y<m.length;y++){var E=m[y].c,x=E.endpoints[0].elementId===n,C=x?E.endpoints[0]:E.endpoints[1];o._setComputedPosition(C._anchor,{curX:m[y].x,curY:m[y].y,x:m[y].xLoc,y:m[y].yLoc,ox:p[0],oy:p[1]})}};s(Gn,a,r.bottom,!0,1,[0,1]),s(Zt,a,r.top,!0,0,[0,-1]),s(In,a,r.left,!1,0,[-1,0]),s(Sn,a,r.right,!1,1,[1,0])}},{key:"_updateAnchorList",value:function(n,r,o,a,s,l,c,u,f,d,h){var p=a.endpoints[c],g=p.id,v=[1,0][c],m={theta:r,order:o,c:a,b:s,elId:l,epId:g},y=n[f],E=p._continuousAnchorEdge?n[p._continuousAnchorEdge]:null,x;if(E){var C=ca(E,function(T){return T.epId===g});if(C!==-1){E.splice(C,1);for(var A=0;A<E.length;A++)x=E[A].c,x.placeholder!==!0&&d.add(x),h.add(E[A].c.endpoints[c]),h.add(E[A].c.endpoints[v])}}for(var w=0;w<y.length;w++)x=y[w].c,x.placeholder!==!0&&d.add(x),h.add(y[w].c.endpoints[c]),h.add(y[w].c.endpoints[v]);{var b=u?0:y.length;y.splice(b,0,m)}p._continuousAnchorEdge=f}},{key:"_removeEndpointFromAnchorLists",value:function(n){var r=this.anchorLists.get(n.elementId),o=0;(function(a,s){if(a){var l=function(u){return u.epId===s};hn(a.top,l),hn(a.left,l),hn(a.bottom,l),hn(a.right,l),o+=a.top.length,o+=a.left.length,o+=a.bottom.length,o+=a.right.length}})(r,n.id),o===0&&this.anchorLists.delete(n.elementId),this.anchorLocations.delete(n._anchor.id)}},{key:"computeAnchorLocation",value:function(n,r){var o;return ga(n)?o=this.anchorLocations.get(n.id)||{curX:0,curY:0,x:0,y:0,ox:0,oy:0}:LC(n)?o=this._floatingAnchorCompute(n,r):o=this._defaultAnchorCompute(n,r),n.timestamp=r.timestamp,o}},{key:"computePath",value:function(n,r){var o=this.instance.viewport.getPosition(n.sourceId),a=this.instance.viewport.getPosition(n.targetId),s=n.endpoints[0],l=n.endpoints[1],c=this.getEndpointLocation(s,{xy:o,wh:o,element:s,timestamp:r,rotation:this.instance._getRotations(n.sourceId)}),u=this.getEndpointLocation(l,{xy:a,wh:a,element:l,timestamp:r,rotation:this.instance._getRotations(n.targetId)});n.connector.resetBounds(),n.connector.compute({sourcePos:c,targetPos:u,sourceEndpoint:n.endpoints[0],targetEndpoint:n.endpoints[1],strokeWidth:n.paintStyleInUse.strokeWidth,sourceInfo:o,targetInfo:a})}},{key:"getEndpointLocation",value:function(n,r){r=r||{};var o=n._anchor,a=this.anchorLocations.get(o.id);return(a==null||r.timestamp!=null&&o.timestamp!==r.timestamp)&&(a=this.computeAnchorLocation(o,r),this._setComputedPosition(o,a,r.timestamp)),a}},{key:"getEndpointOrientation",value:function(n){return n._anchor?this.getAnchorOrientation(n._anchor):[0,0]}},{key:"setAnchorOrientation",value:function(n,r){var o=this.anchorLocations.get(n.id);o!=null&&(o.ox=r[0],o.oy=r[1])}},{key:"isDynamicAnchor",value:function(n){return n._anchor?!ga(n._anchor)&&n._anchor.locations.length>1:!1}},{key:"isFloating",value:function(n){return n._anchor?LC(n._anchor):!1}},{key:"prepareAnchor",value:function(n){return Zl(n)}},{key:"redraw",value:function(n,r,o){var a=this,s=new Set,l=new Set,c=new Set;if(!this.instance._suspendDrawing){var u=this.instance.endpointsByElement[n]||[];r=r||pn();for(var f={},d,h,p=0;p<u.length;p++)if(h=u[p],l.add(h),d=h._anchor,h.connections.length===0)ga(d)&&(this.anchorLists.has(n)||this.anchorLists.set(n,{top:[],right:[],bottom:[],left:[]}),this._updateAnchorList(this.anchorLists.get(n),-Math.PI/2,0,{endpoints:[h,h],placeholder:!0},!1,n,0,!1,Rj(d),s,l),c.add(n));else for(var g=0;g<h.connections.length;g++){var v=h.connections[g],m=v.sourceId,y=v.targetId,E=ga(v.endpoints[0]._anchor),x=ga(v.endpoints[1]._anchor);if(E||x){var C=(v.endpoints[0]._anchor.faces||[]).join("-"),A=(v.endpoints[1]._anchor.faces||[]).join("-"),w=[m,C,y,A].join("-"),b=f[w],T=v.sourceId===n?1:0;E&&!this.anchorLists.has(m)&&this.anchorLists.set(m,{top:[],right:[],bottom:[],left:[]}),x&&!this.anchorLists.has(y)&&this.anchorLists.set(y,{top:[],right:[],bottom:[],left:[]});var S=this.instance.viewport.getPosition(y),_=this.instance.viewport.getPosition(m);if(y===m&&(E||x))this._updateAnchorList(this.anchorLists.get(m),-Math.PI/2,0,v,!1,y,0,!1,Zt,s,l),this._updateAnchorList(this.anchorLists.get(y),-Math.PI/2,0,v,!1,m,1,!1,Zt,s,l);else{var I=this.instance._getRotations(m),H=this.instance._getRotations(y);b||(b=this._calculateOrientation(m,y,_,S,v.endpoints[0]._anchor,v.endpoints[1]._anchor,I,H),f[w]=b),E&&this._updateAnchorList(this.anchorLists.get(m),b.theta,0,v,!1,y,0,!1,b.a[0],s,l),x&&this._updateAnchorList(this.anchorLists.get(y),b.theta2,-1,v,!0,m,1,!0,b.a[1],s,l)}E&&c.add(m),x&&c.add(y),s.add(v),(E&&T===0||x&&T===1)&&l.add(v.endpoints[T])}else{var B=h.connections[g].endpoints[v.sourceId===n?1:0],j=B._anchor;if(uG(j)){this.instance._paintEndpoint(B,{elementWithPrecedence:n,timestamp:r}),s.add(h.connections[g]);for(var Z=0;Z<B.connections.length;Z++)B.connections[Z]!==h.connections[g]&&s.add(B.connections[Z])}else s.add(h.connections[g])}}c.forEach(function(q){a._placeAnchors(q,a.anchorLists.get(q))}),l.forEach(function(q){var K=a.instance.viewport.getPosition(q.elementId);a.instance._paintEndpoint(q,{timestamp:r,offset:K})}),s.forEach(function(q){a.instance._paintConnection(q,{timestamp:r})})}return{c:s,e:l}}},{key:"reset",value:function(){this.anchorLocations.clear(),this.anchorLists.clear()}},{key:"setAnchor",value:function(n,r){r!=null&&(n._anchor=r)}},{key:"setConnectionAnchors",value:function(n,r){n.endpoints[0]._anchor=r[0],n.endpoints[1]._anchor=r[1]}},{key:"_calculateOrientation",value:function(n,r,o,a,s,l,c,u){var f=this,d={HORIZONTAL:"horizontal",VERTICAL:"vertical",DIAGONAL:"diagonal",IDENTITY:"identity"};if(n===r)return{orientation:d.IDENTITY,a:[Zt,Zt]};var h=Math.atan2(a.c.y-o.c.y,a.c.x-o.c.x),p=Math.atan2(o.c.y-a.c.y,o.c.x-a.c.x),g=[],v={};(function(w,b){for(var T=0;T<w.length;T++){var S;if(v[w[T]]=(S={},F(S,In,{x:b[T][0].x,y:b[T][0].c.y}),F(S,Sn,{x:b[T][0].x+b[T][0].w,y:b[T][0].c.y}),F(S,Zt,{x:b[T][0].c.x,y:b[T][0].y}),F(S,Gn,{x:b[T][0].c.x,y:b[T][0].y+b[T][0].h}),S),b[T][1]!=null&&b[T][1].length>0)for(var _ in v[w[T]])v[w[T]][_]=f.instance._applyRotationsXY(v[w[T]][_],b[T][1])}})([Lp,$E],[[o,c],[a,u]]);for(var m=[Zt,In,Sn,Gn],y=0;y<m.length;y++)for(var E=0;E<m.length;E++)g.push({source:m[y],target:m[E],dist:_p(v.source[m[y]],v.target[m[E]])});g.sort(function(w,b){if(w.dist<b.dist)return-1;if(b.dist<w.dist)return 1;var T,S=(T={},F(T,In,0),F(T,Zt,1),F(T,Sn,2),F(T,Gn,3),T),_=S[w.source],I=S[b.source],H=S[w.target],B=S[b.target];return _<I?-1:I<_?1:H<B?-1:B<H?1:0});for(var x=g[0].source,C=g[0].target,A=0;A<g.length&&(ga(s)&&s.locked?x=s.currentFace:!s.isContinuous||wC(s,g[A].source)?x=g[A].source:x=null,l.isContinuous&&l.locked?C=l.currentFace:!l.isContinuous||wC(l,g[A].target)?C=g[A].target:C=null,!(x!=null&&C!=null));A++);return s.isContinuous&&this.setCurrentFace(s,x),l.isContinuous&&this.setCurrentFace(l,C),{a:[x,C],theta:h,theta2:p}}},{key:"setCurrentFace",value:function(n,r,o){n.currentFace=r,o&&n.lockedFace!=null&&(n.lockedFace=n.currentFace)}},{key:"lock",value:function(n){n.locked=!0,ga(n)&&(n.lockedFace=n.currentFace)}},{key:"unlock",value:function(n){n.locked=!1,ga(n)&&(n.lockedFace=null)}},{key:"selectAnchorLocation",value:function(n,r){var o=ca(n.locations,function(a){return a.x===r.x&&a.y===r.y});return o!==-1?(n.currentLocation=o,!0):!1}},{key:"lockCurrentAxis",value:function(n){n.currentFace!=null&&(n.lockedAxis=n.currentFace===In||n.currentFace===Sn?Fj:Nj)}},{key:"unlockCurrentAxis",value:function(n){n.lockedAxis=null}},{key:"anchorsEqual",value:function(n,r){if(!n||!r)return!1;var o=n.locations[n.currentLocation],a=r.locations[r.currentLocation];return o.x===a.x&&o.y===a.y&&o.offx===a.offx&&o.offy===a.offy&&o.ox===a.ox&&o.oy===a.oy}}]),e}(),HC=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Et(this,e),this.selector=t,this.def=n,this.exclude=r,F(this,"id",void 0),F(this,"redrop",void 0),this.id=pn(),this.redrop=n.def.redrop||UC}return Vt(e,[{key:"setEnabled",value:function(n){this.def.enabled=n}},{key:"isEnabled",value:function(){return this.def.enabled!==!1}}]),e}(),UC="strict",dG="any",hG="anySource",pG="anyTarget",vG="anySourceOrTarget";function gG(e,t){for(var n=e.scope.split(/\s/),r=t.scope.split(/\s/),o=0;o<n.length;o++)for(var a=0;a<r.length;a++)if(r[a]===n[o])return!0;return!1}function ls(e,t,n){var r=[],o=function(l){return Xt(l)?l:e.getId(l)};if(t)if(typeof t=="string"){if(t==="*")return t;r.push(t)}else if(n)r=t;else if(t.length!=null){var a;(a=r).push.apply(a,cf(cf(t).map(o)))}else r.push(o(t));return r}function mG(e,t){e!=null&&e.endpoints.push(t)}function yG(e,t){e!=null&&hn(e.endpoints,function(n){return n===t})}function Af(e,t,n){t!=null&&(t.connections.push(e),t.connections.length===1&&e.instance.addClass(e.source,e.instance.connectedClass)),n!=null&&(t==null||e.sourceId!==e.targetId)&&(n.connections.push(e),n.connections.length===1&&e.instance.addClass(e.target,e.instance.connectedClass))}function Sf(e,t,n){if(t!=null){var r=t.connections.length;hn(t.connections,function(a){return e.id===a.id}),r>0&&t.connections.length===0&&e.instance.removeClass(e.source,e.instance.connectedClass)}if(n!=null){var o=n.connections.length;(t==null||e.sourceId!==e.targetId)&&hn(n.connections,function(a){return e.id===a.id}),o>0&&n.connections.length===0&&e.instance.removeClass(e.target,e.instance.connectedClass)}}var xG=function(e){on(n,e);var t=rn(n);function n(r,o){var a;return Et(this,n),a=t.call(this),a._instanceIndex=r,F(Y(a),"defaults",void 0),F(Y(a),"_initialDefaults",{}),F(Y(a),"isConnectionBeingDragged",!1),F(Y(a),"currentlyDragging",!1),F(Y(a),"hoverSuspended",!1),F(Y(a),"_suspendDrawing",!1),F(Y(a),"_suspendedAt",null),F(Y(a),"connectorClass",Hp),F(Y(a),"connectorOutlineClass",KU),F(Y(a),"connectedClass",YU),F(Y(a),"endpointClass",xi),F(Y(a),"endpointConnectedClass",XU),F(Y(a),"endpointFullClass",QU),F(Y(a),"endpointFloatingClass",Up),F(Y(a),"endpointDropAllowedClass",JU),F(Y(a),"endpointDropForbiddenClass",ZU),F(Y(a),"endpointAnchorClassPrefix",qU),F(Y(a),"overlayClass",mf),F(Y(a),"connections",[]),F(Y(a),"endpointsByElement",{}),F(Y(a),"endpointsByUUID",new Map),F(Y(a),"sourceSelectors",[]),F(Y(a),"targetSelectors",[]),F(Y(a),"allowNestedGroups",void 0),F(Y(a),"_curIdStamp",1),F(Y(a),"viewport",new iG(Y(a))),F(Y(a),"router",void 0),F(Y(a),"groupManager",void 0),F(Y(a),"_connectionTypes",new Map),F(Y(a),"_endpointTypes",new Map),F(Y(a),"_container",void 0),F(Y(a),"_managedElements",{}),F(Y(a),"DEFAULT_SCOPE",void 0),F(Y(a),"_zoom",1),a.defaults={anchor:hi.Bottom,anchors:[null,null],connectionsDetachable:!0,connectionOverlays:[],connector:hf.type,container:null,endpoint:mi.type,endpointOverlays:[],endpoints:[null,null],endpointStyle:{fill:"#456"},endpointStyles:[null,null],endpointHoverStyle:null,endpointHoverStyles:[null,null],hoverPaintStyle:null,listStyle:{},maxConnections:1,paintStyle:{strokeWidth:2,stroke:"#456"},reattachConnections:!1,scope:"jsplumb_defaultscope",allowNestedGroups:!0},o&&Xe(a.defaults,o),Xe(a._initialDefaults,a.defaults),a._initialDefaults[Ci]!=null&&(a._initialDefaults[Ci].strokeWidth=a._initialDefaults[Ci].strokeWidth||2),a.DEFAULT_SCOPE=a.defaults[bj],a.allowNestedGroups=a._initialDefaults[wj]!==!1,a.router=new fG(Y(a)),a.groupManager=new nG(Y(a)),a.setContainer(a._initialDefaults.container),a}return Vt(n,[{key:"defaultScope",get:function(){return this.DEFAULT_SCOPE}},{key:"currentZoom",get:function(){return this._zoom}},{key:"areDefaultAnchorsSet",value:function(){return this.validAnchorsSpec(this.defaults.anchors)}},{key:"validAnchorsSpec",value:function(o){return o!=null&&o[0]!=null&&o[1]!=null}},{key:"getContainer",value:function(){return this._container}},{key:"setZoom",value:function(o,a){return this._zoom=o,this.fire(cC,this._zoom),a&&this.repaintEverything(),!0}},{key:"_idstamp",value:function(){return""+this._curIdStamp++}},{key:"checkCondition",value:function(o,a){var s=this.getListener(o),l=!0;if(s&&s.length>0){var c=Array.prototype.slice.call(arguments,1);try{for(var u=0,f=s.length;u<f;u++)l=l&&s[u].apply(s[u],c)}catch(d){ln("cannot check condition ["+o+"]"+d)}}return l}},{key:"getId",value:function(o,a){if(o==null)return null;var s=this.getAttribute(o,da);return(!s||s==="undefined")&&(arguments.length===2&&arguments[1]!==void 0?s=a:(arguments.length===1||arguments.length===3&&!arguments[2])&&(s="jsplumb-"+this._instanceIndex+"-"+this._idstamp()),this.setAttribute(o,da,s)),s}},{key:"getConnections",value:function(o,a){o?o.constructor===String&&(o={scope:o}):o={};for(var s=o.scope||this.defaultScope,l=ls(this,s,!0),c=ls(this,o.source),u=ls(this,o.target),f=!a&&l.length>1?{}:[],d=function(E,x){if(!a&&l.length>1){var C=f[E];C==null&&(C=f[E]=[]),C.push(x)}else f.push(x)},h=0,p=this.connections.length;h<p;h++){var g=this.connections[h],v=g.proxies&&g.proxies[0]?g.proxies[0].originalEp.elementId:g.sourceId,m=g.proxies&&g.proxies[1]?g.proxies[1].originalEp.elementId:g.targetId;es(l,g.scope)&&es(c,v)&&es(u,m)&&d(g.scope,g)}return f}},{key:"select",value:function(o){return o=o||{},o.scope=o.scope||"*",new rG(this,o.connections||this.getConnections(o,!0))}},{key:"selectEndpoints",value:function(o){o=o||{},o.scope=o.scope||rs;var a=!o.element&&!o.source&&!o.target,s=a?rs:ls(this,o.element),l=a?rs:ls(this,o.source),c=a?rs:ls(this,o.target),u=ls(this,o.scope,!0),f=[];for(var d in this.endpointsByElement){var h=es(s,d,!0),p=es(l,d,!0),g=l!=="*",v=es(c,d,!0),m=c!=="*";if(h||p||v)e:for(var y=0,E=this.endpointsByElement[d].length;y<E;y++){var x=this.endpointsByElement[d][y];if(es(u,x.scope,!0)){var C=g&&l.length>0&&!x.isSource,A=m&&c.length>0&&!x.isTarget;if(C||A)continue e;f.push(x)}}}return new oG(this,f)}},{key:"setContainer",value:function(o){this._container=o,this.fire(nj,this._container)}},{key:"_set",value:function(o,a,s){var l=[{el:"source",elId:"sourceId"},{el:"target",elId:"targetId"}],c,u=l[s],f=o[u.elId],d,h=o.endpoints[s],p={index:s,originalEndpoint:h,originalSourceId:s===0?f:o.sourceId,newSourceId:o.sourceId,originalTargetId:s===1?f:o.targetId,newTargetId:o.targetId,connection:o,newEndpoint:h};return a instanceof ki?(c=a,c.addConnection(o)):(d=this.getId(a),d===o[u.elId]?c=null:c=o.makeEndpoint(s===0,a,d)),c!=null&&(p.newEndpoint=c,h.detachFromConnection(o),o.endpoints[s]=c,o[u.el]=c.element,o[u.elId]=c.elementId,p[s===0?"newSourceId":"newTargetId"]=c.elementId,this.fireMoveEvent(p),this._paintConnection(o)),p}},{key:"setSource",value:function(o,a){Sf(o,this._managedElements[o.sourceId]);var s=this._set(o,a,0);Af(o,this._managedElements[s.newSourceId])}},{key:"setTarget",value:function(o,a){Sf(o,this._managedElements[o.targetId]);var s=this._set(o,a,1);Af(o,this._managedElements[s.newTargetId])}},{key:"setConnectionType",value:function(o,a,s){o.setType(a,s),this._paintConnection(o)}},{key:"isHoverSuspended",value:function(){return this.hoverSuspended}},{key:"setSuspendDrawing",value:function(o,a){var s=this._suspendDrawing;return this._suspendDrawing=o,o?this._suspendedAt=""+new Date().getTime():(this._suspendedAt=null,this.viewport.recomputeBounds()),a&&this.repaintEverything(),s}},{key:"getSuspendedAt",value:function(){return this._suspendedAt}},{key:"batch",value:function(o,a){var s=this._suspendDrawing===!0;s||this.setSuspendDrawing(!0),o(),s||this.setSuspendDrawing(!1,!a)}},{key:"each",value:function(o,a){if(o!=null){if(o.length!=null)for(var s=0;s<o.length;s++)a(o[s]);else a(o);return this}}},{key:"updateOffset",value:function(o){var a=o.elId;return o.recalc?this.viewport.refreshElement(a):this.viewport.getPosition(a)}},{key:"deleteConnection",value:function(o,a){if(o!=null&&o.deleted!==!0&&(a=a||{},a.force||FE(!0,!1,[[o.endpoints[0],Ei,[o]],[o.endpoints[1],Ei,[o]],[o,Ei,[o]],[this,rC,[uC,o]]]))){Sf(o,this._managedElements[o.sourceId],this._managedElements[o.targetId]),this.fireDetachEvent(o,!o.pending&&a.fireEvent!==!1,a.originalEvent);var s=o.endpoints[0],l=o.endpoints[1];return s!==a.endpointToIgnore&&s.detachFromConnection(o,null,!0),l!==a.endpointToIgnore&&l.detachFromConnection(o,null,!0),hn(this.connections,function(c){return o.id===c.id}),o.destroy(),s!==a.endpointToIgnore&&s.deleteOnEmpty&&s.connections.length===0&&this.deleteEndpoint(s),l!==a.endpointToIgnore&&l.deleteOnEmpty&&l.connections.length===0&&this.deleteEndpoint(l),!0}return!1}},{key:"deleteEveryConnection",value:function(o){var a=this;o=o||{};var s=this.connections.length,l=0;return this.batch(function(){for(var c=0;c<s;c++)l+=a.deleteConnection(a.connections[0],o)?1:0}),l}},{key:"deleteConnectionsForElement",value:function(o,a){var s=this.getId(o),l=this._managedElements[s];if(l)for(var c=l.connections.length,u=0;u<c;u++)this.deleteConnection(l.connections[0],a);return this}},{key:"fireDetachEvent",value:function(o,a,s){var l=o.id!=null,c=l?{connection:o,source:o.source,target:o.target,sourceId:o.sourceId,targetId:o.targetId,sourceEndpoint:o.endpoints[0],targetEndpoint:o.endpoints[1]}:o;a&&this.fire(tj,c,s),this.fire(jp,c,s)}},{key:"fireMoveEvent",value:function(o,a){this.fire(sC,o,a)}},{key:"manageAll",value:function(o,a){for(var s=Xt(o)?this.getSelector(this.getContainer(),o):o,l=0;l<s.length;l++)this.manage(s[l],null,a)}},{key:"manage",value:function(o,a,s){this.getAttribute(o,da)==null&&(a=a||this.getAttribute(o,"id")||pn(),this.setAttribute(o,da,a));var l=this.getId(o);if(this._managedElements[l])s&&(this._managedElements[l].viewportElement=this.updateOffset({elId:l,timestamp:null,recalc:!0}));else{var c={el:o,endpoints:[],connections:[],rotation:0,data:{}};this._managedElements[l]=c,this._suspendDrawing?c.viewportElement=this.viewport.registerElement(l,!0):c.viewportElement=this.updateOffset({elId:l,recalc:!0}),this.fire(rj,{el:o})}return this._managedElements[l]}},{key:"getManagedData",value:function(o,a,s){if(this._managedElements[o]){var l=this._managedElements[o].data[a];return l!=null?l[s]:null}}},{key:"setManagedData",value:function(o,a,s,l){this._managedElements[o]&&(this._managedElements[o].data[a]=this._managedElements[o].data[a]||{},this._managedElements[o].data[a][s]=l)}},{key:"getManagedElement",value:function(o){return this._managedElements[o]?this._managedElements[o].el:null}},{key:"unmanage",value:function(o,a){var s=this;this.removeAllEndpoints(o,!0);var l=function(u){var f=s.getId(u);s.removeAttribute(u,da),delete s._managedElements[f],s.viewport.remove(f),s.fire(hj,{el:u,id:f}),u&&a&&s._removeElement(u)};this._getAssociatedElements(o).map(l),l(o)}},{key:"rotate",value:function(o,a,s){var l=this.getId(o);return this._managedElements[l]&&(this._managedElements[l].rotation=a,this.viewport.rotateElement(l,a),s!==!0)?this.revalidate(o):{c:new Set,e:new Set}}},{key:"_getRotation",value:function(o){var a=this._managedElements[o];return a!=null&&a.rotation||0}},{key:"_getRotations",value:function(o){var a=this,s=[],l=this._managedElements[o],c=function u(f){if(f.group!=null){var d=a._managedElements[f.group];d!=null&&(s.push({r:d.viewportElement.r,c:d.viewportElement.c}),u(d))}};return l!=null&&(s.push({r:l.viewportElement.r||0,c:l.viewportElement.c}),c(l)),s}},{key:"_applyRotations",value:function(o,a){var s=o.slice(),l={x:s[0],y:s[1],cr:0,sr:0};return Ke(a,function(c){l=nf(l,c.c,c.r)}),l}},{key:"_applyRotationsXY",value:function(o,a){return Ke(a,function(s){o=nf(o,s.c,s.r)}),o}},{key:"_internal_newEndpoint",value:function(o){var a=Xe({},o),s=this.manage(a.element);a.elementId=this.getId(a.element),a.id="ep_"+this._idstamp();var l=new ki(this,a);return mG(s,l),o.uuid&&this.endpointsByUUID.set(o.uuid,l),RE(this.endpointsByElement,l.elementId,l),this._suspendDrawing||this._paintEndpoint(l,{timestamp:this._suspendedAt}),l}},{key:"_deriveEndpointAndAnchorSpec",value:function(o,a){for(var s=((a?"":"default ")+o).split(/[\s]/),l=null,c=null,u=null,f=null,d=0;d<s.length;d++){var h=this.getConnectionType(s[d]);h&&(h.endpoints&&(l=h.endpoints),h.endpoint&&(c=h.endpoint),h.anchors&&(f=h.anchors),h.anchor&&(u=h.anchor))}return{endpoints:l||[c,c],anchors:f||[u,u]}}},{key:"revalidate",value:function(o,a){var s=this.getId(o);return this.updateOffset({elId:s,recalc:!0,timestamp:a}),this.repaint(o)}},{key:"repaintEverything",value:function(){var o=pn(),a;for(a in this._managedElements)this.viewport.refreshElement(a,!0);this.viewport.recomputeBounds();for(a in this._managedElements)this.repaint(this._managedElements[a].el,o,!0);return this}},{key:"setElementPosition",value:function(o,a,s){var l=this.getId(o);return this.viewport.setPosition(l,a,s),this.repaint(o)}},{key:"repaint",value:function(o,a,s){var l={c:new Set,e:new Set},c=function(g){g.c.forEach(function(v){return l.c.add(v)}),g.e.forEach(function(v){return l.e.add(v)})};if(!this._suspendDrawing){var u=this.getId(o);if(o!=null){var f=this._getAssociatedElements(o);if(a==null&&(a=pn()),!s)for(var d=0;d<f.length;d++)this.updateOffset({elId:this.getId(f[d]),recalc:!0,timestamp:a});if(c(this.router.redraw(u,a,null)),f.length>0)for(var h=0;h<f.length;h++)c(this.router.redraw(this.getId(f[h]),a,null))}}return l}},{key:"unregisterEndpoint",value:function(o){var a=o.getUuid();a&&this.endpointsByUUID.delete(a),yG(this._managedElements[o.elementId],o);var s=this.endpointsByElement[o.elementId];s!=null&&(this.endpointsByElement[o.elementId]=s.filter(function(l){return l!==o})),this.fire(iC,o)}},{key:"_maybePruneEndpoint",value:function(o){return o.deleteOnEmpty&&o.connections.length===0?(this.deleteEndpoint(o),!0):!1}},{key:"deleteEndpoint",value:function(o){var a=this,s=typeof o=="string"?this.endpointsByUUID.get(o):o;if(s){var l=s.proxiedBy,c=s.connections.slice();Ke(c,function(u){s.detachFromConnection(u,null,!0)}),this.unregisterEndpoint(s),s.destroy(),Ke(c,function(u){a.deleteConnection(u,{force:!0,endpointToIgnore:s})}),l!=null&&this.deleteEndpoint(l)}return this}},{key:"addEndpoint",value:function(o,a,s){s=s||{};var l=Xe({},s);Xe(l,a||{});var c=Xe({element:o},l);return this._internal_newEndpoint(c)}},{key:"addEndpoints",value:function(o,a,s){for(var l=[],c=0,u=a.length;c<u;c++)l.push(this.addEndpoint(o,a[c],s));return l}},{key:"reset",value:function(){var o=this;this.silently(function(){o.endpointsByElement={},o._managedElements={},o.endpointsByUUID.clear(),o.viewport.reset(),o.router.reset(),o.groupManager.reset(),o.connections.length=0})}},{key:"destroy",value:function(){this.reset(),this.unbind(),this.sourceSelectors.length=0,this.targetSelectors.length=0,this._connectionTypes.clear(),this._endpointTypes.clear()}},{key:"getEndpoints",value:function(o){return this.endpointsByElement[this.getId(o)]||[]}},{key:"getEndpoint",value:function(o){return this.endpointsByUUID.get(o)}},{key:"setEndpointUuid",value:function(o,a){o.uuid&&this.endpointsByUUID.delete(o.uuid),o.uuid=a,this.endpointsByUUID.set(a,o)}},{key:"connect",value:function(o,a){try{var s=this._prepareConnectionParams(o,a),l=this._newConnection(s);return this._finaliseConnection(l,s),l}catch(c){ln(c);return}}},{key:"_prepareConnectionParams",value:function(o,a){var s=Xe({},o);a&&Xe(s,a);var l=s;if(l.source&&l.source.endpoint&&(l.sourceEndpoint=l.source),l.target&&l.target.endpoint&&(l.targetEndpoint=l.target),o.uuids&&(l.sourceEndpoint=this.getEndpoint(o.uuids[0]),l.targetEndpoint=this.getEndpoint(o.uuids[1])),l.sourceEndpoint!=null){if(l.sourceEndpoint.isFull())throw mj;if(l.type||(l.type=l.sourceEndpoint.edgeType),l.sourceEndpoint.connectorOverlays){l.overlays=l.overlays||[];for(var c=0,u=l.sourceEndpoint.connectorOverlays.length;c<u;c++)l.overlays.push(l.sourceEndpoint.connectorOverlays[c])}l.sourceEndpoint.scope&&(l.scope=l.sourceEndpoint.scope)}else if(l.source==null)throw xj;if(l.targetEndpoint!=null){if(l.targetEndpoint.isFull())throw yj}else if(l.target==null)throw Ej;if(l.sourceEndpoint&&l.targetEndpoint&&!gG(l.sourceEndpoint,l.targetEndpoint))throw"Cannot establish connection: scopes do not match";return l}},{key:"_newConnection",value:function(o){o.id="con_"+this._idstamp();var a=new ql(this,o);return Af(a,this._managedElements[a.sourceId],this._managedElements[a.targetId]),this._paintConnection(a),a}},{key:"_finaliseConnection",value:function(o,a,s){a=a||{},o.suspendedEndpoint||this.connections.push(o),o.pending=null,o.endpoints[0].isTemporarySource=!1,this.repaint(o.source);var l={connection:o,source:o.source,target:o.target,sourceId:o.sourceId,targetId:o.targetId,sourceEndpoint:o.endpoints[0],targetEndpoint:o.endpoints[1]};this.fire(aC,l,s),!a.doNotFireConnectionEvent&&a.fireEvent!==!1&&this.fire(ej,l,s)}},{key:"removeAllEndpoints",value:function(o,a){var s=this,l=function(u){var f=s.getId(u),d=s.endpointsByElement[f],h,p;if(d)for(h=0,p=d.length;h<p;h++)s.deleteEndpoint(d[h]);delete s.endpointsByElement[f]};return a&&this._getAssociatedElements(o).map(l),l(o),this}},{key:"_createSourceDefinition",value:function(o,a){var s=Xe({},a);Xe(s,o),s.edgeType=s.edgeType||lf;var l=this._deriveEndpointAndAnchorSpec(s.edgeType);s.endpoint=s.endpoint||l.endpoints[0],s.anchor=s.anchor||l.anchors[0];var c=s.maxConnections||-1,u={def:Xe({},s),uniqueEndpoint:s.uniqueEndpoint,maxConnections:c,enabled:!0,endpoint:null};return u}},{key:"addSourceSelector",value:function(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=this._createSourceDefinition(a),c=new HC(o,l,s);return this.sourceSelectors.push(c),c}},{key:"removeSourceSelector",value:function(o){hn(this.sourceSelectors,function(a){return a===o})}},{key:"removeTargetSelector",value:function(o){hn(this.targetSelectors,function(a){return a===o})}},{key:"addTargetSelector",value:function(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=this._createTargetDefinition(a),c=new HC(o,l,s);return this.targetSelectors.push(c),c}},{key:"_createTargetDefinition",value:function(o,a){var s=Xe({},a);Xe(s,o),s.edgeType=s.edgeType||lf;var l=s.maxConnections||-1,c={def:Xe({},s),uniqueEndpoint:s.uniqueEndpoint,maxConnections:l,enabled:!0,endpoint:null};return c}},{key:"show",value:function(o,a){return this._setVisible(o,Vp,a)}},{key:"hide",value:function(o,a){return this._setVisible(o,yi,a)}},{key:"_setVisible",value:function(o,a,s){var l=a===Vp,c=null;s&&(c=function(d){d.setVisible(l,!0,!0)});var u=this.getId(o);return this._operation(o,function(f){if(l&&s){var d=f.sourceId===u?1:0;f.endpoints[d].isVisible()&&f.setVisible(!0)}else f.setVisible(l)},c),this}},{key:"toggleVisible",value:function(o,a){var s=null;a&&(s=function(c){var u=c.isVisible();c.setVisible(!u)}),this._operation(o,function(l){var c=l.isVisible();l.setVisible(!c)},s)}},{key:"_operation",value:function(o,a,s){var l=this.getId(o),c=this.endpointsByElement[l];if(c&&c.length)for(var u=0,f=c.length;u<f;u++){for(var d=0,h=c[u].connections.length;d<h;d++){var p=a(c[u].connections[d]);if(p)return}s&&s(c[u])}}},{key:"registerConnectionType",value:function(o,a){if(this._connectionTypes.set(o,Xe({},a)),a.overlays){for(var s={},l=0;l<a.overlays.length;l++){var c=Gp(a.overlays[l]);s[c.options.id]=c}this._connectionTypes.get(o).overlays=s}}},{key:"registerConnectionTypes",value:function(o){for(var a in o)this.registerConnectionType(a,o[a])}},{key:"registerEndpointType",value:function(o,a){if(this._endpointTypes.set(o,Xe({},a)),a.overlays){for(var s={},l=0;l<a.overlays.length;l++){var c=Gp(a.overlays[l]);s[c.options.id]=c}this._endpointTypes.get(o).overlays=s}}},{key:"registerEndpointTypes",value:function(o){for(var a in o)this.registerEndpointType(a,o[a])}},{key:"getType",value:function(o,a){return a==="connection"?this.getConnectionType(o):this.getEndpointType(o)}},{key:"getConnectionType",value:function(o){return this._connectionTypes.get(o)}},{key:"getEndpointType",value:function(o){return this._endpointTypes.get(o)}},{key:"importDefaults",value:function(o){for(var a in o)this.defaults[a]=o[a];return this.defaults[Ci]!=null&&(this.defaults[Ci].strokeWidth=this.defaults[Ci].strokeWidth||2),o.container&&this.setContainer(o.container),this}},{key:"restoreDefaults",value:function(){return this.defaults=Xe({},this._initialDefaults),this}},{key:"getManagedElements",value:function(){return this._managedElements}},{key:"proxyConnection",value:function(o,a,s,l,c){var u=o.proxies[a]!=null,f,d=u?o.proxies[a].originalEp.elementId:o.endpoints[a].elementId,h=u?o.proxies[a].originalEp:o.endpoints[a],p=this.getId(s);o.proxies[a]?o.proxies[a].ep.elementId===p?f=o.proxies[a].ep:(o.proxies[a].ep.detachFromConnection(o,a),f=this._internal_newEndpoint({element:s,endpoint:l(o,a),anchor:c(o,a),parameters:{isProxyEndpoint:!0}})):f=this._internal_newEndpoint({element:s,endpoint:l(o,a),anchor:c(o,a),parameters:{isProxyEndpoint:!0}}),f.deleteOnEmpty=!0,o.proxies[a]={ep:f,originalEp:h},this.sourceOrTargetChanged(d,p,o,s,a),h.detachFromConnection(o,null,!0),f.connections=[o],o.endpoints[a]=f,h.proxiedBy=f,h.setVisible(!1),o.setVisible(!0),this.revalidate(s)}},{key:"unproxyConnection",value:function(o,a){if(!(o.proxies==null||o.proxies[a]==null)){var s=o.proxies[a].originalEp.element,l=o.proxies[a].originalEp.elementId,c=o.proxies[a].ep.elementId;o.endpoints[a]=o.proxies[a].originalEp,delete o.proxies[a].originalEp.proxiedBy,this.sourceOrTargetChanged(c,l,o,s,a),o.proxies[a].ep.detachFromConnection(o,null),o.proxies[a].originalEp.addConnection(o),o.isVisible()&&o.proxies[a].originalEp.setVisible(!0),o.proxies[a]=null,ca(o.proxies,function(u){return u!=null})===-1&&(o.proxies.length=0)}}},{key:"sourceOrTargetChanged",value:function(o,a,s,l,c){o!==a&&(c===0?(s.sourceId=a,s.source=l):c===1&&(s.targetId=a,s.target=l),Sf(s,this._managedElements[o]),Af(s,this._managedElements[a]))}},{key:"getGroup",value:function(o){return this.groupManager.getGroup(o)}},{key:"getGroupFor",value:function(o){return this.groupManager.getGroupFor(o)}},{key:"addGroup",value:function(o){return this.groupManager.addGroup(o)}},{key:"addToGroup",value:function(o){for(var a,s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];return(a=this.groupManager).addToGroup.apply(a,[o,!1].concat(l))}},{key:"collapseGroup",value:function(o){this.groupManager.collapseGroup(o)}},{key:"expandGroup",value:function(o){this.groupManager.expandGroup(o)}},{key:"toggleGroup",value:function(o){this.groupManager.toggleGroup(o)}},{key:"removeGroup",value:function(o,a,s,l){return this.groupManager.removeGroup(o,a,s,l)}},{key:"removeAllGroups",value:function(o,a){this.groupManager.removeAllGroups(o,a,!1)}},{key:"removeFromGroup",value:function(o,a,s){this.groupManager.removeFromGroup(o,s,a),this._appendElement(a,this.getContainer()),this.updateOffset({recalc:!0,elId:this.getId(a)})}},{key:"_paintEndpoint",value:function(o,a){function s(x){var C=0;if(a.elementWithPrecedence!=null){for(var A=0;A<x.connections.length;A++)if(x.connections[A].sourceId===a.elementWithPrecedence||x.connections[A].targetId===a.elementWithPrecedence){C=A;break}}return x.connections[C]}a=a||{};var l=a.timestamp,c=a.recalc!==!1;if(!l||o.timestamp!==l){var u=this.viewport.getPosition(o.elementId),f=a.offset?{x:a.offset.x,y:a.offset.y}:{x:u.x,y:u.y};if(f!=null){var d=a.anchorLoc;if(d==null){var h={xy:f,wh:u,element:o,timestamp:l};if(c&&this.router.isDynamicAnchor(o)&&o.connections.length>0){var p=s(o),g=p.endpoints[0]===o?1:0,v=g===0?p.sourceId:p.targetId,m=this.viewport.getPosition(v);h.index=g===0?1:0,h.connection=p,h.txy=m,h.twh=m,h.tElement=p.endpoints[g],h.tRotation=this._getRotations(v)}else o.connections.length>0&&(h.connection=o.connections[0]);h.rotation=this._getRotations(o.elementId),d=this.router.computeAnchorLocation(o._anchor,h)}o.endpoint.compute(d,this.router.getEndpointOrientation(o),o.paintStyleInUse),this.renderEndpoint(o,o.paintStyleInUse),o.timestamp=l;for(var y in o.overlays)if(o.overlays.hasOwnProperty(y)){var E=o.overlays[y];E.isVisible()&&(o.overlayPlacements[y]=this.drawOverlay(E,o.endpoint,o.paintStyleInUse,o.getAbsoluteOverlayPosition(E)),this._paintOverlay(E,o.overlayPlacements[y],{xmin:0,ymin:0}))}}}}},{key:"_paintConnection",value:function(o,a){if(!this._suspendDrawing&&o.visible!==!1){a=a||{};var s=a.timestamp;if(s!=null&&s===o.lastPaintedAt)return;if(s==null||s!==o.lastPaintedAt){this.router.computePath(o,s);var l={xmin:1/0,ymin:1/0,xmax:-1/0,ymax:-1/0};for(var c in o.overlays)if(o.overlays.hasOwnProperty(c)){var u=o.overlays[c];u.isVisible()&&(o.overlayPlacements[c]=this.drawOverlay(u,o.connector,o.paintStyleInUse,o.getAbsoluteOverlayPosition(u)),l.xmin=Math.min(l.xmin,o.overlayPlacements[c].xmin),l.xmax=Math.max(l.xmax,o.overlayPlacements[c].xmax),l.ymin=Math.min(l.ymin,o.overlayPlacements[c].ymin),l.ymax=Math.max(l.ymax,o.overlayPlacements[c].ymax))}var f=parseFloat(""+o.paintStyleInUse.strokeWidth||"1")/2,d=parseFloat(""+o.paintStyleInUse.strokeWidth||"0"),h={xmin:Math.min(o.connector.bounds.xmin-(f+d),l.xmin),ymin:Math.min(o.connector.bounds.ymin-(f+d),l.ymin),xmax:Math.max(o.connector.bounds.xmax+(f+d),l.xmax),ymax:Math.max(o.connector.bounds.ymax+(f+d),l.ymax)};this.paintConnector(o.connector,o.paintStyleInUse,h);for(var p in o.overlays)if(o.overlays.hasOwnProperty(p)){var g=o.overlays[p];g.isVisible()&&this._paintOverlay(g,o.overlayPlacements[p],h)}}o.lastPaintedAt=s}}},{key:"_refreshEndpoint",value:function(o){o._anchor.isFloating||(o.connections.length>0?this.addEndpointClass(o,this.endpointConnectedClass):this.removeEndpointClass(o,this.endpointConnectedClass),o.isFull()?this.addEndpointClass(o,this.endpointFullClass):this.removeEndpointClass(o,this.endpointFullClass))}},{key:"_makeConnector",value:function(o,a,s){return pf.get(o,a,s)}},{key:"addOverlay",value:function(o,a,s){if(o.addOverlay(a),!s){var l=o instanceof ki?o.element:o.source;this.revalidate(l)}}},{key:"removeOverlay",value:function(o,a){o.removeOverlay(a);var s=o instanceof ki?o.element:o.source;this.revalidate(s)}},{key:"setOutlineColor",value:function(o,a){o.paintStyleInUse.outlineStroke=a,this._paintConnection(o)}},{key:"setOutlineWidth",value:function(o,a){o.paintStyleInUse.outlineWidth=a,this._paintConnection(o)}},{key:"setColor",value:function(o,a){o.paintStyleInUse.stroke=a,this._paintConnection(o)}},{key:"setLineWidth",value:function(o,a){o.paintStyleInUse.strokeWidth=a,this._paintConnection(o)}},{key:"setLineStyle",value:function(o,a){a.lineWidth!=null&&(o.paintStyleInUse.strokeWidth=a.lineWidth),a.outlineWidth!=null&&(o.paintStyleInUse.outlineWidth=a.outlineWidth),a.color!=null&&(o.paintStyleInUse.stroke=a.color),a.outlineColor!=null&&(o.paintStyleInUse.outlineStroke=a.outlineColor),this._paintConnection(o)}},{key:"getPathData",value:function(o){for(var a="",s=0;s<o.segments.length;s++)a+=o.segments[s].getPath(s===0),a+=" ";return a}}]),n}(Kl),jC=1e-10;function GC(e){var t=Math.floor(e),n=Math.ceil(e);return e-t<jC?t:n-e<jC?n:e}var zC=function(e){on(n,e);var t=rn(n);function n(r){var o;Et(this,n),o=t.call(this,r),F(Y(o),"type",n.segmentType),F(Y(o),"cx",void 0),F(Y(o),"cy",void 0),F(Y(o),"radius",void 0),F(Y(o),"anticlockwise",void 0),F(Y(o),"startAngle",void 0),F(Y(o),"endAngle",void 0),F(Y(o),"sweep",void 0),F(Y(o),"length",void 0),F(Y(o),"circumference",void 0),F(Y(o),"frac",void 0),o.cx=r.cx,o.cy=r.cy,o.radius=r.r,o.anticlockwise=r.ac,r.startAngle&&r.endAngle?(o.startAngle=r.startAngle,o.endAngle=r.endAngle,o.x1=o.cx+o.radius*Math.cos(o.startAngle),o.y1=o.cy+o.radius*Math.sin(o.startAngle),o.x2=o.cx+o.radius*Math.cos(o.endAngle),o.y2=o.cy+o.radius*Math.sin(o.endAngle)):(o.startAngle=o._calcAngle(o.x1,o.y1),o.endAngle=o._calcAngle(o.x2,o.y2)),o.endAngle<0&&(o.endAngle+=ns),o.startAngle<0&&(o.startAngle+=ns);var a=o.endAngle<o.startAngle?o.endAngle+ns:o.endAngle;return o.sweep=Math.abs(a-o.startAngle),o.anticlockwise&&(o.sweep=ns-o.sweep),o.circumference=2*Math.PI*o.radius,o.frac=o.sweep/ns,o.length=o.circumference*o.frac,o.extents={xmin:o.cx-o.radius,xmax:o.cx+o.radius,ymin:o.cy-o.radius,ymax:o.cy+o.radius},o}return Vt(n,[{key:"_calcAngle",value:function(o,a){return AU({x:this.cx,y:this.cy},{x:o,y:a})}},{key:"_calcAngleForLocation",value:function(o,a){if(o.anticlockwise){var s=o.startAngle<o.endAngle?o.startAngle+ns:o.startAngle,l=Math.abs(s-o.endAngle);return s-l*a}else{var c=o.endAngle<o.startAngle?o.endAngle+ns:o.endAngle,u=Math.abs(c-o.startAngle);return o.startAngle+u*a}}},{key:"getPath",value:function(o){var a=this.sweep>Math.PI?1:0,s=this.anticlockwise?0:1;return(o?"M"+this.x1+" "+this.y1+" ":"")+"A "+this.radius+" "+this.radius+" 0 "+a+","+s+" "+this.x2+" "+this.y2}},{key:"getLength",value:function(){return this.length}},{key:"pointOnPath",value:function(o,a){if(o===0)return{x:this.x1,y:this.y1,theta:this.startAngle};if(o===1)return{x:this.x2,y:this.y2,theta:this.endAngle};a&&(o=o/length);var s=this._calcAngleForLocation(this,o),l=this.cx+this.radius*Math.cos(s),c=this.cy+this.radius*Math.sin(s);return{x:GC(l),y:GC(c),theta:s}}},{key:"gradientAtPoint",value:function(o,a){var s=this.pointOnPath(o,a),l=bU({x:this.cx,y:this.cy},s);return!this.anticlockwise&&(l===1/0||l===-1/0)&&(l*=-1),l}},{key:"pointAlongPathFrom",value:function(o,a,s){var l=this.pointOnPath(o,s),c=a/this.circumference*2*Math.PI,u=this.anticlockwise?-1:1,f=l.theta+u*c,d=this.cx+this.radius*Math.cos(f),h=this.cy+this.radius*Math.sin(f);return{x:d,y:h}}}]),n}(Ip);F(zC,"segmentType","Arc");var EG=20,CG=20,Pi=function(e){on(n,e);var t=rn(n);function n(r,o,a){var s;return Et(this,n),s=t.call(this,r,o,a),s.instance=r,s.component=o,F(Y(s),"width",void 0),F(Y(s),"length",void 0),F(Y(s),"foldback",void 0),F(Y(s),"direction",void 0),F(Y(s),"location",.5),F(Y(s),"paintStyle",void 0),F(Y(s),"type",n.type),F(Y(s),"cachedDimensions",void 0),a=a||{},s.width=a.width||EG,s.length=a.length||CG,s.direction=(a.direction||1)<0?-1:1,s.foldback=a.foldback||.623,s.paintStyle=a.paintStyle||{strokeWidth:1},s.location=a.location==null?s.location:Array.isArray(a.location)?a.location[0]:a.location,s}return Vt(n,[{key:"draw",value:function(o,a,s){if(o instanceof Rp){var l=o,c,u,f,d,h;if(this.location>1||this.location<0){var p=this.location<0?1:0;c=l.pointAlongPathFrom(p,this.location,!1),u=l.pointAlongPathFrom(p,this.location-this.direction*this.length/2,!1),f=os(c,u,this.length)}else if(this.location===1){if(c=l.pointOnPath(this.location),u=l.pointAlongPathFrom(this.location,-this.length),f=os(c,u,this.length),this.direction===-1){var g=f;f=c,c=g}}else if(this.location===0){if(f=l.pointOnPath(this.location),u=l.pointAlongPathFrom(this.location,this.length),c=os(f,u,this.length),this.direction===-1){var v=f;f=c,c=v}}else c=l.pointAlongPathFrom(this.location,this.direction*this.length/2),u=l.pointOnPath(this.location),f=os(c,u,this.length);d=SU(c,f,this.width),h=os(c,f,this.foldback*this.length);var m={hxy:c,tail:d,cxy:h},y=this.paintStyle.stroke||a.stroke,E=this.paintStyle.fill||a.stroke,x=this.paintStyle.strokeWidth||a.strokeWidth;return{component:o,d:m,"stroke-width":x,stroke:y,fill:E,xmin:Math.min(c.x,d[0].x,d[1].x),xmax:Math.max(c.x,d[0].x,d[1].x),ymin:Math.min(c.y,d[0].y,d[1].y),ymax:Math.max(c.y,d[0].y,d[1].y)}}}},{key:"updateFrom",value:function(o){}}]),n}(yf);F(Pi,"type","Arrow");function Xp(e){return e.type===Pi.type}ss.register(Pi.type,Pi);var Qp=function(e){on(n,e);var t=rn(n);function n(r,o,a){var s;return Et(this,n),s=t.call(this,r,o,a),s.instance=r,F(Y(s),"type",n.type),s.foldback=1,s}return n}(Pi);F(Qp,"type","PlainArrow");function Jp(e){return e.type===Qp.type}ss.register("PlainArrow",Qp);var Tf=function(e){on(n,e);var t=rn(n);function n(r,o,a){var s;return Et(this,n),s=t.call(this,r,o,a),s.instance=r,F(Y(s),"type",n.type),s.length=s.length/2,s.foldback=2,s}return n}(Pi);F(Tf,"type","Diamond");function Zp(e){return e.type===Tf.type}ss.register(Tf.type,Tf);var kf=function(e){on(n,e);var t=rn(n);function n(r,o,a){var s;return Et(this,n),s=t.call(this,r,o,a),s.instance=r,s.component=o,F(Y(s),"create",void 0),F(Y(s),"type",n.type),s.create=a.create,s}return Vt(n,[{key:"updateFrom",value:function(o){}}]),n}(yf);F(kf,"type","Custom");function ma(e){return e.type===kf.type}ss.register(kf.type,kf),fa.registerHandler(VU),fa.registerHandler(UU),fa.registerHandler(HU),pf.register(hf.type,hf);function _i(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_i=function(t){return typeof t}:_i=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_i(e)}function Fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zn(e,t,n){return t&&WC(e.prototype,t),n&&WC(e,n),e}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Of(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qp(e,t)}function no(e){return no=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},no(e)}function qp(e,t){return qp=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},qp(e,t)}function wG(){if(typeof Reflect>"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 xe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bG(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:xe(e)}function Pf(e){var t=wG();return function(){var r=no(e),o;if(t){var a=no(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return bG(this,o)}}function AG(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=no(e),e!==null););return e}function Oo(e,t,n){return typeof Reflect<"u"&&Reflect.get?Oo=Reflect.get:Oo=function(o,a,s){var l=AG(o,a);if(l){var c=Object.getOwnPropertyDescriptor(l,a);return c.get?c.get.call(s):c.value}},Oo(e,t,n||e)}function SG(e,t){return kG(e)||PG(e,t)||YC(e,t)||DG()}function KC(e){return TG(e)||OG(e)||YC(e)||_G()}function TG(e){if(Array.isArray(e))return $p(e)}function kG(e){if(Array.isArray(e))return e}function OG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,a=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(c){a=!0,l=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function YC(e,t){if(e){if(typeof e=="string")return $p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $p(e,t)}}function $p(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _G(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
156
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
157
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cs(e,t,n){n=n||e.parentNode;for(var r=n.querySelectorAll(t),o=0;o<r.length;o++)if(r[o]===e)return!0;return!1}function $l(e,t){e.stopPropagation?e.stopPropagation():e.returnValue=!1,!t&&e.preventDefault&&e.preventDefault()}function Fr(e,t,n,r){if(r&&cs(e,t,n))return e;for(e=e.parentNode;e!=null&&e!==n;){if(cs(e,t))return e;e=e.parentNode}}function go(e){return e.srcElement||e.target}function IG(e,t,n){t=Op(t),typeof e.className.baseVal<"u"?e.className.baseVal=t:e.className=t;try{var r=e.classList;if(r!=null){for(;r.length>0;)r.remove(r.item(0));for(var o=0;o<n.length;o++)n[o]&&r.add(n[o])}}catch(a){ln("WARN: cannot set class list",a)}}function ev(e){return e.className!=null?typeof e.className.baseVal>"u"?e.className:e.className.baseVal:""}function XC(e,t,n){var r=t==null?[]:Array.isArray(t)?t:t.split(/\s+/),o=n==null?[]:Array.isArray(n)?n:n.split(/\s+/),a=ev(e),s=a.split(/\s+/),l=function(u,f){for(var d=0;d<f.length;d++)if(u)s.indexOf(f[d])===-1&&s.push(f[d]);else{var h=s.indexOf(f[d]);h!==-1&&s.splice(h,1)}};l(!0,r),l(!1,o),IG(e,s.join(" "),s)}function ec(e){return!Xt(e)&&!Array.isArray(e)&&e.length!=null&&e.documentElement==null&&e.nodeType==null}function FG(e){return ev(e)}function us(e,t){var n=function(o,a){if(o!=null&&a!=null&&a.length>0)if(o.classList){var s=Op(a).split(/\s+/);Ke(s,function(l){o.classList.add(l)})}else XC(o,a)};ec(e)?Ke(e,function(r){return n(r,t)}):n(e,t)}function NG(e,t){return e.classList?e.classList.contains(t):ev(e).indexOf(t)!==-1}function tv(e,t){var n=function(o,a){if(o!=null&&a!=null&&a.length>0)if(o.classList){var s=Op(a).split(/\s+/);s.forEach(function(l){o.classList.remove(l)})}else XC(o,null,a)};ec(e)?Ke(e,function(r){return n(r,t)}):n(e,t)}function BG(e,t){var n=this,r=function(a,s){a!=null&&s!=null&&s.length>0&&(a.classList?a.classList.toggle(s):n.hasClass(a,s)?n.removeClass(a,s):n.addClass(a,s))};ec(e)?Ke(e,function(o){return r(o,t)}):r(e,t)}function QC(e,t,n,r){return JC(null,e,t,n,r)}function JC(e,t,n,r,o){var a=e==null?document.createElement(t):document.createElementNS(e,t),s;n=n||{};for(s in n)a.style[s]=n[s];r&&(a.className=r),o=o||{};for(s in o)a.setAttribute(s,""+o[s]);return a}function Di(e){var t=e.getBoundingClientRect(),n=document.body,r=document.documentElement,o=window.pageYOffset||r.scrollTop||n.scrollTop,a=window.pageXOffset||r.scrollLeft||n.scrollLeft,s=r.clientTop||n.clientTop||0,l=r.clientLeft||n.clientLeft||0,c=t.top+o-s,u=t.left+a-l;return{x:Math.round(u),y:Math.round(c)}}function RG(e){return{w:e.offsetWidth,h:e.offsetHeight}}function MG(e){try{return{w:parseFloat(e.width.baseVal.value),h:parseFloat(e.height.baseVal.value)}}catch{return{w:0,h:0}}}function LG(e){try{return{x:parseFloat(e.x.baseVal.value),y:parseFloat(e.y.baseVal.value)}}catch{return{x:0,y:0}}}function _f(e,t){var n=t.getContainer().getBoundingClientRect(),r=e.getBoundingClientRect(),o=t.currentZoom;return{x:(r.left-n.left)/o,y:(r.top-n.top)/o}}function tc(e,t){var n=e.getBoundingClientRect(),r=t.currentZoom;return{w:n.width/r,h:n.height/r}}var fs;(function(e){e.SVG="SVG",e.HTML="HTML"})(fs||(fs={}));function nv(e){return e instanceof SVGElement?fs.SVG:fs.HTML}function VG(e){return nv(e)===fs.SVG}var ZC={"stroke-linejoin":"stroke-linejoin","stroke-dashoffset":"stroke-dashoffset","stroke-linecap":"stroke-linecap"},nc="stroke-dasharray",ov="dashstyle",HG="fill",UG="stroke",jG="stroke-width",GG="strokeWidth",qC="svg",rv="path",$C={svg:"http://www.w3.org/2000/svg"};function Nr(e,t){for(var n in t)e.setAttribute(n,""+t[n])}function Br(e,t){return t=t||{},t.version="1.1",t.xmlns=$C.svg,JC($C.svg,e,null,null,t)}function e2(e){return"position:absolute;left:"+e[0]+"px;top:"+e[1]+"px"}function av(e,t,n){if(t.setAttribute(HG,n.fill?n.fill:yi),t.setAttribute(UG,n.stroke?n.stroke:yi),n.strokeWidth&&t.setAttribute(jG,n.strokeWidth),n[ov]&&n[GG]&&!n[nc]){var r=n[ov].indexOf(",")===-1?" ":",",o=n[ov].split(r),a="";Ke(o,function(l){a+=Math.floor(l*n.strokeWidth)+r}),t.setAttribute(nc,a)}else n[nc]&&t.setAttribute(nc,n[nc]);for(var s in ZC)n[s]&&t.setAttribute(ZC[s],n[s])}function Df(e,t,n){e.childNodes.length>n?e.insertBefore(t,e.childNodes[n]):e.appendChild(t)}function St(e,t,n){var r=[e,t];return n&&r.push(n),r.join(":")}var t2="data-jtk-container",zG="data-jtk-group-content",If="data-jtk-enabled",sv="data-jtk-scope",Rr="endpoint",cr="element",ur="connection",n2="div",Po="click",Mr="contextmenu",fr="dblclick",_o="dbltap",WG="focus",Tn="mousedown",iv="mouseenter",lv="mouseexit",ds="mousemove",kn="mouseup",Do="mouseout",Io="mouseover",Fo="tap",KG="touchstart",YG="touchend",XG="touchmove",QG="drag:move",o2="drag:stop",JG="drag:start",Ff="revert",ZG="connection:abort",r2="connection:drag",a2=St(cr,Po),qG=St(cr,fr),s2=St(cr,_o),$G=St(cr,Do),ez=St(cr,Io),tz=St(cr,ds),nz=St(cr,kn),oz=St(cr,Tn),rz=St(cr,Mr),i2=St(cr,Fo),az=St(Rr,Po),sz=St(Rr,fr);St(Rr,_o);var iz=St(Rr,Do),lz=St(Rr,Io),cz=St(Rr,kn),uz=St(Rr,Tn);St(Rr,Fo);var l2=St(ur,Po),fz=St(ur,fr),dz=St(ur,_o),hz=St(ur,Do),pz=St(ur,Io),vz=St(ur,kn),gz=St(ur,Tn),c2=St(ur,Mr),mz=St(ur,Fo),u2="position",Xo=as(Hp),hs=as(xi),yz=Mp(tC),xz=Mp(zG),Lr=as(mf),oc,rc;function Ez(e,t,n,r,o,a,s){return new Touch({target:e,identifier:pn(),pageX:t,pageY:n,screenX:r,screenY:o,clientX:a||r,clientY:s||o})}function Cz(){var e=[];return e.push.apply(e,arguments),e.item=function(t){return this[t]},e}function wz(e,t,n,r,o,a,s){return Cz(Ez(e,t,n,r,o,a,s))}function Ii(e,t,n){n=n||e.parentNode;for(var r=n.querySelectorAll(t),o=0;o<r.length;o++)if(r[o]===e)return!0;return!1}function ac(e){return e.srcElement||e.target}function cv(e,t,n,r){if(r){var o=e.composedPath?e.composedPath():e.path;if(typeof o<"u"&&o.indexOf)return{path:o,end:o.indexOf(n)};var a={path:[],end:-1},s=function l(c){a.path.push(c),c===n?a.end=a.path.length-1:c.parentNode!=null&&l(c.parentNode)};return s(t),a}else return{path:[t],end:1}}function bz(e,t){var n=0,r;for(n=0,r=e.length;n<r&&e[n][0]!==t;n++);n<e.length&&e.splice(n,1)}var Az=1;function sc(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints!=null&&navigator.maxTouchPoints>0}function Nf(){return"onmousedown"in document.documentElement}var Vr=(oc={},te(oc,Tn,KG),te(oc,kn,YG),te(oc,ds,XG),oc),Sz="page",Tz="screen",kz="client";function uv(e,t){if(e==null)return{x:0,y:0};var n=f2(e),r=_z(n,0);return{x:r[t+"X"],y:r[t+"Y"]}}function Bf(e){return uv(e,Sz)}function Oz(e){return uv(e,Tz)}function Pz(e){return uv(e,kz)}function _z(e,t){return e.item?e.item(t):e[t]}function f2(e){return e.touches&&e.touches.length>0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e]}function Dz(e){return f2(e).length}function Rf(e,t,n,r,o){if(h2(e,t,n),r.__tauid=n.__tauid,e.addEventListener)e.addEventListener(t,n,!1,o);else if(e.attachEvent){var a=t+n.__tauid;e["e"+a]=n,e[a]=function(){e["e"+a]&&e["e"+a](window.event)},e.attachEvent("on"+t,e[a])}}function ic(e,t,n){var r=this;n!=null&&d2(e,function(o){if(Iz(o,t,n),n.__tauid!=null){if(o.removeEventListener)o.removeEventListener(t,n,!1),sc()&&Vr[t]&&o.removeEventListener(Vr[t],n,!1);else if(r.detachEvent){var a=t+n.__tauid;o[a]&&o.detachEvent("on"+t,o[a]),o[a]=null,o["e"+a]=null}}n.__taTouchProxy&&ic(e,n.__taTouchProxy[1],n.__taTouchProxy[0])})}function d2(e,t){if(e!=null)for(var n=typeof e=="string"?document.querySelectorAll(e):e.length!=null?e:[e],r=0;r<n.length;r++)t(n[r])}function h2(e,t,n){var r=Az++;return e.__ta=e.__ta||{},e.__ta[t]=e.__ta[t]||{},e.__ta[t][r]=n,n.__tauid=r,r}function Iz(e,t,n){if(e.__ta&&e.__ta[t]&&delete e.__ta[t][n.__tauid],n.__taExtra){for(var r=0;r<n.__taExtra.length;r++)ic(e,n.__taExtra[r][0],n.__taExtra[r][1]);n.__taExtra.length=0}n.__taUnstore&&n.__taUnstore()}var Fz=/:not\(([^)]+)\)/;function Mf(e,t,n,r){if(e==null)return n;var o=e.split(","),a=[],s=[];Ke(o,function(c){var u=c.match(Fz);u!=null?s.push(u[1]):a.push(c)}),s.length>0&&a.length===0&&a.push(rs);var l=function c(u){c.__tauid=n.__tauid;var f=ac(u),d=!1,h=f,p=cv(u,f,t,e!=null);if(p.end!=-1)for(var g=0;!d&&g<p.end;g++){h=p.path[g];for(var v=0;v<s.length;v++)if(Ii(h,s[v],t))return;for(var m=0;!d&&m<a.length;m++)if(Ii(h,a[m],t)){n.apply(h,[u,h]),d=!0;break}}};return Nz(n,r,l),l}function Nz(e,t,n){e.__taExtra=e.__taExtra||[],e.__taExtra.push([t,n])}var Lf=function(t,n,r,o,a){if(sc()&&Vr[n]){var s=Mf(o,t,r,Vr[n]);Rf(t,Vr[n],s,r,a)}n===WG&&t.getAttribute(nC)==null&&t.setAttribute(nC,"1"),Rf(t,n,Mf(o,t,r,n),r,a)},fv=(rc={},te(rc,Fo,{touches:1,taps:1}),te(rc,_o,{touches:1,taps:2}),te(rc,Mr,{touches:2,taps:1}),rc);function p2(e,t,n,r){for(var o in n.__tamee[e])n.__tamee[e].hasOwnProperty(o)&&n.__tamee[e][o].apply(r,[t])}var Bz=function(){function e(){Fn(this,e)}return zn(e,null,[{key:"generate",value:function(n,r){return function(o,a,s,l){if(a==Mr&&Nf())Lf(o,a,s,l);else{if(o.__taTapHandler==null){var c=o.__taTapHandler={tap:[],dbltap:[],down:!1,taps:0,downSelectors:[]},u=function(g){for(var v=ac(g),m=cv(g,v,o,l!=null),y=!1,E=0;E<m.end;E++){if(y)return;v=m.path[E];for(var x=0;x<c.downSelectors.length;x++)if(c.downSelectors[x]==null||Ii(v,c.downSelectors[x],o)){c.down=!0,setTimeout(d,n),setTimeout(h,r),y=!0;break}}},f=function(g){if(c.down){var v=ac(g),m,y;c.taps++;var E=Dz(g);for(var x in fv)if(fv.hasOwnProperty(x)){var C=fv[x];if(C.touches===E&&(C.taps===1||C.taps===c.taps))for(var A=0;A<c[x].length;A++){y=cv(g,v,o,c[x][A][1]!=null);for(var w=0;w<y.end;w++)if(m=y.path[w],c[x][A][1]==null||Ii(m,c[x][A][1],o)){c[x][A][0].apply(m,[g,m]);break}}}}},d=function(){c.down=!1},h=function(){c.taps=0};o.__taTapHandler.downHandler=u,o.__taTapHandler.upHandler=f,Lf(o,Tn,u),Lf(o,kn,f)}o.__taTapHandler.downSelectors.push(l),o.__taTapHandler[a].push([s,l]),s.__taUnstore=function(){o.__taTapHandler!=null&&(hn(o.__taTapHandler.downSelectors,function(p){return p===l}),bz(o.__taTapHandler[a],s),o.__taTapHandler.downSelectors.length===0&&(ic(o,Tn,o.__taTapHandler.downHandler),ic(o,kn,o.__taTapHandler.upHandler),delete o.__taTapHandler))}}}}}]),e}(),Rz=function(){function e(){Fn(this,e)}return zn(e,null,[{key:"generate",value:function(){var n=[];return function(r,o,a,s){if(!r.__tamee){r.__tamee={over:!1,mouseenter:[],mouseexit:[]};var l=function(f){var d=ac(f);(s==null&&d==r&&!r.__tamee.over||Ii(d,s,r)&&(d.__tamee==null||!d.__tamee.over))&&(p2(iv,f,r,d),d.__tamee=d.__tamee||{},d.__tamee.over=!0,n.push(d))},c=function(f){for(var d=ac(f),h=0;h<n.length;h++)d==n[h]&&!Ii(f.relatedTarget||f.toElement,"*",d)&&(d.__tamee.over=!1,n.splice(h,1),p2(lv,f,r,d))};Rf(r,Io,Mf(s,r,l,Io),l),Rf(r,Do,Mf(s,r,c,Do),c)}a.__taUnstore=function(){delete r.__tamee[o][a.__tauid]},h2(r,o,a),r.__tamee[o][a.__tauid]=a}}}]),e}(),v2=function(){function e(t){Fn(this,e),te(this,"clickThreshold",void 0),te(this,"dblClickThreshold",void 0),te(this,"tapHandler",void 0),te(this,"mouseEnterExitHandler",void 0),t=t||{},this.clickThreshold=t.clickThreshold||250,this.dblClickThreshold=t.dblClickThreshold||450,this.mouseEnterExitHandler=Rz.generate(),this.tapHandler=Bz.generate(this.clickThreshold,this.dblClickThreshold)}return zn(e,[{key:"_doBind",value:function(n,r,o,a,s){if(o!=null){var l=n;r===Fo||r===_o||r===Mr?this.tapHandler(l,r,o,a,s):r===iv||r==lv?this.mouseEnterExitHandler(l,r,o,a,s):Lf(l,r,o,a,s)}}},{key:"on",value:function(n,r,o,a,s){var l=a==null?null:o,c=a??o;return this._doBind(n,r,c,l,s),this}},{key:"off",value:function(n,r,o){return ic(n,r,o),this}},{key:"trigger",value:function(n,r,o,a,s){var l=Nf()&&(typeof MouseEvent>"u"||o==null||o.constructor===MouseEvent),c=sc()&&!Nf()&&Vr[r]?Vr[r]:r,u=!(sc()&&!Nf()&&Vr[r]),f=Bf(o),d=Oz(o),h=Pz(o);return d2(n,function(p){var g;o=o||{screenX:d.x,screenY:d.y,clientX:h.x,clientY:h.y};var v=function(C){a&&(C.payload=a)},m={TouchEvent:function(C){var A=wz(p,f.x,f.y,d.x,d.y,h.x,h.y),w=C.initTouchEvent||C.initEvent;w(c,!0,!0,window,null,d.x,d.y,h.x,h.y,!1,!1,!1,!1,A,A,A,1,0)},MouseEvents:function(C){C.initMouseEvent(c,!0,!0,window,s??1,d.x,d.y,h.x,h.y,!1,!1,!1,!1,1,p)}},y=!u&&!l&&sc()&&Vr[r],E=y?"TouchEvent":"MouseEvents";g=document.createEvent(E),m[E](g),v(g),p.dispatchEvent(g)}),this}}]),e}();function Mz(e,t,n){if(cs(t,n,e))return t;for(var r=t.parentNode;r!=null&&r!==e;){if(cs(r,n,e))return r;r=r.parentNode}}function Lz(e){return typeof e=="function"?(e._katavorioId=pn(),e._katavorioId):e}function g2(e,t,n){var r=t.parentNode,o=e.getSize(r),a=e.getSize(t),s=n.x,l=s+a.w,c=n.y,u=c+a.h;return l>0&&s<o.w&&u>0&&c<o.h}function Vz(e,t,n){for(var r=null,o=t.getAttribute("katavorio-draggable"),a=o!=null?"[katavorio-draggable='"+o+"'] ":"",s=0;s<e.length;s++)if(r=Mz(t,n,a+e[s].selector),r!=null){if(e[s].filter){var l=cs(n,e[s].filter,r),c=e[s].filterExclude===!0;if(c&&!l||l)return null}return[e[s],r]}return null}var m2="start",y2="beforeStart",x2="drag",Hz="drop",Uz="over",jz="out",E2="stop",C2="katavorio-draggable",Gz=C2,zz=10,Wz=10,dv=function(){return!0},Kz=function(){return!1},lc={delegatedDraggable:"katavorio-delegated-draggable",draggable:Gz,drag:"katavorio-drag",selected:"katavorio-drag-selected",noSelect:"katavorio-drag-no-select",ghostProxy:"katavorio-ghost-proxy",clonedDrag:"katavorio-clone-drag"},Qo;(function(e){e.absolutePosition="absolutePosition",e.transform="transform",e.xyAttributes="xyAttributes"})(Qo||(Qo={}));var hv=new Map;hv.set(Qo.absolutePosition,function(e,t){e.style.left="".concat(t.x,"px"),e.style.top="".concat(t.y,"px")}),hv.set(Qo.xyAttributes,function(e,t){e.setAttribute("x","".concat(t.x)),e.setAttribute("y","".concat(t.y))});var pv=new Map;pv.set(Qo.absolutePosition,function(e){return{x:e.offsetLeft,y:e.offsetTop}}),pv.set(Qo.xyAttributes,function(e){return{x:parseFloat(e.getAttribute("x")),y:parseFloat(e.getAttribute("y"))}});var vv=new Map;vv.set(Qo.absolutePosition,function(e,t){e.style.width="".concat(t.w,"px"),e.style.height="".concat(t.h,"px")}),vv.set(Qo.xyAttributes,function(e,t){e.setAttribute("width","".concat(t.w)),e.setAttribute("height","".concat(t.h))});var gv=new Map;gv.set(Qo.absolutePosition,function(e){return{w:e.offsetWidth,h:e.offsetHeight}}),gv.set(Qo.xyAttributes,function(e){return{w:parseFloat(e.getAttribute("width")),h:parseFloat(e.getAttribute("height"))}});var mv=[E2,m2,x2,Hz,Uz,jz,y2],Yz=function(){},Fi=function(t,n){if(t!=null){t=!Xt(t)&&t.tagName==null&&t.length!=null?t:[t];for(var r=0;r<t.length;r++)n.apply(t[r],[t[r]])}},Xz=function(t,n,r){var o=t.srcElement||t.target;return!cs(o,r.getInputFilterSelector(),n)},Qz=function(){function e(t,n){Fn(this,e),this.el=t,this.manager=n,te(this,"_class",void 0),te(this,"uuid",pn()),te(this,"enabled",!0),te(this,"scopes",[]),te(this,"eventManager",void 0),this.eventManager=n.eventManager}return zn(e,[{key:"setEnabled",value:function(n){this.enabled=n}},{key:"isEnabled",value:function(){return this.enabled}},{key:"toggleEnabled",value:function(){this.enabled=!this.enabled}},{key:"addScope",value:function(n){var r={};Fi(this.scopes,function(a){r[a]=!0}),Fi(n?n.split(/\s+/):[],function(a){r[a]=!0}),this.scopes.length=0;for(var o in r)this.scopes.push(o)}},{key:"removeScope",value:function(n){var r={};Fi(this.scopes,function(a){r[a]=!0}),Fi(n?n.split(/\s+/):[],function(a){delete r[a]}),this.scopes.length=0;for(var o in r)this.scopes.push(o)}},{key:"toggleScope",value:function(n){var r={};Fi(this.scopes,function(a){r[a]=!0}),Fi(n?n.split(/\s+/):[],function(a){r[a]?delete r[a]:r[a]=!0}),this.scopes.length=0;for(var o in r)this.scopes.push(o)}}]),e}();function Jz(e){return{w:e.parentNode.offsetWidth+e.parentNode.scrollLeft,h:e.parentNode.offsetHeight+e.parentNode.scrollTop}}var Ni;(function(e){e.notNegative="notNegative",e.parent="parent",e.parentEnclosed="parentEnclosed"})(Ni||(Ni={}));var Zz=function(e){Of(n,e);var t=Pf(n);function n(r,o,a){var s;if(Fn(this,n),s=t.call(this,r,a),te(xe(s),"_class",void 0),te(xe(s),"rightButtonCanDrag",void 0),te(xe(s),"consumeStartEvent",void 0),te(xe(s),"clone",void 0),te(xe(s),"scroll",void 0),te(xe(s),"trackScroll",void 0),te(xe(s),"_downAt",void 0),te(xe(s),"_posAtDown",void 0),te(xe(s),"_pagePosAtDown",void 0),te(xe(s),"_pageDelta",{x:0,y:0}),te(xe(s),"_moving",void 0),te(xe(s),"_lastPosition",void 0),te(xe(s),"_lastScrollValues",{x:0,y:0}),te(xe(s),"_initialScroll",{x:0,y:0}),te(xe(s),"_size",void 0),te(xe(s),"_currentParentPosition",void 0),te(xe(s),"_ghostParentPosition",void 0),te(xe(s),"_dragEl",void 0),te(xe(s),"_multipleDrop",void 0),te(xe(s),"_ghostProxyOffsets",void 0),te(xe(s),"_ghostDx",void 0),te(xe(s),"_ghostDy",void 0),te(xe(s),"_isConstrained",!1),te(xe(s),"_ghostProxyParent",void 0),te(xe(s),"_useGhostProxy",void 0),te(xe(s),"_ghostProxyFunction",void 0),te(xe(s),"_activeSelectorParams",void 0),te(xe(s),"_availableSelectors",[]),te(xe(s),"_canDrag",void 0),te(xe(s),"_consumeFilteredEvents",void 0),te(xe(s),"_parent",void 0),te(xe(s),"_ignoreZoom",void 0),te(xe(s),"_filters",{}),te(xe(s),"_constrainRect",void 0),te(xe(s),"_elementToDrag",void 0),te(xe(s),"downListener",void 0),te(xe(s),"moveListener",void 0),te(xe(s),"upListener",void 0),te(xe(s),"scrollTracker",void 0),te(xe(s),"listeners",{start:[],drag:[],stop:[],over:[],out:[],beforeStart:[],revert:[]}),s._class=s.manager.css.draggable,us(s.el,s._class),s.downListener=s._downListener.bind(xe(s)),s.upListener=s._upListener.bind(xe(s)),s.moveListener=s._moveListener.bind(xe(s)),s.rightButtonCanDrag=o.rightButtonCanDrag===!0,s.consumeStartEvent=o.consumeStartEvent!==!1,s._dragEl=s.el,s.clone=o.clone===!0,s.scroll=o.scroll===!0,s.trackScroll=o.trackScroll!==!1,s._multipleDrop=o.multipleDrop!==!1,s._canDrag=o.canDrag||dv,s._consumeFilteredEvents=o.consumeFilteredEvents,s._parent=o.parent,s._ignoreZoom=o.ignoreZoom===!0,s._ghostProxyParent=o.ghostProxyParent,s.trackScroll&&(s.scrollTracker=s._trackScroll.bind(xe(s)),document.addEventListener("scroll",s.scrollTracker)),o.ghostProxy===!0?s._useGhostProxy=dv:o.ghostProxy&&typeof o.ghostProxy=="function"?s._useGhostProxy=o.ghostProxy:s._useGhostProxy=function(c,u){return s._activeSelectorParams&&s._activeSelectorParams.useGhostProxy?s._activeSelectorParams.useGhostProxy(c,u):!1},o.makeGhostProxy?s._ghostProxyFunction=o.makeGhostProxy:s._ghostProxyFunction=function(c){return s._activeSelectorParams&&s._activeSelectorParams.makeGhostProxy?s._activeSelectorParams.makeGhostProxy(c):c.cloneNode(!0)},o.selector){var l=s.el.getAttribute(C2);l==null&&(l=""+new Date().getTime(),s.el.setAttribute("katavorio-draggable",l)),s._availableSelectors.push(o)}return s.eventManager.on(s.el,Tn,s.downListener),s}return zn(n,[{key:"_trackScroll",value:function(o){if(this._moving){var a={x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop},s=a.x-this._lastScrollValues.x,l=a.y-this._lastScrollValues.y,c={x:s+this._lastPosition.x,y:l+this._lastPosition.y},u=c.x-this._downAt.x,f=c.y-this._downAt.y,d=this._ignoreZoom?1:this.manager.getZoom();this._dragEl&&this._dragEl.parentNode&&(u+=this._dragEl.parentNode.scrollLeft-this._initialScroll.x,f+=this._dragEl.parentNode.scrollTop-this._initialScroll.y),u/=d,f/=d,this.moveBy(u,f,o),this._lastPosition=c,this._lastScrollValues=a}}},{key:"on",value:function(o,a){this.listeners[o]&&this.listeners[o].push(a)}},{key:"off",value:function(o,a){if(this.listeners[o]){for(var s=[],l=0;l<this.listeners[o].length;l++)this.listeners[o][l]!==a&&s.push(this.listeners[o][l]);this.listeners[o]=s}}},{key:"_upListener",value:function(o){this._downAt&&(this._downAt=null,this.eventManager.off(document,ds,this.moveListener),this.eventManager.off(document,kn,this.upListener),tv(document.body,lc.noSelect),this.unmark(o),this.stop(o),this._moving=!1,this.clone?(this._dragEl&&this._dragEl.parentNode&&this._dragEl.parentNode.removeChild(this._dragEl),this._dragEl=null):this._activeSelectorParams&&this._activeSelectorParams.revertFunction&&this._activeSelectorParams.revertFunction(this._dragEl,this.manager.getPosition(this._dragEl))===!0&&(this.manager.setPosition(this._dragEl,this._posAtDown),this._dispatch(Ff,this._dragEl)))}},{key:"_downListener",value:function(o){if(!o.defaultPrevented){var a=this.rightButtonCanDrag||o.which!==3&&o.button!==2;if(a&&this.isEnabled()&&this._canDrag()){var s=this._testFilter(o)&&Xz(o,this.el,this.manager);if(s){this._activeSelectorParams=null,this._elementToDrag=null,this._availableSelectors.length===0&&console.log("JSPLUMB: no available drag selectors");var l=o.target||o.srcElement,c=Vz(this._availableSelectors,this.el,l);if(c!=null&&(this._activeSelectorParams=c[0],this._elementToDrag=c[1]),this._activeSelectorParams==null||this._elementToDrag==null)return;var u=this._activeSelectorParams.dragInit?this._activeSelectorParams.dragInit(this._elementToDrag,o):null;if(u!=null&&(this._elementToDrag=u),this.clone)if(this._dragEl=this._elementToDrag.cloneNode(!0),us(this._dragEl,lc.clonedDrag),this._dragEl.setAttribute("id",null),this._dragEl.style.position="absolute",this._parent!=null){var f=this.manager.getPosition(this.el);this._dragEl.style.left=f.x+"px",this._dragEl.style.top=f.y+"px",this._parent.appendChild(this._dragEl)}else{var d=Di(this._elementToDrag);this._dragEl.style.left=d.x+"px",this._dragEl.style.top=d.y+"px",document.body.appendChild(this._dragEl)}else this._dragEl=this._elementToDrag;this.consumeStartEvent&&$l(o),this._downAt=Bf(o),this._dragEl&&this._dragEl.parentNode&&(this._initialScroll={x:this._dragEl.parentNode.scrollLeft,y:this._dragEl.parentNode.scrollTop}),this._posAtDown=this.manager.getPosition(this._dragEl),this._pagePosAtDown=Di(this._dragEl),this._pageDelta={x:this._pagePosAtDown.x-this._posAtDown.x,y:this._pagePosAtDown.y-this._posAtDown.y},this._size=this.manager.getSize(this._dragEl),this.eventManager.on(document,ds,this.moveListener),this.eventManager.on(document,kn,this.upListener),us(document.body,lc.noSelect),this._dispatch(y2,{el:this.el,pos:this._posAtDown,e:o,drag:this,size:this._size})}else this._consumeFilteredEvents&&$l(o)}}}},{key:"_moveListener",value:function(o){if(this._downAt){if(!this._moving){var a=this._dispatch(m2,{el:this.el,pos:this._posAtDown,e:o,drag:this,size:this._size});if(a!==!1){if(!this._downAt)return;this.mark(a),this._moving=!0}else this.abort()}if(this._downAt){var s=Bf(o),l=s.x-this._downAt.x,c=s.y-this._downAt.y,u=this._ignoreZoom?1:this.manager.getZoom();this._lastPosition={x:s.x,y:s.y},this._lastScrollValues={x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop},this._dragEl&&this._dragEl.parentNode&&(l+=this._dragEl.parentNode.scrollLeft-this._initialScroll.x,c+=this._dragEl.parentNode.scrollTop-this._initialScroll.y),l/=u,c/=u,this.moveBy(l,c,o)}}}},{key:"getDragDelta",value:function(){return this._posAtDown!=null&&this._downAt!=null?{x:this._downAt.x-this._posAtDown.x,y:this._downAt.y-this._posAtDown.y}:{x:0,y:0}}},{key:"mark",value:function(o){this._posAtDown=this.manager.getPosition(this._dragEl),this._pagePosAtDown=Di(this._dragEl),this._pageDelta={x:this._pagePosAtDown.x-this._posAtDown.x,y:this._pagePosAtDown.y-this._posAtDown.y},this._size=this.manager.getSize(this._dragEl),us(this._dragEl,this.manager.css.drag),this._constrainRect=Jz(this._dragEl),this._ghostDx=0,this._ghostDy=0}},{key:"unmark",value:function(o){this._isConstrained&&this._useGhostProxy(this._elementToDrag,this._dragEl)?(this._ghostProxyOffsets={x:this._dragEl.offsetLeft-this._ghostDx,y:this._dragEl.offsetTop-this._ghostDy},this._dragEl.parentNode.removeChild(this._dragEl),this._dragEl=this._elementToDrag):this._ghostProxyOffsets=null,tv(this._dragEl,this.manager.css.drag),this._isConstrained=!1}},{key:"moveBy",value:function(o,a,s){var l=this.toGrid({x:this._posAtDown.x+o,y:this._posAtDown.y+a}),c=this._doConstrain(l,this._dragEl,this._constrainRect,this._size,s);if(c!=null){if(this._useGhostProxy(this.el,this._dragEl))if(l.x!==c.x||l.y!==c.y){if(!this._isConstrained){var u=this._ghostProxyFunction(this._elementToDrag);us(u,lc.ghostProxy),this._ghostProxyParent?(this._ghostProxyParent.appendChild(u),this._currentParentPosition=Di(this._elementToDrag.parentNode),this._ghostParentPosition=Di(this._ghostProxyParent),this._ghostDx=this._currentParentPosition.x-this._ghostParentPosition.x,this._ghostDy=this._currentParentPosition.y-this._ghostParentPosition.y):this._elementToDrag.parentNode.appendChild(u),this._dragEl=u,this._isConstrained=!0}c=l}else this._isConstrained&&(this._dragEl.parentNode.removeChild(this._dragEl),this._dragEl=this._elementToDrag,this._isConstrained=!1,this._currentParentPosition=null,this._ghostParentPosition=null,this._ghostDx=0,this._ghostDy=0);this.manager.setPosition(this._dragEl,{x:c.x+this._ghostDx,y:c.y+this._ghostDy}),this._dispatch(x2,{el:this.el,pos:c,e:s,drag:this,size:this._size,originalPos:this._posAtDown})}}},{key:"abort",value:function(){this._downAt!=null&&this._upListener()}},{key:"getDragElement",value:function(o){return o?this._elementToDrag||this.el:this._dragEl||this.el}},{key:"stop",value:function(o,a){if(a||this._moving){var s=[],l=this.manager.getPosition(this._dragEl);s.push([this._dragEl,l,this,this._size]),this._dispatch(E2,{el:this._dragEl,pos:this._ghostProxyOffsets||l,finalPos:l,e:o,drag:this,selection:s,size:this._size,originalPos:{x:this._posAtDown.x,y:this._posAtDown.y}})}else this._moving||this._activeSelectorParams.dragAbort&&this._activeSelectorParams.dragAbort(this._elementToDrag)}},{key:"_dispatch",value:function(o,a){var s=null;if(this._activeSelectorParams&&this._activeSelectorParams[o])s=this._activeSelectorParams[o](a);else if(this.listeners[o])for(var l=0;l<this.listeners[o].length;l++)try{var c=this.listeners[o][l](a);c!=null&&(s=c)}catch{}return s}},{key:"resolveGrid",value:function(){var o={grid:null,thresholdX:zz/2,thresholdY:Wz/2};return this._activeSelectorParams!=null&&this._activeSelectorParams.grid!=null&&(o.grid=this._activeSelectorParams.grid,this._activeSelectorParams.snapThreshold!=null&&(o.thresholdX=this._activeSelectorParams.snapThreshold,o.thresholdY=this._activeSelectorParams.snapThreshold)),o}},{key:"toGrid",value:function(o){var a=this.resolveGrid(),s=a.grid,l=a.thresholdX,c=a.thresholdY;if(s==null)return o;var u=s?s.w/2:l,f=s?s.h/2:c;return TU(o,s,u,f)}},{key:"setUseGhostProxy",value:function(o){this._useGhostProxy=o?dv:Kz}},{key:"_doConstrain",value:function(o,a,s,l,c){return this._activeSelectorParams!=null&&this._activeSelectorParams.constrainFunction&&typeof this._activeSelectorParams.constrainFunction=="function"?this._activeSelectorParams.constrainFunction(o,a,s,l,c):o}},{key:"_testFilter",value:function(o){for(var a in this._filters){var s=this._filters[a],l=s[0](o);if(s[1]&&(l=!l),!l)return!1}return!0}},{key:"addFilter",value:function(o,a){var s=this;if(o){var l=Lz(o);this._filters[l]=[function(c){var u=c.srcElement||c.target,f;return Xt(o)?f=cs(u,o,s.el):typeof o=="function"&&(f=o(c,s.el)),f},a!==!1]}}},{key:"removeFilter",value:function(o){var a=typeof o=="function"?o._katavorioId:o;delete this._filters[a]}},{key:"clearAllFilters",value:function(){this._filters={}}},{key:"addSelector",value:function(o,a){o.selector&&(a?this._availableSelectors.unshift(o):this._availableSelectors.push(o))}},{key:"destroy",value:function(){this.eventManager.off(this.el,Tn,this.downListener),this.eventManager.off(document,ds,this.moveListener),this.eventManager.off(document,kn,this.upListener),this.downListener=null,this.upListener=null,this.moveListener=null,this.scrollTracker!=null&&document.removeEventListener("scroll",this.scrollTracker)}}]),n}(Qz),qz=["input","textarea","select","button","option"],$z=qz.join(","),eW=function(){function e(t){Fn(this,e),te(this,"eventManager",void 0),te(this,"zoom",1),te(this,"css",{}),te(this,"inputFilterSelector",void 0),te(this,"positioningStrategy",void 0),te(this,"_positionSetter",void 0),te(this,"_positionGetter",void 0),te(this,"_sizeSetter",void 0),te(this,"_sizeGetter",void 0),t=t||{},this.inputFilterSelector=t.inputFilterSelector||$z,this.eventManager=new v2,this.zoom=t.zoom||1,this.positioningStrategy=t.positioningStrategy||Qo.absolutePosition,this._positionGetter=pv.get(this.positioningStrategy),this._positionSetter=hv.get(this.positioningStrategy),this._sizeGetter=gv.get(this.positioningStrategy),this._sizeSetter=vv.get(this.positioningStrategy);var n=t.css||{};Xe(this.css,n)}return zn(e,[{key:"getPosition",value:function(n){return this._positionGetter(n)}},{key:"setPosition",value:function(n,r){this._positionSetter(n,r)}},{key:"getSize",value:function(n){return this._sizeGetter(n)}},{key:"getZoom",value:function(){return this.zoom}},{key:"setZoom",value:function(n){this.zoom=n}},{key:"_prepareParams",value:function(n){n=n||{};var r={events:{}},o;for(o in n)r[o]=n[o];for(o=0;o<mv.length;o++)r.events[mv[o]]=n[mv[o]]||Yz;return r}},{key:"getInputFilterSelector",value:function(){return this.inputFilterSelector}},{key:"setInputFilterSelector",value:function(n){return this.inputFilterSelector=n,this}},{key:"draggable",value:function(n,r){if(n._katavorioDrag==null){var o=this._prepareParams(r),a=new Zz(n,o,this);return us(n,lc.delegatedDraggable),n._katavorioDrag=a,a}else return n._katavorioDrag}},{key:"destroyDraggable",value:function(n){n._katavorioDrag&&(n._katavorioDrag.destroy(),delete n._katavorioDrag)}}]),e}(),Vf="jtk-drag-selected",tW=function(){function e(t){Fn(this,e),this.instance=t,te(this,"_dragSelection",[]),te(this,"_dragSizes",new Map),te(this,"_dragElements",new Map),te(this,"_dragElementStartPositions",new Map),te(this,"_dragElementPositions",new Map),te(this,"__activeSet",void 0)}return zn(e,[{key:"_activeSet",get:function(){return this.__activeSet==null?this._dragSelection:this.__activeSet}},{key:"length",get:function(){return this._dragSelection.length}},{key:"filterActiveSet",value:function(n){var r=this;this.__activeSet=[],Ke(this._dragSelection,function(o){n(o)&&r.__activeSet.push(o)})}},{key:"clear",value:function(){var n=this;this.reset(),Ke(this._dragSelection,function(r){return n.instance.removeClass(r.jel,Vf)}),this._dragSelection.length=0}},{key:"reset",value:function(){this._dragElementStartPositions.clear(),this._dragElementPositions.clear(),this._dragSizes.clear(),this._dragElements.clear(),this.__activeSet=null}},{key:"initialisePositions",value:function(){var n=this;Ke(this._activeSet,function(r){var o=n.instance.viewport.getPosition(r.id),a={x:parseInt(""+r.jel.offsetLeft,10),y:parseInt(""+r.jel.offsetTop,10)};n._dragElementStartPositions.set(r.id,a),n._dragElementPositions.set(r.id,a),n._dragSizes.set(r.id,{w:o.w,h:o.h})})}},{key:"updatePositions",value:function(n,r,o){var a=this,s=n.x-r.x,l=n.y-r.y;Ke(this._activeSet,function(c){var u=a._dragElementStartPositions.get(c.id);if(u){var f=u.x+s,d=u.y+l,h=a._dragSizes.get(c.id),p={x:f,y:d,w:h.w,h:h.h};if(c.jel._jsPlumbParentGroup&&c.jel._jsPlumbParentGroup.constrain){var g={w:c.jel.parentNode.offsetWidth+c.jel.parentNode.scrollLeft,h:c.jel.parentNode.offsetHeight+c.jel.parentNode.scrollTop};p.x=Math.max(p.x,0),p.y=Math.max(p.y,0),p.x=Math.min(p.x,g.w-h.w),p.y=Math.min(p.y,g.h-h.h)}a._dragElementPositions.set(c.id,{x:f,y:d}),c.jel.style.left=p.x+"px",c.jel.style.top=p.y+"px",o(c.jel,c.id,h,p)}})}},{key:"each",value:function(n){var r=this;Ke(this._activeSet,function(o){var a=r._dragSizes.get(o.id),s=r._dragElementPositions.get(o.id),l=r._dragElementStartPositions.get(o.id);n(o.jel,o.id,s,a,l)})}},{key:"add",value:function(n,r){var o=n;r=r||this.instance.getId(o);var a=ca(this._dragSelection,function(s){return s.id===r});a===-1&&(this.instance.addClass(n,Vf),this._dragSelection.push({id:r,jel:o}))}},{key:"remove",value:function(n){var r=this,o=n;this._dragSelection=this._dragSelection.filter(function(a){var s=a.jel!==o;return s||r.instance.removeClass(a.jel,Vf),s})}},{key:"toggle",value:function(n){var r=n,o=ca(this._dragSelection,function(a){return a.jel===r});o!==-1?this.remove(r):this.add(n)}}]),e}(),nW="jtk-delegated-draggable",oW="jtk-draggable",rW="jtk-drag",aW="jtk-ghost-proxy",ya="jtk-drag-active",sW="jtk-dragged",xa="jtk-drag-hover",iW=function(){function e(t,n,r){var o=this;Fn(this,e),this.instance=t,this.dragSelection=n,te(this,"collicat",void 0),te(this,"drag",void 0),te(this,"_draggables",{}),te(this,"_dlist",[]),te(this,"_elementsWithEndpoints",{}),te(this,"_draggablesForElements",{}),te(this,"handlers",[]),te(this,"_trackScroll",void 0),te(this,"_filtersToAdd",[]),this.collicat=new eW({zoom:this.instance.currentZoom,css:{noSelect:this.instance.dragSelectClass,delegatedDraggable:nW,draggable:oW,drag:rW,selected:Vf,active:ya,hover:xa,ghostProxy:aW}}),this.instance.bind(cC,function(a){o.collicat.setZoom(a)}),r=r||{},this._trackScroll=r.trackScroll!==!1}return zn(e,[{key:"addHandler",value:function(n,r){var o=this,a=Xe({selector:n.selector},r||{});a.start=rf(a.start,function(c){return n.onStart(c)},!1),a.drag=rf(a.drag,function(c){return n.onDrag(c)}),a.stop=rf(a.stop,function(c){return n.onStop(c)});var s=(n.onBeforeStart||function(c){}).bind(n);if(a.beforeStart=rf(a.beforeStart,function(c){return s(c)}),a.dragInit=function(c,u){return n.onDragInit(c,u)},a.dragAbort=function(c){return n.onDragAbort(c)},n.useGhostProxy&&(a.useGhostProxy=n.useGhostProxy,a.makeGhostProxy=n.makeGhostProxy),a.constrainFunction==null&&a.containment!=null)switch(a.containment){case Ni.notNegative:{a.constrainFunction=function(c,u,f,d){return{x:Math.max(0,Math.min(c.x)),y:Math.max(0,Math.min(c.y))}};break}case Ni.parent:{var l=a.containmentPadding||5;a.constrainFunction=function(c,u,f,d){var h=c.x<0?0:c.x>f.w-l?f.w-l:c.x,p=c.y<0?0:c.y>f.h-l?f.h-l:c.y;return{x:h,y:p}};break}case Ni.parentEnclosed:{a.constrainFunction=function(c,u,f,d){var h=c.x<0?0:c.x+d.w>f.w?f.w-d.w:c.x,p=c.y<0?0:c.y+d.h>f.h?f.h-d.h:c.y;return{x:h,y:p}};break}}this.drag==null?(a.trackScroll=this._trackScroll,this.drag=this.collicat.draggable(this.instance.getContainer(),a),Ke(this._filtersToAdd,function(c){return o.drag.addFilter(c[0],c[1])}),this.drag.on(Ff,function(c){o.instance.revalidate(c)})):this.drag.addSelector(a),this.handlers.push({handler:n,options:a}),n.init(this.drag)}},{key:"addSelector",value:function(n,r){this.drag&&this.drag.addSelector(n,r)}},{key:"addFilter",value:function(n,r){this.drag==null?this._filtersToAdd.push([n,r===!0]):this.drag.addFilter(n,r)}},{key:"removeFilter",value:function(n){this.drag!=null&&this.drag.removeFilter(n)}},{key:"setFilters",value:function(n){var r=this;Ke(n,function(o){r.drag.addFilter(o[0],o[1])})}},{key:"reset",value:function(){var n=[];if(Ke(this.handlers,function(a){a.handler.reset()}),this.handlers.length=0,this.drag!=null){var r=this.drag._filters;for(var o in r)n.push([o,r[o][1]]);this.collicat.destroyDraggable(this.instance.getContainer())}return delete this.drag,n}},{key:"setOption",value:function(n,r){var o=kp(this.handlers,function(a){return a.handler===n});o!=null&&Xe(o.options,r||{})}}]),e}();function lW(e,t){return Xt(t)?{id:t,active:!0}:{id:t.id,active:t.active}}function cW(e,t){var n=NE(e.members,function(r){return r.el===t});return n!==null?n.active===!0:!1}function uW(e){for(var t=[],n=e._jsPlumbParentGroup;n!=null;)t.push(n.el),n=n.group;return t}var yv=function(){function e(t,n){Fn(this,e),this.instance=t,this._dragSelection=n,te(this,"selector","> "+Qt+":not("+as(mf)+")"),te(this,"_dragOffset",null),te(this,"_groupLocations",[]),te(this,"_intersectingGroups",[]),te(this,"_currentDragParentGroup",null),te(this,"_dragGroupByElementIdMap",{}),te(this,"_dragGroupMap",{}),te(this,"_currentDragGroup",null),te(this,"_currentDragGroupOffsets",new Map),te(this,"_currentDragGroupSizes",new Map),te(this,"_currentDragGroupOriginalPositions",new Map),te(this,"_dragPayload",null),te(this,"drag",void 0),te(this,"originalPosition",void 0)}return zn(e,[{key:"onDragInit",value:function(n){return null}},{key:"onDragAbort",value:function(n){return null}},{key:"getDropGroup",value:function(){var n=null;if(this._intersectingGroups.length>0){var r=this._intersectingGroups[0].groupLoc.group,o=this._intersectingGroups[0].intersectingElement,a=o._jsPlumbParentGroup;a!==r&&(a==null||!a.overrideDrop(o,r))&&(n=this._intersectingGroups[0])}return n}},{key:"onStop",value:function(n){var r,o=this,a=n.drag.getDragElement(),s=this.getDropGroup(),l=[];l.push({el:a,id:this.instance.getId(a),pos:n.finalPos,originalGroup:a._jsPlumbParentGroup,redrawResult:null,originalPos:n.originalPos,reverted:!1,dropGroup:s!=null?s.groupLoc.group:null});function c(g,v,m,y,E){var x=m.x,C=m.y;if(g._jsPlumbParentGroup&&g._jsPlumbParentGroup.constrain){var A={w:g.parentNode.offsetWidth+g.parentNode.scrollLeft,h:g.parentNode.offsetHeight+g.parentNode.scrollTop};x=Math.max(x,0),C=Math.max(C,0),x=Math.min(x,A.w-y.w),C=Math.min(C,A.h-y.h),m.x=x,m.y=C}l.push({el:g,id:v,pos:m,originalPos:E,originalGroup:g._jsPlumbParentGroup,redrawResult:null,reverted:!1,dropGroup:s==null?void 0:s.groupLoc.group})}if(this._dragSelection.each(function(g,v,m,y,E){g!==n.el&&c(g,v,{x:m.x,y:m.y},y,E)}),(r=this._currentDragGroup)===null||r===void 0||r.members.forEach(function(g){if(g.el!==n.el){var v=o._currentDragGroupOffsets.get(g.elId),m=o._currentDragGroupSizes.get(g.elId),y={x:n.finalPos.x+v[0].x,y:n.finalPos.y+v[0].y};c(g.el,g.elId,y,m,o._currentDragGroupOriginalPositions.get(g.elId))}}),Ke(l,function(g){var v=g.originalGroup!=null,m=v&&g2(o.instance,g.el,g.pos),y={x:0,y:0};if(v&&!m){if(s==null){var E=o._pruneOrOrphan(g,!0,!0);E.pos!=null?g.pos=E.pos.pos:!E.pruned&&g.originalGroup.revert&&(g.pos=g.originalPos,g.reverted=!0)}}else v&&m&&(y=o._computeOffsetByParentGroup(g.originalGroup));s!=null&&!m?o.instance.groupManager.addToGroup(s.groupLoc.group,!1,g.el):g.dropGroup=null,g.reverted&&o.instance.setPosition(g.el,g.pos),g.redrawResult=o.instance.setElementPosition(g.el,g.pos.x+y.x,g.pos.y+y.y),o.instance.removeClass(g.el,sW),o.instance.select({source:g.el}).removeClass(o.instance.elementDraggingClass+" "+o.instance.sourceElementDraggingClass,!0),o.instance.select({target:g.el}).removeClass(o.instance.elementDraggingClass+" "+o.instance.targetElementDraggingClass,!0)}),l[0].originalGroup!=null){var u=a._jsPlumbParentGroup;if(u!==l[0].originalGroup){var f=n.drag.getDragElement(!0);if(l[0].originalGroup.ghost){var d=this.instance.getPosition(this.instance.getGroupContentArea(u)),h=this.instance.getPosition(this.instance.getGroupContentArea(l[0].originalGroup)),p={x:h.x+n.pos.x-d.x,y:h.y+n.pos.y-d.y};f.style.left=p.x+"px",f.style.top=p.y+"px",this.instance.revalidate(f)}}}this.instance.fire(o2,{elements:l,e:n.e,el:a,payload:this._dragPayload}),this._cleanup()}},{key:"_cleanup",value:function(){var n=this;Ke(this._groupLocations,function(r){n.instance.removeClass(r.el,ya),n.instance.removeClass(r.el,xa)}),this._currentDragParentGroup=null,this._groupLocations.length=0,this.instance.hoverSuspended=!1,this._dragOffset=null,this._dragSelection.reset(),this._dragPayload=null,this._currentDragGroupOffsets.clear(),this._currentDragGroupSizes.clear(),this._currentDragGroupOriginalPositions.clear(),this._currentDragGroup=null}},{key:"reset",value:function(){}},{key:"init",value:function(n){this.drag=n}},{key:"onDrag",value:function(n){var r=this,o=n.drag.getDragElement(),a=this.instance.getId(o),s=n.pos,l=this.instance.viewport.getPosition(a),c={x:s.x,y:s.y};this._intersectingGroups.length=0,this._dragOffset!=null&&(c.x+=this._dragOffset.x,c.y+=this._dragOffset.y);var u=function(h,p,g){if(g){var v=new Set;Ke(r._groupLocations,function(m){!v.has(m.group.id)&&GE(p,m.r)?(m.group!==r._currentDragParentGroup&&r.instance.addClass(m.el,xa),r._intersectingGroups.push({groupLoc:m,intersectingElement:n.drag.getDragElement(!0),d:0}),Ke(r.instance.groupManager.getAncestors(m.group),function(y){return v.add(y.id)})):r.instance.removeClass(m.el,xa)})}r.instance.setElementPosition(h,p.x,p.y),r.instance.fire(QG,{el:h,e:n.e,pos:{x:p.x,y:p.y},originalPosition:r.originalPosition,payload:r._dragPayload})},f={x:c.x,y:c.y,w:l.w,h:l.h};u(o,f,!0),this._dragSelection.updatePositions(s,this.originalPosition,function(d,h,p,g){u(d,g,!1)}),this._currentDragGroupOffsets.forEach(function(d,h){var p=r._currentDragGroupSizes.get(h),g={x:f.x+d[0].x,y:f.y+d[0].y,w:p.w,h:p.h};d[1].style.left=g.x+"px",d[1].style.top=g.y+"px",u(d[1],g,!1)})}},{key:"_computeOffsetByParentGroup",value:function(n){var r=this.instance.getPosition(n.el),o=n.contentArea;if(o!==n.el){var a=this.instance.getPosition(o);r.x+=a.x,r.y+=a.y}if(n.el._jsPlumbParentGroup){var s=this._computeOffsetByParentGroup(n.el._jsPlumbParentGroup);r.x+=s.x,r.y+=s.y}return r}},{key:"onStart",value:function(n){var r=this,o=n.drag.getDragElement(),a=this.instance.getPosition(o);this.originalPosition={x:n.pos.x,y:n.pos.y},o._jsPlumbParentGroup&&(this._dragOffset=this._computeOffsetByParentGroup(o._jsPlumbParentGroup),this._currentDragParentGroup=o._jsPlumbParentGroup);var s=!0,l=o.getAttribute(vf);if((this.instance.elementsDraggable===!1||l!=null&&l!==vi)&&(s=!1),s){this._groupLocations.length=0,this._intersectingGroups.length=0,this.instance.hoverSuspended=!0;var c=n.drag.getDragElement(!0),u=c.querySelectorAll(Qt),f=uW(c),d=[];Array.prototype.push.apply(d,u),Array.prototype.push.apply(d,f),this._dragSelection.filterActiveSet(function(v){return d.indexOf(v.jel)===-1}),this._dragSelection.initialisePositions();var h=function(m,y,E){if(!m._isJsPlumbGroup||r.instance.allowNestedGroups){var x=!m._jsPlumbParentGroup,C=x||m._jsPlumbParentGroup.dropOverride!==!0,A=!x&&(m._jsPlumbParentGroup.ghost||m._jsPlumbParentGroup.constrain!==!0);(x||C&&A)&&(Ke(r.instance.groupManager.getGroups(),function(w){var b=m._jsPlumbGroup;if(w.droppable!==!1&&w.enabled!==!1&&m._jsPlumbGroup!==w&&!r.instance.groupManager.isDescendant(w,b)){var T=w.el,S=r.instance.getId(T),_=r.instance.viewport.getPosition(S),I={x:_.x,y:_.y,w:_.w,h:_.h},H={el:T,r:I,group:w};r._groupLocations.push(H),w!==r._currentDragParentGroup&&r.instance.addClass(T,ya)}}),r._groupLocations.sort(function(w,b){return r.instance.groupManager.isDescendant(w.group,b.group)?-1:r.instance.groupManager.isAncestor(b.group,w.group)?1:0}))}return r.instance.select({source:m}).addClass(r.instance.elementDraggingClass+" "+r.instance.sourceElementDraggingClass,!0),r.instance.select({target:m}).addClass(r.instance.elementDraggingClass+" "+r.instance.targetElementDraggingClass,!0),r.instance.fire(JG,{el:m,e:n.e,originalPosition:r.originalPosition,pos:r.originalPosition,dragGroup:y,dragGroupMemberSpec:E})},p=this.instance.getId(o);this._currentDragGroup=this._dragGroupByElementIdMap[p],this._currentDragGroup&&!cW(this._currentDragGroup,o)&&(this._currentDragGroup=null);var g=h(o);if(g===!1)return this._cleanup(),!1;this._dragPayload=g,this._currentDragGroup!=null&&(this._currentDragGroupOffsets.clear(),this._currentDragGroupSizes.clear(),this._currentDragGroup.members.forEach(function(v){var m=r.instance.viewport.getPosition(v.elId);r._currentDragGroupOffsets.set(v.elId,[{x:m.x-a.x,y:m.y-a.y},v.el]),r._currentDragGroupSizes.set(v.elId,m),r._currentDragGroupOriginalPositions.set(v.elId,{x:m.x,y:m.y}),h(v.el,r._currentDragGroup,v)}))}return s}},{key:"addToDragGroup",value:function(n){var r=this,o=lW(this.instance,n),a=this._dragGroupMap[o.id];a==null&&(a={id:o.id,members:new Set},this._dragGroupMap[o.id]=a);for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];this.removeFromDragGroup.apply(this,l),Ke(l,function(u){var f=r.instance.getId(u);a.members.add({elId:f,el:u,active:o.active}),r._dragGroupByElementIdMap[f]=a})}},{key:"removeFromDragGroup",value:function(){for(var n=this,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];Ke(o,function(s){var l=n.instance.getId(s),c=n._dragGroupByElementIdMap[l];if(c!=null){var u=new Set;c.members.forEach(function(f){f.el!==s&&u.add(f)}),c.members=u,delete n._dragGroupByElementIdMap[l]}})}},{key:"setDragGroupState",value:function(n){for(var r=this,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];var l=a.map(function(c){return r.instance.getId(c)});Ke(l,function(c){var u=r._dragGroupByElementIdMap[c];if(u!=null){var f=NE(u.members,function(d){return d.elId===c});f!=null&&(f.active=n)}})}},{key:"clearDragGroup",value:function(n){var r=this,o=this._dragGroupMap[n];o!=null&&(o.members.forEach(function(a){delete r._dragGroupByElementIdMap[a.elId]}),o.members.clear())}},{key:"_pruneOrOrphan",value:function(n,r,o){var a=n.el,s={pruned:!1,pos:null};if(o||!g2(this.instance,a,n.pos)){var l=a._jsPlumbParentGroup;l.prune?(a._isJsPlumbGroup?this.instance.removeGroup(a._jsPlumbGroup):l.remove(n.el,!0),s.pruned=!0):l.orphan&&(s.pos=this.instance.groupManager.orphan(n.el,r),a._isJsPlumbGroup?l.removeGroup(a._jsPlumbGroup):l.remove(n.el))}return s}}]),e}();function fW(e,t,n,r,o,a){var s=Kj(a,r,o),l={paintStyle:e.getPaintStyle(),preparedAnchor:s,element:r,scope:e.scope,cssClass:[Up,e.cssClass].join(" ")};t!=null&&(VE(t,gi)?l.existingEndpoint=t:l.endpoint=t);var c=a._internal_newEndpoint(l);return a._paintEndpoint(c,{}),c}function dW(e,t,n,r,o){for(var a=e.target||e.srcElement,s=!1,l=r.getSelector(t,n),c=0;c<l.length;c++)if(l[c]===a){s=!0;break}return o?!s:s}var hW=as(ya,xa),w2="sourceSelectorEndpoint",b2=function(){function e(t){Fn(this,e),this.instance=t,te(this,"jpc",void 0),te(this,"existingJpc",void 0),te(this,"_originalAnchorSpec",void 0),te(this,"ep",void 0),te(this,"endpointRepresentation",void 0),te(this,"canvasElement",void 0),te(this,"_activeDefinition",void 0),te(this,"placeholderInfo",{id:null,element:null}),te(this,"floatingIndex",void 0),te(this,"floatingId",void 0),te(this,"floatingElement",void 0),te(this,"floatingEndpoint",void 0),te(this,"floatingAnchor",void 0),te(this,"_stopped",void 0),te(this,"inPlaceCopy",void 0),te(this,"endpointDropTargets",[]),te(this,"currentDropTarget",null),te(this,"payload",void 0),te(this,"floatingConnections",{}),te(this,"_forceReattach",void 0),te(this,"_forceDetach",void 0),te(this,"mousedownHandler",void 0),te(this,"mouseupHandler",void 0),te(this,"selector",as(xi));var n=t.getContainer();this.mousedownHandler=this._mousedownHandler.bind(this),this.mouseupHandler=this._mouseupHandler.bind(this),t.on(n,Tn,Qt,this.mousedownHandler),t.on(n,kn,[Qt,as(xi)].join(","),this.mouseupHandler)}return zn(e,[{key:"_resolveDragParent",value:function(n,r){var o=this.instance.getContainer(),a=Fr(r,Qt,o,!0);if(n.parentSelector!=null){var s=Fr(r,n.parentSelector,o,!0);return s!=null&&(a=Fr(s.parentNode,Qt,o,!1)),s||a}else return a}},{key:"_mousedownHandler",value:function(n){var r,o;if(!(n.which===3||n.button===2)){var a=n.target||n.srcElement;if(o=this._getSourceDefinition(n),!(o!=null&&(r=this._resolveDragParent(o.def.def,a),r==null||r.getAttribute(If)===vi))&&o){var s=n.currentTarget,l;if(a.getAttribute(If)!==vi){if($l(n),this._activeDefinition=o,l=o.def.def,l.canAcceptNewConnection!=null&&!l.canAcceptNewConnection(r,n))return!1;var c=k2(n,r,this.instance.currentZoom),u={element:r};if(Xe(u,l),u.isTemporarySource=!0,l.scope)u.scope=l.scope;else{var f=a.getAttribute(sv);f!=null&&(u.scope=f)}var d=l.parameterExtractor?l.parameterExtractor(r,a,n):{};if(u=ef(u,d),u.maxConnections!=null&&u.maxConnections>=0){var h=this.instance.select({source:r}).length;if(h>=u.maxConnections)return $l(n),l.onMaxConnections&&l.onMaxConnections({element:r,maxConnections:u.maxConnections},n),n.stopImmediatePropagation&&n.stopImmediatePropagation(),!1}if(l.anchorPositionFinder){var p=l.anchorPositionFinder(r,c,l,n);p!=null&&(u.anchor=p)}this._originalAnchorSpec=u.anchor||(this.instance.areDefaultAnchorsSet()?this.instance.defaults.anchors[0]:this.instance.defaults.anchor);var g=this.instance.router.prepareAnchor(this._originalAnchorSpec),v=[c.x,c.y,0,0];if(g.locations.length>0)v[2]=g.locations[0].ox,v[3]=g.locations[0].oy;else if(g.isContinuous){var m=c.x<.5?c.x:1-c.x,y=c.y<.5?c.y:1-c.y;v[2]=m<y?c.x<.5?-1:1:0,v[3]=y<m?c.y<.5?-1:1:0}u.anchor=v,u.deleteOnEmpty=!0,this.ep=this.instance._internal_newEndpoint(u);var E={};if(l.extract){for(var x in l.extract){var C=a.getAttribute(x);C&&(E[l.extract[x]]=C)}this.ep.mergeParameters(E)}if(u.uniqueEndpoint){var A=this.ep.elementId,w=this.instance.getManagedData(A,w2,o.id);w==null?(this.instance.setManagedData(A,w2,o.id,this.ep),this.ep.deleteOnEmpty=!1):this.ep.finalEndpoint=w}s._jsPlumbOrphanedEndpoints=s._jsPlumbOrphanedEndpoints||[],s._jsPlumbOrphanedEndpoints.push(this.ep),this.instance.trigger(this.ep.endpoint.canvas,Tn,n,E)}}}}},{key:"_mouseupHandler",value:function(n){var r=n.currentTarget||n.srcElement;r._jsPlumbOrphanedEndpoints&&(pU(r._jsPlumbOrphanedEndpoints,this.instance._maybePruneEndpoint.bind(this.instance)),r._jsPlumbOrphanedEndpoints.length=0),this._activeDefinition=null}},{key:"onDragInit",value:function(n){var r=_f(n,this.instance),o=tc(n,this.instance);return this._makeDraggablePlaceholder(r,o),this.placeholderInfo.element.jtk=n.jtk,this.placeholderInfo.element}},{key:"onDragAbort",value:function(n){this._cleanupDraggablePlaceholder()}},{key:"_makeDraggablePlaceholder",value:function(n,r){this.placeholderInfo=this.placeholderInfo||{};var o=QC(n2,{position:"absolute"});this.instance._appendElementToContainer(o);var a=this.instance.getId(o);return this.instance.setPosition(o,n),o.style.width=r.w+"px",o.style.height=r.h+"px",this.instance.manage(o),this.placeholderInfo.id=a,this.placeholderInfo.element=o,o}},{key:"_cleanupDraggablePlaceholder",value:function(){this.placeholderInfo.element&&(this.instance.unmanage(this.placeholderInfo.element,!0),delete this.placeholderInfo.element,delete this.placeholderInfo.id)}},{key:"reset",value:function(){var n=this.instance.getContainer();this.instance.off(n,kn,this.mouseupHandler),this.instance.off(n,Tn,this.mousedownHandler)}},{key:"init",value:function(n){}},{key:"startNewConnectionDrag",value:function(n,r){this.jpc=this.instance._newConnection({sourceEndpoint:this.ep,targetEndpoint:this.floatingEndpoint,source:this.ep.element,target:this.placeholderInfo.element,paintStyle:this.ep.connectorStyle,hoverPaintStyle:this.ep.connectorHoverStyle,connector:this.ep.connector,overlays:this.ep.connectorOverlays,type:this.ep.edgeType,cssClass:this.ep.connectorClass,hoverClass:this.ep.connectorHoverClass,scope:n,data:r}),this.jpc.pending=!0,this.jpc.addClass(this.instance.draggingClass),this.ep.addClass(this.instance.draggingClass),this.instance.fire(r2,this.jpc)}},{key:"startExistingConnectionDrag",value:function(){this.existingJpc=!0,this.instance.setHover(this.jpc,!1);var n=this.jpc.endpoints[0].id===this.ep.id?0:1;this.ep.detachFromConnection(this.jpc,null,!0),this.floatingEndpoint.addConnection(this.jpc),this.instance.fire(r2,this.jpc),this.instance.sourceOrTargetChanged(this.jpc.endpoints[n].elementId,this.placeholderInfo.id,this.jpc,this.placeholderInfo.element,n),this.jpc.suspendedEndpoint=this.jpc.endpoints[n],this.jpc.suspendedElement=this.jpc.endpoints[n].element,this.jpc.suspendedElementId=this.jpc.endpoints[n].elementId,this.jpc.suspendedElementType=n===0?Lp:$E,this.instance.setHover(this.jpc.suspendedEndpoint,!1),this.floatingEndpoint.referenceEndpoint=this.jpc.suspendedEndpoint,this.floatingEndpoint.mergeParameters(this.jpc.suspendedEndpoint.parameters),this.jpc.endpoints[n]=this.floatingEndpoint,this.jpc.addClass(this.instance.draggingClass),this.floatingId=this.placeholderInfo.id,this.floatingIndex=n,this.instance._refreshEndpoint(this.ep)}},{key:"_shouldStartDrag",value:function(){var n=!0;this.ep.enabled||(n=!1),this.jpc==null&&!this.ep.isSource&&!this.ep.isTemporarySource&&(n=!1),this.ep.isSource&&this.ep.isFull()&&!(this.jpc!=null&&this.ep.dragAllowedWhenFull)&&(n=!1),this.jpc!=null&&!this.jpc.isDetachable(this.ep)&&(this.ep.isFull()?n=!1:this.jpc=null);var r={},o=this.instance.checkCondition(this.jpc==null?pj:gj,{endpoint:this.ep,source:this.ep.element,sourceId:this.ep.elementId,connection:this.jpc});return o===!1?n=!1:_i(o)==="object"?(r=o,Xe(r,this.payload||{})):r=this.payload||{},[n,r]}},{key:"_createFloatingEndpoint",value:function(n){var r=this.ep.endpoint;if(this.ep.edgeType!=null){var o=this.instance._deriveEndpointAndAnchorSpec(this.ep.edgeType);r=o.endpoints[1]}this.floatingEndpoint=fW(this.ep,r,n,this.placeholderInfo.element,this.placeholderInfo.id,this.instance),this.floatingAnchor=this.floatingEndpoint._anchor,this.floatingEndpoint.deleteOnEmpty=!0,this.floatingElement=this.floatingEndpoint.endpoint.canvas,this.floatingId=this.instance.getId(this.floatingElement)}},{key:"_populateTargets",value:function(n,r){var o=this,a=this.jpc&&this.jpc.endpoints[0]===this.ep,s,l=this.instance.getContainer().querySelectorAll([".",xi,"[",oC,this.ep.scope,"]:not(.",Up,")"].join(""));if(Ke(l,function(d){if((o.jpc!=null||d!==n)&&d!==o.floatingElement&&(o.jpc!=null||!d.jtk.endpoint.isFull())&&(a&&d.jtk.endpoint.isSource||!a&&d.jtk.endpoint.isTarget)){var h=_f(d,o.instance),p=tc(d,o.instance);s={x:h.x,y:h.y,w:p.w,h:p.h},o.endpointDropTargets.push({el:d,targetEl:d,r:s,endpoint:d.jtk.endpoint,def:null}),o.instance.addClass(d,ya)}}),a){var c=kp(this.instance.sourceSelectors,function(d){return d.isEnabled()&&(d.def.def.scope==null||d.def.def.scope===o.ep.scope)});if(c!=null){var u=this._findTargetZones(c);Ke(u,function(d){if(d.getAttribute(If)!==vi){var h=d.getAttribute(sv);if(h!=null&&h!==o.ep.scope)return;var p={r:null,el:d};p.targetEl=Fr(d,Qt,o.instance.getContainer(),!0);var g=_f(p.el,o.instance),v=tc(p.el,o.instance);p.r={x:g.x,y:g.y,w:v.w,h:v.h},c.def.def.rank!=null&&(p.rank=c.def.def.rank),p.def=c.def,o.endpointDropTargets.push(p),o.instance.addClass(p.targetEl,ya)}})}}else{var f=dU(this.instance.targetSelectors,function(d){return d.isEnabled()});f.forEach(function(d){var h=o._findTargetZones(d);Ke(h,function(p){if(p.getAttribute(If)!==vi){var g=p.getAttribute(sv);if(g!=null&&g!==o.ep.scope)return;var v={r:null,el:p};if(d.def.def.parentSelector!=null&&(v.targetEl=Fr(p,d.def.def.parentSelector,o.instance.getContainer(),!0)),v.targetEl==null&&(v.targetEl=Fr(p,Qt,o.instance.getContainer(),!0)),(d.def.def.allowLoopback===!1||o._activeDefinition&&o._activeDefinition.def.def.allowLoopback===!1)&&v.targetEl===o.ep.element||d.def.def.canAcceptNewConnection!=null&&!d.def.def.canAcceptNewConnection(v.targetEl,r))return;var m=d.def.def.maxConnections;if(m!=null&&m!==-1&&o.instance.select({target:v.targetEl}).length>=m)return;var y=_f(p,o.instance),E=tc(p,o.instance);v.r={x:y.x,y:y.y,w:E.w,h:E.h},v.def=d.def,d.def.def.rank!=null&&(v.rank=d.def.def.rank),o.endpointDropTargets.push(v),o.instance.addClass(v.targetEl,ya)}})})}this.endpointDropTargets.sort(function(d,h){if(d.targetEl._isJsPlumbGroup&&!h.targetEl._isJsPlumbGroup)return 1;if(!d.targetEl._isJsPlumbGroup&&h.targetEl._isJsPlumbGroup)return-1;if(d.targetEl._isJsPlumbGroup&&h.targetEl._isJsPlumbGroup){if(o.instance.groupManager.isAncestor(d.targetEl._jsPlumbGroup,h.targetEl._jsPlumbGroup))return-1;if(o.instance.groupManager.isAncestor(h.targetEl._jsPlumbGroup,d.targetEl._jsPlumbGroup))return 1}else if(d.rank!=null&&h.rank!=null){if(d.rank>h.rank)return-1;if(d.rank<h.rank)return 1}else return 0})}},{key:"_findTargetZones",value:function(n){var r;if(n.redrop===dG){var o=this.instance.targetSelectors.map(function(s){return s.selector});o.push.apply(o,KC(this.instance.sourceSelectors.map(function(s){return s.selector}))),o.push(Qt),r=o.join(",")}else if(n.redrop===UC)r=n.selector;else if(n.redrop===hG)r=this.instance.sourceSelectors.map(function(s){return s.selector}).join(",");else if(n.redrop===pG)r=this.instance.targetSelectors.map(function(s){return s.selector}).join(",");else if(n.redrop===vG){var a=this.instance.targetSelectors.map(function(s){return s.selector});a.push.apply(a,KC(this.instance.sourceSelectors.map(function(s){return s.selector}))),r=a.join(",")}return this.instance.getContainer().querySelectorAll(r)}},{key:"onStart",value:function(n){this.endpointDropTargets.length=0,this.currentDropTarget=null,this._stopped=!1;var r=n.drag.getDragElement();if(this.ep=r.jtk.endpoint,!this.ep)return!1;this.endpointRepresentation=this.ep.endpoint,this.canvasElement=this.endpointRepresentation.canvas,this.jpc=this.ep.connectorSelector();var o=this._shouldStartDrag(),a=SG(o,2),s=a[0],l=a[1];if(s===!1)return this._stopped=!0,!1;this.instance.setHover(this.ep,!1),this.instance.isConnectionBeingDragged=!0,this.jpc&&!this.ep.isFull()&&this.ep.isSource&&(this.jpc=null),this._createFloatingEndpoint(this.canvasElement),this._populateTargets(this.canvasElement,n.e),this.jpc==null?this.startNewConnectionDrag(this.ep.scope,l):this.startExistingConnectionDrag(),this._registerFloatingConnection(this.placeholderInfo,this.jpc),this.instance.currentlyDragging=!0}},{key:"onBeforeStart",value:function(n){this.payload=n.e.payload||{}}},{key:"onDrag",value:function(n){if(this._stopped)return!0;if(this.placeholderInfo.element){var r=tc(this.floatingElement,this.instance);this.instance.setElementPosition(this.placeholderInfo.element,n.pos.x,n.pos.y);for(var o={x:n.pos.x,y:n.pos.y,w:r.w,h:r.h},a,s,l,c=0;c<this.endpointDropTargets.length;c++)if(GE(o,this.endpointDropTargets[c].r)){a=this.endpointDropTargets[c];break}if(a!==this.currentDropTarget&&this.currentDropTarget!=null&&(s=this._getFloatingAnchorIndex(),this.instance.removeClass(this.currentDropTarget.el,xa),this.currentDropTarget.endpoint&&(this.currentDropTarget.endpoint.endpoint.removeClass(this.instance.endpointDropAllowedClass),this.currentDropTarget.endpoint.endpoint.removeClass(this.instance.endpointDropForbiddenClass)),this.floatingAnchor.out()),a!=null&&(this.instance.addClass(a.el,xa),s=this._getFloatingAnchorIndex(),a.endpoint!=null))if(l=a.endpoint.isSource&&s===0||a.endpoint.isTarget&&s!==0||this.jpc.suspendedEndpoint&&a.endpoint.referenceEndpoint&&a.endpoint.referenceEndpoint.id===this.jpc.suspendedEndpoint.id,l){var u=this.instance.checkCondition(WU,{sourceEndpoint:this.jpc.endpoints[s],targetEndpoint:a.endpoint.endpoint,connection:this.jpc});u?(a.endpoint.endpoint.addClass(this.instance.endpointDropAllowedClass),a.endpoint.endpoint.removeClass(this.instance.endpointDropForbiddenClass)):(a.endpoint.endpoint.removeClass(this.instance.endpointDropAllowedClass),a.endpoint.endpoint.addClass(this.instance.endpointDropForbiddenClass)),this.floatingAnchor.over(a.endpoint),this.instance._paintConnection(this.jpc)}else a=null;this.currentDropTarget=a}}},{key:"_maybeCleanup",value:function(n){n._mtNew&&n.connections.length===0?this.instance.deleteEndpoint(n):delete n._mtNew}},{key:"_reattachOrDiscard",value:function(n){var r=this.jpc.suspendedEndpoint!=null,o=this._getFloatingAnchorIndex();return r&&this._shouldReattach()?(o===0?(this.jpc.source=this.jpc.suspendedElement,this.jpc.sourceId=this.jpc.suspendedElementId):(this.jpc.target=this.jpc.suspendedElement,this.jpc.targetId=this.jpc.suspendedElementId),this._doForceReattach(o),!0):(this._discard(o,n),!1)}},{key:"onStop",value:function(n){var r=this,o=n.e;this.instance.isConnectionBeingDragged=!1,this.instance.currentlyDragging=!1;var a=jU(xa,ya),s=this.instance.getContainer().querySelectorAll(hW);if(Ke(s,function(h){r.instance.removeClass(h,a)}),this.jpc&&this.jpc.endpoints!=null){var l=this.jpc.suspendedEndpoint!=null,c=this._getFloatingAnchorIndex(),u=this.jpc.suspendedEndpoint,f;if(this.currentDropTarget!=null)if(f=this._getDropEndpoint(n,this.jpc),f==null)this._reattachOrDiscard(n.e);else if(u&&u.id===f.id)this._doForceReattach(c);else if(!f.enabled)this._reattachOrDiscard(n.e);else if(f.isFull())f.fire(lC,{endpoint:this,connection:this.jpc,maxConnections:this.instance.defaults.maxConnections},o),this._reattachOrDiscard(n.e);else{c===0?(this.jpc.source=f.element,this.jpc.sourceId=f.elementId):(this.jpc.target=f.element,this.jpc.targetId=f.elementId);var d=!0;l&&this.jpc.suspendedEndpoint.id!==f.id&&(!this.jpc.isDetachAllowed(this.jpc)||!this.jpc.endpoints[c].isDetachAllowed(this.jpc)||!this.jpc.suspendedEndpoint.isDetachAllowed(this.jpc)||!this.instance.checkCondition("beforeDetach",this.jpc))&&(d=!1),d=d&&f.isDropAllowed(this.jpc.sourceId,this.jpc.targetId,this.jpc.scope,this.jpc,f),d?this._drop(f,c,o,d):this._reattachOrDiscard(n.e)}else this._reattachOrDiscard(n.e);this.instance._refreshEndpoint(this.ep),this.ep.removeClass(this.instance.draggingClass),this._cleanupDraggablePlaceholder(),this.jpc.removeClass(this.instance.draggingClass),delete this.jpc.suspendedEndpoint,delete this.jpc.suspendedElement,delete this.jpc.suspendedElementType,delete this.jpc.suspendedElementId,delete this.jpc.suspendedIndex,delete this.floatingId,delete this.floatingIndex,delete this.floatingElement,delete this.floatingEndpoint,delete this.floatingAnchor,delete this.jpc.pending,f!=null&&this._maybeCleanup(f)}}},{key:"_getSourceDefinition",value:function(n){for(var r,o=this.instance.getContainer(),a=0;a<this.instance.sourceSelectors.length;a++)if(r=this.instance.sourceSelectors[a],r.isEnabled()){var s=dW(n,o,r.selector,this.instance,r.exclude);if(s!==!1)return r}}},{key:"_getDropEndpoint",value:function(n,r){var o;if(this.currentDropTarget.endpoint==null){var a=this.currentDropTarget.def,s=n.e.target||n.e.srcElement;if(a==null)return null;var l=this.currentDropTarget.targetEl,c=k2(n.e,l,this.instance.currentZoom),u=this.instance._deriveEndpointAndAnchorSpec(r.getType().join(" "),!0),f=u.endpoints?Xe(n,{endpoint:a.def.endpoint||u.endpoints[1],cssClass:a.def.cssClass||"",source:a.def.source===!0,target:a.def.target===!0}):n,d=this.instance.validAnchorsSpec(u.anchors)?u.anchors:this.instance.areDefaultAnchorsSet()?this.instance.defaults.anchors:null,h=a.def.anchor,p=a.def.anchorPositionFinder?a.def.anchorPositionFinder(l,c,a.def,n.e):null,g=p??h??(d!=null&&d[1]!=null?d[1]:null);g!=null&&(f=Xe(f,{anchor:g})),a.def.portId!=null&&(f.portId=a.def.portId);var v=a.def.parameterExtractor?a.def.parameterExtractor(this.currentDropTarget.el,s,n.e):{};if(f=ef(f,v),f.element=l,o=this.instance._internal_newEndpoint(f),o._mtNew=!0,o.deleteOnEmpty=!0,a.def.parameters&&o.mergeParameters(a.def.parameters),a.def.extract){var m={};for(var y in a.def.extract){var E=this.currentDropTarget.el.getAttribute(y);E&&(m[a.def.extract[y]]=E)}o.mergeParameters(m)}}else o=this.currentDropTarget.endpoint;return o&&(o.removeClass(this.instance.endpointDropAllowedClass),o.removeClass(this.instance.endpointDropForbiddenClass)),o}},{key:"_doForceReattach",value:function(n){this.floatingEndpoint.detachFromConnection(this.jpc,null,!0),this.jpc.endpoints[n]=this.jpc.suspendedEndpoint,this.instance.setHover(this.jpc,!1),this.jpc._forceDetach=!0,this.jpc.suspendedEndpoint.addConnection(this.jpc),this.instance.sourceOrTargetChanged(this.floatingId,this.jpc.suspendedEndpoint.elementId,this.jpc,this.jpc.suspendedEndpoint.element,n),this.instance.deleteEndpoint(this.floatingEndpoint),this.instance.repaint(this.jpc.source),delete this.jpc._forceDetach}},{key:"_shouldReattach",value:function(){if(this.jpc.isReattach()||this.jpc._forceReattach)return!0;var n=this.jpc.suspendedEndpoint,r=this.jpc.suspendedElementType==Lp?1:0,o=this.jpc.endpoints[r];return!FE(!0,!1,[[n,Ei,[this.jpc]],[o,Ei,[this.jpc]],[this.jpc,Ei,[this.jpc]],[this.instance,rC,[uC,this.jpc]]])}},{key:"_discard",value:function(n,r){this.jpc.pending?this.instance.fire(ZG,this.jpc,r):(n===0?(this.jpc.source=this.jpc.suspendedEndpoint.element,this.jpc.sourceId=this.jpc.suspendedEndpoint.elementId):(this.jpc.target=this.jpc.suspendedEndpoint.element,this.jpc.targetId=this.jpc.suspendedEndpoint.elementId),this.jpc.endpoints[n]=this.jpc.suspendedEndpoint),this.floatingEndpoint&&this.floatingEndpoint.detachFromConnection(this.jpc),this.instance.deleteConnection(this.jpc,{originalEvent:r,force:!0})}},{key:"_drop",value:function(n,r,o,a){if(this.jpc.endpoints[r].detachFromConnection(this.jpc),this.jpc.suspendedEndpoint&&this.jpc.suspendedEndpoint.detachFromConnection(this.jpc),this.jpc.endpoints[r]=n,n.addConnection(this.jpc),this.jpc.suspendedEndpoint){var s=this.jpc.suspendedEndpoint.elementId;this.instance.fireMoveEvent({index:r,originalSourceId:r===0?s:this.jpc.sourceId,newSourceId:r===0?n.elementId:this.jpc.sourceId,originalTargetId:r===1?s:this.jpc.targetId,newTargetId:r===1?n.elementId:this.jpc.targetId,originalEndpoint:this.jpc.suspendedEndpoint,connection:this.jpc,newEndpoint:n},o)}if(r===1?this.instance.sourceOrTargetChanged(this.floatingId,this.jpc.targetId,this.jpc,this.jpc.target,1):this.instance.sourceOrTargetChanged(this.floatingId,this.jpc.sourceId,this.jpc,this.jpc.source,0),this.jpc.endpoints[0].finalEndpoint){var l=this.jpc.endpoints[0];l.detachFromConnection(this.jpc),this.jpc.endpoints[0]=this.jpc.endpoints[0].finalEndpoint,this.jpc.endpoints[0].addConnection(this.jpc)}fi(a)&&this.jpc.mergeData(a),this._originalAnchorSpec&&(this.jpc.endpoints[0].setAnchor(this._originalAnchorSpec),this._originalAnchorSpec=null),this.instance._finaliseConnection(this.jpc,null,o),this.instance.setHover(this.jpc,!1),this.instance.revalidate(this.jpc.endpoints[0].element)}},{key:"_registerFloatingConnection",value:function(n,r){this.floatingConnections[n.id]=r}},{key:"_getFloatingAnchorIndex",value:function(){return this.floatingIndex==null?1:this.floatingIndex}}]),e}(),A2=function(e){Of(n,e);var t=Pf(n);function n(r,o){var a;return Fn(this,n),a=t.call(this,r,o),a.instance=r,a.dragSelection=o,te(xe(a),"selector",[">",yz,Qt].join(" ")),te(xe(a),"doRevalidate",void 0),a.doRevalidate=a._revalidate.bind(xe(a)),a}return zn(n,[{key:"reset",value:function(){this.drag.off(Ff,this.doRevalidate)}},{key:"_revalidate",value:function(o){this.instance.revalidate(o)}},{key:"init",value:function(o){this.drag=o,o.on(Ff,this.doRevalidate)}},{key:"useGhostProxy",value:function(o,a){var s=a._jsPlumbParentGroup;return s==null?!1:s.ghost===!0}},{key:"makeGhostProxy",value:function(o){var a=o,s=a.cloneNode(!0);return s._jsPlumbParentGroup=a._jsPlumbParentGroup,s}}]),n}(yv),xv=function(){function e(t,n){Fn(this,e),this.instance=t,this.overlay=n,te(this,"htmlElementOverlay",void 0),this.htmlElementOverlay=n}return zn(e,null,[{key:"getElement",value:function(n,r,o){if(n.canvas==null){if(o&&r){n.canvas=o(r);var a=n.instance.overlayClass+" "+(n.cssClass?n.cssClass:"");n.instance.addClass(n.canvas,a)}else n.canvas=QC(n2,{},n.instance.overlayClass+" "+(n.cssClass?n.cssClass:""));n.instance.setAttribute(n.canvas,"jtk-overlay-id",n.id);for(var s in n.attributes)n.instance.setAttribute(n.canvas,s,n.attributes[s]);n.canvas.style.position=Yl,n.instance._appendElement(n.canvas,n.instance.getContainer()),n.instance.getId(n.canvas);var l="translate(-50%, -50%)";n.canvas.style.webkitTransform=l,n.canvas.style.mozTransform=l,n.canvas.style.msTransform=l,n.canvas.style.oTransform=l,n.canvas.style.transform=l,n.isVisible()||(n.canvas.style.display=yi),n.canvas.jtk={overlay:n}}return n.canvas}},{key:"destroy",value:function(n){n.canvas&&n.canvas.parentNode&&n.canvas.parentNode.removeChild(n.canvas),delete n.canvas,delete n.cachedDimensions}},{key:"_getDimensions",value:function(n,r){return(n.cachedDimensions==null||r)&&(n.cachedDimensions={w:1,h:1}),n.cachedDimensions}}]),e}();function cc(e){if(e.path==null){var t=Xe({"jtk-overlay-id":e.id},e.attributes);e.path=Br(rv,t);var n=e.instance.overlayClass+" "+(e.cssClass?e.cssClass:"");e.instance.addClass(e.path,n),e.path.jtk={overlay:e}}var r=e.path.parentNode;if(r==null){if(e.component instanceof ql){var o=e.component.connector;r=o!=null?o.canvas:null}else if(e.component instanceof ki){var a=e.component.endpoint;r=a!=null?a.canvas:a}r!=null&&Df(r,e.path,1)}return e.path}function pW(e,t,n,r){cc(e);var o=[0,0];r.xmin<0&&(o[0]=-r.xmin),r.ymin<0&&(o[1]=-r.ymin);var a={d:t,stroke:n.stroke?n.stroke:null,fill:n.fill?n.fill:null,transform:"translate("+o[0]+","+o[1]+")","pointer-events":"visibleStroke"};Nr(e.path,a)}function vW(e,t){var n=e;n.path!=null&&n.path.parentNode!=null&&n.path.parentNode.removeChild(n.path),n.bgPath!=null&&n.bgPath.parentNode!=null&&n.bgPath.parentNode.removeChild(n.bgPath),delete n.path,delete n.bgPath}(function(e){Of(n,e);var t=Pf(n);function n(){var r;Fn(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=t.call.apply(t,[this].concat(a)),te(xe(r),"path",void 0),r}return n})(yf);var S2=function(){function e(){Fn(this,e)}return zn(e,null,[{key:"paint",value:function(n,r,o,a){if(o!=null){var s=[n.x,n.y],l=[n.w,n.h];if(a!=null&&(a.xmin<0&&(s[0]+=a.xmin),a.ymin<0&&(s[1]+=a.ymin),l[0]=a.xmax+(a.xmin<0?-a.xmin:0),l[1]=a.ymax+(a.ymin<0?-a.ymin:0)),isFinite(l[0])&&isFinite(l[1])){var c={width:""+(l[0]||0),height:""+(l[1]||0)};r.containerType===fs.HTML?Nr(n.canvas,Xe(c,{style:e2([s[0],s[1]])})):Nr(n.canvas,Xe(c,{x:s[0],y:s[1]}))}}}}]),e}();function gW(e,t,n,r){mW(e,t),S2.paint(t,e,n,r);var o="",a=[0,0];if(r.xmin<0&&(a[0]=-r.xmin),r.ymin<0&&(a[1]=-r.ymin),t.segments.length>0){o=e.getPathData(t);var s={d:o,transform:"translate("+a[0]+","+a[1]+")","pointer-events":"visibleStroke"},l=null;if(n.outlineStroke){var c=n.outlineWidth||1,u=n.strokeWidth+2*c;l=Xe({},n),l.stroke=n.outlineStroke,l.strokeWidth=u,t.bgPath==null?(t.bgPath=Br(rv,s),e.addClass(t.bgPath,e.connectorOutlineClass),Df(t.canvas,t.bgPath,0)):Nr(t.bgPath,s),av(t.canvas,t.bgPath,l)}var f=t;f.path==null?(f.path=Br(rv,s),Df(f.canvas,f.path,n.outlineStroke?1:0)):(f.path.parentNode!==f.canvas&&Df(f.canvas,f.path,n.outlineStroke?1:0),Nr(t.path,s)),av(t.canvas,t.path,n)}}function mW(e,t){if(t.canvas!=null)return t.canvas;var n=Br(qC,{style:"",width:"0",height:"0","pointer-events":yi,position:Yl});return t.canvas=n,e._appendElement(t.canvas,e.getContainer()),t.cssClass!=null&&e.addClass(n,t.cssClass),e.addClass(n,e.connectorClass),n.jtk=n.jtk||{},n.jtk.connector=t,n}var yW=function(){function e(){Fn(this,e)}return zn(e,null,[{key:"getEndpointElement",value:function(n){if(n.canvas!=null)return n.canvas;var r=Br(qC,{style:"",width:"0",height:"0","pointer-events":"all",position:Yl});n.canvas=r;var o=n.classes.join(" ");n.instance.addClass(r,o);for(var a=n.endpoint.scope.split(/\s/),s=0;s<a.length;s++)n.instance.setAttribute(r,oC+a[s],KE);return n.instance._appendElementToContainer(r),n.cssClass!=null&&n.instance.addClass(r,n.cssClass),n.instance.addClass(r,n.instance.endpointClass),r.jtk=r.jtk||{},r.jtk.endpoint=n.endpoint,r.style.display=n.endpoint.visible!==!1?Vp:yi,r}},{key:"paint",value:function(n,r,o){if(n.endpoint.deleted!==!0){this.getEndpointElement(n),S2.paint(n,n.instance,o);var a=Xe({},o);a.outlineStroke&&(a.stroke=a.outlineStroke),n.node==null?(n.node=r.makeNode(n,a),n.canvas.appendChild(n.node)):r.updateNode!=null&&r.updateNode(n,n.node),av(n.canvas,n.node,a)}}}]),e}(),T2={};function Ev(e,t){T2[e]=t}function k2(e,t,n){var r=t,o=_i(t.getBoundingClientRect)!==WE?t.getBoundingClientRect():{left:0,top:0,width:0,height:0},a=document.body,s=document.documentElement,l=window.pageYOffset||s.scrollTop||a.scrollTop,c=window.pageXOffset||s.scrollLeft||a.scrollLeft,u=s.clientTop||a.clientTop||0,f=s.clientLeft||a.clientLeft||0,d=0,h=0,p=o.top+l-u+d*n,g=o.left+c-f+h*n,v=Bf(e),m=o.width||r.offsetWidth*n,y=o.height||r.offsetHeight*n,E=(v.x-g)/m,x=(v.y-p)/y;return{x:E,y:x}}function Bi(e){return Xp(e)||Zp(e)||Jp(e)}function O2(e,t){e.canvas&&(e.canvas.style.display=t?"block":"none")}function P2(e){e.canvas&&e.canvas.parentNode.removeChild(e.canvas),delete e.canvas}function uc(e){return e.canvas}function Jo(e){return xv.getElement(e)}function ps(e){return xv.getElement(e,e.component,function(t){var n=e.create(t);return e.instance.addClass(n,e.instance.overlayClass),n})}function xW(e,t,n,r){var o=e.x,a=e.y;return t._jsPlumbParentGroup&&t._jsPlumbParentGroup.constrain&&(o=Math.max(e.x,0),a=Math.max(e.y,0),o=Math.min(o,n.w-r.w),a=Math.min(a,n.h-r.h)),{x:o,y:a}}var EW=function(e){Of(n,e);var t=Pf(n);function n(r,o){var a;if(Fn(this,n),a=t.call(this,r,o),a._instanceIndex=r,te(xe(a),"containerType",null),te(xe(a),"dragSelection",void 0),te(xe(a),"dragManager",void 0),te(xe(a),"_connectorClick",void 0),te(xe(a),"_connectorDblClick",void 0),te(xe(a),"_connectorTap",void 0),te(xe(a),"_connectorDblTap",void 0),te(xe(a),"_endpointClick",void 0),te(xe(a),"_endpointDblClick",void 0),te(xe(a),"_overlayClick",void 0),te(xe(a),"_overlayDblClick",void 0),te(xe(a),"_overlayTap",void 0),te(xe(a),"_overlayDblTap",void 0),te(xe(a),"_connectorMouseover",void 0),te(xe(a),"_connectorMouseout",void 0),te(xe(a),"_endpointMouseover",void 0),te(xe(a),"_endpointMouseout",void 0),te(xe(a),"_connectorContextmenu",void 0),te(xe(a),"_connectorMousedown",void 0),te(xe(a),"_connectorMouseup",void 0),te(xe(a),"_endpointMousedown",void 0),te(xe(a),"_endpointMouseup",void 0),te(xe(a),"_overlayMouseover",void 0),te(xe(a),"_overlayMouseout",void 0),te(xe(a),"_elementClick",void 0),te(xe(a),"_elementTap",void 0),te(xe(a),"_elementDblTap",void 0),te(xe(a),"_elementMouseenter",void 0),te(xe(a),"_elementMouseexit",void 0),te(xe(a),"_elementMousemove",void 0),te(xe(a),"_elementMouseup",void 0),te(xe(a),"_elementMousedown",void 0),te(xe(a),"_elementContextmenu",void 0),te(xe(a),"_resizeObserver",void 0),te(xe(a),"eventManager",void 0),te(xe(a),"draggingClass","jtk-dragging"),te(xe(a),"elementDraggingClass","jtk-element-dragging"),te(xe(a),"hoverClass","jtk-hover"),te(xe(a),"sourceElementDraggingClass","jtk-source-element-dragging"),te(xe(a),"targetElementDraggingClass","jtk-target-element-dragging"),te(xe(a),"hoverSourceClass","jtk-source-hover"),te(xe(a),"hoverTargetClass","jtk-target-hover"),te(xe(a),"dragSelectClass","jtk-drag-select"),te(xe(a),"managedElementsSelector",void 0),te(xe(a),"elementsDraggable",void 0),te(xe(a),"elementDragHandler",void 0),te(xe(a),"groupDragOptions",void 0),te(xe(a),"elementDragOptions",void 0),te(xe(a),"svg",{node:function(l,c){return Br(l,c)},attr:function(l,c){return Nr(l,c)},pos:function(l){return e2(l)}}),o=o||{},a.containerType=nv(a.getContainer()),a.elementsDraggable=o&&o.elementsDraggable!==!1,a.managedElementsSelector=o&&o.managedElementsSelector||Qt,a.eventManager=new v2,a.dragSelection=new tW(xe(a)),a.dragManager=new iW(xe(a),a.dragSelection),a.dragManager.addHandler(new b2(xe(a))),a.groupDragOptions={constrainFunction:xW},a.dragManager.addHandler(new A2(xe(a),a.dragSelection),a.groupDragOptions),a.elementDragHandler=new yv(xe(a),a.dragSelection),a.elementDragOptions=o&&o.dragOptions||{},a.dragManager.addHandler(a.elementDragHandler,a.elementDragOptions),o&&o.dragOptions&&o.dragOptions.filter&&a.dragManager.addFilter(o.dragOptions.filter),a._createEventListeners(),a._attachEventDelegates(),o.resizeObserver!==!1)try{a._resizeObserver=new ResizeObserver(function(s){var l=s.filter(function(c){var u=a.getAttribute(c.target,da);if(u!=null){var f=a.viewport._elementMap.get(u);return f?f.w!==c.contentRect.width||f.h!==c.contentRect.height:!1}else return!1});l.forEach(function(c){return a.revalidate(c.target)})})}catch{ln("WARN: ResizeObserver could not be attached.")}return a}return zn(n,[{key:"fireOverlayMethod",value:function(o,a,s){var l=o.component instanceof ql?ur:Rr,c=St(l,a);s._jsPlumbOverlay=o,o.fire(a,{e:s,overlay:o}),this.fire(c,o.component,s)}},{key:"addDragFilter",value:function(o,a){this.dragManager.addFilter(o,a)}},{key:"removeDragFilter",value:function(o){this.dragManager.removeFilter(o)}},{key:"setDragGrid",value:function(o){this.dragManager.setOption(this.elementDragHandler,{grid:o})}},{key:"setDragConstrainFunction",value:function(o){this.dragManager.setOption(this.elementDragHandler,{constrainFunction:o})}},{key:"_removeElement",value:function(o){o.parentNode&&o.parentNode.removeChild(o)}},{key:"_appendElement",value:function(o,a){a&&a.appendChild(o)}},{key:"_appendElementToGroup",value:function(o,a){this.getGroupContentArea(o).appendChild(a)}},{key:"_appendElementToContainer",value:function(o){this._appendElement(o,this.getContainer())}},{key:"_getAssociatedElements",value:function(o){var a=[];if(o.nodeType!==3&&o.nodeType!==8){var s=o.querySelectorAll(Qt);Array.prototype.push.apply(a,s)}return a.filter(function(l){return l.nodeType!==3&&l.nodeType!==8})}},{key:"shouldFireEvent",value:function(o,a,s){return!0}},{key:"getClass",value:function(o){return FG(o)}},{key:"addClass",value:function(o,a){us(o,a)}},{key:"hasClass",value:function(o,a){return NG(o,a)}},{key:"removeClass",value:function(o,a){tv(o,a)}},{key:"toggleClass",value:function(o,a){BG(o,a)}},{key:"setAttribute",value:function(o,a,s){o.setAttribute(a,s)}},{key:"getAttribute",value:function(o,a){return o.getAttribute(a)}},{key:"setAttributes",value:function(o,a){for(var s in a)o.setAttribute(s,a[s])}},{key:"removeAttribute",value:function(o,a){o.removeAttribute&&o.removeAttribute(a)}},{key:"on",value:function(o,a,s,l){var c=this,u=function(d){l==null?c.eventManager.on(d,a,s):c.eventManager.on(d,a,s,l)};return ec(o)?Ke(o,function(f){return u(f)}):u(o),this}},{key:"off",value:function(o,a,s){var l=this;return ec(o)?Ke(o,function(c){return l.eventManager.off(c,a,s)}):this.eventManager.off(o,a,s),this}},{key:"trigger",value:function(o,a,s,l,c){this.eventManager.trigger(o,a,s,l,c)}},{key:"getOffsetRelativeToRoot",value:function(o){return Di(o)}},{key:"getOffset",value:function(o){for(var a=o,s=this.getContainer(),l=this.getPosition(a),c=o!==s&&a.offsetParent!==s?a.offsetParent:null,u=function(p){p!=null&&p!==document.body&&(p.scrollTop>0||p.scrollLeft>0)&&(l.x-=p.scrollLeft,l.y-=p.scrollTop)};c!=null;)l.x+=c.offsetLeft,l.y+=c.offsetTop,u(c),c=c.offsetParent===s?null:c.offsetParent;if(s!=null&&(s.scrollTop>0||s.scrollLeft>0)){var f=a.offsetParent!=null?this.getStyle(a.offsetParent,u2):GU,d=this.getStyle(a,u2);d!==Yl&&d!==eC&&f!==Yl&&f!==eC&&(l.x-=s.scrollLeft,l.y-=s.scrollTop)}return l}},{key:"getSize",value:function(o){var a=o;if(a.offsetWidth!=null)return RG(o);if(a.width&&a.width.baseVal)return MG(a)}},{key:"getPosition",value:function(o){var a=o;if(a.offsetLeft!=null)return{x:parseFloat(a.offsetLeft),y:parseFloat(a.offsetTop)};if(a.x&&a.x.baseVal)return LG(a)}},{key:"getStyle",value:function(o,a){return _i(window.getComputedStyle)!==WE?getComputedStyle(o,null).getPropertyValue(a):o.currentStyle[a]}},{key:"getGroupContentArea",value:function(o){var a=this.getSelector(o.el,xz);return a&&a.length>0?a[0]:o.el}},{key:"getSelector",value:function(o,a){var s=null;if(arguments.length===1){if(!Xt(o)){var l=document.createDocumentFragment();return l.appendChild(o),tf(l.childNodes)}s=tf(document.querySelectorAll(o))}else s=tf(o.querySelectorAll(a));return s}},{key:"setPosition",value:function(o,a){var s=o;s.style.left=a.x+"px",s.style.top=a.y+"px"}},{key:"setDraggable",value:function(o,a){a?this.removeAttribute(o,vf):this.setAttribute(o,vf,KE)}},{key:"isDraggable",value:function(o){var a=this.getAttribute(o,vf);return a==null||a===vi}},{key:"toggleDraggable",value:function(o){var a=this.isDraggable(o);return this.setDraggable(o,!a),!a}},{key:"_createEventListeners",value:function(){var o=function(y,E){if(!E.defaultPrevented&&E._jsPlumbOverlay==null){var x=Fr(go(E),Xo,this.getContainer(),!0);this.fire(y,x.jtk.connector.connection,E)}};this._connectorClick=o.bind(this,l2),this._connectorDblClick=o.bind(this,fz),this._connectorTap=o.bind(this,mz),this._connectorDblTap=o.bind(this,dz);var a=function(y,E){var x=go(E).parentNode;if(x.jtk&&x.jtk.connector){var C=x.jtk.connector,A=C.connection;this.setConnectorHover(C,y),y?(this.addClass(A.source,this.hoverSourceClass),this.addClass(A.target,this.hoverTargetClass)):(this.removeClass(A.source,this.hoverSourceClass),this.removeClass(A.target,this.hoverTargetClass)),this.fire(y?pz:hz,x.jtk.connector.connection,E)}};this._connectorMouseover=a.bind(this,!0),this._connectorMouseout=a.bind(this,!1);var s=function(y,E){var x=go(E).parentNode;x.jtk&&x.jtk.connector&&this.fire(y?vz:gz,x.jtk.connector.connection,E)};this._connectorMouseup=s.bind(this,!0),this._connectorMousedown=s.bind(this,!1),this._connectorContextmenu=function(m){var y=go(m).parentNode;y.jtk&&y.jtk.connector&&this.fire(c2,y.jtk.connector.connection,m)}.bind(this);var l=function(y,E,x){!E.defaultPrevented&&E._jsPlumbOverlay==null&&this.fire(y,x.jtk.endpoint,E)};this._endpointClick=l.bind(this,az),this._endpointDblClick=l.bind(this,sz);var c=function(y,E){var x=go(E);x.jtk&&x.jtk.endpoint&&(this.setEndpointHover(x.jtk.endpoint,y),this.fire(y?lz:iz,x.jtk.endpoint,E))};this._endpointMouseover=c.bind(this,!0),this._endpointMouseout=c.bind(this,!1);var u=function(y,E){var x=go(E);x.jtk&&x.jtk.endpoint&&this.fire(y?cz:uz,x.jtk.endpoint,E)};this._endpointMouseup=u.bind(this,!0),this._endpointMousedown=u.bind(this,!1);var f=function(m,y){var E=Fr(go(y),Lr,this.getContainer(),!0),x=E.jtk.overlay;x&&this.fireOverlayMethod(x,m,y)}.bind(this);this._overlayClick=f.bind(this,Po),this._overlayDblClick=f.bind(this,fr),this._overlayTap=f.bind(this,Fo),this._overlayDblTap=f.bind(this,_o);var d=function(y,E){var x=Fr(go(E),Lr,this.getContainer(),!0),C=x.jtk.overlay;C&&this.setOverlayHover(C,y)};this._overlayMouseover=d.bind(this,!0),this._overlayMouseout=d.bind(this,!1);var h=function(y,E,x){E.defaultPrevented||this.fire(E.detail===1?a2:qG,x,E)};this._elementClick=h.bind(this,a2);var p=function(y,E,x){E.defaultPrevented||this.fire(i2,x,E)};this._elementTap=p.bind(this,i2);var g=function(y,E,x){E.defaultPrevented||this.fire(s2,x,E)};this._elementDblTap=g.bind(this,s2);var v=function(y,E){this.fire(y?ez:$G,go(E),E)};this._elementMouseenter=v.bind(this,!0),this._elementMouseexit=v.bind(this,!1),this._elementMousemove=function(m){this.fire(tz,go(m),m)}.bind(this),this._elementMouseup=function(m){this.fire(nz,go(m),m)}.bind(this),this._elementMousedown=function(m){this.fire(oz,go(m),m)}.bind(this),this._elementContextmenu=function(m){this.fire(rz,go(m),m)}.bind(this)}},{key:"_attachEventDelegates",value:function(){var o=this.getContainer();this.eventManager.on(o,Po,Lr,this._overlayClick),this.eventManager.on(o,fr,Lr,this._overlayDblClick),this.eventManager.on(o,Fo,Lr,this._overlayTap),this.eventManager.on(o,_o,Lr,this._overlayDblTap),this.eventManager.on(o,Po,Xo,this._connectorClick),this.eventManager.on(o,fr,Xo,this._connectorDblClick),this.eventManager.on(o,Fo,Xo,this._connectorTap),this.eventManager.on(o,_o,Xo,this._connectorDblTap),this.eventManager.on(o,Po,hs,this._endpointClick),this.eventManager.on(o,fr,hs,this._endpointDblClick),this.eventManager.on(o,Po,this.managedElementsSelector,this._elementClick),this.eventManager.on(o,Fo,this.managedElementsSelector,this._elementTap),this.eventManager.on(o,_o,this.managedElementsSelector,this._elementDblTap),this.eventManager.on(o,Io,Xo,this._connectorMouseover),this.eventManager.on(o,Do,Xo,this._connectorMouseout),this.eventManager.on(o,Mr,Xo,this._connectorContextmenu),this.eventManager.on(o,kn,Xo,this._connectorMouseup),this.eventManager.on(o,Tn,Xo,this._connectorMousedown),this.eventManager.on(o,Io,hs,this._endpointMouseover),this.eventManager.on(o,Do,hs,this._endpointMouseout),this.eventManager.on(o,kn,hs,this._endpointMouseup),this.eventManager.on(o,Tn,hs,this._endpointMousedown),this.eventManager.on(o,Io,Lr,this._overlayMouseover),this.eventManager.on(o,Do,Lr,this._overlayMouseout),this.eventManager.on(o,Io,Qt,this._elementMouseenter),this.eventManager.on(o,Do,Qt,this._elementMouseexit),this.eventManager.on(o,ds,Qt,this._elementMousemove),this.eventManager.on(o,kn,Qt,this._elementMouseup),this.eventManager.on(o,Tn,Qt,this._elementMousedown),this.eventManager.on(o,Mr,Qt,this._elementContextmenu)}},{key:"_detachEventDelegates",value:function(){var o=this.getContainer();o&&(this.eventManager.off(o,Po,this._connectorClick),this.eventManager.off(o,fr,this._connectorDblClick),this.eventManager.off(o,Fo,this._connectorTap),this.eventManager.off(o,_o,this._connectorDblTap),this.eventManager.off(o,Po,this._endpointClick),this.eventManager.off(o,fr,this._endpointDblClick),this.eventManager.off(o,Po,this._overlayClick),this.eventManager.off(o,fr,this._overlayDblClick),this.eventManager.off(o,Fo,this._overlayTap),this.eventManager.off(o,_o,this._overlayDblTap),this.eventManager.off(o,Po,this._elementClick),this.eventManager.off(o,Fo,this._elementTap),this.eventManager.off(o,_o,this._elementDblTap),this.eventManager.off(o,Io,this._connectorMouseover),this.eventManager.off(o,Do,this._connectorMouseout),this.eventManager.off(o,Mr,this._connectorContextmenu),this.eventManager.off(o,kn,this._connectorMouseup),this.eventManager.off(o,Tn,this._connectorMousedown),this.eventManager.off(o,Io,this._endpointMouseover),this.eventManager.off(o,Do,this._endpointMouseout),this.eventManager.off(o,kn,this._endpointMouseup),this.eventManager.off(o,Tn,this._endpointMousedown),this.eventManager.off(o,Io,this._overlayMouseover),this.eventManager.off(o,Do,this._overlayMouseout),this.eventManager.off(o,iv,this._elementMouseenter),this.eventManager.off(o,lv,this._elementMouseexit),this.eventManager.off(o,ds,this._elementMousemove),this.eventManager.off(o,kn,this._elementMouseup),this.eventManager.off(o,Tn,this._elementMousedown),this.eventManager.off(o,Mr,this._elementContextmenu))}},{key:"setContainer",value:function(o){var a=this;if(o===document||o===document.body)throw new Error("Cannot set document or document.body as container element");this._detachEventDelegates();var s;this.dragManager!=null&&(s=this.dragManager.reset()),this.setAttribute(o,t2,pn().replace("-",""));var l=this.getContainer();if(l!=null){l.removeAttribute(t2);var c=tf(l.childNodes).filter(function(u){return u!=null&&(a.hasClass(u,Hp)||a.hasClass(u,xi)||a.hasClass(u,mf)||u.getAttribute&&u.getAttribute(da)!=null)});Ke(c,function(u){o.appendChild(u)})}Oo(no(n.prototype),"setContainer",this).call(this,o),this.containerType=nv(o),this.eventManager!=null&&this._attachEventDelegates(),this.dragManager!=null&&(this.dragManager.addHandler(new b2(this)),this.dragManager.addHandler(new A2(this,this.dragSelection),this.groupDragOptions),this.elementDragHandler=new yv(this,this.dragSelection),this.dragManager.addHandler(this.elementDragHandler,this.elementDragOptions),s!=null&&this.dragManager.setFilters(s))}},{key:"reset",value:function(){Oo(no(n.prototype),"reset",this).call(this),this._resizeObserver&&this._resizeObserver.disconnect();var o=this.getContainer(),a=o.querySelectorAll([Qt,hs,Xo,Lr].join(","));Ke(a,function(s){return s.parentNode&&s.parentNode.removeChild(s)})}},{key:"destroy",value:function(){this._detachEventDelegates(),this.dragManager!=null&&this.dragManager.reset(),this.clearDragSelection(),Oo(no(n.prototype),"destroy",this).call(this)}},{key:"unmanage",value:function(o,a){this._resizeObserver!=null&&this._resizeObserver.unobserve(o),this.removeFromDragSelection(o),Oo(no(n.prototype),"unmanage",this).call(this,o,a)}},{key:"addToDragSelection",value:function(){for(var o=this,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];Ke(s,function(c){return o.dragSelection.add(c)})}},{key:"clearDragSelection",value:function(){this.dragSelection.clear()}},{key:"removeFromDragSelection",value:function(){for(var o=this,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];Ke(s,function(c){return o.dragSelection.remove(c)})}},{key:"toggleDragSelection",value:function(){for(var o=this,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];Ke(s,function(c){return o.dragSelection.toggle(c)})}},{key:"addToDragGroup",value:function(o){for(var a,s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];(a=this.elementDragHandler).addToDragGroup.apply(a,[o].concat(l))}},{key:"removeFromDragGroup",value:function(){var o;(o=this.elementDragHandler).removeFromDragGroup.apply(o,arguments)}},{key:"setDragGroupState",value:function(o){for(var a,s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];(a=this.elementDragHandler).setDragGroupState.apply(a,[o].concat(l))}},{key:"clearDragGroup",value:function(o){this.elementDragHandler.clearDragGroup(o)}},{key:"consume",value:function(o,a){$l(o,a)}},{key:"rotate",value:function(o,a,s){var l=this.getId(o);return this._managedElements[l]?(this._managedElements[l].el.style.transform="rotate("+a+"deg)",this._managedElements[l].el.style.transformOrigin="center center",Oo(no(n.prototype),"rotate",this).call(this,o,a,s)):{c:new Set,e:new Set}}},{key:"addOverlayClass",value:function(o,a){if(ha(o))o.instance.addClass(Jo(o),a);else if(Bi(o))o.instance.addClass(cc(o),a);else if(ma(o))o.instance.addClass(ps(o),a);else throw"Could not add class to overlay of type ["+o.type+"]"}},{key:"removeOverlayClass",value:function(o,a){if(ha(o))o.instance.removeClass(Jo(o),a);else if(Bi(o))o.instance.removeClass(cc(o),a);else if(ma(o))o.instance.removeClass(ps(o),a);else throw"Could not remove class from overlay of type ["+o.type+"]"}},{key:"_paintOverlay",value:function(o,a,s){if(ha(o)){Jo(o);var l=o.component.getXY();o.canvas.style.left=l.x+a.d.minx+"px",o.canvas.style.top=l.y+a.d.miny+"px"}else if(Bi(o)){var c=isNaN(a.d.cxy.x)||isNaN(a.d.cxy.y)?"M 0 0":"M"+a.d.hxy.x+","+a.d.hxy.y+" L"+a.d.tail[0].x+","+a.d.tail[0].y+" L"+a.d.cxy.x+","+a.d.cxy.y+" L"+a.d.tail[1].x+","+a.d.tail[1].y+" Z";pW(o,c,a,s)}else if(ma(o)){ps(o);var u=o.component.getXY();o.canvas.style.left=u.x+a.d.minx+"px",o.canvas.style.top=u.y+a.d.miny+"px"}else throw"Could not paint overlay of type ["+o.type+"]"}},{key:"setOverlayVisible",value:function(o,a){var s=a?"block":"none";function l(c){c!=null&&(c.style.display=s)}ha(o)?l(Jo(o)):ma(o)?l(ps(o)):Bi(o)&&l(o.path)}},{key:"reattachOverlay",value:function(o,a){ha(o)?o.instance._appendElement(Jo(o),this.getContainer()):ma(o)?o.instance._appendElement(ps(o),this.getContainer()):Bi(o)&&this._appendElement(cc(o),a.connector.canvas)}},{key:"setOverlayHover",value:function(o,a){var s;ha(o)?s=Jo(o):ma(o)?s=ps(o):Bi(o)&&(s=cc(o)),s!=null&&(this.hoverClass!=null&&(a?this.addClass(s,this.hoverClass):this.removeClass(s,this.hoverClass)),this.setHover(o.component,a))}},{key:"destroyOverlay",value:function(o){if(ha(o)){var a=Jo(o);a.parentNode.removeChild(a),delete o.canvas,delete o.cachedDimensions}else if(Xp(o)||Zp(o)||Jp(o))vW(o);else if(ma(o)){var s=ps(o);s.parentNode.removeChild(s),delete o.canvas,delete o.cachedDimensions}}},{key:"drawOverlay",value:function(o,a,s,l){if(ha(o)||ma(o)){var c=xv._getDimensions(o);if(c!=null&&c.w!=null&&c.h!=null){var u={x:0,y:0};if(l)u={x:l.x,y:l.y};else if(a instanceof gi){var f=Array.isArray(o.location)?o.location:[o.location,o.location];u={x:f[0]*a.w,y:f[1]*a.h}}else{var d=o.location,h=!1;(Xt(o.location)||o.location<0||o.location>1)&&(d=parseInt(""+o.location,10),h=!0),u=a.pointOnPath(d,h)}var p=u.x-c.w/2,g=u.y-c.h/2;return{component:o,d:{minx:p,miny:g,td:c,cxy:u},xmin:p,xmax:p+c.w,ymin:g,ymax:g+c.h}}else return{xmin:0,xmax:0,ymin:0,ymax:0}}else{if(Xp(o)||Zp(o)||Jp(o))return o.draw(a,s,l);throw"Could not draw overlay of type ["+o.type+"]"}}},{key:"updateLabel",value:function(o){if(ts(o.label)){var a=o.label(this);a!=null?Jo(o).innerText=a:Jo(o).innerText=""}else o.labelText==null&&(o.labelText=o.label,o.labelText!=null?Jo(o).innerText=o.labelText:Jo(o).innerText="")}},{key:"setHover",value:function(o,a){o._hover=a,o instanceof ki&&o.endpoint!=null?this.setEndpointHover(o,a,-1):o instanceof ql&&o.connector!=null&&this.setConnectorHover(o.connector,a)}},{key:"paintConnector",value:function(o,a,s){gW(this,o,a,s)}},{key:"setConnectorHover",value:function(o,a,s){if(a===!1||!this.currentlyDragging&&!this.isHoverSuspended()){var l=o.canvas;l!=null&&(o.hoverClass!=null&&(a?this.addClass(l,o.hoverClass):this.removeClass(l,o.hoverClass)),a?this.addClass(l,this.hoverClass):this.removeClass(l,this.hoverClass)),o.connection.hoverPaintStyle!=null&&(o.connection.paintStyleInUse=a?o.connection.hoverPaintStyle:o.connection.paintStyle,this._suspendDrawing||this._paintConnection(o.connection)),o.connection.endpoints[0]!==s&&this.setEndpointHover(o.connection.endpoints[0],a,0,!0),o.connection.endpoints[1]!==s&&this.setEndpointHover(o.connection.endpoints[1],a,1,!0)}}},{key:"destroyConnector",value:function(o){o.connector!=null&&P2(o.connector)}},{key:"addConnectorClass",value:function(o,a){o.canvas&&this.addClass(o.canvas,a)}},{key:"removeConnectorClass",value:function(o,a){o.canvas&&this.removeClass(o.canvas,a)}},{key:"getConnectorClass",value:function(o){return o.canvas?o.canvas.className.baseVal:""}},{key:"setConnectorVisible",value:function(o,a){O2(o,a)}},{key:"applyConnectorType",value:function(o,a){if(o.canvas&&a.cssClass){var s=Array.isArray(a.cssClass)?a.cssClass:[a.cssClass];this.addClass(o.canvas,s.join(" "))}}},{key:"addEndpointClass",value:function(o,a){var s=uc(o.endpoint);s!=null&&this.addClass(s,a)}},{key:"applyEndpointType",value:function(o,a){if(a.cssClass){var s=uc(o.endpoint);if(s){var l=Array.isArray(a.cssClass)?a.cssClass:[a.cssClass];this.addClass(s,l.join(" "))}}}},{key:"destroyEndpoint",value:function(o){var a=this.endpointAnchorClassPrefix+(o.currentAnchorClass?"-"+o.currentAnchorClass:"");this.removeClass(o.element,a),P2(o.endpoint)}},{key:"renderEndpoint",value:function(o,a){var s=T2[o.endpoint.type];s!=null?yW.paint(o.endpoint,s,a):ln("jsPlumb: no endpoint renderer found for type ["+o.endpoint.type+"]")}},{key:"removeEndpointClass",value:function(o,a){var s=uc(o.endpoint);s!=null&&this.removeClass(s,a)}},{key:"getEndpointClass",value:function(o){var a=uc(o.endpoint);return a!=null?a.className:""}},{key:"setEndpointHover",value:function(o,a,s,l){if(o!=null&&(a===!1||!this.currentlyDragging&&!this.isHoverSuspended())){var c=uc(o.endpoint);if(c!=null&&(o.hoverClass!=null&&(a?this.addClass(c,o.hoverClass):this.removeClass(c,o.hoverClass)),s===0||s===1)){var u=s===0?this.hoverSourceClass:this.hoverTargetClass;a?this.addClass(c,u):this.removeClass(c,u)}if(o.hoverPaintStyle!=null&&(o.paintStyleInUse=a?o.hoverPaintStyle:o.paintStyle,this._suspendDrawing||this.renderEndpoint(o,o.paintStyleInUse)),!l)for(var f=0;f<o.connections.length;f++)this.setConnectorHover(o.connections[f].connector,a,o)}}},{key:"setEndpointVisible",value:function(o,a){O2(o.endpoint,a)}},{key:"setGroupVisible",value:function(o,a){for(var s=o.el.querySelectorAll(Qt),l=0;l<s.length;l++)a?this.show(s[l],!0):this.hide(s[l],!0)}},{key:"deleteConnection",value:function(o,a){return o!=null&&o.deleted!==!0?(o.endpoints[0].deleted!==!0&&this.setEndpointHover(o.endpoints[0],!1,0,!0),o.endpoints[1].deleted!==!0&&this.setEndpointHover(o.endpoints[1],!1,1,!0),Oo(no(n.prototype),"deleteConnection",this).call(this,o,a)):!1}},{key:"addSourceSelector",value:function(o,a,s){return this.addDragFilter(o),Oo(no(n.prototype),"addSourceSelector",this).call(this,o,a,s)}},{key:"removeSourceSelector",value:function(o){this.removeDragFilter(o.selector),Oo(no(n.prototype),"removeSourceSelector",this).call(this,o)}},{key:"manage",value:function(o,a,s){if(this.containerType===fs.SVG&&!VG(o))throw new Error("ERROR: cannot manage non-svg element when container is an SVG element.");var l=Oo(no(n.prototype),"manage",this).call(this,o,a,s);return l!=null&&this._resizeObserver!=null&&this._resizeObserver.observe(l.el),l}}]),n}(xG),CW="circle",wW=function(){Ev(mi.type,{makeNode:function(n,r){return Br(CW,{cx:n.w/2,cy:n.h/2,r:n.radius})},updateNode:function(n,r){Nr(r,{cx:""+n.w/2,cy:""+n.h/2,r:""+n.radius})}})},bW="rect",AW=function(){Ev(ff.type,{makeNode:function(n,r){return Br(bW,{width:n.w,height:n.h})},updateNode:function(n,r){Nr(r,{width:n.w,height:n.h})}})},_2={width:10,height:0,fill:"transparent",stroke:"transparent"},SW=function(){Ev(uf.type,{makeNode:function(n,r){return Br("rect",_2)},updateNode:function(n,r){Nr(r,_2)}})};wW(),SW(),AW();var D2=0;function TW(){var e=D2+1;return D2++,e}function kW(e){return new EW(TW(),e)}function OW(e){var t=function n(){/complete|loaded|interactive/.test(document.readyState)&&typeof document.body<"u"&&document.body!=null?e():setTimeout(n,9)};t()}function Hf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uf(e,t,n){return t&&I2(e.prototype,t),n&&I2(e,n),e}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Cv(e,t)}function Gf(e){return Gf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gf(e)}function Cv(e,t){return Cv=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},Cv(e,t)}function PW(){if(typeof Reflect>"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 Jt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _W(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:Jt(e)}function zf(e){var t=PW();return function(){var r=Gf(e),o;if(t){var a=Gf(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return _W(this,o)}}var F2=function(e){jf(n,e);var t=zf(n);function n(r,o){var a;return Hf(this,n),a=t.call(this,r,o),a.connection=r,Bt(Jt(a),"showLoopback",void 0),Bt(Jt(a),"curviness",void 0),Bt(Jt(a),"margin",void 0),Bt(Jt(a),"proximityLimit",void 0),Bt(Jt(a),"orientation",void 0),Bt(Jt(a),"loopbackRadius",void 0),Bt(Jt(a),"clockwise",void 0),Bt(Jt(a),"isLoopbackCurrently",void 0),Bt(Jt(a),"geometry",null),o=o||{},a.showLoopback=o.showLoopback!==!1,a.curviness=o.curviness||10,a.margin=o.margin||5,a.proximityLimit=o.proximityLimit||80,a.clockwise=o.orientation&&o.orientation==="clockwise",a.loopbackRadius=o.loopbackRadius||25,a.isLoopbackCurrently=!1,a}return Uf(n,[{key:"getDefaultStubs",value:function(){return[0,0]}},{key:"_compute",value:function(o,a){var s=a.sourcePos,l=a.targetPos,c=Math.abs(s.curX-l.curX),u=Math.abs(s.curY-l.curY);if(!this.showLoopback||a.sourceEndpoint.elementId!==a.targetEndpoint.elementId)this.isLoopbackCurrently=!1,this._computeBezier(o,a,s,l,c,u);else{this.isLoopbackCurrently=!0;var f=a.sourcePos.curX,d=a.sourcePos.curY-this.margin,h=f,p=d-this.loopbackRadius,g=h-this.loopbackRadius,v=p-this.loopbackRadius;c=2*this.loopbackRadius,u=2*this.loopbackRadius,o.points[0]=g,o.points[1]=v,o.points[2]=c,o.points[3]=u,this._addSegment(zC,{loopback:!0,x1:f-g+4,y1:d-v,startAngle:0,endAngle:2*Math.PI,r:this.loopbackRadius,ac:!this.clockwise,x2:f-g-4,y2:d-v,cx:h-g,cy:p-v})}}},{key:"exportGeometry",value:function(){return this.geometry==null?null:{controlPoints:[Xe({},this.geometry.controlPoints[0]),Xe({},this.geometry.controlPoints[1])],source:Xe({},this.geometry.source),target:Xe({},this.geometry.target)}}},{key:"transformGeometry",value:function(o,a,s){return{controlPoints:[{x:o.controlPoints[0].x+a,y:o.controlPoints[0].y+s},{x:o.controlPoints[1].x+a,y:o.controlPoints[1].y+s}],source:this.transformAnchorPlacement(o.source,a,s),target:this.transformAnchorPlacement(o.target,a,s)}}},{key:"importGeometry",value:function(o){return o!=null?o.controlPoints==null||o.controlPoints.length!=2?(ln("jsPlumb Bezier: cannot import geometry; controlPoints missing or does not have length 2"),this.setGeometry(null,!0),!1):o.controlPoints[0].x==null||o.controlPoints[0].y==null||o.controlPoints[1].x==null||o.controlPoints[1].y==null?(ln("jsPlumb Bezier: cannot import geometry; controlPoints malformed"),this.setGeometry(null,!0),!1):o.source==null||o.source.curX==null||o.source.curY==null?(ln("jsPlumb Bezier: cannot import geometry; source missing or malformed"),this.setGeometry(null,!0),!1):o.target==null||o.target.curX==null||o.target.curY==null?(ln("jsPlumb Bezier: cannot import geometry; target missing or malformed"),this.setGeometry(null,!0),!1):(this.setGeometry(o,!1),!0):!1}}]),n}(Rp),dr={subtract:function(t,n){return{x:t.x-n.x,y:t.y-n.y}},dotProduct:function(t,n){return t.x*n.x+t.y*n.y},square:function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},scale:function(t,n){return{x:t.x*n,y:t.y*n}}},N2=64,DW=Math.pow(2,-N2-1);function IW(e,t){for(var n=[],r=NW(e,t),o=t.length-1,a=2*o-1,s=wv(r,a,n,0),l=dr.subtract(e,t[0]),c=dr.square(l),u=0,f,d=0;d<s;d++)l=dr.subtract(e,bv(t,o,n[d],null,null)),f=dr.square(l),f<c&&(c=f,u=n[d]);return l=dr.subtract(e,t[o]),f=dr.square(l),f<c&&(c=f,u=1),{location:u,distance:c}}function FW(e,t){var n=IW(e,t);return{point:bv(t,t.length-1,n.location,null,null),location:n.location}}function NW(e,t){for(var n=t.length-1,r=2*n-1,o=[],a=[],s=[],l=[],c=[[1,.6,.3,.1],[.4,.6,.6,.4],[.1,.3,.6,1]],u=0;u<=n;u++)o[u]=dr.subtract(t[u],e);for(var f=0;f<=n-1;f++)a[f]=dr.subtract(t[f+1],t[f]),a[f]=dr.scale(a[f],3);for(var d=0;d<=n-1;d++)for(var h=0;h<=n;h++)s[d]||(s[d]=[]),s[d][h]=dr.dotProduct(a[d],o[h]);for(var p=0;p<=r;p++)l[p]||(l[p]=[]),l[p].y=0,l[p].x=parseFloat(""+p)/r;for(var g=n,v=n-1,m=0;m<=g+v;m++)for(var y=Math.max(0,m-v),E=Math.min(m,g),x=y;x<=E;x++){var C=m-x;l[x+C].y+=s[C][x]*c[C][x]}return l}function wv(e,t,n,r){var o=[],a=[],s,l,c=[],u=[];switch(BW(e,t)){case 0:return 0;case 1:{if(r>=N2)return n[0]=(e[0].x+e[t].x)/2,1;if(RW(e,t))return n[0]=MW(e,t),1;break}}bv(e,t,.5,o,a),s=wv(o,t,c,r+1),l=wv(a,t,u,r+1);for(var f=0;f<s;f++)n[f]=c[f];for(var d=0;d<l;d++)n[d+s]=u[d];return s+l}function BW(e,t){var n=0,r,o;r=o=of(e[0].y);for(var a=1;a<=t;a++)r=of(e[a].y),r!=o&&n++,o=r;return n}function RW(e,t){var n,r,o,a,s,l,c,u,f,d,h,p,g,v,m,y;l=e[0].y-e[t].y,c=e[t].x-e[0].x,u=e[0].x*e[t].y-e[t].x*e[0].y;var E,x;E=x=0;for(var C=1;C<t;C++){var A=l*e[C].x+c*e[C].y+u;A>E?E=A:A<x&&(x=A)}return h=0,p=1,g=0,v=l,m=c,y=u-E,f=h*m-v*p,d=1/f,r=(p*y-m*g)*d,v=l,m=c,y=u-x,f=h*m-v*p,d=1/f,o=(p*y-m*g)*d,a=Math.min(r,o),s=Math.max(r,o),n=s-a,n<DW?1:0}function MW(e,t){var n=1,r=0,o=e[t].x-e[0].x,a=e[t].y-e[0].y,s=e[0].x-0,l=e[0].y-0,c=o*r-a*n,u=1/c,f=(o*l-a*s)*u;return 0+n*f}function bv(e,t,n,r,o){for(var a=[[]],s=0;s<=t;s++)a[0][s]=e[s];for(var l=1;l<=t;l++)for(var c=0;c<=t-l;c++)a[l]||(a[l]=[]),a[l][c]||(a[l][c]={}),a[l][c].x=(1-n)*a[l-1][c].x+n*a[l-1][c+1].x,a[l][c].y=(1-n)*a[l-1][c].y+n*a[l-1][c+1].y;if(r!=null)for(var u=0;u<=t;u++)r[u]=a[u][0];if(o!=null)for(var f=0;f<=t;f++)o[f]=a[t-f][f];return a[t][0]}function LW(e,t){var n=[];e--;for(var r=0;r<=e;r++)n.push(VW(r/e,t));return n}function VW(e,t){var n={x:0,y:0};if(e===0)return t[0];var r=t.length-1;if(e===1)return t[r];var o=t,a=1-e;if(r===0)return t[0];if(r===1)return{x:a*o[0].x+e*o[1].x,y:a*o[0].y+e*o[1].y};if(4>r){var s=a*a,l=e*e,c=0,u,f,d;return r===2?(o=[o[0],o[1],o[2],n],u=s,f=2*(a*e),d=l):r===3&&(u=s*a,f=3*(s*e),d=3*(a*l),c=e*l),{x:u*o[0].x+f*o[1].x+d*o[2].x+c*o[3].x,y:u*o[0].y+f*o[1].y+d*o[2].y+c*o[3].y}}else return n}function HW(e){var t=0;if(!M2(e))for(var n=16,r=LW(n,e),o=0;o<n-1;o++){var a=r[o],s=r[o+1];t+=R2(a,s)}return t}var B2=new Map;function UW(e){var t=B2.get(e);if(!t){t=[];var n=function(){return function(p){return Math.pow(p,e)}},r=function(){return function(p){return Math.pow(1-p,e)}},o=function(p){return function(g){return p}},a=function(){return function(p){return p}},s=function(){return function(p){return 1-p}},l=function(p){return function(g){for(var v=1,m=0;m<p.length;m++)v=v*p[m](g);return v}};t.push(n());for(var c=1;c<e;c++){for(var u=[o(e)],f=0;f<e-c;f++)u.push(a());for(var d=0;d<c;d++)u.push(s());t.push(l(u))}t.push(r()),B2.set(e,t)}return t}function fc(e,t){for(var n=UW(e.length-1),r=0,o=0,a=0;a<e.length;a++)r=r+e[a].x*n[a](t),o=o+e[a].y*n[a](t);return{x:r,y:o}}function R2(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function M2(e){return e[0].x===e[1].x&&e[0].y===e[1].y}function L2(e,t,n){if(M2(e))return{point:e[0],location:t};for(var r=fc(e,t),o=0,a=t,s=n>0?1:-1,l=null;o<Math.abs(n);)a+=.005*s,l=fc(e,a),o+=R2(l,r),r=l;return{point:l,location:a}}function jW(e,t,n){return L2(e,t,n).point}function GW(e,t,n){return L2(e,t,n).location}function zW(e,t){var n=fc(e,t),r=fc(e.slice(0,e.length-1),t),o=r.y-n.y,a=r.x-n.x;return o===0?1/0:Math.atan(o/a)}function WW(e,t,n,r,o){var a=r-t,s=e-n,l=e*(t-r)+t*(n-e),c=KW(o),u=[a*c[0][0]+s*c[1][0],a*c[0][1]+s*c[1][1],a*c[0][2]+s*c[1][2],a*c[0][3]+s*c[1][3]+l],f=YW.apply(null,u),d=[];if(f!=null)for(var h=0;h<3;h++){var p=f[h],g=Math.pow(p,2),v=Math.pow(p,3),m={x:c[0][0]*v+c[0][1]*g+c[0][2]*p+c[0][3],y:c[1][0]*v+c[1][1]*g+c[1][2]*p+c[1][3]},y=void 0;n-e!==0?y=(m[0]-e)/(n-e):y=(m[1]-t)/(r-t),p>=0&&p<=1&&y>=0&&y<=1&&d.push(m)}return d}function V2(e,t){return[-e[0][t]+3*e[1][t]+-3*e[2][t]+e[3][t],3*e[0][t]-6*e[1][t]+3*e[2][t],-3*e[0][t]+3*e[1][t],e[0][t]]}function KW(e){return[V2(e,"x"),V2(e,"y")]}function YW(e,t,n,r){var o=t/e,a=n/e,s=r/e,l=(3*a-Math.pow(o,2))/9,c=(9*o*a-27*s-2*Math.pow(o,3))/54,u=Math.pow(l,3)+Math.pow(c,2),f,d,h=[0,0,0];if(u>=0)f=of(c+Math.sqrt(u))*Math.pow(Math.abs(c+Math.sqrt(u)),1/3),d=of(c-Math.sqrt(u))*Math.pow(Math.abs(c-Math.sqrt(u)),1/3),h[0]=-o/3+(f+d),h[1]=-o/3-(f+d)/2,h[2]=-o/3-(f+d)/2,Math.abs(Math.sqrt(3)*(f-d)/2)!==0&&(h[1]=-1,h[2]=-1);else{var p=Math.acos(c/Math.sqrt(-Math.pow(l,3)));h[0]=2*Math.sqrt(-l)*Math.cos(p/3)-o/3,h[1]=2*Math.sqrt(-l)*Math.cos((p+2*Math.PI)/3)-o/3,h[2]=2*Math.sqrt(-l)*Math.cos((p+4*Math.PI)/3)-o/3}for(var g=0;g<3;g++)(h[g]<0||h[g]>1)&&(h[g]=-1);return h}var Av=function(e){jf(n,e);var t=zf(n);function n(r){var o;return Hf(this,n),o=t.call(this,r),Bt(Jt(o),"curve",void 0),Bt(Jt(o),"cp1x",void 0),Bt(Jt(o),"cp1y",void 0),Bt(Jt(o),"cp2x",void 0),Bt(Jt(o),"cp2y",void 0),Bt(Jt(o),"length",0),Bt(Jt(o),"type",n.segmentType),o.cp1x=r.cp1x,o.cp1y=r.cp1y,o.cp2x=r.cp2x,o.cp2y=r.cp2y,o.x1=r.x1,o.x2=r.x2,o.y1=r.y1,o.y2=r.y2,o.curve=[{x:o.x1,y:o.y1},{x:o.cp1x,y:o.cp1y},{x:o.cp2x,y:o.cp2y},{x:o.x2,y:o.y2}],o.extents={xmin:Math.min(o.x1,o.x2,o.cp1x,o.cp2x),ymin:Math.min(o.y1,o.y2,o.cp1y,o.cp2y),xmax:Math.max(o.x1,o.x2,o.cp1x,o.cp2x),ymax:Math.max(o.y1,o.y2,o.cp1y,o.cp2y)},o}return Uf(n,[{key:"getPath",value:function(o){return(o?"M "+this.x2+" "+this.y2+" ":"")+"C "+this.cp2x+" "+this.cp2y+" "+this.cp1x+" "+this.cp1y+" "+this.x1+" "+this.y1}},{key:"pointOnPath",value:function(o,a){return o=n._translateLocation(this.curve,o,a),fc(this.curve,o)}},{key:"gradientAtPoint",value:function(o,a){return o=n._translateLocation(this.curve,o,a),zW(this.curve,o)}},{key:"pointAlongPathFrom",value:function(o,a,s){return o=n._translateLocation(this.curve,o,s),jW(this.curve,o,a)}},{key:"getLength",value:function(){return(this.length==null||this.length===0)&&(this.length=HW(this.curve)),this.length}},{key:"findClosestPointOnPath",value:function(o,a){var s=FW({x:o,y:a},this.curve);return{d:Math.sqrt(Math.pow(s.point.x-o,2)+Math.pow(s.point.y-a,2)),x:s.point.x,y:s.point.y,l:1-s.location,s:this,x1:null,y1:null,x2:null,y2:null}}},{key:"lineIntersection",value:function(o,a,s,l){return WW(o,a,s,l,this.curve)}}],[{key:"_translateLocation",value:function(o,a,s){return s&&(a=GW(o,a>0?0:1,a)),a}}]),n}(Ip);Bt(Av,"segmentType","Bezier");var vs=function(e){jf(n,e);var t=zf(n);function n(r,o){var a;return Hf(this,n),a=t.call(this,r,o),a.connection=r,Bt(Jt(a),"type",n.type),Bt(Jt(a),"majorAnchor",void 0),Bt(Jt(a),"minorAnchor",void 0),o=o||{},a.majorAnchor=o.curviness||150,a.minorAnchor=10,a}return Uf(n,[{key:"getCurviness",value:function(){return this.majorAnchor}},{key:"_findControlPoint",value:function(o,a,s,l,c){var u=l[0]!==c[0]||l[1]===c[1],f={x:0,y:0};return u?(c[0]===0?f.x=s.curX<a.curX?o.x+this.minorAnchor:o.x-this.minorAnchor:f.x=o.x+this.majorAnchor*c[0],c[1]===0?f.y=s.curY<a.curY?o.y+this.minorAnchor:o.y-this.minorAnchor:f.y=o.y+this.majorAnchor*l[1]):(l[0]===0?f.x=a.curX<s.curX?o.x+this.minorAnchor:o.x-this.minorAnchor:f.x=o.x-this.majorAnchor*l[0],l[1]===0?f.y=a.curY<s.curY?o.y+this.minorAnchor:o.y-this.minorAnchor:f.y=o.y+this.majorAnchor*c[1]),f}},{key:"_computeBezier",value:function(o,a,s,l,c,u){var f,d,h=s.curX<l.curX?c:0,p=s.curY<l.curY?u:0,g=s.curX<l.curX?0:c,v=s.curY<l.curY?0:u;this.edited!==!0?(f=this._findControlPoint({x:h,y:p},s,l,o.so,o.to),d=this._findControlPoint({x:g,y:v},l,s,o.to,o.so)):(f=this.geometry.controlPoints[0],d=this.geometry.controlPoints[1]),this.geometry={controlPoints:[f,d],source:a.sourcePos,target:a.targetPos},this._addSegment(Av,{x1:h,y1:p,x2:g,y2:v,cp1x:f.x,cp1y:f.y,cp2x:d.x,cp2y:d.y})}}]),n}(F2);Bt(vs,"type","Bezier");function XW(e,t,n,r){return e<=n&&r<=t?1:e<=n&&t<=r?2:n<=e&&r>=t?3:4}function QW(e,t,n,r,o,a,s,l,c){if(l<=c)return{x:e,y:t};if(n===1)return r.curY<=0&&o.curY>=1?{x:e+(r.x<.5?-1*a:a),y:t}:r.curX>=1&&o.curX<=0?{x:e,y:t+(r.y<.5?-1*s:s)}:{x:e+-1*a,y:t+-1*s};if(n===2)return r.curY>=1&&o.curY<=0?{x:e+(r.x<.5?-1*a:a),y:t}:r.curX>=1&&o.curX<=0?{x:e,y:t+(r.y<.5?-1*s:s)}:{x:e+a,y:t+-1*s};if(n===3)return r.curY>=1&&o.curY<=0?{x:e+(r.x<.5?-1*a:a),y:t}:r.curX<=0&&o.curX>=1?{x:e,y:t+(r.y<.5?-1*s:s)}:{x:e+-1*a,y:t+-1*s};if(n===4)return r.curY<=0&&o.curY>=1?{x:e+(r.x<.5?-1*a:a),y:t}:r.curX<=0&&o.curX>=1?{x:e,y:t+(r.y<.5?-1*s:s)}:{x:e+a,y:t+-1*s}}var Sv=function(e){jf(n,e);var t=zf(n);function n(r,o){var a;return Hf(this,n),a=t.call(this,r,o),a.connection=r,Bt(Jt(a),"type",n.type),Bt(Jt(a),"_controlPoint",void 0),a.curviness=o.curviness||10,a.margin=o.margin||5,a.proximityLimit=o.proximityLimit||80,a.clockwise=o.orientation&&o.orientation==="clockwise",a}return Uf(n,[{key:"_computeBezier",value:function(o,a,s,l,c,u){var f=s.curX<l.curX?0:c,d=s.curY<l.curY?0:u,h=s.curX<l.curX?c:0,p=s.curY<l.curY?u:0;if(s.x===0&&(f-=this.margin),s.x===1&&(f+=this.margin),s.y===0&&(d-=this.margin),s.y===1&&(d+=this.margin),l.x===0&&(h-=this.margin),l.x===1&&(h+=this.margin),l.y===0&&(p-=this.margin),l.y===1&&(p+=this.margin),this.edited!==!0){var g=(f+h)/2,v=(d+p)/2,m=XW(f,d,h,p),y=Math.sqrt(Math.pow(h-f,2)+Math.pow(p-d,2));this._controlPoint=QW(g,v,m,a.sourcePos,a.targetPos,this.curviness,this.curviness,y,this.proximityLimit)}else this._controlPoint=this.geometry.controlPoints[0];var E,x,C,A;E=this._controlPoint.x,x=this._controlPoint.x,C=this._controlPoint.y,A=this._controlPoint.y,this.geometry={controlPoints:[this._controlPoint,this._controlPoint],source:a.sourcePos,target:a.targetPos},this._addSegment(Av,{x1:h,y1:p,x2:f,y2:d,cp1x:E,cp1y:C,cp2x:x,cp2y:A})}}]),n}(F2);Bt(Sv,"type","StateMachine"),pf.register(vs.type,vs),pf.register(Sv.type,Sv);const H2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPgAAABQCAYAAAA0nriIAAAAAXNSR0IArs4c6QAABQ5JREFUeF7t2d9rFXQcxvHn8z374TY4Z2JSCWkeLUE8TiUICi+EkP0D1rAf0kVE0E1KZEqEEBaB3nZVRJFIEhIRCBleeJNW6BiWQ88xJu3K4TlHt8yd8/3EGWw3/QM7n713tbFdfJ/X83lgbFapV12LH2YnJ0rlQ1vd+1KjelyyjUvf4xMEEFiWAgVX49/hte9et+JMpVE7IfeDS5NeHLiZTo8Xy/uPSXa2eeto233HskzDoxBA4H8CyTQ1V8yHb2jzw5Fm7ZS7xjo/ZJ2Bm3RhS6k8esbsYaVx821322OWHiS1vspud/BEAIHlKZCSDeR2et0tD0uF3ydKGz5+UeqdbNTOubTHKvXa+GCptPuSrWlub9way573maytlE8p6/byjMWrEEBgUSCZP5K954Ar95v7DxOrN3/5rM8U5xqNi7ZzdmrdlaH10zvr1Rfmpbcku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j2=e=>(i.pushScopeId("data-v-e14c68a8"),e=e(),i.popScopeId(),e),$W={class:"configuration"},eK={class:"left-set"},tK={class:"node"},nK={class:"title-collapse"},oK=["onDragstart"],rK=j2(()=>i.createElementVNode("div",{style:{width:"10px"}},null,-1)),aK={class:"save-canvas"},sK=j2(()=>i.createElementVNode("div",{class:"regular-start-node",id:"regular-start-node"},"入口节点",-1)),iK=["onContextmenu","id","onDblclick","title"],lK=i.defineComponent({__name:"Configuration",props:{currChainId:{type:Number}},setup(e,{expose:t}){const n=e,r=i.inject("apis");let o=0,a=0;const s=i.ref(1),l=i.ref(1),c=[{label:"1.0X",value:1},{label:"2.0X",value:2},{label:"4.0X",value:4}],u=i.ref(),f=Q=>{o=0,a=0,C.chain.forEach(me=>{me.webLeft>o&&(o=me.webLeft+150),me.webTop>a&&(a=me.webTop+40)});const X=document.getElementById("right-canvas"),de=document.getElementById("flowcontainer");o<X.clientWidth*Q&&a<X.clientHeight*Q?(de.style.width=X.clientWidth*Q+"px",de.style.height=X.clientHeight*Q+"px",s.value=Q):(l.value=s.value,au({title:"Message",message:i.h("p",null,[i.h("span",null,"当前规则链不可调小画布倍率,小倍率会导致规则链超出画布")])}))};let d=i.ref(!1),h=i.ref("0"),p=i.ref({triggerType:9,lineLabel:"",parentType:""}),g=i.ref(null),v=i.ref(null),m=i.ref(!1),y=i.ref(!1),E=i.ref(!1);const x=i.reactive([{panelTitle:"节点类型",list:[{name:"规则节点",type:Yo.ruleNode,icon:H2},{name:"中间件转发节点",type:Yo.midNode,icon:U2}]}]),C=i.reactive({chain:[]}),A=i.ref(),w=i.ref(!0),b=Q=>{A.value=Q,w.value=!0},T=()=>{w.value=!1},S=i.ref({}),_=Q=>{Q.preventDefault();let X={};w.value=!1,Q.target.className.includes("flow-parent")||(X.offsetTop=Q.target.offsetTop-50,X.offsetLeft=Q.target.offsetLeft);var de={chainId:n.currChainId,parentId:0,type:A.value.type,webTop:X.offsetTop?X.offsetTop:Q.offsetY,webLeft:X.offsetLeft?X.offsetLeft:Q.offsetX,nodeName:A.value.name,webIcon:Z(A.value.type),webWidth:150,webHeight:40};S.value=JSON.parse(JSON.stringify(de)),v.value=JSON.parse(JSON.stringify(A.value)),h.value=A.value.type},I=Q=>{B(Q)},H=Q=>{h.value=Q.type,v.value=Q,y.value=!1,m.value=!0,E.value=!1},B=Q=>{i.nextTick(function(){au.confirm("确定删除"+Q.nodeName+"吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{await(r==null?void 0:r.deleteChainNode(Q.id));let X=document.getElementById(Q.id);G.removeAllEndpoints(X);for(let de=C.chain.length-1;de>=0;de--)C.chain[de].id===Q.id&&C.chain.splice(de,1),C.chain[de]&&C.chain[de].parentId==Q.id&&(C.chain[de].parentId=0,await(r==null?void 0:r.upateNodeRelation([{id:C.chain[de].id,parentId:0}])));h.value="0",wo.success("节点删除成功!")})})},j=Q=>{Q.preventDefault()},Z=Q=>{let X;switch(Q){case"1":X="rule-node.png";break;case"2":X="back-value-node.png";break;case"3":X="mid-forward-node.png";break;case"4":X="rule-chain-node.png";break;case"5":X="back-node.png";break}return X},q=Q=>{let X="top:"+Q.webTop+"px;left:"+Q.webLeft+"px;position:absolute;width:"+Q.webWidth+"px;height:"+Q.webHeight;switch(Q.type){case"1":X+="px;background-image:url("+H2+")";break;case"2":X+="px;background-image:url("+qW+")";break;case"3":X+="px;background-image:url("+U2+")";break;case"4":X+="px;background-image:url("+ZW+")";break;case"5":X+="px;background-image:url("+JW+")";break}return X},K=async Q=>{let X;if(Q.id)X=await(r==null?void 0:r.saveChainNode(Q));else{let me={...S.value,...Q};X=await(r==null?void 0:r.saveChainNode(me))}wo.success("节点信息保存成功"),Q.id||C.chain.push(S.value);let de=X.data.data;for(let me=0;me<C.chain.length;me++){let Ne=C.chain[me];if(!Ne.id){C.chain[me]={...Ne,...de},i.nextTick(function(){const Fe=document.getElementById(de.id);A.value.type==Yo.midNode||A.value.type==Yo.backNode?G.addEndpoint(Fe,{target:!0,source:!1,anchor:"Left",...J}):(G.addEndpoint(Fe,{target:!0,source:!1,anchor:"Left",...J}),G.addEndpoint(Fe,{target:!1,source:!0,anchor:"Right",...J}))});break}if(Ne.id==de.id){C.chain[me]=de;break}}},oe=async()=>{await(r==null?void 0:r.deployChain(n.currChainId)),wo.success("保存成功")},ge=Q=>{Q||G.deleteConnection(g.value)},Ae=async Q=>{i.nextTick(async()=>{C.chain.forEach(async X=>{X.id==g.value.targetId&&(await(r==null?void 0:r.upateNodeRelation([{id:X.id,parentId:g.value.sourceId,...Q}])),wo.success("线属性设置成功"),g.value.getOverlay("myLabel").setLabel(Q.lineLabel),X.lineLabel=Q.lineLabel,X.triggerType=Q.triggerType,X.parentId=g.value.sourceId,X.triggerType==0?G.setColor(g.value,"red"):G.setColor(g.value,U))})})},pe=()=>{E.value=!0,y.value=!1,m.value=!1},P=()=>{setTimeout(()=>{C.chain.forEach(de=>{let me=document.getElementById(de.id);de.type==Yo.midNode||de.type==Yo.backNode?G.addEndpoint(me,{uuid:"LEFT"+de.id,target:!0,source:!1,anchor:"Left",...J}):(G.addEndpoint(me,{uuid:"LEFT"+de.id,target:!0,source:!1,anchor:"Left",...J}),G.addEndpoint(me,{uuid:"RIGHT"+de.id,target:!1,source:!0,anchor:"Right",...J})),de.webLeft>o&&(o=de.webLeft+150),de.webTop>a&&(a=de.webTop+40)});const Q=document.getElementById("right-canvas"),X=document.getElementById("flowcontainer");if(o/Q.clientWidth>1||a/Q.clientHeight>1){let de=Math.ceil(o/Q.clientWidth)>Math.ceil(a/Q.clientHeight)?Math.ceil(o/Q.clientWidth):Math.ceil(a/Q.clientHeight);l.value=de>2?4:de,s.value=l.value,X.style.width=Q.clientWidth*l.value+"px",X.style.height=Q.clientHeight*l.value+"px"}C.chain.forEach(de=>{if(de.firstNodeFlag==1&&G.connect({uuids:["RIGHT-regular-start-node","LEFT"+de.id],source:document.getElementById("regular-start-node"),target:document.getElementById(de.id),paintStyle:{stroke:U,strokeWidth:3},connector:{type:vs.type,options:{curviness:63}}}),document.getElementById(de.parentId)){let me={uuids:["RIGHT"+de.parentId,"LEFT"+de.id],source:document.getElementById(de.parentId),target:document.getElementById(de.id),connector:{type:vs.type,options:{curviness:63}},paintStyle:{stroke:de.triggerType==0?"red":U,strokeWidth:3},connectorStyle:{stroke:U,strokeWidth:3}};G.connect(me)}})},50)};let G;var z={tolerance:"touch",hoverClass:"dropHover",activeClass:"dragActive"},U="#09A4F0",J={paintStyle:{fill:"#fff"},hoverPaintStyle:{fill:"#FCFD3C",stroke:"#FCFD3C",cursor:"crosshair"},endpoint:{type:"Dot",options:{radius:6,hoverClass:{}}},connectorHoverStyle:{stroke:"#FCFD3C"},maxConnections:16,dropOptions:z,connectionsDetachable:!0,deleteEndpointsOnDetach:!0};const ne=async Q=>(await(r==null?void 0:r.getChainNodeDetail(Q))).data.data,ce=()=>{OW(()=>{const Q=document.getElementById("flowcontainer");G=kW({connectionsDetachable:!0,dragOptions:{cursor:"pointer",zIndex:2e3,containment:Ni.parentEnclosed},hoverClass:"",paintStyle:{stroke:U,strokeWidth:3},connector:{type:vs.type,options:{curviness:63,gap:6}},connectionOverlays:[{type:"Arrow",options:{location:1}},{type:"Label",options:{id:"myLabel",label:"",location:.5}}],container:Q}),G.batch(()=>{G.bind(o2,X=>{var de={top:X.elements[0].pos.y,left:X.elements[0].pos.x};C.chain.forEach(me=>{me.id==X.el.id&&(me.webTop=de.top,me.webLeft=de.left,r==null||r.upateNodeRelation([{id:me.id,webTop:me.webTop,webLeft:me.webLeft}]).then(()=>{}))})}),G.bind("connection",async X=>{if(X.sourceId=="regular-start-node")for(let de=0,me=C.chain.length;de<me;de++){let Ne=C.chain[de];if(Ne.id==X.targetId){if(Ne.parentId){G.deleteConnection(X);break}Ne.firstNodeFlag||(Ne.firstNodeFlag=1,await(r==null?void 0:r.upateNodeRelation([{id:Ne.id,firstNodeFlag:Ne.firstNodeFlag,triggerType:9}]))),G.removeOverlay(X.connection,"myLabel");break}}else for(let de=0,me=C.chain.length;de<me;de++){let Ne=C.chain[de];if(Ne.id==X.targetId){if(!Ne.parentId){let Fe=await ne(X.sourceId);console.log(Fe),p.value={id:null,lineLabel:"",triggerType:9,parentType:Fe==null?void 0:Fe.type},g.value=X.connection,h.value="line"}Ne.parentId&&Ne.parentId!=X.sourceId?G.deleteConnection(X.connection):X.connection.getOverlay("myLabel").setLabel(Ne.lineLabel||"");break}}}),G.bind(c2,(X,de)=>{de.preventDefault(),au.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{G.deleteConnection(X),C.chain.forEach(me=>{me.id==X.targetId&&(delete me.lineLabel,delete me.triggerType,delete me.parentId,me.firstNodeFlag=0,r==null||r.upateNodeRelation([{id:me.id,parentId:0,firstNodeFlag:0,lineLabel:"",triggerType:9}]))}),h.value="0"}).catch(()=>{})}),G.bind(l2,X=>{if(g.value=X,p.value.id=X.targetId,p.value.triggerType=9,p.value.parentType="",p.value.lineLabel=X.getOverlay("myLabel").getLabel(),X.sourceId=="regular-start-node"){d.value=!0;return}else d.value=!1;C.chain.forEach(async de=>{if(de.id==X.targetId){let me=await ne(de.parentId);p.value.id=de.id,p.value.lineLabel=de.lineLabel,p.value.triggerType=de.triggerType,p.value.parentType=me==null?void 0:me.type,h.value="line"}})})}),G.addEndpoint(document.getElementById("regular-start-node"),{uuid:"RIGHT-regular-start-node",target:!1,source:!0,anchor:"Right",...J}),G.registerConnectionType("custom",{connectorStyle:{stroke:"red",strokeWidth:3},paintStyle:{stroke:"red",strokeWidth:3},connector:{type:vs.type,options:{curviness:63,gap:6}},connectionOverlays:[{type:"Arrow",options:{location:1}},{type:"Label",options:{id:"myLabel",label:"",location:.5}}]})})};return i.watch(()=>n.currChainId,async()=>{if(n.currChainId){let Q=await(r==null?void 0:r.getChainAllNode(n.currChainId));C.chain=Q.data.data||[],i.nextTick(()=>{P()})}},{immediate:!0,deep:!0}),t({state:C,clickNodeType:h}),i.onMounted(()=>{ce()}),(Q,X)=>{const de=$i,me=al,Ne=jD,Fe=Ds,lt=tu,We=eu,Ce=Lo,ct=lU,Ct=oU,ue=YH,Ee=LH;return i.openBlock(),i.createElementBlock("div",$W,[i.createElementVNode("div",eK,[i.createElementVNode("div",tK,[i.createVNode(Fe,{class:"custom-scrollbar"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(x),(Be,ot)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",nK,i.toDisplayString(Be.panelTitle),1),i.createVNode(me,{gutter:20},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Be.list,le=>(i.openBlock(),i.createBlock(de,{span:24},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"node-comm",style:i.normalizeStyle({backgroundImage:"url("+le.icon+")"}),draggable:"true",onDragstart:Le=>b(le),onDragend:T},i.toDisplayString(le.name),45,oK)]),_:2},1024))),256))]),_:2},1024),ot+1!=i.unref(x).length?(i.openBlock(),i.createBlock(Ne,{key:0,class:"node-space"})):i.createCommentVNode("",!0)]))),256))]),_:1})])]),rK,i.createVNode(Fe,{class:"right-canvas custom-scrollbar",id:"right-canvas"},{default:i.withCtx(()=>[i.createElementVNode("div",aK,[i.createVNode(We,{ref_key:"canvasSizeSelect",ref:u,style:{width:"100px","margin-right":"10px"},modelValue:i.unref(l),"onUpdate:modelValue":X[0]||(X[0]=Be=>i.isRef(l)?l.value=Be:null),class:"m-2",placeholder:"画布倍率",onChange:f},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(c,Be=>i.createVNode(lt,{key:Be.value,label:Be.label,value:Be.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),i.createVNode(Ce,{class:"confirm-button",type:"primary",onClick:oe},{default:i.withCtx(()=>[i.createTextVNode("保存")]),_:1})]),i.createElementVNode("div",{class:"flow-parent",id:"flowcontainer",ref:"flowcontainer",onDrop:X[1]||(X[1]=Be=>_(Be)),onDragover:X[2]||(X[2]=Be=>j(Be)),onClick:pe},[sK,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(C).chain,Be=>(i.openBlock(),i.createElementBlock("div",{class:"node-comm",onContextmenu:i.withModifiers(ot=>I(Be),["prevent","stop"]),style:i.normalizeStyle(q(Be)),key:Be.id,id:Be.id,onDblclick:i.withModifiers(ot=>H(Be),["stop"]),title:Be.nodeName},i.toDisplayString(Be.nodeName),45,iK))),128))],544)]),_:1}),i.unref(h)=="3"?(i.openBlock(),i.createBlock(ct,{key:0,modelValue:i.unref(h),"onUpdate:modelValue":X[3]||(X[3]=Be=>i.isRef(h)?h.value=Be:h=Be),clickNodeInfo:i.unref(v),onSaveConfiguration:K},null,8,["modelValue","clickNodeInfo"])):i.createCommentVNode("",!0),i.unref(h)=="2"?(i.openBlock(),i.createBlock(Ct,{key:1,modelValue:i.unref(h),"onUpdate:modelValue":X[4]||(X[4]=Be=>i.isRef(h)?h.value=Be:h=Be),clickNodeInfo:i.unref(v),onSaveConfiguration:K},null,8,["modelValue","clickNodeInfo"])):i.createCommentVNode("",!0),i.unref(h)=="1"?(i.openBlock(),i.createBlock(ue,{key:2,ref:"expressionRef",modelValue:i.unref(h),"onUpdate:modelValue":X[5]||(X[5]=Be=>i.isRef(h)?h.value=Be:h=Be),clickNodeInfo:i.unref(v),onSaveConfiguration:K},null,8,["modelValue","clickNodeInfo"])):i.createCommentVNode("",!0),i.unref(h)=="line"&&!i.unref(d)?(i.openBlock(),i.createBlock(Ee,{key:3,modelValue:i.unref(h),"onUpdate:modelValue":X[6]||(X[6]=Be=>i.isRef(h)?h.value=Be:h=Be),lineAttr:i.unref(p),onSetConnectionLabel:Ae,onCancelLine:ge},null,8,["modelValue","lineAttr"])):i.createCommentVNode("",!0)])}}}),cK=aa(lK,[["__scopeId","data-v-e14c68a8"]]),uK=i.defineComponent({__name:"ChainDetail",props:{id:Number},setup(e){const t=e,n=i.inject("apis"),r=i.ref({}),o=async()=>{let a=await(n==null?void 0:n.byIdGetChain(t.id));r.value=a.data.data};return i.watch(()=>t.id,()=>{o()},{immediate:!0}),(a,s)=>{const l=rl,c=Us;return i.openBlock(),i.createBlock(c,{"label-width":"120px"},{default:i.withCtx(()=>[i.createVNode(l,{label:"规则链名称:"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(r.value.name),1)]),_:1}),i.createVNode(l,{label:"规则链描述:"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(r.value.info),1)]),_:1}),i.createVNode(l,{label:"更新人:"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(r.value.updateUser),1)]),_:1}),i.createVNode(l,{label:"更新时间:"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(r.value.updateTime),1)]),_:1})]),_:1})}}}),_Y="",fK={style:{"margin-top":"30px","text-align":"center"}},dK={name:"RuleChain"},hK=i.defineComponent({...dK,props:{limitList:{default:()=>({editAtrs:{name:"编辑",limit:!0},queryAtrs:{name:"查询",limit:!0},deleteAtrs:{name:"删除",limit:!0},addAtrs:{name:"添加",limit:!0}})},apis:{default:()=>({})},showArea:{default:()=>!0}},setup(e){const t=e;i.provide("apis",t.apis),i.provide("showArea",t.showArea);let n=i.ref(null),r=i.ref(null);i.provide("currentFactId",n);const o=i.ref(!1),a=pe=>{o.value=!0,n.value=pe.factId,r.value=pe.id},s=()=>{o.value=!1};let l=i.reactive([{type:"index",isVisible:!0,label:"序号",align:"center",width:"60",fixed:!0},{prop:"name",isVisible:!0,label:"名称",width:"180",fixed:!0},{prop:"info",isVisible:!0,label:"描述",width:"180"},{prop:"mainFlag",isVisible:!0,label:"有效"},{prop:"updateUser",isVisible:!0,label:"更新人",width:120,align:"center"},{prop:"updateTime",isVisible:!0,label:"更新时间",width:200},{prop:"action",isVisible:!0,label:"操作",width:330}]);const c=i.ref(!1),u=i.reactive([]),f=i.reactive({name:""}),d=i.reactive({size:20,current:1,total:0}),h=i.ref($a.add),p=i.computed(()=>h.value===$a.add?"新增规则链":"编辑规则链"),g=i.ref(),v=i.ref({name:"",info:"",factName:"",mainFlag:!1}),m=i.reactive({name:[{required:!0,message:"请输入名字",trigger:"blur"}],info:[{required:!0,message:"请输入描述",trigger:"blur"}]}),y=i.ref(!1),E=()=>{h.value=$a.add,y.value=!0},x=i.ref(!1),C=async pe=>{var G;let P=await((G=t.apis)==null?void 0:G.byIdGetChain(pe.id));v.value=P.data.data,h.value=$a.edit,y.value=!0},A=()=>{v.value={},y.value=!1,g.value.resetFields(),x.value=!1},w=async()=>{var P;console.log("规则链----------"),c.value=!0,u.length=0;const pe=await((P=t.apis)==null?void 0:P.queryPageRuleChain({size:d.size,current:d.current,dtoObj:{name:f.name}}));c.value=!1,pe.data.data.records.map(G=>{G.mainFlag=G.mainFlag==1}),u.push(...pe.data.data.records||[]),d.total=pe.data.data.total},b=async pe=>{var P;await((P=t.apis)==null?void 0:P.editRuleChain(pe.id,{mainFlag:pe.mainFlag?1:0})),wo.success("修改成功"),w()},T=()=>{h.value===$a.add?S():_()},S=()=>{g.value.validate(async pe=>{var P;pe&&(await((P=t.apis)==null?void 0:P.saveRuleChain({name:v.value.name,info:v.value.info,mainFlag:v.value.mainFlag?1:0})),h.value===$a.add?wo.success("添加成功"):wo.success("编辑成功"),A(),w())})},_=()=>{g.value.validate(async pe=>{var P;pe&&(await((P=t.apis)==null?void 0:P.editRuleChain(v.value.id,{name:v.value.name,info:v.value.info,mainFlag:v.value.mainFlag?1:0})),wo.success("编辑成功"),A(),w())})},I=pe=>{au.confirm("确定删除该规则链吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var P;await((P=t.apis)==null?void 0:P.deleteRuleChain(pe)),wo.success("删除成功"),w()}).catch(()=>{})},H=i.ref(),B=async()=>{var P,G;wo.success("正在导出。。。");const pe=await((P=t.apis)==null?void 0:P.queryPageRuleChain({size:1e4,current:1,dtoObj:{name:f.name}}));(G=H.value)==null||G.exportExcel("规则链管理"+Date.now(),pe.data.data.records)},j=i.ref(!1),Z=i.ref(),q=pe=>{Z.value=pe.id,j.value=!0},K=async pe=>{var G;let P=await((G=t.apis)==null?void 0:G.exportRule(pe.id));q7(P.data,"导出规则")},oe=i.ref(),ge=i.ref([]),Ae=async pe=>{var P;if(!/\.(xlsx|xls|XLSX|XLS)$/.test(pe.name))return wo.error("上传文件只能为excel文件,且为xlsx,xls格式"),ge.value=[],!1;await((P=t.apis)==null?void 0:P.importRule({file:pe.raw})),wo.success("规则链导入成功!"),w(),ge.value=[]};return w(),(pe,P)=>{const G=uK,z=jl,U=_a,J=rl,ne=dy,ce=Us,Q=Lo,X=cK,de=OH,me=gH,Ne=dH,Fe=fH,lt=FB,We=rH,Ce=rE,ct=CD,Ct=ED;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(j)?(i.openBlock(),i.createBlock(z,{key:0,modelValue:i.unref(j),"onUpdate:modelValue":P[0]||(P[0]=ue=>i.isRef(j)?j.value=ue:null),title:"规则链详情",width:450,"destroy-on-close":""},{default:i.withCtx(()=>[i.createVNode(G,{id:i.unref(Z)},null,8,["id"])]),_:1},8,["modelValue"])):i.createCommentVNode("",!0),i.unref(y)?(i.openBlock(),i.createBlock(z,{key:1,onClose:A,modelValue:i.unref(y),"onUpdate:modelValue":P[4]||(P[4]=ue=>i.isRef(y)?y.value=ue:null),width:500,title:i.unref(p)},{default:i.withCtx(()=>[i.createVNode(ce,{model:i.unref(v),"label-width":"120px",rules:i.unref(m),ref_key:"addOrEditFormRef",ref:g},{default:i.withCtx(()=>[i.createVNode(J,{label:"规则链名称",prop:"name"},{default:i.withCtx(()=>[i.createVNode(U,{modelValue:i.unref(v).name,"onUpdate:modelValue":P[1]||(P[1]=ue=>i.unref(v).name=ue),placeholder:"请输入规则链名称","show-word-limit":"",maxlength:"30"},null,8,["modelValue"])]),_:1}),i.createVNode(J,{label:"规则链描述",prop:"info"},{default:i.withCtx(()=>[i.createVNode(U,{modelValue:i.unref(v).info,"onUpdate:modelValue":P[2]||(P[2]=ue=>i.unref(v).info=ue),placeholder:"请输入规则链描述","show-word-limit":"",maxlength:"64"},null,8,["modelValue"])]),_:1}),i.createVNode(J,{label:"有效",prop:"mainFlag"},{default:i.withCtx(()=>[i.createVNode(ne,{size:"small",modelValue:i.unref(v).mainFlag,"onUpdate:modelValue":P[3]||(P[3]=ue=>i.unref(v).mainFlag=ue)},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),i.createElementVNode("div",fK,[i.createVNode(Q,{onClick:T},{default:i.withCtx(()=>[i.createTextVNode("确定")]),_:1}),i.createVNode(Q,{onClick:A},{default:i.withCtx(()=>[i.createTextVNode("取消")]),_:1})])]),_:1},8,["modelValue","title"])):i.createCommentVNode("",!0),i.unref(o)?(i.openBlock(),i.createBlock(de,{key:2,class:"confiration-dialog",onClose:s,onOk:T,modelValue:i.unref(o),"onUpdate:modelValue":P[5]||(P[5]=ue=>i.isRef(o)?o.value=ue:null),fullscreen:"",dialogBg:"#00071F",titleBg:"#00071F",hasFooter:!1},{default:i.withCtx(()=>[i.createVNode(X,{currChainId:i.unref(r),class:"config-content"},null,8,["currChainId"])]),_:1},8,["modelValue"])):i.createCommentVNode("",!0),i.createVNode(Ct,{class:"layout-aside-main"},{default:i.withCtx(()=>[i.createVNode(ct,{class:"page-main"},{default:i.withCtx(()=>[i.createVNode(Fe,null,{right:i.withCtx(()=>[i.createVNode(lt,{class:"upload-demo",action:"",limit:1,ref_key:"upload",ref:oe,"show-file-list":!1,"auto-upload":!1,"on-change":Ae,"file-list":i.unref(ge),accept:"xlsx,xls"},{default:i.withCtx(()=>[i.createVNode(Q,{size:"small",type:"primary"},{default:i.withCtx(()=>[i.createTextVNode("导入")]),_:1})]),_:1},8,["file-list"]),i.createVNode(We,{onRefresh:w,headers:i.unref(l),"onUpdate:headers":P[7]||(P[7]=ue=>i.isRef(l)?l.value=ue:l=ue),ref_key:"threeBtnRef",ref:H,onExportData:B,sortable:!1},null,8,["headers"])]),default:i.withCtx(()=>[i.createVNode(Fe,null,{default:i.withCtx(()=>[i.createVNode(U,{placeholder:"规则链名称","prefix-icon":"Search",modelValue:i.unref(f).name,"onUpdate:modelValue":P[6]||(P[6]=ue=>i.unref(f).name=ue),clearable:""},null,8,["modelValue"]),pe.limitList.queryAtrs.limit?(i.openBlock(),i.createBlock(Q,{key:0,type:"primary",icon:"Search",onClick:w},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(pe.limitList.queryAtrs.name),1)]),_:1})):i.createCommentVNode("",!0),pe.limitList.addAtrs.limit?(i.openBlock(),i.createBlock(Q,{key:1,onClick:E},{default:i.withCtx(()=>[i.createVNode(Ne,{color:"#2a82e4"},{default:i.withCtx(()=>[i.createVNode(me)]),_:1}),i.createTextVNode(" "+i.toDisplayString(pe.limitList.addAtrs.name),1)]),_:1})):i.createCommentVNode("",!0)]),_:1})]),_:1}),i.createVNode(Ce,{loading:i.unref(c),"current-page":i.unref(d).current,"onUpdate:currentPage":P[8]||(P[8]=ue=>i.unref(d).current=ue),"page-size":i.unref(d).size,"onUpdate:pageSize":P[9]||(P[9]=ue=>i.unref(d).size=ue),onSizeOrCurrentChange:w,data:i.unref(u),headers:i.unref(l),showPage:"",total:i.unref(d).total},{"row.mainFlag":i.withCtx(({row:ue})=>[i.createVNode(ne,{onChange:Ee=>b(ue),modelValue:ue.mainFlag,"onUpdate:modelValue":Ee=>ue.mainFlag=Ee,"inline-prompt":""},null,8,["onChange","modelValue","onUpdate:modelValue"])]),"row.action":i.withCtx(({row:ue})=>[i.createVNode(Q,{type:"primary",size:"small",text:"",onClick:Ee=>a(ue)},{default:i.withCtx(()=>[i.createTextVNode("组态")]),_:2},1032,["onClick"]),pe.limitList.editAtrs.limit?(i.openBlock(),i.createBlock(Q,{key:0,type:"primary",size:"small",text:"",onClick:Ee=>C(ue)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(pe.limitList.editAtrs.name),1)]),_:2},1032,["onClick"])):i.createCommentVNode("",!0),pe.limitList.deleteAtrs.limit?(i.openBlock(),i.createBlock(Q,{key:1,type:"primary",size:"small",text:"",onClick:Ee=>I(ue.id)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(pe.limitList.deleteAtrs.name),1)]),_:2},1032,["onClick"])):i.createCommentVNode("",!0),i.createVNode(Q,{type:"primary",size:"small",text:"",onClick:Ee=>q(ue)},{default:i.withCtx(()=>[i.createTextVNode("详情")]),_:2},1032,["onClick"]),i.createVNode(Q,{type:"primary",size:"small",text:"",onClick:Ee=>K(ue)},{default:i.withCtx(()=>[i.createTextVNode("导出")]),_:2},1032,["onClick"])]),_:1},8,["loading","current-page","page-size","data","headers","total"])]),_:1})]),_:1})],64)}}}),G2=aa(hK,[["__scopeId","data-v-1b9ba398"]]),pK=[G2],vK={install:e=>{pK.forEach(t=>{e.component(t.name,t),console.log(t.name)})}};Tt.RuleChain=G2,Tt.default=vK,Object.defineProperties(Tt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});