vue-safe-force-graph 2.0.64 → 2.0.65
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/CHANGELOG.md +1183 -0
- package/lib/style.css +1 -4297
- package/lib/vue-safe-force-graph.js +28083 -44507
- package/lib/vue-safe-force-graph.umd.cjs +122 -57716
- package/lib/web-component/style.css +1 -0
- package/lib/web-component/vue-safe-force-graph.js +46326 -0
- package/lib/web-component/vue-safe-force-graph.umd.cjs +155 -0
- package/package.json +1 -1
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
(function(Jt,Wt){typeof exports=="object"&&typeof module!="undefined"?module.exports=Wt():typeof define=="function"&&define.amd?define(Wt):(Jt=typeof globalThis!="undefined"?globalThis:Jt||self,Jt.safeGraphWebComponent=Wt())})(this,function(){"use strict";var Epe=Object.defineProperty,Ape=Object.defineProperties;var Tpe=Object.getOwnPropertyDescriptors;var zh=Object.getOwnPropertySymbols;var GA=Object.prototype.hasOwnProperty,WA=Object.prototype.propertyIsEnumerable;var Hh=Math.pow,HA=(Jt,Wt,lt)=>Wt in Jt?Epe(Jt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Jt[Wt]=lt,we=(Jt,Wt)=>{for(var lt in Wt||(Wt={}))GA.call(Wt,lt)&&HA(Jt,lt,Wt[lt]);if(zh)for(var lt of zh(Wt))WA.call(Wt,lt)&&HA(Jt,lt,Wt[lt]);return Jt},je=(Jt,Wt)=>Ape(Jt,Tpe(Wt));var Es=(Jt,Wt)=>{var lt={};for(var vn in Jt)GA.call(Jt,vn)&&Wt.indexOf(vn)<0&&(lt[vn]=Jt[vn]);if(Jt!=null&&zh)for(var vn of zh(Jt))Wt.indexOf(vn)<0&&WA.call(Jt,vn)&&(lt[vn]=Jt[vn]);return lt};var at=(Jt,Wt,lt)=>new Promise((vn,yt)=>{var Gh=It=>{try{co(lt.next(It))}catch(uo){yt(uo)}},ga=It=>{try{co(lt.throw(It))}catch(uo){yt(uo)}},co=It=>It.done?vn(It.value):Promise.resolve(It.value).then(Gh,ga);co((lt=lt.apply(Jt,Wt)).next())});const Jt="";/**
|
|
2
|
+
* @vue/shared v3.5.6
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Wt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const lt={},vn=[],yt=()=>{},Gh=()=>!1,ga=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),co=e=>e.startsWith("onUpdate:"),It=Object.assign,uo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},JA=Object.prototype.hasOwnProperty,bt=(e,t)=>JA.call(e,t),Be=Array.isArray,ma=e=>ql(e)==="[object Map]",zu=e=>ql(e)==="[object Set]",zb=e=>ql(e)==="[object Date]",Ve=e=>typeof e=="function",st=e=>typeof e=="string",pr=e=>typeof e=="symbol",ct=e=>e!==null&&typeof e=="object",Hb=e=>(ct(e)||Ve(e))&&Ve(e.then)&&Ve(e.catch),Gb=Object.prototype.toString,ql=e=>Gb.call(e),Hu=e=>ql(e).slice(8,-1),_a=e=>ql(e)==="[object Object]",Wh=e=>st(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zl=Wt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gu=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},YA=/-(\w)/g,$n=Gu(e=>e.replace(YA,(t,n)=>n?n.toUpperCase():"")),XA=/\B([A-Z])/g,Zn=Gu(e=>e.replace(XA,"-$1").toLowerCase()),Wu=Gu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hl=Gu(e=>e?`on${Wu(e)}`:""),As=(e,t)=>!Object.is(e,t),Ku=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Wb=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Kh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Jh=e=>{const t=st(e)?Number(e):NaN;return isNaN(t)?e:t};let Kb;const Jb=()=>Kb||(Kb=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Ze(e){if(Be(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=st(r)?tT(r):Ze(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(st(e)||ct(e))return e}const ZA=/;(?![^(]*\))/g,QA=/:([^]+)/,eT=/\/\*[^]*?\*\//g;function tT(e){const t={};return e.replace(eT,"").split(ZA).forEach(n=>{if(n){const r=n.split(QA);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Y(e){let t="";if(st(e))t=e;else if(Be(e))for(let n=0;n<e.length;n++){const r=Y(e[n]);r&&(t+=r+" ")}else if(ct(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function nT(e){if(!e)return null;let{class:t,style:n}=e;return t&&!st(t)&&(e.class=Y(t)),n&&(e.style=Ze(n)),e}const iT=Wt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Yb(e){return!!e||e===""}function rT(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=va(e[r],t[r]);return n}function va(e,t){if(e===t)return!0;let n=zb(e),r=zb(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=pr(e),r=pr(t),n||r)return e===t;if(n=Be(e),r=Be(t),n||r)return n&&r?rT(e,t):!1;if(n=ct(e),r=ct(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||!va(e[a],t[a]))return!1}}return String(e)===String(t)}function Xb(e,t){return e.findIndex(n=>va(n,t))}const Zb=e=>!!(e&&e.__v_isRef===!0),Ne=e=>st(e)?e:e==null?"":Be(e)||ct(e)&&(e.toString===Gb||!Ve(e.toString))?Zb(e)?Ne(e.value):JSON.stringify(e,Qb,2):String(e),Qb=(e,t)=>Zb(t)?Qb(e,t.value):ma(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Yh(r,o)+" =>"]=s,n),{})}:zu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Yh(n))}:pr(t)?Yh(t):ct(t)&&!Be(t)&&!_a(t)?String(t):t,Yh=(e,t="")=>{var n;return pr(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 Vn;class sT{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Vn,!t&&Vn&&(this.index=(Vn.scopes||(Vn.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=Vn;try{return Vn=this,t()}finally{Vn=n}}}on(){Vn=this}off(){Vn=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 ey(){return Vn}function ty(e,t=!1){Vn&&Vn.cleanups.push(e)}let Vt;const Xh=new WeakSet;class ny{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,Vn&&Vn.active&&Vn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Xh.has(this)&&(Xh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ry(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cy(this),sy(this);const t=Vt,n=Gi;Vt=this,Gi=!0;try{return this.fn()}finally{oy(this),Vt=t,Gi=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)tg(t);this.deps=this.depsTail=void 0,cy(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Xh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){eg(this)&&this.run()}get dirty(){return eg(this)}}let iy=0,Gl;function ry(e){e.flags|=8,e.next=Gl,Gl=e}function Zh(){iy++}function Qh(){if(--iy>0)return;let e;for(;Gl;){let t=Gl;for(Gl=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 sy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function oy(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),tg(r),oT(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function eg(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ay(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ay(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wl))return;e.globalVersion=Wl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!eg(e)){e.flags&=-3;return}const n=Vt,r=Gi;Vt=e,Gi=!0;try{sy(e);const s=e.fn(e._value);(t.version===0||As(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Vt=n,Gi=r,oy(e),e.flags&=-3}}function tg(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)tg(s)}}function oT(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Gi=!0;const ly=[];function Vr(){ly.push(Gi),Gi=!1}function qr(){const e=ly.pop();Gi=e===void 0?!0:e}function cy(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Vt;Vt=void 0;try{t()}finally{Vt=n}}}let Wl=0;class aT{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 ng{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!Vt||!Gi||Vt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Vt)n=this.activeLink=new aT(Vt,this),Vt.deps?(n.prevDep=Vt.depsTail,Vt.depsTail.nextDep=n,Vt.depsTail=n):Vt.deps=Vt.depsTail=n,Vt.flags&4&&uy(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=Vt.depsTail,n.nextDep=void 0,Vt.depsTail.nextDep=n,Vt.depsTail=n,Vt.deps===n&&(Vt.deps=r)}return n}trigger(t){this.version++,Wl++,this.notify(t)}notify(t){Zh();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Qh()}}}function uy(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)uy(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const Ju=new WeakMap,fo=Symbol(""),ig=Symbol(""),Kl=Symbol("");function In(e,t,n){if(Gi&&Vt){let r=Ju.get(e);r||Ju.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=new ng),s.track()}}function zr(e,t,n,r,s,o){const a=Ju.get(e);if(!a){Wl++;return}const l=c=>{c&&c.trigger()};if(Zh(),t==="clear")a.forEach(l);else{const c=Be(e),u=c&&Wh(n);if(c&&n==="length"){const d=Number(r);a.forEach((f,p)=>{(p==="length"||p===Kl||!pr(p)&&p>=d)&&l(f)})}else switch(n!==void 0&&l(a.get(n)),u&&l(a.get(Kl)),t){case"add":c?u&&l(a.get("length")):(l(a.get(fo)),ma(e)&&l(a.get(ig)));break;case"delete":c||(l(a.get(fo)),ma(e)&&l(a.get(ig)));break;case"set":ma(e)&&l(a.get(fo));break}}Qh()}function lT(e,t){var n;return(n=Ju.get(e))==null?void 0:n.get(t)}function ba(e){const t=it(e);return t===e?t:(In(t,"iterate",Kl),yi(e)?t:t.map(Rn))}function Yu(e){return In(e=it(e),"iterate",Kl),e}const cT={__proto__:null,[Symbol.iterator](){return rg(this,Symbol.iterator,Rn)},concat(...e){return ba(this).concat(...e.map(t=>Be(t)?ba(t):t))},entries(){return rg(this,"entries",e=>(e[1]=Rn(e[1]),e))},every(e,t){return Hr(this,"every",e,t,void 0,arguments)},filter(e,t){return Hr(this,"filter",e,t,n=>n.map(Rn),arguments)},find(e,t){return Hr(this,"find",e,t,Rn,arguments)},findIndex(e,t){return Hr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Hr(this,"findLast",e,t,Rn,arguments)},findLastIndex(e,t){return Hr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Hr(this,"forEach",e,t,void 0,arguments)},includes(...e){return sg(this,"includes",e)},indexOf(...e){return sg(this,"indexOf",e)},join(e){return ba(this).join(e)},lastIndexOf(...e){return sg(this,"lastIndexOf",e)},map(e,t){return Hr(this,"map",e,t,void 0,arguments)},pop(){return Jl(this,"pop")},push(...e){return Jl(this,"push",e)},reduce(e,...t){return dy(this,"reduce",e,t)},reduceRight(e,...t){return dy(this,"reduceRight",e,t)},shift(){return Jl(this,"shift")},some(e,t){return Hr(this,"some",e,t,void 0,arguments)},splice(...e){return Jl(this,"splice",e)},toReversed(){return ba(this).toReversed()},toSorted(e){return ba(this).toSorted(e)},toSpliced(...e){return ba(this).toSpliced(...e)},unshift(...e){return Jl(this,"unshift",e)},values(){return rg(this,"values",Rn)}};function rg(e,t,n){const r=Yu(e),s=r[t]();return r!==e&&!yi(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const uT=Array.prototype;function Hr(e,t,n,r,s,o){const a=Yu(e),l=a!==e&&!yi(e),c=a[t];if(c!==uT[t]){const f=c.apply(e,o);return l?Rn(f):f}let u=n;a!==e&&(l?u=function(f,p){return n.call(this,Rn(f),p,e)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,e)}));const d=c.call(a,u,r);return l&&s?s(d):d}function dy(e,t,n,r){const s=Yu(e);let o=n;return s!==e&&(yi(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,Rn(l),c,e)}),s[t](o,...r)}function sg(e,t,n){const r=it(e);In(r,"iterate",Kl);const s=r[t](...n);return(s===-1||s===!1)&&lg(n[0])?(n[0]=it(n[0]),r[t](...n)):s}function Jl(e,t,n=[]){Vr(),Zh();const r=it(e)[t].apply(e,n);return Qh(),qr(),r}const dT=Wt("__proto__,__v_isRef,__isVue"),fy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(pr));function fT(e){pr(e)||(e=String(e));const t=it(this);return In(t,"has",e),t.hasOwnProperty(e)}class py{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?Sy:Cy:o?wy:yy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Be(t);if(!s){let c;if(a&&(c=cT[n]))return c;if(n==="hasOwnProperty")return fT}const l=Reflect.get(t,n,Mt(t)?t:r);return(pr(n)?fy.has(n):dT(n))||(s||In(t,"get",n),o)?l:Mt(l)?a&&Wh(n)?l:l.value:ct(l)?s?rd(l):Dn(l):l}}class hy extends py{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const c=po(o);if(!yi(r)&&!po(r)&&(o=it(o),r=it(r)),!Be(t)&&Mt(o)&&!Mt(r))return c?!1:(o.value=r,!0)}const a=Be(t)&&Wh(n)?Number(n)<t.length:bt(t,n),l=Reflect.set(t,n,r,Mt(t)?t:s);return t===it(s)&&(a?As(r,o)&&zr(t,"set",n,r):zr(t,"add",n,r)),l}deleteProperty(t,n){const r=bt(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&zr(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!pr(n)||!fy.has(n))&&In(t,"has",n),r}ownKeys(t){return In(t,"iterate",Be(t)?"length":fo),Reflect.ownKeys(t)}}class gy extends py{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const pT=new hy,hT=new gy,gT=new hy(!0),mT=new gy(!0),og=e=>e,Xu=e=>Reflect.getPrototypeOf(e);function Zu(e,t,n=!1,r=!1){e=e.__v_raw;const s=it(e),o=it(t);n||(As(t,o)&&In(s,"get",t),In(s,"get",o));const{has:a}=Xu(s),l=r?og:n?cg:Rn;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 Qu(e,t=!1){const n=this.__v_raw,r=it(n),s=it(e);return t||(As(e,s)&&In(r,"has",e),In(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function ed(e,t=!1){return e=e.__v_raw,!t&&In(it(e),"iterate",fo),Reflect.get(e,"size",e)}function my(e,t=!1){!t&&!yi(e)&&!po(e)&&(e=it(e));const n=it(this);return Xu(n).has.call(n,e)||(n.add(e),zr(n,"add",e,e)),this}function _y(e,t,n=!1){!n&&!yi(t)&&!po(t)&&(t=it(t));const r=it(this),{has:s,get:o}=Xu(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?As(t,l)&&zr(r,"set",e,t):zr(r,"add",e,t),this}function vy(e){const t=it(this),{has:n,get:r}=Xu(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&&zr(t,"delete",e,void 0),o}function by(){const e=it(this),t=e.size!==0,n=e.clear();return t&&zr(e,"clear",void 0,void 0),n}function td(e,t){return function(r,s){const o=this,a=o.__v_raw,l=it(a),c=t?og:e?cg:Rn;return!e&&In(l,"iterate",fo),a.forEach((u,d)=>r.call(s,c(u),c(d),o))}}function nd(e,t,n){return function(...r){const s=this.__v_raw,o=it(s),a=ma(o),l=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,u=s[e](...r),d=n?og:t?cg:Rn;return!t&&In(o,"iterate",c?ig:fo),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:l?[d(f[0]),d(f[1])]:d(f),done:p}},[Symbol.iterator](){return this}}}}function Ts(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _T(){const e={get(o){return Zu(this,o)},get size(){return ed(this)},has:Qu,add:my,set:_y,delete:vy,clear:by,forEach:td(!1,!1)},t={get(o){return Zu(this,o,!1,!0)},get size(){return ed(this)},has:Qu,add(o){return my.call(this,o,!0)},set(o,a){return _y.call(this,o,a,!0)},delete:vy,clear:by,forEach:td(!1,!0)},n={get(o){return Zu(this,o,!0)},get size(){return ed(this,!0)},has(o){return Qu.call(this,o,!0)},add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear"),forEach:td(!0,!1)},r={get(o){return Zu(this,o,!0,!0)},get size(){return ed(this,!0)},has(o){return Qu.call(this,o,!0)},add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear"),forEach:td(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=nd(o,!1,!1),n[o]=nd(o,!0,!1),t[o]=nd(o,!1,!0),r[o]=nd(o,!0,!0)}),[e,n,t,r]}const[vT,bT,yT,wT]=_T();function id(e,t){const n=t?e?wT:yT:e?bT:vT;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(bt(n,s)&&s in r?n:r,s,o)}const CT={get:id(!1,!1)},ST={get:id(!1,!0)},xT={get:id(!0,!1)},ET={get:id(!0,!0)},yy=new WeakMap,wy=new WeakMap,Cy=new WeakMap,Sy=new WeakMap;function AT(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function TT(e){return e.__v_skip||!Object.isExtensible(e)?0:AT(Hu(e))}function Dn(e){return po(e)?e:sd(e,!1,pT,CT,yy)}function ag(e){return sd(e,!1,gT,ST,wy)}function rd(e){return sd(e,!0,hT,xT,Cy)}function Ppe(e){return sd(e,!0,mT,ET,Sy)}function sd(e,t,n,r,s){if(!ct(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const a=TT(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return s.set(e,l),l}function ya(e){return po(e)?ya(e.__v_raw):!!(e&&e.__v_isReactive)}function po(e){return!!(e&&e.__v_isReadonly)}function yi(e){return!!(e&&e.__v_isShallow)}function lg(e){return e?!!e.__v_raw:!1}function it(e){const t=e&&e.__v_raw;return t?it(t):e}function od(e){return!bt(e,"__v_skip")&&Object.isExtensible(e)&&Wb(e,"__v_skip",!0),e}const Rn=e=>ct(e)?Dn(e):e,cg=e=>ct(e)?rd(e):e;function Mt(e){return e?e.__v_isRef===!0:!1}function ne(e){return xy(e,!1)}function bn(e){return xy(e,!0)}function xy(e,t){return Mt(e)?e:new kT(e,t)}class kT{constructor(t,n){this.dep=new ng,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:it(t),this._value=n?t:Rn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||yi(t)||po(t);t=r?t:it(t),As(t,n)&&(this._rawValue=t,this._value=r?t:Rn(t),this.dep.trigger())}}function T(e){return Mt(e)?e.value:e}const PT={get:(e,t,n)=>t==="__v_raw"?e:T(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Mt(s)&&!Mt(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Ey(e){return ya(e)?e:new Proxy(e,PT)}function hr(e){const t=Be(e)?new Array(e.length):{};for(const n in e)t[n]=Ay(e,n);return t}class OT{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 lT(it(this._object),this._key)}}class NT{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 wi(e,t,n){return Mt(e)?e:Ve(e)?new NT(e):ct(e)&&arguments.length>1?Ay(e,t,n):ne(e)}function Ay(e,t,n){const r=e[t];return Mt(r)?r:new OT(e,t,n)}class IT{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ng(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wl-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Vt!==this)return ry(this),!0}get value(){const t=this.dep.track();return ay(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function DT(e,t,n=!1){let r,s;return Ve(e)?r=e:(r=e.get,s=e.set),new IT(r,s,n)}const ad={},ld=new WeakMap;let ho;function RT(e,t=!1,n=ho){if(n){let r=ld.get(n);r||ld.set(n,r=[]),r.push(e)}}function LT(e,t,n=lt){const{immediate:r,deep:s,once:o,scheduler:a,augmentJob:l,call:c}=n,u=S=>s?S:yi(S)||s===!1||s===0?Gr(S,1):Gr(S);let d,f,p,g,_=!1,b=!1;if(Mt(e)?(f=()=>e.value,_=yi(e)):ya(e)?(f=()=>u(e),_=!0):Be(e)?(b=!0,_=e.some(S=>ya(S)||yi(S)),f=()=>e.map(S=>{if(Mt(S))return S.value;if(ya(S))return u(S);if(Ve(S))return c?c(S,2):S()})):Ve(e)?t?f=c?()=>c(e,2):e:f=()=>{if(p){Vr();try{p()}finally{qr()}}const S=ho;ho=d;try{return c?c(e,3,[g]):e(g)}finally{ho=S}}:f=yt,t&&s){const S=f,A=s===!0?1/0:s;f=()=>Gr(S(),A)}const y=ey(),w=()=>{d.stop(),y&&uo(y.effects,d)};if(o&&t){const S=t;t=(...A)=>{S(...A),w()}}let E=b?new Array(e.length).fill(ad):ad;const C=S=>{if(!(!(d.flags&1)||!d.dirty&&!S))if(t){const A=d.run();if(s||_||(b?A.some((P,I)=>As(P,E[I])):As(A,E))){p&&p();const P=ho;ho=d;try{const I=[A,E===ad?void 0:b&&E[0]===ad?[]:E,g];c?c(t,3,I):t(...I),E=A}finally{ho=P}}}else d.run()};return l&&l(C),d=new ny(f),d.scheduler=a?()=>a(C,!1):C,g=S=>RT(S,!1,d),p=d.onStop=()=>{const S=ld.get(d);if(S){if(c)c(S,4);else for(const A of S)A();ld.delete(d)}},t?r?C(!0):E=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 Gr(e,t=1/0,n){if(t<=0||!ct(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Mt(e))Gr(e.value,t,n);else if(Be(e))for(let r=0;r<e.length;r++)Gr(e[r],t,n);else if(zu(e)||ma(e))e.forEach(r=>{Gr(r,t,n)});else if(_a(e)){for(const r in e)Gr(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Gr(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 Yl=[];let ug=!1;function Ope(e,...t){if(ug)return;ug=!0,Vr();const n=Yl.length?Yl[Yl.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=MT();if(r)wa(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 <${I2(n,o.type)}>`).join(`
|
|
14
|
+
`),s]);else{const o=[`[Vue warn]: ${e}`,...t];s.length&&o.push(`
|
|
15
|
+
`,...FT(s)),console.warn(...o)}qr(),ug=!1}function MT(){let e=Yl[Yl.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 FT(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
16
|
+
`],...jT(n))}),t}function jT({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${I2(e.component,e.type,r)}`,o=">"+n;return e.props?[s,...BT(e.props),o]:[s+o]}function BT(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Ty(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Ty(e,t,n){return st(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Mt(t)?(t=Ty(e,it(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ve(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=it(t),n?t:[`${e}=`,t])}function wa(e,t,n,r){try{return r?e(...r):e()}catch(s){cd(s,t,n)}}function Wi(e,t,n,r){if(Ve(e)){const s=wa(e,t,n,r);return s&&Hb(s)&&s.catch(o=>{cd(o,t,n)}),s}if(Be(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Wi(e[o],t,n,r));return s}}function cd(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||lt;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){Vr(),wa(o,null,10,[e,c,u]),qr();return}}UT(e,n,s,r,a)}function UT(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}let Xl=!1,dg=!1;const qn=[];let gr=0;const Ca=[];let ks=null,Sa=0;const ky=Promise.resolve();let fg=null;function ht(e){const t=fg||ky;return e?t.then(this?e.bind(this):e):t}function $T(e){let t=Xl?gr+1:0,n=qn.length;for(;t<n;){const r=t+n>>>1,s=qn[r],o=Zl(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function pg(e){if(!(e.flags&1)){const t=Zl(e),n=qn[qn.length-1];!n||!(e.flags&2)&&t>=Zl(n)?qn.push(e):qn.splice($T(t),0,e),e.flags|=1,Py()}}function Py(){!Xl&&!dg&&(dg=!0,fg=ky.then(Iy))}function VT(e){Be(e)?Ca.push(...e):ks&&e.id===-1?ks.splice(Sa+1,0,e):e.flags&1||(Ca.push(e),e.flags|=1),Py()}function Oy(e,t,n=Xl?gr+1:0){for(;n<qn.length;n++){const r=qn[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;qn.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&=-2}}}function Ny(e){if(Ca.length){const t=[...new Set(Ca)].sort((n,r)=>Zl(n)-Zl(r));if(Ca.length=0,ks){ks.push(...t);return}for(ks=t,Sa=0;Sa<ks.length;Sa++){const n=ks[Sa];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ks=null,Sa=0}}const Zl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Iy(e){dg=!1,Xl=!0;const t=yt;try{for(gr=0;gr<qn.length;gr++){const n=qn[gr];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),wa(n,n.i,n.i?15:14),n.flags&=-2)}}finally{for(;gr<qn.length;gr++){const n=qn[gr];n&&(n.flags&=-2)}gr=0,qn.length=0,Ny(),Xl=!1,fg=null,(qn.length||Ca.length)&&Iy()}}let yn=null,ud=null;function dd(e){const t=yn;return yn=e,ud=e&&e.type.__scopeId||null,t}function qT(e){ud=e}function zT(){ud=null}const HT=e=>ee;function ee(e,t=yn,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&y2(-1);const o=dd(t);let a;try{a=e(...s)}finally{dd(o),r._d&&y2(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Nt(e,t){if(yn===null)return e;const n=xd(yn),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,a,l,c=lt]=t[s];o&&(Ve(o)&&(o={mounted:o,updated:o}),o.deep&&Gr(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function go(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&&(Vr(),Wi(c,n,8,[e.el,l,e,t]),qr())}}const Dy=Symbol("_vte"),Ry=e=>e.__isTeleport,Ql=e=>e&&(e.disabled||e.disabled===""),GT=e=>e&&(e.defer||e.defer===""),Ly=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,My=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,hg=(e,t)=>{const n=e&&e.to;return st(n)?t?t(n):null:n},WT={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,a,l,c,u){const{mc:d,pc:f,pbc:p,o:{insert:g,querySelector:_,createText:b,createComment:y}}=u,w=Ql(t.props);let{shapeFlag:E,children:C,dynamicChildren:S}=t;if(e==null){const A=t.el=b(""),P=t.anchor=b("");g(A,n,r),g(P,n,r);const I=(L,R)=>{E&16&&(s&&s.isCE&&(s.ce._teleportTarget=L),d(C,L,R,s,o,a,l,c))},O=()=>{const L=t.target=hg(t.props,_),R=Fy(L,t,b,g);L&&(a!=="svg"&&Ly(L)?a="svg":a!=="mathml"&&My(L)&&(a="mathml"),w||(I(L,R),pd(t)))};w&&(I(n,P),pd(t)),GT(t.props)?Qn(O,o):O()}else{t.el=e.el,t.targetStart=e.targetStart;const A=t.anchor=e.anchor,P=t.target=e.target,I=t.targetAnchor=e.targetAnchor,O=Ql(e.props),L=O?n:P,R=O?A:I;if(a==="svg"||Ly(P)?a="svg":(a==="mathml"||My(P))&&(a="mathml"),S?(p(e.dynamicChildren,S,L,s,o,a,l),Pg(e,t,!0)):c||f(e,t,L,R,s,o,a,l,!1),w)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):fd(t,n,A,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=hg(t.props,_);F&&fd(t,F,null,u,0)}else O&&fd(t,P,I,u,1);pd(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:p}=e;if(f&&(s(u),s(d)),o&&s(c),a&16){const g=o||!Ql(p);for(let _=0;_<l.length;_++){const b=l[_];r(b,t,n,g,!!b.dynamicChildren)}}},move:fd,hydrate:KT};function fd(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||Ql(d))&&c&16)for(let p=0;p<u.length;p++)s(u[p],t,n,2);f&&r(l,t,n)}function KT(e,t,n,r,s,o,{o:{nextSibling:a,parentNode:l,querySelector:c,insert:u,createText:d}},f){const p=t.target=hg(t.props,c);if(p){const g=p._lpa||p.firstChild;if(t.shapeFlag&16)if(Ql(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 _=g;for(;_;){if(_&&_.nodeType===8){if(_.data==="teleport start anchor")t.targetStart=_;else if(_.data==="teleport anchor"){t.targetAnchor=_,p._lpa=t.targetAnchor&&a(t.targetAnchor);break}}_=a(_)}t.targetAnchor||Fy(p,t,d,u),f(g&&a(g),t,p,n,r,s,o)}pd(t)}return t.anchor&&a(t.anchor)}const JT=WT;function pd(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 Fy(e,t,n,r){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[Dy]=o,e&&(r(s,e),r(o,e)),o}const Ps=Symbol("_leaveCb"),hd=Symbol("_enterCb");function jy(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Rt(()=>{e.isMounted=!0}),fn(()=>{e.isUnmounting=!0}),e}const Ci=[Function,Array],By={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ci,onEnter:Ci,onAfterEnter:Ci,onEnterCancelled:Ci,onBeforeLeave:Ci,onLeave:Ci,onAfterLeave:Ci,onLeaveCancelled:Ci,onBeforeAppear:Ci,onAppear:Ci,onAfterAppear:Ci,onAppearCancelled:Ci},Uy=e=>{const t=e.subTree;return t.component?Uy(t.component):t},YT={name:"BaseTransition",props:By,setup(e,{slots:t}){const n=Et(),r=jy();return()=>{const s=t.default&&mg(t.default(),!0);if(!s||!s.length)return;const o=$y(s),a=it(e),{mode:l}=a;if(r.isLeaving)return gg(o);const c=qy(o);if(!c)return gg(o);let u=ec(c,a,r,n,p=>u=p);c.type!==En&&mo(c,u);const d=n.subTree,f=d&&qy(d);if(f&&f.type!==En&&!yo(c,f)&&Uy(n).type!==En){const p=ec(f,a,r,n);if(mo(f,p),l==="out-in"&&c.type!==En)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave},gg(o);l==="in-out"&&c.type!==En&&(p.delayLeave=(g,_,b)=>{const y=Vy(r,f);y[String(f.key)]=f,g[Ps]=()=>{_(),g[Ps]=void 0,delete u.delayedLeave},u.delayedLeave=b})}return o}}};function $y(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==En){t=n;break}}return t}const XT=YT;function Vy(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 ec(e,t,n,r,s){const{appear:o,mode:a,persisted:l=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:g,onAfterLeave:_,onLeaveCancelled:b,onBeforeAppear:y,onAppear:w,onAfterAppear:E,onAppearCancelled:C}=t,S=String(e.key),A=Vy(n,e),P=(L,R)=>{L&&Wi(L,r,9,R)},I=(L,R)=>{const F=R[1];P(L,R),Be(L)?L.every(H=>H.length<=1)&&F():L.length<=1&&F()},O={mode:a,persisted:l,beforeEnter(L){let R=c;if(!n.isMounted)if(o)R=y||c;else return;L[Ps]&&L[Ps](!0);const F=A[S];F&&yo(e,F)&&F.el[Ps]&&F.el[Ps](),P(R,[L])},enter(L){let R=u,F=d,H=f;if(!n.isMounted)if(o)R=w||u,F=E||d,H=C||f;else return;let V=!1;const ae=L[hd]=ce=>{V||(V=!0,ce?P(H,[L]):P(F,[L]),O.delayedLeave&&O.delayedLeave(),L[hd]=void 0)};R?I(R,[L,ae]):ae()},leave(L,R){const F=String(e.key);if(L[hd]&&L[hd](!0),n.isUnmounting)return R();P(p,[L]);let H=!1;const V=L[Ps]=ae=>{H||(H=!0,R(),ae?P(b,[L]):P(_,[L]),L[Ps]=void 0,A[F]===e&&delete A[F])};A[F]=e,g?I(g,[L,V]):V()},clone(L){const R=ec(L,t,n,r,s);return s&&s(R),R}};return O}function gg(e){if(gd(e))return e=Kr(e),e.children=null,e}function qy(e){if(!gd(e))return Ry(e.type)&&e.children?$y(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ve(n.default))return n.default()}}function mo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,mo(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 mg(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===ze?(a.patchFlag&128&&s++,r=r.concat(mg(a.children,t,l))):(t||a.type!==En)&&r.push(l!=null?Kr(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 ke(e,t){return Ve(e)?(()=>It({name:e.name},t,{setup:e}))():e}function zy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function _g(e,t,n,r,s=!1){if(Be(e)){e.forEach((_,b)=>_g(_,t&&(Be(t)?t[b]:t),n,r,s));return}if(xa(r)&&!s)return;const o=r.shapeFlag&4?xd(r.component):r.el,a=s?null:o,{i:l,r:c}=e,u=t&&t.r,d=l.refs===lt?l.refs={}:l.refs,f=l.setupState,p=it(f),g=f===lt?()=>!1:_=>bt(p,_);if(u!=null&&u!==c&&(st(u)?(d[u]=null,g(u)&&(f[u]=null)):Mt(u)&&(u.value=null)),Ve(c))wa(c,l,12,[a,d]);else{const _=st(c),b=Mt(c);if(_||b){const y=()=>{if(e.f){const w=_?g(c)?f[c]:d[c]:c.value;s?Be(w)&&uo(w,o):Be(w)?w.includes(o)||w.push(o):_?(d[c]=[o],g(c)&&(f[c]=d[c])):(c.value=[o],e.k&&(d[e.k]=c.value))}else _?(d[c]=a,g(c)&&(f[c]=a)):b&&(c.value=a,e.k&&(d[e.k]=a))};a?(y.id=-1,Qn(y,n)):y()}}}const xa=e=>!!e.type.__asyncLoader,gd=e=>e.type.__isKeepAlive;function Hy(e,t){Wy(e,"a",t)}function Gy(e,t){Wy(e,"da",t)}function Wy(e,t,n=Tn){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(md(t,r,n),n){let s=n.parent;for(;s&&s.parent;)gd(s.parent.vnode)&&ZT(r,t,n,s),s=s.parent}}function ZT(e,t,n,r){const s=md(t,e,r,!0);_o(()=>{uo(r[t],s)},n)}function md(e,t,n=Tn,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Vr();const l=lc(n),c=Wi(t,n,e,a);return l(),qr(),c});return r?s.unshift(o):s.push(o),o}}const Wr=e=>(t,n=Tn)=>{(!Sd||e==="sp")&&md(e,(...r)=>t(...r),n)},tc=Wr("bm"),Rt=Wr("m"),QT=Wr("bu"),nc=Wr("u"),fn=Wr("bum"),_o=Wr("um"),ek=Wr("sp"),tk=Wr("rtg"),nk=Wr("rtc");function ik(e,t=Tn){md("ec",e,t)}const vg="components",rk="directives";function He(e,t){return bg(vg,e,!0,t)||e}const Ky=Symbol.for("v-ndc");function Zt(e){return st(e)?bg(vg,e,!1)||e:e||Ky}function _d(e){return bg(rk,e)}function bg(e,t,n=!0,r=!1){const s=yn||Tn;if(s){const o=s.type;if(e===vg){const l=N2(o,!1);if(l&&(l===t||l===$n(t)||l===Wu($n(t))))return o}const a=Jy(s[e]||o[e],t)||Jy(s.appContext[e],t);return!a&&r?o:a}}function Jy(e,t){return e&&(e[t]||e[$n(t)]||e[Wu($n(t))])}function kt(e,t,n,r){let s;const o=n&&n[r],a=Be(e);if(a||st(e)){const l=a&&ya(e);let c=!1;l&&(c=!yi(e),e=Yu(e)),s=new Array(e.length);for(let u=0,d=e.length;u<d;u++)s[u]=t(c?Rn(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(ct(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 yg(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Be(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(yn.ce||yn.parent&&xa(yn.parent)&&yn.parent.ce)return t!=="default"&&(n.name=t),N(),xe(ze,null,[te("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),N();const a=o&&Yy(o(n)),l=xe(ze,{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 Yy(e){return e.some(t=>Os(t)?!(t.type===En||t.type===ze&&!Yy(t.children)):!0)?e:null}function sk(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Hl(r)]=e[r];return n}const wg=e=>e?A2(e)?xd(e):wg(e.parent):null,ic=It(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=>wg(e.parent),$root:e=>wg(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xg(e),$forceUpdate:e=>e.f||(e.f=()=>{pg(e.update)}),$nextTick:e=>e.n||(e.n=ht.bind(e.proxy)),$watch:e=>kk.bind(e)}),Cg=(e,t)=>e!==lt&&!e.__isScriptSetup&&bt(e,t),ok={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(Cg(r,t))return a[t]=1,r[t];if(s!==lt&&bt(s,t))return a[t]=2,s[t];if((u=e.propsOptions[0])&&bt(u,t))return a[t]=3,o[t];if(n!==lt&&bt(n,t))return a[t]=4,n[t];Sg&&(a[t]=0)}}const d=ic[t];let f,p;if(d)return t==="$attrs"&&In(e.attrs,"get",""),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==lt&&bt(n,t))return a[t]=4,n[t];if(p=c.config.globalProperties,bt(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Cg(s,t)?(s[t]=n,!0):r!==lt&&bt(r,t)?(r[t]=n,!0):bt(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!==lt&&bt(e,a)||Cg(t,a)||(l=o[0])&&bt(l,a)||bt(r,a)||bt(ic,a)||bt(s.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:bt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ea(){return Xy().slots}function ak(){return Xy().attrs}function Xy(){const e=Et();return e.setupContext||(e.setupContext=O2(e))}function Zy(e){return Be(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Sg=!0;function lk(e){const t=xg(e),n=e.proxy,r=e.ctx;Sg=!1,t.beforeCreate&&Qy(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:a,watch:l,provide:c,inject:u,created:d,beforeMount:f,mounted:p,beforeUpdate:g,updated:_,activated:b,deactivated:y,beforeDestroy:w,beforeUnmount:E,destroyed:C,unmounted:S,render:A,renderTracked:P,renderTriggered:I,errorCaptured:O,serverPrefetch:L,expose:R,inheritAttrs:F,components:H,directives:V,filters:ae}=t;if(u&&ck(u,r,null),a)for(const J in a){const Q=a[J];Ve(Q)&&(r[J]=Q.bind(n))}if(s){const J=s.call(n,n);ct(J)&&(e.data=Dn(J))}if(Sg=!0,o)for(const J in o){const Q=o[J],X=Ve(Q)?Q.bind(n,n):Ve(Q.get)?Q.get.bind(n,n):yt,j=!Ve(Q)&&Ve(Q.set)?Q.set.bind(n):yt,ye=W({get:X,set:j});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>ye.value,set:pe=>ye.value=pe})}if(l)for(const J in l)e2(l[J],r,n,J);if(c){const J=Ve(c)?c.call(n):c;Reflect.ownKeys(J).forEach(Q=>{ln(Q,J[Q])})}d&&Qy(d,e,"c");function U(J,Q){Be(Q)?Q.forEach(X=>J(X.bind(n))):Q&&J(Q.bind(n))}if(U(tc,f),U(Rt,p),U(QT,g),U(nc,_),U(Hy,b),U(Gy,y),U(ik,O),U(nk,P),U(tk,I),U(fn,E),U(_o,S),U(ek,L),Be(R))if(R.length){const J=e.exposed||(e.exposed={});R.forEach(Q=>{Object.defineProperty(J,Q,{get:()=>n[Q],set:X=>n[Q]=X})})}else e.exposed||(e.exposed={});A&&e.render===yt&&(e.render=A),F!=null&&(e.inheritAttrs=F),H&&(e.components=H),V&&(e.directives=V),L&&zy(e)}function ck(e,t,n=yt){Be(e)&&(e=Eg(e));for(const r in e){const s=e[r];let o;ct(s)?"default"in s?o=Qe(s.from||r,s.default,!0):o=Qe(s.from||r):o=Qe(s),Mt(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function Qy(e,t,n){Wi(Be(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function e2(e,t,n,r){let s=r.includes(".")?m2(n,r):()=>n[r];if(st(e)){const o=t[e];Ve(o)&&qe(s,o)}else if(Ve(e))qe(s,e.bind(n));else if(ct(e))if(Be(e))e.forEach(o=>e2(o,t,n,r));else{const o=Ve(e.handler)?e.handler.bind(n):t[e.handler];Ve(o)&&qe(s,o,e)}}function xg(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=>vd(c,u,a,!0)),vd(c,t,a)),ct(t)&&o.set(t,c),c}function vd(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&vd(e,o,n,!0),s&&s.forEach(a=>vd(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=uk[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const uk={data:t2,props:n2,emits:n2,methods:rc,computed:rc,beforeCreate:zn,created:zn,beforeMount:zn,mounted:zn,beforeUpdate:zn,updated:zn,beforeDestroy:zn,beforeUnmount:zn,destroyed:zn,unmounted:zn,activated:zn,deactivated:zn,errorCaptured:zn,serverPrefetch:zn,components:rc,directives:rc,watch:fk,provide:t2,inject:dk};function t2(e,t){return t?e?function(){return It(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function dk(e,t){return rc(Eg(e),Eg(t))}function Eg(e){if(Be(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function zn(e,t){return e?[...new Set([].concat(e,t))]:t}function rc(e,t){return e?It(Object.create(null),e,t):t}function n2(e,t){return e?Be(e)&&Be(t)?[...new Set([...e,...t])]:It(Object.create(null),Zy(e),Zy(t!=null?t:{})):t}function fk(e,t){if(!e)return t;if(!t)return e;const n=It(Object.create(null),e);for(const r in t)n[r]=zn(e[r],t[r]);return n}function i2(){return{app:null,config:{isNativeTag:Gh,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 pk=0;function hk(e,t){return function(r,s=null){Ve(r)||(r=It({},r)),s!=null&&!ct(s)&&(s=null);const o=i2(),a=new WeakSet,l=[];let c=!1;const u=o.app={_uid:pk++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Wk,get config(){return o.config},set config(d){},use(d,...f){return a.has(d)||(d&&Ve(d.install)?(a.add(d),d.install(u,...f)):Ve(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,p){if(!c){const g=u._ceVNode||te(r,s);return g.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),f&&t?t(g,d):e(g,d,p),c=!0,u._container=d,d.__vue_app__=u,xd(g.component)}},onUnmount(d){l.push(d)},unmount(){c&&(Wi(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=Aa;Aa=u;try{return d()}finally{Aa=f}}};return u}}let Aa=null;function ln(e,t){if(Tn){let n=Tn.provides;const r=Tn.parent&&Tn.parent.provides;r===n&&(n=Tn.provides=Object.create(r)),n[e]=t}}function Qe(e,t,n=!1){const r=Tn||yn;if(r||Aa){const s=Aa?Aa._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&&Ve(t)?t.call(r&&r.proxy):t}}const r2={},s2=()=>Object.create(r2),o2=e=>Object.getPrototypeOf(e)===r2;function gk(e,t,n,r=!1){const s={},o=s2();e.propsDefaults=Object.create(null),a2(e,t,s,o);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:ag(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function mk(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 p=d[f];if(yd(e.emitsOptions,p))continue;const g=t[p];if(c)if(bt(o,p))g!==o[p]&&(o[p]=g,u=!0);else{const _=$n(p);s[_]=Ag(c,l,_,g,e,!1)}else g!==o[p]&&(o[p]=g,u=!0)}}}else{a2(e,t,s,o)&&(u=!0);let d;for(const f in l)(!t||!bt(t,f)&&((d=Zn(f))===f||!bt(t,d)))&&(c?n&&(n[f]!==void 0||n[d]!==void 0)&&(s[f]=Ag(c,l,f,void 0,e,!0)):delete s[f]);if(o!==l)for(const f in o)(!t||!bt(t,f))&&(delete o[f],u=!0)}u&&zr(e.attrs,"set","")}function a2(e,t,n,r){const[s,o]=e.propsOptions;let a=!1,l;if(t)for(let c in t){if(zl(c))continue;const u=t[c];let d;s&&bt(s,d=$n(c))?!o||!o.includes(d)?n[d]=u:(l||(l={}))[d]=u:yd(e.emitsOptions,c)||(!(c in r)||u!==r[c])&&(r[c]=u,a=!0)}if(o){const c=it(n),u=l||lt;for(let d=0;d<o.length;d++){const f=o[d];n[f]=Ag(s,c,f,u[f],e,!bt(u,f))}}return a}function Ag(e,t,n,r,s,o){const a=e[n];if(a!=null){const l=bt(a,"default");if(l&&r===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&Ve(c)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const d=lc(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===Zn(n))&&(r=!0))}return r}const _k=new WeakMap;function l2(e,t,n=!1){const r=n?_k:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,a={},l=[];let c=!1;if(!Ve(e)){const d=f=>{c=!0;const[p,g]=l2(f,t,!0);It(a,p),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 ct(e)&&r.set(e,vn),vn;if(Be(o))for(let d=0;d<o.length;d++){const f=$n(o[d]);c2(f)&&(a[f]=lt)}else if(o)for(const d in o){const f=$n(d);if(c2(f)){const p=o[d],g=a[f]=Be(p)||Ve(p)?{type:p}:It({},p),_=g.type;let b=!1,y=!0;if(Be(_))for(let w=0;w<_.length;++w){const E=_[w],C=Ve(E)&&E.name;if(C==="Boolean"){b=!0;break}else C==="String"&&(y=!1)}else b=Ve(_)&&_.name==="Boolean";g[0]=b,g[1]=y,(b||bt(g,"default"))&&l.push(f)}}const u=[a,l];return ct(e)&&r.set(e,u),u}function c2(e){return e[0]!=="$"&&!zl(e)}const u2=e=>e[0]==="_"||e==="$stable",Tg=e=>Be(e)?e.map(mr):[mr(e)],vk=(e,t,n)=>{if(t._n)return t;const r=ee((...s)=>Tg(t(...s)),n);return r._c=!1,r},d2=(e,t,n)=>{const r=e._ctx;for(const s in e){if(u2(s))continue;const o=e[s];if(Ve(o))t[s]=vk(s,o,r);else if(o!=null){const a=Tg(o);t[s]=()=>a}}},f2=(e,t)=>{const n=Tg(t);e.slots.default=()=>n},p2=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},bk=(e,t,n)=>{const r=e.slots=s2();if(e.vnode.shapeFlag&32){const s=t._;s?(p2(r,t,n),n&&Wb(r,"_",s,!0)):d2(t,r)}else t&&f2(e,t)},yk=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,a=lt;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:p2(s,t,n):(o=!t.$stable,d2(t,s)),a=t}else t&&(f2(e,t),a={default:1});if(o)for(const l in s)!u2(l)&&a[l]==null&&delete s[l]},Qn=Lk;function wk(e){return Ck(e)}function Ck(e,t){const n=Jb();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:a,createText:l,createComment:c,setText:u,setElementText:d,parentNode:f,nextSibling:p,setScopeId:g=yt,insertStaticContent:_}=e,b=(B,K,se,Ae=null,de=null,fe=null,Se=void 0,Te=null,Oe=!!K.dynamicChildren)=>{if(B===K)return;B&&!yo(B,K)&&(Ae=z(B),pe(B,de,fe,!0),B=null),K.patchFlag===-2&&(Oe=!1,K.dynamicChildren=null);const{type:ve,ref:$e,shapeFlag:he}=K;switch(ve){case Ta:y(B,K,se,Ae);break;case En:w(B,K,se,Ae);break;case sc:B==null&&E(K,se,Ae,Se);break;case ze:H(B,K,se,Ae,de,fe,Se,Te,Oe);break;default:he&1?A(B,K,se,Ae,de,fe,Se,Te,Oe):he&6?V(B,K,se,Ae,de,fe,Se,Te,Oe):(he&64||he&128)&&ve.process(B,K,se,Ae,de,fe,Se,Te,Oe,Pe)}$e!=null&&de&&_g($e,B&&B.ref,fe,K||B,!K)},y=(B,K,se,Ae)=>{if(B==null)r(K.el=l(K.children),se,Ae);else{const de=K.el=B.el;K.children!==B.children&&u(de,K.children)}},w=(B,K,se,Ae)=>{B==null?r(K.el=c(K.children||""),se,Ae):K.el=B.el},E=(B,K,se,Ae)=>{[B.el,B.anchor]=_(B.children,K,se,Ae,B.el,B.anchor)},C=({el:B,anchor:K},se,Ae)=>{let de;for(;B&&B!==K;)de=p(B),r(B,se,Ae),B=de;r(K,se,Ae)},S=({el:B,anchor:K})=>{let se;for(;B&&B!==K;)se=p(B),s(B),B=se;s(K)},A=(B,K,se,Ae,de,fe,Se,Te,Oe)=>{K.type==="svg"?Se="svg":K.type==="math"&&(Se="mathml"),B==null?P(K,se,Ae,de,fe,Se,Te,Oe):L(B,K,de,fe,Se,Te,Oe)},P=(B,K,se,Ae,de,fe,Se,Te)=>{let Oe,ve;const{props:$e,shapeFlag:he,transition:le,dirs:Le}=B;if(Oe=B.el=a(B.type,fe,$e&&$e.is,$e),he&8?d(Oe,B.children):he&16&&O(B.children,Oe,null,Ae,de,kg(B,fe),Se,Te),Le&&go(B,null,Ae,"created"),I(Oe,B,B.scopeId,Se,Ae),$e){for(const Ct in $e)Ct!=="value"&&!zl(Ct)&&o(Oe,Ct,null,$e[Ct],fe,Ae);"value"in $e&&o(Oe,"value",null,$e.value,fe),(ve=$e.onVnodeBeforeMount)&&_r(ve,Ae,B)}Le&&go(B,null,Ae,"beforeMount");const Ye=Sk(de,le);Ye&&le.beforeEnter(Oe),r(Oe,K,se),((ve=$e&&$e.onVnodeMounted)||Ye||Le)&&Qn(()=>{ve&&_r(ve,Ae,B),Ye&&le.enter(Oe),Le&&go(B,null,Ae,"mounted")},de)},I=(B,K,se,Ae,de)=>{if(se&&g(B,se),Ae)for(let fe=0;fe<Ae.length;fe++)g(B,Ae[fe]);if(de){let fe=de.subTree;if(K===fe||b2(fe.type)&&(fe.ssContent===K||fe.ssFallback===K)){const Se=de.vnode;I(B,Se,Se.scopeId,Se.slotScopeIds,de.parent)}}},O=(B,K,se,Ae,de,fe,Se,Te,Oe=0)=>{for(let ve=Oe;ve<B.length;ve++){const $e=B[ve]=Te?Ns(B[ve]):mr(B[ve]);b(null,$e,K,se,Ae,de,fe,Se,Te)}},L=(B,K,se,Ae,de,fe,Se)=>{const Te=K.el=B.el;let{patchFlag:Oe,dynamicChildren:ve,dirs:$e}=K;Oe|=B.patchFlag&16;const he=B.props||lt,le=K.props||lt;let Le;if(se&&vo(se,!1),(Le=le.onVnodeBeforeUpdate)&&_r(Le,se,K,B),$e&&go(K,B,se,"beforeUpdate"),se&&vo(se,!0),(he.innerHTML&&le.innerHTML==null||he.textContent&&le.textContent==null)&&d(Te,""),ve?R(B.dynamicChildren,ve,Te,se,Ae,kg(K,de),fe):Se||Q(B,K,Te,null,se,Ae,kg(K,de),fe,!1),Oe>0){if(Oe&16)F(Te,he,le,se,de);else if(Oe&2&&he.class!==le.class&&o(Te,"class",null,le.class,de),Oe&4&&o(Te,"style",he.style,le.style,de),Oe&8){const Ye=K.dynamicProps;for(let Ct=0;Ct<Ye.length;Ct++){const mt=Ye[Ct],Ot=he[mt],De=le[mt];(De!==Ot||mt==="value")&&o(Te,mt,Ot,De,de,se)}}Oe&1&&B.children!==K.children&&d(Te,K.children)}else!Se&&ve==null&&F(Te,he,le,se,de);((Le=le.onVnodeUpdated)||$e)&&Qn(()=>{Le&&_r(Le,se,K,B),$e&&go(K,B,se,"updated")},Ae)},R=(B,K,se,Ae,de,fe,Se)=>{for(let Te=0;Te<K.length;Te++){const Oe=B[Te],ve=K[Te],$e=Oe.el&&(Oe.type===ze||!yo(Oe,ve)||Oe.shapeFlag&70)?f(Oe.el):se;b(Oe,ve,$e,null,Ae,de,fe,Se,!0)}},F=(B,K,se,Ae,de)=>{if(K!==se){if(K!==lt)for(const fe in K)!zl(fe)&&!(fe in se)&&o(B,fe,K[fe],null,de,Ae);for(const fe in se){if(zl(fe))continue;const Se=se[fe],Te=K[fe];Se!==Te&&fe!=="value"&&o(B,fe,Te,Se,de,Ae)}"value"in se&&o(B,"value",K.value,se.value,de)}},H=(B,K,se,Ae,de,fe,Se,Te,Oe)=>{const ve=K.el=B?B.el:l(""),$e=K.anchor=B?B.anchor:l("");let{patchFlag:he,dynamicChildren:le,slotScopeIds:Le}=K;Le&&(Te=Te?Te.concat(Le):Le),B==null?(r(ve,se,Ae),r($e,se,Ae),O(K.children||[],se,$e,de,fe,Se,Te,Oe)):he>0&&he&64&&le&&B.dynamicChildren?(R(B.dynamicChildren,le,se,de,fe,Se,Te),(K.key!=null||de&&K===de.subTree)&&Pg(B,K,!0)):Q(B,K,se,$e,de,fe,Se,Te,Oe)},V=(B,K,se,Ae,de,fe,Se,Te,Oe)=>{K.slotScopeIds=Te,B==null?K.shapeFlag&512?de.ctx.activate(K,se,Ae,Se,Oe):ae(K,se,Ae,de,fe,Se,Oe):ce(B,K,Oe)},ae=(B,K,se,Ae,de,fe,Se)=>{const Te=B.component=Uk(B,Ae,de);if(gd(B)&&(Te.ctx.renderer=Pe),$k(Te,!1,Se),Te.asyncDep){if(de&&de.registerDep(Te,U,Se),!B.el){const Oe=Te.subTree=te(En);w(null,Oe,K,se)}}else U(Te,B,K,se,de,fe,Se)},ce=(B,K,se)=>{const Ae=K.component=B.component;if(Dk(B,K,se))if(Ae.asyncDep&&!Ae.asyncResolved){J(Ae,K,se);return}else Ae.next=K,Ae.update();else K.el=B.el,Ae.vnode=K},U=(B,K,se,Ae,de,fe,Se)=>{const Te=()=>{if(B.isMounted){let{next:he,bu:le,u:Le,parent:Ye,vnode:Ct}=B;{const et=h2(B);if(et){he&&(he.el=Ct.el,J(B,he,Se)),et.asyncDep.then(()=>{B.isUnmounted||Te()});return}}let mt=he,Ot;vo(B,!1),he?(he.el=Ct.el,J(B,he,Se)):he=Ct,le&&Ku(le),(Ot=he.props&&he.props.onVnodeBeforeUpdate)&&_r(Ot,Ye,he,Ct),vo(B,!0);const De=Og(B),Ge=B.subTree;B.subTree=De,b(Ge,De,f(Ge.el),z(Ge),B,de,fe),he.el=De.el,mt===null&&Rk(B,De.el),Le&&Qn(Le,de),(Ot=he.props&&he.props.onVnodeUpdated)&&Qn(()=>_r(Ot,Ye,he,Ct),de)}else{let he;const{el:le,props:Le}=K,{bm:Ye,m:Ct,parent:mt,root:Ot,type:De}=B,Ge=xa(K);if(vo(B,!1),Ye&&Ku(Ye),!Ge&&(he=Le&&Le.onVnodeBeforeMount)&&_r(he,mt,K),vo(B,!0),le&&Ke){const et=()=>{B.subTree=Og(B),Ke(le,B.subTree,B,de,null)};Ge&&De.__asyncHydrate?De.__asyncHydrate(le,B,et):et()}else{Ot.ce&&Ot.ce._injectChildStyle(De);const et=B.subTree=Og(B);b(null,et,se,Ae,B,de,fe),K.el=et.el}if(Ct&&Qn(Ct,de),!Ge&&(he=Le&&Le.onVnodeMounted)){const et=K;Qn(()=>_r(he,mt,et),de)}(K.shapeFlag&256||mt&&xa(mt.vnode)&&mt.vnode.shapeFlag&256)&&B.a&&Qn(B.a,de),B.isMounted=!0,K=se=Ae=null}};B.scope.on();const Oe=B.effect=new ny(Te);B.scope.off();const ve=B.update=Oe.run.bind(Oe),$e=B.job=Oe.runIfDirty.bind(Oe);$e.i=B,$e.id=B.uid,Oe.scheduler=()=>pg($e),vo(B,!0),ve()},J=(B,K,se)=>{K.component=B;const Ae=B.vnode.props;B.vnode=K,B.next=null,mk(B,K.props,Ae,se),yk(B,K.children,se),Vr(),Oy(B),qr()},Q=(B,K,se,Ae,de,fe,Se,Te,Oe=!1)=>{const ve=B&&B.children,$e=B?B.shapeFlag:0,he=K.children,{patchFlag:le,shapeFlag:Le}=K;if(le>0){if(le&128){j(ve,he,se,Ae,de,fe,Se,Te,Oe);return}else if(le&256){X(ve,he,se,Ae,de,fe,Se,Te,Oe);return}}Le&8?($e&16&&me(ve,de,fe),he!==ve&&d(se,he)):$e&16?Le&16?j(ve,he,se,Ae,de,fe,Se,Te,Oe):me(ve,de,fe,!0):($e&8&&d(se,""),Le&16&&O(he,se,Ae,de,fe,Se,Te,Oe))},X=(B,K,se,Ae,de,fe,Se,Te,Oe)=>{B=B||vn,K=K||vn;const ve=B.length,$e=K.length,he=Math.min(ve,$e);let le;for(le=0;le<he;le++){const Le=K[le]=Oe?Ns(K[le]):mr(K[le]);b(B[le],Le,se,null,de,fe,Se,Te,Oe)}ve>$e?me(B,de,fe,!0,!1,he):O(K,se,Ae,de,fe,Se,Te,Oe,he)},j=(B,K,se,Ae,de,fe,Se,Te,Oe)=>{let ve=0;const $e=K.length;let he=B.length-1,le=$e-1;for(;ve<=he&&ve<=le;){const Le=B[ve],Ye=K[ve]=Oe?Ns(K[ve]):mr(K[ve]);if(yo(Le,Ye))b(Le,Ye,se,null,de,fe,Se,Te,Oe);else break;ve++}for(;ve<=he&&ve<=le;){const Le=B[he],Ye=K[le]=Oe?Ns(K[le]):mr(K[le]);if(yo(Le,Ye))b(Le,Ye,se,null,de,fe,Se,Te,Oe);else break;he--,le--}if(ve>he){if(ve<=le){const Le=le+1,Ye=Le<$e?K[Le].el:Ae;for(;ve<=le;)b(null,K[ve]=Oe?Ns(K[ve]):mr(K[ve]),se,Ye,de,fe,Se,Te,Oe),ve++}}else if(ve>le)for(;ve<=he;)pe(B[ve],de,fe,!0),ve++;else{const Le=ve,Ye=ve,Ct=new Map;for(ve=Ye;ve<=le;ve++){const _t=K[ve]=Oe?Ns(K[ve]):mr(K[ve]);_t.key!=null&&Ct.set(_t.key,ve)}let mt,Ot=0;const De=le-Ye+1;let Ge=!1,et=0;const ot=new Array(De);for(ve=0;ve<De;ve++)ot[ve]=0;for(ve=Le;ve<=he;ve++){const _t=B[ve];if(Ot>=De){pe(_t,de,fe,!0);continue}let zt;if(_t.key!=null)zt=Ct.get(_t.key);else for(mt=Ye;mt<=le;mt++)if(ot[mt-Ye]===0&&yo(_t,K[mt])){zt=mt;break}zt===void 0?pe(_t,de,fe,!0):(ot[zt-Ye]=ve+1,zt>=et?et=zt:Ge=!0,b(_t,K[zt],se,null,de,fe,Se,Te,Oe),Ot++)}const St=Ge?xk(ot):vn;for(mt=St.length-1,ve=De-1;ve>=0;ve--){const _t=Ye+ve,zt=K[_t],Xn=_t+1<$e?K[_t+1].el:Ae;ot[ve]===0?b(null,zt,se,Xn,de,fe,Se,Te,Oe):Ge&&(mt<0||ve!==St[mt]?ye(zt,se,Xn,2):mt--)}}},ye=(B,K,se,Ae,de=null)=>{const{el:fe,type:Se,transition:Te,children:Oe,shapeFlag:ve}=B;if(ve&6){ye(B.component.subTree,K,se,Ae);return}if(ve&128){B.suspense.move(K,se,Ae);return}if(ve&64){Se.move(B,K,se,Pe);return}if(Se===ze){r(fe,K,se);for(let he=0;he<Oe.length;he++)ye(Oe[he],K,se,Ae);r(B.anchor,K,se);return}if(Se===sc){C(B,K,se);return}if(Ae!==2&&ve&1&&Te)if(Ae===0)Te.beforeEnter(fe),r(fe,K,se),Qn(()=>Te.enter(fe),de);else{const{leave:he,delayLeave:le,afterLeave:Le}=Te,Ye=()=>r(fe,K,se),Ct=()=>{he(fe,()=>{Ye(),Le&&Le()})};le?le(fe,Ye,Ct):Ct()}else r(fe,K,se)},pe=(B,K,se,Ae=!1,de=!1)=>{const{type:fe,props:Se,ref:Te,children:Oe,dynamicChildren:ve,shapeFlag:$e,patchFlag:he,dirs:le,cacheIndex:Le}=B;if(he===-2&&(de=!1),Te!=null&&_g(Te,null,se,B,!0),Le!=null&&(K.renderCache[Le]=void 0),$e&256){K.ctx.deactivate(B);return}const Ye=$e&1&&le,Ct=!xa(B);let mt;if(Ct&&(mt=Se&&Se.onVnodeBeforeUnmount)&&_r(mt,K,B),$e&6)Ce(B.component,se,Ae);else{if($e&128){B.suspense.unmount(se,Ae);return}Ye&&go(B,null,K,"beforeUnmount"),$e&64?B.type.remove(B,K,se,Pe,Ae):ve&&!ve.hasOnce&&(fe!==ze||he>0&&he&64)?me(ve,K,se,!1,!0):(fe===ze&&he&384||!de&&$e&16)&&me(Oe,K,se),Ae&&ie(B)}(Ct&&(mt=Se&&Se.onVnodeUnmounted)||Ye)&&Qn(()=>{mt&&_r(mt,K,B),Ye&&go(B,null,K,"unmounted")},se)},ie=B=>{const{type:K,el:se,anchor:Ae,transition:de}=B;if(K===ze){oe(se,Ae);return}if(K===sc){S(B);return}const fe=()=>{s(se),de&&!de.persisted&&de.afterLeave&&de.afterLeave()};if(B.shapeFlag&1&&de&&!de.persisted){const{leave:Se,delayLeave:Te}=de,Oe=()=>Se(se,fe);Te?Te(B.el,fe,Oe):Oe()}else fe()},oe=(B,K)=>{let se;for(;B!==K;)se=p(B),s(B),B=se;s(K)},Ce=(B,K,se)=>{const{bum:Ae,scope:de,job:fe,subTree:Se,um:Te,m:Oe,a:ve}=B;g2(Oe),g2(ve),Ae&&Ku(Ae),de.stop(),fe&&(fe.flags|=8,pe(Se,B,K,se)),Te&&Qn(Te,K),Qn(()=>{B.isUnmounted=!0},K),K&&K.pendingBranch&&!K.isUnmounted&&B.asyncDep&&!B.asyncResolved&&B.suspenseId===K.pendingId&&(K.deps--,K.deps===0&&K.resolve())},me=(B,K,se,Ae=!1,de=!1,fe=0)=>{for(let Se=fe;Se<B.length;Se++)pe(B[Se],K,se,Ae,de)},z=B=>{if(B.shapeFlag&6)return z(B.component.subTree);if(B.shapeFlag&128)return B.suspense.next();const K=p(B.anchor||B.el),se=K&&K[Dy];return se?p(se):K};let Z=!1;const _e=(B,K,se)=>{B==null?K._vnode&&pe(K._vnode,null,null,!0):b(K._vnode||null,B,K,null,null,null,se),K._vnode=B,Z||(Z=!0,Oy(),Ny(),Z=!1)},Pe={p:b,um:pe,m:ye,r:ie,mt:ae,mc:O,pc:Q,pbc:R,n:z,o:e};let Re,Ke;return t&&([Re,Ke]=t(Pe)),{render:_e,hydrate:Re,createApp:hk(_e,Re)}}function kg({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 vo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Sk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Pg(e,t,n=!1){const r=e.children,s=t.children;if(Be(r)&&Be(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]=Ns(s[o]),l.el=a.el),!n&&l.patchFlag!==-2&&Pg(a,l)),l.type===Ta&&(l.el=a.el)}}function xk(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 h2(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:h2(t)}function g2(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Ek=Symbol.for("v-scx"),Ak=()=>Qe(Ek);function bo(e,t){return bd(e,null,t)}function Tk(e,t){return bd(e,null,{flush:"post"})}function qe(e,t,n){return bd(e,t,n)}function bd(e,t,n=lt){const{immediate:r,deep:s,flush:o,once:a}=n,l=It({},n);let c;if(Sd)if(o==="sync"){const p=Ak();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!t||r)l.once=!0;else{const p=()=>{};return p.stop=yt,p.resume=yt,p.pause=yt,p}const u=Tn;l.call=(p,g,_)=>Wi(p,u,g,_);let d=!1;o==="post"?l.scheduler=p=>{Qn(p,u&&u.suspense)}:o!=="sync"&&(d=!0,l.scheduler=(p,g)=>{g?p():pg(p)}),l.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const f=LT(e,t,l);return c&&c.push(f),f}function kk(e,t,n){const r=this.proxy,s=st(e)?e.includes(".")?m2(r,e):()=>r[e]:e.bind(r,r);let o;Ve(t)?o=t:(o=t.handler,n=t);const a=lc(this),l=bd(s,o.bind(r),n);return a(),l}function m2(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 Pk=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$n(t)}Modifiers`]||e[`${Zn(t)}Modifiers`];function Ok(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||lt;let s=n;const o=t.startsWith("update:"),a=o&&Pk(r,t.slice(7));a&&(a.trim&&(s=n.map(d=>st(d)?d.trim():d)),a.number&&(s=n.map(Kh)));let l,c=r[l=Hl(t)]||r[l=Hl($n(t))];!c&&o&&(c=r[l=Hl(Zn(t))]),c&&Wi(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,Wi(u,e,6,s)}}function _2(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(!Ve(e)){const c=u=>{const d=_2(u,t,!0);d&&(l=!0,It(a,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(ct(e)&&r.set(e,null),null):(Be(o)?o.forEach(c=>a[c]=null):It(a,o),ct(e)&&r.set(e,a),a)}function yd(e,t){return!e||!ga(t)?!1:(t=t.slice(2).replace(/Once$/,""),bt(e,t[0].toLowerCase()+t.slice(1))||bt(e,Zn(t))||bt(e,t))}function Npe(){}function Og(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:p,setupState:g,ctx:_,inheritAttrs:b}=e,y=dd(e);let w,E;try{if(n.shapeFlag&4){const S=s||r,A=S;w=mr(u.call(A,S,d,f,g,p,_)),E=l}else{const S=t;w=mr(S.length>1?S(f,{attrs:l,slots:a,emit:c}):S(f,null)),E=t.props?l:Nk(l)}}catch(S){oc.length=0,cd(S,e,1),w=te(En)}let C=w;if(E&&b!==!1){const S=Object.keys(E),{shapeFlag:A}=C;S.length&&A&7&&(o&&S.some(co)&&(E=Ik(E,o)),C=Kr(C,E,!1,!0))}return n.dirs&&(C=Kr(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&mo(C,n.transition),w=C,dd(y),w}const Nk=e=>{let t;for(const n in e)(n==="class"||n==="style"||ga(n))&&((t||(t={}))[n]=e[n]);return t},Ik=(e,t)=>{const n={};for(const r in e)(!co(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Dk(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?v2(r,a,u):!!a;if(c&8){const d=t.dynamicProps;for(let f=0;f<d.length;f++){const p=d[f];if(a[p]!==r[p]&&!yd(u,p))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===a?!1:r?a?v2(r,a,u):!0:!!a;return!1}function v2(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]&&!yd(n,o))return!0}return!1}function Rk({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 b2=e=>e.__isSuspense;function Lk(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):VT(e)}const ze=Symbol.for("v-fgt"),Ta=Symbol.for("v-txt"),En=Symbol.for("v-cmt"),sc=Symbol.for("v-stc"),oc=[];let li=null;function N(e=!1){oc.push(li=e?null:[])}function Mk(){oc.pop(),li=oc[oc.length-1]||null}let ac=1;function y2(e){ac+=e,e<0&&li&&(li.hasOnce=!0)}function w2(e){return e.dynamicChildren=ac>0?li||vn:null,Mk(),ac>0&&li&&li.push(e),e}function q(e,t,n,r,s,o){return w2(G(e,t,n,r,s,o,!0))}function xe(e,t,n,r,s){return w2(te(e,t,n,r,s,!0))}function Os(e){return e?e.__v_isVNode===!0:!1}function yo(e,t){return e.type===t.type&&e.key===t.key}const C2=({key:e})=>e!=null?e:null,wd=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?st(e)||Mt(e)||Ve(e)?{i:yn,r:e,k:t,f:!!n}:e:null);function G(e,t=null,n=null,r=0,s=null,o=e===ze?0:1,a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&C2(t),ref:t&&wd(t),scopeId:ud,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:yn};return l?(Ng(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=st(n)?8:16),ac>0&&!a&&li&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&li.push(c),c}const te=Fk;function Fk(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Ky)&&(e=En),Os(e)){const l=Kr(e,t,!0);return n&&Ng(l,n),ac>0&&!o&&li&&(l.shapeFlag&6?li[li.indexOf(e)]=l:li.push(l)),l.patchFlag=-2,l}if(Gk(e)&&(e=e.__vccOpts),t){t=S2(t);let{class:l,style:c}=t;l&&!st(l)&&(t.class=Y(l)),ct(c)&&(lg(c)&&!Be(c)&&(c=It({},c)),t.style=Ze(c))}const a=st(e)?1:b2(e)?128:Ry(e)?64:ct(e)?4:Ve(e)?2:0;return G(e,t,n,r,s,a,o,!0)}function S2(e){return e?lg(e)||o2(e)?It({},e):e:null}function Kr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:a,children:l,transition:c}=e,u=t?An(s||{},t):s,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&C2(u),ref:t&&t.ref?n&&o?Be(o)?o.concat(wd(t)):[o,wd(t)]:wd(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!==ze?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&&Kr(e.ssContent),ssFallback:e.ssFallback&&Kr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&mo(d,c.clone(d)),d}function Je(e=" ",t=0){return te(Ta,null,e,t)}function x2(e,t){const n=te(sc,null,e);return n.staticCount=t,n}function re(e="",t=!1){return t?(N(),xe(En,null,e)):te(En,null,e)}function mr(e){return e==null||typeof e=="boolean"?te(En):Be(e)?te(ze,null,e.slice()):typeof e=="object"?Ns(e):te(Ta,null,String(e))}function Ns(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kr(e)}function Ng(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Be(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Ng(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!o2(t)?t._ctx=yn:s===3&&yn&&(yn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:yn},n=32):(t=String(t),r&64?(n=16,t=[Je(t)]):n=8);e.children=t,e.shapeFlag|=n}function An(...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=Y([t.class,r.class]));else if(s==="style")t.style=Ze([t.style,r.style]);else if(ga(s)){const o=t[s],a=r[s];a&&o!==a&&!(Be(o)&&o.includes(a))&&(t[s]=o?[].concat(o,a):a)}else s!==""&&(t[s]=r[s])}return t}function _r(e,t,n,r=null){Wi(e,t,7,[n,r])}const jk=i2();let Bk=0;function Uk(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||jk,o={uid:Bk++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new sT(!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:l2(r,s),emitsOptions:_2(r,s),emit:null,emitted:null,propsDefaults:lt,inheritAttrs:r.inheritAttrs,ctx:lt,data:lt,props:lt,attrs:lt,slots:lt,refs:lt,setupState:lt,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=Ok.bind(null,o),e.ce&&e.ce(o),o}let Tn=null;const Et=()=>Tn||yn;let Cd,Ig;{const e=Jb(),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)}};Cd=t("__VUE_INSTANCE_SETTERS__",n=>Tn=n),Ig=t("__VUE_SSR_SETTERS__",n=>Sd=n)}const lc=e=>{const t=Tn;return Cd(e),e.scope.on(),()=>{e.scope.off(),Cd(t)}},E2=()=>{Tn&&Tn.scope.off(),Cd(null)};function A2(e){return e.vnode.shapeFlag&4}let Sd=!1;function $k(e,t=!1,n=!1){t&&Ig(t);const{props:r,children:s}=e.vnode,o=A2(e);gk(e,r,o,t),bk(e,s,n);const a=o?Vk(e,t):void 0;return t&&Ig(!1),a}function Vk(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ok);const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?O2(e):null,o=lc(e);Vr();const a=wa(r,e,0,[e.props,s]);if(qr(),o(),Hb(a)){if(xa(e)||zy(e),a.then(E2,E2),t)return a.then(l=>{T2(e,l,t)}).catch(l=>{cd(l,e,0)});e.asyncDep=a}else T2(e,a,t)}else P2(e,t)}function T2(e,t,n){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ct(t)&&(e.setupState=Ey(t)),P2(e,n)}let k2;function P2(e,t,n){const r=e.type;if(!e.render){if(!t&&k2&&!r.render){const s=r.template||xg(e).template;if(s){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,u=It(It({isCustomElement:o,delimiters:l},a),c);r.render=k2(s,u)}}e.render=r.render||yt}{const s=lc(e);Vr();try{lk(e)}finally{qr(),s()}}}const qk={get(e,t){return In(e,"get",""),e[t]}};function O2(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,qk),slots:e.slots,emit:e.emit,expose:t}}function xd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ey(od(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ic)return ic[n](e)},has(t,n){return n in t||n in ic}})):e.proxy}const zk=/(?:^|[-_])(\w)/g,Hk=e=>e.replace(zk,t=>t.toUpperCase()).replace(/[-_]/g,"");function N2(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function I2(e,t,n=!1){let r=N2(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?Hk(r):n?"App":"Anonymous"}function Gk(e){return Ve(e)&&"__vccOpts"in e}const W=(e,t)=>DT(e,t,Sd);function dt(e,t,n){const r=arguments.length;return r===2?ct(t)&&!Be(t)?Os(t)?te(e,null,[t]):te(e,t):te(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Os(n)&&(n=[n]),te(e,t,n))}const Wk="3.5.6",Kk=yt;/**
|
|
17
|
+
* @vue/runtime-dom v3.5.6
|
|
18
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
|
+
* @license MIT
|
|
20
|
+
**/let Dg;const D2=typeof window!="undefined"&&window.trustedTypes;if(D2)try{Dg=D2.createPolicy("vue",{createHTML:e=>e})}catch(e){}const R2=Dg?e=>Dg.createHTML(e):e=>e,Jk="http://www.w3.org/2000/svg",Yk="http://www.w3.org/1998/Math/MathML",Jr=typeof document!="undefined"?document:null,L2=Jr&&Jr.createElement("template"),Xk={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"?Jr.createElementNS(Jk,e):t==="mathml"?Jr.createElementNS(Yk,e):n?Jr.createElement(e,{is:n}):Jr.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Jr.createTextNode(e),createComment:e=>Jr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jr.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{L2.innerHTML=R2(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=L2.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]}},Is="transition",cc="animation",ka=Symbol("_vtc"),M2={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},F2=It({},By,M2),Ds=(e=>(e.displayName="Transition",e.props=F2,e))((e,{slots:t})=>dt(XT,B2(e),t)),wo=(e,t=[])=>{Be(e)?e.forEach(n=>n(...t)):e&&e(...t)},j2=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function B2(e){const t={};for(const H in e)H in M2||(t[H]=e[H]);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:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,_=Zk(s),b=_&&_[0],y=_&&_[1],{onBeforeEnter:w,onEnter:E,onEnterCancelled:C,onLeave:S,onLeaveCancelled:A,onBeforeAppear:P=w,onAppear:I=E,onAppearCancelled:O=C}=t,L=(H,V,ae)=>{Rs(H,V?d:l),Rs(H,V?u:a),ae&&ae()},R=(H,V)=>{H._isLeaving=!1,Rs(H,f),Rs(H,g),Rs(H,p),V&&V()},F=H=>(V,ae)=>{const ce=H?I:E,U=()=>L(V,H,ae);wo(ce,[V,U]),U2(()=>{Rs(V,H?c:o),Yr(V,H?d:l),j2(ce)||$2(V,r,b,U)})};return It(t,{onBeforeEnter(H){wo(w,[H]),Yr(H,o),Yr(H,a)},onBeforeAppear(H){wo(P,[H]),Yr(H,c),Yr(H,u)},onEnter:F(!1),onAppear:F(!0),onLeave(H,V){H._isLeaving=!0;const ae=()=>R(H,V);Yr(H,f),Yr(H,p),H2(),U2(()=>{H._isLeaving&&(Rs(H,f),Yr(H,g),j2(S)||$2(H,r,y,ae))}),wo(S,[H,ae])},onEnterCancelled(H){L(H,!1),wo(C,[H])},onAppearCancelled(H){L(H,!0),wo(O,[H])},onLeaveCancelled(H){R(H),wo(A,[H])}})}function Zk(e){if(e==null)return null;if(ct(e))return[Rg(e.enter),Rg(e.leave)];{const t=Rg(e);return[t,t]}}function Rg(e){return Jh(e)}function Yr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ka]||(e[ka]=new Set)).add(t)}function Rs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[ka];n&&(n.delete(t),n.size||(e[ka]=void 0))}function U2(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Qk=0;function $2(e,t,n,r){const s=e._endId=++Qk,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:l,propCount:c}=V2(e,t);if(!a)return r();const u=a+"end";let d=0;const f=()=>{e.removeEventListener(u,p),o()},p=g=>{g.target===e&&++d>=c&&f()};setTimeout(()=>{d<c&&f()},l+1),e.addEventListener(u,p)}function V2(e,t){const n=window.getComputedStyle(e),r=_=>(n[_]||"").split(", "),s=r(`${Is}Delay`),o=r(`${Is}Duration`),a=q2(s,o),l=r(`${cc}Delay`),c=r(`${cc}Duration`),u=q2(l,c);let d=null,f=0,p=0;t===Is?a>0&&(d=Is,f=a,p=o.length):t===cc?u>0&&(d=cc,f=u,p=c.length):(f=Math.max(a,u),d=f>0?a>u?Is:cc:null,p=d?d===Is?o.length:c.length:0);const g=d===Is&&/\b(transform|all)(,|$)/.test(r(`${Is}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:g}}function q2(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>z2(n)+z2(e[r])))}function z2(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function H2(){return document.body.offsetHeight}function eP(e,t,n){const r=e[ka];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ed=Symbol("_vod"),G2=Symbol("_vsh"),wn={beforeMount(e,{value:t},{transition:n}){e[Ed]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):uc(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),uc(e,!0),r.enter(e)):r.leave(e,()=>{uc(e,!1)}):uc(e,t))},beforeUnmount(e,{value:t}){uc(e,t)}};function uc(e,t){e.style.display=t?e[Ed]:"none",e[G2]=!t}const W2=Symbol("");function tP(e){const t=Et();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Ad(o,s))},r=()=>{const s=e(t.proxy);t.ce?Ad(t.ce,s):Lg(t.subTree,s),n(s)};tc(()=>{Tk(r)}),Rt(()=>{const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),_o(()=>s.disconnect())})}function Lg(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Lg(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ad(e.el,t);else if(e.type===ze)e.children.forEach(n=>Lg(n,t));else if(e.type===sc){let{el:n,anchor:r}=e;for(;n&&(Ad(n,t),n!==r);)n=n.nextSibling}}function Ad(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[W2]=r}}const nP=/(^|;)\s*display\s*:/;function iP(e,t,n){const r=e.style,s=st(n);let o=!1;if(n&&!s){if(t)if(st(t))for(const a of t.split(";")){const l=a.slice(0,a.indexOf(":")).trim();n[l]==null&&Td(r,l,"")}else for(const a in t)n[a]==null&&Td(r,a,"");for(const a in n)a==="display"&&(o=!0),Td(r,a,n[a])}else if(s){if(t!==n){const a=r[W2];a&&(n+=";"+a),r.cssText=n,o=nP.test(n)}}else t&&e.removeAttribute("style");Ed in e&&(e[Ed]=o?r.display:"",e[G2]&&(r.display="none"))}const K2=/\s*!important$/;function Td(e,t,n){if(Be(n))n.forEach(r=>Td(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=rP(e,t);K2.test(n)?e.setProperty(Zn(r),n.replace(K2,""),"important"):e[r]=n}}const J2=["Webkit","Moz","ms"],Mg={};function rP(e,t){const n=Mg[t];if(n)return n;let r=$n(t);if(r!=="filter"&&r in e)return Mg[t]=r;r=Wu(r);for(let s=0;s<J2.length;s++){const o=J2[s]+r;if(o in e)return Mg[t]=o}return t}const Y2="http://www.w3.org/1999/xlink";function X2(e,t,n,r,s,o=iT(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Y2,t.slice(6,t.length)):e.setAttributeNS(Y2,t,n):n==null||o&&!Yb(n)?e.removeAttribute(t):e.setAttribute(t,o?"":pr(n)?String(n):n)}function sP(e,t,n,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?R2(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=Yb(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 Ls(e,t,n,r){e.addEventListener(t,n,r)}function oP(e,t,n,r){e.removeEventListener(t,n,r)}const Z2=Symbol("_vei");function aP(e,t,n,r,s=null){const o=e[Z2]||(e[Z2]={}),a=o[t];if(r&&a)a.value=r;else{const[l,c]=lP(t);if(r){const u=o[t]=dP(r,s);Ls(e,l,u,c)}else a&&(oP(e,l,a,c),o[t]=void 0)}}const Q2=/(?:Once|Passive|Capture)$/;function lP(e){let t;if(Q2.test(e)){t={};let r;for(;r=e.match(Q2);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Zn(e.slice(2)),t]}let Fg=0;const cP=Promise.resolve(),uP=()=>Fg||(cP.then(()=>Fg=0),Fg=Date.now());function dP(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Wi(fP(r,n.value),t,5,[r])};return n.value=e,n.attached=uP(),n}function fP(e,t){if(Be(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 ew=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,pP=(e,t,n,r,s,o)=>{const a=s==="svg";t==="class"?eP(e,r,a):t==="style"?iP(e,n,r):ga(t)?co(t)||aP(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):hP(e,t,r,a))?(sP(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&X2(e,t,r,a,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),X2(e,t,r,a))};function hP(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ew(t)&&Ve(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 ew(t)&&st(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!st(n)))}const tw={};/*! #__NO_SIDE_EFFECTS__ */function gP(e,t,n){const r=ke(e,t);_a(r)&&It(r,t);class s extends jg{constructor(a){super(r,a,n)}}return s.def=r,s}const mP=typeof HTMLElement!="undefined"?HTMLElement:class{};class jg extends mP{constructor(t,n={},r=Bg){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!==Bg?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 jg){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,ht(()=>{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&&!Be(o))for(const c in o){const u=o[c];(u===Number||u&&u.type===Number)&&(c in this._props&&(this._props[c]=Jh(this._props[c])),(l||(l=Object.create(null)))[$n(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)bt(this,r)||Object.defineProperty(this,r,{get:()=>T(n[r])})}_resolveProps(t){const{props:n}=t,r=Be(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($n))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):tw;const s=$n(t);n&&this._numberProps&&this._numberProps[s]&&(r=Jh(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===tw?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(Zn(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Zn(t),n+""):n||this.removeAttribute(Zn(t))))}_update(){Co(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=te(this._def,It(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,_a(a[0])?It({detail:a},a[0]):{detail:a}))};r.emit=(o,...a)=>{s(o,a),Zn(o)!==o&&s(Zn(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 nw=new WeakMap,iw=new WeakMap,kd=Symbol("_moveCb"),rw=Symbol("_enterCb"),sw=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:It({},F2,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Et(),r=jy();let s,o;return nc(()=>{if(!s.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!yP(s[0].el,n.vnode.el,a))return;s.forEach(_P),s.forEach(vP);const l=s.filter(bP);H2(),l.forEach(c=>{const u=c.el,d=u.style;Yr(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=u[kd]=p=>{p&&p.target!==u||(!p||/transform$/.test(p.propertyName))&&(u.removeEventListener("transitionend",f),u[kd]=null,Rs(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=it(e),l=B2(a);let c=a.tag||ze;if(s=[],o)for(let u=0;u<o.length;u++){const d=o[u];d.el&&d.el instanceof Element&&(s.push(d),mo(d,ec(d,l,r,n)),nw.set(d,d.el.getBoundingClientRect()))}o=t.default?mg(t.default()):[];for(let u=0;u<o.length;u++){const d=o[u];d.key!=null&&mo(d,ec(d,l,r,n))}return te(c,null,o)}}});function _P(e){const t=e.el;t[kd]&&t[kd](),t[rw]&&t[rw]()}function vP(e){iw.set(e,e.el.getBoundingClientRect())}function bP(e){const t=nw.get(e),n=iw.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 yP(e,t,n){const r=e.cloneNode(),s=e[ka];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}=V2(r);return o.removeChild(r),a}const Pa=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?n=>Ku(t,n):t};function wP(e){e.target.composing=!0}function ow(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Xr=Symbol("_assign"),CP={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Xr]=Pa(s);const o=r||s.props&&s.props.type==="number";Ls(e,t?"change":"input",a=>{if(a.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Kh(l)),e[Xr](l)}),n&&Ls(e,"change",()=>{e.value=e.value.trim()}),t||(Ls(e,"compositionstart",wP),Ls(e,"compositionend",ow),Ls(e,"change",ow))},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[Xr]=Pa(a),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Kh(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))}},Pd={deep:!0,created(e,t,n){e[Xr]=Pa(n),Ls(e,"change",()=>{const r=e._modelValue,s=cw(e),o=e.checked,a=e[Xr];if(Be(r)){const l=Xb(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(zu(r)){const l=new Set(r);o?l.add(s):l.delete(s),a(l)}else a(uw(e,o))})},mounted:aw,beforeUpdate(e,t,n){e[Xr]=Pa(n),aw(e,t,n)}};function aw(e,{value:t,oldValue:n},r){e._modelValue=t;let s;Be(t)?s=Xb(t,r.props.value)>-1:zu(t)?s=t.has(r.props.value):s=va(t,uw(e,!0)),e.checked!==s&&(e.checked=s)}const lw={created(e,{value:t},n){e.checked=va(t,n.props.value),e[Xr]=Pa(n),Ls(e,"change",()=>{e[Xr](cw(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Xr]=Pa(r),t!==n&&(e.checked=va(t,r.props.value))}};function cw(e){return"_value"in e?e._value:e.value}function uw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const SP=["ctrl","shift","alt","meta"],xP={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)=>SP.some(n=>e[`${n}Key`]&&!t.includes(n))},gt=(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=xP[t[a]];if(l&&l(s,t))return}return e(s,...o)})},EP={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ki=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=Zn(s.key);if(t.some(a=>a===o||EP[a]===o))return e(s)})},AP=It({patchProp:pP},Xk);let dw;function fw(){return dw||(dw=wk(AP))}const Co=(...e)=>{fw().render(...e)},Bg=(...e)=>{const t=fw().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=kP(r);if(!s)return;const o=t._component;!Ve(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const a=n(s,!1,TP(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t};function TP(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function kP(e){return st(e)?document.querySelector(e):e}const PP='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',OP=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,pw=e=>Array.from(e.querySelectorAll(PP)).filter(t=>NP(t)&&OP(t)),NP=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Zr=(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 hw;const Dt=typeof window!="undefined",IP=e=>typeof e!="undefined",DP=e=>typeof e=="function",RP=e=>typeof e=="string",Od=()=>{},Ug=Dt&&((hw=window==null?void 0:window.navigator)==null?void 0:hw.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function dc(e){return typeof e=="function"?e():T(e)}function LP(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 MP(e,t={}){let n,r,s=Od;const o=l=>{clearTimeout(l),s(),s=Od};return l=>{const c=dc(e),u=dc(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 FP(e){return e}function fc(e){return ey()?(ty(e),!0):!1}function jP(e,t=200,n={}){return LP(MP(t,n),e)}function BP(e,t=200,n={}){const r=ne(e.value),s=jP(()=>{r.value=e.value},t,n);return qe(e,()=>s()),r}function UP(e,t=!0){Et()?Rt(e):t?e():ht(e)}function $g(e,t,n={}){const{immediate:r=!0}=n,s=ne(!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)},dc(t))}return r&&(s.value=!0,Dt&&c()),fc(l),{isPending:rd(s),start:c,stop:l}}function Qr(e){var t;const n=dc(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Nd=Dt?window:void 0;function Si(...e){let t,n,r,s;if(RP(e[0])||Array.isArray(e[0])?([n,r,s]=e,t=Nd):[t,n,r,s]=e,!t)return Od;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(d=>d()),o.length=0},l=(d,f,p,g)=>(d.addEventListener(f,p,g),()=>d.removeEventListener(f,p,g)),c=qe(()=>[Qr(t),dc(s)],([d,f])=>{a(),d&&o.push(...n.flatMap(p=>r.map(g=>l(d,p,g,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),a()};return fc(u),u}let gw=!1;function $P(e,t,n={}){const{window:r=Nd,ignore:s=[],capture:o=!0,detectIframe:a=!1}=n;if(!r)return;Ug&&!gw&&(gw=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",Od)));let l=!0;const c=p=>s.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(_=>_===p.target||p.composedPath().includes(_));{const _=Qr(g);return _&&(p.target===_||p.composedPath().includes(_))}}),d=[Si(r,"click",p=>{const g=Qr(e);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:o}),Si(r,"pointerdown",p=>{const g=Qr(e);g&&(l=!p.composedPath().includes(g)&&!c(p))},{passive:!0}),a&&Si(r,"blur",p=>{var g;const _=Qr(e);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(_!=null&&_.contains(r.document.activeElement))&&t(p)})].filter(Boolean);return()=>d.forEach(p=>p())}function mw(e,t=!1){const n=ne(),r=()=>n.value=!!e();return r(),UP(r,t),n}function VP(e){return JSON.parse(JSON.stringify(e))}const _w=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},vw="__vueuse_ssr_handlers__";_w[vw]=_w[vw]||{};var bw=Object.getOwnPropertySymbols,qP=Object.prototype.hasOwnProperty,zP=Object.prototype.propertyIsEnumerable,HP=(e,t)=>{var n={};for(var r in e)qP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&bw)for(var r of bw(e))t.indexOf(r)<0&&zP.call(e,r)&&(n[r]=e[r]);return n};function ci(e,t,n={}){const r=n,{window:s=Nd}=r,o=HP(r,["window"]);let a;const l=mw(()=>s&&"ResizeObserver"in s),c=()=>{a&&(a.disconnect(),a=void 0)},u=qe(()=>Qr(e),f=>{c(),l.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return fc(d),{isSupported:l,stop:d}}var yw=Object.getOwnPropertySymbols,GP=Object.prototype.hasOwnProperty,WP=Object.prototype.propertyIsEnumerable,KP=(e,t)=>{var n={};for(var r in e)GP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&yw)for(var r of yw(e))t.indexOf(r)<0&&WP.call(e,r)&&(n[r]=e[r]);return n};function JP(e,t,n={}){const r=n,{window:s=Nd}=r,o=KP(r,["window"]);let a;const l=mw(()=>s&&"MutationObserver"in s),c=()=>{a&&(a.disconnect(),a=void 0)},u=qe(()=>Qr(e),f=>{c(),l.value&&s&&f&&(a=new MutationObserver(t),a.observe(f,o))},{immediate:!0}),d=()=>{c(),u()};return fc(d),{isSupported:l,stop:d}}var ww;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ww||(ww={}));var YP=Object.defineProperty,Cw=Object.getOwnPropertySymbols,XP=Object.prototype.hasOwnProperty,ZP=Object.prototype.propertyIsEnumerable,Sw=(e,t,n)=>t in e?YP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QP=(e,t)=>{for(var n in t||(t={}))XP.call(t,n)&&Sw(e,n,t[n]);if(Cw)for(var n of Cw(t))ZP.call(t,n)&&Sw(e,n,t[n]);return e};QP({linear:FP},{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 eO(e,t,n,r={}){var s,o,a;const{clone:l=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:f}=r,p=Et(),g=n||(p==null?void 0:p.emit)||((s=p==null?void 0:p.$emit)==null?void 0:s.bind(p))||((a=(o=p==null?void 0:p.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(p==null?void 0:p.proxy));let _=u;t||(t="modelValue"),_=u||_||`update:${t.toString()}`;const b=w=>l?DP(l)?l(w):VP(w):w,y=()=>IP(e[t])?b(e[t]):f;if(c){const w=y(),E=ne(w);return qe(()=>e[t],C=>E.value=b(C)),qe(E,C=>{(C!==e[t]||d)&&g(_,C)},{deep:d}),E}else return W({get(){return y()},set(w){g(_,w)}})}const tO=()=>Dt&&/firefox/i.test(window.navigator.userAgent);var nO=typeof global=="object"&&global&&global.Object===Object&&global;const xw=nO;var iO=typeof self=="object"&&self&&self.Object===Object&&self,rO=xw||iO||Function("return this")();const Ji=rO;var sO=Ji.Symbol;const xi=sO;var Ew=Object.prototype,oO=Ew.hasOwnProperty,aO=Ew.toString,pc=xi?xi.toStringTag:void 0;function lO(e){var t=oO.call(e,pc),n=e[pc];try{e[pc]=void 0;var r=!0}catch(o){}var s=aO.call(e);return r&&(t?e[pc]=n:delete e[pc]),s}var cO=Object.prototype,uO=cO.toString;function dO(e){return uO.call(e)}var fO="[object Null]",pO="[object Undefined]",Aw=xi?xi.toStringTag:void 0;function So(e){return e==null?e===void 0?pO:fO:Aw&&Aw in Object(e)?lO(e):dO(e)}function vr(e){return e!=null&&typeof e=="object"}var hO="[object Symbol]";function Id(e){return typeof e=="symbol"||vr(e)&&So(e)==hO}function Tw(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 gO=Array.isArray;const Hn=gO;var mO=1/0,kw=xi?xi.prototype:void 0,Pw=kw?kw.toString:void 0;function Ow(e){if(typeof e=="string")return e;if(Hn(e))return Tw(e,Ow)+"";if(Id(e))return Pw?Pw.call(e):"";var t=e+"";return t=="0"&&1/e==-mO?"-0":t}var _O=/\s/;function vO(e){for(var t=e.length;t--&&_O.test(e.charAt(t)););return t}var bO=/^\s+/;function yO(e){return e&&e.slice(0,vO(e)+1).replace(bO,"")}function ei(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Nw=0/0,wO=/^[-+]0x[0-9a-f]+$/i,CO=/^0b[01]+$/i,SO=/^0o[0-7]+$/i,xO=parseInt;function Vg(e){if(typeof e=="number")return e;if(Id(e))return Nw;if(ei(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ei(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yO(e);var n=CO.test(e);return n||SO.test(e)?xO(e.slice(2),n?2:8):wO.test(e)?Nw:+e}var Iw=1/0,EO=17976931348623157e292;function AO(e){if(!e)return e===0?e:0;if(e=Vg(e),e===Iw||e===-Iw){var t=e<0?-1:1;return t*EO}return e===e?e:0}function TO(e){var t=AO(e),n=t%1;return t===t?n?t-n:t:0}function qg(e){return e}var kO="[object AsyncFunction]",PO="[object Function]",OO="[object GeneratorFunction]",NO="[object Proxy]";function Dd(e){if(!ei(e))return!1;var t=So(e);return t==PO||t==OO||t==kO||t==NO}var IO=Ji["__core-js_shared__"];const zg=IO;var Dw=function(){var e=/[^.]+$/.exec(zg&&zg.keys&&zg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function DO(e){return!!Dw&&Dw in e}var RO=Function.prototype,LO=RO.toString;function xo(e){if(e!=null){try{return LO.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var MO=/[\\^$.*+?()[\]{}|]/g,FO=/^\[object .+?Constructor\]$/,jO=Function.prototype,BO=Object.prototype,UO=jO.toString,$O=BO.hasOwnProperty,VO=RegExp("^"+UO.call($O).replace(MO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qO(e){if(!ei(e)||DO(e))return!1;var t=Dd(e)?VO:FO;return t.test(xo(e))}function zO(e,t){return e==null?void 0:e[t]}function Eo(e,t){var n=zO(e,t);return qO(n)?n:void 0}var HO=Eo(Ji,"WeakMap");const Hg=HO;var Rw=Object.create,GO=function(){function e(){}return function(t){if(!ei(t))return{};if(Rw)return Rw(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const WO=GO;function KO(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 Lw(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var JO=800,YO=16,XO=Date.now;function ZO(e){var t=0,n=0;return function(){var r=XO(),s=YO-(r-n);if(n=r,s>0){if(++t>=JO)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function QO(e){return function(){return e}}var eN=function(){try{var e=Eo(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Rd=eN;var tN=Rd?function(e,t){return Rd(e,"toString",{configurable:!0,enumerable:!1,value:QO(t),writable:!0})}:qg,nN=ZO(tN);const Mw=nN;function iN(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function rN(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 sN=9007199254740991,oN=/^(?:0|[1-9]\d*)$/;function Ld(e,t){var n=typeof e;return t=t==null?sN:t,!!t&&(n=="number"||n!="symbol"&&oN.test(e))&&e>-1&&e%1==0&&e<t}function Gg(e,t,n){t=="__proto__"&&Rd?Rd(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function hc(e,t){return e===t||e!==e&&t!==t}var aN=Object.prototype,lN=aN.hasOwnProperty;function Wg(e,t,n){var r=e[t];(!(lN.call(e,t)&&hc(r,n))||n===void 0&&!(t in e))&&Gg(e,t,n)}function gc(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?Gg(n,l,c):Wg(n,l,c)}return n}var Fw=Math.max;function jw(e,t,n){return t=Fw(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,o=Fw(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),KO(e,this,l)}}function cN(e,t){return Mw(jw(e,t,qg),e+"")}var uN=9007199254740991;function Kg(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uN}function Oa(e){return e!=null&&Kg(e.length)&&!Dd(e)}function dN(e,t,n){if(!ei(n))return!1;var r=typeof t;return(r=="number"?Oa(n)&&Ld(t,n.length):r=="string"&&t in n)?hc(n[t],e):!1}function fN(e){return cN(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&&dN(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 pN=Object.prototype;function Jg(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||pN;return e===n}function hN(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var gN="[object Arguments]";function Bw(e){return vr(e)&&So(e)==gN}var Uw=Object.prototype,mN=Uw.hasOwnProperty,_N=Uw.propertyIsEnumerable,vN=Bw(function(){return arguments}())?Bw:function(e){return vr(e)&&mN.call(e,"callee")&&!_N.call(e,"callee")};const mc=vN;function bN(){return!1}var $w=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vw=$w&&typeof module=="object"&&module&&!module.nodeType&&module,yN=Vw&&Vw.exports===$w,qw=yN?Ji.Buffer:void 0,wN=qw?qw.isBuffer:void 0,CN=wN||bN;const _c=CN;var SN="[object Arguments]",xN="[object Array]",EN="[object Boolean]",AN="[object Date]",TN="[object Error]",kN="[object Function]",PN="[object Map]",ON="[object Number]",NN="[object Object]",IN="[object RegExp]",DN="[object Set]",RN="[object String]",LN="[object WeakMap]",MN="[object ArrayBuffer]",FN="[object DataView]",jN="[object Float32Array]",BN="[object Float64Array]",UN="[object Int8Array]",$N="[object Int16Array]",VN="[object Int32Array]",qN="[object Uint8Array]",zN="[object Uint8ClampedArray]",HN="[object Uint16Array]",GN="[object Uint32Array]",Kt={};Kt[jN]=Kt[BN]=Kt[UN]=Kt[$N]=Kt[VN]=Kt[qN]=Kt[zN]=Kt[HN]=Kt[GN]=!0,Kt[SN]=Kt[xN]=Kt[MN]=Kt[EN]=Kt[FN]=Kt[AN]=Kt[TN]=Kt[kN]=Kt[PN]=Kt[ON]=Kt[NN]=Kt[IN]=Kt[DN]=Kt[RN]=Kt[LN]=!1;function WN(e){return vr(e)&&Kg(e.length)&&!!Kt[So(e)]}function Yg(e){return function(t){return e(t)}}var zw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vc=zw&&typeof module=="object"&&module&&!module.nodeType&&module,KN=vc&&vc.exports===zw,Xg=KN&&xw.process,JN=function(){try{var e=vc&&vc.require&&vc.require("util").types;return e||Xg&&Xg.binding&&Xg.binding("util")}catch(t){}}();const Na=JN;var Hw=Na&&Na.isTypedArray,YN=Hw?Yg(Hw):WN;const Zg=YN;var XN=Object.prototype,ZN=XN.hasOwnProperty;function Gw(e,t){var n=Hn(e),r=!n&&mc(e),s=!n&&!r&&_c(e),o=!n&&!r&&!s&&Zg(e),a=n||r||s||o,l=a?hN(e.length,String):[],c=l.length;for(var u in e)(t||ZN.call(e,u))&&!(a&&(u=="length"||s&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ld(u,c)))&&l.push(u);return l}function Ww(e,t){return function(n){return e(t(n))}}var QN=Ww(Object.keys,Object);const eI=QN;var tI=Object.prototype,nI=tI.hasOwnProperty;function iI(e){if(!Jg(e))return eI(e);var t=[];for(var n in Object(e))nI.call(e,n)&&n!="constructor"&&t.push(n);return t}function bc(e){return Oa(e)?Gw(e):iI(e)}function rI(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var sI=Object.prototype,oI=sI.hasOwnProperty;function aI(e){if(!ei(e))return rI(e);var t=Jg(e),n=[];for(var r in e)r=="constructor"&&(t||!oI.call(e,r))||n.push(r);return n}function yc(e){return Oa(e)?Gw(e,!0):aI(e)}var lI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cI=/^\w*$/;function Qg(e,t){if(Hn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Id(e)?!0:cI.test(e)||!lI.test(e)||t!=null&&e in Object(t)}var uI=Eo(Object,"create");const wc=uI;function dI(){this.__data__=wc?wc(null):{},this.size=0}function fI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pI="__lodash_hash_undefined__",hI=Object.prototype,gI=hI.hasOwnProperty;function mI(e){var t=this.__data__;if(wc){var n=t[e];return n===pI?void 0:n}return gI.call(t,e)?t[e]:void 0}var _I=Object.prototype,vI=_I.hasOwnProperty;function bI(e){var t=this.__data__;return wc?t[e]!==void 0:vI.call(t,e)}var yI="__lodash_hash_undefined__";function wI(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wc&&t===void 0?yI:t,this}function Ao(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])}}Ao.prototype.clear=dI,Ao.prototype.delete=fI,Ao.prototype.get=mI,Ao.prototype.has=bI,Ao.prototype.set=wI;function CI(){this.__data__=[],this.size=0}function Md(e,t){for(var n=e.length;n--;)if(hc(e[n][0],t))return n;return-1}var SI=Array.prototype,xI=SI.splice;function EI(e){var t=this.__data__,n=Md(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():xI.call(t,n,1),--this.size,!0}function AI(e){var t=this.__data__,n=Md(t,e);return n<0?void 0:t[n][1]}function TI(e){return Md(this.__data__,e)>-1}function kI(e,t){var n=this.__data__,r=Md(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function es(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])}}es.prototype.clear=CI,es.prototype.delete=EI,es.prototype.get=AI,es.prototype.has=TI,es.prototype.set=kI;var PI=Eo(Ji,"Map");const Cc=PI;function OI(){this.size=0,this.__data__={hash:new Ao,map:new(Cc||es),string:new Ao}}function NI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Fd(e,t){var n=e.__data__;return NI(t)?n[typeof t=="string"?"string":"hash"]:n.map}function II(e){var t=Fd(this,e).delete(e);return this.size-=t?1:0,t}function DI(e){return Fd(this,e).get(e)}function RI(e){return Fd(this,e).has(e)}function LI(e,t){var n=Fd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ts(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])}}ts.prototype.clear=OI,ts.prototype.delete=II,ts.prototype.get=DI,ts.prototype.has=RI,ts.prototype.set=LI;var MI="Expected a function";function em(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(MI);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(em.Cache||ts),n}em.Cache=ts;var FI=500;function jI(e){var t=em(e,function(r){return n.size===FI&&n.clear(),r}),n=t.cache;return t}var BI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UI=/\\(\\)?/g,$I=jI(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(BI,function(n,r,s,o){t.push(s?o.replace(UI,"$1"):r||n)}),t});const VI=$I;function qI(e){return e==null?"":Ow(e)}function jd(e,t){return Hn(e)?e:Qg(e,t)?[e]:VI(qI(e))}var zI=1/0;function Sc(e){if(typeof e=="string"||Id(e))return e;var t=e+"";return t=="0"&&1/e==-zI?"-0":t}function tm(e,t){t=jd(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Sc(t[n++])];return n&&n==r?e:void 0}function Ei(e,t,n){var r=e==null?void 0:tm(e,t);return r===void 0?n:r}function nm(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var Kw=xi?xi.isConcatSpreadable:void 0;function HI(e){return Hn(e)||mc(e)||!!(Kw&&e&&e[Kw])}function im(e,t,n,r,s){var o=-1,a=e.length;for(n||(n=HI),s||(s=[]);++o<a;){var l=e[o];t>0&&n(l)?t>1?im(l,t-1,n,r,s):nm(s,l):r||(s[s.length]=l)}return s}function GI(e){var t=e==null?0:e.length;return t?im(e,1):[]}function WI(e){return Mw(jw(e,void 0,GI),e+"")}var KI=Ww(Object.getPrototypeOf,Object);const rm=KI;var JI="[object Object]",YI=Function.prototype,XI=Object.prototype,Jw=YI.toString,ZI=XI.hasOwnProperty,QI=Jw.call(Object);function eD(e){if(!vr(e)||So(e)!=JI)return!1;var t=rm(e);if(t===null)return!0;var n=ZI.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Jw.call(n)==QI}function Yi(){if(!arguments.length)return[];var e=arguments[0];return Hn(e)?e:[e]}function tD(){this.__data__=new es,this.size=0}function nD(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function iD(e){return this.__data__.get(e)}function rD(e){return this.__data__.has(e)}var sD=200;function oD(e,t){var n=this.__data__;if(n instanceof es){var r=n.__data__;if(!Cc||r.length<sD-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ts(r)}return n.set(e,t),this.size=n.size,this}function Xi(e){var t=this.__data__=new es(e);this.size=t.size}Xi.prototype.clear=tD,Xi.prototype.delete=nD,Xi.prototype.get=iD,Xi.prototype.has=rD,Xi.prototype.set=oD;function aD(e,t){return e&&gc(t,bc(t),e)}function lD(e,t){return e&&gc(t,yc(t),e)}var Yw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xw=Yw&&typeof module=="object"&&module&&!module.nodeType&&module,cD=Xw&&Xw.exports===Yw,Zw=cD?Ji.Buffer:void 0,Qw=Zw?Zw.allocUnsafe:void 0;function e3(e,t){if(t)return e.slice();var n=e.length,r=Qw?Qw(n):new e.constructor(n);return e.copy(r),r}function uD(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 t3(){return[]}var dD=Object.prototype,fD=dD.propertyIsEnumerable,n3=Object.getOwnPropertySymbols,pD=n3?function(e){return e==null?[]:(e=Object(e),uD(n3(e),function(t){return fD.call(e,t)}))}:t3;const sm=pD;function hD(e,t){return gc(e,sm(e),t)}var gD=Object.getOwnPropertySymbols,mD=gD?function(e){for(var t=[];e;)nm(t,sm(e)),e=rm(e);return t}:t3;const i3=mD;function _D(e,t){return gc(e,i3(e),t)}function r3(e,t,n){var r=t(e);return Hn(e)?r:nm(r,n(e))}function om(e){return r3(e,bc,sm)}function vD(e){return r3(e,yc,i3)}var bD=Eo(Ji,"DataView");const am=bD;var yD=Eo(Ji,"Promise");const lm=yD;var wD=Eo(Ji,"Set");const cm=wD;var s3="[object Map]",CD="[object Object]",o3="[object Promise]",a3="[object Set]",l3="[object WeakMap]",c3="[object DataView]",SD=xo(am),xD=xo(Cc),ED=xo(lm),AD=xo(cm),TD=xo(Hg),To=So;(am&&To(new am(new ArrayBuffer(1)))!=c3||Cc&&To(new Cc)!=s3||lm&&To(lm.resolve())!=o3||cm&&To(new cm)!=a3||Hg&&To(new Hg)!=l3)&&(To=function(e){var t=So(e),n=t==CD?e.constructor:void 0,r=n?xo(n):"";if(r)switch(r){case SD:return c3;case xD:return s3;case ED:return o3;case AD:return a3;case TD:return l3}return t});const xc=To;var kD=Object.prototype,PD=kD.hasOwnProperty;function OD(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&PD.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ND=Ji.Uint8Array;const Bd=ND;function um(e){var t=new e.constructor(e.byteLength);return new Bd(t).set(new Bd(e)),t}function ID(e,t){var n=t?um(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var DD=/\w*$/;function RD(e){var t=new e.constructor(e.source,DD.exec(e));return t.lastIndex=e.lastIndex,t}var u3=xi?xi.prototype:void 0,d3=u3?u3.valueOf:void 0;function LD(e){return d3?Object(d3.call(e)):{}}function f3(e,t){var n=t?um(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var MD="[object Boolean]",FD="[object Date]",jD="[object Map]",BD="[object Number]",UD="[object RegExp]",$D="[object Set]",VD="[object String]",qD="[object Symbol]",zD="[object ArrayBuffer]",HD="[object DataView]",GD="[object Float32Array]",WD="[object Float64Array]",KD="[object Int8Array]",JD="[object Int16Array]",YD="[object Int32Array]",XD="[object Uint8Array]",ZD="[object Uint8ClampedArray]",QD="[object Uint16Array]",eR="[object Uint32Array]";function tR(e,t,n){var r=e.constructor;switch(t){case zD:return um(e);case MD:case FD:return new r(+e);case HD:return ID(e,n);case GD:case WD:case KD:case JD:case YD:case XD:case ZD:case QD:case eR:return f3(e,n);case jD:return new r;case BD:case VD:return new r(e);case UD:return RD(e);case $D:return new r;case qD:return LD(e)}}function p3(e){return typeof e.constructor=="function"&&!Jg(e)?WO(rm(e)):{}}var nR="[object Map]";function iR(e){return vr(e)&&xc(e)==nR}var h3=Na&&Na.isMap,rR=h3?Yg(h3):iR;const sR=rR;var oR="[object Set]";function aR(e){return vr(e)&&xc(e)==oR}var g3=Na&&Na.isSet,lR=g3?Yg(g3):aR;const cR=lR;var uR=1,dR=2,fR=4,m3="[object Arguments]",pR="[object Array]",hR="[object Boolean]",gR="[object Date]",mR="[object Error]",_3="[object Function]",_R="[object GeneratorFunction]",vR="[object Map]",bR="[object Number]",v3="[object Object]",yR="[object RegExp]",wR="[object Set]",CR="[object String]",SR="[object Symbol]",xR="[object WeakMap]",ER="[object ArrayBuffer]",AR="[object DataView]",TR="[object Float32Array]",kR="[object Float64Array]",PR="[object Int8Array]",OR="[object Int16Array]",NR="[object Int32Array]",IR="[object Uint8Array]",DR="[object Uint8ClampedArray]",RR="[object Uint16Array]",LR="[object Uint32Array]",Ht={};Ht[m3]=Ht[pR]=Ht[ER]=Ht[AR]=Ht[hR]=Ht[gR]=Ht[TR]=Ht[kR]=Ht[PR]=Ht[OR]=Ht[NR]=Ht[vR]=Ht[bR]=Ht[v3]=Ht[yR]=Ht[wR]=Ht[CR]=Ht[SR]=Ht[IR]=Ht[DR]=Ht[RR]=Ht[LR]=!0,Ht[mR]=Ht[_3]=Ht[xR]=!1;function Ec(e,t,n,r,s,o){var a,l=t&uR,c=t&dR,u=t&fR;if(n&&(a=s?n(e,r,s,o):n(e)),a!==void 0)return a;if(!ei(e))return e;var d=Hn(e);if(d){if(a=OD(e),!l)return Lw(e,a)}else{var f=xc(e),p=f==_3||f==_R;if(_c(e))return e3(e,l);if(f==v3||f==m3||p&&!s){if(a=c||p?{}:p3(e),!l)return c?_D(e,lD(a,e)):hD(e,aD(a,e))}else{if(!Ht[f])return s?e:{};a=tR(e,f,l)}}o||(o=new Xi);var g=o.get(e);if(g)return g;o.set(e,a),cR(e)?e.forEach(function(y){a.add(Ec(y,t,n,y,e,o))}):sR(e)&&e.forEach(function(y,w){a.set(w,Ec(y,t,n,w,e,o))});var _=u?c?vD:om:c?yc:bc,b=d?void 0:_(e);return iN(b||e,function(y,w){b&&(w=y,y=e[w]),Wg(a,w,Ec(y,t,n,w,e,o))}),a}var MR=4;function b3(e){return Ec(e,MR)}var FR=1,jR=4;function ko(e){return Ec(e,FR|jR)}var BR="__lodash_hash_undefined__";function UR(e){return this.__data__.set(e,BR),this}function $R(e){return this.__data__.has(e)}function Ud(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ts;++t<n;)this.add(e[t])}Ud.prototype.add=Ud.prototype.push=UR,Ud.prototype.has=$R;function VR(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 qR(e,t){return e.has(t)}var zR=1,HR=2;function y3(e,t,n,r,s,o){var a=n&zR,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,p=!0,g=n&HR?new Ud:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var _=e[f],b=t[f];if(r)var y=a?r(b,_,f,t,e,o):r(_,b,f,e,t,o);if(y!==void 0){if(y)continue;p=!1;break}if(g){if(!VR(t,function(w,E){if(!qR(g,E)&&(_===w||s(_,w,n,r,o)))return g.push(E)})){p=!1;break}}else if(!(_===b||s(_,b,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function GR(e){var t=-1,n=Array(e.size);return e.forEach(function(r,s){n[++t]=[s,r]}),n}function WR(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var KR=1,JR=2,YR="[object Boolean]",XR="[object Date]",ZR="[object Error]",QR="[object Map]",eL="[object Number]",tL="[object RegExp]",nL="[object Set]",iL="[object String]",rL="[object Symbol]",sL="[object ArrayBuffer]",oL="[object DataView]",w3=xi?xi.prototype:void 0,dm=w3?w3.valueOf:void 0;function aL(e,t,n,r,s,o,a){switch(n){case oL:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case sL:return!(e.byteLength!=t.byteLength||!o(new Bd(e),new Bd(t)));case YR:case XR:case eL:return hc(+e,+t);case ZR:return e.name==t.name&&e.message==t.message;case tL:case iL:return e==t+"";case QR:var l=GR;case nL:var c=r&KR;if(l||(l=WR),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=JR,a.set(e,t);var d=y3(l(e),l(t),r,s,o,a);return a.delete(e),d;case rL:if(dm)return dm.call(e)==dm.call(t)}return!1}var lL=1,cL=Object.prototype,uL=cL.hasOwnProperty;function dL(e,t,n,r,s,o){var a=n&lL,l=om(e),c=l.length,u=om(t),d=u.length;if(c!=d&&!a)return!1;for(var f=c;f--;){var p=l[f];if(!(a?p in t:uL.call(t,p)))return!1}var g=o.get(e),_=o.get(t);if(g&&_)return g==t&&_==e;var b=!0;o.set(e,t),o.set(t,e);for(var y=a;++f<c;){p=l[f];var w=e[p],E=t[p];if(r)var C=a?r(E,w,p,t,e,o):r(w,E,p,e,t,o);if(!(C===void 0?w===E||s(w,E,n,r,o):C)){b=!1;break}y||(y=p=="constructor")}if(b&&!y){var S=e.constructor,A=t.constructor;S!=A&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof A=="function"&&A instanceof A)&&(b=!1)}return o.delete(e),o.delete(t),b}var fL=1,C3="[object Arguments]",S3="[object Array]",$d="[object Object]",pL=Object.prototype,x3=pL.hasOwnProperty;function hL(e,t,n,r,s,o){var a=Hn(e),l=Hn(t),c=a?S3:xc(e),u=l?S3:xc(t);c=c==C3?$d:c,u=u==C3?$d:u;var d=c==$d,f=u==$d,p=c==u;if(p&&_c(e)){if(!_c(t))return!1;a=!0,d=!1}if(p&&!d)return o||(o=new Xi),a||Zg(e)?y3(e,t,n,r,s,o):aL(e,t,c,n,r,s,o);if(!(n&fL)){var g=d&&x3.call(e,"__wrapped__"),_=f&&x3.call(t,"__wrapped__");if(g||_){var b=g?e.value():e,y=_?t.value():t;return o||(o=new Xi),s(b,y,n,r,o)}}return p?(o||(o=new Xi),dL(e,t,n,r,s,o)):!1}function Vd(e,t,n,r,s){return e===t?!0:e==null||t==null||!vr(e)&&!vr(t)?e!==e&&t!==t:hL(e,t,n,r,Vd,s)}var gL=1,mL=2;function _L(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 Xi;if(r)var p=r(u,d,c,e,t,f);if(!(p===void 0?Vd(d,u,gL|mL,r,f):p))return!1}}return!0}function E3(e){return e===e&&!ei(e)}function vL(e){for(var t=bc(e),n=t.length;n--;){var r=t[n],s=e[r];t[n]=[r,s,E3(s)]}return t}function A3(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function bL(e){var t=vL(e);return t.length==1&&t[0][2]?A3(t[0][0],t[0][1]):function(n){return n===e||_L(n,e,t)}}function yL(e,t){return e!=null&&t in Object(e)}function wL(e,t,n){t=jd(t,e);for(var r=-1,s=t.length,o=!1;++r<s;){var a=Sc(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&&Kg(s)&&Ld(a,s)&&(Hn(e)||mc(e)))}function T3(e,t){return e!=null&&wL(e,t,yL)}var CL=1,SL=2;function xL(e,t){return Qg(e)&&E3(t)?A3(Sc(e),t):function(n){var r=Ei(n,e);return r===void 0&&r===t?T3(n,e):Vd(t,r,CL|SL)}}function EL(e){return function(t){return t==null?void 0:t[e]}}function AL(e){return function(t){return tm(t,e)}}function TL(e){return Qg(e)?EL(Sc(e)):AL(e)}function k3(e){return typeof e=="function"?e:e==null?qg:typeof e=="object"?Hn(e)?xL(e[0],e[1]):bL(e):TL(e)}function kL(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 PL=kL();const P3=PL;function OL(e,t){return e&&P3(e,t,bc)}function NL(e,t){return function(n,r){if(n==null)return n;if(!Oa(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 IL=NL(OL);const DL=IL;var RL=function(){return Ji.Date.now()};const fm=RL;var LL="Expected a function",ML=Math.max,FL=Math.min;function Ia(e,t,n){var r,s,o,a,l,c,u=0,d=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(LL);t=Vg(t)||0,ei(n)&&(d=!!n.leading,f="maxWait"in n,o=f?ML(Vg(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function g(P){var I=r,O=s;return r=s=void 0,u=P,a=e.apply(O,I),a}function _(P){return u=P,l=setTimeout(w,t),d?g(P):a}function b(P){var I=P-c,O=P-u,L=t-I;return f?FL(L,o-O):L}function y(P){var I=P-c,O=P-u;return c===void 0||I>=t||I<0||f&&O>=o}function w(){var P=fm();if(y(P))return E(P);l=setTimeout(w,b(P))}function E(P){return l=void 0,p&&r?g(P):(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:E(fm())}function A(){var P=fm(),I=y(P);if(r=arguments,s=this,c=P,I){if(l===void 0)return _(c);if(f)return clearTimeout(l),l=setTimeout(w,t),g(c)}return l===void 0&&(l=setTimeout(w,t)),a}return A.cancel=C,A.flush=S,A}function pm(e,t,n){(n!==void 0&&!hc(e[t],n)||n===void 0&&!(t in e))&&Gg(e,t,n)}function jL(e){return vr(e)&&Oa(e)}function hm(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function BL(e){return gc(e,yc(e))}function UL(e,t,n,r,s,o,a){var l=hm(e,n),c=hm(t,n),u=a.get(c);if(u){pm(e,n,u);return}var d=o?o(l,c,n+"",e,t,a):void 0,f=d===void 0;if(f){var p=Hn(c),g=!p&&_c(c),_=!p&&!g&&Zg(c);d=c,p||g||_?Hn(l)?d=l:jL(l)?d=Lw(l):g?(f=!1,d=e3(c,!0)):_?(f=!1,d=f3(c,!0)):d=[]:eD(c)||mc(c)?(d=l,mc(l)?d=BL(l):(!ei(l)||Dd(l))&&(d=p3(c))):f=!1}f&&(a.set(c,d),s(d,c,r,o,a),a.delete(c)),pm(e,n,d)}function O3(e,t,n,r,s){e!==t&&P3(t,function(o,a){if(s||(s=new Xi),ei(o))UL(e,t,a,n,O3,r,s);else{var l=r?r(hm(e,a),o,a+"",e,t,s):void 0;l===void 0&&(l=o),pm(e,a,l)}},yc)}var $L=Math.max,VL=Math.min;function qL(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var s=r-1;return n!==void 0&&(s=TO(n),s=n<0?$L(r+s,0):VL(s,r-1)),rN(e,k3(t),s,!0)}function zL(e,t){var n=-1,r=Oa(e)?Array(e.length):[];return DL(e,function(s,o,a){r[++n]=t(s,o,a)}),r}function HL(e,t){var n=Hn(e)?Tw:zL;return n(e,k3(t))}function GL(e,t){return im(HL(e,t),1)}function qd(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 Da(e,t){return Vd(e,t)}function Po(e){return e==null}function N3(e){return e===void 0}var WL=fN(function(e,t,n){O3(e,t,n)});const KL=WL;function I3(e,t,n,r){if(!ei(e))return e;t=jd(t,e);for(var s=-1,o=t.length,a=o-1,l=e;l!=null&&++s<o;){var c=Sc(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=ei(d)?d:Ld(t[s+1])?[]:{})}Wg(l,c,u),l=l[c]}return e}function JL(e,t,n){for(var r=-1,s=t.length,o={};++r<s;){var a=t[r],l=tm(e,a);n(l,a)&&I3(o,jd(a,e),l)}return o}function YL(e,t){return JL(e,t,function(n,r){return T3(e,r)})}var XL=WI(function(e,t){return e==null?{}:YL(e,t)});const D3=XL;function ZL(e,t,n){return e==null?e:I3(e,t,n)}const Zi=e=>e===void 0,ti=e=>typeof e=="boolean",Qt=e=>typeof e=="number",br=e=>typeof Element=="undefined"?!1:e instanceof Element,Ac=e=>Po(e),QL=e=>st(e)?!Number.isNaN(Number(e)):!1,eM=e=>Dt?window.requestAnimationFrame(e):setTimeout(e,16),tM=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),R3=e=>Object.keys(e),nM=e=>Object.entries(e),zd=(e,t,n)=>({get value(){return Ei(e,t,n)},set value(r){ZL(e,t,r)}});class iM extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Oo(e,t){throw new iM(`[${e}] ${t}`)}function Fpe(e,t){}const L3=(e="")=>e.split(" ").filter(t=>!!t.trim()),No=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Io=(e,t)=>{!e||!t.trim()||e.classList.add(...L3(t))},yr=(e,t)=>{!e||!t.trim()||e.classList.remove(...L3(t))},Ra=(e,t)=>{var n;if(!Dt||!e||!t)return"";let r=$n(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 Qi(e,t="px"){if(!e)return"";if(Qt(e)||QL(e))return`${e}${t}`;if(st(e))return e}let Hd;const rM=e=>{var t;if(!Dt)return 0;if(Hd!==void 0)return Hd;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),Hd=r-o,Hd};function sM(e,t){if(!Dt)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 oM=ke({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(N(),q("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"})]))}}),M3=oM,aM=ke({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(N(),q("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"})]))}}),gm=aM,lM=ke({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(N(),q("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=lM,uM=ke({name:"Check",__name:"check",setup(e){return(t,n)=>(N(),q("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"})]))}}),F3=uM,dM=ke({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(N(),q("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"})]))}}),mm=dM,fM=ke({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(N(),q("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"})]))}}),j3=fM,pM=ke({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(N(),q("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"})]))}}),Gd=pM,hM=ke({name:"Close",__name:"close",setup(e){return(t,n)=>(N(),q("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"})]))}}),La=hM,gM=ke({name:"Delete",__name:"delete",setup(e){return(t,n)=>(N(),q("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"})]))}}),mM=gM,_M=ke({name:"Document",__name:"document",setup(e){return(t,n)=>(N(),q("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"})]))}}),vM=_M,bM=ke({name:"Hide",__name:"hide",setup(e){return(t,n)=>(N(),q("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"})]))}}),yM=bM,wM=ke({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(N(),q("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=wM,CM=ke({name:"Loading",__name:"loading",setup(e){return(t,n)=>(N(),q("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"})]))}}),Ma=CM,SM=ke({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(N(),q("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"})]))}}),B3=SM,xM=ke({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(N(),q("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"})]))}}),U3=xM,EM=ke({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(N(),q("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"})]))}}),AM=EM,TM=ke({name:"View",__name:"view",setup(e){return(t,n)=>(N(),q("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"})]))}}),kM=TM,PM=ke({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(N(),q("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"})]))}}),vm=PM,OM=ke({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(N(),q("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"})]))}}),NM=OM;const $3="__epPropKey",Fe=e=>e,IM=e=>ct(e)&&!!e[$3],Wd=(e,t)=>{if(!ct(e)||IM(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),bt(e,"default")&&f.push(s),d||(d=f.includes(u))),a&&(d||(d=a(u))),!d&&f.length>0){const p=[...new Set(f)].map(g=>JSON.stringify(g)).join(", ");Kk(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[$3]:!0};return bt(e,"default")&&(c.default=s),c},pt=e=>qd(Object.entries(e).map(([t,n])=>[t,Wd(n,t)])),ns=Fe([String,Object,Function]),DM={Close:La},V3={Close:La,SuccessFilled:U3,InfoFilled:_m,WarningFilled:vm,CircleCloseFilled:j3},Kd={success:U3,warning:vm,error:j3,info:_m},q3={validating:Ma,success:mm,error:Gd},pn=(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},RM=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),LM=(e,t)=>(e.install=n=>{n.directive(t,e)},e),is=e=>(e.install=yt,e),MM=(...e)=>t=>{e.forEach(n=>{Ve(n)?n(t):n.value=t})},Do={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",bm="change",Tc=["","default","small","large"],FM=e=>["",...Tc].includes(e);var Jd=(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))(Jd||{});const jM=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),kc=e=>e,BM=["class","style"],UM=/^on[A-Z]/,$M=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=W(()=>((n==null?void 0:n.value)||[]).concat(BM)),s=Et();return W(s?()=>{var o;return qd(Object.entries((o=s.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(t&&UM.test(a))))}:()=>({}))},Fa=({from:e,replacement:t,scope:n,version:r,ref:s,type:o="API"},a)=>{qe(()=>T(a),l=>{},{immediate:!0})},z3=(e,t,n,r)=>{let s={offsetX:0,offsetY:0};const o=u=>{const d=u.clientX,f=u.clientY,{offsetX:p,offsetY:g}=s,_=e.value.getBoundingClientRect(),b=_.left,y=_.top,w=_.width,E=_.height,C=document.documentElement.clientWidth,S=document.documentElement.clientHeight,A=-b+p,P=-y+g,I=C-b-w+p,O=S-y-E+g,L=F=>{let H=p+F.clientX-d,V=g+F.clientY-f;r!=null&&r.value||(H=Math.min(Math.max(H,A),I),V=Math.min(Math.max(V,P),O)),s={offsetX:H,offsetY:V},e.value&&(e.value.style.transform=`translate(${Qi(H)}, ${Qi(V)})`)},R=()=>{document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",R)};document.addEventListener("mousemove",L),document.addEventListener("mouseup",R)},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 Rt(()=>{bo(()=>{n.value?a():l()})}),fn(()=>{l()}),{resetPosition:c}};var VM={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 qM=e=>(t,n)=>zM(t,n,T(e)),zM=(e,t,n)=>Ei(n,e,e).replace(/\{(\w+)\}/g,(r,s)=>{var o;return`${(o=t==null?void 0:t[s])!=null?o:`{${s}}`}`}),HM=e=>{const t=W(()=>T(e).name),n=Mt(e)?e:ne(e);return{lang:t,locale:n,t:qM(e)}},H3=Symbol("localeContextKey"),ja=e=>{const t=e||Qe(H3,ne());return HM(W(()=>t.value||VM))},Pc="el",GM="is-",Ro=(e,t,n,r,s)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),s&&(o+=`--${s}`),o},G3=Symbol("namespaceContextKey"),ym=e=>{const t=e||(Et()?Qe(G3,ne(Pc)):ne(Pc));return W(()=>T(t)||Pc)},nt=(e,t)=>{const n=ym(t);return{namespace:n,b:(b="")=>Ro(n.value,e,b,"",""),e:b=>b?Ro(n.value,e,"",b,""):"",m:b=>b?Ro(n.value,e,"","",b):"",be:(b,y)=>b&&y?Ro(n.value,e,b,y,""):"",em:(b,y)=>b&&y?Ro(n.value,e,"",b,y):"",bm:(b,y)=>b&&y?Ro(n.value,e,b,"",y):"",bem:(b,y,w)=>b&&y&&w?Ro(n.value,e,b,y,w):"",is:(b,...y)=>{const w=y.length>=1?y[0]:!0;return b&&w?`${GM}${b}`:""},cssVar:b=>{const y={};for(const w in b)b[w]&&(y[`--${n.value}-${w}`]=b[w]);return y},cssVarName:b=>`--${n.value}-${b}`,cssVarBlock:b=>{const y={};for(const w in b)b[w]&&(y[`--${n.value}-${e}-${w}`]=b[w]);return y},cssVarBlockName:b=>`--${n.value}-${e}-${b}`}},W3=(e,t={})=>{Mt(e)||Oo("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||nt("popup"),r=W(()=>n.bm("parent","hidden"));if(!Dt||No(document.body,r.value))return;let s=0,o=!1,a="0";const l=()=>{setTimeout(()=>{yr(document==null?void 0:document.body,r.value),o&&document&&(document.body.style.width=a)},200)};qe(e,c=>{if(!c){l();return}o=!No(document.body,r.value),o&&(a=document.body.style.width),s=rM(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,d=Ra(document.body,"overflowY");s>0&&(u||d==="scroll")&&o&&(document.body.style.width=`calc(100% - ${s}px)`),Io(document.body,r.value)}),ty(()=>l())},WM=Wd({type:Fe(Boolean),default:null}),KM=Wd({type:Fe(Function)}),K3=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],s={[e]:WM,[n]:KM};return{useModelToggle:({indicator:a,toggleReason:l,shouldHideWhenRouteChanges:c,shouldProceed:u,onShow:d,onHide:f})=>{const p=Et(),{emit:g}=p,_=p.props,b=W(()=>Ve(_[n])),y=W(()=>_[e]===null),w=I=>{a.value!==!0&&(a.value=!0,l&&(l.value=I),Ve(d)&&d(I))},E=I=>{a.value!==!1&&(a.value=!1,l&&(l.value=I),Ve(f)&&f(I))},C=I=>{if(_.disabled===!0||Ve(u)&&!u())return;const O=b.value&&Dt;O&&g(t,!0),(y.value||!O)&&w(I)},S=I=>{if(_.disabled===!0||!Dt)return;const O=b.value&&Dt;O&&g(t,!1),(y.value||!O)&&E(I)},A=I=>{ti(I)&&(_.disabled&&I?b.value&&g(t,!1):a.value!==I&&(I?w():E()))},P=()=>{a.value?S():C()};return qe(()=>_[e],A),c&&p.appContext.config.globalProperties.$route!==void 0&&qe(()=>we({},p.proxy.$route),()=>{c.value&&a.value&&S()}),Rt(()=>{A(_[e])}),{hide:S,show:C,toggle:P,hasUpdateHandler:b}},useModelToggleProps:s,useModelToggleEmits:r}};K3("modelValue");const J3=e=>{const t=Et();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",Ti="right",ii="left",wm="auto",Oc=[ni,Ai,Ti,ii],Ba="start",Nc="end",JM="clippingParents",Y3="viewport",Ic="popper",YM="reference",X3=Oc.reduce(function(e,t){return e.concat([t+"-"+Ba,t+"-"+Nc])},[]),Yd=[].concat(Oc,[wm]).reduce(function(e,t){return e.concat([t,t+"-"+Ba,t+"-"+Nc])},[]),XM="beforeRead",ZM="read",QM="afterRead",eF="beforeMain",tF="main",nF="afterMain",iF="beforeWrite",rF="write",sF="afterWrite",oF=[XM,ZM,QM,eF,tF,nF,iF,rF,sF];function wr(e){return e?(e.nodeName||"").toLowerCase():null}function er(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ua(e){var t=er(e).Element;return e instanceof t||e instanceof Element}function ki(e){var t=er(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cm(e){if(typeof ShadowRoot=="undefined")return!1;var t=er(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function aF(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];!ki(o)||!wr(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 lF(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},{});!ki(s)||!wr(s)||(Object.assign(s.style,l),Object.keys(o).forEach(function(c){s.removeAttribute(c)}))})}}var Z3={name:"applyStyles",enabled:!0,phase:"write",fn:aF,effect:lF,requires:["computeStyles"]};function Cr(e){return e.split("-")[0]}var Lo=Math.max,Xd=Math.min,$a=Math.round;function Va(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,s=1;if(ki(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=$a(n.width)/a||1),o>0&&(s=$a(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 Sm(e){var t=Va(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 Q3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Cm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function rs(e){return er(e).getComputedStyle(e)}function cF(e){return["table","td","th"].indexOf(wr(e))>=0}function Ms(e){return((Ua(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zd(e){return wr(e)==="html"?e:e.assignedSlot||e.parentNode||(Cm(e)?e.host:null)||Ms(e)}function e6(e){return!ki(e)||rs(e).position==="fixed"?null:e.offsetParent}function uF(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ki(e)){var r=rs(e);if(r.position==="fixed")return null}var s=Zd(e);for(Cm(s)&&(s=s.host);ki(s)&&["html","body"].indexOf(wr(s))<0;){var o=rs(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 Dc(e){for(var t=er(e),n=e6(e);n&&cF(n)&&rs(n).position==="static";)n=e6(n);return n&&(wr(n)==="html"||wr(n)==="body"&&rs(n).position==="static")?t:n||uF(e)||t}function xm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rc(e,t,n){return Lo(e,Xd(t,n))}function dF(e,t,n){var r=Rc(e,t,n);return r>n?n:r}function t6(){return{top:0,right:0,bottom:0,left:0}}function n6(e){return Object.assign({},t6(),e)}function i6(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var fF=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,n6(typeof e!="number"?e:i6(e,Oc))};function pF(e){var t,n=e.state,r=e.name,s=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Cr(n.placement),c=xm(l),u=[ii,Ti].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!a)){var f=fF(s.padding,n),p=Sm(o),g=c==="y"?ni:ii,_=c==="y"?Ai:Ti,b=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],w=Dc(o),E=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,C=b/2-y/2,S=f[g],A=E-p[d]-f[_],P=E/2-p[d]/2+C,I=Rc(S,P,A),O=c;n.modifiersData[r]=(t={},t[O]=I,t.centerOffset=I-P,t)}}function hF(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)||!Q3(t.elements.popper,s)||(t.elements.arrow=s))}var gF={name:"arrow",enabled:!0,phase:"main",fn:pF,effect:hF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qa(e){return e.split("-")[1]}var mF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _F(e){var t=e.x,n=e.y,r=window,s=r.devicePixelRatio||1;return{x:$a(t*s)/s||0,y:$a(n*s)/s||0}}function r6(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,p=a.x,g=p===void 0?0:p,_=a.y,b=_===void 0?0:_,y=typeof d=="function"?d({x:g,y:b}):{x:g,y:b};g=y.x,b=y.y;var w=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),C=ii,S=ni,A=window;if(u){var P=Dc(n),I="clientHeight",O="clientWidth";if(P===er(n)&&(P=Ms(n),rs(P).position!=="static"&&l==="absolute"&&(I="scrollHeight",O="scrollWidth")),P=P,s===ni||(s===ii||s===Ti)&&o===Nc){S=Ai;var L=f&&P===A&&A.visualViewport?A.visualViewport.height:P[I];b-=L-r.height,b*=c?1:-1}if(s===ii||(s===ni||s===Ai)&&o===Nc){C=Ti;var R=f&&P===A&&A.visualViewport?A.visualViewport.width:P[O];g-=R-r.width,g*=c?1:-1}}var F=Object.assign({position:l},u&&mF),H=d===!0?_F({x:g,y:b}):{x:g,y:b};if(g=H.x,b=H.y,c){var V;return Object.assign({},F,(V={},V[S]=E?"0":"",V[C]=w?"0":"",V.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",V))}return Object.assign({},F,(t={},t[S]=E?b+"px":"",t[C]=w?g+"px":"",t.transform="",t))}function vF(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:Cr(t.placement),variation:qa(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,r6(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,r6(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 s6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vF,data:{}},Qd={passive:!0};function bF(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=er(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,Qd)}),l&&c.addEventListener("resize",n.update,Qd),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Qd)}),l&&c.removeEventListener("resize",n.update,Qd)}}var o6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bF,data:{}},yF={left:"right",right:"left",bottom:"top",top:"bottom"};function ef(e){return e.replace(/left|right|bottom|top/g,function(t){return yF[t]})}var wF={start:"end",end:"start"};function a6(e){return e.replace(/start|end/g,function(t){return wF[t]})}function Em(e){var t=er(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Am(e){return Va(Ms(e)).left+Em(e).scrollLeft}function CF(e){var t=er(e),n=Ms(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+Am(e),y:l}}function SF(e){var t,n=Ms(e),r=Em(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=Lo(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Lo(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-r.scrollLeft+Am(e),c=-r.scrollTop;return rs(s||n).direction==="rtl"&&(l+=Lo(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}function Tm(e){var t=rs(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function l6(e){return["html","body","#document"].indexOf(wr(e))>=0?e.ownerDocument.body:ki(e)&&Tm(e)?e:l6(Zd(e))}function Lc(e,t){var n;t===void 0&&(t=[]);var r=l6(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=er(r),a=s?[o].concat(o.visualViewport||[],Tm(r)?r:[]):r,l=t.concat(a);return s?l:l.concat(Lc(Zd(a)))}function km(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xF(e){var t=Va(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 c6(e,t){return t===Y3?km(CF(e)):Ua(t)?xF(t):km(SF(Ms(e)))}function EF(e){var t=Lc(Zd(e)),n=["absolute","fixed"].indexOf(rs(e).position)>=0,r=n&&ki(e)?Dc(e):e;return Ua(r)?t.filter(function(s){return Ua(s)&&Q3(s,r)&&wr(s)!=="body"}):[]}function AF(e,t,n){var r=t==="clippingParents"?EF(e):[].concat(t),s=[].concat(r,[n]),o=s[0],a=s.reduce(function(l,c){var u=c6(e,c);return l.top=Lo(u.top,l.top),l.right=Xd(u.right,l.right),l.bottom=Xd(u.bottom,l.bottom),l.left=Lo(u.left,l.left),l},c6(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 u6(e){var t=e.reference,n=e.element,r=e.placement,s=r?Cr(r):null,o=r?qa(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 Ti: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?xm(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case Ba:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Nc:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Mc(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?JM:o,l=n.rootBoundary,c=l===void 0?Y3:l,u=n.elementContext,d=u===void 0?Ic:u,f=n.altBoundary,p=f===void 0?!1:f,g=n.padding,_=g===void 0?0:g,b=n6(typeof _!="number"?_:i6(_,Oc)),y=d===Ic?YM:Ic,w=e.rects.popper,E=e.elements[p?y:d],C=AF(Ua(E)?E:E.contextElement||Ms(e.elements.popper),a,c),S=Va(e.elements.reference),A=u6({reference:S,element:w,strategy:"absolute",placement:s}),P=km(Object.assign({},w,A)),I=d===Ic?P:S,O={top:C.top-I.top+b.top,bottom:I.bottom-C.bottom+b.bottom,left:C.left-I.left+b.left,right:I.right-C.right+b.right},L=e.modifiersData.offset;if(d===Ic&&L){var R=L[s];Object.keys(O).forEach(function(F){var H=[Ti,Ai].indexOf(F)>=0?1:-1,V=[ni,Ai].indexOf(F)>=0?"y":"x";O[F]+=R[V]*H})}return O}function TF(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?Yd:c,d=qa(r),f=d?l?X3:X3.filter(function(_){return qa(_)===d}):Oc,p=f.filter(function(_){return u.indexOf(_)>=0});p.length===0&&(p=f);var g=p.reduce(function(_,b){return _[b]=Mc(e,{placement:b,boundary:s,rootBoundary:o,padding:a})[Cr(b)],_},{});return Object.keys(g).sort(function(_,b){return g[_]-g[b]})}function kF(e){if(Cr(e)===wm)return[];var t=ef(e);return[a6(e),t,a6(t)]}function PF(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,p=n.altBoundary,g=n.flipVariations,_=g===void 0?!0:g,b=n.allowedAutoPlacements,y=t.options.placement,w=Cr(y),E=w===y,C=c||(E||!_?[ef(y)]:kF(y)),S=[y].concat(C).reduce(function(oe,Ce){return oe.concat(Cr(Ce)===wm?TF(t,{placement:Ce,boundary:d,rootBoundary:f,padding:u,flipVariations:_,allowedAutoPlacements:b}):Ce)},[]),A=t.rects.reference,P=t.rects.popper,I=new Map,O=!0,L=S[0],R=0;R<S.length;R++){var F=S[R],H=Cr(F),V=qa(F)===Ba,ae=[ni,Ai].indexOf(H)>=0,ce=ae?"width":"height",U=Mc(t,{placement:F,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),J=ae?V?Ti:ii:V?Ai:ni;A[ce]>P[ce]&&(J=ef(J));var Q=ef(J),X=[];if(o&&X.push(U[H]<=0),l&&X.push(U[J]<=0,U[Q]<=0),X.every(function(oe){return oe})){L=F,O=!1;break}I.set(F,X)}if(O)for(var j=_?3:1,ye=function(oe){var Ce=S.find(function(me){var z=I.get(me);if(z)return z.slice(0,oe).every(function(Z){return Z})});if(Ce)return L=Ce,"break"},pe=j;pe>0;pe--){var ie=ye(pe);if(ie==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}var OF={name:"flip",enabled:!0,phase:"main",fn:PF,requiresIfExists:["offset"],data:{_skip:!1}};function d6(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 f6(e){return[ni,Ti,Ai,ii].some(function(t){return e[t]>=0})}function NF(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,a=Mc(t,{elementContext:"reference"}),l=Mc(t,{altBoundary:!0}),c=d6(a,r),u=d6(l,s,o),d=f6(c),f=f6(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 IF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:NF};function DF(e,t,n){var r=Cr(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,Ti].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function RF(e){var t=e.state,n=e.options,r=e.name,s=n.offset,o=s===void 0?[0,0]:s,a=Yd.reduce(function(d,f){return d[f]=DF(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 LF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RF};function MF(e){var t=e.state,n=e.name;t.modifiersData[n]=u6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var p6={name:"popperOffsets",enabled:!0,phase:"read",fn:MF,data:{}};function FF(e){return e==="x"?"y":"x"}function jF(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,p=n.tether,g=p===void 0?!0:p,_=n.tetherOffset,b=_===void 0?0:_,y=Mc(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),w=Cr(t.placement),E=qa(t.placement),C=!E,S=xm(w),A=FF(S),P=t.modifiersData.popperOffsets,I=t.rects.reference,O=t.rects.popper,L=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,R=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(P){if(o){var V,ae=S==="y"?ni:ii,ce=S==="y"?Ai:Ti,U=S==="y"?"height":"width",J=P[S],Q=J+y[ae],X=J-y[ce],j=g?-O[U]/2:0,ye=E===Ba?I[U]:O[U],pe=E===Ba?-O[U]:-I[U],ie=t.elements.arrow,oe=g&&ie?Sm(ie):{width:0,height:0},Ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:t6(),me=Ce[ae],z=Ce[ce],Z=Rc(0,I[U],oe[U]),_e=C?I[U]/2-j-Z-me-R.mainAxis:ye-Z-me-R.mainAxis,Pe=C?-I[U]/2+j+Z+z+R.mainAxis:pe+Z+z+R.mainAxis,Re=t.elements.arrow&&Dc(t.elements.arrow),Ke=Re?S==="y"?Re.clientTop||0:Re.clientLeft||0:0,B=(V=F==null?void 0:F[S])!=null?V:0,K=J+_e-B-Ke,se=J+Pe-B,Ae=Rc(g?Xd(Q,K):Q,J,g?Lo(X,se):X);P[S]=Ae,H[S]=Ae-J}if(l){var de,fe=S==="x"?ni:ii,Se=S==="x"?Ai:Ti,Te=P[A],Oe=A==="y"?"height":"width",ve=Te+y[fe],$e=Te-y[Se],he=[ni,ii].indexOf(w)!==-1,le=(de=F==null?void 0:F[A])!=null?de:0,Le=he?ve:Te-I[Oe]-O[Oe]-le+R.altAxis,Ye=he?Te+I[Oe]+O[Oe]-le-R.altAxis:$e,Ct=g&&he?dF(Le,Te,Ye):Rc(g?Le:ve,Te,g?Ye:$e);P[A]=Ct,H[A]=Ct-Te}t.modifiersData[r]=H}}var BF={name:"preventOverflow",enabled:!0,phase:"main",fn:jF,requiresIfExists:["offset"]};function UF(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $F(e){return e===er(e)||!ki(e)?Em(e):UF(e)}function VF(e){var t=e.getBoundingClientRect(),n=$a(t.width)/e.offsetWidth||1,r=$a(t.height)/e.offsetHeight||1;return n!==1||r!==1}function qF(e,t,n){n===void 0&&(n=!1);var r=ki(t),s=ki(t)&&VF(t),o=Ms(t),a=Va(e,s),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((wr(t)!=="body"||Tm(o))&&(l=$F(t)),ki(t)?(c=Va(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Am(o))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function zF(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 HF(e){var t=zF(e);return oF.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function GF(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function WF(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 h6={placement:"bottom",modifiers:[],strategy:"absolute"};function g6(){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 Pm(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?h6:s;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},h6,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(b){var y=typeof b=="function"?b(u.options):b;_(),u.options=Object.assign({},o,u.options,y),u.scrollParents={reference:Ua(a)?Lc(a):a.contextElement?Lc(a.contextElement):[],popper:Lc(l)};var w=HF(WF([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(E){return E.enabled}),g(),p.update()},forceUpdate:function(){if(!f){var b=u.elements,y=b.reference,w=b.popper;if(g6(y,w)){u.rects={reference:qF(y,Dc(w),u.options.strategy==="fixed"),popper:Sm(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var C=u.orderedModifiers[E],S=C.fn,A=C.options,P=A===void 0?{}:A,I=C.name;typeof S=="function"&&(u=S({state:u,options:P,name:I,instance:p})||u)}}}},update:GF(function(){return new Promise(function(b){p.forceUpdate(),b(u)})}),destroy:function(){_(),f=!0}};if(!g6(a,l))return p;p.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function g(){u.orderedModifiers.forEach(function(b){var y=b.name,w=b.options,E=w===void 0?{}:w,C=b.effect;if(typeof C=="function"){var S=C({state:u,name:y,instance:p,options:E}),A=function(){};d.push(S||A)}})}function _(){d.forEach(function(b){return b()}),d=[]}return p}}Pm();var KF=[o6,p6,s6,Z3];Pm({defaultModifiers:KF});var JF=[o6,p6,s6,Z3,LF,OF,BF,gF,IF],YF=Pm({defaultModifiers:JF});const XF=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const u=ZF(c);Object.assign(a.value,u)},requires:["computeStyles"]},s=W(()=>{const{onFirstUpdate:c,placement:u,strategy:d,modifiers:f}=T(n);return{onFirstUpdate:c,placement:u||"bottom",strategy:d||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),o=bn(),a=ne({styles:{popper:{position:T(s).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return qe(s,c=>{const u=T(o);u&&u.setOptions(c)},{deep:!0}),qe([e,t],([c,u])=>{l(),!(!c||!u)&&(o.value=YF(c,u,T(s)))}),fn(()=>{l()}),{state:W(()=>{var c;return we({},((c=T(o))==null?void 0:c.state)||{})}),styles:W(()=>T(a).styles),attributes:W(()=>T(a).attributes),update:()=>{var c;return(c=T(o))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=T(o))==null?void 0:c.forceUpdate()},instanceRef:W(()=>T(o))}};function ZF(e){const t=Object.keys(e.elements),n=qd(t.map(s=>[s,e.styles[s]||{}])),r=qd(t.map(s=>[s,e.attributes[s]]));return{styles:n,attributes:r}}const Om=e=>{if(!e)return{onClick:yt,onMousedown:yt,onMouseup:yt};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 m6(){let e;const t=(r,s)=>{n(),e=window.setTimeout(r,s)},n=()=>window.clearTimeout(e);return fc(()=>n()),{registerTimeout:t,cancelTimeout:n}}const _6={prefix:Math.floor(Math.random()*1e4),current:0},QF=Symbol("elIdInjection"),v6=()=>Et()?Qe(QF,_6):_6,Sr=e=>{const t=v6(),n=ym();return W(()=>T(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let za=[];const b6=e=>{const t=e;t.key===Do.esc&&za.forEach(n=>n(t))},ej=e=>{Rt(()=>{za.length===0&&document.addEventListener("keydown",b6),Dt&&za.push(e)}),fn(()=>{za=za.filter(t=>t!==e),za.length===0&&Dt&&document.removeEventListener("keydown",b6)})};let y6;const w6=()=>{const e=ym(),t=v6(),n=W(()=>`${e.value}-popper-container-${t.prefix}`),r=W(()=>`#${n.value}`);return{id:n,selector:r}},tj=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},nj=()=>{const{id:e,selector:t}=w6();return tc(()=>{Dt&&(!y6||!document.body.querySelector(t.value))&&(y6=tj(e.value))}),{id:e,selector:t}},ij=pt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),rj=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:s})=>{const{registerTimeout:o}=m6(),{registerTimeout:a,cancelTimeout:l}=m6();return{onOpen:d=>{o(()=>{r(d);const f=T(n);Qt(f)&&f>0&&a(()=>{s(d)},f)},T(e))},onClose:d=>{l(),o(()=>{s(d)},T(t))}}},C6=Symbol("elForwardRef"),sj=e=>{ln(C6,{setForwardRef:n=>{e.value=n}})},oj=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),S6={current:0},x6=ne(0),E6=2e3,A6=Symbol("elZIndexContextKey"),T6=Symbol("zIndexContextKey"),Nm=e=>{const t=Et()?Qe(A6,S6):S6,n=e||(Et()?Qe(T6,void 0):void 0),r=W(()=>{const a=T(n);return Qt(a)?a:E6}),s=W(()=>r.value+x6.value),o=()=>(t.current++,x6.value=t.current,s.value);return!Dt&&Qe(A6),{initialZIndex:r,currentZIndex:s,nextZIndex:o}};function aj(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 Fs=Wd({type:String,values:Tc,required:!1}),k6=Symbol("size"),lj=()=>{const e=Qe(k6,{});return W(()=>T(e.size)||"")};function P6(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:s}={}){const o=Et(),{emit:a}=o,l=bn(),c=ne(!1),u=p=>{Ve(t)&&t(p)||c.value||(c.value=!0,a("focus",p),n==null||n())},d=p=>{var g;Ve(r)&&r(p)||p.relatedTarget&&((g=l.value)!=null&&g.contains(p.relatedTarget))||(c.value=!1,a("blur",p),s==null||s())},f=()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&l.value!==document.activeElement||(g=e.value)==null||g.focus()};return qe(l,p=>{p&&p.setAttribute("tabindex","-1")}),Si(l,"focus",u,!0),Si(l,"blur",d,!0),Si(l,"click",f,!0),{isFocused:c,wrapperRef:l,handleFocus:u,handleBlur:d}}function O6({afterComposition:e,emit:t}){const n=ne(!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=!jM(d)},o=l=>{t==null||t("compositionend",l),n.value&&(n.value=!1,ht(()=>e(l)))};return{isComposing:n,handleComposition:l=>{l.type==="compositionend"?o(l):s(l)},handleCompositionStart:r,handleCompositionUpdate:s,handleCompositionEnd:o}}const N6=Symbol("emptyValuesContextKey"),cj=["",void 0,null],uj=void 0,dj=pt({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Ve(e)?!e():!e}}),fj=(e,t)=>{const n=Et()?Qe(N6,ne({})):ne({}),r=W(()=>e.emptyValues||n.value.emptyValues||cj),s=W(()=>Ve(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Ve(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:uj),o=a=>r.value.includes(a);return r.value.includes(s.value),{emptyValues:r,valueOnClear:s,isEmptyValue:o}},pj=pt({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),js=e=>D3(pj,e),I6=Symbol(),tf=ne();function nf(e,t=void 0){const n=Et()?Qe(I6,tf):tf;return e?W(()=>{var r,s;return(s=(r=n.value)==null?void 0:r[e])!=null?s:t}):n}function Im(e,t){const n=nf(),r=nt(e,W(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||Pc})),s=ja(W(()=>{var l;return(l=n.value)==null?void 0:l.locale})),o=Nm(W(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||E6})),a=W(()=>{var l;return T(t)||((l=n.value)==null?void 0:l.size)||""});return hj(W(()=>T(n)||{})),{ns:r,locale:s,zIndex:o,size:a}}const hj=(e,t,n=!1)=>{var r;const s=!!Et(),o=s?nf():void 0,a=(r=t==null?void 0:t.provide)!=null?r:s?ln:void 0;if(!a)return;const l=W(()=>{const c=T(e);return o!=null&&o.value?gj(o.value,c):c});return a(I6,l),a(H3,W(()=>l.value.locale)),a(G3,W(()=>l.value.namespace)),a(T6,W(()=>l.value.zIndex)),a(k6,{size:W(()=>l.value.size||"")}),a(N6,W(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(n||!tf.value)&&(tf.value=l.value),l},gj=(e,t)=>{const n=[...new Set([...R3(e),...R3(t)])],r={};for(const s of n)r[s]=t[s]!==void 0?t[s]:e[s];return r},xr={};var ft=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const mj=pt({size:{type:Fe([Number,String])},color:{type:String}}),_j=ke(je(we({},ke({name:"ElIcon",inheritAttrs:!1})),{props:mj,setup(e){const t=e,n=nt("icon"),r=W(()=>{const{size:s,color:o}=t;return!s&&!o?{}:{fontSize:Zi(s)?void 0:Qi(s),"--color":o}});return(s,o)=>(N(),q("i",An({class:T(n).b(),style:T(r)},s.$attrs),[Ie(s.$slots,"default")],16))}}));var vj=ft(_j,[["__file","icon.vue"]]);const Ft=pn(vj),Ha=Symbol("formContextKey"),Mo=Symbol("formItemContextKey"),Er=(e,t={})=>{const n=ne(void 0),r=t.prop?n:J3("size"),s=t.global?n:lj(),o=t.form?{size:void 0}:Qe(Ha,void 0),a=t.formItem?{size:void 0}:Qe(Mo,void 0);return W(()=>r.value||T(e)||(a==null?void 0:a.size)||(o==null?void 0:o.size)||s.value||"")},ss=e=>{const t=J3("disabled"),n=Qe(Ha,void 0);return W(()=>t.value||T(e)||(n==null?void 0:n.disabled)||!1)},Fo=()=>{const e=Qe(Ha,void 0),t=Qe(Mo,void 0);return{form:e,formItem:t}},Fc=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=ne(!1)),r||(r=ne(!1));const s=ne();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 Rt(()=>{o=qe([wi(e,"id"),n],([l,c])=>{const u=l!=null?l:c?void 0:Sr().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})}),_o(()=>{o&&o(),t!=null&&t.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:a,inputId:s}},bj=pt({size:{type:String,values:Tc},disabled:Boolean}),yj=pt(je(we({},bj),{model:Object,rules:{type:Fe(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]}})),wj={validate:(e,t,n)=>(Be(e)||st(e))&&ti(t)&&st(n)};function Cj(){const e=ne([]),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 rf=(e,t)=>{const n=Yi(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},Sj=ke(je(we({},ke({name:"ElForm"})),{props:yj,emits:wj,setup(e,{expose:t,emit:n}){const r=e,s=[],o=Er(),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&&rf(s,C).forEach(S=>S.resetField())},p=(C=[])=>{rf(s,C).forEach(S=>S.clearValidate())},g=W(()=>!!r.model),_=C=>{if(s.length===0)return[];const S=rf(s,C);return S.length?S:[]},b=C=>at(this,null,function*(){return w(void 0,C)}),y=(...S)=>at(this,[...S],function*(C=[]){if(!g.value)return!1;const A=_(C);if(A.length===0)return!0;let P={};for(const I of A)try{yield I.validate("")}catch(O){P=we(we({},P),O)}return Object.keys(P).length===0?!0:Promise.reject(P)}),w=(...A)=>at(this,[...A],function*(C=[],S){const P=!Ve(S);try{const I=yield y(C);return I===!0&&(yield S==null?void 0:S(I)),I}catch(I){if(I instanceof Error)throw I;const O=I;return r.scrollToError&&E(Object.keys(O)[0]),yield S==null?void 0:S(!1,O),P&&Promise.reject(O)}}),E=C=>{var S;const A=rf(s,C)[0];A&&((S=A.$el)==null||S.scrollIntoView(r.scrollIntoViewOptions))};return qe(()=>r.rules,()=>{r.validateOnRuleChange&&b().catch(C=>void 0)},{deep:!0}),ln(Ha,Dn(we(je(we({},hr(r)),{emit:n,resetFields:f,clearValidate:p,validateField:w,getField:c,addField:u,removeField:d}),Cj()))),t({validate:b,validateField:w,resetFields:f,clearValidate:p,scrollToField:E,fields:s}),(C,S)=>(N(),q("form",{class:Y(T(l))},[Ie(C.$slots,"default")],2))}}));var xj=ft(Sj,[["__file","form.vue"]]);function jo(){return jo=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},jo.apply(this,arguments)}function Ej(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jc(e,t)}function Dm(e){return Dm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dm(e)}function jc(e,t){return jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},jc(e,t)}function Aj(){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 sf(e,t,n){return Aj()?sf=Reflect.construct.bind():sf=function(s,o,a){var l=[null];l.push.apply(l,o);var c=Function.bind.apply(s,l),u=new c;return a&&jc(u,a.prototype),u},sf.apply(null,arguments)}function Tj(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Rm(e){var t=typeof Map=="function"?new Map:void 0;return Rm=function(r){if(r===null||!Tj(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 sf(r,arguments,Dm(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),jc(s,r)},Rm(e)}var kj=/%[sdj%]/g,Pj=function(){};function Lm(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(kj,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 Oj(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function hn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Oj(t)&&typeof e=="string"&&!e)}function Nj(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 D6(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 Ij(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var R6=function(e){Ej(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}(Rm(Error));function Dj(e,t,n,r,s){if(t.first){var o=new Promise(function(p,g){var _=function(w){return r(w),w.length?g(new R6(w,Lm(w))):p(s)},b=Ij(e);D6(b,n,_)});return o.catch(function(p){return p}),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(p,g){var _=function(y){if(d.push.apply(d,y),u++,u===c)return r(d),d.length?g(new R6(d,Lm(d))):p(s)};l.length||(r(d),p(s)),l.forEach(function(b){var y=e[b];a.indexOf(b)!==-1?D6(y,n,_):Nj(y,n,_)})});return f.catch(function(p){return p}),f}function Rj(e){return!!(e&&e.message!==void 0)}function Lj(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function L6(e,t){return function(n){var r;return e.fullFields?r=Lj(t,e.fullFields):r=t[n.field||e.fullField],Rj(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 M6(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]=jo({},e[n],r):e[n]=r}}return e}var F6=function(t,n,r,s,o,a){t.required&&(!r.hasOwnProperty(t.field)||hn(n,a||t.type))&&s.push(ui(o.messages.required,t.fullField))},Mj=function(t,n,r,s,o){(/^\s+$/.test(n)||n==="")&&s.push(ui(o.messages.whitespace,t.fullField))},of,Fj=function(){if(of)return of;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,p=c.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",_="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',E="(?:"+u+"|www\\.)"+d+"(?:localhost|"+f+"|"+p+"|"+g+_+b+")"+y+w;return of=new RegExp("(?:^"+E+"$)","i"),of},j6={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},Bc={integer:function(t){return Bc.number(t)&&parseInt(t,10)===t},float:function(t){return Bc.number(t)&&!Bc.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"&&!Bc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(j6.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Fj())},hex:function(t){return typeof t=="string"&&!!t.match(j6.hex)}},jj=function(t,n,r,s,o){if(t.required&&n===void 0){F6(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?Bc[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))},Bj=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,p=typeof n=="number",g=typeof n=="string",_=Array.isArray(n);if(p?f="number":g?f="string":_&&(f="array"),!f)return!1;_&&(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))},Ga="enum",Uj=function(t,n,r,s,o){t[Ga]=Array.isArray(t[Ga])?t[Ga]:[],t[Ga].indexOf(n)===-1&&s.push(ui(o.messages[Ga],t.fullField,t[Ga].join(", ")))},$j=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:F6,whitespace:Mj,type:jj,range:Bj,enum:Uj,pattern:$j},Vj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(hn(n,"string")&&!t.required)return r();At.required(t,n,s,a,o,"string"),hn(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)},qj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(hn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&At.type(t,n,s,a,o)}r(a)},zj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),hn(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)},Hj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(hn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&At.type(t,n,s,a,o)}r(a)},Gj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(hn(n)&&!t.required)return r();At.required(t,n,s,a,o),hn(n)||At.type(t,n,s,a,o)}r(a)},Wj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(hn(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)},Kj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(hn(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)},Jj=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)},Yj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(hn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&At.type(t,n,s,a,o)}r(a)},Xj="enum",Zj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(hn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&At[Xj](t,n,s,a,o)}r(a)},Qj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(hn(n,"string")&&!t.required)return r();At.required(t,n,s,a,o),hn(n,"string")||At.pattern(t,n,s,a,o)}r(a)},eB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(hn(n,"date")&&!t.required)return r();if(At.required(t,n,s,a,o),!hn(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)},tB=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)},Mm=function(t,n,r,s,o){var a=t.type,l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(hn(n,a)&&!t.required)return r();At.required(t,n,s,l,o,a),hn(n,a)||At.type(t,n,s,l,o)}r(l)},nB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(hn(n)&&!t.required)return r();At.required(t,n,s,a,o)}r(a)},Uc={string:Vj,method:qj,number:zj,boolean:Hj,regexp:Gj,integer:Wj,float:Kj,array:Jj,object:Yj,enum:Zj,pattern:Qj,date:eB,url:Mm,hex:Mm,email:Mm,required:tB,any:nB};function Fm(){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 jm=Fm(),$c=function(){function e(n){this.rules=null,this._messages=jm,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=M6(Fm(),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(b){var y=[],w={};function E(S){if(Array.isArray(S)){var A;y=(A=y).concat.apply(A,S)}else y.push(S)}for(var C=0;C<b.length;C++)E(b[C]);y.length?(w=Lm(y),u(y,w)):u(null,l)}if(c.messages){var f=this.messages();f===jm&&(f=Fm()),M6(f,c.messages),c.messages=f}else c.messages=this.messages();var p={},g=c.keys||Object.keys(this.rules);g.forEach(function(b){var y=a.rules[b],w=l[b];y.forEach(function(E){var C=E;typeof C.transform=="function"&&(l===r&&(l=jo({},l)),w=l[b]=C.transform(w)),typeof C=="function"?C={validator:C}:C=jo({},C),C.validator=a.getValidationMethod(C),C.validator&&(C.field=b,C.fullField=C.fullField||b,C.type=a.getType(C),p[b]=p[b]||[],p[b].push({rule:C,value:w,source:l,field:b}))})});var _={};return Dj(p,c,function(b,y){var w=b.rule,E=(w.type==="object"||w.type==="array")&&(typeof w.fields=="object"||typeof w.defaultField=="object");E=E&&(w.required||!w.required&&b.value),w.field=b.field;function C(P,I){return jo({},I,{fullField:w.fullField+"."+P,fullFields:w.fullFields?[].concat(w.fullFields,[P]):[P]})}function S(P){P===void 0&&(P=[]);var I=Array.isArray(P)?P:[P];!c.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&w.message!==void 0&&(I=[].concat(w.message));var O=I.map(L6(w,l));if(c.first&&O.length)return _[w.field]=1,y(O);if(!E)y(O);else{if(w.required&&!b.value)return w.message!==void 0?O=[].concat(w.message).map(L6(w,l)):c.error&&(O=[c.error(w,ui(c.messages.required,w.field))]),y(O);var L={};w.defaultField&&Object.keys(b.value).map(function(H){L[H]=w.defaultField}),L=jo({},L,b.rule.fields);var R={};Object.keys(L).forEach(function(H){var V=L[H],ae=Array.isArray(V)?V:[V];R[H]=ae.map(C.bind(null,H))});var F=new e(R);F.messages(c.messages),b.rule.options&&(b.rule.options.messages=c.messages,b.rule.options.error=c.error),F.validate(b.value,b.rule.options||c,function(H){var V=[];O&&O.length&&V.push.apply(V,O),H&&H.length&&V.push.apply(V,H),y(V.length?V:null)})}}var A;if(w.asyncValidator)A=w.asyncValidator(w,b.value,S,b.source,c);else if(w.validator){try{A=w.validator(w,b.value,S,b.source,c)}catch(P){console.error==null||console.error(P),c.suppressValidatorError||setTimeout(function(){throw P},0),S(P.message)}A===!0?S():A===!1?S(typeof w.message=="function"?w.message(w.fullField||w.field):w.message||(w.fullField||w.field)+" fails"):A instanceof Array?S(A):A instanceof Error&&S(A.message)}A&&A.then&&A.then(function(){return S()},function(P){return S(P)})},function(b){d(b)},l)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Uc.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"?Uc.required:Uc[this.getType(r)]||void 0},e}();$c.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Uc[t]=n},$c.warning=Pj,$c.messages=jm,$c.validators=Uc;const iB=["","error","validating","success"],rB=pt({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Fe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Fe([Object,Array])},error:String,validateStatus:{type:String,values:iB},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Tc}}),B6="ElLabelWrap";var sB=ke({name:B6,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Qe(Ha,void 0),r=Qe(Mo);r||Oo(B6,"usage: <el-form-item><label-wrap /></el-form-item>");const s=nt("form"),o=ne(),a=ne(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")=>{ht(()=>{t.default&&e.isAutoWidth&&(d==="update"?a.value=l():d==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},u=()=>c("update");return Rt(()=>{u()}),fn(()=>{c("remove")}),nc(()=>u()),qe(a,(d,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,f))}),ci(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:p}=e;if(p){const g=n==null?void 0:n.autoLabelWidth,_=r==null?void 0:r.hasLabel,b={};if(_&&g&&g!=="auto"){const y=Math.max(0,Number.parseInt(g,10)-a.value),E=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";y&&(b[E]=`${y}px`)}return te("div",{ref:o,class:[s.be("item","label-wrap")],style:b},[(d=t.default)==null?void 0:d.call(t)])}else return te(ze,{ref:o},[(f=t.default)==null?void 0:f.call(t)])}}});const oB=ke(je(we({},ke({name:"ElFormItem"})),{props:rB,setup(e,{expose:t}){const n=e,r=Ea(),s=Qe(Ha,void 0),o=Qe(Mo,void 0),a=Er(void 0,{formItem:!1}),l=nt("form-item"),c=Sr().value,u=ne([]),d=ne(""),f=BP(d,100),p=ne(""),g=ne();let _,b=!1;const y=W(()=>n.labelPosition||(s==null?void 0:s.labelPosition)),w=W(()=>{if(y.value==="top")return{};const Z=Qi(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return Z?{width:Z}:{}}),E=W(()=>{if(y.value==="top"||s!=null&&s.inline)return{};if(!n.label&&!n.labelWidth&&R)return{};const Z=Qi(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return!n.label&&!r.label?{marginLeft:Z}:{}}),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-${y.value}`)]:y.value}]),S=W(()=>ti(n.inlineMessage)?n.inlineMessage:(s==null?void 0:s.inlineMessage)||!1),A=W(()=>[l.e("error"),{[l.em("error","inline")]:S.value}]),P=W(()=>n.prop?st(n.prop)?n.prop:n.prop.join("."):""),I=W(()=>!!(n.label||r.label)),O=W(()=>n.for||(u.value.length===1?u.value[0]:void 0)),L=W(()=>!O.value&&I.value),R=!!o,F=W(()=>{const Z=s==null?void 0:s.model;if(!(!Z||!n.prop))return zd(Z,n.prop).value}),H=W(()=>{const{required:Z}=n,_e=[];n.rules&&_e.push(...Yi(n.rules));const Pe=s==null?void 0:s.rules;if(Pe&&n.prop){const Re=zd(Pe,n.prop).value;Re&&_e.push(...Yi(Re))}if(Z!==void 0){const Re=_e.map((Ke,B)=>[Ke,B]).filter(([Ke])=>Object.keys(Ke).includes("required"));if(Re.length>0)for(const[Ke,B]of Re)Ke.required!==Z&&(_e[B]=je(we({},Ke),{required:Z}));else _e.push({required:Z})}return _e}),V=W(()=>H.value.length>0),ae=Z=>H.value.filter(Pe=>!Pe.trigger||!Z?!0:Array.isArray(Pe.trigger)?Pe.trigger.includes(Z):Pe.trigger===Z).map(Ke=>{var B=Ke,{trigger:Pe}=B,Re=Es(B,["trigger"]);return Re}),ce=W(()=>H.value.some(Z=>Z.required)),U=W(()=>{var Z;return f.value==="error"&&n.showMessage&&((Z=s==null?void 0:s.showMessage)!=null?Z:!0)}),J=W(()=>`${n.label||""}${(s==null?void 0:s.labelSuffix)||""}`),Q=Z=>{d.value=Z},X=Z=>{var _e,Pe;const{errors:Re,fields:Ke}=Z;(!Re||!Ke)&&console.error(Z),Q("error"),p.value=Re?(Pe=(_e=Re==null?void 0:Re[0])==null?void 0:_e.message)!=null?Pe:`${n.prop} is required`:"",s==null||s.emit("validate",n.prop,!1,p.value)},j=()=>{Q("success"),s==null||s.emit("validate",n.prop,!0,"")},ye=Z=>at(this,null,function*(){const _e=P.value;return new $c({[_e]:Z}).validate({[_e]:F.value},{firstFields:!0}).then(()=>(j(),!0)).catch(Re=>(X(Re),Promise.reject(Re)))}),pe=(Z,_e)=>at(this,null,function*(){if(b||!n.prop)return!1;const Pe=Ve(_e);if(!V.value)return _e==null||_e(!1),!1;const Re=ae(Z);return Re.length===0?(_e==null||_e(!0),!0):(Q("validating"),ye(Re).then(()=>(_e==null||_e(!0),!0)).catch(Ke=>{const{fields:B}=Ke;return _e==null||_e(!1,B),Pe?!1:Promise.reject(B)}))}),ie=()=>{Q(""),p.value="",b=!1},oe=()=>at(this,null,function*(){const Z=s==null?void 0:s.model;if(!Z||!n.prop)return;const _e=zd(Z,n.prop);b=!0,_e.value=b3(_),yield ht(),ie(),b=!1}),Ce=Z=>{u.value.includes(Z)||u.value.push(Z)},me=Z=>{u.value=u.value.filter(_e=>_e!==Z)};qe(()=>n.error,Z=>{p.value=Z||"",Q(Z?"error":"")},{immediate:!0}),qe(()=>n.validateStatus,Z=>Q(Z||""));const z=Dn(je(we({},hr(n)),{$el:g,size:a,validateState:d,labelId:c,inputIds:u,isGroup:L,hasLabel:I,fieldValue:F,addInputId:Ce,removeInputId:me,resetField:oe,clearValidate:ie,validate:pe}));return ln(Mo,z),Rt(()=>{n.prop&&(s==null||s.addField(z),_=b3(F.value))}),fn(()=>{s==null||s.removeField(z)}),t({size:a,validateMessage:p,validateState:d,validate:pe,clearValidate:ie,resetField:oe}),(Z,_e)=>{var Pe;return N(),q("div",{ref_key:"formItemRef",ref:g,class:Y(T(C)),role:T(L)?"group":void 0,"aria-labelledby":T(L)?T(c):void 0},[te(T(sB),{"is-auto-width":T(w).width==="auto","update-all":((Pe=T(s))==null?void 0:Pe.labelWidth)==="auto"},{default:ee(()=>[T(I)?(N(),xe(Zt(T(O)?"label":"div"),{key:0,id:T(c),for:T(O),class:Y(T(l).e("label")),style:Ze(T(w))},{default:ee(()=>[Ie(Z.$slots,"label",{label:T(J)},()=>[Je(Ne(T(J)),1)])]),_:3},8,["id","for","class","style"])):re("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),G("div",{class:Y(T(l).e("content")),style:Ze(T(E))},[Ie(Z.$slots,"default"),te(sw,{name:`${T(l).namespace.value}-zoom-in-top`},{default:ee(()=>[T(U)?Ie(Z.$slots,"error",{key:0,error:p.value},()=>[G("div",{class:Y(T(A))},Ne(p.value),3)]):re("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}}));var U6=ft(oB,[["__file","form-item.vue"]]);const Bm=pn(xj,{FormItem:U6}),Um=is(U6);let tr;const aB=`
|
|
32
|
+
height:0 !important;
|
|
33
|
+
visibility:hidden !important;
|
|
34
|
+
${tO()?"":"overflow:hidden !important;"}
|
|
35
|
+
position:absolute !important;
|
|
36
|
+
z-index:-1000 !important;
|
|
37
|
+
top:0 !important;
|
|
38
|
+
right:0 !important;
|
|
39
|
+
`,lB=["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 cB(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:lB.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:s,boxSizing:n}}function $6(e,t=1,n){var r;tr||(tr=document.createElement("textarea"),document.body.appendChild(tr));const{paddingSize:s,borderSize:o,boxSizing:a,contextStyle:l}=cB(e);tr.setAttribute("style",`${l};${aB}`),tr.value=e.value||e.placeholder||"";let c=tr.scrollHeight;const u={};a==="border-box"?c=c+o:a==="content-box"&&(c=c-s),tr.value="";const d=tr.scrollHeight-s;if(Qt(t)){let f=d*t;a==="border-box"&&(f=f+s+o),c=Math.max(f,c),u.minHeight=`${f}px`}if(Qt(n)){let f=d*n;a==="border-box"&&(f=f+s+o),c=Math.min(f,c)}return u.height=`${c}px`,(r=tr.parentNode)==null||r.removeChild(tr),tr=void 0,u}const uB=pt(we({id:{type:String,default:void 0},size:Fs,disabled:Boolean,modelValue:{type:Fe([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:Fe([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:ns},prefixIcon:{type:ns},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Fe([Object,Array,String]),default:()=>kc({})},autofocus:Boolean,rows:{type:Number,default:2}},js(["ariaLabel"]))),dB={[Cn]:e=>st(e),input:e=>st(e),change:e=>st(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},fB=ke(je(we({},ke({name:"ElInput",inheritAttrs:!1})),{props:uB,emits:dB,setup(e,{expose:t,emit:n}){const r=e,s=ak(),o=Ea(),a=W(()=>{const le={};return r.containerRole==="combobox"&&(le["aria-haspopup"]=s["aria-haspopup"],le["aria-owns"]=s["aria-owns"],le["aria-expanded"]=s["aria-expanded"]),le}),l=W(()=>[r.type==="textarea"?y.b():b.b(),b.m(g.value),b.is("disabled",_.value),b.is("exceed",ie.value),{[b.b("group")]:o.prepend||o.append,[b.m("prefix")]:o.prefix||r.prefixIcon,[b.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[b.bm("suffix","password-clear")]:X.value&&j.value,[b.b("hidden")]:r.type==="hidden"},s.class]),c=W(()=>[b.e("wrapper"),b.is("focus",L.value)]),u=$M({excludeKeys:W(()=>Object.keys(a.value))}),{form:d,formItem:f}=Fo(),{inputId:p}=Fc(r,{formItemContext:f}),g=Er(),_=ss(),b=nt("input"),y=nt("textarea"),w=bn(),E=bn(),C=ne(!1),S=ne(!1),A=ne(),P=bn(r.inputStyle),I=W(()=>w.value||E.value),{wrapperRef:O,isFocused:L,handleFocus:R,handleBlur:F}=P6(I,{beforeFocus(){return _.value},afterBlur(){var le;r.validateEvent&&((le=f==null?void 0:f.validate)==null||le.call(f,"blur").catch(Le=>void 0))}}),H=W(()=>{var le;return(le=d==null?void 0:d.statusIcon)!=null?le:!1}),V=W(()=>(f==null?void 0:f.validateState)||""),ae=W(()=>V.value&&q3[V.value]),ce=W(()=>S.value?kM:yM),U=W(()=>[s.style]),J=W(()=>[r.inputStyle,P.value,{resize:r.resize}]),Q=W(()=>Po(r.modelValue)?"":String(r.modelValue)),X=W(()=>r.clearable&&!_.value&&!r.readonly&&!!Q.value&&(L.value||C.value)),j=W(()=>r.showPassword&&!_.value&&!r.readonly&&!!Q.value&&(!!Q.value||L.value)),ye=W(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!_.value&&!r.readonly&&!r.showPassword),pe=W(()=>Q.value.length),ie=W(()=>!!ye.value&&pe.value>Number(r.maxlength)),oe=W(()=>!!o.suffix||!!r.suffixIcon||X.value||r.showPassword||ye.value||!!V.value&&H.value),[Ce,me]=aj(w);ci(E,le=>{if(_e(),!ye.value||r.resize!=="both")return;const Le=le[0],{width:Ye}=Le.contentRect;A.value={right:`calc(100% - ${Ye+15+6}px)`}});const z=()=>{const{type:le,autosize:Le}=r;if(!(!Dt||le!=="textarea"||!E.value))if(Le){const Ye=ct(Le)?Le.minRows:void 0,Ct=ct(Le)?Le.maxRows:void 0,mt=$6(E.value,Ye,Ct);P.value=we({overflowY:"hidden"},mt),ht(()=>{E.value.offsetHeight,P.value=mt})}else P.value={minHeight:$6(E.value).minHeight}},_e=(le=>{let Le=!1;return()=>{var Ye;if(Le||!r.autosize)return;((Ye=E.value)==null?void 0:Ye.offsetParent)===null||(le(),Le=!0)}})(z),Pe=()=>{const le=I.value,Le=r.formatter?r.formatter(Q.value):Q.value;!le||le.value===Le||(le.value=Le)},Re=le=>at(this,null,function*(){Ce();let{value:Le}=le.target;if(r.formatter&&(Le=r.parser?r.parser(Le):Le),!B.value){if(Le===Q.value){Pe();return}n(Cn,Le),n("input",Le),yield ht(),Pe(),me()}}),Ke=le=>{n("change",le.target.value)},{isComposing:B,handleCompositionStart:K,handleCompositionUpdate:se,handleCompositionEnd:Ae}=O6({emit:n,afterComposition:Re}),de=()=>{S.value=!S.value,fe()},fe=()=>at(this,null,function*(){var le;yield ht(),(le=I.value)==null||le.focus()}),Se=()=>{var le;return(le=I.value)==null?void 0:le.blur()},Te=le=>{C.value=!1,n("mouseleave",le)},Oe=le=>{C.value=!0,n("mouseenter",le)},ve=le=>{n("keydown",le)},$e=()=>{var le;(le=I.value)==null||le.select()},he=()=>{n(Cn,""),n("change",""),n("clear"),n("input","")};return qe(()=>r.modelValue,()=>{var le;ht(()=>z()),r.validateEvent&&((le=f==null?void 0:f.validate)==null||le.call(f,"change").catch(Le=>void 0))}),qe(Q,()=>Pe()),qe(()=>r.type,()=>at(this,null,function*(){yield ht(),Pe(),z()})),Rt(()=>{!r.formatter&&r.parser,Pe(),ht(z)}),t({input:w,textarea:E,ref:I,textareaStyle:J,autosize:wi(r,"autosize"),isComposing:B,focus:fe,blur:Se,select:$e,clear:he,resizeTextarea:z}),(le,Le)=>(N(),q("div",An(T(a),{class:[T(l),{[T(b).bm("group","append")]:le.$slots.append,[T(b).bm("group","prepend")]:le.$slots.prepend}],style:T(U),role:le.containerRole,onMouseenter:Oe,onMouseleave:Te}),[re(" input "),le.type!=="textarea"?(N(),q(ze,{key:0},[re(" prepend slot "),le.$slots.prepend?(N(),q("div",{key:0,class:Y(T(b).be("group","prepend"))},[Ie(le.$slots,"prepend")],2)):re("v-if",!0),G("div",{ref_key:"wrapperRef",ref:O,class:Y(T(c))},[re(" prefix slot "),le.$slots.prefix||le.prefixIcon?(N(),q("span",{key:0,class:Y(T(b).e("prefix"))},[G("span",{class:Y(T(b).e("prefix-inner"))},[Ie(le.$slots,"prefix"),le.prefixIcon?(N(),xe(T(Ft),{key:0,class:Y(T(b).e("icon"))},{default:ee(()=>[(N(),xe(Zt(le.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0),G("input",An({id:T(p),ref_key:"input",ref:w,class:T(b).e("inner")},T(u),{minlength:le.minlength,maxlength:le.maxlength,type:le.showPassword?S.value?"text":"password":le.type,disabled:T(_),readonly:le.readonly,autocomplete:le.autocomplete,tabindex:le.tabindex,"aria-label":le.ariaLabel,placeholder:le.placeholder,style:le.inputStyle,form:le.form,autofocus:le.autofocus,onCompositionstart:T(K),onCompositionupdate:T(se),onCompositionend:T(Ae),onInput:Re,onChange:Ke,onKeydown:ve}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","onCompositionstart","onCompositionupdate","onCompositionend"]),re(" suffix slot "),T(oe)?(N(),q("span",{key:1,class:Y(T(b).e("suffix"))},[G("span",{class:Y(T(b).e("suffix-inner"))},[!T(X)||!T(j)||!T(ye)?(N(),q(ze,{key:0},[Ie(le.$slots,"suffix"),le.suffixIcon?(N(),xe(T(Ft),{key:0,class:Y(T(b).e("icon"))},{default:ee(()=>[(N(),xe(Zt(le.suffixIcon)))]),_:1},8,["class"])):re("v-if",!0)],64)):re("v-if",!0),T(X)?(N(),xe(T(Ft),{key:1,class:Y([T(b).e("icon"),T(b).e("clear")]),onMousedown:gt(T(yt),["prevent"]),onClick:he},{default:ee(()=>[te(T(Gd))]),_:1},8,["class","onMousedown"])):re("v-if",!0),T(j)?(N(),xe(T(Ft),{key:2,class:Y([T(b).e("icon"),T(b).e("password")]),onClick:de},{default:ee(()=>[(N(),xe(Zt(T(ce))))]),_:1},8,["class"])):re("v-if",!0),T(ye)?(N(),q("span",{key:3,class:Y(T(b).e("count"))},[G("span",{class:Y(T(b).e("count-inner"))},Ne(T(pe))+" / "+Ne(le.maxlength),3)],2)):re("v-if",!0),T(V)&&T(ae)&&T(H)?(N(),xe(T(Ft),{key:4,class:Y([T(b).e("icon"),T(b).e("validateIcon"),T(b).is("loading",T(V)==="validating")])},{default:ee(()=>[(N(),xe(Zt(T(ae))))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0)],2),re(" append slot "),le.$slots.append?(N(),q("div",{key:1,class:Y(T(b).be("group","append"))},[Ie(le.$slots,"append")],2)):re("v-if",!0)],64)):(N(),q(ze,{key:1},[re(" textarea "),G("textarea",An({id:T(p),ref_key:"textarea",ref:E,class:[T(y).e("inner"),T(b).is("focus",T(L))]},T(u),{minlength:le.minlength,maxlength:le.maxlength,tabindex:le.tabindex,disabled:T(_),readonly:le.readonly,autocomplete:le.autocomplete,style:T(J),"aria-label":le.ariaLabel,placeholder:le.placeholder,form:le.form,autofocus:le.autofocus,rows:le.rows,onCompositionstart:T(K),onCompositionupdate:T(se),onCompositionend:T(Ae),onInput:Re,onFocus:T(R),onBlur:T(F),onChange:Ke,onKeydown:ve}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),T(ye)?(N(),q("span",{key:0,style:Ze(A.value),class:Y(T(b).e("count"))},Ne(T(pe))+" / "+Ne(le.maxlength),7)):re("v-if",!0)],64))],16,["role"]))}}));var pB=ft(fB,[["__file","input.vue"]]);const Bo=pn(pB),Wa=4,hB={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"}},gB=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),$m=Symbol("scrollbarContextKey"),mB=pt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),_B="Thumb";var V6=ft(ke({__name:"thumb",props:mB,setup(e){const t=e,n=Qe($m),r=nt("scrollbar");n||Oo(_B,"can not inject scrollbar context");const s=ne(),o=ne(),a=ne({}),l=ne(!1);let c=!1,u=!1,d=Dt?document.onselectstart:null;const f=W(()=>hB[t.vertical?"vertical":"horizontal"]),p=W(()=>gB({size:t.size,move:t.move,bar:f.value})),g=W(()=>Hh(s.value[f.value.offset],2)/n.wrapElement[f.value.scrollSize]/t.ratio/o.value[f.value.offset]),_=P=>{var I;if(P.stopPropagation(),P.ctrlKey||[1,2].includes(P.button))return;(I=window.getSelection())==null||I.removeAllRanges(),y(P);const O=P.currentTarget;O&&(a.value[f.value.axis]=O[f.value.offset]-(P[f.value.client]-O.getBoundingClientRect()[f.value.direction]))},b=P=>{if(!o.value||!s.value||!n.wrapElement)return;const I=Math.abs(P.target.getBoundingClientRect()[f.value.direction]-P[f.value.client]),O=o.value[f.value.offset]/2,L=(I-O)*100*g.value/s.value[f.value.offset];n.wrapElement[f.value.scroll]=L*n.wrapElement[f.value.scrollSize]/100},y=P=>{P.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",E),d=document.onselectstart,document.onselectstart=()=>!1},w=P=>{if(!s.value||!o.value||c===!1)return;const I=a.value[f.value.axis];if(!I)return;const O=(s.value.getBoundingClientRect()[f.value.direction]-P[f.value.client])*-1,L=o.value[f.value.offset]-I,R=(O-L)*100*g.value/s.value[f.value.offset];n.wrapElement[f.value.scroll]=R*n.wrapElement[f.value.scrollSize]/100},E=()=>{c=!1,a.value[f.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",E),A(),u&&(l.value=!1)},C=()=>{u=!1,l.value=!!t.size},S=()=>{u=!0,l.value=c};fn(()=>{A(),document.removeEventListener("mouseup",E)});const A=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Si(wi(n,"scrollbarElement"),"mousemove",C),Si(wi(n,"scrollbarElement"),"mouseleave",S),(P,I)=>(N(),xe(Ds,{name:T(r).b("fade"),persisted:""},{default:ee(()=>[Nt(G("div",{ref_key:"instance",ref:s,class:Y([T(r).e("bar"),T(r).is(T(f).key)]),onMousedown:b},[G("div",{ref_key:"thumb",ref:o,class:Y(T(r).e("thumb")),style:Ze(T(p)),onMousedown:_},null,38)],34),[[wn,P.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const vB=pt({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var bB=ft(ke({__name:"bar",props:vB,setup(e,{expose:t}){const n=e,r=Qe($m),s=ne(0),o=ne(0),a=ne(""),l=ne(""),c=ne(1),u=ne(1);return t({handleScroll:p=>{if(p){const g=p.offsetHeight-Wa,_=p.offsetWidth-Wa;o.value=p.scrollTop*100/g*c.value,s.value=p.scrollLeft*100/_*u.value}},update:()=>{const p=r==null?void 0:r.wrapElement;if(!p)return;const g=p.offsetHeight-Wa,_=p.offsetWidth-Wa,b=Hh(g,2)/p.scrollHeight,y=Hh(_,2)/p.scrollWidth,w=Math.max(b,n.minSize),E=Math.max(y,n.minSize);c.value=b/(g-b)/(w/(g-w)),u.value=y/(_-y)/(E/(_-E)),l.value=w+Wa<g?`${w}px`:"",a.value=E+Wa<_?`${E}px`:""}}),(p,g)=>(N(),q(ze,null,[te(V6,{move:s.value,ratio:u.value,size:a.value,always:p.always},null,8,["move","ratio","size","always"]),te(V6,{move:o.value,ratio:c.value,size:l.value,vertical:"",always:p.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const yB=pt(we({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Fe([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},js(["ariaLabel","ariaOrientation"]))),wB={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Qt)},CB=ke(je(we({},ke({name:"ElScrollbar"})),{props:yB,emits:wB,setup(e,{expose:t,emit:n}){const r=e,s=nt("scrollbar");let o,a,l=0,c=0;const u=ne(),d=ne(),f=ne(),p=ne(),g=W(()=>{const A={};return r.height&&(A.height=Qi(r.height)),r.maxHeight&&(A.maxHeight=Qi(r.maxHeight)),[r.wrapStyle,A]}),_=W(()=>[r.wrapClass,s.e("wrap"),{[s.em("wrap","hidden-default")]:!r.native}]),b=W(()=>[s.e("view"),r.viewClass]),y=()=>{var A;d.value&&((A=p.value)==null||A.handleScroll(d.value),l=d.value.scrollTop,c=d.value.scrollLeft,n("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function w(A,P){ct(A)?d.value.scrollTo(A):Qt(A)&&Qt(P)&&d.value.scrollTo(A,P)}const E=A=>{Qt(A)&&(d.value.scrollTop=A)},C=A=>{Qt(A)&&(d.value.scrollLeft=A)},S=()=>{var A;(A=p.value)==null||A.update()};return qe(()=>r.noresize,A=>{A?(o==null||o(),a==null||a()):({stop:o}=ci(f,S),a=Si("resize",S))},{immediate:!0}),qe(()=>[r.maxHeight,r.height],()=>{r.native||ht(()=>{var A;S(),d.value&&((A=p.value)==null||A.handleScroll(d.value))})}),ln($m,Dn({scrollbarElement:u,wrapElement:d})),Hy(()=>{d.value.scrollTop=l,d.value.scrollLeft=c}),Rt(()=>{r.native||ht(()=>{S()})}),nc(()=>S()),t({wrapRef:d,update:S,scrollTo:w,setScrollTop:E,setScrollLeft:C,handleScroll:y}),(A,P)=>(N(),q("div",{ref_key:"scrollbarRef",ref:u,class:Y(T(s).b())},[G("div",{ref_key:"wrapRef",ref:d,class:Y(T(_)),style:Ze(T(g)),tabindex:A.tabindex,onScroll:y},[(N(),xe(Zt(A.tag),{id:A.id,ref_key:"resizeRef",ref:f,class:Y(T(b)),style:Ze(A.viewStyle),role:A.role,"aria-label":A.ariaLabel,"aria-orientation":A.ariaOrientation},{default:ee(()=>[Ie(A.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),A.native?re("v-if",!0):(N(),xe(bB,{key:0,ref_key:"barRef",ref:p,always:A.always,"min-size":A.minSize},null,8,["always","min-size"]))],2))}}));var SB=ft(CB,[["__file","scrollbar.vue"]]);const Vm=pn(SB),qm=Symbol("popper"),q6=Symbol("popperContent"),z6=pt({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),xB=ke(je(we({},ke({name:"ElPopper",inheritAttrs:!1})),{props:z6,setup(e,{expose:t}){const n=e,r=ne(),s=ne(),o=ne(),a=ne(),l=W(()=>n.role),c={triggerRef:r,popperInstanceRef:s,contentRef:o,referenceRef:a,role:l};return t(c),ln(qm,c),(u,d)=>Ie(u.$slots,"default")}}));var EB=ft(xB,[["__file","popper.vue"]]);const H6=pt({arrowOffset:{type:Number,default:5}}),AB=ke(je(we({},ke({name:"ElPopperArrow",inheritAttrs:!1})),{props:H6,setup(e,{expose:t}){const n=e,r=nt("popper"),{arrowOffset:s,arrowRef:o,arrowStyle:a}=Qe(q6,void 0);return qe(()=>n.arrowOffset,l=>{s.value=l}),fn(()=>{o.value=void 0}),t({arrowRef:o}),(l,c)=>(N(),q("span",{ref_key:"arrowRef",ref:o,class:Y(T(r).e("arrow")),style:Ze(T(a)),"data-popper-arrow":""},null,6))}}));var TB=ft(AB,[["__file","arrow.vue"]]);const kB=ke({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var r;const s=Qe(C6),o=oj((r=s==null?void 0:s.setForwardRef)!=null?r:yt);return()=>{var a;const l=(a=t.default)==null?void 0:a.call(t,n);if(!l||l.length>1)return null;const c=G6(l);return c?Nt(Kr(c,n),[[o]]):null}}});function G6(e){if(!e)return null;const t=e;for(const n of t){if(ct(n))switch(n.type){case En:continue;case Ta:case"svg":return W6(n);case ze:return G6(n.children);default:return n}return W6(n)}return null}function W6(e){const t=nt("only-child");return te("span",{class:t.e("content")},[e])}const K6=pt({virtualRef:{type:Fe(Object)},virtualTriggering:Boolean,onMouseenter:{type:Fe(Function)},onMouseleave:{type:Fe(Function)},onClick:{type:Fe(Function)},onKeydown:{type:Fe(Function)},onFocus:{type:Fe(Function)},onBlur:{type:Fe(Function)},onContextmenu:{type:Fe(Function)},id:String,open:Boolean}),PB=ke(je(we({},ke({name:"ElPopperTrigger",inheritAttrs:!1})),{props:K6,setup(e,{expose:t}){const n=e,{role:r,triggerRef:s}=Qe(qm,void 0);sj(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 Rt(()=>{qe(()=>n.virtualRef,f=>{f&&(s.value=Qr(f))},{immediate:!0}),qe(s,(f,p)=>{u==null||u(),u=void 0,br(f)&&(d.forEach(g=>{var _;const b=n[g];b&&(f.addEventListener(g.slice(2).toLowerCase(),b),(_=p==null?void 0:p.removeEventListener)==null||_.call(p,g.slice(2).toLowerCase(),b))}),u=qe([o,a,l,c],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((_,b)=>{Po(g[b])?f.removeAttribute(_):f.setAttribute(_,g[b])})},{immediate:!0})),br(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>p.removeAttribute(g))},{immediate:!0})}),fn(()=>{if(u==null||u(),u=void 0,s.value&&br(s.value)){const f=s.value;d.forEach(p=>{const g=n[p];g&&f.removeEventListener(p.slice(2).toLowerCase(),g)}),s.value=void 0}}),t({triggerRef:s}),(f,p)=>f.virtualTriggering?re("v-if",!0):(N(),xe(T(kB),An({key:0},f.$attrs,{"aria-controls":T(o),"aria-describedby":T(a),"aria-expanded":T(c),"aria-haspopup":T(l)}),{default:ee(()=>[Ie(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}));var OB=ft(PB,[["__file","trigger.vue"]]);const zm="focus-trap.focus-after-trapped",Hm="focus-trap.focus-after-released",NB="focus-trap.focusout-prevented",J6={cancelable:!0,bubbles:!1},IB={cancelable:!0,bubbles:!1},Y6="focusAfterTrapped",X6="focusAfterReleased",Z6=Symbol("elFocusTrap"),Gm=ne(),af=ne(0),Wm=ne(0);let lf=0;const Q6=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},e4=(e,t)=>{for(const n of e)if(!DB(n,t))return n},DB=(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},RB=e=>{const t=Q6(e),n=e4(t,e),r=e4(t.reverse(),e);return[n,r]},LB=e=>e instanceof HTMLInputElement&&"select"in e,Bs=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Wm.value=window.performance.now(),e!==n&&LB(e)&&t&&e.select()}};function t4(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const MB=()=>{let e=[];return{push:r=>{const s=e[0];s&&r!==s&&s.pause(),e=t4(e,r),e.unshift(r)},remove:r=>{var s,o;e=t4(e,r),(o=(s=e[0])==null?void 0:s.resume)==null||o.call(s)}}},FB=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Bs(r,t),document.activeElement!==n)return},n4=MB(),jB=()=>af.value>Wm.value,cf=()=>{Gm.value="pointer",af.value=window.performance.now()},i4=()=>{Gm.value="keyboard",af.value=window.performance.now()},BB=()=>(Rt(()=>{lf===0&&(document.addEventListener("mousedown",cf),document.addEventListener("touchstart",cf),document.addEventListener("keydown",i4)),lf++}),fn(()=>{lf--,lf<=0&&(document.removeEventListener("mousedown",cf),document.removeEventListener("touchstart",cf),document.removeEventListener("keydown",i4))}),{focusReason:Gm,lastUserFocusTimestamp:af,lastAutomatedFocusTimestamp:Wm}),uf=e=>new CustomEvent(NB,je(we({},IB),{detail:e})),UB=ke({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Y6,X6,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=ne();let r,s;const{focusReason:o}=BB();ej(_=>{e.trapped&&!a.paused&&t("release-requested",_)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=_=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:b,altKey:y,ctrlKey:w,metaKey:E,currentTarget:C,shiftKey:S}=_,{loop:A}=e,P=b===Do.tab&&!y&&!w&&!E,I=document.activeElement;if(P&&I){const O=C,[L,R]=RB(O);if(L&&R){if(!S&&I===R){const H=uf({focusReason:o.value});t("focusout-prevented",H),H.defaultPrevented||(_.preventDefault(),A&&Bs(L,!0))}else if(S&&[L,O].includes(I)){const H=uf({focusReason:o.value});t("focusout-prevented",H),H.defaultPrevented||(_.preventDefault(),A&&Bs(R,!0))}}else if(I===O){const H=uf({focusReason:o.value});t("focusout-prevented",H),H.defaultPrevented||_.preventDefault()}}};ln(Z6,{focusTrapRef:n,onKeydown:l}),qe(()=>e.focusTrapEl,_=>{_&&(n.value=_)},{immediate:!0}),qe([n],([_],[b])=>{_&&(_.addEventListener("keydown",l),_.addEventListener("focusin",d),_.addEventListener("focusout",f)),b&&(b.removeEventListener("keydown",l),b.removeEventListener("focusin",d),b.removeEventListener("focusout",f))});const c=_=>{t(Y6,_)},u=_=>t(X6,_),d=_=>{const b=T(n);if(!b)return;const y=_.target,w=_.relatedTarget,E=y&&b.contains(y);e.trapped||w&&b.contains(w)||(r=w),E&&t("focusin",_),!a.paused&&e.trapped&&(E?s=y:Bs(s,!0))},f=_=>{const b=T(n);if(!(a.paused||!b))if(e.trapped){const y=_.relatedTarget;!Po(y)&&!b.contains(y)&&setTimeout(()=>{if(!a.paused&&e.trapped){const w=uf({focusReason:o.value});t("focusout-prevented",w),w.defaultPrevented||Bs(s,!0)}},0)}else{const y=_.target;y&&b.contains(y)||t("focusout",_)}};function p(){return at(this,null,function*(){yield ht();const _=T(n);if(_){n4.push(a);const b=_.contains(document.activeElement)?r:document.activeElement;if(r=b,!_.contains(b)){const w=new Event(zm,J6);_.addEventListener(zm,c),_.dispatchEvent(w),w.defaultPrevented||ht(()=>{let E=e.focusStartEl;st(E)||(Bs(E),document.activeElement!==E&&(E="first")),E==="first"&&FB(Q6(_),!0),(document.activeElement===b||E==="container")&&Bs(_)})}}})}function g(){const _=T(n);if(_){_.removeEventListener(zm,c);const b=new CustomEvent(Hm,je(we({},J6),{detail:{focusReason:o.value}}));_.addEventListener(Hm,u),_.dispatchEvent(b),!b.defaultPrevented&&(o.value=="keyboard"||!jB()||_.contains(document.activeElement))&&Bs(r!=null?r:document.body),_.removeEventListener(Hm,u),n4.remove(a)}}return Rt(()=>{e.trapped&&p(),qe(()=>e.trapped,_=>{_?p():g()})}),fn(()=>{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 $B(e,t,n,r,s,o){return Ie(e.$slots,"default",{handleKeydown:e.onKeydown})}var Km=ft(UB,[["render",$B],["__file","focus-trap.vue"]]);const VB=["fixed","absolute"],qB=pt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Fe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Yd,default:"bottom"},popperOptions:{type:Fe(Object),default:()=>({})},strategy:{type:String,values:VB,default:"absolute"}}),r4=pt(we(je(we({},qB),{id:String,style:{type:Fe([String,Array,Object])},className:{type:Fe([String,Array,Object])},effect:{type:Fe(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Fe([String,Array,Object])},popperStyle:{type:Fe([String,Array,Object])},referenceEl:{type:Fe(Object)},triggerTargetEl:{type:Fe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number}),js(["ariaLabel"]))),zB={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},HB=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:s}=e,o=je(we({placement:n,strategy:r},s),{modifiers:[...WB(e),...t]});return KB(o,s==null?void 0:s.modifiers),o},GB=e=>{if(Dt)return Qr(e)};function WB(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 KB(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const JB=0,YB=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:s}=Qe(qm,void 0),o=ne(),a=ne(),l=W(()=>({name:"eventListeners",enabled:!!e.visible})),c=W(()=>{var w;const E=T(o),C=(w=T(a))!=null?w:JB;return{name:"arrow",enabled:!N3(E),options:{element:E,padding:C}}}),u=W(()=>we({onFirstUpdate:()=>{_()}},HB(e,[T(c),T(l)]))),d=W(()=>GB(e.referenceEl)||T(r)),{attributes:f,state:p,styles:g,update:_,forceUpdate:b,instanceRef:y}=XF(d,n,u);return qe(y,w=>t.value=w),Rt(()=>{qe(()=>{var w;return(w=T(d))==null?void 0:w.getBoundingClientRect()},()=>{_()})}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:y,state:p,styles:g,role:s,forceUpdate:b,update:_}},XB=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:s}=Nm(),o=nt("popper"),a=W(()=>T(t).popper),l=ne(Qt(e.zIndex)?e.zIndex:s()),c=W(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=W(()=>[{zIndex:T(l)},T(n).popper,e.popperStyle||{}]),d=W(()=>r.value==="dialog"?"false":void 0),f=W(()=>T(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:a,contentClass:c,contentStyle:u,contentZIndex:l,updateZIndex:()=>{l.value=Qt(e.zIndex)?e.zIndex:s()}}},ZB=(e,t)=>{const n=ne(!1),r=ne();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")}}},QB=ke(je(we({},ke({name:"ElPopperContent"})),{props:r4,emits:zB,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:s,trapped:o,onFocusAfterReleased:a,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:d}=ZB(r,n),{attributes:f,arrowRef:p,contentRef:g,styles:_,instanceRef:b,role:y,update:w}=YB(r),{ariaModal:E,arrowStyle:C,contentAttrs:S,contentClass:A,contentStyle:P,updateZIndex:I}=XB(r,{styles:_,attributes:f,role:y}),O=Qe(Mo,void 0),L=ne();ln(q6,{arrowStyle:C,arrowRef:p,arrowOffset:L}),O&&ln(Mo,je(we({},O),{addInputId:yt,removeInputId:yt}));let R;const F=(V=!0)=>{w(),V&&I()},H=()=>{F(!1),r.visible&&r.focusOnShow?o.value=!0:r.visible===!1&&(o.value=!1)};return Rt(()=>{qe(()=>r.triggerTargetEl,(V,ae)=>{R==null||R(),R=void 0;const ce=T(V||g.value),U=T(ae||g.value);br(ce)&&(R=qe([y,()=>r.ariaLabel,E,()=>r.id],J=>{["role","aria-label","aria-modal","id"].forEach((Q,X)=>{Po(J[X])?ce.removeAttribute(Q):ce.setAttribute(Q,J[X])})},{immediate:!0})),U!==ce&&br(U)&&["role","aria-label","aria-modal","id"].forEach(J=>{U.removeAttribute(J)})},{immediate:!0}),qe(()=>r.visible,H,{immediate:!0})}),fn(()=>{R==null||R(),R=void 0}),t({popperContentRef:g,popperInstanceRef:b,updatePopper:F,contentStyle:P}),(V,ae)=>(N(),q("div",An({ref_key:"contentRef",ref:g},T(S),{style:T(P),class:T(A),tabindex:"-1",onMouseenter:ce=>V.$emit("mouseenter",ce),onMouseleave:ce=>V.$emit("mouseleave",ce)}),[te(T(Km),{trapped:T(o),"trap-on-focus-in":!0,"focus-trap-el":T(g),"focus-start-el":T(s),onFocusAfterTrapped:T(l),onFocusAfterReleased:T(a),onFocusin:T(c),onFocusoutPrevented:T(u),onReleaseRequested:T(d)},{default:ee(()=>[Ie(V.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}}));var eU=ft(QB,[["__file","content.vue"]]);const tU=pn(EB),Jm=Symbol("elTooltip"),di=pt(we(je(we(we({},ij),r4),{appendTo:{type:Fe([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Fe(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),js(["ariaLabel"]))),Vc=pt(je(we({},K6),{disabled:Boolean,trigger:{type:Fe([String,Array]),default:"hover"},triggerKeys:{type:Fe(Array),default:()=>[Do.enter,Do.space]}})),{useModelToggleProps:nU,useModelToggleEmits:iU,useModelToggle:rU}=K3("visible"),sU=pt(je(we(we(we(we(we({},z6),nU),di),Vc),H6),{showArrow:{type:Boolean,default:!0}})),oU=[...iU,"before-show","before-hide","show","hide","open","close"],aU=(e,t)=>Be(e)?e.includes(t):e===t,Ka=(e,t,n)=>r=>{aU(T(e),t)&&n(r)},lU=ke(je(we({},ke({name:"ElTooltipTrigger"})),{props:Vc,setup(e,{expose:t}){const n=e,r=nt("tooltip"),{controlled:s,id:o,open:a,onOpen:l,onClose:c,onToggle:u}=Qe(Jm,void 0),d=ne(null),f=()=>{if(T(s)||n.disabled)return!0},p=wi(n,"trigger"),g=Zr(f,Ka(p,"hover",l)),_=Zr(f,Ka(p,"hover",c)),b=Zr(f,Ka(p,"click",S=>{S.button===0&&u(S)})),y=Zr(f,Ka(p,"focus",l)),w=Zr(f,Ka(p,"focus",c)),E=Zr(f,Ka(p,"contextmenu",S=>{S.preventDefault(),u(S)})),C=Zr(f,S=>{const{code:A}=S;n.triggerKeys.includes(A)&&(S.preventDefault(),u(S))});return t({triggerRef:d}),(S,A)=>(N(),xe(T(OB),{id:T(o),"virtual-ref":S.virtualRef,open:T(a),"virtual-triggering":S.virtualTriggering,class:Y(T(r).e("trigger")),onBlur:T(w),onClick:T(b),onContextmenu:T(E),onFocus:T(y),onMouseenter:T(g),onMouseleave:T(_),onKeydown:T(C)},{default:ee(()=>[Ie(S.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}));var cU=ft(lU,[["__file","trigger.vue"]]);const uU=pt({to:{type:Fe([String,Object]),required:!0},disabled:Boolean});var dU=ft(ke({__name:"teleport",props:uU,setup(e){return(t,n)=>t.disabled?Ie(t.$slots,"default",{key:0}):(N(),xe(JT,{key:1,to:t.to},[Ie(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const s4=pn(dU),fU=ke(je(we({},ke({name:"ElTooltipContent",inheritAttrs:!1})),{props:di,setup(e,{expose:t}){const n=e,{selector:r}=w6(),s=nt("tooltip"),o=ne(null);let a;const{controlled:l,id:c,open:u,trigger:d,onClose:f,onOpen:p,onShow:g,onHide:_,onBeforeShow:b,onBeforeHide:y}=Qe(Jm,void 0),w=W(()=>n.transition||`${s.namespace.value}-fade-in-linear`),E=W(()=>n.persistent);fn(()=>{a==null||a()});const C=W(()=>T(E)?!0:T(u)),S=W(()=>n.disabled?!1:T(u)),A=W(()=>n.appendTo||r.value),P=W(()=>{var U;return(U=n.style)!=null?U:{}}),I=ne(!0),O=()=>{_(),I.value=!0},L=()=>{if(T(l))return!0},R=Zr(L,()=>{n.enterable&&T(d)==="hover"&&p()}),F=Zr(L,()=>{T(d)==="hover"&&f()}),H=()=>{var U,J;(J=(U=o.value)==null?void 0:U.updatePopper)==null||J.call(U),b==null||b()},V=()=>{y==null||y()},ae=()=>{g(),a=$P(W(()=>{var U;return(U=o.value)==null?void 0:U.popperContentRef}),()=>{if(T(l))return;T(d)!=="hover"&&f()})},ce=()=>{n.virtualTriggering||f()};return qe(()=>T(u),U=>{U?I.value=!1:a==null||a()},{flush:"post"}),qe(()=>n.content,()=>{var U,J;(J=(U=o.value)==null?void 0:U.updatePopper)==null||J.call(U)}),t({contentRef:o}),(U,J)=>(N(),xe(T(s4),{disabled:!U.teleported,to:T(A)},{default:ee(()=>[te(Ds,{name:T(w),onAfterLeave:O,onBeforeEnter:H,onAfterEnter:ae,onBeforeLeave:V},{default:ee(()=>[T(C)?Nt((N(),xe(T(eU),An({key:0,id:T(c),ref_key:"contentRef",ref:o},U.$attrs,{"aria-label":U.ariaLabel,"aria-hidden":I.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,T(P)],"reference-el":U.referenceEl,"trigger-target-el":U.triggerTargetEl,visible:T(S),"z-index":U.zIndex,onMouseenter:T(R),onMouseleave:T(F),onBlur:ce,onClose:T(f)}),{default:ee(()=>[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,T(S)]]):re("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}}));var pU=ft(fU,[["__file","content.vue"]]);const hU=ke(je(we({},ke({name:"ElTooltip"})),{props:sU,emits:oU,setup(e,{expose:t,emit:n}){const r=e;nj();const s=Sr(),o=ne(),a=ne(),l=()=>{var w;const E=T(o);E&&((w=E.popperInstanceRef)==null||w.update())},c=ne(!1),u=ne(),{show:d,hide:f,hasUpdateHandler:p}=rU({indicator:c,toggleReason:u}),{onOpen:g,onClose:_}=rj({showAfter:wi(r,"showAfter"),hideAfter:wi(r,"hideAfter"),autoClose:wi(r,"autoClose"),open:d,close:f}),b=W(()=>ti(r.visible)&&!p.value);ln(Jm,{controlled:b,id:s,open:rd(c),trigger:wi(r,"trigger"),onOpen:w=>{g(w)},onClose:w=>{_(w)},onToggle:w=>{T(c)?_(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}),qe(()=>r.disabled,w=>{w&&c.value&&(c.value=!1)});const y=w=>{var E,C;const S=(C=(E=a.value)==null?void 0:E.contentRef)==null?void 0:C.popperContentRef,A=(w==null?void 0:w.relatedTarget)||document.activeElement;return S&&S.contains(A)};return Gy(()=>c.value&&f()),t({popperRef:o,contentRef:a,isFocusInsideContent:y,updatePopper:l,onOpen:g,onClose:_,hide:f}),(w,E)=>(N(),xe(T(tU),{ref_key:"popperRef",ref:o,role:w.role},{default:ee(()=>[te(cU,{disabled:w.disabled,trigger:w.trigger,"trigger-keys":w.triggerKeys,"virtual-ref":w.virtualRef,"virtual-triggering":w.virtualTriggering},{default:ee(()=>[w.$slots.default?Ie(w.$slots,"default",{key:0}):re("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),te(pU,{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:ee(()=>[Ie(w.$slots,"content",{},()=>[w.rawContent?(N(),q("span",{key:0,innerHTML:w.content},null,8,["innerHTML"])):(N(),q("span",{key:1},Ne(w.content),1))]),w.showArrow?(N(),xe(T(TB),{key:0,"arrow-offset":w.arrowOffset},null,8,["arrow-offset"])):re("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 gU=ft(hU,[["__file","tooltip.vue"]]);const fi=pn(gU),mU=pt({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:Fe([String,Object,Array])},offset:{type:Fe(Array),default:[0,0]},badgeClass:{type:String}}),_U=ke(je(we({},ke({name:"ElBadge"})),{props:mU,setup(e,{expose:t}){const n=e,r=nt("badge"),s=W(()=>n.isDot?"":Qt(n.value)&&Qt(n.max)?n.max<n.value?`${n.max}+`:n.value===0&&!n.showZero?"":`${n.value}`:`${n.value}`),o=W(()=>{var a,l,c,u,d;return[{backgroundColor:n.color,marginRight:Qi(-((l=(a=n.offset)==null?void 0:a[0])!=null?l:0)),marginTop:Qi((u=(c=n.offset)==null?void 0:c[1])!=null?u:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:s}),(a,l)=>(N(),q("div",{class:Y(T(r).b())},[Ie(a.$slots,"default"),te(Ds,{name:`${T(r).namespace.value}-zoom-in-center`,persisted:""},{default:ee(()=>[Nt(G("sup",{class:Y([T(r).e("content"),T(r).em("content",a.type),T(r).is("fixed",!!a.$slots.default),T(r).is("dot",a.isDot),a.badgeClass]),style:Ze(T(o)),textContent:Ne(T(s))},null,14,["textContent"]),[[wn,!a.hidden&&(T(s)||a.isDot)]])]),_:1},8,["name"])],2))}}));var vU=ft(_U,[["__file","badge.vue"]]);const bU=pn(vU),o4=Symbol("buttonGroupContextKey"),yU=(e,t)=>{Fa({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=Qe(o4,void 0),r=nf("button"),{form:s}=Fo(),o=Er(W(()=>n==null?void 0:n.size)),a=ss(),l=ne(),c=Ea(),u=W(()=>e.type||(n==null?void 0:n.type)||""),d=W(()=>{var _,b,y;return(y=(b=e.autoInsertSpace)!=null?b:(_=r.value)==null?void 0:_.autoInsertSpace)!=null?y:!1}),f=W(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=W(()=>{var _;const b=(_=c.default)==null?void 0:_.call(c);if(d.value&&(b==null?void 0:b.length)===1){const y=b[0];if((y==null?void 0:y.type)===Ta){const w=y.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:p,handleClick:_=>{if(a.value||e.loading){_.stopPropagation();return}e.nativeType==="reset"&&(s==null||s.resetFields()),t("click",_)}}},Ym=pt({size:Fs,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:ns},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:ns,default:()=>Ma},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:Fe([String,Object]),default:"button"}}),wU={click:e=>e instanceof MouseEvent};function kn(e,t){CU(e)&&(e="100%");var n=SU(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 df(e){return Math.min(1,Math.max(0,e))}function CU(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function SU(e){return typeof e=="string"&&e.indexOf("%")!==-1}function a4(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ff(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Uo(e){return e.length===1?"0"+e:String(e)}function xU(e,t,n){return{r:kn(e,255)*255,g:kn(t,255)*255,b:kn(n,255)*255}}function l4(e,t,n){e=kn(e,255),t=kn(t,255),n=kn(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 Xm(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 EU(e,t,n){var r,s,o;if(e=kn(e,360),t=kn(t,100),n=kn(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=Xm(l,a,e+1/3),s=Xm(l,a,e),o=Xm(l,a,e-1/3)}return{r:r*255,g:s*255,b:o*255}}function c4(e,t,n){e=kn(e,255),t=kn(t,255),n=kn(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 AU(e,t,n){e=kn(e,360)*6,t=kn(t,100),n=kn(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 u4(e,t,n,r){var s=[Uo(Math.round(e).toString(16)),Uo(Math.round(t).toString(16)),Uo(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 TU(e,t,n,r,s){var o=[Uo(Math.round(e).toString(16)),Uo(Math.round(t).toString(16)),Uo(Math.round(n).toString(16)),Uo(kU(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 kU(e){return Math.round(parseFloat(e)*255).toString(16)}function d4(e){return pi(e)/255}function pi(e){return parseInt(e,16)}function PU(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Zm={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 OU(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=DU(e)),typeof e=="object"&&(os(e.r)&&os(e.g)&&os(e.b)?(t=xU(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):os(e.h)&&os(e.s)&&os(e.v)?(r=ff(e.s),s=ff(e.v),t=AU(e.h,r,s),a=!0,l="hsv"):os(e.h)&&os(e.s)&&os(e.l)&&(r=ff(e.s),o=ff(e.l),t=EU(e.h,r,o),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=a4(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 NU="[-\\+]?\\d+%?",IU="[-\\+]?\\d*\\.\\d+%?",Us="(?:".concat(IU,")|(?:").concat(NU,")"),Qm="[\\s|\\(]+(".concat(Us,")[,|\\s]+(").concat(Us,")[,|\\s]+(").concat(Us,")\\s*\\)?"),e_="[\\s|\\(]+(".concat(Us,")[,|\\s]+(").concat(Us,")[,|\\s]+(").concat(Us,")[,|\\s]+(").concat(Us,")\\s*\\)?"),nr={CSS_UNIT:new RegExp(Us),rgb:new RegExp("rgb"+Qm),rgba:new RegExp("rgba"+e_),hsl:new RegExp("hsl"+Qm),hsla:new RegExp("hsla"+e_),hsv:new RegExp("hsv"+Qm),hsva:new RegExp("hsva"+e_),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 DU(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Zm[e])e=Zm[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=nr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=nr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=nr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=nr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=nr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=nr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=nr.hex8.exec(e),n?{r:pi(n[1]),g:pi(n[2]),b:pi(n[3]),a:d4(n[4]),format:t?"name":"hex8"}:(n=nr.hex6.exec(e),n?{r:pi(n[1]),g:pi(n[2]),b:pi(n[3]),format:t?"name":"hex"}:(n=nr.hex4.exec(e),n?{r:pi(n[1]+n[1]),g:pi(n[2]+n[2]),b:pi(n[3]+n[3]),a:d4(n[4]+n[4]),format:t?"name":"hex8"}:(n=nr.hex3.exec(e),n?{r:pi(n[1]+n[1]),g:pi(n[2]+n[2]),b:pi(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function os(e){return!!nr.CSS_UNIT.exec(String(e))}var RU=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=PU(t)),this.originalInput=t;var s=OU(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=a4(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=c4(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=c4(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=l4(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=l4(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),u4(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),TU(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(kn(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(kn(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="#"+u4(this.r,this.g,this.b,!1),n=0,r=Object.entries(Zm);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=df(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=df(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=df(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=df(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 $s(e,t=20){return e.mix("#141414",t).toString()}function LU(e){const t=ss(),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 RU(s),l=e.dark?a.tint(20).toString():$s(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?$s(a,90):a.tint(90).toString(),"text-color":s,"border-color":e.dark?$s(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?$s(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?$s(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?$s(a,80):a.tint(80).toString());else{const c=e.dark?$s(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?$s(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 MU=ke(je(we({},ke({name:"ElButton"})),{props:Ym,emits:wU,setup(e,{expose:t,emit:n}){const r=e,s=LU(r),o=nt("button"),{_ref:a,_size:l,_type:c,_disabled:u,_props:d,shouldAddSpace:f,handleClick:p}=yU(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}),(_,b)=>(N(),xe(Zt(_.tag),An({ref_key:"_ref",ref:a},T(d),{class:T(g),style:T(s),onClick:T(p)}),{default:ee(()=>[_.loading?(N(),q(ze,{key:0},[_.$slots.loading?Ie(_.$slots,"loading",{key:0}):(N(),xe(T(Ft),{key:1,class:Y(T(o).is("loading"))},{default:ee(()=>[(N(),xe(Zt(_.loadingIcon)))]),_:1},8,["class"]))],64)):_.icon||_.$slots.icon?(N(),xe(T(Ft),{key:1},{default:ee(()=>[_.icon?(N(),xe(Zt(_.icon),{key:0})):Ie(_.$slots,"icon",{key:1})]),_:3})):re("v-if",!0),_.$slots.default?(N(),q("span",{key:2,class:Y({[T(o).em("text","expand")]:T(f)})},[Ie(_.$slots,"default")],2)):re("v-if",!0)]),_:3},16,["class","style","onClick"]))}}));var FU=ft(MU,[["__file","button.vue"]]);const jU={size:Ym.size,type:Ym.type},BU=ke(je(we({},ke({name:"ElButtonGroup"})),{props:jU,setup(e){const t=e;ln(o4,Dn({size:wi(t,"size"),type:wi(t,"type")}));const n=nt("button");return(r,s)=>(N(),q("div",{class:Y(T(n).b("group"))},[Ie(r.$slots,"default")],2))}}));var f4=ft(BU,[["__file","button-group.vue"]]);const $o=pn(FU,{ButtonGroup:f4});is(f4);var Vs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function p4(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const qs=new Map;if(Dt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of qs.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function h4(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:br(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,p=n.length&&n.some(_=>_==null?void 0:_.contains(a))||n.length&&n.includes(l),g=o&&(o.contains(a)||o.contains(l));c||u||d||f||p||g||t.value(r,s)}}const g4={beforeMount(e,t){qs.has(e)||qs.set(e,[]),qs.get(e).push({documentHandler:h4(e,t),bindingFn:t.value})},updated(e,t){qs.has(e)||qs.set(e,[]);const n=qs.get(e),r=n.findIndex(o=>o.bindingFn===t.oldValue),s={documentHandler:h4(e,t),bindingFn:t.value};r>=0?n.splice(r,1,s):n.push(s)},unmounted(e){qs.delete(e)}},t_="_trap-focus-children",Vo=[],m4=e=>{if(Vo.length===0)return;const t=Vo[Vo.length-1][t_];if(t.length>0&&e.code===Do.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())}},UU={beforeMount(e){e[t_]=pw(e),Vo.push(e),Vo.length<=1&&document.addEventListener("keydown",m4)},updated(e){ht(()=>{e[t_]=pw(e)})},unmounted(){Vo.shift(),Vo.length===0&&document.removeEventListener("keydown",m4)}};var _4=!1,qo,n_,i_,pf,hf,v4,gf,r_,s_,o_,b4,a_,l_,y4,w4;function ri(){if(!_4){_4=!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(a_=/\b(iPhone|iP[ao]d)/.exec(e),l_=/\b(iP[ao]d)/.exec(e),o_=/Android/i.exec(e),y4=/FBAN\/\w+;/i.exec(e),w4=/Mobile/i.exec(e),b4=!!/Win64/.exec(e),t){qo=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,qo&&document&&document.documentMode&&(qo=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);v4=r?parseFloat(r[1])+4:qo,n_=t[2]?parseFloat(t[2]):NaN,i_=t[3]?parseFloat(t[3]):NaN,pf=t[4]?parseFloat(t[4]):NaN,pf?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),hf=t&&t[1]?parseFloat(t[1]):NaN):hf=NaN}else qo=n_=i_=hf=pf=NaN;if(n){if(n[1]){var s=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);gf=s?parseFloat(s[1].replace("_",".")):!0}else gf=!1;r_=!!n[2],s_=!!n[3]}else gf=r_=s_=!1}}var c_={ie:function(){return ri()||qo},ieCompatibilityMode:function(){return ri()||v4>qo},ie64:function(){return c_.ie()&&b4},firefox:function(){return ri()||n_},opera:function(){return ri()||i_},webkit:function(){return ri()||pf},safari:function(){return c_.webkit()},chrome:function(){return ri()||hf},windows:function(){return ri()||r_},osx:function(){return ri()||gf},linux:function(){return ri()||s_},iphone:function(){return ri()||a_},mobile:function(){return ri()||a_||l_||o_||w4},nativeApp:function(){return ri()||y4},android:function(){return ri()||o_},ipad:function(){return ri()||l_}},$U=c_,mf=!!(typeof window<"u"&&window.document&&window.document.createElement),VU={canUseDOM:mf,canUseWorkers:typeof Worker<"u",canUseEventListeners:mf&&!!(window.addEventListener||window.attachEvent),canUseViewport:mf&&!!window.screen,isInWorker:!mf},C4=VU,S4;C4.canUseDOM&&(S4=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function qU(e,t){if(!C4.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&&S4&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var zU=qU,x4=10,E4=40,A4=800;function T4(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*x4,s=n*x4,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||s)&&e.deltaMode&&(e.deltaMode==1?(r*=E4,s*=E4):(r*=A4,s*=A4)),r&&!t&&(t=r<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:s}}T4.getEventType=function(){return $U.firefox()?"DOMMouseScroll":zU("wheel")?"wheel":"mousewheel"};var HU=T4;/**
|
|
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 GU=function(e,t){if(e&&e.addEventListener){const n=function(r){const s=HU(r);t&&Reflect.apply(t,this,[r,s])};e.addEventListener("wheel",n,{passive:!0})}},WU={beforeMount(e,t){GU(e,t.value)}},k4=we({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:Fs,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},js(["ariaControls"])),P4={[Cn]:e=>st(e)||Qt(e)||ti(e),change:e=>st(e)||Qt(e)||ti(e)},Ja=Symbol("checkboxGroupContextKey"),KU=({model:e,isChecked:t})=>{const n=Qe(Ja,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!Zi(l)&&e.value.length>=l&&!t.value||!Zi(c)&&e.value.length<=c&&t.value});return{isDisabled:ss(W(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},JU=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:s,isLabeledByFormItem:o})=>{const a=Qe(Ja,void 0),{formItem:l}=Fo(),{emit:c}=Et();function u(_){var b,y,w,E;return[!0,e.trueValue,e.trueLabel].includes(_)?(y=(b=e.trueValue)!=null?b:e.trueLabel)!=null?y:!0:(E=(w=e.falseValue)!=null?w:e.falseLabel)!=null?E:!1}function d(_,b){c("change",u(_),b)}function f(_){if(n.value)return;const b=_.target;c("change",u(b.checked),_)}function p(_){return at(this,null,function*(){n.value||!r.value&&!s.value&&o.value&&(_.composedPath().some(w=>w.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),yield ht(),d(t.value,_)))})}const g=W(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return qe(()=>e.modelValue,()=>{g.value&&(l==null||l.validate("change").catch(_=>void 0))}),{handleChange:f,onClickRoot:p}},YU=e=>{const t=ne(!1),{emit:n}=Et(),r=Qe(Ja,void 0),s=W(()=>Zi(r)===!1),o=ne(!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&&Be(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}},XU=(e,t,{model:n})=>{const r=Qe(Ja,void 0),s=ne(!1),o=W(()=>Ac(e.value)?e.label:e.value),a=W(()=>{const d=n.value;return ti(d)?d:Be(d)?ct(o.value)?d.map(it).some(f=>Da(f,o.value)):d.map(it).includes(o.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),l=Er(W(()=>{var d;return(d=r==null?void 0:r.size)==null?void 0:d.value}),{prop:!0}),c=Er(W(()=>{var d;return(d=r==null?void 0:r.size)==null?void 0:d.value})),u=W(()=>!!t.default||!Ac(o.value));return{checkboxButtonSize:l,isChecked:a,isFocused:s,checkboxSize:c,hasOwnLabel:u,actualValue:o}},O4=(e,t)=>{const{formItem:n}=Fo(),{model:r,isGroup:s,isLimitExceeded:o}=YU(e),{isFocused:a,isChecked:l,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,actualValue:f}=XU(e,t,{model:r}),{isDisabled:p}=KU({model:r,isChecked:l}),{inputId:g,isLabeledByFormItem:_}=Fc(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:s}),{handleChange:b,onClickRoot:y}=JU(e,{model:r,isLimitExceeded:o,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:_});return(()=>{function E(){var C,S;Be(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&&E()})(),Fa({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&&Ac(e.value))),Fa({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)),Fa({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:_,isChecked:l,isDisabled:p,isFocused:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,model:r,actualValue:f,handleChange:b,onClickRoot:y}},ZU=ke(je(we({},ke({name:"ElCheckbox"})),{props:k4,emits:P4,setup(e){const t=e,n=Ea(),{inputId:r,isLabeledByFormItem:s,isChecked:o,isDisabled:a,isFocused:l,checkboxSize:c,hasOwnLabel:u,model:d,actualValue:f,handleChange:p,onClickRoot:g}=O4(t,n),_=nt("checkbox"),b=W(()=>[_.b(),_.m(c.value),_.is("disabled",a.value),_.is("bordered",t.border),_.is("checked",o.value)]),y=W(()=>[_.e("input"),_.is("disabled",a.value),_.is("checked",o.value),_.is("indeterminate",t.indeterminate),_.is("focus",l.value)]);return(w,E)=>(N(),xe(Zt(!T(u)&&T(s)?"span":"label"),{class:Y(T(b)),"aria-controls":w.indeterminate?w.ariaControls:null,onClick:T(g)},{default:ee(()=>{var C,S;return[G("span",{class:Y(T(y))},[w.trueValue||w.falseValue||w.trueLabel||w.falseLabel?Nt((N(),q("input",{key:0,id:T(r),"onUpdate:modelValue":A=>Mt(d)?d.value=A:null,class:Y(T(_).e("original")),type:"checkbox",indeterminate:w.indeterminate,name:w.name,tabindex:w.tabindex,disabled:T(a),"true-value":(C=w.trueValue)!=null?C:w.trueLabel,"false-value":(S=w.falseValue)!=null?S:w.falseLabel,onChange:T(p),onFocus:A=>l.value=!0,onBlur:A=>l.value=!1,onClick:gt(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Pd,T(d)]]):Nt((N(),q("input",{key:1,id:T(r),"onUpdate:modelValue":A=>Mt(d)?d.value=A:null,class:Y(T(_).e("original")),type:"checkbox",indeterminate:w.indeterminate,disabled:T(a),value:T(f),name:w.name,tabindex:w.tabindex,onChange:T(p),onFocus:A=>l.value=!0,onBlur:A=>l.value=!1,onClick:gt(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[Pd,T(d)]]),G("span",{class:Y(T(_).e("inner"))},null,2)],2),T(u)?(N(),q("span",{key:0,class:Y(T(_).e("label"))},[Ie(w.$slots,"default"),w.$slots.default?re("v-if",!0):(N(),q(ze,{key:0},[Je(Ne(w.label),1)],64))],2)):re("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}}));var QU=ft(ZU,[["__file","checkbox.vue"]]);const e$=ke(je(we({},ke({name:"ElCheckboxButton"})),{props:k4,emits:P4,setup(e){const t=e,n=Ea(),{isFocused:r,isChecked:s,isDisabled:o,checkboxButtonSize:a,model:l,actualValue:c,handleChange:u}=O4(t,n),d=Qe(Ja,void 0),f=nt("checkbox"),p=W(()=>{var _,b,y,w;const E=(b=(_=d==null?void 0:d.fill)==null?void 0:_.value)!=null?b:"";return{backgroundColor:E,borderColor:E,color:(w=(y=d==null?void 0:d.textColor)==null?void 0:y.value)!=null?w:"",boxShadow:E?`-1px 0 0 0 ${E}`: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(_,b)=>{var y,w;return N(),q("label",{class:Y(T(g))},[_.trueValue||_.falseValue||_.trueLabel||_.falseLabel?Nt((N(),q("input",{key:0,"onUpdate:modelValue":E=>Mt(l)?l.value=E:null,class:Y(T(f).be("button","original")),type:"checkbox",name:_.name,tabindex:_.tabindex,disabled:T(o),"true-value":(y=_.trueValue)!=null?y:_.trueLabel,"false-value":(w=_.falseValue)!=null?w:_.falseLabel,onChange:T(u),onFocus:E=>r.value=!0,onBlur:E=>r.value=!1,onClick:gt(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Pd,T(l)]]):Nt((N(),q("input",{key:1,"onUpdate:modelValue":E=>Mt(l)?l.value=E:null,class:Y(T(f).be("button","original")),type:"checkbox",name:_.name,tabindex:_.tabindex,disabled:T(o),value:T(c),onChange:T(u),onFocus:E=>r.value=!0,onBlur:E=>r.value=!1,onClick:gt(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[Pd,T(l)]]),_.$slots.default||_.label?(N(),q("span",{key:2,class:Y(T(f).be("button","inner")),style:Ze(T(s)?T(p):void 0)},[Ie(_.$slots,"default",{},()=>[Je(Ne(_.label),1)])],6)):re("v-if",!0)],2)}}}));var N4=ft(e$,[["__file","checkbox-button.vue"]]);const t$=pt(we({modelValue:{type:Fe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Fs,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}},js(["ariaLabel"]))),n$={[Cn]:e=>Be(e),change:e=>Be(e)},i$=ke(je(we({},ke({name:"ElCheckboxGroup"})),{props:t$,emits:n$,setup(e,{emit:t}){const n=e,r=nt("checkbox"),{formItem:s}=Fo(),{inputId:o,isLabeledByFormItem:a}=Fc(n,{formItemContext:s}),l=u=>at(this,null,function*(){t(Cn,u),yield ht(),t("change",u)}),c=W({get(){return n.modelValue},set(u){l(u)}});return ln(Ja,je(we({},D3(hr(n),["size","min","max","disabled","validateEvent","fill","textColor"])),{modelValue:c,changeEvent:l})),qe(()=>n.modelValue,()=>{n.validateEvent&&(s==null||s.validate("change").catch(u=>void 0))}),(u,d)=>{var f;return N(),xe(Zt(u.tag),{id:T(o),class:Y(T(r).b("group")),role:"group","aria-label":T(a)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":T(a)?(f=T(s))==null?void 0:f.labelId:void 0},{default:ee(()=>[Ie(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}));var I4=ft(i$,[["__file","checkbox-group.vue"]]);const Ya=pn(QU,{CheckboxButton:N4,CheckboxGroup:I4});is(N4),is(I4);const D4=pt({modelValue:{type:[String,Number,Boolean],default:void 0},size:Fs,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),r$=pt(je(we({},D4),{border:Boolean})),R4={[Cn]:e=>st(e)||Qt(e)||ti(e),[bm]:e=>st(e)||Qt(e)||ti(e)},L4=Symbol("radioGroupKey"),M4=(e,t)=>{const n=ne(),r=Qe(L4,void 0),s=W(()=>!!r),o=W(()=>Ac(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=Er(W(()=>r==null?void 0:r.size)),c=ss(W(()=>r==null?void 0:r.disabled)),u=ne(!1),d=W(()=>c.value||s.value&&a.value!==o.value?-1:0);return Fa({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&&Ac(e.value))),{radioRef:n,isGroup:s,radioGroup:r,focus:u,size:l,disabled:c,tabIndex:d,modelValue:a,actualValue:o}},s$=ke(je(we({},ke({name:"ElRadio"})),{props:r$,emits:R4,setup(e,{emit:t}){const n=e,r=nt("radio"),{radioRef:s,radioGroup:o,focus:a,size:l,disabled:c,modelValue:u,actualValue:d}=M4(n,t);function f(){ht(()=>t("change",u.value))}return(p,g)=>{var _;return N(),q("label",{class:Y([T(r).b(),T(r).is("disabled",T(c)),T(r).is("focus",T(a)),T(r).is("bordered",p.border),T(r).is("checked",T(u)===T(d)),T(r).m(T(l))])},[G("span",{class:Y([T(r).e("input"),T(r).is("disabled",T(c)),T(r).is("checked",T(u)===T(d))])},[Nt(G("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":b=>Mt(u)?u.value=b:null,class:Y(T(r).e("original")),value:T(d),name:p.name||((_=T(o))==null?void 0:_.name),disabled:T(c),checked:T(u)===T(d),type:"radio",onFocus:b=>a.value=!0,onBlur:b=>a.value=!1,onChange:f,onClick:gt(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[lw,T(u)]]),G("span",{class:Y(T(r).e("inner"))},null,2)],2),G("span",{class:Y(T(r).e("label")),onKeydown:gt(()=>{},["stop"])},[Ie(p.$slots,"default",{},()=>[Je(Ne(p.label),1)])],42,["onKeydown"])],2)}}}));var o$=ft(s$,[["__file","radio.vue"]]);const a$=pt(we({},D4)),l$=ke(je(we({},ke({name:"ElRadioButton"})),{props:a$,setup(e){const t=e,n=nt("radio"),{radioRef:r,focus:s,size:o,disabled:a,modelValue:l,radioGroup:c,actualValue:u}=M4(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,p)=>{var g;return N(),q("label",{class:Y([T(n).b("button"),T(n).is("active",T(l)===T(u)),T(n).is("disabled",T(a)),T(n).is("focus",T(s)),T(n).bm("button",T(o))])},[Nt(G("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":_=>Mt(l)?l.value=_:null,class:Y(T(n).be("button","original-radio")),value:T(u),type:"radio",name:f.name||((g=T(c))==null?void 0:g.name),disabled:T(a),onFocus:_=>s.value=!0,onBlur:_=>s.value=!1,onClick:gt(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[lw,T(l)]]),G("span",{class:Y(T(n).be("button","inner")),style:Ze(T(l)===T(u)?T(d):{}),onKeydown:gt(()=>{},["stop"])},[Ie(f.$slots,"default",{},()=>[Je(Ne(f.label),1)])],46,["onKeydown"])],2)}}}));var F4=ft(l$,[["__file","radio-button.vue"]]);const c$=pt(we({id:{type:String,default:void 0},size:Fs,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}},js(["ariaLabel"]))),u$=R4,d$=ke(je(we({},ke({name:"ElRadioGroup"})),{props:c$,emits:u$,setup(e,{emit:t}){const n=e,r=nt("radio"),s=Sr(),o=ne(),{formItem:a}=Fo(),{inputId:l,isLabeledByFormItem:c}=Fc(n,{formItemContext:a}),u=f=>{t(Cn,f),ht(()=>t("change",f))};Rt(()=>{const f=o.value.querySelectorAll("[type=radio]"),p=f[0];!Array.from(f).some(g=>g.checked)&&p&&(p.tabIndex=0)});const d=W(()=>n.name||s.value);return ln(L4,Dn(je(we({},hr(n)),{changeEvent:u,name:d}))),qe(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(f=>void 0))}),(f,p)=>(N(),q("div",{id:T(l),ref_key:"radioGroupRef",ref:o,class:Y(T(r).b("group")),role:"radiogroup","aria-label":T(c)?void 0:f.ariaLabel||"radio-group","aria-labelledby":T(c)?T(a).labelId:void 0},[Ie(f.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}}));var j4=ft(d$,[["__file","radio-group.vue"]]);const f$=pn(o$,{RadioButton:F4,RadioGroup:j4});is(j4),is(F4);const u_=pt({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Tc},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),p$={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},h$=ke(je(we({},ke({name:"ElTag"})),{props:u_,emits:p$,setup(e,{emit:t}){const n=e,r=Er(),s=nt("tag"),o=W(()=>{const{type:u,hit:d,effect:f,closable:p,round:g}=n;return[s.b(),s.is("closable",p),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?(N(),q("span",{key:0,class:Y(T(o)),style:Ze({backgroundColor:u.color}),onClick:l},[G("span",{class:Y(T(s).e("content"))},[Ie(u.$slots,"default")],2),u.closable?(N(),xe(T(Ft),{key:0,class:Y(T(s).e("close")),onClick:gt(a,["stop"])},{default:ee(()=>[te(T(La))]),_:1},8,["class","onClick"])):re("v-if",!0)],6)):(N(),xe(Ds,{key:1,name:`${T(s).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:c},{default:ee(()=>[G("span",{class:Y(T(o)),style:Ze({backgroundColor:u.color}),onClick:l},[G("span",{class:Y(T(s).e("content"))},[Ie(u.$slots,"default")],2),u.closable?(N(),xe(T(Ft),{key:0,class:Y(T(s).e("close")),onClick:gt(a,["stop"])},{default:ee(()=>[te(T(La))]),_:1},8,["class","onClick"])):re("v-if",!0)],6)]),_:3},8,["name"]))}}));var g$=ft(h$,[["__file","tag.vue"]]);const qc=pn(g$),m$=pt({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:Fe([String,Array,Object])},zIndex:{type:Fe([String,Number])}}),_$={click:e=>e instanceof MouseEvent},v$="overlay";var b$=ke({name:"ElOverlay",props:m$,emits:_$,setup(e,{slots:t,emit:n}){const r=nt(v$),s=c=>{n("click",c)},{onClick:o,onMousedown:a,onMouseup:l}=Om(e.customMaskEvent?void 0:s);return()=>e.mask?te("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:a,onMouseup:l},[Ie(t,"default")],Jd.STYLE|Jd.CLASS|Jd.PROPS,["onClick","onMouseup","onMousedown"]):dt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ie(t,"default")])}});const B4=b$,U4=Symbol("dialogInjectionKey"),$4=pt({center:Boolean,alignCenter:Boolean,closeIcon:{type:ns},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),y$={close:()=>!0},w$=ke(je(we({},ke({name:"ElDialogContent"})),{props:$4,emits:y$,setup(e,{expose:t}){const n=e,{t:r}=ja(),{Close:s}=DM,{dialogRef:o,headerRef:a,bodyId:l,ns:c,style:u}=Qe(U4),{focusTrapRef:d}=Qe(Z6),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}]),p=MM(d,o),g=W(()=>n.draggable),_=W(()=>n.overflow),{resetPosition:b}=z3(o,a,g,_);return t({resetPosition:b}),(y,w)=>(N(),q("div",{ref:T(p),class:Y(T(f)),style:Ze(T(u)),tabindex:"-1"},[G("header",{ref_key:"headerRef",ref:a,class:Y([T(c).e("header"),{"show-close":y.showClose}])},[Ie(y.$slots,"header",{},()=>[G("span",{role:"heading","aria-level":y.ariaLevel,class:Y(T(c).e("title"))},Ne(y.title),11,["aria-level"])]),y.showClose?(N(),q("button",{key:0,"aria-label":T(r)("el.dialog.close"),class:Y(T(c).e("headerbtn")),type:"button",onClick:E=>y.$emit("close")},[te(T(Ft),{class:Y(T(c).e("close"))},{default:ee(()=>[(N(),xe(Zt(y.closeIcon||T(s))))]),_:1},8,["class"])],10,["aria-label","onClick"])):re("v-if",!0)],2),G("div",{id:T(l),class:Y(T(c).e("body"))},[Ie(y.$slots,"default")],10,["id"]),y.$slots.footer?(N(),q("footer",{key:0,class:Y(T(c).e("footer"))},[Ie(y.$slots,"footer")],2)):re("v-if",!0)],6))}}));var C$=ft(w$,[["__file","dialog-content.vue"]]);const S$=pt(je(we({},$4),{appendToBody:Boolean,appendTo:{type:Fe([String,Object]),default:"body"},beforeClose:{type:Fe(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"}})),x$={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Cn]:e=>ti(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},E$=(e,t)=>{var n;const s=Et().emit,{nextZIndex:o}=Nm();let a="";const l=Sr(),c=Sr(),u=ne(!1),d=ne(!1),f=ne(!1),p=ne((n=e.zIndex)!=null?n:o());let g,_;const b=nf("namespace",Pc),y=W(()=>{const ce={},U=`--${b.value}-dialog`;return e.fullscreen||(e.top&&(ce[`${U}-margin-top`]=e.top),e.width&&(ce[`${U}-width`]=Qi(e.width))),ce}),w=W(()=>e.alignCenter?{display:"flex"}:{});function E(){s("opened")}function C(){s("closed"),s(Cn,!1),e.destroyOnClose&&(f.value=!1)}function S(){s("close")}function A(){_==null||_(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=$g(()=>L(),e.openDelay):L()}function P(){g==null||g(),_==null||_(),e.closeDelay&&e.closeDelay>0?{stop:_}=$g(()=>R(),e.closeDelay):R()}function I(){function ce(U){U||(d.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(ce):P()}function O(){e.closeOnClickModal&&I()}function L(){Dt&&(u.value=!0)}function R(){u.value=!1}function F(){s("openAutoFocus")}function H(){s("closeAutoFocus")}function V(ce){var U;((U=ce.detail)==null?void 0:U.focusReason)==="pointer"&&ce.preventDefault()}e.lockScroll&&W3(u);function ae(){e.closeOnPressEscape&&I()}return qe(()=>e.modelValue,ce=>{ce?(d.value=!1,A(),f.value=!0,p.value=N3(e.zIndex)?o():p.value++,ht(()=>{s("open"),t.value&&(t.value.scrollTop=0)})):u.value&&P()}),qe(()=>e.fullscreen,ce=>{t.value&&(ce?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),Rt(()=>{e.modelValue&&(u.value=!0,f.value=!0,A())}),{afterEnter:E,afterLeave:C,beforeLeave:S,handleClose:I,onModalClick:O,close:P,doClose:R,onOpenAutoFocus:F,onCloseAutoFocus:H,onCloseRequested:ae,onFocusoutPrevented:V,titleId:l,bodyId:c,closed:d,style:y,overlayDialogStyle:w,rendered:f,visible:u,zIndex:p}},A$=ke(je(we({},ke({name:"ElDialog",inheritAttrs:!1})),{props:S$,emits:x$,setup(e,{expose:t}){const n=e,r=Ea();Fa({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=ne(),a=ne(),l=ne(),{visible:c,titleId:u,bodyId:d,style:f,overlayDialogStyle:p,rendered:g,zIndex:_,afterEnter:b,afterLeave:y,beforeLeave:w,handleClose:E,onModalClick:C,onOpenAutoFocus:S,onCloseAutoFocus:A,onCloseRequested:P,onFocusoutPrevented:I}=E$(n,o);ln(U4,{dialogRef:o,headerRef:a,bodyId:d,ns:s,rendered:g,style:f});const O=Om(C),L=W(()=>n.draggable&&!n.fullscreen);return t({visible:c,dialogContentRef:l,resetPosition:()=>{var F;(F=l.value)==null||F.resetPosition()}}),(F,H)=>(N(),xe(T(s4),{to:F.appendTo,disabled:F.appendTo!=="body"?!1:!F.appendToBody},{default:ee(()=>[te(Ds,{name:"dialog-fade",onAfterEnter:T(b),onAfterLeave:T(y),onBeforeLeave:T(w),persisted:""},{default:ee(()=>[Nt(te(T(B4),{"custom-mask-event":"",mask:F.modal,"overlay-class":F.modalClass,"z-index":T(_)},{default:ee(()=>[G("div",{role:"dialog","aria-modal":"true","aria-label":F.title||void 0,"aria-labelledby":F.title?void 0:T(u),"aria-describedby":T(d),class:Y(`${T(s).namespace.value}-overlay-dialog`),style:Ze(T(p)),onClick:T(O).onClick,onMousedown:T(O).onMousedown,onMouseup:T(O).onMouseup},[te(T(Km),{loop:"",trapped:T(c),"focus-start-el":"container",onFocusAfterTrapped:T(S),onFocusAfterReleased:T(A),onFocusoutPrevented:T(I),onReleaseRequested:T(P)},{default:ee(()=>[T(g)?(N(),xe(C$,An({key:0,ref_key:"dialogContentRef",ref:l},F.$attrs,{center:F.center,"align-center":F.alignCenter,"close-icon":F.closeIcon,draggable:T(L),overflow:F.overflow,fullscreen:F.fullscreen,"show-close":F.showClose,title:F.title,"aria-level":F.headerAriaLevel,onClose:T(E)}),yg({header:ee(()=>[F.$slots.title?Ie(F.$slots,"title",{key:1}):Ie(F.$slots,"header",{key:0,close:T(E),titleId:T(u),titleClass:T(s).e("title")})]),default:ee(()=>[Ie(F.$slots,"default")]),_:2},[F.$slots.footer?{name:"footer",fn:ee(()=>[Ie(F.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):re("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,T(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}}));var T$=ft(A$,[["__file","dialog.vue"]]);const zc=pn(T$),k$=pt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Fe(String),default:"solid"}}),P$=ke(je(we({},ke({name:"ElDivider"})),{props:k$,setup(e){const t=e,n=nt("divider"),r=W(()=>n.cssVar({"border-style":t.borderStyle}));return(s,o)=>(N(),q("div",{class:Y([T(n).b(),T(n).m(s.direction)]),style:Ze(T(r)),role:"separator"},[s.$slots.default&&s.direction!=="vertical"?(N(),q("div",{key:0,class:Y([T(n).e("text"),T(n).is(s.contentPosition)])},[Ie(s.$slots,"default")],2)):re("v-if",!0)],6))}}));var O$=ft(P$,[["__file","divider.vue"]]);const N$=pn(O$),I$=ke({inheritAttrs:!1});function D$(e,t,n,r,s,o){return Ie(e.$slots,"default")}var R$=ft(I$,[["render",D$],["__file","collection.vue"]]);const L$=ke({name:"ElCollectionItem",inheritAttrs:!1});function M$(e,t,n,r,s,o){return Ie(e.$slots,"default")}var F$=ft(L$,[["render",M$],["__file","collection-item.vue"]]);const j$="data-el-collection-item",B$=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),s=Symbol(n),o=je(we({},R$),{name:t,setup(){const l=ne(null),c=new Map;ln(r,{itemMap:c,getItems:()=>{const d=T(l);if(!d)return[];const f=Array.from(d.querySelectorAll(`[${j$}]`));return[...c.values()].sort((g,_)=>f.indexOf(g.ref)-f.indexOf(_.ref))},collectionRef:l})}}),a=je(we({},F$),{name:n,setup(l,{attrs:c}){const u=ne(null),d=Qe(r,void 0);ln(s,{collectionItemRef:u}),Rt(()=>{const f=T(u);f&&d.itemMap.set(f,we({ref:f},c))}),fn(()=>{const f=T(u);d.itemMap.delete(f)})}});return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:s,ElCollection:o,ElCollectionItem:a}},d_=pt({trigger:Vc.trigger,effect:je(we({},di.effect),{default:"light"}),type:{type:Fe(String)},placement:{type:Fe(String),default:"bottom"},popperOptions:{type:Fe(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:Fe([Number,String]),default:0},maxHeight:{type:Fe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:Fe(Object)},teleported:di.teleported});pt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:ns}}),pt({onKeydown:{type:Fe(Function)}}),B$("Dropdown");const V4=Symbol("ElSelectGroup"),_f=Symbol("ElSelect");function U$(e,t){const n=Qe(_f),r=Qe(V4,{disabled:!1}),s=W(()=>d(Yi(n.props.modelValue),e.value)),o=W(()=>{var g;if(n.props.multiple){const _=Yi((g=n.props.modelValue)!=null?g:[]);return!s.value&&_.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=W(()=>e.label||(ct(e.value)?"":e.value)),l=W(()=>e.value||e.label||""),c=W(()=>e.disabled||t.groupDisabled||o.value),u=Et(),d=(g=[],_)=>{if(ct(e.value)){const b=n.props.valueKey;return g&&g.some(y=>it(Ei(y,b))===Ei(_,b))}else return g&&g.includes(_)},f=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},p=g=>{const _=new RegExp(tM(g),"i");t.visible=_.test(a.value)||e.created};return qe(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),qe(()=>e.value,(g,_)=>{const{remote:b,valueKey:y}=n.props;if(g!==_&&(n.onOptionDestroy(_,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!b){if(y&&ct(g)&&ct(_)&&g[y]===_[y])return;n.setSelected()}}),qe(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:l,itemSelected:s,isDisabled:c,hoverItem:f,updateOption:p}}const $$=ke({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=Sr(),r=W(()=>[t.be("dropdown","item"),t.is("disabled",T(l)),t.is("selected",T(a)),t.is("hovering",T(p))]),s=Dn({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:a,isDisabled:l,select:c,hoverItem:u,updateOption:d}=U$(e,s),{visible:f,hover:p}=hr(s),g=Et().proxy;c.onOptionCreate(g),fn(()=>{const b=g.value,{selected:y}=c.states,E=(c.props.multiple?y:[y]).some(C=>C.value===g.value);ht(()=>{c.states.cachedOptions.get(b)===g&&!E&&c.states.cachedOptions.delete(b)}),c.onOptionDestroy(b,g)});function _(){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:p,selectOptionClick:_,states:s}}});function V$(e,t,n,r,s,o){return Nt((N(),q("li",{id:e.id,class:Y(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:gt(e.selectOptionClick,["stop"])},[Ie(e.$slots,"default",{},()=>[G("span",null,Ne(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[wn,e.visible]])}var f_=ft($$,[["render",V$],["__file","option.vue"]]);const q$=ke({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Qe(_f),t=nt("select"),n=W(()=>e.props.popperClass),r=W(()=>e.props.multiple),s=W(()=>e.props.fitInputWidth),o=ne("");function a(){var l;o.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return Rt(()=>{a(),ci(e.selectRef,a)}),{ns:t,minWidth:o,popperClass:n,isMultiple:r,isFitInputWidth:s}}});function z$(e,t,n,r,s,o){return N(),q("div",{class:Y([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Ze({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(N(),q("div",{key:0,class:Y(e.ns.be("dropdown","header"))},[Ie(e.$slots,"header")],2)):re("v-if",!0),Ie(e.$slots,"default"),e.$slots.footer?(N(),q("div",{key:1,class:Y(e.ns.be("dropdown","footer"))},[Ie(e.$slots,"footer")],2)):re("v-if",!0)],6)}var H$=ft(q$,[["render",z$],["__file","select-dropdown.vue"]]);const G$=11,W$=(e,t)=>{const{t:n}=ja(),r=Sr(),s=nt("select"),o=nt("input"),a=Dn({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=ne(null),c=ne(null),u=ne(null),d=ne(null),f=ne(null),p=ne(null),g=ne(null),_=ne(null),b=ne(null),y=ne(null),w=ne(null),E=ne(null),{isComposing:C,handleCompositionStart:S,handleCompositionUpdate:A,handleCompositionEnd:P}=O6({afterComposition:ge=>Ye(ge)}),{wrapperRef:I,isFocused:O}=P6(f,{beforeFocus(){return U.value},afterFocus(){e.automaticDropdown&&!L.value&&(L.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(ge){var Me,vt;return((Me=u.value)==null?void 0:Me.isFocusInsideContent(ge))||((vt=d.value)==null?void 0:vt.isFocusInsideContent(ge))},afterBlur(){L.value=!1,a.menuVisibleOnFocus=!1}}),L=ne(!1),R=ne(),{form:F,formItem:H}=Fo(),{inputId:V}=Fc(e,{formItemContext:H}),{valueOnClear:ae,isEmptyValue:ce}=fj(e),U=W(()=>e.disabled||(F==null?void 0:F.disabled)),J=W(()=>Be(e.modelValue)?e.modelValue.length>0:!ce(e.modelValue)),Q=W(()=>e.clearable&&!U.value&&a.inputHovering&&J.value),X=W(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),j=W(()=>s.is("reverse",X.value&&L.value)),ye=W(()=>(H==null?void 0:H.validateState)||""),pe=W(()=>q3[ye.value]),ie=W(()=>e.remote?300:0),oe=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&&Ce.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),Ce=W(()=>me.value.filter(ge=>ge.visible).length),me=W(()=>{const ge=Array.from(a.options.values()),Me=[];return a.optionValues.forEach(vt=>{const $t=ge.findIndex(dr=>dr.value===vt);$t>-1&&Me.push(ge[$t])}),Me.length>=ge.length?Me:ge}),z=W(()=>Array.from(a.cachedOptions.values())),Z=W(()=>{const ge=me.value.filter(Me=>!Me.created).some(Me=>Me.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!ge}),_e=()=>{e.filterable&&Ve(e.filterMethod)||e.filterable&&e.remote&&Ve(e.remoteMethod)||me.value.forEach(ge=>{var Me;(Me=ge.updateOption)==null||Me.call(ge,a.inputValue)})},Pe=Er(),Re=W(()=>["small"].includes(Pe.value)?"small":"default"),Ke=W({get(){return L.value&&oe.value!==!1},set(ge){L.value=ge}}),B=W(()=>{if(e.multiple&&!Zi(e.modelValue))return Yi(e.modelValue).length===0&&!a.inputValue;const ge=Be(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Zi(ge)?!a.inputValue:!0}),K=W(()=>{var ge;const Me=(ge=e.placeholder)!=null?ge:n("el.select.placeholder");return e.multiple||!J.value?Me:a.selectedLabel}),se=W(()=>Ug?null:"mouseenter");qe(()=>e.modelValue,(ge,Me)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",Ae("")),fe(),!Da(ge,Me)&&e.validateEvent&&(H==null||H.validate("change").catch(vt=>void 0))},{flush:"post",deep:!0}),qe(()=>L.value,ge=>{ge?Ae(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",ge)}),qe(()=>a.options.entries(),()=>{var ge;if(!Dt)return;const Me=((ge=l.value)==null?void 0:ge.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!Zi(e.modelValue)||!Array.from(Me).includes(document.activeElement))&&fe(),e.defaultFirstOption&&(e.filterable||e.remote)&&Ce.value&&de()},{flush:"post"}),qe(()=>a.hoveringIndex,ge=>{Qt(ge)&&ge>-1?R.value=me.value[ge]||{}:R.value={},me.value.forEach(Me=>{Me.hover=R.value===Me})}),bo(()=>{a.isBeforeHide||_e()});const Ae=ge=>{a.previousQuery===ge||C.value||(a.previousQuery=ge,e.filterable&&Ve(e.filterMethod)?e.filterMethod(ge):e.filterable&&e.remote&&Ve(e.remoteMethod)&&e.remoteMethod(ge),e.defaultFirstOption&&(e.filterable||e.remote)&&Ce.value?ht(de):ht(Te))},de=()=>{const ge=me.value.filter($t=>$t.visible&&!$t.disabled&&!$t.states.groupDisabled),Me=ge.find($t=>$t.created),vt=ge[0];a.hoveringIndex=St(me.value,Me||vt)},fe=()=>{if(e.multiple)a.selectedLabel="";else{const Me=Be(e.modelValue)?e.modelValue[0]:e.modelValue,vt=Se(Me);a.selectedLabel=vt.currentLabel,a.selected=[vt];return}const ge=[];Zi(e.modelValue)||Yi(e.modelValue).forEach(Me=>{ge.push(Se(Me))}),a.selected=ge},Se=ge=>{let Me;const vt=Hu(ge).toLowerCase()==="object",$t=Hu(ge).toLowerCase()==="null",dr=Hu(ge).toLowerCase()==="undefined";for(let bi=a.cachedOptions.size-1;bi>=0;bi--){const ai=z.value[bi];if(vt?Ei(ai.value,e.valueKey)===Ei(ge,e.valueKey):ai.value===ge){Me={value:ge,currentLabel:ai.currentLabel,get isDisabled(){return ai.isDisabled}};break}}if(Me)return Me;const _n=vt?ge.label:!$t&&!dr?ge:"";return{value:ge,currentLabel:_n}},Te=()=>{a.hoveringIndex=me.value.findIndex(ge=>a.selected.some(Me=>Bl(Me)===Bl(ge)))},Oe=()=>{a.selectionWidth=c.value.getBoundingClientRect().width},ve=()=>{a.calculatorWidth=p.value.getBoundingClientRect().width},$e=()=>{a.collapseItemWidth=w.value.getBoundingClientRect().width},he=()=>{var ge,Me;(Me=(ge=u.value)==null?void 0:ge.updatePopper)==null||Me.call(ge)},le=()=>{var ge,Me;(Me=(ge=d.value)==null?void 0:ge.updatePopper)==null||Me.call(ge)},Le=()=>{a.inputValue.length>0&&!L.value&&(L.value=!0),Ae(a.inputValue)},Ye=ge=>{if(a.inputValue=ge.target.value,e.remote)Ct();else return Le()},Ct=Ia(()=>{Le()},ie.value),mt=ge=>{Da(e.modelValue,ge)||t(bm,ge)},Ot=ge=>qL(ge,Me=>!a.disabledOptions.has(Me)),De=ge=>{if(e.multiple&&ge.code!==Do.delete&&ge.target.value.length<=0){const Me=Yi(e.modelValue).slice(),vt=Ot(Me);if(vt<0)return;const $t=Me[vt];Me.splice(vt,1),t(Cn,Me),mt(Me),t("remove-tag",$t)}},Ge=(ge,Me)=>{const vt=a.selected.indexOf(Me);if(vt>-1&&!U.value){const $t=Yi(e.modelValue).slice();$t.splice(vt,1),t(Cn,$t),mt($t),t("remove-tag",Me.value)}ge.stopPropagation(),mn()},et=ge=>{ge.stopPropagation();const Me=e.multiple?[]:ae.value;if(e.multiple)for(const vt of a.selected)vt.isDisabled&&Me.push(vt.value);t(Cn,Me),mt(Me),a.hoveringIndex=-1,L.value=!1,t("clear"),mn()},ot=ge=>{var Me;if(e.multiple){const vt=Yi((Me=e.modelValue)!=null?Me:[]).slice(),$t=St(vt,ge.value);$t>-1?vt.splice($t,1):(e.multipleLimit<=0||vt.length<e.multipleLimit)&&vt.push(ge.value),t(Cn,vt),mt(vt),ge.created&&Ae(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(Cn,ge.value),mt(ge.value),L.value=!1;mn(),!L.value&&ht(()=>{_t(ge)})},St=(ge=[],Me)=>{if(!ct(Me))return ge.indexOf(Me);const vt=e.valueKey;let $t=-1;return ge.some((dr,_n)=>it(Ei(dr,vt))===Ei(Me,vt)?($t=_n,!0):!1),$t},_t=ge=>{var Me,vt,$t,dr,_n;const ua=Be(ge)?ge[0]:ge;let bi=null;if(ua!=null&&ua.value){const ai=me.value.filter(Cs=>Cs.value===ua.value);ai.length>0&&(bi=ai[0].$el)}if(u.value&&bi){const ai=(dr=($t=(vt=(Me=u.value)==null?void 0:Me.popperRef)==null?void 0:vt.contentRef)==null?void 0:$t.querySelector)==null?void 0:dr.call($t,`.${s.be("dropdown","wrap")}`);ai&&sM(ai,bi)}(_n=E.value)==null||_n.handleScroll()},zt=ge=>{a.options.set(ge.value,ge),a.cachedOptions.set(ge.value,ge),ge.disabled&&a.disabledOptions.set(ge.value,ge)},Xn=(ge,Me)=>{a.options.get(ge)===Me&&a.options.delete(ge)},vi=W(()=>{var ge,Me;return(Me=(ge=u.value)==null?void 0:ge.popperRef)==null?void 0:Me.contentRef}),ws=()=>{a.isBeforeHide=!1,ht(()=>_t(a.selected))},mn=()=>{var ge;(ge=f.value)==null||ge.focus()},Fl=()=>{var ge;(ge=f.value)==null||ge.blur()},pb=ge=>{et(ge)},bh=()=>{L.value=!1,O.value&&Fl()},jl=()=>{a.inputValue.length>0?a.inputValue="":L.value=!1},yh=()=>{U.value||(Ug&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:L.value=!L.value)},wh=()=>{L.value?me.value[a.hoveringIndex]&&ot(me.value[a.hoveringIndex]):yh()},Bl=ge=>ct(ge.value)?Ei(ge.value,e.valueKey):ge.value,hb=W(()=>me.value.filter(ge=>ge.visible).every(ge=>ge.disabled)),Ch=W(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),Sh=W(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),cr=ge=>{if(!L.value){L.value=!0;return}if(!(a.options.size===0||a.filteredOptionsCount===0||C.value)&&!hb.value){ge==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):ge==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const Me=me.value[a.hoveringIndex];(Me.disabled===!0||Me.states.groupDisabled===!0||!Me.visible)&&cr(ge),ht(()=>_t(R.value))}},Br=()=>{if(!c.value)return 0;const ge=window.getComputedStyle(c.value);return Number.parseFloat(ge.gap||"6px")},xh=W(()=>{const ge=Br();return{maxWidth:`${w.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-ge:a.selectionWidth}px`}}),gb=W(()=>({maxWidth:`${a.selectionWidth}px`})),ur=W(()=>({width:`${Math.max(a.calculatorWidth,G$)}px`}));return ci(c,Oe),ci(p,ve),ci(b,he),ci(I,he),ci(y,le),ci(w,$e),Rt(()=>{fe()}),{inputId:V,contentId:r,nsSelect:s,nsInput:o,states:a,isFocused:O,expanded:L,optionsArray:me,hoverOption:R,selectSize:Pe,filteredOptionsCount:Ce,resetCalculatorWidth:ve,updateTooltip:he,updateTagTooltip:le,debouncedOnInputChange:Ct,onInput:Ye,deletePrevTag:De,deleteTag:Ge,deleteSelected:et,handleOptionSelect:ot,scrollToOption:_t,hasModelValue:J,shouldShowPlaceholder:B,currentPlaceholder:K,mouseEnterEventName:se,showClose:Q,iconComponent:X,iconReverse:j,validateState:ye,validateIcon:pe,showNewOption:Z,updateOptions:_e,collapseTagSize:Re,setSelected:fe,selectDisabled:U,emptyText:oe,handleCompositionStart:S,handleCompositionUpdate:A,handleCompositionEnd:P,onOptionCreate:zt,onOptionDestroy:Xn,handleMenuEnter:ws,focus:mn,blur:Fl,handleClearClick:pb,handleClickOutside:bh,handleEsc:jl,toggleMenu:yh,selectOption:wh,getValueKey:Bl,navigateOptions:cr,dropdownMenuVisible:Ke,showTagList:Ch,collapseTagList:Sh,tagStyle:xh,collapseTagStyle:gb,inputStyle:ur,popperRef:vi,inputRef:f,tooltipRef:u,tagTooltipRef:d,calculatorRef:p,prefixRef:g,suffixRef:_,selectRef:l,wrapperRef:I,selectionRef:c,scrollbarRef:E,menuRef:b,tagMenuRef:y,collapseItemRef:w}};var K$=ke({name:"ElOptions",setup(e,{slots:t}){const n=Qe(_f);let r=[];return()=>{var s,o;const a=(s=t.default)==null?void 0:s.call(t),l=[];function c(u){Be(u)&&u.forEach(d=>{var f,p,g,_;const b=(f=(d==null?void 0:d.type)||{})==null?void 0:f.name;b==="ElOptionGroup"?c(!st(d.children)&&!Be(d.children)&&Ve((p=d.children)==null?void 0:p.default)?(g=d.children)==null?void 0:g.default():d.children):b==="ElOption"?l.push((_=d.props)==null?void 0:_.value):Be(d.children)&&c(d.children)})}return a.length&&c((o=a[0])==null?void 0:o.children),Da(l,r)||(r=l,n&&(n.states.optionValues=l)),a}}});const J$=pt(we(we({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Fs,effect:{type:Fe(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Fe(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:ns,default:Gd},fitInputWidth:Boolean,suffixIcon:{type:ns,default:M3},tagType:je(we({},u_.type),{default:"info"}),tagEffect:je(we({},u_.effect),{default:"light"}),validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:Fe(String),values:Yd,default:"bottom-start"},fallbackPlacements:{type:Fe(Array),default:["bottom-start","top-start","right","left"]}},dj),js(["ariaLabel"]))),q4="ElSelect",Y$=ke({name:q4,componentName:q4,components:{ElSelectMenu:H$,ElOption:f_,ElOptions:K$,ElTag:qc,ElScrollbar:Vm,ElTooltip:fi,ElIcon:Ft},directives:{ClickOutside:g4},props:J$,emits:[Cn,bm,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=W(()=>{const{modelValue:o,multiple:a}=e,l=a?[]:void 0;return Be(o)?a?o:l:a?l:o}),r=Dn(je(we({},hr(e)),{modelValue:n})),s=W$(r,t);return ln(_f,Dn({props:r,states:s.states,optionsArray:s.optionsArray,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy,selectRef:s.selectRef,setSelected:s.setSelected})),je(we({},s),{modelValue:n})}});function X$(e,t,n,r,s,o){const a=He("el-tag"),l=He("el-tooltip"),c=He("el-icon"),u=He("el-option"),d=He("el-options"),f=He("el-scrollbar"),p=He("el-select-menu"),g=_d("click-outside");return Nt((N(),q("div",{ref:"selectRef",class:Y([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Hl(e.mouseEnterEventName)]:_=>e.states.inputHovering=!0,onMouseleave:_=>e.states.inputHovering=!1},[te(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,onBeforeShow:e.handleMenuEnter,onHide:_=>e.states.isBeforeHide=!1},{default:ee(()=>{var _;return[G("div",{ref:"wrapperRef",class:Y([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:gt(e.toggleMenu,["prevent"])},[e.$slots.prefix?(N(),q("div",{key:0,ref:"prefixRef",class:Y(e.nsSelect.e("prefix"))},[Ie(e.$slots,"prefix")],2)):re("v-if",!0),G("div",{ref:"selectionRef",class:Y([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},()=>[(N(!0),q(ze,null,kt(e.showTagList,b=>(N(),q("div",{key:e.getValueKey(b),class:Y(e.nsSelect.e("selected-item"))},[te(a,{closable:!e.selectDisabled&&!b.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ze(e.tagStyle),onClose:y=>e.deleteTag(y,b)},{default:ee(()=>[G("span",{class:Y(e.nsSelect.e("tags-text"))},[Ie(e.$slots,"label",{label:b.currentLabel,value:b.value},()=>[Je(Ne(b.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(N(),xe(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:ee(()=>[G("div",{ref:"collapseItemRef",class:Y(e.nsSelect.e("selected-item"))},[te(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ze(e.collapseTagStyle)},{default:ee(()=>[G("span",{class:Y(e.nsSelect.e("tags-text"))}," + "+Ne(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ee(()=>[G("div",{ref:"tagMenuRef",class:Y(e.nsSelect.e("selection"))},[(N(!0),q(ze,null,kt(e.collapseTagList,b=>(N(),q("div",{key:e.getValueKey(b),class:Y(e.nsSelect.e("selected-item"))},[te(a,{class:"in-tooltip",closable:!e.selectDisabled&&!b.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:y=>e.deleteTag(y,b)},{default:ee(()=>[G("span",{class:Y(e.nsSelect.e("tags-text"))},[Ie(e.$slots,"label",{label:b.currentLabel,value:b.value},()=>[Je(Ne(b.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):re("v-if",!0)]):re("v-if",!0),e.selectDisabled?re("v-if",!0):(N(),q("div",{key:1,class:Y([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[Nt(G("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":b=>e.states.inputValue=b,type:"text",name:e.name,class:Y([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":((_=e.hoverOption)==null?void 0:_.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[Ki(gt(b=>e.navigateOptions("next"),["stop","prevent"]),["down"]),Ki(gt(b=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),Ki(gt(e.handleEsc,["stop","prevent"]),["esc"]),Ki(gt(e.selectOption,["stop","prevent"]),["enter"]),Ki(gt(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:gt(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"]),[[CP,e.states.inputValue]]),e.filterable?(N(),q("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Y(e.nsSelect.e("input-calculator")),textContent:Ne(e.states.inputValue)},null,10,["textContent"])):re("v-if",!0)],2)),e.shouldShowPlaceholder?(N(),q("div",{key:2,class:Y([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)]):(N(),q("span",{key:1},Ne(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),G("div",{ref:"suffixRef",class:Y(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(N(),xe(c,{key:0,class:Y([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ee(()=>[(N(),xe(Zt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.showClose&&e.clearIcon?(N(),xe(c,{key:1,class:Y([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:ee(()=>[(N(),xe(Zt(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon?(N(),xe(c,{key:2,class:Y([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:ee(()=>[(N(),xe(Zt(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],10,["onClick"])]}),content:ee(()=>[te(p,{ref:"menuRef"},{default:ee(()=>[e.$slots.header?(N(),q("div",{key:0,class:Y(e.nsSelect.be("dropdown","header")),onClick:gt(()=>{},["stop"])},[Ie(e.$slots,"header")],10,["onClick"])):re("v-if",!0),Nt(te(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Y([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ee(()=>[e.showNewOption?(N(),xe(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):re("v-if",!0),te(d,null,{default:ee(()=>[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?(N(),q("div",{key:1,class:Y(e.nsSelect.be("dropdown","loading"))},[Ie(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(N(),q("div",{key:2,class:Y(e.nsSelect.be("dropdown","empty"))},[Ie(e.$slots,"empty",{},()=>[G("span",null,Ne(e.emptyText),1)])],2)):re("v-if",!0),e.$slots.footer?(N(),q("div",{key:3,class:Y(e.nsSelect.be("dropdown","footer")),onClick:gt(()=>{},["stop"])},[Ie(e.$slots,"footer")],10,["onClick"])):re("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow","onHide"])],16,["onMouseleave"])),[[g,e.handleClickOutside,e.popperRef]])}var Z$=ft(Y$,[["render",X$],["__file","select.vue"]]);const Q$=ke({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=nt("select"),n=ne(null),r=Et(),s=ne([]);ln(V4,Dn(we({},hr(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=Yi(u),f=[];return d.forEach(p=>{var g,_;a(p)?f.push(p.component.proxy):(g=p.children)!=null&&g.length?f.push(...l(p.children)):(_=p.component)!=null&&_.subTree&&f.push(...l(p.component.subTree))}),f},c=()=>{s.value=l(r.subTree)};return Rt(()=>{c()}),JP(n,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function eV(e,t,n,r,s,o){return Nt((N(),q("ul",{ref:"groupRef",class:Y(e.ns.be("group","wrap"))},[G("li",{class:Y(e.ns.be("group","title"))},Ne(e.label),3),G("li",null,[G("ul",{class:Y(e.ns.b("group"))},[Ie(e.$slots,"default")],2)])],2)),[[wn,e.visible]])}var z4=ft(Q$,[["render",eV],["__file","option-group.vue"]]);const vf=pn(Z$,{Option:f_,OptionGroup:z4}),bf=is(f_);is(z4);const tV=pt({trigger:Vc.trigger,placement:d_.placement,disabled:Vc.disabled,visible:di.visible,transition:di.transition,popperOptions:d_.popperOptions,tabindex:d_.tabindex,content:di.content,popperStyle:di.popperStyle,popperClass:di.popperClass,enterable:je(we({},di.enterable),{default:!0}),effect:je(we({},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}}),nV={"update:visible":e=>ti(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},iV="onUpdate:visible",rV=ke(je(we({},ke({name:"ElPopover"})),{props:tV,emits:nV,setup(e,{expose:t,emit:n}){const r=e,s=W(()=>r[iV]),o=nt("popover"),a=ne(),l=W(()=>{var y;return(y=T(a))==null?void 0:y.popperRef}),c=W(()=>[{width:Qi(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 y;(y=a.value)==null||y.hide()},p=()=>{n("before-enter")},g=()=>{n("before-leave")},_=()=>{n("after-enter")},b=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:l,hide:f}),(y,w)=>(N(),xe(T(fi),An({ref_key:"tooltipRef",ref:a},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":T(u),"popper-style":T(c),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":T(d),"onUpdate:visible":T(s),onBeforeShow:p,onBeforeHide:g,onShow:_,onHide:b}),{content:ee(()=>[y.title?(N(),q("div",{key:0,class:Y(T(o).e("title")),role:"title"},Ne(y.title),3)):re("v-if",!0),Ie(y.$slots,"default",{},()=>[Je(Ne(y.content),1)])]),default:ee(()=>[y.$slots.reference?Ie(y.$slots,"reference",{key:0}):re("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 sV=ft(rV,[["__file","popover.vue"]]);const H4=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var oV={mounted(e,t){H4(e,t)},updated(e,t){H4(e,t)}};const aV=LM(oV,"popover"),lV=pn(sV,{directive:aV}),cV=pt({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:Fe(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Fe([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Fe(Function),default:e=>`${e}%`}}),uV=ke(je(we({},ke({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=E(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})),p=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=E(t.percentage):C=n[t.status]||n.default,C}),_=W(()=>t.status==="warning"?vm:t.type==="line"?t.status==="success"?mm:Gd:t.status==="success"?F3:La),b=W(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),y=W(()=>t.format(t.percentage));function w(C){const S=100/C.length;return C.map((P,I)=>st(P)?{color:P,percentage:(I+1)*S}:P).sort((P,I)=>P.percentage-I.percentage)}const E=C=>{var S;const{color:A}=t;if(Ve(A))return A(C);if(st(A))return A;{const P=w(A);for(const I of P)if(I.percentage>C)return I.color;return(S=P[P.length-1])==null?void 0:S.color}};return(C,S)=>(N(),q("div",{class:Y([T(r).b(),T(r).m(C.type),T(r).is(C.status),{[T(r).m("without-text")]:!C.showText,[T(r).m("text-inside")]:C.textInside}]),role:"progressbar","aria-valuenow":C.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[C.type==="line"?(N(),q("div",{key:0,class:Y(T(r).b("bar"))},[G("div",{class:Y(T(r).be("bar","outer")),style:Ze({height:`${C.strokeWidth}px`})},[G("div",{class:Y([T(r).be("bar","inner"),{[T(r).bem("bar","inner","indeterminate")]:C.indeterminate},{[T(r).bem("bar","inner","striped")]:C.striped},{[T(r).bem("bar","inner","striped-flow")]:C.stripedFlow}]),style:Ze(T(s))},[(C.showText||C.$slots.default)&&C.textInside?(N(),q("div",{key:0,class:Y(T(r).be("bar","innerText"))},[Ie(C.$slots,"default",{percentage:C.percentage},()=>[G("span",null,Ne(T(y)),1)])],2)):re("v-if",!0)],6)],6)],2)):(N(),q("div",{key:1,class:Y(T(r).b("circle")),style:Ze({height:`${C.width}px`,width:`${C.width}px`})},[(N(),q("svg",{viewBox:"0 0 100 100"},[G("path",{class:Y(T(r).be("circle","track")),d:T(l),stroke:`var(${T(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":C.strokeLinecap,"stroke-width":T(o),fill:"none",style:Ze(T(f))},null,14,["d","stroke","stroke-linecap","stroke-width"]),G("path",{class:Y(T(r).be("circle","path")),d:T(l),stroke:T(g),fill:"none",opacity:C.percentage?1:0,"stroke-linecap":C.strokeLinecap,"stroke-width":T(o),style:Ze(T(p))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(C.showText||C.$slots.default)&&!C.textInside?(N(),q("div",{key:2,class:Y(T(r).e("text")),style:Ze({fontSize:`${T(b)}px`})},[Ie(C.$slots,"default",{percentage:C.percentage},()=>[C.status?(N(),xe(T(Ft),{key:1},{default:ee(()=>[(N(),xe(Zt(T(_))))]),_:1})):(N(),q("span",{key:0},Ne(T(y)),1))])],6)):re("v-if",!0)],10,["aria-valuenow"]))}}));var dV=ft(uV,[["__file","progress.vue"]]);const fV=pn(dV),p_=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},pV=function(e,t,n,r,s){if(!t&&!r&&(!s||Array.isArray(s)&&!s.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=r?null:function(l,c){return s?(Array.isArray(s)||(s=[s]),s.map(u=>typeof u=="string"?Ei(l,u):u(l,c,e))):(t!=="$key"&&ct(l)&&"$value"in l&&(l=l.$value),[ct(l)?Ei(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)},G4=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},hV=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||Oo("ElTable",`No column matching with column-key: ${t}`),n},W4=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?G4(e,r[0]):null},Ln=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const s of n)r=r[s];return`${r}`}else if(typeof t=="function")return t.call(null,e)},zo=function(e,t){const n={};return(e||[]).forEach((r,s)=>{n[Ln(r,t)]={row:r,index:s}}),n};function gV(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(bt(t,r)){const s=t[r];typeof s!="undefined"&&(n[r]=s)}return n}function h_(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function K4(e){return e===""||e!==void 0&&(e=h_(e),Number.isNaN(e)&&(e=80)),e}function mV(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function _V(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function yf(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},p=g=>{let _=0;const b=(r==null?void 0:r.children)&&g[r.children];return b&&Be(b)&&(_+=b.length,b.forEach(y=>{_+=p(y)})),_};return(!s||d)&&(ti(n)?n&&!u?f("add"):!n&&u&&f("remove"):f(u?"remove":"add")),!(r!=null&&r.checkStrictly)&&(r!=null&&r.children)&&Be(t[r.children])&&t[r.children].forEach(g=>{yf(e,g,n!=null?n:!u,r,s,a+1),a+=p(g)+1}),l}function vV(e,t,n="children",r="hasChildren"){const s=a=>!(Array.isArray(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)})}let Pi=null;function bV(e,t,n,r){if((Pi==null?void 0:Pi.trigger)===n)return;Pi==null||Pi();const s=r==null?void 0:r.refs.tableWrapper,o=s==null?void 0:s.dataset.prefix,a=we({strategy:"fixed"},e.popperOptions),l=te(fi,je(we({content:t,virtualTriggering:!0,virtualRef:n,appendTo:s,placement:"top",transition:"none",offset:0,hideAfter:0},e),{popperOptions:a,onHide:()=>{Pi==null||Pi()}}));l.appContext=we(we({},r.appContext),r);const c=document.createElement("div");Co(l,c),l.component.exposed.onOpen();const u=s==null?void 0:s.querySelector(`.${o}-scrollbar__wrap`);Pi=()=>{Co(null,c),u==null||u.removeEventListener("scroll",Pi),Pi=null},Pi.trigger=n,u==null||u.addEventListener("scroll",Pi)}function J4(e){return e.children?GL(e.children,J4):[e]}function Y4(e,t){return e+t.colSpan}const X4=(e,t,n,r)=>{let s=0,o=e;const a=n.states.columns.value;if(r){const c=J4(r[e]);s=a.slice(0,a.indexOf(c[0])).reduce(Y4,0),o=s+c.reduce(Y4,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}:{}},g_=(e,t,n,r,s,o=0)=>{const a=[],{direction:l,start:c,after:u}=X4(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 Z4(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const m_=(e,t,n,r)=>{const{direction:s,start:o=0,after:a=0}=X4(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(Z4,0):l.right=u.slice(a+1).reverse().reduce(Z4,0),l},Xa=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function yV(e){const t=Et(),n=ne(!1),r=ne([]);return{updateExpandRows:()=>{const c=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=c.slice();else if(u){const d=zo(r.value,u);r.value=c.reduce((f,p)=>{const g=Ln(p,u);return d[g]&&f.push(p),f},[])}else r.value=[]},toggleRowExpansion:(c,u)=>{yf(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=zo(u,d);r.value=c.reduce((p,g)=>{const _=f[g];return _&&p.push(_.row),p},[])},isRowExpanded:c=>{const u=e.rowKey.value;return u?!!zo(r.value,u)[Ln(c,u)]:r.value.includes(c)},states:{expandRows:r,defaultExpandAll:n}}}function wV(e){const t=Et(),n=ne(null),r=ne(null),s=u=>{t.store.assertRowKey(),n.value=u,a(u)},o=()=>{n.value=null},a=u=>{const{data:d,rowKey:f}=e;let p=null;f.value&&(p=(T(d)||[]).find(g=>Ln(g,f.value)===u)),r.value=p,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 p=Ln(f,u);a(p)}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 CV(e){const t=ne([]),n=ne({}),r=ne(16),s=ne(!1),o=ne({}),a=ne("hasChildren"),l=ne("children"),c=ne(!1),u=Et(),d=W(()=>{if(!e.rowKey.value)return{};const E=e.data.value||[];return p(E)}),f=W(()=>{const E=e.rowKey.value,C=Object.keys(o.value),S={};return C.length&&C.forEach(A=>{if(o.value[A].length){const P={children:[]};o.value[A].forEach(I=>{const O=Ln(I,E);P.children.push(O),I[a.value]&&!S[O]&&(S[O]={children:[]})}),S[A]=P}}),S}),p=E=>{const C=e.rowKey.value,S={};return vV(E,(A,P,I)=>{const O=Ln(A,C);Array.isArray(P)?S[O]={children:P.map(L=>Ln(L,C)),level:I}:s.value&&(S[O]={children:[],lazy:!0,level:I})},l.value,a.value),S},g=(E=!1,C=(S=>(S=u.store)==null?void 0:S.states.defaultExpandAll.value)())=>{var S;const A=d.value,P=f.value,I=Object.keys(A),O={};if(I.length){const L=T(n),R=[],F=(V,ae)=>{if(E)return t.value?C||t.value.includes(ae):!!(C||V!=null&&V.expanded);{const ce=C||t.value&&t.value.includes(ae);return!!(V!=null&&V.expanded||ce)}};I.forEach(V=>{const ae=L[V],ce=we({},A[V]);if(ce.expanded=F(ae,V),ce.lazy){const{loaded:U=!1,loading:J=!1}=ae||{};ce.loaded=!!U,ce.loading=!!J,R.push(V)}O[V]=ce});const H=Object.keys(P);s.value&&H.length&&R.length&&H.forEach(V=>{const ae=L[V],ce=P[V].children;if(R.includes(V)){if(O[V].children.length!==0)throw new Error("[ElTable]children must be an empty array.");O[V].children=ce}else{const{loaded:U=!1,loading:J=!1}=ae||{};O[V]={lazy:!0,loaded:!!U,loading:!!J,expanded:F(ae,V),children:ce,level:""}}})}n.value=O,(S=u.store)==null||S.updateTableScrollY()};qe(()=>t.value,()=>{g(!0)}),qe(()=>d.value,()=>{g()}),qe(()=>f.value,()=>{g()});const _=E=>{t.value=E,g()},b=(E,C)=>{u.store.assertRowKey();const S=e.rowKey.value,A=Ln(E,S),P=A&&n.value[A];if(A&&P&&"expanded"in P){const I=P.expanded;C=typeof C=="undefined"?!P.expanded:C,n.value[A].expanded=C,I!==C&&u.emit("expand-change",E,C),u.store.updateTableScrollY()}},y=E=>{u.store.assertRowKey();const C=e.rowKey.value,S=Ln(E,C),A=n.value[S];s.value&&A&&"loaded"in A&&!A.loaded?w(E,S,A):b(E,void 0)},w=(E,C,S)=>{const{load:A}=u.props;A&&!n.value[C].loaded&&(n.value[C].loading=!0,A(E,S,P=>{if(!Array.isArray(P))throw new TypeError("[ElTable] data must be an array");n.value[C].loading=!1,n.value[C].loaded=!0,n.value[C].expanded=!0,P.length&&(o.value[C]=P),u.emit("expand-change",E,!0)}))};return{loadData:w,loadOrToggle:y,toggleTreeExpansion:b,updateTreeExpandKeys:_,updateTreeData:g,normalize:p,states:{expandRowKeys:t,treeData:n,indent:r,lazy:s,lazyTreeNodeMap:o,lazyColumnIdentifier:a,childrenColumnName:l,checkStrictly:c}}}const SV=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:pV(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},wf=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,wf(n.children)):t.push(n)}),t};function xV(){var e;const t=Et(),{size:n}=hr((e=t.proxy)==null?void 0:e.$props),r=ne(null),s=ne([]),o=ne([]),a=ne(!1),l=ne([]),c=ne([]),u=ne([]),d=ne([]),f=ne([]),p=ne([]),g=ne([]),_=ne([]),b=[],y=ne(0),w=ne(0),E=ne(0),C=ne(!1),S=ne([]),A=ne(!1),P=ne(!1),I=ne(null),O=ne({}),L=ne(null),R=ne(null),F=ne(null),H=ne(null),V=ne(null);qe(s,()=>t.state&&Q(!1),{deep:!0});const ae=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},ce=De=>{var Ge;(Ge=De.children)==null||Ge.forEach(et=>{et.fixed=De.fixed,ce(et)})};let U;const J=()=>{l.value.forEach(St=>{ce(St)}),d.value=l.value.filter(St=>St.fixed===!0||St.fixed==="left"),f.value=l.value.filter(St=>St.fixed==="right"),Zi(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(_t=>_t.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 De=l.value.filter(St=>!St.fixed);c.value=[].concat(d.value).concat(De).concat(f.value);const Ge=wf(De),et=wf(d.value),ot=wf(f.value);y.value=Ge.length,w.value=et.length,E.value=ot.length,u.value=[].concat(et).concat(Ge).concat(ot),a.value=d.value.length>0||f.value.length>0},Q=(De,Ge=!1)=>{De&&J(),Ge?t.state.doLayout():t.state.debouncedUpdateLayout()},X=De=>S.value.some(Ge=>Da(Ge,De)),j=()=>{C.value=!1;const De=S.value;S.value=[],De.length&&t.emit("selection-change",[])},ye=()=>{let De;if(r.value){De=[];const Ge=zo(S.value,r.value),et=zo(s.value,r.value);for(const ot in Ge)bt(Ge,ot)&&!et[ot]&&De.push(Ge[ot].row)}else De=S.value.filter(Ge=>!s.value.includes(Ge));if(De.length){const Ge=S.value.filter(et=>!De.includes(et));S.value=Ge,t.emit("selection-change",Ge.slice())}},pe=()=>(S.value||[]).slice(),ie=(De,Ge,et=!0,ot=!1)=>{var St,_t,zt,Xn;const vi={children:(_t=(St=t==null?void 0:t.store)==null?void 0:St.states)==null?void 0:_t.childrenColumnName.value,checkStrictly:(Xn=(zt=t==null?void 0:t.store)==null?void 0:zt.states)==null?void 0:Xn.checkStrictly.value};if(yf(S.value,De,Ge,vi,ot?void 0:I.value)){const mn=(S.value||[]).slice();et&&t.emit("select",mn,De),t.emit("selection-change",mn)}},oe=()=>{var De,Ge;const et=P.value?!C.value:!(C.value||S.value.length);C.value=et;let ot=!1,St=0;const _t=(Ge=(De=t==null?void 0:t.store)==null?void 0:De.states)==null?void 0:Ge.rowKey.value,{childrenColumnName:zt}=t.store.states,Xn={children:zt.value,checkStrictly:!1};s.value.forEach((vi,ws)=>{const mn=ws+St;yf(S.value,vi,et,Xn,I.value,mn)&&(ot=!0),St+=z(Ln(vi,_t))}),ot&&t.emit("selection-change",S.value?S.value.slice():[]),t.emit("select-all",(S.value||[]).slice())},Ce=()=>{const De=zo(S.value,r.value);s.value.forEach(Ge=>{const et=Ln(Ge,r.value),ot=De[et];ot&&(S.value[ot.index]=Ge)})},me=()=>{var De;if(((De=s.value)==null?void 0:De.length)===0){C.value=!1;return}const{childrenColumnName:Ge}=t.store.states,et=r.value?zo(S.value,r.value):void 0;let ot=0,St=0;const _t=vi=>et?!!et[Ln(vi,r.value)]:S.value.includes(vi),zt=vi=>{var ws;for(const mn of vi){const Fl=I.value&&I.value.call(null,mn,ot);if(_t(mn))St++;else if(!I.value||Fl)return!1;if(ot++,(ws=mn[Ge.value])!=null&&ws.length&&!zt(mn[Ge.value]))return!1}return!0},Xn=zt(s.value||[]);C.value=St===0?!1:Xn},z=De=>{var Ge;if(!t||!t.store)return 0;const{treeData:et}=t.store.states;let ot=0;const St=(Ge=et.value[De])==null?void 0:Ge.children;return St&&(ot+=St.length,St.forEach(_t=>{ot+=z(_t)})),ot},Z=(De,Ge)=>{Array.isArray(De)||(De=[De]);const et={};return De.forEach(ot=>{O.value[ot.id]=Ge,et[ot.columnKey||ot.id]=Ge}),et},_e=(De,Ge,et)=>{R.value&&R.value!==De&&(R.value.order=null),R.value=De,F.value=Ge,H.value=et},Pe=()=>{let De=T(o);Object.keys(O.value).forEach(Ge=>{const et=O.value[Ge];if(!et||et.length===0)return;const ot=G4({columns:u.value},Ge);ot&&ot.filterMethod&&(De=De.filter(St=>et.some(_t=>ot.filterMethod.call(null,_t,St,ot))))}),L.value=De},Re=()=>{s.value=SV(L.value,{sortingColumn:R.value,sortProp:F.value,sortOrder:H.value})},Ke=(De=void 0)=>{De&&De.filter||Pe(),Re()},B=De=>{const{tableHeaderRef:Ge}=t.refs;if(!Ge)return;const et=Object.assign({},Ge.filterPanels),ot=Object.keys(et);if(ot.length)if(typeof De=="string"&&(De=[De]),Array.isArray(De)){const St=De.map(_t=>hV({columns:u.value},_t));ot.forEach(_t=>{const zt=St.find(Xn=>Xn.id===_t);zt&&(zt.filteredValue=[])}),t.store.commit("filterChange",{column:St,values:[],silent:!0,multi:!0})}else ot.forEach(St=>{const _t=u.value.find(zt=>zt.id===St);_t&&(_t.filteredValue=[])}),O.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},K=()=>{R.value&&(_e(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:se,toggleRowExpansion:Ae,updateExpandRows:de,states:fe,isRowExpanded:Se}=yV({data:s,rowKey:r}),{updateTreeExpandKeys:Te,toggleTreeExpansion:Oe,updateTreeData:ve,loadOrToggle:$e,states:he}=CV({data:s,rowKey:r}),{updateCurrentRowData:le,updateCurrentRow:Le,setCurrentRowKey:Ye,states:Ct}=wV({data:s,rowKey:r});return{assertRowKey:ae,updateColumns:J,scheduleLayout:Q,isSelected:X,clearSelection:j,cleanSelection:ye,getSelectionRows:pe,toggleRowSelection:ie,_toggleAllSelection:oe,toggleAllSelection:null,updateSelectionByRowKey:Ce,updateAllSelected:me,updateFilters:Z,updateCurrentRow:Le,updateSort:_e,execFilter:Pe,execSort:Re,execQuery:Ke,clearFilter:B,clearSort:K,toggleRowExpansion:Ae,setExpandRowKeysAdapter:De=>{se(De),Te(De)},setCurrentRowKey:Ye,toggleRowExpansionAdapter:(De,Ge)=>{u.value.some(({type:ot})=>ot==="expand")?Ae(De,Ge):Oe(De,Ge)},isRowExpanded:Se,updateExpandRows:de,updateCurrentRowData:le,loadOrToggle:$e,updateTreeData:ve,states:we(we(we({tableSize:n,rowKey:r,data:s,_data:o,isComplex:a,_columns:l,originColumns:c,columns:u,fixedColumns:d,rightFixedColumns:f,leafColumns:p,fixedLeafColumns:g,rightFixedLeafColumns:_,updateOrderFns:b,leafColumnsLength:y,fixedLeafColumnsLength:w,rightFixedLeafColumnsLength:E,isAllSelected:C,selection:S,reserveSelection:A,selectOnIndeterminate:P,selectable:I,filters:O,filteredData:L,sortingColumn:R,sortProp:F,sortOrder:H,hoverRow:V},fe),he),Ct)}}function __(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=__(n.children,t)),n)})}function v_(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&v_(t.children)}),e.sort((t,n)=>t.no-n.no)}function EV(){const e=Et(),t=xV(),n=nt("table"),r={setData(a,l){const c=T(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),T(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=T(a._columns);let f=[];c?(c&&!c.children&&(c.children=[]),c.children.push(l),f=__(d,c)):(d.push(l),f=d),v_(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&&(v_(a._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(a,l,c,u){const d=T(a._columns)||[];if(c)c.children.splice(c.children.findIndex(p=>p.id===l.id),1),ht(()=>{var p;((p=c.children)==null?void 0:p.length)===0&&delete c.children}),a._columns.value=__(d,c);else{const p=d.indexOf(l);p>-1&&(d.splice(p,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=T(a.columns).find(p=>p.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=T(c),p=T(u),g=T(d);g===null&&(a.sortingColumn.value=null,a.sortProp.value=null);const _={filter:!0};e.store.execQuery(_),(!l||!(l.silent||l.init))&&e.emit("sort-change",{column:f,prop:p,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(){ht(()=>e.layout.updateScrollY.apply(e.layout))};return je(we({ns:n},t),{mutations:r,commit:s,updateTableScrollY:o})}const Hc={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 AV(e,t){if(!e)throw new Error("Table is required.");const n=EV();return n.toggleAllSelection=Ia(n._toggleAllSelection,10),Object.keys(Hc).forEach(r=>{Q4(eC(t,r),r,n)}),TV(n,t),n}function TV(e,t){Object.keys(Hc).forEach(n=>{qe(()=>eC(t,n),r=>{Q4(r,n,e)})})}function Q4(e,t,n){let r=e,s=Hc[t];typeof Hc[t]=="object"&&(s=s.key,r=r||Hc[t].default),n.states[s].value=r}function eC(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 kV{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=ne(null),this.scrollX=ne(!1),this.scrollY=ne(!1),this.bodyWidth=ne(null),this.fixedWidth=ne(null),this.rightFixedWidth=ne(null),this.gutterWidth=0;for(const n in t)bt(t,n)&&(Mt(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(!Dt)return;const r=this.table.vnode.el;if(t=mV(t),this.height.value=Number(t),!r&&(t||t===0))return ht(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){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(!Dt)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const s=this.getFlattenColumns(),o=s.filter(c=>typeof c.width!="number");if(s.forEach(c=>{typeof c.width=="number"&&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((p,g)=>p+Number(g.minWidth||80),0),d=c/u;let f=0;o.forEach((p,g)=>{if(g===0)return;const _=Math.floor(Number(p.minWidth||80)*d);f+=_,p.realWidth=Number(p.minWidth||80)+_}),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:PV}=Ya,OV=ke({name:"ElTableFilterPanel",components:{ElCheckbox:Ya,ElCheckboxGroup:PV,ElScrollbar:Vm,ElTooltip:fi,ElIcon:Ft,ArrowDown:M3,ArrowUp:cM},directives:{ClickOutside:g4},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=Et(),{t:n}=ja(),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=ne(!1),a=ne(null),l=W(()=>e.column&&e.column.filters),c=W(()=>e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b()),u=W({get:()=>{var A;return(((A=e.column)==null?void 0:A.filteredValue)||[])[0]},set:A=>{d.value&&(typeof A!="undefined"&&A!==null?d.value.splice(0,1,A):d.value.splice(0,1))}}),d=W({get(){return e.column?e.column.filteredValue||[]:[]},set(A){e.column&&e.upDataColumn("filteredValue",A)}}),f=W(()=>e.column?e.column.filterMultiple:!0),p=A=>A.value===u.value,g=()=>{o.value=!1},_=A=>{A.stopPropagation(),o.value=!o.value},b=()=>{o.value=!1},y=()=>{C(d.value),g()},w=()=>{d.value=[],C(d.value),g()},E=A=>{u.value=A,C(typeof A!="undefined"&&A!==null?d.value:[]),g()},C=A=>{e.store.commit("filterChange",{column:e.column,values:A}),e.store.updateAllSelected()};qe(o,A=>{e.column&&e.upDataColumn("filterOpened",A)},{immediate:!0});const S=W(()=>{var A,P;return(P=(A=a.value)==null?void 0:A.popperRef)==null?void 0:P.contentRef});return{tooltipVisible:o,multiple:f,filterClassName:c,filteredValue:d,filterValue:u,filters:l,handleConfirm:y,handleReset:w,handleSelect:E,isActive:p,t:n,ns:r,showFilterPanel:_,hideFilterPanel:b,popperPaneRef:S,tooltip:a}}});function NV(e,t,n,r,s,o){const a=He("el-checkbox"),l=He("el-checkbox-group"),c=He("el-scrollbar"),u=He("arrow-up"),d=He("arrow-down"),f=He("el-icon"),p=He("el-tooltip"),g=_d("click-outside");return N(),xe(p,{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:""},{content:ee(()=>[e.multiple?(N(),q("div",{key:0},[G("div",{class:Y(e.ns.e("content"))},[te(c,{"wrap-class":e.ns.e("wrap")},{default:ee(()=>[te(l,{modelValue:e.filteredValue,"onUpdate:modelValue":_=>e.filteredValue=_,class:Y(e.ns.e("checkbox-group"))},{default:ee(()=>[(N(!0),q(ze,null,kt(e.filters,_=>(N(),xe(a,{key:_.value,value:_.value},{default:ee(()=>[Je(Ne(_.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),G("div",{class:Y(e.ns.e("bottom"))},[G("button",{class:Y({[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)])):(N(),q("ul",{key:1,class:Y(e.ns.e("list"))},[G("li",{class:Y([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:_=>e.handleSelect(null)},Ne(e.t("el.table.clearFilter")),11,["onClick"]),(N(!0),q(ze,null,kt(e.filters,_=>(N(),q("li",{key:_.value,class:Y([e.ns.e("list-item"),e.ns.is("active",e.isActive(_))]),label:_.value,onClick:b=>e.handleSelect(_.value)},Ne(_.text),11,["label","onClick"]))),128))],2))]),default:ee(()=>[Nt((N(),q("span",{class:Y([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[te(f,null,{default:ee(()=>[Ie(e.$slots,"filter-icon",{},()=>[e.column.filterOpened?(N(),xe(u,{key:0})):(N(),xe(d,{key:1}))])]),_:3})],10,["onClick"])),[[g,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class"])}var IV=ft(OV,[["render",NV],["__file","filter-panel.vue"]]);function tC(e){const t=Et();tc(()=>{n.value.addObserver(t)}),Rt(()=>{r(n.value),s(n.value)}),nc(()=>{r(n.value),s(n.value)}),_o(()=>{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 p=l[d],g=p.getAttribute("name"),_=u[g];_&&p.setAttribute("width",_.realWidth||_.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 p=u[d];p.style.width=o.scrollY.value?`${o.gutterWidth}px`:"0",p.style.display=o.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:s}}const Ar=Symbol("ElTable");function DV(e,t){const n=Et(),r=Qe(Ar),s=b=>{b.stopPropagation()},o=(b,y)=>{!y.filters&&y.sortable?_(b,y,!1):y.filterable&&!y.sortable&&s(b),r==null||r.emit("header-click",y,b)},a=(b,y)=>{r==null||r.emit("header-contextmenu",y,b)},l=ne(null),c=ne(!1),u=ne({}),d=(b,y)=>{if(Dt&&!(y.children&&y.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.${y.id}`),A=S.getBoundingClientRect(),P=A.left-C+30;Io(S,"noclick"),u.value={startMouseLeft:b.clientX,startLeft:A.right-C,startColumnLeft:A.left-C,tableLeft:C};const I=w==null?void 0:w.refs.resizeProxy;I.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const O=R=>{const F=R.clientX-u.value.startMouseLeft,H=u.value.startLeft+F;I.style.left=`${Math.max(P,H)}px`},L=()=>{if(c.value){const{startColumnLeft:R,startLeft:F}=u.value,V=Number.parseInt(I.style.left,10)-R;y.width=y.realWidth=V,w==null||w.emit("header-dragend",y.width,F-R,y,b),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",O),document.removeEventListener("mouseup",L),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{yr(S,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",L)}},f=(b,y)=>{if(y.children&&y.children.length>0)return;const w=b.target;if(!br(w))return;const E=w==null?void 0:w.closest("th");if(!(!y||!y.resizable)&&!c.value&&e.border){const C=E.getBoundingClientRect(),S=document.body.style;C.width>12&&C.right-b.pageX<8?(S.cursor="col-resize",No(E,"is-sortable")&&(E.style.cursor="col-resize"),l.value=y):c.value||(S.cursor="",No(E,"is-sortable")&&(E.style.cursor="pointer"),l.value=null)}},p=()=>{Dt&&(document.body.style.cursor="")},g=({order:b,sortOrders:y})=>{if(b==="")return y[0];const w=y.indexOf(b||null);return y[w>y.length-2?0:w+1]},_=(b,y,w)=>{var E;b.stopPropagation();const C=y.order===w?null:w||g(y),S=(E=b.target)==null?void 0:E.closest("th");if(S&&No(S,"noclick")){yr(S,"noclick");return}if(!y.sortable)return;const A=b.currentTarget;if(["ascending","descending"].some(R=>No(A,R)&&!y.sortOrders.includes(R)))return;const P=e.store.states;let I=P.sortProp.value,O;const L=P.sortingColumn.value;(L!==y||L===y&&L.order===null)&&(L&&(L.order=null),P.sortingColumn.value=y,I=y.property),C?O=y.order=C:O=y.order=null,P.sortProp.value=I,P.sortOrder.value=O,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:a,handleMouseDown:d,handleMouseMove:f,handleMouseOut:p,handleSortClick:_,handleFilterClick:s}}function RV(e){const t=Qe(Ar),n=nt("table");return{getHeaderRowStyle:l=>{const c=t==null?void 0:t.props.headerRowStyle;return typeof c=="function"?c.call(null,{rowIndex:l}):c},getHeaderRowClass:l=>{const c=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?c.push(u):typeof u=="function"&&c.push(u.call(null,{rowIndex:l})),c.join(" ")},getHeaderCellStyle:(l,c,u,d)=>{var f;let p=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};typeof p=="function"&&(p=p.call(null,{rowIndex:l,columnIndex:c,row:u,column:d}));const g=m_(c,d.fixed,e.store,u);return Xa(g,"left"),Xa(g,"right"),Object.assign({},p,g)},getHeaderCellClass:(l,c,u,d)=>{const f=g_(n.b(),c,d.fixed,e.store,u),p=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||p.push("is-leaf"),d.sortable&&p.push("is-sortable");const g=t==null?void 0:t.props.headerCellClassName;return typeof g=="string"?p.push(g):typeof g=="function"&&p.push(g.call(null,{rowIndex:l,columnIndex:c,row:u,column:d})),p.push(n.e("cell")),p.filter(_=>!!_).join(" ")}}}const nC=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,nC(n.children))):t.push(n)}),t},iC=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 nC(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 LV(e){const t=Qe(Ar),n=W(()=>iC(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 MV=ke({name:"ElTableHeader",components:{ElCheckbox:Ya},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=Et(),r=Qe(Ar),s=nt("table"),o=ne({}),{onColumnsChange:a,onScrollableChange:l}=tC(r);Rt(()=>at(this,null,function*(){yield ht(),yield ht();const{prop:P,order:I}=e.defaultSort;r==null||r.store.commit("sort",{prop:P,order:I,init:!0})}));const{handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:f,handleMouseOut:p,handleSortClick:g,handleFilterClick:_}=DV(e,t),{getHeaderRowStyle:b,getHeaderRowClass:y,getHeaderCellStyle:w,getHeaderCellClass:E}=RV(e),{isGroup:C,toggleAllSelection:S,columnRows:A}=LV(e);return n.state={onColumnsChange:a,onScrollableChange:l},n.filterPanels=o,{ns:s,filterPanels:o,onColumnsChange:a,onScrollableChange:l,columnRows:A,getHeaderRowClass:y,getHeaderRowStyle:b,getHeaderCellClass:E,getHeaderCellStyle:w,handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:f,handleMouseOut:p,handleSortClick:g,handleFilterClick:_,isGroup:C,toggleAllSelection:S}},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:p,store:g,$parent:_}=this;let b=1;return dt("thead",{class:{[e.is("group")]:t}},n.map((y,w)=>dt("tr",{class:o(w),key:w,style:a(w)},y.map((E,C)=>(E.rowSpan>b&&(b=E.rowSpan),dt("th",{class:s(w,C,y,E),colspan:E.colSpan,key:`${E.id}-thead`,rowspan:E.rowSpan,style:r(w,C,y,E),onClick:S=>{S.currentTarget.classList.contains("noclick")||l(S,E)},onContextmenu:S=>c(S,E),onMousedown:S=>u(S,E),onMousemove:S=>d(S,E),onMouseout:p},[dt("div",{class:["cell",E.filteredValue&&E.filteredValue.length>0?"highlight":""]},[E.renderHeader?E.renderHeader({column:E,$index:C,store:g,_self:_}):E.label,E.sortable&&dt("span",{onClick:S=>f(S,E),class:"caret-wrapper"},[dt("i",{onClick:S=>f(S,E,"ascending"),class:"sort-caret ascending"}),dt("i",{onClick:S=>f(S,E,"descending"),class:"sort-caret descending"})]),E.filterable&&dt(IV,{store:g,placement:E.filterPlacement||"bottom-start",column:E,upDataColumn:(S,A)=>{E[S]=A}},{"filter-icon":()=>E.renderFilterIcon?E.renderFilterIcon({filterOpened:E.filterOpened}):null})])]))))))}});function b_(e,t,n=.03){return e-t>n}function FV(e){const t=Qe(Ar),n=ne(""),r=ne(dt("div")),s=(_,b,y)=>{var w;const E=t,C=p_(_);let S;const A=(w=E==null?void 0:E.vnode.el)==null?void 0:w.dataset.prefix;C&&(S=W4({columns:e.store.states.columns.value},C,A),S&&(E==null||E.emit(`cell-${y}`,b,S,C,_))),E==null||E.emit(`row-${y}`,b,S,_)},o=(_,b)=>{s(_,b,"dblclick")},a=(_,b)=>{e.store.commit("setCurrentRow",b),s(_,b,"click")},l=(_,b)=>{s(_,b,"contextmenu")},c=Ia(_=>{e.store.commit("setHoverRow",_)},30),u=Ia(()=>{e.store.commit("setHoverRow",null)},30),d=_=>{const b=window.getComputedStyle(_,null),y=Number.parseInt(b.paddingLeft,10)||0,w=Number.parseInt(b.paddingRight,10)||0,E=Number.parseInt(b.paddingTop,10)||0,C=Number.parseInt(b.paddingBottom,10)||0;return{left:y,right:w,top:E,bottom:C}},f=(_,b,y)=>{let w=b.target.parentNode;for(;_>1&&(w=w==null?void 0:w.nextSibling,!(!w||w.nodeName!=="TR"));)y(w,"hover-row hover-fixed-row"),_--};return{handleDoubleClick:o,handleClick:a,handleContextMenu:l,handleMouseEnter:c,handleMouseLeave:u,handleCellMouseEnter:(_,b,y)=>{var w;const E=t,C=p_(_),S=(w=E==null?void 0:E.vnode.el)==null?void 0:w.dataset.prefix;if(C){const J=W4({columns:e.store.states.columns.value},C,S);C.rowSpan>1&&f(C.rowSpan,_,Io);const Q=E.hoverState={cell:C,column:J,row:b};E==null||E.emit("cell-mouse-enter",Q.row,Q.column,Q.cell,_)}if(!y)return;const A=_.target.querySelector(".cell");if(!(No(A,`${S}-tooltip`)&&A.childNodes.length))return;const P=document.createRange();P.setStart(A,0),P.setEnd(A,A.childNodes.length);const{width:I,height:O}=P.getBoundingClientRect(),{width:L,height:R}=A.getBoundingClientRect(),{top:F,left:H,right:V,bottom:ae}=d(A),ce=H+V,U=F+ae;(b_(I+ce,L)||b_(O+U,R)||b_(A.scrollWidth,L))&&bV(y,C.innerText||C.textContent,C,E)},handleCellMouseLeave:_=>{const b=p_(_);if(!b)return;b.rowSpan>1&&f(b.rowSpan,_,yr);const y=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",y==null?void 0:y.row,y==null?void 0:y.column,y==null?void 0:y.cell,_)},tooltipContent:n,tooltipTrigger:r}}function jV(e){const t=Qe(Ar),n=nt("table");return{getRowStyle:(u,d)=>{const f=t==null?void 0:t.props.rowStyle;return typeof f=="function"?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 p=t==null?void 0:t.props.rowClassName;return typeof p=="string"?f.push(p):typeof p=="function"&&f.push(p.call(null,{row:u,rowIndex:d})),f},getCellStyle:(u,d,f,p)=>{const g=t==null?void 0:t.props.cellStyle;let _=g!=null?g:{};typeof g=="function"&&(_=g.call(null,{rowIndex:u,columnIndex:d,row:f,column:p}));const b=m_(d,e==null?void 0:e.fixed,e.store);return Xa(b,"left"),Xa(b,"right"),Object.assign({},_,b)},getCellClass:(u,d,f,p,g)=>{const _=g_(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,g),b=[p.id,p.align,p.className,..._],y=t==null?void 0:t.props.cellClassName;return typeof y=="string"?b.push(y):typeof y=="function"&&b.push(y.call(null,{rowIndex:u,columnIndex:d,row:f,column:p})),b.push(n.e("cell")),b.filter(w=>!!w).join(" ")},getSpan:(u,d,f,p)=>{let g=1,_=1;const b=t==null?void 0:t.props.spanMethod;if(typeof b=="function"){const y=b({row:u,column:d,rowIndex:f,columnIndex:p});Array.isArray(y)?(g=y[0],_=y[1]):typeof y=="object"&&(g=y.rowspan,_=y.colspan)}return{rowspan:g,colspan:_}},getColspanRealWidth:(u,d,f)=>{if(d<1)return u[f].realWidth;const p=u.map(({realWidth:g,width:_})=>g||_).slice(f,f+d);return Number(p.reduce((g,_)=>Number(g)+Number(_),-1))}}}function BV(e){const t=Qe(Ar),n=nt("table"),{handleDoubleClick:r,handleClick:s,handleContextMenu:o,handleMouseEnter:a,handleMouseLeave:l,handleCellMouseEnter:c,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:f}=FV(e),{getRowStyle:p,getRowClass:g,getCellStyle:_,getCellClass:b,getSpan:y,getColspanRealWidth:w}=jV(e),E=W(()=>e.store.states.columns.value.findIndex(({type:I})=>I==="default")),C=(I,O)=>{const L=t.props.rowKey;return L?Ln(I,L):O},S=(I,O,L,R=!1)=>{const{tooltipEffect:F,tooltipOptions:H,store:V}=e,{indent:ae,columns:ce}=V.states,U=g(I,O);let J=!0;return L&&(U.push(n.em("row",`level-${L.level}`)),J=L.display),dt("tr",{style:[J?null:{display:"none"},p(I,O)],class:U,key:C(I,O),onDblclick:X=>r(X,I),onClick:X=>s(X,I),onContextmenu:X=>o(X,I),onMouseenter:()=>a(O),onMouseleave:l},ce.value.map((X,j)=>{const{rowspan:ye,colspan:pe}=y(I,X,O,j);if(!ye||!pe)return null;const ie=Object.assign({},X);ie.realWidth=w(ce.value,pe,j);const oe={store:e.store,_self:e.context||t,column:ie,row:I,$index:O,cellIndex:j,expanded:R};j===E.value&&L&&(oe.treeNode={indent:L.level*ae.value,level:L.level},typeof L.expanded=="boolean"&&(oe.treeNode.expanded=L.expanded,"loading"in L&&(oe.treeNode.loading=L.loading),"noLazyChildren"in L&&(oe.treeNode.noLazyChildren=L.noLazyChildren)));const Ce=`${C(I,O)},${j}`,me=ie.columnKey||ie.rawColumnKey||"",z=A(j,X,oe),Z=X.showOverflowTooltip&&KL({effect:F},H,X.showOverflowTooltip);return dt("td",{style:_(O,j,I,X),class:b(O,j,I,X,pe-1),key:`${me}${Ce}`,rowspan:ye,colspan:pe,onMouseenter:_e=>c(_e,I,Z),onMouseleave:u},[z])}))},A=(I,O,L)=>O.renderCell(L);return{wrappedRowRender:(I,O)=>{const L=e.store,{isRowExpanded:R,assertRowKey:F}=L,{treeData:H,lazyTreeNodeMap:V,childrenColumnName:ae,rowKey:ce}=L.states,U=L.states.columns.value;if(U.some(({type:Q})=>Q==="expand")){const Q=R(I),X=S(I,O,void 0,Q),j=t.renderExpanded;return Q?j?[[X,dt("tr",{key:`expanded-row__${X.key}`},[dt("td",{colspan:U.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[j({row:I,$index:O,store:L,expanded:Q})])])]]:(console.error("[Element Error]renderExpanded is required."),X):[[X]]}else if(Object.keys(H.value).length){F();const Q=Ln(I,ce.value);let X=H.value[Q],j=null;X&&(j={expanded:X.expanded,level:X.level,display:!0},typeof X.lazy=="boolean"&&(typeof X.loaded=="boolean"&&X.loaded&&(j.noLazyChildren=!(X.children&&X.children.length)),j.loading=X.loading));const ye=[S(I,O,j)];if(X){let pe=0;const ie=(Ce,me)=>{Ce&&Ce.length&&me&&Ce.forEach(z=>{const Z={display:me.display&&me.expanded,level:me.level+1,expanded:!1,noLazyChildren:!1,loading:!1},_e=Ln(z,ce.value);if(_e==null)throw new Error("For nested data item, row-key is required.");if(X=we({},H.value[_e]),X&&(Z.expanded=X.expanded,X.level=X.level||Z.level,X.display=!!(X.expanded&&Z.display),typeof X.lazy=="boolean"&&(typeof X.loaded=="boolean"&&X.loaded&&(Z.noLazyChildren=!(X.children&&X.children.length)),Z.loading=X.loading)),pe++,ye.push(S(z,O+pe,Z)),X){const Pe=V.value[_e]||z[ae.value];ie(Pe,X)}})};X.display=!0;const oe=V.value[Q]||I[ae.value];ie(oe,X)}return ye}else return S(I,O,void 0)},tooltipContent:d,tooltipTrigger:f}}var UV=ke({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=Et(),n=Qe(Ar),r=nt("table"),{wrappedRowRender:s,tooltipContent:o,tooltipTrigger:a}=BV(e),{onColumnsChange:l,onScrollableChange:c}=tC(n),u=[];return qe(e.store.states.hoverRow,(d,f)=>{var p;const g=t==null?void 0:t.vnode.el,_=Array.from((g==null?void 0:g.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${r.e("row")}`));let b=d;const y=(p=_[b])==null?void 0:p.childNodes;if(y!=null&&y.length){let w=0;Array.from(y).reduce((C,S,A)=>{var P,I;return((P=y[A])==null?void 0:P.colSpan)>1&&(w=(I=y[A])==null?void 0:I.colSpan),S.nodeName!=="TD"&&w===0&&C.push(A),w>0&&w--,C},[]).forEach(C=>{var S;for(b=d;b>0;){const A=(S=_[b-1])==null?void 0:S.childNodes;if(A[C]&&A[C].nodeName==="TD"&&A[C].rowSpan>1){Io(A[C],"hover-cell"),u.push(A[C]);break}b--}})}else u.forEach(w=>yr(w,"hover-cell")),u.length=0;!e.store.states.isComplex.value||!Dt||eM(()=>{const w=_[f],E=_[d];w&&!w.classList.contains("hover-fixed-row")&&yr(w,"hover-row"),E&&Io(E,"hover-row")})}),_o(()=>{var d;(d=Pi)==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 dt("tbody",{tabIndex:-1},[n.reduce((r,s)=>r.concat(e(s,r.length)),[])])}});function $V(){const e=Qe(Ar),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 VV(e){const{columns:t}=$V(),n=nt("table");return{getCellClasses:(o,a)=>{const l=o[a],c=[n.e("cell"),l.id,l.align,l.labelClassName,...g_(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=m_(a,o.fixed,e.store);return Xa(l,"left"),Xa(l,"right"),l},columns:t}}var qV=ke({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}=VV(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 _=`${g}`.split(".")[1];d.push(_?_.length:0)}});const p=Math.max.apply(null,d);f?a[c]="":a[c]=u.reduce((g,_)=>{const b=Number(_);return Number.isNaN(+b)?g:Number.parseFloat((g+_).toFixed(Math.min(p,20)))},0)}),dt(dt("tfoot",[dt("tr",{},[...e.map((l,c)=>dt("td",{key:c,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,c),style:t(l,c)},[dt("div",{class:["cell",l.labelClassName]},[a[c]])]))])]))}});function zV(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,f,p=!0)=>{e.toggleRowSelection(d,f,!1,p),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,f)=>{e.toggleRowExpansionAdapter(d,f)},clearSort:()=>{e.clearSort()},sort:(d,f)=>{e.commit("sort",{prop:d,order:f})}}}function HV(e,t,n,r){const s=ne(!1),o=ne(null),a=ne(!1),l=X=>{a.value=X},c=ne({width:null,height:null,headerHeight:null}),u=ne(!1),d={display:"inline-block",verticalAlign:"middle"},f=ne(),p=ne(0),g=ne(0),_=ne(0),b=ne(0),y=ne(0);bo(()=>{t.setHeight(e.height)}),bo(()=>{t.setMaxHeight(e.maxHeight)}),qe(()=>[e.currentRowKey,n.states.rowKey],([X,j])=>{!T(j)||!T(X)||n.setCurrentRowKey(`${X}`)},{immediate:!0}),qe(()=>e.data,X=>{r.store.commit("setData",X)},{immediate:!0,deep:!0}),bo(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const w=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},E=(X,j)=>{const{pixelX:ye,pixelY:pe}=j;Math.abs(ye)>=Math.abs(pe)&&(r.refs.bodyWrapper.scrollLeft+=j.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`:""})),A=()=>{C.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(L)};Rt(()=>at(this,null,function*(){yield ht(),n.updateColumns(),R(),requestAnimationFrame(A);const X=r.vnode.el,j=r.refs.headerWrapper;e.flexible&&X&&X.parentElement&&(X.parentElement.style.minWidth="0"),c.value={width:f.value=X.offsetWidth,height:X.offsetHeight,headerHeight:e.showHeader&&j?j.offsetHeight:null},n.states.columns.value.forEach(ye=>{ye.filteredValue&&ye.filteredValue.length&&r.store.commit("filterChange",{column:ye,values:ye.filteredValue,silent:!0})}),r.$ready=!0}));const P=(X,j)=>{if(!X)return;const ye=Array.from(X.classList).filter(pe=>!pe.startsWith("is-scrolling-"));ye.push(t.scrollX.value?j:"is-scrolling-none"),X.className=ye.join(" ")},I=X=>{const{tableWrapper:j}=r.refs;P(j,X)},O=X=>{const{tableWrapper:j}=r.refs;return!!(j&&j.classList.contains(X))},L=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const me="is-scrolling-none";O(me)||I(me);return}const X=r.refs.scrollBarRef.wrapRef;if(!X)return;const{scrollLeft:j,offsetWidth:ye,scrollWidth:pe}=X,{headerWrapper:ie,footerWrapper:oe}=r.refs;ie&&(ie.scrollLeft=j),oe&&(oe.scrollLeft=j);const Ce=pe-ye-1;j>=Ce?I("is-scrolling-right"):I(j===0?"is-scrolling-left":"is-scrolling-middle")},R=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Si(r.refs.scrollBarRef.wrapRef,"scroll",L,{passive:!0}),e.fit?ci(r.vnode.el,F):Si(window,"resize",F),ci(r.refs.bodyWrapper,()=>{var X,j;F(),(j=(X=r.refs)==null?void 0:X.scrollBarRef)==null||j.update()}))},F=()=>{var X,j,ye,pe;const ie=r.vnode.el;if(!r.$ready||!ie)return;let oe=!1;const{width:Ce,height:me,headerHeight:z}=c.value,Z=f.value=ie.offsetWidth;Ce!==Z&&(oe=!0);const _e=ie.offsetHeight;(e.height||C.value)&&me!==_e&&(oe=!0);const Pe=e.tableLayout==="fixed"?r.refs.headerWrapper:(X=r.refs.tableHeaderRef)==null?void 0:X.$el;e.showHeader&&(Pe==null?void 0:Pe.offsetHeight)!==z&&(oe=!0),p.value=((j=r.refs.tableWrapper)==null?void 0:j.scrollHeight)||0,_.value=(Pe==null?void 0:Pe.scrollHeight)||0,b.value=((ye=r.refs.footerWrapper)==null?void 0:ye.offsetHeight)||0,y.value=((pe=r.refs.appendWrapper)==null?void 0:pe.offsetHeight)||0,g.value=p.value-_.value-b.value-y.value,oe&&(c.value={width:Z,height:_e,headerHeight:e.showHeader&&(Pe==null?void 0:Pe.offsetHeight)||0},A())},H=Er(),V=W(()=>{const{bodyWidth:X,scrollY:j,gutterWidth:ye}=t;return X.value?`${X.value-(j.value?ye:0)}px`:""}),ae=W(()=>e.maxHeight?"fixed":e.tableLayout),ce=W(()=>{if(e.data&&e.data.length)return null;let X="100%";e.height&&g.value&&(X=`${g.value}px`);const j=f.value;return{width:j?`${j}px`:"",height:X}}),U=W(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),J=W(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${_.value+b.value}px)`}:{maxHeight:`${e.maxHeight-_.value-b.value}px`}:{});return{isHidden:s,renderExpanded:o,setDragVisible:l,isGroup:u,handleMouseLeave:w,handleHeaderFooterMousewheel:E,tableSize:H,emptyBlockStyle:ce,handleFixedMousewheel:(X,j)=>{const ye=r.refs.bodyWrapper;if(Math.abs(j.spinY)>0){const pe=ye.scrollTop;j.pixelY<0&&pe!==0&&X.preventDefault(),j.pixelY>0&&ye.scrollHeight-ye.clientHeight>pe&&X.preventDefault(),ye.scrollTop+=Math.ceil(j.pixelY/5)}else ye.scrollLeft+=Math.ceil(j.pixelX/5)},resizeProxyVisible:a,bodyWidth:V,resizeState:c,doLayout:A,tableBodyStyles:S,tableLayout:ae,scrollbarViewStyle:d,tableInnerStyle:U,scrollbarStyle:J}}function GV(e){const t=ne(),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)};Rt(()=>{n()}),_o(()=>{var r;(r=t.value)==null||r.disconnect()})}var WV={data:{type:Array,default:()=>[]},size:Fs,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],scrollbarTabindex:{type:[Number,String],default:void 0}};function rC(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 dt("colgroup",{},n.map(s=>dt("col",r(s))))}rC.props=["columns","tableLayout"];const KV=()=>{const e=ne(),t=(o,a)=>{const l=e.value;l&&l.scrollTo(o,a)},n=(o,a)=>{const l=e.value;l&&Qt(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 JV=1;const YV=ke({name:"ElTable",directives:{Mousewheel:WU},components:{TableHeader:MV,TableBody:UV,TableFooter:qV,ElScrollbar:Vm,hColgroup:rC},props:WV,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}=ja(),n=nt("table"),r=Et();ln(Ar,r);const s=AV(r,e);r.store=s;const o=new kV({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:p,toggleRowExpansion:g,clearSort:_,sort:b}=zV(s),{isHidden:y,renderExpanded:w,setDragVisible:E,isGroup:C,handleMouseLeave:S,handleHeaderFooterMousewheel:A,tableSize:P,emptyBlockStyle:I,handleFixedMousewheel:O,resizeProxyVisible:L,bodyWidth:R,resizeState:F,doLayout:H,tableBodyStyles:V,tableLayout:ae,scrollbarViewStyle:ce,tableInnerStyle:U,scrollbarStyle:J}=HV(e,o,s,r),{scrollBarRef:Q,scrollTo:X,setScrollLeft:j,setScrollTop:ye}=KV(),pe=Ia(H,50),ie=`${n.namespace.value}-table_${JV++}`;r.tableId=ie,r.state={isGroup:C,resizeState:F,doLayout:H,debouncedUpdateLayout:pe};const oe=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")}),me=W(()=>iC(s.states.originColumns.value)[0]);return GV(r),{ns:n,layout:o,store:s,columns:me,handleHeaderFooterMousewheel:A,handleMouseLeave:S,tableId:ie,tableSize:P,isHidden:y,isEmpty:a,renderExpanded:w,resizeProxyVisible:L,resizeState:F,isGroup:C,bodyWidth:R,tableBodyStyles:V,emptyBlockStyle:I,debouncedUpdateLayout:pe,handleFixedMousewheel:O,setCurrentRow:l,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:p,toggleRowExpansion:g,clearSort:_,doLayout:H,sort:b,t,setDragVisible:E,context:r,computedSumText:oe,computedEmptyText:Ce,tableLayout:ae,scrollbarViewStyle:ce,tableInnerStyle:U,scrollbarStyle:J,scrollBarRef:Q,scrollTo:X,setScrollLeft:j,setScrollTop:ye}}});function XV(e,t,n,r,s,o){const a=He("hColgroup"),l=He("table-header"),c=He("table-body"),u=He("table-footer"),d=He("el-scrollbar"),f=_d("mousewheel");return N(),q("div",{ref:"tableWrapper",class:Y([{[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:Y(e.ns.e("inner-wrapper")),style:Ze(e.tableInnerStyle)},[G("div",{ref:"hiddenColumns",class:"hidden-columns"},[Ie(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Nt((N(),q("div",{key:0,ref:"headerWrapper",class:Y(e.ns.e("header-wrapper"))},[G("table",{ref:"tableHeader",class:Y(e.ns.e("header")),style:Ze(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[te(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),te(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),G("div",{ref:"bodyWrapper",class:Y(e.ns.e("body-wrapper"))},[te(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex},{default:ee(()=>[G("table",{ref:"tableBody",class:Y(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ze({width:e.bodyWidth,tableLayout:e.tableLayout})},[te(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(N(),xe(l,{key:0,ref:"tableHeaderRef",class:Y(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):re("v-if",!0),te(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"?(N(),xe(u,{key:1,class:Y(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"])):re("v-if",!0)],6),e.isEmpty?(N(),q("div",{key:0,ref:"emptyBlock",style:Ze(e.emptyBlockStyle),class:Y(e.ns.e("empty-block"))},[G("span",{class:Y(e.ns.e("empty-text"))},[Ie(e.$slots,"empty",{},()=>[Je(Ne(e.computedEmptyText),1)])],2)],6)):re("v-if",!0),e.$slots.append?(N(),q("div",{key:1,ref:"appendWrapper",class:Y(e.ns.e("append-wrapper"))},[Ie(e.$slots,"append")],2)):re("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex"])],2),e.showSummary&&e.tableLayout==="fixed"?Nt((N(),q("div",{key:1,ref:"footerWrapper",class:Y(e.ns.e("footer-wrapper"))},[G("table",{class:Y(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Ze(e.tableBodyStyles)},[te(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),te(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]]):re("v-if",!0),e.border||e.isGroup?(N(),q("div",{key:2,class:Y(e.ns.e("border-left-patch"))},null,2)):re("v-if",!0)],6),Nt(G("div",{ref:"resizeProxy",class:Y(e.ns.e("column-resize-proxy"))},null,2),[[wn,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var ZV=ft(YV,[["render",XV],["__file","table.vue"]]);const QV={selection:"table-column--selection",expand:"table__expand-column"},eq={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:""}},tq=e=>QV[e]||"",nq={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return dt(Ya,{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 dt(Ya,{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 typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),dt("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")),dt("div",{class:s,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[dt(Ft,null,{default:()=>[dt(gm)]})]})},sortable:!1,resizable:!1}};function iq({row:e,column:t,$index:n}){var r;const s=t.property,o=s&&zd(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 rq({row:e,treeNode:t,store:n},r=!1){const{ns:s}=n;if(!t)return r?[dt("span",{class:s.e("placeholder")})]:null;const o=[],a=function(l){l.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&o.push(dt("span",{class:s.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const l=[s.e("expand-icon"),t.expanded?s.em("expand-icon","expanded"):""];let c=gm;t.loading&&(c=Ma),o.push(dt("div",{class:l,onClick:a},{default:()=>[dt(Ft,{class:{[s.is("loading")]:t.loading}},{default:()=>[dt(c)]})]}))}else o.push(dt("span",{class:s.e("placeholder")}));return o}function sC(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function sq(e,t){const n=Et();return{registerComplexWatchers:()=>{const o=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},l=sC(o,a);Object.keys(l).forEach(c=>{const u=a[c];bt(t,u)&&qe(()=>t[u],d=>{let f=d;u==="width"&&c==="realWidth"&&(f=h_(d)),u==="minWidth"&&c==="realMinWidth"&&(f=K4(d)),n.columnConfig.value[u]=f,n.columnConfig.value[c]=f;const p=u==="fixed";e.value.store.scheduleLayout(p)})})},registerNormalWatchers:()=>{const o=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=sC(o,a);Object.keys(l).forEach(c=>{const u=a[c];bt(t,u)&&qe(()=>t[u],d=>{n.columnConfig.value[c]=d})})}}}function oq(e,t,n){const r=Et(),s=ne(""),o=ne(!1),a=ne(),l=ne(),c=nt("table");bo(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),bo(()=>{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:A}=S.states,P=A.value;return P&&Object.keys(P).length>0}),f=ne(h_(e.width)),p=ne(K4(e.minWidth)),g=S=>(f.value&&(S.width=f.value),p.value&&(S.minWidth=p.value),!f.value&&p.value&&(S.width=void 0),S.minWidth||(S.minWidth=80),S.realWidth=Number(S.width===void 0?S.minWidth:S.width),S),_=S=>{const A=S.type,P=nq[A]||{};Object.keys(P).forEach(O=>{const L=P[O];O!=="className"&&L!==void 0&&(S[O]=L)});const I=tq(A);if(I){const O=`${T(c.namespace)}-${I}`;S.className=S.className?`${S.className} ${O}`:O}return S},b=S=>{Array.isArray(S)?S.forEach(P=>A(P)):A(S);function A(P){var I;((I=P==null?void 0:P.type)==null?void 0:I.name)==="ElTableColumn"&&(P.vParent=r)}};return{columnId:s,realAlign:a,isSubColumn:o,realHeaderAlign:l,columnOrTableParent:u,setColumnWidth:g,setColumnForcedProps:_,setColumnRenders:S=>{e.renderHeader||S.type!=="selection"&&(S.renderHeader=P=>(r.columnConfig.value.label,Ie(t,"header",P,()=>[S.label]))),t["filter-icon"]&&(S.renderFilterIcon=P=>Ie(t,"filter-icon",P));let A=S.renderCell;return S.type==="expand"?(S.renderCell=P=>dt("div",{class:"cell"},[A(P)]),n.value.renderExpanded=P=>t.default?t.default(P):t.default):(A=A||iq,S.renderCell=P=>{let I=null;if(t.default){const V=t.default(P);I=V.some(ae=>ae.type!==En)?V:A(P)}else I=A(P);const{columns:O}=n.value.store.states,L=O.value.findIndex(V=>V.type==="default"),R=d.value&&P.cellIndex===L,F=rq(P,R),H={class:"cell",style:{}};return S.showOverflowTooltip&&(H.class=`${H.class} ${T(c.namespace)}-tooltip`,H.style={width:`${(P.column.realWidth||Number(P.column.width))-1}px`}),b(I),dt("div",H,[F,I])}),S},getPropsData:(...S)=>S.reduce((A,P)=>(Array.isArray(P)&&P.forEach(I=>{A[I]=e[I]}),A),{}),getColumnElIndex:(S,A)=>Array.prototype.indexOf.call(S,A),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var aq={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 lq=1;var oC=ke({name:"ElTableColumn",components:{ElCheckbox:Ya},props:aq,setup(e,{slots:t}){const n=Et(),r=ne({}),s=W(()=>{let C=n.parent;for(;C&&!C.tableId;)C=C.parent;return C}),{registerNormalWatchers:o,registerComplexWatchers:a}=sq(s,e),{columnId:l,isSubColumn:c,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:p,setColumnRenders:g,getPropsData:_,getColumnElIndex:b,realAlign:y,updateColumnOrder:w}=oq(e,t,s),E=d.value;l.value=`${E.tableId||E.columnId}_column_${lq++}`,tc(()=>{c.value=s.value!==E;const C=e.type||"default",S=e.sortable===""?!0:e.sortable,A=Zi(e.showOverflowTooltip)?E.props.showOverflowTooltip:e.showOverflowTooltip,P=je(we({},eq[C]),{id:l.value,type:C,property:e.prop||e.property,align:y,headerAlign:u,showOverflowTooltip:A,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:S,index:e.index,rawColumnKey:n.vnode.key});let F=_(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);F=gV(P,F),F=_V(g,f,p)(F),r.value=F,o(),a()}),Rt(()=>{var C;const S=d.value,A=c.value?S.vnode.el.children:(C=S.refs.hiddenColumns)==null?void 0:C.children,P=()=>b(A||[],n.vnode.el);r.value.getColumnIndex=P,P()>-1&&s.value.store.commit("insertColumn",r.value,c.value?S.columnConfig.value:null,w)}),fn(()=>{const C=r.value.getColumnIndex;(C?C():-1)>-1&&s.value.store.commit("removeColumn",r.value,c.value?E.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(Array.isArray(r))for(const a of r)((n=a.type)==null?void 0:n.name)==="ElTableColumn"||a.shapeFlag&2?s.push(a):a.type===ze&&Array.isArray(a.children)&&a.children.forEach(l=>{(l==null?void 0:l.patchFlag)!==1024&&!st(l==null?void 0:l.children)&&s.push(l)});return dt("div",s)}catch(r){return dt("div",[])}}});const cq=pn(ZV,{TableColumn:oC}),uq=is(oC),aC=Symbol("uploadContextKey"),dq="ElUpload";class fq extends Error{constructor(t,n,r,s){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=s}}function lC(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 fq(r,n.status,t.method,e)}function pq(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}const hq=e=>{typeof XMLHttpRequest=="undefined"&&Oo(dq,"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))Be(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(lC(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(lC(n,e,t));e.onSuccess(pq(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))Po(a)||t.setRequestHeader(o,String(a));return t.send(r),t},cC=["text","picture","picture-card"];let gq=1;const y_=()=>Date.now()+gq++,uC=pt({action:{type:String,default:"#"},headers:{type:Fe(Object)},method:{type:String,default:"post"},data:{type:Fe([Object,Function,Promise]),default:()=>kc({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Fe(Array),default:()=>kc([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:cC,default:"text"},httpRequest:{type:Fe(Function),default:hq},disabled:Boolean,limit:Number}),mq=pt(je(we({},uC),{beforeUpload:{type:Fe(Function),default:yt},beforeRemove:{type:Fe(Function)},onRemove:{type:Fe(Function),default:yt},onChange:{type:Fe(Function),default:yt},onPreview:{type:Fe(Function),default:yt},onSuccess:{type:Fe(Function),default:yt},onProgress:{type:Fe(Function),default:yt},onError:{type:Fe(Function),default:yt},onExceed:{type:Fe(Function),default:yt},crossorigin:{type:Fe(String)}})),_q=pt({files:{type:Fe(Array),default:()=>kc([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Fe(Function),default:yt},listType:{type:String,values:cC,default:"text"},crossorigin:{type:Fe(String)}}),vq={remove:e=>!!e},bq=ke(je(we({},ke({name:"ElUploadList"})),{props:_q,emits:vq,setup(e,{emit:t}){const n=e,{t:r}=ja(),s=nt("upload"),o=nt("icon"),a=nt("list"),l=ss(),c=ne(!1),u=W(()=>[s.b("list"),s.bm("list",n.listType),s.is("disabled",n.disabled)]),d=f=>{t("remove",f)};return(f,p)=>(N(),xe(sw,{tag:"ul",class:Y(T(u)),name:T(a).b()},{default:ee(()=>[(N(!0),q(ze,null,kt(f.files,(g,_)=>(N(),q("li",{key:g.uid||g.name,class:Y([T(s).be("list","item"),T(s).is(g.status),{focusing:c.value}]),tabindex:"0",onKeydown:Ki(b=>!T(l)&&d(g),["delete"]),onFocus:b=>c.value=!0,onBlur:b=>c.value=!1,onClick:b=>c.value=!1},[Ie(f.$slots,"default",{file:g,index:_},()=>[f.listType==="picture"||g.status!=="uploading"&&f.listType==="picture-card"?(N(),q("img",{key:0,class:Y(T(s).be("list","item-thumbnail")),src:g.url,crossorigin:f.crossorigin,alt:""},null,10,["src","crossorigin"])):re("v-if",!0),g.status==="uploading"||f.listType!=="picture-card"?(N(),q("div",{key:1,class:Y(T(s).be("list","item-info"))},[G("a",{class:Y(T(s).be("list","item-name")),onClick:gt(b=>f.handlePreview(g),["prevent"])},[te(T(Ft),{class:Y(T(o).m("document"))},{default:ee(()=>[te(T(vM))]),_:1},8,["class"]),G("span",{class:Y(T(s).be("list","item-file-name")),title:g.name},Ne(g.name),11,["title"])],10,["onClick"]),g.status==="uploading"?(N(),xe(T(fV),{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"])):re("v-if",!0)],2)):re("v-if",!0),G("label",{class:Y(T(s).be("list","item-status-label"))},[f.listType==="text"?(N(),xe(T(Ft),{key:0,class:Y([T(o).m("upload-success"),T(o).m("circle-check")])},{default:ee(()=>[te(T(mm))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(N(),xe(T(Ft),{key:1,class:Y([T(o).m("upload-success"),T(o).m("check")])},{default:ee(()=>[te(T(F3))]),_:1},8,["class"])):re("v-if",!0)],2),T(l)?re("v-if",!0):(N(),xe(T(Ft),{key:2,class:Y(T(o).m("close")),onClick:b=>d(g)},{default:ee(()=>[te(T(La))]),_:2},1032,["class","onClick"])),re(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),re(" This is a bug which needs to be fixed "),re(" TODO: Fix the incorrect navigation interaction "),T(l)?re("v-if",!0):(N(),q("i",{key:3,class:Y(T(o).m("close-tip"))},Ne(T(r)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(N(),q("span",{key:4,class:Y(T(s).be("list","item-actions"))},[G("span",{class:Y(T(s).be("list","item-preview")),onClick:b=>f.handlePreview(g)},[te(T(Ft),{class:Y(T(o).m("zoom-in"))},{default:ee(()=>[te(T(NM))]),_:1},8,["class"])],10,["onClick"]),T(l)?re("v-if",!0):(N(),q("span",{key:0,class:Y(T(s).be("list","item-delete")),onClick:b=>d(g)},[te(T(Ft),{class:Y(T(o).m("delete"))},{default:ee(()=>[te(T(mM))]),_:1},8,["class"])],10,["onClick"]))],2)):re("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),Ie(f.$slots,"append")]),_:3},8,["class","name"]))}}));var dC=ft(bq,[["__file","upload-list.vue"]]);const yq=pt({disabled:{type:Boolean,default:!1}}),wq={file:e=>Be(e)},fC="ElUploadDrag",Cq=ke(je(we({},ke({name:fC})),{props:yq,emits:wq,setup(e,{emit:t}){Qe(aC)||Oo(fC,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=nt("upload"),s=ne(!1),o=ss(),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)=>(N(),q("div",{class:Y([T(r).b("dragger"),T(r).is("dragover",s.value)]),onDrop:gt(a,["prevent"]),onDragover:gt(l,["prevent"]),onDragleave:gt(d=>s.value=!1,["prevent"])},[Ie(c.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}}));var Sq=ft(Cq,[["__file","upload-dragger.vue"]]);const xq=pt(je(we({},uC),{beforeUpload:{type:Fe(Function),default:yt},onRemove:{type:Fe(Function),default:yt},onStart:{type:Fe(Function),default:yt},onSuccess:{type:Fe(Function),default:yt},onProgress:{type:Fe(Function),default:yt},onError:{type:Fe(Function),default:yt},onExceed:{type:Fe(Function),default:yt}})),Eq=ke(je(we({},ke({name:"ElUploadContent",inheritAttrs:!1})),{props:xq,setup(e,{expose:t}){const n=e,r=nt("upload"),s=ss(),o=bn({}),a=bn(),l=b=>{if(b.length===0)return;const{autoUpload:y,limit:w,fileList:E,multiple:C,onStart:S,onExceed:A}=n;if(w&&E.length+b.length>w){A(b,E);return}C||(b=b.slice(0,1));for(const P of b){const I=P;I.uid=y_(),S(I),y&&c(I)}},c=b=>at(this,null,function*(){if(a.value.value="",!n.beforeUpload)return d(b);let y,w={};try{const C=n.data,S=n.beforeUpload(b);w=_a(n.data)?ko(n.data):n.data,y=yield S,_a(n.data)&&Da(C,w)&&(w=ko(n.data))}catch(C){y=!1}if(y===!1){n.onRemove(b);return}let E=b;y instanceof Blob&&(y instanceof File?E=y:E=new File([y],b.name,{type:b.type})),d(Object.assign(E,{uid:b.uid}),w)}),u=(b,y)=>at(this,null,function*(){return Ve(b)?b(y):b}),d=(b,y)=>at(this,null,function*(){const{headers:w,data:E,method:C,withCredentials:S,name:A,action:P,onProgress:I,onSuccess:O,onError:L,httpRequest:R}=n;try{y=yield u(y!=null?y:E,b)}catch(ae){n.onRemove(b);return}const{uid:F}=b,H={headers:w||{},withCredentials:S,file:b,data:y,method:C,filename:A,action:P,onProgress:ae=>{I(ae,b)},onSuccess:ae=>{O(ae,b),delete o.value[F]},onError:ae=>{L(ae,b),delete o.value[F]}},V=R(H);o.value[F]=V,V instanceof Promise&&V.then(H.onSuccess,H.onError)}),f=b=>{const y=b.target.files;y&&l(Array.from(y))},p=()=>{s.value||(a.value.value="",a.value.click())},g=()=>{p()};return t({abort:b=>{nM(o.value).filter(b?([w])=>String(b.uid)===w:()=>!0).forEach(([w,E])=>{E instanceof XMLHttpRequest&&E.abort(),delete o.value[w]})},upload:c}),(b,y)=>(N(),q("div",{class:Y([T(r).b(),T(r).m(b.listType),T(r).is("drag",b.drag),T(r).is("disabled",T(s))]),tabindex:T(s)?"-1":"0",onClick:p,onKeydown:Ki(gt(g,["self"]),["enter","space"])},[b.drag?(N(),xe(Sq,{key:0,disabled:T(s),onFile:l},{default:ee(()=>[Ie(b.$slots,"default")]),_:3},8,["disabled"])):Ie(b.$slots,"default",{key:1}),G("input",{ref_key:"inputRef",ref:a,class:Y(T(r).e("input")),name:b.name,disabled:T(s),multiple:b.multiple,accept:b.accept,type:"file",onChange:f,onClick:gt(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}}));var pC=ft(Eq,[["__file","upload-content.vue"]]);const hC="ElUpload",gC=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Aq=(e,t)=>{const n=eO(e,"fileList",void 0,{passive:!0}),r=g=>n.value.find(_=>_.uid===g.uid);function s(g){var _;(_=t.value)==null||_.abort(g)}function o(g=["ready","uploading","success","fail"]){n.value=n.value.filter(_=>!g.includes(_.status))}function a(g){n.value=n.value.filter(_=>_!==g)}const l=(g,_)=>{const b=r(_);b&&(console.error(g),b.status="fail",a(b),e.onError(g,b,n.value),e.onChange(b,n.value))},c=(g,_)=>{const b=r(_);b&&(e.onProgress(g,b,n.value),b.status="uploading",b.percentage=Math.round(g.percent))},u=(g,_)=>{const b=r(_);b&&(b.status="success",b.response=g,e.onSuccess(g,b,n.value),e.onChange(b,n.value))},d=g=>{Po(g.uid)&&(g.uid=y_());const _={name:g.name,percentage:0,status:"ready",size:g.size,raw:g,uid:g.uid};if(e.listType==="picture-card"||e.listType==="picture")try{_.url=URL.createObjectURL(g)}catch(b){b.message,e.onError(b,_,n.value)}n.value=[...n.value,_],e.onChange(_,n.value)},f=g=>at(this,null,function*(){const _=g instanceof File?r(g):g;_||Oo(hC,"file to be removed not found");const b=y=>{s(y),a(y),e.onRemove(y,n.value),gC(y)};e.beforeRemove?(yield e.beforeRemove(_,n.value))!==!1&&b(_):b(_)});function p(){n.value.filter(({status:g})=>g==="ready").forEach(({raw:g})=>{var _;return g&&((_=t.value)==null?void 0:_.upload(g))})}return qe(()=>e.listType,g=>{g!=="picture-card"&&g!=="picture"||(n.value=n.value.map(_=>{const{raw:b,url:y}=_;if(!y&&b)try{_.url=URL.createObjectURL(b)}catch(w){e.onError(w,_,n.value)}return _}))}),qe(n,g=>{for(const _ of g)_.uid||(_.uid=y_()),_.status||(_.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:s,clearFiles:o,handleError:l,handleProgress:c,handleStart:d,handleSuccess:u,handleRemove:f,submit:p,revokeFileObjectURL:gC}},Tq=ke(je(we({},ke({name:"ElUpload"})),{props:mq,setup(e,{expose:t}){const n=e,r=ss(),s=bn(),{abort:o,submit:a,clearFiles:l,uploadFiles:c,handleStart:u,handleError:d,handleRemove:f,handleSuccess:p,handleProgress:g,revokeFileObjectURL:_}=Aq(n,s),b=W(()=>n.listType==="picture-card"),y=W(()=>je(we({},n),{fileList:c.value,onStart:u,onProgress:g,onSuccess:p,onError:d,onRemove:f}));return fn(()=>{c.value.forEach(_)}),ln(aC,{accept:wi(n,"accept")}),t({abort:o,submit:a,clearFiles:l,handleStart:u,handleRemove:f}),(w,E)=>(N(),q("div",null,[T(b)&&w.showFileList?(N(),xe(dC,{key:0,disabled:T(r),"list-type":w.listType,files:T(c),crossorigin:w.crossorigin,"handle-preview":w.onPreview,onRemove:T(f)},yg({append:ee(()=>[te(pC,An({ref_key:"uploadRef",ref:s},T(y)),{default:ee(()=>[w.$slots.trigger?Ie(w.$slots,"trigger",{key:0}):re("v-if",!0),!w.$slots.trigger&&w.$slots.default?Ie(w.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)]),_:2},[w.$slots.file?{name:"default",fn:ee(({file:C,index:S})=>[Ie(w.$slots,"file",{file:C,index:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0),!T(b)||T(b)&&!w.showFileList?(N(),xe(pC,An({key:1,ref_key:"uploadRef",ref:s},T(y)),{default:ee(()=>[w.$slots.trigger?Ie(w.$slots,"trigger",{key:0}):re("v-if",!0),!w.$slots.trigger&&w.$slots.default?Ie(w.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)):re("v-if",!0),w.$slots.trigger?Ie(w.$slots,"default",{key:2}):re("v-if",!0),Ie(w.$slots,"tip"),!T(b)&&w.showFileList?(N(),xe(dC,{key:3,disabled:T(r),"list-type":w.listType,files:T(c),crossorigin:w.crossorigin,"handle-preview":w.onPreview,onRemove:T(f)},yg({_:2},[w.$slots.file?{name:"default",fn:ee(({file:C,index:S})=>[Ie(w.$slots,"file",{file:C,index:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0)]))}}));var kq=ft(Tq,[["__file","upload.vue"]]);const Pq=pn(kq);function Oq(e){let t;const n=ne(!1),r=Dn(je(we({},e),{originalPosition:"",originalOverflow:"",visible:!1}));function s(p){r.text=p}function o(){const p=r.parent,g=f.ns;if(!p.vLoadingAddClassList){let _=p.getAttribute("loading-number");_=Number.parseInt(_)-1,_?p.setAttribute("loading-number",_.toString()):(yr(p,g.bm("parent","relative")),p.removeAttribute("loading-number")),yr(p,g.bm("parent","hidden"))}a(),d.unmount()}function a(){var p,g;(g=(p=f.$el)==null?void 0:p.parentNode)==null||g.removeChild(f.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(c,400),r.visible=!1,(p=e.closed)==null||p.call(e))}function c(){if(!n.value)return;const p=r.parent;n.value=!1,p.vLoadingAddClassList=void 0,o()}const d=Bg(ke({name:"ElLoading",setup(p,{expose:g}){const{ns:_,zIndex:b}=Im("loading");return g({ns:_,zIndex:b}),()=>{const y=r.spinner||r.svg,w=dt("svg",we({class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50"},y?{innerHTML:y}:{}),[dt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),E=r.text?dt("p",{class:_.b("text")},[r.text]):void 0;return dt(Ds,{name:_.b("fade"),onAfterLeave:c},{default:ee(()=>[Nt(te("div",{style:{backgroundColor:r.background||""},class:[_.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[dt("div",{class:_.b("spinner")},[w,E])]),[[wn,r.visible]])])})}}})),f=d.mount(document.createElement("div"));return je(we({},hr(r)),{setText:s,removeElLoadingChild:a,close:l,handleAfterLeave:c,vm:f,get $el(){return f.$el}})}let Cf;const Nq=function(e={}){if(!Dt)return;const t=Iq(e);if(t.fullscreen&&Cf)return Cf;const n=Oq(je(we({},t),{closed:()=>{var s;(s=t.closed)==null||s.call(t),t.fullscreen&&(Cf=void 0)}}));Dq(t,t.parent,n),mC(t,t.parent,n),t.parent.vLoadingAddClassList=()=>mC(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),ht(()=>n.visible.value=t.visible),t.fullscreen&&(Cf=n),n},Iq=e=>{var t,n,r,s;let o;return st(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}},Dq=(e,t,n)=>at(this,null,function*(){const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,s={};if(e.fullscreen)n.originalPosition.value=Ra(document.body,"position"),n.originalOverflow.value=Ra(document.body,"overflow"),s.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Ra(document.body,"position"),yield ht();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(Ra(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])s[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=Ra(t,"position");for(const[o,a]of Object.entries(s))n.$el.style[o]=a}),mC=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?yr(t,r.bm("parent","relative")):Io(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Io(t,r.bm("parent","hidden")):yr(t,r.bm("parent","hidden"))},Sf=Symbol("ElLoading"),_C=(e,t)=>{var n,r,s,o;const a=t.instance,l=p=>ct(t.value)?t.value[p]:void 0,c=p=>{const g=st(p)&&(a==null?void 0:a[p])||p;return g&&ne(g)},u=p=>c(l(p)||e.getAttribute(`element-loading-${Zn(p)}`)),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[Sf]={options:f,instance:Nq(f)}},Rq=(e,t)=>{for(const n of Object.keys(t))Mt(t[n])&&(t[n].value=e[n])},vC={mounted(e,t){t.value&&_C(e,t)},updated(e,t){const n=e[Sf];t.oldValue!==t.value&&(t.value&&!t.oldValue?_C(e,t):t.value&&t.oldValue?ct(t.value)&&Rq(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Sf])==null||t.instance.close(),e[Sf]=null}},bC=["success","info","warning","error"],Mn=kc({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:Dt?document.body:void 0}),Lq=pt({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:ns,default:Mn.icon},id:{type:String,default:Mn.id},message:{type:Fe([String,Object,Function]),default:Mn.message},onClose:{type:Fe(Function),default:Mn.onClose},showClose:{type:Boolean,default:Mn.showClose},type:{type:String,values:bC,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}}),Mq={destroy:()=>!0},ir=ag([]),Fq=e=>{const t=ir.findIndex(s=>s.id===e),n=ir[t];let r;return t>0&&(r=ir[t-1]),{current:n,prev:r}},jq=e=>{const{prev:t}=Fq(e);return t?t.vm.exposed.bottom.value:0},Bq=(e,t)=>ir.findIndex(r=>r.id===e)>0?16:t,Uq=ke(je(we({},ke({name:"ElMessage"})),{props:Lq,emits:Mq,setup(e,{expose:t}){const n=e,{Close:r}=V3,{ns:s,zIndex:o}=Im("message"),{currentZIndex:a,nextZIndex:l}=o,c=ne(),u=ne(!1),d=ne(0);let f;const p=W(()=>n.type?n.type==="error"?"danger":n.type:"info"),g=W(()=>{const I=n.type;return{[s.bm("icon",I)]:I&&Kd[I]}}),_=W(()=>n.icon||Kd[n.type]||""),b=W(()=>jq(n.id)),y=W(()=>Bq(n.id,n.offset)+b.value),w=W(()=>d.value+y.value),E=W(()=>({top:`${y.value}px`,zIndex:a.value}));function C(){n.duration!==0&&({stop:f}=$g(()=>{A()},n.duration))}function S(){f==null||f()}function A(){u.value=!1}function P({code:I}){I===Do.esc&&A()}return Rt(()=>{C(),l(),u.value=!0}),qe(()=>n.repeatNum,()=>{S(),C()}),Si(document,"keydown",P),ci(c,()=>{d.value=c.value.getBoundingClientRect().height}),t({visible:u,bottom:w,close:A}),(I,O)=>(N(),xe(Ds,{name:T(s).b("fade"),onBeforeLeave:I.onClose,onAfterLeave:L=>I.$emit("destroy"),persisted:""},{default:ee(()=>[Nt(G("div",{id:I.id,ref_key:"messageRef",ref:c,class:Y([T(s).b(),{[T(s).m(I.type)]:I.type},T(s).is("center",I.center),T(s).is("closable",I.showClose),T(s).is("plain",I.plain),I.customClass]),style:Ze(T(E)),role:"alert",onMouseenter:S,onMouseleave:C},[I.repeatNum>1?(N(),xe(T(bU),{key:0,value:I.repeatNum,type:T(p),class:Y(T(s).e("badge"))},null,8,["value","type","class"])):re("v-if",!0),T(_)?(N(),xe(T(Ft),{key:1,class:Y([T(s).e("icon"),T(g)])},{default:ee(()=>[(N(),xe(Zt(T(_))))]),_:1},8,["class"])):re("v-if",!0),Ie(I.$slots,"default",{},()=>[I.dangerouslyUseHTMLString?(N(),q(ze,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),G("p",{class:Y(T(s).e("content")),innerHTML:I.message},null,10,["innerHTML"])],2112)):(N(),q("p",{key:0,class:Y(T(s).e("content"))},Ne(I.message),3))]),I.showClose?(N(),xe(T(Ft),{key:2,class:Y(T(s).e("closeBtn")),onClick:gt(A,["stop"])},{default:ee(()=>[te(T(r))]),_:1},8,["class","onClick"])):re("v-if",!0)],46,["id"]),[[wn,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}}));var $q=ft(Uq,[["__file","message.vue"]]);let Vq=1;const yC=e=>{const t=!e||st(e)||Os(e)||Ve(e)?{message:e}:e,n=we(we({},Mn),t);if(!n.appendTo)n.appendTo=document.body;else if(st(n.appendTo)){let r=document.querySelector(n.appendTo);br(r)||(r=document.body),n.appendTo=r}return ti(xr.grouping)&&!n.grouping&&(n.grouping=xr.grouping),Qt(xr.duration)&&n.duration===3e3&&(n.duration=xr.duration),Qt(xr.offset)&&n.offset===16&&(n.offset=xr.offset),ti(xr.showClose)&&!n.showClose&&(n.showClose=xr.showClose),n},qq=e=>{const t=ir.indexOf(e);if(t===-1)return;ir.splice(t,1);const{handler:n}=e;n.close()},zq=(r,n)=>{var s=r,{appendTo:e}=s,t=Es(s,["appendTo"]);const o=`message_${Vq++}`,a=t.onClose,l=document.createElement("div"),c=je(we({},t),{id:o,onClose:()=>{a==null||a(),qq(p)},onDestroy:()=>{Co(null,l)}}),u=te($q,c,Ve(c.message)||Os(c.message)?{default:Ve(c.message)?c.message:()=>c.message}:null);u.appContext=n||Za._context,Co(u,l),e.appendChild(l.firstElementChild);const d=u.component,p={id:o,vnode:u,vm:d,handler:{close:()=>{d.exposed.visible.value=!1}},props:u.component.props};return p},Za=(e={},t)=>{if(!Dt)return{close:()=>{}};const n=yC(e);if(n.grouping&&ir.length){const s=ir.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(Qt(xr.max)&&ir.length>=xr.max)return{close:()=>{}};const r=zq(n,t);return ir.push(r),r.handler};bC.forEach(e=>{Za[e]=(t={},n)=>{const r=yC(t);return Za(je(we({},r),{type:e}),n)}});function Hq(e){for(const t of ir)(!e||e===t.props.type)&&t.handler.close()}Za.closeAll=Hq,Za._context=null;const dn=RM(Za,"$message"),Gq=ke({name:"ElMessageBox",directives:{TrapFocus:UU},components:we({ElButton:$o,ElFocusTrap:Km,ElInput:Bo,ElOverlay:B4,ElIcon:Ft},V3),inheritAttrs:!1,props:{buttonSize:{type:String,validator:FM},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}=Im("message-box",W(()=>e.buttonSize)),{t:a}=n,{nextZIndex:l}=r,c=ne(!1),u=Dn({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:od(Ma),cancelButtonLoadingIcon:od(Ma),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),d=W(()=>{const U=u.type;return{[s.bm("icon",U)]:U&&Kd[U]}}),f=Sr(),p=Sr(),g=W(()=>u.icon||Kd[u.type]||""),_=W(()=>!!u.message),b=ne(),y=ne(),w=ne(),E=ne(),C=ne(),S=W(()=>u.confirmButtonClass);qe(()=>u.inputValue,U=>at(this,null,function*(){yield ht(),e.boxType==="prompt"&&U!==null&&H()}),{immediate:!0}),qe(()=>c.value,U=>{var J,Q;U&&(e.boxType!=="prompt"&&(u.autofocus?w.value=(Q=(J=C.value)==null?void 0:J.$el)!=null?Q:b.value:w.value=b.value),u.zIndex=l()),e.boxType==="prompt"&&(U?ht().then(()=>{var X;E.value&&E.value.$el&&(u.autofocus?w.value=(X=V())!=null?X:b.value:w.value=b.value)}):(u.editorErrorMessage="",u.validateError=!1))});const A=W(()=>e.draggable),P=W(()=>e.overflow);z3(b,y,A,P),Rt(()=>at(this,null,function*(){yield ht(),e.closeOnHashChange&&window.addEventListener("hashchange",I)})),fn(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",I)});function I(){c.value&&(c.value=!1,ht(()=>{u.action&&t("action",u.action)}))}const O=()=>{e.closeOnClickModal&&F(u.distinguishCancelAndClose?"close":"cancel")},L=Om(O),R=U=>{if(u.inputType!=="textarea")return U.preventDefault(),F("confirm")},F=U=>{var J;e.boxType==="prompt"&&U==="confirm"&&!H()||(u.action=U,u.beforeClose?(J=u.beforeClose)==null||J.call(u,U,u,I):I())},H=()=>{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 J=u.inputValidator;if(typeof J=="function"){const Q=J(u.inputValue);if(Q===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(typeof Q=="string")return u.editorErrorMessage=Q,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},V=()=>{const U=E.value.$refs;return U.input||U.textarea},ae=()=>{F("close")},ce=()=>{e.closeOnPressEscape&&ae()};return e.lockScroll&&W3(c),je(we({},hr(u)),{ns:s,overlayEvent:L,visible:c,hasMessage:_,typeClass:d,contentId:f,inputId:p,btnSize:o,iconComponent:g,confirmButtonClasses:S,rootRef:b,focusStartRef:w,headerRef:y,inputRef:E,confirmRef:C,doClose:I,handleClose:ae,onCloseRequested:ce,handleWrapperClick:O,handleInputEnter:R,handleAction:F,t:a})}});function Wq(e,t,n,r,s,o){const a=He("el-icon"),l=He("close"),c=He("el-input"),u=He("el-button"),d=He("el-focus-trap"),f=He("el-overlay");return N(),xe(Ds,{name:"fade-in-linear",onAfterLeave:p=>e.$emit("vanish"),persisted:""},{default:ee(()=>[Nt(te(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ee(()=>[G("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:Y(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[te(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ee(()=>[G("div",{ref:"rootRef",class:Y([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ze(e.customStyle),tabindex:"-1",onClick:gt(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(N(),q("div",{key:0,ref:"headerRef",class:Y([e.ns.e("header"),{"show-close":e.showClose}])},[G("div",{class:Y(e.ns.e("title"))},[e.iconComponent&&e.center?(N(),xe(a,{key:0,class:Y([e.ns.e("status"),e.typeClass])},{default:ee(()=>[(N(),xe(Zt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),G("span",null,Ne(e.title),1)],2),e.showClose?(N(),q("button",{key:0,type:"button",class:Y(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:Ki(gt(p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[te(a,{class:Y(e.ns.e("close"))},{default:ee(()=>[te(l)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):re("v-if",!0)],2)):re("v-if",!0),G("div",{id:e.contentId,class:Y(e.ns.e("content"))},[G("div",{class:Y(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(N(),xe(a,{key:0,class:Y([e.ns.e("status"),e.typeClass])},{default:ee(()=>[(N(),xe(Zt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.hasMessage?(N(),q("div",{key:1,class:Y(e.ns.e("message"))},[Ie(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(N(),xe(Zt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(N(),xe(Zt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:ee(()=>[Je(Ne(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):re("v-if",!0)],2),Nt(G("div",{class:Y(e.ns.e("input"))},[te(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":p=>e.inputValue=p,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:Y({invalid:e.validateError}),onKeydown:Ki(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),G("div",{class:Y(e.ns.e("errormsg")),style:Ze({visibility:e.editorErrorMessage?"visible":"hidden"})},Ne(e.editorErrorMessage),7)],2),[[wn,e.showInput]])],10,["id"]),G("div",{class:Y(e.ns.e("btns"))},[e.showCancelButton?(N(),xe(u,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:Y([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:p=>e.handleAction("cancel"),onKeydown:Ki(gt(p=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:ee(()=>[Je(Ne(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):re("v-if",!0),Nt(te(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:Y([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:p=>e.handleAction("confirm"),onKeydown:Ki(gt(p=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:ee(()=>[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 Kq=ft(Gq,[["render",Wq],["__file","index.vue"]]);const Gc=new Map,Jq=e=>{let t=document.body;return e.appendTo&&(st(e.appendTo)&&(t=document.querySelector(e.appendTo)),br(e.appendTo)&&(t=e.appendTo),br(t)||(t=document.body)),t},Yq=(e,t,n=null)=>{const r=te(Kq,e,Ve(e.message)||Os(e.message)?{default:Ve(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Co(r,t),Jq(e).appendChild(t.firstElementChild),r.component},Xq=()=>document.createElement("div"),Zq=(e,t)=>{const n=Xq();e.onVanish=()=>{Co(null,n),Gc.delete(s)},e.onAction=o=>{const a=Gc.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=Yq(e,n,t),s=r.proxy;for(const o in e)bt(e,o)&&!bt(s.$props,o)&&(s[o]=e[o]);return s.visible=!0,s};function Qa(e,t=null){if(!Dt)return Promise.reject();let n;return st(e)||Os(e)?e={message:e}:n=e.callback,new Promise((r,s)=>{const o=Zq(e,t!=null?t:Qa._context);Gc.set(o,{options:e,callback:n,resolve:r,reject:s})})}const Qq=["alert","confirm","prompt"],ez={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Qq.forEach(e=>{Qa[e]=tz(e)});function tz(e){return(t,n,r,s)=>{let o="";return ct(n)?(r=n,o=""):Zi(n)?o="":o=n,Qa(Object.assign(we({title:o,message:t,type:""},ez[e]),r,{boxType:e}),s)}}Qa.close=()=>{Gc.forEach((e,t)=>{t.doClose()}),Gc.clear()},Qa._context=null;const zs=Qa;zs.install=e=>{zs._context=e._context,e.config.globalProperties.$msgbox=zs,e.config.globalProperties.$messageBox=zs,e.config.globalProperties.$alert=zs.alert,e.config.globalProperties.$confirm=zs.confirm,e.config.globalProperties.$prompt=zs.prompt};const wC=zs,The="",khe="",Phe="",Ohe="",w_=new WeakMap;function C_(e){let t=w_.get(e);return t||w_.set(e,t=Object.create(null)),t}function Hs(e,t,n){if(Array.isArray(t))t.forEach(r=>Hs(e,r,n));else{const r=C_(e);(r[t]||(r[t]=[])).push(n)}return e}function Gs(e,t,n){const r=e;if(!t)return w_.set(e,Object.create(null)),r;if(Array.isArray(t))return t.forEach(a=>Gs(e,a,n)),r;const s=C_(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 Xe(e,t,...n){e&&e.$emit&&e.$emit(t,...n);const r=C_(e)[t];return r&&r.map(s=>s.apply(e,n)),e}function nz(e){return/^(https?:|mailto:|tel:)/.test(e)}const Nhe="",nn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},iz={name:"ForceGraphSvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal(){return nz(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%`}}}},rz=["xlink:href"];function sz(e,t,n,r,s,o){return o.isExternal?(N(),q("div",An({key:0},e.$attrs,{style:o.styleExternalIcon,class:"svg-external-icon svg-icon"}),null,16)):(N(),q("svg",An({key:1},e.$attrs,{class:o.svgClass,"aria-hidden":"true"}),[G("use",{"xlink:href":o.iconName},null,8,rz)],16))}const Ho=nn(iz,[["render",sz],["__scopeId","data-v-73ac1940"]]);class oz{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 _ in this.dataNow.nodes)if(g.id===this.dataNow.nodes[_].id){const b=[];g.keyVals.map(y=>{b.push({key:y.key,value:JSON.parse(JSON.stringify(this.dataNow.nodes[_][y.key]))})}),l.originNodes.push({id:g.id,keyVals:b}),g.keyVals.map(y=>{this.dataNow.nodes[_][y.key]=y.value});break}}),l.links&&l.links.map(g=>{for(const _ in this.dataNow.links)if(g.source===this.dataNow.links[_].source&&g.target===this.dataNow.links[_].target){l.originLinks.push(this.dataNow.links[_]),this.dataNow.links[_]=g;break}}));function d(g){g&&g.map(_=>{var b;for(const y in r.dataNow.nodes)if(_.id===r.dataNow.nodes[y].id){c.originNodes.push(r.dataNow.nodes[y]),u!=="aggregation"&&(r.dataOrigin.nodes[`${r.dataNow.nodes[y].id}`]=!1),r.dataNow.nodes.splice(y,1);const w=JSON.parse(JSON.stringify(r.dataNow.links));for(let E=w.length-1;E>=0;E--)if((_.id===w[E].source.id||_.id===w[E].target.id)&&(c.originLinks.push(w[E]),u!=="aggregation"&&(r.dataOrigin.links[`${w[E].source.id}+${w[E].target.id}`]=!1),r.dataNow.links.splice(E,1),r.updateNodeTree(w[E],"delete"),r.updateNodeParent(w[E],"delete"),_.id===w[E].target.id&&w[E].source.type==="nodeType"&&!r.nodeTree[w[E].source.id]&&d([w[E].source]),_.id===w[E].source.id)){const C=w[E].target;((b=r.nodeParent[C.id])==null?void 0:b.length)>=1?r.nodeParent[C.id].some(A=>c.originNodes.map(P=>P.id).indexOf(A)<0)||d([C]):d([C])}break}})}c&&(c.originNodes=[],c.originLinks=[],d(c.nodes),c.links&&c.links.map(g=>{for(const _ in this.dataNow.links)if(g.source===this.dataNow.links[_].source&&g.target===this.dataNow.links[_].target){c.originLinks.push(this.dataNow.links[_]),u!=="aggregation"&&(this.dataOrigin.links[`${this.dataNow.links[_].source.id}+${this.dataNow.links[_].target.id}`]=!1),this.dataNow.links.splice(_,1),this.updateNodeTree(g,"delete"),this.updateNodeParent(g,"delete");break}})),this.updateGroups(),this.computePos();const f=this.dataNow.nodes.length,p=this.dataNow.links.length;return u!=="aggregation"&&this.showMessage(f-s,p-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(p=>{for(const g in this.dataNow.nodes)if(p.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(p=>{var g,_,b,y;for(const w in this.dataNow.links){const E=(g=p.source)!=null&&g.id?p.source.id:p.source,C=(_=p.target)!=null&&_.id?p.target.id:p.target,S=(b=this.dataNow.links[w].source)!=null&&b.id?this.dataNow.links[w].source.id:this.dataNow.links[w].source,A=(y=this.dataNow.links[w].target)!=null&&y.id?this.dataNow.links[w].target.id:this.dataNow.links[w].target;if(E===S&&C===A){this.dataOrigin.links[`${S}+${A}`]=!1,this.dataNow.links.splice(w,1),this.updateNodeTree(p,"delete"),this.updateNodeParent(p,"delete");break}}})),r&&(r.originNodes&&r.originNodes.map(p=>{for(const g in this.dataNow.nodes)if(p.id===this.dataNow.nodes[g].id){p.keyVals.map(_=>{this.dataNow.nodes[g][_.key]=_.value});break}}),r.originLinks&&r.originLinks.map(p=>{for(const g in this.dataNow.links)if(p.source.id===this.dataNow.links[g].source.id&&p.target.id===this.dataNow.links[g].target.id){p.keyVals.map(_=>{this.dataNow.links[g][_.key]=_.value});break}})),s&&(s.originNodes&&s.originNodes.map(p=>{(!this.dataOrigin.nodes[p.id]||o==="aggregation")&&(this.dataOrigin.nodes[p.id]=!0,this.dataNow.nodes.push(p))}),s.originLinks&&s.originLinks.map(p=>{(!this.dataOrigin.links[`${p.source}+${p.target}`]&&!this.dataOrigin.links[`${p.target}+${p.source}`]||o==="aggregation")&&(this.dataOrigin.links[`${p.source.id}+${p.target.id}`]=!0,this.dataNow.links.push(p),this.updateNodeTree(p),this.updateNodeParent(p))}));for(const p in this.dataNow.links)this.dataNow.links[p].source=(d=this.dataNow.links[p].source)!=null&&d.id?this.dataNow.links[p].source.id:this.dataNow.links[p].source,this.dataNow.links[p].target=(f=this.dataNow.links[p].target)!=null&&f.id?this.dataNow.links[p].target.id:this.dataNow.links[p].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;dn({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 p=s.length-1;p>=0;p--)if(d.id===s[p].target.id&&s[p].source.type==="nodeType"&&o.dataNow.nodes.filter(_=>o.nodeTree[s[p].source.id].indexOf(_.id)>=0&&_.show===!0).length===0&&a(s[p].source),d.id===s[p].source.id){const g=s[p].target;if(((f=o.nodeParent[g.id])==null?void 0:f.length)>=1){const b=o.dataNow.nodes.filter(w=>o.nodeParent[g.id].indexOf(w.id)>=0&&w.show===!0).length,y=o.dataNow.nodes.some(w=>w.id===g.id&&w.startNode===!0);b===0&&!y&&a(g)}}}}function l(d){d.show=!0;for(let p=s.length-1;p>=0;p--)s[p].source.id===d.id&&s[p].target.show===!1&&(s[p].target.show=!0,l(s[p].target));const{keyNodeIds:f}=o.findKeyLinksAndNodes(d.id);o.dataNow.nodes.map(p=>{f.indexOf(p.id)>=0&&!p.show&&(p.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 _,b;const p=t.dataNow.nodes.find(y=>y.id===c[d].parents&&c[d].parents[0]),g=t.dataNow.nodes.find(y=>y.id===c[f].parents&&c[f].parents[0]);return((_=p==null?void 0:p.indexPos)==null?void 0:_.split("-").pop())*1-((b=g==null?void 0:g.indexPos)==null?void 0:b.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(p=>{p.target===d.id&&(p.indexPos=d.indexPos)})});const u=t.dataNow.links.filter(d=>{const f=r[l].indexOf(d.source.id?d.source.id:d.source)>=0,p=r.flat().indexOf(d.target.id?d.target.id:d.target)<0;return f&&p}).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&&(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 p,g;const d=n.dataNow.nodes.find(_=>_.id===u),f=(p=d.children)==null?void 0:p.reduce((_,b)=>(n.dataNow.nodes.find(w=>b===w.id).widthBefore||0)+_,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(p=>p.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,p;return((f=u.indexPos)==null?void 0:f.split("-").pop())*1-((p=d.indexPos)==null?void 0:p.split("-").pop())*1}),l(a[c]);function l(c){var p,g;const u=((p=o.dataNow.nodes.find(_=>c[0].parents[0]===_.id))==null?void 0:p.levelWidth)||0,d=((g=o.dataNow.nodes.find(_=>c[0].parents[0]===_.id))==null?void 0:g.pos)||0;let f=0;c.map((_,b)=>{_.pos=f+_.widthBefore-u/2+d,f=f+_.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 Ihe="",xf="graph-node-level-",S_="legend-level-";function az(e){let t="",n="",r="";return e.forEach(s=>{const o=s.className,a=s.normalColor,l=s.darkColor?s.darkColor:s.normalColor,c=xf+o,u=`--graph-level-${o}`;n+=`${u}: ${a};`,r+=`${u}: ${l};`,t+=`
|
|
58
|
+
// 没有level时的默认样式
|
|
59
|
+
.d3-container .${xf}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
|
+
.${S_}${o} .legend-level-icon .level-color {
|
|
102
|
+
fill: var(${u});
|
|
103
|
+
stroke: var(${u});
|
|
104
|
+
}
|
|
105
|
+
/* 左侧legend的icon圆点的样式 */
|
|
106
|
+
.${S_}${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 lz(e){const t=document.createElement("style");t.innerHTML=e,document.head.appendChild(t),window.insertSafeForceGraphStyle=!0}function cz(e){if(window.insertSafeForceGraphStyle){Oi("已存在样式");return}const t=az(e);lz(t)}function Ef(e,t){var r;if(e==null||e==="")return xf+"unknown";const n=(r=t[e])==null?void 0:r.className;return n?xf+n:""}function Go(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 uz(e,t){var r;return((r=t.find(s=>s.level===e))==null?void 0:r.dangerNumber)>0}const Af={"./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 as(e){try{var t,n=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(t=document.cookie.match(n))?unescape(t[2]):""}catch(r){return""}}function x_(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 CC(e){return e!=null&&e.constructor!=null?Object.prototype.toString.call(e).slice(8,-1):""}function SC(e){return CC(e)=="Array"}function Wc(e){return CC(e)=="Function"}function Tr(e){return e!==null&&typeof e=="object"}function kr(e,t,n){for(var r in t)(n||!e[r]&&!(r in e))&&(e[r]=t[r]);return e}const xC={"360se-ua":"360se","360ee":"360ee",edge:"edg",edge:"edga",edge:"edgios",TT:"tencenttraveler",Maxthon:"maxthon",GreenBrowser:"greenbrowser",Sogou:"se 2.x",TheWorld:"theworld"},dz=["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 rt=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 dz.map(n=>{e.indexOf(n.toLowerCase())>=0&&(t=!0)}),t}setUtilActiveTime(e){this._activeTime=e}setHeartBeatStartTime(e,t){kr(this.getHeartBeatById(e),{startTime:t},!0)}setHeartBeatTimer(e,t){kr(this.getHeartBeatById(e),{timer:t},!0)}getHeartBeatStartTime(e){return this.getHeartBeatById(e).startTime}getHeartBeatTimer(e){return this.getHeartBeatById(e).timer}getHeartBeatById(e){return Tr(this.heartbeatTimers[e])||(this.heartbeatTimers[e]={}),this.heartbeatTimers[e]}deleteHeartBeat(e){delete this.heartbeatTimers[e]}setUtilConf(e,t){var n={};Tr(e)?n=e:n[e]=t,this.config=kr(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 xC)if(e.indexOf(xC[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=as(e);return!t&&(t=as("__sid"))&&t.split(".").length!==4&&(t=null),t||(t=[this.hash(this.isLocal()?"":document.domain),this.guid(),+new Date+Math.random()].join(".")),x_(e,t,{expires:60*(this._activeTime||30)*1e3,path:"/"}),t}setUtilTrackId(e){this.trackId=e}getGid(e=!1){var t="__DC_gid",n=as(t);if(!n&&(n=as("__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),x_(t,n,{expires:63072e6,path:"/"}),n}getBrowserID(){return at(this,null,function*(){return new Promise((e,t)=>at(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=as("__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=as("__asc2"),this.setASC2(n))}catch(r){}e(n)},500)})}setASC2(e){this.asc2=e}getCount(){var e="__DC_monitor_count",t=as(e);return t||(t=as("monitor_count")),x_(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 Tf(e,t,n){e.addEventListener?e&&e.addEventListener(t,n,!1):e&&e.attachEvent("on"+t,n)}function E_(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 Kc=[];function EC(e){Wc(e)&&Kc.push(e)}function fz(e){var t,n;if(SC(e))for(n=e.length,t=0;t<n;t++)EC(e[t]);else EC(e);(function(r){Kc.splice(Kc.indexOf(r),1)})(e),e=null}function AC(e){if(!("target"in e)){var t=e.srcElement||e.target;t&&t.nodeType==3&&(t=t.parentNode),e.target=t}return e}let pz=class{constructor(){this.baseExtend={},this.title="",this.placeholder=[]}getBase(t=!1){var n={p:rt.getProject(),u:rt.getLocation(),gid:rt.getGid(t),sid:rt.getSid(),title:this.getTitle()},r=rt.getReferrerKeyWord();return r&&(n.q=r.q,n.eqid=r.eqid),n}getBaseTrack(t){var n=rt.getSid()==rt.getSid()?1:0,r={b:rt.getBrowser(),c:rt.getCount(),r:rt.getReferrer(),fl:rt.getFlashVer(),sd:rt.getColorDepth(),sr:rt.getScreenSize(),ul:rt.getLanguage(),ua:rt.getUserAgent(),ce:n};if(t)try{t=t.split(",");for(var s=[],o=0,a=t.length;o<a;o++){var l=as(t[o]);s.push(t[o]+"="+encodeURIComponent(l))}r.uc=encodeURIComponent(s.join("&"))}catch(c){}return r}getClick(t){var n,r,s=(t=AC(t||event)).target,o=s.tagName,a=rt.getContainerId(s);if(a=="bk:noupload")return!1;if(!s.type||s.type!="submit"&&s.type!="button")return o=="AREA"?{f:rt.getHref(s),c:"area:"+s.parentNode.name,cId:a}:(o=="IMG"&&(n=s),!!(s=E_(s,"A"))&&(r=rt.getText(s),{f:rt.getHref(s),c:r||(n?n.src.match(/[^\/]+$/):""),cId:a}));var l=E_(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:rt.getHref(s),c:rt.getText(s),cId:a};return c}getKeydown(t){if((t=AC(t||event)).keyCode!=13)return!1;var n=t.target,r=n.tagName,s=rt.getContainerId(n);if(r=="INPUT"){var o=E_(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}},hz=class{constructor(t){this.master=t,this.lastLocation=rt.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),Tf(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;Wc(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;Wc(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 gz="2.4.0";const ls=new class{constructor(){this.version=gz,this.data=new pz,this.util=rt,this.heatmap_enable=!1,this.disable_autoPV=!1,this.manualPV_enable=!1,this.autopv=new hz(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}):rt.log("确认必须先调用setAscAndAsc2和setThirdProps接口"))}getLibVersion(){return this.version}setTitle(e){return this.data.setBaseTitle(e),this}setTrackId(e){return rt.setUtilTrackId(e.replace(/\./g,"")),this}getBrowserID(e){return at(this,null,function*(){return new Promise((t,n)=>at(this,null,function*(){if(e){if(this.data.placeholder.length<=0){const{mid:r,m2:s,asc:o,asc2:a}=yield rt.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 at(this,null,function*(){var n="";if(e===!1)return;const r=t===this.getConf().trackUrl;e=e||{};var s,o=kr(this.data.getBase(r),this.data.getBaseExtend(),!0);e=kr(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?rt.userAgentIsExitsSpiders()||this.buildLog(function(r,s){var o,a=Kc.length,l=s;for(o=0;o<a;o++)try{l=kr(l,Kc[o].beforeLog(r,s))}catch(c){}return l}(t,e),n):rt.log("Error : the "+t+" url does not exist!")}setConf(e,t){return rt.setUtilConf(e,t),this}getConf(){return rt.getUtilConf()}setUrl(e){if(e)return rt.getLocation(e)}extendBase(e){if(e&&Tr(e)){var t=kr(this.data.getBaseExtend(),e,!0);this.data.getBaseExtend(t)}}setProject(e,t,n){return rt.setAppKey(e),this.extendBase(t),this.init(n),this}setDebug(e=!0,t,n,r){return rt.debug=e,e&&(rt.log("当前已开启debug模式,可能会输出log,发布前请关闭!!!"),rt.log("当前配置测试appkey:",t),rt.setAppKey(t),this.extendBase(n),this.init(r)),this}setTrackId(e){return rt.setUtilTrackId(e.replace(/\./g,"")),this}setId(e){for(var t=[];e=arguments[i++];)SC(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 Tr(t)&&(s=kr(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:rt.getScreenSize()},"clickHeatMap"),void(r=[])):void 0;s=setTimeout(()=>{o(!0)},60*t*1e3)};return Tf(document,"mousedown",a=>{var l=a.pageX+"."+a.pageY;r.push(l),o()}),this}}getClickAndKeydown(){return Tf(document,"mousedown",e=>{var t=this.data.getClick(e);this.log(t,"click")}),Tf(document,"keydown",e=>{var t=this.data.getKeydown(e);this.log(t,"click")}),this}beginHeartBeat(e,t,n){var r={};r.id=e,Tr(t)&&(r=kr(r,t,!1)),(n=isNaN(n)?10:n)>60?n=60:n<5&&(n=5);var s=this;rt.setHeartBeatStartTime(e,Date.parse(new Date));var o=a=>{r.steptime=a,s.steptime=a,s.log(r,"heartbeat"),clearTimeout(rt.getHeartBeatTimer(e)),rt.setHeartBeatTimer(e,setTimeout(()=>{var l=(Date.parse(new Date)-rt.getHeartBeatStartTime(e))/1e3;o(l)},1e3*n))};o(0)}endHeartBeat(e,t){var n=rt.getHeartBeatStartTime(e);if(n!=null){var r={};r.id=e,Tr(t)&&(r=kr(r,t,!1)),clearTimeout(rt.getHeartBeatTimer(e));var s=(Date.parse(new Date)-n)/1e3;r.steptime=s,this.log(r,"heartbeat"),rt.deleteHeartBeat(e)}}setActiveTime(e){return rt.setUtilActiveTime(e),this}addPlugin(e){return fz(e)}use(e,t){return typeof(n=e)=="string"||n instanceof String?Tr(window.RADAR_MONITOR_WEBJSSDKPLUGIN)&&Tr(window.RADAR_MONITOR_WEBJSSDKPLUGIN[e])&&Wc(window.RADAR_MONITOR_WEBJSSDKPLUGIN[e].init)?(window.RADAR_MONITOR_WEBJSSDKPLUGIN[e].init(ls,t),window.RADAR_MONITOR_WEBJSSDKPLUGIN[e]):Tr(ls.modules)&&Tr(ls.modules[e])&&Wc(ls.modules[e].init)?(ls.modules[e].init(ls,t),ls.modules[e]):void rt.log(e+"没有获取到,请查阅文档,调整"+e+"的引入顺序!"):(rt.log("use插件名称必须是字符串!"),!1);var n}};function mz(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function TC(e,t){return fetch(e,t).then(mz)}const _z=(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)},kf=(e,t)=>at(this,null,function*(){let n;return yield cs(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 cs(e){return at(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 A_(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 el(){var e=/macintosh|mac os x/i.test(navigator.userAgent);return e}function us(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 vz(e){return e&&e.replace(/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,"")}function Oi(...e){localStorage.getItem("showSafeForceGraphLog")&&console.log(...e)}function Fn(e){ls.log(e,"click")}function T_(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 kC(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 bz(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 PC(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 OC(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 yz(e){return{}.VITE_SVG_TYPE==="base64"?PC(e):TC(e)}function k_(e){let t={};if({}.VITE_LOCAL_ONLY==="true")for(const r in Af)t[r]=r.split("public/").join("");else t=Af;return t[e]}function tl(e){return k_(`./public/d3svg1/${e}.svg`)}const P_={};function wz(r){return at(this,arguments,function*({node:e,levelList:t,darkMode:n}){var l,c,u,d,f,p,g,_,b,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=((p=(f=(d=e==null?void 0:e.detail)==null?void 0:d.info)==null?void 0:f.basic)==null?void 0:p.level)||"";if(e.detail&&((_=(g=e.detail)==null?void 0:g.info)!=null&&_.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=tl(w)?tl(w):tl("node_type")}else if(o&&(e.type==="ip"||e.type==="internet"))s=k_(`./public/d3svg1/flags/${o}.png`);else if((y=(b=e.detail)==null?void 0:b.info)!=null&&y.inner_country&&(e.type==="country"||e.type==="target_country")){const w=e.detail.info.inner_country;s=k_(`./public/d3svg1/flags/${w}.png`)}else{const w=`${e.type||"node"}${a}${n}`;if(P_[w])return s=P_[w],s;const E=tl(e.type)?tl(e.type):tl("node"),C=yield yz(E),S=Go(a,t,n);s=kC(C,S,n?"#182628":"#fff"),s="data:image/svg+xml,"+encodeURIComponent(s),P_[w]=s}return s})}function Pf(e){return typeof e!="object"||e===null||!e?e:Array.isArray(e)?e.map(t=>Pf(t)):Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=Pf(e[n]),t),{})}const Dhe="",O_={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;wz({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=Go(e,this.levelList,this.darkMode)}}},NC=()=>{tP(e=>({"20587f86":e.strokeColor}))},IC=O_.setup;O_.setup=IC?(e,t)=>(NC(),IC(e,t)):NC;const Cz={key:0,class:"flag-border"},Sz=["src"],xz=["src"];function Ez(e,t,n,r,s,o){return o.isCountryFlag?(N(),q("div",Cz,[G("img",{class:"node-img",src:s.imgUrl},null,8,Sz)])):(N(),q("img",{key:1,class:"node-img",src:s.imgUrl},null,8,xz))}const Jc=nn(O_,[["render",Ez],["__scopeId","data-v-5fdfe48e"]]),Pr={computed:{imgPath(){let e={};if({}.VITE_LOCAL_ONLY==="true")for(const n in Af)e[n]=n.split("public/").join("");else e=Af;return e}}},wt={},N_=Dn({filterValues:""}),I_={name:"fix_nodes",namec:"固定节点"},D_={name:"un_fix_nodes",namec:"解除固定"},Az={name:"show_names",namec:"显示名称"},Tz={name:"un_show_names",namec:"隐藏名称"},kz={name:"un_show_label",namec:"隐藏备注"},Pz={name:"show_label",namec:"显示备注"},DC={name:"hold_aggregation",namec:"单边子顶点聚合"},RC={name:"release_aggregation",namec:"聚合顶点释放"},Oz={name:"copy",namec:"复制"},LC={name:"node_star",namec:"收藏"},MC={name:"un_node_star",namec:"取消收藏"},FC={name:"edit_label",namec:"修改备注"},R_={name:"delete_node",namec:"删除"},jC={name:"select_children",namec:"子顶点选择"},BC={name:"select_parents",namec:"父顶点选择"},Nz={name:"add_con_node",namec:"添加关联节点"},Iz={name:"expand_node",namec:"展开全部关系"};function Of(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 Nf(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 UC={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()})(Vs,function(){return function(){var n={686:function(o,a,l){l.d(a,{default:function(){return ye}});var c=l(279),u=l.n(c),d=l(370),f=l.n(d),p=l(817),g=l.n(p);function _(pe){try{return document.execCommand(pe)}catch(ie){return!1}}var b=function(ie){var oe=g()(ie);return _("cut"),oe},y=b;function w(pe){var ie=document.documentElement.getAttribute("dir")==="rtl",oe=document.createElement("textarea");oe.style.fontSize="12pt",oe.style.border="0",oe.style.padding="0",oe.style.margin="0",oe.style.position="absolute",oe.style[ie?"right":"left"]="-9999px";var Ce=window.pageYOffset||document.documentElement.scrollTop;return oe.style.top="".concat(Ce,"px"),oe.setAttribute("readonly",""),oe.value=pe,oe}var E=function(ie,oe){var Ce=w(ie);oe.container.appendChild(Ce);var me=g()(Ce);return _("copy"),Ce.remove(),me},C=function(ie){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Ce="";return typeof ie=="string"?Ce=E(ie,oe):ie instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(ie==null?void 0:ie.type)?Ce=E(ie.value,oe):(Ce=g()(ie),_("copy")),Ce},S=C;function A(pe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(oe){return typeof oe}:A=function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},A(pe)}var P=function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=ie.action,Ce=oe===void 0?"copy":oe,me=ie.container,z=ie.target,Z=ie.text;if(Ce!=="copy"&&Ce!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(z!==void 0)if(z&&A(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(Z)return S(Z,{container:me});if(z)return Ce==="cut"?y(z):S(z,{container:me})},I=P;function O(pe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(oe){return typeof oe}:O=function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},O(pe)}function L(pe,ie){if(!(pe instanceof ie))throw new TypeError("Cannot call a class as a function")}function R(pe,ie){for(var oe=0;oe<ie.length;oe++){var Ce=ie[oe];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(pe,Ce.key,Ce)}}function F(pe,ie,oe){return ie&&R(pe.prototype,ie),oe&&R(pe,oe),pe}function H(pe,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");pe.prototype=Object.create(ie&&ie.prototype,{constructor:{value:pe,writable:!0,configurable:!0}}),ie&&V(pe,ie)}function V(pe,ie){return V=Object.setPrototypeOf||function(Ce,me){return Ce.__proto__=me,Ce},V(pe,ie)}function ae(pe){var ie=J();return function(){var Ce=Q(pe),me;if(ie){var z=Q(this).constructor;me=Reflect.construct(Ce,arguments,z)}else me=Ce.apply(this,arguments);return ce(this,me)}}function ce(pe,ie){return ie&&(O(ie)==="object"||typeof ie=="function")?ie:U(pe)}function U(pe){if(pe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return pe}function J(){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(pe){return!1}}function Q(pe){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},Q(pe)}function X(pe,ie){var oe="data-clipboard-".concat(pe);if(ie.hasAttribute(oe))return ie.getAttribute(oe)}var j=function(pe){H(oe,pe);var ie=ae(oe);function oe(Ce,me){var z;return L(this,oe),z=ie.call(this),z.resolveOptions(me),z.listenClick(Ce),z}return F(oe,[{key:"resolveOptions",value:function(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof me.action=="function"?me.action:this.defaultAction,this.target=typeof me.target=="function"?me.target:this.defaultTarget,this.text=typeof me.text=="function"?me.text:this.defaultText,this.container=O(me.container)==="object"?me.container:document.body}},{key:"listenClick",value:function(me){var z=this;this.listener=f()(me,"click",function(Z){return z.onClick(Z)})}},{key:"onClick",value:function(me){var z=me.delegateTarget||me.currentTarget,Z=this.action(z)||"copy",_e=I({action:Z,container:this.container,target:this.target(z),text:this.text(z)});this.emit(_e?"success":"error",{action:Z,text:_e,trigger:z,clearSelection:function(){z&&z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(me){return X("action",me)}},{key:"defaultTarget",value:function(me){var z=X("target",me);if(z)return document.querySelector(z)}},{key:"defaultText",value:function(me){return X("text",me)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(me){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(me,z)}},{key:"cut",value:function(me){return y(me)}},{key:"isSupported",value:function(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],z=typeof me=="string"?[me]:me,Z=!!document.queryCommandSupported;return z.forEach(function(_e){Z=Z&&!!document.queryCommandSupported(_e)}),Z}}]),oe}(u()),ye=j},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(p,g,_,b,y){var w=f.apply(this,arguments);return p.addEventListener(_,w,y),{destroy:function(){p.removeEventListener(_,w,y)}}}function d(p,g,_,b,y){return typeof p.addEventListener=="function"?u.apply(null,arguments):typeof _=="function"?u.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(w){return u(w,g,_,b,y)}))}function f(p,g,_,b){return function(y){y.delegateTarget=c(y.target,g),y.delegateTarget&&b.call(p,y)}}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(_,b,y){if(!_&&!b&&!y)throw new Error("Missing required arguments");if(!c.string(b))throw new TypeError("Second argument must be a String");if(!c.fn(y))throw new TypeError("Third argument must be a Function");if(c.node(_))return f(_,b,y);if(c.nodeList(_))return p(_,b,y);if(c.string(_))return g(_,b,y);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(_,b,y){return _.addEventListener(b,y),{destroy:function(){_.removeEventListener(b,y)}}}function p(_,b,y){return Array.prototype.forEach.call(_,function(w){w.addEventListener(b,y)}),{destroy:function(){Array.prototype.forEach.call(_,function(w){w.removeEventListener(b,y)})}}}function g(_,b,y){return u(document.body,_,b,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 p=0,g=d.length;p<g;p++)d[p].fn!==c&&d[p].fn._!==c&&f.push(d[p]);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})})(UC);var Dz=UC.exports;const Rz=p4(Dz),If=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 Rz(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)})}}},Rhe="",{toClipboard:Lz}=If(),Mz={name:"NodeDetail",components:{NodeIcon:Jc,QuestionFilled:B3,ForceGraphSvgIcon:Ho},mixins:[Pr],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"?"":Ef(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(Iz),e.push(FC),e.push(Oz),e.push(this.data.collect?MC:LC),e.push(this.data.textProp==="name"?Tz:Az),e.push(this.data.fx?D_:I_),e.push(R_),this.data.label&&e.push(this.data.textProp==="label"?kz:Pz);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"?RC:DC),e.push(this.data.fx?D_:I_),e.push(R_)}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(FC),e.push(this.data.collect?MC:LC),a.length===1&&e.push(jC),l.length===1&&e.push(BC)):(a.length>0&&e.push(jC),l.length>0&&e.push(BC)),e.push(this.data.fx?D_:I_),r||this.data.type==="aggregation"?e.push(RC):c&&e.push(DC),e.push(Nz),e.push(R_)}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(){Hs(wt,"flagIcon",e=>{this.flagFiles={},e!==void 0&&(this.flagFiles=e)})},mounted(){Hs(wt,"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(){Gs(wt,"flagIcon"),Gs(wt,"relationNum")},methods:{isSomething(e){return A_(e)},hover(e){this.current=e},out(){this.current=null},handleButtonClick(e){Fn({cId:"rightMenu-"+e.name,c:"右侧菜单-"+e.namec}),this.selectedNodes.length>1?Xe(wt,"buttonClick",{nodes:[...this.selectedNodes],api:e}):this.data.type!=="nodeType"?Xe(wt,"buttonClick",{nodes:[...this.selectedNodes],api:e}):Xe(wt,"buttonClick",{nodes:[...this.selectedNodes],api:e})},copyText(e){Fn({cId:"copyText",c:"复制"}),Lz(e).then(t=>dn({message:"复制成功",type:"success"}),t=>dn.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 Of(Nf(e))}}},Fz={class:"node-detail-block"},jz={class:"node-preview"},Bz={class:"left"},Uz={class:"icon-group"},$z={key:0,class:"md5-type"},Vz=["title"],qz={class:"right"},zz=["title"],Hz={class:"title-top"},Gz={key:0,class:"node-num"},Wz={class:"opt-btns"},Kz={key:0,class:"node-num"},Jz={class:"opt-btns"},Yz={class:"node-field-list"},Xz={key:0,class:"row-item row-item-tag"},Zz={class:"value"},Qz={class:"graph-tags-box"},eH={key:0,class:"row-item"},tH={class:"label"},nH=["title"],iH={class:"detail"},rH=["title"],sH=["title"],oH={key:1,class:"select-mults"},aH={class:"title-top"},lH={class:"node-num"},cH={class:"controls-box"},uH=["onMouseenter"];function dH(e,t,n,r,s,o){const a=He("NodeIcon"),l=fi,c=qc,u=He("QuestionFilled"),d=Ft,f=He("force-graph-svg-icon");return N(),q("div",Fz,[n.selectedNodes.length===1?(N(),q(ze,{key:0},[G("div",jz,[G("div",Bz,[G("div",Uz,[te(a,{class:"node-icon","node-info":n.data},null,8,["node-info"]),n.data.type==="md5"?(N(),q("p",$z,Ne(n.data.detail&&n.data.detail.info.basic.file_type.toUpperCase()||"MD5"),1)):re("",!0)]),o.canGoDetail&&n.data.detail&&n.data.detail.info.basic.level?(N(),q("div",{key:0,class:Y(["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,Vz)):re("",!0)]),G("div",qz,[G("div",{class:Y(["id-box",n.data.type==="nodeType"||n.data.type==="aggregation"?"id-box2":""]),title:n.data.name},[G("h3",Hz,[o.canGoUrl?(N(),q(ze,{key:0},[G("span",{class:"go-result",onClick:t[0]||(t[0]=p=>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"?(N(),q("span",Gz,Ne(s.childNodesLength),1)):re("",!0)]),G("span",Wz,[te(l,{content:"复制","popper-class":"el-tooltip-gray"},{default:ee(()=>[G("img",{src:"https://s7.qhres2.com/static/d42d48bb495c87dc.svg",class:"id-copy",onClick:t[1]||(t[1]=gt(p=>o.copyText(n.data.name),["prevent"]))})]),_:1})])],64)):(N(),q(ze,{key:1},[Je(Ne(o.cutName(n.data.name==="聚合"?"聚合节点":n.data.name))+" ",1),n.data.type==="nodeType"||n.data.type==="aggregation"?(N(),q("span",Kz,Ne(s.childNodesLength),1)):re("",!0),G("span",Jz,[te(l,{content:"复制","popper-class":"el-tooltip-gray"},{default:ee(()=>[G("img",{src:"https://s7.qhres2.com/static/d42d48bb495c87dc.svg",class:"id-copy",onClick:t[2]||(t[2]=p=>o.copyText(n.data.name))})]),_:1})])],64))])],10,zz)])]),G("div",Yz,[n.data.detail&&n.data.detail.tags&&n.data.detail.tags.length>0?(N(),q("div",Xz,[t[6]||(t[6]=G("div",{class:"label"},"标签:",-1)),G("div",Zz,[G("div",Qz,[(N(!0),q(ze,null,kt(o.formatTags(n.data.detail.tags),(p,g)=>(N(),xe(l,{key:g,"popper-class":"el-tooltip-gray"},{content:ee(()=>[G("div",null,[Je(Ne(p.name===p.desc?p.name:p.name+":"+p.desc)+" ",1),p.disabled?(N(),q(ze,{key:0},[t[4]||(t[4]=G("br",null,null,-1)),t[5]||(t[5]=Je(" 标签状态:失效 "))],64)):re("",!0)])]),default:ee(()=>[te(c,{class:Y(["graph-tag-one",`${p.type||"unknown"} ${p.disabled?"tag-disable":""}`]),type:p.type||"info"},{default:ee(()=>[Je(Ne(p.name),1)]),_:2},1032,["class","type"])]),_:2},1024))),128))])])])):re("",!0),(N(!0),q(ze,null,kt(o.fieldMapThisType,(p,g)=>(N(),q(ze,null,[o.canShowField(p)?(N(),q("div",eH,[G("div",tH,Ne(p.zh)+":",1),G("div",{class:Y(["value",{virus:p.prop==="virus_name"}]),title:n.data.detail.info.basic[g]},[G("p",iH,[Array.isArray(n.data.detail.info.basic[p.prop])?(N(),q("span",{key:0,class:"item",title:n.data.detail.info.basic[g]},Ne(o.getFieldValue(p)),9,rH)):(N(),q("span",{key:1,class:Y(["item",{desc:p.show_all}]),title:n.data.detail.info.basic[g]},[Je(Ne(o.getFieldValue(p))+" ",1),p.zh==="应用类型"&&o.getUsageTypeContent(n.data.detail.info.basic[p.prop])?(N(),xe(l,{key:0,content:o.getUsageTypeContent(n.data.detail.info.basic[p.prop]),placement:"bottom","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(d,null,{default:ee(()=>[te(u)]),_:1})]),_:2},1032,["content"])):re("",!0)],10,sH))])],10,nH)])):re("",!0)],64))),256))])],64)):n.selectedNodes.length>1?(N(),q("div",oH,[G("h3",aH,[t[7]||(t[7]=Je(" 选中节点")),G("span",lH,Ne(n.selectedNodes.length),1)])])):re("",!0),Nt(G("div",cH,[(N(!0),q(ze,null,kt(s.controls,(p,g)=>(N(),q("div",{key:g,class:"image-list",onMouseenter:_=>o.hover(g),onMouseleave:t[3]||(t[3]=_=>o.out())},[te(l,{content:p.namec,"popper-class":"el-tooltip-gray"},{default:ee(()=>[te(f,{class:Y(["button-img",n.requestGraphData?s.controls.length>9?"button-img-more ":"":"disabled"]),"icon-class":e.imgPath["./public/d3svg1/button22/button_"+p.name+".svg"],onClick:_=>o.handleButtonClick(p)},null,8,["icon-class","class","onClick"])]),_:2},1032,["content"])],40,uH))),128))],512),[[wn,s.controls.length>0]])])}const fH=nn(Mz,[["render",dH]]),Lhe="",L_={name:"fix_nodes",namec:"固定节点",type:2},M_={name:"un_fix_nodes",namec:"解除固定",type:2},$C={name:"all_fix_nodes",namec:"全部固定节点",type:2},VC={name:"all_un_fix_nodes",namec:"全部解除固定",type:2},F_={name:"show_names",namec:"显示名称",type:2},j_={name:"un_show_names",namec:"隐藏名称",type:2},B_={name:"un_show_label",namec:"隐藏备注",type:2},U_={name:"show_label",namec:"显示备注",type:2},qC={name:"all_show_names",namec:"全部显示名称",type:2},zC={name:"all_un_show_names",namec:"全部隐藏名称",type:2},HC={name:"all_un_show_label",namec:"全部隐藏备注",type:2},GC={name:"all_show_label",namec:"全部显示备注",type:2},WC={name:"undo",namec:"撤销",type:2},KC={name:"redo",namec:"恢复",type:2},JC={name:"single_edge_select",namec:"单边子顶点选择",type:2},YC={name:"hold_aggregation",namec:"单边子顶点聚合",type:2},XC={name:"release_aggregation",namec:"聚合顶点释放",type:2},$_={name:"copy",namec:"复制",type:2,shortcut:"Ctrl+c"},V_={name:"node_star",namec:"收藏",type:2},q_={name:"un_node_star",namec:"取消收藏",type:2},z_={name:"edit_label",namec:"修改备注",type:2},ZC={name:"expand_node",namec:"完整展开",type:2},QC={name:"expand_part_node",namec:"部分展开",type:2},eS={name:"go_result",namec:"详情页查看",type:2},pH={name:"show_group",namec:"分组显示",type:2},hH={name:"hide_group",namec:"隐藏分组",type:2},H_={name:"delete_node",namec:"删除",type:2,shortcut:"Delete"},gH=Object.freeze(Object.defineProperty({__proto__:null,allFixNodes:$C,allShowLabel:GC,allShowNames:qC,allUnFixNodes:VC,allUnShowLabel:HC,allUnShowNames:zC,copy:$_,deleteNode:H_,editLabel:z_,expandNode:ZC,expandPartNode:QC,fixNodes:L_,goResult:eS,hideGroup:hH,holdAggregation:YC,nodeStar:V_,redo:KC,releaseAggregation:XC,showGroup:pH,showLabel:U_,showNames:F_,singleEdgeSelect:JC,unFixNodes:M_,unNodeStar:q_,unShowLabel:B_,unShowNames:j_,undo:WC},Symbol.toStringTag,{value:"Module"})),tS={org:[47,54],family:[38,38],vul:[38,38],default:[28,28]},Mhe="",mH={name:"SelectSingle",components:{NodeIcon:Jc,ForceGraphSvgIcon:Ho},mixins:[Pr],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:Ef,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",kf(this.imgPath["./public/d3svg1/flags/ip.png"]).then(t=>{this.flagIcon[e]=t})):kf(this.imgPath[`./public/d3svg1/flags/${e}.png`]).then(t=>{this.flagIcon[e]=t}),Xe(wt,"flagIcon",this.flagIcon)},getViewBox(e,t){const n=tS[e]||tS.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){Xe(this,"toggle-fold",e)},handleToggleEye(e,t,n){Xe(this,"toggle-eye",e,t,n)},handleShowDetail(e,t){Xe(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){Xe(this,"relation-click",e)},formatTags(e){return Of(Nf(e))},getRefSetter(e){return t=>{!this.$arrRefs&&(this.$arrRefs={}),!this.$arrRefs[e]&&(this.$arrRefs[e]=[]),t&&this.$arrRefs[e].push(t)}}}},_H={key:0,class:"row-item row-parent"},vH={class:"left"},bH={key:0,class:"image-icon"},yH={key:0,class:"md5-type"},wH={class:"mid"},CH=["title","textContent"],SH={class:"left"},xH=["src"],EH={class:"mid"},AH={class:"text-name"},TH={key:0,class:"count-wrapper"},kH={key:0,class:"num-wrapper"},PH={class:"num"},OH={key:1,class:"count-wrapper"},NH={key:0,class:"num-wrapper"},IH={class:"num"},DH={class:"right"},RH={key:0,class:"extent-icon"},LH={class:"left"},MH={key:0,class:"md5-type"},FH={class:"mid"},jH=["onClick","textContent"],BH={key:0,class:"detail-box"},UH={key:0,class:"segment"},$H={key:1,class:"graph-tags-box"},VH={class:"right"},qH=["onClick"];function zH(e,t,n,r,s,o){const a=He("NodeIcon"),l=He("force-graph-svg-icon"),c=fi,u=qc;return N(),q("div",{class:Y(["relation-item-single",{"aggregation-item":n.isAggregation}])},[G("div",{class:Y([{"has-parent":o.isShowFirstLevel},"line-icon-relation"])},null,2),o.isShowFirstLevel?(N(),q("div",_H,[G("div",vH,[o.hasParentNode?(N(),q("div",bH,[te(a,{class:"svgBase","node-info":s.data.parentNode},null,8,["node-info"]),s.data.parentNode.type==="md5"?(N(),q("p",yH,Ne(s.data.parentNode.detail&&s.data.parentNode.detail.info.basic.file_type.toUpperCase()||"MD5"),1)):re("",!0)])):re("",!0)]),G("div",wH,[G("div",{class:"text-name",title:s.data.parentNode&&s.data.parentNode.name,textContent:Ne(s.data.parentNode&&s.data.parentNode.name)},null,8,CH)])])):re("",!0),G("div",{class:Y(["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",SH,[!n.isAggregation&&s.data.childList.length>0?(N(),q("div",{key:0,class:Y(["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))},[te(l,{"icon-class":e.imgPath["./public/d3svg1/jiantou.svg"],alt:""},null,8,["icon-class"])],6)):re("",!0),(N(),q("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,xH)]))]),G("div",EH,[G("div",AH,[Je(Ne(s.data.name==="聚合"?"相似同源样本":s.data.name)+" ",1),s.data.isExtentNode&&s.data.hasExtention?(N(),q("span",TH,[s.dangerNodeNum?(N(),q("span",kH,[G("span",PH,Ne(s.dangerNodeNum),1),t[3]||(t[3]=Je("/"))])):re("",!0),Je(Ne(s.data.childList.length),1)])):re("",!0),(s.data.type==="nodeType"||n.isAggregation)&&!s.data.isExtentNode?(N(),q("span",OH,[s.dangerNodeNum?(N(),q("span",NH,[G("span",IH,Ne(s.dangerNodeNum),1),t[4]||(t[4]=Je("/"))])):re("",!0),Je(Ne(s.data.childList.length),1)])):re("",!0)])]),G("div",DH,[s.data.isExtentNode?(N(),q("div",RH,[!s.data.hasExtention||s.data.hasExtention&&s.data.childList.length===0?(N(),xe(c,{key:0,content:"拓线","popper-class":"el-tooltip-gray",placement:"left"},{default:ee(()=>[te(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})):(N(),xe(c,{key:1,content:s.data.show?"显示":"隐藏","popper-class":"el-tooltip-gray",placement:"left"},{default:ee(()=>[te(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?re("",!0):(N(),q("div",{key:1,class:"right-icon",onClick:t[2]||(t[2]=d=>o.handleToggleEye(d,s.data,s.data.parentNode))},[te(c,{content:s.data.show?"显示":"隐藏","popper-class":"el-tooltip-gray",placement:"left"},{default:ee(()=>[te(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?re("",!0):(N(!0),q(ze,{key:1},kt(s.data.childList,(d,f)=>(N(),q("div",{key:"info2"+f,class:"row-item row-child"},[G("div",LH,[G("div",{class:Y(["image-icon",{"image-icom-left":n.rootNode.type==="nodeType"&&n.isRelation}])},[te(a,{class:"svgBase","node-info":d},null,8,["node-info"]),d.type==="md5"?(N(),q("p",MH,Ne(d.detail&&d.detail.info.basic.file_type.toUpperCase()||"MD5"),1)):re("",!0)],2)]),G("div",FH,[te(c,{ref_for:!0,ref:"tooltip",disabled:s.disable,content:d.name,placement:"top","open-delay":400,"popper-class":"el-tooltip-gray"},{default:ee(()=>[G("div",{class:Y(["text-name",o.canShow(d,s.data)?"":"unselect-color"]),onClick:p=>o.handleShowDetail(d,o.canShow(d,s.data)),textContent:Ne(d.name)},null,10,jH)]),_:2},1032,["disabled","content"]),d.detail&&d.detail.brief!==null?(N(),q("div",BH,[(N(!0),q(ze,null,kt(d.detail.brief,(p,g)=>(N(),xe(c,{key:g,disabled:!!o.canGoDetail(d),content:p,placement:"top","popper-class":"el-tooltip-gray"},{default:ee(()=>[G("div",{class:Y([o.canShow(d,s.data)?"":"unselect-color","text"])},[Je(Ne(p)+" ",1),g!==d.detail.brief.length-1?(N(),q("span",UH,"|")):re("",!0)],2)]),_:2},1032,["disabled","content"]))),128))])):re("",!0),d.detail&&d.detail.tags&&d.detail.tags.length>0?(N(),q("div",$H,[(N(!0),q(ze,null,kt(o.formatTags(d.detail.tags),(p,g)=>(N(),xe(c,{ref_for:!0,ref:o.getRefSetter("tooltip"),key:g,"open-delay":400,disabled:d.type!=="md5",content:p.desc||p.name,"popper-class":"el-tooltip-gray"},{default:ee(()=>[te(u,{class:Y(["graph-tag-one",p.type||"unknown"]),type:p.type||"info"},{default:ee(()=>[Je(Ne(p.name),1)]),_:2},1032,["class","type"])]),_:2},1032,["disabled","content"]))),128))])):re("",!0)]),G("div",VH,[n.isAggregation?re("",!0):(N(),q("div",{key:0,class:"right-icon",onClick:p=>o.handleToggleEye(p,d,s.data)},[te(c,{content:s.data.show?"显示":"隐藏","popper-class":"el-tooltip-gray",placement:"left"},{default:ee(()=>[te(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,qH))])]))),128))],2)}const HH=nn(mH,[["render",zH],["__scopeId","data-v-4e03a9d0"]]),Fhe="",GH={name:"SelectMults",components:{NodeIcon:Jc},mixins:[Pr],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 Ef(e,this.levelMap)},getIcon(e){e.detail.info.basic.flag===""?(e.detail.info.basic.flag="ip",kf(this.imgPath["./public/d3svg1/flags/ip.png"]).then(t=>{this.flagIcon[e]=t})):kf(this.imgPath[`./public/d3svg1/flags/${e}.png`]).then(t=>{this.flagIcon[e]=t}),Xe(wt,"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){Xe(this,"show-detail",e,t)},formatTags(e){return Of(Nf(e))}}},WH={class:"relation-item-mults"},KH={class:"row-item"},JH={class:"left"},YH={class:"grid-content bg-purple"},XH={class:"image-icon"},ZH={key:0,class:"md5-type"},QH={class:"mid"},eG={class:"grid-content bg-purple"},tG=["textContent"],nG={key:0,class:"detail-box"},iG={class:"text"},rG={key:0,class:"segment"},sG={class:"graph-tags-box"};function oG(e,t,n,r,s,o){const a=He("NodeIcon"),l=fi,c=qc;return N(),q("div",WH,[G("div",KH,[G("div",JH,[G("div",YH,[G("div",XH,[te(a,{class:"svgBase","node-info":s.data},null,8,["node-info"]),s.data.type==="md5"?(N(),q("p",ZH,Ne(s.data.detail&&s.data.detail.info.basic.file_type.toUpperCase()||"MD5"),1)):re("",!0)])])]),G("div",QH,[G("div",eG,[te(l,{ref:"tooltip",disabled:s.disable,"open-delay":400,content:s.data.name,placement:"top","popper-class":"el-tooltip-gray"},{default:ee(()=>[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,tG)]),_:1},8,["disabled","content"]),s.data.detail&&s.data.detail.brief!==null?(N(),q("div",nG,[(N(!0),q(ze,null,kt(s.data.detail.brief,(u,d)=>(N(),xe(l,{key:d,disabled:!!o.canGoDetail(s.data),content:u,placement:"top","popper-class":"el-tooltip-gray"},{default:ee(()=>[G("div",iG,[Je(Ne(u),1),d!==s.data.detail.brief.length-1?(N(),q("span",rG,"|")):re("",!0)])]),_:2},1032,["disabled","content"]))),128))])):re("",!0),Nt(G("div",sG,[(N(!0),q(ze,null,kt(o.formatTags(s.data.detail&&s.data.detail.tags),(u,d)=>(N(),xe(l,{key:d,disabled:s.data.type!=="md5",content:u.desc||u.name,"popper-class":"el-tooltip-gray"},{default:ee(()=>[te(c,{class:Y(["graph-tag-one",u.type||"unknown"]),type:u.type||"info"},{default:ee(()=>[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 aG=nn(GH,[["render",oG],["__scopeId","data-v-64a51e7d"]]);function lG(){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 Df;function G_(){G_.init||(G_.init=!0,Df=lG()!==-1)}var Rf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){G_(),ht(()=>{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",Df&&this.$el.appendChild(e),e.data="about:blank",Df||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&&(!Df&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const cG=HT();qT("data-v-b329ee4c");const uG={class:"resize-observer",tabindex:"-1"};zT();const dG=cG((e,t,n,r,s,o)=>(N(),xe("div",uG)));Rf.render=dG,Rf.__scopeId="data-v-b329ee4c",Rf.__file="src/components/ResizeObserver.vue";function Lf(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lf=function(t){return typeof t}:Lf=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}function fG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nS(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 pG(e,t,n){return t&&nS(e.prototype,t),n&&nS(e,n),e}function iS(e){return hG(e)||gG(e)||mG(e)||_G()}function hG(e){if(Array.isArray(e))return W_(e)}function gG(e){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function mG(e,t){if(e){if(typeof e=="string")return W_(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 W_(e,t)}}function W_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _G(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
120
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vG(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function bG(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 p=n.leading;typeof p=="function"&&(p=p(c,s)),(!r||c!==s)&&p&&e.apply(void 0,[c].concat(iS(o))),s=c,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[c].concat(iS(o))),r=0},t)}};return a._clear=function(){clearTimeout(r),r=null},a}function rS(e,t){if(e===t)return!0;if(Lf(e)==="object"){for(var n in e)if(!rS(e[n],t[n]))return!1;return!0}return!1}var yG=function(){function e(t,n,r){fG(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return pG(e,[{key:"createObserver",value:function(n,r){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=vG(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=bG(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),ht(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 sS(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 yG(e,r,n);e._vue_visibilityState=s}}function wG(e,t,n){var r=t.value,s=t.oldValue;if(!rS(r,s)){var o=e._vue_visibilityState;if(!r){oS(e);return}o?o.createObserver(r,n):sS(e,{value:r},n)}}function oS(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var CG={beforeMount:sS,updated:wG,unmounted:oS};function SG(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 xG={itemsLimit:1e3},EG=/(auto|scroll)/;function aS(e,t){return e.parentNode===null?t:aS(e.parentNode,t.concat([e]))}var K_=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},AG=function(t){return K_(t,"overflow")+K_(t,"overflow-y")+K_(t,"overflow-x")},TG=function(t){return EG.test(AG(t))};function lS(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=aS(e.parentNode,[]),n=0;n<t.length;n+=1)if(TG(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function J_(e){"@babel/helpers - typeof";return J_=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},J_(e)}var cS={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 uS(){return this.items.length&&J_(this.items[0])!=="object"}var Y_=!1;if(typeof window!="undefined"){Y_=!1;try{var kG=Object.defineProperty({},"passive",{get:function(){Y_=!0}});window.addEventListener("test",null,kG)}catch(e){}}let PG=0;var X_={name:"RecycleScroller",components:{ResizeObserver:Rf},directives:{ObserveVisibility:CG},props:je(we({},cS),{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:uS,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=od({id:PG++,index:t,used:!0,key:r,type:s}),a=ag({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,p=this.$_unusedViews,g=this.pool,_=this.itemIndexByKey;let b,y,w,E,C;if(!u)b=y=E=C=w=0;else if(this.$_prerender)b=E=0,y=C=Math.min(this.prerender,c.length),w=null;else{const R=this.getScroll();if(t){let V=R.start-this.$_lastUpdateScrollPosition;if(V<0&&(V=-V),n===null&&V<o||V<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=R.start;const F=this.buffer;R.start-=F,R.end+=F;let H=0;if(this.$refs.before&&(H=this.$refs.before.scrollHeight,R.start-=H),this.$refs.after){const V=this.$refs.after.scrollHeight;R.end+=V}if(n===null){let V,ae=0,ce=u-1,U=~~(u/2),J;do J=U,V=d[U].accumulator,V<R.start?ae=U:U<u-1&&d[U+1].accumulator>R.start&&(ce=U),U=~~((ae+ce)/2);while(U!==J);for(U<0&&(U=0),b=U,w=d[u-1].accumulator,y=U;y<u&&d[y].accumulator<R.end;y++);for(y===-1?y=c.length-1:(y++,y>u&&(y=u)),E=b;E<u&&H+d[E].accumulator<R.start;E++);for(C=E;C<u&&H+d[C].accumulator<R.end;C++);}else{b=~~(R.start/n*r);const V=b%r;b-=V,y=Math.ceil(R.end/n*r),E=Math.max(0,Math.floor((R.start-H)/n*r)),C=Math.floor((R.end-H)/n*r),b<0&&(b=0),y>u&&(y=u),E<0&&(E=0),C>u&&(C=u),w=Math.ceil(u/r)*n}}y-b>xG.itemsLimit&&this.itemsLimitError(),this.totalSize=w;let S;const A=b<=this.$_endIndex&&y>=this.$_startIndex;if(A)for(let R=0,F=g.length;R<F;R++)S=g[R],S.nr.used&&(e&&(S.nr.index=_[S.item[l]]),(S.nr.index==null||S.nr.index<b||S.nr.index>=y)&&this.unuseView(S));const P=A?null:new Map;let I,O,L;for(let R=b;R<y;R++){I=c[R];const F=l?I[l]:I;if(F==null)throw new Error(`Key is ${F} on item (keyField is '${l}')`);if(S=f.get(F),!n&&!d[R].size){S&&this.unuseView(S);continue}O=I[a];let H=p.get(O),V=!1;if(!S)A?H&&H.length?S=H.pop():S=this.addView(g,R,I,F,O):(L=P.get(O)||0,(!H||L>=H.length)&&(S=this.addView(g,R,I,F,O),this.unuseView(S,!0),H=p.get(O)),S=H[L],P.set(O,L+1)),f.delete(S.nr.key),S.nr.used=!0,S.nr.index=R,S.nr.key=F,S.nr.type=O,f.set(F,S),V=!0;else if(!S.nr.used&&(S.nr.used=!0,V=!0,H)){const ae=H.indexOf(S);ae!==-1&&H.splice(ae,1)}S.item=I,V&&(R===c.length-1&&this.$emit("scroll-end"),R===0&&this.$emit("scroll-start")),n===null?(S.position=d[R-1].accumulator,S.offset=0):(S.position=Math.floor(R/r)*n,S.offset=R%r*s)}return this.$_startIndex=b,this.$_endIndex=y,this.emitUpdate&&this.$emit("update",b,y,E,C),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:A}},getListenerTarget(){let e=lS(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,Y_?{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=lS(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 OG={key:0,ref:"before",class:"vue-recycle-scroller__slot"},NG={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function IG(e,t,n,r,s,o){const a=He("ResizeObserver"),l=_d("observe-visibility");return Nt((N(),q("div",{class:Y(["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?(N(),q("div",OG,[Ie(e.$slots,"before")],512)):re("v-if",!0),(N(),xe(Zt(n.listTag),{ref:"wrapper",style:Ze({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:Y(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:ee(()=>[(N(!0),q(ze,null,kt(s.pool,c=>(N(),xe(Zt(n.itemTag),An({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}]]},sk(n.skipHover?{}:{mouseenter:()=>{s.hoverKey=c.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:ee(()=>[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?(N(),q("div",NG,[Ie(e.$slots,"after")],512)):re("v-if",!0),te(a,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[l,o.handleVisibilityChange]])}X_.render=IG,X_.__file="src/components/RecycleScroller.vue";var Z_={name:"DynamicScroller",components:{RecycleScroller:X_},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:je(we({},cS),{minItemSize:{type:[Number,String],required:!0}}),emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:uS,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=SG()},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 DG(e,t,n,r,s,o){const a=He("RecycleScroller");return N(),xe(a,An({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:ee(({item:l,index:c,active:u})=>[Ie(e.$slots,"default",nT(S2({item:l.item,index:c,active:u,itemWithSize:l})))]),before:ee(()=>[Ie(e.$slots,"before")]),after:ee(()=>[Ie(e.$slots,"after")]),empty:ee(()=>[Ie(e.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}Z_.render=DG,Z_.__file="src/components/DynamicScroller.vue";var dS={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 dt(this.tag,this.$slots.default())}};dS.__file="src/components/DynamicScrollerItem.vue";const jhe="",Bhe="",RG={components:{ForceGraphSvgIcon:Ho,selectSingle:HH,selectMults:aG,DynamicScroller:Z_,DynamicScrollerItem:dS},mixins:[Pr],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 b=u,{x:d,y:f,vx:p,vy:g}=b;return Es(b,["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 I=u,{source:d,target:f}=I,p=Es(I,["source","target"]),O=d,{x:g,y:_,vx:b,vy:y}=O,w=Es(O,["x","y","vx","vy"]),L=f,{x:E,y:C,vx:S,vy:A}=L,P=Es(L,["x","y","vx","vy"]);return we({sourceRest:w,targetRest:P},p)});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(N_.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 p=(d=a==null?void 0:a.detail)==null?void 0:d.tags[f];if(String(p.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&&Xe(wt,"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)}),Xe(wt,"sendNodesRange",o)}else{const o=[];this.filteredDataList.forEach(a=>{o.push(this.searchParent(a,r)),o.push(...a.childList),o.push(a)}),Xe(wt,"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(),Xe(wt,"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(),Xe(wt,"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(),Xe(wt,"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(){Gs(wt,"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(N_.filterValues===void 0||N_.filterValues==="")if(this.selectedNodes.length===0)this.currentSelectStatus=0,this.filteredDataList=this.noSelectNodes,Xe(wt,"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)}),Xe(wt,"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;Xe(this,"row-click",e)},handleSelectionChange(e){this.selection=e,Xe(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),Xe(wt,"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),Xe(wt,"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,p,g,_,b,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)):(p=(f=(d=(u=this.$parent)==null?void 0:u.$parent)==null?void 0:d.$parent)==null?void 0:f.$parent)!=null&&p.handleTableSelect&&((y=(b=(_=(g=this.$parent)==null?void 0:g.$parent)==null?void 0:_.$parent)==null?void 0:b.$parent)==null||y.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==="拓线全部"?Xe(wt,"relationClick",{nodes:[this.rootNode],api:ZC,dataApi:null}):Xe(wt,"relationClick",{nodes:[this.rootNode],api:QC,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"}),Xe(wt,"buttonClick",{nodes:[t,n],api:{name:"hide_node"}})):Xe(wt,"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=OC();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=OC();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}}},LG={class:"node-relation-block"},MG={key:0,class:"textarea-wrapper"},FG={key:1,class:"relation-title"},jG={key:0,class:"extent-icon"},BG={key:2,class:"nodata"};function UG(e,t,n,r,s,o){const a=Bo,l=He("force-graph-svg-icon"),c=fi,u=He("select-single"),d=He("select-mults"),f=He("DynamicScrollerItem"),p=He("DynamicScroller");return N(),q("div",LG,[s.isMoreSelect?re("",!0):(N(),q(ze,{key:0},[n.canSearch?(N(),q("div",MG,[te(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"])])):re("",!0),s.rootNode.type!=="nodeType"&&!s.isAggregation?(N(),q("div",FG,[t[1]||(t[1]=G("h3",{class:"title-top"},"关联列表",-1)),o.showAllExtent?(N(),q("div",jG,[(N(!0),q(ze,null,kt(s.allOptions,(g,_)=>(N(),q("div",{key:_},[g.namec==="拓线全部"?(N(),xe(c,{key:0,content:g.namec,"popper-class":"el-tooltip-gray",placement:"left"},{default:ee(()=>[te(l,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/button22/button_select_all.svg"],onClick:b=>o.relationClick(g)},null,8,["icon-class","onClick"])]),_:2},1032,["content"])):re("",!0)]))),128))])):re("",!0)])):re("",!0)],64)),s.relationDataList.length>0?(N(),q(ze,{key:1},[n.selectedNodes.length?(N(),q("div",{key:0,ref:"rightList",class:Y({"has-selected":n.selectedNodes.length,"has-fold-icon":o.hasFoldIcon})},[(N(!0),q(ze,null,kt(s.relationDataList,(g,_)=>(N(),q("div",{key:_,class:Y(["relation-item",!s.isMoreSelect&&(s.rootNode.type==="nodeType"||!n.isRelation)?"offset-div-1":"offset-div-2"])},[s.isMoreSelect?(N(),xe(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"])):(N(),xe(u,{key:0,"filter-data":g,"unique-key":_,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)):(N(),q("div",{key:1,ref:"rightList",class:Y(["relation-data-list",{"no-selected":!n.selectedNodes.length}])},[te(p,{items:s.relationDataList,"min-item-size":54,class:"scroller","key-field":"id"},{default:ee(({item:g,index:_,active:b})=>[te(f,{item:g,active:b,"size-dependencies":[g],"data-index":_,class:Y(["relation-item",!s.isMoreSelect&&(s.rootNode.type==="nodeType"||!n.isRelation)?"offset-div-1":"offset-div-2"])},{default:ee(()=>[s.isMoreSelect?(N(),xe(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"])):(N(),xe(u,{key:0,"filter-data":g,"unique-key":_,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)):(N(),q("div",BG,t[2]||(t[2]=[G("span",{class:"el-table__empty-text"},"暂无数据",-1)])))])}const $G={components:{NodeDetail:fH,NodesRelation:nn(RG,[["render",UG]])},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(){Xe(this,"change-box",[],!0),this.scrollTop>0&&setTimeout(()=>this.$refs.rightMenu.scrollTo(0,this.scrollTop))},handleSelectionChange(e){Xe(this,"change-box",e)},handleRowClick(e){this.scrollTop=this.$refs.rightMenu.scrollTop,Xe(this,"change-box",[e.id],!0)}},emits:["change-box"]},VG={class:"node-data-wrapper"};function qG(e,t,n,r,s,o){const a=He("node-detail"),l=He("nodes-relation");return N(),q("div",VG,[o.showDetail?(N(),q(ze,{key:0},[te(a,{data:n.selectedNodes[0]||{},"selected-nodes":n.selectedNodes,"request-graph-data":n.requestGraphData},null,8,["data","selected-nodes","request-graph-data"]),te(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)):(N(),xe(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 zG=nn($G,[["render",qG]]),$he="",HG={name:"RightMenu",components:{NodeData:zG},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(){Xe(this,"change-box",[],!0),this.scrollTop>0&&setTimeout(()=>this.$refs.rightMenu.scrollTo(0,this.scrollTop))},handleSelectionChange(e){Xe(this,"change-box",e)},handleRowClick(e){this.scrollTop=this.$refs.rightMenu.scrollTop,Xe(this,"change-box",[e.id],!0)}}};function GG(e,t,n,r,s,o){const a=He("node-data");return N(),q("div",{ref:"rightMenu",class:Y(["right-menu-box",{"no-select":!n.selectedNodes.length}])},[te(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 WG=nn(HG,[["render",GG]]);var Q_="http://www.w3.org/1999/xhtml";const fS={svg:"http://www.w3.org/2000/svg",xhtml:Q_,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pS(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),fS.hasOwnProperty(t)?{space:fS[t],local:e}:e}function KG(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Q_&&t.documentElement.namespaceURI===Q_?t.createElement(e):t.createElementNS(n,e)}}function JG(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function hS(e){var t=pS(e);return(t.local?JG:KG)(t)}function YG(){}function gS(e){return e==null?YG:function(){return this.querySelector(e)}}function XG(e){typeof e!="function"&&(e=gS(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 mS(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ZG(){return[]}function QG(e){return e==null?ZG:function(){return this.querySelectorAll(e)}}function eW(e){return function(){return mS(e.apply(this,arguments))}}function tW(e){typeof e=="function"?e=eW(e):e=QG(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 nW(e){return function(){return this.matches(e)}}function _S(e){return function(t){return t.matches(e)}}var iW=Array.prototype.find;function rW(e){return function(){return iW.call(this.children,e)}}function sW(){return this.firstElementChild}function oW(e){return this.select(e==null?sW:rW(typeof e=="function"?e:_S(e)))}var aW=Array.prototype.filter;function lW(){return Array.from(this.children)}function cW(e){return function(){return aW.call(this.children,e)}}function uW(e){return this.selectAll(e==null?lW:cW(typeof e=="function"?e:_S(e)))}function dW(e){typeof e!="function"&&(e=nW(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 vS(e){return new Array(e.length)}function fW(){return new Ni(this._enter||this._groups.map(vS),this._parents)}function Mf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Mf.prototype={constructor:Mf,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 pW(e){return function(){return e}}function hW(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 Mf(e,o[a]);for(;a<c;++a)(l=t[a])&&(s[a]=l)}function gW(e,t,n,r,s,o,a){var l,c,u=new Map,d=t.length,f=o.length,p=new Array(d),g;for(l=0;l<d;++l)(c=t[l])&&(p[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 Mf(e,o[l]);for(l=0;l<d;++l)(c=t[l])&&u.get(p[l])===c&&(s[l]=c)}function mW(e){return e.__data__}function _W(e,t){if(!arguments.length)return Array.from(this,mW);var n=t?gW:hW,r=this._parents,s=this._groups;typeof e!="function"&&(e=pW(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],p=f.length,g=vW(e.call(d,d&&d.__data__,u,r)),_=g.length,b=l[u]=new Array(_),y=a[u]=new Array(_),w=c[u]=new Array(p);n(d,f,b,y,w,g,t);for(var E=0,C=0,S,A;E<_;++E)if(S=b[E]){for(E>=C&&(C=E+1);!(A=y[C])&&++C<_;);S._next=A||null}}return a=new Ni(a,r),a._enter=l,a._exit=c,a}function vW(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bW(){return new Ni(this._exit||this._groups.map(vS),this._parents)}function yW(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 wW(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,p=l[c]=new Array(f),g,_=0;_<f;++_)(g=u[_]||d[_])&&(p[_]=g);for(;c<s;++c)l[c]=n[c];return new Ni(l,this._parents)}function CW(){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 SW(e){e||(e=xW);function t(f,p){return f&&p?e(f.__data__,p.__data__):!f-!p}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 xW(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function EW(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function AW(){return Array.from(this)}function TW(){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 kW(){let e=0;for(const t of this)++e;return e}function PW(){return!this.node()}function OW(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 NW(e){return function(){this.removeAttribute(e)}}function IW(e){return function(){this.removeAttributeNS(e.space,e.local)}}function DW(e,t){return function(){this.setAttribute(e,t)}}function RW(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function LW(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function MW(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 FW(e,t){var n=pS(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?IW:NW:typeof t=="function"?n.local?MW:LW:n.local?RW:DW)(n,t))}function bS(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function jW(e){return function(){this.style.removeProperty(e)}}function BW(e,t,n){return function(){this.style.setProperty(e,t,n)}}function UW(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function $W(e,t,n){return arguments.length>1?this.each((t==null?jW:typeof t=="function"?UW:BW)(e,t,n==null?"":n)):VW(this.node(),e)}function VW(e,t){return e.style.getPropertyValue(t)||bS(e).getComputedStyle(e,null).getPropertyValue(t)}function qW(e){return function(){delete this[e]}}function zW(e,t){return function(){this[e]=t}}function HW(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function GW(e,t){return arguments.length>1?this.each((t==null?qW:typeof t=="function"?HW:zW)(e,t)):this.node()[e]}function yS(e){return e.trim().split(/^|\s+/)}function e0(e){return e.classList||new wS(e)}function wS(e){this._node=e,this._names=yS(e.getAttribute("class")||"")}wS.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 CS(e,t){for(var n=e0(e),r=-1,s=t.length;++r<s;)n.add(t[r])}function SS(e,t){for(var n=e0(e),r=-1,s=t.length;++r<s;)n.remove(t[r])}function WW(e){return function(){CS(this,e)}}function KW(e){return function(){SS(this,e)}}function JW(e,t){return function(){(t.apply(this,arguments)?CS:SS)(this,e)}}function YW(e,t){var n=yS(e+"");if(arguments.length<2){for(var r=e0(this.node()),s=-1,o=n.length;++s<o;)if(!r.contains(n[s]))return!1;return!0}return this.each((typeof t=="function"?JW:t?WW:KW)(n,t))}function XW(){this.textContent=""}function ZW(e){return function(){this.textContent=e}}function QW(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function eK(e){return arguments.length?this.each(e==null?XW:(typeof e=="function"?QW:ZW)(e)):this.node().textContent}function tK(){this.innerHTML=""}function nK(e){return function(){this.innerHTML=e}}function iK(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function rK(e){return arguments.length?this.each(e==null?tK:(typeof e=="function"?iK:nK)(e)):this.node().innerHTML}function sK(){this.nextSibling&&this.parentNode.appendChild(this)}function oK(){return this.each(sK)}function aK(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function lK(){return this.each(aK)}function cK(e){var t=typeof e=="function"?e:hS(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function uK(){return null}function dK(e,t){var n=typeof e=="function"?e:hS(e),r=t==null?uK:typeof t=="function"?t:gS(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function fK(){var e=this.parentNode;e&&e.removeChild(this)}function pK(){return this.each(fK)}function hK(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function gK(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function mK(e){return this.select(e?gK:hK)}function _K(e){return arguments.length?this.property("__data__",e):this.node().__data__}function vK(e){return function(t){e.call(this,t,this.__data__)}}function bK(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 yK(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 wK(e,t,n){return function(){var r=this.__on,s,o=vK(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 CK(e,t,n){var r=bK(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?wK:yK,s=0;s<o;++s)this.each(l(r[s],t,n));return this}function xS(e,t,n){var r=bS(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 SK(e,t){return function(){return xS(this,e,t)}}function xK(e,t){return function(){return xS(this,e,t.apply(this,arguments))}}function EK(e,t){return this.each((typeof t=="function"?xK:SK)(e,t))}function*AK(){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 TK=[null];function Ni(e,t){this._groups=e,this._parents=t}function kK(){return this}Ni.prototype={constructor:Ni,select:XG,selectAll:tW,selectChild:oW,selectChildren:uW,filter:dW,data:_W,enter:fW,exit:bW,join:yW,merge:wW,selection:kK,order:CW,sort:SW,call:EW,nodes:AW,node:TW,size:kW,empty:PW,each:OW,attr:FW,style:$W,property:GW,classed:YW,text:eK,html:rK,raise:oK,lower:lK,append:cK,insert:dK,remove:pK,clone:mK,datum:_K,on:CK,dispatch:EK,[Symbol.iterator]:AK};function ES(e){return typeof e=="string"?new Ni([document.querySelectorAll(e)],[document.documentElement]):new Ni([mS(e)],TK)}const PK={},OK={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 NK(e,t){return N(),q("svg",OK,t[0]||(t[0]=[x2('<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 IK=nn(PK,[["render",NK]]),Vhe="",DK={name:"Legend",components:{NodeIcon:Jc,ForceGraphSvgIcon:Ho,legendLevelSvg:IK},mixins:[Pr],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:S_,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;ES(".legend-filter .out-box").classed("active",!1),s?(e.currentTarget.classList.add("active"),Xe(this,"highLight",t,n,r)):Xe(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"}}},RK={class:"container"},LK={key:0,class:"legend-filter node-type"},MK=["onClick"],FK={class:"name"},jK=["src"],BK={key:1,class:"legend-filter point"},UK=["onClick"],$K={key:2,class:"legend-filter level"},VK=["onClick"],qK={key:0,class:"legend-level-icon-dot"},zK={key:2};function HK(e,t,n,r,s,o){const a=He("NodeIcon"),l=He("legendLevelSvg"),c=He("force-graph-svg-icon");return N(),q("div",{ref:"legend-box",class:Y(["legend-box",{"legend-close":s.fold}])},[G("div",RK,[n.moduleDetail?(N(),q("div",LK,[(N(!0),q(ze,null,kt(n.moduleDetail.nodes,u=>(N(),q("div",{key:u.name,class:Y(["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})},[te(a,{"node-info":{type:u.name}},null,8,["node-info"]),G("span",FK,Ne(u.namec),1)],4)],10,MK))),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,jK),t[2]||(t[2]=G("span",{class:"name"},"关系",-1))],4)])])):re("",!0),n.showPoint?(N(),q("div",BK,[(N(!0),q(ze,null,kt(s.filters.point,u=>(N(),q("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,UK))),128))])):re("",!0),n.hasLevel?(N(),q("div",$K,[(N(!0),q(ze,null,kt(o.levelList,u=>(N(),q("div",{key:u.level,class:Y(["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"?(N(),q("span",qK)):(N(),xe(l,{key:1,class:"legend-level-icon"})),Je(" "+Ne(u.levelName)+" ",1),n.showLevelCount?(N(),q("span",zK,"("+Ne(o.levelCount[u.level])+")",1)):re("",!0)],4)],10,VK))),128))])):re("",!0),G("div",{class:"fold-btn",onClick:t[1]||(t[1]=(...u)=>o.handleFold&&o.handleFold(...u))},[s.fold?(N(),xe(c,{key:0,class:"button-img","icon-class":e.imgPath["./public/d3svg1/fold-right.svg"]},null,8,["icon-class"])):(N(),xe(c,{key:1,class:"button-img","icon-class":e.imgPath["./public/d3svg1/fold-left.svg"]},null,8,["icon-class"]))])])],2)}const GK=nn(DK,[["render",HK],["__scopeId","data-v-5e1ba822"]]),qhe="",WK={key:0,class:"node-control-panel"},KK={key:0},JK=["onClick"],YK={class:"node-control-panel-name"},XK=nn({__name:"NodeVisibleControl",props:{moduleDetail:{type:Object,default:()=>({})},history:{type:Object,default:()=>({})},startNode:{type:Array}},setup(e){const t=e,n=ne({}),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);Xe(wt,"buttonClick",{nodes:u,api:{name:n.value[c]?"show_nodes":"hide_nodes"}})},l=c=>t.history.dataNow.nodes.some(u=>u.type===c);return qe(()=>t.history.dataNow.nodes.length,()=>{o()},{deep:!0,immediate:!0}),(c,u)=>s.value.length?(N(),q("div",WK,[e.moduleDetail?(N(),q("div",KK,[(N(!0),q(ze,null,kt(s.value,d=>(N(),q("div",{key:d.name,class:Y(["node-control-panel-item",{disabled:!l(d.name),"hidden-node":!n.value[d.name]}]),onClick:f=>a(d.name)},[te(Jc,{class:"node-control-panel-img","node-info":{type:d.name}},null,8,["node-info"]),G("span",YK,Ne(d.namec),1)],10,JK))),128))])):re("",!0)])):re("",!0)}},[["__scopeId","data-v-f4854ab7"]]),Hhe="",Ghe="",Whe="",Khe="",Jhe="",Yhe="",Xhe="",Zhe="",Qhe="",ege="",tge="",ZK={},QK={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 eJ(e,t){return N(),q("svg",QK,t[0]||(t[0]=[x2('<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 tJ=nn(ZK,[["render",eJ]]),nge="",ige="";function AS(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 TS(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 kS(e){return e.toLowerCase().indexOf("url:")===0&&(e=e.substr(4)),/^https?:\/\/[^\s<]+[^<.,:;"')\]\s]$/g.test(e)}function t0(e){return/^([a-fA-F0-9]{32})$/.test(e)}function nJ(e){return/^([a-fA-F0-9]{40})$/.test(e)}function iJ(e){return/^\w{32}$/.test(e)}function rJ(e){return/^(cve|CVE)-[0-9]{4}-[0-9]{4,5}$/.test(e)}function sJ(e){return/^\w+(\.\w+)*@\w+(\.\w+)*(\.[a-z]{2,})$/.test(e)}const rge="",sge="",oJ={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=>{AS(s)?r():r(new Error("请输入正确格式的内容"))});break;case"domain":n.map(s=>{TS(s)?r():r(new Error("请输入正确格式的内容"))});break;case"url":n.map(s=>{kS(s)?r():r(new Error("请输入正确格式的内容"))});break;case"md5":n.map(s=>{t0(s)?r():r(new Error("请输入正确格式的内容"))});break;case"report":n.map(s=>{!iJ(s)&&this.module.module.name==="md5graph"?r(new Error("请输入正确格式的内容")):r()});break;case"thumbprint_md5":n.map(s=>{t0(s)?r():r(new Error("请输入正确格式的内容"))});break;case"cert_https":n.map(s=>{nJ(s)?r():r(new Error("请输入正确格式的内容"))});break;case"vul":n.map(s=>{rJ(s)?r():r(new Error("请输入正确格式的内容"))});break;case"email":n.map(s=>{sJ(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};Xe(this,"addNodes",{node:s,type:e,connectNode:this.connectNode})}}),setTimeout(()=>{this.$parent.$parent.handleTableSelect(n)},500),this.hide()}})}},emits:["addNodes"]},aJ={class:"dialog-footer"};function lJ(e,t,n,r,s,o){const a=bf,l=vf,c=Um,u=Bo,d=Bm,f=$o,p=zc;return N(),xe(p,{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:ee(()=>[G("div",aJ,[te(f,{onClick:o.hide},{default:ee(()=>t[5]||(t[5]=[Je("取 消")])),_:1},8,["onClick"]),te(f,{class:"search-button",type:"primary",disabled:o.disableSearch,onClick:o.handleSearch},{default:ee(()=>t[6]||(t[6]=[Je(" 添加并拓线 ")])),_:1},8,["disabled","onClick"]),te(f,{class:"search-button",type:"primary",disabled:o.disableSearchDiy,onClick:t[3]||(t[3]=g=>o.handleSearch("diy"))},{default:ee(()=>t[7]||(t[7]=[Je(" 添加单节点 ")])),_:1},8,["disabled"])])]),default:ee(()=>[te(d,{ref:"form",inline:!0,rules:s.rules,model:s.formInline,class:"demo-form-inline"},{default:ee(()=>[te(c,{label:"类型",prop:"type"},{default:ee(()=>[te(l,{modelValue:s.formInline.type,"onUpdate:modelValue":t[0]||(t[0]=g=>s.formInline.type=g),class:"type-item"},{default:ee(()=>[(N(!0),q(ze,null,kt(o.nodesTypeAll,g=>(N(),xe(a,{key:g.value,label:g.namec,value:g.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),te(c,{label:"内容",prop:"inputValues"},{default:ee(()=>[n.addType==="moreDiy"?(N(),xe(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"])):(N(),xe(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 cJ=nn(oJ,[["render",lJ],["__scopeId","data-v-0a421783"]]),oge="",age="",uJ={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":AS(n)?r():r(new Error("请输入正确格式的内容"));break;case"domain":TS(n)?r():r(new Error("请输入正确格式的内容"));break;case"url":kS(n)?r():r(new Error("请输入正确格式的内容"));break;default:t0(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};Xe(this,"addNodes",{node:r,type:e,connectNode:this.connectNode}),this.hide()}})}},emits:["addNodes"]},dJ={class:"dialog-footer"};function fJ(e,t,n,r,s,o){const a=bf,l=vf,c=Um,u=Bo,d=Bm,f=$o,p=zc;return N(),xe(p,{title:o.title,modelValue:s.dialogFormVisible,"onUpdate:modelValue":t[4]||(t[4]=g=>s.dialogFormVisible=g),class:"add-node-dialog el-dialog-graph"},{footer:ee(()=>[G("div",dJ,[te(f,{onClick:t[2]||(t[2]=g=>s.dialogFormVisible=!1)},{default:ee(()=>t[5]||(t[5]=[Je("取 消")])),_:1}),n.addType==="search"?(N(),xe(f,{key:0,class:"search-button",type:"primary",disabled:o.disableSearch,size:"mini",onClick:o.handleSearch},{default:ee(()=>t[6]||(t[6]=[Je(" 查询 ")])),_:1},8,["disabled","onClick"])):(N(),xe(f,{key:1,class:"search-button",type:"primary",disabled:o.disableSearch,size:"mini",onClick:t[3]||(t[3]=g=>o.handleSearch("diy"))},{default:ee(()=>t[7]||(t[7]=[Je(" 自定义添加 ")])),_:1},8,["disabled"]))])]),default:ee(()=>[te(d,{ref:"form",inline:!0,rules:s.rules,model:s.formInline,class:"demo-form-inline"},{default:ee(()=>[te(c,{label:"类型",prop:"type"},{default:ee(()=>[te(l,{modelValue:s.formInline.type,"onUpdate:modelValue":t[0]||(t[0]=g=>s.formInline.type=g),class:"type-item"},{default:ee(()=>[(N(!0),q(ze,null,kt(n.nodesType,g=>(N(),xe(a,{key:g.value,label:g.namec,value:g.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),te(c,{label:"内容",prop:"inputValues"},{default:ee(()=>[te(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 pJ=nn(uJ,[["render",fJ],["__scopeId","data-v-baba7d6e"]]),lge="",hJ={name:"Intro",components:{QuestionFilled:B3},mixins:[],props:{config:{type:Object,default:()=>{}}},data(){return{ctrlKey:el()?"command":"Ctrl",shiftKey:el()?"⇧":"Shift",altKey:"Alt",system:["修改备注 - 即给该节点新增自定义备注","复制 - 复制节点名称","解除固定/固定节点 - 切换节点状态,控制节点自动排布或者位置不动","收藏/取消收藏 - 切换节点收藏状态,收藏后会有红色点在节点上方","显示/隐藏名称 - 节点下方显示/隐藏名称 ","显示/隐藏备注 - 节点下方显示/隐藏备注 ","单边子顶点聚合 - 将无孙子节点的子节点收起,形成一个聚合节点","聚合顶点释放 - 将已聚合的顶点释放"],rightList:["点击眼睛开关按钮可以显示隐藏该条数据","点击折叠按钮可以折叠下方所属列表","点击关联列表里面每一个子节点名字可以选中该节点","在右侧搜素框内可以搜索对应的子节点","点击右侧关联列表上方蓝色关系名称可以进行拓线操作"]}},computed:{keyCodes(){return el()?[{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("详情页查看 - 打开对应的详情页查看详细内容")}}},gJ={class:"intro-container"},mJ={class:"key"},_J={class:"val"};function vJ(e,t,n,r,s,o){const a=He("QuestionFilled"),l=Ft,c=fi;return N(),q("div",gJ,[t[0]||(t[0]=G("p",{class:"title"},"快捷操作",-1)),t[1]||(t[1]=G("p",{class:"line"},null,-1)),(N(!0),q(ze,null,kt(o.keyCodes,(u,d)=>(N(),q("p",{key:d},[G("span",mJ,Ne(u.key),1),G("span",_J,[Je(Ne(u.val)+" ",1),u.tips?(N(),xe(c,{key:0,content:u.tips,"popper-class":"el-tooltip-gray",placement:"top"},{default:ee(()=>[te(l,null,{default:ee(()=>[te(a)]),_:1})]),_:2},1032,["content"])):re("",!0)])]))),128))])}const bJ=nn(hJ,[["render",vJ]]);var n0={exports:{}};(function(e,t){(function(n,r){r(t)})(Vs,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(h){if(typeof h!="number"||h<0||isNaN(h))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=h,this};function a(m){return m._maxListeners===void 0?o.defaultMaxListeners:m._maxListeners}o.prototype.getMaxListeners=function(){return a(this)};function l(m,h,v){if(h)m.call(v);else for(var x=m.length,k=w(m,x),D=0;D<x;++D)k[D].call(v)}function c(m,h,v,x){if(h)m.call(v,x);else for(var k=m.length,D=w(m,k),M=0;M<k;++M)D[M].call(v,x)}function u(m,h,v,x,k){if(h)m.call(v,x,k);else for(var D=m.length,M=w(m,D),ue=0;ue<D;++ue)M[ue].call(v,x,k)}function d(m,h,v,x,k,D){if(h)m.call(v,x,k,D);else for(var M=m.length,ue=w(m,M),Ee=0;Ee<M;++Ee)ue[Ee].call(v,x,k,D)}function f(m,h,v,x){if(h)m.apply(v,x);else for(var k=m.length,D=w(m,k),M=0;M<k;++M)D[M].apply(v,x)}o.prototype.emit=function(h){var v,x,k,D,M,ue,Ee,Ue=h==="error";if(ue=this._events,ue)Ue=Ue&&ue.error==null;else if(!Ue)return!1;if(Ee=this.domain,Ue){if(v=arguments[1],Ee)v||(v=new Error('Uncaught, unspecified "error" event')),v.domainEmitter=this,v.domain=Ee,v.domainThrown=!1,Ee.emit("error",v);else{if(v instanceof Error)throw v;var We=new Error('Uncaught, unspecified "error" event. ('+v+")");throw We.context=v,We}return!1}if(x=ue[h],!x)return!1;var tt=typeof x=="function";switch(k=arguments.length,k){case 1:l(x,tt,this);break;case 2:c(x,tt,this,arguments[1]);break;case 3:u(x,tt,this,arguments[1],arguments[2]);break;case 4:d(x,tt,this,arguments[1],arguments[2],arguments[3]);break;default:for(D=new Array(k-1),M=1;M<k;M++)D[M-1]=arguments[M];f(x,tt,this,D)}return!0};function p(m,h,v,x){var k,D,M;if(typeof v!="function")throw new TypeError('"listener" argument must be a function');if(D=m._events,D?(D.newListener&&(m.emit("newListener",h,v.listener?v.listener:v),D=m._events),M=D[h]):(D=m._events=new s,m._eventsCount=0),!M)M=D[h]=v,++m._eventsCount;else if(typeof M=="function"?M=D[h]=x?[v,M]:[M,v]:x?M.unshift(v):M.push(v),!M.warned&&(k=a(m),k&&k>0&&M.length>k)){M.warned=!0;var ue=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+h+" listeners added. Use emitter.setMaxListeners() to increase limit");ue.name="MaxListenersExceededWarning",ue.emitter=m,ue.type=h,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(h,v){return p(this,h,v,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(h,v){return p(this,h,v,!0)};function _(m,h,v){var x=!1;function k(){m.removeListener(h,k),x||(x=!0,v.apply(m,arguments))}return k.listener=v,k}o.prototype.once=function(h,v){if(typeof v!="function")throw new TypeError('"listener" argument must be a function');return this.on(h,_(this,h,v)),this},o.prototype.prependOnceListener=function(h,v){if(typeof v!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(h,_(this,h,v)),this},o.prototype.removeListener=function(h,v){var x,k,D,M,ue;if(typeof v!="function")throw new TypeError('"listener" argument must be a function');if(k=this._events,!k)return this;if(x=k[h],!x)return this;if(x===v||x.listener&&x.listener===v)--this._eventsCount===0?this._events=new s:(delete k[h],k.removeListener&&this.emit("removeListener",h,x.listener||v));else if(typeof x!="function"){for(D=-1,M=x.length;M-- >0;)if(x[M]===v||x[M].listener&&x[M].listener===v){ue=x[M].listener,D=M;break}if(D<0)return this;if(x.length===1){if(x[0]=void 0,--this._eventsCount===0)return this._events=new s,this;delete k[h]}else y(x,D);k.removeListener&&this.emit("removeListener",h,ue||v)}return this},o.prototype.removeAllListeners=function(h){var v,x;if(x=this._events,!x)return this;if(!x.removeListener)return arguments.length===0?(this._events=new s,this._eventsCount=0):x[h]&&(--this._eventsCount===0?this._events=new s:delete x[h]),this;if(arguments.length===0){for(var k=Object.keys(x),D=0,M;D<k.length;++D)M=k[D],M!=="removeListener"&&this.removeAllListeners(M);return this.removeAllListeners("removeListener"),this._events=new s,this._eventsCount=0,this}if(v=x[h],typeof v=="function")this.removeListener(h,v);else if(v)do this.removeListener(h,v[v.length-1]);while(v[0]);return this},o.prototype.listeners=function(h){var v,x,k=this._events;return k?(v=k[h],v?typeof v=="function"?x=[v.listener||v]:x=E(v):x=[]):x=[],x},o.listenerCount=function(m,h){return typeof m.listenerCount=="function"?m.listenerCount(h):b.call(m,h)},o.prototype.listenerCount=b;function b(m){var h=this._events;if(h){var v=h[m];if(typeof v=="function")return 1;if(v)return v.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function y(m,h){for(var v=h,x=v+1,k=m.length;x<k;v+=1,x+=1)m[v]=m[x];m.pop()}function w(m,h){for(var v=new Array(h);h--;)v[h]=m[h];return v}function E(m){for(var h=new Array(m.length),v=0;v<h.length;++v)h[v]=m[v].listener||m[v];return h}var C=typeof Vs!="undefined"?Vs:typeof self!="undefined"?self:typeof window!="undefined"?window:{},S=[],A=[],P=typeof Uint8Array!="undefined"?Uint8Array:Array,I=!1;function O(){I=!0;for(var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,v=m.length;h<v;++h)S[h]=m[h],A[m.charCodeAt(h)]=h;A["-".charCodeAt(0)]=62,A["_".charCodeAt(0)]=63}function L(m){I||O();var h,v,x,k,D,M,ue=m.length;if(ue%4>0)throw new Error("Invalid string. Length must be a multiple of 4");D=m[ue-2]==="="?2:m[ue-1]==="="?1:0,M=new P(ue*3/4-D),x=D>0?ue-4:ue;var Ee=0;for(h=0,v=0;h<x;h+=4,v+=3)k=A[m.charCodeAt(h)]<<18|A[m.charCodeAt(h+1)]<<12|A[m.charCodeAt(h+2)]<<6|A[m.charCodeAt(h+3)],M[Ee++]=k>>16&255,M[Ee++]=k>>8&255,M[Ee++]=k&255;return D===2?(k=A[m.charCodeAt(h)]<<2|A[m.charCodeAt(h+1)]>>4,M[Ee++]=k&255):D===1&&(k=A[m.charCodeAt(h)]<<10|A[m.charCodeAt(h+1)]<<4|A[m.charCodeAt(h+2)]>>2,M[Ee++]=k>>8&255,M[Ee++]=k&255),M}function R(m){return S[m>>18&63]+S[m>>12&63]+S[m>>6&63]+S[m&63]}function F(m,h,v){for(var x,k=[],D=h;D<v;D+=3)x=(m[D]<<16)+(m[D+1]<<8)+m[D+2],k.push(R(x));return k.join("")}function H(m){I||O();for(var h,v=m.length,x=v%3,k="",D=[],M=16383,ue=0,Ee=v-x;ue<Ee;ue+=M)D.push(F(m,ue,ue+M>Ee?Ee:ue+M));return x===1?(h=m[v-1],k+=S[h>>2],k+=S[h<<4&63],k+="=="):x===2&&(h=(m[v-2]<<8)+m[v-1],k+=S[h>>10],k+=S[h>>4&63],k+=S[h<<2&63],k+="="),D.push(k),D.join("")}function V(m,h,v,x,k){var D,M,ue=k*8-x-1,Ee=(1<<ue)-1,Ue=Ee>>1,We=-7,tt=v?k-1:0,Xt=v?-1:1,Bt=m[h+tt];for(tt+=Xt,D=Bt&(1<<-We)-1,Bt>>=-We,We+=ue;We>0;D=D*256+m[h+tt],tt+=Xt,We-=8);for(M=D&(1<<-We)-1,D>>=-We,We+=x;We>0;M=M*256+m[h+tt],tt+=Xt,We-=8);if(D===0)D=1-Ue;else{if(D===Ee)return M?NaN:(Bt?-1:1)*(1/0);M=M+Math.pow(2,x),D=D-Ue}return(Bt?-1:1)*M*Math.pow(2,D-x)}function ae(m,h,v,x,k,D){var M,ue,Ee,Ue=D*8-k-1,We=(1<<Ue)-1,tt=We>>1,Xt=k===23?Math.pow(2,-24)-Math.pow(2,-77):0,Bt=x?0:D-1,$r=x?1:-1,qu=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(ue=isNaN(h)?1:0,M=We):(M=Math.floor(Math.log(h)/Math.LN2),h*(Ee=Math.pow(2,-M))<1&&(M--,Ee*=2),M+tt>=1?h+=Xt/Ee:h+=Xt*Math.pow(2,1-tt),h*Ee>=2&&(M++,Ee/=2),M+tt>=We?(ue=0,M=We):M+tt>=1?(ue=(h*Ee-1)*Math.pow(2,k),M=M+tt):(ue=h*Math.pow(2,tt-1)*Math.pow(2,k),M=0));k>=8;m[v+Bt]=ue&255,Bt+=$r,ue/=256,k-=8);for(M=M<<k|ue,Ue+=k;Ue>0;m[v+Bt]=M&255,Bt+=$r,M/=256,Ue-=8);m[v+Bt-$r]|=qu*128}var ce={}.toString,U=Array.isArray||function(m){return ce.call(m)=="[object Array]"},J=50;j.TYPED_ARRAY_SUPPORT=C.TYPED_ARRAY_SUPPORT!==void 0?C.TYPED_ARRAY_SUPPORT:!0;function Q(){return j.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function X(m,h){if(Q()<h)throw new RangeError("Invalid typed array length");return j.TYPED_ARRAY_SUPPORT?(m=new Uint8Array(h),m.__proto__=j.prototype):(m===null&&(m=new j(h)),m.length=h),m}function j(m,h,v){if(!j.TYPED_ARRAY_SUPPORT&&!(this instanceof j))return new j(m,h,v);if(typeof m=="number"){if(typeof h=="string")throw new Error("If encoding is specified then the first argument must be a string");return oe(this,m)}return ye(this,m,h,v)}j.poolSize=8192,j._augment=function(m){return m.__proto__=j.prototype,m};function ye(m,h,v,x){if(typeof h=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&h instanceof ArrayBuffer?z(m,h,v,x):typeof h=="string"?Ce(m,h,v):Z(m,h)}j.from=function(m,h,v){return ye(null,m,h,v)},j.TYPED_ARRAY_SUPPORT&&(j.prototype.__proto__=Uint8Array.prototype,j.__proto__=Uint8Array);function pe(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 ie(m,h,v,x){return pe(h),h<=0?X(m,h):v!==void 0?typeof x=="string"?X(m,h).fill(v,x):X(m,h).fill(v):X(m,h)}j.alloc=function(m,h,v){return ie(null,m,h,v)};function oe(m,h){if(pe(h),m=X(m,h<0?0:_e(h)|0),!j.TYPED_ARRAY_SUPPORT)for(var v=0;v<h;++v)m[v]=0;return m}j.allocUnsafe=function(m){return oe(null,m)},j.allocUnsafeSlow=function(m){return oe(null,m)};function Ce(m,h,v){if((typeof v!="string"||v==="")&&(v="utf8"),!j.isEncoding(v))throw new TypeError('"encoding" must be a valid string encoding');var x=Re(h,v)|0;m=X(m,x);var k=m.write(h,v);return k!==x&&(m=m.slice(0,k)),m}function me(m,h){var v=h.length<0?0:_e(h.length)|0;m=X(m,v);for(var x=0;x<v;x+=1)m[x]=h[x]&255;return m}function z(m,h,v,x){if(h.byteLength,v<0||h.byteLength<v)throw new RangeError("'offset' is out of bounds");if(h.byteLength<v+(x||0))throw new RangeError("'length' is out of bounds");return v===void 0&&x===void 0?h=new Uint8Array(h):x===void 0?h=new Uint8Array(h,v):h=new Uint8Array(h,v,x),j.TYPED_ARRAY_SUPPORT?(m=h,m.__proto__=j.prototype):m=me(m,h),m}function Z(m,h){if(Pe(h)){var v=_e(h.length)|0;return m=X(m,v),m.length===0||h.copy(m,0,0,v),m}if(h){if(typeof ArrayBuffer!="undefined"&&h.buffer instanceof ArrayBuffer||"length"in h)return typeof h.length!="number"||yh(h.length)?X(m,0):me(m,h);if(h.type==="Buffer"&&U(h.data))return me(m,h.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function _e(m){if(m>=Q())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Q().toString(16)+" bytes");return m|0}j.isBuffer=wh;function Pe(m){return!!(m!=null&&m._isBuffer)}j.compare=function(h,v){if(!Pe(h)||!Pe(v))throw new TypeError("Arguments must be Buffers");if(h===v)return 0;for(var x=h.length,k=v.length,D=0,M=Math.min(x,k);D<M;++D)if(h[D]!==v[D]){x=h[D],k=v[D];break}return x<k?-1:k<x?1:0},j.isEncoding=function(h){switch(String(h).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}},j.concat=function(h,v){if(!U(h))throw new TypeError('"list" argument must be an Array of Buffers');if(h.length===0)return j.alloc(0);var x;if(v===void 0)for(v=0,x=0;x<h.length;++x)v+=h[x].length;var k=j.allocUnsafe(v),D=0;for(x=0;x<h.length;++x){var M=h[x];if(!Pe(M))throw new TypeError('"list" argument must be an Array of Buffers');M.copy(k,D),D+=M.length}return k};function Re(m,h){if(Pe(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 v=m.length;if(v===0)return 0;for(var x=!1;;)switch(h){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":case void 0:return mn(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return bh(m).length;default:if(x)return mn(m).length;h=(""+h).toLowerCase(),x=!0}}j.byteLength=Re;function Ke(m,h,v){var x=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0,h>>>=0,v<=h))return"";for(m||(m="utf8");;)switch(m){case"hex":return Ct(this,h,v);case"utf8":case"utf-8":return $e(this,h,v);case"ascii":return Le(this,h,v);case"latin1":case"binary":return Ye(this,h,v);case"base64":return ve(this,h,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mt(this,h,v);default:if(x)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),x=!0}}j.prototype._isBuffer=!0;function B(m,h,v){var x=m[h];m[h]=m[v],m[v]=x}j.prototype.swap16=function(){var h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var v=0;v<h;v+=2)B(this,v,v+1);return this},j.prototype.swap32=function(){var h=this.length;if(h%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var v=0;v<h;v+=4)B(this,v,v+3),B(this,v+1,v+2);return this},j.prototype.swap64=function(){var h=this.length;if(h%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var v=0;v<h;v+=8)B(this,v,v+7),B(this,v+1,v+6),B(this,v+2,v+5),B(this,v+3,v+4);return this},j.prototype.toString=function(){var h=this.length|0;return h===0?"":arguments.length===0?$e(this,0,h):Ke.apply(this,arguments)},j.prototype.equals=function(h){if(!Pe(h))throw new TypeError("Argument must be a Buffer");return this===h?!0:j.compare(this,h)===0},j.prototype.inspect=function(){var h="",v=J;return this.length>0&&(h=this.toString("hex",0,v).match(/.{2}/g).join(" "),this.length>v&&(h+=" ... ")),"<Buffer "+h+">"},j.prototype.compare=function(h,v,x,k,D){if(!Pe(h))throw new TypeError("Argument must be a Buffer");if(v===void 0&&(v=0),x===void 0&&(x=h?h.length:0),k===void 0&&(k=0),D===void 0&&(D=this.length),v<0||x>h.length||k<0||D>this.length)throw new RangeError("out of range index");if(k>=D&&v>=x)return 0;if(k>=D)return-1;if(v>=x)return 1;if(v>>>=0,x>>>=0,k>>>=0,D>>>=0,this===h)return 0;for(var M=D-k,ue=x-v,Ee=Math.min(M,ue),Ue=this.slice(k,D),We=h.slice(v,x),tt=0;tt<Ee;++tt)if(Ue[tt]!==We[tt]){M=Ue[tt],ue=We[tt];break}return M<ue?-1:ue<M?1:0};function K(m,h,v,x,k){if(m.length===0)return-1;if(typeof v=="string"?(x=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,isNaN(v)&&(v=k?0:m.length-1),v<0&&(v=m.length+v),v>=m.length){if(k)return-1;v=m.length-1}else if(v<0)if(k)v=0;else return-1;if(typeof h=="string"&&(h=j.from(h,x)),Pe(h))return h.length===0?-1:se(m,h,v,x,k);if(typeof h=="number")return h=h&255,j.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?k?Uint8Array.prototype.indexOf.call(m,h,v):Uint8Array.prototype.lastIndexOf.call(m,h,v):se(m,[h],v,x,k);throw new TypeError("val must be string, number or Buffer")}function se(m,h,v,x,k){var D=1,M=m.length,ue=h.length;if(x!==void 0&&(x=String(x).toLowerCase(),x==="ucs2"||x==="ucs-2"||x==="utf16le"||x==="utf-16le")){if(m.length<2||h.length<2)return-1;D=2,M/=2,ue/=2,v/=2}function Ee(Bt,$r){return D===1?Bt[$r]:Bt.readUInt16BE($r*D)}var Ue;if(k){var We=-1;for(Ue=v;Ue<M;Ue++)if(Ee(m,Ue)===Ee(h,We===-1?0:Ue-We)){if(We===-1&&(We=Ue),Ue-We+1===ue)return We*D}else We!==-1&&(Ue-=Ue-We),We=-1}else for(v+ue>M&&(v=M-ue),Ue=v;Ue>=0;Ue--){for(var tt=!0,Xt=0;Xt<ue;Xt++)if(Ee(m,Ue+Xt)!==Ee(h,Xt)){tt=!1;break}if(tt)return Ue}return-1}j.prototype.includes=function(h,v,x){return this.indexOf(h,v,x)!==-1},j.prototype.indexOf=function(h,v,x){return K(this,h,v,x,!0)},j.prototype.lastIndexOf=function(h,v,x){return K(this,h,v,x,!1)};function Ae(m,h,v,x){v=Number(v)||0;var k=m.length-v;x?(x=Number(x),x>k&&(x=k)):x=k;var D=h.length;if(D%2!==0)throw new TypeError("Invalid hex string");x>D/2&&(x=D/2);for(var M=0;M<x;++M){var ue=parseInt(h.substr(M*2,2),16);if(isNaN(ue))return M;m[v+M]=ue}return M}function de(m,h,v,x){return jl(mn(h,m.length-v),m,v,x)}function fe(m,h,v,x){return jl(Fl(h),m,v,x)}function Se(m,h,v,x){return fe(m,h,v,x)}function Te(m,h,v,x){return jl(bh(h),m,v,x)}function Oe(m,h,v,x){return jl(pb(h,m.length-v),m,v,x)}j.prototype.write=function(h,v,x,k){if(v===void 0)k="utf8",x=this.length,v=0;else if(x===void 0&&typeof v=="string")k=v,x=this.length,v=0;else if(isFinite(v))v=v|0,isFinite(x)?(x=x|0,k===void 0&&(k="utf8")):(k=x,x=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var D=this.length-v;if((x===void 0||x>D)&&(x=D),h.length>0&&(x<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");k||(k="utf8");for(var M=!1;;)switch(k){case"hex":return Ae(this,h,v,x);case"utf8":case"utf-8":return de(this,h,v,x);case"ascii":return fe(this,h,v,x);case"latin1":case"binary":return Se(this,h,v,x);case"base64":return Te(this,h,v,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oe(this,h,v,x);default:if(M)throw new TypeError("Unknown encoding: "+k);k=(""+k).toLowerCase(),M=!0}},j.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ve(m,h,v){return h===0&&v===m.length?H(m):H(m.slice(h,v))}function $e(m,h,v){v=Math.min(m.length,v);for(var x=[],k=h;k<v;){var D=m[k],M=null,ue=D>239?4:D>223?3:D>191?2:1;if(k+ue<=v){var Ee,Ue,We,tt;switch(ue){case 1:D<128&&(M=D);break;case 2:Ee=m[k+1],(Ee&192)===128&&(tt=(D&31)<<6|Ee&63,tt>127&&(M=tt));break;case 3:Ee=m[k+1],Ue=m[k+2],(Ee&192)===128&&(Ue&192)===128&&(tt=(D&15)<<12|(Ee&63)<<6|Ue&63,tt>2047&&(tt<55296||tt>57343)&&(M=tt));break;case 4:Ee=m[k+1],Ue=m[k+2],We=m[k+3],(Ee&192)===128&&(Ue&192)===128&&(We&192)===128&&(tt=(D&15)<<18|(Ee&63)<<12|(Ue&63)<<6|We&63,tt>65535&&tt<1114112&&(M=tt))}}M===null?(M=65533,ue=1):M>65535&&(M-=65536,x.push(M>>>10&1023|55296),M=56320|M&1023),x.push(M),k+=ue}return le(x)}var he=4096;function le(m){var h=m.length;if(h<=he)return String.fromCharCode.apply(String,m);for(var v="",x=0;x<h;)v+=String.fromCharCode.apply(String,m.slice(x,x+=he));return v}function Le(m,h,v){var x="";v=Math.min(m.length,v);for(var k=h;k<v;++k)x+=String.fromCharCode(m[k]&127);return x}function Ye(m,h,v){var x="";v=Math.min(m.length,v);for(var k=h;k<v;++k)x+=String.fromCharCode(m[k]);return x}function Ct(m,h,v){var x=m.length;(!h||h<0)&&(h=0),(!v||v<0||v>x)&&(v=x);for(var k="",D=h;D<v;++D)k+=ws(m[D]);return k}function mt(m,h,v){for(var x=m.slice(h,v),k="",D=0;D<x.length;D+=2)k+=String.fromCharCode(x[D]+x[D+1]*256);return k}j.prototype.slice=function(h,v){var x=this.length;h=~~h,v=v===void 0?x:~~v,h<0?(h+=x,h<0&&(h=0)):h>x&&(h=x),v<0?(v+=x,v<0&&(v=0)):v>x&&(v=x),v<h&&(v=h);var k;if(j.TYPED_ARRAY_SUPPORT)k=this.subarray(h,v),k.__proto__=j.prototype;else{var D=v-h;k=new j(D,void 0);for(var M=0;M<D;++M)k[M]=this[M+h]}return k};function Ot(m,h,v){if(m%1!==0||m<0)throw new RangeError("offset is not uint");if(m+h>v)throw new RangeError("Trying to access beyond buffer length")}j.prototype.readUIntLE=function(h,v,x){h=h|0,v=v|0,x||Ot(h,v,this.length);for(var k=this[h],D=1,M=0;++M<v&&(D*=256);)k+=this[h+M]*D;return k},j.prototype.readUIntBE=function(h,v,x){h=h|0,v=v|0,x||Ot(h,v,this.length);for(var k=this[h+--v],D=1;v>0&&(D*=256);)k+=this[h+--v]*D;return k},j.prototype.readUInt8=function(h,v){return v||Ot(h,1,this.length),this[h]},j.prototype.readUInt16LE=function(h,v){return v||Ot(h,2,this.length),this[h]|this[h+1]<<8},j.prototype.readUInt16BE=function(h,v){return v||Ot(h,2,this.length),this[h]<<8|this[h+1]},j.prototype.readUInt32LE=function(h,v){return v||Ot(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},j.prototype.readUInt32BE=function(h,v){return v||Ot(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},j.prototype.readIntLE=function(h,v,x){h=h|0,v=v|0,x||Ot(h,v,this.length);for(var k=this[h],D=1,M=0;++M<v&&(D*=256);)k+=this[h+M]*D;return D*=128,k>=D&&(k-=Math.pow(2,8*v)),k},j.prototype.readIntBE=function(h,v,x){h=h|0,v=v|0,x||Ot(h,v,this.length);for(var k=v,D=1,M=this[h+--k];k>0&&(D*=256);)M+=this[h+--k]*D;return D*=128,M>=D&&(M-=Math.pow(2,8*v)),M},j.prototype.readInt8=function(h,v){return v||Ot(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},j.prototype.readInt16LE=function(h,v){v||Ot(h,2,this.length);var x=this[h]|this[h+1]<<8;return x&32768?x|4294901760:x},j.prototype.readInt16BE=function(h,v){v||Ot(h,2,this.length);var x=this[h+1]|this[h]<<8;return x&32768?x|4294901760:x},j.prototype.readInt32LE=function(h,v){return v||Ot(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},j.prototype.readInt32BE=function(h,v){return v||Ot(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},j.prototype.readFloatLE=function(h,v){return v||Ot(h,4,this.length),V(this,h,!0,23,4)},j.prototype.readFloatBE=function(h,v){return v||Ot(h,4,this.length),V(this,h,!1,23,4)},j.prototype.readDoubleLE=function(h,v){return v||Ot(h,8,this.length),V(this,h,!0,52,8)},j.prototype.readDoubleBE=function(h,v){return v||Ot(h,8,this.length),V(this,h,!1,52,8)};function De(m,h,v,x,k,D){if(!Pe(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>k||h<D)throw new RangeError('"value" argument is out of bounds');if(v+x>m.length)throw new RangeError("Index out of range")}j.prototype.writeUIntLE=function(h,v,x,k){if(h=+h,v=v|0,x=x|0,!k){var D=Math.pow(2,8*x)-1;De(this,h,v,x,D,0)}var M=1,ue=0;for(this[v]=h&255;++ue<x&&(M*=256);)this[v+ue]=h/M&255;return v+x},j.prototype.writeUIntBE=function(h,v,x,k){if(h=+h,v=v|0,x=x|0,!k){var D=Math.pow(2,8*x)-1;De(this,h,v,x,D,0)}var M=x-1,ue=1;for(this[v+M]=h&255;--M>=0&&(ue*=256);)this[v+M]=h/ue&255;return v+x},j.prototype.writeUInt8=function(h,v,x){return h=+h,v=v|0,x||De(this,h,v,1,255,0),j.TYPED_ARRAY_SUPPORT||(h=Math.floor(h)),this[v]=h&255,v+1};function Ge(m,h,v,x){h<0&&(h=65535+h+1);for(var k=0,D=Math.min(m.length-v,2);k<D;++k)m[v+k]=(h&255<<8*(x?k:1-k))>>>(x?k:1-k)*8}j.prototype.writeUInt16LE=function(h,v,x){return h=+h,v=v|0,x||De(this,h,v,2,65535,0),j.TYPED_ARRAY_SUPPORT?(this[v]=h&255,this[v+1]=h>>>8):Ge(this,h,v,!0),v+2},j.prototype.writeUInt16BE=function(h,v,x){return h=+h,v=v|0,x||De(this,h,v,2,65535,0),j.TYPED_ARRAY_SUPPORT?(this[v]=h>>>8,this[v+1]=h&255):Ge(this,h,v,!1),v+2};function et(m,h,v,x){h<0&&(h=4294967295+h+1);for(var k=0,D=Math.min(m.length-v,4);k<D;++k)m[v+k]=h>>>(x?k:3-k)*8&255}j.prototype.writeUInt32LE=function(h,v,x){return h=+h,v=v|0,x||De(this,h,v,4,4294967295,0),j.TYPED_ARRAY_SUPPORT?(this[v+3]=h>>>24,this[v+2]=h>>>16,this[v+1]=h>>>8,this[v]=h&255):et(this,h,v,!0),v+4},j.prototype.writeUInt32BE=function(h,v,x){return h=+h,v=v|0,x||De(this,h,v,4,4294967295,0),j.TYPED_ARRAY_SUPPORT?(this[v]=h>>>24,this[v+1]=h>>>16,this[v+2]=h>>>8,this[v+3]=h&255):et(this,h,v,!1),v+4},j.prototype.writeIntLE=function(h,v,x,k){if(h=+h,v=v|0,!k){var D=Math.pow(2,8*x-1);De(this,h,v,x,D-1,-D)}var M=0,ue=1,Ee=0;for(this[v]=h&255;++M<x&&(ue*=256);)h<0&&Ee===0&&this[v+M-1]!==0&&(Ee=1),this[v+M]=(h/ue>>0)-Ee&255;return v+x},j.prototype.writeIntBE=function(h,v,x,k){if(h=+h,v=v|0,!k){var D=Math.pow(2,8*x-1);De(this,h,v,x,D-1,-D)}var M=x-1,ue=1,Ee=0;for(this[v+M]=h&255;--M>=0&&(ue*=256);)h<0&&Ee===0&&this[v+M+1]!==0&&(Ee=1),this[v+M]=(h/ue>>0)-Ee&255;return v+x},j.prototype.writeInt8=function(h,v,x){return h=+h,v=v|0,x||De(this,h,v,1,127,-128),j.TYPED_ARRAY_SUPPORT||(h=Math.floor(h)),h<0&&(h=255+h+1),this[v]=h&255,v+1},j.prototype.writeInt16LE=function(h,v,x){return h=+h,v=v|0,x||De(this,h,v,2,32767,-32768),j.TYPED_ARRAY_SUPPORT?(this[v]=h&255,this[v+1]=h>>>8):Ge(this,h,v,!0),v+2},j.prototype.writeInt16BE=function(h,v,x){return h=+h,v=v|0,x||De(this,h,v,2,32767,-32768),j.TYPED_ARRAY_SUPPORT?(this[v]=h>>>8,this[v+1]=h&255):Ge(this,h,v,!1),v+2},j.prototype.writeInt32LE=function(h,v,x){return h=+h,v=v|0,x||De(this,h,v,4,2147483647,-2147483648),j.TYPED_ARRAY_SUPPORT?(this[v]=h&255,this[v+1]=h>>>8,this[v+2]=h>>>16,this[v+3]=h>>>24):et(this,h,v,!0),v+4},j.prototype.writeInt32BE=function(h,v,x){return h=+h,v=v|0,x||De(this,h,v,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),j.TYPED_ARRAY_SUPPORT?(this[v]=h>>>24,this[v+1]=h>>>16,this[v+2]=h>>>8,this[v+3]=h&255):et(this,h,v,!1),v+4};function ot(m,h,v,x,k,D){if(v+x>m.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function St(m,h,v,x,k){return k||ot(m,h,v,4),ae(m,h,v,x,23,4),v+4}j.prototype.writeFloatLE=function(h,v,x){return St(this,h,v,!0,x)},j.prototype.writeFloatBE=function(h,v,x){return St(this,h,v,!1,x)};function _t(m,h,v,x,k){return k||ot(m,h,v,8),ae(m,h,v,x,52,8),v+8}j.prototype.writeDoubleLE=function(h,v,x){return _t(this,h,v,!0,x)},j.prototype.writeDoubleBE=function(h,v,x){return _t(this,h,v,!1,x)},j.prototype.copy=function(h,v,x,k){if(x||(x=0),!k&&k!==0&&(k=this.length),v>=h.length&&(v=h.length),v||(v=0),k>0&&k<x&&(k=x),k===x||h.length===0||this.length===0)return 0;if(v<0)throw new RangeError("targetStart out of bounds");if(x<0||x>=this.length)throw new RangeError("sourceStart out of bounds");if(k<0)throw new RangeError("sourceEnd out of bounds");k>this.length&&(k=this.length),h.length-v<k-x&&(k=h.length-v+x);var D=k-x,M;if(this===h&&x<v&&v<k)for(M=D-1;M>=0;--M)h[M+v]=this[M+x];else if(D<1e3||!j.TYPED_ARRAY_SUPPORT)for(M=0;M<D;++M)h[M+v]=this[M+x];else Uint8Array.prototype.set.call(h,this.subarray(x,x+D),v);return D},j.prototype.fill=function(h,v,x,k){if(typeof h=="string"){if(typeof v=="string"?(k=v,v=0,x=this.length):typeof x=="string"&&(k=x,x=this.length),h.length===1){var D=h.charCodeAt(0);D<256&&(h=D)}if(k!==void 0&&typeof k!="string")throw new TypeError("encoding must be a string");if(typeof k=="string"&&!j.isEncoding(k))throw new TypeError("Unknown encoding: "+k)}else typeof h=="number"&&(h=h&255);if(v<0||this.length<v||this.length<x)throw new RangeError("Out of range index");if(x<=v)return this;v=v>>>0,x=x===void 0?this.length:x>>>0,h||(h=0);var M;if(typeof h=="number")for(M=v;M<x;++M)this[M]=h;else{var ue=Pe(h)?h:mn(new j(h,k).toString()),Ee=ue.length;for(M=0;M<x-v;++M)this[M+v]=ue[M%Ee]}return this};var zt=/[^+\/0-9A-Za-z-_]/g;function Xn(m){if(m=vi(m).replace(zt,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function vi(m){return m.trim?m.trim():m.replace(/^\s+|\s+$/g,"")}function ws(m){return m<16?"0"+m.toString(16):m.toString(16)}function mn(m,h){h=h||1/0;for(var v,x=m.length,k=null,D=[],M=0;M<x;++M){if(v=m.charCodeAt(M),v>55295&&v<57344){if(!k){if(v>56319){(h-=3)>-1&&D.push(239,191,189);continue}else if(M+1===x){(h-=3)>-1&&D.push(239,191,189);continue}k=v;continue}if(v<56320){(h-=3)>-1&&D.push(239,191,189),k=v;continue}v=(k-55296<<10|v-56320)+65536}else k&&(h-=3)>-1&&D.push(239,191,189);if(k=null,v<128){if((h-=1)<0)break;D.push(v)}else if(v<2048){if((h-=2)<0)break;D.push(v>>6|192,v&63|128)}else if(v<65536){if((h-=3)<0)break;D.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((h-=4)<0)break;D.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return D}function Fl(m){for(var h=[],v=0;v<m.length;++v)h.push(m.charCodeAt(v)&255);return h}function pb(m,h){for(var v,x,k,D=[],M=0;M<m.length&&!((h-=2)<0);++M)v=m.charCodeAt(M),x=v>>8,k=v%256,D.push(k),D.push(x);return D}function bh(m){return L(Xn(m))}function jl(m,h,v,x){for(var k=0;k<x&&!(k+v>=h.length||k>=m.length);++k)h[k+v]=m[k];return k}function yh(m){return m!==m}function wh(m){return m!=null&&(!!m._isBuffer||Bl(m)||hb(m))}function Bl(m){return!!m.constructor&&typeof m.constructor.isBuffer=="function"&&m.constructor.isBuffer(m)}function hb(m){return typeof m.readFloatLE=="function"&&typeof m.slice=="function"&&Bl(m.slice(0,0))}function Ch(){throw new Error("setTimeout has not been defined")}function Sh(){throw new Error("clearTimeout has not been defined")}var cr=Ch,Br=Sh;typeof C.setTimeout=="function"&&(cr=setTimeout),typeof C.clearTimeout=="function"&&(Br=clearTimeout);function xh(m){if(cr===setTimeout)return setTimeout(m,0);if((cr===Ch||!cr)&&setTimeout)return cr=setTimeout,setTimeout(m,0);try{return cr(m,0)}catch(h){try{return cr.call(null,m,0)}catch(v){return cr.call(this,m,0)}}}function gb(m){if(Br===clearTimeout)return clearTimeout(m);if((Br===Sh||!Br)&&clearTimeout)return Br=clearTimeout,clearTimeout(m);try{return Br(m)}catch(h){try{return Br.call(null,m)}catch(v){return Br.call(this,m)}}}var ur=[],ge=!1,Me,vt=-1;function $t(){!ge||!Me||(ge=!1,Me.length?ur=Me.concat(ur):vt=-1,ur.length&&dr())}function dr(){if(!ge){var m=xh($t);ge=!0;for(var h=ur.length;h;){for(Me=ur,ur=[];++vt<h;)Me&&Me[vt].run();vt=-1,h=ur.length}Me=null,ge=!1,gb(m)}}function _n(m){var h=new Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)h[v-1]=arguments[v];ur.push(new ua(m,h)),ur.length===1&&!ge&&xh(dr)}function ua(m,h){this.fun=m,this.array=h}ua.prototype.run=function(){this.fun.apply(null,this.array)};var bi=C.performance||{};bi.now||bi.mozNow||bi.msNow||bi.oNow||bi.webkitNow;var ai;typeof Object.create=="function"?ai=function(h,v){h.super_=v,h.prototype=Object.create(v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})}:ai=function(h,v){h.super_=v;var x=function(){};x.prototype=v.prototype,h.prototype=new x,h.prototype.constructor=h};var Cs=ai,jue=/%[sdj%]/g;function Bue(m){if(!yb(m)){for(var h=[],v=0;v<arguments.length;v++)h.push(oo(arguments[v]));return h.join(" ")}for(var v=1,x=arguments,k=x.length,D=String(m).replace(jue,function(ue){if(ue==="%%")return"%";if(v>=k)return ue;switch(ue){case"%s":return String(x[v++]);case"%d":return Number(x[v++]);case"%j":try{return JSON.stringify(x[v++])}catch(Ee){return"[Circular]"}default:return ue}}),M=x[v];v<k;M=x[++v])bb(M)||!Bu(M)?D+=" "+M:D+=" "+oo(M);return D}function E9(m,h){if(ao(C.process))return function(){return E9(m,h).apply(this,arguments)};var v=!1;function x(){return v||(console.error(h),v=!0),m.apply(this,arguments)}return x}var Eh={},mb;function Uue(m){if(ao(mb)&&(mb=""),m=m.toUpperCase(),!Eh[m])if(new RegExp("\\b"+m+"\\b","i").test(mb)){var h=0;Eh[m]=function(){var v=Bue.apply(null,arguments);console.error("%s %d: %s",m,h,v)}}else Eh[m]=function(){};return Eh[m]}function oo(m,h){var v={seen:[],stylize:Vue};return arguments.length>=3&&(v.depth=arguments[2]),arguments.length>=4&&(v.colors=arguments[3]),A9(h)?v.showHidden=h:h&&Jue(v,h),ao(v.showHidden)&&(v.showHidden=!1),ao(v.depth)&&(v.depth=2),ao(v.colors)&&(v.colors=!1),ao(v.customInspect)&&(v.customInspect=!0),v.colors&&(v.stylize=$ue),Ah(v,m,v.depth)}oo.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]},oo.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function $ue(m,h){var v=oo.styles[h];return v?"\x1B["+oo.colors[v][0]+"m"+m+"\x1B["+oo.colors[v][1]+"m":m}function Vue(m,h){return m}function que(m){var h={};return m.forEach(function(v,x){h[v]=!0}),h}function Ah(m,h,v){if(m.customInspect&&h&&Sb(h.inspect)&&h.inspect!==oo&&!(h.constructor&&h.constructor.prototype===h)){var x=h.inspect(v,m);return yb(x)||(x=Ah(m,x,v)),x}var k=zue(m,h);if(k)return k;var D=Object.keys(h),M=que(D);if(m.showHidden&&(D=Object.getOwnPropertyNames(h)),Cb(h)&&(D.indexOf("message")>=0||D.indexOf("description")>=0))return _b(h);if(D.length===0){if(Sb(h)){var ue=h.name?": "+h.name:"";return m.stylize("[Function"+ue+"]","special")}if(wb(h))return m.stylize(RegExp.prototype.toString.call(h),"regexp");if(T9(h))return m.stylize(Date.prototype.toString.call(h),"date");if(Cb(h))return _b(h)}var Ee="",Ue=!1,We=["{","}"];if(Wue(h)&&(Ue=!0,We=["[","]"]),Sb(h)){var tt=h.name?": "+h.name:"";Ee=" [Function"+tt+"]"}if(wb(h)&&(Ee=" "+RegExp.prototype.toString.call(h)),T9(h)&&(Ee=" "+Date.prototype.toUTCString.call(h)),Cb(h)&&(Ee=" "+_b(h)),D.length===0&&(!Ue||h.length==0))return We[0]+Ee+We[1];if(v<0)return wb(h)?m.stylize(RegExp.prototype.toString.call(h),"regexp"):m.stylize("[Object]","special");m.seen.push(h);var Xt;return Ue?Xt=Hue(m,h,v,M,D):Xt=D.map(function(Bt){return vb(m,h,v,M,Bt,Ue)}),m.seen.pop(),Gue(Xt,Ee,We)}function zue(m,h){if(ao(h))return m.stylize("undefined","undefined");if(yb(h)){var v="'"+JSON.stringify(h).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return m.stylize(v,"string")}if(Kue(h))return m.stylize(""+h,"number");if(A9(h))return m.stylize(""+h,"boolean");if(bb(h))return m.stylize("null","null")}function _b(m){return"["+Error.prototype.toString.call(m)+"]"}function Hue(m,h,v,x,k){for(var D=[],M=0,ue=h.length;M<ue;++M)k9(h,String(M))?D.push(vb(m,h,v,x,String(M),!0)):D.push("");return k.forEach(function(Ee){Ee.match(/^\d+$/)||D.push(vb(m,h,v,x,Ee,!0))}),D}function vb(m,h,v,x,k,D){var M,ue,Ee;if(Ee=Object.getOwnPropertyDescriptor(h,k)||{value:h[k]},Ee.get?Ee.set?ue=m.stylize("[Getter/Setter]","special"):ue=m.stylize("[Getter]","special"):Ee.set&&(ue=m.stylize("[Setter]","special")),k9(x,k)||(M="["+k+"]"),ue||(m.seen.indexOf(Ee.value)<0?(bb(v)?ue=Ah(m,Ee.value,null):ue=Ah(m,Ee.value,v-1),ue.indexOf(`
|
|
123
|
+
`)>-1&&(D?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")),ao(M)){if(D&&k.match(/^\d+$/))return ue;M=JSON.stringify(""+k),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 Gue(m,h,v){var x=m.reduce(function(k,D){return D.indexOf(`
|
|
129
|
+
`)>=0,k+D.replace(/\u001b\[\d\d?m/g,"").length+1},0);return x>60?v[0]+(h===""?"":h+`
|
|
130
|
+
`)+" "+m.join(`,
|
|
131
|
+
`)+" "+v[1]:v[0]+h+" "+m.join(", ")+" "+v[1]}function Wue(m){return Array.isArray(m)}function A9(m){return typeof m=="boolean"}function bb(m){return m===null}function Kue(m){return typeof m=="number"}function yb(m){return typeof m=="string"}function ao(m){return m===void 0}function wb(m){return Bu(m)&&xb(m)==="[object RegExp]"}function Bu(m){return typeof m=="object"&&m!==null}function T9(m){return Bu(m)&&xb(m)==="[object Date]"}function Cb(m){return Bu(m)&&(xb(m)==="[object Error]"||m instanceof Error)}function Sb(m){return typeof m=="function"}function xb(m){return Object.prototype.toString.call(m)}function Jue(m,h){if(!h||!Bu(h))return m;for(var v=Object.keys(h),x=v.length;x--;)m[v[x]]=h[v[x]];return m}function k9(m,h){return Object.prototype.hasOwnProperty.call(m,h)}function da(){this.head=null,this.tail=null,this.length=0}da.prototype.push=function(m){var h={data:m,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length},da.prototype.unshift=function(m){var h={data:m,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length},da.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}},da.prototype.clear=function(){this.head=this.tail=null,this.length=0},da.prototype.join=function(m){if(this.length===0)return"";for(var h=this.head,v=""+h.data;h=h.next;)v+=m+h.data;return v},da.prototype.concat=function(m){if(this.length===0)return j.alloc(0);if(this.length===1)return this.head.data;for(var h=j.allocUnsafe(m>>>0),v=this.head,x=0;v;)v.data.copy(h,x),x+=v.data.length,v=v.next;return h};var Yue=j.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 Xue(m){if(m&&!Yue(m))throw new Error("Unknown encoding: "+m)}function Uu(m){switch(this.encoding=(m||"utf8").toLowerCase().replace(/[-_]/,""),Xue(m),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Que;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=ede;break;default:this.write=Zue;return}this.charBuffer=new j(6),this.charReceived=0,this.charLength=0}Uu.prototype.write=function(m){for(var h="";this.charLength;){var v=m.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:m.length;if(m.copy(this.charBuffer,this.charReceived,0,v),this.charReceived+=v,this.charReceived<this.charLength)return"";m=m.slice(v,m.length),h=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var k=h.charCodeAt(h.length-1);if(k>=55296&&k<=56319){this.charLength+=this.surrogateSize,h="";continue}if(this.charReceived=this.charLength=0,m.length===0)return h;break}this.detectIncompleteChar(m);var x=m.length;this.charLength&&(m.copy(this.charBuffer,0,m.length-this.charReceived,x),x-=this.charReceived),h+=m.toString(this.encoding,0,x);var x=h.length-1,k=h.charCodeAt(x);if(k>=55296&&k<=56319){var D=this.surrogateSize;return this.charLength+=D,this.charReceived+=D,this.charBuffer.copy(this.charBuffer,D,0,D),m.copy(this.charBuffer,0,0,D),h.substring(0,x)}return h},Uu.prototype.detectIncompleteChar=function(m){for(var h=m.length>=3?3:m.length;h>0;h--){var v=m[m.length-h];if(h==1&&v>>5==6){this.charLength=2;break}if(h<=2&&v>>4==14){this.charLength=3;break}if(h<=3&&v>>3==30){this.charLength=4;break}}this.charReceived=h},Uu.prototype.end=function(m){var h="";if(m&&m.length&&(h=this.write(m)),this.charReceived){var v=this.charReceived,x=this.charBuffer,k=this.encoding;h+=x.slice(0,v).toString(k)}return h};function Zue(m){return m.toString(this.encoding)}function Que(m){this.charReceived=m.length%2,this.charLength=this.charReceived?2:0}function ede(m){this.charReceived=m.length%3,this.charLength=this.charReceived?3:0}an.ReadableState=P9;var jt=Uue("stream");Cs(an,o);function tde(m,h,v){if(typeof m.prependListener=="function")return m.prependListener(h,v);!m._events||!m._events[h]?m.on(h,v):Array.isArray(m._events[h])?m._events[h].unshift(v):m._events[h]=[v,m._events[h]]}function nde(m,h){return m.listeners(h).length}function P9(m,h){m=m||{},this.objectMode=!!m.objectMode,h instanceof qi&&(this.objectMode=this.objectMode||!!m.readableObjectMode);var v=m.highWaterMark,x=this.objectMode?16:16*1024;this.highWaterMark=v||v===0?v:x,this.highWaterMark=~~this.highWaterMark,this.buffer=new da,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 Uu(m.encoding),this.encoding=m.encoding)}function an(m){if(!(this instanceof an))return new an(m);this._readableState=new P9(m,this),this.readable=!0,m&&typeof m.read=="function"&&(this._read=m.read),o.call(this)}an.prototype.push=function(m,h){var v=this._readableState;return!v.objectMode&&typeof m=="string"&&(h=h||v.defaultEncoding,h!==v.encoding&&(m=j.from(m,h),h="")),O9(this,v,m,h,!1)},an.prototype.unshift=function(m){var h=this._readableState;return O9(this,h,m,"",!0)},an.prototype.isPaused=function(){return this._readableState.flowing===!1};function O9(m,h,v,x,k){var D=sde(h,v);if(D)m.emit("error",D);else if(v===null)h.reading=!1,ode(m,h);else if(h.objectMode||v&&v.length>0)if(h.ended&&!k){var M=new Error("stream.push() after EOF");m.emit("error",M)}else if(h.endEmitted&&k){var ue=new Error("stream.unshift() after end event");m.emit("error",ue)}else{var Ee;h.decoder&&!k&&!x&&(v=h.decoder.write(v),Ee=!h.objectMode&&v.length===0),k||(h.reading=!1),Ee||(h.flowing&&h.length===0&&!h.sync?(m.emit("data",v),m.read(0)):(h.length+=h.objectMode?1:v.length,k?h.buffer.unshift(v):h.buffer.push(v),h.needReadable&&Th(m))),ade(m,h)}else k||(h.reading=!1);return ide(h)}function ide(m){return!m.ended&&(m.needReadable||m.length<m.highWaterMark||m.length===0)}an.prototype.setEncoding=function(m){return this._readableState.decoder=new Uu(m),this._readableState.encoding=m,this};var N9=8388608;function rde(m){return m>=N9?m=N9:(m--,m|=m>>>1,m|=m>>>2,m|=m>>>4,m|=m>>>8,m|=m>>>16,m++),m}function I9(m,h){return m<=0||h.length===0&&h.ended?0:h.objectMode?1:m!==m?h.flowing&&h.length?h.buffer.head.data.length:h.length:(m>h.highWaterMark&&(h.highWaterMark=rde(m)),m<=h.length?m:h.ended?h.length:(h.needReadable=!0,0))}an.prototype.read=function(m){jt("read",m),m=parseInt(m,10);var h=this._readableState,v=m;if(m!==0&&(h.emittedReadable=!1),m===0&&h.needReadable&&(h.length>=h.highWaterMark||h.ended))return jt("read: emitReadable",h.length,h.ended),h.length===0&&h.ended?Ab(this):Th(this),null;if(m=I9(m,h),m===0&&h.ended)return h.length===0&&Ab(this),null;var x=h.needReadable;jt("need readable",x),(h.length===0||h.length-m<h.highWaterMark)&&(x=!0,jt("length less than watermark",x)),h.ended||h.reading?(x=!1,jt("reading or ended",x)):x&&(jt("do read"),h.reading=!0,h.sync=!0,h.length===0&&(h.needReadable=!0),this._read(h.highWaterMark),h.sync=!1,h.reading||(m=I9(v,h)));var k;return m>0?k=R9(m,h):k=null,k===null?(h.needReadable=!0,m=0):h.length-=m,h.length===0&&(h.ended||(h.needReadable=!0),v!==m&&h.ended&&Ab(this)),k!==null&&this.emit("data",k),k};function sde(m,h){var v=null;return!wh(h)&&typeof h!="string"&&h!==null&&h!==void 0&&!m.objectMode&&(v=new TypeError("Invalid non-string/buffer chunk")),v}function ode(m,h){if(!h.ended){if(h.decoder){var v=h.decoder.end();v&&v.length&&(h.buffer.push(v),h.length+=h.objectMode?1:v.length)}h.ended=!0,Th(m)}}function Th(m){var h=m._readableState;h.needReadable=!1,h.emittedReadable||(jt("emitReadable",h.flowing),h.emittedReadable=!0,h.sync?_n(D9,m):D9(m))}function D9(m){jt("emit readable"),m.emit("readable"),Eb(m)}function ade(m,h){h.readingMore||(h.readingMore=!0,_n(lde,m,h))}function lde(m,h){for(var v=h.length;!h.reading&&!h.flowing&&!h.ended&&h.length<h.highWaterMark&&(jt("maybeReadMore read 0"),m.read(0),v!==h.length);)v=h.length;h.readingMore=!1}an.prototype._read=function(m){this.emit("error",new Error("not implemented"))},an.prototype.pipe=function(m,h){var v=this,x=this._readableState;switch(x.pipesCount){case 0:x.pipes=m;break;case 1:x.pipes=[x.pipes,m];break;default:x.pipes.push(m);break}x.pipesCount+=1,jt("pipe count=%d opts=%j",x.pipesCount,h);var k=!h||h.end!==!1,D=k?ue:We;x.endEmitted?_n(D):v.once("end",D),m.on("unpipe",M);function M(Vl){jt("onunpipe"),Vl===v&&We()}function ue(){jt("onend"),m.end()}var Ee=cde(v);m.on("drain",Ee);var Ue=!1;function We(){jt("cleanup"),m.removeListener("close",$r),m.removeListener("finish",qu),m.removeListener("drain",Ee),m.removeListener("error",Bt),m.removeListener("unpipe",M),v.removeListener("end",ue),v.removeListener("end",We),v.removeListener("data",Xt),Ue=!0,x.awaitDrain&&(!m._writableState||m._writableState.needDrain)&&Ee()}var tt=!1;v.on("data",Xt);function Xt(Vl){jt("ondata"),tt=!1;var xpe=m.write(Vl);xpe===!1&&!tt&&((x.pipesCount===1&&x.pipes===m||x.pipesCount>1&&L9(x.pipes,m)!==-1)&&!Ue&&(jt("false write response, pause",v._readableState.awaitDrain),v._readableState.awaitDrain++,tt=!0),v.pause())}function Bt(Vl){jt("onerror",Vl),qb(),m.removeListener("error",Bt),nde(m,"error")===0&&m.emit("error",Vl)}tde(m,"error",Bt);function $r(){m.removeListener("finish",qu),qb()}m.once("close",$r);function qu(){jt("onfinish"),m.removeListener("close",$r),qb()}m.once("finish",qu);function qb(){jt("unpipe"),v.unpipe(m)}return m.emit("pipe",v),x.flowing||(jt("pipe resume"),v.resume()),m};function cde(m){return function(){var h=m._readableState;jt("pipeOnDrain",h.awaitDrain),h.awaitDrain&&h.awaitDrain--,h.awaitDrain===0&&m.listeners("data").length&&(h.flowing=!0,Eb(m))}}an.prototype.unpipe=function(m){var h=this._readableState;if(h.pipesCount===0)return this;if(h.pipesCount===1)return m&&m!==h.pipes?this:(m||(m=h.pipes),h.pipes=null,h.pipesCount=0,h.flowing=!1,m&&m.emit("unpipe",this),this);if(!m){var v=h.pipes,x=h.pipesCount;h.pipes=null,h.pipesCount=0,h.flowing=!1;for(var k=0;k<x;k++)v[k].emit("unpipe",this);return this}var D=L9(h.pipes,m);return D===-1?this:(h.pipes.splice(D,1),h.pipesCount-=1,h.pipesCount===1&&(h.pipes=h.pipes[0]),m.emit("unpipe",this),this)},an.prototype.on=function(m,h){var v=o.prototype.on.call(this,m,h);if(m==="data")this._readableState.flowing!==!1&&this.resume();else if(m==="readable"){var x=this._readableState;!x.endEmitted&&!x.readableListening&&(x.readableListening=x.needReadable=!0,x.emittedReadable=!1,x.reading?x.length&&Th(this):_n(ude,this))}return v},an.prototype.addListener=an.prototype.on;function ude(m){jt("readable nexttick read 0"),m.read(0)}an.prototype.resume=function(){var m=this._readableState;return m.flowing||(jt("resume"),m.flowing=!0,dde(this,m)),this};function dde(m,h){h.resumeScheduled||(h.resumeScheduled=!0,_n(fde,m,h))}function fde(m,h){h.reading||(jt("resume read 0"),m.read(0)),h.resumeScheduled=!1,h.awaitDrain=0,m.emit("resume"),Eb(m),h.flowing&&!h.reading&&m.read(0)}an.prototype.pause=function(){return jt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(jt("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Eb(m){var h=m._readableState;for(jt("flow",h.flowing);h.flowing&&m.read()!==null;);}an.prototype.wrap=function(m){var h=this._readableState,v=!1,x=this;m.on("end",function(){if(jt("wrapped end"),h.decoder&&!h.ended){var M=h.decoder.end();M&&M.length&&x.push(M)}x.push(null)}),m.on("data",function(M){if(jt("wrapped data"),h.decoder&&(M=h.decoder.write(M)),!(h.objectMode&&M==null)&&!(!h.objectMode&&(!M||!M.length))){var ue=x.push(M);ue||(v=!0,m.pause())}});for(var k in m)this[k]===void 0&&typeof m[k]=="function"&&(this[k]=function(M){return function(){return m[M].apply(m,arguments)}}(k));var D=["error","close","destroy","pause","resume"];return _de(D,function(M){m.on(M,x.emit.bind(x,M))}),x._read=function(M){jt("wrapped _read",M),v&&(v=!1,m.resume())},x},an._fromList=R9;function R9(m,h){if(h.length===0)return null;var v;return h.objectMode?v=h.buffer.shift():!m||m>=h.length?(h.decoder?v=h.buffer.join(""):h.buffer.length===1?v=h.buffer.head.data:v=h.buffer.concat(h.length),h.buffer.clear()):v=pde(m,h.buffer,h.decoder),v}function pde(m,h,v){var x;return m<h.head.data.length?(x=h.head.data.slice(0,m),h.head.data=h.head.data.slice(m)):m===h.head.data.length?x=h.shift():x=v?hde(m,h):gde(m,h),x}function hde(m,h){var v=h.head,x=1,k=v.data;for(m-=k.length;v=v.next;){var D=v.data,M=m>D.length?D.length:m;if(M===D.length?k+=D:k+=D.slice(0,m),m-=M,m===0){M===D.length?(++x,v.next?h.head=v.next:h.head=h.tail=null):(h.head=v,v.data=D.slice(M));break}++x}return h.length-=x,k}function gde(m,h){var v=j.allocUnsafe(m),x=h.head,k=1;for(x.data.copy(v),m-=x.data.length;x=x.next;){var D=x.data,M=m>D.length?D.length:m;if(D.copy(v,v.length-m,0,M),m-=M,m===0){M===D.length?(++k,x.next?h.head=x.next:h.head=h.tail=null):(h.head=x,x.data=D.slice(M));break}++k}return h.length-=k,v}function Ab(m){var h=m._readableState;if(h.length>0)throw new Error('"endReadable()" called on non-empty stream');h.endEmitted||(h.ended=!0,_n(mde,h,m))}function mde(m,h){!m.endEmitted&&m.length===0&&(m.endEmitted=!0,h.readable=!1,h.emit("end"))}function _de(m,h){for(var v=0,x=m.length;v<x;v++)h(m[v],v)}function L9(m,h){for(var v=0,x=m.length;v<x;v++)if(m[v]===h)return v;return-1}Un.WritableState=Tb,Cs(Un,o);function vde(){}function bde(m,h,v){this.chunk=m,this.encoding=h,this.callback=v,this.next=null}function Tb(m,h){Object.defineProperty(this,"buffer",{get:E9(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),m=m||{},this.objectMode=!!m.objectMode,h instanceof qi&&(this.objectMode=this.objectMode||!!m.writableObjectMode);var v=m.highWaterMark,x=this.objectMode?16:16*1024;this.highWaterMark=v||v===0?v:x,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var k=m.decodeStrings===!1;this.decodeStrings=!k,this.defaultEncoding=m.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(D){Ade(h,D)},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 $9(this)}Tb.prototype.getBuffer=function(){for(var h=this.bufferedRequest,v=[];h;)v.push(h),h=h.next;return v};function Un(m){if(!(this instanceof Un)&&!(this instanceof qi))return new Un(m);this._writableState=new Tb(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)}Un.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function yde(m,h){var v=new Error("write after end");m.emit("error",v),_n(h,v)}function wde(m,h,v,x){var k=!0,D=!1;return v===null?D=new TypeError("May not write null values to stream"):!j.isBuffer(v)&&typeof v!="string"&&v!==void 0&&!h.objectMode&&(D=new TypeError("Invalid non-string/buffer chunk")),D&&(m.emit("error",D),_n(x,D),k=!1),k}Un.prototype.write=function(m,h,v){var x=this._writableState,k=!1;return typeof h=="function"&&(v=h,h=null),j.isBuffer(m)?h="buffer":h||(h=x.defaultEncoding),typeof v!="function"&&(v=vde),x.ended?yde(this,v):wde(this,x,m,v)&&(x.pendingcb++,k=Sde(this,x,m,h,v)),k},Un.prototype.cork=function(){var m=this._writableState;m.corked++},Un.prototype.uncork=function(){var m=this._writableState;m.corked&&(m.corked--,!m.writing&&!m.corked&&!m.finished&&!m.bufferProcessing&&m.bufferedRequest&&F9(this,m))},Un.prototype.setDefaultEncoding=function(h){if(typeof h=="string"&&(h=h.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((h+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+h);return this._writableState.defaultEncoding=h,this};function Cde(m,h,v){return!m.objectMode&&m.decodeStrings!==!1&&typeof h=="string"&&(h=j.from(h,v)),h}function Sde(m,h,v,x,k){v=Cde(h,v,x),j.isBuffer(v)&&(x="buffer");var D=h.objectMode?1:v.length;h.length+=D;var M=h.length<h.highWaterMark;if(M||(h.needDrain=!0),h.writing||h.corked){var ue=h.lastBufferedRequest;h.lastBufferedRequest=new bde(v,x,k),ue?ue.next=h.lastBufferedRequest:h.bufferedRequest=h.lastBufferedRequest,h.bufferedRequestCount+=1}else kb(m,h,!1,D,v,x,k);return M}function kb(m,h,v,x,k,D,M){h.writelen=x,h.writecb=M,h.writing=!0,h.sync=!0,v?m._writev(k,h.onwrite):m._write(k,D,h.onwrite),h.sync=!1}function xde(m,h,v,x,k){--h.pendingcb,v?_n(k,x):k(x),m._writableState.errorEmitted=!0,m.emit("error",x)}function Ede(m){m.writing=!1,m.writecb=null,m.length-=m.writelen,m.writelen=0}function Ade(m,h){var v=m._writableState,x=v.sync,k=v.writecb;if(Ede(v),h)xde(m,v,x,h,k);else{var D=j9(v);!D&&!v.corked&&!v.bufferProcessing&&v.bufferedRequest&&F9(m,v),x?_n(M9,m,v,D,k):M9(m,v,D,k)}}function M9(m,h,v,x){v||Tde(m,h),h.pendingcb--,x(),U9(m,h)}function Tde(m,h){h.length===0&&h.needDrain&&(h.needDrain=!1,m.emit("drain"))}function F9(m,h){h.bufferProcessing=!0;var v=h.bufferedRequest;if(m._writev&&v&&v.next){var x=h.bufferedRequestCount,k=new Array(x),D=h.corkedRequestsFree;D.entry=v;for(var M=0;v;)k[M]=v,v=v.next,M+=1;kb(m,h,!0,h.length,k,"",D.finish),h.pendingcb++,h.lastBufferedRequest=null,D.next?(h.corkedRequestsFree=D.next,D.next=null):h.corkedRequestsFree=new $9(h)}else{for(;v;){var ue=v.chunk,Ee=v.encoding,Ue=v.callback,We=h.objectMode?1:ue.length;if(kb(m,h,!1,We,ue,Ee,Ue),v=v.next,h.writing)break}v===null&&(h.lastBufferedRequest=null)}h.bufferedRequestCount=0,h.bufferedRequest=v,h.bufferProcessing=!1}Un.prototype._write=function(m,h,v){v(new Error("not implemented"))},Un.prototype._writev=null,Un.prototype.end=function(m,h,v){var x=this._writableState;typeof m=="function"?(v=m,m=null,h=null):typeof h=="function"&&(v=h,h=null),m!=null&&this.write(m,h),x.corked&&(x.corked=1,this.uncork()),!x.ending&&!x.finished&&kde(this,x,v)};function j9(m){return m.ending&&m.length===0&&m.bufferedRequest===null&&!m.finished&&!m.writing}function B9(m,h){h.prefinished||(h.prefinished=!0,m.emit("prefinish"))}function U9(m,h){var v=j9(h);return v&&(h.pendingcb===0?(B9(m,h),h.finished=!0,m.emit("finish")):B9(m,h)),v}function kde(m,h,v){h.ending=!0,U9(m,h),v&&(h.finished?_n(v):m.once("finish",v)),h.ended=!0,m.writable=!1}function $9(m){var h=this;this.next=null,this.entry=null,this.finish=function(v){var x=h.entry;for(h.entry=null;x;){var k=x.callback;m.pendingcb--,k(v),x=x.next}m.corkedRequestsFree?m.corkedRequestsFree.next=h:m.corkedRequestsFree=h}}Cs(qi,an);for(var V9=Object.keys(Un.prototype),Pb=0;Pb<V9.length;Pb++){var Ob=V9[Pb];qi.prototype[Ob]||(qi.prototype[Ob]=Un.prototype[Ob])}function qi(m){if(!(this instanceof qi))return new qi(m);an.call(this,m),Un.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",Pde)}function Pde(){this.allowHalfOpen||this._writableState.ended||_n(Ode,this)}function Ode(m){m.end()}Cs(Ur,qi);function Nde(m){this.afterTransform=function(h,v){return Ide(m,h,v)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Ide(m,h,v){var x=m._transformState;x.transforming=!1;var k=x.writecb;if(!k)return m.emit("error",new Error("no writecb in Transform class"));x.writechunk=null,x.writecb=null,v!=null&&m.push(v),k(h);var D=m._readableState;D.reading=!1,(D.needReadable||D.length<D.highWaterMark)&&m._read(D.highWaterMark)}function Ur(m){if(!(this instanceof Ur))return new Ur(m);qi.call(this,m),this._transformState=new Nde(this);var h=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(v){q9(h,v)}):q9(h)})}Ur.prototype.push=function(m,h){return this._transformState.needTransform=!1,qi.prototype.push.call(this,m,h)},Ur.prototype._transform=function(m,h,v){throw new Error("Not implemented")},Ur.prototype._write=function(m,h,v){var x=this._transformState;if(x.writecb=v,x.writechunk=m,x.writeencoding=h,!x.transforming){var k=this._readableState;(x.needTransform||k.needReadable||k.length<k.highWaterMark)&&this._read(k.highWaterMark)}},Ur.prototype._read=function(m){var h=this._transformState;h.writechunk!==null&&h.writecb&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0};function q9(m,h){if(h)return m.emit("error",h);var v=m._writableState,x=m._transformState;if(v.length)throw new Error("Calling transform done when ws.length != 0");if(x.transforming)throw new Error("Calling transform done when still transforming");return m.push(null)}Cs($u,Ur);function $u(m){if(!(this instanceof $u))return new $u(m);Ur.call(this,m)}$u.prototype._transform=function(m,h,v){v(null,m)},Cs(zi,o),zi.Readable=an,zi.Writable=Un,zi.Duplex=qi,zi.Transform=Ur,zi.PassThrough=$u,zi.Stream=zi;function zi(){o.call(this)}zi.prototype.pipe=function(m,h){var v=this;function x(We){m.writable&&m.write(We)===!1&&v.pause&&v.pause()}v.on("data",x);function k(){v.readable&&v.resume&&v.resume()}m.on("drain",k),!m._isStdio&&(!h||h.end!==!1)&&(v.on("end",M),v.on("close",ue));var D=!1;function M(){D||(D=!0,m.end())}function ue(){D||(D=!0,typeof m.destroy=="function"&&m.destroy())}function Ee(We){if(Ue(),o.listenerCount(this,"error")===0)throw We}v.on("error",Ee),m.on("error",Ee);function Ue(){v.removeListener("data",x),m.removeListener("drain",k),v.removeListener("end",M),v.removeListener("close",ue),v.removeListener("error",Ee),m.removeListener("error",Ee),v.removeListener("end",Ue),v.removeListener("close",Ue),m.removeListener("close",Ue)}return v.on("end",Ue),v.on("close",Ue),m.on("close",Ue),m.emit("pipe",v),m};function Ss(m){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ss=function(h){return typeof h}:Ss=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},Ss(m)}function kh(m,h){if(!(m instanceof h))throw new TypeError("Cannot call a class as a function")}function z9(m,h){for(var v=0;v<h.length;v++){var x=h[v];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(m,x.key,x)}}function Ph(m,h,v){return h&&z9(m.prototype,h),v&&z9(m,v),m}function Oh(m,h,v){return h in m?Object.defineProperty(m,h,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[h]=v,m}function H9(m){for(var h=1;h<arguments.length;h++){var v=arguments[h]!=null?arguments[h]:{},x=Object.keys(v);typeof Object.getOwnPropertySymbols=="function"&&(x=x.concat(Object.getOwnPropertySymbols(v).filter(function(k){return Object.getOwnPropertyDescriptor(v,k).enumerable}))),x.forEach(function(k){Oh(m,k,v[k])})}return m}function G9(m,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(h&&h.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),h&&Nb(m,h)}function Nh(m){return Nh=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},Nh(m)}function Nb(m,h){return Nb=Object.setPrototypeOf||function(x,k){return x.__proto__=k,x},Nb(m,h)}function Dde(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function W9(m,h){return h&&(typeof h=="object"||typeof h=="function")?h:Dde(m)}function K9(m){return Mde(m)||J9(m)||jde()}function Rde(m){return Lde(m)||J9(m)||Fde()}function Lde(m){if(Array.isArray(m)){for(var h=0,v=new Array(m.length);h<m.length;h++)v[h]=m[h];return v}}function Mde(m){if(Array.isArray(m))return m}function J9(m){if(Symbol.iterator in Object(m)||Object.prototype.toString.call(m)==="[object Arguments]")return Array.from(m)}function Fde(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function jde(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var Ih;function Bde(){if(typeof Ih=="undefined"){var m=new ArrayBuffer(2),h=new Uint8Array(m),v=new Uint16Array(m);if(h[0]=1,h[1]=2,v[0]===258)Ih="BE";else if(v[0]===513)Ih="LE";else throw new Error("unable to figure out endianess")}return Ih}function Ude(){return typeof C.location!="undefined"?C.location.hostname:""}function $de(){return[]}function Vde(){return 0}function qde(){return Number.MAX_VALUE}function zde(){return Number.MAX_VALUE}function Hde(){return[]}function Gde(){return"Browser"}function Wde(){return typeof C.navigator!="undefined"?C.navigator.appVersion:""}function Kde(){}function Jde(){}function Y9(){return"/tmp"}var Yde=Y9,Xde=`
|
|
132
|
+
`,Zde={EOL:Xde,tmpdir:Yde,tmpDir:Y9,networkInterfaces:Kde,getNetworkInterfaces:Jde,release:Wde,type:Gde,cpus:Hde,totalmem:zde,freemem:qde,uptime:Vde,loadavg:$de,hostname:Ude,endianness:Bde},Dh=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Vs!="undefined"?Vs:typeof self!="undefined"?self:{},Qde="Expected a function",X9="__lodash_hash_undefined__",Z9=1/0,efe="[object Function]",tfe="[object GeneratorFunction]",nfe="[object Symbol]",ife=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rfe=/^\w*$/,sfe=/^\./,ofe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,afe=/[\\^$.*+?()[\]{}|]/g,lfe=/\\(\\)?/g,cfe=/^\[object .+?Constructor\]$/,ufe=typeof Dh=="object"&&Dh&&Dh.Object===Object&&Dh,dfe=typeof self=="object"&&self&&self.Object===Object&&self,Ib=ufe||dfe||Function("return this")();function ffe(m,h){return m==null?void 0:m[h]}function pfe(m){var h=!1;if(m!=null&&typeof m.toString!="function")try{h=!!(m+"")}catch(v){}return h}var hfe=Array.prototype,gfe=Function.prototype,Q9=Object.prototype,Db=Ib["__core-js_shared__"],eA=function(){var m=/[^.]+$/.exec(Db&&Db.keys&&Db.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),tA=gfe.toString,Rb=Q9.hasOwnProperty,nA=Q9.toString,mfe=RegExp("^"+tA.call(Rb).replace(afe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),iA=Ib.Symbol,_fe=hfe.splice,vfe=oA(Ib,"Map"),Vu=oA(Object,"create"),rA=iA?iA.prototype:void 0,sA=rA?rA.toString:void 0;function fa(m){var h=-1,v=m?m.length:0;for(this.clear();++h<v;){var x=m[h];this.set(x[0],x[1])}}function bfe(){this.__data__=Vu?Vu(null):{}}function yfe(m){return this.has(m)&&delete this.__data__[m]}function wfe(m){var h=this.__data__;if(Vu){var v=h[m];return v===X9?void 0:v}return Rb.call(h,m)?h[m]:void 0}function Cfe(m){var h=this.__data__;return Vu?h[m]!==void 0:Rb.call(h,m)}function Sfe(m,h){var v=this.__data__;return v[m]=Vu&&h===void 0?X9:h,this}fa.prototype.clear=bfe,fa.prototype.delete=yfe,fa.prototype.get=wfe,fa.prototype.has=Cfe,fa.prototype.set=Sfe;function Ul(m){var h=-1,v=m?m.length:0;for(this.clear();++h<v;){var x=m[h];this.set(x[0],x[1])}}function xfe(){this.__data__=[]}function Efe(m){var h=this.__data__,v=Rh(h,m);if(v<0)return!1;var x=h.length-1;return v==x?h.pop():_fe.call(h,v,1),!0}function Afe(m){var h=this.__data__,v=Rh(h,m);return v<0?void 0:h[v][1]}function Tfe(m){return Rh(this.__data__,m)>-1}function kfe(m,h){var v=this.__data__,x=Rh(v,m);return x<0?v.push([m,h]):v[x][1]=h,this}Ul.prototype.clear=xfe,Ul.prototype.delete=Efe,Ul.prototype.get=Afe,Ul.prototype.has=Tfe,Ul.prototype.set=kfe;function pa(m){var h=-1,v=m?m.length:0;for(this.clear();++h<v;){var x=m[h];this.set(x[0],x[1])}}function Pfe(){this.__data__={hash:new fa,map:new(vfe||Ul),string:new fa}}function Ofe(m){return Lh(this,m).delete(m)}function Nfe(m){return Lh(this,m).get(m)}function Ife(m){return Lh(this,m).has(m)}function Dfe(m,h){return Lh(this,m).set(m,h),this}pa.prototype.clear=Pfe,pa.prototype.delete=Ofe,pa.prototype.get=Nfe,pa.prototype.has=Ife,pa.prototype.set=Dfe;function Rh(m,h){for(var v=m.length;v--;)if(zfe(m[v][0],h))return v;return-1}function Rfe(m,h){h=jfe(h,m)?[h]:Ffe(h);for(var v=0,x=h.length;m!=null&&v<x;)m=m[Vfe(h[v++])];return v&&v==x?m:void 0}function Lfe(m){if(!lA(m)||Ufe(m))return!1;var h=Hfe(m)||pfe(m)?mfe:cfe;return h.test(qfe(m))}function Mfe(m){if(typeof m=="string")return m;if(Mb(m))return sA?sA.call(m):"";var h=m+"";return h=="0"&&1/m==-Z9?"-0":h}function Ffe(m){return aA(m)?m:$fe(m)}function Lh(m,h){var v=m.__data__;return Bfe(h)?v[typeof h=="string"?"string":"hash"]:v.map}function oA(m,h){var v=ffe(m,h);return Lfe(v)?v:void 0}function jfe(m,h){if(aA(m))return!1;var v=typeof m;return v=="number"||v=="symbol"||v=="boolean"||m==null||Mb(m)?!0:rfe.test(m)||!ife.test(m)||h!=null&&m in Object(h)}function Bfe(m){var h=typeof m;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?m!=="__proto__":m===null}function Ufe(m){return!!eA&&eA in m}var $fe=Lb(function(m){m=Wfe(m);var h=[];return sfe.test(m)&&h.push(""),m.replace(ofe,function(v,x,k,D){h.push(k?D.replace(lfe,"$1"):x||v)}),h});function Vfe(m){if(typeof m=="string"||Mb(m))return m;var h=m+"";return h=="0"&&1/m==-Z9?"-0":h}function qfe(m){if(m!=null){try{return tA.call(m)}catch(h){}try{return m+""}catch(h){}}return""}function Lb(m,h){if(typeof m!="function"||h&&typeof h!="function")throw new TypeError(Qde);var v=function(){var x=arguments,k=h?h.apply(this,x):x[0],D=v.cache;if(D.has(k))return D.get(k);var M=m.apply(this,x);return v.cache=D.set(k,M),M};return v.cache=new(Lb.Cache||pa),v}Lb.Cache=pa;function zfe(m,h){return m===h||m!==m&&h!==h}var aA=Array.isArray;function Hfe(m){var h=lA(m)?nA.call(m):"";return h==efe||h==tfe}function lA(m){var h=typeof m;return!!m&&(h=="object"||h=="function")}function Gfe(m){return!!m&&typeof m=="object"}function Mb(m){return typeof m=="symbol"||Gfe(m)&&nA.call(m)==nfe}function Wfe(m){return m==null?"":Mfe(m)}function Kfe(m,h,v){var x=m==null?void 0:Rfe(m,h);return x===void 0?v:x}var Fb=Kfe;function Jfe(m,h,v){return m[h]===void 0?v:m[h]}function cA(m,h,v){var x=Array.isArray(h)?h:h.split("."),k=K9(x),D=k[0],M=k.slice(1);return H9({},m,Oh({},D,x.length>1?cA(m[D]||{},M,v):v))}function uA(m,h){var v=Array.isArray(h)?h:h.split("."),x=K9(v),k=x[0],D=x.slice(1);return Ss(m[k])!=="object"?m:v.length===1?Object.keys(m).filter(function(M){return M!==k}).reduce(function(M,ue){return Object.assign(M,Oh({},ue,m[ue]))},{}):Object.keys(m).reduce(function(M,ue){return H9({},M,Oh({},ue,ue!==k?m[ue]:uA(m[k],D)))},{})}function Yfe(m,h){try{return m.push.apply(m,Rde(h)),m}catch(v){return m.concat(h)}}function Xfe(m,h){var v=!0;return m.reduce(function(x,k){return k==null&&(k=""),v?(v=!1,"".concat(k)):"".concat(x).concat(h).concat(k)},"")}var xs={getProp:Jfe,setProp:cA,unsetProp:uA,fastJoin:Xfe,flattenReducer:Yfe},dA=xs.getProp,fA=xs.fastJoin,Zfe=xs.flattenReducer,Qfe=function(){function m(h){kh(this,m),this.opts=this.preprocessOpts(h)}return Ph(m,[{key:"preprocessOpts",value:function(v){var x=Object.assign({},v);return x.transforms=Array.isArray(x.transforms)?x.transforms:x.transforms?[x.transforms]:[],x.delimiter=x.delimiter||",",x.eol=x.eol||Zde.EOL,x.quote=typeof x.quote=="string"?x.quote:'"',x.escapedQuote=typeof x.escapedQuote=="string"?x.escapedQuote:"".concat(x.quote).concat(x.quote),x.header=x.header!==!1,x.includeEmptyRows=x.includeEmptyRows||!1,x.withBOM=x.withBOM||!1,x}},{key:"preprocessFieldsInfo",value:function(v){var x=this;return v.map(function(k){if(typeof k=="string")return{label:k,value:k.includes(".")||k.includes("[")?function(Ee){return Fb(Ee,k,x.opts.defaultValue)}:function(Ee){return dA(Ee,k,x.opts.defaultValue)}};if(Ss(k)==="object"){var D="default"in k?k.default:x.opts.defaultValue;if(typeof k.value=="string")return{label:k.label||k.value,value:k.value.includes(".")||k.value.includes("[")?function(Ee){return Fb(Ee,k.value,D)}:function(Ee){return dA(Ee,k.value,D)}};if(typeof k.value=="function"){var M=k.label||k.value.name||"",ue={label:M,default:D};return{label:M,value:function(Ue){var We=k.value(Ue,ue);return We==null?D:We}}}}throw new Error("Invalid field info option. "+JSON.stringify(k))})}},{key:"getHeader",value:function(){var v=this;return fA(this.opts.fields.map(function(x){return v.processValue(x.label)}),this.opts.delimiter)}},{key:"preprocessRow",value:function(v){return this.opts.transforms.reduce(function(x,k){return x.map(function(D){return k(D)}).reduce(Zfe,[])},[v])}},{key:"processRow",value:function(v){var x=this;if(v){var k=this.opts.fields.map(function(D){return x.processCell(v,D)});if(!(!this.opts.includeEmptyRows&&k.every(function(D){return D===void 0})))return fA(k,this.opts.delimiter)}}},{key:"processCell",value:function(v,x){return this.processValue(x.value(v))}},{key:"processValue",value:function(v){if(v!=null){var x=Ss(v);if(x!=="boolean"&&x!=="number"&&x!=="string"){if(v=JSON.stringify(v),v===void 0)return;v[0]==='"'&&(v=v.replace(/^"(.+)"$/,"$1"))}return typeof v=="string"&&(this.opts.excelStrings?(v.includes(this.opts.quote)&&(v=v.replace(new RegExp(this.opts.quote,"g"),"".concat(this.opts.escapedQuote).concat(this.opts.escapedQuote))),v='"=""'.concat(v,'"""')):(v.includes(this.opts.quote)&&(v=v.replace(new RegExp(this.opts.quote,"g"),this.opts.escapedQuote)),v="".concat(this.opts.quote).concat(v).concat(this.opts.quote))),v}}}]),m}(),jb=Qfe,epe=xs.fastJoin,tpe=xs.flattenReducer,npe=function(m){G9(h,m);function h(v){var x;return kh(this,h),x=W9(this,Nh(h).call(this,v)),x.opts.fields&&(x.opts.fields=x.preprocessFieldsInfo(x.opts.fields)),x}return Ph(h,[{key:"parse",value:function(x){var k=this.preprocessData(x);this.opts.fields||(this.opts.fields=k.reduce(function(Ee,Ue){return Object.keys(Ue).forEach(function(We){Ee.includes(We)||Ee.push(We)}),Ee},[]),this.opts.fields=this.preprocessFieldsInfo(this.opts.fields));var D=this.opts.header?this.getHeader():"",M=this.processData(k),ue=(this.opts.withBOM?"\uFEFF":"")+D+(D&&M?this.opts.eol:"")+M;return ue}},{key:"preprocessData",value:function(x){var k=this,D=Array.isArray(x)?x:[x];if(!this.opts.fields&&(D.length===0||Ss(D[0])!=="object"))throw new Error('Data should not be empty or the "fields" option should be included');return this.opts.transforms.length===0?D:D.map(function(M){return k.preprocessRow(M)}).reduce(tpe,[])}},{key:"processData",value:function(x){var k=this;return epe(x.map(function(D){return k.processRow(D)}).filter(function(D){return D}),this.opts.eol)}}]),h}(jb),pA=npe,xt={},hA=xt.LEFT_BRACE=1,Mh=xt.RIGHT_BRACE=2,gA=xt.LEFT_BRACKET=3,Bb=xt.RIGHT_BRACKET=4,Fh=xt.COLON=5,jh=xt.COMMA=6,mA=xt.TRUE=7,_A=xt.FALSE=8,vA=xt.NULL=9,Bh=xt.STRING=10,bA=xt.NUMBER=11,ha=xt.START=17,yA=xt.STOP=18,wA=xt.TRUE1=33,CA=xt.TRUE2=34,SA=xt.TRUE3=35,xA=xt.FALSE1=49,EA=xt.FALSE2=50,AA=xt.FALSE3=51,TA=xt.FALSE4=52,kA=xt.NULL1=65,PA=xt.NULL2=66,OA=xt.NULL3=67,NA=xt.NUMBER1=81,Ub=xt.NUMBER3=83,fr=xt.STRING1=97,IA=xt.STRING2=98,DA=xt.STRING3=99,ipe=xt.STRING4=100,rpe=xt.STRING5=101,RA=xt.STRING6=102,$l=xt.VALUE=113,$b=xt.KEY=114,Uh=xt.OBJECT=129,$h=xt.ARRAY=130,spe="\\".charCodeAt(0),ope="/".charCodeAt(0),ape="\b".charCodeAt(0),lpe="\f".charCodeAt(0),cpe=`
|
|
133
|
+
`.charCodeAt(0),upe="\r".charCodeAt(0),dpe=" ".charCodeAt(0),Vh=64*1024;function lo(){this.tState=ha,this.value=void 0,this.string=void 0,this.stringBuffer=j.alloc?j.alloc(Vh):new j(Vh),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=$l,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new j(2),3:new j(3),4:new j(4)},this.offset=-1}lo.toknam=function(m){for(var h=Object.keys(xt),v=0,x=h.length;v<x;v++){var k=h[v];if(xt[k]===m)return k}return m&&"0x"+m.toString(16)};var Hi=lo.prototype;Hi.onError=function(m){throw m},Hi.charError=function(m,h){this.tState=yA,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(m[h]))+" at position "+h+" in state "+lo.toknam(this.tState)))},Hi.appendStringChar=function(m){this.stringBufferOffset>=Vh&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=m},Hi.appendStringBuf=function(m,h,v){var x=m.length;typeof h=="number"&&(typeof v=="number"?v<0?x=m.length-h+v:x=v-h:x=m.length-h),x<0&&(x=0),this.stringBufferOffset+x>Vh&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),m.copy(this.stringBuffer,this.stringBufferOffset,h,v),this.stringBufferOffset+=x},Hi.write=function(m){typeof m=="string"&&(m=new j(m));for(var h,v=0,x=m.length;v<x;v++)if(this.tState===ha){if(h=m[v],this.offset++,h===123)this.onToken(hA,"{");else if(h===125)this.onToken(Mh,"}");else if(h===91)this.onToken(gA,"[");else if(h===93)this.onToken(Bb,"]");else if(h===58)this.onToken(Fh,":");else if(h===44)this.onToken(jh,",");else if(h===116)this.tState=wA;else if(h===102)this.tState=xA;else if(h===110)this.tState=kA;else if(h===34)this.string="",this.stringBufferOffset=0,this.tState=fr;else if(h===45)this.string="-",this.tState=NA;else if(h>=48&&h<64)this.string=String.fromCharCode(h),this.tState=Ub;else if(!(h===32||h===9||h===10||h===13))return this.charError(m,v)}else if(this.tState===fr)if(h=m[v],this.bytes_remaining>0){for(var k=0;k<this.bytes_remaining;k++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+k]=m[k];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,v=v+k-1}else if(this.bytes_remaining===0&&h>=128){if(h<=193||h>244)return this.onError(new Error("Invalid UTF-8 character at position "+v+" in state "+lo.toknam(this.tState)));if(h>=194&&h<=223&&(this.bytes_in_sequence=2),h>=224&&h<=239&&(this.bytes_in_sequence=3),h>=240&&h<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+v>m.length){for(var D=0;D<=m.length-1-v;D++)this.temp_buffs[this.bytes_in_sequence][D]=m[v+D];this.bytes_remaining=v+this.bytes_in_sequence-m.length,v=m.length-1}else this.appendStringBuf(m,v,v+this.bytes_in_sequence),v=v+this.bytes_in_sequence-1}else if(h===34)this.tState=ha,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(Bh,this.string),this.offset+=j.byteLength(this.string,"utf8")+1,this.string=void 0;else if(h===92)this.tState=IA;else if(h>=32)this.appendStringChar(h);else return this.charError(m,v);else if(this.tState===IA)if(h=m[v],h===34)this.appendStringChar(h),this.tState=fr;else if(h===92)this.appendStringChar(spe),this.tState=fr;else if(h===47)this.appendStringChar(ope),this.tState=fr;else if(h===98)this.appendStringChar(ape),this.tState=fr;else if(h===102)this.appendStringChar(lpe),this.tState=fr;else if(h===110)this.appendStringChar(cpe),this.tState=fr;else if(h===114)this.appendStringChar(upe),this.tState=fr;else if(h===116)this.appendStringChar(dpe),this.tState=fr;else if(h===117)this.unicode="",this.tState=DA;else return this.charError(m,v);else if(this.tState===DA||this.tState===ipe||this.tState===rpe||this.tState===RA)if(h=m[v],h>=48&&h<64||h>64&&h<=70||h>96&&h<=102){if(this.unicode+=String.fromCharCode(h),this.tState++===RA){var M=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&M>=56320&&M<57343+1?(this.appendStringBuf(new j(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 j(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new j(String.fromCharCode(M)))),this.tState=fr}}else return this.charError(m,v);else if(this.tState===NA||this.tState===Ub)switch(h=m[v],h){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(h),this.tState=Ub;break;default:this.tState=ha;var ue=Number(this.string);if(isNaN(ue))return this.charError(m,v);this.string.match(/[0-9]+/)==this.string&&ue.toString()!=this.string?this.onToken(Bh,this.string):this.onToken(bA,ue),this.offset+=this.string.length-1,this.string=void 0,v--;break}else if(this.tState===wA)if(m[v]===114)this.tState=CA;else return this.charError(m,v);else if(this.tState===CA)if(m[v]===117)this.tState=SA;else return this.charError(m,v);else if(this.tState===SA)if(m[v]===101)this.tState=ha,this.onToken(mA,!0),this.offset+=3;else return this.charError(m,v);else if(this.tState===xA)if(m[v]===97)this.tState=EA;else return this.charError(m,v);else if(this.tState===EA)if(m[v]===108)this.tState=AA;else return this.charError(m,v);else if(this.tState===AA)if(m[v]===115)this.tState=TA;else return this.charError(m,v);else if(this.tState===TA)if(m[v]===101)this.tState=ha,this.onToken(_A,!1),this.offset+=4;else return this.charError(m,v);else if(this.tState===kA)if(m[v]===117)this.tState=PA;else return this.charError(m,v);else if(this.tState===PA)if(m[v]===108)this.tState=OA;else return this.charError(m,v);else if(this.tState===OA)if(m[v]===108)this.tState=ha,this.onToken(vA,null),this.offset+=3;else return this.charError(m,v)},Hi.onToken=function(m,h){},Hi.parseError=function(m,h){this.tState=yA,this.onError(new Error("Unexpected "+lo.toknam(m)+(h?"("+JSON.stringify(h)+")":"")+" in state "+lo.toknam(this.state)))},Hi.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},Hi.pop=function(){var m=this.value,h=this.stack.pop();this.value=h.value,this.key=h.key,this.mode=h.mode,this.emit(m),this.mode||(this.state=$l)},Hi.emit=function(m){this.mode&&(this.state=jh),this.onValue(m)},Hi.onValue=function(m){},Hi.onToken=function(m,h){if(this.state===$l)if(m===Bh||m===bA||m===mA||m===_A||m===vA)this.value&&(this.value[this.key]=h),this.emit(h);else if(m===hA)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=$b,this.mode=Uh;else if(m===gA)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=$h,this.state=$l;else if(m===Mh)if(this.mode===Uh)this.pop();else return this.parseError(m,h);else if(m===Bb)if(this.mode===$h)this.pop();else return this.parseError(m,h);else return this.parseError(m,h);else if(this.state===$b)if(m===Bh)this.key=h,this.state=Fh;else if(m===Mh)this.pop();else return this.parseError(m,h);else if(this.state===Fh)if(m===Fh)this.state=$l;else return this.parseError(m,h);else if(this.state===jh)if(m===jh)this.mode===$h?(this.key++,this.state=$l):this.mode===Uh&&(this.state=$b);else if(m===Bb&&this.mode===$h||m===Mh&&this.mode===Uh)this.pop();else return this.parseError(m,h);else return this.parseError(m,h)},lo.C=xt;var qh=lo,fpe=zi.Transform,ppe=function(m){G9(h,m);function h(v,x){var k;return kh(this,h),k=W9(this,Nh(h).call(this,x)),Object.getOwnPropertyNames(jb.prototype).forEach(function(D){return k[D]=jb.prototype[D]}),k.opts=k.preprocessOpts(v),k._data="",k._hasWritten=!1,k._readableState.objectMode?k.initObjectModeParse():k.opts.ndjson?k.initNDJSONParse():k.initJSONParser(),k.opts.withBOM&&k.push("\uFEFF"),k.opts.fields&&(k.opts.fields=k.preprocessFieldsInfo(k.opts.fields),k.pushHeader()),k}return Ph(h,[{key:"initObjectModeParse",value:function(){var x=this;this.parser={write:function(D){x.pushLine(D)},getPendingData:function(){}}}},{key:"initNDJSONParse",value:function(){var x=this;this.parser={_data:"",write:function(D){this._data+=D.toString();var M=this._data.split(`
|
|
134
|
+
`).map(function(Ee){return Ee.trim()}).filter(function(Ee){return Ee!==""}),ue=!1;M.forEach(function(Ee,Ue){try{x.pushLine(JSON.parse(Ee))}catch(We){Ue===M.length-1?ue=!0:(We.message="Invalid JSON (".concat(Ee,")"),x.emit("error",We))}}),this._data=ue?this._data.slice(this._data.lastIndexOf(`
|
|
135
|
+
`)):""},getPendingData:function(){return this._data}}}},{key:"initJSONParser",value:function(){var x=this;this.parser=new qh,this.parser.onValue=function(k){this.stack.length===this.depthToEmit&&x.pushLine(k)},this.parser._onToken=this.parser.onToken,this.parser.onToken=function(k,D){x.parser._onToken(k,D),this.stack.length===0&&!x.opts.fields&&this.mode!==qh.C.ARRAY&&this.mode!==qh.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===qh.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(k){k.message.includes("Unexpected")&&(k.message="Invalid JSON (".concat(k.message,")")),x.emit("error",k)}}},{key:"_transform",value:function(x,k,D){this.parser.write(x),D()}},{key:"_flush",value:function(x){this.parser.getPendingData()&&x(new Error("Invalid data received from stdin",this.parser.getPendingData())),x()}},{key:"pushHeader",value:function(){if(this.opts.header){var x=this.getHeader();this.emit("header",x),this.push(x),this._hasWritten=!0}}},{key:"pushLine",value:function(x){var k=this,D=this.preprocessRow(x);this._hasWritten||(this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(Object.keys(D[0])),this.pushHeader()),D.forEach(function(M){var ue=k.processRow(M,k.opts);ue!==void 0&&(k.emit("line",ue),k.push(k._hasWritten?k.opts.eol+ue:ue),k._hasWritten=!0)})}}]),h}(fpe),LA=ppe,hpe=zi.Transform,gpe=xs.fastJoin,mpe=function(){function m(h,v){kh(this,m),this.input=new hpe(v),this.input._read=function(){},this.transform=new LA(h,v),this.processor=this.input.pipe(this.transform)}return Ph(m,[{key:"fromInput",value:function(v){if(this._input)throw new Error("Async parser already has an input.");return this._input=v,this.input=this._input.pipe(this.processor),this}},{key:"throughTransform",value:function(v){if(this._output)throw new Error("Can't add transforms once an output has been added.");return this.processor=this.processor.pipe(v),this}},{key:"toOutput",value:function(v){if(this._output)throw new Error("Async parser already has an output.");return this._output=v,this.processor=this.processor.pipe(v),this}},{key:"promise",value:function(){var v=this,x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return new Promise(function(k,D){if(!x){v.processor.on("finish",function(){return k()}).on("error",function(ue){return D(ue)});return}var M=[];v.processor.on("data",function(ue){return M.push(ue.toString())}).on("finish",function(){return k(gpe(M,""))}).on("error",function(ue){return D(ue)})})}}]),m}(),MA=mpe;function _pe(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=m.objects,v=h===void 0?!0:h,x=m.arrays,k=x===void 0?!1:x,D=m.separator,M=D===void 0?".":D;function ue(Ee,Ue,We){return Object.keys(Ee).forEach(function(tt){var Xt=We?"".concat(We).concat(M).concat(tt):tt,Bt=Ee[tt];if(v&&Ss(Bt)==="object"&&Bt!==null&&!Array.isArray(Bt)&&Object.prototype.toString.call(Bt.toJSON)!=="[object Function]"&&Object.keys(Bt).length){ue(Bt,Ue,Xt);return}if(k&&Array.isArray(Bt)){ue(Bt,Ue,Xt);return}Ue[Xt]=Bt}),Ue}return function(Ee){return ue(Ee,{})}}var vpe=_pe,bpe=xs.setProp,ype=xs.unsetProp,FA=xs.flattenReducer;function Vb(m,h){return Object.keys(m).reduce(function(v,x){var k=h?"".concat(h,".").concat(x):x,D=m[x];return Ss(D)==="object"&&D!==null&&!Array.isArray(D)&&Object.prototype.toString.call(D.toJSON)!=="[object Function]"&&Object.keys(D).length?v=v.concat(Vb(D,k)):Array.isArray(D)&&(v.push(k),v=v.concat(D.map(function(M){return Vb(M,k)}).reduce(FA,[]).filter(function(M,ue,Ee){return Ee.indexOf(M)!==ue}))),v},[])}function wpe(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=m.paths,v=h===void 0?void 0:h,x=m.blankOut,k=x===void 0?!1:x;function D(M,ue){return M.map(function(Ee){var Ue=Fb(Ee,ue);return Array.isArray(Ue)?Ue.length?Ue.map(function(We,tt){var Xt=k&&tt>0?{}:Ee;return bpe(Xt,ue,We)}):ype(Ee,ue):Ee}).reduce(FA,[])}return v=Array.isArray(v)?v:v?[v]:void 0,function(M){return(v||Vb(M)).reduce(D,[M])}}var Cpe=wpe,jA=zi.Readable,BA=pA,UA=MA,$A=LA,VA=function(h,v){return new pA(v).parse(h)},qA=function(h,v,x){try{h instanceof jA||(x=Object.assign({},x,{objectMode:!0}));var k=new MA(v,x),D=k.promise();return Array.isArray(h)?(h.forEach(function(M){return k.input.push(M)}),k.input.push(null)):h instanceof jA?k.fromInput(h):(k.input.push(h),k.input.push(null)),D}catch(M){return Promise.reject(M)}},zA={flatten:vpe,unwind:Cpe},Spe={Parser:BA,AsyncParser:UA,Transform:$A,parse:VA,parseAsync:qA,transforms:zA};n.AsyncParser=UA,n.Parser=BA,n.Transform=$A,n.default=Spe,n.parse=VA,n.parseAsync=qA,n.transforms=zA,Object.defineProperty(n,"__esModule",{value:!0})})})(n0,n0.exports);var yJ=n0.exports;const i0={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"}}},PS={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 wJ{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=PS.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,p)=>{p===0?u[f]=d:p===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 i0.entitys.filter(r=>r.type===t)}generateLinksRowsCsv(t){const n=i0.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 yJ.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 OS=typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},Or=[],Ii=[],CJ=typeof Uint8Array!="undefined"?Uint8Array:Array,r0=!1;function NS(){r0=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)Or[t]=e[t],Ii[e.charCodeAt(t)]=t;Ii["-".charCodeAt(0)]=62,Ii["_".charCodeAt(0)]=63}function SJ(e){r0||NS();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 CJ(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 xJ(e){return Or[e>>18&63]+Or[e>>12&63]+Or[e>>6&63]+Or[e&63]}function EJ(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(xJ(r));return s.join("")}function IS(e){r0||NS();for(var t,n=e.length,r=n%3,s="",o=[],a=16383,l=0,c=n-r;l<c;l+=a)o.push(EJ(e,l,l+a>c?c:l+a));return r===1?(t=e[n-1],s+=Or[t>>2],s+=Or[t<<4&63],s+="=="):r===2&&(t=(e[n-2]<<8)+e[n-1],s+=Or[t>>10],s+=Or[t>>4&63],s+=Or[t<<2&63],s+="="),o.push(s),o.join("")}function Ff(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,p=n?-1:1,g=e[t+f];for(f+=p,o=g&(1<<-d)-1,g>>=-d,d+=l;d>0;o=o*256+e[t+f],f+=p,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=r;d>0;a=a*256+e[t+f],f+=p,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 DS(e,t,n,r,s,o){var a,l,c,u=o*8-s-1,d=(1<<u)-1,f=d>>1,p=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=r?0:o-1,_=r?1:-1,b=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+=p/c:t+=p*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+=_,l/=256,s-=8);for(a=a<<s|l,u+=s;u>0;e[n+g]=a&255,g+=_,a/=256,u-=8);e[n+g-_]|=b*128}var AJ={}.toString,RS=Array.isArray||function(e){return AJ.call(e)=="[object Array]"},TJ=50;be.TYPED_ARRAY_SUPPORT=OS.TYPED_ARRAY_SUPPORT!==void 0?OS.TYPED_ARRAY_SUPPORT:!0,jf();function jf(){return be.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ds(e,t){if(jf()<t)throw new RangeError("Invalid typed array length");return be.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=be.prototype):(e===null&&(e=new be(t)),e.length=t),e}function be(e,t,n){if(!be.TYPED_ARRAY_SUPPORT&&!(this instanceof be))return new be(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 s0(this,e)}return LS(this,e,t,n)}be.poolSize=8192,be._augment=function(e){return e.__proto__=be.prototype,e};function LS(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?OJ(e,t,n,r):typeof t=="string"?PJ(e,t,n):NJ(e,t)}be.from=function(e,t,n){return LS(null,e,t,n)},be.TYPED_ARRAY_SUPPORT&&(be.prototype.__proto__=Uint8Array.prototype,be.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&be[Symbol.species]);function MS(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 kJ(e,t,n,r){return MS(t),t<=0?ds(e,t):n!==void 0?typeof r=="string"?ds(e,t).fill(n,r):ds(e,t).fill(n):ds(e,t)}be.alloc=function(e,t,n){return kJ(null,e,t,n)};function s0(e,t){if(MS(t),e=ds(e,t<0?0:a0(t)|0),!be.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}be.allocUnsafe=function(e){return s0(null,e)},be.allocUnsafeSlow=function(e){return s0(null,e)};function PJ(e,t,n){if((typeof n!="string"||n==="")&&(n="utf8"),!be.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=FS(t,n)|0;e=ds(e,r);var s=e.write(t,n);return s!==r&&(e=e.slice(0,s)),e}function o0(e,t){var n=t.length<0?0:a0(t.length)|0;e=ds(e,n);for(var r=0;r<n;r+=1)e[r]=t[r]&255;return e}function OJ(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),be.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=be.prototype):e=o0(e,t),e}function NJ(e,t){if(Nr(t)){var n=a0(t.length)|0;return e=ds(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"||YJ(t.length)?ds(e,0):o0(e,t);if(t.type==="Buffer"&&RS(t.data))return o0(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function a0(e){if(e>=jf())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+jf().toString(16)+" bytes");return e|0}be.isBuffer=Di;function Nr(e){return!!(e!=null&&e._isBuffer)}be.compare=function(t,n){if(!Nr(t)||!Nr(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},be.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}},be.concat=function(t,n){if(!RS(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return be.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var s=be.allocUnsafe(n),o=0;for(r=0;r<t.length;++r){var a=t[r];if(!Nr(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(s,o),o+=a.length}return s};function FS(e,t){if(Nr(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 $f(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return GS(e).length;default:if(r)return $f(e).length;t=(""+t).toLowerCase(),r=!0}}be.byteLength=FS;function IJ(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 VJ(this,t,n);case"utf8":case"utf-8":return $S(this,t,n);case"ascii":return UJ(this,t,n);case"latin1":case"binary":return $J(this,t,n);case"base64":return jJ(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qJ(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}be.prototype._isBuffer=!0;function Wo(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}be.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)Wo(this,n,n+1);return this},be.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)Wo(this,n,n+3),Wo(this,n+1,n+2);return this},be.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)Wo(this,n,n+7),Wo(this,n+1,n+6),Wo(this,n+2,n+5),Wo(this,n+3,n+4);return this},be.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?$S(this,0,t):IJ.apply(this,arguments)},be.prototype.equals=function(t){if(!Nr(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:be.compare(this,t)===0},be.prototype.inspect=function(){var t="",n=TJ;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},be.prototype.compare=function(t,n,r,s,o){if(!Nr(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 jS(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=be.from(t,r)),Nr(t))return t.length===0?-1:BS(e,t,n,r,s);if(typeof t=="number")return t=t&255,be.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):BS(e,[t],n,r,s);throw new TypeError("val must be string, number or Buffer")}function BS(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,_){return o===1?g[_]:g.readUInt16BE(_*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,p=0;p<l;p++)if(c(e,u+p)!==c(t,p)){f=!1;break}if(f)return u}return-1}be.prototype.includes=function(t,n,r){return this.indexOf(t,n,r)!==-1},be.prototype.indexOf=function(t,n,r){return jS(this,t,n,r,!0)},be.prototype.lastIndexOf=function(t,n,r){return jS(this,t,n,r,!1)};function DJ(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 RJ(e,t,n,r){return Vf($f(t,e.length-n),e,n,r)}function US(e,t,n,r){return Vf(KJ(t),e,n,r)}function LJ(e,t,n,r){return US(e,t,n,r)}function MJ(e,t,n,r){return Vf(GS(t),e,n,r)}function FJ(e,t,n,r){return Vf(JJ(t,e.length-n),e,n,r)}be.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 DJ(this,t,n,r);case"utf8":case"utf-8":return RJ(this,t,n,r);case"ascii":return US(this,t,n,r);case"latin1":case"binary":return LJ(this,t,n,r);case"base64":return MJ(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return FJ(this,t,n,r);default:if(a)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),a=!0}},be.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function jJ(e,t,n){return t===0&&n===e.length?IS(e):IS(e.slice(t,n))}function $S(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 BJ(r)}var VS=4096;function BJ(e){var t=e.length;if(t<=VS)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=VS));return n}function UJ(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 $J(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 VJ(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+=WJ(e[o]);return s}function qJ(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}be.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(be.TYPED_ARRAY_SUPPORT)s=this.subarray(t,n),s.__proto__=be.prototype;else{var o=n-t;s=new be(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")}be.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},be.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},be.prototype.readUInt8=function(t,n){return n||Sn(t,1,this.length),this[t]},be.prototype.readUInt16LE=function(t,n){return n||Sn(t,2,this.length),this[t]|this[t+1]<<8},be.prototype.readUInt16BE=function(t,n){return n||Sn(t,2,this.length),this[t]<<8|this[t+1]},be.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},be.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])},be.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},be.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},be.prototype.readInt8=function(t,n){return n||Sn(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},be.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},be.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},be.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},be.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]},be.prototype.readFloatLE=function(t,n){return n||Sn(t,4,this.length),Ff(this,t,!0,23,4)},be.prototype.readFloatBE=function(t,n){return n||Sn(t,4,this.length),Ff(this,t,!1,23,4)},be.prototype.readDoubleLE=function(t,n){return n||Sn(t,8,this.length),Ff(this,t,!0,52,8)},be.prototype.readDoubleBE=function(t,n){return n||Sn(t,8,this.length),Ff(this,t,!1,52,8)};function si(e,t,n,r,s,o){if(!Nr(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")}be.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},be.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},be.prototype.writeUInt8=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,1,255,0),be.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=t&255,n+1};function Bf(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}be.prototype.writeUInt16LE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,2,65535,0),be.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):Bf(this,t,n,!0),n+2},be.prototype.writeUInt16BE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,2,65535,0),be.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):Bf(this,t,n,!1),n+2};function Uf(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}be.prototype.writeUInt32LE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,4,4294967295,0),be.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255):Uf(this,t,n,!0),n+4},be.prototype.writeUInt32BE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,4,4294967295,0),be.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):Uf(this,t,n,!1),n+4},be.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},be.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},be.prototype.writeInt8=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,1,127,-128),be.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=t&255,n+1},be.prototype.writeInt16LE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,2,32767,-32768),be.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):Bf(this,t,n,!0),n+2},be.prototype.writeInt16BE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,2,32767,-32768),be.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):Bf(this,t,n,!1),n+2},be.prototype.writeInt32LE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,4,2147483647,-2147483648),be.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):Uf(this,t,n,!0),n+4},be.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),be.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):Uf(this,t,n,!1),n+4};function qS(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 zS(e,t,n,r,s){return s||qS(e,t,n,4),DS(e,t,n,r,23,4),n+4}be.prototype.writeFloatLE=function(t,n,r){return zS(this,t,n,!0,r)},be.prototype.writeFloatBE=function(t,n,r){return zS(this,t,n,!1,r)};function HS(e,t,n,r,s){return s||qS(e,t,n,8),DS(e,t,n,r,52,8),n+8}be.prototype.writeDoubleLE=function(t,n,r){return HS(this,t,n,!0,r)},be.prototype.writeDoubleBE=function(t,n,r){return HS(this,t,n,!1,r)},be.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||!be.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},be.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"&&!be.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=Nr(t)?t:$f(new be(t,s).toString()),c=l.length;for(a=0;a<r-n;++a)this[a+n]=l[a%c]}return this};var zJ=/[^+\/0-9A-Za-z-_]/g;function HJ(e){if(e=GJ(e).replace(zJ,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function GJ(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function WJ(e){return e<16?"0"+e.toString(16):e.toString(16)}function $f(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 KJ(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function JJ(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 GS(e){return SJ(HJ(e))}function Vf(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 YJ(e){return e!==e}function Di(e){return e!=null&&(!!e._isBuffer||WS(e)||XJ(e))}function WS(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function XJ(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&WS(e.slice(0,0))}class Lt extends Error{constructor(t,n,r,...s){Array.isArray(n)&&(n=n.join(" ").trim()),super(n),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,Lt),this.code=t;for(const o of s)for(const a in o){const l=o[a];this[a]=Di(l)?l.toString(r.encoding):l==null?l:JSON.parse(JSON.stringify(l))}}}const ZJ=function(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)},KS=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(ZJ(s)){if(typeof s.name!="string")throw new Lt("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 Lt("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(s)} at position ${n}`])}return t};class JS{constructor(t=100){this.size=t,this.length=0,this.buf=be.allocUnsafe(t)}prepend(t){if(Di(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=be.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 be.from(this.buf.slice(0,this.length))}resize(){const t=this.length;this.size=this.size*2;const n=be.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 QJ=12,eY=13,tY=10,nY=32,iY=9,rY=function(e){return{bomSkipped:!1,bufBytesStart:0,castField:e.cast_function,commenting:!1,error:void 0,enabled:e.from_line===1,escaping:!1,escapeIsQuote:Di(e.escape)&&Di(e.quote)&&be.compare(e.escape,e.quote)===0,expectedRecordLength:Array.isArray(e.columns)?e.columns.length:void 0,field:new JS(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 JS(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:e.record_delimiter.length===0?0:Math.max(...e.record_delimiter.map(t=>t.length)),trimChars:[be.from(" ",e.encoding)[0],be.from(" ",e.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:[be.from(be.from([eY],"utf8").toString(),e.encoding),be.from(be.from([tY],"utf8").toString(),e.encoding),be.from(be.from([QJ],"utf8").toString(),e.encoding),be.from(be.from([nY],"utf8").toString(),e.encoding),be.from(be.from([iY],"utf8").toString(),e.encoding)]}},sY=function(e){return e.replace(/([A-Z])/g,function(t,n){return"_"+n.toLowerCase()})},YS=function(e){const t={};for(const r in e)t[sY(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 Lt("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 Lt("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 Lt("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 Lt("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=KS(t.columns);else if(t.columns===void 0||t.columns===null||t.columns===!1)t.columns=!1;else throw new Lt("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 Lt("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 Lt("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=be.from(t.comment,t.encoding)),!Di(t.comment))throw new Lt("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 Lt("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 Lt("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 be.from(",",t.encoding);if(typeof r=="string"&&(r=be.from(r,t.encoding)),!Di(r)||r.length===0)throw new Lt("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=be.from('"',t.encoding):typeof t.escape=="string"?t.escape=be.from(t.escape,t.encoding):(t.escape===null||t.escape===!1)&&(t.escape=null),t.escape!==null&&!Di(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 Lt("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 Lt("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(Di(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 Lt("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=be.from('"',t.encoding):typeof t.quote=="string"&&(t.quote=be.from(t.quote,t.encoding)),!Di(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"||Di(t.record_delimiter)){if(t.record_delimiter.length===0)throw new Lt("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 Lt("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"&&!Di(r))throw new Lt("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 Lt("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=be.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},XS=function(e){return e.every(t=>t==null||t.toString&&t.toString().trim()==="")},oY=13,aY=10,nl={utf8:be.from([239,187,191]),utf16le:be.from([255,254])},lY=function(e={}){const t={bytes:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},n=YS(e);return{info:t,original_options:e,options:n,state:rY(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,p=s-r-1,g=Math.max(d,f===0?be.from(`\r
|
|
138
|
+
`,a).length:f,u?(l===null?0:l.length)+c.length:0,u?c.length+f:0);return p<g},parse:function(r,s,o,a){const{bom:l,comment_no_infix:c,encoding:u,from_line:d,ltrim:f,max_record_size:p,raw:g,relax_quotes:_,rtrim:b,skip_empty_lines:y,to:w,to_line:E}=this.options;let{comment:C,escape:S,quote:A,record_delimiter:P}=this.options;const{bomSkipped:I,previousBuf:O,rawBuffer:L,escapeIsQuote:R}=this.state;let F;if(O===void 0)if(r===void 0){a();return}else F=r;else O!==void 0&&r===void 0?F=O:F=be.concat([O,r]);if(I===!1)if(l===!1)this.state.bomSkipped=!0;else if(F.length<3){if(s===!1){this.state.previousBuf=F;return}}else{for(const ae in nl)if(nl[ae].compare(F,0,nl[ae].length)===0){const ce=nl[ae].length;this.state.bufBytesStart+=ce,F=F.slice(ce),this.options=YS(je(we({},this.original_options),{encoding:ae})),{comment:C,escape:S,quote:A}=this.options;break}this.state.bomSkipped=!0}const H=F.length;let V;for(V=0;V<H&&!this.__needMoreData(V,H,s);V++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),E!==-1&&this.info.lines>E){this.state.stop=!0,a();return}this.state.quoting===!1&&P.length===0&&this.__autoDiscoverRecordDelimiter(F,V)&&(P=this.options.record_delimiter);const ae=F[V];if(g===!0&&L.append(ae),(ae===oY||ae===aY)&&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(F,V,ae)&&V+S.length<H)if(R){if(this.__isQuote(F,V+S.length)){this.state.escaping=!0,V+=S.length-1;continue}}else{this.state.escaping=!0,V+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(F,V))if(this.state.quoting===!0){const J=F[V+A.length],Q=b&&this.__isCharTrimable(F,V+A.length),X=C!==null&&this.__compareBytes(C,F,V+A.length,J),j=this.__isDelimiter(F,V+A.length,J),ye=P.length===0?this.__autoDiscoverRecordDelimiter(F,V+A.length):this.__isRecordDelimiter(J,F,V+A.length);if(S!==null&&this.__isEscape(F,V,ae)&&this.__isQuote(F,V+S.length))V+=S.length-1;else if(!J||j||ye||X||Q){this.state.quoting=!1,this.state.wasQuoting=!0,V+=A.length-1;continue}else if(_===!1){const pe=this.__error(new Lt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(J)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(pe!==void 0)return pe}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(A),V+=A.length-1}else if(this.state.field.length!==0){if(_===!1){const J=this.__infoField(),Q=Object.keys(nl).map(j=>nl[j].equals(this.state.field.toString())?j:!1).filter(Boolean)[0],X=this.__error(new Lt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(J.column)} at line ${J.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Q?`(${Q} bom)`:void 0],this.options,J,{field:this.state.field}));if(X!==void 0)return X}}else{this.state.quoting=!0,V+=A.length-1;continue}if(this.state.quoting===!1){const J=this.__isRecordDelimiter(ae,F,V);if(J!==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(),V+=J-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,V+=J-1;continue}this.info.bytes=this.state.bufBytesStart+V;const j=this.__onField();if(j!==void 0)return j;this.info.bytes=this.state.bufBytesStart+V+J;const ye=this.__onRecord(o);if(ye!==void 0)return ye;if(w!==-1&&this.info.records>=w){this.state.stop=!0,a();return}}this.state.commenting=!1,V+=J-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,F,V,ae)!==0){this.state.commenting=!0;continue}const Q=this.__isDelimiter(F,V,ae);if(Q!==0){this.info.bytes=this.state.bufBytesStart+V;const X=this.__onField();if(X!==void 0)return X;V+=Q-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new Lt("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${p}`,`at line ${this.info.lines}`],this.options,this.__infoField()));const ce=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(F,V),U=b===!1||this.state.wasQuoting===!1;if(ce===!0&&U===!0)this.state.field.append(ae);else{if(b===!0&&!this.__isCharTrimable(F,V))return this.__error(new Lt("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&&(V+=this.__isCharTrimable(F,V)-1);continue}}if(s===!0)if(this.state.quoting===!0){const ae=this.__error(new Lt("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(ae!==void 0)return ae}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+V;const ae=this.__onField();if(ae!==void 0)return ae;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+=V,this.state.previousBuf=F.slice(V);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:p,skip_records_with_empty_values:g}=this.options,{enabled:_,record:b}=this.state;if(_===!1)return this.__resetRecord();const y=b.length;if(s===!0){if(g===!0&&XS(b)){this.__resetRecord();return}return this.__firstLineToColumns(b)}if(s===!1&&this.info.records===0&&(this.state.expectedRecordLength=y),y!==this.state.expectedRecordLength){const w=s===!1?new Lt("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${y} on line ${this.info.lines}`],this.options,this.__infoField(),{record:b}):new Lt("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${s.length},`,`got ${y} on line ${this.info.lines}`],this.options,this.__infoField(),{record:b});if(u===!0||d===!0&&y<this.state.expectedRecordLength||f===!0&&y>this.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=w;else{const E=this.__error(w);if(E)return E}}if(g===!0&&XS(b)){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 E={};for(let C=0,S=b.length;C<S;C++)s[C]===void 0||s[C].disabled||(o===!0&&E[s[C].name]!==void 0?Array.isArray(E[s[C].name])?E[s[C].name]=E[s[C].name].concat(b[C]):E[s[C].name]=[E[s[C].name],b[C]]:E[s[C].name]=b[C]);if(p===!0||l===!0){const C=Object.assign({record:E},p===!0?{raw:this.state.rawBuffer.toString(a)}:{},l===!0?{info:this.__infoRecord()}:{}),S=this.__push(w===void 0?C:[E[w],C],r);if(S)return S}else{const C=this.__push(w===void 0?E:[E[w],E],r);if(C)return C}}else if(p===!0||l===!0){const E=Object.assign({record:b},p===!0?{raw:this.state.rawBuffer.toString(a)}:{},l===!0?{info:this.__infoRecord()}:{}),C=this.__push(w===void 0?E:[b[w],E],r);if(C)return C}else{const E=this.__push(w===void 0?b:[b[w],b],r);if(E)return E}}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 Lt("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=KS(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=[be.from(`\r
|
|
139
|
+
`,o),be.from(`
|
|
140
|
+
`,o),be.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 je(we({},this.info),{columns:this.options.columns})},__infoRecord:function(){const{columns:r,raw:s,encoding:o}=this.options;return je(we({},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 je(we({},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})}}},cY=function(e,t={}){typeof e=="string"&&(e=be.from(e));const n=t&&t.objname?{}:[],r=lY(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},l0=" ";class uY{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=cY.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,l0)),s.replace(/,/g,l0))),t}reverseSpecialValue(t){const n=new RegExp(l0,"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=PS.nodeMapReverse,r=i0.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 cge="",dY={name:"ButtonList",components:{"force-graph-svg-icon":Ho,addNode:cJ,addLink:pJ,intro:bJ,UploadFilled:AM,SearchIcon:tJ},mixins:[Pr],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:""}},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=ko(this.history.dataNow.nodes),t=ko((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(){Xe(this,"autoDisplay")},fixNodes(e=!0){Xe(this,"fixNodes",e),this.isAllFix=e},toggleMove(){Xe(this,"toggleMove")},toggleLayout(e){Xe(this,"toggleLayout",e)},addNode(e,t){this.addType=e,this.$refs.addNode.show(t)},addNodes({node:e,type:t,connectNode:n}){Xe(this,"addNodes",{node:e,type:t,connectNode:n})},addLink({source:e,target:t}){Xe(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 at(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 at(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 at(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(){Xe(this,"deleteNodes")},addSnapshot(){Xe(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:p,detail:g}=d;return{id:f,type:p,detail:g}}),o=r.map(d=>{const{source:f,target:p}=d;return{source:f,target:p}});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`),_z(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 uY(this.importFile,e).outputData();Xe(this,"importCsvData",{nodes:n.nodes,links:n.links})}catch(e){dn({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 wJ(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:(dn({message:"无可操作权限",type:"warning"}),!1)},handleIconClick(e){this.permissionitem()&&(Fn({cId:"buttonList-"+e.icon,c:"顶部按钮-"+e.name}),e.fun(e.params))},handleSearch:Ia(function(e){var r;if(!this.filterValues){Xe(wt,"sendNodesRange",null);return}this.filteredDataList=ko(this.noSelectNodes);const t=ko((r=this.history.dataNow)==null?void 0:r.links);this.filteredDataList=this.filteredDataList.filter(s=>this.filterValues!==""?(s.parentNode=this.searchParent(s,t),s.childList=s.childList.filter(o=>o.name.toLowerCase().indexOf(this.filterValues.toLowerCase())>-1),s.childList.length>0):!0),this.filteredDataList=this.deleteParentItem(this.filteredDataList);const n=[];this.filteredDataList.forEach(s=>{n.push(this.searchParent(s,t)),n.push(...s.childList),n.push(s)}),Xe(wt,"sendNodesRange",n)},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}}},fY={class:"button-container"},pY={ref:"container",class:"button-box"},hY={ref:"box",class:"all-button"},gY=["onClick"],mY={key:0,class:"search-content-wrap"},_Y={class:"right-btn-wrap"},vY={class:"button-one intro-button"},bY={class:"dialog-footer"},yY={class:"dialog-footer"},wY={class:"intro"};function CY(e,t,n,r,s,o){const a=He("force-graph-svg-icon"),l=fi,c=He("SearchIcon"),u=Bo,d=He("intro"),f=lV,p=bf,g=vf,_=$o,b=zc,y=He("UploadFilled"),w=Ft,E=Pq,C=He("addNode"),S=He("addLink");return N(),q("div",fY,[G("div",pY,[G("div",hY,[G("div",null,[(N(!0),q(ze,null,kt(o.buttonListShow,(A,P)=>(N(),xe(l,{key:P,class:"item",effect:"dark",content:A.name,placement:"bottom","popper-class":"el-tooltip-gray"},{default:ee(()=>[G("div",{class:Y(["img-box","button-one "+(A.disable?"disabled":"")]),onClick:I=>o.handleIconClick(A)},[te(a,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/button22/"+A.icon+".svg"]},null,8,["icon-class"])],10,gY)]),_:2},1032,["content"]))),128))]),n.showTopSearch?(N(),q("div",mY,[te(u,{modelValue:s.filterValues,"onUpdate:modelValue":t[0]||(t[0]=A=>s.filterValues=A),modelModifiers:{trim:!0},class:"search-content",placeholder:"支持查询嫌疑人终端码、虚拟身份、路由mac、域名",clearable:"",onInput:o.handleSearch},{suffix:ee(()=>[t[7]||(t[7]=G("div",{class:"split-line"},null,-1)),te(c,{onClick:o.handleSearch},null,8,["onClick"])]),_:1},8,["modelValue","onInput"])])):re("",!0),G("div",_Y,[n.hideButtonList.includes("功能介绍")?re("",!0):(N(),xe(f,{key:0,placement:"bottom-end",width:"auto",trigger:"hover"},{reference:ee(()=>[G("div",vY,[te(l,{class:"item",effect:"dark",content:"功能介绍",placement:"bottom","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(a,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/button22/hm_icon_help.svg"]},null,8,["icon-class"])]),_:1})])]),default:ee(()=>[te(d,{config:n.moduleDetail.config||{}},null,8,["config"])]),_:1})),n.hideButtonList.includes("展开折叠")?re("",!0):(N(),q("div",{key:1,class:"button-one intro-button",onClick:t[1]||(t[1]=A=>o.handleAlias(s.flageAlias)),onMouseenter:t[2]||(t[2]=A=>o.hover(o.buttonList.length+1)),onMouseleave:t[3]||(t[3]=A=>o.out())},[te(l,{class:"item",effect:"dark",content:s.flageAlias?"右侧折叠":"右侧展开",placement:"bottom","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(a,{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))])],512)],512),te(b,{modelValue:s.dialogVisible,"onUpdate:modelValue":t[5]||(t[5]=A=>s.dialogVisible=A),title:"选择导出数据格式","append-to-body":"",width:"400px","before-close":o.handleCloseModal,class:"el-dialog-graph"},{footer:ee(()=>[G("span",bY,[te(_,{onClick:o.handleCloseModal},{default:ee(()=>t[8]||(t[8]=[Je("取 消")])),_:1},8,["onClick"]),te(_,{type:"primary",onClick:o.handleExportData},{default:ee(()=>t[9]||(t[9]=[Je("导 出")])),_:1},8,["onClick"])])]),default:ee(()=>[te(g,{modelValue:s.exportFormat,"onUpdate:modelValue":t[4]||(t[4]=A=>s.exportFormat=A),placeholder:"请选择导出数据格式"},{default:ee(()=>[(N(!0),q(ze,null,kt(s.formatOptions,A=>(N(),xe(p,{key:A.value,label:A.label,value:A.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue","before-close"]),te(b,{modelValue:s.dialogImportVisible,"onUpdate:modelValue":t[6]||(t[6]=A=>s.dialogImportVisible=A),title:"导入数据","append-to-body":"",width:"400px","before-close":o.handleCloseImportModal,class:"el-dialog-graph"},{footer:ee(()=>[G("span",yY,[te(_,{onClick:o.handleCloseImportModal},{default:ee(()=>t[12]||(t[12]=[Je("取 消")])),_:1},8,["onClick"]),te(_,{type:"primary",disabled:!s.importFile,onClick:o.handleImportData},{default:ee(()=>t[13]||(t[13]=[Je("导 入")])),_:1},8,["disabled","onClick"])])]),default:ee(()=>[te(E,{drag:"",action:"#","auto-upload":!1,accept:".csv","file-list":s.importFileList,"on-change":o.handleFileChange,"on-remove":o.handleFileRemove},{tip:ee(()=>t[10]||(t[10]=[G("div",{class:"el-upload__tip"},"只能上传由 Maltego 软件导出的csv文件",-1)])),default:ee(()=>[te(w,{class:"el-icon-upload"},{default:ee(()=>[te(y)]),_: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"]),te(C,{ref:"addNode","nodes-type":n.moduleDetail&&n.moduleDetail.nodes||[],"add-type":s.addType,onAddNodes:o.addNodes},null,8,["nodes-type","add-type","onAddNodes"]),te(S,{ref:"addLink",onAddLink:o.addLink},null,8,["onAddLink"]),Nt(G("div",wY,[te(d,{config:n.moduleDetail.config||{},onMouseenter:o.showIntro,onMouseleave:o.hideIntro},null,8,["config","onMouseenter","onMouseleave"])],512),[[wn,s.intro]])])}const SY=nn(dY,[["render",CY]]);var c0={exports:{}},u0={},Gt={};(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 Vs!="undefined"?Vs: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)})(Gt);var xn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Gt;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 A=this.m;return{x:A[0]*S.x+A[2]*S.y+A[4],y:A[1]*S.x+A[3]*S.y+A[5]}}translate(S,A){return this.m[4]+=this.m[0]*S+this.m[2]*A,this.m[5]+=this.m[1]*S+this.m[3]*A,this}scale(S,A){return this.m[0]*=S,this.m[1]*=S,this.m[2]*=A,this.m[3]*=A,this}rotate(S){var A=Math.cos(S),P=Math.sin(S),I=this.m[0]*A+this.m[2]*P,O=this.m[1]*A+this.m[3]*P,L=this.m[0]*-P+this.m[2]*A,R=this.m[1]*-P+this.m[3]*A;return this.m[0]=I,this.m[1]=O,this.m[2]=L,this.m[3]=R,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(S,A){var P=this.m[0]+this.m[2]*A,I=this.m[1]+this.m[3]*A,O=this.m[2]+this.m[0]*S,L=this.m[3]+this.m[1]*S;return this.m[0]=P,this.m[1]=I,this.m[2]=O,this.m[3]=L,this}multiply(S){var A=this.m[0]*S.m[0]+this.m[2]*S.m[1],P=this.m[1]*S.m[0]+this.m[3]*S.m[1],I=this.m[0]*S.m[2]+this.m[2]*S.m[3],O=this.m[1]*S.m[2]+this.m[3]*S.m[3],L=this.m[0]*S.m[4]+this.m[2]*S.m[5]+this.m[4],R=this.m[1]*S.m[4]+this.m[3]*S.m[5]+this.m[5];return this.m[0]=A,this.m[1]=P,this.m[2]=I,this.m[3]=O,this.m[4]=L,this.m[5]=R,this}invert(){var S=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),A=this.m[3]*S,P=-this.m[1]*S,I=-this.m[2]*S,O=this.m[0]*S,L=S*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),R=S*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=A,this.m[1]=P,this.m[2]=I,this.m[3]=O,this.m[4]=L,this.m[5]=R,this}getMatrix(){return this.m}decompose(){var S=this.m[0],A=this.m[1],P=this.m[2],I=this.m[3],O=this.m[4],L=this.m[5],R=S*I-A*P;let F={x:O,y:L,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(S!=0||A!=0){var H=Math.sqrt(S*S+A*A);F.rotation=A>0?Math.acos(S/H):-Math.acos(S/H),F.scaleX=H,F.scaleY=R/H,F.skewX=(S*P+A*I)/R,F.skewY=0}else if(P!=0||I!=0){var V=Math.sqrt(P*P+I*I);F.rotation=Math.PI/2-(I>0?Math.acos(-P/V):-Math.acos(P/V)),F.scaleX=R/V,F.scaleY=V,F.skewX=0,F.skewY=(S*P+A*I)/R}return F.rotation=e.Util._getRotation(F.rotation),F}}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",p="Konva warning: ",g="Konva error: ",_="rgb(",b={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]},y=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,w=[];const E=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&&E(function(){const S=w;w=[],S.forEach(function(A){A()})})},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 A=e.Util.createImageElement();A.onload=function(){S(A)},A.src=C},_rgbToHex(C,S,A){return((1<<24)+(C<<16)+(S<<8)+A).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 b?(S=b[C],{r:S[0],g:S[1],b:S[2]}):C[0]===u?this._hexToRgb(C.substring(1)):C.substr(0,4)===_?(S=y.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=b[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((A,P)=>A.slice(-1)==="%"?P===3?parseInt(A)/100:parseInt(A)/100*255:Number(A));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,...A]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(C),P=Number(A[0])/360,I=Number(A[1])/100,O=Number(A[2])/100;let L,R,F;if(I===0)return F=O*255,{r:Math.round(F),g:Math.round(F),b:Math.round(F),a:1};O<.5?L=O*(1+I):L=O+I-O*I;const H=2*O-L,V=[0,0,0];for(let ae=0;ae<3;ae++)R=P+1/3*-(ae-1),R<0&&R++,R>1&&R--,6*R<1?F=H+(L-H)*6*R:2*R<1?F=L:3*R<2?F=H+(L-H)*(2/3-R)*6:F=H,V[ae]=F*255;return{r:Math.round(V[0]),g:Math.round(V[1]),b:Math.round(V[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 A in C)this._isPlainObject(C[A])?S[A]=this.cloneObject(C[A]):this._isArray(C[A])?S[A]=this.cloneArray(C[A]):S[A]=C[A];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(p+C)},each(C,S){for(var A in C)S(A,C[A])},_inRange(C,S,A){return S<=C&&C<A},_getProjectionToSegment(C,S,A,P,I,O){var L,R,F,H=(C-A)*(C-A)+(S-P)*(S-P);if(H==0)L=C,R=S,F=(I-A)*(I-A)+(O-P)*(O-P);else{var V=((I-C)*(A-C)+(O-S)*(P-S))/H;V<0?(L=C,R=S,F=(C-I)*(C-I)+(S-O)*(S-O)):V>1?(L=A,R=P,F=(A-I)*(A-I)+(P-O)*(P-O)):(L=C+V*(A-C),R=S+V*(P-S),F=(L-I)*(L-I)+(R-O)*(R-O))}return[L,R,F]},_getProjectionToLine(C,S,A){var P=e.Util.cloneObject(C),I=Number.MAX_VALUE;return S.forEach(function(O,L){if(!(!A&&L===S.length-1)){var R=S[(L+1)%S.length],F=e.Util._getProjectionToSegment(O.x,O.y,R.x,R.y,C.x,C.y),H=F[0],V=F[1],ae=F[2];ae<I&&(P.x=H,P.y=V,I=ae)}}),P},_prepareArrayForTween(C,S,A){var P,I=[],O=[];if(C.length>S.length){var L=S;S=C,C=L}for(P=0;P<C.length;P+=2)I.push({x:C[P],y:C[P+1]});for(P=0;P<S.length;P+=2)O.push({x:S[P],y:S[P+1]});var R=[];return O.forEach(function(F){var H=e.Util._getProjectionToLine(F,I,A);R.push(H.x),R.push(H.y)}),R},_prepareToStringify(C){var S;C.visitedByCircularReferenceRemoval=!0;for(var A in C)if(C.hasOwnProperty(A)&&C[A]&&typeof C[A]=="object"){if(S=Object.getOwnPropertyDescriptor(C,A),C[A].visitedByCircularReferenceRemoval||e.Util._isElement(C[A]))if(S.configurable)delete C[A];else return null;else if(e.Util._prepareToStringify(C[A])===null)if(S.configurable)delete C[A];else return null}return delete C.visitedByCircularReferenceRemoval,C},_assign(C,S){for(var A in S)C[A]=S[A];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,A,P){let I=0,O=0,L=0,R=0;typeof P=="number"?I=O=L=R=Math.min(P,S/2,A/2):(I=Math.min(P[0]||0,S/2,A/2),O=Math.min(P[1]||0,S/2,A/2),R=Math.min(P[2]||0,S/2,A/2),L=Math.min(P[3]||0,S/2,A/2)),C.moveTo(I,0),C.lineTo(S-O,0),C.arc(S-O,O,O,Math.PI*3/2,0,!1),C.lineTo(S,A-R),C.arc(S-R,A-R,R,0,Math.PI/2,!1),C.lineTo(L,A),C.arc(L,A-L,L,Math.PI/2,Math.PI,!1),C.lineTo(0,I),C.arc(I,I,I,Math.PI,Math.PI*3/2,!1)}}})(xn);var Ws={},oi={},Pt={};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.getComponentValidator=Pt.getBooleanValidator=Pt.getNumberArrayValidator=Pt.getFunctionValidator=Pt.getStringOrGradientValidator=Pt.getStringValidator=Pt.getNumberOrAutoValidator=Pt.getNumberOrArrayOfNumbersValidator=Pt.getNumberValidator=Pt.alphaComponent=Pt.RGBComponent=void 0;const fs=Gt,rn=xn;function ps(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 xY(e){return e>255?255:e<0?0:Math.round(e)}Pt.RGBComponent=xY;function EY(e){return e>1?1:e<1e-4?1e-4:e}Pt.alphaComponent=EY;function AY(){if(fs.Konva.isUnminified)return function(e,t){return rn.Util._isNumber(e)||rn.Util.warn(ps(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}Pt.getNumberValidator=AY;function TY(e){if(fs.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(ps(t)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+e+")"),t}}Pt.getNumberOrArrayOfNumbersValidator=TY;function kY(){if(fs.Konva.isUnminified)return function(e,t){var n=rn.Util._isNumber(e),r=e==="auto";return n||r||rn.Util.warn(ps(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}Pt.getNumberOrAutoValidator=kY;function PY(){if(fs.Konva.isUnminified)return function(e,t){return rn.Util._isString(e)||rn.Util.warn(ps(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}Pt.getStringValidator=PY;function OY(){if(fs.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(ps(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}Pt.getStringOrGradientValidator=OY;function NY(){if(fs.Konva.isUnminified)return function(e,t){return rn.Util._isFunction(e)||rn.Util.warn(ps(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}Pt.getFunctionValidator=NY;function IY(){if(fs.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(ps(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}Pt.getNumberArrayValidator=IY;function DY(){if(fs.Konva.isUnminified)return function(e,t){var n=e===!0||e===!1;return n||rn.Util.warn(ps(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}Pt.getBooleanValidator=DY;function RY(e){if(fs.Konva.isUnminified)return function(t,n){return t==null||rn.Util.isObject(t)||rn.Util.warn(ps(t)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+e),t}}Pt.getComponentValidator=RY,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=xn,n=Pt;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,p=r+f(a),g=s+f(a),_,b;o.prototype[p]=function(){var w={};for(_=0;_<d;_++)b=l[_],w[b]=this.getAttr(a+f(b));return w};var y=(0,n.getComponentValidator)(l);o.prototype[g]=function(w){var E=this.attrs[a],C;c&&(w=c.call(this,w)),y&&y.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,E,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 p(){u.apply(this,arguments),t.Util.error('"'+l+'" method is deprecated and will be removed soon. Use ""'+c+'" instead.')}o.prototype[l]=p,o.prototype[d]=p,o.prototype[f]=p})},afterSetFilter(){this._filterUpToDate=!1}}}(oi);var rr={},hs={};Object.defineProperty(hs,"__esModule",{value:!0}),hs.HitContext=hs.SceneContext=hs.Context=void 0;const ZS=xn,LY=Gt;function MY(e){var t=[],n=e.length,r=ZS.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 QS=",",FY="(",jY=")",BY="([",UY="])",$Y=";",VY="()",qY="=",e8=["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"],zY=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const HY=100;class qf{constructor(t){this.canvas=t,LY.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+=VY:ZS.Util._isArray(u[0])?o+=BY+u.join(QS)+UY:(n&&(u=u.map(d=>typeof d=="number"?Math.floor(d):d)),o+=FY+u.join(QS)+jY)):(o+=l.property,t||(o+=qY+l.val)),o+=$Y;return o}clearTrace(){this.traceArr=[]}_trace(t){var n=this.traceArr,r;n.push(t),r=n.length,r>=HY&&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=e8.length,r=this.setAttr,s,o,a=function(l){var c=t[l],u;t[l]=function(){return o=MY(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(e8[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)}}hs.Context=qf,zY.forEach(function(e){Object.defineProperty(qf.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});class GY extends qf{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)}}hs.SceneContext=GY;class WY extends qf{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()}}}hs.HitContext=WY,Object.defineProperty(rr,"__esModule",{value:!0}),rr.HitCanvas=rr.SceneCanvas=rr.Canvas=void 0;const zf=xn,t8=hs,n8=Gt,KY=oi,JY=Pt;var Hf;function YY(){if(Hf)return Hf;var e=zf.Util.createCanvasElement(),t=e.getContext("2d");return Hf=function(){var n=n8.Konva._global.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return n/r}(),zf.Util.releaseCanvas(e),Hf}class Gf{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var n=t||{},r=n.pixelRatio||n8.Konva.pixelRatio||YY();this.pixelRatio=r,this._canvas=zf.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 zf.Util.error("Unable to get data URL. "+s.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}rr.Canvas=Gf,KY.Factory.addGetterSetter(Gf,"pixelRatio",void 0,(0,JY.getNumberValidator)());class XY extends Gf{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new t8.SceneContext(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}rr.SceneCanvas=XY;class ZY extends Gf{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new t8.HitContext(this),this.setSize(t.width,t.height)}}rr.HitCanvas=ZY;var Wf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DD=void 0;const t=Gt,n=xn;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(p=>p.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))})(Wf),Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.Node=void 0;const Tt=xn,Yc=oi,Xc=rr,Ks=Gt,Ri=Wf,cn=Pt;var Kf="absoluteOpacity",Jf="allEventListeners",gs="absoluteTransform",i8="absoluteScale",Ko="canvas",QY="Change",eX="children",tX="konva",d0="listening",r8="mouseenter",s8="mouseleave",o8="set",a8="Shape",Yf=" ",l8="stage",Js="transform",nX="Stage",f0="visible",iX=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Yf);let rX=1;class ut{constructor(t){this._id=rX++,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===Js||t===gs)&&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===Js||t===gs,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(Yf);this.on(s,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,r)}_getCanvasCache(){return this._cache.get(Ko)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===gs&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Ko)){const{scene:t,filter:n,hit:r}=this._cache.get(Ko);Tt.Util.releaseCanvas(t,n,r),this._cache.delete(Ko)}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){Tt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const p=Math.abs(Math.round(r.x)-l)>.5?1:0,g=Math.abs(Math.round(r.y)-c)>.5?1:0;s+=u*2+p,o+=u*2+g,l-=u,c-=u;var _=new Xc.SceneCanvas({pixelRatio:a,width:s,height:o}),b=new Xc.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),y=new Xc.HitCanvas({pixelRatio:f,width:s,height:o}),w=_.getContext(),E=y.getContext();return y.isCache=!0,_.isCache=!0,this._cache.delete(Ko),this._filterUpToDate=!1,n.imageSmoothingEnabled===!1&&(_.getContext()._context.imageSmoothingEnabled=!1,b.getContext()._context.imageSmoothingEnabled=!1),w.save(),E.save(),w.translate(-l,-c),E.translate(-l,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Kf),this._clearSelfAndDescendantCache(i8),this.drawScene(_,this),this.drawHit(y,this),this._isUnderCache=!1,w.restore(),E.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(Ko,{scene:_,filter:b,hit:y,x:l,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(Ko)}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"){Tt.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){Tt.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(Jf),arguments.length===3)return this._delegate.apply(this,arguments);var r=t.split(Yf),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(Yf),s=r.length,o,a,l,c,u,d;if(this._cache&&this._cache.delete(Jf),!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=Tt.Util.cloneObject(o),o.currentTarget=a[l],r.call(a[l],o)})}remove(){return this.isDragging()&&this.stopDrag(),Ri.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(gs),this._clearSelfAndDescendantCache(Kf),this._clearSelfAndDescendantCache(i8),this._clearSelfAndDescendantCache(l8),this._clearSelfAndDescendantCache(f0),this._clearSelfAndDescendantCache(d0)}_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"+Tt.Util._capitalize(t);return Tt.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!==eX&&(r=o8+Tt.Util._capitalize(n),Tt.Util._isFunction(this[r])?this[r](t[n]):this._setAttr(n,t[n]))}),this}isListening(){return this._getCache(d0,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(f0,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;Ri.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===r)&&(s=!0)});var o=!n&&!Ks.Konva.hitOnDragEnabled&&(s||Ks.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!==a8&&(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!==nX&&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(Js),this._clearSelfAndDescendantCache(gs)),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 Tt.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=Es(a,["x","y"]);this.attrs.x=n,this.attrs.y=r,this._clearCache(Js);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(Js),this._clearSelfAndDescendantCache(gs),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 Tt.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 Tt.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 Tt.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 Tt.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 Tt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Tt.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(Kf,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=Tt.Util.isObject(r)&&!Tt.Util._isPlainObject(r)&&!Tt.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 Tt.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],Tt.Util.isValidSelector(o)||(Tt.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),Tt.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),Tt.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(l8,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(gs,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var n;if(t)return n=new Tt.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(gs)||new Tt.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(Js,this._getTransform)}_getTransform(){var t,n,r=this._cache.get(Js)||new Tt.Transform;r.reset();var s=this.x(),o=this.y(),a=Ks.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,p=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||p!==0)&&r.translate(-1*f,-1*p),r.dirty=!1,r}clone(t){var n=Tt.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(tX)<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 Xc.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 Xc.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,Tt.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():Ks.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+QY,{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[o8+Tt.Util._capitalize(t)];return Tt.Util._isFunction(r)?r.call(this,n):this._setAttr(t,n),this}_requestDraw(){if(Ks.Konva.autoDrawEnabled){const t=this.getLayer()||this.getStage();t==null||t.batchDraw()}}_setAttr(t,n){var r=this.attrs[t];r===n&&!Tt.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===a8&&(n.target=this);var s=(t===r8||t===s8)&&(r&&(this===r||this.isAncestorOf&&this.isAncestorOf(r))||this.nodeType==="Stage"&&!r);if(!s){this._fire(t,n);var o=(t===r8||t===s8)&&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(Jf))!==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(Jf,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;Ri.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){Ri.DD._dragElements.has(this._id)||this._createDragElement(t);const r=Ri.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:Tt.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=Ri.DD._dragElements.get(this._id);n&&(n.dragStatus="stopped"),Ri.DD._endDragBefore(t),Ri.DD._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=Ri.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||Ks.Konva.dragButtons.indexOf(t.evt.button)>=0;if(r&&!this.isDragging()){var s=!1;Ri.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=Ri.DD._dragElements.get(this._id),r=n&&n.dragStatus==="dragging",s=n&&n.dragStatus==="ready";r?this.stopDrag():s&&Ri.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 Tt.Util.haveIntersection(r,this.getClientRect())}static create(t,n){return Tt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,n)}static _createNode(t,n){var r=ut.prototype.getClassName.call(t),s=t.children,o,a,l;n&&(t.attrs.container=n),Ks.Konva[r]||(Tt.Util.warn('Can not find a node with class name "'+r+'". Fallback to "Shape".'),r="Shape");const c=Ks.Konva[r];if(o=new c(t.attrs),s)for(a=s.length,l=0;l<a;l++)o.add(ut._createNode(s[l]));return o}}Ws.Node=ut,ut.prototype.nodeType="Node",ut.prototype._attrsAffectingSize=[],ut.prototype.eventListeners={},ut.prototype.on.call(ut.prototype,iX,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(Js),this._clearSelfAndDescendantCache(gs)}),ut.prototype.on.call(ut.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(f0)}),ut.prototype.on.call(ut.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(d0)}),ut.prototype.on.call(ut.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(Kf)});const qt=Yc.Factory.addGetterSetter;qt(ut,"zIndex"),qt(ut,"absolutePosition"),qt(ut,"position"),qt(ut,"x",0,(0,cn.getNumberValidator)()),qt(ut,"y",0,(0,cn.getNumberValidator)()),qt(ut,"globalCompositeOperation","source-over",(0,cn.getStringValidator)()),qt(ut,"opacity",1,(0,cn.getNumberValidator)()),qt(ut,"name","",(0,cn.getStringValidator)()),qt(ut,"id","",(0,cn.getStringValidator)()),qt(ut,"rotation",0,(0,cn.getNumberValidator)()),Yc.Factory.addComponentsGetterSetter(ut,"scale",["x","y"]),qt(ut,"scaleX",1,(0,cn.getNumberValidator)()),qt(ut,"scaleY",1,(0,cn.getNumberValidator)()),Yc.Factory.addComponentsGetterSetter(ut,"skew",["x","y"]),qt(ut,"skewX",0,(0,cn.getNumberValidator)()),qt(ut,"skewY",0,(0,cn.getNumberValidator)()),Yc.Factory.addComponentsGetterSetter(ut,"offset",["x","y"]),qt(ut,"offsetX",0,(0,cn.getNumberValidator)()),qt(ut,"offsetY",0,(0,cn.getNumberValidator)()),qt(ut,"dragDistance",null,(0,cn.getNumberValidator)()),qt(ut,"width",0,(0,cn.getNumberValidator)()),qt(ut,"height",0,(0,cn.getNumberValidator)()),qt(ut,"listening",!0,(0,cn.getBooleanValidator)()),qt(ut,"preventDefault",!0,(0,cn.getBooleanValidator)()),qt(ut,"filters",null,function(e){return this._filterUpToDate=!1,e}),qt(ut,"visible",!0,(0,cn.getBooleanValidator)()),qt(ut,"transformsEnabled","all",(0,cn.getStringValidator)()),qt(ut,"size"),qt(ut,"dragBoundFunc"),qt(ut,"draggable",!1,(0,cn.getBooleanValidator)()),Yc.Factory.backCompat(ut,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.Container=void 0;const il=oi,p0=Ws,Xf=Pt;class Yo extends p0.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=p0.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=p0.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 p=this.getAbsoluteTransform(r),g=p.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 _=this.clipX(),b=this.clipY();a.rect(_||0,b||0,l,c)}a.clip.apply(a,w),g=p.copy().invert().getMatrix(),a.transform(g[0],g[1],g[2],g[3],g[4],g[5])}var y=!f&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";y&&(a.save(),a._applyGlobalCompositeOperation(this)),(o=this.children)===null||o===void 0||o.forEach(function(w){w[t](n,r,s)}),y&&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(b){if(b.visible()){var y=b.getClientRect({relativeTo:d,skipShadow:t.skipShadow,skipStroke:t.skipStroke});y.width===0&&y.height===0||(o===void 0?(o=y.x,a=y.y,l=y.x+y.width,c=y.y+y.height):(o=Math.min(o,y.x),a=Math.min(a,y.y),l=Math.max(l,y.x+y.width),c=Math.max(c,y.y+y.height)))}});for(var f=this.find("Shape"),p=!1,g=0;g<f.length;g++){var _=f[g];if(_._isVisible(this)){p=!0;break}}return p&&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)}}Jo.Container=Yo,il.Factory.addComponentsGetterSetter(Yo,"clip",["x","y","width","height"]),il.Factory.addGetterSetter(Yo,"clipX",void 0,(0,Xf.getNumberValidator)()),il.Factory.addGetterSetter(Yo,"clipY",void 0,(0,Xf.getNumberValidator)()),il.Factory.addGetterSetter(Yo,"clipWidth",void 0,(0,Xf.getNumberValidator)()),il.Factory.addGetterSetter(Yo,"clipHeight",void 0,(0,Xf.getNumberValidator)()),il.Factory.addGetterSetter(Yo,"clipFunc");var c8={},hi={};Object.defineProperty(hi,"__esModule",{value:!0}),hi.releaseCapture=hi.setPointerCapture=hi.hasPointerCapture=hi.createEvent=hi.getCapturedShape=void 0;const sX=Gt,Zc=new Map,u8=sX.Konva._global.PointerEvent!==void 0;function oX(e){return Zc.get(e)}hi.getCapturedShape=oX;function h0(e){return{evt:e,pointerId:e.pointerId}}hi.createEvent=h0;function aX(e,t){return Zc.get(e)===t}hi.hasPointerCapture=aX;function lX(e,t){d8(e),t.getStage()&&(Zc.set(e,t),u8&&t._fire("gotpointercapture",h0(new PointerEvent("gotpointercapture"))))}hi.setPointerCapture=lX;function d8(e,t){const n=Zc.get(e);if(!n)return;const r=n.getStage();r&&r.content,Zc.delete(e),u8&&n._fire("lostpointercapture",h0(new PointerEvent("lostpointercapture")))}hi.releaseCapture=d8,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.stages=void 0;const t=xn,n=oi,r=Jo,s=Gt,o=rr,a=Wf,l=Gt,c=hi;var u="Stage",d="string",f="px",p="mouseout",g="mouseleave",_="mouseover",b="mouseenter",y="mousemove",w="mousedown",E="mouseup",C="pointermove",S="pointerdown",A="pointerup",P="pointercancel",I="lostpointercapture",O="pointerout",L="pointerleave",R="pointerover",F="pointerenter",H="contextmenu",V="touchstart",ae="touchend",ce="touchmove",U="touchcancel",J="wheel",Q=5,X=[[b,"_pointerenter"],[w,"_pointerdown"],[y,"_pointermove"],[E,"_pointerup"],[g,"_pointerleave"],[V,"_pointerdown"],[ce,"_pointermove"],[ae,"_pointerup"],[U,"_pointercancel"],[_,"_pointerover"],[J,"_wheel"],[H,"_contextmenu"],[S,"_pointerdown"],[C,"_pointermove"],[A,"_pointerup"],[P,"_pointercancel"],[I,"_lostpointercapture"]];const j={mouse:{[O]:p,[L]:g,[R]:_,[F]:b,[C]:y,[S]:w,[A]:E,[P]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[O]:"touchout",[L]:"touchleave",[R]:"touchover",[F]:"touchenter",[C]:ce,[S]:V,[A]:ae,[P]:U,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[O]:O,[L]:L,[R]:R,[F]:F,[C]:C,[S]:S,[A]:A,[P]:P,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},ye=me=>me.indexOf("pointer")>=0?"pointer":me.indexOf("touch")>=0?"touch":"mouse",pe=me=>{const z=ye(me);if(z==="pointer")return s.Konva.pointerEventsEnabled&&j.pointer;if(z==="touch")return j.touch;if(z==="mouse")return j.mouse};function ie(me={}){return(me.clipFunc||me.clipWidth||me.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),me}const oe="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(ie(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",()=>{ie(this.attrs)}),this._checkVisibility()}_validateAdd(z){const Z=z.getType()==="Layer",_e=z.getType()==="FastLayer";Z||_e||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 Z=z.slice(1);z=document.getElementsByClassName(Z)[0]}else{var _e;z.charAt(0)!=="#"?_e=z:_e=z.slice(1),z=document.getElementById(_e)}if(!z)throw"Can not find container in document with id "+_e}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,Z=z.length,_e;for(_e=0;_e<Z;_e++)z[_e].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 Z=e.stages.indexOf(this);return Z>-1&&e.stages.splice(Z,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(oe),null)}_getPointerById(z){return this._pointerPositions.find(Z=>Z.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 Z=new o.SceneCanvas({width:z.width,height:z.height,pixelRatio:z.pixelRatio||1}),_e=Z.getContext()._context,Pe=this.children;return(z.x||z.y)&&_e.translate(-1*z.x,-1*z.y),Pe.forEach(function(Re){if(Re.isVisible()){var Ke=Re._toKonvaCanvas(z);_e.drawImage(Ke._canvas,z.x,z.y,Ke.getWidth()/Ke.getPixelRatio(),Ke.getHeight()/Ke.getPixelRatio())}}),Z}getIntersection(z){if(!z)return null;var Z=this.children,_e=Z.length,Pe=_e-1,Re;for(Re=Pe;Re>=0;Re--){const Ke=Z[Re].getIntersection(z);if(Ke)return Ke}return null}_resizeDOM(){var z=this.width(),Z=this.height();this.content&&(this.content.style.width=z+f,this.content.style.height=Z+f),this.bufferCanvas.setSize(z,Z),this.bufferHitCanvas.setSize(z,Z),this.children.forEach(_e=>{_e.setSize({width:z,height:Z}),_e.draw()})}add(z,...Z){if(arguments.length>1){for(var _e=0;_e<arguments.length;_e++)this.add(arguments[_e]);return this}super.add(z);var Pe=this.children.length;return Pe>Q&&t.Util.warn("The stage has "+Pe+" 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&&X.forEach(([z,Z])=>{this.content.addEventListener(z,_e=>{this[Z](_e)},{passive:!1})})}_pointerenter(z){this.setPointersPositions(z);const Z=pe(z.type);Z&&this._fire(Z.pointerenter,{evt:z,target:this,currentTarget:this})}_pointerover(z){this.setPointersPositions(z);const Z=pe(z.type);Z&&this._fire(Z.pointerover,{evt:z,target:this,currentTarget:this})}_getTargetShape(z){let Z=this[z+"targetShape"];return Z&&!Z.getStage()&&(Z=null),Z}_pointerleave(z){const Z=pe(z.type),_e=ye(z.type);if(Z){this.setPointersPositions(z);var Pe=this._getTargetShape(_e),Re=!(s.Konva.isDragging()||s.Konva.isTransforming())||s.Konva.hitOnDragEnabled;Pe&&Re?(Pe._fireAndBubble(Z.pointerout,{evt:z}),Pe._fireAndBubble(Z.pointerleave,{evt:z}),this._fire(Z.pointerleave,{evt:z,target:this,currentTarget:this}),this[_e+"targetShape"]=null):Re&&(this._fire(Z.pointerleave,{evt:z,target:this,currentTarget:this}),this._fire(Z.pointerout,{evt:z,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(z){const Z=pe(z.type),_e=ye(z.type);if(Z){this.setPointersPositions(z);var Pe=!1;this._changedPointerPositions.forEach(Re=>{var Ke=this.getIntersection(Re);if(a.DD.justDragged=!1,s.Konva["_"+_e+"ListenClick"]=!0,!Ke||!Ke.isListening()){this[_e+"ClickStartShape"]=void 0;return}s.Konva.capturePointerEventsEnabled&&Ke.setPointerCapture(Re.id),this[_e+"ClickStartShape"]=Ke,Ke._fireAndBubble(Z.pointerdown,{evt:z,pointerId:Re.id}),Pe=!0;const B=z.type.indexOf("touch")>=0;Ke.preventDefault()&&z.cancelable&&B&&z.preventDefault()}),Pe||this._fire(Z.pointerdown,{evt:z,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(z){const Z=pe(z.type),_e=ye(z.type);if(!Z)return;s.Konva.isDragging()&&a.DD.node.preventDefault()&&z.cancelable&&z.preventDefault(),this.setPointersPositions(z);var Pe=!(s.Konva.isDragging()||s.Konva.isTransforming())||s.Konva.hitOnDragEnabled;if(!Pe)return;var Re={};let Ke=!1;var B=this._getTargetShape(_e);this._changedPointerPositions.forEach(K=>{const se=c.getCapturedShape(K.id)||this.getIntersection(K),Ae=K.id,de={evt:z,pointerId:Ae};var fe=B!==se;if(fe&&B&&(B._fireAndBubble(Z.pointerout,we({},de),se),B._fireAndBubble(Z.pointerleave,we({},de),se)),se){if(Re[se._id])return;Re[se._id]=!0}se&&se.isListening()?(Ke=!0,fe&&(se._fireAndBubble(Z.pointerover,we({},de),B),se._fireAndBubble(Z.pointerenter,we({},de),B),this[_e+"targetShape"]=se),se._fireAndBubble(Z.pointermove,we({},de))):B&&(this._fire(Z.pointerover,{evt:z,target:this,currentTarget:this,pointerId:Ae}),this[_e+"targetShape"]=null)}),Ke||this._fire(Z.pointermove,{evt:z,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(z){const Z=pe(z.type),_e=ye(z.type);if(!Z)return;this.setPointersPositions(z);const Pe=this[_e+"ClickStartShape"],Re=this[_e+"ClickEndShape"];var Ke={};let B=!1;this._changedPointerPositions.forEach(K=>{const se=c.getCapturedShape(K.id)||this.getIntersection(K);if(se){if(se.releaseCapture(K.id),Ke[se._id])return;Ke[se._id]=!0}const Ae=K.id,de={evt:z,pointerId:Ae};let fe=!1;s.Konva["_"+_e+"InDblClickWindow"]?(fe=!0,clearTimeout(this[_e+"DblTimeout"])):a.DD.justDragged||(s.Konva["_"+_e+"InDblClickWindow"]=!0,clearTimeout(this[_e+"DblTimeout"])),this[_e+"DblTimeout"]=setTimeout(function(){s.Konva["_"+_e+"InDblClickWindow"]=!1},s.Konva.dblClickWindow),se&&se.isListening()?(B=!0,this[_e+"ClickEndShape"]=se,se._fireAndBubble(Z.pointerup,we({},de)),s.Konva["_"+_e+"ListenClick"]&&Pe&&Pe===se&&(se._fireAndBubble(Z.pointerclick,we({},de)),fe&&Re&&Re===se&&se._fireAndBubble(Z.pointerdblclick,we({},de)))):(this[_e+"ClickEndShape"]=null,s.Konva["_"+_e+"ListenClick"]&&this._fire(Z.pointerclick,{evt:z,target:this,currentTarget:this,pointerId:Ae}),fe&&this._fire(Z.pointerdblclick,{evt:z,target:this,currentTarget:this,pointerId:Ae}))}),B||this._fire(Z.pointerup,{evt:z,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),s.Konva["_"+_e+"ListenClick"]=!1,z.cancelable&&_e!=="touch"&&z.preventDefault()}_contextmenu(z){this.setPointersPositions(z);var Z=this.getIntersection(this.getPointerPosition());Z&&Z.isListening()?Z._fireAndBubble(H,{evt:z}):this._fire(H,{evt:z,target:this,currentTarget:this})}_wheel(z){this.setPointersPositions(z);var Z=this.getIntersection(this.getPointerPosition());Z&&Z.isListening()?Z._fireAndBubble(J,{evt:z}):this._fire(J,{evt:z,target:this,currentTarget:this})}_pointercancel(z){this.setPointersPositions(z);const Z=c.getCapturedShape(z.pointerId)||this.getIntersection(this.getPointerPosition());Z&&Z._fireAndBubble(A,c.createEvent(z)),c.releaseCapture(z.pointerId)}_lostpointercapture(z){c.releaseCapture(z.pointerId)}setPointersPositions(z){var Z=this._getContentPosition(),_e=null,Pe=null;z=z||window.event,z.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(z.touches,Re=>{this._pointerPositions.push({id:Re.identifier,x:(Re.clientX-Z.left)/Z.scaleX,y:(Re.clientY-Z.top)/Z.scaleY})}),Array.prototype.forEach.call(z.changedTouches||z.touches,Re=>{this._changedPointerPositions.push({id:Re.identifier,x:(Re.clientX-Z.left)/Z.scaleX,y:(Re.clientY-Z.top)/Z.scaleY})})):(_e=(z.clientX-Z.left)/Z.scaleX,Pe=(z.clientY-Z.top)/Z.scaleY,this.pointerPos={x:_e,y:Pe},this._pointerPositions=[{x:_e,y:Pe,id:t.Util._getFirstPointerId(z)}],this._changedPointerPositions=[{x:_e,y:Pe,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(me=>{me.batchDraw()})})}(c8);var Qc={},ms={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Gt,n=xn,r=oi,s=Ws,o=Pt,a=Gt,l=hi;var c="hasShadow",u="shadowRGBA",d="patternImage",f="linearGradient",p="radialGradient";let g;function _(){return g||(g=n.Util.createCanvasElement().getContext("2d"),g)}e.shapes={};function b(L){const R=this.attrs.fillRule;R?L.fill(R):L.fill()}function y(L){L.stroke()}function w(L){const R=this.attrs.fillRule;R?L.fill(R):L.fill()}function E(L){L.stroke()}function C(){this._clearCache(c)}function S(){this._clearCache(u)}function A(){this._clearCache(d)}function P(){this._clearCache(f)}function I(){this._clearCache(p)}class O extends s.Node{constructor(R){super(R);let F;for(;F=n.Util.getRandomColor(),!(F&&!(F in e.shapes)););this.colorKey=F,e.shapes[F]=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 R=_();const F=R.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(F&&F.setTransform){const H=new n.Transform;H.translate(this.fillPatternX(),this.fillPatternY()),H.rotate(t.Konva.getAngle(this.fillPatternRotation())),H.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),H.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const V=H.getMatrix(),ae=typeof DOMMatrix=="undefined"?{a:V[0],b:V[1],c:V[2],d:V[3],e:V[4],f:V[5]}:new DOMMatrix(V);F.setTransform(ae)}return F}}_getLinearGradient(){return this._getCache(f,this.__getLinearGradient)}__getLinearGradient(){var R=this.fillLinearGradientColorStops();if(R){for(var F=_(),H=this.fillLinearGradientStartPoint(),V=this.fillLinearGradientEndPoint(),ae=F.createLinearGradient(H.x,H.y,V.x,V.y),ce=0;ce<R.length;ce+=2)ae.addColorStop(R[ce],R[ce+1]);return ae}}_getRadialGradient(){return this._getCache(p,this.__getRadialGradient)}__getRadialGradient(){var R=this.fillRadialGradientColorStops();if(R){for(var F=_(),H=this.fillRadialGradientStartPoint(),V=this.fillRadialGradientEndPoint(),ae=F.createRadialGradient(H.x,H.y,this.fillRadialGradientStartRadius(),V.x,V.y,this.fillRadialGradientEndRadius()),ce=0;ce<R.length;ce+=2)ae.addColorStop(R[ce],R[ce+1]);return ae}}getShadowRGBA(){return this._getCache(u,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var R=n.Util.colorToRGBA(this.shadowColor());if(R)return"rgba("+R.r+","+R.g+","+R.b+","+R.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 R=this.hitStrokeWidth();return R==="auto"?this.hasStroke():this.strokeEnabled()&&!!R}intersects(R){var F=this.getStage();if(!F)return!1;const H=F.bufferHitCanvas;return H.getContext().clear(),this.drawHit(H,void 0,!0),H.context.getImageData(Math.round(R.x),Math.round(R.y),1,1).data[3]>0}destroy(){return s.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(R){var F;if(!((F=this.attrs.perfectDrawEnabled)!==null&&F!==void 0?F:!0))return!1;const V=R||this.hasFill(),ae=this.hasStroke(),ce=this.getAbsoluteOpacity()!==1;if(V&&ae&&ce)return!0;const U=this.hasShadow(),J=this.shadowForStrokeEnabled();return!!(V&&ae&&U&&J)}setStrokeHitEnabled(R){n.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),R?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var R=this.size();return{x:this._centroid?-R.width/2:0,y:this._centroid?-R.height/2:0,width:R.width,height:R.height}}getClientRect(R={}){let F=!1,H=this.getParent();for(;H;){if(H.isCached()){F=!0;break}H=H.getParent()}const V=R.skipTransform,ae=R.relativeTo||F&&this.getStage()||void 0,ce=this.getSelfRect(),J=!R.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=ce.width+J,X=ce.height+J,j=!R.skipShadow&&this.hasShadow(),ye=j?this.shadowOffsetX():0,pe=j?this.shadowOffsetY():0,ie=Q+Math.abs(ye),oe=X+Math.abs(pe),Ce=j&&this.shadowBlur()||0,me=ie+Ce*2,z=oe+Ce*2,Z={width:me,height:z,x:-(J/2+Ce)+Math.min(ye,0)+ce.x,y:-(J/2+Ce)+Math.min(pe,0)+ce.y};return V?Z:this._transformedRect(Z,ae)}drawScene(R,F,H){var V=this.getLayer(),ae=R||V.getCanvas(),ce=ae.getContext(),U=this._getCanvasCache(),J=this.getSceneFunc(),Q=this.hasShadow(),X,j,ye=ae.isCache,pe=F===this;if(!this.isVisible()&&!pe)return this;if(U){ce.save();var ie=this.getAbsoluteTransform(F).getMatrix();return ce.transform(ie[0],ie[1],ie[2],ie[3],ie[4],ie[5]),this._drawCachedSceneCanvas(ce),ce.restore(),this}if(!J)return this;if(ce.save(),this._useBufferCanvas()&&!ye){X=this.getStage();const me=H||X.bufferCanvas;j=me.getContext(),j.clear(),j.save(),j._applyLineJoin(this);var oe=this.getAbsoluteTransform(F).getMatrix();j.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]),J.call(this,j,this),j.restore();var Ce=me.pixelRatio;Q&&ce._applyShadow(this),ce._applyOpacity(this),ce._applyGlobalCompositeOperation(this),ce.drawImage(me._canvas,0,0,me.width/Ce,me.height/Ce)}else{if(ce._applyLineJoin(this),!pe){var oe=this.getAbsoluteTransform(F).getMatrix();ce.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]),ce._applyOpacity(this),ce._applyGlobalCompositeOperation(this)}Q&&ce._applyShadow(this),J.call(this,ce,this)}return ce.restore(),this}drawHit(R,F,H=!1){if(!this.shouldDrawHit(F,H))return this;var V=this.getLayer(),ae=R||V.hitCanvas,ce=ae&&ae.getContext(),U=this.hitFunc()||this.sceneFunc(),J=this._getCanvasCache(),Q=J&&J.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()"),Q){ce.save();var X=this.getAbsoluteTransform(F).getMatrix();return ce.transform(X[0],X[1],X[2],X[3],X[4],X[5]),this._drawCachedHitCanvas(ce),ce.restore(),this}if(!U)return this;if(ce.save(),ce._applyLineJoin(this),!(this===F)){var ye=this.getAbsoluteTransform(F).getMatrix();ce.transform(ye[0],ye[1],ye[2],ye[3],ye[4],ye[5])}return U.call(this,ce,this),ce.restore(),this}drawHitFromCache(R=0){var F=this._getCanvasCache(),H=this._getCachedSceneCanvas(),V=F.hit,ae=V.getContext(),ce=V.getWidth(),U=V.getHeight(),J,Q,X,j,ye,pe;ae.clear(),ae.drawImage(H._canvas,0,0,ce,U);try{for(J=ae.getImageData(0,0,ce,U),Q=J.data,X=Q.length,j=n.Util._hexToRgb(this.colorKey),ye=0;ye<X;ye+=4)pe=Q[ye+3],pe>R?(Q[ye]=j.r,Q[ye+1]=j.g,Q[ye+2]=j.b,Q[ye+3]=255):Q[ye+3]=0;ae.putImageData(J,0,0)}catch(ie){n.Util.error("Unable to draw hit graph from cached scene canvas. "+ie.message)}return this}hasPointerCapture(R){return l.hasPointerCapture(R,this)}setPointerCapture(R){l.setPointerCapture(R,this)}releaseCapture(R){l.releaseCapture(R,this)}}e.Shape=O,O.prototype._fillFunc=b,O.prototype._strokeFunc=y,O.prototype._fillFuncHit=w,O.prototype._strokeFuncHit=E,O.prototype._centroid=!1,O.prototype.nodeType="Shape",(0,a._registerNode)(O),O.prototype.eventListeners={},O.prototype.on.call(O.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",C),O.prototype.on.call(O.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",S),O.prototype.on.call(O.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",A),O.prototype.on.call(O.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",P),O.prototype.on.call(O.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",I),r.Factory.addGetterSetter(O,"stroke",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(O,"strokeWidth",2,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(O,"fillAfterStrokeEnabled",!1),r.Factory.addGetterSetter(O,"hitStrokeWidth","auto",(0,o.getNumberOrAutoValidator)()),r.Factory.addGetterSetter(O,"strokeHitEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(O,"perfectDrawEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(O,"shadowForStrokeEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(O,"lineJoin"),r.Factory.addGetterSetter(O,"lineCap"),r.Factory.addGetterSetter(O,"sceneFunc"),r.Factory.addGetterSetter(O,"hitFunc"),r.Factory.addGetterSetter(O,"dash"),r.Factory.addGetterSetter(O,"dashOffset",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(O,"shadowColor",void 0,(0,o.getStringValidator)()),r.Factory.addGetterSetter(O,"shadowBlur",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(O,"shadowOpacity",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(O,"shadowOffset",["x","y"]),r.Factory.addGetterSetter(O,"shadowOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(O,"shadowOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(O,"fillPatternImage"),r.Factory.addGetterSetter(O,"fill",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(O,"fillPatternX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(O,"fillPatternY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(O,"fillLinearGradientColorStops"),r.Factory.addGetterSetter(O,"strokeLinearGradientColorStops"),r.Factory.addGetterSetter(O,"fillRadialGradientStartRadius",0),r.Factory.addGetterSetter(O,"fillRadialGradientEndRadius",0),r.Factory.addGetterSetter(O,"fillRadialGradientColorStops"),r.Factory.addGetterSetter(O,"fillPatternRepeat","repeat"),r.Factory.addGetterSetter(O,"fillEnabled",!0),r.Factory.addGetterSetter(O,"strokeEnabled",!0),r.Factory.addGetterSetter(O,"shadowEnabled",!0),r.Factory.addGetterSetter(O,"dashEnabled",!0),r.Factory.addGetterSetter(O,"strokeScaleEnabled",!0),r.Factory.addGetterSetter(O,"fillPriority","color"),r.Factory.addComponentsGetterSetter(O,"fillPatternOffset",["x","y"]),r.Factory.addGetterSetter(O,"fillPatternOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(O,"fillPatternOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(O,"fillPatternScale",["x","y"]),r.Factory.addGetterSetter(O,"fillPatternScaleX",1,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(O,"fillPatternScaleY",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(O,"fillLinearGradientStartPoint",["x","y"]),r.Factory.addComponentsGetterSetter(O,"strokeLinearGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(O,"fillLinearGradientStartPointX",0),r.Factory.addGetterSetter(O,"strokeLinearGradientStartPointX",0),r.Factory.addGetterSetter(O,"fillLinearGradientStartPointY",0),r.Factory.addGetterSetter(O,"strokeLinearGradientStartPointY",0),r.Factory.addComponentsGetterSetter(O,"fillLinearGradientEndPoint",["x","y"]),r.Factory.addComponentsGetterSetter(O,"strokeLinearGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(O,"fillLinearGradientEndPointX",0),r.Factory.addGetterSetter(O,"strokeLinearGradientEndPointX",0),r.Factory.addGetterSetter(O,"fillLinearGradientEndPointY",0),r.Factory.addGetterSetter(O,"strokeLinearGradientEndPointY",0),r.Factory.addComponentsGetterSetter(O,"fillRadialGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(O,"fillRadialGradientStartPointX",0),r.Factory.addGetterSetter(O,"fillRadialGradientStartPointY",0),r.Factory.addComponentsGetterSetter(O,"fillRadialGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(O,"fillRadialGradientEndPointX",0),r.Factory.addGetterSetter(O,"fillRadialGradientEndPointY",0),r.Factory.addGetterSetter(O,"fillPatternRotation",0),r.Factory.addGetterSetter(O,"fillRule",void 0,(0,o.getStringValidator)()),r.Factory.backCompat(O,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(ms),Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.Layer=void 0;const _s=xn,g0=Jo,rl=Ws,m0=oi,f8=rr,cX=Pt,uX=ms,dX=Gt;var fX="#",pX="beforeDraw",hX="draw",p8=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],gX=p8.length;class sl extends g0.Container{constructor(t){super(t),this.canvas=new f8.SceneCanvas,this.hitCanvas=new f8.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(){rl.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=rl.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(rl.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(rl.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 rl.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(),rl.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<gX;s++){const o=p8[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=uX.shapes[fX+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(pX,{node:this}),this.clearBeforeDraw()&&s.getContext().clear(),g0.Container.prototype.drawScene.call(this,s,n),this._fire(hX,{node:this}),this}drawHit(t,n){var r=this.getLayer(),s=t||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),g0.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()}}Qc.Layer=sl,sl.prototype.nodeType="Layer",(0,dX._registerNode)(sl),m0.Factory.addGetterSetter(sl,"imageSmoothingEnabled",!0),m0.Factory.addGetterSetter(sl,"clearBeforeDraw",!0),m0.Factory.addGetterSetter(sl,"hitGraphEnabled",!0,(0,cX.getBooleanValidator)());var Zf={};Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.FastLayer=void 0;const mX=xn,_X=Qc,vX=Gt;class _0 extends _X.Layer{constructor(t){super(t),this.listening(!1),mX.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}Zf.FastLayer=_0,_0.prototype.nodeType="FastLayer",(0,vX._registerNode)(_0);var Qf={};Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.Group=void 0;const bX=xn,yX=Jo,wX=Gt;class v0 extends yX.Container{_validateAdd(t){var n=t.getType();n!=="Group"&&n!=="Shape"&&bX.Util.throw("You may only add groups and shapes to groups.")}}Qf.Group=v0,v0.prototype.nodeType="Group",(0,wX._registerNode)(v0);var eu={};Object.defineProperty(eu,"__esModule",{value:!0}),eu.Animation=void 0;const b0=Gt,h8=xn,y0=function(){return b0.glob.performance&&b0.glob.performance.now?function(){return b0.glob.performance.now()}:function(){return new Date().getTime()}}();class Ir{constructor(t,n){this.id=Ir.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:y0(),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=Ir.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=y0(),Ir._addAnimation(this),this}stop(){return Ir._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(y0());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=Ir;t.animations.length?(t._runFrames(),h8.Util.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,h8.Util.requestAnimFrame(this._animationLoop))}}eu.Animation=Ir,Ir.animations=[],Ir.animIdCounter=0,Ir.animRunning=!1;var g8={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Easings=e.Tween=void 0;const t=xn,n=eu,r=Ws,s=Gt;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(_,b,y,w,E,C,S){this.prop=_,this.propFunc=b,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=y,this._change=E-this.begin,this.pause()}fire(_){var b=this[_];b&&b()}setTime(_){_>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():_<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=_,this.update())}getTime(){return this._time}setPosition(_){this.prevPos=this._pos,this.propFunc(_),this._pos=_}getPosition(_){return _===void 0&&(_=this._time),this.func(_,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(_){this.pause(),this._time=_,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 _=this.getTimer()-this._startTime;this.state===l?this.setTime(_):this.state===c&&this.setTime(this.duration-_)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class p{constructor(_){var b=this,y=_.node,w=y._id,E,C=_.easing||e.Easings.Linear,S=!!_.yoyo,A;typeof _.duration=="undefined"?E=.3:_.duration===0?E=.001:E=_.duration,this.node=y,this._id=u++;var P=y.getLayer()||(y instanceof s.Konva.Stage?y.getLayers():null);P||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(){b.tween.onEnterFrame()},P),this.tween=new f(A,function(I){b._tweenFunc(I)},C,0,1,E*1e3,S),this._addListeners(),p.attrs[w]||(p.attrs[w]={}),p.attrs[w][this._id]||(p.attrs[w][this._id]={}),p.tweens[w]||(p.tweens[w]={});for(A in _)o[A]===void 0&&this._addAttr(A,_[A]);this.reset(),this.onFinish=_.onFinish,this.onReset=_.onReset,this.onUpdate=_.onUpdate}_addAttr(_,b){var y=this.node,w=y._id,E,C,S,A,P,I,O,L;if(S=p.tweens[w][_],S&&delete p.attrs[w][S][_],E=y.getAttr(_),t.Util._isArray(b))if(C=[],P=Math.max(b.length,E.length),_==="points"&&b.length!==E.length&&(b.length>E.length?(O=E,E=t.Util._prepareArrayForTween(E,b,y.closed())):(I=b,b=t.Util._prepareArrayForTween(b,E,y.closed()))),_.indexOf("fill")===0)for(A=0;A<P;A++)if(A%2===0)C.push(b[A]-E[A]);else{var R=t.Util.colorToRGBA(E[A]);L=t.Util.colorToRGBA(b[A]),E[A]=R,C.push({r:L.r-R.r,g:L.g-R.g,b:L.b-R.b,a:L.a-R.a})}else for(A=0;A<P;A++)C.push(b[A]-E[A]);else d.indexOf(_)!==-1?(E=t.Util.colorToRGBA(E),L=t.Util.colorToRGBA(b),C={r:L.r-E.r,g:L.g-E.g,b:L.b-E.b,a:L.a-E.a}):C=b-E;p.attrs[w][this._id][_]={start:E,diff:C,end:b,trueEnd:I,trueStart:O},p.tweens[w][_]=this._id}_tweenFunc(_){var b=this.node,y=p.attrs[b._id][this._id],w,E,C,S,A,P,I,O;for(w in y){if(E=y[w],C=E.start,S=E.diff,O=E.end,t.Util._isArray(C))if(A=[],I=Math.max(C.length,O.length),w.indexOf("fill")===0)for(P=0;P<I;P++)P%2===0?A.push((C[P]||0)+S[P]*_):A.push("rgba("+Math.round(C[P].r+S[P].r*_)+","+Math.round(C[P].g+S[P].g*_)+","+Math.round(C[P].b+S[P].b*_)+","+(C[P].a+S[P].a*_)+")");else for(P=0;P<I;P++)A.push((C[P]||0)+S[P]*_);else d.indexOf(w)!==-1?A="rgba("+Math.round(C.r+S.r*_)+","+Math.round(C.g+S.g*_)+","+Math.round(C.b+S.b*_)+","+(C.a+S.a*_)+")":A=C+S*_;b.setAttr(w,A)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var _=this.node,b=p.attrs[_._id][this._id];b.points&&b.points.trueEnd&&_.setAttr("points",b.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var _=this.node,b=p.attrs[_._id][this._id];b.points&&b.points.trueStart&&_.points(b.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(_){return this.tween.seek(_*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var _=this.node._id,b=this._id,y=p.tweens[_],w;this.pause();for(w in y)delete p.tweens[_][w];delete p.attrs[_][b]}}e.Tween=p,p.attrs={},p.tweens={},r.Node.prototype.to=function(g){var _=g.onFinish;g.node=this,g.onFinish=function(){this.destroy(),_&&_()};var b=new p(g);b.play()},e.Easings={BackEaseIn(g,_,b,y){var w=1.70158;return b*(g/=y)*g*((w+1)*g-w)+_},BackEaseOut(g,_,b,y){var w=1.70158;return b*((g=g/y-1)*g*((w+1)*g+w)+1)+_},BackEaseInOut(g,_,b,y){var w=1.70158;return(g/=y/2)<1?b/2*(g*g*(((w*=1.525)+1)*g-w))+_:b/2*((g-=2)*g*(((w*=1.525)+1)*g+w)+2)+_},ElasticEaseIn(g,_,b,y,w,E){var C=0;return g===0?_:(g/=y)===1?_+b:(E||(E=y*.3),!w||w<Math.abs(b)?(w=b,C=E/4):C=E/(2*Math.PI)*Math.asin(b/w),-(w*Math.pow(2,10*(g-=1))*Math.sin((g*y-C)*(2*Math.PI)/E))+_)},ElasticEaseOut(g,_,b,y,w,E){var C=0;return g===0?_:(g/=y)===1?_+b:(E||(E=y*.3),!w||w<Math.abs(b)?(w=b,C=E/4):C=E/(2*Math.PI)*Math.asin(b/w),w*Math.pow(2,-10*g)*Math.sin((g*y-C)*(2*Math.PI)/E)+b+_)},ElasticEaseInOut(g,_,b,y,w,E){var C=0;return g===0?_:(g/=y/2)===2?_+b:(E||(E=y*(.3*1.5)),!w||w<Math.abs(b)?(w=b,C=E/4):C=E/(2*Math.PI)*Math.asin(b/w),g<1?-.5*(w*Math.pow(2,10*(g-=1))*Math.sin((g*y-C)*(2*Math.PI)/E))+_:w*Math.pow(2,-10*(g-=1))*Math.sin((g*y-C)*(2*Math.PI)/E)*.5+b+_)},BounceEaseOut(g,_,b,y){return(g/=y)<1/2.75?b*(7.5625*g*g)+_:g<2/2.75?b*(7.5625*(g-=1.5/2.75)*g+.75)+_:g<2.5/2.75?b*(7.5625*(g-=2.25/2.75)*g+.9375)+_:b*(7.5625*(g-=2.625/2.75)*g+.984375)+_},BounceEaseIn(g,_,b,y){return b-e.Easings.BounceEaseOut(y-g,0,b,y)+_},BounceEaseInOut(g,_,b,y){return g<y/2?e.Easings.BounceEaseIn(g*2,0,b,y)*.5+_:e.Easings.BounceEaseOut(g*2-y,0,b,y)*.5+b*.5+_},EaseIn(g,_,b,y){return b*(g/=y)*g+_},EaseOut(g,_,b,y){return-b*(g/=y)*(g-2)+_},EaseInOut(g,_,b,y){return(g/=y/2)<1?b/2*g*g+_:-b/2*(--g*(g-2)-1)+_},StrongEaseIn(g,_,b,y){return b*(g/=y)*g*g*g*g+_},StrongEaseOut(g,_,b,y){return b*((g=g/y-1)*g*g*g*g+1)+_},StrongEaseInOut(g,_,b,y){return(g/=y/2)<1?b/2*g*g*g*g*g+_:b/2*((g-=2)*g*g*g*g+2)+_},Linear(g,_,b,y){return b*g/y+_}}})(g8),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;const t=Gt,n=xn,r=Ws,s=Jo,o=c8,a=Qc,l=Zf,c=Qf,u=Wf,d=ms,f=eu,p=g8,g=hs,_=rr;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:p.Tween,Easings:p.Easings,Context:g.Context,Canvas:_.Canvas}),e.default=e.Konva}(u0),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;var n=u0;Object.defineProperty(t,"Konva",{enumerable:!0,get:function(){return n.Konva}});const r=u0;e.exports=r.Konva}(c0,c0.exports);var CX=c0.exports;const Ut=p4(CX);var w0={};Object.defineProperty(w0,"__esModule",{value:!0}),w0.Rect=void 0;const SX=oi,xX=ms,EX=Gt,AX=xn,TX=Pt;class ep extends xX.Shape{_sceneFunc(t){var n=this.cornerRadius(),r=this.width(),s=this.height();t.beginPath(),n?AX.Util.drawRoundedRectPath(t,r,s,n):t.rect(0,0,r,s),t.closePath(),t.fillStrokeShape(this)}}w0.Rect=ep,ep.prototype.className="Rect",(0,EX._registerNode)(ep),SX.Factory.addGetterSetter(ep,"cornerRadius",0,(0,TX.getNumberOrArrayOfNumbersValidator)(4));var C0={};Object.defineProperty(C0,"__esModule",{value:!0}),C0.Circle=void 0;const kX=oi,PX=ms,OX=Pt,NX=Gt;class ol extends PX.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)}}C0.Circle=ol,ol.prototype._centroid=!0,ol.prototype.className="Circle",ol.prototype._attrsAffectingSize=["radius"],(0,NX._registerNode)(ol),kX.Factory.addGetterSetter(ol,"radius",0,(0,OX.getNumberValidator)());var S0={};Object.defineProperty(S0,"__esModule",{value:!0}),S0.Image=void 0;const x0=xn,Xo=oi,IX=ms,DX=Gt,tu=Pt;let Dr=class KA extends IX.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?x0.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?x0.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=x0.Util.createImageElement();s.onload=function(){var o=new KA({image:s});n(o)},s.onerror=r,s.crossOrigin="Anonymous",s.src=t}};S0.Image=Dr,Dr.prototype.className="Image",(0,DX._registerNode)(Dr),Xo.Factory.addGetterSetter(Dr,"cornerRadius",0,(0,tu.getNumberOrArrayOfNumbersValidator)(4)),Xo.Factory.addGetterSetter(Dr,"image"),Xo.Factory.addComponentsGetterSetter(Dr,"crop",["x","y","width","height"]),Xo.Factory.addGetterSetter(Dr,"cropX",0,(0,tu.getNumberValidator)()),Xo.Factory.addGetterSetter(Dr,"cropY",0,(0,tu.getNumberValidator)()),Xo.Factory.addGetterSetter(Dr,"cropWidth",0,(0,tu.getNumberValidator)()),Xo.Factory.addGetterSetter(Dr,"cropHeight",0,(0,tu.getNumberValidator)());var nu={};Object.defineProperty(nu,"__esModule",{value:!0}),nu.Text=nu.stringToArray=void 0;const E0=xn,jn=oi,RX=ms,A0=Gt,Ys=Pt,LX=Gt;function m8(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),[])}nu.stringToArray=m8;var al="auto",MX="center",_8="inherit",iu="justify",FX="Change.konva",jX="2d",v8="-",b8="left",BX="text",UX="Text",$X="top",VX="bottom",y8="middle",w8="normal",qX="px ",tp=" ",zX="right",C8="rtl",HX="word",GX="char",S8="none",T0="…",x8=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],WX=x8.length;function KX(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 np;function k0(){return np||(np=E0.Util.createCanvasElement().getContext(jX),np)}function JX(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function YX(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function XX(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}class sn extends RX.Shape{constructor(t){super(XX(t)),this._partialTextX=0,this._partialTextY=0;for(var n=0;n<WX;n++)this.on(x8[n]+FX,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(),p=this.letterSpacing(),g=this.fill(),_=this.textDecoration(),b=_.indexOf("underline")!==-1,y=_.indexOf("line-through")!==-1,w;c=c===_8?t.direction:c;var E=a/2,C=y8;if(A0.Konva._fixTextRendering){var S=this.measureSize("M");C="alphabetic",E=(S.fontBoundingBoxAscent-S.fontBoundingBoxDescent)/2+a/2}var A=0,P=0;for(c===C8&&t.setAttr("direction",c),t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",C),t.setAttr("textAlign",b8),l===y8?u=(this.getHeight()-r*a-s*2)/2:l===VX&&(u=this.getHeight()-r*a-s*2),t.translate(s,u+s),w=0;w<r;w++){var A=0,P=0,I=n[w],O=I.text,L=I.width,R=I.lastInParagraph,F,H,V;if(t.save(),d===zX?A+=f-L-s*2:d===MX&&(A+=(f-L-s*2)/2),b){t.save(),t.beginPath();let X=A0.Konva._fixTextRendering?Math.round(o/4):Math.round(o/2);const j=A,ye=E+P+X;t.moveTo(j,ye),F=O.split(" ").length-1,H=F===0,V=d===iu&&!R?f-s*2:L,t.lineTo(j+Math.round(V),ye),t.lineWidth=o/15;const pe=this._getLinearGradient();t.strokeStyle=pe||g,t.stroke(),t.restore()}if(y){t.save(),t.beginPath();let X=A0.Konva._fixTextRendering?-Math.round(o/4):0;t.moveTo(A,E+P+X),F=O.split(" ").length-1,H=F===0,V=d===iu&&R&&!H?f-s*2:L,t.lineTo(A+Math.round(V),E+P+X),t.lineWidth=o/15;const j=this._getLinearGradient();t.strokeStyle=j||g,t.stroke(),t.restore()}if(c!==C8&&(p!==0||d===iu)){F=O.split(" ").length-1;for(var ae=m8(O),ce=0;ce<ae.length;ce++){var U=ae[ce];U===" "&&!R&&d===iu&&(A+=(f-s*2-L)/F),this._partialTextX=A,this._partialTextY=E+P,this._partialText=U,t.fillStrokeShape(this),A+=this.measureSize(U).width+p}}else p!==0&&t.setAttr("letterSpacing",`${p}px`),this._partialTextX=A,this._partialTextY=E+P,this._partialText=O,t.fillStrokeShape(this);t.restore(),r>1&&(E+=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=E0.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(BX,n),this}getWidth(){var t=this.attrs.width===al||this.attrs.width===void 0;return t?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var t=this.attrs.height===al||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 E0.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,p,g=k0(),_=this.fontSize(),b;g.save(),g.font=this._getContextFont(),b=g.measureText(t),g.restore();const y=_/100;return{actualBoundingBoxAscent:(n=b.actualBoundingBoxAscent)!==null&&n!==void 0?n:71.58203125*y,actualBoundingBoxDescent:(r=b.actualBoundingBoxDescent)!==null&&r!==void 0?r:0,actualBoundingBoxLeft:(s=b.actualBoundingBoxLeft)!==null&&s!==void 0?s:-7.421875*y,actualBoundingBoxRight:(o=b.actualBoundingBoxRight)!==null&&o!==void 0?o:75.732421875*y,alphabeticBaseline:(a=b.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(l=b.emHeightAscent)!==null&&l!==void 0?l:100*y,emHeightDescent:(c=b.emHeightDescent)!==null&&c!==void 0?c:-20*y,fontBoundingBoxAscent:(u=b.fontBoundingBoxAscent)!==null&&u!==void 0?u:91*y,fontBoundingBoxDescent:(d=b.fontBoundingBoxDescent)!==null&&d!==void 0?d:21*y,hangingBaseline:(f=b.hangingBaseline)!==null&&f!==void 0?f:72.80000305175781*y,ideographicBaseline:(p=b.ideographicBaseline)!==null&&p!==void 0?p:-21*y,width:b.width,height:_}}_getContextFont(){return this.fontStyle()+tp+this.fontVariant()+tp+(this.fontSize()+qX)+KX(this.fontFamily())}_addTextLine(t){this.align()===iu&&(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 k0().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!==al&&o!==void 0,c=a!==al&&a!==void 0,u=this.padding(),d=o-u*2,f=a-u*2,p=0,g=this.wrap(),_=g!==S8,b=g!==GX&&_,y=this.ellipsis();this.textArr=[],k0().font=this._getContextFont();for(var w=y?this._getTextWidth(T0):0,E=0,C=t.length;E<C;++E){var S=t[E],A=this._getTextWidth(S);if(l&&A>d)for(;S.length>0;){for(var P=0,I=S.length,O="",L=0;P<I;){var R=P+I>>>1,F=S.slice(0,R+1),H=this._getTextWidth(F)+w;H<=d?(P=R+1,O=F,L=H):I=R}if(O){if(b){var V,ae=S[O.length],ce=ae===tp||ae===v8;ce&&L<=d?V=O.length:V=Math.max(O.lastIndexOf(tp),O.lastIndexOf(v8))+1,V>0&&(P=V,O=O.slice(0,P),L=this._getTextWidth(O))}O=O.trimRight(),this._addTextLine(O),r=Math.max(r,L),p+=s;var U=this._shouldHandleEllipsis(p);if(U){this._tryToAddEllipsisToLastLine();break}if(S=S.slice(P),S=S.trimLeft(),S.length>0&&(A=this._getTextWidth(S),A<=d)){this._addTextLine(S),p+=s,r=Math.max(r,A);break}}else break}else this._addTextLine(S),p+=s,r=Math.max(r,A),this._shouldHandleEllipsis(p)&&E<C-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),c&&p+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!==al&&s!==void 0,a=this.padding(),l=s-a*2,c=this.wrap(),u=c!==S8;return!u||o&&t+r>l}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==al&&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+T0)<s;l||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+T0)}}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()}}nu.Text=sn,sn.prototype._fillFunc=JX,sn.prototype._strokeFunc=YX,sn.prototype.className=UX,sn.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,LX._registerNode)(sn),jn.Factory.overWriteSetter(sn,"width",(0,Ys.getNumberOrAutoValidator)()),jn.Factory.overWriteSetter(sn,"height",(0,Ys.getNumberOrAutoValidator)()),jn.Factory.addGetterSetter(sn,"direction",_8),jn.Factory.addGetterSetter(sn,"fontFamily","Arial"),jn.Factory.addGetterSetter(sn,"fontSize",12,(0,Ys.getNumberValidator)()),jn.Factory.addGetterSetter(sn,"fontStyle",w8),jn.Factory.addGetterSetter(sn,"fontVariant",w8),jn.Factory.addGetterSetter(sn,"padding",0,(0,Ys.getNumberValidator)()),jn.Factory.addGetterSetter(sn,"align",b8),jn.Factory.addGetterSetter(sn,"verticalAlign",$X),jn.Factory.addGetterSetter(sn,"lineHeight",1,(0,Ys.getNumberValidator)()),jn.Factory.addGetterSetter(sn,"wrap",HX),jn.Factory.addGetterSetter(sn,"ellipsis",!1,(0,Ys.getBooleanValidator)()),jn.Factory.addGetterSetter(sn,"letterSpacing",0,(0,Ys.getNumberValidator)()),jn.Factory.addGetterSetter(sn,"text","",(0,Ys.getStringValidator)()),jn.Factory.addGetterSetter(sn,"textDecoration","");var P0={},ip={};Object.defineProperty(ip,"__esModule",{value:!0}),ip.Line=void 0;const rp=oi,ZX=ms,E8=Pt,QX=Gt;function O0(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),p=r-u*(o-t),g=n+d*(s-e),_=r+d*(o-t);return[f,p,g,_]}function A8(e,t){var n=e.length,r=[],s,o;for(s=2;s<n-2;s+=2)o=O0(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 Xs extends ZX.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():A8(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),n=t.length,r=this.tension(),s=O0(t[n-2],t[n-1],t[0],t[1],t[2],t[3],r),o=O0(t[n-4],t[n-3],t[n-2],t[n-1],t[0],t[1],r),a=A8(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}}}ip.Line=Xs,Xs.prototype.className="Line",Xs.prototype._attrsAffectingSize=["points","bezier","tension"],(0,QX._registerNode)(Xs),rp.Factory.addGetterSetter(Xs,"closed",!1),rp.Factory.addGetterSetter(Xs,"bezier",!1),rp.Factory.addGetterSetter(Xs,"tension",0,(0,E8.getNumberValidator)()),rp.Factory.addGetterSetter(Xs,"points",[],(0,E8.getNumberArrayValidator)());var sp={},T8={};(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],p=2*l[1]-2*l[0],g=4*(u*u+d*d),_=4*(u*f+d*p),b=f*f+p*p;if(g===0)return c*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(l[2]-l[0],2));const y=_/(2*g),w=b/g,E=c+y,C=w-y*y,S=E*E+C>0?Math.sqrt(E*E+C):0,A=y*y+C>0?Math.sqrt(y*y+C):0,P=y+Math.sqrt(y*y+C)!==0?C*Math.log(Math.abs((E+S)/(y+A))):0;return Math.sqrt(g)/2*(E*S-y*A+P)};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 p=0;p<=u;p++)f+=e.binomialCoefficients[u][p]*Math.pow(1-l,u-p)*Math.pow(l,p)*c[p];return f}else{d=new Array(u);for(let p=0;p<u;p++)d[p]=u*(c[p+1]-c[p]);return s(a-1,l,d)}},o=(a,l,c)=>{let u=1,d=a/l,f=(a-c(d))/l,p=0;for(;u>.001;){const g=c(d+f),_=Math.abs(a-g)/l;if(_<u)u=_,d+=f;else{const b=c(d-f),y=Math.abs(a-b)/l;y<u?(u=y,d-=f):f/=2}if(p++,p>500)break}return d};e.t2length=o})(T8),Object.defineProperty(sp,"__esModule",{value:!0}),sp.Path=void 0;const eZ=oi,tZ=ms,nZ=Gt,ll=T8;class gn extends tZ.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=gn.parsePathData(this.data()),this.pathLength=gn.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],p=a[5],g=a[6],_=a[7],b=u>d?u:d,y=u>d?1:u/d,w=u>d?d/u:1;t.translate(l,c),t.rotate(g),t.scale(y,w),t.arc(0,0,b,f,f+p,1-_),t.scale(1/y,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],p=u.points[4]+f,g=Math.PI/180;if(Math.abs(d-p)<g&&(g=Math.abs(d-p)),f<0)for(let _=d-g;_>p;_-=g){const b=gn.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],_,0);t.push(b.x,b.y)}else for(let _=d+g;_<p;_+=g){const b=gn.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],_,0);t.push(b.x,b.y)}}else if(u.command==="C")for(let _=0;_<=1;_+=.01){const b=gn.getPointOnCubicBezier(_,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(b.x,b.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 gn.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 gn.getPointOnLine(t,a.start.x,a.start.y,l[0],l[1]);case"C":return gn.getPointOnCubicBezier((0,ll.t2length)(t,gn.getPathLength(n),b=>(0,ll.getCubicArcLength)([a.start.x,l[0],l[2],l[4]],[a.start.y,l[1],l[3],l[5]],b)),a.start.x,a.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return gn.getPointOnQuadraticBezier((0,ll.t2length)(t,gn.getPathLength(n),b=>(0,ll.getQuadraticArcLength)([a.start.x,l[0],l[2]],[a.start.y,l[1],l[3]],b)),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],p=l[4],g=l[5],_=l[6];return p+=g*t/a.pathLength,gn.getPointOnEllipticalArc(c,u,d,f,p,_)}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 p=((a-n)*(s-n)+(l-r)*(o-r))/(c*c),g=n+p*(s-n),_=r+p*(o-r),b=this.getLineLength(a,l,g,_),y=Math.sqrt(t*t-b*b),w=Math.sqrt(y*y/(1+u*u))*(s<n?-1:1),E=u*w;return{x:g+w,y:_+E}}static getPointOnCubicBezier(t,n,r,s,o,a,l,c,u){function d(y){return y*y*y}function f(y){return 3*y*y*(1-y)}function p(y){return 3*y*(1-y)*(1-y)}function g(y){return(1-y)*(1-y)*(1-y)}var _=c*d(t)+a*f(t)+s*p(t)+n*g(t),b=u*d(t)+l*f(t)+o*p(t)+r*g(t);return{x:_,y:b}}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),p=l*c(t)+o*u(t)+r*d(t);return{x:f,y:p}}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 p=o[s],g=p.charAt(0);for(p=p.slice(1),l.length=0;f=d.exec(p);)l.push(f[0]);for(var _=[],b=0,y=l.length;b<y;b++){if(l[b]==="00"){_.push(0,0);continue}var w=parseFloat(l[b]);isNaN(w)?_.push(0):_.push(w)}for(;_.length>0&&!isNaN(_[0]);){var E="",C=[],S=c,A=u,P,I,O,L,R,F,H,V,ae,ce;switch(g){case"l":c+=_.shift(),u+=_.shift(),E="L",C.push(c,u);break;case"L":c=_.shift(),u=_.shift(),C.push(c,u);break;case"m":var U=_.shift(),J=_.shift();if(c+=U,u+=J,E="M",a.length>2&&a[a.length-1].command==="z"){for(var Q=a.length-2;Q>=0;Q--)if(a[Q].command==="M"){c=a[Q].points[0]+U,u=a[Q].points[1]+J;break}}C.push(c,u),g="l";break;case"M":c=_.shift(),u=_.shift(),E="M",C.push(c,u),g="L";break;case"h":c+=_.shift(),E="L",C.push(c,u);break;case"H":c=_.shift(),E="L",C.push(c,u);break;case"v":u+=_.shift(),E="L",C.push(c,u);break;case"V":u=_.shift(),E="L",C.push(c,u);break;case"C":C.push(_.shift(),_.shift(),_.shift(),_.shift()),c=_.shift(),u=_.shift(),C.push(c,u);break;case"c":C.push(c+_.shift(),u+_.shift(),c+_.shift(),u+_.shift()),c+=_.shift(),u+=_.shift(),E="C",C.push(c,u);break;case"S":I=c,O=u,P=a[a.length-1],P.command==="C"&&(I=c+(c-P.points[2]),O=u+(u-P.points[3])),C.push(I,O,_.shift(),_.shift()),c=_.shift(),u=_.shift(),E="C",C.push(c,u);break;case"s":I=c,O=u,P=a[a.length-1],P.command==="C"&&(I=c+(c-P.points[2]),O=u+(u-P.points[3])),C.push(I,O,c+_.shift(),u+_.shift()),c+=_.shift(),u+=_.shift(),E="C",C.push(c,u);break;case"Q":C.push(_.shift(),_.shift()),c=_.shift(),u=_.shift(),C.push(c,u);break;case"q":C.push(c+_.shift(),u+_.shift()),c+=_.shift(),u+=_.shift(),E="Q",C.push(c,u);break;case"T":I=c,O=u,P=a[a.length-1],P.command==="Q"&&(I=c+(c-P.points[0]),O=u+(u-P.points[1])),c=_.shift(),u=_.shift(),E="Q",C.push(I,O,c,u);break;case"t":I=c,O=u,P=a[a.length-1],P.command==="Q"&&(I=c+(c-P.points[0]),O=u+(u-P.points[1])),c+=_.shift(),u+=_.shift(),E="Q",C.push(I,O,c,u);break;case"A":L=_.shift(),R=_.shift(),F=_.shift(),H=_.shift(),V=_.shift(),ae=c,ce=u,c=_.shift(),u=_.shift(),E="A",C=this.convertEndpointToCenterParameterization(ae,ce,c,u,H,V,L,R,F);break;case"a":L=_.shift(),R=_.shift(),F=_.shift(),H=_.shift(),V=_.shift(),ae=c,ce=u,c+=_.shift(),u+=_.shift(),E="A",C=this.convertEndpointToCenterParameterization(ae,ce,c,u,H,V,L,R,F);break}a.push({command:E||g,points:C,start:{x:S,y:A},pathLength:this.calcLength(S,A,E||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=gn;switch(r){case"L":return u.getLineLength(t,n,s[0],s[1]);case"C":return(0,ll.getCubicArcLength)([t,s[0],s[2],s[4]],[n,s[1],s[3],s[5]],1);case"Q":return(0,ll.getQuadraticArcLength)([t,s[0],s[2]],[n,s[1],s[3]],1);case"A":o=0;var d=s[4],f=s[5],p=s[4]+f,g=Math.PI/180;if(Math.abs(d-p)<g&&(g=Math.abs(d-p)),a=u.getPointOnEllipticalArc(s[0],s[1],s[2],s[3],d,0),f<0)for(c=d-g;c>p;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<p;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],p,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,p=-1*Math.sin(d)*(t-r)/2+Math.cos(d)*(n-s)/2,g=f*f/(l*l)+p*p/(c*c);g>1&&(l*=Math.sqrt(g),c*=Math.sqrt(g));var _=Math.sqrt((l*l*(c*c)-l*l*(p*p)-c*c*(f*f))/(l*l*(p*p)+c*c*(f*f)));o===a&&(_*=-1),isNaN(_)&&(_=0);var b=_*l*p/c,y=_*-c*f/l,w=(t+r)/2+Math.cos(d)*b-Math.sin(d)*y,E=(n+s)/2+Math.sin(d)*b+Math.cos(d)*y,C=function(R){return Math.sqrt(R[0]*R[0]+R[1]*R[1])},S=function(R,F){return(R[0]*F[0]+R[1]*F[1])/(C(R)*C(F))},A=function(R,F){return(R[0]*F[1]<R[1]*F[0]?-1:1)*Math.acos(S(R,F))},P=A([1,0],[(f-b)/l,(p-y)/c]),I=[(f-b)/l,(p-y)/c],O=[(-1*f-b)/l,(-1*p-y)/c],L=A(I,O);return S(I,O)<=-1&&(L=Math.PI),S(I,O)>=1&&(L=0),a===0&&L>0&&(L=L-2*Math.PI),a===1&&L<0&&(L=L+2*Math.PI),[w,E,l,c,P,L,d,a]}}sp.Path=gn,gn.prototype.className="Path",gn.prototype._attrsAffectingSize=["data"],(0,nZ._registerNode)(gn),eZ.Factory.addGetterSetter(gn,"data"),Object.defineProperty(P0,"__esModule",{value:!0}),P0.Arrow=void 0;const op=oi,iZ=ip,k8=Pt,rZ=Gt,P8=sp;class Zo extends iZ.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 p=[s[s.length-4],s[s.length-3],s[s.length-2],s[s.length-1],r[l-2],r[l-1]],g=P8.Path.calcLength(s[s.length-4],s[s.length-3],"C",p),_=P8.Path.getPointOnQuadraticBezier(Math.min(1,1-a/g),p[0],p[1],p[2],p[3],p[4],p[5]);c=r[l-2]-_.x,u=r[l-1]-_.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}}}P0.Arrow=Zo,Zo.prototype.className="Arrow",(0,rZ._registerNode)(Zo),op.Factory.addGetterSetter(Zo,"pointerLength",10,(0,k8.getNumberValidator)()),op.Factory.addGetterSetter(Zo,"pointerWidth",10,(0,k8.getNumberValidator)()),op.Factory.addGetterSetter(Zo,"pointerAtBeginning",!1),op.Factory.addGetterSetter(Zo,"pointerAtEnding",!0);function O8(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 sZ(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return N8(this.cover(t,n),t,n,e)}function N8(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,p,g,_,b,y,w,E;if(!o)return e._root=a,e;for(;o.length;)if((b=t>=(f=(l+u)/2))?l=f:u=f,(y=n>=(p=(c+d)/2))?c=p:d=p,s=o,!(o=o[w=y<<1|b]))return s[w]=a,e;if(g=+e._x.call(null,o.data),_=+e._y.call(null,o.data),t===g&&n===_)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),(b=t>=(f=(l+u)/2))?l=f:u=f,(y=n>=(p=(c+d)/2))?c=p:d=p;while((w=y<<1|b)===(E=(_>=p)<<1|g>=f));return s[E]=o,s[w]=a,e}function oZ(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)N8(this,a[n],l[n],e[n]);return this}function aZ(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 lZ(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function cZ(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 Gn(e,t,n,r,s){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=s}function uZ(e,t,n){var r,s=this._x0,o=this._y0,a,l,c,u,d=this._x1,f=this._y1,p=[],g=this._root,_,b;for(g&&p.push(new Gn(g,s,o,d,f)),n==null?n=1/0:(s=e-n,o=t-n,d=e+n,f=t+n,n*=n);_=p.pop();)if(!(!(g=_.node)||(a=_.x0)>d||(l=_.y0)>f||(c=_.x1)<s||(u=_.y1)<o))if(g.length){var y=(a+c)/2,w=(l+u)/2;p.push(new Gn(g[3],y,w,c,u),new Gn(g[2],a,w,y,u),new Gn(g[1],y,l,c,w),new Gn(g[0],a,l,y,w)),(b=(t>=w)<<1|e>=y)&&(_=p[p.length-1],p[p.length-1]=p[p.length-1-b],p[p.length-1-b]=_)}else{var E=e-+this._x.call(null,g.data),C=t-+this._y.call(null,g.data),S=E*E+C*C;if(S<n){var A=Math.sqrt(n=S);s=e-A,o=t-A,d=e+A,f=t+A,r=g.data}}return r}function dZ(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,p,g,_,b,y,w;if(!n)return this;if(n.length)for(;;){if((_=d>=(p=(a+c)/2))?a=p:c=p,(b=f>=(g=(l+u)/2))?l=g:u=g,t=n,!(n=n[y=b<<1|_]))return this;if(!n.length)break;(t[y+1&3]||t[y+2&3]||t[y+3&3])&&(r=t,w=y)}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[y]=o:delete t[y],(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 fZ(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function pZ(){return this._root}function hZ(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function gZ(e){var t=[],n,r=this._root,s,o,a,l,c;for(r&&t.push(new Gn(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 Gn(s,u,d,l,c)),(s=r[2])&&t.push(new Gn(s,o,d,u,c)),(s=r[1])&&t.push(new Gn(s,u,a,l,d)),(s=r[0])&&t.push(new Gn(s,o,a,u,d))}return this}function mZ(e){var t=[],n=[],r;for(this._root&&t.push(new Gn(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 Gn(o,a,l,d,f)),(o=s[1])&&t.push(new Gn(o,d,l,c,f)),(o=s[2])&&t.push(new Gn(o,a,f,d,u)),(o=s[3])&&t.push(new Gn(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 _Z(e){return e[0]}function vZ(e){return arguments.length?(this._x=e,this):this._x}function bZ(e){return e[1]}function yZ(e){return arguments.length?(this._y=e,this):this._y}function N0(e,t,n){var r=new I0(t==null?_Z:t,n==null?bZ:n,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function I0(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 I8(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Wn=N0.prototype=I0.prototype;Wn.copy=function(){var e=new I0(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=I8(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]=I8(r));return e},Wn.add=sZ,Wn.addAll=oZ,Wn.cover=aZ,Wn.data=lZ,Wn.extent=cZ,Wn.find=uZ,Wn.remove=dZ,Wn.removeAll=fZ,Wn.root=pZ,Wn.size=hZ,Wn.visit=gZ,Wn.visitAfter=mZ,Wn.x=vZ,Wn.y=yZ;function Kn(e){return function(){return e}}function Zs(e){return(e()-.5)*1e-6}function wZ(e){return e.x+e.vx}function CZ(e){return e.y+e.vy}function SZ(e){var t,n,r,s=1,o=1;typeof e!="function"&&(e=Kn(e==null?1:+e));function a(){for(var u,d=t.length,f,p,g,_,b,y,w=0;w<o;++w)for(f=N0(t,wZ,CZ).visitAfter(l),u=0;u<d;++u)p=t[u],b=n[p.index],y=b*b,g=p.x+p.vx,_=p.y+p.vy,f.visit(E);function E(C,S,A,P,I){var O=C.data,L=C.r,R=b+L;if(O){if(O.index>p.index){var F=g-O.x-O.vx,H=_-O.y-O.vy,V=F*F+H*H;V<R*R&&(F===0&&(F=Zs(r),V+=F*F),H===0&&(H=Zs(r),V+=H*H),V=(R-(V=Math.sqrt(V)))/V*s,p.vx+=(F*=V)*(R=(L*=L)/(y+L)),p.vy+=(H*=V)*R,O.vx-=F*(R=1-R),O.vy-=H*R)}return}return S>g+R||P<g-R||A>_+R||I<_-R}}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:Kn(+u),c(),a):e},a}function xZ(e){return e.index}function D8(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function EZ(e){var t=xZ,n=f,r,s=Kn(30),o,a,l,c,u,d=1;e==null&&(e=[]);function f(y){return 1/Math.min(l[y.source.index],l[y.target.index])}function p(y){for(var w=0,E=e.length;w<d;++w)for(var C=0,S,A,P,I,O,L,R;C<E;++C)S=e[C],A=S.source,P=S.target,I=P.x+P.vx-A.x-A.vx||Zs(u),O=P.y+P.vy-A.y-A.vy||Zs(u),L=Math.sqrt(I*I+O*O),L=(L-o[C])/L*y*r[C],I*=L,O*=L,P.vx-=I*(R=c[C]),P.vy-=O*R,A.vx+=I*(R=1-R),A.vy+=O*R}function g(){if(a){var y,w=a.length,E=e.length,C=new Map(a.map((A,P)=>[t(A,P,a),A])),S;for(y=0,l=new Array(w);y<E;++y)S=e[y],S.index=y,typeof S.source!="object"&&(S.source=D8(C,S.source)),typeof S.target!="object"&&(S.target=D8(C,S.target)),l[S.source.index]=(l[S.source.index]||0)+1,l[S.target.index]=(l[S.target.index]||0)+1;for(y=0,c=new Array(E);y<E;++y)S=e[y],c[y]=l[S.source.index]/(l[S.source.index]+l[S.target.index]);r=new Array(E),_(),o=new Array(E),b()}}function _(){if(a)for(var y=0,w=e.length;y<w;++y)r[y]=+n(e[y],y,e)}function b(){if(a)for(var y=0,w=e.length;y<w;++y)o[y]=+s(e[y],y,e)}return p.initialize=function(y,w){a=y,u=w,g()},p.links=function(y){return arguments.length?(e=y,g(),p):e},p.id=function(y){return arguments.length?(t=y,p):t},p.iterations=function(y){return arguments.length?(d=+y,p):d},p.strength=function(y){return arguments.length?(n=typeof y=="function"?y:Kn(+y),_(),p):n},p.distance=function(y){return arguments.length?(s=typeof y=="function"?y:Kn(+y),b(),p):s},p}var AZ={value:()=>{}};function R8(){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 ap(n)}function ap(e){this._=e}function TZ(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}})}ap.prototype=R8.prototype={constructor:ap,on:function(e,t){var n=this._,r=TZ(e+"",n),s,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((s=(e=r[o]).type)&&(s=kZ(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]=L8(n[s],e.name,t);else if(t==null)for(s in n)n[s]=L8(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 ap(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 kZ(e,t){for(var n=0,r=e.length,s;n<r;++n)if((s=e[n]).name===t)return s.value}function L8(e,t,n){for(var r=0,s=e.length;r<s;++r)if(e[r].name===t){e[r]=AZ,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var cl=0,ru=0,su=0,M8=1e3,lp,ou,cp=0,Qo=0,up=0,au=typeof performance=="object"&&performance.now?performance:Date,F8=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function j8(){return Qo||(F8(PZ),Qo=au.now()+up)}function PZ(){Qo=0}function D0(){this._call=this._time=this._next=null}D0.prototype=B8.prototype={constructor:D0,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?j8():+n)+(t==null?0:+t),!this._next&&ou!==this&&(ou?ou._next=this:lp=this,ou=this),this._call=e,this._time=n,R0()},stop:function(){this._call&&(this._call=null,this._time=1/0,R0())}};function B8(e,t,n){var r=new D0;return r.restart(e,t,n),r}function OZ(){j8(),++cl;for(var e=lp,t;e;)(t=Qo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--cl}function U8(){Qo=(cp=au.now())+up,cl=ru=0;try{OZ()}finally{cl=0,IZ(),Qo=0}}function NZ(){var e=au.now(),t=e-cp;t>M8&&(up-=t,cp=e)}function IZ(){for(var e,t=lp,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:lp=n);ou=e,R0(r)}function R0(e){if(!cl){ru&&(ru=clearTimeout(ru));var t=e-Qo;t>24?(e<1/0&&(ru=setTimeout(U8,e-au.now()-up)),su&&(su=clearInterval(su))):(su||(cp=au.now(),su=setInterval(NZ,M8)),cl=1,F8(U8))}}const DZ=1664525,RZ=1013904223,$8=4294967296;function LZ(){let e=1;return()=>(e=(DZ*e+RZ)%$8)/$8}function MZ(e){return e.x}function FZ(e){return e.y}var jZ=10,BZ=Math.PI*(3-Math.sqrt(5));function UZ(e){var t,n=1,r=.001,s=1-Math.pow(r,1/300),o=0,a=.6,l=new Map,c=B8(f),u=R8("tick","end"),d=LZ();e==null&&(e=[]);function f(){p(),u.call("tick",t),n<r&&(c.stop(),u.call("end",t))}function p(b){var y,w=e.length,E;b===void 0&&(b=1);for(var C=0;C<b;++C)for(n+=(o-n)*s,l.forEach(function(S){S(n)}),y=0;y<w;++y)E=e[y],E.fx==null?(isNaN(E.vx)&&(E.vx=0),E.x+=E.vx*=a):(E.x=E.fx,E.vx=0),E.fy==null?(isNaN(E.vy)&&(E.vy=0),E.y+=E.vy*=a):(E.y=E.fy,E.vy=0);return t}function g(){for(var b=0,y=e.length,w;b<y;++b){if(w=e[b],w.index=b,w.fx!=null&&(w.x=w.fx),w.fy!=null&&(w.y=w.fy),isNaN(w.x)||isNaN(w.y)){var E=jZ*Math.sqrt(.5+b),C=b*BZ;w.x=E*Math.cos(C),w.y=E*Math.sin(C)}(isNaN(w.vx)||isNaN(w.vy))&&(w.vx=w.vy=0)}}function _(b){return b.initialize&&b.initialize(e,d),b}return g(),t={tick:p,restart:function(){return c.restart(f),t},stop:function(){return c.stop(),t},nodes:function(b){return arguments.length?(e=b,g(),l.forEach(_),t):e},alpha:function(b){return arguments.length?(n=+b,t):n},alphaMin:function(b){return arguments.length?(r=+b,t):r},alphaDecay:function(b){return arguments.length?(s=+b,t):+s},alphaTarget:function(b){return arguments.length?(o=+b,t):o},velocityDecay:function(b){return arguments.length?(a=1-b,t):1-a},randomSource:function(b){return arguments.length?(d=b,l.forEach(_),t):d},force:function(b,y){return arguments.length>1?(y==null?l.delete(b):l.set(b,_(y)),t):l.get(b)},find:function(b,y,w){var E=0,C=e.length,S,A,P,I,O;for(w==null?w=1/0:w*=w,E=0;E<C;++E)I=e[E],S=b-I.x,A=y-I.y,P=S*S+A*A,P<w&&(O=I,w=P);return O},on:function(b,y){return arguments.length>1?(u.on(b,y),t):u.on(b)}}}function $Z(){var e,t,n,r,s=Kn(-30),o,a=1,l=1/0,c=.81;function u(g){var _,b=e.length,y=N0(e,MZ,FZ).visitAfter(f);for(r=g,_=0;_<b;++_)t=e[_],y.visit(p)}function d(){if(e){var g,_=e.length,b;for(o=new Array(_),g=0;g<_;++g)b=e[g],o[b.index]=+s(b,g,e)}}function f(g){var _=0,b,y,w=0,E,C,S;if(g.length){for(E=C=S=0;S<4;++S)(b=g[S])&&(y=Math.abs(b.value))&&(_+=b.value,w+=y,E+=y*b.x,C+=y*b.y);g.x=E/w,g.y=C/w}else{b=g,b.x=b.data.x,b.y=b.data.y;do _+=o[b.data.index];while(b=b.next)}g.value=_}function p(g,_,b,y){if(!g.value)return!0;var w=g.x-t.x,E=g.y-t.y,C=y-_,S=w*w+E*E;if(C*C/c<S)return S<l&&(w===0&&(w=Zs(n),S+=w*w),E===0&&(E=Zs(n),S+=E*E),S<a&&(S=Math.sqrt(a*S)),t.vx+=w*g.value*r/S,t.vy+=E*g.value*r/S),!0;if(g.length||S>=l)return;(g.data!==t||g.next)&&(w===0&&(w=Zs(n),S+=w*w),E===0&&(E=Zs(n),S+=E*E),S<a&&(S=Math.sqrt(a*S)));do g.data!==t&&(C=o[g.data.index]*r/S,t.vx+=w*C,t.vy+=E*C);while(g=g.next)}return u.initialize=function(g,_){e=g,n=_,d()},u.strength=function(g){return arguments.length?(s=typeof g=="function"?g:Kn(+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 VZ(e){var t=Kn(.1),n,r,s;typeof e!="function"&&(e=Kn(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:Kn(+l),a(),o):t},o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Kn(+l),a(),o):e},o}function qZ(e){var t=Kn(.1),n,r,s;typeof e!="function"&&(e=Kn(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:Kn(+l),a(),o):t},o.y=function(l){return arguments.length?(e=typeof l=="function"?l:Kn(+l),a(),o):e},o}function zZ(e,t,n){return t=pp(t),W8(e,V8()?Reflect.construct(t,n||[],pp(e).constructor):t.apply(e,n))}function V8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(V8=function(){return!!e})()}function q8(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 lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q8(Object(n),!0).forEach(function(r){vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sr(){sr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,s=Object.defineProperty||function(U,J,Q){U[J]=Q.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(U,J,Q){return Object.defineProperty(U,J,{value:Q,enumerable:!0,configurable:!0,writable:!0}),U[J]}try{u({},"")}catch(U){u=function(J,Q,X){return J[Q]=X}}function d(U,J,Q,X){var j=J&&J.prototype instanceof w?J:w,ye=Object.create(j.prototype),pe=new ae(X||[]);return s(ye,"_invoke",{value:R(U,Q,pe)}),ye}function f(U,J,Q){try{return{type:"normal",arg:U.call(J,Q)}}catch(X){return{type:"throw",arg:X}}}t.wrap=d;var p="suspendedStart",g="suspendedYield",_="executing",b="completed",y={};function w(){}function E(){}function C(){}var S={};u(S,a,function(){return this});var A=Object.getPrototypeOf,P=A&&A(A(ce([])));P&&P!==n&&r.call(P,a)&&(S=P);var I=C.prototype=w.prototype=Object.create(S);function O(U){["next","throw","return"].forEach(function(J){u(U,J,function(Q){return this._invoke(J,Q)})})}function L(U,J){function Q(j,ye,pe,ie){var oe=f(U[j],U,ye);if(oe.type!=="throw"){var Ce=oe.arg,me=Ce.value;return me&&typeof me=="object"&&r.call(me,"__await")?J.resolve(me.__await).then(function(z){Q("next",z,pe,ie)},function(z){Q("throw",z,pe,ie)}):J.resolve(me).then(function(z){Ce.value=z,pe(Ce)},function(z){return Q("throw",z,pe,ie)})}ie(oe.arg)}var X;s(this,"_invoke",{value:function(j,ye){function pe(){return new J(function(ie,oe){Q(j,ye,ie,oe)})}return X=X?X.then(pe,pe):pe()}})}function R(U,J,Q){var X=p;return function(j,ye){if(X===_)throw new Error("Generator is already running");if(X===b){if(j==="throw")throw ye;return{value:e,done:!0}}for(Q.method=j,Q.arg=ye;;){var pe=Q.delegate;if(pe){var ie=F(pe,Q);if(ie){if(ie===y)continue;return ie}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(X===p)throw X=b,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);X=_;var oe=f(U,J,Q);if(oe.type==="normal"){if(X=Q.done?b:g,oe.arg===y)continue;return{value:oe.arg,done:Q.done}}oe.type==="throw"&&(X=b,Q.method="throw",Q.arg=oe.arg)}}}function F(U,J){var Q=J.method,X=U.iterator[Q];if(X===e)return J.delegate=null,Q==="throw"&&U.iterator.return&&(J.method="return",J.arg=e,F(U,J),J.method==="throw")||Q!=="return"&&(J.method="throw",J.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),y;var j=f(X,U.iterator,J.arg);if(j.type==="throw")return J.method="throw",J.arg=j.arg,J.delegate=null,y;var ye=j.arg;return ye?ye.done?(J[U.resultName]=ye.value,J.next=U.nextLoc,J.method!=="return"&&(J.method="next",J.arg=e),J.delegate=null,y):ye:(J.method="throw",J.arg=new TypeError("iterator result is not an object"),J.delegate=null,y)}function H(U){var J={tryLoc:U[0]};1 in U&&(J.catchLoc=U[1]),2 in U&&(J.finallyLoc=U[2],J.afterLoc=U[3]),this.tryEntries.push(J)}function V(U){var J=U.completion||{};J.type="normal",delete J.arg,U.completion=J}function ae(U){this.tryEntries=[{tryLoc:"root"}],U.forEach(H,this),this.reset(!0)}function ce(U){if(U||U===""){var J=U[a];if(J)return J.call(U);if(typeof U.next=="function")return U;if(!isNaN(U.length)){var Q=-1,X=function j(){for(;++Q<U.length;)if(r.call(U,Q))return j.value=U[Q],j.done=!1,j;return j.value=e,j.done=!0,j};return X.next=X}}throw new TypeError(typeof U+" is not iterable")}return E.prototype=C,s(I,"constructor",{value:C,configurable:!0}),s(C,"constructor",{value:E,configurable:!0}),E.displayName=u(C,c,"GeneratorFunction"),t.isGeneratorFunction=function(U){var J=typeof U=="function"&&U.constructor;return!!J&&(J===E||(J.displayName||J.name)==="GeneratorFunction")},t.mark=function(U){return Object.setPrototypeOf?Object.setPrototypeOf(U,C):(U.__proto__=C,u(U,c,"GeneratorFunction")),U.prototype=Object.create(I),U},t.awrap=function(U){return{__await:U}},O(L.prototype),u(L.prototype,l,function(){return this}),t.AsyncIterator=L,t.async=function(U,J,Q,X,j){j===void 0&&(j=Promise);var ye=new L(d(U,J,Q,X),j);return t.isGeneratorFunction(J)?ye:ye.next().then(function(pe){return pe.done?pe.value:ye.next()})},O(I),u(I,c,"Generator"),u(I,a,function(){return this}),u(I,"toString",function(){return"[object Generator]"}),t.keys=function(U){var J=Object(U),Q=[];for(var X in J)Q.push(X);return Q.reverse(),function j(){for(;Q.length;){var ye=Q.pop();if(ye in J)return j.value=ye,j.done=!1,j}return j.done=!0,j}},t.values=ce,ae.prototype={constructor:ae,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(V),!U)for(var J in this)J.charAt(0)==="t"&&r.call(this,J)&&!isNaN(+J.slice(1))&&(this[J]=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 J=this;function Q(oe,Ce){return ye.type="throw",ye.arg=U,J.next=oe,Ce&&(J.method="next",J.arg=e),!!Ce}for(var X=this.tryEntries.length-1;X>=0;--X){var j=this.tryEntries[X],ye=j.completion;if(j.tryLoc==="root")return Q("end");if(j.tryLoc<=this.prev){var pe=r.call(j,"catchLoc"),ie=r.call(j,"finallyLoc");if(pe&&ie){if(this.prev<j.catchLoc)return Q(j.catchLoc,!0);if(this.prev<j.finallyLoc)return Q(j.finallyLoc)}else if(pe){if(this.prev<j.catchLoc)return Q(j.catchLoc,!0)}else{if(!ie)throw new Error("try statement without catch or finally");if(this.prev<j.finallyLoc)return Q(j.finallyLoc)}}}},abrupt:function(U,J){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var X=this.tryEntries[Q];if(X.tryLoc<=this.prev&&r.call(X,"finallyLoc")&&this.prev<X.finallyLoc){var j=X;break}}j&&(U==="break"||U==="continue")&&j.tryLoc<=J&&J<=j.finallyLoc&&(j=null);var ye=j?j.completion:{};return ye.type=U,ye.arg=J,j?(this.method="next",this.next=j.finallyLoc,y):this.complete(ye)},complete:function(U,J){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"&&J&&(this.next=J),y},finish:function(U){for(var J=this.tryEntries.length-1;J>=0;--J){var Q=this.tryEntries[J];if(Q.finallyLoc===U)return this.complete(Q.completion,Q.afterLoc),V(Q),y}},catch:function(U){for(var J=this.tryEntries.length-1;J>=0;--J){var Q=this.tryEntries[J];if(Q.tryLoc===U){var X=Q.completion;if(X.type==="throw"){var j=X.arg;V(Q)}return j}}throw new Error("illegal catch attempt")},delegateYield:function(U,J,Q){return this.delegate={iterator:ce(U),resultName:J,nextLoc:Q},this.method==="next"&&(this.arg=e),y}},t}function z8(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 H8(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 cu(e){return function(){var t=this,n=arguments;return new Promise(function(r,s){var o=e.apply(t,n);function a(c){H8(o,r,s,a,l,"next",c)}function l(c){H8(o,r,s,a,l,"throw",c)}a(void 0)})}}function dp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G8(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,z8(r.key),r)}}function fp(e,t,n){return t&&G8(e.prototype,t),n&&G8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vs(e,t,n){return(t=z8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pp(e){return pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pp(e)}function L0(e,t){return L0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},L0(e,t)}function uu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W8(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 uu(e)}function HZ(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(p){f=!0,a=p}finally{try{if(!d&&s.return!=null&&(c=s.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}(e,t)||K8(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 K8(e,t){if(e){if(typeof e=="string")return J8(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)?J8(e,t):void 0}}function J8(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 M0(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=K8(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 hp(e,t,n){return X8(e,t),Z8(n,"get"),function(r,s){return s.get?s.get.call(r):s.value}(e,n)}function Y8(e,t,n,r){return X8(e,t),Z8(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 X8(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}function Z8(e,t){if(e===void 0)throw new TypeError("attempted to "+t+" private static field before its declaration")}function GZ(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 WZ(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,GZ(r.key),r)}}function KZ(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(p){f=!0,a=p}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 Q8(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)?Q8(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 Q8(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 du=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}},Pn=!en(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),gp=!en(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),e5=gp,t5=Function.prototype,F0=t5.call,JZ=e5&&t5.bind.bind(F0,F0),Yt=e5?JZ:function(e){return function(){return F0.apply(e,arguments)}},fu=function(e){return e==null},YZ=fu,XZ=TypeError,mp=function(e){if(YZ(e))throw new XZ("Can't call method on "+e);return e},ZZ=mp,QZ=Object,ea=function(e){return QZ(ZZ(e))},eQ=ea,tQ=Yt({}.hasOwnProperty),gi=Object.hasOwn||function(e,t){return tQ(eQ(e),t)},j0=Pn,nQ=gi,n5=Function.prototype,iQ=j0&&Object.getOwnPropertyDescriptor,B0=nQ(n5,"name"),pu={EXISTS:B0,PROPER:B0&&function(){}.name==="something",CONFIGURABLE:B0&&(!j0||j0&&iQ(n5,"name").configurable)},i5={exports:{}},U0=typeof document=="object"&&document.all,on=U0===void 0&&U0!==void 0?function(e){return typeof e=="function"||e===U0}:function(e){return typeof e=="function"},hu=function(e){return e&&e.Math===Math&&e},tn=hu(typeof globalThis=="object"&&globalThis)||hu(typeof window=="object"&&window)||hu(typeof self=="object"&&self)||hu(typeof du=="object"&&du)||hu(typeof du=="object"&&du)||function(){return this}()||Function("return this")(),r5=tn,rQ=Object.defineProperty,$0=function(e,t){try{rQ(r5,e,{value:t,configurable:!0,writable:!0})}catch(n){r5[e]=t}return t},sQ=$0,s5="__core-js_shared__",V0=tn[s5]||sQ(s5,{}),oQ=on,q0=V0,aQ=Yt(Function.toString);oQ(q0.inspectSource)||(q0.inspectSource=function(e){return aQ(e)});var Qs,_p,z0=q0.inspectSource,lQ=on,o5=tn.WeakMap,cQ=lQ(o5)&&/native code/.test(String(o5)),uQ=on,Li=function(e){return typeof e=="object"?e!==null:uQ(e)},Rr={},a5=Li,H0=tn.document,dQ=a5(H0)&&a5(H0.createElement),vp=function(e){return dQ?H0.createElement(e):{}},fQ=vp,l5=!Pn&&!en(function(){return Object.defineProperty(fQ("div"),"a",{get:function(){return 7}}).a!==7}),c5=Pn&&en(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),pQ=Li,hQ=String,gQ=TypeError,Bn=function(e){if(pQ(e))return e;throw new gQ(hQ(e)+" is not an object")},mQ=gp,bp=Function.prototype.call,On=mQ?bp.bind(bp):function(){return bp.apply(bp,arguments)},G0=tn,_Q=on,ta=function(e,t){return arguments.length<2?(n=G0[e],_Q(n)?n:void 0):G0[e]&&G0[e][t];var n},yp=Yt({}.isPrototypeOf),wp=typeof navigator!="undefined"&&String(navigator.userAgent)||"",u5=tn,W0=wp,d5=u5.process,f5=u5.Deno,p5=d5&&d5.versions||f5&&f5.version,h5=p5&&p5.v8;h5&&(_p=(Qs=h5.split("."))[0]>0&&Qs[0]<4?1:+(Qs[0]+Qs[1])),!_p&&W0&&(!(Qs=W0.match(/Edge\/(\d+)/))||Qs[1]>=74)&&(Qs=W0.match(/Chrome\/(\d+)/))&&(_p=+Qs[1]);var Cp=_p,g5=Cp,vQ=en,bQ=tn.String,m5=!!Object.getOwnPropertySymbols&&!vQ(function(){var e=Symbol("symbol detection");return!bQ(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&g5&&g5<41}),_5=m5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yQ=ta,wQ=on,CQ=yp,SQ=Object,v5=_5?function(e){return typeof e=="symbol"}:function(e){var t=yQ("Symbol");return wQ(t)&&CQ(t.prototype,SQ(e))},xQ=String,Sp=function(e){try{return xQ(e)}catch(t){return"Object"}},EQ=on,AQ=Sp,TQ=TypeError,eo=function(e){if(EQ(e))return e;throw new TQ(AQ(e)+" is not a function")},kQ=eo,PQ=fu,xp=function(e,t){var n=e[t];return PQ(n)?void 0:kQ(n)},K0=On,J0=on,Y0=Li,OQ=TypeError,b5={exports:{}},y5=V0;(b5.exports=function(e,t){return y5[e]||(y5[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 X0=b5.exports,NQ=Yt,IQ=0,DQ=Math.random(),RQ=NQ(1 .toString),w5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+RQ(++IQ+DQ,36)},LQ=X0,C5=gi,MQ=w5,FQ=m5,jQ=_5,ul=tn.Symbol,Z0=LQ("wks"),BQ=jQ?ul.for||ul:ul&&ul.withoutSetter||MQ,un=function(e){return C5(Z0,e)||(Z0[e]=FQ&&C5(ul,e)?ul[e]:BQ("Symbol."+e)),Z0[e]},UQ=On,S5=Li,x5=v5,$Q=xp,VQ=TypeError,qQ=un("toPrimitive"),zQ=function(e,t){if(!S5(e)||x5(e))return e;var n,r=$Q(e,qQ);if(r){if(t===void 0&&(t="default"),n=UQ(r,e,t),!S5(n)||x5(n))return n;throw new VQ("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(s,o){var a,l;if(o==="string"&&J0(a=s.toString)&&!Y0(l=K0(a,s))||J0(a=s.valueOf)&&!Y0(l=K0(a,s))||o!=="string"&&J0(a=s.toString)&&!Y0(l=K0(a,s)))return l;throw new OQ("Can't convert object to primitive value")}(e,t)},HQ=v5,Q0=function(e){var t=zQ(e,"string");return HQ(t)?t:t+""},GQ=Pn,WQ=l5,KQ=c5,Ep=Bn,E5=Q0,JQ=TypeError,ev=Object.defineProperty,YQ=Object.getOwnPropertyDescriptor,tv="enumerable",nv="configurable",iv="writable";Rr.f=GQ?KQ?function(e,t,n){if(Ep(e),t=E5(t),Ep(n),typeof e=="function"&&t==="prototype"&&"value"in n&&iv in n&&!n[iv]){var r=YQ(e,t);r&&r[iv]&&(e[t]=n.value,n={configurable:nv in n?n[nv]:r[nv],enumerable:tv in n?n[tv]:r[tv],writable:!1})}return ev(e,t,n)}:ev:function(e,t,n){if(Ep(e),t=E5(t),Ep(n),WQ)try{return ev(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new JQ("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Ap,gu,Tp,mu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},XQ=Rr,ZQ=mu,_u=Pn?function(e,t,n){return XQ.f(e,t,ZQ(1,n))}:function(e,t,n){return e[t]=n,e},QQ=w5,A5=X0("keys"),rv=function(e){return A5[e]||(A5[e]=QQ(e))},sv={},eee=cQ,T5=tn,tee=Li,nee=_u,ov=gi,av=V0,iee=rv,ree=sv,k5="Object already initialized",lv=T5.TypeError,see=T5.WeakMap;if(eee||av.state){var Lr=av.state||(av.state=new see);Lr.get=Lr.get,Lr.has=Lr.has,Lr.set=Lr.set,Ap=function(e,t){if(Lr.has(e))throw new lv(k5);return t.facade=e,Lr.set(e,t),t},gu=function(e){return Lr.get(e)||{}},Tp=function(e){return Lr.has(e)}}else{var dl=iee("state");ree[dl]=!0,Ap=function(e,t){if(ov(e,dl))throw new lv(k5);return t.facade=e,nee(e,dl,t),t},gu=function(e){return ov(e,dl)?e[dl]:{}},Tp=function(e){return ov(e,dl)}}var to={set:Ap,get:gu,has:Tp,enforce:function(e){return Tp(e)?gu(e):Ap(e,{})},getterFor:function(e){return function(t){var n;if(!tee(t)||(n=gu(t)).type!==e)throw new lv("Incompatible receiver, "+e+" required");return n}}},cv=Yt,oee=en,aee=on,kp=gi,uv=Pn,lee=pu.CONFIGURABLE,cee=z0,uee=to.enforce,dee=to.get,P5=String,Pp=Object.defineProperty,fee=cv("".slice),pee=cv("".replace),hee=cv([].join),gee=uv&&!oee(function(){return Pp(function(){},"length",{value:8}).length!==8}),mee=String(String).split("String"),_ee=i5.exports=function(e,t,n){fee(P5(t),0,7)==="Symbol("&&(t="["+pee(P5(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!kp(e,"name")||lee&&e.name!==t)&&(uv?Pp(e,"name",{value:t,configurable:!0}):e.name=t),gee&&n&&kp(n,"arity")&&e.length!==n.arity&&Pp(e,"length",{value:n.arity});try{n&&kp(n,"constructor")&&n.constructor?uv&&Pp(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(s){}var r=uee(e);return kp(r,"source")||(r.source=hee(mee,typeof t=="string"?t:"")),e};Function.prototype.toString=_ee(function(){return aee(this)&&dee(this).source||cee(this)},"toString");var O5=i5.exports,N5=O5,vee=Rr,Op=function(e,t,n){return n.get&&N5(n.get,t,{getter:!0}),n.set&&N5(n.set,t,{setter:!0}),vee.f(e,t,n)},bee=Pn,yee=pu.EXISTS,I5=Yt,wee=Op,D5=Function.prototype,Cee=I5(D5.toString),R5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,See=I5(R5.exec);bee&&!yee&&wee(D5,"name",{configurable:!0,get:function(){try{return See(R5,Cee(this))[1]}catch(e){return""}}});var dv={},Np={},L5={}.propertyIsEnumerable,M5=Object.getOwnPropertyDescriptor,xee=M5&&!L5.call({1:2},1);Np.f=xee?function(e){var t=M5(this,e);return!!t&&t.enumerable}:L5;var F5=Yt,Eee=F5({}.toString),Aee=F5("".slice),fl=function(e){return Aee(Eee(e),8,-1)},Tee=en,kee=fl,fv=Object,Pee=Yt("".split),pv=Tee(function(){return!fv("z").propertyIsEnumerable(0)})?function(e){return kee(e)==="String"?Pee(e,""):fv(e)}:fv,Oee=pv,Nee=mp,pl=function(e){return Oee(Nee(e))},Iee=Pn,Dee=On,Ree=Np,Lee=mu,Mee=pl,Fee=Q0,jee=gi,Bee=l5,j5=Object.getOwnPropertyDescriptor;dv.f=Iee?j5:function(e,t){if(e=Mee(e),t=Fee(t),Bee)try{return j5(e,t)}catch(n){}if(jee(e,t))return Lee(!Dee(Ree.f,e,t),e[t])};var Uee=on,$ee=Rr,Vee=O5,qee=$0,or=function(e,t,n,r){r||(r={});var s=r.enumerable,o=r.name!==void 0?r.name:t;if(Uee(n)&&Vee(n,o,r),r.global)s?e[t]=n:qee(t,n);else{try{r.unsafe?e[t]&&(s=!0):delete e[t]}catch(a){}s?e[t]=n:$ee.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},B5={},zee=Math.ceil,Hee=Math.floor,Gee=Math.trunc||function(e){var t=+e;return(t>0?Hee:zee)(t)},Ip=function(e){var t=+e;return t!=t||t===0?0:Gee(t)},Wee=Ip,Kee=Math.max,Jee=Math.min,Yee=Ip,Xee=Math.min,U5=function(e){return e>0?Xee(Yee(e),9007199254740991):0},Zee=U5,vu=function(e){return Zee(e.length)},Qee=pl,ete=vu,$5=function(e){return function(t,n,r){var s,o=Qee(t),a=ete(o),l=function(c,u){var d=Wee(c);return d<0?Kee(d+u,0):Jee(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}},tte={includes:$5(!0),indexOf:$5(!1)},hv=gi,nte=pl,ite=tte.indexOf,rte=sv,V5=Yt([].push),q5=function(e,t){var n,r=nte(e),s=0,o=[];for(n in r)!hv(rte,n)&&hv(r,n)&&V5(o,n);for(;t.length>s;)hv(r,n=t[s++])&&(~ite(o,n)||V5(o,n));return o},gv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ste=q5,ote=gv.concat("length","prototype");B5.f=Object.getOwnPropertyNames||function(e){return ste(e,ote)};var mv={};mv.f=Object.getOwnPropertySymbols;var ate=ta,lte=B5,cte=mv,ute=Bn,dte=Yt([].concat),fte=ate("Reflect","ownKeys")||function(e){var t=lte.f(ute(e)),n=cte.f;return n?dte(t,n(e)):t},z5=gi,pte=fte,hte=dv,gte=Rr,mte=en,_te=on,vte=/#|\.prototype\./,bu=function(e,t){var n=yte[bte(e)];return n===Cte||n!==wte&&(_te(t)?mte(t):!!t)},bte=bu.normalize=function(e){return String(e).replace(vte,".").toLowerCase()},yte=bu.data={},wte=bu.NATIVE="N",Cte=bu.POLYFILL="P",H5=bu,_v=tn,Ste=dv.f,xte=_u,Ete=or,Ate=$0,Tte=function(e,t,n){for(var r=pte(t),s=gte.f,o=hte.f,a=0;a<r.length;a++){var l=r[a];z5(e,l)||n&&z5(n,l)||s(e,l,o(t,l))}},kte=H5,mi=function(e,t){var n,r,s,o,a,l=e.target,c=e.global,u=e.stat;if(n=c?_v:u?_v[l]||Ate(l,{}):(_v[l]||{}).prototype)for(r in t){if(o=t[r],s=e.dontCallGetSet?(a=Ste(n,r))&&a.value:n[r],!kte(c?r:l+(u?".":"#")+r,e.forced)&&s!==void 0){if(typeof o==typeof s)continue;Tte(o,s)}(e.sham||s&&s.sham)&&xte(o,"sham",!0),Ete(n,r,o,e)}},G5={};G5[un("toStringTag")]="z";var vv=String(G5)==="[object z]",Pte=vv,Ote=on,Dp=fl,Nte=un("toStringTag"),Ite=Object,Dte=Dp(function(){return arguments}())==="Arguments",yu=Pte?Dp: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=Ite(e),Nte))=="string"?n:Dte?Dp(t):(r=Dp(t))==="Object"&&Ote(t.callee)?"Arguments":r},Rte=yu,Lte=String,na=function(e){if(Rte(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Lte(e)},Mte=Bn,W5=function(){var e=Mte(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},bv=en,yv=tn.RegExp,wv=bv(function(){var e=yv("a","y");return e.lastIndex=2,e.exec("abcd")!==null}),Fte=wv||bv(function(){return!yv("a","y").sticky}),jte={BROKEN_CARET:wv||bv(function(){var e=yv("^r","gy");return e.lastIndex=2,e.exec("str")!==null}),MISSED_STICKY:Fte,UNSUPPORTED_Y:wv},K5={},Bte=q5,Ute=gv,Cv=Object.keys||function(e){return Bte(e,Ute)},$te=Pn,Vte=c5,qte=Rr,zte=Bn,Hte=pl,Gte=Cv;K5.f=$te&&!Vte?Object.defineProperties:function(e,t){zte(e);for(var n,r=Hte(t),s=Gte(t),o=s.length,a=0;o>a;)qte.f(e,n=s[a++],r[n]);return e};var Rp,J5=ta("document","documentElement"),Wte=Bn,Kte=K5,Y5=gv,Jte=sv,Yte=J5,Xte=vp,Sv="prototype",xv="script",X5=rv("IE_PROTO"),Ev=function(){},Z5=function(e){return"<"+xv+">"+e+"</"+xv+">"},Q5=function(e){e.write(Z5("")),e.close();var t=e.parentWindow.Object;return e=null,t},Lp=function(){try{Rp=new ActiveXObject("htmlfile")}catch(s){}var e,t,n;Lp=typeof document!="undefined"?document.domain&&Rp?Q5(Rp):(t=Xte("iframe"),n="java"+xv+":",t.style.display="none",Yte.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Z5("document.F=Object")),e.close(),e.F):Q5(Rp);for(var r=Y5.length;r--;)delete Lp[Sv][Y5[r]];return Lp()};Jte[X5]=!0;var ex,Av,Mp=Object.create||function(e,t){var n;return e!==null?(Ev[Sv]=Wte(e),n=new Ev,Ev[Sv]=null,n[X5]=e):n=Lp(),t===void 0?n:Kte.f(n,t)},Zte=en,Qte=tn.RegExp,ene=Zte(function(){var e=Qte(".","s");return!(e.dotAll&&e.test(`
|
|
152
|
+
`)&&e.flags==="s")}),tne=en,nne=tn.RegExp,ine=tne(function(){var e=nne("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),hl=On,Fp=Yt,rne=na,sne=W5,one=jte,ane=Mp,lne=to.get,cne=ene,une=ine,dne=X0("native-string-replace",String.prototype.replace),jp=RegExp.prototype.exec,Tv=jp,fne=Fp("".charAt),pne=Fp("".indexOf),hne=Fp("".replace),kv=Fp("".slice),Pv=(Av=/b*/g,hl(jp,ex=/a/,"a"),hl(jp,Av,"a"),ex.lastIndex!==0||Av.lastIndex!==0),tx=one.BROKEN_CARET,Ov=/()??/.exec("")[1]!==void 0;(Pv||Ov||tx||cne||une)&&(Tv=function(e){var t,n,r,s,o,a,l,c=this,u=lne(c),d=rne(e),f=u.raw;if(f)return f.lastIndex=c.lastIndex,t=hl(Tv,f,d),c.lastIndex=f.lastIndex,t;var p=u.groups,g=tx&&c.sticky,_=hl(sne,c),b=c.source,y=0,w=d;if(g&&(_=hne(_,"y",""),pne(_,"g")===-1&&(_+="g"),w=kv(d,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&fne(d,c.lastIndex-1)!==`
|
|
153
|
+
`)&&(b="(?: "+b+")",w=" "+w,y++),n=new RegExp("^(?:"+b+")",_)),Ov&&(n=new RegExp("^"+b+"$(?!\\s)",_)),Pv&&(r=c.lastIndex),s=hl(jp,g?n:c,w),g?s?(s.input=kv(s.input,y),s[0]=kv(s[0],y),s.index=c.lastIndex,c.lastIndex+=s[0].length):c.lastIndex=0:Pv&&s&&(c.lastIndex=c.global?s.index+s[0].length:r),Ov&&s&&s.length>1&&hl(dne,s[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(s[o]=void 0)}),s&&p)for(s.groups=a=ane(null),o=0;o<p.length;o++)a[(l=p[o])[0]]=s[l[1]];return s});var Bp=Tv;mi({target:"RegExp",proto:!0,forced:/./.exec!==Bp},{exec:Bp});var gne=gp,nx=Function.prototype,ix=nx.apply,rx=nx.call,sx=typeof Reflect=="object"&&Reflect.apply||(gne?rx.bind(ix):function(){return rx.apply(ix,arguments)}),mne=fl,_ne=Yt,Nv=function(e){if(mne(e)==="Function")return _ne(e)},ox=Nv,ax=or,vne=Bp,lx=en,cx=un,bne=_u,yne=cx("species"),Iv=RegExp.prototype,Dv=Yt,wne=Ip,Cne=na,Sne=mp,xne=Dv("".charAt),ux=Dv("".charCodeAt),Ene=Dv("".slice),dx=function(e){return function(t,n){var r,s,o=Cne(Sne(t)),a=wne(n),l=o.length;return a<0||a>=l?e?"":void 0:(r=ux(o,a))<55296||r>56319||a+1===l||(s=ux(o,a+1))<56320||s>57343?e?xne(o,a):r:e?Ene(o,a,a+2):s-56320+(r-55296<<10)+65536}},Rv={codeAt:dx(!1),charAt:dx(!0)},Ane=Rv.charAt,Lv=Yt,Tne=ea,kne=Math.floor,Mv=Lv("".charAt),Pne=Lv("".replace),Fv=Lv("".slice),One=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Nne=/\$([$&'`]|\d{1,2})/g,fx=On,Ine=Bn,Dne=on,Rne=fl,Lne=Bp,Mne=TypeError,Fne=sx,px=On,Up=Yt,jne=en,Bne=Bn,Une=on,$ne=fu,Vne=Ip,qne=U5,gl=na,zne=mp,Hne=function(e,t,n){return t+(n?Ane(e,t).length:1)},Gne=xp,Wne=function(e,t,n,r,s,o){var a=n+e.length,l=r.length,c=Nne;return s!==void 0&&(s=Tne(s),c=One),Pne(o,c,function(u,d){var f;switch(Mv(d,0)){case"$":return"$";case"&":return e;case"`":return Fv(t,0,n);case"'":return Fv(t,a);case"<":f=s[Fv(d,1,-1)];break;default:var p=+d;if(p===0)return u;if(p>l){var g=kne(p/10);return g===0?u:g<=l?r[g-1]===void 0?Mv(d,1):r[g-1]+Mv(d,1):u}f=r[p-1]}return f===void 0?"":f})},Kne=function(e,t){var n=e.exec;if(Dne(n)){var r=fx(n,e,t);return r!==null&&Ine(r),r}if(Rne(e)==="RegExp")return fx(Lne,e,t);throw new Mne("RegExp#exec called on incompatible receiver")},jv=un("replace"),Jne=Math.max,Yne=Math.min,Xne=Up([].concat),Bv=Up([].push),hx=Up("".indexOf),gx=Up("".slice),Zne="a".replace(/./,"$0")==="$0",mx=!!/./[jv]&&/./[jv]("a","$0")==="";(function(e,t,n,r){var s=cx(e),o=!lx(function(){var u={};return u[s]=function(){return 7},""[e](u)!==7}),a=o&&!lx(function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[yne]=function(){return d},d.flags="",d[s]=/./[s]),d.exec=function(){return u=!0,null},d[s](""),!u});if(!o||!a||n){var l=ox(/./[s]),c=t(s,""[e],function(u,d,f,p,g){var _=ox(u),b=d.exec;return b===vne||b===Iv.exec?o&&!g?{done:!0,value:l(d,f,p)}:{done:!0,value:_(f,d,p)}:{done:!1}});ax(String.prototype,e,c[0]),ax(Iv,s,c[1])}r&&bne(Iv[s],"sham",!0)})("replace",function(e,t,n){var r=mx?"$":"$0";return[function(s,o){var a=zne(this),l=$ne(s)?void 0:Gne(s,jv);return l?px(l,s,a,o):px(t,gl(a),s,o)},function(s,o){var a=Bne(this),l=gl(s);if(typeof o=="string"&&hx(o,r)===-1&&hx(o,"$<")===-1){var c=n(t,a,l,o);if(c.done)return c.value}var u=Une(o);u||(o=gl(o));var d,f=a.global;f&&(d=a.unicode,a.lastIndex=0);for(var p,g=[];(p=Kne(a,l))!==null&&(Bv(g,p),f);)gl(p[0])===""&&(a.lastIndex=Hne(l,qne(a.lastIndex),d));for(var _,b="",y=0,w=0;w<g.length;w++){for(var E,C=gl((p=g[w])[0]),S=Jne(Yne(Vne(p.index),l.length),0),A=[],P=1;P<p.length;P++)Bv(A,(_=p[P])===void 0?_:String(_));var I=p.groups;if(u){var O=Xne([C],A,S,l);I!==void 0&&Bv(O,I),E=gl(Fne(o,void 0,O))}else E=Wne(C,l,S,A,I,o);S>=y&&(b+=gx(l,y,S)+E,y=S+C.length)}return b+gx(l,y)}]},!!jne(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Zne||mx);var Qne=un,eie=Mp,tie=Rr.f,Uv=Qne("unscopables"),$v=Array.prototype;$v[Uv]===void 0&&tie($v,Uv,{configurable:!0,value:eie(null)});var ia,_x,vx,wu={},nie=!en(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),iie=gi,rie=on,sie=ea,oie=nie,bx=rv("IE_PROTO"),Vv=Object,aie=Vv.prototype,qv=oie?Vv.getPrototypeOf:function(e){var t=sie(e);if(iie(t,bx))return t[bx];var n=t.constructor;return rie(n)&&t instanceof n?n.prototype:t instanceof Vv?aie:null},lie=en,cie=on,uie=Li,yx=qv,die=or,zv=un("iterator"),wx=!1;[].keys&&("next"in(vx=[].keys())?(_x=yx(yx(vx)))!==Object.prototype&&(ia=_x):wx=!0);var fie=!uie(ia)||lie(function(){var e={};return ia[zv].call(e)!==e});fie&&(ia={}),cie(ia[zv])||die(ia,zv,function(){return this});var Hv={IteratorPrototype:ia,BUGGY_SAFARI_ITERATORS:wx},pie=Rr.f,hie=gi,Cx=un("toStringTag"),ml=function(e,t,n){e&&!n&&(e=e.prototype),e&&!hie(e,Cx)&&pie(e,Cx,{configurable:!0,value:t})},gie=Hv.IteratorPrototype,mie=Mp,_ie=mu,vie=ml,bie=wu,yie=function(){return this},Sx=function(e,t,n,r){var s=t+" Iterator";return e.prototype=mie(gie,{next:_ie(+!r,n)}),vie(e,s,!1),bie[s]=yie,e},wie=Yt,Cie=eo,Sie=Li,xie=String,Eie=TypeError,Aie=Bn,Tie=function(e){if(function(t){return Sie(t)||t===null}(e))return e;throw new Eie("Can't set "+xie(e)+" as a prototype")},xx=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(r,s,o){try{return wie(Cie(Object.getOwnPropertyDescriptor(r,s)[o]))}catch(a){}}(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(r){}return function(r,s){return Aie(r),Tie(s),t?e(r,s):r.__proto__=s,r}}():void 0),kie=mi,Pie=On,Oie=on,Nie=Sx,Ex=qv,Ax=xx,Iie=ml,Die=_u,Gv=or,Rie=wu,Lie=pu.PROPER,Mie=pu.CONFIGURABLE,Tx=Hv.IteratorPrototype,$p=Hv.BUGGY_SAFARI_ITERATORS,Cu=un("iterator"),kx="keys",Su="values",Px="entries",Fie=function(){return this},Ox=function(e,t,n,r,s,o,a){Nie(n,t,r);var l,c,u,d=function(w){if(w===s&&b)return b;if(!$p&&w&&w in g)return g[w];switch(w){case kx:case Su:case Px:return function(){return new n(this,w)}}return function(){return new n(this)}},f=t+" Iterator",p=!1,g=e.prototype,_=g[Cu]||g["@@iterator"]||s&&g[s],b=!$p&&_||d(s),y=t==="Array"&&g.entries||_;if(y&&(l=Ex(y.call(new e)))!==Object.prototype&&l.next&&(Ex(l)!==Tx&&(Ax?Ax(l,Tx):Oie(l[Cu])||Gv(l,Cu,Fie)),Iie(l,f,!0)),Lie&&s===Su&&_&&_.name!==Su&&(Mie?Die(g,"name",Su):(p=!0,b=function(){return Pie(_,this)})),s)if(c={values:d(Su),keys:o?b:d(kx),entries:d(Px)},a)for(u in c)($p||p||!(u in g))&&Gv(g,u,c[u]);else kie({target:t,proto:!0,forced:$p||p},c);return g[Cu]!==b&&Gv(g,Cu,b,{name:s}),Rie[t]=b,c},Wv=function(e,t){return{value:e,done:t}},jie=pl,Kv=function(e){$v[Uv][e]=!0},Nx=wu,Ix=to,Bie=Rr.f,Uie=Ox,Vp=Wv,$ie=Pn,Dx="Array Iterator",Vie=Ix.set,qie=Ix.getterFor(Dx),zie=Uie(Array,"Array",function(e,t){Vie(this,{type:Dx,target:jie(e),index:0,kind:t})},function(){var e=qie(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Vp(void 0,!0);switch(e.kind){case"keys":return Vp(n,!1);case"values":return Vp(t[n],!1)}return Vp([n,t[n]],!1)},"values"),Rx=Nx.Arguments=Nx.Array;if(Kv("keys"),Kv("values"),Kv("entries"),$ie&&Rx.name!=="values")try{Bie(Rx,"name",{value:"values"})}catch(e){}var Hie=yu,Gie=vv?{}.toString:function(){return"[object "+Hie(this)+"]"};vv||or(Object.prototype,"toString",Gie,{unsafe:!0});var Wie=Rv.charAt,Kie=na,Lx=to,Jie=Ox,Mx=Wv,Fx="String Iterator",Yie=Lx.set,Xie=Lx.getterFor(Fx);Jie(String,"String",function(e){Yie(this,{type:Fx,string:Kie(e),index:0})},function(){var e,t=Xie(this),n=t.string,r=t.index;return r>=n.length?Mx(void 0,!0):(e=Wie(n,r),t.index+=e.length,Mx(e,!1))});var Jv=vp("span").classList,jx=Jv&&Jv.constructor&&Jv.constructor.prototype,Zie=jx===Object.prototype?void 0:jx,Bx=tn,Ux={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},Qie=Zie,xu=zie,$x=_u,ere=ml,Yv=un("iterator"),Xv=xu.values,Vx=function(e,t){if(e){if(e[Yv]!==Xv)try{$x(e,Yv,Xv)}catch(r){e[Yv]=Xv}if(ere(e,t,!0),Ux[t]){for(var n in xu)if(e[n]!==xu[n])try{$x(e,n,xu[n])}catch(r){e[n]=xu[n]}}}};for(var Zv in Ux)Vx(Bx[Zv]&&Bx[Zv].prototype,Zv);Vx(Qie,"DOMTokenList");var tre=en,nre=Pn,ire=un("iterator"),qx=!tre(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&&!nre||!t.sort||e.href!=="http://a/c%20d?a=1&c=3"||t.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!t[ire]||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"}),rre=eo,sre=gp,ore=Nv(Nv.bind),ra=function(e,t){return rre(e),t===void 0?e:sre?ore(e,t):function(){return e.apply(t,arguments)}},are=yp,lre=TypeError,Qv=function(e,t){if(are(t,e))return e;throw new lre("Incorrect invocation")},zx=Pn,cre=Yt,ure=On,dre=en,e1=Cv,fre=mv,pre=Np,hre=ea,gre=pv,_l=Object.assign,Hx=Object.defineProperty,mre=cre([].concat),_re=!_l||dre(function(){if(zx&&_l({b:1},_l(Hx({},"a",{enumerable:!0,get:function(){Hx(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}),_l({},e)[n]!==7||e1(_l({},t)).join("")!==r})?function(e,t){for(var n=hre(e),r=arguments.length,s=1,o=fre.f,a=pre.f;r>s;)for(var l,c=gre(arguments[s++]),u=o?mre(e1(c),o(c)):e1(c),d=u.length,f=0;d>f;)l=u[f++],zx&&!ure(a,c,l)||(n[l]=c[l]);return n}:_l,vre=On,Gx=Bn,bre=xp,Wx=function(e,t,n){var r,s;Gx(e);try{if(!(r=bre(e,"return"))){if(t==="throw")throw n;return n}r=vre(r,e)}catch(o){s=!0,r=o}if(t==="throw")throw n;if(s)throw r;return Gx(r),n},yre=Bn,wre=Wx,Cre=wu,Sre=un("iterator"),xre=Array.prototype,Kx=function(e){return e!==void 0&&(Cre.Array===e||xre[Sre]===e)},Ere=Yt,Are=en,Jx=on,Tre=yu,kre=z0,Yx=function(){},Pre=[],Xx=ta("Reflect","construct"),t1=/^\s*(?:class|function)\b/,Ore=Ere(t1.exec),Nre=!t1.test(Yx),Eu=function(e){if(!Jx(e))return!1;try{return Xx(Yx,Pre,e),!0}catch(t){return!1}},Zx=function(e){if(!Jx(e))return!1;switch(Tre(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Nre||!!Ore(t1,kre(e))}catch(t){return!0}};Zx.sham=!0;var n1=!Xx||Are(function(){var e;return Eu(Eu.call)||!Eu(Object)||!Eu(function(){e=!0})||e})?Zx:Eu,Ire=Q0,Dre=Rr,Rre=mu,Qx=function(e,t,n){var r=Ire(t);r in e?Dre.f(e,r,Rre(0,n)):e[r]=n},Lre=yu,eE=xp,Mre=fu,Fre=wu,jre=un("iterator"),qp=function(e){if(!Mre(e))return eE(e,jre)||eE(e,"@@iterator")||Fre[Lre(e)]},Bre=On,Ure=eo,$re=Bn,Vre=Sp,qre=qp,zre=TypeError,i1=function(e,t){var n=arguments.length<2?qre(e):t;if(Ure(n))return $re(Bre(n,e));throw new zre(Vre(e)+" is not iterable")},Hre=ra,Gre=On,Wre=ea,Kre=function(e,t,n,r){try{return r?t(yre(n)[0],n[1]):t(n)}catch(s){wre(e,"throw",s)}},Jre=Kx,Yre=n1,Xre=vu,tE=Qx,Zre=i1,Qre=qp,nE=Array,r1=Yt([].slice),sa=Yt,s1=2147483647,ese=/[^\0-\u007E]/,iE=/[.\u3002\uFF0E\uFF61]/g,rE="Overflow: input needs wider integers to process",sE=RangeError,tse=sa(iE.exec),vl=Math.floor,o1=String.fromCharCode,oE=sa("".charCodeAt),aE=sa([].join),no=sa([].push),nse=sa("".replace),ise=sa("".split),rse=sa("".toLowerCase),lE=function(e){return e+22+75*(e<26)},sse=function(e,t,n){var r=0;for(e=n?vl(e/700):e>>1,e+=vl(e/t);e>455;)e=vl(e/35),r+=36;return vl(r+36*e/(e+38))},ose=function(e){var t=[];e=function(w){for(var E=[],C=0,S=w.length;C<S;){var A=oE(w,C++);if(A>=55296&&A<=56319&&C<S){var P=oE(w,C++);(64512&P)==56320?no(E,((1023&A)<<10)+(1023&P)+65536):(no(E,A),C--)}else no(E,A)}return E}(e);var n,r,s=e.length,o=128,a=0,l=72;for(n=0;n<e.length;n++)(r=e[n])<128&&no(t,o1(r));var c=t.length,u=c;for(c&&no(t,"-");u<s;){var d=s1;for(n=0;n<e.length;n++)(r=e[n])>=o&&r<d&&(d=r);var f=u+1;if(d-o>vl((s1-a)/f))throw new sE(rE);for(a+=(d-o)*f,o=d,n=0;n<e.length;n++){if((r=e[n])<o&&++a>s1)throw new sE(rE);if(r===o){for(var p=a,g=36;;){var _=g<=l?1:g>=l+26?26:g-l;if(p<_)break;var b=p-_,y=36-_;no(t,o1(lE(_+b%y))),p=vl(b/y),g+=36}no(t,o1(lE(p))),l=sse(a,f,u===c),a=0,u++}}a++,o++}return aE(t,"")},ase=TypeError,a1=function(e,t){if(e<t)throw new ase("Not enough arguments");return e},cE=tn,lse=Pn,cse=Object.getOwnPropertyDescriptor,uE=function(e){if(!lse)return cE[e];var t=cse(cE,e);return t&&t.value},use=or,dE=r1,dse=Math.floor,l1=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=dse(n/2),l=l1(dE(e,0,a),t),c=l1(dE(e,a),t),u=l.length,d=c.length,f=0,p=0;f<u||p<d;)e[f+p]=f<u&&p<d?t(l[f],c[p])<=0?l[f++]:c[p++]:f<u?l[f++]:c[p++];return e},c1=mi,zp=tn,u1=uE,Hp=On,Mr=Yt,Au=Pn,fE=qx,pE=or,fse=Op,pse=ml,hse=Sx,d1=to,hE=Qv,f1=on,gse=gi,mse=ra,_se=yu,vse=Bn,gE=Li,Jn=na,bse=Mp,mE=mu,_E=i1,yse=qp,Gp=Wv,bl=a1,wse=l1,Cse=un("iterator"),yl="URLSearchParams",vE=yl+"Iterator",bE=d1.set,Mi=d1.getterFor(yl),Sse=d1.getterFor(vE),yE=u1("fetch"),Wp=u1("Request"),Tu=u1("Headers"),p1=Wp&&Wp.prototype,wE=Tu&&Tu.prototype,xse=zp.RegExp,Ese=zp.TypeError,CE=zp.decodeURIComponent,Ase=zp.encodeURIComponent,Tse=Mr("".charAt),SE=Mr([].join),oa=Mr([].push),h1=Mr("".replace),kse=Mr([].shift),xE=Mr([].splice),EE=Mr("".split),Pse=Mr("".slice),Ose=/\+/g,AE=Array(4),Nse=function(e){return AE[e-1]||(AE[e-1]=xse("((?:%[\\da-f]{2}){"+e+"})","gi"))},Ise=function(e){try{return CE(e)}catch(t){return e}},TE=function(e){var t=h1(e,Ose," "),n=4;try{return CE(t)}catch(r){for(;n;)t=h1(t,Nse(n--),Ise);return t}},Dse=/[!'()~]|%20/g,Rse={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Lse=function(e){return Rse[e]},kE=function(e){return h1(Ase(e),Dse,Lse)},g1=hse(function(e,t){bE(this,{type:vE,target:Mi(e).entries,index:0,kind:t})},yl,function(){var e=Sse(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Gp(void 0,!0);var r=t[n];switch(e.kind){case"keys":return Gp(r.key,!1);case"values":return Gp(r.value,!1)}return Gp([r.key,r.value],!1)},!0),PE=function(e){this.entries=[],this.url=null,e!==void 0&&(gE(e)?this.parseObject(e):this.parseQuery(typeof e=="string"?Tse(e,0)==="?"?Pse(e,1):e:Jn(e)))};PE.prototype={type:yl,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,s,o,a,l,c=this.entries,u=yse(e);if(u)for(n=(t=_E(e,u)).next;!(r=Hp(n,t)).done;){if(o=(s=_E(vse(r.value))).next,(a=Hp(o,s)).done||(l=Hp(o,s)).done||!Hp(o,s).done)throw new Ese("Expected sequence with length 2");oa(c,{key:Jn(a.value),value:Jn(l.value)})}else for(var d in e)gse(e,d)&&oa(c,{key:d,value:Jn(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,s=EE(e,"&"),o=0;o<s.length;)(t=s[o++]).length&&(n=EE(t,"="),oa(r,{key:TE(kse(n)),value:TE(SE(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],oa(n,kE(e.key)+"="+kE(e.value));return SE(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Kp=function(){hE(this,wl);var e=bE(this,new PE(arguments.length>0?arguments[0]:void 0));Au||(this.size=e.entries.length)},wl=Kp.prototype;if(function(e,t,n){for(var r in t)use(e,r,t[r],n)}(wl,{append:function(e,t){var n=Mi(this);bl(arguments.length,2),oa(n.entries,{key:Jn(e),value:Jn(t)}),Au||this.length++,n.updateURL()},delete:function(e){for(var t=Mi(this),n=bl(arguments.length,1),r=t.entries,s=Jn(e),o=n<2?void 0:arguments[1],a=o===void 0?o:Jn(o),l=0;l<r.length;){var c=r[l];if(c.key!==s||a!==void 0&&c.value!==a)l++;else if(xE(r,l,1),a!==void 0)break}Au||(this.size=r.length),t.updateURL()},get:function(e){var t=Mi(this).entries;bl(arguments.length,1);for(var n=Jn(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=Mi(this).entries;bl(arguments.length,1);for(var n=Jn(e),r=[],s=0;s<t.length;s++)t[s].key===n&&oa(r,t[s].value);return r},has:function(e){for(var t=Mi(this).entries,n=bl(arguments.length,1),r=Jn(e),s=n<2?void 0:arguments[1],o=s===void 0?s:Jn(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=Mi(this);bl(arguments.length,1);for(var r,s=n.entries,o=!1,a=Jn(e),l=Jn(t),c=0;c<s.length;c++)(r=s[c]).key===a&&(o?xE(s,c--,1):(o=!0,r.value=l));o||oa(s,{key:a,value:l}),Au||(this.size=s.length),n.updateURL()},sort:function(){var e=Mi(this);wse(e.entries,function(t,n){return t.key>n.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=Mi(this).entries,r=mse(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 g1(this,"keys")},values:function(){return new g1(this,"values")},entries:function(){return new g1(this,"entries")}},{enumerable:!0}),pE(wl,Cse,wl.entries,{name:"entries"}),pE(wl,"toString",function(){return Mi(this).serialize()},{enumerable:!0}),Au&&fse(wl,"size",{get:function(){return Mi(this).entries.length},configurable:!0,enumerable:!0}),pse(Kp,yl),c1({global:!0,constructor:!0,forced:!fE},{URLSearchParams:Kp}),!fE&&f1(Tu)){var Mse=Mr(wE.has),Fse=Mr(wE.set),OE=function(e){if(gE(e)){var t,n=e.body;if(_se(n)===yl)return t=e.headers?new Tu(e.headers):new Tu,Mse(t,"content-type")||Fse(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),bse(e,{body:mE(0,Jn(n)),headers:mE(0,t)})}return e};if(f1(yE)&&c1({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return yE(e,arguments.length>1?OE(arguments[1]):{})}}),f1(Wp)){var m1=function(e){return hE(this,p1),new Wp(e,arguments.length>1?OE(arguments[1]):{})};p1.constructor=m1,m1.prototype=p1,c1({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:m1})}}var Fi,jse=mi,_1=Pn,Bse=qx,v1=tn,NE=ra,ji=Yt,Jp=or,Bi=Op,Use=Qv,b1=gi,y1=_re,Cl=function(e){var t=Wre(e),n=Yre(this),r=arguments.length,s=r>1?arguments[1]:void 0,o=s!==void 0;o&&(s=Hre(s,r>2?arguments[2]:void 0));var a,l,c,u,d,f,p=Qre(t),g=0;if(!p||this===nE&&Jre(p))for(a=Xre(t),l=n?new this(a):nE(a);a>g;g++)f=o?s(t[g],g):t[g],tE(l,g,f);else for(d=(u=Zre(t,p)).next,l=n?new this:[];!(c=Gre(d,u)).done;g++)f=o?Kre(u,s,[c.value,g],!0):c.value,tE(l,g,f);return l.length=g,l},ar=r1,$se=Rv.codeAt,bs=na,Vse=ml,qse=a1,IE={URLSearchParams:Kp,getState:Mi},DE=to,zse=DE.set,Yp=DE.getterFor("URL"),Hse=IE.URLSearchParams,Gse=IE.getState,ku=v1.URL,w1=v1.TypeError,Xp=v1.parseInt,Wse=Math.floor,RE=Math.pow,Ui=ji("".charAt),lr=ji(/./.exec),Pu=ji([].join),Kse=ji(1 .toString),Jse=ji([].pop),Sl=ji([].push),C1=ji("".replace),Yse=ji([].shift),Xse=ji("".split),Ou=ji("".slice),Zp=ji("".toLowerCase),Zse=ji([].unshift),S1="Invalid scheme",aa="Invalid host",LE="Invalid port",ME=/[a-z]/i,Qse=/[\d+-.a-z]/i,x1=/\d/,eoe=/^0x/i,toe=/^[0-7]+$/,noe=/^\d+$/,FE=/^[\da-f]+$/i,ioe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,roe=/[\0\t\n\r #/:<>?@[\\\]^|]/,soe=/^[\u0000-\u0020]+/,ooe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,aoe=/[\t\n\r]/g,Nu=function(e){var t,n,r,s;if(typeof e=="number"){for(t=[],n=0;n<4;n++)Zse(t,e%256),e=Wse(e/256);return Pu(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+=Kse(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},Qp={},jE=y1({},Qp,{" ":1,'"':1,"<":1,">":1,"`":1}),BE=y1({},jE,{"#":1,"?":1,"{":1,"}":1}),E1=y1({},BE,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),io=function(e,t){var n=$se(e,0);return n>32&&n<127&&!b1(t,e)?e:encodeURIComponent(e)},eh={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Iu=function(e,t){var n;return e.length===2&&lr(ME,Ui(e,0))&&((n=Ui(e,1))===":"||!t&&n==="|")},UE=function(e){var t;return e.length>1&&Iu(Ou(e,0,2))&&(e.length===2||(t=Ui(e,2))==="/"||t==="\\"||t==="?"||t==="#")},loe=function(e){return e==="."||Zp(e)==="%2e"},A1={},$E={},T1={},VE={},qE={},k1={},zE={},HE={},th={},nh={},P1={},O1={},N1={},I1={},GE={},D1={},xl={},Fr={},WE={},la={},ys={},R1=function(e,t,n){var r,s,o,a=bs(e);if(t){if(s=this.parse(a))throw new w1(s);this.searchParams=null}else{if(n!==void 0&&(r=new R1(n,!0)),s=this.parse(a,null,r))throw new w1(s);(o=Gse(new Hse)).bindURL(this),this.searchParams=o}};R1.prototype={type:"URL",parse:function(e,t,n){var r,s,o,a,l,c=this,u=t||A1,d=0,f="",p=!1,g=!1,_=!1;for(e=bs(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=C1(e,soe,""),e=C1(e,ooe,"$1")),e=C1(e,aoe,""),r=Cl(e);d<=r.length;){switch(s=r[d],u){case A1:if(!s||!lr(ME,s)){if(t)return S1;u=T1;continue}f+=Zp(s),u=$E;break;case $E:if(s&&(lr(Qse,s)||s==="+"||s==="-"||s==="."))f+=Zp(s);else{if(s!==":"){if(t)return S1;f="",u=T1,d=0;continue}if(t&&(c.isSpecial()!==b1(eh,f)||f==="file"&&(c.includesCredentials()||c.port!==null)||c.scheme==="file"&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&eh[c.scheme]===c.port&&(c.port=null));f="",c.scheme==="file"?u=I1:c.isSpecial()&&n&&n.scheme===c.scheme?u=VE:c.isSpecial()?u=HE:r[d+1]==="/"?(u=qE,d++):(c.cannotBeABaseURL=!0,Sl(c.path,""),u=WE)}break;case T1:if(!n||n.cannotBeABaseURL&&s!=="#")return S1;if(n.cannotBeABaseURL&&s==="#"){c.scheme=n.scheme,c.path=ar(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=ys;break}u=n.scheme==="file"?I1:k1;continue;case VE:if(s!=="/"||r[d+1]!=="/"){u=k1;continue}u=th,d++;break;case qE:if(s==="/"){u=nh;break}u=Fr;continue;case k1:if(c.scheme=n.scheme,s===Fi)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=ar(n.path),c.query=n.query;else if(s==="/"||s==="\\"&&c.isSpecial())u=zE;else if(s==="?")c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=ar(n.path),c.query="",u=la;else{if(s!=="#"){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=ar(n.path),c.path.length--,u=Fr;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=ar(n.path),c.query=n.query,c.fragment="",u=ys}break;case zE:if(!c.isSpecial()||s!=="/"&&s!=="\\"){if(s!=="/"){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Fr;continue}u=nh}else u=th;break;case HE:if(u=th,s!=="/"||Ui(f,d+1)!=="/")continue;d++;break;case th:if(s!=="/"&&s!=="\\"){u=nh;continue}break;case nh:if(s==="@"){p&&(f="%40"+f),p=!0,o=Cl(f);for(var b=0;b<o.length;b++){var y=o[b];if(y!==":"||_){var w=io(y,E1);_?c.password+=w:c.username+=w}else _=!0}f=""}else if(s===Fi||s==="/"||s==="?"||s==="#"||s==="\\"&&c.isSpecial()){if(p&&f==="")return"Invalid authority";d-=Cl(f).length+1,f="",u=P1}else f+=s;break;case P1:case O1:if(t&&c.scheme==="file"){u=D1;continue}if(s!==":"||g){if(s===Fi||s==="/"||s==="?"||s==="#"||s==="\\"&&c.isSpecial()){if(c.isSpecial()&&f==="")return aa;if(t&&f===""&&(c.includesCredentials()||c.port!==null))return;if(a=c.parseHost(f))return a;if(f="",u=xl,t)return;continue}s==="["?g=!0:s==="]"&&(g=!1),f+=s}else{if(f==="")return aa;if(a=c.parseHost(f))return a;if(f="",u=N1,t===O1)return}break;case N1:if(!lr(x1,s)){if(s===Fi||s==="/"||s==="?"||s==="#"||s==="\\"&&c.isSpecial()||t){if(f!==""){var E=Xp(f,10);if(E>65535)return LE;c.port=c.isSpecial()&&E===eh[c.scheme]?null:E,f=""}if(t)return;u=xl;continue}return LE}f+=s;break;case I1:if(c.scheme="file",s==="/"||s==="\\")u=GE;else{if(!n||n.scheme!=="file"){u=Fr;continue}switch(s){case Fi:c.host=n.host,c.path=ar(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=ar(n.path),c.query="",u=la;break;case"#":c.host=n.host,c.path=ar(n.path),c.query=n.query,c.fragment="",u=ys;break;default:UE(Pu(ar(r,d),""))||(c.host=n.host,c.path=ar(n.path),c.shortenPath()),u=Fr;continue}}break;case GE:if(s==="/"||s==="\\"){u=D1;break}n&&n.scheme==="file"&&!UE(Pu(ar(r,d),""))&&(Iu(n.path[0],!0)?Sl(c.path,n.path[0]):c.host=n.host),u=Fr;continue;case D1:if(s===Fi||s==="/"||s==="\\"||s==="?"||s==="#"){if(!t&&Iu(f))u=Fr;else if(f===""){if(c.host="",t)return;u=xl}else{if(a=c.parseHost(f))return a;if(c.host==="localhost"&&(c.host=""),t)return;f="",u=xl}continue}f+=s;break;case xl:if(c.isSpecial()){if(u=Fr,s!=="/"&&s!=="\\")continue}else if(t||s!=="?")if(t||s!=="#"){if(s!==Fi&&(u=Fr,s!=="/"))continue}else c.fragment="",u=ys;else c.query="",u=la;break;case Fr:if(s===Fi||s==="/"||s==="\\"&&c.isSpecial()||!t&&(s==="?"||s==="#")){if((l=Zp(l=f))===".."||l==="%2e."||l===".%2e"||l==="%2e%2e"?(c.shortenPath(),s==="/"||s==="\\"&&c.isSpecial()||Sl(c.path,"")):loe(f)?s==="/"||s==="\\"&&c.isSpecial()||Sl(c.path,""):(c.scheme==="file"&&!c.path.length&&Iu(f)&&(c.host&&(c.host=""),f=Ui(f,0)+":"),Sl(c.path,f)),f="",c.scheme==="file"&&(s===Fi||s==="?"||s==="#"))for(;c.path.length>1&&c.path[0]==="";)Yse(c.path);s==="?"?(c.query="",u=la):s==="#"&&(c.fragment="",u=ys)}else f+=io(s,BE);break;case WE:s==="?"?(c.query="",u=la):s==="#"?(c.fragment="",u=ys):s!==Fi&&(c.path[0]+=io(s,Qp));break;case la:t||s!=="#"?s!==Fi&&(s==="'"&&c.isSpecial()?c.query+="%27":c.query+=s==="#"?"%23":io(s,Qp)):(c.fragment="",u=ys);break;case ys:s!==Fi&&(c.fragment+=io(s,jE))}d++}},parseHost:function(e){var t,n,r;if(Ui(e,0)==="["){if(Ui(e,e.length-1)!=="]"||(t=function(s){var o,a,l,c,u,d,f,p=[0,0,0,0,0,0,0,0],g=0,_=null,b=0,y=function(){return Ui(s,b)};if(y()===":"){if(Ui(s,1)!==":")return;b+=2,_=++g}for(;y();){if(g===8)return;if(y()!==":"){for(o=a=0;a<4&&lr(FE,y());)o=16*o+Xp(y(),16),b++,a++;if(y()==="."){if(a===0||(b-=a,g>6))return;for(l=0;y();){if(c=null,l>0){if(!(y()==="."&&l<4))return;b++}if(!lr(x1,y()))return;for(;lr(x1,y());){if(u=Xp(y(),10),c===null)c=u;else{if(c===0)return;c=10*c+u}if(c>255)return;b++}p[g]=256*p[g]+c,++l!=2&&l!==4||g++}if(l!==4)return;break}if(y()===":"){if(b++,!y())return}else if(y())return;p[g++]=o}else{if(_!==null)return;b++,_=++g}}if(_!==null)for(d=g-_,g=7;g!==0&&d>0;)f=p[g],p[g--]=p[_+d-1],p[_+--d]=f;else if(g!==8)return;return p}(Ou(e,1,-1)),!t))return aa;this.host=t}else if(this.isSpecial()){if(e=function(s){var o,a,l=[],c=ise(nse(rse(s),iE,"."),".");for(o=0;o<c.length;o++)a=c[o],no(l,tse(ese,a)?"xn--"+ose(a):a);return aE(l,".")}(e),lr(ioe,e)||(t=function(s){var o,a,l,c,u,d,f,p=Xse(s,".");if(p.length&&p[p.length-1]===""&&p.length--,(o=p.length)>4)return s;for(a=[],l=0;l<o;l++){if((c=p[l])==="")return s;if(u=10,c.length>1&&Ui(c,0)==="0"&&(u=lr(eoe,c)?16:8,c=Ou(c,u===8?1:2)),c==="")d=0;else{if(!lr(u===10?noe:u===8?toe:FE,c))return s;d=Xp(c,u)}Sl(a,d)}for(l=0;l<o;l++)if(d=a[l],l===o-1){if(d>=RE(256,5-o))return null}else if(d>255)return null;for(f=Jse(a),l=0;l<a.length;l++)f+=a[l]*RE(256,3-l);return f}(e),t===null))return aa;this.host=t}else{if(lr(roe,e))return aa;for(t="",n=Cl(e),r=0;r<n.length;r++)t+=io(n[r],Qp);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return b1(eh,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||this.scheme==="file"&&t===1&&Iu(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+=Nu(s),o!==null&&(u+=":"+o)):t==="file"&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+Pu(a,"/"):"",l!==null&&(u+="?"+l),c!==null&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw new w1(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if(e==="blob")try{return new El(e.path[0]).origin}catch(n){return"null"}return e!=="file"&&this.isSpecial()?e+"://"+Nu(this.host)+(t!==null?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(bs(e)+":",A1)},getUsername:function(){return this.username},setUsername:function(e){var t=Cl(bs(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=io(t[n],E1)}},getPassword:function(){return this.password},setPassword:function(e){var t=Cl(bs(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=io(t[n],E1)}},getHost:function(){var e=this.host,t=this.port;return e===null?"":t===null?Nu(e):Nu(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,P1)},getHostname:function(){var e=this.host;return e===null?"":Nu(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,O1)},getPort:function(){var e=this.port;return e===null?"":bs(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||((e=bs(e))===""?this.port=null:this.parse(e,N1))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Pu(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,xl))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){(e=bs(e))===""?this.query=null:(Ui(e,0)==="?"&&(e=Ou(e,1)),this.query="",this.parse(e,la)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){(e=bs(e))!==""?(Ui(e,0)==="#"&&(e=Ou(e,1)),this.fragment="",this.parse(e,ys)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var El=function(e){var t=Use(this,Yn),n=qse(arguments.length,1)>1?arguments[1]:void 0,r=zse(t,new R1(e,!1,n));_1||(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())},Yn=El.prototype,$i=function(e,t){return{get:function(){return Yp(this)[e]()},set:t&&function(n){return Yp(this)[t](n)},configurable:!0,enumerable:!0}};if(_1&&(Bi(Yn,"href",$i("serialize","setHref")),Bi(Yn,"origin",$i("getOrigin")),Bi(Yn,"protocol",$i("getProtocol","setProtocol")),Bi(Yn,"username",$i("getUsername","setUsername")),Bi(Yn,"password",$i("getPassword","setPassword")),Bi(Yn,"host",$i("getHost","setHost")),Bi(Yn,"hostname",$i("getHostname","setHostname")),Bi(Yn,"port",$i("getPort","setPort")),Bi(Yn,"pathname",$i("getPathname","setPathname")),Bi(Yn,"search",$i("getSearch","setSearch")),Bi(Yn,"searchParams",$i("getSearchParams")),Bi(Yn,"hash",$i("getHash","setHash"))),Jp(Yn,"toJSON",function(){return Yp(this).serialize()},{enumerable:!0}),Jp(Yn,"toString",function(){return Yp(this).serialize()},{enumerable:!0}),ku){var KE=ku.createObjectURL,JE=ku.revokeObjectURL;KE&&Jp(El,"createObjectURL",NE(KE,ku)),JE&&Jp(El,"revokeObjectURL",NE(JE,ku))}Vse(El,"URL"),jse({global:!0,constructor:!0,forced:!Bse,sham:!_1},{URL:El});var coe=fl,YE=Array.isArray||function(e){return coe(e)==="Array"},uoe=TypeError,XE=YE,doe=n1,foe=Li,poe=un("species"),ZE=Array,QE=function(e,t){return new(function(n){var r;return XE(n)&&(r=n.constructor,(doe(r)&&(r===ZE||XE(r.prototype))||foe(r)&&(r=r[poe])===null)&&(r=void 0)),r===void 0?ZE:r}(e))(t===0?0:t)},hoe=en,goe=Cp,moe=un("species"),e7=function(e){return goe>=51||!hoe(function(){var t=[];return(t.constructor={})[moe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},_oe=mi,voe=en,boe=YE,yoe=Li,woe=ea,Coe=vu,t7=function(e){if(e>9007199254740991)throw uoe("Maximum allowed index exceeded");return e},n7=Qx,Soe=QE,xoe=e7,Eoe=Cp,i7=un("isConcatSpreadable"),Aoe=Eoe>=51||!voe(function(){var e=[];return e[i7]=!1,e.concat()[0]!==e}),Toe=function(e){if(!yoe(e))return!1;var t=e[i7];return t!==void 0?!!t:boe(e)};_oe({target:"Array",proto:!0,arity:1,forced:!Aoe||!xoe("concat")},{concat:function(e){var t,n,r,s,o,a=woe(this),l=Soe(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(Toe(o=t===-1?a:arguments[t]))for(s=Coe(o),t7(c+s),n=0;n<s;n++,c++)n in o&&n7(l,c,o[n]);else t7(c+1),n7(l,c++,o);return l.length=c,l}});var koe=ra,Poe=pv,Ooe=ea,Noe=vu,Ioe=QE,r7=Yt([].push),ro=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 p,g,_=Ooe(c),b=Poe(_),y=Noe(b),w=koe(u,d),E=0,C=f||Ioe,S=t?C(c,y):n||a?C(c,0):void 0;y>E;E++)if((l||E in b)&&(g=w(p=b[E],E,_),e))if(t)S[E]=g;else if(g)switch(e){case 3:return!0;case 5:return p;case 6:return E;case 2:r7(S,p)}else switch(e){case 4:return!1;case 7:r7(S,p)}return o?-1:r||s?s:S}},Doe=[ro(0),ro(1),ro(2),ro(3),ro(4),ro(5),ro(6),ro(7)][1];mi({target:"Array",proto:!0,forced:!e7("map")},{map:function(e){return Doe(this,e,arguments.length>1?arguments[1]:void 0)}});var s7=Pn,Roe=en,o7=Yt,Loe=qv,Moe=Cv,Foe=pl,a7=o7(Np.f),joe=o7([].push),Boe=s7&&Roe(function(){var e=Object.create(null);return e[2]=2,!a7(e,2)}),l7=function(e){return function(t){for(var n,r=Foe(t),s=Moe(r),o=Boe&&Loe(r)===null,a=s.length,l=0,c=[];a>l;)n=s[l++],s7&&!(o?n in r:a7(r,n))||joe(c,e?[n,r[n]]:r[n]);return c}},Uoe=[l7(!0),l7(!1)][0];mi({target:"Object",stat:!0},{entries:function(e){return Uoe(e)}});var $oe=On,Voe=gi,qoe=yp,zoe=W5,c7=RegExp.prototype,Hoe=pu.PROPER,Goe=or,Woe=Bn,u7=na,Koe=en,L1="toString",d7=RegExp.prototype,f7=d7[L1],Joe=Koe(function(){return f7.call({source:"a",flags:"b"})!=="/a/b"}),Yoe=Hoe&&f7.name!==L1;(Joe||Yoe)&&Goe(d7,L1,function(){var e=Woe(this);return"/"+u7(e.source)+"/"+u7(function(t){var n=t.flags;return n!==void 0||"flags"in c7||Voe(t,"flags")||!qoe(c7,t)?n:$oe(zoe,t)}(e))},{unsafe:!0});var Du,Al,p7,M1,ih=fl(tn.process)==="process",Xoe=ta,Zoe=Op,Qoe=Pn,h7=un("species"),eae=n1,tae=Sp,nae=TypeError,g7=Bn,iae=fu,rae=un("species"),m7=/(?:ipad|iphone|ipod).*applewebkit/i.test(wp),_i=tn,sae=sx,oae=ra,_7=on,aae=gi,v7=en,b7=J5,lae=r1,y7=vp,cae=a1,uae=m7,dae=ih,F1=_i.setImmediate,j1=_i.clearImmediate,fae=_i.process,B1=_i.Dispatch,pae=_i.Function,w7=_i.MessageChannel,hae=_i.String,U1=0,Ru={},C7="onreadystatechange";v7(function(){Du=_i.location});var $1=function(e){if(aae(Ru,e)){var t=Ru[e];delete Ru[e],t()}},V1=function(e){return function(){$1(e)}},S7=function(e){$1(e.data)},x7=function(e){_i.postMessage(hae(e),Du.protocol+"//"+Du.host)};F1&&j1||(F1=function(e){cae(arguments.length,1);var t=_7(e)?e:pae(e),n=lae(arguments,1);return Ru[++U1]=function(){sae(t,void 0,n)},Al(U1),U1},j1=function(e){delete Ru[e]},dae?Al=function(e){fae.nextTick(V1(e))}:B1&&B1.now?Al=function(e){B1.now(V1(e))}:w7&&!uae?(M1=(p7=new w7).port2,p7.port1.onmessage=S7,Al=oae(M1.postMessage,M1)):_i.addEventListener&&_7(_i.postMessage)&&!_i.importScripts&&Du&&Du.protocol!=="file:"&&!v7(x7)?(Al=x7,_i.addEventListener("message",S7,!1)):Al=C7 in y7("script")?function(e){b7.appendChild(y7("script"))[C7]=function(){b7.removeChild(this),$1(e)}}:function(e){setTimeout(V1(e),0)});var E7={set:F1,clear:j1},A7=function(){this.head=null,this.tail=null};A7.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 Tl,q1,z1,H1,T7,k7=A7,gae=/ipad|iphone|ipod/i.test(wp)&&typeof Pebble!="undefined",mae=/web0s(?!.*chrome)/i.test(wp),kl=tn,_ae=uE,P7=ra,G1=E7.set,vae=k7,bae=m7,yae=gae,wae=mae,W1=ih,O7=kl.MutationObserver||kl.WebKitMutationObserver,N7=kl.document,I7=kl.process,rh=kl.Promise,K1=_ae("queueMicrotask");if(!K1){var sh=new vae,oh=function(){var e,t;for(W1&&(e=I7.domain)&&e.exit();t=sh.get();)try{t()}catch(n){throw sh.head&&Tl(),n}e&&e.enter()};bae||W1||wae||!O7||!N7?!yae&&rh&&rh.resolve?((H1=rh.resolve(void 0)).constructor=rh,T7=P7(H1.then,H1),Tl=function(){T7(oh)}):W1?Tl=function(){I7.nextTick(oh)}:(G1=P7(G1,kl),Tl=function(){G1(oh)}):(q1=!0,z1=N7.createTextNode(""),new O7(oh).observe(z1,{characterData:!0}),Tl=function(){z1.data=q1=!q1}),K1=function(e){sh.head||Tl(),sh.add(e)}}var Cae=K1,J1=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},ah=tn.Promise,D7=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",Sae=!D7&&!ih&&typeof window=="object"&&typeof document=="object",xae=tn,Lu=ah,Eae=on,Aae=H5,Tae=z0,kae=un,Pae=Sae,Oae=D7,Y1=Cp;Lu&&Lu.prototype;var Nae=kae("species"),R7=!1,L7=Eae(xae.PromiseRejectionEvent),Iae=Aae("Promise",function(){var e=Tae(Lu),t=e!==String(Lu);if(!t&&Y1===66)return!0;if(!Y1||Y1<51||!/native code/.test(e)){var n=new Lu(function(s){s(1)}),r=function(s){s(function(){},function(){})};if((n.constructor={})[Nae]=r,!(R7=n.then(function(){})instanceof r))return!0}return!t&&(Pae||Oae)&&!L7}),ca={CONSTRUCTOR:Iae,REJECTION_EVENT:L7,SUBCLASSING:R7},Pl={},M7=eo,Dae=TypeError,Rae=function(e){var t,n;this.promise=new e(function(r,s){if(t!==void 0||n!==void 0)throw new Dae("Bad Promise constructor");t=r,n=s}),this.resolve=M7(t),this.reject=M7(n)};Pl.f=function(e){return new Rae(e)};var X1,F7,j7,Lae=mi,lh=ih,so=tn,Ol=On,B7=or,U7=xx,Mae=ml,Fae=eo,ch=on,jae=Li,Bae=Qv,Uae=function(e,t){var n,r=g7(e).constructor;return r===void 0||iae(n=g7(r)[rae])?t:function(s){if(eae(s))return s;throw new nae(tae(s)+" is not a constructor")}(n)},$7=E7.set,Z1=Cae,$ae=J1,Vae=k7,V7=to,uh=ah,q7=Pl,dh="Promise",z7=ca.CONSTRUCTOR,qae=ca.REJECTION_EVENT,zae=ca.SUBCLASSING,Q1=V7.getterFor(dh),Hae=V7.set,Nl=uh&&uh.prototype,Il=uh,fh=Nl,H7=so.TypeError,eb=so.document,tb=so.process,nb=q7.f,Gae=nb,Wae=!!(eb&&eb.createEvent&&so.dispatchEvent),G7="unhandledrejection",W7=function(e){var t;return!(!jae(e)||!ch(t=e.then))&&t},K7=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&&Jae(t),t.rejection=1),l===!0?n=o:(d&&d.enter(),n=l(o),d&&(d.exit(),s=!0)),n===e.promise?u(new H7("Promise-chain cycle")):(r=W7(n))?Ol(r,n,c,u):c(n)):u(o)}catch(f){d&&!s&&d.exit(),u(f)}},J7=function(e,t){e.notified||(e.notified=!0,Z1(function(){for(var n,r=e.reactions;n=r.get();)K7(n,e);e.notified=!1,t&&!e.rejection&&Kae(e)}))},Y7=function(e,t,n){var r,s;Wae?((r=eb.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),so.dispatchEvent(r)):r={promise:t,reason:n},!qae&&(s=so["on"+e])?s(r):e===G7&&function(o,a){try{arguments.length===1?console.error(o):console.error(o,a)}catch(l){}}("Unhandled promise rejection",n)},Kae=function(e){Ol($7,so,function(){var t,n=e.facade,r=e.value;if(X7(e)&&(t=$ae(function(){lh?tb.emit("unhandledRejection",r,n):Y7(G7,n,r)}),e.rejection=lh||X7(e)?2:1,t.error))throw t.value})},X7=function(e){return e.rejection!==1&&!e.parent},Jae=function(e){Ol($7,so,function(){var t=e.facade;lh?tb.emit("rejectionHandled",t):Y7("rejectionhandled",t,e.value)})},Dl=function(e,t,n){return function(r){e(t,r,n)}},Rl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,J7(e,!0))},ib=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new H7("Promise can't be resolved itself");var r=W7(t);r?Z1(function(){var s={done:!1};try{Ol(r,t,Dl(ib,s,e),Dl(Rl,s,e))}catch(o){Rl(s,o,e)}}):(e.value=t,e.state=1,J7(e,!1))}catch(s){Rl({done:!1},s,e)}}};if(z7&&(fh=(Il=function(e){Bae(this,fh),Fae(e),Ol(X1,this);var t=Q1(this);try{e(Dl(ib,t),Dl(Rl,t))}catch(n){Rl(t,n)}}).prototype,(X1=function(e){Hae(this,{type:dh,done:!1,notified:!1,parent:!1,reactions:new Vae,rejection:!1,state:0,value:void 0})}).prototype=B7(fh,"then",function(e,t){var n=Q1(this),r=nb(Uae(this,Il));return n.parent=!0,r.ok=!ch(e)||e,r.fail=ch(t)&&t,r.domain=lh?tb.domain:void 0,n.state===0?n.reactions.add(r):Z1(function(){K7(r,n)}),r.promise}),F7=function(){var e=new X1,t=Q1(e);this.promise=e,this.resolve=Dl(ib,t),this.reject=Dl(Rl,t)},q7.f=nb=function(e){return e===Il||e===void 0?new F7(e):Gae(e)},ch(uh)&&Nl!==Object.prototype)){j7=Nl.then,zae||B7(Nl,"then",function(e,t){var n=this;return new Il(function(r,s){Ol(j7,n,r,s)}).then(e,t)},{unsafe:!0});try{delete Nl.constructor}catch(e){}U7&&U7(Nl,fh)}Lae({global:!0,constructor:!0,wrap:!0,forced:z7},{Promise:Il}),Mae(Il,dh,!1),function(e){var t=Xoe(e);Qoe&&t&&!t[h7]&&Zoe(t,h7,{configurable:!0,get:function(){return this}})}(dh);var Yae=ra,Xae=On,Zae=Bn,Qae=Sp,ele=Kx,tle=vu,Z7=yp,nle=i1,ile=qp,Q7=Wx,rle=TypeError,ph=function(e,t){this.stopped=e,this.result=t},e9=ph.prototype,t9=function(e,t,n){var r,s,o,a,l,c,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),g=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),b=Yae(t,d),y=function(E){return r&&Q7(r,"normal",E),new ph(!0,E)},w=function(E){return f?(Zae(E),_?b(E[0],E[1],y):b(E[0],E[1])):_?b(E,y):b(E)};if(p)r=e.iterator;else if(g)r=e;else{if(!(s=ile(e)))throw new rle(Qae(e)+" is not iterable");if(ele(s)){for(o=0,a=tle(e);a>o;o++)if((l=w(e[o]))&&Z7(e9,l))return l;return new ph(!1)}r=nle(e,s)}for(c=p?e.next:r.next;!(u=Xae(c,r)).done;){try{l=w(u.value)}catch(E){Q7(r,"throw",E)}if(typeof l=="object"&&l&&Z7(e9,l))return l}return new ph(!1)},n9=un("iterator"),i9=!1;try{var sle=0,r9={next:function(){return{done:!!sle++}},return:function(){i9=!0}};r9[n9]=function(){return this},Array.from(r9,function(){throw 2})}catch(e){}var ole=ah,s9=ca.CONSTRUCTOR||!function(e,t){try{if(!t&&!i9)return!1}catch(s){return!1}var n=!1;try{var r={};r[n9]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(s){}return n}(function(e){ole.all(e).then(void 0,function(){})}),ale=On,lle=eo,cle=Pl,ule=J1,dle=t9;mi({target:"Promise",stat:!0,forced:s9},{all:function(e){var t=this,n=cle.f(t),r=n.resolve,s=n.reject,o=ule(function(){var a=lle(t.resolve),l=[],c=0,u=1;dle(e,function(d){var f=c++,p=!1;u++,ale(a,t,d).then(function(g){p||(p=!0,l[f]=g,--u||r(l))},s)}),--u||r(l)});return o.error&&s(o.value),n.promise}});var fle=mi,ple=ca.CONSTRUCTOR,rb=ah,hle=ta,gle=on,mle=or,o9=rb&&rb.prototype;if(fle({target:"Promise",proto:!0,forced:ple,real:!0},{catch:function(e){return this.then(void 0,e)}}),gle(rb)){var a9=hle("Promise").prototype.catch;o9.catch!==a9&&mle(o9,"catch",a9,{unsafe:!0})}var _le=On,vle=eo,ble=Pl,yle=J1,wle=t9;mi({target:"Promise",stat:!0,forced:s9},{race:function(e){var t=this,n=ble.f(t),r=n.reject,s=yle(function(){var o=vle(t.resolve);wle(e,function(a){_le(o,t,a).then(n.resolve,r)})});return s.error&&r(s.value),n.promise}});var Cle=Pl;mi({target:"Promise",stat:!0,forced:ca.CONSTRUCTOR},{reject:function(e){var t=Cle.f(this);return(0,t.reject)(e),t.promise}});var Sle=Bn,xle=Li,Ele=Pl,Ale=mi,Tle=ca.CONSTRUCTOR;ta("Promise"),Ale({target:"Promise",stat:!0,forced:Tle},{resolve:function(e){return function(t,n){if(Sle(t),xle(n)&&n.constructor===t)return n;var r=Ele.f(t);return(0,r.resolve)(n),r.promise}(this,e)}});var hh,Mu,l9={exports:{}},c9={exports:{}};hh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mu={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&Mu.rotl(e,8)|4278255360&Mu.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=Mu.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(hh.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((hh.indexOf(e.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<2*r|hh.indexOf(e.charAt(n))>>>6-2*r);return t}},c9.exports=Mu;var kle=c9.exports,sb={utf8:{stringToBytes:function(e){return sb.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(sb.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("")}}},u9=sb,Ple=function(e){return e!=null&&(d9(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&d9(t.slice(0,0))}(e)||!!e._isBuffer)};function d9(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}(function(){var e=kle,t=u9.utf8,n=Ple,r=u9.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,p=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 _=s._ff,b=s._gg,y=s._hh,w=s._ii;for(g=0;g<l.length;g+=16){var E=u,C=d,S=f,A=p;u=_(u,d,f,p,l[g+0],7,-680876936),p=_(p,u,d,f,l[g+1],12,-389564586),f=_(f,p,u,d,l[g+2],17,606105819),d=_(d,f,p,u,l[g+3],22,-1044525330),u=_(u,d,f,p,l[g+4],7,-176418897),p=_(p,u,d,f,l[g+5],12,1200080426),f=_(f,p,u,d,l[g+6],17,-1473231341),d=_(d,f,p,u,l[g+7],22,-45705983),u=_(u,d,f,p,l[g+8],7,1770035416),p=_(p,u,d,f,l[g+9],12,-1958414417),f=_(f,p,u,d,l[g+10],17,-42063),d=_(d,f,p,u,l[g+11],22,-1990404162),u=_(u,d,f,p,l[g+12],7,1804603682),p=_(p,u,d,f,l[g+13],12,-40341101),f=_(f,p,u,d,l[g+14],17,-1502002290),u=b(u,d=_(d,f,p,u,l[g+15],22,1236535329),f,p,l[g+1],5,-165796510),p=b(p,u,d,f,l[g+6],9,-1069501632),f=b(f,p,u,d,l[g+11],14,643717713),d=b(d,f,p,u,l[g+0],20,-373897302),u=b(u,d,f,p,l[g+5],5,-701558691),p=b(p,u,d,f,l[g+10],9,38016083),f=b(f,p,u,d,l[g+15],14,-660478335),d=b(d,f,p,u,l[g+4],20,-405537848),u=b(u,d,f,p,l[g+9],5,568446438),p=b(p,u,d,f,l[g+14],9,-1019803690),f=b(f,p,u,d,l[g+3],14,-187363961),d=b(d,f,p,u,l[g+8],20,1163531501),u=b(u,d,f,p,l[g+13],5,-1444681467),p=b(p,u,d,f,l[g+2],9,-51403784),f=b(f,p,u,d,l[g+7],14,1735328473),u=y(u,d=b(d,f,p,u,l[g+12],20,-1926607734),f,p,l[g+5],4,-378558),p=y(p,u,d,f,l[g+8],11,-2022574463),f=y(f,p,u,d,l[g+11],16,1839030562),d=y(d,f,p,u,l[g+14],23,-35309556),u=y(u,d,f,p,l[g+1],4,-1530992060),p=y(p,u,d,f,l[g+4],11,1272893353),f=y(f,p,u,d,l[g+7],16,-155497632),d=y(d,f,p,u,l[g+10],23,-1094730640),u=y(u,d,f,p,l[g+13],4,681279174),p=y(p,u,d,f,l[g+0],11,-358537222),f=y(f,p,u,d,l[g+3],16,-722521979),d=y(d,f,p,u,l[g+6],23,76029189),u=y(u,d,f,p,l[g+9],4,-640364487),p=y(p,u,d,f,l[g+12],11,-421815835),f=y(f,p,u,d,l[g+15],16,530742520),u=w(u,d=y(d,f,p,u,l[g+2],23,-995338651),f,p,l[g+0],6,-198630844),p=w(p,u,d,f,l[g+7],10,1126891415),f=w(f,p,u,d,l[g+14],15,-1416354905),d=w(d,f,p,u,l[g+5],21,-57434055),u=w(u,d,f,p,l[g+12],6,1700485571),p=w(p,u,d,f,l[g+3],10,-1894986606),f=w(f,p,u,d,l[g+10],15,-1051523),d=w(d,f,p,u,l[g+1],21,-2054922799),u=w(u,d,f,p,l[g+8],6,1873313359),p=w(p,u,d,f,l[g+15],10,-30611744),f=w(f,p,u,d,l[g+6],15,-1560198380),d=w(d,f,p,u,l[g+13],21,1309151649),u=w(u,d,f,p,l[g+4],6,-145523070),p=w(p,u,d,f,l[g+11],10,-1120210379),f=w(f,p,u,d,l[g+2],15,718787259),d=w(d,f,p,u,l[g+9],21,-343485551),u=u+E>>>0,d=d+C>>>0,f=f+S>>>0,p=p+A>>>0}return e.endian([u,d,f,p])};s._ff=function(o,a,l,c,u,d,f){var p=o+(a&l|~a&c)+(u>>>0)+f;return(p<<d|p>>>32-d)+a},s._gg=function(o,a,l,c,u,d,f){var p=o+(a&c|l&~c)+(u>>>0)+f;return(p<<d|p>>>32-d)+a},s._hh=function(o,a,l,c,u,d,f){var p=o+(a^l^c)+(u>>>0)+f;return(p<<d|p>>>32-d)+a},s._ii=function(o,a,l,c,u,d,f){var p=o+(l^(a|~c))+(u>>>0)+f;return(p<<d|p>>>32-d)+a},s._blocksize=16,s._digestsize=16,l9.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 f9=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(l9.exports),ob={exports:{}};(function(e,t){(function(n,r){var s="function",o="undefined",a="object",l="string",c="major",u="model",d="name",f="type",p="vendor",g="version",_="architecture",b="console",y="mobile",w="tablet",E="smarttv",C="wearable",S="embedded",A="Amazon",P="Apple",I="ASUS",O="BlackBerry",L="Browser",R="Chrome",F="Firefox",H="Google",V="Huawei",ae="LG",ce="Microsoft",U="Motorola",J="Opera",Q="Samsung",X="Sharp",j="Sony",ye="Xiaomi",pe="Zebra",ie="Facebook",oe="Chromium OS",Ce="Mac OS",me=function(de){for(var fe={},Se=0;Se<de.length;Se++)fe[de[Se].toUpperCase()]=de[Se];return fe},z=function(de,fe){return typeof de===l&&Z(fe).indexOf(Z(de))!==-1},Z=function(de){return de.toLowerCase()},_e=function(de,fe){if(typeof de===l)return de=de.replace(/^\s\s*/,""),typeof fe===o?de:de.substring(0,500)},Pe=function(de,fe){for(var Se,Te,Oe,ve,$e,he,le=0;le<fe.length&&!$e;){var Le=fe[le],Ye=fe[le+1];for(Se=Te=0;Se<Le.length&&!$e&&Le[Se];)if($e=Le[Se++].exec(de))for(Oe=0;Oe<Ye.length;Oe++)he=$e[++Te],typeof(ve=Ye[Oe])===a&&ve.length>0?ve.length===2?typeof ve[1]==s?this[ve[0]]=ve[1].call(this,he):this[ve[0]]=ve[1]:ve.length===3?typeof ve[1]!==s||ve[1].exec&&ve[1].test?this[ve[0]]=he?he.replace(ve[1],ve[2]):r:this[ve[0]]=he?ve[1].call(this,he,ve[2]):r:ve.length===4&&(this[ve[0]]=he?ve[3].call(this,he.replace(ve[1],ve[2])):r):this[ve]=he||r;le+=2}},Re=function(de,fe){for(var Se in fe)if(typeof fe[Se]===a&&fe[Se].length>0){for(var Te=0;Te<fe[Se].length;Te++)if(z(fe[Se][Te],de))return Se==="?"?r:Se}else if(z(fe[Se],de))return Se==="?"?r:Se;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"},B={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,J+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[d,J]],[/\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"+L]],[/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 "+L]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+L],g],[/\bfocus\/([\w\.]+)/i],[g,[d,F+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[d,J+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[d,J+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[d,"MIUI "+L]],[/fxios\/([-\w\.]+)/i],[g,[d,F]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+L]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+L],g],[/samsungbrowser\/([\w\.]+)/i],[g,[d,Q+" 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,ie],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,R+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,R+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[d,"Android "+L]],[/(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,Re,{"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,F+" 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],[[_,"amd64"]],[/(ia32(?=;))/i],[[_,Z]],[/((?:i[346]|x)86)[;\)]/i],[[_,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[_,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[_,"armhf"]],[/windows (ce|mobile); ppc;/i],[[_,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[_,/ower/,"",Z]],[/(sun4\w)[;\)]/i],[[_,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[_,Z]]],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,[p,Q],[f,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[p,Q],[f,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[p,P],[f,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[p,P],[f,w]],[/(macintosh);/i],[u,[p,P]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[p,X],[f,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[p,V],[f,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[p,V],[f,y]],[/\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," "],[p,ye],[f,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[p,ye],[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,[p,"OPPO"],[f,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[p,"Vivo"],[f,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[p,"Realme"],[f,y]],[/\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,[p,U],[f,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[p,U],[f,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[p,ae],[f,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[p,ae],[f,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[p,"Lenovo"],[f,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[p,"Nokia"],[f,y]],[/(pixel c)\b/i],[u,[p,H],[f,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[p,H],[f,y]],[/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,[p,j],[f,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[p,j],[f,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[p,"OnePlus"],[f,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[p,A],[f,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[p,A],[f,y]],[/(playbook);[-\w\),; ]+(rim)/i],[u,p,[f,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[p,O],[f,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[p,I],[f,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[p,I],[f,y]],[/(nexus 9)/i],[u,[p,"HTC"],[f,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[u,/_/g," "],[f,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[p,"Acer"],[f,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[p,"Meizu"],[f,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[p,"Ulefone"],[f,y]],[/(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],[p,u,[f,y]],[/(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],[p,u,[f,w]],[/(surface duo)/i],[u,[p,ce],[f,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[p,"Fairphone"],[f,y]],[/(u304aa)/i],[u,[p,"AT&T"],[f,y]],[/\bsie-(\w*)/i],[u,[p,"Siemens"],[f,y]],[/\b(rct\w+) b/i],[u,[p,"RCA"],[f,w]],[/\b(venue[\d ]{2,7}) b/i],[u,[p,"Dell"],[f,w]],[/\b(q(?:mv|ta)\w+) b/i],[u,[p,"Verizon"],[f,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[p,"Barnes & Noble"],[f,w]],[/\b(tm\d{3}\w+) b/i],[u,[p,"NuVision"],[f,w]],[/\b(k88) b/i],[u,[p,"ZTE"],[f,w]],[/\b(nx\d{3}j) b/i],[u,[p,"ZTE"],[f,y]],[/\b(gen\d{3}) b.+49h/i],[u,[p,"Swiss"],[f,y]],[/\b(zur\d{3}) b/i],[u,[p,"Swiss"],[f,w]],[/\b((zeki)?tb.*\b) b/i],[u,[p,"Zeki"],[f,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],u,[f,w]],[/\b(ns-?\w{0,9}) b/i],[u,[p,"Insignia"],[f,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[p,"NextBook"],[f,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],u,[f,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],u,[f,y]],[/\b(ph-1) /i],[u,[p,"Essential"],[f,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[p,"Envizen"],[f,w]],[/\b(trio[-\w\. ]+) b/i],[u,[p,"MachSpeed"],[f,w]],[/\btu_(1491) b/i],[u,[p,"Rotor"],[f,w]],[/(shield[\w ]+) b/i],[u,[p,"Nvidia"],[f,w]],[/(sprint) (\w+)/i],[p,u,[f,y]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[p,ce],[f,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[p,pe],[f,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[p,pe],[f,y]],[/smart-tv.+(samsung)/i],[p,[f,E]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[p,Q],[f,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,ae],[f,E]],[/(apple) ?tv/i],[p,[u,P+" TV"],[f,E]],[/crkey/i],[[u,R+"cast"],[p,H],[f,E]],[/droid.+aft(\w+)( bui|\))/i],[u,[p,A],[f,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[p,X],[f,E]],[/(bravia[\w ]+)( bui|\))/i],[u,[p,j],[f,E]],[/(mitv-\w{5}) bui/i],[u,[p,ye],[f,E]],[/Hbbtv.*(technisat) (.*);/i],[p,u,[f,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,_e],[u,_e],[f,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,u,[f,b]],[/droid.+; (shield) bui/i],[u,[p,"Nvidia"],[f,b]],[/(playstation [345portablevi]+)/i],[u,[p,j],[f,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[p,ce],[f,b]],[/((pebble))app/i],[p,u,[f,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[p,P],[f,C]],[/droid.+; (glass) \d/i],[u,[p,H],[f,C]],[/droid.+; (wt63?0{2,3})\)/i],[u,[p,pe],[f,C]],[/(quest( 2| pro)?)/i],[u,[p,ie],[f,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[f,S]],[/(aeobc)\b/i],[u,[p,A],[f,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[f,y]],[/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,y]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[p,"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,Re,Ke]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,Re,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,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[d,F+" 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,R+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,oe],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]]},K=function(de,fe){if(typeof de===a&&(fe=de,de=r),!(this instanceof K))return new K(de,fe).getResult();var Se=typeof n!==o&&n.navigator?n.navigator:r,Te=de||(Se&&Se.userAgent?Se.userAgent:""),Oe=Se&&Se.userAgentData?Se.userAgentData:r,ve=fe?function(he,le){var Le={};for(var Ye in he)le[Ye]&&le[Ye].length%2==0?Le[Ye]=le[Ye].concat(he[Ye]):Le[Ye]=he[Ye];return Le}(B,fe):B,$e=Se&&Se.userAgent==Te;return this.getBrowser=function(){var he={};return he[d]=r,he[g]=r,Pe.call(he,Te,ve.browser),he[c]=function(le){return typeof le===l?le.replace(/[^\d\.]/g,"").split(".")[0]:r}(he[g]),$e&&Se&&Se.brave&&typeof Se.brave.isBrave==s&&(he[d]="Brave"),he},this.getCPU=function(){var he={};return he[_]=r,Pe.call(he,Te,ve.cpu),he},this.getDevice=function(){var he={};return he[p]=r,he[u]=r,he[f]=r,Pe.call(he,Te,ve.device),$e&&!he[f]&&Oe&&Oe.mobile&&(he[f]=y),$e&&he[u]=="Macintosh"&&Se&&typeof Se.standalone!==o&&Se.maxTouchPoints&&Se.maxTouchPoints>2&&(he[u]="iPad",he[f]=w),he},this.getEngine=function(){var he={};return he[d]=r,he[g]=r,Pe.call(he,Te,ve.engine),he},this.getOS=function(){var he={};return he[d]=r,he[g]=r,Pe.call(he,Te,ve.os),$e&&!he[d]&&Oe&&Oe.platform!="Unknown"&&(he[d]=Oe.platform.replace(/chrome os/i,oe).replace(/macos/i,Ce)),he},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 Te},this.setUA=function(he){return Te=typeof he===l&&he.length>500?_e(he,500):he,this},this.setUA(Te),this};K.VERSION="1.0.37",K.BROWSER=me([d,g,c]),K.CPU=me([_]),K.DEVICE=me([u,p,f,b,y,E,w,C,S]),K.ENGINE=K.OS=me([d,g]),e.exports&&(t=e.exports=K),t.UAParser=K;var se=typeof n!==o&&(n.jQuery||n.Zepto);if(se&&!se.ua){var Ae=new K;se.ua=Ae.getResult(),se.ua.get=function(){return Ae.getUA()},se.ua.set=function(de){Ae.setUA(de);var fe=Ae.getResult();for(var Se in fe)se.ua[Se]=fe[Se]}}})(typeof window=="object"?window:du)})(ob,ob.exports);var Ole=ob.exports,Nle=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(g,_){if(!(g instanceof _))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,p=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=p,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 Ole.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()||f9(""+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 f9(""+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=KZ(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&&WZ(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),p9=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},Ile=function(){function e(t){dp(this,e),vs(this,"performanceData",{fcp:0,fp:0,lcp:0}),vs(this,"commit",function(){}),this.webCoreIns=t}return fp(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),p=Nn(s.secureConnectionStart==0?0:s.connectEnd-s.secureConnectionStart),g=Nn(s.responseStart-s.requestStart),_=Nn(s.domInteractive-s.fetchStart),b=Nn(s.responseEnd-s.responseStart),y=Nn(s.domContentLoadedEventEnd-s.fetchStart),w=Nn(s.domInteractive-s.responseEnd),E=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:p,ttfb:g,contentTime:b,domParseTime:w,tti:_,domReadyTime:y,loadEventTime:C,loadFinishTime:S,loadResourceTime:E,resource:""})}else o=setTimeout(a,100)},!1)}),new Promise(function(n,r){p9("paint",function(s){var o=0,a=0;if(s!=="err"){var l,c=M0(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(p){c.e(p)}finally{c.f()}}n({fp:o,fcp:a})})}).catch(function(n){return console.log(n)}),new Promise(function(n,r){p9("largest-contentful-paint",function(s){if(s=="err")n({lcp:0});else{var o,a=M0(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 lu(lu({},r),s)},t.performanceData);n.type="performance",t.webCoreIns.commit(n)}).catch(function(n){console.log(n)})}},{key:"calcResourceTime",value:function(){}}]),e}(),Dle=["SCRIPT","STYLE","META","HEAD"];function ab(){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||Dle.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 ab(l,t+1,a,r,s)},n+o)}var Rle=0,lb={},Lle=function(e){if(!e)return Promise.reject("empty url");var t=lb[e];return t?Promise.resolve(t):new Promise(function(n,r){var s=document.createElement("script");if(s.id="script".concat(Rle++),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,lb[e]=o,n(o))}:s.onload=function(o){lb[e]=o,n(o)},document.body.appendChild(s)})};function Mle(e,t){return h9.apply(this,arguments)}function h9(){return(h9=cu(sr().mark(function e(t,n){var r,s,o;return sr().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Lle("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=Fle(s),a.next=9,jle(o,t,n);case 9:return a.abrupt("return",a.sent);case 10:case"end":return a.stop()}},e)}))).apply(this,arguments)}function Fle(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 jle(e,t,n){return g9.apply(this,arguments)}function g9(){return(g9=cu(sr().mark(function e(t,n,r){var s,o;return sr().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 Ble=function(){function e(n){dp(this,e),vs(this,"isLoaded",!1),vs(this,"timer",null),vs(this,"whiteCount",0),vs(this,"maxLoopNumber",2),vs(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 fp(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=ab(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=ab(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=cu(sr().mark(function n(r){return sr().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&&Mle(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}(),Ule=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gh="js",Fu="resource",m9="unhandledrejection",mh="cors",_9="vue",v9="react";function $le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _h,ju,b9={exports:{}},y9={exports:{}};_h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ju={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&ju.rotl(e,8)|4278255360&ju.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=ju.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(_h.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((_h.indexOf(e.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<2*r|_h.indexOf(e.charAt(n))>>>6-2*r);return t}},y9.exports=ju;var Vle=y9.exports,cb={utf8:{stringToBytes:function(e){return cb.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(cb.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("")}}},w9=cb,qle=function(e){return e!=null&&(C9(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&C9(t.slice(0,0))}(e)||!!e._isBuffer)};function C9(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}(function(){var e=Vle,t=w9.utf8,n=qle,r=w9.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,p=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 _=s._ff,b=s._gg,y=s._hh,w=s._ii;for(g=0;g<l.length;g+=16){var E=u,C=d,S=f,A=p;u=_(u,d,f,p,l[g+0],7,-680876936),p=_(p,u,d,f,l[g+1],12,-389564586),f=_(f,p,u,d,l[g+2],17,606105819),d=_(d,f,p,u,l[g+3],22,-1044525330),u=_(u,d,f,p,l[g+4],7,-176418897),p=_(p,u,d,f,l[g+5],12,1200080426),f=_(f,p,u,d,l[g+6],17,-1473231341),d=_(d,f,p,u,l[g+7],22,-45705983),u=_(u,d,f,p,l[g+8],7,1770035416),p=_(p,u,d,f,l[g+9],12,-1958414417),f=_(f,p,u,d,l[g+10],17,-42063),d=_(d,f,p,u,l[g+11],22,-1990404162),u=_(u,d,f,p,l[g+12],7,1804603682),p=_(p,u,d,f,l[g+13],12,-40341101),f=_(f,p,u,d,l[g+14],17,-1502002290),u=b(u,d=_(d,f,p,u,l[g+15],22,1236535329),f,p,l[g+1],5,-165796510),p=b(p,u,d,f,l[g+6],9,-1069501632),f=b(f,p,u,d,l[g+11],14,643717713),d=b(d,f,p,u,l[g+0],20,-373897302),u=b(u,d,f,p,l[g+5],5,-701558691),p=b(p,u,d,f,l[g+10],9,38016083),f=b(f,p,u,d,l[g+15],14,-660478335),d=b(d,f,p,u,l[g+4],20,-405537848),u=b(u,d,f,p,l[g+9],5,568446438),p=b(p,u,d,f,l[g+14],9,-1019803690),f=b(f,p,u,d,l[g+3],14,-187363961),d=b(d,f,p,u,l[g+8],20,1163531501),u=b(u,d,f,p,l[g+13],5,-1444681467),p=b(p,u,d,f,l[g+2],9,-51403784),f=b(f,p,u,d,l[g+7],14,1735328473),u=y(u,d=b(d,f,p,u,l[g+12],20,-1926607734),f,p,l[g+5],4,-378558),p=y(p,u,d,f,l[g+8],11,-2022574463),f=y(f,p,u,d,l[g+11],16,1839030562),d=y(d,f,p,u,l[g+14],23,-35309556),u=y(u,d,f,p,l[g+1],4,-1530992060),p=y(p,u,d,f,l[g+4],11,1272893353),f=y(f,p,u,d,l[g+7],16,-155497632),d=y(d,f,p,u,l[g+10],23,-1094730640),u=y(u,d,f,p,l[g+13],4,681279174),p=y(p,u,d,f,l[g+0],11,-358537222),f=y(f,p,u,d,l[g+3],16,-722521979),d=y(d,f,p,u,l[g+6],23,76029189),u=y(u,d,f,p,l[g+9],4,-640364487),p=y(p,u,d,f,l[g+12],11,-421815835),f=y(f,p,u,d,l[g+15],16,530742520),u=w(u,d=y(d,f,p,u,l[g+2],23,-995338651),f,p,l[g+0],6,-198630844),p=w(p,u,d,f,l[g+7],10,1126891415),f=w(f,p,u,d,l[g+14],15,-1416354905),d=w(d,f,p,u,l[g+5],21,-57434055),u=w(u,d,f,p,l[g+12],6,1700485571),p=w(p,u,d,f,l[g+3],10,-1894986606),f=w(f,p,u,d,l[g+10],15,-1051523),d=w(d,f,p,u,l[g+1],21,-2054922799),u=w(u,d,f,p,l[g+8],6,1873313359),p=w(p,u,d,f,l[g+15],10,-30611744),f=w(f,p,u,d,l[g+6],15,-1560198380),d=w(d,f,p,u,l[g+13],21,1309151649),u=w(u,d,f,p,l[g+4],6,-145523070),p=w(p,u,d,f,l[g+11],10,-1120210379),f=w(f,p,u,d,l[g+2],15,718787259),d=w(d,f,p,u,l[g+9],21,-343485551),u=u+E>>>0,d=d+C>>>0,f=f+S>>>0,p=p+A>>>0}return e.endian([u,d,f,p])};s._ff=function(o,a,l,c,u,d,f){var p=o+(a&l|~a&c)+(u>>>0)+f;return(p<<d|p>>>32-d)+a},s._gg=function(o,a,l,c,u,d,f){var p=o+(a&c|l&~c)+(u>>>0)+f;return(p<<d|p>>>32-d)+a},s._hh=function(o,a,l,c,u,d,f){var p=o+(a^l^c)+(u>>>0)+f;return(p<<d|p>>>32-d)+a},s._ii=function(o,a,l,c,u,d,f){var p=o+(l^(a|~c))+(u>>>0)+f;return(p<<d|p>>>32-d)+a},s._blocksize=16,s._digestsize=16,b9.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 zle=$le(b9.exports);function Hle(e){var t=e.match(Ule);return t?{filename:t[2],functionName:t[1]||"",lineno:parseInt(t[3],10)||void 0,colno:parseInt(t[4],10)||void 0}:{}}function vh(e){var t=(e||{stack:""}).stack;if(!t)return[];var n,r=[],s=M0(t.split(`
|
|
154
|
+
`).slice(1));try{for(s.s();!(n=s.n()).done;){var o=Hle(n.value);o&&r.push(o)}}catch(a){s.e(a)}finally{s.f()}return r.slice(0,10)}var Ll=function(e){return zle(e).toString()},ub=function(e){return e instanceof ErrorEvent?e.message==="Script error."?mh:gh:Fu},Gle=function(){function e(t){dp(this,e),vs(this,"errorIdSet",new Set),this.webCoreIns=t,this.errorIdSet=new Set}return fp(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(ub(r)===mh){var s={errorType:mh,errorMessage:r.message,errorSummary:"CorsError",errorId:Ll("".concat(mh,"-").concat(r.message))};t.commit(s)}}(n)},!0)}},{key:"onResourceError",value:function(t){if(ub(t)===Fu){var n=t.target||t.srcElement,r=n.src||n.href,s=JSON.stringify(Fu+": "+r||"UnKnown Resource"),o={errorType:Fu,errorMessage:s,errorSummary:"ResourceError",errorId:Ll("".concat(Fu,"-").concat(s))};this.commit(o)}}},{key:"onJSError",value:function(t){var n,r;if(ub(t)===gh){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:gh,errorMessage:s,errorSummary:t.error&&((r=t.error)===null||r===void 0?void 0:r.name)||"UnKnown",errorStack:JSON.stringify(vh(t.error)),errorId:Ll("".concat(gh,"-").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:m9,errorMessage:s,errorSummary:o,errorStack:JSON.stringify(vh(t.reason)),errorId:Ll("".concat(m9,"-").concat(s,"-").concat(o))};this.commit(a)}},{key:"onVueError",value:function(t,n,r){var s=JSON.stringify(t.message),o={errorType:_9,errorMessage:s,errorSummary:t.name||"UnKnown",errorStack:JSON.stringify(vh(t)),errorId:Ll("".concat(_9,"-").concat(s,"-").concat(t.name))};this.commit(o)}},{key:"onReactError",value:function(t,n){var r=JSON.stringify(t.message),s={errorType:v9,errorMessage:r,errorSummary:t.name||"UnKnown",errorStack:JSON.stringify(vh(t)),errorId:Ll("".concat(v9,"-").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(lu({type:"error"},t)))}}]),e}(),Wle=function(e){function t(){var s,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return dp(this,t),(s=zZ(this,t,[o])).config=o,s.isReport()?(s.PerformancePluginInstance=new Ile(uu(s)),s.WhiteScreenPluginInstance=new Ble(uu(s)),s.ErrorPluginInstance=new Gle(uu(s)),s.plugins=[s.PerformancePluginInstance,s.WhiteScreenPluginInstance,s.ErrorPluginInstance],s.init(),Y8(t,t,Ml,uu(s)),s):W8(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&&L0(s,o)}(t,Nle),fp(t,[{key:"isReport",value:function(){var s=this.isIE(),o=this.calcRatio();return this.config.appKey&&o&&!s}},{key:"init",value:(r=cu(sr().mark(function s(){return sr().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,p=d.origin,g=d.pathname;return lu(lu({uid:o,sid:this.sid,url:window.location.href,host:f,fullPath:p+g,sdkVersion:this.sdkVersion,createDate:c,appKey:this.config.appKey,createTime:l,appVersion:this.appVersion,env:this.env},u),s)}},{key:"commit",value:(n=cu(sr().mark(function s(o){var a,l;return sr().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=HZ(u,2),f=d[0],p=d[1];l.searchParams.set(f,p)}),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]:{};hp(t,t,Ml)||(s.config.errorHandler=function(a,l,c){hp(t,t,Ml).ErrorPluginInstance.onVueError(a,l,c),console.error(a)},Y8(t,t,Ml,new t(o)))}},{key:"sendError",value:function(s){hp(t,t,Ml)?hp(t,t,Ml).ErrorPluginInstance.onReactError(s):console.error("QAPM: 请先初始化 QAPM!")}}]),t}(),Ml={writable:!0,value:null};const uge="",dge="",Kle={components:{InfoFilled:_m,ArrowRight:gm},mixins:[Pr],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:gH,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($_),(r=this.history.keyNodeIds)!=null&&r.some(y=>y===d.id)||(e.push(z_),(o=(s=this.moduleDetail)==null?void 0:s.config)!=null&&o.hideCollectMenu||e.push(d.collect?q_:V_),e.push(d.textProp==="name"?j_:F_),d.label&&e.push(d.textProp==="label"?B_:U_)),this.canGoDetail&&e.push(eS)),e.push(d.fx?M_:L_);const f=this.history.dataNow.links.some(b=>b.source.id===d.id&&b.target.type==="aggregation"),_=this.history.dataNow.links.filter(b=>b.source.id===d.id).map(b=>b.target).some(b=>{let y=0;return this.history.dataNow.links.map(w=>{w.source.id===b.id&&y++}),y===0});f||d.type==="aggregation"?e.push(XC):_&&e.push(YC),_&&e.push(JC),e.push(H_)}else this.nodeInfo.length>1?(e.push(z_,$_),e.push(this.nodeInfo.some(f=>!f.collect)?V_:q_),this.nodeInfo.some(f=>f.label)&&e.push(this.nodeInfo.some(f=>f.textProp!=="label")?U_:B_),e.push(this.nodeInfo.some(f=>f.textProp!=="name")?F_:j_),e.push(this.nodeInfo.some(f=>!f.fx)?L_:M_),e.push(H_)):this.nodeInfo.length===0&&(this.history.dataNow.nodes.some(f=>f.label)&&e.push(this.history.dataNow.nodes.some(f=>f.textProp!=="label")?GC:HC),e.push(this.history.dataNow.nodes.some(f=>f.textProp!=="name")?qC:zC),e.push(this.history.dataNow.nodes.some(f=>!f.fx)?$C:VC),this.history.currentIndex>0&&e.push(WC),this.history.currentIndex<this.history.length-1&&e.push(KC));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;Xe(this,"contextmenu-click",{nodes:this.nodeInfo,api:e})}},handleDataClick(e,t){Fn({cId:"contextMenu-"+e.name,c:"右键菜单-"+e.namec}),Xe(this,"contextmenu-click",{nodes:this.nodeInfo,api:t,dataApi:e}),this.checkedItems={}}}},Jle={"aria-hidden":"true",style:{position:"absolute",width:"0",height:"0",overflow:"hidden",display:"none"}},Yle={class:"cm-list"},Xle={class:"cm-ul"},Zle={class:"hd"},Qle=["src"],ece={class:"bd"},tce={class:"cm-ul cm-ul-level1"},nce=["title"],ice=["title","onClick"],rce=["title","onClick"],sce={key:0,class:"icon","aria-hidden":"true"},oce=["title","onClick"],ace=["src"],lce=["title","onClick"],cce={key:0,class:"fas el-icon-fa-cog"},uce={key:1,class:"fas el-icon-fa-external-link-alt"},dce={class:"text-wrapper"},fce=["src"],pce=["src"],hce={key:3,class:"shortcut"},gce={key:2,class:"icon","aria-hidden":"true"},mce=["title","onClick"],_ce={key:1,class:"icon","aria-hidden":"true"},vce=["title","onClick"];function bce(e,t,n,r,s,o){const a=He("ArrowRight"),l=Ft,c=He("InfoFilled"),u=fi;return n.show?(N(),q("div",{key:0,class:"cm-container",style:Ze(o.axisComputed),onClick:t[1]||(t[1]=gt((...d)=>o.handleCollapse&&o.handleCollapse(...d),["stop"]))},[(N(),q("svg",Jle,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",Yle,[G("ul",Xle,[o.checkboxMenu.length>0?(N(),q("li",{key:0,class:"cm-li data-opt-wrapper",style:Ze(o.liStyle)},[G("div",Zle,[G("img",{src:e.imgPath["./public/d3svg1/button18/button_relation.svg"],style:{"margin-right":"10px"}},null,8,Qle),t[3]||(t[3]=Je("按关系分类拓线")),te(l,null,{default:ee(()=>[te(a)]),_:1})]),G("div",ece,[G("ul",tce,[(N(!0),q(ze,null,kt(o.checkboxMenu,(d,f)=>(N(),q("li",{key:f,class:"cm-li context-one",style:Ze(o.liStyle)},[o.hasChildren(d)?(N(),q("div",{key:0,class:Y(["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,nce)):(N(),q("div",{key:1,class:Y(["cm-item",o.firstLeft?"cm-left":""]),title:d.namec,onClick:gt(p=>o.handleDataClick(d,s.globalMenus.expandPartNode),["stop"])},[G("span",null,Ne(d.namec),1)],10,ice)),o.hasChildren(d)?(N(),q("ul",{key:2,class:"cm-ul cm-ul-level2",style:Ze(o.secondBorderCheck(f,d.children.length))},[(N(!0),q(ze,null,kt(d.children,(p,g)=>(N(),q("li",{key:g,class:"cm-li",style:Ze(o.liStyle)},[G("div",{class:Y(["cm-item",o.secondLeft?"cm-left":""]),title:p.namec,onClick:gt(_=>o.handleDataClick(p,s.globalMenus.expandPartNode),["stop"])},[G("span",null,Ne(p.namec),1),o.hasChildren(p)?(N(),q("svg",sce,t[5]||(t[5]=[G("use",{"xlink:href":"#icon-arrow-right"},null,-1)]))):re("",!0)],10,rce),o.hasChildren(p)?(N(),q("ul",{key:0,class:"cm-ul cm-ul-level3",style:Ze(o.thirdBorderCheck(f,g,d.children.length,p.children.length))},[(N(!0),q(ze,null,kt(p.children,(_,b)=>(N(),q("li",{key:b,class:"cm-li",style:Ze(o.liStyle)},[G("div",{class:"cm-item",title:_.namec,onClick:gt(y=>o.handleDataClick(_,s.globalMenus.expandPartNode),["stop"])},[G("span",null,Ne(_.namec),1)],8,oce)],4))),128))],4)):re("",!0)],4))),128))],4)):re("",!0)],4))),128))])])],4)):n.nodeInfo.length>1&&n.nodeInfo.length<s.maxMulti?(N(),q("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]=gt(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,ace),t[6]||(t[6]=Je("展开全部关系 "))]),t[7]||(t[7]=G("div",{class:"bd"},null,-1))],4)):re("",!0),(N(!0),q(ze,null,kt(o.systemMenu,(d,f)=>(N(),q("li",{key:f,class:"cm-li",style:Ze(o.liStyle)},[G("div",{class:Y(["cm-item",{"cm-left":o.firstLeft,disabled:d.disabled}]),title:d.namec,onClick:gt(p=>o.handleClick(d,d.disabled),["stop"])},[o.isSystemItem(d)?(N(),q("i",cce)):o.isExternalItem(d)?(N(),q("i",uce)):re("",!0),G("div",dce,[d.icon?(N(),q("img",{key:0,src:e.imgPath["./public/d3svg1/button18/"+d.icon+".svg"],class:"t-icon"},null,8,fce)):(N(),q("img",{key:1,src:e.imgPath["./public/d3svg1/button18/button_"+d.name+".svg"],class:"t-icon"},null,8,pce)),d.tooltip?(N(),xe(u,{key:2,class:"el-icon-info",effect:"dark",content:d.tooltip,placement:"top-start"},{default:ee(()=>[te(l,null,{default:ee(()=>[te(c)]),_:1})]),_:2},1032,["content"])):re("",!0),G("span",null,Ne(d.namec),1),d.shortcut?(N(),q("span",hce,Ne(d.shortcut),1)):re("",!0)]),o.hasChildren(d)?(N(),q("svg",gce,t[8]||(t[8]=[G("use",{"xlink:href":"#icon-arrow-right"},null,-1)]))):re("",!0)],10,lce),o.hasChildren(d)?(N(),q("ul",{key:0,class:"cm-ul cm-ul-level2",style:Ze(o.secondBorderCheck(f,d.children.length))},[(N(!0),q(ze,null,kt(d.children,(p,g)=>(N(),q("li",{key:g,class:"cm-li",style:Ze(o.liStyle)},[G("div",{class:Y(["cm-item",{"cm-left":o.secondLeft,disabled:d.disabled||p.disabled}]),title:p.namec,onClick:gt(_=>o.handleClick(p,d.disabled||p.disabled),["stop"])},[p.tooltip?(N(),xe(u,{key:0,class:"el-icon-info",effect:"dark",content:p.tooltip,placement:"top-start"},{default:ee(()=>[te(l,null,{default:ee(()=>[te(c)]),_:1})]),_:2},1032,["content"])):re("",!0),G("span",null,Ne(p.namec),1),o.hasChildren(p)?(N(),q("svg",_ce,t[9]||(t[9]=[G("use",{"xlink:href":"#icon-arrow-right"},null,-1)]))):re("",!0)],10,mce),o.hasChildren(p)?(N(),q("ul",{key:0,class:"cm-ul cm-ul-level3",style:Ze(o.thirdBorderCheck(f,g,d.children.length,p.children.length))},[(N(!0),q(ze,null,kt(p.children,(_,b)=>(N(),q("li",{key:b,class:"cm-li",style:Ze(o.liStyle)},[G("div",{class:Y(["cm-item",{disabled:d.disabled||p.disabled||_.disabled}]),title:_.namec,onClick:gt(y=>o.handleClick(_,d.disabled||p.disabled||_.disabled),["stop"])},[_.tooltip?(N(),xe(u,{key:0,class:"el-icon-info",effect:"dark",content:_.tooltip,placement:"top-start"},{default:ee(()=>[te(l,null,{default:ee(()=>[te(c)]),_:1})]),_:2},1032,["content"])):re("",!0),G("span",null,Ne(_.namec),1)],10,vce)],4))),128))],4)):re("",!0)],4))),128))],4)):re("",!0)],4))),128))])])],4)):re("",!0)}const yce=nn(Kle,[["render",bce],["__scopeId","data-v-dd8dd8d0"]]),fge="",pge="",hge="",gge="",wce={name:"Popover",components:{ForceGraphSvgIcon:Ho},mixins:[Pr],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:Dd,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 je(we({},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 A_(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 Ef(e,this.levelList)},getColorStyle(e){return Go(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&&uz(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 Of(Nf(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)Xe(wt,"emitDataLoaded");else{const n=this.nodeInfo,r={deleteOne:{nodes:[n],links:[{source:n.relationId,target:n.id}]},type:"aggregation"};setTimeout(()=>{this.history.pushState(r),Xe(wt,"emitDataLoaded")},0)}}}},Cce={key:0},Sce=["innerHTML"],xce={key:1,class:"node-info-container"},Ece={class:"popover-block popover-header"},Ace={key:0,class:"popover-collect"},Tce={key:1,class:"row-item"},kce={class:"label"},Pce={key:2,class:"row-item"},Oce={class:"value"},Nce={class:"node-type-info"},Ice={class:"name"},Dce={key:3,class:"row-item"},Rce={class:"value"},Lce={class:"popover-block popover-fields"},Mce={key:0,class:"node-detail top-border"},Fce={key:0,class:"row-item"},jce=["title"],Bce={key:1,class:"row-item row-item-tag"},Uce={class:"value"},$ce={class:"graph-tags-box"},Vce={key:0,class:"row-item"},qce={class:"label"},zce=["title"],Hce={key:1,class:"node-statistics top-border"},Gce={class:"row-item node-num"},Wce={class:"value"},Kce={key:0},Jce={class:"danger"},Yce={key:2,class:"node-aggregation"},Xce={class:"aggregation-title"},Zce={class:"aggregation-box"},Qce={key:2,class:"node-info-container"},eue={class:"popover-fields"},tue={class:"top"};function nue(e,t,n,r,s,o){const a=He("force-graph-svg-icon"),l=fi,c=qc,u=uq,d=$o,f=cq;return N(),q("div",{class:Y(["popover-container",o.show?"show-popover":"hide-popover"]),style:Ze(s.position),onMouseenter:t[0]||(t[0]=(...p)=>o.handleMouseEnter&&o.handleMouseEnter(...p)),onMouseleave:t[1]||(t[1]=(...p)=>o.handleMouseLeave&&o.handleMouseLeave(...p))},[G("div",null,[o.show&&n.customTooltip&&s.isFunction(n.customTooltip)?(N(),q("div",Cce,[G("div",{innerHTML:n.customTooltip({nodeInfo:n.nodeInfo,data:n.data,moduleDetail:n.moduleDetail})},null,8,Sce)])):n.type==="node"?(N(),q("div",xce,[G("div",Ece,[n.nodeInfo.collect?(N(),q("div",Ace,[te(l,{content:"已收藏","popper-class":"el-tooltip-gray",placement:"left"},{default:ee(()=>[te(a,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/star.svg"]},null,8,["icon-class"])]),_:1})])):re("",!0),o.isNormalNode?(N(),q("div",Tce,[G("div",kce,Ne(o.getTypeZh(n.nodeInfo.type))+":",1),G("div",{class:Y(["value",{"star-next":n.nodeInfo.collect}])},Ne(o.name),3)])):re("",!0),o.isNodeTypeNode?(N(),q("div",Pce,[t[2]||(t[2]=G("div",{class:"label"},"关系节点:",-1)),G("div",Oce,[G("div",Nce,[G("div",Ice,Ne(n.nodeInfo.name),1)])])])):re("",!0),n.nodeInfo.label?(N(),q("div",Dce,[t[3]||(t[3]=G("div",{class:"label"},"备注:",-1)),G("div",Rce,Ne(n.nodeInfo.label),1)])):re("",!0)]),G("div",Lce,[o.isNormalNode&&n.nodeInfo.detail?(N(),q("div",Mce,[o.canGoDetail&&o.hasLevel?(N(),q("div",Fce,[t[4]||(t[4]=G("div",{class:"label"},"危险级别:",-1)),G("div",{class:Y(["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,jce)])):re("",!0),n.nodeInfo.detail&&n.nodeInfo.detail.tags&&n.nodeInfo.detail.tags.length>0?(N(),q("div",Bce,[t[7]||(t[7]=G("div",{class:"label"},"标签:",-1)),G("div",Uce,[G("div",$ce,[(N(!0),q(ze,null,kt(o.formatTags(n.nodeInfo.detail.tags),(p,g)=>(N(),xe(l,{key:g,"popper-class":"el-tooltip-gray"},{content:ee(()=>[G("div",null,[Je(Ne(p.name===p.desc?p.name:p.name+":"+p.desc)+" ",1),p.disabled?(N(),q(ze,{key:0},[t[5]||(t[5]=G("br",null,null,-1)),t[6]||(t[6]=Je(" 标签状态:失效 "))],64)):re("",!0)])]),default:ee(()=>[G("span",null,[te(c,{class:Y(["graph-tag-one",`${p.type||"unknown"} ${p.disabled?"tag-disable":""}`]),type:p.type||"info"},{default:ee(()=>[Je(Ne(p.name),1)]),_:2},1032,["class","type"])])]),_:2},1024))),128))])])])):re("",!0),(N(!0),q(ze,null,kt(o.fieldMapThisType,(p,g)=>(N(),q(ze,null,[o.canShowField(p)?(N(),q("div",Vce,[G("div",qce,Ne(p.zh)+":",1),G("div",{class:Y(["value",{red:p.prop==="virus_name"}]),title:n.nodeInfo.detail.info.basic[g]},Ne(o.getFieldValue(p)),11,zce)])):re("",!0)],64))),256))])):re("",!0),o.isNodeTypeNode?(N(),q("div",Hce,[G("div",Gce,[t[9]||(t[9]=G("div",{class:"label"},"拓展节点统计:",-1)),G("div",Wce,[o.getNodeTypeChildNum(n.nodeInfo.id).dangerChildNum>0?(N(),q("span",Kce,[G("span",Jce,Ne(o.getNodeTypeChildNum(n.nodeInfo.id).dangerChildNum),1),t[8]||(t[8]=Je("/"))])):re("",!0),Je(Ne(o.getNodeTypeChildNum(n.nodeInfo.id).allChildNum),1)])])])):re("",!0),o.isAggregateNode?(N(),q("div",Yce,[G("div",Xce,"聚合节点 ("+Ne(s.aggregationList.length)+"个)",1),G("div",Zce,[te(f,{data:s.aggregationList,style:{width:"100%"}},{default:ee(()=>[te(u,{prop:"name","min-width":"200",label:"名称"}),te(u,{sortable:"",prop:"type",label:"类型"}),te(u,{sortable:"",prop:"level",width:"80",label:"级别"},{default:ee(p=>[G("span",{style:Ze({color:o.getColorStyle(p.row.level)})},Ne(p.row.level||"--"),5)]),_:1}),te(u,{label:"操作"},{default:ee(p=>[te(d,{class:"add-to-graph-btn",type:"primary",text:"",size:"small",onClick:g=>o.addToGraph(p.row)},{default:ee(()=>t[10]||(t[10]=[Je(" 添加到图谱 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])])):re("",!0)])])):(N(),q("div",Qce,[G("div",eue,[G("div",tue,Ne(n.nodeInfo.apiName),1)])]))])],38)}const iue=nn(wce,[["render",nue],["__scopeId","data-v-194a65c9"]]),rue=[{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:[]}],db={name:"vue-safe-force-graph",version:"2.0.65",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.3.0",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-vue-components":"^0.24.1",vite:"^4.3.1"},browserslist:["> 1%","last 2 versions"],engines:{node:">=8.9",npm:">= 3.0.0"},license:"MIT"},Nge="",{toClipboard:sue}=If(),oue="Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif",jr=1,aue=["ip","intranet","internet"],fb=20,Vi={},lue={name:"ForceGraphRenderByCanvas",components:{Popover:iue,NodeContextmenu:yce},mixins:[Pr],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:()=>{}}},emits:["handle-select-node","custom-contextmenu-click","flagFiles","updateSelection"],data(){return{prefix:"./public/",iconAllLoaded:!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:el()?"metaKey":"ctrlKey",levelHeight:100,actNum:0,scriptNow:null,scriptInited:!1,canAct:!1,isKeyUp:!0,initTimes:0,resizeObserver:null,canvasElement:null,stage:bn(null),layer:bn(null),nodesGroup:bn({}),linksGroup:bn({}),grab:bn(null),simulation:bn(null),nodes:bn(null),links:bn(null),hoveredNode:bn(null),mouseDownNode:bn(null),selectionRect:null,selection:[],scale:jr,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=ko(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 at(this,null,function*(){e!=null&&e.nodes&&!this.iconAllLoaded&&(yield this.loadIcons(),this.initForceGraph(),setTimeout(()=>{this.update()},50))})},deep:!0,immediate:!0},darkMode:{handler:function(e){return at(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(){ls.setProject("QH_10542_1724").getTrack(),console.log("组件版本: "+(db==null?void 0:db.version)),this.isThreatPath||this.initKeyEvent(),this.uniqueClass="unique"+new Date().getTime()+Math.floor(Math.random()*1e5)},mounted(){return at(this,null,function*(){new Wle({appKey:"fe-force-graph",ratio:50}),this.initForceGraph(),cz(this.levelList),!this.isThreatPath&&(Hs(wt,"buttonClick",e=>{Oi(e,"buttonClick msg"),this.handleContextMenuClick(e)}),Hs(wt,"relationClick",e=>{this.handleContextMenuClick(e)}),Hs(wt,"sendNodesRange",(e,t)=>{e!==void 0&&(this.nodesRange=e,this.updateNodeStyle())}))})},beforeUnmount(){Gs(wt,"buttonClick"),Gs(wt,"relationClick"),Gs(wt,"sendNodesRange"),this.unbindKeyEvent(),this.resetAll(),Oi("destroy")},methods:{initForceGraph(){return at(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,Oi(`新宽度: ${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 Ut.Stage({container:e,width:t,height:n,scaleX:jr,scaleY:jr}),this.layer=new Ut.Layer,this.grab=new Ut.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.scale,l=s.evt.deltaY<0?a*o:a/o;this.scale=l;const c=this.stage.getPointerPosition(),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.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 Ut.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),p=Math.max(o,o+l),g=Math.min(a,a+c),_=Math.max(a,a+c);return d.x>=f&&d.x<=p&&d.y>=g&&d.y<=_}),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*jr),t=this.stage.height()/(2*jr);this.hasSimulation=!0,this.simulation=UZ(this.nodes).force("link",EZ(this.links).id(r=>r.id).distance(this.linkDistance).strength(1)).force("charge",$Z().strength(this.strength)).force("x",VZ()).force("y",qZ()).force("center",O8(e,t)).alphaDecay(this.alphaDecay).alphaMin(this.alphaMin).stop(),this.nodeWidth&&this.simulation.force("collision",SZ().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",()=>{Oi("simulation end time",Date.now()),this.isThreatPath&&this.centerAndZoom(1)})},sendManualTick(){var e;Oi("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)Oi("tick"),this.simulation.tick();console.timeEnd("tick"),this.ticking=!1,this.update(),this.centerAndZoom()},1e3))},update(e=!1){return at(this,null,function*(){var t,n,r;!this.iconAllLoaded&&((n=(t=this.moduleDetail)==null?void 0:t.nodes)!=null&&n.length)&&(yield this.loadIcons()),!this.destroyed&&(r=this.nodes)!=null&&r.length&&(this.initScript(),Oi("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 Ut.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=>at(this,null,function*(){var y,w,E,C,S,A,P,I,O,L,R,F,H,V,ae,ce,U,J,Q,X,j,ye,pe;const s=(w=(y=r.detail)==null?void 0:y.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=(E=r==null?void 0:r.detail)==null?void 0:E.info)==null?void 0:C.basic)==null?void 0:S.level)||"",l=(I=(P=(A=r==null?void 0:r.detail)==null?void 0:A.info)==null?void 0:P.basic)==null?void 0:I.flag;let c;try{c=yield this.getNodeImage(r)}catch(ie){console.log(ie)}this.nodesGroup[r.id]&&((O=this.nodesGroup[r.id])==null||O.destroy());const u=new Ut.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 ie=Go(a,this.levelList,this.darkMode),oe=new Ut.Circle({x:0,y:0,radius:20,fill:ie,opacity:0}),Ce=new Ut.Circle({x:0,y:0,radius:20,fill:ie,opacity:0}),me=new Ut.Circle({x:0,y:0,radius:20,fill:ie,opacity:0});u.add(oe),u.add(Ce),u.add(me);const z=(Z,_e)=>new Ut.Animation(function(Pe){const Re=Pe.time;if(Re%_e/_e===0)return!1;const B=.5-.5*(Re%_e)/_e,K=40*(Re%_e)/_e;Z.radius(K||0),Z.opacity(B)},this.layer);(L=this.anim1)==null||L.stop(),(R=this.anim2)==null||R.stop(),(F=this.anim3)==null||F.stop(),this.anim1=z(oe,1500),this.anim2=z(Ce,1500),this.anim3=z(me,1500),(H=this.anim1)==null||H.start(),setTimeout(()=>{this.anim2.start()},500),setTimeout(()=>{this.anim3.start()},1e3)}else if(r.startNode&&!this.startNodeAnimation){const ie=Go(a,this.levelList,this.darkMode),oe=new Ut.Circle({x:0,y:0,radius:20,fill:ie,opacity:this.startNodeAnimation?0:.3});u.add(oe)}if(!s&&(r.type==="ip"||r.type==="internet"||r.type==="country"||r.type==="target_country")){const ie=Go(a,this.levelList,this.darkMode),oe=new Ut.Circle({x:0,y:0,fill:this.darkMode?"#182628":"#fff",radius:o/2,stroke:ie,strokeWidth:2});u.add(oe)}if(c){const ie=l||(ae=(V=r==null?void 0:r.detail)==null?void 0:V.info)!=null&&ae.inner_country?20:o,oe=c&&new Ut.Image({x:0,y:0,offsetX:ie/2,offsetY:ie/2,image:c,width:ie,height:ie,draggable:!1});u.add(oe)}if(!s&&r.detail&&r.type==="md5"){const ie=((J=(U=(ce=r.detail.info)==null?void 0:ce.basic)==null?void 0:U.file_type)==null?void 0:J.toUpperCase())||"MD5",oe=new Ut.Text({name:"md5Text",x:0,y:0,text:ie,fontSize:4,fontWeight:700,fontFamily:oue,fill:this.darkMode?"#182628":"#fff",align:"center",listening:!1});oe.x(oe.x()-oe.width()/2),u.add(oe)}const d=r.textProp||"name",f=d==="name"?((X=(Q=r==null?void 0:r.detail)==null?void 0:Q.info)==null?void 0:X.name)||r.name:r[d];let p=(f==null?void 0:f.length)>14&&!aue.includes(r.type)?f.slice(0,7)+"..."+f.slice(-7):f;p=vz(p);const g=new Ut.Text({offsetY:o/2,name:"konvaText",x:0,y:o+8,text:p,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 _=new Ut.Circle({name:"border",x:0,y:0,radius:o/2,fill:"#5c6271",opacity:.4,visible:!1});if(u.add(_),(ye=(j=r.detail)==null?void 0:j.tags)!=null&&ye.length){const ie=new Ut.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(ie)}if(r.type!=="nodeType"&&r.type!=="aggregation"){var b=new Ut.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(b)}if(r.label){const ie=new Ut.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(ie)}if(r.type==="nodeType"&&r.showTotal){const ie=(o/2||14)+5,oe=70*Math.PI/180,Ce=ie*Math.sin(oe),me=-ie*Math.cos(oe),z=new Ut.Circle({x:Ce,y:me,radius:10,fill:"#1890ff",stroke:"white",strokeWidth:2,listening:!1});u.add(z);const Z=new Ut.Text({x:Ce,y:me,text:`${((pe=r==null?void 0:r.children)==null?void 0:pe.length)||0}`,fontSize:10,fontFamily:"Calibri",fill:"#fff",align:"center",verticalAlign:"middle",listening:!1});Z.offsetX(Z.width()/2),Z.offsetY(Z.height()/2),u.add(Z)}u.on("dragstart",(ie,oe)=>{ie.evt&&ie.evt[this.actKey]||(this.isAutoTick&&this.simulation.alphaTarget(.3).restart(),this.isDragging=!0)}),u.on("dragmove",ie=>{if(!(ie.evt&&ie.evt[this.actKey])){var oe=this.simulation.nodes().find(Ce=>Ce.id===r.id);oe&&(oe.x=u.x(),oe.fx=u.x(),oe.y=u.y(),oe.fy=u.y(),this.links.forEach(Ce=>{const me=this.linksGroup[`${Ce.source.id}-${Ce.target.id}`],z=me==null?void 0:me.findOne(".konvaLine"),Z=me==null?void 0:me.findOne(".linkArrow"),_e=me==null?void 0:me.findOne(".edgeLabel");let Pe,Re,Ke,B;if(Ce.source.id===oe.id){if(!this.nodesGroup[Ce.target.id])return;Pe=oe.x,Re=this.nodesGroup[Ce.target.id].x(),Ke=oe.y,B=this.nodesGroup[Ce.target.id].y(),z.points([Pe,Ke,Re,B]);const K=T_(Pe,Ke,Re,B,fb);Z==null||Z.x(K==null?void 0:K.x),Z==null||Z.y(K==null?void 0:K.y),Z==null||Z.rotation(Math.atan2(B-Ke,Re-Pe)*(180/Math.PI))}else if(Ce.target.id===oe.id){if(!this.nodesGroup[Ce.source.id])return;Pe=this.nodesGroup[Ce.source.id].x()||0,Re=oe.x||0,Ke=this.nodesGroup[Ce.source.id].y()||0,B=oe.y||0,z.points([Pe,Ke,Re,B]);const K=T_(Pe,Ke,Re,B,fb);Z==null||Z.x(K==null?void 0:K.x),Z==null||Z.y(K==null?void 0:K.y),Z==null||Z.rotation(Math.atan2(B-Ke,Re-Pe)*(180/Math.PI))}if(_e&&(Ce.source.id===oe.id||Ce.target.id===oe.id)){_e.x((Pe+Re)/2),_e.y((Ke+B)/2),_e.offsetX(_e.getWidth()/2||0),_e.offsetY(_e.getHeight()/2+8||0);const K=Math.atan2(B-Ke,Re-Pe)*(180/Math.PI);Re<Pe?_e.rotation(K+180):_e.rotation(K)}}),this.layer.batchDraw())}}),u.on("dragend",ie=>{ie.evt&&ie.evt[this.actKey]||(this.isAutoTick&&this.simulation.alphaTarget(0),this.isDragging=!1)}),u.on("click",ie=>{ie.evt.detail===2?this.expandNodes(ie,r):ie.evt.detail===1&&ie.evt.button===0&&this.handleNodeClick(ie,r)}),u.on("contextmenu",ie=>{ie.cancelBubble=!0,ie.evt.preventDefault(),ie.evt.stopPropagation(),this.handleNodeContextMenu(ie,r,u)}),u.on("mouseup",ie=>this.handleNodeMouseUp(ie,r)),u.on("mousedown",ie=>this.handleNodeMouseDown(ie,r)),u.on("mouseenter",ie=>this.handleNodeMouseEnter(ie,r)),u.on("mouseleave",ie=>this.handleNodeMouseLeave(ie,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 Ut.Group({opacity:1,id:`${n.source.id}-${n.target.id}`,visible:n.source.show&&n.target.show}),s=this.darkMode?"#445152":"#999",o=new Ut.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 Ut.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,p=new Ut.Text({name:"edgeLabel customEdgeLabel",x:(a+c)/2,y:(l+u)/2,text:f,fontSize:12,fill:this.darkMode?"#cdd9da":"#000"});r.add(p)}if(n.target.type==="nodeType"){const f=n.target.relay_name||n.target.name,p=new Ut.Text({name:"edgeLabel",x:(a+c)/2,y:(l+u)/2,text:f,fontSize:12,fill:this.darkMode?"#cdd9da":"#000"});r.add(p)}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(Oi("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 p=d-c||1,g=f-u||1,_=Math.sqrt(p*p+g*g),b=p/_||1,y=g/_||1,w=r.source.type==="nodeType"?(this.iconSizeComputed[r.source.icon]||14)/2-1:(this.iconSize[r.target.type]||14)/2-1,E=r.target.type==="nodeType"?(this.iconSizeComputed[r.target.icon]||14)/2-1:(this.iconSize[r.target.type]||14)/2-1;if(c=c+w*b,u=u+w*y,d=d-E*b,f=f-E*y,isNaN(c)||isNaN(u)||isNaN(d)||isNaN(f)){e=!1;break}if(o==null||o.points([c,u,d,f]),a){const C=T_(c,u,d,f,fb);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){Oi("请点击自动布局按钮"),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&&!el()&&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(el())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(E=>e.indexOf(E.id)>=0);r==null||r.forEach(function(E,C){const S=this.nodesGroup[E.id];n.push({bounds:(S==null?void 0:S.getClientRect())||{},fx:E.x||0,fy:E.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,jr)||jr,this.scale=u;const d=this.stage.width()/(2*u),f=this.stage.height()/(2*u),p=this.nodesGroup[e[0]],g=p==null?void 0:p.getClientRect(),_=g.x*u,b=g.y*u,y=d-_,w=f-b;this.stage.setAttrs({scaleX:u,scaleY:u,x:y||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)})},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"?PC(c):TC(c)}a.map(c=>{l(this.imgPath[`${s.prefix}d3svg1/${c}.svg`]).then(u=>{s.iconFiles[c]=u;const d=bz(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=rue: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){Xe(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||ES(".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")}),Xe(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);Xe(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,p=d,g=d+n,_=f,b=f+r;this.hoverNodePosition={top:_,right:g,bottom:b,left:p,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 Ut.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(){this.simulation.stop(),this.nodes.map(e=>{delete e.vx,delete e.vy,delete e.x,delete e.y,delete e.fx,delete e.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){var d,f,p;if(this.originTransform={scaleX:this.stage.scaleX(),scaleY:this.stage.scaleY(),x:this.stage.x(),y:this.stage.y()},!this.grab)return;const n=this.stage.width(),r=this.stage.height(),s=this.grab.getClientRect(),o=s.width/this.scale,a=s.height/this.scale;if(o===0||a===0)return;let l=e/Math.max(o/n,a/r);if(l=t?l:Math.min(l,jr)||jr,!t&&l>jr)return;this.scale=l;const c=this.stage.width()/(2*l),u=this.stage.height()/(2*l);if((d=this.simulation)!=null&&d.force&&((f=this.simulation)==null||f.force("center",O8(c,u))),this.ticked(),this.stage.setAttrs({scaleX:l,scaleY:l,x:0,y:0}),this.layer.batchDraw(),this.history.layoutIndex===1){const g=this.grab.getClientRect(),_=(n-g.width)/2-g.x,b=(r-g.height)/2-g.y;this.stage.setAttrs({x:_,y:b}),this.layer.batchDraw(),(p=this.simulation)==null||p.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:Xe(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 dn({message:"无可操作权限",type:"warning"})},expandNodes(e,t){Fn({cId:"dblclick",c:"双击节点"}),this.requestGraphData?this.$parent.expandNodes(t):dn({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&&sue(t).then(()=>{dn({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;wC.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"&&(A_(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 at(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 at(this,null,function*(){var s,o,a,l,c,u,d,f,p,g,_,b;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[e.type])t=yield cs(this.customNodeImages[e.type]);else if(e.detail&&((f=(d=e.detail)==null?void 0:d.info)!=null&&f.icon_img))try{t=yield cs(e.detail.info.icon_img)}catch(y){console.log("loadCompleted error",y)}else if(e.detail&&((g=(p=e.detail)==null?void 0:p.info)!=null&&g.inner_img))try{t=yield cs(e.detail.info.inner_img)}catch(y){console.log("loadCompleted error",y)}else if(e.type==="nodeType"||e.type==="aggregation"){if(e!=null&&e.icon_img)try{return t=yield cs(e.icon_img),t}catch(w){console.log("loadCompleted error",w)}const y=e.icon||"node_type";if(Vi[y])return t=Vi[y],t;t=this.iconFiles[y]?this.iconFiles[y]:this.iconFiles.node_type,t=yield cs("data:image/svg+xml,"+encodeURIComponent(t)),Vi[y]=t}else if(n&&(e.type==="ip"||e.type==="internet")){if(Vi[n])return t=Vi[n],t;yield this.loadFlagFiles(n),t=yield cs(this.flagFiles[n]),Vi[n]=t}else if((b=(_=e.detail)==null?void 0:_.info)!=null&&b.inner_country&&(e.type==="country"||e.type==="target_country")){const y=e.detail.info.inner_country;if(Vi[y])return t=Vi[y],t;yield this.loadFlagFiles(y),t=yield cs(this.flagFiles[y]),Vi[y]=t}else{const y=`${e.type||"node"}${r}${this.darkMode}`;if(Vi[y])return t=Vi[y],t;t=this.iconFiles[e.type]?this.iconFiles[e.type]:this.iconFiles.node;const w=Go(r,this.levelList,this.darkMode),E=this.darkMode?"#182628":"#fff";t=kC(t,w,E);try{t=yield cs("data:image/svg+xml,"+encodeURIComponent(t))}catch(C){console.log(C)}Vi[y]=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 at(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(){this.darkMode&&(this.darkBgRect=new Ut.Rect({x:0,y:0,width:this.stage.width()/this.scale,height:this.stage.height()/this.scale,fill:"#021212",stroke:"#021212",listening:!1,draggable:!1}),this.layer.add(this.darkBgRect),this.darkBgRect.moveToBottom(),this.stage.draw())},removeCanvasBg(){this.darkBgRect&&this.darkBgRect.destroy(),this.darkBgRect=null,this.stage.draw()}}},cue={class:"main-svg-box","element-loading-text":"布局中...","element-loading-background":"rgba(122, 122, 122)"},uue={ref:"canvasContainer",class:"canvas-container"};function due(e,t,n,r,s,o){const a=He("popover"),l=He("node-contextmenu"),c=vC;return N(),q("div",{class:Y(["render-container",n.darkMode?"dark-theme "+s.uniqueClass:" "+s.uniqueClass])},[Nt((N(),q("div",cue,[G("div",uue,null,512)])),[[c,s.ticking]]),te(a,{"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"]),n.isThreatPath?re("",!0):(N(),xe(l,{key:0,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 fue=nn(lue,[["render",due]]),Ige="",Dge="",Rge="",{toClipboard:S9}=If(),pue={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){S9(e).then(t=>dn({message:"复制成功",type:"success"}),t=>dn.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"?(S9(this.eventUrl),dn({message:"分享成功! 分享事件地址已经复制",type:"success",showClose:!0,duration:5e3})):dn({message:"分享失败",type:"error"})}).catch(()=>{dn({message:"分享失败",type:"error"})}),this.resetForm(e),this.dialogVisible=!1}else return!1})},resetForm(e){this.$refs[e].resetFields(),this.snapshot.name=""}}},hue={class:"sharetoEvents"},gue={class:"lable-header"},mue={class:"desc"},_ue={key:0,class:"desc-font"},vue={key:1,class:"desc-font"},bue={class:"dialog-footer"};function yue(e,t,n,r,s,o){const a=f$,l=bf,c=vf,u=Um,d=Bo,f=Bm,p=$o,g=zc;return N(),q("div",hue,[te(g,{title:"分享到安全事件","append-to-body":"","close-on-click-modal":!1,width:"25%",modelValue:s.dialogVisible,"onUpdate:modelValue":t[6]||(t[6]=_=>s.dialogVisible=_),class:"el-dialog-graph"},{footer:ee(()=>[G("span",bue,[te(p,{type:"primary",onClick:t[5]||(t[5]=_=>o.submitForm("ruleForm"))},{default:ee(()=>t[9]||(t[9]=[Je("确认分享")])),_:1}),te(p,{onClick:o.hide},{default:ee(()=>t[10]||(t[10]=[Je("关闭")])),_:1},8,["onClick"])])]),default:ee(()=>[te(f,{ref:"ruleForm",model:s.ruleForm,rules:s.rules,"label-width":"100px",class:"demo-ruleForm"},{default:ee(()=>[G("div",gue,[te(a,{modelValue:s.ruleForm.radio,"onUpdate:modelValue":t[0]||(t[0]=_=>s.ruleForm.radio=_),class:"el-radio",label:"1",border:"",size:"medium"},{default:ee(()=>t[7]||(t[7]=[Je("付费可见")])),_:1},8,["modelValue"]),te(a,{modelValue:s.ruleForm.radio,"onUpdate:modelValue":t[1]||(t[1]=_=>s.ruleForm.radio=_),label:"0",border:"",size:"medium"},{default:ee(()=>t[8]||(t[8]=[Je("开放")])),_:1},8,["modelValue"]),G("div",mue,[s.ruleForm.radio==="0"?(N(),q("span",_ue,"该Graph内容对所有用户可见。")):(N(),q("span",vue,"该Graph内容对付费用户可见。"))])]),te(u,{label:"安全事件",prop:"event"},{default:ee(()=>[te(c,{modelValue:s.ruleForm.event,"onUpdate:modelValue":t[2]||(t[2]=_=>s.ruleForm.event=_),"popper-append-to-body":!1,filterable:"",placeholder:"请选择",class:"select-item"},{default:ee(()=>[(N(!0),q(ze,null,kt(s.eventOptions,_=>(N(),xe(l,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s.isInnerAccount?(N(),xe(u,{key:0,label:"选择团队",prop:"group"},{default:ee(()=>[te(c,{modelValue:s.ruleForm.group,"onUpdate:modelValue":t[3]||(t[3]=_=>s.ruleForm.group=_),class:"select-item",filterable:"",placeholder:"请选择"},{default:ee(()=>[(N(!0),q(ze,null,kt(s.groupOptions,_=>(N(),xe(l,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):re("",!0),te(u,{label:"Graph介绍",prop:"graphDesc"},{default:ee(()=>[te(d,{modelValue:s.ruleForm.graphDesc,"onUpdate:modelValue":t[4]||(t[4]=_=>s.ruleForm.graphDesc=_),type:"textarea",rows:2,placeholder:"请输入内容",maxlength:"50",clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])])}const wue=nn(pue,[["render",yue]]),Lge="",{toClipboard:Cue}=If(),Sue={name:"SnapShotDialog",components:{ShareToSecurityEvents:wue},mixins:[],props:{graphUrlPath:{type:String,default:"/graph"},snapshot:{type:Object,default:()=>{}},graphApi:{type:Object,default:()=>{}}},data(){return{dialogVisible:!1,origin:window.location.origin,isInnerAccount:!1}},computed:{},watch:{},created(){},mounted(){Hs(wt,"sharePermission",e=>{this.isInnerAccount=e})},updated(){},beforeUnmount(){Gs(wt,"sharePermission")},methods:{hanleClickCopy(e){Cue(e).then(t=>dn({message:"复制成功",type:"success"}),t=>dn.error("复制失败"))},show(){this.dialogVisible=!0},hide(){this.dialogVisible=!1},shareToEvents(){this.dialogVisible=!1,this.$refs.sharetoevents.show()}}},xue={class:"snapshotdialog-container"},Eue={class:"dialog-footer"};function Aue(e,t,n,r,s,o){const a=Bo,l=N$,c=$o,u=zc,d=He("ShareToSecurityEvents");return N(),q("div",xue,[te(u,{title:"复制链接及提取码","append-to-body":"",modelValue:s.dialogVisible,"onUpdate:modelValue":t[2]||(t[2]=f=>s.dialogVisible=f),"close-on-click-modal":!1,class:"el-dialog-graph"},{footer:ee(()=>[G("span",Eue,[s.isInnerAccount?(N(),xe(c,{key:0,type:"primary",onClick:t[0]||(t[0]=f=>o.shareToEvents())},{default:ee(()=>t[5]||(t[5]=[Je("分享到安全事件")])),_:1})):re("",!0),te(c,{type:"primary",onClick:t[1]||(t[1]=f=>o.hanleClickCopy(`${s.origin}${n.graphUrlPath}?snapshot_id=${n.snapshot.snapshot_id}&vcode=${n.snapshot.vcode}`))},{default:ee(()=>t[6]||(t[6]=[Je("复制链接及提取码")])),_:1}),te(c,{onClick:o.hide},{default:ee(()=>t[7]||(t[7]=[Je("关闭")])),_:1},8,["onClick"])])]),default:ee(()=>[te(a,{value:`${s.origin}${n.graphUrlPath}?snapshot_id=${n.snapshot.snapshot_id}`},{prepend:ee(()=>t[3]||(t[3]=[Je("链接地址:")])),_:1},8,["value"]),te(l),te(a,{value:n.snapshot.vcode},{prepend:ee(()=>t[4]||(t[4]=[Je("提取码:")])),_:1},8,["value"])]),_:1},8,["modelValue"]),te(d,{ref:"sharetoevents",snapshot:n.snapshot,"graph-api":n.graphApi},null,8,["snapshot","graph-api"])])}const Tue=nn(Sue,[["render",Aue]]),Mge="",kue={name:"ForceGraphByCanvas",components:{Loading:Ma,ForceGraphSvgIcon:Ho,RenderByCanvas:fue,ButtonList:SY,SnapShotDialog:Tue,RightMenu:WG,Legend:GK,NodeVisibleControl:XK},mixins:[Pr],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},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"},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:()=>{}}},emits:["sharePermission","custom-contextmenu-click","handle-select-node","handle-data-loaded","outdate"],data(){return{history:new oz({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()}},graphApi:{handler:function(){this.$nextTick(()=>{this.initializeGraphApi()})},deep:!0,immediate:!0}},unmounted(){window.onresize=null},mounted(){return at(this,null,function*(){console.log('"2024/11/8 14:46:06"',"2024/11/8 14:46:06"),this.initializeGraphApi(),window.onresize=()=>{this.fullScreen=!!document.fullscreenElement,this.screenHeight=document.body.clientHeight},this.margin=this.changeMargin(),Hs(wt,"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{dn.error("请传入模块名称");return}this.graphApi.userInfo&&this.graphApi.userInfo().then(e=>{e.data!==null&&(Xe(wt,"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)):Xe(this,"custom-contextmenu-click",it(e))},handleSelectNode(e){this.handleSelectNodeEvent&&typeof this.handleSelectNodeEvent=="function"?this.handleSelectNodeEvent(it(e),it(this.history.dataNow)):Xe(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):(dn({message:"无相关数据",type:"warning"}),this.emitDataLoaded())})},initGraph(){return at(this,null,function*(){var e;Oi("initGraph"),(e=this.graphApi)==null||e.getGraphConfig({name:this.module}).then(t=>{const n=t.data,r=Pf(n==null?void 0:n.node_info),s=n==null?void 0:n.nodes;s.forEach(a=>{a.name=a.name.toLowerCase()});const o=Pf(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=us(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),dn({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++,Xe(this,"outdate"))},expandNodes(e,t){return at(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(je(we(we({},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 p;return((p=f.res)==null?void 0:p.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=>{if(e.getData[u.api]=!0,this.history.dataNow.nodes.find(S=>S.id===e.id)&&(this.history.dataNow.nodes.find(S=>S.id===e.id).getData[u.api]=!0),!u.data)return;let d;const f=u.data.nodes.map(S=>(S.group=e.id+"-"+u.api,S.groupC=u.apiC,S=us(S,this.moduleDetail.plugs),S)),p=e.id+"-"+u.api;let g={id:p,name:u.apiC,note_name:u.note_name,type:"nodeType",icon:u.icon,showTotal:u.showTotal,icon_img:u.icon_img};const C=u,{code:_,msg:b,data:y}=C,w=Es(C,["code","msg","data"]);g=we(we({},w),g);const E={source:e.id,target:p};if(g=us(g,this.moduleDetail.plugs),this.nodeTypeList.push(u.icon||"node_type"),f.length>0&&this.isRenderStartNode){if(d=u.data.links.map(S=>{let A;if(S.source===e.id){const P=this.history.dataNow.nodes.filter(I=>I.id===S.target);if(P.length>0&&(A=this.findGrandSonNodeIds(P[0]).indexOf(S.source)>=0),!u.api.canLoop&&A)return;S.source=p}else S.target===e.id&&(S.target=p);return S.edgeLabelProp=S.edge_label,S}).filter(S=>S),d.length===0)return;d.push(E)}else d=u.data.links;if(this.isRenderStartNode&&f.length>=this.singlesNodeMaxNum){let S=null,A=null;const P=String(Math.floor(new Date().getTime()));S={id:P,list:f,type:"aggregation",name:"聚合",relationId:g.id},S=us(S,this.moduleDetail.plugs),A={source:g.id,target:P,uniqueIndex:this.generateUniqueIndexNow()};const I={addOne:{nodes:[g,S],links:[E,A]},type:"aggregation"};this.history.pushState(I),this.getNodeDetail(S.list,S.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(p=>{const g=p.source+"-"+p.name;if(!u[g]){let _={id:g,name:p.name,type:"nodeType",icon:p.feature.icon};_=us(_,this.moduleDetail.plugs),u[g]=_}d[g]?d[g].push(p):d[g]=[p]});for(const p in u)a.push(u[p]);for(const p in d)d[p].forEach(_=>{const b=je(we({},_),{source:_.source,target:p}),y=je(we({},_),{source:p,target:_.target});f.push(b),f.push(y)});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&&(Oi(" 数据加载完"),this.emitDataLoaded())})}Object.keys(s).length||this.emitDataLoaded()},emitDataLoaded(){this.handleDataLoaded&&typeof this.handleDataLoaded=="function"?this.handleDataLoaded({dataNow:it(this.history.dataNow)}):Xe(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){dn({type:"warning",message:"该节点已存在,添加失败"});return}let s;if(t==="diy"&&e.type==="nodeType"){let o=je(we({},e),{detail:null,diy:!0,group:e.id});o=us(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=us(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=je(we({},e),{detail:null,diy:!0,group:e.id});a=us(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=us(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 at(this,null,function*(){wC.prompt(null,"添加快照",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^.{1,20}$/,inputPlaceholder:"请输入20字以内快照名称",inputErrorMessage:"请输入20字以内快照名称"}).then(t=>at(this,[t],function*({value:e}){this.bigLoading=!0,setTimeout(()=>at(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(()=>{dn({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)}}},Pue={key:0,ref:"force-d3-container",class:"d3-container"},Oue=["innerHTML"],Nue={class:"top-item"},Iue={class:"top-line"},Due={key:1,class:"select-num"},Rue={class:"highlight"},Lue={class:"loading-container"},Mue={class:"corner-button-box"};function Fue(e,t,n,r,s,o){const a=He("ButtonList"),l=He("RenderByCanvas"),c=He("Loading"),u=Ft,d=He("Legend"),f=He("NodeVisibleControl"),p=He("force-graph-svg-icon"),g=fi,_=He("RightMenu"),b=He("SnapShotDialog"),y=vC;return n.graphApi?Nt((N(),q("div",Pue,[G("div",{class:Y(["graph-box",{"hide-right-menu":!n.isShowRightMenu}])},[n.title?(N(),q("div",{key:0,class:"safe-force-title",innerHTML:n.title},null,8,Oue)):re("",!0),t[4]||(t[4]=G("div",{class:"top-line-bg"},null,-1)),G("div",Nue,[G("div",Iue,[te(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"])])]),te(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,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","onUpdateSelection","onOnaction","onHandleSelectNode","onCustomContextmenuClick"]),s.selection.length>0?(N(),q("p",Due,[t[2]||(t[2]=Je(" 已选择")),G("span",Rue,Ne(s.selection.length),1),t[3]||(t[3]=Je("项 "))])):re("",!0),Nt(G("div",Lue,[G("span",null,Ne(s.loadingInfo),1),te(u,{class:"is-loading"},{default:ee(()=>[te(c)]),_:1})],512),[[wn,s.isLoading]]),n.hasLegend?(N(),xe(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"])):re("",!0),n.hasNodeVisibleControl?(N(),xe(f,{key:3,history:s.history,"module-detail":s.moduleDetail,"start-node":n.startNode},null,8,["history","module-detail","start-node"])):re("",!0),G("div",Mue,[!s.fullScreen&&o.topFrame?(N(),xe(g,{key:0,content:"进入全屏",placement:"left","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(p,{"icon-class":e.imgPath["./public/d3svg1/button18/full_button.svg"],alt:"",class:"corner-button",onClick:o.toggleFullScreen},null,8,["icon-class","onClick"])]),_:1})):re("",!0),s.fullScreen&&o.topFrame?(N(),xe(g,{key:1,content:"退出全屏",placement:"left","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(p,{"icon-class":e.imgPath["./public/d3svg1/button18/un_full_button.svg"],alt:"",class:"corner-button",onClick:o.toggleFullScreen},null,8,["icon-class","onClick"])]),_:1})):re("",!0),te(g,{content:"适应屏幕",placement:"left","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(p,{"icon-class":e.imgPath["./public/d3svg1/button18/fit_button.svg"],alt:"",class:"corner-button",onClick:o.fitScreen},null,8,["icon-class","onClick"])]),_:1}),te(g,{content:"放大",placement:"left","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(p,{"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}),te(g,{content:"缩小",placement:"left","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(p,{"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?(N(),xe(_,{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"])):re("",!0),te(b,{ref:"snapshot",snapshot:s.snapshot,"graph-api":n.graphApi,"graph-url-path":n.graphUrlPath},null,8,["snapshot","graph-api","graph-url-path"])])),[[y,s.bigLoading]]):re("",!0)}const x9=gP(nn(kue,[["render",Fue]]),{shadowRoot:!1});return customElements.define("force-graph",x9),{GraphElement:x9}});
|