vue-safe-force-graph 2.0.85 → 2.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/style.css +1984 -1
- package/lib/vue-safe-force-graph.js +49410 -28248
- package/lib/vue-safe-force-graph.umd.cjs +62645 -125
- package/package.json +2 -1
- package/lib/web-component/style.css +0 -1
- package/lib/web-component/vue-safe-force-graph.js +0 -46517
- package/lib/web-component/vue-safe-force-graph.umd.cjs +0 -155
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
(function(yt,nn){typeof exports=="object"&&typeof module!="undefined"?nn(exports):typeof define=="function"&&define.amd?define(["exports"],nn):(yt=typeof globalThis!="undefined"?globalThis:yt||self,nn(yt.safeGraphWebComponent={}))})(this,function(yt){"use strict";var Uhe=Object.defineProperty,$he=Object.defineProperties;var Vhe=Object.getOwnPropertyDescriptors;var Hp=Object.getOwnPropertySymbols;var Z9=Object.prototype.hasOwnProperty,Q9=Object.prototype.propertyIsEnumerable;var Gp=Math.pow,X9=(yt,nn,Zt)=>nn in yt?Uhe(yt,nn,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):yt[nn]=Zt,be=(yt,nn)=>{for(var Zt in nn||(nn={}))Z9.call(nn,Zt)&&X9(yt,Zt,nn[Zt]);if(Hp)for(var Zt of Hp(nn))Q9.call(nn,Zt)&&X9(yt,Zt,nn[Zt]);return yt},Me=(yt,nn)=>$he(yt,Vhe(nn));var Ps=(yt,nn)=>{var Zt={};for(var _t in yt)Z9.call(yt,_t)&&nn.indexOf(_t)<0&&(Zt[_t]=yt[_t]);if(yt!=null&&Hp)for(var _t of Hp(yt))nn.indexOf(_t)<0&&Q9.call(yt,_t)&&(Zt[_t]=yt[_t]);return Zt};var rt=(yt,nn,Zt)=>new Promise((_t,Hr)=>{var Ct=Ki=>{try{Ts(Zt.next(Ki))}catch(qt){Hr(qt)}},Wp=Ki=>{try{Ts(Zt.throw(Ki))}catch(qt){Hr(qt)}},Ts=Ki=>Ki.done?_t(Ki.value):Promise.resolve(Ki.value).then(Ct,Wp);Ts((Zt=Zt.apply(yt,nn)).next())});const nn="";/**
|
|
2
|
-
* @vue/shared v3.5.6
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function Zt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const _t={},Hr=[],Ct=()=>{},Wp=()=>!1,Ts=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ki=e=>e.startsWith("onUpdate:"),qt=Object.assign,Kp=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},tP=Object.prototype.hasOwnProperty,vt=(e,t)=>tP.call(e,t),De=Array.isArray,Sa=e=>Gl(e)==="[object Map]",Yu=e=>Gl(e)==="[object Set]",Ky=e=>Gl(e)==="[object Date]",Fe=e=>typeof e=="function",Xe=e=>typeof e=="string",gr=e=>typeof e=="symbol",at=e=>e!==null&&typeof e=="object",Jy=e=>(at(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),Yy=Object.prototype.toString,Gl=e=>Yy.call(e),nP=e=>Gl(e).slice(8,-1),yo=e=>Gl(e)==="[object Object]",Jp=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wl=Zt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xu=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},iP=/-(\w)/g,zn=Xu(e=>e.replace(iP,(t,n)=>n?n.toUpperCase():"")),rP=/\B([A-Z])/g,Qn=Xu(e=>e.replace(rP,"-$1").toLowerCase()),Zu=Xu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kl=Xu(e=>e?`on${Zu(e)}`:""),Os=(e,t)=>!Object.is(e,t),Qu=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Xy=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Yp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Xp=e=>{const t=Xe(e)?Number(e):NaN;return isNaN(t)?e:t};let Zy;const Qy=()=>Zy||(Zy=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Ze(e){if(De(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Xe(r)?lP(r):Ze(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(Xe(e)||at(e))return e}const sP=/;(?![^(]*\))/g,oP=/:([^]+)/,aP=/\/\*[^]*?\*\//g;function lP(e){const t={};return e.replace(aP,"").split(sP).forEach(n=>{if(n){const r=n.split(oP);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Z(e){let t="";if(Xe(e))t=e;else if(De(e))for(let n=0;n<e.length;n++){const r=Z(e[n]);r&&(t+=r+" ")}else if(at(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function cP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Xe(t)&&(e.class=Z(t)),n&&(e.style=Ze(n)),e}const uP=Zt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function e_(e){return!!e||e===""}function dP(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ea(e[r],t[r]);return n}function Ea(e,t){if(e===t)return!0;let n=Ky(e),r=Ky(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=gr(e),r=gr(t),n||r)return e===t;if(n=De(e),r=De(t),n||r)return n&&r?dP(e,t):!1;if(n=at(e),r=at(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const a in e){const l=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(l&&!c||!l&&c||!Ea(e[a],t[a]))return!1}}return String(e)===String(t)}function t_(e,t){return e.findIndex(n=>Ea(n,t))}const n_=e=>!!(e&&e.__v_isRef===!0),Ne=e=>Xe(e)?e:e==null?"":De(e)||at(e)&&(e.toString===Yy||!Fe(e.toString))?n_(e)?Ne(e.value):JSON.stringify(e,i_,2):String(e),i_=(e,t)=>n_(t)?i_(e,t.value):Sa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Zp(r,o)+" =>"]=s,n),{})}:Yu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Zp(n))}:gr(t)?Zp(t):at(t)&&!De(t)&&!yo(t)?String(t):t,Zp=(e,t="")=>{var n;return gr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.6
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let qn;class fP{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=qn,!t&&qn&&(this.index=(qn.scopes||(qn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=qn;try{return qn=this,t()}finally{qn=n}}}on(){qn=this}off(){qn=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function r_(){return qn}function s_(e,t=!1){qn&&qn.cleanups.push(e)}let Ht;const Qp=new WeakSet;class o_{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,qn&&qn.active&&qn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Qp.has(this)&&(Qp.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||l_(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,h_(this),c_(this);const t=Ht,n=Ji;Ht=this,Ji=!0;try{return this.fn()}finally{u_(this),Ht=t,Ji=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ig(t);this.deps=this.depsTail=void 0,h_(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Qp.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ng(this)&&this.run()}get dirty(){return ng(this)}}let a_=0,Jl;function l_(e){e.flags|=8,e.next=Jl,Jl=e}function eg(){a_++}function tg(){if(--a_>0)return;let e;for(;Jl;){let t=Jl;for(Jl=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function c_(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function u_(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),ig(r),hP(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function ng(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(d_(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function d_(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Yl))return;e.globalVersion=Yl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ng(e)){e.flags&=-3;return}const n=Ht,r=Ji;Ht=e,Ji=!0;try{c_(e);const s=e.fn(e._value);(t.version===0||Os(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ht=n,Ji=r,u_(e),e.flags&=-3}}function ig(e){const{dep:t,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let s=t.computed.deps;s;s=s.nextDep)ig(s)}}function hP(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ji=!0;const f_=[];function Gr(){f_.push(Ji),Ji=!1}function Wr(){const e=f_.pop();Ji=e===void 0?!0:e}function h_(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ht;Ht=void 0;try{t()}finally{Ht=n}}}let Yl=0;class pP{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class rg{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!Ht||!Ji||Ht===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ht)n=this.activeLink=new pP(Ht,this),Ht.deps?(n.prevDep=Ht.depsTail,Ht.depsTail.nextDep=n,Ht.depsTail=n):Ht.deps=Ht.depsTail=n,Ht.flags&4&&p_(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ht.depsTail,n.nextDep=void 0,Ht.depsTail.nextDep=n,Ht.depsTail=n,Ht.deps===n&&(Ht.deps=r)}return n}trigger(t){this.version++,Yl++,this.notify(t)}notify(t){eg();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{tg()}}}function p_(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)p_(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const ed=new WeakMap,_o=Symbol(""),sg=Symbol(""),Xl=Symbol("");function In(e,t,n){if(Ji&&Ht){let r=ed.get(e);r||ed.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=new rg),s.track()}}function Kr(e,t,n,r,s,o){const a=ed.get(e);if(!a){Yl++;return}const l=c=>{c&&c.trigger()};if(eg(),t==="clear")a.forEach(l);else{const c=De(e),u=c&&Jp(n);if(c&&n==="length"){const d=Number(r);a.forEach((f,h)=>{(h==="length"||h===Xl||!gr(h)&&h>=d)&&l(f)})}else switch(n!==void 0&&l(a.get(n)),u&&l(a.get(Xl)),t){case"add":c?u&&l(a.get("length")):(l(a.get(_o)),Sa(e)&&l(a.get(sg)));break;case"delete":c||(l(a.get(_o)),Sa(e)&&l(a.get(sg)));break;case"set":Sa(e)&&l(a.get(_o));break}}tg()}function gP(e,t){var n;return(n=ed.get(e))==null?void 0:n.get(t)}function xa(e){const t=it(e);return t===e?t:(In(t,"iterate",Xl),wi(e)?t:t.map(Dn))}function td(e){return In(e=it(e),"iterate",Xl),e}const mP={__proto__:null,[Symbol.iterator](){return og(this,Symbol.iterator,Dn)},concat(...e){return xa(this).concat(...e.map(t=>De(t)?xa(t):t))},entries(){return og(this,"entries",e=>(e[1]=Dn(e[1]),e))},every(e,t){return Jr(this,"every",e,t,void 0,arguments)},filter(e,t){return Jr(this,"filter",e,t,n=>n.map(Dn),arguments)},find(e,t){return Jr(this,"find",e,t,Dn,arguments)},findIndex(e,t){return Jr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Jr(this,"findLast",e,t,Dn,arguments)},findLastIndex(e,t){return Jr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Jr(this,"forEach",e,t,void 0,arguments)},includes(...e){return ag(this,"includes",e)},indexOf(...e){return ag(this,"indexOf",e)},join(e){return xa(this).join(e)},lastIndexOf(...e){return ag(this,"lastIndexOf",e)},map(e,t){return Jr(this,"map",e,t,void 0,arguments)},pop(){return Zl(this,"pop")},push(...e){return Zl(this,"push",e)},reduce(e,...t){return g_(this,"reduce",e,t)},reduceRight(e,...t){return g_(this,"reduceRight",e,t)},shift(){return Zl(this,"shift")},some(e,t){return Jr(this,"some",e,t,void 0,arguments)},splice(...e){return Zl(this,"splice",e)},toReversed(){return xa(this).toReversed()},toSorted(e){return xa(this).toSorted(e)},toSpliced(...e){return xa(this).toSpliced(...e)},unshift(...e){return Zl(this,"unshift",e)},values(){return og(this,"values",Dn)}};function og(e,t,n){const r=td(e),s=r[t]();return r!==e&&!wi(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const vP=Array.prototype;function Jr(e,t,n,r,s,o){const a=td(e),l=a!==e&&!wi(e),c=a[t];if(c!==vP[t]){const f=c.apply(e,o);return l?Dn(f):f}let u=n;a!==e&&(l?u=function(f,h){return n.call(this,Dn(f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const d=c.call(a,u,r);return l&&s?s(d):d}function g_(e,t,n,r){const s=td(e);let o=n;return s!==e&&(wi(e)?n.length>3&&(o=function(a,l,c){return n.call(this,a,l,c,e)}):o=function(a,l,c){return n.call(this,a,Dn(l),c,e)}),s[t](o,...r)}function ag(e,t,n){const r=it(e);In(r,"iterate",Xl);const s=r[t](...n);return(s===-1||s===!1)&&ug(n[0])?(n[0]=it(n[0]),r[t](...n)):s}function Zl(e,t,n=[]){Gr(),eg();const r=it(e)[t].apply(e,n);return tg(),Wr(),r}const bP=Zt("__proto__,__v_isRef,__isVue"),m_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gr));function yP(e){gr(e)||(e=String(e));const t=it(this);return In(t,"has",e),t.hasOwnProperty(e)}class v_{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?P_:A_:o?x_:E_).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=De(t);if(!s){let c;if(a&&(c=mP[n]))return c;if(n==="hasOwnProperty")return yP}const l=Reflect.get(t,n,Bt(t)?t:r);return(gr(n)?m_.has(n):bP(n))||(s||In(t,"get",n),o)?l:Bt(l)?a&&Jp(n)?l:l.value:at(l)?s?Ql(l):Rn(l):l}}class b_ extends v_{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const c=wo(o);if(!wi(r)&&!wo(r)&&(o=it(o),r=it(r)),!De(t)&&Bt(o)&&!Bt(r))return c?!1:(o.value=r,!0)}const a=De(t)&&Jp(n)?Number(n)<t.length:vt(t,n),l=Reflect.set(t,n,r,Bt(t)?t:s);return t===it(s)&&(a?Os(r,o)&&Kr(t,"set",n,r):Kr(t,"add",n,r)),l}deleteProperty(t,n){const r=vt(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Kr(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!gr(n)||!m_.has(n))&&In(t,"has",n),r}ownKeys(t){return In(t,"iterate",De(t)?"length":_o),Reflect.ownKeys(t)}}class y_ extends v_{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const _P=new b_,wP=new y_,CP=new b_(!0),SP=new y_(!0),lg=e=>e,nd=e=>Reflect.getPrototypeOf(e);function id(e,t,n=!1,r=!1){e=e.__v_raw;const s=it(e),o=it(t);n||(Os(t,o)&&In(s,"get",t),In(s,"get",o));const{has:a}=nd(s),l=r?lg:n?dg:Dn;if(a.call(s,t))return l(e.get(t));if(a.call(s,o))return l(e.get(o));e!==s&&e.get(t)}function rd(e,t=!1){const n=this.__v_raw,r=it(n),s=it(e);return t||(Os(e,s)&&In(r,"has",e),In(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function sd(e,t=!1){return e=e.__v_raw,!t&&In(it(e),"iterate",_o),Reflect.get(e,"size",e)}function __(e,t=!1){!t&&!wi(e)&&!wo(e)&&(e=it(e));const n=it(this);return nd(n).has.call(n,e)||(n.add(e),Kr(n,"add",e,e)),this}function w_(e,t,n=!1){!n&&!wi(t)&&!wo(t)&&(t=it(t));const r=it(this),{has:s,get:o}=nd(r);let a=s.call(r,e);a||(e=it(e),a=s.call(r,e));const l=o.call(r,e);return r.set(e,t),a?Os(t,l)&&Kr(r,"set",e,t):Kr(r,"add",e,t),this}function C_(e){const t=it(this),{has:n,get:r}=nd(t);let s=n.call(t,e);s||(e=it(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&Kr(t,"delete",e,void 0),o}function S_(){const e=it(this),t=e.size!==0,n=e.clear();return t&&Kr(e,"clear",void 0,void 0),n}function od(e,t){return function(r,s){const o=this,a=o.__v_raw,l=it(a),c=t?lg:e?dg:Dn;return!e&&In(l,"iterate",_o),a.forEach((u,d)=>r.call(s,c(u),c(d),o))}}function ad(e,t,n){return function(...r){const s=this.__v_raw,o=it(s),a=Sa(o),l=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,u=s[e](...r),d=n?lg:t?dg:Dn;return!t&&In(o,"iterate",c?sg:_o),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function Ns(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function EP(){const e={get(o){return id(this,o)},get size(){return sd(this)},has:rd,add:__,set:w_,delete:C_,clear:S_,forEach:od(!1,!1)},t={get(o){return id(this,o,!1,!0)},get size(){return sd(this)},has:rd,add(o){return __.call(this,o,!0)},set(o,a){return w_.call(this,o,a,!0)},delete:C_,clear:S_,forEach:od(!1,!0)},n={get(o){return id(this,o,!0)},get size(){return sd(this,!0)},has(o){return rd.call(this,o,!0)},add:Ns("add"),set:Ns("set"),delete:Ns("delete"),clear:Ns("clear"),forEach:od(!0,!1)},r={get(o){return id(this,o,!0,!0)},get size(){return sd(this,!0)},has(o){return rd.call(this,o,!0)},add:Ns("add"),set:Ns("set"),delete:Ns("delete"),clear:Ns("clear"),forEach:od(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=ad(o,!1,!1),n[o]=ad(o,!0,!1),t[o]=ad(o,!1,!0),r[o]=ad(o,!0,!0)}),[e,n,t,r]}const[xP,AP,PP,TP]=EP();function ld(e,t){const n=t?e?TP:PP:e?AP:xP;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(vt(n,s)&&s in r?n:r,s,o)}const OP={get:ld(!1,!1)},NP={get:ld(!1,!0)},IP={get:ld(!0,!1)},RP={get:ld(!0,!0)},E_=new WeakMap,x_=new WeakMap,A_=new WeakMap,P_=new WeakMap;function DP(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function LP(e){return e.__v_skip||!Object.isExtensible(e)?0:DP(nP(e))}function Rn(e){return wo(e)?e:cd(e,!1,_P,OP,E_)}function cg(e){return cd(e,!1,CP,NP,x_)}function Ql(e){return cd(e,!0,wP,IP,A_)}function qhe(e){return cd(e,!0,SP,RP,P_)}function cd(e,t,n,r,s){if(!at(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const a=LP(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return s.set(e,l),l}function Aa(e){return wo(e)?Aa(e.__v_raw):!!(e&&e.__v_isReactive)}function wo(e){return!!(e&&e.__v_isReadonly)}function wi(e){return!!(e&&e.__v_isShallow)}function ug(e){return e?!!e.__v_raw:!1}function it(e){const t=e&&e.__v_raw;return t?it(t):e}function ud(e){return!vt(e,"__v_skip")&&Object.isExtensible(e)&&Xy(e,"__v_skip",!0),e}const Dn=e=>at(e)?Rn(e):e,dg=e=>at(e)?Ql(e):e;function Bt(e){return e?e.__v_isRef===!0:!1}function ie(e){return T_(e,!1)}function mn(e){return T_(e,!0)}function T_(e,t){return Bt(e)?e:new kP(e,t)}class kP{constructor(t,n){this.dep=new rg,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:it(t),this._value=n?t:Dn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||wi(t)||wo(t);t=r?t:it(t),Os(t,n)&&(this._rawValue=t,this._value=r?t:Dn(t),this.dep.trigger())}}function P(e){return Bt(e)?e.value:e}const MP={get:(e,t,n)=>t==="__v_raw"?e:P(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Bt(s)&&!Bt(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function O_(e){return Aa(e)?e:new Proxy(e,MP)}function mr(e){const t=De(e)?new Array(e.length):{};for(const n in e)t[n]=N_(e,n);return t}class FP{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return gP(it(this._object),this._key)}}class BP{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ci(e,t,n){return Bt(e)?e:Fe(e)?new BP(e):at(e)&&arguments.length>1?N_(e,t,n):ie(e)}function N_(e,t,n){const r=e[t];return Bt(r)?r:new FP(e,t,n)}class jP{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new rg(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Yl-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ht!==this)return l_(this),!0}get value(){const t=this.dep.track();return d_(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function UP(e,t,n=!1){let r,s;return Fe(e)?r=e:(r=e.get,s=e.set),new jP(r,s,n)}const dd={},fd=new WeakMap;let Co;function $P(e,t=!1,n=Co){if(n){let r=fd.get(n);r||fd.set(n,r=[]),r.push(e)}}function VP(e,t,n=_t){const{immediate:r,deep:s,once:o,scheduler:a,augmentJob:l,call:c}=n,u=S=>s?S:wi(S)||s===!1||s===0?Yr(S,1):Yr(S);let d,f,h,g,v=!1,y=!1;if(Bt(e)?(f=()=>e.value,v=wi(e)):Aa(e)?(f=()=>u(e),v=!0):De(e)?(y=!0,v=e.some(S=>Aa(S)||wi(S)),f=()=>e.map(S=>{if(Bt(S))return S.value;if(Aa(S))return u(S);if(Fe(S))return c?c(S,2):S()})):Fe(e)?t?f=c?()=>c(e,2):e:f=()=>{if(h){Gr();try{h()}finally{Wr()}}const S=Co;Co=d;try{return c?c(e,3,[g]):e(g)}finally{Co=S}}:f=Ct,t&&s){const S=f,x=s===!0?1/0:s;f=()=>Yr(S(),x)}const _=r_(),w=()=>{d.stop(),_&&Kp(_.effects,d)};if(o&&t){const S=t;t=(...x)=>{S(...x),w()}}let A=y?new Array(e.length).fill(dd):dd;const C=S=>{if(!(!(d.flags&1)||!d.dirty&&!S))if(t){const x=d.run();if(s||v||(y?x.some((O,N)=>Os(O,A[N])):Os(x,A))){h&&h();const O=Co;Co=d;try{const N=[x,A===dd?void 0:y&&A[0]===dd?[]:A,g];c?c(t,3,N):t(...N),A=x}finally{Co=O}}}else d.run()};return l&&l(C),d=new o_(f),d.scheduler=a?()=>a(C,!1):C,g=S=>$P(S,!1,d),h=d.onStop=()=>{const S=fd.get(d);if(S){if(c)c(S,4);else for(const x of S)x();fd.delete(d)}},t?r?C(!0):A=d.run():a?a(C.bind(null,!0),!0):d.run(),w.pause=d.pause.bind(d),w.resume=d.resume.bind(d),w.stop=w,w}function Yr(e,t=1/0,n){if(t<=0||!at(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Bt(e))Yr(e.value,t,n);else if(De(e))for(let r=0;r<e.length;r++)Yr(e[r],t,n);else if(Yu(e)||Sa(e))e.forEach(r=>{Yr(r,t,n)});else if(yo(e)){for(const r in e)Yr(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Yr(e[r],t,n)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.6
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/const ec=[];let fg=!1;function Hhe(e,...t){if(fg)return;fg=!0,Gr();const n=ec.length?ec[ec.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=zP();if(r)Pa(r,n,11,[e+t.map(o=>{var a,l;return(l=(a=o.toString)==null?void 0:a.call(o))!=null?l:JSON.stringify(o)}).join(""),n&&n.proxy,s.map(({vnode:o})=>`at <${M2(n,o.type)}>`).join(`
|
|
14
|
-
`),s]);else{const o=[`[Vue warn]: ${e}`,...t];s.length&&o.push(`
|
|
15
|
-
`,...qP(s)),console.warn(...o)}Wr(),fg=!1}function zP(){let e=ec[ec.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function qP(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
16
|
-
`],...HP(n))}),t}function HP({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${M2(e.component,e.type,r)}`,o=">"+n;return e.props?[s,...GP(e.props),o]:[s+o]}function GP(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...I_(r,e[r]))}),n.length>3&&t.push(" ..."),t}function I_(e,t,n){return Xe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Bt(t)?(t=I_(e,it(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Fe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=it(t),n?t:[`${e}=`,t])}function Pa(e,t,n,r){try{return r?e(...r):e()}catch(s){hd(s,t,n)}}function Yi(e,t,n,r){if(Fe(e)){const s=Pa(e,t,n,r);return s&&Jy(s)&&s.catch(o=>{hd(o,t,n)}),s}if(De(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Yi(e[o],t,n,r));return s}}function hd(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||_t;if(t){let l=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const d=l.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](e,c,u)===!1)return}l=l.parent}if(o){Gr(),Pa(o,null,10,[e,c,u]),Wr();return}}WP(e,n,s,r,a)}function WP(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}let tc=!1,hg=!1;const Hn=[];let vr=0;const Ta=[];let Is=null,Oa=0;const R_=Promise.resolve();let pg=null;function ft(e){const t=pg||R_;return e?t.then(this?e.bind(this):e):t}function KP(e){let t=tc?vr+1:0,n=Hn.length;for(;t<n;){const r=t+n>>>1,s=Hn[r],o=nc(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function gg(e){if(!(e.flags&1)){const t=nc(e),n=Hn[Hn.length-1];!n||!(e.flags&2)&&t>=nc(n)?Hn.push(e):Hn.splice(KP(t),0,e),e.flags|=1,D_()}}function D_(){!tc&&!hg&&(hg=!0,pg=R_.then(M_))}function JP(e){De(e)?Ta.push(...e):Is&&e.id===-1?Is.splice(Oa+1,0,e):e.flags&1||(Ta.push(e),e.flags|=1),D_()}function L_(e,t,n=tc?vr+1:0){for(;n<Hn.length;n++){const r=Hn[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Hn.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&=-2}}}function k_(e){if(Ta.length){const t=[...new Set(Ta)].sort((n,r)=>nc(n)-nc(r));if(Ta.length=0,Is){Is.push(...t);return}for(Is=t,Oa=0;Oa<Is.length;Oa++){const n=Is[Oa];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Is=null,Oa=0}}const nc=e=>e.id==null?e.flags&2?-1:1/0:e.id;function M_(e){hg=!1,tc=!0;const t=Ct;try{for(vr=0;vr<Hn.length;vr++){const n=Hn[vr];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),Pa(n,n.i,n.i?15:14),n.flags&=-2)}}finally{for(;vr<Hn.length;vr++){const n=Hn[vr];n&&(n.flags&=-2)}vr=0,Hn.length=0,k_(),tc=!1,pg=null,(Hn.length||Ta.length)&&M_()}}let _n=null,pd=null;function gd(e){const t=_n;return _n=e,pd=e&&e.type.__scopeId||null,t}function YP(e){pd=e}function XP(){pd=null}const ZP=e=>te;function te(e,t=_n,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&E2(-1);const o=gd(t);let a;try{a=e(...s)}finally{gd(o),r._d&&E2(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Dt(e,t){if(_n===null)return e;const n=Td(_n),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,a,l,c=_t]=t[s];o&&(Fe(o)&&(o={mounted:o,updated:o}),o.deep&&Yr(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function So(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let a=0;a<s.length;a++){const l=s[a];o&&(l.oldValue=o[a].value);let c=l.dir[r];c&&(Gr(),Yi(c,n,8,[e.el,l,e,t]),Wr())}}const F_=Symbol("_vte"),B_=e=>e.__isTeleport,ic=e=>e&&(e.disabled||e.disabled===""),QP=e=>e&&(e.defer||e.defer===""),j_=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,U_=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,mg=(e,t)=>{const n=e&&e.to;return Xe(n)?t?t(n):null:n},eT={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,a,l,c,u){const{mc:d,pc:f,pbc:h,o:{insert:g,querySelector:v,createText:y,createComment:_}}=u,w=ic(t.props);let{shapeFlag:A,children:C,dynamicChildren:S}=t;if(e==null){const x=t.el=y(""),O=t.anchor=y("");g(x,n,r),g(O,n,r);const N=(F,D)=>{A&16&&(s&&s.isCE&&(s.ce._teleportTarget=F),d(C,F,D,s,o,a,l,c))},I=()=>{const F=t.target=mg(t.props,v),D=$_(F,t,y,g);F&&(a!=="svg"&&j_(F)?a="svg":a!=="mathml"&&U_(F)&&(a="mathml"),w||(N(F,D),vd(t)))};w&&(N(n,O),vd(t)),QP(t.props)?ei(I,o):I()}else{t.el=e.el,t.targetStart=e.targetStart;const x=t.anchor=e.anchor,O=t.target=e.target,N=t.targetAnchor=e.targetAnchor,I=ic(e.props),F=I?n:O,D=I?x:N;if(a==="svg"||j_(O)?a="svg":(a==="mathml"||U_(O))&&(a="mathml"),S?(h(e.dynamicChildren,S,F,s,o,a,l),Ig(e,t,!0)):c||f(e,t,F,D,s,o,a,l,!1),w)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):md(t,n,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const k=t.target=mg(t.props,v);k&&md(t,k,null,u,0)}else I&&md(t,O,N,u,1);vd(t)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:c,targetStart:u,targetAnchor:d,target:f,props:h}=e;if(f&&(s(u),s(d)),o&&s(c),a&16){const g=o||!ic(h);for(let v=0;v<l.length;v++){const y=l[v];r(y,t,n,g,!!y.dynamicChildren)}}},move:md,hydrate:tT};function md(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:a,anchor:l,shapeFlag:c,children:u,props:d}=e,f=o===2;if(f&&r(a,t,n),(!f||ic(d))&&c&16)for(let h=0;h<u.length;h++)s(u[h],t,n,2);f&&r(l,t,n)}function tT(e,t,n,r,s,o,{o:{nextSibling:a,parentNode:l,querySelector:c,insert:u,createText:d}},f){const h=t.target=mg(t.props,c);if(h){const g=h._lpa||h.firstChild;if(t.shapeFlag&16)if(ic(t.props))t.anchor=f(a(e),t,l(e),n,r,s,o),t.targetStart=g,t.targetAnchor=g&&a(g);else{t.anchor=a(e);let v=g;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,h._lpa=t.targetAnchor&&a(t.targetAnchor);break}}v=a(v)}t.targetAnchor||$_(h,t,d,u),f(g&&a(g),t,h,n,r,s,o)}vd(t)}return t.anchor&&a(t.anchor)}const nT=eT;function vd(e){const t=e.ctx;if(t&&t.ut){let n=e.targetStart;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function $_(e,t,n,r){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[F_]=o,e&&(r(s,e),r(o,e)),o}const Rs=Symbol("_leaveCb"),bd=Symbol("_enterCb");function V_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mt(()=>{e.isMounted=!0}),hn(()=>{e.isUnmounting=!0}),e}const Si=[Function,Array],z_={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Si,onEnter:Si,onAfterEnter:Si,onEnterCancelled:Si,onBeforeLeave:Si,onLeave:Si,onAfterLeave:Si,onLeaveCancelled:Si,onBeforeAppear:Si,onAppear:Si,onAfterAppear:Si,onAppearCancelled:Si},q_=e=>{const t=e.subTree;return t.component?q_(t.component):t},iT={name:"BaseTransition",props:z_,setup(e,{slots:t}){const n=xt(),r=V_();return()=>{const s=t.default&&bg(t.default(),!0);if(!s||!s.length)return;const o=H_(s),a=it(e),{mode:l}=a;if(r.isLeaving)return vg(o);const c=W_(o);if(!c)return vg(o);let u=rc(c,a,r,n,h=>u=h);c.type!==xn&&Eo(c,u);const d=n.subTree,f=d&&W_(d);if(f&&f.type!==xn&&!Po(c,f)&&q_(n).type!==xn){const h=rc(f,a,r,n);if(Eo(f,h),l==="out-in"&&c.type!==xn)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave},vg(o);l==="in-out"&&c.type!==xn&&(h.delayLeave=(g,v,y)=>{const _=G_(r,f);_[String(f.key)]=f,g[Rs]=()=>{v(),g[Rs]=void 0,delete u.delayedLeave},u.delayedLeave=y})}return o}}};function H_(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==xn){t=n;break}}return t}const rT=iT;function G_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function rc(e,t,n,r,s){const{appear:o,mode:a,persisted:l=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:v,onLeaveCancelled:y,onBeforeAppear:_,onAppear:w,onAfterAppear:A,onAppearCancelled:C}=t,S=String(e.key),x=G_(n,e),O=(F,D)=>{F&&Yi(F,r,9,D)},N=(F,D)=>{const k=D[1];O(F,D),De(F)?F.every(q=>q.length<=1)&&k():F.length<=1&&k()},I={mode:a,persisted:l,beforeEnter(F){let D=c;if(!n.isMounted)if(o)D=_||c;else return;F[Rs]&&F[Rs](!0);const k=x[S];k&&Po(e,k)&&k.el[Rs]&&k.el[Rs](),O(D,[F])},enter(F){let D=u,k=d,q=f;if(!n.isMounted)if(o)D=w||u,k=A||d,q=C||f;else return;let H=!1;const oe=F[bd]=ce=>{H||(H=!0,ce?O(q,[F]):O(k,[F]),I.delayedLeave&&I.delayedLeave(),F[bd]=void 0)};D?N(D,[F,oe]):oe()},leave(F,D){const k=String(e.key);if(F[bd]&&F[bd](!0),n.isUnmounting)return D();O(h,[F]);let q=!1;const H=F[Rs]=oe=>{q||(q=!0,D(),oe?O(y,[F]):O(v,[F]),F[Rs]=void 0,x[k]===e&&delete x[k])};x[k]=e,g?N(g,[F,H]):H()},clone(F){const D=rc(F,t,n,r,s);return s&&s(D),D}};return I}function vg(e){if(yd(e))return e=Zr(e),e.children=null,e}function W_(e){if(!yd(e))return B_(e.type)&&e.children?H_(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Fe(n.default))return n.default()}}function Eo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Eo(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function bg(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let a=e[o];const l=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===qe?(a.patchFlag&128&&s++,r=r.concat(bg(a.children,t,l))):(t||a.type!==xn)&&r.push(l!=null?Zr(a,{key:l}):a)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function Pe(e,t){return Fe(e)?(()=>qt({name:e.name},t,{setup:e}))():e}function K_(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function yg(e,t,n,r,s=!1){if(De(e)){e.forEach((v,y)=>yg(v,t&&(De(t)?t[y]:t),n,r,s));return}if(Na(r)&&!s)return;const o=r.shapeFlag&4?Td(r.component):r.el,a=s?null:o,{i:l,r:c}=e,u=t&&t.r,d=l.refs===_t?l.refs={}:l.refs,f=l.setupState,h=it(f),g=f===_t?()=>!1:v=>vt(h,v);if(u!=null&&u!==c&&(Xe(u)?(d[u]=null,g(u)&&(f[u]=null)):Bt(u)&&(u.value=null)),Fe(c))Pa(c,l,12,[a,d]);else{const v=Xe(c),y=Bt(c);if(v||y){const _=()=>{if(e.f){const w=v?g(c)?f[c]:d[c]:c.value;s?De(w)&&Kp(w,o):De(w)?w.includes(o)||w.push(o):v?(d[c]=[o],g(c)&&(f[c]=d[c])):(c.value=[o],e.k&&(d[e.k]=c.value))}else v?(d[c]=a,g(c)&&(f[c]=a)):y&&(c.value=a,e.k&&(d[e.k]=a))};a?(_.id=-1,ei(_,n)):_()}}}const Na=e=>!!e.type.__asyncLoader,yd=e=>e.type.__isKeepAlive;function J_(e,t){X_(e,"a",t)}function Y_(e,t){X_(e,"da",t)}function X_(e,t,n=An){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(_d(t,r,n),n){let s=n.parent;for(;s&&s.parent;)yd(s.parent.vnode)&&sT(r,t,n,s),s=s.parent}}function sT(e,t,n,r){const s=_d(t,e,r,!0);xo(()=>{Kp(r[t],s)},n)}function _d(e,t,n=An,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Gr();const l=fc(n),c=Yi(t,n,e,a);return l(),Wr(),c});return r?s.unshift(o):s.push(o),o}}const Xr=e=>(t,n=An)=>{(!Pd||e==="sp")&&_d(e,(...r)=>t(...r),n)},sc=Xr("bm"),Mt=Xr("m"),oT=Xr("bu"),oc=Xr("u"),hn=Xr("bum"),xo=Xr("um"),aT=Xr("sp"),lT=Xr("rtg"),cT=Xr("rtc");function uT(e,t=An){_d("ec",e,t)}const _g="components",dT="directives";function Ge(e,t){return wg(_g,e,!0,t)||e}const Z_=Symbol.for("v-ndc");function Qt(e){return Xe(e)?wg(_g,e,!1)||e:e||Z_}function wd(e){return wg(dT,e)}function wg(e,t,n=!0,r=!1){const s=_n||An;if(s){const o=s.type;if(e===_g){const l=k2(o,!1);if(l&&(l===t||l===zn(t)||l===Zu(zn(t))))return o}const a=Q_(s[e]||o[e],t)||Q_(s.appContext[e],t);return!a&&r?o:a}}function Q_(e,t){return e&&(e[t]||e[zn(t)]||e[Zu(zn(t))])}function Nt(e,t,n,r){let s;const o=n&&n[r],a=De(e);if(a||Xe(e)){const l=a&&Aa(e);let c=!1;l&&(c=!wi(e),e=td(e)),s=new Array(e.length);for(let u=0,d=e.length;u<d;u++)s[u]=t(c?Dn(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,o&&o[l])}else if(at(e))if(e[Symbol.iterator])s=Array.from(e,(l,c)=>t(l,c,void 0,o&&o[c]));else{const l=Object.keys(e);s=new Array(l.length);for(let c=0,u=l.length;c<u;c++){const d=l[c];s[c]=t(e[d],d,c,o&&o[c])}}else s=[];return n&&(n[r]=s),s}function Cg(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(De(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const o=r.fn(...s);return o&&(o.key=r.key),o}:r.fn)}return e}function Ie(e,t,n={},r,s){if(_n.ce||_n.parent&&Na(_n.parent)&&_n.parent.ce)return t!=="default"&&(n.name=t),R(),_e(qe,null,[ne("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),R();const a=o&&e2(o(n)),l=_e(qe,{key:(n.key||a&&a.key||`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function e2(e){return e.some(t=>Ls(t)?!(t.type===xn||t.type===qe&&!e2(t.children)):!0)?e:null}function fT(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Kl(r)]=e[r];return n}const Sg=e=>e?N2(e)?Td(e):Sg(e.parent):null,ac=qt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Sg(e.parent),$root:e=>Sg(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ag(e),$forceUpdate:e=>e.f||(e.f=()=>{gg(e.update)}),$nextTick:e=>e.n||(e.n=ft.bind(e.proxy)),$watch:e=>kT.bind(e)}),Eg=(e,t)=>e!==_t&&!e.__isScriptSetup&&vt(e,t),hT={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:a,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const g=a[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Eg(r,t))return a[t]=1,r[t];if(s!==_t&&vt(s,t))return a[t]=2,s[t];if((u=e.propsOptions[0])&&vt(u,t))return a[t]=3,o[t];if(n!==_t&&vt(n,t))return a[t]=4,n[t];xg&&(a[t]=0)}}const d=ac[t];let f,h;if(d)return t==="$attrs"&&In(e.attrs,"get",""),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==_t&&vt(n,t))return a[t]=4,n[t];if(h=c.config.globalProperties,vt(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Eg(s,t)?(s[t]=n,!0):r!==_t&&vt(r,t)?(r[t]=n,!0):vt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},a){let l;return!!n[a]||e!==_t&&vt(e,a)||Eg(t,a)||(l=o[0])&&vt(l,a)||vt(r,a)||vt(ac,a)||vt(s.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:vt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ia(){return t2().slots}function pT(){return t2().attrs}function t2(){const e=xt();return e.setupContext||(e.setupContext=L2(e))}function n2(e){return De(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xg=!0;function gT(e){const t=Ag(e),n=e.proxy,r=e.ctx;xg=!1,t.beforeCreate&&i2(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:a,watch:l,provide:c,inject:u,created:d,beforeMount:f,mounted:h,beforeUpdate:g,updated:v,activated:y,deactivated:_,beforeDestroy:w,beforeUnmount:A,destroyed:C,unmounted:S,render:x,renderTracked:O,renderTriggered:N,errorCaptured:I,serverPrefetch:F,expose:D,inheritAttrs:k,components:q,directives:H,filters:oe}=t;if(u&&mT(u,r,null),a)for(const Y in a){const K=a[Y];Fe(K)&&(r[Y]=K.bind(n))}if(s){const Y=s.call(n,n);at(Y)&&(e.data=Rn(Y))}if(xg=!0,o)for(const Y in o){const K=o[Y],ee=Fe(K)?K.bind(n,n):Fe(K.get)?K.get.bind(n,n):Ct,B=!Fe(K)&&Fe(K.set)?K.set.bind(n):Ct,Ee=W({get:ee,set:B});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:me=>Ee.value=me})}if(l)for(const Y in l)r2(l[Y],r,n,Y);if(c){const Y=Fe(c)?c.call(n):c;Reflect.ownKeys(Y).forEach(K=>{cn(K,Y[K])})}d&&i2(d,e,"c");function U(Y,K){De(K)?K.forEach(ee=>Y(ee.bind(n))):K&&Y(K.bind(n))}if(U(sc,f),U(Mt,h),U(oT,g),U(oc,v),U(J_,y),U(Y_,_),U(uT,I),U(cT,O),U(lT,N),U(hn,A),U(xo,S),U(aT,F),De(D))if(D.length){const Y=e.exposed||(e.exposed={});D.forEach(K=>{Object.defineProperty(Y,K,{get:()=>n[K],set:ee=>n[K]=ee})})}else e.exposed||(e.exposed={});x&&e.render===Ct&&(e.render=x),k!=null&&(e.inheritAttrs=k),q&&(e.components=q),H&&(e.directives=H),F&&K_(e)}function mT(e,t,n=Ct){De(e)&&(e=Pg(e));for(const r in e){const s=e[r];let o;at(s)?"default"in s?o=et(s.from||r,s.default,!0):o=et(s.from||r):o=et(s),Bt(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function i2(e,t,n){Yi(De(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function r2(e,t,n,r){let s=r.includes(".")?_2(n,r):()=>n[r];if(Xe(e)){const o=t[e];Fe(o)&&ze(s,o)}else if(Fe(e))ze(s,e.bind(n));else if(at(e))if(De(e))e.forEach(o=>r2(o,t,n,r));else{const o=Fe(e.handler)?e.handler.bind(n):t[e.handler];Fe(o)&&ze(s,o,e)}}function Ag(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,l=o.get(t);let c;return l?c=l:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(u=>Cd(c,u,a,!0)),Cd(c,t,a)),at(t)&&o.set(t,c),c}function Cd(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Cd(e,o,n,!0),s&&s.forEach(a=>Cd(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=vT[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const vT={data:s2,props:o2,emits:o2,methods:lc,computed:lc,beforeCreate:Gn,created:Gn,beforeMount:Gn,mounted:Gn,beforeUpdate:Gn,updated:Gn,beforeDestroy:Gn,beforeUnmount:Gn,destroyed:Gn,unmounted:Gn,activated:Gn,deactivated:Gn,errorCaptured:Gn,serverPrefetch:Gn,components:lc,directives:lc,watch:yT,provide:s2,inject:bT};function s2(e,t){return t?e?function(){return qt(Fe(e)?e.call(this,this):e,Fe(t)?t.call(this,this):t)}:t:e}function bT(e,t){return lc(Pg(e),Pg(t))}function Pg(e){if(De(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Gn(e,t){return e?[...new Set([].concat(e,t))]:t}function lc(e,t){return e?qt(Object.create(null),e,t):t}function o2(e,t){return e?De(e)&&De(t)?[...new Set([...e,...t])]:qt(Object.create(null),n2(e),n2(t!=null?t:{})):t}function yT(e,t){if(!e)return t;if(!t)return e;const n=qt(Object.create(null),e);for(const r in t)n[r]=Gn(e[r],t[r]);return n}function a2(){return{app:null,config:{isNativeTag:Wp,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let _T=0;function wT(e,t){return function(r,s=null){Fe(r)||(r=qt({},r)),s!=null&&!at(s)&&(s=null);const o=a2(),a=new WeakSet,l=[];let c=!1;const u=o.app={_uid:_T++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:eO,get config(){return o.config},set config(d){},use(d,...f){return a.has(d)||(d&&Fe(d.install)?(a.add(d),d.install(u,...f)):Fe(d)&&(a.add(d),d(u,...f))),u},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),u},component(d,f){return f?(o.components[d]=f,u):o.components[d]},directive(d,f){return f?(o.directives[d]=f,u):o.directives[d]},mount(d,f,h){if(!c){const g=u._ceVNode||ne(r,s);return g.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(g,d):e(g,d,h),c=!0,u._container=d,d.__vue_app__=u,Td(g.component)}},onUnmount(d){l.push(d)},unmount(){c&&(Yi(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(d,f){return o.provides[d]=f,u},runWithContext(d){const f=Ra;Ra=u;try{return d()}finally{Ra=f}}};return u}}let Ra=null;function cn(e,t){if(An){let n=An.provides;const r=An.parent&&An.parent.provides;r===n&&(n=An.provides=Object.create(r)),n[e]=t}}function et(e,t,n=!1){const r=An||_n;if(r||Ra){const s=Ra?Ra._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Fe(t)?t.call(r&&r.proxy):t}}const l2={},c2=()=>Object.create(l2),u2=e=>Object.getPrototypeOf(e)===l2;function CT(e,t,n,r=!1){const s={},o=c2();e.propsDefaults=Object.create(null),d2(e,t,s,o);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:cg(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function ST(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:a}}=e,l=it(s),[c]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f<d.length;f++){let h=d[f];if(Ed(e.emitsOptions,h))continue;const g=t[h];if(c)if(vt(o,h))g!==o[h]&&(o[h]=g,u=!0);else{const v=zn(h);s[v]=Tg(c,l,v,g,e,!1)}else g!==o[h]&&(o[h]=g,u=!0)}}}else{d2(e,t,s,o)&&(u=!0);let d;for(const f in l)(!t||!vt(t,f)&&((d=Qn(f))===f||!vt(t,d)))&&(c?n&&(n[f]!==void 0||n[d]!==void 0)&&(s[f]=Tg(c,l,f,void 0,e,!0)):delete s[f]);if(o!==l)for(const f in o)(!t||!vt(t,f))&&(delete o[f],u=!0)}u&&Kr(e.attrs,"set","")}function d2(e,t,n,r){const[s,o]=e.propsOptions;let a=!1,l;if(t)for(let c in t){if(Wl(c))continue;const u=t[c];let d;s&&vt(s,d=zn(c))?!o||!o.includes(d)?n[d]=u:(l||(l={}))[d]=u:Ed(e.emitsOptions,c)||(!(c in r)||u!==r[c])&&(r[c]=u,a=!0)}if(o){const c=it(n),u=l||_t;for(let d=0;d<o.length;d++){const f=o[d];n[f]=Tg(s,c,f,u[f],e,!vt(u,f))}}return a}function Tg(e,t,n,r,s,o){const a=e[n];if(a!=null){const l=vt(a,"default");if(l&&r===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&Fe(c)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const d=fc(s);r=u[n]=c.call(null,t),d()}}else r=c;s.ce&&s.ce._setProp(n,r)}a[0]&&(o&&!l?r=!1:a[1]&&(r===""||r===Qn(n))&&(r=!0))}return r}const ET=new WeakMap;function f2(e,t,n=!1){const r=n?ET:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,a={},l=[];let c=!1;if(!Fe(e)){const d=f=>{c=!0;const[h,g]=f2(f,t,!0);qt(a,h),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!c)return at(e)&&r.set(e,Hr),Hr;if(De(o))for(let d=0;d<o.length;d++){const f=zn(o[d]);h2(f)&&(a[f]=_t)}else if(o)for(const d in o){const f=zn(d);if(h2(f)){const h=o[d],g=a[f]=De(h)||Fe(h)?{type:h}:qt({},h),v=g.type;let y=!1,_=!0;if(De(v))for(let w=0;w<v.length;++w){const A=v[w],C=Fe(A)&&A.name;if(C==="Boolean"){y=!0;break}else C==="String"&&(_=!1)}else y=Fe(v)&&v.name==="Boolean";g[0]=y,g[1]=_,(y||vt(g,"default"))&&l.push(f)}}const u=[a,l];return at(e)&&r.set(e,u),u}function h2(e){return e[0]!=="$"&&!Wl(e)}const p2=e=>e[0]==="_"||e==="$stable",Og=e=>De(e)?e.map(br):[br(e)],xT=(e,t,n)=>{if(t._n)return t;const r=te((...s)=>Og(t(...s)),n);return r._c=!1,r},g2=(e,t,n)=>{const r=e._ctx;for(const s in e){if(p2(s))continue;const o=e[s];if(Fe(o))t[s]=xT(s,o,r);else if(o!=null){const a=Og(o);t[s]=()=>a}}},m2=(e,t)=>{const n=Og(t);e.slots.default=()=>n},v2=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},AT=(e,t,n)=>{const r=e.slots=c2();if(e.vnode.shapeFlag&32){const s=t._;s?(v2(r,t,n),n&&Xy(r,"_",s,!0)):g2(t,r)}else t&&m2(e,t)},PT=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,a=_t;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:v2(s,t,n):(o=!t.$stable,g2(t,s)),a=t}else t&&(m2(e,t),a={default:1});if(o)for(const l in s)!p2(l)&&a[l]==null&&delete s[l]},ei=VT;function TT(e){return OT(e)}function OT(e,t){const n=Qy();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:a,createText:l,createComment:c,setText:u,setElementText:d,parentNode:f,nextSibling:h,setScopeId:g=Ct,insertStaticContent:v}=e,y=(j,J,ae,xe=null,de=null,pe=null,we=void 0,Ae=null,Te=!!J.dynamicChildren)=>{if(j===J)return;j&&!Po(j,J)&&(xe=z(j),me(j,de,pe,!0),j=null),J.patchFlag===-2&&(Te=!1,J.dynamicChildren=null);const{type:ve,ref:$e,shapeFlag:Q}=J;switch(ve){case Da:_(j,J,ae,xe);break;case xn:w(j,J,ae,xe);break;case cc:j==null&&A(J,ae,xe,we);break;case qe:q(j,J,ae,xe,de,pe,we,Ae,Te);break;default:Q&1?x(j,J,ae,xe,de,pe,we,Ae,Te):Q&6?H(j,J,ae,xe,de,pe,we,Ae,Te):(Q&64||Q&128)&&ve.process(j,J,ae,xe,de,pe,we,Ae,Te,Re)}$e!=null&&de&&yg($e,j&&j.ref,pe,J||j,!J)},_=(j,J,ae,xe)=>{if(j==null)r(J.el=l(J.children),ae,xe);else{const de=J.el=j.el;J.children!==j.children&&u(de,J.children)}},w=(j,J,ae,xe)=>{j==null?r(J.el=c(J.children||""),ae,xe):J.el=j.el},A=(j,J,ae,xe)=>{[j.el,j.anchor]=v(j.children,J,ae,xe,j.el,j.anchor)},C=({el:j,anchor:J},ae,xe)=>{let de;for(;j&&j!==J;)de=h(j),r(j,ae,xe),j=de;r(J,ae,xe)},S=({el:j,anchor:J})=>{let ae;for(;j&&j!==J;)ae=h(j),s(j),j=ae;s(J)},x=(j,J,ae,xe,de,pe,we,Ae,Te)=>{J.type==="svg"?we="svg":J.type==="math"&&(we="mathml"),j==null?O(J,ae,xe,de,pe,we,Ae,Te):F(j,J,de,pe,we,Ae,Te)},O=(j,J,ae,xe,de,pe,we,Ae)=>{let Te,ve;const{props:$e,shapeFlag:Q,transition:Oe,dirs:Ve}=j;if(Te=j.el=a(j.type,pe,$e&&$e.is,$e),Q&8?d(Te,j.children):Q&16&&I(j.children,Te,null,xe,de,Ng(j,pe),we,Ae),Ve&&So(j,null,xe,"created"),N(Te,j,j.scopeId,we,xe),$e){for(const wt in $e)wt!=="value"&&!Wl(wt)&&o(Te,wt,null,$e[wt],pe,xe);"value"in $e&&o(Te,"value",null,$e.value,pe),(ve=$e.onVnodeBeforeMount)&&yr(ve,xe,j)}Ve&&So(j,null,xe,"beforeMount");const Qe=NT(de,Oe);Qe&&Oe.beforeEnter(Te),r(Te,J,ae),((ve=$e&&$e.onVnodeMounted)||Qe||Ve)&&ei(()=>{ve&&yr(ve,xe,j),Qe&&Oe.enter(Te),Ve&&So(j,null,xe,"mounted")},de)},N=(j,J,ae,xe,de)=>{if(ae&&g(j,ae),xe)for(let pe=0;pe<xe.length;pe++)g(j,xe[pe]);if(de){let pe=de.subTree;if(J===pe||S2(pe.type)&&(pe.ssContent===J||pe.ssFallback===J)){const we=de.vnode;N(j,we,we.scopeId,we.slotScopeIds,de.parent)}}},I=(j,J,ae,xe,de,pe,we,Ae,Te=0)=>{for(let ve=Te;ve<j.length;ve++){const $e=j[ve]=Ae?ks(j[ve]):br(j[ve]);y(null,$e,J,ae,xe,de,pe,we,Ae)}},F=(j,J,ae,xe,de,pe,we)=>{const Ae=J.el=j.el;let{patchFlag:Te,dynamicChildren:ve,dirs:$e}=J;Te|=j.patchFlag&16;const Q=j.props||_t,Oe=J.props||_t;let Ve;if(ae&&Ao(ae,!1),(Ve=Oe.onVnodeBeforeUpdate)&&yr(Ve,ae,J,j),$e&&So(J,j,ae,"beforeUpdate"),ae&&Ao(ae,!0),(Q.innerHTML&&Oe.innerHTML==null||Q.textContent&&Oe.textContent==null)&&d(Ae,""),ve?D(j.dynamicChildren,ve,Ae,ae,xe,Ng(J,de),pe):we||K(j,J,Ae,null,ae,xe,Ng(J,de),pe,!1),Te>0){if(Te&16)k(Ae,Q,Oe,ae,de);else if(Te&2&&Q.class!==Oe.class&&o(Ae,"class",null,Oe.class,de),Te&4&&o(Ae,"style",Q.style,Oe.style,de),Te&8){const Qe=J.dynamicProps;for(let wt=0;wt<Qe.length;wt++){const Tt=Qe[wt],Ot=Q[Tt],St=Oe[Tt];(St!==Ot||Tt==="value")&&o(Ae,Tt,Ot,St,de,ae)}}Te&1&&j.children!==J.children&&d(Ae,J.children)}else!we&&ve==null&&k(Ae,Q,Oe,ae,de);((Ve=Oe.onVnodeUpdated)||$e)&&ei(()=>{Ve&&yr(Ve,ae,J,j),$e&&So(J,j,ae,"updated")},xe)},D=(j,J,ae,xe,de,pe,we)=>{for(let Ae=0;Ae<J.length;Ae++){const Te=j[Ae],ve=J[Ae],$e=Te.el&&(Te.type===qe||!Po(Te,ve)||Te.shapeFlag&70)?f(Te.el):ae;y(Te,ve,$e,null,xe,de,pe,we,!0)}},k=(j,J,ae,xe,de)=>{if(J!==ae){if(J!==_t)for(const pe in J)!Wl(pe)&&!(pe in ae)&&o(j,pe,J[pe],null,de,xe);for(const pe in ae){if(Wl(pe))continue;const we=ae[pe],Ae=J[pe];we!==Ae&&pe!=="value"&&o(j,pe,Ae,we,de,xe)}"value"in ae&&o(j,"value",J.value,ae.value,de)}},q=(j,J,ae,xe,de,pe,we,Ae,Te)=>{const ve=J.el=j?j.el:l(""),$e=J.anchor=j?j.anchor:l("");let{patchFlag:Q,dynamicChildren:Oe,slotScopeIds:Ve}=J;Ve&&(Ae=Ae?Ae.concat(Ve):Ve),j==null?(r(ve,ae,xe),r($e,ae,xe),I(J.children||[],ae,$e,de,pe,we,Ae,Te)):Q>0&&Q&64&&Oe&&j.dynamicChildren?(D(j.dynamicChildren,Oe,ae,de,pe,we,Ae),(J.key!=null||de&&J===de.subTree)&&Ig(j,J,!0)):K(j,J,ae,$e,de,pe,we,Ae,Te)},H=(j,J,ae,xe,de,pe,we,Ae,Te)=>{J.slotScopeIds=Ae,j==null?J.shapeFlag&512?de.ctx.activate(J,ae,xe,we,Te):oe(J,ae,xe,de,pe,we,Te):ce(j,J,Te)},oe=(j,J,ae,xe,de,pe,we)=>{const Ae=j.component=WT(j,xe,de);if(yd(j)&&(Ae.ctx.renderer=Re),KT(Ae,!1,we),Ae.asyncDep){if(de&&de.registerDep(Ae,U,we),!j.el){const Te=Ae.subTree=ne(xn);w(null,Te,J,ae)}}else U(Ae,j,J,ae,de,pe,we)},ce=(j,J,ae)=>{const xe=J.component=j.component;if(UT(j,J,ae))if(xe.asyncDep&&!xe.asyncResolved){Y(xe,J,ae);return}else xe.next=J,xe.update();else J.el=j.el,xe.vnode=J},U=(j,J,ae,xe,de,pe,we)=>{const Ae=()=>{if(j.isMounted){let{next:Q,bu:Oe,u:Ve,parent:Qe,vnode:wt}=j;{const He=b2(j);if(He){Q&&(Q.el=wt.el,Y(j,Q,we)),He.asyncDep.then(()=>{j.isUnmounted||Ae()});return}}let Tt=Q,Ot;Ao(j,!1),Q?(Q.el=wt.el,Y(j,Q,we)):Q=wt,Oe&&Qu(Oe),(Ot=Q.props&&Q.props.onVnodeBeforeUpdate)&&yr(Ot,Qe,Q,wt),Ao(j,!0);const St=Rg(j),je=j.subTree;j.subTree=St,y(je,St,f(je.el),z(je),j,de,pe),Q.el=St.el,Tt===null&&$T(j,St.el),Ve&&ei(Ve,de),(Ot=Q.props&&Q.props.onVnodeUpdated)&&ei(()=>yr(Ot,Qe,Q,wt),de)}else{let Q;const{el:Oe,props:Ve}=J,{bm:Qe,m:wt,parent:Tt,root:Ot,type:St}=j,je=Na(J);if(Ao(j,!1),Qe&&Qu(Qe),!je&&(Q=Ve&&Ve.onVnodeBeforeMount)&&yr(Q,Tt,J),Ao(j,!0),Oe&&Ke){const He=()=>{j.subTree=Rg(j),Ke(Oe,j.subTree,j,de,null)};je&&St.__asyncHydrate?St.__asyncHydrate(Oe,j,He):He()}else{Ot.ce&&Ot.ce._injectChildStyle(St);const He=j.subTree=Rg(j);y(null,He,ae,xe,j,de,pe),J.el=He.el}if(wt&&ei(wt,de),!je&&(Q=Ve&&Ve.onVnodeMounted)){const He=J;ei(()=>yr(Q,Tt,He),de)}(J.shapeFlag&256||Tt&&Na(Tt.vnode)&&Tt.vnode.shapeFlag&256)&&j.a&&ei(j.a,de),j.isMounted=!0,J=ae=xe=null}};j.scope.on();const Te=j.effect=new o_(Ae);j.scope.off();const ve=j.update=Te.run.bind(Te),$e=j.job=Te.runIfDirty.bind(Te);$e.i=j,$e.id=j.uid,Te.scheduler=()=>gg($e),Ao(j,!0),ve()},Y=(j,J,ae)=>{J.component=j;const xe=j.vnode.props;j.vnode=J,j.next=null,ST(j,J.props,xe,ae),PT(j,J.children,ae),Gr(),L_(j),Wr()},K=(j,J,ae,xe,de,pe,we,Ae,Te=!1)=>{const ve=j&&j.children,$e=j?j.shapeFlag:0,Q=J.children,{patchFlag:Oe,shapeFlag:Ve}=J;if(Oe>0){if(Oe&128){B(ve,Q,ae,xe,de,pe,we,Ae,Te);return}else if(Oe&256){ee(ve,Q,ae,xe,de,pe,we,Ae,Te);return}}Ve&8?($e&16&&ye(ve,de,pe),Q!==ve&&d(ae,Q)):$e&16?Ve&16?B(ve,Q,ae,xe,de,pe,we,Ae,Te):ye(ve,de,pe,!0):($e&8&&d(ae,""),Ve&16&&I(Q,ae,xe,de,pe,we,Ae,Te))},ee=(j,J,ae,xe,de,pe,we,Ae,Te)=>{j=j||Hr,J=J||Hr;const ve=j.length,$e=J.length,Q=Math.min(ve,$e);let Oe;for(Oe=0;Oe<Q;Oe++){const Ve=J[Oe]=Te?ks(J[Oe]):br(J[Oe]);y(j[Oe],Ve,ae,null,de,pe,we,Ae,Te)}ve>$e?ye(j,de,pe,!0,!1,Q):I(J,ae,xe,de,pe,we,Ae,Te,Q)},B=(j,J,ae,xe,de,pe,we,Ae,Te)=>{let ve=0;const $e=J.length;let Q=j.length-1,Oe=$e-1;for(;ve<=Q&&ve<=Oe;){const Ve=j[ve],Qe=J[ve]=Te?ks(J[ve]):br(J[ve]);if(Po(Ve,Qe))y(Ve,Qe,ae,null,de,pe,we,Ae,Te);else break;ve++}for(;ve<=Q&&ve<=Oe;){const Ve=j[Q],Qe=J[Oe]=Te?ks(J[Oe]):br(J[Oe]);if(Po(Ve,Qe))y(Ve,Qe,ae,null,de,pe,we,Ae,Te);else break;Q--,Oe--}if(ve>Q){if(ve<=Oe){const Ve=Oe+1,Qe=Ve<$e?J[Ve].el:xe;for(;ve<=Oe;)y(null,J[ve]=Te?ks(J[ve]):br(J[ve]),ae,Qe,de,pe,we,Ae,Te),ve++}}else if(ve>Oe)for(;ve<=Q;)me(j[ve],de,pe,!0),ve++;else{const Ve=ve,Qe=ve,wt=new Map;for(ve=Qe;ve<=Oe;ve++){const ot=J[ve]=Te?ks(J[ve]):br(J[ve]);ot.key!=null&&wt.set(ot.key,ve)}let Tt,Ot=0;const St=Oe-Qe+1;let je=!1,He=0;const pt=new Array(St);for(ve=0;ve<St;ve++)pt[ve]=0;for(ve=Ve;ve<=Q;ve++){const ot=j[ve];if(Ot>=St){me(ot,de,pe,!0);continue}let Rt;if(ot.key!=null)Rt=wt.get(ot.key);else for(Tt=Qe;Tt<=Oe;Tt++)if(pt[Tt-Qe]===0&&Po(ot,J[Tt])){Rt=Tt;break}Rt===void 0?me(ot,de,pe,!0):(pt[Rt-Qe]=ve+1,Rt>=He?He=Rt:je=!0,y(ot,J[Rt],ae,null,de,pe,we,Ae,Te),Ot++)}const dt=je?IT(pt):Hr;for(Tt=dt.length-1,ve=St-1;ve>=0;ve--){const ot=Qe+ve,Rt=J[ot],an=ot+1<$e?J[ot+1].el:xe;pt[ve]===0?y(null,Rt,ae,an,de,pe,we,Ae,Te):je&&(Tt<0||ve!==dt[Tt]?Ee(Rt,ae,an,2):Tt--)}}},Ee=(j,J,ae,xe,de=null)=>{const{el:pe,type:we,transition:Ae,children:Te,shapeFlag:ve}=j;if(ve&6){Ee(j.component.subTree,J,ae,xe);return}if(ve&128){j.suspense.move(J,ae,xe);return}if(ve&64){we.move(j,J,ae,Re);return}if(we===qe){r(pe,J,ae);for(let Q=0;Q<Te.length;Q++)Ee(Te[Q],J,ae,xe);r(j.anchor,J,ae);return}if(we===cc){C(j,J,ae);return}if(xe!==2&&ve&1&&Ae)if(xe===0)Ae.beforeEnter(pe),r(pe,J,ae),ei(()=>Ae.enter(pe),de);else{const{leave:Q,delayLeave:Oe,afterLeave:Ve}=Ae,Qe=()=>r(pe,J,ae),wt=()=>{Q(pe,()=>{Qe(),Ve&&Ve()})};Oe?Oe(pe,Qe,wt):wt()}else r(pe,J,ae)},me=(j,J,ae,xe=!1,de=!1)=>{const{type:pe,props:we,ref:Ae,children:Te,dynamicChildren:ve,shapeFlag:$e,patchFlag:Q,dirs:Oe,cacheIndex:Ve}=j;if(Q===-2&&(de=!1),Ae!=null&&yg(Ae,null,ae,j,!0),Ve!=null&&(J.renderCache[Ve]=void 0),$e&256){J.ctx.deactivate(j);return}const Qe=$e&1&&Oe,wt=!Na(j);let Tt;if(wt&&(Tt=we&&we.onVnodeBeforeUnmount)&&yr(Tt,J,j),$e&6)Ce(j.component,ae,xe);else{if($e&128){j.suspense.unmount(ae,xe);return}Qe&&So(j,null,J,"beforeUnmount"),$e&64?j.type.remove(j,J,ae,Re,xe):ve&&!ve.hasOnce&&(pe!==qe||Q>0&&Q&64)?ye(ve,J,ae,!1,!0):(pe===qe&&Q&384||!de&&$e&16)&&ye(Te,J,ae),xe&&re(j)}(wt&&(Tt=we&&we.onVnodeUnmounted)||Qe)&&ei(()=>{Tt&&yr(Tt,J,j),Qe&&So(j,null,J,"unmounted")},ae)},re=j=>{const{type:J,el:ae,anchor:xe,transition:de}=j;if(J===qe){le(ae,xe);return}if(J===cc){S(j);return}const pe=()=>{s(ae),de&&!de.persisted&&de.afterLeave&&de.afterLeave()};if(j.shapeFlag&1&&de&&!de.persisted){const{leave:we,delayLeave:Ae}=de,Te=()=>we(ae,pe);Ae?Ae(j.el,pe,Te):Te()}else pe()},le=(j,J)=>{let ae;for(;j!==J;)ae=h(j),s(j),j=ae;s(J)},Ce=(j,J,ae)=>{const{bum:xe,scope:de,job:pe,subTree:we,um:Ae,m:Te,a:ve}=j;y2(Te),y2(ve),xe&&Qu(xe),de.stop(),pe&&(pe.flags|=8,me(we,j,J,ae)),Ae&&ei(Ae,J),ei(()=>{j.isUnmounted=!0},J),J&&J.pendingBranch&&!J.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===J.pendingId&&(J.deps--,J.deps===0&&J.resolve())},ye=(j,J,ae,xe=!1,de=!1,pe=0)=>{for(let we=pe;we<j.length;we++)me(j[we],J,ae,xe,de)},z=j=>{if(j.shapeFlag&6)return z(j.component.subTree);if(j.shapeFlag&128)return j.suspense.next();const J=h(j.anchor||j.el),ae=J&&J[F_];return ae?h(ae):J};let X=!1;const fe=(j,J,ae)=>{j==null?J._vnode&&me(J._vnode,null,null,!0):y(J._vnode||null,j,J,null,null,null,ae),J._vnode=j,X||(X=!0,L_(),k_(),X=!1)},Re={p:y,um:me,m:Ee,r:re,mt:oe,mc:I,pc:K,pbc:D,n:z,o:e};let Le,Ke;return t&&([Le,Ke]=t(Re)),{render:fe,hydrate:Le,createApp:wT(fe,Le)}}function Ng({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ao({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function NT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ig(e,t,n=!1){const r=e.children,s=t.children;if(De(r)&&De(s))for(let o=0;o<r.length;o++){const a=r[o];let l=s[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[o]=ks(s[o]),l.el=a.el),!n&&l.patchFlag!==-2&&Ig(a,l)),l.type===Da&&(l.el=a.el)}}function IT(e){const t=e.slice(),n=[0];let r,s,o,a,l;const c=e.length;for(r=0;r<c;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(o=0,a=n.length-1;o<a;)l=o+a>>1,e[n[l]]<u?o=l+1:a=l;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function b2(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:b2(t)}function y2(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const RT=Symbol.for("v-scx"),DT=()=>et(RT);function Ds(e,t){return Sd(e,null,t)}function LT(e,t){return Sd(e,null,{flush:"post"})}function ze(e,t,n){return Sd(e,t,n)}function Sd(e,t,n=_t){const{immediate:r,deep:s,flush:o,once:a}=n,l=qt({},n);let c;if(Pd)if(o==="sync"){const h=DT();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||r)l.once=!0;else{const h=()=>{};return h.stop=Ct,h.resume=Ct,h.pause=Ct,h}const u=An;l.call=(h,g,v)=>Yi(h,u,g,v);let d=!1;o==="post"?l.scheduler=h=>{ei(h,u&&u.suspense)}:o!=="sync"&&(d=!0,l.scheduler=(h,g)=>{g?h():gg(h)}),l.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const f=VP(e,t,l);return c&&c.push(f),f}function kT(e,t,n){const r=this.proxy,s=Xe(e)?e.includes(".")?_2(r,e):()=>r[e]:e.bind(r,r);let o;Fe(t)?o=t:(o=t.handler,n=t);const a=fc(this),l=Sd(s,o.bind(r),n);return a(),l}function _2(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const MT=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${zn(t)}Modifiers`]||e[`${Qn(t)}Modifiers`];function FT(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||_t;let s=n;const o=t.startsWith("update:"),a=o&&MT(r,t.slice(7));a&&(a.trim&&(s=n.map(d=>Xe(d)?d.trim():d)),a.number&&(s=n.map(Yp)));let l,c=r[l=Kl(t)]||r[l=Kl(zn(t))];!c&&o&&(c=r[l=Kl(Qn(t))]),c&&Yi(c,e,6,s);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Yi(u,e,6,s)}}function w2(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let a={},l=!1;if(!Fe(e)){const c=u=>{const d=w2(u,t,!0);d&&(l=!0,qt(a,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(at(e)&&r.set(e,null),null):(De(o)?o.forEach(c=>a[c]=null):qt(a,o),at(e)&&r.set(e,a),a)}function Ed(e,t){return!e||!Ts(t)?!1:(t=t.slice(2).replace(/Once$/,""),vt(e,t[0].toLowerCase()+t.slice(1))||vt(e,Qn(t))||vt(e,t))}function Ghe(){}function Rg(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:d,props:f,data:h,setupState:g,ctx:v,inheritAttrs:y}=e,_=gd(e);let w,A;try{if(n.shapeFlag&4){const S=s||r,x=S;w=br(u.call(x,S,d,f,g,h,v)),A=l}else{const S=t;w=br(S.length>1?S(f,{attrs:l,slots:a,emit:c}):S(f,null)),A=t.props?l:BT(l)}}catch(S){uc.length=0,hd(S,e,1),w=ne(xn)}let C=w;if(A&&y!==!1){const S=Object.keys(A),{shapeFlag:x}=C;S.length&&x&7&&(o&&S.some(Ki)&&(A=jT(A,o)),C=Zr(C,A,!1,!0))}return n.dirs&&(C=Zr(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&Eo(C,n.transition),w=C,gd(_),w}const BT=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ts(n))&&((t||(t={}))[n]=e[n]);return t},jT=(e,t)=>{const n={};for(const r in e)(!Ki(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function UT(e,t,n){const{props:r,children:s,component:o}=e,{props:a,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?C2(r,a,u):!!a;if(c&8){const d=t.dynamicProps;for(let f=0;f<d.length;f++){const h=d[f];if(a[h]!==r[h]&&!Ed(u,h))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===a?!1:r?a?C2(r,a,u):!0:!!a;return!1}function C2(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!Ed(n,o))return!0}return!1}function $T({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const S2=e=>e.__isSuspense;function VT(e,t){t&&t.pendingBranch?De(e)?t.effects.push(...e):t.effects.push(e):JP(e)}const qe=Symbol.for("v-fgt"),Da=Symbol.for("v-txt"),xn=Symbol.for("v-cmt"),cc=Symbol.for("v-stc"),uc=[];let ai=null;function R(e=!1){uc.push(ai=e?null:[])}function zT(){uc.pop(),ai=uc[uc.length-1]||null}let dc=1;function E2(e){dc+=e,e<0&&ai&&(ai.hasOnce=!0)}function x2(e){return e.dynamicChildren=dc>0?ai||Hr:null,zT(),dc>0&&ai&&ai.push(e),e}function V(e,t,n,r,s,o){return x2(G(e,t,n,r,s,o,!0))}function _e(e,t,n,r,s){return x2(ne(e,t,n,r,s,!0))}function Ls(e){return e?e.__v_isVNode===!0:!1}function Po(e,t){return e.type===t.type&&e.key===t.key}const A2=({key:e})=>e!=null?e:null,xd=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Xe(e)||Bt(e)||Fe(e)?{i:_n,r:e,k:t,f:!!n}:e:null);function G(e,t=null,n=null,r=0,s=null,o=e===qe?0:1,a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&A2(t),ref:t&&xd(t),scopeId:pd,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:_n};return l?(Dg(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=Xe(n)?8:16),dc>0&&!a&&ai&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&ai.push(c),c}const ne=qT;function qT(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Z_)&&(e=xn),Ls(e)){const l=Zr(e,t,!0);return n&&Dg(l,n),dc>0&&!o&&ai&&(l.shapeFlag&6?ai[ai.indexOf(e)]=l:ai.push(l)),l.patchFlag=-2,l}if(QT(e)&&(e=e.__vccOpts),t){t=P2(t);let{class:l,style:c}=t;l&&!Xe(l)&&(t.class=Z(l)),at(c)&&(ug(c)&&!De(c)&&(c=qt({},c)),t.style=Ze(c))}const a=Xe(e)?1:S2(e)?128:B_(e)?64:at(e)?4:Fe(e)?2:0;return G(e,t,n,r,s,a,o,!0)}function P2(e){return e?ug(e)||u2(e)?qt({},e):e:null}function Zr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:a,children:l,transition:c}=e,u=t?Ln(s||{},t):s,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&A2(u),ref:t&&t.ref?n&&o?De(o)?o.concat(xd(t)):[o,xd(t)]:xd(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zr(e.ssContent),ssFallback:e.ssFallback&&Zr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Eo(d,c.clone(d)),d}function Je(e=" ",t=0){return ne(Da,null,e,t)}function T2(e,t){const n=ne(cc,null,e);return n.staticCount=t,n}function se(e="",t=!1){return t?(R(),_e(xn,null,e)):ne(xn,null,e)}function br(e){return e==null||typeof e=="boolean"?ne(xn):De(e)?ne(qe,null,e.slice()):typeof e=="object"?ks(e):ne(Da,null,String(e))}function ks(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zr(e)}function Dg(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(De(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Dg(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!u2(t)?t._ctx=_n:s===3&&_n&&(_n.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Fe(t)?(t={default:t,_ctx:_n},n=32):(t=String(t),r&64?(n=16,t=[Je(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ln(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Z([t.class,r.class]));else if(s==="style")t.style=Ze([t.style,r.style]);else if(Ts(s)){const o=t[s],a=r[s];a&&o!==a&&!(De(o)&&o.includes(a))&&(t[s]=o?[].concat(o,a):a)}else s!==""&&(t[s]=r[s])}return t}function yr(e,t,n,r=null){Yi(e,t,7,[n,r])}const HT=a2();let GT=0;function WT(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||HT,o={uid:GT++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new fP(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:f2(r,s),emitsOptions:w2(r,s),emit:null,emitted:null,propsDefaults:_t,inheritAttrs:r.inheritAttrs,ctx:_t,data:_t,props:_t,attrs:_t,slots:_t,refs:_t,setupState:_t,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=FT.bind(null,o),e.ce&&e.ce(o),o}let An=null;const xt=()=>An||_n;let Ad,Lg;{const e=Qy(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(a=>a(o)):s[0](o)}};Ad=t("__VUE_INSTANCE_SETTERS__",n=>An=n),Lg=t("__VUE_SSR_SETTERS__",n=>Pd=n)}const fc=e=>{const t=An;return Ad(e),e.scope.on(),()=>{e.scope.off(),Ad(t)}},O2=()=>{An&&An.scope.off(),Ad(null)};function N2(e){return e.vnode.shapeFlag&4}let Pd=!1;function KT(e,t=!1,n=!1){t&&Lg(t);const{props:r,children:s}=e.vnode,o=N2(e);CT(e,r,o,t),AT(e,s,n);const a=o?JT(e,t):void 0;return t&&Lg(!1),a}function JT(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,hT);const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?L2(e):null,o=fc(e);Gr();const a=Pa(r,e,0,[e.props,s]);if(Wr(),o(),Jy(a)){if(Na(e)||K_(e),a.then(O2,O2),t)return a.then(l=>{I2(e,l,t)}).catch(l=>{hd(l,e,0)});e.asyncDep=a}else I2(e,a,t)}else D2(e,t)}function I2(e,t,n){Fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:at(t)&&(e.setupState=O_(t)),D2(e,n)}let R2;function D2(e,t,n){const r=e.type;if(!e.render){if(!t&&R2&&!r.render){const s=r.template||Ag(e).template;if(s){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,u=qt(qt({isCustomElement:o,delimiters:l},a),c);r.render=R2(s,u)}}e.render=r.render||Ct}{const s=fc(e);Gr();try{gT(e)}finally{Wr(),s()}}}const YT={get(e,t){return In(e,"get",""),e[t]}};function L2(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,YT),slots:e.slots,emit:e.emit,expose:t}}function Td(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(O_(ud(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ac)return ac[n](e)},has(t,n){return n in t||n in ac}})):e.proxy}const XT=/(?:^|[-_])(\w)/g,ZT=e=>e.replace(XT,t=>t.toUpperCase()).replace(/[-_]/g,"");function k2(e,t=!0){return Fe(e)?e.displayName||e.name:e.name||t&&e.__name}function M2(e,t,n=!1){let r=k2(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e&&e.parent){const s=o=>{for(const a in o)if(o[a]===t)return a};r=s(e.components||e.parent.type.components)||s(e.appContext.components)}return r?ZT(r):n?"App":"Anonymous"}function QT(e){return Fe(e)&&"__vccOpts"in e}const W=(e,t)=>UP(e,t,Pd);function ut(e,t,n){const r=arguments.length;return r===2?at(t)&&!De(t)?Ls(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ls(n)&&(n=[n]),ne(e,t,n))}const eO="3.5.6",tO=Ct;/**
|
|
17
|
-
* @vue/runtime-dom v3.5.6
|
|
18
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
|
-
* @license MIT
|
|
20
|
-
**/let kg;const F2=typeof window!="undefined"&&window.trustedTypes;if(F2)try{kg=F2.createPolicy("vue",{createHTML:e=>e})}catch(e){}const B2=kg?e=>kg.createHTML(e):e=>e,nO="http://www.w3.org/2000/svg",iO="http://www.w3.org/1998/Math/MathML",Qr=typeof document!="undefined"?document:null,j2=Qr&&Qr.createElement("template"),rO={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Qr.createElementNS(nO,e):t==="mathml"?Qr.createElementNS(iO,e):n?Qr.createElement(e,{is:n}):Qr.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Qr.createTextNode(e),createComment:e=>Qr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const a=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{j2.innerHTML=B2(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=j2.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ms="transition",hc="animation",La=Symbol("_vtc"),U2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$2=qt({},z_,U2),Fs=(e=>(e.displayName="Transition",e.props=$2,e))((e,{slots:t})=>ut(rT,z2(e),t)),To=(e,t=[])=>{De(e)?e.forEach(n=>n(...t)):e&&e(...t)},V2=e=>e?De(e)?e.some(t=>t.length>1):e.length>1:!1;function z2(e){const t={};for(const q in e)q in U2||(t[q]=e[q]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=sO(s),y=v&&v[0],_=v&&v[1],{onBeforeEnter:w,onEnter:A,onEnterCancelled:C,onLeave:S,onLeaveCancelled:x,onBeforeAppear:O=w,onAppear:N=A,onAppearCancelled:I=C}=t,F=(q,H,oe)=>{Bs(q,H?d:l),Bs(q,H?u:a),oe&&oe()},D=(q,H)=>{q._isLeaving=!1,Bs(q,f),Bs(q,g),Bs(q,h),H&&H()},k=q=>(H,oe)=>{const ce=q?N:A,U=()=>F(H,q,oe);To(ce,[H,U]),q2(()=>{Bs(H,q?c:o),es(H,q?d:l),V2(ce)||H2(H,r,y,U)})};return qt(t,{onBeforeEnter(q){To(w,[q]),es(q,o),es(q,a)},onBeforeAppear(q){To(O,[q]),es(q,c),es(q,u)},onEnter:k(!1),onAppear:k(!0),onLeave(q,H){q._isLeaving=!0;const oe=()=>D(q,H);es(q,f),es(q,h),J2(),q2(()=>{q._isLeaving&&(Bs(q,f),es(q,g),V2(S)||H2(q,r,_,oe))}),To(S,[q,oe])},onEnterCancelled(q){F(q,!1),To(C,[q])},onAppearCancelled(q){F(q,!0),To(I,[q])},onLeaveCancelled(q){D(q),To(x,[q])}})}function sO(e){if(e==null)return null;if(at(e))return[Mg(e.enter),Mg(e.leave)];{const t=Mg(e);return[t,t]}}function Mg(e){return Xp(e)}function es(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[La]||(e[La]=new Set)).add(t)}function Bs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[La];n&&(n.delete(t),n.size||(e[La]=void 0))}function q2(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let oO=0;function H2(e,t,n,r){const s=e._endId=++oO,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:l,propCount:c}=G2(e,t);if(!a)return r();const u=a+"end";let d=0;const f=()=>{e.removeEventListener(u,h),o()},h=g=>{g.target===e&&++d>=c&&f()};setTimeout(()=>{d<c&&f()},l+1),e.addEventListener(u,h)}function G2(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),s=r(`${Ms}Delay`),o=r(`${Ms}Duration`),a=W2(s,o),l=r(`${hc}Delay`),c=r(`${hc}Duration`),u=W2(l,c);let d=null,f=0,h=0;t===Ms?a>0&&(d=Ms,f=a,h=o.length):t===hc?u>0&&(d=hc,f=u,h=c.length):(f=Math.max(a,u),d=f>0?a>u?Ms:hc:null,h=d?d===Ms?o.length:c.length:0);const g=d===Ms&&/\b(transform|all)(,|$)/.test(r(`${Ms}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:g}}function W2(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>K2(n)+K2(e[r])))}function K2(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function J2(){return document.body.offsetHeight}function aO(e,t,n){const r=e[La];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Od=Symbol("_vod"),Y2=Symbol("_vsh"),wn={beforeMount(e,{value:t},{transition:n}){e[Od]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):pc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),pc(e,!0),r.enter(e)):r.leave(e,()=>{pc(e,!1)}):pc(e,t))},beforeUnmount(e,{value:t}){pc(e,t)}};function pc(e,t){e.style.display=t?e[Od]:"none",e[Y2]=!t}const X2=Symbol("");function lO(e){const t=xt();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Nd(o,s))},r=()=>{const s=e(t.proxy);t.ce?Nd(t.ce,s):Fg(t.subTree,s),n(s)};sc(()=>{LT(r)}),Mt(()=>{const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),xo(()=>s.disconnect())})}function Fg(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Fg(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Nd(e.el,t);else if(e.type===qe)e.children.forEach(n=>Fg(n,t));else if(e.type===cc){let{el:n,anchor:r}=e;for(;n&&(Nd(n,t),n!==r);)n=n.nextSibling}}function Nd(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t)n.setProperty(`--${s}`,t[s]),r+=`--${s}: ${t[s]};`;n[X2]=r}}const cO=/(^|;)\s*display\s*:/;function uO(e,t,n){const r=e.style,s=Xe(n);let o=!1;if(n&&!s){if(t)if(Xe(t))for(const a of t.split(";")){const l=a.slice(0,a.indexOf(":")).trim();n[l]==null&&Id(r,l,"")}else for(const a in t)n[a]==null&&Id(r,a,"");for(const a in n)a==="display"&&(o=!0),Id(r,a,n[a])}else if(s){if(t!==n){const a=r[X2];a&&(n+=";"+a),r.cssText=n,o=cO.test(n)}}else t&&e.removeAttribute("style");Od in e&&(e[Od]=o?r.display:"",e[Y2]&&(r.display="none"))}const Z2=/\s*!important$/;function Id(e,t,n){if(De(n))n.forEach(r=>Id(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=dO(e,t);Z2.test(n)?e.setProperty(Qn(r),n.replace(Z2,""),"important"):e[r]=n}}const Q2=["Webkit","Moz","ms"],Bg={};function dO(e,t){const n=Bg[t];if(n)return n;let r=zn(t);if(r!=="filter"&&r in e)return Bg[t]=r;r=Zu(r);for(let s=0;s<Q2.length;s++){const o=Q2[s]+r;if(o in e)return Bg[t]=o}return t}const ew="http://www.w3.org/1999/xlink";function tw(e,t,n,r,s,o=uP(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ew,t.slice(6,t.length)):e.setAttributeNS(ew,t,n):n==null||o&&!e_(n)?e.removeAttribute(t):e.setAttribute(t,o?"":gr(n)?String(n):n)}function fO(e,t,n,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?B2(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=e_(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch(a){}o&&e.removeAttribute(t)}function js(e,t,n,r){e.addEventListener(t,n,r)}function hO(e,t,n,r){e.removeEventListener(t,n,r)}const nw=Symbol("_vei");function pO(e,t,n,r,s=null){const o=e[nw]||(e[nw]={}),a=o[t];if(r&&a)a.value=r;else{const[l,c]=gO(t);if(r){const u=o[t]=bO(r,s);js(e,l,u,c)}else a&&(hO(e,l,a,c),o[t]=void 0)}}const iw=/(?:Once|Passive|Capture)$/;function gO(e){let t;if(iw.test(e)){t={};let r;for(;r=e.match(iw);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Qn(e.slice(2)),t]}let jg=0;const mO=Promise.resolve(),vO=()=>jg||(mO.then(()=>jg=0),jg=Date.now());function bO(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Yi(yO(r,n.value),t,5,[r])};return n.value=e,n.attached=vO(),n}function yO(e,t){if(De(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const rw=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_O=(e,t,n,r,s,o)=>{const a=s==="svg";t==="class"?aO(e,r,a):t==="style"?uO(e,n,r):Ts(t)?Ki(t)||pO(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wO(e,t,r,a))?(fO(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&tw(e,t,r,a,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),tw(e,t,r,a))};function wO(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&rw(t)&&Fe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return rw(t)&&Xe(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Xe(n)))}const sw={};/*! #__NO_SIDE_EFFECTS__ */function CO(e,t,n){const r=Pe(e,t);yo(r)&&qt(r,t);class s extends Ug{constructor(a){super(r,a,n)}}return s.def=r,s}const SO=typeof HTMLElement!="undefined"?HTMLElement:class{};class Ug extends SO{constructor(t,n={},r=$g){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==$g?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Ug){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,ft(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const s of r)this._setAttr(s.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:a}=r;let l;if(o&&!De(o))for(const c in o){const u=o[c];(u===Number||u&&u.type===Number)&&(c in this._props&&(this._props[c]=Xp(this._props[c])),(l||(l=Object.create(null)))[zn(c)]=!0)}this._numberProps=l,s&&this._resolveProps(r),this.shadowRoot&&this._applyStyles(a),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>t(this._def=r,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)vt(this,r)||Object.defineProperty(this,r,{get:()=>P(n[r])})}_resolveProps(t){const{props:n}=t,r=De(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s]);for(const s of r.map(zn))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(o){this._setProp(s,o,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):sw;const s=zn(t);n&&this._numberProps&&this._numberProps[s]&&(r=Xp(r)),this._setProp(s,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!1){n!==this._props[t]&&(n===sw?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(Qn(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Qn(t),n+""):n||this.removeAttribute(Qn(t))))}_update(){Oo(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=ne(this._def,qt(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const s=(o,a)=>{this.dispatchEvent(new CustomEvent(o,yo(a[0])?qt({detail:a},a[0]):{detail:a}))};r.emit=(o,...a)=>{s(o,a),Qn(o)!==o&&s(Qn(o),a)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let s=t.length-1;s>=0;s--){const o=document.createElement("style");r&&o.setAttribute("nonce",r),o.textContent=t[s],this.shadowRoot.prepend(o)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const s=t[r],o=s.getAttribute("name")||"default",a=this._slots[o],l=s.parentNode;if(a)for(const c of a){if(n&&c.nodeType===1){const u=n+"-s",d=document.createTreeWalker(c,1);c.setAttribute(u,"");let f;for(;f=d.nextNode();)f.setAttribute(u,"")}l.insertBefore(c,s)}else for(;s.firstChild;)l.insertBefore(s.firstChild,s);l.removeChild(s)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}const ow=new WeakMap,aw=new WeakMap,Rd=Symbol("_moveCb"),lw=Symbol("_enterCb"),cw=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:qt({},$2,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=xt(),r=V_();let s,o;return oc(()=>{if(!s.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!PO(s[0].el,n.vnode.el,a))return;s.forEach(EO),s.forEach(xO);const l=s.filter(AO);J2(),l.forEach(c=>{const u=c.el,d=u.style;es(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=u[Rd]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",f),u[Rd]=null,Bs(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=it(e),l=z2(a);let c=a.tag||qe;if(s=[],o)for(let u=0;u<o.length;u++){const d=o[u];d.el&&d.el instanceof Element&&(s.push(d),Eo(d,rc(d,l,r,n)),ow.set(d,d.el.getBoundingClientRect()))}o=t.default?bg(t.default()):[];for(let u=0;u<o.length;u++){const d=o[u];d.key!=null&&Eo(d,rc(d,l,r,n))}return ne(c,null,o)}}});function EO(e){const t=e.el;t[Rd]&&t[Rd](),t[lw]&&t[lw]()}function xO(e){aw.set(e,e.el.getBoundingClientRect())}function AO(e){const t=ow.get(e),n=aw.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",e}}function PO(e,t,n){const r=e.cloneNode(),s=e[La];s&&s.forEach(l=>{l.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=G2(r);return o.removeChild(r),a}const ka=e=>{const t=e.props["onUpdate:modelValue"]||!1;return De(t)?n=>Qu(t,n):t};function TO(e){e.target.composing=!0}function uw(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ts=Symbol("_assign"),OO={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[ts]=ka(s);const o=r||s.props&&s.props.type==="number";js(e,t?"change":"input",a=>{if(a.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Yp(l)),e[ts](l)}),n&&js(e,"change",()=>{e.value=e.value.trim()}),t||(js(e,"compositionstart",TO),js(e,"compositionend",uw),js(e,"change",uw))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},a){if(e[ts]=ka(a),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Yp(e.value):e.value,c=t==null?"":t;l!==c&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===c)||(e.value=c))}},Dd={deep:!0,created(e,t,n){e[ts]=ka(n),js(e,"change",()=>{const r=e._modelValue,s=hw(e),o=e.checked,a=e[ts];if(De(r)){const l=t_(r,s),c=l!==-1;if(o&&!c)a(r.concat(s));else if(!o&&c){const u=[...r];u.splice(l,1),a(u)}}else if(Yu(r)){const l=new Set(r);o?l.add(s):l.delete(s),a(l)}else a(pw(e,o))})},mounted:dw,beforeUpdate(e,t,n){e[ts]=ka(n),dw(e,t,n)}};function dw(e,{value:t,oldValue:n},r){e._modelValue=t;let s;De(t)?s=t_(t,r.props.value)>-1:Yu(t)?s=t.has(r.props.value):s=Ea(t,pw(e,!0)),e.checked!==s&&(e.checked=s)}const fw={created(e,{value:t},n){e.checked=Ea(t,n.props.value),e[ts]=ka(n),js(e,"change",()=>{e[ts](hw(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ts]=ka(r),t!==n&&(e.checked=Ea(t,r.props.value))}};function hw(e){return"_value"in e?e._value:e.value}function pw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const NO=["ctrl","shift","alt","meta"],IO={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>NO.some(n=>e[`${n}Key`]&&!t.includes(n))},mt=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let a=0;a<t.length;a++){const l=IO[t[a]];if(l&&l(s,t))return}return e(s,...o)})},RO={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Xi=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=Qn(s.key);if(t.some(a=>a===o||RO[a]===o))return e(s)})},DO=qt({patchProp:_O},rO);let gw;function mw(){return gw||(gw=TT(DO))}const Oo=(...e)=>{mw().render(...e)},$g=(...e)=>{const t=mw().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=kO(r);if(!s)return;const o=t._component;!Fe(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const a=n(s,!1,LO(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t};function LO(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function kO(e){return Xe(e)?document.querySelector(e):e}const MO='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',FO=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,vw=e=>Array.from(e.querySelectorAll(MO)).filter(t=>Vg(t)&&FO(t)),Vg=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},ns=(e,t,{checkForDefaultPrevented:n=!0}={})=>s=>{const o=e==null?void 0:e(s);if(n===!1||!o)return t==null?void 0:t(s)};var BO=Object.defineProperty,jO=Object.defineProperties,UO=Object.getOwnPropertyDescriptors,bw=Object.getOwnPropertySymbols,$O=Object.prototype.hasOwnProperty,VO=Object.prototype.propertyIsEnumerable,yw=(e,t,n)=>t in e?BO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zO=(e,t)=>{for(var n in t||(t={}))$O.call(t,n)&&yw(e,n,t[n]);if(bw)for(var n of bw(t))VO.call(t,n)&&yw(e,n,t[n]);return e},qO=(e,t)=>jO(e,UO(t));function HO(e,t){var n;const r=mn();return Ds(()=>{r.value=e()},qO(zO({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Ql(r)}var _w;const kt=typeof window!="undefined",GO=e=>typeof e!="undefined",WO=e=>typeof e=="function",KO=e=>typeof e=="string",Ld=()=>{},zg=kt&&((_w=window==null?void 0:window.navigator)==null?void 0:_w.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function gc(e){return typeof e=="function"?e():P(e)}function JO(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}function YO(e,t={}){let n,r,s=Ld;const o=l=>{clearTimeout(l),s(),s=Ld};return l=>{const c=gc(e),u=gc(t.maxWait);return n&&o(n),c<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(l())):new Promise((d,f)=>{s=t.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,d(l())},u)),n=setTimeout(()=>{r&&o(r),r=null,d(l())},c)})}}function XO(e){return e}function mc(e){return r_()?(s_(e),!0):!1}function ZO(e,t=200,n={}){return JO(YO(t,n),e)}function QO(e,t=200,n={}){const r=ie(e.value),s=ZO(()=>{r.value=e.value},t,n);return ze(e,()=>s()),r}function eN(e,t=!0){xt()?Mt(e):t?e():ft(e)}function qg(e,t,n={}){const{immediate:r=!0}=n,s=ie(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function l(){s.value=!1,a()}function c(...u){a(),s.value=!0,o=setTimeout(()=>{s.value=!1,o=null,e(...u)},gc(t))}return r&&(s.value=!0,kt&&c()),mc(l),{isPending:Ql(s),start:c,stop:l}}function is(e){var t;const n=gc(e);return(t=n==null?void 0:n.$el)!=null?t:n}const kd=kt?window:void 0;function Ei(...e){let t,n,r,s;if(KO(e[0])||Array.isArray(e[0])?([n,r,s]=e,t=kd):[t,n,r,s]=e,!t)return Ld;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(d=>d()),o.length=0},l=(d,f,h,g)=>(d.addEventListener(f,h,g),()=>d.removeEventListener(f,h,g)),c=ze(()=>[is(t),gc(s)],([d,f])=>{a(),d&&o.push(...n.flatMap(h=>r.map(g=>l(d,h,g,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),a()};return mc(u),u}let ww=!1;function tN(e,t,n={}){const{window:r=kd,ignore:s=[],capture:o=!0,detectIframe:a=!1}=n;if(!r)return;zg&&!ww&&(ww=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",Ld)));let l=!0;const c=h=>s.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(v=>v===h.target||h.composedPath().includes(v));{const v=is(g);return v&&(h.target===v||h.composedPath().includes(v))}}),d=[Ei(r,"click",h=>{const g=is(e);if(!(!g||g===h.target||h.composedPath().includes(g))){if(h.detail===0&&(l=!c(h)),!l){l=!0;return}t(h)}},{passive:!0,capture:o}),Ei(r,"pointerdown",h=>{const g=is(e);g&&(l=!h.composedPath().includes(g)&&!c(h))},{passive:!0}),a&&Ei(r,"blur",h=>{var g;const v=is(e);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(v!=null&&v.contains(r.document.activeElement))&&t(h)})].filter(Boolean);return()=>d.forEach(h=>h())}function Cw(e,t=!1){const n=ie(),r=()=>n.value=!!e();return r(),eN(r,t),n}function nN(e){return JSON.parse(JSON.stringify(e))}const Sw=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Ew="__vueuse_ssr_handlers__";Sw[Ew]=Sw[Ew]||{};var xw=Object.getOwnPropertySymbols,iN=Object.prototype.hasOwnProperty,rN=Object.prototype.propertyIsEnumerable,sN=(e,t)=>{var n={};for(var r in e)iN.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&xw)for(var r of xw(e))t.indexOf(r)<0&&rN.call(e,r)&&(n[r]=e[r]);return n};function li(e,t,n={}){const r=n,{window:s=kd}=r,o=sN(r,["window"]);let a;const l=Cw(()=>s&&"ResizeObserver"in s),c=()=>{a&&(a.disconnect(),a=void 0)},u=ze(()=>is(e),f=>{c(),l.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return mc(d),{isSupported:l,stop:d}}var Aw=Object.getOwnPropertySymbols,oN=Object.prototype.hasOwnProperty,aN=Object.prototype.propertyIsEnumerable,lN=(e,t)=>{var n={};for(var r in e)oN.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Aw)for(var r of Aw(e))t.indexOf(r)<0&&aN.call(e,r)&&(n[r]=e[r]);return n};function cN(e,t,n={}){const r=n,{window:s=kd}=r,o=lN(r,["window"]);let a;const l=Cw(()=>s&&"MutationObserver"in s),c=()=>{a&&(a.disconnect(),a=void 0)},u=ze(()=>is(e),f=>{c(),l.value&&s&&f&&(a=new MutationObserver(t),a.observe(f,o))},{immediate:!0}),d=()=>{c(),u()};return mc(d),{isSupported:l,stop:d}}var Pw;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Pw||(Pw={}));var uN=Object.defineProperty,Tw=Object.getOwnPropertySymbols,dN=Object.prototype.hasOwnProperty,fN=Object.prototype.propertyIsEnumerable,Ow=(e,t,n)=>t in e?uN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hN=(e,t)=>{for(var n in t||(t={}))dN.call(t,n)&&Ow(e,n,t[n]);if(Tw)for(var n of Tw(t))fN.call(t,n)&&Ow(e,n,t[n]);return e};hN({linear:XO},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function pN(e,t,n,r={}){var s,o,a;const{clone:l=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:f}=r,h=xt(),g=n||(h==null?void 0:h.emit)||((s=h==null?void 0:h.$emit)==null?void 0:s.bind(h))||((a=(o=h==null?void 0:h.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(h==null?void 0:h.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const y=w=>l?WO(l)?l(w):nN(w):w,_=()=>GO(e[t])?y(e[t]):f;if(c){const w=_(),A=ie(w);return ze(()=>e[t],C=>A.value=y(C)),ze(A,C=>{(C!==e[t]||d)&&g(v,C)},{deep:d}),A}else return W({get(){return _()},set(w){g(v,w)}})}const gN=()=>kt&&/firefox/i.test(window.navigator.userAgent);var mN=typeof global=="object"&&global&&global.Object===Object&&global;const Nw=mN;var vN=typeof self=="object"&&self&&self.Object===Object&&self,bN=Nw||vN||Function("return this")();const Zi=bN;var yN=Zi.Symbol;const xi=yN;var Iw=Object.prototype,_N=Iw.hasOwnProperty,wN=Iw.toString,vc=xi?xi.toStringTag:void 0;function CN(e){var t=_N.call(e,vc),n=e[vc];try{e[vc]=void 0;var r=!0}catch(o){}var s=wN.call(e);return r&&(t?e[vc]=n:delete e[vc]),s}var SN=Object.prototype,EN=SN.toString;function xN(e){return EN.call(e)}var AN="[object Null]",PN="[object Undefined]",Rw=xi?xi.toStringTag:void 0;function No(e){return e==null?e===void 0?PN:AN:Rw&&Rw in Object(e)?CN(e):xN(e)}function _r(e){return e!=null&&typeof e=="object"}var TN="[object Symbol]";function Md(e){return typeof e=="symbol"||_r(e)&&No(e)==TN}function Dw(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}var ON=Array.isArray;const Wn=ON;var NN=1/0,Lw=xi?xi.prototype:void 0,kw=Lw?Lw.toString:void 0;function Mw(e){if(typeof e=="string")return e;if(Wn(e))return Dw(e,Mw)+"";if(Md(e))return kw?kw.call(e):"";var t=e+"";return t=="0"&&1/e==-NN?"-0":t}var IN=/\s/;function RN(e){for(var t=e.length;t--&&IN.test(e.charAt(t)););return t}var DN=/^\s+/;function LN(e){return e&&e.slice(0,RN(e)+1).replace(DN,"")}function ti(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fw=0/0,kN=/^[-+]0x[0-9a-f]+$/i,MN=/^0b[01]+$/i,FN=/^0o[0-7]+$/i,BN=parseInt;function Hg(e){if(typeof e=="number")return e;if(Md(e))return Fw;if(ti(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ti(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=LN(e);var n=MN.test(e);return n||FN.test(e)?BN(e.slice(2),n?2:8):kN.test(e)?Fw:+e}var Bw=1/0,jN=17976931348623157e292;function UN(e){if(!e)return e===0?e:0;if(e=Hg(e),e===Bw||e===-Bw){var t=e<0?-1:1;return t*jN}return e===e?e:0}function $N(e){var t=UN(e),n=t%1;return t===t?n?t-n:t:0}function Gg(e){return e}var VN="[object AsyncFunction]",zN="[object Function]",qN="[object GeneratorFunction]",HN="[object Proxy]";function Fd(e){if(!ti(e))return!1;var t=No(e);return t==zN||t==qN||t==VN||t==HN}var GN=Zi["__core-js_shared__"];const Wg=GN;var jw=function(){var e=/[^.]+$/.exec(Wg&&Wg.keys&&Wg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function WN(e){return!!jw&&jw in e}var KN=Function.prototype,JN=KN.toString;function Io(e){if(e!=null){try{return JN.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var YN=/[\\^$.*+?()[\]{}|]/g,XN=/^\[object .+?Constructor\]$/,ZN=Function.prototype,QN=Object.prototype,eI=ZN.toString,tI=QN.hasOwnProperty,nI=RegExp("^"+eI.call(tI).replace(YN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function iI(e){if(!ti(e)||WN(e))return!1;var t=Fd(e)?nI:XN;return t.test(Io(e))}function rI(e,t){return e==null?void 0:e[t]}function Ro(e,t){var n=rI(e,t);return iI(n)?n:void 0}var sI=Ro(Zi,"WeakMap");const Kg=sI;var Uw=Object.create,oI=function(){function e(){}return function(t){if(!ti(t))return{};if(Uw)return Uw(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const aI=oI;function lI(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function $w(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var cI=800,uI=16,dI=Date.now;function fI(e){var t=0,n=0;return function(){var r=dI(),s=uI-(r-n);if(n=r,s>0){if(++t>=cI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function hI(e){return function(){return e}}var pI=function(){try{var e=Ro(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Bd=pI;var gI=Bd?function(e,t){return Bd(e,"toString",{configurable:!0,enumerable:!1,value:hI(t),writable:!0})}:Gg,mI=fI(gI);const Vw=mI;function vI(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function bI(e,t,n,r){for(var s=e.length,o=n+(r?1:-1);r?o--:++o<s;)if(t(e[o],o,e))return o;return-1}var yI=9007199254740991,_I=/^(?:0|[1-9]\d*)$/;function jd(e,t){var n=typeof e;return t=t==null?yI:t,!!t&&(n=="number"||n!="symbol"&&_I.test(e))&&e>-1&&e%1==0&&e<t}function Jg(e,t,n){t=="__proto__"&&Bd?Bd(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function bc(e,t){return e===t||e!==e&&t!==t}var wI=Object.prototype,CI=wI.hasOwnProperty;function Yg(e,t,n){var r=e[t];(!(CI.call(e,t)&&bc(r,n))||n===void 0&&!(t in e))&&Jg(e,t,n)}function yc(e,t,n,r){var s=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var l=t[o],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),s?Jg(n,l,c):Yg(n,l,c)}return n}var zw=Math.max;function qw(e,t,n){return t=zw(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,o=zw(r.length-t,0),a=Array(o);++s<o;)a[s]=r[t+s];s=-1;for(var l=Array(t+1);++s<t;)l[s]=r[s];return l[t]=n(a),lI(e,this,l)}}function SI(e,t){return Vw(qw(e,t,Gg),e+"")}var EI=9007199254740991;function Xg(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=EI}function Ma(e){return e!=null&&Xg(e.length)&&!Fd(e)}function xI(e,t,n){if(!ti(n))return!1;var r=typeof t;return(r=="number"?Ma(n)&&jd(t,n.length):r=="string"&&t in n)?bc(n[t],e):!1}function AI(e){return SI(function(t,n){var r=-1,s=n.length,o=s>1?n[s-1]:void 0,a=s>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,a&&xI(n[0],n[1],a)&&(o=s<3?void 0:o,s=1),t=Object(t);++r<s;){var l=n[r];l&&e(t,l,r,o)}return t})}var PI=Object.prototype;function Zg(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||PI;return e===n}function TI(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var OI="[object Arguments]";function Hw(e){return _r(e)&&No(e)==OI}var Gw=Object.prototype,NI=Gw.hasOwnProperty,II=Gw.propertyIsEnumerable,RI=Hw(function(){return arguments}())?Hw:function(e){return _r(e)&&NI.call(e,"callee")&&!II.call(e,"callee")};const _c=RI;function DI(){return!1}var Ww=typeof yt=="object"&&yt&&!yt.nodeType&&yt,Kw=Ww&&typeof module=="object"&&module&&!module.nodeType&&module,LI=Kw&&Kw.exports===Ww,Jw=LI?Zi.Buffer:void 0,kI=Jw?Jw.isBuffer:void 0,MI=kI||DI;const wc=MI;var FI="[object Arguments]",BI="[object Array]",jI="[object Boolean]",UI="[object Date]",$I="[object Error]",VI="[object Function]",zI="[object Map]",qI="[object Number]",HI="[object Object]",GI="[object RegExp]",WI="[object Set]",KI="[object String]",JI="[object WeakMap]",YI="[object ArrayBuffer]",XI="[object DataView]",ZI="[object Float32Array]",QI="[object Float64Array]",eR="[object Int8Array]",tR="[object Int16Array]",nR="[object Int32Array]",iR="[object Uint8Array]",rR="[object Uint8ClampedArray]",sR="[object Uint16Array]",oR="[object Uint32Array]",Jt={};Jt[ZI]=Jt[QI]=Jt[eR]=Jt[tR]=Jt[nR]=Jt[iR]=Jt[rR]=Jt[sR]=Jt[oR]=!0,Jt[FI]=Jt[BI]=Jt[YI]=Jt[jI]=Jt[XI]=Jt[UI]=Jt[$I]=Jt[VI]=Jt[zI]=Jt[qI]=Jt[HI]=Jt[GI]=Jt[WI]=Jt[KI]=Jt[JI]=!1;function aR(e){return _r(e)&&Xg(e.length)&&!!Jt[No(e)]}function Qg(e){return function(t){return e(t)}}var Yw=typeof yt=="object"&&yt&&!yt.nodeType&&yt,Cc=Yw&&typeof module=="object"&&module&&!module.nodeType&&module,lR=Cc&&Cc.exports===Yw,em=lR&&Nw.process,cR=function(){try{var e=Cc&&Cc.require&&Cc.require("util").types;return e||em&&em.binding&&em.binding("util")}catch(t){}}();const Fa=cR;var Xw=Fa&&Fa.isTypedArray,uR=Xw?Qg(Xw):aR;const tm=uR;var dR=Object.prototype,fR=dR.hasOwnProperty;function Zw(e,t){var n=Wn(e),r=!n&&_c(e),s=!n&&!r&&wc(e),o=!n&&!r&&!s&&tm(e),a=n||r||s||o,l=a?TI(e.length,String):[],c=l.length;for(var u in e)(t||fR.call(e,u))&&!(a&&(u=="length"||s&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||jd(u,c)))&&l.push(u);return l}function Qw(e,t){return function(n){return e(t(n))}}var hR=Qw(Object.keys,Object);const pR=hR;var gR=Object.prototype,mR=gR.hasOwnProperty;function vR(e){if(!Zg(e))return pR(e);var t=[];for(var n in Object(e))mR.call(e,n)&&n!="constructor"&&t.push(n);return t}function Sc(e){return Ma(e)?Zw(e):vR(e)}function bR(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var yR=Object.prototype,_R=yR.hasOwnProperty;function wR(e){if(!ti(e))return bR(e);var t=Zg(e),n=[];for(var r in e)r=="constructor"&&(t||!_R.call(e,r))||n.push(r);return n}function Ec(e){return Ma(e)?Zw(e,!0):wR(e)}var CR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SR=/^\w*$/;function nm(e,t){if(Wn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Md(e)?!0:SR.test(e)||!CR.test(e)||t!=null&&e in Object(t)}var ER=Ro(Object,"create");const xc=ER;function xR(){this.__data__=xc?xc(null):{},this.size=0}function AR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var PR="__lodash_hash_undefined__",TR=Object.prototype,OR=TR.hasOwnProperty;function NR(e){var t=this.__data__;if(xc){var n=t[e];return n===PR?void 0:n}return OR.call(t,e)?t[e]:void 0}var IR=Object.prototype,RR=IR.hasOwnProperty;function DR(e){var t=this.__data__;return xc?t[e]!==void 0:RR.call(t,e)}var LR="__lodash_hash_undefined__";function kR(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xc&&t===void 0?LR:t,this}function Do(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])}}Do.prototype.clear=xR,Do.prototype.delete=AR,Do.prototype.get=NR,Do.prototype.has=DR,Do.prototype.set=kR;function MR(){this.__data__=[],this.size=0}function Ud(e,t){for(var n=e.length;n--;)if(bc(e[n][0],t))return n;return-1}var FR=Array.prototype,BR=FR.splice;function jR(e){var t=this.__data__,n=Ud(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():BR.call(t,n,1),--this.size,!0}function UR(e){var t=this.__data__,n=Ud(t,e);return n<0?void 0:t[n][1]}function $R(e){return Ud(this.__data__,e)>-1}function VR(e,t){var n=this.__data__,r=Ud(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function rs(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])}}rs.prototype.clear=MR,rs.prototype.delete=jR,rs.prototype.get=UR,rs.prototype.has=$R,rs.prototype.set=VR;var zR=Ro(Zi,"Map");const Ac=zR;function qR(){this.size=0,this.__data__={hash:new Do,map:new(Ac||rs),string:new Do}}function HR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function $d(e,t){var n=e.__data__;return HR(t)?n[typeof t=="string"?"string":"hash"]:n.map}function GR(e){var t=$d(this,e).delete(e);return this.size-=t?1:0,t}function WR(e){return $d(this,e).get(e)}function KR(e){return $d(this,e).has(e)}function JR(e,t){var n=$d(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ss(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])}}ss.prototype.clear=qR,ss.prototype.delete=GR,ss.prototype.get=WR,ss.prototype.has=KR,ss.prototype.set=JR;var YR="Expected a function";function im(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(YR);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],o=n.cache;if(o.has(s))return o.get(s);var a=e.apply(this,r);return n.cache=o.set(s,a)||o,a};return n.cache=new(im.Cache||ss),n}im.Cache=ss;var XR=500;function ZR(e){var t=im(e,function(r){return n.size===XR&&n.clear(),r}),n=t.cache;return t}var QR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eD=/\\(\\)?/g,tD=ZR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(QR,function(n,r,s,o){t.push(s?o.replace(eD,"$1"):r||n)}),t});const nD=tD;function iD(e){return e==null?"":Mw(e)}function Vd(e,t){return Wn(e)?e:nm(e,t)?[e]:nD(iD(e))}var rD=1/0;function Pc(e){if(typeof e=="string"||Md(e))return e;var t=e+"";return t=="0"&&1/e==-rD?"-0":t}function rm(e,t){t=Vd(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Pc(t[n++])];return n&&n==r?e:void 0}function Qi(e,t,n){var r=e==null?void 0:rm(e,t);return r===void 0?n:r}function sm(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var e3=xi?xi.isConcatSpreadable:void 0;function sD(e){return Wn(e)||_c(e)||!!(e3&&e&&e[e3])}function om(e,t,n,r,s){var o=-1,a=e.length;for(n||(n=sD),s||(s=[]);++o<a;){var l=e[o];t>0&&n(l)?t>1?om(l,t-1,n,r,s):sm(s,l):r||(s[s.length]=l)}return s}function oD(e){var t=e==null?0:e.length;return t?om(e,1):[]}function aD(e){return Vw(qw(e,void 0,oD),e+"")}var lD=Qw(Object.getPrototypeOf,Object);const am=lD;var cD="[object Object]",uD=Function.prototype,dD=Object.prototype,t3=uD.toString,fD=dD.hasOwnProperty,hD=t3.call(Object);function pD(e){if(!_r(e)||No(e)!=cD)return!1;var t=am(e);if(t===null)return!0;var n=fD.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&t3.call(n)==hD}function er(){if(!arguments.length)return[];var e=arguments[0];return Wn(e)?e:[e]}function gD(){this.__data__=new rs,this.size=0}function mD(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function vD(e){return this.__data__.get(e)}function bD(e){return this.__data__.has(e)}var yD=200;function _D(e,t){var n=this.__data__;if(n instanceof rs){var r=n.__data__;if(!Ac||r.length<yD-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ss(r)}return n.set(e,t),this.size=n.size,this}function tr(e){var t=this.__data__=new rs(e);this.size=t.size}tr.prototype.clear=gD,tr.prototype.delete=mD,tr.prototype.get=vD,tr.prototype.has=bD,tr.prototype.set=_D;function wD(e,t){return e&&yc(t,Sc(t),e)}function CD(e,t){return e&&yc(t,Ec(t),e)}var n3=typeof yt=="object"&&yt&&!yt.nodeType&&yt,i3=n3&&typeof module=="object"&&module&&!module.nodeType&&module,SD=i3&&i3.exports===n3,r3=SD?Zi.Buffer:void 0,s3=r3?r3.allocUnsafe:void 0;function o3(e,t){if(t)return e.slice();var n=e.length,r=s3?s3(n):new e.constructor(n);return e.copy(r),r}function ED(e,t){for(var n=-1,r=e==null?0:e.length,s=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[s++]=a)}return o}function a3(){return[]}var xD=Object.prototype,AD=xD.propertyIsEnumerable,l3=Object.getOwnPropertySymbols,PD=l3?function(e){return e==null?[]:(e=Object(e),ED(l3(e),function(t){return AD.call(e,t)}))}:a3;const lm=PD;function TD(e,t){return yc(e,lm(e),t)}var OD=Object.getOwnPropertySymbols,ND=OD?function(e){for(var t=[];e;)sm(t,lm(e)),e=am(e);return t}:a3;const c3=ND;function ID(e,t){return yc(e,c3(e),t)}function u3(e,t,n){var r=t(e);return Wn(e)?r:sm(r,n(e))}function cm(e){return u3(e,Sc,lm)}function RD(e){return u3(e,Ec,c3)}var DD=Ro(Zi,"DataView");const um=DD;var LD=Ro(Zi,"Promise");const dm=LD;var kD=Ro(Zi,"Set");const fm=kD;var d3="[object Map]",MD="[object Object]",f3="[object Promise]",h3="[object Set]",p3="[object WeakMap]",g3="[object DataView]",FD=Io(um),BD=Io(Ac),jD=Io(dm),UD=Io(fm),$D=Io(Kg),Lo=No;(um&&Lo(new um(new ArrayBuffer(1)))!=g3||Ac&&Lo(new Ac)!=d3||dm&&Lo(dm.resolve())!=f3||fm&&Lo(new fm)!=h3||Kg&&Lo(new Kg)!=p3)&&(Lo=function(e){var t=No(e),n=t==MD?e.constructor:void 0,r=n?Io(n):"";if(r)switch(r){case FD:return g3;case BD:return d3;case jD:return f3;case UD:return h3;case $D:return p3}return t});const Tc=Lo;var VD=Object.prototype,zD=VD.hasOwnProperty;function qD(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&zD.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var HD=Zi.Uint8Array;const zd=HD;function hm(e){var t=new e.constructor(e.byteLength);return new zd(t).set(new zd(e)),t}function GD(e,t){var n=t?hm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var WD=/\w*$/;function KD(e){var t=new e.constructor(e.source,WD.exec(e));return t.lastIndex=e.lastIndex,t}var m3=xi?xi.prototype:void 0,v3=m3?m3.valueOf:void 0;function JD(e){return v3?Object(v3.call(e)):{}}function b3(e,t){var n=t?hm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var YD="[object Boolean]",XD="[object Date]",ZD="[object Map]",QD="[object Number]",eL="[object RegExp]",tL="[object Set]",nL="[object String]",iL="[object Symbol]",rL="[object ArrayBuffer]",sL="[object DataView]",oL="[object Float32Array]",aL="[object Float64Array]",lL="[object Int8Array]",cL="[object Int16Array]",uL="[object Int32Array]",dL="[object Uint8Array]",fL="[object Uint8ClampedArray]",hL="[object Uint16Array]",pL="[object Uint32Array]";function gL(e,t,n){var r=e.constructor;switch(t){case rL:return hm(e);case YD:case XD:return new r(+e);case sL:return GD(e,n);case oL:case aL:case lL:case cL:case uL:case dL:case fL:case hL:case pL:return b3(e,n);case ZD:return new r;case QD:case nL:return new r(e);case eL:return KD(e);case tL:return new r;case iL:return JD(e)}}function y3(e){return typeof e.constructor=="function"&&!Zg(e)?aI(am(e)):{}}var mL="[object Map]";function vL(e){return _r(e)&&Tc(e)==mL}var _3=Fa&&Fa.isMap,bL=_3?Qg(_3):vL;const yL=bL;var _L="[object Set]";function wL(e){return _r(e)&&Tc(e)==_L}var w3=Fa&&Fa.isSet,CL=w3?Qg(w3):wL;const SL=CL;var EL=1,xL=2,AL=4,C3="[object Arguments]",PL="[object Array]",TL="[object Boolean]",OL="[object Date]",NL="[object Error]",S3="[object Function]",IL="[object GeneratorFunction]",RL="[object Map]",DL="[object Number]",E3="[object Object]",LL="[object RegExp]",kL="[object Set]",ML="[object String]",FL="[object Symbol]",BL="[object WeakMap]",jL="[object ArrayBuffer]",UL="[object DataView]",$L="[object Float32Array]",VL="[object Float64Array]",zL="[object Int8Array]",qL="[object Int16Array]",HL="[object Int32Array]",GL="[object Uint8Array]",WL="[object Uint8ClampedArray]",KL="[object Uint16Array]",JL="[object Uint32Array]",Wt={};Wt[C3]=Wt[PL]=Wt[jL]=Wt[UL]=Wt[TL]=Wt[OL]=Wt[$L]=Wt[VL]=Wt[zL]=Wt[qL]=Wt[HL]=Wt[RL]=Wt[DL]=Wt[E3]=Wt[LL]=Wt[kL]=Wt[ML]=Wt[FL]=Wt[GL]=Wt[WL]=Wt[KL]=Wt[JL]=!0,Wt[NL]=Wt[S3]=Wt[BL]=!1;function Oc(e,t,n,r,s,o){var a,l=t&EL,c=t&xL,u=t&AL;if(n&&(a=s?n(e,r,s,o):n(e)),a!==void 0)return a;if(!ti(e))return e;var d=Wn(e);if(d){if(a=qD(e),!l)return $w(e,a)}else{var f=Tc(e),h=f==S3||f==IL;if(wc(e))return o3(e,l);if(f==E3||f==C3||h&&!s){if(a=c||h?{}:y3(e),!l)return c?ID(e,CD(a,e)):TD(e,wD(a,e))}else{if(!Wt[f])return s?e:{};a=gL(e,f,l)}}o||(o=new tr);var g=o.get(e);if(g)return g;o.set(e,a),SL(e)?e.forEach(function(_){a.add(Oc(_,t,n,_,e,o))}):yL(e)&&e.forEach(function(_,w){a.set(w,Oc(_,t,n,w,e,o))});var v=u?c?RD:cm:c?Ec:Sc,y=d?void 0:v(e);return vI(y||e,function(_,w){y&&(w=_,_=e[w]),Yg(a,w,Oc(_,t,n,w,e,o))}),a}var YL=4;function x3(e){return Oc(e,YL)}var XL=1,ZL=4;function Us(e){return Oc(e,XL|ZL)}var QL="__lodash_hash_undefined__";function ek(e){return this.__data__.set(e,QL),this}function tk(e){return this.__data__.has(e)}function qd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ss;++t<n;)this.add(e[t])}qd.prototype.add=qd.prototype.push=ek,qd.prototype.has=tk;function nk(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 ik(e,t){return e.has(t)}var rk=1,sk=2;function A3(e,t,n,r,s,o){var a=n&rk,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,g=n&sk?new qd:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var v=e[f],y=t[f];if(r)var _=a?r(y,v,f,t,e,o):r(v,y,f,e,t,o);if(_!==void 0){if(_)continue;h=!1;break}if(g){if(!nk(t,function(w,A){if(!ik(g,A)&&(v===w||s(v,w,n,r,o)))return g.push(A)})){h=!1;break}}else if(!(v===y||s(v,y,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function ok(e){var t=-1,n=Array(e.size);return e.forEach(function(r,s){n[++t]=[s,r]}),n}function ak(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var lk=1,ck=2,uk="[object Boolean]",dk="[object Date]",fk="[object Error]",hk="[object Map]",pk="[object Number]",gk="[object RegExp]",mk="[object Set]",vk="[object String]",bk="[object Symbol]",yk="[object ArrayBuffer]",_k="[object DataView]",P3=xi?xi.prototype:void 0,pm=P3?P3.valueOf:void 0;function wk(e,t,n,r,s,o,a){switch(n){case _k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case yk:return!(e.byteLength!=t.byteLength||!o(new zd(e),new zd(t)));case uk:case dk:case pk:return bc(+e,+t);case fk:return e.name==t.name&&e.message==t.message;case gk:case vk:return e==t+"";case hk:var l=ok;case mk:var c=r&lk;if(l||(l=ak),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=ck,a.set(e,t);var d=A3(l(e),l(t),r,s,o,a);return a.delete(e),d;case bk:if(pm)return pm.call(e)==pm.call(t)}return!1}var Ck=1,Sk=Object.prototype,Ek=Sk.hasOwnProperty;function xk(e,t,n,r,s,o){var a=n&Ck,l=cm(e),c=l.length,u=cm(t),d=u.length;if(c!=d&&!a)return!1;for(var f=c;f--;){var h=l[f];if(!(a?h in t:Ek.call(t,h)))return!1}var g=o.get(e),v=o.get(t);if(g&&v)return g==t&&v==e;var y=!0;o.set(e,t),o.set(t,e);for(var _=a;++f<c;){h=l[f];var w=e[h],A=t[h];if(r)var C=a?r(A,w,h,t,e,o):r(w,A,h,e,t,o);if(!(C===void 0?w===A||s(w,A,n,r,o):C)){y=!1;break}_||(_=h=="constructor")}if(y&&!_){var S=e.constructor,x=t.constructor;S!=x&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof x=="function"&&x instanceof x)&&(y=!1)}return o.delete(e),o.delete(t),y}var Ak=1,T3="[object Arguments]",O3="[object Array]",Hd="[object Object]",Pk=Object.prototype,N3=Pk.hasOwnProperty;function Tk(e,t,n,r,s,o){var a=Wn(e),l=Wn(t),c=a?O3:Tc(e),u=l?O3:Tc(t);c=c==T3?Hd:c,u=u==T3?Hd:u;var d=c==Hd,f=u==Hd,h=c==u;if(h&&wc(e)){if(!wc(t))return!1;a=!0,d=!1}if(h&&!d)return o||(o=new tr),a||tm(e)?A3(e,t,n,r,s,o):wk(e,t,c,n,r,s,o);if(!(n&Ak)){var g=d&&N3.call(e,"__wrapped__"),v=f&&N3.call(t,"__wrapped__");if(g||v){var y=g?e.value():e,_=v?t.value():t;return o||(o=new tr),s(y,_,n,r,o)}}return h?(o||(o=new tr),xk(e,t,n,r,s,o)):!1}function Gd(e,t,n,r,s){return e===t?!0:e==null||t==null||!_r(e)&&!_r(t)?e!==e&&t!==t:Tk(e,t,n,r,Gd,s)}var Ok=1,Nk=2;function Ik(e,t,n,r){var s=n.length,o=s,a=!r;if(e==null)return!o;for(e=Object(e);s--;){var l=n[s];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++s<o;){l=n[s];var c=l[0],u=e[c],d=l[1];if(a&&l[2]){if(u===void 0&&!(c in e))return!1}else{var f=new tr;if(r)var h=r(u,d,c,e,t,f);if(!(h===void 0?Gd(d,u,Ok|Nk,r,f):h))return!1}}return!0}function I3(e){return e===e&&!ti(e)}function Rk(e){for(var t=Sc(e),n=t.length;n--;){var r=t[n],s=e[r];t[n]=[r,s,I3(s)]}return t}function R3(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Dk(e){var t=Rk(e);return t.length==1&&t[0][2]?R3(t[0][0],t[0][1]):function(n){return n===e||Ik(n,e,t)}}function Lk(e,t){return e!=null&&t in Object(e)}function kk(e,t,n){t=Vd(t,e);for(var r=-1,s=t.length,o=!1;++r<s;){var a=Pc(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=s?o:(s=e==null?0:e.length,!!s&&Xg(s)&&jd(a,s)&&(Wn(e)||_c(e)))}function D3(e,t){return e!=null&&kk(e,t,Lk)}var Mk=1,Fk=2;function Bk(e,t){return nm(e)&&I3(t)?R3(Pc(e),t):function(n){var r=Qi(n,e);return r===void 0&&r===t?D3(n,e):Gd(t,r,Mk|Fk)}}function jk(e){return function(t){return t==null?void 0:t[e]}}function Uk(e){return function(t){return rm(t,e)}}function $k(e){return nm(e)?jk(Pc(e)):Uk(e)}function L3(e){return typeof e=="function"?e:e==null?Gg:typeof e=="object"?Wn(e)?Bk(e[0],e[1]):Dk(e):$k(e)}function Vk(e){return function(t,n,r){for(var s=-1,o=Object(t),a=r(t),l=a.length;l--;){var c=a[e?l:++s];if(n(o[c],c,o)===!1)break}return t}}var zk=Vk();const k3=zk;function qk(e,t){return e&&k3(e,t,Sc)}function Hk(e,t){return function(n,r){if(n==null)return n;if(!Ma(n))return e(n,r);for(var s=n.length,o=t?s:-1,a=Object(n);(t?o--:++o<s)&&r(a[o],o,a)!==!1;);return n}}var Gk=Hk(qk);const Wk=Gk;var Kk=function(){return Zi.Date.now()};const gm=Kk;var Jk="Expected a function",Yk=Math.max,Xk=Math.min;function ko(e,t,n){var r,s,o,a,l,c,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(Jk);t=Hg(t)||0,ti(n)&&(d=!!n.leading,f="maxWait"in n,o=f?Yk(Hg(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function g(O){var N=r,I=s;return r=s=void 0,u=O,a=e.apply(I,N),a}function v(O){return u=O,l=setTimeout(w,t),d?g(O):a}function y(O){var N=O-c,I=O-u,F=t-N;return f?Xk(F,o-I):F}function _(O){var N=O-c,I=O-u;return c===void 0||N>=t||N<0||f&&I>=o}function w(){var O=gm();if(_(O))return A(O);l=setTimeout(w,y(O))}function A(O){return l=void 0,h&&r?g(O):(r=s=void 0,a)}function C(){l!==void 0&&clearTimeout(l),u=0,r=c=s=l=void 0}function S(){return l===void 0?a:A(gm())}function x(){var O=gm(),N=_(O);if(r=arguments,s=this,c=O,N){if(l===void 0)return v(c);if(f)return clearTimeout(l),l=setTimeout(w,t),g(c)}return l===void 0&&(l=setTimeout(w,t)),a}return x.cancel=C,x.flush=S,x}function mm(e,t,n){(n!==void 0&&!bc(e[t],n)||n===void 0&&!(t in e))&&Jg(e,t,n)}function Zk(e){return _r(e)&&Ma(e)}function vm(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Qk(e){return yc(e,Ec(e))}function eM(e,t,n,r,s,o,a){var l=vm(e,n),c=vm(t,n),u=a.get(c);if(u){mm(e,n,u);return}var d=o?o(l,c,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=Wn(c),g=!h&&wc(c),v=!h&&!g&&tm(c);d=c,h||g||v?Wn(l)?d=l:Zk(l)?d=$w(l):g?(f=!1,d=o3(c,!0)):v?(f=!1,d=b3(c,!0)):d=[]:pD(c)||_c(c)?(d=l,_c(l)?d=Qk(l):(!ti(l)||Fd(l))&&(d=y3(c))):f=!1}f&&(a.set(c,d),s(d,c,r,o,a),a.delete(c)),mm(e,n,d)}function M3(e,t,n,r,s){e!==t&&k3(t,function(o,a){if(s||(s=new tr),ti(o))eM(e,t,a,n,M3,r,s);else{var l=r?r(vm(e,a),o,a+"",e,t,s):void 0;l===void 0&&(l=o),mm(e,a,l)}},Ec)}var tM=Math.max,nM=Math.min;function iM(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var s=r-1;return n!==void 0&&(s=$N(n),s=n<0?tM(r+s,0):nM(s,r-1)),bI(e,L3(t),s,!0)}function rM(e,t){var n=-1,r=Ma(e)?Array(e.length):[];return Wk(e,function(s,o,a){r[++n]=t(s,o,a)}),r}function sM(e,t){var n=Wn(e)?Dw:rM;return n(e,L3(t))}function oM(e,t){return om(sM(e,t),1)}function Wd(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var s=e[t];r[s[0]]=s[1]}return r}function Mo(e,t){return Gd(e,t)}function Fo(e){return e==null}function F3(e){return e===void 0}var aM=AI(function(e,t,n){M3(e,t,n)});const B3=aM;function j3(e,t,n,r){if(!ti(e))return e;t=Vd(t,e);for(var s=-1,o=t.length,a=o-1,l=e;l!=null&&++s<o;){var c=Pc(t[s]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(s!=a){var d=l[c];u=r?r(d,c,l):void 0,u===void 0&&(u=ti(d)?d:jd(t[s+1])?[]:{})}Yg(l,c,u),l=l[c]}return e}function lM(e,t,n){for(var r=-1,s=t.length,o={};++r<s;){var a=t[r],l=rm(e,a);n(l,a)&&j3(o,Vd(a,e),l)}return o}function cM(e,t){return lM(e,t,function(n,r){return D3(e,r)})}var uM=aD(function(e,t){return e==null?{}:cM(e,t)});const U3=uM;function dM(e,t,n){return e==null?e:j3(e,t,n)}const ci=e=>e===void 0,pn=e=>typeof e=="boolean",Vt=e=>typeof e=="number",wr=e=>typeof Element=="undefined"?!1:e instanceof Element,Nc=e=>Fo(e),fM=e=>Xe(e)?!Number.isNaN(Number(e)):!1,hM=e=>kt?window.requestAnimationFrame(e):setTimeout(e,16),pM=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),$3=e=>Object.keys(e),gM=e=>Object.entries(e),Kd=(e,t,n)=>({get value(){return Qi(e,t,n)},set value(r){dM(e,t,r)}});class mM extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Bo(e,t){throw new mM(`[${e}] ${t}`)}function Zhe(e,t){}const V3=(e="")=>e.split(" ").filter(t=>!!t.trim()),jo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Uo=(e,t)=>{!e||!t.trim()||e.classList.add(...V3(t))},Cr=(e,t)=>{!e||!t.trim()||e.classList.remove(...V3(t))},Ba=(e,t)=>{var n;if(!kt||!e||!t)return"";let r=zn(t);r==="float"&&(r="cssFloat");try{const s=e.style[r];if(s)return s;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return o?o[r]:""}catch(s){return e.style[r]}};function nr(e,t="px"){if(!e)return"";if(Vt(e)||fM(e))return`${e}${t}`;if(Xe(e))return e}let Jd;const vM=e=>{var t;if(!kt)return 0;if(Jd!==void 0)return Jd;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",n.appendChild(s);const o=s.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Jd=r-o,Jd};function bM(e,t){if(!kt)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 s=t.offsetTop+n.reduce((c,u)=>c+u.offsetTop,0),o=s+t.offsetHeight,a=e.scrollTop,l=a+e.clientHeight;s<a?e.scrollTop=s:o>l&&(e.scrollTop=o-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var yM=Pe({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),z3=yM,_M=Pe({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),bm=_M,wM=Pe({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),CM=wM,SM=Pe({name:"Check",__name:"check",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),q3=SM,EM=Pe({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"}),G("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"})]))}}),ym=EM,xM=Pe({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),H3=xM,AM=Pe({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"}),G("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"})]))}}),Yd=AM,PM=Pe({name:"Close",__name:"close",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),ja=PM,TM=Pe({name:"Delete",__name:"delete",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),OM=TM,NM=Pe({name:"Document",__name:"document",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),IM=NM,RM=Pe({name:"Hide",__name:"hide",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"}),G("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"})]))}}),DM=RM,LM=Pe({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),_m=LM,kM=Pe({name:"Loading",__name:"loading",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),Ua=kM,MM=Pe({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),G3=MM,FM=Pe({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),W3=FM,BM=Pe({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),jM=BM,UM=Pe({name:"View",__name:"view",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),$M=UM,VM=Pe({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),wm=VM,zM=Pe({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(R(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[G("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"})]))}}),qM=zM;const K3="__epPropKey",Be=e=>e,HM=e=>at(e)&&!!e[K3],Xd=(e,t)=>{if(!at(e)||HM(e))return e;const{values:n,required:r,default:s,type:o,validator:a}=e,c={type:o,required:!!r,validator:n||a?u=>{let d=!1,f=[];if(n&&(f=Array.from(n),vt(e,"default")&&f.push(s),d||(d=f.includes(u))),a&&(d||(d=a(u))),!d&&f.length>0){const h=[...new Set(f)].map(g=>JSON.stringify(g)).join(", ");tO(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[K3]:!0};return vt(e,"default")&&(c.default=s),c},ht=e=>Wd(Object.entries(e).map(([t,n])=>[t,Xd(n,t)])),os=Be([String,Object,Function]),GM={Close:ja},J3={Close:ja,SuccessFilled:W3,InfoFilled:_m,WarningFilled:wm,CircleCloseFilled:H3},Zd={success:W3,warning:wm,error:H3,info:_m},Y3={validating:Ua,success:ym,error:Yd},vn=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t!=null?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},WM=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),KM=(e,t)=>(e.install=n=>{n.directive(t,e)},e),as=e=>(e.install=Ct,e),JM=(...e)=>t=>{e.forEach(n=>{Fe(n)?n(t):n.value=t})},$s={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"},Cn="update:modelValue",Cm="change",Ic=["","default","small","large"],YM=e=>["",...Ic].includes(e);var Qd=(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))(Qd||{});const XM=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Rc=e=>e,ZM=["class","style"],QM=/^on[A-Z]/,eF=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=W(()=>((n==null?void 0:n.value)||[]).concat(ZM)),s=xt();return W(s?()=>{var o;return Wd(Object.entries((o=s.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(t&&QM.test(a))))}:()=>({}))},$a=({from:e,replacement:t,scope:n,version:r,ref:s,type:o="API"},a)=>{ze(()=>P(a),l=>{},{immediate:!0})},X3=(e,t,n,r)=>{let s={offsetX:0,offsetY:0};const o=u=>{const d=u.clientX,f=u.clientY,{offsetX:h,offsetY:g}=s,v=e.value.getBoundingClientRect(),y=v.left,_=v.top,w=v.width,A=v.height,C=document.documentElement.clientWidth,S=document.documentElement.clientHeight,x=-y+h,O=-_+g,N=C-y-w+h,I=S-_-A+g,F=k=>{let q=h+k.clientX-d,H=g+k.clientY-f;r!=null&&r.value||(q=Math.min(Math.max(q,x),N),H=Math.min(Math.max(H,O),I)),s={offsetX:q,offsetY:H},e.value&&(e.value.style.transform=`translate(${nr(q)}, ${nr(H)})`)},D=()=>{document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",D)};document.addEventListener("mousemove",F),document.addEventListener("mouseup",D)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)},c=()=>{s={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return Mt(()=>{Ds(()=>{n.value?a():l()})}),hn(()=>{l()}),{resetPosition:c}};var tF={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},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"},mention:{loading:"Loading"},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:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",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"},tour:{next:"Next",previous:"Previous",finish:"Finish"},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"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const nF=e=>(t,n)=>iF(t,n,P(e)),iF=(e,t,n)=>Qi(n,e,e).replace(/\{(\w+)\}/g,(r,s)=>{var o;return`${(o=t==null?void 0:t[s])!=null?o:`{${s}}`}`}),rF=e=>{const t=W(()=>P(e).name),n=Bt(e)?e:ie(e);return{lang:t,locale:n,t:nF(e)}},Z3=Symbol("localeContextKey"),Va=e=>{const t=e||et(Z3,ie());return rF(W(()=>t.value||tF))},Dc="el",sF="is-",$o=(e,t,n,r,s)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),s&&(o+=`--${s}`),o},Q3=Symbol("namespaceContextKey"),Sm=e=>{const t=e||(xt()?et(Q3,ie(Dc)):ie(Dc));return W(()=>P(t)||Dc)},nt=(e,t)=>{const n=Sm(t);return{namespace:n,b:(y="")=>$o(n.value,e,y,"",""),e:y=>y?$o(n.value,e,"",y,""):"",m:y=>y?$o(n.value,e,"","",y):"",be:(y,_)=>y&&_?$o(n.value,e,y,_,""):"",em:(y,_)=>y&&_?$o(n.value,e,"",y,_):"",bm:(y,_)=>y&&_?$o(n.value,e,y,"",_):"",bem:(y,_,w)=>y&&_&&w?$o(n.value,e,y,_,w):"",is:(y,..._)=>{const w=_.length>=1?_[0]:!0;return y&&w?`${sF}${y}`:""},cssVar:y=>{const _={};for(const w in y)y[w]&&(_[`--${n.value}-${w}`]=y[w]);return _},cssVarName:y=>`--${n.value}-${y}`,cssVarBlock:y=>{const _={};for(const w in y)y[w]&&(_[`--${n.value}-${e}-${w}`]=y[w]);return _},cssVarBlockName:y=>`--${n.value}-${e}-${y}`}},e6=(e,t={})=>{Bt(e)||Bo("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||nt("popup"),r=W(()=>n.bm("parent","hidden"));if(!kt||jo(document.body,r.value))return;let s=0,o=!1,a="0";const l=()=>{setTimeout(()=>{typeof document!="undefined"&&(Cr(document==null?void 0:document.body,r.value),o&&document&&(document.body.style.width=a))},200)};ze(e,c=>{if(!c){l();return}o=!jo(document.body,r.value),o&&(a=document.body.style.width),s=vM(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,d=Ba(document.body,"overflowY");s>0&&(u||d==="scroll")&&o&&(document.body.style.width=`calc(100% - ${s}px)`),Uo(document.body,r.value)}),s_(()=>l())},oF=Xd({type:Be(Boolean),default:null}),aF=Xd({type:Be(Function)}),t6=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],s={[e]:oF,[n]:aF};return{useModelToggle:({indicator:a,toggleReason:l,shouldHideWhenRouteChanges:c,shouldProceed:u,onShow:d,onHide:f})=>{const h=xt(),{emit:g}=h,v=h.props,y=W(()=>Fe(v[n])),_=W(()=>v[e]===null),w=N=>{a.value!==!0&&(a.value=!0,l&&(l.value=N),Fe(d)&&d(N))},A=N=>{a.value!==!1&&(a.value=!1,l&&(l.value=N),Fe(f)&&f(N))},C=N=>{if(v.disabled===!0||Fe(u)&&!u())return;const I=y.value&&kt;I&&g(t,!0),(_.value||!I)&&w(N)},S=N=>{if(v.disabled===!0||!kt)return;const I=y.value&&kt;I&&g(t,!1),(_.value||!I)&&A(N)},x=N=>{pn(N)&&(v.disabled&&N?y.value&&g(t,!1):a.value!==N&&(N?w():A()))},O=()=>{a.value?S():C()};return ze(()=>v[e],x),c&&h.appContext.config.globalProperties.$route!==void 0&&ze(()=>be({},h.proxy.$route),()=>{c.value&&a.value&&S()}),Mt(()=>{x(v[e])}),{hide:S,show:C,toggle:O,hasUpdateHandler:y}},useModelToggleProps:s,useModelToggleEmits:r}};t6("modelValue");const n6=e=>{const t=xt();return W(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var ni="top",Ai="bottom",Pi="right",ii="left",Em="auto",Lc=[ni,Ai,Pi,ii],za="start",kc="end",lF="clippingParents",i6="viewport",Mc="popper",cF="reference",r6=Lc.reduce(function(e,t){return e.concat([t+"-"+za,t+"-"+kc])},[]),ef=[].concat(Lc,[Em]).reduce(function(e,t){return e.concat([t,t+"-"+za,t+"-"+kc])},[]),uF="beforeRead",dF="read",fF="afterRead",hF="beforeMain",pF="main",gF="afterMain",mF="beforeWrite",vF="write",bF="afterWrite",yF=[uF,dF,fF,hF,pF,gF,mF,vF,bF];function Sr(e){return e?(e.nodeName||"").toLowerCase():null}function ir(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qa(e){var t=ir(e).Element;return e instanceof t||e instanceof Element}function Ti(e){var t=ir(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xm(e){if(typeof ShadowRoot=="undefined")return!1;var t=ir(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _F(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!Ti(o)||!Sr(o)||(Object.assign(o.style,r),Object.keys(s).forEach(function(a){var l=s[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function wF(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 s=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!Ti(s)||!Sr(s)||(Object.assign(s.style,l),Object.keys(o).forEach(function(c){s.removeAttribute(c)}))})}}var s6={name:"applyStyles",enabled:!0,phase:"write",fn:_F,effect:wF,requires:["computeStyles"]};function Er(e){return e.split("-")[0]}var Vo=Math.max,tf=Math.min,Ha=Math.round;function Ga(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,s=1;if(Ti(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Ha(n.width)/a||1),o>0&&(s=Ha(n.height)/o||1)}return{width:n.width/r,height:n.height/s,top:n.top/s,right:n.right/r,bottom:n.bottom/s,left:n.left/r,x:n.left/r,y:n.top/s}}function Am(e){var t=Ga(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 o6(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ls(e){return ir(e).getComputedStyle(e)}function CF(e){return["table","td","th"].indexOf(Sr(e))>=0}function Vs(e){return((qa(e)?e.ownerDocument:e.document)||window.document).documentElement}function nf(e){return Sr(e)==="html"?e:e.assignedSlot||e.parentNode||(xm(e)?e.host:null)||Vs(e)}function a6(e){return!Ti(e)||ls(e).position==="fixed"?null:e.offsetParent}function SF(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Ti(e)){var r=ls(e);if(r.position==="fixed")return null}var s=nf(e);for(xm(s)&&(s=s.host);Ti(s)&&["html","body"].indexOf(Sr(s))<0;){var o=ls(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function Fc(e){for(var t=ir(e),n=a6(e);n&&CF(n)&&ls(n).position==="static";)n=a6(n);return n&&(Sr(n)==="html"||Sr(n)==="body"&&ls(n).position==="static")?t:n||SF(e)||t}function Pm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bc(e,t,n){return Vo(e,tf(t,n))}function EF(e,t,n){var r=Bc(e,t,n);return r>n?n:r}function l6(){return{top:0,right:0,bottom:0,left:0}}function c6(e){return Object.assign({},l6(),e)}function u6(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var xF=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,c6(typeof e!="number"?e:u6(e,Lc))};function AF(e){var t,n=e.state,r=e.name,s=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Er(n.placement),c=Pm(l),u=[ii,Pi].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!a)){var f=xF(s.padding,n),h=Am(o),g=c==="y"?ni:ii,v=c==="y"?Ai:Pi,y=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],_=a[c]-n.rects.reference[c],w=Fc(o),A=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,C=y/2-_/2,S=f[g],x=A-h[d]-f[v],O=A/2-h[d]/2+C,N=Bc(S,O,x),I=c;n.modifiersData[r]=(t={},t[I]=N,t.centerOffset=N-O,t)}}function PF(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||!o6(t.elements.popper,s)||(t.elements.arrow=s))}var TF={name:"arrow",enabled:!0,phase:"main",fn:AF,effect:PF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wa(e){return e.split("-")[1]}var OF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function NF(e){var t=e.x,n=e.y,r=window,s=r.devicePixelRatio||1;return{x:Ha(t*s)/s||0,y:Ha(n*s)/s||0}}function d6(e){var t,n=e.popper,r=e.popperRect,s=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,g=h===void 0?0:h,v=a.y,y=v===void 0?0:v,_=typeof d=="function"?d({x:g,y}):{x:g,y};g=_.x,y=_.y;var w=a.hasOwnProperty("x"),A=a.hasOwnProperty("y"),C=ii,S=ni,x=window;if(u){var O=Fc(n),N="clientHeight",I="clientWidth";if(O===ir(n)&&(O=Vs(n),ls(O).position!=="static"&&l==="absolute"&&(N="scrollHeight",I="scrollWidth")),O=O,s===ni||(s===ii||s===Pi)&&o===kc){S=Ai;var F=f&&O===x&&x.visualViewport?x.visualViewport.height:O[N];y-=F-r.height,y*=c?1:-1}if(s===ii||(s===ni||s===Ai)&&o===kc){C=Pi;var D=f&&O===x&&x.visualViewport?x.visualViewport.width:O[I];g-=D-r.width,g*=c?1:-1}}var k=Object.assign({position:l},u&&OF),q=d===!0?NF({x:g,y}):{x:g,y};if(g=q.x,y=q.y,c){var H;return Object.assign({},k,(H={},H[S]=A?"0":"",H[C]=w?"0":"",H.transform=(x.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",H))}return Object.assign({},k,(t={},t[S]=A?y+"px":"",t[C]=w?g+"px":"",t.transform="",t))}function IF(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Er(t.placement),variation:Wa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,d6(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,d6(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 f6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:IF,data:{}},rf={passive:!0};function RF(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,o=s===void 0?!0:s,a=r.resize,l=a===void 0?!0:a,c=ir(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,rf)}),l&&c.addEventListener("resize",n.update,rf),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,rf)}),l&&c.removeEventListener("resize",n.update,rf)}}var h6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:RF,data:{}},DF={left:"right",right:"left",bottom:"top",top:"bottom"};function sf(e){return e.replace(/left|right|bottom|top/g,function(t){return DF[t]})}var LF={start:"end",end:"start"};function p6(e){return e.replace(/start|end/g,function(t){return LF[t]})}function Tm(e){var t=ir(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Om(e){return Ga(Vs(e)).left+Tm(e).scrollLeft}function kF(e){var t=ir(e),n=Vs(e),r=t.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,l=0;return r&&(s=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:s,height:o,x:a+Om(e),y:l}}function MF(e){var t,n=Vs(e),r=Tm(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=Vo(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Vo(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-r.scrollLeft+Om(e),c=-r.scrollTop;return ls(s||n).direction==="rtl"&&(l+=Vo(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}function Nm(e){var t=ls(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function g6(e){return["html","body","#document"].indexOf(Sr(e))>=0?e.ownerDocument.body:Ti(e)&&Nm(e)?e:g6(nf(e))}function jc(e,t){var n;t===void 0&&(t=[]);var r=g6(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=ir(r),a=s?[o].concat(o.visualViewport||[],Nm(r)?r:[]):r,l=t.concat(a);return s?l:l.concat(jc(nf(a)))}function Im(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function FF(e){var t=Ga(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 m6(e,t){return t===i6?Im(kF(e)):qa(t)?FF(t):Im(MF(Vs(e)))}function BF(e){var t=jc(nf(e)),n=["absolute","fixed"].indexOf(ls(e).position)>=0,r=n&&Ti(e)?Fc(e):e;return qa(r)?t.filter(function(s){return qa(s)&&o6(s,r)&&Sr(s)!=="body"}):[]}function jF(e,t,n){var r=t==="clippingParents"?BF(e):[].concat(t),s=[].concat(r,[n]),o=s[0],a=s.reduce(function(l,c){var u=m6(e,c);return l.top=Vo(u.top,l.top),l.right=tf(u.right,l.right),l.bottom=tf(u.bottom,l.bottom),l.left=Vo(u.left,l.left),l},m6(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function v6(e){var t=e.reference,n=e.element,r=e.placement,s=r?Er(r):null,o=r?Wa(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(s){case ni:c={x:a,y:t.y-n.height};break;case Ai:c={x:a,y:t.y+t.height};break;case Pi:c={x:t.x+t.width,y:l};break;case ii:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=s?Pm(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case za:c[u]=c[u]-(t[d]/2-n[d]/2);break;case kc:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Uc(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,o=n.boundary,a=o===void 0?lF:o,l=n.rootBoundary,c=l===void 0?i6:l,u=n.elementContext,d=u===void 0?Mc:u,f=n.altBoundary,h=f===void 0?!1:f,g=n.padding,v=g===void 0?0:g,y=c6(typeof v!="number"?v:u6(v,Lc)),_=d===Mc?cF:Mc,w=e.rects.popper,A=e.elements[h?_:d],C=jF(qa(A)?A:A.contextElement||Vs(e.elements.popper),a,c),S=Ga(e.elements.reference),x=v6({reference:S,element:w,strategy:"absolute",placement:s}),O=Im(Object.assign({},w,x)),N=d===Mc?O:S,I={top:C.top-N.top+y.top,bottom:N.bottom-C.bottom+y.bottom,left:C.left-N.left+y.left,right:N.right-C.right+y.right},F=e.modifiersData.offset;if(d===Mc&&F){var D=F[s];Object.keys(I).forEach(function(k){var q=[Pi,Ai].indexOf(k)>=0?1:-1,H=[ni,Ai].indexOf(k)>=0?"y":"x";I[k]+=D[H]*q})}return I}function UF(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,o=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?ef:c,d=Wa(r),f=d?l?r6:r6.filter(function(v){return Wa(v)===d}):Lc,h=f.filter(function(v){return u.indexOf(v)>=0});h.length===0&&(h=f);var g=h.reduce(function(v,y){return v[y]=Uc(e,{placement:y,boundary:s,rootBoundary:o,padding:a})[Er(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function $F(e){if(Er(e)===Em)return[];var t=sf(e);return[p6(e),t,p6(t)]}function VF(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,_=t.options.placement,w=Er(_),A=w===_,C=c||(A||!v?[sf(_)]:$F(_)),S=[_].concat(C).reduce(function(le,Ce){return le.concat(Er(Ce)===Em?UF(t,{placement:Ce,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:y}):Ce)},[]),x=t.rects.reference,O=t.rects.popper,N=new Map,I=!0,F=S[0],D=0;D<S.length;D++){var k=S[D],q=Er(k),H=Wa(k)===za,oe=[ni,Ai].indexOf(q)>=0,ce=oe?"width":"height",U=Uc(t,{placement:k,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),Y=oe?H?Pi:ii:H?Ai:ni;x[ce]>O[ce]&&(Y=sf(Y));var K=sf(Y),ee=[];if(o&&ee.push(U[q]<=0),l&&ee.push(U[Y]<=0,U[K]<=0),ee.every(function(le){return le})){F=k,I=!1;break}N.set(k,ee)}if(I)for(var B=v?3:1,Ee=function(le){var Ce=S.find(function(ye){var z=N.get(ye);if(z)return z.slice(0,le).every(function(X){return X})});if(Ce)return F=Ce,"break"},me=B;me>0;me--){var re=Ee(me);if(re==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}var zF={name:"flip",enabled:!0,phase:"main",fn:VF,requiresIfExists:["offset"],data:{_skip:!1}};function b6(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 y6(e){return[ni,Pi,Ai,ii].some(function(t){return e[t]>=0})}function qF(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,a=Uc(t,{elementContext:"reference"}),l=Uc(t,{altBoundary:!0}),c=b6(a,r),u=b6(l,s,o),d=y6(c),f=y6(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var HF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qF};function GF(e,t,n){var r=Er(e),s=[ii,ni].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],l=o[1];return a=a||0,l=(l||0)*s,[ii,Pi].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function WF(e){var t=e.state,n=e.options,r=e.name,s=n.offset,o=s===void 0?[0,0]:s,a=ef.reduce(function(d,f){return d[f]=GF(f,t.rects,o),d},{}),l=a[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]=a}var KF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:WF};function JF(e){var t=e.state,n=e.name;t.modifiersData[n]=v6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var _6={name:"popperOffsets",enabled:!0,phase:"read",fn:JF,data:{}};function YF(e){return e==="x"?"y":"x"}function XF(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,o=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,v=n.tetherOffset,y=v===void 0?0:v,_=Uc(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),w=Er(t.placement),A=Wa(t.placement),C=!A,S=Pm(w),x=YF(S),O=t.modifiersData.popperOffsets,N=t.rects.reference,I=t.rects.popper,F=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,D=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(O){if(o){var H,oe=S==="y"?ni:ii,ce=S==="y"?Ai:Pi,U=S==="y"?"height":"width",Y=O[S],K=Y+_[oe],ee=Y-_[ce],B=g?-I[U]/2:0,Ee=A===za?N[U]:I[U],me=A===za?-I[U]:-N[U],re=t.elements.arrow,le=g&&re?Am(re):{width:0,height:0},Ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:l6(),ye=Ce[oe],z=Ce[ce],X=Bc(0,N[U],le[U]),fe=C?N[U]/2-B-X-ye-D.mainAxis:Ee-X-ye-D.mainAxis,Re=C?-N[U]/2+B+X+z+D.mainAxis:me+X+z+D.mainAxis,Le=t.elements.arrow&&Fc(t.elements.arrow),Ke=Le?S==="y"?Le.clientTop||0:Le.clientLeft||0:0,j=(H=k==null?void 0:k[S])!=null?H:0,J=Y+fe-j-Ke,ae=Y+Re-j,xe=Bc(g?tf(K,J):K,Y,g?Vo(ee,ae):ee);O[S]=xe,q[S]=xe-Y}if(l){var de,pe=S==="x"?ni:ii,we=S==="x"?Ai:Pi,Ae=O[x],Te=x==="y"?"height":"width",ve=Ae+_[pe],$e=Ae-_[we],Q=[ni,ii].indexOf(w)!==-1,Oe=(de=k==null?void 0:k[x])!=null?de:0,Ve=Q?ve:Ae-N[Te]-I[Te]-Oe+D.altAxis,Qe=Q?Ae+N[Te]+I[Te]-Oe-D.altAxis:$e,wt=g&&Q?EF(Ve,Ae,Qe):Bc(g?Ve:ve,Ae,g?Qe:$e);O[x]=wt,q[x]=wt-Ae}t.modifiersData[r]=q}}var ZF={name:"preventOverflow",enabled:!0,phase:"main",fn:XF,requiresIfExists:["offset"]};function QF(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function eB(e){return e===ir(e)||!Ti(e)?Tm(e):QF(e)}function tB(e){var t=e.getBoundingClientRect(),n=Ha(t.width)/e.offsetWidth||1,r=Ha(t.height)/e.offsetHeight||1;return n!==1||r!==1}function nB(e,t,n){n===void 0&&(n=!1);var r=Ti(t),s=Ti(t)&&tB(t),o=Vs(t),a=Ga(e,s),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Sr(t)!=="body"||Nm(o))&&(l=eB(t)),Ti(t)?(c=Ga(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Om(o))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function iB(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&s(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),r}function rB(e){var t=iB(e);return yF.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function sB(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function oB(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var w6={placement:"bottom",modifiers:[],strategy:"absolute"};function C6(){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 Rm(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?w6:s;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},w6,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(y){var _=typeof y=="function"?y(u.options):y;v(),u.options=Object.assign({},o,u.options,_),u.scrollParents={reference:qa(a)?jc(a):a.contextElement?jc(a.contextElement):[],popper:jc(l)};var w=rB(oB([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(A){return A.enabled}),g(),h.update()},forceUpdate:function(){if(!f){var y=u.elements,_=y.reference,w=y.popper;if(C6(_,w)){u.rects={reference:nB(_,Fc(w),u.options.strategy==="fixed"),popper:Am(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(I){return u.modifiersData[I.name]=Object.assign({},I.data)});for(var A=0;A<u.orderedModifiers.length;A++){if(u.reset===!0){u.reset=!1,A=-1;continue}var C=u.orderedModifiers[A],S=C.fn,x=C.options,O=x===void 0?{}:x,N=C.name;typeof S=="function"&&(u=S({state:u,options:O,name:N,instance:h})||u)}}}},update:sB(function(){return new Promise(function(y){h.forceUpdate(),y(u)})}),destroy:function(){v(),f=!0}};if(!C6(a,l))return h;h.setOptions(c).then(function(y){!f&&c.onFirstUpdate&&c.onFirstUpdate(y)});function g(){u.orderedModifiers.forEach(function(y){var _=y.name,w=y.options,A=w===void 0?{}:w,C=y.effect;if(typeof C=="function"){var S=C({state:u,name:_,instance:h,options:A}),x=function(){};d.push(S||x)}})}function v(){d.forEach(function(y){return y()}),d=[]}return h}}Rm();var aB=[h6,_6,f6,s6];Rm({defaultModifiers:aB});var lB=[h6,_6,f6,s6,KF,zF,ZF,TF,HF],cB=Rm({defaultModifiers:lB});const uB=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const u=dB(c);Object.assign(a.value,u)},requires:["computeStyles"]},s=W(()=>{const{onFirstUpdate:c,placement:u,strategy:d,modifiers:f}=P(n);return{onFirstUpdate:c,placement:u||"bottom",strategy:d||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),o=mn(),a=ie({styles:{popper:{position:P(s).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return ze(s,c=>{const u=P(o);u&&u.setOptions(c)},{deep:!0}),ze([e,t],([c,u])=>{l(),!(!c||!u)&&(o.value=cB(c,u,P(s)))}),hn(()=>{l()}),{state:W(()=>{var c;return be({},((c=P(o))==null?void 0:c.state)||{})}),styles:W(()=>P(a).styles),attributes:W(()=>P(a).attributes),update:()=>{var c;return(c=P(o))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=P(o))==null?void 0:c.forceUpdate()},instanceRef:W(()=>P(o))}};function dB(e){const t=Object.keys(e.elements),n=Wd(t.map(s=>[s,e.styles[s]||{}])),r=Wd(t.map(s=>[s,e.attributes[s]]));return{styles:n,attributes:r}}const Dm=e=>{if(!e)return{onClick:Ct,onMousedown:Ct,onMouseup:Ct};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}};function S6(){let e;const t=(r,s)=>{n(),e=window.setTimeout(r,s)},n=()=>window.clearTimeout(e);return mc(()=>n()),{registerTimeout:t,cancelTimeout:n}}const E6={prefix:Math.floor(Math.random()*1e4),current:0},fB=Symbol("elIdInjection"),x6=()=>xt()?et(fB,E6):E6,xr=e=>{const t=x6(),n=Sm();return HO(()=>P(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Ka=[];const A6=e=>{e.code===$s.esc&&Ka.forEach(t=>t(e))},hB=e=>{Mt(()=>{Ka.length===0&&document.addEventListener("keydown",A6),kt&&Ka.push(e)}),hn(()=>{Ka=Ka.filter(t=>t!==e),Ka.length===0&&kt&&document.removeEventListener("keydown",A6)})},P6=()=>{const e=Sm(),t=x6(),n=W(()=>`${e.value}-popper-container-${t.prefix}`),r=W(()=>`#${n.value}`);return{id:n,selector:r}},pB=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},gB=()=>{const{id:e,selector:t}=P6();return sc(()=>{kt&&(document.body.querySelector(t.value)||pB(e.value))}),{id:e,selector:t}},mB=ht({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),vB=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:s})=>{const{registerTimeout:o}=S6(),{registerTimeout:a,cancelTimeout:l}=S6();return{onOpen:d=>{o(()=>{r(d);const f=P(n);Vt(f)&&f>0&&a(()=>{s(d)},f)},P(e))},onClose:d=>{l(),o(()=>{s(d)},P(t))}}},T6=Symbol("elForwardRef"),bB=e=>{cn(T6,{setForwardRef:n=>{e.value=n}})},yB=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),O6={current:0},N6=ie(0),I6=2e3,R6=Symbol("elZIndexContextKey"),D6=Symbol("zIndexContextKey"),Lm=e=>{const t=xt()?et(R6,O6):O6,n=e||(xt()?et(D6,void 0):void 0),r=W(()=>{const a=P(n);return Vt(a)?a:I6}),s=W(()=>r.value+N6.value),o=()=>(t.current++,N6.value=t.current,s.value);return!kt&&et(R6),{initialZIndex:r,currentZIndex:s,nextZIndex:o}};function _B(e){let t;function n(){if(e.value==null)return;const{selectionStart:s,selectionEnd:o,value:a}=e.value;if(s==null||o==null)return;const l=a.slice(0,Math.max(0,s)),c=a.slice(Math.max(0,o));t={selectionStart:s,selectionEnd:o,value:a,beforeTxt:l,afterTxt:c}}function r(){if(e.value==null||t==null)return;const{value:s}=e.value,{beforeTxt:o,afterTxt:a,selectionStart:l}=t;if(o==null||a==null||l==null)return;let c=s.length;if(s.endsWith(a))c=s.length-a.length;else if(s.startsWith(o))c=o.length;else{const u=o[l-1],d=s.indexOf(u,l-1);d!==-1&&(c=d+1)}e.value.setSelectionRange(c,c)}return[n,r]}const zs=Xd({type:String,values:Ic,required:!1}),L6=Symbol("size"),wB=()=>{const e=et(L6,{});return W(()=>P(e.size)||"")};function k6(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:s}={}){const o=xt(),{emit:a}=o,l=mn(),c=ie(!1),u=h=>{Fe(t)&&t(h)||c.value||(c.value=!0,a("focus",h),n==null||n())},d=h=>{var g;Fe(r)&&r(h)||h.relatedTarget&&((g=l.value)!=null&&g.contains(h.relatedTarget))||(c.value=!1,a("blur",h),s==null||s())},f=()=>{var h,g;(h=l.value)!=null&&h.contains(document.activeElement)&&l.value!==document.activeElement||(g=e.value)==null||g.focus()};return ze(l,h=>{h&&h.setAttribute("tabindex","-1")}),Ei(l,"focus",u,!0),Ei(l,"blur",d,!0),Ei(l,"click",f,!0),{isFocused:c,wrapperRef:l,handleFocus:u,handleBlur:d}}function M6({afterComposition:e,emit:t}){const n=ie(!1),r=l=>{t==null||t("compositionstart",l),n.value=!0},s=l=>{var c;t==null||t("compositionupdate",l);const u=(c=l.target)==null?void 0:c.value,d=u[u.length-1]||"";n.value=!XM(d)},o=l=>{t==null||t("compositionend",l),n.value&&(n.value=!1,ft(()=>e(l)))};return{isComposing:n,handleComposition:l=>{l.type==="compositionend"?o(l):s(l)},handleCompositionStart:r,handleCompositionUpdate:s,handleCompositionEnd:o}}const F6=Symbol("emptyValuesContextKey"),CB=["",void 0,null],SB=void 0,EB=ht({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Fe(e)?!e():!e}}),xB=(e,t)=>{const n=xt()?et(F6,ie({})):ie({}),r=W(()=>e.emptyValues||n.value.emptyValues||CB),s=W(()=>Fe(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Fe(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:SB),o=a=>r.value.includes(a);return r.value.includes(s.value),{emptyValues:r,valueOnClear:s,isEmptyValue:o}},AB=ht({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),qs=e=>U3(AB,e),B6=Symbol(),of=ie();function af(e,t=void 0){const n=xt()?et(B6,of):of;return e?W(()=>{var r,s;return(s=(r=n.value)==null?void 0:r[e])!=null?s:t}):n}function km(e,t){const n=af(),r=nt(e,W(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||Dc})),s=Va(W(()=>{var l;return(l=n.value)==null?void 0:l.locale})),o=Lm(W(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||I6})),a=W(()=>{var l;return P(t)||((l=n.value)==null?void 0:l.size)||""});return PB(W(()=>P(n)||{})),{ns:r,locale:s,zIndex:o,size:a}}const PB=(e,t,n=!1)=>{var r;const s=!!xt(),o=s?af():void 0,a=(r=t==null?void 0:t.provide)!=null?r:s?cn:void 0;if(!a)return;const l=W(()=>{const c=P(e);return o!=null&&o.value?TB(o.value,c):c});return a(B6,l),a(Z3,W(()=>l.value.locale)),a(Q3,W(()=>l.value.namespace)),a(D6,W(()=>l.value.zIndex)),a(L6,{size:W(()=>l.value.size||"")}),a(F6,W(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(n||!of.value)&&(of.value=l.value),l},TB=(e,t)=>{const n=[...new Set([...$3(e),...$3(t)])],r={};for(const s of n)r[s]=t[s]!==void 0?t[s]:e[s];return r},Ar={};var lt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const OB=ht({size:{type:Be([Number,String])},color:{type:String}}),NB=Pe(Me(be({},Pe({name:"ElIcon",inheritAttrs:!1})),{props:OB,setup(e){const t=e,n=nt("icon"),r=W(()=>{const{size:s,color:o}=t;return!s&&!o?{}:{fontSize:ci(s)?void 0:nr(s),"--color":o}});return(s,o)=>(R(),V("i",Ln({class:P(n).b(),style:P(r)},s.$attrs),[Ie(s.$slots,"default")],16))}}));var IB=lt(NB,[["__file","icon.vue"]]);const jt=vn(IB),Ja=Symbol("formContextKey"),zo=Symbol("formItemContextKey"),Pr=(e,t={})=>{const n=ie(void 0),r=t.prop?n:n6("size"),s=t.global?n:wB(),o=t.form?{size:void 0}:et(Ja,void 0),a=t.formItem?{size:void 0}:et(zo,void 0);return W(()=>r.value||P(e)||(a==null?void 0:a.size)||(o==null?void 0:o.size)||s.value||"")},cs=e=>{const t=n6("disabled"),n=et(Ja,void 0);return W(()=>t.value||P(e)||(n==null?void 0:n.disabled)||!1)},qo=()=>{const e=et(Ja,void 0),t=et(zo,void 0);return{form:e,formItem:t}},$c=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=ie(!1)),r||(r=ie(!1));const s=ie();let o;const a=W(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return Mt(()=>{o=ze([Ci(e,"id"),n],([l,c])=>{const u=l!=null?l:c?void 0:xr().value;u!==s.value&&(t!=null&&t.removeInputId&&(s.value&&t.removeInputId(s.value),!(r!=null&&r.value)&&!c&&u&&t.addInputId(u)),s.value=u)},{immediate:!0})}),xo(()=>{o&&o(),t!=null&&t.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:a,inputId:s}},RB=ht({size:{type:String,values:Ic},disabled:Boolean}),DB=ht(Me(be({},RB),{model:Object,rules:{type:Be(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}})),LB={validate:(e,t,n)=>(De(e)||Xe(e))&&pn(t)&&Xe(n)};function kB(){const e=ie([]),t=W(()=>{if(!e.value.length)return"0";const o=Math.max(...e.value);return o?`${o}px`:""});function n(o){const a=e.value.indexOf(o);return a===-1&&t.value,a}function r(o,a){if(o&&a){const l=n(a);e.value.splice(l,1,o)}else o&&e.value.push(o)}function s(o){const a=n(o);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:s}}const lf=(e,t)=>{const n=er(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},MB=Pe(Me(be({},Pe({name:"ElForm"})),{props:DB,emits:LB,setup(e,{expose:t,emit:n}){const r=e,s=[],o=Pr(),a=nt("form"),l=W(()=>{const{labelPosition:C,inline:S}=r;return[a.b(),a.m(o.value||"default"),{[a.m(`label-${C}`)]:C,[a.m("inline")]:S}]}),c=C=>s.find(S=>S.prop===C),u=C=>{s.push(C)},d=C=>{C.prop&&s.splice(s.indexOf(C),1)},f=(C=[])=>{r.model&&lf(s,C).forEach(S=>S.resetField())},h=(C=[])=>{lf(s,C).forEach(S=>S.clearValidate())},g=W(()=>!!r.model),v=C=>{if(s.length===0)return[];const S=lf(s,C);return S.length?S:[]},y=C=>rt(this,null,function*(){return w(void 0,C)}),_=(...S)=>rt(this,[...S],function*(C=[]){if(!g.value)return!1;const x=v(C);if(x.length===0)return!0;let O={};for(const N of x)try{yield N.validate("")}catch(I){O=be(be({},O),I)}return Object.keys(O).length===0?!0:Promise.reject(O)}),w=(...x)=>rt(this,[...x],function*(C=[],S){const O=!Fe(S);try{const N=yield _(C);return N===!0&&(yield S==null?void 0:S(N)),N}catch(N){if(N instanceof Error)throw N;const I=N;return r.scrollToError&&A(Object.keys(I)[0]),yield S==null?void 0:S(!1,I),O&&Promise.reject(I)}}),A=C=>{var S;const x=lf(s,C)[0];x&&((S=x.$el)==null||S.scrollIntoView(r.scrollIntoViewOptions))};return ze(()=>r.rules,()=>{r.validateOnRuleChange&&y().catch(C=>void 0)},{deep:!0}),cn(Ja,Rn(be(Me(be({},mr(r)),{emit:n,resetFields:f,clearValidate:h,validateField:w,getField:c,addField:u,removeField:d}),kB()))),t({validate:y,validateField:w,resetFields:f,clearValidate:h,scrollToField:A,fields:s}),(C,S)=>(R(),V("form",{class:Z(P(l))},[Ie(C.$slots,"default")],2))}}));var FB=lt(MB,[["__file","form.vue"]]);function Ho(){return Ho=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},Ho.apply(this,arguments)}function BB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vc(e,t)}function Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mm(e)}function Vc(e,t){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},Vc(e,t)}function jB(){if(typeof Reflect=="undefined"||!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(e){return!1}}function cf(e,t,n){return jB()?cf=Reflect.construct.bind():cf=function(s,o,a){var l=[null];l.push.apply(l,o);var c=Function.bind.apply(s,l),u=new c;return a&&Vc(u,a.prototype),u},cf.apply(null,arguments)}function UB(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Fm(e){var t=typeof Map=="function"?new Map:void 0;return Fm=function(r){if(r===null||!UB(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,s)}function s(){return cf(r,arguments,Mm(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Vc(s,r)},Fm(e)}var $B=/%[sdj%]/g,VB=function(){};function Bm(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 ui(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 s=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace($B,function(l){if(l==="%%")return"%";if(s>=o)return l;switch(l){case"%s":return String(n[s++]);case"%d":return Number(n[s++]);case"%j":try{return JSON.stringify(n[s++])}catch(c){return"[Circular]"}break;default:return l}});return a}return e}function zB(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function bn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||zB(t)&&typeof e=="string"&&!e)}function qB(e,t,n){var r=[],s=0,o=e.length;function a(l){r.push.apply(r,l||[]),s++,s===o&&n(r)}e.forEach(function(l){t(l,a)})}function j6(e,t,n){var r=0,s=e.length;function o(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<s?t(e[l],o):n([])}o([])}function HB(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var U6=function(e){BB(t,e);function t(n,r){var s;return s=e.call(this,"Async Validation Error")||this,s.errors=n,s.fields=r,s}return t}(Fm(Error));function GB(e,t,n,r,s){if(t.first){var o=new Promise(function(h,g){var v=function(w){return r(w),w.length?g(new U6(w,Bm(w))):h(s)},y=HB(e);j6(y,n,v)});return o.catch(function(h){return h}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,u=0,d=[],f=new Promise(function(h,g){var v=function(_){if(d.push.apply(d,_),u++,u===c)return r(d),d.length?g(new U6(d,Bm(d))):h(s)};l.length||(r(d),h(s)),l.forEach(function(y){var _=e[y];a.indexOf(y)!==-1?j6(_,n,v):qB(_,n,v)})});return f.catch(function(h){return h}),f}function WB(e){return!!(e&&e.message!==void 0)}function KB(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function $6(e,t){return function(n){var r;return e.fullFields?r=KB(t,e.fullFields):r=t[n.field||e.fullField],WB(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 V6(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]=Ho({},e[n],r):e[n]=r}}return e}var z6=function(t,n,r,s,o,a){t.required&&(!r.hasOwnProperty(t.field)||bn(n,a||t.type))&&s.push(ui(o.messages.required,t.fullField))},JB=function(t,n,r,s,o){(/^\s+$/.test(n)||n==="")&&s.push(ui(o.messages.whitespace,t.fullField))},uf,YB=function(){if(uf)return uf;var e="[a-fA-F\\d:]",t=function(S){return S&&S.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}",s=(`
|
|
21
|
-
(?:
|
|
22
|
-
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
23
|
-
(?:`+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
|
|
24
|
-
(?:`+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
|
|
25
|
-
(?:`+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
|
|
26
|
-
(?:`+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
|
|
27
|
-
(?:`+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
|
|
28
|
-
(?:`+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
|
|
29
|
-
(?::(?:(?::`+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
|
|
30
|
-
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
31
|
-
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+s+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+s+"$"),c=function(S){return S&&S.exact?o:new RegExp("(?:"+t(S)+n+t(S)+")|(?:"+t(S)+s+t(S)+")","g")};c.v4=function(C){return C&&C.exact?a:new RegExp(""+t(C)+n+t(C),"g")},c.v6=function(C){return C&&C.exact?l:new RegExp(""+t(C)+s+t(C),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=c.v4().source,h=c.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",_="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',A="(?:"+u+"|www\\.)"+d+"(?:localhost|"+f+"|"+h+"|"+g+v+y+")"+_+w;return uf=new RegExp("(?:^"+A+"$)","i"),uf},q6={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},zc={integer:function(t){return zc.number(t)&&parseInt(t,10)===t},float:function(t){return zc.number(t)&&!zc.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){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"&&!zc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(q6.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(YB())},hex:function(t){return typeof t=="string"&&!!t.match(q6.hex)}},XB=function(t,n,r,s,o){if(t.required&&n===void 0){z6(t,n,r,s,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?zc[l](n)||s.push(ui(o.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&s.push(ui(o.messages.types[l],t.fullField,t.type))},ZB=function(t,n,r,s,o){var a=typeof t.len=="number",l=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(h?f="number":g?f="string":v&&(f="array"),!f)return!1;v&&(d=n.length),g&&(d=n.replace(u,"_").length),a?d!==t.len&&s.push(ui(o.messages[f].len,t.fullField,t.len)):l&&!c&&d<t.min?s.push(ui(o.messages[f].min,t.fullField,t.min)):c&&!l&&d>t.max?s.push(ui(o.messages[f].max,t.fullField,t.max)):l&&c&&(d<t.min||d>t.max)&&s.push(ui(o.messages[f].range,t.fullField,t.min,t.max))},Ya="enum",QB=function(t,n,r,s,o){t[Ya]=Array.isArray(t[Ya])?t[Ya]:[],t[Ya].indexOf(n)===-1&&s.push(ui(o.messages[Ya],t.fullField,t[Ya].join(", ")))},ej=function(t,n,r,s,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||s.push(ui(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||s.push(ui(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},At={required:z6,whitespace:JB,type:XB,range:ZB,enum:QB,pattern:ej},tj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(bn(n,"string")&&!t.required)return r();At.required(t,n,s,a,o,"string"),bn(n,"string")||(At.type(t,n,s,a,o),At.range(t,n,s,a,o),At.pattern(t,n,s,a,o),t.whitespace===!0&&At.whitespace(t,n,s,a,o))}r(a)},nj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(bn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&At.type(t,n,s,a,o)}r(a)},ij=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),bn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&(At.type(t,n,s,a,o),At.range(t,n,s,a,o))}r(a)},rj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(bn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&At.type(t,n,s,a,o)}r(a)},sj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(bn(n)&&!t.required)return r();At.required(t,n,s,a,o),bn(n)||At.type(t,n,s,a,o)}r(a)},oj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(bn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&(At.type(t,n,s,a,o),At.range(t,n,s,a,o))}r(a)},aj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(bn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&(At.type(t,n,s,a,o),At.range(t,n,s,a,o))}r(a)},lj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();At.required(t,n,s,a,o,"array"),n!=null&&(At.type(t,n,s,a,o),At.range(t,n,s,a,o))}r(a)},cj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(bn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&At.type(t,n,s,a,o)}r(a)},uj="enum",dj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(bn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&At[uj](t,n,s,a,o)}r(a)},fj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(bn(n,"string")&&!t.required)return r();At.required(t,n,s,a,o),bn(n,"string")||At.pattern(t,n,s,a,o)}r(a)},hj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(bn(n,"date")&&!t.required)return r();if(At.required(t,n,s,a,o),!bn(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),At.type(t,c,s,a,o),c&&At.range(t,c.getTime(),s,a,o)}}r(a)},pj=function(t,n,r,s,o){var a=[],l=Array.isArray(n)?"array":typeof n;At.required(t,n,s,a,o,l),r(a)},jm=function(t,n,r,s,o){var a=t.type,l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(bn(n,a)&&!t.required)return r();At.required(t,n,s,l,o,a),bn(n,a)||At.type(t,n,s,l,o)}r(l)},gj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(bn(n)&&!t.required)return r();At.required(t,n,s,a,o)}r(a)},qc={string:tj,method:nj,number:ij,boolean:rj,regexp:sj,integer:oj,float:aj,array:lj,object:cj,enum:dj,pattern:fj,date:hj,url:jm,hex:jm,email:jm,required:pj,any:gj};function Um(){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 $m=Um(),Hc=function(){function e(n){this.rules=null,this._messages=$m,this.define(n)}var t=e.prototype;return t.define=function(r){var s=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(o){var a=r[o];s.rules[o]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=V6(Um(),r)),this._messages},t.validate=function(r,s,o){var a=this;s===void 0&&(s={}),o===void 0&&(o=function(){});var l=r,c=s,u=o;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function d(y){var _=[],w={};function A(S){if(Array.isArray(S)){var x;_=(x=_).concat.apply(x,S)}else _.push(S)}for(var C=0;C<y.length;C++)A(y[C]);_.length?(w=Bm(_),u(_,w)):u(null,l)}if(c.messages){var f=this.messages();f===$m&&(f=Um()),V6(f,c.messages),c.messages=f}else c.messages=this.messages();var h={},g=c.keys||Object.keys(this.rules);g.forEach(function(y){var _=a.rules[y],w=l[y];_.forEach(function(A){var C=A;typeof C.transform=="function"&&(l===r&&(l=Ho({},l)),w=l[y]=C.transform(w)),typeof C=="function"?C={validator:C}:C=Ho({},C),C.validator=a.getValidationMethod(C),C.validator&&(C.field=y,C.fullField=C.fullField||y,C.type=a.getType(C),h[y]=h[y]||[],h[y].push({rule:C,value:w,source:l,field:y}))})});var v={};return GB(h,c,function(y,_){var w=y.rule,A=(w.type==="object"||w.type==="array")&&(typeof w.fields=="object"||typeof w.defaultField=="object");A=A&&(w.required||!w.required&&y.value),w.field=y.field;function C(O,N){return Ho({},N,{fullField:w.fullField+"."+O,fullFields:w.fullFields?[].concat(w.fullFields,[O]):[O]})}function S(O){O===void 0&&(O=[]);var N=Array.isArray(O)?O:[O];!c.suppressWarning&&N.length&&e.warning("async-validator:",N),N.length&&w.message!==void 0&&(N=[].concat(w.message));var I=N.map($6(w,l));if(c.first&&I.length)return v[w.field]=1,_(I);if(!A)_(I);else{if(w.required&&!y.value)return w.message!==void 0?I=[].concat(w.message).map($6(w,l)):c.error&&(I=[c.error(w,ui(c.messages.required,w.field))]),_(I);var F={};w.defaultField&&Object.keys(y.value).map(function(q){F[q]=w.defaultField}),F=Ho({},F,y.rule.fields);var D={};Object.keys(F).forEach(function(q){var H=F[q],oe=Array.isArray(H)?H:[H];D[q]=oe.map(C.bind(null,q))});var k=new e(D);k.messages(c.messages),y.rule.options&&(y.rule.options.messages=c.messages,y.rule.options.error=c.error),k.validate(y.value,y.rule.options||c,function(q){var H=[];I&&I.length&&H.push.apply(H,I),q&&q.length&&H.push.apply(H,q),_(H.length?H:null)})}}var x;if(w.asyncValidator)x=w.asyncValidator(w,y.value,S,y.source,c);else if(w.validator){try{x=w.validator(w,y.value,S,y.source,c)}catch(O){console.error==null||console.error(O),c.suppressValidatorError||setTimeout(function(){throw O},0),S(O.message)}x===!0?S():x===!1?S(typeof w.message=="function"?w.message(w.fullField||w.field):w.message||(w.fullField||w.field)+" fails"):x instanceof Array?S(x):x instanceof Error&&S(x.message)}x&&x.then&&x.then(function(){return S()},function(O){return S(O)})},function(y){d(y)},l)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!qc.hasOwnProperty(r.type))throw new Error(ui("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var s=Object.keys(r),o=s.indexOf("message");return o!==-1&&s.splice(o,1),s.length===1&&s[0]==="required"?qc.required:qc[this.getType(r)]||void 0},e}();Hc.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");qc[t]=n},Hc.warning=VB,Hc.messages=$m,Hc.validators=qc;const mj=["","error","validating","success"],vj=ht({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Be([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Be([Object,Array])},error:String,validateStatus:{type:String,values:mj},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Ic}}),H6="ElLabelWrap";var bj=Pe({name:H6,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=et(Ja,void 0),r=et(zo);r||Bo(H6,"usage: <el-form-item><label-wrap /></el-form-item>");const s=nt("form"),o=ie(),a=ie(0),l=()=>{var d;if((d=o.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},c=(d="update")=>{ft(()=>{t.default&&e.isAutoWidth&&(d==="update"?a.value=l():d==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},u=()=>c("update");return Mt(()=>{u()}),hn(()=>{c("remove")}),oc(()=>u()),ze(a,(d,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,f))}),li(W(()=>{var d,f;return(f=(d=o.value)==null?void 0:d.firstElementChild)!=null?f:null}),u),()=>{var d,f;if(!t)return null;const{isAutoWidth:h}=e;if(h){const g=n==null?void 0:n.autoLabelWidth,v=r==null?void 0:r.hasLabel,y={};if(v&&g&&g!=="auto"){const _=Math.max(0,Number.parseInt(g,10)-a.value),A=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";_&&(y[A]=`${_}px`)}return ne("div",{ref:o,class:[s.be("item","label-wrap")],style:y},[(d=t.default)==null?void 0:d.call(t)])}else return ne(qe,{ref:o},[(f=t.default)==null?void 0:f.call(t)])}}});const yj=Pe(Me(be({},Pe({name:"ElFormItem"})),{props:vj,setup(e,{expose:t}){const n=e,r=Ia(),s=et(Ja,void 0),o=et(zo,void 0),a=Pr(void 0,{formItem:!1}),l=nt("form-item"),c=xr().value,u=ie([]),d=ie(""),f=QO(d,100),h=ie(""),g=ie();let v,y=!1;const _=W(()=>n.labelPosition||(s==null?void 0:s.labelPosition)),w=W(()=>{if(_.value==="top")return{};const X=nr(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return X?{width:X}:{}}),A=W(()=>{if(_.value==="top"||s!=null&&s.inline)return{};if(!n.label&&!n.labelWidth&&D)return{};const X=nr(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return!n.label&&!r.label?{marginLeft:X}:{}}),C=W(()=>[l.b(),l.m(a.value),l.is("error",d.value==="error"),l.is("validating",d.value==="validating"),l.is("success",d.value==="success"),l.is("required",ce.value||n.required),l.is("no-asterisk",s==null?void 0:s.hideRequiredAsterisk),(s==null?void 0:s.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:s==null?void 0:s.statusIcon,[l.m(`label-${_.value}`)]:_.value}]),S=W(()=>pn(n.inlineMessage)?n.inlineMessage:(s==null?void 0:s.inlineMessage)||!1),x=W(()=>[l.e("error"),{[l.em("error","inline")]:S.value}]),O=W(()=>n.prop?Xe(n.prop)?n.prop:n.prop.join("."):""),N=W(()=>!!(n.label||r.label)),I=W(()=>n.for||(u.value.length===1?u.value[0]:void 0)),F=W(()=>!I.value&&N.value),D=!!o,k=W(()=>{const X=s==null?void 0:s.model;if(!(!X||!n.prop))return Kd(X,n.prop).value}),q=W(()=>{const{required:X}=n,fe=[];n.rules&&fe.push(...er(n.rules));const Re=s==null?void 0:s.rules;if(Re&&n.prop){const Le=Kd(Re,n.prop).value;Le&&fe.push(...er(Le))}if(X!==void 0){const Le=fe.map((Ke,j)=>[Ke,j]).filter(([Ke])=>Object.keys(Ke).includes("required"));if(Le.length>0)for(const[Ke,j]of Le)Ke.required!==X&&(fe[j]=Me(be({},Ke),{required:X}));else fe.push({required:X})}return fe}),H=W(()=>q.value.length>0),oe=X=>q.value.filter(Re=>!Re.trigger||!X?!0:De(Re.trigger)?Re.trigger.includes(X):Re.trigger===X).map(Ke=>{var j=Ke,{trigger:Re}=j,Le=Ps(j,["trigger"]);return Le}),ce=W(()=>q.value.some(X=>X.required)),U=W(()=>{var X;return f.value==="error"&&n.showMessage&&((X=s==null?void 0:s.showMessage)!=null?X:!0)}),Y=W(()=>`${n.label||""}${(s==null?void 0:s.labelSuffix)||""}`),K=X=>{d.value=X},ee=X=>{var fe,Re;const{errors:Le,fields:Ke}=X;(!Le||!Ke)&&console.error(X),K("error"),h.value=Le?(Re=(fe=Le==null?void 0:Le[0])==null?void 0:fe.message)!=null?Re:`${n.prop} is required`:"",s==null||s.emit("validate",n.prop,!1,h.value)},B=()=>{K("success"),s==null||s.emit("validate",n.prop,!0,"")},Ee=X=>rt(this,null,function*(){const fe=O.value;return new Hc({[fe]:X}).validate({[fe]:k.value},{firstFields:!0}).then(()=>(B(),!0)).catch(Le=>(ee(Le),Promise.reject(Le)))}),me=(X,fe)=>rt(this,null,function*(){if(y||!n.prop)return!1;const Re=Fe(fe);if(!H.value)return fe==null||fe(!1),!1;const Le=oe(X);return Le.length===0?(fe==null||fe(!0),!0):(K("validating"),Ee(Le).then(()=>(fe==null||fe(!0),!0)).catch(Ke=>{const{fields:j}=Ke;return fe==null||fe(!1,j),Re?!1:Promise.reject(j)}))}),re=()=>{K(""),h.value="",y=!1},le=()=>rt(this,null,function*(){const X=s==null?void 0:s.model;if(!X||!n.prop)return;const fe=Kd(X,n.prop);y=!0,fe.value=x3(v),yield ft(),re(),y=!1}),Ce=X=>{u.value.includes(X)||u.value.push(X)},ye=X=>{u.value=u.value.filter(fe=>fe!==X)};ze(()=>n.error,X=>{h.value=X||"",K(X?"error":"")},{immediate:!0}),ze(()=>n.validateStatus,X=>K(X||""));const z=Rn(Me(be({},mr(n)),{$el:g,size:a,validateState:d,labelId:c,inputIds:u,isGroup:F,hasLabel:N,fieldValue:k,addInputId:Ce,removeInputId:ye,resetField:le,clearValidate:re,validate:me}));return cn(zo,z),Mt(()=>{n.prop&&(s==null||s.addField(z),v=x3(k.value))}),hn(()=>{s==null||s.removeField(z)}),t({size:a,validateMessage:h,validateState:d,validate:me,clearValidate:re,resetField:le}),(X,fe)=>{var Re;return R(),V("div",{ref_key:"formItemRef",ref:g,class:Z(P(C)),role:P(F)?"group":void 0,"aria-labelledby":P(F)?P(c):void 0},[ne(P(bj),{"is-auto-width":P(w).width==="auto","update-all":((Re=P(s))==null?void 0:Re.labelWidth)==="auto"},{default:te(()=>[P(N)?(R(),_e(Qt(P(I)?"label":"div"),{key:0,id:P(c),for:P(I),class:Z(P(l).e("label")),style:Ze(P(w))},{default:te(()=>[Ie(X.$slots,"label",{label:P(Y)},()=>[Je(Ne(P(Y)),1)])]),_:3},8,["id","for","class","style"])):se("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),G("div",{class:Z(P(l).e("content")),style:Ze(P(A))},[Ie(X.$slots,"default"),ne(cw,{name:`${P(l).namespace.value}-zoom-in-top`},{default:te(()=>[P(U)?Ie(X.$slots,"error",{key:0,error:h.value},()=>[G("div",{class:Z(P(x))},Ne(h.value),3)]):se("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}}));var G6=lt(yj,[["__file","form-item.vue"]]);const Vm=vn(FB,{FormItem:G6}),zm=as(G6);let rr;const _j=`
|
|
32
|
-
height:0 !important;
|
|
33
|
-
visibility:hidden !important;
|
|
34
|
-
${gN()?"":"overflow:hidden !important;"}
|
|
35
|
-
position:absolute !important;
|
|
36
|
-
z-index:-1000 !important;
|
|
37
|
-
top:0 !important;
|
|
38
|
-
right:0 !important;
|
|
39
|
-
`,wj=["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 Cj(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),s=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:wj.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:s,boxSizing:n}}function W6(e,t=1,n){var r;rr||(rr=document.createElement("textarea"),document.body.appendChild(rr));const{paddingSize:s,borderSize:o,boxSizing:a,contextStyle:l}=Cj(e);rr.setAttribute("style",`${l};${_j}`),rr.value=e.value||e.placeholder||"";let c=rr.scrollHeight;const u={};a==="border-box"?c=c+o:a==="content-box"&&(c=c-s),rr.value="";const d=rr.scrollHeight-s;if(Vt(t)){let f=d*t;a==="border-box"&&(f=f+s+o),c=Math.max(f,c),u.minHeight=`${f}px`}if(Vt(n)){let f=d*n;a==="border-box"&&(f=f+s+o),c=Math.min(f,c)}return u.height=`${c}px`,(r=rr.parentNode)==null||r.removeChild(rr),rr=void 0,u}const Sj=ht(be({id:{type:String,default:void 0},size:zs,disabled:Boolean,modelValue:{type:Be([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Be([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:os},prefixIcon:{type:os},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Be([Object,Array,String]),default:()=>Rc({})},autofocus:Boolean,rows:{type:Number,default:2}},qs(["ariaLabel"]))),Ej={[Cn]:e=>Xe(e),input:e=>Xe(e),change:e=>Xe(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},xj=Pe(Me(be({},Pe({name:"ElInput",inheritAttrs:!1})),{props:Sj,emits:Ej,setup(e,{expose:t,emit:n}){const r=e,s=pT(),o=eF(),a=Ia(),l=W(()=>[r.type==="textarea"?y.b():v.b(),v.m(h.value),v.is("disabled",g.value),v.is("exceed",me.value),{[v.b("group")]:a.prepend||a.append,[v.m("prefix")]:a.prefix||r.prefixIcon,[v.m("suffix")]:a.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:K.value&&ee.value,[v.b("hidden")]:r.type==="hidden"},s.class]),c=W(()=>[v.e("wrapper"),v.is("focus",I.value)]),{form:u,formItem:d}=qo(),{inputId:f}=$c(r,{formItemContext:d}),h=Pr(),g=cs(),v=nt("input"),y=nt("textarea"),_=mn(),w=mn(),A=ie(!1),C=ie(!1),S=ie(),x=mn(r.inputStyle),O=W(()=>_.value||w.value),{wrapperRef:N,isFocused:I,handleFocus:F,handleBlur:D}=k6(O,{beforeFocus(){return g.value},afterBlur(){var Q;r.validateEvent&&((Q=d==null?void 0:d.validate)==null||Q.call(d,"blur").catch(Oe=>void 0))}}),k=W(()=>{var Q;return(Q=u==null?void 0:u.statusIcon)!=null?Q:!1}),q=W(()=>(d==null?void 0:d.validateState)||""),H=W(()=>q.value&&Y3[q.value]),oe=W(()=>C.value?$M:DM),ce=W(()=>[s.style]),U=W(()=>[r.inputStyle,x.value,{resize:r.resize}]),Y=W(()=>Fo(r.modelValue)?"":String(r.modelValue)),K=W(()=>r.clearable&&!g.value&&!r.readonly&&!!Y.value&&(I.value||A.value)),ee=W(()=>r.showPassword&&!g.value&&!!Y.value&&(!!Y.value||I.value)),B=W(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!g.value&&!r.readonly&&!r.showPassword),Ee=W(()=>Y.value.length),me=W(()=>!!B.value&&Ee.value>Number(r.maxlength)),re=W(()=>!!a.suffix||!!r.suffixIcon||K.value||r.showPassword||B.value||!!q.value&&k.value),[le,Ce]=_B(_);li(w,Q=>{if(X(),!B.value||r.resize!=="both")return;const Oe=Q[0],{width:Ve}=Oe.contentRect;S.value={right:`calc(100% - ${Ve+15+6}px)`}});const ye=()=>{const{type:Q,autosize:Oe}=r;if(!(!kt||Q!=="textarea"||!w.value))if(Oe){const Ve=at(Oe)?Oe.minRows:void 0,Qe=at(Oe)?Oe.maxRows:void 0,wt=W6(w.value,Ve,Qe);x.value=be({overflowY:"hidden"},wt),ft(()=>{w.value.offsetHeight,x.value=wt})}else x.value={minHeight:W6(w.value).minHeight}},X=(Q=>{let Oe=!1;return()=>{var Ve;if(Oe||!r.autosize)return;((Ve=w.value)==null?void 0:Ve.offsetParent)===null||(Q(),Oe=!0)}})(ye),fe=()=>{const Q=O.value,Oe=r.formatter?r.formatter(Y.value):Y.value;!Q||Q.value===Oe||(Q.value=Oe)},Re=Q=>rt(this,null,function*(){le();let{value:Oe}=Q.target;if(r.formatter&&(Oe=r.parser?r.parser(Oe):Oe),!Ke.value){if(Oe===Y.value){fe();return}n(Cn,Oe),n("input",Oe),yield ft(),fe(),Ce()}}),Le=Q=>{n("change",Q.target.value)},{isComposing:Ke,handleCompositionStart:j,handleCompositionUpdate:J,handleCompositionEnd:ae}=M6({emit:n,afterComposition:Re}),xe=()=>{C.value=!C.value,de()},de=()=>rt(this,null,function*(){var Q;yield ft(),(Q=O.value)==null||Q.focus()}),pe=()=>{var Q;return(Q=O.value)==null?void 0:Q.blur()},we=Q=>{A.value=!1,n("mouseleave",Q)},Ae=Q=>{A.value=!0,n("mouseenter",Q)},Te=Q=>{n("keydown",Q)},ve=()=>{var Q;(Q=O.value)==null||Q.select()},$e=()=>{n(Cn,""),n("change",""),n("clear"),n("input","")};return ze(()=>r.modelValue,()=>{var Q;ft(()=>ye()),r.validateEvent&&((Q=d==null?void 0:d.validate)==null||Q.call(d,"change").catch(Oe=>void 0))}),ze(Y,()=>fe()),ze(()=>r.type,()=>rt(this,null,function*(){yield ft(),fe(),ye()})),Mt(()=>{!r.formatter&&r.parser,fe(),ft(ye)}),t({input:_,textarea:w,ref:O,textareaStyle:U,autosize:Ci(r,"autosize"),isComposing:Ke,focus:de,blur:pe,select:ve,clear:$e,resizeTextarea:ye}),(Q,Oe)=>(R(),V("div",{class:Z([P(l),{[P(v).bm("group","append")]:Q.$slots.append,[P(v).bm("group","prepend")]:Q.$slots.prepend}]),style:Ze(P(ce)),onMouseenter:Ae,onMouseleave:we},[se(" input "),Q.type!=="textarea"?(R(),V(qe,{key:0},[se(" prepend slot "),Q.$slots.prepend?(R(),V("div",{key:0,class:Z(P(v).be("group","prepend"))},[Ie(Q.$slots,"prepend")],2)):se("v-if",!0),G("div",{ref_key:"wrapperRef",ref:N,class:Z(P(c))},[se(" prefix slot "),Q.$slots.prefix||Q.prefixIcon?(R(),V("span",{key:0,class:Z(P(v).e("prefix"))},[G("span",{class:Z(P(v).e("prefix-inner"))},[Ie(Q.$slots,"prefix"),Q.prefixIcon?(R(),_e(P(jt),{key:0,class:Z(P(v).e("icon"))},{default:te(()=>[(R(),_e(Qt(Q.prefixIcon)))]),_:1},8,["class"])):se("v-if",!0)],2)],2)):se("v-if",!0),G("input",Ln({id:P(f),ref_key:"input",ref:_,class:P(v).e("inner")},P(o),{minlength:Q.minlength,maxlength:Q.maxlength,type:Q.showPassword?C.value?"text":"password":Q.type,disabled:P(g),readonly:Q.readonly,autocomplete:Q.autocomplete,tabindex:Q.tabindex,"aria-label":Q.ariaLabel,placeholder:Q.placeholder,style:Q.inputStyle,form:Q.form,autofocus:Q.autofocus,role:Q.containerRole,onCompositionstart:P(j),onCompositionupdate:P(J),onCompositionend:P(ae),onInput:Re,onChange:Le,onKeydown:Te}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),se(" suffix slot "),P(re)?(R(),V("span",{key:1,class:Z(P(v).e("suffix"))},[G("span",{class:Z(P(v).e("suffix-inner"))},[!P(K)||!P(ee)||!P(B)?(R(),V(qe,{key:0},[Ie(Q.$slots,"suffix"),Q.suffixIcon?(R(),_e(P(jt),{key:0,class:Z(P(v).e("icon"))},{default:te(()=>[(R(),_e(Qt(Q.suffixIcon)))]),_:1},8,["class"])):se("v-if",!0)],64)):se("v-if",!0),P(K)?(R(),_e(P(jt),{key:1,class:Z([P(v).e("icon"),P(v).e("clear")]),onMousedown:mt(P(Ct),["prevent"]),onClick:$e},{default:te(()=>[ne(P(Yd))]),_:1},8,["class","onMousedown"])):se("v-if",!0),P(ee)?(R(),_e(P(jt),{key:2,class:Z([P(v).e("icon"),P(v).e("password")]),onClick:xe},{default:te(()=>[(R(),_e(Qt(P(oe))))]),_:1},8,["class"])):se("v-if",!0),P(B)?(R(),V("span",{key:3,class:Z(P(v).e("count"))},[G("span",{class:Z(P(v).e("count-inner"))},Ne(P(Ee))+" / "+Ne(Q.maxlength),3)],2)):se("v-if",!0),P(q)&&P(H)&&P(k)?(R(),_e(P(jt),{key:4,class:Z([P(v).e("icon"),P(v).e("validateIcon"),P(v).is("loading",P(q)==="validating")])},{default:te(()=>[(R(),_e(Qt(P(H))))]),_:1},8,["class"])):se("v-if",!0)],2)],2)):se("v-if",!0)],2),se(" append slot "),Q.$slots.append?(R(),V("div",{key:1,class:Z(P(v).be("group","append"))},[Ie(Q.$slots,"append")],2)):se("v-if",!0)],64)):(R(),V(qe,{key:1},[se(" textarea "),G("textarea",Ln({id:P(f),ref_key:"textarea",ref:w,class:[P(y).e("inner"),P(v).is("focus",P(I))]},P(o),{minlength:Q.minlength,maxlength:Q.maxlength,tabindex:Q.tabindex,disabled:P(g),readonly:Q.readonly,autocomplete:Q.autocomplete,style:P(U),"aria-label":Q.ariaLabel,placeholder:Q.placeholder,form:Q.form,autofocus:Q.autofocus,rows:Q.rows,role:Q.containerRole,onCompositionstart:P(j),onCompositionupdate:P(J),onCompositionend:P(ae),onInput:Re,onFocus:P(F),onBlur:P(D),onChange:Le,onKeydown:Te}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),P(B)?(R(),V("span",{key:0,style:Ze(S.value),class:Z(P(v).e("count"))},Ne(P(Ee))+" / "+Ne(Q.maxlength),7)):se("v-if",!0)],64))],38))}}));var Aj=lt(xj,[["__file","input.vue"]]);const Go=vn(Aj),Xa=4,Pj={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"}},Tj=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),qm=Symbol("scrollbarContextKey"),Oj=ht({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Nj="Thumb";var K6=lt(Pe({__name:"thumb",props:Oj,setup(e){const t=e,n=et(qm),r=nt("scrollbar");n||Bo(Nj,"can not inject scrollbar context");const s=ie(),o=ie(),a=ie({}),l=ie(!1);let c=!1,u=!1,d=kt?document.onselectstart:null;const f=W(()=>Pj[t.vertical?"vertical":"horizontal"]),h=W(()=>Tj({size:t.size,move:t.move,bar:f.value})),g=W(()=>Gp(s.value[f.value.offset],2)/n.wrapElement[f.value.scrollSize]/t.ratio/o.value[f.value.offset]),v=O=>{var N;if(O.stopPropagation(),O.ctrlKey||[1,2].includes(O.button))return;(N=window.getSelection())==null||N.removeAllRanges(),_(O);const I=O.currentTarget;I&&(a.value[f.value.axis]=I[f.value.offset]-(O[f.value.client]-I.getBoundingClientRect()[f.value.direction]))},y=O=>{if(!o.value||!s.value||!n.wrapElement)return;const N=Math.abs(O.target.getBoundingClientRect()[f.value.direction]-O[f.value.client]),I=o.value[f.value.offset]/2,F=(N-I)*100*g.value/s.value[f.value.offset];n.wrapElement[f.value.scroll]=F*n.wrapElement[f.value.scrollSize]/100},_=O=>{O.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",A),d=document.onselectstart,document.onselectstart=()=>!1},w=O=>{if(!s.value||!o.value||c===!1)return;const N=a.value[f.value.axis];if(!N)return;const I=(s.value.getBoundingClientRect()[f.value.direction]-O[f.value.client])*-1,F=o.value[f.value.offset]-N,D=(I-F)*100*g.value/s.value[f.value.offset];n.wrapElement[f.value.scroll]=D*n.wrapElement[f.value.scrollSize]/100},A=()=>{c=!1,a.value[f.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",A),x(),u&&(l.value=!1)},C=()=>{u=!1,l.value=!!t.size},S=()=>{u=!0,l.value=c};hn(()=>{x(),document.removeEventListener("mouseup",A)});const x=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Ei(Ci(n,"scrollbarElement"),"mousemove",C),Ei(Ci(n,"scrollbarElement"),"mouseleave",S),(O,N)=>(R(),_e(Fs,{name:P(r).b("fade"),persisted:""},{default:te(()=>[Dt(G("div",{ref_key:"instance",ref:s,class:Z([P(r).e("bar"),P(r).is(P(f).key)]),onMousedown:y},[G("div",{ref_key:"thumb",ref:o,class:Z(P(r).e("thumb")),style:Ze(P(h)),onMousedown:v},null,38)],34),[[wn,O.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const Ij=ht({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var Rj=lt(Pe({__name:"bar",props:Ij,setup(e,{expose:t}){const n=e,r=et(qm),s=ie(0),o=ie(0),a=ie(""),l=ie(""),c=ie(1),u=ie(1);return t({handleScroll:h=>{if(h){const g=h.offsetHeight-Xa,v=h.offsetWidth-Xa;o.value=h.scrollTop*100/g*c.value,s.value=h.scrollLeft*100/v*u.value}},update:()=>{const h=r==null?void 0:r.wrapElement;if(!h)return;const g=h.offsetHeight-Xa,v=h.offsetWidth-Xa,y=Gp(g,2)/h.scrollHeight,_=Gp(v,2)/h.scrollWidth,w=Math.max(y,n.minSize),A=Math.max(_,n.minSize);c.value=y/(g-y)/(w/(g-w)),u.value=_/(v-_)/(A/(v-A)),l.value=w+Xa<g?`${w}px`:"",a.value=A+Xa<v?`${A}px`:""}}),(h,g)=>(R(),V(qe,null,[ne(K6,{move:s.value,ratio:u.value,size:a.value,always:h.always},null,8,["move","ratio","size","always"]),ne(K6,{move:o.value,ratio:c.value,size:l.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const Dj=ht(be({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Be([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String},qs(["ariaLabel","ariaOrientation"]))),Lj={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Vt)},kj=Pe(Me(be({},Pe({name:"ElScrollbar"})),{props:Dj,emits:Lj,setup(e,{expose:t,emit:n}){const r=e,s=nt("scrollbar");let o,a,l=0,c=0;const u=ie(),d=ie(),f=ie(),h=ie(),g=W(()=>{const x={};return r.height&&(x.height=nr(r.height)),r.maxHeight&&(x.maxHeight=nr(r.maxHeight)),[r.wrapStyle,x]}),v=W(()=>[r.wrapClass,s.e("wrap"),{[s.em("wrap","hidden-default")]:!r.native}]),y=W(()=>[s.e("view"),r.viewClass]),_=()=>{var x;d.value&&((x=h.value)==null||x.handleScroll(d.value),l=d.value.scrollTop,c=d.value.scrollLeft,n("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function w(x,O){at(x)?d.value.scrollTo(x):Vt(x)&&Vt(O)&&d.value.scrollTo(x,O)}const A=x=>{Vt(x)&&(d.value.scrollTop=x)},C=x=>{Vt(x)&&(d.value.scrollLeft=x)},S=()=>{var x;(x=h.value)==null||x.update()};return ze(()=>r.noresize,x=>{x?(o==null||o(),a==null||a()):({stop:o}=li(f,S),a=Ei("resize",S))},{immediate:!0}),ze(()=>[r.maxHeight,r.height],()=>{r.native||ft(()=>{var x;S(),d.value&&((x=h.value)==null||x.handleScroll(d.value))})}),cn(qm,Rn({scrollbarElement:u,wrapElement:d})),J_(()=>{d.value&&(d.value.scrollTop=l,d.value.scrollLeft=c)}),Mt(()=>{r.native||ft(()=>{S()})}),oc(()=>S()),t({wrapRef:d,update:S,scrollTo:w,setScrollTop:A,setScrollLeft:C,handleScroll:_}),(x,O)=>(R(),V("div",{ref_key:"scrollbarRef",ref:u,class:Z(P(s).b())},[G("div",{ref_key:"wrapRef",ref:d,class:Z(P(v)),style:Ze(P(g)),tabindex:x.tabindex,onScroll:_},[(R(),_e(Qt(x.tag),{id:x.id,ref_key:"resizeRef",ref:f,class:Z(P(y)),style:Ze(x.viewStyle),role:x.role,"aria-label":x.ariaLabel,"aria-orientation":x.ariaOrientation},{default:te(()=>[Ie(x.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),x.native?se("v-if",!0):(R(),_e(Rj,{key:0,ref_key:"barRef",ref:h,always:x.always,"min-size":x.minSize},null,8,["always","min-size"]))],2))}}));var Mj=lt(kj,[["__file","scrollbar.vue"]]);const Hm=vn(Mj),Gm=Symbol("popper"),J6=Symbol("popperContent"),Y6=ht({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Fj=Pe(Me(be({},Pe({name:"ElPopper",inheritAttrs:!1})),{props:Y6,setup(e,{expose:t}){const n=e,r=ie(),s=ie(),o=ie(),a=ie(),l=W(()=>n.role),c={triggerRef:r,popperInstanceRef:s,contentRef:o,referenceRef:a,role:l};return t(c),cn(Gm,c),(u,d)=>Ie(u.$slots,"default")}}));var Bj=lt(Fj,[["__file","popper.vue"]]);const X6=ht({arrowOffset:{type:Number,default:5}}),jj=Pe(Me(be({},Pe({name:"ElPopperArrow",inheritAttrs:!1})),{props:X6,setup(e,{expose:t}){const n=e,r=nt("popper"),{arrowOffset:s,arrowRef:o,arrowStyle:a}=et(J6,void 0);return ze(()=>n.arrowOffset,l=>{s.value=l}),hn(()=>{o.value=void 0}),t({arrowRef:o}),(l,c)=>(R(),V("span",{ref_key:"arrowRef",ref:o,class:Z(P(r).e("arrow")),style:Ze(P(a)),"data-popper-arrow":""},null,6))}}));var Uj=lt(jj,[["__file","arrow.vue"]]);const $j=Pe({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var r;const s=et(T6),o=yB((r=s==null?void 0:s.setForwardRef)!=null?r:Ct);return()=>{var a;const l=(a=t.default)==null?void 0:a.call(t,n);if(!l||l.length>1)return null;const c=Z6(l);return c?Dt(Zr(c,n),[[o]]):null}}});function Z6(e){if(!e)return null;const t=e;for(const n of t){if(at(n))switch(n.type){case xn:continue;case Da:case"svg":return Q6(n);case qe:return Z6(n.children);default:return n}return Q6(n)}return null}function Q6(e){const t=nt("only-child");return ne("span",{class:t.e("content")},[e])}const eC=ht({virtualRef:{type:Be(Object)},virtualTriggering:Boolean,onMouseenter:{type:Be(Function)},onMouseleave:{type:Be(Function)},onClick:{type:Be(Function)},onKeydown:{type:Be(Function)},onFocus:{type:Be(Function)},onBlur:{type:Be(Function)},onContextmenu:{type:Be(Function)},id:String,open:Boolean}),Vj=Pe(Me(be({},Pe({name:"ElPopperTrigger",inheritAttrs:!1})),{props:eC,setup(e,{expose:t}){const n=e,{role:r,triggerRef:s}=et(Gm,void 0);bB(s);const o=W(()=>l.value?n.id:void 0),a=W(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=W(()=>{if(r&&r.value!=="tooltip")return r.value}),c=W(()=>l.value?`${n.open}`:void 0);let u;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return Mt(()=>{ze(()=>n.virtualRef,f=>{f&&(s.value=is(f))},{immediate:!0}),ze(s,(f,h)=>{u==null||u(),u=void 0,wr(f)&&(d.forEach(g=>{var v;const y=n[g];y&&(f.addEventListener(g.slice(2).toLowerCase(),y),(v=h==null?void 0:h.removeEventListener)==null||v.call(h,g.slice(2).toLowerCase(),y))}),Vg(f)&&(u=ze([o,a,l,c],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,y)=>{Fo(g[y])?f.removeAttribute(v):f.setAttribute(v,g[y])})},{immediate:!0}))),wr(h)&&Vg(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>h.removeAttribute(g))},{immediate:!0})}),hn(()=>{if(u==null||u(),u=void 0,s.value&&wr(s.value)){const f=s.value;d.forEach(h=>{const g=n[h];g&&f.removeEventListener(h.slice(2).toLowerCase(),g)}),s.value=void 0}}),t({triggerRef:s}),(f,h)=>f.virtualTriggering?se("v-if",!0):(R(),_e(P($j),Ln({key:0},f.$attrs,{"aria-controls":P(o),"aria-describedby":P(a),"aria-expanded":P(c),"aria-haspopup":P(l)}),{default:te(()=>[Ie(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}));var zj=lt(Vj,[["__file","trigger.vue"]]);const Wm="focus-trap.focus-after-trapped",Km="focus-trap.focus-after-released",qj="focus-trap.focusout-prevented",tC={cancelable:!0,bubbles:!1},Hj={cancelable:!0,bubbles:!1},nC="focusAfterTrapped",iC="focusAfterReleased",rC=Symbol("elFocusTrap"),Jm=ie(),df=ie(0),Ym=ie(0);let ff=0;const sC=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},oC=(e,t)=>{for(const n of e)if(!Gj(n,t))return n},Gj=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Wj=e=>{const t=sC(e),n=oC(t,e),r=oC(t.reverse(),e);return[n,r]},Kj=e=>e instanceof HTMLInputElement&&"select"in e,Hs=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Ym.value=window.performance.now(),e!==n&&Kj(e)&&t&&e.select()}};function aC(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const Jj=()=>{let e=[];return{push:r=>{const s=e[0];s&&r!==s&&s.pause(),e=aC(e,r),e.unshift(r)},remove:r=>{var s,o;e=aC(e,r),(o=(s=e[0])==null?void 0:s.resume)==null||o.call(s)}}},Yj=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Hs(r,t),document.activeElement!==n)return},lC=Jj(),Xj=()=>df.value>Ym.value,hf=()=>{Jm.value="pointer",df.value=window.performance.now()},cC=()=>{Jm.value="keyboard",df.value=window.performance.now()},Zj=()=>(Mt(()=>{ff===0&&(document.addEventListener("mousedown",hf),document.addEventListener("touchstart",hf),document.addEventListener("keydown",cC)),ff++}),hn(()=>{ff--,ff<=0&&(document.removeEventListener("mousedown",hf),document.removeEventListener("touchstart",hf),document.removeEventListener("keydown",cC))}),{focusReason:Jm,lastUserFocusTimestamp:df,lastAutomatedFocusTimestamp:Ym}),pf=e=>new CustomEvent(qj,Me(be({},Hj),{detail:e})),Qj=Pe({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[nC,iC,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=ie();let r,s;const{focusReason:o}=Zj();hB(v=>{e.trapped&&!a.paused&&t("release-requested",v)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=v=>{if(!e.loop&&!e.trapped||a.paused)return;const{code:y,altKey:_,ctrlKey:w,metaKey:A,currentTarget:C,shiftKey:S}=v,{loop:x}=e,O=y===$s.tab&&!_&&!w&&!A,N=document.activeElement;if(O&&N){const I=C,[F,D]=Wj(I);if(F&&D){if(!S&&N===D){const q=pf({focusReason:o.value});t("focusout-prevented",q),q.defaultPrevented||(v.preventDefault(),x&&Hs(F,!0))}else if(S&&[F,I].includes(N)){const q=pf({focusReason:o.value});t("focusout-prevented",q),q.defaultPrevented||(v.preventDefault(),x&&Hs(D,!0))}}else if(N===I){const q=pf({focusReason:o.value});t("focusout-prevented",q),q.defaultPrevented||v.preventDefault()}}};cn(rC,{focusTrapRef:n,onKeydown:l}),ze(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),ze([n],([v],[y])=>{v&&(v.addEventListener("keydown",l),v.addEventListener("focusin",d),v.addEventListener("focusout",f)),y&&(y.removeEventListener("keydown",l),y.removeEventListener("focusin",d),y.removeEventListener("focusout",f))});const c=v=>{t(nC,v)},u=v=>t(iC,v),d=v=>{const y=P(n);if(!y)return;const _=v.target,w=v.relatedTarget,A=_&&y.contains(_);e.trapped||w&&y.contains(w)||(r=w),A&&t("focusin",v),!a.paused&&e.trapped&&(A?s=_:Hs(s,!0))},f=v=>{const y=P(n);if(!(a.paused||!y))if(e.trapped){const _=v.relatedTarget;!Fo(_)&&!y.contains(_)&&setTimeout(()=>{if(!a.paused&&e.trapped){const w=pf({focusReason:o.value});t("focusout-prevented",w),w.defaultPrevented||Hs(s,!0)}},0)}else{const _=v.target;_&&y.contains(_)||t("focusout",v)}};function h(){return rt(this,null,function*(){yield ft();const v=P(n);if(v){lC.push(a);const y=v.contains(document.activeElement)?r:document.activeElement;if(r=y,!v.contains(y)){const w=new Event(Wm,tC);v.addEventListener(Wm,c),v.dispatchEvent(w),w.defaultPrevented||ft(()=>{let A=e.focusStartEl;Xe(A)||(Hs(A),document.activeElement!==A&&(A="first")),A==="first"&&Yj(sC(v),!0),(document.activeElement===y||A==="container")&&Hs(v)})}}})}function g(){const v=P(n);if(v){v.removeEventListener(Wm,c);const y=new CustomEvent(Km,Me(be({},tC),{detail:{focusReason:o.value}}));v.addEventListener(Km,u),v.dispatchEvent(y),!y.defaultPrevented&&(o.value=="keyboard"||!Xj()||v.contains(document.activeElement))&&Hs(r!=null?r:document.body),v.removeEventListener(Km,u),lC.remove(a)}}return Mt(()=>{e.trapped&&h(),ze(()=>e.trapped,v=>{v?h():g()})}),hn(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",l),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:l}}});function eU(e,t,n,r,s,o){return Ie(e.$slots,"default",{handleKeydown:e.onKeydown})}var Xm=lt(Qj,[["render",eU],["__file","focus-trap.vue"]]);const tU=["fixed","absolute"],nU=ht({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Be(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ef,default:"bottom"},popperOptions:{type:Be(Object),default:()=>({})},strategy:{type:String,values:tU,default:"absolute"}}),uC=ht(be(Me(be({},nU),{id:String,style:{type:Be([String,Array,Object])},className:{type:Be([String,Array,Object])},effect:{type:Be(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Be([String,Array,Object])},popperStyle:{type:Be([String,Array,Object])},referenceEl:{type:Be(Object)},triggerTargetEl:{type:Be(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number}),qs(["ariaLabel"]))),iU={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},rU=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:s}=e,o=Me(be({placement:n,strategy:r},s),{modifiers:[...oU(e),...t]});return aU(o,s==null?void 0:s.modifiers),o},sU=e=>{if(kt)return is(e)};function oU(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t!=null?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}}]}function aU(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const lU=0,cU=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:s}=et(Gm,void 0),o=ie(),a=ie(),l=W(()=>({name:"eventListeners",enabled:!!e.visible})),c=W(()=>{var w;const A=P(o),C=(w=P(a))!=null?w:lU;return{name:"arrow",enabled:!F3(A),options:{element:A,padding:C}}}),u=W(()=>be({onFirstUpdate:()=>{v()}},rU(e,[P(c),P(l)]))),d=W(()=>sU(e.referenceEl)||P(r)),{attributes:f,state:h,styles:g,update:v,forceUpdate:y,instanceRef:_}=uB(d,n,u);return ze(_,w=>t.value=w),Mt(()=>{ze(()=>{var w;return(w=P(d))==null?void 0:w.getBoundingClientRect()},()=>{v()})}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:_,state:h,styles:g,role:s,forceUpdate:y,update:v}},uU=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:s}=Lm(),o=nt("popper"),a=W(()=>P(t).popper),l=ie(Vt(e.zIndex)?e.zIndex:s()),c=W(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=W(()=>[{zIndex:P(l)},P(n).popper,e.popperStyle||{}]),d=W(()=>r.value==="dialog"?"false":void 0),f=W(()=>P(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:a,contentClass:c,contentStyle:u,contentZIndex:l,updateZIndex:()=>{l.value=Vt(e.zIndex)?e.zIndex:s()}}},dU=(e,t)=>{const n=ie(!1),r=ie();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},fU=Pe(Me(be({},Pe({name:"ElPopperContent"})),{props:uC,emits:iU,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:s,trapped:o,onFocusAfterReleased:a,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:d}=dU(r,n),{attributes:f,arrowRef:h,contentRef:g,styles:v,instanceRef:y,role:_,update:w}=cU(r),{ariaModal:A,arrowStyle:C,contentAttrs:S,contentClass:x,contentStyle:O,updateZIndex:N}=uU(r,{styles:v,attributes:f,role:_}),I=et(zo,void 0),F=ie();cn(J6,{arrowStyle:C,arrowRef:h,arrowOffset:F}),I&&cn(zo,Me(be({},I),{addInputId:Ct,removeInputId:Ct}));let D;const k=(H=!0)=>{w(),H&&N()},q=()=>{k(!1),r.visible&&r.focusOnShow?o.value=!0:r.visible===!1&&(o.value=!1)};return Mt(()=>{ze(()=>r.triggerTargetEl,(H,oe)=>{D==null||D(),D=void 0;const ce=P(H||g.value),U=P(oe||g.value);wr(ce)&&(D=ze([_,()=>r.ariaLabel,A,()=>r.id],Y=>{["role","aria-label","aria-modal","id"].forEach((K,ee)=>{Fo(Y[ee])?ce.removeAttribute(K):ce.setAttribute(K,Y[ee])})},{immediate:!0})),U!==ce&&wr(U)&&["role","aria-label","aria-modal","id"].forEach(Y=>{U.removeAttribute(Y)})},{immediate:!0}),ze(()=>r.visible,q,{immediate:!0})}),hn(()=>{D==null||D(),D=void 0}),t({popperContentRef:g,popperInstanceRef:y,updatePopper:k,contentStyle:O}),(H,oe)=>(R(),V("div",Ln({ref_key:"contentRef",ref:g},P(S),{style:P(O),class:P(x),tabindex:"-1",onMouseenter:ce=>H.$emit("mouseenter",ce),onMouseleave:ce=>H.$emit("mouseleave",ce)}),[ne(P(Xm),{trapped:P(o),"trap-on-focus-in":!0,"focus-trap-el":P(g),"focus-start-el":P(s),onFocusAfterTrapped:P(l),onFocusAfterReleased:P(a),onFocusin:P(c),onFocusoutPrevented:P(u),onReleaseRequested:P(d)},{default:te(()=>[Ie(H.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}}));var hU=lt(fU,[["__file","content.vue"]]);const pU=vn(Bj),Zm=Symbol("elTooltip"),di=ht(be(Me(be(be({},mB),uC),{appendTo:{type:Be([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Be(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),qs(["ariaLabel"]))),Gc=ht(Me(be({},eC),{disabled:Boolean,trigger:{type:Be([String,Array]),default:"hover"},triggerKeys:{type:Be(Array),default:()=>[$s.enter,$s.numpadEnter,$s.space]}})),{useModelToggleProps:gU,useModelToggleEmits:mU,useModelToggle:vU}=t6("visible"),bU=ht(Me(be(be(be(be(be({},Y6),gU),di),Gc),X6),{showArrow:{type:Boolean,default:!0}})),yU=[...mU,"before-show","before-hide","show","hide","open","close"],_U=(e,t)=>De(e)?e.includes(t):e===t,Za=(e,t,n)=>r=>{_U(P(e),t)&&n(r)},wU=Pe(Me(be({},Pe({name:"ElTooltipTrigger"})),{props:Gc,setup(e,{expose:t}){const n=e,r=nt("tooltip"),{controlled:s,id:o,open:a,onOpen:l,onClose:c,onToggle:u}=et(Zm,void 0),d=ie(null),f=()=>{if(P(s)||n.disabled)return!0},h=Ci(n,"trigger"),g=ns(f,Za(h,"hover",l)),v=ns(f,Za(h,"hover",c)),y=ns(f,Za(h,"click",S=>{S.button===0&&u(S)})),_=ns(f,Za(h,"focus",l)),w=ns(f,Za(h,"focus",c)),A=ns(f,Za(h,"contextmenu",S=>{S.preventDefault(),u(S)})),C=ns(f,S=>{const{code:x}=S;n.triggerKeys.includes(x)&&(S.preventDefault(),u(S))});return t({triggerRef:d}),(S,x)=>(R(),_e(P(zj),{id:P(o),"virtual-ref":S.virtualRef,open:P(a),"virtual-triggering":S.virtualTriggering,class:Z(P(r).e("trigger")),onBlur:P(w),onClick:P(y),onContextmenu:P(A),onFocus:P(_),onMouseenter:P(g),onMouseleave:P(v),onKeydown:P(C)},{default:te(()=>[Ie(S.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}));var CU=lt(wU,[["__file","trigger.vue"]]);const SU=ht({to:{type:Be([String,Object]),required:!0},disabled:Boolean});var EU=lt(Pe({__name:"teleport",props:SU,setup(e){return(t,n)=>t.disabled?Ie(t.$slots,"default",{key:0}):(R(),_e(nT,{key:1,to:t.to},[Ie(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const dC=vn(EU),xU=Pe(Me(be({},Pe({name:"ElTooltipContent",inheritAttrs:!1})),{props:di,setup(e,{expose:t}){const n=e,{selector:r}=P6(),s=nt("tooltip"),o=ie(null);let a;const{controlled:l,id:c,open:u,trigger:d,onClose:f,onOpen:h,onShow:g,onHide:v,onBeforeShow:y,onBeforeHide:_}=et(Zm,void 0),w=W(()=>n.transition||`${s.namespace.value}-fade-in-linear`),A=W(()=>n.persistent);hn(()=>{a==null||a()});const C=W(()=>P(A)?!0:P(u)),S=W(()=>n.disabled?!1:P(u)),x=W(()=>n.appendTo||r.value),O=W(()=>{var U;return(U=n.style)!=null?U:{}}),N=ie(!0),I=()=>{v(),N.value=!0},F=()=>{if(P(l))return!0},D=ns(F,()=>{n.enterable&&P(d)==="hover"&&h()}),k=ns(F,()=>{P(d)==="hover"&&f()}),q=()=>{var U,Y;(Y=(U=o.value)==null?void 0:U.updatePopper)==null||Y.call(U),y==null||y()},H=()=>{_==null||_()},oe=()=>{g(),a=tN(W(()=>{var U;return(U=o.value)==null?void 0:U.popperContentRef}),()=>{if(P(l))return;P(d)!=="hover"&&f()})},ce=()=>{n.virtualTriggering||f()};return ze(()=>P(u),U=>{U?N.value=!1:a==null||a()},{flush:"post"}),ze(()=>n.content,()=>{var U,Y;(Y=(U=o.value)==null?void 0:U.updatePopper)==null||Y.call(U)}),t({contentRef:o}),(U,Y)=>(R(),_e(P(dC),{disabled:!U.teleported,to:P(x)},{default:te(()=>[ne(Fs,{name:P(w),onAfterLeave:I,onBeforeEnter:q,onAfterEnter:oe,onBeforeLeave:H},{default:te(()=>[P(C)?Dt((R(),_e(P(hU),Ln({key:0,id:P(c),ref_key:"contentRef",ref:o},U.$attrs,{"aria-label":U.ariaLabel,"aria-hidden":N.value,"boundaries-padding":U.boundariesPadding,"fallback-placements":U.fallbackPlacements,"gpu-acceleration":U.gpuAcceleration,offset:U.offset,placement:U.placement,"popper-options":U.popperOptions,strategy:U.strategy,effect:U.effect,enterable:U.enterable,pure:U.pure,"popper-class":U.popperClass,"popper-style":[U.popperStyle,P(O)],"reference-el":U.referenceEl,"trigger-target-el":U.triggerTargetEl,visible:P(S),"z-index":U.zIndex,onMouseenter:P(D),onMouseleave:P(k),onBlur:ce,onClose:P(f)}),{default:te(()=>[Ie(U.$slots,"default")]),_: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","onClose"])),[[wn,P(S)]]):se("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}}));var AU=lt(xU,[["__file","content.vue"]]);const PU=Pe(Me(be({},Pe({name:"ElTooltip"})),{props:bU,emits:yU,setup(e,{expose:t,emit:n}){const r=e;gB();const s=xr(),o=ie(),a=ie(),l=()=>{var w;const A=P(o);A&&((w=A.popperInstanceRef)==null||w.update())},c=ie(!1),u=ie(),{show:d,hide:f,hasUpdateHandler:h}=vU({indicator:c,toggleReason:u}),{onOpen:g,onClose:v}=vB({showAfter:Ci(r,"showAfter"),hideAfter:Ci(r,"hideAfter"),autoClose:Ci(r,"autoClose"),open:d,close:f}),y=W(()=>pn(r.visible)&&!h.value);cn(Zm,{controlled:y,id:s,open:Ql(c),trigger:Ci(r,"trigger"),onOpen:w=>{g(w)},onClose:w=>{v(w)},onToggle:w=>{P(c)?v(w):g(w)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:l}),ze(()=>r.disabled,w=>{w&&c.value&&(c.value=!1)});const _=w=>{var A,C;const S=(C=(A=a.value)==null?void 0:A.contentRef)==null?void 0:C.popperContentRef,x=(w==null?void 0:w.relatedTarget)||document.activeElement;return S&&S.contains(x)};return Y_(()=>c.value&&f()),t({popperRef:o,contentRef:a,isFocusInsideContent:_,updatePopper:l,onOpen:g,onClose:v,hide:f}),(w,A)=>(R(),_e(P(pU),{ref_key:"popperRef",ref:o,role:w.role},{default:te(()=>[ne(CU,{disabled:w.disabled,trigger:w.trigger,"trigger-keys":w.triggerKeys,"virtual-ref":w.virtualRef,"virtual-triggering":w.virtualTriggering},{default:te(()=>[w.$slots.default?Ie(w.$slots,"default",{key:0}):se("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ne(AU,{ref_key:"contentRef",ref:a,"aria-label":w.ariaLabel,"boundaries-padding":w.boundariesPadding,content:w.content,disabled:w.disabled,effect:w.effect,enterable:w.enterable,"fallback-placements":w.fallbackPlacements,"hide-after":w.hideAfter,"gpu-acceleration":w.gpuAcceleration,offset:w.offset,persistent:w.persistent,"popper-class":w.popperClass,"popper-style":w.popperStyle,placement:w.placement,"popper-options":w.popperOptions,pure:w.pure,"raw-content":w.rawContent,"reference-el":w.referenceEl,"trigger-target-el":w.triggerTargetEl,"show-after":w.showAfter,strategy:w.strategy,teleported:w.teleported,transition:w.transition,"virtual-triggering":w.virtualTriggering,"z-index":w.zIndex,"append-to":w.appendTo},{default:te(()=>[Ie(w.$slots,"content",{},()=>[w.rawContent?(R(),V("span",{key:0,innerHTML:w.content},null,8,["innerHTML"])):(R(),V("span",{key:1},Ne(w.content),1))]),w.showArrow?(R(),_e(P(Uj),{key:0,"arrow-offset":w.arrowOffset},null,8,["arrow-offset"])):se("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 TU=lt(PU,[["__file","tooltip.vue"]]);const fi=vn(TU),OU=ht({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:Be([String,Object,Array])},offset:{type:Be(Array),default:[0,0]},badgeClass:{type:String}}),NU=Pe(Me(be({},Pe({name:"ElBadge"})),{props:OU,setup(e,{expose:t}){const n=e,r=nt("badge"),s=W(()=>n.isDot?"":Vt(n.value)&&Vt(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),o=W(()=>{var a,l,c,u,d;return[{backgroundColor:n.color,marginRight:nr(-((l=(a=n.offset)==null?void 0:a[0])!=null?l:0)),marginTop:nr((u=(c=n.offset)==null?void 0:c[1])!=null?u:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:s}),(a,l)=>(R(),V("div",{class:Z(P(r).b())},[Ie(a.$slots,"default"),ne(Fs,{name:`${P(r).namespace.value}-zoom-in-center`,persisted:""},{default:te(()=>[Dt(G("sup",{class:Z([P(r).e("content"),P(r).em("content",a.type),P(r).is("fixed",!!a.$slots.default),P(r).is("dot",a.isDot),P(r).is("hide-zero",!a.showZero&&n.value===0),a.badgeClass]),style:Ze(P(o)),textContent:Ne(P(s))},null,14,["textContent"]),[[wn,!a.hidden&&(P(s)||a.isDot)]])]),_:1},8,["name"])],2))}}));var IU=lt(NU,[["__file","badge.vue"]]);const RU=vn(IU),fC=Symbol("buttonGroupContextKey"),DU=(e,t)=>{$a({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},W(()=>e.type==="text"));const n=et(fC,void 0),r=af("button"),{form:s}=qo(),o=Pr(W(()=>n==null?void 0:n.size)),a=cs(),l=ie(),c=Ia(),u=W(()=>e.type||(n==null?void 0:n.type)||""),d=W(()=>{var v,y,_;return(_=(y=e.autoInsertSpace)!=null?y:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?_:!1}),f=W(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=W(()=>{var v;const y=(v=c.default)==null?void 0:v.call(c);if(d.value&&(y==null?void 0:y.length)===1){const _=y[0];if((_==null?void 0:_.type)===Da){const w=_.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(w.trim())}}return!1});return{_disabled:a,_size:o,_type:u,_ref:l,_props:f,shouldAddSpace:h,handleClick:v=>{if(a.value||e.loading){v.stopPropagation();return}e.nativeType==="reset"&&(s==null||s.resetFields()),t("click",v)}}},Qm=ht({size:zs,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:os},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:os,default:()=>Ua},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Be([String,Object]),default:"button"}}),LU={click:e=>e instanceof MouseEvent};function Pn(e,t){kU(e)&&(e="100%");var n=MU(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 gf(e){return Math.min(1,Math.max(0,e))}function kU(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function MU(e){return typeof e=="string"&&e.indexOf("%")!==-1}function hC(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mf(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Wo(e){return e.length===1?"0"+e:String(e)}function FU(e,t,n){return{r:Pn(e,255)*255,g:Pn(t,255)*255,b:Pn(n,255)*255}}function pC(e,t,n){e=Pn(e,255),t=Pn(t,255),n=Pn(n,255);var r=Math.max(e,t,n),s=Math.min(e,t,n),o=0,a=0,l=(r+s)/2;if(r===s)a=0,o=0;else{var c=r-s;switch(a=l>.5?c/(2-r-s):c/(r+s),r){case e:o=(t-n)/c+(t<n?6:0);break;case t:o=(n-e)/c+2;break;case n:o=(e-t)/c+4;break}o/=6}return{h:o,s:a,l}}function e0(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 BU(e,t,n){var r,s,o;if(e=Pn(e,360),t=Pn(t,100),n=Pn(n,100),t===0)s=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=e0(l,a,e+1/3),s=e0(l,a,e),o=e0(l,a,e-1/3)}return{r:r*255,g:s*255,b:o*255}}function gC(e,t,n){e=Pn(e,255),t=Pn(t,255),n=Pn(n,255);var r=Math.max(e,t,n),s=Math.min(e,t,n),o=0,a=r,l=r-s,c=r===0?0:l/r;if(r===s)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:c,v:a}}function jU(e,t,n){e=Pn(e,360)*6,t=Pn(t,100),n=Pn(n,100);var r=Math.floor(e),s=e-r,o=n*(1-t),a=n*(1-s*t),l=n*(1-(1-s)*t),c=r%6,u=[n,a,o,o,l,n][c],d=[l,n,n,a,o,o][c],f=[o,o,l,n,n,a][c];return{r:u*255,g:d*255,b:f*255}}function mC(e,t,n,r){var s=[Wo(Math.round(e).toString(16)),Wo(Math.round(t).toString(16)),Wo(Math.round(n).toString(16))];return r&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function UU(e,t,n,r,s){var o=[Wo(Math.round(e).toString(16)),Wo(Math.round(t).toString(16)),Wo(Math.round(n).toString(16)),Wo($U(r))];return s&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function $U(e){return Math.round(parseFloat(e)*255).toString(16)}function vC(e){return hi(e)/255}function hi(e){return parseInt(e,16)}function VU(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var t0={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 zU(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,o=null,a=!1,l=!1;return typeof e=="string"&&(e=GU(e)),typeof e=="object"&&(us(e.r)&&us(e.g)&&us(e.b)?(t=FU(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):us(e.h)&&us(e.s)&&us(e.v)?(r=mf(e.s),s=mf(e.v),t=jU(e.h,r,s),a=!0,l="hsv"):us(e.h)&&us(e.s)&&us(e.l)&&(r=mf(e.s),o=mf(e.l),t=BU(e.h,r,o),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=hC(n),{ok:a,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 qU="[-\\+]?\\d+%?",HU="[-\\+]?\\d*\\.\\d+%?",Gs="(?:".concat(HU,")|(?:").concat(qU,")"),n0="[\\s|\\(]+(".concat(Gs,")[,|\\s]+(").concat(Gs,")[,|\\s]+(").concat(Gs,")\\s*\\)?"),i0="[\\s|\\(]+(".concat(Gs,")[,|\\s]+(").concat(Gs,")[,|\\s]+(").concat(Gs,")[,|\\s]+(").concat(Gs,")\\s*\\)?"),sr={CSS_UNIT:new RegExp(Gs),rgb:new RegExp("rgb"+n0),rgba:new RegExp("rgba"+i0),hsl:new RegExp("hsl"+n0),hsla:new RegExp("hsla"+i0),hsv:new RegExp("hsv"+n0),hsva:new RegExp("hsva"+i0),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 GU(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(t0[e])e=t0[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=sr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=sr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=sr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=sr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=sr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=sr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=sr.hex8.exec(e),n?{r:hi(n[1]),g:hi(n[2]),b:hi(n[3]),a:vC(n[4]),format:t?"name":"hex8"}:(n=sr.hex6.exec(e),n?{r:hi(n[1]),g:hi(n[2]),b:hi(n[3]),format:t?"name":"hex"}:(n=sr.hex4.exec(e),n?{r:hi(n[1]+n[1]),g:hi(n[2]+n[2]),b:hi(n[3]+n[3]),a:vC(n[4]+n[4]),format:t?"name":"hex8"}:(n=sr.hex3.exec(e),n?{r:hi(n[1]+n[1]),g:hi(n[2]+n[2]),b:hi(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function us(e){return!!sr.CSS_UNIT.exec(String(e))}var WU=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=VU(t)),this.originalInput=t;var s=zU(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:s.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=s.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,s,o=t.r/255,a=t.g/255,l=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?s=l/12.92:s=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=hC(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=gC(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=gC(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(s,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=pC(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=pC(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(s,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),mC(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),UU(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(Pn(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(Pn(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="#"+mC(this.r,this.g,this.b,!1),n=0,r=Object.entries(t0);n<r.length;n++){var s=r[n],o=s[0],a=s[1];if(t===a)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t!=null?t:this.format;var r=!1,s=this.a<1&&this.a>=0,o=!n&&s&&(t.startsWith("hex")||t==="name");return o?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=gf(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=gf(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=gf(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=gf(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(),s=new e(t).toRgb(),o=n/100,a={r:(s.r-r.r)*o+r.r,g:(s.g-r.g)*o+r.g,b:(s.b-r.b)*o+r.b,a:(s.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),s=360/n,o=[this];for(r.h=(r.h-(s*t>>1)+720)%360;--t;)r.h=(r.h+s)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,s=n.s,o=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s,v:o})),o=(o+l)%1;return a},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(),s=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/s,g:(n.g*n.a+r.g*r.a*(1-n.a))/s,b:(n.b*n.a+r.b*r.a*(1-n.a))/s,a:s})},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,s=[this],o=360/t,a=1;a<t;a++)s.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return s},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ws(e,t=20){return e.mix("#141414",t).toString()}function KU(e){const t=cs(),n=nt("button");return W(()=>{let r={},s=e.color;if(s){const o=s.match(/var\((.*?)\)/);o&&(s=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const a=new WU(s),l=e.dark?a.tint(20).toString():Ws(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Ws(a,90):a.tint(90).toString(),"text-color":s,"border-color":e.dark?Ws(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":l,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Ws(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Ws(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Ws(a,80):a.tint(80).toString());else{const c=e.dark?Ws(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":s,"text-color":u,"border-color":s,"hover-bg-color":c,"hover-text-color":u,"hover-border-color":c,"active-bg-color":l,"active-border-color":l}),t.value){const d=e.dark?Ws(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=d,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")]=d}}}return r})}const JU=Pe(Me(be({},Pe({name:"ElButton"})),{props:Qm,emits:LU,setup(e,{expose:t,emit:n}){const r=e,s=KU(r),o=nt("button"),{_ref:a,_size:l,_type:c,_disabled:u,_props:d,shouldAddSpace:f,handleClick:h}=DU(r,n),g=W(()=>[o.b(),o.m(c.value),o.m(l.value),o.is("disabled",u.value),o.is("loading",r.loading),o.is("plain",r.plain),o.is("round",r.round),o.is("circle",r.circle),o.is("text",r.text),o.is("link",r.link),o.is("has-bg",r.bg)]);return t({ref:a,size:l,type:c,disabled:u,shouldAddSpace:f}),(v,y)=>(R(),_e(Qt(v.tag),Ln({ref_key:"_ref",ref:a},P(d),{class:P(g),style:P(s),onClick:P(h)}),{default:te(()=>[v.loading?(R(),V(qe,{key:0},[v.$slots.loading?Ie(v.$slots,"loading",{key:0}):(R(),_e(P(jt),{key:1,class:Z(P(o).is("loading"))},{default:te(()=>[(R(),_e(Qt(v.loadingIcon)))]),_:1},8,["class"]))],64)):v.icon||v.$slots.icon?(R(),_e(P(jt),{key:1},{default:te(()=>[v.icon?(R(),_e(Qt(v.icon),{key:0})):Ie(v.$slots,"icon",{key:1})]),_:3})):se("v-if",!0),v.$slots.default?(R(),V("span",{key:2,class:Z({[P(o).em("text","expand")]:P(f)})},[Ie(v.$slots,"default")],2)):se("v-if",!0)]),_:3},16,["class","style","onClick"]))}}));var YU=lt(JU,[["__file","button.vue"]]);const XU={size:Qm.size,type:Qm.type},ZU=Pe(Me(be({},Pe({name:"ElButtonGroup"})),{props:XU,setup(e){const t=e;cn(fC,Rn({size:Ci(t,"size"),type:Ci(t,"type")}));const n=nt("button");return(r,s)=>(R(),V("div",{class:Z(P(n).b("group"))},[Ie(r.$slots,"default")],2))}}));var bC=lt(ZU,[["__file","button-group.vue"]]);const Ko=vn(YU,{ButtonGroup:bC});as(bC);var Ks=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function yC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const Js=new Map;if(kt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Js.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function _C(e,t){let n=[];return De(t.arg)?n=t.arg:wr(t.arg)&&n.push(t.arg),function(r,s){const o=t.instance.popperRef,a=r.target,l=s==null?void 0:s.target,c=!t||!t.instance,u=!a||!l,d=e.contains(a)||e.contains(l),f=e===a,h=n.length&&n.some(v=>v==null?void 0:v.contains(a))||n.length&&n.includes(l),g=o&&(o.contains(a)||o.contains(l));c||u||d||f||h||g||t.value(r,s)}}const wC={beforeMount(e,t){Js.has(e)||Js.set(e,[]),Js.get(e).push({documentHandler:_C(e,t),bindingFn:t.value})},updated(e,t){Js.has(e)||Js.set(e,[]);const n=Js.get(e),r=n.findIndex(o=>o.bindingFn===t.oldValue),s={documentHandler:_C(e,t),bindingFn:t.value};r>=0?n.splice(r,1,s):n.push(s)},unmounted(e){Js.delete(e)}},r0="_trap-focus-children",Jo=[],CC=e=>{if(Jo.length===0)return;const t=Jo[Jo.length-1][r0];if(t.length>0&&e.code===$s.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],s=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),s&&!n&&(e.preventDefault(),t[0].focus())}},QU={beforeMount(e){e[r0]=vw(e),Jo.push(e),Jo.length<=1&&document.addEventListener("keydown",CC)},updated(e){ft(()=>{e[r0]=vw(e)})},unmounted(){Jo.shift(),Jo.length===0&&document.removeEventListener("keydown",CC)}};var SC=!1,Yo,s0,o0,vf,bf,EC,yf,a0,l0,c0,xC,u0,d0,AC,PC;function ri(){if(!SC){SC=!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(u0=/\b(iPhone|iP[ao]d)/.exec(e),d0=/\b(iP[ao]d)/.exec(e),c0=/Android/i.exec(e),AC=/FBAN\/\w+;/i.exec(e),PC=/Mobile/i.exec(e),xC=!!/Win64/.exec(e),t){Yo=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Yo&&document&&document.documentMode&&(Yo=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);EC=r?parseFloat(r[1])+4:Yo,s0=t[2]?parseFloat(t[2]):NaN,o0=t[3]?parseFloat(t[3]):NaN,vf=t[4]?parseFloat(t[4]):NaN,vf?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),bf=t&&t[1]?parseFloat(t[1]):NaN):bf=NaN}else Yo=s0=o0=bf=vf=NaN;if(n){if(n[1]){var s=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);yf=s?parseFloat(s[1].replace("_",".")):!0}else yf=!1;a0=!!n[2],l0=!!n[3]}else yf=a0=l0=!1}}var f0={ie:function(){return ri()||Yo},ieCompatibilityMode:function(){return ri()||EC>Yo},ie64:function(){return f0.ie()&&xC},firefox:function(){return ri()||s0},opera:function(){return ri()||o0},webkit:function(){return ri()||vf},safari:function(){return f0.webkit()},chrome:function(){return ri()||bf},windows:function(){return ri()||a0},osx:function(){return ri()||yf},linux:function(){return ri()||l0},iphone:function(){return ri()||u0},mobile:function(){return ri()||u0||d0||c0||PC},nativeApp:function(){return ri()||AC},android:function(){return ri()||c0},ipad:function(){return ri()||d0}},e$=f0,_f=!!(typeof window<"u"&&window.document&&window.document.createElement),t$={canUseDOM:_f,canUseWorkers:typeof Worker<"u",canUseEventListeners:_f&&!!(window.addEventListener||window.attachEvent),canUseViewport:_f&&!!window.screen,isInWorker:!_f},TC=t$,OC;TC.canUseDOM&&(OC=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function n$(e,t){if(!TC.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var s=document.createElement("div");s.setAttribute(n,"return;"),r=typeof s[n]=="function"}return!r&&OC&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var i$=n$,NC=10,IC=40,RC=800;function DC(e){var t=0,n=0,r=0,s=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*NC,s=n*NC,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||s)&&e.deltaMode&&(e.deltaMode==1?(r*=IC,s*=IC):(r*=RC,s*=RC)),r&&!t&&(t=r<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:s}}DC.getEventType=function(){return e$.firefox()?"DOMMouseScroll":i$("wheel")?"wheel":"mousewheel"};var r$=DC;/**
|
|
40
|
-
* Checks if an event is supported in the current execution environment.
|
|
41
|
-
*
|
|
42
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
43
|
-
* `reset`, `load`, `error`, and `select`.
|
|
44
|
-
*
|
|
45
|
-
* Borrows from Modernizr.
|
|
46
|
-
*
|
|
47
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
48
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
|
49
|
-
* @return {boolean} True if the event is supported.
|
|
50
|
-
* @internal
|
|
51
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
52
|
-
*/const s$=function(e,t){if(e&&e.addEventListener){const n=function(r){const s=r$(r);t&&Reflect.apply(t,this,[r,s])};e.addEventListener("wheel",n,{passive:!0})}},o$={beforeMount(e,t){s$(e,t.value)}},LC=be({modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:zs,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},qs(["ariaControls"])),kC={[Cn]:e=>Xe(e)||Vt(e)||pn(e),change:e=>Xe(e)||Vt(e)||pn(e)},Qa=Symbol("checkboxGroupContextKey"),a$=({model:e,isChecked:t})=>{const n=et(Qa,void 0),r=W(()=>{var o,a;const l=(o=n==null?void 0:n.max)==null?void 0:o.value,c=(a=n==null?void 0:n.min)==null?void 0:a.value;return!ci(l)&&e.value.length>=l&&!t.value||!ci(c)&&e.value.length<=c&&t.value});return{isDisabled:cs(W(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},l$=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:s,isLabeledByFormItem:o})=>{const a=et(Qa,void 0),{formItem:l}=qo(),{emit:c}=xt();function u(v){var y,_,w,A;return[!0,e.trueValue,e.trueLabel].includes(v)?(_=(y=e.trueValue)!=null?y:e.trueLabel)!=null?_:!0:(A=(w=e.falseValue)!=null?w:e.falseLabel)!=null?A:!1}function d(v,y){c("change",u(v),y)}function f(v){if(n.value)return;const y=v.target;c("change",u(y.checked),v)}function h(v){return rt(this,null,function*(){n.value||!r.value&&!s.value&&o.value&&(v.composedPath().some(w=>w.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),yield ft(),d(t.value,v)))})}const g=W(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return ze(()=>e.modelValue,()=>{g.value&&(l==null||l.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:h}},c$=e=>{const t=ie(!1),{emit:n}=xt(),r=et(Qa,void 0),s=W(()=>ci(r)===!1),o=ie(!1),a=W({get(){var l,c;return s.value?(l=r==null?void 0:r.modelValue)==null?void 0:l.value:(c=e.modelValue)!=null?c:t.value},set(l){var c,u;s.value&&De(l)?(o.value=((c=r==null?void 0:r.max)==null?void 0:c.value)!==void 0&&l.length>(r==null?void 0:r.max.value)&&l.length>a.value.length,o.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,l))):(n(Cn,l),t.value=l)}});return{model:a,isGroup:s,isLimitExceeded:o}},u$=(e,t,{model:n})=>{const r=et(Qa,void 0),s=ie(!1),o=W(()=>Nc(e.value)?e.label:e.value),a=W(()=>{const d=n.value;return pn(d)?d:De(d)?at(o.value)?d.map(it).some(f=>Mo(f,o.value)):d.map(it).includes(o.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),l=Pr(W(()=>{var d;return(d=r==null?void 0:r.size)==null?void 0:d.value}),{prop:!0}),c=Pr(W(()=>{var d;return(d=r==null?void 0:r.size)==null?void 0:d.value})),u=W(()=>!!t.default||!Nc(o.value));return{checkboxButtonSize:l,isChecked:a,isFocused:s,checkboxSize:c,hasOwnLabel:u,actualValue:o}},MC=(e,t)=>{const{formItem:n}=qo(),{model:r,isGroup:s,isLimitExceeded:o}=c$(e),{isFocused:a,isChecked:l,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,actualValue:f}=u$(e,t,{model:r}),{isDisabled:h}=a$({model:r,isChecked:l}),{inputId:g,isLabeledByFormItem:v}=$c(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:s}),{handleChange:y,onClickRoot:_}=l$(e,{model:r,isLimitExceeded:o,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:v});return(()=>{function A(){var C,S;De(r.value)&&!r.value.includes(f.value)?r.value.push(f.value):r.value=(S=(C=e.trueValue)!=null?C:e.trueLabel)!=null?S:!0}e.checked&&A()})(),$a({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},W(()=>s.value&&Nc(e.value))),$a({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},W(()=>!!e.trueLabel)),$a({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},W(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:v,isChecked:l,isDisabled:h,isFocused:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,model:r,actualValue:f,handleChange:y,onClickRoot:_}},d$=Pe(Me(be({},Pe({name:"ElCheckbox"})),{props:LC,emits:kC,setup(e){const t=e,n=Ia(),{inputId:r,isLabeledByFormItem:s,isChecked:o,isDisabled:a,isFocused:l,checkboxSize:c,hasOwnLabel:u,model:d,actualValue:f,handleChange:h,onClickRoot:g}=MC(t,n),v=nt("checkbox"),y=W(()=>[v.b(),v.m(c.value),v.is("disabled",a.value),v.is("bordered",t.border),v.is("checked",o.value)]),_=W(()=>[v.e("input"),v.is("disabled",a.value),v.is("checked",o.value),v.is("indeterminate",t.indeterminate),v.is("focus",l.value)]);return(w,A)=>(R(),_e(Qt(!P(u)&&P(s)?"span":"label"),{class:Z(P(y)),"aria-controls":w.indeterminate?w.ariaControls:null,onClick:P(g)},{default:te(()=>{var C,S,x,O;return[G("span",{class:Z(P(_))},[w.trueValue||w.falseValue||w.trueLabel||w.falseLabel?Dt((R(),V("input",{key:0,id:P(r),"onUpdate:modelValue":N=>Bt(d)?d.value=N:null,class:Z(P(v).e("original")),type:"checkbox",indeterminate:w.indeterminate,name:w.name,tabindex:w.tabindex,disabled:P(a),"true-value":(S=(C=w.trueValue)!=null?C:w.trueLabel)!=null?S:!0,"false-value":(O=(x=w.falseValue)!=null?x:w.falseLabel)!=null?O:!1,onChange:P(h),onFocus:N=>l.value=!0,onBlur:N=>l.value=!1,onClick:mt(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Dd,P(d)]]):Dt((R(),V("input",{key:1,id:P(r),"onUpdate:modelValue":N=>Bt(d)?d.value=N:null,class:Z(P(v).e("original")),type:"checkbox",indeterminate:w.indeterminate,disabled:P(a),value:P(f),name:w.name,tabindex:w.tabindex,onChange:P(h),onFocus:N=>l.value=!0,onBlur:N=>l.value=!1,onClick:mt(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[Dd,P(d)]]),G("span",{class:Z(P(v).e("inner"))},null,2)],2),P(u)?(R(),V("span",{key:0,class:Z(P(v).e("label"))},[Ie(w.$slots,"default"),w.$slots.default?se("v-if",!0):(R(),V(qe,{key:0},[Je(Ne(w.label),1)],64))],2)):se("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}}));var f$=lt(d$,[["__file","checkbox.vue"]]);const h$=Pe(Me(be({},Pe({name:"ElCheckboxButton"})),{props:LC,emits:kC,setup(e){const t=e,n=Ia(),{isFocused:r,isChecked:s,isDisabled:o,checkboxButtonSize:a,model:l,actualValue:c,handleChange:u}=MC(t,n),d=et(Qa,void 0),f=nt("checkbox"),h=W(()=>{var v,y,_,w;const A=(y=(v=d==null?void 0:d.fill)==null?void 0:v.value)!=null?y:"";return{backgroundColor:A,borderColor:A,color:(w=(_=d==null?void 0:d.textColor)==null?void 0:_.value)!=null?w:"",boxShadow:A?`-1px 0 0 0 ${A}`:void 0}}),g=W(()=>[f.b("button"),f.bm("button",a.value),f.is("disabled",o.value),f.is("checked",s.value),f.is("focus",r.value)]);return(v,y)=>{var _,w,A,C;return R(),V("label",{class:Z(P(g))},[v.trueValue||v.falseValue||v.trueLabel||v.falseLabel?Dt((R(),V("input",{key:0,"onUpdate:modelValue":S=>Bt(l)?l.value=S:null,class:Z(P(f).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:P(o),"true-value":(w=(_=v.trueValue)!=null?_:v.trueLabel)!=null?w:!0,"false-value":(C=(A=v.falseValue)!=null?A:v.falseLabel)!=null?C:!1,onChange:P(u),onFocus:S=>r.value=!0,onBlur:S=>r.value=!1,onClick:mt(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Dd,P(l)]]):Dt((R(),V("input",{key:1,"onUpdate:modelValue":S=>Bt(l)?l.value=S:null,class:Z(P(f).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:P(o),value:P(c),onChange:P(u),onFocus:S=>r.value=!0,onBlur:S=>r.value=!1,onClick:mt(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[Dd,P(l)]]),v.$slots.default||v.label?(R(),V("span",{key:2,class:Z(P(f).be("button","inner")),style:Ze(P(s)?P(h):void 0)},[Ie(v.$slots,"default",{},()=>[Je(Ne(v.label),1)])],6)):se("v-if",!0)],2)}}}));var FC=lt(h$,[["__file","checkbox-button.vue"]]);const p$=ht(be({modelValue:{type:Be(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:zs,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}},qs(["ariaLabel"]))),g$={[Cn]:e=>De(e),change:e=>De(e)},m$=Pe(Me(be({},Pe({name:"ElCheckboxGroup"})),{props:p$,emits:g$,setup(e,{emit:t}){const n=e,r=nt("checkbox"),{formItem:s}=qo(),{inputId:o,isLabeledByFormItem:a}=$c(n,{formItemContext:s}),l=u=>rt(this,null,function*(){t(Cn,u),yield ft(),t("change",u)}),c=W({get(){return n.modelValue},set(u){l(u)}});return cn(Qa,Me(be({},U3(mr(n),["size","min","max","disabled","validateEvent","fill","textColor"])),{modelValue:c,changeEvent:l})),ze(()=>n.modelValue,()=>{n.validateEvent&&(s==null||s.validate("change").catch(u=>void 0))}),(u,d)=>{var f;return R(),_e(Qt(u.tag),{id:P(o),class:Z(P(r).b("group")),role:"group","aria-label":P(a)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":P(a)?(f=P(s))==null?void 0:f.labelId:void 0},{default:te(()=>[Ie(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}));var BC=lt(m$,[["__file","checkbox-group.vue"]]);const el=vn(f$,{CheckboxButton:FC,CheckboxGroup:BC});as(FC),as(BC);const jC=ht({modelValue:{type:[String,Number,Boolean],default:void 0},size:zs,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),v$=ht(Me(be({},jC),{border:Boolean})),UC={[Cn]:e=>Xe(e)||Vt(e)||pn(e),[Cm]:e=>Xe(e)||Vt(e)||pn(e)},$C=Symbol("radioGroupKey"),VC=(e,t)=>{const n=ie(),r=et($C,void 0),s=W(()=>!!r),o=W(()=>Nc(e.value)?e.label:e.value),a=W({get(){return s.value?r.modelValue:e.modelValue},set(f){s.value?r.changeEvent(f):t&&t(Cn,f),n.value.checked=e.modelValue===o.value}}),l=Pr(W(()=>r==null?void 0:r.size)),c=cs(W(()=>r==null?void 0:r.disabled)),u=ie(!1),d=W(()=>c.value||s.value&&a.value!==o.value?-1:0);return $a({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},W(()=>s.value&&Nc(e.value))),{radioRef:n,isGroup:s,radioGroup:r,focus:u,size:l,disabled:c,tabIndex:d,modelValue:a,actualValue:o}},b$=Pe(Me(be({},Pe({name:"ElRadio"})),{props:v$,emits:UC,setup(e,{emit:t}){const n=e,r=nt("radio"),{radioRef:s,radioGroup:o,focus:a,size:l,disabled:c,modelValue:u,actualValue:d}=VC(n,t);function f(){ft(()=>t("change",u.value))}return(h,g)=>{var v;return R(),V("label",{class:Z([P(r).b(),P(r).is("disabled",P(c)),P(r).is("focus",P(a)),P(r).is("bordered",h.border),P(r).is("checked",P(u)===P(d)),P(r).m(P(l))])},[G("span",{class:Z([P(r).e("input"),P(r).is("disabled",P(c)),P(r).is("checked",P(u)===P(d))])},[Dt(G("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":y=>Bt(u)?u.value=y:null,class:Z(P(r).e("original")),value:P(d),name:h.name||((v=P(o))==null?void 0:v.name),disabled:P(c),checked:P(u)===P(d),type:"radio",onFocus:y=>a.value=!0,onBlur:y=>a.value=!1,onChange:f,onClick:mt(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[fw,P(u)]]),G("span",{class:Z(P(r).e("inner"))},null,2)],2),G("span",{class:Z(P(r).e("label")),onKeydown:mt(()=>{},["stop"])},[Ie(h.$slots,"default",{},()=>[Je(Ne(h.label),1)])],42,["onKeydown"])],2)}}}));var y$=lt(b$,[["__file","radio.vue"]]);const _$=ht(be({},jC)),w$=Pe(Me(be({},Pe({name:"ElRadioButton"})),{props:_$,setup(e){const t=e,n=nt("radio"),{radioRef:r,focus:s,size:o,disabled:a,modelValue:l,radioGroup:c,actualValue:u}=VC(t),d=W(()=>({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,h)=>{var g;return R(),V("label",{class:Z([P(n).b("button"),P(n).is("active",P(l)===P(u)),P(n).is("disabled",P(a)),P(n).is("focus",P(s)),P(n).bm("button",P(o))])},[Dt(G("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":v=>Bt(l)?l.value=v:null,class:Z(P(n).be("button","original-radio")),value:P(u),type:"radio",name:f.name||((g=P(c))==null?void 0:g.name),disabled:P(a),onFocus:v=>s.value=!0,onBlur:v=>s.value=!1,onClick:mt(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[fw,P(l)]]),G("span",{class:Z(P(n).be("button","inner")),style:Ze(P(l)===P(u)?P(d):{}),onKeydown:mt(()=>{},["stop"])},[Ie(f.$slots,"default",{},()=>[Je(Ne(f.label),1)])],46,["onKeydown"])],2)}}}));var zC=lt(w$,[["__file","radio-button.vue"]]);const C$=ht(be({id:{type:String,default:void 0},size:zs,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}},qs(["ariaLabel"]))),S$=UC,E$=Pe(Me(be({},Pe({name:"ElRadioGroup"})),{props:C$,emits:S$,setup(e,{emit:t}){const n=e,r=nt("radio"),s=xr(),o=ie(),{formItem:a}=qo(),{inputId:l,isLabeledByFormItem:c}=$c(n,{formItemContext:a}),u=f=>{t(Cn,f),ft(()=>t("change",f))};Mt(()=>{const f=o.value.querySelectorAll("[type=radio]"),h=f[0];!Array.from(f).some(g=>g.checked)&&h&&(h.tabIndex=0)});const d=W(()=>n.name||s.value);return cn($C,Rn(Me(be({},mr(n)),{changeEvent:u,name:d}))),ze(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(f=>void 0))}),(f,h)=>(R(),V("div",{id:P(l),ref_key:"radioGroupRef",ref:o,class:Z(P(r).b("group")),role:"radiogroup","aria-label":P(c)?void 0:f.ariaLabel||"radio-group","aria-labelledby":P(c)?P(a).labelId:void 0},[Ie(f.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}}));var qC=lt(E$,[["__file","radio-group.vue"]]);const x$=vn(y$,{RadioButton:zC,RadioGroup:qC});as(qC),as(zC);const h0=ht({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Ic},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),A$={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},P$=Pe(Me(be({},Pe({name:"ElTag"})),{props:h0,emits:A$,setup(e,{emit:t}){const n=e,r=Pr(),s=nt("tag"),o=W(()=>{const{type:u,hit:d,effect:f,closable:h,round:g}=n;return[s.b(),s.is("closable",h),s.m(u||"primary"),s.m(r.value),s.m(f),s.is("hit",d),s.is("round",g)]}),a=u=>{t("close",u)},l=u=>{t("click",u)},c=u=>{u.component.subTree.component.bum=null};return(u,d)=>u.disableTransitions?(R(),V("span",{key:0,class:Z(P(o)),style:Ze({backgroundColor:u.color}),onClick:l},[G("span",{class:Z(P(s).e("content"))},[Ie(u.$slots,"default")],2),u.closable?(R(),_e(P(jt),{key:0,class:Z(P(s).e("close")),onClick:mt(a,["stop"])},{default:te(()=>[ne(P(ja))]),_:1},8,["class","onClick"])):se("v-if",!0)],6)):(R(),_e(Fs,{key:1,name:`${P(s).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:c},{default:te(()=>[G("span",{class:Z(P(o)),style:Ze({backgroundColor:u.color}),onClick:l},[G("span",{class:Z(P(s).e("content"))},[Ie(u.$slots,"default")],2),u.closable?(R(),_e(P(jt),{key:0,class:Z(P(s).e("close")),onClick:mt(a,["stop"])},{default:te(()=>[ne(P(ja))]),_:1},8,["class","onClick"])):se("v-if",!0)],6)]),_:3},8,["name"]))}}));var T$=lt(P$,[["__file","tag.vue"]]);const Wc=vn(T$),O$=ht({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:Be([String,Array,Object])},zIndex:{type:Be([String,Number])}}),N$={click:e=>e instanceof MouseEvent},I$="overlay";var R$=Pe({name:"ElOverlay",props:O$,emits:N$,setup(e,{slots:t,emit:n}){const r=nt(I$),s=c=>{n("click",c)},{onClick:o,onMousedown:a,onMouseup:l}=Dm(e.customMaskEvent?void 0:s);return()=>e.mask?ne("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:a,onMouseup:l},[Ie(t,"default")],Qd.STYLE|Qd.CLASS|Qd.PROPS,["onClick","onMouseup","onMousedown"]):ut("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ie(t,"default")])}});const HC=R$,GC=Symbol("dialogInjectionKey"),WC=ht({center:Boolean,alignCenter:Boolean,closeIcon:{type:os},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),D$={close:()=>!0},L$=Pe(Me(be({},Pe({name:"ElDialogContent"})),{props:WC,emits:D$,setup(e,{expose:t}){const n=e,{t:r}=Va(),{Close:s}=GM,{dialogRef:o,headerRef:a,bodyId:l,ns:c,style:u}=et(GC),{focusTrapRef:d}=et(rC),f=W(()=>[c.b(),c.is("fullscreen",n.fullscreen),c.is("draggable",n.draggable),c.is("align-center",n.alignCenter),{[c.m("center")]:n.center}]),h=JM(d,o),g=W(()=>n.draggable),v=W(()=>n.overflow),{resetPosition:y}=X3(o,a,g,v);return t({resetPosition:y}),(_,w)=>(R(),V("div",{ref:P(h),class:Z(P(f)),style:Ze(P(u)),tabindex:"-1"},[G("header",{ref_key:"headerRef",ref:a,class:Z([P(c).e("header"),{"show-close":_.showClose}])},[Ie(_.$slots,"header",{},()=>[G("span",{role:"heading","aria-level":_.ariaLevel,class:Z(P(c).e("title"))},Ne(_.title),11,["aria-level"])]),_.showClose?(R(),V("button",{key:0,"aria-label":P(r)("el.dialog.close"),class:Z(P(c).e("headerbtn")),type:"button",onClick:A=>_.$emit("close")},[ne(P(jt),{class:Z(P(c).e("close"))},{default:te(()=>[(R(),_e(Qt(_.closeIcon||P(s))))]),_:1},8,["class"])],10,["aria-label","onClick"])):se("v-if",!0)],2),G("div",{id:P(l),class:Z(P(c).e("body"))},[Ie(_.$slots,"default")],10,["id"]),_.$slots.footer?(R(),V("footer",{key:0,class:Z(P(c).e("footer"))},[Ie(_.$slots,"footer")],2)):se("v-if",!0)],6))}}));var k$=lt(L$,[["__file","dialog-content.vue"]]);const M$=ht(Me(be({},WC),{appendToBody:Boolean,appendTo:{type:Be([String,Object]),default:"body"},beforeClose:{type:Be(Function)},destroyOnClose:Boolean,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:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}})),F$={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Cn]:e=>pn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},B$=(e,t)=>{var n;const s=xt().emit,{nextZIndex:o}=Lm();let a="";const l=xr(),c=xr(),u=ie(!1),d=ie(!1),f=ie(!1),h=ie((n=e.zIndex)!=null?n:o());let g,v;const y=af("namespace",Dc),_=W(()=>{const ce={},U=`--${y.value}-dialog`;return e.fullscreen||(e.top&&(ce[`${U}-margin-top`]=e.top),e.width&&(ce[`${U}-width`]=nr(e.width))),ce}),w=W(()=>e.alignCenter?{display:"flex"}:{});function A(){s("opened")}function C(){s("closed"),s(Cn,!1),e.destroyOnClose&&(f.value=!1)}function S(){s("close")}function x(){v==null||v(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=qg(()=>F(),e.openDelay):F()}function O(){g==null||g(),v==null||v(),e.closeDelay&&e.closeDelay>0?{stop:v}=qg(()=>D(),e.closeDelay):D()}function N(){function ce(U){U||(d.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(ce):O()}function I(){e.closeOnClickModal&&N()}function F(){kt&&(u.value=!0)}function D(){u.value=!1}function k(){s("openAutoFocus")}function q(){s("closeAutoFocus")}function H(ce){var U;((U=ce.detail)==null?void 0:U.focusReason)==="pointer"&&ce.preventDefault()}e.lockScroll&&e6(u);function oe(){e.closeOnPressEscape&&N()}return ze(()=>e.modelValue,ce=>{ce?(d.value=!1,x(),f.value=!0,h.value=F3(e.zIndex)?o():h.value++,ft(()=>{s("open"),t.value&&(t.value.scrollTop=0)})):u.value&&O()}),ze(()=>e.fullscreen,ce=>{t.value&&(ce?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),Mt(()=>{e.modelValue&&(u.value=!0,f.value=!0,x())}),{afterEnter:A,afterLeave:C,beforeLeave:S,handleClose:N,onModalClick:I,close:O,doClose:D,onOpenAutoFocus:k,onCloseAutoFocus:q,onCloseRequested:oe,onFocusoutPrevented:H,titleId:l,bodyId:c,closed:d,style:_,overlayDialogStyle:w,rendered:f,visible:u,zIndex:h}},j$=Pe(Me(be({},Pe({name:"ElDialog",inheritAttrs:!1})),{props:M$,emits:F$,setup(e,{expose:t}){const n=e,r=Ia();$a({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"},W(()=>!!r.title));const s=nt("dialog"),o=ie(),a=ie(),l=ie(),{visible:c,titleId:u,bodyId:d,style:f,overlayDialogStyle:h,rendered:g,zIndex:v,afterEnter:y,afterLeave:_,beforeLeave:w,handleClose:A,onModalClick:C,onOpenAutoFocus:S,onCloseAutoFocus:x,onCloseRequested:O,onFocusoutPrevented:N}=B$(n,o);cn(GC,{dialogRef:o,headerRef:a,bodyId:d,ns:s,rendered:g,style:f});const I=Dm(C),F=W(()=>n.draggable&&!n.fullscreen);return t({visible:c,dialogContentRef:l,resetPosition:()=>{var k;(k=l.value)==null||k.resetPosition()}}),(k,q)=>(R(),_e(P(dC),{to:k.appendTo,disabled:k.appendTo!=="body"?!1:!k.appendToBody},{default:te(()=>[ne(Fs,{name:"dialog-fade",onAfterEnter:P(y),onAfterLeave:P(_),onBeforeLeave:P(w),persisted:""},{default:te(()=>[Dt(ne(P(HC),{"custom-mask-event":"",mask:k.modal,"overlay-class":k.modalClass,"z-index":P(v)},{default:te(()=>[G("div",{role:"dialog","aria-modal":"true","aria-label":k.title||void 0,"aria-labelledby":k.title?void 0:P(u),"aria-describedby":P(d),class:Z(`${P(s).namespace.value}-overlay-dialog`),style:Ze(P(h)),onClick:P(I).onClick,onMousedown:P(I).onMousedown,onMouseup:P(I).onMouseup},[ne(P(Xm),{loop:"",trapped:P(c),"focus-start-el":"container",onFocusAfterTrapped:P(S),onFocusAfterReleased:P(x),onFocusoutPrevented:P(N),onReleaseRequested:P(O)},{default:te(()=>[P(g)?(R(),_e(k$,Ln({key:0,ref_key:"dialogContentRef",ref:l},k.$attrs,{center:k.center,"align-center":k.alignCenter,"close-icon":k.closeIcon,draggable:P(F),overflow:k.overflow,fullscreen:k.fullscreen,"show-close":k.showClose,title:k.title,"aria-level":k.headerAriaLevel,onClose:P(A)}),Cg({header:te(()=>[k.$slots.title?Ie(k.$slots,"title",{key:1}):Ie(k.$slots,"header",{key:0,close:P(A),titleId:P(u),titleClass:P(s).e("title")})]),default:te(()=>[Ie(k.$slots,"default")]),_:2},[k.$slots.footer?{name:"footer",fn:te(()=>[Ie(k.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):se("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[wn,P(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}}));var U$=lt(j$,[["__file","dialog.vue"]]);const Kc=vn(U$),$$=ht({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Be(String),default:"solid"}}),V$=Pe(Me(be({},Pe({name:"ElDivider"})),{props:$$,setup(e){const t=e,n=nt("divider"),r=W(()=>n.cssVar({"border-style":t.borderStyle}));return(s,o)=>(R(),V("div",{class:Z([P(n).b(),P(n).m(s.direction)]),style:Ze(P(r)),role:"separator"},[s.$slots.default&&s.direction!=="vertical"?(R(),V("div",{key:0,class:Z([P(n).e("text"),P(n).is(s.contentPosition)])},[Ie(s.$slots,"default")],2)):se("v-if",!0)],6))}}));var z$=lt(V$,[["__file","divider.vue"]]);const q$=vn(z$),H$=Pe({inheritAttrs:!1});function G$(e,t,n,r,s,o){return Ie(e.$slots,"default")}var W$=lt(H$,[["render",G$],["__file","collection.vue"]]);const K$=Pe({name:"ElCollectionItem",inheritAttrs:!1});function J$(e,t,n,r,s,o){return Ie(e.$slots,"default")}var Y$=lt(K$,[["render",J$],["__file","collection-item.vue"]]);const X$="data-el-collection-item",Z$=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),s=Symbol(n),o=Me(be({},W$),{name:t,setup(){const l=ie(null),c=new Map;cn(r,{itemMap:c,getItems:()=>{const d=P(l);if(!d)return[];const f=Array.from(d.querySelectorAll(`[${X$}]`));return[...c.values()].sort((g,v)=>f.indexOf(g.ref)-f.indexOf(v.ref))},collectionRef:l})}}),a=Me(be({},Y$),{name:n,setup(l,{attrs:c}){const u=ie(null),d=et(r,void 0);cn(s,{collectionItemRef:u}),Mt(()=>{const f=P(u);f&&d.itemMap.set(f,be({ref:f},c))}),hn(()=>{const f=P(u);d.itemMap.delete(f)})}});return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:s,ElCollection:o,ElCollectionItem:a}},p0=ht({trigger:Gc.trigger,effect:Me(be({},di.effect),{default:"light"}),type:{type:Be(String)},placement:{type:Be(String),default:"bottom"},popperOptions:{type:Be(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:Be([Number,String]),default:0},maxHeight:{type:Be([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:Be(Object)},teleported:di.teleported});ht({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:os}}),ht({onKeydown:{type:Be(Function)}}),Z$("Dropdown");const KC=Symbol("ElSelectGroup"),wf=Symbol("ElSelect");function Q$(e,t){const n=et(wf),r=et(KC,{disabled:!1}),s=W(()=>d(er(n.props.modelValue),e.value)),o=W(()=>{var g;if(n.props.multiple){const v=er((g=n.props.modelValue)!=null?g:[]);return!s.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=W(()=>e.label||(at(e.value)?"":e.value)),l=W(()=>e.value||e.label||""),c=W(()=>e.disabled||t.groupDisabled||o.value),u=xt(),d=(g=[],v)=>{if(at(e.value)){const y=n.props.valueKey;return g&&g.some(_=>it(Qi(_,y))===Qi(v,y))}else return g&&g.includes(v)},f=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},h=g=>{const v=new RegExp(pM(g),"i");t.visible=v.test(a.value)||e.created};return ze(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ze(()=>e.value,(g,v)=>{const{remote:y,valueKey:_}=n.props;if(g!==v&&(n.onOptionDestroy(v,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!y){if(_&&at(g)&&at(v)&&g[_]===v[_])return;n.setSelected()}}),ze(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:l,itemSelected:s,isDisabled:c,hoverItem:f,updateOption:h}}const eV=Pe({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=nt("select"),n=xr(),r=W(()=>[t.be("dropdown","item"),t.is("disabled",P(l)),t.is("selected",P(a)),t.is("hovering",P(h))]),s=Rn({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:a,isDisabled:l,select:c,hoverItem:u,updateOption:d}=Q$(e,s),{visible:f,hover:h}=mr(s),g=xt().proxy;c.onOptionCreate(g),hn(()=>{const y=g.value,{selected:_}=c.states,A=(c.props.multiple?_:[_]).some(C=>C.value===g.value);ft(()=>{c.states.cachedOptions.get(y)===g&&!A&&c.states.cachedOptions.delete(y)}),c.onOptionDestroy(y,g)});function v(){l.value||c.handleOptionSelect(g)}return{ns:t,id:n,containerKls:r,currentLabel:o,itemSelected:a,isDisabled:l,select:c,hoverItem:u,updateOption:d,visible:f,hover:h,selectOptionClick:v,states:s}}});function tV(e,t,n,r,s,o){return Dt((R(),V("li",{id:e.id,class:Z(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:mt(e.selectOptionClick,["stop"])},[Ie(e.$slots,"default",{},()=>[G("span",null,Ne(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[wn,e.visible]])}var g0=lt(eV,[["render",tV],["__file","option.vue"]]);const nV=Pe({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=et(wf),t=nt("select"),n=W(()=>e.props.popperClass),r=W(()=>e.props.multiple),s=W(()=>e.props.fitInputWidth),o=ie("");function a(){var l;o.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return Mt(()=>{a(),li(e.selectRef,a)}),{ns:t,minWidth:o,popperClass:n,isMultiple:r,isFitInputWidth:s}}});function iV(e,t,n,r,s,o){return R(),V("div",{class:Z([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Ze({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(R(),V("div",{key:0,class:Z(e.ns.be("dropdown","header"))},[Ie(e.$slots,"header")],2)):se("v-if",!0),Ie(e.$slots,"default"),e.$slots.footer?(R(),V("div",{key:1,class:Z(e.ns.be("dropdown","footer"))},[Ie(e.$slots,"footer")],2)):se("v-if",!0)],6)}var rV=lt(nV,[["render",iV],["__file","select-dropdown.vue"]]);const sV=11,oV=(e,t)=>{const{t:n}=Va(),r=xr(),s=nt("select"),o=nt("input"),a=Rn({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=ie(null),c=ie(null),u=ie(null),d=ie(null),f=ie(null),h=ie(null),g=ie(null),v=ie(null),y=ie(null),_=ie(null),w=ie(null),A=ie(null),{isComposing:C,handleCompositionStart:S,handleCompositionUpdate:x,handleCompositionEnd:O}=M6({afterComposition:he=>Tt(he)}),{wrapperRef:N,isFocused:I,handleBlur:F}=k6(f,{beforeFocus(){return Y.value},afterFocus(){e.automaticDropdown&&!D.value&&(D.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(he){var ke,gt;return((ke=u.value)==null?void 0:ke.isFocusInsideContent(he))||((gt=d.value)==null?void 0:gt.isFocusInsideContent(he))},afterBlur(){D.value=!1,a.menuVisibleOnFocus=!1}}),D=ie(!1),k=ie(),{form:q,formItem:H}=qo(),{inputId:oe}=$c(e,{formItemContext:H}),{valueOnClear:ce,isEmptyValue:U}=xB(e),Y=W(()=>e.disabled||(q==null?void 0:q.disabled)),K=W(()=>De(e.modelValue)?e.modelValue.length>0:!U(e.modelValue)),ee=W(()=>{var he;return(he=q==null?void 0:q.statusIcon)!=null?he:!1}),B=W(()=>e.clearable&&!Y.value&&a.inputHovering&&K.value),Ee=W(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),me=W(()=>s.is("reverse",Ee.value&&D.value)),re=W(()=>(H==null?void 0:H.validateState)||""),le=W(()=>Y3[re.value]),Ce=W(()=>e.remote?300:0),ye=W(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!a.inputValue&&a.options.size===0?!1:e.filterable&&a.inputValue&&a.options.size>0&&z.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),z=W(()=>X.value.filter(he=>he.visible).length),X=W(()=>{const he=Array.from(a.options.values()),ke=[];return a.optionValues.forEach(gt=>{const Lt=he.findIndex($n=>$n.value===gt);Lt>-1&&ke.push(he[Lt])}),ke.length>=he.length?ke:he}),fe=W(()=>Array.from(a.cachedOptions.values())),Re=W(()=>{const he=X.value.filter(ke=>!ke.created).some(ke=>ke.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!he}),Le=()=>{e.filterable&&Fe(e.filterMethod)||e.filterable&&e.remote&&Fe(e.remoteMethod)||X.value.forEach(he=>{var ke;(ke=he.updateOption)==null||ke.call(he,a.inputValue)})},Ke=Pr(),j=W(()=>["small"].includes(Ke.value)?"small":"default"),J=W({get(){return D.value&&ye.value!==!1},set(he){D.value=he}}),ae=W(()=>{if(e.multiple&&!ci(e.modelValue))return er(e.modelValue).length===0&&!a.inputValue;const he=De(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||ci(he)?!a.inputValue:!0}),xe=W(()=>{var he;const ke=(he=e.placeholder)!=null?he:n("el.select.placeholder");return e.multiple||!K.value?ke:a.selectedLabel}),de=W(()=>zg?null:"mouseenter");ze(()=>e.modelValue,(he,ke)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",pe("")),Ae(),!Mo(he,ke)&&e.validateEvent&&(H==null||H.validate("change").catch(gt=>void 0))},{flush:"post",deep:!0}),ze(()=>D.value,he=>{he?pe(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",he)}),ze(()=>a.options.entries(),()=>{var he;if(!kt)return;const ke=((he=l.value)==null?void 0:he.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!ci(e.modelValue)||!Array.from(ke).includes(document.activeElement))&&Ae(),e.defaultFirstOption&&(e.filterable||e.remote)&&z.value&&we()},{flush:"post"}),ze(()=>a.hoveringIndex,he=>{Vt(he)&&he>-1?k.value=X.value[he]||{}:k.value={},X.value.forEach(ke=>{ke.hover=k.value===ke})}),Ds(()=>{a.isBeforeHide||Le()});const pe=he=>{a.previousQuery===he||C.value||(a.previousQuery=he,e.filterable&&Fe(e.filterMethod)?e.filterMethod(he):e.filterable&&e.remote&&Fe(e.remoteMethod)&&e.remoteMethod(he),e.defaultFirstOption&&(e.filterable||e.remote)&&z.value?ft(we):ft(ve))},we=()=>{const he=X.value.filter($n=>$n.visible&&!$n.disabled&&!$n.states.groupDisabled),ke=he.find($n=>$n.created),gt=he[0],Lt=X.value.map($n=>$n.value);a.hoveringIndex=Rt(Lt,ke||gt)},Ae=()=>{if(e.multiple)a.selectedLabel="";else{const ke=De(e.modelValue)?e.modelValue[0]:e.modelValue,gt=Te(ke);a.selectedLabel=gt.currentLabel,a.selected=[gt];return}const he=[];ci(e.modelValue)||er(e.modelValue).forEach(ke=>{he.push(Te(ke))}),a.selected=he},Te=he=>{let ke;const gt=yo(he);for(let zi=a.cachedOptions.size-1;zi>=0;zi--){const qi=fe.value[zi];if(gt?Qi(qi.value,e.valueKey)===Qi(he,e.valueKey):qi.value===he){ke={value:he,currentLabel:qi.currentLabel,get isDisabled(){return qi.isDisabled}};break}}if(ke)return ke;const Lt=gt?he.label:he!=null?he:"";return{value:he,currentLabel:Lt}},ve=()=>{a.hoveringIndex=X.value.findIndex(he=>a.selected.some(ke=>va(ke)===va(he)))},$e=()=>{a.selectionWidth=c.value.getBoundingClientRect().width},Q=()=>{a.calculatorWidth=h.value.getBoundingClientRect().width},Oe=()=>{a.collapseItemWidth=w.value.getBoundingClientRect().width},Ve=()=>{var he,ke;(ke=(he=u.value)==null?void 0:he.updatePopper)==null||ke.call(he)},Qe=()=>{var he,ke;(ke=(he=d.value)==null?void 0:he.updatePopper)==null||ke.call(he)},wt=()=>{a.inputValue.length>0&&!D.value&&(D.value=!0),pe(a.inputValue)},Tt=he=>{if(a.inputValue=he.target.value,e.remote)Ot();else return wt()},Ot=ko(()=>{wt()},Ce.value),St=he=>{Mo(e.modelValue,he)||t(Cm,he)},je=he=>iM(he,ke=>{const gt=a.cachedOptions.get(ke);return gt&&!gt.disabled&&!gt.states.groupDisabled}),He=he=>{if(e.multiple&&he.code!==$s.delete&&he.target.value.length<=0){const ke=er(e.modelValue).slice(),gt=je(ke);if(gt<0)return;const Lt=ke[gt];ke.splice(gt,1),t(Cn,ke),St(ke),t("remove-tag",Lt)}},pt=(he,ke)=>{const gt=a.selected.indexOf(ke);if(gt>-1&&!Y.value){const Lt=er(e.modelValue).slice();Lt.splice(gt,1),t(Cn,Lt),St(Lt),t("remove-tag",ke.value)}he.stopPropagation(),po()},dt=he=>{he.stopPropagation();const ke=e.multiple?[]:ce.value;if(e.multiple)for(const gt of a.selected)gt.isDisabled&&ke.push(gt.value);t(Cn,ke),St(ke),a.hoveringIndex=-1,D.value=!1,t("clear"),po()},ot=he=>{var ke;if(e.multiple){const gt=er((ke=e.modelValue)!=null?ke:[]).slice(),Lt=Rt(gt,he);Lt>-1?gt.splice(Lt,1):(e.multipleLimit<=0||gt.length<e.multipleLimit)&>.push(he.value),t(Cn,gt),St(gt),he.created&&pe(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(Cn,he.value),St(he.value),D.value=!1;po(),!D.value&&ft(()=>{an(he)})},Rt=(he=[],ke)=>ci(ke)?-1:at(ke.value)?he.findIndex(gt=>Mo(Qi(gt,e.valueKey),va(ke))):he.indexOf(ke.value),an=he=>{var ke,gt,Lt,$n,zi;const qi=De(he)?he[0]:he;let hr=null;if(qi!=null&&qi.value){const ba=X.value.filter(yy=>yy.value===qi.value);ba.length>0&&(hr=ba[0].$el)}if(u.value&&hr){const ba=($n=(Lt=(gt=(ke=u.value)==null?void 0:ke.popperRef)==null?void 0:gt.contentRef)==null?void 0:Lt.querySelector)==null?void 0:$n.call(Lt,`.${s.be("dropdown","wrap")}`);ba&&bM(ba,hr)}(zi=A.value)==null||zi.handleScroll()},$i=he=>{a.options.set(he.value,he),a.cachedOptions.set(he.value,he)},yi=(he,ke)=>{a.options.get(he)===ke&&a.options.delete(he)},Vi=W(()=>{var he,ke;return(ke=(he=u.value)==null?void 0:he.popperRef)==null?void 0:ke.contentRef}),_i=()=>{a.isBeforeHide=!1,ft(()=>an(a.selected))},po=()=>{var he;(he=f.value)==null||he.focus()},Sp=()=>{var he;if(D.value){D.value=!1,ft(()=>{var ke;return(ke=f.value)==null?void 0:ke.blur()});return}(he=f.value)==null||he.blur()},Vl=he=>{dt(he)},my=he=>{if(D.value=!1,I.value){const ke=new FocusEvent("focus",he);ft(()=>F(ke))}},Ep=()=>{a.inputValue.length>0?a.inputValue="":D.value=!1},zu=()=>{Y.value||(zg&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:D.value=!D.value)},vy=()=>{if(!D.value)zu();else{const he=X.value[a.hoveringIndex];he&&!he.disabled&&!he.states.groupDisabled&&ot(he)}},va=he=>at(he.value)?Qi(he.value,e.valueKey):he.value,xp=W(()=>X.value.filter(he=>he.visible).every(he=>he.disabled)),$r=W(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),Vr=W(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),qu=he=>{if(!D.value){D.value=!0;return}if(!(a.options.size===0||a.filteredOptionsCount===0||C.value)&&!xp.value){he==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):he==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const ke=X.value[a.hoveringIndex];(ke.disabled===!0||ke.states.groupDisabled===!0||!ke.visible)&&qu(he),ft(()=>an(k.value))}},by=()=>{if(!c.value)return 0;const he=window.getComputedStyle(c.value);return Number.parseFloat(he.gap||"6px")},fr=W(()=>{const he=by();return{maxWidth:`${w.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-he:a.selectionWidth}px`}}),go=W(()=>({maxWidth:`${a.selectionWidth}px`})),Es=W(()=>({width:`${Math.max(a.calculatorWidth,sV)}px`}));return li(c,$e),li(h,Q),li(y,Ve),li(N,Ve),li(_,Qe),li(w,Oe),Mt(()=>{Ae()}),{inputId:oe,contentId:r,nsSelect:s,nsInput:o,states:a,isFocused:I,expanded:D,optionsArray:X,hoverOption:k,selectSize:Ke,filteredOptionsCount:z,resetCalculatorWidth:Q,updateTooltip:Ve,updateTagTooltip:Qe,debouncedOnInputChange:Ot,onInput:Tt,deletePrevTag:He,deleteTag:pt,deleteSelected:dt,handleOptionSelect:ot,scrollToOption:an,hasModelValue:K,shouldShowPlaceholder:ae,currentPlaceholder:xe,mouseEnterEventName:de,needStatusIcon:ee,showClose:B,iconComponent:Ee,iconReverse:me,validateState:re,validateIcon:le,showNewOption:Re,updateOptions:Le,collapseTagSize:j,setSelected:Ae,selectDisabled:Y,emptyText:ye,handleCompositionStart:S,handleCompositionUpdate:x,handleCompositionEnd:O,onOptionCreate:$i,onOptionDestroy:yi,handleMenuEnter:_i,focus:po,blur:Sp,handleClearClick:Vl,handleClickOutside:my,handleEsc:Ep,toggleMenu:zu,selectOption:vy,getValueKey:va,navigateOptions:qu,dropdownMenuVisible:J,showTagList:$r,collapseTagList:Vr,tagStyle:fr,collapseTagStyle:go,inputStyle:Es,popperRef:Vi,inputRef:f,tooltipRef:u,tagTooltipRef:d,calculatorRef:h,prefixRef:g,suffixRef:v,selectRef:l,wrapperRef:N,selectionRef:c,scrollbarRef:A,menuRef:y,tagMenuRef:_,collapseItemRef:w}};var aV=Pe({name:"ElOptions",setup(e,{slots:t}){const n=et(wf);let r=[];return()=>{var s,o;const a=(s=t.default)==null?void 0:s.call(t),l=[];function c(u){De(u)&&u.forEach(d=>{var f,h,g,v;const y=(f=(d==null?void 0:d.type)||{})==null?void 0:f.name;y==="ElOptionGroup"?c(!Xe(d.children)&&!De(d.children)&&Fe((h=d.children)==null?void 0:h.default)?(g=d.children)==null?void 0:g.default():d.children):y==="ElOption"?l.push((v=d.props)==null?void 0:v.value):De(d.children)&&c(d.children)})}return a.length&&c((o=a[0])==null?void 0:o.children),Mo(l,r)||(r=l,n&&(n.states.optionValues=l)),a}}});const lV=ht(be(be({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:zs,effect:{type:Be(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Be(Object),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:Boolean,maxCollapseTags:{type:Number,default:1},teleported:di.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:os,default:Yd},fitInputWidth:Boolean,suffixIcon:{type:os,default:z3},tagType:Me(be({},h0.type),{default:"info"}),tagEffect:Me(be({},h0.effect),{default:"light"}),validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:Be(String),values:ef,default:"bottom-start"},fallbackPlacements:{type:Be(Array),default:["bottom-start","top-start","right","left"]},appendTo:String},EB),qs(["ariaLabel"]))),JC="ElSelect",cV=Pe({name:JC,componentName:JC,components:{ElSelectMenu:rV,ElOption:g0,ElOptions:aV,ElTag:Wc,ElScrollbar:Hm,ElTooltip:fi,ElIcon:jt},directives:{ClickOutside:wC},props:lV,emits:[Cn,Cm,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=W(()=>{const{modelValue:a,multiple:l}=e,c=l?[]:void 0;return De(a)?l?a:c:l?c:a}),r=Rn(Me(be({},mr(e)),{modelValue:n})),s=oV(r,t);cn(wf,Rn({props:r,states:s.states,optionsArray:s.optionsArray,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy,selectRef:s.selectRef,setSelected:s.setSelected}));const o=W(()=>e.multiple?s.states.selected.map(a=>a.currentLabel):s.states.selectedLabel);return Me(be({},s),{modelValue:n,selectedLabel:o})}});function uV(e,t,n,r,s,o){const a=Ge("el-tag"),l=Ge("el-tooltip"),c=Ge("el-icon"),u=Ge("el-option"),d=Ge("el-options"),f=Ge("el-scrollbar"),h=Ge("el-select-menu"),g=wd("click-outside");return Dt((R(),V("div",{ref:"selectRef",class:Z([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Kl(e.mouseEnterEventName)]:v=>e.states.inputHovering=!0,onMouseleave:v=>e.states.inputHovering=!1},[ne(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:v=>e.states.isBeforeHide=!1},{default:te(()=>{var v;return[G("div",{ref:"wrapperRef",class:Z([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:mt(e.toggleMenu,["prevent"])},[e.$slots.prefix?(R(),V("div",{key:0,ref:"prefixRef",class:Z(e.nsSelect.e("prefix"))},[Ie(e.$slots,"prefix")],2)):se("v-if",!0),G("div",{ref:"selectionRef",class:Z([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?Ie(e.$slots,"tag",{key:0},()=>[(R(!0),V(qe,null,Nt(e.showTagList,y=>(R(),V("div",{key:e.getValueKey(y),class:Z(e.nsSelect.e("selected-item"))},[ne(a,{closable:!e.selectDisabled&&!y.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ze(e.tagStyle),onClose:_=>e.deleteTag(_,y)},{default:te(()=>[G("span",{class:Z(e.nsSelect.e("tags-text"))},[Ie(e.$slots,"label",{label:y.currentLabel,value:y.value},()=>[Je(Ne(y.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(R(),_e(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:te(()=>[G("div",{ref:"collapseItemRef",class:Z(e.nsSelect.e("selected-item"))},[ne(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ze(e.collapseTagStyle)},{default:te(()=>[G("span",{class:Z(e.nsSelect.e("tags-text"))}," + "+Ne(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:te(()=>[G("div",{ref:"tagMenuRef",class:Z(e.nsSelect.e("selection"))},[(R(!0),V(qe,null,Nt(e.collapseTagList,y=>(R(),V("div",{key:e.getValueKey(y),class:Z(e.nsSelect.e("selected-item"))},[ne(a,{class:"in-tooltip",closable:!e.selectDisabled&&!y.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:_=>e.deleteTag(_,y)},{default:te(()=>[G("span",{class:Z(e.nsSelect.e("tags-text"))},[Ie(e.$slots,"label",{label:y.currentLabel,value:y.value},()=>[Je(Ne(y.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):se("v-if",!0)]):se("v-if",!0),e.selectDisabled?se("v-if",!0):(R(),V("div",{key:1,class:Z([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[Dt(G("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":y=>e.states.inputValue=y,type:"text",name:e.name,class:Z([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Ze(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((v=e.hoverOption)==null?void 0:v.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[Xi(mt(y=>e.navigateOptions("next"),["stop","prevent"]),["down"]),Xi(mt(y=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),Xi(mt(e.handleEsc,["stop","prevent"]),["esc"]),Xi(mt(e.selectOption,["stop","prevent"]),["enter"]),Xi(mt(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:mt(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[OO,e.states.inputValue]]),e.filterable?(R(),V("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Z(e.nsSelect.e("input-calculator")),textContent:Ne(e.states.inputValue)},null,10,["textContent"])):se("v-if",!0)],2)),e.shouldShowPlaceholder?(R(),V("div",{key:2,class:Z([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Ie(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[G("span",null,Ne(e.currentPlaceholder),1)]):(R(),V("span",{key:1},Ne(e.currentPlaceholder),1))],2)):se("v-if",!0)],2),G("div",{ref:"suffixRef",class:Z(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(R(),_e(c,{key:0,class:Z([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:te(()=>[(R(),_e(Qt(e.iconComponent)))]),_:1},8,["class"])):se("v-if",!0),e.showClose&&e.clearIcon?(R(),_e(c,{key:1,class:Z([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:te(()=>[(R(),_e(Qt(e.clearIcon)))]),_:1},8,["class","onClick"])):se("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(R(),_e(c,{key:2,class:Z([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:te(()=>[(R(),_e(Qt(e.validateIcon)))]),_:1},8,["class"])):se("v-if",!0)],2)],10,["onClick"])]}),content:te(()=>[ne(h,{ref:"menuRef"},{default:te(()=>[e.$slots.header?(R(),V("div",{key:0,class:Z(e.nsSelect.be("dropdown","header")),onClick:mt(()=>{},["stop"])},[Ie(e.$slots,"header")],10,["onClick"])):se("v-if",!0),Dt(ne(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Z([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:te(()=>[e.showNewOption?(R(),_e(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):se("v-if",!0),ne(d,null,{default:te(()=>[Ie(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[wn,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(R(),V("div",{key:1,class:Z(e.nsSelect.be("dropdown","loading"))},[Ie(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(R(),V("div",{key:2,class:Z(e.nsSelect.be("dropdown","empty"))},[Ie(e.$slots,"empty",{},()=>[G("span",null,Ne(e.emptyText),1)])],2)):se("v-if",!0),e.$slots.footer?(R(),V("div",{key:3,class:Z(e.nsSelect.be("dropdown","footer")),onClick:mt(()=>{},["stop"])},[Ie(e.$slots,"footer")],10,["onClick"])):se("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[g,e.handleClickOutside,e.popperRef]])}var dV=lt(cV,[["render",uV],["__file","select.vue"]]);const fV=Pe({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=nt("select"),n=ie(null),r=xt(),s=ie([]);cn(KC,Rn(be({},mr(e))));const o=W(()=>s.value.some(u=>u.visible===!0)),a=u=>{var d,f;return((d=u.type)==null?void 0:d.name)==="ElOption"&&!!((f=u.component)!=null&&f.proxy)},l=u=>{const d=er(u),f=[];return d.forEach(h=>{var g,v;a(h)?f.push(h.component.proxy):(g=h.children)!=null&&g.length?f.push(...l(h.children)):(v=h.component)!=null&&v.subTree&&f.push(...l(h.component.subTree))}),f},c=()=>{s.value=l(r.subTree)};return Mt(()=>{c()}),cN(n,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function hV(e,t,n,r,s,o){return Dt((R(),V("ul",{ref:"groupRef",class:Z(e.ns.be("group","wrap"))},[G("li",{class:Z(e.ns.be("group","title"))},Ne(e.label),3),G("li",null,[G("ul",{class:Z(e.ns.b("group"))},[Ie(e.$slots,"default")],2)])],2)),[[wn,e.visible]])}var YC=lt(fV,[["render",hV],["__file","option-group.vue"]]);const Cf=vn(dV,{Option:g0,OptionGroup:YC}),Sf=as(g0);as(YC);const pV=ht({trigger:Gc.trigger,placement:p0.placement,disabled:Gc.disabled,visible:di.visible,transition:di.transition,popperOptions:p0.popperOptions,tabindex:p0.tabindex,content:di.content,popperStyle:di.popperStyle,popperClass:di.popperClass,enterable:Me(be({},di.enterable),{default:!0}),effect:Me(be({},di.effect),{default:"light"}),teleported:di.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),gV={"update:visible":e=>pn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},mV="onUpdate:visible",vV=Pe(Me(be({},Pe({name:"ElPopover"})),{props:pV,emits:gV,setup(e,{expose:t,emit:n}){const r=e,s=W(()=>r[mV]),o=nt("popover"),a=ie(),l=W(()=>{var _;return(_=P(a))==null?void 0:_.popperRef}),c=W(()=>[{width:nr(r.width)},r.popperStyle]),u=W(()=>[o.b(),r.popperClass,{[o.m("plain")]:!!r.content}]),d=W(()=>r.transition===`${o.namespace.value}-fade-in-linear`),f=()=>{var _;(_=a.value)==null||_.hide()},h=()=>{n("before-enter")},g=()=>{n("before-leave")},v=()=>{n("after-enter")},y=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:l,hide:f}),(_,w)=>(R(),_e(P(fi),Ln({ref_key:"tooltipRef",ref:a},_.$attrs,{trigger:_.trigger,placement:_.placement,disabled:_.disabled,visible:_.visible,transition:_.transition,"popper-options":_.popperOptions,tabindex:_.tabindex,content:_.content,offset:_.offset,"show-after":_.showAfter,"hide-after":_.hideAfter,"auto-close":_.autoClose,"show-arrow":_.showArrow,"aria-label":_.title,effect:_.effect,enterable:_.enterable,"popper-class":P(u),"popper-style":P(c),teleported:_.teleported,persistent:_.persistent,"gpu-acceleration":P(d),"onUpdate:visible":P(s),onBeforeShow:h,onBeforeHide:g,onShow:v,onHide:y}),{content:te(()=>[_.title?(R(),V("div",{key:0,class:Z(P(o).e("title")),role:"title"},Ne(_.title),3)):se("v-if",!0),Ie(_.$slots,"default",{},()=>[Je(Ne(_.content),1)])]),default:te(()=>[_.$slots.reference?Ie(_.$slots,"reference",{key:0}):se("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}}));var bV=lt(vV,[["__file","popover.vue"]]);const XC=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var yV={mounted(e,t){XC(e,t)},updated(e,t){XC(e,t)}};const _V=KM(yV,"popover"),wV=vn(bV,{directive:_V}),CV=ht({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Be(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Be([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Be(Function),default:e=>`${e}%`}}),SV=Pe(Me(be({},Pe({name:"ElProgress"})),{props:CV,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=nt("progress"),s=W(()=>{const C={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},S=A(t.percentage);return S.includes("gradient")?C.background=S:C.backgroundColor=S,C}),o=W(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=W(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),l=W(()=>{const C=a.value,S=t.type==="dashboard";return`
|
|
53
|
-
M 50 50
|
|
54
|
-
m 0 ${S?"":"-"}${C}
|
|
55
|
-
a ${C} ${C} 0 1 1 0 ${S?"-":""}${C*2}
|
|
56
|
-
a ${C} ${C} 0 1 1 0 ${S?"":"-"}${C*2}
|
|
57
|
-
`}),c=W(()=>2*Math.PI*a.value),u=W(()=>t.type==="dashboard"?.75:1),d=W(()=>`${-1*c.value*(1-u.value)/2}px`),f=W(()=>({strokeDasharray:`${c.value*u.value}px, ${c.value}px`,strokeDashoffset:d.value})),h=W(()=>({strokeDasharray:`${c.value*u.value*(t.percentage/100)}px, ${c.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=W(()=>{let C;return t.color?C=A(t.percentage):C=n[t.status]||n.default,C}),v=W(()=>t.status==="warning"?wm:t.type==="line"?t.status==="success"?ym:Yd:t.status==="success"?q3:ja),y=W(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),_=W(()=>t.format(t.percentage));function w(C){const S=100/C.length;return C.map((O,N)=>Xe(O)?{color:O,percentage:(N+1)*S}:O).sort((O,N)=>O.percentage-N.percentage)}const A=C=>{var S;const{color:x}=t;if(Fe(x))return x(C);if(Xe(x))return x;{const O=w(x);for(const N of O)if(N.percentage>C)return N.color;return(S=O[O.length-1])==null?void 0:S.color}};return(C,S)=>(R(),V("div",{class:Z([P(r).b(),P(r).m(C.type),P(r).is(C.status),{[P(r).m("without-text")]:!C.showText,[P(r).m("text-inside")]:C.textInside}]),role:"progressbar","aria-valuenow":C.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[C.type==="line"?(R(),V("div",{key:0,class:Z(P(r).b("bar"))},[G("div",{class:Z(P(r).be("bar","outer")),style:Ze({height:`${C.strokeWidth}px`})},[G("div",{class:Z([P(r).be("bar","inner"),{[P(r).bem("bar","inner","indeterminate")]:C.indeterminate},{[P(r).bem("bar","inner","striped")]:C.striped},{[P(r).bem("bar","inner","striped-flow")]:C.stripedFlow}]),style:Ze(P(s))},[(C.showText||C.$slots.default)&&C.textInside?(R(),V("div",{key:0,class:Z(P(r).be("bar","innerText"))},[Ie(C.$slots,"default",{percentage:C.percentage},()=>[G("span",null,Ne(P(_)),1)])],2)):se("v-if",!0)],6)],6)],2)):(R(),V("div",{key:1,class:Z(P(r).b("circle")),style:Ze({height:`${C.width}px`,width:`${C.width}px`})},[(R(),V("svg",{viewBox:"0 0 100 100"},[G("path",{class:Z(P(r).be("circle","track")),d:P(l),stroke:`var(${P(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":C.strokeLinecap,"stroke-width":P(o),fill:"none",style:Ze(P(f))},null,14,["d","stroke","stroke-linecap","stroke-width"]),G("path",{class:Z(P(r).be("circle","path")),d:P(l),stroke:P(g),fill:"none",opacity:C.percentage?1:0,"stroke-linecap":C.strokeLinecap,"stroke-width":P(o),style:Ze(P(h))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(C.showText||C.$slots.default)&&!C.textInside?(R(),V("div",{key:2,class:Z(P(r).e("text")),style:Ze({fontSize:`${P(y)}px`})},[Ie(C.$slots,"default",{percentage:C.percentage},()=>[C.status?(R(),_e(P(jt),{key:1},{default:te(()=>[(R(),_e(Qt(P(v))))]),_:1})):(R(),V("span",{key:0},Ne(P(_)),1))])],6)):se("v-if",!0)],10,["aria-valuenow"]))}}));var EV=lt(SV,[["__file","progress.vue"]]);const xV=vn(EV),m0=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},AV=function(e,t,n,r,s){if(!t&&!r&&(!s||De(s)&&!s.length))return e;Xe(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=r?null:function(l,c){return s?(De(s)||(s=[s]),s.map(u=>Xe(u)?Qi(l,u):u(l,c,e))):(t!=="$key"&&at(l)&&"$value"in l&&(l=l.$value),[at(l)?Qi(l,t):l])},a=function(l,c){if(r)return r(l.value,c.value);for(let u=0,d=l.key.length;u<d;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:o?o(l,c):null})).sort((l,c)=>{let u=a(l,c);return u||(u=l.index-c.index),u*+n}).map(l=>l.value)},ZC=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},PV=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const s=e.columns[r];if(s.columnKey===t){n=s;break}}return n||Bo("ElTable",`No column matching with column-key: ${t}`),n},QC=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?ZC(e,r[0]):null},kn=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(Xe(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const s of n)r=r[s];return`${r}`}else if(Fe(t))return t.call(null,e)},Xo=function(e,t){const n={};return(e||[]).forEach((r,s)=>{n[kn(r,t)]={row:r,index:s}}),n};function TV(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(vt(t,r)){const s=t[r];typeof s!="undefined"&&(n[r]=s)}return n}function v0(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function eS(e){return e===""||e!==void 0&&(e=v0(e),Number.isNaN(e)&&(e=80)),e}function OV(e){return Vt(e)?e:Xe(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function NV(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Ef(e,t,n,r,s,o){let a=o!=null?o:0,l=!1;const c=e.indexOf(t),u=c!==-1,d=s==null?void 0:s.call(null,t,o),f=g=>{g==="add"?e.push(t):e.splice(c,1),l=!0},h=g=>{let v=0;const y=(r==null?void 0:r.children)&&g[r.children];return y&&De(y)&&(v+=y.length,y.forEach(_=>{v+=h(_)})),v};return(!s||d)&&(pn(n)?n&&!u?f("add"):!n&&u&&f("remove"):f(u?"remove":"add")),!(r!=null&&r.checkStrictly)&&(r!=null&&r.children)&&De(t[r.children])&&t[r.children].forEach(g=>{Ef(e,g,n!=null?n:!u,r,s,a+1),a+=h(g)+1}),l}function IV(e,t,n="children",r="hasChildren"){const s=a=>!(De(a)&&a.length);function o(a,l,c){t(a,l,c),l.forEach(u=>{if(u[r]){t(u,null,c+1);return}const d=u[n];s(d)||o(u,d,c+1)})}e.forEach(a=>{if(a[r]){t(a,null,0);return}const l=a[n];s(l)||o(a,l,0)})}const tS=(e,t)=>Me(be({content:t},e),{popperOptions:be({strategy:"fixed"},e.popperOptions)});let Oi=null;function RV(e,t,n,r){if((Oi==null?void 0:Oi.trigger)===n){B3(Oi.vm.component.props,tS(e,t));return}Oi==null||Oi();const s=r==null?void 0:r.refs.tableWrapper,o=s==null?void 0:s.dataset.prefix,a=ne(fi,be({virtualTriggering:!0,virtualRef:n,appendTo:s,placement:"top",transition:"none",offset:0,hideAfter:0},tS(e,t)));a.appContext=be(be({},r.appContext),r);const l=document.createElement("div");Oo(a,l),a.component.exposed.onOpen();const c=s==null?void 0:s.querySelector(`.${o}-scrollbar__wrap`);Oi=()=>{Oo(null,l),c==null||c.removeEventListener("scroll",Oi),Oi=null},Oi.trigger=n,Oi.vm=a,c==null||c.addEventListener("scroll",Oi)}function nS(e){return e.children?oM(e.children,nS):[e]}function iS(e,t){return e+t.colSpan}const rS=(e,t,n,r)=>{let s=0,o=e;const a=n.states.columns.value;if(r){const c=nS(r[e]);s=a.slice(0,a.indexOf(c[0])).reduce(iS,0),o=s+c.reduce(iS,0)-1}else s=e;let l;switch(t){case"left":o<n.states.fixedLeafColumnsLength.value&&(l="left");break;case"right":s>=a.length-n.states.rightFixedLeafColumnsLength.value&&(l="right");break;default:o<n.states.fixedLeafColumnsLength.value?l="left":s>=a.length-n.states.rightFixedLeafColumnsLength.value&&(l="right")}return l?{direction:l,start:s,after:o}:{}},b0=(e,t,n,r,s,o=0)=>{const a=[],{direction:l,start:c,after:u}=rS(t,n,r,s);if(l){const d=l==="left";a.push(`${e}-fixed-column--${l}`),d&&u+o===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!d&&c-o===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function sS(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const y0=(e,t,n,r)=>{const{direction:s,start:o=0,after:a=0}=rS(e,t,n,r);if(!s)return;const l={},c=s==="left",u=n.states.columns.value;return c?l.left=u.slice(0,o).reduce(sS,0):l.right=u.slice(a+1).reverse().reduce(sS,0),l},tl=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function DV(e){const t=xt(),n=ie(!1),r=ie([]);return{updateExpandRows:()=>{const c=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=c.slice();else if(u){const d=Xo(r.value,u);r.value=c.reduce((f,h)=>{const g=kn(h,u);return d[g]&&f.push(h),f},[])}else r.value=[]},toggleRowExpansion:(c,u)=>{Ef(r.value,c,u)&&t.emit("expand-change",c,r.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,f=Xo(u,d);r.value=c.reduce((h,g)=>{const v=f[g];return v&&h.push(v.row),h},[])},isRowExpanded:c=>{const u=e.rowKey.value;return u?!!Xo(r.value,u)[kn(c,u)]:r.value.includes(c)},states:{expandRows:r,defaultExpandAll:n}}}function LV(e){const t=xt(),n=ie(null),r=ie(null),s=u=>{t.store.assertRowKey(),n.value=u,a(u)},o=()=>{n.value=null},a=u=>{const{data:d,rowKey:f}=e;let h=null;f.value&&(h=(P(d)||[]).find(g=>kn(g,f.value)===u)),r.value=h,t.emit("current-change",r.value,null)};return{setCurrentRowKey:s,restoreCurrentRowKey:o,setCurrentRowByKey:a,updateCurrentRow:u=>{const d=r.value;if(u&&u!==d){r.value=u,t.emit("current-change",r.value,d);return}!u&&d&&(r.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const u=e.rowKey.value,d=e.data.value||[],f=r.value;if(!d.includes(f)&&f){if(u){const h=kn(f,u);a(h)}else r.value=null;r.value===null&&t.emit("current-change",null,f)}else n.value&&(a(n.value),o())},states:{_currentRowKey:n,currentRow:r}}}function kV(e){const t=ie([]),n=ie({}),r=ie(16),s=ie(!1),o=ie({}),a=ie("hasChildren"),l=ie("children"),c=ie(!1),u=xt(),d=W(()=>{if(!e.rowKey.value)return{};const C=e.data.value||[];return h(C)}),f=W(()=>{const C=e.rowKey.value,S=Object.keys(o.value),x={};return S.length&&S.forEach(O=>{if(o.value[O].length){const N={children:[]};o.value[O].forEach(I=>{const F=kn(I,C);N.children.push(F),I[a.value]&&!x[F]&&(x[F]={children:[]})}),x[O]=N}}),x}),h=C=>{const S=e.rowKey.value,x={};return IV(C,(O,N,I)=>{const F=kn(O,S);De(N)?x[F]={children:N.map(D=>kn(D,S)),level:I}:s.value&&(x[F]={children:[],lazy:!0,level:I})},l.value,a.value),x},g=(C=!1,S=(x=>(x=u.store)==null?void 0:x.states.defaultExpandAll.value)())=>{var x;const O=d.value,N=f.value,I=Object.keys(O),F={};if(I.length){const D=P(n),k=[],q=(oe,ce)=>{if(C)return t.value?S||t.value.includes(ce):!!(S||oe!=null&&oe.expanded);{const U=S||t.value&&t.value.includes(ce);return!!(oe!=null&&oe.expanded||U)}};I.forEach(oe=>{const ce=D[oe],U=be({},O[oe]);if(U.expanded=q(ce,oe),U.lazy){const{loaded:Y=!1,loading:K=!1}=ce||{};U.loaded=!!Y,U.loading=!!K,k.push(oe)}F[oe]=U});const H=Object.keys(N);s.value&&H.length&&k.length&&H.forEach(oe=>{const ce=D[oe],U=N[oe].children;if(k.includes(oe)){if(F[oe].children.length!==0)throw new Error("[ElTable]children must be an empty array.");F[oe].children=U}else{const{loaded:Y=!1,loading:K=!1}=ce||{};F[oe]={lazy:!0,loaded:!!Y,loading:!!K,expanded:q(ce,oe),children:U,level:""}}})}n.value=F,(x=u.store)==null||x.updateTableScrollY()};ze(()=>t.value,()=>{g(!0)}),ze(()=>d.value,()=>{g()}),ze(()=>f.value,()=>{g()});const v=C=>{t.value=C,g()},y=(C,S)=>{u.store.assertRowKey();const x=e.rowKey.value,O=kn(C,x),N=O&&n.value[O];if(O&&N&&"expanded"in N){const I=N.expanded;S=ci(S)?!N.expanded:S,n.value[O].expanded=S,I!==S&&u.emit("expand-change",C,S),u.store.updateTableScrollY()}},_=C=>{u.store.assertRowKey();const S=e.rowKey.value,x=kn(C,S),O=n.value[x];s.value&&O&&"loaded"in O&&!O.loaded?w(C,x,O):y(C,void 0)},w=(C,S,x)=>{const{load:O}=u.props;O&&!n.value[S].loaded&&(n.value[S].loading=!0,O(C,x,N=>{if(!De(N))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,N.length&&(o.value[S]=N),u.emit("expand-change",C,!0)}))};return{loadData:w,loadOrToggle:_,toggleTreeExpansion:y,updateTreeExpandKeys:v,updateTreeData:g,updateKeyChildren:(C,S)=>{const{lazy:x,rowKey:O}=u.props;if(x){if(!O)throw new Error("[Table] rowKey is required in updateKeyChild");o.value[C]&&(o.value[C]=S)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:r,lazy:s,lazyTreeNodeMap:o,lazyColumnIdentifier:a,childrenColumnName:l,checkStrictly:c}}}const MV=(e,t)=>{const n=t.sortingColumn;return!n||Xe(n.sortable)?e:AV(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},xf=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,xf(n.children)):t.push(n)}),t};function FV(){var e;const t=xt(),{size:n}=mr((e=t.proxy)==null?void 0:e.$props),r=ie(null),s=ie([]),o=ie([]),a=ie(!1),l=ie([]),c=ie([]),u=ie([]),d=ie([]),f=ie([]),h=ie([]),g=ie([]),v=ie([]),y=[],_=ie(0),w=ie(0),A=ie(0),C=ie(!1),S=ie([]),x=ie(!1),O=ie(!1),N=ie(null),I=ie({}),F=ie(null),D=ie(null),k=ie(null),q=ie(null),H=ie(null);ze(s,()=>{var je;t.state&&(K(!1),t.props.tableLayout==="auto"&&((je=t.refs.tableHeaderRef)==null||je.updateFixedColumnStyle()))},{deep:!0});const oe=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},ce=je=>{var He;(He=je.children)==null||He.forEach(pt=>{pt.fixed=je.fixed,ce(pt)})};let U;const Y=()=>{l.value.forEach(ot=>{ce(ot)}),d.value=l.value.filter(ot=>ot.fixed===!0||ot.fixed==="left"),f.value=l.value.filter(ot=>ot.fixed==="right"),ci(U)&&l.value[0]&&l.value[0].type==="selection"&&(U=!!l.value[0].fixed),d.value.length>0&&l.value[0]&&l.value[0].type==="selection"&&(l.value[0].fixed?d.value.some(Rt=>Rt.type!=="selection")?U=void 0:(l.value[0].fixed=U,U||d.value.shift()):(l.value[0].fixed=!0,d.value.unshift(l.value[0])));const je=l.value.filter(ot=>!ot.fixed);c.value=[].concat(d.value).concat(je).concat(f.value);const He=xf(je),pt=xf(d.value),dt=xf(f.value);_.value=He.length,w.value=pt.length,A.value=dt.length,u.value=[].concat(pt).concat(He).concat(dt),a.value=d.value.length>0||f.value.length>0},K=(je,He=!1)=>{je&&Y(),He?t.state.doLayout():t.state.debouncedUpdateLayout()},ee=je=>S.value.some(He=>Mo(He,je)),B=()=>{C.value=!1;const je=S.value;S.value=[],je.length&&t.emit("selection-change",[])},Ee=()=>{let je;if(r.value){je=[];const He=Xo(S.value,r.value),pt=Xo(s.value,r.value);for(const dt in He)vt(He,dt)&&!pt[dt]&&je.push(He[dt].row)}else je=S.value.filter(He=>!s.value.includes(He));if(je.length){const He=S.value.filter(pt=>!je.includes(pt));S.value=He,t.emit("selection-change",He.slice())}},me=()=>(S.value||[]).slice(),re=(je,He,pt=!0,dt=!1)=>{var ot,Rt,an,$i;const yi={children:(Rt=(ot=t==null?void 0:t.store)==null?void 0:ot.states)==null?void 0:Rt.childrenColumnName.value,checkStrictly:($i=(an=t==null?void 0:t.store)==null?void 0:an.states)==null?void 0:$i.checkStrictly.value};if(Ef(S.value,je,He,yi,dt?void 0:N.value)){const _i=(S.value||[]).slice();pt&&t.emit("select",_i,je),t.emit("selection-change",_i)}},le=()=>{var je,He;const pt=O.value?!C.value:!(C.value||S.value.length);C.value=pt;let dt=!1,ot=0;const Rt=(He=(je=t==null?void 0:t.store)==null?void 0:je.states)==null?void 0:He.rowKey.value,{childrenColumnName:an}=t.store.states,$i={children:an.value,checkStrictly:!1};s.value.forEach((yi,Vi)=>{const _i=Vi+ot;Ef(S.value,yi,pt,$i,N.value,_i)&&(dt=!0),ot+=z(kn(yi,Rt))}),dt&&t.emit("selection-change",S.value?S.value.slice():[]),t.emit("select-all",(S.value||[]).slice())},Ce=()=>{const je=Xo(S.value,r.value);s.value.forEach(He=>{const pt=kn(He,r.value),dt=je[pt];dt&&(S.value[dt.index]=He)})},ye=()=>{var je;if(((je=s.value)==null?void 0:je.length)===0){C.value=!1;return}const{childrenColumnName:He}=t.store.states,pt=r.value?Xo(S.value,r.value):void 0;let dt=0,ot=0;const Rt=yi=>pt?!!pt[kn(yi,r.value)]:S.value.includes(yi),an=yi=>{var Vi;for(const _i of yi){const po=N.value&&N.value.call(null,_i,dt);if(Rt(_i))ot++;else if(!N.value||po)return!1;if(dt++,(Vi=_i[He.value])!=null&&Vi.length&&!an(_i[He.value]))return!1}return!0},$i=an(s.value||[]);C.value=ot===0?!1:$i},z=je=>{var He;if(!t||!t.store)return 0;const{treeData:pt}=t.store.states;let dt=0;const ot=(He=pt.value[je])==null?void 0:He.children;return ot&&(dt+=ot.length,ot.forEach(Rt=>{dt+=z(Rt)})),dt},X=(je,He)=>{De(je)||(je=[je]);const pt={};return je.forEach(dt=>{I.value[dt.id]=He,pt[dt.columnKey||dt.id]=He}),pt},fe=(je,He,pt)=>{D.value&&D.value!==je&&(D.value.order=null),D.value=je,k.value=He,q.value=pt},Re=()=>{let je=P(o);Object.keys(I.value).forEach(He=>{const pt=I.value[He];if(!pt||pt.length===0)return;const dt=ZC({columns:u.value},He);dt&&dt.filterMethod&&(je=je.filter(ot=>pt.some(Rt=>dt.filterMethod.call(null,Rt,ot,dt))))}),F.value=je},Le=()=>{s.value=MV(F.value,{sortingColumn:D.value,sortProp:k.value,sortOrder:q.value})},Ke=(je=void 0)=>{je&&je.filter||Re(),Le()},j=je=>{const{tableHeaderRef:He}=t.refs;if(!He)return;const pt=Object.assign({},He.filterPanels),dt=Object.keys(pt);if(dt.length)if(Xe(je)&&(je=[je]),De(je)){const ot=je.map(Rt=>PV({columns:u.value},Rt));dt.forEach(Rt=>{const an=ot.find($i=>$i.id===Rt);an&&(an.filteredValue=[])}),t.store.commit("filterChange",{column:ot,values:[],silent:!0,multi:!0})}else dt.forEach(ot=>{const Rt=u.value.find(an=>an.id===ot);Rt&&(Rt.filteredValue=[])}),I.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},J=()=>{D.value&&(fe(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ae,toggleRowExpansion:xe,updateExpandRows:de,states:pe,isRowExpanded:we}=DV({data:s,rowKey:r}),{updateTreeExpandKeys:Ae,toggleTreeExpansion:Te,updateTreeData:ve,updateKeyChildren:$e,loadOrToggle:Q,states:Oe}=kV({data:s,rowKey:r}),{updateCurrentRowData:Ve,updateCurrentRow:Qe,setCurrentRowKey:wt,states:Tt}=LV({data:s,rowKey:r});return{assertRowKey:oe,updateColumns:Y,scheduleLayout:K,isSelected:ee,clearSelection:B,cleanSelection:Ee,getSelectionRows:me,toggleRowSelection:re,_toggleAllSelection:le,toggleAllSelection:null,updateSelectionByRowKey:Ce,updateAllSelected:ye,updateFilters:X,updateCurrentRow:Qe,updateSort:fe,execFilter:Re,execSort:Le,execQuery:Ke,clearFilter:j,clearSort:J,toggleRowExpansion:xe,setExpandRowKeysAdapter:je=>{ae(je),Ae(je)},setCurrentRowKey:wt,toggleRowExpansionAdapter:(je,He)=>{u.value.some(({type:dt})=>dt==="expand")?xe(je,He):Te(je,He)},isRowExpanded:we,updateExpandRows:de,updateCurrentRowData:Ve,loadOrToggle:Q,updateTreeData:ve,updateKeyChildren:$e,states:be(be(be({tableSize:n,rowKey:r,data:s,_data:o,isComplex:a,_columns:l,originColumns:c,columns:u,fixedColumns:d,rightFixedColumns:f,leafColumns:h,fixedLeafColumns:g,rightFixedLeafColumns:v,updateOrderFns:y,leafColumnsLength:_,fixedLeafColumnsLength:w,rightFixedLeafColumnsLength:A,isAllSelected:C,selection:S,reserveSelection:x,selectOnIndeterminate:O,selectable:N,filters:I,filteredData:F,sortingColumn:D,sortProp:k,sortOrder:q,hoverRow:H},pe),Oe),Tt)}}function _0(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=_0(n.children,t)),n)})}function w0(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&w0(t.children)}),e.sort((t,n)=>t.no-n.no)}function BV(){const e=xt(),t=FV(),n=nt("table"),r={setData(a,l){const c=P(a._data)!==l;a.data.value=l,a._data.value=l,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),P(a.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(a,l,c,u){const d=P(a._columns);let f=[];c?(c&&!c.children&&(c.children=[]),c.children.push(l),f=_0(d,c)):(d.push(l),f=d),w0(f),a._columns.value=f,a.updateOrderFns.push(u),l.type==="selection"&&(a.selectable.value=l.selectable,a.reserveSelection.value=l.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(a,l){var c;((c=l.getColumnIndex)==null?void 0:c.call(l))!==l.no&&(w0(a._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(a,l,c,u){const d=P(a._columns)||[];if(c)c.children.splice(c.children.findIndex(h=>h.id===l.id),1),ft(()=>{var h;((h=c.children)==null?void 0:h.length)===0&&delete c.children}),a._columns.value=_0(d,c);else{const h=d.indexOf(l);h>-1&&(d.splice(h,1),a._columns.value=d)}const f=a.updateOrderFns.indexOf(u);f>-1&&a.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(a,l){const{prop:c,order:u,init:d}=l;if(c){const f=P(a.columns).find(h=>h.property===c);f&&(f.order=u,e.store.updateSort(f,c,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(a,l){const{sortingColumn:c,sortProp:u,sortOrder:d}=a,f=P(c),h=P(u),g=P(d);g===null&&(a.sortingColumn.value=null,a.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!l||!(l.silent||l.init))&&e.emit("sort-change",{column:f,prop:h,order:g}),e.store.updateTableScrollY()},filterChange(a,l){const{column:c,values:u,silent:d}=l,f=e.store.updateFilters(c,u);e.store.execQuery(),d||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(a,l){e.store.toggleRowSelection(l),e.store.updateAllSelected()},setHoverRow(a,l){a.hoverRow.value=l},setCurrentRow(a,l){e.store.updateCurrentRow(l)}},s=function(a,...l){const c=e.store.mutations;if(c[a])c[a].apply(e,[e.store.states].concat(l));else throw new Error(`Action not found: ${a}`)},o=function(){ft(()=>e.layout.updateScrollY.apply(e.layout))};return Me(be({ns:n},t),{mutations:r,commit:s,updateTableScrollY:o})}const Jc={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function jV(e,t){if(!e)throw new Error("Table is required.");const n=BV();return n.toggleAllSelection=ko(n._toggleAllSelection,10),Object.keys(Jc).forEach(r=>{oS(aS(t,r),r,n)}),UV(n,t),n}function UV(e,t){Object.keys(Jc).forEach(n=>{ze(()=>aS(t,n),r=>{oS(r,n,e)})})}function oS(e,t,n){let r=e,s=Jc[t];typeof Jc[t]=="object"&&(s=s.key,r=r||Jc[t].default),n.states[s].value=r}function aS(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(s=>{r=r[s]}),r}else return e[t]}class $V{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=ie(null),this.scrollX=ie(!1),this.scrollY=ie(!1),this.bodyWidth=ie(null),this.fixedWidth=ie(null),this.rightFixedWidth=ie(null),this.gutterWidth=0;for(const n in t)vt(t,n)&&(Bt(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.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const s=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,s!==r}return!1}setHeight(t,n="height"){if(!kt)return;const r=this.table.vnode.el;if(t=OV(t),this.height.value=Number(t),!r&&(t||t===0))return ft(()=>this.setHeight(t,n));Vt(t)?(r.style[n]=`${t}px`,this.updateElsHeight()):Xe(t)&&(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(){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(!kt)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const s=this.getFlattenColumns(),o=s.filter(c=>!Vt(c.width));if(s.forEach(c=>{Vt(c.width)&&c.realWidth&&(c.realWidth=null)}),o.length>0&&t){if(s.forEach(c=>{r+=Number(c.width||c.minWidth||80)}),r<=n){this.scrollX.value=!1;const c=n-r;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+c;else{const u=o.reduce((h,g)=>h+Number(g.minWidth||80),0),d=c/u;let f=0;o.forEach((h,g)=>{if(g===0)return;const v=Math.floor(Number(h.minWidth||80)*d);f+=v,h.realWidth=Number(h.minWidth||80)+v}),o[0].realWidth=Number(o[0].minWidth||80)+c-f}}else this.scrollX.value=!0,o.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else s.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 a=this.store.states.fixedColumns.value;if(a.length>0){let c=0;a.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 s,o;switch(t){case"columns":(s=r.state)==null||s.onColumnsChange(this);break;case"scrollable":(o=r.state)==null||o.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:VV}=el,zV=Pe({name:"ElTableFilterPanel",components:{ElCheckbox:el,ElCheckboxGroup:VV,ElScrollbar:Hm,ElTooltip:fi,ElIcon:jt,ArrowDown:z3,ArrowUp:CM},directives:{ClickOutside:wC},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:{type:String}},setup(e){const t=xt(),{t:n}=Va(),r=nt("table-filter"),s=t==null?void 0:t.parent;s.filterPanels.value[e.column.id]||(s.filterPanels.value[e.column.id]=t);const o=ie(!1),a=ie(null),l=W(()=>e.column&&e.column.filters),c=W(()=>e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b()),u=W({get:()=>{var x;return(((x=e.column)==null?void 0:x.filteredValue)||[])[0]},set:x=>{d.value&&(typeof x!="undefined"&&x!==null?d.value.splice(0,1,x):d.value.splice(0,1))}}),d=W({get(){return e.column?e.column.filteredValue||[]:[]},set(x){e.column&&e.upDataColumn("filteredValue",x)}}),f=W(()=>e.column?e.column.filterMultiple:!0),h=x=>x.value===u.value,g=()=>{o.value=!1},v=x=>{x.stopPropagation(),o.value=!o.value},y=()=>{o.value=!1},_=()=>{C(d.value),g()},w=()=>{d.value=[],C(d.value),g()},A=x=>{u.value=x,C(typeof x!="undefined"&&x!==null?d.value:[]),g()},C=x=>{e.store.commit("filterChange",{column:e.column,values:x}),e.store.updateAllSelected()};ze(o,x=>{e.column&&e.upDataColumn("filterOpened",x)},{immediate:!0});const S=W(()=>{var x,O;return(O=(x=a.value)==null?void 0:x.popperRef)==null?void 0:O.contentRef});return{tooltipVisible:o,multiple:f,filterClassName:c,filteredValue:d,filterValue:u,filters:l,handleConfirm:_,handleReset:w,handleSelect:A,isActive:h,t:n,ns:r,showFilterPanel:v,hideFilterPanel:y,popperPaneRef:S,tooltip:a}}});function qV(e,t,n,r,s,o){const a=Ge("el-checkbox"),l=Ge("el-checkbox-group"),c=Ge("el-scrollbar"),u=Ge("arrow-up"),d=Ge("arrow-down"),f=Ge("el-icon"),h=Ge("el-tooltip"),g=wd("click-outside");return R(),_e(h,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:te(()=>[e.multiple?(R(),V("div",{key:0},[G("div",{class:Z(e.ns.e("content"))},[ne(c,{"wrap-class":e.ns.e("wrap")},{default:te(()=>[ne(l,{modelValue:e.filteredValue,"onUpdate:modelValue":v=>e.filteredValue=v,class:Z(e.ns.e("checkbox-group"))},{default:te(()=>[(R(!0),V(qe,null,Nt(e.filters,v=>(R(),_e(a,{key:v.value,value:v.value},{default:te(()=>[Je(Ne(v.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),G("div",{class:Z(e.ns.e("bottom"))},[G("button",{class:Z({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},Ne(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),G("button",{type:"button",onClick:e.handleReset},Ne(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(R(),V("ul",{key:1,class:Z(e.ns.e("list"))},[G("li",{class:Z([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:v=>e.handleSelect(null)},Ne(e.t("el.table.clearFilter")),11,["onClick"]),(R(!0),V(qe,null,Nt(e.filters,v=>(R(),V("li",{key:v.value,class:Z([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:y=>e.handleSelect(v.value)},Ne(v.text),11,["label","onClick"]))),128))],2))]),default:te(()=>[Dt((R(),V("span",{class:Z([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[ne(f,null,{default:te(()=>[Ie(e.$slots,"filter-icon",{},()=>[e.column.filterOpened?(R(),_e(u,{key:0})):(R(),_e(d,{key:1}))])]),_:3})],10,["onClick"])),[[g,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var HV=lt(zV,[["render",qV],["__file","filter-panel.vue"]]);function lS(e){const t=xt();sc(()=>{n.value.addObserver(t)}),Mt(()=>{r(n.value),s(n.value)}),oc(()=>{r(n.value),s(n.value)}),xo(()=>{n.value.removeObserver(t)});const n=W(()=>{const o=e.layout;if(!o)throw new Error("Can not find table layout.");return o}),r=o=>{var a;const l=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!l.length)return;const c=o.getFlattenColumns(),u={};c.forEach(d=>{u[d.id]=d});for(let d=0,f=l.length;d<f;d++){const h=l[d],g=h.getAttribute("name"),v=u[g];v&&h.setAttribute("width",v.realWidth||v.width)}},s=o=>{var a,l;const c=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=c.length;d<f;d++)c[d].setAttribute("width",o.scrollY.value?o.gutterWidth:"0");const u=((l=e.vnode.el)==null?void 0:l.querySelectorAll("th.gutter"))||[];for(let d=0,f=u.length;d<f;d++){const h=u[d];h.style.width=o.scrollY.value?`${o.gutterWidth}px`:"0",h.style.display=o.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:s}}const Tr=Symbol("ElTable");function GV(e,t){const n=xt(),r=et(Tr),s=y=>{y.stopPropagation()},o=(y,_)=>{!_.filters&&_.sortable?v(y,_,!1):_.filterable&&!_.sortable&&s(y),r==null||r.emit("header-click",_,y)},a=(y,_)=>{r==null||r.emit("header-contextmenu",_,y)},l=ie(null),c=ie(!1),u=ie({}),d=(y,_)=>{if(kt&&!(_.children&&_.children.length>0)&&l.value&&e.border){c.value=!0;const w=r;t("set-drag-visible",!0);const C=(w==null?void 0:w.vnode.el).getBoundingClientRect().left,S=n.vnode.el.querySelector(`th.${_.id}`),x=S.getBoundingClientRect(),O=x.left-C+30;Uo(S,"noclick"),u.value={startMouseLeft:y.clientX,startLeft:x.right-C,startColumnLeft:x.left-C,tableLeft:C};const N=w==null?void 0:w.refs.resizeProxy;N.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const I=D=>{const k=D.clientX-u.value.startMouseLeft,q=u.value.startLeft+k;N.style.left=`${Math.max(O,q)}px`},F=()=>{if(c.value){const{startColumnLeft:D,startLeft:k}=u.value,H=Number.parseInt(N.style.left,10)-D;_.width=_.realWidth=H,w==null||w.emit("header-dragend",_.width,k-D,_,y),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",I),document.removeEventListener("mouseup",F),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Cr(S,"noclick")},0)};document.addEventListener("mousemove",I),document.addEventListener("mouseup",F)}},f=(y,_)=>{var w;if(_.children&&_.children.length>0)return;const A=y.target;if(!wr(A))return;const C=A==null?void 0:A.closest("th");if(!(!_||!_.resizable||!C)&&!c.value&&e.border){const S=C.getBoundingClientRect(),x=document.body.style,O=((w=C.parentNode)==null?void 0:w.lastElementChild)===C;S.width>12&&S.right-y.pageX<8&&!O?(x.cursor="col-resize",jo(C,"is-sortable")&&(C.style.cursor="col-resize"),l.value=_):c.value||(x.cursor="",jo(C,"is-sortable")&&(C.style.cursor="pointer"),l.value=null)}},h=()=>{kt&&(document.body.style.cursor="")},g=({order:y,sortOrders:_})=>{if(y==="")return _[0];const w=_.indexOf(y||null);return _[w>_.length-2?0:w+1]},v=(y,_,w)=>{var A;y.stopPropagation();const C=_.order===w?null:w||g(_),S=(A=y.target)==null?void 0:A.closest("th");if(S&&jo(S,"noclick")){Cr(S,"noclick");return}if(!_.sortable)return;const x=y.currentTarget;if(["ascending","descending"].some(D=>jo(x,D)&&!_.sortOrders.includes(D)))return;const O=e.store.states;let N=O.sortProp.value,I;const F=O.sortingColumn.value;(F!==_||F===_&&F.order===null)&&(F&&(F.order=null),O.sortingColumn.value=_,N=_.property),C?I=_.order=C:I=_.order=null,O.sortProp.value=N,O.sortOrder.value=I,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:a,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:v,handleFilterClick:s}}function WV(e){const t=et(Tr),n=nt("table");return{getHeaderRowStyle:l=>{const c=t==null?void 0:t.props.headerRowStyle;return Fe(c)?c.call(null,{rowIndex:l}):c},getHeaderRowClass:l=>{const c=[],u=t==null?void 0:t.props.headerRowClassName;return Xe(u)?c.push(u):Fe(u)&&c.push(u.call(null,{rowIndex:l})),c.join(" ")},getHeaderCellStyle:(l,c,u,d)=>{var f;let h=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};Fe(h)&&(h=h.call(null,{rowIndex:l,columnIndex:c,row:u,column:d}));const g=y0(c,d.fixed,e.store,u);return tl(g,"left"),tl(g,"right"),Object.assign({},h,g)},getHeaderCellClass:(l,c,u,d)=>{const f=b0(n.b(),c,d.fixed,e.store,u),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const g=t==null?void 0:t.props.headerCellClassName;return Xe(g)?h.push(g):Fe(g)&&h.push(g.call(null,{rowIndex:l,columnIndex:c,row:u,column:d})),h.push(n.e("cell")),h.filter(v=>!!v).join(" ")}}}const cS=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,cS(n.children))):t.push(n)}),t},uS=e=>{let t=1;const n=(o,a)=>{if(a&&(o.level=a.level+1,t<o.level&&(t=o.level)),o.children){let l=0;o.children.forEach(c=>{n(c,o),l+=c.colSpan}),o.colSpan=l}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const r=[];for(let o=0;o<t;o++)r.push([]);return cS(e).forEach(o=>{o.children?(o.rowSpan=1,o.children.forEach(a=>a.isSubColumn=!0)):o.rowSpan=t-o.level+1,r[o.level-1].push(o)}),r};function KV(e){const t=et(Tr),n=W(()=>uS(e.store.states.originColumns.value));return{isGroup:W(()=>{const o=n.value.length>1;return o&&t&&(t.state.isGroup.value=!0),o}),toggleAllSelection:o=>{o.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var JV=Pe({name:"ElTableHeader",components:{ElCheckbox:el},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String}},setup(e,{emit:t}){const n=xt(),r=et(Tr),s=nt("table"),o=ie({}),{onColumnsChange:a,onScrollableChange:l}=lS(r),c=(r==null?void 0:r.props.tableLayout)==="auto",u=new Map,d=ie(),f=()=>{setTimeout(()=>{u.size>0&&(u.forEach((D,k)=>{const q=d.value.querySelector(`.${k.replace(/\s/g,".")}`);if(q){const H=q.getBoundingClientRect().width;D.width=H}}),u.clear())})};Mt(()=>rt(this,null,function*(){yield ft(),yield ft();const{prop:D,order:k}=e.defaultSort;r==null||r.store.commit("sort",{prop:D,order:k,init:!0}),f()}));const{handleHeaderClick:h,handleHeaderContextMenu:g,handleMouseDown:v,handleMouseMove:y,handleMouseOut:_,handleSortClick:w,handleFilterClick:A}=GV(e,t),{getHeaderRowStyle:C,getHeaderRowClass:S,getHeaderCellStyle:x,getHeaderCellClass:O}=WV(e),{isGroup:N,toggleAllSelection:I,columnRows:F}=KV(e);return n.state={onColumnsChange:a,onScrollableChange:l},n.filterPanels=o,{ns:s,filterPanels:o,onColumnsChange:a,onScrollableChange:l,columnRows:F,getHeaderRowClass:S,getHeaderRowStyle:C,getHeaderCellClass:O,getHeaderCellStyle:x,handleHeaderClick:h,handleHeaderContextMenu:g,handleMouseDown:v,handleMouseMove:y,handleMouseOut:_,handleSortClick:w,handleFilterClick:A,isGroup:N,toggleAllSelection:I,saveIndexSelection:u,isTableLayoutAuto:c,theadRef:d,updateFixedColumnStyle:f}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:s,getHeaderRowClass:o,getHeaderRowStyle:a,handleHeaderClick:l,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleSortClick:f,handleMouseOut:h,store:g,$parent:v,saveIndexSelection:y,isTableLayoutAuto:_}=this;let w=1;return ut("thead",{ref:"theadRef",class:{[e.is("group")]:t}},n.map((A,C)=>ut("tr",{class:o(C),key:C,style:a(C)},A.map((S,x)=>{S.rowSpan>w&&(w=S.rowSpan);const O=s(C,x,A,S);return _&&S.fixed&&y.set(O,S),ut("th",{class:O,colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,style:r(C,x,A,S),onClick:N=>{N.currentTarget.classList.contains("noclick")||l(N,S)},onContextmenu:N=>c(N,S),onMousedown:N=>u(N,S),onMousemove:N=>d(N,S),onMouseout:h},[ut("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:x,store:g,_self:v}):S.label,S.sortable&&ut("span",{onClick:N=>f(N,S),class:"caret-wrapper"},[ut("i",{onClick:N=>f(N,S,"ascending"),class:"sort-caret ascending"}),ut("i",{onClick:N=>f(N,S,"descending"),class:"sort-caret descending"})]),S.filterable&&ut(HV,{store:g,placement:S.filterPlacement||"bottom-start",appendTo:v.appendFilterPanelTo,column:S,upDataColumn:(N,I)=>{S[N]=I}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function C0(e,t,n=.03){return e-t>n}function YV(e){const t=et(Tr),n=ie(""),r=ie(ut("div")),s=(v,y,_)=>{var w;const A=t,C=m0(v);let S;const x=(w=A==null?void 0:A.vnode.el)==null?void 0:w.dataset.prefix;C&&(S=QC({columns:e.store.states.columns.value},C,x),S&&(A==null||A.emit(`cell-${_}`,y,S,C,v))),A==null||A.emit(`row-${_}`,y,S,v)},o=(v,y)=>{s(v,y,"dblclick")},a=(v,y)=>{e.store.commit("setCurrentRow",y),s(v,y,"click")},l=(v,y)=>{s(v,y,"contextmenu")},c=ko(v=>{e.store.commit("setHoverRow",v)},30),u=ko(()=>{e.store.commit("setHoverRow",null)},30),d=v=>{const y=window.getComputedStyle(v,null),_=Number.parseInt(y.paddingLeft,10)||0,w=Number.parseInt(y.paddingRight,10)||0,A=Number.parseInt(y.paddingTop,10)||0,C=Number.parseInt(y.paddingBottom,10)||0;return{left:_,right:w,top:A,bottom:C}},f=(v,y,_)=>{let w=y.target.parentNode;for(;v>1&&(w=w==null?void 0:w.nextSibling,!(!w||w.nodeName!=="TR"));)_(w,"hover-row hover-fixed-row"),v--};return{handleDoubleClick:o,handleClick:a,handleContextMenu:l,handleMouseEnter:c,handleMouseLeave:u,handleCellMouseEnter:(v,y,_)=>{var w;const A=t,C=m0(v),S=(w=A==null?void 0:A.vnode.el)==null?void 0:w.dataset.prefix;if(C){const Y=QC({columns:e.store.states.columns.value},C,S);C.rowSpan>1&&f(C.rowSpan,v,Uo);const K=A.hoverState={cell:C,column:Y,row:y};A==null||A.emit("cell-mouse-enter",K.row,K.column,K.cell,v)}if(!_)return;const x=v.target.querySelector(".cell");if(!(jo(x,`${S}-tooltip`)&&x.childNodes.length))return;const O=document.createRange();O.setStart(x,0),O.setEnd(x,x.childNodes.length);const{width:N,height:I}=O.getBoundingClientRect(),{width:F,height:D}=x.getBoundingClientRect(),{top:k,left:q,right:H,bottom:oe}=d(x),ce=q+H,U=k+oe;(C0(N+ce,F)||C0(I+U,D)||C0(x.scrollWidth,F))&&RV(_,C.innerText||C.textContent,C,A)},handleCellMouseLeave:v=>{const y=m0(v);if(!y)return;y.rowSpan>1&&f(y.rowSpan,v,Cr);const _=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",_==null?void 0:_.row,_==null?void 0:_.column,_==null?void 0:_.cell,v)},tooltipContent:n,tooltipTrigger:r}}function XV(e){const t=et(Tr),n=nt("table");return{getRowStyle:(u,d)=>{const f=t==null?void 0:t.props.rowStyle;return Fe(f)?f.call(null,{row:u,rowIndex:d}):f||null},getRowClass:(u,d)=>{const f=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&d%2===1&&f.push(n.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return Xe(h)?f.push(h):Fe(h)&&f.push(h.call(null,{row:u,rowIndex:d})),f},getCellStyle:(u,d,f,h)=>{const g=t==null?void 0:t.props.cellStyle;let v=g!=null?g:{};Fe(g)&&(v=g.call(null,{rowIndex:u,columnIndex:d,row:f,column:h}));const y=y0(d,e==null?void 0:e.fixed,e.store);return tl(y,"left"),tl(y,"right"),Object.assign({},v,y)},getCellClass:(u,d,f,h,g)=>{const v=b0(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,g),y=[h.id,h.align,h.className,...v],_=t==null?void 0:t.props.cellClassName;return Xe(_)?y.push(_):Fe(_)&&y.push(_.call(null,{rowIndex:u,columnIndex:d,row:f,column:h})),y.push(n.e("cell")),y.filter(w=>!!w).join(" ")},getSpan:(u,d,f,h)=>{let g=1,v=1;const y=t==null?void 0:t.props.spanMethod;if(Fe(y)){const _=y({row:u,column:d,rowIndex:f,columnIndex:h});De(_)?(g=_[0],v=_[1]):typeof _=="object"&&(g=_.rowspan,v=_.colspan)}return{rowspan:g,colspan:v}},getColspanRealWidth:(u,d,f)=>{if(d<1)return u[f].realWidth;const h=u.map(({realWidth:g,width:v})=>g||v).slice(f,f+d);return Number(h.reduce((g,v)=>Number(g)+Number(v),-1))}}}const ZV=Pe(Me(be({},Pe({name:"TableTdWrapper"})),{props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(R(),V("td",{colspan:e.colspan,rowspan:e.rowspan},[Ie(t.$slots,"default")],8,["colspan","rowspan"]))}}));var QV=lt(ZV,[["__file","td-wrapper.vue"]]);function ez(e){const t=et(Tr),n=nt("table"),{handleDoubleClick:r,handleClick:s,handleContextMenu:o,handleMouseEnter:a,handleMouseLeave:l,handleCellMouseEnter:c,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:f}=YV(e),{getRowStyle:h,getRowClass:g,getCellStyle:v,getCellClass:y,getSpan:_,getColspanRealWidth:w}=XV(e),A=W(()=>e.store.states.columns.value.findIndex(({type:N})=>N==="default")),C=(N,I)=>{const F=t.props.rowKey;return F?kn(N,F):I},S=(N,I,F,D=!1)=>{const{tooltipEffect:k,tooltipOptions:q,store:H}=e,{indent:oe,columns:ce}=H.states,U=g(N,I);let Y=!0;return F&&(U.push(n.em("row",`level-${F.level}`)),Y=F.display),ut("tr",{style:[Y?null:{display:"none"},h(N,I)],class:U,key:C(N,I),onDblclick:ee=>r(ee,N),onClick:ee=>s(ee,N),onContextmenu:ee=>o(ee,N),onMouseenter:()=>a(I),onMouseleave:l},ce.value.map((ee,B)=>{const{rowspan:Ee,colspan:me}=_(N,ee,I,B);if(!Ee||!me)return null;const re=Object.assign({},ee);re.realWidth=w(ce.value,me,B);const le={store:e.store,_self:e.context||t,column:re,row:N,$index:I,cellIndex:B,expanded:D};B===A.value&&F&&(le.treeNode={indent:F.level*oe.value,level:F.level},pn(F.expanded)&&(le.treeNode.expanded=F.expanded,"loading"in F&&(le.treeNode.loading=F.loading),"noLazyChildren"in F&&(le.treeNode.noLazyChildren=F.noLazyChildren)));const Ce=`${C(N,I)},${B}`,ye=re.columnKey||re.rawColumnKey||"",z=ee.showOverflowTooltip&&B3({effect:k},q,ee.showOverflowTooltip);return ut(QV,{style:v(I,B,N,ee),class:y(I,B,N,ee,me-1),key:`${ye}${Ce}`,rowspan:Ee,colspan:me,onMouseenter:X=>c(X,N,z),onMouseleave:u},{default:()=>x(B,ee,le)})}))},x=(N,I,F)=>I.renderCell(F);return{wrappedRowRender:(N,I)=>{const F=e.store,{isRowExpanded:D,assertRowKey:k}=F,{treeData:q,lazyTreeNodeMap:H,childrenColumnName:oe,rowKey:ce}=F.states,U=F.states.columns.value;if(U.some(({type:K})=>K==="expand")){const K=D(N),ee=S(N,I,void 0,K),B=t.renderExpanded;return K?B?[[ee,ut("tr",{key:`expanded-row__${ee.key}`},[ut("td",{colspan:U.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[B({row:N,$index:I,store:F,expanded:K})])])]]:(console.error("[Element Error]renderExpanded is required."),ee):[[ee]]}else if(Object.keys(q.value).length){k();const K=kn(N,ce.value);let ee=q.value[K],B=null;ee&&(B={expanded:ee.expanded,level:ee.level,display:!0},pn(ee.lazy)&&(pn(ee.loaded)&&ee.loaded&&(B.noLazyChildren=!(ee.children&&ee.children.length)),B.loading=ee.loading));const Ee=[S(N,I,B)];if(ee){let me=0;const re=(Ce,ye)=>{Ce&&Ce.length&&ye&&Ce.forEach(z=>{const X={display:ye.display&&ye.expanded,level:ye.level+1,expanded:!1,noLazyChildren:!1,loading:!1},fe=kn(z,ce.value);if(fe==null)throw new Error("For nested data item, row-key is required.");if(ee=be({},q.value[fe]),ee&&(X.expanded=ee.expanded,ee.level=ee.level||X.level,ee.display=!!(ee.expanded&&X.display),pn(ee.lazy)&&(pn(ee.loaded)&&ee.loaded&&(X.noLazyChildren=!(ee.children&&ee.children.length)),X.loading=ee.loading)),me++,Ee.push(S(z,I+me,X)),ee){const Re=H.value[fe]||z[oe.value];re(Re,ee)}})};ee.display=!0;const le=H.value[K]||N[oe.value];re(le,ee)}return Ee}else return S(N,I,void 0)},tooltipContent:d,tooltipTrigger:f}}var tz=Pe({name:"ElTableBody",props:{store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean},setup(e){const t=xt(),n=et(Tr),r=nt("table"),{wrappedRowRender:s,tooltipContent:o,tooltipTrigger:a}=ez(e),{onColumnsChange:l,onScrollableChange:c}=lS(n),u=[];return ze(e.store.states.hoverRow,(d,f)=>{var h;const g=t==null?void 0:t.vnode.el,v=Array.from((g==null?void 0:g.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${r.e("row")}`));let y=d;const _=(h=v[y])==null?void 0:h.childNodes;if(_!=null&&_.length){let w=0;Array.from(_).reduce((C,S,x)=>{var O,N;return((O=_[x])==null?void 0:O.colSpan)>1&&(w=(N=_[x])==null?void 0:N.colSpan),S.nodeName!=="TD"&&w===0&&C.push(x),w>0&&w--,C},[]).forEach(C=>{var S;for(y=d;y>0;){const x=(S=v[y-1])==null?void 0:S.childNodes;if(x[C]&&x[C].nodeName==="TD"&&x[C].rowSpan>1){Uo(x[C],"hover-cell"),u.push(x[C]);break}y--}})}else u.forEach(w=>Cr(w,"hover-cell")),u.length=0;!e.store.states.isComplex.value||!kt||hM(()=>{const w=v[f],A=v[d];w&&!w.classList.contains("hover-fixed-row")&&Cr(w,"hover-row"),A&&Uo(A,"hover-row")})}),xo(()=>{var d;(d=Oi)==null||d()}),{ns:r,onColumnsChange:l,onScrollableChange:c,wrappedRowRender:s,tooltipContent:o,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return ut("tbody",{tabIndex:-1},[n.reduce((r,s)=>r.concat(e(s,r.length)),[])])}});function nz(){const e=et(Tr),t=e==null?void 0:e.store,n=W(()=>t.states.fixedLeafColumnsLength.value),r=W(()=>t.states.rightFixedColumns.value.length),s=W(()=>t.states.columns.value.length),o=W(()=>t.states.fixedColumns.value.length),a=W(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:s,leftFixedCount:o,rightFixedCount:a,columns:t.states.columns}}function iz(e){const{columns:t}=nz(),n=nt("table");return{getCellClasses:(o,a)=>{const l=o[a],c=[n.e("cell"),l.id,l.align,l.labelClassName,...b0(n.b(),a,l.fixed,e.store)];return l.className&&c.push(l.className),l.children||c.push(n.is("leaf")),c},getCellStyles:(o,a)=>{const l=y0(a,o.fixed,e.store);return tl(l,"left"),tl(l,"right"),l},columns:t}}var rz=Pe({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}=iz(e);return{ns:nt("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:s}=this,o=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:o}):e.forEach((l,c)=>{if(c===0){a[c]=s;return}const u=o.map(g=>Number(g[l.property])),d=[];let f=!0;u.forEach(g=>{if(!Number.isNaN(+g)){f=!1;const v=`${g}`.split(".")[1];d.push(v?v.length:0)}});const h=Math.max.apply(null,d);f?a[c]="":a[c]=u.reduce((g,v)=>{const y=Number(v);return Number.isNaN(+y)?g:Number.parseFloat((g+v).toFixed(Math.min(h,20)))},0)}),ut(ut("tfoot",[ut("tr",{},[...e.map((l,c)=>ut("td",{key:c,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,c),style:t(l,c)},[ut("div",{class:["cell",l.labelClassName]},[a[c]])]))])]))}});function sz(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h,g=!0)=>{e.toggleRowSelection(f,h,!1,g),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})},updateKeyChildren:(f,h)=>{e.updateKeyChildren(f,h)}}}function oz(e,t,n,r){const s=ie(!1),o=ie(null),a=ie(!1),l=K=>{a.value=K},c=ie({width:null,height:null,headerHeight:null}),u=ie(!1),d={display:"inline-block",verticalAlign:"middle"},f=ie(),h=ie(0),g=ie(0),v=ie(0),y=ie(0),_=ie(0);Ds(()=>{t.setHeight(e.height)}),Ds(()=>{t.setMaxHeight(e.maxHeight)}),ze(()=>[e.currentRowKey,n.states.rowKey],([K,ee])=>{!P(ee)||!P(K)||n.setCurrentRowKey(`${K}`)},{immediate:!0}),ze(()=>e.data,K=>{r.store.commit("setData",K)},{immediate:!0,deep:!0}),Ds(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const w=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},A=(K,ee)=>{const{pixelX:B,pixelY:Ee}=ee;Math.abs(B)>=Math.abs(Ee)&&(r.refs.bodyWrapper.scrollLeft+=ee.pixelX/5)},C=W(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),S=W(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{C.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(F)};Mt(()=>rt(this,null,function*(){yield ft(),n.updateColumns(),D(),requestAnimationFrame(x);const K=r.vnode.el,ee=r.refs.headerWrapper;e.flexible&&K&&K.parentElement&&(K.parentElement.style.minWidth="0"),c.value={width:f.value=K.offsetWidth,height:K.offsetHeight,headerHeight:e.showHeader&&ee?ee.offsetHeight:null},n.states.columns.value.forEach(B=>{B.filteredValue&&B.filteredValue.length&&r.store.commit("filterChange",{column:B,values:B.filteredValue,silent:!0})}),r.$ready=!0}));const O=(K,ee)=>{if(!K)return;const B=Array.from(K.classList).filter(Ee=>!Ee.startsWith("is-scrolling-"));B.push(t.scrollX.value?ee:"is-scrolling-none"),K.className=B.join(" ")},N=K=>{const{tableWrapper:ee}=r.refs;O(ee,K)},I=K=>{const{tableWrapper:ee}=r.refs;return!!(ee&&ee.classList.contains(K))},F=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const Ce="is-scrolling-none";I(Ce)||N(Ce);return}const K=r.refs.scrollBarRef.wrapRef;if(!K)return;const{scrollLeft:ee,offsetWidth:B,scrollWidth:Ee}=K,{headerWrapper:me,footerWrapper:re}=r.refs;me&&(me.scrollLeft=ee),re&&(re.scrollLeft=ee);const le=Ee-B-1;ee>=le?N("is-scrolling-right"):N(ee===0?"is-scrolling-left":"is-scrolling-middle")},D=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Ei(r.refs.scrollBarRef.wrapRef,"scroll",F,{passive:!0}),e.fit?li(r.vnode.el,k):Ei(window,"resize",k),li(r.refs.bodyWrapper,()=>{var K,ee;k(),(ee=(K=r.refs)==null?void 0:K.scrollBarRef)==null||ee.update()}))},k=()=>{var K,ee,B,Ee;const me=r.vnode.el;if(!r.$ready||!me)return;let re=!1;const{width:le,height:Ce,headerHeight:ye}=c.value,z=f.value=me.offsetWidth;le!==z&&(re=!0);const X=me.offsetHeight;(e.height||C.value)&&Ce!==X&&(re=!0);const fe=e.tableLayout==="fixed"?r.refs.headerWrapper:(K=r.refs.tableHeaderRef)==null?void 0:K.$el;e.showHeader&&(fe==null?void 0:fe.offsetHeight)!==ye&&(re=!0),h.value=((ee=r.refs.tableWrapper)==null?void 0:ee.scrollHeight)||0,v.value=(fe==null?void 0:fe.scrollHeight)||0,y.value=((B=r.refs.footerWrapper)==null?void 0:B.offsetHeight)||0,_.value=((Ee=r.refs.appendWrapper)==null?void 0:Ee.offsetHeight)||0,g.value=h.value-v.value-y.value-_.value,re&&(c.value={width:z,height:X,headerHeight:e.showHeader&&(fe==null?void 0:fe.offsetHeight)||0},x())},q=Pr(),H=W(()=>{const{bodyWidth:K,scrollY:ee,gutterWidth:B}=t;return K.value?`${K.value-(ee.value?B:0)}px`:""}),oe=W(()=>e.maxHeight?"fixed":e.tableLayout),ce=W(()=>{if(e.data&&e.data.length)return null;let K="100%";e.height&&g.value&&(K=`${g.value}px`);const ee=f.value;return{width:ee?`${ee}px`:"",height:K}}),U=W(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+y.value}px)`}:{maxHeight:`${e.maxHeight-v.value-y.value}px`}:{});return{isHidden:s,renderExpanded:o,setDragVisible:l,isGroup:u,handleMouseLeave:w,handleHeaderFooterMousewheel:A,tableSize:q,emptyBlockStyle:ce,handleFixedMousewheel:(K,ee)=>{const B=r.refs.bodyWrapper;if(Math.abs(ee.spinY)>0){const Ee=B.scrollTop;ee.pixelY<0&&Ee!==0&&K.preventDefault(),ee.pixelY>0&&B.scrollHeight-B.clientHeight>Ee&&K.preventDefault(),B.scrollTop+=Math.ceil(ee.pixelY/5)}else B.scrollLeft+=Math.ceil(ee.pixelX/5)},resizeProxyVisible:a,bodyWidth:H,resizeState:c,doLayout:x,tableBodyStyles:S,tableLayout:oe,scrollbarViewStyle:d,scrollbarStyle:U}}function az(e){const t=ie(),n=()=>{const s=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},a=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{a.forEach(l=>l())}),t.value.observe(s,o)};Mt(()=>{n()}),xo(()=>{var r;(r=t.value)==null||r.disconnect()})}var lz={data:{type:Array,default:()=>[]},size:zs,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,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0}};function dS(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(s=>s.width===void 0)&&(n=[]);const r=s=>{const o={key:`${e.tableLayout}_${s.id}`,style:{},name:void 0};return t?o.style={width:`${s.width}px`}:o.name=s.id,o};return ut("colgroup",{},n.map(s=>ut("col",r(s))))}dS.props=["columns","tableLayout"];const cz=()=>{const e=ie(),t=(o,a)=>{const l=e.value;l&&l.scrollTo(o,a)},n=(o,a)=>{const l=e.value;l&&Vt(a)&&["Top","Left"].includes(o)&&l[`setScroll${o}`](a)};return{scrollBarRef:e,scrollTo:t,setScrollTop:o=>n("Top",o),setScrollLeft:o=>n("Left",o)}};let uz=1;const dz=Pe({name:"ElTable",directives:{Mousewheel:o$},components:{TableHeader:JV,TableBody:tz,TableFooter:rz,ElScrollbar:Hm,hColgroup:dS},props:lz,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}=Va(),n=nt("table"),r=xt();cn(Tr,r);const s=jV(r,e);r.store=s;const o=new $V({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=o;const a=W(()=>(s.states.data.value||[]).length===0),{setCurrentRow:l,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:g,clearSort:v,sort:y,updateKeyChildren:_}=sz(s),{isHidden:w,renderExpanded:A,setDragVisible:C,isGroup:S,handleMouseLeave:x,handleHeaderFooterMousewheel:O,tableSize:N,emptyBlockStyle:I,handleFixedMousewheel:F,resizeProxyVisible:D,bodyWidth:k,resizeState:q,doLayout:H,tableBodyStyles:oe,tableLayout:ce,scrollbarViewStyle:U,scrollbarStyle:Y}=oz(e,o,s,r),{scrollBarRef:K,scrollTo:ee,setScrollLeft:B,setScrollTop:Ee}=cz(),me=ko(H,50),re=`${n.namespace.value}-table_${uz++}`;r.tableId=re,r.state={isGroup:S,resizeState:q,doLayout:H,debouncedUpdateLayout:me};const le=W(()=>{var z;return(z=e.sumText)!=null?z:t("el.table.sumText")}),Ce=W(()=>{var z;return(z=e.emptyText)!=null?z:t("el.table.emptyText")}),ye=W(()=>uS(s.states.originColumns.value)[0]);return az(r),hn(()=>{me.cancel()}),{ns:n,layout:o,store:s,columns:ye,handleHeaderFooterMousewheel:O,handleMouseLeave:x,tableId:re,tableSize:N,isHidden:w,isEmpty:a,renderExpanded:A,resizeProxyVisible:D,resizeState:q,isGroup:S,bodyWidth:k,tableBodyStyles:oe,emptyBlockStyle:I,debouncedUpdateLayout:me,handleFixedMousewheel:F,setCurrentRow:l,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:g,clearSort:v,doLayout:H,sort:y,updateKeyChildren:_,t,setDragVisible:C,context:r,computedSumText:le,computedEmptyText:Ce,tableLayout:ce,scrollbarViewStyle:U,scrollbarStyle:Y,scrollBarRef:K,scrollTo:ee,setScrollLeft:B,setScrollTop:Ee}}});function fz(e,t,n,r,s,o){const a=Ge("hColgroup"),l=Ge("table-header"),c=Ge("table-body"),u=Ge("table-footer"),d=Ge("el-scrollbar"),f=wd("mousewheel");return R(),V("div",{ref:"tableWrapper",class:Z([{[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:Ze(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[G("div",{class:Z(e.ns.e("inner-wrapper"))},[G("div",{ref:"hiddenColumns",class:"hidden-columns"},[Ie(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Dt((R(),V("div",{key:0,ref:"headerWrapper",class:Z(e.ns.e("header-wrapper"))},[G("table",{ref:"tableHeader",class:Z(e.ns.e("header")),style:Ze(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[ne(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),ne(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):se("v-if",!0),G("div",{ref:"bodyWrapper",class:Z(e.ns.e("body-wrapper"))},[ne(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex},{default:te(()=>[G("table",{ref:"tableBody",class:Z(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ze({width:e.bodyWidth,tableLayout:e.tableLayout})},[ne(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(R(),_e(l,{key:0,ref:"tableHeaderRef",class:Z(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):se("v-if",!0),ne(c,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(R(),_e(u,{key:1,class:Z(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):se("v-if",!0)],6),e.isEmpty?(R(),V("div",{key:0,ref:"emptyBlock",style:Ze(e.emptyBlockStyle),class:Z(e.ns.e("empty-block"))},[G("span",{class:Z(e.ns.e("empty-text"))},[Ie(e.$slots,"empty",{},()=>[Je(Ne(e.computedEmptyText),1)])],2)],6)):se("v-if",!0),e.$slots.append?(R(),V("div",{key:1,ref:"appendWrapper",class:Z(e.ns.e("append-wrapper"))},[Ie(e.$slots,"append")],2)):se("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex"])],2),e.showSummary&&e.tableLayout==="fixed"?Dt((R(),V("div",{key:1,ref:"footerWrapper",class:Z(e.ns.e("footer-wrapper"))},[G("table",{class:Z(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Ze(e.tableBodyStyles)},[ne(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),ne(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[wn,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):se("v-if",!0),e.border||e.isGroup?(R(),V("div",{key:2,class:Z(e.ns.e("border-left-patch"))},null,2)):se("v-if",!0)],2),Dt(G("div",{ref:"resizeProxy",class:Z(e.ns.e("column-resize-proxy"))},null,2),[[wn,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var hz=lt(dz,[["render",fz],["__file","table.vue"]]);const pz={selection:"table-column--selection",expand:"table__expand-column"},gz={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:""}},mz=e=>pz[e]||"",vz={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return ut(el,{disabled:n(),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,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return ut(el,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:s=>s.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},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 Vt(r)?n=t+r:Fe(r)&&(n=r(t)),ut("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,s=[r.e("expand-icon")];return n&&s.push(r.em("expand-icon","expanded")),ut("div",{class:s,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[ut(jt,null,{default:()=>[ut(bm)]})]})},sortable:!1,resizable:!1}};function bz({row:e,column:t,$index:n}){var r;const s=t.property,o=s&&Kd(e,s).value;return t&&t.formatter?t.formatter(e,t,o,n):((r=o==null?void 0:o.toString)==null?void 0:r.call(o))||""}function yz({row:e,treeNode:t,store:n},r=!1){const{ns:s}=n;if(!t)return r?[ut("span",{class:s.e("placeholder")})]:null;const o=[],a=function(l){l.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&o.push(ut("span",{class:s.e("indent"),style:{"padding-left":`${t.indent}px`}})),pn(t.expanded)&&!t.noLazyChildren){const l=[s.e("expand-icon"),t.expanded?s.em("expand-icon","expanded"):""];let c=bm;t.loading&&(c=Ua),o.push(ut("div",{class:l,onClick:a},{default:()=>[ut(jt,{class:{[s.is("loading")]:t.loading}},{default:()=>[ut(c)]})]}))}else o.push(ut("span",{class:s.e("placeholder")}));return o}function fS(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function _z(e,t){const n=xt();return{registerComplexWatchers:()=>{const o=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},l=fS(o,a);Object.keys(l).forEach(c=>{const u=a[c];vt(t,u)&&ze(()=>t[u],d=>{let f=d;u==="width"&&c==="realWidth"&&(f=v0(d)),u==="minWidth"&&c==="realMinWidth"&&(f=eS(d)),n.columnConfig.value[u]=f,n.columnConfig.value[c]=f;const h=u==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const o=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=fS(o,a);Object.keys(l).forEach(c=>{const u=a[c];vt(t,u)&&ze(()=>t[u],d=>{n.columnConfig.value[c]=d})})}}}function wz(e,t,n){const r=xt(),s=ie(""),o=ie(!1),a=ie(),l=ie(),c=nt("table");Ds(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),Ds(()=>{l.value=e.headerAlign?`is-${e.headerAlign}`:a.value,l.value});const u=W(()=>{let S=r.vnode.vParent||r.parent;for(;S&&!S.tableId&&!S.columnId;)S=S.vnode.vParent||S.parent;return S}),d=W(()=>{const{store:S}=r.parent;if(!S)return!1;const{treeData:x}=S.states,O=x.value;return O&&Object.keys(O).length>0}),f=ie(v0(e.width)),h=ie(eS(e.minWidth)),g=S=>(f.value&&(S.width=f.value),h.value&&(S.minWidth=h.value),!f.value&&h.value&&(S.width=void 0),S.minWidth||(S.minWidth=80),S.realWidth=Number(S.width===void 0?S.minWidth:S.width),S),v=S=>{const x=S.type,O=vz[x]||{};Object.keys(O).forEach(I=>{const F=O[I];I!=="className"&&F!==void 0&&(S[I]=F)});const N=mz(x);if(N){const I=`${P(c.namespace)}-${N}`;S.className=S.className?`${S.className} ${I}`:I}return S},y=S=>{De(S)?S.forEach(O=>x(O)):x(S);function x(O){var N;((N=O==null?void 0:O.type)==null?void 0:N.name)==="ElTableColumn"&&(O.vParent=r)}};return{columnId:s,realAlign:a,isSubColumn:o,realHeaderAlign:l,columnOrTableParent:u,setColumnWidth:g,setColumnForcedProps:v,setColumnRenders:S=>{e.renderHeader||S.type!=="selection"&&(S.renderHeader=O=>(r.columnConfig.value.label,Ie(t,"header",O,()=>[S.label]))),t["filter-icon"]&&(S.renderFilterIcon=O=>Ie(t,"filter-icon",O));let x=S.renderCell;return S.type==="expand"?(S.renderCell=O=>ut("div",{class:"cell"},[x(O)]),n.value.renderExpanded=O=>t.default?t.default(O):t.default):(x=x||bz,S.renderCell=O=>{let N=null;if(t.default){const H=t.default(O);N=H.some(oe=>oe.type!==xn)?H:x(O)}else N=x(O);const{columns:I}=n.value.store.states,F=I.value.findIndex(H=>H.type==="default"),D=d.value&&O.cellIndex===F,k=yz(O,D),q={class:"cell",style:{}};return S.showOverflowTooltip&&(q.class=`${q.class} ${P(c.namespace)}-tooltip`,q.style={width:`${(O.column.realWidth||Number(O.column.width))-1}px`}),y(N),ut("div",q,[k,N])}),S},getPropsData:(...S)=>S.reduce((x,O)=>(De(O)&&O.forEach(N=>{x[N]=e[N]}),x),{}),getColumnElIndex:(S,x)=>Array.prototype.indexOf.call(S,x),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var Cz={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Sz=1;var hS=Pe({name:"ElTableColumn",components:{ElCheckbox:el},props:Cz,setup(e,{slots:t}){const n=xt(),r=ie({}),s=W(()=>{let C=n.parent;for(;C&&!C.tableId;)C=C.parent;return C}),{registerNormalWatchers:o,registerComplexWatchers:a}=_z(s,e),{columnId:l,isSubColumn:c,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:g,getPropsData:v,getColumnElIndex:y,realAlign:_,updateColumnOrder:w}=wz(e,t,s),A=d.value;l.value=`${A.tableId||A.columnId}_column_${Sz++}`,sc(()=>{c.value=s.value!==A;const C=e.type||"default",S=e.sortable===""?!0:e.sortable,x=ci(e.showOverflowTooltip)?A.props.showOverflowTooltip:e.showOverflowTooltip,O=Me(be({},gz[C]),{id:l.value,type:C,property:e.prop||e.property,align:_,headerAlign:u,showOverflowTooltip:x,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:S,index:e.index,rawColumnKey:n.vnode.key});let k=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);k=TV(O,k),k=NV(g,f,h)(k),r.value=k,o(),a()}),Mt(()=>{var C;const S=d.value,x=c.value?S.vnode.el.children:(C=S.refs.hiddenColumns)==null?void 0:C.children,O=()=>y(x||[],n.vnode.el);r.value.getColumnIndex=O,O()>-1&&s.value.store.commit("insertColumn",r.value,c.value?S.columnConfig.value:null,w)}),hn(()=>{const C=r.value.getColumnIndex;(C?C():-1)>-1&&s.value.store.commit("removeColumn",r.value,c.value?A.columnConfig.value:null,w)}),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}),s=[];if(De(r))for(const a of r)((n=a.type)==null?void 0:n.name)==="ElTableColumn"||a.shapeFlag&2?s.push(a):a.type===qe&&De(a.children)&&a.children.forEach(l=>{(l==null?void 0:l.patchFlag)!==1024&&!Xe(l==null?void 0:l.children)&&s.push(l)});return ut("div",s)}catch(r){return ut("div",[])}}});const Ez=vn(hz,{TableColumn:hS}),xz=as(hS),pS=Symbol("uploadContextKey"),Az="ElUpload";class Pz extends Error{constructor(t,n,r,s){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=s}}function gS(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 Pz(r,n.status,t.method,e)}function Tz(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}const Oz=e=>{typeof XMLHttpRequest=="undefined"&&Bo(Az,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",o=>{const a=o;a.percent=o.total>0?o.loaded/o.total*100:0,e.onProgress(a)});const r=new FormData;if(e.data)for(const[o,a]of Object.entries(e.data))De(a)&&a.length?r.append(o,...a):r.append(o,a);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(gS(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(gS(n,e,t));e.onSuccess(Tz(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const s=e.headers||{};if(s instanceof Headers)s.forEach((o,a)=>t.setRequestHeader(a,o));else for(const[o,a]of Object.entries(s))Fo(a)||t.setRequestHeader(o,String(a));return t.send(r),t},mS=["text","picture","picture-card"];let Nz=1;const S0=()=>Date.now()+Nz++,vS=ht({action:{type:String,default:"#"},headers:{type:Be(Object)},method:{type:String,default:"post"},data:{type:Be([Object,Function,Promise]),default:()=>Rc({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Be(Array),default:()=>Rc([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:mS,default:"text"},httpRequest:{type:Be(Function),default:Oz},disabled:Boolean,limit:Number}),Iz=ht(Me(be({},vS),{beforeUpload:{type:Be(Function),default:Ct},beforeRemove:{type:Be(Function)},onRemove:{type:Be(Function),default:Ct},onChange:{type:Be(Function),default:Ct},onPreview:{type:Be(Function),default:Ct},onSuccess:{type:Be(Function),default:Ct},onProgress:{type:Be(Function),default:Ct},onError:{type:Be(Function),default:Ct},onExceed:{type:Be(Function),default:Ct},crossorigin:{type:Be(String)}})),Rz=ht({files:{type:Be(Array),default:()=>Rc([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Be(Function),default:Ct},listType:{type:String,values:mS,default:"text"},crossorigin:{type:Be(String)}}),Dz={remove:e=>!!e},Lz=Pe(Me(be({},Pe({name:"ElUploadList"})),{props:Rz,emits:Dz,setup(e,{emit:t}){const n=e,{t:r}=Va(),s=nt("upload"),o=nt("icon"),a=nt("list"),l=cs(),c=ie(!1),u=W(()=>[s.b("list"),s.bm("list",n.listType),s.is("disabled",n.disabled)]),d=f=>{t("remove",f)};return(f,h)=>(R(),_e(cw,{tag:"ul",class:Z(P(u)),name:P(a).b()},{default:te(()=>[(R(!0),V(qe,null,Nt(f.files,(g,v)=>(R(),V("li",{key:g.uid||g.name,class:Z([P(s).be("list","item"),P(s).is(g.status),{focusing:c.value}]),tabindex:"0",onKeydown:Xi(y=>!P(l)&&d(g),["delete"]),onFocus:y=>c.value=!0,onBlur:y=>c.value=!1,onClick:y=>c.value=!1},[Ie(f.$slots,"default",{file:g,index:v},()=>[f.listType==="picture"||g.status!=="uploading"&&f.listType==="picture-card"?(R(),V("img",{key:0,class:Z(P(s).be("list","item-thumbnail")),src:g.url,crossorigin:f.crossorigin,alt:""},null,10,["src","crossorigin"])):se("v-if",!0),g.status==="uploading"||f.listType!=="picture-card"?(R(),V("div",{key:1,class:Z(P(s).be("list","item-info"))},[G("a",{class:Z(P(s).be("list","item-name")),onClick:mt(y=>f.handlePreview(g),["prevent"])},[ne(P(jt),{class:Z(P(o).m("document"))},{default:te(()=>[ne(P(IM))]),_:1},8,["class"]),G("span",{class:Z(P(s).be("list","item-file-name")),title:g.name},Ne(g.name),11,["title"])],10,["onClick"]),g.status==="uploading"?(R(),_e(P(xV),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(g.percentage),style:Ze(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):se("v-if",!0)],2)):se("v-if",!0),G("label",{class:Z(P(s).be("list","item-status-label"))},[f.listType==="text"?(R(),_e(P(jt),{key:0,class:Z([P(o).m("upload-success"),P(o).m("circle-check")])},{default:te(()=>[ne(P(ym))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(R(),_e(P(jt),{key:1,class:Z([P(o).m("upload-success"),P(o).m("check")])},{default:te(()=>[ne(P(q3))]),_:1},8,["class"])):se("v-if",!0)],2),P(l)?se("v-if",!0):(R(),_e(P(jt),{key:2,class:Z(P(o).m("close")),onClick:y=>d(g)},{default:te(()=>[ne(P(ja))]),_:2},1032,["class","onClick"])),se(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),se(" This is a bug which needs to be fixed "),se(" TODO: Fix the incorrect navigation interaction "),P(l)?se("v-if",!0):(R(),V("i",{key:3,class:Z(P(o).m("close-tip"))},Ne(P(r)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(R(),V("span",{key:4,class:Z(P(s).be("list","item-actions"))},[G("span",{class:Z(P(s).be("list","item-preview")),onClick:y=>f.handlePreview(g)},[ne(P(jt),{class:Z(P(o).m("zoom-in"))},{default:te(()=>[ne(P(qM))]),_:1},8,["class"])],10,["onClick"]),P(l)?se("v-if",!0):(R(),V("span",{key:0,class:Z(P(s).be("list","item-delete")),onClick:y=>d(g)},[ne(P(jt),{class:Z(P(o).m("delete"))},{default:te(()=>[ne(P(OM))]),_:1},8,["class"])],10,["onClick"]))],2)):se("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),Ie(f.$slots,"append")]),_:3},8,["class","name"]))}}));var bS=lt(Lz,[["__file","upload-list.vue"]]);const kz=ht({disabled:{type:Boolean,default:!1}}),Mz={file:e=>De(e)},yS="ElUploadDrag",Fz=Pe(Me(be({},Pe({name:yS})),{props:kz,emits:Mz,setup(e,{emit:t}){et(pS)||Bo(yS,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=nt("upload"),s=ie(!1),o=cs(),a=c=>{if(o.value)return;s.value=!1,c.stopPropagation();const u=Array.from(c.dataTransfer.files);t("file",u)},l=()=>{o.value||(s.value=!0)};return(c,u)=>(R(),V("div",{class:Z([P(r).b("dragger"),P(r).is("dragover",s.value)]),onDrop:mt(a,["prevent"]),onDragover:mt(l,["prevent"]),onDragleave:mt(d=>s.value=!1,["prevent"])},[Ie(c.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}}));var Bz=lt(Fz,[["__file","upload-dragger.vue"]]);const jz=ht(Me(be({},vS),{beforeUpload:{type:Be(Function),default:Ct},onRemove:{type:Be(Function),default:Ct},onStart:{type:Be(Function),default:Ct},onSuccess:{type:Be(Function),default:Ct},onProgress:{type:Be(Function),default:Ct},onError:{type:Be(Function),default:Ct},onExceed:{type:Be(Function),default:Ct}})),Uz=Pe(Me(be({},Pe({name:"ElUploadContent",inheritAttrs:!1})),{props:jz,setup(e,{expose:t}){const n=e,r=nt("upload"),s=cs(),o=mn({}),a=mn(),l=y=>{if(y.length===0)return;const{autoUpload:_,limit:w,fileList:A,multiple:C,onStart:S,onExceed:x}=n;if(w&&A.length+y.length>w){x(y,A);return}C||(y=y.slice(0,1));for(const O of y){const N=O;N.uid=S0(),S(N),_&&c(N)}},c=y=>rt(this,null,function*(){if(a.value.value="",!n.beforeUpload)return d(y);let _,w={};try{const C=n.data,S=n.beforeUpload(y);w=yo(n.data)?Us(n.data):n.data,_=yield S,yo(n.data)&&Mo(C,w)&&(w=Us(n.data))}catch(C){_=!1}if(_===!1){n.onRemove(y);return}let A=y;_ instanceof Blob&&(_ instanceof File?A=_:A=new File([_],y.name,{type:y.type})),d(Object.assign(A,{uid:y.uid}),w)}),u=(y,_)=>rt(this,null,function*(){return Fe(y)?y(_):y}),d=(y,_)=>rt(this,null,function*(){const{headers:w,data:A,method:C,withCredentials:S,name:x,action:O,onProgress:N,onSuccess:I,onError:F,httpRequest:D}=n;try{_=yield u(_!=null?_:A,y)}catch(oe){n.onRemove(y);return}const{uid:k}=y,q={headers:w||{},withCredentials:S,file:y,data:_,method:C,filename:x,action:O,onProgress:oe=>{N(oe,y)},onSuccess:oe=>{I(oe,y),delete o.value[k]},onError:oe=>{F(oe,y),delete o.value[k]}},H=D(q);o.value[k]=H,H instanceof Promise&&H.then(q.onSuccess,q.onError)}),f=y=>{const _=y.target.files;_&&l(Array.from(_))},h=()=>{s.value||(a.value.value="",a.value.click())},g=()=>{h()};return t({abort:y=>{gM(o.value).filter(y?([w])=>String(y.uid)===w:()=>!0).forEach(([w,A])=>{A instanceof XMLHttpRequest&&A.abort(),delete o.value[w]})},upload:c}),(y,_)=>(R(),V("div",{class:Z([P(r).b(),P(r).m(y.listType),P(r).is("drag",y.drag),P(r).is("disabled",P(s))]),tabindex:P(s)?"-1":"0",onClick:h,onKeydown:Xi(mt(g,["self"]),["enter","space"])},[y.drag?(R(),_e(Bz,{key:0,disabled:P(s),onFile:l},{default:te(()=>[Ie(y.$slots,"default")]),_:3},8,["disabled"])):Ie(y.$slots,"default",{key:1}),G("input",{ref_key:"inputRef",ref:a,class:Z(P(r).e("input")),name:y.name,disabled:P(s),multiple:y.multiple,accept:y.accept,type:"file",onChange:f,onClick:mt(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}}));var _S=lt(Uz,[["__file","upload-content.vue"]]);const wS="ElUpload",CS=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},$z=(e,t)=>{const n=pN(e,"fileList",void 0,{passive:!0}),r=g=>n.value.find(v=>v.uid===g.uid);function s(g){var v;(v=t.value)==null||v.abort(g)}function o(g=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!g.includes(v.status))}function a(g){n.value=n.value.filter(v=>v!==g)}const l=(g,v)=>{const y=r(v);y&&(console.error(g),y.status="fail",a(y),e.onError(g,y,n.value),e.onChange(y,n.value))},c=(g,v)=>{const y=r(v);y&&(e.onProgress(g,y,n.value),y.status="uploading",y.percentage=Math.round(g.percent))},u=(g,v)=>{const y=r(v);y&&(y.status="success",y.response=g,e.onSuccess(g,y,n.value),e.onChange(y,n.value))},d=g=>{Fo(g.uid)&&(g.uid=S0());const v={name:g.name,percentage:0,status:"ready",size:g.size,raw:g,uid:g.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(g)}catch(y){y.message,e.onError(y,v,n.value)}n.value=[...n.value,v],e.onChange(v,n.value)},f=g=>rt(this,null,function*(){const v=g instanceof File?r(g):g;v||Bo(wS,"file to be removed not found");const y=_=>{s(_),a(_),e.onRemove(_,n.value),CS(_)};e.beforeRemove?(yield e.beforeRemove(v,n.value))!==!1&&y(v):y(v)});function h(){n.value.filter(({status:g})=>g==="ready").forEach(({raw:g})=>{var v;return g&&((v=t.value)==null?void 0:v.upload(g))})}return ze(()=>e.listType,g=>{g!=="picture-card"&&g!=="picture"||(n.value=n.value.map(v=>{const{raw:y,url:_}=v;if(!_&&y)try{v.url=URL.createObjectURL(y)}catch(w){e.onError(w,v,n.value)}return v}))}),ze(n,g=>{for(const v of g)v.uid||(v.uid=S0()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:s,clearFiles:o,handleError:l,handleProgress:c,handleStart:d,handleSuccess:u,handleRemove:f,submit:h,revokeFileObjectURL:CS}},Vz=Pe(Me(be({},Pe({name:"ElUpload"})),{props:Iz,setup(e,{expose:t}){const n=e,r=cs(),s=mn(),{abort:o,submit:a,clearFiles:l,uploadFiles:c,handleStart:u,handleError:d,handleRemove:f,handleSuccess:h,handleProgress:g,revokeFileObjectURL:v}=$z(n,s),y=W(()=>n.listType==="picture-card"),_=W(()=>Me(be({},n),{fileList:c.value,onStart:u,onProgress:g,onSuccess:h,onError:d,onRemove:f}));return hn(()=>{c.value.forEach(v)}),cn(pS,{accept:Ci(n,"accept")}),t({abort:o,submit:a,clearFiles:l,handleStart:u,handleRemove:f}),(w,A)=>(R(),V("div",null,[P(y)&&w.showFileList?(R(),_e(bS,{key:0,disabled:P(r),"list-type":w.listType,files:P(c),crossorigin:w.crossorigin,"handle-preview":w.onPreview,onRemove:P(f)},Cg({append:te(()=>[ne(_S,Ln({ref_key:"uploadRef",ref:s},P(_)),{default:te(()=>[w.$slots.trigger?Ie(w.$slots,"trigger",{key:0}):se("v-if",!0),!w.$slots.trigger&&w.$slots.default?Ie(w.$slots,"default",{key:1}):se("v-if",!0)]),_:3},16)]),_:2},[w.$slots.file?{name:"default",fn:te(({file:C,index:S})=>[Ie(w.$slots,"file",{file:C,index:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):se("v-if",!0),!P(y)||P(y)&&!w.showFileList?(R(),_e(_S,Ln({key:1,ref_key:"uploadRef",ref:s},P(_)),{default:te(()=>[w.$slots.trigger?Ie(w.$slots,"trigger",{key:0}):se("v-if",!0),!w.$slots.trigger&&w.$slots.default?Ie(w.$slots,"default",{key:1}):se("v-if",!0)]),_:3},16)):se("v-if",!0),w.$slots.trigger?Ie(w.$slots,"default",{key:2}):se("v-if",!0),Ie(w.$slots,"tip"),!P(y)&&w.showFileList?(R(),_e(bS,{key:3,disabled:P(r),"list-type":w.listType,files:P(c),crossorigin:w.crossorigin,"handle-preview":w.onPreview,onRemove:P(f)},Cg({_:2},[w.$slots.file?{name:"default",fn:te(({file:C,index:S})=>[Ie(w.$slots,"file",{file:C,index:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):se("v-if",!0)]))}}));var zz=lt(Vz,[["__file","upload.vue"]]);const qz=vn(zz);function Hz(e){let t;const n=ie(!1),r=Rn(Me(be({},e),{originalPosition:"",originalOverflow:"",visible:!1}));function s(h){r.text=h}function o(){const h=r.parent,g=f.ns;if(!h.vLoadingAddClassList){let v=h.getAttribute("loading-number");v=Number.parseInt(v)-1,v?h.setAttribute("loading-number",v.toString()):(Cr(h,g.bm("parent","relative")),h.removeAttribute("loading-number")),Cr(h,g.bm("parent","hidden"))}a(),d.unmount()}function a(){var h,g;(g=(h=f.$el)==null?void 0:h.parentNode)==null||g.removeChild(f.$el)}function l(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(c,400),r.visible=!1,(h=e.closed)==null||h.call(e))}function c(){if(!n.value)return;const h=r.parent;n.value=!1,h.vLoadingAddClassList=void 0,o()}const d=$g(Pe({name:"ElLoading",setup(h,{expose:g}){const{ns:v,zIndex:y}=km("loading");return g({ns:v,zIndex:y}),()=>{const _=r.spinner||r.svg,w=ut("svg",be({class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50"},_?{innerHTML:_}:{}),[ut("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),A=r.text?ut("p",{class:v.b("text")},[r.text]):void 0;return ut(Fs,{name:v.b("fade"),onAfterLeave:c},{default:te(()=>[Dt(ne("div",{style:{backgroundColor:r.background||""},class:[v.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[ut("div",{class:v.b("spinner")},[w,A])]),[[wn,r.visible]])])})}}})),f=d.mount(document.createElement("div"));return Me(be({},mr(r)),{setText:s,removeElLoadingChild:a,close:l,handleAfterLeave:c,vm:f,get $el(){return f.$el}})}let Af;const Gz=function(e={}){if(!kt)return;const t=Wz(e);if(t.fullscreen&&Af)return Af;const n=Hz(Me(be({},t),{closed:()=>{var s;(s=t.closed)==null||s.call(t),t.fullscreen&&(Af=void 0)}}));Kz(t,t.parent,n),SS(t,t.parent,n),t.parent.vLoadingAddClassList=()=>SS(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),ft(()=>n.visible.value=t.visible),t.fullscreen&&(Af=n),n},Wz=e=>{var t,n,r,s;let o;return Xe(e.target)?o=(t=document.querySelector(e.target))!=null?t:document.body:o=e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(s=e.visible)!=null?s:!0,beforeClose:e.beforeClose,closed:e.closed,target:o}},Kz=(e,t,n)=>rt(this,null,function*(){const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,s={};if(e.fullscreen)n.originalPosition.value=Ba(document.body,"position"),n.originalOverflow.value=Ba(document.body,"overflow"),s.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Ba(document.body,"position"),yield ft();for(const o of["top","left"]){const a=o==="top"?"scrollTop":"scrollLeft";s[o]=`${e.target.getBoundingClientRect()[o]+document.body[a]+document.documentElement[a]-Number.parseInt(Ba(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])s[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=Ba(t,"position");for(const[o,a]of Object.entries(s))n.$el.style[o]=a}),SS=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Cr(t,r.bm("parent","relative")):Uo(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Uo(t,r.bm("parent","hidden")):Cr(t,r.bm("parent","hidden"))},Pf=Symbol("ElLoading"),ES=(e,t)=>{var n,r,s,o;const a=t.instance,l=h=>at(t.value)?t.value[h]:void 0,c=h=>{const g=Xe(h)&&(a==null?void 0:a[h])||h;return g&&ie(g)},u=h=>c(l(h)||e.getAttribute(`element-loading-${Qn(h)}`)),d=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(r=l("target"))!=null?r:d?void 0:e,body:(s=l("body"))!=null?s:t.modifiers.body,lock:(o=l("lock"))!=null?o:t.modifiers.lock};e[Pf]={options:f,instance:Gz(f)}},Jz=(e,t)=>{for(const n of Object.keys(t))Bt(t[n])&&(t[n].value=e[n])},xS={mounted(e,t){t.value&&ES(e,t)},updated(e,t){const n=e[Pf];t.oldValue!==t.value&&(t.value&&!t.oldValue?ES(e,t):t.value&&t.oldValue?at(t.value)&&Jz(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Pf])==null||t.instance.close(),e[Pf]=null}},AS=["success","info","warning","error"],Mn=Rc({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:kt?document.body:void 0}),Yz=ht({customClass:{type:String,default:Mn.customClass},center:{type:Boolean,default:Mn.center},dangerouslyUseHTMLString:{type:Boolean,default:Mn.dangerouslyUseHTMLString},duration:{type:Number,default:Mn.duration},icon:{type:os,default:Mn.icon},id:{type:String,default:Mn.id},message:{type:Be([String,Object,Function]),default:Mn.message},onClose:{type:Be(Function),default:Mn.onClose},showClose:{type:Boolean,default:Mn.showClose},type:{type:String,values:AS,default:Mn.type},plain:{type:Boolean,default:Mn.plain},offset:{type:Number,default:Mn.offset},zIndex:{type:Number,default:Mn.zIndex},grouping:{type:Boolean,default:Mn.grouping},repeatNum:{type:Number,default:Mn.repeatNum}}),Xz={destroy:()=>!0},or=cg([]),Zz=e=>{const t=or.findIndex(s=>s.id===e),n=or[t];let r;return t>0&&(r=or[t-1]),{current:n,prev:r}},Qz=e=>{const{prev:t}=Zz(e);return t?t.vm.exposed.bottom.value:0},eq=(e,t)=>or.findIndex(r=>r.id===e)>0?16:t,tq=Pe(Me(be({},Pe({name:"ElMessage"})),{props:Yz,emits:Xz,setup(e,{expose:t}){const n=e,{Close:r}=J3,{ns:s,zIndex:o}=km("message"),{currentZIndex:a,nextZIndex:l}=o,c=ie(),u=ie(!1),d=ie(0);let f;const h=W(()=>n.type?n.type==="error"?"danger":n.type:"info"),g=W(()=>{const N=n.type;return{[s.bm("icon",N)]:N&&Zd[N]}}),v=W(()=>n.icon||Zd[n.type]||""),y=W(()=>Qz(n.id)),_=W(()=>eq(n.id,n.offset)+y.value),w=W(()=>d.value+_.value),A=W(()=>({top:`${_.value}px`,zIndex:a.value}));function C(){n.duration!==0&&({stop:f}=qg(()=>{x()},n.duration))}function S(){f==null||f()}function x(){u.value=!1}function O({code:N}){N===$s.esc&&x()}return Mt(()=>{C(),l(),u.value=!0}),ze(()=>n.repeatNum,()=>{S(),C()}),Ei(document,"keydown",O),li(c,()=>{d.value=c.value.getBoundingClientRect().height}),t({visible:u,bottom:w,close:x}),(N,I)=>(R(),_e(Fs,{name:P(s).b("fade"),onBeforeLeave:N.onClose,onAfterLeave:F=>N.$emit("destroy"),persisted:""},{default:te(()=>[Dt(G("div",{id:N.id,ref_key:"messageRef",ref:c,class:Z([P(s).b(),{[P(s).m(N.type)]:N.type},P(s).is("center",N.center),P(s).is("closable",N.showClose),P(s).is("plain",N.plain),N.customClass]),style:Ze(P(A)),role:"alert",onMouseenter:S,onMouseleave:C},[N.repeatNum>1?(R(),_e(P(RU),{key:0,value:N.repeatNum,type:P(h),class:Z(P(s).e("badge"))},null,8,["value","type","class"])):se("v-if",!0),P(v)?(R(),_e(P(jt),{key:1,class:Z([P(s).e("icon"),P(g)])},{default:te(()=>[(R(),_e(Qt(P(v))))]),_:1},8,["class"])):se("v-if",!0),Ie(N.$slots,"default",{},()=>[N.dangerouslyUseHTMLString?(R(),V(qe,{key:1},[se(" Caution here, message could've been compromised, never use user's input as message "),G("p",{class:Z(P(s).e("content")),innerHTML:N.message},null,10,["innerHTML"])],2112)):(R(),V("p",{key:0,class:Z(P(s).e("content"))},Ne(N.message),3))]),N.showClose?(R(),_e(P(jt),{key:2,class:Z(P(s).e("closeBtn")),onClick:mt(x,["stop"])},{default:te(()=>[ne(P(r))]),_:1},8,["class","onClick"])):se("v-if",!0)],46,["id"]),[[wn,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}}));var nq=lt(tq,[["__file","message.vue"]]);let iq=1;const PS=e=>{const t=!e||Xe(e)||Ls(e)||Fe(e)?{message:e}:e,n=be(be({},Mn),t);if(!n.appendTo)n.appendTo=document.body;else if(Xe(n.appendTo)){let r=document.querySelector(n.appendTo);wr(r)||(r=document.body),n.appendTo=r}return pn(Ar.grouping)&&!n.grouping&&(n.grouping=Ar.grouping),Vt(Ar.duration)&&n.duration===3e3&&(n.duration=Ar.duration),Vt(Ar.offset)&&n.offset===16&&(n.offset=Ar.offset),pn(Ar.showClose)&&!n.showClose&&(n.showClose=Ar.showClose),n},rq=e=>{const t=or.indexOf(e);if(t===-1)return;or.splice(t,1);const{handler:n}=e;n.close()},sq=(r,n)=>{var s=r,{appendTo:e}=s,t=Ps(s,["appendTo"]);const o=`message_${iq++}`,a=t.onClose,l=document.createElement("div"),c=Me(be({},t),{id:o,onClose:()=>{a==null||a(),rq(h)},onDestroy:()=>{Oo(null,l)}}),u=ne(nq,c,Fe(c.message)||Ls(c.message)?{default:Fe(c.message)?c.message:()=>c.message}:null);u.appContext=n||nl._context,Oo(u,l),e.appendChild(l.firstElementChild);const d=u.component,h={id:o,vnode:u,vm:d,handler:{close:()=>{d.exposed.visible.value=!1}},props:u.component.props};return h},nl=(e={},t)=>{if(!kt)return{close:()=>{}};const n=PS(e);if(n.grouping&&or.length){const s=or.find(({vnode:o})=>{var a;return((a=o.props)==null?void 0:a.message)===n.message});if(s)return s.props.repeatNum+=1,s.props.type=n.type,s.handler}if(Vt(Ar.max)&&or.length>=Ar.max)return{close:()=>{}};const r=sq(n,t);return or.push(r),r.handler};AS.forEach(e=>{nl[e]=(t={},n)=>{const r=PS(t);return nl(Me(be({},r),{type:e}),n)}});function oq(e){for(const t of or)(!e||e===t.props.type)&&t.handler.close()}nl.closeAll=oq,nl._context=null;const gn=WM(nl,"$message"),aq=Pe({name:"ElMessageBox",directives:{TrapFocus:QU},components:be({ElButton:Ko,ElFocusTrap:Xm,ElInput:Go,ElOverlay:HC,ElIcon:jt},J3),inheritAttrs:!1,props:{buttonSize:{type:String,validator:YM},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:s,size:o}=km("message-box",W(()=>e.buttonSize)),{t:a}=n,{nextZIndex:l}=r,c=ie(!1),u=Rn({autofocus:!0,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,confirmButtonLoadingIcon:ud(Ua),cancelButtonLoadingIcon:ud(Ua),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),d=W(()=>{const U=u.type;return{[s.bm("icon",U)]:U&&Zd[U]}}),f=xr(),h=xr(),g=W(()=>u.icon||Zd[u.type]||""),v=W(()=>!!u.message),y=ie(),_=ie(),w=ie(),A=ie(),C=ie(),S=W(()=>u.confirmButtonClass);ze(()=>u.inputValue,U=>rt(this,null,function*(){yield ft(),e.boxType==="prompt"&&U!==null&&q()}),{immediate:!0}),ze(()=>c.value,U=>{var Y,K;U&&(e.boxType!=="prompt"&&(u.autofocus?w.value=(K=(Y=C.value)==null?void 0:Y.$el)!=null?K:y.value:w.value=y.value),u.zIndex=l()),e.boxType==="prompt"&&(U?ft().then(()=>{var ee;A.value&&A.value.$el&&(u.autofocus?w.value=(ee=H())!=null?ee:y.value:w.value=y.value)}):(u.editorErrorMessage="",u.validateError=!1))});const x=W(()=>e.draggable),O=W(()=>e.overflow);X3(y,_,x,O),Mt(()=>rt(this,null,function*(){yield ft(),e.closeOnHashChange&&window.addEventListener("hashchange",N)})),hn(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",N)});function N(){c.value&&(c.value=!1,ft(()=>{u.action&&t("action",u.action)}))}const I=()=>{e.closeOnClickModal&&k(u.distinguishCancelAndClose?"close":"cancel")},F=Dm(I),D=U=>{if(u.inputType!=="textarea")return U.preventDefault(),k("confirm")},k=U=>{var Y;e.boxType==="prompt"&&U==="confirm"&&!q()||(u.action=U,u.beforeClose?(Y=u.beforeClose)==null||Y.call(u,U,u,N):N())},q=()=>{if(e.boxType==="prompt"){const U=u.inputPattern;if(U&&!U.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const Y=u.inputValidator;if(Fe(Y)){const K=Y(u.inputValue);if(K===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(Xe(K))return u.editorErrorMessage=K,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},H=()=>{const U=A.value.$refs;return U.input||U.textarea},oe=()=>{k("close")},ce=()=>{e.closeOnPressEscape&&oe()};return e.lockScroll&&e6(c),Me(be({},mr(u)),{ns:s,overlayEvent:F,visible:c,hasMessage:v,typeClass:d,contentId:f,inputId:h,btnSize:o,iconComponent:g,confirmButtonClasses:S,rootRef:y,focusStartRef:w,headerRef:_,inputRef:A,confirmRef:C,doClose:N,handleClose:oe,onCloseRequested:ce,handleWrapperClick:I,handleInputEnter:D,handleAction:k,t:a})}});function lq(e,t,n,r,s,o){const a=Ge("el-icon"),l=Ge("close"),c=Ge("el-input"),u=Ge("el-button"),d=Ge("el-focus-trap"),f=Ge("el-overlay");return R(),_e(Fs,{name:"fade-in-linear",onAfterLeave:h=>e.$emit("vanish"),persisted:""},{default:te(()=>[Dt(ne(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:te(()=>[G("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:Z(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[ne(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:te(()=>[G("div",{ref:"rootRef",class:Z([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ze(e.customStyle),tabindex:"-1",onClick:mt(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(R(),V("div",{key:0,ref:"headerRef",class:Z([e.ns.e("header"),{"show-close":e.showClose}])},[G("div",{class:Z(e.ns.e("title"))},[e.iconComponent&&e.center?(R(),_e(a,{key:0,class:Z([e.ns.e("status"),e.typeClass])},{default:te(()=>[(R(),_e(Qt(e.iconComponent)))]),_:1},8,["class"])):se("v-if",!0),G("span",null,Ne(e.title),1)],2),e.showClose?(R(),V("button",{key:0,type:"button",class:Z(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:Xi(mt(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[ne(a,{class:Z(e.ns.e("close"))},{default:te(()=>[ne(l)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):se("v-if",!0)],2)):se("v-if",!0),G("div",{id:e.contentId,class:Z(e.ns.e("content"))},[G("div",{class:Z(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(R(),_e(a,{key:0,class:Z([e.ns.e("status"),e.typeClass])},{default:te(()=>[(R(),_e(Qt(e.iconComponent)))]),_:1},8,["class"])):se("v-if",!0),e.hasMessage?(R(),V("div",{key:1,class:Z(e.ns.e("message"))},[Ie(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(R(),_e(Qt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(R(),_e(Qt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:te(()=>[Je(Ne(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):se("v-if",!0)],2),Dt(G("div",{class:Z(e.ns.e("input"))},[ne(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":h=>e.inputValue=h,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:Z({invalid:e.validateError}),onKeydown:Xi(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),G("div",{class:Z(e.ns.e("errormsg")),style:Ze({visibility:e.editorErrorMessage?"visible":"hidden"})},Ne(e.editorErrorMessage),7)],2),[[wn,e.showInput]])],10,["id"]),G("div",{class:Z(e.ns.e("btns"))},[e.showCancelButton?(R(),_e(u,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:Z([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:h=>e.handleAction("cancel"),onKeydown:Xi(mt(h=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:te(()=>[Je(Ne(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):se("v-if",!0),Dt(ne(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:Z([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:h=>e.handleAction("confirm"),onKeydown:Xi(mt(h=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:te(()=>[Je(Ne(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[wn,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[wn,e.visible]])]),_:3},8,["onAfterLeave"])}var cq=lt(aq,[["render",lq],["__file","index.vue"]]);const Yc=new Map,uq=e=>{let t=document.body;return e.appendTo&&(Xe(e.appendTo)&&(t=document.querySelector(e.appendTo)),wr(e.appendTo)&&(t=e.appendTo),wr(t)||(t=document.body)),t},dq=(e,t,n=null)=>{const r=ne(cq,e,Fe(e.message)||Ls(e.message)?{default:Fe(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Oo(r,t),uq(e).appendChild(t.firstElementChild),r.component},fq=()=>document.createElement("div"),hq=(e,t)=>{const n=fq();e.onVanish=()=>{Oo(null,n),Yc.delete(s)},e.onAction=o=>{const a=Yc.get(s);let l;e.showInput?l={value:s.inputValue,action:o}:l=o,e.callback?e.callback(l,r.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(l)};const r=dq(e,n,t),s=r.proxy;for(const o in e)vt(e,o)&&!vt(s.$props,o)&&(s[o]=e[o]);return s.visible=!0,s};function il(e,t=null){if(!kt)return Promise.reject();let n;return Xe(e)||Ls(e)?e={message:e}:n=e.callback,new Promise((r,s)=>{const o=hq(e,t!=null?t:il._context);Yc.set(o,{options:e,callback:n,resolve:r,reject:s})})}const pq=["alert","confirm","prompt"],gq={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};pq.forEach(e=>{il[e]=mq(e)});function mq(e){return(t,n,r,s)=>{let o="";return at(n)?(r=n,o=""):ci(n)?o="":o=n,il(Object.assign(be({title:o,message:t,type:""},gq[e]),r,{boxType:e}),s)}}il.close=()=>{Yc.forEach((e,t)=>{t.doClose()}),Yc.clear()},il._context=null;const Ys=il;Ys.install=e=>{Ys._context=e._context,e.config.globalProperties.$msgbox=Ys,e.config.globalProperties.$messageBox=Ys,e.config.globalProperties.$alert=Ys.alert,e.config.globalProperties.$confirm=Ys.confirm,e.config.globalProperties.$prompt=Ys.prompt};const TS=Ys,zpe="",qpe="",Hpe="",Gpe="",E0=new WeakMap;function x0(e){let t=E0.get(e);return t||E0.set(e,t=Object.create(null)),t}function Xs(e,t,n){if(Array.isArray(t))t.forEach(r=>Xs(e,r,n));else{const r=x0(e);(r[t]||(r[t]=[])).push(n)}return e}function Zs(e,t,n){const r=e;if(!t)return E0.set(e,Object.create(null)),r;if(Array.isArray(t))return t.forEach(a=>Zs(e,a,n)),r;const s=x0(e),o=s[t];return o?n?(s[t]=o.filter(a=>!(a===n||a.fn===n)),r):(s[t]=void 0,r):r}function Ye(e,t,...n){e&&e.$emit&&e.$emit(t,...n);const r=x0(e)[t];return r&&r.map(s=>s.apply(e,n)),e}function vq(e){return/^(https?:|mailto:|tel:)/.test(e)}const Wpe="",un=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},bq={name:"ForceGraphSvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal(){return vq(this.iconClass)||this.iconClass.startsWith("data:image")||{}.VITE_LOCAL_ONLY==="true"},iconName(){return`#icon-${this.iconClass}`},svgClass(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon(){return{mask:`url(${this.iconClass}) no-repeat 50% 50%`,"-webkit-mask":`url(${this.iconClass}) no-repeat 50% 50%`}}}},yq=["xlink:href"];function _q(e,t,n,r,s,o){return o.isExternal?(R(),V("div",Ln({key:0},e.$attrs,{style:o.styleExternalIcon,class:"svg-external-icon svg-icon"}),null,16)):(R(),V("svg",Ln({key:1},e.$attrs,{class:o.svgClass,"aria-hidden":"true"}),[G("use",{"xlink:href":o.iconName},null,8,yq)],16))}const Zo=un(bq,[["render",_q],["__scopeId","data-v-73ac1940"]]),Kpe="",Jpe="";class wq{constructor(t){this.init(t)}init(t){this.length=0,this.all=[],this.currentIndex=0,this.dataOrigin={nodes:{},links:{},groups:{}},this.nodeTree={},this.nodeParent={},this.dataNow={nodes:[],links:[],groups:[]},this.showInfo={nodes:0,links:0,timeOut:null,time:100},this.keyNodeIds=null,this.levels=[],this.nodeWidth=40,this.nodeMargin=40,this.layout=["forceLayout","treeLayout"],this.layoutIndex=0,this.isShowNodeMessage=t.isShowNodeMessage}initFromSnapshot({length:t,all:n,currentIndex:r,dataOrigin:s,dataNow:o,showInfo:a,nodeTree:l,nodeParent:c,keyNodeIds:u,layoutIndex:d}){this.length=t,this.all=n,this.currentIndex=r,this.dataOrigin=s,this.nodeTree=l,this.nodeParent=c,this.keyNodeIds=u,this.layoutIndex=d;for(const f in o.nodes)delete o.nodes[f].vx,delete o.nodes[f].vy,delete o.nodes[f].x,delete o.nodes[f].y;this.dataNow=o,this.dataNow.links.map(f=>{f.source=f.source.id,f.target=f.target.id}),this.dataNow=Object.assign({},this.dataNow,{}),this.showInfo=JSON.parse(JSON.stringify(a))}forward(){this.currentIndex<this.length-1&&(this.currentIndex=this.currentIndex+1,this.onAction(this.all[this.currentIndex],!0))}back(){this.currentIndex>=0&&(this.resumeAction(this.all[this.currentIndex]),this.currentIndex=this.currentIndex-1)}pushState(t){this.all=this.all.slice(0,this.currentIndex+1);const n=this.onAction(t);this.all.push(n),this.length=this.all.length,this.currentIndex=this.all.length-1}updateGroups(){const t={};this.dataNow.nodes.map(r=>{var s;t[r.group]?t[r.group].nodes.push(r):t[r.group]={nodes:[r],id:r.group,api:(s=r.group)==null?void 0:s.split("~")[1],apiName:r.groupC}});const n=Object.values(t);this.dataNow.groups=n}onAction(t,n=!1){const r=this,s=this.dataNow.nodes.length,o=this.dataNow.links.length,{addOne:a,updateOne:l,deleteOne:c,type:u}=t;a&&(a.originNodes=[],a.nodes&&a.nodes.map(g=>{(!this.dataOrigin.nodes[g.id]||u==="aggregation"||u==="addFromAggregation")&&(this.dataOrigin.nodes[g.id]=!0,delete g.vx,delete g.vy,delete g.x,delete g.y,this.dataNow.nodes.push(g),a.originNodes.push(g))}),a.links&&a.links.map(g=>{g.source=g.source.id?g.source.id:g.source,g.target=g.target.id?g.target.id:g.target,(!this.dataOrigin.links[`${g.source}+${g.target}`]&&!this.dataOrigin.links[`${g.target}+${g.source}`]||u==="aggregation"||u==="addFromAggregation")&&(this.dataOrigin.links[`${g.source}+${g.target}`]=!0,this.dataNow.links.push(g),this.updateNodeTree(g),this.updateNodeParent(g))})),l&&(l.originNodes=[],l.originLinks=[],l.nodes&&l.nodes.map(g=>{for(const v in this.dataNow.nodes)if(g.id===this.dataNow.nodes[v].id){const y=[];g.keyVals.map(_=>{y.push({key:_.key,value:JSON.parse(JSON.stringify(this.dataNow.nodes[v][_.key]))})}),l.originNodes.push({id:g.id,keyVals:y}),g.keyVals.map(_=>{this.dataNow.nodes[v][_.key]=_.value});break}}),l.links&&l.links.map(g=>{for(const v in this.dataNow.links)if(g.source===this.dataNow.links[v].source&&g.target===this.dataNow.links[v].target){l.originLinks.push(this.dataNow.links[v]),this.dataNow.links[v]=g;break}}));function d(g){g&&g.map(v=>{var y;for(const _ in r.dataNow.nodes)if(v.id===r.dataNow.nodes[_].id){c.originNodes.push(r.dataNow.nodes[_]),u!=="aggregation"&&(r.dataOrigin.nodes[`${r.dataNow.nodes[_].id}`]=!1),r.dataNow.nodes.splice(_,1);const w=JSON.parse(JSON.stringify(r.dataNow.links));for(let A=w.length-1;A>=0;A--)if((v.id===w[A].source.id||v.id===w[A].target.id)&&(c.originLinks.push(w[A]),u!=="aggregation"&&(r.dataOrigin.links[`${w[A].source.id}+${w[A].target.id}`]=!1),r.dataNow.links.splice(A,1),r.updateNodeTree(w[A],"delete"),r.updateNodeParent(w[A],"delete"),v.id===w[A].target.id&&w[A].source.type==="nodeType"&&!r.nodeTree[w[A].source.id]&&d([w[A].source]),v.id===w[A].source.id)){const C=w[A].target;((y=r.nodeParent[C.id])==null?void 0:y.length)>=1?r.nodeParent[C.id].some(x=>c.originNodes.map(O=>O.id).indexOf(x)<0)||d([C]):d([C])}break}})}c&&(c.originNodes=[],c.originLinks=[],d(c.nodes),c.links&&c.links.map(g=>{for(const v in this.dataNow.links)if(g.source===this.dataNow.links[v].source&&g.target===this.dataNow.links[v].target){c.originLinks.push(this.dataNow.links[v]),u!=="aggregation"&&(this.dataOrigin.links[`${this.dataNow.links[v].source.id}+${this.dataNow.links[v].target.id}`]=!1),this.dataNow.links.splice(v,1),this.updateNodeTree(g,"delete"),this.updateNodeParent(g,"delete");break}})),this.updateGroups(),this.computePos();const f=this.dataNow.nodes.length,h=this.dataNow.links.length;return u!=="aggregation"&&this.showMessage(f-s,h-o),t}resumeAction(t){var d,f;const{addOne:n,updateOne:r,deleteOne:s,type:o}=t,a=this.dataNow.nodes.length,l=this.dataNow.links.length;n&&(n.nodes&&n.originNodes.map(h=>{for(const g in this.dataNow.nodes)if(h.id===this.dataNow.nodes[g].id){this.dataOrigin.nodes[`${this.dataNow.nodes[g].id}`]=!1,this.dataNow.nodes.splice(g,1);break}}),n.links&&n.links.map(h=>{var g,v,y,_;for(const w in this.dataNow.links){const A=(g=h.source)!=null&&g.id?h.source.id:h.source,C=(v=h.target)!=null&&v.id?h.target.id:h.target,S=(y=this.dataNow.links[w].source)!=null&&y.id?this.dataNow.links[w].source.id:this.dataNow.links[w].source,x=(_=this.dataNow.links[w].target)!=null&&_.id?this.dataNow.links[w].target.id:this.dataNow.links[w].target;if(A===S&&C===x){this.dataOrigin.links[`${S}+${x}`]=!1,this.dataNow.links.splice(w,1),this.updateNodeTree(h,"delete"),this.updateNodeParent(h,"delete");break}}})),r&&(r.originNodes&&r.originNodes.map(h=>{for(const g in this.dataNow.nodes)if(h.id===this.dataNow.nodes[g].id){h.keyVals.map(v=>{this.dataNow.nodes[g][v.key]=v.value});break}}),r.originLinks&&r.originLinks.map(h=>{for(const g in this.dataNow.links)if(h.source.id===this.dataNow.links[g].source.id&&h.target.id===this.dataNow.links[g].target.id){h.keyVals.map(v=>{this.dataNow.links[g][v.key]=v.value});break}})),s&&(s.originNodes&&s.originNodes.map(h=>{(!this.dataOrigin.nodes[h.id]||o==="aggregation")&&(this.dataOrigin.nodes[h.id]=!0,this.dataNow.nodes.push(h))}),s.originLinks&&s.originLinks.map(h=>{(!this.dataOrigin.links[`${h.source}+${h.target}`]&&!this.dataOrigin.links[`${h.target}+${h.source}`]||o==="aggregation")&&(this.dataOrigin.links[`${h.source.id}+${h.target.id}`]=!0,this.dataNow.links.push(h),this.updateNodeTree(h),this.updateNodeParent(h))}));for(const h in this.dataNow.links)this.dataNow.links[h].source=(d=this.dataNow.links[h].source)!=null&&d.id?this.dataNow.links[h].source.id:this.dataNow.links[h].source,this.dataNow.links[h].target=(f=this.dataNow.links[h].target)!=null&&f.id?this.dataNow.links[h].target.id:this.dataNow.links[h].target;this.updateGroups(),this.computePos();const c=this.dataNow.nodes.length,u=this.dataNow.links.length;o!=="aggregation"&&this.showMessage(c-a,u-l)}showMessage(t,n){if(!this.isShowNodeMessage)return;this.showInfo.nodes+=t,this.showInfo.links+=n;const r=this.showInfo.nodes>=0?"新增"+this.showInfo.nodes:"减少"+-this.showInfo.nodes,s=this.showInfo.links>=0?"新增"+this.showInfo.links:"减少"+-this.showInfo.links;gn({message:`${r}个节点, ${s}条边`,type:"info"}),this.showInfo.nodes=0,this.showInfo.links=0}updateData(t,n){t.map(s=>{const o=this.dataNow.nodes.findIndex(a=>{var l;return(a==null?void 0:a.id)===((l=s.info)==null?void 0:l.id)});o<0||(this.dataNow.nodes[o].detail=JSON.parse(JSON.stringify(s)))}),(n==null?void 0:n.filter(s=>t.findIndex(o=>{var a;return((a=o.info)==null?void 0:a.id)===s}))).map(s=>{const o=this.dataNow.nodes.findIndex(a=>a.id===s);o<0||(this.dataNow.nodes[o].noDetail=!0)}),this.dataNow=Object.assign({},this.dataNow,{})}updateAggregationDetail(t,n,r){var a;const s=(a=this.dataNow.nodes.find(l=>l.id===r))==null?void 0:a.list;t.map(l=>{const c=s.findIndex(u=>{var d;return(u==null?void 0:u.id)===((d=l.info)==null?void 0:d.id)});c<0||(s[c].detail=JSON.parse(JSON.stringify(l)))}),(n==null?void 0:n.filter(l=>t.findIndex(c=>{var u;return((u=c.info)==null?void 0:u.id)===l}))).map(l=>{const c=s.findIndex(u=>u.id===l);c<0||(s[c].noDetail=!0)}),this.dataNow=Object.assign({},this.dataNow,{})}updateAggregationNode(t,n){const r=this.dataNow.nodes.find(s=>s.id===n);r.list=t,this.dataNow=Object.assign({},this.dataNow,{})}toString(){const t={length:this.length,all:this.all,currentIndex:this.currentIndex,dataOrigin:this.dataOrigin,dataNow:this.dataNow,showInfo:this.showInfo,nodeTree:this.nodeTree,nodeParent:this.nodeParent,keyNodeIds:this.keyNodeIds,layoutIndex:this.layoutIndex};return JSON.stringify(t)}updateNodeTree(t,n="add"){var o,a;const r=t.target.id?t.target.id:t.target,s=t.source.id?t.source.id:t.source;if(n==="add")this.nodeTree[s]?this.nodeTree[s].push(r):this.nodeTree[s]=[r];else if(((o=this.nodeTree[s])==null?void 0:o.length)===1)this.nodeTree[s]=null;else if(((a=this.nodeTree[s])==null?void 0:a.length)>1){const l=this.nodeTree[s].indexOf(r);this.nodeTree[s].splice(l,1)}}updateNodeParent(t,n="add"){var o,a;const r=t.target.id?t.target.id:t.target,s=t.source.id?t.source.id:t.source;if(n==="add")this.nodeParent[r]&&this.nodeParent[r].indexOf(s)<0?this.nodeParent[r].push(s):this.nodeParent[r]=[s];else if(((o=this.nodeParent[r])==null?void 0:o.length)===1)this.nodeParent[r]=null;else if(((a=this.nodeParent[r])==null?void 0:a.length)>1){const l=this.nodeParent[r].indexOf(s);this.nodeParent[r].splice(l,1)}}toggleShowNode(t,n,r=!1){const s=this.dataNow.links,o=this;function a(d){var f;if(d.show!==!1){d.show=!1;for(let h=s.length-1;h>=0;h--)if(d.id===s[h].target.id&&s[h].source.type==="nodeType"&&o.dataNow.nodes.filter(v=>o.nodeTree[s[h].source.id].indexOf(v.id)>=0&&v.show===!0).length===0&&a(s[h].source),d.id===s[h].source.id){const g=s[h].target;if(((f=o.nodeParent[g.id])==null?void 0:f.length)>=1){const y=o.dataNow.nodes.filter(w=>o.nodeParent[g.id].indexOf(w.id)>=0&&w.show===!0).length,_=o.dataNow.nodes.some(w=>w.id===g.id&&w.startNode===!0);y===0&&!_&&a(g)}}}}function l(d){d.show=!0;for(let h=s.length-1;h>=0;h--)s[h].source.id===d.id&&s[h].target.show===!1&&(s[h].target.show=!0,l(s[h].target));const{keyNodeIds:f}=o.findKeyLinksAndNodes(d.id);o.dataNow.nodes.map(h=>{f.indexOf(h.id)>=0&&!h.show&&(h.show=!0)})}const c=this.dataNow.nodes.findIndex(d=>d.id===t.id),u=this.dataNow.nodes[c];r?l(u):a(u)}findKeyLinksAndNodes(t,n=!1){const r=[],s=[t],o=this;function a(l){if(o.dataNow.nodes.some(d=>d.id===l&&d.startNode===!0))return;const u=o.getParentLink(l);u&&r.findIndex(d=>d.index===u.index)<0&&(r.push(u),a(u.source.id))}return a(t),this.dataNow.links.map(l=>{r.find(u=>u.source.id===l.source.id&&u.target.id===l.target.id)&&s.push(l.source.id)}),n&&(this.keyNodeIds=s),{keyLinks:r,keyNodeIds:s}}resetKeyLinksAndNodes(){this.keyNodeIds=null}getParentLink(t){return this.dataNow.links.find(n=>n.target.id===t)}initPosId(){const t=this,n=this.dataNow.nodes.filter(a=>a.startNode===!0),r=[],s=n.map(a=>a.id);o(s,0);function o(a,l){for(let d=0;d<a.length;d++){const f=a[d];f!=null&&f.indexPos||(r[l]?r[l].push(f):r[l]=[f])}if(!r[l])return;const c={};t.dataNow.nodes.map(d=>{r[l].indexOf(d.id)>=0&&(c[d.id]=d)}),r[l].sort((d,f)=>{var v,y;const h=t.dataNow.nodes.find(_=>_.id===c[d].parents&&c[d].parents[0]),g=t.dataNow.nodes.find(_=>_.id===c[f].parents&&c[f].parents[0]);return((v=h==null?void 0:h.indexPos)==null?void 0:v.split("-").pop())*1-((y=g==null?void 0:g.indexPos)==null?void 0:y.split("-").pop())*1||-1}),t.dataNow.nodes.map(d=>{const f=r[l].indexOf(d.id);if(f>=0){if(d.levelNum&&d.levelNum!==l)return;d.indexPos=l+"-"+f,d.levelNum=l}t.dataNow.links.map(h=>{h.target===d.id&&(h.indexPos=d.indexPos)})});const u=t.dataNow.links.filter(d=>{const f=r[l].indexOf(d.source.id?d.source.id:d.source)>=0,h=r.flat().indexOf(d.target.id?d.target.id:d.target)<0;return f&&h}).map(d=>d.target.id?d.target.id:d.target);u.length>0&&o(u,l+1)}this.levels=r}computeFamilyRelation(){this.dataNow.nodes.map(t=>{t.children=null,t.parents=null}),this.dataNow.links.map(t=>{const n=this.dataNow.nodes.find(s=>s.id===(t.source.id?t.source.id:t.source)),r=this.dataNow.nodes.find(s=>s.id===(t.target.id?t.target.id:t.target));n&&r&&(n.children?n.children.push(r.id):n.children=[r.id]),r&&n&&(r.parents?r.parents.push(n.id):r.parents=[n.id])}),this.dataNow.nodes.map(t=>{t.startNode===!0&&(t.parents=["virtualOne"])})}computeWidth(){this.nodeWidth;const t=this.nodeMargin,n=this;r(this.levels,this.levels.length-1);function r(s,o){const a=s[o];if(!a)return;const l=a.map(u=>n.dataNow.nodes.find(d=>d.id===u));a.map(u=>{var h,g;const d=n.dataNow.nodes.find(v=>v.id===u),f=(h=d.children)==null?void 0:h.reduce((v,y)=>(n.dataNow.nodes.find(w=>y===w.id).widthBefore||0)+v,0);d.levelWidth=f+(((g=d.children)==null?void 0:g.length)-1)*t||0});let c;a.map((u,d)=>{const f=n.dataNow.nodes.find(h=>h.id===u);f.widthBefore=0,f.children&&(c>=0&&(f.widthBefore=Math.max(0,f.levelWidth/2-(d-c-1)*t+l[c].levelWidth/2)),c=d)}),r(s,o-1)}}computeOneLevelPos(t,n){this.nodeWidth;const r=this.nodeMargin,s=t[n],o=this;if(!s)return;const a={};this.dataNow.nodes.filter(c=>s.indexOf(c.id)>=0).map(c=>{c.parents||(c.parents=[]),a[c.parents[0]]?a[c.parents[0]].push(c):a[c.parents[0]]=[c]});for(const c in a)a[c].sort((u,d)=>{var f,h;return((f=u.indexPos)==null?void 0:f.split("-").pop())*1-((h=d.indexPos)==null?void 0:h.split("-").pop())*1}),l(a[c]);function l(c){var h,g;const u=((h=o.dataNow.nodes.find(v=>c[0].parents[0]===v.id))==null?void 0:h.levelWidth)||0,d=((g=o.dataNow.nodes.find(v=>c[0].parents[0]===v.id))==null?void 0:g.pos)||0;let f=0;c.map((v,y)=>{v.pos=f+v.widthBefore-u/2+d,f=f+v.widthBefore+r})}this.computeOneLevelPos(t,n+1)}computePos(){this.computeFamilyRelation(),this.initPosId(),this.computeWidth(),this.dataNow.nodes[0]&&(this.dataNow.nodes[0].pos=0,this.dataNow.nodes[0].levelNum=0),this.computeOneLevelPos(this.levels,0)}destroy(){this.length=0,this.all=[],this.currentIndex=0,this.dataOrigin={nodes:{},links:{},groups:{}},this.nodeTree={},this.nodeParent={},this.dataNow={nodes:[],links:[],groups:[]},this.showInfo={nodes:0,links:0,timeOut:null,time:100},this.keyNodeIds=null,this.levels=[],this.nodeWidth=40,this.nodeMargin=40,this.layout=["forceLayout","treeLayout"],this.layoutIndex=0}}const Ype="",Tf="graph-node-level-",A0="legend-level-";function Cq(e){let t="",n="",r="";return e.forEach(s=>{const o=s.className,a=s.normalColor,l=s.darkColor?s.darkColor:s.normalColor,c=Tf+o,u=`--graph-level-${o}`;n+=`${u}: ${a};`,r+=`${u}: ${l};`,t+=`
|
|
58
|
-
// 没有level时的默认样式
|
|
59
|
-
.d3-container .${Tf}unknown {
|
|
60
|
-
stroke: var(--graph-unknown);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/* node节点的样式 */
|
|
64
|
-
.render-container .${c} {
|
|
65
|
-
stroke: var(${u});
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* node节点的样式 */
|
|
69
|
-
.render-container .node .${c} .text-bg,
|
|
70
|
-
.render-container .domain .${c} .text-bg,
|
|
71
|
-
.render-container .md5 .${c} .text-bg {
|
|
72
|
-
fill: var(${u});
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* 全局的level样式 */
|
|
76
|
-
.d3-container .${c} {
|
|
77
|
-
stroke: var(${u});
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
/* 右侧node详情的样式 */
|
|
82
|
-
.d3-container .out-box .${c} ,
|
|
83
|
-
.d3-container .svgBase .${c} ,
|
|
84
|
-
.d3-container .md5 .${c} ,
|
|
85
|
-
.d3-container .domain .${c} {
|
|
86
|
-
stroke: var(${u});
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.d3-container .out-box .${c} .text-bg,
|
|
90
|
-
.d3-container .svgBase .${c} .text-bg,
|
|
91
|
-
.d3-container .md5 .${c} .text-bg,
|
|
92
|
-
.d3-container .domain .${c} .text-bg{
|
|
93
|
-
fill: var(${u});
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.node-detail-block .node-preview .level-text.${c} {
|
|
97
|
-
color: var(${u});
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/* 左侧legend的样式 */
|
|
101
|
-
.${A0}${o} .legend-level-icon .level-color {
|
|
102
|
-
fill: var(${u});
|
|
103
|
-
stroke: var(${u});
|
|
104
|
-
}
|
|
105
|
-
/* 左侧legend的icon圆点的样式 */
|
|
106
|
-
.${A0}${o} .legend-level-icon-dot {
|
|
107
|
-
background: var(${u})
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/* popover的样式 */
|
|
111
|
-
.popover-container .popover-block .row-item .level.${c} {
|
|
112
|
-
color: var(${u});
|
|
113
|
-
}
|
|
114
|
-
`}),n=`:root {${n}}`,r=`[data-theme="dark"] { ${r}}`,n+r+t}function Sq(e){const t=document.createElement("style");t.innerHTML=e,document.head.appendChild(t),window.insertSafeForceGraphStyle=!0}function Eq(e){if(window.insertSafeForceGraphStyle){pi("已存在样式");return}const t=Cq(e);Sq(t)}function Of(e,t){var r;if(e==null||e==="")return Tf+"unknown";const n=(r=t[e])==null?void 0:r.className;return n?Tf+n:""}function Qo(e,t,n){if(e==null||e==="")return n?"#c6cdd5":"#666";const r=t==null?void 0:t.find(s=>s.level===e);return n?r==null?void 0:r.darkColor:r==null?void 0:r.normalColor}function xq(e,t){var r;return((r=t.find(s=>s.level===e))==null?void 0:r.dangerNumber)>0}const Nf={"./public/d3svg1/85.svg":"https://s8.qhres2.com/static/92a77a4cfe45315b.svg","./public/d3svg1/address.svg":"https://s8.qhres2.com/static/49af0232ce8bf04c.svg","./public/d3svg1/aggregation.svg":"https://s7.qhres2.com/static/78f28ebf024a1fc3.svg","./public/d3svg1/button/hm_icon_add.svg":"https://s5.qhres2.com/static/4fb5006e9082eb79.svg","./public/d3svg1/button/hm_icon_add_more.svg":"https://s8.qhres2.com/static/3069a945cf205172.svg","./public/d3svg1/button/hm_icon_intro.svg":"https://s6.qhres2.com/static/e3a9174af2a35626.svg","./public/d3svg1/button/hm_icon_search.svg":"https://s6.qhres2.com/static/87920114f746d11b.svg","./public/d3svg1/button/hm_icon_snapshot.svg":"https://s9.qhres2.com/static/87bd8cd6660f76eb.svg","./public/d3svg1/button18/button_all_fix_nodes.svg":"https://s6.qhres2.com/static/b0289b2eb89201c9.svg","./public/d3svg1/button18/button_all_show_label.svg":"https://s9.qhres2.com/static/212e1c47d101e979.svg","./public/d3svg1/button18/button_all_show_names.svg":"https://s9.qhres2.com/static/5662f90b2fd37b8e.svg","./public/d3svg1/button18/button_all_un_fix_nodes.svg":"https://s8.qhres2.com/static/062f773b8bf7a9b1.svg","./public/d3svg1/button18/button_all_un_show_label.svg":"https://s5.qhres2.com/static/ab90216e9f7a6f47.svg","./public/d3svg1/button18/button_all_un_show_names.svg":"https://s9.qhres2.com/static/ee92ef3b7c76c4ad.svg","./public/d3svg1/button18/button_copy.svg":"https://s8.qhres2.com/static/b10151262d77f531.svg","./public/d3svg1/button18/button_delete_node.svg":"https://s8.qhres2.com/static/4ae033e0515de4f6.svg","./public/d3svg1/button18/button_edit_label.svg":"https://s6.qhres2.com/static/3986fc6c0e079f57.svg","./public/d3svg1/button18/button_fix_nodes.svg":"https://s8.qhres2.com/static/fa0d1980cb1bf492.svg","./public/d3svg1/button18/button_go_result.svg":"https://s7.qhres2.com/static/62f48cc3630090d2.svg","./public/d3svg1/button18/button_hold_aggregation.svg":"https://s9.qhres2.com/static/0491c4b71553e3c3.svg","./public/d3svg1/button18/button_node_star.svg":"https://s5.qhres2.com/static/ea5b0c1f75783964.svg","./public/d3svg1/button18/button_redo.svg":"https://s5.qhres2.com/static/8dbda7152025c98d.svg","./public/d3svg1/button18/button_relation.svg":"https://s7.qhres2.com/static/d3881ed52b32dc1f.svg","./public/d3svg1/button18/button_release_aggregation.svg":"https://s7.qhres2.com/static/ba06fa8a8db4569a.svg","./public/d3svg1/button18/button_show_label.svg":"https://s7.qhres2.com/static/2abe1d60abb61fa9.svg","./public/d3svg1/button18/button_show_names.svg":"https://s6.qhres2.com/static/c36a1eae354aaaa2.svg","./public/d3svg1/button18/button_single_edge_select.svg":"https://s6.qhres2.com/static/d7743402fc6d09da.svg","./public/d3svg1/button18/button_undo.svg":"https://s9.qhres2.com/static/6e72dfa93353d2f8.svg","./public/d3svg1/button18/button_un_fix_nodes.svg":"https://s6.qhres2.com/static/60ffc34cad1d659b.svg","./public/d3svg1/button18/button_un_node_star.svg":"https://s8.qhres2.com/static/c565f0ec8a880690.svg","./public/d3svg1/button18/button_un_show_label.svg":"https://s8.qhres2.com/static/71fff9dca19fbecc.svg","./public/d3svg1/button18/button_un_show_names.svg":"https://s6.qhres2.com/static/f4669f0b6c14e809.svg","./public/d3svg1/button18/fit_button.svg":"https://s5.qhres2.com/static/c08f73410838a252.svg","./public/d3svg1/button18/full_button.svg":"https://s6.qhres2.com/static/0f4cb1e63de23dc5.svg","./public/d3svg1/button18/un_full_button.svg":"https://s9.qhres2.com/static/9451379f77771234.svg","./public/d3svg1/button18/zoom_in_button.svg":"https://s8.qhres2.com/static/a0d01d2a34694b6c.svg","./public/d3svg1/button18/zoom_out_button.svg":"https://s9.qhres2.com/static/c3955d07bb42785e.svg","./public/d3svg1/button22/button_add_con_node.svg":"https://s6.qhres2.com/static/eba662b3d6dd3e14.svg","./public/d3svg1/button22/button_center_view.svg":"https://s7.qhres2.com/static/394b502b897ab7ac.svg","./public/d3svg1/button22/button_copy.svg":"https://s7.qhres2.com/static/1079057f47388143.svg","./public/d3svg1/button22/button_delete_node.svg":"https://s7.qhres2.com/static/2ded0a5330325385.svg","./public/d3svg1/button22/button_edit_label.svg":"https://s5.qhres2.com/static/975e072dead6e9fa.svg","./public/d3svg1/button22/button_expand_node.svg":"https://s7.qhres2.com/static/057558aff373fb6e.svg","./public/d3svg1/button22/button_eye_close.svg":"https://s7.qhres2.com/static/af3940bd635bf5cc.svg","./public/d3svg1/button22/button_eye_open.svg":"https://s6.qhres2.com/static/8fcb2638123571e3.svg","./public/d3svg1/button22/button_fix_nodes.svg":"https://s6.qhres2.com/static/baf03da46465cdd6.svg","./public/d3svg1/button22/button_highlight.svg":"https://s8.qhres2.com/static/0e54b564417081b8.svg","./public/d3svg1/button22/button_hold_aggregation.svg":"https://s7.qhres2.com/static/f881ab3ebcf70fc1.svg","./public/d3svg1/button22/button_node_star.svg":"https://s8.qhres2.com/static/113de2517f47e4f9.svg","./public/d3svg1/button22/button_release_aggregation.svg":"https://s9.qhres2.com/static/dd2b3a84e0651662.svg","./public/d3svg1/button22/button_select_all.svg":"https://s8.qhres2.com/static/fb1bab113d4d18ba.svg","./public/d3svg1/button22/button_select_children.svg":"https://s7.qhres2.com/static/494fdd768d816653.svg","./public/d3svg1/button22/button_select_parents.svg":"https://s5.qhres2.com/static/3cbe3439eee235d6.svg","./public/d3svg1/button22/button_show_label.svg":"https://s8.qhres2.com/static/f13914e64f8f3e5a.svg","./public/d3svg1/button22/button_show_names.svg":"https://s5.qhres2.com/static/f4d81384382cd033.svg","./public/d3svg1/button22/button_un_fix_nodes.svg":"https://s7.qhres2.com/static/ea8a1159fe64af2b.svg","./public/d3svg1/button22/button_un_node_star.svg":"https://s9.qhres2.com/static/03975ae87086cd88.svg","./public/d3svg1/button22/button_un_show_label.svg":"https://s7.qhres2.com/static/9391e814e0f764d5.svg","./public/d3svg1/button22/button_un_show_names.svg":"https://s7.qhres2.com/static/5c50b21de64f4c5e.svg","./public/d3svg1/button22/hm_icon_add.svg":"https://s5.qhres2.com/static/852af5cf3c637cef.svg","./public/d3svg1/button22/hm_icon_alias.svg":"https://s6.qhres2.com/static/36fcd0ab7eb1d512.svg","./public/d3svg1/button22/hm_icon_alias_colse.svg":"https://s8.qhres2.com/static/4d38830be1599afc.svg","./public/d3svg1/button22/hm_icon_auto.svg":"https://s7.qhres2.com/static/e08583939b92f508.svg","./public/d3svg1/button22/hm_icon_del.svg":"https://s7.qhres2.com/static/2ded0a5330325385.svg","./public/d3svg1/button22/hm_icon_export.svg":"https://s8.qhres2.com/static/71556fb91f5648f7.svg","./public/d3svg1/button22/hm_icon_fix.svg":"https://s6.qhres2.com/static/baf03da46465cdd6.svg","./public/d3svg1/button22/hm_icon_force.svg":"https://s9.qhres2.com/static/91132a6bf978400c.svg","./public/d3svg1/button22/hm_icon_help.svg":"https://s7.qhres2.com/static/2aa090c82f498cb9.svg","./public/d3svg1/button22/hm_icon_hightLight.svg":"https://s5.qhres2.com/static/e2369714ebf8324d.svg","./public/d3svg1/button22/hm_icon_img.svg":"https://s5.qhres2.com/static/572193e4146fd076.svg","./public/d3svg1/button22/hm_icon_import.svg":"https://s7.qhres2.com/static/3bbcefca466a9108.svg","./public/d3svg1/button22/hm_icon_redo.svg":"https://s6.qhres2.com/static/d47c5779b67388ca.svg","./public/d3svg1/button22/hm_icon_save.svg":"https://s7.qhres2.com/static/2992a856a97d5b85.svg","./public/d3svg1/button22/hm_icon_snapshot.svg":"https://s6.qhres2.com/static/6109b5e11a9f2631.svg","./public/d3svg1/button22/hm_icon_tree.svg":"https://s6.qhres2.com/static/274890d02e511166.svg","./public/d3svg1/button22/hm_icon_undo.svg":"https://s6.qhres2.com/static/736f72642af1abc9.svg","./public/d3svg1/button22/hm_icon_unfix.svg":"https://s7.qhres2.com/static/ea8a1159fe64af2b.svg","./public/d3svg1/button_un_show_label.svg":"https://s6.qhres2.com/static/b19a5b41cfffbc0b.svg","./public/d3svg1/cert.svg":"https://s8.qhres2.com/static/8e9252db9ca5f789.svg","./public/d3svg1/cert_code.svg":"https://s8.qhres2.com/static/b034794ce279efc0.svg","./public/d3svg1/cert_https.svg":"https://s7.qhres2.com/static/fb425c625c9106d9.svg","./public/d3svg1/cert_md5.svg":"https://s8.qhres2.com/static/df826bcca1d0fb18.svg","./public/d3svg1/cloud.svg":"https://s9.qhres2.com/static/633cc96ec9bff2e6.svg","./public/d3svg1/company.svg":"https://s9.qhres2.com/static/4b09c9ca105cf6a4.svg","./public/d3svg1/country.svg":"https://s5.qhres2.com/static/1a7736c5b478e07b.svg","./public/d3svg1/dns.svg":"https://s8.qhres2.com/static/1089289f6729cade.svg","./public/d3svg1/dns_domain.svg":"https://s6.qhres2.com/static/fc636fd5af0c0c05.svg","./public/d3svg1/dns_ip.svg":"https://s6.qhres2.com/static/945d97b0460770aa.svg","./public/d3svg1/domain.svg":"https://s8.qhres2.com/static/d15450a9035991ba.svg","./public/d3svg1/down.svg":"https://s8.qhres2.com/static/1129404c0a0a7a23.svg","./public/d3svg1/download.svg":"https://s7.qhres2.com/static/2ea12e3c04d70b6e.svg","./public/d3svg1/email.svg":"https://s6.qhres2.com/static/1feb3629d4b23c7d.svg","./public/d3svg1/event.svg":"https://s8.qhres2.com/static/638b2ce39606388a.svg","./public/d3svg1/family.svg":"https://s9.qhres2.com/static/4cd5109f631b74af.svg","./public/d3svg1/file.svg":"https://s9.qhres2.com/static/5464eee7f1212b95.svg","./public/d3svg1/file_md5.svg":"https://s6.qhres2.com/static/3882a8f6cc25a1fa.svg","./public/d3svg1/find_country.svg":"https://s6.qhres2.com/static/2775367e4febc238.svg","./public/d3svg1/find_group.svg":"https://s7.qhres2.com/static/73c08baa1232ab15.svg","./public/d3svg1/find_ioc.svg":"https://s5.qhres2.com/static/b324dc9874d2f64a.svg","./public/d3svg1/find_report.svg":"https://s5.qhres2.com/static/7e8b93e787606859.svg","./public/d3svg1/find_target_country.svg":"https://s6.qhres2.com/static/1bf440bf280e9186.svg","./public/d3svg1/find_target_industry.svg":"https://s5.qhres2.com/static/0ea145e0bc9844f1.svg","./public/d3svg1/find_ttp.svg":"https://s6.qhres2.com/static/d3555f80211bdd20.svg","./public/d3svg1/find_vendor.svg":"https://s5.qhres2.com/static/35936579d6cec419.svg","./public/d3svg1/flags/abu_dhabi.png":"https://p0.ssl.qhimg.com/t11b673bcd600b7420ed9d3b0fc.png","./public/d3svg1/flags/afghanistan.png":"https://p5.ssl.qhimg.com/t11b673bcd66b73f84b7152db62.png","./public/d3svg1/flags/albania.png":"https://p0.ssl.qhimg.com/t11b673bcd6554ace32f912d567.png","./public/d3svg1/flags/algeria.png":"https://p3.ssl.qhimg.com/t11b673bcd622422b6d071ccc22.png","./public/d3svg1/flags/american_samoa.png":"https://p1.ssl.qhimg.com/t11b673bcd6c595535d38c2c488.png","./public/d3svg1/flags/andorra.png":"https://p0.ssl.qhimg.com/t11b673bcd6805f7f0ae834fc32.png","./public/d3svg1/flags/angola.png":"https://p3.ssl.qhimg.com/t11b673bcd64152de70c5b45254.png","./public/d3svg1/flags/anguilla.png":"https://p2.ssl.qhimg.com/t11b673bcd655dd08b9abd92436.png","./public/d3svg1/flags/antigua_and_barbuda.png":"https://p4.ssl.qhimg.com/t11b673bcd6c42483ae1c05b5ae.png","./public/d3svg1/flags/argentina.png":"https://p0.ssl.qhimg.com/t11b673bcd64d3f8c0d28624343.png","./public/d3svg1/flags/armenia.png":"https://p1.ssl.qhimg.com/t11b673bcd6ffddd18f6213fbe8.png","./public/d3svg1/flags/aruba.png":"https://p5.ssl.qhimg.com/t11b673bcd6a954f4ebda2b2aaf.png","./public/d3svg1/flags/australia.png":"https://p1.ssl.qhimg.com/t11b673bcd6c024c65ff1cc8a8d.png","./public/d3svg1/flags/austria.png":"https://p0.ssl.qhimg.com/t11b673bcd6e6a215b0a4a0077d.png","./public/d3svg1/flags/azerbaijan.png":"https://p4.ssl.qhimg.com/t11b673bcd6b2f598ca0633bab4.png","./public/d3svg1/flags/bahamas.png":"https://p1.ssl.qhimg.com/t11b673bcd64389c5b895aeb8cb.png","./public/d3svg1/flags/bahrain.png":"https://p5.ssl.qhimg.com/t11b673bcd6e9aea3791db558e2.png","./public/d3svg1/flags/bangladesh.png":"https://p4.ssl.qhimg.com/t11b673bcd656bcda81bdeb333e.png","./public/d3svg1/flags/barbados.png":"https://p3.ssl.qhimg.com/t11b673bcd6e173975ff3435533.png","./public/d3svg1/flags/belarus.png":"https://p4.ssl.qhimg.com/t11b673bcd6c6bd61585df5dc66.png","./public/d3svg1/flags/belgium.png":"https://p5.ssl.qhimg.com/t11b673bcd6bc981724a92fd288.png","./public/d3svg1/flags/belize.png":"https://p3.ssl.qhimg.com/t11b673bcd657e3a5a5e9e6d0dc.png","./public/d3svg1/flags/benin.png":"https://p4.ssl.qhimg.com/t11b673bcd60fe48ceb0d83f1db.png","./public/d3svg1/flags/bermuda.png":"https://p4.ssl.qhimg.com/t11b673bcd6991a5555e2951383.png","./public/d3svg1/flags/bhutan.png":"https://p1.ssl.qhimg.com/t11b673bcd6c1a09b104cbbf155.png","./public/d3svg1/flags/bolivia.png":"https://p4.ssl.qhimg.com/t11b673bcd6f14d83bf204a3484.png","./public/d3svg1/flags/bosnia_and_herzegovina.png":"https://p2.ssl.qhimg.com/t11b673bcd60c6298b82cba538c.png","./public/d3svg1/flags/botswana.png":"https://p5.ssl.qhimg.com/t11b673bcd6c857af3514756b8f.png","./public/d3svg1/flags/brazil.png":"https://p0.ssl.qhimg.com/t11b673bcd65ca6cd0fb5c7cc59.png","./public/d3svg1/flags/british_virgin_islands.png":"https://p4.ssl.qhimg.com/t11b673bcd604bceae11fd2f580.png","./public/d3svg1/flags/brunei.png":"https://p3.ssl.qhimg.com/t11b673bcd6f920666ff379bb8a.png","./public/d3svg1/flags/bulgaria.png":"https://p5.ssl.qhimg.com/t11b673bcd6766409ab0d88cc13.png","./public/d3svg1/flags/burkina_faso.png":"https://p4.ssl.qhimg.com/t11b673bcd6366f1d500c9f0c26.png","./public/d3svg1/flags/burundi.png":"https://p0.ssl.qhimg.com/t11b673bcd6ef92224393d4789c.png","./public/d3svg1/flags/cambodia.png":"https://p2.ssl.qhimg.com/t11b673bcd689fddeb63273c902.png","./public/d3svg1/flags/cameroon.png":"https://p3.ssl.qhimg.com/t11b673bcd61b97aca53d096ec7.png","./public/d3svg1/flags/canada.png":"https://p4.ssl.qhimg.com/t11b673bcd607f2e3664cc586a9.png","./public/d3svg1/flags/cape_verde.png":"https://p5.ssl.qhimg.com/t11b673bcd6bcd5521b34abe933.png","./public/d3svg1/flags/cayman_islands.png":"https://p4.ssl.qhimg.com/t11b673bcd659643bbfdae25503.png","./public/d3svg1/flags/central_african_republic.png":"https://p2.ssl.qhimg.com/t11b673bcd6689eb3ad435ebb68.png","./public/d3svg1/flags/chad.png":"https://p4.ssl.qhimg.com/t11b673bcd69e06a9ad5a86a48b.png","./public/d3svg1/flags/chile.png":"https://p0.ssl.qhimg.com/t11b673bcd6da100a223247567f.png","./public/d3svg1/flags/china.png":"https://p5.ssl.qhimg.com/t11b673bcd6304bcd201fd23df6.png","./public/d3svg1/flags/christmas_island.png":"https://p2.ssl.qhimg.com/t11b673bcd6e7874db308ac2252.png","./public/d3svg1/flags/cocos_islands.png":"https://p0.ssl.qhimg.com/t11b673bcd6c0b7f434b6919f3f.png","./public/d3svg1/flags/colombia.png":"https://p4.ssl.qhimg.com/t11b673bcd64067c703a78dce3b.png","./public/d3svg1/flags/comoros.png":"https://p0.ssl.qhimg.com/t11b673bcd669a07d86c511072b.png","./public/d3svg1/flags/congo_democratic_republic.png":"https://p4.ssl.qhimg.com/t11b673bcd683ac60001ce46f1f.png","./public/d3svg1/flags/congo_republic.png":"https://p1.ssl.qhimg.com/t11b673bcd63046ae1b2eaa2e03.png","./public/d3svg1/flags/costa_rica.png":"https://p3.ssl.qhimg.com/t11b673bcd626df8804c76f2fd6.png","./public/d3svg1/flags/cote_d'ivoire.png":"https://p3.ssl.qhimg.com/t11b673bcd6bcd9188af99a7148.png","./public/d3svg1/flags/croatia.png":"https://p1.ssl.qhimg.com/t11b673bcd6d3566b33a31ee615.png","./public/d3svg1/flags/cuba.png":"https://p0.ssl.qhimg.com/t11b673bcd6dc80791b9bc8e11c.png","./public/d3svg1/flags/curacao.png":"https://p0.ssl.qhimg.com/t11b673bcd61f17f8ec93fecd34.png","./public/d3svg1/flags/cyprus.png":"https://p2.ssl.qhimg.com/t11b673bcd69a4c05b99a9c64be.png","./public/d3svg1/flags/czech_republic.png":"https://p1.ssl.qhimg.com/t11b673bcd63224c0c67639351f.png","./public/d3svg1/flags/denmark.png":"https://p4.ssl.qhimg.com/t11b673bcd6b0f04b65a97f8028.png","./public/d3svg1/flags/djibouti.png":"https://p0.ssl.qhimg.com/t11b673bcd6e4796ea6f99dd948.png","./public/d3svg1/flags/dominica.png":"https://p3.ssl.qhimg.com/t11b673bcd6b3867bd167f1d976.png","./public/d3svg1/flags/dominican_republic.png":"https://p4.ssl.qhimg.com/t11b673bcd64378d5ead5b5e6ec.png","./public/d3svg1/flags/east_timor.png":"https://p5.ssl.qhimg.com/t11b673bcd6e8e5fb8405dec7e3.png","./public/d3svg1/flags/ecuador.png":"https://p2.ssl.qhimg.com/t11b673bcd6395fb935fa0f0e3a.png","./public/d3svg1/flags/egypt.png":"https://p3.ssl.qhimg.com/t11b673bcd601fe13f0f24008e9.png","./public/d3svg1/flags/el_salvador.png":"https://p4.ssl.qhimg.com/t11b673bcd60104541f9c7a0c99.png","./public/d3svg1/flags/england.png":"https://p5.ssl.qhimg.com/t11b673bcd643b14e971b5b3cb6.png","./public/d3svg1/flags/equatorial_guinea.png":"https://p5.ssl.qhimg.com/t11b673bcd6a74942f5afd0b3a4.png","./public/d3svg1/flags/eritrea.png":"https://p4.ssl.qhimg.com/t11b673bcd6ce53472f50f44f5b.png","./public/d3svg1/flags/estonia.png":"https://p5.ssl.qhimg.com/t11b673bcd66d527c4a923153eb.png","./public/d3svg1/flags/ethiopia.png":"https://p4.ssl.qhimg.com/t11b673bcd692b527f6a90ddbe0.png","./public/d3svg1/flags/europe.png":"https://p4.ssl.qhimg.com/t11b673bcd65bb42e201aa13efa.png","./public/d3svg1/flags/falkland_islands.png":"https://p1.ssl.qhimg.com/t11b673bcd60ae1bba78b7eb7a6.png","./public/d3svg1/flags/fiji.png":"https://p5.ssl.qhimg.com/t11b673bcd6ffb03de7e05ae7aa.png","./public/d3svg1/flags/finland.png":"https://p4.ssl.qhimg.com/t11b673bcd695f5d1feacba8397.png","./public/d3svg1/flags/france.png":"https://p1.ssl.qhimg.com/t11b673bcd6f697a973b72a98e7.png","./public/d3svg1/flags/french_guiana.png":"https://p3.ssl.qhimg.com/t11b673bcd66346509b6df42a07.png","./public/d3svg1/flags/french_polynesia.png":"https://p3.ssl.qhimg.com/t11b673bcd6932beb0a7b52f3da.png","./public/d3svg1/flags/gabon.png":"https://p2.ssl.qhimg.com/t11b673bcd632f298a0f193b661.png","./public/d3svg1/flags/gambia.png":"https://p4.ssl.qhimg.com/t11b673bcd61564ba1c6e0c96ed.png","./public/d3svg1/flags/georgia.png":"https://p2.ssl.qhimg.com/t11b673bcd6eea60bad5abefdba.png","./public/d3svg1/flags/germany.png":"https://p1.ssl.qhimg.com/t11b673bcd684b3001d906d19c7.png","./public/d3svg1/flags/ghana.png":"https://p2.ssl.qhimg.com/t11b673bcd6f7dcd42afd3fc0ff.png","./public/d3svg1/flags/gibraltar.png":"https://p3.ssl.qhimg.com/t11b673bcd6ed767f13c90a732f.png","./public/d3svg1/flags/greece.png":"https://p0.ssl.qhimg.com/t11b673bcd6da5d5973a17cc048.png","./public/d3svg1/flags/greenland.png":"https://p1.ssl.qhimg.com/t11b673bcd6d3f1604dea436593.png","./public/d3svg1/flags/grenada.png":"https://p5.ssl.qhimg.com/t11b673bcd670078c4c722961d5.png","./public/d3svg1/flags/guam.png":"https://p1.ssl.qhimg.com/t11b673bcd6fe323aa0e62d3c0c.png","./public/d3svg1/flags/guatemala.png":"https://p3.ssl.qhimg.com/t11b673bcd63743b6c563848d07.png","./public/d3svg1/flags/guernsey.png":"https://p0.ssl.qhimg.com/t11b673bcd6f86e78de635ff50c.png","./public/d3svg1/flags/guinea.png":"https://p0.ssl.qhimg.com/t11b673bcd6d4f635060a97fb49.png","./public/d3svg1/flags/guinea_bissau.png":"https://p4.ssl.qhimg.com/t11b673bcd64ee5f7086bb14c1e.png","./public/d3svg1/flags/guyana.png":"https://p0.ssl.qhimg.com/t11b673bcd6e7d086533c3f87f2.png","./public/d3svg1/flags/haiti.png":"https://p5.ssl.qhimg.com/t11b673bcd6159c94d32253d312.png","./public/d3svg1/flags/honduras.png":"https://p5.ssl.qhimg.com/t11b673bcd6796b21e7e87b5254.png","./public/d3svg1/flags/hongkong.png":"https://p0.ssl.qhimg.com/t11b673bcd621cfe81da15a2878.png","./public/d3svg1/flags/hungary.png":"https://p4.ssl.qhimg.com/t11b673bcd6b5087e47ff53250a.png","./public/d3svg1/flags/iceland.png":"https://p0.ssl.qhimg.com/t11b673bcd60178e8a27cf4f660.png","./public/d3svg1/flags/india.png":"https://p1.ssl.qhimg.com/t11b673bcd68213e7e6dc2a3368.png","./public/d3svg1/flags/indonesia.png":"https://p4.ssl.qhimg.com/t11b673bcd6bcb4661812d6e2dd.png","./public/d3svg1/flags/ip.png":"https://p4.ssl.qhimg.com/t11b673bcd62e2c50a4c424fd37.png","./public/d3svg1/flags/iran.png":"https://p1.ssl.qhimg.com/t11b673bcd61a5bca45b65c6bda.png","./public/d3svg1/flags/iraq.png":"https://p3.ssl.qhimg.com/t11b673bcd6c351fb6799b43b8e.png","./public/d3svg1/flags/ireland.png":"https://p2.ssl.qhimg.com/t11b673bcd6c19ffc4e51b1b821.png","./public/d3svg1/flags/isle_of_man.png":"https://p1.ssl.qhimg.com/t11b673bcd67cc3b83618827640.png","./public/d3svg1/flags/israel.png":"https://p5.ssl.qhimg.com/t11b673bcd60f3fe6361aebe345.png","./public/d3svg1/flags/italy.png":"https://p0.ssl.qhimg.com/t11b673bcd6259e5daf0549a262.png","./public/d3svg1/flags/jamaica.png":"https://p4.ssl.qhimg.com/t11b673bcd6fe1c1722f1aadb19.png","./public/d3svg1/flags/japan.png":"https://p5.ssl.qhimg.com/t11b673bcd62be27ee2e0144814.png","./public/d3svg1/flags/jersey.png":"https://p5.ssl.qhimg.com/t11b673bcd6e6808ce8980d8153.png","./public/d3svg1/flags/jordan.png":"https://p4.ssl.qhimg.com/t11b673bcd63b03a35b35e93112.png","./public/d3svg1/flags/kazakhstan.png":"https://p1.ssl.qhimg.com/t11b673bcd65c547f69f6914068.png","./public/d3svg1/flags/kenya.png":"https://p5.ssl.qhimg.com/t11b673bcd6c139207c1af5796e.png","./public/d3svg1/flags/kiribati.png":"https://p4.ssl.qhimg.com/t11b673bcd6fa801f19411d0845.png","./public/d3svg1/flags/kosovo.png":"https://p5.ssl.qhimg.com/t11b673bcd67a2248e71b96fe50.png","./public/d3svg1/flags/kuwait.png":"https://p1.ssl.qhimg.com/t11b673bcd644ba519b64e3b8d5.png","./public/d3svg1/flags/kyrgyzstan.png":"https://p2.ssl.qhimg.com/t11b673bcd6586d16c82fd0d335.png","./public/d3svg1/flags/laos.png":"https://p5.ssl.qhimg.com/t11b673bcd6c625355323458017.png","./public/d3svg1/flags/latvia.png":"https://p0.ssl.qhimg.com/t11b673bcd6ea8a114edbe5ec64.png","./public/d3svg1/flags/lebanon.png":"https://p4.ssl.qhimg.com/t11b673bcd6ffbeb21378af699a.png","./public/d3svg1/flags/lesotho.png":"https://p0.ssl.qhimg.com/t11b673bcd6d373c8167c1bbc61.png","./public/d3svg1/flags/liberia.png":"https://p0.ssl.qhimg.com/t11b673bcd6f36c69ecf34bcb61.png","./public/d3svg1/flags/libya.png":"https://p0.ssl.qhimg.com/t11b673bcd6d20838c79c8f3ba6.png","./public/d3svg1/flags/liechtenstein.png":"https://p5.ssl.qhimg.com/t11b673bcd696b0707e4ac337b5.png","./public/d3svg1/flags/lithuania.png":"https://p5.ssl.qhimg.com/t11b673bcd6b414cecd90415a6a.png","./public/d3svg1/flags/luxembourg.png":"https://p1.ssl.qhimg.com/t11b673bcd63d9dda633fc50ffd.png","./public/d3svg1/flags/macau.png":"https://p1.ssl.qhimg.com/t11b673bcd6a892679802369212.png","./public/d3svg1/flags/macedonia.png":"https://p2.ssl.qhimg.com/t11b673bcd623808f60cf668fc9.png","./public/d3svg1/flags/madagascar.png":"https://p0.ssl.qhimg.com/t11b673bcd64d15e974516d5cb3.png","./public/d3svg1/flags/malawi.png":"https://p5.ssl.qhimg.com/t11b673bcd62db076a05806722c.png","./public/d3svg1/flags/malaysia.png":"https://p4.ssl.qhimg.com/t11b673bcd6f9a3c22f13fd96c5.png","./public/d3svg1/flags/maldives.png":"https://p3.ssl.qhimg.com/t11b673bcd6fde5890555898b6f.png","./public/d3svg1/flags/mali.png":"https://p1.ssl.qhimg.com/t11b673bcd6422870677e8b5bce.png","./public/d3svg1/flags/malta.png":"https://p4.ssl.qhimg.com/t11b673bcd672c88550dc2c333e.png","./public/d3svg1/flags/marshall_islands.png":"https://p0.ssl.qhimg.com/t11b673bcd6646846cbbf3a4735.png","./public/d3svg1/flags/mauritania.png":"https://p5.ssl.qhimg.com/t11b673bcd6c3ade924f1cef885.png","./public/d3svg1/flags/mauritius.png":"https://p0.ssl.qhimg.com/t11b673bcd629026fcfcd64601f.png","./public/d3svg1/flags/mexico.png":"https://p2.ssl.qhimg.com/t11b673bcd6e06d39e098fc8ccb.png","./public/d3svg1/flags/micronesia.png":"https://p1.ssl.qhimg.com/t11b673bcd6c1b247a750439a7e.png","./public/d3svg1/flags/moldova.png":"https://p5.ssl.qhimg.com/t11b673bcd650c6f75d4d3eee8b.png","./public/d3svg1/flags/monaco.png":"https://p4.ssl.qhimg.com/t11b673bcd6bcb4661812d6e2dd.png","./public/d3svg1/flags/mongolia.png":"https://p4.ssl.qhimg.com/t11b673bcd62cfc9fa747237289.png","./public/d3svg1/flags/montenegro.png":"https://p4.ssl.qhimg.com/t11b673bcd66462c01ca1bafac0.png","./public/d3svg1/flags/montserrat.png":"https://p3.ssl.qhimg.com/t11b673bcd60c8845d6d090c447.png","./public/d3svg1/flags/morocco.png":"https://p0.ssl.qhimg.com/t11b673bcd69897bbe03901a57a.png","./public/d3svg1/flags/mozambique.png":"https://p5.ssl.qhimg.com/t11b673bcd65f93036ad9aec89c.png","./public/d3svg1/flags/myanmar_burma.png":"https://p2.ssl.qhimg.com/t11b673bcd63ee76060475fe0b0.png","./public/d3svg1/flags/namibia.png":"https://p2.ssl.qhimg.com/t11b673bcd65e0bbc1fec4908a9.png","./public/d3svg1/flags/nauru.png":"https://p0.ssl.qhimg.com/t11b673bcd674083d9b9b5e0069.png","./public/d3svg1/flags/nepal.png":"https://p0.ssl.qhimg.com/t11b673bcd67808e1379fc17470.png","./public/d3svg1/flags/netherlands.png":"https://p5.ssl.qhimg.com/t11b673bcd6d592b75467b0db7b.png","./public/d3svg1/flags/netherlands_antilles.png":"https://p5.ssl.qhimg.com/t11b673bcd63bbf175457b12c12.png","./public/d3svg1/flags/new_caledonia.png":"https://p1.ssl.qhimg.com/t11b673bcd62231079a91d351eb.png","./public/d3svg1/flags/new_zealand.png":"https://p4.ssl.qhimg.com/t11b673bcd649ee6eb1c37a282a.png","./public/d3svg1/flags/nicaragua.png":"https://p2.ssl.qhimg.com/t11b673bcd63d155996d8c986c9.png","./public/d3svg1/flags/niger.png":"https://p5.ssl.qhimg.com/t11b673bcd64f4d87e9952a272b.png","./public/d3svg1/flags/nigeria.png":"https://p2.ssl.qhimg.com/t11b673bcd6964d810f5fe6b404.png","./public/d3svg1/flags/niue.png":"https://p5.ssl.qhimg.com/t11b673bcd6f23318f87536e3be.png","./public/d3svg1/flags/norfolk_island.png":"https://p0.ssl.qhimg.com/t11b673bcd66bb5e86248642b36.png","./public/d3svg1/flags/northern_cyprus.png":"https://p5.ssl.qhimg.com/t11b673bcd61b7548ce349c2c59.png","./public/d3svg1/flags/northern_ireland.png":"https://p5.ssl.qhimg.com/t11b673bcd6ea43c093d6f4f449.png","./public/d3svg1/flags/north_korea.png":"https://p4.ssl.qhimg.com/t11b673bcd67327fd94e8b6a5a3.png","./public/d3svg1/flags/norway.png":"https://p0.ssl.qhimg.com/t11b673bcd6c987d9dd507bfdd6.png","./public/d3svg1/flags/oman.png":"https://p3.ssl.qhimg.com/t11b673bcd6808d4462b6f3a218.png","./public/d3svg1/flags/pakistan.png":"https://p2.ssl.qhimg.com/t11b673bcd6cf5e993ade4f2964.png","./public/d3svg1/flags/palau.png":"https://p3.ssl.qhimg.com/t11b673bcd6c068865ac2e2b031.png","./public/d3svg1/flags/palestine.png":"https://p1.ssl.qhimg.com/t11b673bcd6eead994da457cb04.png","./public/d3svg1/flags/panama.png":"https://p2.ssl.qhimg.com/t11b673bcd6cc4745092f80ccfb.png","./public/d3svg1/flags/papua_new_guinea.png":"https://p0.ssl.qhimg.com/t11b673bcd644673a8e2c3ef051.png","./public/d3svg1/flags/paraguay.png":"https://p1.ssl.qhimg.com/t11b673bcd6dda2a735d20519e7.png","./public/d3svg1/flags/peru.png":"https://p2.ssl.qhimg.com/t11b673bcd633af174deb1560d5.png","./public/d3svg1/flags/philippines.png":"https://p4.ssl.qhimg.com/t11b673bcd6f5f86e3429cb4c81.png","./public/d3svg1/flags/pitcairn_islands.png":"https://p1.ssl.qhimg.com/t11b673bcd64517b95359047675.png","./public/d3svg1/flags/poland.png":"https://p3.ssl.qhimg.com/t11b673bcd6069ed918cdd98767.png","./public/d3svg1/flags/portugal.png":"https://p4.ssl.qhimg.com/t11b673bcd68cefa1ac33d50290.png","./public/d3svg1/flags/puerto_rico.png":"https://p2.ssl.qhimg.com/t11b673bcd6659a3560240c8a4e.png","./public/d3svg1/flags/qatar.png":"https://p3.ssl.qhimg.com/t11b673bcd669854fcdd37ed962.png","./public/d3svg1/flags/romania.png":"https://p2.ssl.qhimg.com/t11b673bcd6208b9341dba47f11.png","./public/d3svg1/flags/russia.png":"https://p0.ssl.qhimg.com/t11b673bcd66b8ee4de7e5d9e69.png","./public/d3svg1/flags/rwanda.png":"https://p3.ssl.qhimg.com/t11b673bcd61c8a95a7340b4dae.png","./public/d3svg1/flags/sahrawi_arab.png":"https://p0.ssl.qhimg.com/t11b673bcd6833624156c42e3ab.png","./public/d3svg1/flags/saint_kitts_and_nevis.png":"https://p2.ssl.qhimg.com/t11b673bcd6bb701bf8e688e076.png","./public/d3svg1/flags/saint_lucia.png":"https://p2.ssl.qhimg.com/t11b673bcd6be47edaa16e3efdb.png","./public/d3svg1/flags/saint_vincent_and_grenadines.png":"https://p5.ssl.qhimg.com/t11b673bcd6356376d62ad2fb08.png","./public/d3svg1/flags/samoa.png":"https://p0.ssl.qhimg.com/t11b673bcd65099091e7ff643a2.png","./public/d3svg1/flags/san_marino.png":"https://p1.ssl.qhimg.com/t11b673bcd6c7d8eaf79bd11950.png","./public/d3svg1/flags/sao_tome_principe.png":"https://p0.ssl.qhimg.com/t11b673bcd65ed5322e52b33883.png","./public/d3svg1/flags/saudi_arabia.png":"https://p4.ssl.qhimg.com/t11b673bcd65ef983618f3dad1d.png","./public/d3svg1/flags/scotland.png":"https://p2.ssl.qhimg.com/t11b673bcd632d8efbdc309befc.png","./public/d3svg1/flags/senegal.png":"https://p5.ssl.qhimg.com/t11b673bcd6ed2aa2fac6a327f1.png","./public/d3svg1/flags/serbia.png":"https://p1.ssl.qhimg.com/t11b673bcd6f87c8ab028617f5b.png","./public/d3svg1/flags/seychelles.png":"https://p1.ssl.qhimg.com/t11b673bcd621e9aa4597a2c5d2.png","./public/d3svg1/flags/sierra_leone.png":"https://p5.ssl.qhimg.com/t11b673bcd60afc938f22552079.png","./public/d3svg1/flags/singapore.png":"https://p1.ssl.qhimg.com/t11b673bcd640999577dd24227e.png","./public/d3svg1/flags/sint_maarten.png":"https://p4.ssl.qhimg.com/t11b673bcd615986c65ec59b44c.png","./public/d3svg1/flags/slovakia.png":"https://p0.ssl.qhimg.com/t11b673bcd61e49878fdeda9e6c.png","./public/d3svg1/flags/slovenia.png":"https://p3.ssl.qhimg.com/t11b673bcd6ef90cb0d44c02757.png","./public/d3svg1/flags/solomon_islands.png":"https://p1.ssl.qhimg.com/t11b673bcd6066406f4b1266571.png","./public/d3svg1/flags/somalia.png":"https://p5.ssl.qhimg.com/t11b673bcd63c470e6e15a1a963.png","./public/d3svg1/flags/south_africa.png":"https://p2.ssl.qhimg.com/t11b673bcd6aaa44743ad66ca71.png","./public/d3svg1/flags/south_korea.png":"https://p2.ssl.qhimg.com/t11b673bcd6207c734bc93ffca7.png","./public/d3svg1/flags/south_sudan.png":"https://p1.ssl.qhimg.com/t11b673bcd61c283fad96263e62.png","./public/d3svg1/flags/spain.png":"https://p5.ssl.qhimg.com/t11b673bcd68316992b1c22281d.png","./public/d3svg1/flags/sri_lanka.png":"https://p4.ssl.qhimg.com/t11b673bcd6fb7bcacef951feed.png","./public/d3svg1/flags/sudan.png":"https://p1.ssl.qhimg.com/t11b673bcd6f129ac747600e082.png","./public/d3svg1/flags/suriname.png":"https://p5.ssl.qhimg.com/t11b673bcd67a12641513ab7d34.png","./public/d3svg1/flags/swaziland.png":"https://p0.ssl.qhimg.com/t11b673bcd6936216cc45eeff7b.png","./public/d3svg1/flags/sweden.png":"https://p0.ssl.qhimg.com/t11b673bcd666958e31ac92957e.png","./public/d3svg1/flags/switzeland.png":"https://p2.ssl.qhimg.com/t11b673bcd6122ada53eb1b807e.png","./public/d3svg1/flags/syria.png":"https://p1.ssl.qhimg.com/t11b673bcd6953c86d18052c932.png","./public/d3svg1/flags/taiwan.png":"https://p5.ssl.qhimg.com/t11b673bcd6304bcd201fd23df6.png","./public/d3svg1/flags/tajikistan.png":"https://p4.ssl.qhimg.com/t11b673bcd698c5c84a62b12388.png","./public/d3svg1/flags/tanzania.png":"https://p3.ssl.qhimg.com/t11b673bcd6d537b34d56658c98.png","./public/d3svg1/flags/thailand.png":"https://p1.ssl.qhimg.com/t11b673bcd60050f650fff9bd66.png","./public/d3svg1/flags/the_cook_islands.png":"https://p4.ssl.qhimg.com/t11b673bcd61292a8f19147f865.png","./public/d3svg1/flags/the_faroe_islands.png":"https://p0.ssl.qhimg.com/t11b673bcd6cda6e9ec5b5bc8f6.png","./public/d3svg1/flags/the_turks_and_caicos_islands.png":"https://p2.ssl.qhimg.com/t11b673bcd614fca92287df5c95.png","./public/d3svg1/flags/togo.png":"https://p5.ssl.qhimg.com/t11b673bcd682ba165ebbbca70a.png","./public/d3svg1/flags/tokelau.png":"https://p1.ssl.qhimg.com/t11b673bcd67e4bae219b59d6e6.png","./public/d3svg1/flags/tonga.png":"https://p0.ssl.qhimg.com/t11b673bcd6998933793d4d8fbc.png","./public/d3svg1/flags/transnistria.png":"https://p0.ssl.qhimg.com/t11b673bcd62dc7b17601baa895.png","./public/d3svg1/flags/trinidad_and_tobago.png":"https://p3.ssl.qhimg.com/t11b673bcd67371391609bf78d7.png","./public/d3svg1/flags/tunisia.png":"https://p3.ssl.qhimg.com/t11b673bcd624cb2d7bf0797501.png","./public/d3svg1/flags/turkey.png":"https://p5.ssl.qhimg.com/t11b673bcd6b51b544b5e683846.png","./public/d3svg1/flags/turkmenistan.png":"https://p2.ssl.qhimg.com/t11b673bcd680705dbb5d2590e1.png","./public/d3svg1/flags/tuvalu.png":"https://p5.ssl.qhimg.com/t11b673bcd6eb80c5b0e6b4cf9d.png","./public/d3svg1/flags/uganda.png":"https://p2.ssl.qhimg.com/t11b673bcd6a42822abbcef11ef.png","./public/d3svg1/flags/ukraine.png":"https://p5.ssl.qhimg.com/t11b673bcd6a18c73c5e309e867.png","./public/d3svg1/flags/united_arab_emirates_uae.png":"https://p0.ssl.qhimg.com/t11b673bcd6d6ac620490436646.png","./public/d3svg1/flags/united_kingdom.png":"https://p0.ssl.qhimg.com/t11b673bcd6b2dab8383fd03d16.png","./public/d3svg1/flags/united_states.png":"https://p4.ssl.qhimg.com/t11b673bcd6ac4aab9abb62470d.png","./public/d3svg1/flags/united_states_virgin_islands.png":"https://p0.ssl.qhimg.com/t11b673bcd60e706830471605ae.png","./public/d3svg1/flags/uruguay.png":"https://p1.ssl.qhimg.com/t11b673bcd673c8556316268f27.png","./public/d3svg1/flags/uzbekistan.png":"https://p5.ssl.qhimg.com/t11b673bcd6692a87d0deaa0cd4.png","./public/d3svg1/flags/vanuatu.png":"https://p3.ssl.qhimg.com/t11b673bcd6dfe59d18beb502ed.png","./public/d3svg1/flags/vatican.png":"https://p2.ssl.qhimg.com/t11b673bcd65204ea5b7e60deae.png","./public/d3svg1/flags/venezuela.png":"https://p3.ssl.qhimg.com/t11b673bcd6d6d7092d46e0d7c3.png","./public/d3svg1/flags/vietnam.png":"https://p3.ssl.qhimg.com/t11b673bcd668708c0e4043f8a0.png","./public/d3svg1/flags/wales.png":"https://p2.ssl.qhimg.com/t11b673bcd60c0cbfacd5576ddd.png","./public/d3svg1/flags/wallis_and_futuna.png":"https://p5.ssl.qhimg.com/t11b673bcd68351271fd687e442.png","./public/d3svg1/flags/yemen.png":"https://p2.ssl.qhimg.com/t11b673bcd6b506ff3ca76f158a.png","./public/d3svg1/flags/zambia.png":"https://p4.ssl.qhimg.com/t11b673bcd614f327cbfbe2c728.png","./public/d3svg1/flags/zimbabwe.png":"https://p0.ssl.qhimg.com/t11b673bcd6704ad2c0a3c95fd1.png","./public/d3svg1/fold-left.svg":"https://s5.qhres2.com/static/64c3e01294203a68.svg","./public/d3svg1/fold-right.svg":"https://s9.qhres2.com/static/3538c207c3fe91e2.svg","./public/d3svg1/group.svg":"https://s5.qhres2.com/static/5f3286f6d9f3faab.svg","./public/d3svg1/host.svg":"https://s8.qhres2.com/static/1c0a4b2bfee6e157.svg","./public/d3svg1/icon_ thumbprint.svg":"https://s9.qhres2.com/static/4604a52bd2797688.svg","./public/d3svg1/icon_cert_md5.svg":"https://s8.qhres2.com/static/50f33f15365a638a.svg","./public/d3svg1/icon_email.svg":"https://s8.qhres2.com/static/6ca54d23816f6bab.svg","./public/d3svg1/icon_family.svg":"https://s5.qhres2.com/static/df16a4bb42ef04f8.svg","./public/d3svg1/icon_files.svg":"https://s6.qhres2.com/static/7a779b0e4bdb8823.svg","./public/d3svg1/icon_host.svg":"https://s9.qhres2.com/static/8d1207bc7ff6821e.svg","./public/d3svg1/icon_ip.svg":"https://s9.qhres2.com/static/2dd1f32c1f2925b6.svg","./public/d3svg1/icon_issuer.svg":"https://s9.qhres2.com/static/64f9af8918b80390.svg","./public/d3svg1/icon_mac.svg":"https://s6.qhres2.com/static/afa1897aa3157b79.svg","./public/d3svg1/icon_mid.svg":"https://s6.qhres2.com/static/f8b70764e209d1b0.svg","./public/d3svg1/icon_org.svg":"https://s8.qhres2.com/static/8a788cf726c4be74.svg","./public/d3svg1/icon_report.svg":"https://s8.qhres2.com/static/307389647f167f5a.svg","./public/d3svg1/icon_search.svg":"https://s7.qhres2.com/static/3ebec436a55a4e02.svg","./public/d3svg1/icon_subject.svg":"https://s5.qhres2.com/static/dc50dc3eb65359c6.svg","./public/d3svg1/icon_vul.svg":"https://s7.qhres2.com/static/6178e21d4df882e5.svg","./public/d3svg1/innerip.svg":"https://s9.qhres2.com/static/b2ba46a37e51ac7c.svg","./public/d3svg1/internet.svg":"https://s5.qhres2.com/static/329ba4f0d5d5a38e.svg","./public/d3svg1/intranet.svg":"https://s8.qhres2.com/static/d57dc307ea030e67.svg","./public/d3svg1/ioc.svg":"https://s6.qhres2.com/static/c3c9db7bbc3e5bf5.svg","./public/d3svg1/ip copy.svg":"https://s5.qhres2.com/static/f30c7317dd483dbd.svg","./public/d3svg1/ip.svg":"https://s8.qhres2.com/static/e9aa6d49edb6c705.svg","./public/d3svg1/ips.svg":"https://s9.qhres2.com/static/9c1cb66938613669.svg","./public/d3svg1/jiantou.svg":"https://s9.qhres2.com/static/2782d2c0cf2735b3.svg","./public/d3svg1/jiantou_active.svg":"https://s7.qhres2.com/static/66b48ee2c7ac8fa1.svg","./public/d3svg1/loop.svg":"https://s8.qhres2.com/static/f8fae0b477ae23f8.svg","./public/d3svg1/mac.svg":"https://s7.qhres2.com/static/9cf115d3f6ac3d2c.svg","./public/d3svg1/mail.svg":"https://s9.qhres2.com/static/998d1f1f7829350c.svg","./public/d3svg1/md5.svg":"https://s9.qhres2.com/static/e9c970724261e663.svg","./public/d3svg1/md51.svg":"https://s7.qhres2.com/static/57466b9085fcc2ea.svg","./public/d3svg1/md52.svg":"https://s5.qhres2.com/static/4bdced7a2e104377.svg","./public/d3svg1/md53.svg":"https://s7.qhres2.com/static/273f73f17afdcac5.svg","./public/d3svg1/md54.svg":"https://s6.qhres2.com/static/51c845288534d905.svg","./public/d3svg1/mid.svg":"https://s9.qhres2.com/static/21d3e21e0ca0faba.svg","./public/d3svg1/name.svg":"https://s5.qhres2.com/static/021ce05cc89c45ac.svg","./public/d3svg1/net.svg":"https://s5.qhres2.com/static/35b12ea3c8a5a69c.svg","./public/d3svg1/node.svg":"https://s9.qhres2.com/static/169d2bd7d9c9aa0a.svg","./public/d3svg1/node_type.svg":"https://s9.qhres2.com/static/97c1c618f9e222cf.svg","./public/d3svg1/org.svg":"https://s9.qhres2.com/static/76b597c211ea4d94.svg","./public/d3svg1/organization.svg":"https://s9.qhres2.com/static/e08c31cd00a3b926.svg","./public/d3svg1/outerip.svg":"https://s8.qhres2.com/static/7ff10a0d571809ad.svg","./public/d3svg1/proc.svg":"https://s5.qhres2.com/static/8abbf12fa662b659.svg","./public/d3svg1/proc_md5.svg":"https://s8.qhres2.com/static/e86f71a748180b4e.svg","./public/d3svg1/relate_ip.svg":"https://s6.qhres2.com/static/13610168689342fd.svg","./public/d3svg1/report.svg":"https://s7.qhres2.com/static/ecf1a790525d5848.svg","./public/d3svg1/router_mac.svg":"https://s6.qhres2.com/static/ccde05c4a61f0356.svg","./public/d3svg1/star.svg":"https://s8.qhres2.com/static/9dece9fb0beb1f0e.svg","./public/d3svg1/sys_icon.svg":"https://s8.qhres2.com/static/1df923965bc3ddc4.svg","./public/d3svg1/target_country.svg":"https://s8.qhres2.com/static/b9262dc9c2f7e0f1.svg","./public/d3svg1/target_industry.svg":"https://s9.qhres2.com/static/571b52805d048d92.svg","./public/d3svg1/thumbprint_md5.svg":"https://s5.qhres2.com/static/02dfbd0ae2c0e573.svg","./public/d3svg1/ttp.svg":"https://s5.qhres2.com/static/b95adbab7c0641d1.svg","./public/d3svg1/url.svg":"https://s8.qhres2.com/static/523349cc292da6b5.svg","./public/d3svg1/user_name.svg":"https://s8.qhres2.com/static/f701f463bc1e30c0.svg","./public/d3svg1/vendor.svg":"https://s8.qhres2.com/static/64d55f39fd1c821f.svg","./public/d3svg1/vul.svg":"https://s6.qhres2.com/static/d45444d8a175ead3.svg"};function ds(e){try{var t,n=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(t=document.cookie.match(n))?unescape(t[2]):""}catch(r){return""}}function P0(e,t,n){var r=(n=n||{}).expires;typeof r=="number"&&(r=new Date).setTime(r.getTime()+n.expires);try{document.cookie=e+"="+escape(t)+(r?";expires="+r.toGMTString():"")+(n.path?";path="+n.path:"")+(n.domain?"; domain="+n.domain:"")}catch(s){}}function OS(e){return e!=null&&e.constructor!=null?Object.prototype.toString.call(e).slice(8,-1):""}function NS(e){return OS(e)=="Array"}function Xc(e){return OS(e)=="Function"}function Or(e){return e!==null&&typeof e=="object"}function Nr(e,t,n){for(var r in t)(n||!e[r]&&!(r in e))&&(e[r]=t[r]);return e}const IS={"360se-ua":"360se","360ee":"360ee",edge:"edg",edge:"edga",edge:"edgios",TT:"tencenttraveler",Maxthon:"maxthon",GreenBrowser:"greenbrowser",Sogou:"se 2.x",TheWorld:"theworld"},Aq=["Baiduspider","Googlebot","360Spider","Sosospider","Yahoo! Slurp China","Yahoo!","YoudaoBot","YodaoBot","Sogou web spider","Sogou inst spider","Sogou spider2","Sogou blog","Sogou News Spider","Sogou Orion spider","msnbot","msnbot-media","bingbot","bingpreview","YisouSpider","ia_archiver","EasouSpider","JikeSpider","Bytespider"];var st=new class{constructor(){this._activeTime="",this.appkey="",this.trackId="",this.mid="",this.m2="",this.asc="",this.asc2="",this.debug=!1,this.heartbeatTimers={},this.config={wpoUrl:null,trackUrl:null,clickUrl:null,heartbeatUrl:null,clickHeatMapUrl:null,areaIds:null}}log(){if(!this.debug)return;const[e,...t]=arguments,n="[RadarMonitor] "+e;try{return console.log.apply(console,[n,...t])}catch(r){}}userAgentIsExitsSpiders(){const e=this.getUserAgent().toLowerCase();var t=!1;return Aq.map(n=>{e.indexOf(n.toLowerCase())>=0&&(t=!0)}),t}setUtilActiveTime(e){this._activeTime=e}setHeartBeatStartTime(e,t){Nr(this.getHeartBeatById(e),{startTime:t},!0)}setHeartBeatTimer(e,t){Nr(this.getHeartBeatById(e),{timer:t},!0)}getHeartBeatStartTime(e){return this.getHeartBeatById(e).startTime}getHeartBeatTimer(e){return this.getHeartBeatById(e).timer}getHeartBeatById(e){return Or(this.heartbeatTimers[e])||(this.heartbeatTimers[e]={}),this.heartbeatTimers[e]}deleteHeartBeat(e){delete this.heartbeatTimers[e]}setUtilConf(e,t){var n={};Or(e)?n=e:n[e]=t,this.config=Nr(this.config,n,!0)}getUtilConf(){return this.config}getColorDepth(){return window.screen.colorDepth+"-bit"}getLanguage(){return(navigator.language||navigator.browserLanguage).toLowerCase()}getUserAgent(){return navigator.userAgent}getScreenSize(){return window.screen.width+"x"+window.screen.height}getProject(){return this.appkey}setAppKey(e){/QH_[0-9]+_[0-9]*\#?[0-9]{1,}$/.test(e)?this.appkey=e:e&&this.log("当前写入的appkey: ",e," 格式异常,请前往雷达分析平台确认.")}getReferrer(){var e=document.referrer||"";return e.indexOf("pass")>-1||e.indexOf("pwd")>-1?"403":e}getBrowser(){var e=navigator.userAgent.toLowerCase(),t=!1;for(var n in IS)if(e.indexOf(IS[n])>-1)return n;try{+external.twGetVersion(external.twGetSecurityID(window)).replace(/\./g,"")>1013&&(t=!0)}catch(s){}if(t)return"360se-noua";var r=e.match(/(msie|chrome|safari|firefox|opera|trident)/);return(r=r?r[0]:"")=="msie"?r=e.match(/msie[^;]+/)+"":r=="trident"&&e.replace(/trident\/[0-9].*rv[ :]([0-9.]+)/gi,function(s,o){r="msie "+o}),r}getReferrerKeyWord(){const e=document.referrer;var t={q:"",eqid:""};if(!e)return t;for(var n=new URL(e).search.substring(1).split("&"),r={},s=0;s<n.length;s++){var o=n[s].split("=");r[o[0]]=o[1]}return e.indexOf("baidu.com")>-1?(t.q=r.wd,t.eqid=r.eqid):(e.indexOf("so.com")>-1||e.indexOf("sm.cn")>-1)&&(t.q=r.q),t.q||(t.q=""),t}getLocation(e){e||(e="");try{e=location.href}catch(t){(e=document.createElement("a")).href="",e=e.href}return e=/\.(s?htm|php)/.test(e)?e:e.replace(/\/$/,"")+"/"}hash(e){for(var t=0,n=0,r=e.length-1;r>=0;r--){var s=parseInt(e.charCodeAt(r),10);(n=266338304&(t=(t<<6&268435455)+s+(s<<14)))!=0&&(t^=n>>21)}return t}guid(){for(var e=[navigator.appName,navigator.version,navigator.language||navigator.browserLanguage,navigator.platform,navigator.userAgent,window.screen.width,"x",window.screen.height,window.screen.colorDepth,document.referrer].join(""),t=e.length,n=window.history.length;n;)e+=n--^t++;return 2147483647*(Math.round(2147483647*Math.random())^this.hash(e))}isLocal(){try{var e=location.protocol.toLowerCase();if(e=="http:"||e=="https:")return!1}catch(t){}return!0}getSid(){var e="__DC_sid",t=ds(e);return!t&&(t=ds("__sid"))&&t.split(".").length!==4&&(t=null),t||(t=[this.hash(this.isLocal()?"":document.domain),this.guid(),+new Date+Math.random()].join(".")),P0(e,t,{expires:60*(this._activeTime||30)*1e3,path:"/"}),t}setUtilTrackId(e){this.trackId=e}getGid(e=!1){var t="__DC_gid",n=ds(t);if(!n&&(n=ds("__gid"))&&n.split(".").length!==5&&(n=null),n||(n=function(s){try{return JSON.parse(window.localStorage.getItem(s))}catch(o){return[]}}(t)),n)(n=n.split("."))[3]=new Date().getTime(),e&&(n[4]=(parseInt(n[4])||0)+1),n=n.join(".");else{var r=e?1:0;n=this.trackId?[this.trackId,1,1,new Date().getTime(),r].join("."):[this.hash(this.isLocal()?"":document.domain),Math.floor(1e9*Math.random()),new Date().getTime(),new Date().getTime(),r].join(".")}return function(s,o){try{window.localStorage.setItem(s,JSON.stringify(o))}catch(a){}}(t,n),P0(t,n,{expires:63072e6,path:"/"}),n}getBrowserID(){return rt(this,null,function*(){return new Promise((e,t)=>rt(this,null,function*(){const n=this.getMid(),r=this.getASC(),[s,o]=yield Promise.all([this.getM2(),this.getASC2()]);return e({mid:n,m2:s,asc:r,asc2:o})}))})}getMid(){var e=this.mid;try{e=external.GetMID(external.GetSID(window)),this._setMid(e)}catch(t){}try{e.length!==32&&(e=window.wdextcmd.GetMid(),this._setMid(e))}catch(t){}return e}_setMid(e){this.mid=e}getM2(){return new Promise((e,t)=>{try{if(this.m2.length===0){const n=(r,s)=>{this.setM2(s),e(s)};external.AppCmd(external.GetSID(window),"","GetMID2","","",n)}}catch(n){}setTimeout(()=>{var n=this.m2;if(n===void 0)try{n=window.wdextcmd.GetMidV2(),this.setM2(n),e(n)}catch(r){}e(n)},500)})}setM2(e){this.m2=e}getASC(){var e=this.asc;try{e=external.GetASC(external.GetSID(window)),this.setASC(e)}catch(t){}try{e.length===0&&(e=window.wdextcmd.GetASC(),this.setASC(e))}catch(t){}try{e.length===0&&(e=ds("__asc"),this.setASC(e))}catch(t){}return e}setASC(e){this.asc=e}getASC2(){return new Promise((e,t)=>{try{if(this.asc2.length===0){const n=(r,s)=>{this.setASC2(s),e(s)};external.AppCmd(external.GetSID(window),"","GetASC2","","",n)}}catch(n){}setTimeout(()=>{var n=this.asc2;try{n===void 0&&(n=window.wdextcmd.GetASC2(),this.setASC2(n))}catch(r){}try{n.length===0&&(n=ds("__asc2"),this.setASC2(n))}catch(r){}e(n)},500)})}setASC2(e){this.asc2=e}getCount(){var e="__DC_monitor_count",t=ds(e);return t||(t=ds("monitor_count")),P0(e,t=(parseInt(t)||0)+1,{expires:864e5,path:"/"}),t}getFlashVer(){var e=-1;if(navigator.plugins&&navigator.mimeTypes.length){var t=navigator.plugins["Shockwave Flash"];t&&t.description&&(e=t.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")+".0")}else if(window.ActiveXObject&&!window.opera)try{var n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");n&&(e=n.GetVariable("$version").replace(/WIN/g,"").replace(/,/g,"."))}catch(r){}return e=parseInt(e,10)}getContainerId(e){var t,n;for(this.getUtilConf().areaIds&&(t=new RegExp("^("+this.getUtilConf().areaIds.join("|")+")$","ig"));e;){if(e.attributes&&("bk"in e.attributes||"data-bk"in e.attributes)){if(n=e.getAttribute("bk")||e.getAttribute("data-bk"))return(n="bk:"+n).substr(0,100);if(e.id)return(n=e.getAttribute("data-desc")||e.id).substr(0,100)}else if(t&&e.id&&t.test(e.id))return(n=e.getAttribute("data-desc")||e.id).substr(0,100);e=e.parentNode}return""}trim(e){return e.replace(/^[\s\xa0\u3000]+|[\u3000\xa0\s]+$/g,"")}getText(e){var t="";return t=e.tagName.toLowerCase()=="input"?e.getAttribute("text")||e.getAttribute("data-text")||e.value||e.title||"":e.getAttribute("text")||e.getAttribute("data-text")||e.innerText||e.textContent||e.title||"",this.trim(t).substr(0,100)}getHref(e){try{return e.getAttribute("data-href")||e.href||""}catch(t){return""}}};function If(e,t,n){e.addEventListener?e&&e.addEventListener(t,n,!1):e&&e.attachEvent("on"+t,n)}function T0(e,t,n){for(n=n||5,t=t.toUpperCase();e&&n-- >0;){if(e.tagName===t)return e;e=e.parentNode}return null}var Zc=[];function RS(e){Xc(e)&&Zc.push(e)}function Pq(e){var t,n;if(NS(e))for(n=e.length,t=0;t<n;t++)RS(e[t]);else RS(e);(function(r){Zc.splice(Zc.indexOf(r),1)})(e),e=null}function DS(e){if(!("target"in e)){var t=e.srcElement||e.target;t&&t.nodeType==3&&(t=t.parentNode),e.target=t}return e}let Tq=class{constructor(){this.baseExtend={},this.title="",this.placeholder=[]}getBase(t=!1){var n={p:st.getProject(),u:st.getLocation(),gid:st.getGid(t),sid:st.getSid(),title:this.getTitle()},r=st.getReferrerKeyWord();return r&&(n.q=r.q,n.eqid=r.eqid),n}getBaseTrack(t){var n=st.getSid()==st.getSid()?1:0,r={b:st.getBrowser(),c:st.getCount(),r:st.getReferrer(),fl:st.getFlashVer(),sd:st.getColorDepth(),sr:st.getScreenSize(),ul:st.getLanguage(),ua:st.getUserAgent(),ce:n};if(t)try{t=t.split(",");for(var s=[],o=0,a=t.length;o<a;o++){var l=ds(t[o]);s.push(t[o]+"="+encodeURIComponent(l))}r.uc=encodeURIComponent(s.join("&"))}catch(c){}return r}getClick(t){var n,r,s=(t=DS(t||event)).target,o=s.tagName,a=st.getContainerId(s);if(a=="bk:noupload")return!1;if(!s.type||s.type!="submit"&&s.type!="button")return o=="AREA"?{f:st.getHref(s),c:"area:"+s.parentNode.name,cId:a}:(o=="IMG"&&(n=s),!!(s=T0(s,"A"))&&(r=st.getText(s),{f:st.getHref(s),c:r||(n?n.src.match(/[^\/]+$/):""),cId:a}));var l=T0(s,"FORM"),c={};if(l){var u=l.id||"",d=s.id;if(c={f:l.action,c:"form:"+(l.name||u),cId:a},!(u!="search-form"&&u!="searchForm"||d!="searchBtn"&&d!="search-btn")){var f=$("kw")||$("search-kw")||$("kw1");c.w=f?f.value:""}}else c={f:st.getHref(s),c:st.getText(s),cId:a};return c}getKeydown(t){if((t=DS(t||event)).keyCode!=13)return!1;var n=t.target,r=n.tagName,s=st.getContainerId(n);if(r=="INPUT"){var o=T0(n,"FORM");if(o){var a=o.id||"",l=n.id,c={f:o.action,c:"form:"+(o.name||a),cId:s};return l!="kw"&&l!="search-kw"&&l!="kw1"||(c.w=n.value),c}}return!1}getBaseExtend(t){return t&&(this.baseExtend=t),this.baseExtend}getTitle(){return this.title||(this.title=document.title),this.title}setBaseTitle(t){this.title=t}},Oq=class{constructor(t){this.master=t,this.lastLocation=st.getLocation(),this.isStarted=!1}start(){if(!this.isStarted){var t="pushState"in window.history?"popstate":"hashchange",n=this;this.isStarted=!0,this.master.util.log("autoTrackPageChange"),this.master.util.log("hashEvent:",t),If(window,t,o=>{this.master.util.log(t+": "+document.location+", state: "+JSON.stringify(o.state)),n.lastLocation!==window.location.href&&(n.lastLocation=window.location.href,n.master.autoTrackEvent())});var r=window.history.pushState;Xc(history.pushState)&&r&&(history.pushState=function(o){r.apply(window.history,arguments),n.master.util.log("history.pushState",o),n.lastLocation=window.location.href,n.master.autoTrackEvent()});var s=window.history.replaceState;Xc(history.replaceState)&&s&&(history.replaceState=function(o){s.apply(window.history,arguments),n.master.util.log("history.replaceState",o),n.lastLocation=window.location.href,n.master.autoTrackEvent()})}}};var Nq="2.4.0";const fs=new class{constructor(){this.version=Nq,this.data=new Tq,this.util=st,this.heatmap_enable=!1,this.disable_autoPV=!1,this.manualPV_enable=!1,this.autopv=new Oq(this)}setAscAndAsc2(e,t){if(this.data.placeholder.length>0)return;const n=e||"",r=t||"";this.data.placeholder.push({asc:n},{asc2:r})}setThirdProps(e,t){if(!e||!t)return;const n={[e]:t};this.data.placeholder.length==2||this.setAscAndAsc2(),this.data.placeholder.push(n)}setFourthProps(e,t){e&&t&&(this.data.placeholder.length==3?this.data.placeholder.push({[e]:t}):st.log("确认必须先调用setAscAndAsc2和setThirdProps接口"))}getLibVersion(){return this.version}setTitle(e){return this.data.setBaseTitle(e),this}setTrackId(e){return st.setUtilTrackId(e.replace(/\./g,"")),this}getBrowserID(e){return rt(this,null,function*(){return new Promise((t,n)=>rt(this,null,function*(){if(e){if(this.data.placeholder.length<=0){const{mid:r,m2:s,asc:o,asc2:a}=yield st.getBrowserID();this.data.placeholder=[{mid:r},{m2:s},{asc:o},{asc2:a}]}t(function(r){for(var s=[],o=0;o<r.length;o++)s.push(encodeURIComponent(Object.keys(r[o]))+"="+encodeURIComponent(Object.values(r[o])));return s.join("&")}(this.data.placeholder)+"&")}else n("")}))})}sendLog(e){window.__radar_monitor_imgs={};var t="log_"+ +new Date,n=window.__radar_monitor_imgs[t]=new Image;n.onload=n.onerror=()=>{window.__radar_monitor_imgs&&window.__radar_monitor_imgs[t]&&(window.__radar_monitor_imgs[t]=null,delete window.__radar_monitor_imgs[t])},n.src=e}buildLog(e,t=""){return rt(this,null,function*(){var n="";if(e===!1)return;const r=t===this.getConf().trackUrl;e=e||{};var s,o=Nr(this.data.getBase(r),this.data.getBaseExtend(),!0);e=Nr(o,e,!0);try{s=yield this.getBrowserID(r)}catch(a){s=""}s+=function(a){var l=[];for(var c in a)a[c]!=null&&l.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return l.join("&")}(e),s+="&t="+ +new Date,(t=t.indexOf("?")>-1?t+"&"+s:t+"?"+s)!=n&&(n=t,setTimeout(()=>{n=""},100),this.sendLog(t))})}log(e,t){t=t||"click";const n=this.getConf()[t+"Url"];n?st.userAgentIsExitsSpiders()||this.buildLog(function(r,s){var o,a=Zc.length,l=s;for(o=0;o<a;o++)try{l=Nr(l,Zc[o].beforeLog(r,s))}catch(c){}return l}(t,e),n):st.log("Error : the "+t+" url does not exist!")}setConf(e,t){return st.setUtilConf(e,t),this}getConf(){return st.getUtilConf()}setUrl(e){if(e)return st.getLocation(e)}extendBase(e){if(e&&Or(e)){var t=Nr(this.data.getBaseExtend(),e,!0);this.data.getBaseExtend(t)}}setProject(e,t,n){return st.setAppKey(e),this.extendBase(t),this.init(n),this}setDebug(e=!0,t,n,r){return st.debug=e,e&&(st.log("当前已开启debug模式,可能会输出log,发布前请关闭!!!"),st.log("当前配置测试appkey:",t),st.setAppKey(t),this.extendBase(n),this.init(r)),this}setTrackId(e){return st.setUtilTrackId(e.replace(/\./g,"")),this}setId(e){for(var t=[];e=arguments[i++];)NS(e)?t=t.concat(e):t.push(e);return this.setConf("areaIds",t),this}init(e){var{trackForInit:t=!0}=e||{},n=location.protocol.toLowerCase()==="https:"?"https:":"http:";this.setConf({trackUrl:n+"//s.360.cn/qdas/s.htm",clickUrl:n+"//s.360.cn/qdas/c.htm",clickHeatMapUrl:n+"//s.360.cn/qdas/t.htm",wpoUrl:n+"//s.360.cn/qdas/p.htm",heartbeatUrl:n+"//s.360.cn/qdas/h.htm"}),t&&this.log(this.data.getBaseTrack(),"track")}setDisableAutoPV(e=!0){return this.disable_autoPV=e,this}setManualPVEnable(e=!0){return this.manualPV_enable=e,this}autoTrackEvent(){if(!this.disable_autoPV){var e=this.data.getBaseTrack();this.log(e,"track")}}getAutoTrack(){return this.autopv.start(),this}getTrack(e,t,n){var{enableMenualOnce:r=!1}=e||{};if(!r&&!this.manualPV_enable)return this;var s=this.data.getBaseTrack(n);return Or(t)&&(s=Nr(s,t,!0)),this.log(s,"track"),this}getClickHeatmap(e,t){if(!this.heatmap_enable){this.heatmap_enable=!0;var n=this,r=[];e=e||10,t=t||5;var s=0,o=a=>{if(clearTimeout(s),a||r.length>e)return r.length?(n.log({pos:r.join(","),sr:st.getScreenSize()},"clickHeatMap"),void(r=[])):void 0;s=setTimeout(()=>{o(!0)},60*t*1e3)};return If(document,"mousedown",a=>{var l=a.pageX+"."+a.pageY;r.push(l),o()}),this}}getClickAndKeydown(){return If(document,"mousedown",e=>{var t=this.data.getClick(e);this.log(t,"click")}),If(document,"keydown",e=>{var t=this.data.getKeydown(e);this.log(t,"click")}),this}beginHeartBeat(e,t,n){var r={};r.id=e,Or(t)&&(r=Nr(r,t,!1)),(n=isNaN(n)?10:n)>60?n=60:n<5&&(n=5);var s=this;st.setHeartBeatStartTime(e,Date.parse(new Date));var o=a=>{r.steptime=a,s.steptime=a,s.log(r,"heartbeat"),clearTimeout(st.getHeartBeatTimer(e)),st.setHeartBeatTimer(e,setTimeout(()=>{var l=(Date.parse(new Date)-st.getHeartBeatStartTime(e))/1e3;o(l)},1e3*n))};o(0)}endHeartBeat(e,t){var n=st.getHeartBeatStartTime(e);if(n!=null){var r={};r.id=e,Or(t)&&(r=Nr(r,t,!1)),clearTimeout(st.getHeartBeatTimer(e));var s=(Date.parse(new Date)-n)/1e3;r.steptime=s,this.log(r,"heartbeat"),st.deleteHeartBeat(e)}}setActiveTime(e){return st.setUtilActiveTime(e),this}addPlugin(e){return Pq(e)}use(e,t){return typeof(n=e)=="string"||n instanceof String?Or(window.RADAR_MONITOR_WEBJSSDKPLUGIN)&&Or(window.RADAR_MONITOR_WEBJSSDKPLUGIN[e])&&Xc(window.RADAR_MONITOR_WEBJSSDKPLUGIN[e].init)?(window.RADAR_MONITOR_WEBJSSDKPLUGIN[e].init(fs,t),window.RADAR_MONITOR_WEBJSSDKPLUGIN[e]):Or(fs.modules)&&Or(fs.modules[e])&&Xc(fs.modules[e].init)?(fs.modules[e].init(fs,t),fs.modules[e]):void st.log(e+"没有获取到,请查阅文档,调整"+e+"的引入顺序!"):(st.log("use插件名称必须是字符串!"),!1);var n}};function Iq(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function LS(e,t){return fetch(e,t).then(Iq)}const Rq=(e,t)=>{const n=document.createElement("a");n.download=t,n.style.display="none";const r=new window.Blob([e]);n.href=window.URL.createObjectURL(r),document.body.appendChild(n),n.click(),document.body.removeChild(n)},Rf=(e,t)=>rt(this,null,function*(){let n;return yield Ir(e).then(r=>{const s=document.createElement("canvas");s.width=r.width,s.height=r.height,s.getContext("2d").drawImage(r,0,0,r.width,r.height),n=s.toDataURL("image/png")}),n});function Ir(e){return rt(this,null,function*(){return new Promise((t,n)=>{const r=new Image;r.crossOrigin="anonymous",r.onload=()=>{t(r)},r.onerror=s=>{n(s)},r.src=e})})}function O0(e){if(typeof e=="number"||e===!0)return!0;var t=e===!1||e===null||e===void 0||Object.keys(e).length===0||/^\s*$/gim.test(e.toString());return!t}function rl(){var e=/macintosh|mac os x/i.test(navigator.userAgent);return e}function hs(e,t){var o;["label","textProp","detail","collect","fx","fy"].map(a=>{e[a]=e[a]?e[a]:null}),e.show=e.show?e.show:!0,e.type&&e.type!=="nodeType"&&(e.type=e.type.toLowerCase()),(["org","vul","email","family"].indexOf(e.type)>=0||e.startNode===!0)&&(e.textProp="name");const s={};if(e.type!=="nodeType"&&e.type!=="aggregation"&&((o=t[e.type])!=null&&o.length)){for(let a=0;a<t[e.type].length;a++){const l=t[e.type][a];s[l.name]=!1}e.getData=s}return e}function Dq(e){return e&&e.replace(/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,"")}function pi(...e){localStorage.getItem("showSafeForceGraphLog")&&console.log(...e)}function Fn(e){fs.log(e,"click")}function N0(e,t,n,r,s){const o=n-e,a=r-t,l=Math.sqrt(o*o+a*a),c=e+o/l*(l-s),u=t+a/l*(l-s);return{x:c||0,y:u||0}}function kS(e,t="#666",n="#fff"){if(!e)return e;const s=new DOMParser().parseFromString(e,"image/svg+xml"),o=s.querySelector("g");return o?(o.setAttribute("color",n),s.querySelectorAll("[stroke]").forEach(d=>{d.getAttribute("stroke")!=="none"&&d.setAttribute("stroke",t)}),s.querySelectorAll("[class]").forEach(d=>{d.getAttribute("class").split(" ").includes("no-stroke")&&d.setAttribute("stroke","none")}),s.querySelectorAll(".text-bg").forEach(d=>{d.getAttribute("fill")!=="none"&&d.setAttribute("fill",t)}),new XMLSerializer().serializeToString(s)):void 0}function Lq(e){if(!e)return e;const r=new DOMParser().parseFromString(e,"image/svg+xml").querySelector("svg"),s=r.getAttribute("width"),o=r.getAttribute("height");return{width:parseInt(s),height:parseInt(o)}}function MS(e){return new Promise((t,n)=>{try{const r="data:image/svg+xml;base64,";e=e.replace(r,"");const s=atob(e);t(s)}catch(r){n(r)}})}function FS(e){const t="0123456789abcdefghijklmnopqrstuvwxyz",n=t.length;let r="";for(let s=0;s<e;s++)r+=t.charAt(Math.ceil(Math.random()*(n-1)));return r}function kq(e){return{}.VITE_SVG_TYPE==="base64"?MS(e):LS(e)}function I0(e){let t={};if({}.VITE_LOCAL_ONLY==="true")for(const r in Nf)t[r]=r.split("public/").join("");else t=Nf;return t[e]}function sl(e){return I0(`./public/d3svg1/${e}.svg`)}const R0={};function Mq(r){return rt(this,arguments,function*({node:e,levelList:t,darkMode:n}){var l,c,u,d,f,h,g,v,y,_;let s=null;const o=(u=(c=(l=e.detail)==null?void 0:l.info)==null?void 0:c.basic)==null?void 0:u.flag,a=((h=(f=(d=e==null?void 0:e.detail)==null?void 0:d.info)==null?void 0:f.basic)==null?void 0:h.level)||"";if(e.detail&&((v=(g=e.detail)==null?void 0:g.info)!=null&&v.inner_img))try{s=e.detail.info.inner_img}catch(w){console.log("loadCompleted error",w)}else if(e.type==="nodeType"||e.type==="aggregation"){const w=e.icon||"node_type";s=sl(w)?sl(w):sl("node_type")}else if(o&&(e.type==="ip"||e.type==="internet"))s=I0(`./public/d3svg1/flags/${o}.png`);else if((_=(y=e.detail)==null?void 0:y.info)!=null&&_.inner_country&&(e.type==="country"||e.type==="target_country")){const w=e.detail.info.inner_country;s=I0(`./public/d3svg1/flags/${w}.png`)}else{const w=`${e.type||"node"}${a}${n}`;if(R0[w])return s=R0[w],s;const A=sl(e.type)?sl(e.type):sl("node"),C=yield kq(A),S=Qo(a,t,n);s=kS(C,S,n?"#182628":"#fff"),s="data:image/svg+xml,"+encodeURIComponent(s),R0[w]=s}return s})}function Df(e){return typeof e!="object"||e===null||!e?e:Array.isArray(e)?e.map(t=>Df(t)):Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=Df(e[n]),t),{})}const Xpe="",D0={inject:["levelList","getDarkMode"],props:{nodeInfo:{type:Object,default:()=>{}}},data(){return{imgUrl:"",strokeColor:""}},computed:{darkMode(){return this.getDarkMode()},isCountryFlag(){var r,s,o,a,l,c,u,d;const e=(o=(s=(r=this.nodeInfo)==null?void 0:r.detail)==null?void 0:s.info)==null?void 0:o.inner_country,t=(u=(c=(l=(a=this.nodeInfo)==null?void 0:a.detail)==null?void 0:l.info)==null?void 0:c.basic)==null?void 0:u.flag,n=(d=this.nodeInfo)==null?void 0:d.type;return t&&(n==="ip"||n==="internet")||e&&(n==="country"||n==="target_country")}},watch:{darkMode:{handler(){this.handleImgUrl()}},nodeInfo:{handler(){this.handleImgUrl()},deep:!0}},created(){this.handleImgUrl()},methods:{handleImgUrl(){var t,n,r,s;Mq({node:this.nodeInfo,levelList:this.levelList,darkMode:this.darkMode}).then(o=>{this.imgUrl=o});const e=(s=(r=(n=(t=this.nodeInfo)==null?void 0:t.detail)==null?void 0:n.info)==null?void 0:r.basic)==null?void 0:s.level;this.strokeColor=Qo(e,this.levelList,this.darkMode)}}},BS=()=>{lO(e=>({"20587f86":e.strokeColor}))},jS=D0.setup;D0.setup=jS?(e,t)=>(BS(),jS(e,t)):BS;const Fq={key:0,class:"flag-border"},Bq=["src"],jq=["src"];function Uq(e,t,n,r,s,o){return o.isCountryFlag?(R(),V("div",Fq,[G("img",{class:"node-img",src:s.imgUrl},null,8,Bq)])):(R(),V("img",{key:1,class:"node-img",src:s.imgUrl},null,8,jq))}const Qc=un(D0,[["render",Uq],["__scopeId","data-v-5fdfe48e"]]),Rr={computed:{imgPath(){let e={};if({}.VITE_LOCAL_ONLY==="true")for(const n in Nf)e[n]=n.split("public/").join("");else e=Nf;return e}}},bt={},L0=Rn({filterValues:""}),k0={name:"fix_nodes",namec:"固定节点"},M0={name:"un_fix_nodes",namec:"解除固定"},$q={name:"show_names",namec:"显示名称"},Vq={name:"un_show_names",namec:"隐藏名称"},zq={name:"un_show_label",namec:"隐藏备注"},qq={name:"show_label",namec:"显示备注"},US={name:"hold_aggregation",namec:"单边子顶点聚合"},$S={name:"release_aggregation",namec:"聚合顶点释放"},Hq={name:"copy",namec:"复制"},VS={name:"node_star",namec:"收藏"},zS={name:"un_node_star",namec:"取消收藏"},qS={name:"edit_label",namec:"修改备注"},F0={name:"delete_node",namec:"删除"},HS={name:"select_children",namec:"子顶点选择"},GS={name:"select_parents",namec:"父顶点选择"},Gq={name:"add_con_node",namec:"添加关联节点"},Wq={name:"expand_node",namec:"展开全部关系"};function Lf(e){var l;const t=[],n=[],r=[],s=["APT攻击","海莲花","Generic","Cometer","勒索软件","恶意下载链接","僵尸网络","后门软件","流氓推广","Ewind","alexa_top10k","Panda","Operation_2020_Model","Zenpak","Ewind","Boogr"],o=["APT-C-00","Trojan","木马"],a=e.length;for(let c=0;c<a;c++)s.includes((l=e[c])==null?void 0:l.name)?(e[c].typeLevel="danger",t.push(e[c])):e[c].name.toLowerCase().indexOf("cve")===0?(e[c].typeLevel="cve",n.push(e[c])):o.some(u=>e[c].name.indexOf(u)>=0)?(e[c].typeLevel="danger",t.push(e[c])):(e[c].typeLevel="other",r.push(e[c]));return[...t,...n,...r]}function kf(e){if(!e)return[];const t=[void 0,"danger","warning","info","success",void 0],n=[],r=[];return e.forEach(s=>{let o,a,l,c,u,d;typeof s=="object"?(o=s.name||s.tag,a=s.desc,l=s.user||void 0,c=s.type>0?t[s.type]||t[s.type-10]:void 0,d=s.type>=10,u=s.source_name?s.source_name:""):(o=s,a=""),r.indexOf(o)<0&&(r.push(o),n.push({name:o,desc:a,user:l,type:c,disabled:d,source_name:u}))}),n}var WS={exports:{}};/*!
|
|
115
|
-
* clipboard.js v2.0.11
|
|
116
|
-
* https://clipboardjs.com/
|
|
117
|
-
*
|
|
118
|
-
* Licensed MIT © Zeno Rocha
|
|
119
|
-
*/(function(e,t){(function(r,s){e.exports=s()})(Ks,function(){return function(){var n={686:function(o,a,l){l.d(a,{default:function(){return Ee}});var c=l(279),u=l.n(c),d=l(370),f=l.n(d),h=l(817),g=l.n(h);function v(me){try{return document.execCommand(me)}catch(re){return!1}}var y=function(re){var le=g()(re);return v("cut"),le},_=y;function w(me){var re=document.documentElement.getAttribute("dir")==="rtl",le=document.createElement("textarea");le.style.fontSize="12pt",le.style.border="0",le.style.padding="0",le.style.margin="0",le.style.position="absolute",le.style[re?"right":"left"]="-9999px";var Ce=window.pageYOffset||document.documentElement.scrollTop;return le.style.top="".concat(Ce,"px"),le.setAttribute("readonly",""),le.value=me,le}var A=function(re,le){var Ce=w(re);le.container.appendChild(Ce);var ye=g()(Ce);return v("copy"),Ce.remove(),ye},C=function(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Ce="";return typeof re=="string"?Ce=A(re,le):re instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(re==null?void 0:re.type)?Ce=A(re.value,le):(Ce=g()(re),v("copy")),Ce},S=C;function x(me){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(le){return typeof le}:x=function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},x(me)}var O=function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=re.action,Ce=le===void 0?"copy":le,ye=re.container,z=re.target,X=re.text;if(Ce!=="copy"&&Ce!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(z!==void 0)if(z&&x(z)==="object"&&z.nodeType===1){if(Ce==="copy"&&z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Ce==="cut"&&(z.hasAttribute("readonly")||z.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(X)return S(X,{container:ye});if(z)return Ce==="cut"?_(z):S(z,{container:ye})},N=O;function I(me){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(le){return typeof le}:I=function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},I(me)}function F(me,re){if(!(me instanceof re))throw new TypeError("Cannot call a class as a function")}function D(me,re){for(var le=0;le<re.length;le++){var Ce=re[le];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(me,Ce.key,Ce)}}function k(me,re,le){return re&&D(me.prototype,re),le&&D(me,le),me}function q(me,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function");me.prototype=Object.create(re&&re.prototype,{constructor:{value:me,writable:!0,configurable:!0}}),re&&H(me,re)}function H(me,re){return H=Object.setPrototypeOf||function(Ce,ye){return Ce.__proto__=ye,Ce},H(me,re)}function oe(me){var re=Y();return function(){var Ce=K(me),ye;if(re){var z=K(this).constructor;ye=Reflect.construct(Ce,arguments,z)}else ye=Ce.apply(this,arguments);return ce(this,ye)}}function ce(me,re){return re&&(I(re)==="object"||typeof re=="function")?re:U(me)}function U(me){if(me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me}function Y(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(me){return!1}}function K(me){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(le){return le.__proto__||Object.getPrototypeOf(le)},K(me)}function ee(me,re){var le="data-clipboard-".concat(me);if(re.hasAttribute(le))return re.getAttribute(le)}var B=function(me){q(le,me);var re=oe(le);function le(Ce,ye){var z;return F(this,le),z=re.call(this),z.resolveOptions(ye),z.listenClick(Ce),z}return k(le,[{key:"resolveOptions",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ye.action=="function"?ye.action:this.defaultAction,this.target=typeof ye.target=="function"?ye.target:this.defaultTarget,this.text=typeof ye.text=="function"?ye.text:this.defaultText,this.container=I(ye.container)==="object"?ye.container:document.body}},{key:"listenClick",value:function(ye){var z=this;this.listener=f()(ye,"click",function(X){return z.onClick(X)})}},{key:"onClick",value:function(ye){var z=ye.delegateTarget||ye.currentTarget,X=this.action(z)||"copy",fe=N({action:X,container:this.container,target:this.target(z),text:this.text(z)});this.emit(fe?"success":"error",{action:X,text:fe,trigger:z,clearSelection:function(){z&&z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ye){return ee("action",ye)}},{key:"defaultTarget",value:function(ye){var z=ee("target",ye);if(z)return document.querySelector(z)}},{key:"defaultText",value:function(ye){return ee("text",ye)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ye){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(ye,z)}},{key:"cut",value:function(ye){return _(ye)}},{key:"isSupported",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],z=typeof ye=="string"?[ye]:ye,X=!!document.queryCommandSupported;return z.forEach(function(fe){X=X&&!!document.queryCommandSupported(fe)}),X}}]),le}(u()),Ee=B},828:function(o){var a=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var l=Element.prototype;l.matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector}function c(u,d){for(;u&&u.nodeType!==a;){if(typeof u.matches=="function"&&u.matches(d))return u;u=u.parentNode}}o.exports=c},438:function(o,a,l){var c=l(828);function u(h,g,v,y,_){var w=f.apply(this,arguments);return h.addEventListener(v,w,_),{destroy:function(){h.removeEventListener(v,w,_)}}}function d(h,g,v,y,_){return typeof h.addEventListener=="function"?u.apply(null,arguments):typeof v=="function"?u.bind(null,document).apply(null,arguments):(typeof h=="string"&&(h=document.querySelectorAll(h)),Array.prototype.map.call(h,function(w){return u(w,g,v,y,_)}))}function f(h,g,v,y){return function(_){_.delegateTarget=c(_.target,g),_.delegateTarget&&y.call(h,_)}}o.exports=d},879:function(o,a){a.node=function(l){return l!==void 0&&l instanceof HTMLElement&&l.nodeType===1},a.nodeList=function(l){var c=Object.prototype.toString.call(l);return l!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in l&&(l.length===0||a.node(l[0]))},a.string=function(l){return typeof l=="string"||l instanceof String},a.fn=function(l){var c=Object.prototype.toString.call(l);return c==="[object Function]"}},370:function(o,a,l){var c=l(879),u=l(438);function d(v,y,_){if(!v&&!y&&!_)throw new Error("Missing required arguments");if(!c.string(y))throw new TypeError("Second argument must be a String");if(!c.fn(_))throw new TypeError("Third argument must be a Function");if(c.node(v))return f(v,y,_);if(c.nodeList(v))return h(v,y,_);if(c.string(v))return g(v,y,_);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(v,y,_){return v.addEventListener(y,_),{destroy:function(){v.removeEventListener(y,_)}}}function h(v,y,_){return Array.prototype.forEach.call(v,function(w){w.addEventListener(y,_)}),{destroy:function(){Array.prototype.forEach.call(v,function(w){w.removeEventListener(y,_)})}}}function g(v,y,_){return u(document.body,v,y,_)}o.exports=d},817:function(o){function a(l){var c;if(l.nodeName==="SELECT")l.focus(),c=l.value;else if(l.nodeName==="INPUT"||l.nodeName==="TEXTAREA"){var u=l.hasAttribute("readonly");u||l.setAttribute("readonly",""),l.select(),l.setSelectionRange(0,l.value.length),u||l.removeAttribute("readonly"),c=l.value}else{l.hasAttribute("contenteditable")&&l.focus();var d=window.getSelection(),f=document.createRange();f.selectNodeContents(l),d.removeAllRanges(),d.addRange(f),c=d.toString()}return c}o.exports=a},279:function(o){function a(){}a.prototype={on:function(l,c,u){var d=this.e||(this.e={});return(d[l]||(d[l]=[])).push({fn:c,ctx:u}),this},once:function(l,c,u){var d=this;function f(){d.off(l,f),c.apply(u,arguments)}return f._=c,this.on(l,f,u)},emit:function(l){var c=[].slice.call(arguments,1),u=((this.e||(this.e={}))[l]||[]).slice(),d=0,f=u.length;for(d;d<f;d++)u[d].fn.apply(u[d].ctx,c);return this},off:function(l,c){var u=this.e||(this.e={}),d=u[l],f=[];if(d&&c)for(var h=0,g=d.length;h<g;h++)d[h].fn!==c&&d[h].fn._!==c&&f.push(d[h]);return f.length?u[l]=f:delete u[l],this}},o.exports=a,o.exports.TinyEmitter=a}},r={};function s(o){if(r[o])return r[o].exports;var a=r[o]={exports:{}};return n[o](a,a.exports,s),a.exports}return function(){s.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return s.d(a,{a}),a}}(),function(){s.d=function(o,a){for(var l in a)s.o(a,l)&&!s.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:a[l]})}}(),function(){s.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)}}(),s(686)}().default})})(WS);var Kq=WS.exports;const Jq=yC(Kq),Mf=e=>{const t=(e==null?void 0:e.appendToBody)===void 0?!0:e.appendToBody;return{toClipboard(n,r){return new Promise((s,o)=>{const a=document.createElement("button"),l=new Jq(a,{text:()=>n,action:()=>"copy",container:r!==void 0?r:document.body});l.on("success",c=>{l.destroy(),s(c)}),l.on("error",c=>{l.destroy(),o(c)}),t&&document.body.appendChild(a),a.click(),t&&document.body.removeChild(a)})}}},Zpe="",{toClipboard:Yq}=Mf(),Xq={name:"NodeDetail",components:{NodeIcon:Qc,QuestionFilled:G3,ForceGraphSvgIcon:Zo},mixins:[Rr],inject:["hasLevel","history","moduleDetail","levelMap"],props:{data:{type:Object,default:()=>({type:"domain",id:"deftsecurity.com",detail:{},name:"deftsecurity.com",fieldMap:{},index:0,fx:null,fy:null})},selectedNodes:{required:!1,type:Array,default:()=>[]},requestGraphData:{type:Boolean,default:!1}},emits:["buttonClick"],data(){return{controls:[],childNodesLength:0,current:null,flagFiles:{},valueDetail:!0,aggregationName:null,childList:null,moduleDetailNow:{}}},computed:{module(){return this.moduleDetail()},fieldMapThisType(){var e;return this.moduleDetailNow&&this.moduleDetailNow.detail_field_map&&this.moduleDetailNow.detail_field_map[`${(e=this.data)==null?void 0:e.type}_detail_info`]},levelClassName(){return this.data&&this.data.type==="family"?"":Of(this.data.detail&&this.data.detail.info.basic.level,this.levelMap)},aggregationList(){var e,t;return(t=(e=this.data)==null?void 0:e.list)==null?void 0:t.map(n=>n.name)},canGoDetail(){return["nodeType","aggregation","family","org","report","vul","thumbprint_md5","email","cert_https"].indexOf(this.data.type)<0&&this.hasLevel},canGoUrl(){var e,t,n;return((t=(e=this.moduleDetailNow)==null?void 0:e.config)==null?void 0:t.jumpDetail)&&((n=this.moduleDetailNow)==null?void 0:n.config.jumpRule[this.data.type])}},watch:{data:{deep:!0,immediate:!0,handler:function(){var t,n;const e=[];if(this.selectedNodes.length>1)this.selectedNodes.length<6&&e.push(Wq),e.push(qS),e.push(Hq),e.push(this.data.collect?zS:VS),e.push(this.data.textProp==="name"?Vq:$q),e.push(this.data.fx?M0:k0),e.push(F0),this.data.label&&e.push(this.data.textProp==="label"?zq:qq);else if(this.selectedNodes.length===1&&this.selectedNodes[0].type==="aggregation"){const r=this.history.dataNow.links.some(s=>s.source.id===this.data.id&&s.target.type==="aggregation");e.push(r||this.data.type==="aggregation"?$S:US),e.push(this.data.fx?M0:k0),e.push(F0)}else{const r=this.history.dataNow.links.some(u=>u.source.id===this.data.id&&u.target.type==="aggregation"),s=this.history.dataNow.links.filter(u=>u.source.id===this.data.id),o=this.history.dataNow.links.filter(u=>u.target.id===this.data.id),a=s.map(u=>u.target),l=o.map(u=>u.source),c=a.some(u=>{let d=0;return this.history.dataNow.links.map(f=>{f.source.id===u.id&&d++}),d===0});this.data.type!=="aggregation"&&this.data.type!=="nodeType"?(e.push(qS),e.push(this.data.collect?zS:VS),a.length===1&&e.push(HS),l.length===1&&e.push(GS)):(a.length>0&&e.push(HS),l.length>0&&e.push(GS)),e.push(this.data.fx?M0:k0),r||this.data.type==="aggregation"?e.push($S):c&&e.push(US),e.push(Gq),e.push(F0)}this.controls=e,this.flage=!(((n=(t=this.data)==null?void 0:t.name)==null?void 0:n.length)>52)}},module:{deep:!0,immediate:!0,handler(e){this.moduleDetailNow=e}}},created(){Xs(bt,"flagIcon",e=>{this.flagFiles={},e!==void 0&&(this.flagFiles=e)})},mounted(){Xs(bt,"relationNum",e=>{var t;(e==null?void 0:e.childList)!==void 0&&(this.childNodesLength=(t=e.childList)==null?void 0:t.length,this.aggregationName=e.name,this.childList=e.childList)})},updated(){},beforeUnmount(){Zs(bt,"flagIcon"),Zs(bt,"relationNum")},methods:{isSomething(e){return O0(e)},hover(e){this.current=e},out(){this.current=null},handleButtonClick(e){Fn({cId:"rightMenu-"+e.name,c:"右侧菜单-"+e.namec}),this.selectedNodes.length>1?Ye(bt,"buttonClick",{nodes:[...this.selectedNodes],api:e}):this.data.type!=="nodeType"?Ye(bt,"buttonClick",{nodes:[...this.selectedNodes],api:e}):Ye(bt,"buttonClick",{nodes:[...this.selectedNodes],api:e})},copyText(e){Fn({cId:"copyText",c:"复制"}),Yq(e).then(t=>gn({message:"复制成功",type:"success"}),t=>gn.error("复制失败"))},goDetailUrl(e,t){var n,r;return(this.selectedNodes[0].type==="cert_https"||this.selectedNodes[0].type==="thumbprint_md5")&&["md5","sha1","sha256"].indexOf(e)>=0?"/cert/cert:"+t:((r=(n=this.moduleDetailNow)==null?void 0:n.config)!=null&&r.jumpDetail,!1)},getViewBox(e,t){const n=[];switch(e){case"org":n.push(47,54);break;case"family":n.push(38,38);break;case"vul":n.push(38,38);break;default:n.push(28,28)}return t===3?n[0]:n[1]},changeValue(){this.valueDetail=!this.valueDetail},changeFlag(e){return e.detail.info.basic.flag===""&&(e.detail.info.basic.flag="ip"),e.detail.info.basic.flag},cutName(e=""){let t=0;for(let n=0;n<e.length;n++)escape(e[n]).indexOf("%u")>=0?t+=2:t+=1;return t<60?e:(e==null?void 0:e.split("").splice(0,56).join(""))+"..."},canShowField(e){const t=this.hasFieldValue(e);return!(t===void 0||e.hide_empty&&!t)},hasFieldValue(e){const t=this.data.detail&&this.data.detail.info&&this.data.detail.info.basic[e.prop];if(t===null)return;const n=Array.isArray(t);return n&&t.length>0||!n&&t!==""&&t!=="无"},getFieldValue(e){const t=this.data.detail.info.basic[e.prop],n=Array.isArray(t),r=this.isSomething(t);let s="-";return r&&(n?s=t.length?t.join("|"):"-":s=t||"-"),s},getUsageTypeContent(e){if(!e)return"";const t={COM:"Commercial(商业企业)",ORG:"Organization(社会团体)",GOV:"Government(政府部门)",MIL:"Military(军事机构)",EDU:"University/College/School(教育机构)",LIB:"Library(科研机构)",CDN:"Content Delivery Network(内容分发网络)",ISP:"Fixed Line ISP(固网服务商)",MOB:"Mobile ISP(移动网服务商)",DCH:"Data Center/Web Hosting/Transit(数据中心)",SES:"Search Engine Spider(搜索引擎爬虫)",RSV:"Reserved(保留地址)"};return t[e]?t[e]:""},formatTags(e){return Lf(kf(e))}}},Zq={class:"node-detail-block"},Qq={class:"node-preview"},eH={class:"left"},tH={class:"icon-group"},nH={key:0,class:"md5-type"},iH=["title"],rH={class:"right"},sH=["title"],oH={class:"title-top"},aH={key:0,class:"node-num"},lH={class:"opt-btns"},cH={key:0,class:"node-num"},uH={class:"opt-btns"},dH={class:"node-field-list"},fH={key:0,class:"row-item row-item-tag"},hH={class:"value"},pH={class:"graph-tags-box"},gH={key:0,class:"row-item"},mH={class:"label"},vH=["title"],bH={class:"detail"},yH=["title"],_H=["title"],wH={key:1,class:"select-mults"},CH={class:"title-top"},SH={class:"node-num"},EH={class:"controls-box"},xH=["onMouseenter"];function AH(e,t,n,r,s,o){const a=Ge("NodeIcon"),l=fi,c=Wc,u=Ge("QuestionFilled"),d=jt,f=Ge("force-graph-svg-icon");return R(),V("div",Zq,[n.selectedNodes.length===1?(R(),V(qe,{key:0},[G("div",Qq,[G("div",eH,[G("div",tH,[ne(a,{class:"node-icon","node-info":n.data},null,8,["node-info"]),n.data.type==="md5"?(R(),V("p",nH,Ne(n.data.detail&&n.data.detail.info.basic.file_type.toUpperCase()||"MD5"),1)):se("",!0)]),o.canGoDetail&&n.data.detail&&n.data.detail.info.basic.level?(R(),V("div",{key:0,class:Z(["level-text",o.levelClassName]),title:n.data.detail&&n.data.detail.info.basic.level},Ne(n.data.detail&&n.data.detail.info.basic.level),11,iH)):se("",!0)]),G("div",rH,[G("div",{class:Z(["id-box",n.data.type==="nodeType"||n.data.type==="aggregation"?"id-box2":""]),title:n.data.name},[G("h3",oH,[o.canGoUrl?(R(),V(qe,{key:0},[G("span",{class:"go-result",onClick:t[0]||(t[0]=h=>o.handleButtonClick({name:"go_result",namec:"详情页查看",type:2}))},[Je(Ne(o.cutName(n.data.name==="聚合"?"聚合节点":n.data.name))+" ",1),n.data.type==="nodeType"||n.data.type==="aggregation"?(R(),V("span",aH,Ne(s.childNodesLength),1)):se("",!0)]),G("span",lH,[ne(l,{content:"复制","popper-class":"el-tooltip-gray"},{default:te(()=>[G("img",{src:"https://s7.qhres2.com/static/d42d48bb495c87dc.svg",class:"id-copy",onClick:t[1]||(t[1]=mt(h=>o.copyText(n.data.name),["prevent"]))})]),_:1})])],64)):(R(),V(qe,{key:1},[Je(Ne(o.cutName(n.data.name==="聚合"?"聚合节点":n.data.name))+" ",1),n.data.type==="nodeType"||n.data.type==="aggregation"?(R(),V("span",cH,Ne(s.childNodesLength),1)):se("",!0),G("span",uH,[ne(l,{content:"复制","popper-class":"el-tooltip-gray"},{default:te(()=>[G("img",{src:"https://s7.qhres2.com/static/d42d48bb495c87dc.svg",class:"id-copy",onClick:t[2]||(t[2]=h=>o.copyText(n.data.name))})]),_:1})])],64))])],10,sH)])]),G("div",dH,[n.data.detail&&n.data.detail.tags&&n.data.detail.tags.length>0?(R(),V("div",fH,[t[6]||(t[6]=G("div",{class:"label"},"标签:",-1)),G("div",hH,[G("div",pH,[(R(!0),V(qe,null,Nt(o.formatTags(n.data.detail.tags),(h,g)=>(R(),_e(l,{key:g,"popper-class":"el-tooltip-gray"},{content:te(()=>[G("div",null,[Je(Ne(h.name===h.desc?h.name:h.name+":"+h.desc)+" ",1),h.disabled?(R(),V(qe,{key:0},[t[4]||(t[4]=G("br",null,null,-1)),t[5]||(t[5]=Je(" 标签状态:失效 "))],64)):se("",!0)])]),default:te(()=>[ne(c,{class:Z(["graph-tag-one",`${h.type||"unknown"} ${h.disabled?"tag-disable":""}`]),type:h.type||"info"},{default:te(()=>[Je(Ne(h.name),1)]),_:2},1032,["class","type"])]),_:2},1024))),128))])])])):se("",!0),(R(!0),V(qe,null,Nt(o.fieldMapThisType,(h,g)=>(R(),V(qe,null,[o.canShowField(h)?(R(),V("div",gH,[G("div",mH,Ne(h.zh)+":",1),G("div",{class:Z(["value",{virus:h.prop==="virus_name"}]),title:n.data.detail.info.basic[g]},[G("p",bH,[Array.isArray(n.data.detail.info.basic[h.prop])?(R(),V("span",{key:0,class:"item",title:n.data.detail.info.basic[g]},Ne(o.getFieldValue(h)),9,yH)):(R(),V("span",{key:1,class:Z(["item",{desc:h.show_all}]),title:n.data.detail.info.basic[g]},[Je(Ne(o.getFieldValue(h))+" ",1),h.zh==="应用类型"&&o.getUsageTypeContent(n.data.detail.info.basic[h.prop])?(R(),_e(l,{key:0,content:o.getUsageTypeContent(n.data.detail.info.basic[h.prop]),placement:"bottom","popper-class":"el-tooltip-gray"},{default:te(()=>[ne(d,null,{default:te(()=>[ne(u)]),_:1})]),_:2},1032,["content"])):se("",!0)],10,_H))])],10,vH)])):se("",!0)],64))),256))])],64)):n.selectedNodes.length>1?(R(),V("div",wH,[G("h3",CH,[t[7]||(t[7]=Je(" 选中节点")),G("span",SH,Ne(n.selectedNodes.length),1)])])):se("",!0),Dt(G("div",EH,[(R(!0),V(qe,null,Nt(s.controls,(h,g)=>(R(),V("div",{key:g,class:"image-list",onMouseenter:v=>o.hover(g),onMouseleave:t[3]||(t[3]=v=>o.out())},[ne(l,{content:h.namec,"popper-class":"el-tooltip-gray"},{default:te(()=>[ne(f,{class:Z(["button-img",n.requestGraphData?s.controls.length>9?"button-img-more ":"":"disabled"]),"icon-class":e.imgPath["./public/d3svg1/button22/button_"+h.name+".svg"],onClick:v=>o.handleButtonClick(h)},null,8,["icon-class","class","onClick"])]),_:2},1032,["content"])],40,xH))),128))],512),[[wn,s.controls.length>0]])])}const PH=un(Xq,[["render",AH]]),Qpe="",B0={name:"fix_nodes",namec:"固定节点",type:2},j0={name:"un_fix_nodes",namec:"解除固定",type:2},KS={name:"all_fix_nodes",namec:"全部固定节点",type:2},JS={name:"all_un_fix_nodes",namec:"全部解除固定",type:2},U0={name:"show_names",namec:"显示名称",type:2},$0={name:"un_show_names",namec:"隐藏名称",type:2},V0={name:"un_show_label",namec:"隐藏备注",type:2},z0={name:"show_label",namec:"显示备注",type:2},YS={name:"all_show_names",namec:"全部显示名称",type:2},XS={name:"all_un_show_names",namec:"全部隐藏名称",type:2},ZS={name:"all_un_show_label",namec:"全部隐藏备注",type:2},QS={name:"all_show_label",namec:"全部显示备注",type:2},e8={name:"undo",namec:"撤销",type:2},t8={name:"redo",namec:"恢复",type:2},n8={name:"single_edge_select",namec:"单边子顶点选择",type:2},i8={name:"hold_aggregation",namec:"单边子顶点聚合",type:2},r8={name:"release_aggregation",namec:"聚合顶点释放",type:2},q0={name:"copy",namec:"复制",type:2,shortcut:"Ctrl+c"},H0={name:"node_star",namec:"收藏",type:2},G0={name:"un_node_star",namec:"取消收藏",type:2},W0={name:"edit_label",namec:"修改备注",type:2},s8={name:"expand_node",namec:"完整展开",type:2},o8={name:"expand_part_node",namec:"部分展开",type:2},a8={name:"go_result",namec:"详情页查看",type:2},TH={name:"show_group",namec:"分组显示",type:2},OH={name:"hide_group",namec:"隐藏分组",type:2},K0={name:"delete_node",namec:"删除",type:2,shortcut:"Delete"},NH=Object.freeze(Object.defineProperty({__proto__:null,allFixNodes:KS,allShowLabel:QS,allShowNames:YS,allUnFixNodes:JS,allUnShowLabel:ZS,allUnShowNames:XS,copy:q0,deleteNode:K0,editLabel:W0,expandNode:s8,expandPartNode:o8,fixNodes:B0,goResult:a8,hideGroup:OH,holdAggregation:i8,nodeStar:H0,redo:t8,releaseAggregation:r8,showGroup:TH,showLabel:z0,showNames:U0,singleEdgeSelect:n8,unFixNodes:j0,unNodeStar:G0,unShowLabel:V0,unShowNames:$0,undo:e8},Symbol.toStringTag,{value:"Module"})),l8={org:[47,54],family:[38,38],vul:[38,38],default:[28,28]},ege="",IH={name:"SelectSingle",components:{NodeIcon:Qc,ForceGraphSvgIcon:Zo},mixins:[Rr],inject:["levelMap"],props:{filterData:{type:Object,required:!0},uniqueKey:{required:!0,type:Number},value:{required:!1,type:Boolean,default:!1},rootNode:{required:!0,type:Object},isMoreSelect:{required:!1,type:Boolean,default:!1},isRelation:{required:!1,type:Boolean,default:!1},isAggregation:{required:!1,type:Boolean,default:!1},flagDiv:{required:!0,type:Number},isCombineData:{required:!1,type:Boolean,default:!1}},emits:["flagIcon","toggle-fold","toggle-eye","show-detail","relation-click","update:value"],data(){return{getClassNameByLevel:Of,data:null,nodeKey:0,disable:!1,flagIcon:{def:0},dangerNodeNum:0}},computed:{hasParentNode(){return this.data.parentNode&&this.data.parentNode.type!==void 0},isShowFirstLevel(){return(this.rootNode.type==="nodeType"||!this.isRelation||this.data.isExtentNode)&&!this.isMoreSelect&&!this.isAggregation&&this.data.parentNode&&this.data.parentNode.type!==void 0}},watch:{filterData:{handler(e,t){this.data=e},deep:!0,immediate:!0},uniqueKey:{deep:!0,handler(e,t){this.nodeKey=e}},"data.childList":{handler(){setTimeout(()=>{this.dangerNodeNum=this.calculateDangerNodeNum(this.data.childList)},0)},deep:!0,immediate:!0}},mounted(){},beforeUpdate(){this.$arrRefs&&(this.$arrRefs={})},methods:{getIcon(e){e.detail.info.basic.flag===""?(e.detail.info.basic.flag="ip",Rf(this.imgPath["./public/d3svg1/flags/ip.png"]).then(t=>{this.flagIcon[e]=t})):Rf(this.imgPath[`./public/d3svg1/flags/${e}.png`]).then(t=>{this.flagIcon[e]=t}),Ye(bt,"flagIcon",this.flagIcon)},getViewBox(e,t){const n=l8[e]||l8.default;return t===3?n[0]:n[1]},canShow(e,t){return!!(e.show&&t.show)},canGoDetail(e){return["family","org","report","vul","thumbprint_md5","email","cert_https"].indexOf(e.type)<0},handleToggleFold(e){Ye(this,"toggle-fold",e)},handleToggleEye(e,t,n){Ye(this,"toggle-eye",e,t,n)},handleShowDetail(e,t){Ye(this,"show-detail",e,t)},calculateDangerNodeNum(e){let t=[];return e&&e.length>0&&(t=e.filter(n=>{var r;if(n.detail&&n.detail.info.basic.level)return((r=this.levelMap[n.detail.info.basic.level])==null?void 0:r.dangerNumber)>0})),t.length},handleRelationClick(e){Ye(this,"relation-click",e)},formatTags(e){return Lf(kf(e))},getRefSetter(e){return t=>{!this.$arrRefs&&(this.$arrRefs={}),!this.$arrRefs[e]&&(this.$arrRefs[e]=[]),t&&this.$arrRefs[e].push(t)}}}},RH={key:0,class:"row-item row-parent"},DH={class:"left"},LH={key:0,class:"image-icon"},kH={key:0,class:"md5-type"},MH={class:"mid"},FH=["title","textContent"],BH={class:"left"},jH=["src"],UH={class:"mid"},$H={class:"text-name"},VH={key:0,class:"count-wrapper"},zH={key:0,class:"num-wrapper"},qH={class:"num"},HH={key:1,class:"count-wrapper"},GH={key:0,class:"num-wrapper"},WH={class:"num"},KH={class:"right"},JH={key:0,class:"extent-icon"},YH={class:"left"},XH={key:0,class:"md5-type"},ZH={class:"mid"},QH=["onClick","textContent"],eG={key:0,class:"detail-box"},tG={key:0,class:"segment"},nG={key:1,class:"graph-tags-box"},iG={class:"right"},rG=["onClick"];function sG(e,t,n,r,s,o){const a=Ge("NodeIcon"),l=Ge("force-graph-svg-icon"),c=fi,u=Wc;return R(),V("div",{class:Z(["relation-item-single",{"aggregation-item":n.isAggregation}])},[G("div",{class:Z([{"has-parent":o.isShowFirstLevel},"line-icon-relation"])},null,2),o.isShowFirstLevel?(R(),V("div",RH,[G("div",DH,[o.hasParentNode?(R(),V("div",LH,[ne(a,{class:"svgBase","node-info":s.data.parentNode},null,8,["node-info"]),s.data.parentNode.type==="md5"?(R(),V("p",kH,Ne(s.data.parentNode.detail&&s.data.parentNode.detail.info.basic.file_type.toUpperCase()||"MD5"),1)):se("",!0)])):se("",!0)]),G("div",MH,[G("div",{class:"text-name",title:s.data.parentNode&&s.data.parentNode.name,textContent:Ne(s.data.parentNode&&s.data.parentNode.name)},null,8,FH)])])):se("",!0),G("div",{class:Z(["row-item row-nodetype",{"extent-nodetype":s.data.isExtentNode&&!n.isCombineData,"extent-data":s.data.isExtentNode&&s.data.hasExtention,"extent-disabled":s.data.noExtentNode}])},[G("div",BH,[!n.isAggregation&&s.data.childList.length>0?(R(),V("div",{key:0,class:Z(["image-icon-down",n.rootNode.type!=="nodeType"&&n.isRelation?"icon-left":""]),style:Ze({transform:s.data.showChild?"":"rotate(450deg)"}),onClick:t[0]||(t[0]=d=>o.handleToggleFold(s.data))},[ne(l,{"icon-class":e.imgPath["./public/d3svg1/jiantou.svg"],alt:""},null,8,["icon-class"])],6)):se("",!0),(R(),V("div",{key:n.value,class:"image-icon"},[G("img",{src:e.imgPath["./public/d3svg1/"+s.data.icon+".svg"]||e.imgPath["./public/d3svg1/node_type.svg"],alt:""},null,8,jH)]))]),G("div",UH,[G("div",$H,[Je(Ne(s.data.name==="聚合"?"相似同源样本":s.data.name)+" ",1),s.data.isExtentNode&&s.data.hasExtention?(R(),V("span",VH,[s.dangerNodeNum?(R(),V("span",zH,[G("span",qH,Ne(s.dangerNodeNum),1),t[3]||(t[3]=Je("/"))])):se("",!0),Je(Ne(s.data.childList.length),1)])):se("",!0),(s.data.type==="nodeType"||n.isAggregation)&&!s.data.isExtentNode?(R(),V("span",HH,[s.dangerNodeNum?(R(),V("span",GH,[G("span",WH,Ne(s.dangerNodeNum),1),t[4]||(t[4]=Je("/"))])):se("",!0),Je(Ne(s.data.childList.length),1)])):se("",!0)])]),G("div",KH,[s.data.isExtentNode?(R(),V("div",JH,[!s.data.hasExtention||s.data.hasExtention&&s.data.childList.length===0?(R(),_e(c,{key:0,content:"拓线","popper-class":"el-tooltip-gray",placement:"left"},{default:te(()=>[ne(l,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/button22/button_select_all.svg"],onClick:t[1]||(t[1]=d=>o.handleRelationClick(s.data))},null,8,["icon-class"])]),_:1})):(R(),_e(c,{key:1,content:s.data.show?"显示":"隐藏","popper-class":"el-tooltip-gray",placement:"left"},{default:te(()=>[ne(l,{class:"button-img","icon-class":s.data.show?e.imgPath["./public/d3svg1/button22/button_eye_open.svg"]:e.imgPath["./public/d3svg1/button22/button_eye_close.svg"]},null,8,["icon-class"])]),_:1},8,["content"]))])):n.isAggregation?se("",!0):(R(),V("div",{key:1,class:"right-icon",onClick:t[2]||(t[2]=d=>o.handleToggleEye(d,s.data,s.data.parentNode))},[ne(c,{content:s.data.show?"显示":"隐藏","popper-class":"el-tooltip-gray",placement:"left"},{default:te(()=>[ne(l,{class:"button-img","icon-class":s.data.show?e.imgPath["./public/d3svg1/button22/button_eye_open.svg"]:e.imgPath["./public/d3svg1/button22/button_eye_close.svg"]},null,8,["icon-class"])]),_:1},8,["content"])]))])],2),s.data.showChild?se("",!0):(R(!0),V(qe,{key:1},Nt(s.data.childList,(d,f)=>(R(),V("div",{key:"info2"+f,class:"row-item row-child"},[G("div",YH,[G("div",{class:Z(["image-icon",{"image-icom-left":n.rootNode.type==="nodeType"&&n.isRelation}])},[ne(a,{class:"svgBase","node-info":d},null,8,["node-info"]),d.type==="md5"?(R(),V("p",XH,Ne(d.detail&&d.detail.info.basic.file_type.toUpperCase()||"MD5"),1)):se("",!0)],2)]),G("div",ZH,[ne(c,{ref_for:!0,ref:"tooltip",disabled:s.disable,content:d.name,placement:"top","open-delay":400,"popper-class":"el-tooltip-gray"},{default:te(()=>[G("div",{class:Z(["text-name",o.canShow(d,s.data)?"":"unselect-color"]),onClick:h=>o.handleShowDetail(d,o.canShow(d,s.data)),textContent:Ne(d.name)},null,10,QH)]),_:2},1032,["disabled","content"]),d.detail&&d.detail.brief!==null?(R(),V("div",eG,[(R(!0),V(qe,null,Nt(d.detail.brief,(h,g)=>(R(),_e(c,{key:g,disabled:!!o.canGoDetail(d),content:h,placement:"top","popper-class":"el-tooltip-gray"},{default:te(()=>[G("div",{class:Z([o.canShow(d,s.data)?"":"unselect-color","text"])},[Je(Ne(h)+" ",1),g!==d.detail.brief.length-1?(R(),V("span",tG,"|")):se("",!0)],2)]),_:2},1032,["disabled","content"]))),128))])):se("",!0),d.detail&&d.detail.tags&&d.detail.tags.length>0?(R(),V("div",nG,[(R(!0),V(qe,null,Nt(o.formatTags(d.detail.tags),(h,g)=>(R(),_e(c,{ref_for:!0,ref:o.getRefSetter("tooltip"),key:g,"open-delay":400,disabled:d.type!=="md5",content:h.desc||h.name,"popper-class":"el-tooltip-gray"},{default:te(()=>[ne(u,{class:Z(["graph-tag-one",h.type||"unknown"]),type:h.type||"info"},{default:te(()=>[Je(Ne(h.name),1)]),_:2},1032,["class","type"])]),_:2},1032,["disabled","content"]))),128))])):se("",!0)]),G("div",iG,[n.isAggregation?se("",!0):(R(),V("div",{key:0,class:"right-icon",onClick:h=>o.handleToggleEye(h,d,s.data)},[ne(c,{content:s.data.show?"显示":"隐藏","popper-class":"el-tooltip-gray",placement:"left"},{default:te(()=>[ne(l,{class:"button-img","icon-class":o.canShow(d,s.data)?e.imgPath["./public/d3svg1/button22/button_eye_open.svg"]:e.imgPath["./public/d3svg1/button22/button_eye_close.svg"]},null,8,["icon-class"])]),_:2},1032,["content"])],8,rG))])]))),128))],2)}const oG=un(IH,[["render",sG],["__scopeId","data-v-4e03a9d0"]]),tge="",aG={name:"SelectMults",components:{NodeIcon:Qc},mixins:[Rr],inject:["levelMap"],props:{filterData:{type:Object,required:!0},rootNode:{required:!0,type:Object},isMoreSelect:{required:!1,type:Boolean,default:!1},isRelation:{required:!1,type:Boolean,default:!1}},emits:["flagIcon","show-detail"],data(){return{data:null,disable:!1}},watch:{filterData:{handler(e,t){this.data=e},deep:!0,immediate:!0}},mounted(){},methods:{classNow(e){return Of(e,this.levelMap)},getIcon(e){e.detail.info.basic.flag===""?(e.detail.info.basic.flag="ip",Rf(this.imgPath["./public/d3svg1/flags/ip.png"]).then(t=>{this.flagIcon[e]=t})):Rf(this.imgPath[`./public/d3svg1/flags/${e}.png`]).then(t=>{this.flagIcon[e]=t}),Ye(bt,"flagIcon",this.flagIcon)},getViewBox(e,t){const n=[];switch(e){case"org":n.push(47,54);break;case"family":n.push(38,38);break;case"vul":n.push(38,38);break;default:n.push(28,28)}return t===3?n[0]:n[1]},canGoDetail(e){return["family","org","report","vul","thumbprint_md5","email","cert_https"].indexOf(e.type)<0},handleShowDetail(e,t){Ye(this,"show-detail",e,t)},formatTags(e){return Lf(kf(e))}}},lG={class:"relation-item-mults"},cG={class:"row-item"},uG={class:"left"},dG={class:"grid-content bg-purple"},fG={class:"image-icon"},hG={key:0,class:"md5-type"},pG={class:"mid"},gG={class:"grid-content bg-purple"},mG=["textContent"],vG={key:0,class:"detail-box"},bG={class:"text"},yG={key:0,class:"segment"},_G={class:"graph-tags-box"};function wG(e,t,n,r,s,o){const a=Ge("NodeIcon"),l=fi,c=Wc;return R(),V("div",lG,[G("div",cG,[G("div",uG,[G("div",dG,[G("div",fG,[ne(a,{class:"svgBase","node-info":s.data},null,8,["node-info"]),s.data.type==="md5"?(R(),V("p",hG,Ne(s.data.detail&&s.data.detail.info.basic.file_type.toUpperCase()||"MD5"),1)):se("",!0)])])]),G("div",pG,[G("div",gG,[ne(l,{ref:"tooltip",disabled:s.disable,"open-delay":400,content:s.data.name,placement:"top","popper-class":"el-tooltip-gray"},{default:te(()=>[G("div",{class:"text-name text-more-select",onClick:t[0]||(t[0]=u=>o.handleShowDetail(s.data,!0)),textContent:Ne(s.data.name)},null,8,mG)]),_:1},8,["disabled","content"]),s.data.detail&&s.data.detail.brief!==null?(R(),V("div",vG,[(R(!0),V(qe,null,Nt(s.data.detail.brief,(u,d)=>(R(),_e(l,{key:d,disabled:!!o.canGoDetail(s.data),content:u,placement:"top","popper-class":"el-tooltip-gray"},{default:te(()=>[G("div",bG,[Je(Ne(u),1),d!==s.data.detail.brief.length-1?(R(),V("span",yG,"|")):se("",!0)])]),_:2},1032,["disabled","content"]))),128))])):se("",!0),Dt(G("div",_G,[(R(!0),V(qe,null,Nt(o.formatTags(s.data.detail&&s.data.detail.tags),(u,d)=>(R(),_e(l,{key:d,disabled:s.data.type!=="md5",content:u.desc||u.name,"popper-class":"el-tooltip-gray"},{default:te(()=>[ne(c,{class:Z(["graph-tag-one",u.type||"unknown"]),type:u.type||"info"},{default:te(()=>[Je(Ne(u.name),1)]),_:2},1032,["class","type"])]),_:2},1032,["disabled","content"]))),128))],512),[[wn,s.data.detail&&s.data.detail.tags&&s.data.detail.tags.length>0]])])])])])}const CG=un(aG,[["render",wG],["__scopeId","data-v-64a51e7d"]]);function SG(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Ff;function J0(){J0.init||(J0.init=!0,Ff=SG()!==-1)}var Bf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){J0(),ft(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Ff&&this.$el.appendChild(e),e.data="about:blank",Ff||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Ff&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const EG=ZP();YP("data-v-b329ee4c");const xG={class:"resize-observer",tabindex:"-1"};XP();const AG=EG((e,t,n,r,s,o)=>(R(),_e("div",xG)));Bf.render=AG,Bf.__scopeId="data-v-b329ee4c",Bf.__file="src/components/ResizeObserver.vue";function jf(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jf=function(t){return typeof t}:jf=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(e)}function PG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c8(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 TG(e,t,n){return t&&c8(e.prototype,t),n&&c8(e,n),e}function u8(e){return OG(e)||NG(e)||IG(e)||RG()}function OG(e){if(Array.isArray(e))return Y0(e)}function NG(e){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function IG(e,t){if(e){if(typeof e=="string")return Y0(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 Y0(e,t)}}function Y0(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 RG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
120
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DG(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function LG(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,s,o,a=function(c){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];if(o=d,!(r&&c===s)){var h=n.leading;typeof h=="function"&&(h=h(c,s)),(!r||c!==s)&&h&&e.apply(void 0,[c].concat(u8(o))),s=c,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[c].concat(u8(o))),r=0},t)}};return a._clear=function(){clearTimeout(r),r=null},a}function d8(e,t){if(e===t)return!0;if(jf(e)==="object"){for(var n in e)if(!d8(e[n],t[n]))return!1;return!0}return!1}var kG=function(){function e(t,n,r){PG(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return TG(e,[{key:"createObserver",value:function(n,r){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=DG(n),this.callback=function(l,c){s.options.callback(l,c),l&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},a=o.leading;this.callback=LG(this.callback,this.options.throttle,{leading:function(c){return a==="both"||a==="visible"&&c||a==="hidden"&&!c}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(l){var c=l[0];if(l.length>1){var u=l.find(function(f){return f.isIntersecting});u&&(c=u)}if(s.callback){var d=c.isIntersecting&&c.intersectionRatio>=s.threshold;if(d===s.oldResult)return;s.oldResult=d,s.callback(d,c)}},this.options.intersection),ft(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function f8(e,t,n){var r=t.value;if(r)if(typeof IntersectionObserver=="undefined")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new kG(e,r,n);e._vue_visibilityState=s}}function MG(e,t,n){var r=t.value,s=t.oldValue;if(!d8(r,s)){var o=e._vue_visibilityState;if(!r){h8(e);return}o?o.createObserver(r,n):f8(e,{value:r},n)}}function h8(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var FG={beforeMount:f8,updated:MG,unmounted:h8};function BG(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(r){r(n)}),(e.get("*")||[]).slice().map(function(r){r(t,n)})}}}var jG={itemsLimit:1e3},UG=/(auto|scroll)/;function p8(e,t){return e.parentNode===null?t:p8(e.parentNode,t.concat([e]))}var X0=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},$G=function(t){return X0(t,"overflow")+X0(t,"overflow-y")+X0(t,"overflow-x")},VG=function(t){return UG.test($G(t))};function g8(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=p8(e.parentNode,[]),n=0;n<t.length;n+=1)if(VG(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Z0(e){"@babel/helpers - typeof";return Z0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z0(e)}var m8={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function v8(){return this.items.length&&Z0(this.items[0])!=="object"}var Q0=!1;if(typeof window!="undefined"){Q0=!1;try{var zG=Object.defineProperty({},"passive",{get:function(){Q0=!0}});window.addEventListener("test",null,zG)}catch(e){}}let qG=0;var ev={name:"RecycleScroller",components:{ResizeObserver:Bf},directives:{ObserveVisibility:FG},props:Me(be({},m8),{itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}}),emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,r=this.minItemSize;let s=1e4,o=0,a;for(let l=0,c=t.length;l<c;l++)a=t[l][n]||r,a<s&&(s=a),o+=a,e[l]={accumulator:o,size:a};return this.$_computedMinItemSize=s,e}return[]},simpleArray:v8,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let r=0,s=t.length;r<s;r++)n[t[r][e]]=r;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,r,s){const o=ud({id:qG++,index:t,used:!0,key:r,type:s}),a=cg({item:n,position:0,nr:o});return e.push(a),a},unuseView(e,t=!1){const n=this.$_unusedViews,r=e.nr.type;let s=n.get(r);s||(s=[],n.set(r,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,r=this.gridItems||1,s=this.itemSecondarySize||n,o=this.$_computedMinItemSize,a=this.typeField,l=this.simpleArray?null:this.keyField,c=this.items,u=c.length,d=this.sizes,f=this.$_views,h=this.$_unusedViews,g=this.pool,v=this.itemIndexByKey;let y,_,w,A,C;if(!u)y=_=A=C=w=0;else if(this.$_prerender)y=A=0,_=C=Math.min(this.prerender,c.length),w=null;else{const D=this.getScroll();if(t){let H=D.start-this.$_lastUpdateScrollPosition;if(H<0&&(H=-H),n===null&&H<o||H<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=D.start;const k=this.buffer;D.start-=k,D.end+=k;let q=0;if(this.$refs.before&&(q=this.$refs.before.scrollHeight,D.start-=q),this.$refs.after){const H=this.$refs.after.scrollHeight;D.end+=H}if(n===null){let H,oe=0,ce=u-1,U=~~(u/2),Y;do Y=U,H=d[U].accumulator,H<D.start?oe=U:U<u-1&&d[U+1].accumulator>D.start&&(ce=U),U=~~((oe+ce)/2);while(U!==Y);for(U<0&&(U=0),y=U,w=d[u-1].accumulator,_=U;_<u&&d[_].accumulator<D.end;_++);for(_===-1?_=c.length-1:(_++,_>u&&(_=u)),A=y;A<u&&q+d[A].accumulator<D.start;A++);for(C=A;C<u&&q+d[C].accumulator<D.end;C++);}else{y=~~(D.start/n*r);const H=y%r;y-=H,_=Math.ceil(D.end/n*r),A=Math.max(0,Math.floor((D.start-q)/n*r)),C=Math.floor((D.end-q)/n*r),y<0&&(y=0),_>u&&(_=u),A<0&&(A=0),C>u&&(C=u),w=Math.ceil(u/r)*n}}_-y>jG.itemsLimit&&this.itemsLimitError(),this.totalSize=w;let S;const x=y<=this.$_endIndex&&_>=this.$_startIndex;if(x)for(let D=0,k=g.length;D<k;D++)S=g[D],S.nr.used&&(e&&(S.nr.index=v[S.item[l]]),(S.nr.index==null||S.nr.index<y||S.nr.index>=_)&&this.unuseView(S));const O=x?null:new Map;let N,I,F;for(let D=y;D<_;D++){N=c[D];const k=l?N[l]:N;if(k==null)throw new Error(`Key is ${k} on item (keyField is '${l}')`);if(S=f.get(k),!n&&!d[D].size){S&&this.unuseView(S);continue}I=N[a];let q=h.get(I),H=!1;if(!S)x?q&&q.length?S=q.pop():S=this.addView(g,D,N,k,I):(F=O.get(I)||0,(!q||F>=q.length)&&(S=this.addView(g,D,N,k,I),this.unuseView(S,!0),q=h.get(I)),S=q[F],O.set(I,F+1)),f.delete(S.nr.key),S.nr.used=!0,S.nr.index=D,S.nr.key=k,S.nr.type=I,f.set(k,S),H=!0;else if(!S.nr.used&&(S.nr.used=!0,H=!0,q)){const oe=q.indexOf(S);oe!==-1&&q.splice(oe,1)}S.item=N,H&&(D===c.length-1&&this.$emit("scroll-end"),D===0&&this.$emit("scroll-start")),n===null?(S.position=d[D-1].accumulator,S.offset=0):(S.position=Math.floor(D/r)*n,S.offset=D%r*s)}return this.$_startIndex=y,this.$_endIndex=_,this.emitUpdate&&this.$emit("update",y,_,A,C),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:x}},getListenerTarget(){let e=g8(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let r;if(this.pageMode){const s=e.getBoundingClientRect(),o=n?s.height:s.width;let a=-(n?s.top:s.left),l=n?window.innerHeight:window.innerWidth;a<0&&(l+=a,a=0),a+l>o&&(l=o-a),r={start:a,end:a+l}}else n?r={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:r={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Q0?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,r,s;if(this.pageMode){const o=g8(this.$el),a=o.tagName==="HTML"?0:o[t.scroll],l=o.getBoundingClientRect(),u=this.$el.getBoundingClientRect()[t.start]-l[t.start];n=o,r=t.scroll,s=e+a+u}else n=this.$el,r=t.scroll,s=e;n[r]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const HG={key:0,ref:"before",class:"vue-recycle-scroller__slot"},GG={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function WG(e,t,n,r,s,o){const a=Ge("ResizeObserver"),l=wd("observe-visibility");return Dt((R(),V("div",{class:Z(["vue-recycle-scroller",{ready:s.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...c)=>o.handleScroll&&o.handleScroll(...c))},[e.$slots.before?(R(),V("div",HG,[Ie(e.$slots,"before")],512)):se("v-if",!0),(R(),_e(Qt(n.listTag),{ref:"wrapper",style:Ze({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:Z(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:te(()=>[(R(!0),V(qe,null,Nt(s.pool,c=>(R(),_e(Qt(n.itemTag),Ln({key:c.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${c.position}px) translate${e.direction==="vertical"?"X":"Y"}(${c.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&s.hoverKey===c.nr.key}]]},fT(n.skipHover?{}:{mouseenter:()=>{s.hoverKey=c.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:te(()=>[Ie(e.$slots,"default",{item:c.item,index:c.nr.index,active:c.nr.used})]),_:2},1040,["style","class"]))),128)),Ie(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(R(),V("div",GG,[Ie(e.$slots,"after")],512)):se("v-if",!0),ne(a,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[l,o.handleVisibilityChange]])}ev.render=WG,ev.__file="src/components/RecycleScroller.vue";var tv={name:"DynamicScroller",components:{RecycleScroller:ev},provide(){return typeof ResizeObserver!="undefined"&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(const t of e)if(t.target&&t.target.$_vs_onResize){let n,r;if(t.borderBoxSize){const s=t.borderBoxSize[0];n=s.inlineSize,r=s.blockSize}else n=t.contentRect.width,r=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,n,r)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:Me(be({},m8),{minItemSize:{type:[Number,String],required:!0}}),emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:v8,itemsWithSize(){const e=[],{items:t,keyField:n,simpleArray:r}=this,s=this.vscrollData.sizes,o=t.length;for(let a=0;a<o;a++){const l=t[a],c=r?a:l[n];let u=s[c];typeof u=="undefined"&&!this.$_undefinedMap[c]&&(u=0),e.push({item:l,id:c,size:u})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){const n=this.$el.scrollTop;let r=0,s=0;const o=Math.min(e.length,t.length);for(let l=0;l<o&&!(r>=n);l++)r+=t[l].size||this.minItemSize,s+=e[l].size||this.minItemSize;const a=s-r;a!==0&&(this.$el.scrollTop+=a)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=BG()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$_events.emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit("vscroll:update",{force:!0})},scrollToItem(e){const t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){const n=this.simpleArray?t!=null?t:this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;const t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function KG(e,t,n,r,s,o){const a=Ge("RecycleScroller");return R(),_e(a,Ln({ref:"scroller",items:o.itemsWithSize,"min-item-size":n.minItemSize,direction:e.direction,"key-field":"id","list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:o.onScrollerResize,onVisible:o.onScrollerVisible}),{default:te(({item:l,index:c,active:u})=>[Ie(e.$slots,"default",cP(P2({item:l.item,index:c,active:u,itemWithSize:l})))]),before:te(()=>[Ie(e.$slots,"before")]),after:te(()=>[Ie(e.$slots,"after")]),empty:te(()=>[Ie(e.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}tv.render=KG,tv.__file="src/components/DynamicScroller.vue";var b8={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const n=this.vscrollData.sizes[t],r=this.vscrollData.sizes[e];n!=null&&n!==r&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const t=this.$el.offsetWidth,n=this.$el.offsetHeight;this.applyWidthHeight(t,n)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){const n=~~(this.vscrollParent.direction==="vertical"?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit("resize",this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return ut(this.tag,this.$slots.default())}};b8.__file="src/components/DynamicScrollerItem.vue";const nge="",ige="",JG={components:{ForceGraphSvgIcon:Zo,selectSingle:oG,selectMults:CG,DynamicScroller:tv,DynamicScrollerItem:b8},mixins:[Rr],inject:["hasLevel","history","levelMap"],props:{data:{required:!0,type:Object,default:()=>({nodes:[],links:[]})},selectedNodes:{required:!1,type:Array,default:()=>[]},isRelation:{required:!1,type:Boolean,default:!1},moduleDetail:{type:Object,default:()=>{}},requestGraphData:{type:Boolean,default:!1},canSearch:{required:!1,type:Boolean,default:!1}},emits:["relationNum","sendNodesRange","row-click","selection-change","relationClick","buttonClick"],data(){return{filterValues:"",filteredDataList:[],isMoreSelect:!1,isAggregation:!1,allOptions:null,extentDataList:[],relationDataList:[],currentSelectStatus:-1,currentSelectNode:null,isCombineData:!1,selection:{},oldScrollTop:0,scrollTop:0,flagDiv:1,divObject:null,relationList:[],rootNode:{type:""},menuOptions:null,lineShow:!1,tableKey:"table",value:!0,selectList:[]}},computed:{historyData(){var r,s,o,a,l,c;const e=(o=(s=(r=this.history)==null?void 0:r.dataNow)==null?void 0:s.nodes)==null?void 0:o.map(u=>{const y=u,{x:d,y:f,vx:h,vy:g}=y;return Ps(y,["x","y","vx","vy"])}),t=(c=(l=(a=this.history)==null?void 0:a.dataNow)==null?void 0:l.links)==null?void 0:c.map(u=>{const N=u,{source:d,target:f}=N,h=Ps(N,["source","target"]),I=d,{x:g,y:v,vx:y,vy:_}=I,w=Ps(I,["x","y","vx","vy"]),F=f,{x:A,y:C,vx:S,vy:x}=F,O=Ps(F,["x","y","vx","vy"]);return be({sourceRest:w,targetRest:O},h)});return JSON.stringify({nodes:e,links:t})},noSelectNodes(){return this.getNoSelectNodes()},showAllExtent(){let e=!1;if(this.selectedNodes&&this.selectedNodes.length===1){const t=this.selectedNodes[0].getData;t&&(e=!(Object.values(t).filter(r=>r===!1).length>0))}return!e},hasFoldIcon(){return!this.isAggregation&&this.relationDataList.some(e=>{var t;return(t=e.childList)==null?void 0:t.length})}},watch:{filterValues:{deep:!0,handler(e,t){var s;const n=this.filterValues.split("-");this.filterValues=n[0];const r=this.clone((s=this.history.dataNow)==null?void 0:s.links);if(L0.filterValues=n[0],this.selectedNodes.length===1){const o=this.clone(this.selectedNodes[0]);this.filteredDataList=this.getSelectOneNodes(o)}else this.selectedNodes.length===0&&(this.filteredDataList=this.clone(this.noSelectNodes));if(this.filterValues!==""&&(Fn({cId:"rightMenu-filterValues",c:"右侧菜单搜索"}),this.filteredDataList=this.filteredDataList.filter(o=>this.filterValues!==""?(o.parentNode=this.searchParent(o,r),o.childList=o.childList.filter(a=>{var l,c,u,d;if(a.name.toLowerCase().indexOf(this.filterValues.toLowerCase())>-1)return!0;if(a.detail!==null){for(const f in a.detail.brief)if(String((l=a==null?void 0:a.detail)==null?void 0:l.brief[f]).toLowerCase().indexOf(this.filterValues.toLowerCase())>-1)return!0;for(let f=0;f<((u=(c=a==null?void 0:a.detail)==null?void 0:c.tags)==null?void 0:u.length);f++){const h=(d=a==null?void 0:a.detail)==null?void 0:d.tags[f];if(String(h.name).toLowerCase().indexOf(this.filterValues.toLowerCase())>-1)return!0}}else return!1}),o.childList.length>0):!0),this.filteredDataList=this.deleteParentItem(this.filteredDataList)),this.selectedNodes.length===1&&Ye(bt,"relationNum",this.filteredDataList[0]),this.selectedNodes.length!==0){const o=[];o.push(this.rootNode),this.filteredDataList.forEach(a=>{o.push(...a.childList),o.push(a)}),Ye(bt,"sendNodesRange",o)}else{const o=[];this.filteredDataList.forEach(a=>{o.push(this.searchParent(a,r)),o.push(...a.childList),o.push(a)}),Ye(bt,"sendNodesRange",o)}}},selectedNodes:{handler(e,t){var n;if(e!==t){const r=e||[],s=this.clone(r);if(this.filterValues="",this.isMoreSelect=!1,this.allOptions=[],this.initShowDiv(),s.length===0)setTimeout(()=>{this.currentSelectStatus=0,this.filteredDataList=this.noSelectNodes,this.setFilteredDataList(),Ye(bt,"sendNodesRange",null)},0);else if(s.length===1){this.currentSelectNode=s[0],this.currentSelectStatus=1,this.filteredDataList=this.getSelectOneNodes(s[0]);const o=[];o.push(this.rootNode),this.filteredDataList.map(a=>{o.push(...a.childList),o.push(a)}),this.setFilteredDataList(),Ye(bt,"sendNodesRange",o)}else{this.currentSelectStatus=2;const o=[],a=this.clone((n=this.history.dataNow)==null?void 0:n.links),l=s==null?void 0:s.map(c=>{var u;return c.level=this.levelNow(c),c.dangerNumber=((u=this.levelMap[c.level])==null?void 0:u.dangerNumber)||0,c.parentNode=this.searchParent(c,a),o.push(c),c});l.sort(this.handle("dangerNumber")),this.filteredDataList=l,this.setFilteredDataList(),Ye(bt,"sendNodesRange",o),this.isMoreSelect=!0}}},immediate:!0,deep:!0},historyData(){this.setFilteredDataList()},filteredDataList:{handler(e,t){setTimeout(()=>{this.setRelationDataList()},0)},deep:!0}},created(){},mounted(){},beforeUnmount(){Zs(bt,"flagFiles")},methods:{searchChildren(e,t){const n=t,r=[];return n&&n.forEach(s=>{var o;s.source.id===e.id&&(s.target.level=this.levelNow(s.target),s.target.dangerNumber=((o=this.levelMap[s.target.level])==null?void 0:o.dangerNumber)||0,r.push(s.target))}),r},searchParent(e,t){const n=t;let r=[];return n&&n.forEach(s=>{var o;s.target.id===e.id&&(s.source.level=this.levelNow(s.source),s.source.dangerNumber=((o=this.levelMap[s.source.level])==null?void 0:o.dangerNumber)||0,r=s.source)}),r},setFilteredDataList(){if(L0.filterValues===void 0||L0.filterValues==="")if(this.selectedNodes.length===0)this.currentSelectStatus=0,this.filteredDataList=this.noSelectNodes,Ye(bt,"sendNodesRange",null);else if(this.selectedNodes.length===1){const e=this.clone(this.selectedNodes[0]);this.currentSelectStatus=1,this.currentSelectNode=e,this.filteredDataList=this.getSelectOneNodes(e);const t=[];t.push(this.rootNode),this.filteredDataList.map(n=>{t.push(...n.childList),t.push(n)}),Ye(bt,"sendNodesRange",t)}else this.currentSelectStatus=2;this.setRelationDataList()},setRelationDataList(){if(this.currentSelectStatus!==1){this.relationDataList=this.filteredDataList;return}const e=this.checkExtentStatus();switch(this.isCombineData=!1,e){case 3:{this.initExtentData(),this.relationDataList=this.extentDataList;break}case 2:case 1:{this.isCombineData=!0,this.relationDataList=this.filteredDataList.concat(this.getCombineDataList());break}case 0:this.relationDataList=this.filteredDataList}},levelNow(e){let t=e.detail&&e.detail.info.basic.level;return e.type==="family"&&(t=""),t},handleRowClick(e,t){if(t&&t.type==="selection")return!1;Ye(this,"row-click",e)},handleSelectionChange(e){this.selection=e,Ye(this,"selection-change",e)},getModuleDetail(e,t){const n=[],r=[],s=e.apis;this.menuOptions=[];let o=this.$parent.$parent.$parent.moduleDetail;o=o!=null&&o.plugs[e.type]?Array.from(o==null?void 0:o.plugs[e.type]):[],o.filter(l=>{l.value=0,l.children?l.children.map(c=>(c.value=0,this.menuOptions.push(c),c)):this.menuOptions.push(l)}),o.length!==0&&this.menuOptions.unshift({namec:"拓线全部",value:0,name:"",flagSelect:!1}),this.allOptions=[];let a;if(this.menuOptions.map(l=>{a=0;for(let c=0;c<t.length;c++){const u=t[c];a+=u.childList.length,u.id.split("-").pop()===l.name&&(l.value=u.childList.length)}return t.length===0&&(l.value=0),l.namec==="拓线全部"?this.allOptions.push({namec:l.namec,value:a,name:l.name,flagSelect:l.flagSelect}):this.allOptions.push({namec:l.namec,value:l.value,icon:l.icon,name:l.name,relay_name:l.relay_name}),l}),s){for(let l=0;l<s.length;l++)n[s[l].name]=!0;for(let l=0;l<this.allOptions.length;l++)n[this.allOptions[l].name]?(this.allOptions[l].flagSelect=!0,r.push(this.allOptions[l])):(this.allOptions[l].flagSelect=!1,r.push(this.allOptions[l]))}e.menuOptions=this.allOptions},clone(e){return JSON.parse(JSON.stringify(e))},getNoSelectNodes(){var s;this.isAggregation=!1;const e=this.clone(this.history.dataNow.nodes),t=this.clone((s=this.history.dataNow)==null?void 0:s.links),n=e.filter(o=>{if((o==null?void 0:o.type)==="nodeType")return o.childList=this.searchChildren(o,t),o.parentNode=this.searchParent(o,t),o.childList.sort(this.handle("dangerNumber")),!0});return this.deleteParentItem(n)},getSelectOneNodes(e){var n;const t=this.clone((n=this.history.dataNow)==null?void 0:n.links);if(e.type==="nodeType"){const r=[];return this.isAggregation=!1,this.rootNode=e,e.childList=this.searchChildren(e,t),e.parentNode=this.searchParent(e,t),e.childList.sort(this.handle("dangerNumber")),r.push(e),this.getModuleDetail(e,r),Ye(bt,"relationNum",e),r}else if(e.type==="aggregation"){const r=[];this.isAggregation=!0;const s=[...e.list];return e.childList=s.map(o=>{var a;return o.level=this.levelNow(o),o.dangerNumber=((a=this.levelMap[o.level])==null?void 0:a.dangerNumber)||0,o}),e.childList.sort(this.handle("dangerNumber")),e.name=this.searchParent(e,t).name,r.push(e),Ye(bt,"relationNum",e),r}else{this.rootNode=e,this.isAggregation=!1;const r=this.searchChildren(e,t);return r.map(s=>(s.childList=this.searchChildren(s,t),s.parentNode=this.searchParent(s,t),s.childList.sort(this.handle("dangerNumber")),s)),this.getModuleDetail(e,r),r}},handle(e){return function(t,n){const r=parseInt(t[e]),s=parseInt(n[e]);return r==null?-1:s==null?1:n[e]-t[e]}},showDetail(e,t){var r,s,o,a,l,c,u,d,f,h,g,v,y,_;const n=[];n.push(e.id),t&&(this.selectedNodes.length===0?(o=(s=(r=this.$parent)==null?void 0:r.$parent)==null?void 0:s.$parent)!=null&&o.handleTableSelect&&((c=(l=(a=this.$parent)==null?void 0:a.$parent)==null?void 0:l.$parent)==null||c.handleTableSelect(n)):(h=(f=(d=(u=this.$parent)==null?void 0:u.$parent)==null?void 0:d.$parent)==null?void 0:f.$parent)!=null&&h.handleTableSelect&&((_=(y=(v=(g=this.$parent)==null?void 0:g.$parent)==null?void 0:v.$parent)==null?void 0:y.$parent)==null||_.handleTableSelect(n)))},scalarArrayEquals(e,t){return(e==null?void 0:e.length)===(t==null?void 0:t.length)&&e.every(function(n,r){return n===t[r]})},initShowDiv(){var t;const e=(t=this.history.dataNow)==null?void 0:t.links;e&&e.map(n=>{n.source.showChild=!1,n.target.showChild=!1})},groupBy(e,t){const n={};return e.forEach(function(r){const s=JSON.stringify(t(r));n[s]=n[s]||[],n[s].push(r)}),Object.keys(n).map(function(r){return n[r]})},deleteParentItem(e){let t=[];const n=[];return this.groupBy(e,function(r){return[r.parentNode.id]}).map(r=>{t.push(...r)}),t=t.map(r=>(n.some(o=>o===r.parentNode.id)?r.parentNode="":n.push(r.parentNode.id),r)),t},relationClick(e){Fn({cId:"relationClick",c:"点击拓线"});const n=this.allOptions.filter(r=>r.namec===e.namec)[0];this.value=!this.value,n.flagSelect=!1,n.namec==="拓线全部"?Ye(bt,"relationClick",{nodes:[this.rootNode],api:s8,dataApi:null}):Ye(bt,"relationClick",{nodes:[this.rootNode],api:o8,dataApi:n})},toggleFold(e){Fn({cId:"rightMenu-toggleFold",c:"rightMenu-toggleFold"}),this.history.dataNow.nodes.map(t=>(t.id===e.id&&(t.showChild=!e.showChild),t)),this.filterValues=this.filterValues+"-i"},toggleEye(e,t,n){this.filterValues=this.filterValues+"-i";const r=t.show;this.value=!this.value,r===!0?(Fn({cId:"rightMenu-toggleEye",c:"rightMenu-toggleEye"}),Ye(bt,"buttonClick",{nodes:[t,n],api:{name:"hide_node"}})):Ye(bt,"buttonClick",{nodes:[t,n],api:{name:"show_node"}})},checkExtentStatus(){const e=this.currentSelectNode.getData;let t,n=!0,r=!0;if(e===void 0)t=0;else{for(const s in e)e[s]===!1&&(n=!1),e[s]===!0&&(r=!1);n===!0?t=1:t=r===!0?3:2}return t},getCombineDataList(){const e=this.allOptions.filter(r=>r.namec!=="拓线全部"),t=[];let n={};return e.map((r,s)=>{const o=this.checkNodeExtentStatus(r),a=this.checkExtentData(r),l=FS();o&&!a&&(n={id:l,type:"nodeType",icon:r.icon,name:r.namec,namec:r.namec,show:!1,showChild:!1,childList:[],parentNode:"",isExtentNode:!0,hasExtention:!0,noExtentNode:!0},t.push(n)),o||(n={id:l,type:"nodeType",icon:r.icon,name:r.namec,namec:r.namec,show:!1,showChild:!1,childList:[],parentNode:"",isExtentNode:!0,hasExtention:!1,noExtentNode:!1},t.push(n))}),t},initExtentData(){const e=[],t=this.allOptions.filter(r=>r.namec!=="拓线全部"),n=this.rootNode;t.forEach((r,s)=>{const o=FS();e.push({id:o,type:"nodeType",icon:r.icon,name:r.namec,namec:r.namec,show:!1,showChild:!1,childList:[],parentNode:s===0?n:"",hasExtention:!1,isExtentNode:!0,noExtentNode:!1})}),this.extentDataList=e},checkNodeExtentStatus(e){return this.currentSelectNode.getData[e.name]},checkExtentData(e){return this.filteredDataList.filter(n=>e.namec===n.name).length>0}}},YG={class:"node-relation-block"},XG={key:0,class:"textarea-wrapper"},ZG={key:1,class:"relation-title"},QG={key:0,class:"extent-icon"},eW={key:2,class:"nodata"};function tW(e,t,n,r,s,o){const a=Go,l=Ge("force-graph-svg-icon"),c=fi,u=Ge("select-single"),d=Ge("select-mults"),f=Ge("DynamicScrollerItem"),h=Ge("DynamicScroller");return R(),V("div",YG,[s.isMoreSelect?se("",!0):(R(),V(qe,{key:0},[n.canSearch?(R(),V("div",XG,[ne(a,{modelValue:s.filterValues,"onUpdate:modelValue":t[0]||(t[0]=g=>s.filterValues=g),modelModifiers:{trim:!0},class:"search-content",placeholder:"请输入搜索内容",clearable:""},null,8,["modelValue"])])):se("",!0),s.rootNode.type!=="nodeType"&&!s.isAggregation?(R(),V("div",ZG,[t[1]||(t[1]=G("h3",{class:"title-top"},"关联列表",-1)),o.showAllExtent?(R(),V("div",QG,[(R(!0),V(qe,null,Nt(s.allOptions,(g,v)=>(R(),V("div",{key:v},[g.namec==="拓线全部"?(R(),_e(c,{key:0,content:g.namec,"popper-class":"el-tooltip-gray",placement:"left"},{default:te(()=>[ne(l,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/button22/button_select_all.svg"],onClick:y=>o.relationClick(g)},null,8,["icon-class","onClick"])]),_:2},1032,["content"])):se("",!0)]))),128))])):se("",!0)])):se("",!0)],64)),s.relationDataList.length>0?(R(),V(qe,{key:1},[n.selectedNodes.length?(R(),V("div",{key:0,ref:"rightList",class:Z({"has-selected":n.selectedNodes.length,"has-fold-icon":o.hasFoldIcon})},[(R(!0),V(qe,null,Nt(s.relationDataList,(g,v)=>(R(),V("div",{key:v,class:Z(["relation-item",!s.isMoreSelect&&(s.rootNode.type==="nodeType"||!n.isRelation)?"offset-div-1":"offset-div-2"])},[s.isMoreSelect?(R(),_e(d,{key:1,"filter-data":g,"root-node":s.rootNode,"is-more-select":s.isMoreSelect,"is-relation":n.isRelation,onShowDetail:o.showDetail},null,8,["filter-data","root-node","is-more-select","is-relation","onShowDetail"])):(R(),_e(u,{key:0,"filter-data":g,"unique-key":v,value:s.value,"root-node":s.rootNode,"is-more-select":s.isMoreSelect,"is-relation":n.isRelation,"is-aggregation":s.isAggregation,"flag-div":s.flagDiv,"is-combine-data":s.isCombineData,onShowDetail:o.showDetail,onToggleFold:o.toggleFold,onToggleEye:o.toggleEye,onRelationClick:o.relationClick},null,8,["filter-data","unique-key","value","root-node","is-more-select","is-relation","is-aggregation","flag-div","is-combine-data","onShowDetail","onToggleFold","onToggleEye","onRelationClick"]))],2))),128))],2)):(R(),V("div",{key:1,ref:"rightList",class:Z(["relation-data-list",{"no-selected":!n.selectedNodes.length}])},[ne(h,{items:s.relationDataList,"min-item-size":54,class:"scroller","key-field":"id"},{default:te(({item:g,index:v,active:y})=>[ne(f,{item:g,active:y,"size-dependencies":[g],"data-index":v,class:Z(["relation-item",!s.isMoreSelect&&(s.rootNode.type==="nodeType"||!n.isRelation)?"offset-div-1":"offset-div-2"])},{default:te(()=>[s.isMoreSelect?(R(),_e(d,{key:1,"filter-data":g,"root-node":s.rootNode,"is-more-select":s.isMoreSelect,"is-relation":n.isRelation,onShowDetail:o.showDetail},null,8,["filter-data","root-node","is-more-select","is-relation","onShowDetail"])):(R(),_e(u,{key:0,"filter-data":g,"unique-key":v,value:s.value,"root-node":s.rootNode,"is-more-select":s.isMoreSelect,"is-relation":n.isRelation,"is-aggregation":s.isAggregation,"flag-div":s.flagDiv,"is-combine-data":s.isCombineData,onShowDetail:o.showDetail,onToggleFold:o.toggleFold,onToggleEye:o.toggleEye,onRelationClick:o.relationClick},null,8,["filter-data","unique-key","value","root-node","is-more-select","is-relation","is-aggregation","flag-div","is-combine-data","onShowDetail","onToggleFold","onToggleEye","onRelationClick"]))]),_:2},1032,["item","active","size-dependencies","data-index","class"])]),_:1},8,["items"])],2))],64)):(R(),V("div",eW,t[2]||(t[2]=[G("span",{class:"el-table__empty-text"},"暂无数据",-1)])))])}const nW={components:{NodeDetail:PH,NodesRelation:un(JG,[["render",tW]])},props:{data:{required:!0,type:Object,default:()=>{}},selectedNodes:{required:!1,type:Array,default:()=>[]},relations:{required:!1,type:Array,default:()=>[]},requestGraphData:{type:Boolean,default:!1}},data(){return{}},computed:{showDetail(){return this.selectedNodes.length!==0},relationData(){const e=[];return this.selectedNodes.length!==1?{nodes:[]}:(this.data.links.map(t=>{t.source.id===this.selectedNodes[0].id?e.push(t.target):t.target.id===this.selectedNodes[0].id&&e.push(t.source)}),{nodes:e})}},methods:{handleBack(){Ye(this,"change-box",[],!0),this.scrollTop>0&&setTimeout(()=>this.$refs.rightMenu.scrollTo(0,this.scrollTop))},handleSelectionChange(e){Ye(this,"change-box",e)},handleRowClick(e){this.scrollTop=this.$refs.rightMenu.scrollTop,Ye(this,"change-box",[e.id],!0)}},emits:["change-box"]},iW={class:"node-data-wrapper"};function rW(e,t,n,r,s,o){const a=Ge("node-detail"),l=Ge("nodes-relation");return R(),V("div",iW,[o.showDetail?(R(),V(qe,{key:0},[ne(a,{data:n.selectedNodes[0]||{},"selected-nodes":n.selectedNodes,"request-graph-data":n.requestGraphData},null,8,["data","selected-nodes","request-graph-data"]),ne(l,{data:o.relationData,"selected-nodes":n.selectedNodes,"request-graph-data":n.requestGraphData,"is-relation":!0},null,8,["data","selected-nodes","request-graph-data"])],64)):(R(),_e(l,{key:1,data:n.data,"selected-nodes":n.selectedNodes,"request-graph-data":n.requestGraphData,"can-search":!0,onRowClick:o.handleRowClick,onSelectionChange:o.handleSelectionChange},null,8,["data","selected-nodes","request-graph-data","onRowClick","onSelectionChange"]))])}const sW=un(nW,[["render",rW]]),sge="",oW={name:"RightMenu",components:{NodeData:sW},props:{graphData:{type:Object,required:!0},selectedNodes:{type:Array,required:!0},requestGraphData:{type:Boolean,default:!1}},emits:["change-box"],data(){return{scrollTop:0}},methods:{handleBack(){Ye(this,"change-box",[],!0),this.scrollTop>0&&setTimeout(()=>this.$refs.rightMenu.scrollTo(0,this.scrollTop))},handleSelectionChange(e){Ye(this,"change-box",e)},handleRowClick(e){this.scrollTop=this.$refs.rightMenu.scrollTop,Ye(this,"change-box",[e.id],!0)}}};function aW(e,t,n,r,s,o){const a=Ge("node-data");return R(),V("div",{ref:"rightMenu",class:Z(["right-menu-box",{"no-select":!n.selectedNodes.length}])},[ne(a,{data:n.graphData,"selected-nodes":n.selectedNodes,"request-graph-data":n.requestGraphData,onRowClick:o.handleRowClick,onSelectionChange:o.handleSelectionChange,onGoBack:o.handleBack},null,8,["data","selected-nodes","request-graph-data","onRowClick","onSelectionChange","onGoBack"])],2)}const lW=un(oW,[["render",aW]]);var nv="http://www.w3.org/1999/xhtml";const y8={svg:"http://www.w3.org/2000/svg",xhtml:nv,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _8(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),y8.hasOwnProperty(t)?{space:y8[t],local:e}:e}function cW(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===nv&&t.documentElement.namespaceURI===nv?t.createElement(e):t.createElementNS(n,e)}}function uW(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function w8(e){var t=_8(e);return(t.local?uW:cW)(t)}function dW(){}function C8(e){return e==null?dW:function(){return this.querySelector(e)}}function fW(e){typeof e!="function"&&(e=C8(e));for(var t=this._groups,n=t.length,r=new Array(n),s=0;s<n;++s)for(var o=t[s],a=o.length,l=r[s]=new Array(a),c,u,d=0;d<a;++d)(c=o[d])&&(u=e.call(c,c.__data__,d,o))&&("__data__"in c&&(u.__data__=c.__data__),l[d]=u);return new Ni(r,this._parents)}function S8(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function hW(){return[]}function pW(e){return e==null?hW:function(){return this.querySelectorAll(e)}}function gW(e){return function(){return S8(e.apply(this,arguments))}}function mW(e){typeof e=="function"?e=gW(e):e=pW(e);for(var t=this._groups,n=t.length,r=[],s=[],o=0;o<n;++o)for(var a=t[o],l=a.length,c,u=0;u<l;++u)(c=a[u])&&(r.push(e.call(c,c.__data__,u,a)),s.push(c));return new Ni(r,s)}function vW(e){return function(){return this.matches(e)}}function E8(e){return function(t){return t.matches(e)}}var bW=Array.prototype.find;function yW(e){return function(){return bW.call(this.children,e)}}function _W(){return this.firstElementChild}function wW(e){return this.select(e==null?_W:yW(typeof e=="function"?e:E8(e)))}var CW=Array.prototype.filter;function SW(){return Array.from(this.children)}function EW(e){return function(){return CW.call(this.children,e)}}function xW(e){return this.selectAll(e==null?SW:EW(typeof e=="function"?e:E8(e)))}function AW(e){typeof e!="function"&&(e=vW(e));for(var t=this._groups,n=t.length,r=new Array(n),s=0;s<n;++s)for(var o=t[s],a=o.length,l=r[s]=[],c,u=0;u<a;++u)(c=o[u])&&e.call(c,c.__data__,u,o)&&l.push(c);return new Ni(r,this._parents)}function x8(e){return new Array(e.length)}function PW(){return new Ni(this._enter||this._groups.map(x8),this._parents)}function Uf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Uf.prototype={constructor:Uf,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function TW(e){return function(){return e}}function OW(e,t,n,r,s,o){for(var a=0,l,c=t.length,u=o.length;a<u;++a)(l=t[a])?(l.__data__=o[a],r[a]=l):n[a]=new Uf(e,o[a]);for(;a<c;++a)(l=t[a])&&(s[a]=l)}function NW(e,t,n,r,s,o,a){var l,c,u=new Map,d=t.length,f=o.length,h=new Array(d),g;for(l=0;l<d;++l)(c=t[l])&&(h[l]=g=a.call(c,c.__data__,l,t)+"",u.has(g)?s[l]=c:u.set(g,c));for(l=0;l<f;++l)g=a.call(e,o[l],l,o)+"",(c=u.get(g))?(r[l]=c,c.__data__=o[l],u.delete(g)):n[l]=new Uf(e,o[l]);for(l=0;l<d;++l)(c=t[l])&&u.get(h[l])===c&&(s[l]=c)}function IW(e){return e.__data__}function RW(e,t){if(!arguments.length)return Array.from(this,IW);var n=t?NW:OW,r=this._parents,s=this._groups;typeof e!="function"&&(e=TW(e));for(var o=s.length,a=new Array(o),l=new Array(o),c=new Array(o),u=0;u<o;++u){var d=r[u],f=s[u],h=f.length,g=DW(e.call(d,d&&d.__data__,u,r)),v=g.length,y=l[u]=new Array(v),_=a[u]=new Array(v),w=c[u]=new Array(h);n(d,f,y,_,w,g,t);for(var A=0,C=0,S,x;A<v;++A)if(S=y[A]){for(A>=C&&(C=A+1);!(x=_[C])&&++C<v;);S._next=x||null}}return a=new Ni(a,r),a._enter=l,a._exit=c,a}function DW(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function LW(){return new Ni(this._exit||this._groups.map(x8),this._parents)}function kW(e,t,n){var r=this.enter(),s=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),n==null?o.remove():n(o),r&&s?r.merge(s).order():s}function MW(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,s=n.length,o=r.length,a=Math.min(s,o),l=new Array(s),c=0;c<a;++c)for(var u=n[c],d=r[c],f=u.length,h=l[c]=new Array(f),g,v=0;v<f;++v)(g=u[v]||d[v])&&(h[v]=g);for(;c<s;++c)l[c]=n[c];return new Ni(l,this._parents)}function FW(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],s=r.length-1,o=r[s],a;--s>=0;)(a=r[s])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function BW(e){e||(e=jW);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,s=new Array(r),o=0;o<r;++o){for(var a=n[o],l=a.length,c=s[o]=new Array(l),u,d=0;d<l;++d)(u=a[d])&&(c[d]=u);c.sort(t)}return new Ni(s,this._parents).order()}function jW(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function UW(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function $W(){return Array.from(this)}function VW(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],s=0,o=r.length;s<o;++s){var a=r[s];if(a)return a}return null}function zW(){let e=0;for(const t of this)++e;return e}function qW(){return!this.node()}function HW(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var s=t[n],o=0,a=s.length,l;o<a;++o)(l=s[o])&&e.call(l,l.__data__,o,s);return this}function GW(e){return function(){this.removeAttribute(e)}}function WW(e){return function(){this.removeAttributeNS(e.space,e.local)}}function KW(e,t){return function(){this.setAttribute(e,t)}}function JW(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function YW(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function XW(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function ZW(e,t){var n=_8(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?WW:GW:typeof t=="function"?n.local?XW:YW:n.local?JW:KW)(n,t))}function A8(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function QW(e){return function(){this.style.removeProperty(e)}}function eK(e,t,n){return function(){this.style.setProperty(e,t,n)}}function tK(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function nK(e,t,n){return arguments.length>1?this.each((t==null?QW:typeof t=="function"?tK:eK)(e,t,n==null?"":n)):iK(this.node(),e)}function iK(e,t){return e.style.getPropertyValue(t)||A8(e).getComputedStyle(e,null).getPropertyValue(t)}function rK(e){return function(){delete this[e]}}function sK(e,t){return function(){this[e]=t}}function oK(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function aK(e,t){return arguments.length>1?this.each((t==null?rK:typeof t=="function"?oK:sK)(e,t)):this.node()[e]}function P8(e){return e.trim().split(/^|\s+/)}function iv(e){return e.classList||new T8(e)}function T8(e){this._node=e,this._names=P8(e.getAttribute("class")||"")}T8.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function O8(e,t){for(var n=iv(e),r=-1,s=t.length;++r<s;)n.add(t[r])}function N8(e,t){for(var n=iv(e),r=-1,s=t.length;++r<s;)n.remove(t[r])}function lK(e){return function(){O8(this,e)}}function cK(e){return function(){N8(this,e)}}function uK(e,t){return function(){(t.apply(this,arguments)?O8:N8)(this,e)}}function dK(e,t){var n=P8(e+"");if(arguments.length<2){for(var r=iv(this.node()),s=-1,o=n.length;++s<o;)if(!r.contains(n[s]))return!1;return!0}return this.each((typeof t=="function"?uK:t?lK:cK)(n,t))}function fK(){this.textContent=""}function hK(e){return function(){this.textContent=e}}function pK(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function gK(e){return arguments.length?this.each(e==null?fK:(typeof e=="function"?pK:hK)(e)):this.node().textContent}function mK(){this.innerHTML=""}function vK(e){return function(){this.innerHTML=e}}function bK(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function yK(e){return arguments.length?this.each(e==null?mK:(typeof e=="function"?bK:vK)(e)):this.node().innerHTML}function _K(){this.nextSibling&&this.parentNode.appendChild(this)}function wK(){return this.each(_K)}function CK(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function SK(){return this.each(CK)}function EK(e){var t=typeof e=="function"?e:w8(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function xK(){return null}function AK(e,t){var n=typeof e=="function"?e:w8(e),r=t==null?xK:typeof t=="function"?t:C8(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function PK(){var e=this.parentNode;e&&e.removeChild(this)}function TK(){return this.each(PK)}function OK(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function NK(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function IK(e){return this.select(e?NK:OK)}function RK(e){return arguments.length?this.property("__data__",e):this.node().__data__}function DK(e){return function(t){e.call(this,t,this.__data__)}}function LK(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function kK(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,s=t.length,o;n<s;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function MK(e,t,n){return function(){var r=this.__on,s,o=DK(t);if(r){for(var a=0,l=r.length;a<l;++a)if((s=r[a]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=o,s.options=n),s.value=t;return}}this.addEventListener(e.type,o,n),s={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(s):this.__on=[s]}}function FK(e,t,n){var r=LK(e+""),s,o=r.length,a;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,u=l.length,d;c<u;++c)for(s=0,d=l[c];s<o;++s)if((a=r[s]).type===d.type&&a.name===d.name)return d.value}return}for(l=t?MK:kK,s=0;s<o;++s)this.each(l(r[s],t,n));return this}function I8(e,t,n){var r=A8(e),s=r.CustomEvent;typeof s=="function"?s=new s(t,n):(s=r.document.createEvent("Event"),n?(s.initEvent(t,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function BK(e,t){return function(){return I8(this,e,t)}}function jK(e,t){return function(){return I8(this,e,t.apply(this,arguments))}}function UK(e,t){return this.each((typeof t=="function"?jK:BK)(e,t))}function*$K(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],s=0,o=r.length,a;s<o;++s)(a=r[s])&&(yield a)}var VK=[null];function Ni(e,t){this._groups=e,this._parents=t}function zK(){return this}Ni.prototype={constructor:Ni,select:fW,selectAll:mW,selectChild:wW,selectChildren:xW,filter:AW,data:RW,enter:PW,exit:LW,join:kW,merge:MW,selection:zK,order:FW,sort:BW,call:UW,nodes:$W,node:VW,size:zW,empty:qW,each:HW,attr:ZW,style:nK,property:aK,classed:dK,text:gK,html:yK,raise:wK,lower:SK,append:EK,insert:AK,remove:TK,clone:IK,datum:RK,on:FK,dispatch:UK,[Symbol.iterator]:$K};function R8(e){return typeof e=="string"?new Ni([document.querySelectorAll(e)],[document.documentElement]):new Ni([S8(e)],VK)}const qK={},HK={width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function GK(e,t){return R(),V("svg",HK,t[0]||(t[0]=[T2('<title>hmdr_icon_MD5_1</title><g id="页面-1" stroke="currentColor" class="level-color" stroke-width="1" fill="#fff" fill-rule="evenodd"><g id="3图标" transform="translate(-211.000000, -47.000000)"><g id="hmdr_icon_MD5_1" transform="translate(211.000000, 47.000000)"><rect id="矩形" fill="#FFFFFF" opacity="0" x="0" y="0" width="28" height="28"></rect><g transform="translate(2.500000, 2.500000)"><g id="hmdr_icon_yangben_1"><polyline id="路径备份" stroke-width="2" fill="#FFFFFF" points="2.65384615 22.1153846 2.65384615 0 15.0384615 0 20.3461538 5.30769231 20.3461538 22.1153846"></polyline><polygon id="路径-40" class="level-color" stroke="currentColor" fill="#192039" points="-5.8207883e-12 17.67 1.80269938 19.4726994 1.80269938 17.67"></polygon><g id="编组-44"><rect id="矩形备份" class="level-color" fill="#6E7590" x="0" y="9.73076923" width="23" height="7.96153846"></rect><polyline id="路径备份-2" stroke-width="2" points="20.3461538 5.30769231 15.0384615 5.30769231 15.0384615 -5.0701964e-14"></polyline><line id="路径-21备份" x1="2.65384615" y1="23" x2="20.3461538" y2="23" stroke-width="2" stroke-linecap="square"></line></g></g></g></g></g></g>',2)]))}const WK=un(qK,[["render",GK]]),oge="",KK={name:"Legend",components:{NodeIcon:Qc,ForceGraphSvgIcon:Zo,legendLevelSvg:WK},mixins:[Rr],inject:["levelList"],props:{showPoint:{type:Boolean,default:!0},history:{type:Object,default:()=>{}},moduleDetail:{type:Object,required:!0,default:()=>{}},margin:{type:String,required:!0,default:"0"},hasLevel:{type:Boolean,default:!0},showLevelCount:{type:Boolean,default:!1}},emits:["highLight"],data(){return{legendLevelPrefix:A0,filters:{point:[{name:"收藏",value:!0,prop:"collect"},{name:"备注",value:!0,prop:"label"},{name:"标签",value:!0,prop:"detail.tags"}]},fold:!1}},computed:{levelCount(){if(!this.showLevelCount)return;const e=this.history.dataNow.nodes,t={};return this.levelList.forEach(n=>{t[n.level]=0}),e.forEach(n=>{var s,o,a;const r=(a=(o=(s=n==null?void 0:n.detail)==null?void 0:s.info)==null?void 0:o.basic)==null?void 0:a.level;t[r]=t[r]+1}),t}},methods:{getViewBox(e,t){const n=[];switch(e){case"org":n.push(47,54);break;case"family":n.push(38,38);break;case"vul":n.push(38,38);break;default:n.push(28,28)}return t===3?n[0]:n[1]},highlightByRule(e,t,n,r){Fn({cId:"legendIcon-"+n,c:"legend图标点击-"+e.target.innerText});const s=e.currentTarget.getAttribute("class").indexOf("active")<0;R8(".legend-filter .out-box").classed("active",!1),s?(e.currentTarget.classList.add("active"),Ye(this,"highLight",t,n,r)):Ye(this,"highLight")},canHighlight(e){return this.history.dataNow.nodes.some(n=>n.type===e)},handleFold(){this.fold=!this.fold},svgName(e){return e={file_md5:"md5",incident:"report",internet:"ip"}[e]||e,e+"Svg"}}},JK={class:"container"},YK={key:0,class:"legend-filter node-type"},XK=["onClick"],ZK={class:"name"},QK=["src"],eJ={key:1,class:"legend-filter point"},tJ=["onClick"],nJ={key:2,class:"legend-filter level"},iJ=["onClick"],rJ={key:0,class:"legend-level-icon-dot"},sJ={key:2};function oJ(e,t,n,r,s,o){const a=Ge("NodeIcon"),l=Ge("legendLevelSvg"),c=Ge("force-graph-svg-icon");return R(),V("div",{ref:"legend-box",class:Z(["legend-box",{"legend-close":s.fold}])},[G("div",JK,[n.moduleDetail?(R(),V("div",YK,[(R(!0),V(qe,null,Nt(n.moduleDetail.nodes,u=>(R(),V("div",{key:u.name,class:Z(["out-box node-color-1",o.canHighlight(u.name)?"":"disabled"]),onClick:d=>o.highlightByRule(d,"equal","type",u.name)},[G("p",{class:"label",style:Ze({margin:n.margin})},[ne(a,{"node-info":{type:u.name}},null,8,["node-info"]),G("span",ZK,Ne(u.namec),1)],4)],10,XK))),128)),G("div",{class:"out-box node-color-1",onClick:t[0]||(t[0]=u=>o.highlightByRule(u,"equal","type","nodeType"))},[G("p",{class:"label",style:Ze({margin:n.margin})},[G("img",{src:e.imgPath["./public/d3svg1/node_type.svg"],alt:""},null,8,QK),t[2]||(t[2]=G("span",{class:"name"},"关系",-1))],4)])])):se("",!0),n.showPoint?(R(),V("div",eJ,[(R(!0),V(qe,null,Nt(s.filters.point,u=>(R(),V("div",{key:u.prop,class:"out-box",onClick:d=>o.highlightByRule(d,"boolean",u.prop,u.value)},[G("p",{class:"label",style:Ze({margin:n.margin})},Ne(u.name),5)],8,tJ))),128))])):se("",!0),n.hasLevel?(R(),V("div",nJ,[(R(!0),V(qe,null,Nt(o.levelList,u=>(R(),V("div",{key:u.level,class:Z(["out-box",`${s.legendLevelPrefix}${u.className}`]),onClick:d=>o.highlightByRule(d,"equal","detail.info.basic.level",u.level)},[G("p",{class:"label",style:Ze({margin:n.margin})},[u.iconType==="dot"?(R(),V("span",rJ)):(R(),_e(l,{key:1,class:"legend-level-icon"})),Je(" "+Ne(u.levelName)+" ",1),n.showLevelCount?(R(),V("span",sJ,"("+Ne(o.levelCount[u.level])+")",1)):se("",!0)],4)],10,iJ))),128))])):se("",!0),G("div",{class:"fold-btn",onClick:t[1]||(t[1]=(...u)=>o.handleFold&&o.handleFold(...u))},[s.fold?(R(),_e(c,{key:0,class:"button-img","icon-class":e.imgPath["./public/d3svg1/fold-right.svg"]},null,8,["icon-class"])):(R(),_e(c,{key:1,class:"button-img","icon-class":e.imgPath["./public/d3svg1/fold-left.svg"]},null,8,["icon-class"]))])])],2)}const aJ=un(KK,[["render",oJ],["__scopeId","data-v-5e1ba822"]]),age="",lJ={key:0,class:"node-control-panel"},cJ={key:0},uJ=["onClick"],dJ=["src"],fJ={class:"node-control-panel-name"},hJ={__name:"NodeVisibleControl",props:{moduleDetail:{type:Object,default:()=>({})},history:{type:Object,default:()=>({})},startNode:{type:Array},customNodeImages:{type:Object,default:()=>{}}},setup(e){const t=e,n=ie({}),r=W(()=>t.startNode.map(c=>c.type)),s=W(()=>{var c,u;return((u=(c=t.moduleDetail)==null?void 0:c.nodes)==null?void 0:u.filter(d=>!!(l(d.name)&&!r.value.includes(d.name))))||[]}),o=()=>{var c,u;(u=(c=t.moduleDetail)==null?void 0:c.nodes)==null||u.forEach(d=>{if(l(d.name))return n.value[d.name]=!0,!0})},a=c=>{n.value[c]=!n.value[c];const u=t.history.dataNow.nodes.filter(d=>d.type===c);Ye(bt,"buttonClick",{nodes:u,api:{name:n.value[c]?"show_nodes":"hide_nodes"}})},l=c=>t.history.dataNow.nodes.some(u=>u.type===c);return ze(()=>t.history.dataNow.nodes.length,()=>{o()},{deep:!0,immediate:!0}),(c,u)=>s.value.length?(R(),V("div",lJ,[e.moduleDetail?(R(),V("div",cJ,[(R(!0),V(qe,null,Nt(s.value,d=>(R(),V("div",{key:d.name,class:Z(["node-control-panel-item",{disabled:!l(d.name),"hidden-node":!n.value[d.name]}]),onClick:f=>a(d.name)},[e.customNodeImages[d.name]?(R(),V("img",{key:0,src:e.customNodeImages[d.name],alt:"",class:"node-control-panel-img"},null,8,dJ)):(R(),_e(Qc,{key:1,class:"node-control-panel-img","node-info":{type:d.name}},null,8,["node-info"])),G("span",fJ,Ne(d.namec),1)],10,uJ))),128))])):se("",!0)])):se("",!0)}},lge="",cge="",uge="",dge="",fge="",hge="",pge="",gge="",mge="",vge="",bge="",pJ={},gJ={class:"search-icon",width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function mJ(e,t){return R(),V("svg",gJ,t[0]||(t[0]=[T2('<title>放大镜</title><g id="控件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="基础输入框" transform="translate(-176.000000, -8.000000)"><g id="编组" transform="translate(176.000000, 8.000000)"><polygon id="蒙版" opacity="0.200000003" points="0 0 16 0 16 16 0 16"></polygon><path id="形状结合" d="M6.85714286,1.24344979e-14 C10.6442383,1.24344979e-14 13.7142857,3.07004743 13.7142857,6.85714286 C13.7142857,8.54517828 13.1043337,10.0907518 12.0928056,11.2854873 L15.8326324,15.0245104 L15.0245104,15.8326324 L15.0245104,15.8326324 L11.2854873,12.0928056 C10.0907518,13.1043337 8.54517828,13.7142857 6.85714286,13.7142857 C3.07004743,13.7142857 -3.11395354e-12,10.6442383 -3.11395354e-12,6.85714286 C-3.11395354e-12,3.07004743 3.07004743,1.24344979e-14 6.85714286,1.24344979e-14 Z M6.85714286,1.14285714 C3.70123,1.14285714 1.14285714,3.70123 1.14285714,6.85714286 C1.14285714,10.0130557 3.70123,12.5714286 6.85714286,12.5714286 C10.0130557,12.5714286 12.5714286,10.0130557 12.5714286,6.85714286 C12.5714286,3.70123 10.0130557,1.14285714 6.85714286,1.14285714 Z" fill="#999999" fill-rule="nonzero"></path></g></g></g>',2)]))}const vJ=un(pJ,[["render",mJ]]),yge="",_ge="";function D8(e){return e.toLowerCase().indexOf("ip:")===0&&(e=e.substr(3)),/^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(e)}function L8(e){return e.toLowerCase().indexOf("domain:")===0&&(e=e.substr(7)),/^[a-zA-Z0-9_][-a-zA-Z0-9_]{0,62}(\.[a-zA-Z0-9_][-a-zA-Z0-9_]{0,62})+\.?$/.test(e)}function k8(e){return e.toLowerCase().indexOf("url:")===0&&(e=e.substr(4)),/^https?:\/\/[^\s<]+[^<.,:;"')\]\s]$/g.test(e)}function rv(e){return/^([a-fA-F0-9]{32})$/.test(e)}function bJ(e){return/^([a-fA-F0-9]{40})$/.test(e)}function yJ(e){return/^\w{32}$/.test(e)}function _J(e){return/^(cve|CVE)-[0-9]{4}-[0-9]{4,5}$/.test(e)}function wJ(e){return/^\w+(\.\w+)*@\w+(\.\w+)*(\.[a-z]{2,})$/.test(e)}const wge="",Cge="",CJ={props:{nodesType:{type:Array,default:()=>[]},addType:{type:String,default:"diy"}},inject:["moduleDetail"],data(){var e=(t,n,r)=>{switch(n=n.toLowerCase().split(`
|
|
121
|
-
`),this.formInline.type){case"ip":n.map(s=>{D8(s)?r():r(new Error("请输入正确格式的内容"))});break;case"domain":n.map(s=>{L8(s)?r():r(new Error("请输入正确格式的内容"))});break;case"url":n.map(s=>{k8(s)?r():r(new Error("请输入正确格式的内容"))});break;case"md5":n.map(s=>{rv(s)?r():r(new Error("请输入正确格式的内容"))});break;case"report":n.map(s=>{!yJ(s)&&this.module.module.name==="md5graph"?r(new Error("请输入正确格式的内容")):r()});break;case"thumbprint_md5":n.map(s=>{rv(s)?r():r(new Error("请输入正确格式的内容"))});break;case"cert_https":n.map(s=>{bJ(s)?r():r(new Error("请输入正确格式的内容"))});break;case"vul":n.map(s=>{_J(s)?r():r(new Error("请输入正确格式的内容"))});break;case"email":n.map(s=>{wJ(s)?r():r(new Error("请输入正确格式的内容"))});break;default:r();break}};return{dialogFormVisible:!1,connectNode:null,formInline:{inputValues:"",type:""},rules:{inputValues:[{validator:e,trigger:"blur"}]}}},computed:{module(){return this.moduleDetail()},disableSearch(){return this.formInline.inputValues===""||this.formInline.type===""||this.formInline.type==="nodeType"},disableSearchDiy(){return this.formInline.inputValues===""||this.formInline.type===""},title(){let e="";switch(this.addType){case"diy":e="新增节点";break;case"moreDiy":e="批量自主添加";break;default:e="检索添加"}return e},nodesTypeAll(){return this.addType==="diy"&&!this.connectNode?[...this.nodesType,{name:"nodeType",namec:"关系节点"}]:this.addType==="diy"&&this.connectNode.type==="nodeType"?this.nodesType:this.addType==="diy"&&this.connectNode.type!=="nodeType"?[{name:"nodeType",namec:"关系节点"}]:this.nodesType},placeholder(){var n;let e="",t="";switch((n=this.nodesType)==null||n.map(r=>{r.name===this.formInline.type&&(t=r.namec)}),this.formInline.type){case"":e="请选择节点类型";break;case"report":e=this.module.module.name==="md5graph"?"请输入"+t+",32位字母+数字":"请输入"+t;break;case"vul":e="例如:cve-xxxx-xxxxx";break;default:e="请输入"+t;break}return e}},methods:{show(e){this.connectNode=null,this.formInline.inputValues="",this.formInline.type="",this.dialogFormVisible=!0,this.connectNode=e},hide(){this.dialogFormVisible=!1,this.$refs.form.resetFields()},handleSearch(e="search"){this.$refs.form.validate(t=>{if(t){const n=this.formInline.inputValues.split(`
|
|
122
|
-
`);n.map(r=>{if(r!==""){const s={type:this.formInline.type,id:this.formInline.type==="nodeType"?r+new Date().getTime():r,name:r};Ye(this,"addNodes",{node:s,type:e,connectNode:this.connectNode})}}),setTimeout(()=>{this.$parent.$parent.handleTableSelect(n)},500),this.hide()}})}},emits:["addNodes"]},SJ={class:"dialog-footer"};function EJ(e,t,n,r,s,o){const a=Sf,l=Cf,c=zm,u=Go,d=Vm,f=Ko,h=Kc;return R(),_e(h,{title:o.title,modelValue:s.dialogFormVisible,"onUpdate:modelValue":t[4]||(t[4]=g=>s.dialogFormVisible=g),"append-to-body":"",class:"add-node-dialog el-dialog-graph"},{footer:te(()=>[G("div",SJ,[ne(f,{onClick:o.hide},{default:te(()=>t[5]||(t[5]=[Je("取 消")])),_:1},8,["onClick"]),ne(f,{class:"search-button",type:"primary",disabled:o.disableSearch,onClick:o.handleSearch},{default:te(()=>t[6]||(t[6]=[Je(" 添加并拓线 ")])),_:1},8,["disabled","onClick"]),ne(f,{class:"search-button",type:"primary",disabled:o.disableSearchDiy,onClick:t[3]||(t[3]=g=>o.handleSearch("diy"))},{default:te(()=>t[7]||(t[7]=[Je(" 添加单节点 ")])),_:1},8,["disabled"])])]),default:te(()=>[ne(d,{ref:"form",inline:!0,rules:s.rules,model:s.formInline,class:"demo-form-inline"},{default:te(()=>[ne(c,{label:"类型",prop:"type"},{default:te(()=>[ne(l,{modelValue:s.formInline.type,"onUpdate:modelValue":t[0]||(t[0]=g=>s.formInline.type=g),class:"type-item"},{default:te(()=>[(R(!0),V(qe,null,Nt(o.nodesTypeAll,g=>(R(),_e(a,{key:g.value,label:g.namec,value:g.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),ne(c,{label:"内容",prop:"inputValues"},{default:te(()=>[n.addType==="moreDiy"?(R(),_e(u,{key:0,modelValue:s.formInline.inputValues,"onUpdate:modelValue":t[1]||(t[1]=g=>s.formInline.inputValues=g),type:"textarea",class:"search-content value-item",rows:5,placeholder:o.placeholder},null,8,["modelValue","placeholder"])):(R(),_e(u,{key:1,modelValue:s.formInline.inputValues,"onUpdate:modelValue":t[2]||(t[2]=g=>s.formInline.inputValues=g),class:"search-content value-item",rows:5,placeholder:o.placeholder},null,8,["modelValue","placeholder"]))]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["title","modelValue"])}const xJ=un(CJ,[["render",EJ],["__scopeId","data-v-241e07b0"]]),Sge="",Ege="",AJ={props:{nodesType:{type:Array,default:()=>[]},addType:{type:String,default:"diy"}},data(){var e=(t,n,r)=>{switch(n=n.toLowerCase(),this.formInline.type){case"ip":D8(n)?r():r(new Error("请输入正确格式的内容"));break;case"domain":L8(n)?r():r(new Error("请输入正确格式的内容"));break;case"url":k8(n)?r():r(new Error("请输入正确格式的内容"));break;default:rv(n)?r():r(new Error("请输入正确格式的内容"));break}};return{dialogFormVisible:!1,connectNode:null,formInline:{inputValues:"",type:""},rules:{inputValues:[{validator:e,trigger:"blur"}]}}},computed:{disableSearch(){return this.formInline.inputValues===""||this.formInline.type===""},title(){return"添加关联"}},methods:{show(e){this.connectNode=null,this.formInline.inputValues="",this.formInline.type="",this.dialogFormVisible=!0,this.connectNode=e},hide(){this.dialogFormVisible=!1},handleSearch(e="search"){this.$refs.form.validate(t=>{if(t){const n=this.formInline.inputValues.toLowerCase(),r={type:this.formInline.type,id:n,name:n};Ye(this,"addNodes",{node:r,type:e,connectNode:this.connectNode}),this.hide()}})}},emits:["addNodes"]},PJ={class:"dialog-footer"};function TJ(e,t,n,r,s,o){const a=Sf,l=Cf,c=zm,u=Go,d=Vm,f=Ko,h=Kc;return R(),_e(h,{title:o.title,modelValue:s.dialogFormVisible,"onUpdate:modelValue":t[4]||(t[4]=g=>s.dialogFormVisible=g),class:"add-node-dialog el-dialog-graph"},{footer:te(()=>[G("div",PJ,[ne(f,{onClick:t[2]||(t[2]=g=>s.dialogFormVisible=!1)},{default:te(()=>t[5]||(t[5]=[Je("取 消")])),_:1}),n.addType==="search"?(R(),_e(f,{key:0,class:"search-button",type:"primary",disabled:o.disableSearch,size:"mini",onClick:o.handleSearch},{default:te(()=>t[6]||(t[6]=[Je(" 查询 ")])),_:1},8,["disabled","onClick"])):(R(),_e(f,{key:1,class:"search-button",type:"primary",disabled:o.disableSearch,size:"mini",onClick:t[3]||(t[3]=g=>o.handleSearch("diy"))},{default:te(()=>t[7]||(t[7]=[Je(" 自定义添加 ")])),_:1},8,["disabled"]))])]),default:te(()=>[ne(d,{ref:"form",inline:!0,rules:s.rules,model:s.formInline,class:"demo-form-inline"},{default:te(()=>[ne(c,{label:"类型",prop:"type"},{default:te(()=>[ne(l,{modelValue:s.formInline.type,"onUpdate:modelValue":t[0]||(t[0]=g=>s.formInline.type=g),class:"type-item"},{default:te(()=>[(R(!0),V(qe,null,Nt(n.nodesType,g=>(R(),_e(a,{key:g.value,label:g.namec,value:g.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),ne(c,{label:"内容",prop:"inputValues"},{default:te(()=>[ne(u,{modelValue:s.formInline.inputValues,"onUpdate:modelValue":t[1]||(t[1]=g=>s.formInline.inputValues=g),class:"search-content value-item",rows:5,placeholder:"请输入查询内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["title","modelValue"])}const OJ=un(AJ,[["render",TJ],["__scopeId","data-v-fcdd864d"]]),xge="",NJ={name:"Intro",components:{QuestionFilled:G3},mixins:[],props:{config:{type:Object,default:()=>{}}},data(){return{ctrlKey:rl()?"command":"Ctrl",shiftKey:rl()?"⇧":"Shift",altKey:"Alt",system:["修改备注 - 即给该节点新增自定义备注","复制 - 复制节点名称","解除固定/固定节点 - 切换节点状态,控制节点自动排布或者位置不动","收藏/取消收藏 - 切换节点收藏状态,收藏后会有红色点在节点上方","显示/隐藏名称 - 节点下方显示/隐藏名称 ","显示/隐藏备注 - 节点下方显示/隐藏备注 ","单边子顶点聚合 - 将无孙子节点的子节点收起,形成一个聚合节点","聚合顶点释放 - 将已聚合的顶点释放"],rightList:["点击眼睛开关按钮可以显示隐藏该条数据","点击折叠按钮可以折叠下方所属列表","点击关联列表里面每一个子节点名字可以选中该节点","在右侧搜素框内可以搜索对应的子节点","点击右侧关联列表上方蓝色关系名称可以进行拓线操作"]}},computed:{keyCodes(){return rl()?[{key:"双击节点,可拓线该节点所有关联数据",val:""},{key:"添加关系线",val:this.ctrlKey+" + 节点拖动",tips:"节点和关系节点间"},{key:"多选节点",val:this.shiftKey+" + 节点点击"},{key:"矩形多选",val:this.altKey+" + 鼠标圈定"},{key:"撤销",val:this.ctrlKey+" + z"},{key:"恢复",val:this.ctrlKey+" + "+this.shiftKey+" + z"}]:[{key:"双击节点,可拓线该节点所有关联数据",val:""},{key:"添加关系线",val:this.ctrlKey+" + 节点拖动",tips:"节点和关系节点间"},{key:"多选节点",val:this.shiftKey+" + 节点点击"},{key:"矩形多选",val:this.altKey+" + 鼠标圈定"},{key:"撤销",val:this.ctrlKey+" + z"},{key:"恢复",val:this.ctrlKey+" + y"}]}},watch:{config:{handler:function(e,t){this.addGoDetail()},deep:!0,immediate:!0}},created(){},mounted(){},updated(){},beforeUnmount(){},methods:{addGoDetail(){var e;(e=this.config)!=null&&e.jumpDetail&&this.system.push("详情页查看 - 打开对应的详情页查看详细内容")}}},IJ={class:"intro-container"},RJ={class:"key"},DJ={class:"val"};function LJ(e,t,n,r,s,o){const a=Ge("QuestionFilled"),l=jt,c=fi;return R(),V("div",IJ,[t[0]||(t[0]=G("p",{class:"title"},"快捷操作",-1)),t[1]||(t[1]=G("p",{class:"line"},null,-1)),(R(!0),V(qe,null,Nt(o.keyCodes,(u,d)=>(R(),V("p",{key:d},[G("span",RJ,Ne(u.key),1),G("span",DJ,[Je(Ne(u.val)+" ",1),u.tips?(R(),_e(c,{key:0,content:u.tips,"popper-class":"el-tooltip-gray",placement:"top"},{default:te(()=>[ne(l,null,{default:te(()=>[ne(a)]),_:1})]),_:2},1032,["content"])):se("",!0)])]))),128))])}const kJ=un(NJ,[["render",LJ]]);var sv={exports:{}};(function(e,t){(function(n,r){r(t)})(Ks,function(n){var r;function s(){}s.prototype=Object.create(null);function o(){o.init.call(this)}o.EventEmitter=o,o.usingDomains=!1,o.prototype.domain=void 0,o.prototype._events=void 0,o.prototype._maxListeners=void 0,o.defaultMaxListeners=10,o.init=function(){this.domain=null,o.usingDomains&&r.active,(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new s,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(p){if(typeof p!="number"||p<0||isNaN(p))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=p,this};function a(m){return m._maxListeners===void 0?o.defaultMaxListeners:m._maxListeners}o.prototype.getMaxListeners=function(){return a(this)};function l(m,p,b){if(p)m.call(b);else for(var E=m.length,T=w(m,E),L=0;L<E;++L)T[L].call(b)}function c(m,p,b,E){if(p)m.call(b,E);else for(var T=m.length,L=w(m,T),M=0;M<T;++M)L[M].call(b,E)}function u(m,p,b,E,T){if(p)m.call(b,E,T);else for(var L=m.length,M=w(m,L),ue=0;ue<L;++ue)M[ue].call(b,E,T)}function d(m,p,b,E,T,L){if(p)m.call(b,E,T,L);else for(var M=m.length,ue=w(m,M),Se=0;Se<M;++Se)ue[Se].call(b,E,T,L)}function f(m,p,b,E){if(p)m.apply(b,E);else for(var T=m.length,L=w(m,T),M=0;M<T;++M)L[M].apply(b,E)}o.prototype.emit=function(p){var b,E,T,L,M,ue,Se,Ue=p==="error";if(ue=this._events,ue)Ue=Ue&&ue.error==null;else if(!Ue)return!1;if(Se=this.domain,Ue){if(b=arguments[1],Se)b||(b=new Error('Uncaught, unspecified "error" event')),b.domainEmitter=this,b.domain=Se,b.domainThrown=!1,Se.emit("error",b);else{if(b instanceof Error)throw b;var We=new Error('Uncaught, unspecified "error" event. ('+b+")");throw We.context=b,We}return!1}if(E=ue[p],!E)return!1;var tt=typeof E=="function";switch(T=arguments.length,T){case 1:l(E,tt,this);break;case 2:c(E,tt,this,arguments[1]);break;case 3:u(E,tt,this,arguments[1],arguments[2]);break;case 4:d(E,tt,this,arguments[1],arguments[2],arguments[3]);break;default:for(L=new Array(T-1),M=1;M<T;M++)L[M-1]=arguments[M];f(E,tt,this,L)}return!0};function h(m,p,b,E){var T,L,M;if(typeof b!="function")throw new TypeError('"listener" argument must be a function');if(L=m._events,L?(L.newListener&&(m.emit("newListener",p,b.listener?b.listener:b),L=m._events),M=L[p]):(L=m._events=new s,m._eventsCount=0),!M)M=L[p]=b,++m._eventsCount;else if(typeof M=="function"?M=L[p]=E?[b,M]:[M,b]:E?M.unshift(b):M.push(b),!M.warned&&(T=a(m),T&&T>0&&M.length>T)){M.warned=!0;var ue=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+p+" listeners added. Use emitter.setMaxListeners() to increase limit");ue.name="MaxListenersExceededWarning",ue.emitter=m,ue.type=p,ue.count=M.length,g(ue)}return m}function g(m){typeof console.warn=="function"?console.warn(m):console.log(m)}o.prototype.addListener=function(p,b){return h(this,p,b,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(p,b){return h(this,p,b,!0)};function v(m,p,b){var E=!1;function T(){m.removeListener(p,T),E||(E=!0,b.apply(m,arguments))}return T.listener=b,T}o.prototype.once=function(p,b){if(typeof b!="function")throw new TypeError('"listener" argument must be a function');return this.on(p,v(this,p,b)),this},o.prototype.prependOnceListener=function(p,b){if(typeof b!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(p,v(this,p,b)),this},o.prototype.removeListener=function(p,b){var E,T,L,M,ue;if(typeof b!="function")throw new TypeError('"listener" argument must be a function');if(T=this._events,!T)return this;if(E=T[p],!E)return this;if(E===b||E.listener&&E.listener===b)--this._eventsCount===0?this._events=new s:(delete T[p],T.removeListener&&this.emit("removeListener",p,E.listener||b));else if(typeof E!="function"){for(L=-1,M=E.length;M-- >0;)if(E[M]===b||E[M].listener&&E[M].listener===b){ue=E[M].listener,L=M;break}if(L<0)return this;if(E.length===1){if(E[0]=void 0,--this._eventsCount===0)return this._events=new s,this;delete T[p]}else _(E,L);T.removeListener&&this.emit("removeListener",p,ue||b)}return this},o.prototype.removeAllListeners=function(p){var b,E;if(E=this._events,!E)return this;if(!E.removeListener)return arguments.length===0?(this._events=new s,this._eventsCount=0):E[p]&&(--this._eventsCount===0?this._events=new s:delete E[p]),this;if(arguments.length===0){for(var T=Object.keys(E),L=0,M;L<T.length;++L)M=T[L],M!=="removeListener"&&this.removeAllListeners(M);return this.removeAllListeners("removeListener"),this._events=new s,this._eventsCount=0,this}if(b=E[p],typeof b=="function")this.removeListener(p,b);else if(b)do this.removeListener(p,b[b.length-1]);while(b[0]);return this},o.prototype.listeners=function(p){var b,E,T=this._events;return T?(b=T[p],b?typeof b=="function"?E=[b.listener||b]:E=A(b):E=[]):E=[],E},o.listenerCount=function(m,p){return typeof m.listenerCount=="function"?m.listenerCount(p):y.call(m,p)},o.prototype.listenerCount=y;function y(m){var p=this._events;if(p){var b=p[m];if(typeof b=="function")return 1;if(b)return b.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function _(m,p){for(var b=p,E=b+1,T=m.length;E<T;b+=1,E+=1)m[b]=m[E];m.pop()}function w(m,p){for(var b=new Array(p);p--;)b[p]=m[p];return b}function A(m){for(var p=new Array(m.length),b=0;b<p.length;++b)p[b]=m[b].listener||m[b];return p}var C=typeof Ks!="undefined"?Ks:typeof self!="undefined"?self:typeof window!="undefined"?window:{},S=[],x=[],O=typeof Uint8Array!="undefined"?Uint8Array:Array,N=!1;function I(){N=!0;for(var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,b=m.length;p<b;++p)S[p]=m[p],x[m.charCodeAt(p)]=p;x["-".charCodeAt(0)]=62,x["_".charCodeAt(0)]=63}function F(m){N||I();var p,b,E,T,L,M,ue=m.length;if(ue%4>0)throw new Error("Invalid string. Length must be a multiple of 4");L=m[ue-2]==="="?2:m[ue-1]==="="?1:0,M=new O(ue*3/4-L),E=L>0?ue-4:ue;var Se=0;for(p=0,b=0;p<E;p+=4,b+=3)T=x[m.charCodeAt(p)]<<18|x[m.charCodeAt(p+1)]<<12|x[m.charCodeAt(p+2)]<<6|x[m.charCodeAt(p+3)],M[Se++]=T>>16&255,M[Se++]=T>>8&255,M[Se++]=T&255;return L===2?(T=x[m.charCodeAt(p)]<<2|x[m.charCodeAt(p+1)]>>4,M[Se++]=T&255):L===1&&(T=x[m.charCodeAt(p)]<<10|x[m.charCodeAt(p+1)]<<4|x[m.charCodeAt(p+2)]>>2,M[Se++]=T>>8&255,M[Se++]=T&255),M}function D(m){return S[m>>18&63]+S[m>>12&63]+S[m>>6&63]+S[m&63]}function k(m,p,b){for(var E,T=[],L=p;L<b;L+=3)E=(m[L]<<16)+(m[L+1]<<8)+m[L+2],T.push(D(E));return T.join("")}function q(m){N||I();for(var p,b=m.length,E=b%3,T="",L=[],M=16383,ue=0,Se=b-E;ue<Se;ue+=M)L.push(k(m,ue,ue+M>Se?Se:ue+M));return E===1?(p=m[b-1],T+=S[p>>2],T+=S[p<<4&63],T+="=="):E===2&&(p=(m[b-2]<<8)+m[b-1],T+=S[p>>10],T+=S[p>>4&63],T+=S[p<<2&63],T+="="),L.push(T),L.join("")}function H(m,p,b,E,T){var L,M,ue=T*8-E-1,Se=(1<<ue)-1,Ue=Se>>1,We=-7,tt=b?T-1:0,Xt=b?-1:1,$t=m[p+tt];for(tt+=Xt,L=$t&(1<<-We)-1,$t>>=-We,We+=ue;We>0;L=L*256+m[p+tt],tt+=Xt,We-=8);for(M=L&(1<<-We)-1,L>>=-We,We+=E;We>0;M=M*256+m[p+tt],tt+=Xt,We-=8);if(L===0)L=1-Ue;else{if(L===Se)return M?NaN:($t?-1:1)*(1/0);M=M+Math.pow(2,E),L=L-Ue}return($t?-1:1)*M*Math.pow(2,L-E)}function oe(m,p,b,E,T,L){var M,ue,Se,Ue=L*8-T-1,We=(1<<Ue)-1,tt=We>>1,Xt=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,$t=E?0:L-1,qr=E?1:-1,Ju=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(ue=isNaN(p)?1:0,M=We):(M=Math.floor(Math.log(p)/Math.LN2),p*(Se=Math.pow(2,-M))<1&&(M--,Se*=2),M+tt>=1?p+=Xt/Se:p+=Xt*Math.pow(2,1-tt),p*Se>=2&&(M++,Se/=2),M+tt>=We?(ue=0,M=We):M+tt>=1?(ue=(p*Se-1)*Math.pow(2,T),M=M+tt):(ue=p*Math.pow(2,tt-1)*Math.pow(2,T),M=0));T>=8;m[b+$t]=ue&255,$t+=qr,ue/=256,T-=8);for(M=M<<T|ue,Ue+=T;Ue>0;m[b+$t]=M&255,$t+=qr,M/=256,Ue-=8);m[b+$t-qr]|=Ju*128}var ce={}.toString,U=Array.isArray||function(m){return ce.call(m)=="[object Array]"},Y=50;B.TYPED_ARRAY_SUPPORT=C.TYPED_ARRAY_SUPPORT!==void 0?C.TYPED_ARRAY_SUPPORT:!0;function K(){return B.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ee(m,p){if(K()<p)throw new RangeError("Invalid typed array length");return B.TYPED_ARRAY_SUPPORT?(m=new Uint8Array(p),m.__proto__=B.prototype):(m===null&&(m=new B(p)),m.length=p),m}function B(m,p,b){if(!B.TYPED_ARRAY_SUPPORT&&!(this instanceof B))return new B(m,p,b);if(typeof m=="number"){if(typeof p=="string")throw new Error("If encoding is specified then the first argument must be a string");return le(this,m)}return Ee(this,m,p,b)}B.poolSize=8192,B._augment=function(m){return m.__proto__=B.prototype,m};function Ee(m,p,b,E){if(typeof p=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&p instanceof ArrayBuffer?z(m,p,b,E):typeof p=="string"?Ce(m,p,b):X(m,p)}B.from=function(m,p,b){return Ee(null,m,p,b)},B.TYPED_ARRAY_SUPPORT&&(B.prototype.__proto__=Uint8Array.prototype,B.__proto__=Uint8Array);function me(m){if(typeof m!="number")throw new TypeError('"size" argument must be a number');if(m<0)throw new RangeError('"size" argument must not be negative')}function re(m,p,b,E){return me(p),p<=0?ee(m,p):b!==void 0?typeof E=="string"?ee(m,p).fill(b,E):ee(m,p).fill(b):ee(m,p)}B.alloc=function(m,p,b){return re(null,m,p,b)};function le(m,p){if(me(p),m=ee(m,p<0?0:fe(p)|0),!B.TYPED_ARRAY_SUPPORT)for(var b=0;b<p;++b)m[b]=0;return m}B.allocUnsafe=function(m){return le(null,m)},B.allocUnsafeSlow=function(m){return le(null,m)};function Ce(m,p,b){if((typeof b!="string"||b==="")&&(b="utf8"),!B.isEncoding(b))throw new TypeError('"encoding" must be a valid string encoding');var E=Le(p,b)|0;m=ee(m,E);var T=m.write(p,b);return T!==E&&(m=m.slice(0,T)),m}function ye(m,p){var b=p.length<0?0:fe(p.length)|0;m=ee(m,b);for(var E=0;E<b;E+=1)m[E]=p[E]&255;return m}function z(m,p,b,E){if(p.byteLength,b<0||p.byteLength<b)throw new RangeError("'offset' is out of bounds");if(p.byteLength<b+(E||0))throw new RangeError("'length' is out of bounds");return b===void 0&&E===void 0?p=new Uint8Array(p):E===void 0?p=new Uint8Array(p,b):p=new Uint8Array(p,b,E),B.TYPED_ARRAY_SUPPORT?(m=p,m.__proto__=B.prototype):m=ye(m,p),m}function X(m,p){if(Re(p)){var b=fe(p.length)|0;return m=ee(m,b),m.length===0||p.copy(m,0,0,b),m}if(p){if(typeof ArrayBuffer!="undefined"&&p.buffer instanceof ArrayBuffer||"length"in p)return typeof p.length!="number"||my(p.length)?ee(m,0):ye(m,p);if(p.type==="Buffer"&&U(p.data))return ye(m,p.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function fe(m){if(m>=K())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K().toString(16)+" bytes");return m|0}B.isBuffer=Ep;function Re(m){return!!(m!=null&&m._isBuffer)}B.compare=function(p,b){if(!Re(p)||!Re(b))throw new TypeError("Arguments must be Buffers");if(p===b)return 0;for(var E=p.length,T=b.length,L=0,M=Math.min(E,T);L<M;++L)if(p[L]!==b[L]){E=p[L],T=b[L];break}return E<T?-1:T<E?1:0},B.isEncoding=function(p){switch(String(p).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},B.concat=function(p,b){if(!U(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return B.alloc(0);var E;if(b===void 0)for(b=0,E=0;E<p.length;++E)b+=p[E].length;var T=B.allocUnsafe(b),L=0;for(E=0;E<p.length;++E){var M=p[E];if(!Re(M))throw new TypeError('"list" argument must be an Array of Buffers');M.copy(T,L),L+=M.length}return T};function Le(m,p){if(Re(m))return m.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(m)||m instanceof ArrayBuffer))return m.byteLength;typeof m!="string"&&(m=""+m);var b=m.length;if(b===0)return 0;for(var E=!1;;)switch(p){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":case void 0:return Vi(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return Sp(m).length;default:if(E)return Vi(m).length;p=(""+p).toLowerCase(),E=!0}}B.byteLength=Le;function Ke(m,p,b){var E=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,p>>>=0,b<=p))return"";for(m||(m="utf8");;)switch(m){case"hex":return wt(this,p,b);case"utf8":case"utf-8":return $e(this,p,b);case"ascii":return Ve(this,p,b);case"latin1":case"binary":return Qe(this,p,b);case"base64":return ve(this,p,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Tt(this,p,b);default:if(E)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),E=!0}}B.prototype._isBuffer=!0;function j(m,p,b){var E=m[p];m[p]=m[b],m[b]=E}B.prototype.swap16=function(){var p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var b=0;b<p;b+=2)j(this,b,b+1);return this},B.prototype.swap32=function(){var p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var b=0;b<p;b+=4)j(this,b,b+3),j(this,b+1,b+2);return this},B.prototype.swap64=function(){var p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var b=0;b<p;b+=8)j(this,b,b+7),j(this,b+1,b+6),j(this,b+2,b+5),j(this,b+3,b+4);return this},B.prototype.toString=function(){var p=this.length|0;return p===0?"":arguments.length===0?$e(this,0,p):Ke.apply(this,arguments)},B.prototype.equals=function(p){if(!Re(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:B.compare(this,p)===0},B.prototype.inspect=function(){var p="",b=Y;return this.length>0&&(p=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(p+=" ... ")),"<Buffer "+p+">"},B.prototype.compare=function(p,b,E,T,L){if(!Re(p))throw new TypeError("Argument must be a Buffer");if(b===void 0&&(b=0),E===void 0&&(E=p?p.length:0),T===void 0&&(T=0),L===void 0&&(L=this.length),b<0||E>p.length||T<0||L>this.length)throw new RangeError("out of range index");if(T>=L&&b>=E)return 0;if(T>=L)return-1;if(b>=E)return 1;if(b>>>=0,E>>>=0,T>>>=0,L>>>=0,this===p)return 0;for(var M=L-T,ue=E-b,Se=Math.min(M,ue),Ue=this.slice(T,L),We=p.slice(b,E),tt=0;tt<Se;++tt)if(Ue[tt]!==We[tt]){M=Ue[tt],ue=We[tt];break}return M<ue?-1:ue<M?1:0};function J(m,p,b,E,T){if(m.length===0)return-1;if(typeof b=="string"?(E=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,isNaN(b)&&(b=T?0:m.length-1),b<0&&(b=m.length+b),b>=m.length){if(T)return-1;b=m.length-1}else if(b<0)if(T)b=0;else return-1;if(typeof p=="string"&&(p=B.from(p,E)),Re(p))return p.length===0?-1:ae(m,p,b,E,T);if(typeof p=="number")return p=p&255,B.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?T?Uint8Array.prototype.indexOf.call(m,p,b):Uint8Array.prototype.lastIndexOf.call(m,p,b):ae(m,[p],b,E,T);throw new TypeError("val must be string, number or Buffer")}function ae(m,p,b,E,T){var L=1,M=m.length,ue=p.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(m.length<2||p.length<2)return-1;L=2,M/=2,ue/=2,b/=2}function Se($t,qr){return L===1?$t[qr]:$t.readUInt16BE(qr*L)}var Ue;if(T){var We=-1;for(Ue=b;Ue<M;Ue++)if(Se(m,Ue)===Se(p,We===-1?0:Ue-We)){if(We===-1&&(We=Ue),Ue-We+1===ue)return We*L}else We!==-1&&(Ue-=Ue-We),We=-1}else for(b+ue>M&&(b=M-ue),Ue=b;Ue>=0;Ue--){for(var tt=!0,Xt=0;Xt<ue;Xt++)if(Se(m,Ue+Xt)!==Se(p,Xt)){tt=!1;break}if(tt)return Ue}return-1}B.prototype.includes=function(p,b,E){return this.indexOf(p,b,E)!==-1},B.prototype.indexOf=function(p,b,E){return J(this,p,b,E,!0)},B.prototype.lastIndexOf=function(p,b,E){return J(this,p,b,E,!1)};function xe(m,p,b,E){b=Number(b)||0;var T=m.length-b;E?(E=Number(E),E>T&&(E=T)):E=T;var L=p.length;if(L%2!==0)throw new TypeError("Invalid hex string");E>L/2&&(E=L/2);for(var M=0;M<E;++M){var ue=parseInt(p.substr(M*2,2),16);if(isNaN(ue))return M;m[b+M]=ue}return M}function de(m,p,b,E){return Vl(Vi(p,m.length-b),m,b,E)}function pe(m,p,b,E){return Vl(_i(p),m,b,E)}function we(m,p,b,E){return pe(m,p,b,E)}function Ae(m,p,b,E){return Vl(Sp(p),m,b,E)}function Te(m,p,b,E){return Vl(po(p,m.length-b),m,b,E)}B.prototype.write=function(p,b,E,T){if(b===void 0)T="utf8",E=this.length,b=0;else if(E===void 0&&typeof b=="string")T=b,E=this.length,b=0;else if(isFinite(b))b=b|0,isFinite(E)?(E=E|0,T===void 0&&(T="utf8")):(T=E,E=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var L=this.length-b;if((E===void 0||E>L)&&(E=L),p.length>0&&(E<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");for(var M=!1;;)switch(T){case"hex":return xe(this,p,b,E);case"utf8":case"utf-8":return de(this,p,b,E);case"ascii":return pe(this,p,b,E);case"latin1":case"binary":return we(this,p,b,E);case"base64":return Ae(this,p,b,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,p,b,E);default:if(M)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),M=!0}},B.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ve(m,p,b){return p===0&&b===m.length?q(m):q(m.slice(p,b))}function $e(m,p,b){b=Math.min(m.length,b);for(var E=[],T=p;T<b;){var L=m[T],M=null,ue=L>239?4:L>223?3:L>191?2:1;if(T+ue<=b){var Se,Ue,We,tt;switch(ue){case 1:L<128&&(M=L);break;case 2:Se=m[T+1],(Se&192)===128&&(tt=(L&31)<<6|Se&63,tt>127&&(M=tt));break;case 3:Se=m[T+1],Ue=m[T+2],(Se&192)===128&&(Ue&192)===128&&(tt=(L&15)<<12|(Se&63)<<6|Ue&63,tt>2047&&(tt<55296||tt>57343)&&(M=tt));break;case 4:Se=m[T+1],Ue=m[T+2],We=m[T+3],(Se&192)===128&&(Ue&192)===128&&(We&192)===128&&(tt=(L&15)<<18|(Se&63)<<12|(Ue&63)<<6|We&63,tt>65535&&tt<1114112&&(M=tt))}}M===null?(M=65533,ue=1):M>65535&&(M-=65536,E.push(M>>>10&1023|55296),M=56320|M&1023),E.push(M),T+=ue}return Oe(E)}var Q=4096;function Oe(m){var p=m.length;if(p<=Q)return String.fromCharCode.apply(String,m);for(var b="",E=0;E<p;)b+=String.fromCharCode.apply(String,m.slice(E,E+=Q));return b}function Ve(m,p,b){var E="";b=Math.min(m.length,b);for(var T=p;T<b;++T)E+=String.fromCharCode(m[T]&127);return E}function Qe(m,p,b){var E="";b=Math.min(m.length,b);for(var T=p;T<b;++T)E+=String.fromCharCode(m[T]);return E}function wt(m,p,b){var E=m.length;(!p||p<0)&&(p=0),(!b||b<0||b>E)&&(b=E);for(var T="",L=p;L<b;++L)T+=yi(m[L]);return T}function Tt(m,p,b){for(var E=m.slice(p,b),T="",L=0;L<E.length;L+=2)T+=String.fromCharCode(E[L]+E[L+1]*256);return T}B.prototype.slice=function(p,b){var E=this.length;p=~~p,b=b===void 0?E:~~b,p<0?(p+=E,p<0&&(p=0)):p>E&&(p=E),b<0?(b+=E,b<0&&(b=0)):b>E&&(b=E),b<p&&(b=p);var T;if(B.TYPED_ARRAY_SUPPORT)T=this.subarray(p,b),T.__proto__=B.prototype;else{var L=b-p;T=new B(L,void 0);for(var M=0;M<L;++M)T[M]=this[M+p]}return T};function Ot(m,p,b){if(m%1!==0||m<0)throw new RangeError("offset is not uint");if(m+p>b)throw new RangeError("Trying to access beyond buffer length")}B.prototype.readUIntLE=function(p,b,E){p=p|0,b=b|0,E||Ot(p,b,this.length);for(var T=this[p],L=1,M=0;++M<b&&(L*=256);)T+=this[p+M]*L;return T},B.prototype.readUIntBE=function(p,b,E){p=p|0,b=b|0,E||Ot(p,b,this.length);for(var T=this[p+--b],L=1;b>0&&(L*=256);)T+=this[p+--b]*L;return T},B.prototype.readUInt8=function(p,b){return b||Ot(p,1,this.length),this[p]},B.prototype.readUInt16LE=function(p,b){return b||Ot(p,2,this.length),this[p]|this[p+1]<<8},B.prototype.readUInt16BE=function(p,b){return b||Ot(p,2,this.length),this[p]<<8|this[p+1]},B.prototype.readUInt32LE=function(p,b){return b||Ot(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},B.prototype.readUInt32BE=function(p,b){return b||Ot(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},B.prototype.readIntLE=function(p,b,E){p=p|0,b=b|0,E||Ot(p,b,this.length);for(var T=this[p],L=1,M=0;++M<b&&(L*=256);)T+=this[p+M]*L;return L*=128,T>=L&&(T-=Math.pow(2,8*b)),T},B.prototype.readIntBE=function(p,b,E){p=p|0,b=b|0,E||Ot(p,b,this.length);for(var T=b,L=1,M=this[p+--T];T>0&&(L*=256);)M+=this[p+--T]*L;return L*=128,M>=L&&(M-=Math.pow(2,8*b)),M},B.prototype.readInt8=function(p,b){return b||Ot(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},B.prototype.readInt16LE=function(p,b){b||Ot(p,2,this.length);var E=this[p]|this[p+1]<<8;return E&32768?E|4294901760:E},B.prototype.readInt16BE=function(p,b){b||Ot(p,2,this.length);var E=this[p+1]|this[p]<<8;return E&32768?E|4294901760:E},B.prototype.readInt32LE=function(p,b){return b||Ot(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},B.prototype.readInt32BE=function(p,b){return b||Ot(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},B.prototype.readFloatLE=function(p,b){return b||Ot(p,4,this.length),H(this,p,!0,23,4)},B.prototype.readFloatBE=function(p,b){return b||Ot(p,4,this.length),H(this,p,!1,23,4)},B.prototype.readDoubleLE=function(p,b){return b||Ot(p,8,this.length),H(this,p,!0,52,8)},B.prototype.readDoubleBE=function(p,b){return b||Ot(p,8,this.length),H(this,p,!1,52,8)};function St(m,p,b,E,T,L){if(!Re(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>T||p<L)throw new RangeError('"value" argument is out of bounds');if(b+E>m.length)throw new RangeError("Index out of range")}B.prototype.writeUIntLE=function(p,b,E,T){if(p=+p,b=b|0,E=E|0,!T){var L=Math.pow(2,8*E)-1;St(this,p,b,E,L,0)}var M=1,ue=0;for(this[b]=p&255;++ue<E&&(M*=256);)this[b+ue]=p/M&255;return b+E},B.prototype.writeUIntBE=function(p,b,E,T){if(p=+p,b=b|0,E=E|0,!T){var L=Math.pow(2,8*E)-1;St(this,p,b,E,L,0)}var M=E-1,ue=1;for(this[b+M]=p&255;--M>=0&&(ue*=256);)this[b+M]=p/ue&255;return b+E},B.prototype.writeUInt8=function(p,b,E){return p=+p,b=b|0,E||St(this,p,b,1,255,0),B.TYPED_ARRAY_SUPPORT||(p=Math.floor(p)),this[b]=p&255,b+1};function je(m,p,b,E){p<0&&(p=65535+p+1);for(var T=0,L=Math.min(m.length-b,2);T<L;++T)m[b+T]=(p&255<<8*(E?T:1-T))>>>(E?T:1-T)*8}B.prototype.writeUInt16LE=function(p,b,E){return p=+p,b=b|0,E||St(this,p,b,2,65535,0),B.TYPED_ARRAY_SUPPORT?(this[b]=p&255,this[b+1]=p>>>8):je(this,p,b,!0),b+2},B.prototype.writeUInt16BE=function(p,b,E){return p=+p,b=b|0,E||St(this,p,b,2,65535,0),B.TYPED_ARRAY_SUPPORT?(this[b]=p>>>8,this[b+1]=p&255):je(this,p,b,!1),b+2};function He(m,p,b,E){p<0&&(p=4294967295+p+1);for(var T=0,L=Math.min(m.length-b,4);T<L;++T)m[b+T]=p>>>(E?T:3-T)*8&255}B.prototype.writeUInt32LE=function(p,b,E){return p=+p,b=b|0,E||St(this,p,b,4,4294967295,0),B.TYPED_ARRAY_SUPPORT?(this[b+3]=p>>>24,this[b+2]=p>>>16,this[b+1]=p>>>8,this[b]=p&255):He(this,p,b,!0),b+4},B.prototype.writeUInt32BE=function(p,b,E){return p=+p,b=b|0,E||St(this,p,b,4,4294967295,0),B.TYPED_ARRAY_SUPPORT?(this[b]=p>>>24,this[b+1]=p>>>16,this[b+2]=p>>>8,this[b+3]=p&255):He(this,p,b,!1),b+4},B.prototype.writeIntLE=function(p,b,E,T){if(p=+p,b=b|0,!T){var L=Math.pow(2,8*E-1);St(this,p,b,E,L-1,-L)}var M=0,ue=1,Se=0;for(this[b]=p&255;++M<E&&(ue*=256);)p<0&&Se===0&&this[b+M-1]!==0&&(Se=1),this[b+M]=(p/ue>>0)-Se&255;return b+E},B.prototype.writeIntBE=function(p,b,E,T){if(p=+p,b=b|0,!T){var L=Math.pow(2,8*E-1);St(this,p,b,E,L-1,-L)}var M=E-1,ue=1,Se=0;for(this[b+M]=p&255;--M>=0&&(ue*=256);)p<0&&Se===0&&this[b+M+1]!==0&&(Se=1),this[b+M]=(p/ue>>0)-Se&255;return b+E},B.prototype.writeInt8=function(p,b,E){return p=+p,b=b|0,E||St(this,p,b,1,127,-128),B.TYPED_ARRAY_SUPPORT||(p=Math.floor(p)),p<0&&(p=255+p+1),this[b]=p&255,b+1},B.prototype.writeInt16LE=function(p,b,E){return p=+p,b=b|0,E||St(this,p,b,2,32767,-32768),B.TYPED_ARRAY_SUPPORT?(this[b]=p&255,this[b+1]=p>>>8):je(this,p,b,!0),b+2},B.prototype.writeInt16BE=function(p,b,E){return p=+p,b=b|0,E||St(this,p,b,2,32767,-32768),B.TYPED_ARRAY_SUPPORT?(this[b]=p>>>8,this[b+1]=p&255):je(this,p,b,!1),b+2},B.prototype.writeInt32LE=function(p,b,E){return p=+p,b=b|0,E||St(this,p,b,4,2147483647,-2147483648),B.TYPED_ARRAY_SUPPORT?(this[b]=p&255,this[b+1]=p>>>8,this[b+2]=p>>>16,this[b+3]=p>>>24):He(this,p,b,!0),b+4},B.prototype.writeInt32BE=function(p,b,E){return p=+p,b=b|0,E||St(this,p,b,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),B.TYPED_ARRAY_SUPPORT?(this[b]=p>>>24,this[b+1]=p>>>16,this[b+2]=p>>>8,this[b+3]=p&255):He(this,p,b,!1),b+4};function pt(m,p,b,E,T,L){if(b+E>m.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function dt(m,p,b,E,T){return T||pt(m,p,b,4),oe(m,p,b,E,23,4),b+4}B.prototype.writeFloatLE=function(p,b,E){return dt(this,p,b,!0,E)},B.prototype.writeFloatBE=function(p,b,E){return dt(this,p,b,!1,E)};function ot(m,p,b,E,T){return T||pt(m,p,b,8),oe(m,p,b,E,52,8),b+8}B.prototype.writeDoubleLE=function(p,b,E){return ot(this,p,b,!0,E)},B.prototype.writeDoubleBE=function(p,b,E){return ot(this,p,b,!1,E)},B.prototype.copy=function(p,b,E,T){if(E||(E=0),!T&&T!==0&&(T=this.length),b>=p.length&&(b=p.length),b||(b=0),T>0&&T<E&&(T=E),T===E||p.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(E<0||E>=this.length)throw new RangeError("sourceStart out of bounds");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),p.length-b<T-E&&(T=p.length-b+E);var L=T-E,M;if(this===p&&E<b&&b<T)for(M=L-1;M>=0;--M)p[M+b]=this[M+E];else if(L<1e3||!B.TYPED_ARRAY_SUPPORT)for(M=0;M<L;++M)p[M+b]=this[M+E];else Uint8Array.prototype.set.call(p,this.subarray(E,E+L),b);return L},B.prototype.fill=function(p,b,E,T){if(typeof p=="string"){if(typeof b=="string"?(T=b,b=0,E=this.length):typeof E=="string"&&(T=E,E=this.length),p.length===1){var L=p.charCodeAt(0);L<256&&(p=L)}if(T!==void 0&&typeof T!="string")throw new TypeError("encoding must be a string");if(typeof T=="string"&&!B.isEncoding(T))throw new TypeError("Unknown encoding: "+T)}else typeof p=="number"&&(p=p&255);if(b<0||this.length<b||this.length<E)throw new RangeError("Out of range index");if(E<=b)return this;b=b>>>0,E=E===void 0?this.length:E>>>0,p||(p=0);var M;if(typeof p=="number")for(M=b;M<E;++M)this[M]=p;else{var ue=Re(p)?p:Vi(new B(p,T).toString()),Se=ue.length;for(M=0;M<E-b;++M)this[M+b]=ue[M%Se]}return this};var Rt=/[^+\/0-9A-Za-z-_]/g;function an(m){if(m=$i(m).replace(Rt,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function $i(m){return m.trim?m.trim():m.replace(/^\s+|\s+$/g,"")}function yi(m){return m<16?"0"+m.toString(16):m.toString(16)}function Vi(m,p){p=p||1/0;for(var b,E=m.length,T=null,L=[],M=0;M<E;++M){if(b=m.charCodeAt(M),b>55295&&b<57344){if(!T){if(b>56319){(p-=3)>-1&&L.push(239,191,189);continue}else if(M+1===E){(p-=3)>-1&&L.push(239,191,189);continue}T=b;continue}if(b<56320){(p-=3)>-1&&L.push(239,191,189),T=b;continue}b=(T-55296<<10|b-56320)+65536}else T&&(p-=3)>-1&&L.push(239,191,189);if(T=null,b<128){if((p-=1)<0)break;L.push(b)}else if(b<2048){if((p-=2)<0)break;L.push(b>>6|192,b&63|128)}else if(b<65536){if((p-=3)<0)break;L.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((p-=4)<0)break;L.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return L}function _i(m){for(var p=[],b=0;b<m.length;++b)p.push(m.charCodeAt(b)&255);return p}function po(m,p){for(var b,E,T,L=[],M=0;M<m.length&&!((p-=2)<0);++M)b=m.charCodeAt(M),E=b>>8,T=b%256,L.push(T),L.push(E);return L}function Sp(m){return F(an(m))}function Vl(m,p,b,E){for(var T=0;T<E&&!(T+b>=p.length||T>=m.length);++T)p[T+b]=m[T];return T}function my(m){return m!==m}function Ep(m){return m!=null&&(!!m._isBuffer||zu(m)||vy(m))}function zu(m){return!!m.constructor&&typeof m.constructor.isBuffer=="function"&&m.constructor.isBuffer(m)}function vy(m){return typeof m.readFloatLE=="function"&&typeof m.slice=="function"&&zu(m.slice(0,0))}function va(){throw new Error("setTimeout has not been defined")}function xp(){throw new Error("clearTimeout has not been defined")}var $r=va,Vr=xp;typeof C.setTimeout=="function"&&($r=setTimeout),typeof C.clearTimeout=="function"&&(Vr=clearTimeout);function qu(m){if($r===setTimeout)return setTimeout(m,0);if(($r===va||!$r)&&setTimeout)return $r=setTimeout,setTimeout(m,0);try{return $r(m,0)}catch(p){try{return $r.call(null,m,0)}catch(b){return $r.call(this,m,0)}}}function by(m){if(Vr===clearTimeout)return clearTimeout(m);if((Vr===xp||!Vr)&&clearTimeout)return Vr=clearTimeout,clearTimeout(m);try{return Vr(m)}catch(p){try{return Vr.call(null,m)}catch(b){return Vr.call(this,m)}}}var fr=[],go=!1,Es,he=-1;function ke(){!go||!Es||(go=!1,Es.length?fr=Es.concat(fr):he=-1,fr.length&>())}function gt(){if(!go){var m=qu(ke);go=!0;for(var p=fr.length;p;){for(Es=fr,fr=[];++he<p;)Es&&Es[he].run();he=-1,p=fr.length}Es=null,go=!1,by(m)}}function Lt(m){var p=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b<arguments.length;b++)p[b-1]=arguments[b];fr.push(new $n(m,p)),fr.length===1&&!go&&qu(gt)}function $n(m,p){this.fun=m,this.array=p}$n.prototype.run=function(){this.fun.apply(null,this.array)};var zi=C.performance||{};zi.now||zi.mozNow||zi.msNow||zi.oNow||zi.webkitNow;var qi;typeof Object.create=="function"?qi=function(p,b){p.super_=b,p.prototype=Object.create(b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})}:qi=function(p,b){p.super_=b;var E=function(){};E.prototype=b.prototype,p.prototype=new E,p.prototype.constructor=p};var hr=qi,ba=/%[sdj%]/g;function yy(m){if(!Ey(m)){for(var p=[],b=0;b<arguments.length;b++)p.push(mo(arguments[b]));return p.join(" ")}for(var b=1,E=arguments,T=E.length,L=String(m).replace(ba,function(ue){if(ue==="%%")return"%";if(b>=T)return ue;switch(ue){case"%s":return String(E[b++]);case"%d":return Number(E[b++]);case"%j":try{return JSON.stringify(E[b++])}catch(Se){return"[Circular]"}default:return ue}}),M=E[b];b<T;M=E[++b])Sy(M)||!Hu(M)?L+=" "+M:L+=" "+mo(M);return L}function IA(m,p){if(vo(C.process))return function(){return IA(m,p).apply(this,arguments)};var b=!1;function E(){return b||(console.error(p),b=!0),m.apply(this,arguments)}return E}var Ap={},_y;function tde(m){if(vo(_y)&&(_y=""),m=m.toUpperCase(),!Ap[m])if(new RegExp("\\b"+m+"\\b","i").test(_y)){var p=0;Ap[m]=function(){var b=yy.apply(null,arguments);console.error("%s %d: %s",m,p,b)}}else Ap[m]=function(){};return Ap[m]}function mo(m,p){var b={seen:[],stylize:ide};return arguments.length>=3&&(b.depth=arguments[2]),arguments.length>=4&&(b.colors=arguments[3]),RA(p)?b.showHidden=p:p&&ude(b,p),vo(b.showHidden)&&(b.showHidden=!1),vo(b.depth)&&(b.depth=2),vo(b.colors)&&(b.colors=!1),vo(b.customInspect)&&(b.customInspect=!0),b.colors&&(b.stylize=nde),Pp(b,m,b.depth)}mo.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},mo.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function nde(m,p){var b=mo.styles[p];return b?"\x1B["+mo.colors[b][0]+"m"+m+"\x1B["+mo.colors[b][1]+"m":m}function ide(m,p){return m}function rde(m){var p={};return m.forEach(function(b,E){p[b]=!0}),p}function Pp(m,p,b){if(m.customInspect&&p&&Py(p.inspect)&&p.inspect!==mo&&!(p.constructor&&p.constructor.prototype===p)){var E=p.inspect(b,m);return Ey(E)||(E=Pp(m,E,b)),E}var T=sde(m,p);if(T)return T;var L=Object.keys(p),M=rde(L);if(m.showHidden&&(L=Object.getOwnPropertyNames(p)),Ay(p)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return wy(p);if(L.length===0){if(Py(p)){var ue=p.name?": "+p.name:"";return m.stylize("[Function"+ue+"]","special")}if(xy(p))return m.stylize(RegExp.prototype.toString.call(p),"regexp");if(DA(p))return m.stylize(Date.prototype.toString.call(p),"date");if(Ay(p))return wy(p)}var Se="",Ue=!1,We=["{","}"];if(lde(p)&&(Ue=!0,We=["[","]"]),Py(p)){var tt=p.name?": "+p.name:"";Se=" [Function"+tt+"]"}if(xy(p)&&(Se=" "+RegExp.prototype.toString.call(p)),DA(p)&&(Se=" "+Date.prototype.toUTCString.call(p)),Ay(p)&&(Se=" "+wy(p)),L.length===0&&(!Ue||p.length==0))return We[0]+Se+We[1];if(b<0)return xy(p)?m.stylize(RegExp.prototype.toString.call(p),"regexp"):m.stylize("[Object]","special");m.seen.push(p);var Xt;return Ue?Xt=ode(m,p,b,M,L):Xt=L.map(function($t){return Cy(m,p,b,M,$t,Ue)}),m.seen.pop(),ade(Xt,Se,We)}function sde(m,p){if(vo(p))return m.stylize("undefined","undefined");if(Ey(p)){var b="'"+JSON.stringify(p).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return m.stylize(b,"string")}if(cde(p))return m.stylize(""+p,"number");if(RA(p))return m.stylize(""+p,"boolean");if(Sy(p))return m.stylize("null","null")}function wy(m){return"["+Error.prototype.toString.call(m)+"]"}function ode(m,p,b,E,T){for(var L=[],M=0,ue=p.length;M<ue;++M)LA(p,String(M))?L.push(Cy(m,p,b,E,String(M),!0)):L.push("");return T.forEach(function(Se){Se.match(/^\d+$/)||L.push(Cy(m,p,b,E,Se,!0))}),L}function Cy(m,p,b,E,T,L){var M,ue,Se;if(Se=Object.getOwnPropertyDescriptor(p,T)||{value:p[T]},Se.get?Se.set?ue=m.stylize("[Getter/Setter]","special"):ue=m.stylize("[Getter]","special"):Se.set&&(ue=m.stylize("[Setter]","special")),LA(E,T)||(M="["+T+"]"),ue||(m.seen.indexOf(Se.value)<0?(Sy(b)?ue=Pp(m,Se.value,null):ue=Pp(m,Se.value,b-1),ue.indexOf(`
|
|
123
|
-
`)>-1&&(L?ue=ue.split(`
|
|
124
|
-
`).map(function(Ue){return" "+Ue}).join(`
|
|
125
|
-
`).substr(2):ue=`
|
|
126
|
-
`+ue.split(`
|
|
127
|
-
`).map(function(Ue){return" "+Ue}).join(`
|
|
128
|
-
`))):ue=m.stylize("[Circular]","special")),vo(M)){if(L&&T.match(/^\d+$/))return ue;M=JSON.stringify(""+T),M.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(M=M.substr(1,M.length-2),M=m.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=m.stylize(M,"string"))}return M+": "+ue}function ade(m,p,b){var E=m.reduce(function(T,L){return L.indexOf(`
|
|
129
|
-
`)>=0,T+L.replace(/\u001b\[\d\d?m/g,"").length+1},0);return E>60?b[0]+(p===""?"":p+`
|
|
130
|
-
`)+" "+m.join(`,
|
|
131
|
-
`)+" "+b[1]:b[0]+p+" "+m.join(", ")+" "+b[1]}function lde(m){return Array.isArray(m)}function RA(m){return typeof m=="boolean"}function Sy(m){return m===null}function cde(m){return typeof m=="number"}function Ey(m){return typeof m=="string"}function vo(m){return m===void 0}function xy(m){return Hu(m)&&Ty(m)==="[object RegExp]"}function Hu(m){return typeof m=="object"&&m!==null}function DA(m){return Hu(m)&&Ty(m)==="[object Date]"}function Ay(m){return Hu(m)&&(Ty(m)==="[object Error]"||m instanceof Error)}function Py(m){return typeof m=="function"}function Ty(m){return Object.prototype.toString.call(m)}function ude(m,p){if(!p||!Hu(p))return m;for(var b=Object.keys(p),E=b.length;E--;)m[b[E]]=p[b[E]];return m}function LA(m,p){return Object.prototype.hasOwnProperty.call(m,p)}function ya(){this.head=null,this.tail=null,this.length=0}ya.prototype.push=function(m){var p={data:m,next:null};this.length>0?this.tail.next=p:this.head=p,this.tail=p,++this.length},ya.prototype.unshift=function(m){var p={data:m,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length},ya.prototype.shift=function(){if(this.length!==0){var m=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,m}},ya.prototype.clear=function(){this.head=this.tail=null,this.length=0},ya.prototype.join=function(m){if(this.length===0)return"";for(var p=this.head,b=""+p.data;p=p.next;)b+=m+p.data;return b},ya.prototype.concat=function(m){if(this.length===0)return B.alloc(0);if(this.length===1)return this.head.data;for(var p=B.allocUnsafe(m>>>0),b=this.head,E=0;b;)b.data.copy(p,E),E+=b.data.length,b=b.next;return p};var dde=B.isEncoding||function(m){switch(m&&m.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function fde(m){if(m&&!dde(m))throw new Error("Unknown encoding: "+m)}function Gu(m){switch(this.encoding=(m||"utf8").toLowerCase().replace(/[-_]/,""),fde(m),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=pde;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=gde;break;default:this.write=hde;return}this.charBuffer=new B(6),this.charReceived=0,this.charLength=0}Gu.prototype.write=function(m){for(var p="";this.charLength;){var b=m.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:m.length;if(m.copy(this.charBuffer,this.charReceived,0,b),this.charReceived+=b,this.charReceived<this.charLength)return"";m=m.slice(b,m.length),p=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var T=p.charCodeAt(p.length-1);if(T>=55296&&T<=56319){this.charLength+=this.surrogateSize,p="";continue}if(this.charReceived=this.charLength=0,m.length===0)return p;break}this.detectIncompleteChar(m);var E=m.length;this.charLength&&(m.copy(this.charBuffer,0,m.length-this.charReceived,E),E-=this.charReceived),p+=m.toString(this.encoding,0,E);var E=p.length-1,T=p.charCodeAt(E);if(T>=55296&&T<=56319){var L=this.surrogateSize;return this.charLength+=L,this.charReceived+=L,this.charBuffer.copy(this.charBuffer,L,0,L),m.copy(this.charBuffer,0,0,L),p.substring(0,E)}return p},Gu.prototype.detectIncompleteChar=function(m){for(var p=m.length>=3?3:m.length;p>0;p--){var b=m[m.length-p];if(p==1&&b>>5==6){this.charLength=2;break}if(p<=2&&b>>4==14){this.charLength=3;break}if(p<=3&&b>>3==30){this.charLength=4;break}}this.charReceived=p},Gu.prototype.end=function(m){var p="";if(m&&m.length&&(p=this.write(m)),this.charReceived){var b=this.charReceived,E=this.charBuffer,T=this.encoding;p+=E.slice(0,b).toString(T)}return p};function hde(m){return m.toString(this.encoding)}function pde(m){this.charReceived=m.length%2,this.charLength=this.charReceived?2:0}function gde(m){this.charReceived=m.length%3,this.charLength=this.charReceived?3:0}ln.ReadableState=kA;var Ut=tde("stream");hr(ln,o);function mde(m,p,b){if(typeof m.prependListener=="function")return m.prependListener(p,b);!m._events||!m._events[p]?m.on(p,b):Array.isArray(m._events[p])?m._events[p].unshift(b):m._events[p]=[b,m._events[p]]}function vde(m,p){return m.listeners(p).length}function kA(m,p){m=m||{},this.objectMode=!!m.objectMode,p instanceof Hi&&(this.objectMode=this.objectMode||!!m.readableObjectMode);var b=m.highWaterMark,E=this.objectMode?16:16*1024;this.highWaterMark=b||b===0?b:E,this.highWaterMark=~~this.highWaterMark,this.buffer=new ya,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=m.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,m.encoding&&(this.decoder=new Gu(m.encoding),this.encoding=m.encoding)}function ln(m){if(!(this instanceof ln))return new ln(m);this._readableState=new kA(m,this),this.readable=!0,m&&typeof m.read=="function"&&(this._read=m.read),o.call(this)}ln.prototype.push=function(m,p){var b=this._readableState;return!b.objectMode&&typeof m=="string"&&(p=p||b.defaultEncoding,p!==b.encoding&&(m=B.from(m,p),p="")),MA(this,b,m,p,!1)},ln.prototype.unshift=function(m){var p=this._readableState;return MA(this,p,m,"",!0)},ln.prototype.isPaused=function(){return this._readableState.flowing===!1};function MA(m,p,b,E,T){var L=_de(p,b);if(L)m.emit("error",L);else if(b===null)p.reading=!1,wde(m,p);else if(p.objectMode||b&&b.length>0)if(p.ended&&!T){var M=new Error("stream.push() after EOF");m.emit("error",M)}else if(p.endEmitted&&T){var ue=new Error("stream.unshift() after end event");m.emit("error",ue)}else{var Se;p.decoder&&!T&&!E&&(b=p.decoder.write(b),Se=!p.objectMode&&b.length===0),T||(p.reading=!1),Se||(p.flowing&&p.length===0&&!p.sync?(m.emit("data",b),m.read(0)):(p.length+=p.objectMode?1:b.length,T?p.buffer.unshift(b):p.buffer.push(b),p.needReadable&&Tp(m))),Cde(m,p)}else T||(p.reading=!1);return bde(p)}function bde(m){return!m.ended&&(m.needReadable||m.length<m.highWaterMark||m.length===0)}ln.prototype.setEncoding=function(m){return this._readableState.decoder=new Gu(m),this._readableState.encoding=m,this};var FA=8388608;function yde(m){return m>=FA?m=FA:(m--,m|=m>>>1,m|=m>>>2,m|=m>>>4,m|=m>>>8,m|=m>>>16,m++),m}function BA(m,p){return m<=0||p.length===0&&p.ended?0:p.objectMode?1:m!==m?p.flowing&&p.length?p.buffer.head.data.length:p.length:(m>p.highWaterMark&&(p.highWaterMark=yde(m)),m<=p.length?m:p.ended?p.length:(p.needReadable=!0,0))}ln.prototype.read=function(m){Ut("read",m),m=parseInt(m,10);var p=this._readableState,b=m;if(m!==0&&(p.emittedReadable=!1),m===0&&p.needReadable&&(p.length>=p.highWaterMark||p.ended))return Ut("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?Ny(this):Tp(this),null;if(m=BA(m,p),m===0&&p.ended)return p.length===0&&Ny(this),null;var E=p.needReadable;Ut("need readable",E),(p.length===0||p.length-m<p.highWaterMark)&&(E=!0,Ut("length less than watermark",E)),p.ended||p.reading?(E=!1,Ut("reading or ended",E)):E&&(Ut("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0),this._read(p.highWaterMark),p.sync=!1,p.reading||(m=BA(b,p)));var T;return m>0?T=UA(m,p):T=null,T===null?(p.needReadable=!0,m=0):p.length-=m,p.length===0&&(p.ended||(p.needReadable=!0),b!==m&&p.ended&&Ny(this)),T!==null&&this.emit("data",T),T};function _de(m,p){var b=null;return!Ep(p)&&typeof p!="string"&&p!==null&&p!==void 0&&!m.objectMode&&(b=new TypeError("Invalid non-string/buffer chunk")),b}function wde(m,p){if(!p.ended){if(p.decoder){var b=p.decoder.end();b&&b.length&&(p.buffer.push(b),p.length+=p.objectMode?1:b.length)}p.ended=!0,Tp(m)}}function Tp(m){var p=m._readableState;p.needReadable=!1,p.emittedReadable||(Ut("emitReadable",p.flowing),p.emittedReadable=!0,p.sync?Lt(jA,m):jA(m))}function jA(m){Ut("emit readable"),m.emit("readable"),Oy(m)}function Cde(m,p){p.readingMore||(p.readingMore=!0,Lt(Sde,m,p))}function Sde(m,p){for(var b=p.length;!p.reading&&!p.flowing&&!p.ended&&p.length<p.highWaterMark&&(Ut("maybeReadMore read 0"),m.read(0),b!==p.length);)b=p.length;p.readingMore=!1}ln.prototype._read=function(m){this.emit("error",new Error("not implemented"))},ln.prototype.pipe=function(m,p){var b=this,E=this._readableState;switch(E.pipesCount){case 0:E.pipes=m;break;case 1:E.pipes=[E.pipes,m];break;default:E.pipes.push(m);break}E.pipesCount+=1,Ut("pipe count=%d opts=%j",E.pipesCount,p);var T=!p||p.end!==!1,L=T?ue:We;E.endEmitted?Lt(L):b.once("end",L),m.on("unpipe",M);function M(Hl){Ut("onunpipe"),Hl===b&&We()}function ue(){Ut("onend"),m.end()}var Se=Ede(b);m.on("drain",Se);var Ue=!1;function We(){Ut("cleanup"),m.removeListener("close",qr),m.removeListener("finish",Ju),m.removeListener("drain",Se),m.removeListener("error",$t),m.removeListener("unpipe",M),b.removeListener("end",ue),b.removeListener("end",We),b.removeListener("data",Xt),Ue=!0,E.awaitDrain&&(!m._writableState||m._writableState.needDrain)&&Se()}var tt=!1;b.on("data",Xt);function Xt(Hl){Ut("ondata"),tt=!1;var jhe=m.write(Hl);jhe===!1&&!tt&&((E.pipesCount===1&&E.pipes===m||E.pipesCount>1&&$A(E.pipes,m)!==-1)&&!Ue&&(Ut("false write response, pause",b._readableState.awaitDrain),b._readableState.awaitDrain++,tt=!0),b.pause())}function $t(Hl){Ut("onerror",Hl),Wy(),m.removeListener("error",$t),vde(m,"error")===0&&m.emit("error",Hl)}mde(m,"error",$t);function qr(){m.removeListener("finish",Ju),Wy()}m.once("close",qr);function Ju(){Ut("onfinish"),m.removeListener("close",qr),Wy()}m.once("finish",Ju);function Wy(){Ut("unpipe"),b.unpipe(m)}return m.emit("pipe",b),E.flowing||(Ut("pipe resume"),b.resume()),m};function Ede(m){return function(){var p=m._readableState;Ut("pipeOnDrain",p.awaitDrain),p.awaitDrain&&p.awaitDrain--,p.awaitDrain===0&&m.listeners("data").length&&(p.flowing=!0,Oy(m))}}ln.prototype.unpipe=function(m){var p=this._readableState;if(p.pipesCount===0)return this;if(p.pipesCount===1)return m&&m!==p.pipes?this:(m||(m=p.pipes),p.pipes=null,p.pipesCount=0,p.flowing=!1,m&&m.emit("unpipe",this),this);if(!m){var b=p.pipes,E=p.pipesCount;p.pipes=null,p.pipesCount=0,p.flowing=!1;for(var T=0;T<E;T++)b[T].emit("unpipe",this);return this}var L=$A(p.pipes,m);return L===-1?this:(p.pipes.splice(L,1),p.pipesCount-=1,p.pipesCount===1&&(p.pipes=p.pipes[0]),m.emit("unpipe",this),this)},ln.prototype.on=function(m,p){var b=o.prototype.on.call(this,m,p);if(m==="data")this._readableState.flowing!==!1&&this.resume();else if(m==="readable"){var E=this._readableState;!E.endEmitted&&!E.readableListening&&(E.readableListening=E.needReadable=!0,E.emittedReadable=!1,E.reading?E.length&&Tp(this):Lt(xde,this))}return b},ln.prototype.addListener=ln.prototype.on;function xde(m){Ut("readable nexttick read 0"),m.read(0)}ln.prototype.resume=function(){var m=this._readableState;return m.flowing||(Ut("resume"),m.flowing=!0,Ade(this,m)),this};function Ade(m,p){p.resumeScheduled||(p.resumeScheduled=!0,Lt(Pde,m,p))}function Pde(m,p){p.reading||(Ut("resume read 0"),m.read(0)),p.resumeScheduled=!1,p.awaitDrain=0,m.emit("resume"),Oy(m),p.flowing&&!p.reading&&m.read(0)}ln.prototype.pause=function(){return Ut("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ut("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Oy(m){var p=m._readableState;for(Ut("flow",p.flowing);p.flowing&&m.read()!==null;);}ln.prototype.wrap=function(m){var p=this._readableState,b=!1,E=this;m.on("end",function(){if(Ut("wrapped end"),p.decoder&&!p.ended){var M=p.decoder.end();M&&M.length&&E.push(M)}E.push(null)}),m.on("data",function(M){if(Ut("wrapped data"),p.decoder&&(M=p.decoder.write(M)),!(p.objectMode&&M==null)&&!(!p.objectMode&&(!M||!M.length))){var ue=E.push(M);ue||(b=!0,m.pause())}});for(var T in m)this[T]===void 0&&typeof m[T]=="function"&&(this[T]=function(M){return function(){return m[M].apply(m,arguments)}}(T));var L=["error","close","destroy","pause","resume"];return Rde(L,function(M){m.on(M,E.emit.bind(E,M))}),E._read=function(M){Ut("wrapped _read",M),b&&(b=!1,m.resume())},E},ln._fromList=UA;function UA(m,p){if(p.length===0)return null;var b;return p.objectMode?b=p.buffer.shift():!m||m>=p.length?(p.decoder?b=p.buffer.join(""):p.buffer.length===1?b=p.buffer.head.data:b=p.buffer.concat(p.length),p.buffer.clear()):b=Tde(m,p.buffer,p.decoder),b}function Tde(m,p,b){var E;return m<p.head.data.length?(E=p.head.data.slice(0,m),p.head.data=p.head.data.slice(m)):m===p.head.data.length?E=p.shift():E=b?Ode(m,p):Nde(m,p),E}function Ode(m,p){var b=p.head,E=1,T=b.data;for(m-=T.length;b=b.next;){var L=b.data,M=m>L.length?L.length:m;if(M===L.length?T+=L:T+=L.slice(0,m),m-=M,m===0){M===L.length?(++E,b.next?p.head=b.next:p.head=p.tail=null):(p.head=b,b.data=L.slice(M));break}++E}return p.length-=E,T}function Nde(m,p){var b=B.allocUnsafe(m),E=p.head,T=1;for(E.data.copy(b),m-=E.data.length;E=E.next;){var L=E.data,M=m>L.length?L.length:m;if(L.copy(b,b.length-m,0,M),m-=M,m===0){M===L.length?(++T,E.next?p.head=E.next:p.head=p.tail=null):(p.head=E,E.data=L.slice(M));break}++T}return p.length-=T,b}function Ny(m){var p=m._readableState;if(p.length>0)throw new Error('"endReadable()" called on non-empty stream');p.endEmitted||(p.ended=!0,Lt(Ide,p,m))}function Ide(m,p){!m.endEmitted&&m.length===0&&(m.endEmitted=!0,p.readable=!1,p.emit("end"))}function Rde(m,p){for(var b=0,E=m.length;b<E;b++)p(m[b],b)}function $A(m,p){for(var b=0,E=m.length;b<E;b++)if(m[b]===p)return b;return-1}Vn.WritableState=Iy,hr(Vn,o);function Dde(){}function Lde(m,p,b){this.chunk=m,this.encoding=p,this.callback=b,this.next=null}function Iy(m,p){Object.defineProperty(this,"buffer",{get:IA(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),m=m||{},this.objectMode=!!m.objectMode,p instanceof Hi&&(this.objectMode=this.objectMode||!!m.writableObjectMode);var b=m.highWaterMark,E=this.objectMode?16:16*1024;this.highWaterMark=b||b===0?b:E,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var T=m.decodeStrings===!1;this.decodeStrings=!T,this.defaultEncoding=m.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(L){$de(p,L)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new WA(this)}Iy.prototype.getBuffer=function(){for(var p=this.bufferedRequest,b=[];p;)b.push(p),p=p.next;return b};function Vn(m){if(!(this instanceof Vn)&&!(this instanceof Hi))return new Vn(m);this._writableState=new Iy(m,this),this.writable=!0,m&&(typeof m.write=="function"&&(this._write=m.write),typeof m.writev=="function"&&(this._writev=m.writev)),o.call(this)}Vn.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function kde(m,p){var b=new Error("write after end");m.emit("error",b),Lt(p,b)}function Mde(m,p,b,E){var T=!0,L=!1;return b===null?L=new TypeError("May not write null values to stream"):!B.isBuffer(b)&&typeof b!="string"&&b!==void 0&&!p.objectMode&&(L=new TypeError("Invalid non-string/buffer chunk")),L&&(m.emit("error",L),Lt(E,L),T=!1),T}Vn.prototype.write=function(m,p,b){var E=this._writableState,T=!1;return typeof p=="function"&&(b=p,p=null),B.isBuffer(m)?p="buffer":p||(p=E.defaultEncoding),typeof b!="function"&&(b=Dde),E.ended?kde(this,b):Mde(this,E,m,b)&&(E.pendingcb++,T=Bde(this,E,m,p,b)),T},Vn.prototype.cork=function(){var m=this._writableState;m.corked++},Vn.prototype.uncork=function(){var m=this._writableState;m.corked&&(m.corked--,!m.writing&&!m.corked&&!m.finished&&!m.bufferProcessing&&m.bufferedRequest&&zA(this,m))},Vn.prototype.setDefaultEncoding=function(p){if(typeof p=="string"&&(p=p.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((p+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+p);return this._writableState.defaultEncoding=p,this};function Fde(m,p,b){return!m.objectMode&&m.decodeStrings!==!1&&typeof p=="string"&&(p=B.from(p,b)),p}function Bde(m,p,b,E,T){b=Fde(p,b,E),B.isBuffer(b)&&(E="buffer");var L=p.objectMode?1:b.length;p.length+=L;var M=p.length<p.highWaterMark;if(M||(p.needDrain=!0),p.writing||p.corked){var ue=p.lastBufferedRequest;p.lastBufferedRequest=new Lde(b,E,T),ue?ue.next=p.lastBufferedRequest:p.bufferedRequest=p.lastBufferedRequest,p.bufferedRequestCount+=1}else Ry(m,p,!1,L,b,E,T);return M}function Ry(m,p,b,E,T,L,M){p.writelen=E,p.writecb=M,p.writing=!0,p.sync=!0,b?m._writev(T,p.onwrite):m._write(T,L,p.onwrite),p.sync=!1}function jde(m,p,b,E,T){--p.pendingcb,b?Lt(T,E):T(E),m._writableState.errorEmitted=!0,m.emit("error",E)}function Ude(m){m.writing=!1,m.writecb=null,m.length-=m.writelen,m.writelen=0}function $de(m,p){var b=m._writableState,E=b.sync,T=b.writecb;if(Ude(b),p)jde(m,b,E,p,T);else{var L=qA(b);!L&&!b.corked&&!b.bufferProcessing&&b.bufferedRequest&&zA(m,b),E?Lt(VA,m,b,L,T):VA(m,b,L,T)}}function VA(m,p,b,E){b||Vde(m,p),p.pendingcb--,E(),GA(m,p)}function Vde(m,p){p.length===0&&p.needDrain&&(p.needDrain=!1,m.emit("drain"))}function zA(m,p){p.bufferProcessing=!0;var b=p.bufferedRequest;if(m._writev&&b&&b.next){var E=p.bufferedRequestCount,T=new Array(E),L=p.corkedRequestsFree;L.entry=b;for(var M=0;b;)T[M]=b,b=b.next,M+=1;Ry(m,p,!0,p.length,T,"",L.finish),p.pendingcb++,p.lastBufferedRequest=null,L.next?(p.corkedRequestsFree=L.next,L.next=null):p.corkedRequestsFree=new WA(p)}else{for(;b;){var ue=b.chunk,Se=b.encoding,Ue=b.callback,We=p.objectMode?1:ue.length;if(Ry(m,p,!1,We,ue,Se,Ue),b=b.next,p.writing)break}b===null&&(p.lastBufferedRequest=null)}p.bufferedRequestCount=0,p.bufferedRequest=b,p.bufferProcessing=!1}Vn.prototype._write=function(m,p,b){b(new Error("not implemented"))},Vn.prototype._writev=null,Vn.prototype.end=function(m,p,b){var E=this._writableState;typeof m=="function"?(b=m,m=null,p=null):typeof p=="function"&&(b=p,p=null),m!=null&&this.write(m,p),E.corked&&(E.corked=1,this.uncork()),!E.ending&&!E.finished&&zde(this,E,b)};function qA(m){return m.ending&&m.length===0&&m.bufferedRequest===null&&!m.finished&&!m.writing}function HA(m,p){p.prefinished||(p.prefinished=!0,m.emit("prefinish"))}function GA(m,p){var b=qA(p);return b&&(p.pendingcb===0?(HA(m,p),p.finished=!0,m.emit("finish")):HA(m,p)),b}function zde(m,p,b){p.ending=!0,GA(m,p),b&&(p.finished?Lt(b):m.once("finish",b)),p.ended=!0,m.writable=!1}function WA(m){var p=this;this.next=null,this.entry=null,this.finish=function(b){var E=p.entry;for(p.entry=null;E;){var T=E.callback;m.pendingcb--,T(b),E=E.next}m.corkedRequestsFree?m.corkedRequestsFree.next=p:m.corkedRequestsFree=p}}hr(Hi,ln);for(var KA=Object.keys(Vn.prototype),Dy=0;Dy<KA.length;Dy++){var Ly=KA[Dy];Hi.prototype[Ly]||(Hi.prototype[Ly]=Vn.prototype[Ly])}function Hi(m){if(!(this instanceof Hi))return new Hi(m);ln.call(this,m),Vn.call(this,m),m&&m.readable===!1&&(this.readable=!1),m&&m.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,m&&m.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",qde)}function qde(){this.allowHalfOpen||this._writableState.ended||Lt(Hde,this)}function Hde(m){m.end()}hr(zr,Hi);function Gde(m){this.afterTransform=function(p,b){return Wde(m,p,b)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Wde(m,p,b){var E=m._transformState;E.transforming=!1;var T=E.writecb;if(!T)return m.emit("error",new Error("no writecb in Transform class"));E.writechunk=null,E.writecb=null,b!=null&&m.push(b),T(p);var L=m._readableState;L.reading=!1,(L.needReadable||L.length<L.highWaterMark)&&m._read(L.highWaterMark)}function zr(m){if(!(this instanceof zr))return new zr(m);Hi.call(this,m),this._transformState=new Gde(this);var p=this;this._readableState.needReadable=!0,this._readableState.sync=!1,m&&(typeof m.transform=="function"&&(this._transform=m.transform),typeof m.flush=="function"&&(this._flush=m.flush)),this.once("prefinish",function(){typeof this._flush=="function"?this._flush(function(b){JA(p,b)}):JA(p)})}zr.prototype.push=function(m,p){return this._transformState.needTransform=!1,Hi.prototype.push.call(this,m,p)},zr.prototype._transform=function(m,p,b){throw new Error("Not implemented")},zr.prototype._write=function(m,p,b){var E=this._transformState;if(E.writecb=b,E.writechunk=m,E.writeencoding=p,!E.transforming){var T=this._readableState;(E.needTransform||T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}},zr.prototype._read=function(m){var p=this._transformState;p.writechunk!==null&&p.writecb&&!p.transforming?(p.transforming=!0,this._transform(p.writechunk,p.writeencoding,p.afterTransform)):p.needTransform=!0};function JA(m,p){if(p)return m.emit("error",p);var b=m._writableState,E=m._transformState;if(b.length)throw new Error("Calling transform done when ws.length != 0");if(E.transforming)throw new Error("Calling transform done when still transforming");return m.push(null)}hr(Wu,zr);function Wu(m){if(!(this instanceof Wu))return new Wu(m);zr.call(this,m)}Wu.prototype._transform=function(m,p,b){b(null,m)},hr(Gi,o),Gi.Readable=ln,Gi.Writable=Vn,Gi.Duplex=Hi,Gi.Transform=zr,Gi.PassThrough=Wu,Gi.Stream=Gi;function Gi(){o.call(this)}Gi.prototype.pipe=function(m,p){var b=this;function E(We){m.writable&&m.write(We)===!1&&b.pause&&b.pause()}b.on("data",E);function T(){b.readable&&b.resume&&b.resume()}m.on("drain",T),!m._isStdio&&(!p||p.end!==!1)&&(b.on("end",M),b.on("close",ue));var L=!1;function M(){L||(L=!0,m.end())}function ue(){L||(L=!0,typeof m.destroy=="function"&&m.destroy())}function Se(We){if(Ue(),o.listenerCount(this,"error")===0)throw We}b.on("error",Se),m.on("error",Se);function Ue(){b.removeListener("data",E),m.removeListener("drain",T),b.removeListener("end",M),b.removeListener("close",ue),b.removeListener("error",Se),m.removeListener("error",Se),b.removeListener("end",Ue),b.removeListener("close",Ue),m.removeListener("close",Ue)}return b.on("end",Ue),b.on("close",Ue),m.on("close",Ue),m.emit("pipe",b),m};function xs(m){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xs=function(p){return typeof p}:xs=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},xs(m)}function Op(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function YA(m,p){for(var b=0;b<p.length;b++){var E=p[b];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}function Np(m,p,b){return p&&YA(m.prototype,p),b&&YA(m,b),m}function Ip(m,p,b){return p in m?Object.defineProperty(m,p,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[p]=b,m}function XA(m){for(var p=1;p<arguments.length;p++){var b=arguments[p]!=null?arguments[p]:{},E=Object.keys(b);typeof Object.getOwnPropertySymbols=="function"&&(E=E.concat(Object.getOwnPropertySymbols(b).filter(function(T){return Object.getOwnPropertyDescriptor(b,T).enumerable}))),E.forEach(function(T){Ip(m,T,b[T])})}return m}function ZA(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),p&&ky(m,p)}function Rp(m){return Rp=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},Rp(m)}function ky(m,p){return ky=Object.setPrototypeOf||function(E,T){return E.__proto__=T,E},ky(m,p)}function Kde(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function QA(m,p){return p&&(typeof p=="object"||typeof p=="function")?p:Kde(m)}function e9(m){return Xde(m)||t9(m)||Qde()}function Jde(m){return Yde(m)||t9(m)||Zde()}function Yde(m){if(Array.isArray(m)){for(var p=0,b=new Array(m.length);p<m.length;p++)b[p]=m[p];return b}}function Xde(m){if(Array.isArray(m))return m}function t9(m){if(Symbol.iterator in Object(m)||Object.prototype.toString.call(m)==="[object Arguments]")return Array.from(m)}function Zde(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Qde(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var Dp;function efe(){if(typeof Dp=="undefined"){var m=new ArrayBuffer(2),p=new Uint8Array(m),b=new Uint16Array(m);if(p[0]=1,p[1]=2,b[0]===258)Dp="BE";else if(b[0]===513)Dp="LE";else throw new Error("unable to figure out endianess")}return Dp}function tfe(){return typeof C.location!="undefined"?C.location.hostname:""}function nfe(){return[]}function ife(){return 0}function rfe(){return Number.MAX_VALUE}function sfe(){return Number.MAX_VALUE}function ofe(){return[]}function afe(){return"Browser"}function lfe(){return typeof C.navigator!="undefined"?C.navigator.appVersion:""}function cfe(){}function ufe(){}function n9(){return"/tmp"}var dfe=n9,ffe=`
|
|
132
|
-
`,hfe={EOL:ffe,tmpdir:dfe,tmpDir:n9,networkInterfaces:cfe,getNetworkInterfaces:ufe,release:lfe,type:afe,cpus:ofe,totalmem:sfe,freemem:rfe,uptime:ife,loadavg:nfe,hostname:tfe,endianness:efe},Lp=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Ks!="undefined"?Ks:typeof self!="undefined"?self:{},pfe="Expected a function",i9="__lodash_hash_undefined__",r9=1/0,gfe="[object Function]",mfe="[object GeneratorFunction]",vfe="[object Symbol]",bfe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yfe=/^\w*$/,_fe=/^\./,wfe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cfe=/[\\^$.*+?()[\]{}|]/g,Sfe=/\\(\\)?/g,Efe=/^\[object .+?Constructor\]$/,xfe=typeof Lp=="object"&&Lp&&Lp.Object===Object&&Lp,Afe=typeof self=="object"&&self&&self.Object===Object&&self,My=xfe||Afe||Function("return this")();function Pfe(m,p){return m==null?void 0:m[p]}function Tfe(m){var p=!1;if(m!=null&&typeof m.toString!="function")try{p=!!(m+"")}catch(b){}return p}var Ofe=Array.prototype,Nfe=Function.prototype,s9=Object.prototype,Fy=My["__core-js_shared__"],o9=function(){var m=/[^.]+$/.exec(Fy&&Fy.keys&&Fy.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),a9=Nfe.toString,By=s9.hasOwnProperty,l9=s9.toString,Ife=RegExp("^"+a9.call(By).replace(Cfe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),c9=My.Symbol,Rfe=Ofe.splice,Dfe=f9(My,"Map"),Ku=f9(Object,"create"),u9=c9?c9.prototype:void 0,d9=u9?u9.toString:void 0;function _a(m){var p=-1,b=m?m.length:0;for(this.clear();++p<b;){var E=m[p];this.set(E[0],E[1])}}function Lfe(){this.__data__=Ku?Ku(null):{}}function kfe(m){return this.has(m)&&delete this.__data__[m]}function Mfe(m){var p=this.__data__;if(Ku){var b=p[m];return b===i9?void 0:b}return By.call(p,m)?p[m]:void 0}function Ffe(m){var p=this.__data__;return Ku?p[m]!==void 0:By.call(p,m)}function Bfe(m,p){var b=this.__data__;return b[m]=Ku&&p===void 0?i9:p,this}_a.prototype.clear=Lfe,_a.prototype.delete=kfe,_a.prototype.get=Mfe,_a.prototype.has=Ffe,_a.prototype.set=Bfe;function zl(m){var p=-1,b=m?m.length:0;for(this.clear();++p<b;){var E=m[p];this.set(E[0],E[1])}}function jfe(){this.__data__=[]}function Ufe(m){var p=this.__data__,b=kp(p,m);if(b<0)return!1;var E=p.length-1;return b==E?p.pop():Rfe.call(p,b,1),!0}function $fe(m){var p=this.__data__,b=kp(p,m);return b<0?void 0:p[b][1]}function Vfe(m){return kp(this.__data__,m)>-1}function zfe(m,p){var b=this.__data__,E=kp(b,m);return E<0?b.push([m,p]):b[E][1]=p,this}zl.prototype.clear=jfe,zl.prototype.delete=Ufe,zl.prototype.get=$fe,zl.prototype.has=Vfe,zl.prototype.set=zfe;function wa(m){var p=-1,b=m?m.length:0;for(this.clear();++p<b;){var E=m[p];this.set(E[0],E[1])}}function qfe(){this.__data__={hash:new _a,map:new(Dfe||zl),string:new _a}}function Hfe(m){return Mp(this,m).delete(m)}function Gfe(m){return Mp(this,m).get(m)}function Wfe(m){return Mp(this,m).has(m)}function Kfe(m,p){return Mp(this,m).set(m,p),this}wa.prototype.clear=qfe,wa.prototype.delete=Hfe,wa.prototype.get=Gfe,wa.prototype.has=Wfe,wa.prototype.set=Kfe;function kp(m,p){for(var b=m.length;b--;)if(she(m[b][0],p))return b;return-1}function Jfe(m,p){p=Qfe(p,m)?[p]:Zfe(p);for(var b=0,E=p.length;m!=null&&b<E;)m=m[ihe(p[b++])];return b&&b==E?m:void 0}function Yfe(m){if(!p9(m)||the(m))return!1;var p=ohe(m)||Tfe(m)?Ife:Efe;return p.test(rhe(m))}function Xfe(m){if(typeof m=="string")return m;if(Uy(m))return d9?d9.call(m):"";var p=m+"";return p=="0"&&1/m==-r9?"-0":p}function Zfe(m){return h9(m)?m:nhe(m)}function Mp(m,p){var b=m.__data__;return ehe(p)?b[typeof p=="string"?"string":"hash"]:b.map}function f9(m,p){var b=Pfe(m,p);return Yfe(b)?b:void 0}function Qfe(m,p){if(h9(m))return!1;var b=typeof m;return b=="number"||b=="symbol"||b=="boolean"||m==null||Uy(m)?!0:yfe.test(m)||!bfe.test(m)||p!=null&&m in Object(p)}function ehe(m){var p=typeof m;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?m!=="__proto__":m===null}function the(m){return!!o9&&o9 in m}var nhe=jy(function(m){m=lhe(m);var p=[];return _fe.test(m)&&p.push(""),m.replace(wfe,function(b,E,T,L){p.push(T?L.replace(Sfe,"$1"):E||b)}),p});function ihe(m){if(typeof m=="string"||Uy(m))return m;var p=m+"";return p=="0"&&1/m==-r9?"-0":p}function rhe(m){if(m!=null){try{return a9.call(m)}catch(p){}try{return m+""}catch(p){}}return""}function jy(m,p){if(typeof m!="function"||p&&typeof p!="function")throw new TypeError(pfe);var b=function(){var E=arguments,T=p?p.apply(this,E):E[0],L=b.cache;if(L.has(T))return L.get(T);var M=m.apply(this,E);return b.cache=L.set(T,M),M};return b.cache=new(jy.Cache||wa),b}jy.Cache=wa;function she(m,p){return m===p||m!==m&&p!==p}var h9=Array.isArray;function ohe(m){var p=p9(m)?l9.call(m):"";return p==gfe||p==mfe}function p9(m){var p=typeof m;return!!m&&(p=="object"||p=="function")}function ahe(m){return!!m&&typeof m=="object"}function Uy(m){return typeof m=="symbol"||ahe(m)&&l9.call(m)==vfe}function lhe(m){return m==null?"":Xfe(m)}function che(m,p,b){var E=m==null?void 0:Jfe(m,p);return E===void 0?b:E}var $y=che;function uhe(m,p,b){return m[p]===void 0?b:m[p]}function g9(m,p,b){var E=Array.isArray(p)?p:p.split("."),T=e9(E),L=T[0],M=T.slice(1);return XA({},m,Ip({},L,E.length>1?g9(m[L]||{},M,b):b))}function m9(m,p){var b=Array.isArray(p)?p:p.split("."),E=e9(b),T=E[0],L=E.slice(1);return xs(m[T])!=="object"?m:b.length===1?Object.keys(m).filter(function(M){return M!==T}).reduce(function(M,ue){return Object.assign(M,Ip({},ue,m[ue]))},{}):Object.keys(m).reduce(function(M,ue){return XA({},M,Ip({},ue,ue!==T?m[ue]:m9(m[T],L)))},{})}function dhe(m,p){try{return m.push.apply(m,Jde(p)),m}catch(b){return m.concat(p)}}function fhe(m,p){var b=!0;return m.reduce(function(E,T){return T==null&&(T=""),b?(b=!1,"".concat(T)):"".concat(E).concat(p).concat(T)},"")}var As={getProp:uhe,setProp:g9,unsetProp:m9,fastJoin:fhe,flattenReducer:dhe},v9=As.getProp,b9=As.fastJoin,hhe=As.flattenReducer,phe=function(){function m(p){Op(this,m),this.opts=this.preprocessOpts(p)}return Np(m,[{key:"preprocessOpts",value:function(b){var E=Object.assign({},b);return E.transforms=Array.isArray(E.transforms)?E.transforms:E.transforms?[E.transforms]:[],E.delimiter=E.delimiter||",",E.eol=E.eol||hfe.EOL,E.quote=typeof E.quote=="string"?E.quote:'"',E.escapedQuote=typeof E.escapedQuote=="string"?E.escapedQuote:"".concat(E.quote).concat(E.quote),E.header=E.header!==!1,E.includeEmptyRows=E.includeEmptyRows||!1,E.withBOM=E.withBOM||!1,E}},{key:"preprocessFieldsInfo",value:function(b){var E=this;return b.map(function(T){if(typeof T=="string")return{label:T,value:T.includes(".")||T.includes("[")?function(Se){return $y(Se,T,E.opts.defaultValue)}:function(Se){return v9(Se,T,E.opts.defaultValue)}};if(xs(T)==="object"){var L="default"in T?T.default:E.opts.defaultValue;if(typeof T.value=="string")return{label:T.label||T.value,value:T.value.includes(".")||T.value.includes("[")?function(Se){return $y(Se,T.value,L)}:function(Se){return v9(Se,T.value,L)}};if(typeof T.value=="function"){var M=T.label||T.value.name||"",ue={label:M,default:L};return{label:M,value:function(Ue){var We=T.value(Ue,ue);return We==null?L:We}}}}throw new Error("Invalid field info option. "+JSON.stringify(T))})}},{key:"getHeader",value:function(){var b=this;return b9(this.opts.fields.map(function(E){return b.processValue(E.label)}),this.opts.delimiter)}},{key:"preprocessRow",value:function(b){return this.opts.transforms.reduce(function(E,T){return E.map(function(L){return T(L)}).reduce(hhe,[])},[b])}},{key:"processRow",value:function(b){var E=this;if(b){var T=this.opts.fields.map(function(L){return E.processCell(b,L)});if(!(!this.opts.includeEmptyRows&&T.every(function(L){return L===void 0})))return b9(T,this.opts.delimiter)}}},{key:"processCell",value:function(b,E){return this.processValue(E.value(b))}},{key:"processValue",value:function(b){if(b!=null){var E=xs(b);if(E!=="boolean"&&E!=="number"&&E!=="string"){if(b=JSON.stringify(b),b===void 0)return;b[0]==='"'&&(b=b.replace(/^"(.+)"$/,"$1"))}return typeof b=="string"&&(this.opts.excelStrings?(b.includes(this.opts.quote)&&(b=b.replace(new RegExp(this.opts.quote,"g"),"".concat(this.opts.escapedQuote).concat(this.opts.escapedQuote))),b='"=""'.concat(b,'"""')):(b.includes(this.opts.quote)&&(b=b.replace(new RegExp(this.opts.quote,"g"),this.opts.escapedQuote)),b="".concat(this.opts.quote).concat(b).concat(this.opts.quote))),b}}}]),m}(),Vy=phe,ghe=As.fastJoin,mhe=As.flattenReducer,vhe=function(m){ZA(p,m);function p(b){var E;return Op(this,p),E=QA(this,Rp(p).call(this,b)),E.opts.fields&&(E.opts.fields=E.preprocessFieldsInfo(E.opts.fields)),E}return Np(p,[{key:"parse",value:function(E){var T=this.preprocessData(E);this.opts.fields||(this.opts.fields=T.reduce(function(Se,Ue){return Object.keys(Ue).forEach(function(We){Se.includes(We)||Se.push(We)}),Se},[]),this.opts.fields=this.preprocessFieldsInfo(this.opts.fields));var L=this.opts.header?this.getHeader():"",M=this.processData(T),ue=(this.opts.withBOM?"\uFEFF":"")+L+(L&&M?this.opts.eol:"")+M;return ue}},{key:"preprocessData",value:function(E){var T=this,L=Array.isArray(E)?E:[E];if(!this.opts.fields&&(L.length===0||xs(L[0])!=="object"))throw new Error('Data should not be empty or the "fields" option should be included');return this.opts.transforms.length===0?L:L.map(function(M){return T.preprocessRow(M)}).reduce(mhe,[])}},{key:"processData",value:function(E){var T=this;return ghe(E.map(function(L){return T.processRow(L)}).filter(function(L){return L}),this.opts.eol)}}]),p}(Vy),y9=vhe,Et={},_9=Et.LEFT_BRACE=1,Fp=Et.RIGHT_BRACE=2,w9=Et.LEFT_BRACKET=3,zy=Et.RIGHT_BRACKET=4,Bp=Et.COLON=5,jp=Et.COMMA=6,C9=Et.TRUE=7,S9=Et.FALSE=8,E9=Et.NULL=9,Up=Et.STRING=10,x9=Et.NUMBER=11,Ca=Et.START=17,A9=Et.STOP=18,P9=Et.TRUE1=33,T9=Et.TRUE2=34,O9=Et.TRUE3=35,N9=Et.FALSE1=49,I9=Et.FALSE2=50,R9=Et.FALSE3=51,D9=Et.FALSE4=52,L9=Et.NULL1=65,k9=Et.NULL2=66,M9=Et.NULL3=67,F9=Et.NUMBER1=81,qy=Et.NUMBER3=83,pr=Et.STRING1=97,B9=Et.STRING2=98,j9=Et.STRING3=99,bhe=Et.STRING4=100,yhe=Et.STRING5=101,U9=Et.STRING6=102,ql=Et.VALUE=113,Hy=Et.KEY=114,$p=Et.OBJECT=129,Vp=Et.ARRAY=130,_he="\\".charCodeAt(0),whe="/".charCodeAt(0),Che="\b".charCodeAt(0),She="\f".charCodeAt(0),Ehe=`
|
|
133
|
-
`.charCodeAt(0),xhe="\r".charCodeAt(0),Ahe=" ".charCodeAt(0),zp=64*1024;function bo(){this.tState=Ca,this.value=void 0,this.string=void 0,this.stringBuffer=B.alloc?B.alloc(zp):new B(zp),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=ql,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new B(2),3:new B(3),4:new B(4)},this.offset=-1}bo.toknam=function(m){for(var p=Object.keys(Et),b=0,E=p.length;b<E;b++){var T=p[b];if(Et[T]===m)return T}return m&&"0x"+m.toString(16)};var Wi=bo.prototype;Wi.onError=function(m){throw m},Wi.charError=function(m,p){this.tState=A9,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(m[p]))+" at position "+p+" in state "+bo.toknam(this.tState)))},Wi.appendStringChar=function(m){this.stringBufferOffset>=zp&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=m},Wi.appendStringBuf=function(m,p,b){var E=m.length;typeof p=="number"&&(typeof b=="number"?b<0?E=m.length-p+b:E=b-p:E=m.length-p),E<0&&(E=0),this.stringBufferOffset+E>zp&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),m.copy(this.stringBuffer,this.stringBufferOffset,p,b),this.stringBufferOffset+=E},Wi.write=function(m){typeof m=="string"&&(m=new B(m));for(var p,b=0,E=m.length;b<E;b++)if(this.tState===Ca){if(p=m[b],this.offset++,p===123)this.onToken(_9,"{");else if(p===125)this.onToken(Fp,"}");else if(p===91)this.onToken(w9,"[");else if(p===93)this.onToken(zy,"]");else if(p===58)this.onToken(Bp,":");else if(p===44)this.onToken(jp,",");else if(p===116)this.tState=P9;else if(p===102)this.tState=N9;else if(p===110)this.tState=L9;else if(p===34)this.string="",this.stringBufferOffset=0,this.tState=pr;else if(p===45)this.string="-",this.tState=F9;else if(p>=48&&p<64)this.string=String.fromCharCode(p),this.tState=qy;else if(!(p===32||p===9||p===10||p===13))return this.charError(m,b)}else if(this.tState===pr)if(p=m[b],this.bytes_remaining>0){for(var T=0;T<this.bytes_remaining;T++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+T]=m[T];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,b=b+T-1}else if(this.bytes_remaining===0&&p>=128){if(p<=193||p>244)return this.onError(new Error("Invalid UTF-8 character at position "+b+" in state "+bo.toknam(this.tState)));if(p>=194&&p<=223&&(this.bytes_in_sequence=2),p>=224&&p<=239&&(this.bytes_in_sequence=3),p>=240&&p<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+b>m.length){for(var L=0;L<=m.length-1-b;L++)this.temp_buffs[this.bytes_in_sequence][L]=m[b+L];this.bytes_remaining=b+this.bytes_in_sequence-m.length,b=m.length-1}else this.appendStringBuf(m,b,b+this.bytes_in_sequence),b=b+this.bytes_in_sequence-1}else if(p===34)this.tState=Ca,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(Up,this.string),this.offset+=B.byteLength(this.string,"utf8")+1,this.string=void 0;else if(p===92)this.tState=B9;else if(p>=32)this.appendStringChar(p);else return this.charError(m,b);else if(this.tState===B9)if(p=m[b],p===34)this.appendStringChar(p),this.tState=pr;else if(p===92)this.appendStringChar(_he),this.tState=pr;else if(p===47)this.appendStringChar(whe),this.tState=pr;else if(p===98)this.appendStringChar(Che),this.tState=pr;else if(p===102)this.appendStringChar(She),this.tState=pr;else if(p===110)this.appendStringChar(Ehe),this.tState=pr;else if(p===114)this.appendStringChar(xhe),this.tState=pr;else if(p===116)this.appendStringChar(Ahe),this.tState=pr;else if(p===117)this.unicode="",this.tState=j9;else return this.charError(m,b);else if(this.tState===j9||this.tState===bhe||this.tState===yhe||this.tState===U9)if(p=m[b],p>=48&&p<64||p>64&&p<=70||p>96&&p<=102){if(this.unicode+=String.fromCharCode(p),this.tState++===U9){var M=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&M>=56320&&M<57343+1?(this.appendStringBuf(new B(String.fromCharCode(this.highSurrogate,M))),this.highSurrogate=void 0):this.highSurrogate===void 0&&M>=55296&&M<56319+1?this.highSurrogate=M:(this.highSurrogate!==void 0&&(this.appendStringBuf(new B(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new B(String.fromCharCode(M)))),this.tState=pr}}else return this.charError(m,b);else if(this.tState===F9||this.tState===qy)switch(p=m[b],p){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(p),this.tState=qy;break;default:this.tState=Ca;var ue=Number(this.string);if(isNaN(ue))return this.charError(m,b);this.string.match(/[0-9]+/)==this.string&&ue.toString()!=this.string?this.onToken(Up,this.string):this.onToken(x9,ue),this.offset+=this.string.length-1,this.string=void 0,b--;break}else if(this.tState===P9)if(m[b]===114)this.tState=T9;else return this.charError(m,b);else if(this.tState===T9)if(m[b]===117)this.tState=O9;else return this.charError(m,b);else if(this.tState===O9)if(m[b]===101)this.tState=Ca,this.onToken(C9,!0),this.offset+=3;else return this.charError(m,b);else if(this.tState===N9)if(m[b]===97)this.tState=I9;else return this.charError(m,b);else if(this.tState===I9)if(m[b]===108)this.tState=R9;else return this.charError(m,b);else if(this.tState===R9)if(m[b]===115)this.tState=D9;else return this.charError(m,b);else if(this.tState===D9)if(m[b]===101)this.tState=Ca,this.onToken(S9,!1),this.offset+=4;else return this.charError(m,b);else if(this.tState===L9)if(m[b]===117)this.tState=k9;else return this.charError(m,b);else if(this.tState===k9)if(m[b]===108)this.tState=M9;else return this.charError(m,b);else if(this.tState===M9)if(m[b]===108)this.tState=Ca,this.onToken(E9,null),this.offset+=3;else return this.charError(m,b)},Wi.onToken=function(m,p){},Wi.parseError=function(m,p){this.tState=A9,this.onError(new Error("Unexpected "+bo.toknam(m)+(p?"("+JSON.stringify(p)+")":"")+" in state "+bo.toknam(this.state)))},Wi.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},Wi.pop=function(){var m=this.value,p=this.stack.pop();this.value=p.value,this.key=p.key,this.mode=p.mode,this.emit(m),this.mode||(this.state=ql)},Wi.emit=function(m){this.mode&&(this.state=jp),this.onValue(m)},Wi.onValue=function(m){},Wi.onToken=function(m,p){if(this.state===ql)if(m===Up||m===x9||m===C9||m===S9||m===E9)this.value&&(this.value[this.key]=p),this.emit(p);else if(m===_9)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=Hy,this.mode=$p;else if(m===w9)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=Vp,this.state=ql;else if(m===Fp)if(this.mode===$p)this.pop();else return this.parseError(m,p);else if(m===zy)if(this.mode===Vp)this.pop();else return this.parseError(m,p);else return this.parseError(m,p);else if(this.state===Hy)if(m===Up)this.key=p,this.state=Bp;else if(m===Fp)this.pop();else return this.parseError(m,p);else if(this.state===Bp)if(m===Bp)this.state=ql;else return this.parseError(m,p);else if(this.state===jp)if(m===jp)this.mode===Vp?(this.key++,this.state=ql):this.mode===$p&&(this.state=Hy);else if(m===zy&&this.mode===Vp||m===Fp&&this.mode===$p)this.pop();else return this.parseError(m,p);else return this.parseError(m,p)},bo.C=Et;var qp=bo,Phe=Gi.Transform,The=function(m){ZA(p,m);function p(b,E){var T;return Op(this,p),T=QA(this,Rp(p).call(this,E)),Object.getOwnPropertyNames(Vy.prototype).forEach(function(L){return T[L]=Vy.prototype[L]}),T.opts=T.preprocessOpts(b),T._data="",T._hasWritten=!1,T._readableState.objectMode?T.initObjectModeParse():T.opts.ndjson?T.initNDJSONParse():T.initJSONParser(),T.opts.withBOM&&T.push("\uFEFF"),T.opts.fields&&(T.opts.fields=T.preprocessFieldsInfo(T.opts.fields),T.pushHeader()),T}return Np(p,[{key:"initObjectModeParse",value:function(){var E=this;this.parser={write:function(L){E.pushLine(L)},getPendingData:function(){}}}},{key:"initNDJSONParse",value:function(){var E=this;this.parser={_data:"",write:function(L){this._data+=L.toString();var M=this._data.split(`
|
|
134
|
-
`).map(function(Se){return Se.trim()}).filter(function(Se){return Se!==""}),ue=!1;M.forEach(function(Se,Ue){try{E.pushLine(JSON.parse(Se))}catch(We){Ue===M.length-1?ue=!0:(We.message="Invalid JSON (".concat(Se,")"),E.emit("error",We))}}),this._data=ue?this._data.slice(this._data.lastIndexOf(`
|
|
135
|
-
`)):""},getPendingData:function(){return this._data}}}},{key:"initJSONParser",value:function(){var E=this;this.parser=new qp,this.parser.onValue=function(T){this.stack.length===this.depthToEmit&&E.pushLine(T)},this.parser._onToken=this.parser.onToken,this.parser.onToken=function(T,L){E.parser._onToken(T,L),this.stack.length===0&&!E.opts.fields&&this.mode!==qp.C.ARRAY&&this.mode!==qp.C.OBJECT&&this.onError(new Error('Data should not be empty or the "fields" option should be included')),this.stack.length===1&&(this.depthToEmit===void 0&&(this.depthToEmit=this.mode===qp.C.ARRAY?1:0),this.depthToEmit!==0&&this.stack.length===1&&(this.value=void 0))},this.parser.getPendingData=function(){return this.value},this.parser.onError=function(T){T.message.includes("Unexpected")&&(T.message="Invalid JSON (".concat(T.message,")")),E.emit("error",T)}}},{key:"_transform",value:function(E,T,L){this.parser.write(E),L()}},{key:"_flush",value:function(E){this.parser.getPendingData()&&E(new Error("Invalid data received from stdin",this.parser.getPendingData())),E()}},{key:"pushHeader",value:function(){if(this.opts.header){var E=this.getHeader();this.emit("header",E),this.push(E),this._hasWritten=!0}}},{key:"pushLine",value:function(E){var T=this,L=this.preprocessRow(E);this._hasWritten||(this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(Object.keys(L[0])),this.pushHeader()),L.forEach(function(M){var ue=T.processRow(M,T.opts);ue!==void 0&&(T.emit("line",ue),T.push(T._hasWritten?T.opts.eol+ue:ue),T._hasWritten=!0)})}}]),p}(Phe),$9=The,Ohe=Gi.Transform,Nhe=As.fastJoin,Ihe=function(){function m(p,b){Op(this,m),this.input=new Ohe(b),this.input._read=function(){},this.transform=new $9(p,b),this.processor=this.input.pipe(this.transform)}return Np(m,[{key:"fromInput",value:function(b){if(this._input)throw new Error("Async parser already has an input.");return this._input=b,this.input=this._input.pipe(this.processor),this}},{key:"throughTransform",value:function(b){if(this._output)throw new Error("Can't add transforms once an output has been added.");return this.processor=this.processor.pipe(b),this}},{key:"toOutput",value:function(b){if(this._output)throw new Error("Async parser already has an output.");return this._output=b,this.processor=this.processor.pipe(b),this}},{key:"promise",value:function(){var b=this,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return new Promise(function(T,L){if(!E){b.processor.on("finish",function(){return T()}).on("error",function(ue){return L(ue)});return}var M=[];b.processor.on("data",function(ue){return M.push(ue.toString())}).on("finish",function(){return T(Nhe(M,""))}).on("error",function(ue){return L(ue)})})}}]),m}(),V9=Ihe;function Rhe(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=m.objects,b=p===void 0?!0:p,E=m.arrays,T=E===void 0?!1:E,L=m.separator,M=L===void 0?".":L;function ue(Se,Ue,We){return Object.keys(Se).forEach(function(tt){var Xt=We?"".concat(We).concat(M).concat(tt):tt,$t=Se[tt];if(b&&xs($t)==="object"&&$t!==null&&!Array.isArray($t)&&Object.prototype.toString.call($t.toJSON)!=="[object Function]"&&Object.keys($t).length){ue($t,Ue,Xt);return}if(T&&Array.isArray($t)){ue($t,Ue,Xt);return}Ue[Xt]=$t}),Ue}return function(Se){return ue(Se,{})}}var Dhe=Rhe,Lhe=As.setProp,khe=As.unsetProp,z9=As.flattenReducer;function Gy(m,p){return Object.keys(m).reduce(function(b,E){var T=p?"".concat(p,".").concat(E):E,L=m[E];return xs(L)==="object"&&L!==null&&!Array.isArray(L)&&Object.prototype.toString.call(L.toJSON)!=="[object Function]"&&Object.keys(L).length?b=b.concat(Gy(L,T)):Array.isArray(L)&&(b.push(T),b=b.concat(L.map(function(M){return Gy(M,T)}).reduce(z9,[]).filter(function(M,ue,Se){return Se.indexOf(M)!==ue}))),b},[])}function Mhe(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=m.paths,b=p===void 0?void 0:p,E=m.blankOut,T=E===void 0?!1:E;function L(M,ue){return M.map(function(Se){var Ue=$y(Se,ue);return Array.isArray(Ue)?Ue.length?Ue.map(function(We,tt){var Xt=T&&tt>0?{}:Se;return Lhe(Xt,ue,We)}):khe(Se,ue):Se}).reduce(z9,[])}return b=Array.isArray(b)?b:b?[b]:void 0,function(M){return(b||Gy(M)).reduce(L,[M])}}var Fhe=Mhe,q9=Gi.Readable,H9=y9,G9=V9,W9=$9,K9=function(p,b){return new y9(b).parse(p)},J9=function(p,b,E){try{p instanceof q9||(E=Object.assign({},E,{objectMode:!0}));var T=new V9(b,E),L=T.promise();return Array.isArray(p)?(p.forEach(function(M){return T.input.push(M)}),T.input.push(null)):p instanceof q9?T.fromInput(p):(T.input.push(p),T.input.push(null)),L}catch(M){return Promise.reject(M)}},Y9={flatten:Dhe,unwind:Fhe},Bhe={Parser:H9,AsyncParser:G9,Transform:W9,parse:K9,parseAsync:J9,transforms:Y9};n.AsyncParser=G9,n.Parser=H9,n.Transform=W9,n.default=Bhe,n.parse=K9,n.parseAsync=J9,n.transforms=Y9,Object.defineProperty(n,"__esModule",{value:!0})})})(sv,sv.exports);var MJ=sv.exports;const ov={entitys:[{type:"maltego.AS",columnsFields:["maltego.AS","AS Number","Attachments"],columnsFieldsTitle:{"maltego.AS":"EntityID","AS Number":"as.number",Attachments:"property.atts31415237681098"}},{type:"maltego.CVE",columnsFields:["maltego.CVE","CVSS","CVSS Rating Color","CVE","Attachments"],columnsFieldsTitle:{"maltego.CVE":"EntityID",CVSS:"cvss","CVSS Rating Color":"cvssRatingColor",CVE:"text",Attachments:"property.atts31415237681098"}},{type:"maltego.Document",columnsFields:["maltego.Document","Title","Meta-Data","URL","Attachments"],columnsFieldsTitle:{"maltego.Document":"EntityID",Title:"title","Meta-Data":"document.meta-data",URL:"url",Attachments:"property.atts31415237681098"}},{type:"maltego.Domain",columnsFields:["maltego.Domain","Domain Name","WHOIS Info","Attachments"],columnsFieldsTitle:{"maltego.Domain":"EntityID","Domain Name":"fqdn","WHOIS Info":"whois-info",Attachments:"property.atts31415237681098"}},{type:"maltego.EmailAddress",columnsFields:["maltego.EmailAddress","Email Address","Attachments"],columnsFieldsTitle:{"maltego.EmailAddress":"EntityID","Email Address":"email",Attachments:"property.atts31415237681098"}},{type:"maltego.Hash",columnsFields:["maltego.Hash","Hash","Hash Type","Owner","Before","After","Included Media Types","Excluded Media Types","Attachments"],columnsFieldsTitle:{"maltego.Hash":"EntityID",Hash:"properties.hash","Hash Type":"type",Owner:"owner",Before:"before",After:"after","Included Media Types":"includeMediaType","Excluded Media Types":"excludeMediaType",Attachments:"property.atts31415237681098"}},{type:"maltego.IPv4Address",columnsFields:["maltego.IPv4Address","IP Address","Internal","Attachments"],columnsFieldsTitle:{"maltego.IPv4Address":"EntityID","IP Address":"ipv4-address",Internal:"ipaddress.internal",Attachments:"property.atts31415237681098"}},{type:"maltego.Organization",columnsFields:["maltego.Organization","Name","Attachments"],columnsFieldsTitle:{"maltego.Organization":"EntityID",Name:"title",Attachments:"property.atts31415237681098"}},{type:"maltego.URL",columnsFields:["maltego.URL","Short title","URL","Title","Attachments"],columnsFieldsTitle:{"maltego.URL":"EntityID","Short title":"short-title",URL:"url",Title:"title",Attachments:"property.atts31415237681098"}},{type:"maltego.Service",columnsFields:["maltego.Service","Description","Port","Service banner","Service","Attachments"],columnsFieldsTitle:{"maltego.Service":"EntityID",Description:"service.name",Port:"port.number","Service banner":"banner.text",Service:"properties.service",Attachments:"property.atts31415237681098"}},{type:"maltego.UniqueIdentifier",columnsFields:["maltego.UniqueIdentifier","UniqueIdentifier","Identifier Type","Attachments"],columnsFieldsTitle:{"maltego.UniqueIdentifier":"EntityID",UniqueIdentifier:"properties.uniqueidentifier","Identifier Type":"identifierType",Attachments:"property.atts31415237681098"}},{type:"maltego.X509Certificate",columnsFields:["maltego.X509Certificate","Subject","Issuer","Subject DN","Issuer DN","SKI","AKI","Serial","SAN","Usage","Issuance ID","Valid From","Valid Until","Country","Organization","Attachments"],columnsFieldsTitle:{"maltego.X509Certificate":"EntityID",Subject:"subject",Issuer:"issuer","Subject DN":"subjectDN","Issuer DN":"issuerDN",SKI:"ski",AKI:"aki",Serial:"serial",SAN:"san",Usage:"usage","Issuance ID":"issuanceId","Valid From":"validFrom","Valid Until":"validTo",Country:"country",Organization:"organization",Attachments:"property.atts31415237681098"}},{type:"yourorganization.CertHttps",columnsFields:["yourorganization.CertHttps","Cert Https"]},{type:"yourorganization.PublicReport",columnsFields:["yourorganization.PublicReport","Public Report"]}],link:{columnsFields:["Maltego Link","Source Entity ID","Target Entity ID","Label","Show Label","Color","Style","Thickness","Description"],columnsFieldsTitle:{"Maltego Link":"LinkID","Source Entity ID":"SourceEntityID","Target Entity ID":"TargetEntityID",Label:"maltego.link.manual.type","Show Label":"maltego.link.show-label",Color:"maltego.link.color",Style:"maltego.link.style",Thickness:"maltego.link.thickness",Description:"maltego.link.manual.description"}}},M8={nodeMap:{nodeType:"maltego.Service",ip:"maltego.IPv4Address",domain:"maltego.Domain",url:"maltego.URL",md5:"maltego.Hash",family:"maltego.AS",org:"maltego.Organization",thumbprint_md5:"maltego.X509Certificate",cert_https:"maltego.UniqueIdentifier",vul:"maltego.CVE",report:"maltego.Document",email:"maltego.EmailAddress"},nodeMapReverse:{"maltego.Service":"nodeType","maltego.IPv4Address":"ip","maltego.Domain":"domain","maltego.URL":"url","maltego.Hash":"md5","maltego.AS":"family","maltego.Organization":"org","maltego.X509Certificate":"thumbprint_md5","maltego.UniqueIdentifier":"cert_https","maltego.CVE":"vul","maltego.Document":"report","maltego.EmailAddress":"email"}};class FJ{constructor(t){this.nodesData=this.formatNodesData(t.nodes),this.linksData=t.links,this.mtgEntitysData=[],this.mtgLinksData=[],this.entityIdPrefix=this.getRanDomStr(10),this.csv="",console.log(t),console.log(this.nodesData),this.init()}init(){for(const t in this.nodesData)this.csv+=this.generateEntityRowsCsv(t,this.nodesData[t])+`
|
|
136
|
-
|
|
137
|
-
`;this.linksData.length>0&&(this.csv+=this.generateLinksRowsCsv(this.linksData))}formatNodesData(t){const n={};let r="";for(let s=0;s<t.length;s++)r=t[s].type,n[r]?n[r].push(t[s]):n[r]=new Array(t[s]);return n}generateEntityRowsCsv(t,n){const r=M8.nodeMap[t],s=this.getEntityConfigDetail(r),o=this.formatEntityData(s,n),a=s[0].columnsFields.concat(this.getNodeDetailFields(n).fields);return console.log(o),this.generateCsv(a,o)}getNodeDetailFields(t){const n=t[0];let r=["tags"];const s={};return n&&n.detail&&n.detail.info&&n.detail.info.basic&&(r=r.concat(Object.keys(n.detail.info.basic))),r.map(o=>{s[o]=o}),{fields:r,fieldsTitle:s}}getNodeDetailObj(t){let n={},r=[];return t&&t.detail&&(t.detail.tags.length>0&&(r=t.detail.tags.map(s=>s.name)),n.tags=r.join(),t.detail.info&&t.detail.info.basic&&(n=Object.assign({},n,t.detail.info.basic))),n}formatEntityData(t,n){const r=t[0].columnsFields,s=t[0].columnsFieldsTitle,o=Object.assign({},s,this.getNodeDetailFields(n).fieldsTitle);let a=new Array(o);const l=n.map(c=>{let u={};const d=this.entityIdPrefix+this.getRanDomStr(3);return r.map((f,h)=>{h===0?u[f]=d:h===1?u[f]=c.id:u[f]=""}),u.entityId=d,u.nodeId=c.id,u=Object.assign({},u,this.getNodeDetailObj(c)),u});return this.mtgEntitysData=this.mtgEntitysData.concat(l),a=a.concat(l),a}getEntityConfigDetail(t){return ov.entitys.filter(r=>r.type===t)}generateLinksRowsCsv(t){const n=ov.link,r=this.formatLinkData(n,t);return console.log(r),this.generateCsv(n.columnsFields,r)}formatLinkData(t,n){const r=t.columnsFields;let s=new Array(t.columnsFieldsTitle);const o=n.map(a=>{const l={},c=a.target.type==="nodeType"?a.target.name:"";return l[r[0]]=this.entityIdPrefix+this.getRanDomStr(3),l[r[1]]=this.getLinkEntityId(a.source.id),l[r[2]]=this.getLinkEntityId(a.target.id),l[r[3]]=c,l[r[4]]=0,l.sourceId=a.source.id,l.targetId=a.target.id,l});return this.mtgLinksData=this.mtgLinksData.concat(o),s=s.concat(o),s}getLinkEntityId(t){const n=this.mtgEntitysData.filter(r=>r.nodeId===t);return n?n[0].entityId:""}generateEntityID(){return this.entityIdPrefix+this.getRanDomStr(3)}generateCsv(t,n){return new MJ.Parser({fields:t,withBOM:!0}).parse(n)}getRanDomStr(t){const n="0123456789abcdefghijklmnopqrstuvwxyz",r=n.length;let s="";for(let o=0;o<t;o++)s+=n.charAt(Math.ceil(Math.random()*(r-1)));return s}outputCsvFile(){return this.csv}}var F8=typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},Dr=[],Ii=[],BJ=typeof Uint8Array!="undefined"?Uint8Array:Array,av=!1;function B8(){av=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)Dr[t]=e[t],Ii[e.charCodeAt(t)]=t;Ii["-".charCodeAt(0)]=62,Ii["_".charCodeAt(0)]=63}function jJ(e){av||B8();var t,n,r,s,o,a,l=e.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=e[l-2]==="="?2:e[l-1]==="="?1:0,a=new BJ(l*3/4-o),r=o>0?l-4:l;var c=0;for(t=0,n=0;t<r;t+=4,n+=3)s=Ii[e.charCodeAt(t)]<<18|Ii[e.charCodeAt(t+1)]<<12|Ii[e.charCodeAt(t+2)]<<6|Ii[e.charCodeAt(t+3)],a[c++]=s>>16&255,a[c++]=s>>8&255,a[c++]=s&255;return o===2?(s=Ii[e.charCodeAt(t)]<<2|Ii[e.charCodeAt(t+1)]>>4,a[c++]=s&255):o===1&&(s=Ii[e.charCodeAt(t)]<<10|Ii[e.charCodeAt(t+1)]<<4|Ii[e.charCodeAt(t+2)]>>2,a[c++]=s>>8&255,a[c++]=s&255),a}function UJ(e){return Dr[e>>18&63]+Dr[e>>12&63]+Dr[e>>6&63]+Dr[e&63]}function $J(e,t,n){for(var r,s=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],s.push(UJ(r));return s.join("")}function j8(e){av||B8();for(var t,n=e.length,r=n%3,s="",o=[],a=16383,l=0,c=n-r;l<c;l+=a)o.push($J(e,l,l+a>c?c:l+a));return r===1?(t=e[n-1],s+=Dr[t>>2],s+=Dr[t<<4&63],s+="=="):r===2&&(t=(e[n-2]<<8)+e[n-1],s+=Dr[t>>10],s+=Dr[t>>4&63],s+=Dr[t<<2&63],s+="="),o.push(s),o.join("")}function $f(e,t,n,r,s){var o,a,l=s*8-r-1,c=(1<<l)-1,u=c>>1,d=-7,f=n?s-1:0,h=n?-1:1,g=e[t+f];for(f+=h,o=g&(1<<-d)-1,g>>=-d,d+=l;d>0;o=o*256+e[t+f],f+=h,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=r;d>0;a=a*256+e[t+f],f+=h,d-=8);if(o===0)o=1-u;else{if(o===c)return a?NaN:(g?-1:1)*(1/0);a=a+Math.pow(2,r),o=o-u}return(g?-1:1)*a*Math.pow(2,o-r)}function U8(e,t,n,r,s,o){var a,l,c,u=o*8-s-1,d=(1<<u)-1,f=d>>1,h=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=r?0:o-1,v=r?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+f>=1?t+=h/c:t+=h*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=d?(l=0,a=d):a+f>=1?(l=(t*c-1)*Math.pow(2,s),a=a+f):(l=t*Math.pow(2,f-1)*Math.pow(2,s),a=0));s>=8;e[n+g]=l&255,g+=v,l/=256,s-=8);for(a=a<<s|l,u+=s;u>0;e[n+g]=a&255,g+=v,a/=256,u-=8);e[n+g-v]|=y*128}var VJ={}.toString,$8=Array.isArray||function(e){return VJ.call(e)=="[object Array]"},zJ=50;ge.TYPED_ARRAY_SUPPORT=F8.TYPED_ARRAY_SUPPORT!==void 0?F8.TYPED_ARRAY_SUPPORT:!0,Vf();function Vf(){return ge.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ps(e,t){if(Vf()<t)throw new RangeError("Invalid typed array length");return ge.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=ge.prototype):(e===null&&(e=new ge(t)),e.length=t),e}function ge(e,t,n){if(!ge.TYPED_ARRAY_SUPPORT&&!(this instanceof ge))return new ge(e,t,n);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return lv(this,e)}return V8(this,e,t,n)}ge.poolSize=8192,ge._augment=function(e){return e.__proto__=ge.prototype,e};function V8(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?GJ(e,t,n,r):typeof t=="string"?HJ(e,t,n):WJ(e,t)}ge.from=function(e,t,n){return V8(null,e,t,n)},ge.TYPED_ARRAY_SUPPORT&&(ge.prototype.__proto__=Uint8Array.prototype,ge.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&ge[Symbol.species]);function z8(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function qJ(e,t,n,r){return z8(t),t<=0?ps(e,t):n!==void 0?typeof r=="string"?ps(e,t).fill(n,r):ps(e,t).fill(n):ps(e,t)}ge.alloc=function(e,t,n){return qJ(null,e,t,n)};function lv(e,t){if(z8(t),e=ps(e,t<0?0:uv(t)|0),!ge.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}ge.allocUnsafe=function(e){return lv(null,e)},ge.allocUnsafeSlow=function(e){return lv(null,e)};function HJ(e,t,n){if((typeof n!="string"||n==="")&&(n="utf8"),!ge.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=q8(t,n)|0;e=ps(e,r);var s=e.write(t,n);return s!==r&&(e=e.slice(0,s)),e}function cv(e,t){var n=t.length<0?0:uv(t.length)|0;e=ps(e,n);for(var r=0;r<n;r+=1)e[r]=t[r]&255;return e}function GJ(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return n===void 0&&r===void 0?t=new Uint8Array(t):r===void 0?t=new Uint8Array(t,n):t=new Uint8Array(t,n,r),ge.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=ge.prototype):e=cv(e,t),e}function WJ(e,t){if(Lr(t)){var n=uv(t.length)|0;return e=ps(e,n),e.length===0||t.copy(e,0,0,n),e}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||fY(t.length)?ps(e,0):cv(e,t);if(t.type==="Buffer"&&$8(t.data))return cv(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function uv(e){if(e>=Vf())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Vf().toString(16)+" bytes");return e|0}ge.isBuffer=Ri;function Lr(e){return!!(e!=null&&e._isBuffer)}ge.compare=function(t,n){if(!Lr(t)||!Lr(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var r=t.length,s=n.length,o=0,a=Math.min(r,s);o<a;++o)if(t[o]!==n[o]){r=t[o],s=n[o];break}return r<s?-1:s<r?1:0},ge.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ge.concat=function(t,n){if(!$8(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return ge.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var s=ge.allocUnsafe(n),o=0;for(r=0;r<t.length;++r){var a=t[r];if(!Lr(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(s,o),o+=a.length}return s};function q8(e,t){if(Lr(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Hf(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Q8(e).length;default:if(r)return Hf(e).length;t=(""+t).toLowerCase(),r=!0}}ge.byteLength=q8;function KJ(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return rY(this,t,n);case"utf8":case"utf-8":return K8(this,t,n);case"ascii":return nY(this,t,n);case"latin1":case"binary":return iY(this,t,n);case"base64":return eY(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sY(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}ge.prototype._isBuffer=!0;function ea(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}ge.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)ea(this,n,n+1);return this},ge.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)ea(this,n,n+3),ea(this,n+1,n+2);return this},ge.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)ea(this,n,n+7),ea(this,n+1,n+6),ea(this,n+2,n+5),ea(this,n+3,n+4);return this},ge.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?K8(this,0,t):KJ.apply(this,arguments)},ge.prototype.equals=function(t){if(!Lr(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:ge.compare(this,t)===0},ge.prototype.inspect=function(){var t="",n=zJ;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},ge.prototype.compare=function(t,n,r,s,o){if(!Lr(t))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),r===void 0&&(r=t?t.length:0),s===void 0&&(s=0),o===void 0&&(o=this.length),n<0||r>t.length||s<0||o>this.length)throw new RangeError("out of range index");if(s>=o&&n>=r)return 0;if(s>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,s>>>=0,o>>>=0,this===t)return 0;for(var a=o-s,l=r-n,c=Math.min(a,l),u=this.slice(s,o),d=t.slice(n,r),f=0;f<c;++f)if(u[f]!==d[f]){a=u[f],l=d[f];break}return a<l?-1:l<a?1:0};function H8(e,t,n,r,s){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=s?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(s)return-1;n=e.length-1}else if(n<0)if(s)n=0;else return-1;if(typeof t=="string"&&(t=ge.from(t,r)),Lr(t))return t.length===0?-1:G8(e,t,n,r,s);if(typeof t=="number")return t=t&255,ge.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):G8(e,[t],n,r,s);throw new TypeError("val must be string, number or Buffer")}function G8(e,t,n,r,s){var o=1,a=e.length,l=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,a/=2,l/=2,n/=2}function c(g,v){return o===1?g[v]:g.readUInt16BE(v*o)}var u;if(s){var d=-1;for(u=n;u<a;u++)if(c(e,u)===c(t,d===-1?0:u-d)){if(d===-1&&(d=u),u-d+1===l)return d*o}else d!==-1&&(u-=u-d),d=-1}else for(n+l>a&&(n=a-l),u=n;u>=0;u--){for(var f=!0,h=0;h<l;h++)if(c(e,u+h)!==c(t,h)){f=!1;break}if(f)return u}return-1}ge.prototype.includes=function(t,n,r){return this.indexOf(t,n,r)!==-1},ge.prototype.indexOf=function(t,n,r){return H8(this,t,n,r,!0)},ge.prototype.lastIndexOf=function(t,n,r){return H8(this,t,n,r,!1)};function JJ(e,t,n,r){n=Number(n)||0;var s=e.length-n;r?(r=Number(r),r>s&&(r=s)):r=s;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var l=parseInt(t.substr(a*2,2),16);if(isNaN(l))return a;e[n+a]=l}return a}function YJ(e,t,n,r){return Gf(Hf(t,e.length-n),e,n,r)}function W8(e,t,n,r){return Gf(uY(t),e,n,r)}function XJ(e,t,n,r){return W8(e,t,n,r)}function ZJ(e,t,n,r){return Gf(Q8(t),e,n,r)}function QJ(e,t,n,r){return Gf(dY(t,e.length-n),e,n,r)}ge.prototype.write=function(t,n,r,s){if(n===void 0)s="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")s=n,r=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(r)?(r=r|0,s===void 0&&(s="utf8")):(s=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-n;if((r===void 0||r>o)&&(r=o),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var a=!1;;)switch(s){case"hex":return JJ(this,t,n,r);case"utf8":case"utf-8":return YJ(this,t,n,r);case"ascii":return W8(this,t,n,r);case"latin1":case"binary":return XJ(this,t,n,r);case"base64":return ZJ(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return QJ(this,t,n,r);default:if(a)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),a=!0}},ge.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function eY(e,t,n){return t===0&&n===e.length?j8(e):j8(e.slice(t,n))}function K8(e,t,n){n=Math.min(e.length,n);for(var r=[],s=t;s<n;){var o=e[s],a=null,l=o>239?4:o>223?3:o>191?2:1;if(s+l<=n){var c,u,d,f;switch(l){case 1:o<128&&(a=o);break;case 2:c=e[s+1],(c&192)===128&&(f=(o&31)<<6|c&63,f>127&&(a=f));break;case 3:c=e[s+1],u=e[s+2],(c&192)===128&&(u&192)===128&&(f=(o&15)<<12|(c&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:c=e[s+1],u=e[s+2],d=e[s+3],(c&192)===128&&(u&192)===128&&(d&192)===128&&(f=(o&15)<<18|(c&63)<<12|(u&63)<<6|d&63,f>65535&&f<1114112&&(a=f))}}a===null?(a=65533,l=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),s+=l}return tY(r)}var J8=4096;function tY(e){var t=e.length;if(t<=J8)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=J8));return n}function nY(e,t,n){var r="";n=Math.min(e.length,n);for(var s=t;s<n;++s)r+=String.fromCharCode(e[s]&127);return r}function iY(e,t,n){var r="";n=Math.min(e.length,n);for(var s=t;s<n;++s)r+=String.fromCharCode(e[s]);return r}function rY(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var s="",o=t;o<n;++o)s+=cY(e[o]);return s}function sY(e,t,n){for(var r=e.slice(t,n),s="",o=0;o<r.length;o+=2)s+=String.fromCharCode(r[o]+r[o+1]*256);return s}ge.prototype.slice=function(t,n){var r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);var s;if(ge.TYPED_ARRAY_SUPPORT)s=this.subarray(t,n),s.__proto__=ge.prototype;else{var o=n-t;s=new ge(o,void 0);for(var a=0;a<o;++a)s[a]=this[a+t]}return s};function Sn(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}ge.prototype.readUIntLE=function(t,n,r){t=t|0,n=n|0,r||Sn(t,n,this.length);for(var s=this[t],o=1,a=0;++a<n&&(o*=256);)s+=this[t+a]*o;return s},ge.prototype.readUIntBE=function(t,n,r){t=t|0,n=n|0,r||Sn(t,n,this.length);for(var s=this[t+--n],o=1;n>0&&(o*=256);)s+=this[t+--n]*o;return s},ge.prototype.readUInt8=function(t,n){return n||Sn(t,1,this.length),this[t]},ge.prototype.readUInt16LE=function(t,n){return n||Sn(t,2,this.length),this[t]|this[t+1]<<8},ge.prototype.readUInt16BE=function(t,n){return n||Sn(t,2,this.length),this[t]<<8|this[t+1]},ge.prototype.readUInt32LE=function(t,n){return n||Sn(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},ge.prototype.readUInt32BE=function(t,n){return n||Sn(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},ge.prototype.readIntLE=function(t,n,r){t=t|0,n=n|0,r||Sn(t,n,this.length);for(var s=this[t],o=1,a=0;++a<n&&(o*=256);)s+=this[t+a]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*n)),s},ge.prototype.readIntBE=function(t,n,r){t=t|0,n=n|0,r||Sn(t,n,this.length);for(var s=n,o=1,a=this[t+--s];s>0&&(o*=256);)a+=this[t+--s]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*n)),a},ge.prototype.readInt8=function(t,n){return n||Sn(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},ge.prototype.readInt16LE=function(t,n){n||Sn(t,2,this.length);var r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r},ge.prototype.readInt16BE=function(t,n){n||Sn(t,2,this.length);var r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r},ge.prototype.readInt32LE=function(t,n){return n||Sn(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},ge.prototype.readInt32BE=function(t,n){return n||Sn(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},ge.prototype.readFloatLE=function(t,n){return n||Sn(t,4,this.length),$f(this,t,!0,23,4)},ge.prototype.readFloatBE=function(t,n){return n||Sn(t,4,this.length),$f(this,t,!1,23,4)},ge.prototype.readDoubleLE=function(t,n){return n||Sn(t,8,this.length),$f(this,t,!0,52,8)},ge.prototype.readDoubleBE=function(t,n){return n||Sn(t,8,this.length),$f(this,t,!1,52,8)};function si(e,t,n,r,s,o){if(!Lr(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}ge.prototype.writeUIntLE=function(t,n,r,s){if(t=+t,n=n|0,r=r|0,!s){var o=Math.pow(2,8*r)-1;si(this,t,n,r,o,0)}var a=1,l=0;for(this[n]=t&255;++l<r&&(a*=256);)this[n+l]=t/a&255;return n+r},ge.prototype.writeUIntBE=function(t,n,r,s){if(t=+t,n=n|0,r=r|0,!s){var o=Math.pow(2,8*r)-1;si(this,t,n,r,o,0)}var a=r-1,l=1;for(this[n+a]=t&255;--a>=0&&(l*=256);)this[n+a]=t/l&255;return n+r},ge.prototype.writeUInt8=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,1,255,0),ge.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=t&255,n+1};function zf(e,t,n,r){t<0&&(t=65535+t+1);for(var s=0,o=Math.min(e.length-n,2);s<o;++s)e[n+s]=(t&255<<8*(r?s:1-s))>>>(r?s:1-s)*8}ge.prototype.writeUInt16LE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,2,65535,0),ge.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):zf(this,t,n,!0),n+2},ge.prototype.writeUInt16BE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,2,65535,0),ge.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):zf(this,t,n,!1),n+2};function qf(e,t,n,r){t<0&&(t=4294967295+t+1);for(var s=0,o=Math.min(e.length-n,4);s<o;++s)e[n+s]=t>>>(r?s:3-s)*8&255}ge.prototype.writeUInt32LE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,4,4294967295,0),ge.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255):qf(this,t,n,!0),n+4},ge.prototype.writeUInt32BE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,4,4294967295,0),ge.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):qf(this,t,n,!1),n+4},ge.prototype.writeIntLE=function(t,n,r,s){if(t=+t,n=n|0,!s){var o=Math.pow(2,8*r-1);si(this,t,n,r,o-1,-o)}var a=0,l=1,c=0;for(this[n]=t&255;++a<r&&(l*=256);)t<0&&c===0&&this[n+a-1]!==0&&(c=1),this[n+a]=(t/l>>0)-c&255;return n+r},ge.prototype.writeIntBE=function(t,n,r,s){if(t=+t,n=n|0,!s){var o=Math.pow(2,8*r-1);si(this,t,n,r,o-1,-o)}var a=r-1,l=1,c=0;for(this[n+a]=t&255;--a>=0&&(l*=256);)t<0&&c===0&&this[n+a+1]!==0&&(c=1),this[n+a]=(t/l>>0)-c&255;return n+r},ge.prototype.writeInt8=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,1,127,-128),ge.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=t&255,n+1},ge.prototype.writeInt16LE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,2,32767,-32768),ge.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):zf(this,t,n,!0),n+2},ge.prototype.writeInt16BE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,2,32767,-32768),ge.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):zf(this,t,n,!1),n+2},ge.prototype.writeInt32LE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,4,2147483647,-2147483648),ge.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):qf(this,t,n,!0),n+4},ge.prototype.writeInt32BE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),ge.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):qf(this,t,n,!1),n+4};function Y8(e,t,n,r,s,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function X8(e,t,n,r,s){return s||Y8(e,t,n,4),U8(e,t,n,r,23,4),n+4}ge.prototype.writeFloatLE=function(t,n,r){return X8(this,t,n,!0,r)},ge.prototype.writeFloatBE=function(t,n,r){return X8(this,t,n,!1,r)};function Z8(e,t,n,r,s){return s||Y8(e,t,n,8),U8(e,t,n,r,52,8),n+8}ge.prototype.writeDoubleLE=function(t,n,r){return Z8(this,t,n,!0,r)},ge.prototype.writeDoubleBE=function(t,n,r){return Z8(this,t,n,!1,r)},ge.prototype.copy=function(t,n,r,s){if(r||(r=0),!s&&s!==0&&(s=this.length),n>=t.length&&(n=t.length),n||(n=0),s>0&&s<r&&(s=r),s===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),t.length-n<s-r&&(s=t.length-n+r);var o=s-r,a;if(this===t&&r<n&&n<s)for(a=o-1;a>=0;--a)t[a+n]=this[a+r];else if(o<1e3||!ge.TYPED_ARRAY_SUPPORT)for(a=0;a<o;++a)t[a+n]=this[a+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),n);return o},ge.prototype.fill=function(t,n,r,s){if(typeof t=="string"){if(typeof n=="string"?(s=n,n=0,r=this.length):typeof r=="string"&&(s=r,r=this.length),t.length===1){var o=t.charCodeAt(0);o<256&&(t=o)}if(s!==void 0&&typeof s!="string")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!ge.isEncoding(s))throw new TypeError("Unknown encoding: "+s)}else typeof t=="number"&&(t=t&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);var a;if(typeof t=="number")for(a=n;a<r;++a)this[a]=t;else{var l=Lr(t)?t:Hf(new ge(t,s).toString()),c=l.length;for(a=0;a<r-n;++a)this[a+n]=l[a%c]}return this};var oY=/[^+\/0-9A-Za-z-_]/g;function aY(e){if(e=lY(e).replace(oY,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function lY(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function cY(e){return e<16?"0"+e.toString(16):e.toString(16)}function Hf(e,t){t=t||1/0;for(var n,r=e.length,s=null,o=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!s){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}s=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),s=n;continue}n=(s-55296<<10|n-56320)+65536}else s&&(t-=3)>-1&&o.push(239,191,189);if(s=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return o}function uY(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function dY(e,t){for(var n,r,s,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,s=n%256,o.push(s),o.push(r);return o}function Q8(e){return jJ(aY(e))}function Gf(e,t,n,r){for(var s=0;s<r&&!(s+n>=t.length||s>=e.length);++s)t[s+n]=e[s];return s}function fY(e){return e!==e}function Ri(e){return e!=null&&(!!e._isBuffer||e4(e)||hY(e))}function e4(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function hY(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&e4(e.slice(0,0))}class Ft extends Error{constructor(t,n,r,...s){Array.isArray(n)&&(n=n.join(" ").trim()),super(n),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,Ft),this.code=t;for(const o of s)for(const a in o){const l=o[a];this[a]=Ri(l)?l.toString(r.encoding):l==null?l:JSON.parse(JSON.stringify(l))}}}const pY=function(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)},t4=function(e){const t=[];for(let n=0,r=e.length;n<r;n++){const s=e[n];if(s==null||s===!1)t[n]={disabled:!0};else if(typeof s=="string")t[n]={name:s};else if(pY(s)){if(typeof s.name!="string")throw new Ft("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${n}`,"when column is an object literal"]);t[n]=s}else throw new Ft("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(s)} at position ${n}`])}return t};class n4{constructor(t=100){this.size=t,this.length=0,this.buf=ge.allocUnsafe(t)}prepend(t){if(Ri(t)){const n=this.length+t.length;if(n>=this.size&&(this.resize(),n>=this.size))throw Error("INVALID_BUFFER_STATE");const r=this.buf;this.buf=ge.allocUnsafe(this.size),t.copy(this.buf,0),r.copy(this.buf,t.length),this.length+=t.length}else{const n=this.length++;n===this.size&&this.resize();const r=this.clone();this.buf[0]=t,r.copy(this.buf,1,0,n)}}append(t){const n=this.length++;n===this.size&&this.resize(),this.buf[n]=t}clone(){return ge.from(this.buf.slice(0,this.length))}resize(){const t=this.length;this.size=this.size*2;const n=ge.allocUnsafe(this.size);this.buf.copy(n,0,0,t),this.buf=n}toString(t){return t?this.buf.slice(0,this.length).toString(t):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}}const gY=12,mY=13,vY=10,bY=32,yY=9,_Y=function(e){return{bomSkipped:!1,bufBytesStart:0,castField:e.cast_function,commenting:!1,error:void 0,enabled:e.from_line===1,escaping:!1,escapeIsQuote:Ri(e.escape)&&Ri(e.quote)&&ge.compare(e.escape,e.quote)===0,expectedRecordLength:Array.isArray(e.columns)?e.columns.length:void 0,field:new n4(20),firstLineToHeaders:e.cast_first_line_to_header,needMoreDataSize:Math.max(e.comment!==null?e.comment.length:0,...e.delimiter.map(t=>t.length),e.quote!==null?e.quote.length:0),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new n4(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:e.record_delimiter.length===0?0:Math.max(...e.record_delimiter.map(t=>t.length)),trimChars:[ge.from(" ",e.encoding)[0],ge.from(" ",e.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:[ge.from(ge.from([mY],"utf8").toString(),e.encoding),ge.from(ge.from([vY],"utf8").toString(),e.encoding),ge.from(ge.from([gY],"utf8").toString(),e.encoding),ge.from(ge.from([bY],"utf8").toString(),e.encoding),ge.from(ge.from([yY],"utf8").toString(),e.encoding)]}},wY=function(e){return e.replace(/([A-Z])/g,function(t,n){return"_"+n.toLowerCase()})},i4=function(e){const t={};for(const r in e)t[wY(r)]=e[r];if(t.encoding===void 0||t.encoding===!0)t.encoding="utf8";else if(t.encoding===null||t.encoding===!1)t.encoding=null;else if(typeof t.encoding!="string"&&t.encoding!==null)throw new Ft("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(t.encoding)}`],t);if(t.bom===void 0||t.bom===null||t.bom===!1)t.bom=!1;else if(t.bom!==!0)throw new Ft("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(t.bom)}`],t);if(t.cast_function=null,t.cast===void 0||t.cast===null||t.cast===!1||t.cast==="")t.cast=void 0;else if(typeof t.cast=="function")t.cast_function=t.cast,t.cast=!0;else if(t.cast!==!0)throw new Ft("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(t.cast)}`],t);if(t.cast_date===void 0||t.cast_date===null||t.cast_date===!1||t.cast_date==="")t.cast_date=!1;else if(t.cast_date===!0)t.cast_date=function(r){const s=Date.parse(r);return isNaN(s)?r:new Date(s)};else if(typeof t.cast_date!="function")throw new Ft("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(t.cast_date)}`],t);if(t.cast_first_line_to_header=null,t.columns===!0)t.cast_first_line_to_header=void 0;else if(typeof t.columns=="function")t.cast_first_line_to_header=t.columns,t.columns=!0;else if(Array.isArray(t.columns))t.columns=t4(t.columns);else if(t.columns===void 0||t.columns===null||t.columns===!1)t.columns=!1;else throw new Ft("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(t.columns)}`],t);if(t.group_columns_by_name===void 0||t.group_columns_by_name===null||t.group_columns_by_name===!1)t.group_columns_by_name=!1;else{if(t.group_columns_by_name!==!0)throw new Ft("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(t.group_columns_by_name)}`],t);if(t.columns===!1)throw new Ft("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],t)}if(t.comment===void 0||t.comment===null||t.comment===!1||t.comment==="")t.comment=null;else if(typeof t.comment=="string"&&(t.comment=ge.from(t.comment,t.encoding)),!Ri(t.comment))throw new Ft("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(t.comment)}`],t);if(t.comment_no_infix===void 0||t.comment_no_infix===null||t.comment_no_infix===!1)t.comment_no_infix=!1;else if(t.comment_no_infix!==!0)throw new Ft("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(t.comment_no_infix)}`],t);const n=JSON.stringify(t.delimiter);if(Array.isArray(t.delimiter)||(t.delimiter=[t.delimiter]),t.delimiter.length===0)throw new Ft("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${n}`],t);if(t.delimiter=t.delimiter.map(function(r){if(r==null||r===!1)return ge.from(",",t.encoding);if(typeof r=="string"&&(r=ge.from(r,t.encoding)),!Ri(r)||r.length===0)throw new Ft("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${n}`],t);return r}),t.escape===void 0||t.escape===!0?t.escape=ge.from('"',t.encoding):typeof t.escape=="string"?t.escape=ge.from(t.escape,t.encoding):(t.escape===null||t.escape===!1)&&(t.escape=null),t.escape!==null&&!Ri(t.escape))throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(t.escape)}`);if(t.from===void 0||t.from===null)t.from=1;else if(typeof t.from=="string"&&/\d+/.test(t.from)&&(t.from=parseInt(t.from)),Number.isInteger(t.from)){if(t.from<0)throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(e.from)}`)}else throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(t.from)}`);if(t.from_line===void 0||t.from_line===null)t.from_line=1;else if(typeof t.from_line=="string"&&/\d+/.test(t.from_line)&&(t.from_line=parseInt(t.from_line)),Number.isInteger(t.from_line)){if(t.from_line<=0)throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(e.from_line)}`)}else throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(e.from_line)}`);if(t.ignore_last_delimiters===void 0||t.ignore_last_delimiters===null)t.ignore_last_delimiters=!1;else if(typeof t.ignore_last_delimiters=="number")t.ignore_last_delimiters=Math.floor(t.ignore_last_delimiters),t.ignore_last_delimiters===0&&(t.ignore_last_delimiters=!1);else if(typeof t.ignore_last_delimiters!="boolean")throw new Ft("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(t.ignore_last_delimiters)}`],t);if(t.ignore_last_delimiters===!0&&t.columns===!1)throw new Ft("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],t);if(t.info===void 0||t.info===null||t.info===!1)t.info=!1;else if(t.info!==!0)throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(t.info)}`);if(t.max_record_size===void 0||t.max_record_size===null||t.max_record_size===!1)t.max_record_size=0;else if(!(Number.isInteger(t.max_record_size)&&t.max_record_size>=0))if(typeof t.max_record_size=="string"&&/\d+/.test(t.max_record_size))t.max_record_size=parseInt(t.max_record_size);else throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(t.max_record_size)}`);if(t.objname===void 0||t.objname===null||t.objname===!1)t.objname=void 0;else if(Ri(t.objname)){if(t.objname.length===0)throw new Error("Invalid Option: objname must be a non empty buffer");t.encoding===null||(t.objname=t.objname.toString(t.encoding))}else if(typeof t.objname=="string"){if(t.objname.length===0)throw new Error("Invalid Option: objname must be a non empty string")}else if(typeof t.objname!="number")throw new Error(`Invalid Option: objname must be a string or a buffer, got ${t.objname}`);if(t.objname!==void 0){if(typeof t.objname=="number"){if(t.columns!==!1)throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}else if(t.columns===!1)throw Error("Invalid Option: objname field must be combined with columns or be defined as an index")}if(t.on_record===void 0||t.on_record===null)t.on_record=void 0;else if(typeof t.on_record!="function")throw new Ft("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(t.on_record)}`],t);if(t.on_skip!==void 0&&t.on_skip!==null&&typeof t.on_skip!="function")throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(t.on_skip)}`);if(t.quote===null||t.quote===!1||t.quote==="")t.quote=null;else if(t.quote===void 0||t.quote===!0?t.quote=ge.from('"',t.encoding):typeof t.quote=="string"&&(t.quote=ge.from(t.quote,t.encoding)),!Ri(t.quote))throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(t.quote)}`);if(t.raw===void 0||t.raw===null||t.raw===!1)t.raw=!1;else if(t.raw!==!0)throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(t.raw)}`);if(t.record_delimiter===void 0)t.record_delimiter=[];else if(typeof t.record_delimiter=="string"||Ri(t.record_delimiter)){if(t.record_delimiter.length===0)throw new Ft("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(t.record_delimiter)}`],t);t.record_delimiter=[t.record_delimiter]}else if(!Array.isArray(t.record_delimiter))throw new Ft("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(t.record_delimiter)}`],t);if(t.record_delimiter=t.record_delimiter.map(function(r,s){if(typeof r!="string"&&!Ri(r))throw new Ft("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${s},`,`got ${JSON.stringify(r)}`],t);if(r.length===0)throw new Ft("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${s},`,`got ${JSON.stringify(r)}`],t);return typeof r=="string"&&(r=ge.from(r,t.encoding)),r}),typeof t.relax_column_count!="boolean")if(t.relax_column_count===void 0||t.relax_column_count===null)t.relax_column_count=!1;else throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(t.relax_column_count)}`);if(typeof t.relax_column_count_less!="boolean")if(t.relax_column_count_less===void 0||t.relax_column_count_less===null)t.relax_column_count_less=!1;else throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(t.relax_column_count_less)}`);if(typeof t.relax_column_count_more!="boolean")if(t.relax_column_count_more===void 0||t.relax_column_count_more===null)t.relax_column_count_more=!1;else throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(t.relax_column_count_more)}`);if(typeof t.relax_quotes!="boolean")if(t.relax_quotes===void 0||t.relax_quotes===null)t.relax_quotes=!1;else throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(t.relax_quotes)}`);if(typeof t.skip_empty_lines!="boolean")if(t.skip_empty_lines===void 0||t.skip_empty_lines===null)t.skip_empty_lines=!1;else throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(t.skip_empty_lines)}`);if(typeof t.skip_records_with_empty_values!="boolean")if(t.skip_records_with_empty_values===void 0||t.skip_records_with_empty_values===null)t.skip_records_with_empty_values=!1;else throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(t.skip_records_with_empty_values)}`);if(typeof t.skip_records_with_error!="boolean")if(t.skip_records_with_error===void 0||t.skip_records_with_error===null)t.skip_records_with_error=!1;else throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(t.skip_records_with_error)}`);if(t.rtrim===void 0||t.rtrim===null||t.rtrim===!1)t.rtrim=!1;else if(t.rtrim!==!0)throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(t.rtrim)}`);if(t.ltrim===void 0||t.ltrim===null||t.ltrim===!1)t.ltrim=!1;else if(t.ltrim!==!0)throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(t.ltrim)}`);if(t.trim===void 0||t.trim===null||t.trim===!1)t.trim=!1;else if(t.trim!==!0)throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(t.trim)}`);if(t.trim===!0&&e.ltrim!==!1?t.ltrim=!0:t.ltrim!==!0&&(t.ltrim=!1),t.trim===!0&&e.rtrim!==!1?t.rtrim=!0:t.rtrim!==!0&&(t.rtrim=!1),t.to===void 0||t.to===null)t.to=-1;else if(typeof t.to=="string"&&/\d+/.test(t.to)&&(t.to=parseInt(t.to)),Number.isInteger(t.to)){if(t.to<=0)throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(e.to)}`)}else throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(e.to)}`);if(t.to_line===void 0||t.to_line===null)t.to_line=-1;else if(typeof t.to_line=="string"&&/\d+/.test(t.to_line)&&(t.to_line=parseInt(t.to_line)),Number.isInteger(t.to_line)){if(t.to_line<=0)throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(e.to_line)}`)}else throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(e.to_line)}`);return t},r4=function(e){return e.every(t=>t==null||t.toString&&t.toString().trim()==="")},CY=13,SY=10,ol={utf8:ge.from([239,187,191]),utf16le:ge.from([255,254])},EY=function(e={}){const t={bytes:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},n=i4(e);return{info:t,original_options:e,options:n,state:_Y(n),__needMoreData:function(r,s,o){if(o)return!1;const{encoding:a,escape:l,quote:c}=this.options,{quoting:u,needMoreDataSize:d,recordDelimiterMaxLength:f}=this.state,h=s-r-1,g=Math.max(d,f===0?ge.from(`\r
|
|
138
|
-
`,a).length:f,u?(l===null?0:l.length)+c.length:0,u?c.length+f:0);return h<g},parse:function(r,s,o,a){const{bom:l,comment_no_infix:c,encoding:u,from_line:d,ltrim:f,max_record_size:h,raw:g,relax_quotes:v,rtrim:y,skip_empty_lines:_,to:w,to_line:A}=this.options;let{comment:C,escape:S,quote:x,record_delimiter:O}=this.options;const{bomSkipped:N,previousBuf:I,rawBuffer:F,escapeIsQuote:D}=this.state;let k;if(I===void 0)if(r===void 0){a();return}else k=r;else I!==void 0&&r===void 0?k=I:k=ge.concat([I,r]);if(N===!1)if(l===!1)this.state.bomSkipped=!0;else if(k.length<3){if(s===!1){this.state.previousBuf=k;return}}else{for(const oe in ol)if(ol[oe].compare(k,0,ol[oe].length)===0){const ce=ol[oe].length;this.state.bufBytesStart+=ce,k=k.slice(ce),this.options=i4(Me(be({},this.original_options),{encoding:oe})),{comment:C,escape:S,quote:x}=this.options;break}this.state.bomSkipped=!0}const q=k.length;let H;for(H=0;H<q&&!this.__needMoreData(H,q,s);H++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),A!==-1&&this.info.lines>A){this.state.stop=!0,a();return}this.state.quoting===!1&&O.length===0&&this.__autoDiscoverRecordDelimiter(k,H)&&(O=this.options.record_delimiter);const oe=k[H];if(g===!0&&F.append(oe),(oe===CY||oe===SY)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(S!==null&&this.state.quoting===!0&&this.__isEscape(k,H,oe)&&H+S.length<q)if(D){if(this.__isQuote(k,H+S.length)){this.state.escaping=!0,H+=S.length-1;continue}}else{this.state.escaping=!0,H+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(k,H))if(this.state.quoting===!0){const Y=k[H+x.length],K=y&&this.__isCharTrimable(k,H+x.length),ee=C!==null&&this.__compareBytes(C,k,H+x.length,Y),B=this.__isDelimiter(k,H+x.length,Y),Ee=O.length===0?this.__autoDiscoverRecordDelimiter(k,H+x.length):this.__isRecordDelimiter(Y,k,H+x.length);if(S!==null&&this.__isEscape(k,H,oe)&&this.__isQuote(k,H+S.length))H+=S.length-1;else if(!Y||B||Ee||ee||K){this.state.quoting=!1,this.state.wasQuoting=!0,H+=x.length-1;continue}else if(v===!1){const me=this.__error(new Ft("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Y)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(me!==void 0)return me}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),H+=x.length-1}else if(this.state.field.length!==0){if(v===!1){const Y=this.__infoField(),K=Object.keys(ol).map(B=>ol[B].equals(this.state.field.toString())?B:!1).filter(Boolean)[0],ee=this.__error(new Ft("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Y.column)} at line ${Y.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,K?`(${K} bom)`:void 0],this.options,Y,{field:this.state.field}));if(ee!==void 0)return ee}}else{this.state.quoting=!0,H+=x.length-1;continue}if(this.state.quoting===!1){const Y=this.__isRecordDelimiter(oe,k,H);if(Y!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),H+=Y-1;continue}if(_===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,H+=Y-1;continue}this.info.bytes=this.state.bufBytesStart+H;const B=this.__onField();if(B!==void 0)return B;this.info.bytes=this.state.bufBytesStart+H+Y;const Ee=this.__onRecord(o);if(Ee!==void 0)return Ee;if(w!==-1&&this.info.records>=w){this.state.stop=!0,a();return}}this.state.commenting=!1,H+=Y-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,k,H,oe)!==0){this.state.commenting=!0;continue}const K=this.__isDelimiter(k,H,oe);if(K!==0){this.info.bytes=this.state.bufBytesStart+H;const ee=this.__onField();if(ee!==void 0)return ee;H+=K-1;continue}}}if(this.state.commenting===!1&&h!==0&&this.state.record_length+this.state.field.length>h)return this.__error(new Ft("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${h}`,`at line ${this.info.lines}`],this.options,this.__infoField()));const ce=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(k,H),U=y===!1||this.state.wasQuoting===!1;if(ce===!0&&U===!0)this.state.field.append(oe);else{if(y===!0&&!this.__isCharTrimable(k,H))return this.__error(new Ft("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));ce===!1&&(H+=this.__isCharTrimable(k,H)-1);continue}}if(s===!0)if(this.state.quoting===!0){const oe=this.__error(new Ft("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(oe!==void 0)return oe}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+H;const oe=this.__onField();if(oe!==void 0)return oe;const ce=this.__onRecord(o);if(ce!==void 0)return ce}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=H,this.state.previousBuf=k.slice(H);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)},__onRecord:function(r){const{columns:s,group_columns_by_name:o,encoding:a,info:l,from:c,relax_column_count:u,relax_column_count_less:d,relax_column_count_more:f,raw:h,skip_records_with_empty_values:g}=this.options,{enabled:v,record:y}=this.state;if(v===!1)return this.__resetRecord();const _=y.length;if(s===!0){if(g===!0&&r4(y)){this.__resetRecord();return}return this.__firstLineToColumns(y)}if(s===!1&&this.info.records===0&&(this.state.expectedRecordLength=_),_!==this.state.expectedRecordLength){const w=s===!1?new Ft("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${_} on line ${this.info.lines}`],this.options,this.__infoField(),{record:y}):new Ft("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${s.length},`,`got ${_} on line ${this.info.lines}`],this.options,this.__infoField(),{record:y});if(u===!0||d===!0&&_<this.state.expectedRecordLength||f===!0&&_>this.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=w;else{const A=this.__error(w);if(A)return A}}if(g===!0&&r4(y)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,c===1||this.info.records>=c){const{objname:w}=this.options;if(s!==!1){const A={};for(let C=0,S=y.length;C<S;C++)s[C]===void 0||s[C].disabled||(o===!0&&A[s[C].name]!==void 0?Array.isArray(A[s[C].name])?A[s[C].name]=A[s[C].name].concat(y[C]):A[s[C].name]=[A[s[C].name],y[C]]:A[s[C].name]=y[C]);if(h===!0||l===!0){const C=Object.assign({record:A},h===!0?{raw:this.state.rawBuffer.toString(a)}:{},l===!0?{info:this.__infoRecord()}:{}),S=this.__push(w===void 0?C:[A[w],C],r);if(S)return S}else{const C=this.__push(w===void 0?A:[A[w],A],r);if(C)return C}}else if(h===!0||l===!0){const A=Object.assign({record:y},h===!0?{raw:this.state.rawBuffer.toString(a)}:{},l===!0?{info:this.__infoRecord()}:{}),C=this.__push(w===void 0?A:[y[w],A],r);if(C)return C}else{const A=this.__push(w===void 0?y:[y[w],y],r);if(A)return A}}this.__resetRecord()},__firstLineToColumns:function(r){const{firstLineToHeaders:s}=this.state;try{const o=s===void 0?r:s.call(null,r);if(!Array.isArray(o))return this.__error(new Ft("CSV_INVALID_COLUMN_MAPPING",["Invalid Column Mapping:","expect an array from column function,",`got ${JSON.stringify(o)}`],this.options,this.__infoField(),{headers:o}));const a=t4(o);this.state.expectedRecordLength=a.length,this.options.columns=a,this.__resetRecord();return}catch(o){return o}},__resetRecord:function(){this.options.raw===!0&&this.state.rawBuffer.reset(),this.state.error=void 0,this.state.record=[],this.state.record_length=0},__onField:function(){const{cast:r,encoding:s,rtrim:o,max_record_size:a}=this.options,{enabled:l,wasQuoting:c}=this.state;if(l===!1)return this.__resetField();let u=this.state.field.toString(s);if(o===!0&&c===!1&&(u=u.trimRight()),r===!0){const[d,f]=this.__cast(u);if(d!==void 0)return d;u=f}this.state.record.push(u),a!==0&&typeof u=="string"&&(this.state.record_length+=u.length),this.__resetField()},__resetField:function(){this.state.field.reset(),this.state.wasQuoting=!1},__push:function(r,s){const{on_record:o}=this.options;if(o!==void 0){const a=this.__infoRecord();try{r=o.call(null,r,a)}catch(l){return l}if(r==null)return}s(r)},__cast:function(r){const{columns:s,relax_column_count:o}=this.options;if(Array.isArray(s)===!0&&o&&this.options.columns.length<=this.state.record.length)return[void 0,void 0];if(this.state.castField!==null)try{const l=this.__infoField();return[void 0,this.state.castField.call(null,r,l)]}catch(l){return[l]}if(this.__isFloat(r))return[void 0,parseFloat(r)];if(this.options.cast_date!==!1){const l=this.__infoField();return[void 0,this.options.cast_date.call(null,r,l)]}return[void 0,r]},__isCharTrimable:function(r,s){return((a,l)=>{const{timchars:c}=this.state;e:for(let u=0;u<c.length;u++){const d=c[u];for(let f=0;f<d.length;f++)if(d[f]!==a[l+f])continue e;return d.length}return 0})(r,s)},__isFloat:function(r){return r-parseFloat(r)+1>=0},__compareBytes:function(r,s,o,a){if(r[0]!==a)return 0;const l=r.length;for(let c=1;c<l;c++)if(r[c]!==s[o+c])return 0;return l},__isDelimiter:function(r,s,o){const{delimiter:a,ignore_last_delimiters:l}=this.options;if(l===!0&&this.state.record.length===this.options.columns.length-1)return 0;if(l!==!1&&typeof l=="number"&&this.state.record.length===l-1)return 0;e:for(let c=0;c<a.length;c++){const u=a[c];if(u[0]===o){for(let d=1;d<u.length;d++)if(u[d]!==r[s+d])continue e;return u.length}}return 0},__isRecordDelimiter:function(r,s,o){const{record_delimiter:a}=this.options,l=a.length;e:for(let c=0;c<l;c++){const u=a[c],d=u.length;if(u[0]===r){for(let f=1;f<d;f++)if(u[f]!==s[o+f])continue e;return u.length}}return 0},__isEscape:function(r,s,o){const{escape:a}=this.options;if(a===null)return!1;const l=a.length;if(a[0]===o){for(let c=0;c<l;c++)if(a[c]!==r[s+c])return!1;return!0}return!1},__isQuote:function(r,s){const{quote:o}=this.options;if(o===null)return!1;const a=o.length;for(let l=0;l<a;l++)if(o[l]!==r[s+l])return!1;return!0},__autoDiscoverRecordDelimiter:function(r,s){const{encoding:o}=this.options,a=[ge.from(`\r
|
|
139
|
-
`,o),ge.from(`
|
|
140
|
-
`,o),ge.from("\r",o)];e:for(let l=0;l<a.length;l++){const c=a[l].length;for(let u=0;u<c;u++)if(a[l][u]!==r[s+u])continue e;return this.options.record_delimiter.push(a[l]),this.state.recordDelimiterMaxLength=a[l].length,a[l].length}return 0},__error:function(r){const{encoding:s,raw:o,skip_records_with_error:a}=this.options,l=typeof r=="string"?new Error(r):r;if(a){this.state.recordHasError=!0,this.options.on_skip!==void 0&&this.options.on_skip(l,o?this.state.rawBuffer.toString(s):void 0);return}else return l},__infoDataSet:function(){return Me(be({},this.info),{columns:this.options.columns})},__infoRecord:function(){const{columns:r,raw:s,encoding:o}=this.options;return Me(be({},this.__infoDataSet()),{error:this.state.error,header:r===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(o):void 0})},__infoField:function(){const{columns:r}=this.options,s=Array.isArray(r);return Me(be({},this.__infoRecord()),{column:s===!0?r.length>this.state.record.length?r[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting})}}},xY=function(e,t={}){typeof e=="string"&&(e=ge.from(e));const n=t&&t.objname?{}:[],r=EY(t),s=c=>{r.options.objname===void 0?n.push(c):n[c[0]]=c[1]},o=()=>{},a=r.parse(e,!1,s,o);if(a!==void 0)throw a;const l=r.parse(void 0,!0,s,o);if(l!==void 0)throw l;return n},dv=" ";class AY{constructor(t,n){if(this.file=t,this.fieldMap=n,this.data=null,t.substr(0,7)!=="maltego")throw new Error("只能导入由Maltego软件导出的csv文件");this.init()}init(){const t=this.parseCsvData();this.data=this.convertToGraphData(t),console.log(t),console.log(this.data)}parseCsvData(){const t=this.file.indexOf(`\r
|
|
141
|
-
\r`)>0?`\r
|
|
142
|
-
\r
|
|
143
|
-
`:`
|
|
144
|
-
|
|
145
|
-
`,n=this.file.split(t);let r=[];for(let s=0;s<n.length;s++){const o=s===n.length-1?n[s]:this.manageEntityFieldsSpace(n[s]),a=xY.parse(o,{columns:!0,from:2});r=[...r,...a]}return r=this.reverseSpecialValue(r),r}manageEntityFieldsSpace(t){const n=t.split(`\r
|
|
146
|
-
`),r=n[0].split(",").length;let s=0,o=[];return o=n.map(a=>(a=this.manageSpecialValue(a),s=r-a.split(",").length,s>0?a.split(",").concat(new Array(s)).join():a)),o.join(`\r
|
|
147
|
-
`)}manageSpecialValue(t){t=t.replace(/"{2,}/g,"");const n=/"{1}[^"]*"{1}/g,r=t.match(n);return r!==null&&r.map(s=>(t=t.replace(s,s.replace(/,/g,dv)),s.replace(/,/g,dv))),t}reverseSpecialValue(t){const n=new RegExp(dv,"g");return t.map(r=>{for(const s in r){const o=r[s].replace(n,",");r[s]=o}return r})}convertToGraphData(t){const n=[];let r=t.filter(o=>o.Label===void 0),s=t.filter(o=>o.Label!==void 0);return r=r.map(o=>this.getGraphNode(o)),s=s.map((o,a)=>{const l="Source Entity ID",c="Target Entity ID",u="Label",d=this.getNode(o[l],r)[0],f=this.getNode(o[c],r)[0];return o[u]!==""&&n.push({id:f.id,label:o[u]}),{source:d.id,target:f.id,type:d.type+"-"+f.type,uniqueIndex:a}}),r=r.map(o=>(delete o.entityId,n.map(a=>{a.id===o.id&&(o.name=a.label)}),o)),{nodes:r,links:s}}getGraphNode(t){const n=M8.nodeMapReverse,r=ov.entitys;let s="",o="",a="",l=null,c=null;return r.map(u=>{const d=u.type,f=u.columnsFields[1];t[d]!==void 0&&(o=n[d],s=t[f],a=t[d],l=this.manageNodeDetail(u.columnsFields,t,n[d]),c=this.manageNodeFieldMap(n[d]))}),{id:s,type:o,name:s,entityId:a,detail:l,fieldMap:c,show:!0}}manageNodeFieldMap(t){return this.fieldMap[t]}manageNodeDetail(t,n,r){let s=null,o=!1;if(r!=="nodeType"){s={info:{basic:{}},tags:[]};for(const a in n)if(t.indexOf(a)===-1){o=!0;const l=n[a];a==="tags"&&l!==""?s.tags=l.split(",").map(c=>({name:c,desc:c})):s.info.basic[a]=n[a]}o===!1&&(s=null)}return s}getNode(t,n){return n.filter(r=>r.entityId===t)}outputData(){return this.data}}const Age="",PY={name:"ButtonList",components:{"force-graph-svg-icon":Zo,addNode:xJ,addLink:OJ,intro:kJ,UploadFilled:jM,SearchIcon:vJ},mixins:[Rr],props:{showTopSearch:{type:Boolean,default:!1},hideButtonList:{type:Array,default:()=>[]},selection:{type:Array,default:()=>[]},history:{type:Object,default:()=>({dataNow:{}})},moduleDetail:{type:Object,default:()=>{}},requestGraphData:{type:Boolean,default:!0}},emits:["fixNodes","toggleLayout","addNodes","addLink","importCsvData","autoDisplay","toggleMove","deleteNodes","saveSnapshot"],data(){return{maxTrans:0,nowTrans:0,onceTrans:300,dialogVisible:!1,exportFormat:0,formatOptions:[{value:0,label:"JSON"},{value:2,label:"CSV"}],isAllFix:!1,dialogImportVisible:!1,importFileList:[],importFile:null,intro:!1,current:null,addType:"",flageAlias:!0,filterValues:"",relatedMidNum:2}},computed:{buttonList(){var e,t;return[{hover:!1,icon:"hm_icon_add",disable:!this.requestGraphData,fun:this.addNode,name:"新增节点",params:"diy"},{hover:!1,icon:"hm_icon_del",disable:this.selection.length===0||!this.requestGraphData,fun:this.deleteNodes,name:"删除"},{hover:!1,icon:"hm_icon_snapshot",disable:!this.requestGraphData,fun:this.addSnapshot,name:"保存快照",hide:!((t=(e=this.moduleDetail)==null?void 0:e.config)!=null&&t.hasSnapshot)},{hover:!1,icon:"hm_icon_img",disable:!this.requestGraphData,fun:this.saveAsImg,name:"保存图片"},{hover:!1,icon:"hm_icon_export",disable:!this.requestGraphData,fun:this.exportData,name:"数据导出"},{hover:!1,icon:"hm_icon_import",disable:!this.requestGraphData,fun:this.importData,name:"数据导入"},{hover:!1,icon:"hm_icon_undo",disable:this.history.currentIndex<=0||!this.requestGraphData,fun:this.backHistory,name:"撤销"},{hover:!1,icon:"hm_icon_redo",disable:this.history.currentIndex>=this.history.length-1||!this.requestGraphData,fun:this.forwardHistory,name:"恢复"},{hover:!1,icon:"hm_icon_auto",fun:this.autoDisplay,name:"自动布局"},{hover:!1,icon:"hm_icon_fix",fun:this.fixNodes,name:"全局固定",params:!0,hide:this.isAllFix},{hover:!1,icon:"hm_icon_unfix",fun:this.fixNodes,name:"全局解除固定",params:!1,hide:!this.isAllFix},{hover:!1,icon:"hm_icon_tree",fun:this.toggleLayout,name:"树型布局",params:1,hide:this.history.layoutIndex===1},{hover:!1,icon:"hm_icon_force",fun:this.toggleLayout,name:"斥力布局",params:0,hide:this.history.layoutIndex===0}]},buttonListShow(){return this.buttonList.filter(e=>e.hide!==!0&&!this.hideButtonList.includes(e.name))},noSelectNodes(){var r;const e=Us(this.history.dataNow.nodes),t=Us((r=this.history.dataNow)==null?void 0:r.links),n=e.filter(s=>{if((s==null?void 0:s.type)==="nodeType")return s.childList=this.searchChildren(s,t),s.parentNode=this.searchParent(s,t),!0});return this.deleteParentItem(n)}},mounted(){},methods:{hover(e){this.current=e},out(){this.current=null},autoDisplay(){Ye(this,"autoDisplay")},fixNodes(e=!0){Ye(this,"fixNodes",e),this.isAllFix=e},toggleMove(){Ye(this,"toggleMove")},toggleLayout(e){Ye(this,"toggleLayout",e)},addNode(e,t){this.addType=e,this.$refs.addNode.show(t)},addNodes({node:e,type:t,connectNode:n}){Ye(this,"addNodes",{node:e,type:t,connectNode:n})},addLink({source:e,target:t}){Ye(this,"addLink",{source:e,target:t})},backHistory(){this.$parent.historyBack()},forwardHistory(){this.history.forward()},dataURLToBlob(e){const t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]);let s=r.length;const o=new Uint8Array(s);for(;s--;)o[s]=r.charCodeAt(s);return new Blob([o],{type:n})},downloadURI(e,t){const n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},saveAsImg(){return rt(this,null,function*(){var t,n;this.$parent.bigLoading=!0;const e=yield this.svgToUrl();this.downloadURI(e,`${((n=(t=this.history.dataNow)==null?void 0:t.nodes[0])==null?void 0:n.id)||"img"}_${new Date().getTime()}.png`),this.$parent.bigLoading=!1})},svgToUrl(){return rt(this,null,function*(){this.$parent.centerAndZoom(),this.$parent.addCanvasBg();const t=this.$parent.getCanvasStage().toDataURL({mimeType:"image/png"});return this.$parent.removeCanvasBg(),this.$parent.reset(),t})},svgToBlob(){return rt(this,null,function*(){this.$parent.centerAndZoom(),this.$parent.addCanvasBg();const e=this.$parent.getCanvasStage();e.find("Image").forEach(n=>{const r=n.image();r&&(r.crossOrigin="Anonymous")});const t=yield e.toBlob();return this.$parent.removeCanvasBg(),this.$parent.reset(),t})},deleteNodes(){Ye(this,"deleteNodes")},addSnapshot(){Ye(this,"saveSnapshot")},exportData(){this.handleOpenModal()},handleOpenModal(){this.dialogVisible=!0},handleCloseModal(){this.dialogVisible=!1},handleExportData(){var a,l,c,u;let e=null,t=null,n=null,r=null;this.selection.length>0?(n=it(this.selection),r=[]):(n=it(this.history.dataNow.nodes),r=it(this.history.dataNow.links));const s=n.map(d=>{const{id:f,type:h,detail:g}=d;return{id:f,type:h,detail:g}}),o=r.map(d=>{const{source:f,target:h}=d;return{source:f,target:h}});this.exportFormat===0?(e=JSON.stringify(s),t=`${((l=(a=this.history.dataNow)==null?void 0:a.nodes[0])==null?void 0:l.id)||"file"}_${new Date().getTime()}.json`):(e=this.setMalteGoCsv({nodes:s,links:o}),t=`${((u=(c=this.history.dataNow)==null?void 0:c.nodes[0])==null?void 0:u.id)||"file"}_${new Date().getTime()}.csv`),Rq(e,t),this.handleCloseModal()},importData(){this.handleOpenImportModal()},handleOpenImportModal(){this.dialogImportVisible=!0},handleCloseImportModal(){this.dialogImportVisible=!1,this.importFileList=[],this.importFile=null},handleImportData(){try{const e=this.getFieldMap(),n=new AY(this.importFile,e).outputData();Ye(this,"importCsvData",{nodes:n.nodes,links:n.links})}catch(e){gn({message:e,type:"error"})}this.handleCloseImportModal()},getFieldMap(){const e=this.moduleDetail.detail_field_map,t={};for(const n in e){const r=n.substring(0,n.indexOf("_detail_info"));t[r]=JSON.parse(JSON.stringify(e[n]))}return t},handleFileChange(e){this.importFile=e;const t=new FileReader;t.onload=()=>{t.result&&(this.importFile=t.result)},t.readAsText(e.raw)},handleFileRemove(){this.importFile=null,this.importFileList=[]},setMalteGoCsv(e){return new FJ(e).outputCsvFile()},showIntro(){this.intro=!0},hideIntro(){this.intro=!1},handleAlias(e){this.flageAlias=!e;const t=document.getElementsByClassName("right-menu-box")[0],n=document.getElementsByClassName("graph-box")[0];t&&(e?(t.style.display="none",n.style.width="100%"):(t.style.display="inline-block",n.style.width="1%"))},permissionitem(){return this.requestGraphData?!0:(gn({message:"无可操作权限",type:"warning"}),!1)},handleIconClick(e){this.permissionitem()&&(Fn({cId:"buttonList-"+e.icon,c:"顶部按钮-"+e.name}),e.fun(e.params))},handleSearch2:ko(function(){var n;if(!this.filterValues){Ye(bt,"sendNodesRange",null);return}this.filteredDataList=Us(this.noSelectNodes);const e=Us((n=this.history.dataNow)==null?void 0:n.links);this.filteredDataList=this.filteredDataList.filter(r=>this.filterValues!==""?(r.parentNode=this.searchParent(r,e),r.childList=r.childList.filter(s=>s.name.toLowerCase().indexOf(this.filterValues.toLowerCase())>-1),r.childList.length>0):!0),this.filteredDataList=this.deleteParentItem(this.filteredDataList);const t=[];this.filteredDataList.forEach(r=>{t.push(this.searchParent(r,e)),t.push(...r.childList),t.push(r)}),Ye(bt,"sendNodesRange",t)},200),handleSearch:ko(function(){this.filteredDataList=Us(this.history.dataNow.nodes),this.filteredDataList=this.filteredDataList.filter(t=>this.filterValues?t.name.toLowerCase().indexOf(this.filterValues.toLowerCase())>-1:!0);const e=[];this.filteredDataList.forEach(t=>{e.push(t)}),Ye(bt,"sendNodesRange",e)},200),searchChildren(e,t){const n=t,r=[];return n&&n.forEach(s=>{s.source.id===e.id&&r.push(s.target)}),r},searchParent(e,t){const n=t;let r=[];return n&&n.forEach(s=>{s.target.id===e.id&&(r=s.source)}),r},groupBy(e,t){const n={};return e.forEach(function(r){const s=JSON.stringify(t(r));n[s]=n[s]||[],n[s].push(r)}),Object.keys(n).map(function(r){return n[r]})},deleteParentItem(e){let t=[];const n=[];return this.groupBy(e,function(r){return[r.parentNode.id]}).map(r=>{t.push(...r)}),t=t.map(r=>(n.some(o=>o===r.parentNode.id)?r.parentNode="":n.push(r.parentNode.id),r)),t}}},TY={class:"button-container"},OY={ref:"container",class:"button-box"},NY={ref:"box",class:"all-button"},IY={key:0,class:"search-content-wrap"},RY=["onClick"],DY={key:1,class:"right-btn-wrap"},LY={class:"button-one intro-button"},kY={class:"dialog-footer"},MY={class:"dialog-footer"},FY={class:"intro"};function BY(e,t,n,r,s,o){const a=Ge("SearchIcon"),l=Go,c=Ge("force-graph-svg-icon"),u=fi,d=Ge("intro"),f=wV,h=Sf,g=Cf,v=Ko,y=Kc,_=Ge("UploadFilled"),w=jt,A=qz,C=Ge("addNode"),S=Ge("addLink");return R(),V("div",TY,[G("div",OY,[G("div",NY,[n.showTopSearch?(R(),V("div",IY,[ne(l,{modelValue:s.filterValues,"onUpdate:modelValue":t[0]||(t[0]=x=>s.filterValues=x),modelModifiers:{trim:!0},class:"search-content",placeholder:"支持查询嫌疑人终端码、虚拟身份、路由mac、域名",onInput:o.handleSearch},{suffix:te(()=>[t[7]||(t[7]=G("div",{class:"split-line"},null,-1)),ne(a,{onClick:o.handleSearch},null,8,["onClick"])]),_:1},8,["modelValue","onInput"])])):se("",!0),G("div",null,[(R(!0),V(qe,null,Nt(o.buttonListShow,(x,O)=>(R(),_e(u,{key:O,class:"item",effect:"dark",content:x.name,placement:"bottom","popper-class":"el-tooltip-gray"},{default:te(()=>[G("div",{class:Z(["img-box","button-one "+(x.disable?"disabled":"")]),onClick:N=>o.handleIconClick(x)},[ne(c,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/button22/"+x.icon+".svg"]},null,8,["icon-class"])],10,RY)]),_:2},1032,["content"]))),128))]),!n.hideButtonList.includes("功能介绍")||!n.hideButtonList.includes("展开折叠")?(R(),V("div",DY,[n.hideButtonList.includes("功能介绍")?se("",!0):(R(),_e(f,{key:0,placement:"bottom-end",width:"auto",trigger:"hover"},{reference:te(()=>[G("div",LY,[ne(u,{class:"item",effect:"dark",content:"功能介绍",placement:"bottom","popper-class":"el-tooltip-gray"},{default:te(()=>[ne(c,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/button22/hm_icon_help.svg"]},null,8,["icon-class"])]),_:1})])]),default:te(()=>[ne(d,{config:n.moduleDetail.config||{}},null,8,["config"])]),_:1})),n.hideButtonList.includes("展开折叠")?se("",!0):(R(),V("div",{key:1,class:"button-one intro-button",onClick:t[1]||(t[1]=x=>o.handleAlias(s.flageAlias)),onMouseenter:t[2]||(t[2]=x=>o.hover(o.buttonList.length+1)),onMouseleave:t[3]||(t[3]=x=>o.out())},[ne(u,{class:"item",effect:"dark",content:s.flageAlias?"右侧折叠":"右侧展开",placement:"bottom","popper-class":"el-tooltip-gray"},{default:te(()=>[ne(c,{class:"button-img","icon-class":e.imgPath[s.flageAlias?"./public/d3svg1/button22/hm_icon_alias_colse.svg":"./public/d3svg1/button22/hm_icon_alias.svg"]},null,8,["icon-class"])]),_:1},8,["content"])],32))])):se("",!0)],512)],512),ne(y,{modelValue:s.dialogVisible,"onUpdate:modelValue":t[5]||(t[5]=x=>s.dialogVisible=x),title:"选择导出数据格式","append-to-body":"",width:"400px","before-close":o.handleCloseModal,class:"el-dialog-graph"},{footer:te(()=>[G("span",kY,[ne(v,{onClick:o.handleCloseModal},{default:te(()=>t[8]||(t[8]=[Je("取 消")])),_:1},8,["onClick"]),ne(v,{type:"primary",onClick:o.handleExportData},{default:te(()=>t[9]||(t[9]=[Je("导 出")])),_:1},8,["onClick"])])]),default:te(()=>[ne(g,{modelValue:s.exportFormat,"onUpdate:modelValue":t[4]||(t[4]=x=>s.exportFormat=x),placeholder:"请选择导出数据格式"},{default:te(()=>[(R(!0),V(qe,null,Nt(s.formatOptions,x=>(R(),_e(h,{key:x.value,label:x.label,value:x.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue","before-close"]),ne(y,{modelValue:s.dialogImportVisible,"onUpdate:modelValue":t[6]||(t[6]=x=>s.dialogImportVisible=x),title:"导入数据","append-to-body":"",width:"400px","before-close":o.handleCloseImportModal,class:"el-dialog-graph"},{footer:te(()=>[G("span",MY,[ne(v,{onClick:o.handleCloseImportModal},{default:te(()=>t[12]||(t[12]=[Je("取 消")])),_:1},8,["onClick"]),ne(v,{type:"primary",disabled:!s.importFile,onClick:o.handleImportData},{default:te(()=>t[13]||(t[13]=[Je("导 入")])),_:1},8,["disabled","onClick"])])]),default:te(()=>[ne(A,{drag:"",action:"#","auto-upload":!1,accept:".csv","file-list":s.importFileList,"on-change":o.handleFileChange,"on-remove":o.handleFileRemove},{tip:te(()=>t[10]||(t[10]=[G("div",{class:"el-upload__tip"},"只能上传由 Maltego 软件导出的csv文件",-1)])),default:te(()=>[ne(w,{class:"el-icon-upload"},{default:te(()=>[ne(_)]),_:1}),t[11]||(t[11]=G("div",{class:"el-upload__text"},[Je("将文件拖到此处,或"),G("em",null,"点击上传")],-1))]),_:1},8,["file-list","on-change","on-remove"])]),_:1},8,["modelValue","before-close"]),ne(C,{ref:"addNode","nodes-type":n.moduleDetail&&n.moduleDetail.nodes||[],"add-type":s.addType,onAddNodes:o.addNodes},null,8,["nodes-type","add-type","onAddNodes"]),ne(S,{ref:"addLink",onAddLink:o.addLink},null,8,["onAddLink"]),Dt(G("div",FY,[ne(d,{config:n.moduleDetail.config||{},onMouseenter:o.showIntro,onMouseleave:o.hideIntro},null,8,["config","onMouseenter","onMouseleave"])],512),[[wn,s.intro]])])}const jY=un(PY,[["render",BY]]);var fv={exports:{}},hv={},Kt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function n(){return typeof window!="undefined"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof Ks!="undefined"?Ks:typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"?self:{},e.Konva={_global:e.glob,version:"9.3.15",isBrowser:n(),isUnminified:/param/.test(function(s){}.toString()),dblClickWindow:400,getAngle(s){return e.Konva.angleDeg?s*t:s},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window!="undefined"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var s;return(s=e.Konva.Transformer)===null||s===void 0?void 0:s.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(s){e.glob.Konva=s}};const r=s=>{e.Konva[s.prototype.getClassName()]=s};e._registerNode=r,e.Konva._injectGlobal(e.Konva)})(Kt);var En={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Kt;class n{constructor(S=[1,0,0,1,0,0]){this.dirty=!1,this.m=S&&S.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new n(this.m)}copyInto(S){S.m[0]=this.m[0],S.m[1]=this.m[1],S.m[2]=this.m[2],S.m[3]=this.m[3],S.m[4]=this.m[4],S.m[5]=this.m[5]}point(S){var x=this.m;return{x:x[0]*S.x+x[2]*S.y+x[4],y:x[1]*S.x+x[3]*S.y+x[5]}}translate(S,x){return this.m[4]+=this.m[0]*S+this.m[2]*x,this.m[5]+=this.m[1]*S+this.m[3]*x,this}scale(S,x){return this.m[0]*=S,this.m[1]*=S,this.m[2]*=x,this.m[3]*=x,this}rotate(S){var x=Math.cos(S),O=Math.sin(S),N=this.m[0]*x+this.m[2]*O,I=this.m[1]*x+this.m[3]*O,F=this.m[0]*-O+this.m[2]*x,D=this.m[1]*-O+this.m[3]*x;return this.m[0]=N,this.m[1]=I,this.m[2]=F,this.m[3]=D,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(S,x){var O=this.m[0]+this.m[2]*x,N=this.m[1]+this.m[3]*x,I=this.m[2]+this.m[0]*S,F=this.m[3]+this.m[1]*S;return this.m[0]=O,this.m[1]=N,this.m[2]=I,this.m[3]=F,this}multiply(S){var x=this.m[0]*S.m[0]+this.m[2]*S.m[1],O=this.m[1]*S.m[0]+this.m[3]*S.m[1],N=this.m[0]*S.m[2]+this.m[2]*S.m[3],I=this.m[1]*S.m[2]+this.m[3]*S.m[3],F=this.m[0]*S.m[4]+this.m[2]*S.m[5]+this.m[4],D=this.m[1]*S.m[4]+this.m[3]*S.m[5]+this.m[5];return this.m[0]=x,this.m[1]=O,this.m[2]=N,this.m[3]=I,this.m[4]=F,this.m[5]=D,this}invert(){var S=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),x=this.m[3]*S,O=-this.m[1]*S,N=-this.m[2]*S,I=this.m[0]*S,F=S*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),D=S*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=x,this.m[1]=O,this.m[2]=N,this.m[3]=I,this.m[4]=F,this.m[5]=D,this}getMatrix(){return this.m}decompose(){var S=this.m[0],x=this.m[1],O=this.m[2],N=this.m[3],I=this.m[4],F=this.m[5],D=S*N-x*O;let k={x:I,y:F,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(S!=0||x!=0){var q=Math.sqrt(S*S+x*x);k.rotation=x>0?Math.acos(S/q):-Math.acos(S/q),k.scaleX=q,k.scaleY=D/q,k.skewX=(S*O+x*N)/D,k.skewY=0}else if(O!=0||N!=0){var H=Math.sqrt(O*O+N*N);k.rotation=Math.PI/2-(N>0?Math.acos(-O/H):-Math.acos(O/H)),k.scaleX=D/H,k.scaleY=H,k.skewX=0,k.skewY=(S*O+x*N)/D}return k.rotation=e.Util._getRotation(k.rotation),k}}e.Transform=n;var r="[object Array]",s="[object Number]",o="[object String]",a="[object Boolean]",l=Math.PI/180,c=180/Math.PI,u="#",d="",f="0",h="Konva warning: ",g="Konva error: ",v="rgb(",y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},_=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,w=[];const A=typeof requestAnimationFrame!="undefined"&&requestAnimationFrame||function(C){setTimeout(C,60)};e.Util={_isElement(C){return!!(C&&C.nodeType==1)},_isFunction(C){return!!(C&&C.constructor&&C.call&&C.apply)},_isPlainObject(C){return!!C&&C.constructor===Object},_isArray(C){return Object.prototype.toString.call(C)===r},_isNumber(C){return Object.prototype.toString.call(C)===s&&!isNaN(C)&&isFinite(C)},_isString(C){return Object.prototype.toString.call(C)===o},_isBoolean(C){return Object.prototype.toString.call(C)===a},isObject(C){return C instanceof Object},isValidSelector(C){if(typeof C!="string")return!1;var S=C[0];return S==="#"||S==="."||S===S.toUpperCase()},_sign(C){return C===0||C>0?1:-1},requestAnimFrame(C){w.push(C),w.length===1&&A(function(){const S=w;w=[],S.forEach(function(x){x()})})},createCanvasElement(){var C=document.createElement("canvas");try{C.style=C.style||{}}catch(S){}return C},createImageElement(){return document.createElement("img")},_isInDocument(C){for(;C=C.parentNode;)if(C==document)return!0;return!1},_urlToImage(C,S){var x=e.Util.createImageElement();x.onload=function(){S(x)},x.src=C},_rgbToHex(C,S,x){return((1<<24)+(C<<16)+(S<<8)+x).toString(16).slice(1)},_hexToRgb(C){C=C.replace(u,d);var S=parseInt(C,16);return{r:S>>16&255,g:S>>8&255,b:S&255}},getRandomColor(){for(var C=(Math.random()*16777215<<0).toString(16);C.length<6;)C=f+C;return u+C},getRGB(C){var S;return C in y?(S=y[C],{r:S[0],g:S[1],b:S[2]}):C[0]===u?this._hexToRgb(C.substring(1)):C.substr(0,4)===v?(S=_.exec(C.replace(/ /g,"")),{r:parseInt(S[1],10),g:parseInt(S[2],10),b:parseInt(S[3],10)}):{r:0,g:0,b:0}},colorToRGBA(C){return C=C||"black",e.Util._namedColorToRBA(C)||e.Util._hex3ColorToRGBA(C)||e.Util._hex4ColorToRGBA(C)||e.Util._hex6ColorToRGBA(C)||e.Util._hex8ColorToRGBA(C)||e.Util._rgbColorToRGBA(C)||e.Util._rgbaColorToRGBA(C)||e.Util._hslColorToRGBA(C)},_namedColorToRBA(C){var S=y[C.toLowerCase()];return S?{r:S[0],g:S[1],b:S[2],a:1}:null},_rgbColorToRGBA(C){if(C.indexOf("rgb(")===0){C=C.match(/rgb\(([^)]+)\)/)[1];var S=C.split(/ *, */).map(Number);return{r:S[0],g:S[1],b:S[2],a:1}}},_rgbaColorToRGBA(C){if(C.indexOf("rgba(")===0){C=C.match(/rgba\(([^)]+)\)/)[1];var S=C.split(/ *, */).map((x,O)=>x.slice(-1)==="%"?O===3?parseInt(x)/100:parseInt(x)/100*255:Number(x));return{r:S[0],g:S[1],b:S[2],a:S[3]}}},_hex8ColorToRGBA(C){if(C[0]==="#"&&C.length===9)return{r:parseInt(C.slice(1,3),16),g:parseInt(C.slice(3,5),16),b:parseInt(C.slice(5,7),16),a:parseInt(C.slice(7,9),16)/255}},_hex6ColorToRGBA(C){if(C[0]==="#"&&C.length===7)return{r:parseInt(C.slice(1,3),16),g:parseInt(C.slice(3,5),16),b:parseInt(C.slice(5,7),16),a:1}},_hex4ColorToRGBA(C){if(C[0]==="#"&&C.length===5)return{r:parseInt(C[1]+C[1],16),g:parseInt(C[2]+C[2],16),b:parseInt(C[3]+C[3],16),a:parseInt(C[4]+C[4],16)/255}},_hex3ColorToRGBA(C){if(C[0]==="#"&&C.length===4)return{r:parseInt(C[1]+C[1],16),g:parseInt(C[2]+C[2],16),b:parseInt(C[3]+C[3],16),a:1}},_hslColorToRGBA(C){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(C)){const[S,...x]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(C),O=Number(x[0])/360,N=Number(x[1])/100,I=Number(x[2])/100;let F,D,k;if(N===0)return k=I*255,{r:Math.round(k),g:Math.round(k),b:Math.round(k),a:1};I<.5?F=I*(1+N):F=I+N-I*N;const q=2*I-F,H=[0,0,0];for(let oe=0;oe<3;oe++)D=O+1/3*-(oe-1),D<0&&D++,D>1&&D--,6*D<1?k=q+(F-q)*6*D:2*D<1?k=F:3*D<2?k=q+(F-q)*(2/3-D)*6:k=q,H[oe]=k*255;return{r:Math.round(H[0]),g:Math.round(H[1]),b:Math.round(H[2]),a:1}}},haveIntersection(C,S){return!(S.x>C.x+C.width||S.x+S.width<C.x||S.y>C.y+C.height||S.y+S.height<C.y)},cloneObject(C){var S={};for(var x in C)this._isPlainObject(C[x])?S[x]=this.cloneObject(C[x]):this._isArray(C[x])?S[x]=this.cloneArray(C[x]):S[x]=C[x];return S},cloneArray(C){return C.slice(0)},degToRad(C){return C*l},radToDeg(C){return C*c},_degToRad(C){return e.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),e.Util.degToRad(C)},_radToDeg(C){return e.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),e.Util.radToDeg(C)},_getRotation(C){return t.Konva.angleDeg?e.Util.radToDeg(C):C},_capitalize(C){return C.charAt(0).toUpperCase()+C.slice(1)},throw(C){throw new Error(g+C)},error(C){console.error(g+C)},warn(C){t.Konva.showWarnings&&console.warn(h+C)},each(C,S){for(var x in C)S(x,C[x])},_inRange(C,S,x){return S<=C&&C<x},_getProjectionToSegment(C,S,x,O,N,I){var F,D,k,q=(C-x)*(C-x)+(S-O)*(S-O);if(q==0)F=C,D=S,k=(N-x)*(N-x)+(I-O)*(I-O);else{var H=((N-C)*(x-C)+(I-S)*(O-S))/q;H<0?(F=C,D=S,k=(C-N)*(C-N)+(S-I)*(S-I)):H>1?(F=x,D=O,k=(x-N)*(x-N)+(O-I)*(O-I)):(F=C+H*(x-C),D=S+H*(O-S),k=(F-N)*(F-N)+(D-I)*(D-I))}return[F,D,k]},_getProjectionToLine(C,S,x){var O=e.Util.cloneObject(C),N=Number.MAX_VALUE;return S.forEach(function(I,F){if(!(!x&&F===S.length-1)){var D=S[(F+1)%S.length],k=e.Util._getProjectionToSegment(I.x,I.y,D.x,D.y,C.x,C.y),q=k[0],H=k[1],oe=k[2];oe<N&&(O.x=q,O.y=H,N=oe)}}),O},_prepareArrayForTween(C,S,x){var O,N=[],I=[];if(C.length>S.length){var F=S;S=C,C=F}for(O=0;O<C.length;O+=2)N.push({x:C[O],y:C[O+1]});for(O=0;O<S.length;O+=2)I.push({x:S[O],y:S[O+1]});var D=[];return I.forEach(function(k){var q=e.Util._getProjectionToLine(k,N,x);D.push(q.x),D.push(q.y)}),D},_prepareToStringify(C){var S;C.visitedByCircularReferenceRemoval=!0;for(var x in C)if(C.hasOwnProperty(x)&&C[x]&&typeof C[x]=="object"){if(S=Object.getOwnPropertyDescriptor(C,x),C[x].visitedByCircularReferenceRemoval||e.Util._isElement(C[x]))if(S.configurable)delete C[x];else return null;else if(e.Util._prepareToStringify(C[x])===null)if(S.configurable)delete C[x];else return null}return delete C.visitedByCircularReferenceRemoval,C},_assign(C,S){for(var x in S)C[x]=S[x];return C},_getFirstPointerId(C){return C.touches?C.changedTouches[0].identifier:C.pointerId||999},releaseCanvas(...C){t.Konva.releaseCanvasOnDestroy&&C.forEach(S=>{S.width=0,S.height=0})},drawRoundedRectPath(C,S,x,O){let N=0,I=0,F=0,D=0;typeof O=="number"?N=I=F=D=Math.min(O,S/2,x/2):(N=Math.min(O[0]||0,S/2,x/2),I=Math.min(O[1]||0,S/2,x/2),D=Math.min(O[2]||0,S/2,x/2),F=Math.min(O[3]||0,S/2,x/2)),C.moveTo(N,0),C.lineTo(S-I,0),C.arc(S-I,I,I,Math.PI*3/2,0,!1),C.lineTo(S,x-D),C.arc(S-D,x-D,D,0,Math.PI/2,!1),C.lineTo(F,x),C.arc(F,x-F,F,Math.PI/2,Math.PI,!1),C.lineTo(0,N),C.arc(N,N,N,Math.PI,Math.PI*3/2,!1)}}})(En);var Qs={},oi={},It={};Object.defineProperty(It,"__esModule",{value:!0}),It.getComponentValidator=It.getBooleanValidator=It.getNumberArrayValidator=It.getFunctionValidator=It.getStringOrGradientValidator=It.getStringValidator=It.getNumberOrAutoValidator=It.getNumberOrArrayOfNumbersValidator=It.getNumberValidator=It.alphaComponent=It.RGBComponent=void 0;const gs=Kt,rn=En;function ms(e){return rn.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||rn.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function UY(e){return e>255?255:e<0?0:Math.round(e)}It.RGBComponent=UY;function $Y(e){return e>1?1:e<1e-4?1e-4:e}It.alphaComponent=$Y;function VY(){if(gs.Konva.isUnminified)return function(e,t){return rn.Util._isNumber(e)||rn.Util.warn(ms(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}It.getNumberValidator=VY;function zY(e){if(gs.Konva.isUnminified)return function(t,n){let r=rn.Util._isNumber(t),s=rn.Util._isArray(t)&&t.length==e;return!r&&!s&&rn.Util.warn(ms(t)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+e+")"),t}}It.getNumberOrArrayOfNumbersValidator=zY;function qY(){if(gs.Konva.isUnminified)return function(e,t){var n=rn.Util._isNumber(e),r=e==="auto";return n||r||rn.Util.warn(ms(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}It.getNumberOrAutoValidator=qY;function HY(){if(gs.Konva.isUnminified)return function(e,t){return rn.Util._isString(e)||rn.Util.warn(ms(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}It.getStringValidator=HY;function GY(){if(gs.Konva.isUnminified)return function(e,t){const n=rn.Util._isString(e),r=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return n||r||rn.Util.warn(ms(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}It.getStringOrGradientValidator=GY;function WY(){if(gs.Konva.isUnminified)return function(e,t){return rn.Util._isFunction(e)||rn.Util.warn(ms(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}It.getFunctionValidator=WY;function KY(){if(gs.Konva.isUnminified)return function(e,t){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&e instanceof n||(rn.Util._isArray(e)?e.forEach(function(r){rn.Util._isNumber(r)||rn.Util.warn('"'+t+'" attribute has non numeric element '+r+". Make sure that all elements are numbers.")}):rn.Util.warn(ms(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}It.getNumberArrayValidator=KY;function JY(){if(gs.Konva.isUnminified)return function(e,t){var n=e===!0||e===!1;return n||rn.Util.warn(ms(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}It.getBooleanValidator=JY;function YY(e){if(gs.Konva.isUnminified)return function(t,n){return t==null||rn.Util.isObject(t)||rn.Util.warn(ms(t)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+e),t}}It.getComponentValidator=YY,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=En,n=It;var r="get",s="set";e.Factory={addGetterSetter(o,a,l,c,u){e.Factory.addGetter(o,a,l),e.Factory.addSetter(o,a,c,u),e.Factory.addOverloadedGetterSetter(o,a)},addGetter(o,a,l){var c=r+t.Util._capitalize(a);o.prototype[c]=o.prototype[c]||function(){var u=this.attrs[a];return u===void 0?l:u}},addSetter(o,a,l,c){var u=s+t.Util._capitalize(a);o.prototype[u]||e.Factory.overWriteSetter(o,a,l,c)},overWriteSetter(o,a,l,c){var u=s+t.Util._capitalize(a);o.prototype[u]=function(d){return l&&d!==void 0&&d!==null&&(d=l.call(this,d,a)),this._setAttr(a,d),c&&c.call(this),this}},addComponentsGetterSetter(o,a,l,c,u){var d=l.length,f=t.Util._capitalize,h=r+f(a),g=s+f(a),v,y;o.prototype[h]=function(){var w={};for(v=0;v<d;v++)y=l[v],w[y]=this.getAttr(a+f(y));return w};var _=(0,n.getComponentValidator)(l);o.prototype[g]=function(w){var A=this.attrs[a],C;c&&(w=c.call(this,w)),_&&_.call(this,w,a);for(C in w)w.hasOwnProperty(C)&&this._setAttr(a+f(C),w[C]);return w||l.forEach(S=>{this._setAttr(a+f(S),void 0)}),this._fireChangeEvent(a,A,w),u&&u.call(this),this},e.Factory.addOverloadedGetterSetter(o,a)},addOverloadedGetterSetter(o,a){var l=t.Util._capitalize(a),c=s+l,u=r+l;o.prototype[a]=function(){return arguments.length?(this[c](arguments[0]),this):this[u]()}},addDeprecatedGetterSetter(o,a,l,c){t.Util.error("Adding deprecated "+a);var u=r+t.Util._capitalize(a),d=a+" property is deprecated and will be removed soon. Look at Konva change log for more information.";o.prototype[u]=function(){t.Util.error(d);var f=this.attrs[a];return f===void 0?l:f},e.Factory.addSetter(o,a,c,function(){t.Util.error(d)}),e.Factory.addOverloadedGetterSetter(o,a)},backCompat(o,a){t.Util.each(a,function(l,c){var u=o.prototype[c],d=r+t.Util._capitalize(l),f=s+t.Util._capitalize(l);function h(){u.apply(this,arguments),t.Util.error('"'+l+'" method is deprecated and will be removed soon. Use ""'+c+'" instead.')}o.prototype[l]=h,o.prototype[d]=h,o.prototype[f]=h})},afterSetFilter(){this._filterUpToDate=!1}}}(oi);var ar={},vs={};Object.defineProperty(vs,"__esModule",{value:!0}),vs.HitContext=vs.SceneContext=vs.Context=void 0;const s4=En,XY=Kt;function ZY(e){var t=[],n=e.length,r=s4.Util,s,o;for(s=0;s<n;s++)o=e[s],r._isNumber(o)?o=Math.round(o*1e3)/1e3:r._isString(o)||(o=o+""),t.push(o);return t}var o4=",",QY="(",eX=")",tX="([",nX="])",iX=";",rX="()",sX="=",a4=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],oX=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const aX=100;class Wf{constructor(t){this.canvas=t,XY.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,n){var r=this.traceArr,s=r.length,o="",a,l,c,u;for(a=0;a<s;a++)l=r[a],c=l.method,c?(u=l.args,o+=c,t?o+=rX:s4.Util._isArray(u[0])?o+=tX+u.join(o4)+nX:(n&&(u=u.map(d=>typeof d=="number"?Math.floor(d):d)),o+=QY+u.join(o4)+eX)):(o+=l.property,t||(o+=sX+l.val)),o+=iX;return o}clearTrace(){this.traceArr=[]}_trace(t){var n=this.traceArr,r;n.push(t),r=n.length,r>=aX&&n.shift()}reset(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){var n=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,n.getWidth()/n.pixelRatio,n.getHeight()/n.pixelRatio)}_applyLineCap(t){const n=t.attrs.lineCap;n&&this.setAttr("lineCap",n)}_applyOpacity(t){var n=t.getAbsoluteOpacity();n!==1&&this.setAttr("globalAlpha",n)}_applyLineJoin(t){const n=t.attrs.lineJoin;n&&this.setAttr("lineJoin",n)}setAttr(t,n){this._context[t]=n}arc(t,n,r,s,o,a){this._context.arc(t,n,r,s,o,a)}arcTo(t,n,r,s,o){this._context.arcTo(t,n,r,s,o)}beginPath(){this._context.beginPath()}bezierCurveTo(t,n,r,s,o,a){this._context.bezierCurveTo(t,n,r,s,o,a)}clearRect(t,n,r,s){this._context.clearRect(t,n,r,s)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,n){var r=arguments;if(r.length===2)return this._context.createImageData(t,n);if(r.length===1)return this._context.createImageData(t)}createLinearGradient(t,n,r,s){return this._context.createLinearGradient(t,n,r,s)}createPattern(t,n){return this._context.createPattern(t,n)}createRadialGradient(t,n,r,s,o,a){return this._context.createRadialGradient(t,n,r,s,o,a)}drawImage(t,n,r,s,o,a,l,c,u){var d=arguments,f=this._context;d.length===3?f.drawImage(t,n,r):d.length===5?f.drawImage(t,n,r,s,o):d.length===9&&f.drawImage(t,n,r,s,o,a,l,c,u)}ellipse(t,n,r,s,o,a,l,c){this._context.ellipse(t,n,r,s,o,a,l,c)}isPointInPath(t,n,r,s){return r?this._context.isPointInPath(r,t,n,s):this._context.isPointInPath(t,n,s)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,n,r,s){this._context.fillRect(t,n,r,s)}strokeRect(t,n,r,s){this._context.strokeRect(t,n,r,s)}fillText(t,n,r,s){s?this._context.fillText(t,n,r,s):this._context.fillText(t,n,r)}measureText(t){return this._context.measureText(t)}getImageData(t,n,r,s){return this._context.getImageData(t,n,r,s)}lineTo(t,n){this._context.lineTo(t,n)}moveTo(t,n){this._context.moveTo(t,n)}rect(t,n,r,s){this._context.rect(t,n,r,s)}roundRect(t,n,r,s,o){this._context.roundRect(t,n,r,s,o)}putImageData(t,n,r){this._context.putImageData(t,n,r)}quadraticCurveTo(t,n,r,s){this._context.quadraticCurveTo(t,n,r,s)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,n){this._context.scale(t,n)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,n,r,s,o,a){this._context.setTransform(t,n,r,s,o,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,n,r,s){this._context.strokeText(t,n,r,s)}transform(t,n,r,s,o,a){this._context.transform(t,n,r,s,o,a)}translate(t,n){this._context.translate(t,n)}_enableTrace(){var t=this,n=a4.length,r=this.setAttr,s,o,a=function(l){var c=t[l],u;t[l]=function(){return o=ZY(Array.prototype.slice.call(arguments,0)),u=c.apply(t,arguments),t._trace({method:l,args:o}),u}};for(s=0;s<n;s++)a(a4[s]);t.setAttr=function(){r.apply(t,arguments);var l=arguments[0],c=arguments[1];(l==="shadowOffsetX"||l==="shadowOffsetY"||l==="shadowBlur")&&(c=c/this.canvas.getPixelRatio()),t._trace({property:l,val:c})}}_applyGlobalCompositeOperation(t){const n=t.attrs.globalCompositeOperation;var r=!n||n==="source-over";r||this.setAttr("globalCompositeOperation",n)}}vs.Context=Wf,oX.forEach(function(e){Object.defineProperty(Wf.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});class lX extends Wf{constructor(t,{willReadFrequently:n=!1}={}){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:n})}_fillColor(t){var n=t.fill();this.setAttr("fillStyle",n),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){var n=t._getLinearGradient();n&&(this.setAttr("fillStyle",n),t._fillFunc(this))}_fillRadialGradient(t){const n=t._getRadialGradient();n&&(this.setAttr("fillStyle",n),t._fillFunc(this))}_fill(t){const n=t.fill(),r=t.getFillPriority();if(n&&r==="color"){this._fillColor(t);return}const s=t.getFillPatternImage();if(s&&r==="pattern"){this._fillPattern(t);return}const o=t.getFillLinearGradientColorStops();if(o&&r==="linear-gradient"){this._fillLinearGradient(t);return}const a=t.getFillRadialGradientColorStops();if(a&&r==="radial-gradient"){this._fillRadialGradient(t);return}n?this._fillColor(t):s?this._fillPattern(t):o?this._fillLinearGradient(t):a&&this._fillRadialGradient(t)}_strokeLinearGradient(t){const n=t.getStrokeLinearGradientStartPoint(),r=t.getStrokeLinearGradientEndPoint(),s=t.getStrokeLinearGradientColorStops(),o=this.createLinearGradient(n.x,n.y,r.x,r.y);if(s){for(var a=0;a<s.length;a+=2)o.addColorStop(s[a],s[a+1]);this.setAttr("strokeStyle",o)}}_stroke(t){var n=t.dash(),r=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!r){this.save();var s=this.getCanvas().getPixelRatio();this.setTransform(s,0,0,s,0,0)}this._applyLineCap(t),n&&t.dashEnabled()&&(this.setLineDash(n),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var o=t.getStrokeLinearGradientColorStops();o?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),r||this.restore()}}_applyShadow(t){var n,r,s,o=(n=t.getShadowRGBA())!==null&&n!==void 0?n:"black",a=(r=t.getShadowBlur())!==null&&r!==void 0?r:5,l=(s=t.getShadowOffset())!==null&&s!==void 0?s:{x:0,y:0},c=t.getAbsoluteScale(),u=this.canvas.getPixelRatio(),d=c.x*u,f=c.y*u;this.setAttr("shadowColor",o),this.setAttr("shadowBlur",a*Math.min(Math.abs(d),Math.abs(f))),this.setAttr("shadowOffsetX",l.x*d),this.setAttr("shadowOffsetY",l.y*f)}}vs.SceneContext=lX;class cX extends Wf{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){const o=t.getStrokeScaleEnabled();if(!o){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(t);var r=t.hitStrokeWidth(),s=r==="auto"?t.strokeWidth():r;this.setAttr("lineWidth",s),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),o||this.restore()}}}vs.HitContext=cX,Object.defineProperty(ar,"__esModule",{value:!0}),ar.HitCanvas=ar.SceneCanvas=ar.Canvas=void 0;const Kf=En,l4=vs,c4=Kt,uX=oi,dX=It;var Jf;function fX(){if(Jf)return Jf;var e=Kf.Util.createCanvasElement(),t=e.getContext("2d");return Jf=function(){var n=c4.Konva._global.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return n/r}(),Kf.Util.releaseCanvas(e),Jf}class Yf{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var n=t||{},r=n.pixelRatio||c4.Konva.pixelRatio||fX();this.pixelRatio=r,this._canvas=Kf.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){var n=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/n,this.getHeight()/n)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var n=this.pixelRatio,r=this.getContext()._context;r.scale(n,n)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var n=this.pixelRatio,r=this.getContext()._context;r.scale(n,n)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,n){this.setWidth(t||0),this.setHeight(n||0)}toDataURL(t,n){try{return this._canvas.toDataURL(t,n)}catch(r){try{return this._canvas.toDataURL()}catch(s){return Kf.Util.error("Unable to get data URL. "+s.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}ar.Canvas=Yf,uX.Factory.addGetterSetter(Yf,"pixelRatio",void 0,(0,dX.getNumberValidator)());class hX extends Yf{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new l4.SceneContext(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}ar.SceneCanvas=hX;class pX extends Yf{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new l4.HitContext(this),this.setSize(t.width,t.height)}}ar.HitCanvas=pX;var Xf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DD=void 0;const t=Kt,n=En;e.DD={get isDragging(){var r=!1;return e.DD._dragElements.forEach(s=>{s.dragStatus==="dragging"&&(r=!0)}),r},justDragged:!1,get node(){var r;return e.DD._dragElements.forEach(s=>{r=s.node}),r},_dragElements:new Map,_drag(r){const s=[];e.DD._dragElements.forEach((o,a)=>{const{node:l}=o,c=l.getStage();c.setPointersPositions(r),o.pointerId===void 0&&(o.pointerId=n.Util._getFirstPointerId(r));const u=c._changedPointerPositions.find(h=>h.id===o.pointerId);if(u){if(o.dragStatus!=="dragging"){var d=l.dragDistance(),f=Math.max(Math.abs(u.x-o.startPointerPos.x),Math.abs(u.y-o.startPointerPos.y));if(f<d||(l.startDrag({evt:r}),!l.isDragging()))return}l._setDragPosition(r,o),s.push(l)}}),s.forEach(o=>{o.fire("dragmove",{type:"dragmove",target:o,evt:r},!0)})},_endDragBefore(r){const s=[];e.DD._dragElements.forEach(o=>{const{node:a}=o,l=a.getStage();if(r&&l.setPointersPositions(r),!l._changedPointerPositions.find(d=>d.id===o.pointerId))return;(o.dragStatus==="dragging"||o.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,o.dragStatus="stopped");const u=o.node.getLayer()||o.node instanceof t.Konva.Stage&&o.node;u&&s.indexOf(u)===-1&&s.push(u)}),s.forEach(o=>{o.draw()})},_endDragAfter(r){e.DD._dragElements.forEach((s,o)=>{s.dragStatus==="stopped"&&s.node.fire("dragend",{type:"dragend",target:s.node,evt:r},!0),s.dragStatus!=="dragging"&&e.DD._dragElements.delete(o)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1))})(Xf),Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.Node=void 0;const Pt=En,eu=oi,tu=ar,eo=Kt,Di=Xf,dn=It;var Zf="absoluteOpacity",Qf="allEventListeners",bs="absoluteTransform",u4="absoluteScale",ta="canvas",gX="Change",mX="children",vX="konva",pv="listening",d4="mouseenter",f4="mouseleave",h4="set",p4="Shape",eh=" ",g4="stage",to="transform",bX="Stage",gv="visible",yX=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(eh);let _X=1;class ct{constructor(t){this._id=_X++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===to||t===bs)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,n){var r=this._cache.get(t),s=t===to||t===bs,o=r===void 0||s&&r.dirty===!0;return o&&(r=n.call(this),this._cache.set(t,r)),r}_calculate(t,n,r){if(!this._attachedDepsListeners.get(t)){const s=n.map(o=>o+"Change.konva").join(eh);this.on(s,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,r)}_getCanvasCache(){return this._cache.get(ta)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===bs&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(ta)){const{scene:t,filter:n,hit:r}=this._cache.get(ta);Pt.Util.releaseCanvas(t,n,r),this._cache.delete(ta)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){var n=t||{},r={};(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)&&(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var s=Math.ceil(n.width||r.width),o=Math.ceil(n.height||r.height),a=n.pixelRatio,l=n.x===void 0?Math.floor(r.x):n.x,c=n.y===void 0?Math.floor(r.y):n.y,u=n.offset||0,d=n.drawBorder||!1,f=n.hitCanvasPixelRatio||1;if(!s||!o){Pt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const h=Math.abs(Math.round(r.x)-l)>.5?1:0,g=Math.abs(Math.round(r.y)-c)>.5?1:0;s+=u*2+h,o+=u*2+g,l-=u,c-=u;var v=new tu.SceneCanvas({pixelRatio:a,width:s,height:o}),y=new tu.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),_=new tu.HitCanvas({pixelRatio:f,width:s,height:o}),w=v.getContext(),A=_.getContext();return _.isCache=!0,v.isCache=!0,this._cache.delete(ta),this._filterUpToDate=!1,n.imageSmoothingEnabled===!1&&(v.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),w.save(),A.save(),w.translate(-l,-c),A.translate(-l,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Zf),this._clearSelfAndDescendantCache(u4),this.drawScene(v,this),this.drawHit(_,this),this._isUnderCache=!1,w.restore(),A.restore(),d&&(w.save(),w.beginPath(),w.rect(0,0,s,o),w.closePath(),w.setAttr("strokeStyle","red"),w.setAttr("lineWidth",5),w.stroke(),w.restore()),this._cache.set(ta,{scene:v,filter:y,hit:_,x:l,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(ta)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,n){var r=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],s=1/0,o=1/0,a=-1/0,l=-1/0,c=this.getAbsoluteTransform(n);return r.forEach(function(u){var d=c.point(u);s===void 0&&(s=a=d.x,o=l=d.y),s=Math.min(s,d.x),o=Math.min(o,d.y),a=Math.max(a,d.x),l=Math.max(l,d.y)}),{x:s,y:o,width:a-s,height:l-o}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const n=this._getCanvasCache();t.translate(n.x,n.y);var r=this._getCachedSceneCanvas(),s=r.pixelRatio;t.drawImage(r._canvas,0,0,r.width/s,r.height/s),t.restore()}_drawCachedHitCanvas(t){var n=this._getCanvasCache(),r=n.hit;t.save(),t.translate(n.x,n.y),t.drawImage(r._canvas,0,0,r.width/r.pixelRatio,r.height/r.pixelRatio),t.restore()}_getCachedSceneCanvas(){var t=this.filters(),n=this._getCanvasCache(),r=n.scene,s=n.filter,o=s.getContext(),a,l,c,u;if(t){if(!this._filterUpToDate){var d=r.pixelRatio;s.setSize(r.width/r.pixelRatio,r.height/r.pixelRatio);try{for(a=t.length,o.clear(),o.drawImage(r._canvas,0,0,r.getWidth()/d,r.getHeight()/d),l=o.getImageData(0,0,s.getWidth(),s.getHeight()),c=0;c<a;c++){if(u=t[c],typeof u!="function"){Pt.Util.error("Filter should be type of function, but got "+typeof u+" instead. Please check correct filters");continue}u.call(this,l),o.putImageData(l,0,0)}}catch(f){Pt.Util.error("Unable to apply filter. "+f.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return s}return r}on(t,n){if(this._cache&&this._cache.delete(Qf),arguments.length===3)return this._delegate.apply(this,arguments);var r=t.split(eh),s=r.length,o,a,l,c,u;for(o=0;o<s;o++)a=r[o],l=a.split("."),c=l[0],u=l[1]||"",this.eventListeners[c]||(this.eventListeners[c]=[]),this.eventListeners[c].push({name:u,handler:n});return this}off(t,n){var r=(t||"").split(eh),s=r.length,o,a,l,c,u,d;if(this._cache&&this._cache.delete(Qf),!t)for(a in this.eventListeners)this._off(a);for(o=0;o<s;o++)if(l=r[o],c=l.split("."),u=c[0],d=c[1],u)this.eventListeners[u]&&this._off(u,d,n);else for(a in this.eventListeners)this._off(a,d,n);return this}dispatchEvent(t){var n={target:this,type:t.type,evt:t};return this.fire(t.type,n),this}addEventListener(t,n){return this.on(t,function(r){n.call(this,r.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,n,r){var s=this;this.on(t,function(o){for(var a=o.target.findAncestors(n,!0,s),l=0;l<a.length;l++)o=Pt.Util.cloneObject(o),o.currentTarget=a[l],r.call(a[l],o)})}remove(){return this.isDragging()&&this.stopDrag(),Di.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(bs),this._clearSelfAndDescendantCache(Zf),this._clearSelfAndDescendantCache(u4),this._clearSelfAndDescendantCache(g4),this._clearSelfAndDescendantCache(gv),this._clearSelfAndDescendantCache(pv)}_remove(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(t){var n="get"+Pt.Util._capitalize(t);return Pt.Util._isFunction(this[n])?this[n]():this.attrs[t]}getAncestors(){for(var t=this.getParent(),n=[];t;)n.push(t),t=t.getParent();return n}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{var n,r;if(!t)return this;for(n in t)n!==mX&&(r=h4+Pt.Util._capitalize(n),Pt.Util._isFunction(this[r])?this[r](t[n]):this._setAttr(n,t[n]))}),this}isListening(){return this._getCache(pv,this._isListening)}_isListening(t){if(!this.listening())return!1;const r=this.getParent();return r&&r!==t&&this!==t?r._isListening(t):!0}isVisible(){return this._getCache(gv,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const r=this.getParent();return r&&r!==t&&this!==t?r._isVisible(t):!0}shouldDrawHit(t,n=!1){if(t)return this._isVisible(t)&&this._isListening(t);var r=this.getLayer(),s=!1;Di.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===r)&&(s=!0)});var o=!n&&!eo.Konva.hitOnDragEnabled&&(s||eo.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!o}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var t=this.getDepth(),n=this,r=0,s,o,a,l;function c(d){for(s=[],o=d.length,a=0;a<o;a++)l=d[a],r++,l.nodeType!==p4&&(s=s.concat(l.getChildren().slice())),l._id===n._id&&(a=o);s.length>0&&s[0].getDepth()<=t&&c(s)}const u=this.getStage();return n.nodeType!==bX&&u&&c(u.getChildren()),r}getDepth(){for(var t=0,n=this.parent;n;)t++,n=n.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(to),this._clearSelfAndDescendantCache(bs)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;var n=t.getPointerPosition();if(!n)return null;var r=this.getAbsoluteTransform().copy();return r.invert(),r.point(n)}getAbsolutePosition(t){let n=!1,r=this.parent;for(;r;){if(r.isCached()){n=!0;break}r=r.parent}n&&!t&&(t=!0);var s=this.getAbsoluteTransform(t).getMatrix(),o=new Pt.Transform,a=this.offset();return o.m=s.slice(),o.translate(a.x,a.y),o.getTranslation()}setAbsolutePosition(t){const a=this._clearTransform(),{x:n,y:r}=a,s=Ps(a,["x","y"]);this.attrs.x=n,this.attrs.y=r,this._clearCache(to);var o=this._getAbsoluteTransform().copy();return o.invert(),o.translate(t.x,t.y),t={x:this.attrs.x+o.getTranslation().x,y:this.attrs.y+o.getTranslation().y},this._setTransform(s),this.setPosition({x:t.x,y:t.y}),this._clearCache(to),this._clearSelfAndDescendantCache(bs),this}_setTransform(t){var n;for(n in t)this.attrs[n]=t[n]}_clearTransform(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){var n=t.x,r=t.y,s=this.x(),o=this.y();return n!==void 0&&(s+=n),r!==void 0&&(o+=r),this.setPosition({x:s,y:o}),this}_eachAncestorReverse(t,n){var r=[],s=this.getParent(),o,a;if(!(n&&n._id===this._id)){for(r.unshift(this);s&&(!n||s._id!==n._id);)r.unshift(s),s=s.parent;for(o=r.length,a=0;a<o;a++)t(r[a])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return Pt.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index,n=this.parent.getChildren().length;return t<n-1?(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return Pt.Util.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index,n=this.parent.getChildren().length;return t<n-1?(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return Pt.Util.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Pt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Pt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Pt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Zf,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var t=this.opacity(),n=this.getParent();return n&&!n._isUnderCache&&(t*=n.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){var t=this.getAttrs(),n,r,s,o,a;const l={attrs:{},className:this.getClassName()};for(n in t)r=t[n],a=Pt.Util.isObject(r)&&!Pt.Util._isPlainObject(r)&&!Pt.Util._isArray(r),!a&&(s=typeof this[n]=="function"&&this[n],delete t[n],o=s?s.call(this):null,t[n]=r,o!==r&&(l.attrs[n]=r));return Pt.Util._prepareToStringify(l)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,n,r){var s=[];n&&this._isMatch(t)&&s.push(this);for(var o=this.parent;o;){if(o===r)return s;o._isMatch(t)&&s.push(o),o=o.parent}return s}isAncestorOf(t){return!1}findAncestor(t,n,r){return this.findAncestors(t,n,r)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);var n=t.replace(/ /g,"").split(","),r=n.length,s,o;for(s=0;s<r;s++)if(o=n[s],Pt.Util.isValidSelector(o)||(Pt.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),Pt.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),Pt.Util.warn("Konva is awesome, right?")),o.charAt(0)==="#"){if(this.id()===o.slice(1))return!0}else if(o.charAt(0)==="."){if(this.hasName(o.slice(1)))return!0}else if(this.className===o||this.nodeType===o)return!0;return!1}getLayer(){var t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(g4,this._getStage)}_getStage(){var t=this.getParent();return t?t.getStage():null}fire(t,n={},r){return n.target=n.target||this,r?this._fireAndBubble(t,n):this._fire(t,n),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(bs,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var n;if(t)return n=new Pt.Transform,this._eachAncestorReverse(function(s){var o=s.transformsEnabled();o==="all"?n.multiply(s.getTransform()):o==="position"&&n.translate(s.x()-s.offsetX(),s.y()-s.offsetY())},t),n;n=this._cache.get(bs)||new Pt.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(n):n.reset();var r=this.transformsEnabled();if(r==="all")n.multiply(this.getTransform());else if(r==="position"){const s=this.attrs.x||0,o=this.attrs.y||0,a=this.attrs.offsetX||0,l=this.attrs.offsetY||0;n.translate(s-a,o-l)}return n.dirty=!1,n}getAbsoluteScale(t){for(var n=this;n;)n._isUnderCache&&(t=n),n=n.getParent();const s=this.getAbsoluteTransform(t).decompose();return{x:s.scaleX,y:s.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(to,this._getTransform)}_getTransform(){var t,n,r=this._cache.get(to)||new Pt.Transform;r.reset();var s=this.x(),o=this.y(),a=eo.Konva.getAngle(this.rotation()),l=(t=this.attrs.scaleX)!==null&&t!==void 0?t:1,c=(n=this.attrs.scaleY)!==null&&n!==void 0?n:1,u=this.attrs.skewX||0,d=this.attrs.skewY||0,f=this.attrs.offsetX||0,h=this.attrs.offsetY||0;return(s!==0||o!==0)&&r.translate(s,o),a!==0&&r.rotate(a),(u!==0||d!==0)&&r.skew(u,d),(l!==1||c!==1)&&r.scale(l,c),(f!==0||h!==0)&&r.translate(-1*f,-1*h),r.dirty=!1,r}clone(t){var n=Pt.Util.cloneObject(this.attrs),r,s,o,a,l;for(r in t)n[r]=t[r];var c=new this.constructor(n);for(r in this.eventListeners)for(s=this.eventListeners[r],o=s.length,a=0;a<o;a++)l=s[a],l.name.indexOf(vX)<0&&(c.eventListeners[r]||(c.eventListeners[r]=[]),c.eventListeners[r].push(l));return c}_toKonvaCanvas(t){t=t||{};var n=this.getClientRect(),r=this.getStage(),s=t.x!==void 0?t.x:Math.floor(n.x),o=t.y!==void 0?t.y:Math.floor(n.y),a=t.pixelRatio||1,l=new tu.SceneCanvas({width:t.width||Math.ceil(n.width)||(r?r.width():0),height:t.height||Math.ceil(n.height)||(r?r.height():0),pixelRatio:a}),c=l.getContext();const u=new tu.SceneCanvas({width:l.width/l.pixelRatio+Math.abs(s),height:l.height/l.pixelRatio+Math.abs(o),pixelRatio:l.pixelRatio});return t.imageSmoothingEnabled===!1&&(c._context.imageSmoothingEnabled=!1),c.save(),(s||o)&&c.translate(-1*s,-1*o),this.drawScene(l,void 0,u),c.restore(),l}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};var n=t.mimeType||null,r=t.quality||null,s=this._toKonvaCanvas(t).toDataURL(n,r);return t.callback&&t.callback(s),s}toImage(t){return new Promise((n,r)=>{try{const s=t==null?void 0:t.callback;s&&delete t.callback,Pt.Util._urlToImage(this.toDataURL(t),function(o){n(o),s==null||s(o)})}catch(s){r(s)}})}toBlob(t){return new Promise((n,r)=>{try{const s=t==null?void 0:t.callback;s&&delete t.callback,this.toCanvas(t).toBlob(o=>{n(o),s==null||s(o)},t==null?void 0:t.mimeType,t==null?void 0:t.quality)}catch(s){r(s)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():eo.Konva.dragDistance}_off(t,n,r){var s=this.eventListeners[t],o,a,l;for(o=0;o<s.length;o++)if(a=s[o].name,l=s[o].handler,(a!=="konva"||n==="konva")&&(!n||a===n)&&(!r||r===l)){if(s.splice(o,1),s.length===0){delete this.eventListeners[t];break}o--}}_fireChangeEvent(t,n,r){this._fire(t+gX,{oldVal:n,newVal:r})}addName(t){if(!this.hasName(t)){var n=this.name(),r=n?n+" "+t:t;this.name(r)}return this}hasName(t){if(!t)return!1;const n=this.name();if(!n)return!1;var r=(n||"").split(/\s/g);return r.indexOf(t)!==-1}removeName(t){var n=(this.name()||"").split(/\s/g),r=n.indexOf(t);return r!==-1&&(n.splice(r,1),this.name(n.join(" "))),this}setAttr(t,n){var r=this[h4+Pt.Util._capitalize(t)];return Pt.Util._isFunction(r)?r.call(this,n):this._setAttr(t,n),this}_requestDraw(){if(eo.Konva.autoDrawEnabled){const t=this.getLayer()||this.getStage();t==null||t.batchDraw()}}_setAttr(t,n){var r=this.attrs[t];r===n&&!Pt.Util.isObject(n)||(n==null?delete this.attrs[t]:this.attrs[t]=n,this._shouldFireChangeEvents&&this._fireChangeEvent(t,r,n),this._requestDraw())}_setComponentAttr(t,n,r){var s;r!==void 0&&(s=this.attrs[t],s||(this.attrs[t]=this.getAttr(t)),this.attrs[t][n]=r,this._fireChangeEvent(t,s,r))}_fireAndBubble(t,n,r){n&&this.nodeType===p4&&(n.target=this);var s=(t===d4||t===f4)&&(r&&(this===r||this.isAncestorOf&&this.isAncestorOf(r))||this.nodeType==="Stage"&&!r);if(!s){this._fire(t,n);var o=(t===d4||t===f4)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!o&&(r&&r.parent?this._fireAndBubble.call(this.parent,t,n,r):this._fireAndBubble.call(this.parent,t,n))}}_getProtoListeners(t){var n,r,s;const o=(n=this._cache.get(Qf))!==null&&n!==void 0?n:{};let a=o==null?void 0:o[t];if(a===void 0){a=[];let l=Object.getPrototypeOf(this);for(;l;){const c=(s=(r=l.eventListeners)===null||r===void 0?void 0:r[t])!==null&&s!==void 0?s:[];a.push(...c),l=Object.getPrototypeOf(l)}o[t]=a,this._cache.set(Qf,o)}return a}_fire(t,n){n=n||{},n.currentTarget=this,n.type=t;const r=this._getProtoListeners(t);if(r)for(var s=0;s<r.length;s++)r[s].handler.call(this,n);const o=this.eventListeners[t];if(o)for(var s=0;s<o.length;s++)o[s].handler.call(this,n)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){var n=t?t.pointerId:void 0,r=this.getStage(),s=this.getAbsolutePosition();if(r){var o=r._getPointerById(n)||r._changedPointerPositions[0]||s;Di.DD._dragElements.set(this._id,{node:this,startPointerPos:o,offset:{x:o.x-s.x,y:o.y-s.y},dragStatus:"ready",pointerId:n})}}startDrag(t,n=!0){Di.DD._dragElements.has(this._id)||this._createDragElement(t);const r=Di.DD._dragElements.get(this._id);r.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},n)}_setDragPosition(t,n){const r=this.getStage()._getPointerById(n.pointerId);if(r){var s={x:r.x-n.offset.x,y:r.y-n.offset.y},o=this.dragBoundFunc();if(o!==void 0){const a=o.call(this,s,t);a?s=a:Pt.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==s.x||this._lastPos.y!==s.y)&&(this.setAbsolutePosition(s),this._requestDraw()),this._lastPos=s}}stopDrag(t){const n=Di.DD._dragElements.get(this._id);n&&(n.dragStatus="stopped"),Di.DD._endDragBefore(t),Di.DD._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=Di.DD._dragElements.get(this._id);return t?t.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){var n=t.evt.button!==void 0,r=!n||eo.Konva.dragButtons.indexOf(t.evt.button)>=0;if(r&&!this.isDragging()){var s=!1;Di.DD._dragElements.forEach(o=>{this.isAncestorOf(o.node)&&(s=!0)}),s||this._createDragElement(t)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage();if(!t)return;const n=Di.DD._dragElements.get(this._id),r=n&&n.dragStatus==="dragging",s=n&&n.dragStatus==="ready";r?this.stopDrag():s&&Di.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const n=this.getStage();if(!n)return!1;const r={x:-t.x,y:-t.y,width:n.width()+2*t.x,height:n.height()+2*t.y};return Pt.Util.haveIntersection(r,this.getClientRect())}static create(t,n){return Pt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,n)}static _createNode(t,n){var r=ct.prototype.getClassName.call(t),s=t.children,o,a,l;n&&(t.attrs.container=n),eo.Konva[r]||(Pt.Util.warn('Can not find a node with class name "'+r+'". Fallback to "Shape".'),r="Shape");const c=eo.Konva[r];if(o=new c(t.attrs),s)for(a=s.length,l=0;l<a;l++)o.add(ct._createNode(s[l]));return o}}Qs.Node=ct,ct.prototype.nodeType="Node",ct.prototype._attrsAffectingSize=[],ct.prototype.eventListeners={},ct.prototype.on.call(ct.prototype,yX,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(to),this._clearSelfAndDescendantCache(bs)}),ct.prototype.on.call(ct.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(gv)}),ct.prototype.on.call(ct.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(pv)}),ct.prototype.on.call(ct.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(Zf)});const Gt=eu.Factory.addGetterSetter;Gt(ct,"zIndex"),Gt(ct,"absolutePosition"),Gt(ct,"position"),Gt(ct,"x",0,(0,dn.getNumberValidator)()),Gt(ct,"y",0,(0,dn.getNumberValidator)()),Gt(ct,"globalCompositeOperation","source-over",(0,dn.getStringValidator)()),Gt(ct,"opacity",1,(0,dn.getNumberValidator)()),Gt(ct,"name","",(0,dn.getStringValidator)()),Gt(ct,"id","",(0,dn.getStringValidator)()),Gt(ct,"rotation",0,(0,dn.getNumberValidator)()),eu.Factory.addComponentsGetterSetter(ct,"scale",["x","y"]),Gt(ct,"scaleX",1,(0,dn.getNumberValidator)()),Gt(ct,"scaleY",1,(0,dn.getNumberValidator)()),eu.Factory.addComponentsGetterSetter(ct,"skew",["x","y"]),Gt(ct,"skewX",0,(0,dn.getNumberValidator)()),Gt(ct,"skewY",0,(0,dn.getNumberValidator)()),eu.Factory.addComponentsGetterSetter(ct,"offset",["x","y"]),Gt(ct,"offsetX",0,(0,dn.getNumberValidator)()),Gt(ct,"offsetY",0,(0,dn.getNumberValidator)()),Gt(ct,"dragDistance",null,(0,dn.getNumberValidator)()),Gt(ct,"width",0,(0,dn.getNumberValidator)()),Gt(ct,"height",0,(0,dn.getNumberValidator)()),Gt(ct,"listening",!0,(0,dn.getBooleanValidator)()),Gt(ct,"preventDefault",!0,(0,dn.getBooleanValidator)()),Gt(ct,"filters",null,function(e){return this._filterUpToDate=!1,e}),Gt(ct,"visible",!0,(0,dn.getBooleanValidator)()),Gt(ct,"transformsEnabled","all",(0,dn.getStringValidator)()),Gt(ct,"size"),Gt(ct,"dragBoundFunc"),Gt(ct,"draggable",!1,(0,dn.getBooleanValidator)()),eu.Factory.backCompat(ct,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});var na={};Object.defineProperty(na,"__esModule",{value:!0}),na.Container=void 0;const al=oi,mv=Qs,th=It;class ia extends mv.Node{constructor(){super(...arguments),this.children=[]}getChildren(t){if(!t)return this.children||[];const n=this.children||[];var r=[];return n.forEach(function(s){t(s)&&r.push(s)}),r}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(var n=0;n<t.length;n++)this.add(t[n]);return this}const r=t[0];return r.getParent()?(r.moveTo(this),this):(this._validateAdd(r),r.index=this.getChildren().length,r.parent=this,r._clearCaches(),this.getChildren().push(r),this._fire("add",{child:r}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){var n=this._generalFind(t,!0);return n.length>0?n[0]:void 0}_generalFind(t,n){var r=[];return this._descendants(s=>{const o=s._isMatch(t);return o&&r.push(s),!!(o&&n)}),r}_descendants(t){let n=!1;const r=this.getChildren();for(const s of r){if(n=t(s),n)return!0;if(s.hasChildren()&&(n=s._descendants(t),n))return!0}return!1}toObject(){var t=mv.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(n=>{t.children.push(n.toObject())}),t}isAncestorOf(t){for(var n=t.getParent();n;){if(n._id===this._id)return!0;n=n.getParent()}return!1}clone(t){var n=mv.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(r){n.add(r.clone())}),n}getAllIntersections(t){var n=[];return this.find("Shape").forEach(r=>{r.isVisible()&&r.intersects(t)&&n.push(r)}),n}_clearSelfAndDescendantCache(t){var n;super._clearSelfAndDescendantCache(t),!this.isCached()&&((n=this.children)===null||n===void 0||n.forEach(function(r){r._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(n,r){n.index=r}),this._requestDraw()}drawScene(t,n,r){var s=this.getLayer(),o=t||s&&s.getCanvas(),a=o&&o.getContext(),l=this._getCanvasCache(),c=l&&l.scene,u=o&&o.isCache;if(!this.isVisible()&&!u)return this;if(c){a.save();var d=this.getAbsoluteTransform(n).getMatrix();a.transform(d[0],d[1],d[2],d[3],d[4],d[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",o,n,r);return this}drawHit(t,n){if(!this.shouldDrawHit(n))return this;var r=this.getLayer(),s=t||r&&r.hitCanvas,o=s&&s.getContext(),a=this._getCanvasCache(),l=a&&a.hit;if(l){o.save();var c=this.getAbsoluteTransform(n).getMatrix();o.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(o),o.restore()}else this._drawChildren("drawHit",s,n);return this}_drawChildren(t,n,r,s){var o,a=n&&n.getContext(),l=this.clipWidth(),c=this.clipHeight(),u=this.clipFunc(),d=typeof l=="number"&&typeof c=="number"||u;const f=r===this;if(d){a.save();var h=this.getAbsoluteTransform(r),g=h.getMatrix();a.transform(g[0],g[1],g[2],g[3],g[4],g[5]),a.beginPath();let w;if(u)w=u.call(this,a,this);else{var v=this.clipX(),y=this.clipY();a.rect(v||0,y||0,l,c)}a.clip.apply(a,w),g=h.copy().invert().getMatrix(),a.transform(g[0],g[1],g[2],g[3],g[4],g[5])}var _=!f&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";_&&(a.save(),a._applyGlobalCompositeOperation(this)),(o=this.children)===null||o===void 0||o.forEach(function(w){w[t](n,r,s)}),_&&a.restore(),d&&a.restore()}getClientRect(t={}){var n,r=t.skipTransform,s=t.relativeTo,o,a,l,c,u={x:1/0,y:1/0,width:0,height:0},d=this;(n=this.children)===null||n===void 0||n.forEach(function(y){if(y.visible()){var _=y.getClientRect({relativeTo:d,skipShadow:t.skipShadow,skipStroke:t.skipStroke});_.width===0&&_.height===0||(o===void 0?(o=_.x,a=_.y,l=_.x+_.width,c=_.y+_.height):(o=Math.min(o,_.x),a=Math.min(a,_.y),l=Math.max(l,_.x+_.width),c=Math.max(c,_.y+_.height)))}});for(var f=this.find("Shape"),h=!1,g=0;g<f.length;g++){var v=f[g];if(v._isVisible(this)){h=!0;break}}return h&&o!==void 0?u={x:o,y:a,width:l-o,height:c-a}:u={x:0,y:0,width:0,height:0},r?u:this._transformedRect(u,s)}}na.Container=ia,al.Factory.addComponentsGetterSetter(ia,"clip",["x","y","width","height"]),al.Factory.addGetterSetter(ia,"clipX",void 0,(0,th.getNumberValidator)()),al.Factory.addGetterSetter(ia,"clipY",void 0,(0,th.getNumberValidator)()),al.Factory.addGetterSetter(ia,"clipWidth",void 0,(0,th.getNumberValidator)()),al.Factory.addGetterSetter(ia,"clipHeight",void 0,(0,th.getNumberValidator)()),al.Factory.addGetterSetter(ia,"clipFunc");var m4={},gi={};Object.defineProperty(gi,"__esModule",{value:!0}),gi.releaseCapture=gi.setPointerCapture=gi.hasPointerCapture=gi.createEvent=gi.getCapturedShape=void 0;const wX=Kt,nu=new Map,v4=wX.Konva._global.PointerEvent!==void 0;function CX(e){return nu.get(e)}gi.getCapturedShape=CX;function vv(e){return{evt:e,pointerId:e.pointerId}}gi.createEvent=vv;function SX(e,t){return nu.get(e)===t}gi.hasPointerCapture=SX;function EX(e,t){b4(e),t.getStage()&&(nu.set(e,t),v4&&t._fire("gotpointercapture",vv(new PointerEvent("gotpointercapture"))))}gi.setPointerCapture=EX;function b4(e,t){const n=nu.get(e);if(!n)return;const r=n.getStage();r&&r.content,nu.delete(e),v4&&n._fire("lostpointercapture",vv(new PointerEvent("lostpointercapture")))}gi.releaseCapture=b4,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.stages=void 0;const t=En,n=oi,r=na,s=Kt,o=ar,a=Xf,l=Kt,c=gi;var u="Stage",d="string",f="px",h="mouseout",g="mouseleave",v="mouseover",y="mouseenter",_="mousemove",w="mousedown",A="mouseup",C="pointermove",S="pointerdown",x="pointerup",O="pointercancel",N="lostpointercapture",I="pointerout",F="pointerleave",D="pointerover",k="pointerenter",q="contextmenu",H="touchstart",oe="touchend",ce="touchmove",U="touchcancel",Y="wheel",K=5,ee=[[y,"_pointerenter"],[w,"_pointerdown"],[_,"_pointermove"],[A,"_pointerup"],[g,"_pointerleave"],[H,"_pointerdown"],[ce,"_pointermove"],[oe,"_pointerup"],[U,"_pointercancel"],[v,"_pointerover"],[Y,"_wheel"],[q,"_contextmenu"],[S,"_pointerdown"],[C,"_pointermove"],[x,"_pointerup"],[O,"_pointercancel"],[N,"_lostpointercapture"]];const B={mouse:{[I]:h,[F]:g,[D]:v,[k]:y,[C]:_,[S]:w,[x]:A,[O]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[I]:"touchout",[F]:"touchleave",[D]:"touchover",[k]:"touchenter",[C]:ce,[S]:H,[x]:oe,[O]:U,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[I]:I,[F]:F,[D]:D,[k]:k,[C]:C,[S]:S,[x]:x,[O]:O,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},Ee=ye=>ye.indexOf("pointer")>=0?"pointer":ye.indexOf("touch")>=0?"touch":"mouse",me=ye=>{const z=Ee(ye);if(z==="pointer")return s.Konva.pointerEventsEnabled&&B.pointer;if(z==="touch")return B.touch;if(z==="mouse")return B.mouse};function re(ye={}){return(ye.clipFunc||ye.clipWidth||ye.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ye}const le="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class Ce extends r.Container{constructor(z){super(re(z)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{re(this.attrs)}),this._checkVisibility()}_validateAdd(z){const X=z.getType()==="Layer",fe=z.getType()==="FastLayer";X||fe||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const z=this.visible()?"":"none";this.content.style.display=z}setContainer(z){if(typeof z===d){if(z.charAt(0)==="."){var X=z.slice(1);z=document.getElementsByClassName(X)[0]}else{var fe;z.charAt(0)!=="#"?fe=z:fe=z.slice(1),z=document.getElementById(fe)}if(!z)throw"Can not find container in document with id "+fe}return this._setAttr("container",z),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),z.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var z=this.children,X=z.length,fe;for(fe=0;fe<X;fe++)z[fe].clear();return this}clone(z){return z||(z={}),z.container=typeof document!="undefined"&&document.createElement("div"),r.Container.prototype.clone.call(this,z)}destroy(){super.destroy();var z=this.content;z&&t.Util._isInDocument(z)&&this.container().removeChild(z);var X=e.stages.indexOf(this);return X>-1&&e.stages.splice(X,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const z=this._pointerPositions[0]||this._changedPointerPositions[0];return z?{x:z.x,y:z.y}:(t.Util.warn(le),null)}_getPointerById(z){return this._pointerPositions.find(X=>X.id===z)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(z){z=z||{},z.x=z.x||0,z.y=z.y||0,z.width=z.width||this.width(),z.height=z.height||this.height();var X=new o.SceneCanvas({width:z.width,height:z.height,pixelRatio:z.pixelRatio||1}),fe=X.getContext()._context,Re=this.children;return(z.x||z.y)&&fe.translate(-1*z.x,-1*z.y),Re.forEach(function(Le){if(Le.isVisible()){var Ke=Le._toKonvaCanvas(z);fe.drawImage(Ke._canvas,z.x,z.y,Ke.getWidth()/Ke.getPixelRatio(),Ke.getHeight()/Ke.getPixelRatio())}}),X}getIntersection(z){if(!z)return null;var X=this.children,fe=X.length,Re=fe-1,Le;for(Le=Re;Le>=0;Le--){const Ke=X[Le].getIntersection(z);if(Ke)return Ke}return null}_resizeDOM(){var z=this.width(),X=this.height();this.content&&(this.content.style.width=z+f,this.content.style.height=X+f),this.bufferCanvas.setSize(z,X),this.bufferHitCanvas.setSize(z,X),this.children.forEach(fe=>{fe.setSize({width:z,height:X}),fe.draw()})}add(z,...X){if(arguments.length>1){for(var fe=0;fe<arguments.length;fe++)this.add(arguments[fe]);return this}super.add(z);var Re=this.children.length;return Re>K&&t.Util.warn("The stage has "+Re+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),z.setSize({width:this.width(),height:this.height()}),z.draw(),s.Konva.isBrowser&&this.content.appendChild(z.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(z){return c.hasPointerCapture(z,this)}setPointerCapture(z){c.setPointerCapture(z,this)}releaseCapture(z){c.releaseCapture(z,this)}getLayers(){return this.children}_bindContentEvents(){s.Konva.isBrowser&&ee.forEach(([z,X])=>{this.content.addEventListener(z,fe=>{this[X](fe)},{passive:!1})})}_pointerenter(z){this.setPointersPositions(z);const X=me(z.type);X&&this._fire(X.pointerenter,{evt:z,target:this,currentTarget:this})}_pointerover(z){this.setPointersPositions(z);const X=me(z.type);X&&this._fire(X.pointerover,{evt:z,target:this,currentTarget:this})}_getTargetShape(z){let X=this[z+"targetShape"];return X&&!X.getStage()&&(X=null),X}_pointerleave(z){const X=me(z.type),fe=Ee(z.type);if(X){this.setPointersPositions(z);var Re=this._getTargetShape(fe),Le=!(s.Konva.isDragging()||s.Konva.isTransforming())||s.Konva.hitOnDragEnabled;Re&&Le?(Re._fireAndBubble(X.pointerout,{evt:z}),Re._fireAndBubble(X.pointerleave,{evt:z}),this._fire(X.pointerleave,{evt:z,target:this,currentTarget:this}),this[fe+"targetShape"]=null):Le&&(this._fire(X.pointerleave,{evt:z,target:this,currentTarget:this}),this._fire(X.pointerout,{evt:z,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(z){const X=me(z.type),fe=Ee(z.type);if(X){this.setPointersPositions(z);var Re=!1;this._changedPointerPositions.forEach(Le=>{var Ke=this.getIntersection(Le);if(a.DD.justDragged=!1,s.Konva["_"+fe+"ListenClick"]=!0,!Ke||!Ke.isListening()){this[fe+"ClickStartShape"]=void 0;return}s.Konva.capturePointerEventsEnabled&&Ke.setPointerCapture(Le.id),this[fe+"ClickStartShape"]=Ke,Ke._fireAndBubble(X.pointerdown,{evt:z,pointerId:Le.id}),Re=!0;const j=z.type.indexOf("touch")>=0;Ke.preventDefault()&&z.cancelable&&j&&z.preventDefault()}),Re||this._fire(X.pointerdown,{evt:z,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(z){const X=me(z.type),fe=Ee(z.type);if(!X)return;s.Konva.isDragging()&&a.DD.node.preventDefault()&&z.cancelable&&z.preventDefault(),this.setPointersPositions(z);var Re=!(s.Konva.isDragging()||s.Konva.isTransforming())||s.Konva.hitOnDragEnabled;if(!Re)return;var Le={};let Ke=!1;var j=this._getTargetShape(fe);this._changedPointerPositions.forEach(J=>{const ae=c.getCapturedShape(J.id)||this.getIntersection(J),xe=J.id,de={evt:z,pointerId:xe};var pe=j!==ae;if(pe&&j&&(j._fireAndBubble(X.pointerout,be({},de),ae),j._fireAndBubble(X.pointerleave,be({},de),ae)),ae){if(Le[ae._id])return;Le[ae._id]=!0}ae&&ae.isListening()?(Ke=!0,pe&&(ae._fireAndBubble(X.pointerover,be({},de),j),ae._fireAndBubble(X.pointerenter,be({},de),j),this[fe+"targetShape"]=ae),ae._fireAndBubble(X.pointermove,be({},de))):j&&(this._fire(X.pointerover,{evt:z,target:this,currentTarget:this,pointerId:xe}),this[fe+"targetShape"]=null)}),Ke||this._fire(X.pointermove,{evt:z,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(z){const X=me(z.type),fe=Ee(z.type);if(!X)return;this.setPointersPositions(z);const Re=this[fe+"ClickStartShape"],Le=this[fe+"ClickEndShape"];var Ke={};let j=!1;this._changedPointerPositions.forEach(J=>{const ae=c.getCapturedShape(J.id)||this.getIntersection(J);if(ae){if(ae.releaseCapture(J.id),Ke[ae._id])return;Ke[ae._id]=!0}const xe=J.id,de={evt:z,pointerId:xe};let pe=!1;s.Konva["_"+fe+"InDblClickWindow"]?(pe=!0,clearTimeout(this[fe+"DblTimeout"])):a.DD.justDragged||(s.Konva["_"+fe+"InDblClickWindow"]=!0,clearTimeout(this[fe+"DblTimeout"])),this[fe+"DblTimeout"]=setTimeout(function(){s.Konva["_"+fe+"InDblClickWindow"]=!1},s.Konva.dblClickWindow),ae&&ae.isListening()?(j=!0,this[fe+"ClickEndShape"]=ae,ae._fireAndBubble(X.pointerup,be({},de)),s.Konva["_"+fe+"ListenClick"]&&Re&&Re===ae&&(ae._fireAndBubble(X.pointerclick,be({},de)),pe&&Le&&Le===ae&&ae._fireAndBubble(X.pointerdblclick,be({},de)))):(this[fe+"ClickEndShape"]=null,s.Konva["_"+fe+"ListenClick"]&&this._fire(X.pointerclick,{evt:z,target:this,currentTarget:this,pointerId:xe}),pe&&this._fire(X.pointerdblclick,{evt:z,target:this,currentTarget:this,pointerId:xe}))}),j||this._fire(X.pointerup,{evt:z,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),s.Konva["_"+fe+"ListenClick"]=!1,z.cancelable&&fe!=="touch"&&z.preventDefault()}_contextmenu(z){this.setPointersPositions(z);var X=this.getIntersection(this.getPointerPosition());X&&X.isListening()?X._fireAndBubble(q,{evt:z}):this._fire(q,{evt:z,target:this,currentTarget:this})}_wheel(z){this.setPointersPositions(z);var X=this.getIntersection(this.getPointerPosition());X&&X.isListening()?X._fireAndBubble(Y,{evt:z}):this._fire(Y,{evt:z,target:this,currentTarget:this})}_pointercancel(z){this.setPointersPositions(z);const X=c.getCapturedShape(z.pointerId)||this.getIntersection(this.getPointerPosition());X&&X._fireAndBubble(x,c.createEvent(z)),c.releaseCapture(z.pointerId)}_lostpointercapture(z){c.releaseCapture(z.pointerId)}setPointersPositions(z){var X=this._getContentPosition(),fe=null,Re=null;z=z||window.event,z.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(z.touches,Le=>{this._pointerPositions.push({id:Le.identifier,x:(Le.clientX-X.left)/X.scaleX,y:(Le.clientY-X.top)/X.scaleY})}),Array.prototype.forEach.call(z.changedTouches||z.touches,Le=>{this._changedPointerPositions.push({id:Le.identifier,x:(Le.clientX-X.left)/X.scaleX,y:(Le.clientY-X.top)/X.scaleY})})):(fe=(z.clientX-X.left)/X.scaleX,Re=(z.clientY-X.top)/X.scaleY,this.pointerPos={x:fe,y:Re},this._pointerPositions=[{x:fe,y:Re,id:t.Util._getFirstPointerId(z)}],this._changedPointerPositions=[{x:fe,y:Re,id:t.Util._getFirstPointerId(z)}])}_setPointerPosition(z){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(z)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var z=this.content.getBoundingClientRect();return{top:z.top,left:z.left,scaleX:z.width/this.content.clientWidth||1,scaleY:z.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new o.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new o.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!s.Konva.isBrowser){var z=this.container();if(!z)throw"Stage has no container. A container is required.";z.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),z.appendChild(this.content),this._resizeDOM()}}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(z){z.batchDraw()}),this}}e.Stage=Ce,Ce.prototype.nodeType=u,(0,l._registerNode)(Ce),n.Factory.addGetterSetter(Ce,"container"),s.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(ye=>{ye.batchDraw()})})}(m4);var iu={},ys={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Kt,n=En,r=oi,s=Qs,o=It,a=Kt,l=gi;var c="hasShadow",u="shadowRGBA",d="patternImage",f="linearGradient",h="radialGradient";let g;function v(){return g||(g=n.Util.createCanvasElement().getContext("2d"),g)}e.shapes={};function y(F){const D=this.attrs.fillRule;D?F.fill(D):F.fill()}function _(F){F.stroke()}function w(F){const D=this.attrs.fillRule;D?F.fill(D):F.fill()}function A(F){F.stroke()}function C(){this._clearCache(c)}function S(){this._clearCache(u)}function x(){this._clearCache(d)}function O(){this._clearCache(f)}function N(){this._clearCache(h)}class I extends s.Node{constructor(D){super(D);let k;for(;k=n.Util.getRandomColor(),!(k&&!(k in e.shapes)););this.colorKey=k,e.shapes[k]=this}getContext(){return n.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return n.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(c,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(d,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var D=v();const k=D.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(k&&k.setTransform){const q=new n.Transform;q.translate(this.fillPatternX(),this.fillPatternY()),q.rotate(t.Konva.getAngle(this.fillPatternRotation())),q.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),q.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const H=q.getMatrix(),oe=typeof DOMMatrix=="undefined"?{a:H[0],b:H[1],c:H[2],d:H[3],e:H[4],f:H[5]}:new DOMMatrix(H);k.setTransform(oe)}return k}}_getLinearGradient(){return this._getCache(f,this.__getLinearGradient)}__getLinearGradient(){var D=this.fillLinearGradientColorStops();if(D){for(var k=v(),q=this.fillLinearGradientStartPoint(),H=this.fillLinearGradientEndPoint(),oe=k.createLinearGradient(q.x,q.y,H.x,H.y),ce=0;ce<D.length;ce+=2)oe.addColorStop(D[ce],D[ce+1]);return oe}}_getRadialGradient(){return this._getCache(h,this.__getRadialGradient)}__getRadialGradient(){var D=this.fillRadialGradientColorStops();if(D){for(var k=v(),q=this.fillRadialGradientStartPoint(),H=this.fillRadialGradientEndPoint(),oe=k.createRadialGradient(q.x,q.y,this.fillRadialGradientStartRadius(),H.x,H.y,this.fillRadialGradientEndRadius()),ce=0;ce<D.length;ce+=2)oe.addColorStop(D[ce],D[ce+1]);return oe}}getShadowRGBA(){return this._getCache(u,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var D=n.Util.colorToRGBA(this.shadowColor());if(D)return"rgba("+D.r+","+D.g+","+D.b+","+D.a*(this.shadowOpacity()||1)+")"}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const D=this.hitStrokeWidth();return D==="auto"?this.hasStroke():this.strokeEnabled()&&!!D}intersects(D){var k=this.getStage();if(!k)return!1;const q=k.bufferHitCanvas;return q.getContext().clear(),this.drawHit(q,void 0,!0),q.context.getImageData(Math.round(D.x),Math.round(D.y),1,1).data[3]>0}destroy(){return s.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(D){var k;if(!((k=this.attrs.perfectDrawEnabled)!==null&&k!==void 0?k:!0))return!1;const H=D||this.hasFill(),oe=this.hasStroke(),ce=this.getAbsoluteOpacity()!==1;if(H&&oe&&ce)return!0;const U=this.hasShadow(),Y=this.shadowForStrokeEnabled();return!!(H&&oe&&U&&Y)}setStrokeHitEnabled(D){n.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),D?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var D=this.size();return{x:this._centroid?-D.width/2:0,y:this._centroid?-D.height/2:0,width:D.width,height:D.height}}getClientRect(D={}){let k=!1,q=this.getParent();for(;q;){if(q.isCached()){k=!0;break}q=q.getParent()}const H=D.skipTransform,oe=D.relativeTo||k&&this.getStage()||void 0,ce=this.getSelfRect(),Y=!D.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,K=ce.width+Y,ee=ce.height+Y,B=!D.skipShadow&&this.hasShadow(),Ee=B?this.shadowOffsetX():0,me=B?this.shadowOffsetY():0,re=K+Math.abs(Ee),le=ee+Math.abs(me),Ce=B&&this.shadowBlur()||0,ye=re+Ce*2,z=le+Ce*2,X={width:ye,height:z,x:-(Y/2+Ce)+Math.min(Ee,0)+ce.x,y:-(Y/2+Ce)+Math.min(me,0)+ce.y};return H?X:this._transformedRect(X,oe)}drawScene(D,k,q){var H=this.getLayer(),oe=D||H.getCanvas(),ce=oe.getContext(),U=this._getCanvasCache(),Y=this.getSceneFunc(),K=this.hasShadow(),ee,B,Ee=oe.isCache,me=k===this;if(!this.isVisible()&&!me)return this;if(U){ce.save();var re=this.getAbsoluteTransform(k).getMatrix();return ce.transform(re[0],re[1],re[2],re[3],re[4],re[5]),this._drawCachedSceneCanvas(ce),ce.restore(),this}if(!Y)return this;if(ce.save(),this._useBufferCanvas()&&!Ee){ee=this.getStage();const ye=q||ee.bufferCanvas;B=ye.getContext(),B.clear(),B.save(),B._applyLineJoin(this);var le=this.getAbsoluteTransform(k).getMatrix();B.transform(le[0],le[1],le[2],le[3],le[4],le[5]),Y.call(this,B,this),B.restore();var Ce=ye.pixelRatio;K&&ce._applyShadow(this),ce._applyOpacity(this),ce._applyGlobalCompositeOperation(this),ce.drawImage(ye._canvas,0,0,ye.width/Ce,ye.height/Ce)}else{if(ce._applyLineJoin(this),!me){var le=this.getAbsoluteTransform(k).getMatrix();ce.transform(le[0],le[1],le[2],le[3],le[4],le[5]),ce._applyOpacity(this),ce._applyGlobalCompositeOperation(this)}K&&ce._applyShadow(this),Y.call(this,ce,this)}return ce.restore(),this}drawHit(D,k,q=!1){if(!this.shouldDrawHit(k,q))return this;var H=this.getLayer(),oe=D||H.hitCanvas,ce=oe&&oe.getContext(),U=this.hitFunc()||this.sceneFunc(),Y=this._getCanvasCache(),K=Y&&Y.hit;if(this.colorKey||n.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),K){ce.save();var ee=this.getAbsoluteTransform(k).getMatrix();return ce.transform(ee[0],ee[1],ee[2],ee[3],ee[4],ee[5]),this._drawCachedHitCanvas(ce),ce.restore(),this}if(!U)return this;if(ce.save(),ce._applyLineJoin(this),!(this===k)){var Ee=this.getAbsoluteTransform(k).getMatrix();ce.transform(Ee[0],Ee[1],Ee[2],Ee[3],Ee[4],Ee[5])}return U.call(this,ce,this),ce.restore(),this}drawHitFromCache(D=0){var k=this._getCanvasCache(),q=this._getCachedSceneCanvas(),H=k.hit,oe=H.getContext(),ce=H.getWidth(),U=H.getHeight(),Y,K,ee,B,Ee,me;oe.clear(),oe.drawImage(q._canvas,0,0,ce,U);try{for(Y=oe.getImageData(0,0,ce,U),K=Y.data,ee=K.length,B=n.Util._hexToRgb(this.colorKey),Ee=0;Ee<ee;Ee+=4)me=K[Ee+3],me>D?(K[Ee]=B.r,K[Ee+1]=B.g,K[Ee+2]=B.b,K[Ee+3]=255):K[Ee+3]=0;oe.putImageData(Y,0,0)}catch(re){n.Util.error("Unable to draw hit graph from cached scene canvas. "+re.message)}return this}hasPointerCapture(D){return l.hasPointerCapture(D,this)}setPointerCapture(D){l.setPointerCapture(D,this)}releaseCapture(D){l.releaseCapture(D,this)}}e.Shape=I,I.prototype._fillFunc=y,I.prototype._strokeFunc=_,I.prototype._fillFuncHit=w,I.prototype._strokeFuncHit=A,I.prototype._centroid=!1,I.prototype.nodeType="Shape",(0,a._registerNode)(I),I.prototype.eventListeners={},I.prototype.on.call(I.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",C),I.prototype.on.call(I.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",S),I.prototype.on.call(I.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",x),I.prototype.on.call(I.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",O),I.prototype.on.call(I.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",N),r.Factory.addGetterSetter(I,"stroke",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(I,"strokeWidth",2,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(I,"fillAfterStrokeEnabled",!1),r.Factory.addGetterSetter(I,"hitStrokeWidth","auto",(0,o.getNumberOrAutoValidator)()),r.Factory.addGetterSetter(I,"strokeHitEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(I,"perfectDrawEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(I,"shadowForStrokeEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(I,"lineJoin"),r.Factory.addGetterSetter(I,"lineCap"),r.Factory.addGetterSetter(I,"sceneFunc"),r.Factory.addGetterSetter(I,"hitFunc"),r.Factory.addGetterSetter(I,"dash"),r.Factory.addGetterSetter(I,"dashOffset",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(I,"shadowColor",void 0,(0,o.getStringValidator)()),r.Factory.addGetterSetter(I,"shadowBlur",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(I,"shadowOpacity",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(I,"shadowOffset",["x","y"]),r.Factory.addGetterSetter(I,"shadowOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(I,"shadowOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(I,"fillPatternImage"),r.Factory.addGetterSetter(I,"fill",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(I,"fillPatternX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(I,"fillPatternY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(I,"fillLinearGradientColorStops"),r.Factory.addGetterSetter(I,"strokeLinearGradientColorStops"),r.Factory.addGetterSetter(I,"fillRadialGradientStartRadius",0),r.Factory.addGetterSetter(I,"fillRadialGradientEndRadius",0),r.Factory.addGetterSetter(I,"fillRadialGradientColorStops"),r.Factory.addGetterSetter(I,"fillPatternRepeat","repeat"),r.Factory.addGetterSetter(I,"fillEnabled",!0),r.Factory.addGetterSetter(I,"strokeEnabled",!0),r.Factory.addGetterSetter(I,"shadowEnabled",!0),r.Factory.addGetterSetter(I,"dashEnabled",!0),r.Factory.addGetterSetter(I,"strokeScaleEnabled",!0),r.Factory.addGetterSetter(I,"fillPriority","color"),r.Factory.addComponentsGetterSetter(I,"fillPatternOffset",["x","y"]),r.Factory.addGetterSetter(I,"fillPatternOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(I,"fillPatternOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(I,"fillPatternScale",["x","y"]),r.Factory.addGetterSetter(I,"fillPatternScaleX",1,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(I,"fillPatternScaleY",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(I,"fillLinearGradientStartPoint",["x","y"]),r.Factory.addComponentsGetterSetter(I,"strokeLinearGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(I,"fillLinearGradientStartPointX",0),r.Factory.addGetterSetter(I,"strokeLinearGradientStartPointX",0),r.Factory.addGetterSetter(I,"fillLinearGradientStartPointY",0),r.Factory.addGetterSetter(I,"strokeLinearGradientStartPointY",0),r.Factory.addComponentsGetterSetter(I,"fillLinearGradientEndPoint",["x","y"]),r.Factory.addComponentsGetterSetter(I,"strokeLinearGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(I,"fillLinearGradientEndPointX",0),r.Factory.addGetterSetter(I,"strokeLinearGradientEndPointX",0),r.Factory.addGetterSetter(I,"fillLinearGradientEndPointY",0),r.Factory.addGetterSetter(I,"strokeLinearGradientEndPointY",0),r.Factory.addComponentsGetterSetter(I,"fillRadialGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(I,"fillRadialGradientStartPointX",0),r.Factory.addGetterSetter(I,"fillRadialGradientStartPointY",0),r.Factory.addComponentsGetterSetter(I,"fillRadialGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(I,"fillRadialGradientEndPointX",0),r.Factory.addGetterSetter(I,"fillRadialGradientEndPointY",0),r.Factory.addGetterSetter(I,"fillPatternRotation",0),r.Factory.addGetterSetter(I,"fillRule",void 0,(0,o.getStringValidator)()),r.Factory.backCompat(I,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(ys),Object.defineProperty(iu,"__esModule",{value:!0}),iu.Layer=void 0;const _s=En,bv=na,ll=Qs,yv=oi,y4=ar,xX=It,AX=ys,PX=Kt;var TX="#",OX="beforeDraw",NX="draw",_4=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],IX=_4.length;class cl extends bv.Container{constructor(t){super(t),this.canvas=new y4.SceneCanvas,this.hitCanvas=new y4.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var n=this.getStage();return n&&n.content&&(n.content.removeChild(this.getNativeCanvasElement()),t<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[t+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){ll.Node.prototype.moveToTop.call(this);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var t=ll.Node.prototype.moveUp.call(this);if(!t)return!1;var n=this.getStage();return!n||!n.content?!1:(n.content.removeChild(this.getNativeCanvasElement()),this.index<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[this.index+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(ll.Node.prototype.moveDown.call(this)){var t=this.getStage();if(t){var n=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),n[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(ll.Node.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var n=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),n[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var t=this.getNativeCanvasElement();return ll.Node.prototype.remove.call(this),t&&t.parentNode&&_s.Util._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:n}){return this.canvas.setSize(t,n),this.hitCanvas.setSize(t,n),this._setSmoothEnabled(),this}_validateAdd(t){var n=t.getType();n!=="Group"&&n!=="Shape"&&_s.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=t.x!==void 0?t.x:this.x(),t.y=t.y!==void 0?t.y:this.y(),ll.Node.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){_s.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){_s.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,_s.Util.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;for(var n=1,r=!1;;){for(let s=0;s<IX;s++){const o=_4[s],a=this._getIntersection({x:t.x+o.x*n,y:t.y+o.y*n}),l=a.shape;if(l)return l;if(r=!!a.antialiased,!a.antialiased)break}if(r)n+=1;else return null}}_getIntersection(t){const n=this.hitCanvas.pixelRatio,r=this.hitCanvas.context.getImageData(Math.round(t.x*n),Math.round(t.y*n),1,1).data,s=r[3];if(s===255){const o=_s.Util._rgbToHex(r[0],r[1],r[2]),a=AX.shapes[TX+o];return a?{shape:a}:{antialiased:!0}}else if(s>0)return{antialiased:!0};return{}}drawScene(t,n){var r=this.getLayer(),s=t||r&&r.getCanvas();return this._fire(OX,{node:this}),this.clearBeforeDraw()&&s.getContext().clear(),bv.Container.prototype.drawScene.call(this,s,n),this._fire(NX,{node:this}),this}drawHit(t,n){var r=this.getLayer(),s=t||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),bv.Container.prototype.drawHit.call(this,s,n),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){_s.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return _s.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var t=this.parent,n=!!this.hitCanvas._canvas.parentNode;n?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}destroy(){return _s.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}iu.Layer=cl,cl.prototype.nodeType="Layer",(0,PX._registerNode)(cl),yv.Factory.addGetterSetter(cl,"imageSmoothingEnabled",!0),yv.Factory.addGetterSetter(cl,"clearBeforeDraw",!0),yv.Factory.addGetterSetter(cl,"hitGraphEnabled",!0,(0,xX.getBooleanValidator)());var nh={};Object.defineProperty(nh,"__esModule",{value:!0}),nh.FastLayer=void 0;const RX=En,DX=iu,LX=Kt;class _v extends DX.Layer{constructor(t){super(t),this.listening(!1),RX.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}nh.FastLayer=_v,_v.prototype.nodeType="FastLayer",(0,LX._registerNode)(_v);var ih={};Object.defineProperty(ih,"__esModule",{value:!0}),ih.Group=void 0;const kX=En,MX=na,FX=Kt;class wv extends MX.Container{_validateAdd(t){var n=t.getType();n!=="Group"&&n!=="Shape"&&kX.Util.throw("You may only add groups and shapes to groups.")}}ih.Group=wv,wv.prototype.nodeType="Group",(0,FX._registerNode)(wv);var ru={};Object.defineProperty(ru,"__esModule",{value:!0}),ru.Animation=void 0;const Cv=Kt,w4=En,Sv=function(){return Cv.glob.performance&&Cv.glob.performance.now?function(){return Cv.glob.performance.now()}:function(){return new Date().getTime()}}();class kr{constructor(t,n){this.id=kr.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Sv(),frameRate:0},this.func=t,this.setLayers(n)}setLayers(t){let n=[];return t&&(n=Array.isArray(t)?t:[t]),this.layers=n,this}getLayers(){return this.layers}addLayer(t){const n=this.layers,r=n.length;for(let s=0;s<r;s++)if(n[s]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){const n=kr.animations,r=n.length;for(let s=0;s<r;s++)if(n[s].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=Sv(),kr._addAnimation(this),this}stop(){return kr._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){const n=t.id,r=this.animations,s=r.length;for(let o=0;o<s;o++)if(r[o].id===n){this.animations.splice(o,1);break}}static _runFrames(){const t={},n=this.animations;for(let r=0;r<n.length;r++){const s=n[r],o=s.layers,a=s.func;s._updateFrameObject(Sv());const l=o.length;let c;if(a?c=a.call(s,s.frame)!==!1:c=!0,!!c)for(let u=0;u<l;u++){const d=o[u];d._id!==void 0&&(t[d._id]=d)}}for(let r in t)t.hasOwnProperty(r)&&t[r].batchDraw()}static _animationLoop(){const t=kr;t.animations.length?(t._runFrames(),w4.Util.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,w4.Util.requestAnimFrame(this._animationLoop))}}ru.Animation=kr,kr.animations=[],kr.animIdCounter=0,kr.animRunning=!1;var C4={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Easings=e.Tween=void 0;const t=En,n=ru,r=Qs,s=Kt;var o={node:1,duration:1,easing:1,onFinish:1,yoyo:1},a=1,l=2,c=3,u=0,d=["fill","stroke","shadowColor"];class f{constructor(v,y,_,w,A,C,S){this.prop=v,this.propFunc=y,this.begin=w,this._pos=w,this.duration=C,this._change=0,this.prevPos=0,this.yoyo=S,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=_,this._change=A-this.begin,this.pause()}fire(v){var y=this[v];y&&y()}setTime(v){v>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():v<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=v,this.update())}getTime(){return this._time}setPosition(v){this.prevPos=this._pos,this.propFunc(v),this._pos=v}getPosition(v){return v===void 0&&(v=this._time),this.func(v,this.begin,this._change,this.duration)}play(){this.state=l,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=c,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(v){this.pause(),this._time=v,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var v=this.getTimer()-this._startTime;this.state===l?this.setTime(v):this.state===c&&this.setTime(this.duration-v)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class h{constructor(v){var y=this,_=v.node,w=_._id,A,C=v.easing||e.Easings.Linear,S=!!v.yoyo,x;typeof v.duration=="undefined"?A=.3:v.duration===0?A=.001:A=v.duration,this.node=_,this._id=u++;var O=_.getLayer()||(_ instanceof s.Konva.Stage?_.getLayers():null);O||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new n.Animation(function(){y.tween.onEnterFrame()},O),this.tween=new f(x,function(N){y._tweenFunc(N)},C,0,1,A*1e3,S),this._addListeners(),h.attrs[w]||(h.attrs[w]={}),h.attrs[w][this._id]||(h.attrs[w][this._id]={}),h.tweens[w]||(h.tweens[w]={});for(x in v)o[x]===void 0&&this._addAttr(x,v[x]);this.reset(),this.onFinish=v.onFinish,this.onReset=v.onReset,this.onUpdate=v.onUpdate}_addAttr(v,y){var _=this.node,w=_._id,A,C,S,x,O,N,I,F;if(S=h.tweens[w][v],S&&delete h.attrs[w][S][v],A=_.getAttr(v),t.Util._isArray(y))if(C=[],O=Math.max(y.length,A.length),v==="points"&&y.length!==A.length&&(y.length>A.length?(I=A,A=t.Util._prepareArrayForTween(A,y,_.closed())):(N=y,y=t.Util._prepareArrayForTween(y,A,_.closed()))),v.indexOf("fill")===0)for(x=0;x<O;x++)if(x%2===0)C.push(y[x]-A[x]);else{var D=t.Util.colorToRGBA(A[x]);F=t.Util.colorToRGBA(y[x]),A[x]=D,C.push({r:F.r-D.r,g:F.g-D.g,b:F.b-D.b,a:F.a-D.a})}else for(x=0;x<O;x++)C.push(y[x]-A[x]);else d.indexOf(v)!==-1?(A=t.Util.colorToRGBA(A),F=t.Util.colorToRGBA(y),C={r:F.r-A.r,g:F.g-A.g,b:F.b-A.b,a:F.a-A.a}):C=y-A;h.attrs[w][this._id][v]={start:A,diff:C,end:y,trueEnd:N,trueStart:I},h.tweens[w][v]=this._id}_tweenFunc(v){var y=this.node,_=h.attrs[y._id][this._id],w,A,C,S,x,O,N,I;for(w in _){if(A=_[w],C=A.start,S=A.diff,I=A.end,t.Util._isArray(C))if(x=[],N=Math.max(C.length,I.length),w.indexOf("fill")===0)for(O=0;O<N;O++)O%2===0?x.push((C[O]||0)+S[O]*v):x.push("rgba("+Math.round(C[O].r+S[O].r*v)+","+Math.round(C[O].g+S[O].g*v)+","+Math.round(C[O].b+S[O].b*v)+","+(C[O].a+S[O].a*v)+")");else for(O=0;O<N;O++)x.push((C[O]||0)+S[O]*v);else d.indexOf(w)!==-1?x="rgba("+Math.round(C.r+S.r*v)+","+Math.round(C.g+S.g*v)+","+Math.round(C.b+S.b*v)+","+(C.a+S.a*v)+")":x=C+S*v;y.setAttr(w,x)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var v=this.node,y=h.attrs[v._id][this._id];y.points&&y.points.trueEnd&&v.setAttr("points",y.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var v=this.node,y=h.attrs[v._id][this._id];y.points&&y.points.trueStart&&v.points(y.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(v){return this.tween.seek(v*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var v=this.node._id,y=this._id,_=h.tweens[v],w;this.pause();for(w in _)delete h.tweens[v][w];delete h.attrs[v][y]}}e.Tween=h,h.attrs={},h.tweens={},r.Node.prototype.to=function(g){var v=g.onFinish;g.node=this,g.onFinish=function(){this.destroy(),v&&v()};var y=new h(g);y.play()},e.Easings={BackEaseIn(g,v,y,_){var w=1.70158;return y*(g/=_)*g*((w+1)*g-w)+v},BackEaseOut(g,v,y,_){var w=1.70158;return y*((g=g/_-1)*g*((w+1)*g+w)+1)+v},BackEaseInOut(g,v,y,_){var w=1.70158;return(g/=_/2)<1?y/2*(g*g*(((w*=1.525)+1)*g-w))+v:y/2*((g-=2)*g*(((w*=1.525)+1)*g+w)+2)+v},ElasticEaseIn(g,v,y,_,w,A){var C=0;return g===0?v:(g/=_)===1?v+y:(A||(A=_*.3),!w||w<Math.abs(y)?(w=y,C=A/4):C=A/(2*Math.PI)*Math.asin(y/w),-(w*Math.pow(2,10*(g-=1))*Math.sin((g*_-C)*(2*Math.PI)/A))+v)},ElasticEaseOut(g,v,y,_,w,A){var C=0;return g===0?v:(g/=_)===1?v+y:(A||(A=_*.3),!w||w<Math.abs(y)?(w=y,C=A/4):C=A/(2*Math.PI)*Math.asin(y/w),w*Math.pow(2,-10*g)*Math.sin((g*_-C)*(2*Math.PI)/A)+y+v)},ElasticEaseInOut(g,v,y,_,w,A){var C=0;return g===0?v:(g/=_/2)===2?v+y:(A||(A=_*(.3*1.5)),!w||w<Math.abs(y)?(w=y,C=A/4):C=A/(2*Math.PI)*Math.asin(y/w),g<1?-.5*(w*Math.pow(2,10*(g-=1))*Math.sin((g*_-C)*(2*Math.PI)/A))+v:w*Math.pow(2,-10*(g-=1))*Math.sin((g*_-C)*(2*Math.PI)/A)*.5+y+v)},BounceEaseOut(g,v,y,_){return(g/=_)<1/2.75?y*(7.5625*g*g)+v:g<2/2.75?y*(7.5625*(g-=1.5/2.75)*g+.75)+v:g<2.5/2.75?y*(7.5625*(g-=2.25/2.75)*g+.9375)+v:y*(7.5625*(g-=2.625/2.75)*g+.984375)+v},BounceEaseIn(g,v,y,_){return y-e.Easings.BounceEaseOut(_-g,0,y,_)+v},BounceEaseInOut(g,v,y,_){return g<_/2?e.Easings.BounceEaseIn(g*2,0,y,_)*.5+v:e.Easings.BounceEaseOut(g*2-_,0,y,_)*.5+y*.5+v},EaseIn(g,v,y,_){return y*(g/=_)*g+v},EaseOut(g,v,y,_){return-y*(g/=_)*(g-2)+v},EaseInOut(g,v,y,_){return(g/=_/2)<1?y/2*g*g+v:-y/2*(--g*(g-2)-1)+v},StrongEaseIn(g,v,y,_){return y*(g/=_)*g*g*g*g+v},StrongEaseOut(g,v,y,_){return y*((g=g/_-1)*g*g*g*g+1)+v},StrongEaseInOut(g,v,y,_){return(g/=_/2)<1?y/2*g*g*g*g*g+v:y/2*((g-=2)*g*g*g*g+2)+v},Linear(g,v,y,_){return y*g/_+v}}})(C4),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;const t=Kt,n=En,r=Qs,s=na,o=m4,a=iu,l=nh,c=ih,u=Xf,d=ys,f=ru,h=C4,g=vs,v=ar;e.Konva=n.Util._assign(t.Konva,{Util:n.Util,Transform:n.Transform,Node:r.Node,Container:s.Container,Stage:o.Stage,stages:o.stages,Layer:a.Layer,FastLayer:l.FastLayer,Group:c.Group,DD:u.DD,Shape:d.Shape,shapes:d.shapes,Animation:f.Animation,Tween:h.Tween,Easings:h.Easings,Context:g.Context,Canvas:v.Canvas}),e.default=e.Konva}(hv),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;var n=hv;Object.defineProperty(t,"Konva",{enumerable:!0,get:function(){return n.Konva}});const r=hv;e.exports=r.Konva}(fv,fv.exports);var BX=fv.exports;const zt=yC(BX);var Ev={};Object.defineProperty(Ev,"__esModule",{value:!0}),Ev.Rect=void 0;const jX=oi,UX=ys,$X=Kt,VX=En,zX=It;class rh extends UX.Shape{_sceneFunc(t){var n=this.cornerRadius(),r=this.width(),s=this.height();t.beginPath(),n?VX.Util.drawRoundedRectPath(t,r,s,n):t.rect(0,0,r,s),t.closePath(),t.fillStrokeShape(this)}}Ev.Rect=rh,rh.prototype.className="Rect",(0,$X._registerNode)(rh),jX.Factory.addGetterSetter(rh,"cornerRadius",0,(0,zX.getNumberOrArrayOfNumbersValidator)(4));var xv={};Object.defineProperty(xv,"__esModule",{value:!0}),xv.Circle=void 0;const qX=oi,HX=ys,GX=It,WX=Kt;class ul extends HX.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}xv.Circle=ul,ul.prototype._centroid=!0,ul.prototype.className="Circle",ul.prototype._attrsAffectingSize=["radius"],(0,WX._registerNode)(ul),qX.Factory.addGetterSetter(ul,"radius",0,(0,GX.getNumberValidator)());var Av={};Object.defineProperty(Av,"__esModule",{value:!0}),Av.Image=void 0;const Pv=En,ra=oi,KX=ys,JX=Kt,su=It;let Mr=class eP extends KX.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const t=!!this.cornerRadius(),n=this.hasShadow();return t&&n?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const n=this.getWidth(),r=this.getHeight(),s=this.cornerRadius(),o=this.attrs.image;let a;if(o){const l=this.attrs.cropWidth,c=this.attrs.cropHeight;l&&c?a=[o,this.cropX(),this.cropY(),l,c,0,0,n,r]:a=[o,0,0,n,r]}(this.hasFill()||this.hasStroke()||s)&&(t.beginPath(),s?Pv.Util.drawRoundedRectPath(t,n,r,s):t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)),o&&(s&&t.clip(),t.drawImage.apply(t,a))}_hitFunc(t){var n=this.width(),r=this.height(),s=this.cornerRadius();t.beginPath(),s?Pv.Util.drawRoundedRectPath(t,n,r,s):t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,n;return(t=this.attrs.width)!==null&&t!==void 0?t:(n=this.image())===null||n===void 0?void 0:n.width}getHeight(){var t,n;return(t=this.attrs.height)!==null&&t!==void 0?t:(n=this.image())===null||n===void 0?void 0:n.height}static fromURL(t,n,r=null){var s=Pv.Util.createImageElement();s.onload=function(){var o=new eP({image:s});n(o)},s.onerror=r,s.crossOrigin="Anonymous",s.src=t}};Av.Image=Mr,Mr.prototype.className="Image",(0,JX._registerNode)(Mr),ra.Factory.addGetterSetter(Mr,"cornerRadius",0,(0,su.getNumberOrArrayOfNumbersValidator)(4)),ra.Factory.addGetterSetter(Mr,"image"),ra.Factory.addComponentsGetterSetter(Mr,"crop",["x","y","width","height"]),ra.Factory.addGetterSetter(Mr,"cropX",0,(0,su.getNumberValidator)()),ra.Factory.addGetterSetter(Mr,"cropY",0,(0,su.getNumberValidator)()),ra.Factory.addGetterSetter(Mr,"cropWidth",0,(0,su.getNumberValidator)()),ra.Factory.addGetterSetter(Mr,"cropHeight",0,(0,su.getNumberValidator)());var ou={};Object.defineProperty(ou,"__esModule",{value:!0}),ou.Text=ou.stringToArray=void 0;const Tv=En,Bn=oi,YX=ys,Ov=Kt,no=It,XX=Kt;function S4(e){return[...e].reduce((t,n,r,s)=>(new RegExp("\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?(?:\\u200D\\p{Emoji_Presentation})+","u").test(n)?t.push(n):new RegExp("\\p{Regional_Indicator}{2}","u").test(n+(s[r+1]||""))?t.push(n+s[r+1]):r>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(n)?t[t.length-1]+=n:t.push(n),t),[])}ou.stringToArray=S4;var dl="auto",ZX="center",E4="inherit",au="justify",QX="Change.konva",eZ="2d",x4="-",A4="left",tZ="text",nZ="Text",iZ="top",rZ="bottom",P4="middle",T4="normal",sZ="px ",sh=" ",oZ="right",O4="rtl",aZ="word",lZ="char",N4="none",Nv="…",I4=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],cZ=I4.length;function uZ(e){return e.split(",").map(t=>{t=t.trim();const n=t.indexOf(" ")>=0,r=t.indexOf('"')>=0||t.indexOf("'")>=0;return n&&!r&&(t=`"${t}"`),t}).join(", ")}var oh;function Iv(){return oh||(oh=Tv.Util.createCanvasElement().getContext(eZ),oh)}function dZ(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function fZ(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function hZ(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}class sn extends YX.Shape{constructor(t){super(hZ(t)),this._partialTextX=0,this._partialTextY=0;for(var n=0;n<cZ;n++)this.on(I4[n]+QX,this._setTextData);this._setTextData()}_sceneFunc(t){var n=this.textArr,r=n.length;if(this.text()){var s=this.padding(),o=this.fontSize(),a=this.lineHeight()*o,l=this.verticalAlign(),c=this.direction(),u=0,d=this.align(),f=this.getWidth(),h=this.letterSpacing(),g=this.fill(),v=this.textDecoration(),y=v.indexOf("underline")!==-1,_=v.indexOf("line-through")!==-1,w;c=c===E4?t.direction:c;var A=a/2,C=P4;if(Ov.Konva._fixTextRendering){var S=this.measureSize("M");C="alphabetic",A=(S.fontBoundingBoxAscent-S.fontBoundingBoxDescent)/2+a/2}var x=0,O=0;for(c===O4&&t.setAttr("direction",c),t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",C),t.setAttr("textAlign",A4),l===P4?u=(this.getHeight()-r*a-s*2)/2:l===rZ&&(u=this.getHeight()-r*a-s*2),t.translate(s,u+s),w=0;w<r;w++){var x=0,O=0,N=n[w],I=N.text,F=N.width,D=N.lastInParagraph,k,q,H;if(t.save(),d===oZ?x+=f-F-s*2:d===ZX&&(x+=(f-F-s*2)/2),y){t.save(),t.beginPath();let ee=Ov.Konva._fixTextRendering?Math.round(o/4):Math.round(o/2);const B=x,Ee=A+O+ee;t.moveTo(B,Ee),k=I.split(" ").length-1,q=k===0,H=d===au&&!D?f-s*2:F,t.lineTo(B+Math.round(H),Ee),t.lineWidth=o/15;const me=this._getLinearGradient();t.strokeStyle=me||g,t.stroke(),t.restore()}if(_){t.save(),t.beginPath();let ee=Ov.Konva._fixTextRendering?-Math.round(o/4):0;t.moveTo(x,A+O+ee),k=I.split(" ").length-1,q=k===0,H=d===au&&D&&!q?f-s*2:F,t.lineTo(x+Math.round(H),A+O+ee),t.lineWidth=o/15;const B=this._getLinearGradient();t.strokeStyle=B||g,t.stroke(),t.restore()}if(c!==O4&&(h!==0||d===au)){k=I.split(" ").length-1;for(var oe=S4(I),ce=0;ce<oe.length;ce++){var U=oe[ce];U===" "&&!D&&d===au&&(x+=(f-s*2-F)/k),this._partialTextX=x,this._partialTextY=A+O,this._partialText=U,t.fillStrokeShape(this),x+=this.measureSize(U).width+h}}else h!==0&&t.setAttr("letterSpacing",`${h}px`),this._partialTextX=x,this._partialTextY=A+O,this._partialText=I,t.fillStrokeShape(this);t.restore(),r>1&&(A+=a)}}}_hitFunc(t){var n=this.getWidth(),r=this.getHeight();t.beginPath(),t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)}setText(t){var n=Tv.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(tZ,n),this}getWidth(){var t=this.attrs.width===dl||this.attrs.width===void 0;return t?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var t=this.attrs.height===dl||this.attrs.height===void 0;return t?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return Tv.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var n,r,s,o,a,l,c,u,d,f,h,g=Iv(),v=this.fontSize(),y;g.save(),g.font=this._getContextFont(),y=g.measureText(t),g.restore();const _=v/100;return{actualBoundingBoxAscent:(n=y.actualBoundingBoxAscent)!==null&&n!==void 0?n:71.58203125*_,actualBoundingBoxDescent:(r=y.actualBoundingBoxDescent)!==null&&r!==void 0?r:0,actualBoundingBoxLeft:(s=y.actualBoundingBoxLeft)!==null&&s!==void 0?s:-7.421875*_,actualBoundingBoxRight:(o=y.actualBoundingBoxRight)!==null&&o!==void 0?o:75.732421875*_,alphabeticBaseline:(a=y.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(l=y.emHeightAscent)!==null&&l!==void 0?l:100*_,emHeightDescent:(c=y.emHeightDescent)!==null&&c!==void 0?c:-20*_,fontBoundingBoxAscent:(u=y.fontBoundingBoxAscent)!==null&&u!==void 0?u:91*_,fontBoundingBoxDescent:(d=y.fontBoundingBoxDescent)!==null&&d!==void 0?d:21*_,hangingBaseline:(f=y.hangingBaseline)!==null&&f!==void 0?f:72.80000305175781*_,ideographicBaseline:(h=y.ideographicBaseline)!==null&&h!==void 0?h:-21*_,width:y.width,height:v}}_getContextFont(){return this.fontStyle()+sh+this.fontVariant()+sh+(this.fontSize()+sZ)+uZ(this.fontFamily())}_addTextLine(t){this.align()===au&&(t=t.trim());var r=this._getTextWidth(t);return this.textArr.push({text:t,width:r,lastInParagraph:!1})}_getTextWidth(t){var n=this.letterSpacing(),r=t.length;return Iv().measureText(t).width+(r?n*(r-1):0)}_setTextData(){var t=this.text().split(`
|
|
148
|
-
`),n=+this.fontSize(),r=0,s=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,l=o!==dl&&o!==void 0,c=a!==dl&&a!==void 0,u=this.padding(),d=o-u*2,f=a-u*2,h=0,g=this.wrap(),v=g!==N4,y=g!==lZ&&v,_=this.ellipsis();this.textArr=[],Iv().font=this._getContextFont();for(var w=_?this._getTextWidth(Nv):0,A=0,C=t.length;A<C;++A){var S=t[A],x=this._getTextWidth(S);if(l&&x>d)for(;S.length>0;){for(var O=0,N=S.length,I="",F=0;O<N;){var D=O+N>>>1,k=S.slice(0,D+1),q=this._getTextWidth(k)+w;q<=d?(O=D+1,I=k,F=q):N=D}if(I){if(y){var H,oe=S[I.length],ce=oe===sh||oe===x4;ce&&F<=d?H=I.length:H=Math.max(I.lastIndexOf(sh),I.lastIndexOf(x4))+1,H>0&&(O=H,I=I.slice(0,O),F=this._getTextWidth(I))}I=I.trimRight(),this._addTextLine(I),r=Math.max(r,F),h+=s;var U=this._shouldHandleEllipsis(h);if(U){this._tryToAddEllipsisToLastLine();break}if(S=S.slice(O),S=S.trimLeft(),S.length>0&&(x=this._getTextWidth(S),x<=d)){this._addTextLine(S),h+=s,r=Math.max(r,x);break}}else break}else this._addTextLine(S),h+=s,r=Math.max(r,x),this._shouldHandleEllipsis(h)&&A<C-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),c&&h+s>f)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,s=this.attrs.height,o=s!==dl&&s!==void 0,a=this.padding(),l=s-a*2,c=this.wrap(),u=c!==N4;return!u||o&&t+r>l}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==dl&&t!==void 0,r=this.padding(),s=t-r*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(n){var l=this._getTextWidth(a.text+Nv)<s;l||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+Nv)}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const t=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,n=this.hasShadow();return t&&n?!0:super._useBufferCanvas()}}ou.Text=sn,sn.prototype._fillFunc=dZ,sn.prototype._strokeFunc=fZ,sn.prototype.className=nZ,sn.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,XX._registerNode)(sn),Bn.Factory.overWriteSetter(sn,"width",(0,no.getNumberOrAutoValidator)()),Bn.Factory.overWriteSetter(sn,"height",(0,no.getNumberOrAutoValidator)()),Bn.Factory.addGetterSetter(sn,"direction",E4),Bn.Factory.addGetterSetter(sn,"fontFamily","Arial"),Bn.Factory.addGetterSetter(sn,"fontSize",12,(0,no.getNumberValidator)()),Bn.Factory.addGetterSetter(sn,"fontStyle",T4),Bn.Factory.addGetterSetter(sn,"fontVariant",T4),Bn.Factory.addGetterSetter(sn,"padding",0,(0,no.getNumberValidator)()),Bn.Factory.addGetterSetter(sn,"align",A4),Bn.Factory.addGetterSetter(sn,"verticalAlign",iZ),Bn.Factory.addGetterSetter(sn,"lineHeight",1,(0,no.getNumberValidator)()),Bn.Factory.addGetterSetter(sn,"wrap",aZ),Bn.Factory.addGetterSetter(sn,"ellipsis",!1,(0,no.getBooleanValidator)()),Bn.Factory.addGetterSetter(sn,"letterSpacing",0,(0,no.getNumberValidator)()),Bn.Factory.addGetterSetter(sn,"text","",(0,no.getStringValidator)()),Bn.Factory.addGetterSetter(sn,"textDecoration","");var Rv={},ah={};Object.defineProperty(ah,"__esModule",{value:!0}),ah.Line=void 0;const lh=oi,pZ=ys,R4=It,gZ=Kt;function Dv(e,t,n,r,s,o,a){var l=Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2)),c=Math.sqrt(Math.pow(s-n,2)+Math.pow(o-r,2)),u=a*l/(l+c),d=a*c/(l+c),f=n-u*(s-e),h=r-u*(o-t),g=n+d*(s-e),v=r+d*(o-t);return[f,h,g,v]}function D4(e,t){var n=e.length,r=[],s,o;for(s=2;s<n-2;s+=2)o=Dv(e[s-2],e[s-1],e[s],e[s+1],e[s+2],e[s+3],t),!isNaN(o[0])&&(r.push(o[0]),r.push(o[1]),r.push(e[s]),r.push(e[s+1]),r.push(o[2]),r.push(o[3]));return r}class io extends pZ.Shape{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(t){var n=this.points(),r=n.length,s=this.tension(),o=this.closed(),a=this.bezier(),l,c,u;if(r){if(t.beginPath(),t.moveTo(n[0],n[1]),s!==0&&r>4){for(l=this.getTensionPoints(),c=l.length,u=o?0:4,o||t.quadraticCurveTo(l[0],l[1],l[2],l[3]);u<c-2;)t.bezierCurveTo(l[u++],l[u++],l[u++],l[u++],l[u++],l[u++]);o||t.quadraticCurveTo(l[c-2],l[c-1],n[r-2],n[r-1])}else if(a)for(u=2;u<r;)t.bezierCurveTo(n[u++],n[u++],n[u++],n[u++],n[u++],n[u++]);else for(u=2;u<r;u+=2)t.lineTo(n[u],n[u+1]);o?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():D4(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),n=t.length,r=this.tension(),s=Dv(t[n-2],t[n-1],t[0],t[1],t[2],t[3],r),o=Dv(t[n-4],t[n-3],t[n-2],t[n-1],t[0],t[1],r),a=D4(t,r),l=[s[2],s[3]].concat(a).concat([o[0],o[1],t[n-2],t[n-1],o[2],o[3],s[0],s[1],t[0],t[1]]);return l}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};this.tension()!==0?t=[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:t=this.points();for(var n=t[0],r=t[0],s=t[1],o=t[1],a,l,c=0;c<t.length/2;c++)a=t[c*2],l=t[c*2+1],n=Math.min(n,a),r=Math.max(r,a),s=Math.min(s,l),o=Math.max(o,l);return{x:n,y:s,width:r-n,height:o-s}}}ah.Line=io,io.prototype.className="Line",io.prototype._attrsAffectingSize=["points","bezier","tension"],(0,gZ._registerNode)(io),lh.Factory.addGetterSetter(io,"closed",!1),lh.Factory.addGetterSetter(io,"bezier",!1),lh.Factory.addGetterSetter(io,"tension",0,(0,R4.getNumberValidator)()),lh.Factory.addGetterSetter(io,"points",[],(0,R4.getNumberArrayValidator)());var ch={},L4={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.t2length=e.getQuadraticArcLength=e.getCubicArcLength=e.binomialCoefficients=e.cValues=e.tValues=void 0,e.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],e.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],e.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];const t=(a,l,c)=>{let u,d,f;u=c/2,d=0;for(let g=0;g<20;g++)f=u*e.tValues[20][g]+u,d+=e.cValues[20][g]*r(a,l,f);return u*d};e.getCubicArcLength=t;const n=(a,l,c)=>{c===void 0&&(c=1);const u=a[0]-2*a[1]+a[2],d=l[0]-2*l[1]+l[2],f=2*a[1]-2*a[0],h=2*l[1]-2*l[0],g=4*(u*u+d*d),v=4*(u*f+d*h),y=f*f+h*h;if(g===0)return c*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(l[2]-l[0],2));const _=v/(2*g),w=y/g,A=c+_,C=w-_*_,S=A*A+C>0?Math.sqrt(A*A+C):0,x=_*_+C>0?Math.sqrt(_*_+C):0,O=_+Math.sqrt(_*_+C)!==0?C*Math.log(Math.abs((A+S)/(_+x))):0;return Math.sqrt(g)/2*(A*S-_*x+O)};e.getQuadraticArcLength=n;function r(a,l,c){const u=s(1,c,a),d=s(1,c,l),f=u*u+d*d;return Math.sqrt(f)}const s=(a,l,c)=>{const u=c.length-1;let d,f;if(u===0)return 0;if(a===0){f=0;for(let h=0;h<=u;h++)f+=e.binomialCoefficients[u][h]*Math.pow(1-l,u-h)*Math.pow(l,h)*c[h];return f}else{d=new Array(u);for(let h=0;h<u;h++)d[h]=u*(c[h+1]-c[h]);return s(a-1,l,d)}},o=(a,l,c)=>{let u=1,d=a/l,f=(a-c(d))/l,h=0;for(;u>.001;){const g=c(d+f),v=Math.abs(a-g)/l;if(v<u)u=v,d+=f;else{const y=c(d-f),_=Math.abs(a-y)/l;_<u?(u=_,d-=f):f/=2}if(h++,h>500)break}return d};e.t2length=o})(L4),Object.defineProperty(ch,"__esModule",{value:!0}),ch.Path=void 0;const mZ=oi,vZ=ys,bZ=Kt,fl=L4;class yn extends vZ.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=yn.parsePathData(this.data()),this.pathLength=yn.getPathLength(this.dataArray)}_sceneFunc(t){var n=this.dataArray;t.beginPath();for(var r=!1,s=0;s<n.length;s++){var o=n[s].command,a=n[s].points;switch(o){case"L":t.lineTo(a[0],a[1]);break;case"M":t.moveTo(a[0],a[1]);break;case"C":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"Q":t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case"A":var l=a[0],c=a[1],u=a[2],d=a[3],f=a[4],h=a[5],g=a[6],v=a[7],y=u>d?u:d,_=u>d?1:u/d,w=u>d?d/u:1;t.translate(l,c),t.rotate(g),t.scale(_,w),t.arc(0,0,y,f,f+h,1-v),t.scale(1/_,1/w),t.rotate(-g),t.translate(-l,-c);break;case"z":r=!0,t.closePath();break}}!r&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach(function(u){if(u.command==="A"){var d=u.points[4],f=u.points[5],h=u.points[4]+f,g=Math.PI/180;if(Math.abs(d-h)<g&&(g=Math.abs(d-h)),f<0)for(let v=d-g;v>h;v-=g){const y=yn.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],v,0);t.push(y.x,y.y)}else for(let v=d+g;v<h;v+=g){const y=yn.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],v,0);t.push(y.x,y.y)}}else if(u.command==="C")for(let v=0;v<=1;v+=.01){const y=yn.getPointOnCubicBezier(v,u.start.x,u.start.y,u.points[0],u.points[1],u.points[2],u.points[3],u.points[4],u.points[5]);t.push(y.x,y.y)}else t=t.concat(u.points)});for(var n=t[0],r=t[0],s=t[1],o=t[1],a,l,c=0;c<t.length/2;c++)a=t[c*2],l=t[c*2+1],isNaN(a)||(n=Math.min(n,a),r=Math.max(r,a)),isNaN(l)||(s=Math.min(s,l),o=Math.max(o,l));return{x:n,y:s,width:r-n,height:o-s}}getLength(){return this.pathLength}getPointAtLength(t){return yn.getPointAtLengthOfDataArray(t,this.dataArray)}static getLineLength(t,n,r,s){return Math.sqrt((r-t)*(r-t)+(s-n)*(s-n))}static getPathLength(t){let n=0;for(var r=0;r<t.length;++r)n+=t[r].pathLength;return n}static getPointAtLengthOfDataArray(t,n){var r,s=0,o=n.length;if(!o)return null;for(;s<o&&t>n[s].pathLength;)t-=n[s].pathLength,++s;if(s===o)return r=n[s-1].points.slice(-2),{x:r[0],y:r[1]};if(t<.01)return r=n[s].points.slice(0,2),{x:r[0],y:r[1]};var a=n[s],l=a.points;switch(a.command){case"L":return yn.getPointOnLine(t,a.start.x,a.start.y,l[0],l[1]);case"C":return yn.getPointOnCubicBezier((0,fl.t2length)(t,yn.getPathLength(n),y=>(0,fl.getCubicArcLength)([a.start.x,l[0],l[2],l[4]],[a.start.y,l[1],l[3],l[5]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return yn.getPointOnQuadraticBezier((0,fl.t2length)(t,yn.getPathLength(n),y=>(0,fl.getQuadraticArcLength)([a.start.x,l[0],l[2]],[a.start.y,l[1],l[3]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3]);case"A":var c=l[0],u=l[1],d=l[2],f=l[3],h=l[4],g=l[5],v=l[6];return h+=g*t/a.pathLength,yn.getPointOnEllipticalArc(c,u,d,f,h,v)}return null}static getPointOnLine(t,n,r,s,o,a,l){a=a!=null?a:n,l=l!=null?l:r;const c=this.getLineLength(n,r,s,o);if(c<1e-10)return{x:n,y:r};if(s===n)return{x:a,y:l+(o>r?t:-t)};const u=(o-r)/(s-n),d=Math.sqrt(t*t/(1+u*u))*(s<n?-1:1),f=u*d;if(Math.abs(l-r-u*(a-n))<1e-10)return{x:a+d,y:l+f};const h=((a-n)*(s-n)+(l-r)*(o-r))/(c*c),g=n+h*(s-n),v=r+h*(o-r),y=this.getLineLength(a,l,g,v),_=Math.sqrt(t*t-y*y),w=Math.sqrt(_*_/(1+u*u))*(s<n?-1:1),A=u*w;return{x:g+w,y:v+A}}static getPointOnCubicBezier(t,n,r,s,o,a,l,c,u){function d(_){return _*_*_}function f(_){return 3*_*_*(1-_)}function h(_){return 3*_*(1-_)*(1-_)}function g(_){return(1-_)*(1-_)*(1-_)}var v=c*d(t)+a*f(t)+s*h(t)+n*g(t),y=u*d(t)+l*f(t)+o*h(t)+r*g(t);return{x:v,y}}static getPointOnQuadraticBezier(t,n,r,s,o,a,l){function c(g){return g*g}function u(g){return 2*g*(1-g)}function d(g){return(1-g)*(1-g)}var f=a*c(t)+s*u(t)+n*d(t),h=l*c(t)+o*u(t)+r*d(t);return{x:f,y:h}}static getPointOnEllipticalArc(t,n,r,s,o,a){var l=Math.cos(a),c=Math.sin(a),u={x:r*Math.cos(o),y:s*Math.sin(o)};return{x:t+(u.x*l-u.y*c),y:n+(u.x*c+u.y*l)}}static parsePathData(t){if(!t)return[];var n=t,r=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];n=n.replace(new RegExp(" ","g"),",");for(var s=0;s<r.length;s++)n=n.replace(new RegExp(r[s],"g"),"|"+r[s]);var o=n.split("|"),a=[],l=[],c=0,u=0,d=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,f;for(s=1;s<o.length;s++){var h=o[s],g=h.charAt(0);for(h=h.slice(1),l.length=0;f=d.exec(h);)l.push(f[0]);for(var v=[],y=0,_=l.length;y<_;y++){if(l[y]==="00"){v.push(0,0);continue}var w=parseFloat(l[y]);isNaN(w)?v.push(0):v.push(w)}for(;v.length>0&&!isNaN(v[0]);){var A="",C=[],S=c,x=u,O,N,I,F,D,k,q,H,oe,ce;switch(g){case"l":c+=v.shift(),u+=v.shift(),A="L",C.push(c,u);break;case"L":c=v.shift(),u=v.shift(),C.push(c,u);break;case"m":var U=v.shift(),Y=v.shift();if(c+=U,u+=Y,A="M",a.length>2&&a[a.length-1].command==="z"){for(var K=a.length-2;K>=0;K--)if(a[K].command==="M"){c=a[K].points[0]+U,u=a[K].points[1]+Y;break}}C.push(c,u),g="l";break;case"M":c=v.shift(),u=v.shift(),A="M",C.push(c,u),g="L";break;case"h":c+=v.shift(),A="L",C.push(c,u);break;case"H":c=v.shift(),A="L",C.push(c,u);break;case"v":u+=v.shift(),A="L",C.push(c,u);break;case"V":u=v.shift(),A="L",C.push(c,u);break;case"C":C.push(v.shift(),v.shift(),v.shift(),v.shift()),c=v.shift(),u=v.shift(),C.push(c,u);break;case"c":C.push(c+v.shift(),u+v.shift(),c+v.shift(),u+v.shift()),c+=v.shift(),u+=v.shift(),A="C",C.push(c,u);break;case"S":N=c,I=u,O=a[a.length-1],O.command==="C"&&(N=c+(c-O.points[2]),I=u+(u-O.points[3])),C.push(N,I,v.shift(),v.shift()),c=v.shift(),u=v.shift(),A="C",C.push(c,u);break;case"s":N=c,I=u,O=a[a.length-1],O.command==="C"&&(N=c+(c-O.points[2]),I=u+(u-O.points[3])),C.push(N,I,c+v.shift(),u+v.shift()),c+=v.shift(),u+=v.shift(),A="C",C.push(c,u);break;case"Q":C.push(v.shift(),v.shift()),c=v.shift(),u=v.shift(),C.push(c,u);break;case"q":C.push(c+v.shift(),u+v.shift()),c+=v.shift(),u+=v.shift(),A="Q",C.push(c,u);break;case"T":N=c,I=u,O=a[a.length-1],O.command==="Q"&&(N=c+(c-O.points[0]),I=u+(u-O.points[1])),c=v.shift(),u=v.shift(),A="Q",C.push(N,I,c,u);break;case"t":N=c,I=u,O=a[a.length-1],O.command==="Q"&&(N=c+(c-O.points[0]),I=u+(u-O.points[1])),c+=v.shift(),u+=v.shift(),A="Q",C.push(N,I,c,u);break;case"A":F=v.shift(),D=v.shift(),k=v.shift(),q=v.shift(),H=v.shift(),oe=c,ce=u,c=v.shift(),u=v.shift(),A="A",C=this.convertEndpointToCenterParameterization(oe,ce,c,u,q,H,F,D,k);break;case"a":F=v.shift(),D=v.shift(),k=v.shift(),q=v.shift(),H=v.shift(),oe=c,ce=u,c+=v.shift(),u+=v.shift(),A="A",C=this.convertEndpointToCenterParameterization(oe,ce,c,u,q,H,F,D,k);break}a.push({command:A||g,points:C,start:{x:S,y:x},pathLength:this.calcLength(S,x,A||g,C)})}(g==="z"||g==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,n,r,s){var o,a,l,c,u=yn;switch(r){case"L":return u.getLineLength(t,n,s[0],s[1]);case"C":return(0,fl.getCubicArcLength)([t,s[0],s[2],s[4]],[n,s[1],s[3],s[5]],1);case"Q":return(0,fl.getQuadraticArcLength)([t,s[0],s[2]],[n,s[1],s[3]],1);case"A":o=0;var d=s[4],f=s[5],h=s[4]+f,g=Math.PI/180;if(Math.abs(d-h)<g&&(g=Math.abs(d-h)),a=u.getPointOnEllipticalArc(s[0],s[1],s[2],s[3],d,0),f<0)for(c=d-g;c>h;c-=g)l=u.getPointOnEllipticalArc(s[0],s[1],s[2],s[3],c,0),o+=u.getLineLength(a.x,a.y,l.x,l.y),a=l;else for(c=d+g;c<h;c+=g)l=u.getPointOnEllipticalArc(s[0],s[1],s[2],s[3],c,0),o+=u.getLineLength(a.x,a.y,l.x,l.y),a=l;return l=u.getPointOnEllipticalArc(s[0],s[1],s[2],s[3],h,0),o+=u.getLineLength(a.x,a.y,l.x,l.y),o}return 0}static convertEndpointToCenterParameterization(t,n,r,s,o,a,l,c,u){var d=u*(Math.PI/180),f=Math.cos(d)*(t-r)/2+Math.sin(d)*(n-s)/2,h=-1*Math.sin(d)*(t-r)/2+Math.cos(d)*(n-s)/2,g=f*f/(l*l)+h*h/(c*c);g>1&&(l*=Math.sqrt(g),c*=Math.sqrt(g));var v=Math.sqrt((l*l*(c*c)-l*l*(h*h)-c*c*(f*f))/(l*l*(h*h)+c*c*(f*f)));o===a&&(v*=-1),isNaN(v)&&(v=0);var y=v*l*h/c,_=v*-c*f/l,w=(t+r)/2+Math.cos(d)*y-Math.sin(d)*_,A=(n+s)/2+Math.sin(d)*y+Math.cos(d)*_,C=function(D){return Math.sqrt(D[0]*D[0]+D[1]*D[1])},S=function(D,k){return(D[0]*k[0]+D[1]*k[1])/(C(D)*C(k))},x=function(D,k){return(D[0]*k[1]<D[1]*k[0]?-1:1)*Math.acos(S(D,k))},O=x([1,0],[(f-y)/l,(h-_)/c]),N=[(f-y)/l,(h-_)/c],I=[(-1*f-y)/l,(-1*h-_)/c],F=x(N,I);return S(N,I)<=-1&&(F=Math.PI),S(N,I)>=1&&(F=0),a===0&&F>0&&(F=F-2*Math.PI),a===1&&F<0&&(F=F+2*Math.PI),[w,A,l,c,O,F,d,a]}}ch.Path=yn,yn.prototype.className="Path",yn.prototype._attrsAffectingSize=["data"],(0,bZ._registerNode)(yn),mZ.Factory.addGetterSetter(yn,"data"),Object.defineProperty(Rv,"__esModule",{value:!0}),Rv.Arrow=void 0;const uh=oi,yZ=ah,k4=It,_Z=Kt,M4=ch;class sa extends yZ.Line{_sceneFunc(t){super._sceneFunc(t);var n=Math.PI*2,r=this.points(),s=r,o=this.tension()!==0&&r.length>4;o&&(s=this.getTensionPoints());var a=this.pointerLength(),l=r.length,c,u;if(o){const h=[s[s.length-4],s[s.length-3],s[s.length-2],s[s.length-1],r[l-2],r[l-1]],g=M4.Path.calcLength(s[s.length-4],s[s.length-3],"C",h),v=M4.Path.getPointOnQuadraticBezier(Math.min(1,1-a/g),h[0],h[1],h[2],h[3],h[4],h[5]);c=r[l-2]-v.x,u=r[l-1]-v.y}else c=r[l-2]-r[l-4],u=r[l-1]-r[l-3];var d=(Math.atan2(u,c)+n)%n,f=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(r[l-2],r[l-1]),t.rotate(d),t.moveTo(0,0),t.lineTo(-a,f/2),t.lineTo(-a,-f/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(r[0],r[1]),o?(c=(s[0]+s[2])/2-r[0],u=(s[1]+s[3])/2-r[1]):(c=r[2]-r[0],u=r[3]-r[1]),t.rotate((Math.atan2(-u,-c)+n)%n),t.moveTo(0,0),t.lineTo(-a,f/2),t.lineTo(-a,-f/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){var n=this.dashEnabled();n&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),n&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),n=this.pointerWidth()/2;return{x:t.x-n,y:t.y-n,width:t.width+n*2,height:t.height+n*2}}}Rv.Arrow=sa,sa.prototype.className="Arrow",(0,_Z._registerNode)(sa),uh.Factory.addGetterSetter(sa,"pointerLength",10,(0,k4.getNumberValidator)()),uh.Factory.addGetterSetter(sa,"pointerWidth",10,(0,k4.getNumberValidator)()),uh.Factory.addGetterSetter(sa,"pointerAtBeginning",!1),uh.Factory.addGetterSetter(sa,"pointerAtEnding",!0);function F4(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function s(){var o,a=n.length,l,c=0,u=0;for(o=0;o<a;++o)l=n[o],c+=l.x,u+=l.y;for(c=(c/a-e)*r,u=(u/a-t)*r,o=0;o<a;++o)l=n[o],l.x-=c,l.y-=u}return s.initialize=function(o){n=o},s.x=function(o){return arguments.length?(e=+o,s):e},s.y=function(o){return arguments.length?(t=+o,s):t},s.strength=function(o){return arguments.length?(r=+o,s):r},s}function wZ(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return B4(this.cover(t,n),t,n,e)}function B4(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var s,o=e._root,a={data:r},l=e._x0,c=e._y0,u=e._x1,d=e._y1,f,h,g,v,y,_,w,A;if(!o)return e._root=a,e;for(;o.length;)if((y=t>=(f=(l+u)/2))?l=f:u=f,(_=n>=(h=(c+d)/2))?c=h:d=h,s=o,!(o=o[w=_<<1|y]))return s[w]=a,e;if(g=+e._x.call(null,o.data),v=+e._y.call(null,o.data),t===g&&n===v)return a.next=o,s?s[w]=a:e._root=a,e;do s=s?s[w]=new Array(4):e._root=new Array(4),(y=t>=(f=(l+u)/2))?l=f:u=f,(_=n>=(h=(c+d)/2))?c=h:d=h;while((w=_<<1|y)===(A=(v>=h)<<1|g>=f));return s[A]=o,s[w]=a,e}function CZ(e){var t,n,r=e.length,s,o,a=new Array(r),l=new Array(r),c=1/0,u=1/0,d=-1/0,f=-1/0;for(n=0;n<r;++n)isNaN(s=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(a[n]=s,l[n]=o,s<c&&(c=s),s>d&&(d=s),o<u&&(u=o),o>f&&(f=o));if(c>d||u>f)return this;for(this.cover(c,u).cover(d,f),n=0;n<r;++n)B4(this,a[n],l[n],e[n]);return this}function SZ(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,s=this._x1,o=this._y1;if(isNaN(n))s=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var a=s-n||1,l=this._root,c,u;n>e||e>=s||r>t||t>=o;)switch(u=(t<r)<<1|e<n,c=new Array(4),c[u]=l,l=c,a*=2,u){case 0:s=n+a,o=r+a;break;case 1:n=s-a,o=r+a;break;case 2:s=n+a,r=o-a;break;case 3:n=s-a,r=o-a;break}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=s,this._y1=o,this}function EZ(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function xZ(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Kn(e,t,n,r,s){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=s}function AZ(e,t,n){var r,s=this._x0,o=this._y0,a,l,c,u,d=this._x1,f=this._y1,h=[],g=this._root,v,y;for(g&&h.push(new Kn(g,s,o,d,f)),n==null?n=1/0:(s=e-n,o=t-n,d=e+n,f=t+n,n*=n);v=h.pop();)if(!(!(g=v.node)||(a=v.x0)>d||(l=v.y0)>f||(c=v.x1)<s||(u=v.y1)<o))if(g.length){var _=(a+c)/2,w=(l+u)/2;h.push(new Kn(g[3],_,w,c,u),new Kn(g[2],a,w,_,u),new Kn(g[1],_,l,c,w),new Kn(g[0],a,l,_,w)),(y=(t>=w)<<1|e>=_)&&(v=h[h.length-1],h[h.length-1]=h[h.length-1-y],h[h.length-1-y]=v)}else{var A=e-+this._x.call(null,g.data),C=t-+this._y.call(null,g.data),S=A*A+C*C;if(S<n){var x=Math.sqrt(n=S);s=e-x,o=t-x,d=e+x,f=t+x,r=g.data}}return r}function PZ(e){if(isNaN(d=+this._x.call(null,e))||isNaN(f=+this._y.call(null,e)))return this;var t,n=this._root,r,s,o,a=this._x0,l=this._y0,c=this._x1,u=this._y1,d,f,h,g,v,y,_,w;if(!n)return this;if(n.length)for(;;){if((v=d>=(h=(a+c)/2))?a=h:c=h,(y=f>=(g=(l+u)/2))?l=g:u=g,t=n,!(n=n[_=y<<1|v]))return this;if(!n.length)break;(t[_+1&3]||t[_+2&3]||t[_+3&3])&&(r=t,w=_)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[_]=o:delete t[_],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[w]=n:this._root=n),this):(this._root=o,this)}function TZ(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function OZ(){return this._root}function NZ(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function IZ(e){var t=[],n,r=this._root,s,o,a,l,c;for(r&&t.push(new Kn(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,o=n.x0,a=n.y0,l=n.x1,c=n.y1)&&r.length){var u=(o+l)/2,d=(a+c)/2;(s=r[3])&&t.push(new Kn(s,u,d,l,c)),(s=r[2])&&t.push(new Kn(s,o,d,u,c)),(s=r[1])&&t.push(new Kn(s,u,a,l,d)),(s=r[0])&&t.push(new Kn(s,o,a,u,d))}return this}function RZ(e){var t=[],n=[],r;for(this._root&&t.push(new Kn(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var s=r.node;if(s.length){var o,a=r.x0,l=r.y0,c=r.x1,u=r.y1,d=(a+c)/2,f=(l+u)/2;(o=s[0])&&t.push(new Kn(o,a,l,d,f)),(o=s[1])&&t.push(new Kn(o,d,l,c,f)),(o=s[2])&&t.push(new Kn(o,a,f,d,u)),(o=s[3])&&t.push(new Kn(o,d,f,c,u))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function DZ(e){return e[0]}function LZ(e){return arguments.length?(this._x=e,this):this._x}function kZ(e){return e[1]}function MZ(e){return arguments.length?(this._y=e,this):this._y}function Lv(e,t,n){var r=new kv(t==null?DZ:t,n==null?kZ:n,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function kv(e,t,n,r,s,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=s,this._y1=o,this._root=void 0}function j4(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Jn=Lv.prototype=kv.prototype;Jn.copy=function(){var e=new kv(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=j4(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var s=0;s<4;++s)(r=t.source[s])&&(r.length?n.push({source:r,target:t.target[s]=new Array(4)}):t.target[s]=j4(r));return e},Jn.add=wZ,Jn.addAll=CZ,Jn.cover=SZ,Jn.data=EZ,Jn.extent=xZ,Jn.find=AZ,Jn.remove=PZ,Jn.removeAll=TZ,Jn.root=OZ,Jn.size=NZ,Jn.visit=IZ,Jn.visitAfter=RZ,Jn.x=LZ,Jn.y=MZ;function Yn(e){return function(){return e}}function ro(e){return(e()-.5)*1e-6}function FZ(e){return e.x+e.vx}function BZ(e){return e.y+e.vy}function jZ(e){var t,n,r,s=1,o=1;typeof e!="function"&&(e=Yn(e==null?1:+e));function a(){for(var u,d=t.length,f,h,g,v,y,_,w=0;w<o;++w)for(f=Lv(t,FZ,BZ).visitAfter(l),u=0;u<d;++u)h=t[u],y=n[h.index],_=y*y,g=h.x+h.vx,v=h.y+h.vy,f.visit(A);function A(C,S,x,O,N){var I=C.data,F=C.r,D=y+F;if(I){if(I.index>h.index){var k=g-I.x-I.vx,q=v-I.y-I.vy,H=k*k+q*q;H<D*D&&(k===0&&(k=ro(r),H+=k*k),q===0&&(q=ro(r),H+=q*q),H=(D-(H=Math.sqrt(H)))/H*s,h.vx+=(k*=H)*(D=(F*=F)/(_+F)),h.vy+=(q*=H)*D,I.vx-=k*(D=1-D),I.vy-=q*D)}return}return S>g+D||O<g-D||x>v+D||N<v-D}}function l(u){if(u.data)return u.r=n[u.data.index];for(var d=u.r=0;d<4;++d)u[d]&&u[d].r>u.r&&(u.r=u[d].r)}function c(){if(t){var u,d=t.length,f;for(n=new Array(d),u=0;u<d;++u)f=t[u],n[f.index]=+e(f,u,t)}}return a.initialize=function(u,d){t=u,r=d,c()},a.iterations=function(u){return arguments.length?(o=+u,a):o},a.strength=function(u){return arguments.length?(s=+u,a):s},a.radius=function(u){return arguments.length?(e=typeof u=="function"?u:Yn(+u),c(),a):e},a}function UZ(e){return e.index}function U4(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function $Z(e){var t=UZ,n=f,r,s=Yn(30),o,a,l,c,u,d=1;e==null&&(e=[]);function f(_){return 1/Math.min(l[_.source.index],l[_.target.index])}function h(_){for(var w=0,A=e.length;w<d;++w)for(var C=0,S,x,O,N,I,F,D;C<A;++C)S=e[C],x=S.source,O=S.target,N=O.x+O.vx-x.x-x.vx||ro(u),I=O.y+O.vy-x.y-x.vy||ro(u),F=Math.sqrt(N*N+I*I),F=(F-o[C])/F*_*r[C],N*=F,I*=F,O.vx-=N*(D=c[C]),O.vy-=I*D,x.vx+=N*(D=1-D),x.vy+=I*D}function g(){if(a){var _,w=a.length,A=e.length,C=new Map(a.map((x,O)=>[t(x,O,a),x])),S;for(_=0,l=new Array(w);_<A;++_)S=e[_],S.index=_,typeof S.source!="object"&&(S.source=U4(C,S.source)),typeof S.target!="object"&&(S.target=U4(C,S.target)),l[S.source.index]=(l[S.source.index]||0)+1,l[S.target.index]=(l[S.target.index]||0)+1;for(_=0,c=new Array(A);_<A;++_)S=e[_],c[_]=l[S.source.index]/(l[S.source.index]+l[S.target.index]);r=new Array(A),v(),o=new Array(A),y()}}function v(){if(a)for(var _=0,w=e.length;_<w;++_)r[_]=+n(e[_],_,e)}function y(){if(a)for(var _=0,w=e.length;_<w;++_)o[_]=+s(e[_],_,e)}return h.initialize=function(_,w){a=_,u=w,g()},h.links=function(_){return arguments.length?(e=_,g(),h):e},h.id=function(_){return arguments.length?(t=_,h):t},h.iterations=function(_){return arguments.length?(d=+_,h):d},h.strength=function(_){return arguments.length?(n=typeof _=="function"?_:Yn(+_),v(),h):n},h.distance=function(_){return arguments.length?(s=typeof _=="function"?_:Yn(+_),y(),h):s},h}var VZ={value:()=>{}};function $4(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new dh(n)}function dh(e){this._=e}function zZ(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",s=n.indexOf(".");if(s>=0&&(r=n.slice(s+1),n=n.slice(0,s)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}dh.prototype=$4.prototype={constructor:dh,on:function(e,t){var n=this._,r=zZ(e+"",n),s,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((s=(e=r[o]).type)&&(s=qZ(n[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(s=(e=r[o]).type)n[s]=V4(n[s],e.name,t);else if(t==null)for(s in n)n[s]=V4(n[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new dh(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var n=new Array(s),r=0,s,o;r<s;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,s=o.length;r<s;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],s=0,o=r.length;s<o;++s)r[s].value.apply(t,n)}};function qZ(e,t){for(var n=0,r=e.length,s;n<r;++n)if((s=e[n]).name===t)return s.value}function V4(e,t,n){for(var r=0,s=e.length;r<s;++r)if(e[r].name===t){e[r]=VZ,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var hl=0,lu=0,cu=0,z4=1e3,fh,uu,hh=0,oa=0,ph=0,du=typeof performance=="object"&&performance.now?performance:Date,q4=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function H4(){return oa||(q4(HZ),oa=du.now()+ph)}function HZ(){oa=0}function Mv(){this._call=this._time=this._next=null}Mv.prototype=G4.prototype={constructor:Mv,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?H4():+n)+(t==null?0:+t),!this._next&&uu!==this&&(uu?uu._next=this:fh=this,uu=this),this._call=e,this._time=n,Fv()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fv())}};function G4(e,t,n){var r=new Mv;return r.restart(e,t,n),r}function GZ(){H4(),++hl;for(var e=fh,t;e;)(t=oa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--hl}function W4(){oa=(hh=du.now())+ph,hl=lu=0;try{GZ()}finally{hl=0,KZ(),oa=0}}function WZ(){var e=du.now(),t=e-hh;t>z4&&(ph-=t,hh=e)}function KZ(){for(var e,t=fh,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:fh=n);uu=e,Fv(r)}function Fv(e){if(!hl){lu&&(lu=clearTimeout(lu));var t=e-oa;t>24?(e<1/0&&(lu=setTimeout(W4,e-du.now()-ph)),cu&&(cu=clearInterval(cu))):(cu||(hh=du.now(),cu=setInterval(WZ,z4)),hl=1,q4(W4))}}const JZ=1664525,YZ=1013904223,K4=4294967296;function XZ(){let e=1;return()=>(e=(JZ*e+YZ)%K4)/K4}function ZZ(e){return e.x}function QZ(e){return e.y}var eQ=10,tQ=Math.PI*(3-Math.sqrt(5));function nQ(e){var t,n=1,r=.001,s=1-Math.pow(r,1/300),o=0,a=.6,l=new Map,c=G4(f),u=$4("tick","end"),d=XZ();e==null&&(e=[]);function f(){h(),u.call("tick",t),n<r&&(c.stop(),u.call("end",t))}function h(y){var _,w=e.length,A;y===void 0&&(y=1);for(var C=0;C<y;++C)for(n+=(o-n)*s,l.forEach(function(S){S(n)}),_=0;_<w;++_)A=e[_],A.fx==null?(isNaN(A.vx)&&(A.vx=0),A.x+=A.vx*=a):(A.x=A.fx,A.vx=0),A.fy==null?(isNaN(A.vy)&&(A.vy=0),A.y+=A.vy*=a):(A.y=A.fy,A.vy=0);return t}function g(){for(var y=0,_=e.length,w;y<_;++y){if(w=e[y],w.index=y,w.fx!=null&&(w.x=w.fx),w.fy!=null&&(w.y=w.fy),isNaN(w.x)||isNaN(w.y)){var A=eQ*Math.sqrt(.5+y),C=y*tQ;w.x=A*Math.cos(C),w.y=A*Math.sin(C)}(isNaN(w.vx)||isNaN(w.vy))&&(w.vx=w.vy=0)}}function v(y){return y.initialize&&y.initialize(e,d),y}return g(),t={tick:h,restart:function(){return c.restart(f),t},stop:function(){return c.stop(),t},nodes:function(y){return arguments.length?(e=y,g(),l.forEach(v),t):e},alpha:function(y){return arguments.length?(n=+y,t):n},alphaMin:function(y){return arguments.length?(r=+y,t):r},alphaDecay:function(y){return arguments.length?(s=+y,t):+s},alphaTarget:function(y){return arguments.length?(o=+y,t):o},velocityDecay:function(y){return arguments.length?(a=1-y,t):1-a},randomSource:function(y){return arguments.length?(d=y,l.forEach(v),t):d},force:function(y,_){return arguments.length>1?(_==null?l.delete(y):l.set(y,v(_)),t):l.get(y)},find:function(y,_,w){var A=0,C=e.length,S,x,O,N,I;for(w==null?w=1/0:w*=w,A=0;A<C;++A)N=e[A],S=y-N.x,x=_-N.y,O=S*S+x*x,O<w&&(I=N,w=O);return I},on:function(y,_){return arguments.length>1?(u.on(y,_),t):u.on(y)}}}function iQ(){var e,t,n,r,s=Yn(-30),o,a=1,l=1/0,c=.81;function u(g){var v,y=e.length,_=Lv(e,ZZ,QZ).visitAfter(f);for(r=g,v=0;v<y;++v)t=e[v],_.visit(h)}function d(){if(e){var g,v=e.length,y;for(o=new Array(v),g=0;g<v;++g)y=e[g],o[y.index]=+s(y,g,e)}}function f(g){var v=0,y,_,w=0,A,C,S;if(g.length){for(A=C=S=0;S<4;++S)(y=g[S])&&(_=Math.abs(y.value))&&(v+=y.value,w+=_,A+=_*y.x,C+=_*y.y);g.x=A/w,g.y=C/w}else{y=g,y.x=y.data.x,y.y=y.data.y;do v+=o[y.data.index];while(y=y.next)}g.value=v}function h(g,v,y,_){if(!g.value)return!0;var w=g.x-t.x,A=g.y-t.y,C=_-v,S=w*w+A*A;if(C*C/c<S)return S<l&&(w===0&&(w=ro(n),S+=w*w),A===0&&(A=ro(n),S+=A*A),S<a&&(S=Math.sqrt(a*S)),t.vx+=w*g.value*r/S,t.vy+=A*g.value*r/S),!0;if(g.length||S>=l)return;(g.data!==t||g.next)&&(w===0&&(w=ro(n),S+=w*w),A===0&&(A=ro(n),S+=A*A),S<a&&(S=Math.sqrt(a*S)));do g.data!==t&&(C=o[g.data.index]*r/S,t.vx+=w*C,t.vy+=A*C);while(g=g.next)}return u.initialize=function(g,v){e=g,n=v,d()},u.strength=function(g){return arguments.length?(s=typeof g=="function"?g:Yn(+g),d(),u):s},u.distanceMin=function(g){return arguments.length?(a=g*g,u):Math.sqrt(a)},u.distanceMax=function(g){return arguments.length?(l=g*g,u):Math.sqrt(l)},u.theta=function(g){return arguments.length?(c=g*g,u):Math.sqrt(c)},u}function rQ(e){var t=Yn(.1),n,r,s;typeof e!="function"&&(e=Yn(e==null?0:+e));function o(l){n.length!==s.length&&a();for(var c=0,u=n.length,d;c<u;++c)d=n[c],d.vx,d.vx+=(s[c]-d.x)*r[c]*l}function a(){if(n){var l,c=n.length;for(r=new Array(c),s=new Array(c),l=0;l<c;++l)r[l]=isNaN(s[l]=+e(n[l],l,n))?0:+t(n[l],l,n)}}return o.initialize=function(l){n=l,a()},o.strength=function(l){return arguments.length?(t=typeof l=="function"?l:Yn(+l),a(),o):t},o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Yn(+l),a(),o):e},o}function sQ(e){var t=Yn(.1),n,r,s;typeof e!="function"&&(e=Yn(e==null?0:+e));function o(l){n.length!==s.length&&a();for(var c=0,u=n.length,d;c<u;++c)d=n[c],d.vy+=(s[c]-d.y)*r[c]*l}function a(){if(n){var l,c=n.length;for(r=new Array(c),s=new Array(c),l=0;l<c;++l)r[l]=isNaN(s[l]=+e(n[l],l,n))?0:+t(n[l],l,n)}}return o.initialize=function(l){n=l,a()},o.strength=function(l){return arguments.length?(t=typeof l=="function"?l:Yn(+l),a(),o):t},o.y=function(l){return arguments.length?(e=typeof l=="function"?l:Yn(+l),a(),o):e},o}const Pge="";function oQ(e,t,n){return t=vh(t),e5(e,J4()?Reflect.construct(t,n||[],vh(e).constructor):t.apply(e,n))}function J4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(J4=function(){return!!e})()}function Y4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function fu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y4(Object(n),!0).forEach(function(r){ws(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lr(){lr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,s=Object.defineProperty||function(U,Y,K){U[Y]=K.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(U,Y,K){return Object.defineProperty(U,Y,{value:K,enumerable:!0,configurable:!0,writable:!0}),U[Y]}try{u({},"")}catch(U){u=function(Y,K,ee){return Y[K]=ee}}function d(U,Y,K,ee){var B=Y&&Y.prototype instanceof w?Y:w,Ee=Object.create(B.prototype),me=new oe(ee||[]);return s(Ee,"_invoke",{value:D(U,K,me)}),Ee}function f(U,Y,K){try{return{type:"normal",arg:U.call(Y,K)}}catch(ee){return{type:"throw",arg:ee}}}t.wrap=d;var h="suspendedStart",g="suspendedYield",v="executing",y="completed",_={};function w(){}function A(){}function C(){}var S={};u(S,a,function(){return this});var x=Object.getPrototypeOf,O=x&&x(x(ce([])));O&&O!==n&&r.call(O,a)&&(S=O);var N=C.prototype=w.prototype=Object.create(S);function I(U){["next","throw","return"].forEach(function(Y){u(U,Y,function(K){return this._invoke(Y,K)})})}function F(U,Y){function K(B,Ee,me,re){var le=f(U[B],U,Ee);if(le.type!=="throw"){var Ce=le.arg,ye=Ce.value;return ye&&typeof ye=="object"&&r.call(ye,"__await")?Y.resolve(ye.__await).then(function(z){K("next",z,me,re)},function(z){K("throw",z,me,re)}):Y.resolve(ye).then(function(z){Ce.value=z,me(Ce)},function(z){return K("throw",z,me,re)})}re(le.arg)}var ee;s(this,"_invoke",{value:function(B,Ee){function me(){return new Y(function(re,le){K(B,Ee,re,le)})}return ee=ee?ee.then(me,me):me()}})}function D(U,Y,K){var ee=h;return function(B,Ee){if(ee===v)throw new Error("Generator is already running");if(ee===y){if(B==="throw")throw Ee;return{value:e,done:!0}}for(K.method=B,K.arg=Ee;;){var me=K.delegate;if(me){var re=k(me,K);if(re){if(re===_)continue;return re}}if(K.method==="next")K.sent=K._sent=K.arg;else if(K.method==="throw"){if(ee===h)throw ee=y,K.arg;K.dispatchException(K.arg)}else K.method==="return"&&K.abrupt("return",K.arg);ee=v;var le=f(U,Y,K);if(le.type==="normal"){if(ee=K.done?y:g,le.arg===_)continue;return{value:le.arg,done:K.done}}le.type==="throw"&&(ee=y,K.method="throw",K.arg=le.arg)}}}function k(U,Y){var K=Y.method,ee=U.iterator[K];if(ee===e)return Y.delegate=null,K==="throw"&&U.iterator.return&&(Y.method="return",Y.arg=e,k(U,Y),Y.method==="throw")||K!=="return"&&(Y.method="throw",Y.arg=new TypeError("The iterator does not provide a '"+K+"' method")),_;var B=f(ee,U.iterator,Y.arg);if(B.type==="throw")return Y.method="throw",Y.arg=B.arg,Y.delegate=null,_;var Ee=B.arg;return Ee?Ee.done?(Y[U.resultName]=Ee.value,Y.next=U.nextLoc,Y.method!=="return"&&(Y.method="next",Y.arg=e),Y.delegate=null,_):Ee:(Y.method="throw",Y.arg=new TypeError("iterator result is not an object"),Y.delegate=null,_)}function q(U){var Y={tryLoc:U[0]};1 in U&&(Y.catchLoc=U[1]),2 in U&&(Y.finallyLoc=U[2],Y.afterLoc=U[3]),this.tryEntries.push(Y)}function H(U){var Y=U.completion||{};Y.type="normal",delete Y.arg,U.completion=Y}function oe(U){this.tryEntries=[{tryLoc:"root"}],U.forEach(q,this),this.reset(!0)}function ce(U){if(U||U===""){var Y=U[a];if(Y)return Y.call(U);if(typeof U.next=="function")return U;if(!isNaN(U.length)){var K=-1,ee=function B(){for(;++K<U.length;)if(r.call(U,K))return B.value=U[K],B.done=!1,B;return B.value=e,B.done=!0,B};return ee.next=ee}}throw new TypeError(typeof U+" is not iterable")}return A.prototype=C,s(N,"constructor",{value:C,configurable:!0}),s(C,"constructor",{value:A,configurable:!0}),A.displayName=u(C,c,"GeneratorFunction"),t.isGeneratorFunction=function(U){var Y=typeof U=="function"&&U.constructor;return!!Y&&(Y===A||(Y.displayName||Y.name)==="GeneratorFunction")},t.mark=function(U){return Object.setPrototypeOf?Object.setPrototypeOf(U,C):(U.__proto__=C,u(U,c,"GeneratorFunction")),U.prototype=Object.create(N),U},t.awrap=function(U){return{__await:U}},I(F.prototype),u(F.prototype,l,function(){return this}),t.AsyncIterator=F,t.async=function(U,Y,K,ee,B){B===void 0&&(B=Promise);var Ee=new F(d(U,Y,K,ee),B);return t.isGeneratorFunction(Y)?Ee:Ee.next().then(function(me){return me.done?me.value:Ee.next()})},I(N),u(N,c,"Generator"),u(N,a,function(){return this}),u(N,"toString",function(){return"[object Generator]"}),t.keys=function(U){var Y=Object(U),K=[];for(var ee in Y)K.push(ee);return K.reverse(),function B(){for(;K.length;){var Ee=K.pop();if(Ee in Y)return B.value=Ee,B.done=!1,B}return B.done=!0,B}},t.values=ce,oe.prototype={constructor:oe,reset:function(U){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(H),!U)for(var Y in this)Y.charAt(0)==="t"&&r.call(this,Y)&&!isNaN(+Y.slice(1))&&(this[Y]=e)},stop:function(){this.done=!0;var U=this.tryEntries[0].completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(U){if(this.done)throw U;var Y=this;function K(le,Ce){return Ee.type="throw",Ee.arg=U,Y.next=le,Ce&&(Y.method="next",Y.arg=e),!!Ce}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var B=this.tryEntries[ee],Ee=B.completion;if(B.tryLoc==="root")return K("end");if(B.tryLoc<=this.prev){var me=r.call(B,"catchLoc"),re=r.call(B,"finallyLoc");if(me&&re){if(this.prev<B.catchLoc)return K(B.catchLoc,!0);if(this.prev<B.finallyLoc)return K(B.finallyLoc)}else if(me){if(this.prev<B.catchLoc)return K(B.catchLoc,!0)}else{if(!re)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return K(B.finallyLoc)}}}},abrupt:function(U,Y){for(var K=this.tryEntries.length-1;K>=0;--K){var ee=this.tryEntries[K];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var B=ee;break}}B&&(U==="break"||U==="continue")&&B.tryLoc<=Y&&Y<=B.finallyLoc&&(B=null);var Ee=B?B.completion:{};return Ee.type=U,Ee.arg=Y,B?(this.method="next",this.next=B.finallyLoc,_):this.complete(Ee)},complete:function(U,Y){if(U.type==="throw")throw U.arg;return U.type==="break"||U.type==="continue"?this.next=U.arg:U.type==="return"?(this.rval=this.arg=U.arg,this.method="return",this.next="end"):U.type==="normal"&&Y&&(this.next=Y),_},finish:function(U){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var K=this.tryEntries[Y];if(K.finallyLoc===U)return this.complete(K.completion,K.afterLoc),H(K),_}},catch:function(U){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var K=this.tryEntries[Y];if(K.tryLoc===U){var ee=K.completion;if(ee.type==="throw"){var B=ee.arg;H(K)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(U,Y,K){return this.delegate={iterator:ce(U),resultName:Y,nextLoc:K},this.method==="next"&&(this.arg=e),_}},t}function X4(e){var t=function(n,r){if(typeof n!="object"||!n)return n;var s=n[Symbol.toPrimitive];if(s!==void 0){var o=s.call(n,r||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return typeof t=="symbol"?t:String(t)}function Z4(e,t,n,r,s,o,a){try{var l=e[o](a),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,s)}function hu(e){return function(){var t=this,n=arguments;return new Promise(function(r,s){var o=e.apply(t,n);function a(c){Z4(o,r,s,a,l,"next",c)}function l(c){Z4(o,r,s,a,l,"throw",c)}a(void 0)})}}function gh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q4(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,X4(r.key),r)}}function mh(e,t,n){return t&&Q4(e.prototype,t),n&&Q4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ws(e,t,n){return(t=X4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vh(e){return vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vh(e)}function Bv(e,t){return Bv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bv(e,t)}function pu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e5(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pu(e)}function aQ(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var o,a,l,c,u=[],d=!0,f=!1;try{if(l=(s=s.call(n)).next,r===0){if(Object(s)!==s)return;d=!1}else for(;!(d=(o=l.call(s)).done)&&(u.push(o.value),u.length!==r);d=!0);}catch(h){f=!0,a=h}finally{try{if(!d&&s.return!=null&&(c=s.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}(e,t)||t5(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
149
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function t5(e,t){if(e){if(typeof e=="string")return n5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?n5(e,t):void 0}}function n5(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 jv(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=t5(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,s=function(){};return{s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
150
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(l)throw o}}}}function bh(e,t,n){return r5(e,t),s5(n,"get"),function(r,s){return s.get?s.get.call(r):s.value}(e,n)}function i5(e,t,n,r){return r5(e,t),s5(n,"set"),function(s,o,a){if(o.set)o.set.call(s,a);else{if(!o.writable)throw new TypeError("attempted to set read only private field");o.value=a}}(e,n,r),r}function r5(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}function s5(e,t){if(e===void 0)throw new TypeError("attempted to "+t+" private static field before its declaration")}function lQ(e){var t=function(n,r){if(typeof n!="object"||!n)return n;var s=n[Symbol.toPrimitive];if(s!==void 0){var o=s.call(n,"string");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(e);return typeof t=="symbol"?t:String(t)}function cQ(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,lQ(r.key),r)}}function uQ(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var o,a,l,c,u=[],d=!0,f=!1;try{if(l=(s=s.call(n)).next,r===0){if(Object(s)!==s)return;d=!1}else for(;!(d=(o=l.call(s)).done)&&(u.push(o.value),u.length!==r);d=!0);}catch(h){f=!0,a=h}finally{try{if(!d&&s.return!=null&&(c=s.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}(e,t)||function(n,r){if(n){if(typeof n=="string")return o5(n,r);var s=Object.prototype.toString.call(n).slice(8,-1);return s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set"?Array.from(n):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?o5(n,r):void 0}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
151
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function o5(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}var gu=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},en=function(e){try{return!!e()}catch(t){return!0}},Tn=!en(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),yh=!en(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),a5=yh,l5=Function.prototype,Uv=l5.call,dQ=a5&&l5.bind.bind(Uv,Uv),Yt=a5?dQ:function(e){return function(){return Uv.apply(e,arguments)}},mu=function(e){return e==null},fQ=mu,hQ=TypeError,_h=function(e){if(fQ(e))throw new hQ("Can't call method on "+e);return e},pQ=_h,gQ=Object,aa=function(e){return gQ(pQ(e))},mQ=aa,vQ=Yt({}.hasOwnProperty),mi=Object.hasOwn||function(e,t){return vQ(mQ(e),t)},$v=Tn,bQ=mi,c5=Function.prototype,yQ=$v&&Object.getOwnPropertyDescriptor,Vv=bQ(c5,"name"),vu={EXISTS:Vv,PROPER:Vv&&function(){}.name==="something",CONFIGURABLE:Vv&&(!$v||$v&&yQ(c5,"name").configurable)},u5={exports:{}},zv=typeof document=="object"&&document.all,on=zv===void 0&&zv!==void 0?function(e){return typeof e=="function"||e===zv}:function(e){return typeof e=="function"},bu=function(e){return e&&e.Math===Math&&e},tn=bu(typeof globalThis=="object"&&globalThis)||bu(typeof window=="object"&&window)||bu(typeof self=="object"&&self)||bu(typeof gu=="object"&&gu)||bu(typeof gu=="object"&&gu)||function(){return this}()||Function("return this")(),d5=tn,_Q=Object.defineProperty,qv=function(e,t){try{_Q(d5,e,{value:t,configurable:!0,writable:!0})}catch(n){d5[e]=t}return t},wQ=qv,f5="__core-js_shared__",Hv=tn[f5]||wQ(f5,{}),CQ=on,Gv=Hv,SQ=Yt(Function.toString);CQ(Gv.inspectSource)||(Gv.inspectSource=function(e){return SQ(e)});var so,wh,Wv=Gv.inspectSource,EQ=on,h5=tn.WeakMap,xQ=EQ(h5)&&/native code/.test(String(h5)),AQ=on,Li=function(e){return typeof e=="object"?e!==null:AQ(e)},Fr={},p5=Li,Kv=tn.document,PQ=p5(Kv)&&p5(Kv.createElement),Ch=function(e){return PQ?Kv.createElement(e):{}},TQ=Ch,g5=!Tn&&!en(function(){return Object.defineProperty(TQ("div"),"a",{get:function(){return 7}}).a!==7}),m5=Tn&&en(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),OQ=Li,NQ=String,IQ=TypeError,jn=function(e){if(OQ(e))return e;throw new IQ(NQ(e)+" is not an object")},RQ=yh,Sh=Function.prototype.call,On=RQ?Sh.bind(Sh):function(){return Sh.apply(Sh,arguments)},Jv=tn,DQ=on,la=function(e,t){return arguments.length<2?(n=Jv[e],DQ(n)?n:void 0):Jv[e]&&Jv[e][t];var n},Eh=Yt({}.isPrototypeOf),xh=typeof navigator!="undefined"&&String(navigator.userAgent)||"",v5=tn,Yv=xh,b5=v5.process,y5=v5.Deno,_5=b5&&b5.versions||y5&&y5.version,w5=_5&&_5.v8;w5&&(wh=(so=w5.split("."))[0]>0&&so[0]<4?1:+(so[0]+so[1])),!wh&&Yv&&(!(so=Yv.match(/Edge\/(\d+)/))||so[1]>=74)&&(so=Yv.match(/Chrome\/(\d+)/))&&(wh=+so[1]);var Ah=wh,C5=Ah,LQ=en,kQ=tn.String,S5=!!Object.getOwnPropertySymbols&&!LQ(function(){var e=Symbol("symbol detection");return!kQ(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&C5&&C5<41}),E5=S5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",MQ=la,FQ=on,BQ=Eh,jQ=Object,x5=E5?function(e){return typeof e=="symbol"}:function(e){var t=MQ("Symbol");return FQ(t)&&BQ(t.prototype,jQ(e))},UQ=String,Ph=function(e){try{return UQ(e)}catch(t){return"Object"}},$Q=on,VQ=Ph,zQ=TypeError,oo=function(e){if($Q(e))return e;throw new zQ(VQ(e)+" is not a function")},qQ=oo,HQ=mu,Th=function(e,t){var n=e[t];return HQ(n)?void 0:qQ(n)},Xv=On,Zv=on,Qv=Li,GQ=TypeError,A5={exports:{}},P5=Hv;(A5.exports=function(e,t){return P5[e]||(P5[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.35.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"});var e1=A5.exports,WQ=Yt,KQ=0,JQ=Math.random(),YQ=WQ(1 .toString),T5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+YQ(++KQ+JQ,36)},XQ=e1,O5=mi,ZQ=T5,QQ=S5,eee=E5,pl=tn.Symbol,t1=XQ("wks"),tee=eee?pl.for||pl:pl&&pl.withoutSetter||ZQ,fn=function(e){return O5(t1,e)||(t1[e]=QQ&&O5(pl,e)?pl[e]:tee("Symbol."+e)),t1[e]},nee=On,N5=Li,I5=x5,iee=Th,ree=TypeError,see=fn("toPrimitive"),oee=function(e,t){if(!N5(e)||I5(e))return e;var n,r=iee(e,see);if(r){if(t===void 0&&(t="default"),n=nee(r,e,t),!N5(n)||I5(n))return n;throw new ree("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(s,o){var a,l;if(o==="string"&&Zv(a=s.toString)&&!Qv(l=Xv(a,s))||Zv(a=s.valueOf)&&!Qv(l=Xv(a,s))||o!=="string"&&Zv(a=s.toString)&&!Qv(l=Xv(a,s)))return l;throw new GQ("Can't convert object to primitive value")}(e,t)},aee=x5,n1=function(e){var t=oee(e,"string");return aee(t)?t:t+""},lee=Tn,cee=g5,uee=m5,Oh=jn,R5=n1,dee=TypeError,i1=Object.defineProperty,fee=Object.getOwnPropertyDescriptor,r1="enumerable",s1="configurable",o1="writable";Fr.f=lee?uee?function(e,t,n){if(Oh(e),t=R5(t),Oh(n),typeof e=="function"&&t==="prototype"&&"value"in n&&o1 in n&&!n[o1]){var r=fee(e,t);r&&r[o1]&&(e[t]=n.value,n={configurable:s1 in n?n[s1]:r[s1],enumerable:r1 in n?n[r1]:r[r1],writable:!1})}return i1(e,t,n)}:i1:function(e,t,n){if(Oh(e),t=R5(t),Oh(n),cee)try{return i1(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new dee("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Nh,yu,Ih,_u=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hee=Fr,pee=_u,wu=Tn?function(e,t,n){return hee.f(e,t,pee(1,n))}:function(e,t,n){return e[t]=n,e},gee=T5,D5=e1("keys"),a1=function(e){return D5[e]||(D5[e]=gee(e))},l1={},mee=xQ,L5=tn,vee=Li,bee=wu,c1=mi,u1=Hv,yee=a1,_ee=l1,k5="Object already initialized",d1=L5.TypeError,wee=L5.WeakMap;if(mee||u1.state){var Br=u1.state||(u1.state=new wee);Br.get=Br.get,Br.has=Br.has,Br.set=Br.set,Nh=function(e,t){if(Br.has(e))throw new d1(k5);return t.facade=e,Br.set(e,t),t},yu=function(e){return Br.get(e)||{}},Ih=function(e){return Br.has(e)}}else{var gl=yee("state");_ee[gl]=!0,Nh=function(e,t){if(c1(e,gl))throw new d1(k5);return t.facade=e,bee(e,gl,t),t},yu=function(e){return c1(e,gl)?e[gl]:{}},Ih=function(e){return c1(e,gl)}}var ao={set:Nh,get:yu,has:Ih,enforce:function(e){return Ih(e)?yu(e):Nh(e,{})},getterFor:function(e){return function(t){var n;if(!vee(t)||(n=yu(t)).type!==e)throw new d1("Incompatible receiver, "+e+" required");return n}}},f1=Yt,Cee=en,See=on,Rh=mi,h1=Tn,Eee=vu.CONFIGURABLE,xee=Wv,Aee=ao.enforce,Pee=ao.get,M5=String,Dh=Object.defineProperty,Tee=f1("".slice),Oee=f1("".replace),Nee=f1([].join),Iee=h1&&!Cee(function(){return Dh(function(){},"length",{value:8}).length!==8}),Ree=String(String).split("String"),Dee=u5.exports=function(e,t,n){Tee(M5(t),0,7)==="Symbol("&&(t="["+Oee(M5(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Rh(e,"name")||Eee&&e.name!==t)&&(h1?Dh(e,"name",{value:t,configurable:!0}):e.name=t),Iee&&n&&Rh(n,"arity")&&e.length!==n.arity&&Dh(e,"length",{value:n.arity});try{n&&Rh(n,"constructor")&&n.constructor?h1&&Dh(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(s){}var r=Aee(e);return Rh(r,"source")||(r.source=Nee(Ree,typeof t=="string"?t:"")),e};Function.prototype.toString=Dee(function(){return See(this)&&Pee(this).source||xee(this)},"toString");var F5=u5.exports,B5=F5,Lee=Fr,Lh=function(e,t,n){return n.get&&B5(n.get,t,{getter:!0}),n.set&&B5(n.set,t,{setter:!0}),Lee.f(e,t,n)},kee=Tn,Mee=vu.EXISTS,j5=Yt,Fee=Lh,U5=Function.prototype,Bee=j5(U5.toString),$5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,jee=j5($5.exec);kee&&!Mee&&Fee(U5,"name",{configurable:!0,get:function(){try{return jee($5,Bee(this))[1]}catch(e){return""}}});var p1={},kh={},V5={}.propertyIsEnumerable,z5=Object.getOwnPropertyDescriptor,Uee=z5&&!V5.call({1:2},1);kh.f=Uee?function(e){var t=z5(this,e);return!!t&&t.enumerable}:V5;var q5=Yt,$ee=q5({}.toString),Vee=q5("".slice),ml=function(e){return Vee($ee(e),8,-1)},zee=en,qee=ml,g1=Object,Hee=Yt("".split),m1=zee(function(){return!g1("z").propertyIsEnumerable(0)})?function(e){return qee(e)==="String"?Hee(e,""):g1(e)}:g1,Gee=m1,Wee=_h,vl=function(e){return Gee(Wee(e))},Kee=Tn,Jee=On,Yee=kh,Xee=_u,Zee=vl,Qee=n1,ete=mi,tte=g5,H5=Object.getOwnPropertyDescriptor;p1.f=Kee?H5:function(e,t){if(e=Zee(e),t=Qee(t),tte)try{return H5(e,t)}catch(n){}if(ete(e,t))return Xee(!Jee(Yee.f,e,t),e[t])};var nte=on,ite=Fr,rte=F5,ste=qv,cr=function(e,t,n,r){r||(r={});var s=r.enumerable,o=r.name!==void 0?r.name:t;if(nte(n)&&rte(n,o,r),r.global)s?e[t]=n:ste(t,n);else{try{r.unsafe?e[t]&&(s=!0):delete e[t]}catch(a){}s?e[t]=n:ite.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},G5={},ote=Math.ceil,ate=Math.floor,lte=Math.trunc||function(e){var t=+e;return(t>0?ate:ote)(t)},Mh=function(e){var t=+e;return t!=t||t===0?0:lte(t)},cte=Mh,ute=Math.max,dte=Math.min,fte=Mh,hte=Math.min,W5=function(e){return e>0?hte(fte(e),9007199254740991):0},pte=W5,Cu=function(e){return pte(e.length)},gte=vl,mte=Cu,K5=function(e){return function(t,n,r){var s,o=gte(t),a=mte(o),l=function(c,u){var d=cte(c);return d<0?ute(d+u,0):dte(d,u)}(r,a);if(e&&n!=n){for(;a>l;)if((s=o[l++])!=s)return!0}else for(;a>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},vte={includes:K5(!0),indexOf:K5(!1)},v1=mi,bte=vl,yte=vte.indexOf,_te=l1,J5=Yt([].push),Y5=function(e,t){var n,r=bte(e),s=0,o=[];for(n in r)!v1(_te,n)&&v1(r,n)&&J5(o,n);for(;t.length>s;)v1(r,n=t[s++])&&(~yte(o,n)||J5(o,n));return o},b1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wte=Y5,Cte=b1.concat("length","prototype");G5.f=Object.getOwnPropertyNames||function(e){return wte(e,Cte)};var y1={};y1.f=Object.getOwnPropertySymbols;var Ste=la,Ete=G5,xte=y1,Ate=jn,Pte=Yt([].concat),Tte=Ste("Reflect","ownKeys")||function(e){var t=Ete.f(Ate(e)),n=xte.f;return n?Pte(t,n(e)):t},X5=mi,Ote=Tte,Nte=p1,Ite=Fr,Rte=en,Dte=on,Lte=/#|\.prototype\./,Su=function(e,t){var n=Mte[kte(e)];return n===Bte||n!==Fte&&(Dte(t)?Rte(t):!!t)},kte=Su.normalize=function(e){return String(e).replace(Lte,".").toLowerCase()},Mte=Su.data={},Fte=Su.NATIVE="N",Bte=Su.POLYFILL="P",Z5=Su,_1=tn,jte=p1.f,Ute=wu,$te=cr,Vte=qv,zte=function(e,t,n){for(var r=Ote(t),s=Ite.f,o=Nte.f,a=0;a<r.length;a++){var l=r[a];X5(e,l)||n&&X5(n,l)||s(e,l,o(t,l))}},qte=Z5,vi=function(e,t){var n,r,s,o,a,l=e.target,c=e.global,u=e.stat;if(n=c?_1:u?_1[l]||Vte(l,{}):(_1[l]||{}).prototype)for(r in t){if(o=t[r],s=e.dontCallGetSet?(a=jte(n,r))&&a.value:n[r],!qte(c?r:l+(u?".":"#")+r,e.forced)&&s!==void 0){if(typeof o==typeof s)continue;zte(o,s)}(e.sham||s&&s.sham)&&Ute(o,"sham",!0),$te(n,r,o,e)}},Q5={};Q5[fn("toStringTag")]="z";var w1=String(Q5)==="[object z]",Hte=w1,Gte=on,Fh=ml,Wte=fn("toStringTag"),Kte=Object,Jte=Fh(function(){return arguments}())==="Arguments",Eu=Hte?Fh:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(s,o){try{return s[o]}catch(a){}}(t=Kte(e),Wte))=="string"?n:Jte?Fh(t):(r=Fh(t))==="Object"&&Gte(t.callee)?"Arguments":r},Yte=Eu,Xte=String,ca=function(e){if(Yte(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Xte(e)},Zte=jn,eE=function(){var e=Zte(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},C1=en,S1=tn.RegExp,E1=C1(function(){var e=S1("a","y");return e.lastIndex=2,e.exec("abcd")!==null}),Qte=E1||C1(function(){return!S1("a","y").sticky}),ene={BROKEN_CARET:E1||C1(function(){var e=S1("^r","gy");return e.lastIndex=2,e.exec("str")!==null}),MISSED_STICKY:Qte,UNSUPPORTED_Y:E1},tE={},tne=Y5,nne=b1,x1=Object.keys||function(e){return tne(e,nne)},ine=Tn,rne=m5,sne=Fr,one=jn,ane=vl,lne=x1;tE.f=ine&&!rne?Object.defineProperties:function(e,t){one(e);for(var n,r=ane(t),s=lne(t),o=s.length,a=0;o>a;)sne.f(e,n=s[a++],r[n]);return e};var Bh,nE=la("document","documentElement"),cne=jn,une=tE,iE=b1,dne=l1,fne=nE,hne=Ch,A1="prototype",P1="script",rE=a1("IE_PROTO"),T1=function(){},sE=function(e){return"<"+P1+">"+e+"</"+P1+">"},oE=function(e){e.write(sE("")),e.close();var t=e.parentWindow.Object;return e=null,t},jh=function(){try{Bh=new ActiveXObject("htmlfile")}catch(s){}var e,t,n;jh=typeof document!="undefined"?document.domain&&Bh?oE(Bh):(t=hne("iframe"),n="java"+P1+":",t.style.display="none",fne.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(sE("document.F=Object")),e.close(),e.F):oE(Bh);for(var r=iE.length;r--;)delete jh[A1][iE[r]];return jh()};dne[rE]=!0;var aE,O1,Uh=Object.create||function(e,t){var n;return e!==null?(T1[A1]=cne(e),n=new T1,T1[A1]=null,n[rE]=e):n=jh(),t===void 0?n:une.f(n,t)},pne=en,gne=tn.RegExp,mne=pne(function(){var e=gne(".","s");return!(e.dotAll&&e.test(`
|
|
152
|
-
`)&&e.flags==="s")}),vne=en,bne=tn.RegExp,yne=vne(function(){var e=bne("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),bl=On,$h=Yt,_ne=ca,wne=eE,Cne=ene,Sne=Uh,Ene=ao.get,xne=mne,Ane=yne,Pne=e1("native-string-replace",String.prototype.replace),Vh=RegExp.prototype.exec,N1=Vh,Tne=$h("".charAt),One=$h("".indexOf),Nne=$h("".replace),I1=$h("".slice),R1=(O1=/b*/g,bl(Vh,aE=/a/,"a"),bl(Vh,O1,"a"),aE.lastIndex!==0||O1.lastIndex!==0),lE=Cne.BROKEN_CARET,D1=/()??/.exec("")[1]!==void 0;(R1||D1||lE||xne||Ane)&&(N1=function(e){var t,n,r,s,o,a,l,c=this,u=Ene(c),d=_ne(e),f=u.raw;if(f)return f.lastIndex=c.lastIndex,t=bl(N1,f,d),c.lastIndex=f.lastIndex,t;var h=u.groups,g=lE&&c.sticky,v=bl(wne,c),y=c.source,_=0,w=d;if(g&&(v=Nne(v,"y",""),One(v,"g")===-1&&(v+="g"),w=I1(d,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Tne(d,c.lastIndex-1)!==`
|
|
153
|
-
`)&&(y="(?: "+y+")",w=" "+w,_++),n=new RegExp("^(?:"+y+")",v)),D1&&(n=new RegExp("^"+y+"$(?!\\s)",v)),R1&&(r=c.lastIndex),s=bl(Vh,g?n:c,w),g?s?(s.input=I1(s.input,_),s[0]=I1(s[0],_),s.index=c.lastIndex,c.lastIndex+=s[0].length):c.lastIndex=0:R1&&s&&(c.lastIndex=c.global?s.index+s[0].length:r),D1&&s&&s.length>1&&bl(Pne,s[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(s[o]=void 0)}),s&&h)for(s.groups=a=Sne(null),o=0;o<h.length;o++)a[(l=h[o])[0]]=s[l[1]];return s});var zh=N1;vi({target:"RegExp",proto:!0,forced:/./.exec!==zh},{exec:zh});var Ine=yh,cE=Function.prototype,uE=cE.apply,dE=cE.call,fE=typeof Reflect=="object"&&Reflect.apply||(Ine?dE.bind(uE):function(){return dE.apply(uE,arguments)}),Rne=ml,Dne=Yt,L1=function(e){if(Rne(e)==="Function")return Dne(e)},hE=L1,pE=cr,Lne=zh,gE=en,mE=fn,kne=wu,Mne=mE("species"),k1=RegExp.prototype,M1=Yt,Fne=Mh,Bne=ca,jne=_h,Une=M1("".charAt),vE=M1("".charCodeAt),$ne=M1("".slice),bE=function(e){return function(t,n){var r,s,o=Bne(jne(t)),a=Fne(n),l=o.length;return a<0||a>=l?e?"":void 0:(r=vE(o,a))<55296||r>56319||a+1===l||(s=vE(o,a+1))<56320||s>57343?e?Une(o,a):r:e?$ne(o,a,a+2):s-56320+(r-55296<<10)+65536}},F1={codeAt:bE(!1),charAt:bE(!0)},Vne=F1.charAt,B1=Yt,zne=aa,qne=Math.floor,j1=B1("".charAt),Hne=B1("".replace),U1=B1("".slice),Gne=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Wne=/\$([$&'`]|\d{1,2})/g,yE=On,Kne=jn,Jne=on,Yne=ml,Xne=zh,Zne=TypeError,Qne=fE,_E=On,qh=Yt,eie=en,tie=jn,nie=on,iie=mu,rie=Mh,sie=W5,yl=ca,oie=_h,aie=function(e,t,n){return t+(n?Vne(e,t).length:1)},lie=Th,cie=function(e,t,n,r,s,o){var a=n+e.length,l=r.length,c=Wne;return s!==void 0&&(s=zne(s),c=Gne),Hne(o,c,function(u,d){var f;switch(j1(d,0)){case"$":return"$";case"&":return e;case"`":return U1(t,0,n);case"'":return U1(t,a);case"<":f=s[U1(d,1,-1)];break;default:var h=+d;if(h===0)return u;if(h>l){var g=qne(h/10);return g===0?u:g<=l?r[g-1]===void 0?j1(d,1):r[g-1]+j1(d,1):u}f=r[h-1]}return f===void 0?"":f})},uie=function(e,t){var n=e.exec;if(Jne(n)){var r=yE(n,e,t);return r!==null&&Kne(r),r}if(Yne(e)==="RegExp")return yE(Xne,e,t);throw new Zne("RegExp#exec called on incompatible receiver")},$1=fn("replace"),die=Math.max,fie=Math.min,hie=qh([].concat),V1=qh([].push),wE=qh("".indexOf),CE=qh("".slice),pie="a".replace(/./,"$0")==="$0",SE=!!/./[$1]&&/./[$1]("a","$0")==="";(function(e,t,n,r){var s=mE(e),o=!gE(function(){var u={};return u[s]=function(){return 7},""[e](u)!==7}),a=o&&!gE(function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[Mne]=function(){return d},d.flags="",d[s]=/./[s]),d.exec=function(){return u=!0,null},d[s](""),!u});if(!o||!a||n){var l=hE(/./[s]),c=t(s,""[e],function(u,d,f,h,g){var v=hE(u),y=d.exec;return y===Lne||y===k1.exec?o&&!g?{done:!0,value:l(d,f,h)}:{done:!0,value:v(f,d,h)}:{done:!1}});pE(String.prototype,e,c[0]),pE(k1,s,c[1])}r&&kne(k1[s],"sham",!0)})("replace",function(e,t,n){var r=SE?"$":"$0";return[function(s,o){var a=oie(this),l=iie(s)?void 0:lie(s,$1);return l?_E(l,s,a,o):_E(t,yl(a),s,o)},function(s,o){var a=tie(this),l=yl(s);if(typeof o=="string"&&wE(o,r)===-1&&wE(o,"$<")===-1){var c=n(t,a,l,o);if(c.done)return c.value}var u=nie(o);u||(o=yl(o));var d,f=a.global;f&&(d=a.unicode,a.lastIndex=0);for(var h,g=[];(h=uie(a,l))!==null&&(V1(g,h),f);)yl(h[0])===""&&(a.lastIndex=aie(l,sie(a.lastIndex),d));for(var v,y="",_=0,w=0;w<g.length;w++){for(var A,C=yl((h=g[w])[0]),S=die(fie(rie(h.index),l.length),0),x=[],O=1;O<h.length;O++)V1(x,(v=h[O])===void 0?v:String(v));var N=h.groups;if(u){var I=hie([C],x,S,l);N!==void 0&&V1(I,N),A=yl(Qne(o,void 0,I))}else A=cie(C,l,S,x,N,o);S>=_&&(y+=CE(l,_,S)+A,_=S+C.length)}return y+CE(l,_)}]},!!eie(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!pie||SE);var gie=fn,mie=Uh,vie=Fr.f,z1=gie("unscopables"),q1=Array.prototype;q1[z1]===void 0&&vie(q1,z1,{configurable:!0,value:mie(null)});var ua,EE,xE,xu={},bie=!en(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),yie=mi,_ie=on,wie=aa,Cie=bie,AE=a1("IE_PROTO"),H1=Object,Sie=H1.prototype,G1=Cie?H1.getPrototypeOf:function(e){var t=wie(e);if(yie(t,AE))return t[AE];var n=t.constructor;return _ie(n)&&t instanceof n?n.prototype:t instanceof H1?Sie:null},Eie=en,xie=on,Aie=Li,PE=G1,Pie=cr,W1=fn("iterator"),TE=!1;[].keys&&("next"in(xE=[].keys())?(EE=PE(PE(xE)))!==Object.prototype&&(ua=EE):TE=!0);var Tie=!Aie(ua)||Eie(function(){var e={};return ua[W1].call(e)!==e});Tie&&(ua={}),xie(ua[W1])||Pie(ua,W1,function(){return this});var K1={IteratorPrototype:ua,BUGGY_SAFARI_ITERATORS:TE},Oie=Fr.f,Nie=mi,OE=fn("toStringTag"),_l=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Nie(e,OE)&&Oie(e,OE,{configurable:!0,value:t})},Iie=K1.IteratorPrototype,Rie=Uh,Die=_u,Lie=_l,kie=xu,Mie=function(){return this},NE=function(e,t,n,r){var s=t+" Iterator";return e.prototype=Rie(Iie,{next:Die(+!r,n)}),Lie(e,s,!1),kie[s]=Mie,e},Fie=Yt,Bie=oo,jie=Li,Uie=String,$ie=TypeError,Vie=jn,zie=function(e){if(function(t){return jie(t)||t===null}(e))return e;throw new $ie("Can't set "+Uie(e)+" as a prototype")},IE=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(r,s,o){try{return Fie(Bie(Object.getOwnPropertyDescriptor(r,s)[o]))}catch(a){}}(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(r){}return function(r,s){return Vie(r),zie(s),t?e(r,s):r.__proto__=s,r}}():void 0),qie=vi,Hie=On,Gie=on,Wie=NE,RE=G1,DE=IE,Kie=_l,Jie=wu,J1=cr,Yie=xu,Xie=vu.PROPER,Zie=vu.CONFIGURABLE,LE=K1.IteratorPrototype,Hh=K1.BUGGY_SAFARI_ITERATORS,Au=fn("iterator"),kE="keys",Pu="values",ME="entries",Qie=function(){return this},FE=function(e,t,n,r,s,o,a){Wie(n,t,r);var l,c,u,d=function(w){if(w===s&&y)return y;if(!Hh&&w&&w in g)return g[w];switch(w){case kE:case Pu:case ME:return function(){return new n(this,w)}}return function(){return new n(this)}},f=t+" Iterator",h=!1,g=e.prototype,v=g[Au]||g["@@iterator"]||s&&g[s],y=!Hh&&v||d(s),_=t==="Array"&&g.entries||v;if(_&&(l=RE(_.call(new e)))!==Object.prototype&&l.next&&(RE(l)!==LE&&(DE?DE(l,LE):Gie(l[Au])||J1(l,Au,Qie)),Kie(l,f,!0)),Xie&&s===Pu&&v&&v.name!==Pu&&(Zie?Jie(g,"name",Pu):(h=!0,y=function(){return Hie(v,this)})),s)if(c={values:d(Pu),keys:o?y:d(kE),entries:d(ME)},a)for(u in c)(Hh||h||!(u in g))&&J1(g,u,c[u]);else qie({target:t,proto:!0,forced:Hh||h},c);return g[Au]!==y&&J1(g,Au,y,{name:s}),Yie[t]=y,c},Y1=function(e,t){return{value:e,done:t}},ere=vl,X1=function(e){q1[z1][e]=!0},BE=xu,jE=ao,tre=Fr.f,nre=FE,Gh=Y1,ire=Tn,UE="Array Iterator",rre=jE.set,sre=jE.getterFor(UE),ore=nre(Array,"Array",function(e,t){rre(this,{type:UE,target:ere(e),index:0,kind:t})},function(){var e=sre(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Gh(void 0,!0);switch(e.kind){case"keys":return Gh(n,!1);case"values":return Gh(t[n],!1)}return Gh([n,t[n]],!1)},"values"),$E=BE.Arguments=BE.Array;if(X1("keys"),X1("values"),X1("entries"),ire&&$E.name!=="values")try{tre($E,"name",{value:"values"})}catch(e){}var are=Eu,lre=w1?{}.toString:function(){return"[object "+are(this)+"]"};w1||cr(Object.prototype,"toString",lre,{unsafe:!0});var cre=F1.charAt,ure=ca,VE=ao,dre=FE,zE=Y1,qE="String Iterator",fre=VE.set,hre=VE.getterFor(qE);dre(String,"String",function(e){fre(this,{type:qE,string:ure(e),index:0})},function(){var e,t=hre(this),n=t.string,r=t.index;return r>=n.length?zE(void 0,!0):(e=cre(n,r),t.index+=e.length,zE(e,!1))});var Z1=Ch("span").classList,HE=Z1&&Z1.constructor&&Z1.constructor.prototype,pre=HE===Object.prototype?void 0:HE,GE=tn,WE={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},gre=pre,Tu=ore,KE=wu,mre=_l,Q1=fn("iterator"),eb=Tu.values,JE=function(e,t){if(e){if(e[Q1]!==eb)try{KE(e,Q1,eb)}catch(r){e[Q1]=eb}if(mre(e,t,!0),WE[t]){for(var n in Tu)if(e[n]!==Tu[n])try{KE(e,n,Tu[n])}catch(r){e[n]=Tu[n]}}}};for(var tb in WE)JE(GE[tb]&&GE[tb].prototype,tb);JE(gre,"DOMTokenList");var vre=en,bre=Tn,yre=fn("iterator"),YE=!vre(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach(function(s,o){t.delete("b"),r+=o+s}),n.delete("a",2),n.delete("b",void 0),!t.size&&!bre||!t.sort||e.href!=="http://a/c%20d?a=1&c=3"||t.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!t[yre]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||r!=="a1c3"||new URL("http://x",void 0).host!=="x"}),_re=oo,wre=yh,Cre=L1(L1.bind),da=function(e,t){return _re(e),t===void 0?e:wre?Cre(e,t):function(){return e.apply(t,arguments)}},Sre=Eh,Ere=TypeError,nb=function(e,t){if(Sre(t,e))return e;throw new Ere("Incorrect invocation")},XE=Tn,xre=Yt,Are=On,Pre=en,ib=x1,Tre=y1,Ore=kh,Nre=aa,Ire=m1,wl=Object.assign,ZE=Object.defineProperty,Rre=xre([].concat),Dre=!wl||Pre(function(){if(XE&&wl({b:1},wl(ZE({},"a",{enumerable:!0,get:function(){ZE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(s){t[s]=s}),wl({},e)[n]!==7||ib(wl({},t)).join("")!==r})?function(e,t){for(var n=Nre(e),r=arguments.length,s=1,o=Tre.f,a=Ore.f;r>s;)for(var l,c=Ire(arguments[s++]),u=o?Rre(ib(c),o(c)):ib(c),d=u.length,f=0;d>f;)l=u[f++],XE&&!Are(a,c,l)||(n[l]=c[l]);return n}:wl,Lre=On,QE=jn,kre=Th,ex=function(e,t,n){var r,s;QE(e);try{if(!(r=kre(e,"return"))){if(t==="throw")throw n;return n}r=Lre(r,e)}catch(o){s=!0,r=o}if(t==="throw")throw n;if(s)throw r;return QE(r),n},Mre=jn,Fre=ex,Bre=xu,jre=fn("iterator"),Ure=Array.prototype,tx=function(e){return e!==void 0&&(Bre.Array===e||Ure[jre]===e)},$re=Yt,Vre=en,nx=on,zre=Eu,qre=Wv,ix=function(){},Hre=[],rx=la("Reflect","construct"),rb=/^\s*(?:class|function)\b/,Gre=$re(rb.exec),Wre=!rb.test(ix),Ou=function(e){if(!nx(e))return!1;try{return rx(ix,Hre,e),!0}catch(t){return!1}},sx=function(e){if(!nx(e))return!1;switch(zre(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Wre||!!Gre(rb,qre(e))}catch(t){return!0}};sx.sham=!0;var sb=!rx||Vre(function(){var e;return Ou(Ou.call)||!Ou(Object)||!Ou(function(){e=!0})||e})?sx:Ou,Kre=n1,Jre=Fr,Yre=_u,ox=function(e,t,n){var r=Kre(t);r in e?Jre.f(e,r,Yre(0,n)):e[r]=n},Xre=Eu,ax=Th,Zre=mu,Qre=xu,ese=fn("iterator"),Wh=function(e){if(!Zre(e))return ax(e,ese)||ax(e,"@@iterator")||Qre[Xre(e)]},tse=On,nse=oo,ise=jn,rse=Ph,sse=Wh,ose=TypeError,ob=function(e,t){var n=arguments.length<2?sse(e):t;if(nse(n))return ise(tse(n,e));throw new ose(rse(e)+" is not iterable")},ase=da,lse=On,cse=aa,use=function(e,t,n,r){try{return r?t(Mre(n)[0],n[1]):t(n)}catch(s){Fre(e,"throw",s)}},dse=tx,fse=sb,hse=Cu,lx=ox,pse=ob,gse=Wh,cx=Array,ab=Yt([].slice),fa=Yt,lb=2147483647,mse=/[^\0-\u007E]/,ux=/[.\u3002\uFF0E\uFF61]/g,dx="Overflow: input needs wider integers to process",fx=RangeError,vse=fa(ux.exec),Cl=Math.floor,cb=String.fromCharCode,hx=fa("".charCodeAt),px=fa([].join),lo=fa([].push),bse=fa("".replace),yse=fa("".split),_se=fa("".toLowerCase),gx=function(e){return e+22+75*(e<26)},wse=function(e,t,n){var r=0;for(e=n?Cl(e/700):e>>1,e+=Cl(e/t);e>455;)e=Cl(e/35),r+=36;return Cl(r+36*e/(e+38))},Cse=function(e){var t=[];e=function(w){for(var A=[],C=0,S=w.length;C<S;){var x=hx(w,C++);if(x>=55296&&x<=56319&&C<S){var O=hx(w,C++);(64512&O)==56320?lo(A,((1023&x)<<10)+(1023&O)+65536):(lo(A,x),C--)}else lo(A,x)}return A}(e);var n,r,s=e.length,o=128,a=0,l=72;for(n=0;n<e.length;n++)(r=e[n])<128&&lo(t,cb(r));var c=t.length,u=c;for(c&&lo(t,"-");u<s;){var d=lb;for(n=0;n<e.length;n++)(r=e[n])>=o&&r<d&&(d=r);var f=u+1;if(d-o>Cl((lb-a)/f))throw new fx(dx);for(a+=(d-o)*f,o=d,n=0;n<e.length;n++){if((r=e[n])<o&&++a>lb)throw new fx(dx);if(r===o){for(var h=a,g=36;;){var v=g<=l?1:g>=l+26?26:g-l;if(h<v)break;var y=h-v,_=36-v;lo(t,cb(gx(v+y%_))),h=Cl(y/_),g+=36}lo(t,cb(gx(h))),l=wse(a,f,u===c),a=0,u++}}a++,o++}return px(t,"")},Sse=TypeError,ub=function(e,t){if(e<t)throw new Sse("Not enough arguments");return e},mx=tn,Ese=Tn,xse=Object.getOwnPropertyDescriptor,vx=function(e){if(!Ese)return mx[e];var t=xse(mx,e);return t&&t.value},Ase=cr,bx=ab,Pse=Math.floor,db=function(e,t){var n=e.length;if(n<8)for(var r,s,o=1;o<n;){for(s=o,r=e[o];s&&t(e[s-1],r)>0;)e[s]=e[--s];s!==o++&&(e[s]=r)}else for(var a=Pse(n/2),l=db(bx(e,0,a),t),c=db(bx(e,a),t),u=l.length,d=c.length,f=0,h=0;f<u||h<d;)e[f+h]=f<u&&h<d?t(l[f],c[h])<=0?l[f++]:c[h++]:f<u?l[f++]:c[h++];return e},fb=vi,Kh=tn,hb=vx,Jh=On,jr=Yt,Nu=Tn,yx=YE,_x=cr,Tse=Lh,Ose=_l,Nse=NE,pb=ao,wx=nb,gb=on,Ise=mi,Rse=da,Dse=Eu,Lse=jn,Cx=Li,Xn=ca,kse=Uh,Sx=_u,Ex=ob,Mse=Wh,Yh=Y1,Sl=ub,Fse=db,Bse=fn("iterator"),El="URLSearchParams",xx=El+"Iterator",Ax=pb.set,ki=pb.getterFor(El),jse=pb.getterFor(xx),Px=hb("fetch"),Xh=hb("Request"),Iu=hb("Headers"),mb=Xh&&Xh.prototype,Tx=Iu&&Iu.prototype,Use=Kh.RegExp,$se=Kh.TypeError,Ox=Kh.decodeURIComponent,Vse=Kh.encodeURIComponent,zse=jr("".charAt),Nx=jr([].join),ha=jr([].push),vb=jr("".replace),qse=jr([].shift),Ix=jr([].splice),Rx=jr("".split),Hse=jr("".slice),Gse=/\+/g,Dx=Array(4),Wse=function(e){return Dx[e-1]||(Dx[e-1]=Use("((?:%[\\da-f]{2}){"+e+"})","gi"))},Kse=function(e){try{return Ox(e)}catch(t){return e}},Lx=function(e){var t=vb(e,Gse," "),n=4;try{return Ox(t)}catch(r){for(;n;)t=vb(t,Wse(n--),Kse);return t}},Jse=/[!'()~]|%20/g,Yse={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Xse=function(e){return Yse[e]},kx=function(e){return vb(Vse(e),Jse,Xse)},bb=Nse(function(e,t){Ax(this,{type:xx,target:ki(e).entries,index:0,kind:t})},El,function(){var e=jse(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Yh(void 0,!0);var r=t[n];switch(e.kind){case"keys":return Yh(r.key,!1);case"values":return Yh(r.value,!1)}return Yh([r.key,r.value],!1)},!0),Mx=function(e){this.entries=[],this.url=null,e!==void 0&&(Cx(e)?this.parseObject(e):this.parseQuery(typeof e=="string"?zse(e,0)==="?"?Hse(e,1):e:Xn(e)))};Mx.prototype={type:El,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,s,o,a,l,c=this.entries,u=Mse(e);if(u)for(n=(t=Ex(e,u)).next;!(r=Jh(n,t)).done;){if(o=(s=Ex(Lse(r.value))).next,(a=Jh(o,s)).done||(l=Jh(o,s)).done||!Jh(o,s).done)throw new $se("Expected sequence with length 2");ha(c,{key:Xn(a.value),value:Xn(l.value)})}else for(var d in e)Ise(e,d)&&ha(c,{key:d,value:Xn(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,s=Rx(e,"&"),o=0;o<s.length;)(t=s[o++]).length&&(n=Rx(t,"="),ha(r,{key:Lx(qse(n)),value:Lx(Nx(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],ha(n,kx(e.key)+"="+kx(e.value));return Nx(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Zh=function(){wx(this,xl);var e=Ax(this,new Mx(arguments.length>0?arguments[0]:void 0));Nu||(this.size=e.entries.length)},xl=Zh.prototype;if(function(e,t,n){for(var r in t)Ase(e,r,t[r],n)}(xl,{append:function(e,t){var n=ki(this);Sl(arguments.length,2),ha(n.entries,{key:Xn(e),value:Xn(t)}),Nu||this.length++,n.updateURL()},delete:function(e){for(var t=ki(this),n=Sl(arguments.length,1),r=t.entries,s=Xn(e),o=n<2?void 0:arguments[1],a=o===void 0?o:Xn(o),l=0;l<r.length;){var c=r[l];if(c.key!==s||a!==void 0&&c.value!==a)l++;else if(Ix(r,l,1),a!==void 0)break}Nu||(this.size=r.length),t.updateURL()},get:function(e){var t=ki(this).entries;Sl(arguments.length,1);for(var n=Xn(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=ki(this).entries;Sl(arguments.length,1);for(var n=Xn(e),r=[],s=0;s<t.length;s++)t[s].key===n&&ha(r,t[s].value);return r},has:function(e){for(var t=ki(this).entries,n=Sl(arguments.length,1),r=Xn(e),s=n<2?void 0:arguments[1],o=s===void 0?s:Xn(s),a=0;a<t.length;){var l=t[a++];if(l.key===r&&(o===void 0||l.value===o))return!0}return!1},set:function(e,t){var n=ki(this);Sl(arguments.length,1);for(var r,s=n.entries,o=!1,a=Xn(e),l=Xn(t),c=0;c<s.length;c++)(r=s[c]).key===a&&(o?Ix(s,c--,1):(o=!0,r.value=l));o||ha(s,{key:a,value:l}),Nu||(this.size=s.length),n.updateURL()},sort:function(){var e=ki(this);Fse(e.entries,function(t,n){return t.key>n.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=ki(this).entries,r=Rse(e,arguments.length>1?arguments[1]:void 0),s=0;s<n.length;)r((t=n[s++]).value,t.key,this)},keys:function(){return new bb(this,"keys")},values:function(){return new bb(this,"values")},entries:function(){return new bb(this,"entries")}},{enumerable:!0}),_x(xl,Bse,xl.entries,{name:"entries"}),_x(xl,"toString",function(){return ki(this).serialize()},{enumerable:!0}),Nu&&Tse(xl,"size",{get:function(){return ki(this).entries.length},configurable:!0,enumerable:!0}),Ose(Zh,El),fb({global:!0,constructor:!0,forced:!yx},{URLSearchParams:Zh}),!yx&&gb(Iu)){var Zse=jr(Tx.has),Qse=jr(Tx.set),Fx=function(e){if(Cx(e)){var t,n=e.body;if(Dse(n)===El)return t=e.headers?new Iu(e.headers):new Iu,Zse(t,"content-type")||Qse(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),kse(e,{body:Sx(0,Xn(n)),headers:Sx(0,t)})}return e};if(gb(Px)&&fb({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Px(e,arguments.length>1?Fx(arguments[1]):{})}}),gb(Xh)){var yb=function(e){return wx(this,mb),new Xh(e,arguments.length>1?Fx(arguments[1]):{})};mb.constructor=yb,yb.prototype=mb,fb({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:yb})}}var Mi,eoe=vi,_b=Tn,toe=YE,wb=tn,Bx=da,Fi=Yt,Qh=cr,Bi=Lh,noe=nb,Cb=mi,Sb=Dre,Al=function(e){var t=cse(e),n=fse(this),r=arguments.length,s=r>1?arguments[1]:void 0,o=s!==void 0;o&&(s=ase(s,r>2?arguments[2]:void 0));var a,l,c,u,d,f,h=gse(t),g=0;if(!h||this===cx&&dse(h))for(a=hse(t),l=n?new this(a):cx(a);a>g;g++)f=o?s(t[g],g):t[g],lx(l,g,f);else for(d=(u=pse(t,h)).next,l=n?new this:[];!(c=lse(d,u)).done;g++)f=o?use(u,s,[c.value,g],!0):c.value,lx(l,g,f);return l.length=g,l},ur=ab,ioe=F1.codeAt,Cs=ca,roe=_l,soe=ub,jx={URLSearchParams:Zh,getState:ki},Ux=ao,ooe=Ux.set,ep=Ux.getterFor("URL"),aoe=jx.URLSearchParams,loe=jx.getState,Ru=wb.URL,Eb=wb.TypeError,tp=wb.parseInt,coe=Math.floor,$x=Math.pow,ji=Fi("".charAt),dr=Fi(/./.exec),Du=Fi([].join),uoe=Fi(1 .toString),doe=Fi([].pop),Pl=Fi([].push),xb=Fi("".replace),foe=Fi([].shift),hoe=Fi("".split),Lu=Fi("".slice),np=Fi("".toLowerCase),poe=Fi([].unshift),Ab="Invalid scheme",pa="Invalid host",Vx="Invalid port",zx=/[a-z]/i,goe=/[\d+-.a-z]/i,Pb=/\d/,moe=/^0x/i,voe=/^[0-7]+$/,boe=/^\d+$/,qx=/^[\da-f]+$/i,yoe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,_oe=/[\0\t\n\r #/:<>?@[\\\]^|]/,woe=/^[\u0000-\u0020]+/,Coe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Soe=/[\t\n\r]/g,ku=function(e){var t,n,r,s;if(typeof e=="number"){for(t=[],n=0;n<4;n++)poe(t,e%256),e=coe(e/256);return Du(t,".")}if(typeof e=="object"){for(t="",r=function(o){for(var a=null,l=1,c=null,u=0,d=0;d<8;d++)o[d]!==0?(u>l&&(a=c,l=u),c=null,u=0):(c===null&&(c=d),++u);return u>l&&(a=c,l=u),a}(e),n=0;n<8;n++)s&&e[n]===0||(s&&(s=!1),r===n?(t+=n?":":"::",s=!0):(t+=uoe(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ip={},Hx=Sb({},ip,{" ":1,'"':1,"<":1,">":1,"`":1}),Gx=Sb({},Hx,{"#":1,"?":1,"{":1,"}":1}),Tb=Sb({},Gx,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),co=function(e,t){var n=ioe(e,0);return n>32&&n<127&&!Cb(t,e)?e:encodeURIComponent(e)},rp={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Mu=function(e,t){var n;return e.length===2&&dr(zx,ji(e,0))&&((n=ji(e,1))===":"||!t&&n==="|")},Wx=function(e){var t;return e.length>1&&Mu(Lu(e,0,2))&&(e.length===2||(t=ji(e,2))==="/"||t==="\\"||t==="?"||t==="#")},Eoe=function(e){return e==="."||np(e)==="%2e"},Ob={},Kx={},Nb={},Jx={},Yx={},Ib={},Xx={},Zx={},sp={},op={},Rb={},Db={},Lb={},kb={},Qx={},Mb={},Tl={},Ur={},e7={},ga={},Ss={},Fb=function(e,t,n){var r,s,o,a=Cs(e);if(t){if(s=this.parse(a))throw new Eb(s);this.searchParams=null}else{if(n!==void 0&&(r=new Fb(n,!0)),s=this.parse(a,null,r))throw new Eb(s);(o=loe(new aoe)).bindURL(this),this.searchParams=o}};Fb.prototype={type:"URL",parse:function(e,t,n){var r,s,o,a,l,c=this,u=t||Ob,d=0,f="",h=!1,g=!1,v=!1;for(e=Cs(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=xb(e,woe,""),e=xb(e,Coe,"$1")),e=xb(e,Soe,""),r=Al(e);d<=r.length;){switch(s=r[d],u){case Ob:if(!s||!dr(zx,s)){if(t)return Ab;u=Nb;continue}f+=np(s),u=Kx;break;case Kx:if(s&&(dr(goe,s)||s==="+"||s==="-"||s==="."))f+=np(s);else{if(s!==":"){if(t)return Ab;f="",u=Nb,d=0;continue}if(t&&(c.isSpecial()!==Cb(rp,f)||f==="file"&&(c.includesCredentials()||c.port!==null)||c.scheme==="file"&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&rp[c.scheme]===c.port&&(c.port=null));f="",c.scheme==="file"?u=kb:c.isSpecial()&&n&&n.scheme===c.scheme?u=Jx:c.isSpecial()?u=Zx:r[d+1]==="/"?(u=Yx,d++):(c.cannotBeABaseURL=!0,Pl(c.path,""),u=e7)}break;case Nb:if(!n||n.cannotBeABaseURL&&s!=="#")return Ab;if(n.cannotBeABaseURL&&s==="#"){c.scheme=n.scheme,c.path=ur(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=Ss;break}u=n.scheme==="file"?kb:Ib;continue;case Jx:if(s!=="/"||r[d+1]!=="/"){u=Ib;continue}u=sp,d++;break;case Yx:if(s==="/"){u=op;break}u=Ur;continue;case Ib:if(c.scheme=n.scheme,s===Mi)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=ur(n.path),c.query=n.query;else if(s==="/"||s==="\\"&&c.isSpecial())u=Xx;else if(s==="?")c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=ur(n.path),c.query="",u=ga;else{if(s!=="#"){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=ur(n.path),c.path.length--,u=Ur;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=ur(n.path),c.query=n.query,c.fragment="",u=Ss}break;case Xx:if(!c.isSpecial()||s!=="/"&&s!=="\\"){if(s!=="/"){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Ur;continue}u=op}else u=sp;break;case Zx:if(u=sp,s!=="/"||ji(f,d+1)!=="/")continue;d++;break;case sp:if(s!=="/"&&s!=="\\"){u=op;continue}break;case op:if(s==="@"){h&&(f="%40"+f),h=!0,o=Al(f);for(var y=0;y<o.length;y++){var _=o[y];if(_!==":"||v){var w=co(_,Tb);v?c.password+=w:c.username+=w}else v=!0}f=""}else if(s===Mi||s==="/"||s==="?"||s==="#"||s==="\\"&&c.isSpecial()){if(h&&f==="")return"Invalid authority";d-=Al(f).length+1,f="",u=Rb}else f+=s;break;case Rb:case Db:if(t&&c.scheme==="file"){u=Mb;continue}if(s!==":"||g){if(s===Mi||s==="/"||s==="?"||s==="#"||s==="\\"&&c.isSpecial()){if(c.isSpecial()&&f==="")return pa;if(t&&f===""&&(c.includesCredentials()||c.port!==null))return;if(a=c.parseHost(f))return a;if(f="",u=Tl,t)return;continue}s==="["?g=!0:s==="]"&&(g=!1),f+=s}else{if(f==="")return pa;if(a=c.parseHost(f))return a;if(f="",u=Lb,t===Db)return}break;case Lb:if(!dr(Pb,s)){if(s===Mi||s==="/"||s==="?"||s==="#"||s==="\\"&&c.isSpecial()||t){if(f!==""){var A=tp(f,10);if(A>65535)return Vx;c.port=c.isSpecial()&&A===rp[c.scheme]?null:A,f=""}if(t)return;u=Tl;continue}return Vx}f+=s;break;case kb:if(c.scheme="file",s==="/"||s==="\\")u=Qx;else{if(!n||n.scheme!=="file"){u=Ur;continue}switch(s){case Mi:c.host=n.host,c.path=ur(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=ur(n.path),c.query="",u=ga;break;case"#":c.host=n.host,c.path=ur(n.path),c.query=n.query,c.fragment="",u=Ss;break;default:Wx(Du(ur(r,d),""))||(c.host=n.host,c.path=ur(n.path),c.shortenPath()),u=Ur;continue}}break;case Qx:if(s==="/"||s==="\\"){u=Mb;break}n&&n.scheme==="file"&&!Wx(Du(ur(r,d),""))&&(Mu(n.path[0],!0)?Pl(c.path,n.path[0]):c.host=n.host),u=Ur;continue;case Mb:if(s===Mi||s==="/"||s==="\\"||s==="?"||s==="#"){if(!t&&Mu(f))u=Ur;else if(f===""){if(c.host="",t)return;u=Tl}else{if(a=c.parseHost(f))return a;if(c.host==="localhost"&&(c.host=""),t)return;f="",u=Tl}continue}f+=s;break;case Tl:if(c.isSpecial()){if(u=Ur,s!=="/"&&s!=="\\")continue}else if(t||s!=="?")if(t||s!=="#"){if(s!==Mi&&(u=Ur,s!=="/"))continue}else c.fragment="",u=Ss;else c.query="",u=ga;break;case Ur:if(s===Mi||s==="/"||s==="\\"&&c.isSpecial()||!t&&(s==="?"||s==="#")){if((l=np(l=f))===".."||l==="%2e."||l===".%2e"||l==="%2e%2e"?(c.shortenPath(),s==="/"||s==="\\"&&c.isSpecial()||Pl(c.path,"")):Eoe(f)?s==="/"||s==="\\"&&c.isSpecial()||Pl(c.path,""):(c.scheme==="file"&&!c.path.length&&Mu(f)&&(c.host&&(c.host=""),f=ji(f,0)+":"),Pl(c.path,f)),f="",c.scheme==="file"&&(s===Mi||s==="?"||s==="#"))for(;c.path.length>1&&c.path[0]==="";)foe(c.path);s==="?"?(c.query="",u=ga):s==="#"&&(c.fragment="",u=Ss)}else f+=co(s,Gx);break;case e7:s==="?"?(c.query="",u=ga):s==="#"?(c.fragment="",u=Ss):s!==Mi&&(c.path[0]+=co(s,ip));break;case ga:t||s!=="#"?s!==Mi&&(s==="'"&&c.isSpecial()?c.query+="%27":c.query+=s==="#"?"%23":co(s,ip)):(c.fragment="",u=Ss);break;case Ss:s!==Mi&&(c.fragment+=co(s,Hx))}d++}},parseHost:function(e){var t,n,r;if(ji(e,0)==="["){if(ji(e,e.length-1)!=="]"||(t=function(s){var o,a,l,c,u,d,f,h=[0,0,0,0,0,0,0,0],g=0,v=null,y=0,_=function(){return ji(s,y)};if(_()===":"){if(ji(s,1)!==":")return;y+=2,v=++g}for(;_();){if(g===8)return;if(_()!==":"){for(o=a=0;a<4&&dr(qx,_());)o=16*o+tp(_(),16),y++,a++;if(_()==="."){if(a===0||(y-=a,g>6))return;for(l=0;_();){if(c=null,l>0){if(!(_()==="."&&l<4))return;y++}if(!dr(Pb,_()))return;for(;dr(Pb,_());){if(u=tp(_(),10),c===null)c=u;else{if(c===0)return;c=10*c+u}if(c>255)return;y++}h[g]=256*h[g]+c,++l!=2&&l!==4||g++}if(l!==4)return;break}if(_()===":"){if(y++,!_())return}else if(_())return;h[g++]=o}else{if(v!==null)return;y++,v=++g}}if(v!==null)for(d=g-v,g=7;g!==0&&d>0;)f=h[g],h[g--]=h[v+d-1],h[v+--d]=f;else if(g!==8)return;return h}(Lu(e,1,-1)),!t))return pa;this.host=t}else if(this.isSpecial()){if(e=function(s){var o,a,l=[],c=yse(bse(_se(s),ux,"."),".");for(o=0;o<c.length;o++)a=c[o],lo(l,vse(mse,a)?"xn--"+Cse(a):a);return px(l,".")}(e),dr(yoe,e)||(t=function(s){var o,a,l,c,u,d,f,h=hoe(s,".");if(h.length&&h[h.length-1]===""&&h.length--,(o=h.length)>4)return s;for(a=[],l=0;l<o;l++){if((c=h[l])==="")return s;if(u=10,c.length>1&&ji(c,0)==="0"&&(u=dr(moe,c)?16:8,c=Lu(c,u===8?1:2)),c==="")d=0;else{if(!dr(u===10?boe:u===8?voe:qx,c))return s;d=tp(c,u)}Pl(a,d)}for(l=0;l<o;l++)if(d=a[l],l===o-1){if(d>=$x(256,5-o))return null}else if(d>255)return null;for(f=doe(a),l=0;l<a.length;l++)f+=a[l]*$x(256,3-l);return f}(e),t===null))return pa;this.host=t}else{if(dr(_oe,e))return pa;for(t="",n=Al(e),r=0;r<n.length;r++)t+=co(n[r],ip);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return Cb(rp,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||this.scheme==="file"&&t===1&&Mu(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,s=e.host,o=e.port,a=e.path,l=e.query,c=e.fragment,u=t+":";return s!==null?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=ku(s),o!==null&&(u+=":"+o)):t==="file"&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+Du(a,"/"):"",l!==null&&(u+="?"+l),c!==null&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw new Eb(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if(e==="blob")try{return new Ol(e.path[0]).origin}catch(n){return"null"}return e!=="file"&&this.isSpecial()?e+"://"+ku(this.host)+(t!==null?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Cs(e)+":",Ob)},getUsername:function(){return this.username},setUsername:function(e){var t=Al(Cs(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=co(t[n],Tb)}},getPassword:function(){return this.password},setPassword:function(e){var t=Al(Cs(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=co(t[n],Tb)}},getHost:function(){var e=this.host,t=this.port;return e===null?"":t===null?ku(e):ku(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Rb)},getHostname:function(){var e=this.host;return e===null?"":ku(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Db)},getPort:function(){var e=this.port;return e===null?"":Cs(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||((e=Cs(e))===""?this.port=null:this.parse(e,Lb))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Du(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Tl))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){(e=Cs(e))===""?this.query=null:(ji(e,0)==="?"&&(e=Lu(e,1)),this.query="",this.parse(e,ga)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){(e=Cs(e))!==""?(ji(e,0)==="#"&&(e=Lu(e,1)),this.fragment="",this.parse(e,Ss)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ol=function(e){var t=noe(this,Zn),n=soe(arguments.length,1)>1?arguments[1]:void 0,r=ooe(t,new Fb(e,!1,n));_b||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Zn=Ol.prototype,Ui=function(e,t){return{get:function(){return ep(this)[e]()},set:t&&function(n){return ep(this)[t](n)},configurable:!0,enumerable:!0}};if(_b&&(Bi(Zn,"href",Ui("serialize","setHref")),Bi(Zn,"origin",Ui("getOrigin")),Bi(Zn,"protocol",Ui("getProtocol","setProtocol")),Bi(Zn,"username",Ui("getUsername","setUsername")),Bi(Zn,"password",Ui("getPassword","setPassword")),Bi(Zn,"host",Ui("getHost","setHost")),Bi(Zn,"hostname",Ui("getHostname","setHostname")),Bi(Zn,"port",Ui("getPort","setPort")),Bi(Zn,"pathname",Ui("getPathname","setPathname")),Bi(Zn,"search",Ui("getSearch","setSearch")),Bi(Zn,"searchParams",Ui("getSearchParams")),Bi(Zn,"hash",Ui("getHash","setHash"))),Qh(Zn,"toJSON",function(){return ep(this).serialize()},{enumerable:!0}),Qh(Zn,"toString",function(){return ep(this).serialize()},{enumerable:!0}),Ru){var t7=Ru.createObjectURL,n7=Ru.revokeObjectURL;t7&&Qh(Ol,"createObjectURL",Bx(t7,Ru)),n7&&Qh(Ol,"revokeObjectURL",Bx(n7,Ru))}roe(Ol,"URL"),eoe({global:!0,constructor:!0,forced:!toe,sham:!_b},{URL:Ol});var xoe=ml,i7=Array.isArray||function(e){return xoe(e)==="Array"},Aoe=TypeError,r7=i7,Poe=sb,Toe=Li,Ooe=fn("species"),s7=Array,o7=function(e,t){return new(function(n){var r;return r7(n)&&(r=n.constructor,(Poe(r)&&(r===s7||r7(r.prototype))||Toe(r)&&(r=r[Ooe])===null)&&(r=void 0)),r===void 0?s7:r}(e))(t===0?0:t)},Noe=en,Ioe=Ah,Roe=fn("species"),a7=function(e){return Ioe>=51||!Noe(function(){var t=[];return(t.constructor={})[Roe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Doe=vi,Loe=en,koe=i7,Moe=Li,Foe=aa,Boe=Cu,l7=function(e){if(e>9007199254740991)throw Aoe("Maximum allowed index exceeded");return e},c7=ox,joe=o7,Uoe=a7,$oe=Ah,u7=fn("isConcatSpreadable"),Voe=$oe>=51||!Loe(function(){var e=[];return e[u7]=!1,e.concat()[0]!==e}),zoe=function(e){if(!Moe(e))return!1;var t=e[u7];return t!==void 0?!!t:koe(e)};Doe({target:"Array",proto:!0,arity:1,forced:!Voe||!Uoe("concat")},{concat:function(e){var t,n,r,s,o,a=Foe(this),l=joe(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(zoe(o=t===-1?a:arguments[t]))for(s=Boe(o),l7(c+s),n=0;n<s;n++,c++)n in o&&c7(l,c,o[n]);else l7(c+1),c7(l,c++,o);return l.length=c,l}});var qoe=da,Hoe=m1,Goe=aa,Woe=Cu,Koe=o7,d7=Yt([].push),uo=function(e){var t=e===1,n=e===2,r=e===3,s=e===4,o=e===6,a=e===7,l=e===5||o;return function(c,u,d,f){for(var h,g,v=Goe(c),y=Hoe(v),_=Woe(y),w=qoe(u,d),A=0,C=f||Koe,S=t?C(c,_):n||a?C(c,0):void 0;_>A;A++)if((l||A in y)&&(g=w(h=y[A],A,v),e))if(t)S[A]=g;else if(g)switch(e){case 3:return!0;case 5:return h;case 6:return A;case 2:d7(S,h)}else switch(e){case 4:return!1;case 7:d7(S,h)}return o?-1:r||s?s:S}},Joe=[uo(0),uo(1),uo(2),uo(3),uo(4),uo(5),uo(6),uo(7)][1];vi({target:"Array",proto:!0,forced:!a7("map")},{map:function(e){return Joe(this,e,arguments.length>1?arguments[1]:void 0)}});var f7=Tn,Yoe=en,h7=Yt,Xoe=G1,Zoe=x1,Qoe=vl,p7=h7(kh.f),eae=h7([].push),tae=f7&&Yoe(function(){var e=Object.create(null);return e[2]=2,!p7(e,2)}),g7=function(e){return function(t){for(var n,r=Qoe(t),s=Zoe(r),o=tae&&Xoe(r)===null,a=s.length,l=0,c=[];a>l;)n=s[l++],f7&&!(o?n in r:p7(r,n))||eae(c,e?[n,r[n]]:r[n]);return c}},nae=[g7(!0),g7(!1)][0];vi({target:"Object",stat:!0},{entries:function(e){return nae(e)}});var iae=On,rae=mi,sae=Eh,oae=eE,m7=RegExp.prototype,aae=vu.PROPER,lae=cr,cae=jn,v7=ca,uae=en,Bb="toString",b7=RegExp.prototype,y7=b7[Bb],dae=uae(function(){return y7.call({source:"a",flags:"b"})!=="/a/b"}),fae=aae&&y7.name!==Bb;(dae||fae)&&lae(b7,Bb,function(){var e=cae(this);return"/"+v7(e.source)+"/"+v7(function(t){var n=t.flags;return n!==void 0||"flags"in m7||rae(t,"flags")||!sae(m7,t)?n:iae(oae,t)}(e))},{unsafe:!0});var Fu,Nl,_7,jb,ap=ml(tn.process)==="process",hae=la,pae=Lh,gae=Tn,w7=fn("species"),mae=sb,vae=Ph,bae=TypeError,C7=jn,yae=mu,_ae=fn("species"),S7=/(?:ipad|iphone|ipod).*applewebkit/i.test(xh),bi=tn,wae=fE,Cae=da,E7=on,Sae=mi,x7=en,A7=nE,Eae=ab,P7=Ch,xae=ub,Aae=S7,Pae=ap,Ub=bi.setImmediate,$b=bi.clearImmediate,Tae=bi.process,Vb=bi.Dispatch,Oae=bi.Function,T7=bi.MessageChannel,Nae=bi.String,zb=0,Bu={},O7="onreadystatechange";x7(function(){Fu=bi.location});var qb=function(e){if(Sae(Bu,e)){var t=Bu[e];delete Bu[e],t()}},Hb=function(e){return function(){qb(e)}},N7=function(e){qb(e.data)},I7=function(e){bi.postMessage(Nae(e),Fu.protocol+"//"+Fu.host)};Ub&&$b||(Ub=function(e){xae(arguments.length,1);var t=E7(e)?e:Oae(e),n=Eae(arguments,1);return Bu[++zb]=function(){wae(t,void 0,n)},Nl(zb),zb},$b=function(e){delete Bu[e]},Pae?Nl=function(e){Tae.nextTick(Hb(e))}:Vb&&Vb.now?Nl=function(e){Vb.now(Hb(e))}:T7&&!Aae?(jb=(_7=new T7).port2,_7.port1.onmessage=N7,Nl=Cae(jb.postMessage,jb)):bi.addEventListener&&E7(bi.postMessage)&&!bi.importScripts&&Fu&&Fu.protocol!=="file:"&&!x7(I7)?(Nl=I7,bi.addEventListener("message",N7,!1)):Nl=O7 in P7("script")?function(e){A7.appendChild(P7("script"))[O7]=function(){A7.removeChild(this),qb(e)}}:function(e){setTimeout(Hb(e),0)});var R7={set:Ub,clear:$b},D7=function(){this.head=null,this.tail=null};D7.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return(this.head=e.next)===null&&(this.tail=null),e.item}};var Il,Gb,Wb,Kb,L7,k7=D7,Iae=/ipad|iphone|ipod/i.test(xh)&&typeof Pebble!="undefined",Rae=/web0s(?!.*chrome)/i.test(xh),Rl=tn,Dae=vx,M7=da,Jb=R7.set,Lae=k7,kae=S7,Mae=Iae,Fae=Rae,Yb=ap,F7=Rl.MutationObserver||Rl.WebKitMutationObserver,B7=Rl.document,j7=Rl.process,lp=Rl.Promise,Xb=Dae("queueMicrotask");if(!Xb){var cp=new Lae,up=function(){var e,t;for(Yb&&(e=j7.domain)&&e.exit();t=cp.get();)try{t()}catch(n){throw cp.head&&Il(),n}e&&e.enter()};kae||Yb||Fae||!F7||!B7?!Mae&&lp&&lp.resolve?((Kb=lp.resolve(void 0)).constructor=lp,L7=M7(Kb.then,Kb),Il=function(){L7(up)}):Yb?Il=function(){j7.nextTick(up)}:(Jb=M7(Jb,Rl),Il=function(){Jb(up)}):(Gb=!0,Wb=B7.createTextNode(""),new F7(up).observe(Wb,{characterData:!0}),Il=function(){Wb.data=Gb=!Gb}),Xb=function(e){cp.head||Il(),cp.add(e)}}var Bae=Xb,Zb=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},dp=tn.Promise,U7=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",jae=!U7&&!ap&&typeof window=="object"&&typeof document=="object",Uae=tn,ju=dp,$ae=on,Vae=Z5,zae=Wv,qae=fn,Hae=jae,Gae=U7,Qb=Ah;ju&&ju.prototype;var Wae=qae("species"),$7=!1,V7=$ae(Uae.PromiseRejectionEvent),Kae=Vae("Promise",function(){var e=zae(ju),t=e!==String(ju);if(!t&&Qb===66)return!0;if(!Qb||Qb<51||!/native code/.test(e)){var n=new ju(function(s){s(1)}),r=function(s){s(function(){},function(){})};if((n.constructor={})[Wae]=r,!($7=n.then(function(){})instanceof r))return!0}return!t&&(Hae||Gae)&&!V7}),ma={CONSTRUCTOR:Kae,REJECTION_EVENT:V7,SUBCLASSING:$7},Dl={},z7=oo,Jae=TypeError,Yae=function(e){var t,n;this.promise=new e(function(r,s){if(t!==void 0||n!==void 0)throw new Jae("Bad Promise constructor");t=r,n=s}),this.resolve=z7(t),this.reject=z7(n)};Dl.f=function(e){return new Yae(e)};var ey,q7,H7,Xae=vi,fp=ap,fo=tn,Ll=On,G7=cr,W7=IE,Zae=_l,Qae=oo,hp=on,ele=Li,tle=nb,nle=function(e,t){var n,r=C7(e).constructor;return r===void 0||yae(n=C7(r)[_ae])?t:function(s){if(mae(s))return s;throw new bae(vae(s)+" is not a constructor")}(n)},K7=R7.set,ty=Bae,ile=Zb,rle=k7,J7=ao,pp=dp,Y7=Dl,gp="Promise",X7=ma.CONSTRUCTOR,sle=ma.REJECTION_EVENT,ole=ma.SUBCLASSING,ny=J7.getterFor(gp),ale=J7.set,kl=pp&&pp.prototype,Ml=pp,mp=kl,Z7=fo.TypeError,iy=fo.document,ry=fo.process,sy=Y7.f,lle=sy,cle=!!(iy&&iy.createEvent&&fo.dispatchEvent),Q7="unhandledrejection",eA=function(e){var t;return!(!ele(e)||!hp(t=e.then))&&t},tA=function(e,t){var n,r,s,o=t.value,a=t.state===1,l=a?e.ok:e.fail,c=e.resolve,u=e.reject,d=e.domain;try{l?(a||(t.rejection===2&&dle(t),t.rejection=1),l===!0?n=o:(d&&d.enter(),n=l(o),d&&(d.exit(),s=!0)),n===e.promise?u(new Z7("Promise-chain cycle")):(r=eA(n))?Ll(r,n,c,u):c(n)):u(o)}catch(f){d&&!s&&d.exit(),u(f)}},nA=function(e,t){e.notified||(e.notified=!0,ty(function(){for(var n,r=e.reactions;n=r.get();)tA(n,e);e.notified=!1,t&&!e.rejection&&ule(e)}))},iA=function(e,t,n){var r,s;cle?((r=iy.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),fo.dispatchEvent(r)):r={promise:t,reason:n},!sle&&(s=fo["on"+e])?s(r):e===Q7&&function(o,a){try{arguments.length===1?console.error(o):console.error(o,a)}catch(l){}}("Unhandled promise rejection",n)},ule=function(e){Ll(K7,fo,function(){var t,n=e.facade,r=e.value;if(rA(e)&&(t=ile(function(){fp?ry.emit("unhandledRejection",r,n):iA(Q7,n,r)}),e.rejection=fp||rA(e)?2:1,t.error))throw t.value})},rA=function(e){return e.rejection!==1&&!e.parent},dle=function(e){Ll(K7,fo,function(){var t=e.facade;fp?ry.emit("rejectionHandled",t):iA("rejectionhandled",t,e.value)})},Fl=function(e,t,n){return function(r){e(t,r,n)}},Bl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,nA(e,!0))},oy=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new Z7("Promise can't be resolved itself");var r=eA(t);r?ty(function(){var s={done:!1};try{Ll(r,t,Fl(oy,s,e),Fl(Bl,s,e))}catch(o){Bl(s,o,e)}}):(e.value=t,e.state=1,nA(e,!1))}catch(s){Bl({done:!1},s,e)}}};if(X7&&(mp=(Ml=function(e){tle(this,mp),Qae(e),Ll(ey,this);var t=ny(this);try{e(Fl(oy,t),Fl(Bl,t))}catch(n){Bl(t,n)}}).prototype,(ey=function(e){ale(this,{type:gp,done:!1,notified:!1,parent:!1,reactions:new rle,rejection:!1,state:0,value:void 0})}).prototype=G7(mp,"then",function(e,t){var n=ny(this),r=sy(nle(this,Ml));return n.parent=!0,r.ok=!hp(e)||e,r.fail=hp(t)&&t,r.domain=fp?ry.domain:void 0,n.state===0?n.reactions.add(r):ty(function(){tA(r,n)}),r.promise}),q7=function(){var e=new ey,t=ny(e);this.promise=e,this.resolve=Fl(oy,t),this.reject=Fl(Bl,t)},Y7.f=sy=function(e){return e===Ml||e===void 0?new q7(e):lle(e)},hp(pp)&&kl!==Object.prototype)){H7=kl.then,ole||G7(kl,"then",function(e,t){var n=this;return new Ml(function(r,s){Ll(H7,n,r,s)}).then(e,t)},{unsafe:!0});try{delete kl.constructor}catch(e){}W7&&W7(kl,mp)}Xae({global:!0,constructor:!0,wrap:!0,forced:X7},{Promise:Ml}),Zae(Ml,gp,!1),function(e){var t=hae(e);gae&&t&&!t[w7]&&pae(t,w7,{configurable:!0,get:function(){return this}})}(gp);var fle=da,hle=On,ple=jn,gle=Ph,mle=tx,vle=Cu,sA=Eh,ble=ob,yle=Wh,oA=ex,_le=TypeError,vp=function(e,t){this.stopped=e,this.result=t},aA=vp.prototype,lA=function(e,t,n){var r,s,o,a,l,c,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),g=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),y=fle(t,d),_=function(A){return r&&oA(r,"normal",A),new vp(!0,A)},w=function(A){return f?(ple(A),v?y(A[0],A[1],_):y(A[0],A[1])):v?y(A,_):y(A)};if(h)r=e.iterator;else if(g)r=e;else{if(!(s=yle(e)))throw new _le(gle(e)+" is not iterable");if(mle(s)){for(o=0,a=vle(e);a>o;o++)if((l=w(e[o]))&&sA(aA,l))return l;return new vp(!1)}r=ble(e,s)}for(c=h?e.next:r.next;!(u=hle(c,r)).done;){try{l=w(u.value)}catch(A){oA(r,"throw",A)}if(typeof l=="object"&&l&&sA(aA,l))return l}return new vp(!1)},cA=fn("iterator"),uA=!1;try{var wle=0,dA={next:function(){return{done:!!wle++}},return:function(){uA=!0}};dA[cA]=function(){return this},Array.from(dA,function(){throw 2})}catch(e){}var Cle=dp,fA=ma.CONSTRUCTOR||!function(e,t){try{if(!t&&!uA)return!1}catch(s){return!1}var n=!1;try{var r={};r[cA]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(s){}return n}(function(e){Cle.all(e).then(void 0,function(){})}),Sle=On,Ele=oo,xle=Dl,Ale=Zb,Ple=lA;vi({target:"Promise",stat:!0,forced:fA},{all:function(e){var t=this,n=xle.f(t),r=n.resolve,s=n.reject,o=Ale(function(){var a=Ele(t.resolve),l=[],c=0,u=1;Ple(e,function(d){var f=c++,h=!1;u++,Sle(a,t,d).then(function(g){h||(h=!0,l[f]=g,--u||r(l))},s)}),--u||r(l)});return o.error&&s(o.value),n.promise}});var Tle=vi,Ole=ma.CONSTRUCTOR,ay=dp,Nle=la,Ile=on,Rle=cr,hA=ay&&ay.prototype;if(Tle({target:"Promise",proto:!0,forced:Ole,real:!0},{catch:function(e){return this.then(void 0,e)}}),Ile(ay)){var pA=Nle("Promise").prototype.catch;hA.catch!==pA&&Rle(hA,"catch",pA,{unsafe:!0})}var Dle=On,Lle=oo,kle=Dl,Mle=Zb,Fle=lA;vi({target:"Promise",stat:!0,forced:fA},{race:function(e){var t=this,n=kle.f(t),r=n.reject,s=Mle(function(){var o=Lle(t.resolve);Fle(e,function(a){Dle(o,t,a).then(n.resolve,r)})});return s.error&&r(s.value),n.promise}});var Ble=Dl;vi({target:"Promise",stat:!0,forced:ma.CONSTRUCTOR},{reject:function(e){var t=Ble.f(this);return(0,t.reject)(e),t.promise}});var jle=jn,Ule=Li,$le=Dl,Vle=vi,zle=ma.CONSTRUCTOR;la("Promise"),Vle({target:"Promise",stat:!0,forced:zle},{resolve:function(e){return function(t,n){if(jle(t),Ule(n)&&n.constructor===t)return n;var r=$le.f(t);return(0,r.resolve)(n),r.promise}(this,e)}});var bp,Uu,gA={exports:{}},mA={exports:{}};bp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Uu={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&Uu.rotl(e,8)|4278255360&Uu.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=Uu.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],n=0;n<e.length;n+=3)for(var r=e[n]<<16|e[n+1]<<8|e[n+2],s=0;s<4;s++)8*n+6*s<=8*e.length?t.push(bp.charAt(r>>>6*(3-s)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,r=0;n<e.length;r=++n%4)r!=0&&t.push((bp.indexOf(e.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<2*r|bp.indexOf(e.charAt(n))>>>6-2*r);return t}},mA.exports=Uu;var qle=mA.exports,ly={utf8:{stringToBytes:function(e){return ly.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(ly.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},vA=ly,Hle=function(e){return e!=null&&(bA(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&bA(t.slice(0,0))}(e)||!!e._isBuffer)};function bA(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}(function(){var e=qle,t=vA.utf8,n=Hle,r=vA.bin,s=function(o,a){o.constructor==String?o=a&&a.encoding==="binary"?r.stringToBytes(o):t.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):Array.isArray(o)||o.constructor===Uint8Array||(o=o.toString());for(var l=e.bytesToWords(o),c=8*o.length,u=1732584193,d=-271733879,f=-1732584194,h=271733878,g=0;g<l.length;g++)l[g]=16711935&(l[g]<<8|l[g]>>>24)|4278255360&(l[g]<<24|l[g]>>>8);l[c>>>5]|=128<<c%32,l[14+(c+64>>>9<<4)]=c;var v=s._ff,y=s._gg,_=s._hh,w=s._ii;for(g=0;g<l.length;g+=16){var A=u,C=d,S=f,x=h;u=v(u,d,f,h,l[g+0],7,-680876936),h=v(h,u,d,f,l[g+1],12,-389564586),f=v(f,h,u,d,l[g+2],17,606105819),d=v(d,f,h,u,l[g+3],22,-1044525330),u=v(u,d,f,h,l[g+4],7,-176418897),h=v(h,u,d,f,l[g+5],12,1200080426),f=v(f,h,u,d,l[g+6],17,-1473231341),d=v(d,f,h,u,l[g+7],22,-45705983),u=v(u,d,f,h,l[g+8],7,1770035416),h=v(h,u,d,f,l[g+9],12,-1958414417),f=v(f,h,u,d,l[g+10],17,-42063),d=v(d,f,h,u,l[g+11],22,-1990404162),u=v(u,d,f,h,l[g+12],7,1804603682),h=v(h,u,d,f,l[g+13],12,-40341101),f=v(f,h,u,d,l[g+14],17,-1502002290),u=y(u,d=v(d,f,h,u,l[g+15],22,1236535329),f,h,l[g+1],5,-165796510),h=y(h,u,d,f,l[g+6],9,-1069501632),f=y(f,h,u,d,l[g+11],14,643717713),d=y(d,f,h,u,l[g+0],20,-373897302),u=y(u,d,f,h,l[g+5],5,-701558691),h=y(h,u,d,f,l[g+10],9,38016083),f=y(f,h,u,d,l[g+15],14,-660478335),d=y(d,f,h,u,l[g+4],20,-405537848),u=y(u,d,f,h,l[g+9],5,568446438),h=y(h,u,d,f,l[g+14],9,-1019803690),f=y(f,h,u,d,l[g+3],14,-187363961),d=y(d,f,h,u,l[g+8],20,1163531501),u=y(u,d,f,h,l[g+13],5,-1444681467),h=y(h,u,d,f,l[g+2],9,-51403784),f=y(f,h,u,d,l[g+7],14,1735328473),u=_(u,d=y(d,f,h,u,l[g+12],20,-1926607734),f,h,l[g+5],4,-378558),h=_(h,u,d,f,l[g+8],11,-2022574463),f=_(f,h,u,d,l[g+11],16,1839030562),d=_(d,f,h,u,l[g+14],23,-35309556),u=_(u,d,f,h,l[g+1],4,-1530992060),h=_(h,u,d,f,l[g+4],11,1272893353),f=_(f,h,u,d,l[g+7],16,-155497632),d=_(d,f,h,u,l[g+10],23,-1094730640),u=_(u,d,f,h,l[g+13],4,681279174),h=_(h,u,d,f,l[g+0],11,-358537222),f=_(f,h,u,d,l[g+3],16,-722521979),d=_(d,f,h,u,l[g+6],23,76029189),u=_(u,d,f,h,l[g+9],4,-640364487),h=_(h,u,d,f,l[g+12],11,-421815835),f=_(f,h,u,d,l[g+15],16,530742520),u=w(u,d=_(d,f,h,u,l[g+2],23,-995338651),f,h,l[g+0],6,-198630844),h=w(h,u,d,f,l[g+7],10,1126891415),f=w(f,h,u,d,l[g+14],15,-1416354905),d=w(d,f,h,u,l[g+5],21,-57434055),u=w(u,d,f,h,l[g+12],6,1700485571),h=w(h,u,d,f,l[g+3],10,-1894986606),f=w(f,h,u,d,l[g+10],15,-1051523),d=w(d,f,h,u,l[g+1],21,-2054922799),u=w(u,d,f,h,l[g+8],6,1873313359),h=w(h,u,d,f,l[g+15],10,-30611744),f=w(f,h,u,d,l[g+6],15,-1560198380),d=w(d,f,h,u,l[g+13],21,1309151649),u=w(u,d,f,h,l[g+4],6,-145523070),h=w(h,u,d,f,l[g+11],10,-1120210379),f=w(f,h,u,d,l[g+2],15,718787259),d=w(d,f,h,u,l[g+9],21,-343485551),u=u+A>>>0,d=d+C>>>0,f=f+S>>>0,h=h+x>>>0}return e.endian([u,d,f,h])};s._ff=function(o,a,l,c,u,d,f){var h=o+(a&l|~a&c)+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._gg=function(o,a,l,c,u,d,f){var h=o+(a&c|l&~c)+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._hh=function(o,a,l,c,u,d,f){var h=o+(a^l^c)+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._ii=function(o,a,l,c,u,d,f){var h=o+(l^(a|~c))+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._blocksize=16,s._digestsize=16,gA.exports=function(o,a){if(o==null)throw new Error("Illegal argument "+o);var l=e.wordsToBytes(s(o,a));return a&&a.asBytes?l:a&&a.asString?r.bytesToString(l):e.bytesToHex(l)}})();var yA=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(gA.exports),cy={exports:{}};(function(e,t){(function(n,r){var s="function",o="undefined",a="object",l="string",c="major",u="model",d="name",f="type",h="vendor",g="version",v="architecture",y="console",_="mobile",w="tablet",A="smarttv",C="wearable",S="embedded",x="Amazon",O="Apple",N="ASUS",I="BlackBerry",F="Browser",D="Chrome",k="Firefox",q="Google",H="Huawei",oe="LG",ce="Microsoft",U="Motorola",Y="Opera",K="Samsung",ee="Sharp",B="Sony",Ee="Xiaomi",me="Zebra",re="Facebook",le="Chromium OS",Ce="Mac OS",ye=function(de){for(var pe={},we=0;we<de.length;we++)pe[de[we].toUpperCase()]=de[we];return pe},z=function(de,pe){return typeof de===l&&X(pe).indexOf(X(de))!==-1},X=function(de){return de.toLowerCase()},fe=function(de,pe){if(typeof de===l)return de=de.replace(/^\s\s*/,""),typeof pe===o?de:de.substring(0,500)},Re=function(de,pe){for(var we,Ae,Te,ve,$e,Q,Oe=0;Oe<pe.length&&!$e;){var Ve=pe[Oe],Qe=pe[Oe+1];for(we=Ae=0;we<Ve.length&&!$e&&Ve[we];)if($e=Ve[we++].exec(de))for(Te=0;Te<Qe.length;Te++)Q=$e[++Ae],typeof(ve=Qe[Te])===a&&ve.length>0?ve.length===2?typeof ve[1]==s?this[ve[0]]=ve[1].call(this,Q):this[ve[0]]=ve[1]:ve.length===3?typeof ve[1]!==s||ve[1].exec&&ve[1].test?this[ve[0]]=Q?Q.replace(ve[1],ve[2]):r:this[ve[0]]=Q?ve[1].call(this,Q,ve[2]):r:ve.length===4&&(this[ve[0]]=Q?ve[3].call(this,Q.replace(ve[1],ve[2])):r):this[ve]=Q||r;Oe+=2}},Le=function(de,pe){for(var we in pe)if(typeof pe[we]===a&&pe[we].length>0){for(var Ae=0;Ae<pe[we].length;Ae++)if(z(pe[we][Ae],de))return we==="?"?r:we}else if(z(pe[we],de))return we==="?"?r:we;return de},Ke={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},j={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,g],[/opios[\/ ]+([\w\.]+)/i],[g,[d,Y+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[d,Y]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[d,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[d,"UC"+F]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[d,"Smart Lenovo "+F]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+F],g],[/\bfocus\/([\w\.]+)/i],[g,[d,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[d,Y+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[d,Y+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[d,"MIUI "+F]],[/fxios\/([-\w\.]+)/i],[g,[d,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+F]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+F],g],[/samsungbrowser\/([\w\.]+)/i],[g,[d,K+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],g],[/metasr[\/ ]?([\d\.]+)/i],[g,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[d,g],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,re],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[d,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,D+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[d,"Android "+F]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[g,Le,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[d,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[d,g],[/(cobalt)\/([\w\.]+)/i],[d,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,X]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,"",X]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,X]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[h,K],[f,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[h,K],[f,_]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[h,O],[f,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[h,O],[f,w]],[/(macintosh);/i],[u,[h,O]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[h,ee],[f,_]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[h,H],[f,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[h,H],[f,_]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[h,Ee],[f,_]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[h,Ee],[f,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[h,"OPPO"],[f,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[h,"Vivo"],[f,_]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[h,"Realme"],[f,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[h,U],[f,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[h,U],[f,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[h,oe],[f,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[h,oe],[f,_]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[h,"Lenovo"],[f,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[h,"Nokia"],[f,_]],[/(pixel c)\b/i],[u,[h,q],[f,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[h,q],[f,_]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[h,B],[f,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[h,B],[f,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[h,"OnePlus"],[f,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[h,x],[f,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[h,x],[f,_]],[/(playbook);[-\w\),; ]+(rim)/i],[u,h,[f,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[h,I],[f,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[h,N],[f,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[h,N],[f,_]],[/(nexus 9)/i],[u,[h,"HTC"],[f,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[u,/_/g," "],[f,_]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[h,"Acer"],[f,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[h,"Meizu"],[f,_]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[h,"Ulefone"],[f,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,u,[f,_]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,u,[f,w]],[/(surface duo)/i],[u,[h,ce],[f,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[h,"Fairphone"],[f,_]],[/(u304aa)/i],[u,[h,"AT&T"],[f,_]],[/\bsie-(\w*)/i],[u,[h,"Siemens"],[f,_]],[/\b(rct\w+) b/i],[u,[h,"RCA"],[f,w]],[/\b(venue[\d ]{2,7}) b/i],[u,[h,"Dell"],[f,w]],[/\b(q(?:mv|ta)\w+) b/i],[u,[h,"Verizon"],[f,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[h,"Barnes & Noble"],[f,w]],[/\b(tm\d{3}\w+) b/i],[u,[h,"NuVision"],[f,w]],[/\b(k88) b/i],[u,[h,"ZTE"],[f,w]],[/\b(nx\d{3}j) b/i],[u,[h,"ZTE"],[f,_]],[/\b(gen\d{3}) b.+49h/i],[u,[h,"Swiss"],[f,_]],[/\b(zur\d{3}) b/i],[u,[h,"Swiss"],[f,w]],[/\b((zeki)?tb.*\b) b/i],[u,[h,"Zeki"],[f,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],u,[f,w]],[/\b(ns-?\w{0,9}) b/i],[u,[h,"Insignia"],[f,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[h,"NextBook"],[f,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],u,[f,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],u,[f,_]],[/\b(ph-1) /i],[u,[h,"Essential"],[f,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[h,"Envizen"],[f,w]],[/\b(trio[-\w\. ]+) b/i],[u,[h,"MachSpeed"],[f,w]],[/\btu_(1491) b/i],[u,[h,"Rotor"],[f,w]],[/(shield[\w ]+) b/i],[u,[h,"Nvidia"],[f,w]],[/(sprint) (\w+)/i],[h,u,[f,_]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[h,ce],[f,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[h,me],[f,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[h,me],[f,_]],[/smart-tv.+(samsung)/i],[h,[f,A]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[h,K],[f,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,oe],[f,A]],[/(apple) ?tv/i],[h,[u,O+" TV"],[f,A]],[/crkey/i],[[u,D+"cast"],[h,q],[f,A]],[/droid.+aft(\w+)( bui|\))/i],[u,[h,x],[f,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[h,ee],[f,A]],[/(bravia[\w ]+)( bui|\))/i],[u,[h,B],[f,A]],[/(mitv-\w{5}) bui/i],[u,[h,Ee],[f,A]],[/Hbbtv.*(technisat) (.*);/i],[h,u,[f,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,fe],[u,fe],[f,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,u,[f,y]],[/droid.+; (shield) bui/i],[u,[h,"Nvidia"],[f,y]],[/(playstation [345portablevi]+)/i],[u,[h,B],[f,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[h,ce],[f,y]],[/((pebble))app/i],[h,u,[f,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[h,O],[f,C]],[/droid.+; (glass) \d/i],[u,[h,q],[f,C]],[/droid.+; (wt63?0{2,3})\)/i],[u,[h,me],[f,C]],[/(quest( 2| pro)?)/i],[u,[h,re],[f,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,S]],[/(aeobc)\b/i],[u,[h,x],[f,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[f,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[f,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,_]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[d,[g,Le,Ke]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,Le,Ke],[d,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,Ce],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,g],[/\(bb(10);/i],[g,[d,I]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[d,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[d,D+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,le],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,g],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,g]]},J=function(de,pe){if(typeof de===a&&(pe=de,de=r),!(this instanceof J))return new J(de,pe).getResult();var we=typeof n!==o&&n.navigator?n.navigator:r,Ae=de||(we&&we.userAgent?we.userAgent:""),Te=we&&we.userAgentData?we.userAgentData:r,ve=pe?function(Q,Oe){var Ve={};for(var Qe in Q)Oe[Qe]&&Oe[Qe].length%2==0?Ve[Qe]=Oe[Qe].concat(Q[Qe]):Ve[Qe]=Q[Qe];return Ve}(j,pe):j,$e=we&&we.userAgent==Ae;return this.getBrowser=function(){var Q={};return Q[d]=r,Q[g]=r,Re.call(Q,Ae,ve.browser),Q[c]=function(Oe){return typeof Oe===l?Oe.replace(/[^\d\.]/g,"").split(".")[0]:r}(Q[g]),$e&&we&&we.brave&&typeof we.brave.isBrave==s&&(Q[d]="Brave"),Q},this.getCPU=function(){var Q={};return Q[v]=r,Re.call(Q,Ae,ve.cpu),Q},this.getDevice=function(){var Q={};return Q[h]=r,Q[u]=r,Q[f]=r,Re.call(Q,Ae,ve.device),$e&&!Q[f]&&Te&&Te.mobile&&(Q[f]=_),$e&&Q[u]=="Macintosh"&&we&&typeof we.standalone!==o&&we.maxTouchPoints&&we.maxTouchPoints>2&&(Q[u]="iPad",Q[f]=w),Q},this.getEngine=function(){var Q={};return Q[d]=r,Q[g]=r,Re.call(Q,Ae,ve.engine),Q},this.getOS=function(){var Q={};return Q[d]=r,Q[g]=r,Re.call(Q,Ae,ve.os),$e&&!Q[d]&&Te&&Te.platform!="Unknown"&&(Q[d]=Te.platform.replace(/chrome os/i,le).replace(/macos/i,Ce)),Q},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Ae},this.setUA=function(Q){return Ae=typeof Q===l&&Q.length>500?fe(Q,500):Q,this},this.setUA(Ae),this};J.VERSION="1.0.37",J.BROWSER=ye([d,g,c]),J.CPU=ye([v]),J.DEVICE=ye([u,h,f,y,_,A,w,C,S]),J.ENGINE=J.OS=ye([d,g]),e.exports&&(t=e.exports=J),t.UAParser=J;var ae=typeof n!==o&&(n.jQuery||n.Zepto);if(ae&&!ae.ua){var xe=new J;ae.ua=xe.getResult(),ae.ua.get=function(){return xe.getUA()},ae.ua.set=function(de){xe.setUA(de);var pe=xe.getResult();for(var we in pe)ae.ua[we]=pe[we]}}})(typeof window=="object"?window:gu)})(cy,cy.exports);var Gle=cy.exports,Wle=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")})(this,e);var s=r.appKey,o=r.ratio,a=o===void 0?10:o,l=r.env,c=l===void 0?"production":l,u=r.appVersion,d=u===void 0?"0.0.1":u,f=r.whiteScreenConfig,h=f===void 0?{target:document.body,screenshot:!0,score:1.5,domDepth:6}:f;this.appKey=s,this.sdkVersion="1.1.6",this.ratio=Math.max(0,Math.min(a,100)),this.env=c,this.appVersion=d,this.whiteScreenConfig=h,this.sid=this.sessionid(),this.timeDifference=0,this.host="qapm.360.cn"}var t,n;return t=e,n=[{key:"getUA",value:function(){var r,s=new Gle.UAParser().getResult();if(s.browser.name==="360 Browser"){var o=window.navigator.userAgent;/360EE/.test(o)&&(s.browser.name="360极速浏览器"),/360SE/.test(o)&&(s.browser.name="360安全浏览器")}return{os:s.os.name,osVersion:s.os.version,browser:s.browser.name,browserVersion:s.browser.version,ua:s.ua,device:s.device.model||"Unknow",deviceType:s.device.type||"Pc",network:(r=window.navigator)===null||r===void 0||(r=r.connection)===null||r===void 0?void 0:r.effectiveType}}},{key:"uid",value:function(){if(localStorage.getItem("__QAPM_UID__"))return localStorage.getItem("__QAPM_UID__");var r=this.mid()||yA(""+Date.now()+1e9*Math.random());return localStorage.setItem("__QAPM_UID__",r),r}},{key:"mid",value:function(){var r="";try{r=external.GetMID(external.GetSID(window))}catch(s){}if(!r)try{r=window.wdextcmd.GetMid()}catch(s){}return r||""}},{key:"sessionid",value:function(){return yA(""+Date.now()+1e9*Math.random())}},{key:"isIE",value:function(){var r=window.navigator.userAgent;return r.indexOf("MSIE")!==-1||r.indexOf("Trident")!==-1}},{key:"padLeft",value:function(r,s,o){for(var a=r+"";a.length<s;)a=(o||"0")+a;return a}},{key:"formatTime",value:function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Y-m-d H:i:s";return r?(typeof r!="number"&&typeof r!="string"||r.length===10&&(r*=1e3),r=new Date(r),s.replace(/Y/g,this.padLeft(r.getFullYear(),4)).replace(/m/g,this.padLeft(r.getMonth()+1,2)).replace(/d/g,this.padLeft(r.getDate(),2)).replace(/H/g,this.padLeft(r.getHours(),2)).replace(/i/g,this.padLeft(r.getMinutes(),2)).replace(/s/g,this.padLeft(r.getSeconds(),2))):""}},{key:"formatDate",value:function(r){return this.formatTime(r,"Y-m-d")}},{key:"getTime",value:function(){var r=new Date().getTime()+this.timeDifference;return{time:this.formatTime(r)||r,date:this.formatDate(r)||r}}},{key:"calcRatio",value:function(){return Math.floor(100*Math.random())<this.ratio}},{key:"initTime",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{var s=new URL("".concat(window.location.protocol,"//").concat(this.host,"/time"));Object.entries(r).map(function(o){var a=uQ(o,2),l=a[0],c=a[1];s.searchParams.set(l,c)}),this.fetch(s.toString())}catch(o){console.error("initTime Error",o)}}},{key:"fetch",get:function(){return window.fetch?window.fetch.bind(window):function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(o,a){var l=new XMLHttpRequest;s.keepalive&&(l.keepalive=!0),l.open(s.method||"GET",r),l.onload=function(){o({text:function(){return Promise.resolve(l.responseText)}})},l.onerror=function(){a(l)},l.send(s.body)})}}}],n&&cQ(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),_A=function(e,t){if(PerformanceObserver)if((PerformanceObserver.supportedEntryTypes||[]).includes(e))try{new PerformanceObserver(function(n){n&&t(n)}).observe({type:e,buffered:!0})}catch(n){t("err")}else t("err");else t("err")},Nn=function(e){var t=Math.min(Math.max(e,0),15e3);return Number.isNaN(t)?0:t%1!=0?Number(t.toFixed(2)):t},Kle=function(){function e(t){gh(this,e),ws(this,"performanceData",{fcp:0,fp:0,lcp:0}),ws(this,"commit",function(){}),this.webCoreIns=t}return mh(e,[{key:"init",value:function(){try{if(!((t=window.performance)&&t.getEntriesByType&&t.timing))return;this.calcPerformanceTime()}catch(n){}var t}},{key:"calcNavigation",value:function(t){}},{key:"calcPerformanceTime",value:function(){var t=this;Promise.all([new Promise(function(n,r){var s=window.performance.timing,o=null;window.addEventListener("load",function a(){if(s.loadEventEnd>0){clearTimeout(o);var l=Nn(s.unloadEnd-s.unloadStart),c=Nn(s.redirectStart-s.redirectEnd),u=Nn(s.domainLookupStart-s.fetchStart),d=Nn(s.domainLookupEnd-s.domainLookupStart),f=Nn(s.connectEnd-s.connectStart),h=Nn(s.secureConnectionStart==0?0:s.connectEnd-s.secureConnectionStart),g=Nn(s.responseStart-s.requestStart),v=Nn(s.domInteractive-s.fetchStart),y=Nn(s.responseEnd-s.responseStart),_=Nn(s.domContentLoadedEventEnd-s.fetchStart),w=Nn(s.domInteractive-s.responseEnd),A=Nn(s.loadEventStart-s.domContentLoadedEventEnd),C=Nn(s.loadEventEnd-s.loadEventStart),S=Nn(s.loadEventEnd-s.fetchStart);n({unloadTime:l,redirectTime:c,appCacheTime:u,dnsTime:d,tcpTime:f,sslTime:h,ttfb:g,contentTime:y,domParseTime:w,tti:v,domReadyTime:_,loadEventTime:C,loadFinishTime:S,loadResourceTime:A,resource:""})}else o=setTimeout(a,100)},!1)}),new Promise(function(n,r){_A("paint",function(s){var o=0,a=0;if(s!=="err"){var l,c=jv(s.getEntries());try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.name,f=u.startTime;d==="first-paint"&&(o=Nn(f)),d==="first-contentful-paint"&&(a=Nn(f))}}catch(h){c.e(h)}finally{c.f()}}n({fp:o,fcp:a})})}).catch(function(n){return console.log(n)}),new Promise(function(n,r){_A("largest-contentful-paint",function(s){if(s=="err")n({lcp:0});else{var o,a=jv(s.getEntries());try{for(a.s();!(o=a.n()).done;){var l=o.value;n({lcp:Nn(l.startTime)})}}catch(c){a.e(c)}finally{a.f()}}})}).catch(function(n){return console.log(n)})]).then(function(){var n=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).reduce(function(r,s){return fu(fu({},r),s)},t.performanceData);n.type="performance",t.webCoreIns.commit(n)}).catch(function(n){console.log(n)})}},{key:"calcResourceTime",value:function(){}}]),e}(),Jle=["SCRIPT","STYLE","META","HEAD"];function uy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.body,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;if(!e||n>r||Jle.indexOf(e.tagName)>-1||s&&t>s)return n;var o=function(a,l){if(!l||!document.querySelector(a.tagName))return 0;var c=a.getBoundingClientRect(),u=c.top,d=c.height;return u>window.innerHeight||d<=0?0:1/Math.pow(2,l-1)}(e,t);return[].reduceRight.call(e.children,function(a,l){return uy(l,t+1,a,r,s)},n+o)}var Yle=0,dy={},Xle=function(e){if(!e)return Promise.reject("empty url");var t=dy[e];return t?Promise.resolve(t):new Promise(function(n,r){var s=document.createElement("script");if(s.id="script".concat(Yle++),s.src=e,s.async="async",s.src.indexOf("http")!==0)throw Error("load-script只能加载http/https协议的url,当前协议是".concat(location.protocol));s.onerror=function(o){$("#".concat(s.id)).remove(),r(o)},s.readyState?s.onreadystatechange=function(o){s.readyState!="loaded"&&s.readyState!="complete"||(s.onreadystatechange=null,dy[e]=o,n(o))}:s.onload=function(o){dy[e]=o,n(o)},document.body.appendChild(s)})};function Zle(e,t){return wA.apply(this,arguments)}function wA(){return(wA=hu(lr().mark(function e(t,n){var r,s,o;return lr().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Xle("https://html2canvas.hertzen.com/dist/html2canvas.min.js");case 2:return a.next=4,html2canvas(document.body,{useCORS:!0});case 4:return r=a.sent,s=r.toDataURL("image/jpeg",.3),o=Qle(s),a.next=9,ece(o,t,n);case 9:return a.abrupt("return",a.sent);case 10:case"end":return a.stop()}},e)}))).apply(this,arguments)}function Qle(e){for(var t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),s=r.length,o=new Uint8Array(s);s--;)o[s]=r.charCodeAt(s);return new Blob([o],{type:n})}function ece(e,t,n){return CA.apply(this,arguments)}function CA(){return(CA=hu(lr().mark(function e(t,n,r){var s,o;return lr().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return(s=new FormData).append("filename",t,"".concat(r,".png")),s.append("https",1),a.next=5,n("//qapm.360.cn/api/upload/uploadImg",{method:"POST",body:s,keepalive:!0}).then(function(l){return l.json()});case 5:return o=a.sent,a.abrupt("return",o);case 7:case"end":return a.stop()}},e)}))).apply(this,arguments)}var tce=function(){function e(n){gh(this,e),ws(this,"isLoaded",!1),ws(this,"timer",null),ws(this,"whiteCount",0),ws(this,"maxLoopNumber",2),ws(this,"isReport",!1),this.webCoreIns=n;var r=n.config.whiteScreenConfig||{},s=r.target,o=r.score,a=o===void 0?1.5:o;r.screenshot;var l=r.domDepth,c=l===void 0?6:l;this.target=s,this.score=a,this.screenshot=!1,this.domDepth=c,this.fetch=n.fetch}var t;return mh(e,[{key:"init",value:function(){var n=this;window.addEventListener("load",function(){n.isLoaded=!0,n.handle()}),window.addEventListener("error",function(){n.isLoaded&&(n.whiteCount=n.maxLoopNumber,n.handle())})}},{key:"getTarget",value:function(){var n;try{n=this.target?document.querySelector(this.target):document.body}catch(r){console.log("sdk入参target有误:",this.target)}return n||console.log("sdk入参target有误:",this.target),n||document.body}},{key:"handle",value:function(){var n=uy(this.getTarget(),0,0,this.score,this.domDepth);this.whiteCount+=1,n<=this.score?this.openLoopToJudge(n):this.whiteCount=0}},{key:"openLoopToJudge",value:function(n){var r=this;this.whiteCount>=this.maxLoopNumber?this.commit(n):this.timer=setTimeout(function(){var s=uy(r.target,0,0,r.score,r.domDepth);r.whiteCount+=1,s<=r.score?(clearTimeout(r.timer),r.timer=null,r.openLoopToJudge(s)):(clearTimeout(r.timer),r.timer=null,r.whiteCount=0)},1e3)}},{key:"commit",value:(t=hu(lr().mark(function n(r){return lr().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!this.isReport){s.next=2;break}return s.abrupt("return");case 2:this.isReport=!0,this.screenshot&&Zle(this.fetch,this.webCoreIns.sid),this.webCoreIns.commit({type:"whiteScreen",score:r});case 5:case"end":return s.stop()}},n,this)})),function(n){return t.apply(this,arguments)})}]),e}(),nce=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,yp="js",$u="resource",SA="unhandledrejection",_p="cors",EA="vue",xA="react";function ice(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wp,Vu,AA={exports:{}},PA={exports:{}};wp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vu={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&Vu.rotl(e,8)|4278255360&Vu.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=Vu.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],n=0;n<e.length;n+=3)for(var r=e[n]<<16|e[n+1]<<8|e[n+2],s=0;s<4;s++)8*n+6*s<=8*e.length?t.push(wp.charAt(r>>>6*(3-s)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,r=0;n<e.length;r=++n%4)r!=0&&t.push((wp.indexOf(e.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<2*r|wp.indexOf(e.charAt(n))>>>6-2*r);return t}},PA.exports=Vu;var rce=PA.exports,fy={utf8:{stringToBytes:function(e){return fy.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(fy.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},TA=fy,sce=function(e){return e!=null&&(OA(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&OA(t.slice(0,0))}(e)||!!e._isBuffer)};function OA(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}(function(){var e=rce,t=TA.utf8,n=sce,r=TA.bin,s=function(o,a){o.constructor==String?o=a&&a.encoding==="binary"?r.stringToBytes(o):t.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):Array.isArray(o)||o.constructor===Uint8Array||(o=o.toString());for(var l=e.bytesToWords(o),c=8*o.length,u=1732584193,d=-271733879,f=-1732584194,h=271733878,g=0;g<l.length;g++)l[g]=16711935&(l[g]<<8|l[g]>>>24)|4278255360&(l[g]<<24|l[g]>>>8);l[c>>>5]|=128<<c%32,l[14+(c+64>>>9<<4)]=c;var v=s._ff,y=s._gg,_=s._hh,w=s._ii;for(g=0;g<l.length;g+=16){var A=u,C=d,S=f,x=h;u=v(u,d,f,h,l[g+0],7,-680876936),h=v(h,u,d,f,l[g+1],12,-389564586),f=v(f,h,u,d,l[g+2],17,606105819),d=v(d,f,h,u,l[g+3],22,-1044525330),u=v(u,d,f,h,l[g+4],7,-176418897),h=v(h,u,d,f,l[g+5],12,1200080426),f=v(f,h,u,d,l[g+6],17,-1473231341),d=v(d,f,h,u,l[g+7],22,-45705983),u=v(u,d,f,h,l[g+8],7,1770035416),h=v(h,u,d,f,l[g+9],12,-1958414417),f=v(f,h,u,d,l[g+10],17,-42063),d=v(d,f,h,u,l[g+11],22,-1990404162),u=v(u,d,f,h,l[g+12],7,1804603682),h=v(h,u,d,f,l[g+13],12,-40341101),f=v(f,h,u,d,l[g+14],17,-1502002290),u=y(u,d=v(d,f,h,u,l[g+15],22,1236535329),f,h,l[g+1],5,-165796510),h=y(h,u,d,f,l[g+6],9,-1069501632),f=y(f,h,u,d,l[g+11],14,643717713),d=y(d,f,h,u,l[g+0],20,-373897302),u=y(u,d,f,h,l[g+5],5,-701558691),h=y(h,u,d,f,l[g+10],9,38016083),f=y(f,h,u,d,l[g+15],14,-660478335),d=y(d,f,h,u,l[g+4],20,-405537848),u=y(u,d,f,h,l[g+9],5,568446438),h=y(h,u,d,f,l[g+14],9,-1019803690),f=y(f,h,u,d,l[g+3],14,-187363961),d=y(d,f,h,u,l[g+8],20,1163531501),u=y(u,d,f,h,l[g+13],5,-1444681467),h=y(h,u,d,f,l[g+2],9,-51403784),f=y(f,h,u,d,l[g+7],14,1735328473),u=_(u,d=y(d,f,h,u,l[g+12],20,-1926607734),f,h,l[g+5],4,-378558),h=_(h,u,d,f,l[g+8],11,-2022574463),f=_(f,h,u,d,l[g+11],16,1839030562),d=_(d,f,h,u,l[g+14],23,-35309556),u=_(u,d,f,h,l[g+1],4,-1530992060),h=_(h,u,d,f,l[g+4],11,1272893353),f=_(f,h,u,d,l[g+7],16,-155497632),d=_(d,f,h,u,l[g+10],23,-1094730640),u=_(u,d,f,h,l[g+13],4,681279174),h=_(h,u,d,f,l[g+0],11,-358537222),f=_(f,h,u,d,l[g+3],16,-722521979),d=_(d,f,h,u,l[g+6],23,76029189),u=_(u,d,f,h,l[g+9],4,-640364487),h=_(h,u,d,f,l[g+12],11,-421815835),f=_(f,h,u,d,l[g+15],16,530742520),u=w(u,d=_(d,f,h,u,l[g+2],23,-995338651),f,h,l[g+0],6,-198630844),h=w(h,u,d,f,l[g+7],10,1126891415),f=w(f,h,u,d,l[g+14],15,-1416354905),d=w(d,f,h,u,l[g+5],21,-57434055),u=w(u,d,f,h,l[g+12],6,1700485571),h=w(h,u,d,f,l[g+3],10,-1894986606),f=w(f,h,u,d,l[g+10],15,-1051523),d=w(d,f,h,u,l[g+1],21,-2054922799),u=w(u,d,f,h,l[g+8],6,1873313359),h=w(h,u,d,f,l[g+15],10,-30611744),f=w(f,h,u,d,l[g+6],15,-1560198380),d=w(d,f,h,u,l[g+13],21,1309151649),u=w(u,d,f,h,l[g+4],6,-145523070),h=w(h,u,d,f,l[g+11],10,-1120210379),f=w(f,h,u,d,l[g+2],15,718787259),d=w(d,f,h,u,l[g+9],21,-343485551),u=u+A>>>0,d=d+C>>>0,f=f+S>>>0,h=h+x>>>0}return e.endian([u,d,f,h])};s._ff=function(o,a,l,c,u,d,f){var h=o+(a&l|~a&c)+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._gg=function(o,a,l,c,u,d,f){var h=o+(a&c|l&~c)+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._hh=function(o,a,l,c,u,d,f){var h=o+(a^l^c)+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._ii=function(o,a,l,c,u,d,f){var h=o+(l^(a|~c))+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._blocksize=16,s._digestsize=16,AA.exports=function(o,a){if(o==null)throw new Error("Illegal argument "+o);var l=e.wordsToBytes(s(o,a));return a&&a.asBytes?l:a&&a.asString?r.bytesToString(l):e.bytesToHex(l)}})();var oce=ice(AA.exports);function ace(e){var t=e.match(nce);return t?{filename:t[2],functionName:t[1]||"",lineno:parseInt(t[3],10)||void 0,colno:parseInt(t[4],10)||void 0}:{}}function Cp(e){var t=(e||{stack:""}).stack;if(!t)return[];var n,r=[],s=jv(t.split(`
|
|
154
|
-
`).slice(1));try{for(s.s();!(n=s.n()).done;){var o=ace(n.value);o&&r.push(o)}}catch(a){s.e(a)}finally{s.f()}return r.slice(0,10)}var jl=function(e){return oce(e).toString()},hy=function(e){return e instanceof ErrorEvent?e.message==="Script error."?_p:yp:$u},lce=function(){function e(t){gh(this,e),ws(this,"errorIdSet",new Set),this.webCoreIns=t,this.errorIdSet=new Set}return mh(e,[{key:"init",value:function(){var t;if(this.initJsError(),this.initResourceError(),this.initPromiseError(),this.initCorsError(),(t=window.__QAPM__)!==null&&t!==void 0&&(t=t.q)!==null&&t!==void 0&&t.length){var n={error:this.onJSError.bind(this),reject:this.onPromiseError.bind(this)};window.__QAPM__.q.forEach(function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=r.type,o=r.event,a=n[s];a&&a(o)}),window.__QAPM__.q=[]}}},{key:"initJsError",value:function(){var t=this;window.addEventListener("error",function(n){return t.onJSError(n)},!0)}},{key:"initResourceError",value:function(){var t=this;window.addEventListener("error",function(n){return t.onResourceError(n)},!0)}},{key:"initPromiseError",value:function(){var t=this;window.addEventListener("unhandledrejection",function(n){return t.onPromiseError(n)},!0)}},{key:"initCorsError",value:function(){var t=this;window.addEventListener("error",function(n){return function(r){if(hy(r)===_p){var s={errorType:_p,errorMessage:r.message,errorSummary:"CorsError",errorId:jl("".concat(_p,"-").concat(r.message))};t.commit(s)}}(n)},!0)}},{key:"onResourceError",value:function(t){if(hy(t)===$u){var n=t.target||t.srcElement,r=n.src||n.href,s=JSON.stringify($u+": "+r||"UnKnown Resource"),o={errorType:$u,errorMessage:s,errorSummary:"ResourceError",errorId:jl("".concat($u,"-").concat(s))};this.commit(o)}}},{key:"onJSError",value:function(t){var n,r;if(hy(t)===yp){var s=JSON.stringify(t.message),o=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"unknown";if(!l)return c;try{var u=new URL(l);return u.pathname&&u.pathname.endsWith(".js")?l:c}catch(d){return l}}(t.filename,(n=this.webCoreIns.config)===null||n===void 0?void 0:n.appKey),a={errorType:yp,errorMessage:s,errorSummary:t.error&&((r=t.error)===null||r===void 0?void 0:r.name)||"UnKnown",errorStack:JSON.stringify(Cp(t.error)),errorId:jl("".concat(yp,"-").concat(s,"-").concat(o))};this.commit(a)}}},{key:"onPromiseError",value:function(t){var n,r,s=JSON.stringify(((n=t.reason)===null||n===void 0?void 0:n.message)||t.reason||"UnKnown"),o=((r=t.reason)===null||r===void 0?void 0:r.name)||"UnKnown",a={errorType:SA,errorMessage:s,errorSummary:o,errorStack:JSON.stringify(Cp(t.reason)),errorId:jl("".concat(SA,"-").concat(s,"-").concat(o))};this.commit(a)}},{key:"onVueError",value:function(t,n,r){var s=JSON.stringify(t.message),o={errorType:EA,errorMessage:s,errorSummary:t.name||"UnKnown",errorStack:JSON.stringify(Cp(t)),errorId:jl("".concat(EA,"-").concat(s,"-").concat(t.name))};this.commit(o)}},{key:"onReactError",value:function(t,n){var r=JSON.stringify(t.message),s={errorType:xA,errorMessage:r,errorSummary:t.name||"UnKnown",errorStack:JSON.stringify(Cp(t)),errorId:jl("".concat(xA,"-").concat(r,"-").concat(t.name))};this.commit(s)}},{key:"commit",value:function(t){var n=t.errorId;this.errorIdSet.has(n)||(this.errorIdSet.add(n),this.webCoreIns.commit(fu({type:"error"},t)))}}]),e}(),cce=function(e){function t(){var s,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return gh(this,t),(s=oQ(this,t,[o])).config=o,s.isReport()?(s.PerformancePluginInstance=new Kle(pu(s)),s.WhiteScreenPluginInstance=new tce(pu(s)),s.ErrorPluginInstance=new lce(pu(s)),s.plugins=[s.PerformancePluginInstance,s.WhiteScreenPluginInstance,s.ErrorPluginInstance],s.init(),i5(t,t,Ul,pu(s)),s):e5(s)}var n,r;return function(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),o&&Bv(s,o)}(t,Wle),mh(t,[{key:"isReport",value:function(){var s=this.isIE(),o=this.calcRatio();return this.config.appKey&&o&&!s}},{key:"init",value:(r=hu(lr().mark(function s(){return lr().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:this.initTime(this.mixed()),this.plugins.forEach(function(a){try{a.init()}catch(l){console.error("initPlugin Error",l)}});case 2:case"end":return o.stop()}},s,this)})),function(){return r.apply(this,arguments)})},{key:"mixed",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=this.uid(),a=this.getTime(),l=a.time,c=a.date,u=this.getUA(),d=window.location,f=d.host,h=d.origin,g=d.pathname;return fu(fu({uid:o,sid:this.sid,url:window.location.href,host:f,fullPath:h+g,sdkVersion:this.sdkVersion,createDate:c,appKey:this.config.appKey,createTime:l,appVersion:this.appVersion,env:this.env},u),s)}},{key:"commit",value:(n=hu(lr().mark(function s(o){var a,l;return lr().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:try{a=this.mixed(o),l=new URL("".concat(window.location.protocol,"//").concat(this.host,"/log.gif")),Object.entries(a).map(function(u){var d=aQ(u,2),f=d[0],h=d[1];l.searchParams.set(f,h)}),new Image().src=l.toString()}catch(u){console.log("commit Error",u)}case 1:case"end":return c.stop()}},s,this)})),function(s){return n.apply(this,arguments)})}],[{key:"install",value:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};bh(t,t,Ul)||(s.config.errorHandler=function(a,l,c){bh(t,t,Ul).ErrorPluginInstance.onVueError(a,l,c),console.error(a)},i5(t,t,Ul,new t(o)))}},{key:"sendError",value:function(s){bh(t,t,Ul)?bh(t,t,Ul).ErrorPluginInstance.onReactError(s):console.error("QAPM: 请先初始化 QAPM!")}}]),t}(),Ul={writable:!0,value:null};const Tge="",Oge="",uce={components:{InfoFilled:_m,ArrowRight:bm},mixins:[Rr],inject:["hasLevel"],props:{axis:{required:!0,type:Object,default:()=>({x:0,y:0})},show:{required:!0,type:Boolean,default:!1},nodeInfo:{required:!0,type:Array,default:()=>[]},menuOptions:{required:!0,type:Array,default:()=>[]},border:{type:Boolean,required:!1,default:!0},itemWidth:{type:Number,required:!1,default:206},itemHeight:{type:Number,required:!1,default:36},itemSize:{type:Number,required:!1,default:14},offset:{type:Object,required:!1,default:()=>({x:6,y:2})},borderWidth:{type:Number,required:!1,default:6},history:{type:Object,required:!0,default:()=>{}},moduleDetail:{type:Object,required:!0,default:()=>{}}},emits:["contextmenu-click"],data(){return{checkedItems:{},globalMenus:NH,maxMulti:6}},computed:{checkboxMenu(){return this.nodeInfo.length>1?[]:this.menuOptions},canGoDetail(){var e,t,n,r;return((t=(e=this.moduleDetail)==null?void 0:e.config)==null?void 0:t.jumpDetail)&&((r=this.moduleDetail)==null?void 0:r.config.jumpRule[(n=this.nodeInfo[0])==null?void 0:n.type])},systemMenu(){var r,s,o,a,l,c,u;const e=[];if(this.nodeInfo.length===1){const d=this.nodeInfo[0];d.type!=="aggregation"&&d.type!=="nodeType"&&(e.push(q0),(r=this.history.keyNodeIds)!=null&&r.some(_=>_===d.id)||(e.push(W0),(o=(s=this.moduleDetail)==null?void 0:s.config)!=null&&o.hideCollectMenu||e.push(d.collect?G0:H0),e.push(d.textProp==="name"?$0:U0),d.label&&e.push(d.textProp==="label"?V0:z0)),this.canGoDetail&&e.push(a8)),e.push(d.fx?j0:B0);const f=this.history.dataNow.links.some(y=>y.source.id===d.id&&y.target.type==="aggregation"),v=this.history.dataNow.links.filter(y=>y.source.id===d.id).map(y=>y.target).some(y=>{let _=0;return this.history.dataNow.links.map(w=>{w.source.id===y.id&&_++}),_===0});f||d.type==="aggregation"?e.push(r8):v&&e.push(i8),v&&e.push(n8),e.push(K0)}else this.nodeInfo.length>1?(e.push(W0,q0),e.push(this.nodeInfo.some(f=>!f.collect)?H0:G0),this.nodeInfo.some(f=>f.label)&&e.push(this.nodeInfo.some(f=>f.textProp!=="label")?z0:V0),e.push(this.nodeInfo.some(f=>f.textProp!=="name")?U0:$0),e.push(this.nodeInfo.some(f=>!f.fx)?B0:j0),e.push(K0)):this.nodeInfo.length===0&&(this.history.dataNow.nodes.some(f=>f.label)&&e.push(this.history.dataNow.nodes.some(f=>f.textProp!=="label")?QS:ZS),e.push(this.history.dataNow.nodes.some(f=>f.textProp!=="name")?YS:XS),e.push(this.history.dataNow.nodes.some(f=>!f.fx)?KS:JS),this.history.currentIndex>0&&e.push(e8),this.history.currentIndex<this.history.length-1&&e.push(t8));const t=(a=this.nodeInfo[0])==null?void 0:a.type,n=(u=(c=(l=this.nodeInfo[0])==null?void 0:l.detail)==null?void 0:c.info)==null?void 0:u.extraNodeContextMenus;return t!=="nodeType"&&(n!=null&&n.length)&&(n.forEach(d=>{d.icon||(d.icon="button_edit_label")}),e.push(...n)),e},totalHeight(){let e=this.menuOptions.length*(this.itemHeight+5)+10+44+48+5,t=this.systemMenu.length*(this.itemHeight+5)+10+44+5;return e=this.menuOptions.length===0?0:44,t=this.systemMenu.length===0?0:44,e+t},axisComputed(){const e=document.getElementsByClassName("d3-container")[0],t=this.axis.top-e.offsetTop;return{top:(t<e.offsetHeight/2?Math.min(t+this.offset.y,Math.max(e.offsetHeight-this.totalHeight,e.getBoundingClientRect().top)):Math.max(t+this.offset.y,this.totalHeight+e.getBoundingClientRect().top))+"px",left:this.axis.left+this.offset.x+"px",transform:`translate(${this.axis.left>e.offsetWidth/2?"-100%":"0%"}, ${t>e.offsetHeight/2?"-100%":"0%"})`}},liStyle(){return{width:this.itemWidth+"px",height:this.itemHeight+"px",lineHeight:this.itemHeight+"px",fontSize:this.itemSize+"px"}},firstLeft(){const e=document.body.offsetWidth;return this.axis.left+this.itemWidth*2>=e},secondLeft(){const e=document.body.offsetWidth;return this.axis.left+this.itemWidth*3>=e},checkedItemsFinal(){return Object.keys(this.checkedItems).filter(e=>this.checkedItems[e]).map(e=>this.checkedItems[e])},haveInterface(){let e=!1;return this.menuOptions.map(t=>{t.type===1&&(e=!0)}),e}},watch:{show(){this.checkedItems={}}},methods:{handleCollapse(){},isSystemItem(e){return e.type===2},isExternalItem(e){return e.type===3},hasChildren(e){var t;return((t=e==null?void 0:e.children)==null?void 0:t.length)>0},onCheck(e,t){this.checkedItems[t.name]=e.currentTarget.checked?t:!1},secondBorderCheck(e,t=0){const n=document.body.offsetWidth,r=document.body.offsetHeight,s=this.axis.top+(e+t)*this.itemHeight;return{width:this.itemWidth*2+60+"px",left:this.axis.left+this.itemWidth*2>=n?"-100%":"100%",top:r>=s?0:"auto",bottom:r<s?0:"auto"}},thirdBorderCheck(e,t,n,r){const s=document.body.offsetWidth,o=document.body.offsetHeight,a=this.secondBorderCheck(e,n).top;let l;const c=(t+r)*this.itemHeight,u=c>180?180:c;return a===0?l=this.axis.top+e*this.itemHeight+u:l=this.axis.top-e*this.itemHeight+u,{left:this.axis.left+this.itemWidth*3>=s?"-100%":"100%",bottom:o>=l?0:"auto",top:o<l?0:"auto"}},handleClick(e,t){if(!t){if(Fn({cId:"contextMenu-"+e.name,c:"右键菜单-"+e.namec}),e.has_child>0)return!1;Ye(this,"contextmenu-click",{nodes:this.nodeInfo,api:e})}},handleDataClick(e,t){Fn({cId:"contextMenu-"+e.name,c:"右键菜单-"+e.namec}),Ye(this,"contextmenu-click",{nodes:this.nodeInfo,api:t,dataApi:e}),this.checkedItems={}}}},dce={"aria-hidden":"true",style:{position:"absolute",width:"0",height:"0",overflow:"hidden",display:"none"}},fce={class:"cm-list"},hce={class:"cm-ul"},pce={class:"hd"},gce=["src"],mce={class:"bd"},vce={class:"cm-ul cm-ul-level1"},bce=["title"],yce=["title","onClick"],_ce=["title","onClick"],wce={key:0,class:"icon","aria-hidden":"true"},Cce=["title","onClick"],Sce=["src"],Ece=["title","onClick"],xce={key:0,class:"fas el-icon-fa-cog"},Ace={key:1,class:"fas el-icon-fa-external-link-alt"},Pce={class:"text-wrapper"},Tce=["src"],Oce=["src"],Nce={key:3,class:"shortcut"},Ice={key:2,class:"icon","aria-hidden":"true"},Rce=["title","onClick"],Dce={key:1,class:"icon","aria-hidden":"true"},Lce=["title","onClick"];function kce(e,t,n,r,s,o){const a=Ge("ArrowRight"),l=jt,c=Ge("InfoFilled"),u=fi;return n.show?(R(),V("div",{key:0,class:"cm-container",style:Ze(o.axisComputed),onClick:t[1]||(t[1]=mt((...d)=>o.handleCollapse&&o.handleCollapse(...d),["stop"]))},[(R(),V("svg",dce,t[2]||(t[2]=[G("symbol",{id:"icon-arrow-right",viewBox:"0 0 1024 1024"},[G("path",{d:"M288.791335 65.582671l446.41733 446.417329-446.41733 446.417329z"})],-1)]))),G("div",fce,[G("ul",hce,[o.checkboxMenu.length>0?(R(),V("li",{key:0,class:"cm-li data-opt-wrapper",style:Ze(o.liStyle)},[G("div",pce,[G("img",{src:e.imgPath["./public/d3svg1/button18/button_relation.svg"],style:{"margin-right":"10px"}},null,8,gce),t[3]||(t[3]=Je("按关系分类拓线")),ne(l,null,{default:te(()=>[ne(a)]),_:1})]),G("div",mce,[G("ul",vce,[(R(!0),V(qe,null,Nt(o.checkboxMenu,(d,f)=>(R(),V("li",{key:f,class:"cm-li context-one",style:Ze(o.liStyle)},[o.hasChildren(d)?(R(),V("div",{key:0,class:Z(["cm-item",o.firstLeft?"cm-left":""]),title:d.namec},[G("span",null,Ne(d.namec),1),t[4]||(t[4]=G("svg",{class:"icon","aria-hidden":"true"},[G("use",{"xlink:href":"#icon-arrow-right"})],-1))],10,bce)):(R(),V("div",{key:1,class:Z(["cm-item",o.firstLeft?"cm-left":""]),title:d.namec,onClick:mt(h=>o.handleDataClick(d,s.globalMenus.expandPartNode),["stop"])},[G("span",null,Ne(d.namec),1)],10,yce)),o.hasChildren(d)?(R(),V("ul",{key:2,class:"cm-ul cm-ul-level2",style:Ze(o.secondBorderCheck(f,d.children.length))},[(R(!0),V(qe,null,Nt(d.children,(h,g)=>(R(),V("li",{key:g,class:"cm-li",style:Ze(o.liStyle)},[G("div",{class:Z(["cm-item",o.secondLeft?"cm-left":""]),title:h.namec,onClick:mt(v=>o.handleDataClick(h,s.globalMenus.expandPartNode),["stop"])},[G("span",null,Ne(h.namec),1),o.hasChildren(h)?(R(),V("svg",wce,t[5]||(t[5]=[G("use",{"xlink:href":"#icon-arrow-right"},null,-1)]))):se("",!0)],10,_ce),o.hasChildren(h)?(R(),V("ul",{key:0,class:"cm-ul cm-ul-level3",style:Ze(o.thirdBorderCheck(f,g,d.children.length,h.children.length))},[(R(!0),V(qe,null,Nt(h.children,(v,y)=>(R(),V("li",{key:y,class:"cm-li",style:Ze(o.liStyle)},[G("div",{class:"cm-item",title:v.namec,onClick:mt(_=>o.handleDataClick(v,s.globalMenus.expandPartNode),["stop"])},[G("span",null,Ne(v.namec),1)],8,Cce)],4))),128))],4)):se("",!0)],4))),128))],4)):se("",!0)],4))),128))])])],4)):n.nodeInfo.length>1&&n.nodeInfo.length<s.maxMulti?(R(),V("li",{key:1,class:"cm-li data-opt-wrapper data-opt-all",style:Ze(o.liStyle)},[G("div",{class:"hd",onClick:t[0]||(t[0]=mt(d=>o.handleDataClick(null,s.globalMenus.expandNode),["stop"]))},[G("img",{src:e.imgPath["./public/d3svg1/button18/button_relation.svg"],style:{"margin-right":"10px"}},null,8,Sce),t[6]||(t[6]=Je("展开全部关系 "))]),t[7]||(t[7]=G("div",{class:"bd"},null,-1))],4)):se("",!0),(R(!0),V(qe,null,Nt(o.systemMenu,(d,f)=>(R(),V("li",{key:f,class:"cm-li",style:Ze(o.liStyle)},[G("div",{class:Z(["cm-item",{"cm-left":o.firstLeft,disabled:d.disabled}]),title:d.namec,onClick:mt(h=>o.handleClick(d,d.disabled),["stop"])},[o.isSystemItem(d)?(R(),V("i",xce)):o.isExternalItem(d)?(R(),V("i",Ace)):se("",!0),G("div",Pce,[d.icon?(R(),V("img",{key:0,src:e.imgPath["./public/d3svg1/button18/"+d.icon+".svg"],class:"t-icon"},null,8,Tce)):(R(),V("img",{key:1,src:e.imgPath["./public/d3svg1/button18/button_"+d.name+".svg"],class:"t-icon"},null,8,Oce)),d.tooltip?(R(),_e(u,{key:2,class:"el-icon-info",effect:"dark",content:d.tooltip,placement:"top-start"},{default:te(()=>[ne(l,null,{default:te(()=>[ne(c)]),_:1})]),_:2},1032,["content"])):se("",!0),G("span",null,Ne(d.namec),1),d.shortcut?(R(),V("span",Nce,Ne(d.shortcut),1)):se("",!0)]),o.hasChildren(d)?(R(),V("svg",Ice,t[8]||(t[8]=[G("use",{"xlink:href":"#icon-arrow-right"},null,-1)]))):se("",!0)],10,Ece),o.hasChildren(d)?(R(),V("ul",{key:0,class:"cm-ul cm-ul-level2",style:Ze(o.secondBorderCheck(f,d.children.length))},[(R(!0),V(qe,null,Nt(d.children,(h,g)=>(R(),V("li",{key:g,class:"cm-li",style:Ze(o.liStyle)},[G("div",{class:Z(["cm-item",{"cm-left":o.secondLeft,disabled:d.disabled||h.disabled}]),title:h.namec,onClick:mt(v=>o.handleClick(h,d.disabled||h.disabled),["stop"])},[h.tooltip?(R(),_e(u,{key:0,class:"el-icon-info",effect:"dark",content:h.tooltip,placement:"top-start"},{default:te(()=>[ne(l,null,{default:te(()=>[ne(c)]),_:1})]),_:2},1032,["content"])):se("",!0),G("span",null,Ne(h.namec),1),o.hasChildren(h)?(R(),V("svg",Dce,t[9]||(t[9]=[G("use",{"xlink:href":"#icon-arrow-right"},null,-1)]))):se("",!0)],10,Rce),o.hasChildren(h)?(R(),V("ul",{key:0,class:"cm-ul cm-ul-level3",style:Ze(o.thirdBorderCheck(f,g,d.children.length,h.children.length))},[(R(!0),V(qe,null,Nt(h.children,(v,y)=>(R(),V("li",{key:y,class:"cm-li",style:Ze(o.liStyle)},[G("div",{class:Z(["cm-item",{disabled:d.disabled||h.disabled||v.disabled}]),title:v.namec,onClick:mt(_=>o.handleClick(v,d.disabled||h.disabled||v.disabled),["stop"])},[v.tooltip?(R(),_e(u,{key:0,class:"el-icon-info",effect:"dark",content:v.tooltip,placement:"top-start"},{default:te(()=>[ne(l,null,{default:te(()=>[ne(c)]),_:1})]),_:2},1032,["content"])):se("",!0),G("span",null,Ne(v.namec),1)],10,Lce)],4))),128))],4)):se("",!0)],4))),128))],4)):se("",!0)],4))),128))])])],4)):se("",!0)}const Mce=un(uce,[["render",kce],["__scopeId","data-v-dd8dd8d0"]]),Nge="",Ige="",Rge="",Dge="",Fce={name:"Popover",components:{ForceGraphSvgIcon:Zo},mixins:[Rr],inject:["levelList","hasLevel"],props:{showPopover:{type:Boolean,default:!1},mousePosition:{type:Object,default:()=>({left:0,top:0})},nodeInfo:{type:Object,default:()=>{}},type:{type:String,default:"node"},moduleDetail:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},darkMode:{type:Boolean,default:!0},history:{type:Object,default:()=>({})},customTooltip:{type:Function}},data(){return{isFunction:Fd,showSelf:!1,onPop:!1,position:null,aggregationList:[]}},computed:{show(){return this.showPopover||this.showSelf},name(){var e,t,n;return((n=(t=(e=this.nodeInfo)==null?void 0:e.detail)==null?void 0:t.info)==null?void 0:n.name)||this.nodeInfo.name},isNormalNode(){return this.nodeInfo.type!=="nodeType"&&this.nodeInfo.type!=="aggregation"},isNodeTypeNode(){return this.nodeInfo.type==="nodeType"},isAggregateNode(){return this.nodeInfo.type==="aggregation"},fieldMapThisType(){var e;return this.moduleDetail.detail_field_map&&this.moduleDetail.detail_field_map[`${(e=this.nodeInfo)==null?void 0:e.type}_detail_info`]},canGoDetail(){return["nodeType","aggregation","family","org","report","vul","thumbprint_md5","email","cert_https"].indexOf(this.nodeInfo.type)<0}},watch:{mousePosition(){setTimeout(()=>{var l,c,u;const e=this.mousePosition.left>document.body.offsetWidth/2,t=this.mousePosition.top>document.body.offsetHeight/2,n=(l=document.getElementsByClassName("popover-container")[0])==null?void 0:l.offsetHeight,r=(c=document.getElementsByClassName("d3-container")[0])==null?void 0:c.offsetHeight,s=(u=document.getElementsByClassName("d3-container")[0])==null?void 0:u.getBoundingClientRect().top;let o;t?o=Math.max(this.mousePosition.top,n+s)+5:o=Math.min(this.mousePosition.top,Math.max(r-n,s))-5;const a={left:(e?this.mousePosition.left+2:this.mousePosition.right-2)+"px",top:o+"px",transform:`translate(${e?"-100%":"0%"}, ${t?"-100%":"0%"})`};this.position=a},100)},nodeInfo:{handler:function(){var t;const e=(((t=this.nodeInfo)==null?void 0:t.list)||[]).map(n=>{var s,o,a;const r=n.detail;return Me(be({},n),{name:((s=r==null?void 0:r.info)==null?void 0:s.name)||n.name,level:((a=(o=r==null?void 0:r.info)==null?void 0:o.basic)==null?void 0:a.level)||""})});e==null||e.sort((n,r)=>{var a,l;const s=(a=this.levelList.find(c=>c.level===n.level))==null?void 0:a.dangerNumber;return((l=this.levelList.find(c=>c.level===r.level))==null?void 0:l.dangerNumber)-s}),this.aggregationList=e},immediate:!0}},methods:{handleMouseEnter(){this.showSelf=!0},handleMouseLeave(){this.showSelf=!1},isSomething(e){return O0(e)},getTypeZh(e){var n,r,s;let t=e;if(e==="nodeType")t="关系节点";else for(const o in(n=this.moduleDetail)==null?void 0:n.nodes)if(e===((r=this.moduleDetail)==null?void 0:r.nodes[o].name)){t=(s=this.moduleDetail)==null?void 0:s.nodes[o].namec;break}return t},getLevelClass(e){return Of(e,this.levelList)},getColorStyle(e){return Qo(e,this.levelList,this.darkMode)},getNodeTypeChildNum(e){var s;const t=(s=this.data)==null?void 0:s.links,n=[],r=[];return t==null||t.map(o=>{o.source.id===e&&(n.push(o.target.id),o.target.detail&&xq(o.target.detail.info.basic.level,this.levelList)&&r.push(o.target.id))}),{allChildNum:n.length,dangerChildNum:r.length}},canShowField(e){const t=this.hasFieldValue(e);return!(t===void 0||e.hide_hover||e.hide_empty&&!t)},hasFieldValue(e){const t=this.nodeInfo.detail&&this.nodeInfo.detail.info&&this.nodeInfo.detail.info.basic[e.prop];if(t===null)return;const n=Array.isArray(t);return n&&t.length>0||!n&&t!==""&&t!=="无"},getFieldValue(e){const t=this.nodeInfo.detail.info.basic[e.prop],n=Array.isArray(t),r=this.isSomething(t);let s="-";return r&&(n?s=t.length?t.join("|"):"-":s=t||"-"),s},formatTags(e){return Lf(kf(e))},addToGraph(e){const t={type:"addFromAggregation",addOne:{nodes:[e],links:[{source:this.nodeInfo.relationId,target:e.id}]}};if(this.aggregationList=this.aggregationList.filter(n=>n.id!==e.id),this.history.updateAggregationNode(this.aggregationList,this.nodeInfo.id),this.history.pushState(t),this.aggregationList.length)Ye(bt,"emitDataLoaded");else{const n=this.nodeInfo,r={deleteOne:{nodes:[n],links:[{source:n.relationId,target:n.id}]},type:"aggregation"};setTimeout(()=>{this.history.pushState(r),Ye(bt,"emitDataLoaded")},0)}}}},Bce={key:0},jce=["innerHTML"],Uce={key:1,class:"node-info-container"},$ce={class:"popover-block popover-header"},Vce={key:0,class:"popover-collect"},zce={key:1,class:"row-item"},qce={class:"label"},Hce={key:2,class:"row-item"},Gce={class:"value"},Wce={class:"node-type-info"},Kce={class:"name"},Jce={key:3,class:"row-item"},Yce={class:"value"},Xce={class:"popover-block popover-fields"},Zce={key:0,class:"node-detail top-border"},Qce={key:0,class:"row-item"},eue=["title"],tue={key:1,class:"row-item row-item-tag"},nue={class:"value"},iue={class:"graph-tags-box"},rue={key:0,class:"row-item"},sue={class:"label"},oue=["title"],aue={key:1,class:"node-statistics top-border"},lue={class:"row-item node-num"},cue={class:"value"},uue={key:0},due={class:"danger"},fue={key:2,class:"node-aggregation"},hue={class:"aggregation-title"},pue={class:"aggregation-box"},gue={key:2,class:"node-info-container"},mue={class:"popover-fields"},vue={class:"top"};function bue(e,t,n,r,s,o){const a=Ge("force-graph-svg-icon"),l=fi,c=Wc,u=xz,d=Ko,f=Ez;return R(),V("div",{class:Z(["popover-container",o.show?"show-popover":"hide-popover"]),style:Ze(s.position),onMouseenter:t[0]||(t[0]=(...h)=>o.handleMouseEnter&&o.handleMouseEnter(...h)),onMouseleave:t[1]||(t[1]=(...h)=>o.handleMouseLeave&&o.handleMouseLeave(...h))},[G("div",null,[o.show&&n.customTooltip&&s.isFunction(n.customTooltip)?(R(),V("div",Bce,[G("div",{innerHTML:n.customTooltip({nodeInfo:n.nodeInfo,data:n.data,moduleDetail:n.moduleDetail})},null,8,jce)])):n.type==="node"?(R(),V("div",Uce,[G("div",$ce,[n.nodeInfo.collect?(R(),V("div",Vce,[ne(l,{content:"已收藏","popper-class":"el-tooltip-gray",placement:"left"},{default:te(()=>[ne(a,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/star.svg"]},null,8,["icon-class"])]),_:1})])):se("",!0),o.isNormalNode?(R(),V("div",zce,[G("div",qce,Ne(o.getTypeZh(n.nodeInfo.type))+":",1),G("div",{class:Z(["value",{"star-next":n.nodeInfo.collect}])},Ne(o.name),3)])):se("",!0),o.isNodeTypeNode?(R(),V("div",Hce,[t[2]||(t[2]=G("div",{class:"label"},"关系节点:",-1)),G("div",Gce,[G("div",Wce,[G("div",Kce,Ne(n.nodeInfo.name),1)])])])):se("",!0),n.nodeInfo.label?(R(),V("div",Jce,[t[3]||(t[3]=G("div",{class:"label"},"备注:",-1)),G("div",Yce,Ne(n.nodeInfo.label),1)])):se("",!0)]),G("div",Xce,[o.isNormalNode&&n.nodeInfo.detail?(R(),V("div",Zce,[o.canGoDetail&&o.hasLevel?(R(),V("div",Qce,[t[4]||(t[4]=G("div",{class:"label"},"危险级别:",-1)),G("div",{class:Z(["value level",o.getLevelClass(n.nodeInfo.detail&&n.nodeInfo.detail.info.basic.level)]),title:n.nodeInfo.detail&&n.nodeInfo.detail.info.basic.level||"--"},Ne(n.nodeInfo.detail&&n.nodeInfo.detail.info.basic.level||"--"),11,eue)])):se("",!0),n.nodeInfo.detail&&n.nodeInfo.detail.tags&&n.nodeInfo.detail.tags.length>0?(R(),V("div",tue,[t[7]||(t[7]=G("div",{class:"label"},"标签:",-1)),G("div",nue,[G("div",iue,[(R(!0),V(qe,null,Nt(o.formatTags(n.nodeInfo.detail.tags),(h,g)=>(R(),_e(l,{key:g,"popper-class":"el-tooltip-gray"},{content:te(()=>[G("div",null,[Je(Ne(h.name===h.desc?h.name:h.name+":"+h.desc)+" ",1),h.disabled?(R(),V(qe,{key:0},[t[5]||(t[5]=G("br",null,null,-1)),t[6]||(t[6]=Je(" 标签状态:失效 "))],64)):se("",!0)])]),default:te(()=>[G("span",null,[ne(c,{class:Z(["graph-tag-one",`${h.type||"unknown"} ${h.disabled?"tag-disable":""}`]),type:h.type||"info"},{default:te(()=>[Je(Ne(h.name),1)]),_:2},1032,["class","type"])])]),_:2},1024))),128))])])])):se("",!0),(R(!0),V(qe,null,Nt(o.fieldMapThisType,(h,g)=>(R(),V(qe,null,[o.canShowField(h)?(R(),V("div",rue,[G("div",sue,Ne(h.zh)+":",1),G("div",{class:Z(["value",{red:h.prop==="virus_name"}]),title:n.nodeInfo.detail.info.basic[g]},Ne(o.getFieldValue(h)),11,oue)])):se("",!0)],64))),256))])):se("",!0),o.isNodeTypeNode?(R(),V("div",aue,[G("div",lue,[t[9]||(t[9]=G("div",{class:"label"},"拓展节点统计:",-1)),G("div",cue,[o.getNodeTypeChildNum(n.nodeInfo.id).dangerChildNum>0?(R(),V("span",uue,[G("span",due,Ne(o.getNodeTypeChildNum(n.nodeInfo.id).dangerChildNum),1),t[8]||(t[8]=Je("/"))])):se("",!0),Je(Ne(o.getNodeTypeChildNum(n.nodeInfo.id).allChildNum),1)])])])):se("",!0),o.isAggregateNode?(R(),V("div",fue,[G("div",hue,"聚合节点 ("+Ne(s.aggregationList.length)+"个)",1),G("div",pue,[ne(f,{data:s.aggregationList,style:{width:"100%"}},{default:te(()=>[ne(u,{prop:"name","min-width":"200",label:"名称"}),ne(u,{sortable:"",prop:"type",label:"类型"}),ne(u,{sortable:"",prop:"level",width:"80",label:"级别"},{default:te(h=>[G("span",{style:Ze({color:o.getColorStyle(h.row.level)})},Ne(h.row.level||"--"),5)]),_:1}),ne(u,{label:"操作"},{default:te(h=>[ne(d,{class:"add-to-graph-btn",type:"primary",text:"",size:"small",onClick:g=>o.addToGraph(h.row)},{default:te(()=>t[10]||(t[10]=[Je(" 添加到图谱 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])])):se("",!0)])])):(R(),V("div",gue,[G("div",mue,[G("div",vue,Ne(n.nodeInfo.apiName),1)])]))])],38)}const yue=un(Fce,[["render",bue],["__scopeId","data-v-194a65c9"]]),_ue=[{id:52,product_id:0,name:"copy",namec:"复制",parent_id:0,has_child:0,status:0,type:2,path:"0-52",pos:65,ctime:"0000-00-00 00:00:00",utime:"2019-06-04 16:49:38",children:[]},{id:62,product_id:0,name:"release_aggregation",namec:"释放聚合顶点",parent_id:0,has_child:0,status:0,is_sys:0,is_detail:0,type:2,path:"0-62",pos:1,ctime:"0000-00-00 00:00:00",utime:"2019-05-06 15:08:10",children:[]}],py={name:"vue-safe-force-graph",version:"2.0.85",description:"force_graph in security area",author:"jason zhang",module:"./lib/vue-safe-force-graph.js",main:"./lib/vue-safe-force-graph.umd.cjs",type:"module",files:["/lib/"],exports:{".":{import:"./lib/vue-safe-force-graph.js",require:"./lib/vue-safe-force-graph.umd.cjs"},"./*":"./*"},scripts:{dev:"vite","dev:base64":"vite --mode development_base64",lib:"vite build","lib:base64":"vite build --mode production_base64","lib:webcomponent":"vite build --mode web_component",patch:'npm version patch -m "Upgrade to %s "',"patch:base64":'npm version patch -m "Upgrade to %s for base64"',p:"npm run patch && npm run lib && npm run lib:webcomponent && npm publish","p:base64":"npm run patch:base64 && npm run lib:base64 && npm publish",lint:"eslint --ext .js,.vue src",lintFix:"eslint --fix --ext .js,.vue src",imageToCdn:"node qcdn.cjs",imageToBase64:"node qcdn.cjs --buildtype=base64",changelog:"conventional-changelog -p angular -i CHANGELOG.md -s -r 0"},dependencies:{"@element-plus/icons-vue":"^2.1.0","@q/qapm":"^1.1.7","csv-parse":"^5.0.4",d3:"^7.8.5","d3-lasso":"0.0.5","element-plus":"^2.8.8",json2csv:"^5.0.7",konva:"^9.2.0","lodash-es":"^4.17.21","mime-types":"^2.1.35",minimist:"^1.2.6","radar-js-analytic-sdk":"^2.2.6",vue:"^3.5.3","vue-clipboard3":"^2.0.0","vue-router":"^4.1.6","vue-virtual-scroller":"^2.0.0-beta.8"},devDependencies:{"@babel/core":"^7.23.3","@babel/preset-env":"^7.23.3","@originjs/vite-plugin-commonjs":"^1.0.3","@q/qcdn":"^3.2.4","@vitejs/plugin-vue":"^4.1.0",axios:"^0.21.1","babel-eslint":"^10.1.0",eslint:"^7.32.0","eslint-plugin-vue":"^8.0.3",imageinfo:"^1.0.4",qs:"^6.10.1","rollup-plugin-visualizer":"^5.9.0",sass:"^1.62.0","unplugin-auto-import":"^0.15.2","unplugin-element-plus":"^0.8.0","unplugin-vue-components":"^0.24.1",vite:"^4.3.1"},browserslist:["> 1%","last 2 versions"],engines:{node:">=8.9",npm:">= 3.0.0"},license:"MIT"},Jge="",{toClipboard:wue}=Mf(),Cue="Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif",ho=1,Sue=["ip","intranet","internet"],gy=20,Un={},Eue={name:"ForceGraphRenderByCanvas",components:{Popover:yue,NodeContextmenu:Mce},mixins:[Rr],provide:function(){return{levelList:this.levelList}},props:{data:{type:Object,default:()=>({nodes:[],links:[]})},history:{type:Object,default:()=>({})},linkDistance:{type:Number,default:120},strength:{type:Number,default:-600},isThreatPath:{type:Boolean,default:!1},requestGraphData:{type:Boolean,default:!1},moduleDetail:{type:Object,default:()=>{}},graphApi:{type:Object,default:()=>{}},alphaDecay:{type:Number,default:.0228},alphaMin:{type:Number,default:.001},darkMode:{type:Boolean,default:!0},levelList:{type:Array,default:()=>[{level:"未知",levelName:"未知",className:"unknown",normalColor:"#666",darkColor:"#c6cdd5",dangerNumber:0},{level:"危险",levelName:"危险",className:"warn",normalColor:"#CF1322",darkColor:"#fb2400",dangerNumber:1},{level:"普通",levelName:"普通",className:"normal",normalColor:"#007EE2",darkColor:"#0094ff",dangerNumber:-1},{level:"安全",levelName:"安全",className:"safe",normalColor:"#009A75",darkColor:"#00da90",dangerNumber:-2}]},nodeWidth:{type:Number},startNodeWidth:{type:Number},nodeTypeScale:{type:Number,default:1},nodeTypeList:{type:Array,default:()=>[]},manualTickNumber:{type:Number,default:500},startNodeAnimation:{type:Boolean,default:!0},customTooltip:{type:Function},enableScript:{type:Boolean,default:!1},edgeLabelMaxLength:{type:Number,default:10},customNodeImages:{type:Object,default:()=>{}},enablePopover:{type:Boolean,default:!0},canvasBg:{type:String,default:"transparent"}},emits:["handle-select-node","custom-contextmenu-click","flagFiles","updateSelection"],data(){return{prefix:"./public/",iconAllLoaded:!1,customIconLoaded:!1,iconSize:{},iconFiles:{},flagFiles:{},highlightRule:{},nodesRange:null,mousePosition:{left:0,top:0},hoverNodePosition:{},uniqueClass:"",showPopover:!1,popoverTimer:null,popoverType:"",popoverContent:{},popoverNode:{},showContextMenu:!1,contextMenuNode:{},menuOptions:[],isDragging:!1,originTransform:null,dragNodeFix:!1,destroyed:!1,actKey:rl()?"metaKey":"ctrlKey",levelHeight:100,actNum:0,scriptNow:null,scriptInited:!1,canAct:!1,isKeyUp:!0,initTimes:0,resizeObserver:null,canvasElement:null,stage:mn(null),layer:mn(null),nodesGroup:mn({}),linksGroup:mn({}),grab:mn(null),simulation:mn(null),nodes:mn(null),links:mn(null),hoveredNode:mn(null),mouseDownNode:mn(null),selectionRect:null,selection:[],scale:ho,mousedownPos:null,mousedownNode:null,mouseupNode:null,dragLine:null,darkBgRect:null,inited:!1,hasSimulation:!1,nodesLength:0,ticking:!1,anim1:null,anim2:null,anim3:null}},computed:{isAutoTick(){var e;return((e=this.nodes)==null?void 0:e.length)<this.manualTickNumber},iconSizeComputed(){const e=Us(this.iconSize);return this.nodeTypeList.forEach(t=>{e[t]=this.iconSize[t]*this.nodeTypeScale}),e},contextMenuNodes(){return this.contextMenuNode.id?this.selection.some(e=>e.id===this.contextMenuNode.id)?[...this.selection]:[this.contextMenuNode]:[]},showContextMenuFlag(){return this.requestGraphData?this.showContextMenu:!1}},watch:{data:{handler:function(){const e=this.nodesLength!==this.data.nodes.length;this.nodes=this.data.nodes,this.links=this.data.links,this.nodesLength=this.data.nodes.length,this.update(e)},deep:!0},moduleDetail:{handler:function(e){return rt(this,null,function*(){e!=null&&e.nodes&&!this.iconAllLoaded&&!this.customIconLoaded&&(yield this.loadCustomIcon(),yield this.loadIcons(),this.initForceGraph(),setTimeout(()=>{this.update()},50))})},deep:!0,immediate:!0},darkMode:{handler:function(e){return rt(this,null,function*(){const t=e?"dark":"light";setTimeout(()=>{this.update();const n=document.querySelectorAll(`.${this.uniqueClass}.render-container`);n!=null&&n.length&&(this.isThreatPath?n[0].setAttribute("data-theme",t):(n[0].setAttribute("data-theme",t),document.getElementsByClassName(this.uniqueClass+" render-container")[0].parentElement.parentElement.setAttribute("data-theme",t)))},200)})},immediate:!0}},created(){fs.setProject("QH_10542_1724").getTrack(),console.log("组件版本: "+(py==null?void 0:py.version)),this.isThreatPath||this.initKeyEvent(),this.uniqueClass="unique"+new Date().getTime()+Math.floor(Math.random()*1e5)},mounted(){return rt(this,null,function*(){new cce({appKey:"fe-force-graph",ratio:50}),this.initForceGraph(),Eq(this.levelList),!this.isThreatPath&&(Xs(bt,"buttonClick",e=>{pi(e,"buttonClick msg"),this.handleContextMenuClick(e)}),Xs(bt,"relationClick",e=>{this.handleContextMenuClick(e)}),Xs(bt,"sendNodesRange",(e,t)=>{e!==void 0&&(this.nodesRange=e,this.updateNodeStyle())}))})},beforeUnmount(){Zs(bt,"buttonClick"),Zs(bt,"relationClick"),Zs(bt,"sendNodesRange"),this.unbindKeyEvent(),this.resetAll(),pi("destroy")},methods:{initForceGraph(){return rt(this,null,function*(){if(this.inited)return;const e=this.$refs.canvasContainer;let t=e.clientWidth,n=e.clientHeight;this.resizeObserver=new ResizeObserver(s=>{for(const o of s){if(t=o.contentRect.width,n=o.contentRect.height,pi(`新宽度: ${t}px, 新高度: ${n}px`),t===0||n===0)return;this.stage.width(t),this.stage.height(n),this.layer&&this.layer.batchDraw(),this.hasSimulation&&this.updateSimulation()}}),this.resizeObserver.observe(e),document.addEventListener("click",this.hideContextMenu,!1),this.nodes=this.data.nodes,this.links=this.data.links,this.stage=new zt.Stage({container:e,width:t,height:n,scaleX:ho,scaleY:ho}),this.layer=new zt.Layer,this.grab=new zt.Group({id:"grab",x:0,y:0}),this.layer.add(this.grab);const r=this.layer.getCanvas()._canvas;this.canvasElement=r,this.stage.on("mousemove",s=>{if(!this.mousedownNode||!s.evt[this.actKey]){if(this.resetMouseVars(),this.selectionRect&&s.evt.altKey){const o=this.stage.getPointerPosition(),a=(o.x-this.stage.x())/this.scale,l=(o.y-this.stage.y())/this.scale,c=a-this.selectionRect.x(),u=l-this.selectionRect.y();this.selectionRect.width(c),this.selectionRect.height(u),this.stage.batchDraw()}}else{const o=this.stage.getPointerPosition(),a=this.stage.scaleX(),l=(o.x-this.stage.x())/a,c=(o.y-this.stage.y())/a;this.dragLine.points([this.mousedownPos.x,this.mousedownPos.y,l,c]),this.layer.batchDraw()}}),this.stage.on("wheel",s=>{s.evt.preventDefault();const o=1.1,a=this.stage.scaleX(),l=s.evt.deltaY<0?a*o:a/o,c=this.stage.getPointerPosition();if(!c)return;const u=this.stage.position(),d=c.x-(c.x-u.x)*(l/a),f=c.y-(c.y-u.y)*(l/a);this.stage.setAttrs({scaleX:l,scaleY:l,x:d,y:f}),this.scale=l,this.layer.batchDraw()}),this.stage.on("mousedown",s=>{const o=s.target;if(o&&o.nodeType==="Stage"?this.stage.setDraggable(!0):this.stage.setDraggable(!1),s.evt.altKey){this.stage.setDraggable(!1);const a=this.stage.scaleX(),l=this.stage.getPointerPosition(),c=(l.x-this.stage.x())/a,u=(l.y-this.stage.y())/a;this.selectionRect=new zt.Rect({x:c,y:u,width:0,height:0,stroke:"rgb(80, 80, 80)",strokeWidth:2}),this.layer.add(this.selectionRect),this.stage.batchDraw()}}),this.stage.on("mouseup",s=>{if(this.stage.setDraggable(!1),this.selectionRect&&s.evt.altKey){const o=this.selectionRect.x(),a=this.selectionRect.y(),l=this.selectionRect.width(),c=this.selectionRect.height();this.selection=this.nodes.filter(u=>{const d={x:u.x,y:u.y},f=Math.min(o,o+l),h=Math.max(o,o+l),g=Math.min(a,a+c),v=Math.max(a,a+c);return d.x>=f&&d.x<=h&&d.y>=g&&d.y<=v}),this.updateSelection(),this.selectionRect.destroy(),this.selectionRect=null}}),this.stage.on("contextmenu",this.handleGlobalContextMenu),this.stage.on("click",s=>{s.target&&s.target.nodeType==="Stage"&&this.handleDeselectNode(s)}),this.setSimulation(),this.stage.add(this.layer),this.stage.draw(),this.update(),this.inited=!0})},setSimulation(){var n;if(this.hasSimulation||!((n=this.nodes)!=null&&n.length))return;const e=this.stage.width()/(2*ho),t=this.stage.height()/(2*ho);this.hasSimulation=!0,this.simulation=nQ(this.nodes).force("link",$Z(this.links).id(r=>r.id).distance(this.linkDistance).strength(1)).force("charge",iQ().strength(this.strength)).force("x",rQ()).force("y",sQ()).force("center",F4(e,t)).alphaDecay(this.alphaDecay).alphaMin(this.alphaMin).stop(),this.nodeWidth&&this.simulation.force("collision",jZ().radius(this.nodeWidth/2)),this.isAutoTick?(this.simulation.alpha(1).restart(),this.simulation.on("tick",this.ticked)):(this.simulation.on("tick",null),this.sendManualTick()),this.simulation.on("end",()=>{pi("simulation end time",Date.now()),this.isThreatPath&&this.centerAndZoom(1)})},sendManualTick(){var e;pi("sendManualTick",(e=this.nodes)==null?void 0:e.length),!this.ticking&&(this.ticking=!0,this.doClearCanvas(),this.simulation.alphaDecay(this.alphaDecay*2),this.simulation.alphaMin(this.alphaMin*5),this.simulation.alpha(1).restart(),setTimeout(()=>{console.time("tick");for(let t=0,n=Math.ceil(Math.log(this.simulation.alphaMin())/Math.log(1-this.simulation.alphaDecay()));t<n;++t)pi("tick"),this.simulation.tick();console.timeEnd("tick"),this.ticking=!1,this.update(),this.centerAndZoom()},1e3))},update(e=!1){return rt(this,null,function*(){var t,n,r;!this.iconAllLoaded&&((n=(t=this.moduleDetail)==null?void 0:t.nodes)!=null&&n.length)&&!this.customIconLoaded&&(yield this.loadIcons(),yield this.loadCustomIcon()),!this.destroyed&&(r=this.nodes)!=null&&r.length&&(this.initScript(),pi("update"),e&&this.updateSimulation(),this.doClearCanvas(),this.paintLinks(),this.paintNodes(),this.updateSelection(),this.ticked(),this.actNum===9&&setTimeout(()=>{this.centerAndZoom(.8)},200))})},doClearCanvas(){this.nodesGroup={},this.linksGroup={},this.layer.destroyChildren(),this.grab=new zt.Group({id:"grab",x:0,y:0}),this.layer.add(this.grab)},paintNodes(){const e=this.stage.width()/2,t=this.stage.height()/2,n=this.selection.map(r=>r.id);this.nodes.forEach(r=>rt(this,null,function*(){var _,w,A,C,S,x,O,N,I,F,D,k,q,H,oe,ce,U,Y,K,ee,B,Ee,me;const s=(w=(_=r.detail)==null?void 0:_.info)==null?void 0:w.icon_img;let o;r.type==="nodeType"?o=this.iconSizeComputed[r.icon]||this.iconSizeComputed.node_type:o=this.iconSize[r.icon]||this.iconSize[r.type]||24,r.startNode&&this.startNodeWidth&&(o=this.startNodeWidth);const a=((S=(C=(A=r==null?void 0:r.detail)==null?void 0:A.info)==null?void 0:C.basic)==null?void 0:S.level)||"",l=(N=(O=(x=r==null?void 0:r.detail)==null?void 0:x.info)==null?void 0:O.basic)==null?void 0:N.flag;let c;try{c=yield this.getNodeImage(r)}catch(re){console.log(re)}this.nodesGroup[r.id]&&((I=this.nodesGroup[r.id])==null||I.destroy());const u=new zt.Group({name:"nodeGroup",opacity:1,id:`${r.id}`,x:r.x?r.x:e,y:r.y?r.y:t,draggable:!0,visible:r.show});if(n.includes(r.id)&&u.addName("isSelected"),r.startNode&&this.startNodeAnimation){const re=Qo(a,this.levelList,this.darkMode),le=new zt.Circle({x:0,y:0,radius:20,fill:re,opacity:0}),Ce=new zt.Circle({x:0,y:0,radius:20,fill:re,opacity:0}),ye=new zt.Circle({x:0,y:0,radius:20,fill:re,opacity:0});u.add(le),u.add(Ce),u.add(ye);const z=(X,fe)=>new zt.Animation(function(Re){const Le=Re.time;if(Le%fe/fe===0)return!1;const j=.5-.5*(Le%fe)/fe,J=40*(Le%fe)/fe;X.radius(J||0),X.opacity(j)},this.layer);(F=this.anim1)==null||F.stop(),(D=this.anim2)==null||D.stop(),(k=this.anim3)==null||k.stop(),this.anim1=z(le,1500),this.anim2=z(Ce,1500),this.anim3=z(ye,1500),(q=this.anim1)==null||q.start(),setTimeout(()=>{this.anim2.start()},500),setTimeout(()=>{this.anim3.start()},1e3)}else if(r.startNode&&!this.startNodeAnimation){const re=Qo(a,this.levelList,this.darkMode),le=new zt.Circle({x:0,y:0,radius:20,fill:re,opacity:this.startNodeAnimation?0:.3});u.add(le)}if(!s&&(r.type==="ip"||r.type==="internet"||r.type==="country"||r.type==="target_country")){const re=Qo(a,this.levelList,this.darkMode),le=new zt.Circle({x:0,y:0,fill:this.darkMode?"#182628":"#fff",radius:o/2,stroke:re,strokeWidth:2});u.add(le)}if(c){const re=l||(oe=(H=r==null?void 0:r.detail)==null?void 0:H.info)!=null&&oe.inner_country?20:o,le=c&&new zt.Image({x:0,y:0,offsetX:re/2,offsetY:re/2,image:c,width:re,height:re,draggable:!1});u.add(le)}if(!s&&r.detail&&r.type==="md5"){const re=((Y=(U=(ce=r.detail.info)==null?void 0:ce.basic)==null?void 0:U.file_type)==null?void 0:Y.toUpperCase())||"MD5",le=new zt.Text({name:"md5Text",x:0,y:0,text:re,fontSize:4,fontWeight:700,fontFamily:Cue,fill:this.darkMode?"#182628":"#fff",align:"center",listening:!1});le.x(le.x()-le.width()/2),u.add(le)}const d=r.textProp||"name",f=d==="name"?((ee=(K=r==null?void 0:r.detail)==null?void 0:K.info)==null?void 0:ee.name)||r.name:r[d];let h=(f==null?void 0:f.length)>14&&!Sue.includes(r.type)?f.slice(0,7)+"..."+f.slice(-7):f;h=Dq(h);const g=new zt.Text({offsetY:o/2,name:"konvaText",x:0,y:o+8,text:h,fontSize:12,fontFamily:"Calibri",fill:this.darkMode?"#cdd9da":"#000",align:"center",listening:!1,visible:!!r.textProp});g.x(g.x()-g.width()/2),u.add(g);const v=new zt.Circle({name:"border",x:0,y:0,radius:o/2,fill:"#5c6271",opacity:.4,visible:!1});if(u.add(v),(Ee=(B=r.detail)==null?void 0:B.tags)!=null&&Ee.length){const re=new zt.Circle({x:((o/2||14)+5)*Math.sin(60*Math.PI/180),y:-((o/2||14)+5)*Math.cos(60*Math.PI/180),radius:3,fill:"#9300ff",listening:!1});u.add(re)}if(r.type!=="nodeType"&&r.type!=="aggregation"){var y=new zt.Circle({name:"collect",x:((o/2||14)+5)*Math.sin(0*Math.PI/180),y:-((o/2||14)+5)*Math.cos(0*Math.PI/180),radius:3,fill:"#ffad00",visible:!!r.collect});u.add(y)}if(r.label){const re=new zt.Circle({x:((o/2||14)+5)*Math.sin(30*Math.PI/180),y:-((o/2||14)+5)*Math.cos(30*Math.PI/180),radius:3,fill:"#0099ff",listening:!1});u.add(re)}if(r.type==="nodeType"&&r.showTotal){const re=(o/2||14)+5,le=70*Math.PI/180,Ce=re*Math.sin(le),ye=-re*Math.cos(le),z=new zt.Circle({x:Ce,y:ye,radius:10,fill:"#1890ff",stroke:"white",strokeWidth:2,listening:!1});u.add(z);const X=new zt.Text({x:Ce,y:ye,text:`${((me=r==null?void 0:r.children)==null?void 0:me.length)||0}`,fontSize:10,fontFamily:"Calibri",fill:"#fff",align:"center",verticalAlign:"middle",listening:!1});X.offsetX(X.width()/2),X.offsetY(X.height()/2),u.add(X)}u.on("dragstart",(re,le)=>{re.evt&&re.evt[this.actKey]||(this.isAutoTick&&this.simulation.alphaTarget(.3).restart(),this.isDragging=!0)}),u.on("dragmove",re=>{if(!(re.evt&&re.evt[this.actKey])){var le=this.simulation.nodes().find(Ce=>Ce.id===r.id);le&&(le.x=u.x(),le.fx=u.x(),le.y=u.y(),le.fy=u.y(),this.links.forEach(Ce=>{const ye=this.linksGroup[`${Ce.source.id}-${Ce.target.id}`],z=ye==null?void 0:ye.findOne(".konvaLine"),X=ye==null?void 0:ye.findOne(".linkArrow"),fe=ye==null?void 0:ye.findOne(".edgeLabel");let Re,Le,Ke,j;if(Ce.source.id===le.id){if(!this.nodesGroup[Ce.target.id])return;Re=le.x,Le=this.nodesGroup[Ce.target.id].x(),Ke=le.y,j=this.nodesGroup[Ce.target.id].y(),z.points([Re,Ke,Le,j]);const J=N0(Re,Ke,Le,j,gy);X==null||X.x(J==null?void 0:J.x),X==null||X.y(J==null?void 0:J.y),X==null||X.rotation(Math.atan2(j-Ke,Le-Re)*(180/Math.PI))}else if(Ce.target.id===le.id){if(!this.nodesGroup[Ce.source.id])return;Re=this.nodesGroup[Ce.source.id].x()||0,Le=le.x||0,Ke=this.nodesGroup[Ce.source.id].y()||0,j=le.y||0,z.points([Re,Ke,Le,j]);const J=N0(Re,Ke,Le,j,gy);X==null||X.x(J==null?void 0:J.x),X==null||X.y(J==null?void 0:J.y),X==null||X.rotation(Math.atan2(j-Ke,Le-Re)*(180/Math.PI))}if(fe&&(Ce.source.id===le.id||Ce.target.id===le.id)){fe.x((Re+Le)/2),fe.y((Ke+j)/2),fe.offsetX(fe.getWidth()/2||0),fe.offsetY(fe.getHeight()/2+8||0);const J=Math.atan2(j-Ke,Le-Re)*(180/Math.PI);Le<Re?fe.rotation(J+180):fe.rotation(J)}}),this.layer.batchDraw())}}),u.on("dragend",re=>{re.evt&&re.evt[this.actKey]||(this.isAutoTick&&this.simulation.alphaTarget(0),this.isDragging=!1)}),u.on("click",re=>{re.evt.detail===2?this.expandNodes(re,r):re.evt.detail===1&&re.evt.button===0&&this.handleNodeClick(re,r)}),u.on("contextmenu",re=>{re.cancelBubble=!0,re.evt.preventDefault(),re.evt.stopPropagation(),this.handleNodeContextMenu(re,r,u)}),u.on("mouseup",re=>this.handleNodeMouseUp(re,r)),u.on("mousedown",re=>this.handleNodeMouseDown(re,r)),u.on("mouseenter",re=>this.handleNodeMouseEnter(re,r)),u.on("mouseleave",re=>this.handleNodeMouseLeave(re,r)),this.grab.add(u),this.nodesGroup[r.id]=u})),this.stage.batchDraw()},paintLinks(){const e=this.stage.width()/2,t=this.stage.height()/2;this.links.forEach(n=>{this.linksGroup[`${n.source.id}-${n.target.id}`]&&this.linksGroup[`${n.source.id}-${n.target.id}`].destroy();const r=new zt.Group({opacity:1,id:`${n.source.id}-${n.target.id}`,visible:n.source.show&&n.target.show}),s=this.darkMode?"#445152":"#999",o=new zt.Arrow({name:"linkArrow",pointerLength:10,pointerWidth:10,x:e,y:t,fill:s});r.add(o);const a=n.source.x||0,l=n.source.y||0,c=n.target.x||0,u=n.target.y||0,d=new zt.Line({name:"konvaLine",id:`${n.source.id}-${n.target.id}`,points:[a,l,c,u],stroke:n.target.type==="org"?"#cf1322":s,strokeWidth:1,dash:n.diy===!0?[5,5]:null});if(n.edgeLabelProp){const f=n.edgeLabelProp.length>this.edgeLabelMaxLength?n.edgeLabelProp.substring(0,this.edgeLabelMaxLength)+"...":n.edgeLabelProp,h=new zt.Text({name:"edgeLabel customEdgeLabel",x:(a+c)/2,y:(l+u)/2,text:f,fontSize:12,fill:this.darkMode?"#cdd9da":"#000"});r.add(h)}if(n.target.type==="nodeType"){const f=n.target.relay_name||n.target.name,h=new zt.Text({name:"edgeLabel",x:(a+c)/2,y:(l+u)/2,text:f,fontSize:12,fill:this.darkMode?"#cdd9da":"#000"});r.add(h)}r.add(d),r.on("mouseenter",f=>this.handleLinkMouseEnter(f,n)),r.on("mouseleave",f=>this.handleLinkMouseLeave(f,n)),this.grab.add(r),r.moveToBottom(),this.linksGroup[`${n.source.id}-${n.target.id}`]=r}),this.stage.batchDraw()},updateSimulation(){var e,t;try{if(!this.simulation&&!this.hasSimulation){this.setSimulation();return}this.simulation.nodes(this.nodes),this.simulation.force("link").links(this.links),this.simulation.alpha(.4).restart(),this.history.layoutIndex===0?((e=this.nodes)==null?void 0:e.length)<this.manualTickNumber?this.simulation.on("tick",this.ticked):(this.simulation.on("tick",null),this.sendManualTick()):this.simulation.on("tick",this.ticked)}catch(n){console.log(n,"simulation-e1"),(t=this.simulation)==null||t.stop()}},ticked(){switch(pi("ticked"),this.history.layoutIndex){case 0:this.forceLayout();break;case 1:this.treeLayout();break;default:this.forceLayout();break}},forceLayout(){var t;if(!this.nodes.length||!this.links.length)return;let e=!0;for(let n=0;n<this.links.length;n++){const r=this.links[n],s=this.linksGroup[`${r.source.id}-${r.target.id}`],o=s==null?void 0:s.findOne(".konvaLine"),a=s==null?void 0:s.findOne(".linkArrow"),l=s==null?void 0:s.findOne(".edgeLabel");let c=r.source.x,u=r.source.y,d=r.target.x,f=r.target.y;const h=d-c||1,g=f-u||1,v=Math.sqrt(h*h+g*g),y=h/v||1,_=g/v||1,w=r.source.type==="nodeType"?(this.iconSizeComputed[r.source.icon]||14)/2-1:(this.iconSize[r.target.type]||14)/2-1,A=r.target.type==="nodeType"?(this.iconSizeComputed[r.target.icon]||14)/2-1:(this.iconSize[r.target.type]||14)/2-1;if(c=c+w*y,u=u+w*_,d=d-A*y,f=f-A*_,isNaN(c)||isNaN(u)||isNaN(d)||isNaN(f)){e=!1;break}if(o==null||o.points([c,u,d,f]),a){const C=N0(c,u,d,f,gy);a==null||a.x((C==null?void 0:C.x)||0),a==null||a.y((C==null?void 0:C.y)||0),a==null||a.rotation(Math.atan2(f-u,d-c)*(180/Math.PI))}if(l){l.x((c+d)/2),l.y((u+f)/2),l.offsetX(l.getWidth()/2||0),l.offsetY(l.getHeight()/2+8||0);const C=Math.atan2(f-u,d-c)*(180/Math.PI);d<c?l.rotation(C+180):l.rotation(C)}}if(!e){pi("请点击自动布局按钮"),this.resetLayout();return}for(let n=0;n<this.nodes.length;n++){const r=this.nodes[n];(t=this.nodesGroup[r.id])==null||t.position({x:r.x||0,y:r.y||0})}},selectEdgesByNode(e){const t=e.map(n=>n.id);this.links.forEach(n=>{const r=this.linksGroup[`${n.source.id}-${n.target.id}`];t.includes(n==null?void 0:n.target.id)||t.includes(n==null?void 0:n.source.id)?r==null||r.addName("isSelected"):r==null||r.removeName("isSelected")})},showKeyWay(e){if(e.length!==1){this.links.forEach(r=>{const s=this.linksGroup[`${r.source.id}-${r.target.id}`];s==null||s.removeName("keyed")}),this.history.resetKeyLinksAndNodes();return}const{keyLinks:t,keyNodeIds:n}=this.history.findKeyLinksAndNodes(e[0].id,!0);this.links.forEach(r=>{const s=t.find(a=>a.source.id===r.source.id&&a.target.id===r.target.id),o=this.linksGroup[`${r.source.id}-${r.target.id}`];s?o==null||o.addName("keyed"):o==null||o.removeName("keyed")}),this.nodes.forEach(r=>{const s=this.nodesGroup[r.id];n.includes(r.id)?s==null||s.addName("keyed"):s==null||s.removeName("keyed")})},updateNodeStyle(){if(!this.iconAllLoaded)return;let e;this.nodesRange&&this.history.keyNodeIds?e=[...this.nodesRange.map(t=>t.id),...this.history.keyNodeIds]:this.nodesRange?e=this.nodesRange.map(t=>t.id):this.history.keyNodeIds&&(e=this.history.keyNodeIds),setTimeout(()=>{this.highlightByRule(this.highlightRule,e),this.updateNodesStyleByName(),this.updateLinksStyleByName()},0)},updateNodesStyleByName(){this.nodes.forEach(e=>{const t=this.nodesGroup[e.id];if(!t)return;const n=t==null?void 0:t.findOne(".border"),r=t==null?void 0:t.findOne(".konvaText"),s=this.darkMode?"#cdd9da":"#000";t!=null&&t.hasName("lowlight")?t==null||t.opacity(.4):t==null||t.opacity(1),t!=null&&t.hasName("isSelected")?(t.scale({x:8/7,y:8/7}),n==null||n.visible(!0)):(t.scale({x:1,y:1}),n==null||n.visible(!1)),e.type!=="nodeType"&&(t!=null&&t.hasName("isSelected")?(r==null||r.visible(!0),r==null||r.fill("#007ee2")):(r==null||r.visible(!!e.textProp),r==null||r.fill(s)))}),this.layer.batchDraw()},updateLinksStyleByName(){this.links.forEach(e=>{const t=this.linksGroup[`${e.source.id}-${e.target.id}`];if(!t)return;const n=t.findOne(".konvaLine"),r=t.findOne(".edgeLabel"),s=t.findOne(".linkArrow");t!=null&&t.hasName("lowlight")?t==null||t.opacity(.4):t==null||t.opacity(1);const o=this.darkMode?"#445152":"#999";if(t.hasName("isSelected")||t.hasName("keyed")){const a=e.target.type==="org"?"#cf1322":"#007ee2";n.stroke(a),s.fill(a),n.strokeWidth(1),t==null||t.opacity(1),r==null||r.fill("#007ee2"),t.hasName("keyed")?n.strokeWidth(3):n.strokeWidth(1)}else{const a=e.target.type==="org"?"#cf1322":o;this.linksGroup[`${e.source.id}-${e.target.id}`].removeName("isSelected"),n.strokeWidth(1),n.stroke(a),s.fill(a),r==null||r.fill(this.darkMode?"#cdd9da":"#000")}}),this.layer.batchDraw()},handleTableSelect(e=[]){this.selection=this.nodes.filter(t=>{let n;return e.length>1?n=e.indexOf(t.id)>=0&&t.type!=="nodeType"&&t.type!=="aggregation":n=e.indexOf(t.id)>=0,n}),this.updateSelection()},resetAll(){var e,t;document.removeEventListener("click",this.hideContextMenu),(e=this.simulation)==null||e.stop(),this.simulation=null,this.hasSimulation=!1,this.mousedownNode=null,this.mousedownPos=null,this.mouseupNode=null,this.$refs.canvasContainer&&((t=this.resizeObserver)==null||t.unobserve(this.$refs.canvasContainer)),this.nodes=[],this.links=[],this.resizeObserver=null,this.destroyed=!0,this.history.destroy&&this.history.destroy()},unbindKeyEvent(){this.initKeyEvent(1)},initKeyEvent(e=0){if(e){document.removeEventListener("keydown",this.keyDown),document.removeEventListener("keyup",this.keyUp);return}document.addEventListener("keydown",this.keyDown),document.addEventListener("keyup",this.keyUp),this.isKeyUp=!0},keyDown(e){const t=e.keyCode,n=e[this.actKey],r=e.shiftKey;if(this.isKeyUp)switch(t){case 17:break;case 16:this.toggleZoom(!1);break;case 38:break;case 40:this.goAction();break;case 67:if(window.getSelection().toString())return;n&&this.copyNodeText(this.selection);break;case 89:n&&!rl()&&this.$parent.historyForward();break;case 90:n&&r?this.$parent.historyForward():n&&this.$parent.historyBack();break;case 46:this.$parent.deleteNodes(this.selection);break}},keyUp(e){const t=e.keyCode,n=e.keyCode;if(rl())switch(n){case 17:break;case 16:this.toggleZoom(!0);break}else switch(t){case 17:break;case 16:this.toggleZoom(!0);break}this.isKeyUp=!0},initScript(){var r,s,o,a,l,c;if(!this.enableScript||this.scriptInited)return;((o=(s=(r=this.history)==null?void 0:r.dataNow)==null?void 0:s.nodes)==null?void 0:o.length)>0&&(this.scriptInited=!0);const e=["193.36.119.50","6cd7b91212983cc557c6e3e671734ff9"];let t=null;if((c=(l=(a=this.history)==null?void 0:a.dataNow)==null?void 0:l.nodes)==null||c.some(u=>{const d=e.indexOf(u.id);return d>=0&&u.startNode===!0&&(t=d),!0}),t===null)return;const n=[[{node:"193.36.119.50"},{node:"6cd7b91212983cc557c6e3e671734ff9"},{node:"http://9d1109ab.privatedns.org/download/FirefoxSetup.dll"},{node:"94.237.81.57"},{node:"chart.expocasheuro.com"}],[{node:"6cd7b91212983cc557c6e3e671734ff9"},{node:"http://9d1109ab.privatedns.org/download/FirefoxSetup.dll"},{node:"94.237.81.57"},{node:"chart.expocasheuro.com"},{node:"183.246.177.59"},{node:"e7db5b09a39e324d36e937d89f98fdb9122cd859"}]];this.scriptNow=n[t],this.canAct=!!this.scriptNow},goAction(){if(!this.scriptNow||this.actNum>(this.scriptNow.length-1)*2)return;if(this.actNum===(this.scriptNow.length-1)*2){this.centerAndZoom(),this.actNum++;return}const e=this.scriptNow[Math.floor(this.actNum/2)+1];if(this.actNum%2===0){if(!this.history.dataNow.nodes.some(t=>t.id===e.node))return;this.handleTableSelect(e.node),this.nodesMoveToCenterView([e.node]),this.actNum++}else this.$parent.expandNodes(this.selection[0]),setTimeout(()=>{this.nodesMoveToCenterView([this.selection[0].id])},100),this.actNum++},nodesMoveToCenterView(e,t=.9){if(e.length===0)return;const n=[],r=this.nodes.filter(A=>e.indexOf(A.id)>=0);r==null||r.forEach(function(A,C){const S=this.nodesGroup[A.id];n.push({bounds:(S==null?void 0:S.getClientRect())||{},fx:A.x||0,fy:A.y||0})});const s=this.getBounds(n);this.originTransform=this.originTransform={scaleX:this.stage.scaleX(),scaleY:this.stage.scaleY(),x:this.stage.x(),y:this.stage.y()};const o=this.stage.width(),a=this.stage.height()/1.5,l=s.width,c=s.height;if(l===0||c===0)return;let u=t/Math.max(l/o,c/a);u=Math.min(u,ho)||ho,this.scale=u;const d=this.stage.width()/(2*u),f=this.stage.height()/(2*u),h=this.nodesGroup[e[0]],g=h==null?void 0:h.getClientRect(),v=g.x*u,y=g.y*u,_=d-v,w=f-y;this.stage.setAttrs({scaleX:u,scaleY:u,x:_||0,y:w||0}),this.layer.batchDraw()},getBounds(e){let t,n,r,s;return e.map(o=>{const a=o.bounds,l=a.x+o.fx,c=a.y+o.fy;t=Math.min(l,t)||l,n=Math.min(c,n)||c,r=Math.max(l+a.width,r)||l+a.width,s=Math.max(c+a.height,s)||c+a.height}),{x:t,y:n,width:r-t,height:s-n}},resetMouseVars(){var e;this.mousedownNode=null,this.mousedownPos=null,this.mouseupNode=null,(e=this.dragLine)==null||e.destroy(),Object.keys(this.nodesGroup).forEach(t=>{this.nodesGroup[t].draggable(!0)})},loadCustomIcon(){if(this.customNodeImages&&!this.customIconLoaded){let e=0;const t=Object.keys(this.customNodeImages).length;Object.keys(this.customNodeImages).forEach(n=>rt(this,null,function*(){e++,Un[n]=yield Ir(this.customNodeImages[n]),e===t&&(this.customIconLoaded=!0)}))}else this.customIconLoaded=!0},loadIcons(){return new Promise((e,t)=>{const n=[],r=[];for(const c in this.moduleDetail.plugs){const u=this.moduleDetail.plugs[c];u==null||u.map(d=>{d.children?r.push(...d.children):r.push(d)})}n.push(...r.map(c=>c.icon)),n.push(...this.moduleDetail.nodes.map(c=>c.name)),n.push("node_type"),n.push("node"),n.push("aggregation");const s=this;let o=0;const a=n.filter(c=>this.imgPath[`${s.prefix}d3svg1/${c}.svg`]);function l(c){return{}.VITE_SVG_TYPE==="base64"?MS(c):LS(c)}a.map(c=>{l(this.imgPath[`${s.prefix}d3svg1/${c}.svg`]).then(u=>{s.iconFiles[c]=u;const d=Lq(u).width;this.iconSize[c]=this.nodeWidth?this.nodeWidth:d,o++,o===a.length&&(s.iconAllLoaded=!0,e())}).catch(u=>{console.log(u,"e"),t()})})})},toggleZoom(e){},handleNodeContextMenu(e,t){var n,r;e.evt&&e.evt[this.actKey]||(clearTimeout(this.popoverTimer),this.showPopover=!1,this.contextMenuId++,this.contextMenuNode=t,this.mousePosition.left=e.evt.clientX,this.mousePosition.top=e.evt.clientY,this.showContextMenu=!0,e.currentTarget.type==="aggregation"?this.menuOptions=_ue:this.menuOptions=(n=this.$parent.moduleDetail)!=null&&n.plugs[t.type]?Array.from((r=this.$parent.moduleDetail)==null?void 0:r.plugs[t.type]):[])},handleDeselectNode(e,t){Ye(this,"handle-select-node",{isSelected:!1,_node:it(t)}),this.selection.length&&(this.selection=[],this.updateSelection()),this.setHighlightRule({}),this.hideContextMenu()},setHighlightRule({prop:e,type:t,value:n}){this.highlightRule={prop:e,type:t,value:n},this.updateNodeStyle(),t||R8(".legend-filter .out-box").classed("active",!1)},updateSelection(){const e=this.selection.map(t=>t.id);this.nodes.forEach(t=>{var n,r;e.includes(t.id)?(n=this.nodesGroup[t.id])==null||n.addName("isSelected"):(r=this.nodesGroup[t.id])==null||r.removeName("isSelected")}),Ye(this,"updateSelection")},toggleLayout(e){this.history.layoutIndex=e,this.nodes.map(t=>{t.fx=t.fy=null}),this.updateSimulation(),this.ticked(),setTimeout(()=>{this.centerAndZoom()},200)},handleNodeClick(e,t){Fn({cId:"handleNodeClick",c:"点击节点"}),this.canAct&&(t.type==="org"?window.open("http://bs.safe.360.net/starmap","__blank"):t.type==="nodeType"&&t.id.indexOf("org")>=0&&window.open("http://bs.safe.360.net/orglist?snapshot=true","__blank1")),this.hideContextMenu();const n=this.selection.some(s=>s.id===t.id);if(e.evt.shiftKey){if(t.type==="nodeType"||this.selection.some(s=>s.type==="nodeType"))return;n?this.selection=this.selection.filter(s=>s.id!==t.id):this.selection=[...this.selection,t]}else n?this.selection=[]:this.selection=[t];const r=this.selection.some(s=>s.id===t.id);Ye(this,"handle-select-node",{isSelected:r,_node:t}),this.updateSelection(),this.setHighlightRule(this.highlightRule)},handleNodeMouseEnter(e,t){if(!this.showContextMenu&&!e.evt[this.actKey]){const n=e.target.width(),r=e.target.height(),s=e.target,o=s.getAbsolutePosition(),l=s.getStage().container().getBoundingClientRect(),c=o.x-n/2+l.left,u=o.y-r/2+l.top,d=c,f=u,h=d,g=d+n,v=f,y=f+r;this.hoverNodePosition={top:v,right:g,bottom:y,left:h,width:n,height:r},this.popoverType="node",this.popoverContent={[t.type]:t.id},this.popoverNode=t,this.popoverTimer&&clearTimeout(this.popoverTimer),this.popoverTimer=setTimeout(()=>{this.showPopover=!0},200)}},handleNodeMouseLeave(e,t){this.showContextMenu||(clearTimeout(this.popoverTimer),this.showPopover=!1)},handleNodeMouseUp(e,t){var n;e.evt[this.actKey]&&this.mousedownNode&&(this.dragLine&&((n=this.dragLine)==null||n.destroy()),this.mouseupNode=t,this.mouseupNode.id===this.mousedownNode.id||this.mouseupNode.type==="aggregation"||this.mousedownNode.type==="aggregation"||this.$parent.addLink(this.mousedownNode,this.mouseupNode)),this.resetMouseVars()},handleNodeMouseDown(e,t){if(e.evt[this.actKey]){this.mousedownNode=t,this.nodesGroup[t.id].draggable(!1);const n=this.stage.scaleX(),r=this.stage.getPointerPosition(),s=(r.x-this.stage.x())/n,o=(r.y-this.stage.y())/n;this.mousedownPos={x:s,y:o},this.dragLine=new zt.Line({points:[s,o,s,o],stroke:"black",strokeWidth:1,dash:[5,5],opacity:.7,visible:!0}),this.layer.add(this.dragLine),this.stage.draw()}},handleLinkMouseEnter(e,t){if(t.target.type==="nodeType")return;const n=!!t.edgeLabelProp;let r;if(n?r=t.edgeLabelProp:r=t.target.relay_name||t.target.name,r.length<=this.edgeLabelMaxLength)return;const o=this.linksGroup[`${t.source.id}-${t.target.id}`].findOne(".edgeLabel"),a=t.source.x,l=t.source.y,c=t.target.x,u=t.target.y;o&&(o.text(r),o.x((a+c)/2),o.y((l+u)/2),o.offsetX(o.getWidth()/2||0),o.offsetY(o.getHeight()/2+8||0))},handleLinkMouseLeave(e,t){if(t.target.type==="nodeType")return;const n=!!t.edgeLabelProp;let r;if(n?r=t.edgeLabelProp:r=t.target.relay_name||t.target.name,r.length<=this.edgeLabelMaxLength)return;const o=this.linksGroup[`${t.source.id}-${t.target.id}`].findOne(".edgeLabel"),a=t.source.x,l=t.source.y,c=t.target.x,u=t.target.y;o&&(o.text(r.substring(0,this.edgeLabelMaxLength)+"..."),o.x((a+c)/2),o.y((l+u)/2),o.offsetX(o.getWidth()/2||0),o.offsetY(o.getHeight()/2+8||0))},treeLayout(){this.nodes.map(e=>{e.fx=e.pos,e.fy=e.levelNum*this.levelHeight}),this.forceLayout()},resetLayout(){var e,t;(e=this.simulation)!=null&&e.stop&&((t=this.simulation)==null||t.stop()),this.nodes.map(n=>{delete n.vx,delete n.vy,delete n.x,delete n.y,delete n.fx,delete n.fy}),this.updateSimulation()},selectSingleEdgeNode(e){const t=[];this.links.map(n=>{n.source.id===e.id&&t.push(n.target.id)});for(let n=t.length-1;n>=0;n--){let r=0,s=0;const o=t[n];this.links.map(a=>{a.source.id===o&&r++,a.target.id===o&&s++}),r>=1&&t.splice(n,1),s>=2&&t.splice(n,1)}return t},selectChildren(e){const t=[];this.links.map(n=>{n.source.id===e.id&&t.push(n.target.id)}),this.handleTableSelect(t)},selectParents(e){const t=[];this.links.map(n=>{n.target.id===e.id&&t.push(n.source.id)}),this.handleTableSelect(t)},handleGlobalContextMenu(e){this.mousePosition.left=e.evt.clientX,this.mousePosition.top=e.evt.clientY,this.menuOptions=[],this.showContextMenu=!0,this.showPopover=!1,this.contextMenuNode={},e.evt.preventDefault()},hideContextMenu(){this.showContextMenu=!1,this.contextMenuNode={}},centerAndZoom(e=.7,t=!1){return rt(this,null,function*(){var h,g;if(pi("centerAndZoom"),!this.grab)return;this.stage.setAttrs({scaleX:1,scaleY:1,x:0,y:0});const n=this.stage.width(),r=this.stage.height(),s=this.grab.getClientRect();if(s.width===0||s.height===0)return;const o=n/s.width,a=r/s.height,l=e*Math.min(o,a),c=t?l:Math.min(l,ho),u=n/2-(s.x+s.width/2)*c,d=r/2-(s.y+s.height/2)*c;this.stage.setAttrs({scaleX:c,scaleY:c,x:u,y:d}),this.layer.batchDraw(),yield new Promise(v=>setTimeout(v,1e3));const f=this.grab.getClientRect();if((h=this.simulation)!=null&&h.force){const v=n/(2*c),y=r/(2*c);this.simulation.force("center",F4(v,y))}if(this.ticked(),this.history.layoutIndex===1){const v=(n-f.width*c)/2-f.x*c,y=(r-f.height*c)/2-f.y*c;this.stage.setAttrs({x:v,y}),this.layer.batchDraw(),(g=this.simulation)==null||g.stop()}})},reset(){this.stage.setAttrs(this.originTransform)},handleContextMenuClick({nodes:e,api:t,dataApi:n}){if(this.requestGraphData){let r,s;const o={show_label:"label",all_show_label:"label",all_show_names:"name",show_names:"name"};switch(t&&t.name){case"edit_label":this.editLabel(e);break;case"single_edge_select":r=this.selectSingleEdgeNode(e[0]),this.selection=this.nodes.filter(a=>r.includes(a.id));break;case"hold_aggregation":s=this.selectSingleEdgeNode(e[0]),this.$parent.aggregationNodes(s,e[0]);break;case"release_aggregation":this.$parent.releaseAggregation(e[0]);break;case"show_label":case"show_names":e.map(a=>{a.textProp=o[t.name]}),this.update();break;case"all_show_label":case"all_show_names":this.nodes.map(a=>{a.textProp=o[t.name]}),this.update();break;case"un_show_names":case"un_show_label":e.map(a=>{a.textProp=null}),this.update();break;case"all_un_show_names":case"all_un_show_label":this.nodes.map(a=>{a.textProp=null}),this.update();break;case"all_show_edges_label":this.links.map(a=>{a.edgeLabelProp=a.edge_label}),this.update();break;case"all_hide_edges_label":this.links.map(a=>{a.edgeLabelProp=null}),this.update();break;case"copy":this.copyNodeText(e);break;case"node_star":e.map(a=>{this.starNode(a)});break;case"un_node_star":e.map(a=>{this.starNode(a,!1)});break;case"fix_nodes":e.map(a=>{this.toggleMove(a,!0)});break;case"un_fix_nodes":e.map(a=>{this.toggleMove(a,!1)}),this.updateSimulation();break;case"all_fix_nodes":this.fixAllNodes(!0);break;case"all_un_fix_nodes":this.fixAllNodes(!1);break;case"expand_node":e.map(a=>{this.$parent.expandNodes(a)});break;case"expand_part_node":e.map(a=>{this.$parent.expandNodes(a,n)});break;case"go_result":this.handleGoDetail(e);break;case"delete_node":this.$parent.deleteNodes(e);break;case"select_children":this.selectChildren(e[0]);break;case"select_parents":this.selectParents(e[0]);break;case"undo":this.$parent.historyBack();break;case"redo":this.$parent.historyForward();break;case"add_con_node":this.$parent.$refs.buttonList.addNode("diy",e[0]);break;case"add_link":this.$parent.$refs.buttonList.addNode("diy",e[0]);break;case"show_node":this.toggleShowNode(e[0],e[1],!0);break;case"hide_node":this.toggleShowNode(e[0],e[1],!1);break;case"show_nodes":this.toggleShowNodes(e,!0);break;case"hide_nodes":this.toggleShowNodes(e,!1);break;default:Ye(this,"custom-contextmenu-click",{eventName:t.name,customConfig:t.customConfig,nodes:e,allNodes:it(this.history.dataNow.nodes)})}this.hideContextMenu(),setTimeout(()=>{this.updateSelection()},400)}else gn({message:"无可操作权限",type:"warning"})},expandNodes(e,t){Fn({cId:"dblclick",c:"双击节点"}),this.requestGraphData?this.$parent.expandNodes(t):gn({message:"无可操作权限",type:"warning"})},toggleShowNode(e,t,n=!0){this.history.toggleShowNode(e,null,n),this.selection.filter(s=>s.show).length>0||this.handleTableSelect([]),setTimeout(this.updateNodeStyle,100)},toggleShowNodes(e,t=!0){e.forEach(n=>{this.history.toggleShowNode(n,null,t)}),setTimeout(this.updateNodeStyle,100)},copyNodeText(e){let t="";e.filter(n=>n.type!=="aggregation"&&n.type!=="nodeType").map(n=>{t=t+n.id+`
|
|
155
|
-
`}),t&&wue(t).then(()=>{gn({message:"复制成功",type:"success"})},n=>{console.log("copy---e",n)})},toggleMove(e,t){e.fx=t?e.x:null,e.fy=t?e.y:null},autoDisplay(){this.nodes.map(e=>{e.fx=null,e.fy=null})},editLabel(e){var t;TS.prompt("修改备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:(t=e[0])==null?void 0:t.label,inputPlaceholder:"请输入备注,最多20字",inputValidator:n=>n.length>20?"已超过20字":!0}).then(({value:n})=>{e.map(r=>{r.label=n,this.showLabel(r,"label")}),this.updateNodeStyle()}).catch(n=>{console.log(n)})},showLabel(e,t){e.textProp=t,this.update()},hideLabel(e,t){e.textProp=null,this.update()},safeGet(e,t){return!e||!t?void 0:t.split(".").reduce((s,o)=>s&&s[o]?s[o]:void 0,e)},fixAllNodes(e=!0){this.nodes.map(t=>{this.toggleMove(t,e)}),!e&&this.isAutoTick&&this.updateSimulation()},highlightByRule(e,t){if(!e.prop&&!t){this.nodes.forEach(l=>{const c=this.nodesGroup[l.id];c==null||c.removeName("lowlight")}),this.links.forEach(l=>{const c=this.linksGroup[`${l.source.id}-${l.target.id}`];c==null||c.removeName("lowlight")});return}const{type:n,prop:r,value:s}=e,o=this,a=[];this.nodes.forEach(l=>{const c=this.nodesGroup[l.id];r?n==="include"?s.includes(o.safeGet(l,r))&&o.inNodesRange(t,l)?(c==null||c.removeName("lowlight"),a.push(l)):c==null||c.addName("lowlight"):n==="equal"?o.safeGet(l,r)===s&&o.inNodesRange(t,l)?(c==null||c.removeName("lowlight"),a.push(l)):c==null||c.addName("lowlight"):n==="boolean"&&(O0(o.safeGet(l,r))&&o.inNodesRange(t,l)?(c==null||c.removeName("lowlight"),a.push(l)):c==null||c.addName("lowlight")):o.inNodesRange(t,l)?(c==null||c.removeName("lowlight"),a.push(l)):c==null||c.addName("lowlight")}),this.links.forEach(l=>{const c=this.linksGroup[`${l.source.id}-${l.target.id}`];a.some(d=>d.id===l.target.id)?c==null||c.removeName("lowlight"):c==null||c.addName("lowlight")})},handleCustomSelect(e){if(this.handleDeselectNode(),!e.prop)return;const{type:t,prop:n,value:r}=e,s=this;this.nodes.forEach(o=>{if(n&&t==="include"){let a;if(o.type==="nodeType"){const l=s.safeGet(o,"parents"),c=s.safeGet(o,"children"),u=l==null?void 0:l.some(f=>r.includes(f)),d=c==null?void 0:c.some(f=>r.includes(f));a=u&&d}(r.includes(s.safeGet(o,n))||a)&&this.selection.push(o)}}),this.updateSelection()},inNodesRange(e,t){return e?e.some(n=>n===t.id):!0},loadFlagFiles(e){return rt(this,null,function*(){return new Promise(t=>{this.flagFiles[e]?t(this.flagFiles[e]):(this.flagFiles[e]=this.imgPath[`${this.prefix}d3svg1/flags/${e}.png`],t(this.flagFiles[e]))})})},getNodeImage(e){return rt(this,null,function*(){var s,o,a,l,c,u,d,f,h,g,v,y;let t=null;const n=(a=(o=(s=e.detail)==null?void 0:s.info)==null?void 0:o.basic)==null?void 0:a.flag,r=(u=(c=(l=e==null?void 0:e.detail)==null?void 0:l.info)==null?void 0:c.basic)==null?void 0:u.level;if(this.customNodeImages&&this.customNodeImages[e.type]){if(Un[e.type])return Un[e.type];t=yield Ir(this.customNodeImages[e.type]),Un[e.type]=t}else if(e.detail&&((f=(d=e.detail)==null?void 0:d.info)!=null&&f.icon_img))try{t=yield Ir(e.detail.info.icon_img)}catch(_){console.log("loadCompleted error",_)}else if(e.detail&&((g=(h=e.detail)==null?void 0:h.info)!=null&&g.inner_img))try{t=yield Ir(e.detail.info.inner_img)}catch(_){console.log("loadCompleted error",_)}else if(e.type==="nodeType"||e.type==="aggregation"){if(e!=null&&e.icon_img)try{return t=yield Ir(e.icon_img),t}catch(w){console.log("loadCompleted error",w)}const _=e.icon||"node_type";if(Un[_])return t=Un[_],t;t=this.iconFiles[_]?this.iconFiles[_]:this.iconFiles.node_type,t=yield Ir("data:image/svg+xml,"+encodeURIComponent(t)),Un[_]=t}else if(n&&(e.type==="ip"||e.type==="internet")){if(Un[n])return t=Un[n],t;yield this.loadFlagFiles(n),t=yield Ir(this.flagFiles[n]),Un[n]=t}else if((y=(v=e.detail)==null?void 0:v.info)!=null&&y.inner_country&&(e.type==="country"||e.type==="target_country")){const _=e.detail.info.inner_country;if(Un[_])return t=Un[_],t;yield this.loadFlagFiles(_),t=yield Ir(this.flagFiles[_]),Un[_]=t}else{const _=`${e.type||"node"}${r}${this.darkMode}`;if(Un[_])return t=Un[_],t;t=this.iconFiles[e.type]?this.iconFiles[e.type]:this.iconFiles.node;const w=Qo(r,this.levelList,this.darkMode),A=this.darkMode?"#182628":"#fff";t=kS(t,w,A);try{t=yield Ir("data:image/svg+xml,"+encodeURIComponent(t))}catch(C){}Un[_]=t}return t})},handleGoDetail(e){e.forEach(t=>{if(t.isCluster)return;const n=t.type,r=this.moduleDetail.config.jumpRule[n];if(r)if(n==="org"){const s=t.id.split("(")[0];s.indexOf("APT")>=0&&window.open(r.split("${id}").join(s),t.id)}else{let s=t.origin&&t.origin[0]||t.id;(n==="url"||n==="virus")&&(s=encodeURIComponent(s)),window.open(r.split("${id}").join(s),t.id)}})},starNode(e,t=!0){e.collect=t,this.update()},handleAddBlack(e){this.showBlackType=!0,this.node=e},changeVisible(e){this.showBlackType=e},zoomIn(){this.adjustZoom(1.1)},zoomOut(){this.adjustZoom(.909)},adjustZoom(e){const n=this.stage.scaleX()*e;this.scale=n;const r={x:this.stage.width()/2,y:this.stage.height()/2},s={x:this.stage.getPointerPosition().x-this.stage.x(),y:this.stage.getPointerPosition().y-this.stage.y()},o={x:-(s.x-r.x)*(e-1),y:-(s.y-r.y)*(e-1)};this.stage.setAttrs({x:this.stage.x()+o.x,y:this.stage.y()+o.y,scaleX:n,scaleY:n}),this.layer.batchDraw()},addNodesDetail(e){return rt(this,null,function*(){const t=e.filter(s=>!s.detail&&s.noDetail!==!0&&s.type!=="aggregation"&&s.type!=="nodeType"),n={};t.map(s=>{n[s.type]?n[s.type].push(s):n[s.type]=[s]});const r=[];for(const s in n){const o=n[s],a={};o.map(l=>{l.origin&&(a[l.id]=l.origin)}),r.push(this.graphApi.getNodesDetail({api:this.moduleDetail.node_info[n[s][0].type],node_id:n[s].map(l=>l.id),origin:a}).then(l=>(l.data.records.map(u=>{const d=e.find(f=>f.id===u.info.id);d.detail=u}),Promise.resolve({}))))}})},addCanvasBg(){const e=this.stage.scaleX(),t=this.stage.x(),n=this.stage.y();this.darkBgRect=new zt.Rect({x:-t/e,y:-n/e,width:this.stage.width()/e,height:this.stage.height()/e,fill:this.canvasBg,listening:!1,draggable:!1}),this.layer.add(this.darkBgRect),this.darkBgRect.moveToBottom(),this.layer.batchDraw()},removeCanvasBg(){this.darkBgRect&&this.darkBgRect.destroy(),this.darkBgRect=null,this.layer.batchDraw()}}},xue={class:"main-svg-box","element-loading-text":"布局中...","element-loading-background":"rgba(122, 122, 122)"},Aue={ref:"canvasContainer",class:"canvas-container"};function Pue(e,t,n,r,s,o){const a=Ge("popover"),l=Ge("node-contextmenu"),c=xS;return R(),V("div",{class:Z(["render-container",n.darkMode?"dark-theme "+s.uniqueClass:" "+s.uniqueClass])},[Dt((R(),V("div",xue,[G("div",Aue,null,512)])),[[c,s.ticking]]),n.enablePopover?(R(),_e(a,{key:0,"dark-mode":n.darkMode,"show-popover":s.showPopover&&!s.isDragging,"mouse-position":s.hoverNodePosition,"node-info":s.popoverNode,"module-detail":n.moduleDetail,type:s.popoverType,"custom-tooltip":n.customTooltip,history:n.history,data:n.history.dataNow},null,8,["dark-mode","show-popover","mouse-position","node-info","module-detail","type","custom-tooltip","history","data"])):se("",!0),n.isThreatPath?se("",!0):(R(),_e(l,{key:1,show:o.showContextMenuFlag,axis:s.mousePosition,"node-info":o.contextMenuNodes,history:n.history,"menu-options":s.menuOptions,"module-detail":n.moduleDetail,onContextmenuClick:o.handleContextMenuClick},null,8,["show","axis","node-info","history","menu-options","module-detail","onContextmenuClick"]))],2)}const Tue=un(Eue,[["render",Pue]]),Yge="",Xge="",Zge="",{toClipboard:NA}=Mf(),Oue={name:"SnapShotDialog",components:{},mixins:[],props:{snapshot:{type:Object,default:()=>{}},graphApi:{type:Object,default:()=>{}}},data(){return{dialogVisible:!1,origin:window.location.origin,ruleForm:{radio:"0",event:"",group:"",graphDesc:""},rules:{event:[{required:!0,message:"请选择安全事件",trigger:"change"}],group:[{required:!1,message:"请选择团队",trigger:"change"}]},eventOptions:[{value:"",label:""}],groupOptions:[{value:"",label:""}],hostList:["https://sc.360.net","https://sc.b.qihoo.net","http://sec.test.safe.qihoo.net"],isInnerAccount:!1,visibleSuccess:!1,eventUrl:null}},computed:{},watch:{snapshot:{handler:function(e,t){e.name&&(this.ruleForm.graphDesc=e.name)},immediate:!0,deep:!0}},mounted(){this.graphApi.getReportList&&this.graphApi.getReportList().then(e=>{e.data!==null&&(this.eventOptions=[],e.data.map(t=>{this.eventOptions.push({label:t.title,value:t.report_id})}))}),this.graphApi.getGroupList&&this.graphApi.getGroupList().then(e=>{e.data!==null?(this.groupOptions=[],e.data.map(t=>{this.groupOptions.push({label:t.group_name,value:t.group_id})}),this.isInnerAccount=!0):this.isInnerAccount=!1})},updated(){},beforeUnmount(){},methods:{hanleClickCopy(e){NA(e).then(t=>gn({message:"复制成功",type:"success"}),t=>gn.error("复制失败"))},show(){this.dialogVisible=!0},hide(){this.dialogVisible=!1,this.resetForm("ruleForm")},submitForm(e){this.$refs[e].validate(t=>{if(t){const n=this.hostList.some(l=>l===this.origin);let r=null;n?this.origin===this.hostList[1]?r=`${this.hostList[0]}/graph?snapshot_id=${this.snapshot.snapshot_id}&vcode=${this.snapshot.vcode}`:r=`${this.origin}/graph?snapshot_id=${this.snapshot.snapshot_id}&vcode=${this.snapshot.vcode}`:r=`http://test.sec.360.net/graph?snapshot_id=${this.snapshot.snapshot_id}&vcode=${this.snapshot.vcode}`,this.eventUrl=window.location.origin+"/event/"+this.ruleForm.event;const s=this.snapshot.thumb;let o=null;this.groupOptions.map(l=>{l.value===this.ruleForm.group&&(o=l.label)});const a={report_id:this.ruleForm.event,group_id:this.ruleForm.group,content:s,graph_url:r,group_name:o,acl:parseInt(this.ruleForm.radio),head:this.ruleForm.graphDesc};this.graphApi.addGraph(a).then(l=>{l.code==="0"?(NA(this.eventUrl),gn({message:"分享成功! 分享事件地址已经复制",type:"success",showClose:!0,duration:5e3})):gn({message:"分享失败",type:"error"})}).catch(()=>{gn({message:"分享失败",type:"error"})}),this.resetForm(e),this.dialogVisible=!1}else return!1})},resetForm(e){this.$refs[e].resetFields(),this.snapshot.name=""}}},Nue={class:"sharetoEvents"},Iue={class:"lable-header"},Rue={class:"desc"},Due={key:0,class:"desc-font"},Lue={key:1,class:"desc-font"},kue={class:"dialog-footer"};function Mue(e,t,n,r,s,o){const a=x$,l=Sf,c=Cf,u=zm,d=Go,f=Vm,h=Ko,g=Kc;return R(),V("div",Nue,[ne(g,{title:"分享到安全事件","append-to-body":"","close-on-click-modal":!1,width:"25%",modelValue:s.dialogVisible,"onUpdate:modelValue":t[6]||(t[6]=v=>s.dialogVisible=v),class:"el-dialog-graph"},{footer:te(()=>[G("span",kue,[ne(h,{type:"primary",onClick:t[5]||(t[5]=v=>o.submitForm("ruleForm"))},{default:te(()=>t[9]||(t[9]=[Je("确认分享")])),_:1}),ne(h,{onClick:o.hide},{default:te(()=>t[10]||(t[10]=[Je("关闭")])),_:1},8,["onClick"])])]),default:te(()=>[ne(f,{ref:"ruleForm",model:s.ruleForm,rules:s.rules,"label-width":"100px",class:"demo-ruleForm"},{default:te(()=>[G("div",Iue,[ne(a,{modelValue:s.ruleForm.radio,"onUpdate:modelValue":t[0]||(t[0]=v=>s.ruleForm.radio=v),class:"el-radio",label:"1",border:"",size:"medium"},{default:te(()=>t[7]||(t[7]=[Je("付费可见")])),_:1},8,["modelValue"]),ne(a,{modelValue:s.ruleForm.radio,"onUpdate:modelValue":t[1]||(t[1]=v=>s.ruleForm.radio=v),label:"0",border:"",size:"medium"},{default:te(()=>t[8]||(t[8]=[Je("开放")])),_:1},8,["modelValue"]),G("div",Rue,[s.ruleForm.radio==="0"?(R(),V("span",Due,"该Graph内容对所有用户可见。")):(R(),V("span",Lue,"该Graph内容对付费用户可见。"))])]),ne(u,{label:"安全事件",prop:"event"},{default:te(()=>[ne(c,{modelValue:s.ruleForm.event,"onUpdate:modelValue":t[2]||(t[2]=v=>s.ruleForm.event=v),"popper-append-to-body":!1,filterable:"",placeholder:"请选择",class:"select-item"},{default:te(()=>[(R(!0),V(qe,null,Nt(s.eventOptions,v=>(R(),_e(l,{key:v.value,label:v.label,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s.isInnerAccount?(R(),_e(u,{key:0,label:"选择团队",prop:"group"},{default:te(()=>[ne(c,{modelValue:s.ruleForm.group,"onUpdate:modelValue":t[3]||(t[3]=v=>s.ruleForm.group=v),class:"select-item",filterable:"",placeholder:"请选择"},{default:te(()=>[(R(!0),V(qe,null,Nt(s.groupOptions,v=>(R(),_e(l,{key:v.value,label:v.label,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):se("",!0),ne(u,{label:"Graph介绍",prop:"graphDesc"},{default:te(()=>[ne(d,{modelValue:s.ruleForm.graphDesc,"onUpdate:modelValue":t[4]||(t[4]=v=>s.ruleForm.graphDesc=v),type:"textarea",rows:2,placeholder:"请输入内容",maxlength:"50",clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])])}const Fue=un(Oue,[["render",Mue]]),Qge="",{toClipboard:Bue}=Mf(),jue={name:"SnapShotDialog",components:{ShareToSecurityEvents:Fue},mixins:[],props:{customCopyPathFn:{type:Function},graphUrlPath:{type:String,default:"/graph"},snapshot:{type:Object,default:()=>{}},graphApi:{type:Object,default:()=>{}}},data(){return{dialogVisible:!1,origin:window.location.origin,isInnerAccount:!1}},computed:{linkAddress(){return this.customCopyPathFn&&typeof this.customCopyPathFn=="function"?this.customCopyPathFn({snapshot_id:this.snapshot.snapshot_id}):`${this.origin}${this.graphUrlPath}?snapshot_id=${this.snapshot.snapshot_id}`},linkAddressAndCode(){return this.customCopyPathFn&&typeof this.customCopyPathFn=="function"?this.customCopyPathFn({snapshot_id:this.snapshot.snapshot_id,vcode:this.snapshot.vcode}):`${this.linkAddress}&vcode=${this.snapshot.vcode}`}},watch:{},created(){},mounted(){Xs(bt,"sharePermission",e=>{this.isInnerAccount=e})},updated(){},beforeUnmount(){Zs(bt,"sharePermission")},methods:{hanleClickCopy(e){Bue(e).then(t=>gn({message:"复制成功",type:"success"}),t=>gn.error("复制失败"))},show(){this.dialogVisible=!0},hide(){this.dialogVisible=!1},shareToEvents(){this.dialogVisible=!1,this.$refs.sharetoevents.show()}}},Uue={class:"snapshotdialog-container"},$ue={class:"dialog-footer"};function Vue(e,t,n,r,s,o){const a=Go,l=q$,c=Ko,u=Kc,d=Ge("ShareToSecurityEvents");return R(),V("div",Uue,[ne(u,{modelValue:s.dialogVisible,"onUpdate:modelValue":t[2]||(t[2]=f=>s.dialogVisible=f),title:"复制链接及提取码","append-to-body":"","close-on-click-modal":!1,class:"el-dialog-graph"},{footer:te(()=>[G("span",$ue,[s.isInnerAccount?(R(),_e(c,{key:0,type:"primary",onClick:t[0]||(t[0]=f=>o.shareToEvents())},{default:te(()=>t[5]||(t[5]=[Je("分享到安全事件")])),_:1})):se("",!0),ne(c,{type:"primary",onClick:t[1]||(t[1]=f=>o.hanleClickCopy(o.linkAddressAndCode))},{default:te(()=>t[6]||(t[6]=[Je("复制链接及提取码")])),_:1}),ne(c,{onClick:o.hide},{default:te(()=>t[7]||(t[7]=[Je("关闭")])),_:1},8,["onClick"])])]),default:te(()=>[ne(a,{value:o.linkAddress,readonly:""},{prepend:te(()=>t[3]||(t[3]=[Je("链接地址:")])),_:1},8,["value"]),ne(l),ne(a,{value:n.snapshot.vcode,readonly:""},{prepend:te(()=>t[4]||(t[4]=[Je("提取码:")])),_:1},8,["value"])]),_:1},8,["modelValue"]),ne(d,{ref:"sharetoevents",snapshot:n.snapshot,"graph-api":n.graphApi},null,8,["snapshot","graph-api"])])}const zue=un(jue,[["render",Vue]]),eme="",que={name:"ForceGraphByCanvas",components:{Loading:Ua,ForceGraphSvgIcon:Zo,RenderByCanvas:Tue,ButtonList:jY,SnapShotDialog:zue,RightMenu:lW,Legend:aJ,NodeVisibleControl:hJ},mixins:[Rr],provide:function(){return{history:this.history,hasLevel:this.hasLevel,levelList:this.levelList,levelMap:this.levelMap,getDarkMode:()=>this.darkMode,requestGraphData:this.requestGraphData,moduleDetail:()=>this.moduleDetail}},props:{showPoint:{type:Boolean,default:!0},isRenderStartNode:{type:Boolean,default:!0},isDefaultSelectStartNode:{type:Boolean,default:!0},isShowRightMenu:{type:Boolean,default:!0},enablePopover:{type:Boolean,default:!0},canvasBg:{type:String,default:"transparent"},hideButtonList:{type:Array,default:()=>[]},showTopSearch:{type:Boolean,default:!1},customContextMenuEvent:{type:Function},handleSelectNodeEvent:{type:Function},handleDataLoaded:{type:Function},graphApi:{type:Object,default:()=>{}},graphUrlPath:{type:String,default:"/graph"},customCopyPathFn:{type:Function},snapshot_id:{type:String,default:""},vcode:{type:String,default:""},module:{type:String,default:""},startNode:{type:Array,default:()=>[]},enterStartNode:{type:Boolean,default:!1},hasLevel:{type:Boolean,default:!0},levelList:{type:Array,default:()=>[{level:"未知",levelName:"未知",className:"unknown",iconType:"",normalColor:"#666",darkColor:"#c6cdd5",dangerNumber:0},{level:"危险",levelName:"危险",className:"warn",iconType:"",normalColor:"#CF1322",darkColor:"#fb2400",dangerNumber:1},{level:"普通",levelName:"普通",className:"normal",iconType:"",normalColor:"#007EE2",darkColor:"#0094ff",dangerNumber:-1},{level:"安全",levelName:"安全",className:"safe",iconType:"",normalColor:"#009A75",darkColor:"#00da90",dangerNumber:-2}]},showLevelCount:{type:Boolean,default:!1},darkMode:{type:Boolean,default:!1},title:{type:String,default:""},isShowNodeMessage:{type:Boolean,default:!0},nodeWidth:{type:Number},startNodeWidth:{type:Number},linkDistance:{type:Number},strength:{type:Number},nodeTypeScale:{type:Number},singlesNodeMaxNum:{type:Number,default:100},startNodeAnimation:{type:Boolean,default:!0},customTooltip:{type:Function},enableScript:{type:Boolean,default:!1},edgeLabelMaxLength:{type:Number,default:10},hasNodeVisibleControl:{type:Boolean,default:!1},hasLegend:{type:Boolean,default:!0},customNodeImages:{type:Object,default:()=>{}},isShowNodeType:{type:Boolean,default:!0}},emits:["sharePermission","custom-contextmenu-click","handle-select-node","handle-data-loaded","outdate"],data(){return{history:new wq({isShowNodeMessage:this.isShowNodeMessage}),isLoading:!1,bigLoading:!1,loadingInfo:"数据加载中",moduleDetail:{},contextMenuNode:{},contextMenuId:0,isDragging:!1,isCtrlDown:!1,selection:[],snapshot:{},inited:!1,outdateTime:0,fullScreen:!1,generateUniqueIndexNow:this.generateUniqueIndex(),screenHeight:0,margin:"0",requestGraphData:!0,nodeTypeList:[]}},computed:{topFrame(){return window.top.location===window.location},levelMap(){const e={};return this.levelList.forEach(t=>{e[t.level]=t}),e}},watch:{startNode:{handler:function(e,t){this.moduleDetail.module&&this.searchStartNode()},immediate:!0,deep:!0},screenHeight:{deep:!0,handler:function(){this.margin=this.changeMargin()}}},unmounted(){window.onresize=null},mounted(){return rt(this,null,function*(){console.log('"2024/12/18 16:19:56"',"2024/12/18 16:19:56"),this.initializeGraphApi(),window.onresize=()=>{this.fullScreen=!!document.fullscreenElement,this.screenHeight=document.body.clientHeight},this.margin=this.changeMargin(),Xs(bt,"emitDataLoaded",()=>{this.emitDataLoaded()})})},methods:{initializeGraphApi(){if(this.graphApi){if(this.snapshot_id)this.isLoading=!0,this.graphApi.getSnapshotDetail({snapshot_id:this.snapshot_id,vcode:this.vcode}).then(e=>{this.moduleDetail=e.data.config,this.history.initFromSnapshot(JSON.parse(e.data.data)),setTimeout(()=>{this.$refs.render.updateNodeStyle(),this.centerAndZoom(.8,!1)},1e3)}).catch(e=>{console.log(e,"e")}).finally(e=>{this.isLoading=!1});else if(this.module)this.initGraph();else{gn.error("请传入模块名称");return}this.graphApi.userInfo&&this.graphApi.userInfo().then(e=>{e.data!==null&&(Ye(bt,"sharePermission",e.data.access.graph_share),this.requestGraphData=e.data.access.request_graph_data)}).catch(e=>{this.onOutdate(e.res)})}},handleCustomContextMenuClick(e){this.customContextMenuEvent&&typeof this.customContextMenuEvent=="function"?this.customContextMenuEvent(it(e)):Ye(this,"custom-contextmenu-click",it(e))},handleSelectNode(e){this.handleSelectNodeEvent&&typeof this.handleSelectNodeEvent=="function"?this.handleSelectNodeEvent(it(e),it(this.history.dataNow)):Ye(this,"handle-select-node",it(e))},searchStartNode(){this.startNode.length>0&&!this.inited&&this.startNode.map(e=>{const t={type:e.type,id:e.id,startNode:!0};this.inited=!0,this.moduleDetail.nodes.findIndex(n=>e.type===n.name)>=0?this.addNewNodesAndExpand(t):(gn({message:"无相关数据",type:"warning"}),this.emitDataLoaded())})},initGraph(){return rt(this,null,function*(){var e;pi("initGraph"),(e=this.graphApi)==null||e.getGraphConfig({name:this.module}).then(t=>{const n=t.data||{},r=Df(n==null?void 0:n.node_info),s=(n==null?void 0:n.nodes)||[];s.forEach(a=>{a.name=a.name.toLowerCase()});const o=Df(n==null?void 0:n.plugs);n.node_info=r,n.nodes=s,n.plugs=o,this.moduleDetail=n,this.searchStartNode(),!this.inited&&this.enterStartNode&&this.$refs.buttonList.addNode("search")}).catch(t=>{this.onOutdate(t.res),this.emitDataLoaded(),console.log("e",t)})})},addNewNodesAndExpand(e){this.isLoading=!0,this.graphApi.getNodesDetail({api:this.moduleDetail.node_info[e.type],node_id:[e.id],nodeType:e.type,moduleDetail:this.moduleDetail}).then(t=>{var s,o,a;let n={id:(s=t.data.records[0])==null?void 0:s.info.id,type:(o=t.data.records[0])==null?void 0:o.info.type,startNode:!0,detail:t.data.records[0],group:e.id,name:((a=t.data.records[0])==null?void 0:a.info.name)||e.id};n=hs(n,this.moduleDetail.plugs);const r={addOne:{nodes:[n],links:[]}};this.isRenderStartNode&&(this.history.pushState(r),this.history.updateData(t.data.records,[e.id]),setTimeout(()=>{this.isDefaultSelectStartNode&&(this.handleTableSelect([e.id]),setTimeout(()=>{this.selection.length&&this.handleSelectNode({isSelected:!0,_node:this.selection[0]})},0))},500)),this.expandNodes(n)}).catch(t=>{console.log(t,"e"),this.emitDataLoaded(),this.onOutdate(t.res),gn({message:"无该节点信息",type:"warning"})}).finally(()=>{this.isLoading=!1})},onAction(e){this.history.pushState(e)},onOutdate(e){(e==null?void 0:e.code)==="AC100001"&&this.outdateTime<1&&(this.outdateTime++,Ye(this,"outdate"))},expandNodes(e,t){return rt(this,null,function*(){if(!(e!=null&&e.type))return;const n=this.moduleDetail.plugs[e==null?void 0:e.type];let r=[];t?(r=Array.isArray(t)?[...t]:[t],e.apis===void 0&&(e.apis=[]),e.apis.push(...r)):(e.expand=1,e.apis=[],e.apis.push({namec:"拓线全部",value:0,name:"",flagSelect:!0}),n==null||n.map(u=>{u.children?r.push(...u.children):r.push(u)}));const s=r.map(u=>this.graphApi.getGraphRequest({api:u.name,node_id:e.id,origin:e.origin,nodeType:e.type,moduleDetail:this.moduleDetail}).then(d=>Promise.resolve(Me(be(be({},d),u),{api:u.name,apiC:u.relay_name,icon:u.icon,note_name:u.note_name,icon_img:u.icon_img,canLoop:u.canloop,showTotal:u.show_total}))).catch(d=>Promise.resolve(d)));this.isLoading=!0;let o;yield Promise.all(s).then(u=>{if(u.some(f=>{var h;return((h=f.res)==null?void 0:h.code)==="AC100001"})){this.onOutdate({code:"AC100001"});return}o=u.filter(f=>f.code==="0"||f.code===0)}).catch(u=>{console.log(u,"e")}).finally(u=>{this.isLoading=!1});const a=[];let l=[];if(o&&o.forEach(u=>{var C;if(e.getData[u.api]=!0,this.history.dataNow.nodes.find(x=>x.id===e.id)&&(this.history.dataNow.nodes.find(x=>x.id===e.id).getData[u.api]=!0),!u.data)return;let d;const f=(C=u.data.nodes||[])==null?void 0:C.map(x=>(x.group=e.id+"-"+u.api,x.groupC=u.apiC,x=hs(x,this.moduleDetail.plugs),x));if(!this.isShowNodeType){d=u.data.links||[],a.push(...u.data.nodes||[]),l.push(...d||[]);return}const h=e.id+"-"+u.api;let g={id:h,name:u.apiC,note_name:u.note_name,type:"nodeType",icon:u.icon,showTotal:u.showTotal,icon_img:u.icon_img};const S=u,{code:v,msg:y,data:_}=S,w=Ps(S,["code","msg","data"]);g=be(be({},w),g);const A={source:e.id,target:h};if(g=hs(g,this.moduleDetail.plugs),this.nodeTypeList.push(u.icon||"node_type"),f.length>0&&this.isRenderStartNode){if(d=(u.data.links||[]).map(x=>{let O;if(x.source===e.id){const N=this.history.dataNow.nodes.filter(I=>I.id===x.target);if(N.length>0&&(O=this.findGrandSonNodeIds(N[0]).indexOf(x.source)>=0),!u.api.canLoop&&O)return;x.source=h}else x.target===e.id&&(x.target=h);return x.edgeLabelProp=x.edge_label,x}).filter(x=>x),d.length===0)return;d.push(A)}else d=u.data.links||[];if(this.isRenderStartNode&&f.length>=this.singlesNodeMaxNum){let x=null,O=null;const N=String(Math.floor(new Date().getTime()));x={id:N,list:f,type:"aggregation",name:"聚合",relationId:g.id},x=hs(x,this.moduleDetail.plugs),O={source:g.id,target:N,uniqueIndex:this.generateUniqueIndexNow()};const I={addOne:{nodes:[g,x],links:[A,O]},type:"aggregation"};this.history.pushState(I),this.getNodeDetail(x.list,x.id)}else d.length&&this.isRenderStartNode&&f.push(g),a.push(...f||[]),l.push(...d||[])}),!this.isRenderStartNode){const u={},d={},f=[];this.nodeTypeList.push("node_type"),l.forEach(h=>{const g=h.source+"-"+h.name;if(!u[g]){let v={id:g,name:h.name,type:"nodeType",icon:h.feature.icon};v=hs(v,this.moduleDetail.plugs),u[g]=v}d[g]?d[g].push(h):d[g]=[h]});for(const h in u)a.push(u[h]);for(const h in d)d[h].forEach(v=>{const y=Me(be({},v),{source:v.source,target:h}),_=Me(be({},v),{source:h,target:v.target});f.push(y),f.push(_)});l=f}l.map(u=>{u.uniqueIndex=this.generateUniqueIndexNow()});const c={addOne:{nodes:a,links:l}};(a.length>0||l.length>0)&&this.history.pushState(c),this.history.length===2&&setTimeout(()=>{this.centerAndZoom(.8,!1)},1e3),this.getNodeDetail(a)})},findGrandSonNodeIds(e){return this.history.dataNow.nodes.filter(r=>{var s;return((s=e.children)==null?void 0:s.indexOf(r.id))>=0}).reduce((r,s)=>(r.push(...s.children||[]),r),[])||[]},centerAndZoom(e,t){var n;(n=this.$refs.render)==null||n.centerAndZoom(e,t)},generateUniqueIndex(){let e=0;return function(){return e++}},reset(){this.$refs.render.reset()},getNodeDetail(e,t){const r=this.history.dataNow.nodes.filter(a=>e.findIndex(l=>l.id===a.id)>=0).filter(a=>!a.detail&&a.noDetail!==!0&&a.type!=="aggregation"&&a.type!=="nodeType"),s={};r.map(a=>{s[a.type]?s[a.type].push(a):s[a.type]=[a]});let o=Object.keys(s).length;for(const a in s){const l=s[a],c={};l.map(u=>{u.origin&&(c[u.id]=u.origin)}),this.graphApi.getNodesDetail({api:this.moduleDetail.node_info[s[a][0].type],node_id:s[a].map(u=>u.id),origin:c,nodeType:s[a][0].type,moduleDetail:this.moduleDetail}).then(u=>{const d=u.data.records;t?this.history.updateAggregationDetail(d,s[a].map(f=>f.id),t):this.history.updateData(d,s[a].map(f=>f.id))}).catch(u=>{this.onOutdate(u.res)}).finally(()=>{o=o-1,o===0&&(pi(" 数据加载完"),this.emitDataLoaded())})}Object.keys(s).length||this.emitDataLoaded()},emitDataLoaded(){this.handleDataLoaded&&typeof this.handleDataLoaded=="function"?this.handleDataLoaded({dataNow:it(this.history.dataNow)}):Ye(this,"handle-data-loaded",{dataNow:it(this.history.dataNow)})},addNode({node:e,type:t,connectNode:n}){if(this.history.dataNow.nodes.findIndex(o=>o.id===e.id)>-1){gn({type:"warning",message:"该节点已存在,添加失败"});return}let s;if(t==="diy"&&e.type==="nodeType"){let o=Me(be({},e),{detail:null,diy:!0,group:e.id});o=hs(o,this.moduleDetail.plugs);const a=n?{source:n.id,target:e.id,uniqueIndex:this.generateUniqueIndexNow()}:null;s={addOne:{nodes:[o],links:a?[a]:[]}},this.history.pushState(s)}else t==="diy"?this.graphApi.getNodesDetail({api:this.moduleDetail.node_info[e.type],node_id:[e.id],nodeType:e.type,moduleDetail:this.moduleDetail}).then(o=>{var c,u,d;let a={id:(c=o.data.records[0])==null?void 0:c.info.id,type:(u=o.data.records[0])==null?void 0:u.info.type,detail:o.data.records[0],group:e.id,name:((d=o.data.records[0])==null?void 0:d.info.name)||e.id};a=hs(a,this.moduleDetail.plugs);const l=n?{source:n.id,target:e.id,uniqueIndex:this.generateUniqueIndexNow()}:null;s={addOne:{nodes:[a],links:l?[l]:[]}},this.history.pushState(s)}).catch(o=>{this.onOutdate(o.res);let a=Me(be({},e),{detail:null,diy:!0,group:e.id});a=hs(a,this.moduleDetail.plugs);const l=n?{source:n.id,target:e.id,uniqueIndex:this.generateUniqueIndexNow()}:null;s={addOne:{nodes:[a],links:l?[l]:[]}},this.history.pushState(s)}).finally(o=>{setTimeout(()=>{},500)}):this.addNewNodesAndExpand(e)},addLink(e,t){if(!([e,t].filter(o=>o.type==="nodeType").length===1))return;const r={source:e.id,target:t.id,uniqueIndex:this.generateUniqueIndexNow(),diy:!0};let s=!1;if(this.history.dataNow.links.map(o=>{o.source.id===e.id&&o.target.id===t.id&&(s=!0)}),!s){const o={addOne:{links:[r]}};this.onAction(o)}},expandSelectedNodes(e){e.map(t=>{this.expandNodes(t)})},handleTableSelect(e=[]){this.$refs.render.handleTableSelect(e)},updateSelection(){this.selection=this.$refs.render.selection,this.$refs.render.selectEdgesByNode(this.selection),this.$refs.render.showKeyWay(this.selection),this.$refs.render.updateNodeStyle()},aggregationNodes(e,t){if(e.length===0)return;const n=[];for(const a in this.history.dataNow.nodes)e.findIndex((c,u,d)=>c===this.history.dataNow.nodes[a].id)>=0&&n.push(JSON.parse(JSON.stringify(this.history.dataNow.nodes[a])));const r=String(Math.floor(new Date().getTime()));let s={id:r,list:n,type:"aggregation",name:"聚合",relationId:t.id};s=hs(s,this.moduleDetail.plugs);const o={addOne:{nodes:[s],links:[{source:t.id,target:r,uniqueIndex:this.generateUniqueIndexNow()}]},deleteOne:{nodes:n,links:n.map(a=>({source:t.id,target:a.id}))},type:"aggregation"};this.history.pushState(o),this.emitDataLoaded()},releaseAggregation(e){let t;if(e.type==="aggregation"&&(t=e),this.history.dataNow.links.map(n=>{n.source.id===e.id&&n.target.type==="aggregation"&&(t=t||n.target,n.source)}),t){const n={deleteOne:{nodes:[t],links:[{source:t.relationId,target:t.id}]},addOne:{nodes:t.list,links:t.list.map(r=>({source:t.relationId,target:r.id}))},type:"aggregation"};for(const r in this.history.dataNow.nodes)t.list.findIndex((o,a,l)=>o===this.history.dataNow.nodes[r].id)>=0&&(this.history.dataNow.nodes[r].aggregation=!1);this.history.pushState(n),this.emitDataLoaded()}},saveSnapshot(){return rt(this,null,function*(){TS.prompt(null,"添加快照",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^.{1,20}$/,inputPlaceholder:"请输入20字以内快照名称",inputErrorMessage:"请输入20字以内快照名称"}).then(t=>rt(this,[t],function*({value:e}){this.bigLoading=!0,setTimeout(()=>rt(this,null,function*(){try{const n=yield this.$refs.buttonList.svgToBlob(),r=new FormData;r.append("data",this.history.toString()),r.append("name",e),r.append("thumb",n),this.graphApi.addSnapshot1(r).then(s=>{this.snapshot=s.data,this.snapshot.name=e,this.$refs.snapshot.show()}).catch(s=>{this.onOutdate(s.res)}).finally(s=>{this.bigLoading=!1})}catch(n){this.bigLoading=!1,console.log(n)}}),100)})).catch(()=>{gn({type:"info",message:"取消输入"})})})},autoDisplay(){this.$refs.render.autoDisplay()},deleteNodes(e=this.selection){const t={deleteOne:{nodes:e}};this.history.pushState(t),this.emitDataLoaded();const n=e.map(r=>r.id);this.$refs.render.selection=this.selection.filter(r=>!n.includes(r.id)),setTimeout(()=>{this.updateSelection()},300)},historyForward(){this.history.forward(),setTimeout(()=>{this.updateSelection()},100)},historyBack(){this.history.back(),setTimeout(()=>{this.updateSelection()},100)},toggleFullScreen(){Fn({cId:"toggleFullScreen",c:"切换全屏"}),document.fullscreenElement?document.exitFullscreen&&document.exitFullscreen():this.$refs["force-d3-container"].requestFullscreen()},zoomView(e="in"){e==="in"?(Fn({cId:"zoomIn",c:"zoomIn"}),this.$refs.render.zoomIn()):(Fn({cId:"zoomOut",c:"zoomOut"}),this.$refs.render.zoomOut())},fitScreen(){var e;Fn({cId:"centerAndZoom",c:"centerAndZoom"}),(e=this.$refs.render)==null||e.centerAndZoom()},changeMargin(){let e=0;const t=document.body.clientHeight;return e=Math.floor(((t-50)/20-22)/2),e>8?"8px 0":e+"px 0"},handleHighLight(e,t,n){this.$refs.render.setHighlightRule({type:e,prop:t,value:n})},handleCustomSelect(e,t,n){this.$refs.render.handleCustomSelect({type:e,prop:t,value:n})},fixAllNodes(e){this.$refs.render.fixAllNodes(e)},toggleLayout(e){this.$refs.render.toggleLayout(e)},importCsvData(e){for(const t in e.nodes)delete e.nodes[t].vx,delete e.nodes[t].vy,delete e.nodes[t].x,delete e.nodes[t].y;this.history.dataNow=Object.assign({},e)},getCanvasStage(){var e;return(e=this.$refs.render)==null?void 0:e.stage},addCanvasBg(){var e;(e=this.$refs.render)==null||e.addCanvasBg()},removeCanvasBg(){var e;(e=this.$refs.render)==null||e.removeCanvasBg()},controlOperation(e){var t;(t=this.$refs.render)==null||t.handleContextMenuClick(e)}}},Hue={key:0,ref:"force-d3-container",class:"d3-container"},Gue=["innerHTML"],Wue={class:"top-item"},Kue={class:"top-line"},Jue={key:1,class:"select-num"},Yue={class:"highlight"},Xue={class:"loading-container"},Zue={class:"corner-button-box"};function Que(e,t,n,r,s,o){const a=Ge("ButtonList"),l=Ge("RenderByCanvas"),c=Ge("Loading"),u=jt,d=Ge("Legend"),f=Ge("NodeVisibleControl"),h=Ge("force-graph-svg-icon"),g=fi,v=Ge("RightMenu"),y=Ge("SnapShotDialog"),_=xS;return n.graphApi?Dt((R(),V("div",Hue,[G("div",{class:Z(["graph-box",{"hide-right-menu":!n.isShowRightMenu}])},[n.title?(R(),V("div",{key:0,class:"safe-force-title",innerHTML:n.title},null,8,Gue)):se("",!0),t[4]||(t[4]=G("div",{class:"top-line-bg"},null,-1)),G("div",Wue,[G("div",Kue,[ne(a,{ref:"buttonList","hide-button-list":n.hideButtonList,selection:s.selection,history:s.history,"module-detail":s.moduleDetail,"request-graph-data":s.requestGraphData,"show-top-search":n.showTopSearch,onSaveSnapshot:o.saveSnapshot,onAddNodes:o.addNode,onAutoDisplay:o.autoDisplay,onDeleteNodes:o.deleteNodes,onFixNodes:o.fixAllNodes,onToggleLayout:o.toggleLayout,onImportCsvData:o.importCsvData},null,8,["hide-button-list","selection","history","module-detail","request-graph-data","show-top-search","onSaveSnapshot","onAddNodes","onAutoDisplay","onDeleteNodes","onFixNodes","onToggleLayout","onImportCsvData"])])]),ne(l,{ref:"render","enable-script":n.enableScript,"module-detail":s.moduleDetail,history:s.history,"level-list":n.levelList,selection:s.selection,data:s.history.dataNow,"request-graph-data":s.requestGraphData,"dark-mode":n.darkMode,"node-type-scale":n.nodeTypeScale,"node-type-list":s.nodeTypeList,"link-distance":n.linkDistance,strength:n.strength,"node-width":n.nodeWidth,"start-node-width":n.startNodeWidth,"start-node-animation":n.startNodeAnimation,"custom-tooltip":n.customTooltip,"edge-label-max-length":n.edgeLabelMaxLength,"custom-node-images":n.customNodeImages,"enable-popover":n.enablePopover,"canvas-bg":n.canvasBg,onUpdateSelection:o.updateSelection,onOnaction:o.onAction,onHandleSelectNode:o.handleSelectNode,onCustomContextmenuClick:o.handleCustomContextMenuClick},null,8,["enable-script","module-detail","history","level-list","selection","data","request-graph-data","dark-mode","node-type-scale","node-type-list","link-distance","strength","node-width","start-node-width","start-node-animation","custom-tooltip","edge-label-max-length","custom-node-images","enable-popover","canvas-bg","onUpdateSelection","onOnaction","onHandleSelectNode","onCustomContextmenuClick"]),s.selection.length>0?(R(),V("p",Jue,[t[2]||(t[2]=Je(" 已选择")),G("span",Yue,Ne(s.selection.length),1),t[3]||(t[3]=Je("项 "))])):se("",!0),Dt(G("div",Xue,[G("span",null,Ne(s.loadingInfo),1),ne(u,{class:"is-loading"},{default:te(()=>[ne(c)]),_:1})],512),[[wn,s.isLoading]]),n.hasLegend?(R(),_e(d,{key:2,"show-point":n.showPoint,history:s.history,"module-detail":s.moduleDetail,"has-level":n.hasLevel,"show-level-count":n.showLevelCount,margin:s.margin,onHighLight:o.handleHighLight},null,8,["show-point","history","module-detail","has-level","show-level-count","margin","onHighLight"])):se("",!0),n.hasNodeVisibleControl?(R(),_e(f,{key:3,history:s.history,"module-detail":s.moduleDetail,"start-node":n.startNode,"custom-node-images":n.customNodeImages},null,8,["history","module-detail","start-node","custom-node-images"])):se("",!0),G("div",Zue,[!s.fullScreen&&o.topFrame?(R(),_e(g,{key:0,content:"进入全屏",placement:"left","popper-class":"el-tooltip-gray"},{default:te(()=>[ne(h,{"icon-class":e.imgPath["./public/d3svg1/button18/full_button.svg"],alt:"",class:"corner-button",onClick:o.toggleFullScreen},null,8,["icon-class","onClick"])]),_:1})):se("",!0),s.fullScreen&&o.topFrame?(R(),_e(g,{key:1,content:"退出全屏",placement:"left","popper-class":"el-tooltip-gray"},{default:te(()=>[ne(h,{"icon-class":e.imgPath["./public/d3svg1/button18/un_full_button.svg"],alt:"",class:"corner-button",onClick:o.toggleFullScreen},null,8,["icon-class","onClick"])]),_:1})):se("",!0),ne(g,{content:"适应屏幕",placement:"left","popper-class":"el-tooltip-gray"},{default:te(()=>[ne(h,{"icon-class":e.imgPath["./public/d3svg1/button18/fit_button.svg"],alt:"",class:"corner-button",onClick:o.fitScreen},null,8,["icon-class","onClick"])]),_:1}),ne(g,{content:"放大",placement:"left","popper-class":"el-tooltip-gray"},{default:te(()=>[ne(h,{"icon-class":e.imgPath["./public/d3svg1/button18/zoom_in_button.svg"],alt:"",class:"corner-button",onClick:t[0]||(t[0]=w=>o.zoomView("in"))},null,8,["icon-class"])]),_:1}),ne(g,{content:"缩小",placement:"left","popper-class":"el-tooltip-gray"},{default:te(()=>[ne(h,{"icon-class":e.imgPath["./public/d3svg1/button18/zoom_out_button.svg"],alt:"",class:"corner-button",onClick:t[1]||(t[1]=w=>o.zoomView("out"))},null,8,["icon-class"])]),_:1})])],2),n.isShowRightMenu?(R(),_e(v,{key:0,"graph-data":s.history.dataNow,"selected-nodes":s.selection,"request-graph-data":s.requestGraphData,onChangeBox:o.handleTableSelect},null,8,["graph-data","selected-nodes","request-graph-data","onChangeBox"])):se("",!0),ne(y,{ref:"snapshot",snapshot:s.snapshot,"graph-api":n.graphApi,"graph-url-path":n.graphUrlPath,"custom-copy-path-fn":n.customCopyPathFn},null,8,["snapshot","graph-api","graph-url-path","custom-copy-path-fn"])])),[[_,s.bigLoading]]):se("",!0)}const $l=un(que,[["render",Que]]);$l.install=function(e){e.component($l.name,$l)};const ede=CO($l,{shadowRoot:!1});customElements.define("force-graph",ede),yt.Graph=$l,yt.default=$l,Object.defineProperties(yt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|